(self.webpackChunkzenople=self.webpackChunkzenople||[]).push([[179],{59058:(he,y,i)=>{"use strict";i.d(y,{BH:()=>L,L:()=>A,LL:()=>se,ZB:()=>R,ZR:()=>q,aH:()=>b,eu:()=>j,hl:()=>te,jU:()=>U,m9:()=>Mt,n2:()=>V,ne:()=>fn,r3:()=>Le,vZ:()=>$n,zI:()=>H});
/**
         * @license
         * Copyright 2017 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
const a=function(pt){const Lt=[];let tt=0;for(let Ne=0;Ne<pt.length;Ne++){let vt=pt.charCodeAt(Ne);vt<128?Lt[tt++]=vt:vt<2048?(Lt[tt++]=vt>>6|192,Lt[tt++]=63&vt|128):55296==(64512&vt)&&Ne+1<pt.length&&56320==(64512&pt.charCodeAt(Ne+1))?(vt=65536+((1023&vt)<<10)+(1023&pt.charCodeAt(++Ne)),Lt[tt++]=vt>>18|240,Lt[tt++]=vt>>12&63|128,Lt[tt++]=vt>>6&63|128,Lt[tt++]=63&vt|128):(Lt[tt++]=vt>>12|224,Lt[tt++]=vt>>6&63|128,Lt[tt++]=63&vt|128)}return Lt},u={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(pt,Lt){if(!Array.isArray(pt))throw Error("encodeByteArray takes an array as a parameter");this.init_();const tt=Lt?this.byteToCharMapWebSafe_:this.byteToCharMap_,Ne=[];for(let vt=0;vt<pt.length;vt+=3){const ln=pt[vt],jn=vt+1<pt.length,Pi=jn?pt[vt+1]:0,go=vt+2<pt.length,si=go?pt[vt+2]:0;let _i=(15&Pi)<<2|si>>6,wi=63&si;go||(wi=64,jn||(_i=64)),Ne.push(tt[ln>>2],tt[(3&ln)<<4|Pi>>4],tt[_i],tt[wi])}return Ne.join("")},encodeString(pt,Lt){return this.HAS_NATIVE_SUPPORT&&!Lt?btoa(pt):this.encodeByteArray(a(pt),Lt)},decodeString(pt,Lt){return this.HAS_NATIVE_SUPPORT&&!Lt?atob(pt):function(pt){const Lt=[];let tt=0,Ne=0;for(;tt<pt.length;){const vt=pt[tt++];if(vt<128)Lt[Ne++]=String.fromCharCode(vt);else if(vt>191&&vt<224){const ln=pt[tt++];Lt[Ne++]=String.fromCharCode((31&vt)<<6|63&ln)}else if(vt>239&&vt<365){const go=((7&vt)<<18|(63&pt[tt++])<<12|(63&pt[tt++])<<6|63&pt[tt++])-65536;Lt[Ne++]=String.fromCharCode(55296+(go>>10)),Lt[Ne++]=String.fromCharCode(56320+(1023&go))}else{const ln=pt[tt++],jn=pt[tt++];Lt[Ne++]=String.fromCharCode((15&vt)<<12|(63&ln)<<6|63&jn)}}return Lt.join("")}(this.decodeStringToByteArray(pt,Lt))},decodeStringToByteArray(pt,Lt){this.init_();const tt=Lt?this.charToByteMapWebSafe_:this.charToByteMap_,Ne=[];for(let vt=0;vt<pt.length;){const ln=tt[pt.charAt(vt++)],Pi=vt<pt.length?tt[pt.charAt(vt)]:0;++vt;const si=vt<pt.length?tt[pt.charAt(vt)]:64;++vt;const pn=vt<pt.length?tt[pt.charAt(vt)]:64;if(++vt,null==ln||null==Pi||null==si||null==pn)throw new d;Ne.push(ln<<2|Pi>>4),64!==si&&(Ne.push(Pi<<4&240|si>>2),64!==pn&&Ne.push(si<<6&192|pn))}return Ne},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let pt=0;pt<this.ENCODED_VALS.length;pt++)this.byteToCharMap_[pt]=this.ENCODED_VALS.charAt(pt),this.charToByteMap_[this.byteToCharMap_[pt]]=pt,this.byteToCharMapWebSafe_[pt]=this.ENCODED_VALS_WEBSAFE.charAt(pt),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[pt]]=pt,pt>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(pt)]=pt,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(pt)]=pt)}}};
/**
         * @license
         * Copyright 2017 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */class d extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const A=function(pt){return function(pt){const Lt=a(pt);return u.encodeByteArray(Lt,!0)}(pt).replace(/\./g,"")};
/**
         * @license
         * Copyright 2017 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */function R(pt,Lt){if(!(Lt instanceof Object))return Lt;switch(Lt.constructor){case Date:return new Date(Lt.getTime());case Object:void 0===pt&&(pt={});break;case Array:pt=[];break;default:return Lt}for(const tt in Lt)!Lt.hasOwnProperty(tt)||!x(tt)||(pt[tt]=R(pt[tt],Lt[tt]));return pt}function x(pt){return"__proto__"!==pt}
/**
         * @license
         * Copyright 2022 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
/**
         * @license
         * Copyright 2022 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
const M=()=>{try{return function f(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const pt=process.env.__FIREBASE_DEFAULTS__;return pt?JSON.parse(pt):void 0})()||(()=>{if(typeof document>"u")return;let pt;try{pt=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const Lt=pt&&function(pt){try{return u.decodeString(pt,!0)}catch(Lt){console.error("base64Decode failed: ",Lt)}return null}(pt[1]);return Lt&&JSON.parse(Lt)})()}catch(pt){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${pt}`)}},b=()=>{var pt;return null===(pt=M())||void 0===pt?void 0:pt.config};
/**
         * @license
         * Copyright 2017 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */class L{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((Lt,tt)=>{this.resolve=Lt,this.reject=tt})}wrapCallback(Lt){return(tt,Ne)=>{tt?this.reject(tt):this.resolve(Ne),"function"==typeof Lt&&(this.promise.catch(()=>{}),1===Lt.length?Lt(tt):Lt(tt,Ne))}}}
/**
         * @license
         * Copyright 2021 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */function U(){return typeof window<"u"||V()}function V(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}function te(){try{return"object"==typeof indexedDB}catch{return!1}}function j(){return new Promise((pt,Lt)=>{try{let tt=!0;const Ne="validate-browser-context-for-indexeddb-analytics-module",vt=self.indexedDB.open(Ne);vt.onsuccess=()=>{vt.result.close(),tt||self.indexedDB.deleteDatabase(Ne),pt(!0)},vt.onupgradeneeded=()=>{tt=!1},vt.onerror=()=>{var ln;Lt((null===(ln=vt.error)||void 0===ln?void 0:ln.message)||"")}}catch(tt){Lt(tt)}})}function H(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}
/**
         * @license
         * Copyright 2017 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */class q extends Error{constructor(Lt,tt,Ne){super(tt),this.code=Lt,this.customData=Ne,this.name="FirebaseError",Object.setPrototypeOf(this,q.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,se.prototype.create)}}class se{constructor(Lt,tt,Ne){this.service=Lt,this.serviceName=tt,this.errors=Ne}create(Lt,...tt){const Ne=tt[0]||{},vt=`${this.service}/${Lt}`,ln=this.errors[Lt],jn=ln?function ne(pt,Lt){return pt.replace(_e,(tt,Ne)=>{const vt=Lt[Ne];return null!=vt?String(vt):`<${Ne}?>`})}(ln,Ne):"Error";return new q(vt,`${this.serviceName}: ${jn} (${vt}).`,Ne)}}const _e=/\{\$([^}]+)}/g;
/**
         * @license
         * Copyright 2017 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
/**
         * @license
         * Copyright 2017 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
function Le(pt,Lt){return Object.prototype.hasOwnProperty.call(pt,Lt)}function $n(pt,Lt){if(pt===Lt)return!0;const tt=Object.keys(pt),Ne=Object.keys(Lt);for(const vt of tt){if(!Ne.includes(vt))return!1;const ln=pt[vt],jn=Lt[vt];if(xn(ln)&&xn(jn)){if(!$n(ln,jn))return!1}else if(ln!==jn)return!1}for(const vt of Ne)if(!tt.includes(vt))return!1;return!0}function xn(pt){return null!==pt&&"object"==typeof pt}
/**
         * @license
         * Copyright 2022 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */function fn(pt,Lt){const tt=new yi(pt,Lt);return tt.subscribe.bind(tt)}class yi{constructor(Lt,tt){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=tt,this.task.then(()=>{Lt(this)}).catch(Ne=>{this.error(Ne)})}next(Lt){this.forEachObserver(tt=>{tt.next(Lt)})}error(Lt){this.forEachObserver(tt=>{tt.error(Lt)}),this.close(Lt)}complete(){this.forEachObserver(Lt=>{Lt.complete()}),this.close()}subscribe(Lt,tt,Ne){let vt;if(void 0===Lt&&void 0===tt&&void 0===Ne)throw new Error("Missing Observer.");vt=function Mi(pt,Lt){if("object"!=typeof pt||null===pt)return!1;for(const tt of Lt)if(tt in pt&&"function"==typeof pt[tt])return!0;return!1}(Lt,["next","error","complete"])?Lt:{next:Lt,error:tt,complete:Ne},void 0===vt.next&&(vt.next=mi),void 0===vt.error&&(vt.error=mi),void 0===vt.complete&&(vt.complete=mi);const ln=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?vt.error(this.finalError):vt.complete()}catch{}}),this.observers.push(vt),ln}unsubscribeOne(Lt){void 0===this.observers||void 0===this.observers[Lt]||(delete this.observers[Lt],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(Lt){if(!this.finalized)for(let tt=0;tt<this.observers.length;tt++)this.sendOne(tt,Lt)}sendOne(Lt,tt){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[Lt])try{tt(this.observers[Lt])}catch(Ne){typeof console<"u"&&console.error&&console.error(Ne)}})}close(Lt){this.finalized||(this.finalized=!0,void 0!==Lt&&(this.finalError=Lt),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function mi(){}
/**
         * @license
         * Copyright 2017 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
/**
         * @license
         * Copyright 2021 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
function Mt(pt){return pt&&pt._delegate?pt._delegate:pt}},10040:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(60247);y.default={framework:"bootstrap3",templates:e.default}},35668:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";for(var l in n+="<div\n  ",i.attrs)n+="\n    "+(null==(e=l)?"":e)+'="'+(null==(e=i.attrs[l])?"":e)+'"\n  ';return n+"\n>"+(null==(e=i.message)?"":e)+"</div>\n"}},20761:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(35668);y.default={form:e.default}},86598:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="builder-component" ref="dragComponent">\n  ',i.disableBuilderActions||(n+='\n    <div class="component-btn-group" data-noattach="true">\n      <div class="btn btn-xxs btn-danger component-settings-button component-settings-button-remove" ref="removeComponent">\n        <i class="'+(null==(e=i.iconClass("remove"))?"":e)+'"></i>\n      </div>\n      <div class="btn btn-xxs btn-default component-settings-button component-settings-button-copy" ref="copyComponent">\n        <i class="'+(null==(e=i.iconClass("copy"))?"":e)+'"></i>\n      </div>\n      <div class="btn btn-xxs btn-default component-settings-button component-settings-button-paste" ref="pasteComponent">\n        <i class="'+(null==(e=i.iconClass("save"))?"":e)+'"></i>\n      </div>\n      <div class="btn btn-xxs btn-default component-settings-button component-settings-button-edit-json" ref="editJson">\n        <i class="'+(null==(e=i.iconClass("wrench"))?"":e)+'"></i>\n      </div>\n      <div class="btn btn-xxs btn-default component-settings-button component-settings-button-move" ref="moveComponent">\n        <i class="'+(null==(e=i.iconClass("move"))?"":e)+'"></i>\n      </div>\n      <div class="btn btn-xxs btn-default component-settings-button component-settings-button-edit", ref="editComponent">\n        <i class="'+(null==(e=i.iconClass("cog"))?"":e)+'"></i>\n      </div>\n    </div>\n  '),n+"\n  "+(null==(e=i.html)?"":e)+"\n</div>\n"}},71165:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(86598);y.default={form:e.default}},75425:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="builder-components drag-container formio-builder-'+(null==(e=i.type)?"":e)+'" ref="'+(null==(e=i.key)?"":e)+'-container">\n  '+(null==(e=i.html)?"":e)+"\n</div>\n"}},6145:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(75425);y.default={form:e.default}},40023:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="row">\n  <div class="col col-sm-6">\n    <p class="lead">'+(null==(e=i.t(i.componentInfo.title,{_userInput:!0}))?"":e)+" "+(null==(e=i.t("Component"))?"":e)+"</p>\n  </div>\n  ",i.helplinks&&(n+='\n  <div class="col col-sm-6">\n    <div class="pull-right" style="margin-right: 20px; margin-top: 10px">\n      <a href="'+(null==(e=i.t(i.helplinks+i.componentInfo.documentation))?"":e)+'" target="_blank">\n        <i class="'+(null==(e=i.iconClass("new-window"))?"":e)+'"> '+(null==(e=i.t("Help"))?"":e)+"</i>\n      </a>\n    </div>\n  </div>\n"),n+='\n</div>\n<div class="row component-edit-content">\n  <div class="col component-edit-tabs ',n+=i.preview?"col-sm-6":"col-sm-12",n+='">\n    <div class="editForm" ref="editForm">\n      '+(null==(e=i.editForm)?"":e)+"\n    </div>\n    ",i.preview||(n+='\n    <div style="margin-top: 10px;">\n      <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(e=i.t("Save"))?"":e)+'</button>\n      <button class="btn btn-default" style="margin-right: 10px;" ref="cancelButton">'+(null==(e=i.t("Cancel"))?"":e)+'</button>\n      <button class="btn btn-danger" ref="removeButton">'+(null==(e=i.t("Remove"))?"":e)+"</button>\n    </div>\n    "),n+="\n  </div>\n  ",i.preview&&(n+='\n  <div class="col col-sm-6">\n    <div class="panel panel-default preview-panel">\n      <div class="panel-heading">\n        <h3 class="panel-title">'+(null==(e=i.t("Preview"))?"":e)+'</h3>\n      </div>\n      <div class="panel-body">\n        <div class="component-preview" ref="preview">\n          '+(null==(e=i.preview)?"":e)+"\n        </div>\n      </div>\n    </div>\n    ",i.componentInfo.help&&(n+='\n    <div class="well formio-settings-help">\n      '+(null==(e=i.componentInfo.help)?"":e)+"\n    </div>\n    "),n+='\n    <div style="margin-top: 10px;">\n      <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(e=i.t("Save"))?"":e)+'</button>\n      <button class="btn btn-default" style="margin-right: 10px;" ref="cancelButton">'+(null==(e=i.t("Cancel"))?"":e)+'</button>\n      <button class="btn btn-danger" ref="removeButton">'+(null==(e=i.t("Remove"))?"":e)+"</button>\n    </div>\n  </div>\n  "),n+"\n</div>\n"}},22208:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(40023);y.default={form:e.default}},75944:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div\n  class="alert alert-info no-drag"\n  style="text-align:center; margin-bottom: 5px;"\n  role="alert"\n  data-noattach="true"\n  data-position="'+(null==(e=i.position)?"":e)+'"\n>\n  '+(null==(e=i.t("Drag and Drop a form component"))?"":e)+"\n</div>\n"}},18162:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(75944);y.default={form:e.default}},11207:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="panel panel-default form-builder-panel" ref="group-panel-'+(null==(e=i.groupKey)?"":e)+'">\n  <div class="panel-heading form-builder-group-header">\n    <h5 class="panel-title">\n      <button\n        class="btn btn-block builder-group-button"\n        type="button"\n        data-toggle="collapse"\n        data-target="#group-'+(null==(e=i.groupKey)?"":e)+'"\n        data-parent="#'+(null==(e=i.groupId)?"":e)+'"\n        href="#group-'+(null==(e=i.groupKey)?"":e)+'"\n        ref="sidebar-anchor"\n      >\n        '+(null==(e=i.t(i.group.title,{_userInput:!0}))?"":e)+'\n      </button>\n    </h5>\n  </div>\n  <div\n    id="group-'+(null==(e=i.groupKey)?"":e)+'"\n    class="panel-collapse collapse'+(null==(e=i.group.default?" in":"")?"":e)+'"\n    data-parent="#'+(null==(e=i.groupId)?"":e)+'"\n    data-default="'+(null==(e=i.group.default)?"":e)+'"\n    ref="sidebar-group"\n  >\n    <div id="group-container-'+(null==(e=i.groupKey)?"":e)+'" class="panel-body no-drop" ref="sidebar-container">\n      ',i.group.componentOrder.length||i.subgroups.length?(n+="\n        ",i.group.componentOrder.forEach(function(l){n+='\n          <span\n            data-group="'+(null==(e=i.groupKey)?"":e)+'"\n            data-key="'+(null==(e=i.group.components[l].key)?"":e)+'"\n            data-type="'+(null==(e=i.group.components[l].schema.type)?"":e)+'"\n            class="btn btn-primary btn-xs btn-block formcomponent drag-copy"\n          >\n            ',i.group.components[l].icon&&(n+='\n              <i class="'+(null==(e=i.iconClass(i.group.components[l].icon))?"":e)+'" style="margin-right: 5px;"></i>\n            '),n+="\n            "+(null==(e=i.t(i.group.components[l].title,{_userInput:!0}))?"":e)+"\n          </span>\n        "}),n+="\n        "+(null==(e=i.subgroups.join(""))?"":e)+"\n      "):n+="\n        <div>"+(null==(e=i.t("No Matches Found"))?"":e)+"</div>\n      ",n+="\n    </div>\n  </div>\n</div>\n\n"}},55783:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(11207);y.default={form:e.default}},23690:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="builder-sidebar'+(null==(e=i.scrollEnabled?" builder-sidebar_scroll":"")?"":e)+'" ref="sidebar">\n  <input class="form-control builder-sidebar_search" type="search" ref="sidebar-search" placeholder="Search field(s)" />\n  <div id="'+(null==(e=i.groupId)?"":e)+'" class="panel-group" ref="sidebar-groups">\n    ',i.groups.forEach(function(l){n+="\n      "+(null==(e=l)?"":e)+"\n    "}),n+="\n  </div>\n</div>\n"}},63918:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(23690);y.default={form:e.default}},56623:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="formio builder row formbuilder">\n  <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n    '+(null==(e=i.sidebar)?"":e)+'\n  </div>\n  <div class="col-xs-8 col-sm-9 col-md-10 formarea" ref="form">\n    '+(null==(e=i.form)?"":e)+"\n  </div>\n</div>\n"}},94244:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(56623);y.default={form:e.default}},42634:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return i.component.columns.forEach(function(l,u){n+='\n<div class="col\n    col-'+(null==(e=l.size)?"":e)+"-"+(null==(e=l.width)?"":e)+"\n    col-"+(null==(e=l.size)?"":e)+"-offset-"+(null==(e=l.offset)?"":e)+"\n    col-"+(null==(e=l.size)?"":e)+"-push-"+(null==(e=l.push)?"":e)+"\n    col-"+(null==(e=l.size)?"":e)+"-pull-"+(null==(e=l.pull)?"":e)+'\n  " ref="'+(null==(e=i.columnKey)?"":e)+'">\n  '+(null==(e=i.columnComponents[u])?"":e)+"\n</div>\n"}),n+="\n"}},47691:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(42634);y.default={form:e.default}},68818:(he,y)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.default={"formio-tab-panel-active":"active","formio-tab-link-active":"active","formio-tab-link-container-active":"active"}},67426:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<table class="table datagrid-table table-bordered\n    '+(null==(e=i.component.striped?"table-striped":"")?"":e)+"\n    "+(null==(e=i.component.hover?"table-hover":"")?"":e)+"\n    "+(null==(e=i.component.condensed?"table-condensed":"")?"":e)+'\n    " ',i.component.layoutFixed&&(n+='style="table-layout: fixed;"'),n+=">\n  ",i.hasHeader&&(n+="\n  <thead>\n    <tr>\n      ",i.component.reorder&&(n+="<th></th>"),n+="\n      ",i.columns.forEach(function(l){n+='\n        <th class="'+(null==(e=l.validate&&l.validate.required?"field-required":"")?"":e)+'">\n          '+(null==(e=l.hideLabel?"":i.t(l.label||l.title,{_userInput:!0}))?"":e)+"\n          ",l.tooltip&&(n+=' <i ref="tooltip" data-title="'+(null==(e=l.tooltip)?"":e)+'" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=l.tooltip)?"":e)+'"></i>'),n+="\n        </th>\n      "}),n+="\n      ",i.hasExtraColumn&&(n+="\n      <th>\n        ",!i.builder&&i.hasAddButton&&i.hasTopSubmit&&(n+='\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(e=i.datagridKey)?"":e)+'-addRow">\n          <i class="'+(null==(e=i.iconClass("plus"))?"":e)+'"></i> '+(null==(e=i.t(i.component.addAnother||"Add Another",{_userInput:!0}))?"":e)+"\n        </button>\n        "),n+="\n      </th>\n      "),n+="\n    </tr>\n  </thead>\n  "),n+='\n  <tbody ref="'+(null==(e=i.datagridKey)?"":e)+'-tbody" data-key="'+(null==(e=i.datagridKey)?"":e)+'">\n    ',i.rows.forEach(function(l,u){n+="\n    ",i.hasGroups&&i.groups[u]&&(n+='\n    <tr ref="'+(null==(e=i.datagridKey)?"":e)+'-group-header" class="datagrid-group-header'+(null==(e=i.hasToggle?" clickable":"")?"":e)+'">\n      <td\n        ref="'+(null==(e=i.datagridKey)?"":e)+'-group-label"\n        colspan="'+(null==(e=i.numColumns)?"":e)+'"\n        class="datagrid-group-label">'+(null==(e=i.groups[u].label)?"":e)+"</td>\n    </tr>\n    "),n+='\n    <tr ref="'+(null==(e=i.datagridKey)?"":e)+'-row">\n      ',i.component.reorder&&(n+='\n        <td class="col-md-1">\n          <button type="button" class="formio-drag-button btn btn-default fa fa-bars" data-key="'+(null==(e=i.datagridKey)?"":e)+'"></button>\n        </td>\n      '),n+="\n      ",i.columns.forEach(function(d){n+='\n        <td ref="'+(null==(e=i.datagridKey)?"":e)+'">\n          '+(null==(e=l[d.key])?"":e)+"\n        </td>\n      "}),n+="\n      ",i.hasExtraColumn&&(n+="\n        ",i.hasRemoveButtons&&(n+='\n        <td class="col-md-1">\n          <button type="button" class="btn btn-default formio-button-remove-row" ref="'+(null==(e=i.datagridKey)?"":e)+'-removeRow">\n            <i class="'+(null==(e=i.iconClass("remove-circle"))?"":e)+'"></i>\n          </button>\n        </td>\n        '),n+="\n        ",i.canAddColumn&&(n+='\n        <td ref="'+(null==(e=i.key)?"":e)+'-container" class="col-md-3">\n          '+(null==(e=i.placeholder)?"":e)+"\n        </td>\n        "),n+="\n      "),n+="\n    </tr>\n    "}),n+="\n  </tbody>\n  ",i.hasAddButton&&i.hasBottomSubmit&&(n+='\n  <tfoot>\n    <tr>\n      <td colspan="'+(null==(e=i.component.layoutFixed?i.numColumns:i.numColumns+1)?"":e)+'">\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(e=i.datagridKey)?"":e)+'-addRow">\n          <i class="'+(null==(e=i.iconClass("plus"))?"":e)+'"></i> '+(null==(e=i.t(i.component.addAnother||"Add Another",{_userInput:!0}))?"":e)+"\n        </button>\n      </td>\n    </tr>\n  </tfoot>\n  "),n+="\n</table>\n"}},58622:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<table class="table datagrid-table table-bordered\n    '+(null==(e=component.striped?"table-striped":"")?"":e)+"\n    "+(null==(e=component.hover?"table-hover":"")?"":e)+"\n    "+(null==(e=component.condensed?"table-condensed":"")?"":e)+'\n    ">\n  ',hasHeader&&(n+="\n  <thead>\n    <tr>\n      ",columns.forEach(function(l){n+='\n        <th class="'+(null==(e=l.validate&&l.validate.required?"field-required":"")?"":e)+'">\n          '+(null==(e=l.hideLabel?"":t(l.label||l.title))?"":e)+"\n          ",l.tooltip&&(n+=' <i ref="tooltip" data-title="'+(null==(e=l.tooltip)?"":e)+'" class="'+(null==(e=iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=l.tooltip)?"":e)+'"></i>'),n+="\n        </th>\n      "}),n+="\n    </tr>\n  </thead>\n  "),n+="\n  <tbody>\n    ",rows.forEach(function(l){n+="\n    <tr>\n      ",columns.forEach(function(u){n+='\n        <td ref="'+(null==(e=datagridKey)?"":e)+'">\n          '+(null==(e=l[u.key])?"":e)+"\n        </td>\n      "}),n+="\n    </tr>\n    "}),n+="\n  </tbody>\n</table>\n"}},61966:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(67426),n=i(58622);y.default={form:e.default,html:n.default}},822:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="row">\n  ',i.dayFirst&&i.showDay&&(n+='\n  <div class="form-group col col-xs-3">\n    ',i.component.hideInputLabels||(n+='\n    <label for="'+(null==(e=i.component.key)?"":e)+'-day" class="',i.component.fields.day.required&&(n+="field-required"),n+='">'+(null==(e=i.t("Day"))?"":e)+"</label>\n    "),n+="\n    <div>"+(null==(e=i.day)?"":e)+"</div>\n  </div>\n  "),n+="\n  ",i.showMonth&&(n+='\n  <div class="form-group col col-xs-4">\n    ',i.component.hideInputLabels||(n+='\n    <label for="'+(null==(e=i.component.key)?"":e)+'-month" class="',i.component.fields.month.required&&(n+="field-required"),n+='">'+(null==(e=i.t("Month"))?"":e)+"</label>\n    "),n+="\n    <div>"+(null==(e=i.month)?"":e)+"</div>\n  </div>\n  "),n+="\n  ",!i.dayFirst&&i.showDay&&(n+='\n  <div class="form-group col col-xs-3">\n    ',i.component.hideInputLabels||(n+='\n    <label for="'+(null==(e=i.component.key)?"":e)+'-day" class="',i.component.fields.day.required&&(n+="field-required"),n+='">'+(null==(e=i.t("Day"))?"":e)+"</label>\n    "),n+="\n    <div>"+(null==(e=i.day)?"":e)+"</div>\n  </div>\n  "),n+="\n  ",i.showYear&&(n+='\n  <div class="form-group col col-xs-5">\n    ',i.component.hideInputLabels||(n+='\n    <label for="'+(null==(e=i.component.key)?"":e)+'-year" class="',i.component.fields.year.required&&(n+="field-required"),n+='">'+(null==(e=i.t("Year"))?"":e)+"</label>\n    "),n+="\n    <div>"+(null==(e=i.year)?"":e)+"</div>\n  </div>\n  "),n+'\n</div>\n<input name="data[day]" type="hidden" class="form-control" lang="en" value="" ref="input">\n'}},70120:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(822);y.default={form:e.default}},12705:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){return'<div class="formio-dialog formio-dialog-theme-default component-settings">\n  <div class="formio-dialog-overlay" ref="dialogOverlay"></div>\n  <div class="formio-dialog-content" ref="dialogContents">\n    <div ref="dialogContents"></div>\n    <button class="formio-dialog-close pull-right btn btn-default btn-xs" aria-label="close" ref="dialogClose"></button>\n  </div>\n</div>\n'}},48305:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(12705);y.default={form:e.default}},74976:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<ul class="editgrid-listgroup list-group\n    '+(null==(e=i.component.striped?"table-striped":"")?"":e)+"\n    "+(null==(e=i.component.bordered?"table-bordered":"")?"":e)+"\n    "+(null==(e=i.component.hover?"table-hover":"")?"":e)+"\n    "+(null==(e=i.component.condensed?"table-condensed":"")?"":e)+'\n    ">\n  ',i.header&&(n+='\n  <li class="list-group-item list-group-header">\n    '+(null==(e=i.header)?"":e)+"\n  </li>\n  "),n+="\n  ",i.rows.forEach(function(l,u){n+='\n  <li class="list-group-item" ref="'+(null==(e=i.ref.row)?"":e)+'">\n    '+(null==(e=l)?"":e)+"\n    ",i.openRows[u]&&!i.readOnly&&(n+='\n    <div class="editgrid-actions">\n      <button class="btn btn-primary" ref="'+(null==(e=i.ref.saveRow)?"":e)+'">'+(null==(e=i.t(i.component.saveRow||"Save",{_userInput:!0}))?"":e)+"</button>\n      ",i.component.removeRow&&(n+='\n      <button class="btn btn-danger" ref="'+(null==(e=i.ref.cancelRow)?"":e)+'">'+(null==(e=i.t(i.component.removeRow||"Cancel",{_userInput:!0}))?"":e)+"</button>\n      "),n+="\n    </div>\n    "),n+='\n    <div class="has-error">\n      <div class="editgrid-row-error help-block">\n        '+(null==(e=i.errors[u])?"":e)+"\n      </div>\n    </div>\n  </li>\n  "}),n+="\n  ",i.footer&&(n+='\n  <li class="list-group-item list-group-footer">\n    '+(null==(e=i.footer)?"":e)+"\n  </li>\n  "),n+="\n</ul>\n",!i.readOnly&&i.hasAddButton&&(n+='\n<button class="btn btn-primary formio-button-add-another" ref="'+(null==(e=i.ref.addRow)?"":e)+'">\n  <i class="'+(null==(e=i.iconClass("plus"))?"":e)+'"></i> '+(null==(e=i.t(i.component.addAnother||"Add Another",{_userInput:!0}))?"":e)+"\n</button>\n"),n+="\n"}},89499:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<ul class="editgrid-listgroup list-group\n    '+(null==(e=i.component.striped?"table-striped":"")?"":e)+"\n    "+(null==(e=i.component.bordered?"table-bordered":"")?"":e)+"\n    "+(null==(e=i.component.hover?"table-hover":"")?"":e)+"\n    "+(null==(e=i.component.condensed?"table-sm":"")?"":e)+'\n    ">\n  ',i.header&&(n+='\n  <li class="list-group-item list-group-header">\n    '+(null==(e=i.header)?"":e)+"\n  </li>\n  "),n+="\n  ",i.rows.forEach(function(l,u){n+='\n  <li class="list-group-item" ref="'+(null==(e=i.ref.row)?"":e)+'">\n    '+(null==(e=l)?"":e)+"\n    ",i.openRows[u]&&!i.readOnly&&(n+='\n    <div class="editgrid-actions">\n      <button class="btn btn-primary" ref="'+(null==(e=i.ref.saveRow)?"":e)+'">'+(null==(e=i.t(i.component.saveRow||"Save",{_userInput:!0}))?"":e)+"</button>\n      ",i.component.removeRow&&(n+='\n      <button class="btn btn-danger" ref="'+(null==(e=i.ref.cancelRow)?"":e)+'">'+(null==(e=i.t(i.component.removeRow||"Cancel",{_userInput:!0}))?"":e)+"</button>\n      "),n+="\n    </div>\n    "),n+='\n    <div class="has-error">\n      <div class="editgrid-row-error help-block">\n        '+(null==(e=i.errors[u])?"":e)+"\n      </div>\n    </div>\n  </li>\n  "}),n+="\n  ",i.footer&&(n+='\n  <li class="list-group-item list-group-footer">\n    '+(null==(e=i.footer)?"":e)+"\n  </li>\n  "),n+="\n</ul>\n"}},42511:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(74976),n=i(89499);y.default={form:e.default,html:n.default}},23992:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+="<p>"+(null==(e=i.t("error"))?"":e)+"</p>\n<ul>\n  ",i.errors.forEach(function(l){n+='\n    <li\n      data-component-key = "'+(null==(e=l.keyOrPath)?"":e)+'"\n      aria-label = "'+(null==(e=l.message)?"":e)+". "+(null==(e=i.t("errorsListNavigationMessage"))?"":e)+'"\n      ref = "errorRef"\n      tabIndex = "0",\n      style = "cursor:pointer;"\n    ><span>'+(null==(e=l.message)?"":e)+"</span></li>\n  "}),n+="\n</ul>\n"}},70931:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(23992);y.default={form:e.default}},62634:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="field-wrapper\n  '+(null==(e=i.isRightPosition?"field-wrapper--reverse":"")?"":e)+'">\n  ',i.label.hidden||(n+='\n    <div class="field-label\n      '+(null==(e=i.isRightAlign?"field-label--right":"")?"":e)+'"\n      style="'+(null==(e=i.labelStyles)?"":e)+'">\n    '+(null==(e=i.labelMarkup)?"":e)+"\n    </div>\n  "),n+="\n\n  ",i.label.hidden&&i.label.className&&i.component.validate.required&&(n+='\n    <div class="field-label\n      '+(null==(e=i.isRightAlign?"field-label--right":"")?"":e)+'"\n      style="'+(null==(e=i.labelStyles)?"":e)+'">\n      <label class="'+(null==(e=i.label.className)?"":e)+'"></label>\n    </div>\n  '),n+='\n\n  <div class="filed-content" style="'+(null==(e=i.contentStyles)?"":e)+'">\n    '+(null==(e=i.element)?"":e)+"\n  </div>\n</div>\n\n",i.component.description&&(n+='\n  <div class="form-text text-muted">'+(null==(e=i.t(i.component.description,{_userInput:!0}))?"":e)+"</div>\n"),n+"\n"}},88218:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return!i.label.hidden&&"bottom"!==i.label.labelPosition&&(n+="\n  "+(null==(e=i.labelMarkup)?"":e)+"\n"),n+="\n\n",i.label.hidden&&i.label.className&&i.component.validate.required&&(n+='\n  <label class="'+(null==(e=i.label.className)?"":e)+'"></label>\n'),n+="\n\n"+(null==(e=i.element)?"":e)+"\n",!i.label.hidden&&"bottom"===i.label.labelPosition&&(n+="\n  "+(null==(e=i.labelMarkup)?"":e)+"\n"),n+="\n",i.component.description&&(n+='\n  <div class="help-block">'+(null==(e=i.t(i.component.description,{_userInput:!0}))?"":e)+"</div>\n"),n+"\n"}},91071:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(62634),n=i(88218);y.default={align:e.default,form:n.default}},37978:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return i.self.imageUpload?(n+="\n  <div>\n    ",i.files.forEach(function(l){n+='\n      <div>\n        <span>\n          <img ref="fileImage" src="" alt="'+(null==(e=l.originalName||l.name)?"":e)+'" style="width:'+(null==(e=i.component.imageSize)?"":e)+'px">\n          ',i.disabled||(n+='\n            <i class="'+(null==(e=i.iconClass("remove"))?"":e)+'" ref="removeLink"></i>\n          '),n+="\n        </span>\n      </div>\n    "}),n+="\n  </div>\n"):(n+='\n  <ul class="list-group list-group-striped">\n    <li class="list-group-item list-group-header hidden-xs hidden-sm">\n      <div class="row">\n        ',i.disabled||(n+='\n          <div class="col-md-1"></div>\n        '),n+='\n        <div class="col-md-',n+=i.self.hasTypes?"7":"9",n+='"><strong>'+(null==(e=i.t("File Name"))?"":e)+'</strong></div>\n        <div class="col-md-2"><strong>'+(null==(e=i.t("Size"))?"":e)+"</strong></div>\n        ",i.self.hasTypes&&(n+='\n          <div class="col-md-2"><strong>'+(null==(e=i.t("Type"))?"":e)+"</strong></div>\n        "),n+="\n      </div>\n    </li>\n    ",i.files.forEach(function(l){n+='\n      <li class="list-group-item">\n        <div class="row">\n          ',i.disabled||(n+='\n            <div class="col-md-1"><i class="'+(null==(e=i.iconClass("remove"))?"":e)+'" ref="removeLink"></i></div>\n          '),n+='\n          <div class="col-md-',n+=i.self.hasTypes?"7":"9",n+='">\n            ',n+=i.component.uploadOnly?"\n              "+(null==(e=l.originalName||l.name)?"":e)+"\n            ":'\n              <a href="'+(null==(e=l.url||"#")?"":e)+'" target="_blank" ref="fileLink">'+(null==(e=l.originalName||l.name)?"":e)+"</a>\n            ",n+='\n          </div>\n          <div class="col-md-2">'+(null==(e=i.fileSize(l.size))?"":e)+"</div>\n          ",i.self.hasTypes&&!i.disabled&&(n+='\n            <div class="col-md-2">\n              <select class="file-type" ref="fileType" >\n                ',i.component.fileTypes.map(function(u){n+='\n                  <option class="test" value="'+(null==(e=u.value)?"":e)+'" ',u.label===l.fileType&&(n+='selected="selected"'),n+=">"+(null==(e=u.label)?"":e)+"</option>\n                "}),n+="\n              </select>\n            </div>\n          "),n+="\n          ",i.self.hasTypes&&i.disabled&&(n+='\n          <div class="col-md-2">'+(null==(e=l.fileType)?"":e)+"</div>\n          "),n+="\n        </div>\n      </li>\n    "}),n+="\n  </ul>\n"),n+="\n",!i.disabled&&(i.component.multiple||!i.files.length)&&(n+="\n  ",i.self.useWebViewCamera?n+='\n    <div class="fileSelector">\n      <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(e=i.t("Gallery"))?"":e)+'</button>\n      <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(e=i.t("Camera"))?"":e)+"</button>\n    </div>\n  ":i.self.cameraMode?n+='\n    <div class="video-container">\n      <video class="video" autoplay="true" ref="videoPlayer"></video>\n    </div>\n    <button class="btn btn-primary" ref="takePictureButton"><i class="fa fa-camera"></i> '+(null==(e=i.t("Take Picture"))?"":e)+'</button>\n    <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(e=i.t("Switch to file upload"))?"":e)+"</button>\n  ":(n+='\n    <div class="fileSelector" ref="fileDrop" '+(null==(e=i.fileDropHidden?"hidden":"")?"":e)+'>\n      <i class="'+(null==(e=i.iconClass("cloud-upload"))?"":e)+'"></i> '+(null==(e=i.t("Drop files to attach,"))?"":e)+"\n        ",i.self.imageUpload&&i.component.webcam&&(n+='\n          <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(e=i.t("Use Camera,"))?"":e)+"</a>\n        "),n+="\n        "+(null==(e=i.t("or"))?"":e)+' <a href="#" ref="fileBrowse" class="browse">'+(null==(e=i.t("browse"))?"":e)+"</a>\n    </div>\n  "),n+="\n"),n+="\n",i.statuses.forEach(function(l){n+='\n  <div class="file '+(null==(e="error"===i.statuses.status?" has-error":"")?"":e)+'">\n    <div class="row">\n      <div class="fileName col-form-label col-sm-10">'+(null==(e=l.originalName)?"":e)+' <i class="'+(null==(e=i.iconClass("remove"))?"":e)+'" ref="fileStatusRemove"></i></div>\n      <div class="fileSize col-form-label col-sm-2 text-right">'+(null==(e=i.fileSize(l.size))?"":e)+'</div>\n    </div>\n    <div class="row">\n      <div class="col-sm-12">\n        ',n+="progress"===l.status?'\n          <div class="progress">\n            <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(e=l.progress)?"":e)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(e=l.progress)?"":e)+'%">\n              <span class="sr-only">'+(null==(e=l.progress)?"":e)+"% "+(null==(e=i.t("Complete"))?"":e)+"</span>\n            </div>\n          </div>\n        ":"error"===l.status?'\n          <div class="alert alert-danger bg-'+(null==(e=l.status)?"":e)+'">'+(null==(e=i.t(l.message))?"":e)+"</div>\n        ":'\n          <div class="bg-'+(null==(e=l.status)?"":e)+'">'+(null==(e=i.t(l.message))?"":e)+"</div>\n        ",n+="\n      </div>\n    </div>\n  </div>\n"}),n+="\n",(!i.component.storage||i.support.hasWarning)&&(n+='\n  <div class="alert alert-warning">\n    ',i.component.storage||(n+="\n      <p>"+(null==(e=i.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":e)+"</p>\n    "),n+="\n    ",i.support.filereader||(n+="\n      <p>"+(null==(e=i.t("File API & FileReader API not supported."))?"":e)+"</p>\n    "),n+="\n    ",i.support.formdata||(n+="\n      <p>"+(null==(e=i.t("XHR2's FormData is not supported."))?"":e)+"</p>\n    "),n+="\n    ",i.support.progress||(n+="\n      <p>"+(null==(e=i.t("XHR2's upload progress isn't supported."))?"":e)+"</p>\n    "),n+="\n  </div>\n"),n}},27449:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(37978);y.default={form:e.default}},4536:(he,y)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i,e,n){if("fa"===i)switch(e){case"save":e="download";break;case"zoom-in":e="search-plus";break;case"zoom-out":e="search-minus";break;case"question-sign":e="question-circle";break;case"remove-circle":e="times-circle-o";break;case"new-window":e="window-restore";break;case"move":e="arrows"}return n?i+" "+i+"-"+e+" "+i+"-spin":i+" "+i+"-"+e}},83688:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<i ref="'+(null==(e=i.ref)?"":e)+'" class="'+(null==(e=i.className)?"":e)+'" style="'+(null==(e=i.styles)?"":e)+'">'+(null==(e=i.content)?"":e)+"</i>\n"}},68895:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(83688);y.default={form:e.default}},40385:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(78213),n=i(94244),o=i(71165),a=i(6145),l=i(22208),u=i(18162),d=i(63918),s=i(55783),A=i(47691),_=i(68818),C=i(61966),R=i(70120),x=i(48305),f=i(42511),k=i(91071),w=i(27449),g=i(68895),M=i(4536),p=i(11995),E=i(89558),b=i(75345),I=i(28204),L=i(20715),D=i(96261),F=i(70625),P=i(49522),O=i(20518),U=i(57659),V=i(54318),K=i(59191),X=i(86327),me=i(39509),J=i(34215),Q=i(26803),re=i(25678),de=i(1981),te=i(61697),j=i(21690),H=i(20761),z=i(70931);y.default={transform:function(q,se){return se&&"class"===q&&this.cssClasses.hasOwnProperty(se.toString())?this.cssClasses[se.toString()]:se},handleBuilderSidebarScroll:function(q){q.scrollResizeObserver&&q.scrollResizeObserver.disconnect(),q.scrollResizeObserver=new e.default(function(){setTimeout(function(){var se=q.refs,ne=se.form,_e=se.sidebar,ge=ne&&ne.parentNode&&ne.parentNode.clientHeight,Ce=_e&&_e.clientHeight,Te=_e&&_e.parentNode&&_e.parentNode.style;Te&&ge&&Ce&&(Te.height=Math.max(Ce+20,ge)+"px")})}),q.scrollResizeObserver.observe(q.refs.form),q.scrollResizeObserver.observe(q.refs.sidebar)},clearBuilderSidebarScroll:function(q){q.scrollResizeObserver&&(q.scrollResizeObserver.disconnect(),q.scrollResizeObserver=null)},defaultIconset:"glyphicon",iconClass:M.default,cssClasses:_.default,builder:n.default,builderComponent:o.default,builderComponents:a.default,builderEditForm:l.default,builderPlaceholder:u.default,builderSidebar:d.default,builderSidebarGroup:s.default,columns:A.default,datagrid:C.default,day:R.default,dialog:x.default,editgrid:f.default,field:k.default,file:w.default,icon:g.default,input:p.default,label:E.default,message:b.default,modaldialog:I.default,modaledit:L.default,multiValueRow:D.default,multiValueTable:F.default,panel:P.default,radio:O.default,resourceAdd:U.default,signature:V.default,survey:K.default,tab:X.default,table:me.default,well:J.default,wizard:Q.default,wizardHeader:re.default,wizardHeaderClassic:de.default,wizardHeaderVertical:te.default,wizardNav:j.default,errorsList:z.default,alert:H.default}},3695:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";if((i.prefix||i.suffix)&&(n+='\n<div class="input-group">\n  '),n+="\n  ",i.prefix&&(n+='\n    <div class="input-group-addon" ref="prefix">\n      ',i.prefix instanceof HTMLElement?n+="\n        "+(null==(e=i.t(i.prefix.outerHTML,{_userInput:!0}))?"":e)+"\n      ":n+="\n        "+(null==(e=i.t(i.prefix,{_userInput:!0}))?"":e)+"\n      ",n+="\n    </div>\n  "),n+="\n  ",!i.component.editor&&!i.component.wysiwyg){for(var l in n+="\n    <"+(null==(e=i.input.type)?"":e)+'\n      ref="'+(null==(e=i.input.ref?i.input.ref:"input")?"":e)+'"\n      ',i.input.attr)n+="\n        "+(null==(e=l)?"":e)+'="'+(null==(e=i.input.attr[l])?"":e)+'"\n      ';n+='\n      id="'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n    >'+(null==(e=i.input.content)?"":e)+"</"+(null==(e=i.input.type)?"":e)+">\n    ",i.hasValueMaskInput&&(n+='\n      <input ref="valueMaskInput" />\n    '),n+="\n"}return n+="\n",(i.component.editor||i.component.wysiwyg)&&(n+='\n  <div ref="input"></div>\n'),n+="\n",i.suffix&&(n+='\n  <div class="input-group-addon" ref="suffix">\n    ',i.suffix instanceof HTMLElement?n+="\n      "+(null==(e=i.t(i.suffix.outerHTML,{_userInput:!0}))?"":e)+"\n    ":n+="\n      "+(null==(e=i.t(i.suffix,{_userInput:!0}))?"":e)+"\n    ",n+="\n  </div>\n"),n+="\n",(i.prefix||i.suffix)&&(n+="\n  </div>\n"),n+="\n",i.component.showCharCount&&(n+='\n<span class="text-muted pull-right" ref="charcount"></span>\n'),n+="\n",i.component.showWordCount&&(n+='\n<span class="text-muted pull-right" ref="wordcount"></span>\n'),n+"\n"}},91168:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div ref="value">',(n+=i.value?null==(e=i.value)?"":e:"-")+"</div>\n"}},11995:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(3695),n=i(91168);y.default={form:e.default,html:n.default}},28382:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<label\n  class="control-label '+(null==(e=i.label.className)?"":e)+'"\n  for="'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n>\n  ',i.label.hidden||(n+="\n    "+(null==(e=i.t(i.component.label,{_userInput:!0}))?"":e)+"\n    ",i.component.tooltip&&(n+='\n      <i ref="tooltip" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=i.component.tooltip)?"":e)+'"></i>\n    '),n+="\n  "),n+"\n</label>\n"}},89558:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(28382);y.default={form:e.default}},13602:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<p class="help-block '+(null==(e=i.level)?"":e)+'">'+(null==(e=i.message)?"":e)+"</p>\n"}},75345:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(13602);y.default={form:e.default}},52066:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="formio-dialog formio-dialog-theme-default formio-modaledit-dialog">\n  <div ref="overlay" class="formio-dialog-overlay"></div>\n  <div ref="content" class="formio-modaledit-content">\n    <button\n      ref="close"\n      type="button"\n      role="button"\n      class="btn btn-primary btn-xs formio-modaledit-close">\n      '+(null==(e=i.t("Close"))?"":e)+'\n    </button>\n    <div ref="inner" class="reset-margins"></div>\n  </div>\n</div>\n'}},28204:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(52066);y.default={form:e.default}},50184:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div ref="container" class="formio-modaledit-view-container">\n  <button\n    ref="edit"\n    type="button"\n    role="button"\n    class="btn btn-xxs btn-warning formio-modaledit-edit">\n    <i class="'+(null==(e=i.iconClass("edit"))?"":e)+'"></i>\n  </button>\n  <div ref="input" class="modaledit-view-inner reset-margins">'+(null==(e=i.content)?"":e)+"</div>\n</div>\n"}},20715:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(50184);y.default={form:e.default}},96832:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<tr ref="row">\n  <td>\n    '+(null==(e=i.element)?"":e)+"\n  </td>\n  ",i.disabled||(n+='\n  <td>\n    <button type="button" class="btn btn-default" ref="removeRow">\n      <i class="'+(null==(e=i.iconClass("remove-circle"))?"":e)+'"></i>\n    </button>\n  </td>\n  '),n+"\n</tr>\n"}},96261:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(96832);y.default={form:e.default}},86698:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<table class="table table-bordered">\n  <tbody>\n  '+(null==(e=i.rows)?"":e)+"\n  ",i.disabled||(n+='\n  <tr>\n    <td colspan="2">\n      <button class="btn btn-primary formio-button-add-another" ref="addButton"><i class="'+(null==(e=i.iconClass("plus"))?"":e)+'"></i> '+(null==(e=i.t(i.addAnother,{_userInput:!0}))?"":e)+"</button>\n    </td>\n  </tr>\n  "),n+"\n  </tbody>\n</table>\n"}},70625:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(86698);y.default={form:e.default}},60829:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="panel panel-'+(null==(e=i.component.theme)?"":e)+'">\n  ',(!i.component.hideLabel||i.builder||i.component.collapsible||i.component.tooltip)&&(n+='\n  <div class="panel-heading"\n    ',i.component.collapsible&&(n+='\n    tabindex="0"\n    '),n+='\n    role="button"\n    aria-expanded="'+(null==(e=!i.component.collapsible||!i.collapsed)?"":e)+'"\n    aria-controls="'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n    ref="header"\n  >\n    <h4 class="mb-0 panel-title">\n      ',i.component.collapsible&&(n+='\n        <i class="formio-collapse-icon '+(null==(e=i.iconClass(i.collapsed?"plus":"minus"))?"":e)+' text-muted" data-title="Collapse Panel"></i>\n      '),n+="\n      ",(!i.component.hideLabel||i.builder)&&(n+="\n      "+(null==(e=i.t(i.component.title,{_userInput:!0}))?"":e)+"\n      "),n+="\n      ",i.component.tooltip&&(n+='\n        <i ref="tooltip" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=i.component.tooltip)?"":e)+'"></i>\n      '),n+="\n    </h4>\n  </div>\n  "),n+="\n  ",(!i.collapsed||i.builder)&&(n+='\n  <div class="panel-body" ref="'+(null==(e=i.nestedKey)?"":e)+'" id="'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'">\n    '+(null==(e=i.children)?"":e)+"\n  </div>\n  "),n+"\n</div>\n"}},49522:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(60829);y.default={form:e.default}},81468:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="input-group">\n  ',i.values.forEach(function(l){for(var u in n+='\n  <div class="'+(null==(e=i.input.attr.type)?"":e)+(null==(e=i.inline?"-inline":"")?"":e)+'" ref="wrapper">\n    <label class="control-label form-check-label label-position-'+(null==(e=i.component.optionsLabelPosition)?"":e)+'" for="'+(null==(e=i.instance.root&&i.instance.root.id)?"":e)+"-"+(null==(e=i.id)?"":e)+"-"+(null==(e=i.row)?"":e)+"-"+(null==(e=l.value)?"":e)+'">\n      ',("left"===i.component.optionsLabelPosition||"top"===i.component.optionsLabelPosition)&&(n+="\n      <span>"+(null==(e=i.t(l.label,{_userInput:!0}))?"":e)+"</span>\n      "),n+="\n      <"+(null==(e=i.input.type)?"":e)+'\n        ref="input"\n        ',i.input.attr)n+="\n        "+(null==(e=u)?"":e)+'="'+(null==(e=i.input.attr[u])?"":e)+'"\n        ';n+='\n        value="'+(null==(e=l.value)?"":e)+'"\n        ',(i.value===l.value||"object"==typeof i.value&&i.value.hasOwnProperty(l.value)&&i.value[l.value])&&(n+="\n          checked=true\n        "),n+="\n        ",l.disabled&&(n+="\n          disabled=true\n        "),n+='\n        id="'+(null==(e=i.instance.root&&i.instance.root.id)?"":e)+"-"+(null==(e=i.id)?"":e)+"-"+(null==(e=i.row)?"":e)+"-"+(null==(e=l.value)?"":e)+'"\n      >\n      ',(!i.component.optionsLabelPosition||"right"===i.component.optionsLabelPosition||"bottom"===i.component.optionsLabelPosition)&&(n+="\n      <span>"+(null==(e=i.t(l.label,{_userInput:!0}))?"":e)+"</span>\n      "),n+="\n    </label>\n  </div>\n  "}),n+="\n</div>\n"}},73810:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return(n+='<div ref="value">\n  ')+"\n  "+(null==(e=i.values.filter(function(u){return i.value===u.value||"object"==typeof i.value&&i.value.hasOwnProperty(u.value)&&i.value[u.value]}).map(function(u){return i.t(u.label,{_userInput:!0})}).join(", "))?"":e)+"\n  </div>\n"}},20518:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(81468),n=i(73810);y.default={form:e.default,html:n.default}},86826:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<table class="table table-bordered">\n  <tbody>\n    <tr>\n      <td>\n        '+(null==(e=i.element)?"":e)+'\n      </td>\n    </tr>\n    <tr>\n      <td colspan="2">\n        <button class="btn btn-primary formio-button-add-resource" ref="addResource">\n          <i class="'+(null==(e=i.iconClass("plus"))?"":e)+'"></i>\n          '+(null==(e=i.t(i.component.addResourceLabel||"Add Resource",{_userInput:!0}))?"":e)+"\n        </button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n"}},57659:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(86826);y.default={form:e.default}},48930:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+=(null==(e=i.element)?"":e)+'\n<div\n  class="signature-pad-body"\n  style="width: '+(null==(e=i.component.width)?"":e)+";height: "+(null==(e=i.component.height)?"":e)+';padding:0;margin:0;"\n  tabindex="'+(null==(e=i.component.tabindex||0)?"":e)+'"\n  ref="padBody"\n>\n\n  <a class="btn btn-sm btn-default signature-pad-refresh" ref="refresh">\n    <i class="'+(null==(e=i.iconClass("refresh"))?"":e)+'"></i>\n  </a>\n  <canvas class="signature-pad-canvas" style="display: none;" height="'+(null==(e=i.component.height)?"":e)+'" ref="canvas"></canvas>\n  ',i.required&&(n+='\n  <span class="form-control-feedback field-required-inline text-danger">\n    <i class="'+(null==(e=i.iconClass("asterisk"))?"":e)+'"></i>\n  </span>\n  '),n+='\n  <img style="width: 100%;display: inherit;" ref="signatureImage">\n</div>\n',i.component.footer&&(n+='\n  <div class="signature-pad-footer">\n    '+(null==(e=i.t(i.component.footer,{_userInput:!0}))?"":e)+"\n  </div>\n"),n+"\n"}},98736:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){return'<img style="width: 100%;" ref="signatureImage">\n'}},54318:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(48930),n=i(98736);y.default={form:e.default,html:n.default}},18556:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<table class="table table-striped table-bordered">\n  <thead>\n    <tr>\n      <th></th>\n      ',i.component.values.forEach(function(l){n+='\n      <th style="text-align: center;">\n        '+(null==(e=i.t(l.label))?"":e)+"\n        ",l.tooltip&&(n+='\n          <i ref="tooltip" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=l.tooltip)?"":e)+'"></i>\n        '),n+="\n      </th>\n      "}),n+="\n    </tr>\n  </thead>\n  <tbody>\n    ",i.component.questions.forEach(function(l){n+="\n    <tr>\n      <td>\n        "+(null==(e=i.t(l.label))?"":e)+"\n        ",l.tooltip&&(n+='\n          <i ref="tooltip" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=l.tooltip)?"":e)+'"></i>\n        '),n+="\n      </td>\n      ",i.component.values.forEach(function(u){n+='\n      <td style="text-align: center;">\n        <input type="radio" name="'+(null==(e=i.self.getInputName(l))?"":e)+'" value="'+(null==(e=u.value)?"":e)+'" id="'+(null==(e=i.key)?"":e)+"-"+(null==(e=l.value)?"":e)+"-"+(null==(e=u.value)?"":e)+'" ref="input">\n      </td>\n      '}),n+="\n    </tr>\n    "}),n+="\n  </tbody>\n</table>\n"}},6087:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<table class="table table-striped table-bordered">\n  <tbody>\n    ',i.component.questions.forEach(function(l){n+="\n    <tr>\n      <th>"+(null==(e=i.t(l.label))?"":e)+"</th>\n      <td>\n      ",i.component.values.forEach(function(u){n+="\n        ",i.value&&i.value.hasOwnProperty(l.value)&&i.value[l.value]===u.value&&(n+="\n          "+(null==(e=i.t(u.label))?"":e)+"\n        "),n+="\n      "}),n+="\n      </td>\n    </tr>\n    "}),n+="\n  </tbody>\n</table>\n"}},59191:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(18556),n=i(6087);y.default={form:e.default,html:n.default}},33548:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return i.component.components.forEach(function(l,u){n+='\n  <div class="panel panel-default">\n    <div class="panel-heading">\n      <h4 class="panel-title">'+(null==(e=i.t(l.label,{_userInput:!0}))?"":e)+'</h4>\n    </div>\n    <div class="panel-body" ref="'+(null==(e=i.tabKey)?"":e)+'">\n      '+(null==(e=i.tabComponents[u])?"":e)+"\n    </div>\n  </div>\n"}),n+="\n"}},20668:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="tab-container'+(null==(e=i.component.verticalLayout?" card-vertical":"")?"":e)+'">\n  <ul class="nav nav-tabs'+(null==(e=i.component.verticalLayout?" nav-tabs-vertical":"")?"":e)+'">\n    ',i.component.components.forEach(function(l,u){n+='\n    <li class="nav-item'+(null==(e=i.currentTab===u?" active":"")?"":e)+'" role="presentation" ref="'+(null==(e=i.tabLikey)?"":e)+'">\n      <a class="nav-link'+(null==(e=i.currentTab===u?" active":"")?"":e)+(null==(e=i.component.verticalLayout?" nav-link-vertical":"")?"":e)+'" href="#'+(null==(e=l.key)?"":e)+'" ref="'+(null==(e=i.tabLinkKey)?"":e)+'">'+(null==(e=i.t(l.label,{_userInput:!0}))?"":e)+"</a>\n    </li>\n    "}),n+='\n  </ul>\n  <div class="tab-content">\n    ',i.component.components.forEach(function(l,u){n+='\n    <div role="tabpanel" class="tab-pane'+(null==(e=i.currentTab===u?" active":"")?"":e)+'" ref="'+(null==(e=i.tabKey)?"":e)+'">'+(null==(e=i.tabComponents[u])?"":e)+"</div>\n    "}),n+="\n  </div>\n</div>\n"}},86327:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(33548),n=i(20668);y.default={flat:e.default,form:n.default}},92557:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<table class="table\n    '+(null==(e=i.component.striped?"table-striped":"")?"":e)+"\n    "+(null==(e=i.component.bordered?"table-bordered":"")?"":e)+"\n    "+(null==(e=i.component.hover?"table-hover":"")?"":e)+"\n    "+(null==(e=i.component.condensed?"table-condensed":"")?"":e)+'\n  ">\n  ',i.component.header&&i.component.header.length>0&&(n+="\n  <thead>\n    <tr>\n      ",i.component.header.forEach(function(l){n+="\n      <th>"+(null==(e=i.t(l,{_userInput:!0}))?"":e)+"</th>\n      "}),n+="\n    </tr>\n  </thead>\n  "),n+="\n  <tbody>\n    ",i.tableComponents.forEach(function(l,u){n+='\n    <tr ref="row-'+(null==(e=i.id)?"":e)+'">\n      ',l.forEach(function(d,s){n+='\n      <td ref="'+(null==(e=i.tableKey)?"":e)+"-"+(null==(e=u)?"":e)+'"',i.cellClassName&&(n+=' class="'+(null==(e=i.cellClassName)?"":e)+'"'),n+=">"+(null==(e=d)?"":e)+"</td>\n      "}),n+="\n    </tr>\n    "}),n+="\n  </tbody>\n</table>\n"}},39509:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(92557);y.default={form:e.default}},72042:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="well">\n  <div ref="'+(null==(e=i.nestedKey)?"":e)+'">\n    '+(null==(e=i.children)?"":e)+"\n  </div>\n</div>\n"}},34215:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(72042);y.default={form:e.default}},17683:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<nav aria-label="navigation" id="'+(null==(e=i.wizardKey)?"":e)+'-header">\n  <div class="classic-pagination row" style="border-bottom:0;">\n    ',i.panels.forEach(function(l,u){n+='\n      <div class="classic-pagination-page col-xs-12 col-sm-6 col-md-3\n          '+(null==(e=i.currentPage<u?" disabled":"")?"":e)+"\n          "+(null==(e=i.currentPage===u?" active":"")?"":e)+"\n          "+(null==(e=i.currentPage>u?" complete":"")?"":e)+'">\n        <div class="text-center classic-pagination-title">'+(null==(e=i.t(l.title,{_userInput:!0}))?"":e)+"</div>\n        ",i.panels.length>1&&(n+='\n          <div class="progress"><div class="progress-bar"></div></div>\n        '),n+=' \n        <span ref="'+(null==(e=i.wizardKey)?"":e)+'-link" class="classic-pagination-dot"></span>\n      </div>\n    '}),n+="\n  </div>\n</nav>\n"}},1981:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(17683);y.default={form:e.default}},61396:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<nav aria-label="navigation" id="'+(null==(e=i.wizardKey)?"":e)+'-header">\n  <ul class="pagination">\n    ',i.panels.forEach(function(l,u){n+='\n    <li class="col-sm-offset-3 col-sm-6 col-md-offset-0 col-md-12 page-item'+(null==(e=i.currentPage===u?" active":"")?"":e)+'" style="cursor: pointer;">\n      <span class="page-link" ref="'+(null==(e=i.wizardKey)?"":e)+'-link" style="margin: 0px 0px 5px;">\n        '+(null==(e=i.t(l.title,{_userInput:!0}))?"":e)+"\n        ",l.tooltip&&i.currentPage===u&&(n+='\n        <i ref="'+(null==(e=i.wizardKey)?"":e)+'-tooltip" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=l.tooltip)?"":e)+'"></i>\n        '),n+="\n      </span>\n    </li>\n    "}),n+="\n  </ul>\n</nav>\n"}},61697:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(61396);y.default={form:e.default}},78014:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<nav aria-label="navigation" id="'+(null==(e=i.wizardKey)?"":e)+'-header" ref="'+(null==(e=i.wizardKey)?"":e)+'-header">\n  <ul class="pagination">\n    ',i.panels.forEach(function(l,u){n+='\n    <li class="page-item'+(null==(e=i.currentPage===u?" active":"")?"":e)+'" style="">\n      <span class="page-link" ref="'+(null==(e=i.wizardKey)?"":e)+'-link">\n        '+(null==(e=i.t(l.title,{_userInput:!0}))?"":e)+"\n        ",l.tooltip&&i.currentPage===u&&(n+='\n        <i ref="'+(null==(e=i.wizardKey)?"":e)+'-tooltip" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=l.tooltip)?"":e)+'"></i>\n        '),n+="\n      </span>\n    </li>\n    "}),n+="\n  </ul>\n</nav>\n"}},25678:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(78014);y.default={form:e.default}},64771:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<ul class="list-inline" id="'+(null==(e=i.wizardKey)?"":e)+'-nav">\n  ',i.buttons.cancel&&(n+='\n  <li class="list-inline-item">\n    <button class="btn btn-default btn-wizard-nav-cancel" ref="'+(null==(e=i.wizardKey)?"":e)+'-cancel">'+(null==(e=i.t("cancel"))?"":e)+"</button>\n  </li>\n  "),n+="\n  ",i.buttons.previous&&(n+='\n  <li class="list-inline-item">\n    <button class="btn btn-primary btn-wizard-nav-previous" ref="'+(null==(e=i.wizardKey)?"":e)+'-previous">'+(null==(e=i.t("previous"))?"":e)+"</button>\n  </li>\n  "),n+="\n  ",i.buttons.next&&(n+='\n  <li class="list-inline-item">\n    <button class="btn btn-primary btn-wizard-nav-next" ref="'+(null==(e=i.wizardKey)?"":e)+'-next">'+(null==(e=i.t("next"))?"":e)+"</button>\n  </li>\n  "),n+="\n  ",i.buttons.submit&&(n+='\n  <li class="list-inline-item">\n    <button class="btn btn-primary btn-wizard-nav-submit" ref="'+(null==(e=i.wizardKey)?"":e)+'-submit">'+(null==(e=i.t("submit"))?"":e)+"</button>\n  </li>\n  "),n+"\n</ul>\n"}},21690:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(64771);y.default={form:e.default}},17302:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="text-muted text-center">'+(null==(e=i.t(i.component.title,{_userInput:!0}))?"":e)+"</div>\n"}},70809:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="'+(null==(e=i.className)?"":e)+'">\n  <div style="position: relative;">\n    ',(n+="wizardHeaderVertical"===i.wizardHeaderType?'\n      <div class="row">\n        <div class="col-sm-12 col-md-2">\n          '+(null==(e=i.wizardHeader)?"":e)+'\n        </div>\n        <div class="wizard-page col-sm-offset-1 col-md-offset-0 col-sm-10" ref="'+(null==(e=i.wizardKey)?"":e)+'">\n          '+(null==(e=i.components)?"":e)+'\n        </div>\n      </div>\n      <div class="col-sm-offset-4 col-sm-7 col-md-offset-2 col-md-10" style="margin-top: 10px;">\n        '+(null==(e=i.wizardNav)?"":e)+"\n      </div>\n    ":" \n      "+(null==(e=i.wizardHeader)?"":e)+'\n      <div class="wizard-page" ref="'+(null==(e=i.wizardKey)?"":e)+'">\n        '+(null==(e=i.components)?"":e)+"\n      </div>\n      "+(null==(e=i.wizardNav)?"":e)+"\n    ")+" \n  </div>\n</div>"}},26803:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(17302),n=i(70809);y.default={form:n.default,builder:e.default}},60247:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(40385);y.default={bootstrap3:e.default}},4414:he=>{window,he.exports=(()=>{"use strict";var y={282:(o,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.clearChoices=a.activateChoices=a.filterChoices=a.addChoice=void 0;var u=l(883);a.addChoice=function(C){return{type:u.ACTION_TYPES.ADD_CHOICE,value:C.value,label:C.label,id:C.id,groupId:C.groupId,disabled:C.disabled,elementId:C.elementId,customProperties:C.customProperties,placeholder:C.placeholder,keyCode:C.keyCode}},a.filterChoices=function(C){return{type:u.ACTION_TYPES.FILTER_CHOICES,results:C}},a.activateChoices=function(C){return void 0===C&&(C=!0),{type:u.ACTION_TYPES.ACTIVATE_CHOICES,active:C}},a.clearChoices=function(){return{type:u.ACTION_TYPES.CLEAR_CHOICES}}},783:(o,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.addGroup=void 0;var u=l(883);a.addGroup=function(s){return{type:u.ACTION_TYPES.ADD_GROUP,value:s.value,id:s.id,active:s.active,disabled:s.disabled}}},464:(o,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.highlightItem=a.removeItem=a.addItem=void 0;var u=l(883);a.addItem=function(_){return{type:u.ACTION_TYPES.ADD_ITEM,value:_.value,label:_.label,id:_.id,choiceId:_.choiceId,groupId:_.groupId,customProperties:_.customProperties,placeholder:_.placeholder,keyCode:_.keyCode}},a.removeItem=function(_,C){return{type:u.ACTION_TYPES.REMOVE_ITEM,id:_,choiceId:C}},a.highlightItem=function(_,C){return{type:u.ACTION_TYPES.HIGHLIGHT_ITEM,id:_,highlighted:C}}},137:(o,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.setIsLoading=a.resetTo=a.clearAll=void 0;var u=l(883);a.clearAll=function(){return{type:u.ACTION_TYPES.CLEAR_ALL}},a.resetTo=function(_){return{type:u.ACTION_TYPES.RESET_TO,state:_}},a.setIsLoading=function(_){return{type:u.ACTION_TYPES.SET_IS_LOADING,isLoading:_}}},373:function(o,a,l){var u=this&&this.__spreadArray||function(D,F,P){if(P||2===arguments.length)for(var V,O=0,U=F.length;O<U;O++)(V||!(O in F))&&(V||(V=Array.prototype.slice.call(F,0,O)),V[O]=F[O]);return D.concat(V||Array.prototype.slice.call(F))},d=this&&this.__importDefault||function(D){return D&&D.__esModule?D:{default:D}};Object.defineProperty(a,"__esModule",{value:!0});var s=d(l(996)),A=d(l(221)),_=l(282),C=l(783),R=l(464),x=l(137),f=l(520),k=l(883),w=l(789),g=l(799),M=l(655),p=d(l(744)),E=d(l(686)),b="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,I={},L=function(){function D(F,P){void 0===F&&(F="[data-choice]"),void 0===P&&(P={});var O=this;void 0===P.allowHTML&&console.warn("Deprecation warning: allowHTML will default to false in a future release. To render HTML in Choices, you will need to set it to true. Setting allowHTML will suppress this message."),this.config=s.default.all([w.DEFAULT_CONFIG,D.defaults.options,P],{arrayMerge:function(Q,re){return u([],re,!0)}}),P.shadowRoot&&(this.config.shadowRoot=P.shadowRoot);var U=(0,g.diff)(this.config,w.DEFAULT_CONFIG);U.length&&console.warn("Unknown config option(s) passed",U.join(", "));var V="string"==typeof F?document.querySelector(F):F;if(!(V instanceof HTMLInputElement||V instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");if(this._isTextElement=V.type===k.TEXT_TYPE,this._isSelectOneElement=V.type===k.SELECT_ONE_TYPE,this._isSelectMultipleElement=V.type===k.SELECT_MULTIPLE_TYPE,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes("".concat(this.config.renderSelectedChoices))||(this.config.renderSelectedChoices="auto"),P.addItemFilter&&"function"!=typeof P.addItemFilter){var K=P.addItemFilter instanceof RegExp?P.addItemFilter:new RegExp(P.addItemFilter);this.config.addItemFilter=K.test.bind(K)}if(this.passedElement=this._isTextElement?new f.WrappedInput({element:V,classNames:this.config.classNames,delimiter:this.config.delimiter}):new f.WrappedSelect({element:V,classNames:this.config.classNames,template:function(Q){return O._templates.option(Q)}}),this.initialised=!1,this._store=new p.default,this._initialState=M.defaultState,this._currentState=M.defaultState,this._prevState=M.defaultState,this._currentValue="",this._canSearch=!!this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=(0,g.generateId)(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,!this._direction){var X=window.getComputedStyle(this.passedElement.element).direction;X!==window.getComputedStyle(document.documentElement).direction&&(this._direction=X)}if(this._idNames={itemChoice:"item-choice"},this._isSelectElement&&(this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options),this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&this._isTextElement){var J=this.passedElement.value.split(this.config.delimiter);this._presetItems=this._presetItems.concat(J)}if(this.passedElement.options&&this.passedElement.options.forEach(function(Q){O._presetChoices.push({value:Q.value,label:Q.innerHTML,selected:!!Q.selected,disabled:Q.disabled||Q.parentNode.disabled,placeholder:""===Q.value||Q.hasAttribute("placeholder"),customProperties:(0,g.parseCustomProperties)(Q.dataset.customProperties)})}),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive)return this.config.silent||console.warn("Trying to initialise Choices on element already initialised",{element:F}),void(this.initialised=!0);this.init()}return Object.defineProperty(D,"defaults",{get:function(){return Object.preventExtensions({get options(){return I},get templates(){return E.default}})},enumerable:!1,configurable:!0}),D.prototype.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialised=!0;var P=this.config.callbackOnInit;P&&"function"==typeof P&&P.call(this)}},D.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=E.default,this.initialised=!1)},D.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},D.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},D.prototype.highlightItem=function(F,P){if(void 0===P&&(P=!0),!F||!F.id)return this;var O=F.id,U=F.groupId,V=void 0===U?-1:U,K=F.value,X=void 0===K?"":K,me=F.label,J=void 0===me?"":me,Q=V>=0?this._store.getGroupById(V):null;return this._store.dispatch((0,R.highlightItem)(O,!0)),P&&this.passedElement.triggerEvent(k.EVENTS.highlightItem,{id:O,value:X,label:J,groupValue:Q&&Q.value?Q.value:null}),this},D.prototype.unhighlightItem=function(F){if(!F||!F.id)return this;var P=F.id,O=F.groupId,U=void 0===O?-1:O,V=F.value,K=void 0===V?"":V,X=F.label,me=void 0===X?"":X,J=U>=0?this._store.getGroupById(U):null;return this._store.dispatch((0,R.highlightItem)(P,!1)),this.passedElement.triggerEvent(k.EVENTS.highlightItem,{id:P,value:K,label:me,groupValue:J&&J.value?J.value:null}),this},D.prototype.highlightAll=function(){var F=this;return this._store.items.forEach(function(P){return F.highlightItem(P)}),this},D.prototype.unhighlightAll=function(){var F=this;return this._store.items.forEach(function(P){return F.unhighlightItem(P)}),this},D.prototype.removeActiveItemsByValue=function(F){var P=this;return this._store.activeItems.filter(function(O){return O.value===F}).forEach(function(O){return P._removeItem(O)}),this},D.prototype.removeActiveItems=function(F){var P=this;return this._store.activeItems.filter(function(O){return O.id!==F}).forEach(function(O){return P._removeItem(O)}),this},D.prototype.removeHighlightedItems=function(F){var P=this;return void 0===F&&(F=!1),this._store.highlightedActiveItems.forEach(function(O){P._removeItem(O),F&&P._triggerChange(O.value)}),this},D.prototype.showDropdown=function(F){var P=this;return this.dropdown.isActive||requestAnimationFrame(function(){P.dropdown.show(),P.containerOuter.open(P.dropdown.distanceFromTopWindow),!F&&P._canSearch&&P.input.focus(),P.passedElement.triggerEvent(k.EVENTS.showDropdown,{})}),this},D.prototype.hideDropdown=function(F){var P=this;return this.dropdown.isActive?(requestAnimationFrame(function(){P.dropdown.hide(),P.containerOuter.close(),!F&&P._canSearch&&(P.input.removeActiveDescendant(),P.input.blur()),P.passedElement.triggerEvent(k.EVENTS.hideDropdown,{})}),this):this},D.prototype.getValue=function(F){void 0===F&&(F=!1);var P=this._store.activeItems.reduce(function(O,U){return O.push(F?U.value:U),O},[]);return this._isSelectOneElement?P[0]:P},D.prototype.setValue=function(F){var P=this;return this.initialised?(F.forEach(function(O){return P._setChoiceOrItem(O)}),this):this},D.prototype.setChoiceByValue=function(F){var P=this;return!this.initialised||this._isTextElement||(Array.isArray(F)?F:[F]).forEach(function(U){return P._findAndSelectChoiceByValue(U)}),this},D.prototype.setChoices=function(F,P,O,U){var V=this;if(void 0===F&&(F=[]),void 0===P&&(P="value"),void 0===O&&(O="label"),void 0===U&&(U=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if("string"!=typeof P||!P)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(U&&this.clearChoices(),"function"==typeof F){var K=F(this);if("function"==typeof Promise&&K instanceof Promise)return new Promise(function(X){return requestAnimationFrame(X)}).then(function(){return V._handleLoadingState(!0)}).then(function(){return K}).then(function(X){return V.setChoices(X,P,O,U)}).catch(function(X){V.config.silent||console.error(X)}).then(function(){return V._handleLoadingState(!1)}).then(function(){return V});if(!Array.isArray(K))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof K));return this.setChoices(K,P,O,!1)}if(!Array.isArray(F))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),F.forEach(function(X){X.choices?V._addGroup({id:X.id?parseInt("".concat(X.id),10):null,group:X,valueKey:P,labelKey:O}):V._addChoice({value:X[P],label:X[O],isSelected:!!X.selected,isDisabled:!!X.disabled,placeholder:!!X.placeholder,customProperties:X.customProperties})}),this._stopLoading(),this},D.prototype.clearChoices=function(){return this._store.dispatch((0,_.clearChoices)()),this},D.prototype.clearStore=function(){return this._store.dispatch((0,x.clearAll)()),this},D.prototype.clearInput=function(){return this.input.clear(!this._isSelectOneElement),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch((0,_.activateChoices)(!0))),this},D.prototype._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var O=this._currentState.items!==this._prevState.items;(this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items)&&(this._isSelectElement&&this._renderChoices(),O&&this._renderItems(),this._prevState=this._currentState)}},D.prototype._renderChoices=function(){var F=this,P=this._store,O=P.activeGroups,U=P.activeChoices,V=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame(function(){return F.choiceList.scrollToTop()}),O.length>=1&&!this._isSearching){var K=U.filter(function(re){return!0===re.placeholder&&-1===re.groupId});K.length>=1&&(V=this._createChoicesFragment(K,V)),V=this._createGroupsFragment(O,U,V)}else U.length>=1&&(V=this._createChoicesFragment(U,V));if(V.childNodes&&V.childNodes.length>0){var me=this._canAddItem(this._store.activeItems,this.input.value);if(me.response)this.choiceList.append(V),this._highlightChoice();else{var J=this._getTemplate("notice",me.notice);this.choiceList.append(J)}}else{var Q=void 0;J=void 0,this._isSearching?(J="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,Q=this._getTemplate("notice",J,"no-results")):(J="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,Q=this._getTemplate("notice",J,"no-choices")),this.choiceList.append(Q)}},D.prototype._renderItems=function(){var F=this._store.activeItems||[];this.itemList.clear();var P=this._createItemsFragment(F);P.childNodes&&this.itemList.append(P)},D.prototype._createGroupsFragment=function(F,P,O){var U=this;return void 0===O&&(O=document.createDocumentFragment()),this.config.shouldSort&&F.sort(this.config.sorter),F.forEach(function(K){var X=function(K){return P.filter(function(X){return U._isSelectOneElement?X.groupId===K.id:X.groupId===K.id&&("always"===U.config.renderSelectedChoices||!X.selected)})}(K);if(X.length>=1){var me=U._getTemplate("choiceGroup",K);O.appendChild(me),U._createChoicesFragment(X,O,!0)}}),O},D.prototype._createChoicesFragment=function(F,P,O){var U=this;void 0===P&&(P=document.createDocumentFragment()),void 0===O&&(O=!1);var V=this.config,K=V.renderSelectedChoices,X=V.searchResultLimit,me=V.renderChoiceLimit,J=this._isSearching?g.sortByScore:this.config.sorter,Q=function(se){if("auto"!==K||U._isSelectOneElement||!se.selected){var _e=U._getTemplate("choice",se,U.config.itemSelectText);P.appendChild(_e)}},re=F;"auto"===K&&!this._isSelectOneElement&&(re=F.filter(function(se){return!se.selected}));var de=re.reduce(function(se,ne){return ne.placeholder?se.placeholderChoices.push(ne):se.normalChoices.push(ne),se},{placeholderChoices:[],normalChoices:[]}),te=de.placeholderChoices,j=de.normalChoices;(this.config.shouldSort||this._isSearching)&&j.sort(J);var H=re.length,z=this._isSelectOneElement?u(u([],te,!0),j,!0):j;this._isSearching?H=X:me&&me>0&&!O&&(H=me);for(var q=0;q<H;q+=1)z[q]&&Q(z[q]);return P},D.prototype._createItemsFragment=function(F,P){var O=this;void 0===P&&(P=document.createDocumentFragment());var U=this.config,X=U.removeItemButton;return U.shouldSortItems&&!this._isSelectOneElement&&F.sort(U.sorter),this._isTextElement?this.passedElement.value=F.map(function(J){return J.value}).join(this.config.delimiter):this.passedElement.options=F,F.forEach(function(J){var Q=O._getTemplate("item",J,X);P.appendChild(Q)}),P},D.prototype._triggerChange=function(F){null!=F&&this.passedElement.triggerEvent(k.EVENTS.change,{value:F})},D.prototype._selectPlaceholderChoice=function(F){this._addItem({value:F.value,label:F.label,choiceId:F.id,groupId:F.groupId,placeholder:F.placeholder}),this._triggerChange(F.value)},D.prototype._handleButtonAction=function(F,P){if(F&&P&&this.config.removeItems&&this.config.removeItemButton){var O=P.parentNode&&P.parentNode.dataset.id,U=O&&F.find(function(V){return V.id===parseInt(O,10)});U&&(this._removeItem(U),this._triggerChange(U.value),this._isSelectOneElement&&this._store.placeholderChoice&&this._selectPlaceholderChoice(this._store.placeholderChoice))}},D.prototype._handleItemAction=function(F,P,O){var U=this;if(void 0===O&&(O=!1),F&&P&&this.config.removeItems&&!this._isSelectOneElement){var V=P.dataset.id;F.forEach(function(K){K.id!==parseInt("".concat(V),10)||K.highlighted?!O&&K.highlighted&&U.unhighlightItem(K):U.highlightItem(K)}),this.input.focus()}},D.prototype._handleChoiceAction=function(F,P){if(F&&P){var O=P.dataset.id,U=O&&this._store.getChoiceById(O);if(U){var K=this.dropdown.isActive;U.keyCode=F[0]&&F[0].keyCode?F[0].keyCode:void 0,this.passedElement.triggerEvent(k.EVENTS.choice,{choice:U}),U.selected||U.disabled||this._canAddItem(F,U.value).response&&(this._addItem({value:U.value,label:U.label,choiceId:U.id,groupId:U.groupId,customProperties:U.customProperties,placeholder:U.placeholder,keyCode:U.keyCode}),this._triggerChange(U.value)),this.clearInput(),K&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},D.prototype._handleBackspace=function(F){if(this.config.removeItems&&F){var P=F[F.length-1],O=F.some(function(U){return U.highlighted});this.config.editItems&&!O&&P?(this.input.value=P.value,this.input.setWidth(),this._removeItem(P),this._triggerChange(P.value)):(O||this.highlightItem(P,!1),this.removeHighlightedItems(!0))}},D.prototype._startLoading=function(){this._store.dispatch((0,x.setIsLoading)(!0))},D.prototype._stopLoading=function(){this._store.dispatch((0,x.setIsLoading)(!1))},D.prototype._handleLoadingState=function(F){void 0===F&&(F=!0);var P=this.itemList.getChild(".".concat(this.config.classNames.placeholder));F?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?P?P.innerHTML=this.config.loadingText:(P=this._getTemplate("placeholder",this.config.loadingText))&&this.itemList.append(P):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?P&&(P.innerHTML=this._placeholderValue||""):this.input.placeholder=this._placeholderValue||"")},D.prototype._handleSearch=function(F){if(this.input.isFocussed){var O=this.config,U=O.searchFloor,V=O.searchChoices,K=this._store.choices.some(function(me){return!me.active});if(null!==F&&typeof F<"u"&&F.length>=U){var X=V?this._searchChoices(F):0;this.passedElement.triggerEvent(k.EVENTS.search,{value:F,resultCount:X})}else K&&(this._isSearching=!1,this._store.dispatch((0,_.activateChoices)(!0)))}},D.prototype._canAddItem=function(F,P){var O=!0,U="function"==typeof this.config.addItemText?this.config.addItemText(P):this.config.addItemText;if(!this._isSelectOneElement){var V=(0,g.existsInArray)(F,P);this.config.maxItemCount>0&&this.config.maxItemCount<=F.length&&(O=!1,U="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&V&&O&&(O=!1,U="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(P):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&O&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(P)&&(O=!1,U="function"==typeof this.config.customAddItemText?this.config.customAddItemText(P):this.config.customAddItemText)}return{response:O,notice:U}},D.prototype._searchChoices=function(F){var P="string"==typeof F?F.trim():F,O="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(P.length<1&&P==="".concat(O," "))return 0;var U=this._store.searchableChoices,V=P,K=Object.assign(this.config.fuseOptions,{keys:u([],this.config.searchFields,!0),includeMatches:!0}),me=new A.default(U,K).search(V);return this._currentValue=P,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch((0,_.filterChoices)(me)),me.length},D.prototype._addEventListeners=function(){var F=this.config.shadowRoot||document.documentElement;F.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),F.addEventListener("click",this._onClick,{passive:!0}),F.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},D.prototype._removeEventListeners=function(){var F=this.config.shadowRoot||document.documentElement;F.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),F.removeEventListener("click",this._onClick),F.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},D.prototype._onKeyDown=function(F){var P=F.keyCode,O=this._store.activeItems,U=this.input.isFocussed,V=this.dropdown.isActive,K=this.itemList.hasChildren(),X=String.fromCharCode(P),me=/[^\x00-\x1F]/.test(X),J=k.KEY_CODES.BACK_KEY,Q=k.KEY_CODES.DELETE_KEY,re=k.KEY_CODES.ENTER_KEY,de=k.KEY_CODES.A_KEY,te=k.KEY_CODES.ESC_KEY,j=k.KEY_CODES.UP_KEY,H=k.KEY_CODES.DOWN_KEY,z=k.KEY_CODES.PAGE_UP_KEY,q=k.KEY_CODES.PAGE_DOWN_KEY;switch(!this._isTextElement&&!V&&me&&(this.showDropdown(),this.input.isFocussed||(this.input.value+=F.key.toLowerCase())),P){case de:return this._onSelectKey(F,K);case re:return this._onEnterKey({event:F,activeItems:O,hasActiveDropdown:V});case te:return this._onEscapeKey(V);case j:case z:case H:case q:return this._onDirectionKey({event:F,hasActiveDropdown:V});case Q:case J:return this._onDeleteKey(F,O,U)}},D.prototype._onKeyUp=function(F){var P=F.target,O=F.keyCode,U=this.input.value,K=this._canAddItem(this._store.activeItems,U),X=k.KEY_CODES.BACK_KEY,me=k.KEY_CODES.DELETE_KEY;if(this._isTextElement)if(K.notice&&U){var Q=this._getTemplate("notice",K.notice);this.dropdown.element.innerHTML=Q.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else O!==X&&O!==me||!P||P.value||this._isTextElement||!this._isSearching?this._canSearch&&K.response&&this._handleSearch(this.input.rawValue):(this._isSearching=!1,this._store.dispatch((0,_.activateChoices)(!0)));this._canSearch=this.config.searchEnabled},D.prototype._onSelectKey=function(F,P){(F.ctrlKey||F.metaKey)&&P&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},D.prototype._onEnterKey=function(F){var P=F.event,O=F.activeItems,U=F.hasActiveDropdown,V=P.target,K=k.KEY_CODES.ENTER_KEY,X=V&&V.hasAttribute("data-button");if(this._isTextElement&&V&&V.value){var me=this.input.value;this._canAddItem(O,me).response&&(this.hideDropdown(!0),this._addItem({value:me}),this._triggerChange(me),this.clearInput())}if(X&&(this._handleButtonAction(O,V),P.preventDefault()),U){var Q=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));Q&&(O[0]&&(O[0].keyCode=K),this._handleChoiceAction(O,Q)),P.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),P.preventDefault())},D.prototype._onEscapeKey=function(F){F&&(this.hideDropdown(!0),this.containerOuter.focus())},D.prototype._onDirectionKey=function(F){var P=F.event,U=P.keyCode,V=P.metaKey,K=k.KEY_CODES.DOWN_KEY,X=k.KEY_CODES.PAGE_UP_KEY,me=k.KEY_CODES.PAGE_DOWN_KEY;if(F.hasActiveDropdown||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var J=U===K||U===me?1:-1,re="[data-choice-selectable]",de=void 0;if(V||U===me||U===X)de=this.dropdown.element.querySelector(J>0?"".concat(re,":last-of-type"):re);else{var te=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState));de=te?(0,g.getAdjacentEl)(te,re,J):this.dropdown.element.querySelector(re)}de&&((0,g.isScrolledIntoView)(de,this.choiceList.element,J)||this.choiceList.scrollToChildElement(de,J),this._highlightChoice(de)),P.preventDefault()}},D.prototype._onDeleteKey=function(F,P,O){!this._isSelectOneElement&&!F.target.value&&O&&(this._handleBackspace(P),F.preventDefault())},D.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},D.prototype._onTouchEnd=function(F){var P=(F||F.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(P)&&((P===this.containerOuter.element||P===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),F.stopPropagation()),this._wasTap=!0},D.prototype._onMouseDown=function(F){var P=F.target;if(P instanceof HTMLElement){if(b&&this.choiceList.element.contains(P)){var O=this.choiceList.element.firstElementChild;this._isScrollingOnIe="ltr"===this._direction?F.offsetX>=O.offsetWidth:F.offsetX<O.offsetLeft}if(P!==this.input.element){var V=P.closest("[data-button],[data-item],[data-choice]");if(V instanceof HTMLElement){var K=F.shiftKey,X=this._store.activeItems,me=V.dataset;"button"in me?this._handleButtonAction(X,V):"item"in me?this._handleItemAction(X,V,K):"choice"in me&&this._handleChoiceAction(X,V)}F.preventDefault()}}},D.prototype._onMouseOver=function(F){var P=F.target;P instanceof HTMLElement&&"choice"in P.dataset&&this._highlightChoice(P)},D.prototype._onClick=function(F){var P=F.target;this.containerOuter.element.contains(P)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&P!==this.input.element&&!this.dropdown.element.contains(P)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},D.prototype._onFocus=function(F){var P,O=this,U=F.target;U&&this.containerOuter.element.contains(U)&&((P={})[k.TEXT_TYPE]=function(){U===O.input.element&&O.containerOuter.addFocusState()},P[k.SELECT_ONE_TYPE]=function(){O.containerOuter.addFocusState(),U===O.input.element&&O.showDropdown(!0)},P[k.SELECT_MULTIPLE_TYPE]=function(){U===O.input.element&&(O.showDropdown(!0),O.containerOuter.addFocusState())},P)[this.passedElement.element.type]()},D.prototype._onBlur=function(F){var P,O=this,U=F.target;if(U&&this.containerOuter.element.contains(U)&&!this._isScrollingOnIe){var X=this._store.activeItems.some(function(J){return J.highlighted});((P={})[k.TEXT_TYPE]=function(){U===O.input.element&&(O.containerOuter.removeFocusState(),X&&O.unhighlightAll(),O.hideDropdown(!0))},P[k.SELECT_ONE_TYPE]=function(){O.containerOuter.removeFocusState(),(U===O.input.element||U===O.containerOuter.element&&!O._canSearch)&&O.hideDropdown(!0)},P[k.SELECT_MULTIPLE_TYPE]=function(){U===O.input.element&&(O.containerOuter.removeFocusState(),O.hideDropdown(!0),X&&O.unhighlightAll())},P)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},D.prototype._onFormReset=function(){this._store.dispatch((0,x.resetTo)(this._initialState))},D.prototype._highlightChoice=function(F){var P=this;void 0===F&&(F=null);var O=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(O.length){var U=F;Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState))).forEach(function(K){K.classList.remove(P.config.classNames.highlightedState),K.setAttribute("aria-selected","false")}),U?this._highlightPosition=O.indexOf(U):(U=O.length>this._highlightPosition?O[this._highlightPosition]:O[O.length-1])||(U=O[0]),U.classList.add(this.config.classNames.highlightedState),U.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(k.EVENTS.highlightChoice,{el:U}),this.dropdown.isActive&&(this.input.setActiveDescendant(U.id),this.containerOuter.setActiveDescendant(U.id))}},D.prototype._addItem=function(F){var P=F.value,O=F.label,U=void 0===O?null:O,V=F.choiceId,K=void 0===V?-1:V,X=F.groupId,me=void 0===X?-1:X,J=F.customProperties,Q=void 0===J?{}:J,re=F.placeholder,de=void 0!==re&&re,te=F.keyCode,j=void 0===te?-1:te,H="string"==typeof P?P.trim():P,z=this._store.items,q=U||H,se=K||-1,ne=me>=0?this._store.getGroupById(me):null,_e=z?z.length+1:1;this.config.prependValue&&(H=this.config.prependValue+H.toString()),this.config.appendValue&&(H+=this.config.appendValue.toString()),this._store.dispatch((0,R.addItem)({value:H,label:q,id:_e,choiceId:se,groupId:me,customProperties:Q,placeholder:de,keyCode:j})),this._isSelectOneElement&&this.removeActiveItems(_e),this.passedElement.triggerEvent(k.EVENTS.addItem,{id:_e,value:H,label:q,customProperties:Q,groupValue:ne&&ne.value?ne.value:null,keyCode:j})},D.prototype._removeItem=function(F){var P=F.id,O=F.value,U=F.label,V=F.customProperties,K=F.choiceId,X=F.groupId,me=X&&X>=0?this._store.getGroupById(X):null;!P||!K||(this._store.dispatch((0,R.removeItem)(P,K)),this.passedElement.triggerEvent(k.EVENTS.removeItem,{id:P,value:O,label:U,customProperties:V,groupValue:me&&me.value?me.value:null}))},D.prototype._addChoice=function(F){var P=F.value,O=F.label,V=F.isSelected,K=void 0!==V&&V,X=F.isDisabled,me=void 0!==X&&X,J=F.groupId,Q=void 0===J?-1:J,re=F.customProperties,de=void 0===re?{}:re,te=F.placeholder,j=void 0!==te&&te,H=F.keyCode,z=void 0===H?-1:H;if(!(typeof P>"u"||null===P)){var q=this._store.choices,se=(void 0===O?null:O)||P,ne=q?q.length+1:1,_e="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(ne);this._store.dispatch((0,_.addChoice)({id:ne,groupId:Q,elementId:_e,value:P,label:se,disabled:me,customProperties:de,placeholder:j,keyCode:z})),K&&this._addItem({value:P,label:se,choiceId:ne,customProperties:de,placeholder:j,keyCode:z})}},D.prototype._addGroup=function(F){var P=this,O=F.group,U=F.id,V=F.valueKey,K=void 0===V?"value":V,X=F.labelKey,me=void 0===X?"label":X,J=(0,g.isType)("Object",O)?O.choices:Array.from(O.getElementsByTagName("OPTION")),Q=U||Math.floor((new Date).valueOf()*Math.random());J?(this._store.dispatch((0,C.addGroup)({value:O.label,id:Q,active:!0,disabled:!!O.disabled&&O.disabled})),J.forEach(function(te){var j=te.disabled||te.parentNode&&te.parentNode.disabled;P._addChoice({value:te[K],label:(0,g.isType)("Object",te)?te[me]:te.innerHTML,isSelected:te.selected,isDisabled:j,groupId:Q,customProperties:te.customProperties,placeholder:te.placeholder})})):this._store.dispatch((0,C.addGroup)({value:O.label,id:O.id,active:!1,disabled:O.disabled}))},D.prototype._getTemplate=function(F){for(var P,O=[],U=1;U<arguments.length;U++)O[U-1]=arguments[U];return(P=this._templates[F]).call.apply(P,u([this,this.config],O,!1))},D.prototype._createTemplates=function(){var F=this.config.callbackOnCreateTemplates,P={};F&&"function"==typeof F&&(P=F.call(this,g.strToEl)),this._templates=(0,s.default)(E.default,P)},D.prototype._createElements=function(){this.containerOuter=new f.Container({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type,this.config.labelId),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new f.Container({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new f.Input({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new f.List({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new f.List({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new f.Dropdown({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},D.prototype._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},D.prototype._addPredefinedGroups=function(F){var P=this,O=this.passedElement.placeholderOption;O&&O.parentNode&&"SELECT"===O.parentNode.tagName&&this._addChoice({value:O.value,label:O.innerHTML,isSelected:O.selected,isDisabled:O.disabled,placeholder:!0}),F.forEach(function(U){return P._addGroup({group:U,id:U.id||null})})},D.prototype._addPredefinedChoices=function(F){var P=this;this.config.shouldSort&&F.sort(this.config.sorter);var O=F.some(function(V){return V.selected}),U=F.findIndex(function(V){return void 0===V.disabled||!V.disabled});F.forEach(function(V,K){var X=V.value,me=void 0===X?"":X,J=V.label,Q=V.customProperties,re=V.placeholder;P._isSelectElement?V.choices?P._addGroup({group:V,id:V.id||null}):P._addChoice({value:me,label:J,isSelected:!!(P._isSelectOneElement&&!O&&K===U||V.selected),isDisabled:!!V.disabled,placeholder:!!re,customProperties:Q}):P._addChoice({value:me,label:J,isSelected:!!V.selected,isDisabled:!!V.disabled,placeholder:!!V.placeholder,customProperties:Q})})},D.prototype._addPredefinedItems=function(F){var P=this;F.forEach(function(O){"object"==typeof O&&O.value&&P._addItem({value:O.value,label:O.label,choiceId:O.id,customProperties:O.customProperties,placeholder:O.placeholder}),"string"==typeof O&&P._addItem({value:O})})},D.prototype._setChoiceOrItem=function(F){var P=this;({object:function(){F.value&&(P._isTextElement?P._addItem({value:F.value,label:F.label,choiceId:F.id,customProperties:F.customProperties,placeholder:F.placeholder}):P._addChoice({value:F.value,label:F.label,isSelected:!0,isDisabled:!1,customProperties:F.customProperties,placeholder:F.placeholder}))},string:function(){P._isTextElement?P._addItem({value:F}):P._addChoice({value:F,label:F,isSelected:!0,isDisabled:!1})}})[(0,g.getType)(F).toLowerCase()]()},D.prototype._findAndSelectChoiceByValue=function(F){var P=this,U=this._store.choices.find(function(V){return P.config.valueComparer(V.value,F)});U&&!U.selected&&this._addItem({value:U.value,label:U.label,choiceId:U.id,groupId:U.groupId,customProperties:U.customProperties,placeholder:U.placeholder,keyCode:U.keyCode})},D.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var F=this.passedElement.placeholderOption;return F?F.text:null}var P=this.config,U=P.placeholderValue,V=this.passedElement.element.dataset;if(P.placeholder){if(U)return U;if(V.placeholder)return V.placeholder}return null},D}();a.default=L},613:(o,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0});var u=l(799),d=l(883),s=function(){function A(_){var R=_.type,x=_.classNames,f=_.position;this.element=_.element,this.classNames=x,this.type=R,this.position=f,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return A.prototype.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},A.prototype.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},A.prototype.shouldFlip=function(_){if("number"!=typeof _)return!1;var C=!1;return"auto"===this.position?C=!window.matchMedia("(min-height: ".concat(_+1,"px)")).matches:"top"===this.position&&(C=!0),C},A.prototype.setActiveDescendant=function(_){this.element.setAttribute("aria-activedescendant",_)},A.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},A.prototype.open=function(_){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(_)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},A.prototype.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},A.prototype.focus=function(){this.isFocussed||this.element.focus()},A.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},A.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},A.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===d.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},A.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===d.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},A.prototype.wrap=function(_){(0,u.wrap)(_,this.element)},A.prototype.unwrap=function(_){this.element.parentNode&&(this.element.parentNode.insertBefore(_,this.element),this.element.parentNode.removeChild(this.element))},A.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},A.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},A.prototype._onFocus=function(){this.isFocussed=!0},A.prototype._onBlur=function(){this.isFocussed=!1},A}();a.default=s},217:(o,a)=>{Object.defineProperty(a,"__esModule",{value:!0});var l=function(){function u(d){var A=d.type,_=d.classNames;this.element=d.element,this.classNames=_,this.type=A,this.isActive=!1}return Object.defineProperty(u.prototype,"distanceFromTopWindow",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:!1,configurable:!0}),u.prototype.getChild=function(d){return this.element.querySelector(d)},u.prototype.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},u.prototype.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},u}();a.default=l},520:function(o,a,l){var u=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(a,"__esModule",{value:!0}),a.WrappedSelect=a.WrappedInput=a.List=a.Input=a.Container=a.Dropdown=void 0;var d=u(l(217));a.Dropdown=d.default;var s=u(l(613));a.Container=s.default;var A=u(l(11));a.Input=A.default;var _=u(l(624));a.List=_.default;var C=u(l(541));a.WrappedInput=C.default;var R=u(l(982));a.WrappedSelect=R.default},11:(o,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0});var u=l(799),d=l(883),s=function(){function A(_){var C=_.element,R=_.type,x=_.classNames,f=_.preventPaste;this.element=C,this.type=R,this.classNames=x,this.preventPaste=f,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=C.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return Object.defineProperty(A.prototype,"placeholder",{set:function(_){this.element.placeholder=_},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"value",{get:function(){return(0,u.sanitise)(this.element.value)},set:function(_){this.element.value=_},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"rawValue",{get:function(){return this.element.value},enumerable:!1,configurable:!0}),A.prototype.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},A.prototype.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},A.prototype.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},A.prototype.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},A.prototype.focus=function(){this.isFocussed||this.element.focus()},A.prototype.blur=function(){this.isFocussed&&this.element.blur()},A.prototype.clear=function(_){return void 0===_&&(_=!0),this.element.value&&(this.element.value=""),_&&this.setWidth(),this},A.prototype.setWidth=function(){var _=this.element,C=_.style,R=_.value;C.minWidth="".concat(_.placeholder.length+1,"ch"),C.width="".concat(R.length+1,"ch")},A.prototype.setActiveDescendant=function(_){this.element.setAttribute("aria-activedescendant",_)},A.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},A.prototype._onInput=function(){this.type!==d.SELECT_ONE_TYPE&&this.setWidth()},A.prototype._onPaste=function(_){this.preventPaste&&_.preventDefault()},A.prototype._onFocus=function(){this.isFocussed=!0},A.prototype._onBlur=function(){this.isFocussed=!1},A}();a.default=s},624:(o,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0});var u=l(883),d=function(){function s(A){this.element=A.element,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}return s.prototype.clear=function(){this.element.innerHTML=""},s.prototype.append=function(A){this.element.appendChild(A)},s.prototype.getChild=function(A){return this.element.querySelector(A)},s.prototype.hasChildren=function(){return this.element.hasChildNodes()},s.prototype.scrollToTop=function(){this.element.scrollTop=0},s.prototype.scrollToChildElement=function(A,_){var C=this;if(A){var w=_>0?this.element.scrollTop+(A.offsetTop+A.offsetHeight)-(this.element.scrollTop+this.element.offsetHeight):A.offsetTop;requestAnimationFrame(function(){C._animateScroll(w,_)})}},s.prototype._scrollDown=function(A,_,C){var R=(C-A)/_;this.element.scrollTop=A+(R>1?R:1)},s.prototype._scrollUp=function(A,_,C){var R=(A-C)/_;this.element.scrollTop=A-(R>1?R:1)},s.prototype._animateScroll=function(A,_){var C=this,R=u.SCROLLING_SPEED,x=this.element.scrollTop,f=!1;_>0?(this._scrollDown(x,R,A),x<A&&(f=!0)):(this._scrollUp(x,R,A),x>A&&(f=!0)),f&&requestAnimationFrame(function(){C._animateScroll(A,_)})},s}();a.default=d},730:(o,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0});var u=l(799),d=function(){function s(A){var _=A.element,C=A.classNames;if(this.element=_,this.classNames=C,!(_ instanceof HTMLInputElement||_ instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}return Object.defineProperty(s.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"value",{get:function(){return this.element.value},set:function(A){this.element.value=A},enumerable:!1,configurable:!0}),s.prototype.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var A=this.element.getAttribute("style");A&&this.element.setAttribute("data-choice-orig-style",A),this.element.setAttribute("data-choice","active")},s.prototype.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var A=this.element.getAttribute("data-choice-orig-style");A?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",A)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},s.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},s.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},s.prototype.triggerEvent=function(A,_){(0,u.dispatchEvent)(this.element,A,_)},s}();a.default=d},541:function(o,a,l){var _,u=this&&this.__extends||(_=function(C,R){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,f){x.__proto__=f}||function(x,f){for(var k in f)Object.prototype.hasOwnProperty.call(f,k)&&(x[k]=f[k])})(C,R)},function(C,R){if("function"!=typeof R&&null!==R)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");function x(){this.constructor=C}_(C,R),C.prototype=null===R?Object.create(R):(x.prototype=R.prototype,new x)}),d=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(a,"__esModule",{value:!0});var A=function(_){function C(R){var k=R.delimiter,w=_.call(this,{element:R.element,classNames:R.classNames})||this;return w.delimiter=k,w}return u(C,_),Object.defineProperty(C.prototype,"value",{get:function(){return this.element.value},set:function(R){this.element.setAttribute("value",R),this.element.value=R},enumerable:!1,configurable:!0}),C}(d(l(730)).default);a.default=A},982:function(o,a,l){var _,u=this&&this.__extends||(_=function(C,R){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,f){x.__proto__=f}||function(x,f){for(var k in f)Object.prototype.hasOwnProperty.call(f,k)&&(x[k]=f[k])})(C,R)},function(C,R){if("function"!=typeof R&&null!==R)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");function x(){this.constructor=C}_(C,R),C.prototype=null===R?Object.create(R):(x.prototype=R.prototype,new x)}),d=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(a,"__esModule",{value:!0});var A=function(_){function C(R){var k=R.template,w=_.call(this,{element:R.element,classNames:R.classNames})||this;return w.template=k,w}return u(C,_),Object.defineProperty(C.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(R){var x=this,f=document.createDocumentFragment();R.forEach(function(w){return function(w){var g=x.template(w);f.appendChild(g)}(w)}),this.appendDocFragment(f)},enumerable:!1,configurable:!0}),C.prototype.appendDocFragment=function(R){this.element.innerHTML="",this.element.appendChild(R)},C}(d(l(730)).default);a.default=A},883:(o,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SCROLLING_SPEED=a.SELECT_MULTIPLE_TYPE=a.SELECT_ONE_TYPE=a.TEXT_TYPE=a.KEY_CODES=a.ACTION_TYPES=a.EVENTS=void 0,a.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"},a.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL",RESET_TO:"RESET_TO",SET_IS_LOADING:"SET_IS_LOADING"},a.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},a.TEXT_TYPE="text",a.SELECT_ONE_TYPE="select-one",a.SELECT_MULTIPLE_TYPE="select-multiple",a.SCROLLING_SPEED=4},789:(o,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DEFAULT_CONFIG=a.DEFAULT_CLASSNAMES=void 0;var u=l(799);a.DEFAULT_CLASSNAMES={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},a.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,allowHTML:!0,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:u.sortByAlpha,shadowRoot:null,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(d){return'Press Enter to add <b>"'.concat((0,u.sanitise)(d),'"</b>')},maxItemText:function(d){return"Only ".concat(d," values can be added")},valueComparer:function(d,s){return d===s},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:a.DEFAULT_CLASSNAMES}},18:(o,a)=>{Object.defineProperty(a,"__esModule",{value:!0})},978:(o,a)=>{Object.defineProperty(a,"__esModule",{value:!0})},948:(o,a)=>{Object.defineProperty(a,"__esModule",{value:!0})},359:(o,a)=>{Object.defineProperty(a,"__esModule",{value:!0})},285:(o,a)=>{Object.defineProperty(a,"__esModule",{value:!0})},533:(o,a)=>{Object.defineProperty(a,"__esModule",{value:!0})},187:function(o,a,l){var u=this&&this.__createBinding||(Object.create?function(s,A,_,C){void 0===C&&(C=_);var R=Object.getOwnPropertyDescriptor(A,_);(!R||("get"in R?!A.__esModule:R.writable||R.configurable))&&(R={enumerable:!0,get:function(){return A[_]}}),Object.defineProperty(s,C,R)}:function(s,A,_,C){void 0===C&&(C=_),s[C]=A[_]}),d=this&&this.__exportStar||function(s,A){for(var _ in s)"default"!==_&&!Object.prototype.hasOwnProperty.call(A,_)&&u(A,s,_)};Object.defineProperty(a,"__esModule",{value:!0}),d(l(18),a),d(l(978),a),d(l(948),a),d(l(359),a),d(l(285),a),d(l(533),a),d(l(287),a),d(l(132),a),d(l(837),a),d(l(598),a),d(l(369),a),d(l(37),a),d(l(47),a),d(l(923),a),d(l(876),a)},287:(o,a)=>{Object.defineProperty(a,"__esModule",{value:!0})},132:(o,a)=>{Object.defineProperty(a,"__esModule",{value:!0})},837:(o,a)=>{Object.defineProperty(a,"__esModule",{value:!0})},598:(o,a)=>{Object.defineProperty(a,"__esModule",{value:!0})},37:(o,a)=>{Object.defineProperty(a,"__esModule",{value:!0})},369:(o,a)=>{Object.defineProperty(a,"__esModule",{value:!0})},47:(o,a)=>{Object.defineProperty(a,"__esModule",{value:!0})},923:(o,a)=>{Object.defineProperty(a,"__esModule",{value:!0})},876:(o,a)=>{Object.defineProperty(a,"__esModule",{value:!0})},799:(o,a)=>{var b;Object.defineProperty(a,"__esModule",{value:!0}),a.parseCustomProperties=a.diff=a.cloneObject=a.existsInArray=a.dispatchEvent=a.sortByScore=a.sortByAlpha=a.strToEl=a.sanitise=a.isScrolledIntoView=a.getAdjacentEl=a.wrap=a.isType=a.getType=a.generateId=a.generateChars=a.getRandomNumber=void 0,a.getRandomNumber=function(b,I){return Math.floor(Math.random()*(I-b)+b)},a.generateChars=function(b){return Array.from({length:b},function(){return(0,a.getRandomNumber)(0,36).toString(36)}).join("")},a.generateId=function(b,I){var L=b.id||b.name&&"".concat(b.name,"-").concat((0,a.generateChars)(2))||(0,a.generateChars)(4);return L=L.replace(/(:|\.|\[|\]|,)/g,""),"".concat(I,"-").concat(L)},a.getType=function(b){return Object.prototype.toString.call(b).slice(8,-1)},a.isType=function(b,I){return null!=I&&(0,a.getType)(I)===b},a.wrap=function(b,I){return void 0===I&&(I=document.createElement("div")),b.parentNode&&(b.nextSibling?b.parentNode.insertBefore(I,b.nextSibling):b.parentNode.appendChild(I)),I.appendChild(b)},a.getAdjacentEl=function(b,I,L){void 0===L&&(L=1);for(var D="".concat(L>0?"next":"previous","ElementSibling"),F=b[D];F;){if(F.matches(I))return F;F=F[D]}return F},a.isScrolledIntoView=function(b,I,L){return void 0===L&&(L=1),!!b&&(L>0?I.scrollTop+I.offsetHeight>=b.offsetTop+b.offsetHeight:b.offsetTop>=I.scrollTop)},a.sanitise=function(b){return"string"!=typeof b?b:b.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")},a.strToEl=(b=document.createElement("div"),function(I){var L=I.trim();b.innerHTML=L;for(var D=b.children[0];b.firstChild;)b.removeChild(b.firstChild);return D}),a.sortByAlpha=function(b,I){var D=b.label,O=I.label;return(void 0===D?b.value:D).localeCompare(void 0===O?I.value:O,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},a.sortByScore=function(b,I){var L=b.score,F=I.score;return(void 0===L?0:L)-(void 0===F?0:F)},a.dispatchEvent=function(b,I,L){void 0===L&&(L=null);var D=new CustomEvent(I,{detail:L,bubbles:!0,cancelable:!0});return b.dispatchEvent(D)},a.existsInArray=function(b,I,L){return void 0===L&&(L="value"),b.some(function(D){return"string"==typeof I?D[L]===I.trim():D[L]===I})},a.cloneObject=function(b){return JSON.parse(JSON.stringify(b))},a.diff=function(b,I){var L=Object.keys(b).sort(),D=Object.keys(I).sort();return L.filter(function(F){return D.indexOf(F)<0})},a.parseCustomProperties=function(b){if(typeof b<"u")try{return JSON.parse(b)}catch{return b}return{}}},273:function(o,a){var l=this&&this.__spreadArray||function(d,s,A){if(A||2===arguments.length)for(var R,_=0,C=s.length;_<C;_++)(R||!(_ in s))&&(R||(R=Array.prototype.slice.call(s,0,_)),R[_]=s[_]);return d.concat(R||Array.prototype.slice.call(s))};Object.defineProperty(a,"__esModule",{value:!0}),a.defaultState=void 0,a.defaultState=[],a.default=function u(d,s){switch(void 0===d&&(d=a.defaultState),void 0===s&&(s={}),s.type){case"ADD_CHOICE":var _={id:s.id,elementId:s.elementId,groupId:s.groupId,value:s.value,label:s.label||s.value,disabled:s.disabled||!1,selected:!1,active:!0,score:9999,customProperties:s.customProperties,placeholder:s.placeholder||!1};return l(l([],d,!0),[_],!1);case"ADD_ITEM":var C=s;return C.choiceId>-1?d.map(function(k){var w=k;return w.id===parseInt("".concat(C.choiceId),10)&&(w.selected=!0),w}):d;case"REMOVE_ITEM":var R=s;return R.choiceId&&R.choiceId>-1?d.map(function(k){var w=k;return w.id===parseInt("".concat(R.choiceId),10)&&(w.selected=!1),w}):d;case"FILTER_CHOICES":var x=s;return d.map(function(k){var w=k;return w.active=x.results.some(function(g){return g.item.id===w.id&&(w.score=g.score,!0)}),w});case"ACTIVATE_CHOICES":var f=s;return d.map(function(k){var w=k;return w.active=f.active,w});case"CLEAR_CHOICES":return a.defaultState;default:return d}}},871:function(o,a){var l=this&&this.__spreadArray||function(d,s,A){if(A||2===arguments.length)for(var R,_=0,C=s.length;_<C;_++)(R||!(_ in s))&&(R||(R=Array.prototype.slice.call(s,0,_)),R[_]=s[_]);return d.concat(R||Array.prototype.slice.call(s))};Object.defineProperty(a,"__esModule",{value:!0}),a.defaultState=void 0,a.defaultState=[],a.default=function u(d,s){switch(void 0===d&&(d=a.defaultState),void 0===s&&(s={}),s.type){case"ADD_GROUP":var A=s;return l(l([],d,!0),[{id:A.id,value:A.value,active:A.active,disabled:A.disabled}],!1);case"CLEAR_CHOICES":return[];default:return d}}},655:function(o,a,l){var u=this&&this.__importDefault||function(k){return k&&k.__esModule?k:{default:k}};Object.defineProperty(a,"__esModule",{value:!0}),a.defaultState=void 0;var d=l(791),s=u(l(52)),A=u(l(871)),_=u(l(273)),C=u(l(502)),R=l(799);a.defaultState={groups:[],items:[],choices:[],loading:!1};var x=(0,d.combineReducers)({items:s.default,groups:A.default,choices:_.default,loading:C.default});a.default=function(k,w){var g=k;if("CLEAR_ALL"===w.type)g=a.defaultState;else if("RESET_TO"===w.type)return(0,R.cloneObject)(w.state);return x(g,w)}},52:function(o,a){var l=this&&this.__spreadArray||function(d,s,A){if(A||2===arguments.length)for(var R,_=0,C=s.length;_<C;_++)(R||!(_ in s))&&(R||(R=Array.prototype.slice.call(s,0,_)),R[_]=s[_]);return d.concat(R||Array.prototype.slice.call(s))};Object.defineProperty(a,"__esModule",{value:!0}),a.defaultState=void 0,a.defaultState=[],a.default=function u(d,s){switch(void 0===d&&(d=a.defaultState),void 0===s&&(s={}),s.type){case"ADD_ITEM":var A=s;return l(l([],d,!0),[{id:A.id,choiceId:A.choiceId,groupId:A.groupId,value:A.value,label:A.label,active:!0,highlighted:!1,customProperties:A.customProperties,placeholder:A.placeholder||!1,keyCode:null}],!1).map(function(R){var x=R;return x.highlighted=!1,x});case"REMOVE_ITEM":return d.map(function(R){var x=R;return x.id===s.id&&(x.active=!1),x});case"HIGHLIGHT_ITEM":var C=s;return d.map(function(R){var x=R;return x.id===C.id&&(x.highlighted=C.highlighted),x});default:return d}}},502:(o,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.defaultState=void 0,a.defaultState=!1,a.default=function(u,d){return"SET_IS_LOADING"===(void 0===u&&(u=a.defaultState),void 0===d&&(d={}),d.type)?d.isLoading:u}},744:function(o,a,l){var u=this&&this.__spreadArray||function(C,R,x){if(x||2===arguments.length)for(var w,f=0,k=R.length;f<k;f++)(w||!(f in R))&&(w||(w=Array.prototype.slice.call(R,0,f)),w[f]=R[f]);return C.concat(w||Array.prototype.slice.call(R))},d=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(a,"__esModule",{value:!0});var s=l(791),A=d(l(655)),_=function(){function C(){this._store=(0,s.createStore)(A.default,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}return C.prototype.subscribe=function(R){this._store.subscribe(R)},C.prototype.dispatch=function(R){this._store.dispatch(R)},Object.defineProperty(C.prototype,"state",{get:function(){return this._store.getState()},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"activeItems",{get:function(){return this.items.filter(function(R){return!0===R.active})},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"highlightedActiveItems",{get:function(){return this.items.filter(function(R){return R.active&&R.highlighted})},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"activeChoices",{get:function(){return this.choices.filter(function(R){return!0===R.active})},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"selectableChoices",{get:function(){return this.choices.filter(function(R){return!0!==R.disabled})},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"searchableChoices",{get:function(){return this.selectableChoices.filter(function(R){return!0!==R.placeholder})},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"placeholderChoice",{get:function(){return u([],this.choices,!0).reverse().find(function(R){return!0===R.placeholder})},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"groups",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"activeGroups",{get:function(){var f=this.choices;return this.groups.filter(function(k){var w=!0===k.active&&!1===k.disabled,g=f.some(function(M){return!0===M.active&&!1===M.disabled});return w&&g},[])},enumerable:!1,configurable:!0}),C.prototype.isLoading=function(){return this.state.loading},C.prototype.getChoiceById=function(R){return this.activeChoices.find(function(x){return x.id===parseInt(R,10)})},C.prototype.getGroupById=function(R){return this.groups.find(function(x){return x.id===R})},C}();a.default=_},686:(o,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.default={containerOuter:function(u,d,s,A,_,C,R){var x=u.classNames.containerOuter,f=Object.assign(document.createElement("div"),{className:x});return f.dataset.type=C,d&&(f.dir=d),A&&(f.tabIndex=0),s&&(f.setAttribute("role",_?"combobox":"listbox"),_&&f.setAttribute("aria-autocomplete","list")),f.setAttribute("aria-haspopup","true"),f.setAttribute("aria-expanded","false"),R&&f.setAttribute("aria-labelledby",R),f},containerInner:function(u){var d=u.classNames.containerInner;return Object.assign(document.createElement("div"),{className:d})},itemList:function(u,d){var s=u.classNames,A=s.list,_=s.listSingle,C=s.listItems;return Object.assign(document.createElement("div"),{className:"".concat(A," ").concat(d?_:C)})},placeholder:function(u,d){var s,A=u.allowHTML,_=u.classNames.placeholder;return Object.assign(document.createElement("div"),((s={className:_})[A?"innerHTML":"innerText"]=d,s))},item:function(u,d,s){var A,_,C=u.allowHTML,R=u.classNames,x=R.item,f=R.button,k=R.highlightedState,w=R.itemSelectable,g=R.placeholder,M=d.id,p=d.value,E=d.label,b=d.customProperties,I=d.active,L=d.disabled,D=d.highlighted,F=d.placeholder,P=Object.assign(document.createElement("div"),((A={className:x})[C?"innerHTML":"innerText"]=E,A));if(Object.assign(P.dataset,{item:"",id:M,value:p,customProperties:b}),I&&P.setAttribute("aria-selected","true"),L&&P.setAttribute("aria-disabled","true"),F&&P.classList.add(g),P.classList.add(D?k:w),s){L&&P.classList.remove(w),P.dataset.deletable="";var O="Remove item",U=Object.assign(document.createElement("button"),((_={type:"button",className:f})[C?"innerHTML":"innerText"]=O,_));U.setAttribute("aria-label","".concat(O,": '").concat(p,"'")),U.dataset.button="",P.appendChild(U)}return P},choiceList:function(u,d){var s=u.classNames.list,A=Object.assign(document.createElement("div"),{className:s});return d||A.setAttribute("aria-multiselectable","true"),A.setAttribute("role","listbox"),A},choiceGroup:function(u,d){var s,A=u.allowHTML,_=u.classNames,C=_.group,R=_.groupHeading,x=_.itemDisabled,f=d.id,k=d.value,w=d.disabled,g=Object.assign(document.createElement("div"),{className:"".concat(C," ").concat(w?x:"")});return g.setAttribute("role","group"),Object.assign(g.dataset,{group:"",id:f,value:k}),w&&g.setAttribute("aria-disabled","true"),g.appendChild(Object.assign(document.createElement("div"),((s={className:R})[A?"innerHTML":"innerText"]=k,s))),g},choice:function(u,d,s){var A,_=u.allowHTML,C=u.classNames,R=C.item,x=C.itemChoice,f=C.itemSelectable,k=C.selectedState,w=C.itemDisabled,g=C.placeholder,M=d.id,p=d.value,E=d.label,b=d.groupId,I=d.elementId,L=d.disabled,D=d.selected,F=d.placeholder,P=Object.assign(document.createElement("div"),((A={id:I})[_?"innerHTML":"innerText"]=E,A.className="".concat(R," ").concat(x),A));return D&&P.classList.add(k),F&&P.classList.add(g),P.setAttribute("role",b&&b>0?"treeitem":"option"),Object.assign(P.dataset,{choice:"",id:M,value:p,selectText:s}),L?(P.classList.add(w),P.dataset.choiceDisabled="",P.setAttribute("aria-disabled","true")):(P.classList.add(f),P.dataset.choiceSelectable=""),P},input:function(u,d){var s=u.classNames,A=s.input,_=s.inputCloned,C=Object.assign(document.createElement("input"),{type:"text",name:"search_terms",className:"".concat(A," ").concat(_),autocomplete:"off",autocapitalize:"off",spellcheck:!1});return C.setAttribute("role","textbox"),C.setAttribute("aria-autocomplete","list"),C.setAttribute("aria-label",d),C},dropdown:function(u){var d=u.classNames,s=d.list,A=d.listDropdown,_=document.createElement("div");return _.classList.add(s,A),_.setAttribute("aria-expanded","false"),_},notice:function(u,d,s){var A,_=u.allowHTML,C=u.classNames,f=C.noResults;void 0===s&&(s="");var w=[C.item,C.itemChoice];return"no-choices"===s?w.push(C.noChoices):"no-results"===s&&w.push(f),Object.assign(document.createElement("div"),((A={})[_?"innerHTML":"innerText"]=d,A.className=w.join(" "),A))},option:function(u){var A=u.customProperties,C=u.disabled,R=new Option(u.label,u.value,!1,u.active);return A&&(R.dataset.customProperties="".concat(A)),R.disabled=!!C,R}}},996:o=>{var a=function(I){return function l(b){return!!b&&"object"==typeof b}(I)&&!function u(b){var I=Object.prototype.toString.call(b);return"[object RegExp]"===I||"[object Date]"===I||function A(b){return b.$$typeof===s}(b)}(I)},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function C(b,I){return!1!==I.clone&&I.isMergeableObject(b)?p(function _(b){return Array.isArray(b)?[]:{}}(b),b,I):b}function R(b,I,L){return b.concat(I).map(function(D){return C(D,L)})}function k(b){return Object.keys(b).concat(function f(b){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(b).filter(function(I){return b.propertyIsEnumerable(I)}):[]}(b))}function w(b,I){try{return I in b}catch{return!1}}function p(b,I,L){(L=L||{}).arrayMerge=L.arrayMerge||R,L.isMergeableObject=L.isMergeableObject||a,L.cloneUnlessOtherwiseSpecified=C;var D=Array.isArray(I);return D===Array.isArray(b)?D?L.arrayMerge(b,I,L):function M(b,I,L){var D={};return L.isMergeableObject(b)&&k(b).forEach(function(F){D[F]=C(b[F],L)}),k(I).forEach(function(F){(function g(b,I){return w(b,I)&&!(Object.hasOwnProperty.call(b,I)&&Object.propertyIsEnumerable.call(b,I))})(b,F)||(D[F]=w(b,F)&&L.isMergeableObject(I[F])?function x(b,I){if(!I.customMerge)return p;var L=I.customMerge(b);return"function"==typeof L?L:p}(F,L)(b[F],I[F],L):C(I[F],L))}),D}(b,I,L):C(I,L)}p.all=function(I,L){if(!Array.isArray(I))throw new Error("first argument should be an array");return I.reduce(function(D,F){return p(D,F,L)},{})},o.exports=p},221:(o,a,l)=>{function u(oi){return Array.isArray?Array.isArray(oi):"[object Array]"===g(oi)}function _(oi){return"string"==typeof oi}function C(oi){return"number"==typeof oi}function x(oi){return"object"==typeof oi}function k(oi){return null!=oi}function w(oi){return!oi.trim().length}function g(oi){return null==oi?void 0===oi?"[object Undefined]":"[object Null]":Object.prototype.toString.call(oi)}l.r(a),l.d(a,{default:()=>Fn});const I=oi=>`Missing ${oi} property in key`,L=oi=>`Property 'weight' in key '${oi}' must be a positive integer`,D=Object.prototype.hasOwnProperty;class F{constructor(It){this._keys=[],this._keyMap={};let Bt=0;It.forEach(xt=>{let wt=P(xt);Bt+=wt.weight,this._keys.push(wt),this._keyMap[wt.id]=wt,Bt+=wt.weight}),this._keys.forEach(xt=>{xt.weight/=Bt})}get(It){return this._keyMap[It]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function P(oi){let It=null,Bt=null,xt=null,wt=1,Mt=null;if(_(oi)||u(oi))xt=oi,It=O(oi),Bt=U(oi);else{if(!D.call(oi,"name"))throw new Error(I("name"));const pt=oi.name;if(xt=pt,D.call(oi,"weight")&&(wt=oi.weight,wt<=0))throw new Error(L(pt));It=O(pt),Bt=U(pt),Mt=oi.getFn}return{path:It,id:Bt,weight:wt,src:xt,getFn:Mt}}function O(oi){return u(oi)?oi:oi.split(".")}function U(oi){return u(oi)?oi.join("."):oi}var Q={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(oi,It)=>oi.score===It.score?oi.idx<It.idx?-1:1:oi.score<It.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function V(oi,It){let Bt=[],xt=!1;const wt=(Mt,pt,Lt)=>{if(k(Mt))if(pt[Lt]){const Ne=Mt[pt[Lt]];if(!k(Ne))return;if(Lt===pt.length-1&&(_(Ne)||C(Ne)||function R(oi){return!0===oi||!1===oi||function f(oi){return x(oi)&&null!==oi}(oi)&&"[object Boolean]"==g(oi)}(Ne)))Bt.push(function A(oi){return null==oi?"":function s(oi){if("string"==typeof oi)return oi;let It=oi+"";return"0"==It&&1/oi==-1/0?"-0":It}(oi)}(Ne));else if(u(Ne)){xt=!0;for(let vt=0,ln=Ne.length;vt<ln;vt+=1)wt(Ne[vt],pt,Lt+1)}else pt.length&&wt(Ne,pt,Lt+1)}else Bt.push(Mt)};return wt(oi,_(It)?It.split("."):It,0),xt?Bt:Bt[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};const re=/[^ ]+/g;class te{constructor({getFn:It=Q.getFn,fieldNormWeight:Bt=Q.fieldNormWeight}={}){this.norm=function de(oi=1,It=3){const Bt=new Map,xt=Math.pow(10,It);return{get(wt){const Mt=wt.match(re).length;if(Bt.has(Mt))return Bt.get(Mt);const pt=1/Math.pow(Mt,.5*oi),Lt=parseFloat(Math.round(pt*xt)/xt);return Bt.set(Mt,Lt),Lt},clear(){Bt.clear()}}}(Bt,3),this.getFn=It,this.isCreated=!1,this.setIndexRecords()}setSources(It=[]){this.docs=It}setIndexRecords(It=[]){this.records=It}setKeys(It=[]){this.keys=It,this._keysMap={},It.forEach((Bt,xt)=>{this._keysMap[Bt.id]=xt})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,_(this.docs[0])?this.docs.forEach((It,Bt)=>{this._addString(It,Bt)}):this.docs.forEach((It,Bt)=>{this._addObject(It,Bt)}),this.norm.clear())}add(It){const Bt=this.size();_(It)?this._addString(It,Bt):this._addObject(It,Bt)}removeAt(It){this.records.splice(It,1);for(let Bt=It,xt=this.size();Bt<xt;Bt+=1)this.records[Bt].i-=1}getValueForItemAtKeyId(It,Bt){return It[this._keysMap[Bt]]}size(){return this.records.length}_addString(It,Bt){if(!k(It)||w(It))return;let xt={v:It,i:Bt,n:this.norm.get(It)};this.records.push(xt)}_addObject(It,Bt){let xt={i:Bt,$:{}};this.keys.forEach((wt,Mt)=>{let pt=wt.getFn?wt.getFn(It):this.getFn(It,wt.path);if(k(pt))if(u(pt)){let Lt=[];const tt=[{nestedArrIndex:-1,value:pt}];for(;tt.length;){const{nestedArrIndex:Ne,value:vt}=tt.pop();if(k(vt))if(_(vt)&&!w(vt)){let ln={v:vt,i:Ne,n:this.norm.get(vt)};Lt.push(ln)}else u(vt)&&vt.forEach((ln,jn)=>{tt.push({nestedArrIndex:jn,value:ln})})}xt.$[Mt]=Lt}else if(_(pt)&&!w(pt)){let Lt={v:pt,n:this.norm.get(pt)};xt.$[Mt]=Lt}}),this.records.push(xt)}toJSON(){return{keys:this.keys,records:this.records}}}function j(oi,It,{getFn:Bt=Q.getFn,fieldNormWeight:xt=Q.fieldNormWeight}={}){const wt=new te({getFn:Bt,fieldNormWeight:xt});return wt.setKeys(oi.map(P)),wt.setSources(It),wt.create(),wt}function H(oi,{getFn:It=Q.getFn,fieldNormWeight:Bt=Q.fieldNormWeight}={}){const{keys:xt,records:wt}=oi,Mt=new te({getFn:It,fieldNormWeight:Bt});return Mt.setKeys(xt),Mt.setIndexRecords(wt),Mt}function z(oi,{errors:It=0,currentLocation:Bt=0,expectedLocation:xt=0,distance:wt=Q.distance,ignoreLocation:Mt=Q.ignoreLocation}={}){const pt=It/oi.length;if(Mt)return pt;const Lt=Math.abs(xt-Bt);return wt?pt+Lt/wt:Lt?1:pt}function _e(oi){let It={};for(let Bt=0,xt=oi.length;Bt<xt;Bt+=1){const wt=oi.charAt(Bt);It[wt]=(It[wt]||0)|1<<xt-Bt-1}return It}class ge{constructor(It,{location:Bt=Q.location,threshold:xt=Q.threshold,distance:wt=Q.distance,includeMatches:Mt=Q.includeMatches,findAllMatches:pt=Q.findAllMatches,minMatchCharLength:Lt=Q.minMatchCharLength,isCaseSensitive:tt=Q.isCaseSensitive,ignoreLocation:Ne=Q.ignoreLocation}={}){if(this.options={location:Bt,threshold:xt,distance:wt,includeMatches:Mt,findAllMatches:pt,minMatchCharLength:Lt,isCaseSensitive:tt,ignoreLocation:Ne},this.pattern=tt?It:It.toLowerCase(),this.chunks=[],!this.pattern.length)return;const vt=(jn,Pi)=>{this.chunks.push({pattern:jn,alphabet:_e(jn),startIndex:Pi})},ln=this.pattern.length;if(ln>32){let jn=0;const Pi=ln%32,go=ln-Pi;for(;jn<go;)vt(this.pattern.substr(jn,32),jn),jn+=32;if(Pi){const si=ln-32;vt(this.pattern.substr(si),si)}}else vt(this.pattern,0)}searchIn(It){const{isCaseSensitive:Bt,includeMatches:xt}=this.options;if(Bt||(It=It.toLowerCase()),this.pattern===It){let go={isMatch:!0,score:0};return xt&&(go.indices=[[0,It.length-1]]),go}const{location:wt,distance:Mt,threshold:pt,findAllMatches:Lt,minMatchCharLength:tt,ignoreLocation:Ne}=this.options;let vt=[],ln=0,jn=!1;this.chunks.forEach(({pattern:go,alphabet:si,startIndex:ot})=>{const{isMatch:pn,score:_i,indices:wi}=function ne(oi,It,Bt,{location:xt=Q.location,distance:wt=Q.distance,threshold:Mt=Q.threshold,findAllMatches:pt=Q.findAllMatches,minMatchCharLength:Lt=Q.minMatchCharLength,includeMatches:tt=Q.includeMatches,ignoreLocation:Ne=Q.ignoreLocation}={}){if(It.length>32)throw new Error("Pattern length exceeds max of 32.");const vt=It.length,ln=oi.length,jn=Math.max(0,Math.min(xt,ln));let Pi=Mt,go=jn;const si=Lt>1||tt,ot=si?Array(ln):[];let pn;for(;(pn=oi.indexOf(It,go))>-1;){let li=z(It,{currentLocation:pn,expectedLocation:jn,distance:wt,ignoreLocation:Ne});if(Pi=Math.min(li,Pi),go=pn+vt,si){let Xi=0;for(;Xi<vt;)ot[pn+Xi]=1,Xi+=1}}go=-1;let _i=[],wi=1,hi=vt+ln;const zn=1<<vt-1;for(let li=0;li<vt;li+=1){let Xi=0,ki=hi;for(;Xi<ki;)z(It,{errors:li,currentLocation:jn+ki,expectedLocation:jn,distance:wt,ignoreLocation:Ne})<=Pi?Xi=ki:hi=ki,ki=Math.floor((hi-Xi)/2+Xi);hi=ki;let bo=Math.max(1,jn-ki+1),jo=pt?ln:Math.min(jn+ki,ln)+vt,wn=Array(jo+2);wn[jo+1]=(1<<li)-1;for(let oo=jo;oo>=bo;oo-=1){let Bi=oo-1,Xo=Bt[oi.charAt(Bi)];if(si&&(ot[Bi]=+!!Xo),wn[oo]=(wn[oo+1]<<1|1)&Xo,li&&(wn[oo]|=(_i[oo+1]|_i[oo])<<1|1|_i[oo+1]),wn[oo]&zn&&(wi=z(It,{errors:li,currentLocation:Bi,expectedLocation:jn,distance:wt,ignoreLocation:Ne}),wi<=Pi)){if(Pi=wi,go=Bi,go<=jn)break;bo=Math.max(1,2*jn-go)}}if(z(It,{errors:li+1,currentLocation:jn,expectedLocation:jn,distance:wt,ignoreLocation:Ne})>Pi)break;_i=wn}const Ei={isMatch:go>=0,score:Math.max(.001,wi)};if(si){const li=function q(oi=[],It=Q.minMatchCharLength){let Bt=[],xt=-1,wt=-1,Mt=0;for(let pt=oi.length;Mt<pt;Mt+=1){let Lt=oi[Mt];Lt&&-1===xt?xt=Mt:!Lt&&-1!==xt&&(wt=Mt-1,wt-xt+1>=It&&Bt.push([xt,wt]),xt=-1)}return oi[Mt-1]&&Mt-xt>=It&&Bt.push([xt,Mt-1]),Bt}(ot,Lt);li.length?tt&&(Ei.indices=li):Ei.isMatch=!1}return Ei}(It,go,si,{location:wt+ot,distance:Mt,threshold:pt,findAllMatches:Lt,minMatchCharLength:tt,includeMatches:xt,ignoreLocation:Ne});pn&&(jn=!0),ln+=_i,pn&&wi&&(vt=[...vt,...wi])});let Pi={isMatch:jn,score:jn?ln/this.chunks.length:1};return jn&&xt&&(Pi.indices=vt),Pi}}class Ce{constructor(It){this.pattern=It}static isMultiMatch(It){return Te(It,this.multiRegex)}static isSingleMatch(It){return Te(It,this.singleRegex)}search(){}}function Te(oi,It){const Bt=oi.match(It);return Bt?Bt[1]:null}class Ut extends Ce{constructor(It,{location:Bt=Q.location,threshold:xt=Q.threshold,distance:wt=Q.distance,includeMatches:Mt=Q.includeMatches,findAllMatches:pt=Q.findAllMatches,minMatchCharLength:Lt=Q.minMatchCharLength,isCaseSensitive:tt=Q.isCaseSensitive,ignoreLocation:Ne=Q.ignoreLocation}={}){super(It),this._bitapSearch=new ge(It,{location:Bt,threshold:xt,distance:wt,includeMatches:Mt,findAllMatches:pt,minMatchCharLength:Lt,isCaseSensitive:tt,ignoreLocation:Ne})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(It){return this._bitapSearch.searchIn(It)}}class An extends Ce{constructor(It){super(It)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(It){let xt,Bt=0;const wt=[],Mt=this.pattern.length;for(;(xt=It.indexOf(this.pattern,Bt))>-1;)Bt=xt+Mt,wt.push([xt,Bt-1]);const pt=!!wt.length;return{isMatch:pt,score:pt?0:1,indices:wt}}}const $n=[class De extends Ce{constructor(It){super(It)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(It){const Bt=It===this.pattern;return{isMatch:Bt,score:Bt?0:1,indices:[0,this.pattern.length-1]}}},An,class xe extends Ce{constructor(It){super(It)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(It){const Bt=It.startsWith(this.pattern);return{isMatch:Bt,score:Bt?0:1,indices:[0,this.pattern.length-1]}}},class Oe extends Ce{constructor(It){super(It)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(It){const Bt=!It.startsWith(this.pattern);return{isMatch:Bt,score:Bt?0:1,indices:[0,It.length-1]}}},class Gt extends Ce{constructor(It){super(It)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(It){const Bt=!It.endsWith(this.pattern);return{isMatch:Bt,score:Bt?0:1,indices:[0,It.length-1]}}},class Le extends Ce{constructor(It){super(It)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(It){const Bt=It.endsWith(this.pattern);return{isMatch:Bt,score:Bt?0:1,indices:[It.length-this.pattern.length,It.length-1]}}},class fe extends Ce{constructor(It){super(It)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(It){const xt=-1===It.indexOf(this.pattern);return{isMatch:xt,score:xt?0:1,indices:[0,It.length-1]}}},Ut],xn=$n.length,mt=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,dn=new Set([Ut.type,An.type]),fn=[];function nn(oi,It){for(let Bt=0,xt=fn.length;Bt<xt;Bt+=1){let wt=fn[Bt];if(wt.condition(oi,It))return new wt(oi,It)}return new ge(oi,It)}const Eo=oi=>!(!oi.$and&&!oi.$or),Bn=oi=>({$and:Object.keys(oi).map(It=>({[It]:oi[It]}))});function Xt(oi,It,{auto:Bt=!0}={}){const xt=wt=>{let Mt=Object.keys(wt);const pt=(oi=>!!oi.$path)(wt);if(!pt&&Mt.length>1&&!Eo(wt))return xt(Bn(wt));if((oi=>!u(oi)&&x(oi)&&!Eo(oi))(wt)){const tt=pt?wt.$path:Mt[0],Ne=pt?wt.$val:wt[tt];if(!_(Ne))throw new Error((oi=>`Invalid value for key ${oi}`)(tt));const vt={keyId:U(tt),pattern:Ne};return Bt&&(vt.searcher=nn(Ne,It)),vt}let Lt={children:[],operator:Mt[0]};return Mt.forEach(tt=>{const Ne=wt[tt];u(Ne)&&Ne.forEach(vt=>{Lt.children.push(xt(vt))})}),Lt};return Eo(oi)||(oi=Bn(oi)),xt(oi)}function En(oi,It){const Bt=oi.matches;It.matches=[],k(Bt)&&Bt.forEach(xt=>{if(!k(xt.indices)||!xt.indices.length)return;const{indices:wt,value:Mt}=xt;let pt={indices:wt,value:Mt};xt.key&&(pt.key=xt.key.src),xt.idx>-1&&(pt.refIndex=xt.idx),It.matches.push(pt)})}function un(oi,It){It.score=oi.score}let Fn=(()=>{class oi{constructor(Bt,xt={},wt){this.options={...Q,...xt},this._keyStore=new F(this.options.keys),this.setCollection(Bt,wt)}setCollection(Bt,xt){if(this._docs=Bt,xt&&!(xt instanceof te))throw new Error("Incorrect 'index' type");this._myIndex=xt||j(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(Bt){k(Bt)&&(this._docs.push(Bt),this._myIndex.add(Bt))}remove(Bt=(()=>!1)){const xt=[];for(let wt=0,Mt=this._docs.length;wt<Mt;wt+=1){const pt=this._docs[wt];Bt(pt,wt)&&(this.removeAt(wt),wt-=1,Mt-=1,xt.push(pt))}return xt}removeAt(Bt){this._docs.splice(Bt,1),this._myIndex.removeAt(Bt)}getIndex(){return this._myIndex}search(Bt,{limit:xt=-1}={}){const{includeMatches:wt,includeScore:Mt,shouldSort:pt,sortFn:Lt,ignoreFieldNorm:tt}=this.options;let Ne=_(Bt)?_(this._docs[0])?this._searchStringList(Bt):this._searchObjectList(Bt):this._searchLogical(Bt);return function Ji(oi,{ignoreFieldNorm:It=Q.ignoreFieldNorm}){oi.forEach(Bt=>{let xt=1;Bt.matches.forEach(({key:wt,norm:Mt,score:pt})=>{const Lt=wt?wt.weight:null;xt*=Math.pow(0===pt&&Lt?Number.EPSILON:pt,(Lt||1)*(It?1:Mt))}),Bt.score=xt})}(Ne,{ignoreFieldNorm:tt}),pt&&Ne.sort(Lt),C(xt)&&xt>-1&&(Ne=Ne.slice(0,xt)),function Ki(oi,It,{includeMatches:Bt=Q.includeMatches,includeScore:xt=Q.includeScore}={}){const wt=[];return Bt&&wt.push(En),xt&&wt.push(un),oi.map(Mt=>{const{idx:pt}=Mt,Lt={item:It[pt],refIndex:pt};return wt.length&&wt.forEach(tt=>{tt(Mt,Lt)}),Lt})}(Ne,this._docs,{includeMatches:wt,includeScore:Mt})}_searchStringList(Bt){const xt=nn(Bt,this.options),{records:wt}=this._myIndex,Mt=[];return wt.forEach(({v:pt,i:Lt,n:tt})=>{if(!k(pt))return;const{isMatch:Ne,score:vt,indices:ln}=xt.searchIn(pt);Ne&&Mt.push({item:pt,idx:Lt,matches:[{score:vt,value:pt,norm:tt,indices:ln}]})}),Mt}_searchLogical(Bt){const xt=Xt(Bt,this.options),wt=(tt,Ne,vt)=>{if(!tt.children){const{keyId:jn,searcher:Pi}=tt,go=this._findMatches({key:this._keyStore.get(jn),value:this._myIndex.getValueForItemAtKeyId(Ne,jn),searcher:Pi});return go&&go.length?[{idx:vt,item:Ne,matches:go}]:[]}const ln=[];for(let jn=0,Pi=tt.children.length;jn<Pi;jn+=1){const si=wt(tt.children[jn],Ne,vt);if(si.length)ln.push(...si);else if("$and"===tt.operator)return[]}return ln},pt={},Lt=[];return this._myIndex.records.forEach(({$:tt,i:Ne})=>{if(k(tt)){let vt=wt(xt,tt,Ne);vt.length&&(pt[Ne]||(pt[Ne]={idx:Ne,item:tt,matches:[]},Lt.push(pt[Ne])),vt.forEach(({matches:ln})=>{pt[Ne].matches.push(...ln)}))}}),Lt}_searchObjectList(Bt){const xt=nn(Bt,this.options),{keys:wt,records:Mt}=this._myIndex,pt=[];return Mt.forEach(({$:Lt,i:tt})=>{if(!k(Lt))return;let Ne=[];wt.forEach((vt,ln)=>{Ne.push(...this._findMatches({key:vt,value:Lt[ln],searcher:xt}))}),Ne.length&&pt.push({idx:tt,item:Lt,matches:Ne})}),pt}_findMatches({key:Bt,value:xt,searcher:wt}){if(!k(xt))return[];let Mt=[];if(u(xt))xt.forEach(({v:pt,i:Lt,n:tt})=>{if(!k(pt))return;const{isMatch:Ne,score:vt,indices:ln}=wt.searchIn(pt);Ne&&Mt.push({score:vt,key:Bt,value:pt,idx:Lt,norm:tt,indices:ln})});else{const{v:pt,n:Lt}=xt,{isMatch:tt,score:Ne,indices:vt}=wt.searchIn(pt);tt&&Mt.push({score:Ne,key:Bt,value:pt,norm:Lt,indices:vt})}return Mt}}return oi.version="6.6.2",oi.createIndex=j,oi.parseIndex=H,oi.config=Q,oi})();Fn.parseQuery=Xt,function yi(...oi){fn.push(...oi)}(class sn{constructor(It,{isCaseSensitive:Bt=Q.isCaseSensitive,includeMatches:xt=Q.includeMatches,minMatchCharLength:wt=Q.minMatchCharLength,ignoreLocation:Mt=Q.ignoreLocation,findAllMatches:pt=Q.findAllMatches,location:Lt=Q.location,threshold:tt=Q.threshold,distance:Ne=Q.distance}={}){this.query=null,this.options={isCaseSensitive:Bt,includeMatches:xt,minMatchCharLength:wt,findAllMatches:pt,ignoreLocation:Mt,location:Lt,threshold:tt,distance:Ne},this.pattern=Bt?It:It.toLowerCase(),this.query=function Wt(oi,It={}){return oi.split("|").map(Bt=>{let xt=Bt.trim().split(mt).filter(Mt=>Mt&&!!Mt.trim()),wt=[];for(let Mt=0,pt=xt.length;Mt<pt;Mt+=1){const Lt=xt[Mt];let tt=!1,Ne=-1;for(;!tt&&++Ne<xn;){const vt=$n[Ne];let ln=vt.isMultiMatch(Lt);ln&&(wt.push(new vt(ln,It)),tt=!0)}if(!tt)for(Ne=-1;++Ne<xn;){const vt=$n[Ne];let ln=vt.isSingleMatch(Lt);if(ln){wt.push(new vt(ln,It));break}}}return wt})}(this.pattern,this.options)}static condition(It,Bt){return Bt.useExtendedSearch}searchIn(It){const Bt=this.query;if(!Bt)return{isMatch:!1,score:1};const{includeMatches:xt,isCaseSensitive:wt}=this.options;It=wt?It:It.toLowerCase();let Mt=0,pt=[],Lt=0;for(let tt=0,Ne=Bt.length;tt<Ne;tt+=1){const vt=Bt[tt];pt.length=0,Mt=0;for(let ln=0,jn=vt.length;ln<jn;ln+=1){const Pi=vt[ln],{isMatch:go,indices:si,score:ot}=Pi.search(It);if(!go){Lt=0,Mt=0,pt.length=0;break}Mt+=1,Lt+=ot,xt&&(dn.has(Pi.constructor.type)?pt=[...pt,...si]:pt.push(si))}if(Mt){let ln={isMatch:!0,score:Lt/Mt};return xt&&(ln.indices=pt),ln}}return{isMatch:!1,score:1}}})},791:(o,a,l)=>{function u(J){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Q){return typeof Q}:function(Q){return Q&&"function"==typeof Symbol&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q})(J)}function A(J,Q,re){return(Q=function s(J){var Q=function d(J,Q){if("object"!==u(J)||null===J)return J;var re=J[Symbol.toPrimitive];if(void 0!==re){var de=re.call(J,Q||"default");if("object"!==u(de))return de;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Q?String:Number)(J)}(J,"string");return"symbol"===u(Q)?Q:String(Q)}(Q))in J?Object.defineProperty(J,Q,{value:re,enumerable:!0,configurable:!0,writable:!0}):J[Q]=re,J}function _(J,Q){var re=Object.keys(J);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(J);Q&&(de=de.filter(function(te){return Object.getOwnPropertyDescriptor(J,te).enumerable})),re.push.apply(re,de)}return re}function C(J){for(var Q=1;Q<arguments.length;Q++){var re=null!=arguments[Q]?arguments[Q]:{};Q%2?_(Object(re),!0).forEach(function(de){A(J,de,re[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(J,Object.getOwnPropertyDescriptors(re)):_(Object(re)).forEach(function(de){Object.defineProperty(J,de,Object.getOwnPropertyDescriptor(re,de))})}return J}function R(J){return"Minified Redux error #"+J+"; visit https://redux.js.org/Errors?code="+J+" for the full message or use the non-minified dev environment for full errors. "}l.r(a),l.d(a,{__DO_NOT_USE__ActionTypes:()=>k,applyMiddleware:()=>X,bindActionCreators:()=>V,combineReducers:()=>O,compose:()=>K,createStore:()=>I,legacy_createStore:()=>L});var x="function"==typeof Symbol&&Symbol.observable||"@@observable",f=function(){return Math.random().toString(36).substring(7).split("").join(".")},k={INIT:"@@redux/INIT"+f(),REPLACE:"@@redux/REPLACE"+f(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+f()}};function I(J,Q,re){var de;if("function"==typeof Q&&"function"==typeof re||"function"==typeof re&&"function"==typeof arguments[3])throw new Error(R(0));if("function"==typeof Q&&typeof re>"u"&&(re=Q,Q=void 0),typeof re<"u"){if("function"!=typeof re)throw new Error(R(1));return re(I)(J,Q)}if("function"!=typeof J)throw new Error(R(2));var te=J,j=Q,H=[],z=H,q=!1;function se(){z===H&&(z=H.slice())}function ne(){if(q)throw new Error(R(3));return j}function _e(De){if("function"!=typeof De)throw new Error(R(4));if(q)throw new Error(R(5));var fe=!0;return se(),z.push(De),function(){if(fe){if(q)throw new Error(R(6));fe=!1,se();var Oe=z.indexOf(De);z.splice(Oe,1),H=null}}}function ge(De){if(!function w(J){if("object"!=typeof J||null===J)return!1;for(var Q=J;null!==Object.getPrototypeOf(Q);)Q=Object.getPrototypeOf(Q);return Object.getPrototypeOf(J)===Q}(De))throw new Error(R(7));if(typeof De.type>"u")throw new Error(R(8));if(q)throw new Error(R(9));try{q=!0,j=te(j,De)}finally{q=!1}for(var fe=H=z,xe=0;xe<fe.length;xe++)(0,fe[xe])();return De}return ge({type:k.INIT}),(de={dispatch:ge,subscribe:_e,getState:ne,replaceReducer:function Ce(De){if("function"!=typeof De)throw new Error(R(10));te=De,ge({type:k.REPLACE})}})[x]=function Te(){var De,fe=_e;return(De={subscribe:function(Oe){if("object"!=typeof Oe||null===Oe)throw new Error(R(11));function Le(){Oe.next&&Oe.next(ne())}return Le(),{unsubscribe:fe(Le)}}})[x]=function(){return this},De},de}var L=I;function O(J){for(var Q=Object.keys(J),re={},de=0;de<Q.length;de++){var te=Q[de];"function"==typeof J[te]&&(re[te]=J[te])}var z,j=Object.keys(re);try{!function P(J){Object.keys(J).forEach(function(Q){var re=J[Q];if(typeof re(void 0,{type:k.INIT})>"u")throw new Error(R(12));if(typeof re(void 0,{type:k.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(R(13))})}(re)}catch(q){z=q}return function(se,ne){if(void 0===se&&(se={}),z)throw z;for(var ge=!1,Ce={},Te=0;Te<j.length;Te++){var De=j[Te],xe=se[De],Oe=(0,re[De])(xe,ne);if(typeof Oe>"u")throw new Error(R(14));Ce[De]=Oe,ge=ge||Oe!==xe}return(ge=ge||j.length!==Object.keys(se).length)?Ce:se}}function U(J,Q){return function(){return Q(J.apply(this,arguments))}}function V(J,Q){if("function"==typeof J)return U(J,Q);if("object"!=typeof J||null===J)throw new Error(R(16));var re={};for(var de in J){var te=J[de];"function"==typeof te&&(re[de]=U(te,Q))}return re}function K(){for(var J=arguments.length,Q=new Array(J),re=0;re<J;re++)Q[re]=arguments[re];return 0===Q.length?function(de){return de}:1===Q.length?Q[0]:Q.reduce(function(de,te){return function(){return de(te.apply(void 0,arguments))}})}function X(){for(var J=arguments.length,Q=new Array(J),re=0;re<J;re++)Q[re]=arguments[re];return function(de){return function(){var te=de.apply(void 0,arguments),j=function(){throw new Error(R(15))},H={getState:te.getState,dispatch:function(){return j.apply(void 0,arguments)}},z=Q.map(function(q){return q(H)});return j=K.apply(void 0,z)(te.dispatch),C(C({},te),{},{dispatch:j})}}}}},i={};function e(o){var a=i[o];if(void 0!==a)return a.exports;var l=i[o]={exports:{}};return y[o].call(l.exports,l,l.exports,e),l.exports}e.n=o=>{var a=o&&o.__esModule?()=>o.default:()=>o;return e.d(a,{a}),a},e.d=(o,a)=>{for(var l in a)e.o(a,l)&&!e.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:a[l]})},e.o=(o,a)=>Object.prototype.hasOwnProperty.call(o,a),e.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var n={};return(()=>{e.d(n,{default:()=>_});var o=e(373),a=e.n(o);e(187),e(883),e(789),e(686);const _=a()})(),n.default})()},8071:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(19815);y.default={framework:"semantic",templates:e.default}},19815:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(31616);y.default={semantic:e.default}},57647:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";for(var l in n+="<div\n  ",i.attrs)n+="\n    ",n+="class"===l?"\n      "+(null==(e=l)?"":e)+'="ui message '+(null==(e=i.attrs[l])?"":e)+'"\n    ':"\n      "+(null==(e=l)?"":e)+'="'+(null==(e=i.attrs[l])?"":e)+'"\n    ',n+="\n  ";return n+"\n>"+(null==(e=i.message)?"":e)+"</div>\n"}},78816:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(57647);y.default={form:e.default}},66139:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="builder-component" ref="dragComponent">\n  <div class="component-btn-group" data-noattach="true">\n    <div class="ui button mini icon primary component-settings-button-edit", ref="editComponent">\n      <i class="'+(null==(e=i.iconClass("cog"))?"":e)+'"></i>\n    </div>\n    <div class="ui button mini icon component-settings-button-copy" ref="copyComponent">\n      <i class="'+(null==(e=i.iconClass("copy"))?"":e)+'"></i>\n    </div>\n    <div class="ui button mini icon component-settings-button-paste" ref="pasteComponent">\n      <i class="'+(null==(e=i.iconClass("save"))?"":e)+'"></i>\n    </div>\n    <div class="ui button mini icon component-settings-button-edit-json" ref="editJson">\n      <i class="'+(null==(e=i.iconClass("wrench"))?"":e)+'"></i>\n    </div>\n    <div class="ui button mini icon component-settings-button-move" ref="moveComponent">\n      <i class="'+(null==(e=i.iconClass("move"))?"":e)+'"></i>\n    </div>\n    <div class="ui button mini icon secondary component-settings-button-remove" ref="removeComponent">\n      <i class="'+(null==(e=i.iconClass("remove"))?"":e)+'"></i>\n    </div>\n  </div>\n  '+(null==(e=i.html)?"":e)+"\n</div>\n"}},23472:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(66139);y.default={form:e.default}},20154:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="builder-components drag-container '+(null==(e=i.type)?"":e)+'" ref="'+(null==(e=i.key)?"":e)+'-container">\n  '+(null==(e=i.html)?"":e)+"\n</div>\n"}},82924:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(20154);y.default={form:e.default}},32089:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="ui grid">\n  <div class="eight wide column">\n    <h3 class="lead">'+(null==(e=i.t(i.componentInfo.title))?"":e)+" "+(null==(e=i.t("Component"))?"":e)+'</h3>\n  </div>\n  <div class="eight wide column">\n    <div class="right floated" style="margin-right: 20px; margin-top: 10px">\n      <a href="'+(null==(e=i.componentInfo.documentation)?"":e)+'" target="_blank">\n        <i class="'+(null==(e=i.iconClass("new-window"))?"":e)+'"> '+(null==(e=i.t("Help"))?"":e)+'</i>\n      </a>\n    </div>\n  </div>\n</div>\n<div class="ui grid">\n  <div class="',n+=i.preview?"eight":"sixteen",n+=' wide column">\n    <div ref="editForm">\n        '+(null==(e=i.editForm)?"":e)+"\n    </div>\n    ",i.preview||(n+='\n    <div style="margin-top: 10px;">\n      <button class="ui button primary" style="margin-right: 10px;" ref="saveButton">'+(null==(e=i.t("Save"))?"":e)+'</button>\n      <button class="ui button default" style="margin-right: 10px;" ref="cancelButton">'+(null==(e=i.t("Cancel"))?"":e)+'</button>\n      <button class="ui button negative" ref="removeButton">'+(null==(e=i.t("Remove"))?"":e)+"</button>\n    </div>\n    "),n+="\n  </div>\n  ",i.preview&&(n+='\n  <div class="eight wide column">\n    <div class="ui top attached block header">\n      '+(null==(e=i.t("Preview"))?"":e)+'\n    </div>\n    <div class="ui bottom attached segment" ref="preview">\n      '+(null==(e=i.preview)?"":e)+"\n    </div>\n    ",i.componentInfo.help&&(n+='\n    <div class="ui secondary segment formio-settings-help">\n      '+(null==(e=i.componentInfo.help)?"":e)+"\n    </div>\n    "),n+='\n    <div style="margin-top: 10px;">\n      <button class="ui button primary" style="margin-right: 10px;" ref="saveButton">'+(null==(e=i.t("Save"))?"":e)+'</button>\n      <button class="ui button default" style="margin-right: 10px;" ref="cancelButton">'+(null==(e=i.t("Cancel"))?"":e)+'</button>\n      <button class="ui button negative" ref="removeButton">'+(null==(e=i.t("Remove"))?"":e)+"</button>\n    </div>\n  </div>\n  "),n+"\n</div>\n"}},86476:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(32089);y.default={form:e.default}},16654:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div\n  class="ui info message no-drag"\n  style="text-align:center; margin-bottom: 5px;"\n  role="alert"\n  data-noattach="true"\n  data-position="'+(null==(e=i.position)?"":e)+'"\n>\n  Drag and Drop a form component\n</div>\n'}},88045:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(16654);y.default={form:e.default}},29927:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="ui segment secondary form-builder-panel" style="padding: 0" ref="group-panel-'+(null==(e=i.groupKey)?"":e)+'">\n  <div class="form-builder-group-header">\n    <h5 class="panel-title">\n      <button\n        class="ui button basic fluid builder-group-button"\n        type="button"\n        data-toggle="collapse"\n        data-target="#group-'+(null==(e=i.groupKey)?"":e)+'"\n        data-parent="'+(null==(e=i.groupId)?"":e)+'"\n        ref="sidebar-anchor"\n      >\n        '+(null==(e=i.t(i.group.title))?"":e)+'\n      </button>\n    </h5>\n  </div>\n</div>\n<div class="ui segment" style="padding: 0">\n  <div\n    class="panel-collapse collapse '+(null==(e=i.group.default?" in":"")?"":e)+'"\n    data-parent="#'+(null==(e=i.groupId)?"":e)+'"\n    data-default="'+(null==(e=i.group.default)?"":e)+'"\n    id="group-'+(null==(e=i.groupKey)?"":e)+'"\n    ref="sidebar-group"\n  >\n    <div id="group-container-'+(null==(e=i.groupKey)?"":e)+'" class="card-body panel-body no-drop" ref="sidebar-container">\n      ',i.group.componentOrder.forEach(function(l){n+='\n      <span\n        data-group="'+(null==(e=i.groupKey)?"":e)+'"\n        data-key="'+(null==(e=i.group.components[l].key)?"":e)+'"\n        data-type="'+(null==(e=i.group.components[l].schema.type)?"":e)+'"\n        class="ui button mini primary fluid formcomponent drag-copy"\n      >\n        ',i.group.components[l].icon&&(n+='\n          <i class="'+(null==(e=i.iconClass(i.group.components[l].icon))?"":e)+'" style="margin-right: 5px;"></i>\n        '),n+="\n        "+(null==(e=i.t(i.group.components[l].title))?"":e)+"\n        </span>\n      "}),n+="\n      "+(null==(e=i.subgroups.join(""))?"":e)+"\n    </div>\n  </div>\n</div>\n"}},5815:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(29927);y.default={form:e.default}},68682:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div id="builder-sidebar-'+(null==(e=i.id)?"":e)+'" class="ui segments" ref="sidebar">\n  ',i.groups.forEach(function(l){n+="\n    "+(null==(e=l)?"":e)+"\n  "}),n+="\n</div>\n"}},28960:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(68682);y.default={form:e.default}},45353:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="formio builder ui grid formbuilder">\n  <div class="four wide column formcomponents">\n    '+(null==(e=i.sidebar)?"":e)+'\n  </div>\n  <div class="twelve wide column formarea">\n    <div class="ui breadcrumb" style="margin-bottom: 0.5em">\n      ',i.pages.forEach(function(l,u){n+='\n        <div title="'+(null==(e=l.title)?"":e)+'" class="',n+=u===i.self.page?" active section ":" section ",n+=' wizard-page-label" ref="gotoPage">'+(null==(e=l.title)?"":e)+'</div>\n        <div class="divider">/</div>\n      '}),n+='\n      <div title="'+(null==(e=i.t("Create Page"))?"":e)+'" class="section wizard-page-label" ref="addPage"><i class="'+(null==(e=i.iconClass("plus"))?"":e)+'"></i> '+(null==(e=i.t("Page"))?"":e)+'</div>\n    </div>\n    <div ref="form">\n      '+(null==(e=i.form)?"":e)+"\n    </div>\n  </div>\n</div>\n"}},59425:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(45353);y.default={form:e.default}},75620:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="formio builder ui grid formbuilder">\n  <div class="four wide column formcomponents">\n    '+(null==(e=i.sidebar)?"":e)+'\n  </div>\n  <div class="twelve wide column formarea" ref="form">\n    '+(null==(e=i.form)?"":e)+"\n  </div>\n</div>\n"}},88278:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(75620);y.default={form:e.default}},72712:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";for(var l in n+="<"+(null==(e=i.input.type)?"":e)+'\n  ref="button"\n  class="ui button '+(null==(e=i.transform("theme",i.component.theme))?"":e)+" "+(null==(e=i.component.customClass)?"":e)+'"\n  ',i.input.attr)n+="\n  "+(null==(e=l)?"":e)+'="'+(null==(e=i.input.attr[l])?"":e)+'"\n  ';return n+="\n>\n",i.component.leftIcon&&(n+='<i class="'+(null==(e=i.component.leftIcon)?"":e)+'"></i>&nbsp;'),n+="\n"+(null==(e=i.input.content)?"":e)+"\n",i.component.tooltip&&(n+='\n  <i ref="tooltip" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=i.component.tooltip)?"":e)+'"></i>\n'),n+="\n",i.component.rightIcon&&(n+='&nbsp;<i class="'+(null==(e=i.component.rightIcon)?"":e)+'"></i>'),n+"\n</"+(null==(e=i.input.type)?"":e)+'>\n<div ref="buttonMessageContainer">\n  <span class="help-block" ref="buttonMessage"></span>\n</div>\n'}},60808:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){return"\n"}},77426:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(72712),n=i(60808);y.default={form:e.default,html:n.default}},56367:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";for(var l in n+='<div class="ui checkbox">\n  <'+(null==(e=i.input.type)?"":e)+'\n    ref="input"\n    id="'+(null==(e=i.id)?"":e)+'"\n    ',i.input.attr)n+="\n    "+(null==(e=l)?"":e)+'="'+(null==(e=i.input.attr[l])?"":e)+'"\n    ';return n+="\n    ",i.checked&&(n+="checked=true"),n+="\n    >\n  </"+(null==(e=i.input.type)?"":e)+'>\n  <label class="'+(null==(e=i.input.labelClass)?"":e)+'" for="'+(null==(e=i.id)?"":e)+'">\n    '+(null==(e=i.input.content)?"":e)+"\n    ",i.self.labelIsHidden()||(n+="<span>"+(null==(e=i.input.label)?"":e)+"</span>"),n+="\n  </label>\n  ",i.component.tooltip&&(n+='\n    <i ref="tooltip" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=i.component.tooltip)?"":e)+'"></i>\n  '),n+"\n</div>\n"}},59186:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<label class="'+(null==(e=i.input.labelClass)?"":e)+'">\n    '+(null==(e=i.input.content)?"":e)+"\n    ",i.self.labelIsHidden()||(n+="<span>"+(null==(e=i.input.label)?"":e)+"</span>"),n+='\n</label>\n<div ref="value">',(n+=i.checked?"True":"False")+"</div>\n"}},52372:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(56367),n=i(59186);y.default={form:e.default,html:n.default}},22003:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="ui grid" style="width: 100%">\n    ',i.component.columns.forEach(function(l,u){n+='\n    <div class="'+(null==(e=i.transform("columns",l.width))?"":e)+' wide column" ref="'+(null==(e=i.columnKey)?"":e)+'">\n      '+(null==(e=i.columnComponents[u])?"":e)+"\n    </div>\n    "}),n+="\n</div>\n"}},11719:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(22003);y.default={form:e.default}},89468:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div id="'+(null==(e=i.id)?"":e)+'" class="field '+(null==(e=i.classes)?"":e)+'"',i.styles&&(n+=' style="'+(null==(e=i.styles)?"":e)+'"'),n+=' ref="component">\n  ',i.visible&&(n+="\n  "+(null==(e=i.children)?"":e)+'\n  <div ref="messageContainer"></div>\n  '),n+"\n</div>\n"}},12473:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(89468);y.default={form:e.default}},24693:(he,y)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.default={"has-error":"error","is-invalid":"error","formio-tab-panel-active":"active","formio-tab-link-active":"active","formio-tab-link-container-active":"active"}},73521:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<table class="ui table datagrid-table\n    '+(null==(e=i.component.striped?"striped":"")?"":e)+"\n    "+(null==(e=i.component.bordered?"celled":"")?"":e)+"\n    "+(null==(e=i.component.hover?"selectable":"")?"":e)+"\n    "+(null==(e=i.component.condensed?"compact":"padded")?"":e)+'\n    " ',i.component.layoutFixed&&(n+='style="table-layout: fixed;"'),n+=">\n  ",i.hasHeader&&(n+="\n  <thead>\n    <tr>\n      ",i.component.reorder&&(n+="<th></th>"),n+="\n      ",i.columns.forEach(function(l){n+='\n        <th class="'+(null==(e=l.validate&&l.validate.required?"field-required":"")?"":e)+'">\n          '+(null==(e=l.hideLabel?"":i.t(l.label||l.title))?"":e)+"\n          ",l.tooltip&&(n+=' <i ref="tooltip" data-title="'+(null==(e=l.tooltip)?"":e)+'" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=l.tooltip)?"":e)+'"></i>'),n+="\n        </th>\n      "}),n+="\n      ",i.hasExtraColumn&&(n+="\n      <th>\n        ",i.hasAddButton&&i.hasTopSubmit&&(n+='\n        <button class="ui button primary" ref="'+(null==(e=i.datagridKey)?"":e)+'-addRow">\n          <i class="'+(null==(e=i.iconClass("plus"))?"":e)+'"></i> '+(null==(e=i.t(i.component.addAnother||"Add Another"))?"":e)+"\n        </button>\n        "),n+="\n      </th>\n      "),n+="\n    </tr>\n  </thead>\n  "),n+='\n  <tbody ref="'+(null==(e=i.datagridKey)?"":e)+'-tbody">\n    ',i.rows.forEach(function(l,u){n+="\n    ",i.hasGroups&&i.groups[u]&&(n+='\n    <tr ref="'+(null==(e=i.datagridKey)?"":e)+'-group-header" class="datagrid-group-header'+(null==(e=i.hasToggle?" clickable":"")?"":e)+'">\n      <td\n        ref="'+(null==(e=i.datagridKey)?"":e)+'-group-label"\n        colspan="'+(null==(e=i.numColumns)?"":e)+'"\n        class="datagrid-group-label">'+(null==(e=i.groups[u].label)?"":e)+"</td>\n    </tr>\n    "),n+='\n    <tr ref="'+(null==(e=i.datagridKey)?"":e)+'-row">\n      ',i.component.reorder&&(n+='\n        <td>\n          <button type="button" class="formio-drag-button ui icon button"><i aria-hidden="true" class="bars icon"></i></button>\n        </td>\n      '),n+="\n      ",i.columns.forEach(function(d){n+='\n        <td ref="'+(null==(e=i.datagridKey)?"":e)+'">\n          '+(null==(e=l[d.key])?"":e)+"\n        </td>\n      "}),n+="\n      ",i.hasExtraColumn&&(n+="\n        ",i.hasRemoveButtons&&(n+='\n        <td>\n          <button type="button" class="btn-xss ui icon button secondary formio-'+(null==(e=i.component.type)?"":e)+'-remove" ref="'+(null==(e=i.datagridKey)?"":e)+'-removeRow">\n            <i class="'+(null==(e=i.iconClass("remove"))?"":e)+'"></i>\n          </button>\n        </td>\n        '),n+="\n        ",i.canAddColumn&&(n+='\n        <td ref="'+(null==(e=i.key)?"":e)+'-container">\n          '+(null==(e=i.placeholder)?"":e)+"\n        </td>\n        "),n+="\n      "),n+="\n    </tr>\n    "}),n+="\n  </tbody>\n  ",i.hasAddButton&&i.hasBottomSubmit&&(n+='\n  <tfoot>\n    <tr>\n      <td colspan="'+(null==(e=i.numColumns+1)?"":e)+'">\n        <button class="ui button primary" ref="'+(null==(e=i.datagridKey)?"":e)+'-addRow">\n          <i class="'+(null==(e=i.iconClass("plus"))?"":e)+'"></i> '+(null==(e=i.t(i.component.addAnother||"Add Another"))?"":e)+"\n        </button>\n      </td>\n    </tr>\n  </tfoot>\n  "),n+="\n</table>\n"}},29865:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<table class="ui table datagrid-table\n    '+(null==(e=i.component.striped?"striped":"")?"":e)+"\n    "+(null==(e=i.component.bordered?"celled":"")?"":e)+"\n    "+(null==(e=i.component.hover?"selectable":"")?"":e)+"\n    "+(null==(e=i.component.condensed?"compact":"padded")?"":e)+'\n    ">\n  ',i.hasHeader&&(n+="\n  <thead>\n    <tr>\n      ",i.columns.forEach(function(l){n+='\n        <th class="'+(null==(e=l.validate&&l.validate.required?"field-required":"")?"":e)+'">\n          '+(null==(e=l.hideLabel?"":i.t(l.label||l.title))?"":e)+"\n          ",l.tooltip&&(n+=' <i ref="tooltip" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=l.tooltip)?"":e)+'"></i>'),n+="\n        </th>\n      "}),n+="\n    </tr>\n  </thead>\n  "),n+="\n  <tbody>\n    ",i.rows.forEach(function(l){n+="\n    <tr>\n      ",i.columns.forEach(function(u){n+='\n        <td ref="'+(null==(e=i.datagridKey)?"":e)+'">\n          '+(null==(e=l[u.key])?"":e)+"\n        </td>\n      "}),n+="\n    </tr>\n    "}),n+="\n  </tbody>\n</table>\n"}},17775:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(73521),n=i(29865);y.default={form:e.default,html:n.default}},13738:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="ui grid">\n  ',i.dayFirst&&i.showDay&&(n+='\n  <div class="four wide column">\n    <label for="'+(null==(e=i.component.key)?"":e)+'-day" class="">'+(null==(e=i.t("Day"))?"":e)+"</label>\n    "+(null==(e=i.day)?"":e)+"\n  </div>\n  "),n+="\n  ",i.showMonth&&(n+='\n  <div class="five wide column">\n    <label for="'+(null==(e=i.component.key)?"":e)+'-month" class="">'+(null==(e=i.t("Month"))?"":e)+"</label>\n    "+(null==(e=i.month)?"":e)+"\n  </div>\n  "),n+="\n  ",!i.dayFirst&&i.showDay&&(n+='\n  <div class="four wide column">\n    <label for="'+(null==(e=i.component.key)?"":e)+'-day" class="">'+(null==(e=i.t("Day"))?"":e)+"</label>\n    "+(null==(e=i.day)?"":e)+"\n  </div>\n  "),n+="\n  ",i.showYear&&(n+='\n  <div class="seven wide column">\n    <label for="'+(null==(e=i.component.key)?"":e)+'-year" class="">'+(null==(e=i.t("Year"))?"":e)+"</label>\n    "+(null==(e=i.year)?"":e)+"\n  </div>\n  "),n+'\n</div>\n<input name="data[day]" type="hidden" class="form-control" lang="en" value="" ref="input">\n'}},54621:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(13738);y.default={form:e.default}},65771:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="editgrid-listgroup ui celled list">\n  ',i.header&&(n+='\n  <div class="item list-group-header">\n    '+(null==(e=i.header)?"":e)+"\n  </div>\n  "),n+="\n  ",i.rows.forEach(function(l,u){n+='\n  <div class="item" ref="'+(null==(e=i.ref.row)?"":e)+'">\n    '+(null==(e=l)?"":e)+"\n    ",i.openRows[u]&&!i.readOnly&&(n+='\n    <div class="editgrid-actions">\n      <button class="ui button primary" ref="'+(null==(e=i.ref.saveRow)?"":e)+'">'+(null==(e=i.t(i.component.saveRow||"Save"))?"":e)+"</button>\n      ",i.component.removeRow&&(n+='\n      <button class="ui button secondary" ref="'+(null==(e=i.ref.cancelRow)?"":e)+'">'+(null==(e=i.t(i.component.removeRow||"Cancel"))?"":e)+"</button>\n      "),n+="\n    </div>\n    "),n+='\n    <div class="has-error">\n      <div class="editgrid-row-error help-block">\n        '+(null==(e=i.errors[u])?"":e)+"\n      </div>\n    </div>\n  </div>\n  "}),n+="\n  ",i.footer&&(n+='\n  <div class="item list-group-footer">\n    '+(null==(e=i.footer)?"":e)+"\n  </div>\n  "),n+="\n</div>\n",!i.readOnly&&i.hasAddButton&&(n+='\n<button class="ui button primary" ref="'+(null==(e=i.ref.addRow)?"":e)+'">\n  <i class="'+(null==(e=i.iconClass("plus"))?"":e)+'"></i> '+(null==(e=i.t(i.component.addAnother||"Add Another"))?"":e)+"\n</button>\n"),n+="\n"}},66507:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="editgrid-listgroup ui celled list">\n  ',i.header&&(n+='\n  <div class="item list-group-header">\n    '+(null==(e=i.header)?"":e)+"\n  </div>\n  "),n+="\n  ",i.rows.forEach(function(l,u){n+='\n  <div class="item" ref="'+(null==(e=i.ref.row)?"":e)+'">\n    '+(null==(e=l)?"":e)+"\n    ",i.openRows[u]&&!i.readOnly&&(n+='\n    <div class="editgrid-actions">\n      <button class="ui button primary" ref="'+(null==(e=i.ref.saveRow)?"":e)+'">'+(null==(e=i.t(i.component.saveRow||"Save"))?"":e)+"</button>\n      ",i.component.removeRow&&(n+='\n      <button class="ui button secondary" ref="'+(null==(e=i.ref.cancelRow)?"":e)+'">'+(null==(e=i.t(i.component.removeRow||"Cancel"))?"":e)+"</button>\n      "),n+="\n    </div>\n    "),n+='\n    <div class="has-error">\n      <div class="editgrid-row-error help-block">\n        '+(null==(e=i.errors[u])?"":e)+"\n      </div>\n    </div>\n  </div>\n  "}),n+="\n  ",i.footer&&(n+='\n  <div class="item list-group-footer">\n    '+(null==(e=i.footer)?"":e)+"\n  </div>\n  "),n+="\n</div>\n"}},59162:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(65771),n=i(66507);y.default={form:e.default,html:n.default}},99645:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+="<p>"+(null==(e=i.t("error"))?"":e)+"</p>\n<ul>\n  ",i.errors.forEach(function(l){n+='\n    <li\n      data-component-key = "'+(null==(e=l.keyOrPath)?"":e)+'"\n      aria-label = "'+(null==(e=l.message)?"":e)+". "+(null==(e=i.t("errorsListNavigationMessage"))?"":e)+'"\n      ref = "errorRef"\n      tabIndex = "0",\n      style = "cursor:pointer;"\n    ><span>'+(null==(e=l.message)?"":e)+"</span></li>\n  "}),n+="\n</ul>\n\n"}},37689:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(99645);y.default={form:e.default}},15533:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="field-wrapper\n  '+(null==(e=i.isRightPosition?"field-wrapper--reverse":"")?"":e)+'">\n  ',i.label.hidden||(n+='\n    <div class="field-label\n      '+(null==(e=i.isRightAlign?"field-label--right":"")?"":e)+'"\n      style="'+(null==(e=i.labelStyles)?"":e)+'">\n    '+(null==(e=i.labelMarkup)?"":e)+"\n    </div>\n  "),n+="\n\n  ",i.label.hidden&&i.label.className&&i.component.validate.required&&(n+='\n    <div class="field-label\n      '+(null==(e=i.isRightAlign?"field-label--right":"")?"":e)+'"\n      style="'+(null==(e=i.labelStyles)?"":e)+'">\n      <label class="'+(null==(e=i.label.className)?"":e)+'"></label>\n    </div>\n  '),n+='\n\n  <div class="filed-content" style="'+(null==(e=i.contentStyles)?"":e)+'">\n    '+(null==(e=i.element)?"":e)+"\n  </div>\n</div>\n\n",i.component.description&&(n+='\n  <div class="form-text text-muted">'+(null==(e=i.t(i.component.description))?"":e)+"</div>\n"),n+"\n"}},4980:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return!i.label.hidden&&"bottom"!==i.label.labelPosition&&(n+="\n  "+(null==(e=i.labelMarkup)?"":e)+"\n"),n+="\n\n",i.label.hidden&&i.label.className&&i.component.validate.required&&(n+='\n    <label class="'+(null==(e=i.label.className)?"":e)+'"></label>\n'),n+="\n\n"+(null==(e=i.element)?"":e)+"\n",!i.label.hidden&&"bottom"===i.label.labelPosition&&(n+="\n  "+(null==(e=i.labelMarkup)?"":e)+"\n"),n+="\n",i.component.description&&(n+='\n  <div class="help-block">'+(null==(e=i.t(i.component.description))?"":e)+"</div>\n"),n+"\n"}},30581:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(4980),n=i(15533);y.default={form:e.default,align:n.default}},3671:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<fieldset>\n  <legend ref="header" class="'+(null==(e=i.component.collapsible?"formio-clickable":"")?"":e)+'">\n    '+(null==(e=i.t(i.component.legend))?"":e)+"\n    ",i.component.tooltip&&(n+='\n      <i ref="tooltip" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+'" data-tooltip="'+(null==(e=i.component.tooltip)?"":e)+'"></i>\n    '),n+="\n  </legend>  ",i.collapsed||(n+='\n  <div class="card-body" ref="'+(null==(e=i.nestedKey)?"":e)+'">\n    '+(null==(e=i.children)?"":e)+"\n  </div>\n  "),n+"\n</fieldset>\n"}},25325:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(3671);y.default={form:e.default}},45565:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return i.self.imageUpload?(n+="\n  <div>\n    ",i.files.forEach(function(l){n+='\n      <div>\n        <span>\n          <img ref="fileImage" src="" alt="'+(null==(e=l.originalName||l.name)?"":e)+'" style="width:'+(null==(e=i.component.imageSize)?"":e)+'px">\n          ',i.disabled||(n+='\n            <i class="'+(null==(e=i.iconClass("remove"))?"":e)+'" ref="removeLink"></i>\n          '),n+="\n        </span>\n      </div>\n    "}),n+="\n  </div>\n"):(n+='\n  <div class="ui celled list">\n    <div class="item">\n      <div class="ui grid">\n        ',i.disabled||(n+='\n          <div class="one wide column"></div>\n        '),n+='\n        <div class="',n+=i.self.hasTypes?"nine":"twelve",n+=' wide column"><strong>'+(null==(e=i.t("File Name"))?"":e)+'</strong></div>\n        <div class="three wide column"><strong>'+(null==(e=i.t("Size"))?"":e)+"</strong></div>\n        ",i.self.hasTypes&&(n+='\n          <div class="three wide column"><strong>'+(null==(e=i.t("Type"))?"":e)+"</strong></div>\n        "),n+="\n      </div>\n    </div>\n    ",i.files.forEach(function(l){n+='\n      <li class="list-group-item">\n        <div class="ui grid">\n          ',i.disabled||(n+='\n            <div class="one wide column"><i class="'+(null==(e=i.iconClass("remove"))?"":e)+'" ref="removeLink"></i></div>\n          '),n+='\n          <div class="',n+=i.self.hasTypes?"nine":"twelve",n+=' wide column">\n            ',n+=i.component.uploadOnly?"\n              "+(null==(e=l.originalName||l.name)?"":e)+"\n            ":'\n              <a href="'+(null==(e=l.url||"#")?"":e)+'" target="_blank" ref="fileLink">'+(null==(e=l.originalName||l.name)?"":e)+"</a>\n            ",n+='\n          </div>\n          <div class="three wide column">'+(null==(e=i.fileSize(l.size))?"":e)+"</div>\n          ",i.self.hasTypes&&!i.disabled&&(n+='\n            <div class="three wide column">\n              <select class="file-type" ref="fileType">\n                ',i.component.fileTypes.map(function(u){n+='\n                  <option class="test" value="'+(null==(e=u.value)?"":e)+'" ',u.label===l.fileType&&(n+='selected="selected"'),n+=">"+(null==(e=u.label)?"":e)+"</option>\n                "}),n+="\n              </select>\n            </div>\n          "),n+="\n          ",i.self.hasTypes&&i.disabled&&(n+='\n          <div class="three wide column">'+(null==(e=l.fileType)?"":e)+"</div>\n          "),n+="\n        </div>\n      </li>\n    "}),n+="\n    </div>\n"),n+="\n",!i.disabled&&(i.component.multiple||!i.files.length)&&(n+="\n  ",i.self.useWebViewCamera?n+='\n    <div class="fileSelector">\n      <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(e=i.t("Gallery"))?"":e)+'</button>\n      <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(e=i.t("Camera"))?"":e)+"</button>\n    </div>\n  ":i.self.cameraMode?n+='\n    <div>\n      <video class="video" autoplay="true" ref="videoPlayer"></video>\n    </div>\n    <button class="btn btn-primary" ref="takePictureButton"><i class="fa fa-camera"></i> '+(null==(e=i.t("Take Picture"))?"":e)+'</button>\n    <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(e=i.t("Switch to file upload"))?"":e)+"</button>\n  ":(n+='\n    <div class="fileSelector" ref="fileDrop" '+(null==(e=i.fileDropHidden?"hidden":"")?"":e)+'>\n      <i class="'+(null==(e=i.iconClass("cloud-upload"))?"":e)+'"></i> '+(null==(e=i.t("Drop files to attach,"))?"":e)+"\n        ",i.self.imageUpload&&i.component.webcam&&(n+='\n          <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(e=i.t("Use Camera,"))?"":e)+"</a>\n        "),n+="\n        "+(null==(e=i.t("or"))?"":e)+' <a href="#" ref="fileBrowse" class="browse">'+(null==(e=i.t("browse"))?"":e)+"</a>\n    </div>\n  "),n+="\n"),n+="\n",i.statuses.forEach(function(l){n+='\n  <div class="file '+(null==(e="error"===i.statuses.status?" has-error":"")?"":e)+'">\n    <div class="ui grid">\n      <div class="fileName control-label thirteen wide column">'+(null==(e=l.originalName)?"":e)+' <i class="'+(null==(e=i.iconClass("remove"))?"":e)+'" ref="fileStatusRemove"></i></div>\n      <div class="fileSize control-label three wide column">'+(null==(e=i.fileSize(l.size))?"":e)+'</div>\n    </div>\n    <div class="ui grid">\n      <div class="thirteen wide column">\n        ',n+="progress"===l.status?'\n          <div class="progress">\n            <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(e=l.progress)?"":e)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(e=l.progress)?"":e)+'">\n              <span class="sr-only">'+(null==(e=l.progress)?"":e)+"% "+(null==(e=i.t("Complete"))?"":e)+"</span>\n            </div>\n          </div>\n        ":'\n          <div class="bg-'+(null==(e=l.status)?"":e)+'">'+(null==(e=i.t(l.message))?"":e)+"</div>\n        ",n+="\n      </div>\n    </div>\n  </div>\n"}),n+="\n",(!i.component.storage||i.support.hasWarning)&&(n+='\n  <div class="alert alert-warning">\n    ',i.component.storage||(n+="\n      <p>"+(null==(e=i.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":e)+"</p>\n    "),n+="\n    ",i.support.filereader||(n+="\n      <p>"+(null==(e=i.t("File API & FileReader API not supported."))?"":e)+"</p>\n    "),n+="\n    ",i.support.formdata||(n+="\n      <p>"+(null==(e=i.t("XHR2's FormData is not supported."))?"":e)+"</p>\n    "),n+="\n    ",i.support.progress||(n+="\n      <p>"+(null==(e=i.t("XHR2's upload progress isn't supported."))?"":e)+"</p>\n    "),n+="\n  </div>\n"),n+="\n"}},78939:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(45565);y.default={form:e.default}},87726:(he,y)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i,e,n){var o={"plus-squre-o":"plus square outline","minus-squre-o":"minus square outline","question-sign":"question circle","remove-circle":"trash alternate outline","new-window":"external alternate","files-o":"file outline",move:"arrows alternate",link:"linkify"};return o.hasOwnProperty(e)&&(e=o[e]),e=(e=(e=e||"").replace(/-/g," ")).replace(/ o$/," outline"),n?"icon ".concat(e," loading"):"icon ".concat(e)}},56682:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<i ref="'+(null==(e=i.ref)?"":e)+'" class="'+(null==(e=i.className)?"":e)+'" style="'+(null==(e=i.styles)?"":e)+'">'+(null==(e=i.content)?"":e)+"</i>\n"}},75802:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(56682);y.default={form:e.default}},31616:function(he,y,i){"use strict";var e=this&&this.__assign||function(){return e=Object.assign||function(xe){for(var Oe,Le=1,Gt=arguments.length;Le<Gt;Le++)for(var Ut in Oe=arguments[Le])Object.prototype.hasOwnProperty.call(Oe,Ut)&&(xe[Ut]=Oe[Ut]);return xe},e.apply(this,arguments)};Object.defineProperty(y,"__esModule",{value:!0});var n=i(88278),o=i(23472),a=i(82924),l=i(86476),u=i(88045),d=i(28960),s=i(5815),A=i(59425),_=i(77426),C=i(52372),R=i(11719),x=i(12473),f=i(24693),k=i(17775),w=i(54621),g=i(59162),M=i(30581),p=i(25325),E=i(78939),b=i(75802),I=i(87726),L=i(21803),D=i(60515),F=i(13828),P=i(71110),O=i(7807),U=i(48624),V=i(24309),K=i(66492),X=i(22185),me=i(19825),J=i(53196),Q=i(41699),re=i(88340),de=i(1401),te=i(54344),j=i(51642),H=i(90864),z=i(17228),q=i(79180),se=i(84292),ne=i(54831),_e=i(70989),ge=i(28390),Ce=i(46718),Te=i(18928),De=i(78816),fe=i(37689);y.default=e(e({transform:function(xe,Oe){if(!Oe)return Oe;var Le={1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine",10:"ten",11:"eleven",12:"twelve",13:"thirteen",14:"fourteen",15:"fifteen",16:"sixteen"};switch(xe){case"columns":return Le.hasOwnProperty(Oe.toString())?Le[Oe.toString()]:Oe;case"class":return this.cssClasses.hasOwnProperty(Oe.toString())?this.cssClasses[Oe.toString()]:Oe}return Oe},defaultIconset:"icon",iconClass:I.default,cssClasses:f.default,builder:n.default,builderComponent:o.default,builderComponents:a.default,builderEditForm:l.default,builderPlaceholder:u.default,builderSidebar:d.default,builderSidebarGroup:s.default,builderWizard:A.default,button:_.default,checkbox:C.default,columns:R.default,component:x.default,datagrid:k.default,day:w.default,editgrid:g.default,field:M.default,fieldset:p.default,file:E.default,icon:b.default,input:L.default,label:D.default,loader:F.default,loading:P.default,message:O.default,multiValueRow:U.default,multiValueTable:V.default,panel:K.default,radio:X.default,resourceAdd:me.default,select:J.default,selectOption:Q.default,signature:re.default,survey:de.default,tab:te.default,tree:H.default},z.default),{table:j.default,webform:q.default,well:se.default,wizard:ne.default,wizardHeader:_e.default,wizardHeaderClassic:ge.default,wizardHeaderVertical:Ce.default,wizardNav:Te.default,alert:De.default,errorsList:fe.default})},86855:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";if(n+='<div class="ui '+(null==(e=i.component.editor?"":"input")?"":e)+" fluid "+(null==(e=i.suffix?" right":"")?"":e)+(null==(e=i.prefix||i.suffix?" labeled":"")?"":e)+'">\n',i.prefix&&(n+='\n<label class="ui label" ref="prefix">\n',i.prefix instanceof HTMLElement?n+="\n  "+(null==(e=i.t(i.prefix.outerHTML))?"":e)+"\n":n+="\n  "+(null==(e=i.t(i.prefix))?"":e)+"\n",n+="\n</label>\n"),n+="\n",!i.component.editor&&!i.component.wysiwyg){for(var l in n+="\n<"+(null==(e=i.input.type)?"":e)+'\n  ref="'+(null==(e=i.input.ref?i.input.ref:"input")?"":e)+'"\n  ',i.input.attr)n+="\n  "+(null==(e=l)?"":e)+'="'+(null==(e=i.input.attr[l])?"":e)+'"\n  ';n+='\n  id="'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n>'+(null==(e=i.input.content)?"":e)+"</"+(null==(e=i.input.type)?"":e)+">\n"}return n+="\n",(i.component.editor||i.component.wysiwyg)&&(n+='\n<div ref="input"></div>\n'),n+="\n",i.component.showCharCount&&(n+='\n<span class="ui right floated" ref="charcount"></span>\n'),n+="\n",i.component.showWordCount&&(n+='\n<span class="ui right floated" ref="wordcount"></span>\n'),n+="\n",i.suffix&&(n+='\n<div class="ui label" ref="suffix">\n',i.suffix instanceof HTMLElement?n+="\n  "+(null==(e=i.t(i.suffix.outerHTML))?"":e)+"\n":n+="\n  "+(null==(e=i.t(i.suffix))?"":e)+"\n",n+="\n</div>\n"),n+"\n</div>\n"}},10319:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div ref="value">',(n+=i.value?null==(e=i.value)?"":e:"-")+"</div>\n"}},21803:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(86855),n=i(10319);y.default={form:e.default,html:n.default}},99020:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<label\n  class="'+(null==(e=i.label.className)?"":e)+'"\n  for="'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n>\n  ',i.label.hidden||(n+="\n    "+(null==(e=i.t(i.component.label))?"":e)+"\n    ",i.component.tooltip&&(n+='\n      <i ref="tooltip" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=i.component.tooltip)?"":e)+'"></i>\n    '),n+="\n  "),n+"\n</label>\n"}},60515:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(99020);y.default={form:e.default}},64329:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){return'<div class="formio-loader">\n  <div class="loader-wrapper">\n    <div class="ui active centered inline loader"></div>\n  </div>\n</div>\n'}},13828:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(64329);y.default={form:e.default}},66073:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){return"Loading...\n"}},71110:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(66073);y.default={form:e.default}},91833:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="ui pointing red basic label '+(null==(e=i.level)?"":e)+'">\n  '+(null==(e=i.message)?"":e)+"\n</div>\n"}},7807:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(91833);y.default={form:e.default}},84143:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<tr ref="row">\n  <td>\n    '+(null==(e=i.element)?"":e)+"\n  </td>\n  ",i.disabled||(n+='\n  <td>\n    <button type="button" class="ui icon button secondary" ref="removeRow">\n      <i class="trash icon"></i>\n    </button>\n  </td>\n  '),n+"\n</tr>\n"}},48624:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(84143);y.default={form:e.default}},13769:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<table class="ui celled table">\n  <tbody>\n  '+(null==(e=i.rows)?"":e)+"\n  ",i.disabled||(n+='\n  <tr>\n    <td colspan="2">\n      <button class="ui button primary" ref="addButton"><i class="'+(null==(e=i.iconClass("plus"))?"":e)+'"></i> '+(null==(e=i.t(i.addAnother))?"":e)+"</button>\n    </td>\n  </tr>\n  "),n+"\n  </tbody>\n</table>\n"}},24309:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(13769);y.default={form:e.default}},80729:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return(!i.component.hideLabel||i.builder||i.component.collapsible||i.component.tooltip)&&(n+='\n<h4 class="ui top attached block header '+(null==(e=i.component.className)?"":e)+'" ref="header">\n  ',i.component.collapsible&&(n+='\n    <i class="formio-collapse-icon '+(null==(e=i.iconClass(i.collapsed?"plus-square-o":"minus-square-o"))?"":e)+' text-muted" data-title="Collapse Panel"></i>\n  '),n+="\n  ",(!i.component.hideLabel||i.builder)&&(n+="\n  "+(null==(e=i.t(i.component.title))?"":e)+"\n  "),n+="\n  ",i.component.tooltip&&(n+='\n    <i ref="tooltip" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=i.component.tooltip)?"":e)+'"></i>\n  '),n+="\n</h4>\n"),n+="\n",(!i.collapsed||i.builder)&&(n+='\n<div class="ui bottom attached segment" ref="'+(null==(e=i.nestedKey)?"":e)+'">\n  '+(null==(e=i.children)?"":e)+"\n</div>\n"),n+"\n"}},66492:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(80729);y.default={form:e.default}},17181:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="fields '+(null==(e=i.inline?"inline":"grouped")?"":e)+'">\n  ',i.values.forEach(function(l){for(var u in n+='\n  <div class="field">\n    <div class="ui '+(null==(e="radio"===i.input.attr.type?"radio":"")?"":e)+' checkbox" ref="wrapper">\n      <'+(null==(e=i.input.type)?"":e)+'\n        ref="input"\n        ',i.input.attr)n+="\n        "+(null==(e=u)?"":e)+'="'+(null==(e=i.input.attr[u])?"":e)+'"\n        ';n+='\n        value="'+(null==(e=l.value)?"":e)+'"\n        ',(i.value===l.value||"object"==typeof i.value&&i.value.hasOwnProperty(l.value)&&i.value[l.value])&&(n+="\n          checked=true\n        "),n+="\n        ",l.disabled&&(n+="\n          disabled=true\n        "),n+='\n        id="'+(null==(e=i.instance.root&&i.instance.root.id)?"":e)+"-"+(null==(e=i.id)?"":e)+"-"+(null==(e=i.row)?"":e)+"-"+(null==(e=l.value)?"":e)+'"\n      >\n      <label class="" for="'+(null==(e=i.instance.root&&i.instance.root.id)?"":e)+"-"+(null==(e=i.id)?"":e)+"-"+(null==(e=i.row)?"":e)+"-"+(null==(e=l.value)?"":e)+'">\n        <span>'+(null==(e=i.t(l.label))?"":e)+"</span>\n      </label>\n    </div>\n  </div>\n  "}),n+="\n</div>\n"}},40773:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return(n+='<div ref="value">\n  ')+"\n  "+(null==(e=i.values.filter(function(u){return i.value===u.value||"object"==typeof i.value&&i.value.hasOwnProperty(u.value)&&i.value[u.value]}).map(function(u){return i.t(u.label)}).join(", "))?"":e)+"\n  </div>\n"}},22185:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(17181),n=i(40773);y.default={form:e.default,html:n.default}},38862:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<table class="ui table celled">\n  <tbody>\n    <tr>\n      <td>\n        '+(null==(e=i.element)?"":e)+'\n      </td>\n    </tr>\n    <tr>\n      <td colspan="2">\n        <button class="ui button primary" ref="addResource">\n          <i class="'+(null==(e=i.iconClass("plus"))?"":e)+'"></i>\n          '+(null==(e=i.t(i.component.addResourceLabel||"Add Resource"))?"":e)+"\n        </button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n"}},19825:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(38862);y.default={form:e.default}},96709:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";for(var l in n+="<option "+(null==(e=i.selected?'selected="selected"':"")?"":e)+"\n  value='"+(null==(e=i.option.value)?"":e)+"'\n  ",i.attrs)n+="\n  "+(null==(e=l)?"":e)+'="'+(null==(e=i.attrs[l])?"":e)+'"\n  ';return n+"\n  >\n  "+(null==(e=i.t(i.option.label))?"":e)+"\n</option>\n"}},82798:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return i.selected&&(n+=null==(e=i.t(i.option.label))?"":e),n+"\n"}},41699:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(96709),n=i(82798);y.default={form:e.default,html:n.default}},27170:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";for(var l in n+='<select\n  ref="'+(null==(e=i.input.ref?i.input.ref:"selectContainer")?"":e)+'"\n  class="ui search dropdown"\n  '+(null==(e=i.input.multiple?"multiple":"")?"":e)+"\n  ",i.input.attr)n+="\n  "+(null==(e=l)?"":e)+'="'+(null==(e=i.input.attr[l])?"":e)+'"\n  ';return n+="\n  ",i.input.attr.id||(n+='\n  id="'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n  '),n+="\n>"+(null==(e=i.selectOptions)?"":e)+'</select>\n<input type="text"\n       class="formio-select-autocomplete-input"\n       ref="autocompleteInput"\n       ',i.input.attr.autocomplete&&(n+='\n       autocomplete="'+(null==(e=i.input.attr.autocomplete)?"":e)+'"\n       '),n+'\n       tabindex="-1"\n/>\n'}},6782:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div ref="value">',(n+=i.value?null==(e=i.self.itemValueForHTMLMode(i.value))?"":e:"-")+"</div>\n"}},53196:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(27170),n=i(6782);y.default={form:e.default,html:n.default}},32312:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+=(null==(e=i.element)?"":e)+'\n<div\n  class="signature-pad-body"\n  style="width: '+(null==(e=i.component.width)?"":e)+";height: "+(null==(e=i.component.height)?"":e)+';padding:0;margin:0;"\n  tabindex="'+(null==(e=i.component.tabindex||0)?"":e)+'"\n  ref="padBody"\n>\n\n  <a class="ui basic button mini icon signature-pad-refresh" ref="refresh">\n    <i class="'+(null==(e=i.iconClass("refresh"))?"":e)+'"></i>\n  </a>\n  <canvas class="signature-pad-canvas" height="'+(null==(e=i.component.height)?"":e)+'" ref="canvas"></canvas>\n  ',i.required&&(n+='\n  <span class="form-control-feedback field-required-inline text-danger">\n    <i class="'+(null==(e=i.iconClass("asterisk"))?"":e)+'"></i>\n  </span>\n  '),n+='\n  <img style="width: 100%;display: none;" ref="signatureImage">\n</div>\n',i.component.footer&&(n+='\n  <div class="signature-pad-footer">\n    '+(null==(e=i.t(i.component.footer))?"":e)+"\n  </div>\n"),n+"\n"}},10845:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){return'<img style="width: 100%;" ref="signatureImage">\n'}},88340:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(32312),n=i(10845);y.default={form:e.default,html:n.default}},71653:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<table class="ui table striped celled">\n  <thead>\n    <tr>\n      <th></th>\n      ',i.component.values.forEach(function(l){n+='\n      <th style="text-align: center;">'+(null==(e=i.t(l.label))?"":e)+"</th>\n      "}),n+="\n    </tr>\n  </thead>\n  <tbody>\n    ",i.component.questions.forEach(function(l){n+="\n    <tr>\n      <td>"+(null==(e=i.t(l.label))?"":e)+"</td>\n      ",i.component.values.forEach(function(u){n+='\n      <td style="text-align: center;">\n        <input type="radio" name="'+(null==(e=i.self.getInputName(l))?"":e)+'" value="'+(null==(e=u.value)?"":e)+'" id="'+(null==(e=i.key)?"":e)+"-"+(null==(e=l.value)?"":e)+"-"+(null==(e=u.value)?"":e)+'" ref="input">\n      </td>\n      '}),n+="\n    </tr>\n    "}),n+="\n  </tbody>\n</table>\n"}},99479:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<table class="ui table striped celled">\n  <tbody>\n    ',i.component.questions.forEach(function(l){n+="\n    <tr>\n      <th>"+(null==(e=i.t(l.label))?"":e)+"</th>\n      <td>\n      ",i.component.values.forEach(function(u){n+="\n        ",i.value&&i.value.hasOwnProperty(l.value)&&i.value[l.value]===u.value&&(n+="\n          "+(null==(e=i.t(u.label))?"":e)+"\n        "),n+="\n      "}),n+="\n      </td>\n    </tr>\n    "}),n+="\n  </tbody>\n</table>\n"}},1401:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(71653),n=i(99479);y.default={form:e.default,html:n.default}},21977:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return i.component.components.forEach(function(l,u){n+='\n  <h4 class="ui top attached block header">'+(null==(e=i.t(l.label))?"":e)+'</h4>\n  <div class="ui bottom attached segment">\n    '+(null==(e=i.tabComponents[u])?"":e)+"\n  </div>\n"}),n+="\n"}},8773:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="tab-container'+(null==(e=i.component.verticalLayout?" card-vertical":"")?"":e)+'">\n  <div class="ui top attached tabular menu'+(null==(e=i.component.verticalLayout?" nav-tabs-vertical":"")?"":e)+'">\n    ',i.component.components.forEach(function(l,u){n+='\n    <a class="item'+(null==(e=i.currentTab===u?" active":"")?"":e)+'" role="presentation" ref="'+(null==(e=i.tabLinkKey)?"":e)+'">'+(null==(e=i.t(l.label))?"":e)+"</a>\n    "}),n+="\n  </div>\n  ",i.component.components.forEach(function(l,u){n+='\n  <div role="tabpanel" class="ui bottom attached tab segment'+(null==(e=i.currentTab===u?" active":"")?"":e)+'" ref="'+(null==(e=i.tabKey)?"":e)+'"">'+(null==(e=i.tabComponents[u])?"":e)+"</div>\n  "}),n+="\n</div>\n"}},54344:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(21977),n=i(8773);y.default={flat:e.default,form:n.default}},40770:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<table class="ui table\n    '+(null==(e=i.component.striped?"striped":"")?"":e)+"\n    "+(null==(e=i.component.bordered?"celled":"")?"":e)+"\n    "+(null==(e=i.component.hover?"selectable":"")?"":e)+"\n    "+(null==(e=i.component.condensed?"compact":"padded")?"":e)+'\n  ">\n  ',i.component.header&&i.component.header.length>0&&(n+="\n  <thead>\n    <tr>\n      ",i.component.header.forEach(function(l){n+="\n      <th>"+(null==(e=i.t(l))?"":e)+"</th>\n      "}),n+="\n    </tr>\n  </thead>\n  "),n+="\n  <tbody>\n    ",i.tableComponents.forEach(function(l,u){n+='\n    <tr ref="row-'+(null==(e=i.id)?"":e)+'">\n      ',l.forEach(function(d,s){n+='\n      <td ref="'+(null==(e=i.tableKey)?"":e)+"-"+(null==(e=i.rowIndex)?"":e)+'"',i.cellClassName&&(n+=' class="'+(null==(e=i.cellClassName)?"":e)+'"'),n+=">"+(null==(e=d)?"":e)+"</td>\n      "}),n+="\n    </tr>\n    "}),n+="\n  </tbody>\n</table>\n"}},51642:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(40770);y.default={form:e.default}},80308:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+=i.node.isRoot?'\n  <div class="ui relaxed list">\n  <div class="item" ref="root" role="listitem">\n  ':'\n  <div ref="node" class="item tree__level" role="listitem">\n    ',n+="\n    ",i.content&&(n+='\n    <div ref="content" class="tree__node-content content">\n      '+(null==(e=i.content)?"":e)+"\n    </div>\n    "),n+="\n    ",i.childNodes&&i.childNodes.length&&(n+='\n    <div ref="childNodes" class="tree__node-children list" role="list">\n      '+(null==(e=i.childNodes.join(""))?"":e)+"\n    </div>\n    "),n+="\n    ",(n+=i.node.isRoot?"\n    </div>\n  </div>\n  ":"\n  </div>\n")+"\n"}},90864:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(80308);y.default={form:e.default}},51232:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="node-edit">\n  <div ref="nodeEdit">'+(null==(e=i.children)?"":e)+"</div>\n  ",i.readOnly||(n+='\n    <div class="node-actions">\n      <button ref="saveNode" class="ui mini primary button saveNode">'+(null==(e=i.t("Save"))?"":e)+'</button>\n      <button ref="cancelNode" class="ui mini negative button cancelNode">'+(null==(e=i.t("Cancel"))?"":e)+"\n    </div>\n  "),n+"\n</div>\n"}},17228:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(51232),n=i(99859);y.default={treeView:{form:n.default},treeEdit:{form:e.default}}},99859:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="ui grid">\n  <div class="row">\n    ',i.values.forEach(function(l){n+='\n    <div class="two wide column">\n      '+(null==(e=l)?"":e)+"\n    </div>\n    "}),n+='\n    <div class="five wide column">\n      <div class="ui mini right floated buttons">\n        ',i.node.hasChildren&&(n+='\n        <button ref="toggleNode" class="ui button toggleNode">'+(null==(e=i.t(i.node.collapsed?"Expand":"Collapse"))?"":e)+'</button>\n        <div class="or"></div>\n        '),n+="\n        ",i.readOnly||(n+='\n        <button ref="addChild" class="ui button primary addChild">'+(null==(e=i.t("Add"))?"":e)+'</button>\n        <div class="or"></div>\n        <button ref="editNode" class="ui button editNode">'+(null==(e=i.t("Edit"))?"":e)+'</button>\n        <div class="or"></div>\n        <button ref="removeNode" class="ui button negative removeNode">'+(null==(e=i.t("Delete"))?"":e)+"</button>\n        ",i.node.revertAvailable&&(n+='\n        <div class="or"></div>\n        <button ref="revertNode" class="ui button negative revertNode">'+(null==(e=i.t("Revert"))?"":e)+"</button>\n        "),n+="\n        "),n+="\n      </div>\n    </div>\n  </div>\n</div>\n"}},16292:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="ui visible message"><p>'+(null==(e=i.t(i.component.title))?"":e)+"</p></div>\n"}},37798:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="'+(null==(e=i.classes)?"":e)+' ui form" ref="webform" novalidate>'+(null==(e=i.children)?"":e)+"</div>\n"}},79180:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(16292),n=i(37798);y.default={form:n.default,builder:e.default}},63074:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="ui secondary segment">\n  <div class="content" ref="'+(null==(e=i.nestedKey)?"":e)+'">\n    '+(null==(e=i.children)?"":e)+"\n  </div>\n</div>\n"}},84292:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(63074);y.default={form:e.default}},36552:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<nav aria-label="navigation" id="'+(null==(e=i.wizardKey)?"":e)+'-header">\n  <div class=" ui stackable grid" style="border-bottom:0;">\n    ',i.panels.forEach(function(l,u){n+='\n      <div class="classic-pagination-page four wide computer eight wide tablet sixteen wide mobile column\n          '+(null==(e=i.currentPage<u?" disabled":"")?"":e)+"\n          "+(null==(e=i.currentPage===u?" active":"")?"":e)+"\n          "+(null==(e=i.currentPage>u?" complete":"")?"":e)+'" style="padding: 0;">\n        <div class="ui center aligned header classic-pagination-title">'+(null==(e=i.t(l.title,{_userInput:!0}))?"":e)+"</div>\n        ",i.panels.length>1&&(n+='\n          <div class="classic-pagination-progress" style="border-radius: 0;"><div class="classic-pagination-progress-bar"></div></div>\n        '),n+=' \n        <span ref="'+(null==(e=i.wizardKey)?"":e)+'-link" class="classic-pagination-dot" style="top: 45px;"></span>\n      </div>\n    '}),n+="\n  </div>\n</nav>\n"}},28390:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(36552);y.default={form:e.default}},40210:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<nav aria-label="navigation" id="'+(null==(e=i.wizardKey)?"":e)+'-header">\n  <ul class="ui vertical fluid tabular menu">\n    ',i.panels.forEach(function(l,u){n+='\n    <li class=" item page-item'+(null==(e=i.currentPage===u?" active":"")?"":e)+'" style="cursor: pointer;">\n      <span class="page-link" ref="'+(null==(e=i.wizardKey)?"":e)+'-link" style="margin-left: 0px;">\n        '+(null==(e=i.t(l.title,{_userInput:!0}))?"":e)+"\n        ",l.tooltip&&i.currentPage===u&&(n+='\n        <i ref="'+(null==(e=i.wizardKey)?"":e)+'-tooltip" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=l.tooltip)?"":e)+'"></i>\n        '),n+="\n      </span>\n    </li>\n    "}),n+="\n  </ul>\n</nav>\n"}},46718:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(40210);y.default={form:e.default}},28734:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<nav aria-label="navigation" id="'+(null==(e=i.wizardKey)?"":e)+'-header" ref="'+(null==(e=i.wizardKey)?"":e)+'-header">\n  <div class="ui steps">\n    ',i.panels.forEach(function(l,u){n+='\n    <a class="'+(null==(e=i.currentPage===u?" active":"")?"":e)+' step" ref="'+(null==(e=i.wizardKey)?"":e)+'-link">\n      <div class="content">\n        <div class="title">\n        '+(null==(e=l.title)?"":e)+"\n        ",l.tooltip&&i.currentPage===u&&(n+='\n        <span data-tooltip="'+(null==(e=i.wizardPageTooltip)?"":e)+'" data-position="right center">\n        <i class="'+(null==(e=i.iconClass("question-sign"))?"":e)+'"></i>\n        </span>\n        '),n+="\n        </div>\n      </div>\n    </a>\n    "}),n+="\n  </div>\n</nav>\n"}},70989:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(28734);y.default={form:e.default}},67024:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="ui horizontal list" id="'+(null==(e=i.wizardKey)?"":e)+'-nav">\n  ',i.buttons.cancel&&(n+='\n  <div class="item">\n    <button class="ui button secondary btn-wizard-nav-cancel" ref="'+(null==(e=i.wizardKey)?"":e)+'-cancel">'+(null==(e=i.t("cancel"))?"":e)+"</button>\n  </div>\n  "),n+="\n  ",i.buttons.previous&&(n+='\n  <div class="item">\n    <button class="ui button primary btn-wizard-nav-previous" ref="'+(null==(e=i.wizardKey)?"":e)+'-previous">'+(null==(e=i.t("previous"))?"":e)+"</button>\n  </div>\n  "),n+="\n  ",i.buttons.next&&(n+='\n  <div class="item">\n    <button class="ui button primary btn-wizard-nav-next" ref="'+(null==(e=i.wizardKey)?"":e)+'-next">'+(null==(e=i.t("next"))?"":e)+"</button>\n  </div>\n  "),n+="\n  ",i.buttons.submit&&(n+='\n  <div class="item">\n    <button class="ui button primary btn-wizard-nav-submit" ref="'+(null==(e=i.wizardKey)?"":e)+'-submit">'+(null==(e=i.t("submit"))?"":e)+"</button>\n  </div>\n  "),n+"\n</div>\n"}},18928:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(67024);y.default={form:e.default}},88225:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="formio-wizard-builder-component-title">'+(null==(e=i.t(i.component.title))?"":e)+"</div>\n"}},1182:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="'+(null==(e=i.className)?"":e)+'">\n  <div style="position: relative;">\n    ',(n+="wizardHeaderVertical"===i.wizardHeaderType?'\n      <div class="ui stackable grid">\n        <div class="three wide computer sixteen wide tablet sixteen wide mobile column">\n          '+(null==(e=i.wizardHeader)?"":e)+'\n        </div>\n        <div class="one wide computer one wide mobile one wide tablet column"></div>\n        <div class="wizard-page ten wide computer fourteen wide tablet fourteen wide mobiles column" ref="'+(null==(e=i.wizardKey)?"":e)+'">\n          '+(null==(e=i.components)?"":e)+'\n        </div>\n      </div>\n      <div class="ui grid" style="margin-top: 10px;">\n        <div class="four wide column"></div>\n        <div class="twelve wide column">\n          '+(null==(e=i.wizardNav)?"":e)+"\n        </div>\n      </div>\n    ":" \n      "+(null==(e=i.wizardHeader)?"":e)+'\n      <div class="wizard-page" ref="'+(null==(e=i.wizardKey)?"":e)+'">\n        '+(null==(e=i.components)?"":e)+"\n      </div>\n      "+(null==(e=i.wizardNav)?"":e)+"\n    ")+" \n  </div>\n</div>"}},54831:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var e=i(88225),n=i(1182);y.default={form:n.default,builder:e.default}},61635:function(he){he.exports=function(y){function i(n){if(e[n])return e[n].exports;var o=e[n]={exports:{},id:n,loaded:!1};return y[n].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}var e={};return i.m=y,i.c=e,i.p="",i(0)}([function(y,i,e){"use strict";function n(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(i,"__esModule",{value:!0});var o=e(1);Object.defineProperty(i,"createAutoCorrectedDatePipe",{enumerable:!0,get:function(){return n(o).default}});var a=e(2);Object.defineProperty(i,"createNumberMask",{enumerable:!0,get:function(){return n(a).default}});var l=e(3);Object.defineProperty(i,"emailMask",{enumerable:!0,get:function(){return n(l).default}})},function(y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mm dd yyyy",l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=l.minYear,d=void 0===u?1:u,s=l.maxYear,A=void 0===s?9999:s,_=a.split(/[^dmyHMS]+/).sort(function(C,R){return o.indexOf(C)-o.indexOf(R)});return function(C){var R=[],x={dd:31,mm:12,yy:99,yyyy:A,HH:23,MM:59,SS:59},f={dd:1,mm:1,yy:0,yyyy:d,HH:0,MM:0,SS:0},k=C.split("");_.forEach(function(M){var p=a.indexOf(M),E=parseInt(x[M].toString().substr(0,1),10);parseInt(k[p],10)>E&&(k[p+1]=k[p],k[p]=0,R.push(p))});var w=0;return!_.some(function(M){var p=a.indexOf(M),E=M.length,b=C.substr(p,E).replace(/\D/g,""),I=parseInt(b,10);"mm"===M&&(w=I||0);var L="dd"===M?n[w]:x[M];if("yyyy"===M&&(1!==d||9999!==A)){var D=parseInt(x[M].toString().substring(0,b.length),10);return I<parseInt(f[M].toString().substring(0,b.length),10)||I>D}return I>L||b.length===E&&I<f[M]})&&{value:k.join(""),indexesOfPipedChars:R}}};var n=[31,31,29,31,30,31,30,31,31,30,31,30,31],o=["yyyy","yy","mm","dd","HH","MM","SS"]},function(y,i){"use strict";function n(k){return k.split(u).map(function(w){return x.test(w)?x:w})}Object.defineProperty(i,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"==typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k};i.default=function e(){function k(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,ne=se.length;if(se===u||se[0]===M[0]&&1===ne)return M.split(u).concat([x]).concat(E.split(u));if(se===U&&P)return M.split(u).concat(["0",U,x]).concat(E.split(u));var _e=se[0]===A&&Q;_e&&(se=se.toString().substr(1));var ge=se.lastIndexOf(U),Ce=-1!==ge,Te=void 0,De=void 0,fe=void 0;if(se.slice(-1*z)===E&&(se=se.slice(0,-1*z)),Ce&&(P||me)?(Te=se.slice(se.slice(0,H)===M?H:0,ge),De=n((De=se.slice(ge+1,ne)).replace(C,u))):Te=se.slice(0,H)===M?se.slice(H):se,j&&(typeof j>"u"?"undefined":a(j))===R){var Oe=(Te.match(new RegExp("."===D?"[.]":""+D,"g"))||[]).length;Te=Te.slice(0,j+Oe*q)}return Te=Te.replace(C,u),de||(Te=Te.replace(/^0+(0$|[^0])/,"$1")),fe=n(Te=I?function o(k,w){return k.replace(/\B(?=(\d{3})+(?!\d))/g,w)}(Te,D):Te),(Ce&&P||!0===me)&&(se[ge-1]!==U&&fe.push(f),fe.push(U,f),De&&((typeof K>"u"?"undefined":a(K))===R&&(De=De.slice(0,K)),fe=fe.concat(De)),!0===me&&se[ge-1]===U&&fe.push(x)),H>0&&(fe=M.split(u).concat(fe)),_e&&(fe.length===H&&fe.push(x),fe=[_].concat(fe)),E.length>0&&(fe=fe.concat(E.split(u))),fe}var w=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},g=w.prefix,M=void 0===g?l:g,p=w.suffix,E=void 0===p?u:p,b=w.includeThousandsSeparator,I=void 0===b||b,L=w.thousandsSeparatorSymbol,D=void 0===L?d:L,F=w.allowDecimal,P=void 0!==F&&F,O=w.decimalSymbol,U=void 0===O?s:O,V=w.decimalLimit,K=void 0===V?2:V,X=w.requireDecimal,me=void 0!==X&&X,J=w.allowNegative,Q=void 0!==J&&J,re=w.allowLeadingZeroes,de=void 0!==re&&re,te=w.integerLimit,j=void 0===te?null:te,H=M&&M.length||0,z=E&&E.length||0,q=D&&D.length||0;return k.instanceOf="createNumberMask",k};var l="$",u="",d=",",s=".",A="-",_=/-/,C=/\D+/g,R="number",x=/\d/,f="[]"},function(y,i,e){"use strict";function a(b,I,L){var D=[];return b[I]===L?D.push(L):D.push(k,L),D.push(k),D}function s(b,I){return b.split(x).map(function(L){return L===w?L:I?p:M})}Object.defineProperty(i,"__esModule",{value:!0});var _=function n(b){return b&&b.__esModule?b:{default:b}}(e(4)),C="*",R=".",x="",f="@",k="[]",w=" ",g="g",M=/[^\s]/,p=/[^.\s]/,E=/\s/g;i.default={mask:function o(b,I){b=b.replace(E,x);var L=I.placeholderChar,D=I.currentCaretPosition,F=b.indexOf(f),P=b.lastIndexOf(R),O=P<F?-1:P,U=a(b,F+1,f),V=a(b,O-1,R),K=function l(b,I){return-1===I?b:b.slice(0,I)}(b,F),X=function u(b,I,L,D){var F=x;return-1!==I&&(F=b.slice(I+1,-1===L?b.length:L)),(F=F.replace(new RegExp("[\\s"+D+"]",g),x))===f?C:F.length<1?w:F[F.length-1]===R?F.slice(0,F.length-1):F}(b,F,O,L),me=function d(b,I,L,D){var F=x;return-1!==I&&(F=b.slice(I+1,b.length)),0===(F=F.replace(new RegExp("[\\s"+L+".]",g),x)).length?b[I-1]===R&&D!==b.length?C:x:F}(b,O,L,D);return K=s(K),X=s(X),me=s(me,!0),K.concat(U).concat(X).concat(V).concat(me)},pipe:_.default}},function(y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function e(C,R){var x=R.currentCaretPosition,f=R.rawValue,k=R.previousConformedValue,w=R.placeholderChar,g=C,M=(g=function n(C){var R=0;return C.replace(a,function(){return 1==++R?o:l})}(g)).indexOf(u);if(null===f.match(new RegExp("[^@\\s."+w+"]")))return l;if(-1!==g.indexOf(s)||-1!==M&&x!==M+1||-1===f.indexOf(o)&&k!==l&&-1!==f.indexOf(d))return!1;var E=g.indexOf(o);return(g.slice(E+1,g.length).match(_)||A).length>1&&g.substr(-1)===d&&x!==f.length&&(g=g.slice(0,g.length-1)),g};var o="@",a=/@/g,l="",u="@.",d=".",s="..",A=[],_=/\./g}])},61712:function(he){he.exports=function(y){function i(n){if(e[n])return e[n].exports;var o=e[n]={exports:{},id:n,loaded:!1};return y[n].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}var e={};return i.m=y,i.c=e,i.p="",i(0)}([function(y,i,e){"use strict";function n(d){return d&&d.__esModule?d:{default:d}}function o(d){var s=d.inputElement,A=d.afterUpdate,_=(0,u.default)(d),C=function(R){var x=R.target.value;_.update(x),"function"==typeof A&&A(x)};return s.addEventListener("input",C),_.update(s.value),{textMaskInputElement:_,destroy:function(){s.removeEventListener("input",C)}}}Object.defineProperty(i,"__esModule",{value:!0}),i.conformToMask=void 0,i.maskInput=o;var a=e(2);Object.defineProperty(i,"conformToMask",{enumerable:!0,get:function(){return n(a).default}});var u=n(e(5));i.default=o},function(y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.placeholderChar="_",i.strFunction="function"},function(y,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(s){return typeof s}:function(s){return s&&"function"==typeof Symbol&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s};i.default=function n(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,_=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,a.isArray)(A)){if((typeof A>"u"?"undefined":o(A))!==l.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");A=A(s,_),A=(0,a.processCaretTraps)(A).maskWithoutCaretTraps}var C=_.guide,R=void 0===C||C,x=_.previousConformedValue,f=void 0===x?d:x,k=_.placeholderChar,w=void 0===k?l.placeholderChar:k,g=_.placeholder,M=void 0===g?(0,a.convertMaskToPlaceholder)(A,w):g,E=_.keepCharPositions,b=!1===R&&void 0!==f,I=s.length,L=f.length,D=M.length,F=A.length,P=I-L,O=P>0,U=_.currentCaretPosition+(O?-P:0),V=U+Math.abs(P);if(!0===E&&!O){for(var K=d,X=U;X<V;X++)M[X]===w&&(K+=w);s=s.slice(0,U)+K+s.slice(U,I)}for(var me=s.split(d).map(function(fe,xe){return{char:fe,isNew:xe>=U&&xe<V}}),J=I-1;J>=0;J--){var Q=me[J].char;Q!==w&&Q===M[J>=U&&L===F?J-P:J]&&me.splice(J,1)}var de=d,te=!1;e:for(var j=0;j<D;j++){var H=M[j];if(H===w){if(me.length>0)for(;me.length>0;){var z=me.shift(),q=z.char,se=z.isNew;if(q===w&&!0!==b){de+=w;continue e}if(A[j].test(q)){if(!0===E&&!1!==se&&f!==d&&!1!==R&&O){for(var ne=me.length,_e=null,ge=0;ge<ne;ge++){var Ce=me[ge];if(Ce.char!==w&&!1===Ce.isNew)break;if(Ce.char===w){_e=ge;break}}null!==_e?(de+=q,me.splice(_e,1)):j--}else de+=q;continue e}te=!0}!1===b&&(de+=M.substr(j,D));break}de+=H}if(b&&!1===O){for(var Te=null,De=0;De<de.length;De++)M[De]===w&&(Te=De);de=null!==Te?de.substr(0,Te+1):d}return{conformedValue:de,meta:{someCharsRejected:te}}};var a=e(3),l=e(1),u=[],d=""},function(y,i,e){"use strict";function o(C){return Array.isArray&&Array.isArray(C)||C instanceof Array}Object.defineProperty(i,"__esModule",{value:!0}),i.convertMaskToPlaceholder=function n(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,R=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.placeholderChar;if(!o(C))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==C.indexOf(R))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(R)+"\n\nThe mask that was received is: "+JSON.stringify(C));return C.map(function(x){return x instanceof RegExp?R:x}).join("")},i.isArray=o,i.isString=function a(C){return"string"==typeof C||C instanceof String},i.isNumber=function l(C){return"number"==typeof C&&void 0===C.length&&!isNaN(C)},i.isNil=function u(C){return typeof C>"u"||null===C},i.processCaretTraps=function d(C){for(var R=[],x=void 0;-1!==(x=C.indexOf(_));)R.push(x),C.splice(x,1);return{maskWithoutCaretTraps:C,indexes:R}};var s=e(1),A=[],_="[]"},function(y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function e(a){var l=a.previousConformedValue,u=void 0===l?o:l,d=a.previousPlaceholder,s=void 0===d?o:d,A=a.currentCaretPosition,_=void 0===A?0:A,C=a.conformedValue,R=a.rawValue,x=a.placeholderChar,f=a.placeholder,k=a.indexesOfPipedChars,w=void 0===k?n:k,g=a.caretTrapIndexes,M=void 0===g?n:g;if(0===_||!R.length)return 0;var E=u.length,b=f.length,I=C.length,L=R.length-E,D=L>0;if(L>1&&!D&&0!==E)return _;var U=0,V=void 0,K=void 0;if(!D||u!==C&&C!==f){var X=C.toLowerCase(),Q=R.toLowerCase().substr(0,_).split(o).filter(function(Oe){return-1!==X.indexOf(Oe)});K=Q[Q.length-1];var re=s.substr(0,Q.length).split(o).filter(function(Oe){return Oe!==x}).length,de=f.substr(0,Q.length).split(o).filter(function(Oe){return Oe!==x}).length;!D&&(de!==re||void 0!==s[Q.length-1]&&void 0!==f[Q.length-2]&&s[Q.length-1]!==x&&s[Q.length-1]!==f[Q.length-1]&&s[Q.length-1]===f[Q.length-2])&&re>0&&f.indexOf(K)>-1&&void 0!==R[_]&&(V=!0,K=R[_]);for(var z=w.map(function(Oe){return X[Oe]}).filter(function(Oe){return Oe===K}).length,q=Q.filter(function(Oe){return Oe===K}).length,ne=f.substr(0,f.indexOf(x)).split(o).filter(function(Oe,Le){return Oe===K&&R[Le]!==Oe}).length+q+z+(V?1:0),_e=0,ge=0;ge<I&&(U=ge+1,X[ge]===K&&_e++,!(_e>=ne));ge++);}else U=_-L;if(D){for(var Te=U,De=U;De<=b;De++)if(f[De]===x&&(Te=De),f[De]===x||-1!==M.indexOf(De)||De===b)return Te}else if(V){for(var fe=U-1;fe>=0;fe--)if(C[fe]===K||-1!==M.indexOf(fe)||0===fe)return fe}else for(var xe=U;xe>=0;xe--)if(f[xe-1]===x||-1!==M.indexOf(xe)||0===xe)return xe};var n=[],o=""},function(y,i,e){"use strict";function n(p){return p&&p.__esModule?p:{default:p}}Object.defineProperty(i,"__esModule",{value:!0});var u=Object.assign||function(p){for(var E=1;E<arguments.length;E++){var b=arguments[E];for(var I in b)Object.prototype.hasOwnProperty.call(b,I)&&(p[I]=b[I])}return p},d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(p){return typeof p}:function(p){return p&&"function"==typeof Symbol&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p};i.default=function o(p){var E={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:E,update:function(b){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p,L=I.inputElement,D=I.mask,F=I.guide,P=I.pipe,O=I.placeholderChar,U=void 0===O?x.placeholderChar:O,V=I.keepCharPositions,K=void 0!==V&&V,X=I.showMask,me=void 0!==X&&X;if(typeof b>"u"&&(b=L.value),b!==E.previousConformedValue){(typeof D>"u"?"undefined":d(D))===w&&void 0!==D.pipe&&void 0!==D.mask&&(P=D.pipe,D=D.mask);var J=void 0,Q=void 0;if(D instanceof Array&&(J=(0,R.convertMaskToPlaceholder)(D,U)),!1!==D){var re=function l(p){if((0,R.isString)(p))return p;if((0,R.isNumber)(p))return String(p);if(null==p)return f;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(p))}(b),de=L.selectionEnd,te=E.previousConformedValue,j=E.previousPlaceholder,H=void 0;if((typeof D>"u"?"undefined":d(D))===x.strFunction){if(!1===(Q=D(re,{currentCaretPosition:de,previousConformedValue:te,placeholderChar:U})))return;var z=(0,R.processCaretTraps)(Q);H=z.indexes,J=(0,R.convertMaskToPlaceholder)(Q=z.maskWithoutCaretTraps,U)}else Q=D;var ne={previousConformedValue:te,guide:F,placeholderChar:U,pipe:P,placeholder:J,currentCaretPosition:de,keepCharPositions:K},ge=(0,C.default)(re,Q,ne).conformedValue,Ce=(typeof P>"u"?"undefined":d(P))===x.strFunction,Te={};Ce&&(!1===(Te=P(ge,u({rawValue:re},ne)))?Te={value:te,rejected:!0}:(0,R.isString)(Te)&&(Te={value:Te}));var De=Ce?Te.value:ge,fe=(0,A.default)({previousConformedValue:te,previousPlaceholder:j,conformedValue:De,placeholder:J,rawValue:re,currentCaretPosition:de,placeholderChar:U,indexesOfPipedChars:Te.indexesOfPipedChars,caretTrapIndexes:H}),Le=De===J&&0===fe?me?J:f:De;E.previousConformedValue=Le,E.previousPlaceholder=J,L.value!==Le&&(L.value=re.includes("e-")?re:Le,function a(p,E,b){(b?b.activeElement:document.activeElement)===p&&(g?M(function(){return p.setSelectionRange(E,E,k)},0):p.setSelectionRange(E,E,k))}(L,fe,p.shadowRoot))}}}}};var A=n(e(4)),C=n(e(2)),R=e(3),x=e(1),f="",k="none",w="object",g=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),M=typeof requestAnimationFrame<"u"?requestAnimationFrame:setTimeout}])},94748:(he,y,i)=>{"use strict";i.d(y,{L:()=>o});var e=i(86825);const n=(0,e.oQ)([(0,e.oB)({opacity:"{{opacity}}",transform:"scale({{scale}}) translate3d({{x}}, {{y}}, {{z}})"}),(0,e.jt)("{{duration}} {{delay}} cubic-bezier(0.0, 0.0, 0.2, 1)",(0,e.oB)("*"))],{params:{duration:"200ms",delay:"0ms",opacity:"0",scale:"1",x:"0",y:"0",z:"0"}}),o=[(0,e.X$)("animate",[(0,e.eR)("void => *",[(0,e._7)(n)])]),(0,e.X$)("animateStagger",[(0,e.SB)("50",(0,e.oB)("*")),(0,e.SB)("100",(0,e.oB)("*")),(0,e.SB)("200",(0,e.oB)("*")),(0,e.eR)("void => 50",(0,e.IO)("@*",[(0,e.EY)("50ms",[(0,e.pV)()])],{optional:!0})),(0,e.eR)("void => 100",(0,e.IO)("@*",[(0,e.EY)("100ms",[(0,e.pV)()])],{optional:!0})),(0,e.eR)("void => 200",(0,e.IO)("@*",[(0,e.EY)("200ms",[(0,e.pV)()])],{optional:!0}))]),(0,e.X$)("fadeInOut",[(0,e.SB)("0, void",(0,e.oB)({opacity:0})),(0,e.SB)("1, *",(0,e.oB)({opacity:1})),(0,e.eR)("1 => 0",(0,e.jt)("300ms ease-out")),(0,e.eR)("0 => 1",(0,e.jt)("300ms ease-in")),(0,e.eR)("void <=> *",(0,e.jt)("300ms ease-in"))]),(0,e.X$)("slideInOut",[(0,e.SB)("0",(0,e.oB)({height:"0px"})),(0,e.SB)("1",(0,e.oB)({height:"*"})),(0,e.eR)("1 => 0",(0,e.jt)("300ms ease-out")),(0,e.eR)("0 => 1",(0,e.jt)("300ms ease-in"))]),(0,e.X$)("slideIn",[(0,e.eR)("void => left",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)("300ms ease-in",(0,e.oB)({transform:"translateX(0)"}))]),(0,e.eR)("left => void",[(0,e.oB)({transform:"translateX(0)"}),(0,e.jt)("300ms ease-in",(0,e.oB)({transform:"translateX(-100%)"}))]),(0,e.eR)("void => right",[(0,e.oB)({transform:"translateX(-100%)"}),(0,e.jt)("300ms ease-in",(0,e.oB)({transform:"translateX(0)"}))]),(0,e.eR)("right => void",[(0,e.oB)({transform:"translateX(0)"}),(0,e.jt)("300ms ease-in",(0,e.oB)({transform:"translateX(100%)"}))])]),(0,e.X$)("slideInLeft",[(0,e.SB)("void",(0,e.oB)({transform:"translateX(-100%)"})),(0,e.SB)("*",(0,e.oB)({transform:"translateX(0)"})),(0,e.eR)("void => *",(0,e.jt)("300ms")),(0,e.eR)("* => void",(0,e.jt)("300ms"))]),(0,e.X$)("slideInRight",[(0,e.SB)("void",(0,e.oB)({transform:"translateX(100%)"})),(0,e.SB)("*",(0,e.oB)({transform:"translateX(0)"})),(0,e.eR)("void => *",(0,e.jt)("300ms")),(0,e.eR)("* => void",(0,e.jt)("300ms"))]),(0,e.X$)("slideInTop",[(0,e.SB)("void",(0,e.oB)({transform:"translateY(-100%)"})),(0,e.SB)("*",(0,e.oB)({transform:"translateY(0)"})),(0,e.eR)("void => *",(0,e.jt)("300ms")),(0,e.eR)("* => void",(0,e.jt)("300ms"))]),(0,e.X$)("slideInBottom",[(0,e.SB)("void",(0,e.oB)({transform:"translateY(100%)"})),(0,e.SB)("*",(0,e.oB)({transform:"translateY(0)"})),(0,e.eR)("void => *",(0,e.jt)("300ms")),(0,e.eR)("* => void",(0,e.jt)("300ms"))]),(0,e.X$)("expandCollapse",[(0,e.SB)("void",(0,e.oB)({height:"0px"})),(0,e.SB)("*",(0,e.oB)({height:"*"})),(0,e.eR)("void => *",(0,e.jt)("300ms ease-out")),(0,e.eR)("* => void",(0,e.jt)("300ms ease-in"))]),(0,e.X$)("routerTransitionLeft",[(0,e.eR)("* => *",[(0,e.IO)("content > :enter, content > :leave",[(0,e.oB)({position:"absolute",top:0,bottom:0,left:0,right:0})],{optional:!0}),(0,e.IO)("content > :enter",[(0,e.oB)({transform:"translateX(100%)",opacity:0})],{optional:!0}),(0,e.vP)([(0,e.ru)([(0,e.IO)("content > :leave",[(0,e.oB)({transform:"translateX(0)",opacity:1}),(0,e.jt)("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",(0,e.oB)({transform:"translateX(-100%)",opacity:0}))],{optional:!0}),(0,e.IO)("content > :enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",(0,e.oB)({transform:"translateX(0%)",opacity:1}))],{optional:!0})]),(0,e.IO)("content > :leave",(0,e.pV)(),{optional:!0}),(0,e.IO)("content > :enter",(0,e.pV)(),{optional:!0})])])]),(0,e.X$)("routerTransitionRight",[(0,e.eR)("* => *",[(0,e.IO)("content > :enter, content > :leave",[(0,e.oB)({position:"absolute",top:0,bottom:0,left:0,right:0})],{optional:!0}),(0,e.IO)("content > :enter",[(0,e.oB)({transform:"translateX(-100%)",opacity:0})],{optional:!0}),(0,e.vP)([(0,e.ru)([(0,e.IO)("content > :leave",[(0,e.oB)({transform:"translateX(0)",opacity:1}),(0,e.jt)("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",(0,e.oB)({transform:"translateX(100%)",opacity:0}))],{optional:!0}),(0,e.IO)("content > :enter",[(0,e.oB)({transform:"translateX(-100%)"}),(0,e.jt)("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",(0,e.oB)({transform:"translateX(0%)",opacity:1}))],{optional:!0})]),(0,e.IO)("content > :leave",(0,e.pV)(),{optional:!0}),(0,e.IO)("content > :enter",(0,e.pV)(),{optional:!0})])])]),(0,e.X$)("routerTransitionUp",[(0,e.eR)("* => *",[(0,e.IO)("content > :enter, content > :leave",[(0,e.oB)({position:"absolute",top:0,bottom:0,left:0,right:0})],{optional:!0}),(0,e.IO)("content > :enter",[(0,e.oB)({transform:"translateY(100%)",opacity:0})],{optional:!0}),(0,e.ru)([(0,e.IO)("content > :leave",[(0,e.oB)({transform:"translateY(0)",opacity:1}),(0,e.jt)("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",(0,e.oB)({transform:"translateY(-100%)",opacity:0}))],{optional:!0}),(0,e.IO)("content > :enter",[(0,e.oB)({transform:"translateY(100%)"}),(0,e.jt)("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",(0,e.oB)({transform:"translateY(0%)",opacity:1}))],{optional:!0})]),(0,e.IO)("content > :leave",(0,e.pV)(),{optional:!0}),(0,e.IO)("content > :enter",(0,e.pV)(),{optional:!0})])]),(0,e.X$)("routerTransitionDown",[(0,e.eR)("* => *",[(0,e.IO)("content > :enter, content > :leave",[(0,e.oB)({position:"absolute",top:0,bottom:0,left:0,right:0})],{optional:!0}),(0,e.IO)("content > :enter",[(0,e.oB)({transform:"translateY(-100%)",opacity:0})],{optional:!0}),(0,e.vP)([(0,e.ru)([(0,e.IO)("content > :leave",[(0,e.oB)({transform:"translateY(0)",opacity:1}),(0,e.jt)("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",(0,e.oB)({transform:"translateY(100%)",opacity:0}))],{optional:!0}),(0,e.IO)("content > :enter",[(0,e.oB)({transform:"translateY(-100%)"}),(0,e.jt)("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",(0,e.oB)({transform:"translateY(0%)",opacity:1}))],{optional:!0})]),(0,e.IO)("content > :leave",(0,e.pV)(),{optional:!0}),(0,e.IO)("content > :enter",(0,e.pV)(),{optional:!0})])])]),(0,e.X$)("routerTransitionFade",[(0,e.eR)("* => *",(0,e.ru)([(0,e.IO)("content > :enter, content > :leave ",[(0,e.oB)({position:"absolute",top:0,bottom:0,left:0,right:0})],{optional:!0}),(0,e.IO)("content > :enter",[(0,e.oB)({opacity:0})],{optional:!0}),(0,e.IO)("content > :leave",[(0,e.oB)({opacity:1}),(0,e.jt)("300ms cubic-bezier(0.0, 0.0, 0.2, 1)",(0,e.oB)({opacity:0}))],{optional:!0}),(0,e.IO)("content > :enter",[(0,e.oB)({opacity:0}),(0,e.jt)("300ms cubic-bezier(0.0, 0.0, 0.2, 1)",(0,e.oB)({opacity:1}))],{optional:!0}),(0,e.IO)("content > :enter",(0,e.pV)(),{optional:!0}),(0,e.IO)("content > :leave",(0,e.pV)(),{optional:!0})]))])]},98148:(he,y,i)=>{"use strict";i.d(y,{PU:()=>f,zd:()=>g,ef:()=>M.e,kZ:()=>me,VM:()=>J.V});var e=i(20180),n=i(96814),o=i(64190),a=i(23680),l=i(30617),u=i(89515),d=i(63569),s=i(1859),A=i(90964),_=i(30481),C=i(66229),R=i(65879),x=i(27509);let f=(()=>{class Q{static#e=this.\u0275fac=function(te){return new(te||Q)};static#t=this.\u0275mod=R.oAB({type:Q});static#n=this.\u0275inj=R.cJS({imports:[n.ez,o.Bz,_.AA,l.Ps,a.si,u.aw.forChild(),e.L,C.m9]})}return Q})();R.B6R(A.z,function(){return[n.mk,n.sg,n.O5,u.Pi,x.oO,A.z,d.Z,s._]},[]);var k=i(94505),w=i(48134);let g=(()=>{class Q{static#e=this.\u0275fac=function(te){return new(te||Q)};static#t=this.\u0275mod=R.oAB({type:Q});static#n=this.\u0275inj=R.cJS({imports:[n.ez,o.Bz,k.yu,l.Ps,w.jc]})}return Q})();var M=i(58869),p=i(56223),E=i(85947),b=i(45754),I=i(24678),L=i(26385),D=i(84187),F=i(21242),P=i(48424),O=i(51838),U=i(27105),V=i(78250),K=i(80991);let X=(()=>{class Q{static#e=this.\u0275fac=function(te){return new(te||Q)};static#t=this.\u0275mod=R.oAB({type:Q});static#n=this.\u0275inj=R.cJS({imports:[n.ez,E.o9,k.yu,l.Ps,V.jT,_.AA,K.w]})}return Q})(),me=(()=>{class Q{static#e=this.\u0275fac=function(te){return new(te||Q)};static#t=this.\u0275mod=R.oAB({type:Q});static#n=this.\u0275inj=R.cJS({imports:[n.ez,p.u5,p.UX,E.o9,k.yu,b.Zh,L.t,D.wp,l.Ps,I.Uc,F.Xo,P.uw,O.Wd,U.W,X,M.e]})}return Q})();var J=i(72018)},92534:(he,y,i)=>{"use strict";i.d(y,{J:()=>u});var e=i(65619),n=i(78645),o=i(6990),l=i(65879);let u=(()=>{class d{constructor(){this.onNavigationModelChange=new e.X({}),this._registry={},this.onItemCollapsed=new n.x,this.onItemCollapseToggled=new n.x,this._currentNavigationKey=null,this._onNavigationChanged=new e.X(null),this._onNavigationRegistered=new e.X(null),this._onNavigationUnregistered=new e.X(null),this._onNavigationItemAdded=new e.X(null),this._onNavigationItemUpdated=new e.X(null),this._onNavigationItemRemoved=new e.X(null)}get onNavigationChanged(){return this._onNavigationChanged.asObservable()}get onNavigationRegistered(){return this._onNavigationRegistered.asObservable()}get onNavigationUnregistered(){return this._onNavigationUnregistered.asObservable()}get onNavigationItemAdded(){return this._onNavigationItemAdded.asObservable()}get onNavigationItemUpdated(){return this._onNavigationItemUpdated.asObservable()}get onNavigationItemRemoved(){return this._onNavigationItemRemoved.asObservable()}register(A,_){this._registry[A]?console.error(`The navigation with the key '${A}' already exists. Either unregister it first or use a unique key.`):(this._registry[A]=_,this._onNavigationRegistered.next([A,_]))}unregister(A){this._registry[A]||console.warn(`The navigation with the key '${A}' doesn't exist in the registry.`),delete this._registry[A],this._onNavigationUnregistered.next(A)}getNavigation(A){if(this._registry[A])return this._registry[A];console.warn(`The navigation with the key '${A}' doesn't exist in the registry.`)}getFlatNavigation(A,_=[]){for(const C of A)"item"!==C.type?("collapsable"===C.type||"group"===C.type)&&C.children&&this.getFlatNavigation(C.children,_):_.push(C);return _}getCurrentNavigation(){if(this._currentNavigationKey)return this.getNavigation(this._currentNavigationKey);console.warn("The current navigation is not set.")}setCurrentNavigation(A){this._registry[A]?(this._currentNavigationKey=A,this._onNavigationChanged.next(A)):console.warn(`The navigation with the key '${A}' doesn't exist in the registry.`)}getNavigationItem(A,_=null){_||(_=this.getCurrentNavigation());for(const C of _){if(C.id===A)return C;if(C.children){const R=this.getNavigationItem(A,C.children);if(R)return R}}return!1}getNavigationItemParent(A,_=null,C=null){_||(C=_=this.getCurrentNavigation());for(const R of _){if(R.id===A)return C;if(R.children){const x=this.getNavigationItemParent(A,R.children,R);if(x)return x}}return!1}addNavigationItem(A,_){const C=this.getCurrentNavigation();if("end"===_)return C.push(A),void this._onNavigationItemAdded.next(!0);if("start"===_)return C.unshift(A),void this._onNavigationItemAdded.next(!0);const R=this.getNavigationItem(_);R&&(R.children||(R.children=[]),R.children.push(A)),this._onNavigationItemAdded.next(!0)}updateNavigationItem(A,_){const C=this.getNavigationItem(A);C&&(o.merge(C,_),this._onNavigationItemUpdated.next(!0))}removeNavigationItem(A){const _=this.getNavigationItem(A);if(!_)return;let C=this.getNavigationItemParent(A);C=C.children||C,C.splice(C.indexOf(_),1),this._onNavigationItemRemoved.next(!0)}setNavigationModel(A){this._registry.main&&this.unregister("main"),this._registry.zenople&&this.unregister("zenople"),this.register("main",A),this._onNavigationChanged.next(A)}findNavigationItemByName(A,_){return _||(_=this._onNavigationChanged.getValue()),this.getChildObjectByKey(_,A.toLowerCase())}getChildObjectByKey(A,_){if(A&&A.hasOwnProperty("navigation")&&A.navigation.toLowerCase()===_)return A;const C=A&&Object.keys(A).length||0;for(let R=0;R<C;R++)if("object"==typeof A[Object.keys(A)[R]]){let x=this.getChildObjectByKey(A[Object.keys(A)[R]],_);if(null!=x)return x}return null}static#e=this.\u0275fac=function(_){return new(_||d)};static#t=this.\u0275prov=l.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})()},1859:(he,y,i)=>{"use strict";i.d(y,{_:()=>F});var e=i(64190),n=i(78645),o=i(63019),a=i(32181),l=i(59773),u=i(94748),d=i(65879),s=i(92534),A=i(96814),_=i(30617),C=i(89515),R=i(27509),x=i(90964),f=i(63569);function k(P,O){1&P&&d.GkF(0)}function w(P,O){if(1&P&&(d.TgZ(0,"mat-icon",10),d._uU(1),d.qZA()),2&P){const U=d.oxw(3);d.xp6(1),d.Oqu(U.item.icon)}}const g=function(P,O){return{"background-color":P,color:O}};function M(P,O){if(1&P&&(d.TgZ(0,"span",11),d._uU(1),d.qZA()),2&P){const U=d.oxw(3);d.Q6J("translate",U.item.badge.translate)("ngStyle",d.WLB(3,g,U.item.badge.bg,U.item.badge.fg)),d.xp6(1),d.hij(" ",U.item.badge.title," ")}}function p(P,O){if(1&P&&(d.YNc(0,w,2,1,"mat-icon",6),d.TgZ(1,"span",7),d._uU(2),d.qZA(),d.YNc(3,M,2,6,"span",8),d.TgZ(4,"mat-icon",9),d._uU(5,"keyboard_arrow_right"),d.qZA()),2&P){const U=d.oxw(2);d.Q6J("ngIf",U.item.icon),d.xp6(1),d.Q6J("translate",U.item.translate),d.xp6(1),d.Oqu(U.item.title),d.xp6(1),d.Q6J("ngIf",U.item.badge)}}function E(P,O){if(1&P&&d._UZ(0,"fuse-nav-vertical-item",13),2&P){const U=d.oxw().$implicit;d.Q6J("item",U)}}function b(P,O){if(1&P&&d._UZ(0,"fuse-nav-vertical-collapsable",13),2&P){const U=d.oxw().$implicit;d.Q6J("item",U)}}function I(P,O){if(1&P&&d._UZ(0,"fuse-nav-vertical-group",13),2&P){const U=d.oxw().$implicit;d.Q6J("item",U)}}function L(P,O){if(1&P&&(d.ynx(0),d.YNc(1,E,1,1,"fuse-nav-vertical-item",12),d.YNc(2,b,1,1,"fuse-nav-vertical-collapsable",12),d.YNc(3,I,1,1,"fuse-nav-vertical-group",12),d.BQk()),2&P){const U=O.$implicit;d.xp6(1),d.Q6J("ngIf","item"==U.type),d.xp6(1),d.Q6J("ngIf","collapsable"==U.type),d.xp6(1),d.Q6J("ngIf","group"==U.type)}}function D(P,O){if(1&P){const U=d.EpF();d.ynx(0),d.TgZ(1,"a",1),d.NdJ("click",function(K){d.CHM(U);const X=d.oxw();return d.KtG(X.toggleOpen(K))}),d.YNc(2,k,1,0,"ng-container",2),d.qZA(),d.YNc(3,p,6,4,"ng-template",null,3,d.W1O),d.TgZ(5,"div",4),d.YNc(6,L,4,3,"ng-container",5),d.qZA(),d.BQk()}if(2&P){const U=d.MAs(4),V=d.oxw();d.xp6(1),d.Q6J("ngClass",V.item.classes),d.xp6(1),d.Q6J("ngTemplateOutlet",U),d.xp6(3),d.Q6J("@slideInOut",V.isOpen),d.xp6(1),d.Q6J("ngForOf",V.item.children)}}let F=(()=>{class P{constructor(U,V,K){this._changeDetectorRef=U,this._fuseNavigationService=V,this._router=K,this.classes="nav-collapsable nav-item",this.isOpen=!1,this._unsubscribeAll=new n.x}ngOnInit(){this._router.events.pipe((0,a.h)(U=>U instanceof e.m2),(0,l.R)(this._unsubscribeAll)).subscribe(U=>{this.isUrlInChildren(this.item,U.urlAfterRedirects)?this.expand():this.collapse()}),this._fuseNavigationService.onItemCollapsed.pipe((0,l.R)(this._unsubscribeAll)).subscribe(U=>{if(U&&U.children){if(this.isChildrenOf(this.item,U)||this.isUrlInChildren(this.item,this._router.url))return;this.item!==U&&this.collapse()}}),this.isUrlInChildren(this.item,this._router.url)?this.expand():this.collapse(),(0,o.T)(this._fuseNavigationService.onNavigationItemAdded,this._fuseNavigationService.onNavigationItemUpdated,this._fuseNavigationService.onNavigationItemRemoved).pipe((0,l.R)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}toggleOpen(U){U.preventDefault(),this.isOpen=!this.isOpen,this._fuseNavigationService.onItemCollapsed.next(this.item),this._fuseNavigationService.onItemCollapseToggled.next()}expand(){this.isOpen||(this.isOpen=!0,this._changeDetectorRef.markForCheck(),this._fuseNavigationService.onItemCollapseToggled.next())}collapse(){this.isOpen&&(this.isOpen=!1,this._changeDetectorRef.markForCheck(),this._fuseNavigationService.onItemCollapseToggled.next())}isChildrenOf(U,V){const K=U.children;if(!K)return!1;if(K.indexOf(V)>-1)return!0;for(const X of K)if(X.children&&this.isChildrenOf(X,V))return!0;return!1}isUrlInChildren(U,V){const K=U.children;if(!K)return!1;for(const X of K)if(X.children&&this.isUrlInChildren(X,V)||X.url===V||V.includes(X.url))return!0;return!1}static#e=this.\u0275fac=function(V){return new(V||P)(d.Y36(d.sBO),d.Y36(s.J),d.Y36(e.F0))};static#t=this.\u0275cmp=d.Xpm({type:P,selectors:[["fuse-nav-vertical-collapsable"]],hostVars:4,hostBindings:function(V,K){2&V&&(d.Tol(K.classes),d.ekj("open",K.isOpen))},inputs:{item:"item"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"nav-link",3,"ngClass","click"],[4,"ngTemplateOutlet"],["itemContent",""],[1,"children","children_me"],[4,"ngFor","ngForOf"],["class","nav-link-icon",4,"ngIf"],[1,"nav-link-title",3,"translate"],["class","nav-link-badge",3,"translate","ngStyle",4,"ngIf"],[1,"collapsable-arrow"],[1,"nav-link-icon"],[1,"nav-link-badge",3,"translate","ngStyle"],[3,"item",4,"ngIf"],[3,"item"]],template:function(V,K){1&V&&d.YNc(0,D,7,4,"ng-container",0),2&V&&d.Q6J("ngIf",!K.item.hidden)},dependencies:[A.mk,A.sg,A.O5,A.tP,A.PC,_.Hw,C.Pi,R.oO,R.Zl,x.z,f.Z,P],styles:[".folded:not(.unfolded)   [_nghost-%COMP%]   .nav-link[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{opacity:0;transition:opacity .2s ease}.folded:not(.unfolded)   [_nghost-%COMP%]   .children_me[_ngcontent-%COMP%]   fuse-nav-vertical-item[_ngcontent-%COMP%]     .nav-link{padding:0!important;justify-content:center}.folded:not(.unfolded)   [_nghost-%COMP%]   .children_me[_ngcontent-%COMP%]   fuse-nav-vertical-item[_ngcontent-%COMP%]     .nav-link span{display:none}[_nghost-%COMP%]   .nav-link[_ngcontent-%COMP%]   .collapsable-arrow[_ngcontent-%COMP%]{transition:transform .3s ease-in-out,opacity .25s ease-in-out .1s;transform:rotate(0)}[_nghost-%COMP%]   .parent_me[_ngcontent-%COMP%]{background:#4E5DB1;color:#fff;border-bottom:.5px dotted #fff}[_nghost-%COMP%]   .parent_me[_ngcontent-%COMP%]:hover{background:#4E5DB1;color:#fff}[_nghost-%COMP%] > .children[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] > .children_me[_ngcontent-%COMP%]{background:#fff}.open[_nghost-%COMP%] > .nav-link[_ngcontent-%COMP%]   .collapsable-arrow[_ngcontent-%COMP%]{transform:rotate(90deg)}"],data:{animation:u.L}})}return P})()},90964:(he,y,i)=>{"use strict";i.d(y,{z:()=>C});var e=i(78645),n=i(63019),o=i(59773),a=i(65879),l=i(92534);function u(R,x){if(1&R&&a._UZ(0,"fuse-nav-vertical-group",6),2&R){const f=a.oxw().$implicit;a.Q6J("item",f)}}function d(R,x){if(1&R&&a._UZ(0,"fuse-nav-vertical-collapsable",6),2&R){const f=a.oxw().$implicit;a.Q6J("item",f)}}function s(R,x){if(1&R&&a._UZ(0,"fuse-nav-vertical-item",6),2&R){const f=a.oxw().$implicit;a.Q6J("item",f)}}function A(R,x){if(1&R&&(a.ynx(0),a.YNc(1,u,1,1,"fuse-nav-vertical-group",5),a.YNc(2,d,1,1,"fuse-nav-vertical-collapsable",5),a.YNc(3,s,1,1,"fuse-nav-vertical-item",5),a.BQk()),2&R){const f=x.$implicit;a.xp6(1),a.Q6J("ngIf","group"==f.type),a.xp6(1),a.Q6J("ngIf","collapsable"==f.type),a.xp6(1),a.Q6J("ngIf","item"==f.type)}}function _(R,x){if(1&R&&(a.ynx(0),a.TgZ(1,"div",1)(2,"span",2),a._uU(3),a.qZA()(),a.TgZ(4,"div",3),a.YNc(5,A,4,3,"ng-container",4),a.qZA(),a.BQk()),2&R){const f=a.oxw();a.xp6(1),a.Q6J("ngClass",f.item.classes),a.xp6(1),a.Q6J("translate",f.item.translate),a.xp6(1),a.Oqu(f.item.title),a.xp6(2),a.Q6J("ngForOf",f.item.children)}}let C=(()=>{class R{constructor(f,k){this._changeDetectorRef=f,this._fuseNavigationService=k,this.classes="nav-group nav-item",this._unsubscribeAll=new e.x}ngOnInit(){(0,n.T)(this._fuseNavigationService.onNavigationItemAdded,this._fuseNavigationService.onNavigationItemUpdated,this._fuseNavigationService.onNavigationItemRemoved).pipe((0,o.R)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(k){return new(k||R)(a.Y36(a.sBO),a.Y36(l.J))};static#t=this.\u0275cmp=a.Xpm({type:R,selectors:[["fuse-nav-vertical-group"]],hostVars:2,hostBindings:function(k,w){2&k&&a.Tol(w.classes)},inputs:{item:"item"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"group-title",3,"ngClass"],[1,"hint-text",3,"translate"],[1,"group-items"],[4,"ngFor","ngForOf"],[3,"item",4,"ngIf"],[3,"item"]],template:function(k,w){1&k&&a.YNc(0,_,6,4,"ng-container",0),2&k&&a.Q6J("ngIf",!w.item.hidden)},styles:['.folded:not(.unfolded)   [_nghost-%COMP%] > .group-title[_ngcontent-%COMP%]{align-items:center}.folded:not(.unfolded)   [_nghost-%COMP%] > .group-title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{opacity:0;transition:opacity .2s ease}.folded:not(.unfolded)   [_nghost-%COMP%] > .group-title[_ngcontent-%COMP%]:before{content:"";display:block;position:absolute;min-width:1.6rem;border-top:2px solid;opacity:.2}']})}return R})()},63569:(he,y,i)=>{"use strict";i.d(y,{Z:()=>X});var e=i(78645),n=i(63019),o=i(59773),a=i(65879),l=i(92534),u=i(28011),d=i(64190),s=i(96814),A=i(30481),_=i(30617),C=i(89515),R=i(27509);function x(me,J){1&me&&a.GkF(0)}const f=function(me){return[me]},k=function(){return["active","accent"]},w=function(me){return{exact:me}};function g(me,J){if(1&me){const Q=a.EpF();a.TgZ(0,"a",7),a.NdJ("click",function(){a.CHM(Q);const de=a.oxw(2);return a.KtG(de.onNavigationClick(de.item))}),a.YNc(1,x,1,0,"ng-container",8),a.qZA()}if(2&me){a.oxw();const Q=a.MAs(7),re=a.oxw();a.Gre("nav-link zenauto-",re.item.title,""),a.Q6J("ngClass",re.item.classes)("routerLink",a.VKq(9,f,re.item.url))("routerLinkActive",a.DdM(11,k))("routerLinkActiveOptions",a.VKq(12,w,re.item.exactMatch||!1))("target",re.item.openInNewTab?"_blank":"_self"),a.xp6(1),a.Q6J("ngTemplateOutlet",Q)}}function M(me,J){1&me&&a.GkF(0)}function p(me,J){if(1&me&&(a.TgZ(0,"a",9),a.YNc(1,M,1,0,"ng-container",8),a.qZA()),2&me){a.oxw();const Q=a.MAs(7),re=a.oxw();a.Q6J("ngClass",re.item.classes)("href",re.item.url,a.LSH)("target",re.item.openInNewTab?"_blank":"_self"),a.xp6(1),a.Q6J("ngTemplateOutlet",Q)}}function E(me,J){1&me&&a.GkF(0)}function b(me,J){if(1&me){const Q=a.EpF();a.TgZ(0,"span",10),a.NdJ("click",function(){a.CHM(Q);const de=a.oxw(2);return a.KtG(de.item.function())}),a.YNc(1,E,1,0,"ng-container",8),a.qZA()}if(2&me){a.oxw();const Q=a.MAs(7),re=a.oxw();a.Q6J("ngClass",re.item.classes),a.xp6(1),a.Q6J("ngTemplateOutlet",Q)}}function I(me,J){1&me&&a.GkF(0)}function L(me,J){if(1&me){const Q=a.EpF();a.TgZ(0,"a",11),a.NdJ("click",function(){a.CHM(Q);const de=a.oxw(2);return a.KtG(de.item.function())}),a.YNc(1,I,1,0,"ng-container",8),a.qZA()}if(2&me){a.oxw();const Q=a.MAs(7),re=a.oxw();a.Q6J("ngClass",re.item.classes)("routerLink",a.VKq(6,f,re.item.url))("routerLinkActive",a.DdM(8,k))("routerLinkActiveOptions",a.VKq(9,w,re.item.exactMatch||!1))("target",re.item.openInNewTab?"_blank":"_self"),a.xp6(1),a.Q6J("ngTemplateOutlet",Q)}}function D(me,J){1&me&&a.GkF(0)}function F(me,J){if(1&me){const Q=a.EpF();a.TgZ(0,"a",12),a.NdJ("click",function(){a.CHM(Q);const de=a.oxw(2);return a.KtG(de.item.function())}),a.YNc(1,D,1,0,"ng-container",8),a.qZA()}if(2&me){a.oxw();const Q=a.MAs(7),re=a.oxw();a.Q6J("ngClass",re.item.classes)("href",re.item.url,a.LSH)("target",re.item.openInNewTab?"_blank":"_self"),a.xp6(1),a.Q6J("ngTemplateOutlet",Q)}}function P(me,J){if(1&me&&(a.TgZ(0,"mat-icon",16),a.ALo(1,"translate"),a._uU(2),a.qZA()),2&me){const Q=a.oxw(3);a.s9C("matTooltip",a.lcZ(1,2,Q.item.title)),a.xp6(2),a.Oqu(Q.item.icon)}}const O=function(me,J){return{"background-color":me,color:J}};function U(me,J){if(1&me&&(a.TgZ(0,"span",17),a._uU(1),a.qZA()),2&me){const Q=a.oxw(3);a.Q6J("translate",Q.item.badge.translate)("ngStyle",a.WLB(3,O,Q.item.badge.bg,Q.item.badge.fg)),a.xp6(1),a.hij(" ",Q.item.badge.title," ")}}function V(me,J){if(1&me&&(a.YNc(0,P,3,4,"mat-icon",13),a.TgZ(1,"span",14),a._uU(2),a.qZA(),a.YNc(3,U,2,6,"span",15)),2&me){const Q=a.oxw(2);a.Q6J("ngIf",Q.item.icon),a.xp6(1),a.Q6J("translate",Q.item.translate),a.xp6(1),a.Oqu(Q.item.title),a.xp6(1),a.Q6J("ngIf",Q.item.badge)}}function K(me,J){if(1&me&&(a.ynx(0),a.YNc(1,g,2,14,"a",1),a.YNc(2,p,2,4,"a",2),a.YNc(3,b,2,2,"span",3),a.YNc(4,L,2,11,"a",4),a.YNc(5,F,2,4,"a",5),a.YNc(6,V,4,4,"ng-template",null,6,a.W1O),a.BQk()),2&me){const Q=a.oxw();a.xp6(1),a.Q6J("ngIf",Q.item.url&&!Q.item.externalUrl&&!Q.item.function),a.xp6(1),a.Q6J("ngIf",Q.item.url&&Q.item.externalUrl&&!Q.item.function),a.xp6(1),a.Q6J("ngIf",!Q.item.url&&Q.item.function),a.xp6(1),a.Q6J("ngIf",Q.item.url&&!Q.item.externalUrl&&Q.item.function),a.xp6(1),a.Q6J("ngIf",Q.item.url&&Q.item.externalUrl&&Q.item.function)}}let X=(()=>{class me{constructor(Q,re,de,te){this._changeDetectorRef=Q,this._fuseNavigationService=re,this.entityDetailService=de,this.router=te,this.classes="nav-item",this._unsubscribeAll=new e.x}ngOnInit(){(0,n.T)(this._fuseNavigationService.onNavigationItemAdded,this._fuseNavigationService.onNavigationItemUpdated,this._fuseNavigationService.onNavigationItemRemoved).pipe((0,o.R)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}onNavigationClick(Q){const re=this.router.url.substring(1),de=Q.url;this.entityDetailService.removeDirectoryAndCurrentEntityData(),re.includes(de)&&this.reloadCurrentRoute(de)}reloadCurrentRoute(Q){this.router.navigateByUrl("blank",{skipLocationChange:!0}).then(()=>{this.router.navigate([Q])})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(re){return new(re||me)(a.Y36(a.sBO),a.Y36(l.J),a.Y36(u.a),a.Y36(d.F0))};static#t=this.\u0275cmp=a.Xpm({type:me,selectors:[["fuse-nav-vertical-item"]],hostVars:2,hostBindings:function(re,de){2&re&&a.Tol(de.classes)},inputs:{item:"item"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"class","ngClass","routerLink","routerLinkActive","routerLinkActiveOptions","target","click",4,"ngIf"],["class","nav-link",3,"ngClass","href","target",4,"ngIf"],["class","nav-link",3,"ngClass","click",4,"ngIf"],["class","nav-link",3,"ngClass","routerLink","routerLinkActive","routerLinkActiveOptions","target","click",4,"ngIf"],["class","nav-link",3,"ngClass","href","target","click",4,"ngIf"],["itemContent",""],[3,"ngClass","routerLink","routerLinkActive","routerLinkActiveOptions","target","click"],[4,"ngTemplateOutlet"],[1,"nav-link",3,"ngClass","href","target"],[1,"nav-link",3,"ngClass","click"],[1,"nav-link",3,"ngClass","routerLink","routerLinkActive","routerLinkActiveOptions","target","click"],[1,"nav-link",3,"ngClass","href","target","click"],["class","nav-link-icon s-20",3,"matTooltip",4,"ngIf"],[1,"nav-link-title","text-truncate",3,"translate"],["class","nav-link-badge",3,"translate","ngStyle",4,"ngIf"],[1,"nav-link-icon","s-20",3,"matTooltip"],[1,"nav-link-badge",3,"translate","ngStyle"]],template:function(re,de){1&re&&a.YNc(0,K,8,5,"ng-container",0),2&re&&a.Q6J("ngIf",!de.item.hidden)},dependencies:[s.mk,s.O5,s.tP,s.PC,d.rH,d.Od,A.Kd,_.Hw,C.Pi,R.oO,R.Zl,C.X$],styles:[".folded:not(.unfolded)   [_nghost-%COMP%]   .nav-link[_ngcontent-%COMP%] > .nav-link-title[_ngcontent-%COMP%], .folded:not(.unfolded)   [_nghost-%COMP%]   .nav-link[_ngcontent-%COMP%] > .nav-link-badge[_ngcontent-%COMP%]{opacity:0;transition:opacity .2s ease}"]})}return me})()},71810:(he,y,i)=>{"use strict";i.d(y,{H:()=>_});var e=i(65879),n=i(86825),o=i(78645),a=i(59773),l=i(5892),u=i(82358),d=i(79907),s=i(1462);const A=["*"];let _=(()=>{class C{constructor(x,f,k,w,g,M,p,E){this._animationBuilder=x,this._changeDetectorRef=f,this._elementRef=k,this._fuseConfigService=w,this._fuseMatchMediaService=g,this._fuseSidebarService=M,this._mediaObserver=p,this._renderer=E,this.closeOnBackdropClick=!0,this._backdrop=null,this.foldedAutoTriggerOnHover=!0,this.foldedWidth=64,this.foldedChanged=new e.vpe,this.openedChanged=new e.vpe,this.opened=!1,this.position="left",this.invisibleOverlay=!1,this._animationsEnabled=!1,this._folded=!1,this._unsubscribeAll=new o.x}set folded(x){if(this._folded=x,!this.opened)return;let f,k;const w=this.foldedWidth+"px";"left"===this.position?(f=this._elementRef.nativeElement.nextElementSibling,k="margin-left"):(f=this._elementRef.nativeElement.previousElementSibling,k="margin-right"),f&&(x?(this.fold(),this._renderer.setStyle(this._elementRef.nativeElement,"width",w),this._renderer.setStyle(this._elementRef.nativeElement,"min-width",w),this._renderer.setStyle(this._elementRef.nativeElement,"max-width",w),this._renderer.setStyle(f,k,w),this._renderer.addClass(this._elementRef.nativeElement,"folded")):(this.unfold(),this._renderer.removeStyle(this._elementRef.nativeElement,"width"),this._renderer.removeStyle(this._elementRef.nativeElement,"min-width"),this._renderer.removeStyle(this._elementRef.nativeElement,"max-width"),this._renderer.removeStyle(f,k),this._renderer.removeClass(this._elementRef.nativeElement,"folded")),this.foldedChanged.emit(this.folded))}get folded(){return this._folded}ngOnInit(){this._fuseConfigService.config.pipe((0,a.R)(this._unsubscribeAll)).subscribe(x=>{this._fuseConfig=x}),this._fuseSidebarService.register(this.name,this),this._setupVisibility(),this._setupPosition(),this._setupLockedOpen(),this._setupFolded()}ngOnDestroy(){this.folded&&this.unfold(),this._fuseSidebarService.unregister(this.name),this._unsubscribeAll.next(),this._unsubscribeAll.complete()}_setupVisibility(){this._renderer.setStyle(this._elementRef.nativeElement,"box-shadow","none"),this._renderer.setStyle(this._elementRef.nativeElement,"visibility","hidden")}_setupPosition(){this._renderer.addClass(this._elementRef.nativeElement,"right"===this.position?"right-positioned":"left-positioned")}_setupLockedOpen(){this.lockedOpen&&(this._wasActive=!1,this._wasFolded=this.folded,this._showSidebar(),this._fuseMatchMediaService.onMediaChange.pipe((0,a.R)(this._unsubscribeAll)).subscribe(()=>{const x=this._mediaObserver.isActive(this.lockedOpen);this._wasActive!==x&&(x?(this.isLockedOpen=!0,this._showSidebar(),this.opened=!0,this.openedChanged.emit(this.opened),this._wasFolded&&(this._enableAnimations(),this.folded=!0,this._changeDetectorRef.markForCheck()),this._hideBackdrop()):(this.isLockedOpen=!1,this.unfold(),this.opened=!1,this.openedChanged.emit(this.opened),this._hideSidebar()),this._wasActive=x)}))}_setupFolded(){if(!this.folded||!this.opened)return;let x,f;const k=this.foldedWidth+"px";"left"===this.position?(x=this._elementRef.nativeElement.nextElementSibling,f="margin-left"):(x=this._elementRef.nativeElement.previousElementSibling,f="margin-right"),x&&(this.fold(),this._renderer.setStyle(this._elementRef.nativeElement,"width",k),this._renderer.setStyle(this._elementRef.nativeElement,"min-width",k),this._renderer.setStyle(this._elementRef.nativeElement,"max-width",k),this._renderer.setStyle(x,f,k),this._renderer.addClass(this._elementRef.nativeElement,"folded"))}_showBackdrop(){this._backdrop=this._renderer.createElement("div"),this._backdrop.classList.add("fuse-sidebar-overlay"),this.invisibleOverlay&&this._backdrop.classList.add("fuse-sidebar-overlay-invisible"),this._renderer.appendChild(this._elementRef.nativeElement.parentElement,this._backdrop),this._player=this._animationBuilder.build([(0,n.jt)("300ms ease",(0,n.oB)({opacity:1}))]).create(this._backdrop),this._player.play(),this._backdrop.addEventListener("click",()=>{this.closeOnBackdropClick&&this.close()}),this._changeDetectorRef.markForCheck()}_hideBackdrop(){this._backdrop&&(this._player=this._animationBuilder.build([(0,n.jt)("300ms ease",(0,n.oB)({opacity:0}))]).create(this._backdrop),this._player.play(),this._player.onDone(()=>{this._backdrop&&(this._backdrop.parentNode.removeChild(this._backdrop),this._backdrop=null)}),this._changeDetectorRef.markForCheck())}_showSidebar(){this._renderer.removeStyle(this._elementRef.nativeElement,"box-shadow"),this._renderer.removeStyle(this._elementRef.nativeElement,"visibility"),this._changeDetectorRef.markForCheck()}_hideSidebar(x=!0){setTimeout(()=>{this._renderer.setStyle(this._elementRef.nativeElement,"box-shadow","none"),this._renderer.setStyle(this._elementRef.nativeElement,"visibility","hidden")},x?300:0),this._changeDetectorRef.markForCheck()}_enableAnimations(){this._animationsEnabled||(this._animationsEnabled=!0,this._changeDetectorRef.markForCheck())}open(){this.opened||this.isLockedOpen||(this._enableAnimations(),this._showSidebar(),this._showBackdrop(),this.opened=!0,this.openedChanged.emit(this.opened),this._changeDetectorRef.markForCheck())}close(){!this.opened||this.isLockedOpen||(this._enableAnimations(),this._hideBackdrop(),this.opened=!1,this.openedChanged.emit(this.opened),this._hideSidebar(),this._changeDetectorRef.markForCheck())}toggleOpen(){this.opened?this.close():this.open()}onMouseEnter(){this.foldedAutoTriggerOnHover&&this.unfoldTemporarily()}onMouseLeave(){this.foldedAutoTriggerOnHover&&this.foldTemporarily()}fold(){this.folded||(this._enableAnimations(),this.folded=!0,this._changeDetectorRef.markForCheck())}unfold(){this.folded&&(this._enableAnimations(),this.folded=!1,this._changeDetectorRef.markForCheck())}toggleFold(){this.folded?this.unfold():this.fold()}foldTemporarily(){if(!this.folded)return;this._enableAnimations(),this.unfolded=!1;const x=this.foldedWidth+"px";this._renderer.setStyle(this._elementRef.nativeElement,"width",x),this._renderer.setStyle(this._elementRef.nativeElement,"min-width",x),this._renderer.setStyle(this._elementRef.nativeElement,"max-width",x),this._changeDetectorRef.markForCheck()}unfoldTemporarily(){this.folded&&(this._enableAnimations(),this.unfolded=!0,this._renderer.removeStyle(this._elementRef.nativeElement,"width"),this._renderer.removeStyle(this._elementRef.nativeElement,"min-width"),this._renderer.removeStyle(this._elementRef.nativeElement,"max-width"),this._changeDetectorRef.markForCheck())}static#e=this.\u0275fac=function(f){return new(f||C)(e.Y36(n._j),e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(l.m),e.Y36(u._),e.Y36(d.h),e.Y36(s.u0),e.Y36(e.Qsj))};static#t=this.\u0275cmp=e.Xpm({type:C,selectors:[["fuse-sidebar"]],hostVars:8,hostBindings:function(f,k){1&f&&e.NdJ("mouseleave",function(){return k.onMouseLeave()}),2&f&&e.ekj("open",k.opened)("locked-open",k.isLockedOpen)("unfolded",k.unfolded)("animations-enabled",k._animationsEnabled)},inputs:{name:"name",closeOnBackdropClick:"closeOnBackdropClick",key:"key",position:"position",lockedOpen:"lockedOpen",foldedWidth:"foldedWidth",foldedAutoTriggerOnHover:"foldedAutoTriggerOnHover",invisibleOverlay:"invisibleOverlay",folded:"folded"},outputs:{foldedChanged:"foldedChanged",openedChanged:"openedChanged"},ngContentSelectors:A,decls:1,vars:0,template:function(f,k){1&f&&(e.F$t(),e.Hsn(0))},styles:["fuse-sidebar{display:flex;flex-direction:column;flex:1 0 auto;position:absolute;top:0;bottom:0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;width:280px;min-width:280px;max-width:280px;z-index:1000;box-shadow:0 2px 8px #00000059}@media screen and (max-width: 599px){fuse-sidebar{min-width:0!important;max-width:80vw!important;width:80vw!important}}fuse-sidebar.left-positioned{left:0;transform:translate(-100%)}fuse-sidebar.right-positioned{right:0;transform:translate(100%)}fuse-sidebar.open{transform:translate(0)}fuse-sidebar.locked-open{position:relative!important;transform:translate(0)!important}fuse-sidebar.folded{position:absolute!important;top:0;bottom:0}fuse-sidebar.animations-enabled{transition-property:transform,width,min-width,max-width;transition-duration:.15s;transition-timing-function:ease-in-out}.fuse-sidebar-overlay{position:absolute;inset:0;z-index:999;opacity:0}\n"],encapsulation:2})}return C})()},58869:(he,y,i)=>{"use strict";i.d(y,{e:()=>n});var e=i(65879);let n=(()=>{class o{static#e=this.\u0275fac=function(u){return new(u||o)};static#t=this.\u0275mod=e.oAB({type:o});static#n=this.\u0275inj=e.cJS({})}return o})()},79907:(he,y,i)=>{"use strict";i.d(y,{h:()=>n});var e=i(65879);let n=(()=>{class o{constructor(){this._registry={}}register(l,u){this._registry[l]?console.error(`The sidebar with the key '${l}' already exists. Either unregister it first or use a unique key.`):this._registry[l]=u}unregister(l){this._registry[l]||console.warn(`The sidebar with the key '${l}' doesn't exist in the registry.`),delete this._registry[l]}getSidebar(l){if(this._registry[l])return this._registry[l];console.warn(`The sidebar with the key '${l}' doesn't exist in the registry.`)}static#e=this.\u0275fac=function(u){return new(u||o)};static#t=this.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},72018:(he,y,i)=>{"use strict";i.d(y,{V:()=>n});var e=i(65879);let n=(()=>{class o{static#e=this.\u0275fac=function(u){return new(u||o)};static#t=this.\u0275mod=e.oAB({type:o});static#n=this.\u0275inj=e.cJS({})}return o})()},27105:(he,y,i)=>{"use strict";i.d(y,{W:()=>n});var e=i(65879);let n=(()=>{class o{static#e=this.\u0275fac=function(u){return new(u||o)};static#t=this.\u0275mod=e.oAB({type:o});static#n=this.\u0275inj=e.cJS({})}return o})()},3461:(he,y,i)=>{"use strict";i.d(y,{u:()=>n});var e=i(65879);let n=(()=>{class o{constructor(l,u,d){this._elementRef=l,this._templateRef=u,this._viewContainerRef=d,this.isCreated=!1}ngAfterContentChecked(){document.body.contains(this._elementRef.nativeElement)&&!this.isCreated?(setTimeout(()=>{this._viewContainerRef.createEmbeddedView(this._templateRef)},300),this.isCreated=!0):this.isCreated&&!document.body.contains(this._elementRef.nativeElement)&&(this._viewContainerRef.clear(),this.isCreated=!1)}static#e=this.\u0275fac=function(u){return new(u||o)(e.Y36(e.SBq),e.Y36(e.Rgc),e.Y36(e.s_b))};static#t=this.\u0275dir=e.lG2({type:o,selectors:[["","fuseIfOnDom",""]]})}return o})()},43413:(he,y,i)=>{"use strict";i.d(y,{I:()=>l});var e=i(78645),n=i(59773),o=i(65879),a=i(82358);let l=(()=>{class u{constructor(s,A,_){this._elementRef=s,this._fuseMediaMatchService=A,this._renderer=_,this._unsubscribeAll=new e.x}ngOnInit(){this._parent=this._renderer.parentNode(this._elementRef.nativeElement),this._parent&&(this._grandParent=this._renderer.parentNode(this._parent),this._fuseMediaMatchService.onMediaChange.pipe((0,n.R)(this._unsubscribeAll)).subscribe(s=>{"xs"===s?this._removeClass():this._addClass()}))}ngOnDestroy(){this._parent&&(this._removeClass(),this._unsubscribeAll.next(),this._unsubscribeAll.complete())}_addClass(){this._renderer.addClass(this._grandParent,"inner-scroll")}_removeClass(){this._renderer.removeClass(this._grandParent,"inner-scroll")}static#e=this.\u0275fac=function(A){return new(A||u)(o.Y36(o.SBq),o.Y36(a._),o.Y36(o.Qsj))};static#t=this.\u0275dir=o.lG2({type:u,selectors:[["",8,"inner-scroll"]]})}return u})()},94390:(he,y,i)=>{"use strict";i.d(y,{i:()=>De});var e=i(64190),n=i(78645),o=i(92438),a=i(59773),l=i(83620),u=i(32181);
/*!
         * perfect-scrollbar v1.5.3
         * Copyright 2021 Hyunje Jun, MDBootstrap and Contributors
         * Licensed under MIT
         */function d(fe){return getComputedStyle(fe)}function s(fe,xe){for(var Oe in xe){var Le=xe[Oe];"number"==typeof Le&&(Le+="px"),fe.style[Oe]=Le}return fe}function A(fe){var xe=document.createElement("div");return xe.className=fe,xe}var _=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function C(fe,xe){if(!_)throw new Error("No element matching method supported");return _.call(fe,xe)}function R(fe){fe.remove?fe.remove():fe.parentNode&&fe.parentNode.removeChild(fe)}function x(fe,xe){return Array.prototype.filter.call(fe.children,function(Oe){return C(Oe,xe)})}var f={main:"ps",rtl:"ps__rtl",element:{thumb:function(fe){return"ps__thumb-"+fe},rail:function(fe){return"ps__rail-"+fe},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(fe){return"ps--active-"+fe},scrolling:function(fe){return"ps--scrolling-"+fe}}},k={x:null,y:null};function w(fe,xe){var Oe=fe.element.classList,Le=f.state.scrolling(xe);Oe.contains(Le)?clearTimeout(k[xe]):Oe.add(Le)}function g(fe,xe){k[xe]=setTimeout(function(){return fe.isAlive&&fe.element.classList.remove(f.state.scrolling(xe))},fe.settings.scrollingThreshold)}var p=function(xe){this.element=xe,this.handlers={}},E={isEmpty:{configurable:!0}};p.prototype.bind=function(xe,Oe){typeof this.handlers[xe]>"u"&&(this.handlers[xe]=[]),this.handlers[xe].push(Oe),this.element.addEventListener(xe,Oe,!1)},p.prototype.unbind=function(xe,Oe){var Le=this;this.handlers[xe]=this.handlers[xe].filter(function(Gt){return!(!Oe||Gt===Oe)||(Le.element.removeEventListener(xe,Gt,!1),!1)})},p.prototype.unbindAll=function(){for(var xe in this.handlers)this.unbind(xe)},E.isEmpty.get=function(){var fe=this;return Object.keys(this.handlers).every(function(xe){return 0===fe.handlers[xe].length})},Object.defineProperties(p.prototype,E);var b=function(){this.eventElements=[]};function I(fe){if("function"==typeof window.CustomEvent)return new CustomEvent(fe);var xe=document.createEvent("CustomEvent");return xe.initCustomEvent(fe,!1,!1,void 0),xe}function L(fe,xe,Oe,Le,Gt){var Ut;if(void 0===Le&&(Le=!0),void 0===Gt&&(Gt=!1),"top"===xe)Ut=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==xe)throw new Error("A proper axis should be provided");Ut=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function D(fe,xe,Oe,Le,Gt){var Ut=Oe[0],An=Oe[1],$n=Oe[2],xn=Oe[3],mt=Oe[4],ut=Oe[5];void 0===Le&&(Le=!0),void 0===Gt&&(Gt=!1);var Wt=fe.element;fe.reach[xn]=null,Wt[$n]<1&&(fe.reach[xn]="start"),Wt[$n]>fe[Ut]-fe[An]-1&&(fe.reach[xn]="end"),xe&&(Wt.dispatchEvent(I("ps-scroll-"+xn)),xe<0?Wt.dispatchEvent(I("ps-scroll-"+mt)):xe>0&&Wt.dispatchEvent(I("ps-scroll-"+ut)),Le&&function M(fe,xe){w(fe,xe),g(fe,xe)}(fe,xn)),fe.reach[xn]&&(xe||Gt)&&Wt.dispatchEvent(I("ps-"+xn+"-reach-"+fe.reach[xn]))}(fe,Oe,Ut,Le,Gt)}function F(fe){return parseInt(fe,10)||0}b.prototype.eventElement=function(xe){var Oe=this.eventElements.filter(function(Le){return Le.element===xe})[0];return Oe||(Oe=new p(xe),this.eventElements.push(Oe)),Oe},b.prototype.bind=function(xe,Oe,Le){this.eventElement(xe).bind(Oe,Le)},b.prototype.unbind=function(xe,Oe,Le){var Gt=this.eventElement(xe);Gt.unbind(Oe,Le),Gt.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(Gt),1)},b.prototype.unbindAll=function(){this.eventElements.forEach(function(xe){return xe.unbindAll()}),this.eventElements=[]},b.prototype.once=function(xe,Oe,Le){var Gt=this.eventElement(xe),Ut=function(An){Gt.unbind(Oe,Ut),Le(An)};Gt.bind(Oe,Ut)};var U={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function V(fe){var xe=fe.element,Oe=Math.floor(xe.scrollTop),Le=xe.getBoundingClientRect();fe.containerWidth=Math.round(Le.width),fe.containerHeight=Math.round(Le.height),fe.contentWidth=xe.scrollWidth,fe.contentHeight=xe.scrollHeight,xe.contains(fe.scrollbarXRail)||(x(xe,f.element.rail("x")).forEach(function(Gt){return R(Gt)}),xe.appendChild(fe.scrollbarXRail)),xe.contains(fe.scrollbarYRail)||(x(xe,f.element.rail("y")).forEach(function(Gt){return R(Gt)}),xe.appendChild(fe.scrollbarYRail)),!fe.settings.suppressScrollX&&fe.containerWidth+fe.settings.scrollXMarginOffset<fe.contentWidth?(fe.scrollbarXActive=!0,fe.railXWidth=fe.containerWidth-fe.railXMarginWidth,fe.railXRatio=fe.containerWidth/fe.railXWidth,fe.scrollbarXWidth=K(fe,F(fe.railXWidth*fe.containerWidth/fe.contentWidth)),fe.scrollbarXLeft=F((fe.negativeScrollAdjustment+xe.scrollLeft)*(fe.railXWidth-fe.scrollbarXWidth)/(fe.contentWidth-fe.containerWidth))):fe.scrollbarXActive=!1,!fe.settings.suppressScrollY&&fe.containerHeight+fe.settings.scrollYMarginOffset<fe.contentHeight?(fe.scrollbarYActive=!0,fe.railYHeight=fe.containerHeight-fe.railYMarginHeight,fe.railYRatio=fe.containerHeight/fe.railYHeight,fe.scrollbarYHeight=K(fe,F(fe.railYHeight*fe.containerHeight/fe.contentHeight)),fe.scrollbarYTop=F(Oe*(fe.railYHeight-fe.scrollbarYHeight)/(fe.contentHeight-fe.containerHeight))):fe.scrollbarYActive=!1,fe.scrollbarXLeft>=fe.railXWidth-fe.scrollbarXWidth&&(fe.scrollbarXLeft=fe.railXWidth-fe.scrollbarXWidth),fe.scrollbarYTop>=fe.railYHeight-fe.scrollbarYHeight&&(fe.scrollbarYTop=fe.railYHeight-fe.scrollbarYHeight),function X(fe,xe){var Oe={width:xe.railXWidth},Le=Math.floor(fe.scrollTop);Oe.left=xe.isRtl?xe.negativeScrollAdjustment+fe.scrollLeft+xe.containerWidth-xe.contentWidth:fe.scrollLeft,xe.isScrollbarXUsingBottom?Oe.bottom=xe.scrollbarXBottom-Le:Oe.top=xe.scrollbarXTop+Le,s(xe.scrollbarXRail,Oe);var Gt={top:Le,height:xe.railYHeight};xe.isScrollbarYUsingRight?Gt.right=xe.isRtl?xe.contentWidth-(xe.negativeScrollAdjustment+fe.scrollLeft)-xe.scrollbarYRight-xe.scrollbarYOuterWidth-9:xe.scrollbarYRight-fe.scrollLeft:Gt.left=xe.isRtl?xe.negativeScrollAdjustment+fe.scrollLeft+2*xe.containerWidth-xe.contentWidth-xe.scrollbarYLeft-xe.scrollbarYOuterWidth:xe.scrollbarYLeft+fe.scrollLeft,s(xe.scrollbarYRail,Gt),s(xe.scrollbarX,{left:xe.scrollbarXLeft,width:xe.scrollbarXWidth-xe.railBorderXWidth}),s(xe.scrollbarY,{top:xe.scrollbarYTop,height:xe.scrollbarYHeight-xe.railBorderYWidth})}(xe,fe),fe.scrollbarXActive?xe.classList.add(f.state.active("x")):(xe.classList.remove(f.state.active("x")),fe.scrollbarXWidth=0,fe.scrollbarXLeft=0,xe.scrollLeft=!0===fe.isRtl?fe.contentWidth:0),fe.scrollbarYActive?xe.classList.add(f.state.active("y")):(xe.classList.remove(f.state.active("y")),fe.scrollbarYHeight=0,fe.scrollbarYTop=0,xe.scrollTop=0)}function K(fe,xe){return fe.settings.minScrollbarLength&&(xe=Math.max(xe,fe.settings.minScrollbarLength)),fe.settings.maxScrollbarLength&&(xe=Math.min(xe,fe.settings.maxScrollbarLength)),xe}function Q(fe,xe){var Oe=xe[0],Le=xe[1],Gt=xe[2],Ut=xe[3],An=xe[4],$n=xe[5],xn=xe[6],mt=xe[7],ut=xe[8],Wt=fe.element,dn=null,sn=null,fn=null;function yi(mi){mi.touches&&mi.touches[0]&&(mi[Gt]=mi.touches[0].pageY),Wt[xn]=dn+fn*(mi[Gt]-sn),w(fe,mt),V(fe),mi.stopPropagation(),mi.type.startsWith("touch")&&mi.changedTouches.length>1&&mi.preventDefault()}function nn(){g(fe,mt),fe[ut].classList.remove(f.state.clicking),fe.event.unbind(fe.ownerDocument,"mousemove",yi)}function Mi(mi,Eo){dn=Wt[xn],Eo&&mi.touches&&(mi[Gt]=mi.touches[0].pageY),sn=mi[Gt],fn=(fe[Le]-fe[Oe])/(fe[Ut]-fe[$n]),Eo?fe.event.bind(fe.ownerDocument,"touchmove",yi):(fe.event.bind(fe.ownerDocument,"mousemove",yi),fe.event.once(fe.ownerDocument,"mouseup",nn),mi.preventDefault()),fe[ut].classList.add(f.state.clicking),mi.stopPropagation()}fe.event.bind(fe[An],"mousedown",function(mi){Mi(mi)}),fe.event.bind(fe[An],"touchstart",function(mi){Mi(mi,!0)})}var H={"click-rail":function me(fe){fe.event.bind(fe.scrollbarY,"mousedown",function(Oe){return Oe.stopPropagation()}),fe.event.bind(fe.scrollbarYRail,"mousedown",function(Oe){var Le=Oe.pageY-window.pageYOffset-fe.scrollbarYRail.getBoundingClientRect().top;fe.element.scrollTop+=(Le>fe.scrollbarYTop?1:-1)*fe.containerHeight,V(fe),Oe.stopPropagation()}),fe.event.bind(fe.scrollbarX,"mousedown",function(Oe){return Oe.stopPropagation()}),fe.event.bind(fe.scrollbarXRail,"mousedown",function(Oe){var Le=Oe.pageX-window.pageXOffset-fe.scrollbarXRail.getBoundingClientRect().left;fe.element.scrollLeft+=(Le>fe.scrollbarXLeft?1:-1)*fe.containerWidth,V(fe),Oe.stopPropagation()})},"drag-thumb":function J(fe){Q(fe,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Q(fe,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function re(fe){var xe=fe.element;fe.event.bind(fe.ownerDocument,"keydown",function(Ut){if(!(Ut.isDefaultPrevented&&Ut.isDefaultPrevented()||Ut.defaultPrevented)&&(C(xe,":hover")||C(fe.scrollbarX,":focus")||C(fe.scrollbarY,":focus"))){var An=document.activeElement?document.activeElement:fe.ownerDocument.activeElement;if(An){if("IFRAME"===An.tagName)An=An.contentDocument.activeElement;else for(;An.shadowRoot;)An=An.shadowRoot.activeElement;if(function P(fe){return C(fe,"input,[contenteditable]")||C(fe,"select,[contenteditable]")||C(fe,"textarea,[contenteditable]")||C(fe,"button,[contenteditable]")}(An))return}var $n=0,xn=0;switch(Ut.which){case 37:$n=Ut.metaKey?-fe.contentWidth:Ut.altKey?-fe.containerWidth:-30;break;case 38:xn=Ut.metaKey?fe.contentHeight:Ut.altKey?fe.containerHeight:30;break;case 39:$n=Ut.metaKey?fe.contentWidth:Ut.altKey?fe.containerWidth:30;break;case 40:xn=Ut.metaKey?-fe.contentHeight:Ut.altKey?-fe.containerHeight:-30;break;case 32:xn=Ut.shiftKey?fe.containerHeight:-fe.containerHeight;break;case 33:xn=fe.containerHeight;break;case 34:xn=-fe.containerHeight;break;case 36:xn=fe.contentHeight;break;case 35:xn=-fe.contentHeight;break;default:return}fe.settings.suppressScrollX&&0!==$n||fe.settings.suppressScrollY&&0!==xn||(xe.scrollTop-=xn,xe.scrollLeft+=$n,V(fe),function Gt(Ut,An){var $n=Math.floor(xe.scrollTop);if(0===Ut){if(!fe.scrollbarYActive)return!1;if(0===$n&&An>0||$n>=fe.contentHeight-fe.containerHeight&&An<0)return!fe.settings.wheelPropagation}var xn=xe.scrollLeft;if(0===An){if(!fe.scrollbarXActive)return!1;if(0===xn&&Ut<0||xn>=fe.contentWidth-fe.containerWidth&&Ut>0)return!fe.settings.wheelPropagation}return!0}($n,xn)&&Ut.preventDefault())}})},wheel:function de(fe){var xe=fe.element;function Ut(An){var $n=function Le(An){var $n=An.deltaX,xn=-1*An.deltaY;return(typeof $n>"u"||typeof xn>"u")&&($n=-1*An.wheelDeltaX/6,xn=An.wheelDeltaY/6),An.deltaMode&&1===An.deltaMode&&($n*=10,xn*=10),$n!=$n&&xn!=xn&&($n=0,xn=An.wheelDelta),An.shiftKey?[-xn,-$n]:[$n,xn]}(An),xn=$n[0],mt=$n[1];if(!function Gt(An,$n,xn){if(!U.isWebKit&&xe.querySelector("select:focus"))return!0;if(!xe.contains(An))return!1;for(var mt=An;mt&&mt!==xe;){if(mt.classList.contains(f.element.consuming))return!0;var ut=d(mt);if(xn&&ut.overflowY.match(/(scroll|auto)/)){var Wt=mt.scrollHeight-mt.clientHeight;if(Wt>0&&(mt.scrollTop>0&&xn<0||mt.scrollTop<Wt&&xn>0))return!0}if($n&&ut.overflowX.match(/(scroll|auto)/)){var dn=mt.scrollWidth-mt.clientWidth;if(dn>0&&(mt.scrollLeft>0&&$n<0||mt.scrollLeft<dn&&$n>0))return!0}mt=mt.parentNode}return!1}(An.target,xn,mt)){var ut=!1;fe.settings.useBothWheelAxes?fe.scrollbarYActive&&!fe.scrollbarXActive?(mt?xe.scrollTop-=mt*fe.settings.wheelSpeed:xe.scrollTop+=xn*fe.settings.wheelSpeed,ut=!0):fe.scrollbarXActive&&!fe.scrollbarYActive&&(xn?xe.scrollLeft+=xn*fe.settings.wheelSpeed:xe.scrollLeft-=mt*fe.settings.wheelSpeed,ut=!0):(xe.scrollTop-=mt*fe.settings.wheelSpeed,xe.scrollLeft+=xn*fe.settings.wheelSpeed),V(fe),ut=ut||function Oe(An,$n){var xn=Math.floor(xe.scrollTop),mt=0===xe.scrollTop,ut=xn+xe.offsetHeight===xe.scrollHeight,Wt=0===xe.scrollLeft,dn=xe.scrollLeft+xe.offsetWidth===xe.scrollWidth;return!(Math.abs($n)>Math.abs(An)?mt||ut:Wt||dn)||!fe.settings.wheelPropagation}(xn,mt),ut&&!An.ctrlKey&&(An.stopPropagation(),An.preventDefault())}}typeof window.onwheel<"u"?fe.event.bind(xe,"wheel",Ut):typeof window.onmousewheel<"u"&&fe.event.bind(xe,"mousewheel",Ut)},touch:function te(fe){if(U.supportsTouch||U.supportsIePointer){var xe=fe.element,Gt={},Ut=0,An={},$n=null;U.supportsTouch?(fe.event.bind(xe,"touchstart",ut),fe.event.bind(xe,"touchmove",dn),fe.event.bind(xe,"touchend",sn)):U.supportsIePointer&&(window.PointerEvent?(fe.event.bind(xe,"pointerdown",ut),fe.event.bind(xe,"pointermove",dn),fe.event.bind(xe,"pointerup",sn)):window.MSPointerEvent&&(fe.event.bind(xe,"MSPointerDown",ut),fe.event.bind(xe,"MSPointerMove",dn),fe.event.bind(xe,"MSPointerUp",sn)))}function Le(fn,yi){xe.scrollTop-=yi,xe.scrollLeft-=fn,V(fe)}function xn(fn){return fn.targetTouches?fn.targetTouches[0]:fn}function mt(fn){return!(fn.pointerType&&"pen"===fn.pointerType&&0===fn.buttons||!(fn.targetTouches&&1===fn.targetTouches.length||fn.pointerType&&"mouse"!==fn.pointerType&&fn.pointerType!==fn.MSPOINTER_TYPE_MOUSE))}function ut(fn){if(mt(fn)){var yi=xn(fn);Gt.pageX=yi.pageX,Gt.pageY=yi.pageY,Ut=(new Date).getTime(),null!==$n&&clearInterval($n)}}function dn(fn){if(mt(fn)){var yi=xn(fn),nn={pageX:yi.pageX,pageY:yi.pageY},Mi=nn.pageX-Gt.pageX,mi=nn.pageY-Gt.pageY;if(function Wt(fn,yi,nn){if(!xe.contains(fn))return!1;for(var Mi=fn;Mi&&Mi!==xe;){if(Mi.classList.contains(f.element.consuming))return!0;var mi=d(Mi);if(nn&&mi.overflowY.match(/(scroll|auto)/)){var Eo=Mi.scrollHeight-Mi.clientHeight;if(Eo>0&&(Mi.scrollTop>0&&nn<0||Mi.scrollTop<Eo&&nn>0))return!0}if(yi&&mi.overflowX.match(/(scroll|auto)/)){var Ko=Mi.scrollWidth-Mi.clientWidth;if(Ko>0&&(Mi.scrollLeft>0&&yi<0||Mi.scrollLeft<Ko&&yi>0))return!0}Mi=Mi.parentNode}return!1}(fn.target,Mi,mi))return;Le(Mi,mi),Gt=nn;var Eo=(new Date).getTime(),Ko=Eo-Ut;Ko>0&&(An.x=Mi/Ko,An.y=mi/Ko,Ut=Eo),function Oe(fn,yi){var nn=Math.floor(xe.scrollTop),Mi=xe.scrollLeft,mi=Math.abs(fn),Eo=Math.abs(yi);if(Eo>mi){if(yi<0&&nn===fe.contentHeight-fe.containerHeight||yi>0&&0===nn)return 0===window.scrollY&&yi>0&&U.isChrome}else if(mi>Eo&&(fn<0&&Mi===fe.contentWidth-fe.containerWidth||fn>0&&0===Mi))return!0;return!0}(Mi,mi)&&fn.preventDefault()}}function sn(){fe.settings.swipeEasing&&(clearInterval($n),$n=setInterval(function(){fe.isInitialized?clearInterval($n):An.x||An.y?Math.abs(An.x)<.01&&Math.abs(An.y)<.01?clearInterval($n):fe.element?(Le(30*An.x,30*An.y),An.x*=.8,An.y*=.8):clearInterval($n):clearInterval($n)},10))}}},z=function(xe,Oe){var Le=this;if(void 0===Oe&&(Oe={}),"string"==typeof xe&&(xe=document.querySelector(xe)),!xe||!xe.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var Gt in this.element=xe,xe.classList.add(f.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},Oe)this.settings[Gt]=Oe[Gt];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var ut,mt,Ut=function(){return xe.classList.add(f.state.focus)},An=function(){return xe.classList.remove(f.state.focus)};this.isRtl="rtl"===d(xe).direction,!0===this.isRtl&&xe.classList.add(f.rtl),this.isNegativeScroll=(mt=xe.scrollLeft,xe.scrollLeft=-1,ut=xe.scrollLeft<0,xe.scrollLeft=mt,ut),this.negativeScrollAdjustment=this.isNegativeScroll?xe.scrollWidth-xe.clientWidth:0,this.event=new b,this.ownerDocument=xe.ownerDocument||document,this.scrollbarXRail=A(f.element.rail("x")),xe.appendChild(this.scrollbarXRail),this.scrollbarX=A(f.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",Ut),this.event.bind(this.scrollbarX,"blur",An),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var $n=d(this.scrollbarXRail);this.scrollbarXBottom=parseInt($n.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=F($n.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=F($n.borderLeftWidth)+F($n.borderRightWidth),s(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=F($n.marginLeft)+F($n.marginRight),s(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=A(f.element.rail("y")),xe.appendChild(this.scrollbarYRail),this.scrollbarY=A(f.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",Ut),this.event.bind(this.scrollbarY,"blur",An),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var xn=d(this.scrollbarYRail);this.scrollbarYRight=parseInt(xn.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=F(xn.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function O(fe){var xe=d(fe);return F(xe.width)+F(xe.paddingLeft)+F(xe.paddingRight)+F(xe.borderLeftWidth)+F(xe.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=F(xn.borderTopWidth)+F(xn.borderBottomWidth),s(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=F(xn.marginTop)+F(xn.marginBottom),s(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:xe.scrollLeft<=0?"start":xe.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:xe.scrollTop<=0?"start":xe.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(mt){return H[mt](Le)}),this.lastScrollTop=Math.floor(xe.scrollTop),this.lastScrollLeft=xe.scrollLeft,this.event.bind(this.element,"scroll",function(mt){return Le.onScroll(mt)}),V(this)};z.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,s(this.scrollbarXRail,{display:"block"}),s(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=F(d(this.scrollbarXRail).marginLeft)+F(d(this.scrollbarXRail).marginRight),this.railYMarginHeight=F(d(this.scrollbarYRail).marginTop)+F(d(this.scrollbarYRail).marginBottom),s(this.scrollbarXRail,{display:"none"}),s(this.scrollbarYRail,{display:"none"}),V(this),L(this,"top",0,!1,!0),L(this,"left",0,!1,!0),s(this.scrollbarXRail,{display:""}),s(this.scrollbarYRail,{display:""}))},z.prototype.onScroll=function(xe){this.isAlive&&(V(this),L(this,"top",this.element.scrollTop-this.lastScrollTop),L(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},z.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),R(this.scrollbarX),R(this.scrollbarY),R(this.scrollbarXRail),R(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},z.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(xe){return!xe.match(/^ps([-_].+|)$/)}).join(" ")};const q=z;var se=i(6990);class ne{constructor(xe,Oe,Le,Gt){this.x=xe,this.y=Oe,this.w=Le,this.h=Gt}}class _e{constructor(xe,Oe){this.x=xe,this.y=Oe}}var ge=i(65879),Ce=i(5892),Te=i(62831);let De=(()=>{class fe{constructor(Oe,Le,Gt,Ut){this.elementRef=Oe,this._fuseConfigService=Le,this._platform=Gt,this._router=Ut,this.isInitialized=!1,this.isMobile=!1,this._animation=null,this._enabled=!1,this._debouncedUpdate=se.debounce(this.update,150),this._options={updateOnRouteChange:!1},this._unsubscribeAll=new n.x}set fusePerfectScrollbarOptions(Oe){this._options=se.merge({},this._options,Oe),setTimeout(()=>{this._destroy()}),setTimeout(()=>{this._init()})}get fusePerfectScrollbarOptions(){return this._options}set enabled(Oe){""===Oe&&(Oe=!0),this.enabled!==Oe&&(this._enabled=Oe,this.enabled?this._init():this._destroy())}get enabled(){return this._enabled}ngOnInit(){(0,o.R)(window,"resize").pipe((0,a.R)(this._unsubscribeAll),(0,l.b)(150)).subscribe(()=>{this.update()})}ngAfterViewInit(){this._fuseConfigService.config.pipe((0,a.R)(this._unsubscribeAll)).subscribe(Oe=>{this.enabled=Oe.customScrollbars}),this.fusePerfectScrollbarOptions.updateOnRouteChange&&this._router.events.pipe((0,a.R)(this._unsubscribeAll),(0,u.h)(Oe=>Oe instanceof e.m2)).subscribe(()=>{setTimeout(()=>{this.scrollToTop(),this.update()},0)})}ngOnDestroy(){this._destroy(),this._unsubscribeAll.next(),this._unsubscribeAll.complete()}_init(){this.isInitialized||((this._platform.ANDROID||this._platform.IOS)&&(this.isMobile=!0),!this.isMobile&&(this.isInitialized=!0,this.ps=new q(this.elementRef.nativeElement,{...this.fusePerfectScrollbarOptions}),this.ps.event.eventElements.forEach(Oe=>{typeof Oe.handlers.keydown<"u"&&Oe.element.removeEventListener("keydown",Oe.handlers.keydown[0])})))}_destroy(){!this.isInitialized||!this.ps||(this.ps.destroy(),this.ps=null,this.isInitialized=!1)}_updateOnResize(){this._debouncedUpdate()}documentClick(Oe){!this.isInitialized||!this.ps||this.ps.update()}update(){this.isInitialized&&this.ps.update()}destroy(){this.ngOnDestroy()}geometry(Oe="scroll"){return new ne(this.elementRef.nativeElement[Oe+"Left"],this.elementRef.nativeElement[Oe+"Top"],this.elementRef.nativeElement[Oe+"Width"],this.elementRef.nativeElement[Oe+"Height"])}position(Oe=!1){return!Oe&&this.ps?new _e(this.ps.reach.x||0,this.ps.reach.y||0):new _e(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollTo(Oe,Le,Gt){null==Le&&null==Gt?this.animateScrolling("scrollTop",Oe,Gt):(null!=Oe&&this.animateScrolling("scrollLeft",Oe,Gt),null!=Le&&this.animateScrolling("scrollTop",Le,Gt))}scrollToX(Oe,Le){this.animateScrolling("scrollLeft",Oe,Le)}scrollToY(Oe,Le){this.animateScrolling("scrollTop",Oe,Le)}scrollToTop(Oe,Le){this.animateScrolling("scrollTop",Oe||0,Le)}scrollToLeft(Oe,Le){this.animateScrolling("scrollLeft",Oe||0,Le)}scrollToRight(Oe,Le){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(Oe||0),Le)}scrollToBottom(Oe,Le){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(Oe||0),Le)}scrollToElement(Oe,Le,Gt){const Ut=this.elementRef.nativeElement.querySelector(Oe);if(!Ut)return;const An=Ut.getBoundingClientRect(),$n=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",An.left-$n.left+this.elementRef.nativeElement.scrollLeft+(Le||0),Gt),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",An.top-$n.top+this.elementRef.nativeElement.scrollTop+(Le||0),Gt)}animateScrolling(Oe,Le,Gt){if(this._animation&&(window.cancelAnimationFrame(this._animation),this._animation=null),!Gt||typeof window>"u")this.elementRef.nativeElement[Oe]=Le;else if(Le!==this.elementRef.nativeElement[Oe]){let Ut=0,An=0,$n=performance.now(),xn=this.elementRef.nativeElement[Oe];const mt=(xn-Le)/2,ut=Wt=>{An+=Math.PI/(Gt/(Wt-$n)),Ut=Math.round(Le+mt+mt*Math.cos(An)),this.elementRef.nativeElement[Oe]===xn&&(An>=Math.PI?this.animateScrolling(Oe,Le,0):(this.elementRef.nativeElement[Oe]=Ut,xn=this.elementRef.nativeElement[Oe],$n=Wt,this._animation=window.requestAnimationFrame(ut)))};window.requestAnimationFrame(ut)}}static#e=this.\u0275fac=function(Le){return new(Le||fe)(ge.Y36(ge.SBq),ge.Y36(Ce.m),ge.Y36(Te.t4),ge.Y36(e.F0))};static#t=this.\u0275dir=ge.lG2({type:fe,selectors:[["","fusePerfectScrollbar",""]],hostBindings:function(Le,Gt){1&Le&&ge.NdJ("resize",function(){return Gt._updateOnResize()},!1,ge.Jf7)("click",function(An){return Gt.documentClick(An)},!1,ge.evT)},inputs:{fusePerfectScrollbarOptions:"fusePerfectScrollbarOptions",enabled:["fusePerfectScrollbar","enabled"]}})}return fe})()},80991:(he,y,i)=>{"use strict";i.d(y,{w:()=>n});var e=i(65879);let n=(()=>{class o{static#e=this.\u0275fac=function(u){return new(u||o)};static#t=this.\u0275mod=e.oAB({type:o});static#n=this.\u0275inj=e.cJS({})}return o})()},5892:(he,y,i)=>{"use strict";i.d(y,{R:()=>A,m:()=>_});var e=i(65879),n=i(64190),o=i(65619),a=i(32181),l=i(6990),d=i(62831),s=i(74187);const A=new e.OlP("fuseCustomConfig");let _=(()=>{class C{constructor(x,f,k,w){this._platform=x,this._router=f,this.us=k,this._config=w,this._defaultConfig=w,this._init()}set config(x){let f=this._configSubject.getValue();f=l.merge({},f,x),this._configSubject.next(f)}get config(){return this._configSubject.asObservable()}get defaultConfig(){return this._defaultConfig}_init(){(this._platform.ANDROID||this._platform.IOS)&&(this._defaultConfig.customScrollbars=!1),this._configSubject=new o.X(l.cloneDeep(this._defaultConfig)),this._router.events.pipe((0,a.h)(x=>x instanceof n.Av)).subscribe(()=>{if(!l.isEqual(this._configSubject.getValue().layout,this._defaultConfig.layout)){const x=l.cloneDeep(this._configSubject.getValue());x.layout=l.cloneDeep(this._defaultConfig.layout),this._configSubject.next(x)}})}setConfig(x,f={emitEvent:!0}){let k=this._configSubject.getValue();k=l.merge({},k,x),!0===f.emitEvent&&this._configSubject.next(k)}getConfig(){return this._configSubject.asObservable()}resetToDefaults(){this._configSubject.next(l.cloneDeep(this._defaultConfig))}setZenDefaultConfig(){this.zenNavStyle=this.us.getTokenValueByKey("navigationStyle"),this.zenThemeColor="theme-dark",this.zenNavStyle=""==this.zenNavStyle?"Left":this.zenNavStyle,this._defaultConfig=l.cloneDeep(this.getDefaultConfig(this.zenNavStyle,this.zenThemeColor))}setZenMobileConfig(){this.zenNavStyle=this.us.getTokenValueByKey("navigationStyle"),this.zenThemeColor="theme-dark",this.zenNavStyle=""==this.zenNavStyle?"Left":this.zenNavStyle,this._defaultConfig=l.cloneDeep(this.getDefaultConfig(this.zenNavStyle,this.zenThemeColor))}getDefaultConfig(x="Left",f="theme-default"){let k;return k={colorTheme:f,customScrollbars:!0,layout:this.getDefaultConfigLayout(x)},{...k}}getMobileConfig(x="Left",f="theme-default"){let k;return k={colorTheme:f,customScrollbars:!0,layout:this.getMobileConfigLayout(x)},{...k}}getDefaultConfigLayout(x="Left"){let f;switch(x){case"Left":f={style:"vertical-layout-1",width:"fullwidth",navbar:{primaryBackground:"",secondaryBackground:"",folded:!1,hidden:!1,position:"left",variant:"vertical-style-1"},toolbar:{background:"",customBackgroundColor:!1,hidden:!1,position:"below-fixed"},footer:{background:"fuse-navy-900",customBackgroundColor:!0,hidden:!1,position:"above"},sidepanel:{hidden:!1,position:"right"}};break;case"Right":f={style:"vertical-layout-1",width:"fullwidth",navbar:{primaryBackground:"fuse-navy-700",secondaryBackground:"fuse-navy-900",folded:!1,hidden:!1,position:"left",variant:"vertical-style-1"},toolbar:{background:"fuse-white-500",customBackgroundColor:!1,hidden:!1,position:"below-static"},footer:{background:"fuse-navy-900",customBackgroundColor:!0,hidden:!1,position:"below-static"},sidepanel:{hidden:!1,position:"right"}};break;case"Top":f={style:"horizontal-layout-1",width:"fullwidth",navbar:{primaryBackground:"fuse-navy-700",secondaryBackground:"fuse-navy-900",folded:!1,hidden:!1,position:"top",variant:"vertical-style-1"},toolbar:{background:"fuse-white-500",customBackgroundColor:!1,hidden:!1,position:"above"},footer:{background:"fuse-navy-900",customBackgroundColor:!0,hidden:!1,position:"above-fixed"},sidepanel:{hidden:!1,position:"right"}}}return{...f}}getMobileConfigLayout(x="Left"){let f;switch(x){case"Left":f={style:"vertical-layout-1",width:"fullwidth",navbar:{primaryBackground:"",secondaryBackground:"",folded:!1,hidden:!1,position:"left",variant:"vertical-style-1"},toolbar:{background:"",customBackgroundColor:!1,hidden:!1,position:"below-fixed"},footer:{background:"fuse-navy-900",customBackgroundColor:!0,hidden:!1,position:"above"},sidepanel:{hidden:!1,position:"right"}};break;case"Right":f={style:"vertical-layout-1",width:"fullwidth",navbar:{primaryBackground:"fuse-navy-700",secondaryBackground:"fuse-navy-900",folded:!1,hidden:!1,position:"left",variant:"vertical-style-1"},toolbar:{background:"fuse-white-500",customBackgroundColor:!1,hidden:!1,position:"below-fixed"},footer:{background:"fuse-navy-900",customBackgroundColor:!0,hidden:!1,position:"below-static"},sidepanel:{hidden:!1,position:"right"}};break;case"Top":f={style:"horizontal-layout-1",width:"fullwidth",navbar:{primaryBackground:"fuse-navy-700",secondaryBackground:"fuse-navy-900",folded:!1,hidden:!1,position:"top",variant:"vertical-style-1"},toolbar:{background:"fuse-white-500",customBackgroundColor:!1,hidden:!1,position:"below-fixed"},footer:{background:"fuse-navy-900",customBackgroundColor:!0,hidden:!1,position:"above-fixed"},sidepanel:{hidden:!1,position:"right"}}}return{...f}}static#e=this.\u0275fac=function(f){return new(f||C)(e.LFG(d.t4),e.LFG(n.F0),e.LFG(s.t),e.LFG(A))};static#t=this.\u0275prov=e.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})()},82358:(he,y,i)=>{"use strict";i.d(y,{_:()=>s});var e=i(65619),n=i(83620),o=i(93997),a=i(32181),l=i(37398),u=i(65879),d=i(1462);let s=(()=>{class A{constructor(C){this._mediaObserver=C,this.onMediaChange=new e.X(""),this.activeMediaQuery="",this._init()}_init(){this._mediaObserver.asObservable().pipe((0,n.b)(500),(0,o.x)(),(0,a.h)(C=>C.length>0),(0,l.U)(C=>C[0])).subscribe(C=>{this.activeMediaQuery!==C.mqAlias&&(this.activeMediaQuery=C.mqAlias,this.onMediaChange.next(C.mqAlias))})}static#e=this.\u0275fac=function(R){return new(R||A)(u.LFG(d.u0))};static#t=this.\u0275prov=u.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})()},20180:(he,y,i)=>{"use strict";i.d(y,{L:()=>d});var e=i(56223),n=i(96814),o=i(85947),a=i(27105),l=i(80991),u=i(65879);let d=(()=>{class s{static#e=this.\u0275fac=function(C){return new(C||s)};static#t=this.\u0275mod=u.oAB({type:s});static#n=this.\u0275inj=u.cJS({imports:[n.ez,e.u5,e.UX,o.o9,a.W,l.w,n.ez,e.u5,e.UX,o.o9,a.W,l.w]})}return s})()},46438:(he,y,i)=>{"use strict";i.d(y,{n:()=>e});class e{static filterArrayByString(o,a){return""===a?o:(a=a.toLowerCase(),o.filter(l=>this.searchInObj(l,a)))}static searchInObj(o,a){for(const l in o){if(!o.hasOwnProperty(l))continue;const u=o[l];if("string"==typeof u){if(this.searchInString(u,a))return!0}else if(Array.isArray(u)&&this.searchInArray(u,a))return!0;if("object"==typeof u&&this.searchInObj(u,a))return!0}}static searchInArray(o,a){for(const l of o)if("string"==typeof l&&this.searchInString(l,a)||"object"==typeof l&&this.searchInObj(l,a))return!0}static searchInString(o,a){return o.toLowerCase().includes(a)}static generateGUID(){function o(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return o()+o()}static toggleInArray(o,a){-1===a.indexOf(o)?a.push(o):a.splice(a.indexOf(o),1)}static handleize(o){return o.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}}},77211:(he,y,i)=>{"use strict";i.d(y,{i:()=>C});var e=i(60703),n=i(7110),o=i(78645),a=i(59773),l=i(65879),u=i(32292),d=i(64190),s=i(74187),A=i(61371),_=i(28011);let C=(()=>{class R{constructor(f,k,w,g,M){this.js=f,this._router=k,this.utilityService=w,this.personService=g,this._eds=M,this.isNavigationAuthenticated=!1,this.jwtHelper=new e.N0,this._unsubscribeAll=new o.x}canActivate(f,k){const w=k.url.split("?")[0].split("/");return w.shift(),this.currentPath=1==w.length?w[0]:w[0]+"/"+w[1],this.personApplicationData(this.currentPath)}personApplicationData(f){return new Promise((k,w)=>{let g=this.utilityService.getLocalStorage("token");if(g){const M=parseInt(this.utilityService.getTokenValueByKey("personId").toString());if(M>0&&!this.jwtHelper.isTokenExpired(g)){let p=this.personService.appData;if(p)this.navigation=p.navigation,this.checkChildrenNavigation(this.navigation),this.isNavigationAuthenticated||(window.location.href=n.XL.settings.webUrl+"error-404"),k(this.isNavigationAuthenticated);else{let E="";if(localStorage.getItem("isNavigated"))E='{"name": "All","applicationId":"'+localStorage.getItem("isNavigated")+'","currentPath":"'+f+'","personId":"'+M+'"}';else{const b=JSON.parse(sessionStorage.getItem("headerParams"));let I,L;b?(I=b.applicationId,L=b.roleId):(I=parseInt(this.utilityService.getLocalStorage("currentApplicationId")),L=parseInt(this.utilityService.getLocalStorage("currentRoleId"))?parseInt(this.utilityService.getLocalStorage("currentRoleId")):parseInt(this.utilityService.getLocalStorage("roleId"))),E='{"name": "All","applicationId":"'+I+'","roleId":"'+L+'","currentPath":"'+f+'","personId":"'+M+'"}'}this.personService.personApplicationData(E).pipe((0,a.R)(this._unsubscribeAll)).subscribe(b=>{if(b){localStorage.getItem("isNavigated")&&(this._eds.removeDirectoryAndCurrentEntityData(),localStorage.removeItem("isNavigated")),this.personService.appData=b;let I=b.application.find(P=>1==P.isCurrent);this.utilityService.setLocalStorage("currentApplicationId",I.applicationId.toString()),this.utilityService.setLocalStorage("currentRoleId",I.roleId.toString()),this.navigation=b.navigation;const L=b.theme.find(P=>1==P.isCurrent).listItem,D=this.personService.getFuseColorThemeName(L);this.utilityService.setLocalStorage("default-theme-mode",D);let F=localStorage.getItem("selectedLanguage");F&&b.culture.find(P=>1==P.isCurrent).cultureCode!=F&&(b.culture.find(P=>1==P.isCurrent).isCurrent=0,b.culture.find(P=>P.cultureCode==F).isCurrent=1),localStorage.setItem("selectedLanguage",b.culture.find(P=>1==P.isCurrent).cultureCode),this.personService.applicationData.next(b),this.checkChildrenNavigation(this.navigation),this.isNavigationAuthenticated||(window.location.href=n.XL.settings.webUrl+"error-404"),k(this.isNavigationAuthenticated)}else window.location.href=n.XL.settings.webUrl+"login/",this.utilityService.getLocalStorage("orgCode"),k(!1)},w)}}else this._router.navigate(["session-expiry"]),k(!1)}else this._router.navigate(["session-expiry"]),k(!1)})}checkChildrenNavigation(f){const k=this.personService.applicationData.getValue().officeStaff.optionValue.split(",");if(k.push("chat"),Object.keys(k).length>0){const w=this.currentPath.split("/")[0];for(let g=0;g<k.length;g++)k[g].toUpperCase()==w.toUpperCase()&&(this.isNavigationAuthenticated=!0)}null!=f.length?f.forEach(w=>{this.currentPath==w.url&&(this.isNavigationAuthenticated=!0),w.children.length>0&&w.children.forEach(g=>{this.checkChildrenNavigation(g)})}):(this.currentPath==f.url&&(this.isNavigationAuthenticated=!0),f.children&&f.children.forEach(w=>{this.checkChildrenNavigation(w)}))}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(k){return new(k||R)(l.LFG(u.a),l.LFG(d.F0),l.LFG(s.t),l.LFG(A.R),l.LFG(_.a))};static#t=this.\u0275prov=l.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"})}return R})()},94919:(he,y,i)=>{"use strict";i.d(y,{r:()=>w});var e=i(15861),n=i(65619),o=i(58504),a=i(7110),l=i(48180),u=i(37398),d=i(26306),s=i(69862),A=i(60703),_=i(65879),C=i(64190),R=i(6738),x=i(74187),f=i(710),k=i(86204);let w=(()=>{class g{constructor(p,E,b,I,L,D){this.router=p,this.ws=E,this.utilityService=b,this.cs=I,this.push=L,this.httpClient=D,this.isAuthenticated=new n.X(this.hasToken()),this.jwtHelper=new A.N0,this.localUser={userName:"",password:"",organizationId:0},this.loginRedirect={type:!1,message:""},this.deviceId=0,this.deviceInfo=a.XL.userTrackingInfo}Login(p,E,b){this.localUser.userName=p,this.localUser.password=E,this.localUser.organizationId=b,this.localUser.deviceInfo=this.deviceInfo;const L={headers:(new s.WM).set("AllowAnonymous","true")};return this.ws.postWithOptions(a.XL.settings.apiUrl+"Account/Login",this.localUser,L)}IsAuthenticated(){return this.isAuthenticated.asObservable()}hasToken(){return!!this.utilityService.getLocalStorage("token")}unregisterServiceWorker(){return(0,e.Z)(function*(){yield navigator?.serviceWorker?.getRegistrations().then(function(){var p=(0,e.Z)(function*(E){if(E?.length){for(let b of E)yield b.unregister(),console.log("ServiceWorker Unregistered");window.location.reload()}});return function(E){return p.apply(this,arguments)}}())})()}changeIsLoggedInStatus(){var p=this;return(0,e.Z)(function*(){return new Promise(E=>{const b={Device:{}};b.Device[p.deviceId]={isLoggedIn:!1},p.cs.dynamicUpdate(b).pipe((0,l.q)(1)).subscribe({next:()=>E(!0),error:I=>{console.error(I),E(!0)}})})})()}Logout(){var p=this;return(0,e.Z)(function*(){const E=p.ws.post(a.XL.settings.apiUrl+"Account/Logout");p.deviceId>0&&(yield p.changeIsLoggedInStatus());const b=p.utilityService.getLocalStorage("orgCode"),I=localStorage.getItem("selectedLanguage");return localStorage.clear(),sessionStorage.clear(),I&&localStorage.setItem("selectedLanguage",I),p.isAuthenticated.next(!1),window.history.replaceState({},"login","/login/"+b),window.location.href=a.XL.settings.webUrl+"login/"+b,E})()}LoginTimeclock(p){p.callFrom="timeclock";const E=p.orgCode;return this.deviceInfo.location.latLng=p.latLng,p.deviceInfo=this.deviceInfo,this.ws.post(a.XL.settings.apiUrl+"Account/LoginTimeClock",{json:JSON.stringify(p)}).pipe((0,u.U)(b=>{if(b&&b.isSuccess){const I=b.data&&b.data.token;delete b.data.token,this.utilityService.setLocalStorage("token",I),this.utilityService.setLocalStorage("orgCode",E)}return b}),(0,d.K)(b=>(this.utilityService.removeLocalStorage("token"),(0,o._)(b))))}LogoutTimeclock(){if(this.utilityService.getLocalStorage("token"))return this.ws.post(a.XL.settings.apiUrl+"Account/Logout").pipe((0,u.U)(p=>{const E=this.utilityService.getLocalStorage("loginUrl");if(E){const b=E.split("/");this.utilityService.setLocalStorage("loginUrl",`/${b[1]}/${b[2]}`)}this.utilityService.redirectToLogin()}));this.utilityService.redirectToLogin()}AutoLoginCheckTimeClock(){return this.ws.post(a.XL.settings.apiUrl+"Account/AutoLoginCheckTimeClock").pipe((0,u.U)(p=>{if(p&&p.isSuccess){const E=p.data&&p.data.token;delete p.data.token,this.utilityService.setLocalStorage("token",E)}return p}),(0,d.K)(p=>(this.utilityService.removeLocalStorage("token"),(0,o._)(p))))}requestFirebaseToken(p){var E=this;return(0,e.Z)(function*(){return new Promise(function(){var b=(0,e.Z)(function*(I){if(!p)return console.log("%c Device not registered because of missing deviceId ","background-color: red; color: #fff"),I(!0);E.deviceId=Number(p);const L=yield E.push.requestPermission();if(L){const D={Device:{}};return D.Device[E.deviceId]={registrationKey:L},new Promise(F=>{E.cs.dynamicUpdate(D).pipe((0,l.q)(1)).subscribe(P=>{E.push.listen(),F(!0),I(!0)})})}return I(!0)});return function(I){return b.apply(this,arguments)}}())})()}checkLoginAndRedirect(p){const E=p||this.utilityService.getLocalStorage("token");if(E){const b=this.jwtHelper.decodeToken(E),I=this.utilityService.getDeviceType();sessionStorage.setItem("headerParams",JSON.stringify({roleId:b.roleId,applicationId:b.applicationId,organizationId:b.organizationId,officeId:b.officeId,deviceType:I})),null!=b.personId?(this.loginRedirect.isExpired=void 0,this.loginRedirect.type=!0,parseInt(b.expireInDays)<1?(this.loginRedirect.message="./forgot-password",this.loginRedirect.isExpired=!0):this.loginRedirect.message="./"+b.landingPage):(this.loginRedirect.type=!1,this.loginRedirect.message="Invalid Username or Password!!!")}else this.loginRedirect.type=!1,this.loginRedirect.message="Token is null. Please check your connection!!!";return this.loginRedirect}twoFactorAuth(p,E){let b=new s.WM;const I=(new s.LE).set("json",JSON.stringify(p));return b=b.append("Accept","application/json"),b=b.append("Content-Type","angular/auto"),b=b.append("Authorization","Bearer "+E),b=b.append("HeaderParams",JSON.stringify({roleId:0,applicationId:0})),this.ws.postWithOptions(a.XL.settings.apiUrl+"Account/TwoFactorAuth",null,{params:I,headers:b},!0)}handleTwoFactorCode(p,E){let b=new s.WM;const I=(new s.LE).set("json",JSON.stringify(p));return b=b.append("Accept","application/json"),b=b.append("Content-Type","angular/auto"),b=b.append("Authorization","Bearer "+E),b=b.append("HeaderParams",JSON.stringify({roleId:0,applicationId:0})),this.httpClient.post(a.XL.settings.apiUrl+"Account/HandleTwoFactorCode",null,{params:I,headers:b})}getOptionPropertyValue(p,E,b,I,L){const D="Bearer "+L,F=(new s.LE).set("option",p).append("property",E).append("entity",b).append("entityId",I),P=(new s.WM).set("Content-Type","application/json").append("Authorization",D);return this.ws.getWithOptions(a.XL.settings.apiUrl+"Common/OptionPropertyValue",{params:F,headers:P})}static#e=this.\u0275fac=function(E){return new(E||g)(_.LFG(C.F0),_.LFG(R.f),_.LFG(x.t),_.LFG(f.v),_.LFG(k._),_.LFG(s.eN))};static#t=this.\u0275prov=_.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})()},62048:(he,y,i)=>{"use strict";i.d(y,{l:()=>l});var e=i(65619),n=i(7110),o=i(65879),a=i(6738);let l=(()=>{class u{constructor(s){this.webApiService=s,this.loading=!1,this.nextBtnDisable=!0,this.prevBtnHide=!0,this.isValidWCCode=!1,this.isValidWCCodeNode=!1,this.isValidWCCodeRate=!1,this.basePath=n.XL.settings.apiUrl,this.onOfficeClicked=new e.X({}),this.wCCodeData=new e.X({}),this.onOrganizationSelected=new e.X({}),this.onOfficeSelected=new e.X({})}getTenantOrganizationList(s,A){return this.webApiService.get(this.basePath+"Common/OrganizationList",{personId:s,includeSelectedOnly:A},null)}getCorporateStaff(s){return this.webApiService.get(this.basePath+"Admin/CorporateStaff",{json:s},null)}insertOrganization(s){return this.webApiService.post(this.basePath+"Organization/Organization",{json:JSON.stringify(s)},null,"Organization added successfully")}getListItem(s){return this.webApiService.get(this.basePath+"Admin/ListItem",{json:s},null)}getTransactionCodes(s,A){return this.webApiService.post(this.basePath+"Admin/GetTransactionCodes",{json:s},null)}checkTransactionCode(s){return this.webApiService.get(this.basePath+"Admin/TransactionCodeCheck",{json:s},null)}insertTransactionCode(s){return this.webApiService.post(this.basePath+"Admin/TransactionCodes",{json:s},null,null)}updateTransactionCodeNodes(s){return this.webApiService.post(this.basePath+"Admin/UpdateTransactionCodeNodes",{json:s},null,null)}insertOfficeStaff(s,A){return this.webApiService.post(this.basePath+"Person/NewPerson",{json:s,entity:A},null,"Office Staff added successfully")}getMapping(s,A){return this.webApiService.get(this.basePath+"Admin/Mapping",{json:s,refresh:A},null)}getMappingType(s,A){return this.webApiService.get(this.basePath+"Admin/MappingType",{json:s,refresh:A},null)}getMappingData(s,A){return this.webApiService.get(this.basePath+"Admin/MappingData",{json:s,refresh:A},null)}mappingTypeTsk(s,A){return this.webApiService.post(this.basePath+"Admin/MappingTypeTsk",{json:s,refresh:A},null)}deleteMappingType(s,A){return this.webApiService.post(this.basePath+"Admin/MappingTypeDel",{json:s,refresh:A},null)}mappingTsk(s,A){return this.webApiService.post(this.basePath+"Admin/MappingTsk",{json:s,refresh:A},null)}mappingDataTsk(s,A){return this.webApiService.post(this.basePath+"Admin/MappingDataTsk",{json:s,refresh:A},null)}deleteMapping(s,A){return this.webApiService.post(this.basePath+"Admin/MappingDel",{json:s,refresh:A},null)}getMapDeductionContribution(s,A){return this.webApiService.get(this.basePath+"Admin/MapDeductionContribution",{json:s,refresh:A},null)}mapDeductionContributionTsk(s,A){return this.webApiService.post(this.basePath+"Admin/MapDeductionContributionTsk",{json:s,refresh:A},null)}getSkillList(){return this.webApiService.get(this.basePath+"Admin/SkillList",null,null,!0)}static#e=this.\u0275fac=function(A){return new(A||u)(o.LFG(a.f))};static#t=this.\u0275prov=o.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})()},95023:(he,y,i)=>{"use strict";i.d(y,{H:()=>s});var e=i(7110),n=i(22096),o=i(37398),a=i(65879),l=i(6738),u=i(74187),d=i(710);let s=(()=>{class A{constructor(C,R,x){this.webApiService=C,this.us=R,this.cs=x,this.params={},this.basePath=e.XL.settings.apiUrl+"Exception/"}save(){return"edit"==this.sharedData.formType.toLowerCase()?(0,n.of)(!0):(this.params=this.sharedData.exceptionModel,this.params.nodeIdList=this.sharedData.nodeIds,this.cs.insertException(this.params).pipe((0,o.U)(C=>(this.sharedData.exception={exception:C,formType:"Add"},!0))))}inputOutputException(C){return this.webApiService.post(this.basePath+"InputOutputException",{json:JSON.stringify(C)})}static#e=this.\u0275fac=function(R){return new(R||A)(a.LFG(l.f),a.LFG(u.t),a.LFG(d.v))};static#t=this.\u0275prov=a.Yz7({token:A,factory:A.\u0275fac})}return A})()},60045:(he,y,i)=>{"use strict";i.d(y,{R:()=>I});var e=i(96814),n=i(20180),o=i(84187),a=i(42400),l=i(30617),u=i(94505),d=i(38034),s=i(66878),A=i(48979),_=i(47805),C=i(8379),R=i(13868),x=i(12430),f=i(89515),k=i(45754),w=i(48424),g=i(51838),M=i(30481),p=i(60682),E=i(64034),b=i(65879);let I=(()=>{class L{static#e=this.\u0275fac=function(P){return new(P||L)};static#t=this.\u0275mod=b.oAB({type:L});static#n=this.\u0275inj=b.cJS({imports:[e.ez,n.L,o.wp,a.x4,l.Ps,u.yu,d.FA,s.yj,A.i,_.x,C.Q,R.g,x.L,f.aw,k.Zh,w.uw,g.Wd,A.i,M.AA,p.X,E.w]})}return L})()},41476:(he,y,i)=>{"use strict";i.d(y,{l:()=>u});var e=i(65619),n=i(22096),o=i(7110),a=i(65879),l=i(6738);let u=(()=>{class d{constructor(A){this.ws=A,this.basePath=o.XL.settings.apiUrl,this.onOrganizationSelected=new e.X({}),this.selectedOrganizationId=new e.X({})}getDirectory(A,_){return this.ws.get(this.basePath+"Common/Directory",{json:A,refresh:_},null)}insertOffice(A){return this.ws.post(this.basePath+"Office/Office",{json:A},null,"Office added successfully.")}getParentOffice(A){return this.ws.get(this.basePath+"Office/ParentOffice",{json:A},null)}getOffice(A){return this.ws.get(this.basePath+"Office/Office",{json:A},null,!0)}getPersonOffice(A){return this.ws.get(this.basePath+"Office/PersonOffice",{json:A},null)}entityOfficeUpdateTsk(A){return this.ws.post(this.basePath+"Office/EntityOfficeUpdateTsk",{json:A},null,null)}save(){return(0,n.of)(!0)}getOfficeList(A){return this.ws.get(this.basePath+"Office/Office",{json:A},null,!0)}static#e=this.\u0275fac=function(_){return new(_||d)(a.LFG(l.f))};static#t=this.\u0275prov=a.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})()},98447:(he,y,i)=>{"use strict";i.d(y,{P:()=>ge});var e=i(78645),n=i(9315),o=i(22096),a=i(56223),l=i(66878),u=i(68658),d=i(59773),s=i(37398),A=i(34938),_=i(65879),C=i(64190),R=i(86853),x=i(41476),f=i(710),k=i(74187),w=i(61371),g=i(96814),M=i(83814),p=i(27509),E=i(84187),b=i(42400),I=i(82012),L=i(65139),D=i(27688),F=i(89515);const P=["formElement"],O=["sbtn"];function U(Ce,Te){if(1&Ce&&(_.TgZ(0,"span",49),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&Ce){const De=_.oxw();_.xp6(1),_.hij("",_.lcZ(2,1,De.validationFEINError)," ")}}function V(Ce,Te){if(1&Ce&&(_.TgZ(0,"div",50),_._uU(1),_.qZA()),2&Ce){const De=_.oxw();_.xp6(1),_.Oqu(De.aliasValidationMessage)}}const K=function(){return["resource"]};function X(Ce,Te){if(1&Ce){const De=_.EpF();_.TgZ(0,"div",51)(1,"zen-select",52),_.NdJ("ngModelChange",function(xe){_.CHM(De);const Oe=_.oxw();return _.KtG(Oe.orgModel.statusListItemId=xe)}),_.ALo(2,"translate"),_.qZA()()}if(2&Ce){const De=_.oxw();_.Q6J("ngModelGroup",De.orgModel.organizationId),_.xp6(1),_.s9C("placeholder",_.lcZ(2,5,"status")),_.Q6J("ngModel",De.orgModel.statusListItemId)("data",De.statusList)("columns",_.DdM(7,K))}}function me(Ce,Te){if(1&Ce){const De=_.EpF();_.TgZ(0,"div",7)(1,"mat-form-field",12)(2,"input",53),_.NdJ("ngModelChange",function(xe){_.CHM(De);const Oe=_.oxw();return _.KtG(Oe.orgModel.office=xe)}),_.ALo(3,"translate"),_.qZA()()()}if(2&Ce){const De=_.oxw();_.xp6(2),_.s9C("placeholder",_.lcZ(3,2,"defaultOffice")),_.Q6J("ngModel",De.orgModel.office)}}const J=function(){return["office"]};function Q(Ce,Te){if(1&Ce){const De=_.EpF();_.TgZ(0,"zen-select",54),_.NdJ("ngModelChange",function(xe){_.CHM(De);const Oe=_.oxw();return _.KtG(Oe.orgModel.officeId=xe)}),_.ALo(1,"translate"),_.qZA()}if(2&Ce){const De=_.oxw();_.s9C("placeholder",_.lcZ(1,4,"defaultOffice")),_.Q6J("ngModel",De.orgModel.officeId)("data",De.officeList)("columns",_.DdM(6,J))}}const re=function(){return{standalone:!0}},de=function(){return["alias","company"]};function te(Ce,Te){if(1&Ce){const De=_.EpF();_.TgZ(0,"div",19)(1,"div",41)(2,"zen-select",55),_.NdJ("ngModelChange",function(xe){_.CHM(De);const Oe=_.oxw();return _.KtG(Oe.orgModel.backOfficeTenantOrganizationId=xe)})("selectEvent",function(xe){_.CHM(De);const Oe=_.oxw();return _.KtG(Oe.onBackOfficeTenantOrganizationChange(xe))}),_.ALo(3,"translate"),_.qZA()(),_.TgZ(4,"div",56)(5,"div",6)(6,"div",7)(7,"zen-select",57),_.NdJ("ngModelChange",function(xe){_.CHM(De);const Oe=_.oxw();return _.KtG(Oe.orgModel.backOfficeId=xe)}),_.ALo(8,"translate"),_.qZA()()()()()}if(2&Ce){const De=_.oxw();_.xp6(2),_.s9C("placeholder",_.lcZ(3,10,"backOfficeTenantOrganization")),_.Q6J("ngModel",De.orgModel.backOfficeTenantOrganizationId)("ngModelOptions",_.DdM(14,re))("data",De.backOfficeTenantOrganizationList)("columns",_.DdM(15,de)),_.xp6(3),_.Q6J("ngModelGroup",De.orgModel.officeId),_.xp6(2),_.s9C("placeholder",_.lcZ(8,12,"backOffice")),_.Q6J("ngModel",De.orgModel.backOfficeId)("data",De.backOfficeList)("columns",_.DdM(16,J))}}function j(Ce,Te){if(1&Ce){const De=_.EpF();_.TgZ(0,"div",19)(1,"zen-select",58),_.NdJ("ngModelChange",function(xe){_.CHM(De);const Oe=_.oxw();return _.KtG(Oe.orgModel.copyFromOrganizationId=xe)})("selectEvent",function(xe){_.CHM(De);const Oe=_.oxw();return _.KtG(Oe.onCopyFromOrganizationChange(xe))}),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"zen-select",59),_.NdJ("ngModelChange",function(xe){_.CHM(De);const Oe=_.oxw();return _.KtG(Oe.orgModel.copyFromOfficeId=xe)}),_.ALo(4,"translate"),_.qZA()()}if(2&Ce){const De=_.oxw();_.xp6(1),_.s9C("placeholder",_.lcZ(2,8,"copySettingsFromTenantOrganization")),_.Q6J("ngModel",De.orgModel.copyFromOrganizationId)("data",De.copyFromOrganizationList)("columns",_.DdM(12,de)),_.xp6(2),_.s9C("placeholder",_.lcZ(4,10,"copySettingsFromOffice")),_.Q6J("ngModel",De.orgModel.copyFromOfficeId)("data",De.copyFromOfficeList)("columns",_.DdM(13,J))}}const H=function(){return["countryCode","country"]};function z(Ce,Te){if(1&Ce){const De=_.EpF();_.TgZ(0,"div",60)(1,"div",39)(2,"div",41)(3,"zen-select",61),_.NdJ("ngModelChange",function(xe){_.CHM(De);const Oe=_.oxw();return _.KtG(Oe.orgModel.countryId=xe)})("selectEvent",function(xe){_.CHM(De);const Oe=_.oxw();return _.KtG(Oe.onCountryChange(xe))}),_.ALo(4,"translate"),_.qZA()()()()}if(2&Ce){const De=_.oxw();_.xp6(1),_.Q6J("ngModelGroup",De.orgModel.stateId),_.xp6(2),_.s9C("placeholder",_.lcZ(4,7,"country")),_.Q6J("ngModel",De.orgModel.countryId)("ngModelOptions",_.DdM(9,re))("autoSelect",!0)("data",De.countryList)("columns",_.DdM(10,H))}}function q(Ce,Te){if(1&Ce&&(_.TgZ(0,"div",50),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&Ce){const De=_.oxw();_.xp6(1),_.hij(" ",_.lcZ(2,1,De.address1Validation)," ")}}function se(Ce,Te){if(1&Ce&&(_.TgZ(0,"div",50),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&Ce){const De=_.oxw();_.xp6(1),_.hij(" ",_.lcZ(2,1,De.address2Validation)," ")}}function ne(Ce,Te){if(1&Ce&&(_.TgZ(0,"div",50),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&Ce){const De=_.oxw();_.xp6(1),_.hij(" ",_.lcZ(2,1,De.cityValidation)," ")}}const _e=function(){return["stateCode","state"]};let ge=(()=>{class Ce{get orgCountryCode(){return this._orgCountryCode}constructor(De,fe,xe,Oe,Le,Gt,Ut,An,$n){this.router=De,this.tos=fe,this.os=xe,this.cs=Oe,this.us=Le,this.ps=Gt,this.data=Ut,this.dialogRef=An,this.matDialog=$n,this.orgModel={},this.mode="Add",this.title="Add Organization",this.createAsOrganization=!1,this.countryList=[],this.officeList=[],this.officeTypeList=[],this.disableControl=!1,this.isIncludeInPortal=!0,this.copyFromOrganizationList=[],this.copyFromOfficeList=[],this.showCopyFrom=!1,this.showBackOffice=!1,this.updateContactInformationGrid=!1,this.serviceTypeList=[],this._orgCountryCode="",this.contactInfoList=[],this.validationFEINError="",An.disableClose=!0,this._unsubscribeAll=new e.x}ngOnInit(){this.ps.currentPersonDetail.pipe((0,d.R)(this._unsubscribeAll)).subscribe(De=>{this.currentPersonDetail=De}),this.orgModel={...this.data.orgModel},this.orgModel.debitGLCode=this.orgModel.debitGLCode??"000",this.orgModel.creditGLCode=this.orgModel.creditGLCode??"000",this.mode=this.data.mode,this.title=this.data.title,this.createAsOrganization=this.data.createAsOrganization,this.showCopyFrom=this.data.showCopyFrom,this.officeId=this.currentPersonDetail.officeId,this.setupForm(this.mode)}address1InputChangedEvent(De){this.address1Validation=this.orgModel.address1.length>50?"address1CannotExceed50Characters":""}address2InputChangedEvent(De){this.address2Validation=this.orgModel.address2.length>50?"address2CannotExceed50Characters":""}cityInputChangedEvent(De){this.cityValidation=this.orgModel.city.length>25?"cityCannotExceed25Characters":""}setupForm(De){this.getServiceTypeList(this.currentPersonDetail.officeId,"ServiceType","RequireBackOffice",""),this.getCountryList(),"Add"==this.mode?this.createAsOrganization&&(this.orgModel.office=""):"Edit"==this.mode&&(this.getStatusList("Status",this.currentPersonDetail.officeId,"RelatesTo","TenantOrganization"),this.getOrganizationOffice(),this.getContactInfoList())}getContactInfoList(){this.cs.getContactInformation(JSON.stringify({entity:"tenantorganization",entityId:this.orgModel.organizationId}),!0).pipe((0,d.R)(this._unsubscribeAll)).subscribe(fe=>{this.contactInfoList=fe&&(fe?.totalCount??0)>0?fe.data:[]})}getOrganizationOffice(){this.os.getOffice(JSON.stringify({tenantId:this.orgModel.tenantId,organizationId:this.orgModel.organizationId,callFrom:"Company",action:this.mode})).pipe((0,d.R)(this._unsubscribeAll)).subscribe(fe=>{this.officeList=fe})}oldUnusedBackOFficeAndCopyFunctions(){}getBackOfficeTenantOrganization(){this.tos.getTenantOrganizationList(JSON.stringify({entityAction:"Edit"===this.mode?"TenantOrganizationEdit":"TenantOrganizationAdd",callFor:"BackOfficeTenantOrganization",tenantId:this.orgModel.tenantId,serviceTypeListItemId:this.orgModel.serviceTypeListItemId})).pipe((0,d.R)(this._unsubscribeAll)).subscribe(fe=>{fe&&(this.backOfficeTenantOrganizationList=fe)})}getBackOffice(De){this.os.getOffice(JSON.stringify({tenantId:this.orgModel.tenantId,organizationId:De})).pipe((0,d.R)(this._unsubscribeAll)).subscribe(xe=>{this.backOfficeList=xe})}getCopyFromOrganizationList(){this.tos.getTenantOrganizationList(JSON.stringify({entityAction:"Edit"===this.mode?"TenantOrganizationEdit":"TenantOrganizationAdd",callFor:"CopyFromTenantOrganization",tenantId:this.orgModel.tenantId,serviceTypeListItemId:this.orgModel.serviceTypeListItemId})).pipe((0,d.R)(this._unsubscribeAll)).subscribe(fe=>{fe&&(this.copyFromOrganizationList=fe)})}getCopyFromOfficeList(De,fe){this.os.getOffice(JSON.stringify({tenantId:this.orgModel.tenantId,organizationId:fe})).pipe((0,d.R)(this._unsubscribeAll)).subscribe(Oe=>{Oe&&(this.copyFromOfficeList=Oe)})}getStateListByCountry(De){this.cs.getStateListByOrganization(JSON.stringify({countryId:De})).pipe((0,d.R)(this._unsubscribeAll)).subscribe(xe=>{this.stateList=xe})}getOfficeTypeList(De,fe){this.cs.ListItem(De,fe).pipe((0,d.R)(this._unsubscribeAll)).subscribe(xe=>{this.officeTypeList=xe})}getStatusList(De,fe,xe,Oe){this.cs.ListItemProperty(fe,De,xe,Oe).pipe((0,d.R)(this._unsubscribeAll)).subscribe(Le=>{this.statusList=Le})}getCountryList(){this.cs.getCountry({organizationId:0}).subscribe(fe=>{this.countryList=fe,1==this.countryList.length&&(this.orgModel.countryId=this.countryList[0].countryId,this._orgCountryCode=this.countryList[0].countryCode,this.getStateListByCountry(this.orgModel.countryId))})}getServiceTypeList(De,fe,xe,Oe){this.cs.ListItemProperty(De,fe,xe,Oe).pipe((0,d.R)(this._unsubscribeAll)).subscribe(Le=>{this.serviceTypeList=Le})}getOrganizationObject(De){return{organization:this.orgModel.organization,dBA:this.orgModel.dBA,backOfficeTenantOrganizationId:this.orgModel.backOfficeTenantOrganizationId,backOfficeId:this.orgModel.backOfficeId,copyFromOrganizationId:this.orgModel.copyFromOrganizationId,serviceTypeListItemId:this.orgModel.serviceTypeListItemId,department:this.orgModel.department,alias:this.orgModel.alias,fEIN:this.orgModel.fEIN,nextInvoiceNumber:this.orgModel.nextInvoiceNumber,organizationStatusListItemId:this.orgModel.statusListItemId,addressId:this.createAsOrganization&&this.orgModel.addressId?this.orgModel.addressId:0,address1:this.orgModel.address1,address2:this.orgModel.address2,countryId:this.orgModel.countryId,city:this.orgModel.city,stateId:this.orgModel.stateId,zipCode:this.orgModel.zipCode,phone:this.orgModel.phone,phoneExtension:this.orgModel.phoneExtension,website:this.orgModel.website,debitGLCode:this.orgModel.debitGLCode,creditGLCode:this.orgModel.creditGLCode,parentOrganizationId:0,office:De}}getOfficeObject(){return{office:this.orgModel.office,backOfficeTenantOrganizationId:this.orgModel.backOfficeTenantOrganizationId,backOfficeId:this.orgModel.backOfficeId,copyFromOfficeId:this.orgModel.copyFromOfficeId,createOfficeFrom:"TenantOrganization",officeTypeListItemId:null,officeStatusListItemId:this.orgModel.statusListItemId,addressId:this.createAsOrganization&&this.orgModel.addressId?this.orgModel.addressId:0,address1:this.orgModel.address1,address2:this.orgModel.address2,countryId:this.orgModel.countryId,city:this.orgModel.city,stateId:this.orgModel.stateId,zipCode:this.orgModel.zipCode,phone:this.orgModel.phone,website:this.orgModel.website,parentOfficeId:0,isIncludeInPortal:this.isIncludeInPortal,debitGLCode:this.orgModel.debitGLCode,creditGLCode:this.orgModel.creditGLCode}}onServiceTypeChange(De){"True"===De[0].value?(this.backOfficeList=[],this.backOfficeTenantOrganizationList=[],this.getBackOfficeTenantOrganization(),this.showBackOffice=!0):this.showBackOffice=!1,"Add"===this.mode&&(this.copyFromOfficeList=[],this.copyFromOrganizationList=[],this.getCopyFromOrganizationList())}onCountryChange(De){De.length>0&&(this.getStateListByCountry(De[0].countryId),this._orgCountryCode=De[0].countryCode)}onCopyFromOrganizationChange(De){De.length>0&&this.getCopyFromOfficeList(this.orgModel.tenantId,this.orgModel.copyFromOrganizationId)}onBackOfficeTenantOrganizationChange(De){De.length>0&&this.getBackOffice(De[0].organizationId)}onClickAlias(){this.aliasValidationMessage=""}checkAliasDuplication(){this.aliasValidationMessage="",this.tos.getCheckAlias(JSON.stringify({alias:this.orgModel.alias,organizationId:this.orgModel.organizationId})).pipe((0,d.R)(this._unsubscribeAll)).subscribe(fe=>{this.aliasValidationMessage=fe.message})}close(De){this.us.isFormDirty(De)?this.confirmation():this.dialogRef.close("close")}confirmation(){this.us.openConfirmDialog({headerText:"Pending Changes",confirmationText:"Are you sure you want to discard changes?"}),this.us.confirmDialogAction.pipe((0,d.R)(this._unsubscribeAll)).subscribe(fe=>{"yes"==fe&&(this.dialogRef.close("close"),this.us.closeConfirmDialog())})}activate(){}validate(De){return this.submitBtn.nativeElement.click(),new Promise(fe=>{if(this.organizationForm.valid){if("edit"===this.mode.toLowerCase()){let Oe=-1;null!=this.orgModel.phoneContactInformationId?Oe=this.contactInfoList.findIndex(Le=>Le.contactInformationId!=this.orgModel.phoneContactInformationId&&Le.contactInformationTypeListItem.toLowerCase()===this.orgModel?.contactInformationTypeListItem?.toLowerCase()&&Le.value===this.orgModel.phone):null==this.orgModel.phoneContactInformationId&&(Oe=this.contactInfoList.findIndex(Le=>Le.value===this.orgModel.phone)),-1!==Oe&&(this.us.callSnackBar("Phone number already exists in Contact Information.","warning"),fe(!1))}return this.exceptionTask({exceptionJson:{entity:"TenantOrganization",entityId:this.orgModel.organizationId,exceptionStage:"NewTenantOrganization",organizationName:this.orgModel.organization,organizationId:this.orgModel.organizationId,data:this.orgModel,entityOfficeId:this.orgModel.copyFromOfficeId},dialogLoadType:u.Z.continuous}).then(Oe=>{if(Oe){const Le=[];Le[0]=this.getOfficeObject();const Gt=[];Gt[0]=this.getOrganizationObject(Le),Gt[0].organizationId=this.orgModel.organizationId,this.sharedData.orgParams={tenantId:this.orgModel.tenantId,tenantOrganization:Gt},this.sharedData.createAsOrganization=this.createAsOrganization,fe(!0)}else fe(!1)})}fe(!1)})}exceptionTask(De){return new Promise(fe=>{this.cs.exceptionProcessWithPost(JSON.stringify(De.exceptionJson)).pipe((0,d.R)(this._unsubscribeAll)).subscribe(xe=>{xe?xe&&Object.keys(xe).length>0&&null!=xe.data?(De.exceptionData=xe,this.openExceptionDialog(De).subscribe(Oe=>{fe(Oe)})):xe&&xe.hasOwnProperty("error")?(this.us.callSnackBar("errorInException","error"),fe(!1)):fe("noException"):(this.us.callSnackBar("errorInException","error"),fe(!1))})})}openExceptionDialog(De){const fe=new e.x;return this.matDialog.open(A.x,{data:De,panelClass:"exception-dialog",disableClose:!0}).afterClosed().subscribe(Oe=>fe.next(Oe)),fe.asObservable()}save(){if(!this.organizationForm.valid)return(0,o.of)(!1);if("Edit"==this.mode){const De=this.us.getDirtyValues(this.organizationForm);let fe;if(this.orgModel.company=this.orgModel.organization,this.orgModel.office=this.officeList.find(xe=>xe.officeId==this.orgModel.officeId).office,this.orgModel.status=this.statusList.find(xe=>xe.listItemId==this.orgModel.statusListItemId).listItem,fe=this.orgModel.address2?this.orgModel.address2:" ",this.orgModel.address=this.orgModel.address1+", "+fe+"\n "+this.orgModel.city+", "+this.orgModel.stateCode+", "+this.orgModel.zipCode,this.sharedData.newOrganization=this.orgModel,De&&(De.hasOwnProperty("copyFromOrganizationId")&&delete De.copyFromOrganizationId,De.hasOwnProperty("copyFromOfficeId")&&delete De.copyFromOfficeId,De.hasOwnProperty("backOfficeTenantOrganizationId")&&delete De.backOfficeTenantOrganizationId),De){De&&De.hasOwnProperty("office")&&De.office[this.orgModel.officeId]&&De.office[this.orgModel.officeId].backOfficeId&&(De.organization[this.orgModel.organizationId]={},De.organization[this.orgModel.organizationId].backOfficeId=this.orgModel.backOfficeId);let xe=[];De.hasOwnProperty("contactInformation")&&De.contactInformation.hasOwnProperty("null")&&(De.contactInformation.null.hasOwnProperty("phoneValue")&&(xe.push({entityId:this.orgModel.organizationId,phone:this.orgModel.phone}),delete De.contactInformation.null.phoneValue,this.contactInfoInsert=!0),De.contactInformation.null.hasOwnProperty("websiteValue")&&(xe.push({entityId:this.orgModel.organizationId,website:this.orgModel.website}),delete De.contactInformation.null.websiteValue,this.contactInfoInsert=!0),De.contactInformation.hasOwnProperty("null")&&(delete De.contactInformation.null,Object.keys(De.contactInformation).length<=0&&delete De.contactInformation));let Oe=[];if(De.hasOwnProperty("address")&&De.address.hasOwnProperty("null")){const Le=De.address.null;Le.entityId=this.orgModel.organizationId,Oe.push(Le),delete De.address,this.addressInfoInsert=!0}if(this.addressInfoInsert&&Object.keys(De).length>0){const Le=this.cs.dynamicUpdate(De).pipe((0,s.U)(Ut=>!0)),Gt=this.cs.insertAddress(Oe,"TenantOrganization").pipe((0,s.U)(Ut=>{if(Ut)return!0}));return(0,n.D)([Gt,Le]).pipe((0,s.U)(Ut=>!0))}if(this.addressInfoInsert&&Object.keys(De).length<=0)return this.cs.insertAddress(Oe,"TenantOrganization").pipe((0,s.U)(Le=>{if(Le)return!0}));if(De.hasOwnProperty("contactInformation")&&!De.contactInformation.hasOwnProperty("null")&&(De.contactInformation[this.orgModel.phoneContactInformationId]&&this.orgModel.phone.length>0&&(De.contactInformation[this.orgModel.phoneContactInformationId]={},De.contactInformation[this.orgModel.phoneContactInformationId].value=this.orgModel.phone),De.contactInformation[this.orgModel.websiteContactInformationId]&&this.orgModel.website.length>0?(De.contactInformation[this.orgModel.websiteContactInformationId]={},De.contactInformation[this.orgModel.websiteContactInformationId].value=this.orgModel.website):De.contactInformation[this.orgModel.websiteContactInformationId]&&0===this.orgModel.website.length&&(De.OrganizationCurrent={[this.orgModel.organizationId]:{websiteContactInformationId:null}},delete De.contactInformation[this.orgModel.websiteContactInformationId]),Object.keys(De.contactInformation).length<=0&&delete De.contactInformation),this.contactInfoInsert&&Object.keys(De).length>0){let Le=this.cs.dynamicUpdate(De).pipe((0,s.U)(Ut=>!0)),Gt=this.cs.insertContactInformation(xe,"TenantOrganization").pipe((0,s.U)(Ut=>{if(Ut)return!0}));return(0,n.D)([Gt,Le]).pipe((0,s.U)(Ut=>(this.ps.onPrimaryContactInformationChange.next(!0),!0)))}return this.contactInfoInsert&&Object.keys(De).length<=0?this.cs.insertContactInformation(xe,"TenantOrganization").pipe((0,s.U)(Le=>{if(Le)return this.ps.onPrimaryContactInformationChange.next(!0),!0})):((De.hasOwnProperty("contactInformation")||De.hasOwnProperty("OrganizationCurrent"))&&(this.updateContactInformationGrid=!0),this.cs.dynamicUpdate(De).pipe((0,s.U)(Le=>(this.updateContactInformationGrid&&this.ps.onPrimaryContactInformationChange.next(!0),!0))))}return(0,o.of)(!0)}if("Add"==this.mode){let De;this.sharedData.callDynamicUpdate=!1;const fe=[];fe[0]=this.getOfficeObject();const xe=[];if(xe[0]=this.getOrganizationObject(fe),xe[0].organizationId=this.orgModel.organizationId,this.createAsOrganization&&(this.orgModel.addressId>0||this.orgModel.phoneContactInformationId||this.orgModel.websiteContactInformationId)&&(De=this.us.getDirtyValues(this.organizationForm)),this.createAsOrganization&&De&&(De.hasOwnProperty("copyFromOrganizationId")&&delete De.copyFromOrganizationId,De.hasOwnProperty("copyFromOfficeId")&&delete De.copyFromOfficeId,De.hasOwnProperty("backOfficeTenantOrganizationId")&&delete De.backOfficeTenantOrganizationId,De.hasOwnProperty("contactInformation")&&(!this.orgModel.websiteContactInformationId||!this.orgModel.phoneContactInformationId)&&delete De.contactInformation,De.hasOwnProperty("organization")&&De.organization[this.orgModel.organizationId]&&De.organization[this.orgModel.organizationId].office&&delete De.organization,De.hasOwnProperty("tenantOrganization")&&delete De.tenantOrganization,De.hasOwnProperty("office")&&De.office[this.orgModel.officeId]&&De.office[this.orgModel.officeId].backOfficeId&&(De.organization={},De.organization[this.orgModel.organizationId]={},De.organization[this.orgModel.organizationId].backOfficeId=this.orgModel.backOfficeId)),this.createAsOrganization&&this.orgModel.addressId>0){const Le=this.orgModel.organizationId;xe.forEach(function(Gt){Gt.organizationId=Le,delete Gt.address1,delete Gt.address2,delete Gt.addressNote,delete Gt.stateId,delete Gt.state,delete Gt.city,delete Gt.zipCode}),this.sharedData.callDynamicUpdate=!0}if(this.createAsOrganization&&this.orgModel.phoneContactInformationId>0){const Le=this.orgModel.organizationId;xe.forEach(function(Gt){Gt.organizationId=Le,delete Gt.phone}),this.sharedData.callDynamicUpdate=!0,De&&De.hasOwnProperty("contactInformation")&&De.contactInformation[this.orgModel.phoneContactInformationId]&&(De.contactInformation[this.orgModel.phoneContactInformationId]={},De.contactInformation[this.orgModel.phoneContactInformationId].value=this.orgModel.phone)}if(this.createAsOrganization&&this.orgModel.websiteContactInformationId>0){const Le=this.orgModel.organizationId;xe.forEach(function(Gt){Gt.organizationId=Le,delete Gt.website}),this.sharedData.callDynamicUpdate=!0,De&&De.hasOwnProperty("contactInformation")&&De.contactInformation[this.orgModel.websiteContactInformationId]&&(De.contactInformation[this.orgModel.websiteContactInformationId]={},De.contactInformation[this.orgModel.websiteContactInformationId].value=this.orgModel.website)}this.sharedData.callDynamicUpdate&&De&&(this.sharedData.dv=De);const Oe={tenantId:this.orgModel.tenantId,tenantOrganization:xe};if(this.standAlone){if(this.sharedData.callDynamicUpdate&&this.sharedData.dv){const Le=this.tos.insertOrganization(Oe).pipe((0,s.U)(Ut=>(this.dialogRef.close({newOrganization:Ut.data[0]}),!0))),Gt=this.cs.dynamicUpdate(this.sharedData.dv).pipe((0,s.U)(Ut=>!0));return(0,n.D)([Le,Gt]).pipe((0,s.U)(Ut=>!0))}return this.tos.insertOrganization(Oe).pipe((0,s.U)(Le=>(this.dialogRef.close({newOrganization:Le.data[0]}),!0)))}return this.sharedData.orgParams=Oe,this.sharedData.createAsOrganization=this.createAsOrganization,(0,o.of)(!0)}}validateFEIN(De){this.validationFEINError="",(9!=De.length||""==De)&&(this.validationFEINError="fEINlengthInvalid"),De.match("^[0-9]*$")||(this.validationFEINError="fEINlengthInvalid"),De.length>1&&De.length<10&&De.match("^[0-9]*$")&&(this.orgModel.routingNumber=De)}stepperClose(){return{response:this.us.isFormDirty(this.organizationForm)}}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(fe){return new(fe||Ce)(_.Y36(C.F0),_.Y36(R.N),_.Y36(x.l),_.Y36(f.v),_.Y36(k.t),_.Y36(w.R),_.Y36(l.eJ),_.Y36(l.hV),_.Y36(l.on))};static#t=this.\u0275cmp=_.Xpm({type:Ce,selectors:[["tenant-organization-form"]],viewQuery:function(fe,xe){if(1&fe&&(_.Gf(a.F,7),_.Gf(P,7),_.Gf(O,7)),2&fe){let Oe;_.iGM(Oe=_.CRH())&&(xe.organizationForm=Oe.first),_.iGM(Oe=_.CRH())&&(xe.formElement=Oe.first),_.iGM(Oe=_.CRH())&&(xe.submitBtn=Oe.first)}},decls:108,vars:106,consts:[["id","organizationForm","name","organizationForm","fxLayout","column",1,"pt-12",3,"keydown.enter"],["formElement","","organizationForm","ngForm"],["fxLayout","column","fxFlex","100",1,"mb-12"],[1,"m-0","p-0"],["fxFlex","1 0 auto","fxLayout","row","fxLayout.lt-sm","column","fxLayoutGap","12px","fxLayoutGap.xs","0"],["ngModelGroup","organization","fxFlex","25"],[3,"ngModelGroup"],["fxFlex","100"],["matInput","","zen-validator","organization.organization","name","organization","required","",3,"placeholder","ngModel","ngModelChange"],["ngModelGroup","tenantOrganization","fxFlex","75"],["fxLayout.lt-sm","column",3,"ngModelGroup"],["fxFlex","33","fxFlex.lt-sm","100%",1,"mr-12"],[1,"w-100-p"],["matInput","","name","dBA",3,"placeholder","ngModel","ngModelChange"],["matInput","","zen-validator","organization.fEIN","name","fEIN",3,"placeholder","ngModel","mask","ngModelChange","blur"],["class","error",4,"ngIf"],["fxFlex","33","fxFlex.lt-sm","100%"],["matInput","","zen-validator","organization.alias","name","alias","required","",3,"placeholder","ngModel","blur","click","ngModelChange"],["class","red-fg",4,"ngIf"],["fxFlex","1 0 auto","fxLayout","row","fxLayout.xs","column","fxLayoutGap","12px","fxLayoutGap.xs","0"],["ngModelGroup","tenantOrganization",3,"fxFlex"],["fxFlex","50","class","mr-12",3,"ngModelGroup",4,"ngIf"],[3,"ngModelGroup","fxFlex"],["nameField","resource","valueField","listItemId","name","serviceTypeListItemId","required","",1,"no-padding-head","chip-black","overflow-hidden",3,"placeholder","ngModel","data","columns","ngModelChange","selectEvent"],["fxFlex","100",4,"ngIf","ngIfElse"],["officeSelect",""],["fxFlex","100",1,"mr-4"],["matInput","","zen-validator","organization.nextInvoiceNumber","mask","0000000000","name","nextInvoiceNumber","required","",3,"placeholder","ngModel","ngModelChange"],["ngModelGroup","tenantOrganization","fxLayout","row","fxLayout.xs","column","fxLayoutGap","12px","fxLayoutGap.xs","0"],["fxFlex","",3,"ngModelGroup"],["matInput","","maxlength","25","name","debitGLCode","required","",3,"placeholder","ngModel","ngModelChange"],["matInput","","maxlength","25","name","creditGLCode","required","",3,"placeholder","ngModel","ngModelChange"],["fxFlex","1 0 auto","fxLayout","row","fxLayout.xs","column","fxLayoutGap","12px","fxLayoutGap.xs","0",4,"ngIf"],["ngModelGroup","contactInformation","fxFlex",""],["matInput","","zen-validator","organization.phone","name","phoneValue","required","",3,"placeholder","ngModel","mask","ngModelChange"],["matInput","","mask","00000","zen-validator","organization.phoneExtension","name","phoneExtension",3,"placeholder","ngModel","ngModelChange"],["matInput","","zen-validator","organization.website","name","websiteValue",3,"placeholder","ngModel","ngModelChange"],["ngModelGroup","state",4,"ngIf"],["ngModelGroup","address"],["fxFlex","1 0 auto","fxLayout","row","fxLayout.xs","column","fxLayoutGap","12px","fxLayoutGap.xs","0",3,"ngModelGroup"],["fxFlex","","fxLayout","column"],["fxFlex",""],["matInput","","zen-validator","organization.address1","name","address1","required","",3,"placeholder","ngModel","ngModelChange"],["matInput","","name","address2","zen-validator","organization.address2",3,"placeholder","ngModel","ngModelChange"],["matInput","","zen-validator","organization.city","name","city","required","",3,"placeholder","ngModel","ngModelChange"],["nameField","stateCode","valueField","stateId","name","stateId","required","",1,"no-padding-head","chip-black","overflow-hidden",3,"placeholder","ngModel","data","columns","ngModelChange"],["matInput","","zen-validator","organization.zipCode","name","zipCode","required","",3,"placeholder","ngModel","mask","ngModelChange"],["fxHide","","type","submit"],["sbtn",""],[1,"error"],[1,"red-fg"],["fxFlex","50",1,"mr-12",3,"ngModelGroup"],["nameField","resource","valueField","listItemId","name","statusListItemId","required","",1,"no-padding-head","chip-black","overflow-hidden",3,"placeholder","ngModel","data","columns","ngModelChange"],["matInput","","zen-validator","organization.office","name","office","required","",3,"placeholder","ngModel","ngModelChange"],["nameField","office","valueField","officeId","name","officeId","required","",1,"no-padding-head","chip-black","overflow-hidden",3,"placeholder","ngModel","data","columns","ngModelChange"],["nameField","organization","valueField","organizationId","name","backOfficeTenantOrganizationId","panelClass","zen-select-md","required","",1,"no-padding-head","chip-black","overflow-hidden",3,"placeholder","ngModel","ngModelOptions","data","columns","ngModelChange","selectEvent"],["ngModelGroup","office","fxFlex",""],["nameField","office","valueField","officeId","name","backOfficeId","required","",1,"no-padding-head","chip-black","overflow-hidden",3,"placeholder","ngModel","data","columns","ngModelChange"],["nameField","organization","valueField","organizationId","name","copyFromOrganizationId","panelClass","zen-select-md","required","",1,"no-padding-head","chip-black","overflow-hidden",3,"placeholder","ngModel","data","columns","ngModelChange","selectEvent"],["nameField","office","valueField","officeId","name","copyFromOfficeId","required","",1,"no-padding-head","chip-black","overflow-hidden",3,"placeholder","ngModel","data","columns","ngModelChange"],["ngModelGroup","state"],["nameField","country","valueField","countryId","name","countryId","required","",1,"no-padding-head","chip-black","overflow-hidden",3,"placeholder","ngModel","ngModelOptions","autoSelect","data","columns","ngModelChange","selectEvent"]],template:function(fe,xe){if(1&fe&&(_.TgZ(0,"form",0,1),_.NdJ("keydown.enter",function(Le){return Le.preventDefault()}),_.TgZ(3,"fieldset",2)(4,"legend")(5,"p",3),_._uU(6,"Company Info"),_.qZA()(),_.TgZ(7,"div",4)(8,"div",5)(9,"div",6)(10,"mat-form-field",7)(11,"input",8),_.NdJ("ngModelChange",function(Le){return xe.orgModel.organization=Le}),_.ALo(12,"translate"),_.qZA()()()(),_.TgZ(13,"div",9)(14,"div",10)(15,"div",11)(16,"mat-form-field",12)(17,"input",13),_.NdJ("ngModelChange",function(Le){return xe.orgModel.dBA=Le}),_.ALo(18,"translate"),_.qZA()()(),_.TgZ(19,"div",11)(20,"mat-form-field",12)(21,"input",14),_.NdJ("ngModelChange",function(Le){return xe.orgModel.fEIN=Le})("blur",function(){return xe.validateFEIN(xe.orgModel.fEIN)}),_.ALo(22,"translate"),_.ALo(23,"translate"),_.qZA(),_.YNc(24,U,3,3,"span",15),_.qZA()(),_.TgZ(25,"div",16)(26,"mat-form-field",12)(27,"input",17),_.NdJ("blur",function(){return xe.checkAliasDuplication()})("click",function(){return xe.onClickAlias()})("ngModelChange",function(Le){return xe.orgModel.alias=Le}),_.ALo(28,"translate"),_.qZA()(),_.YNc(29,V,2,1,"div",18),_.qZA()()()(),_.TgZ(30,"div",19)(31,"div",20),_.YNc(32,X,3,8,"div",21),_.TgZ(33,"div",22)(34,"zen-select",23),_.NdJ("ngModelChange",function(Le){return xe.orgModel.serviceTypeListItemId=Le})("selectEvent",function(Le){return xe.onServiceTypeChange(Le)}),_.ALo(35,"translate"),_.qZA()()(),_.TgZ(36,"div",20)(37,"div",6),_.YNc(38,me,4,4,"div",24),_.YNc(39,Q,2,7,"ng-template",null,25,_.W1O),_.qZA()(),_.TgZ(41,"div",20)(42,"div",6)(43,"div",26)(44,"mat-form-field",12)(45,"input",27),_.NdJ("ngModelChange",function(Le){return xe.orgModel.nextInvoiceNumber=Le}),_.ALo(46,"translate"),_.qZA()()()()()(),_.TgZ(47,"div",28)(48,"div",29)(49,"mat-form-field",12)(50,"input",30),_.NdJ("ngModelChange",function(Le){return xe.orgModel.debitGLCode=Le}),_.ALo(51,"translate"),_.qZA()()(),_.TgZ(52,"div",29)(53,"mat-form-field",12)(54,"input",31),_.NdJ("ngModelChange",function(Le){return xe.orgModel.creditGLCode=Le}),_.ALo(55,"translate"),_.qZA()()()(),_.YNc(56,te,9,17,"div",32),_.YNc(57,j,5,14,"div",32),_.TgZ(58,"div",19)(59,"div",33)(60,"div",6)(61,"mat-form-field",7)(62,"input",34),_.NdJ("ngModelChange",function(Le){return xe.orgModel.phone=Le}),_.ALo(63,"translate"),_.ALo(64,"translate"),_.qZA()()()(),_.TgZ(65,"div",33)(66,"div",6)(67,"mat-form-field",7)(68,"input",35),_.NdJ("ngModelChange",function(Le){return xe.orgModel.phoneExtension=Le}),_.ALo(69,"translate"),_.qZA()()()(),_.TgZ(70,"div",33)(71,"div",6)(72,"mat-form-field",7)(73,"input",36),_.NdJ("ngModelChange",function(Le){return xe.orgModel.website=Le}),_.ALo(74,"translate"),_.qZA()()()()()(),_.TgZ(75,"fieldset",2)(76,"legend")(77,"p",3),_._uU(78,"Address Info"),_.qZA()(),_.YNc(79,z,5,11,"div",37),_.TgZ(80,"div",38)(81,"div",39)(82,"div",40)(83,"mat-form-field",41)(84,"input",42),_.NdJ("ngModelChange",function(Le){return xe.orgModel.address1=Le})("ngModelChange",function(Le){return xe.address1InputChangedEvent(Le)}),_.ALo(85,"translate"),_.qZA()(),_.YNc(86,q,3,3,"div",18),_.qZA(),_.TgZ(87,"div",40)(88,"mat-form-field",41)(89,"input",43),_.NdJ("ngModelChange",function(Le){return xe.orgModel.address2=Le})("ngModelChange",function(Le){return xe.address2InputChangedEvent(Le)}),_.ALo(90,"translate"),_.qZA()(),_.YNc(91,se,3,3,"div",18),_.qZA()()(),_.TgZ(92,"div",38)(93,"div",39)(94,"div",40)(95,"mat-form-field",41)(96,"input",44),_.NdJ("ngModelChange",function(Le){return xe.orgModel.city=Le})("ngModelChange",function(Le){return xe.cityInputChangedEvent(Le)}),_.ALo(97,"translate"),_.qZA()(),_.YNc(98,ne,3,3,"div",18),_.qZA(),_.TgZ(99,"div",41)(100,"zen-select",45),_.NdJ("ngModelChange",function(Le){return xe.orgModel.stateId=Le}),_.ALo(101,"translate"),_.qZA()(),_.TgZ(102,"mat-form-field",41)(103,"input",46),_.NdJ("ngModelChange",function(Le){return xe.orgModel.zipCode=Le}),_.ALo(104,"translate"),_.ALo(105,"translate"),_.qZA()()()()(),_._UZ(106,"button",47,48),_.qZA()),2&fe){const Oe=_.MAs(40);let Le;_.xp6(9),_.Q6J("ngModelGroup",xe.orgModel.organizationId),_.xp6(2),_.s9C("placeholder",_.lcZ(12,66,"company")),_.Q6J("ngModel",xe.orgModel.organization),_.xp6(3),_.Q6J("ngModelGroup",xe.orgModel.organizationId),_.xp6(3),_.s9C("placeholder",_.lcZ(18,68,"doingBusinessAs")),_.Q6J("ngModel",xe.orgModel.dBA),_.xp6(4),_.s9C("placeholder",_.lcZ(22,70,"fEIN")),_.s9C("mask",_.lcZ(23,72,"fEINMaskValue")),_.Q6J("ngModel",xe.orgModel.fEIN),_.xp6(3),_.Q6J("ngIf",null!==(Le=xe.validationFEINError)&&void 0!==Le&&Le),_.xp6(3),_.s9C("placeholder",_.lcZ(28,74,"alias")),_.Q6J("ngModel",xe.orgModel.alias),_.xp6(2),_.Q6J("ngIf",xe.aliasValidationMessage),_.xp6(2),_.Q6J("fxFlex",40),_.xp6(1),_.Q6J("ngIf","Edit"==xe.mode),_.xp6(1),_.Q6J("ngModelGroup",xe.orgModel.organizationId)("fxFlex","Edit"==xe.mode?50:100),_.xp6(1),_.s9C("placeholder",_.lcZ(35,76,"serviceType")),_.Q6J("ngModel",xe.orgModel.serviceTypeListItemId)("data",xe.serviceTypeList)("columns",_.DdM(104,K)),_.xp6(2),_.Q6J("fxFlex",40),_.xp6(1),_.Q6J("ngModelGroup",xe.orgModel.organizationId),_.xp6(1),_.Q6J("ngIf","Add"==xe.mode)("ngIfElse",Oe),_.xp6(3),_.Q6J("fxFlex",20),_.xp6(1),_.Q6J("ngModelGroup",xe.orgModel.organizationId),_.xp6(3),_.s9C("placeholder",_.lcZ(46,78,"nextInvoiceNumber")),_.Q6J("ngModel",xe.orgModel.nextInvoiceNumber),_.xp6(3),_.Q6J("ngModelGroup",xe.orgModel.organizationId),_.xp6(2),_.s9C("placeholder",_.lcZ(51,80,"debitGLCode")),_.Q6J("ngModel",xe.orgModel.debitGLCode),_.xp6(2),_.Q6J("ngModelGroup",xe.orgModel.organizationId),_.xp6(2),_.s9C("placeholder",_.lcZ(55,82,"creditGLCode")),_.Q6J("ngModel",xe.orgModel.creditGLCode),_.xp6(2),_.Q6J("ngIf","Add"==xe.mode&&xe.showBackOffice),_.xp6(1),_.Q6J("ngIf","Add"==xe.mode),_.xp6(3),_.Q6J("ngModelGroup",xe.orgModel.phoneContactInformationId),_.xp6(2),_.s9C("placeholder",_.lcZ(63,84,"phone")),_.s9C("mask",_.lcZ(64,86,"phoneMaskValue")),_.Q6J("ngModel",xe.orgModel.phone),_.xp6(4),_.Q6J("ngModelGroup",xe.orgModel.phoneContactInformationId),_.xp6(2),_.s9C("placeholder",_.lcZ(69,88,"extension")),_.Q6J("ngModel",xe.orgModel.phoneExtension),_.xp6(3),_.Q6J("ngModelGroup",xe.orgModel.websiteContactInformationId),_.xp6(2),_.s9C("placeholder",_.lcZ(74,90,"website")),_.Q6J("ngModel",xe.orgModel.website),_.xp6(6),_.Q6J("ngIf",xe.countryList&&xe.countryList.length>1),_.xp6(2),_.Q6J("ngModelGroup",xe.orgModel.addressId),_.xp6(3),_.s9C("placeholder",_.lcZ(85,92,"address1")),_.Q6J("ngModel",xe.orgModel.address1),_.xp6(2),_.Q6J("ngIf",xe.address1Validation),_.xp6(3),_.s9C("placeholder",_.lcZ(90,94,"address2")),_.Q6J("ngModel",xe.orgModel.address2),_.xp6(2),_.Q6J("ngIf",xe.address1Validation),_.xp6(2),_.Q6J("ngModelGroup",xe.orgModel.addressId),_.xp6(3),_.s9C("placeholder",_.lcZ(97,96,"city")),_.Q6J("ngModel",xe.orgModel.city),_.xp6(2),_.Q6J("ngIf",xe.cityValidation),_.xp6(2),_.s9C("placeholder",_.lcZ(101,98,"state")),_.Q6J("ngModel",xe.orgModel.stateId)("data",xe.stateList)("columns",_.DdM(105,_e)),_.xp6(3),_.s9C("placeholder",_.lcZ(104,100,"zIPCode")),_.s9C("mask",_.lcZ(105,102,"zipCodeMaskValue")),_.Q6J("ngModel",xe.orgModel.zipCode)}},dependencies:[g.O5,a._Y,a.Fj,a.JJ,a.JL,a.Q7,a.nD,a.On,a.Mq,a.F,M.xw,M.SQ,M.yH,p.b8,E.v_,b.k0,I.i,L.p,D.tZ,F.X$],styles:[".tenant-organization-popup .mat-dialog-container{padding:0}.tenant-organization-popup .dialog-content-wrapper{width:65vw;max-height:85vh;display:flex;flex-direction:column}.tenant-organization-popup .dialog-content-wrapper .mat-horizontal-content-container{padding:0;height:55vh}.tenant-organization-popup .error{position:absolute;bottom:-30px;left:0;font-size:12px;color:#f44336}\n"],encapsulation:2})}return Ce})()},68230:(he,y,i)=>{"use strict";i.d(y,{t:()=>R});var e=i(77171),n=i(53790),o=i(13868),a=i(12430),l=i(94505),u=i(42400),d=i(30617),s=i(20180),A=i(84187),_=i(89515),C=i(65879);let R=(()=>{class x{static#e=this.\u0275fac=function(w){return new(w||x)};static#t=this.\u0275mod=C.oAB({type:x});static#n=this.\u0275inj=C.cJS({imports:[s.L,A.wp,u.x4,d.Ps,l.yu,a.L,o.g,n.u,_.aw,e.y]})}return x})()},86853:(he,y,i)=>{"use strict";i.d(y,{N:()=>s});var e=i(65619),n=i(9315),o=i(7110),a=i(37398),l=i(65879),u=i(6738),d=i(710);let s=(()=>{class A{constructor(C,R){this.ws=C,this.cs=R,this.basePath=o.XL.settings.apiUrl,this.onOrganizationSelected=new e.X({})}insertOrganization(C){return this.ws.post(this.basePath+"Organization/Organization",{json:JSON.stringify(C)},null,"Organization added successfully")}getCheckAlias(C){return this.ws.get(this.basePath+"Organization/CheckAlias",{json:C},null)}getPersonTenantOrganization(C){return this.ws.get(this.basePath+"Organization/PersonTenantOrganization",{json:C},null)}getTenantOrganizationList(C){return this.ws.get(this.basePath+"Organization/TenantOrganizationList",{json:C},null,!0)}getTenantOrganizationSnapshot(C){return this.ws.get(this.basePath+"Organization/TenantOrganizationSnapShot",{json:C},null)}save(){if(this.sharedData.dv&&Object.keys(this.sharedData.dv).length>0&&this.sharedData.dv.hasOwnProperty("address")&&this.sharedData.dv.address.hasOwnProperty("null")&&delete this.sharedData.dv.address,this.sharedData.callDynamicUpdate&&Object.keys(this.sharedData.dv).length>0){const C=this.insertOrganization(this.sharedData.orgParams).pipe((0,a.U)(x=>(this.sharedData.newOrganization=x.data[0],!0))),R=this.cs.dynamicUpdate(this.sharedData.dv).pipe((0,a.U)(x=>!0));return(0,n.D)([C,R]).pipe((0,a.U)(x=>!0))}return this.insertOrganization(this.sharedData.orgParams).pipe((0,a.U)(C=>(this.sharedData.newOrganization=C.data[0],!0)))}static#e=this.\u0275fac=function(R){return new(R||A)(l.LFG(u.f),l.LFG(d.v))};static#t=this.\u0275prov=l.Yz7({token:A,factory:A.\u0275fac})}return A})()},7110:(he,y,i)=>{"use strict";i.d(y,{XL:()=>s,hY:()=>_});var e=i(15861),n=i(65879),o=i(20553),a=i(18750),l=i(86204),u=i(69862),d=i(37398);let s=(()=>{class C{constructor(x,f,k){this.deviceService=x,this.push=f,this.httpClient=k}load(){var x=this;return(0,e.Z)(function*(){yield x.loadSettings(),yield x.loadDeviceInfo(),yield x.getLocalIp(),(!C.ipInfo||null==C.ipInfo.ip||""==C.ipInfo.ip)&&(yield x.getLocalIpfy()),C.userTrackingInfo={location:C.ipInfo,specification:C.deviceSpecs}})()}loadSettings(){return(0,e.Z)(function*(){const x=`/${o.N.config}?t=${(new Date).getTime()}`,f=yield fetch(x);if(f.ok){try{C.settings=yield f.json()}catch(k){console.error(`%c Config file '${x}' has no, invalid json. `,"background-color: #f44336; color: #000",k)}C.settings&&!Object.keys(C.settings).length&&console.error(`%c Config file '${x}' has empty json. `,"background-color: #f44336; color: #000")}else console.error(`%c Config file '${x}': ${f.status} - ${f.statusText} `,"background-color: #f44336; color: #000")})()}loadDeviceInfo(){var x=this;return(0,e.Z)(function*(){const f=yield x.generateDeviceUUID(),k=x.deviceService.getDeviceInfo();k.uuid=f,C.deviceSpecs=k})()}getLocalIp(){var x=this;return(0,e.Z)(function*(){try{const f=`${C.settings.apiUrl}Common/GetClientIPAddress`,w={headers:(new u.WM).set("AllowAnonymous","true")};C.ipInfo=yield x.httpClient.get(f,w).pipe((0,d.U)(g=>g)).toPromise()}catch(f){console.log(f)}})()}getLocalIpfy(){var x=this;return(0,e.Z)(function*(){try{const f="https://api.ipify.org/?format=jsonp";C.ipInfo=yield x.httpClient.jsonp(f,"callback").pipe((0,d.U)(k=>k)).toPromise()}catch(f){console.log(f)}})()}generateDeviceUUID(){return(0,e.Z)(function*(){const x=window.navigator,f=window.screen;let k=x.mimeTypes.length.toString();return k+=x.userAgent.replace(/\D+/g,""),k+=x.plugins.length,k+=f.height||"",k+=f.width||"",k+=f.pixelDepth||"",k})()}static#e=this.\u0275fac=function(f){return new(f||C)(n.LFG(a.x0),n.LFG(l._),n.LFG(u.eN))};static#t=this.\u0275prov=n.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})();function A(C){return()=>C.load()}let _=(()=>{class C{static#e=this.\u0275fac=function(f){return new(f||C)};static#t=this.\u0275mod=n.oAB({type:C});static#n=this.\u0275inj=n.cJS({providers:[s,l._,{provide:n.ip1,useFactory:A,deps:[s,a.x0,l._],multi:!0}],imports:[u.JF]})}return C})()},86545:(he,y,i)=>{"use strict";i.d(y,{F:()=>d});var e=i(65619),n=i(7110),o=i(69862),a=i(65879),l=i(6738),u=i(74187);let d=(()=>{class s{constructor(_,C){this.webApiService=_,this.utilityService=C,this.basePath=n.XL.settings.apiUrl,this.registerGuard=!1,this.onApplicantSelected=new e.X({}),this.reloadApplicantDirectory=new e.X({}),this.deviceInfo=n.XL.userTrackingInfo}setRegisterGuard(_){this.registerGuard=_}getRegisterGuard(){return this.registerGuard}applicantRegister(_){_.json.deviceInfo=this.deviceInfo;let C=new o.WM;C=C.append("Content-Type","angular/auto"),C=C.append("enctype","multipart/form-data"),C=C.append("Accept","application/json"),C=C.append("HeaderParams",JSON.stringify({roleId:0,applicationId:0}));let R=new FormData;return null!=_.resumeFile&&R.append("file",_.resumeFile,_.resumeFileName),R.append("json",JSON.stringify(_.json)),this.webApiService.postWithOptions(this.basePath+"Account/ApplicantRegister",R,{headers:C})}static#e=this.\u0275fac=function(C){return new(C||s)(a.LFG(l.f),a.LFG(u.t))};static#t=this.\u0275prov=a.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})()},88374:(he,y,i)=>{"use strict";i.d(y,{B:()=>w});var e=i(96814),n=i(20180),o=i(27105),a=i(89515),l=i(94505),u=i(24678),d=i(38034),s=i(84187),A=i(30617),_=i(42400),C=i(11194),R=i(51838),x=i(48979),f=i(12430),k=i(65879);let w=(()=>{class g{static#e=this.\u0275fac=function(E){return new(E||g)};static#t=this.\u0275mod=k.oAB({type:g});static#n=this.\u0275inj=k.cJS({imports:[e.ez,n.L,o.W,a.aw,A.Ps,l.yu,C.gf,R.Wd,s.wp,u.Uc,d.FA,_.x4,x.i,f.L]})}return g})()},43786:(he,y,i)=>{"use strict";i.d(y,{Y:()=>g});var e=i(7110),n=i(65619),o=i(78645),a=i(37398),l=i(59773),u=i(69862),d=i(58103),s=i(65879),A=i(6738),_=i(710),C=i(74187),R=i(66878),x=i(21587),f=i(18266),k=i(28011),w=i(61371);let g=(()=>{class M{constructor(E,b,I,L,D,F,P,O,U){this.ws=E,this.cs=b,this.us=I,this.dialog=L,this.ecs=D,this.ss=F,this.eds=P,this.ps=O,this.httpClient=U,this.basePath=e.XL.settings.apiUrl,this.directory="assignment",this.canSendSMS=!1,this.validSMSTime=!1,this.onSelectionClear=new n.X(null),this.affiliateId=this.us.getLocalStorage("organizationId"),this._unsubscribeAll=new o.x}ngOnInit(){}sendStartSheetEmail(E){return this.ws.post(this.basePath+"Assignment/EmailStartSheetReport",{json:JSON.stringify(E)})}getAssignmentDetail(E,b){return this.ws.get(this.basePath+"Job/GetAssignmentDetail",{json:JSON.stringify(E),refresh:b})}getDirectoryData(E,b=!1){return this.ws.post(e.XL.settings.apiUrl+"Common/Directory",{Json:JSON.stringify(E),refresh:b},null,null,!0)}attachStartSheetEmail(E){let b=new u.WM;b=b.append("Content-Type","application/json; charset = UTF-8"),b=b.append("Accept","application/octet-stream"),b=b.append("Access-Control-Allow-Origin","*"),b=b.append("Authorization","Bearer "+this.us.getLocalStorage("token"));const I={headers:b,responseType:"blob"};return this.httpClient.post(e.XL.settings.apiUrl+"Assignment/StartSheetReport",{Json:JSON.stringify(E),refresh:!0},I).pipe((0,a.U)(L=>new Blob([L],{type:"application/pdf"})))}getAssignmentDirectory(E,b=!1){return new Promise((I,L)=>{this.getDirectoryData(E,b).subscribe(D=>{D&&I(D)},L)})}sendMessage(E,b){let I=[],L=[];const D="sms"==E?{toastMessage:"pleaseSelectSomeoneToSms",type:"phone number",property:"phone"}:{toastMessage:"pleaseSelectSomeoneToEmail",type:"email address",property:"emailAddress"};if(this.selection.isEmpty())this.us.callSnackBar(D.toastMessage,"warning");else{{let F={selected:this.gridData.data.filter(O=>1==O.isSelect)},P=[];F.selected.forEach(O=>{(0==P.length||-1==P.findIndex(U=>U.personId==O.personId))&&P.push(O)}),L=P}if(I=L.filter(F=>!F[D.property]),I.length>0){if(I.length===L.length)return void this.us.callSnackBar("Selected recipient/s have no "+D.type,"warning");this.us.callSnackBar("There are selections which have no "+D.type+". They will be removed from selection.","warning"),L=L.filter(F=>F[D.property])}if(b&&"assignmentdirectory"==b.toLowerCase()){let F=[];L=L.forEach(P=>{if(0==Object.keys(F).length||!F.find(O=>O?.personId==P.personId))return F.push(P)}),L=F}"email"==E?this.sendEmail(L):"sms"==E&&this.sendSms(L)}}sendEmail(E){const b={option:this.entityData.entity,optionProperty:"EmailProfileId",relatesTo:"Organization",organizationId:JSON.parse(sessionStorage.getItem("headerParams")).organizationId};E.entity="assignment",E.entityId=E[0]?.assignmentId,this.cs.getEmailProfileDetail(JSON.stringify(b),"AllowedEmailProfileList").pipe((0,l.R)(this._unsubscribeAll)).subscribe(I=>{const L=I;I?.length>0?this.ecs.openEmailComposeDialog(E.map(D=>D.emailAddress),null,I.find(D=>!0===D.selected)?I.find(D=>!0===D.selected).emailProfileId:I[0]?.emailProfileId,{isBulk:!0,recipients:E,isTemplateEmail:!0,templateCategory:"EmailTemplate",replaceText:!0,entity:E.entity,entityId:E.entityId,dataItem:E,isMultiple:1!=E.length,senderEmail:L},"email").then(D=>{D&&this.clearSelection()}):this.us.callSnackBar("noEmailProfileSetup","warning")})}clearSelection(){this.selection.clear(),this.gridData.data.map(E=>E.isSelect=!1),this.selected=null,this.onSelectionClear.next({checked:!1})}validateSMSTime(E,b){let I=!1;const L=E.split("-"),D=new Date,F=D.getMinutes();let P=D.getHours();0===P&&(P=24);const O=L[0].split(":");let U=parseInt(O[0]);0==U&&(U=24);const K=U+"."+O[1],X=L[1].split(":");let me=parseInt(X[0]);0==me&&(me=24);const Q=me+"."+X[1],re=P+"."+F;return I=parseFloat(re)>parseFloat(K)&&parseFloat(re)<parseFloat(Q)||"allowMassSMS"==b,I}formatTime(E){const b=E.split("-");return this.timeFormatter(b[0])+" - "+this.timeFormatter(b[1])}timeFormatter(E){return(E=E.toString().match(/^([01]\d|2[0-3])(:)([0-5]\d)(:[0-5]\d)?$/)||[E]).length>1&&((E=E.slice(1))[5]=+E[0]<12?" AM":" PM",E[0]=+E[0]%12||12),E.join("")}sendSms(E){E.forEach(b=>{b.employee&&(b.name=b.employee)}),this.ss.getOrganizationSMSProfile({}).pipe((0,l.R)(this._unsubscribeAll)).subscribe(b=>{if(b){if(E.length>b[0].massTextingDefaultCount)return this.us.callSnackBar("Selected number of recipients exceeds the allowed limit.Please limit the selection to "+b[0].massTextingDefaultCount+".","warning");this.cs.tfOptionSelect("Common","SMSAccess","Person",this.us.getTokenValueByKey("personId")).pipe((0,l.R)(this._unsubscribeAll)).subscribe(I=>{I&&I.length>0&&"readandsend"==I[0].optionValue.toLowerCase()?(this.canSendSMS=!0,this.cs.tfOptionSelect("Common","SMSTime","Organization",this.affiliateId).pipe((0,l.R)(this._unsubscribeAll)).subscribe(L=>{if(L&&L.length>0){if("allowAnyTime"==L[0].optionValue)this.validSMSTime=!0;else{const D=L[0].optionValue.split("(").shift(),F=L[0].optionValue.substring(L[0].optionValue.lastIndexOf("(")+1,L[0].optionValue.lastIndexOf(")"));this.validSMSTime=this.validateSMSTime(D,F)}this.validSMSTime&&this.dialog.open(d.S,{panelClass:"texting-compose-dialog",data:{isDialog:!0,isBulk:!0,isTemplateSMS:!0,recipients:E,templateCategory:"SMSTemplate",relatesToEntity:"assignment",organizationSMSProfiles:b,canSendSMS:this.canSendSMS,validSMSTime:this.validSMSTime}}).afterClosed().subscribe(F=>{F&&this.clearSelection()})}})):(this.canSendSMS=!1,this.us.callSnackBar("youAreNotAllowedToSendSMS","warning"))})}else this.us.callSnackBar("sMSProfileHasNotBeenSetup","warning")})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(b){return new(b||M)(s.LFG(A.f),s.LFG(_.v),s.LFG(C.t),s.LFG(R.on),s.LFG(x.$),s.LFG(f.o),s.LFG(k.a),s.LFG(w.R),s.LFG(u.eN))};static#t=this.\u0275prov=s.Yz7({token:M,factory:M.\u0275fac})}return M})()},11659:(he,y,i)=>{"use strict";i.d(y,{_:()=>g});var e=i(32943),n=i(94505),o=i(84187),a=i(30617),l=i(81274),u=i(30481),d=i(48424),s=i(20180),A=i(98148),_=i(12430),C=i(48979),R=i(15735),x=i(85947),f=i(54428),k=i(67415),w=i(65879);let g=(()=>{class M{static#e=this.\u0275fac=function(b){return new(b||M)};static#t=this.\u0275mod=w.oAB({type:M});static#n=this.\u0275inj=w.cJS({providers:[e.o],imports:[n.yu,o.wp,a.Ps,u.AA,s.L,k.Nx,_.L,R.Fq,d.uw,x.o9,f.e,C.i,A.ef,l.g0]})}return M})()},32943:(he,y,i)=>{"use strict";i.d(y,{o:()=>u});var e=i(78645),n=i(7110),o=i(65879),a=i(69862),l=i(6738);let u=(()=>{class d{constructor(A,_){this._httpClient=A,this.ws=_,this.onEventsUpdated=new e.x,this._calendarServiceUrl=n.XL.settings.apiUrl+"Calendar/"}getDateString(A){var _=String(A.getDate()).padStart(2,"0"),C=String(A.getMonth()+1).padStart(2,"0");return`${A.getFullYear()}-${C}-${_}`}calendarContent(A){return this.ws.get(this._calendarServiceUrl+"CalendarContent",{json:JSON.stringify(A)})}getEvents(A){return this.ws.get(this._calendarServiceUrl+"Event",{json:JSON.stringify(A)})}insertEvent(A){return this.ws.post(this._calendarServiceUrl+"EventAdd",{json:JSON.stringify(A)})}editEvent(A){return this.ws.post(this._calendarServiceUrl+"EventEdit",{json:JSON.stringify(A)})}insertCalendarShareEntity(A){return this.ws.post(this._calendarServiceUrl+"CalendarShareEntity",{json:JSON.stringify(A)})}deleteEvent(A){return this.ws.post(this._calendarServiceUrl+"EventDelete",{json:JSON.stringify(A)})}addToEvent(A){return this.ws.post(this._calendarServiceUrl+"EventCalendarAdd",{json:JSON.stringify(A)})}getCalendarEntityData(A){return this.ws.get(this._calendarServiceUrl+"CalendarEntityData",{json:JSON.stringify(A)})}getEventTaggedEntities(A){return this.ws.get(this._calendarServiceUrl+"EventTaggedEntity",{json:JSON.stringify(A)})}getCalendarShareEntity(A){return this.ws.get(this._calendarServiceUrl+"CalendarShareEntity",{json:JSON.stringify(A)})}getEventNotificationCount(A){return this.ws.get(this._calendarServiceUrl+"EventNotificationCount",{json:JSON.stringify(A)},null,!1,!1,!1)}static#e=this.\u0275fac=function(_){return new(_||d)(o.LFG(a.eN),o.LFG(l.f))};static#t=this.\u0275prov=o.Yz7({token:d,factory:d.\u0275fac})}return d})()},54428:(he,y,i)=>{"use strict";i.d(y,{e:()=>f});var e=i(56223),n=i(94505),o=i(84187),a=i(30617),l=i(42400),u=i(30481),d=i(20180),s=i(89515),A=i(54885),_=i(48979),C=i(12430),R=i(32943),x=i(65879);let f=(()=>{class k{static#e=this.\u0275fac=function(M){return new(M||k)};static#t=this.\u0275mod=x.oAB({type:k});static#n=this.\u0275inj=x.cJS({providers:[R.o],imports:[e.u5,e.UX,d.L,o.wp,A.nf,l.x4,o.wp,a.Ps,C.L,_.i,u.AA,n.yu,s.aw]})}return k})()},24640:(he,y,i)=>{"use strict";i.d(y,{K:()=>u});var e=i(7110),n=i(69862),o=i(65879),a=i(6738),l=i(74187);let u=(()=>{class d{constructor(A,_){this.webApiService=A,this.utilityService=_,this.basePath=e.XL.settings.apiUrl}getContactJobList(A,_){return this.webApiService.get(this.basePath+"Job/ContactJobList",{json:JSON.stringify(A),refresh:_},null,!0)}getContactJobPositionList(A,_){return this.webApiService.get(this.basePath+"Job/ContactJobPositionList",{json:JSON.stringify(A),refresh:_},null,!0)}getContactWorkSiteList(A,_){return this.webApiService.get(this.basePath+"Job/ContactWorkSiteList",{json:JSON.stringify(A),refresh:_},null,!0)}getContactDepartmentList(A,_){return this.webApiService.get(this.basePath+"Job/ContactDepartmentList",{json:JSON.stringify(A),refresh:_},null,!0)}getContactJobs(A,_,C){return this.webApiService.get(this.basePath+"Job/ContactJob",{json:JSON.stringify(A),refresh:_},null,C)}contactJobTask(A,_){let C=new n.WM;C=C.append("Content-Type","angular/auto"),C=C.append("enctype","multipart/form-data"),C=C.append("Accept","application/json"),C=C.append("Authorization","Bearer "+this.utilityService.getLocalStorage("token")),C=C.append("HeaderParams",JSON.stringify({roleId:0,applicationId:0}));let R=new FormData;return null!=A.file&&R.append("file",A.file,A.fileName),R.append("json",JSON.stringify(A,this.utilityService.dateReplacer)),this.webApiService.postWithOptions(this.basePath+"Job/ContactJobTsk",R,{headers:C})}updateJobsOnServiceProfileChange(A){return this.webApiService.post(this.basePath+"Job/UpdateJobsFromServiceProfile",{json:JSON.stringify(A)},null,null)}static#e=this.\u0275fac=function(_){return new(_||d)(o.LFG(a.f),o.LFG(l.t))};static#t=this.\u0275prov=o.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})()},58485:(he,y,i)=>{"use strict";i.d(y,{x:()=>An});var e=i(15861),n=i(78337),o=i(36028),a=i(66878),l=i(59773),u=i(78645),d=i(65879),s=i(70144),A=i(710),_=i(74187),C=i(61371),R=i(29486),x=i(83814),f=i(27509),k=i(96814),w=i(56223),g=i(94505),M=i(30617),p=i(84187),E=i(42400),b=i(81274),I=i(82012),L=i(59834),D=i(26177),F=i(39421),P=i(70378),O=i(15855),U=i(89515);const V=["kendoEditor"],K=["scrollView"],X=["matChip"];function me($n,xn){1&$n&&(d.TgZ(0,"mat-icon",38),d._uU(1,"cancel"),d.qZA())}function J($n,xn){if(1&$n){const mt=d.EpF();d.TgZ(0,"mat-chip",36),d.NdJ("removed",function(){const dn=d.CHM(mt).$implicit;d.oxw();const sn=d.MAs(3),fn=d.oxw();return d.KtG(fn.remove(dn,sn,"to"))}),d._uU(1),d.YNc(2,me,2,0,"mat-icon",37),d.qZA()}if(2&$n){const mt=xn.$implicit,ut=d.oxw(2);d.Q6J("selectable",ut.selectable)("removable",ut.removable),d.xp6(1),d.hij(" ",mt," "),d.xp6(1),d.Q6J("ngIf",ut.removable)}}function Q($n,xn){1&$n&&(d.TgZ(0,"mat-icon",38),d._uU(1,"cancel"),d.qZA())}function re($n,xn){if(1&$n){const mt=d.EpF();d.TgZ(0,"mat-chip",36),d.NdJ("removed",function(){const dn=d.CHM(mt).$implicit;d.oxw();const sn=d.MAs(15),fn=d.oxw();return d.KtG(fn.remove(dn,sn,"cc"))}),d._uU(1),d.YNc(2,Q,2,0,"mat-icon",37),d.qZA()}if(2&$n){const mt=xn.$implicit,ut=d.oxw(2);d.Q6J("selectable",ut.selectable)("removable",ut.removable),d.xp6(1),d.hij(" ",mt," "),d.xp6(1),d.Q6J("ngIf",ut.removable)}}function de($n,xn){1&$n&&(d.TgZ(0,"mat-icon",38),d._uU(1,"cancel"),d.qZA())}function te($n,xn){if(1&$n){const mt=d.EpF();d.TgZ(0,"mat-chip",36),d.NdJ("removed",function(){const dn=d.CHM(mt).$implicit;d.oxw();const sn=d.MAs(21),fn=d.oxw();return d.KtG(fn.remove(dn,sn,"bcc"))}),d._uU(1),d.YNc(2,de,2,0,"mat-icon",37),d.qZA()}if(2&$n){const mt=xn.$implicit,ut=d.oxw(2);d.Q6J("selectable",ut.selectable)("removable",ut.removable),d.xp6(1),d.hij(" ",mt," "),d.xp6(1),d.Q6J("ngIf",ut.removable)}}function j($n,xn){if(1&$n){const mt=d.EpF();d.ynx(0),d.TgZ(1,"mat-form-field",21)(2,"mat-chip-list",22,23),d.NdJ("ngModelChange",function(Wt){d.CHM(mt);const dn=d.oxw();return d.KtG(dn.model.toArray=Wt)}),d.YNc(4,J,3,4,"mat-chip",24),d.TgZ(5,"input",25),d.NdJ("matChipInputTokenEnd",function(Wt){d.CHM(mt);const dn=d.MAs(3),sn=d.oxw();return d.KtG(sn.add(Wt,dn,"to"))}),d.ALo(6,"translate"),d.qZA()(),d.TgZ(7,"mat-hint",26)(8,"div",27),d.NdJ("click",function(){d.CHM(mt);const Wt=d.oxw();return d.KtG(Wt.toggleExtraToFields())}),d.TgZ(9,"span",28),d._uU(10,"Show CC & BCC"),d.qZA(),d.TgZ(11,"span",28),d._uU(12,"Hide CC & BCC"),d.qZA()()()(),d.TgZ(13,"mat-form-field",29)(14,"mat-chip-list",30,31),d.NdJ("ngModelChange",function(Wt){d.CHM(mt);const dn=d.oxw();return d.KtG(dn.model.cc=Wt)}),d.YNc(16,re,3,4,"mat-chip",24),d.TgZ(17,"input",32),d.NdJ("matChipInputTokenEnd",function(Wt){d.CHM(mt);const dn=d.MAs(15),sn=d.oxw();return d.KtG(sn.add(Wt,dn,"cc"))}),d.ALo(18,"translate"),d.qZA()()(),d.TgZ(19,"mat-form-field",29)(20,"mat-chip-list",33,34),d.NdJ("ngModelChange",function(Wt){d.CHM(mt);const dn=d.oxw();return d.KtG(dn.model.bccArray=Wt)}),d.YNc(22,te,3,4,"mat-chip",24),d.TgZ(23,"input",35),d.NdJ("matChipInputTokenEnd",function(Wt){d.CHM(mt);const dn=d.MAs(21),sn=d.oxw();return d.KtG(sn.add(Wt,dn,"bcc"))}),d.ALo(24,"translate"),d.qZA()()(),d.BQk()}if(2&$n){const mt=d.MAs(3),ut=d.MAs(15),Wt=d.MAs(21),dn=d.oxw();d.xp6(2),d.Q6J("ngModel",dn.model.toArray),d.xp6(2),d.Q6J("ngForOf",dn.model.toArray),d.xp6(1),d.s9C("placeholder",d.lcZ(6,22,"to")),d.Q6J("matChipInputFor",mt)("matChipInputSeparatorKeyCodes",dn.separatorKeysCodes)("matChipInputAddOnBlur",dn.addOnBlur),d.xp6(4),d.Q6J("fxShow",!dn.showExtraToFields),d.xp6(2),d.Q6J("fxShow",dn.showExtraToFields),d.xp6(2),d.Q6J("fxShow",dn.showExtraToFields),d.xp6(1),d.Q6J("ngModel",dn.model.cc),d.xp6(2),d.Q6J("ngForOf",dn.model.ccArray),d.xp6(1),d.s9C("placeholder",d.lcZ(18,24,"cc")),d.Q6J("matChipInputFor",ut)("matChipInputSeparatorKeyCodes",dn.separatorKeysCodes)("matChipInputAddOnBlur",dn.addOnBlur),d.xp6(2),d.Q6J("fxShow",dn.showExtraToFields),d.xp6(1),d.Q6J("ngModel",dn.model.bccArray),d.xp6(2),d.Q6J("ngForOf",dn.model.bccArray),d.xp6(1),d.s9C("placeholder",d.lcZ(24,26,"bcc")),d.Q6J("matChipInputFor",Wt)("matChipInputSeparatorKeyCodes",dn.separatorKeysCodes)("matChipInputAddOnBlur",dn.addOnBlur)}}const H=function(){return{color:"white",background:"green",border:"none"}};function z($n,xn){if(1&$n){const mt=d.EpF();d.TgZ(0,"kendo-toolbar-button",71),d.NdJ("click",function(){d.CHM(mt),d.oxw();const Wt=d.MAs(34);return d.KtG(Wt.click())}),d.qZA()}2&$n&&d.Akn(d.DdM(2,H))}const q=function(){return{color:"green",background:"white",border:"none"}};function se($n,xn){if(1&$n&&d._UZ(0,"kendo-toolbar-button",72),2&$n){const mt=d.oxw(2);d.Akn(d.DdM(4,q)),d.Q6J("text",mt.countImageFiles)("look","bare")}}function ne($n,xn){if(1&$n){const mt=d.EpF();d.TgZ(0,"kendo-toolbar-button",73),d.NdJ("click",function(){d.CHM(mt);const Wt=d.oxw(2);return d.KtG(Wt.toggleViewAttachments())}),d.qZA()}if(2&$n){const mt=d.oxw(2);d.Akn(d.DdM(4,q)),d.s9C("text",1==mt.viewAttachment?"Hide attachments":"View attachments"),d.Q6J("look","bare")}}function _e($n,xn){if(1&$n){const mt=d.EpF();d.TgZ(0,"custom-attachment-list",74,75),d.NdJ("onAttachmentCountChangeFn",function(Wt){d.CHM(mt);const dn=d.oxw(2);return d.KtG(dn.onAttachmentCountChangeFn(Wt))}),d.qZA()}if(2&$n){const mt=d.oxw(2);d.Q6J("attachmentList",mt.selectedFiles)}}const ge=function(){return{"font-size":"1.2em"}},Ce=function(){return{standalone:!0}},Te=function(){return{}};function De($n,xn){if(1&$n){const mt=d.EpF();d.TgZ(0,"kendo-editor",39,40),d.NdJ("ngModelChange",function(Wt){d.CHM(mt);const dn=d.oxw();return d.KtG(dn.model.body=Wt)}),d.ALo(2,"translate"),d.TgZ(3,"kendo-toolbar",41)(4,"kendo-toolbar-buttongroup"),d._UZ(5,"kendo-toolbar-button",42)(6,"kendo-toolbar-button",43),d.qZA(),d.TgZ(7,"kendo-toolbar-buttongroup"),d._UZ(8,"kendo-toolbar-button",44)(9,"kendo-toolbar-button",45)(10,"kendo-toolbar-button",46)(11,"kendo-toolbar-button",47),d.qZA(),d.TgZ(12,"kendo-toolbar-buttongroup"),d._UZ(13,"kendo-toolbar-button",48)(14,"kendo-toolbar-button",49),d.qZA(),d.TgZ(15,"kendo-toolbar-buttongroup"),d._UZ(16,"kendo-toolbar-button",50)(17,"kendo-toolbar-button",51)(18,"kendo-toolbar-button",52)(19,"kendo-toolbar-button",53),d.qZA(),d._UZ(20,"kendo-toolbar-dropdownlist",54)(21,"kendo-toolbar-dropdownlist",55)(22,"kendo-toolbar-dropdownlist",56),d.TgZ(23,"kendo-toolbar-buttongroup"),d._UZ(24,"kendo-toolbar-button",57)(25,"kendo-toolbar-button",58)(26,"kendo-toolbar-button",59)(27,"kendo-toolbar-button",60),d.qZA(),d.TgZ(28,"kendo-toolbar-buttongroup"),d._UZ(29,"kendo-toolbar-button",61)(30,"kendo-toolbar-button",62),d.qZA(),d._UZ(31,"kendo-toolbar-button",63)(32,"kendo-toolbar-button",64),d.TgZ(33,"input",65,66),d.NdJ("change",function(Wt){d.CHM(mt);const dn=d.oxw();return d.KtG(dn.selectEventHandler(Wt))}),d.qZA(),d.YNc(35,z,1,3,"kendo-toolbar-button",67),d.YNc(36,se,1,5,"kendo-toolbar-button",68),d.YNc(37,ne,1,5,"kendo-toolbar-button",69),d.YNc(38,_e,2,1,"custom-attachment-list",70),d.qZA()()}if(2&$n){const mt=d.oxw();d.Akn(d.DdM(13,ge)),d.s9C("placeholder",d.lcZ(2,11,"typeSomethingHere")),d.Q6J("ngModel",mt.model.body)("ngModelOptions",d.DdM(14,Ce))("pasteCleanupSettings",d.DdM(15,Te)),d.xp6(33),d.Q6J("multiple",!0),d.xp6(2),d.Q6J("ngIf",mt.showUploadButton),d.xp6(1),d.Q6J("ngIf",mt.countImageFiles>0),d.xp6(1),d.Q6J("ngIf",mt.countImageFiles>0),d.xp6(1),d.Q6J("ngIf",mt.viewAttachment&&mt.selectedFiles.length>0)}}const fe=function(){return{virtualMode:!0,gridViewOnly:!0}};function xe($n,xn){if(1&$n){const mt=d.EpF();d.TgZ(0,"zen-grid",78),d.NdJ("onHeaderCheckboxChangeFn",function(Wt){d.CHM(mt);const dn=d.oxw(2);return d.KtG(dn.onAllPersonSelection(Wt))})("onRowCheckboxChangeFn",function(Wt){d.CHM(mt);const dn=d.oxw(2);return d.KtG(dn.onPersonChecked(Wt))}),d.qZA()}if(2&$n){const mt=d.oxw(2);d.Q6J("data",mt.recipients)("pageable",!1)("slideVisible",!1)("clientSideFiltering",!0)("showFilterToggle",!1)("filterToggleValue",!0)("sortable",!0)("clientSorting",!0)("displayHeaderSelection",!0)("isIndeterminate",mt.isIndeterminate)("config",d.DdM(12,fe))("allRowsSelected",mt.allRowsSelected)}}function Oe($n,xn){if(1&$n&&(d.TgZ(0,"div",76),d.YNc(1,xe,1,13,"zen-grid",77),d.qZA()),2&$n){const mt=d.oxw();d.xp6(1),d.Q6J("ngIf",mt.isBulk)}}const Le=function($n){return{bulk:$n}},Gt=function(){return["emailAddress"]},Ut=function(){return["description"]};let An=(()=>{class $n{set matChip(mt){mt&&this.selectedFiles.length>0&&this.manageWidth()}constructor(mt,ut,Wt,dn,sn,fn,yi,nn,Mi){if(this.emailService=mt,this.cs=ut,this.us=Wt,this.dialogRef=dn,this.ps=sn,this.scannerDialog=fn,this.documentService=yi,this.data=nn,this.ref=Mi,this.showEditor=!1,this.showExtraToFields=!1,this.uploadSaveUrl="saveUrl",this.uploadRemoveUrl="removeUrl",this.model=[],this.templates=[],this.allRowsSelected=!1,this.isIndeterminate=!1,this.files=[],this.visible=!0,this.selectable=!0,this.removable=!0,this.addOnBlur=!0,this.separatorKeysCodes=[o.L_,o.OC,o.K5],this.isChipsChanged=!1,this.attachmentFileId=0,this.paymentIdList={},this.documentIdList={},this.showUploadButton=!0,this.viewAttachment=!0,this.selectedFiles=[],this.fileFormatList=[],this.calledFor="",this.fileForward=[],this.disableSendButton=!1,this._unsubscribeAll=new u.x,dn.disableClose=!0,this.model={},this.dialogTitle=nn.dialogTitleResource?nn.dialogTitleResource:"email",this.emailProfile=nn.emailProfile,nn.senderEmail=nn.senderEmail?nn.senderEmail:this.emailService.profiles,this.model.entity=nn.entity,this.model.entityId=nn.entityId,this.model.toArray=this.getEmailArray(nn.emailAddress?nn.emailAddress:[]),this.model.ccArray=[],this.model.bccArray=[],this.entityEmail=this.data.entityEmail,this.model.jobId=nn.jobId,this.model.action=nn.action,this.model.jobCandidateId=nn.jobCandidateId,this.isBulk=nn.isBulk,this.emailProfileId=nn.emailProfileId?nn.emailProfileId:this.emailService.currentEmailProfile.getValue().emailProfileId,this.model.emailProfileId=this.emailProfileId,this.isTemplateEmail=nn.isTemplateEmail,this.paymentIdList=nn.paymentIdList,this.documentIdList=nn.documentIdList,this.setToPersonList(nn.recipients),this.calledFor=nn.calledFor??"","reply"==nn.action||"forward"==nn.action||"replyall"==nn.action){const mi=this.emailService.currentEmail.getValue();if("reply"==nn.action)this.model.toArray=this.getEmailArray(mi.replyToEmail&&mi.replyToEmail.length>0?[mi.replyToEmail[0].address]:[mi.from]),this.model.subject="RE: "+mi.subject;else if("replyall"==nn.action){let Eo=[mi.replyToEmail&&mi.replyToEmail.length>0?mi.replyToEmail[0].address:mi.from];Eo=[...Eo,...mi.to.map(Ko=>Ko.address)],Eo=Eo.filter(Ko=>Ko!=this.emailProfile.emailAddress),this.model.toArray=this.getEmailArray(Eo),mi.cc&&(this.model.ccArray=this.getEmailArray(mi.cc),mi.cc.length>0&&(this.showExtraToFields=!0)),mi.bcc&&(this.model.bccArray=this.getEmailArray(mi.bcc),mi.bcc.length>0&&(this.showExtraToFields=!0)),this.model.subject="RE: "+mi.subject}else"forward"==nn.action&&(this.model.subject="FWD: "+mi.subject,this.getAttachFiles(mi).then(Eo=>{mi&&(mi.attachedFileList=this.fileForward,mi.attachedFileList?.forEach(Ko=>{var xo=new File([Ko.blobData],Ko.filename,{type:this.getMimeTypeFromExtension(Ko.filename)});this.selectFile(xo),this.attachfile(xo),console.log(xo)}))}));this.model.body=this.generateForwardEmail(mi)}"EmailStartSheet"==this.calledFor&&nn.startSheetAttachment&&(this.selectFile(nn.startSheetAttachment),this.attachfile(nn.startSheetAttachment))}getAttachFiles(mt){var ut=this;return(0,e.Z)(function*(){if(!mt?.attachmentJson||0===mt.attachmentJson.length)return Promise.resolve([]);const Wt=mt.attachmentJson.map(dn=>ut.attachFileForwarding(dn,mt));return Promise.all(Wt)})()}attachFileForwarding(mt,ut){const Wt=this.emailService.onEntityEmailChanged.getValue().emailOutboundId?this.emailService.onEntityEmailChanged.getValue().emailOutboundId:ut.emailOutboundId;return new Promise(dn=>{this.emailService.downloadEmailAttachment(this.emailService.currentEmailProfile.getValue()?.emailProfileId,this.emailService.folderName?.getValue(),mt.fileId,ut.uId,this.entityEmail||"zenopleemailoutboundfolder"==this.emailService.folderName.getValue()?.toLowerCase()?Wt:0).subscribe(sn=>{if(sn)return this.fileForward.push({blobData:sn,filename:mt.filename}),dn(sn)})})}ngAfterViewInit(){setTimeout(()=>{this.showEditor=!0,setTimeout(()=>{var ut=this.kendoEditor.element.nativeElement.getElementsByClassName("k-iframe")[0].contentDocument;ut.getElementsByTagName("body")[0]&&(ut.getElementsByTagName("body")[0].style="font-family:Poppins")},500)},100)}ngOnInit(){if(this.sessionData=JSON.parse(sessionStorage.getItem("headerParams")),this.currentOfficeId=this.sessionData.officeId,this.ps.currentPersonDetail.pipe((0,l.R)(this._unsubscribeAll)).subscribe(mt=>{this.currentPersonDetail=mt}),this.getFileExtension(this.currentPersonDetail.tenantId),this.getOptionProperty(this.currentPersonDetail.tenantId),this.isTemplateEmail&&"reply"!=this.model.action&&"forward"!=this.model.action&&"replyall"!=this.model.action){let mt;mt="ETC"===this.data.callFrom?"ETC":this.data.entity,this.cs.getTemplate({officeId:this.currentOfficeId,category:this.data.templateCategory,relatesToEntity:mt,replaceText:this.data.replaceText,callFrom:this.data.callFrom}).pipe((0,l.R)(this._unsubscribeAll)).subscribe(ut=>{this.templates=ut})}this.paymentIdList&&this.paymentIdList.length>0&&this.paymentDocument(),this.documentIdList&&this.documentIdList.length>0&&this.getDocumentList()}getFileExtension(mt){this.cs.optionPropertyValue("EmailFileFormat","FileFormat","Tenant",mt).pipe((0,l.R)(this._unsubscribeAll)).subscribe(ut=>{ut.value&&this.getListItems(ut.value)})}getListItems(mt){this.cs.getListItem(mt).pipe((0,l.R)(this._unsubscribeAll)).subscribe(ut=>{ut&&(this.fileFormatList=ut.listItems.toLowerCase().split(","))})}getOptionProperty(mt){this.cs.optionPropertyValue(this.model.entity,"AllowEmailAttachment","Tenant",mt).pipe((0,l.R)(this._unsubscribeAll)).subscribe(ut=>{ut.value&&(this.showUploadButton=JSON.parse(ut.value))})}manageWidth(){if(this.viewAttachment){var mt=document.getElementsByClassName("mat-chip-list upload-files")[0],ut=document.getElementsByTagName("kendo-toolbar-renderer"),Wt=ut[ut.length-1];Wt?.contains(mt)&&Wt.classList.add("img-container")}}getDocumentList(){let mt={};mt=this.documentIdList.map(Wt=>({documentId:Wt.documentId})),this.cs.getEmailDocument({documentList:mt}).pipe((0,l.R)(this._unsubscribeAll)).subscribe(Wt=>{Wt?(this.files=Wt.map(dn=>({fileName:dn.fileName,documentId:dn.documentId,size:dn.size,uId:dn.documentId})),this.checkFileSize(Wt,"document")):this.us.callSnackBar("documentNotFound","info")})}getEmailArray(mt){if(!mt)return[];let ut=[];if(mt.constructor===Array)mt.map(Wt=>{let dn="";dn="string"==typeof Wt?Wt.trim():Wt.address.trim(),dn&&""!=dn&&ut.push(dn)});else if("string"==typeof mt){let Wt="";Wt=mt.trim(),Wt&&""!=Wt&&ut.push(Wt)}return ut}onPersonChecked(mt){mt.dataItem.isSelect=mt.event.checked,this.selection.toggle(mt.dataItem),this.selection.hasValue()?this.selection.selected.length==this.recipients.data.length?(this.allRowsSelected=!0,this.isIndeterminate=!1):this.isIndeterminate=!0:(this.allRowsSelected=!1,this.isIndeterminate=!1)}onAllPersonSelection(mt){this.selection.clear(),mt.checked?(this.selection.select(...this.recipients.data),this.recipients.data.map(ut=>{ut.isSelect=!0}),this.allRowsSelected=!0):(this.recipients.data.map(ut=>ut.isSelect=!1),this.selection.deselect(...this.recipients.data),this.allRowsSelected=!1)}setToPersonList(mt=[]){let ut=[];mt.length>0&&(mt[0]&&mt.map(Wt=>{ut.push({personId:Wt.personId,name:Wt.name?Wt.name:Wt.employee,emailAddress:Wt.emailAddress,isSelect:!0})}),this.recipients={data:ut,columns:this.getPersonListColumns(),primaryColumn:"personId",totalCount:mt.length},this.recipients={...this.recipients}),this.selection=new n.Ov(!0,ut),this.selection.select(...ut),this.allRowsSelected=!0}onTemplateSelect(mt){this.documentIdList||(this.countImageFiles=0,this.selectedTemplateCategory="",this.attachmentJson=[]),this.model.body=mt[0].body,this.model.subject=mt[0].subject,this.selectedTemplateCategory=mt[0].category,this.model.templateId=mt[0].templateId,this.model.templateDocumentList=mt[0].templateDocumentList,null!=this.model.templateDocumentList&&(this.attachmentJson=JSON.parse(this.model.templateDocumentList),this.selectedFiles=[...this.attachmentJson])}setTemplateById(mt){this.templateId=mt;let ut=this.templates.find(Wt=>Wt.templateId==mt);this.onTemplateSelect([ut])}attachmentUpload(mt){}generateForwardEmail(mt){return"<br /><br /><br /><hr /><br>From :"+mt.from+";<br> Date:"+mt.date+"<br> Subject: "+mt.subject+"<br> To: "+this.getEmailTo(mt.to)+"<br><hr /><br /><br />"+mt.body}getEmailTo(mt){let ut="";for(var Wt=0;Wt<mt.length;Wt++)ut+=mt[Wt].address+"; ";return ut}sendEmail(mt=!1){return this.disableSendButton=!0,this.data&&!this.data.isEmailNavigation&&0==this.selection.selected.length&&this.isBulk?(this.us.callSnackBar("pleaseSelectSomeoneToEmail","warning"),void(this.disableSendButton=!1)):(this.documents&&(this.model.documentIdList=this.documents.map(ut=>ut.documentId).join(",")),this.model.emailProfileId?this.model.toArray&&0!=this.model.toArray.length?void this.documentScan().then(ut=>{const Wt=(new DOMParser).parseFromString(this.model.body,"text/html").body,dn=Wt.getElementsByClassName("PersonalEmailSignature");if(dn.length>0&&(dn[0].style.display="none",this.model.body=Wt.innerHTML),!(ut&&!ut?.length||ut?.length&&!ut?.filter(sn=>!sn?.cleanResult)?.length)){let sn=ut.filter(nn=>nn.cleanResult)?.map(nn=>nn.file)?.map(nn=>nn.rawFile)?.map(nn=>nn.name);const fn=[...this.selectedFiles.filter(nn=>sn.includes(nn.fileName))],yi=this.selectedFiles.filter(nn=>nn.documentId);return fn.forEach(nn=>{yi.push(nn)}),this.selectedFiles=[...yi],void(this.disableSendButton=!1)}if(this.isTemplateEmail&&0!==this.templateId&&this.templateId&&!this.documentIdList){let sn={isBulk:this.isBulk,body:this.model.body,subject:this.model.subject,toPersonList:this.selection.selected.map(fn=>fn.personId).join(","),emailProfileId:this.model.emailProfileId,jobId:this.model.jobId,jobCandidateId:this.model.jobCandidateId,replaceText:this.data.replaceText,isMultiple:this.data.isMultiple,templateCategory:this.selectedTemplateCategory,to:this.isBulk?null:this.model.toArray.toString(),bcc:this.model.bccArray.toString(),cc:this.model.ccArray.toString(),entity:this.model.entity,entityId:this.model.entityId,organization:this.model.organization,personId:this.model.personId,attachments:this.selectedFiles,documentIdList:null==this.documentIdList?"":this.model.documentIdList,parentMessageId:"reply"==this.data.action?this.data.parentMessageId:null};this.emailService.sendTemplateEmail(sn).subscribe(fn=>{fn&&fn.success?(this.us.callSnackBar("yourEmailWillBeSent","success"),this.data?.hasOwnProperty("isEmailNavigation")&&this.data?.isEmailNavigation&&this.emailService.onEmailNavigationSent.next(!0),this.dialogRef.close(fn)):this.us.callSnackBar("emailNotSent","error"),this.disableSendButton=!1})}else{let sn=this.model.body.replaceAll(" ","").replace(/(<\/?(?:img)[^>]*>)|<[^>]+>/gi,"$1"),fn=this.model.subject.replaceAll(" ","").replace(/(<([^>]+)>)/gi,"");if(null==this.model.subject||""==this.model.subject.trim()||""==fn)return this.model.subject=null,this.us.callSnackBar("cannotSendEmailWithEmptySubject","warning"),void(this.disableSendButton=!1);if(!mt&&(null==this.model.body||""==this.model.body.trim()||""==sn))return this.emtpyBody(),void(this.disableSendButton=!1);"reply"!=this.data.action&&"forward"!=this.data.action&&"replyall"!=this.data.action||this.entityEmail&&!this.model.toArray.includes(this.entityEmail)&&(this.model.entity=null,this.model.entityId=null),this.model.isBulk=this.isBulk,this.isBulk?(this.model.toPersonList=this.selection.selected.map(yi=>yi.personId).join(","),this.model.to=null):(this.model.toPersonList=this.selection.selected.map(yi=>yi.personId).join(","),this.model.to=this.model.toArray.join(",")),this.model.cc=this.model.ccArray.length>0?this.model.ccArray.join(","):null,this.model.bcc=this.model.bccArray.length>0?this.model.bccArray.join(","):null,this.model.parentMessageId="reply"==this.data.action?this.data.parentMessageId:null,this.emailService.sendTemplateEmail(this.model).subscribe(yi=>{yi?(this.us.callSnackBar("yourEmailWillBeSent","success"),this.data?.hasOwnProperty("isEmailNavigation")&&this.data?.isEmailNavigation&&this.emailService.onEmailNavigationSent.next(!0),this.dialogRef.close(yi)):this.us.callSnackBar("emailNotSent","error"),this.disableSendButton=!1})}}):(this.us.callSnackBar("provideEmailAddressTo","warning"),void(this.disableSendButton=!1)):(this.us.callSnackBar("provideEmailAddressFrom","warning"),void(this.disableSendButton=!1)))}emtpyBody(){this.us.openConfirmDialog({headerText:"missingInformation",confirmationText:"sendWithEmptyBody"}),this.us.confirmDialogAction.subscribe(ut=>{"yes"==ut?(this.sendEmail(!0),this.us.closeConfirmDialog()):"no"==ut&&this.us.closeConfirmDialog()})}onSubjectTab(){}paymentDocument(){let mt={};mt=this.paymentIdList.map(Wt=>({paymentId:Wt.paymentId})),this.cs.getPaymentDocument({paymentList:mt,entity:"employee",callFrom:"payHistory"}).pipe((0,l.R)(this._unsubscribeAll)).subscribe(Wt=>{Wt?(this.files=Wt.map(dn=>({fileName:dn.fileName,documentId:dn.documentId,size:dn.size,uId:dn.documentId})),this.checkFileSize(Wt,"payment")):this.us.callSnackBar("thereIsNoDocumentToAttachPleaseRegenerateADocumentAndTryAgain","warning")})}checkFileSize(mt,ut){"payment"==ut?this.paymentIdList?.length!=this.files.length&&this.us.callSnackBar("someOfThePaymentHasMissingAttachment","info"):this.documentIdList?.length!=this.files.length&&this.us.callSnackBar("someOfTheDocumentHasMissingAttachment","info"),this.totalSize=0,mt.map(Wt=>{this.totalSize=this.totalSize+Wt.size}),this.totalSize>26214400?this.us.callSnackBar("attachmentShouldNotExceed25MB.","Warning"):(this.selectedFiles=this.files,this.documents=this.files,this.countImageFiles=this.selectedFiles.length,this.manageWidth())}selectEventHandler(mt){const ut=Array.from(mt.target.files);ut.every(dn=>this.fileFormatList.includes(dn.name.toLowerCase().split(".").pop()))?(this.totalSize=0,this.selectedFiles?.map(dn=>{this.totalSize=this.totalSize+dn.size}),ut?.map(dn=>{this.totalSize=this.totalSize+dn.size}),this.totalSize>26214400?this.us.callSnackBar("attachmentShouldNotExceed25MB.","Warning"):Array.from(ut).forEach(dn=>{this.selectFile(dn),this.attachfile(dn)})):this.us.callSnackBar("Invalid file extension. Only "+this.fileFormatList.map(dn=>dn.replace("image/","").replace("video/","")).join(", ")+" file are allowed.","warning")}attachfile(mt){let ut=this;if(ut.model.attachments||(ut.model.attachments=new Array),!mt.validationErrors){let Wt=new FileReader;Wt.onload=function(sn){ut.model.attachments.push({uId:ut.us.newGuid(),safeFileName:mt.name,filename:mt.name,fileId:++ut.attachmentFileId,contentType:mt.type,size:mt.size,dataString:sn.target.result})},Wt.readAsDataURL(mt)}}selectFile(mt,ut){const Wt=this,dn=new FileReader;dn.onload=function(sn){const fn=dn.result,nn=Math.max(...Wt.selectedFiles.map(mi=>mi.fileId),0)+1,Mi={rawFile:mt,src:fn,fileId:nn,dataString:fn,extension:mt.name.split(".").pop(),fileName:mt.name,uid:Wt.us.newGuid(),size:mt.size,documentId:ut};Wt.selectedFiles.unshift(Mi),Wt.countImageFiles=Wt.selectedFiles.length,Wt.selectedFiles=[...Wt.selectedFiles],Wt.manageWidth()},dn.readAsDataURL(mt)}removeEventHandler(mt){this.documents=this.documents?.filter(ut=>ut.documentId!=mt.files[0].documentId),this.model.attachments=this.model.attachments?.filter(ut=>ut.uId!=mt.files[0].uid)}toggleExtraToFields(){this.showExtraToFields=!this.showExtraToFields}onAttachmentCountChangeFn(mt){this.selectedFiles=mt,this.countImageFiles=0,this.ref.detectChanges(),this.countImageFiles=mt.length,this.documents=this.documents?.filter(ut=>this.selectedFiles?.find(Wt=>Wt.documentId==ut.documentId)),this.model.attachments=this.model.attachments?.filter(ut=>this.selectedFiles?.find(Wt=>Wt.documentId==ut.documentId))}toggleViewAttachments(){this.viewAttachment=!this.viewAttachment,this.countImageFiles=0,this.ref.detectChanges(),this.countImageFiles=this.selectedFiles.length}onImageChange(mt){}closeDialog(){this.model.body?this.confirmation("Confirmation","Are you sure you want to discard changes?"):this.dialogRef.close()}confirmation(mt,ut){this.us.openConfirmDialog({headerText:mt,confirmationText:ut}),this.us.confirmDialogAction.pipe((0,l.R)(this._unsubscribeAll)).subscribe(dn=>{"yes"==dn&&(this.dialogRef.close(),this.us.closeConfirmDialog())})}add(mt,ut,Wt){const dn=mt.input,sn=mt.value;(sn||"").trim()&&(sn.trim().match('^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$')?("to"==Wt?this.model.toArray.push(sn.trim()):"cc"==Wt?this.model.ccArray.push(sn.trim()):"bcc"==Wt&&this.model.bccArray.push(sn.trim()),ut.ngControl.control.markAsDirty()):this.us.callSnackBar("Invalid Email.","warning")),dn&&(dn.value="")}remove(mt,ut,Wt){if(mt&&ut.ngControl.control.markAsDirty(),"to"==Wt){const dn=this.model.toArray.indexOf(mt);dn>=0&&this.model.toArray.splice(dn,1)}if("cc"==Wt){const dn=this.model.ccArray.indexOf(mt);dn>=0&&this.model.ccArray.splice(dn,1)}if("bcc"==Wt){const dn=this.model.bccArray.indexOf(mt);dn>=0&&this.model.bccArray.splice(dn,1)}}emailUpdated(mt,ut){ut.ngControl.control.markAsDirty()}onAddEmailSignatureClick(mt){if(this.personEmailSignature){const ut=(new DOMParser).parseFromString(this.model.body,"text/html").body;if(ut.innerHTML.includes("#PersonalEmailSignature#"))return this.us.callSnackBar("Signature text is already added","info");const Wt=document.createElement("p");Wt.innerText="#PersonalEmailSignature#",ut.appendChild(Wt),this.model.body=ut.innerHTML}else this.us.callSnackBar("Please setup email signature.","info")}getPersonSignature(){this.cs.getSignatureTemplates({category:"PersonalEmailSignatureTemplate",callFrom:"emaileditor"}).pipe((0,l.R)(this._unsubscribeAll)).subscribe(ut=>{ut&&ut.emailSignature&&ut.emailSignature[0]&&(this.personEmailSignature=(new DOMParser).parseFromString(ut.emailSignature[0].body,"text/html").body)})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}scrollToBottom(){try{this.uploadScroll.nativeElement.scrollTop=this.uploadScroll.nativeElement.scrollHeight}catch{}}getPersonListColumns(){return[{name:"name",type:"string",sort:1,filterable:1,maskType:"",translate:0},{name:"emailAddress",type:"string",sort:1,filterable:0,maskType:"",translate:0},{name:"isSelect",type:"boolean",sort:0,filterable:0,maskType:"",translate:0}]}documentScan(){return new Promise(mt=>{mt(!this.selectedFiles?.length||this.documentService.openScannerDialog(this.selectedFiles))})}getMimeTypeFromExtension(mt){const ut=mt?.toLowerCase();return ut.includes(".pdf")?"application/pdf":ut.includes(".txt")||ut.includes(".docx")?"text/plain":ut.includes(".jpg")||ut.includes(".jpeg")?"image/jpeg":ut.includes(".png")?"image/png":ut.includes(".tiff")||ut.includes(".tif")?"image/tiff":ut.includes(".bmp")?"image/bmp":ut.includes(".gif")?"image/gif":"application/octet-stream"}static#e=this.\u0275fac=function(ut){return new(ut||$n)(d.Y36(s.j),d.Y36(A.v),d.Y36(_.t),d.Y36(a.hV),d.Y36(C.R),d.Y36(a.on),d.Y36(R.Z),d.Y36(a.eJ),d.Y36(d.sBO))};static#t=this.\u0275cmp=d.Xpm({type:$n,selectors:[["zen-email-editor"]],viewQuery:function(ut,Wt){if(1&ut&&(d.Gf(V,5),d.Gf(K,7),d.Gf(X,5)),2&ut){let dn;d.iGM(dn=d.CRH())&&(Wt.kendoEditor=dn.first),d.iGM(dn=d.CRH())&&(Wt.uploadScroll=dn.first),d.iGM(dn=d.CRH())&&(Wt.matChip=dn.first)}},decls:28,vars:21,consts:[[1,"dialog-content-wrapper"],[1,"mat-accent","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","space-between center"],[1,"title","dialog-title"],["mat-icon-button","","aria-label","Close dialog",3,"click"],["mat-dialog-content","",1,"p-12","m-0","email-editor-dialog",3,"ngClass"],["scrollView",""],["name","composeForm","fxLayout","column","fxFlex","","autocomplete","off",1,"compose-form","w-100-p",3,"keydown.enter"],["composeForm","ngForm"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","start start","fxLayoutGap","8px","fxLayoutGap.xs","0",1,"h-100-p"],["fxLayout","column",1,"h-100-p",3,"fxFlex"],["fxLayout","row","fxLayoutGap","10px"],["fxFlex",""],["name","From","placeholder","From","nameField","emailAddress","valueField","emailProfileId",1,"no-padding-head","chip-black",3,"columns","data","ngModel","ngModelChange"],["name","template","nameField","description","valueField","templateId","autoSelect","true",1,"no-padding-head","chip-black",3,"placeholder","columns","data","ngModel","selectEvent","ngModelChange","onAutoSelect"],[4,"ngIf"],["matInput","","name","subject","placeholder","Subject","required","",3,"ngModel","ngModelChange","keydown.Tab"],["class","pEditor","fxLayout","column","fxFlex","",3,"ngModel","ngModelOptions","placeholder","style","pasteCleanupSettings","ngModelChange",4,"ngIf"],["fxFlex","40","class","email-editor-right",4,"ngIf"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","end center",1,"m-0","p-12","mat-dialog-actions"],["mat-raised-button","","aria-label","SAVE",1,"save-button","mat-accent",3,"disabled","click"],[1,"email-chip-list"],["name","toChipList",3,"ngModel","ngModelChange"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],["name","to","type","text",3,"placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],[1,"w-100-p"],[1,"show-hide-extra-fields",3,"click"],[3,"fxShow"],[1,"email-chip-list",3,"fxShow"],["name","cc",3,"ngModel","ngModelChange"],["chipList1",""],["name","cc","type","text",3,"placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["name","bcc",3,"ngModel","ngModelChange"],["chipList2",""],["name","bcc","type","text",3,"placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],[3,"selectable","removable","removed"],["matChipRemove","",4,"ngIf"],["matChipRemove",""],["fxLayout","column","fxFlex","",1,"pEditor",3,"ngModel","ngModelOptions","placeholder","pasteCleanupSettings","ngModelChange"],["kendoEditor",""],["tabindex","-1"],["kendoEditorUndoButton",""],["kendoEditorRedoButton",""],["kendoEditorBoldButton",""],["kendoEditorItalicButton",""],["kendoEditorUnderlineButton",""],["kendoEditorStrikethroughButton",""],["kendoEditorSubscriptButton",""],["kendoEditorSuperscriptButton",""],["kendoEditorAlignLeftButton",""],["kendoEditorAlignCenterButton",""],["kendoEditorAlignRightButton",""],["kendoEditorAlignJustifyButton",""],["kendoEditorFormat",""],["kendoEditorFontSize",""],["kendoEditorFontFamily",""],["kendoEditorInsertUnorderedListButton",""],["kendoEditorInsertOrderedListButton",""],["kendoEditorIndentButton",""],["kendoEditorOutdentButton",""],["kendoEditorCreateLinkButton",""],["kendoEditorUnlinkButton",""],["kendoEditorViewSourceButton",""],["kendoEditorCleanFormattingButton",""],["type","file","id","image-upload","name","file","onclick","this.value=null",2,"display","none",3,"multiple","change"],["uploader",""],["icon","add","text","Upload File",3,"style","click",4,"ngIf"],["icon","attachment",3,"text","style","look",4,"ngIf"],["icon","eye",3,"text","style","look","click",4,"ngIf"],[3,"attachmentList","onAttachmentCountChangeFn",4,"ngIf"],["icon","add","text","Upload File",3,"click"],["icon","attachment",3,"text","look"],["icon","eye",3,"text","look","click"],[3,"attachmentList","onAttachmentCountChangeFn"],["matChip",""],["fxFlex","40",1,"email-editor-right"],[3,"data","pageable","slideVisible","clientSideFiltering","showFilterToggle","filterToggleValue","sortable","clientSorting","displayHeaderSelection","isIndeterminate","config","allRowsSelected","onHeaderCheckboxChangeFn","onRowCheckboxChangeFn",4,"ngIf"],[3,"data","pageable","slideVisible","clientSideFiltering","showFilterToggle","filterToggleValue","sortable","clientSorting","displayHeaderSelection","isIndeterminate","config","allRowsSelected","onHeaderCheckboxChangeFn","onRowCheckboxChangeFn"]],template:function(ut,Wt){if(1&ut&&(d.TgZ(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),d._uU(4),d.ALo(5,"translate"),d.qZA(),d.TgZ(6,"button",4),d.NdJ("click",function(){return Wt.closeDialog()}),d.TgZ(7,"mat-icon"),d._uU(8,"close"),d.qZA()()()(),d.TgZ(9,"div",5,6)(11,"form",7,8),d.NdJ("keydown.enter",function(sn){return sn.preventDefault()}),d.TgZ(13,"div",9)(14,"div",10)(15,"div",11)(16,"div",12)(17,"zen-select",13),d.NdJ("ngModelChange",function(sn){return Wt.model.emailProfileId=sn}),d.qZA()(),d.TgZ(18,"div",12)(19,"zen-select",14),d.NdJ("selectEvent",function(sn){return Wt.onTemplateSelect(sn)})("ngModelChange",function(sn){return Wt.templateId=sn})("onAutoSelect",function(sn){return Wt.setTemplateById(sn)}),d.qZA()()(),d.YNc(20,j,25,28,"ng-container",15),d.TgZ(21,"mat-form-field")(22,"input",16),d.NdJ("ngModelChange",function(sn){return Wt.model.subject=sn})("keydown.Tab",function(){return Wt.onSubjectTab()}),d.qZA()(),d.YNc(23,De,39,16,"kendo-editor",17),d.qZA(),d.YNc(24,Oe,2,1,"div",18),d.qZA()()(),d.TgZ(25,"div",19)(26,"button",20),d.NdJ("click",function(){return Wt.sendEmail()}),d._uU(27," SEND "),d.qZA()()()),2&ut){const dn=d.MAs(12);d.xp6(4),d.Oqu(d.lcZ(5,15,Wt.dialogTitle)),d.xp6(5),d.Q6J("ngClass",d.VKq(17,Le,Wt.isBulk)),d.xp6(5),d.Q6J("fxFlex",Wt.isBulk?60:100),d.xp6(3),d.Q6J("columns",d.DdM(19,Gt))("data",Wt.data.senderEmail)("ngModel",Wt.model.emailProfileId),d.xp6(2),d.Q6J("placeholder","template")("columns",d.DdM(20,Ut))("data",Wt.templates)("ngModel",Wt.templateId),d.xp6(1),d.Q6J("ngIf",!Wt.isBulk),d.xp6(2),d.Q6J("ngModel",Wt.model.subject),d.xp6(1),d.Q6J("ngIf",Wt.showEditor),d.xp6(1),d.Q6J("ngIf",Wt.isBulk),d.xp6(2),d.Q6J("disabled",dn.invalid||Wt.disableSendButton)}},dependencies:[x.xw,x.SQ,x.Wh,x.yH,f.b8,f.oO,k.mk,k.sg,k.O5,w._Y,w.Fj,w.JJ,w.JL,w.Q7,w.On,w.F,g.eB,M.Hw,p.v_,p.pH,E.k0,b.Ye,b.rD,I.i,L.H,D.ir,D.lw,D.IP,D.Y6,F.PG,F.pu,F.yr,F.Qb,F.Jc,F.oH,F.BP,F.Ff,F.pt,F.t$,F.zH,F.U5,F.yj,F.E6,F.NC,F.Ob,F.CI,F.Ws,F.OV,F.xu,F.KI,F.m8,F.e3,F.ri,P.o9,P.eJ,P.VN,O.s,U.X$],styles:[".mail-compose-dialog{height:80vh}.mail-compose-dialog .mat-dialog-container{padding:0}.mail-compose-dialog .mat-dialog-container .compose-form kendo-upload-action-buttons{display:none}.mail-compose-dialog .mat-dialog-container .compose-form .mat-form-field{width:100%}.mail-compose-dialog .mat-dialog-container .compose-form .show-hide-extra-fields{text-align:right;cursor:pointer;font-size:12px}.mail-compose-dialog .mat-dialog-container .compose-form .attachment-list{font-size:13px;padding-top:16px}.mail-compose-dialog .mat-dialog-container .compose-form .attachment-list .attachment{background-color:#00000014;border:1px solid rgba(0,0,0,.16);padding-left:16px;margin-top:8px;border-radius:2px}.mail-compose-dialog .mat-dialog-container .compose-form .attachment-list .attachment .filename{font-weight:500}.mail-compose-dialog .mat-dialog-container .compose-form .attachment-list .attachment:last-child{margin-bottom:0}.mail-compose-dialog .img-container{width:100%}.mail-compose-dialog .email-editor-dialog{height:calc(80vh - 126px);overflow:auto}.mail-compose-dialog .email-editor-dialog.bulk kendo-editor{height:calc(80vh - 332px)}.mail-compose-dialog .email-editor-dialog.bulk .email-editor-right kendo-grid{height:calc(80vh - 193px)}.mail-compose-dialog .email-editor-dialog .email-editor-right kendo-grid{height:calc(98vh - 431px)}.mail-compose-dialog .dialog-content-wrapper{display:flex;flex-direction:column;width:65vw}.mail-compose-dialog .dialog-content-wrapper .k-dropzone .k-button{background:#039be5;color:#fff}.mail-compose-dialog .dialog-content-wrapper kendo-editor{width:100%}.mail-compose-dialog .dialog-content-wrapper kendo-editor kendo-toolbar kendo-toolbar-renderer:last-child .upload-files .mat-chip-list-wrapper{width:100%}.mail-compose-dialog .dialog-content-wrapper kendo-editor kendo-toolbar kendo-toolbar-renderer .mat-chip-list-wrapper{overflow-y:auto;max-height:80px}\n"],encapsulation:2})}return $n})()},14165:(he,y,i)=>{"use strict";i.d(y,{I:()=>M});var e=i(94505),n=i(23680),o=i(30617),a=i(42400),l=i(78250),u=i(81274),d=i(26177),s=i(45463),A=i(39421),_=i(20180),C=i(85947),R=i(89515),x=i(12430),f=i(48979),k=i(56148),w=i(21587),g=i(65879);let M=(()=>{class p{static#e=this.\u0275fac=function(I){return new(I||p)};static#t=this.\u0275mod=g.oAB({type:p});static#n=this.\u0275inj=g.cJS({providers:[w.$],imports:[C.o9,_.L,s.c4,e.yu,o.Ps,a.x4,l.jT,u.g0,n.si,R.aw,x.L,f.i,d.yD,A.Z_,k.I]})}return p})()},21587:(he,y,i)=>{"use strict";i.d(y,{$:()=>l});var e=i(58485),n=i(65879),o=i(66878),a=i(74187);let l=(()=>{class u{constructor(s,A){this.emailComposeDialog=s,this.us=A}openEmailComposeDialog(s,A,_,C={},R){if(!C.isBulk||0!=C.recipients.length)return new Promise(x=>{C.action=A,C.emailAddress=s,C.emailProfileId=_,C.dialogTitleResource=R,this.emailComposeDialog.open(e.x,{panelClass:"mail-compose-dialog",data:C}).afterClosed().subscribe(k=>{x(k)})});this.us.callSnackBar("selectedRecipientshaveNoEmailAddress","warning")}static#e=this.\u0275fac=function(A){return new(A||u)(n.LFG(o.on),n.LFG(a.t))};static#t=this.\u0275prov=n.Yz7({token:u,factory:u.\u0275fac})}return u})()},62828:(he,y,i)=>{"use strict";i.d(y,{x:()=>Wt});var e=i(78645),n=i(47394),o=i(22096),a=i(59773),l=i(37398),u=i(17828),d=i(65879),s=i(70144),A=i(710),_=i(61371),C=i(74187),R=i(96814),x=i(56223),f=i(83814),k=i(84187),w=i(42400),g=i(30617),M=i(94505),p=i(48424),E=i(24678),b=i(91438),I=i(45754),L=i(82012),D=i(65139),F=i(89515);const P=["emailProfileForm"],O=["epOption"],U=["epList"],V=function(){return["message"]};function K(dn,sn){if(1&dn){const fn=d.EpF();d.TgZ(0,"div",11)(1,"zen-select",12,13),d.NdJ("selectEvent",function(nn){d.CHM(fn);const Mi=d.oxw(2);return d.KtG(Mi.onChoiceSelected(nn))})("ngModelChange",function(nn){d.CHM(fn);const Mi=d.oxw(2);return d.KtG(Mi.choiceDDL=nn)}),d.ALo(3,"translate"),d.qZA()()}if(2&dn){const fn=d.oxw(2);d.xp6(1),d.s9C("placeholder",d.lcZ(3,5,"chooseAnAction")),d.Q6J("data",fn.choiceList)("multiple",!1)("ngModel",fn.choiceDDL)("columns",d.DdM(7,V))}}const X=function(){return["username","emailAddress","profile"]};function me(dn,sn){if(1&dn){const fn=d.EpF();d.TgZ(0,"div",11)(1,"zen-select",14,15),d.NdJ("selectEvent",function(nn){d.CHM(fn);const Mi=d.oxw(2);return d.KtG(Mi.onEmailProfileListSelect(nn))})("ngModelChange",function(nn){d.CHM(fn);const Mi=d.oxw(2);return d.KtG(Mi.emailProfileDDL=nn)}),d.ALo(3,"translate"),d.qZA()()}if(2&dn){const fn=d.oxw(2);d.xp6(1),d.s9C("placeholder",d.lcZ(3,5,"chooseAnEmailProfile")),d.Q6J("data",fn.emailProfileList)("multiple",!1)("ngModel",fn.emailProfileDDL)("columns",d.DdM(7,X))}}function J(dn,sn){if(1&dn){const fn=d.EpF();d.TgZ(0,"div",16)(1,"mat-form-field",17)(2,"input",18,19),d.NdJ("ngModelChange",function(nn){d.CHM(fn);const Mi=d.oxw(2);return d.KtG(Mi.model.emailAddress=nn)})("ngModelChange",function(nn){d.CHM(fn);const Mi=d.MAs(7),mi=d.oxw(2);return d.KtG(mi.emailAddressChanged(nn,Mi))})("blur",function(){d.CHM(fn);const nn=d.MAs(3),Mi=d.oxw(2);return d.KtG(Mi.checkEmailAddress(nn))}),d.ALo(4,"translate"),d.qZA()(),d.TgZ(5,"mat-form-field",20)(6,"input",21,22),d.NdJ("ngModelChange",function(nn){d.CHM(fn);const Mi=d.oxw(2);return d.KtG(Mi.model.username=nn)}),d.ALo(8,"translate"),d.qZA(),d.TgZ(9,"mat-hint",23),d._uU(10,"Update only if you are sure"),d.qZA()(),d._UZ(11,"input",24)(12,"input",25),d.qZA()}if(2&dn){const fn=d.oxw(2);d.xp6(1),d.Q6J("ngModelGroup",fn.model.emailProfileId),d.xp6(1),d.s9C("placeholder",d.lcZ(4,6,"emailAddress")),d.Q6J("ngModel",fn.model.emailAddress),d.xp6(4),d.s9C("placeholder",d.lcZ(8,8,"emailUsername")),d.Q6J("ngModel",fn.model.username)("ngModelGroup",fn.model.emailProfileId)}}function Q(dn,sn){if(1&dn){const fn=d.EpF();d.TgZ(0,"div",26)(1,"mat-form-field",27)(2,"input",28),d.NdJ("ngModelChange",function(nn){d.CHM(fn);const Mi=d.oxw(2);return d.KtG(Mi.model.password=nn)}),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"mat-icon",29),d.NdJ("click",function(){d.CHM(fn);const nn=d.oxw(2);return d.KtG(nn.hide=!nn.hide)}),d._uU(5),d.qZA()(),d.TgZ(6,"mat-form-field",27)(7,"input",30),d.NdJ("ngModelChange",function(nn){d.CHM(fn);const Mi=d.oxw(2);return d.KtG(Mi.model.profile=nn)}),d.ALo(8,"translate"),d.qZA()(),d.TgZ(9,"mat-form-field",31)(10,"input",32),d.NdJ("ngModelChange",function(nn){d.CHM(fn);const Mi=d.oxw(2);return d.KtG(Mi.model.smtpServer=nn)}),d.ALo(11,"translate"),d.qZA()()()}if(2&dn){const fn=d.oxw(2);d.xp6(2),d.s9C("placeholder",d.lcZ(3,11,"password")),d.Q6J("ngModel",fn.model.password)("ngModelGroup",fn.model.emailProfileId)("type",fn.hide?"password":"text"),d.xp6(3),d.Oqu(fn.hide?"visibility_off":"visibility"),d.xp6(2),d.s9C("placeholder",d.lcZ(8,13,"profile")),d.Q6J("ngModel",fn.model.profile)("ngModelGroup",fn.model.emailProfileId),d.xp6(3),d.s9C("placeholder",d.lcZ(11,15,"smtpServer")),d.Q6J("ngModel",fn.model.smtpServer)("ngModelGroup",fn.model.emailProfileId)}}function re(dn,sn){if(1&dn&&(d.TgZ(0,"mat-option",36),d._uU(1),d.qZA()),2&dn){const fn=sn.$implicit;d.Q6J("value",fn.listItemId),d.xp6(1),d.hij(" ",fn.listItem," ")}}function de(dn,sn){if(1&dn){const fn=d.EpF();d.TgZ(0,"div",26)(1,"mat-form-field",27)(2,"input",33),d.NdJ("ngModelChange",function(nn){d.CHM(fn);const Mi=d.oxw(2);return d.KtG(Mi.model.smtpPort=nn)}),d.ALo(3,"translate"),d.qZA()(),d.TgZ(4,"mat-form-field",31)(5,"mat-select",34),d.NdJ("ngModelChange",function(nn){d.CHM(fn);const Mi=d.oxw(2);return d.KtG(Mi.model.smtpEncryptionTypeListItemId=nn)}),d.ALo(6,"translate"),d.YNc(7,re,2,2,"mat-option",35),d.qZA()()()}if(2&dn){const fn=d.oxw(2);d.xp6(2),d.s9C("placeholder",d.lcZ(3,7,"smtpPort")),d.Q6J("ngModel",fn.model.smtpPort)("ngModelGroup",fn.model.emailProfileId),d.xp6(3),d.s9C("placeholder",d.lcZ(6,9,"smtpEncryptionType")),d.Q6J("ngModel",fn.model.smtpEncryptionTypeListItemId)("ngModelGroup",fn.model.emailProfileId),d.xp6(2),d.Q6J("ngForOf",fn.encryptionTypeList)}}function te(dn,sn){if(1&dn){const fn=d.EpF();d.TgZ(0,"div",37)(1,"mat-checkbox",38),d.NdJ("ngModelChange",function(nn){d.CHM(fn);const Mi=d.oxw(2);return d.KtG(Mi.imapRequired=nn)})("change",function(nn){d.CHM(fn);const Mi=d.oxw(2);return d.KtG(Mi.imapRequiredChecked(nn))}),d._uU(2," Inbound Email Settings "),d.qZA()()}if(2&dn){const fn=d.oxw(2);d.xp6(1),d.Q6J("ngModel",fn.imapRequired)("labelPosition","after")}}function j(dn,sn){if(1&dn){const fn=d.EpF();d.TgZ(0,"div",26)(1,"mat-form-field",27)(2,"input",39),d.NdJ("ngModelChange",function(nn){d.CHM(fn);const Mi=d.oxw(2);return d.KtG(Mi.model.imapServer=nn)}),d.ALo(3,"translate"),d.qZA()(),d.TgZ(4,"mat-form-field",31)(5,"input",40),d.NdJ("ngModelChange",function(nn){d.CHM(fn);const Mi=d.oxw(2);return d.KtG(Mi.model.imapPort=nn)}),d.ALo(6,"translate"),d.qZA()()()}if(2&dn){const fn=d.oxw(2);d.xp6(2),d.s9C("placeholder",d.lcZ(3,8,"imapServer")),d.Q6J("ngModel",fn.model.imapServer)("ngModelGroup",fn.model.emailProfileId)("zen-validator",fn.imapRequired&&!fn.isEmailProfileSelected?"emailProfile.imapServer":"emailProfile.imapServerNotRequired"),d.xp6(3),d.s9C("placeholder",d.lcZ(6,10,"imapPort")),d.Q6J("ngModel",fn.model.imapPort)("ngModelGroup",fn.model.emailProfileId)("zen-validator",fn.imapRequired&&!fn.isEmailProfileSelected?"emailProfile.imapPort":"emailProfile.imapPortNotRequired")}}function H(dn,sn){if(1&dn&&(d.TgZ(0,"mat-option",36),d._uU(1),d.qZA()),2&dn){const fn=sn.$implicit;d.Q6J("value",fn.listItemId),d.xp6(1),d.hij(" ",fn.listItem," ")}}function z(dn,sn){if(1&dn){const fn=d.EpF();d.TgZ(0,"div",26)(1,"mat-form-field",27)(2,"mat-select",41),d.NdJ("ngModelChange",function(nn){d.CHM(fn);const Mi=d.oxw(2);return d.KtG(Mi.model.imapEncryptionTypeListItemId=nn)}),d.ALo(3,"translate"),d.YNc(4,H,2,2,"mat-option",35),d.qZA()(),d.TgZ(5,"mat-form-field",31)(6,"textarea",42),d.NdJ("ngModelChange",function(nn){d.CHM(fn);const Mi=d.oxw(2);return d.KtG(Mi.model.signature=nn)}),d.ALo(7,"translate"),d._uU(8,"                        "),d.qZA()()()}if(2&dn){const fn=d.oxw(2);d.xp6(2),d.s9C("placeholder",d.lcZ(3,8,"imapEncryptionType")),d.Q6J("ngModel",fn.model.imapEncryptionTypeListItemId)("ngModelGroup",fn.model.emailProfileId)("zen-validator",fn.imapRequired&&!fn.isEmailProfileSelected?"emailProfile.encryptionType":"emailProfile.encryptionTypeNotRequired"),d.xp6(2),d.Q6J("ngForOf",fn.encryptionTypeList),d.xp6(2),d.s9C("placeholder",d.lcZ(7,10,"signature")),d.Q6J("ngModel",fn.model.signature)("ngModelGroup",fn.model.emailProfileId)}}function q(dn,sn){if(1&dn&&(d.TgZ(0,"mat-option",36),d._uU(1),d.qZA()),2&dn){const fn=sn.$implicit;d.Q6J("value",fn.listItemId),d.xp6(1),d.hij(" ",fn.description," ")}}function se(dn,sn){if(1&dn&&(d.TgZ(0,"mat-option",36),d._uU(1),d.qZA()),2&dn){const fn=sn.$implicit;d.Q6J("value",fn),d.xp6(1),d.hij(" ",fn," ")}}function ne(dn,sn){if(1&dn){const fn=d.EpF();d.TgZ(0,"div",26)(1,"mat-form-field",31)(2,"mat-select",43),d.NdJ("ngModelChange",function(nn){d.CHM(fn);const Mi=d.oxw(2);return d.KtG(Mi.model.emailProfileTypeListItemId=nn)})("change",function(nn){d.CHM(fn);const Mi=d.oxw(2);return d.KtG(Mi.onIsCompanyEmail(nn))}),d.ALo(3,"translate"),d.YNc(4,q,2,2,"mat-option",35),d.qZA()(),d.TgZ(5,"mat-form-field",27)(6,"mat-select",44),d.NdJ("ngModelChange",function(nn){d.CHM(fn);const Mi=d.oxw(2);return d.KtG(Mi.model.emailSyncCount=nn)}),d.YNc(7,se,2,2,"mat-option",35),d.qZA()()()}if(2&dn){const fn=d.oxw(2);d.xp6(2),d.s9C("placeholder",d.lcZ(3,8,"Email Profile Type")),d.Q6J("ngModel",fn.model.emailProfileTypeListItemId)("ngModelGroup",fn.model.emailProfileId),d.xp6(2),d.Q6J("ngForOf",fn.emailProfileTypeList),d.xp6(2),d.Q6J("ngModel",fn.model.emailSyncCount)("ngModelGroup",fn.model.emailProfileId)("disabled",!fn.model.emailProfileTypeListItemId),d.xp6(1),d.Q6J("ngForOf",fn.emailCountPerSyncOptions)}}function _e(dn,sn){1&dn&&d._UZ(0,"mat-spinner",56),2&dn&&d.Q6J("diameter",20)}function ge(dn,sn){1&dn&&(d.TgZ(0,"mat-icon",57),d._uU(1,"check"),d.qZA())}function Ce(dn,sn){1&dn&&(d.TgZ(0,"mat-icon",58),d._uU(1,"close"),d.qZA())}function Te(dn,sn){1&dn&&(d.TgZ(0,"span",59),d._uU(1,"Working..."),d.qZA())}function De(dn,sn){1&dn&&(d.TgZ(0,"span",60),d._uU(1,"Passed"),d.qZA())}function fe(dn,sn){1&dn&&(d.TgZ(0,"span",61),d._uU(1,"Failed"),d.qZA())}function xe(dn,sn){1&dn&&d._UZ(0,"mat-spinner",56),2&dn&&d.Q6J("diameter",20)}function Oe(dn,sn){1&dn&&(d.TgZ(0,"mat-icon",57),d._uU(1,"check"),d.qZA())}function Le(dn,sn){1&dn&&(d.TgZ(0,"mat-icon",58),d._uU(1,"close"),d.qZA())}function Gt(dn,sn){1&dn&&(d.TgZ(0,"span",59),d._uU(1,"Working..."),d.qZA())}function Ut(dn,sn){1&dn&&(d.TgZ(0,"span",60),d._uU(1,"Passed"),d.qZA())}function An(dn,sn){1&dn&&(d.TgZ(0,"span",61),d._uU(1,"Failed"),d.qZA())}function $n(dn,sn){if(1&dn&&(d.TgZ(0,"div",31)(1,"span",48),d.YNc(2,xe,1,1,"mat-spinner",49),d.qZA(),d.YNc(3,Oe,2,0,"mat-icon",50),d.YNc(4,Le,2,0,"mat-icon",51),d.TgZ(5,"span"),d._uU(6,"Imap settings: "),d.qZA(),d.YNc(7,Gt,2,0,"span",52),d.YNc(8,Ut,2,0,"span",53),d.YNc(9,An,2,0,"span",54),d.qZA()),2&dn){const fn=d.oxw(4);d.xp6(2),d.Q6J("ngIf","working"==fn.testParams.imap.status),d.xp6(1),d.Q6J("ngIf","passed"==fn.testParams.imap.status),d.xp6(1),d.Q6J("ngIf","failed"==fn.testParams.imap.status),d.xp6(3),d.Q6J("ngIf","working"==fn.testParams.imap.status),d.xp6(1),d.Q6J("ngIf","passed"==fn.testParams.imap.status),d.xp6(1),d.Q6J("ngIf","failed"==fn.testParams.imap.status)}}function xn(dn,sn){if(1&dn&&(d.ynx(0),d.TgZ(1,"div",47)(2,"div",31)(3,"span",48),d.YNc(4,_e,1,1,"mat-spinner",49),d.qZA(),d.YNc(5,ge,2,0,"mat-icon",50),d.YNc(6,Ce,2,0,"mat-icon",51),d.TgZ(7,"span"),d._uU(8,"Smtp settings: "),d.qZA(),d.YNc(9,Te,2,0,"span",52),d.YNc(10,De,2,0,"span",53),d.YNc(11,fe,2,0,"span",54),d.qZA(),d.YNc(12,$n,10,6,"div",55),d.qZA(),d.BQk()),2&dn){const fn=d.oxw(3);d.xp6(4),d.Q6J("ngIf","working"==fn.testParams.smtp.status),d.xp6(1),d.Q6J("ngIf","passed"==fn.testParams.smtp.status),d.xp6(1),d.Q6J("ngIf","failed"==fn.testParams.smtp.status),d.xp6(3),d.Q6J("ngIf","working"==fn.testParams.smtp.status),d.xp6(1),d.Q6J("ngIf","passed"==fn.testParams.smtp.status),d.xp6(1),d.Q6J("ngIf","failed"==fn.testParams.smtp.status),d.xp6(1),d.Q6J("ngIf",fn.imapRequired)}}function mt(dn,sn){if(1&dn){const fn=d.EpF();d.TgZ(0,"div")(1,"div",26)(2,"div",31),d.YNc(3,xn,13,7,"ng-container",10),d.qZA(),d.TgZ(4,"div",31)(5,"div",45)(6,"button",46),d.NdJ("click",function(){d.CHM(fn);const nn=d.oxw(2);return d.KtG(nn.testEmailProfileSettings())}),d._uU(7),d.ALo(8,"translate"),d.qZA()()()()()}if(2&dn){d.oxw();const fn=d.MAs(1),yi=d.oxw();d.xp6(3),d.Q6J("ngIf",yi.testParams.started),d.xp6(3),d.Q6J("disabled",fn.invalid),d.xp6(1),d.hij(" ",d.lcZ(8,3,"testSettings")," ")}}function ut(dn,sn){if(1&dn){const fn=d.EpF();d.TgZ(0,"form",1,2),d.NdJ("change",function(){d.CHM(fn);const nn=d.oxw();return d.KtG(nn.onFormValueChange())}),d.TgZ(2,"div",3)(3,"fieldset",4)(4,"legend")(5,"p",5),d._uU(6,"Email Profile"),d.qZA()(),d.YNc(7,K,4,8,"div",6),d.YNc(8,me,4,8,"div",6),d.YNc(9,J,13,10,"div",7),d.YNc(10,Q,12,17,"div",8),d.YNc(11,de,8,11,"div",8),d.YNc(12,te,3,2,"div",9),d.YNc(13,j,7,12,"div",8),d.YNc(14,z,9,12,"div",8),d.YNc(15,ne,8,10,"div",8),d.YNc(16,mt,9,5,"div",10),d.qZA()()()}if(2&dn){const fn=d.oxw();d.xp6(7),d.Q6J("ngIf",fn.showChoiceDropdown),d.xp6(1),d.Q6J("ngIf",2==fn.choice),d.xp6(1),d.Q6J("ngIf",!fn.isEmailProfileSelected),d.xp6(1),d.Q6J("ngIf",!fn.isEmailProfileSelected),d.xp6(1),d.Q6J("ngIf",!fn.isEmailProfileSelected),d.xp6(1),d.Q6J("ngIf",!fn.isEmailProfileSelected),d.xp6(1),d.Q6J("ngIf",fn.imapRequired&&!fn.isEmailProfileSelected),d.xp6(1),d.Q6J("ngIf",fn.imapRequired&&!fn.isEmailProfileSelected),d.xp6(1),d.Q6J("ngIf",fn.imapRequired&&!fn.isEmailProfileSelected),d.xp6(1),d.Q6J("ngIf",fn.testParams.testRequired)}}let Wt=(()=>{class dn{constructor(fn,yi,nn,Mi){this.emailService=fn,this.commonService=yi,this.personService=nn,this.utilityService=Mi,this.hide=!0,this.standAlone=!1,this.saveSuccess=!1,this.snackbarConfig={},this.opened=!1,this.emailCountPerSyncOptions=[10,25,50,100],this.imapRequired=!1,this.testParams={},this.entity="",this.isEmailProfileSelected=!0,this.choiceList=[],this.isChoiceSelected=!1,this.showChoiceDropdown=!0,this.isEmailExist=!1,this.existingEmailSelected=!1,this.emailProfileTypeList=[],this.currentPersonDetail=[],this._unsubscribeAll=new e.x,this.subscriptions=new n.w0,this.disableNextButton=!1,this.officeId=parseInt(this.utilityService.getTokenValueByKey("officeId")),this.emailOrganizationId=parseInt(this.utilityService.getTokenValueByKey("organizationId"))}ngOnInit(){this.personService.currentPersonDetail.pipe((0,a.R)(this._unsubscribeAll)).subscribe(fn=>{this.currentPersonDetail=fn}),this.getEmailProfileTypeList(),this.entity=this.data.entityData.entity?this.data.entityData.entity.toLowerCase():"",this.data.hasOwnProperty("showChoiceDropdown")&&(this.showChoiceDropdown=this.data.showChoiceDropdown),1==this.data.standAlone?(this.standAlone=!0,this.data.onlyEdit?(this.getEmailProfileDetail(this.data.selectedData),this.showChoiceDropdown=!1):this.forModeAdd()):"edit"==this.data.mode?"tenantorganization"==this.entity||"customer"==this.entity||"newcustomer"==this.entity?this.getEmailProfileDetail(this.data.selectedData):this.forModeEdit():"add"==this.data.mode&&this.forModeAdd()}ngAfterViewInit(){this.getChoiceList()}imapRequiredChecked(fn){fn.checked&&(this.testParams.passed=void 0)}getEmailProfileTypeList(){this.commonService.ListItem("EmailProfileType",this.currentPersonDetail.officeId).pipe((0,a.R)(this._unsubscribeAll)).subscribe(fn=>{this.emailProfileTypeList=fn})}checkEmailAddress(fn){fn.control.valid&&this.model.emailAddress&&"add"==this.data.mode.toLowerCase()&&this.commonService.emailAddressCheck({emailAddress:this.model.emailAddress,organizationId:this.emailOrganizationId}).pipe((0,a.R)(this._unsubscribeAll)).subscribe(yi=>{yi.exist?(this.utilityService.callSnackBar("Email address already exists.","warning",{duration:1e4}),this.disableNextButton=!0):this.disableNextButton=!1})}emailAddressChanged(fn,yi){yi.control.markAsDirty(),this.model.username=fn}onIsCompanyEmail(fn){fn.checked||(this.model.emailSyncCount=-1)}activate(){if(null==this.testParams.passed&&this.resetTestParams(),this.standAlone)this.data.onlyEdit||"tenantorganization"!==this.entity&&"customer"!==this.entity&&"newcustomer"!==this.entity?this.isEmailProfileSelected=!1:("tenantorganization"==this.entity||"customer"==this.entity||"newcustomer"==this.entity)&&(this.isEmailProfileSelected=!0,this.testParams.testRequired=!1);else if("tenantorganization"!==this.entity&&"customer"!==this.entity&&"newcustomer"!==this.entity)this.isEmailProfileSelected=!1,this.showChoiceDropdown=!1;else if(("tenantorganization"==this.entity||"customer"==this.entity||"newcustomer"==this.entity)&&(this.isEmailProfileSelected=!0,this.testParams.testRequired=!1,!this.data.standAlone&&this.showChoiceDropdown&&this.choiceDDL)){let fn=this.choiceList.find(yi=>yi.choiceId==this.choiceDDL);if(fn){let yi=this.model;this.onChoiceSelected([fn],"old"),this.model={...yi}}}}resetTestParams(){this.testParams.smtp={},this.testParams.imap={},this.testParams.testRequired=!0,this.testParams.started=!1,this.testParams.passed=void 0}validate(fn){return new Promise(yi=>"previous"==fn?yi(!0):this.data.onlyEdit?this.emailProfileForm.valid?null!=this.testParams.passed?yi(this.emailProfileForm.valid):(this.utilityService.callSnackBar("emailProfileTestRequest","info"),yi(!1)):(this.utilityService.callSnackBar("Please fill out all the required fields correctly!","warning"),yi(!1)):!this.standAlone||"tenantorganization"!=this.entity&&"customer"!=this.entity&&"newcustomer"!=this.entity?this.emailProfileForm.valid?null!=this.testParams.passed?yi(this.emailProfileForm.valid):(this.utilityService.callSnackBar("emailProfileTestRequest","info"),yi(!1)):(this.utilityService.callSnackBar("Please fill out all the required fields correctly.","warning"),yi(!1)):this.isChoiceSelected?3==this.choice?yi(!0):2==this.choice?this.emailProfileList?this.emailProfileForm.valid?null!=this.testParams.passed?yi(this.emailProfileForm.valid):(this.utilityService.callSnackBar("Please test email profile first.","info"),yi(!1)):(this.utilityService.callSnackBar("Please fill out all the required fields correctly.","warning"),yi(!1)):(this.utilityService.callSnackBar("Please choose an email profile first.","warning"),yi(!1)):1==this.choice?this.emailProfileForm.valid?null!=this.testParams.passed?yi(this.emailProfileForm.valid):(this.utilityService.callSnackBar("Please test email profile first.","info"),yi(!1)):(this.utilityService.callSnackBar("Please fill out all the required fields correctly.","warning"),yi(!1)):void 0:(this.utilityService.callSnackBar("Please select an action first","warning"),yi(!1)))}forModeAdd(){this.commonService.ListItem("EncryptionType",this.officeId).pipe((0,a.R)(this._unsubscribeAll)).subscribe(fn=>{this.encryptionTypeList=fn}),this.model={},this.model.emailProfileId=0,this.sharedData.formType=this.data.mode}forModeEdit(){this.sharedData.formType=this.data.mode,this.emailService.getEmailProfile(!0).pipe((0,a.R)(this._unsubscribeAll)).subscribe(fn=>{this.model=fn,this.pw=fn.password,this.encryptionTypeList=this.utilityService.toCamelCase(JSON.parse(fn.encryptionType)),this.model.imapServer&&(this.imapRequired=!0)})}getChoiceList(){this.choiceList=[{choiceId:1,message:"Create new Email Profile",selected:!1},{choiceId:2,message:"Use existing Email Profile",selected:!1},{choiceId:3,message:"Email Profile not required",selected:!1}],this.resetTestParams()}onChoiceSelected(fn,yi){"old"!==yi&&this.resetTestParams(),0==Object.keys(fn).length?(this.isChoiceSelected=!1,this.showChoiceDropdown=!0,this.isEmailExist=!1,this.isEmailProfileSelected=!0,this.existingEmailSelected=!1,this.selectedEmailProfile=void 0,this.resetTestParams(),this.testParams.testRequired=!1,this.choice=void 0):(this.isChoiceSelected=!0,1==fn[0].choiceId?(this.choice=1,this.selectedEmailProfile=void 0,this.isEmailProfileSelected=!1,this.testParams.testRequired=!0,this.model={},(Object.keys(this.testParams).length=0)&&this.resetTestParams()):2==fn[0].choiceId?(this.choice=2,this.existingEmailSelected=!1,this.isEmailProfileSelected=!0,this.testParams.testRequired=!1,this.getEmailProfileList()):3==fn[0].choiceId&&(this.choice=3,this.isEmailProfileSelected=!0,this.testParams.testRequired=!1,this.testParams.passed=!0,this.selectedEmailProfile={emailProfileId:-1},this.isEmailExist=!0,this.existingEmailSelected=!0))}getEmailProfileList(){this.standAlone?("tenantorganization"==this.entity||"customer"==this.entity||"newcustomer"==this.entity)&&(this.organizationId=this.data.entityData.entityId):("tenantorganization"==this.entity||"customer"==this.entity||"newcustomer"==this.entity)&&(this.organizationId=this.sharedData.orgParams.tenantOrganization[0].copyFromOrganizationId),"tenantorganization"==this.entity||"customer"==this.entity||"newcustomer"==this.entity?this.emailService.getOrganizationEmailProfileList({organizationId:this.organizationId},!0).pipe((0,a.R)(this._unsubscribeAll)).subscribe(fn=>{if(this.emailProfileList=fn,this.emailProfileDDL){let yi=this.emailProfileList.find(nn=>nn.emailProfileId==this.emailProfileDDL);this.onEmailProfileListSelect([yi],"old")}}):this.emailService.getPersonEmailProfile().pipe((0,a.R)(this._unsubscribeAll)).subscribe(fn=>{fn&&(this.emailProfileList=fn)})}onEmailProfileListSelect(fn,yi){"old"!==yi&&this.resetTestParams(),0==Object.keys(fn).length?(this.selectedEmailProfile=void 0,this.isEmailProfileSelected=!0,this.existingEmailSelected=!1,this.resetTestParams()):(this.selectedEmailProfile=fn[0],this.getEmailProfileDetail(this.selectedEmailProfile),this.existingEmailSelected=!0,this.isEmailProfileSelected=!0,this.testParams.testRequired=!0,(Object.keys(this.testParams).length=0)&&this.resetTestParams())}getEmailProfileDetail(fn){this.emailService.getEmailProfileDetail({emailProfileId:fn.emailProfileId},!0).pipe((0,a.R)(this._unsubscribeAll)).subscribe(yi=>{this.isEmailProfileSelected=!1,this.model=yi,this.pw=this.model.password,this.encryptionTypeList=this.utilityService.toCamelCase(JSON.parse(this.model.encryptionType)),this.model.imapServer&&(this.imapRequired=!0)})}onFormValueChange(){this.resetTestParams()}save(){if(this.model.encryptionType=null,!this.standAlone)return"tenantorganization"==this.entity||"customer"==this.entity||"newcustomer"==this.entity?(this.sharedData.orgParams.tenantOrganization[0].emailProfile=this.selectedEmailProfile?this.selectedEmailProfile:this.model,(0,o.of)(!0)):this.emailProfileForm.valid?(this.sharedData.testParams=this.testParams,this.sharedData.formType=this.data.mode,this.sharedData.action=this.data.mode,this.sharedData.model=this.model,this.sharedData.model.shareWith=this.emailService.shareWith,this.sharedData.imapRequired=this.imapRequired,this.sharedData.emailProfileForm=this.emailProfileForm,(0,o.of)(!0)):(this.utilityService.callSnackBar("Please fill out all the required fields correctly.","warning"),(0,o.of)(!1));if(!this.data.onlyEdit){if("tenantorganization"==this.entity||"customer"==this.entity||"newcustomer"==this.entity){if(1==this.choice)return this.model.verifiedDate=1==this.testParams.passed?new Date:null,this.model.addNew=1,this.model.officeStaff=null,this.model.entityId=this.data.entityData.entityId,null!==this.data.selectedData&&(this.model.organizationOptionId=this.data.selectedData.organizationOptionId?this.data.selectedData.organizationOptionId:0,this.model.optionId=this.data.selectedData.optionId?this.data.selectedData.optionId:0),this.commonService.insertOrganizationEmailProfile(this.model).pipe((0,l.U)(fn=>{if(fn)return this.sharedData.emailProfile=fn,!0}));{3==this.choice&&(this.model.emailProfileId=-1);let fn=this.utilityService.getDirtyValues(this.emailProfileForm);return this.model.entityId=this.data.entityData.entityId,fn.emailProfile&&fn.emailProfile.emailProfile&&fn.emailProfile.choice&&(delete fn.emailProfile.emailProfile,delete fn.emailProfile.choice),null!==fn&&Object.keys(fn).length>0&&this.commonService.dynamicUpdate(fn).subscribe(yi=>{yi&&(this.model.verificationStatus=this.testParams.passed?"verified":"notVerified",this.sharedData.editedData=this.model)}),this.model.officeStaff=null,null==this.data.selectedData?(this.model.addNew=1,this.commonService.insertOrganizationEmailProfile(this.model).pipe((0,l.U)(yi=>{if(yi)return this.sharedData.emailProfile=yi,!0}))):this.data.selectedData.emailProfileId!==this.model.emailProfileId?(this.model.addNew=0,this.model.organizationOptionId=this.data.selectedData.organizationOptionId,this.commonService.insertOrganizationEmailProfile(this.model).pipe((0,l.U)(yi=>{if(yi)return this.sharedData.emailProfile=this.utilityService.toCamelCase(JSON.parse(yi.result)),!0}))):(this.utilityService.callSnackBar("Email profile updated successfully","success"),(0,o.of)(!0))}}return this.emailProfileForm.valid?(this.sharedData.formType=this.data.mode,this.sharedData.action=this.data.mode,this.model.verifiedDate=1==this.testParams.passed?new Date:null,this.imapRequired||(this.model.imapServer=null,this.model.imapPort=null,this.model.imapEncryptionTypeListItemId=null,this.model.replyToEmail=null),this.emailService.createEmailProfile(this.model).pipe((0,l.U)(fn=>{if(fn){const yi=this.emailService.profiles,nn=yi.length,Mi={emailProfileId:(fn=JSON.parse(fn.emailProfile))[0].emailProfileId,emailAddress:this.model.emailAddress,username:this.model.username,verifiedDate:this.model.verifiedDate,selected:0==yi.length};return yi.push(Mi),0==nn&&this.emailService.currentEmailProfile.next(Mi),this.sharedData.model=this.model,!0}return!1}))):(this.utilityService.callSnackBar("Please fill out all the required fields correctly.","warning"),(0,o.of)(!1))}{let fn=this.utilityService.getDirtyValues(this.emailProfileForm);if(!fn)return this.utilityService.callSnackBar("Email Profile updated successfully.","success"),(0,o.of)(!0);if(this.model.entityId=this.data.entityData.entityId,null!==fn&&Object.keys(fn).length>0)return this.imapRequired||(fn.emailProfile[this.model.emailProfileId]||(fn.emailProfile[this.model.emailProfileId]={}),fn.emailProfile[this.model.emailProfileId].imapServer=null,fn.emailProfile[this.model.emailProfileId].imapPort=null,fn.emailProfile[this.model.emailProfileId].imapEncryptionTypeListItemId=null,fn.emailProfile[this.model.emailProfileId].replyToEmail=null),fn.emailProfile.hasOwnProperty("toBeRemoved")&&delete fn.emailProfile.toBeRemoved,fn.emailProfile[this.model.emailProfileId].verifiedDate=1==this.testParams.passed?this.emailService.getDate():null,this.commonService.dynamicUpdate(fn).pipe((0,l.U)(yi=>!!yi&&(this.model.verificationStatus=this.testParams.passed?"verified":"notVerified",this.data.selectedData&&(this.model.optionId=this.data.selectedData.optionId,this.model.option=this.data.selectedData.option),this.sharedData.emailProfile=this.model,!0)))}return(0,o.of)(!1)}close(fn){this.opened=!1}open(){this.opened=!0}getDirtyValues(fn){let yi={};return Object.keys(fn.controls).forEach(nn=>{let Mi=fn.controls[nn];Mi.dirty&&(yi[nn]=Mi.value,Mi.controls&&(yi[nn]=this.getDirtyValues(Mi)))}),yi}testEmailProfileSettings(){if(this.resetTestParams(),this.testParams.started=!0,"passed"!=this.testParams.smtp.status){this.testParams.smtp.status="working";let fn={...this.model};fn.smtpEncryptionType=this.encryptionTypeList.find(yi=>yi.listItemId==fn.smtpEncryptionTypeListItemId).listItem,this.emailService.emailOutboundSettingTest(fn).pipe((0,a.R)(this._unsubscribeAll)).subscribe(yi=>{yi.success?(this.testParams.smtp.status="passed",(!this.imapRequired||this.imapRequired&&"passed"==this.testParams.imap.status)&&(this.testParams.passed=!0,this.utilityService.callSnackBar("smtpConnected","success"))):(this.testParams.smtp.status="failed",this.testParams.passed=!1,this.snackbarConfig.duration=2e4,this.utilityService.callSnackBar(yi.message,"error",this.snackbarConfig))})}if(this.imapRequired){this.testParams.imap.status="working";let fn={...this.model};fn.imapEncryptionType=this.encryptionTypeList.find(yi=>yi.listItemId==fn.imapEncryptionTypeListItemId).listItem,this.emailService.emailInboundSettingTest(fn).pipe((0,a.R)(this._unsubscribeAll)).subscribe(yi=>{yi.success?(this.testParams.imap.status="passed","passed"==this.testParams.smtp.status&&(this.testParams.passed=!0),this.utilityService.callSnackBar("imapConnected","success")):(this.testParams.imap.status="failed",this.testParams.passed=!1,this.snackbarConfig.duration=2e4,this.utilityService.callSnackBar(yi.message,"error",this.snackbarConfig))})}}ngOnDestroy(){this.emailService.shareWith=[],this._unsubscribeAll.next(),this._unsubscribeAll.complete()}stepperClose(){return{response:!!this.emailProfileForm&&this.utilityService.isFormDirty(this.emailProfileForm)}}static#e=this.\u0275fac=function(yi){return new(yi||dn)(d.Y36(s.j),d.Y36(A.v),d.Y36(_.R),d.Y36(C.t))};static#t=this.\u0275cmp=d.Xpm({type:dn,selectors:[["zen-email-profile-form"]],viewQuery:function(yi,nn){if(1&yi&&(d.Gf(P,5),d.Gf(O,5),d.Gf(U,5)),2&yi){let Mi;d.iGM(Mi=d.CRH())&&(nn.emailProfileForm=Mi.first),d.iGM(Mi=d.CRH())&&(nn.epOption=Mi.first),d.iGM(Mi=d.CRH())&&(nn.epList=Mi.first)}},features:[d._Bn([u.w])],decls:1,vars:1,consts:[["id","emailProfileForm","autocomplete","off","name","emailProfileForm","class","event-form w-100-p pt-12",3,"change",4,"ngIf"],["id","emailProfileForm","autocomplete","off","name","emailProfileForm",1,"event-form","w-100-p","pt-12",3,"change"],["emailProfileForm","ngForm"],["ngModelGroup","emailProfile","fxLayout","column","fxFlex",""],["fxLayout","column","fxFlex","100",1,"mb-12"],[1,"m-0","p-0"],["fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","12px","class","pt-12",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","12px",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","class","pb-12",4,"ngIf"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center"],["nameField","message","valueField","choiceId","name","choice","tabindex","0","autofocus","","required","",1,"zen-select","chip-black",3,"data","multiple","ngModel","columns","placeholder","selectEvent","ngModelChange"],["epOption",""],["nameField","username","valueField","emailProfileId","name","emailProfile","required","",1,"zen-select","chip-black",3,"data","multiple","ngModel","columns","placeholder","selectEvent","ngModelChange"],["epList",""],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","12px",1,"pt-12"],["fxFlex","",1,"w-100-p",3,"ngModelGroup"],["matInput","","name","emailAddress","type","email","autoComplete","false","zen-validator","emailProfile.emailAddress","required","",3,"ngModel","placeholder","ngModelChange","blur"],["emailAddressInput","ngModel"],["fxFlex","",1,"mr-sm-12","w-100-p"],["matInput","","name","username","type","text","required","",3,"ngModel","ngModelGroup","placeholder","ngModelChange"],["usernameInput","ngModel"],["align","end"],["type","email",2,"display","none"],["type","password",2,"display","none"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","12px"],["fxFlex","",1,"mr-sm-12"],["matInput","","name","password","zen-validator","emailProfile.password","required","",3,"ngModel","ngModelGroup","placeholder","type","ngModelChange"],["matSuffix","",3,"click"],["matInput","","name","profile",3,"ngModel","ngModelGroup","placeholder","ngModelChange"],["fxFlex",""],["matInput","","name","smtpServer","zen-validator","emailProfile.smtpServer","type","text","required","",3,"ngModel","ngModelGroup","placeholder","ngModelChange"],["matInput","","name","smtpPort","zen-validator","emailProfile.smtpPort","type","number","required","",3,"ngModel","ngModelGroup","placeholder","ngModelChange"],["name","smtpEncryptionTypeListItemId","zen-validator","emailProfile.encryptionType","required","",3,"ngModel","ngModelGroup","placeholder","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["fxLayout","row","fxLayoutAlign","start center",1,"pb-12"],["ngModelGroup","toBeRemoved","name","imapRequired",3,"ngModel","labelPosition","ngModelChange","change"],["matInput","","name","imapServer","type","text",3,"ngModel","ngModelGroup","placeholder","zen-validator","ngModelChange"],["matInput","","name","imapPort","type","number",3,"ngModel","ngModelGroup","placeholder","zen-validator","ngModelChange"],["name","imapEncryptionTypeListItemId",3,"ngModel","ngModelGroup","zen-validator","placeholder","ngModelChange"],["matInput","","name","signature",1,"signature",3,"ngModel","ngModelGroup","placeholder","ngModelChange"],["name","emailProfileTypeListItemId","required","",3,"ngModel","ngModelGroup","placeholder","ngModelChange","change"],["name","emailSyncCount","placeholder","Email Count Per Sync","required","",3,"ngModel","ngModelGroup","disabled","ngModelChange"],[1,"text-right","pb-8"],["mat-raised-button","","type","button",1,"accent",3,"disabled","click"],["fxLayout","row","fxLayout.gt-xs","column",1,"msg-progress-box"],[1,"pull-left"],[3,"diameter",4,"ngIf"],["class","s-12 mr-8 green-fg",4,"ngIf"],["class","s-12 mr-8 red-fg",4,"ngIf"],["class","mail-test-working",4,"ngIf"],["class","mail-test-passed",4,"ngIf"],["class","mail-test-failed",4,"ngIf"],["fxFlex","",4,"ngIf"],[3,"diameter"],[1,"s-12","mr-8","green-fg"],[1,"s-12","mr-8","red-fg"],[1,"mail-test-working"],[1,"mail-test-passed"],[1,"mail-test-failed"]],template:function(yi,nn){1&yi&&d.YNc(0,ut,17,10,"form",0),2&yi&&d.Q6J("ngIf",nn.model)},dependencies:[R.sg,R.O5,x._Y,x.Fj,x.wV,x.JJ,x.JL,x.Q7,x.On,x.Mq,x.F,f.xw,f.SQ,f.Wh,f.yH,k.v_,k.pH,k.nX,w.k0,g.Hw,M.eB,p.x8,E.CK,b.sN,I.FC,L.i,D.p,F.X$],styles:[".mail-compose-dialog .mat-dialog-container{padding:0}.mail-compose-dialog .mat-dialog-container .compose-form .mat-form-field{width:100%}.mail-compose-dialog .dialog-content-wrapper{max-height:85vh;display:flex;flex-direction:column;width:65vw}#emailProfileForm .show-hide-extra-fields{text-align:right;cursor:pointer;font-size:12px}#emailProfileForm ul{list-style:none;padding:0;margin:0}#emailProfileForm ul li{padding-right:15px}#emailProfileForm ul li:nth-child(3n){padding-right:0}#emailProfileForm ul li:nth-child(11){padding-right:0}#emailProfileForm ul li .mat-form-field{display:block}.email-profile-popup .mat-dialog-container{padding:0}.email-profile-popup .mat-dialog-container .compose-form .mat-form-field{width:100%}.email-profile-popup .dialog-content-wrapper{width:65vw;max-height:85vh;display:flex;flex-direction:column}@media screen and (max-width: 599px){.email-profile-popup .dialog-content-wrapper{width:auto}}.email-profile-popup .dialog-content-wrapper .mat-horizontal-content-container{padding:0}.email-profile-popup .dialog-content-wrapper zen-stepper .mat-dialog-content{min-height:calc(100vh - 308px)}\n"],encapsulation:2})}return dn})()},35364:(he,y,i)=>{"use strict";i.d(y,{m:()=>f});var e=i(91438),n=i(13868),o=i(24678),a=i(12430),l=i(20180),u=i(84187),d=i(42400),s=i(30617),A=i(94505),_=i(89515),C=i(48424),R=i(45754),x=i(65879);let f=(()=>{class k{static#e=this.\u0275fac=function(M){return new(M||k)};static#t=this.\u0275mod=x.oAB({type:k});static#n=this.\u0275inj=x.cJS({imports:[l.L,u.wp,d.x4,s.Ps,A.yu,C.uw,o.Uc,e.UK,R.Zh,a.L,n.g,_.aw]})}return k})()},17828:(he,y,i)=>{"use strict";i.d(y,{w:()=>u});var e=i(22096),n=i(37398),o=i(65879),a=i(70144),l=i(74187);let u=(()=>{class d{constructor(A,_){this.emailService=A,this.utilityService=_}createEmailProfile(){return 1==this.sharedData.testParams.passed&&(this.sharedData.model.verifiedDate=new Date),this.sharedData.imapRequired||(this.sharedData.imapServer=null,this.sharedData.imapPort=null,this.sharedData.imapEncryptionTypeListItemId=null,this.sharedData.replyToEmail=null),this.sharedData.model.shareWith=this.sharedData.shareWith,this.emailService.createEmailProfile(this.sharedData.model).pipe((0,n.U)(A=>{if(A){const _=this.emailService.profiles,C=_.length,R={emailProfileId:(A=JSON.parse(A.emailProfile))[0].emailProfileId,emailAddress:this.sharedData.model.emailAddress,username:this.sharedData.model.username,verifiedDate:this.sharedData.model.verifiedDate,selected:0==_.length};return _.push(R),0==C&&this.emailService.currentEmailProfile.next(R),!0}return!1}))}save(){if("add"==this.sharedData.action)return this.createEmailProfile();if("edit"==this.sharedData.action){let A=this.utilityService.getDirtyValues(this.sharedData.emailProfileForm);return A||(A={emailProfile:{}},A.emailProfile[this.sharedData.model.emailProfileId]={}),this.sharedData.imapRequired||(A.emailProfile[this.sharedData.model.emailProfileId]||(A.emailProfile[this.sharedData.model.emailProfileId]={}),A.emailProfile[this.sharedData.model.emailProfileId].imapServer=null,A.emailProfile[this.sharedData.model.emailProfileId].imapPort=null,A.emailProfile[this.sharedData.model.emailProfileId].imapEncryptionTypeListItemId=null,A.emailProfile[this.sharedData.model.emailProfileId].replyToEmail=null),A.emailProfile.hasOwnProperty("toBeRemoved")&&delete A.emailProfile.toBeRemoved,A.emailProfile[this.sharedData.model.emailProfileId].verifiedDate=1==this.sharedData.testParams.passed?this.emailService.getDate():null,this.emailService.udpateEmailProfile({dynamicUpdJson:A,emailProfileId:this.sharedData.model.emailProfileId,shareWith:this.sharedData.shareWith}).pipe((0,n.U)(_=>{if(_){const C=this.emailService.profiles,R=C.indexOf(this.emailService.currentEmailProfile.getValue());return C[R].username=this.sharedData.model.username,C[R].emailAddress=this.sharedData.model.emailAddress,C[R].verifiedDate=A.emailProfile[this.sharedData.model.emailProfileId].verifiedDate,!0}}))}return"share"==this.sharedData.action?this.emailService.udpateEmailProfile({dynamicUpdJson:{},emailProfileId:this.emailService.currentEmailProfile.getValue().emailProfileId,shareWith:this.sharedData.shareWith}).pipe((0,n.U)(A=>{if(A)return!0})):(0,e.of)(!1)}static#e=this.\u0275fac=function(_){return new(_||d)(o.LFG(a.j),o.LFG(l.t))};static#t=this.\u0275prov=o.Yz7({token:d,factory:d.\u0275fac})}return d})()},46493:(he,y,i)=>{"use strict";i.d(y,{U:()=>ge});var e=i(94505),n=i(45754),o=i(26177),a=i(23680),l=i(84187),u=i(30617),d=i(42400),s=i(78250),A=i(11194),_=i(91438),C=i(48424),R=i(45895),x=i(30481),f=i(81274),k=i(90247),w=i(16672),g=i(20180),M=i(3209),p=i(92415),E=i(85947),b=i(98148),I=i(89515),L=i(87411),D=i(14165),F=i(48979),P=i(12430),O=i(13868),U=i(47805),V=i(58271),K=i(66878),X=i(96814),me=i(65879);let J=(()=>{class Ce{static#e=this.\u0275fac=function(fe){return new(fe||Ce)};static#t=this.\u0275mod=me.oAB({type:Ce});static#n=this.\u0275inj=me.cJS({imports:[K.yj,e.yu,f.g0,X.ez,g.L,P.L,I.aw,u.Ps]})}return Ce})();var Q=i(64190),re=i(35364),de=i(8379),te=i(96629),j=i(87903),H=i(32333),z=i(54226),q=i(24678);let se=(()=>{class Ce{static#e=this.\u0275fac=function(fe){return new(fe||Ce)};static#t=this.\u0275mod=me.oAB({type:Ce});static#n=this.\u0275inj=me.cJS({providers:[z.y],imports:[g.L,I.aw,K.yj,u.Ps,H.Nn,f.g0,l.wp,e.yu,d.x4,de.Q,P.L,q.Uc,C.uw]})}return Ce})();var ne=i(48134),_e=i(59430);let ge=(()=>{class Ce{static#e=this.\u0275fac=function(fe){return new(fe||Ce)};static#t=this.\u0275mod=me.oAB({type:Ce});static#n=this.\u0275inj=me.cJS({imports:[Q.Bz,D.I,E.o9,g.L,e.yu,n.Zh,l.wp,u.Ps,d.x4,s.jT,a.si,C.uw,f.g0,R.y,ne.jc,k.Rq,w.Cl,M.uh,p.D,V.k,b.ef,I.aw,L.L,F.i,A.gf,P.L,o.yD,_.UK,O.g,U.x,J,re.m,de.Q,te.n,j.O,se,_e.h,x.AA]})}return Ce})()},70144:(he,y,i)=>{"use strict";i.d(y,{j:()=>_});var e=i(65619),n=i(7110),o=i(65879),a=i(69862),l=i(6738),u=i(96814),d=i(74187),s=i(710),A=i(28011);let _=(()=>{class C{constructor(x,f,k,w,g,M){this.http=x,this.ws=f,this.location=k,this.us=w,this.cs=g,this.eds=M,this.basePath=n.XL.settings.apiUrl+"Email/",this.searchText="",this.shareWith=[],this.showSlideView=!1,this.currentLocation="",this.internalNavEmailFromDropdownChanged=new e.X([]),this.onMailsChanged=new e.X([]),this.ETCMailsData=new e.X([]),this.onSelectedMailsChanged=new e.X([]),this.onToggleShowEmailView=new e.X(null),this.onCurrentMailChanged=new e.X([]),this.onFoldersChanged=new e.X([]),this.onSearchTextChanged=new e.X(""),this.blockEmailView=new e.X(!1),this.folderName=new e.X(""),this.emailSource=new e.X(""),this.displayName=new e.X(""),this.emailId=new e.X(0),this.seenEmailId=new e.X(0),this.currentEmailProfile=new e.X([]),this.currentEmail=new e.X({}),this.onEntityEmailChanged=new e.X({}),this.selectedFolder=new e.X({}),this.onEmailNavigationSent=new e.X(!1),this.saveEmailAsComment=new e.X(!1),this.showEmailList=new e.X(!1),this.selectedMails=[],this.currentEmailProfile=new e.X({emailProfileId:0})}resolve(x,f){return this.routeParams={folderName:x._routerState.url.substring(7)},new Promise((k,w)=>{Promise.all([this.getEmailProfileList()]).then(()=>{this.setEmailId(this.routeParams.emailId?this.routeParams.emailId:0),this.onMailsChanged.next([]),this.folderName.next(decodeURIComponent(this.routeParams.folderName)),"PersonalMailbox"==this.currentEmailProfile.getValue().emailProfileType?this.getMails():this.onMailsChanged.next([]),k()},w)})}refresh(){this.getEmailProfileList(!0),this.getFolders(!0),this.getMails(!0)}getPreLoadData(x){return this.routeParams={folderName:x?x.toLowerCase():"inbox"},this.folderName.next("inbox"),this.emailSource.next("ETCEmail"),new Promise((f,k)=>{Promise.all([this.getEmailProfileList()]).then(()=>{this.onMailsChanged.next([]),this.folderName.next(decodeURIComponent(this.routeParams.folderName)),"PersonalMailbox"==this.currentEmailProfile.getValue().emailProfileType?this.getMails():this.onMailsChanged.next([]),f()},k)})}getEmailProfileList(x=!1){return new Promise((f,k)=>this.getPersonEmailProfile().subscribe(w=>{if(this.profiles=w,this.profiles.length>0){const g=this.profiles.filter(M=>!0===M.selected)[0];if(!g)return this.currentEmailProfile.next(this.profiles[0]),new Promise((M,p)=>{Promise.all([this.updateCurrentEmailProfile()]).then(([])=>(this.setCurrentEmailProfile(this.profiles[0]),M(!0)),p)});this.currentEmailProfile.next(g),this.nowEmailProfile=g}f(this.profiles)},k))}getMails(x=!1,f=null){if("PersonalMailbox"==this.currentEmailProfile.getValue().emailProfileType){this.currentEmailProfile.getValue()||(this.currentEmailProfile.next({emailProfileId:0}),this.mails=[]);let k={folderName:this.routeParams?decodeURIComponent(this.routeParams.folderName):null,emailProfileId:this.currentEmailProfile.getValue().emailProfileId,refresh:!0};return f&&(k.emailAddress=f),new Promise((w,g)=>this.ws.get(this.basePath+"EmailForFolder",k).subscribe(M=>{this.mails=M?.length>0?M:[],this.onMailsChanged.next(M),w(this.mails)},g))}this.onMailsChanged.next([])}getPersonEmailProfile(){return this.ws.get(this.basePath+"EmailProfileList")}getEntityEmail(x){return this.ws.get(this.basePath+"EntityEmail",{json:JSON.stringify(x)}).subscribe(f=>{this.mails=f;let k=this.us.getPropertyArray(this.mails,"from"),w=[...new Set(k)];this.internalNavEmailFromDropdown=[],w.map(g=>{this.internalNavEmailFromDropdown.push({emailAddress:g,checked:!0})}),this.onMailsChanged.next(f),this.onEntityEmailChanged.next({}),this.emailId.next(this.mails?this.mails[0].uId:0)})}getEmailAddressEntity(x){return this.ws.get(this.basePath+"EmailAddressEntity",{json:JSON.stringify(x)})}getEmailProfileFolder(){return this.ws.get(this.basePath+"EmailProfileFolder",{emailProfileId:this.currentEmailProfile.getValue().emailProfileId}).subscribe(x=>{this.onFoldersChanged.next(x);var k=x.find(w=>w.folderName.toLowerCase()==this.folderName.getValue().toLowerCase());this.folderName.next(k?.folderName),this.displayName.next(k?.displayName)})}getDate(){let x=new Date;return x.getFullYear()+"-"+("0"+(x.getMonth()+1)).slice(-2)+"-"+x.getDate()+" "+x.getHours()+":"+("0"+x.getMinutes()).slice(-2)+":"+x.getSeconds()}getEmailList(x,f,k,w=!1){let g={folderName:x,emailProfileId:this.currentEmailProfile.getValue()?.emailProfileId,nextUId:f,callFrom:k,emailProfileFolderId:this.currentEmail.getValue()?.emailProfileFolderId};return this.ws.get(this.basePath+"EmailForFolder",g,null,w)}getEmailBody(x,f=!1,k=this.currentEmailProfile.getValue().emailProfileId,w=this.folderName.getValue()??decodeURIComponent(this.routeParams.folderName)){let g={};return f&&(g=this.onEntityEmailChanged.getValue()),this.ws.get(this.basePath+"EmailData",{json:JSON.stringify({uId:x,emailProfileId:k,folderName:w,emailOutboundId:g.emailOutboundId,emailType:g.emailType,emailId:g.emailId})},null,!1)}sendEmail(x){return this.ws.post(this.basePath+"CreateEmailOutbound",x)}sendTemplateEmail(x){return this.ws.post(this.basePath+"TemplateEmail",x)}createEmailProfile(x){return this.ws.post(this.basePath+"EmailProfile",x)}emailOutboundSettingTest(x){return this.ws.post(this.basePath+"EmailOutboundSettingTest",x)}emailInboundSettingTest(x){return this.ws.post(this.basePath+"EmailInboundSettingTest",x)}udpateEmailProfile(x){const f={json:JSON.stringify(x)};return this.ws.post(this.basePath+"UpdateEmailProfile",f)}insertEmailSyncQueue(x){return this.ws.post(this.basePath+"EmailSyncQueue",x)}updateCurrentEmailProfile(){return new Promise((x,f)=>this.ws.post(this.basePath+"EmailProfileId",{emailProfileId:this.currentEmailProfile.getValue().emailProfileId}).subscribe(k=>{x(!0)},f))}getClientSecretKeys(){return this.ws.get(this.basePath+"GetOAuthClientSectretKeys")}getEmailProfile(x){return this.ws.get(this.basePath+"EmailProfile",{emailProfileId:this.currentEmailProfile.getValue().emailProfileId,taskPreset:!0,refresh:x})}getOrganizationEmailProfile(x,f){return this.ws.get(this.basePath+"EmailProfile",{emailProfileId:x,taskPreset:!0,refresh:f})}getEmailProfileDetail(x,f){return this.ws.get(this.basePath+"EmailProfileDetailSel",{json:JSON.stringify(x),refresh:f})}getEmailProfileDefault(){return this.ws.get(this.basePath+"EmailProfileDefault")}getOptionEmailProfileDefault(x){return this.ws.get(this.basePath+"OptionEmailProfileDefault",{option:x})}getOrganizationEmailProfileList(x,f){return this.ws.get(this.basePath+"OrganizationEmailProfileList",{json:JSON.stringify(x),refresh:f})}getOfficeStaffList(x){return this.ws.get(this.basePath+"OfficeStaffList",{json:JSON.stringify(x)})}syncEmailProfile(x){return this.ws.post(this.basePath+"EmailProfileSyncOrderIns",{json:JSON.stringify(x)})}removeEmailProfile(x){return this.ws.post(this.basePath+"EmailProfileAccessRemove",{json:JSON.stringify(x)})}beginOAuth(x){return this.ws.get(this.basePath+"OAuthBegin",{json:JSON.stringify(x)})}testOAuth(x){return this.ws.get(this.basePath+"TestOAuthToken",{emailProfileId:x})}getOptionEmailProfile(x){return this.ws.get(this.basePath+"GetOptionEmailProfile",{json:JSON.stringify(x)})}getEmailProfileOptionList(x){return this.ws.get(this.basePath+"GetEmailProfileOptionList",{json:JSON.stringify(x)})}entityOptionEmailProfileTsk(x){return this.ws.post(this.basePath+"EntityOptionEmailProfileTsk",{json:JSON.stringify(x)})}downloadEmailAttachment(x,f,k,w,g=0){return this.ws.getBlob(this.basePath+"EmailAttachment",{emailProfileId:x||this.currentEmailProfile.getValue().emailProfileId,folderName:f||this.folderName.getValue(),fileId:k,uId:w,emailOutboundId:g})}getMicrosoftLoginUrl(){return this.ws.get(this.basePath+"MicrosoftLoginUrl")}addToPersonDocument(x,f){return this.ws.getBlob(this.basePath+"PersonDocument",{emailProfileId:this.currentEmailProfile.getValue().emailProfileId,folderName:this.folderName.getValue(),fileId:x,uId:f})}isUnseen(x){return!(null!=x&&""!=x&&x.split(",").includes("Seen"))}markAsRead(x){if(this.isUnseen(x?.flag)){var f={emailProfileId:this.currentEmailProfile.getValue().emailProfileId,folderName:this.folderName.getValue(),uId:[x?.uId],action:"Seen",value:null};this.insertEmailSyncQueue(f).subscribe(k=>{k&&this.seenEmailId.next(x?.emailId)})}}setFolderName(x){this.folderName.next(x)}setEmailId(x){this.emailId.next(x)}setCurrentEmailProfile(x){this.nowEmailProfile=x,this.setEmailId(0),this.us.navigate("email/inbox/")}getFolders(x=!1){return new Promise((f,k)=>this.ws.get(this.basePath+"EmailProfileFolder",{emailProfileId:this.currentEmailProfile.getValue().emailProfileId}).subscribe(w=>{this.folders=w,this.onFoldersChanged.next(this.folders),f(this.folders)},k))}toggleSelectedMail(x){if(this.selectedMails.length>0)for(const f of this.selectedMails)if(f.emailId===x){const k=this.selectedMails.indexOf(f);if(-1!==k)return this.selectedMails.splice(k,1),void this.onSelectedMailsChanged.next(this.selectedMails)}this.selectedMails.push(this.mails.find(f=>f.emailId===x)),this.onSelectedMailsChanged.next(this.selectedMails)}toggleSelectAll(){this.onSelectedMailsChanged.getValue().length>0?this.deselectMails():this.selectMails()}selectMails(x,f){this.selectedMails=[],void 0===x||void 0===f?this.selectedMails=[...this.onMailsChanged.getValue()]:this.selectedMails.push(...this.mails.filter(k=>k[x]===f)),this.onSelectedMailsChanged.next(this.selectedMails)}deselectMails(){this.selectedMails=[],this.onSelectedMailsChanged.next(this.selectedMails)}setCurrentMail(x){this.setEmailId(x)}static#e=this.\u0275fac=function(f){return new(f||C)(o.LFG(a.eN),o.LFG(l.f),o.LFG(u.Ye),o.LFG(d.t),o.LFG(s.v),o.LFG(A.a))};static#t=this.\u0275prov=o.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})()},78602:(he,y,i)=>{"use strict";i.d(y,{G:()=>l});var e=i(65619),n=i(7110),o=i(65879),a=i(6738);let l=(()=>{class u{constructor(s){this.webApiService=s,this.basePath=n.XL.settings.apiUrl,this.onEmployeeSelected=new e.X({}),this.reloadEmployeeDirectory=new e.X({})}static#e=this.\u0275fac=function(A){return new(A||u)(o.LFG(a.f))};static#t=this.\u0275prov=o.Yz7({token:u,factory:u.\u0275fac})}return u})()},70762:(he,y,i)=>{"use strict";i.d(y,{w:()=>C});var e=i(7110),n=i(65619),o=i(47394),a=i(36711),l=i(65879),u=i(6738),d=i(74187),s=i(66878),A=i(43970),_=i(710);let C=(()=>{class R{constructor(f,k,w,g,M){this.ws=f,this.us=k,this.dialog=w,this.cds=g,this.cs=M,this.snackBarConfig={},this.loading=!1,this.nextBtnDisable=!0,this.internalNavigationId=new n.X(null),this.currentInvoiceBatchId=0,this.basePath=e.XL.settings.apiUrl+"Invoice/",this.batchActionJson={entity:"",entityId:0,action:""},this.entityData=new n.X(null),this.currentCorrectionBatch=new n.X(null),this.currentInvoiceId=new n.X(null),this.enableNextBtn=new n.X(null),this.batchActionResponse=new n.X(null),this.onBatchDiscard=new n.X(null),this.subs=new o.w0}ngOnInit(){}invoiceBatchList(f){return this.ws.get(e.XL.settings.apiUrl+"Invoicing/InvoiceBatch",{Json:JSON.stringify(f),refresh:!0},null,!0)}invoiceBatchTask(f){return this.ws.post(e.XL.settings.apiUrl+"Invoicing/InvoiceBatch",{Json:JSON.stringify(f,this.us.dateReplacer),refresh:!0},null,null,!0)}transactionCorrectionTask(f){return this.ws.post(this.basePath+"TransactionCorrection",{Json:JSON.stringify(f),refresh:!0},null,null,!0)}invoiceCorrection(f){return this.ws.get(this.basePath+"InvoiceCorrection",{Json:JSON.stringify(f),refresh:!0},null,!0)}correctionSelectTask(f){return this.ws.post(this.basePath+"CorrectionSelectProcess",{Json:JSON.stringify(f),refresh:!0},null,null,!0)}transactionCodes(f,k){return this.ws.get(e.XL.settings.apiUrl+"Admin/TransactionCodes",{json:JSON.stringify(f),refresh:k},null)}callSnackBar(f,k,w){this.us.callSnackBar(f,k,w)}correctionBatchActionDialog(f,k){this.cds.action.next(null),this.onDialogOpen=new o.w0;let w="",g="";switch(this.batchActionJson.action=f,this.batchActionJson.entity="InvoiceBatch",this.batchActionJson.entityId=k.invoiceBatchId,f){case"Discard":w="Are you sure you want to discard this Correction Batch?",g="discardCorrectionBatch";break;case"PrintAndPost":w="Are you sure you want to post this Correction Batch? You cannot change anything for this batch after you post it.",g="postCorrectionBatch",this.batchActionJson.action="PrintAndPost",this.nextBtnDisable=!0;break;case"RemoveInvoice":this.batchActionJson.entity="Invoice",w="Are you sure you want to remove this invoice?",g="removeInvoice"}if("Discard"==f||"PrintAndPost"==f||"RemoveInvoice"==f){let p=this.dialog.open(a.$,{width:"600px",data:{headerText:g,confirmationText:w,dialogIcon:"Discard"==f?"warning":null}});this.onDialogOpen.add(this.cds.action.subscribe(E=>{"yes"==E&&this.subs.add(this.cs.batchAction(JSON.stringify(this.batchActionJson)).subscribe(b=>{"Success"==b.msg?(this.us.callSnackBar("success","success"),"PrintAndPost"==f&&(this.batchActionJson.entity="InvoiceAction",this.onBatchDiscard.next(!0),this.batchActionResponse.next(!0)),"Discard"==f&&(this.onBatchDiscard.next(!0),this.batchActionResponse.next(!0))):(this.snackBarConfig.duration="Error"==b.msg?2e3:4500,this.callSnackBar(b.msg,"Error"==b.msg?"error":"info",this.snackBarConfig)),this.cds.close()},b=>{this.batchActionResponse.next(!1),this.us.callSnackBar("error","error"),this.cds.close()}))})),p.afterClosed().subscribe(E=>{"no"==E&&(this.batchActionResponse.next(!1),this.nextBtnDisable=!1,this.loading=!1),this.onDialogOpen.unsubscribe()})}else this.callSnackBar("No functionality set for the current selected action:"+f,"warning")}assignCssClassOnZenSteps(f,k){this.us.assignCssClassOnZenSteps(f,k)}ngOnDestroy(){this.subs.unsubscribe()}static#e=this.\u0275fac=function(k){return new(k||R)(l.LFG(u.f),l.LFG(d.t),l.LFG(s.on),l.LFG(A.D),l.LFG(_.v))};static#t=this.\u0275prov=l.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"})}return R})()},61690:(he,y,i)=>{"use strict";i.d(y,{q:()=>A});var e=i(7110),n=i(65619),o=i(47394),a=i(65879),l=i(6738),u=i(19735),d=i(74187),s=i(66878);let A=(()=>{class _{constructor(R,x,f,k){this.ws=R,this.rs=x,this.us=f,this.dialog=k,this.pageIndex=1,this.pageSize=50,this.searchText=null,this.searchType="Any",this.onSearchTextChanged=new n.X(null),this.onInvoiceChanged=new n.X({}),this.onInvoiceSelected=new n.X({}),this.directoryParam=new n.X({}),this.basePath=e.XL.settings.apiUrl+"Invoice/",this.subs=new o.w0,this.officeId=this.us.getTokenValueByKey("officeId")}resolve(R,x){return this.routeParams=R.params,new Promise((f,k)=>{Promise.all([]).then(()=>{f()},k)})}invoiceDirectory(R){return R||(R={directory:"Invoice",searchType:this.searchType,searchText:this.searchText,pageNumber:this.pageIndex,pageSize:this.pageSize,sortOrder:this.sortOrder,orderBy:this.orderBy,filterYear:this.filterYear}),new Promise((x,f)=>{R.entity?this.invoicesHistory(R).subscribe(k=>{k||(k={}),this.directoryParamsJson=R,this.onInvoiceChanged.next(k),x(k)},f):this.invoicesList(R).subscribe(k=>{k||(k={}),this.directoryParamsJson=R,this.onInvoiceChanged.next(k),x(k)},f)})}mergedInvoicesList(R,x=!0){return this.ws.get(this.basePath+"MergedInvoiceInformation",{Json:JSON.stringify(R),refresh:x},null,!0)}invoicesList(R){return this.ws.post(e.XL.settings.apiUrl+"Common/Directory",{Json:JSON.stringify(R)},null,null,!0)}invoicesHistory(R,x=!0){return this.ws.get(this.basePath+"CustomerInvoiceHistory",{Json:JSON.stringify(R),refresh:x},null,!0)}updateInvoiceInformation(R){return this.ws.post(this.basePath+"InvoiceInformation",{Json:JSON.stringify(R)},null,null,!0)}transactionList(R,x){return this.ws.get(this.basePath+"InvoiceTransaction",{Json:JSON.stringify(R,this.us.dateReplacer),refresh:x},null,!0)}getInvoiceHistory(R,x){return this.ws.get(this.basePath+"InvoiceHistory",{Json:JSON.stringify(R),refresh:x},null,!0)}dashboardData(R){return this.ws.get(this.basePath+"Dashboard",{Json:JSON.stringify(R),refresh:!0},null,!0)}updateTransactionInformation(R,x=!0){return this.ws.post(e.XL.settings.apiUrl+"TimeEntry/TransactionInformationUpdate",{json:JSON.stringify(R),refresh:x},null,null,!0)}invoicePayment(R,x=!0){return this.ws.get(e.XL.settings.apiUrl+"Payment/InvoicePayment",{Json:JSON.stringify(R,this.us.dateReplacer),refresh:x},null,!0)}static#e=this.\u0275fac=function(x){return new(x||_)(a.LFG(l.f),a.LFG(u.r),a.LFG(d.t),a.LFG(s.on))};static#t=this.\u0275prov=a.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"})}return _})()},64875:(he,y,i)=>{"use strict";i.d(y,{t:()=>_});var e=i(65619),n=i(47394),o=i(7110),a=i(36711),l=i(65879),u=i(6738),d=i(74187),s=i(66878),A=i(43970);let _=(()=>{class C{constructor(x,f,k,w){this.ws=x,this.us=f,this.dialog=k,this.cds=w,this.loading=!1,this.nextBtnDisable=!0,this.internalNavigationId=new e.X(null),this.batchActionJson={invoiceMergeId:0,action:""},this.basePath=o.XL.settings.apiUrl+"Invoice/",this.entityData=new e.X(null),this.currentMergeBatch=new e.X(null),this.enableNextBtn=new e.X(null),this.batchActionResponse=new e.X(null),this.onInvoiceListChanged=new e.X(null),this.onMoveToFirstStep=new e.X(null),this.subs=new n.w0}ngOnInit(){}invoiceMergeList(x){return this.ws.get(this.basePath+"InvoiceMerge",{Json:JSON.stringify(x),refresh:!0},null,!1)}invoiceMergeInvoiceList(x){return this.ws.get(this.basePath+"InvoiceMergeInvoice",{Json:JSON.stringify(x),refresh:!0},null,!1)}invoiceMergeTransactionItemList(x){return this.ws.get(this.basePath+"InvoiceMergeTransactionItem",{Json:JSON.stringify(x),refresh:!0},null,!1)}invoiceDirectory(x){return new Promise((f,k)=>{this.subs.add(this.ws.post(o.XL.settings.apiUrl+"Common/Directory",{Json:JSON.stringify(x),refresh:!0},null,null,!1).subscribe(w=>{console.log("invoice changed called",w),0==w.totalCount&&(w.data=[]),this.onInvoiceListChanged.next(w),f(w)},k))})}invoiceMergeAction(x){return this.ws.post(this.basePath+"InvoiceMergeActionActivity",{Json:JSON.stringify(x)})}invoiceMergeInvoiceActivity(x){return this.ws.post(this.basePath+"InvoiceMergeInvoiceActivity",{Json:JSON.stringify(x)})}mergeBatchActionDialog(x,f){this.cds.action.next(null),this.onDialogOpen=new n.w0;let k="",w="";switch(this.batchActionJson.action=x,x){case"Discard":k="discardMergeBatchContent",w="discardMergeBatch",this.batchActionJson.invoiceMergeId=f.invoiceMergeId;break;case"PrintAndPost":k="postMergeBatchContent",w="postMergeBatch",this.batchActionJson.invoiceMergeId=f.invoiceMergeId,this.nextBtnDisable=!0}if("Discard"==x||"PrintAndPost"==x){let M=this.dialog.open(a.$,{width:"600px",data:{headerText:w,confirmationText:k,dialogIcon:"Discard"==x?"warning":null}});this.onDialogOpen.add(this.cds.action.subscribe(p=>{"yes"==p&&this.subs.add(this.invoiceMergeAction(this.batchActionJson).subscribe(E=>{E?(this.us.callSnackBar("success","success"),this.batchActionResponse.next(!0),("Discard"==x||"PrintAndPost"==x)&&this.onMoveToFirstStep.next(!0)):this.us.callSnackBar(E.msg,"error"),M.close(null)},E=>{this.batchActionResponse.next(!1),this.us.callSnackBar("error","error"),M.close(null)}))})),M.afterClosed().subscribe(p=>{"no"==p&&(this.batchActionResponse.next(!1),this.nextBtnDisable=!1,this.loading=!1),this.onDialogOpen.unsubscribe()})}else this.us.callSnackBar("noFunctionalitySet","info")}assignCssClassOnZenSteps(x,f){this.us.assignCssClassOnZenSteps(x,f)}ngOnDestroy(){this.subs.unsubscribe()}static#e=this.\u0275fac=function(f){return new(f||C)(l.LFG(u.f),l.LFG(d.t),l.LFG(s.on),l.LFG(A.D))};static#t=this.\u0275prov=l.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})()},40019:(he,y,i)=>{"use strict";i.d(y,{y:()=>l});var e=i(65879),n=i(64190),o=i(32292),a=i(74187);let l=(()=>{class u{constructor(s,A,_){this.router=s,this.js=A,this.us=_}canActivate(s,A){if(this.us.getLocalStorage("token")&&!this.us.isTokenValid()){const C=this.us.getLocalStorage("orgCode"),R=localStorage.getItem("selectedLanguage");localStorage.clear(),sessionStorage.clear(),this.us.setLocalStorage("orgCode",C),R&&localStorage.setItem("selectedLanguage",R)}let _=s.params?.organizationCode;return this.js.organizationOption(_,A.url,s.data.page)}static#e=this.\u0275fac=function(A){return new(A||u)(e.LFG(n.F0),e.LFG(o.a),e.LFG(a.t))};static#t=this.\u0275prov=e.Yz7({token:u,factory:u.\u0275fac})}return u})()},32292:(he,y,i)=>{"use strict";i.d(y,{a:()=>z});var e=i(65619),n=i(78645),o=i(22096),a=i(7110),l=i(66878),u=i(65879),d=i(64190),s=i(94505),A=i(30617),_=i(83814),C=i(27509),R=i(89515);let x=(()=>{class q{constructor(ne,_e,ge){this.dialogRef=ne,this.data=_e,this.router=ge,this.returnUrl="",this.organizationCode="",ne.disableClose=!0,this.returnUrl=_e.returnUrl,this.jobs=JSON.stringify(this.data.jobs),this.organizationCode=_e.organizationCode}loginOptionClicked(ne){let _e={jobs:this.jobs,jobPortal:"zenople"},ge="login";this.data.scheduleList&&this.data.scheduleList.length>=1&&(_e.scheduleList=this.data.scheduleList.toString()),"login"==ne?_e.returnUrl=this.returnUrl:"register"==ne&&(_e.cultureId=this.data.cultureId,ge="apply"),this.router.navigate([ge,this.organizationCode],{queryParams:_e}),this.dialogRef.close()}static#e=this.\u0275fac=function(_e){return new(_e||q)(u.Y36(l.hV),u.Y36(l.eJ),u.Y36(d.F0))};static#t=this.\u0275cmp=u.Xpm({type:q,selectors:[["zen-login-option"]],decls:32,vars:16,consts:[[1,"dialog-content-wrapper","confirm-dialog"],["mat-dialog-content","",1,"p-24","m-0"],["fxLayout","row","fxLayoutAlign","space-between center",1,"font-weight-700","mt-0"],[1,"font-size-18"],["mat-icon-button","",1,"close-dialog",3,"mat-dialog-close"],["fxLayout","row","fxLayout.lt-sm","column",1,"pt-24","pb-0","h-100-p"],["fxLayout","column","fxFlex","50","fxLayoutAlign","center center"],["ngClass.lt-sm","br-0",1,"login-warn"],[1,"s-70"],["fxLayout","column","fxFlex","50","ngClass.gt-sm","pl-24","ngClass.lt-sm","pl-0",1,"user-action"],[1,"login-action"],["ngClass.lt-sm","mt-28",1,"mt-0"],["mat-raised-button","",1,"w-100-p",3,"click"],[1,"register-action"],[1,"or"]],template:function(_e,ge){1&_e&&(u.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.TgZ(6,"button",4)(7,"mat-icon"),u._uU(8,"close"),u.qZA()()(),u.TgZ(9,"mat-dialog-content")(10,"div",5)(11,"div",6)(12,"div",7)(13,"mat-icon",8),u._uU(14,"info"),u.qZA(),u.TgZ(15,"p"),u._uU(16),u.ALo(17,"translate"),u.qZA()()(),u.TgZ(18,"div",9)(19,"div",10)(20,"p",11),u._uU(21),u.ALo(22,"translate"),u.qZA(),u.TgZ(23,"button",12),u.NdJ("click",function(){return ge.loginOptionClicked("login")}),u._uU(24),u.ALo(25,"translate"),u.qZA()(),u.TgZ(26,"div",13)(27,"p",14),u._uU(28,"OR"),u.qZA(),u.TgZ(29,"button",12),u.NdJ("click",function(){return ge.loginOptionClicked("register")}),u._uU(30),u.ALo(31,"translate"),u.qZA()()()()()()()),2&_e&&(u.xp6(4),u.Oqu(u.lcZ(5,6,"loginRequired")),u.xp6(2),u.Q6J("mat-dialog-close","no"),u.xp6(10),u.Oqu(u.lcZ(17,8,"youNeedToLoginToApply")),u.xp6(5),u.Oqu(u.lcZ(22,10,"haveAccountThenLogin")),u.xp6(3),u.Oqu(u.lcZ(25,12,"login")),u.xp6(6),u.Oqu(u.lcZ(31,14,"register")))},dependencies:[s.eB,A.Hw,l.aO,l.Rb,_.xw,_.Wh,_.yH,C.oO,R.X$],styles:['.confirm-dialog[_ngcontent-%COMP%]   mat-dialog-content[_ngcontent-%COMP%]{height:30vh}@media screen and (max-width: 599px){.confirm-dialog[_ngcontent-%COMP%]   mat-dialog-content[_ngcontent-%COMP%]{height:100%}}.confirm-dialog[_ngcontent-%COMP%]   .user-action[_ngcontent-%COMP%]{justify-content:center}.confirm-dialog[_ngcontent-%COMP%]   .user-action[_ngcontent-%COMP%]   .login-action[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background-color:#039be5;color:#fff}.confirm-dialog[_ngcontent-%COMP%]   .user-action[_ngcontent-%COMP%]   .register-action[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background-color:#234b77;color:#fff}.confirm-dialog[_ngcontent-%COMP%]   .user-action[_ngcontent-%COMP%]   .or[_ngcontent-%COMP%]{text-align:center;font-weight:700;position:relative}.confirm-dialog[_ngcontent-%COMP%]   .user-action[_ngcontent-%COMP%]   .or[_ngcontent-%COMP%]:after{content:"";width:100px;height:1px;background:#d4d4d4;position:absolute;right:0;top:50%}.confirm-dialog[_ngcontent-%COMP%]   .user-action[_ngcontent-%COMP%]   .or[_ngcontent-%COMP%]:before{content:"";width:100px;height:1px;background:#d4d4d4;position:absolute;left:0;top:50%}.confirm-dialog[_ngcontent-%COMP%]   .login-warn[_ngcontent-%COMP%]{border-right:1px solid #dadada;text-align:center;padding:0 24px}@media screen and (max-width: 599px){.confirm-dialog[_ngcontent-%COMP%]   .login-warn[_ngcontent-%COMP%]{border-right:none;border-bottom:1px solid #dadada}}.confirm-dialog[_ngcontent-%COMP%]   .login-warn[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#bde1ff}.confirm-dialog[_ngcontent-%COMP%]   .close-dialog[_ngcontent-%COMP%]{height:24px;width:24px;line-height:24px}  .handset-portrait .confirm-dialog .user-action .login-action p{text-align:center}  .handset-portrait .confirm-dialog mat-dialog-content{height:auto!important}  .handset-portrait .confirm-dialog .login-warn{border:none!important}']})}return q})();var f=i(6738),k=i(84187),w=i(42400),g=i(81274),M=i(56223),p=i(94390),E=i(65139);let b=(()=>{class q{constructor(ne,_e,ge){this.ws=ne,this.dialogRef=_e,this.data=ge,this.model={},_e.disableClose=!0,this.model=ge}referJob(){alert("this job will be emailed \n"+JSON.stringify(this.model)),this.ws.post(a.XL.settings.apiUrl+"Common/Email",{json:JSON.stringify(this.model)}).subscribe(),this.dialogRef.close()}static#e=this.\u0275fac=function(_e){return new(_e||q)(u.Y36(f.f),u.Y36(l.hV),u.Y36(l.eJ))};static#t=this.\u0275cmp=u.Xpm({type:q,selectors:[["zen-email-job-dialog"]],decls:24,vars:5,consts:[[1,"dialog-content-wrapper"],[1,"mat-accent","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","space-between center"],[1,"title","dialog-title"],["mat-icon-button","","aria-label","Close dialog",3,"click"],["mat-dialog-content","","fusePerfectScrollbar","",1,"p-24","m-0"],["name","emailJobForm","fxLayout","column","fxFlex","",1,"compose-form"],["emailJobForm","ngForm"],["matInput","","name","sender","placeholder","Your name","type","text","zen-validator","emailJob.sender",3,"ngModel","ngModelChange"],["matInput","","name","receiver","placeholder","Receipent's name","type","text","zen-validator","emailJob.receiver",3,"ngModel","ngModelChange"],["matInput","","name","email","placeholder","Receipent's email","type","email","zen-validator","emailJob.email",3,"ngModel","ngModelChange"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","end center",1,"m-0","p-12"],["mat-raised-button","","aria-label","SEND",1,"save-button","mat-accent",3,"disabled","click"]],template:function(_e,ge){if(1&_e&&(u.TgZ(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),u._uU(4,"Refer Job"),u.qZA(),u.TgZ(5,"button",4),u.NdJ("click",function(){return ge.dialogRef.close()}),u.TgZ(6,"mat-icon"),u._uU(7,"close"),u.qZA()()()(),u.TgZ(8,"h2"),u._uU(9),u.qZA(),u.TgZ(10,"div",5),u._UZ(11,"br"),u.TgZ(12,"form",6,7)(14,"mat-form-field")(15,"input",8),u.NdJ("ngModelChange",function(Te){return ge.model.sender=Te}),u.qZA()(),u.TgZ(16,"mat-form-field")(17,"input",9),u.NdJ("ngModelChange",function(Te){return ge.model.receiver=Te}),u.qZA()(),u.TgZ(18,"mat-form-field")(19,"input",10),u.NdJ("ngModelChange",function(Te){return ge.model.email=Te}),u.qZA()()()(),u.TgZ(20,"div",11)(21,"div")(22,"button",12),u.NdJ("click",function(){return ge.referJob()}),u._uU(23," SEND "),u.qZA()()()()),2&_e){const Ce=u.MAs(13);u.xp6(9),u.Oqu(ge.model.title),u.xp6(6),u.Q6J("ngModel",ge.model.sender),u.xp6(2),u.Q6J("ngModel",ge.model.receiver),u.xp6(2),u.Q6J("ngModel",ge.model.email),u.xp6(3),u.Q6J("disabled",Ce.invalid)}},dependencies:[s.eB,l.Rb,l.ev,k.v_,A.Hw,w.k0,g.Ye,g.rD,M._Y,M.Fj,M.JJ,M.JL,M.On,M.F,_.xw,_.Wh,_.yH,p.i,E.p],styles:[".mail-compose-dialog .mat-dialog-container{padding:0}.mail-compose-dialog .mat-dialog-container .compose-form .mat-form-field{width:100%}.mail-compose-dialog .mat-dialog-container .compose-form .show-hide-extra-fields{text-align:right;cursor:pointer;font-size:12px}.mail-compose-dialog .mat-dialog-container .compose-form .attachment-list{font-size:13px;padding-top:16px}.mail-compose-dialog .mat-dialog-container .compose-form .attachment-list .attachment{background-color:#00000014;border:1px solid rgba(0,0,0,.16);padding-left:16px;margin-top:8px;border-radius:2px}.mail-compose-dialog .mat-dialog-container .compose-form .attachment-list .attachment .filename{font-weight:500}.mail-compose-dialog .mat-dialog-container .compose-form .attachment-list .attachment:last-child{margin-bottom:0}.mail-compose-dialog .dialog-content-wrapper{max-height:85vh;display:flex;flex-direction:column}\n"],encapsulation:2})}return q})();var I=i(10509),L=i(60703),D=i(59773),F=i(37398),P=i(26306),O=i(96814),U=i(45754);function V(q,se){1&q&&(u.TgZ(0,"span"),u._uU(1,"( Already applied )"),u.qZA())}function K(q,se){if(1&q){const ne=u.EpF();u.TgZ(0,"div")(1,"mat-checkbox",5),u.NdJ("change",function(ge){const Te=u.CHM(ne).$implicit,De=u.oxw(2);return u.KtG(De.onCheckboxChange(ge,Te.jobScheduleId))}),u._uU(2),u.YNc(3,V,2,0,"span",6),u.qZA()()}if(2&q){const ne=se.$implicit;u.xp6(1),u.Q6J("disabled",ne.isAlreadyApplied)("checked",ne.isAlreadyApplied),u.xp6(1),u.AsE(" ",ne.startTime," To ",ne.endTime," "),u.xp6(1),u.Q6J("ngIf",ne.isAlreadyApplied)}}function X(q,se){if(1&q&&(u.TgZ(0,"div",2)(1,"div",3),u._uU(2),u.qZA(),u.YNc(3,K,4,5,"div",4),u.qZA()),2&q){const ne=se.$implicit;u.xp6(2),u.Oqu(ne.date),u.xp6(1),u.Q6J("ngForOf",ne.shift)}}let me=(()=>{class q{constructor(ne){this.datePipe=ne,this.selectedSchedules=[]}activate(){this.data.schedules.forEach(ne=>{ne.shift.forEach((_e,ge)=>{this.data.appliedScheduleIds.includes(parseInt(_e.jobScheduleId))&&(ne.shift[ge].isAlreadyApplied=!0)})}),console.log(this.data.schedules)}validate(ne){return(0,o.of)(!0)}stepperClose(){}ngOnInit(){}onCheckboxChange(ne,_e){ne.checked?this.selectedSchedules.push(_e):this.selectedSchedules=this.selectedSchedules.filter(ge=>ge!=_e)}save(){return this.sharedData.selectedSchedules=this.selectedSchedules,(0,o.of)(this.sharedData)}static#e=this.\u0275fac=function(_e){return new(_e||q)(u.Y36(O.uU))};static#t=this.\u0275cmp=u.Xpm({type:q,selectors:[["zen-schedule-list"]],hostAttrs:[1,"w-400","block"],decls:2,vars:1,consts:[["fxLayout","column","fxLayoutGap","12px",1,"list-schedules"],["class","b","fxLayout","column",4,"ngFor","ngForOf"],["fxLayout","column",1,"b"],[1,"schedule-date","px-8","py-4","font-weight-600","font-size-14"],[4,"ngFor","ngForOf"],[1,"w-100-p","font-size-14",3,"disabled","checked","change"],[4,"ngIf"]],template:function(_e,ge){1&_e&&(u.TgZ(0,"div",0),u.YNc(1,X,4,2,"div",1),u.qZA()),2&_e&&(u.xp6(1),u.Q6J("ngForOf",ge.data.schedules))},dependencies:[U.FC,O.sg,O.O5,_.xw,_.SQ],styles:[".list-schedules[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]  .mat-checkbox-layout{width:100%;gap:8px;padding:8px;align-items:center}.list-schedules[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]  .mat-checkbox-layout .mat-checkbox-inner-container{margin:unset}.list-schedules[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]  .mat-checkbox-layout:hover{background-color:#f7f7f7}.list-schedules[_ngcontent-%COMP%]   .schedule-date[_ngcontent-%COMP%]{background-color:#e7e7e7}"]})}return q})();var J=i(616),Q=i(5892),re=i(710),de=i(74187),te=i(61371),j=i(28011),H=i(92534);let z=(()=>{class q{constructor(ne,_e,ge,Ce,Te,De,fe,xe,Oe,Le){this.router=ne,this.fuseConfig=_e,this.loginOption=ge,this.ws=Ce,this.cs=Te,this.us=De,this.personService=fe,this.emailDialog=xe,this.eds=Oe,this.ns=Le,this.basePath=a.XL.settings.apiUrl+"Job/",this.webPath=a.XL.settings.webUrl,this.jobsInCart=[],this.onCurrentJobChanged=new e.X(null),this.onJobsChanged=new e.X([]),this.onJobCartChanged=new e.X(this.jobsInCart),this.onJobInterestedChanged=new e.X(""),this.onCurrentPageChanged=new e.X(""),this.onFiltersChanged=new e.X([]),this.constants=I.l,this.checked=!1,this.interestStatus="All",this.hasJobPortalAccess=!0,this.callFrom="",this.markAsNotInterested=!1,this._unsubscribeAll=new n.x,this.filter={directory:"JobPortal",organizationCode:"",organizationId:0,officeId:0,searchText:"",pageNumber:1,pageSize:50,radius:I.l.RadiusOptions[2].value,filterType:I.l.FilterTypes[1]},this.allowApply=!0}resolve(ne,_e){if(this.setAllowApply(),this.isTokenValid=this.us.isTokenValid(),this.routeParams=ne.params,this.currentPage=null==ne.data.page?I.l.MainPage:ne.data.page,this.currentApp=null==ne.data.app?I.l.JobPortal:ne.data.app,this.onCurrentPageChanged.next(this.currentPage),this.manageFuseConfig(),this.landingPage=this.isTokenValid?this.us.getTokenValueByKey("application"):null,this.currentPage==I.l.Cart){let ge=ne.queryParams;ge&&ge.Cart&&this.updateJobCart(JSON.parse(ge.Cart),"add")}return new Promise((ge,Ce)=>{Promise.all([this.fetchContent(this.filter)]).then(()=>{ge()},Ce)})}manageFuseConfig(){if(this.currentApp==I.l.JobPortal){let ne=!0;this.isTokenValid&&(ne=!this.hasJobPortalAccess,this.ns.setNavigationModel(this.getNavigation())),this.fuseConfig.setConfig({layout:{navbar:{hidden:ne},toolbar:{zentoolbar:!0},footer:{hidden:!0}}})}}setAllowApply(){try{this.entity=this.us.getTokenValueByKey("entity"),this.allowApply=!!["applicant","newhire","employee",""].includes(this.entity.trim().toLowerCase())}catch{this.entity=null,this.allowApply=!0}}fetchContent(ne){const ge=this.routeParams.organizationCode??this.us.getLocalStorage("orgCode"),Ce=this.routeParams.officeId;if(ge){this.filter.organizationCode=ge;let De=I.l.JobPortal+"/"+this.filter.organizationCode;this.currentApp==I.l.JobPortal?(De=this.currentPage==I.l.JobPortalJobCandidate||this.currentPage==I.l.JobCandidate?(this.currentPage==I.l.JobCandidate?I.l.JobCandidate:I.l.JobPortalJobCandidate)+"/"+this.filter.organizationCode:I.l.JobPortal+"/"+this.filter.organizationCode,this.cartUrl=I.l.JobPortal+"/"+this.filter.organizationCode+"/"+I.l.Cart):(De=this.currentPage==I.l.JobPortalJobCandidate||this.currentPage==I.l.JobCandidate?this.currentApp+"/"+I.l.JobPortalJobCandidate:this.currentApp+"/"+I.l.JobListing,this.cartUrl=this.currentApp+"/"+I.l.JobListing+"/"+I.l.Cart),Ce?(this.filter.officeId=Ce,this.homeUrl=De+"/office/"+Ce):this.homeUrl=De}}getJobs(ne=""){this.onJobsChanged.next({}),this.callFrom=ne;let _e={...this.filter};if("LoadMore"!==ne&&(_e.pageNumber=1,this.filter.pageNumber=1,this.callFrom="",this.jobs=void 0),this.currentPage==I.l.Cart){let ge=this.getJobCartJob();if(!(ge.length>0))return void this.onJobsChanged.next({});_e.jobIdList=ge.join(),_e.zipCode=null,_e.radius=null}else this.currentPage==I.l.JobPortalJobCandidate||this.currentPage==I.l.JobCandidate?(_e.jobCandidate=!0,_e.zipCode=null,_e.radius=null,_e.interestStatus=this.interestStatus):this.filter&&(_e.searchText=this.filter.searchText,_e.jobCategoryId=this.filter.jobCategoryId,"state"==_e.filterType?(_e.stateId=this.filter.stateId,_e.city=this.filter.city,_e.zipCode=null,_e.radius=null):"radius"==_e.filterType&&(_e.stateId=null,_e.city=null,_e.zipCode=this.filter.zipCode,_e.radius=this.filter.radius));return _e.searchText=_e.searchText?_e.searchText:"",this.markAsNotInterested&&(this.filter.pageNumber=_e.pageNumber,_e.pageSize*=_e.pageNumber,_e.pageNumber=1),this.routeParams.jobId&&(_e.jobId=this.routeParams.jobId),new Promise((ge,Ce)=>{this.ws.get(this.basePath+"JobPortal",{json:JSON.stringify(_e)}).subscribe(Te=>{_e.pageNumber>1?this.markAsNotInterested?this.jobs=Te:this.jobs.data=[...this.jobs.data,...Te.data]:this.jobs=Te,this.markAsNotInterested=!1,this.onJobsChanged.next(this.jobs),this.manageJobCart(),ge(this.jobs)},Ce)})}jobPortalJobDetail(ne){let _e={organizationCode:this.filter.organizationCode,jobId:ne,callFrom:"JobPortal"};return("job-candidate"==this.currentPage||"candidate"==this.currentPage)&&(_e.callFrom="JobCandidate"),this.ws.get(this.basePath+"JobDetail",{json:JSON.stringify(_e)})}clearCurrentData(){this.onJobsChanged.next({}),this.setCurrentJob(null)}getJobDetail(ne){if(ne)return new Promise((_e,ge)=>{this.jobPortalJobDetail(ne).subscribe(Ce=>{(!Ce.data||"{}"==JSON.stringify(Ce.data))&&(Ce.data=null),this.isJobInCart(Ce.data),this.setCurrentJob(Ce.data),_e(this.currentJob)},ge)});this.setCurrentJob(null)}jobDetail(ne){return this.ws.get(this.basePath+"JobDetail",{json:JSON.stringify(ne)})}getNavigation(){let ne=I.l.NavigationModel;for(let _e of ne)_e.url=_e.url.replace(":organizationCode",this.routeParams.organizationCode);return ne}isJobInCart(ne){return ne?this.onJobCartChanged.getValue().includes(ne.jobId)?(ne.inCart=!0,!0):(ne.inCart=!1,!1):void 0}insertJobCandidate(ne){this.us.isTokenValid()?(ne||(ne={jobIdList:this.onJobCartChanged.getValue(),personId:this.us.getTokenValueByKey("personId")}),this.ws.post(this.basePath+"JobCandidate",{json:JSON.stringify(ne)}).subscribe(()=>{this.us.openInformationDialog({header:"jobApplied",message:"jobApplicationReceivedMessage"})})):this.openLoginOptions()}sendJobApplication(ne){if(!this.us.isTokenValid())return void(ne?this.openLoginOptions(ne.jobIdList,ne.scheduleList):this.openLoginOptions());if(!this.hasJobPortalAccess)return void this.openLoginOptions(ne.jobIdList);ne||(ne={jobIdList:this.onJobCartChanged.getValue(),personId:this.us.getTokenValueByKey("personId")});let _e="";if(this.landingPage)switch(this.landingPage.toLowerCase()){case"employeeportal":_e="employee-portal/task";break;case"newhireportal":_e="newhire-portal/task";break;case"applicantportal":_e="applicant-portal/task";break;default:_e=this.us.getTokenValueByKey("landingPage")}var ge={jobs:JSON.stringify(ne.jobIdList),culture:"en"};ne?.scheduleList?.length&&(ge.scheduleList=ne.scheduleList.toString()),this.router.navigate([_e],{queryParams:ge})}openLoginOptions(ne,_e){this.loginOption.open(x,{panelClass:"zen-popup-sm",data:{returnUrl:this.landingPage,jobs:ne||this.onJobCartChanged.getValue(),cultureId:this.currentLanguage?this.currentLanguage.cultureId:0,organizationCode:this.filter.organizationCode,scheduleList:_e}})}getFilters(ne){if(this.currentPage==I.l.Cart)return;let _e={organizationCode:this.filter.organizationCode,name:"All"};return ne&&(_e.name=ne.name,_e.stateId=ne.stateId),new Promise((ge,Ce)=>{this.ws.get(this.basePath+"JobPortalFilter",{json:JSON.stringify(_e)}).subscribe(Te=>{Te&&(this.filterOptions(Te),this.filters=Te,this.filter.stateId=this.filter.stateId?this.filter.stateId:this.filters.state&&this.filters.state.length>0?this.filters.state[0].stateId:0,this.filter.city=this.filter.city?this.filter.city:this.filters.city&&this.filters.city.length>0?this.filters.city[0].city:"",this.onFiltersChanged.next(this.filters),ge(this.filters))},Ce)})}getPersonData(){return new Promise((ne,_e)=>{this.isTokenValid?this.personService.currentPersonDetail.pipe((0,D.R)(this._unsubscribeAll)).subscribe(ge=>{ge?.entity&&this.eds.loadEntityDataFromDb({entity:ge?.entity,entityId:ge?.personId}).then(Te=>{if(Te){let De=Te.gridDataItem?.zipCode;De&&(this.filter.filterType="officestaff"==Te.entity.toLowerCase()?"state":"radius",this.filter.zipCode=De,ne(!0))}})}):ne(!0)})}filterOptions(ne){ne.state&&this.AddAllOption(ne.state,"state"),ne.city&&this.AddAllOption(ne.city,"city")}AddAllOption(ne,_e){if(ne.length>1)switch(_e){case"state":ne.unshift({stateId:0,state:"All"});break;case"city":ne.unshift({city:"All"});break;case"jobCategory":ne.unshift({skillId:0,skill:"All"})}}manageJobCart(ne,_e){this.updateJobCart(ne,_e),this.onJobCartChanged.next(this.jobsInCart)}updateJobCart(ne,_e){let ge=[];ne instanceof Array?ge=ne.filter(function(Ce,Te,De){return Te===De.indexOf(Ce)}):ne&&(ge=[ne]),this.jobsInCart="clear"==_e?[]:this.getJobCartJob();for(let Ce of ge)Ce&&("add"==_e&&this.jobsInCart.indexOf(Ce)<0?(this.jobsInCart.push(Ce),localStorage.setItem(I.l.JobCart,JSON.stringify(this.jobsInCart))):"remove"==_e&&this.jobsInCart.indexOf(Ce)>-1?(this.jobsInCart.splice(this.jobsInCart.indexOf(Ce),1),localStorage.setItem(I.l.JobCart,JSON.stringify(this.jobsInCart)),this.currentPage==I.l.Cart&&this.removeJobFromList(Ce)):localStorage.setItem(I.l.JobCart,JSON.stringify(this.jobsInCart)))}getJobCartJob(){let ne=localStorage.getItem(I.l.JobCart);return ne=JSON.parse(ne),ne||(ne=[]),ne}openScheduleList(ne,_e,ge){this.loginOption.open(J.o,{data:{steps:[{component:me,data:{schedules:ne,appliedScheduleIds:ge}}],title:"Select Schedules",saveButtonText:"Confirm"}}).afterClosed().subscribe(fe=>{if(fe){var xe={jobIdList:[_e],personId:this.us.getTokenValueByKey("personId"),scheduleList:fe.selectedSchedules};this.sendJobApplication(xe)}})}applyJob(ne){if(ne){if(!ne.isAlreadyApplied){if(ne.jobSchedule?.length>=1)this.openScheduleList(ne.jobSchedule,ne.jobId,ne.appliedScheduleIds);else{var _e={jobIdList:[ne.jobId],personId:this.us.getTokenValueByKey("personId")};this.sendJobApplication(_e)}return}this.us.callSnackBar("youAlreadyApplied","info")}else this.onJobsChanged.next({}),this.router.navigate([this.cartUrl],{queryParams:{cart:JSON.stringify(this.onJobCartChanged.getValue())}})}jobInterested(ne,_e,ge=!1){_e||ge?this.cs.dynamicUpdate(null,null,"jobCandidate",ne.jobCandidateId,[{columnName:"isInterested",columnValue:_e}]).subscribe(Te=>{if(Te){var De={isInterested:_e,jobId:ne.jobId};if(_e){ne.isInterested=!0;const fe=this.jobs.data.find(xe=>xe.jobId==ne.jobId);this.setCurrentJob(ne),this.jobs.data=this.us.swapArrayObject(fe,this.jobs.data,"jobId"),this.onJobsChanged.next(this.jobs),this.onJobInterestedChanged.next(De),this.us.callSnackBar("jobInterestedSuccess","success")}else"All"!=this.interestStatus&&(this.markAsNotInterested=!0,this.removeJobFromList(ne.jobId)),ne.isInterested=!1,this.onJobInterestedChanged.next(De),this.us.callSnackBar("jobNotInterestedSuccess","success");this.us.closeConfirmDialog()}else this.us.callSnackBar("errorJobInterest","error")}):this.confirmation(ne,_e)}confirmation(ne,_e){this.us.openConfirmDialog({headerText:"confirmation",confirmationText:"Are you sure?"},"job-interested-popup"),this.us.confirmDialogAction.subscribe(Ce=>{"yes"==Ce&&this.jobInterested(ne,_e,!0)})}setCurrentJob(ne){this.currentJob=ne,this.onCurrentJobChanged.next(this.currentJob)}removeJobFromList(ne){this.getJobs(this.callFrom),this.currentJob&&this.currentJob.jobId==ne&&this.setCurrentJob(null)}openEmailDialog(ne){ne.sender=this.us.getTokenValueByKey("name"),ne.organizationId=this.filter.organizationId,this.emailDialog.open(b,{panelClass:"zen-popup-sm",data:ne})}organizationOption(ne,_e,ge){if(!ne)return this.loginRedirect("error"),(0,o.of)(!1);const Ce=this.us.getLocalStorage("orgCode");if(Ce&&ne.toLowerCase()!=Ce.toLowerCase()){let Te=parseInt(this.us.getTokenValueByKey("personId").toString());Te&&this.getOrganizationAlias(Te).subscribe(De=>{De&&(this.hasJobPortalAccess=De.includes(ne.toLowerCase()),this.us.onJobPortalAccessChange.next(De.includes(ne.toLowerCase())))})}return this.manageJobCart(null,"clear"),this.cs.TenantOrganization({alias:ne}).pipe((0,F.U)(Te=>{if(Object.keys(Te).length<=0)return this.loginRedirect("error"),!1;if((ge==I.l.JobPortalJobCandidate||this.currentPage==I.l.JobCandidate)&&(Te.jobPortalLoginRequired=!0),this.organizationCulture=Te.culture,this.organizationLogo=this.cs.loadLogo(Te.logo),!Te.jobPortalLoginRequired)return!0;{let De=this.us.getLocalStorage("token");if(parseInt(this.us.getTokenValueByKey("personId").toString()),De){let xe=new L.N0;if(parseInt(this.us.getTokenValueByKey("personId").toString())>0&&!xe.isTokenExpired(De))return!0}}return this.loginRedirect("login",ne,_e),!1}),(0,P.K)(()=>(this.loginRedirect("error"),(0,o.of)(!1))))}getOrganizationAlias(ne){return this.cs.PersonAliasAccessList(ne).pipe((0,F.U)(_e=>_e))}loginRedirect(ne,_e,ge){"error"==ne?(this.us.removeLocalStorage("token"),this.router.navigate(["/error-404"])):"login"==ne?(this.us.removeLocalStorage("token"),this.router.navigate(["/login/",_e],{queryParams:{returnUrl:ge}})):"home"==ne&&this.router.navigate([this.homeUrl])}getJobPortalJobUrl(ne){let _e=this.routeParams.organizationCode;return _e=_e??this.us.getLocalStorage("orgCode"),this.webPath+"job-portal/"+_e+"/job/"+ne}externalJobBoardListItem(ne,_e=!1){return this.ws.get(this.basePath+"ExternalJobBoardListItem",{json:JSON.stringify(ne),refresh:_e},null,!0)}deleteScreeningQuestion(ne,_e){return this.ws.post(this.basePath+"DeletScreeningQuestion",{json:ne,refresh:_e},null)}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(_e){return new(_e||q)(u.LFG(d.F0),u.LFG(Q.m),u.LFG(l.on),u.LFG(f.f),u.LFG(re.v),u.LFG(de.t),u.LFG(te.R),u.LFG(l.on),u.LFG(j.a),u.LFG(H.J))};static#t=this.\u0275prov=u.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})()},39088:(he,y,i)=>{"use strict";i.d(y,{H:()=>l});var e=i(65619),n=i(7110),o=i(65879),a=i(6738);let l=(()=>{class u{constructor(s){this.webApiService=s,this.basePath=n.XL.settings.apiUrl,this.onNewhireSelected=new e.X({}),this.reloadNewhireDirectory=new e.X({})}static#e=this.\u0275fac=function(A){return new(A||u)(o.LFG(a.f))};static#t=this.\u0275prov=o.Yz7({token:u,factory:u.\u0275fac})}return u})()},23113:(he,y,i)=>{"use strict";i.d(y,{t:()=>A});var e=i(7110),n=i(65619),o=i(65879),a=i(6738),l=i(19735),u=i(74187),d=i(66878),s=i(62232);let A=(()=>{class _{constructor(R,x,f,k,w){this.ws=R,this.rs=x,this.us=f,this.dialog=k,this.zenSearchService=w,this.pageIndex=1,this.pageSize=50,this.searchText=null,this.searchType="any",this.onSearchTextChanged=new n.X(null),this.onPaymentChanged=new n.X({}),this.onPaymentSelected=new n.X({}),this.directoryParam=new n.X({}),this.basePath=e.XL.settings.apiUrl+"Payment/",this.refreshOrganizationDirectory=new n.X({}),this.orgDirectoryNavigationId=new n.X({}),this.officeId=this.us.getTokenValueByKey("officeId")}resolve(R,x){return this.routeParams=R.params,new Promise((f,k)=>{Promise.all([]).then(()=>{f()},k)})}paymentDirectory(R,x){R&&(this.pageSize=R.take,this.pageIndex=R.pageNumber);const f=this.zenSearchService.getSearchType("payment");return x||(x={directory:"Payment",searchType:f,searchText:this.searchText,pageNumber:this.pageIndex,pageSize:this.pageSize,sortOrder:this.sortOrder,orderBy:this.orderBy}),new Promise((k,w)=>{this.getPayments(x).subscribe(g=>{this.onPaymentChanged.next(g),k(g)},w)})}paymentBatchInsert(R){return this.ws.post(this.basePath+"PaymentBatch",{Json:JSON.stringify(R,this.us.dateReplacer)},null,null,!0)}getPayments(R){return this.ws.post(e.XL.settings.apiUrl+"Common/Directory",{Json:JSON.stringify(R)},null,null,!0)}transactionList(R,x){return this.ws.get(this.basePath+"PaymentTransaction",{Json:JSON.stringify(R),refresh:x},null,!0)}dashboardData(R){return this.ws.get(this.basePath+"Dashboard",{Json:JSON.stringify(R),refresh:!0},null,!0)}paymentTask(R){return this.ws.post(this.basePath+"Payment",{Json:JSON.stringify(R)},null,null,!0)}getOrganizationPaymentAdjustments(R){return this.ws.get(e.XL.settings.apiUrl+"Payment/OrganizationPaymentAdjustment",{Json:JSON.stringify(R)},null,null,!0)}organizationPaymentAdjustmentTsk(R){return this.ws.post(e.XL.settings.apiUrl+"Payment/OrganizationPaymentAdjustmentTsk",{Json:JSON.stringify(R)},null,null,!0)}instantFundTsk(R){return this.ws.post(e.XL.settings.apiUrl+"Payment/InstantFundTsk",{Json:JSON.stringify(R)},null,null,!0)}static#e=this.\u0275fac=function(x){return new(x||_)(o.LFG(a.f),o.LFG(l.r),o.LFG(u.t),o.LFG(d.on),o.LFG(s.o))};static#t=this.\u0275prov=o.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"})}return _})()},67375:(he,y,i)=>{"use strict";i.d(y,{E:()=>a});var e=i(65879),n=i(86545),o=i(64190);let a=(()=>{class l{constructor(d,s){this.applicantService=d,this._router=s}canActivate(d,s){const A=d.params.orgCode,_=this.applicantService.getRegisterGuard();return _||this._router.navigate(["/apply/"+A],{queryParams:d.queryParams}),_}static#e=this.\u0275fac=function(s){return new(s||l)(e.LFG(n.F),e.LFG(o.F0))};static#t=this.\u0275prov=e.Yz7({token:l,factory:l.\u0275fac})}return l})()},19735:(he,y,i)=>{"use strict";i.d(y,{r:()=>d});var e=i(7110),n=i(65619),o=i(69862),a=i(65879),l=i(6738),u=i(74187);let d=(()=>{class s{constructor(_,C){this.webApiService=_,this.us=C,this.basePath=e.XL.settings.apiUrl+"Report/",this.reportTemplateBs=new n.X(""),this.reportViewDialogDisabled=!0,this.navigationChanged=new n.X(null),this.disableNextButton=new n.X(null),this.reportTabDataSet=new n.X([]),this.parameterSelectListDs={}}getReport(_,C,R=!0){return this.webApiService.get(this.basePath+"Report",{json:JSON.stringify(_),refresh:C},null,R)}getReportParameter(_,C){return this.webApiService.get(this.basePath+"ReportParameter",{json:JSON.stringify(_),refresh:C},null,!0)}addEditReportTask(_,C){return this.webApiService.post(this.basePath+"DynamicReportTsk",{json:JSON.stringify(_),refresh:C},null,null,!0)}deleteReport(_,C){return this.webApiService.post(this.basePath+"DeleteReportTsk",{json:JSON.stringify(_),refresh:C},null,null,!0)}reportStatusUpd(_,C){return this.webApiService.post(this.basePath+"ReportStatusUpd",{json:JSON.stringify(_),refresh:C},null,null,!0)}getReportPerson(_,C){return this.webApiService.get(this.basePath+"ReportPerson",{json:JSON.stringify(_),refresh:C},null,!0)}assignReportToPerson(_,C){return this.webApiService.post(this.basePath+"ReportPersonTsk",{json:JSON.stringify(_),refresh:C},null,null,!0)}reportFavoriteTsk(_,C){return this.webApiService.post(this.basePath+"ReportFavoriteTsk",{json:JSON.stringify(_),refresh:C},null,null,!0)}reportVisibilityUpd(_,C){return this.webApiService.post(this.basePath+"ReportVisibilityUpd",{json:JSON.stringify(_),refresh:C},null,null,!0)}reportPropertyUpdate(_,C){return this.webApiService.post(this.basePath+"ReportPropertyUpd",{json:JSON.stringify(_),refresh:C},null,null,!0)}getPersonReport(_){return this.webApiService.get(e.XL.settings.apiUrl+"Person/PersonReport",{json:_},null,!0)}updatePersonReport(_,C){return this.webApiService.post(this.basePath+"PersonReport",{json:_},null,null,!0)}dynamicReportData(_,C){return this.webApiService.postWithOptions(this.basePath+"DynamicReportData",{json:JSON.stringify(_),refresh:C},{notCamalizedJson:!0},!1)}reportParameterData(_,C){return this.webApiService.post(this.basePath+"ReportParameterData",{json:JSON.stringify(_),refresh:C},null,null,!1)}getColumnSelectListPromise(_,C){return new Promise(R=>{this.reportParameterData(_,C).subscribe(x=>{R(x)})})}getReportTemplateColumns(_,C){return this.webApiService.get(this.basePath+"ReportTemplateColumns",{json:JSON.stringify(_),refresh:C},null,!0)}staticReportData(_,C){return this.webApiService.postWithOptions(this.basePath+"StaticReportData",{json:JSON.stringify(_),refresh:C},{notCamalizedJson:!0},!1)}getReportList(_){return this.webApiService.get(this.basePath+"ReportList",{json:JSON.stringify(_)})}checkReportExist(_){return this.webApiService.get(this.basePath+"CheckReportExist",{json:JSON.stringify(_)})}insertReport(_){let C=new o.WM;return C=C.append("Content-Type","angular/auto"),C.append("enctype","multipart/form-data"),C.append("Accept","application/json"),C.append("Authorization","Bearer "+this.us.getLocalStorage("token")),C.append("HeaderParams",JSON.stringify({roleId:0,applicationId:0})),this.webApiService.postWithOptions(this.basePath+"InsertReport",_,{headers:C})}updateReport(_){let C=new o.WM;return C=C.append("Content-Type","angular/auto"),C.append("enctype","multipart/form-data"),C.append("Accept","application/json"),C.append("Authorization","Bearer "+this.us.getLocalStorage("token")),C.append("HeaderParams",JSON.stringify({roleId:0,applicationId:0})),this.webApiService.postWithOptions(this.basePath+"UpdateReport",_,{headers:C})}static#e=this.\u0275fac=function(C){return new(C||s)(a.LFG(l.f),a.LFG(u.t))};static#t=this.\u0275prov=a.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})()},16379:(he,y,i)=>{"use strict";i.d(y,{v:()=>br});var e=i(53342),n=i(59773),o=i(48180),a=i(78645),l=i(82276),u=i(7110),d=i(66878),s=i(65879),A=i(96814),_=i(56223),C=i(83814),R=i(30617),x=i(94505),f=i(84187),k=i(48424),w=i(24678),g=i(81274),M=i(89515);function p(Ti,mr){if(1&Ti&&(s.TgZ(0,"mat-option",16),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&Ti){const ri=mr.$implicit;s.Q6J("value",ri.field),s.xp6(1),s.hij(" ",s.lcZ(2,2,ri.field)," ")}}let E=(()=>{class Ti{constructor(ri,mo,Ii){this.dialogRef=ri,this.data=mo,this.dialog=Ii,this.splitSheetByGroupList=[],ri.disableClose=!0,this.splitSheetByGroup=mo.splitSheetByGroup,this.splitSheetByGroupList=mo.splitSheetByGroupList,this.splitSheetByGroupVal=this.splitSheetByGroupList.filter(yo=>yo.field===this.splitSheetByGroup)}onActionClickEvent(ri){this.splitSheetByGroupVal=this.splitSheetByGroupList.filter(mo=>mo.field===this.splitSheetByGroup),this.dialogRef.close({action:ri,group:this.splitSheetByGroupVal})}static#e=this.\u0275fac=function(mo){return new(mo||Ti)(s.Y36(d.hV),s.Y36(d.eJ),s.Y36(d.on))};static#t=this.\u0275cmp=s.Xpm({type:Ti,selectors:[["workbook-dialog"]],decls:38,vars:24,consts:[[1,"dialog-content-wrapper","wb-confirm-form"],["matDialogTitle","",1,"mat-accent","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","space-between center"],[1,"title","dialog-title"],["mat-button","","aria-label","Close dialog","tabindex","-1",1,"mat-icon-button",3,"click"],["mat-dialog-content","",1,"p-24","m-0"],["fxLayout","row","fxLayoutAlign","start center",2,"margin-bottom","8px"],["fxLayout","row","fxLayoutAlign","start center",2,"margin-bottom","15px"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","10px",2,"margin-bottom","8px"],["fxFlex",""],["name","entityListItemId","required","",3,"ngModel","disabled","placeholder","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","center center","fxLayoutGap","12px"],["fxLayoutAlign","center center","color","primary","aria-label","Close dialog",1,"mat-icon-button","mat-raised-button","w-50-p",3,"click"],[1,"mr-4"],[1,"mr-8"],[3,"value"]],template:function(mo,Ii){1&mo&&(s.TgZ(0,"div",0)(1,"mat-toolbar",1)(2,"div",2)(3,"span",3),s._uU(4),s.ALo(5,"translate"),s.qZA(),s.TgZ(6,"button",4),s.NdJ("click",function(){return Ii.dialogRef.close({action:"close"})}),s.TgZ(7,"mat-icon"),s._uU(8,"close"),s.qZA()()()(),s.TgZ(9,"div",5)(10,"div",6),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.TgZ(13,"div",6)(14,"b"),s._uU(15),s.ALo(16,"translate"),s.qZA()(),s.TgZ(17,"div",7),s._uU(18),s.ALo(19,"translate"),s.qZA(),s.TgZ(20,"div",8)(21,"mat-form-field",9)(22,"mat-select",10),s.NdJ("ngModelChange",function(lr){return Ii.splitSheetByGroup=lr}),s.ALo(23,"translate"),s.YNc(24,p,3,4,"mat-option",11),s.qZA()()(),s.TgZ(25,"div",12)(26,"button",13),s.NdJ("click",function(){return Ii.onActionClickEvent("no")}),s.TgZ(27,"mat-icon",14),s._uU(28,"get_app"),s.qZA(),s.TgZ(29,"span"),s._uU(30),s.ALo(31,"translate"),s.qZA()(),s.TgZ(32,"button",13),s.NdJ("click",function(){return Ii.onActionClickEvent("yes")}),s.TgZ(33,"mat-icon",15),s._uU(34,"done_all"),s.qZA(),s.TgZ(35,"span"),s._uU(36),s.ALo(37,"translate"),s.qZA()()()()()),2&mo&&(s.xp6(4),s.Oqu(s.lcZ(5,10,"downloadOption")),s.xp6(7),s.hij(" ",s.lcZ(12,12,"splitByGroup?")," "),s.xp6(4),s.Oqu(s.lcZ(16,14,"or")),s.xp6(3),s.hij(" ",s.lcZ(19,16,"downloadNormalSheet")," "),s.xp6(4),s.s9C("placeholder",s.lcZ(23,18,"splitSheetByGroup")),s.Q6J("ngModel",Ii.splitSheetByGroup)("disabled",!Ii.splitSheetByGroupList),s.xp6(2),s.Q6J("ngForOf",Ii.splitSheetByGroupList),s.xp6(6),s.Oqu(s.lcZ(31,20,"normalDownload")),s.xp6(6),s.Oqu(s.lcZ(37,22,"splitBySelectedGroup")))},dependencies:[A.sg,_.JJ,_.Q7,_.On,C.xw,C.SQ,C.Wh,C.yH,R.Hw,x.eB,f.v_,k.x8,w.CK,g.Ye,M.X$],styles:[".wb-confirm-form{width:30vw}.wb-confirm-form .mat-dialog-content button{padding:0 10px;border-radius:0}.wb-confirm-form .mat-dialog-content button:hover{width:auto;border-radius:0}\n"],encapsulation:2})}return Ti})();var b=i(6990),I=i(74187),L=i(19735),D=i(710),F=i(70144),P=i(61371),O=i(13710),U=i(10217);let V=(()=>{class Ti{constructor(ri){this.translate=ri,this.workbookConfig=u.XL.settings.workbook}exportToWorkbook(ri,mo,Ii,yo="newFile",lr,Yr,Gs){let fi,Ho,_t;const Zn=[],qo=ri.map(()=>({autoWidth:!0})),Cr=(0,e.N4)(mo,{group:Ii,sort:Yr,filter:Gs}).data,kr=[];let xs=[],Us=[],Ts=[];Cr.length>0&&(ri.forEach(Ss=>{Ss.field!==(Ii[0]||{}).field&&kr.push({value:Ss.title||this.translate.instant(Ss.field),...this.getWorkBookCellProp("header",Ss.dataType)})}),Cr.forEach((Ss,Ua)=>{if(Ts=[],Ts.push({cells:kr}),Ss.items.map($o=>{ri.map(Ar=>{Ar.field!==(Ii[0]||{}).field&&xs.push({value:this.getFormattedValue($o[Ar.field],Ar.dataType),...this.getWorkBookCellProp("row",Ar.dataType)})}),xs.length>0&&Ts.push({cells:xs}),xs=[]}),Object.keys(Ss.aggregates)?.length){const $o=Object.keys(Ss?.aggregates||{}),Ar=ri[0].field!==(Ii[0]||{}).field?0:ri.findIndex(No=>No.field===(Ii[0]||{}).field)+1;ri.forEach((No,qr)=>{if(No.field!==(Ii[0]||{}).field)if($o.indexOf(No.field)>-1){const js=Object.keys((Ss?.aggregates||{})[No.field])[0];xs.push({value:this.getFormattedValue(((Ss?.aggregates||{})[No.field]||{})[js],No.dataType),...this.getWorkBookCellProp("footer",No.dataType)}),Cr.length-1===Ua&&Us.push({value:this.getFormattedValue((lr[No.field]||{})[js],No.dataType),...this.getWorkBookCellProp("footer",No.dataType)})}else xs.push(Ar===qr?{value:this.translate.instant("total")||"total",...this.getWorkBookCellProp("footer",No.dataType,"left")}:{value:null,...this.getWorkBookCellProp("footer",No.dataType)}),Cr.length-1===Ua&&Us.push(Ar===qr?{value:this.translate.instant("grandTotal")||"grandTotal",...this.getWorkBookCellProp("footer",No.dataType,"left")}:{value:null,...this.getWorkBookCellProp("footer",No.dataType)})}),xs.length>0&&(Ts.push({cells:xs}),xs=[]),Us.length>0&&(Ts.push({cells:Us}),Us=[])}fi=ri.filter($o=>$o.field===Ss.field)[0].dataType||"",_t=["date","datetime","time"].includes(fi)?Ss.value.toLocaleString().split(",")[0].replace("/","-").replace("/","-").replace("/","-"):Ss.value.toString(),Ho=["number","money","decimal","percent","date","datetime","time","boolean"].includes(fi)?`${this.translate.instant(Ss.field)||Ss.field} ${_t}`:_t,Zn.push({columns:qo,name:Ho,rows:Ts})})),setTimeout(()=>{new O.I({sheets:Zn}).toDataURL().then(Ua=>{U.saveAs(Ua,`${yo.replace(/[`~!@#$%^&*()_|+\-=?;:',.<>\{\}\[\]\\\/]/gi,"_")}.xlsx`)})},100)}getWorkBookCellProp(ri,mo,Ii){return{format:this.workbookConfig.format[mo]||null,background:this.workbookConfig[ri].background,color:this.workbookConfig[ri].color||null,borderTop:this.workbookConfig[ri].borderTop||null,borderLeft:this.workbookConfig[ri].borderLeft||null,borderRight:this.workbookConfig[ri].borderRight||null,bold:this.workbookConfig[ri].bold,fontSize:this.workbookConfig[ri].fontSize,textAlign:Ii||(this.workbookConfig.rightAlignedDataTypes.includes(mo)?"right":"left"),verticalAlign:this.workbookConfig[ri].verticalAlign,wrap:this.workbookConfig[ri].wrap}}getFormattedValue(ri,mo){if(!ri||!mo||""===mo)return ri;switch(mo){case"money":case"decimal":return parseFloat(ri);case"number":return Number(ri);default:return ri}}static#e=this.\u0275fac=function(mo){return new(mo||Ti)(s.LFG(M.sK))};static#t=this.\u0275prov=s.Yz7({token:Ti,factory:Ti.\u0275fac,providedIn:"root"})}return Ti})();var K=i(27509),X=i(30481),me=i(48134),J=i(26177),Q=i(39014),re=i(8841),de=i(84676),te=i(26869);const j=["reportGrid"],H=["paginatedReportViewer"];function z(Ti,mr){if(1&Ti&&(s.TgZ(0,"mat-icon",29),s._uU(1,"device_hub"),s.qZA()),2&Ti){const ri=s.oxw(2);s.Q6J("matBadge",ri.group.length)}}function q(Ti,mr){1&Ti&&(s.TgZ(0,"mat-icon",30),s._uU(1," device_hub"),s.qZA())}function se(Ti,mr){1&Ti&&s._UZ(0,"mat-icon",8),2&Ti&&s.Q6J("svgIcon","filter-off")}function ne(Ti,mr){1&Ti&&s._UZ(0,"mat-icon",8),2&Ti&&s.Q6J("svgIcon","filter-on")}function _e(Ti,mr){if(1&Ti&&(s.TgZ(0,"mat-icon",29),s._uU(1,"view_column"),s.qZA()),2&Ti){const ri=s.oxw(2);s.Q6J("matBadge",ri.hiddenColumns.length)}}function ge(Ti,mr){1&Ti&&(s.TgZ(0,"mat-icon",30),s._uU(1," view_column"),s.qZA())}function Ce(Ti,mr){if(1&Ti){const ri=s.EpF();s.TgZ(0,"zen-dynamic-form",31),s.NdJ("getControlsData",function(Ii){s.CHM(ri);const yo=s.oxw(2);return s.KtG(yo.getSelectListData(Ii))})("onSubmit",function(Ii){s.CHM(ri);const yo=s.oxw(2);return s.KtG(yo.onSubmit(Ii))})("onReset",function(Ii){s.CHM(ri);const yo=s.oxw(2);return s.KtG(yo.onReset(Ii))}),s.qZA()}if(2&Ti){const ri=s.oxw(2);s.Q6J("controls",ri.reportParam)("controlsPerRow",4)("noControlsLabel","noFilters")("submitOnLoad",ri.runOnLoad)("resetForm",ri.resetForm)("submitForm",ri.submitForm)("setControlsData",ri.parameterSelectDs)("submitOnValueChange",!1)}}function Te(Ti,mr){if(1&Ti){const ri=s.EpF();s.TgZ(0,"mat-chip",34),s.NdJ("removed",function(){const yo=s.CHM(ri).$implicit,lr=s.oxw(3);return s.KtG(lr.showColumn(yo))}),s._uU(1),s.TgZ(2,"mat-icon",35),s.ALo(3,"translate"),s._uU(4,"cancel"),s.qZA()()}if(2&Ti){const ri=mr.$implicit;s.Q6J("selectable",!1)("removable",!0),s.xp6(1),s.hij(" ",ri," "),s.xp6(1),s.Q6J("matTooltip",s.lcZ(3,4,"showCol"))}}function De(Ti,mr){if(1&Ti&&(s.TgZ(0,"mat-chip-list",32),s.YNc(1,Te,5,6,"mat-chip",33),s.qZA()),2&Ti){const ri=s.oxw(2);s.xp6(1),s.Q6J("ngForOf",ri.hiddenColumns)}}function fe(Ti,mr){1&Ti&&(s.TgZ(0,"span"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&Ti&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"noHiddenColumns")))}function xe(Ti,mr){1&Ti&&s._UZ(0,"mat-progress-bar",36)}function Oe(Ti,mr){if(1&Ti){const ri=s.EpF();s.TgZ(0,"span"),s._uU(1),s.qZA(),s.TgZ(2,"mat-icon",41),s.NdJ("click",function(Ii){s.CHM(ri);const yo=s.oxw().$implicit,lr=s.oxw(2);return Ii.preventDefault(),s.KtG(lr.hideColumn(yo.name))}),s.ALo(3,"translate"),s._uU(4,"clear"),s.qZA()}if(2&Ti){const ri=s.oxw().$implicit;s.xp6(1),s.Oqu(ri.display),s.xp6(1),s.Q6J("matTooltip",s.lcZ(3,2,"hideCol"))}}function Le(Ti,mr){if(1&Ti&&s._UZ(0,"kendo-grid-string-filter-cell",47),2&Ti){const ri=s.oxw(),Ii=ri.$implicit;s.Q6J("column",ri.column)("filter",Ii)("showOperators",!0)}}function Gt(Ti,mr){if(1&Ti&&s._UZ(0,"kendo-grid-date-filter-cell",48),2&Ti){const ri=s.oxw(),Ii=ri.$implicit;s.Q6J("column",ri.column)("filter",Ii)("operator","eq")("showOperators",!0)}}function Ut(Ti,mr){if(1&Ti&&s._UZ(0,"kendo-grid-date-filter-cell",47),2&Ti){const ri=s.oxw(),Ii=ri.$implicit;s.Q6J("column",ri.column)("filter",Ii)("showOperators",!0)}}function An(Ti,mr){if(1&Ti&&s._UZ(0,"kendo-grid-numeric-filter-cell",49),2&Ti){const ri=s.oxw(),Ii=ri.$implicit;s.Q6J("column",ri.column)("filter",Ii)("showOperators",!0)}}function $n(Ti,mr){if(1&Ti&&s._UZ(0,"kendo-grid-boolean-filter-cell",50),2&Ti){const ri=s.oxw(),Ii=ri.$implicit;s.Q6J("column",ri.column)("filter",Ii)}}const xn=function(){return["text","time"]};function mt(Ti,mr){if(1&Ti&&(s.YNc(0,Le,1,3,"kendo-grid-string-filter-cell",43),s.YNc(1,Gt,1,4,"kendo-grid-date-filter-cell",44),s.YNc(2,Ut,1,3,"kendo-grid-date-filter-cell",43),s.YNc(3,An,1,3,"kendo-grid-numeric-filter-cell",45),s.YNc(4,$n,1,2,"kendo-grid-boolean-filter-cell",46)),2&Ti){const ri=mr.column;s.Q6J("ngIf",s.DdM(5,xn).includes(ri.filter)),s.xp6(1),s.Q6J("ngIf","date"==ri.filter),s.xp6(1),s.Q6J("ngIf","datetime"==ri.filter),s.xp6(1),s.Q6J("ngIf","numeric"==ri.filter),s.xp6(1),s.Q6J("ngIf","boolean"==ri.filter)}}function ut(Ti,mr){1&Ti&&s.YNc(0,mt,5,6,"ng-template",42)}function Wt(Ti,mr){1&Ti&&(s.TgZ(0,"b"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&Ti&&(s.xp6(1),s.hij("",s.lcZ(2,1,"total"),"\xa0\xa0"))}function dn(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"currency"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.gM2(3,1,ri[mo.name].sum,"USD","symbol","1.4-4"))}}function sn(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"currency"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.lcZ(3,1,ri[mo.name].sum))}}function fn(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"number"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.xi3(3,1,ri[mo.name].sum,"1.3-3"))}}function yi(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"number"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.lcZ(3,1,ri[mo.name].sum))}}function nn(Ti,mr){if(1&Ti&&(s.TgZ(0,"span",52),s.ALo(1,"translate"),s.ynx(2,53),s.YNc(3,dn,4,6,"ng-container",54),s.YNc(4,sn,4,3,"ng-container",54),s.YNc(5,fn,4,4,"ng-container",54),s.YNc(6,yi,4,3,"ng-container",54),s.BQk(),s.qZA()),2&Ti){const ri=s.oxw(3).$implicit;s.Q6J("matTooltip",s.lcZ(1,6,"sum")),s.xp6(2),s.Q6J("ngSwitch",ri.dataType),s.xp6(1),s.Q6J("ngSwitchCase","moneyfour"),s.xp6(1),s.Q6J("ngSwitchCase","money"),s.xp6(1),s.Q6J("ngSwitchCase","decimal"),s.xp6(1),s.Q6J("ngSwitchCase","number")}}function Mi(Ti,mr){if(1&Ti&&(s.TgZ(0,"span",52),s.ALo(1,"translate"),s.TgZ(2,"b"),s._uU(3),s.ALo(4,"number"),s.qZA()()),2&Ti){const ri=s.oxw(2).$implicit,mo=s.oxw().$implicit;s.Q6J("matTooltip",s.lcZ(1,2,"count")),s.xp6(3),s.Oqu(s.lcZ(4,4,ri[mo.name].count))}}function mi(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"currency"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.gM2(3,1,ri[mo.name].average,"USD","symbol","1.4-4"))}}function Eo(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"currency"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.lcZ(3,1,ri[mo.name].average))}}function Ko(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"number"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.xi3(3,1,ri[mo.name].average,"1.3-3"))}}function xo(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"number"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.lcZ(3,1,ri[mo.name].average))}}function Bn(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"date"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.xi3(3,1,ri[mo.name].average,"MM/dd/yyyy"))}}function Xt(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"date"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.xi3(3,1,ri[mo.name].average,"MM/dd/yyyy hh:mm a"))}}function Ji(Ti,mr){if(1&Ti&&(s.TgZ(0,"span",52),s.ALo(1,"translate"),s.ynx(2,53),s.YNc(3,mi,4,6,"ng-container",54),s.YNc(4,Eo,4,3,"ng-container",54),s.YNc(5,Ko,4,4,"ng-container",54),s.YNc(6,xo,4,3,"ng-container",54),s.YNc(7,Bn,4,4,"ng-container",54),s.YNc(8,Xt,4,4,"ng-container",54),s.BQk(),s.qZA()),2&Ti){const ri=s.oxw(3).$implicit;s.Q6J("matTooltip",s.lcZ(1,8,"average")),s.xp6(2),s.Q6J("ngSwitch",ri.dataType),s.xp6(1),s.Q6J("ngSwitchCase","moneyfour"),s.xp6(1),s.Q6J("ngSwitchCase","money"),s.xp6(1),s.Q6J("ngSwitchCase","decimal"),s.xp6(1),s.Q6J("ngSwitchCase","number"),s.xp6(1),s.Q6J("ngSwitchCase","date"),s.xp6(1),s.Q6J("ngSwitchCase","datetime")}}function En(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"currency"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.gM2(3,1,ri[mo.name].min,"USD","symbol","1.4-4"))}}function un(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"currency"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.lcZ(3,1,ri[mo.name].min))}}function Ki(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"number"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.xi3(3,1,ri[mo.name].min,"1.3-3"))}}function Fn(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"number"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.lcZ(3,1,ri[mo.name].min))}}function oi(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"date"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.xi3(3,1,ri[mo.name].min,"MM/dd/yyyy"))}}function It(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"date"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.xi3(3,1,ri[mo.name].min,"MM/dd/yyyy hh:mm a"))}}function Bt(Ti,mr){if(1&Ti&&(s.TgZ(0,"span",52),s.ALo(1,"translate"),s.ynx(2,53),s.YNc(3,En,4,6,"ng-container",54),s.YNc(4,un,4,3,"ng-container",54),s.YNc(5,Ki,4,4,"ng-container",54),s.YNc(6,Fn,4,3,"ng-container",54),s.YNc(7,oi,4,4,"ng-container",54),s.YNc(8,It,4,4,"ng-container",54),s.BQk(),s.qZA()),2&Ti){const ri=s.oxw(3).$implicit;s.Q6J("matTooltip",s.lcZ(1,8,"min")),s.xp6(2),s.Q6J("ngSwitch",ri.dataType),s.xp6(1),s.Q6J("ngSwitchCase","moneyfour"),s.xp6(1),s.Q6J("ngSwitchCase","money"),s.xp6(1),s.Q6J("ngSwitchCase","decimal"),s.xp6(1),s.Q6J("ngSwitchCase","number"),s.xp6(1),s.Q6J("ngSwitchCase","date"),s.xp6(1),s.Q6J("ngSwitchCase","datetime")}}function xt(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"currency"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.gM2(3,1,ri[mo.name].max,"USD","symbol","1.4-4"))}}function wt(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"currency"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.lcZ(3,1,ri[mo.name].max))}}function Mt(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"number"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.xi3(3,1,ri[mo.name].max,"1.3-3"))}}function pt(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"number"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.lcZ(3,1,ri[mo.name].max))}}function Lt(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"date"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.xi3(3,1,ri[mo.name].max,"MM/dd/yyyy"))}}function tt(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"date"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw().$implicit;s.xp6(2),s.Oqu(s.xi3(3,1,ri[mo.name].max,"MM/dd/yyyy hh:mm a"))}}function Ne(Ti,mr){if(1&Ti&&(s.TgZ(0,"span",52),s.ALo(1,"translate"),s.ynx(2,53),s.YNc(3,xt,4,6,"ng-container",54),s.YNc(4,wt,4,3,"ng-container",54),s.YNc(5,Mt,4,4,"ng-container",54),s.YNc(6,pt,4,3,"ng-container",54),s.YNc(7,Lt,4,4,"ng-container",54),s.YNc(8,tt,4,4,"ng-container",54),s.BQk(),s.qZA()),2&Ti){const ri=s.oxw(3).$implicit;s.Q6J("matTooltip",s.lcZ(1,8,"max")),s.xp6(2),s.Q6J("ngSwitch",ri.dataType),s.xp6(1),s.Q6J("ngSwitchCase","moneyfour"),s.xp6(1),s.Q6J("ngSwitchCase","money"),s.xp6(1),s.Q6J("ngSwitchCase","decimal"),s.xp6(1),s.Q6J("ngSwitchCase","number"),s.xp6(1),s.Q6J("ngSwitchCase","date"),s.xp6(1),s.Q6J("ngSwitchCase","datetime")}}function vt(Ti,mr){if(1&Ti&&(s.ynx(0),s.YNc(1,nn,7,8,"span",51),s.YNc(2,Mi,5,6,"span",51),s.YNc(3,Ji,9,10,"span",51),s.YNc(4,Bt,9,10,"span",51),s.YNc(5,Ne,9,10,"span",51),s.BQk()),2&Ti){const ri=s.oxw(2).$implicit,mo=s.oxw(2);s.xp6(1),s.Q6J("ngIf","sum"==mo.groupTotalAggregationDs[ri.name]),s.xp6(1),s.Q6J("ngIf","count"==mo.groupTotalAggregationDs[ri.name]),s.xp6(1),s.Q6J("ngIf","average"==mo.groupTotalAggregationDs[ri.name]),s.xp6(1),s.Q6J("ngIf","min"==mo.groupTotalAggregationDs[ri.name]),s.xp6(1),s.Q6J("ngIf","max"==mo.groupTotalAggregationDs[ri.name])}}function ln(Ti,mr){if(1&Ti&&(s.YNc(0,Wt,3,3,"b",0),s.YNc(1,vt,6,5,"ng-container",0)),2&Ti){const ri=mr.$implicit,mo=s.oxw().$implicit,Ii=s.oxw(2);s.Q6J("ngIf",ri&&mo.name==Ii.firstVisibleColumn),s.xp6(1),s.Q6J("ngIf",Ii.groupTotalAggregationDs&&Ii.groupTotalAggregationDs[mo.name]&&ri&&ri[mo.name])}}function jn(Ti,mr){1&Ti&&(s.TgZ(0,"b"),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&Ti&&(s.xp6(1),s.hij("",s.lcZ(2,1,"grandTotal"),"\xa0\xa0"))}function Pi(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"currency"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.gM2(3,1,mo.grandTotal[ri.name].sum,"USD","symbol","1.4-4"))}}function go(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"currency"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,1,mo.grandTotal[ri.name].sum))}}function si(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"number"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.xi3(3,1,mo.grandTotal[ri.name].sum,"1.3-3"))}}function ot(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"number"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,1,mo.grandTotal[ri.name].sum))}}function pn(Ti,mr){if(1&Ti&&(s.TgZ(0,"span",52),s.ALo(1,"translate"),s.ynx(2,53),s.YNc(3,Pi,4,6,"ng-container",54),s.YNc(4,go,4,3,"ng-container",54),s.YNc(5,si,4,4,"ng-container",54),s.YNc(6,ot,4,3,"ng-container",54),s.BQk(),s.qZA()),2&Ti){const ri=s.oxw(3).$implicit;s.Q6J("matTooltip",s.lcZ(1,6,"sum")),s.xp6(2),s.Q6J("ngSwitch",ri.dataType),s.xp6(1),s.Q6J("ngSwitchCase","moneyfour"),s.xp6(1),s.Q6J("ngSwitchCase","money"),s.xp6(1),s.Q6J("ngSwitchCase","decimal"),s.xp6(1),s.Q6J("ngSwitchCase","number")}}function _i(Ti,mr){if(1&Ti&&(s.TgZ(0,"span",52),s.ALo(1,"translate"),s.TgZ(2,"b"),s._uU(3),s.ALo(4,"number"),s.qZA()()),2&Ti){const ri=s.oxw(3).$implicit,mo=s.oxw(2);s.Q6J("matTooltip",s.lcZ(1,2,"count")),s.xp6(3),s.Oqu(s.lcZ(4,4,mo.grandTotal[ri.name].count))}}function wi(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"currency"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.gM2(3,1,mo.grandTotal[ri.name].average,"USD","symbol","1.4-4"))}}function hi(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"currency"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,1,mo.grandTotal[ri.name].average))}}function zn(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"number"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.xi3(3,1,mo.grandTotal[ri.name].average,"1.3-3"))}}function Ei(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"number"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,1,mo.grandTotal[ri.name].average))}}function li(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"date"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.xi3(3,1,mo.grandTotal[ri.name].average,"MM/dd/yyyy"))}}function Xi(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"date"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.xi3(3,1,mo.grandTotal[ri.name].average,"MM/dd/yyyy hh:mm a"))}}function ki(Ti,mr){if(1&Ti&&(s.TgZ(0,"span",52),s.ALo(1,"translate"),s.ynx(2,53),s.YNc(3,wi,4,6,"ng-container",54),s.YNc(4,hi,4,3,"ng-container",54),s.YNc(5,zn,4,4,"ng-container",54),s.YNc(6,Ei,4,3,"ng-container",54),s.YNc(7,li,4,4,"ng-container",54),s.YNc(8,Xi,4,4,"ng-container",54),s.BQk(),s.qZA()),2&Ti){const ri=s.oxw(3).$implicit;s.Q6J("matTooltip",s.lcZ(1,8,"average")),s.xp6(2),s.Q6J("ngSwitch",ri.dataType),s.xp6(1),s.Q6J("ngSwitchCase","moneyfour"),s.xp6(1),s.Q6J("ngSwitchCase","money"),s.xp6(1),s.Q6J("ngSwitchCase","decimal"),s.xp6(1),s.Q6J("ngSwitchCase","number"),s.xp6(1),s.Q6J("ngSwitchCase","date"),s.xp6(1),s.Q6J("ngSwitchCase","datetime")}}function bo(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"currency"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.gM2(3,1,mo.grandTotal[ri.name].min,"USD","symbol","1.4-4"))}}function jo(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"currency"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,1,mo.grandTotal[ri.name].min))}}function wn(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"number"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.xi3(3,1,mo.grandTotal[ri.name].min,"1.3-3"))}}function Zi(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"number"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,1,mo.grandTotal[ri.name].min))}}function oo(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"date"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.xi3(3,1,mo.grandTotal[ri.name].min,"MM/dd/yyyy"))}}function Bi(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"date"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.xi3(3,1,mo.grandTotal[ri.name].min,"MM/dd/yyyy hh:mm a"))}}function Xo(Ti,mr){if(1&Ti&&(s.TgZ(0,"span",52),s.ALo(1,"translate"),s.ynx(2,53),s.YNc(3,bo,4,6,"ng-container",54),s.YNc(4,jo,4,3,"ng-container",54),s.YNc(5,wn,4,4,"ng-container",54),s.YNc(6,Zi,4,3,"ng-container",54),s.YNc(7,oo,4,4,"ng-container",54),s.YNc(8,Bi,4,4,"ng-container",54),s.BQk(),s.qZA()),2&Ti){const ri=s.oxw(3).$implicit;s.Q6J("matTooltip",s.lcZ(1,8,"min")),s.xp6(2),s.Q6J("ngSwitch",ri.dataType),s.xp6(1),s.Q6J("ngSwitchCase","moneyfour"),s.xp6(1),s.Q6J("ngSwitchCase","money"),s.xp6(1),s.Q6J("ngSwitchCase","decimal"),s.xp6(1),s.Q6J("ngSwitchCase","number"),s.xp6(1),s.Q6J("ngSwitchCase","date"),s.xp6(1),s.Q6J("ngSwitchCase","datetime")}}function Lo(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"currency"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.gM2(3,1,mo.grandTotal[ri.name].max,"USD","symbol","1.4-4"))}}function or(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"currency"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,1,mo.grandTotal[ri.name].max))}}function xr(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"number"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.xi3(3,1,mo.grandTotal[ri.name].max,"1.3-3"))}}function Nr(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"number"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.lcZ(3,1,mo.grandTotal[ri.name].max))}}function as(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"date"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.xi3(3,1,mo.grandTotal[ri.name].max,"MM/dd/yyyy"))}}function ji(Ti,mr){if(1&Ti&&(s.ynx(0),s.TgZ(1,"b"),s._uU(2),s.ALo(3,"date"),s.qZA(),s.BQk()),2&Ti){const ri=s.oxw(4).$implicit,mo=s.oxw(2);s.xp6(2),s.Oqu(s.xi3(3,1,mo.grandTotal[ri.name].max,"MM/dd/yyyy hh:mm a"))}}function Fo(Ti,mr){if(1&Ti&&(s.TgZ(0,"span",52),s.ALo(1,"translate"),s.ynx(2,53),s.YNc(3,Lo,4,6,"ng-container",54),s.YNc(4,or,4,3,"ng-container",54),s.YNc(5,xr,4,4,"ng-container",54),s.YNc(6,Nr,4,3,"ng-container",54),s.YNc(7,as,4,4,"ng-container",54),s.YNc(8,ji,4,4,"ng-container",54),s.BQk(),s.qZA()),2&Ti){const ri=s.oxw(3).$implicit;s.Q6J("matTooltip",s.lcZ(1,8,"max")),s.xp6(2),s.Q6J("ngSwitch",ri.dataType),s.xp6(1),s.Q6J("ngSwitchCase","moneyfour"),s.xp6(1),s.Q6J("ngSwitchCase","money"),s.xp6(1),s.Q6J("ngSwitchCase","decimal"),s.xp6(1),s.Q6J("ngSwitchCase","number"),s.xp6(1),s.Q6J("ngSwitchCase","date"),s.xp6(1),s.Q6J("ngSwitchCase","datetime")}}function rt(Ti,mr){if(1&Ti&&(s.ynx(0),s.YNc(1,pn,7,8,"span",51),s.YNc(2,_i,5,6,"span",51),s.YNc(3,ki,9,10,"span",51),s.YNc(4,Xo,9,10,"span",51),s.YNc(5,Fo,9,10,"span",51),s.BQk()),2&Ti){const ri=s.oxw(2).$implicit,mo=s.oxw(2);s.xp6(1),s.Q6J("ngIf","sum"==mo.grandTotalAggregationDs[ri.name]),s.xp6(1),s.Q6J("ngIf","count"==mo.grandTotalAggregationDs[ri.name]),s.xp6(1),s.Q6J("ngIf","average"==mo.grandTotalAggregationDs[ri.name]),s.xp6(1),s.Q6J("ngIf","min"==mo.grandTotalAggregationDs[ri.name]),s.xp6(1),s.Q6J("ngIf","max"==mo.grandTotalAggregationDs[ri.name])}}function ai(Ti,mr){if(1&Ti&&(s.YNc(0,jn,3,3,"b",0),s.YNc(1,rt,6,5,"ng-container",0)),2&Ti){const ri=s.oxw().$implicit,mo=s.oxw(2);s.Q6J("ngIf",ri.name==mo.firstVisibleColumn),s.xp6(1),s.Q6J("ngIf",mo.grandTotal&&mo.grandTotal[ri.name]&&mo.grandTotalAggregationDs&&mo.grandTotalAggregationDs[ri.name])}}const Gn=function(){return["text","date","numeric","boolean","datetime","time"]};function Io(Ti,mr){if(1&Ti&&(s.TgZ(0,"kendo-grid-column",37),s.YNc(1,Oe,5,4,"ng-template",38),s.YNc(2,ut,1,0,null,0),s.YNc(3,ln,2,2,"ng-template",39),s.YNc(4,ai,2,2,"ng-template",40),s.qZA()),2&Ti){const ri=mr.$implicit,mo=s.oxw(2);s.Q6J("field",ri.name)("title",ri.display)("format",ri.format)("width",ri.columnWidth)("filter",ri.filter)("hidden",mo.hiddenColumns.indexOf(ri.name)>-1),s.xp6(2),s.Q6J("ngIf",s.DdM(7,Gn).includes(ri.filter))}}function wr(Ti,mr){1&Ti&&(s.TgZ(0,"div",55)(1,"mat-icon"),s._uU(2,"info"),s.qZA(),s._uU(3),s.ALo(4,"translate"),s.qZA()),2&Ti&&(s.xp6(3),s.hij("\xa0\xa0",s.lcZ(4,1,"thereAreNoRecordsToDisplay")," "))}const bs=function(){return["report-parameter-button","mat-icon-button"]},ba=function(Ti){return["mat-icon-button",Ti,"parameter-toggle-btn"]},ms=function(Ti){return["p-8","mat-grey-100-bg","report-action-ddl-wrapper","w-100-p",Ti]},Oa=function(Ti){return["p-8","report-action-ddl-wrapper","w-100-p",Ti]},Ea=function(Ti){return{"no-records":Ti}},Sa=function(){return{showFooter:!0}},tr=function(){return{allowUnsort:!0,mode:"single"}};function Mr(Ti,mr){if(1&Ti){const ri=s.EpF();s.TgZ(0,"div")(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"button",7),s.NdJ("click",function(Ii){s.CHM(ri);const yo=s.oxw();return s.KtG(yo.submitParameter(Ii))}),s.ALo(7,"translate"),s._UZ(8,"mat-icon",8),s.qZA(),s.TgZ(9,"button",7),s.NdJ("click",function(Ii){s.CHM(ri);const yo=s.oxw();return s.KtG(yo.resetParameter(Ii))}),s.ALo(10,"translate"),s.TgZ(11,"mat-icon",9),s._uU(12,"refresh"),s.qZA()(),s.TgZ(13,"button",7),s.NdJ("click",function(){s.CHM(ri);const Ii=s.oxw();return s.KtG(Ii.exportToExcel())}),s.ALo(14,"translate"),s._UZ(15,"img",10),s.qZA(),s.TgZ(16,"button",11),s.NdJ("click",function(){s.CHM(ri);const Ii=s.oxw();return s.KtG(Ii.enableDisableGroup())}),s.ALo(17,"translate"),s.YNc(18,z,2,1,"mat-icon",12),s.YNc(19,q,2,0,"mat-icon",13),s.qZA(),s.TgZ(20,"button",11),s.NdJ("click",function(){s.CHM(ri);const Ii=s.oxw();return s.KtG(Ii.enableDisableFilter())}),s.ALo(21,"translate"),s.YNc(22,se,1,1,"mat-icon",14),s.YNc(23,ne,1,1,"mat-icon",14),s.qZA(),s.TgZ(24,"button",11),s.NdJ("click",function(){s.CHM(ri);const Ii=s.oxw();return s.KtG(Ii.showHiddenColumns())}),s.ALo(25,"translate"),s.YNc(26,_e,2,1,"mat-icon",12),s.YNc(27,ge,2,0,"mat-icon",13),s.qZA()()(),s.TgZ(28,"div",15)(29,"button",11),s.NdJ("click",function(){s.CHM(ri);const Ii=s.oxw();return s.KtG(Ii.toggleParameter())}),s.ALo(30,"translate"),s.TgZ(31,"mat-icon",9),s._uU(32),s.qZA()()()(),s.TgZ(33,"div",16),s.YNc(34,Ce,1,8,"zen-dynamic-form",17),s.qZA(),s.TgZ(35,"div",16),s.YNc(36,De,2,1,"mat-chip-list",18),s.YNc(37,fe,3,3,"span",0),s.qZA()()(),s.TgZ(38,"div",19),s.YNc(39,xe,1,0,"mat-progress-bar",20),s.TgZ(40,"kendo-grid",21,22),s.NdJ("groupChange",function(Ii){s.CHM(ri);const yo=s.oxw();return s.KtG(yo.groupChange(Ii))})("pageChange",function(Ii){s.CHM(ri);const yo=s.oxw();return s.KtG(yo.pageChange(Ii))})("filterChange",function(Ii){s.CHM(ri);const yo=s.oxw();return s.KtG(yo.filterChange(Ii))})("sortChange",function(Ii){s.CHM(ri);const yo=s.oxw();return s.KtG(yo.sortChange(Ii))})("columnReorder",function(Ii){s.CHM(ri);const yo=s.oxw();return s.KtG(yo.onColumnReorder(Ii))})("columnResize",function(Ii){s.CHM(ri);const yo=s.oxw();return s.KtG(yo.onColumnResize(Ii))})("excelExport",function(Ii){s.CHM(ri);const yo=s.oxw();return s.KtG(yo.onExcelExport(Ii))}),s.YNc(42,Io,5,8,"kendo-grid-column",23),s._UZ(43,"kendo-grid-excel",24),s.qZA(),s.YNc(44,wr,5,3,"div",25),s.qZA(),s.TgZ(45,"div",26)(46,"div",27)(47,"b",28),s._uU(48),s.ALo(49,"translate"),s.ALo(50,"translate"),s.qZA()()()()}if(2&Ti){const ri=s.oxw();s.xp6(6),s.Q6J("matTooltip",s.lcZ(7,48,"runReport")),s.xp6(2),s.Q6J("svgIcon","report-play"),s.xp6(1),s.Q6J("matTooltip",s.lcZ(10,50,"clearAllFilters")),s.xp6(4),s.Q6J("matTooltip",s.lcZ(14,52,"saveAsExcel")),s.xp6(3),s.Q6J("ngClass",s.DdM(66,bs))("matTooltip",s.lcZ(17,54,ri.group.length>0?"removeGroup":"group")),s.xp6(2),s.Q6J("ngIf",ri.group.length>0),s.xp6(1),s.Q6J("ngIf",0==ri.group.length),s.xp6(1),s.Q6J("ngClass",s.DdM(67,bs))("matTooltip",ri.filterable?"clearGridFilter":s.lcZ(21,56,"filterRows")),s.xp6(2),s.Q6J("ngIf",ri.filterable),s.xp6(1),s.Q6J("ngIf",!ri.filterable),s.xp6(1),s.Q6J("ngClass",s.DdM(68,bs))("matTooltip",s.lcZ(25,58,"hiddenColumns")),s.xp6(2),s.Q6J("ngIf",ri.hasHiddenColumns),s.xp6(1),s.Q6J("ngIf",!ri.hasHiddenColumns),s.xp6(2),s.Q6J("ngClass",s.VKq(69,ba,ri.hideParameterArea?"":"active-action"))("matTooltip",s.lcZ(30,60,ri.hideParameterArea?"showFilter":"hideFilter")),s.xp6(3),s.hij("",ri.hideParameterArea?"keyboard_arrow_down":"keyboard_arrow_up"," "),s.xp6(1),s.Q6J("ngClass",s.VKq(71,ms,ri.hideParameterArea?"hide":"show")),s.xp6(1),s.Q6J("ngIf",ri.reportParam),s.xp6(1),s.Q6J("ngClass",s.VKq(73,Oa,ri.showHiddenColumn?"show":"hide")),s.xp6(1),s.Q6J("ngIf",ri.hasHiddenColumns),s.xp6(1),s.Q6J("ngIf",!ri.hasHiddenColumns),s.xp6(1),s.Q6J("ngClass",s.VKq(75,Ea,1==ri.noData)),s.xp6(1),s.Q6J("ngIf",ri.loading),s.xp6(1),s.Q6J("data",ri.gridView)("kendoGridGroupBinding",ri.data)("group",ri.group)("pageSize",ri.pageSize)("resizable",!0)("groupable",!!ri.groupable&&s.DdM(77,Sa))("rowHeight",ri.rowHeight)("reorderable",!0)("filterable",ri.filterable)("filter",ri.filter)("skip",ri.skip)("sort",ri.sort)("scrollable","virtual")("sortable",s.DdM(78,tr)),s.xp6(2),s.Q6J("ngForOf",ri.columns)("ngForTrackBy",ri.trackIndex),s.xp6(1),s.Q6J("fileName",ri.fileName+".xlsx")("fetchData",ri.allData),s.xp6(1),s.Q6J("ngIf",ri.noData),s.xp6(4),s.lnq("",s.lcZ(49,62,"total"),"\xa0",s.lcZ(50,64,"rows"),":\xa0",ri.gridView.total,"")}}const Li=function(Ti,mr){return{match:Ti,createEditor:mr}},Ao=function(Ti){return[Ti]},ao=function(){return{multiSelect:"COMBO_BOX"}},Go=function(Ti){return{editors:Ti}};function pr(Ti,mr){if(1&Ti&&(s.TgZ(0,"div",56),s._UZ(1,"link",57)(2,"link",58)(3,"tr-viewer",59),s.qZA()),2&Ti){const ri=s.oxw();s.xp6(3),s.Q6J("authenticationToken",ri.authToken)("containerStyle",ri.viewerContainerStyle)("serviceUrl",ri.serviceUrl)("reportSource",ri.reportSource)("viewMode","PRINT_PREVIEW")("scaleMode","SPECIFIC")("scale",1)("ready",ri.boundReportRendered)("printMode","FORCE_PDF_FILE")("sendEmailEnd",ri.sendEmailFunction)("parameterEditors",s.VKq(17,Ao,s.WLB(14,Li,ri.match,ri.createEditor)))("parameters",s.VKq(20,Go,s.DdM(19,ao)))("enableAccessibility",!1)("sendEmail",ri.sendEmail)}}const Rr=function(){return["ReportBuilderReport","SpreadsheetReport"]};let br=(()=>{class Ti{set getTabData(ri){this.userPersonId=Number(this.us.getTokenValueByKey("personId")),ri?(this.resetComponent(),this.tab={...ri},this.tabId=this.tab.tabId,this.title=this.tab.title,this.fileName=`${this.tab.title?this.tab.title:"NewFile"}`,this.reportId=this.tab.reportId,this.reportOwnerId=this.tab.reportOwnerId?this.tab.reportOwnerId:this.userPersonId,this.reportType=this.tab.reportType,"ReportBuilderReport"===this.reportType||"SpreadsheetReport"===this.reportType?(this.runOnLoad=!!this.tab.runOnLoad,this.tab.parameters&&(this.reportParam=this.us.renameKeys({parameterId:"controlId",parentReportParameterId:"parentControlId"},this.tab.parameters)),Array.isArray(this.reportParam)||(this.reportParam=[])):(this.reportSource.report=this.reportId,this.tab.parameters?(this.reportSource.parameters=this.tab.parameters,this.reportSource.parameters.UserPersonId=this.userPersonId,this.reportSource.parameters.ReportId=this.reportId):(this.reportSource.parameters.UserPersonId=this.userPersonId,this.reportSource.parameters.ReportId=this.reportId),this.emailService.getOptionEmailProfileDefault("report").subscribe(mo=>{mo&&(this.sendEmail.from=mo.from)}),this.currentPersonInfo=this.personService.currentPersonDetail.getValue(),this.sendEmail.subject=`${this.title} - ${this.currentPersonInfo.name}`)):this.us.callSnackBar("somethingWentWrong","error")}set getGroupingBarState(ri){0==ri&&(this.groupable=!1)}constructor(ri,mo,Ii,yo,lr,Yr,Gs,fi,Ho){this.us=ri,this.rs=mo,this.ngZone=Ii,this.commonService=yo,this.emailService=lr,this.personService=Yr,this.renderer=Gs,this.dialog=fi,this.workbookService=Ho,this.colMoneyIndex=[],this.colMoneyFourIndex=[],this.runOnLoad=!1,this.submitForm=!1,this.resetForm=!1,this.parameterSelectDs={},this.viewerContainerStyle={position:"relative",width:"auto",height:"75vh","font-family":"ms sans serif"},this.reportSource={report:"",parameters:{UserPersonId:0,ReportId:0,Token:""}},this.sendEmail={enabled:!0,from:""},this.multiSelectParameters={editors:{multiSelect:"COMBO_BOX"}},this._unsubscribeAll=new a.x,this.allData=this.allData.bind(this),Gs.listen("window","resize",()=>this.updateRowHeight()),this.reportConfig=u.XL.settings.report||{},this.workbookConfig=u.XL.settings.workbook,this.pageSize=this.reportConfig.pageSize||100}ngOnInit(){this.boundReportRendered=this.pageReady.bind(this),this.sendEmailFunction=this.sendEmailEnd.bind(this),this.authToken=this.us.getLocalStorage("token"),this.serviceUrl=u.XL.settings.reportUrl}populateGridData(ri){this.loading=!0,ri.data&&ri.columns?(Array.isArray(ri.columns)||(ri.columns=[]),ri.columns.length>0?this.setColumnProperty(ri.columns).then(mo=>{this.columns=mo||[],this.setGridData(ri)}).catch(mo=>{this.setGridData(ri),this.us.callSnackBar(mo,"error")}):(this.columns=[],this.setGridData(ri))):ri.innerException&&ri.innerException.message&&(ri.innerException.message.toLowerCase().includes("timed out")?this.us.callSnackBar("reportTimeout","error"):this.us.callSnackBar(ri.innerException.message,"error"),this.loading=!1)}setGridData(ri){Array.isArray(ri.data)||(ri.data=[]),ri.data.length>0?this.convertToDataType(ri.data).then(mo=>{mo?(this.data=mo,this.originalData=this.data):(this.data=[],this.originalData=this.data),this.loadGridData()}).catch(mo=>{this.us.callSnackBar(mo,"error"),this.loadGridData()}):(this.data=[],this.originalData=this.data,this.loadGridData())}setColumnProperty(ri){return this.groupTotalAggregationDs={},this.grandTotalAggregationDs={},this.groupTotalAggregationProp=[],this.grandTotalAggregationProp=[],this.group=[],new Promise((mo,Ii)=>{const yo=[];ri.forEach((lr,Yr)=>{lr.sortOrder=Yr+1,lr.columnWidth=lr.columnWidth?lr.columnWidth:200,lr.dataType=lr.dataType?lr.dataType.toLowerCase():"",lr.dataType&&""!==lr.dataType&&(lr.format=(this.reportConfig.format||{})[lr.dataType]||null,lr.filter=(this.reportConfig.filter||{})[lr.dataType]||null),lr.aggregate&&""!==lr.aggregate&&"groupby"!==lr.aggregate.toLowerCase()&&(lr.groupTotalAggregation&&""!==lr.groupTotalAggregation?(this.groupTotalAggregationDs[lr.name]=lr.groupTotalAggregation?lr.groupTotalAggregation.toLowerCase():null,this.groupTotalAggregationProp.push({field:lr.name,aggregate:lr.groupTotalAggregation.toLowerCase()})):(this.groupTotalAggregationDs[lr.name]=lr.aggregate?lr.aggregate.toLowerCase():null,this.groupTotalAggregationProp.push({field:lr.name,aggregate:lr.aggregate.toLowerCase()}))),lr.aggregate&&""!==lr.aggregate&&"groupby"!==lr.aggregate.toLowerCase()&&(lr.grandTotalAggregation&&""!==lr.grandTotalAggregation?(this.grandTotalAggregationDs[lr.name]=lr.grandTotalAggregation?lr.grandTotalAggregation.toLowerCase():null,this.grandTotalAggregationProp.push({field:lr.name,aggregate:lr.grandTotalAggregation.toLowerCase()})):(this.grandTotalAggregationDs[lr.name]=lr.aggregate?lr.aggregate.toLowerCase():null,this.grandTotalAggregationProp.push({field:lr.name,aggregate:lr.aggregate.toLowerCase()}))),lr.isHidden&&""!==lr.isHidden&&this.hiddenColumns.push(lr.name),lr.isGroupped&&""!==lr.isGroupped&&(yo.push({field:lr.name,groupOrder:lr.groupOrder,dir:""==lr.grouppingSortOrder?null:lr.grouppingSortOrder,aggregates:[]}),-1===this.hiddenColumns.indexOf(lr.name)&&this.hiddenColumns.push(lr.name)),ri.length-1===Yr&&(yo.length>0&&(yo.sort((Gs,fi)=>this.us.sortArrayObjByKey(Gs,fi,"groupOrder")),this.groupTotalAggregationProp.length>0&&yo.map(Gs=>{Gs.aggregates=this.groupTotalAggregationProp,delete Gs.groupOrder}),this.group=yo,this.groupPropertySet(!0)),this.setHasHiddenColumns(),this.setFirstVisibleColumn(ri),mo(ri))})})}convertToDataType(ri){return new Promise((mo,Ii)=>{let yo;const lr=[];ri.forEach((Yr,Gs)=>{Object.keys(Yr).forEach(fi=>{yo=this.columnDataType(fi),["date","datetime","time"].includes(yo)&&Yr[fi]?Yr[fi]=this.us.toJsDate(Yr[fi],"JsDate"):["number","decimal","money","moneyfour"].includes(yo)&&Yr[fi]?Yr[fi]=Number(Yr[fi]):["boolean"].includes(yo)&&Yr[fi]&&(Yr[fi]=!!Yr[fi])}),lr.push(Yr),ri.length-1===Gs&&mo(lr)})})}loadGridData(){const ri={skip:this.skip,take:this.take};if(this.group&&this.group.length>0){ri.group=this.group;let Ii={sort:[]};this.group.forEach(yo=>{Ii.sort.push({dir:"asc",field:yo.field})}),this.sort&&this.sort.length>0&&Ii.sort.push(this.sort[0]),this.filter&&this.filter.filters&&this.filter.filters.length>0&&(ri.filter=this.filter),this.data=(0,e.N4)(this.data.slice(),Ii).data}else this.data=this.originalData,this.sort&&this.sort.length>0&&(ri.sort=this.sort),this.filter&&this.filter.filters&&this.filter.filters.length>0&&(ri.filter=this.filter);let mo;this.gridView=(0,e.N4)(this.data.slice(),ri),this.grandTotalAggregationProp.length>0&&(mo=(0,e.N4)(this.data.slice(),{filter:this.filter}).data),setTimeout(()=>{this.grandTotal=mo?(0,e.VN)(mo,this.grandTotalAggregationProp):{},this.noData=0===this.gridView.total,this.loading=!1},300)}columnDataType(ri){const mo=this.columns.filter(Ii=>Ii.name.toLowerCase()===ri.toLowerCase());return mo&&mo[0]&&mo[0].dataType?mo[0].dataType:""}trackIndex(ri){return ri}pageChange(ri){this.skip=ri.skip,this.take=ri.take,this.loadGridData()}setHasHiddenColumns(){this.hasHiddenColumns=this.hiddenColumns.length>0}groupChange(ri){this.loading=!0,this.groupColumns&&ri.forEach(Ii=>{(!Ii.hasOwnProperty("dir")||Ii.hasOwnProperty("dir")&&null==Ii.dir)&&(Ii.dir="asc")});const mo=this.group;this.group=ri,mo.map(Ii=>{-1===this.group.indexOf(Ii.field)&&this.hiddenColumns.splice(this.hiddenColumns.indexOf(Ii.field),1)}),this.hiddenColumns=[],ri.map(Ii=>{-1===this.hiddenColumns.indexOf(Ii.field)&&this.hiddenColumns.push(Ii.field)}),this.setHasHiddenColumns(),this.setFirstVisibleColumn(),this.group.map(Ii=>{Ii.aggregates=this.groupTotalAggregationProp}),this.reportOwnerId===this.userPersonId&&(this.reportColumnUpdateParam={reportId:this.reportId,type:"group",groups:ri},this.saveGridProperty()),this.loadGridData()}filterChange(ri){this.loading=!0,this.filter=ri,this.loadGridData()}sortChange(ri){this.loading=!0,this.sort=ri,this.loadGridData()}exportToExcel(){this.data&&this.data.length>0&&this.gridView.data&&this.gridView.data.length>0?this.reportGrid?(this.loading=!0,this.group.length>0?this.dialog.open(E,{panelClass:"workbook-popup",data:{splitSheetByGroup:this.reportGrid.group[0].field,splitSheetByGroupList:this.reportGrid.group}}).afterClosed().subscribe(mo=>{if(mo){if("close"===mo.action)return this.us.callSnackBar("actionCancelled","info"),void(this.loading=!1);if("yes"===mo.action){const Ii=this.reportGrid.columns.toArray().map(yo=>({field:yo.field,title:yo.title,dataType:this.columnDataType(yo.field)}));this.workbookService.exportToWorkbook(Ii,this.data,mo.group,this.fileName,this.grandTotal,this.sort,this.filter)}else"no"===mo.action&&this.reportGrid.saveAsExcel();this.us.callSnackBar("downloadingReport","info"),this.loading=!1}}):(this.reportGrid.saveAsExcel(),this.us.callSnackBar("downloadingReport","info"),this.loading=!1)):this.us.callSnackBar("reportGridNotFound","error"):this.us.callSnackBar("noDataToExport","info")}onExcelExport(ri){ri.workbook.sheets[0].rows.forEach(Ii=>{"header"===Ii.type&&Ii.cells.forEach((yo,lr)=>{if(yo.value){let Yr=this.columnDataType(yo.value.replaceAll(" ",""));if("money"===Yr?.toLowerCase())return void this.colMoneyIndex.push(lr);if("moneyfour"===Yr?.toLowerCase())return void this.colMoneyFourIndex.push(lr)}}),"data"===Ii.type&&Ii.cells.forEach((yo,lr)=>{this.colMoneyIndex.find(Yr=>Yr==lr)?yo.format=this.workbookConfig.format.money:this.colMoneyFourIndex.find(Yr=>Yr==lr)&&(yo.format=this.workbookConfig.format.moneyfour)})})}allData(){return{data:(0,e.N4)((0,b.cloneDeep)(this.data),{group:this.group,sort:this.sort,filter:this.filter}).data,group:this.group}}enableDisableFilter(){this.loading=!0,this.filterable=!this.filterable,this.filterable&&this.showHiddenColumn&&(this.showHiddenColumn=!1),this.filterable&&!this.hideParameterArea&&(this.hideParameterArea=!0),this.filterable||(this.filter={filters:[],logic:"and"}),this.loadGridData()}enableDisableGroup(){this.loading=!0,this.groupPropertySet(),this.groupable?this.loading=!1:(this.group.forEach(ri=>{-1!==this.hiddenColumns.indexOf(ri.field)&&this.hiddenColumns.splice(this.hiddenColumns.indexOf(ri.field),1)}),this.group=[],this.setHasHiddenColumns(),this.loadGridData())}groupPropertySet(ri){this.groupable=ri||!this.groupable,this.groupable&&this.showHiddenColumn&&(this.showHiddenColumn=!1),this.groupable&&!this.hideParameterArea&&(this.hideParameterArea=!0)}toggleParameter(){this.hideParameterArea=!this.hideParameterArea,this.showHiddenColumn&&!this.hideParameterArea&&(this.showHiddenColumn=!1)}showHiddenColumns(){this.showHiddenColumn=!this.showHiddenColumn,this.showHiddenColumn&&!this.hideParameterArea&&(this.hideParameterArea=!0)}hideColumn(ri){this.loading=!0,this.hiddenColumns.push(ri),this.setHasHiddenColumns(),this.setFirstVisibleColumn(),this.reportOwnerId===this.userPersonId?(this.reportColumnUpdateParam={reportId:this.reportId,column:ri,type:"isHidden",isHidden:1},this.saveGridProperty()):this.loading=!1}showColumn(ri){this.loading=!0,this.hiddenColumns.splice(this.hiddenColumns.indexOf(ri),1),this.setHasHiddenColumns(),this.setFirstVisibleColumn(),this.reportOwnerId===this.userPersonId?(this.reportColumnUpdateParam={reportId:this.reportId,column:ri,type:"isHidden",isHidden:0},this.saveGridProperty()):this.loading=!1}setFirstVisibleColumn(ri){if(this.groupTotalAggregationProp.length>0){ri=ri||this.columns;for(const mo of ri)if(!this.hiddenColumns.includes(mo.name)){this.firstVisibleColumn=mo.name;break}this.firstVisibleColumnOld&&""!==this.firstVisibleColumnOld&&this.firstVisibleColumnOld!==this.firstVisibleColumn&&(this.gridView={...this.gridView}),this.firstVisibleColumnOld=this.firstVisibleColumn}}resetParameter(ri){this.hideParameterArea=!1,this.resetForm=!0}onReset(ri){this.resetForm=!1}submitParameter(ri){this.submitForm=!0}onSubmit(ri){if(ri){if(!ri.isValid)return void(this.submitForm=!1);this.hideParameterArea=!0,this.submitForm=!1,this.runReport(ri.value)}}runReport(ri){this.loading=!0;const mo=[];ri.forEach(Ii=>{if(["multiselect","select"].includes(Ii.dataType?Ii.dataType:""))(0===ri.filter(Yr=>Yr.parentControlId.includes(Ii.controlId)).length||Ii.requireValueAsParent)&&mo.push({reportParameterId:Ii.controlId,parameterValue:Ii.value});else if("date"==Ii.dataType?.toLowerCase()&&"between"==Ii.operator?.toLowerCase()){var yo=Ii.value.split(",");let lr=Ii.alias.toString().toLowerCase()+"from",Yr=Ii.alias.toString().toLowerCase()+"to";mo.push({reportParameterId:Ii.controlId,reportParameterName:lr.replace(" ",""),parameterValue:yo[0]}),mo.push({reportParameterId:Ii.controlId,reportParameterName:Yr.replace(" ",""),parameterValue:yo[1]})}else mo.push({reportParameterId:Ii.controlId,parameterValue:Ii.value})}),this.filter={filters:[],logic:"and"},"ReportBuilderReport"===this.reportType?this.rs.dynamicReportData({reportId:this.reportId,parameters:mo},!0).pipe((0,n.R)(this._unsubscribeAll)).subscribe(Ii=>{Ii&&!Ii.error?(this.groupable=0!=Ii.totalCount,this.groupColumns=Ii.columns,this.populateGridData(Ii)):(this.groupable=!1,this.us.callSnackBar("resourceNotFound"===Ii.error?"resourceNotFound":"reportFailedToLoad","error"),this.loading=!1)}):"SpreadsheetReport"===this.reportType&&this.rs.staticReportData({reportId:this.reportId,parameters:mo},!0).pipe((0,n.R)(this._unsubscribeAll)).subscribe(Ii=>{Ii&&!Ii.error?(this.groupable=0!=Ii.totalCount,this.populateGridData(Ii)):(this.groupable=!1,this.us.callSnackBar("resourceNotFound"===Ii.error?"resourceNotFound":"reportFailedToLoad","error")),this.loading=!1})}onColumnResize(ri){this.loading=!0,ri[0].newWidth!==ri[0].oldWidth&&this.reportOwnerId===this.userPersonId?(this.reportColumnUpdateParam={reportId:this.reportId,column:ri[0].column.field,type:"width",width:ri[0].newWidth},this.saveGridProperty()):this.loading=!1}onColumnReorder(ri){this.loading=!0;let mo=[...new Set(this.columns)];const Ii=mo.filter(lr=>lr.sortOrder===ri.newIndex+1),yo=mo.filter(lr=>lr.name===ri.column.field);Ii&&Ii[0]&&(Ii[0].sortOrder=ri.oldIndex+1),yo&&yo[0]&&(yo[0].sortOrder=ri.newIndex+1),mo=this.us.uniqueMergeArrayObj(mo,[...Ii,...yo]),mo.sort((lr,Yr)=>this.us.sortArrayObjByKey(lr,Yr,"sortOrder")),this.setHasHiddenColumns(),this.setFirstVisibleColumn(mo),ri&&this.reportOwnerId===this.userPersonId?(this.reportColumnUpdateParam={reportId:this.reportId,type:"sortOrder",column:ri.column.field,newOrder:ri.newIndex+1,oldOrder:ri.oldIndex+1},this.saveGridProperty()):this.loading=!1}fitColumns(){this.ngZone.onStable.asObservable().pipe((0,o.q)(1)).subscribe(()=>{this.reportGrid&&this.reportGrid.autoFitColumns()})}saveGridProperty(){this.rs.reportPropertyUpdate(this.reportColumnUpdateParam).pipe((0,n.R)(this._unsubscribeAll)).subscribe(ri=>{this.loading=!1,ri||this.us.callSnackBar("reportPropertyChangeFailed","error")})}updateRowHeight(){this.rowHeight=window.matchMedia("(max-width: 576px)").matches?156:36}getSelectListData(ri){this.loading=!0,this.rs.reportParameterData({reportParameterId:ri.controlDef.controlId,parentValue:ri.parentValue,searchText:ri.searchText},!0).pipe((0,n.R)(this._unsubscribeAll)).subscribe(mo=>{mo?(this.parameterSelectDs[ri.controlDef.controlId]={...this.us.generateZenSelectConfig(mo)},this.parameterSelectDs=JSON.parse(JSON.stringify(this.parameterSelectDs))):this.us.callSnackBar("failedToLoadFilterData","error"),this.loading=!1})}resetComponent(){this.take=this.pageSize,this.skip=0,this.data=[],this.originalData=this.data,this.gridView={total:0,data:[]},this.noData=!1,this.loading=!1,this.filter={filters:[],logic:"and"},this.sort=[],this.group=[],this.hasHiddenColumns=!1,this.grandTotal=void 0,this.reportColumnUpdateParam={},this.groupable=!0,this.groupTotalAggregationDs={},this.grandTotalAggregationDs={},this.hideParameterArea=!1,this.filterable=!0,this.showHiddenColumn=!1,this.firstVisibleColumn="",this.groupTotalAggregationProp=[],this.grandTotalAggregationProp=[],this.reportParam=[],this.columns=[],this.title=void 0,this.hiddenColumns=[],this.tab=void 0,this.parameterSelectDs={},this.runOnLoad=!1,this.submitForm=!1,this.resetForm=!1,this.updateRowHeight()}createEditor(ri,mo){const Ii=l(ri).html("<div></div>");let yo;const lr=mo.parameterChanged;let Yr;function Gs(){const fi=Yr.value();lr(yo,fi)}return{beginEdit:function(fi){yo=fi,l(Ii).kendoDropDownList({dataTextField:"name",dataValueField:"value",value:yo.value,dataSource:yo.availableValues,change:Gs}),Yr=l(Ii).data("kendoDropDownList")}}}match(ri){return!!ri.availableValues&&!ri.multivalue}pageReady(){var ri=l(".trv-pages-area").data("kendoTouch");ri&&ri.unbind("doubletap")}ngAfterViewInit(){}sendEmailEnd(ri){this.us.callSnackBar("emailSent","success")}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(mo){return new(mo||Ti)(s.Y36(I.t),s.Y36(L.r),s.Y36(s.R0b),s.Y36(D.v),s.Y36(F.j),s.Y36(P.R),s.Y36(s.Qsj),s.Y36(d.on),s.Y36(V))};static#t=this.\u0275cmp=s.Xpm({type:Ti,selectors:[["report-view"]],viewQuery:function(mo,Ii){if(1&mo&&(s.Gf(j,5),s.Gf(H,5)),2&mo){let yo;s.iGM(yo=s.CRH())&&(Ii.reportGrid=yo.first),s.iGM(yo=s.CRH())&&(Ii.paginatedReportViewer=yo.first)}},inputs:{getTabData:["tabData","getTabData"],getGroupingBarState:["showGroupDragbar","getGroupingBarState"]},decls:2,vars:3,consts:[[4,"ngIf"],["class","paginatedreport",4,"ngIf"],[1,"report-parameter"],[1,"w-100-p","report-parameter-form"],["fxLayout","row wrap","fxFlex","100",1,"report-parameter-btn-group","w-100-p"],["fxLayout","column","fxFlex","100","fxFlex.gt-xs","50","fxFlex.gt-md","50"],[1,"report-action-group"],["mat-icon-button","","type","button",1,"report-parameter-button",3,"matTooltip","click"],[3,"svgIcon"],[1,"secondary-text"],["src","../../../../assets/icons/extra-icons/xl.png"],["mat-icon-button","","type","button",3,"ngClass","matTooltip","click"],["matBadgePosition","after","matBadgeColor","primary","class","secondary-text",3,"matBadge",4,"ngIf"],["matBadgePosition","after","matBadgeColor","primary","class","secondary-text",4,"ngIf"],[3,"svgIcon",4,"ngIf"],["fxLayout","column","fxFlex","100","fxFlex.gt-xs","50","fxFlex.gt-md","50","fxLayoutAlign","end end"],["fxLayout","row wrap","fxFlex","100",3,"ngClass"],["class","w-100-p",3,"controls","controlsPerRow","noControlsLabel","submitOnLoad","resetForm","submitForm","setControlsData","submitOnValueChange","getControlsData","onSubmit","onReset",4,"ngIf"],["class","hidden-column-chip-list w-100-p",4,"ngIf"],[1,"w-100-p","report-view-grid",3,"ngClass"],["mode","indeterminate","class","loading-grid","color","accent",4,"ngIf"],[1,"report-view-grid",3,"data","kendoGridGroupBinding","group","pageSize","resizable","groupable","rowHeight","height","reorderable","filterable","filter","skip","sort","scrollable","sortable","groupChange","pageChange","filterChange","sortChange","columnReorder","columnResize","excelExport"],["reportGrid",""],[3,"field","title","format","width","filter","hidden",4,"ngFor","ngForOf","ngForTrackBy"],[3,"fileName","fetchData"],["class","no-records-label",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","10px",1,"w-100-p"],["fxFlex",""],[2,"float","right","margin-right","3px"],["matBadgePosition","after","matBadgeColor","primary",1,"secondary-text",3,"matBadge"],["matBadgePosition","after","matBadgeColor","primary",1,"secondary-text"],[1,"w-100-p",3,"controls","controlsPerRow","noControlsLabel","submitOnLoad","resetForm","submitForm","setControlsData","submitOnValueChange","getControlsData","onSubmit","onReset"],[1,"hidden-column-chip-list","w-100-p"],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],[3,"selectable","removable","removed"],["matChipRemove","",3,"matTooltip"],["mode","indeterminate","color","accent",1,"loading-grid"],[3,"field","title","format","width","filter","hidden"],["kendoGridHeaderTemplate",""],["kendoGridGroupFooterTemplate",""],["kendoGridFooterTemplate",""],[1,"secondary-text","hide-column-btn",3,"matTooltip","click"],["kendoGridFilterCellTemplate",""],["filterService","filterService",3,"column","filter","showOperators",4,"ngIf"],["filterService","filterService",3,"column","filter","operator","showOperators",4,"ngIf"],["filterService","filterService","currentFilter","filter",3,"column","filter","showOperators",4,"ngIf"],["filterService","filterService","currentFilter","filter",3,"column","filter",4,"ngIf"],["filterService","filterService",3,"column","filter","showOperators"],["filterService","filterService",3,"column","filter","operator","showOperators"],["filterService","filterService","currentFilter","filter",3,"column","filter","showOperators"],["filterService","filterService","currentFilter","filter",3,"column","filter"],[3,"matTooltip",4,"ngIf"],[3,"matTooltip"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"no-records-label"],[1,"paginatedreport"],["rel","stylesheet","href","https://kendo.cdn.telerik.com/2022.3.1109/styles/kendo.common.min.css"],["rel","stylesheet","href","https://kendo.cdn.telerik.com/2022.3.1109/styles/kendo.bootstrap.min.css"],["fxFlex","row",3,"authenticationToken","containerStyle","serviceUrl","reportSource","viewMode","scaleMode","scale","ready","printMode","sendEmailEnd","parameterEditors","parameters","enableAccessibility","sendEmail"]],template:function(mo,Ii){1&mo&&(s.YNc(0,Mr,51,79,"div",0),s.YNc(1,pr,4,22,"div",1)),2&mo&&(s.Q6J("ngIf",s.DdM(2,Rr).includes(Ii.reportType)),s.xp6(1),s.Q6J("ngIf","ReportBuilderReport"!=Ii.reportType&&"SpreadsheetReport"!=Ii.reportType))},dependencies:[A.mk,A.sg,A.O5,A.RF,A.n9,C.xw,C.SQ,C.Wh,C.yH,K.oO,R.Hw,x.eB,X.Kd,me.eI,J.ir,J.lw,J.Y6,Q.k,re.MwP,re.rJl,re.NEF,re.bg4,re.RZ,re._cx,re.TIf,re.Pqr,re.Ymc,re.Bl$,re.PZI,de.V,re.mYD,te.N,A.JJ,A.H9,A.uU,M.X$],styles:[".workbook-popup .mat-dialog-container{padding:0}.workbook-popup .dialog-content-wrapper{width:35vw;max-height:80vh;display:flex;flex-direction:column}@media screen and (max-width: 599px){.workbook-popup .dialog-content-wrapper{width:auto}}.loading-grid{position:absolute;z-index:1;height:5px}.report-parameter{border-bottom:1px solid #cccbce;margin-bottom:4px!important}.report-parameter .report-parameter-form{display:block!important;position:relative}.report-parameter .report-parameter-form .report-action-ddl-wrapper{position:absolute;z-index:10;width:100%!important;background:#eaeff1!important;border-bottom:2px solid #8a8790;border-top:.5px solid #d0cdcd;min-height:5vh}.report-parameter .report-parameter-form .report-action-ddl-wrapper .zs-container{display:block;flex-direction:inherit;min-width:inherit}.report-parameter .report-parameter-form .report-action-ddl-wrapper .hidden-column-chip-list .mat-chip-remove:hover{color:#f52d2d!important;opacity:1!important}.report-parameter .report-parameter-form .report-parameter-btn-group{background-color:#f5f5f5}.report-parameter .report-parameter-form .report-parameter-btn-group .report-action-group{position:relative}.report-parameter .report-parameter-form .report-parameter-btn-group .report-action-group .active-action{background-color:#f0e5e5;border-radius:0}.report-parameter .report-parameter-form .report-parameter-btn-group .report-action-group .report-parameter-button{color:#534545!important}.report-parameter .report-parameter-form .report-parameter-btn-group .report-action-group .report-parameter-button mat-icon .mat-badge-content{top:20px!important;background:#236d92!important;z-index:11}.report-parameter .report-parameter-form .report-parameter-btn-group .report-action-group .report-parameter-button:nth-child(1) mat-icon{color:red}.report-parameter .report-parameter-form .report-parameter-btn-group .report-action-group .report-parameter-button:nth-child(2) mat-icon{color:#9acd32}.report-parameter .report-parameter-form .report-parameter-btn-group .report-action-group .report-parameter-button:nth-child(3) mat-icon{color:inherit}.report-parameter .report-parameter-form .report-parameter-btn-group .report-action-group .report-parameter-button:nth-child(4) mat-icon{color:#f23d31}.report-parameter .report-parameter-form .report-parameter-btn-group .report-action-group .report-parameter-button:nth-child(5) mat-icon{color:#73c1ff}.report-parameter .report-parameter-form .report-parameter-btn-group .report-action-group .report-parameter-button:nth-child(6) mat-icon{color:orange}.report-parameter .report-parameter-form .report-parameter-btn-group .report-action-group .report-parameter-button:nth-child(7) mat-icon{color:pink}.report-parameter .report-parameter-form .report-parameter-btn-group .report-action-group .report-parameter-button:nth-child(8) mat-icon{color:#5c5757}.report-parameter .report-parameter-form .report-parameter-btn-group .report-action-group .report-parameter-button .secondary-text{color:#5a5b5f}.report-parameter .report-parameter-form .report-parameter-btn-group .report-action-group .report-parameter-button:hover{background:#ededed!important;border-radius:0!important}.report-parameter .report-parameter-form .report-parameter-btn-group .cdk-mouse-focused{border-radius:unset;background-color:#f0e5e5}.report-parameter .report-parameter-form .report-parameter-btn-group .parameter-toggle-btn{background-color:#eae2e2;border-radius:0!important}.report-parameter .report-parameter-form .hide{display:none!important;opacity:0;transition:height 0ms .4s,opacity .4s 0ms}.report-parameter .report-parameter-form .show{display:flex!important;opacity:1;transition:height 0ms 0ms,opacity .6s 0ms}.report-view-grid{position:relative}.report-view-grid .k-grid-norecords{display:none}.report-view-grid .no-records-label{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%;position:absolute;top:48%}.report-view-grid kendo-grid{height:calc(100vh - 275px)}.report-view-grid kendo-grid table{width:100%!important}.report-view-grid kendo-grid .k-grid-header .k-header .k-link{color:#4a6471!important;font-weight:700}.report-view-grid kendo-grid .k-grid-header .k-header .k-link:hover{text-decoration:none!important}.report-view-grid kendo-grid kendo-grid-group-panel .k-indicator-container .k-group-indicator .k-link{color:#5a5b5f!important;font-weight:700;position:relative}.report-view-grid kendo-grid kendo-grid-group-panel .k-indicator-container .k-group-indicator .k-link:hover{text-decoration:none!important}.report-view-grid kendo-grid .hide-column-btn{float:right;font-size:medium;visibility:hidden;z-index:10000;cursor:pointer;color:red;line-height:18px;position:absolute;right:4px}.report-view-grid kendo-grid tbody td{white-space:nowrap;line-height:20px;padding:8px 12px}.report-view-grid kendo-grid thead tr th{padding:8px 23px 8px 12px}.report-view-grid kendo-grid thead tr th:hover .hide-column-btn{visibility:visible;cursor:pointer}.report-view-grid kendo-grid thead tr th:hover .hide-column-btn:before{position:relative;right:5px}.report-view-grid kendo-grid thead kendo-grid-string-filter-cell .k-filtercell-wrapper{position:relative}.report-view-grid kendo-grid thead kendo-grid-string-filter-cell .k-filtercell-wrapper kendo-textbox:hover{z-index:1000!important;position:absolute!important;top:0!important;box-shadow:5px 10px 18px #888;width:calc(100% + 25px)!important;min-width:225px}.report-view-grid kendo-grid thead kendo-grid-numeric-filter-cell .k-numerictextbox:hover .k-numeric-wrap{position:absolute;top:0;box-shadow:5px 10px 18px #888;z-index:999;width:calc(100% + 45px);min-width:185px}.report-view-grid kendo-grid thead kendo-grid-date-filter-cell .k-datepicker .k-picker-wrap .k-dateinput:hover{position:absolute;top:0;box-shadow:5px 10px 18px #888;z-index:999;min-width:125px}.report-view-grid ::ng-deep .mat-progress-bar-fill:after{background-color:#32a5d9}.report-view-grid ::ng-deep .mat-progress-bar-buffer{background:#e4e8eb}.report-view-grid ::ng-deep .mat-progress-bar{border-radius:2px}.report-view-grid .zen-loading-backcontent-cover{position:absolute;top:15px;width:100%;height:100%;background:#ffffff;z-index:160}.report-view-grid.no-records .k-grid-header .k-grid-header-wrap{overflow-x:auto}.report-view-grid .k-grid-header-wrap td{overflow:visible}.page-template{font-family:DejaVu Sans,Arial,sans-serif;position:absolute;width:100%;height:100%;top:0;left:0}.page-template .header{position:absolute;top:30px;left:30px;right:30px;border-bottom:1px solid #888;color:#888}.page-template .footer{position:absolute;bottom:30px;left:30px;right:30px;border-top:1px solid #888;text-align:center;color:#888}.line1,.line2{height:3px!important}.trv-parameter-editor-available-values-multiselect .trv-combo .k-selection-multiple .k-input-inner{display:block!important}\n"],encapsulation:2})}return Ti})()},87847:(he,y,i)=>{"use strict";i.d(y,{K:()=>k});var e=i(20180),n=i(30617),o=i(94505),a=i(30481),l=i(26177),u=i(8841),d=i(84676),s=i(89515),A=i(39014),_=i(11812),C=i(48134),R=i(48424),x=i(81274),f=i(65879);let k=(()=>{class w{static#e=this.\u0275fac=function(p){return new(p||w)};static#t=this.\u0275mod=f.oAB({type:w});static#n=this.\u0275inj=f.cJS({imports:[e.L,s.aw,n.Ps,o.yu,a.AA,R.uw,C.jc,l.yD,A.g,x.g0,u.zE6,d.N,u.xGR,_.J]})}return w})()},81667:(he,y,i)=>{"use strict";i.d(y,{B:()=>I});var e=i(66878),n=i(78645),o=i(59773),a=i(56223),l=i(96814),u=i(65879),d=i(19735),s=i(74187),A=i(83814),_=i(16379),C=i(30617),R=i(94505),x=i(81274),f=i(32333),k=i(30481),w=i(89515);function g(L,D){if(1&L){const F=u.EpF();u.TgZ(0,"button",4),u.NdJ("click",function(){u.CHM(F);const O=u.oxw();return u.KtG(O.tabMinimize())}),u.ALo(1,"translate"),u.TgZ(2,"mat-icon"),u._uU(3,"remove"),u.qZA()()}2&L&&u.s9C("matTooltip",u.lcZ(1,1,"minimizeReport"))}function M(L,D){1&L&&(u.TgZ(0,"mat-icon"),u._uU(1,"fullscreen"),u.qZA())}function p(L,D){1&L&&(u.TgZ(0,"mat-icon"),u._uU(1,"fullscreen_exit"),u.qZA())}function E(L,D){if(1&L){const F=u.EpF();u.TgZ(0,"span",12),u._uU(1),u.ALo(2,"translate"),u.TgZ(3,"mat-icon",13),u.NdJ("click",function(){u.CHM(F);const O=u.oxw().$implicit,U=u.oxw();return u.KtG(U.tabClose(O.tabId))}),u._uU(4,"close"),u.qZA()()}if(2&L){const F=u.oxw().$implicit;u.s9C("matTooltip",F.description),u.Q6J("matTooltipClass","multiline"),u.xp6(1),u.hij(" ",u.lcZ(2,3,F.title)," ")}}function b(L,D){if(1&L&&(u.TgZ(0,"mat-tab",9),u.YNc(1,E,5,5,"ng-template",10),u.TgZ(2,"div"),u._UZ(3,"report-view",11),u.qZA()()),2&L){const F=D.$implicit;u.Q6J("label",F.title),u.xp6(3),u.Q6J("tabData",F)}}let I=(()=>{class L{constructor(F,P,O,U,V){this.document=F,this.data=P,this.dialogRef=O,this.rs=U,this.us=V,this.selectedTab=new a.p4(0),this.tabFullScreen=!1,this._unsubscribeAll=new n.x,O.disableClose=!0,this.title=P&&P.title?P.title:"reports",this.minimizeBtn=!(!P||!P.minimizeBtn)}ngOnInit(){this.rs.reportTabDataSet.pipe((0,o.R)(this._unsubscribeAll)).subscribe(F=>{F&&(this.currentReportTabs=F,this.selectedTab.setValue(this.currentReportTabs.length-1))})}setSelectedTab(F){this.selectedTab.setValue(F)}tabClose(F){let P=this.rs.reportTabDataSet.getValue();P=(P||[]).filter(O=>O.tabId!==F),this.rs.reportTabDataSet.next(P),0===P.length&&(this.dialogRef.close("close"),this.resetDialogComponent())}close(){(this.rs.reportTabDataSet.getValue()||[]).length>1?(this.us.openConfirmDialog({headerText:"closeTab",confirmationText:"closeAllTabs"}),this.us.confirmDialogAction.pipe((0,o.R)(this._unsubscribeAll)).subscribe(O=>{"yes"===O&&(this.dialogRef.close("close"),this.resetDialogComponent(),this.us.closeConfirmDialog())})):(this.dialogRef.close("close"),this.resetDialogComponent());const F=this.document.getElementsByClassName("k-widget k-window trv-search");for(let P=0;P<(F||[]).length;P++)F[P].style.display="none"}resetDialogComponent(){this.currentReportTabs=[],this.rs.reportViewDialogDisabled=!0,this.removeReportDialogDOM()}tabMinimize(){const F=document.getElementsByTagName("view-report-dialog");F.length>0?(F[0].parentElement.parentElement.parentElement.setAttribute("style","display:none;"),F[0].parentElement.parentElement.parentElement.parentElement.getElementsByClassName("cdk-overlay-backdrop")[0].setAttribute("style","display:none;"),this.rs.reportViewDialogDisabled=!1):this.us.callSnackBar("errorMinimizingReport","error")}tabFullScreenChange(){this.tabFullScreen=!this.tabFullScreen}removeReportDialogDOM(){this.rs.reportTabDataSet.next([]);const F=document.getElementsByTagName("view-report-dialog");F.length>0&&(F[0].parentElement.parentElement.parentElement.parentElement.getElementsByClassName("cdk-overlay-backdrop")[0].remove(),F[0].parentElement.parentElement.parentElement.remove())}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(P){return new(P||L)(u.Y36(l.K0),u.Y36(e.eJ),u.Y36(e.hV),u.Y36(d.r),u.Y36(s.t))};static#t=this.\u0275cmp=u.Xpm({type:L,selectors:[["view-report-dialog"]],decls:19,vars:17,consts:[[1,"mat-accent","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","space-between center"],[1,"title","dialog-title"],["mat-icon-button","","tabindex","-1",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","","tabindex","-1",3,"matTooltip","click"],[4,"ngIf"],["mat-dialog-content","",1,"p-8","m-0","report-content"],["id","matTabGroup","fxFlexFill","",1,"view-report-dialog",3,"selectedIndex","selectedIndexChange"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],["mat-tab-label",""],[3,"tabData"],[1,"title","dialog-title","tab-header",3,"matTooltip","matTooltipClass"],[1,"tab-close",3,"click"]],template:function(P,O){1&P&&(u.TgZ(0,"div")(1,"mat-toolbar",0)(2,"mat-toolbar-row",1)(3,"span",2),u._uU(4),u.ALo(5,"translate"),u.qZA(),u.TgZ(6,"div"),u.YNc(7,g,4,3,"button",3),u.TgZ(8,"button",4),u.NdJ("click",function(){return O.tabFullScreenChange()}),u.ALo(9,"translate"),u.YNc(10,M,2,0,"mat-icon",5),u.YNc(11,p,2,0,"mat-icon",5),u.qZA(),u.TgZ(12,"button",4),u.NdJ("click",function(){return O.close()}),u.ALo(13,"translate"),u.TgZ(14,"mat-icon"),u._uU(15,"close"),u.qZA()()()()(),u.TgZ(16,"div",6)(17,"mat-tab-group",7),u.NdJ("selectedIndexChange",function(V){return O.setSelectedTab(V)}),u.YNc(18,b,4,2,"mat-tab",8),u.qZA()()()),2&P&&(u.Gre("dialog-content-wrapper view-report-dialog ",O.tabFullScreen?"view-report-dialog-fullscreen":"",""),u.xp6(4),u.Oqu(u.lcZ(5,11,O.title)),u.xp6(3),u.Q6J("ngIf",O.minimizeBtn),u.xp6(1),u.s9C("matTooltip",u.lcZ(9,13,O.tabFullScreen?"exitFullScreen":"fullScreen")),u.xp6(2),u.Q6J("ngIf",!O.tabFullScreen),u.xp6(1),u.Q6J("ngIf",O.tabFullScreen),u.xp6(1),u.s9C("matTooltip",u.lcZ(13,15,"closeReports")),u.xp6(5),u.Q6J("selectedIndex",O.selectedTab.value),u.xp6(1),u.Q6J("ngForOf",O.currentReportTabs))},dependencies:[l.sg,l.O5,A.xw,A.Wh,A.s9,A.yH,_.v,C.Hw,R.eB,x.Ye,x.rD,f.SK,f.gz,f.R7,k.Kd,w.X$],styles:[".dialog-content-wrapper .mat-dialog-content{max-height:100%}.k-icon,.k-tool-icon{font:16px/1 WebComponentsIcons!important}.view-report-dialog .mat-tab-group.mat-primary .mat-tab-header .mat-tab-label-container .mat-tab-list .mat-ink-bar{background-color:#2fb5f7!important;height:3px!important}.cdk-overlay-pane .report-content{min-height:calc(100vh - 177px)}.report-view-popup{max-width:100%!important}.report-view-popup .dialog-content-wrapper{width:90vw;display:flex;flex-direction:column;max-height:max-content}.report-view-popup .dialog-content-wrapper.view-report-dialog-fullscreen{width:100vw;height:100vw}.view-report-dialog.mat-tab-group .mat-tab-header .mat-tab-label-container .mat-tab-list .mat-tab-labels .mat-tab-label{padding:0 33px 0 10px!important}.view-report-dialog.mat-tab-group .mat-tab-header .mat-tab-label-container .mat-tab-list .mat-tab-labels .mat-tab-label .mat-tab-label-content .tab-header{position:relative!important;padding:0 8px 0 0!important;color:#676565!important}.view-report-dialog.mat-tab-group .mat-tab-header .mat-tab-label-container .mat-tab-list .mat-tab-labels .mat-tab-label .mat-tab-label-content .tab-header .tab-close{position:absolute;top:-2px;right:-24px;color:#272525!important;font-weight:bolder;width:16px!important;height:16px!important;line-height:24px;font-size:15px;z-index:2;max-height:16px;max-width:16px;border-radius:50%}.view-report-dialog.mat-tab-group .mat-tab-header .mat-tab-label-container .mat-tab-list .mat-tab-labels .mat-tab-label .mat-tab-label-content .tab-header .tab-close:hover{color:#fff!important;background:#f55337}.view-report-dialog.mat-tab-group .mat-tab-header .mat-tab-label-container .mat-tab-list .mat-tab-labels .mat-tab-label-active{background:#f5f5f5!important}.view-report-dialog.mat-tab-group .mat-tab-header .mat-tab-label-container .mat-tab-list .mat-tab-labels .mat-tab-label-active .mat-tab-label-content .tab-header{position:relative!important;padding:0 8px 0 0!important;color:#000!important}.view-report-dialog.mat-tab-group mat-tab-body report-view .paginatedreport tr-viewer .trv-report-viewer .trv-parameters-area .trv-parameter-container .trv-parameter-editor-available-values-multiselect .k-multiselect .k-multiselect-wrap .k-select{position:relative;margin-left:0}\n"],encapsulation:2})}return L})()},51216:(he,y,i)=>{"use strict";i.d(y,{S:()=>_});var e=i(20180),n=i(89515),o=i(87847),a=i(30617),l=i(94505),u=i(81274),d=i(32333),s=i(30481),A=i(65879);let _=(()=>{class C{static#e=this.\u0275fac=function(f){return new(f||C)};static#t=this.\u0275mod=A.oAB({type:C});static#n=this.\u0275inj=A.cJS({imports:[e.L,n.aw,o.K,a.Ps,l.yu,u.g0,d.Nn,s.AA]})}return C})()},17577:(he,y,i)=>{"use strict";i.d(y,{k:()=>d});var e=i(65619),n=i(47394),o=i(7110),a=i(65879),l=i(6738),u=i(74187);let d=(()=>{class s{constructor(_,C){this.ws=_,this.us=C,this.onJobsChanged=new e.X({}),this.onJobSelected=new e.X({}),this.refreshAssignments=new e.X(0),this.basePath=o.XL.settings.apiUrl+"Job/",this.directoryParams={directory:"TempJob",searchType:"JobTitle",workflowStageId:0,searchText:null,pageNumber:1,pageSize:10,sortOrder:"Asc",orderBy:"JobId"},this.subs=new n.w0}JobDirectory(_,C){return _&&(this.directoryParams.pageSize=_.take,this.directoryParams.pageNumber=_.pageNumber),C||(C=JSON.stringify(this.directoryParams)),new Promise((R,x)=>{this.subs.add(this.ws.get(o.XL.settings.apiUrl+"Common/Directory",{Json:C},null,!1).subscribe(f=>{this.onJobsChanged.next(f),R(f)},x))})}JobSnapshot(_){return this.ws.get(this.basePath+"JobSnapshot",{json:JSON.stringify({jobId:_})})}GetJobAssignment(_,C){return this.ws.get(this.basePath+"JobAssignment",{json:JSON.stringify(_),refresh:C})}getAssignmentDetail(_,C){return this.ws.get(this.basePath+"GetAssignmentDetail",{json:JSON.stringify(_),refresh:C})}updateAssignment(_){return this.ws.post(this.basePath+"AssignmentUpdate",{json:JSON.stringify(_,this.us.dateReplacer)})}getJobAssignmentMarkers(_,C){return this.ws.get(this.basePath+"JobAssignmentMarkers",{json:JSON.stringify(_),refresh:C},null,!1)}ngOnDestroy(){this.subs.unsubscribe()}static#e=this.\u0275fac=function(C){return new(C||s)(a.LFG(l.f),a.LFG(u.t))};static#t=this.\u0275prov=a.Yz7({token:s,factory:s.\u0275fac})}return s})()},80438:(he,y,i)=>{"use strict";i.d(y,{A:()=>d});var e=i(7110),n=i(65619),o=i(69862),a=i(65879),l=i(6738),u=i(74187);let d=(()=>{class s{constructor(_,C){this.webApiService=_,this.us=C,this.basePath=e.XL.settings.apiUrl,this.timeEntryServiceUrl="",this.personId=0,this.adedTxnCodes=new n.X(null),this.personId=parseInt(this.us.getTokenValueByKey("personId").toString()),this.timeEntryServiceUrl=this.basePath+"TimeEntry/"}getSessionCache(_,C){const R=sessionStorage.getItem("sessionCaches"),f=(R?JSON.parse(R):[]).find(k=>k.person===this.personId&&k.directory===_&&k.item===C);return f?f.value:null}setSessionCache(_,C,R){const x=sessionStorage.getItem("sessionCaches");let f=x?JSON.parse(x):[];const k=f.findIndex(w=>w.person===this.personId&&w.directory===_&&w.item===C);k>-1?f[k].value=R:f.push({directory:_,person:this.personId,item:C,value:R}),sessionStorage.setItem("sessionCaches",JSON.stringify(f))}getFormatedSize(_){let x=0;return _>1048576?(x=_/1048576,`${x.toFixed(1)} mb`):_>1024?(x=_/1024,`${x.toFixed(1)} kb`):`${_} bytes`}getTransactionBatch(_,C){return this.webApiService.get(this.timeEntryServiceUrl+"TransactionBatch",{json:JSON.stringify(_),refresh:C},null,!0)}createTransactionBatch(_){return this.webApiService.post(this.timeEntryServiceUrl+"TransactionBatchInsert",{json:_},null,null,!0)}updateTimeEntry(_){return this.webApiService.post(this.timeEntryServiceUrl+"TimeEntryUpdate",{json:_},null,null,!0)}addTransactionItems(_){return this.webApiService.post(this.timeEntryServiceUrl+"TransactionItemsAdd",{json:_},null,null,!0)}deleteTransactionItems(_){return this.webApiService.post(this.timeEntryServiceUrl+"TransactionItemsDelete",{json:_},null,null,!0)}createTransaction(_){return this.webApiService.post(this.timeEntryServiceUrl+"TransactionCreate",{json:_},null,null,!0)}copyTransactions(_){return this.webApiService.post(this.timeEntryServiceUrl+"TransactionCopy",{json:JSON.stringify(_,this.us.dateReplacer),refresh:!0},null,null,!0)}deleteTransactions(_){return this.webApiService.post(this.timeEntryServiceUrl+"TransactionDelete",{json:JSON.stringify(_),refresh:!0},null,null,!0)}discardTransactions(_){return this.webApiService.post(this.timeEntryServiceUrl+"TransactionDiscard",{json:JSON.stringify(_),refresh:!0},null,null,!0)}openTransactionBatch(_){return this.webApiService.post(this.timeEntryServiceUrl+"TransactionBatchOpen",{json:JSON.stringify(_),refresh:!0},null,null,!0)}getTransactionFinance(_){return this.webApiService.get(this.timeEntryServiceUrl+"TransactionFinance",{json:JSON.stringify(_),refresh:!0},null,!1)}getTransactionSummary(_){return this.webApiService.get(this.timeEntryServiceUrl+"TransactionSummary",{json:JSON.stringify(_),refresh:!0},null,!1)}getTransactionSnapshot(_){return this.webApiService.get(this.timeEntryServiceUrl+"TransactionSnapshot",{json:JSON.stringify(_),refresh:!0},null,!1)}getImportPlans(_){return this.webApiService.get(this.timeEntryServiceUrl+"ImportPlans",{json:JSON.stringify(_),refresh:!0},null,!1)}getImportBatch(_){return this.webApiService.get(this.timeEntryServiceUrl+"ImportBatch",{json:JSON.stringify(_),refresh:!0},null,!1)}createImportBatch(_){let C=new o.WM;return C=C.append("Content-Type","angular/auto"),C=C.append("enctype","multipart/form-data"),C=C.append("Accept","application/json"),C=C.append("Authorization","Bearer "+this.us.getLocalStorage("token")),C=C.append("HeaderParams",JSON.stringify({roleId:0,applicationId:0})),this.webApiService.postWithOptions(this.timeEntryServiceUrl+"ImportBatch",_,{headers:C})}getImportBatchData(_,C=!0){return this.webApiService.get(this.timeEntryServiceUrl+"ImportBatchData",{json:JSON.stringify(_),refresh:!0},null,C)}closeImportBatch(_){return this.webApiService.post(this.timeEntryServiceUrl+"ImportBatchClose",{json:JSON.stringify(_),refresh:!0},null,null,!0)}getImportBatchException(_){return this.webApiService.get(this.timeEntryServiceUrl+"ImportBatchExceptions",{json:JSON.stringify(_),refresh:!0},null,!1)}importBatchAction(_){return this.webApiService.post(this.timeEntryServiceUrl+"ImportBatchAction",{json:JSON.stringify(_),refresh:!0},null,null,!0)}updateTransactionInformation(_){return this.webApiService.post(this.timeEntryServiceUrl+"TransactionInformationUpdate",{json:JSON.stringify(_,this.us.dateReplacer),refresh:!0},null,null,!0)}moveTransaction(_){return this.webApiService.post(this.timeEntryServiceUrl+"MoveTransaction",{json:JSON.stringify(_)},null,null,!0)}getTimesheetAttachment(_){return this.webApiService.get(this.timeEntryServiceUrl+"TransactionDocument",{json:JSON.stringify(_),refresh:!0},null,!1)}uploadTimesheetAttachment(_){let C=new o.WM;return C=C.append("Content-Type","angular/auto"),C=C.append("enctype","multipart/form-data"),C=C.append("Accept","application/json"),C=C.append("Authorization","Bearer "+this.us.getLocalStorage("token")),C=C.append("HeaderParams",JSON.stringify({roleId:0,applicationId:0})),this.webApiService.postWithOptions(this.timeEntryServiceUrl+"TransactionDocument",_,{headers:C})}getPersonJob(_,C=!1){return this.webApiService.get(this.timeEntryServiceUrl+"PersonJob",{json:JSON.stringify(_,this.us.dateReplacer),refresh:!0},null,C)}getJobAssignments(_,C=!1){return this.webApiService.get(this.timeEntryServiceUrl+"JobAssignments",{json:JSON.stringify(_),refresh:!0},null,C)}getPersonTimesheet(_){return this.webApiService.get(this.timeEntryServiceUrl+"PersonTimesheet",{json:JSON.stringify(_),refresh:!0},null,!1)}insertTransactionItemDate(_){return this.webApiService.post(this.timeEntryServiceUrl+"TransactionItemDate",{json:JSON.stringify(_)},null,null,!0)}deleteTransactionItemDate(_){return this.webApiService.post(this.timeEntryServiceUrl+"TransactionItemDateDel",{json:JSON.stringify(_)},null,null,!0)}deleteImportBatchData(_){return this.webApiService.post(this.timeEntryServiceUrl+"ImportBatchDataDel",{json:JSON.stringify(_)},null,null,!0)}getTenantCustomers(_){return this.webApiService.get(this.timeEntryServiceUrl+"TenantCustomers",{json:JSON.stringify(_)},null,!0)}dashboardData(_){return this.webApiService.get(this.timeEntryServiceUrl+"Dashboard",{Json:JSON.stringify(_),refresh:!0},null,!0)}updatePortalTimesheet(_,C=!1){return this.webApiService.post(this.timeEntryServiceUrl+"PortalTimesheetUpd",{json:JSON.stringify(_)},null,null,C)}getExtraLabel(_){return this.webApiService.get(this.timeEntryServiceUrl+"ExtraLabel",{json:JSON.stringify(_),refresh:!0},null,!1)}getTransactionLink(_){return this.webApiService.get(this.timeEntryServiceUrl+"TransactionLink",{json:JSON.stringify(_),refresh:!0},null,!1)}getTransactionEditDetailSel(_){return this.webApiService.post(this.timeEntryServiceUrl+"GetTransactionEditDetailSel",{json:JSON.stringify(_)})}static#e=this.\u0275fac=function(C){return new(C||s)(a.LFG(l.f),a.LFG(u.t))};static#t=this.\u0275prov=a.Yz7({token:s,factory:s.\u0275fac})}return s})()},92682:(he,y,i)=>{"use strict";i.d(y,{k:()=>A});var e=i(78645),n=i(65619),o=i(47394),a=i(7110),l=i(65879),u=i(69862),d=i(6738),s=i(74187);let A=(()=>{class _{constructor(R,x,f){this.http=R,this.webApiService=x,this.us=f,this.showBlockUi=new e.x,this.onUnemploymentChanged=new n.X(null),this.onUnemploymentSelected=new n.X(null),this.onEmployeeDetail=new n.X(null),this.onSearchTextChanged=new e.x,this.reloadUnemploymentDirectory=new n.X(null),this.pageIndex=1,this.pageSize=10,this.sortOrder="asc",this.orderBy="Name",this.subscriptions=new o.w0,this.unemploymentApiUrl=a.XL.settings.apiUrl+"Unemployment/",this.subscriptions.add(this.onSearchTextChanged.subscribe(k=>{this.searchText=k,this.pageIndex=1,this.unemployment()})),this.sessionData=JSON.parse(sessionStorage.getItem("headerParams"))}resolve(R,x){return new Promise((f,k)=>{Promise.all([this.unemployment()]).then(([w])=>{f()},k)})}getSelectedUnemploymentId(){return this.onUnemploymentSelected.getValue().hasOwnProperty("data")?this.onUnemploymentSelected.getValue().data.unemploymentId:this.onUnemploymentSelected.getValue().hasOwnProperty("unemploymentId")?this.onUnemploymentSelected.getValue().unemploymentId:0}unemployment(){return this.showBlockUi.next(!0),new Promise((R,x)=>{this.subscriptions.add(this.webApiService.post(a.XL.settings.apiUrl+"Common/Directory",{Json:JSON.stringify({directory:"Unemployment",searchType:"Any",searchText:this.searchText,pageNumber:this.pageIndex,pageSize:this.pageSize,sortOrder:this.sortOrder,orderBy:this.orderBy,columnFilters:this.columnFilters},this.us.dateReplacer),refresh:!0},null).subscribe(f=>{this.onUnemploymentChanged.next(f.directory),R(f),this.showBlockUi.next(!1)},x))})}snapshot(R){return this.webApiService.get(this.unemploymentApiUrl+"UnemploymentSnapshot",{unemploymentId:R})}comment(R){return this.selectedUnemploymentId=this.getSelectedUnemploymentId(),this.webApiService.get(this.unemploymentApiUrl+"UnemploymentComment",{unemploymentId:R})}agency(R){return this.webApiService.get(this.unemploymentApiUrl+"UnemploymentAgency",{unemploymentId:R})}unemploymentAutomationTsk(R,x){return this.webApiService.post(this.unemploymentApiUrl+"UnemploymentAutomationTsk",{json:JSON.stringify(R),refresh:x},null,null,!0)}unemploymentList(R,x){return this.webApiService.get(this.unemploymentApiUrl+"UnemploymentList",{json:JSON.stringify(R),refresh:x},null,!0)}ngOnDestroy(){this.subscriptions.unsubscribe()}static#e=this.\u0275fac=function(x){return new(x||_)(l.LFG(u.eN),l.LFG(d.f),l.LFG(s.t))};static#t=this.\u0275prov=l.Yz7({token:_,factory:_.\u0275fac})}return _})()},74260:(he,y,i)=>{"use strict";i.d(y,{P:()=>A});var e=i(78645),n=i(65619),o=i(47394),a=i(7110),l=i(65879),u=i(69862),d=i(6738),s=i(74187);let A=(()=>{class _{constructor(R,x,f){this.http=R,this.webApiService=x,this.us=f,this.showBlockUi=new e.x,this.onWorkInjuryChanged=new n.X(null),this.onWorkInjurySelected=new n.X(null),this.onSearchTextChanged=new e.x,this.pageIndex=1,this.pageSize=10,this.sortOrder="asc",this.orderBy="Name",this.subscriptions=new o.w0,this.workInjuryApiUrl=a.XL.settings.apiUrl+"WorkInjury/",this.subscriptions.add(this.onSearchTextChanged.subscribe(k=>{this.searchText=k,this.pageIndex=1,this.workInjury()})),this.sessionData=JSON.parse(sessionStorage.getItem("headerParams"))}resolve(R,x){return new Promise((f,k)=>{Promise.all([this.workInjury()]).then(([w])=>{f()},k)})}getSelectedWorkInjuryId(){return this.onWorkInjurySelected.getValue().hasOwnProperty("data")?this.onWorkInjurySelected.getValue().data.workInjuryId:this.onWorkInjurySelected.getValue().hasOwnProperty("workInjuryId")?this.onWorkInjurySelected.getValue().workInjuryId:0}workInjury(){return this.showBlockUi.next(!0),new Promise((R,x)=>{this.subscriptions.add(this.webApiService.post(a.XL.settings.apiUrl+"Common/Directory",{Json:JSON.stringify({directory:"WorkInjury",searchType:"Any",searchText:this.searchText,pageNumber:this.pageIndex,pageSize:this.pageSize,sortOrder:this.sortOrder,orderBy:this.orderBy,columnFilters:this.columnFilters},this.us.dateReplacer),refresh:!0},null).subscribe(f=>{this.onWorkInjuryChanged.next(f.directory),R(f),this.showBlockUi.next(!1)},x))})}workInjuryList(R,x){return this.webApiService.get(this.workInjuryApiUrl+"WorkInjuryList",{json:JSON.stringify(R),refresh:x},null,!0)}snapshot(R){return this.webApiService.get(this.workInjuryApiUrl+"WorkInjurySnapshot",{workInjuryId:R})}comment(R){return this.selectedWorkInjuryId=this.getSelectedWorkInjuryId(),this.webApiService.get(this.workInjuryApiUrl+"WorkInjuryComment",{workInjuryId:R})}agency(R){return this.webApiService.get(this.workInjuryApiUrl+"WorkInjuryAgency",{workInjuryId:R})}ngOnDestroy(){this.subscriptions.unsubscribe()}static#e=this.\u0275fac=function(x){return new(x||_)(l.LFG(u.eN),l.LFG(d.f),l.LFG(s.t))};static#t=this.\u0275prov=l.Yz7({token:_,factory:_.\u0275fac})}return _})()},10509:(he,y,i)=>{"use strict";i.d(y,{X:()=>o,l:()=>n});var e=i(65879);let n=(()=>{class a{static get Cart(){return"cart"}static#e=this.JobCandidate="candidate";static#t=this.JobPortalJobCandidate="job-candidate";static#n=this.JobCart="job-cart";static#i=this.MainPage="job-main";static#o=this.JobListing="job-listing";static#r=this.JobPortal="job-portal";static#s=this.TempJob="temp-job";static#a=this.DirectHireJob="direct-hire-job";static#l=this.NewHirePortal="newhire-portal";static#c=this.EmployeePortal="employee-portal";static#d=this.ApplicantPortal="applicant-portal";static#u=this.RadiusOptions=[{name:"10 miles",value:10},{name:"25 miles",value:25},{name:"100 miles",value:100}];static#h=this.FilterTypes=["radius","state"];static#f=this.SkillAutomatchOptions=[{option:"matchAll",value:"all",selected:!0},{option:"matchAny",value:"any"}];static#p=this.OnAssignmentOptions=[{option:"all",selected:!0},{option:"onAssignment"},{option:"notOnAssignment"}];static#m=this.AutomatchStatuses=[{option:"all",selected:!0},{option:"active"}];static#g=this.NavigationModel=[{id:0,ParentNavigationId:0,Navigation:"JobListing",title:"jobListing",url:"job-portal/:organizationCode",type:"item",icon:"work_outline",children:[{}]},{id:0,ParentNavigationId:0,Navigation:"JobCandidate",title:"jobCandidate",url:"candidate/:organizationCode",type:"item",icon:"person_pin",children:[{}]}]}return a})();const o=new e.OlP("rowData",{providedIn:"root",factory:()=>"rowData"})},27688:(he,y,i)=>{"use strict";i.d(y,{tZ:()=>A});var e=i(65879),n=i(56223),o=i(96814),a=i(20014),u=i(74187);const d={provide:n.JU,useExisting:(0,e.Gpc)(()=>A),multi:!0};let A=(()=>{class C{set value(x){this.noMask=""==x||null==x||null==x,"object"!=typeof x&&(x={mask:x}),x.mask=this.getMaskingRegex(x.mask),this.textMaskConfig=x}constructor(x,f,k,w){this.us=x,this._renderer=f,this._elementRef=k,this._compositionMode=w,this.textMaskConfig={mask:[],guide:!1,placeholderChar:"",pipe:void 0,keepCharPositions:!1},this.onChange=g=>{},this.onTouched=()=>{},this.noMask=!1,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function s(){const C=(0,o.q)()?(0,o.q)().getUserAgent():"";return/android (\d+)/.test(C.toLowerCase())}())}getMaskingRegex(x){let f=x.split(""),k=[];for(let w of f)k.push(this.charToRegex(w));return k}charToRegex(x){switch(x){case"0":return/\d/;case"A":return/^[a-zA-Z0-9]$/;case"B":return/^[a-zA-Z]$/;case"1":return/^[1-9]$/;case"C":return/^[A-Z]$/;case"a":return/^[a-z]$/;default:return x}}ngOnChanges(x){this._setupMask(!0),void 0!==this.textMaskInputElement&&!this.noMask&&(this.textMaskInputElement.update(this.inputElement.value),this.isInputWithValidMask()&&this.textMaskInputElement.update(this.inputElement.value.replace(/[^a-zA-Z0-9]/g,"")),this.checkDefaultInputValidity(this.inputElement.value)?this.defaultValue&&(this.textMaskInputElement.update(this.defaultValue.replace(/[^a-zA-Z0-9]/g,"")),this.onChange(this.defaultValue)):(this.textMaskInputElement.update(""),this.onChange(""),this.us.callSnackBar("Item removed due to mismatch with mask","info")))}checkDefaultInputValidity(x){return(!x||""==x)&&(x=this.defaultValue),!this.defaultValue||this.defaultValue.replace(/[^a-zA-Z0-9]/g,"")==x.replace(/[^a-zA-Z0-9]/g,"")}isInputWithValidMask(){let x=this.textMaskConfig.mask;if(this.defaultValue&&x.length==this.defaultValue.length){for(let f=0;f<x.length;f++){let k;try{k=new RegExp(x[f])}catch{k=new RegExp("\\"+x[f])}if(0==k.test(this.defaultValue[f]))return!1}return!0}return!1}writeValue(x){this.defaultValue=x,this._setupMask(),this._renderer.setProperty(this.inputElement,"value",x??""),void 0!==this.textMaskInputElement&&!this.noMask&&this.textMaskInputElement.update(x)}registerOnChange(x){this.onChange=x}registerOnTouched(x){this.onTouched=x}setDisabledState(x){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",x)}_handleInput(x){this.defaultValue=x,this.noMask?this.onChange(x):(!this._compositionMode||this._compositionMode&&!this._composing)&&(this._setupMask(),void 0!==this.textMaskInputElement&&(this.textMaskInputElement.update(x),x=this.inputElement.value.replace(/[^a-zA-Z0-9]/g,""),this.onChange(x)))}_setupMask(x=!1){this.inputElement||(this.inputElement="INPUT"===this._elementRef.nativeElement.tagName.toUpperCase()?this._elementRef.nativeElement:this._elementRef.nativeElement.getElementsByTagName("INPUT")[0]),this.inputElement&&x&&(this.textMaskInputElement=(0,a.createTextMaskInputElement)(Object.assign({inputElement:this.inputElement,guide:!1},this.textMaskConfig)))}_compositionStart(){this._composing=!0}_compositionEnd(x){this._composing=!1,this._compositionMode&&this._handleInput(x)}static#e=this.\u0275fac=function(f){return new(f||C)(e.Y36(u.t),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(n.ve,8))};static#t=this.\u0275dir=e.lG2({type:C,selectors:[["","mask",""]],hostBindings:function(f,k){1&f&&e.NdJ("input",function(g){return k._handleInput(g.target.value)})("blur",function(){return k.onTouched()})("compositionstart",function(){return k._compositionStart()})("compositionend",function(g){return k._compositionEnd(g.target.value)})},inputs:{value:["mask","value"]},exportAs:["mask"],features:[e._Bn([d]),e.TTD]})}return C})()},53790:(he,y,i)=>{"use strict";i.d(y,{u:()=>n});var e=i(65879);let n=(()=>{class o{static#e=this.\u0275fac=function(u){return new(u||o)};static#t=this.\u0275mod=e.oAB({type:o});static#n=this.\u0275inj=e.cJS({})}return o})()},65139:(he,y,i)=>{"use strict";i.d(y,{p:()=>u});var e=i(65879),n=i(56223),o=i(86210),a=i(89515);const l=i(88834);let u=(()=>{class d{set value(A){this.json=A,this.validationSet&&this.validate(this.control)}constructor(A,_,C,R){this.el=A,this.renderer=_,this.zs=C,this.translate=R,this.validationSet=!1,this.eventName="focusout",_.listen(A.nativeElement,this.eventName,x=>{})}getValidator(A){if(!A)return;if("object"==typeof A)return void(this.json=A);const _=A.split(".");this.json=l[_[0]][_[1]]}validate(A){if(this.validationSet||(this.control=A),A.clearValidators(),A.updateValueAndValidity(),this.validationSet=!0,this.getValidator(this.json),void 0===this.json||null==this.json)return;if(""===this.json)return null;const _=[];return this.json.hasOwnProperty("required")&&!0===this.json.required&&_.push(n.kI.required,this.zs.spaceValidator()),this.json.hasOwnProperty("maxLength")&&_.push(n.kI.maxLength(this.json.maxLength)),this.json.hasOwnProperty("minLength")&&_.push(n.kI.minLength(this.json.minLength)),"date"===this.json.type?(_.push(this.zs.dateValidator(this.json.format)),this.json.hasOwnProperty("max")&&_.push(this.zs.maxDate(new Date(this.json.max))),this.json.hasOwnProperty("min")&&_.push(this.zs.minDate(new Date(this.json.min)))):(this.json.hasOwnProperty("max")&&_.push(n.kI.max(this.json.max)),this.json.hasOwnProperty("min")&&_.push(n.kI.min(this.json.min))),this.json.hasOwnProperty("pattern")&&_.push(n.kI.pattern(this.json.pattern)),A.setValidators(_),this.validationSet&&A.updateValueAndValidity(),null}handleClienValidation(A){const _=A.target;let C=_.value;void 0===C&&(C=_.getAttribute("ng-reflect-model")),"number"===this.json.type&&(C=+C);const R=this.el.nativeElement.getAttribute("name");let x="";this.clearError(this.outerMostParent(_)),this.json.hasOwnProperty("maxLength")&&C.length>this.json.maxLength&&(x=`Length exceeds maximum allowed length of ${this.json.maxLength}`),this.json.hasOwnProperty("minLength")&&C.length<this.json.minLength&&(x=`Length is under minimum allowed length of ${this.json.minLength}`),this.json.hasOwnProperty("max")&&C>this.json.max&&(x=`Value is over maximum of ${this.json.max}`),this.json.hasOwnProperty("min")&&C<this.json.min&&(x=`Value is under minimum of ${this.json.min}`),this.json.hasOwnProperty("pattern")&&(new RegExp(this.json.pattern).test(C.trim())||(x="Please enter a valid email")),this.json.hasOwnProperty("required")&&this.json.required&&(null==C||""==C)&&(x="The "+this.translate.instant(R).toLowerCase()+" field is required"),x&&this.addErrorBlock(_,x)}addErrorBlock(A,_){const C=this.renderer.createElement("span"),R=this.renderer.createText(_);this.renderer.appendChild(C,R),this.renderer.appendChild(this.outerMostParent(A),C),this.renderer.addClass(C,"alert-danger")}clearError(A){this.renderer.addClass(A,"ng-invalid"),this.removeChildBlocks(A)}removeChildBlocks(A){try{Array.from(A.childNodes).forEach(C=>{C&&void 0!==C.classList&&(C.classList.contains("help-block")||C.classList.contains("alert-danger"))&&A.removeChild(C)})}catch(_){console.log(_)}}outerMostParent(A){return A.parentNode.parentNode.parentNode.parentNode}static#e=this.\u0275fac=function(_){return new(_||d)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(o.F),e.Y36(a.sK))};static#t=this.\u0275dir=e.lG2({type:d,selectors:[["","zen-validator",""]],inputs:{value:["zen-validator","value"]},features:[e._Bn([{provide:n.Cf,useExisting:(0,e.Gpc)(()=>d),multi:!0}])]})}return d})()},13868:(he,y,i)=>{"use strict";i.d(y,{g:()=>o});var e=i(86210),n=i(65879);let o=(()=>{class a{static#e=this.\u0275fac=function(d){return new(d||a)};static#t=this.\u0275mod=n.oAB({type:a});static#n=this.\u0275inj=n.cJS({providers:[e.F]})}return a})()},86210:(he,y,i)=>{"use strict";i.d(y,{F:()=>n});var e=i(65879);let n=(()=>{class o{constructor(){}minDate(l){return u=>u.value&&u.value<l.getTime()?{invalidDate:!0}:null}maxDate(l){return u=>u.value&&u.value>l.getTime()?{invalidDate:!0}:null}spaceValidator(){return l=>l.value?/\S/.test(l.value)?null:{invalidValue:!0}:null}dateValidator(l="MM/dd/YYYY"){return u=>{if(!u.value)return null;let d=u.value,s=!1;return d instanceof Date?s=!0:(d=new Date(d),d instanceof Date&&(s=!0)),s&&d.getFullYear()<2099&&d.getFullYear()>1900?null:{invalidDate:!0}}}static#e=this.\u0275fac=function(u){return new(u||o)};static#t=this.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac})}return o})()},68658:(he,y,i)=>{"use strict";i.d(y,{Z:()=>e});var e=function(n){return n.static="static",n.continuous="continuous",n}(e||{})},22664:(he,y,i)=>{"use strict";i.d(y,{j:()=>e});var e=function(n){return n.EntityData="entityData",n.GridData="gridData",n}(e||{})},928:(he,y,i)=>{"use strict";i.d(y,{I:()=>A});var e=i(45895),n=i(92415),o=i(90810),a=i(51233),l=i(65879),u=i(6593),d=i(30617);let s=(()=>{class _{constructor(R,x){this._domSanitizer=R,this._matIconRegistry=x,this._matIconRegistry.addSvgIconSet(this._domSanitizer.bypassSecurityTrustResourceUrl("assets/icons/material-twotone.svg")),this._matIconRegistry.addSvgIconSetInNamespace("mat_outline",this._domSanitizer.bypassSecurityTrustResourceUrl("assets/icons/material-outline.svg")),this._matIconRegistry.addSvgIconSetInNamespace("mat_solid",this._domSanitizer.bypassSecurityTrustResourceUrl("assets/icons/material-solid.svg")),this._matIconRegistry.addSvgIconSetInNamespace("feather",this._domSanitizer.bypassSecurityTrustResourceUrl("assets/icons/feather.svg")),this._matIconRegistry.addSvgIconSetInNamespace("heroicons_outline",this._domSanitizer.bypassSecurityTrustResourceUrl("assets/icons/heroicons-outline.svg")),this._matIconRegistry.addSvgIconSetInNamespace("heroicons_solid",this._domSanitizer.bypassSecurityTrustResourceUrl("assets/icons/heroicons-solid.svg"))}static#e=this.\u0275fac=function(x){return new(x||_)(l.LFG(u.H7),l.LFG(d.jv))};static#t=this.\u0275mod=l.oAB({type:_});static#n=this.\u0275inj=l.cJS({})}return _})(),A=(()=>{class _{static#e=this.\u0275fac=function(x){return new(x||_)};static#t=this.\u0275mod=l.oAB({type:_});static#n=this.\u0275inj=l.cJS({imports:[e.y,n.D,o.i,a.O,s]})}return _})()},77171:(he,y,i)=>{"use strict";i.d(y,{y:()=>n});var e=i(65879);let n=(()=>{class o{static forRoot(){return{ngModule:o,providers:[]}}static#e=this.\u0275fac=function(u){return new(u||o)};static#t=this.\u0275mod=e.oAB({type:o});static#n=this.\u0275inj=e.cJS({})}return o})()},57293:(he,y,i)=>{"use strict";i.d(y,{Q:()=>l});var e=i(65619),n=i(78645),o=i(22096),a=i(65879);let l=(()=>{class d{constructor(){this.defaultCountry="us",this.currentCountry="",this.dictionary=new e.X({}),this.unsubscribeAll=new n.x,this.resLoader=new u,this.loadAllResource(),this.changeCountry(this.defaultCountry)}ngOnInit(){}ngOnDestroy(){this.unsubscribeAll.next(),this.unsubscribeAll.complete()}loadAllResource(){this.resLoader.getAllCountryResource().subscribe(A=>{this.dictionary.next(A)})}changeCountry(A){A&&A.toLocaleLowerCase()!=this.currentCountry&&(this.currentCountry=A.toLowerCase())}translate(A,_){return _&&_.toLocaleLowerCase()!=this.currentCountry?(_=_.toLocaleLowerCase(),this.dictionary&&this.dictionary.value[_][A]?this.dictionary.value[_][A]:A):this.dictionary&&this.dictionary.value[this.currentCountry][A]?this.dictionary.value[this.currentCountry][A]:A}static#e=this.\u0275fac=function(_){return new(_||d)};static#t=this.\u0275prov=a.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})();class u{getAllCountryResource(){return(0,o.of)({us:i(76166),ca:i(63292)})}}},71951:(he,y,i)=>{"use strict";i.d(y,{x:()=>n});var e=i(65879);let n=(()=>{class o{static#e=this.\u0275fac=function(u){return new(u||o)};static#t=this.\u0275mod=e.oAB({type:o});static#n=this.\u0275inj=e.cJS({})}return o})()},15541:(he,y,i)=>{"use strict";i.d(y,{z:()=>o});var e=i(65879),n=i(6593);let o=(()=>{class a{constructor(u){this.sanitized=u}transform(u){return this.sanitized.bypassSecurityTrustHtml(u)}static#e=this.\u0275fac=function(d){return new(d||a)(e.Y36(n.H7,16))};static#t=this.\u0275pipe=e.Yjl({name:"safeHtml",type:a,pure:!0})}return a})()},91922:(he,y,i)=>{"use strict";i.d(y,{q:()=>n});var e=i(65879);let n=(()=>{class o{static#e=this.\u0275fac=function(u){return new(u||o)};static#t=this.\u0275mod=e.oAB({type:o});static#n=this.\u0275inj=e.cJS({})}return o})()},36126:(he,y,i)=>{"use strict";i.d(y,{y:()=>o});var e=i(65879),n=i(6593);let o=(()=>{class a{constructor(u){this.sanitizer=u}transform(u,d){switch(d){case"html":return this.sanitizer.bypassSecurityTrustHtml(u);case"style":return this.sanitizer.bypassSecurityTrustStyle(u);case"script":return this.sanitizer.bypassSecurityTrustScript(u);case"url":return this.sanitizer.bypassSecurityTrustUrl(u);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(u);default:throw new Error(`Invalid safe type specified: ${d}`)}}static#e=this.\u0275fac=function(d){return new(d||a)(e.Y36(n.H7,16))};static#t=this.\u0275pipe=e.Yjl({name:"safe",type:a,pure:!0})}return a})()},81426:(he,y,i)=>{"use strict";i.d(y,{H:()=>n});var e=i(65879);let n=(()=>{class o{static#e=this.\u0275fac=function(u){return new(u||o)};static#t=this.\u0275mod=e.oAB({type:o});static#n=this.\u0275inj=e.cJS({})}return o})()},91569:(he,y,i)=>{"use strict";i.d(y,{h:()=>n});var e=i(65879);let n=(()=>{class o{static#e=this.\u0275fac=function(u){return new(u||o)};static#t=this.\u0275mod=e.oAB({type:o});static#n=this.\u0275inj=e.cJS({})}return o})()},42094:(he,y,i)=>{"use strict";i.d(y,{z:()=>n});var e=i(65879);let n=(()=>{class o{constructor(){}transform(l){return null!=l&&null!=l?l.toString():""}static#e=this.\u0275fac=function(u){return new(u||o)};static#t=this.\u0275pipe=e.Yjl({name:"toString",type:o,pure:!0})}return o})()},16493:(he,y,i)=>{"use strict";i.d(y,{M:()=>n});var e=i(65879);let n=(()=>{class o{static#e=this.\u0275fac=function(u){return new(u||o)};static#t=this.\u0275mod=e.oAB({type:o});static#n=this.\u0275inj=e.cJS({})}return o})()},32202:(he,y,i)=>{"use strict";i.d(y,{p:()=>a});var e=i(65879),n=i(74187),o=i(57293);let a=(()=>{class l{constructor(d,s){this.us=d,this.rs=s,this.countryCode=this.us.getLocalStorage("countryCode")}transform(d,s,A){if(!d||""==d||!s||""==s)return d;let _=this.rs.translate(s,A||this.countryCode);const C=this.getMaskingRegex(_);return this.maskedValue(d,C)}getMaskingRegex(d){let s=d.split(""),A=[];for(let _ of s)A.push(this.charToRegex(_));return A}charToRegex(d){switch(d){case"0":return/\d/;case"A":return/^[a-zA-Z0-9]$/;case"B":return/^[a-zA-Z]$/;case"1":return/^[1-9]$/;case"C":return/^[A-Z]$/;case"a":return/^[a-z]$/;default:return d}}maskedValue(d,s){let A=[];for(let _=0,C=0;C<s.length;C++){let R;try{"-"==s[C]||" "==s[C]?A.push(s[C]):(R=new RegExp(s[C]),1==R.test(d[_])&&A.push(d[_]),_++)}catch{A.push(s[C])}}return A.join("")}checkIsNumber(d){return!isNaN(parseFloat(d))&&!isNaN(d-0)}static#e=this.\u0275fac=function(s){return new(s||l)(e.Y36(n.t,16),e.Y36(o.Q,16))};static#t=this.\u0275pipe=e.Yjl({name:"zenLabelMask",type:l,pure:!0})}return l})()},41349:(he,y,i)=>{"use strict";let e;function n(o){e?console.error("Programming error: AppInjector was already set"):e=o}i.d(y,{k:()=>e,n:()=>n})},73515:(he,y,i)=>{"use strict";i.d(y,{R:()=>C});var e=i(65619),n=i(22096),o=i(9315),a=i(48180),l=i(26306),u=i(37398),d=i(7110),s=i(65879),A=i(89515),_=i(69862);let C=(()=>{class x{constructor(k,w){this.translate=k,this.httpClient=w,this._languageChanged=new e.X(null),this.cultureList=new e.X(null),this.defaultLanguage="en",this.setDefaultLanguage(this.defaultLanguage)}addLanguages(k){this.translate.addLangs(k)}setDefaultLanguage(k){this.translate.setDefaultLang(k.toLowerCase())}getDefaultLanguage(){return this.translate.defaultLang}getBrowserLanguage(){return this.translate.getBrowserLang()}useBrowserLanguage(){const k=this.getBrowserLanguage();if(k.match(/en|fr|ar|ko/))return this.changeLanguage(k),k}changeLanguage(k="en"){k||(k=this.translate.defaultLang),this.translate.use(k).pipe((0,a.q)(1)).subscribe(w=>{this._languageChanged.next(k)})}getTranslation(k,w){return this.translate.instant(k,w)}getTranslationAsync(k,w){return this.translate.get(k,w)}languageChangedEvent(){return this._languageChanged}getCurrentLang(){return this.translate.currentLang}getAllLocaleData(k){const w={},g=[];var M=d.XL.settings.apiUrl+"Common/GeneratedResource",p="";for(const E of k)p=JSON.stringify({lang:E}),g.push(this.httpClient.get(M+"?json="+p).pipe((0,l.K)(()=>(0,n.of)({}))));return(0,o.D)(g).pipe((0,u.U)(E=>{for(let b=0;b<E.length;b++)w[k[b]]=E[b].resource;return w}))}getPropertyArray(k,w){try{return k.map(g=>g[w])}catch{return[]}}static#e=this.\u0275fac=function(w){return new(w||x)(s.LFG(A.sK),s.LFG(_.eN))};static#t=this.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})()},9731:(he,y,i)=>{"use strict";i.d(y,{V:()=>u});var e=i(78645),n=i(22096),o=i(65879),a=i(1462),l=i(18750);let u=(()=>{class d{constructor(A,_){let C;this.mediaObserver=A,this.dds=_,this._unsubscribeAll=new e.x,C=this.dds.isMobile()?"mobile":this.dds.isTablet()?"tablet":"desktop",this.isMobileResolution=(0,n.of)("desktop"!==C),this.currentResolution=(0,n.of)(C);const R=document.getElementsByClassName("app-main-footer");R.length&&R[0].classList.toggle("hidden","desktop"!==C)}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(_){return new(_||d)(o.LFG(a.u0),o.LFG(l.x0))};static#t=this.\u0275prov=o.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})()},64740:(he,y,i)=>{"use strict";i.d(y,{F:()=>x});var e=i(97582),n=i(69862),o=i(7110),a=i(3209),l=i(65619),u=i(78645),d=i(37398),s=i(64716),A=i(59773),_=i(65879),C=i(710),R=i(6738);class x{constructor(k,w,g){this.httpClient=k,this.commonService=w,this.ws=g,this.fileResultBehavior=new l.X([]),this._unsubscribeAll=new u.x,this._commonServiceUrl=o.XL.settings.apiUrl+"Common/"}documentScan(k){let w=new n.WM;return w=w.append("Content-Type","multipart/form-data"),w=w.append("Apikey",this.scannerApiKey),w=w.append("mimeType","multipart/form-data"),this.httpClient.post(this.scannerApiUrl,k,{headers:w}).pipe((0,d.U)(M=>M),(0,s.x)(()=>{}))}documentScanPromise(k){let w=new n.WM;w=w.append("Content-Type","multipart/form-data"),w=w.append("Apikey",this.scannerApiKey),w=w.append("mimeType","multipart/form-data");const g={headers:w};return new Promise((M,p)=>{this.httpClient.post(this.scannerApiUrl,k,g).subscribe(E=>{M(E)},E=>{p(E)},()=>{})})}getCredential(){return new Promise(k=>{this.commonService.getCloudmersiveCredential().pipe((0,A.R)(this._unsubscribeAll)).subscribe(w=>{this.scannerApiKey=w?.[0]?.apiKey,this.scannerApiUrl=w?.[0]?.url,k(!0)},w=>{console.log("Error occured while fetching cloudmersive credential"),k(!1)})})}static#e=this.\u0275fac=function(w){return new(w||x)(_.LFG(n.eN),_.LFG(C.v),_.LFG(R.f))};static#t=this.\u0275prov=_.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"})}(0,e.gn)([(0,a.bH)()],x.prototype,"blockUI",void 0)},710:(he,y,i)=>{"use strict";i.d(y,{v:()=>C});var e=i(65619),n=i(37398),o=i(7110),a=i(60703),l=i(69862),u=i(65879),d=i(6738),s=i(74187),A=i(29486),_=i(64190);let C=(()=>{class R{constructor(f,k,w,g,M){this.ws=f,this.utilityService=k,this.documentService=w,this.router=g,this.httpClient=M,this.timeEntryServiceUrl="",this._profilePictureRefreshStamp="",this._aIApiUrl=o.XL.settings.apiUrl+"AI/",this.apiUri=o.XL.settings.apiUrl+"/Account/",this.orgApiUri=o.XL.settings.apiUrl+"Organization/",this.emailApiUri=o.XL.settings.apiUrl+"Email/",this.jwtHelper=new a.N0,this.onOrganizationCreatedOrSelected=new e.X({}),this.availabilityStatus=new e.X("notset"),this.isGrossProfitCalculatorFlag=0,this.isContactSelected=!1,this.jobStatus="",this.showAllTask=!1,this.showGrouping=!1,this.onEntityPropertyUpdated=new e.X({}),this.endlessScroll=new e.X(!1),this._commonServiceUrl=o.XL.settings.apiUrl+"Common/",this._officeServiceUrl=o.XL.settings.apiUrl+"Office/",this._tenantServiceUrl=o.XL.settings.apiUrl+"Tenant/",this._fileRepositoryUrl=o.XL.settings.apiUrl+"repository/",this.timeEntryServiceUrl=o.XL.settings.apiUrl+"TimeEntry/",this.displayLoadingBar=new e.X(null),this.onChangeSmsInnerDashboardCount=new e.X(null),this.onJobUpdated=new e.X({}),this.onEventNotificationCountChange=new e.X(null),this.onContactInfoUpdate=new e.X({}),this.onAssignmentUpdated=new e.X({}),this.onShowEveryTask=new e.X({}),this.onPersonFormAddressUpdated=new e.X({}),this.onEntityPropertyUpdated=new e.X({}),this.onProfilePictureChanged=new e.X({}),this.onWorkflowStageNext=new e.X({}),this.dynamicJson={},this.officeId=this.utilityService.getTokenValueByKey("officeId"),this.personId=parseInt(this.utilityService.getTokenValueByKey("personId").toString())}OrganizationCulture(f){return this.ws.get(this.apiUri+"PersonCulture")}OfficeAccess(f){return this.ws.get(this._commonServiceUrl+"OfficeAccess",{json:f})}ListItem(f,k){return this.ws.get(this._commonServiceUrl+"ListItem",{category:f,officeId:k},null)}EEOListItem(f,k){return this.ws.get(this._commonServiceUrl+"EEOListItem",{category:f,officeId:k},null)}getListItem(f){return this.ws.get(this._commonServiceUrl+"ListItems",{listItemId:f})}organizationListItem(f,k){return this.ws.get(this._commonServiceUrl+"OrganizationListItem",{organizationId:f,category:k})}transactionCode(f,k){return this.ws.get(this._commonServiceUrl+"TransactionCode",{listItem:f,transactionType:k})}transactionTypeCategory(f,k){return this.ws.get(this._commonServiceUrl+"TransactionTypeCategory",{officeId:f,transactionCategory:k})}entityTransactionCode(f,k){return this.ws.get(this._commonServiceUrl+"EntityTransactionCode",{json:JSON.stringify(f),refresh:k})}getOrganizationOffice(f){return this.ws.get(this._commonServiceUrl+"OrganizationOffice",{organizationId:f})}getCompanyOfficeByOrganization(f){return this.ws.get(this._commonServiceUrl+"CompanyOfficeByOrganization",{organizationId:f})}ListItemId(f,k){return this.ws.get(this._commonServiceUrl+"ListItemId",{category:f,listItem:k},null)}ListItemProperty(f,k,w,g,M){return this.ws.get(this._commonServiceUrl+"ListItemProperty",{officeId:f,category:k,property:w,value:g},null,null==M||null==M||M)}ListItemPivot(f){return this.ws.get(this._commonServiceUrl+"ListItemPivot",{json:f},null)}OrganizationList(f,k){return this.ws.get(this._commonServiceUrl+"OrganizationList",{personId:f,includeSelectedOnly:k,refresh:!0})}TenantOrganizationList(f){return this.ws.get(this._commonServiceUrl+"TenantOrganizationList",{personId:f,refresh:!0})}PersonAliasAccessList(f){return this.ws.get(this._commonServiceUrl+"PersonAliasAccessList",{personId:f,refresh:!0})}OrganizationAddress(f){return this.ws.get(this._commonServiceUrl+"OrganizationAddress",{json:f})}dynamicUpdate(f,k,w,g,M,p){return this.ws.post(this._commonServiceUrl+"DynamicUpdate",f?{Json:JSON.stringify(f,this.utilityService.dateReplacer)}:{Json:this.generateDynamicUpdate(w,g,M)},null,k,null==p||null==p||p)}setNavbarFolded(f){this.dynamicUpdate(null,null,"User",this.personId,[{columnName:"IsNavigationPin",columnValue:Number(f)}]).subscribe()}getPersonCurrent(f,k=!1){return this.ws.get(this._commonServiceUrl+"PersonCurrent",{personId:f,refresh:k}).pipe((0,n.U)(w=>w&&0!=w.length?w[0]:null))}TenantOrganization(f){let k=new l.WM;return k=k.append("AllowAnonymous","true"),this.ws.getWithOptions(this.orgApiUri+"TenantOrganization",{headers:k,params:{json:JSON.stringify(f)}})}creatManifest(){return this.ws.get(this._commonServiceUrl+"CreateManifestFile",{})}generateDynamicUpdate(f,k,w){const g={},M={},p={};for(var E of w)g[E.columnName]=E.columnValue;return M[k]=g,p[f]=M,JSON.stringify(p,this.utilityService.dateReplacer)}exceptionProcess(f,k=!0){return this.ws.get(this._commonServiceUrl+"ExceptionProcess",{json:f,refresh:!0},null,k)}exceptionProcessWithPost(f,k=!0){return this.ws.post(this._commonServiceUrl+"ExceptionProcess",{json:f,refresh:!0},null,null,k)}stepperExceptionProcess(f,k=!0){return this.ws.post(this._commonServiceUrl+"StepperExceptionProcess",{json:f,refresh:!0},null,null,k)}exceptionSelect(f,k=!0){return this.ws.get(this._commonServiceUrl+"ExceptionList",{json:f,refresh:!0},null,k)}batchAction(f,k=!0){return this.ws.get(this._commonServiceUrl+"BatchAction",{json:f,refresh:!0},null,k)}entitySelectTask(f){return this.ws.get(this._commonServiceUrl+"EntitySelectTask",{json:JSON.stringify(f),refresh:!0},null,!0)}personNavigationAction(f,k){return this.ws.get(o.XL.settings.apiUrl+"Person/PersonNavigationAction",{json:JSON.stringify(f),refresh:!0},null,k)}formatDate(f){return f.getMonth()+1+"/"+f.getDate()+"/"+f.getFullYear()}entitySearch(f,k){return this.ws.get(this._commonServiceUrl+"EntitySearch",{json:JSON.stringify({searchText:f,entity:k})})}getForwardToPerson(f,k,w){let g=JSON.stringify({searchText:f,entity:k,entityId:w});return this.ws.get(this._commonServiceUrl+"ForwardToPerson",{json:g})}getCountry(f){return this.ws.get(this._commonServiceUrl+"Country",{json:JSON.stringify(f)},null)}getStateListByOrganization(f){return this.ws.get(this._commonServiceUrl+"OrganizationState",{json:f},null)}getOfficeListByOrganization(f){return this.ws.get(this._officeServiceUrl+"OrganizationOffice",{organizationId:f},null,!0)}getOfficeList(f){return this.ws.get(this._officeServiceUrl+"Office",{json:JSON.stringify(f)},null,!0)}entityOffice(f){return this.ws.get(this._commonServiceUrl+"EntityOffice",{json:JSON.stringify(f)},null,!0)}workflowList(f){return this.ws.get(this._commonServiceUrl+"Workflow",{application:f,refresh:!0},null)}entity(f){return this.ws.get(this._commonServiceUrl+"Entity",{json:f},null)}optionPropertyValue(f,k,w,g){return this.ws.get(this._commonServiceUrl+"OptionPropertyValue",{option:f,property:k,entity:w,entityId:g},null)}emailAddressCheck(f){return this.ws.get(this._commonServiceUrl+"EmailAddressCheck",{json:JSON.stringify(f)},null)}usernameCheck(f){return this.ws.get(this._commonServiceUrl+"UsernameCheck",{json:JSON.stringify(f)},null)}getNavigationId(f,k){return this.ws.get(this._commonServiceUrl+"NavigationId",{navigation:f,url:k},null)}getOptionPropertySource(f){return this.ws.get(this._commonServiceUrl+"OptionPropertySource",{json:f},null)}getEntityOptionProperty(f,k){return this.ws.get(this._commonServiceUrl+"EntityOptionProperty",{json:f,refresh:k},null)}tfOptionSelect(f,k,w,g,M){return this.ws.get(this._commonServiceUrl+"TfOption",{option:f,property:k,entity:w,entityId:g,refresh:M},null)}tfEmailSignatureButtonAccess(f){return this.ws.get(this._commonServiceUrl+"EmailSignatureButtonAccess",{json:f},null)}tfUserCurrentOrganizationSelect(f,k){return this.ws.get(this._commonServiceUrl+"TfUserCurrentOrganization",{personId:f,refresh:k},null)}tfOfficeSelect(f,k){return this.ws.get(this._commonServiceUrl+"TfOffice",{officeId:f,refresh:k},null)}transactionSelectOption(f,k){return this.ws.get(this._commonServiceUrl+"TransactionSelectOption",{json:f,refresh:k},null)}transactionSelectOptionItemList(f,k){return this.ws.get(this._commonServiceUrl+"TransactionSelectOptionItemList",{json:f,refresh:k},null,!0)}accountingPeriodList(f,k){return this.ws.get(this._commonServiceUrl+"AccountingPeriod",{json:JSON.stringify(f),refresh:k},null)}multiViewActionList(f,k=!0,w=!1){return this.ws.get(this._commonServiceUrl+"MultiViewActionList",{json:f,refresh:k},null,w)}dynamicTsk(f,k){return this.ws.post(this._commonServiceUrl+"DynamicTsk",{Json:JSON.stringify(f,this.utilityService.dateReplacer)},null,null,k)}nodeTsk(f){return this.ws.post(this._commonServiceUrl+"NodeTsk",{Json:JSON.stringify(f)})}organizationBankAccount(f,k){return this.ws.get(this._commonServiceUrl+"OrganizationBankAccount",{json:f,refresh:k},null)}getAddress(f,k){return this.ws.get(this._commonServiceUrl+"Address",{json:f,refresh:k})}insertAddress(f,k){return this.ws.post(this._commonServiceUrl+"Address",{json:JSON.stringify(f),entity:k})}getContactInformation(f,k){return this.ws.get(this._commonServiceUrl+"ContactInformation",{json:f,refresh:k},null)}insertContactInformation(f,k){return this.ws.post(this._commonServiceUrl+"ContactInformation",{json:JSON.stringify(f),entity:k})}getUserType(f,k){return this.ws.get(this._commonServiceUrl+"UserType",{json:f,refresh:k},null)}checkIfRoutingNumberExist(f){return this.ws.get(this._commonServiceUrl+"CheckIfRoutingNumberExist",{json:f},null)}routingNumberList(f){return this.ws.get(this._commonServiceUrl+"CheckRoutingNumber",{json:f,refresh:!0},null)}bankList(f,k=!1){return this.ws.get(this._commonServiceUrl+"BankList",{json:f,refresh:!0},null,k)}entityBankAccountTsk(f,k){return this.ws.post(this._commonServiceUrl+"EntityBankAccountTsk",{json:JSON.stringify(f),entity:k})}insertUserType(f,k){return this.ws.post(this._commonServiceUrl+"UserType",{json:JSON.stringify(f),entity:k})}registrationWorkflowList(f){return this.ws.get(this._commonServiceUrl+"RegistrationWorkflow",{json:f},null)}tinMasking(f){return this.ws.get(this._commonServiceUrl+"TINMasking",{json:f},null)}checkTINValidation(f){return this.ws.get(this._commonServiceUrl+"TINValidation",{json:f},null)}checkDuplicateUser(f){return this.ws.get(this._commonServiceUrl+"CheckDuplicateUser",{json:f},null)}checkExistingEmailUsername(f){return this.ws.get(this._commonServiceUrl+"ExistingEmailUsername",{json:f},null)}checkVerificationCode(f){let k=(new l.WM).set("AllowAnonymous","true");const w=(new l.LE).set("json",f);return this.ws.getWithOptions(this._commonServiceUrl+"VerificationCode",{headers:k,params:w},null)}verificationCodeEmail(f){return this.ws.get(this._commonServiceUrl+"VerificationCodeEmailTsk",{json:f},null)}deleteVerificationCode(f){const w={headers:(new l.WM).set("AllowAnonymous","true")};return this.ws.postWithOptions(this._commonServiceUrl+"DeleteVerificationCode",{json:f},w)}checkExistingUsername(f){return this.ws.get(this._commonServiceUrl+"ExistingUsername",{json:f},null)}userTypeList(f){return this.ws.get(this._commonServiceUrl+"UserTypeList",{json:f,refresh:!0})}transactionItemList(f,k){return this.ws.get(this._commonServiceUrl+"TransactionItemList",{json:JSON.stringify(f),refresh:k})}transactionItemDateList(f,k){return this.ws.get(this._commonServiceUrl+"TransactionItemDateList",{json:JSON.stringify(f),refresh:k})}createOrganization(f,k){return this.ws.post(this._commonServiceUrl+"OrganizationNewTsk",{Json:f,Entity:k},null)}createOrganizationWithPerson(f,k){let w=new l.WM;w=w.append("Content-Type","angular/auto"),w=w.append("enctype","multipart/form-data"),w=w.append("Accept","application/json"),w=w.append("Authorization","Bearer "+this.utilityService.getLocalStorage("token")),w=w.append("HeaderParams",JSON.stringify({roleId:0,applicationId:0}));let g=new FormData;return g.append("json",f),g.append("entity",k),this.ws.postWithOptions(this._commonServiceUrl+"OrganizationWithPersonNewTsk",g,{headers:w})}organization(f){return this.ws.get(this._commonServiceUrl+"Organization",{json:JSON.stringify(f)},null,!0)}directHireJobOrganization(f){return this.ws.get(this._commonServiceUrl+"DirectHireJobOrganization",{json:JSON.stringify(f)},null,!0)}updateDepartmentOrganizationName(f){return this.ws.post(this._commonServiceUrl+"DepartmentOrganizationName",{json:JSON.stringify(f)})}entityTaskForm(f,k=!0){return this.ws.get(this._commonServiceUrl+"EntityTaskForm",{json:f,refresh:k})}taskFormTsk(f){return this.ws.post(this._commonServiceUrl+"TaskFormTsk",{json:f})}taskForm(f,k=!0){return this.ws.get(this._commonServiceUrl+"TaskForm",{json:f,refresh:k})}entityTaskDetail(f=!0){return this.ws.get(this._commonServiceUrl+"EntityTaskDetail",{refresh:f})}moveToNewApplication(f){return this.ws.post(this._commonServiceUrl+"MoveToNewApplication",{json:f})}moveToNewWorkflowStage(f){return this.ws.post(this._commonServiceUrl+"MoveToNextWorkflowStage",{json:f})}getCurrentWorkflowStage(f){return this.ws.get(this._commonServiceUrl+"CurrentWorkflowStage",{json:f})}entitySubmitTsk(f){return this.ws.post(this._commonServiceUrl+"EntitySubmitTsk",{json:f})}taskActionTsk(f){return this.ws.post(this._commonServiceUrl+"TaskActionTsk",{json:f})}invoice(f,k=!0){return this.ws.get(this._commonServiceUrl+"Invoice",{Json:JSON.stringify(f),refresh:k},null,!0)}directory(f,k=!0){return this.ws.post(this._commonServiceUrl+"Directory",{json:f,refresh:!0},null,null,k)}entityDetail(f,k=!0){return this.ws.get(this._commonServiceUrl+"EntityDetail",{json:f,refresh:!0},null,k)}getDateType(f,k){return this.ws.get(this._commonServiceUrl+"DateType",{json:f,refresh:k},null)}dateTypeList(f,k){return this.ws.get(this._commonServiceUrl+"DateTypeList",{json:f,refresh:k})}insertDateType(f,k){return this.ws.post(this._commonServiceUrl+"DateType",{json:JSON.stringify(f,this.utilityService.dateReplacer),entity:k})}dashboardChartList(f){return this.ws.get(this._commonServiceUrl+"DashboardChartList",{json:f,refresh:!0})}getComment(f){return this.ws.post(this._commonServiceUrl+"EntityComment",{json:f,refresh:!0})}insertComment(f,k){return this.ws.post(this._commonServiceUrl+"Comment",{json:JSON.stringify(f),entity:k})}insertEntityOption(f){return this.ws.post(this._commonServiceUrl+"InsertEntityOption",{Json:f})}entityOptionPropertyTsk(f){return this.ws.post(this._commonServiceUrl+"EntityOptionPropertyTsk",{Json:f})}personDataAccessOrganization(f,k){return this.ws.get(this._commonServiceUrl+"PersonDataAccessOrganization",{json:JSON.stringify(f),refresh:k})}parseResume(f){let k=new l.WM;return k=k.append("Content-Type","angular/auto"),k=k.append("enctype","multipart/form-data"),k=k.append("Accept","application/json"),this.ws.postWithOptions(this._commonServiceUrl+"ParseResume",f,{headers:k})}checkDocumentExist(f){return this.ws.get(this._commonServiceUrl+"CheckDocumentExist",{Json:f})}getTenantOrganizationHierarchy(f,k){return this.ws.get(this._tenantServiceUrl+"TenantOrganizationHierarchy",{json:JSON.stringify(f),refresh:k},null)}getTenant(){return this.ws.get(this._tenantServiceUrl+"TenantList",{},null)}insertOrganizationWCCode(f){return this.ws.post(this.orgApiUri+"OrganizationWCCode",{Json:f})}updateOrganizationWCCodeStatus(f){return this.ws.post(this.orgApiUri+"UpdateOrganizationWCCodeStatus",{json:f})}checkOrganization(f){return this.ws.get(this.orgApiUri+"CheckOrganization",{Json:f,refresh:!0})}entityAccessCheck(f,k){return this.ws.get(this._commonServiceUrl+"EntityAccessCheck",{entityId:f,entity:k,refresh:!0})}getSkillCategoryList(f,k){return this.ws.get(this._commonServiceUrl+"SkillCategoryList",{json:JSON.stringify(f),refresh:k})}getSkillCategorySkill(f,k){return this.ws.get(this._commonServiceUrl+"SkillCategorySkill",{json:JSON.stringify(f),refresh:k})}getEntitySkill(f,k){return this.ws.get(this._commonServiceUrl+"EntitySkill",{json:JSON.stringify(f),refresh:k},null)}insertEntitySkill(f){return this.ws.post(this._commonServiceUrl+"EntitySkill",{json:JSON.stringify(f)},null)}deleteSkill(f){return this.ws.post(this._commonServiceUrl+"DeleteSkill?json="+JSON.stringify(f))}htmlTemplate(f){return this.ws.get(this._commonServiceUrl+"HtmlTemplate",{json:f})}getCost(f,k){return this.ws.get(this._commonServiceUrl+"Cost",{json:f,refresh:k||!1},null)}getCostTypeList(f,k){return this.ws.get(this._commonServiceUrl+"CostTypeList",{json:f,refresh:k||!1},null)}insertCost(f,k){return this.ws.post(this._commonServiceUrl+"Cost",{json:JSON.stringify(f),entity:k},null)}updateCost(f,k){return this.ws.post(this._commonServiceUrl+"UpdateCost",{json:JSON.stringify(f),refresh:k},null,null)}getPurchaseOrder(f,k=!1){return this.ws.get(this.orgApiUri+"OrganizationPurchaseOrder",{json:f,refresh:k})}insertPurchaseOrder(f,k){return this.ws.post(this.orgApiUri+"OrganizationPurchaseOrder",{json:JSON.stringify(f),refresh:k},null,null)}getSalesProfile(f,k=!1){return this.ws.get(this.orgApiUri+"OrganizationSalesProfile",{json:JSON.stringify(f),refresh:k},null)}insertSalesProfile(f,k){return this.ws.post(this.orgApiUri+"OrganizationSalesProfile",{json:JSON.stringify(f),refresh:k},null,null)}getShift(f,k=!1){return this.ws.get(this.orgApiUri+"Shift",{json:JSON.stringify(f),refresh:k},null)}insertShift(f,k){return this.ws.post(this.orgApiUri+"ShiftTsk",{json:JSON.stringify(f,this.utilityService.dateReplacer),refresh:k},null,null)}insertServiceProfile(f){return this.ws.post(this.orgApiUri+"OrganizationServiceProfile",{json:JSON.stringify(f)})}getServiceProfile(f,k){return this.ws.get(this.orgApiUri+"OrganizationServiceProfile",{json:JSON.stringify(f),refresh:k},null)}getServiceProfileOption(f,k=!1){return this.ws.get(this.orgApiUri+"ServiceProfileOption",{json:JSON.stringify(f),refresh:k},null)}getApplication(f,k){return this.ws.get(this._commonServiceUrl+"Application",{json:f,refresh:k},null)}getRole(f,k){return this.ws.get(this._commonServiceUrl+"Role",{json:f,refresh:k},null)}updatePersonDataAccess(f){return this.ws.post(this._commonServiceUrl+"PersonDataAccessTsk",{json:f},null,null)}updatePersonApplication(f){return this.ws.post(this._commonServiceUrl+"PersonApplicationTsk",{json:f},null,null)}updatePersonRole(f){return this.ws.post(this._commonServiceUrl+"PersonRoleTsk",{json:f},null,null)}getEntityDetailParameter(f,k){return this.ws.get(this._commonServiceUrl+"EntityDetailParameter",{json:JSON.stringify(f),refresh:k},null)}getParsedResumeDocument(f){return this.ws.post(this._commonServiceUrl+"GetParsedResumeDocument",{json:JSON.stringify(f)})}getPersonLoginInfo(f,k){return this.ws.get(this._commonServiceUrl+"PersonLoginInfo",{json:JSON.stringify(f),refresh:k},null)}getTransactionComment(f,k){return this.ws.get(this._commonServiceUrl+"TransactionComment",{json:JSON.stringify(f),refresh:k},null)}entityStatusUpdate(f){return this.ws.post(this._commonServiceUrl+"EntityStatusUpdate",{json:f},null,null)}statusUpdate(f){return this.ws.post(this._commonServiceUrl+"StatusUpdate",{json:f},null,null)}userPasswordUpd(f){return f=JSON.stringify(f),this.ws.post(this._commonServiceUrl+"UserPasswordUpd",{json:f},null,null)}loginInfoUpd(f){return f=JSON.stringify(f),this.ws.post(this._commonServiceUrl+"LoginInfoUpd",{json:f},null,null)}wizardStep(f,k=!1){return this.ws.get(this._commonServiceUrl+"WizardStep",{json:JSON.stringify(f),refresh:k},null)}assignWizardStepData(f,k,w,g){f.map(M=>{M.component!=k||(M[w]=g)})}loadLogo(f){let k=JSON.parse(f);return k&&k.length>0?`${this._fileRepositoryUrl}${k[0].Src}`:null}get fileRepositoryUrl(){return this._fileRepositoryUrl}uploadFiles(f){let k=new l.WM;return k=k.append("Content-Type","angular/auto"),k=k.append("enctype","multipart/form-data"),k=k.append("Accept","application/json"),k=k.append("Authorization","Bearer "+this.utilityService.getLocalStorage("token")),k=k.append("HeaderParams",JSON.stringify({roleId:0,applicationId:0})),this.ws.postWithOptions(this._fileRepositoryUrl+"upload",f,{headers:k})}getRepositoryFiles(f){return this.ws.get(this._fileRepositoryUrl+"files",{json:JSON.stringify(f),refresh:!0},null)}getPictureDocumentUrl(f,k){let w=this._fileRepositoryUrl;if(f.documentId&&f.documentId>0)w=w+"pic/"+btoa(`${f.documentId}`).replace(/=/g,"");else{if(!(f.personId&&f.personId>0))return null;w=w+"profile-pic/"+btoa(`${f.personId}`).replace(/=/g,"")}return k?w=w+"?t="+(new Date).getTime():this._profilePictureRefreshStamp&&(w=w+"?t="+this._profilePictureRefreshStamp),w}getRepositoryDocumentUrl(f,k){const w=btoa(`${f.documentId}`).replace(/=/g,"");let g=`${this._fileRepositoryUrl}${w}/document`;return k&&(g=`${g}?t=${(new Date).getTime()}`),g}set profilePictureChanged(f){f&&(this._profilePictureRefreshStamp=(new Date).getTime().toString())}getProfilePicture(f){return this.ws.get(this._commonServiceUrl+"ProfilePicture",{json:JSON.stringify(f),refresh:!0},null)}savePictureDocument(f){const k=f.file;delete f.file;const w=new FormData;return w.append("file",k,k.name),w.append("json",JSON.stringify(f)),null!=f.documentId&&f.documentId>0?this.documentService.updateDocument(w).pipe((0,n.U)(M=>{if(M)return this.profilePictureChanged=!0,this.utilityService.callSnackBar("Profile picture updated successfully","success"),M._body?JSON.parse(JSON.stringify(M._body)):JSON.parse(JSON.stringify(M))})):this.documentService.insertDocument(w).pipe((0,n.U)(M=>{if(M)return this.profilePictureChanged=!0,this.utilityService.callSnackBar("Profile picture added successfully","success"),M._body?JSON.parse(JSON.stringify(M._body)):JSON.parse(JSON.stringify(M))}))}validateUploadSize(f){const w=f.fileType;let p=0,E=0;if("logo"===w||"profilePic"===w||"emailHeader"===w)E=5;else if("slider"===w)return!0;p=1e6*E;const b=f.file.size<p;return b||this.utilityService.callSnackBar("Invalid file size. please select file of size less then "+E+"mb!","warning"),b}getEntityEdit(f){return this.ws.get(this._commonServiceUrl+"EntityEdit",{json:f,refresh:!0},null)}getDirectoryData(f){return this.ws.get(this._commonServiceUrl+"DirectoryData",{json:f,refresh:!0},null)}getTile(f,k){return this.ws.get(this._commonServiceUrl+"Tile",{json:JSON.stringify(f),refresh:k||!1},null)}getTileList(f,k){return this.ws.get(this._commonServiceUrl+"TileList",{json:JSON.stringify(f),refresh:k||!1},null)}getTileParameter(f,k){return this.ws.get(this._commonServiceUrl+"TileParameter",{json:JSON.stringify(f),refresh:k||!1},null)}tileParameterData(f,k){return this.ws.post(this._commonServiceUrl+"TileParameterData",{json:JSON.stringify(f),refresh:k||!1},null)}updateTileSortOrder(f,k){return this.ws.post(this._commonServiceUrl+"TileSortOrder",{json:JSON.stringify(f),refresh:k||!1},null,null)}getTilePerson(f,k){return this.ws.get(this._commonServiceUrl+"TilePerson",{json:JSON.stringify(f),refresh:k},null,!0)}assignTileToPerson(f,k){return this.ws.post(this._commonServiceUrl+"TilePersonTsk",{json:JSON.stringify(f),refresh:k},null,null,!0)}getPersonTile(f,k){return this.ws.get(o.XL.settings.apiUrl+"Person/PersonTile",{json:JSON.stringify(f),refresh:!0},null,!0)}updatePersonTile(f,k){return this.ws.post(this._commonServiceUrl+"PersonTile",{json:JSON.stringify(f),refresh:k},null,null,!0)}getTestResubmitTaskform(f){return this.ws.post(this._commonServiceUrl+"TestResubmitTaskform",{json:JSON.stringify(f),refresh:!0})}getPersonHandbook(f,k){return this.ws.get(this._commonServiceUrl+"PersonHandbook",{json:f,refresh:k||!1},null)}getAgency(f,k){return this.ws.get(this._commonServiceUrl+"Agency",{json:JSON.stringify(f),refresh:k||!1},null)}getAddressType(f){return this.ws.get(this._commonServiceUrl+"AddressType",{json:f,refresh:!0})}getAddressOption(f){return this.ws.get(this._commonServiceUrl+"AddressOption",{json:f,refresh:!0})}getSalesTaxByState(f,k){return this.ws.get(this._commonServiceUrl+"SalesTaxByState",{json:f,refresh:k||!1})}getInvoiceToOrganization(f){return this.ws.get(this._commonServiceUrl+"InvoiceToOrganization",{json:f})}getApplicationInformation(){const k={headers:(new l.WM).set("AllowAnonymous","true")};return this.ws.getWithOptions(this._commonServiceUrl+"ApplicationInformation",k)}getOrganizationEmailProfile(f,k=!1){return this.ws.get(this._commonServiceUrl+"OrganizationEmailProfile",{json:JSON.stringify(f),refresh:k})}getDbName(){return this.ws.get(this._commonServiceUrl+"Dbname")}insertOrganizationEmailProfile(f){return this.ws.post(this._commonServiceUrl+"OrganizationEmailProfile",f)}getAdpToken(){return this.ws.post(o.XL.settings.apiUrl+"ADP/AccessToken")}screeningInitiate(f){return this.ws.post(o.XL.settings.apiUrl+"ADP/ScreeningInitiate",{data:JSON.stringify(f)})}screeningStatus(f){return this.ws.get(o.XL.settings.apiUrl+"ADP/ScreeningStatus",{url:f})}getCTIScreeningUrl(f){return this.ws.post(o.XL.settings.apiUrl+"CTI/GetScreeningURL",{Json:JSON.stringify(f)})}getESkillScreeningUrl(f){return this.ws.post(o.XL.settings.apiUrl+"eskill/GetScreeningURL",{Json:JSON.stringify(f)})}getHireTechScreeningUrl(f){return this.ws.post(o.XL.settings.apiUrl+"HireTech/ScreeningURL",{Json:JSON.stringify(f)})}getTCCScreeningUrl(f){return this.ws.post(o.XL.settings.apiUrl+"TCC/ScreeningURL",{Json:JSON.stringify(f)})}getEOEScreeningUrl(f){return this.ws.post(o.XL.settings.apiUrl+"EOE/ScreeningURL",{Json:JSON.stringify(f)})}markUpRate(f){return this.ws.post(this._commonServiceUrl+"MarkUpRate",{json:JSON.stringify(f)})}personSnapshotUpd(f){return this.ws.get(this._commonServiceUrl+"PersonSnapshotUpd",{json:JSON.stringify(f)})}snapshot(f){return this.ws.get(this._commonServiceUrl+"Snapshot",{json:JSON.stringify(f)})}snapshotContent(f){return this.ws.get(this._commonServiceUrl+"SnapshotContent",{json:JSON.stringify(f)})}getTransactionCodeList(f,k=!1){return this.ws.get(this._commonServiceUrl+"TransactionCodeList",{json:JSON.stringify(f),refresh:k})}getJobSpecification(f,k){return this.ws.get(this._commonServiceUrl+"JobSpecification",{json:JSON.stringify(f,this.utilityService.dateReplacer),refresh:k||!1},null,!1)}insertJobSpecification(f){return this.ws.post(this._commonServiceUrl+"JobSpecification",{json:JSON.stringify(f,this.utilityService.dateReplacer)},null,null,!0)}UpdateJobSpecification(f){return this.ws.post(this._commonServiceUrl+"UpdateJobSpecification",{json:JSON.stringify(f,this.utilityService.dateReplacer)})}addressNewTsk(f,k){return console.log("addressNewTsk 11111:",JSON.stringify(k)),this.ws.post(this._commonServiceUrl+"AddressNewTsk",{json:JSON.stringify(k),entity:f})}getCustom(f,k){return this.ws.get(this._commonServiceUrl+"Custom",{json:JSON.stringify(f,this.utilityService.dateReplacer),refresh:k||!1},null,!1)}insertCustom(f){return this.ws.post(this._commonServiceUrl+"Custom",{json:JSON.stringify(f,this.utilityService.dateReplacer)},null,null,!1)}updateCustom(f){return this.ws.post(this._commonServiceUrl+"UpdateCustom",{json:JSON.stringify(f,this.utilityService.dateReplacer)})}getOTPlan(){return this.ws.get(this._commonServiceUrl+"OTPlan")}getInformationStatusCheckSel(f){return this.ws.get(this._commonServiceUrl+"InformationStatusCheck",{json:JSON.stringify(f)},null,!1)}getInvoiceStyleReport(){return this.ws.get(this.orgApiUri+"InvoiceStyleReport")}getTransactionTypeList(f,k=!1){return this.ws.get(this._commonServiceUrl+"TransactionType",{json:JSON.stringify(f),refresh:k})}getPurchaseOrderList(f,k=!1){return this.ws.get(this._commonServiceUrl+"PurchaseOrders",{json:JSON.stringify(f),refresh:k})}getPayPeriodListItems(f=!1){return this.ws.get(this._commonServiceUrl+"PayPeriodListItems",{refresh:f})}getUserOffices(f,k){return this.ws.get(this._commonServiceUrl+"UserOffices",{organizationId:f,officeId:k})}getTemplate(f){return this.ws.get(this._commonServiceUrl+"Template",{json:JSON.stringify(f)})}getException(f){return this.ws.get(this._commonServiceUrl+"Exception",{json:JSON.stringify(f)})}insertException(f){return this.ws.post(this._commonServiceUrl+"Exception",{json:JSON.stringify(f)},null,null,!1)}getEmployment(f,k=!1){return this.ws.get(this._commonServiceUrl+"Employment",{json:JSON.stringify(f),refresh:k})}getFundingOrganization(f){return this.ws.get(this.orgApiUri+"FundingOrganization",{json:JSON.stringify(f)})}getPersonApplication(f){return this.ws.get(this._commonServiceUrl+"PersonApplication",{json:JSON.stringify(f)})}checkExceptionExist(f){return this.ws.get(this._commonServiceUrl+"CheckExceptionExist",{json:JSON.stringify(f)})}getOfficeSkill(f){return this.ws.get(this._commonServiceUrl+"OfficeSkill",{json:f})}getGroup(f){return this.ws.get(this._commonServiceUrl+"Group",{json:f})}getGroupCheck(f){return this.ws.get(this._commonServiceUrl+"GroupCheck",{json:f})}checkEmailExist(f){return this.ws.get(this._commonServiceUrl+"CheckEmailExist",{json:f})}checkPersonAccessible(f){return this.ws.get(this._commonServiceUrl+"CheckPersonAccessible",{json:f})}deleteDateType(f){return this.ws.post(this._commonServiceUrl+"DeleteDateType",{json:JSON.stringify(f)})}delete(f){return this.ws.post(this._commonServiceUrl+"Delete",{json:JSON.stringify(f)})}applicationReportData(f){return this.ws.get(this._commonServiceUrl+"ApplicationReportData",{json:JSON.stringify(f)})}FilteredData(f){return this.ws.get(this._commonServiceUrl+"DataFilter",{json:JSON.stringify(f)})}insertContactRole(f){return this.ws.post(this._commonServiceUrl+"ContactRole",{json:JSON.stringify(f)})}getSignaturePictureUrl(f){return this._fileRepositoryUrl+"signature/"+f.bankAccountId}getProcessingMethod(f){return this.ws.get(this._commonServiceUrl+"ProcessingMethod",{json:f})}entityFilterReport(f,k=!0){return this.ws.get(this._commonServiceUrl+"EntityFilterReport",{json:JSON.stringify(f),refresh:k},null,!0)}entityFilterSessionTsk(f,k=!0){return this.ws.post(this._commonServiceUrl+"EntityFilterSession",{json:JSON.stringify(f,this.utilityService.dateReplacer)},null,null,!0)}PayCheckListItems(f){return this.ws.get(this._commonServiceUrl+"PayCheckListItems",{json:JSON.stringify(f)},null,!0)}deleteUserType(f){return this.ws.post(this._commonServiceUrl+"DeleteUserType",{json:JSON.stringify(f)})}grossProfitCalculator(f){return this.ws.get(this._commonServiceUrl+"grossProfitCalculator",{json:JSON.stringify(f)},null,!0)}grossProfitOptionSelection(f){return this.ws.get(this._commonServiceUrl+"grossProfitOption",{json:JSON.stringify(f)},null,!0)}getSUTATax(f,k){return this.ws.get(this._commonServiceUrl+"sUTATax",{stateId:f,organizationId:k},null,!0)}getWcCodeRate(f,k,w){return this.ws.get(this._commonServiceUrl+"wcCodeRate",{wcCodeId:f,organizationId:k,jobId:w},null,!0)}getTransactionHistory(f,k){return this.ws.get(this._commonServiceUrl+"TransactionHistory",{json:JSON.stringify(f),refresh:k||!1},null,!0)}getOrganizationWcCodeRate(f){return this.ws.get(this._commonServiceUrl+"FundingOrganizationWcCodeRate",{json:JSON.stringify(f)},null,!0)}getOrganizationWcCodeRateTsk(f){return this.ws.get(this._commonServiceUrl+"FundingOrganizationWcCodeTsk",{json:JSON.stringify(f)},null,!0)}getCommentType(f){return this.ws.get(this._commonServiceUrl+"CommentType",{json:JSON.stringify(f)},null,!0)}getCommentCategory(f){return this.ws.get(this._commonServiceUrl+"CommentCategory",{json:JSON.stringify(f)},null,!0)}getPaymentDocument(f,k=!0){return this.ws.post(o.XL.settings.apiUrl+"Payment/PersonPaymentDocument",{json:JSON.stringify(f),refresh:k})}getCommentShareEntityData(f){return this.ws.get(this._commonServiceUrl+"CommentShareEntityData",{json:JSON.stringify(f)},null,!0)}commentShareEntityDetailTsk(f){return this.ws.post(this._commonServiceUrl+"CommentSharedEntityDetail",{json:JSON.stringify(f)})}getCommentSharedEntity(f){return this.ws.get(this._commonServiceUrl+"CommentSharedEntity",{json:JSON.stringify(f)},null,!0)}getETCEmailSharedEntities(f){return this.ws.get(this._commonServiceUrl+"ETCEmailSharedEntities",{json:JSON.stringify(f)},null,!0)}getETCEmailShareEntityData(f){return this.ws.get(this._commonServiceUrl+"ETCEmailShareEntityData",{json:JSON.stringify(f)},null,!0)}getTaskComment(f){return this.ws.get(this._commonServiceUrl+"TaskComment",{json:JSON.stringify(f)},null,!0)}updateComment(f){return this.ws.post(this._commonServiceUrl+"UpdateComment",{json:f})}updateAppointment(f){return this.ws.post(this._commonServiceUrl+"UpdateAppointment",{json:f})}availability(f){return this.ws.post(this._commonServiceUrl+"Availability",{json:JSON.stringify(f)})}getAvailability(f){return this.ws.get(this._commonServiceUrl+"GetAvailability",{json:JSON.stringify(f)},null,!0)}checkAvailabilityEmailToken(f){return this.ws.get(this._commonServiceUrl+"CheckAvailabilityEmailToken",{json:JSON.stringify(f)},null,!0)}unsubscribeRegistrationReminder(f){return this.ws.post(this._commonServiceUrl+"RegistrationReminder",{json:JSON.stringify(f)})}getAgencyPayHistory(f){return this.ws.get(this._commonServiceUrl+"AgencyPayHistory",{json:JSON.stringify(f)},null,!0)}getEmailProfileDetail(f,k){return this.ws.get(this._commonServiceUrl+"TfEmailProfileDetail",{input:f,inputType:k},null,!0)}getSMSNotificationCount(f){return this.ws.get(o.XL.settings.apiUrl+"SMS/SMSNotificationCount",{json:JSON.stringify(f)},null,!1,!0,!1)}insertRecentData(f){return this.ws.post(this._commonServiceUrl+"RecentViewData",{json:JSON.stringify(f)})}switchRole(f){return this.ws.post(this._commonServiceUrl+"SwitchRole",{json:JSON.stringify(f)})}applicationRoleSwitch(f){return this.ws.post(this._commonServiceUrl+"ApplicationRoleSwitch",{json:JSON.stringify(f)})}initiateCustomerOnboarding(f){return this.ws.post(this._commonServiceUrl+"InitiateCustomerOnboarding",{json:JSON.stringify(f)})}exchangeAuthorizationCode(f){return this.ws.get(this.emailApiUri+"GetMicrosoftToken?code="+f.code+"&state="+f.state+"&personId="+f.personId)}exchangeAuthorizationCodeNew(f){return this.ws.post(this.emailApiUri+"SaveOauth",{json:JSON.stringify(f)})}rootOrganizationOffice(f){return this.ws.get(this._commonServiceUrl+"RootOrganizationOffice",{json:JSON.stringify(f)},null,!0)}personNodeUpd(f){return this.ws.post(this._commonServiceUrl+"PersonNodeUpd",{json:JSON.stringify(f),refresh:!0},null,null,!0)}getPersonRehireTaskTemplateList(f){return this.ws.get(this._commonServiceUrl+"PersonRehireTaskTemplateList",{json:f},null)}commonUpd(f){return this.ws.post(this._commonServiceUrl+"CommonUpdate",{json:f},null,null)}jobStatusValidation(f,k=!0){return this.ws.get(this._commonServiceUrl+"JobStatusValidation",{json:f,refresh:k})}checkEntityAddress(f){return this.ws.get(this._commonServiceUrl+"CheckEntityAddress",{json:f},null,null)}getEmailDocument(f,k=!0){return this.ws.post(this._commonServiceUrl+"EmailDocument",{Json:JSON.stringify(f)})}customerAssignmentAdjustmentTsk(f){return this.ws.post(this._commonServiceUrl+"CustomerAssignmentAdjustmentTsk",{Json:JSON.stringify(f,this.utilityService.dateReplacer)})}getCustomerAssignmentAdjustment(f,k){return this.ws.get(this._commonServiceUrl+"CustomerAssignmentAdjustment",{json:f,refresh:k})}getParentCustomerAssignmentAdjustment(f,k){return this.ws.get(this._commonServiceUrl+"ParentCustomerAssignmentAdjustment",{json:f,refresh:k})}getCustomerAssignmentAdjustmentHistory(f,k){return this.ws.get(this._commonServiceUrl+"CustomerAssignmentAdjustmentHistory",{json:f,refresh:k})}getDirectoryFilterCascadeData(f,k){return this.ws.post(this._commonServiceUrl+"DirectoryFilterCascade",{json:f,refresh:k})}getTimesheetAttachment(f){return this.ws.get(this.timeEntryServiceUrl+"TransactionDocument",{json:JSON.stringify(f),refresh:!0},null,!1)}CheckExistingUserType(f){return this.ws.get(this._commonServiceUrl+"UserTypeCheck",{json:JSON.stringify(f)},null)}contactRoleStatusTsk(f){return this.ws.post(this._commonServiceUrl+"ContactRoleStatusTsk",{Json:JSON.stringify(f)})}getMobileDynamicLink(f){return this.ws.post(this._commonServiceUrl+"DynamicLink",{json:f})}getCrossOverTenantOrganization(f){return this.ws.get(this._commonServiceUrl+"CrossOverTenantOrganization",{json:JSON.stringify(f)})}getCloudmersiveCredential(){return this.ws.get(this._commonServiceUrl+"CloudmersiveCredential",{json:JSON.stringify({})})}portalTaskTemplateTsk(f){return this.ws.post(this._commonServiceUrl+"PortalTaskTemplateTsk",{json:f},null,null)}getTfTemplate(f){return this.ws.get(this._commonServiceUrl+"TfTemplate",{json:JSON.stringify(f)})}getSignatureTemplates(f){return this.ws.get(this._commonServiceUrl+"SignatureTemplate",{json:JSON.stringify(f)})}insertEmailSignature(f){let k=new l.WM;return k=k.append("Content-Type","angular/auto"),k=k.append("enctype","multipart/form-data"),k=k.append("Accept","application/json"),k=k.append("Authorization","Bearer "+this.utilityService.getLocalStorage("token")),k=k.append("HeaderParams",JSON.stringify({roleId:0,applicationId:0})),this.ws.postWithOptions(this._commonServiceUrl+"insertEmailSignature",f,{headers:k})}getTfGeneralPersonInformation(f){return this.ws.get(this._commonServiceUrl+"TfGeneralPersonInformation",{json:f})}getResumeParser(f){return this.ws.get(this._commonServiceUrl+"GetResumeParser",{json:JSON.stringify({parserType:f})})}getWorksiteSource(f){return this.ws.get(this._commonServiceUrl+"WorksiteSource",{json:f},null)}entityNodeTsk(f){return this.ws.post(this._commonServiceUrl+"EntityNodeTsk",{Json:JSON.stringify(f)})}getListItemList(f){return this.ws.get(this._commonServiceUrl+"GetListItemList",{json:JSON.stringify(f)},null)}getOpenAICompletion(f){return this.ws.post(this._aIApiUrl+"OpenAICompletion",{json:JSON.stringify(f)})}static#e=this.\u0275fac=function(k){return new(k||R)(u.LFG(d.f),u.LFG(s.t),u.LFG(A.Z),u.LFG(_.F0),u.LFG(l.eN))};static#t=this.\u0275prov=u.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"})}return R})()},54226:(he,y,i)=>{"use strict";i.d(y,{y:()=>d});var e=i(78645),n=i(59773),o=i(65879),a=i(6738),l=i(710),u=i(70144);let d=(()=>{class s{constructor(_,C,R){this.ws=_,this.cs=C,this.emailService=R,this.gapiSetup=!1,this.scopes="https://mail.google.com/ https://www.googleapis.com/auth/userinfo.profile",this.discoveryUrl="https://www.googleapis.com/discovery/v1/apis/drive/v3/rest",this._unsubscribeAll=new e.x}ngOnInit(){}loadGoogleClient(){this.emailService.getClientSecretKeys().pipe((0,n.R)(this._unsubscribeAll)).subscribe(_=>{this.gclientId=_.google.clientId,gapi.load("auth2",this.initGoogleClient.bind(this))})}initGoogleClient(){gapi.auth2.init({client_id:this.gclientId,scope:this.scopes}).then(()=>{this.authInstance=gapi.auth2.getAuthInstance(),this.authInstance.isSignedIn.listen(this.updateSigninStatus),this.authInstance.currentUser.get(),this.setSigninStatus()})}handleAuthClick(){return this.authInstance.grantOfflineAccess().then(_=>_)}exchangeAuthorizationCode(_){return this.cs.exchangeAuthorizationCodeNew({code:_}).pipe((0,n.R)(this._unsubscribeAll)).subscribe(R=>R)}revokeAccess(){this.authInstance.disconnect()}setSigninStatus(){}updateSigninStatus(){this.setSigninStatus()}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(C){return new(C||s)(o.LFG(a.f),o.LFG(l.v),o.LFG(u.j))};static#t=this.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac})}return s})()},86401:(he,y,i)=>{"use strict";i.d(y,{c:()=>_});var e=i(7110),n=i(69862),o=i(10217),l=i(37398),u=i(94664),d=i(65879),s=i(6738),A=i(73515);let _=(()=>{class C{constructor(x,f,k){this.ws=x,this.httpClient=f,this.appTranslationService=k,this._formioApiUrl=e.XL.settings.apiUrl+"Formio/"}createFormioData(x,f){let k=(new n.WM).set("Content-Type","application/json");return k=k.append("x-jwt-token",f),this.httpClient.post(x.formURL,x.jsonValue,{headers:k})}updateFormioData(x){return this.ws.put(x.baseURL+"/"+x.formJson.path+"/submission/"+x.jsonValue._id,x.jsonValue)}getFormJsonData(x){return this.ws.get(x)}getJwtToken(x){const k={headers:(new n.WM).set("Content-Type","application/json"),observe:"response"};return this.ws.postWithOptions(x.baseURL+"/user/login",{data:{email:"nho@aqore.com",password:"Aqore@789"}},k)}getDownloadToken(x,f){let k=(new n.WM).set("Content-Type","application/json");return k=k.append("x-jwt-token",x),k=k.append("x-allow","GET:project/"+f.formJson.project+"/form/"+f.formJson._id+"/submission/"+f.jsonValue._id+"/download"),k=k.append("x-expire","9999"),this.ws.getWithOptions(f.baseURL+"/token",{headers:k})}downloadPdf(x,f,k){let w=(new n.WM).set("Content-Type","application/json");return w=w.append("x-admin-key",e.XL.settings.formio.xAdminKey),this.httpClient.post(e.XL.settings.formio.pdfServerUrl+"/pdf/"+e.XL.settings.formio.projectId+"/file/pdf/download",{form:{title:x.title,components:x.formJson.components,settings:x.formJson.settings},submission:{data:x.jsonValue.data}},{headers:w,responseType:"blob"}).pipe((0,l.U)(p=>this.extractContent(p,x)))}extractContent(x,f){const k=new Blob([x],{type:"application/pdf"});o.saveAs(k,f.title+".pdf")}getFormioOptions(){return this.appTranslationService.cultureList.pipe((0,u.w)(x=>{if(x){const f=x.map(k=>k.cultureCode.toLowerCase());return this.appTranslationService.getAllLocaleData(f)}}))}static#e=this.\u0275fac=function(f){return new(f||C)(d.LFG(s.f),d.LFG(n.eN),d.LFG(A.R))};static#t=this.\u0275prov=d.Yz7({token:C,factory:C.\u0275fac})}return C})()},22991:(he,y,i)=>{"use strict";i.d(y,{_:()=>u});var e=i(15861),n=i(65619),o=i(65592),a=i(48180),l=i(65879);let u=(()=>{class d{constructor(){this.positionObs=new n.X(null)}clearWatch(){this.geoWatchId&&navigator.geolocation.clearWatch(this.geoWatchId)}watchPosition(){const A={enableHighAccuracy:!1,timeout:5e3,maximumAge:0};try{this.geoWatchId=navigator.geolocation.watchPosition(_=>{this.position={lat:_.coords.latitude,lng:_.coords.longitude},this.errMsg="",(this.currentLat!=_.coords.latitude||this.currentLng!=_.coords.longitude)&&(this.currentLat=_.coords.latitude,this.currentLng=_.coords.longitude,this.positionObs.next(this.position))},_=>{this.errMsg=1===_.code?"youHaveRejectedAccessToYourLocation":"",console.log("%c GPS ERROR("+_.code+"): "+_.message,"background: red; color:#fff")},A)}catch(_){console.log("%c GPS CATCH ERROR"+_+"; stringify: "+JSON.stringify(_),"background: red; color:#fff")}}getCurrentPosition(){var A=this;return(0,e.Z)(function*(){return yield new o.y(R=>{const x={enableHighAccuracy:!1,timeout:5e3,maximumAge:1/0};try{navigator.geolocation.getCurrentPosition(f=>{A.position={lat:f.coords.latitude,lng:f.coords.longitude},A.errMsg="",A.positionObs.next(A.position),R.next(A.position),R.complete()},f=>{A.errMsg=1===f.code?"youHaveRejectedAccessToYourLocation":"",console.log("%c GPS getCurrentPosition ERROR("+f.code+"): "+f.message,"background: red; color:#fff"),R.next(null)},x)}catch(f){console.log("%c GPS CATCH ERROR"+f+"; stringify: "+JSON.stringify(f),"background: red; color:#fff"),R.next(null)}}).pipe((0,a.q)(1)).toPromise()})()}static#e=this.\u0275fac=function(_){return new(_||d)};static#t=this.\u0275prov=l.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})()},84936:(he,y,i)=>{"use strict";i.d(y,{e:()=>a});var e=i(7110),n=i(65879),o=i(6738);let a=(()=>{class l{constructor(d){this.ws=d,this.gccUrl=e.XL.settings.apiUrl+"GlobalCashCard/"}addCardholder(d){return this.ws.post(this.gccUrl+"AddCardholder",{json:JSON.stringify(d)})}static#e=this.\u0275fac=function(s){return new(s||l)(n.LFG(o.f))};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac})}return l})()},57417:(he,y,i)=>{"use strict";i.d(y,{w:()=>a});var e=i(7110),n=i(65879),o=i(6738);let a=(()=>{class l{constructor(d){this.ws=d,this.wiselyUrl=e.XL.settings.apiUrl+"ADPWisely/"}intiateCardEnrollment(d){return this.ws.post(this.wiselyUrl+"IntiateCardEnrollment",{json:JSON.stringify(d)})}static#e=this.\u0275fac=function(s){return new(s||l)(n.LFG(o.f))};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac})}return l})()},23605:(he,y,i)=>{"use strict";i.d(y,{g:()=>l});var e=i(78645),n=i(9731),o=i(59773),a=i(41349);class l{constructor(){this.$_unsubscribeAll=new e.x,this.screenHeight=window.innerHeight,a.k&&(this.appStateService=a.k.get(n.V),this.isMobileResolution=this.appStateService.isMobileResolution.pipe((0,o.R)(this.$_unsubscribeAll)),this.currentResolution=this.appStateService.currentResolution.pipe((0,o.R)(this.$_unsubscribeAll))),this.screenHeight=window.innerHeight}destroy(){this.$_unsubscribeAll.next(),this.$_unsubscribeAll.complete()}}},36295:(he,y,i)=>{"use strict";i.d(y,{o:()=>a});var e=i(7110),n=i(65879),o=i(6738);let a=(()=>{class l{constructor(d){this.ws=d,this.moneyNetworkUrl=e.XL.settings.apiUrl+"MoneyNetwork/"}updatePerson(d){return this.ws.post(this.moneyNetworkUrl+"UpdatePerson",{json:JSON.stringify(d)})}replaceCard(d){return this.ws.post(this.moneyNetworkUrl+"ReplaceCard",{json:JSON.stringify(d)})}static#e=this.\u0275fac=function(s){return new(s||l)(n.LFG(o.f))};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac})}return l})()},24887:(he,y,i)=>{"use strict";i.d(y,{g:()=>Ko});var e=i(15861),n=i(7110),o=i(65619);const a=[0,2e3,1e4,3e4,null];class l{constructor(Bn){this._retryDelays=void 0!==Bn?[...Bn,null]:a}nextRetryDelayInMilliseconds(Bn){return this._retryDelays[Bn.previousRetryCount]}}let u=(()=>{class xo{}return xo.Authorization="Authorization",xo.Cookie="Cookie",xo})();class d{constructor(Bn,Xt,Ji){this.statusCode=Bn,this.statusText=Xt,this.content=Ji}}class s{get(Bn,Xt){return this.send({...Xt,method:"GET",url:Bn})}post(Bn,Xt){return this.send({...Xt,method:"POST",url:Bn})}delete(Bn,Xt){return this.send({...Xt,method:"DELETE",url:Bn})}getCookieString(Bn){return""}}class A extends s{constructor(Bn,Xt){super(),this._innerClient=Bn,this._accessTokenFactory=Xt}send(Bn){var Xt=this;return(0,e.Z)(function*(){let Ji=!0;Xt._accessTokenFactory&&(!Xt._accessToken||Bn.url&&Bn.url.indexOf("/negotiate?")>0)&&(Ji=!1,Xt._accessToken=yield Xt._accessTokenFactory()),Xt._setAuthorizationHeader(Bn);const En=yield Xt._innerClient.send(Bn);return Ji&&401===En.statusCode&&Xt._accessTokenFactory?(Xt._accessToken=yield Xt._accessTokenFactory(),Xt._setAuthorizationHeader(Bn),yield Xt._innerClient.send(Bn)):En})()}_setAuthorizationHeader(Bn){Bn.headers||(Bn.headers={}),this._accessToken?Bn.headers[u.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&Bn.headers[u.Authorization]&&delete Bn.headers[u.Authorization]}getCookieString(Bn){return this._innerClient.getCookieString(Bn)}}class _ extends Error{constructor(Bn,Xt){const Ji=new.target.prototype;super(`${Bn}: Status code '${Xt}'`),this.statusCode=Xt,this.__proto__=Ji}}class C extends Error{constructor(Bn="A timeout occurred."){const Xt=new.target.prototype;super(Bn),this.__proto__=Xt}}class R extends Error{constructor(Bn="An abort occurred."){const Xt=new.target.prototype;super(Bn),this.__proto__=Xt}}class x extends Error{constructor(Bn,Xt){const Ji=new.target.prototype;super(Bn),this.transport=Xt,this.errorType="UnsupportedTransportError",this.__proto__=Ji}}class f extends Error{constructor(Bn,Xt){const Ji=new.target.prototype;super(Bn),this.transport=Xt,this.errorType="DisabledTransportError",this.__proto__=Ji}}class k extends Error{constructor(Bn,Xt){const Ji=new.target.prototype;super(Bn),this.transport=Xt,this.errorType="FailedToStartTransportError",this.__proto__=Ji}}class w extends Error{constructor(Bn){const Xt=new.target.prototype;super(Bn),this.errorType="FailedToNegotiateWithServerError",this.__proto__=Xt}}class g extends Error{constructor(Bn,Xt){const Ji=new.target.prototype;super(Bn),this.innerErrors=Xt,this.__proto__=Ji}}var M=function(xo){return xo[xo.Trace=0]="Trace",xo[xo.Debug=1]="Debug",xo[xo.Information=2]="Information",xo[xo.Warning=3]="Warning",xo[xo.Error=4]="Error",xo[xo.Critical=5]="Critical",xo[xo.None=6]="None",xo}(M||{});class p{constructor(){}log(Bn,Xt){}}p.instance=new p;const E="7.0.14";class b{static isRequired(Bn,Xt){if(null==Bn)throw new Error(`The '${Xt}' argument is required.`)}static isNotEmpty(Bn,Xt){if(!Bn||Bn.match(/^\s*$/))throw new Error(`The '${Xt}' argument should not be empty.`)}static isIn(Bn,Xt,Ji){if(!(Bn in Xt))throw new Error(`Unknown ${Ji} value: ${Bn}.`)}}class I{static get isBrowser(){return"object"==typeof window&&"object"==typeof window.document}static get isWebWorker(){return"object"==typeof self&&"importScripts"in self}static get isReactNative(){return"object"==typeof window&&typeof window.document>"u"}static get isNode(){return!this.isBrowser&&!this.isWebWorker&&!this.isReactNative}}function L(xo,Bn){let Xt="";return F(xo)?(Xt=`Binary data of length ${xo.byteLength}`,Bn&&(Xt+=`. Content: '${function D(xo){const Bn=new Uint8Array(xo);let Xt="";return Bn.forEach(Ji=>{Xt+=`0x${Ji<16?"0":""}${Ji.toString(16)} `}),Xt.substr(0,Xt.length-1)}(xo)}'`)):"string"==typeof xo&&(Xt=`String data of length ${xo.length}`,Bn&&(Xt+=`. Content: '${xo}'`)),Xt}function F(xo){return xo&&typeof ArrayBuffer<"u"&&(xo instanceof ArrayBuffer||xo.constructor&&"ArrayBuffer"===xo.constructor.name)}function P(xo,Bn,Xt,Ji,En,un){return O.apply(this,arguments)}function O(){return(O=(0,e.Z)(function*(xo,Bn,Xt,Ji,En,un){const Ki={},[Fn,oi]=X();Ki[Fn]=oi,xo.log(M.Trace,`(${Bn} transport) sending data. ${L(En,un.logMessageContent)}.`);const It=F(En)?"arraybuffer":"text",Bt=yield Xt.post(Ji,{content:En,headers:{...Ki,...un.headers},responseType:It,timeout:un.timeout,withCredentials:un.withCredentials});xo.log(M.Trace,`(${Bn} transport) request complete. Response status: ${Bt.statusCode}.`)})).apply(this,arguments)}class V{constructor(Bn,Xt){this._subject=Bn,this._observer=Xt}dispose(){const Bn=this._subject.observers.indexOf(this._observer);Bn>-1&&this._subject.observers.splice(Bn,1),0===this._subject.observers.length&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(Xt=>{})}}class K{constructor(Bn){this._minLevel=Bn,this.out=console}log(Bn,Xt){if(Bn>=this._minLevel){const Ji=`[${(new Date).toISOString()}] ${M[Bn]}: ${Xt}`;switch(Bn){case M.Critical:case M.Error:this.out.error(Ji);break;case M.Warning:this.out.warn(Ji);break;case M.Information:this.out.info(Ji);break;default:this.out.log(Ji)}}}}function X(){let xo="X-SignalR-User-Agent";return I.isNode&&(xo="User-Agent"),[xo,me(E,J(),I.isNode?"NodeJS":"Browser",Q())]}function me(xo,Bn,Xt,Ji){let En="Microsoft SignalR/";const un=xo.split(".");return En+=`${un[0]}.${un[1]}`,En+=` (${xo}; `,En+=Bn&&""!==Bn?`${Bn}; `:"Unknown OS; ",En+=`${Xt}`,En+=Ji?`; ${Ji}`:"; Unknown Runtime Version",En+=")",En}function J(){if(!I.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}function Q(){if(I.isNode)return process.versions.node}function de(xo){return xo.stack?xo.stack:xo.message?xo.message:`${xo}`}class j extends s{constructor(Bn){if(super(),this._logger=Bn,typeof fetch>"u"){const Xt=require;this._jar=new(Xt("tough-cookie").CookieJar),this._fetchType=Xt("node-fetch"),this._fetchType=Xt("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(function te(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}());if(typeof AbortController>"u"){const Xt=require;this._abortControllerType=Xt("abort-controller")}else this._abortControllerType=AbortController}send(Bn){var Xt=this;return(0,e.Z)(function*(){if(Bn.abortSignal&&Bn.abortSignal.aborted)throw new R;if(!Bn.method)throw new Error("No method defined.");if(!Bn.url)throw new Error("No url defined.");const Ji=new Xt._abortControllerType;let En;Bn.abortSignal&&(Bn.abortSignal.onabort=()=>{Ji.abort(),En=new R});let Ki,un=null;Bn.timeout&&(un=setTimeout(()=>{Ji.abort(),Xt._logger.log(M.Warning,"Timeout from HTTP request."),En=new C},Bn.timeout)),""===Bn.content&&(Bn.content=void 0),Bn.content&&(Bn.headers=Bn.headers||{},Bn.headers["Content-Type"]=F(Bn.content)?"application/octet-stream":"text/plain;charset=UTF-8");try{Ki=yield Xt._fetchType(Bn.url,{body:Bn.content,cache:"no-cache",credentials:!0===Bn.withCredentials?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...Bn.headers},method:Bn.method,mode:"cors",redirect:"follow",signal:Ji.signal})}catch(It){throw En||(Xt._logger.log(M.Warning,`Error from HTTP request. ${It}.`),It)}finally{un&&clearTimeout(un),Bn.abortSignal&&(Bn.abortSignal.onabort=null)}if(!Ki.ok){const It=yield H(Ki,"text");throw new _(It||Ki.statusText,Ki.status)}const oi=yield H(Ki,Bn.responseType);return new d(Ki.status,Ki.statusText,oi)})()}getCookieString(Bn){let Xt="";return I.isNode&&this._jar&&this._jar.getCookies(Bn,(Ji,En)=>Xt=En.join("; ")),Xt}}function H(xo,Bn){let Xt;switch(Bn){case"arraybuffer":Xt=xo.arrayBuffer();break;case"text":default:Xt=xo.text();break;case"blob":case"document":case"json":throw new Error(`${Bn} is not supported.`)}return Xt}class z extends s{constructor(Bn){super(),this._logger=Bn}send(Bn){return Bn.abortSignal&&Bn.abortSignal.aborted?Promise.reject(new R):Bn.method?Bn.url?new Promise((Xt,Ji)=>{const En=new XMLHttpRequest;En.open(Bn.method,Bn.url,!0),En.withCredentials=void 0===Bn.withCredentials||Bn.withCredentials,En.setRequestHeader("X-Requested-With","XMLHttpRequest"),""===Bn.content&&(Bn.content=void 0),Bn.content&&(F(Bn.content)?En.setRequestHeader("Content-Type","application/octet-stream"):En.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const un=Bn.headers;un&&Object.keys(un).forEach(Ki=>{En.setRequestHeader(Ki,un[Ki])}),Bn.responseType&&(En.responseType=Bn.responseType),Bn.abortSignal&&(Bn.abortSignal.onabort=()=>{En.abort(),Ji(new R)}),Bn.timeout&&(En.timeout=Bn.timeout),En.onload=()=>{Bn.abortSignal&&(Bn.abortSignal.onabort=null),En.status>=200&&En.status<300?Xt(new d(En.status,En.statusText,En.response||En.responseText)):Ji(new _(En.response||En.responseText||En.statusText,En.status))},En.onerror=()=>{this._logger.log(M.Warning,`Error from HTTP request. ${En.status}: ${En.statusText}.`),Ji(new _(En.statusText,En.status))},En.ontimeout=()=>{this._logger.log(M.Warning,"Timeout from HTTP request."),Ji(new C)},En.send(Bn.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class q extends s{constructor(Bn){if(super(),typeof fetch<"u"||I.isNode)this._httpClient=new j(Bn);else{if(!(typeof XMLHttpRequest<"u"))throw new Error("No usable HttpClient found.");this._httpClient=new z(Bn)}}send(Bn){return Bn.abortSignal&&Bn.abortSignal.aborted?Promise.reject(new R):Bn.method?Bn.url?this._httpClient.send(Bn):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(Bn){return this._httpClient.getCookieString(Bn)}}var se=function(xo){return xo[xo.None=0]="None",xo[xo.WebSockets=1]="WebSockets",xo[xo.ServerSentEvents=2]="ServerSentEvents",xo[xo.LongPolling=4]="LongPolling",xo}(se||{}),ne=function(xo){return xo[xo.Text=1]="Text",xo[xo.Binary=2]="Binary",xo}(ne||{});class _e{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}}class ge{constructor(Bn,Xt,Ji){this._httpClient=Bn,this._logger=Xt,this._pollAbort=new _e,this._options=Ji,this._running=!1,this.onreceive=null,this.onclose=null}get pollAborted(){return this._pollAbort.aborted}connect(Bn,Xt){var Ji=this;return(0,e.Z)(function*(){if(b.isRequired(Bn,"url"),b.isRequired(Xt,"transferFormat"),b.isIn(Xt,ne,"transferFormat"),Ji._url=Bn,Ji._logger.log(M.Trace,"(LongPolling transport) Connecting."),Xt===ne.Binary&&typeof XMLHttpRequest<"u"&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[En,un]=X(),Ki={[En]:un,...Ji._options.headers},Fn={abortSignal:Ji._pollAbort.signal,headers:Ki,timeout:1e5,withCredentials:Ji._options.withCredentials};Xt===ne.Binary&&(Fn.responseType="arraybuffer");const oi=`${Bn}&_=${Date.now()}`;Ji._logger.log(M.Trace,`(LongPolling transport) polling: ${oi}.`);const It=yield Ji._httpClient.get(oi,Fn);200!==It.statusCode?(Ji._logger.log(M.Error,`(LongPolling transport) Unexpected response code: ${It.statusCode}.`),Ji._closeError=new _(It.statusText||"",It.statusCode),Ji._running=!1):Ji._running=!0,Ji._receiving=Ji._poll(Ji._url,Fn)})()}_poll(Bn,Xt){var Ji=this;return(0,e.Z)(function*(){try{for(;Ji._running;)try{const En=`${Bn}&_=${Date.now()}`;Ji._logger.log(M.Trace,`(LongPolling transport) polling: ${En}.`);const un=yield Ji._httpClient.get(En,Xt);204===un.statusCode?(Ji._logger.log(M.Information,"(LongPolling transport) Poll terminated by server."),Ji._running=!1):200!==un.statusCode?(Ji._logger.log(M.Error,`(LongPolling transport) Unexpected response code: ${un.statusCode}.`),Ji._closeError=new _(un.statusText||"",un.statusCode),Ji._running=!1):un.content?(Ji._logger.log(M.Trace,`(LongPolling transport) data received. ${L(un.content,Ji._options.logMessageContent)}.`),Ji.onreceive&&Ji.onreceive(un.content)):Ji._logger.log(M.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(En){Ji._running?En instanceof C?Ji._logger.log(M.Trace,"(LongPolling transport) Poll timed out, reissuing."):(Ji._closeError=En,Ji._running=!1):Ji._logger.log(M.Trace,`(LongPolling transport) Poll errored after shutdown: ${En.message}`)}}finally{Ji._logger.log(M.Trace,"(LongPolling transport) Polling complete."),Ji.pollAborted||Ji._raiseOnClose()}})()}send(Bn){var Xt=this;return(0,e.Z)(function*(){return Xt._running?P(Xt._logger,"LongPolling",Xt._httpClient,Xt._url,Bn,Xt._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){var Bn=this;return(0,e.Z)(function*(){Bn._logger.log(M.Trace,"(LongPolling transport) Stopping polling."),Bn._running=!1,Bn._pollAbort.abort();try{yield Bn._receiving,Bn._logger.log(M.Trace,`(LongPolling transport) sending DELETE request to ${Bn._url}.`);const Xt={},[Ji,En]=X();Xt[Ji]=En;const un={headers:{...Xt,...Bn._options.headers},timeout:Bn._options.timeout,withCredentials:Bn._options.withCredentials};yield Bn._httpClient.delete(Bn._url,un),Bn._logger.log(M.Trace,"(LongPolling transport) DELETE request sent.")}finally{Bn._logger.log(M.Trace,"(LongPolling transport) Stop finished."),Bn._raiseOnClose()}})()}_raiseOnClose(){if(this.onclose){let Bn="(LongPolling transport) Firing onclose event.";this._closeError&&(Bn+=" Error: "+this._closeError),this._logger.log(M.Trace,Bn),this.onclose(this._closeError)}}}class Ce{constructor(Bn,Xt,Ji,En){this._httpClient=Bn,this._accessToken=Xt,this._logger=Ji,this._options=En,this.onreceive=null,this.onclose=null}connect(Bn,Xt){var Ji=this;return(0,e.Z)(function*(){return b.isRequired(Bn,"url"),b.isRequired(Xt,"transferFormat"),b.isIn(Xt,ne,"transferFormat"),Ji._logger.log(M.Trace,"(SSE transport) Connecting."),Ji._url=Bn,Ji._accessToken&&(Bn+=(Bn.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(Ji._accessToken)}`),new Promise((En,un)=>{let Fn,Ki=!1;if(Xt===ne.Text){if(I.isBrowser||I.isWebWorker)Fn=new Ji._options.EventSource(Bn,{withCredentials:Ji._options.withCredentials});else{const oi=Ji._httpClient.getCookieString(Bn),It={};It.Cookie=oi;const[Bt,xt]=X();It[Bt]=xt,Fn=new Ji._options.EventSource(Bn,{withCredentials:Ji._options.withCredentials,headers:{...It,...Ji._options.headers}})}try{Fn.onmessage=oi=>{if(Ji.onreceive)try{Ji._logger.log(M.Trace,`(SSE transport) data received. ${L(oi.data,Ji._options.logMessageContent)}.`),Ji.onreceive(oi.data)}catch(It){return void Ji._close(It)}},Fn.onerror=oi=>{Ki?Ji._close():un(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},Fn.onopen=()=>{Ji._logger.log(M.Information,`SSE connected to ${Ji._url}`),Ji._eventSource=Fn,Ki=!0,En()}}catch(oi){return void un(oi)}}else un(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})})()}send(Bn){var Xt=this;return(0,e.Z)(function*(){return Xt._eventSource?P(Xt._logger,"SSE",Xt._httpClient,Xt._url,Bn,Xt._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){return this._close(),Promise.resolve()}_close(Bn){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(Bn))}}class Te{constructor(Bn,Xt,Ji,En,un,Ki){this._logger=Ji,this._accessTokenFactory=Xt,this._logMessageContent=En,this._webSocketConstructor=un,this._httpClient=Bn,this.onreceive=null,this.onclose=null,this._headers=Ki}connect(Bn,Xt){var Ji=this;return(0,e.Z)(function*(){let En;return b.isRequired(Bn,"url"),b.isRequired(Xt,"transferFormat"),b.isIn(Xt,ne,"transferFormat"),Ji._logger.log(M.Trace,"(WebSockets transport) Connecting."),Ji._accessTokenFactory&&(En=yield Ji._accessTokenFactory()),new Promise((un,Ki)=>{let Fn;Bn=Bn.replace(/^http/,"ws");const oi=Ji._httpClient.getCookieString(Bn);let It=!1;if(I.isNode||I.isReactNative){const Bt={},[xt,wt]=X();Bt[xt]=wt,En&&(Bt[u.Authorization]=`Bearer ${En}`),oi&&(Bt[u.Cookie]=oi),Fn=new Ji._webSocketConstructor(Bn,void 0,{headers:{...Bt,...Ji._headers}})}else En&&(Bn+=(Bn.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(En)}`);Fn||(Fn=new Ji._webSocketConstructor(Bn)),Xt===ne.Binary&&(Fn.binaryType="arraybuffer"),Fn.onopen=Bt=>{Ji._logger.log(M.Information,`WebSocket connected to ${Bn}.`),Ji._webSocket=Fn,It=!0,un()},Fn.onerror=Bt=>{let xt=null;xt=typeof ErrorEvent<"u"&&Bt instanceof ErrorEvent?Bt.error:"There was an error with the transport",Ji._logger.log(M.Information,`(WebSockets transport) ${xt}.`)},Fn.onmessage=Bt=>{if(Ji._logger.log(M.Trace,`(WebSockets transport) data received. ${L(Bt.data,Ji._logMessageContent)}.`),Ji.onreceive)try{Ji.onreceive(Bt.data)}catch(xt){return void Ji._close(xt)}},Fn.onclose=Bt=>{if(It)Ji._close(Bt);else{let xt=null;xt=typeof ErrorEvent<"u"&&Bt instanceof ErrorEvent?Bt.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",Ki(new Error(xt))}}})})()}send(Bn){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(M.Trace,`(WebSockets transport) sending data. ${L(Bn,this._logMessageContent)}.`),this._webSocket.send(Bn),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(Bn){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(M.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this._isCloseEvent(Bn)||!1!==Bn.wasClean&&1e3===Bn.code?Bn instanceof Error?this.onclose(Bn):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${Bn.code} (${Bn.reason||"no reason given"}).`)))}_isCloseEvent(Bn){return Bn&&"boolean"==typeof Bn.wasClean&&"number"==typeof Bn.code}}class fe{constructor(Bn,Xt={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,b.isRequired(Bn,"url"),this._logger=function U(xo){return void 0===xo?new K(M.Information):null===xo?p.instance:void 0!==xo.log?xo:new K(xo)}(Xt.logger),this.baseUrl=this._resolveUrl(Bn),(Xt=Xt||{}).logMessageContent=void 0!==Xt.logMessageContent&&Xt.logMessageContent,"boolean"!=typeof Xt.withCredentials&&void 0!==Xt.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");Xt.withCredentials=void 0===Xt.withCredentials||Xt.withCredentials,Xt.timeout=void 0===Xt.timeout?1e5:Xt.timeout;let Ji=null,En=null;if(I.isNode){const un=require;Ji=un("ws"),En=un("eventsource")}!I.isNode&&typeof WebSocket<"u"&&!Xt.WebSocket?Xt.WebSocket=WebSocket:I.isNode&&!Xt.WebSocket&&Ji&&(Xt.WebSocket=Ji),!I.isNode&&typeof EventSource<"u"&&!Xt.EventSource?Xt.EventSource=EventSource:I.isNode&&!Xt.EventSource&&typeof En<"u"&&(Xt.EventSource=En),this._httpClient=new A(Xt.httpClient||new q(this._logger),Xt.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=Xt,this.onreceive=null,this.onclose=null}start(Bn){var Xt=this;return(0,e.Z)(function*(){if(b.isIn(Bn=Bn||ne.Binary,ne,"transferFormat"),Xt._logger.log(M.Debug,`Starting connection with transfer format '${ne[Bn]}'.`),"Disconnected"!==Xt._connectionState)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(Xt._connectionState="Connecting",Xt._startInternalPromise=Xt._startInternal(Bn),yield Xt._startInternalPromise,"Disconnecting"===Xt._connectionState){const Ji="Failed to start the HttpConnection before stop() was called.";return Xt._logger.log(M.Error,Ji),yield Xt._stopPromise,Promise.reject(new R(Ji))}if("Connected"!==Xt._connectionState){const Ji="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return Xt._logger.log(M.Error,Ji),Promise.reject(new R(Ji))}Xt._connectionStarted=!0})()}send(Bn){return"Connected"!==this._connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new Oe(this.transport)),this._sendQueue.send(Bn))}stop(Bn){var Xt=this;return(0,e.Z)(function*(){return"Disconnected"===Xt._connectionState?(Xt._logger.log(M.Debug,`Call to HttpConnection.stop(${Bn}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===Xt._connectionState?(Xt._logger.log(M.Debug,`Call to HttpConnection.stop(${Bn}) ignored because the connection is already in the disconnecting state.`),Xt._stopPromise):(Xt._connectionState="Disconnecting",Xt._stopPromise=new Promise(Ji=>{Xt._stopPromiseResolver=Ji}),yield Xt._stopInternal(Bn),void(yield Xt._stopPromise))})()}_stopInternal(Bn){var Xt=this;return(0,e.Z)(function*(){Xt._stopError=Bn;try{yield Xt._startInternalPromise}catch{}if(Xt.transport){try{yield Xt.transport.stop()}catch(Ji){Xt._logger.log(M.Error,`HttpConnection.transport.stop() threw error '${Ji}'.`),Xt._stopConnection()}Xt.transport=void 0}else Xt._logger.log(M.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")})()}_startInternal(Bn){var Xt=this;return(0,e.Z)(function*(){let Ji=Xt.baseUrl;Xt._accessTokenFactory=Xt._options.accessTokenFactory,Xt._httpClient._accessTokenFactory=Xt._accessTokenFactory;try{if(Xt._options.skipNegotiation){if(Xt._options.transport!==se.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");Xt.transport=Xt._constructTransport(se.WebSockets),yield Xt._startTransport(Ji,Bn)}else{let En=null,un=0;do{if(En=yield Xt._getNegotiationResponse(Ji),"Disconnecting"===Xt._connectionState||"Disconnected"===Xt._connectionState)throw new R("The connection was stopped during negotiation.");if(En.error)throw new Error(En.error);if(En.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(En.url&&(Ji=En.url),En.accessToken){const Ki=En.accessToken;Xt._accessTokenFactory=()=>Ki,Xt._httpClient._accessToken=Ki,Xt._httpClient._accessTokenFactory=void 0}un++}while(En.url&&un<100);if(100===un&&En.url)throw new Error("Negotiate redirection limit exceeded.");yield Xt._createTransport(Ji,Xt._options.transport,En,Bn)}Xt.transport instanceof ge&&(Xt.features.inherentKeepAlive=!0),"Connecting"===Xt._connectionState&&(Xt._logger.log(M.Debug,"The HttpConnection connected successfully."),Xt._connectionState="Connected")}catch(En){return Xt._logger.log(M.Error,"Failed to start the connection: "+En),Xt._connectionState="Disconnected",Xt.transport=void 0,Xt._stopPromiseResolver(),Promise.reject(En)}})()}_getNegotiationResponse(Bn){var Xt=this;return(0,e.Z)(function*(){const Ji={},[En,un]=X();Ji[En]=un;const Ki=Xt._resolveNegotiateUrl(Bn);Xt._logger.log(M.Debug,`Sending negotiation request: ${Ki}.`);try{const Fn=yield Xt._httpClient.post(Ki,{content:"",headers:{...Ji,...Xt._options.headers},timeout:Xt._options.timeout,withCredentials:Xt._options.withCredentials});if(200!==Fn.statusCode)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${Fn.statusCode}'`));const oi=JSON.parse(Fn.content);return(!oi.negotiateVersion||oi.negotiateVersion<1)&&(oi.connectionToken=oi.connectionId),oi}catch(Fn){let oi="Failed to complete negotiation with the server: "+Fn;return Fn instanceof _&&404===Fn.statusCode&&(oi+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),Xt._logger.log(M.Error,oi),Promise.reject(new w(oi))}})()}_createConnectUrl(Bn,Xt){return Xt?Bn+(-1===Bn.indexOf("?")?"?":"&")+`id=${Xt}`:Bn}_createTransport(Bn,Xt,Ji,En){var un=this;return(0,e.Z)(function*(){let Ki=un._createConnectUrl(Bn,Ji.connectionToken);if(un._isITransport(Xt))return un._logger.log(M.Debug,"Connection was provided an instance of ITransport, using that directly."),un.transport=Xt,yield un._startTransport(Ki,En),void(un.connectionId=Ji.connectionId);const Fn=[],oi=Ji.availableTransports||[];let It=Ji;for(const Bt of oi){const xt=un._resolveTransportOrError(Bt,Xt,En);if(xt instanceof Error)Fn.push(`${Bt.transport} failed:`),Fn.push(xt);else if(un._isITransport(xt)){if(un.transport=xt,!It){try{It=yield un._getNegotiationResponse(Bn)}catch(wt){return Promise.reject(wt)}Ki=un._createConnectUrl(Bn,It.connectionToken)}try{return yield un._startTransport(Ki,En),void(un.connectionId=It.connectionId)}catch(wt){if(un._logger.log(M.Error,`Failed to start the transport '${Bt.transport}': ${wt}`),It=void 0,Fn.push(new k(`${Bt.transport} failed: ${wt}`,se[Bt.transport])),"Connecting"!==un._connectionState){const Mt="Failed to select transport before stop() was called.";return un._logger.log(M.Debug,Mt),Promise.reject(new R(Mt))}}}}return Promise.reject(Fn.length>0?new g(`Unable to connect to the server with any of the available transports. ${Fn.join(" ")}`,Fn):new Error("None of the transports supported by the client are supported by the server."))})()}_constructTransport(Bn){switch(Bn){case se.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Te(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case se.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Ce(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case se.LongPolling:return new ge(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${Bn}.`)}}_startTransport(Bn,Xt){return this.transport.onreceive=this.onreceive,this.transport.onclose=Ji=>this._stopConnection(Ji),this.transport.connect(Bn,Xt)}_resolveTransportOrError(Bn,Xt,Ji){const En=se[Bn.transport];if(null==En)return this._logger.log(M.Debug,`Skipping transport '${Bn.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${Bn.transport}' because it is not supported by this client.`);if(!function xe(xo,Bn){return!xo||0!=(Bn&xo)}(Xt,En))return this._logger.log(M.Debug,`Skipping transport '${se[En]}' because it was disabled by the client.`),new f(`'${se[En]}' is disabled by the client.`,En);if(!(Bn.transferFormats.map(Ki=>ne[Ki]).indexOf(Ji)>=0))return this._logger.log(M.Debug,`Skipping transport '${se[En]}' because it does not support the requested transfer format '${ne[Ji]}'.`),new Error(`'${se[En]}' does not support ${ne[Ji]}.`);if(En===se.WebSockets&&!this._options.WebSocket||En===se.ServerSentEvents&&!this._options.EventSource)return this._logger.log(M.Debug,`Skipping transport '${se[En]}' because it is not supported in your environment.'`),new x(`'${se[En]}' is not supported in your environment.`,En);this._logger.log(M.Debug,`Selecting transport '${se[En]}'.`);try{return this._constructTransport(En)}catch(Ki){return Ki}}_isITransport(Bn){return Bn&&"object"==typeof Bn&&"connect"in Bn}_stopConnection(Bn){if(this._logger.log(M.Debug,`HttpConnection.stopConnection(${Bn}) called while in state ${this._connectionState}.`),this.transport=void 0,Bn=this._stopError||Bn,this._stopError=void 0,"Disconnected"!==this._connectionState){if("Connecting"===this._connectionState)throw this._logger.log(M.Warning,`Call to HttpConnection.stopConnection(${Bn}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${Bn}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this._connectionState&&this._stopPromiseResolver(),Bn?this._logger.log(M.Error,`Connection disconnected with error '${Bn}'.`):this._logger.log(M.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(Xt=>{this._logger.log(M.Error,`TransportSendQueue.stop() threw error '${Xt}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(Bn)}catch(Xt){this._logger.log(M.Error,`HttpConnection.onclose(${Bn}) threw error '${Xt}'.`)}}}else this._logger.log(M.Debug,`Call to HttpConnection.stopConnection(${Bn}) was ignored because the connection is already in the disconnected state.`)}_resolveUrl(Bn){if(0===Bn.lastIndexOf("https://",0)||0===Bn.lastIndexOf("http://",0))return Bn;if(!I.isBrowser)throw new Error(`Cannot resolve '${Bn}'.`);const Xt=window.document.createElement("a");return Xt.href=Bn,this._logger.log(M.Information,`Normalizing '${Bn}' to '${Xt.href}'.`),Xt.href}_resolveNegotiateUrl(Bn){const Xt=Bn.indexOf("?");let Ji=Bn.substring(0,-1===Xt?Bn.length:Xt);return"/"!==Ji[Ji.length-1]&&(Ji+="/"),Ji+="negotiate",Ji+=-1===Xt?"":Bn.substring(Xt),-1===Ji.indexOf("negotiateVersion")&&(Ji+=-1===Xt?"?":"&",Ji+="negotiateVersion="+this._negotiateVersion),Ji}}class Oe{constructor(Bn){this._transport=Bn,this._buffer=[],this._executing=!0,this._sendBufferedData=new Le,this._transportResult=new Le,this._sendLoopPromise=this._sendLoop()}send(Bn){return this._bufferData(Bn),this._transportResult||(this._transportResult=new Le),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(Bn){if(this._buffer.length&&typeof this._buffer[0]!=typeof Bn)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof Bn}`);this._buffer.push(Bn),this._sendBufferedData.resolve()}_sendLoop(){var Bn=this;return(0,e.Z)(function*(){for(;;){if(yield Bn._sendBufferedData.promise,!Bn._executing){Bn._transportResult&&Bn._transportResult.reject("Connection stopped.");break}Bn._sendBufferedData=new Le;const Xt=Bn._transportResult;Bn._transportResult=void 0;const Ji="string"==typeof Bn._buffer[0]?Bn._buffer.join(""):Oe._concatBuffers(Bn._buffer);Bn._buffer.length=0;try{yield Bn._transport.send(Ji),Xt.resolve()}catch(En){Xt.reject(En)}}})()}static _concatBuffers(Bn){const Xt=Bn.map(un=>un.byteLength).reduce((un,Ki)=>un+Ki),Ji=new Uint8Array(Xt);let En=0;for(const un of Bn)Ji.set(new Uint8Array(un),En),En+=un.byteLength;return Ji.buffer}}class Le{constructor(){this.promise=new Promise((Bn,Xt)=>[this._resolver,this._rejecter]=[Bn,Xt])}resolve(){this._resolver()}reject(Bn){this._rejecter(Bn)}}class Gt{static write(Bn){return`${Bn}${Gt.RecordSeparator}`}static parse(Bn){if(Bn[Bn.length-1]!==Gt.RecordSeparator)throw new Error("Message is incomplete.");const Xt=Bn.split(Gt.RecordSeparator);return Xt.pop(),Xt}}Gt.RecordSeparatorCode=30,Gt.RecordSeparator=String.fromCharCode(Gt.RecordSeparatorCode);class Ut{writeHandshakeRequest(Bn){return Gt.write(JSON.stringify(Bn))}parseHandshakeResponse(Bn){let Xt,Ji;if(F(Bn)){const Fn=new Uint8Array(Bn),oi=Fn.indexOf(Gt.RecordSeparatorCode);if(-1===oi)throw new Error("Message is incomplete.");const It=oi+1;Xt=String.fromCharCode.apply(null,Array.prototype.slice.call(Fn.slice(0,It))),Ji=Fn.byteLength>It?Fn.slice(It).buffer:null}else{const Fn=Bn,oi=Fn.indexOf(Gt.RecordSeparator);if(-1===oi)throw new Error("Message is incomplete.");const It=oi+1;Xt=Fn.substring(0,It),Ji=Fn.length>It?Fn.substring(It):null}const En=Gt.parse(Xt),un=JSON.parse(En[0]);if(un.type)throw new Error("Expected a handshake response from the server.");return[Ji,un]}}var An=function(xo){return xo[xo.Invocation=1]="Invocation",xo[xo.StreamItem=2]="StreamItem",xo[xo.Completion=3]="Completion",xo[xo.StreamInvocation=4]="StreamInvocation",xo[xo.CancelInvocation=5]="CancelInvocation",xo[xo.Ping=6]="Ping",xo[xo.Close=7]="Close",xo}(An||{});class $n{constructor(){this.observers=[]}next(Bn){for(const Xt of this.observers)Xt.next(Bn)}error(Bn){for(const Xt of this.observers)Xt.error&&Xt.error(Bn)}complete(){for(const Bn of this.observers)Bn.complete&&Bn.complete()}subscribe(Bn){return this.observers.push(Bn),new V(this,Bn)}}var ut=function(xo){return xo.Disconnected="Disconnected",xo.Connecting="Connecting",xo.Connected="Connected",xo.Disconnecting="Disconnecting",xo.Reconnecting="Reconnecting",xo}(ut||{});class Wt{constructor(Bn,Xt,Ji,En){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(M.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://docs.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},b.isRequired(Bn,"connection"),b.isRequired(Xt,"logger"),b.isRequired(Ji,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this._logger=Xt,this._protocol=Ji,this.connection=Bn,this._reconnectPolicy=En,this._handshakeProtocol=new Ut,this.connection.onreceive=un=>this._processIncomingData(un),this.connection.onclose=un=>this._connectionClosed(un),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=ut.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:An.Ping})}static create(Bn,Xt,Ji,En){return new Wt(Bn,Xt,Ji,En)}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(Bn){if(this._connectionState!==ut.Disconnected&&this._connectionState!==ut.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!Bn)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=Bn}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}_startWithStateTransitions(){var Bn=this;return(0,e.Z)(function*(){if(Bn._connectionState!==ut.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));Bn._connectionState=ut.Connecting,Bn._logger.log(M.Debug,"Starting HubConnection.");try{yield Bn._startInternal(),I.isBrowser&&window.document.addEventListener("freeze",Bn._freezeEventListener),Bn._connectionState=ut.Connected,Bn._connectionStarted=!0,Bn._logger.log(M.Debug,"HubConnection connected successfully.")}catch(Xt){return Bn._connectionState=ut.Disconnected,Bn._logger.log(M.Debug,`HubConnection failed to start successfully because of error '${Xt}'.`),Promise.reject(Xt)}})()}_startInternal(){var Bn=this;return(0,e.Z)(function*(){Bn._stopDuringStartError=void 0,Bn._receivedHandshakeResponse=!1;const Xt=new Promise((Ji,En)=>{Bn._handshakeResolver=Ji,Bn._handshakeRejecter=En});yield Bn.connection.start(Bn._protocol.transferFormat);try{const Ji={protocol:Bn._protocol.name,version:Bn._protocol.version};if(Bn._logger.log(M.Debug,"Sending handshake request."),yield Bn._sendMessage(Bn._handshakeProtocol.writeHandshakeRequest(Ji)),Bn._logger.log(M.Information,`Using HubProtocol '${Bn._protocol.name}'.`),Bn._cleanupTimeout(),Bn._resetTimeoutPeriod(),Bn._resetKeepAliveInterval(),yield Xt,Bn._stopDuringStartError)throw Bn._stopDuringStartError;Bn.connection.features.inherentKeepAlive||(yield Bn._sendMessage(Bn._cachedPingMessage))}catch(Ji){throw Bn._logger.log(M.Debug,`Hub handshake failed with error '${Ji}' during start(). Stopping HubConnection.`),Bn._cleanupTimeout(),Bn._cleanupPingTimer(),yield Bn.connection.stop(Ji),Ji}})()}stop(){var Bn=this;return(0,e.Z)(function*(){const Xt=Bn._startPromise;Bn._stopPromise=Bn._stopInternal(),yield Bn._stopPromise;try{yield Xt}catch{}})()}_stopInternal(Bn){return this._connectionState===ut.Disconnected?(this._logger.log(M.Debug,`Call to HubConnection.stop(${Bn}) ignored because it is already in the disconnected state.`),Promise.resolve()):this._connectionState===ut.Disconnecting?(this._logger.log(M.Debug,`Call to HttpConnection.stop(${Bn}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState=ut.Disconnecting,this._logger.log(M.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(M.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=Bn||new R("The connection was stopped before the hub handshake could complete."),this.connection.stop(Bn)))}stream(Bn,...Xt){const[Ji,En]=this._replaceStreamingParams(Xt),un=this._createStreamInvocation(Bn,Xt,En);let Ki;const Fn=new $n;return Fn.cancelCallback=()=>{const oi=this._createCancelInvocation(un.invocationId);return delete this._callbacks[un.invocationId],Ki.then(()=>this._sendWithProtocol(oi))},this._callbacks[un.invocationId]=(oi,It)=>{It?Fn.error(It):oi&&(oi.type===An.Completion?oi.error?Fn.error(new Error(oi.error)):Fn.complete():Fn.next(oi.item))},Ki=this._sendWithProtocol(un).catch(oi=>{Fn.error(oi),delete this._callbacks[un.invocationId]}),this._launchStreams(Ji,Ki),Fn}_sendMessage(Bn){return this._resetKeepAliveInterval(),this.connection.send(Bn)}_sendWithProtocol(Bn){return this._sendMessage(this._protocol.writeMessage(Bn))}send(Bn,...Xt){const[Ji,En]=this._replaceStreamingParams(Xt),un=this._sendWithProtocol(this._createInvocation(Bn,Xt,!0,En));return this._launchStreams(Ji,un),un}invoke(Bn,...Xt){const[Ji,En]=this._replaceStreamingParams(Xt),un=this._createInvocation(Bn,Xt,!1,En);return new Promise((Fn,oi)=>{this._callbacks[un.invocationId]=(Bt,xt)=>{xt?oi(xt):Bt&&(Bt.type===An.Completion?Bt.error?oi(new Error(Bt.error)):Fn(Bt.result):oi(new Error(`Unexpected message type: ${Bt.type}`)))};const It=this._sendWithProtocol(un).catch(Bt=>{oi(Bt),delete this._callbacks[un.invocationId]});this._launchStreams(Ji,It)})}on(Bn,Xt){!Bn||!Xt||(Bn=Bn.toLowerCase(),this._methods[Bn]||(this._methods[Bn]=[]),-1===this._methods[Bn].indexOf(Xt)&&this._methods[Bn].push(Xt))}off(Bn,Xt){if(!Bn)return;Bn=Bn.toLowerCase();const Ji=this._methods[Bn];if(Ji)if(Xt){const En=Ji.indexOf(Xt);-1!==En&&(Ji.splice(En,1),0===Ji.length&&delete this._methods[Bn])}else delete this._methods[Bn]}onclose(Bn){Bn&&this._closedCallbacks.push(Bn)}onreconnecting(Bn){Bn&&this._reconnectingCallbacks.push(Bn)}onreconnected(Bn){Bn&&this._reconnectedCallbacks.push(Bn)}_processIncomingData(Bn){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(Bn=this._processHandshakeResponse(Bn),this._receivedHandshakeResponse=!0),Bn){const Xt=this._protocol.parseMessages(Bn,this._logger);for(const Ji of Xt)switch(Ji.type){case An.Invocation:this._invokeClientMethod(Ji);break;case An.StreamItem:case An.Completion:{const En=this._callbacks[Ji.invocationId];if(En){Ji.type===An.Completion&&delete this._callbacks[Ji.invocationId];try{En(Ji)}catch(un){this._logger.log(M.Error,`Stream callback threw error: ${de(un)}`)}}break}case An.Ping:break;case An.Close:{this._logger.log(M.Information,"Close message received from server.");const En=Ji.error?new Error("Server returned an error on close: "+Ji.error):void 0;!0===Ji.allowReconnect?this.connection.stop(En):this._stopPromise=this._stopInternal(En);break}default:this._logger.log(M.Warning,`Invalid message type: ${Ji.type}.`)}}this._resetTimeoutPeriod()}_processHandshakeResponse(Bn){let Xt,Ji;try{[Ji,Xt]=this._handshakeProtocol.parseHandshakeResponse(Bn)}catch(En){const un="Error parsing handshake response: "+En;this._logger.log(M.Error,un);const Ki=new Error(un);throw this._handshakeRejecter(Ki),Ki}if(Xt.error){const En="Server returned handshake error: "+Xt.error;this._logger.log(M.Error,En);const un=new Error(En);throw this._handshakeRejecter(un),un}return this._logger.log(M.Debug,"Server handshake complete."),this._handshakeResolver(),Ji}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){var Bn=this;if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),void 0!==this._pingServerHandle))){let Xt=this._nextKeepAlive-(new Date).getTime();Xt<0&&(Xt=0),this._pingServerHandle=setTimeout((0,e.Z)(function*(){if(Bn._connectionState===ut.Connected)try{yield Bn._sendMessage(Bn._cachedPingMessage)}catch{Bn._cleanupPingTimer()}}),Xt)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}_invokeClientMethod(Bn){var Xt=this;return(0,e.Z)(function*(){const Ji=Bn.target.toLowerCase(),En=Xt._methods[Ji];if(!En)return Xt._logger.log(M.Warning,`No client method with the name '${Ji}' found.`),void(Bn.invocationId&&(Xt._logger.log(M.Warning,`No result given for '${Ji}' method and invocation ID '${Bn.invocationId}'.`),yield Xt._sendWithProtocol(Xt._createCompletionMessage(Bn.invocationId,"Client didn't provide a result.",null))));const un=En.slice(),Ki=!!Bn.invocationId;let Fn,oi,It;for(const Bt of un)try{const xt=Fn;Fn=yield Bt.apply(Xt,Bn.arguments),Ki&&Fn&&xt&&(Xt._logger.log(M.Error,`Multiple results provided for '${Ji}'. Sending error to server.`),It=Xt._createCompletionMessage(Bn.invocationId,"Client provided multiple results.",null)),oi=void 0}catch(xt){oi=xt,Xt._logger.log(M.Error,`A callback for the method '${Ji}' threw error '${xt}'.`)}It?yield Xt._sendWithProtocol(It):Ki?(oi?It=Xt._createCompletionMessage(Bn.invocationId,`${oi}`,null):void 0!==Fn?It=Xt._createCompletionMessage(Bn.invocationId,null,Fn):(Xt._logger.log(M.Warning,`No result given for '${Ji}' method and invocation ID '${Bn.invocationId}'.`),It=Xt._createCompletionMessage(Bn.invocationId,"Client didn't provide a result.",null)),yield Xt._sendWithProtocol(It)):Fn&&Xt._logger.log(M.Error,`Result given for '${Ji}' method but server is not expecting a result.`)})()}_connectionClosed(Bn){this._logger.log(M.Debug,`HubConnection.connectionClosed(${Bn}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||Bn||new R("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(Bn||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===ut.Disconnecting?this._completeClose(Bn):this._connectionState===ut.Connected&&this._reconnectPolicy?this._reconnect(Bn):this._connectionState===ut.Connected&&this._completeClose(Bn)}_completeClose(Bn){if(this._connectionStarted){this._connectionState=ut.Disconnected,this._connectionStarted=!1,I.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(Xt=>Xt.apply(this,[Bn]))}catch(Xt){this._logger.log(M.Error,`An onclose callback called with error '${Bn}' threw error '${Xt}'.`)}}}_reconnect(Bn){var Xt=this;return(0,e.Z)(function*(){const Ji=Date.now();let En=0,un=void 0!==Bn?Bn:new Error("Attempting to reconnect due to a unknown error."),Ki=Xt._getNextRetryDelay(En++,0,un);if(null===Ki)return Xt._logger.log(M.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void Xt._completeClose(Bn);if(Xt._connectionState=ut.Reconnecting,Xt._logger.log(M.Information,Bn?`Connection reconnecting because of error '${Bn}'.`:"Connection reconnecting."),0!==Xt._reconnectingCallbacks.length){try{Xt._reconnectingCallbacks.forEach(Fn=>Fn.apply(Xt,[Bn]))}catch(Fn){Xt._logger.log(M.Error,`An onreconnecting callback called with error '${Bn}' threw error '${Fn}'.`)}if(Xt._connectionState!==ut.Reconnecting)return void Xt._logger.log(M.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;null!==Ki;){if(Xt._logger.log(M.Information,`Reconnect attempt number ${En} will start in ${Ki} ms.`),yield new Promise(Fn=>{Xt._reconnectDelayHandle=setTimeout(Fn,Ki)}),Xt._reconnectDelayHandle=void 0,Xt._connectionState!==ut.Reconnecting)return void Xt._logger.log(M.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(yield Xt._startInternal(),Xt._connectionState=ut.Connected,Xt._logger.log(M.Information,"HubConnection reconnected successfully."),0!==Xt._reconnectedCallbacks.length)try{Xt._reconnectedCallbacks.forEach(Fn=>Fn.apply(Xt,[Xt.connection.connectionId]))}catch(Fn){Xt._logger.log(M.Error,`An onreconnected callback called with connectionId '${Xt.connection.connectionId}; threw error '${Fn}'.`)}return}catch(Fn){if(Xt._logger.log(M.Information,`Reconnect attempt failed because of error '${Fn}'.`),Xt._connectionState!==ut.Reconnecting)return Xt._logger.log(M.Debug,`Connection moved to the '${Xt._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(Xt._connectionState===ut.Disconnecting&&Xt._completeClose());un=Fn instanceof Error?Fn:new Error(Fn.toString()),Ki=Xt._getNextRetryDelay(En++,Date.now()-Ji,un)}}Xt._logger.log(M.Information,`Reconnect retries have been exhausted after ${Date.now()-Ji} ms and ${En} failed attempts. Connection disconnecting.`),Xt._completeClose()})()}_getNextRetryDelay(Bn,Xt,Ji){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:Xt,previousRetryCount:Bn,retryReason:Ji})}catch(En){return this._logger.log(M.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${Bn}, ${Xt}) threw error '${En}'.`),null}}_cancelCallbacksWithError(Bn){const Xt=this._callbacks;this._callbacks={},Object.keys(Xt).forEach(Ji=>{const En=Xt[Ji];try{En(null,Bn)}catch(un){this._logger.log(M.Error,`Stream 'error' callback called with '${Bn}' threw error: ${de(un)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(Bn,Xt,Ji,En){if(Ji)return 0!==En.length?{arguments:Xt,streamIds:En,target:Bn,type:An.Invocation}:{arguments:Xt,target:Bn,type:An.Invocation};{const un=this._invocationId;return this._invocationId++,0!==En.length?{arguments:Xt,invocationId:un.toString(),streamIds:En,target:Bn,type:An.Invocation}:{arguments:Xt,invocationId:un.toString(),target:Bn,type:An.Invocation}}}_launchStreams(Bn,Xt){if(0!==Bn.length){Xt||(Xt=Promise.resolve());for(const Ji in Bn)Bn[Ji].subscribe({complete:()=>{Xt=Xt.then(()=>this._sendWithProtocol(this._createCompletionMessage(Ji)))},error:En=>{let un;un=En instanceof Error?En.message:En&&En.toString?En.toString():"Unknown error",Xt=Xt.then(()=>this._sendWithProtocol(this._createCompletionMessage(Ji,un)))},next:En=>{Xt=Xt.then(()=>this._sendWithProtocol(this._createStreamItemMessage(Ji,En)))}})}}_replaceStreamingParams(Bn){const Xt=[],Ji=[];for(let En=0;En<Bn.length;En++){const un=Bn[En];if(this._isObservable(un)){const Ki=this._invocationId;this._invocationId++,Xt[Ki]=un,Ji.push(Ki.toString()),Bn.splice(En,1)}}return[Xt,Ji]}_isObservable(Bn){return Bn&&Bn.subscribe&&"function"==typeof Bn.subscribe}_createStreamInvocation(Bn,Xt,Ji){const En=this._invocationId;return this._invocationId++,0!==Ji.length?{arguments:Xt,invocationId:En.toString(),streamIds:Ji,target:Bn,type:An.StreamInvocation}:{arguments:Xt,invocationId:En.toString(),target:Bn,type:An.StreamInvocation}}_createCancelInvocation(Bn){return{invocationId:Bn,type:An.CancelInvocation}}_createStreamItemMessage(Bn,Xt){return{invocationId:Bn,item:Xt,type:An.StreamItem}}_createCompletionMessage(Bn,Xt,Ji){return Xt?{error:Xt,invocationId:Bn,type:An.Completion}:{invocationId:Bn,result:Ji,type:An.Completion}}}class sn{constructor(){this.name="json",this.version=1,this.transferFormat=ne.Text}parseMessages(Bn,Xt){if("string"!=typeof Bn)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!Bn)return[];null===Xt&&(Xt=p.instance);const Ji=Gt.parse(Bn),En=[];for(const un of Ji){const Ki=JSON.parse(un);if("number"!=typeof Ki.type)throw new Error("Invalid payload.");switch(Ki.type){case An.Invocation:this._isInvocationMessage(Ki);break;case An.StreamItem:this._isStreamItemMessage(Ki);break;case An.Completion:this._isCompletionMessage(Ki);break;case An.Ping:case An.Close:break;default:Xt.log(M.Information,"Unknown message type '"+Ki.type+"' ignored.");continue}En.push(Ki)}return En}writeMessage(Bn){return Gt.write(JSON.stringify(Bn))}_isInvocationMessage(Bn){this._assertNotEmptyString(Bn.target,"Invalid payload for Invocation message."),void 0!==Bn.invocationId&&this._assertNotEmptyString(Bn.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(Bn){if(this._assertNotEmptyString(Bn.invocationId,"Invalid payload for StreamItem message."),void 0===Bn.item)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(Bn){if(Bn.result&&Bn.error)throw new Error("Invalid payload for Completion message.");!Bn.result&&Bn.error&&this._assertNotEmptyString(Bn.error,"Invalid payload for Completion message."),this._assertNotEmptyString(Bn.invocationId,"Invalid payload for Completion message.")}_assertNotEmptyString(Bn,Xt){if("string"!=typeof Bn||""===Bn)throw new Error(Xt)}}const fn={trace:M.Trace,debug:M.Debug,info:M.Information,information:M.Information,warn:M.Warning,warning:M.Warning,error:M.Error,critical:M.Critical,none:M.None};class nn{configureLogging(Bn){if(b.isRequired(Bn,"logging"),function Mi(xo){return void 0!==xo.log}(Bn))this.logger=Bn;else if("string"==typeof Bn){const Xt=function yi(xo){const Bn=fn[xo.toLowerCase()];if(typeof Bn<"u")return Bn;throw new Error(`Unknown log level: ${xo}`)}(Bn);this.logger=new K(Xt)}else this.logger=new K(Bn);return this}withUrl(Bn,Xt){return b.isRequired(Bn,"url"),b.isNotEmpty(Bn,"url"),this.url=Bn,this.httpConnectionOptions="object"==typeof Xt?{...this.httpConnectionOptions,...Xt}:{...this.httpConnectionOptions,transport:Xt},this}withHubProtocol(Bn){return b.isRequired(Bn,"protocol"),this.protocol=Bn,this}withAutomaticReconnect(Bn){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=Bn?Array.isArray(Bn)?new l(Bn):Bn:new l,this}build(){const Bn=this.httpConnectionOptions||{};if(void 0===Bn.logger&&(Bn.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const Xt=new fe(this.url,Bn);return Wt.create(Xt,this.logger||p.instance,this.protocol||new sn,this.reconnectPolicy)}}var mi=i(65879),Eo=i(74187);let Ko=(()=>{class xo{constructor(Xt){this.us=Xt,this.signalRUrl=n.XL.settings.signalRUrl,this.onSMSRecevied=new o.X(null),this.onSMSSent=new o.X(null),this.onChatReceived=new o.X(null),this.onBackgroundCheckCallback=new o.X(null),this.onTaskCallback=new o.X(null),this.onTimeClockPropertyChange=new o.X(null),this.onTaskReceived=new o.X(null),this.onChangeTaskNotification=new o.X(null),this.hubConnection=(new nn).withUrl(this.signalRUrl).withAutomaticReconnect().configureLogging(M.Debug).build()}startHubConnection(){var Xt=this;return(0,e.Z)(function*(){Xt.hubConnection.start().then(()=>{Xt.us.isTokenValid&&(Xt.addToGroup(Xt.us.getTokenValueByKey("personId")),console.log("%cSignalR connection established. Status : "+Xt.hubConnection.state+" PersonId : "+Xt.us.getTokenValueByKey("personId"),"background:#66ebfa; color:#000 "))}).catch(Ji=>{Xt.us.isTokenValid&&console.log("%cSignalR connection unsuccessful. Status : "+Xt.hubConnection.state,"background:#66ebfa; color:#000 ")}),Xt.hubConnection.onreconnected(Ji=>{Xt.us.isTokenValid&&(Xt.addToGroup(Xt.us.getTokenValueByKey("personId")),console.log("%cSignalR OnReconnect() Status : "+Xt.hubConnection.state,"background:#66ebfa; color:#000 "))}),Xt.hubConnection.serverTimeoutInMilliseconds=12e4,Xt.notifyAll(),Xt.notify(),Xt.smsNotification(),Xt.emailNotification(),Xt.backgroundCheckNotification(),Xt.taskNotification(),Xt.timeClockPropertyNotification(),Xt.taskRecieved()})()}notifyAll(){this.hubConnection.on("sendToAll",Xt=>{this.us.callSnackBar((Xt.subject?Xt.subject+": ":"")+Xt.message,"info")})}smsNotification(){this.hubConnection.on("smsReceived",Xt=>{this.onSMSRecevied.next(Xt.message)}),this.hubConnection.on("smsSent",Xt=>{this.onSMSSent.next(Xt.message)})}chatNotification(){this.hubConnection.on("chatNotification",Xt=>{this.onChatReceived.next(Xt.message)})}notify(){this.hubConnection.on("send",Xt=>{this.showNotificationBottomRight(Xt)})}emailNotification(){this.hubConnection.on("emailReceived",Xt=>{this.showNotificationBottomRight(Xt)})}backgroundCheckNotification(){this.hubConnection.on("backgroundCheckCallback",Xt=>{this.onBackgroundCheckCallback.next(Xt)})}taskNotification(){this.hubConnection.on("taskCallback",Xt=>{this.onTaskCallback.next(Xt),console.log("Task SignalR received",Xt)})}showNotificationBottomRight(Xt){this.us.callSnackBar((Xt.subject?Xt.subject+": ":"")+Xt.message,null,{horizontalPosition:"right",verticalPosition:"bottom"})}addToGroup(Xt){console.log("%cInvoke AddToGroup.","background:#66ebfa; color:#000 "),this.hubConnection.invoke("JoinGroup",Xt).catch(Ji=>console.error(Ji)),console.log("%cInvoke AddToGroup Completed.","background:#66ebfa; color:#000 ")}removeFromGroup(Xt){this.hubConnection.invoke("RemoveFromGroup",Xt).catch(Ji=>console.error(Ji))}timeClockPropertyNotification(){this.hubConnection.on("timeClockProperty",Xt=>{"edited"==JSON.parse(Xt.message).data[0].detailType.toLowerCase()&&this.onTimeClockPropertyChange.next(Xt.message)})}taskRecieved(){this.hubConnection.on("taskCompleted",Xt=>{this.onTaskReceived.next(Xt.subject)})}static#e=this.\u0275fac=function(Ji){return new(Ji||xo)(mi.LFG(Eo.t))};static#t=this.\u0275prov=mi.Yz7({token:xo,factory:xo.\u0275fac,providedIn:"root"})}return xo})()},61371:(he,y,i)=>{"use strict";i.d(y,{R:()=>M});var e=i(15861),n=i(65619),o=i(78645),a=i(22096),l=i(7110),u=i(37398),d=i(59773),s=i(48180),A=i(69862),_=i(65879),C=i(6738),R=i(710),x=i(92534),f=i(64190),k=i(74187),w=i(22991),g=i(6593);let M=(()=>{class p{resolve(b,I){}constructor(b,I,L,D,F,P,O){this._webApiService=b,this._commonService=I,this._navigationService=L,this.route=D,this.utilityService=F,this.geo=P,this.title=O,this.personRole=new n.X(null),this.currentPersonRole=new n.X({}),this.applicationNavigation=new n.X(null),this.currentPersonApplication=new n.X({}),this.applicationData=new n.X({}),this.currentPersonDetail=new n.X({}),this.isSlideView=!1,this.onPrimaryContactInformationChange=new n.X(null),this.talentCreatedBehavior=new n.X(null),this.basePath=l.XL.settings.apiUrl+"Person/",this.apiUri=l.XL.settings.apiUrl+"Account/",this.personData={personId:0,parentNavigationId:0},this.personParams={personId:null,copyFromPersonId:null,firstName:null,middleName:null,lastName:null,sSN:null,title:null,mobile:null,mobileExtension:null,fax:null,phone:null,email:null,address1:null,address2:null,city:null,country:null,state:null,stateId:null,zipCode:null,addressType:null,addressTypeId:null,addressStatusListItem:null,addressStatusListItemId:null,addressNote:null,officeId:null,organizationId:null,personStatusListItem:null,personStatusListItemId:null,nodeList:null,applicationId:null,applicationList:null,roleId:null,roleList:null,cultureCode:null,personRoleListItemId:null,resume:null,dataSource:null,insertAddess:null,professionTypeListItemId:null,preferredName:null,sendEmail:null},this._unsubscribeAll=new o.x,this.personId=parseInt(this.utilityService.getTokenValueByKey("personId").toString())}get getTalentCreated(){return this.talentCreatedBehavior}set setTalentCreated(b){this.talentCreatedBehavior.next(b)}darkModeChange(b){document.body.classList.contains("theme-default")?(b.removeClass(document.body,"theme-default"),b.addClass(document.body,"theme-dark"),this.updateThemeColor("theme-dark")):(b.removeClass(document.body,"theme-dark"),b.addClass(document.body,"theme-default"),this.updateThemeColor("theme-default"))}updateThemeColor(b){this.utilityService.setLocalStorage("default-theme-mode",b);let I=this.getZenopleColorThemeName(b),L=this.applicationData.getValue().theme;if(L){let D=L.find(F=>F.listItem==I).listItemId;this._commonService.dynamicUpdate(null,null,"user",parseInt(this.utilityService.getTokenValueByKey("personId")),[{columnName:"themeListItemId",columnValue:D}],!1).subscribe(F=>{F&&this.utilityService.setLocalStorage("default-theme-mode",b)})}else this.utilityService.setLocalStorage("default-theme-mode",b)}getZenopleColorThemeName(b){let I="Light";switch(b){case"theme-default":I="Light";break;case"theme-dark":case"theme-blue-gray-dark":I="Dark";break;case"theme-yellow-light":I="LightAlternative";break;case"theme-pink-dark":I="DarkAlternative"}return I}getFuseColorThemeName(b){let I="theme-default";switch(b){case"Light":I="theme-default";break;case"Dark":I="theme-dark";break;case"LightAlternative":I="theme-yellow-light";break;case"Dark":I="theme-blue-gray-dark";break;case"DarkAlternative":I="theme-pink-dark"}return I}PersonList(){return this._webApiService.get(this.basePath+"PersonList")}getPerson(b){return this._webApiService.get(this.basePath+"Person",{json:JSON.stringify(b)})}personApplicationData(b){return this._webApiService.get(this.apiUri+"PersonApplicationData",{objects:b})}PersonNavigation(b,I){return null==I&&(I=!0),this._webApiService.get(this.apiUri+"PersonNavigation",{parentNavigationId:b,isExternal:I})}setPersonRole(b){this.personRole.next(b)}setPersonApplication(b,I){I&&localStorage.setItem("isNavigated",b.applicationId.toString()),this.currentPersonApplication.next(b),this.personId=parseInt(this.utilityService.getTokenValueByKey("personId").toString()),this._commonService.dynamicUpdate(null,null,"User",this.personId,[{columnName:"ApplicationId",columnValue:b.applicationId}]).subscribe(L=>{this.getPersonApplicationData('[{"name":"Role"},{"name":"Navigation","parentNavigationId":0,"applicationId":"'+b.applicationId+'","roleId":"'+b.roleId+'"}]',I)})}switchApplication(b,I){var L=this;const D={applicationId:b.applicationId,application:b.application,roleId:b.roleId,description:b.description,icon:b.icon,resource:b.resource};this.utilityService.setLocalStorage("currentApplicationId",b.applicationId.toString()),this.utilityService.setLocalStorage("currentRoleId",b.roleId.toString()),this._commonService.applicationRoleSwitch({currentRoleId:D.roleId,applicationId:D.applicationId}).subscribe(function(){var F=(0,e.Z)(function*(P){if(P?.error)L.utilityService.callSnackBar(P.error,"warning");else{if(yield L.getPersonApplicationData('[{"name":"Role"},{"name":"Navigation","parentNavigationId":0,"applicationId":"'+D.applicationId+'","roleId":"'+D.roleId+'"}]',I),I)localStorage.setItem("isNavigated",D.applicationId.toString());else{const O=L.applicationData.getValue();O.application.map(K=>K.isCurrent=0),O.application.find(K=>K.applicationId==D.applicationId).isCurrent=1,L.appData=O,L.title.setTitle("ZENOPLE - "+D.application);const U=JSON.parse(sessionStorage.getItem("headerParams"));U.applicationId=D.applicationId,U.roleId=D.roleId;const V=L.utilityService.getDeviceType();U.deviceType=V,sessionStorage.setItem("headerParams",JSON.stringify(U))}L.currentPersonApplication.next(D)}});return function(P){return F.apply(this,arguments)}}())}setCurrentPersonRole(b,I){this._commonService.dynamicUpdate(null,null,"PersonApplication",b.personApplicationId,[{columnName:"RoleId",columnValue:b.roleId}]).subscribe(L=>{this.getPersonApplicationData('{"name":"Navigation","parentNavigationId":0}',!1)}),this.currentPersonRole.next(b)}setPersonCulture(b){this.personId=parseInt(this.utilityService.getTokenValueByKey("personId").toString()),this._commonService.dynamicUpdate(null,null,"User",this.personId,[{columnName:"CultureId",columnValue:b}]).subscribe()}getPersonApplicationData(b,I){return new Promise(L=>{this.personApplicationData(b).subscribe(D=>{if(I){const F=D.navigation;this.route.navigate([],{skipLocationChange:!!this.isSlideView}).then(P=>{const U=[];["previousUrl","detailViewRootUrl","activeInternalNav","directory","directoryParam","tileSession","searchType","searchText"].forEach(V=>{const K=sessionStorage.getItem(V);K&&(U.push({key:V,value:K}),sessionStorage.removeItem(V))}),window.open("./"+F[0].children[0].url,"_blank"),U.forEach(V=>{sessionStorage.setItem(V.key,V.value)}),L(!0)})}else this.model=D.navigation,D.hasOwnProperty("navigation")&&(this.applicationNavigation.next(D.navigation),this.appData.navigation=D.navigation),this._navigationService.setNavigationModel(this.model),L(!0),this.route.navigate(["./"+this.model[0].children[0].url])})})}getInternalNavigation(b){return this.personApplicationData('{"name":"Navigation","parentNavigationId":"'+b+'"}').pipe((0,u.U)(I=>I.navigation))}createNewPerson(b){let I=new A.WM;I=I.append("Content-Type","angular/auto"),I=I.append("enctype","multipart/form-data"),I=I.append("Accept","application/json"),I=I.append("Authorization","Bearer "+this.utilityService.getLocalStorage("token")),I=I.append("HeaderParams",JSON.stringify({roleId:0,applicationId:0}));let L=new FormData;return null!=b.resumeFile&&L.append("file",b.resumeFile,b.resumeFileName),L.append("json",JSON.stringify(b.json)),this._webApiService.postWithOptions(this.basePath+"NewPerson",L,{headers:I})}getUserTypePerson(b){return this._webApiService.get(this.basePath+"UserTypePerson",{json:b})}getPersonEducation(b,I){return this._webApiService.get(this.basePath+"PersonEducation",{json:b,refresh:I},null,!1)}insertPersonEducation(b){return this._webApiService.post(this.basePath+"PersonEducation",{json:JSON.stringify(b,this.utilityService.dateReplacer)})}getEducationDegreeList(){return this._webApiService.get(this.basePath+"EducationDegreeList")}getPersonEmployment(b,I,L,D){return this._webApiService.get(this.basePath+"PersonEmployment",{personId:b,entity:I,entityId:L,refresh:D},null,!1)}insertPersonEmployment(b){return this._webApiService.post(this.basePath+"PersonEmployment",{json:JSON.stringify(b,this.utilityService.dateReplacer)})}updatePersonEmployment(b){return this._webApiService.post(this.basePath+"UpdatePersonEmployment",{json:JSON.stringify(b,this.utilityService.dateReplacer)})}getResumeDocument(b){return this._webApiService.get(this.basePath+"ResumeDocument",{json:JSON.stringify(b),refresh:!0})}getResumeHtml(b){return this._webApiService.get(this.basePath+"Resume",{json:JSON.stringify(b),refresh:!0})}insertResumeDocument(b){let I=new A.WM;return I=I.append("Content-Type","angular/auto"),I=I.append("enctype","multipart/form-data"),I=I.append("Accept","application/json"),I=I.append("Authorization","Bearer "+this.utilityService.getLocalStorage("token")),I=I.append("HeaderParams",JSON.stringify({roleId:0,applicationId:0})),this._webApiService.postWithOptions(this.basePath+"InsertResumeDocument",b,{headers:I})}deleteResumeDocument(b){return this._webApiService.post(this.basePath+"DeleteResumeDocument",{json:JSON.stringify(b)})}getPersonEeo(b,I){return this._webApiService.get(this.basePath+"PersonEeo",{personId:b,refresh:I},null,!1)}insertPersonEeo(b){return this._webApiService.post(this.basePath+"PersonEeo",{json:JSON.stringify(b,this.utilityService.dateReplacer)})}getPersonConviction(b,I){return this._webApiService.get(this.basePath+"PersonConviction",{json:b,refresh:I},null,!1)}insertPersonConviction(b){return this._webApiService.post(this.basePath+"PersonConviction",{json:JSON.stringify(b,this.utilityService.dateReplacer)})}getOfficeStaff(b,I){return this._webApiService.get(this.basePath+"OfficeStaff",{json:b,refresh:I},null,!0)}getWorkflow(b,I){return this._webApiService.get(l.XL.settings.apiUrl+"Workflow/Workflow",{json:b,refresh:!1},null,!0)}getEntityWorkflowCheck(b){return this._webApiService.get(l.XL.settings.apiUrl+"Workflow/EntityWorkflowCheck",{json:b},null,!0)}getApplicationIdByName(b){return this.applicationData.getValue().application.find(L=>L.application==b).applicationId}getContactOrganizationPersonRole(b){return this._webApiService.get(this.basePath+"ContactOrganizationPersonRole",{json:b})}insertOrganizationPersonRole(b){return this._webApiService.post(this.basePath+"OrganizationPersonRole",{json:b})}getPersonRoleListItem(b){return this._webApiService.get(this.basePath+"PersonRoleListItem",{json:b})}checkExistingContactRole(b){return this._webApiService.get(this.basePath+"ExistingContactRole",{json:b})}insertWorkInjuryPersonRole(b){return this._webApiService.post(l.XL.settings.apiUrl+"WorkInjury/WorkInjuryPersonRole",{json:b})}getWorkInjuryPersonRole(b){return this._webApiService.get(l.XL.settings.apiUrl+"WorkInjury/WorkInjuryPersonRole",{json:b})}getWorkInjuryPersonRoleCheck(b){return this._webApiService.get(l.XL.settings.apiUrl+"WorkInjury/WorkInjuryPersonRoleCheck",{json:b})}insertContactRole(b){return this._webApiService.post(l.XL.settings.apiUrl+"Common/ContactRole",{json:JSON.stringify(b)})}save(){if(this.personParams={},"add"==this.sharedData.mode?.toLowerCase()){if("officestaff"==this.sharedData.entity?.toLowerCase())this.personParams.personId=this.sharedData.personInfo.personId,this.personParams.copyFromPersonId=this.sharedData.personInfo.copyFromPersonId?this.sharedData.personInfo.copyFromPersonId:0,this.personParams.firstName=this.sharedData.personInfo.firstName,this.personParams.middleName=this.sharedData.personInfo.middleName?this.sharedData.personInfo.middleName:"",this.personParams.lastName=this.sharedData.personInfo.lastName,this.personParams.sSN=this.sharedData.personInfo.sSN,this.personParams.title=this.sharedData.personInfo.title,this.personParams.mobile=this.sharedData.personInfo.mobile,this.personParams.mobileExtension=this.sharedData.personInfo.mobileExtension,this.personParams.address1=this.sharedData.personInfo.address1,this.personParams.address2=this.sharedData.personInfo.address2?this.sharedData.personInfo.address2:"",this.personParams.city=this.sharedData.personInfo.city,this.personParams.email=this.sharedData.personInfo.email,this.personParams.countryId=this.sharedData.personInfo.countryId,this.personParams.stateId=this.sharedData.personInfo.stateId,this.personParams.zipCode=this.sharedData.personInfo.zipCode,this.personParams.addressTypeId=this.sharedData.personInfo.addressTypeId,this.personParams.addressStatusListItemId=this.sharedData.personInfo.addressStatusListItemId,this.personParams.addressNote=this.sharedData.personInfo.addressNote?this.sharedData.personInfo.addressNote:"",this.personParams.officeId=this.sharedData.personInfo.officeId,this.personParams.personStatusListItemId=this.sharedData.personInfo.personStatusListItemId,this.personParams.nodeList=this.sharedData.pda.nodeList,this.personParams.roleId=this.sharedData.roleData.role,this.personParams.roleList=this.sharedData.roleData.roleList,this.personParams.cultureCode="",this.personParams.personRoleListItem="";else if("agent"==this.sharedData.entity?.toLowerCase())this.personParams.personId=this.sharedData.personInfo.personId,this.personParams.firstName=this.sharedData.personInfo.firstName,this.personParams.middleName=this.sharedData.personInfo.middleName?this.sharedData.personInfo.middleName:"",this.personParams.lastName=this.sharedData.personInfo.lastName,this.personParams.sSN=this.sharedData.personInfo.sSN,this.personParams.title=this.sharedData.personInfo.title,this.personParams.mobile=this.sharedData.personInfo.mobile,this.personParams.address1=this.sharedData.personInfo.address1,this.personParams.address2=this.sharedData.personInfo.address2?this.sharedData.personInfo.address2:"",this.personParams.city=this.sharedData.personInfo.city,this.personParams.email=this.sharedData.personInfo.email,this.personParams.countryId=this.sharedData.personInfo.countryId,this.personParams.stateId=this.sharedData.personInfo.stateId,this.personParams.zipCode=this.sharedData.personInfo.zipCode,this.personParams.addressTypeId=this.sharedData.personInfo.addressTypeId,this.personParams.addressStatusListItemId=this.sharedData.personInfo.addressStatusListItemId,this.personParams.addressNote=this.sharedData.personInfo.addressNote?this.sharedData.personInfo.addressNote:"",this.personParams.officeId=this.sharedData.personInfo.officeId,this.personParams.personStatusListItemId=this.sharedData.personInfo.personStatusListItemId,this.personParams.nodeList=this.sharedData.nodeIds,this.personParams.cultureCode="",this.personParams.personRoleListItem="";else if("newhire"==this.sharedData.entity?.toLowerCase())this.personParams.personId=this.sharedData.personInfo.personId,this.personParams.firstName=this.sharedData.personInfo.firstName,this.personParams.middleName=this.sharedData.personInfo.middleName?this.sharedData.personInfo.middleName:"",this.personParams.lastName=this.sharedData.personInfo.lastName,this.personParams.sSN=this.sharedData.personInfo.sSN,this.personParams.mobile=this.sharedData.personInfo.mobile,this.personParams.address1=this.sharedData.personInfo.address1,this.personParams.address2=this.sharedData.personInfo.address2?this.sharedData.personInfo.address2:"",this.personParams.city=this.sharedData.personInfo.city,this.personParams.email=this.sharedData.personInfo.email,this.personParams.countryId=this.sharedData.personInfo.countryId,this.personParams.stateId=this.sharedData.personInfo.stateId,this.personParams.zipCode=this.sharedData.personInfo.zipCode,this.personParams.workflowId=this.sharedData.personInfo.workflowId,this.personParams.addressTypeId=this.sharedData.personInfo.addressTypeId,this.personParams.addressStatusListItemId=this.sharedData.personInfo.addressStatusListItemId,this.personParams.officeId=this.sharedData.personInfo.officeId,this.personParams.personStatusListItemId=this.sharedData.personInfo.personStatusListItemId,this.personParams.taskTemplateList=this.sharedData.taskTemplateList,this.personParams.resume=this.sharedData.personInfo.resume,this.personParams.dataSource=this.sharedData.personInfo.dataSource,this.personParams.professionTypeListItemId=this.sharedData.personInfo.professionTypeListItemId,this.personParams.preferredName=this.sharedData.personInfo.preferredName,this.personParams.specializationListItemId=this.sharedData.personInfo.specializationListItemId;else if("applicant"==this.sharedData.entity?.toLowerCase())this.personParams.personId=this.sharedData.personInfo.personId,this.personParams.firstName=this.sharedData.personInfo.firstName,this.personParams.middleName=this.sharedData.personInfo.middleName?this.sharedData.personInfo.middleName:"",this.personParams.lastName=this.sharedData.personInfo.lastName,this.personParams.sSN=this.sharedData.personInfo.sSN,this.personParams.mobile=this.sharedData.personInfo.mobile,this.personParams.mobileExtension=this.sharedData.personInfo.mobileExtension,this.personParams.address1=this.sharedData.personInfo.address1,this.personParams.address2=this.sharedData.personInfo.address2?this.sharedData.personInfo.address2:"",this.personParams.city=this.sharedData.personInfo.city,this.personParams.email=this.sharedData.personInfo.email,this.personParams.countryId=this.sharedData.personInfo.countryId,this.personParams.stateId=this.sharedData.personInfo.stateId,this.personParams.zipCode=this.sharedData.personInfo.zipCode,this.personParams.workflowId=this.sharedData.personInfo.workflowId,this.personParams.addressTypeId=this.sharedData.personInfo.addressTypeId,this.personParams.addressStatusListItemId=this.sharedData.personInfo.addressStatusListItemId,this.personParams.officeId=this.sharedData.personInfo.officeId,this.personParams.personStatusListItemId=this.sharedData.personInfo.personStatusListItemId,this.personParams.taskTemplateList=this.sharedData.taskTemplateList,this.personParams.resume=this.sharedData.personInfo.resume,this.personParams.agencyOrganizationId=this.sharedData.personInfo.agencyOrganizationId,this.personParams.employeeTypeListItemId=this.sharedData.personInfo.employeeTypeListItemId,this.personParams.dataSource=this.sharedData.personInfo.dataSource,this.personParams.professionTypeListItemId=this.sharedData.personInfo.professionTypeListItemId,this.personParams.preferredName=this.sharedData.personInfo.preferredName,this.personParams.specializationListItemId=this.sharedData.personInfo.specializationListItemId,this.personParams.insertAddess=this.personParams.address1?1:0;else if("employee"==this.sharedData.entity?.toLowerCase())this.personParams.personId=this.sharedData.personInfo.personId,this.personParams.firstName=this.sharedData.personInfo.firstName,this.personParams.middleName=this.sharedData.personInfo.middleName?this.sharedData.personInfo.middleName:"",this.personParams.lastName=this.sharedData.personInfo.lastName,this.personParams.sSN=this.sharedData.personInfo.sSN,this.personParams.mobile=this.sharedData.personInfo.mobile,this.personParams.address1=this.sharedData.personInfo.address1,this.personParams.address2=this.sharedData.personInfo.address2?this.sharedData.personInfo.address2:"",this.personParams.city=this.sharedData.personInfo.city,this.personParams.email=this.sharedData.personInfo.email,this.personParams.countryId=this.sharedData.personInfo.countryId,this.personParams.stateId=this.sharedData.personInfo.stateId,this.personParams.zipCode=this.sharedData.personInfo.zipCode,this.personParams.workflowId=this.sharedData.personInfo.workflowId,this.personParams.addressTypeId=this.sharedData.personInfo.addressTypeId,this.personParams.addressStatusListItemId=this.sharedData.personInfo.addressStatusListItemId,this.personParams.officeId=this.sharedData.personInfo.officeId,this.personParams.personStatusListItemId=this.sharedData.personInfo.personStatusListItemId,this.personParams.taskTemplateList=this.sharedData.taskTemplateList,this.personParams.agencyOrganizationId=this.sharedData.personInfo.agencyOrganizationId,this.personParams.employeeTypeListItemId=this.sharedData.personInfo.employeeTypeListItemId,this.personParams.resume=this.sharedData.personInfo.resume,this.personParams.dataSource=this.sharedData.personInfo.dataSource,this.personParams.professionTypeListItemId=this.sharedData.personInfo.professionTypeListItemId,this.personParams.preferredName=this.sharedData.personInfo.preferredName,this.personParams.employmentTypeListItemId=this.sharedData.personInfo.employmentTypeListItemId,this.personParams.specializationListItemId=this.sharedData.personInfo.specializationListItemId;else if("contact"==this.sharedData.entity?.toLowerCase())if(this.sharedData.callFor&&"workinjury"==this.sharedData.callFor?.toLowerCase()){if(this.sharedData.isAddNewAgency&&this.sharedData.isAddNewContact)return this._commonService.createOrganizationWithPerson(JSON.stringify({output:"person",contactModel:{countryId:this.sharedData.contactModel.countryId,firstName:this.sharedData.contactModel.firstName,middleName:this.sharedData.contactModel.middleName?this.sharedData.contactModel.middleName:"",lastName:this.sharedData.contactModel.lastName,userName:this.sharedData.contactModel.userName,title:this.sharedData.contactModel.title,personRoleListItemId:this.sharedData.contactModel.personRoleListItemId,email:this.sharedData.contactModel.email,address1:this.sharedData.contactModel.address1,address2:this.sharedData.contactModel.address2,city:this.sharedData.contactModel.city,stateId:this.sharedData.contactModel.stateId,zipCode:this.sharedData.contactModel.zipCode,officeId:this.sharedData.personOfficeId,entity:this.sharedData.entity,personStatusListItem:this.sharedData.contactModel.personStatusListItem,organization:0==this.sharedData.agencyId?this.sharedData.contactModel.agency:"",department:0==this.sharedData.agencyId?this.sharedData.contactModel.agency:"",workInjuryId:this.sharedData.workInjuryId,fax:this.sharedData.contactModel.fax},organizationModel:{agencyId:0,organizationId:0,addressId:0,entity:"Agency",agencyTypeListItemId:this.sharedData.contactModel.agencyTypeListItemId,countryId:this.sharedData.contactModel.countryId,organization:0==this.sharedData.agencyId?this.sharedData.contactModel.agency:"",department:0==this.sharedData.agencyId?this.sharedData.contactModel.agency:"",officeId:this.sharedData.personOfficeId,address1:this.sharedData.contactModel.address1,address2:this.sharedData.contactModel.address2,city:this.sharedData.contactModel.city,stateId:this.sharedData.contactModel.stateId,zipCode:this.sharedData.contactModel.zipCode,website:null,phone:this.sharedData.contactModel.phone,fax:this.sharedData.contactModel.fax}}),"Agency").pipe((0,u.U)(O=>(this.sharedData.newPerson=O,this.sharedData.createToast=!0,!0)));if(!this.sharedData.isAddNewContact)return this.insertWorkInjuryPersonRole(JSON.stringify({personId:this.sharedData.contactModel.contactId,workInjuryId:this.sharedData.workInjuryId,personRoleListItemId:this.sharedData.contactModel.personRoleListItemId})).pipe((0,u.U)(F=>(this.sharedData.newPerson=F,this.sharedData.reloadDirectory=!0,this.sharedData.addToast=!0,!0)));this.personParams.firstName=this.sharedData.contactModel.firstName,this.personParams.middleName=this.sharedData.contactModel.middleName?this.sharedData.contactModel.middleName:"",this.personParams.lastName=this.sharedData.contactModel.lastName,this.personParams.userName=this.sharedData.contactModel.userName,this.personParams.mobile=this.sharedData.contactModel.mobile,this.personParams.mobileExtension=this.sharedData.contactModel.mobileExtension,this.personParams.title=this.sharedData.contactModel.title,this.personParams.address1=this.sharedData.contactModel.address1,this.personParams.address2=this.sharedData.contactModel.address2?this.sharedData.contactModel.address2:"",this.personParams.city=this.sharedData.contactModel.city,this.personParams.email=this.sharedData.contactModel.email,this.personParams.countryId=this.sharedData.contactModel.countryId,this.personParams.stateId=this.sharedData.contactModel.stateId,this.personParams.zipCode=this.sharedData.contactModel.zipCode,this.personParams.fax=this.sharedData.contactModel.fax,this.personParams.officeId=this.sharedData.personOfficeId,this.personParams.organizationId=this.sharedData.contactModel.agencyId,this.personParams.entity=this.sharedData.entity,this.personParams.personRoleListItemId=this.sharedData.contactModel.personRoleListItemId,this.personParams.workInjuryId=this.sharedData.workInjuryId}else if(this.sharedData.callFor&&"tempjob"==this.sharedData.callFor.toLowerCase()){if(!this.sharedData.isAddNewContact)return this.insertContactRole({entity:this.sharedData.callFor,entityId:this.sharedData.jobId,organizationId:this.sharedData.contactModel.organizationId,personId:this.sharedData.contactModel.contactId,personRoleListItemId:this.sharedData.contactModel.personRoleListItemId}).pipe((0,u.U)(F=>(this.sharedData.newPerson=F[0],this.sharedData.reloadDirectory=!0,this.sharedData.addToast=!0,!0)));this.personParams.jobId=this.sharedData.jobId,this.personParams.firstName=this.sharedData.contactModel.firstName,this.personParams.middleName=this.sharedData.contactModel.middleName?this.sharedData.contactModel.middleName:"",this.personParams.lastName=this.sharedData.contactModel.lastName,this.personParams.mobile=this.sharedData.contactModel.mobile,this.personParams.mobileExtension=this.sharedData.contactModel.mobileExtension,this.personParams.title=this.sharedData.contactModel.title,this.personParams.address1=this.sharedData.contactModel.address1,this.personParams.address2=this.sharedData.contactModel.address2?this.sharedData.contactModel.address2:"",this.personParams.city=this.sharedData.contactModel.city,this.personParams.email=this.sharedData.contactModel.email,this.personParams.stateId=this.sharedData.contactModel.stateId,this.personParams.zipCode=this.sharedData.contactModel.zipCode,this.personParams.officeId=this.sharedData.officeId,this.personParams.organizationId=this.sharedData.organizationId,this.personParams.entity=this.sharedData.entity,this.personParams.personRoleListItemId=this.sharedData.contactModel.personRoleListItemId,this.personParams.fax=this.sharedData.contactModel.fax}else if(this.sharedData.callFor&&"directhirejob"==this.sharedData.callFor.toLowerCase()){if(!this.sharedData.isAddNewContact)return this.insertContactRole({entity:this.sharedData.callFor,entityId:this.sharedData.jobId,organizationId:this.sharedData.contactModel.organizationId,personId:this.sharedData.contactModel.contactId,personRoleListItemId:this.sharedData.contactModel.personRoleListItemId}).pipe((0,u.U)(F=>(this.sharedData.newPerson=F[0],this.sharedData.reloadDirectory=!0,this.sharedData.addToast=!0,!0)));this.personParams.jobId=this.sharedData.jobId,this.personParams.firstName=this.sharedData.contactModel.firstName,this.personParams.middleName=this.sharedData.contactModel.middleName?this.sharedData.contactModel.middleName:"",this.personParams.lastName=this.sharedData.contactModel.lastName,this.personParams.mobile=this.sharedData.contactModel.mobile,this.personParams.mobileExtension=this.sharedData.contactModel.mobileExtension,this.personParams.title=this.sharedData.contactModel.title,this.personParams.address1=this.sharedData.contactModel.address1,this.personParams.address2=this.sharedData.contactModel.address2?this.sharedData.contactModel.address2:"",this.personParams.city=this.sharedData.contactModel.city,this.personParams.email=this.sharedData.contactModel.email,this.personParams.stateId=this.sharedData.contactModel.stateId,this.personParams.zipCode=this.sharedData.contactModel.zipCode,this.personParams.officeId=this.sharedData.officeId,this.personParams.organizationId=this.sharedData.organizationId,this.personParams.entity=this.sharedData.entity,this.personParams.personRoleListItemId=this.sharedData.contactModel.personRoleListItemId,this.personParams.fax=this.sharedData.contactModel.fax}else{if(!this.sharedData.isAddNewContact)return this.insertOrganizationPersonRole(JSON.stringify({organizationId:this.sharedData.contactModel.organizationId,entityId:this.sharedData.contactModel.contactId,personRoleListItemId:this.sharedData.contactModel.personRoleListItemId})).pipe((0,u.U)(F=>(this.sharedData.newPerson=F[0],this.sharedData.reloadDirectory=!0,this.sharedData.addToast=!0,!0)));this.personParams.firstName=this.sharedData.contactModel.firstName.toUpperCase(),this.personParams.middleName=this.sharedData.contactModel.middleName?this.sharedData.contactModel.middleName.toUpperCase():"",this.personParams.lastName=this.sharedData.contactModel.lastName.toUpperCase(),this.personParams.mobile=this.sharedData.contactModel.mobile,this.personParams.mobileExtension=this.sharedData.contactModel.mobileExtension,this.personParams.title=this.sharedData.contactModel.title,this.personParams.address1=this.sharedData.contactModel.address1,this.personParams.address2=this.sharedData.contactModel.address2?this.sharedData.contactModel.address2:"",this.personParams.city=this.sharedData.contactModel.city,this.personParams.email=this.sharedData.contactModel.email,this.personParams.stateId=this.sharedData.contactModel.stateId,this.personParams.zipCode=this.sharedData.contactModel.zipCode,this.personParams.officeId=this.sharedData.officeId,this.personParams.organizationId=this.sharedData.organizationId,this.personParams.entity=this.sharedData.entity,this.personParams.personRoleListItemId=this.sharedData.contactModel.personRoleListItemId,this.personParams.fax=this.sharedData.contactModel.fax,this.personParams.userName=this.sharedData.contactModel.userName,this.personParams.sendEmail=this.sharedData.contactModel.sendEmail}this.personParams.enteredBy=this.utilityService.getTokenValueByKey("personId");let I={};I=this.personParams,I.entity=this.sharedData.entity;let L=[];if("newhire"===this.sharedData.entity?.toLowerCase()||"employee"==this.sharedData.entity?.toLowerCase()||"applicant"==this.sharedData.entity?.toLowerCase()){for(var b=0;b<this.personParams.taskTemplateList?.length;b++)this.personParams.taskTemplateList[b].companyId=this.sharedData.personInfo?.organizationId;I.taskTemplateList=this.personParams.taskTemplateList}return L.json=I,L.resumeFile=this.sharedData.fileObject?this.sharedData.fileObject[0]:null,L.resumeFileName=this.sharedData.fileObject?this.sharedData.fileObject[0].name:null,this.createNewPerson(L).pipe((0,u.U)(D=>{let F=D;return!!F&&("[object Array]"==Object.prototype.toString.call(F)&&(F=F[0]),this.sharedData.newPerson=F,this.sharedData.createToast=!0,this.sharedData.personInfo&&(this.sharedData.newPerson.workflowId=this.sharedData.personInfo.workflowId),!0)}))}return(0,a.of)(!0)}personBenefit(b,I){return this._webApiService.get(this.basePath+"PersonBenefit",{json:JSON.stringify(b),refresh:I||!1},null,!0)}personBenefitHistory(b,I){return this._webApiService.get(this.basePath+"PersonBenefitHistory",{json:JSON.stringify(b),refresh:I||!1},null,!0)}insertPersonBenefit(b){return this._webApiService.post(this.basePath+"PersonBenefit",{json:JSON.stringify(b,this.utilityService.dateReplacer)},null,null,!0)}personAdjustment(b,I){return this._webApiService.get(this.basePath+"PersonAdjustment",{json:JSON.stringify(b),refresh:I||!1},null,!0)}insertPersonAdjustment(b){return this._webApiService.post(this.basePath+"PersonAdjustment",{json:JSON.stringify(b,this.utilityService.dateReplacer)},null,null,!0)}personAdjustmentHistory(b,I){return this._webApiService.get(this.basePath+"PersonAdjustmentHistory",{json:JSON.stringify(b),refresh:I||!1},null,!0)}getPersonDetail(b){return this._webApiService.get(l.XL.settings.apiUrl+"Person/PersonDetail",{json:b},null,!1)}getPersonInterview(b,I){return this._webApiService.get(l.XL.settings.apiUrl+"Person/PersonInterview",{json:JSON.stringify(b,this.utilityService.dateReplacer),refresh:I||!1},null,!0)}getPersonCustom(b,I){return this._webApiService.get(this.basePath+"PersonCustom",{json:JSON.stringify(b),refresh:I||!1},null,!1)}personBankHistory(b,I){return this._webApiService.get(this.basePath+"PersonBankHistory",{json:JSON.stringify(b),refresh:I||!1},null,!0)}getInterviewQuestion(b){return this._webApiService.get(this.basePath+"InterviewQuestion",{json:JSON.stringify(b)},null)}getPersonAccrual(b,I){return this._webApiService.get(this.basePath+"PersonAccrual",{json:JSON.stringify(b),refresh:I||!1},null,!1)}getPersonTax(b,I){return this._webApiService.get(this.basePath+"PersonTax",{json:JSON.stringify(b),refresh:I||!1},null,!1)}getAccrual(b,I){return this._webApiService.get(this.basePath+"Accrual",{json:JSON.stringify(b),refresh:I||!1},null,!1)}getAccrualTier(b,I){return this._webApiService.get(this.basePath+"AccrualTier",{json:JSON.stringify(b),refresh:I||!1},null,!1)}insertPersonAccrual(b){return this._webApiService.post(this.basePath+"PersonAccrual",{json:JSON.stringify(b,this.utilityService.dateReplacer)},null,null,!1)}personTaxTask(b){return this._webApiService.post(this.basePath+"PersonTax",{json:JSON.stringify(b)},null,null,!1)}getPersonPayHistory(b,I){return this._webApiService.get(this.basePath+"PersonPayHistory",{json:JSON.stringify(b),refresh:I||!1},null,!0)}personAccrualHistory(b,I){return this._webApiService.get(this.basePath+"PersonAccrualHistory",{json:JSON.stringify(b),refresh:I||!1},null,!0)}personTaxHistory(b,I){return this._webApiService.get(this.basePath+"PersonTaxHistory",{json:JSON.stringify(b),refresh:I||!1},null,!0)}insertPersonCustom(b){return this._webApiService.post(this.basePath+"PersonCustom",{json:JSON.stringify(b)},null,null,!1)}inertPersonAccrualAdjustment(b){return this._webApiService.post(this.basePath+"PersonAccrualAdjustment",{json:JSON.stringify(b)},null,null,!1)}personAccrualAdjustment(b,I){return this._webApiService.get(this.basePath+"PersonAccrualAdjustment",{json:JSON.stringify(b),refresh:I||!1},null,!1)}personAccrualAdjustmentUpdate(b,I){return this._webApiService.post(this.basePath+"PersonAccrualAdjustmentUpdate",{json:JSON.stringify(b)})}registrationOfficeStaff(b){return this._webApiService.get(this.basePath+"RegistrationOfficeStaff",{json:JSON.stringify(b)},null)}paymentHistory(b){return this._webApiService.post(this.basePath+"PaymentHistory",{json:JSON.stringify(b)},null,null,!1)}getTaxParameter(b){return this._webApiService.get(this.basePath+"TaxParameter",{json:JSON.stringify(b)},null,!0)}updateEducation(b){return this._webApiService.post(this.basePath+"UpdateEducation",{json:JSON.stringify(b,this.utilityService.dateReplacer)},null,null,!0)}getAdjustmentAmountType(b){return this._webApiService.get(this.basePath+"AdjustmentAmountType",{json:JSON.stringify(b)},null,!0)}getCandidatePerson(b){return this._webApiService.get(this.basePath+"CandidatePerson",{json:JSON.stringify(b)},null,!0)}initiateRehire(b){return this._webApiService.post(this.basePath+"InitiateRehire",{json:b},null,null,!0)}getContactPerson(b){return this._webApiService.get(this.basePath+"ContactPerson",{json:JSON.stringify(b)},null,!0)}getEmployer(b){return this._webApiService.get(this.basePath+"Employer",{json:JSON.stringify(b)},null,!0)}getEmployeeType(b){return this._webApiService.get(this.basePath+"EmployeeType",{json:JSON.stringify(b)},null,!0)}insertPersonInterview(b){return this._webApiService.post(this.basePath+"PersonInterview",{json:JSON.stringify(b,this.utilityService.dateReplacer)},null,null,!0)}updatePersonIntervicew(b){return this._webApiService.post(this.basePath+"UpdatePersonInterview",{json:JSON.stringify(b,this.utilityService.dateReplacer)})}getPersonAdditional(b){return this._webApiService.get(this.basePath+"AdditionalInformation",{json:JSON.stringify(b)},null,!0)}insertPersonAdditional(b){return this._webApiService.post(this.basePath+"AdditionalInformation",{json:JSON.stringify(b)},null,null,!0)}getMatchDeduction(b){return this._webApiService.get(this.basePath+"PersonMatchDeduction",{json:JSON.stringify(b)},null,!0)}trackGeolocation(){const b=window.location.href.toLowerCase().indexOf("/login/")>-1;let I=Number(this.utilityService.getTokenValueByKey("personId").toString());const L=this.utilityService.getTokenValueByKey("application").toString();!b&&I&&"employeeportal"===(L||"").toLowerCase()&&(this.geo.watchPosition(),this.geo.positionObs.pipe((0,d.R)(this._unsubscribeAll)).subscribe(D=>{if(I=Number(this.utilityService.getTokenValueByKey("personId").toString()),I&&D){const F={personId:I,lat:D.lat,lng:D.lng,latLngJson:JSON.stringify(D)};this.saveTrackedGeolocation(F).pipe((0,s.q)(1)).subscribe()}}))}saveTrackedGeolocation(b){return this._webApiService.post(this.basePath+"tg",{json:JSON.stringify(b)})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(I){return new(I||p)(_.LFG(C.f),_.LFG(R.v),_.LFG(x.J),_.LFG(f.F0),_.LFG(k.t),_.LFG(w._),_.LFG(g.Dx))};static#t=this.\u0275prov=_.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},40087:(he,y,i)=>{"use strict";i.d(y,{t:()=>n});var e=i(65879);let n=(()=>{class o{ngOnInit(){}get callStatus(){return this._statusText}set callStatus(l){this._statusText=l}constructor(){this.callText="Call",this.statusText="Login",Plivo.onWebrtcNotSupported=this.webrtcNotSupportedAlert,Plivo.onReady=this.onReady,Plivo.onLogin=this.onLogin,Plivo.onLoginFailed=this.onLoginFailed,Plivo.onCalling=this.onCalling,Plivo.onCallRemoteRinging=this.onCallRemoteRinging,Plivo.onCallAnswered=this.onCallAnswered,Plivo.onMediaPermission=this.onMediaPermission,Plivo.onCallFailed=this.onCallFailed,Plivo.init(),this.login()}call(l){if("Call"==this.callText){console.log("hello");var u=l;if(console.log(u),this.isNotEmpty(u)){this.callStatus="Calling..";let d=Plivo.conn.call(u);console.log("plivo",d)}else this.callStatus="Invalid Destination"}else"End"==this.callText&&(this.callStatus="Ending..",Plivo.conn.hangup());return this.statusText}endCall(){Plivo.conn.hangup()}login(){Plivo.conn.login("plivocall180820035109","plivo@123")}logout(){this.statusText="Logged out",Plivo.conn.logout()}isNotEmpty(l){return l.length>0}onCalling(){console.log("onCalling"),this.statusText="Connecting...."}onMediaPermission(l){l?console.log("get media permission"):alert("you don't allow media permission, you can't make a call until you allow it")}webrtcNotSupportedAlert(){this.statusText="....",alert("Your browser doesn't support WebRTC. You need Chrome 25 to use this service")}onLogin(){this.statusText="Logged in"}onLoginFailed(){this.callStatus="Login Failed"}onCallRemoteRinging(){this.callStatus="Ringing..."}onCallAnswered(){console.log("onCallAnswered"),this.statusText="Call Answered"}onReady(){console.log("onReady...")}onCallFailed(){this.callStatus="Call Failed",this._statusText=this.callStatus,console.log("call failed",this.callStatus),console.log("call failed",this._statusText)}static#e=this.\u0275fac=function(u){return new(u||o)};static#t=this.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac})}return o})()},86204:(he,y,i)=>{"use strict";i.d(y,{_:()=>F});var e=i(65879),n=i(15861),o=i(8326),a=i(67217),l=i(62650),u=i(22096),d=i(36232),s=i(65592),A=i(35211),_=i(85137),C=i(43093),R=i(94664),x=i(37398),f=i(67081),k=i(74867),w=i(26306),g=i(21631),M=i(43572);i(17142);const b=new e.OlP("angularfire2.messaging.vapid-key"),I=new e.OlP("angularfire2.messaging.service-worker-registeration");let L=(()=>{class P{requestPermission;getToken;tokenChanges;messages;requestToken;deleteToken;constructor(U,V,K,X,me,J,Q){const re=Q,de=(0,u.of)(void 0).pipe((0,_.R)(me.outsideAngular),(0,C.Q)(me.insideAngular),(0,R.w)(l.Gb),(0,R.w)(H=>H?i.e(29).then(i.bind(i,10029)):d.E),(0,x.U)(()=>(0,a.on)(U,X,V)),(0,R.w)(H=>(0,a.cc)(`${H.name}.messaging`,"AngularFireMessaging",H.name,()=>(0,u.of)(H.messaging()),[])),(0,f.d)({bufferSize:1,refCount:!1}));this.requestPermission=de.pipe((0,_.R)(me.outsideAngular),(0,C.Q)(me.insideAngular),(0,R.w)(()=>Notification.requestPermission())),this.getToken=de.pipe((0,_.R)(me.outsideAngular),(0,C.Q)(me.insideAngular),(0,R.w)(function(){var H=(0,n.Z)(function*(z){if("granted"===Notification.permission){const q=re?yield re:null;return yield z.getToken({vapidKey:J,serviceWorkerRegistration:q})}return null});return function(z){return H.apply(this,arguments)}}()));const te=new s.y(H=>{navigator.permissions.query({name:"notifications"}).then(z=>{z.onchange=()=>H.next()})}),j=de.pipe((0,_.R)(me.outsideAngular),(0,C.Q)(me.insideAngular),(0,k.c)(te),(0,k.c)(this.getToken));return this.tokenChanges=de.pipe((0,_.R)(me.outsideAngular),(0,C.Q)(me.insideAngular),(0,R.w)(()=>(0,A.z)(this.getToken,j))),this.messages=de.pipe((0,_.R)(me.outsideAngular),(0,C.Q)(me.insideAngular),(0,R.w)(H=>new s.y(z=>H.onMessage(z)))),this.requestToken=de.pipe((0,_.R)(me.outsideAngular),(0,C.Q)(me.insideAngular),(0,R.w)(()=>this.requestPermission),(0,w.K)(()=>(0,u.of)(null)),(0,g.z)(()=>this.tokenChanges)),this.deleteToken=()=>de.pipe((0,_.R)(me.outsideAngular),(0,C.Q)(me.insideAngular),(0,R.w)(H=>H.deleteToken()),(0,M.d)(!1)),(0,a.pX)(this,de,X)}static \u0275fac=function(V){return new(V||P)(e.LFG(a.Dh),e.LFG(a.xv,8),e.LFG(e.Lbi),e.LFG(e.R0b),e.LFG(o.HU),e.LFG(b,8),e.LFG(I,8))};static \u0275prov=e.Yz7({token:P,factory:P.\u0275fac,providedIn:"any"})}return P})(),F=(()=>{class P{constructor(U){this.angularFireMessaging=U}requestPermission(){return new Promise(U=>{this.angularFireMessaging.requestToken.subscribe({next:V=>V?(console.log("Firebase token received successfully."),U(V)):(console.log("%c Unable to get permission for push notification.","background-color: red; color: #fff"),U(null)),error:V=>(console.log("%c Unable to get permission for push notification.","background-color: red; color: #fff",V),U(null))})})}listen(){this.angularFireMessaging.messages.subscribe(U=>{this.showCustomNotification(U)})}showCustomNotification(U){let V=U.notification;new Notification(V.title,{body:V.body})}init(U){}subscribe(U){}notificationClick(U){console.log("notification click event",U)}showLocalNotification(U){new Notification("Notification",{body:U.notification.body,icon:"https://www.kabbage.com/favicon.ico"})}static#e=this.\u0275fac=function(V){return new(V||P)(e.LFG(L))};static#t=this.\u0275prov=e.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})()},29941:(he,y,i)=>{"use strict";i.d(y,{F:()=>a});var e=i(7110),n=i(65879),o=i(6738);let a=(()=>{class l{constructor(d){this.ws=d,this.rapidPayUrl=e.XL.settings.apiUrl+"RapidPay/"}registerCard(d){return this.ws.post(this.rapidPayUrl+"RegisterCard",{json:JSON.stringify(d)})}instantLoadFund(d){return this.ws.post(this.rapidPayUrl+"InstantLoadFund",{json:JSON.stringify(d)})}static#e=this.\u0275fac=function(s){return new(s||l)(n.LFG(o.f))};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac})}return l})()},25800:(he,y,i)=>{"use strict";i.d(y,{Z:()=>g});var e=i(97582),n=i(69862),o=i(81667),a=i(7110),l=i(3209),u=i(78645),d=i(46898),s=i(37398),A=i(64716),_=i(59773),C=i(65879),R=i(6738),x=i(19735),f=i(74187),k=i(66878),w=i(710);class g{constructor(p,E,b,I,L,D){this.ws=p,this.httpClient=E,this.rs=b,this.us=I,this.dialog=L,this.cs=D,this._unsubscribeAll=new u.x}assignmentInfoReport(p,E=!0){return this.ws.get(a.XL.settings.apiUrl+"Assignment/AssignmentDocument",{Json:JSON.stringify(p),refresh:E},null,!0)}invoiceReport(p,E=!0){this.blockUI.start();let b=new n.WM;b=b.append("Content-Type","application/json; charset = UTF-8"),b=b.append("Accept","application/octet-stream"),b=b.append("Access-Control-Allow-Origin","*"),b=b.append("Authorization","Bearer "+this.us.getLocalStorage("token"));const I={headers:b,responseType:"blob"};return this.httpClient.post(a.XL.settings.apiUrl+"Invoice/InvoiceReport",{Json:JSON.stringify(p),refresh:!0},I).pipe((0,s.U)(L=>new Blob([L],{type:"application/pdf"})),(0,A.x)(()=>{this.blockUI.stop()}))}paymentReport(p,E=!0){return this.ws.get(a.XL.settings.apiUrl+"Payment/PaymentDocument",{Json:JSON.stringify(p),refresh:E},null,!0)}startSheetReport(p,E=!0){this.blockUI.start();let b=new n.WM;b=b.append("Content-Type","application/json; charset = UTF-8"),b=b.append("Accept","application/octet-stream"),b=b.append("Access-Control-Allow-Origin","*"),b=b.append("Authorization","Bearer "+this.us.getLocalStorage("token"));const I={headers:b,responseType:"blob"};return this.httpClient.post(a.XL.settings.apiUrl+"Assignment/StartSheetReport",{Json:JSON.stringify(p),refresh:!0},I).pipe((0,s.U)(L=>new Blob([L],{type:"application/pdf"})),(0,A.x)(()=>{this.blockUI.stop()}))}viewAssignmentInfoReport(p,E,b,I="Assigment Info Report"){this.paymentReport(E,!0).subscribe(L=>{L.msg?this.openBlobUrlReport("data:application/pdf;base64,"+L.msg,"AssignmentInfoReport",E):(this.removeReportDialogDOM(),this.rs.reportTabDataSet.next([{tabId:1,data:{data:[],columns:[]},description:"",dynamicReportType:"",reportType:"PaginatedReport",reportId:b,title:I,parameters:{ReportId:b,JobId:p,AssignmentIdList:[E],CallFrom:"CustomerPortal"},hideParameterArea:!0}]),this.dialog.open(o.B,{panelClass:"report-view-popup"}).afterClosed().subscribe(P=>{}))},L=>{this.us.callSnackBar("error","error")})}viewPaymentReport(p,E,b="Pay Check Report"){this.paymentReport(E,!0).subscribe(I=>{I.msg?this.openBlobUrlReport("data:application/pdf;base64,"+I.msg,"paymentReport",p):(this.removeReportDialogDOM(),this.rs.reportTabDataSet.next([{tabId:1,data:{data:[],columns:[]},description:"",dynamicReportType:"",reportType:"PaginatedReport",title:b,reportId:p.reportId,parameters:{CallPurpose:"PayCheck",Office:"",OfficeType:"",PaymentBatchId:"PaymentBatch"==E.entity?p.paymentBatchId:0,PaymentId:"PaymentBatch"!=E.entity?p.paymentId:0,StartDate:"2019-03-22",EndDate:"2019-03-22",SSN:"%",DateType:"",PrintType:"",DisplayMICR:null===p.postDate},hideParameterArea:!0}]),this.dialog.open(o.B,{panelClass:"report-view-popup"}).afterClosed().subscribe(F=>{}))},I=>{this.us.callSnackBar("error","error")})}viewInvoiceReport(p,E){if(p&&E&&E.action){const b=[];b.push({tabId:b.length+1,data:{data:[],columns:[]},description:"",dynamicReportType:"",reportType:"PaginatedReport",title:"Invoice Report",reportId:p.reportId,parameters:{Entity:"Invoice",EntityId:p.invoiceId},hideParameterArea:!0}),this.rs.reportTabDataSet.next(b),this.dialog.open(o.B,{panelClass:"report-view-popup"}).afterClosed().subscribe(L=>{})}else this.invoiceReport(E,!0).subscribe(b=>{if(b&&b.size)this.openBlobUrlReport(b,"invoiceReport",p);else{this.removeReportDialogDOM();const I=[];"Invoice"==E.entity&&I.push({tabId:I.length+1,data:{data:[],columns:[]},description:"",dynamicReportType:"",reportType:"PaginatedReport",title:"Invoice Report",reportId:p.reportId,parameters:{Entity:"Invoice",EntityId:p.invoiceId},hideParameterArea:!0}),"InvoiceMerge"==E.entity&&I.push({tabId:I.length+1,data:{data:[],columns:[]},description:"",dynamicReportType:"",reportType:"PaginatedReport",title:"invoiceMerge",reportId:p.reportId,parameters:{Entity:"InvoiceMerge",EntityId:p.invoiceMergeId},hideParameterArea:!0}),this.rs.reportTabDataSet.next(I),this.dialog.open(o.B,{panelClass:"report-view-popup"}).afterClosed().subscribe(D=>{})}},b=>{this.us.callSnackBar("error","error")})}viewStartSheetReport(p,E){this.startSheetReport(E,!0).subscribe(b=>{b&&this.openBlobUrlReport(b,"startSheetReport",p)},b=>{this.us.callSnackBar("error","error")})}openBlobUrlReport(p,E,b){this.dialog.open(d.g,{disableClose:!0,data:{iframeUrl:p,reportName:E,selectedDataItem:b},panelClass:"report-iframe-slide-view-popup"}).afterClosed().subscribe(L=>{})}openReport(p){p?p.parameters?this.addReportToDialog(p.reportId,p.parameters,p.report,p.title,p.reportType,p.reportDescription,p.dynamicReportType):this.rs.getReportParameter({reportId:p.reportId,report:p.report,reportType:p.reportType},!0).pipe((0,_.R)(this._unsubscribeAll)).subscribe(E=>{E?((p.parameterValueMap||[]).forEach(b=>{E.map(I=>{(I.name.toLowerCase()===b.key.toLowerCase()||I.actualName.toLowerCase()===b.key.toLowerCase())&&(I.value=b.value)})}),p.reportId=p.reportId?p.reportId:E[0]?E[0].reportId:0,this.addReportToDialog(p.reportId,E,p.report,p.title,p.reportType,p.reportDescription,p.dynamicReportType)):this.us.callSnackBar("errorLoadingFilters","error")}):this.us.callSnackBar("invalidInput","error")}addReportToDialog(p,E,b,I,L,D,F){this.removeReportDialogDOM();const P=Array.isArray(E)?E.filter(K=>K.required&&!K.value):[];let O=!0;P&&P.length>0&&(O=!1,this.us.callSnackBar("selectAllFilters","warning")),this.rs.reportTabDataSet.next([{tabId:1,data:{data:[],columns:[]},description:D||I,dynamicReportType:F,reportType:L,title:I,reportId:p,report:b,parameters:E,hideParameterArea:!O,runOnLoad:O}]),this.dialog.open(o.B,{panelClass:"report-view-popup"}).afterClosed().subscribe(K=>{})}removeReportDialogDOM(){this.rs.reportTabDataSet.next([]);const p=document.getElementsByTagName("view-report-dialog");p.length>0&&(p[0].parentElement.parentElement.parentElement.parentElement.getElementsByClassName("cdk-overlay-backdrop")[0].remove(),p[0].parentElement.parentElement.parentElement.remove())}openPaginagedReport(p,E,b){!p||!E||!b||this.cs.applicationReportData({action:p}).subscribe(I=>{null!=I&&I.reportId&&(this.rs.reportTabDataSet.next([{reportType:"PaginatedReport",title:E,reportId:I.reportId,parameters:b}]),this.dialog.open(o.B,{panelClass:"report-view-popup"}))})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(E){return new(E||g)(C.LFG(R.f),C.LFG(n.eN),C.LFG(x.r),C.LFG(f.t),C.LFG(k.on),C.LFG(w.v))};static#t=this.\u0275prov=C.Yz7({token:g,factory:g.\u0275fac})}(0,e.gn)([(0,l.bH)()],g.prototype,"blockUI",void 0)},74187:(he,y,i)=>{"use strict";i.d(y,{t:()=>p});var e=i(60703),n=i(65619),o=i(78645),a=i(58504),l=i(22096),u=i(37398),d=i(26306),s=i(36711),A=i(28817),_=i(65879),C=i(64190),R=i(43970),x=i(66878),f=i(45895),k=i(18750),w=i(69862),g=i(89515);const M=i(77874);let p=(()=>{class E{constructor(I,L,D,F,P,O,U,V,K,X){this.cds=L,this.infoDialog=D,this.confirmDialog=F,this.popup=P,this.snackBar=O,this.deviceService=U,this.httpClient=V,this.translate=K,this.dds=X,this.onToggle=new n.X(!0),this.onSkillChange=new n.X({}),this.publishedDateSet=new n.X(!1),this.officeDetail=new n.X([]),this.onJobDetailChange=new n.X({}),this.onRefreshJobDetail=new n.X(null),this.onToggleNavBar=new n.X(null),this.onInternalToggleNavBar=new n.X(null),this.onBodyPartsChange=new n.X(null),this.onContactEmailInformationChange=new n.X(null),this.onPrimaryAddressChange=new n.X(null),this.onSocialMediaChange=new n.X({}),this.reloadWorkInjuryInternalNav=new n.X(null),this.reloadUnemploymentInternalNav=new n.X(null),this.roleSwitch=new n.X(null),this.reloadEntityImage=new n.X(null),this.onSMSNotificationCountChanged=new n.X(0),this.onSnapshotEntityChange=new n.X(null),this.onInternalNavigationChange=new n.X(null),this.onJobPortalAccessChange=new n.X(null),this.errorMessage="",this.jwtHelper=new e.N0,this.znplSecretKey="zenopleSecretKey@123",this.mediaBreakpoint=new n.X([]),this._unsubscribeAll=new o.x,this._router=I}getCurrectApplicationId(){const I=JSON.parse(sessionStorage.getItem("headerParams"));if(I)return I.applicationId}dateReplacer(I,L){return/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(L)?new Date(L).toLocaleString().replace(",","").replace(/[\u202f]/," "):L}formatedPhoneNumber(I){if(!I)return"";const L=I.replace(/[()\s-]/g,"");return`(${L.slice(0,3)}) ${L.slice(3,6)}-${L.slice(6)}`}convertDateTime(I){return new Date(I.toString()).toDateString()}navigate(I){this._router.navigate([I])}navigateToSignIn(){this.navigate("/login")}getParams(){const I=window.location.search.split("?")[1];if(I){const L={};return I.split("&").forEach(D=>{L[D.split("=")[0]]=D.split("=")[1]}),L}}readableColumnName(I){return typeof I>"u"||null==I?I:("string"!=typeof I&&(I=String(I)),I.replace(/_+/g," ").replace(/^[A-Z]+$/,L=>(L.charAt(0).toUpperCase()+L.slice(1)).toLowerCase()).replace(/([\w\u00C0-\u017F]+)/g,L=>L.charAt(0).toUpperCase()+L.slice(1)).replace(/(\w+?(?=[A-Z]))/g,"$1 "))}numberToString(I){var L=2;L=Math.pow(10,L||0);for(var D=["K","M","B","T"],F=D.length-1;F>=0;F--){var P=Math.pow(10,3*(F+1));if(P<=I){1e3==(I=Math.round(I*L/P)/L)&&F<D.length-1&&(I=1,F++),I+=D[F];break}}return I}isLoadedScript(I){return document.querySelectorAll('[src="'+I+'"]').length>0}isLoadedStyle(I){return document.querySelectorAll('[href="'+I+'"]').length>0}getDirtyValues(I){const L={};return Object.keys(I.controls).forEach(D=>{const F=I.controls[D];F.dirty&&(L[D]=F.controls?this.getDirtyValues(F):F.value)}),0===Object.keys(L).length?null:L}swapArrayObject(I,L,D){for(let F of L)if(F[D]==I[D]){const P=L.indexOf(F);L[P]=I;break}return L}isFormDirty(I){return!I.pristine}getPropertyArray(I,L){try{return I.map(D=>D[L])}catch{return[]}}openConfirmDialog(I,L=""){this.confirmDialogAction=new n.X(null),this.cds.action=new n.X(null),this.confirmDialogSubs=this.cds.action.subscribe(F=>{"yes"===F&&this.confirmDialogAction.next("yes")}),this.confirmDialog.open(s.$,{panelClass:L,data:I}).afterClosed().subscribe(F=>{"no"===F&&this.confirmDialogAction.next("no"),this.confirmDialogSubs&&this.confirmDialogSubs.unsubscribe()})}closeConfirmDialog(){this.cds.close(),this.confirmDialogSubs&&this.confirmDialogSubs.unsubscribe()}openInformationDialog(I,L){this.infoDialog.open(A.A,{panelClass:L||"zen-popup-sm",data:I})}callSnackBar(I,L,D){if(I&&I.length){D||(D={});let F=[],P="default-sb-type";switch(L?L.toLowerCase().trim():""){case"success":P="success-sb-type";break;case"error":P="error-sb-type";break;case"warning":P="warning-sb-type";break;case"info":P="info-sb-type"}F.push(P),D.multiLine&&F.push("multilineSnackbar"),this.snackBar.open(this.translate.instant(I),"x",{duration:D.duration?D.duration:5e3,verticalPosition:D.verticalPosition?D.verticalPosition:"top",horizontalPosition:D.horizontalPosition?D.horizontalPosition:"center",panelClass:F})}}setLocalStorage(I,L){let D=localStorage.getItem("ZNPL")?JSON.parse(this.decrypt(localStorage.getItem("ZNPL"))):{},F={};if(F[I]=L,D=Object.assign(D,F),"token"===I.toLowerCase()){const P=this.jwtHelper.decodeToken(L);sessionStorage.setItem("sessionInfo",JSON.stringify({personId:P.personId,tenant:P.tenant}))}localStorage.setItem("ZNPL",this.encrypt(JSON.stringify(D)))}getLocalStorage(I){if(localStorage.getItem("ZNPL"))return JSON.parse(this.decrypt(localStorage.getItem("ZNPL")))[I]}roleSwitchClearSessions(){const I=sessionStorage.getItem("sessionInfo");if(localStorage.getItem("ZNPL")){const L=JSON.parse(this.decrypt(localStorage.getItem("ZNPL"))),D={};D.countryCode=L.countryCode,D.mode=L.mode,D.orgCode=L.orgCode,D.organizationId=L.organizationId,D.publishedDate=L.publishedDate,D.token=L.token,D["default-theme-mode"]=L["default-theme-mode"],localStorage.clear(),sessionStorage.clear(),sessionStorage.setItem("sessionInfo",I),localStorage.setItem("ZNPL",this.encrypt(JSON.stringify(D))),this.roleSwitch.next("RoleSwitched")}}removeLocalStorage(I){if(localStorage.getItem("ZNPL")){let L=JSON.parse(this.decrypt(localStorage.getItem("ZNPL")));L.hasOwnProperty(I)&&(delete L[I],localStorage.setItem("ZNPL",this.encrypt(JSON.stringify(L))))}}clearLocalStorage(){localStorage.getItem("ZNPL")&&localStorage.removeItem("ZNPL")}encrypt(I){return M.AES.encrypt(I,this.znplSecretKey)}decrypt(I){return M.AES.decrypt(I.toString(),this.znplSecretKey).toString(M.enc.Utf8)}getTokenValueByKey(I){const L=this.getLocalStorage("token");if(L){const F=this.jwtHelper.decodeToken(L);return I.charAt(0).toUpperCase()+I.slice(1)==="All"?F:F[I]}return""}isTokenValid(){let I=this.getLocalStorage("token");const L=this.jwtHelper.decodeToken(I),D=sessionStorage.getItem("sessionInfo")?JSON.parse(sessionStorage.getItem("sessionInfo")):null;return I&&!this.jwtHelper.isTokenExpired(I)&&D&&L.personId==D.personId&&L.tenant==D.tenant}assignCssClassOnZenSteps(I,L){if(L&&L.length>0){this.removeCSSOfZenSteps(L);for(var D=0;D<=I;D++)L[D].classList.add(D==I?"zen-step-header-active":"zen-step-header")}}removeCSSOfZenSteps(I){for(var L=0;L<I.length;L++)I[L].className.search("zen-step-header")&&I[L].classList.remove("zen-step-header"),I[L].className.search("zen-step-header-active")&&I[L].classList.remove("zen-step-header-active")}translateWithTemplate(I,L){let D=this.translate.instant(I);return L&&Object.keys(L).forEach(P=>{const O=new RegExp(`#${P}#`,"g");D=D.replace(O,L[P])}),D}getDeviceType(){let I=-1;return!0===this.dds.isDesktop()?I=0:!0===this.dds.isMobile()?I=1:!0===this.dds.isTablet()&&(I=2),I}isSearchMode(){let I=JSON.parse(sessionStorage.getItem("headerParams"));return JSON.parse(this.getLocalStorage("displayMode"))[I.applicationId]}newGuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(I){const L=16*Math.random()|0;return("x"===I?L:3&L|8).toString(16)})}renameKeys(I,L){if(L){let D;return D=L[0]?L:[L],D.map(F=>Object.keys(F).reduce((P,O)=>({...P,[I[O]||O]:F[O]}),{}))}return L}isValidDate(I){let L=!0;return L=!(!isNaN(I)||"Invalid Date"===new Date(I).toString()),L}toJsDate(I,L){if(!I&&!this.isValidDate(I))return I;try{let D,F,P,O,U,V,K,X,me;if("jsdate"===(L=L.toLowerCase())){const J=I.includes("-");O=I.split(J?"-":"/");const Q=O[2].split("T");O[2]=Q[0],D=O[J?0:2],F=O[J?1:0],P=O[J?2:1];const re=Q[1]?Q[1].split(":"):null,de=re&&re[2]?re[2].split("."):null;K=Number(re&&re[0]?re[0]:0),U=Number(re&&re[1]?re[1]:0),X=Number(de&&de[2]?de[0]:0),me=Number(re&&re[0]?re[0]:0),I=new Date(D,F-1,P,K,U,X,me)}else if("localdatetime"===L)I=new Date(`${I}Z`).toLocaleString();else if("utcstring"===L){const J=I.toISOString(),Q=I.toISOString().split("T")[1];I=`${J.split("T")[0]}T${Q}`}else if("isostring"===L.toLowerCase()){O=I.toLocaleDateString().split("/"),D=O[2],F=O[0],P=O[1],U=F<10?`0${F}`:F,V=P<10?`0${P}`:P;const Q=I.toTimeString(),re=I.toISOString();I=`${D}-${U}-${V}T${Q.split(" ")[0]}.${re.split(".")[1]}`}else"date"===L&&(O=I.toLocaleDateString().split("/"),D=O[2],F=O[0],P=O[1],U=F<10?`0${F}`:F,V=P<10?`0${P}`:P,I=`${D}-${U}-${V}`);return I}catch{return I}}sortArrayObjByKey(I,L,D){return I[D]-L[D]}withoutVariableReference(I){return I&&Array.isArray(I)&&I.length>0?[...new Set(I.map(L=>JSON.stringify(L)))].map(L=>JSON.parse(L)):I&&Object.keys(I).length>0?JSON.parse(JSON.stringify({...I})):I}uniqueMergeArrayObj(I,L){const D=[...I,...L];return[...new Set(D.map(F=>JSON.stringify(F)))].map(F=>JSON.parse(F))}convertTime(I,L){let D="";const F=L.split(":"),P=F[0]||"",O=F[1]||"";return D=12===I?Number(P)>12?`${Number(P)-12}:${O} PM`:`${P}:${O} AM`:`${Number(P)>12?Number(P)-12:P}:${O}`,D}generateSeries(I,L,D){const F={};F[L]=[];let P=Object.keys(I[L][0]);return P=P.filter(O=>O!==D),P.map(O=>{F[L].push({name:O,field:O})}),F}generateZenSelectConfig(I){const L={};return L.data=I.data?I.data:I||[],L.columns=[],I.columns?L.columns=I.columns:L.data&&L.data[0]&&Object.keys(L.data[0]).map(D=>{L.columns.push({name:D})}),L.totalCount=I.totalCount?I.totalCount:L.data&&L.data[0]?L.data.length:0,I.columnTemplates&&(L.columnTemplates=I.columnTemplates),I.class&&(L.class=I.class),L}camalizeText(I){if(I&&I.length>0)return I.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,(L,D)=>D.toUpperCase())}toCamelCase(I){let L,D,F,P;if(!I)return null;if(I instanceof Array)for(D in L=[],I)I.hasOwnProperty(D)&&(P=I[D],"object"==typeof P&&(P=this.toCamelCase(P)),L.push(P));else for(D in L={},I)I.hasOwnProperty(D)&&(F=(D?.charAt(0)?.toLowerCase()+D.slice(1)||D).toString(),P=I[D],(P instanceof Array||null!==P&&P.constructor===Object)&&(P=this.toCamelCase(P)),L[F]=P);return L}getTranslatedData(I,L,D,F,P){let O,U,V;if(F||(F=this.translate.translations[D]),!I)return null;if(I instanceof Array)for(U in O=[],I)U&&(V=I[U],"object"==typeof V&&(V=this.getTranslatedData(V,L,D,F,P)),O.push(V));else for(U in O={},I)I.hasOwnProperty(U)&&(V=I[U],V instanceof Array||null!==V&&V.constructor===Object?V=this.getTranslatedData(V,L,D,F,P):P&&"string"==typeof V&&V.includes("instance.t('")?V=this.getTranslatedFormioContent(V,F):L.includes(U)&&F.hasOwnProperty(V)&&(V=F[V]),O[U]=V);return O}getTranslatedFormioContent(I,L){let D=I.indexOf("instance.t('"),F=I.indexOf("')",D);if(-1!==D&&-1!==F){D+=12;const P=I.substring(D,F);-1!=(I=I.replace(`instance.t('${P}')`,`'${L[P]}'`)).indexOf("instance.t('")&&(I=this.getTranslatedFormioContent(I,L))}return I}mergeObjectByKeys(I,L,D){D=D||[],(Object.keys(L)||[]).forEach(F=>{D.includes(F)||(I[F]=L[F])})}redirectToLogin(){let I="/error-404";const L=this.getLocalStorage("loginUrl");L&&(I=L),this.clearLocalStorage(),!L||L&&L.toLowerCase()===location.pathname.toLowerCase()?this._router.navigateByUrl(".",{skipLocationChange:!0}).then(()=>{this._router.navigate([I])}):this._router.navigate([I])}calculateClockTime(I){if(I&&I.dataItem&&I.dataItem.transactionItemDateId)if(I.dataItem.clockIn||I.dataItem.breakOut||I.dataItem.breakIn||I.dataItem.clockOut)try{let D=I.dataItem.clockIn?I.dataItem.clockIn.split(":"):null;D=D?new Date(0,0,0,D[0],D[1],D[2]||0):null;let F=I.dataItem.breakOut?I.dataItem.breakOut.split(":"):null;F=F?new Date(0,0,0,F[0],F[1],F[2]||0):null;let P=I.dataItem.breakIn?I.dataItem.breakIn.split(":"):null;P=P?new Date(0,0,0,P[0],P[1],P[2]||0):null;let O=I.dataItem.clockOut?I.dataItem.clockOut.split(":"):null;O=O?new Date(0,0,0,O[0],O[1],O[2]||0):null;const U=new Date(0,0,0,24,0,0,0),V=new Date(0,0,0,0,0,0,0);let K=0,X=0;"isOverNight"!==I.column&&(I.dataItem.isOverNight=D&&O&&F&&P?O<P||P<F||F<D:!(!D||!O||F&&P)&&O<D),F&&P&&(K=P<F?Math.floor(Math.abs(U-F+(P-V))/1e3)/3600:Math.floor(Math.abs(P-F)/1e3)/3600),D&&O&&F&&P?(X+=F<D?Math.floor(Math.abs(U-D+(F-V))/1e3)/3600:Math.floor(Math.abs(F-D)/1e3)/3600,X+=P<F?Math.floor(Math.abs(U-F+(P-V))/1e3)/3600:Math.floor(Math.abs(F-P)/1e3)/3600,X+=O<P?Math.floor(Math.abs(U-P+(O-V))/1e3)/3600:Math.floor(Math.abs(O-P)/1e3)/3600,X-=K):D&&O&&(!F||!P)&&(X=O<D?Math.floor(Math.abs(U-D+(O-V))/1e3)/3600:Math.floor(Math.abs(O-D)/1e3)/3600),I.dataItem.nonEditableColumns&&I.dataItem.nonEditableColumns.indexOf("breakIn")<0&&I.dataItem.nonEditableColumns.indexOf("breakOut")<0&&(I.dataItem.break=Number(K.toFixed(2))),I.dataItem.payUnit=Number(X.toFixed(2))}catch(D){return I.dataItem=Object.assign(I.dataItem,I.prevDataItem),I.dataItem.savingInfo={type:"error",message:"invalidTimesOrInvalidTimeSequence"},(0,a._)(D)}else(null==I.dataItem.clockIn||""==I.dataItem.clockIn)&&(I.dataItem.isOverNight=!1);return(0,l.of)()}getLocalFile(I){return this.httpClient.get(I)}checkFileURL(I){return this.httpClient.get(I,{observe:"response",responseType:"blob"}).pipe((0,u.U)(L=>I),(0,d.K)(L=>(0,l.of)(null)))}fitColumns(I){if("card-view-grid"!==I.zenMasterGridCmp.viewchange){if(I.zenMasterGridCmp.columns)for(let D=0;D<I.zenMasterGridCmp.columns.length;D++)I.zenMasterGridCmp.columns[D].locked=!1;if(0===I.zenMasterGridCmp.autoGrid.columns.toArray().filter(D=>!0===D.isLocked).length&&I.zenMasterGridCmp.autoGrid.autoFitColumns(),I.lockedColumns&&I.lockedColumns.length>0&&I.zenMasterGridCmp.gridData.length>0){const D=I.zenMasterGridCmp.autoGrid.columns.toArray(),F={};D.map(U=>(F[U.field]=U.width?U.width:1,U.width?U.width:1)),I.zenMasterGridCmp.widths=F;const O=I.zenMasterGridCmp.autoGrid.columns.toArray();for(let U=0;U<I.lockedColumns.length;U++){I.zenMasterGridCmp.resizable=!0;const V=O.find(K=>K.field===I.lockedColumns[U]);V&&(V.locked=!0,V.lockable=!0)}}I.zenMasterGridCmp.numberOfActions=0;for(const D of I.zenMasterGridCmp.firstColumns)I.zenMasterGridCmp.columns.find(P=>P.name.toLowerCase()===D)&&(I.zenMasterGridCmp.numberOfActions+=1);this.adjustWidth(I)}else I.zenMasterGridCmp.preventGridFlicker=!1}adjustWidth(I){let L,D,F=!1;for(let P=0;P<I.zenMasterGridCmp.groups.length;P++)I.zenMasterGridCmp.hiddenColumns.includes(I.zenMasterGridCmp.groups[P].field)&&(F=!0);if(I.zenMasterGridCmp.lockedColumns&&I.zenMasterGridCmp.lockedColumns.length>0&&I.zenMasterGridCmp.gridData.length>0){const P=I.zenMasterGridCmp.zenGrid.columns.toArray();for(let V=0;V<I.lockedColumns.length;V++){I.zenMasterGridCmp.resizable=!0;const K=P.find(X=>X.field===I.lockedColumns[V]);K&&!K.lockable&&!K.locked&&(K.locked=!0,K.lockable=!0)}let O=0;const U=setInterval(()=>{if(L=document.querySelector("."+I.zenMasterGridCmp.uniqueClass+" .k-grid-content.k-virtual-content .k-grid-table"),D=document.querySelector("."+I.zenMasterGridCmp.uniqueClass+" .k-grid-content.k-virtual-content .k-grid-table-wrap"),L&&D){const V=L.offsetWidth,K=D.offsetWidth;let X;if(V<K){X=I.zenMasterGridCmp.groupLabels.length>0||I.zenMasterGridCmp.groups.length>0?(K-V)/(I.zenMasterGridCmp.columns.length-I.zenMasterGridCmp.groupLabels.length-I.zenMasterGridCmp.groups.length-(F?0:I.zenMasterGridCmp.hiddenColumns.length)-I.zenMasterGridCmp.numberOfActions):(K-V)/(I.zenMasterGridCmp.columns.length-I.zenMasterGridCmp.numberOfActions-I.zenMasterGridCmp.hiddenColumns.length);let me={};I.zenMasterGridCmp.autoGrid.columns.toArray().map(J=>{I.zenMasterGridCmp.firstColumns.includes(J.field.toLowerCase())?(me[J.field]=J.width?J.width:1,J.width=J.width?J.width:1):(me[J.field]=(J.width?J.width:1)+X,J.width=(J.width?J.width:1)+X)}),I.zenMasterGridCmp.widths=me,clearInterval(U),I.zenMasterGridCmp.preventGridFlicker=!1}else O>60&&(clearInterval(U),I.zenMasterGridCmp.preventGridFlicker=!1);O++}})}else if(L=document.querySelector("."+I.zenMasterGridCmp.uniqueClass+" .k-grid-table"),D=document.querySelector("."+I.zenMasterGridCmp.uniqueClass+" .k-grid-table-wrap"),L&&D){const P=L.offsetWidth,O=D.offsetWidth;let U;if(P<O){U=I.zenMasterGridCmp.groupLabels.length>0||I.zenMasterGridCmp.groups.length>0?(O-P)/(I.zenMasterGridCmp.columns.length-I.zenMasterGridCmp.groupLabels.length-I.zenMasterGridCmp.groups.length-(F?0:I.zenMasterGridCmp.hiddenColumns.length)-I.zenMasterGridCmp.numberOfActions):(O-P)/(I.zenMasterGridCmp.columns.length-I.zenMasterGridCmp.numberOfActions-I.zenMasterGridCmp.hiddenColumns.length);let V={};I.zenMasterGridCmp.autoGrid.columns.toArray().map(K=>{I.zenMasterGridCmp.firstColumns.includes(K.field.toLowerCase())?(V[K.field]=K.width?K.width:1,K.width=K.width?K.width:1):(V[K.field]=(K.width?K.width:1)+U,K.width=(K.width?K.width:1)+U)}),I.zenMasterGridCmp.widths=V}I.zenMasterGridCmp.preventGridFlicker=!1}}getFormatedSize(I){let F=0;return I>1e6?(F=I/1e6,`${F.toFixed(1)} mb`):I>1e3?(F=I/1e3,`${F.toFixed(1)} kb`):`${I} bytes`}arraysAreEqual(I,L){if(I.length!==L.length)return!1;I.sort((D,F)=>JSON.stringify(D)>JSON.stringify(F)?1:-1),L.sort((D,F)=>JSON.stringify(D)>JSON.stringify(F)?1:-1);for(let D=0;D<I.length;D++)if(JSON.stringify(I[D])!==JSON.stringify(L[D]))return!1;return!0}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(L){return new(L||E)(_.LFG(C.F0),_.LFG(R.D),_.LFG(x.on),_.LFG(x.on),_.LFG(x.on),_.LFG(f.pl),_.LFG(k.x0),_.LFG(w.eN),_.LFG(g.sK),_.LFG(k.x0))};static#t=this.\u0275prov=_.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})()},6738:(he,y,i)=>{"use strict";i.d(y,{f:()=>R});var e=i(97582),n=i(65592),o=i(58504),a=i(69862),l=i(3209),u=i(37398),d=i(26306),s=i(64716),A=i(65879),_=i(74187),C=i(64190);class R{constructor(f,k,w){this.http=f,this.utilityService=k,this.router=w}getBlob(f,k,w,g){return this.http.get(f,{params:k,responseType:"blob"}).pipe((0,u.U)(M=>new Blob([M])))}getImage(f){return n.y.create(k=>{const w=new XMLHttpRequest;w.open("get",f),w.onreadystatechange=function(){4===w.readyState&&200===w.status&&(k.next(w.response),k.complete())},w.send()})}get(f,k,w,g=!0,M=!0,p=!0){return g&&this.blockUI.start(),this.http.get(f,{params:k}).pipe((0,u.U)(E=>this.unwrapHttpValue(E)),(0,d.K)(E=>(p&&this.errorMessage(E,M),(0,o._)(this.unwrapHttpValue(E)))),(0,s.x)(()=>{g&&this.blockUI.stop()}))}getWithOptions(f,k,w=!0){return w&&this.blockUI.start(),this.http.get(f,k).pipe((0,u.U)(g=>k&&k.notCamalizedJson?g:this.unwrapHttpValue(g)),(0,d.K)(g=>(this.errorMessage(g),(0,o._)(this.unwrapHttpValue(g)))),(0,s.x)(()=>{w&&this.blockUI.stop()}))}post(f,k,w,g,M=!0){return M&&this.blockUI.start(),null!=k&&(k=JSON.stringify(k).replace(/"\s+|\s+"/g,'"'),k=JSON.parse(k)),this.http.post(f,k).pipe((0,u.U)(p=>this.unwrapHttpValue(p)),(0,d.K)(p=>(this.errorMessage(p),(0,o._)(this.unwrapHttpValue(p)))),(0,s.x)(()=>{M&&this.blockUI.stop()}))}postWithOptions(f,k,w,g=!0){return g&&this.blockUI.start(),this.http.post(f,k,w).pipe((0,u.U)(M=>w&&w.notCamalizedJson?M:this.unwrapHttpValue(M)),(0,d.K)(M=>(this.errorMessage(M),(0,o._)(this.unwrapHttpValue(M)))),(0,s.x)(()=>{g&&this.blockUI.stop()}))}put(f,k,w,g,M=!0){return M&&this.blockUI.start(),this.http.put(f,k).pipe((0,d.K)(p=>(this.errorMessage(p),(0,o._)(this.unwrapHttpValue(p)))),(0,s.x)(()=>{M&&this.blockUI.stop()}))}putWithOptions(f,k,w,g=!0){return g&&this.blockUI.start(),this.http.put(f,k,w).pipe((0,d.K)(M=>(this.errorMessage(M),(0,o._)(this.unwrapHttpValue(M)))),(0,s.x)(()=>{g&&this.blockUI.stop()}))}delete(f,k=!0){return k&&this.blockUI.start(),this.http.delete(f).pipe((0,d.K)(w=>(this.errorMessage(w),(0,o._)(this.unwrapHttpValue(w)))),(0,s.x)(()=>{k&&this.blockUI.stop()}))}deleteWithOptions(f,k,w=!0){return w&&this.blockUI.start(),this.http.delete(f,k).pipe((0,d.K)(g=>(this.errorMessage(g),(0,o._)(this.unwrapHttpValue(g)))),(0,s.x)(()=>{w&&this.blockUI.stop()}))}buildUrlSearchParams(f){const k=new a.LE;for(const w in f)f.hasOwnProperty(w)&&k.append(w,f[w]);return k}unwrapHttpValue(f){if(null===f)return f;"string"==typeof f&&(f=JSON.parse(f)),"cjson"===f.f&&(f=window.CJSON.expand(f));const k=this.utilityService.toCamelCase(f);return 302===k?.statusCode&&k?.sessionExpired&&this.router.navigate(["session-expiry",k.autoLogout]),k}errorMessage(f,k=!0){let w="Error response received";if(f&&!this.isUnauthorize(f)&&k){if(f.error){if("string"==typeof f.error)try{f.error=JSON.parse(f.error)}catch{}w=f.error.errors?.constructor===Array?f.error.errors[0].message:f.error.error?.constructor===String?f.error.error:f.message}else w=f.message;this.utilityService.callSnackBar(w,"error")}}isUnauthorize(f){let k=!1;const w=401===f.status,g=window.location.href.indexOf("/timeclock/")>-1;return w&&g&&(this.utilityService.redirectToLogin(),k=!0),k}static#e=this.\u0275fac=function(k){return new(k||R)(A.LFG(a.eN),A.LFG(_.t),A.LFG(C.F0))};static#t=this.\u0275prov=A.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"})}(0,e.gn)([(0,l.bH)()],R.prototype,"blockUI",void 0)},64954:(he,y,i)=>{"use strict";i.d(y,{z:()=>s});var e=i(7110),n=i(65619),o=i(78645),a=i(37398),l=i(65879),u=i(6738),d=i(28011);let s=(()=>{class A{constructor(C,R){this.ws=C,this.eds=R,this._currentWorkflowStage=new n.X(null),this.currentWorkflow=new n.X({}),this.filterWorkflowToggle=new n.X(!1),this.unsubscribe$=new o.x,this._workflowServiceUrl=e.XL.settings.apiUrl+"WorkFlow/"}set currentWorkflowStage(C){const R=this.eds.getCurrentEntityDetail(),x=this.currentWorkflowStage.value??{};R?.entity&&(C?x[R.entity.toLowerCase()]={entityId:R.entityId,workflowStage:C,timestamp:Date.now()}:delete x[R.entity.toLowerCase()],this._currentWorkflowStage.next(x))}get currentWorkflowStage(){return this._currentWorkflowStage}getOfficeWorkflow(C){return this.ws.get(this._workflowServiceUrl+"OfficeWorkflow",{json:C},null,!0)}getWorkflow(C){return this.ws.get(this._workflowServiceUrl+"Workflow",{json:C},null,!0)}getWorkflowCheck(C){return this.ws.get(this._workflowServiceUrl+"WorkflowCheck",{json:C},null,!0)}getPersonWorkflow(C){return this.ws.get(this._workflowServiceUrl+"PersonWorkflow",{json:C},null,!0)}insertWorkflowNode(C){return this.ws.post(this._workflowServiceUrl+"WorkflowNode",{json:C},null)}workflowNodeTsk(C){return this.ws.post(this._workflowServiceUrl+"WorkflowNodeTsk",{json:C},null)}getWorkflowStage(C,R){return this.ws.get(this._workflowServiceUrl+"WorkflowStage",{json:C,refresh:R},null,!0)}getGroup(C){return this.ws.get(this._workflowServiceUrl+"Group",{json:C},null,!0)}insertWorkflow(C){return this.ws.post(this._workflowServiceUrl+"Workflow",{json:C},null,null,!0)}updateWorkflow(C){return this.ws.post(this._workflowServiceUrl+"WorkflowUpdate",{json:C},null,null,!0)}getWorkflows(C,R){return this.ws.get(this._workflowServiceUrl+"workflow",{json:C,refresh:R},null,!0)}insertWorkflowStage(C){return this.ws.post(this._workflowServiceUrl+"workflowstage",{json:C},null,null,!0)}setCurrentWorkflow(C){this.currentWorkflow.next(C)}getCurrentWorkflow(){return this.currentWorkflow}save(){if("Add"==this.sharedData.mode){let C={};return C=this.sharedData.workflowModel,this.sharedData.selectedWorkflowGroup&&(C.groupIdList=this.sharedData.selectedWorkflowGroup.map(R=>R.groupId).toString()),C.workflowStageList=this.sharedData.workflowStageList.map(R=>R.stage).toString(),C.nodeIdList=this.sharedData.nodeIds,C.workflowStageTaskTemplate=this.sharedData.workflowStageTaskTemplate,console.log("final Params workflow:",JSON.stringify(C)),this.insertWorkflow(JSON.stringify(C)).pipe((0,a.U)(R=>R.length>0&&(this.sharedData.newWorkflow=R[0],!0)))}if("Edit"==this.sharedData.mode){let C={};return C.workflowId=this.sharedData.workflowModel.workflowId,C.dirtyWorkflow=this.sharedData.workflowFormDirtyValue,C.dirtyWorkflowGroup=this.sharedData.dirtyWorkflowGroup,C.dirtyWorkflowAccess=this.sharedData.dirtyWorkflowAccess,C.workflowStageList=this.sharedData.workflowStageList.map(R=>R.stage).toString(),C.dirtyWorkflowStage=this.sharedData.workflowStageDirtyDataEdited,C.dirtyWorkflowStageTaskTemplate=this.sharedData.dirtyWorkflowStageTaskTemplate,C.workflowStageTaskTemplate=this.sharedData.workflowStageTaskTemplate,console.log("edit workflow params",JSON.stringify(C)),this.updateWorkflow(JSON.stringify(C)).pipe((0,a.U)(R=>!0))}}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}static#e=this.\u0275fac=function(R){return new(R||A)(l.LFG(u.f),l.LFG(d.a))};static#t=this.\u0275prov=l.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})()},20553:(he,y,i)=>{"use strict";i.d(y,{N:()=>e});const e={config:"config/app-config.prod.json",production:!0,hmr:!1,firebase:{apiKey:"AIzaSyC61LPt56x-Pgdy7Y9AjoEivPknhAWx9yI",authDomain:"zenople.firebaseapp.com",databaseURL:"https://zenople.firebaseio.com",projectId:"zenople",storageBucket:"zenople.appspot.com",messagingSenderId:"1010388525952",appId:"1:1010388525952:web:9d0d382826914369f95765"}}},69982:(he,y,i)=>{"use strict";var e=i(6593),n=i(65879),o=i(69862),a=i(86825);
/**
         * @license Angular v16.1.6
         * (c) 2010-2022 Google LLC. https://angular.io/
         * License: MIT
         */function u(Et){return new n.vHH(3e3,!1)}function ne(Et){switch(Et.length){case 0:return new a.ZN;case 1:return Et[0];default:return new a.ZE(Et)}}function _e(Et,Cn,Fe=new Map,Zt=new Map){const Ln=[],So=[];let Jo=-1,Hr=null;if(Cn.forEach(Es=>{const Vs=Es.get("offset"),Ra=Vs==Jo,Ha=Ra&&Hr||new Map;Es.forEach((Al,kl)=>{let gl=kl,wl=Al;if("offset"!==kl)switch(gl=Et.normalizePropertyName(gl,Ln),wl){case a.k1:wl=Fe.get(kl);break;case a.l3:wl=Zt.get(kl);break;default:wl=Et.normalizeStyleValue(kl,gl,wl,Ln)}Ha.set(gl,wl)}),Ra||So.push(Ha),Hr=Ha,Jo=Vs}),Ln.length)throw function K(Et){return new n.vHH(3502,!1)}();return So}function ge(Et,Cn,Fe,Zt){switch(Cn){case"start":Et.onStart(()=>Zt(Fe&&Ce(Fe,"start",Et)));break;case"done":Et.onDone(()=>Zt(Fe&&Ce(Fe,"done",Et)));break;case"destroy":Et.onDestroy(()=>Zt(Fe&&Ce(Fe,"destroy",Et)))}}function Ce(Et,Cn,Fe){const So=Te(Et.element,Et.triggerName,Et.fromState,Et.toState,Cn||Et.phaseName,Fe.totalTime??Et.totalTime,!!Fe.disabled),Jo=Et._data;return null!=Jo&&(So._data=Jo),So}function Te(Et,Cn,Fe,Zt,Ln="",So=0,Jo){return{element:Et,triggerName:Cn,fromState:Fe,toState:Zt,phaseName:Ln,totalTime:So,disabled:!!Jo}}function De(Et,Cn,Fe){let Zt=Et.get(Cn);return Zt||Et.set(Cn,Zt=Fe),Zt}function fe(Et){const Cn=Et.indexOf(":");return[Et.substring(1,Cn),Et.slice(Cn+1)]}const xe=(()=>typeof document>"u"?null:document.documentElement)();function Oe(Et){const Cn=Et.parentNode||Et.host||null;return Cn===xe?null:Cn}let Gt=null,Ut=!1;function mt(Et,Cn){for(;Cn;){if(Cn===Et)return!0;Cn=Oe(Cn)}return!1}function ut(Et,Cn,Fe){if(Fe)return Array.from(Et.querySelectorAll(Cn));const Zt=Et.querySelector(Cn);return Zt?[Zt]:[]}let dn=(()=>{class Et{validateStyleProperty(Fe){return function An(Et){Gt||(Gt=function xn(){return typeof document<"u"?document.body:null}()||{},Ut=!!Gt.style&&"WebkitAppearance"in Gt.style);let Cn=!0;return Gt.style&&!function Le(Et){return"ebkit"==Et.substring(1,6)}(Et)&&(Cn=Et in Gt.style,!Cn&&Ut&&(Cn="Webkit"+Et.charAt(0).toUpperCase()+Et.slice(1)in Gt.style)),Cn}(Fe)}matchesElement(Fe,Zt){return!1}containsElement(Fe,Zt){return mt(Fe,Zt)}getParentElement(Fe){return Oe(Fe)}query(Fe,Zt,Ln){return ut(Fe,Zt,Ln)}computeStyle(Fe,Zt,Ln){return Ln||""}animate(Fe,Zt,Ln,So,Jo,Hr=[],Es){return new a.ZN(Ln,So)}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275prov=n.Yz7({token:Et,factory:Et.\u0275fac})}return Et})(),sn=(()=>{class Et{static#e=this.NOOP=new dn}return Et})();const fn=1e3,Mi="ng-enter",mi="ng-leave",Eo="ng-trigger",Ko=".ng-trigger",xo="ng-animating",Bn=".ng-animating";function Xt(Et){if("number"==typeof Et)return Et;const Cn=Et.match(/^(-?[\.\d]+)(m?s)/);return!Cn||Cn.length<2?0:Ji(parseFloat(Cn[1]),Cn[2])}function Ji(Et,Cn){return"s"===Cn?Et*fn:Et}function En(Et,Cn,Fe){return Et.hasOwnProperty("duration")?Et:function un(Et,Cn,Fe){let Ln,So=0,Jo="";if("string"==typeof Et){const Hr=Et.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Hr)return Cn.push(u()),{duration:0,delay:0,easing:""};Ln=Ji(parseFloat(Hr[1]),Hr[2]);const Es=Hr[3];null!=Es&&(So=Ji(parseFloat(Es),Hr[4]));const Vs=Hr[5];Vs&&(Jo=Vs)}else Ln=Et;if(!Fe){let Hr=!1,Es=Cn.length;Ln<0&&(Cn.push(function d(){return new n.vHH(3100,!1)}()),Hr=!0),So<0&&(Cn.push(function s(){return new n.vHH(3101,!1)}()),Hr=!0),Hr&&Cn.splice(Es,0,u())}return{duration:Ln,delay:So,easing:Jo}}(Et,Cn,Fe)}function Ki(Et,Cn={}){return Object.keys(Et).forEach(Fe=>{Cn[Fe]=Et[Fe]}),Cn}function Fn(Et){const Cn=new Map;return Object.keys(Et).forEach(Fe=>{Cn.set(Fe,Et[Fe])}),Cn}function Bt(Et,Cn=new Map,Fe){if(Fe)for(let[Zt,Ln]of Fe)Cn.set(Zt,Ln);for(let[Zt,Ln]of Et)Cn.set(Zt,Ln);return Cn}function xt(Et,Cn,Fe){Cn.forEach((Zt,Ln)=>{const So=jn(Ln);Fe&&!Fe.has(Ln)&&Fe.set(Ln,Et.style[So]),Et.style[So]=Zt})}function wt(Et,Cn){Cn.forEach((Fe,Zt)=>{const Ln=jn(Zt);Et.style[Ln]=""})}function Mt(Et){return Array.isArray(Et)?1==Et.length?Et[0]:(0,a.vP)(Et):Et}const Lt=new RegExp("{{\\s*(.+?)\\s*}}","g");function tt(Et){let Cn=[];if("string"==typeof Et){let Fe;for(;Fe=Lt.exec(Et);)Cn.push(Fe[1]);Lt.lastIndex=0}return Cn}function Ne(Et,Cn,Fe){const Zt=Et.toString(),Ln=Zt.replace(Lt,(So,Jo)=>{let Hr=Cn[Jo];return null==Hr&&(Fe.push(function _(Et){return new n.vHH(3003,!1)}()),Hr=""),Hr.toString()});return Ln==Zt?Et:Ln}function vt(Et){const Cn=[];let Fe=Et.next();for(;!Fe.done;)Cn.push(Fe.value),Fe=Et.next();return Cn}const ln=/-+([a-z0-9])/g;function jn(Et){return Et.replace(ln,(...Cn)=>Cn[1].toUpperCase())}function ot(Et,Cn,Fe){switch(Cn.type){case 7:return Et.visitTrigger(Cn,Fe);case 0:return Et.visitState(Cn,Fe);case 1:return Et.visitTransition(Cn,Fe);case 2:return Et.visitSequence(Cn,Fe);case 3:return Et.visitGroup(Cn,Fe);case 4:return Et.visitAnimate(Cn,Fe);case 5:return Et.visitKeyframes(Cn,Fe);case 6:return Et.visitStyle(Cn,Fe);case 8:return Et.visitReference(Cn,Fe);case 9:return Et.visitAnimateChild(Cn,Fe);case 10:return Et.visitAnimateRef(Cn,Fe);case 11:return Et.visitQuery(Cn,Fe);case 12:return Et.visitStagger(Cn,Fe);default:throw function C(Et){return new n.vHH(3004,!1)}()}}function pn(Et,Cn){return window.getComputedStyle(Et)[Cn]}const Xi="*";function ki(Et,Cn){const Fe=[];return"string"==typeof Et?Et.split(/\s*,\s*/).forEach(Zt=>function bo(Et,Cn,Fe){if(":"==Et[0]){const Es=function jo(Et,Cn){switch(Et){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(Fe,Zt)=>parseFloat(Zt)>parseFloat(Fe);case":decrement":return(Fe,Zt)=>parseFloat(Zt)<parseFloat(Fe);default:return Cn.push(function P(Et){return new n.vHH(3016,!1)}()),"* => *"}}(Et,Fe);if("function"==typeof Es)return void Cn.push(Es);Et=Es}const Zt=Et.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==Zt||Zt.length<4)return Fe.push(function F(Et){return new n.vHH(3015,!1)}()),Cn;const Ln=Zt[1],So=Zt[2],Jo=Zt[3];Cn.push(oo(Ln,Jo));"<"==So[0]&&!(Ln==Xi&&Jo==Xi)&&Cn.push(oo(Jo,Ln))}(Zt,Fe,Cn)):Fe.push(Et),Fe}const wn=new Set(["true","1"]),Zi=new Set(["false","0"]);function oo(Et,Cn){const Fe=wn.has(Et)||Zi.has(Et),Zt=wn.has(Cn)||Zi.has(Cn);return(Ln,So)=>{let Jo=Et==Xi||Et==Ln,Hr=Cn==Xi||Cn==So;return!Jo&&Fe&&"boolean"==typeof Ln&&(Jo=Ln?wn.has(Et):Zi.has(Et)),!Hr&&Zt&&"boolean"==typeof So&&(Hr=So?wn.has(Cn):Zi.has(Cn)),Jo&&Hr}}const Xo=new RegExp("s*:selfs*,?","g");function Lo(Et,Cn,Fe,Zt){return new xr(Et).build(Cn,Fe,Zt)}class xr{constructor(Cn){this._driver=Cn}build(Cn,Fe,Zt){const Ln=new ji(Fe);return this._resetContextStyleTimingState(Ln),ot(this,Mt(Cn),Ln)}_resetContextStyleTimingState(Cn){Cn.currentQuerySelector="",Cn.collectedStyles=new Map,Cn.collectedStyles.set("",new Map),Cn.currentTime=0}visitTrigger(Cn,Fe){let Zt=Fe.queryCount=0,Ln=Fe.depCount=0;const So=[],Jo=[];return"@"==Cn.name.charAt(0)&&Fe.errors.push(function x(){return new n.vHH(3006,!1)}()),Cn.definitions.forEach(Hr=>{if(this._resetContextStyleTimingState(Fe),0==Hr.type){const Es=Hr,Vs=Es.name;Vs.toString().split(/\s*,\s*/).forEach(Ra=>{Es.name=Ra,So.push(this.visitState(Es,Fe))}),Es.name=Vs}else if(1==Hr.type){const Es=this.visitTransition(Hr,Fe);Zt+=Es.queryCount,Ln+=Es.depCount,Jo.push(Es)}else Fe.errors.push(function f(){return new n.vHH(3007,!1)}())}),{type:7,name:Cn.name,states:So,transitions:Jo,queryCount:Zt,depCount:Ln,options:null}}visitState(Cn,Fe){const Zt=this.visitStyle(Cn.styles,Fe),Ln=Cn.options&&Cn.options.params||null;if(Zt.containsDynamicStyles){const So=new Set,Jo=Ln||{};Zt.styles.forEach(Hr=>{Hr instanceof Map&&Hr.forEach(Es=>{tt(Es).forEach(Vs=>{Jo.hasOwnProperty(Vs)||So.add(Vs)})})}),So.size&&(vt(So.values()),Fe.errors.push(function k(Et,Cn){return new n.vHH(3008,!1)}()))}return{type:0,name:Cn.name,style:Zt,options:Ln?{params:Ln}:null}}visitTransition(Cn,Fe){Fe.queryCount=0,Fe.depCount=0;const Zt=ot(this,Mt(Cn.animation),Fe);return{type:1,matchers:ki(Cn.expr,Fe.errors),animation:Zt,queryCount:Fe.queryCount,depCount:Fe.depCount,options:ai(Cn.options)}}visitSequence(Cn,Fe){return{type:2,steps:Cn.steps.map(Zt=>ot(this,Zt,Fe)),options:ai(Cn.options)}}visitGroup(Cn,Fe){const Zt=Fe.currentTime;let Ln=0;const So=Cn.steps.map(Jo=>{Fe.currentTime=Zt;const Hr=ot(this,Jo,Fe);return Ln=Math.max(Ln,Fe.currentTime),Hr});return Fe.currentTime=Ln,{type:3,steps:So,options:ai(Cn.options)}}visitAnimate(Cn,Fe){const Zt=function rt(Et,Cn){if(Et.hasOwnProperty("duration"))return Et;if("number"==typeof Et)return Gn(En(Et,Cn).duration,0,"");const Fe=Et;if(Fe.split(/\s+/).some(So=>"{"==So.charAt(0)&&"{"==So.charAt(1))){const So=Gn(0,0,"");return So.dynamic=!0,So.strValue=Fe,So}const Ln=En(Fe,Cn);return Gn(Ln.duration,Ln.delay,Ln.easing)}(Cn.timings,Fe.errors);Fe.currentAnimateTimings=Zt;let Ln,So=Cn.styles?Cn.styles:(0,a.oB)({});if(5==So.type)Ln=this.visitKeyframes(So,Fe);else{let Jo=Cn.styles,Hr=!1;if(!Jo){Hr=!0;const Vs={};Zt.easing&&(Vs.easing=Zt.easing),Jo=(0,a.oB)(Vs)}Fe.currentTime+=Zt.duration+Zt.delay;const Es=this.visitStyle(Jo,Fe);Es.isEmptyStep=Hr,Ln=Es}return Fe.currentAnimateTimings=null,{type:4,timings:Zt,style:Ln,options:null}}visitStyle(Cn,Fe){const Zt=this._makeStyleAst(Cn,Fe);return this._validateStyleAst(Zt,Fe),Zt}_makeStyleAst(Cn,Fe){const Zt=[],Ln=Array.isArray(Cn.styles)?Cn.styles:[Cn.styles];for(let Hr of Ln)"string"==typeof Hr?Hr===a.l3?Zt.push(Hr):Fe.errors.push(new n.vHH(3002,!1)):Zt.push(Fn(Hr));let So=!1,Jo=null;return Zt.forEach(Hr=>{if(Hr instanceof Map&&(Hr.has("easing")&&(Jo=Hr.get("easing"),Hr.delete("easing")),!So))for(let Es of Hr.values())if(Es.toString().indexOf("{{")>=0){So=!0;break}}),{type:6,styles:Zt,easing:Jo,offset:Cn.offset,containsDynamicStyles:So,options:null}}_validateStyleAst(Cn,Fe){const Zt=Fe.currentAnimateTimings;let Ln=Fe.currentTime,So=Fe.currentTime;Zt&&So>0&&(So-=Zt.duration+Zt.delay),Cn.styles.forEach(Jo=>{"string"!=typeof Jo&&Jo.forEach((Hr,Es)=>{const Vs=Fe.collectedStyles.get(Fe.currentQuerySelector),Ra=Vs.get(Es);let Ha=!0;Ra&&(So!=Ln&&So>=Ra.startTime&&Ln<=Ra.endTime&&(Fe.errors.push(function M(Et,Cn,Fe,Zt,Ln){return new n.vHH(3010,!1)}()),Ha=!1),So=Ra.startTime),Ha&&Vs.set(Es,{startTime:So,endTime:Ln}),Fe.options&&function pt(Et,Cn,Fe){const Zt=Cn.params||{},Ln=tt(Et);Ln.length&&Ln.forEach(So=>{Zt.hasOwnProperty(So)||Fe.push(function A(Et){return new n.vHH(3001,!1)}())})}(Hr,Fe.options,Fe.errors)})})}visitKeyframes(Cn,Fe){const Zt={type:5,styles:[],options:null};if(!Fe.currentAnimateTimings)return Fe.errors.push(function p(){return new n.vHH(3011,!1)}()),Zt;let So=0;const Jo=[];let Hr=!1,Es=!1,Vs=0;const Ra=Cn.steps.map(Rl=>{const jc=this._makeStyleAst(Rl,Fe);let Md=null!=jc.offset?jc.offset:function Fo(Et){if("string"==typeof Et)return null;let Cn=null;if(Array.isArray(Et))Et.forEach(Fe=>{if(Fe instanceof Map&&Fe.has("offset")){const Zt=Fe;Cn=parseFloat(Zt.get("offset")),Zt.delete("offset")}});else if(Et instanceof Map&&Et.has("offset")){const Fe=Et;Cn=parseFloat(Fe.get("offset")),Fe.delete("offset")}return Cn}(jc.styles),Sc=0;return null!=Md&&(So++,Sc=jc.offset=Md),Es=Es||Sc<0||Sc>1,Hr=Hr||Sc<Vs,Vs=Sc,Jo.push(Sc),jc});Es&&Fe.errors.push(function E(){return new n.vHH(3012,!1)}()),Hr&&Fe.errors.push(function b(){return new n.vHH(3200,!1)}());const Ha=Cn.steps.length;let Al=0;So>0&&So<Ha?Fe.errors.push(function I(){return new n.vHH(3202,!1)}()):0==So&&(Al=1/(Ha-1));const kl=Ha-1,gl=Fe.currentTime,wl=Fe.currentAnimateTimings,Pc=wl.duration;return Ra.forEach((Rl,jc)=>{const Md=Al>0?jc==kl?1:Al*jc:Jo[jc],Sc=Md*Pc;Fe.currentTime=gl+wl.delay+Sc,wl.duration=Sc,this._validateStyleAst(Rl,Fe),Rl.offset=Md,Zt.styles.push(Rl)}),Zt}visitReference(Cn,Fe){return{type:8,animation:ot(this,Mt(Cn.animation),Fe),options:ai(Cn.options)}}visitAnimateChild(Cn,Fe){return Fe.depCount++,{type:9,options:ai(Cn.options)}}visitAnimateRef(Cn,Fe){return{type:10,animation:this.visitReference(Cn.animation,Fe),options:ai(Cn.options)}}visitQuery(Cn,Fe){const Zt=Fe.currentQuerySelector,Ln=Cn.options||{};Fe.queryCount++,Fe.currentQuery=Cn;const[So,Jo]=function Nr(Et){const Cn=!!Et.split(/\s*,\s*/).find(Fe=>":self"==Fe);return Cn&&(Et=Et.replace(Xo,"")),Et=Et.replace(/@\*/g,Ko).replace(/@\w+/g,Fe=>Ko+"-"+Fe.slice(1)).replace(/:animating/g,Bn),[Et,Cn]}(Cn.selector);Fe.currentQuerySelector=Zt.length?Zt+" "+So:So,De(Fe.collectedStyles,Fe.currentQuerySelector,new Map);const Hr=ot(this,Mt(Cn.animation),Fe);return Fe.currentQuery=null,Fe.currentQuerySelector=Zt,{type:11,selector:So,limit:Ln.limit||0,optional:!!Ln.optional,includeSelf:Jo,animation:Hr,originalSelector:Cn.selector,options:ai(Cn.options)}}visitStagger(Cn,Fe){Fe.currentQuery||Fe.errors.push(function L(){return new n.vHH(3013,!1)}());const Zt="full"===Cn.timings?{duration:0,delay:0,easing:"full"}:En(Cn.timings,Fe.errors,!0);return{type:12,animation:ot(this,Mt(Cn.animation),Fe),timings:Zt,options:null}}}class ji{constructor(Cn){this.errors=Cn,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ai(Et){return Et?(Et=Ki(Et)).params&&(Et.params=function as(Et){return Et?Ki(Et):null}(Et.params)):Et={},Et}function Gn(Et,Cn,Fe){return{duration:Et,delay:Cn,easing:Fe}}function Io(Et,Cn,Fe,Zt,Ln,So,Jo=null,Hr=!1){return{type:1,element:Et,keyframes:Cn,preStyleProps:Fe,postStyleProps:Zt,duration:Ln,delay:So,totalTime:Ln+So,easing:Jo,subTimeline:Hr}}class wr{constructor(){this._map=new Map}get(Cn){return this._map.get(Cn)||[]}append(Cn,Fe){let Zt=this._map.get(Cn);Zt||this._map.set(Cn,Zt=[]),Zt.push(...Fe)}has(Cn){return this._map.has(Cn)}clear(){this._map.clear()}}const ms=new RegExp(":enter","g"),Ea=new RegExp(":leave","g");function Sa(Et,Cn,Fe,Zt,Ln,So=new Map,Jo=new Map,Hr,Es,Vs=[]){return(new tr).buildKeyframes(Et,Cn,Fe,Zt,Ln,So,Jo,Hr,Es,Vs)}class tr{buildKeyframes(Cn,Fe,Zt,Ln,So,Jo,Hr,Es,Vs,Ra=[]){Vs=Vs||new wr;const Ha=new Li(Cn,Fe,Vs,Ln,So,Ra,[]);Ha.options=Es;const Al=Es.delay?Xt(Es.delay):0;Ha.currentTimeline.delayNextStep(Al),Ha.currentTimeline.setStyles([Jo],null,Ha.errors,Es),ot(this,Zt,Ha);const kl=Ha.timelines.filter(gl=>gl.containsAnimation());if(kl.length&&Hr.size){let gl;for(let wl=kl.length-1;wl>=0;wl--){const Pc=kl[wl];if(Pc.element===Fe){gl=Pc;break}}gl&&!gl.allowOnlyTimelineStyles()&&gl.setStyles([Hr],null,Ha.errors,Es)}return kl.length?kl.map(gl=>gl.buildKeyframes()):[Io(Fe,[],[],[],0,Al,"",!1)]}visitTrigger(Cn,Fe){}visitState(Cn,Fe){}visitTransition(Cn,Fe){}visitAnimateChild(Cn,Fe){const Zt=Fe.subInstructions.get(Fe.element);if(Zt){const Ln=Fe.createSubContext(Cn.options),So=Fe.currentTimeline.currentTime,Jo=this._visitSubInstructions(Zt,Ln,Ln.options);So!=Jo&&Fe.transformIntoNewTimeline(Jo)}Fe.previousNode=Cn}visitAnimateRef(Cn,Fe){const Zt=Fe.createSubContext(Cn.options);Zt.transformIntoNewTimeline(),this._applyAnimationRefDelays([Cn.options,Cn.animation.options],Fe,Zt),this.visitReference(Cn.animation,Zt),Fe.transformIntoNewTimeline(Zt.currentTimeline.currentTime),Fe.previousNode=Cn}_applyAnimationRefDelays(Cn,Fe,Zt){for(const Ln of Cn){const So=Ln?.delay;if(So){const Jo="number"==typeof So?So:Xt(Ne(So,Ln?.params??{},Fe.errors));Zt.delayNextStep(Jo)}}}_visitSubInstructions(Cn,Fe,Zt){let So=Fe.currentTimeline.currentTime;const Jo=null!=Zt.duration?Xt(Zt.duration):null,Hr=null!=Zt.delay?Xt(Zt.delay):null;return 0!==Jo&&Cn.forEach(Es=>{const Vs=Fe.appendInstructionToTimeline(Es,Jo,Hr);So=Math.max(So,Vs.duration+Vs.delay)}),So}visitReference(Cn,Fe){Fe.updateOptions(Cn.options,!0),ot(this,Cn.animation,Fe),Fe.previousNode=Cn}visitSequence(Cn,Fe){const Zt=Fe.subContextCount;let Ln=Fe;const So=Cn.options;if(So&&(So.params||So.delay)&&(Ln=Fe.createSubContext(So),Ln.transformIntoNewTimeline(),null!=So.delay)){6==Ln.previousNode.type&&(Ln.currentTimeline.snapshotCurrentStyles(),Ln.previousNode=Mr);const Jo=Xt(So.delay);Ln.delayNextStep(Jo)}Cn.steps.length&&(Cn.steps.forEach(Jo=>ot(this,Jo,Ln)),Ln.currentTimeline.applyStylesToKeyframe(),Ln.subContextCount>Zt&&Ln.transformIntoNewTimeline()),Fe.previousNode=Cn}visitGroup(Cn,Fe){const Zt=[];let Ln=Fe.currentTimeline.currentTime;const So=Cn.options&&Cn.options.delay?Xt(Cn.options.delay):0;Cn.steps.forEach(Jo=>{const Hr=Fe.createSubContext(Cn.options);So&&Hr.delayNextStep(So),ot(this,Jo,Hr),Ln=Math.max(Ln,Hr.currentTimeline.currentTime),Zt.push(Hr.currentTimeline)}),Zt.forEach(Jo=>Fe.currentTimeline.mergeTimelineCollectedStyles(Jo)),Fe.transformIntoNewTimeline(Ln),Fe.previousNode=Cn}_visitTiming(Cn,Fe){if(Cn.dynamic){const Zt=Cn.strValue;return En(Fe.params?Ne(Zt,Fe.params,Fe.errors):Zt,Fe.errors)}return{duration:Cn.duration,delay:Cn.delay,easing:Cn.easing}}visitAnimate(Cn,Fe){const Zt=Fe.currentAnimateTimings=this._visitTiming(Cn.timings,Fe),Ln=Fe.currentTimeline;Zt.delay&&(Fe.incrementTime(Zt.delay),Ln.snapshotCurrentStyles());const So=Cn.style;5==So.type?this.visitKeyframes(So,Fe):(Fe.incrementTime(Zt.duration),this.visitStyle(So,Fe),Ln.applyStylesToKeyframe()),Fe.currentAnimateTimings=null,Fe.previousNode=Cn}visitStyle(Cn,Fe){const Zt=Fe.currentTimeline,Ln=Fe.currentAnimateTimings;!Ln&&Zt.hasCurrentStyleProperties()&&Zt.forwardFrame();const So=Ln&&Ln.easing||Cn.easing;Cn.isEmptyStep?Zt.applyEmptyStep(So):Zt.setStyles(Cn.styles,So,Fe.errors,Fe.options),Fe.previousNode=Cn}visitKeyframes(Cn,Fe){const Zt=Fe.currentAnimateTimings,Ln=Fe.currentTimeline.duration,So=Zt.duration,Hr=Fe.createSubContext().currentTimeline;Hr.easing=Zt.easing,Cn.styles.forEach(Es=>{Hr.forwardTime((Es.offset||0)*So),Hr.setStyles(Es.styles,Es.easing,Fe.errors,Fe.options),Hr.applyStylesToKeyframe()}),Fe.currentTimeline.mergeTimelineCollectedStyles(Hr),Fe.transformIntoNewTimeline(Ln+So),Fe.previousNode=Cn}visitQuery(Cn,Fe){const Zt=Fe.currentTimeline.currentTime,Ln=Cn.options||{},So=Ln.delay?Xt(Ln.delay):0;So&&(6===Fe.previousNode.type||0==Zt&&Fe.currentTimeline.hasCurrentStyleProperties())&&(Fe.currentTimeline.snapshotCurrentStyles(),Fe.previousNode=Mr);let Jo=Zt;const Hr=Fe.invokeQuery(Cn.selector,Cn.originalSelector,Cn.limit,Cn.includeSelf,!!Ln.optional,Fe.errors);Fe.currentQueryTotal=Hr.length;let Es=null;Hr.forEach((Vs,Ra)=>{Fe.currentQueryIndex=Ra;const Ha=Fe.createSubContext(Cn.options,Vs);So&&Ha.delayNextStep(So),Vs===Fe.element&&(Es=Ha.currentTimeline),ot(this,Cn.animation,Ha),Ha.currentTimeline.applyStylesToKeyframe(),Jo=Math.max(Jo,Ha.currentTimeline.currentTime)}),Fe.currentQueryIndex=0,Fe.currentQueryTotal=0,Fe.transformIntoNewTimeline(Jo),Es&&(Fe.currentTimeline.mergeTimelineCollectedStyles(Es),Fe.currentTimeline.snapshotCurrentStyles()),Fe.previousNode=Cn}visitStagger(Cn,Fe){const Zt=Fe.parentContext,Ln=Fe.currentTimeline,So=Cn.timings,Jo=Math.abs(So.duration),Hr=Jo*(Fe.currentQueryTotal-1);let Es=Jo*Fe.currentQueryIndex;switch(So.duration<0?"reverse":So.easing){case"reverse":Es=Hr-Es;break;case"full":Es=Zt.currentStaggerTime}const Ra=Fe.currentTimeline;Es&&Ra.delayNextStep(Es);const Ha=Ra.currentTime;ot(this,Cn.animation,Fe),Fe.previousNode=Cn,Zt.currentStaggerTime=Ln.currentTime-Ha+(Ln.startTime-Zt.currentTimeline.startTime)}}const Mr={};class Li{constructor(Cn,Fe,Zt,Ln,So,Jo,Hr,Es){this._driver=Cn,this.element=Fe,this.subInstructions=Zt,this._enterClassName=Ln,this._leaveClassName=So,this.errors=Jo,this.timelines=Hr,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Mr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Es||new Ao(this._driver,Fe,0),Hr.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(Cn,Fe){if(!Cn)return;const Zt=Cn;let Ln=this.options;null!=Zt.duration&&(Ln.duration=Xt(Zt.duration)),null!=Zt.delay&&(Ln.delay=Xt(Zt.delay));const So=Zt.params;if(So){let Jo=Ln.params;Jo||(Jo=this.options.params={}),Object.keys(So).forEach(Hr=>{(!Fe||!Jo.hasOwnProperty(Hr))&&(Jo[Hr]=Ne(So[Hr],Jo,this.errors))})}}_copyOptions(){const Cn={};if(this.options){const Fe=this.options.params;if(Fe){const Zt=Cn.params={};Object.keys(Fe).forEach(Ln=>{Zt[Ln]=Fe[Ln]})}}return Cn}createSubContext(Cn=null,Fe,Zt){const Ln=Fe||this.element,So=new Li(this._driver,Ln,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Ln,Zt||0));return So.previousNode=this.previousNode,So.currentAnimateTimings=this.currentAnimateTimings,So.options=this._copyOptions(),So.updateOptions(Cn),So.currentQueryIndex=this.currentQueryIndex,So.currentQueryTotal=this.currentQueryTotal,So.parentContext=this,this.subContextCount++,So}transformIntoNewTimeline(Cn){return this.previousNode=Mr,this.currentTimeline=this.currentTimeline.fork(this.element,Cn),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(Cn,Fe,Zt){const Ln={duration:Fe??Cn.duration,delay:this.currentTimeline.currentTime+(Zt??0)+Cn.delay,easing:""},So=new ao(this._driver,Cn.element,Cn.keyframes,Cn.preStyleProps,Cn.postStyleProps,Ln,Cn.stretchStartingKeyframe);return this.timelines.push(So),Ln}incrementTime(Cn){this.currentTimeline.forwardTime(this.currentTimeline.duration+Cn)}delayNextStep(Cn){Cn>0&&this.currentTimeline.delayNextStep(Cn)}invokeQuery(Cn,Fe,Zt,Ln,So,Jo){let Hr=[];if(Ln&&Hr.push(this.element),Cn.length>0){Cn=(Cn=Cn.replace(ms,"."+this._enterClassName)).replace(Ea,"."+this._leaveClassName);let Vs=this._driver.query(this.element,Cn,1!=Zt);0!==Zt&&(Vs=Zt<0?Vs.slice(Vs.length+Zt,Vs.length):Vs.slice(0,Zt)),Hr.push(...Vs)}return!So&&0==Hr.length&&Jo.push(function D(Et){return new n.vHH(3014,!1)}()),Hr}}class Ao{constructor(Cn,Fe,Zt,Ln){this._driver=Cn,this.element=Fe,this.startTime=Zt,this._elementTimelineStylesLookup=Ln,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(Fe),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(Fe,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(Cn){const Fe=1===this._keyframes.size&&this._pendingStyles.size;this.duration||Fe?(this.forwardTime(this.currentTime+Cn),Fe&&this.snapshotCurrentStyles()):this.startTime+=Cn}fork(Cn,Fe){return this.applyStylesToKeyframe(),new Ao(this._driver,Cn,Fe||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(Cn){this.applyStylesToKeyframe(),this.duration=Cn,this._loadKeyframe()}_updateStyle(Cn,Fe){this._localTimelineStyles.set(Cn,Fe),this._globalTimelineStyles.set(Cn,Fe),this._styleSummary.set(Cn,{time:this.currentTime,value:Fe})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(Cn){Cn&&this._previousKeyframe.set("easing",Cn);for(let[Fe,Zt]of this._globalTimelineStyles)this._backFill.set(Fe,Zt||a.l3),this._currentKeyframe.set(Fe,a.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(Cn,Fe,Zt,Ln){Fe&&this._previousKeyframe.set("easing",Fe);const So=Ln&&Ln.params||{},Jo=function pr(Et,Cn){const Fe=new Map;let Zt;return Et.forEach(Ln=>{if("*"===Ln){Zt=Zt||Cn.keys();for(let So of Zt)Fe.set(So,a.l3)}else Bt(Ln,Fe)}),Fe}(Cn,this._globalTimelineStyles);for(let[Hr,Es]of Jo){const Vs=Ne(Es,So,Zt);this._pendingStyles.set(Hr,Vs),this._localTimelineStyles.has(Hr)||this._backFill.set(Hr,this._globalTimelineStyles.get(Hr)??a.l3),this._updateStyle(Hr,Vs)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((Cn,Fe)=>{this._currentKeyframe.set(Fe,Cn)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((Cn,Fe)=>{this._currentKeyframe.has(Fe)||this._currentKeyframe.set(Fe,Cn)}))}snapshotCurrentStyles(){for(let[Cn,Fe]of this._localTimelineStyles)this._pendingStyles.set(Cn,Fe),this._updateStyle(Cn,Fe)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const Cn=[];for(let Fe in this._currentKeyframe)Cn.push(Fe);return Cn}mergeTimelineCollectedStyles(Cn){Cn._styleSummary.forEach((Fe,Zt)=>{const Ln=this._styleSummary.get(Zt);(!Ln||Fe.time>Ln.time)&&this._updateStyle(Zt,Fe.value)})}buildKeyframes(){this.applyStylesToKeyframe();const Cn=new Set,Fe=new Set,Zt=1===this._keyframes.size&&0===this.duration;let Ln=[];this._keyframes.forEach((Hr,Es)=>{const Vs=Bt(Hr,new Map,this._backFill);Vs.forEach((Ra,Ha)=>{Ra===a.k1?Cn.add(Ha):Ra===a.l3&&Fe.add(Ha)}),Zt||Vs.set("offset",Es/this.duration),Ln.push(Vs)});const So=Cn.size?vt(Cn.values()):[],Jo=Fe.size?vt(Fe.values()):[];if(Zt){const Hr=Ln[0],Es=new Map(Hr);Hr.set("offset",0),Es.set("offset",1),Ln=[Hr,Es]}return Io(this.element,Ln,So,Jo,this.duration,this.startTime,this.easing,!1)}}class ao extends Ao{constructor(Cn,Fe,Zt,Ln,So,Jo,Hr=!1){super(Cn,Fe,Jo.delay),this.keyframes=Zt,this.preStyleProps=Ln,this.postStyleProps=So,this._stretchStartingKeyframe=Hr,this.timings={duration:Jo.duration,delay:Jo.delay,easing:Jo.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let Cn=this.keyframes,{delay:Fe,duration:Zt,easing:Ln}=this.timings;if(this._stretchStartingKeyframe&&Fe){const So=[],Jo=Zt+Fe,Hr=Fe/Jo,Es=Bt(Cn[0]);Es.set("offset",0),So.push(Es);const Vs=Bt(Cn[0]);Vs.set("offset",Go(Hr)),So.push(Vs);const Ra=Cn.length-1;for(let Ha=1;Ha<=Ra;Ha++){let Al=Bt(Cn[Ha]);const kl=Al.get("offset");Al.set("offset",Go((Fe+kl*Zt)/Jo)),So.push(Al)}Zt=Jo,Fe=0,Ln="",Cn=So}return Io(this.element,Cn,this.preStyleProps,this.postStyleProps,Zt,Fe,Ln,!0)}}function Go(Et,Cn=3){const Fe=Math.pow(10,Cn-1);return Math.round(Et*Fe)/Fe}class br{}const mr=new Set(["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"]);class ri extends br{normalizePropertyName(Cn,Fe){return jn(Cn)}normalizeStyleValue(Cn,Fe,Zt,Ln){let So="";const Jo=Zt.toString().trim();if(mr.has(Fe)&&0!==Zt&&"0"!==Zt)if("number"==typeof Zt)So="px";else{const Hr=Zt.match(/^[+-]?[\d\.]+([a-z]*)$/);Hr&&0==Hr[1].length&&Ln.push(function R(Et,Cn){return new n.vHH(3005,!1)}())}return Jo+So}}function mo(Et,Cn,Fe,Zt,Ln,So,Jo,Hr,Es,Vs,Ra,Ha,Al){return{type:0,element:Et,triggerName:Cn,isRemovalTransition:Ln,fromState:Fe,fromStyles:So,toState:Zt,toStyles:Jo,timelines:Hr,queriedElements:Es,preStyleProps:Vs,postStyleProps:Ra,totalTime:Ha,errors:Al}}const Ii={};class yo{constructor(Cn,Fe,Zt){this._triggerName=Cn,this.ast=Fe,this._stateStyles=Zt}match(Cn,Fe,Zt,Ln){return function Yr(Et,Cn,Fe,Zt,Ln){return Et.some(So=>So(Cn,Fe,Zt,Ln))}(this.ast.matchers,Cn,Fe,Zt,Ln)}buildStyles(Cn,Fe,Zt){let Ln=this._stateStyles.get("*");return void 0!==Cn&&(Ln=this._stateStyles.get(Cn?.toString())||Ln),Ln?Ln.buildStyles(Fe,Zt):new Map}build(Cn,Fe,Zt,Ln,So,Jo,Hr,Es,Vs,Ra){const Ha=[],Al=this.ast.options&&this.ast.options.params||Ii,gl=this.buildStyles(Zt,Hr&&Hr.params||Ii,Ha),wl=Es&&Es.params||Ii,Pc=this.buildStyles(Ln,wl,Ha),Rl=new Set,jc=new Map,Md=new Map,Sc="void"===Ln,fh={params:Gs(wl,Al),delay:this.ast.options?.delay},tu=Ra?[]:Sa(Cn,Fe,this.ast.animation,So,Jo,gl,Pc,fh,Vs,Ha);let pc=0;if(tu.forEach(hp=>{pc=Math.max(hp.duration+hp.delay,pc)}),Ha.length)return mo(Fe,this._triggerName,Zt,Ln,Sc,gl,Pc,[],[],jc,Md,pc,Ha);tu.forEach(hp=>{const dm=hp.element,Jh=De(jc,dm,new Set);hp.preStyleProps.forEach(wf=>Jh.add(wf));const um=De(Md,dm,new Set);hp.postStyleProps.forEach(wf=>um.add(wf)),dm!==Fe&&Rl.add(dm)});const wc=vt(Rl.values());return mo(Fe,this._triggerName,Zt,Ln,Sc,gl,Pc,tu,wc,jc,Md,pc)}}function Gs(Et,Cn){const Fe=Ki(Cn);for(const Zt in Et)Et.hasOwnProperty(Zt)&&null!=Et[Zt]&&(Fe[Zt]=Et[Zt]);return Fe}class fi{constructor(Cn,Fe,Zt){this.styles=Cn,this.defaultParams=Fe,this.normalizer=Zt}buildStyles(Cn,Fe){const Zt=new Map,Ln=Ki(this.defaultParams);return Object.keys(Cn).forEach(So=>{const Jo=Cn[So];null!==Jo&&(Ln[So]=Jo)}),this.styles.styles.forEach(So=>{"string"!=typeof So&&So.forEach((Jo,Hr)=>{Jo&&(Jo=Ne(Jo,Ln,Fe));const Es=this.normalizer.normalizePropertyName(Hr,Fe);Jo=this.normalizer.normalizeStyleValue(Hr,Es,Jo,Fe),Zt.set(Hr,Jo)})}),Zt}}class _t{constructor(Cn,Fe,Zt){this.name=Cn,this.ast=Fe,this._normalizer=Zt,this.transitionFactories=[],this.states=new Map,Fe.states.forEach(Ln=>{this.states.set(Ln.name,new fi(Ln.style,Ln.options&&Ln.options.params||{},Zt))}),qo(this.states,"true","1"),qo(this.states,"false","0"),Fe.transitions.forEach(Ln=>{this.transitionFactories.push(new yo(Cn,Ln,this.states))}),this.fallbackTransition=function Zn(Et,Cn,Fe){return new yo(Et,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Jo,Hr)=>!0],options:null,queryCount:0,depCount:0},Cn)}(Cn,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(Cn,Fe,Zt,Ln){return this.transitionFactories.find(Jo=>Jo.match(Cn,Fe,Zt,Ln))||null}matchStyles(Cn,Fe,Zt){return this.fallbackTransition.buildStyles(Cn,Fe,Zt)}}function qo(Et,Cn,Fe){Et.has(Cn)?Et.has(Fe)||Et.set(Fe,Et.get(Cn)):Et.has(Fe)&&Et.set(Cn,Et.get(Fe))}const Cr=new wr;class kr{constructor(Cn,Fe,Zt){this.bodyNode=Cn,this._driver=Fe,this._normalizer=Zt,this._animations=new Map,this._playersById=new Map,this.players=[]}register(Cn,Fe){const Zt=[],So=Lo(this._driver,Fe,Zt,[]);if(Zt.length)throw function X(Et){return new n.vHH(3503,!1)}();this._animations.set(Cn,So)}_buildPlayer(Cn,Fe,Zt){const Ln=Cn.element,So=_e(this._normalizer,Cn.keyframes,Fe,Zt);return this._driver.animate(Ln,So,Cn.duration,Cn.delay,Cn.easing,[],!0)}create(Cn,Fe,Zt={}){const Ln=[],So=this._animations.get(Cn);let Jo;const Hr=new Map;if(So?(Jo=Sa(this._driver,Fe,So,Mi,mi,new Map,new Map,Zt,Cr,Ln),Jo.forEach(Ra=>{const Ha=De(Hr,Ra.element,new Map);Ra.postStyleProps.forEach(Al=>Ha.set(Al,null))})):(Ln.push(function me(){return new n.vHH(3300,!1)}()),Jo=[]),Ln.length)throw function J(Et){return new n.vHH(3504,!1)}();Hr.forEach((Ra,Ha)=>{Ra.forEach((Al,kl)=>{Ra.set(kl,this._driver.computeStyle(Ha,kl,a.l3))})});const Vs=ne(Jo.map(Ra=>{const Ha=Hr.get(Ra.element);return this._buildPlayer(Ra,new Map,Ha)}));return this._playersById.set(Cn,Vs),Vs.onDestroy(()=>this.destroy(Cn)),this.players.push(Vs),Vs}destroy(Cn){const Fe=this._getPlayer(Cn);Fe.destroy(),this._playersById.delete(Cn);const Zt=this.players.indexOf(Fe);Zt>=0&&this.players.splice(Zt,1)}_getPlayer(Cn){const Fe=this._playersById.get(Cn);if(!Fe)throw function Q(Et){return new n.vHH(3301,!1)}();return Fe}listen(Cn,Fe,Zt,Ln){const So=Te(Fe,"","","");return ge(this._getPlayer(Cn),Zt,So,Ln),()=>{}}command(Cn,Fe,Zt,Ln){if("register"==Zt)return void this.register(Cn,Ln[0]);if("create"==Zt)return void this.create(Cn,Fe,Ln[0]||{});const So=this._getPlayer(Cn);switch(Zt){case"play":So.play();break;case"pause":So.pause();break;case"reset":So.reset();break;case"restart":So.restart();break;case"finish":So.finish();break;case"init":So.init();break;case"setPosition":So.setPosition(parseFloat(Ln[0]));break;case"destroy":this.destroy(Cn)}}}const xs="ng-animate-queued",Ts="ng-animate-disabled",Ar=[],No={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},qr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},js="__ng_removed";class Ds{get params(){return this.options.params}constructor(Cn,Fe=""){this.namespaceId=Fe;const Zt=Cn&&Cn.hasOwnProperty("value");if(this.value=function Za(Et){return Et??null}(Zt?Cn.value:Cn),Zt){const So=Ki(Cn);delete So.value,this.options=So}else this.options={};this.options.params||(this.options.params={})}absorbOptions(Cn){const Fe=Cn.params;if(Fe){const Zt=this.options.params;Object.keys(Fe).forEach(Ln=>{null==Zt[Ln]&&(Zt[Ln]=Fe[Ln])})}}}const Zr="void",ls=new Ds(Zr);class Hs{constructor(Cn,Fe,Zt){this.id=Cn,this.hostElement=Fe,this._engine=Zt,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+Cn,vi(Fe,this._hostClassName)}listen(Cn,Fe,Zt,Ln){if(!this._triggers.has(Fe))throw function re(Et,Cn){return new n.vHH(3302,!1)}();if(null==Zt||0==Zt.length)throw function de(Et){return new n.vHH(3303,!1)}();if(!function Jt(Et){return"start"==Et||"done"==Et}(Zt))throw function te(Et,Cn){return new n.vHH(3400,!1)}();const So=De(this._elementListeners,Cn,[]),Jo={name:Fe,phase:Zt,callback:Ln};So.push(Jo);const Hr=De(this._engine.statesByElement,Cn,new Map);return Hr.has(Fe)||(vi(Cn,Eo),vi(Cn,Eo+"-"+Fe),Hr.set(Fe,ls)),()=>{this._engine.afterFlush(()=>{const Es=So.indexOf(Jo);Es>=0&&So.splice(Es,1),this._triggers.has(Fe)||Hr.delete(Fe)})}}register(Cn,Fe){return!this._triggers.has(Cn)&&(this._triggers.set(Cn,Fe),!0)}_getTrigger(Cn){const Fe=this._triggers.get(Cn);if(!Fe)throw function j(Et){return new n.vHH(3401,!1)}();return Fe}trigger(Cn,Fe,Zt,Ln=!0){const So=this._getTrigger(Fe),Jo=new Wa(this.id,Fe,Cn);let Hr=this._engine.statesByElement.get(Cn);Hr||(vi(Cn,Eo),vi(Cn,Eo+"-"+Fe),this._engine.statesByElement.set(Cn,Hr=new Map));let Es=Hr.get(Fe);const Vs=new Ds(Zt,this.id);if(!(Zt&&Zt.hasOwnProperty("value"))&&Es&&Vs.absorbOptions(Es.options),Hr.set(Fe,Vs),Es||(Es=ls),Vs.value!==Zr&&Es.value===Vs.value){if(!function Ur(Et,Cn){const Fe=Object.keys(Et),Zt=Object.keys(Cn);if(Fe.length!=Zt.length)return!1;for(let Ln=0;Ln<Fe.length;Ln++){const So=Fe[Ln];if(!Cn.hasOwnProperty(So)||Et[So]!==Cn[So])return!1}return!0}(Es.params,Vs.params)){const wl=[],Pc=So.matchStyles(Es.value,Es.params,wl),Rl=So.matchStyles(Vs.value,Vs.params,wl);wl.length?this._engine.reportError(wl):this._engine.afterFlush(()=>{wt(Cn,Pc),xt(Cn,Rl)})}return}const Al=De(this._engine.playersByElement,Cn,[]);Al.forEach(wl=>{wl.namespaceId==this.id&&wl.triggerName==Fe&&wl.queued&&wl.destroy()});let kl=So.matchTransition(Es.value,Vs.value,Cn,Vs.params),gl=!1;if(!kl){if(!Ln)return;kl=So.fallbackTransition,gl=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:Cn,triggerName:Fe,transition:kl,fromState:Es,toState:Vs,player:Jo,isFallbackTransition:gl}),gl||(vi(Cn,xs),Jo.onStart(()=>{Yi(Cn,xs)})),Jo.onDone(()=>{let wl=this.players.indexOf(Jo);wl>=0&&this.players.splice(wl,1);const Pc=this._engine.playersByElement.get(Cn);if(Pc){let Rl=Pc.indexOf(Jo);Rl>=0&&Pc.splice(Rl,1)}}),this.players.push(Jo),Al.push(Jo),Jo}deregister(Cn){this._triggers.delete(Cn),this._engine.statesByElement.forEach(Fe=>Fe.delete(Cn)),this._elementListeners.forEach((Fe,Zt)=>{this._elementListeners.set(Zt,Fe.filter(Ln=>Ln.name!=Cn))})}clearElementCache(Cn){this._engine.statesByElement.delete(Cn),this._elementListeners.delete(Cn);const Fe=this._engine.playersByElement.get(Cn);Fe&&(Fe.forEach(Zt=>Zt.destroy()),this._engine.playersByElement.delete(Cn))}_signalRemovalForInnerTriggers(Cn,Fe){const Zt=this._engine.driver.query(Cn,Ko,!0);Zt.forEach(Ln=>{if(Ln[js])return;const So=this._engine.fetchNamespacesByElement(Ln);So.size?So.forEach(Jo=>Jo.triggerLeaveAnimation(Ln,Fe,!1,!0)):this.clearElementCache(Ln)}),this._engine.afterFlushAnimationsDone(()=>Zt.forEach(Ln=>this.clearElementCache(Ln)))}triggerLeaveAnimation(Cn,Fe,Zt,Ln){const So=this._engine.statesByElement.get(Cn),Jo=new Map;if(So){const Hr=[];if(So.forEach((Es,Vs)=>{if(Jo.set(Vs,Es.value),this._triggers.has(Vs)){const Ra=this.trigger(Cn,Vs,Zr,Ln);Ra&&Hr.push(Ra)}}),Hr.length)return this._engine.markElementAsRemoved(this.id,Cn,!0,Fe,Jo),Zt&&ne(Hr).onDone(()=>this._engine.processLeaveNode(Cn)),!0}return!1}prepareLeaveAnimationListeners(Cn){const Fe=this._elementListeners.get(Cn),Zt=this._engine.statesByElement.get(Cn);if(Fe&&Zt){const Ln=new Set;Fe.forEach(So=>{const Jo=So.name;if(Ln.has(Jo))return;Ln.add(Jo);const Es=this._triggers.get(Jo).fallbackTransition,Vs=Zt.get(Jo)||ls,Ra=new Ds(Zr),Ha=new Wa(this.id,Jo,Cn);this._engine.totalQueuedPlayers++,this._queue.push({element:Cn,triggerName:Jo,transition:Es,fromState:Vs,toState:Ra,player:Ha,isFallbackTransition:!0})})}}removeNode(Cn,Fe){const Zt=this._engine;if(Cn.childElementCount&&this._signalRemovalForInnerTriggers(Cn,Fe),this.triggerLeaveAnimation(Cn,Fe,!0))return;let Ln=!1;if(Zt.totalAnimations){const So=Zt.players.length?Zt.playersByQueriedElement.get(Cn):[];if(So&&So.length)Ln=!0;else{let Jo=Cn;for(;Jo=Jo.parentNode;)if(Zt.statesByElement.get(Jo)){Ln=!0;break}}}if(this.prepareLeaveAnimationListeners(Cn),Ln)Zt.markElementAsRemoved(this.id,Cn,!1,Fe);else{const So=Cn[js];(!So||So===No)&&(Zt.afterFlush(()=>this.clearElementCache(Cn)),Zt.destroyInnerAnimations(Cn),Zt._onRemovalComplete(Cn,Fe))}}insertNode(Cn,Fe){vi(Cn,this._hostClassName)}drainQueuedTransitions(Cn){const Fe=[];return this._queue.forEach(Zt=>{const Ln=Zt.player;if(Ln.destroyed)return;const So=Zt.element,Jo=this._elementListeners.get(So);Jo&&Jo.forEach(Hr=>{if(Hr.name==Zt.triggerName){const Es=Te(So,Zt.triggerName,Zt.fromState.value,Zt.toState.value);Es._data=Cn,ge(Zt.player,Hr.phase,Es,Hr.callback)}}),Ln.markedForDestroy?this._engine.afterFlush(()=>{Ln.destroy()}):Fe.push(Zt)}),this._queue=[],Fe.sort((Zt,Ln)=>{const So=Zt.transition.ast.depCount,Jo=Ln.transition.ast.depCount;return 0==So||0==Jo?So-Jo:this._engine.driver.containsElement(Zt.element,Ln.element)?1:-1})}destroy(Cn){this.players.forEach(Fe=>Fe.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,Cn)}}class Js{_onRemovalComplete(Cn,Fe){this.onRemovalComplete(Cn,Fe)}constructor(Cn,Fe,Zt){this.bodyNode=Cn,this.driver=Fe,this._normalizer=Zt,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=(Ln,So)=>{}}get queuedPlayers(){const Cn=[];return this._namespaceList.forEach(Fe=>{Fe.players.forEach(Zt=>{Zt.queued&&Cn.push(Zt)})}),Cn}createNamespace(Cn,Fe){const Zt=new Hs(Cn,Fe,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,Fe)?this._balanceNamespaceList(Zt,Fe):(this.newHostElements.set(Fe,Zt),this.collectEnterElement(Fe)),this._namespaceLookup[Cn]=Zt}_balanceNamespaceList(Cn,Fe){const Zt=this._namespaceList,Ln=this.namespacesByHostElement;if(Zt.length-1>=0){let Jo=!1,Hr=this.driver.getParentElement(Fe);for(;Hr;){const Es=Ln.get(Hr);if(Es){const Vs=Zt.indexOf(Es);Zt.splice(Vs+1,0,Cn),Jo=!0;break}Hr=this.driver.getParentElement(Hr)}Jo||Zt.unshift(Cn)}else Zt.push(Cn);return Ln.set(Fe,Cn),Cn}register(Cn,Fe){let Zt=this._namespaceLookup[Cn];return Zt||(Zt=this.createNamespace(Cn,Fe)),Zt}registerTrigger(Cn,Fe,Zt){let Ln=this._namespaceLookup[Cn];Ln&&Ln.register(Fe,Zt)&&this.totalAnimations++}destroy(Cn,Fe){Cn&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const Zt=this._fetchNamespace(Cn);this.namespacesByHostElement.delete(Zt.hostElement);const Ln=this._namespaceList.indexOf(Zt);Ln>=0&&this._namespaceList.splice(Ln,1),Zt.destroy(Fe),delete this._namespaceLookup[Cn]}))}_fetchNamespace(Cn){return this._namespaceLookup[Cn]}fetchNamespacesByElement(Cn){const Fe=new Set,Zt=this.statesByElement.get(Cn);if(Zt)for(let Ln of Zt.values())if(Ln.namespaceId){const So=this._fetchNamespace(Ln.namespaceId);So&&Fe.add(So)}return Fe}trigger(Cn,Fe,Zt,Ln){if(sl(Fe)){const So=this._fetchNamespace(Cn);if(So)return So.trigger(Fe,Zt,Ln),!0}return!1}insertNode(Cn,Fe,Zt,Ln){if(!sl(Fe))return;const So=Fe[js];if(So&&So.setForRemoval){So.setForRemoval=!1,So.setForMove=!0;const Jo=this.collectedLeaveElements.indexOf(Fe);Jo>=0&&this.collectedLeaveElements.splice(Jo,1)}if(Cn){const Jo=this._fetchNamespace(Cn);Jo&&Jo.insertNode(Fe,Zt)}Ln&&this.collectEnterElement(Fe)}collectEnterElement(Cn){this.collectedEnterElements.push(Cn)}markElementAsDisabled(Cn,Fe){Fe?this.disabledNodes.has(Cn)||(this.disabledNodes.add(Cn),vi(Cn,Ts)):this.disabledNodes.has(Cn)&&(this.disabledNodes.delete(Cn),Yi(Cn,Ts))}removeNode(Cn,Fe,Zt){if(sl(Fe)){const Ln=Cn?this._fetchNamespace(Cn):null;Ln?Ln.removeNode(Fe,Zt):this.markElementAsRemoved(Cn,Fe,!1,Zt);const So=this.namespacesByHostElement.get(Fe);So&&So.id!==Cn&&So.removeNode(Fe,Zt)}else this._onRemovalComplete(Fe,Zt)}markElementAsRemoved(Cn,Fe,Zt,Ln,So){this.collectedLeaveElements.push(Fe),Fe[js]={namespaceId:Cn,setForRemoval:Ln,hasAnimation:Zt,removedBeforeQueried:!1,previousTriggersValues:So}}listen(Cn,Fe,Zt,Ln,So){return sl(Fe)?this._fetchNamespace(Cn).listen(Fe,Zt,Ln,So):()=>{}}_buildInstruction(Cn,Fe,Zt,Ln,So){return Cn.transition.build(this.driver,Cn.element,Cn.fromState.value,Cn.toState.value,Zt,Ln,Cn.fromState.options,Cn.toState.options,Fe,So)}destroyInnerAnimations(Cn){let Fe=this.driver.query(Cn,Ko,!0);Fe.forEach(Zt=>this.destroyActiveAnimationsForElement(Zt)),0!=this.playersByQueriedElement.size&&(Fe=this.driver.query(Cn,Bn,!0),Fe.forEach(Zt=>this.finishActiveQueriedAnimationOnElement(Zt)))}destroyActiveAnimationsForElement(Cn){const Fe=this.playersByElement.get(Cn);Fe&&Fe.forEach(Zt=>{Zt.queued?Zt.markedForDestroy=!0:Zt.destroy()})}finishActiveQueriedAnimationOnElement(Cn){const Fe=this.playersByQueriedElement.get(Cn);Fe&&Fe.forEach(Zt=>Zt.finish())}whenRenderingDone(){return new Promise(Cn=>{if(this.players.length)return ne(this.players).onDone(()=>Cn());Cn()})}processLeaveNode(Cn){const Fe=Cn[js];if(Fe&&Fe.setForRemoval){if(Cn[js]=No,Fe.namespaceId){this.destroyInnerAnimations(Cn);const Zt=this._fetchNamespace(Fe.namespaceId);Zt&&Zt.clearElementCache(Cn)}this._onRemovalComplete(Cn,Fe.setForRemoval)}Cn.classList?.contains(Ts)&&this.markElementAsDisabled(Cn,!1),this.driver.query(Cn,".ng-animate-disabled",!0).forEach(Zt=>{this.markElementAsDisabled(Zt,!1)})}flush(Cn=-1){let Fe=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Zt,Ln)=>this._balanceNamespaceList(Zt,Ln)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Zt=0;Zt<this.collectedEnterElements.length;Zt++)vi(this.collectedEnterElements[Zt],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const Zt=[];try{Fe=this._flushAnimations(Zt,Cn)}finally{for(let Ln=0;Ln<Zt.length;Ln++)Zt[Ln]()}}else for(let Zt=0;Zt<this.collectedLeaveElements.length;Zt++)this.processLeaveNode(this.collectedLeaveElements[Zt]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(Zt=>Zt()),this._flushFns=[],this._whenQuietFns.length){const Zt=this._whenQuietFns;this._whenQuietFns=[],Fe.length?ne(Fe).onDone(()=>{Zt.forEach(Ln=>Ln())}):Zt.forEach(Ln=>Ln())}}reportError(Cn){throw function H(Et){return new n.vHH(3402,!1)}()}_flushAnimations(Cn,Fe){const Zt=new wr,Ln=[],So=new Map,Jo=[],Hr=new Map,Es=new Map,Vs=new Map,Ra=new Set;this.disabledNodes.forEach(Il=>{Ra.add(Il);const Kl=this.driver.query(Il,".ng-animate-queued",!0);for(let Xl=0;Xl<Kl.length;Xl++)Ra.add(Kl[Xl])});const Ha=this.bodyNode,Al=Array.from(this.statesByElement.keys()),kl=yn(Al,this.collectedEnterElements),gl=new Map;let wl=0;kl.forEach((Il,Kl)=>{const Xl=Mi+wl++;gl.set(Kl,Xl),Il.forEach(Yc=>vi(Yc,Xl))});const Pc=[],Rl=new Set,jc=new Set;for(let Il=0;Il<this.collectedLeaveElements.length;Il++){const Kl=this.collectedLeaveElements[Il],Xl=Kl[js];Xl&&Xl.setForRemoval&&(Pc.push(Kl),Rl.add(Kl),Xl.hasAnimation?this.driver.query(Kl,".ng-star-inserted",!0).forEach(Yc=>Rl.add(Yc)):jc.add(Kl))}const Md=new Map,Sc=yn(Al,Array.from(Rl));Sc.forEach((Il,Kl)=>{const Xl=mi+wl++;Md.set(Kl,Xl),Il.forEach(Yc=>vi(Yc,Xl))}),Cn.push(()=>{kl.forEach((Il,Kl)=>{const Xl=gl.get(Kl);Il.forEach(Yc=>Yi(Yc,Xl))}),Sc.forEach((Il,Kl)=>{const Xl=Md.get(Kl);Il.forEach(Yc=>Yi(Yc,Xl))}),Pc.forEach(Il=>{this.processLeaveNode(Il)})});const fh=[],tu=[];for(let Il=this._namespaceList.length-1;Il>=0;Il--)this._namespaceList[Il].drainQueuedTransitions(Fe).forEach(Xl=>{const Yc=Xl.player,Vu=Xl.element;if(fh.push(Yc),this.collectedEnterElements.length){const gu=Vu[js];if(gu&&gu.setForMove){if(gu.previousTriggersValues&&gu.previousTriggersValues.has(Xl.triggerName)){const Ee=gu.previousTriggersValues.get(Xl.triggerName),at=this.statesByElement.get(Xl.element);if(at&&at.has(Xl.triggerName)){const G=at.get(Xl.triggerName);G.value=Ee,at.set(Xl.triggerName,G)}}return void Yc.destroy()}}const Mp=!Ha||!this.driver.containsElement(Ha,Vu),Hl=Md.get(Vu),fp=gl.get(Vu),lu=this._buildInstruction(Xl,Zt,fp,Hl,Mp);if(lu.errors&&lu.errors.length)return void tu.push(lu);if(Mp)return Yc.onStart(()=>wt(Vu,lu.fromStyles)),Yc.onDestroy(()=>xt(Vu,lu.toStyles)),void Ln.push(Yc);if(Xl.isFallbackTransition)return Yc.onStart(()=>wt(Vu,lu.fromStyles)),Yc.onDestroy(()=>xt(Vu,lu.toStyles)),void Ln.push(Yc);const L_=[];lu.timelines.forEach(gu=>{gu.stretchStartingKeyframe=!0,this.disabledNodes.has(gu.element)||L_.push(gu)}),lu.timelines=L_,Zt.append(Vu,lu.timelines),Jo.push({instruction:lu,player:Yc,element:Vu}),lu.queriedElements.forEach(gu=>De(Hr,gu,[]).push(Yc)),lu.preStyleProps.forEach((gu,Ee)=>{if(gu.size){let at=Es.get(Ee);at||Es.set(Ee,at=new Set),gu.forEach((G,Ie)=>at.add(Ie))}}),lu.postStyleProps.forEach((gu,Ee)=>{let at=Vs.get(Ee);at||Vs.set(Ee,at=new Set),gu.forEach((G,Ie)=>at.add(Ie))})});if(tu.length){const Il=[];tu.forEach(Kl=>{Il.push(function q(Et,Cn){return new n.vHH(3505,!1)}())}),fh.forEach(Kl=>Kl.destroy()),this.reportError(Il)}const pc=new Map,wc=new Map;Jo.forEach(Il=>{const Kl=Il.element;Zt.has(Kl)&&(wc.set(Kl,Kl),this._beforeAnimationBuild(Il.player.namespaceId,Il.instruction,pc))}),Ln.forEach(Il=>{const Kl=Il.element;this._getPreviousPlayers(Kl,!1,Il.namespaceId,Il.triggerName,null).forEach(Yc=>{De(pc,Kl,[]).push(Yc),Yc.destroy()})});const hp=Pc.filter(Il=>ss(Il,Es,Vs)),dm=new Map;ht(dm,this.driver,jc,Vs,a.l3).forEach(Il=>{ss(Il,Es,Vs)&&hp.push(Il)});const um=new Map;kl.forEach((Il,Kl)=>{ht(um,this.driver,new Set(Il),Es,a.k1)}),hp.forEach(Il=>{const Kl=dm.get(Il),Xl=um.get(Il);dm.set(Il,new Map([...Kl?.entries()??[],...Xl?.entries()??[]]))});const wf=[],vg=[],tg={};Jo.forEach(Il=>{const{element:Kl,player:Xl,instruction:Yc}=Il;if(Zt.has(Kl)){if(Ra.has(Kl))return Xl.onDestroy(()=>xt(Kl,Yc.toStyles)),Xl.disabled=!0,Xl.overrideTotalTime(Yc.totalTime),void Ln.push(Xl);let Vu=tg;if(wc.size>1){let Hl=Kl;const fp=[];for(;Hl=Hl.parentNode;){const lu=wc.get(Hl);if(lu){Vu=lu;break}fp.push(Hl)}fp.forEach(lu=>wc.set(lu,Vu))}const Mp=this._buildAnimation(Xl.namespaceId,Yc,pc,So,um,dm);if(Xl.setRealPlayer(Mp),Vu===tg)wf.push(Xl);else{const Hl=this.playersByElement.get(Vu);Hl&&Hl.length&&(Xl.parentPlayer=ne(Hl)),Ln.push(Xl)}}else wt(Kl,Yc.fromStyles),Xl.onDestroy(()=>xt(Kl,Yc.toStyles)),vg.push(Xl),Ra.has(Kl)&&Ln.push(Xl)}),vg.forEach(Il=>{const Kl=So.get(Il.element);if(Kl&&Kl.length){const Xl=ne(Kl);Il.setRealPlayer(Xl)}}),Ln.forEach(Il=>{Il.parentPlayer?Il.syncPlayerEvents(Il.parentPlayer):Il.destroy()});for(let Il=0;Il<Pc.length;Il++){const Kl=Pc[Il],Xl=Kl[js];if(Yi(Kl,mi),Xl&&Xl.hasAnimation)continue;let Yc=[];if(Hr.size){let Mp=Hr.get(Kl);Mp&&Mp.length&&Yc.push(...Mp);let Hl=this.driver.query(Kl,Bn,!0);for(let fp=0;fp<Hl.length;fp++){let lu=Hr.get(Hl[fp]);lu&&lu.length&&Yc.push(...lu)}}const Vu=Yc.filter(Mp=>!Mp.destroyed);Vu.length?co(this,Kl,Vu):this.processLeaveNode(Kl)}return Pc.length=0,wf.forEach(Il=>{this.players.push(Il),Il.onDone(()=>{Il.destroy();const Kl=this.players.indexOf(Il);this.players.splice(Kl,1)}),Il.play()}),wf}afterFlush(Cn){this._flushFns.push(Cn)}afterFlushAnimationsDone(Cn){this._whenQuietFns.push(Cn)}_getPreviousPlayers(Cn,Fe,Zt,Ln,So){let Jo=[];if(Fe){const Hr=this.playersByQueriedElement.get(Cn);Hr&&(Jo=Hr)}else{const Hr=this.playersByElement.get(Cn);if(Hr){const Es=!So||So==Zr;Hr.forEach(Vs=>{Vs.queued||!Es&&Vs.triggerName!=Ln||Jo.push(Vs)})}}return(Zt||Ln)&&(Jo=Jo.filter(Hr=>!(Zt&&Zt!=Hr.namespaceId||Ln&&Ln!=Hr.triggerName))),Jo}_beforeAnimationBuild(Cn,Fe,Zt){const So=Fe.element,Jo=Fe.isRemovalTransition?void 0:Cn,Hr=Fe.isRemovalTransition?void 0:Fe.triggerName;for(const Es of Fe.timelines){const Vs=Es.element,Ra=Vs!==So,Ha=De(Zt,Vs,[]);this._getPreviousPlayers(Vs,Ra,Jo,Hr,Fe.toState).forEach(kl=>{const gl=kl.getRealPlayer();gl.beforeDestroy&&gl.beforeDestroy(),kl.destroy(),Ha.push(kl)})}wt(So,Fe.fromStyles)}_buildAnimation(Cn,Fe,Zt,Ln,So,Jo){const Hr=Fe.triggerName,Es=Fe.element,Vs=[],Ra=new Set,Ha=new Set,Al=Fe.timelines.map(gl=>{const wl=gl.element;Ra.add(wl);const Pc=wl[js];if(Pc&&Pc.removedBeforeQueried)return new a.ZN(gl.duration,gl.delay);const Rl=wl!==Es,jc=function sr(Et){const Cn=[];return yr(Et,Cn),Cn}((Zt.get(wl)||Ar).map(pc=>pc.getRealPlayer())).filter(pc=>!!pc.element&&pc.element===wl),Md=So.get(wl),Sc=Jo.get(wl),fh=_e(this._normalizer,gl.keyframes,Md,Sc),tu=this._buildPlayer(gl,fh,jc);if(gl.subTimeline&&Ln&&Ha.add(wl),Rl){const pc=new Wa(Cn,Hr,wl);pc.setRealPlayer(tu),Vs.push(pc)}return tu});Vs.forEach(gl=>{De(this.playersByQueriedElement,gl.element,[]).push(gl),gl.onDone(()=>function ll(Et,Cn,Fe){let Zt=Et.get(Cn);if(Zt){if(Zt.length){const Ln=Zt.indexOf(Fe);Zt.splice(Ln,1)}0==Zt.length&&Et.delete(Cn)}return Zt}(this.playersByQueriedElement,gl.element,gl))}),Ra.forEach(gl=>vi(gl,xo));const kl=ne(Al);return kl.onDestroy(()=>{Ra.forEach(gl=>Yi(gl,xo)),xt(Es,Fe.toStyles)}),Ha.forEach(gl=>{De(Ln,gl,[]).push(kl)}),kl}_buildPlayer(Cn,Fe,Zt){return Fe.length>0?this.driver.animate(Cn.element,Fe,Cn.duration,Cn.delay,Cn.easing,Zt):new a.ZN(Cn.duration,Cn.delay)}}class Wa{constructor(Cn,Fe,Zt){this.namespaceId=Cn,this.triggerName=Fe,this.element=Zt,this._player=new a.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(Cn){this._containsRealPlayer||(this._player=Cn,this._queuedCallbacks.forEach((Fe,Zt)=>{Fe.forEach(Ln=>ge(Cn,Zt,void 0,Ln))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(Cn.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(Cn){this.totalTime=Cn}syncPlayerEvents(Cn){const Fe=this._player;Fe.triggerCallback&&Cn.onStart(()=>Fe.triggerCallback("start")),Cn.onDone(()=>this.finish()),Cn.onDestroy(()=>this.destroy())}_queueEvent(Cn,Fe){De(this._queuedCallbacks,Cn,[]).push(Fe)}onDone(Cn){this.queued&&this._queueEvent("done",Cn),this._player.onDone(Cn)}onStart(Cn){this.queued&&this._queueEvent("start",Cn),this._player.onStart(Cn)}onDestroy(Cn){this.queued&&this._queueEvent("destroy",Cn),this._player.onDestroy(Cn)}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(Cn){this.queued||this._player.setPosition(Cn)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(Cn){const Fe=this._player;Fe.triggerCallback&&Fe.triggerCallback(Cn)}}function sl(Et){return Et&&1===Et.nodeType}function Tt(Et,Cn){const Fe=Et.style.display;return Et.style.display=Cn??"none",Fe}function ht(Et,Cn,Fe,Zt,Ln){const So=[];Fe.forEach(Es=>So.push(Tt(Es)));const Jo=[];Zt.forEach((Es,Vs)=>{const Ra=new Map;Es.forEach(Ha=>{const Al=Cn.computeStyle(Vs,Ha,Ln);Ra.set(Ha,Al),(!Al||0==Al.length)&&(Vs[js]=qr,Jo.push(Vs))}),Et.set(Vs,Ra)});let Hr=0;return Fe.forEach(Es=>Tt(Es,So[Hr++])),Jo}function yn(Et,Cn){const Fe=new Map;if(Et.forEach(Hr=>Fe.set(Hr,[])),0==Cn.length)return Fe;const Ln=new Set(Cn),So=new Map;function Jo(Hr){if(!Hr)return 1;let Es=So.get(Hr);if(Es)return Es;const Vs=Hr.parentNode;return Es=Fe.has(Vs)?Vs:Ln.has(Vs)?1:Jo(Vs),So.set(Hr,Es),Es}return Cn.forEach(Hr=>{const Es=Jo(Hr);1!==Es&&Fe.get(Es).push(Hr)}),Fe}function vi(Et,Cn){Et.classList?.add(Cn)}function Yi(Et,Cn){Et.classList?.remove(Cn)}function co(Et,Cn,Fe){ne(Fe).onDone(()=>Et.processLeaveNode(Cn))}function yr(Et,Cn){for(let Fe=0;Fe<Et.length;Fe++){const Zt=Et[Fe];Zt instanceof a.ZE?yr(Zt.players,Cn):Cn.push(Zt)}}function ss(Et,Cn,Fe){const Zt=Fe.get(Et);if(!Zt)return!1;let Ln=Cn.get(Et);return Ln?Zt.forEach(So=>Ln.add(So)):Cn.set(Et,Zt),Fe.delete(Et),!0}class gs{constructor(Cn,Fe,Zt){this.bodyNode=Cn,this._driver=Fe,this._normalizer=Zt,this._triggerCache={},this.onRemovalComplete=(Ln,So)=>{},this._transitionEngine=new Js(Cn,Fe,Zt),this._timelineEngine=new kr(Cn,Fe,Zt),this._transitionEngine.onRemovalComplete=(Ln,So)=>this.onRemovalComplete(Ln,So)}registerTrigger(Cn,Fe,Zt,Ln,So){const Jo=Cn+"-"+Ln;let Hr=this._triggerCache[Jo];if(!Hr){const Es=[],Ra=Lo(this._driver,So,Es,[]);if(Es.length)throw function V(Et,Cn){return new n.vHH(3404,!1)}();Hr=function Ho(Et,Cn,Fe){return new _t(Et,Cn,Fe)}(Ln,Ra,this._normalizer),this._triggerCache[Jo]=Hr}this._transitionEngine.registerTrigger(Fe,Ln,Hr)}register(Cn,Fe){this._transitionEngine.register(Cn,Fe)}destroy(Cn,Fe){this._transitionEngine.destroy(Cn,Fe)}onInsert(Cn,Fe,Zt,Ln){this._transitionEngine.insertNode(Cn,Fe,Zt,Ln)}onRemove(Cn,Fe,Zt){this._transitionEngine.removeNode(Cn,Fe,Zt)}disableAnimations(Cn,Fe){this._transitionEngine.markElementAsDisabled(Cn,Fe)}process(Cn,Fe,Zt,Ln){if("@"==Zt.charAt(0)){const[So,Jo]=fe(Zt);this._timelineEngine.command(So,Fe,Jo,Ln)}else this._transitionEngine.trigger(Cn,Fe,Zt,Ln)}listen(Cn,Fe,Zt,Ln,So){if("@"==Zt.charAt(0)){const[Jo,Hr]=fe(Zt);return this._timelineEngine.listen(Jo,Fe,Hr,So)}return this._transitionEngine.listen(Cn,Fe,Zt,Ln,So)}flush(Cn=-1){this._transitionEngine.flush(Cn)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(Cn){this._transitionEngine.afterFlushAnimationsDone(Cn)}}let ys=(()=>{class Et{static#e=this.initialStylesByElement=new WeakMap;constructor(Fe,Zt,Ln){this._element=Fe,this._startStyles=Zt,this._endStyles=Ln,this._state=0;let So=Et.initialStylesByElement.get(Fe);So||Et.initialStylesByElement.set(Fe,So=new Map),this._initialStyles=So}start(){this._state<1&&(this._startStyles&&xt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(xt(this._element,this._initialStyles),this._endStyles&&(xt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Et.initialStylesByElement.delete(this._element),this._startStyles&&(wt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(wt(this._element,this._endStyles),this._endStyles=null),xt(this._element,this._initialStyles),this._state=3)}}return Et})();function da(Et){let Cn=null;return Et.forEach((Fe,Zt)=>{(function Va(Et){return"display"===Et||"position"===Et})(Zt)&&(Cn=Cn||new Map,Cn.set(Zt,Fe))}),Cn}class ga{constructor(Cn,Fe,Zt,Ln){this.element=Cn,this.keyframes=Fe,this.options=Zt,this._specialStyles=Ln,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=Zt.duration,this._delay=Zt.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Cn=>Cn()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const Cn=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,Cn,this.options),this._finalKeyframe=Cn.length?Cn[Cn.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(Cn){const Fe=[];return Cn.forEach(Zt=>{Fe.push(Object.fromEntries(Zt))}),Fe}_triggerWebAnimation(Cn,Fe,Zt){return Cn.animate(this._convertKeyframesToObject(Fe),Zt)}onStart(Cn){this._originalOnStartFns.push(Cn),this._onStartFns.push(Cn)}onDone(Cn){this._originalOnDoneFns.push(Cn),this._onDoneFns.push(Cn)}onDestroy(Cn){this._onDestroyFns.push(Cn)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(Cn=>Cn()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(Cn=>Cn()),this._onDestroyFns=[])}setPosition(Cn){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=Cn*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const Cn=new Map;this.hasStarted()&&this._finalKeyframe.forEach((Zt,Ln)=>{"offset"!==Ln&&Cn.set(Ln,this._finished?Zt:pn(this.element,Ln))}),this.currentSnapshot=Cn}triggerCallback(Cn){const Fe="start"===Cn?this._onStartFns:this._onDoneFns;Fe.forEach(Zt=>Zt()),Fe.length=0}}class al{validateStyleProperty(Cn){return!0}validateAnimatableStyleProperty(Cn){return!0}matchesElement(Cn,Fe){return!1}containsElement(Cn,Fe){return mt(Cn,Fe)}getParentElement(Cn){return Oe(Cn)}query(Cn,Fe,Zt){return ut(Cn,Fe,Zt)}computeStyle(Cn,Fe,Zt){return window.getComputedStyle(Cn)[Fe]}animate(Cn,Fe,Zt,Ln,So,Jo=[]){const Es={duration:Zt,delay:Ln,fill:0==Ln?"both":"forwards"};So&&(Es.easing=So);const Vs=new Map,Ra=Jo.filter(kl=>kl instanceof ga);(function go(Et,Cn){return 0===Et||0===Cn})(Zt,Ln)&&Ra.forEach(kl=>{kl.currentSnapshot.forEach((gl,wl)=>Vs.set(wl,gl))});let Ha=function oi(Et){return Et.length?Et[0]instanceof Map?Et:Et.map(Cn=>Fn(Cn)):[]}(Fe).map(kl=>Bt(kl));Ha=function si(Et,Cn,Fe){if(Fe.size&&Cn.length){let Zt=Cn[0],Ln=[];if(Fe.forEach((So,Jo)=>{Zt.has(Jo)||Ln.push(Jo),Zt.set(Jo,So)}),Ln.length)for(let So=1;So<Cn.length;So++){let Jo=Cn[So];Ln.forEach(Hr=>Jo.set(Hr,pn(Et,Hr)))}}return Cn}(Cn,Ha,Vs);const Al=function Pr(Et,Cn){let Fe=null,Zt=null;return Array.isArray(Cn)&&Cn.length?(Fe=da(Cn[0]),Cn.length>1&&(Zt=da(Cn[Cn.length-1]))):Cn instanceof Map&&(Fe=da(Cn)),Fe||Zt?new ys(Et,Fe,Zt):null}(Cn,Ha);return new ga(Cn,Ha,Es,Al)}}var ur=i(96814);
/**
         * @license Angular v16.1.6
         * (c) 2010-2022 Google LLC. https://angular.io/
         * License: MIT
         */let La=(()=>{class Et extends a._j{constructor(Fe,Zt){super(),this._nextAnimationId=0,this._renderer=Fe.createRenderer(Zt.body,{id:"0",encapsulation:n.ifc.None,styles:[],data:{animation:[]}})}build(Fe){const Zt=this._nextAnimationId.toString();this._nextAnimationId++;const Ln=Array.isArray(Fe)?(0,a.vP)(Fe):Fe;return vn(this._renderer,null,Zt,"register",[Ln]),new ra(Zt,this._renderer)}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.LFG(n.FYo),n.LFG(ur.K0))};static#t=this.\u0275prov=n.Yz7({token:Et,factory:Et.\u0275fac})}return Et})();class ra extends a.LC{constructor(Cn,Fe){super(),this._id=Cn,this._renderer=Fe}create(Cn,Fe){return new Ls(this._id,Cn,Fe||{},this._renderer)}}class Ls{constructor(Cn,Fe,Zt,Ln){this.id=Cn,this.element=Fe,this._renderer=Ln,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Zt)}_listen(Cn,Fe){return this._renderer.listen(this.element,`@@${this.id}:${Cn}`,Fe)}_command(Cn,...Fe){return vn(this._renderer,this.element,this.id,Cn,Fe)}onDone(Cn){this._listen("done",Cn)}onStart(Cn){this._listen("start",Cn)}onDestroy(Cn){this._listen("destroy",Cn)}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"),this._started=!1}setPosition(Cn){this._command("setPosition",Cn)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function vn(Et,Cn,Fe,Zt,Ln){return Et.setProperty(Cn,`@@${Fe}:${Zt}`,Ln)}const Ke="@.disabled";let ze=(()=>{class Et{constructor(Fe,Zt,Ln){this.delegate=Fe,this.engine=Zt,this._zone=Ln,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,Zt.onRemovalComplete=(So,Jo)=>{const Hr=Jo?.parentNode(So);Hr&&Jo.removeChild(Hr,So)}}createRenderer(Fe,Zt){const So=this.delegate.createRenderer(Fe,Zt);if(!(Fe&&Zt&&Zt.data&&Zt.data.animation)){let Ra=this._rendererCache.get(So);return Ra||(Ra=new St("",So,this.engine,()=>this._rendererCache.delete(So)),this._rendererCache.set(So,Ra)),Ra}const Jo=Zt.id,Hr=Zt.id+"-"+this._currentId;this._currentId++,this.engine.register(Hr,Fe);const Es=Ra=>{Array.isArray(Ra)?Ra.forEach(Es):this.engine.registerTrigger(Jo,Hr,Fe,Ra.name,Ra)};return Zt.data.animation.forEach(Es),new it(this,Hr,So,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(Fe,Zt,Ln){Fe>=0&&Fe<this._microtaskId?this._zone.run(()=>Zt(Ln)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(So=>{const[Jo,Hr]=So;Jo(Hr)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Zt,Ln]))}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()}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.LFG(n.FYo),n.LFG(gs),n.LFG(n.R0b))};static#t=this.\u0275prov=n.Yz7({token:Et,factory:Et.\u0275fac})}return Et})();class St{constructor(Cn,Fe,Zt,Ln){this.namespaceId=Cn,this.delegate=Fe,this.engine=Zt,this._onDestroy=Ln}get data(){return this.delegate.data}destroyNode(Cn){this.delegate.destroyNode?.(Cn)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(Cn,Fe){return this.delegate.createElement(Cn,Fe)}createComment(Cn){return this.delegate.createComment(Cn)}createText(Cn){return this.delegate.createText(Cn)}appendChild(Cn,Fe){this.delegate.appendChild(Cn,Fe),this.engine.onInsert(this.namespaceId,Fe,Cn,!1)}insertBefore(Cn,Fe,Zt,Ln=!0){this.delegate.insertBefore(Cn,Fe,Zt),this.engine.onInsert(this.namespaceId,Fe,Cn,Ln)}removeChild(Cn,Fe,Zt){this.engine.onRemove(this.namespaceId,Fe,this.delegate)}selectRootElement(Cn,Fe){return this.delegate.selectRootElement(Cn,Fe)}parentNode(Cn){return this.delegate.parentNode(Cn)}nextSibling(Cn){return this.delegate.nextSibling(Cn)}setAttribute(Cn,Fe,Zt,Ln){this.delegate.setAttribute(Cn,Fe,Zt,Ln)}removeAttribute(Cn,Fe,Zt){this.delegate.removeAttribute(Cn,Fe,Zt)}addClass(Cn,Fe){this.delegate.addClass(Cn,Fe)}removeClass(Cn,Fe){this.delegate.removeClass(Cn,Fe)}setStyle(Cn,Fe,Zt,Ln){this.delegate.setStyle(Cn,Fe,Zt,Ln)}removeStyle(Cn,Fe,Zt){this.delegate.removeStyle(Cn,Fe,Zt)}setProperty(Cn,Fe,Zt){"@"==Fe.charAt(0)&&Fe==Ke?this.disableAnimations(Cn,!!Zt):this.delegate.setProperty(Cn,Fe,Zt)}setValue(Cn,Fe){this.delegate.setValue(Cn,Fe)}listen(Cn,Fe,Zt){return this.delegate.listen(Cn,Fe,Zt)}disableAnimations(Cn,Fe){this.engine.disableAnimations(Cn,Fe)}}class it extends St{constructor(Cn,Fe,Zt,Ln,So){super(Fe,Zt,Ln,So),this.factory=Cn,this.namespaceId=Fe}setProperty(Cn,Fe,Zt){"@"==Fe.charAt(0)?"."==Fe.charAt(1)&&Fe==Ke?this.disableAnimations(Cn,Zt=void 0===Zt||!!Zt):this.engine.process(this.namespaceId,Cn,Fe.slice(1),Zt):this.delegate.setProperty(Cn,Fe,Zt)}listen(Cn,Fe,Zt){if("@"==Fe.charAt(0)){const Ln=function Dt(Et){switch(Et){case"body":return document.body;case"document":return document;case"window":return window;default:return Et}}(Cn);let So=Fe.slice(1),Jo="";return"@"!=So.charAt(0)&&([So,Jo]=function Hn(Et){const Cn=Et.indexOf(".");return[Et.substring(0,Cn),Et.slice(Cn+1)]}(So)),this.engine.listen(this.namespaceId,Ln,So,Jo,Hr=>{this.factory.scheduleListenerCallback(Hr._data||-1,Zt,Hr)})}return this.delegate.listen(Cn,Fe,Zt)}}const Vn=[{provide:a._j,useClass:La},{provide:br,useFactory:function Co(){return new ri}},{provide:gs,useClass:(()=>{class Et extends gs{constructor(Fe,Zt,Ln,So){super(Fe.body,Zt,Ln)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.LFG(ur.K0),n.LFG(sn),n.LFG(br),n.LFG(n.z2F))};static#t=this.\u0275prov=n.Yz7({token:Et,factory:Et.\u0275fac})}return Et})()},{provide:n.FYo,useFactory:function Sn(Et,Cn,Fe){return new ze(Et,Cn,Fe)},deps:[e.se,gs,n.R0b]}],Dn=[{provide:sn,useFactory:()=>new al},{provide:n.QbO,useValue:"BrowserAnimations"},...Vn],kn=[{provide:sn,useClass:dn},{provide:n.QbO,useValue:"NoopAnimations"},...Vn];let ui=(()=>{class Et{static withConfig(Fe){return{ngModule:Et,providers:Fe.disableAnimations?kn:Dn}}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({providers:Dn,imports:[e.b2]})}return Et})();var Ht=i(64190),ft=i(98148),Nt=i(92534),an=i(5892);let $e=(()=>{class Et{constructor(Fe){if(Fe)throw new Error("FuseModule is already loaded. Import it in the AppModule only!")}static forRoot(Fe){return{ngModule:Et,providers:[{provide:an.R,useValue:Fe}]}}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.LFG(Et,12))};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({})}return Et})();var Je=i(20180),Ve=i(89515),Ge=i(99397),Be=i(7110),At=i(60703),Rt=i(74187),Pt=i(18750);let Xn=(()=>{class Et{constructor(Fe,Zt){this.utilityService=Fe,this.deviceService=Zt,this.jwtHelper=new At.N0}intercept(Fe,Zt){let Ln;return Ln=["JSONP","OPTIONS"].includes(Fe.method)||["/assets/"].some(Jo=>Fe.url.includes(Jo))?Fe:this.getRequestWithHeaders(Fe),this.sendRequest(Ln,Zt)}sendRequest(Fe,Zt){return Zt.handle(Fe).pipe((0,Ge.b)(Ln=>{}))}getRequestWithHeaders(Fe){let Zt=Fe.headers;const Ln=this.utilityService.getLocalStorage("token"),So=Zt.has("AllowAnonymous")&&"true"===Zt.get("AllowAnonymous").toLowerCase();sessionStorage.setItem("deviceInfo",JSON.stringify(Be.XL.userTrackingInfo));let Jo={};if(!So){const Hr=sessionStorage.getItem("sessionInfo")?JSON.parse(sessionStorage.getItem("sessionInfo")):null;if(Ln){if(Zt=Zt.set("Authorization","Bearer "+Ln),!this.utilityService.isTokenValid())return window.location.href="./session-expiry/false",new o.aW("GET",Be.XL.settings.apiUrl+"Account/Login?autoLogout=false");let Es=sessionStorage.getItem("headerParams");Jo=Es?JSON.parse(Es):{roleId:0,applicationId:0,organizationId:0,officeId:0,deviceType:0},Jo.deviceInfo=sessionStorage.getItem("deviceInfo"),sessionStorage.setItem("headerParams",JSON.stringify(Jo))}else if(Hr)return window.location.href="./session-expiry/true",new o.aW("GET",Be.XL.settings.apiUrl+"Account/Login?autoLogout=true")}return Jo.platformType="Web",Zt=Zt.set("HeaderParams",JSON.stringify(Jo)),Zt=Zt.set("Access-Control-Allow-Origin","*"),Zt="angular/auto"===Zt.get("Content-Type")?Zt.delete("Content-Type"):Zt.set("Content-Type","application/json; charset=UTF-8"),Fe.clone({headers:Zt})}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.LFG(Rt.t),n.LFG(Pt.x0))};static#t=this.\u0275prov=n.Yz7({token:Et,factory:Et.\u0275fac})}return Et})();var Nn=i(64716),Ae=i(710);let He=(()=>{class Et{constructor(Fe){this.commonService=Fe}intercept(Fe,Zt){return Date.now(),this.commonService.displayLoadingBar.next(!0),Zt.handle(Fe).pipe((0,Ge.b)(So=>{So instanceof o.Zn&&(Date.now(),this.commonService.displayLoadingBar.next(!1))}),(0,Nn.x)(()=>{}))}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.LFG(Ae.v))};static#t=this.\u0275prov=n.Yz7({token:Et,factory:Et.\u0275fac})}return Et})();var Kt=i(20042),On=i(29486),Fi=i(41476),Ci=i(70762),xi=i(61690),Wn=i(6738),Vt=i(77211),qt=i(19735),bn=i(5759),ii=i(64954),Vi=i(61371),Jn=i(24887),zt=i(39059),mn=i(28011),Qn=i(32292),ci=i(49155),Oi=i(67375),Ai=i(86545),Pn=i(73515),qn=i(57293),Ni=i(94919),Ue=i(60930),Ye=i(64875),Me=i(23113),pe=i(70144),lt=i(62048),yt=i(43970),on=i(25500),zi=i(79907),Kn=i(49919),ho=i(57733),po=i(9731),$i=i(45114),ro=i(17691),wo=i(62232);let io=(()=>{class Et{static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({providers:[Wn.f,Vt.i,Oi.E,yt.D,Rt.t,Vi.R,Ue.M,Fi.l,Ae.v,Jn.g,zt.M,mn.a,ii.z,Kt.E,bn.F,Qn.a,ci.O,qt.r,Ai.F,Pn.R,qn.Q,Ni.r,xi.q,Ye.t,Ci.w,Me.t,pe.j,lt.l,On.Z,zi.h,ho.E,Kn.Z,on.D,po.V,$i.f,ro.j,wo.o]})}return Et})();var Wi=i(77171),fo=i(30617);let cr=(()=>{class Et{constructor(Fe,Zt){this.matIconRegistry=Fe,this.domSanitizer=Zt}init(){this.matIconRegistry.addSvgIcon("fa-not-equal",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/fa-icons/not-equal.svg")),this.matIconRegistry.addSvgIcon("fa-equals",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/fa-icons/equals.svg")),this.matIconRegistry.addSvgIcon("fa-file-image",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/fa-icons/file-image-regular.svg")),this.matIconRegistry.addSvgIcon("fa-file-pdf",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/fa-icons/file-pdf-regular.svg")),this.matIconRegistry.addSvgIcon("fa-file-word",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/fa-icons/file-word-regular.svg")),this.matIconRegistry.addSvgIcon("fa-file-excel",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/fa-icons/file-excel-regular.svg")),this.matIconRegistry.addSvgIcon("fa-file",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/fa-icons/file-regular.svg")),this.matIconRegistry.addSvgIcon("fa-bolt",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/fa-icons/fa-bolt.svg")),this.matIconRegistry.addSvgIcon("fa-money-bill",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/fa-icons/money-bill-alt-regular.svg")),this.matIconRegistry.addSvgIcon("fa-business-time",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/fa-icons/business-time-solid.svg")),this.matIconRegistry.addSvgIcon("fa-coffee",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/fa-icons/coffee-solid.svg")),this.matIconRegistry.addSvgIcon("fa-thumbs-up",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/fa-icons/thumbs-up-solid.svg")),this.matIconRegistry.addSvgIcon("fa-thumbs-down",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/fa-icons/thumbs-down-solid.svg")),this.matIconRegistry.addSvgIcon("fa-lock-open",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/fa-icons/lock-open-solid.svg")),this.matIconRegistry.addSvgIcon("fa-lock-close",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/fa-icons/lock-solid.svg")),this.matIconRegistry.addSvgIcon("fa-moon",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/fa-icons/moon-solid.svg")),this.matIconRegistry.addSvgIcon("tc-clockIn",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/timeclock/clock_in.svg")),this.matIconRegistry.addSvgIcon("tc-breakOut",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/timeclock/start_break.svg")),this.matIconRegistry.addSvgIcon("tc-breakIn",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/timeclock/end_break.svg")),this.matIconRegistry.addSvgIcon("tc-clockOut",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/timeclock/clock_out.svg")),this.matIconRegistry.addSvgIcon("tc-exit",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/timeclock/exit.svg")),this.matIconRegistry.addSvgIcon("znac-view",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/znac/report-view.svg")),this.matIconRegistry.addSvgIcon("resume",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/znac/resume.svg")),this.matIconRegistry.addSvgIcon("znac-open",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/znac/report-view.svg")),this.matIconRegistry.addSvgIcon("znac-generateQRCode",this.domSanitizer.bypassSecurityTrustResourceUrl("../../../assets/icons/extra-icons/qr_code-black.svg")),this.matIconRegistry.addSvgIcon("report-play",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/icons/report/report-file-play.svg")),this.matIconRegistry.addSvgIcon("all-report",this.domSanitizer.bypassSecurityTrustResourceUrl("../../../assets/icons/report/all-report.svg")),this.matIconRegistry.addSvgIcon("paginated-report",this.domSanitizer.bypassSecurityTrustResourceUrl("../../../assets/icons/report/paginated-report.svg")),this.matIconRegistry.addSvgIcon("tabular-report",this.domSanitizer.bypassSecurityTrustResourceUrl("../../../assets/icons/report/tabular-report.svg")),this.matIconRegistry.addSvgIcon("utility-report",this.domSanitizer.bypassSecurityTrustResourceUrl("../../../assets/icons/report/utility-report.svg")),this.matIconRegistry.addSvgIcon("filter-on",this.domSanitizer.bypassSecurityTrustResourceUrl("../../../assets/icons/report/filter-on.svg")),this.matIconRegistry.addSvgIcon("filter-off",this.domSanitizer.bypassSecurityTrustResourceUrl("../../../assets/icons/report/filter-off.svg")),this.matIconRegistry.addSvgIcon("gp-calculator",this.domSanitizer.bypassSecurityTrustResourceUrl("../../../assets/icons/fa-icons/gp-calculator.svg"))}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.LFG(fo.jv),n.LFG(e.H7))};static#t=this.\u0275prov=n.Yz7({token:Et,factory:Et.\u0275fac})}return Et})();var Fr=i(3209),jr=i(8379),fs=i(928),Ms=i(47394);let Ca=(()=>{class Et{constructor(Fe,Zt){this.utilityService=Fe,this.dds=Zt,this.jwtHelper=new At.N0,this.subs=new Ms.w0}resolve(Fe,Zt){let Ln;return Promise.resolve(Ln).then(Jo=>{let Hr=Fe.queryParams.at;if(null!=Hr||""!=Hr){Ln=this.jwtHelper.decodeToken(Hr);const Es=this.utilityService.getDeviceType();sessionStorage.setItem("headerParams",JSON.stringify({roleId:Ln.roleId,applicationId:Ln.applicationId,deviceType:Es})),console.log("token decoded: ",Ln),this.utilityService.setLocalStorage("token",Hr),localStorage.token=Hr}return Jo})}ngOnDestroy(){this.subs.unsubscribe()}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.LFG(Rt.t),n.LFG(Pt.x0))};static#t=this.\u0275prov=n.Yz7({token:Et,factory:Et.\u0275fac,providedIn:"root"})}return Et})(),ks=(()=>{class Et{constructor(Fe,Zt,Ln){this.auth=Fe,this.activatedRoute=Zt,this.router=Ln,this.jwtHelper=new At.N0,this.toolBar=!1,this.subs=new Ms.w0}ngOnInit(){const Fe=this.auth.checkLoginAndRedirect();Fe.type&&(window.location.href=Fe.message)}ngOnDestroy(){this.subs.unsubscribe()}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(Ni.r),n.Y36(Ht.gz),n.Y36(Ht.F0))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["sso"]],decls:0,vars:0,template:function(Zt,Ln){}})}return Et})();var ts=i(94505);const na=[{path:"zenople",component:ks,resolve:{sso:Ca}}];let Xs=(()=>{class Et{static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({providers:[Ca],imports:[Ht.Bz.forChild(na),Je.L,ts.yu,fo.Ps]})}return Et})();var _a=i(97582),Ws=i(78645),cs=i(32181),Ps=i(79360),Qi=i(8251),pi=i(59773);const to={lang:"en",data:{NAV:{APPLICATIONS:"Applications",SAMPLE:{TITLE:"Sample",BADGE:"25"}}}},Ro={lang:"tr",data:{NAV:{APPLICATIONS:"Programlar",SAMPLE:{TITLE:"\xd6rnek",BADGE:"15"}}}};var Sr=i(71088),rs=i(48180);let Os=(()=>{class Et{constructor(Fe,Zt,Ln){this._animationBuilder=Fe,this._document=Zt,this._router=Ln,this._init()}_init(){this.splashScreenEl=this._document.body.querySelector("#fuse-splash-screen"),this.splashScreenEl&&this._router.events.pipe((0,cs.h)(Fe=>Fe instanceof Ht.m2),(0,rs.q)(1)).subscribe(()=>{setTimeout(()=>{this.hide()})})}show(){this.player=this._animationBuilder.build([(0,a.oB)({opacity:"0",zIndex:"99999"}),(0,a.jt)("400ms ease",(0,a.oB)({opacity:"1"}))]).create(this.splashScreenEl),setTimeout(()=>{this.player.play()},0)}hide(){this.player=this._animationBuilder.build([(0,a.oB)({opacity:"1"}),(0,a.jt)("400ms ease",(0,a.oB)({opacity:"0",zIndex:"-10"}))]).create(this.splashScreenEl),setTimeout(()=>{this.player.play()},0)}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.LFG(a._j),n.LFG(ur.K0),n.LFG(Ht.F0))};static#t=this.\u0275prov=n.Yz7({token:Et,factory:Et.\u0275fac,providedIn:"root"})}return Et})(),Ys=(()=>{class Et{constructor(Fe){this._translateService=Fe}loadTranslations(...Fe){[...Fe].forEach(Ln=>{this._translateService.setTranslation(Ln.lang,Ln.data,!0)})}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.LFG(Ve.sK))};static#t=this.\u0275prov=n.Yz7({token:Et,factory:Et.\u0275fac,providedIn:"root"})}return Et})();var la=i(62831),Da=i(22991),Ka=i(86204),nl=i(65619);let il=(()=>{class Et{constructor(Fe){this._router=Fe,this._init()}get bufferValue(){return this._bufferValue.asObservable()}setBufferValue(Fe){this._bufferValue.next(Fe)}get mode(){return this._mode.asObservable()}setMode(Fe){this._mode.next(Fe)}get value(){return this._value.asObservable()}setValue(Fe){this._value.next(Fe)}get visible(){return this._visible.asObservable()}_init(){this._bufferValue=new nl.X(0),this._mode=new nl.X("indeterminate"),this._value=new nl.X(0),this._visible=new nl.X(!1),this._router.events.pipe((0,cs.h)(Fe=>Fe instanceof Ht.OD)).subscribe(()=>{this.show()}),this._router.events.pipe((0,cs.h)(Fe=>Fe instanceof Ht.m2||Fe instanceof Ht.Q3||Fe instanceof Ht.gk)).subscribe(()=>{this.hide()})}show(){this._visible.next(!0)}hide(){this._visible.next(!1)}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.LFG(Ht.F0))};static#t=this.\u0275prov=n.Yz7({token:Et,factory:Et.\u0275fac,providedIn:"root"})}return Et})();var xl=i(48134);function eo(Et,Cn){if(1&Et&&(n.ynx(0),n._UZ(1,"mat-progress-bar",1),n.BQk()),2&Et){const Fe=n.oxw();n.xp6(1),n.Q6J("bufferValue",Fe.bufferValue)("mode",Fe.mode)("value",Fe.value)}}let To=(()=>{class Et{constructor(Fe){this._fuseProgressBarService=Fe,this._unsubscribeAll=new Ws.x}ngOnInit(){this._fuseProgressBarService.bufferValue.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{this.bufferValue=Fe}),this._fuseProgressBarService.mode.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{this.mode=Fe}),this._fuseProgressBarService.value.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{this.value=Fe}),this._fuseProgressBarService.visible.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{this.visible=Fe})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(il))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["fuse-progress-bar"]],decls:1,vars:1,consts:[[4,"ngIf"],["color","accent",3,"bufferValue","mode","value"]],template:function(Zt,Ln){1&Zt&&n.YNc(0,eo,2,3,"ng-container",0),2&Zt&&n.Q6J("ngIf",Ln.visible)},dependencies:[ur.O5,xl.eI],styles:["fuse-progress-bar{position:absolute;top:0;left:0;right:0;width:100%;z-index:99998}fuse-progress-bar mat-progress-bar .mat-progress-bar-buffer{background-color:#c5c6cb!important}\n"],encapsulation:2})}return Et})();var Qo=i(27509),Dr=i(94390),_s=i(71810);function ia(Et,Cn){1&Et&&n._UZ(0,"router-outlet")}let Ia=(()=>{class Et{constructor(){}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["content"]],decls:1,vars:1,consts:[[4,"ngIf"]],template:function(Zt,Ln){1&Zt&&n.YNc(0,ia,1,0,"router-outlet",0),2&Zt&&n.Q6J("ngIf",!0)},dependencies:[Ht.lC,ur.O5],styles:["content{position:relative;display:flex;z-index:1;flex:1 0 auto}content>*:not(router-outlet){display:flex;flex:1 0 auto;width:100%;min-width:100%}\n"],encapsulation:2})}return Et})();var ar=i(81274),wa=i(83814);let _l=(()=>{class Et{constructor(Fe,Zt,Ln){this.us=Fe,this.datePipe=Zt,this.cs=Ln,this.hostClass=!0,this.currentYear=(new Date).getFullYear(),this._unsubscribeAll=new Ws.x}ngOnInit(){this.us.isTokenValid()&&this.cs.getApplicationInformation().pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{Fe&&(this.version=Fe[0].version,this.publisheddate=Fe[0].insertDate)})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(Rt.t),n.Y36(ur.uU),n.Y36(Ae.v))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["footer"]],hostVars:2,hostBindings:function(Zt,Ln){2&Zt&&n.ekj("app-main-footer",Ln.hostClass)},decls:8,vars:3,consts:[[1,"h-32"],["fxLayout","row","fxLayoutAlign.gt-xs","space-between center","fxFlex",""],[1,"h6","secondary-text","atmark",2,"text-align","left"],[1,"h6","secondary-text","atmark"]],template:function(Zt,Ln){1&Zt&&(n.TgZ(0,"mat-toolbar",0)(1,"div",1)(2,"span",2),n._uU(3),n.qZA(),n.TgZ(4,"span",3),n._uU(5),n.qZA(),n.TgZ(6,"span",3),n._uU(7),n.qZA()()()),2&Zt&&(n.xp6(3),n.hij("Aqore \xa9 ",Ln.currentYear,""),n.xp6(2),n.Oqu(Ln.version),n.xp6(2),n.Oqu(Ln.publisheddate))},dependencies:[ar.Ye,wa.xw,wa.Wh,wa.yH],styles:["[_nghost-%COMP%]{display:flex;flex:0 0 auto;z-index:3}[_nghost-%COMP%]   .mat-toolbar[_ngcontent-%COMP%]{background:inherit;color:inherit;box-shadow:0 -1px 1px -1px #0003,0 0 1px #00000024,0 -1px 3px #0000001f}.above[_nghost-%COMP%]{position:relative;z-index:99}[_nghost-%COMP%]   .atmark[_ngcontent-%COMP%]{margin-left:80px}@media screen and (max-width: 599px){[_nghost-%COMP%]   .atmark[_ngcontent-%COMP%]{margin:0}}"]})}return Et})();var Ya=i(63019),pa=i(66229),rl=i(90964),Nl=i(63569),nd=i(1859);function Ct(Et,Cn){1&Et&&n.GkF(0)}const rn=function(Et){return[Et]},We=function(){return["active","accent"]},Ft=function(Et){return{exact:Et}};function ct(Et,Cn){if(1&Et&&(n.TgZ(0,"a",7),n.YNc(1,Ct,1,0,"ng-container",8),n.qZA()),2&Et){n.oxw();const Fe=n.MAs(7),Zt=n.oxw();n.Q6J("ngClass",Zt.item.classes)("routerLink",n.VKq(6,rn,Zt.item.url))("routerLinkActive",n.DdM(8,We))("routerLinkActiveOptions",n.VKq(9,Ft,Zt.item.exactMatch||!1))("target",Zt.item.openInNewTab?"_blank":"_self"),n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function Qt(Et,Cn){1&Et&&n.GkF(0)}function gi(Et,Cn){if(1&Et&&(n.TgZ(0,"a",9),n.YNc(1,Qt,1,0,"ng-container",8),n.qZA()),2&Et){n.oxw();const Fe=n.MAs(7),Zt=n.oxw();n.Q6J("ngClass",Zt.item.classes)("href",Zt.item.url,n.LSH)("target",Zt.item.openInNewTab?"_blank":"_self"),n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function Do(Et,Cn){1&Et&&n.GkF(0)}function Po(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"span",10),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw(2);return n.KtG(Ln.item.function())}),n.YNc(1,Do,1,0,"ng-container",8),n.qZA()}if(2&Et){n.oxw();const Fe=n.MAs(7),Zt=n.oxw();n.Q6J("ngClass",Zt.item.classes),n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function Or(Et,Cn){1&Et&&n.GkF(0)}function hs(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"a",11),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw(2);return n.KtG(Ln.item.function())}),n.YNc(1,Or,1,0,"ng-container",8),n.qZA()}if(2&Et){n.oxw();const Fe=n.MAs(7),Zt=n.oxw();n.Q6J("ngClass",Zt.item.classes)("routerLink",n.VKq(6,rn,Zt.item.url))("routerLinkActive",n.DdM(8,We))("routerLinkActiveOptions",n.VKq(9,Ft,Zt.item.exactMatch||!1))("target",Zt.item.openInNewTab?"_blank":"_self"),n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function Zs(Et,Cn){1&Et&&n.GkF(0)}function ca(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"a",12),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw(2);return n.KtG(Ln.item.function())}),n.YNc(1,Zs,1,0,"ng-container",8),n.qZA()}if(2&Et){n.oxw();const Fe=n.MAs(7),Zt=n.oxw();n.Q6J("ngClass",Zt.item.classes)("href",Zt.item.url,n.LSH)("target",Zt.item.openInNewTab?"_blank":"_self"),n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function za(Et,Cn){if(1&Et&&(n.TgZ(0,"mat-icon",16),n._uU(1),n.qZA()),2&Et){const Fe=n.oxw(3);n.xp6(1),n.Oqu(Fe.item.icon)}}const cl=function(Et,Cn){return{"background-color":Et,color:Cn}};function yc(Et,Cn){if(1&Et&&(n.TgZ(0,"span",17),n._uU(1),n.qZA()),2&Et){const Fe=n.oxw(3);n.Q6J("translate",Fe.item.badge.translate)("ngStyle",n.WLB(3,cl,Fe.item.badge.bg,Fe.item.badge.fg)),n.xp6(1),n.hij(" ",Fe.item.badge.title," ")}}function bc(Et,Cn){if(1&Et&&(n.YNc(0,za,2,1,"mat-icon",13),n.TgZ(1,"span",14),n._uU(2),n.qZA(),n.YNc(3,yc,2,6,"span",15)),2&Et){const Fe=n.oxw(2);n.Q6J("ngIf",Fe.item.icon),n.xp6(1),n.Q6J("translate",Fe.item.translate),n.xp6(1),n.Oqu(Fe.item.title),n.xp6(1),n.Q6J("ngIf",Fe.item.badge)}}function ec(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,ct,2,11,"a",1),n.YNc(2,gi,2,4,"a",2),n.YNc(3,Po,2,2,"span",3),n.YNc(4,hs,2,11,"a",4),n.YNc(5,ca,2,4,"a",5),n.YNc(6,bc,4,4,"ng-template",null,6,n.W1O),n.BQk()),2&Et){const Fe=n.oxw();n.xp6(1),n.Q6J("ngIf",Fe.item.url&&!Fe.item.externalUrl&&!Fe.item.function),n.xp6(1),n.Q6J("ngIf",Fe.item.url&&Fe.item.externalUrl&&!Fe.item.function),n.xp6(1),n.Q6J("ngIf",!Fe.item.url&&Fe.item.function),n.xp6(1),n.Q6J("ngIf",Fe.item.url&&!Fe.item.externalUrl&&Fe.item.function),n.xp6(1),n.Q6J("ngIf",Fe.item.url&&Fe.item.externalUrl&&Fe.item.function)}}let Wl=(()=>{class Et{constructor(){this.classes="nav-item"}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["fuse-nav-horizontal-item"]],hostVars:2,hostBindings:function(Zt,Ln){2&Zt&&n.Tol(Ln.classes)},inputs:{item:"item"},decls:1,vars:1,consts:[[4,"ngIf"],["class","nav-link",3,"ngClass","routerLink","routerLinkActive","routerLinkActiveOptions","target",4,"ngIf"],["class","nav-link",3,"ngClass","href","target",4,"ngIf"],["class","nav-link",3,"ngClass","click",4,"ngIf"],["class","nav-link",3,"ngClass","routerLink","routerLinkActive","routerLinkActiveOptions","target","click",4,"ngIf"],["class","nav-link",3,"ngClass","href","target","click",4,"ngIf"],["itemContent",""],[1,"nav-link",3,"ngClass","routerLink","routerLinkActive","routerLinkActiveOptions","target"],[4,"ngTemplateOutlet"],[1,"nav-link",3,"ngClass","href","target"],[1,"nav-link",3,"ngClass","click"],[1,"nav-link",3,"ngClass","routerLink","routerLinkActive","routerLinkActiveOptions","target","click"],[1,"nav-link",3,"ngClass","href","target","click"],["class","nav-link-icon",4,"ngIf"],[1,"nav-link-title",3,"translate"],["class","nav-link-badge",3,"translate","ngStyle",4,"ngIf"],[1,"nav-link-icon"],[1,"nav-link-badge",3,"translate","ngStyle"]],template:function(Zt,Ln){1&Zt&&n.YNc(0,ec,8,5,"ng-container",0),2&Zt&&n.Q6J("ngIf",!Ln.item.hidden)},dependencies:[ur.mk,ur.O5,ur.tP,ur.PC,Ht.rH,Ht.Od,fo.Hw,Ve.Pi,Qo.oO,Qo.Zl]})}return Et})();var va=i(94748);function Hc(Et,Cn){1&Et&&n.GkF(0)}function Vc(Et,Cn){if(1&Et&&(n.TgZ(0,"a",10),n.YNc(1,Hc,1,0,"ng-container",11),n.qZA()),2&Et){n.oxw();const Fe=n.MAs(8),Zt=n.oxw();n.Q6J("ngClass",Zt.item.classes),n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function Mu(Et,Cn){1&Et&&n.GkF(0)}const Tl=function(Et){return[Et]},cc=function(){return["active","accent"]},Id=function(Et){return{exact:Et}};function vu(Et,Cn){if(1&Et&&(n.TgZ(0,"a",12),n.YNc(1,Mu,1,0,"ng-container",11),n.qZA()),2&Et){n.oxw();const Fe=n.MAs(8),Zt=n.oxw();n.Q6J("ngClass",Zt.item.classes)("routerLink",n.VKq(6,Tl,Zt.item.url))("routerLinkActive",n.DdM(8,cc))("routerLinkActiveOptions",n.VKq(9,Id,Zt.item.exactMatch||!1))("target",Zt.item.openInNewTab?"_blank":"_self"),n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function th(Et,Cn){1&Et&&n.GkF(0)}function Uh(Et,Cn){if(1&Et&&(n.TgZ(0,"a",13),n.YNc(1,th,1,0,"ng-container",11),n.qZA()),2&Et){n.oxw();const Fe=n.MAs(8),Zt=n.oxw();n.Q6J("ngClass",Zt.item.classes)("href",Zt.item.url,n.LSH)("target",Zt.item.openInNewTab?"_blank":"_self"),n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function Jc(Et,Cn){1&Et&&n.GkF(0)}function nh(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"span",14),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw(2);return n.KtG(Ln.item.function())}),n.YNc(1,Jc,1,0,"ng-container",11),n.qZA()}if(2&Et){n.oxw();const Fe=n.MAs(8),Zt=n.oxw();n.Q6J("ngClass",Zt.item.classes),n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function cd(Et,Cn){1&Et&&n.GkF(0)}function Cd(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"a",15),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw(2);return n.KtG(Ln.item.function())}),n.YNc(1,cd,1,0,"ng-container",11),n.qZA()}if(2&Et){n.oxw();const Fe=n.MAs(8),Zt=n.oxw();n.Q6J("ngClass",Zt.item.classes)("routerLink",n.VKq(5,Tl,Zt.item.url))("routerLinkActive",n.DdM(7,cc))("routerLinkActiveOptions",n.VKq(8,Id,Zt.item.exactMatch||!1)),n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function yu(Et,Cn){1&Et&&n.GkF(0)}function bu(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"a",16),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw(2);return n.KtG(Ln.item.function())}),n.YNc(1,yu,1,0,"ng-container",11),n.qZA()}if(2&Et){n.oxw();const Fe=n.MAs(8),Zt=n.oxw();n.Q6J("ngClass",Zt.item.classes)("href",Zt.item.url,n.LSH)("target",Zt.item.openInNewTab?"_blank":"_self"),n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function nu(Et,Cn){if(1&Et&&(n.TgZ(0,"mat-icon",21),n._uU(1),n.qZA()),2&Et){const Fe=n.oxw(3);n.xp6(1),n.Oqu(Fe.item.icon)}}const Zu=function(Et,Cn){return{"background-color":Et,color:Cn}};function mc(Et,Cn){if(1&Et&&(n.TgZ(0,"span",22),n._uU(1),n.qZA()),2&Et){const Fe=n.oxw(3);n.Q6J("translate",Fe.item.badge.translate)("ngStyle",n.WLB(3,Zu,Fe.item.badge.bg,Fe.item.badge.fg)),n.xp6(1),n.hij(" ",Fe.item.badge.title," ")}}function xd(Et,Cn){if(1&Et&&(n.YNc(0,nu,2,1,"mat-icon",17),n.TgZ(1,"span",18),n._uU(2),n.qZA(),n.YNc(3,mc,2,6,"span",19),n.TgZ(4,"mat-icon",20),n._uU(5,"keyboard_arrow_right"),n.qZA()),2&Et){const Fe=n.oxw(2);n.Q6J("ngIf",Fe.item.icon),n.xp6(1),n.Q6J("translate",Fe.item.translate),n.xp6(1),n.Oqu(Fe.item.title),n.xp6(1),n.Q6J("ngIf",Fe.item.badge)}}function fu(Et,Cn){if(1&Et&&n._UZ(0,"fuse-nav-horizontal-item",24),2&Et){const Fe=n.oxw().$implicit;n.Q6J("item",Fe)}}function Fl(Et,Cn){if(1&Et&&n._UZ(0,"fuse-nav-horizontal-collapsable",24),2&Et){const Fe=n.oxw().$implicit;n.Q6J("item",Fe)}}function Jd(Et,Cn){if(1&Et&&n._UZ(0,"fuse-nav-horizontal-collapsable",24),2&Et){const Fe=n.oxw().$implicit;n.Q6J("item",Fe)}}function Jl(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,fu,1,1,"fuse-nav-horizontal-item",23),n.YNc(2,Fl,1,1,"fuse-nav-horizontal-collapsable",23),n.YNc(3,Jd,1,1,"fuse-nav-horizontal-collapsable",23),n.BQk()),2&Et){const Fe=Cn.$implicit;n.xp6(1),n.Q6J("ngIf","item"==Fe.type),n.xp6(1),n.Q6J("ngIf","collapsable"==Fe.type),n.xp6(1),n.Q6J("ngIf","group"==Fe.type)}}const gd=function(Et){return{open:Et}};function dd(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,Vc,2,2,"a",1),n.YNc(2,vu,2,11,"a",2),n.YNc(3,Uh,2,4,"a",3),n.YNc(4,nh,2,2,"span",4),n.YNc(5,Cd,2,10,"a",5),n.YNc(6,bu,2,4,"a",6),n.YNc(7,xd,6,4,"ng-template",null,7,n.W1O),n.TgZ(9,"div",8)(10,"div"),n.YNc(11,Jl,4,3,"ng-container",9),n.qZA()(),n.BQk()),2&Et){const Fe=n.oxw();n.xp6(1),n.Q6J("ngIf",!Fe.item.url&&!Fe.item.function),n.xp6(1),n.Q6J("ngIf",Fe.item.url&&!Fe.item.externalUrl&&!Fe.item.function),n.xp6(1),n.Q6J("ngIf",Fe.item.url&&Fe.item.externalUrl&&!Fe.item.function),n.xp6(1),n.Q6J("ngIf",!Fe.item.url&&Fe.item.function),n.xp6(1),n.Q6J("ngIf",Fe.item.url&&!Fe.item.externalUrl&&Fe.item.function),n.xp6(1),n.Q6J("ngIf",Fe.item.url&&Fe.item.externalUrl&&Fe.item.function),n.xp6(3),n.Q6J("ngClass",n.VKq(11,gd,Fe.isOpen)),n.xp6(1),n.Tol(Fe.fuseConfig.layout.navbar.primaryBackground),n.xp6(1),n.Q6J("ngForOf",Fe.item.children)}}let gc=(()=>{class Et{constructor(Fe){this._fuseConfigService=Fe,this.isOpen=!1,this.classes="nav-collapsable nav-item",this._unsubscribeAll=new Ws.x}ngOnInit(){this._fuseConfigService.config.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{this.fuseConfig=Fe})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}open(){this.isOpen=!0}close(){this.isOpen=!1}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(an.m))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["fuse-nav-horizontal-collapsable"]],hostVars:2,hostBindings:function(Zt,Ln){1&Zt&&n.NdJ("mouseenter",function(){return Ln.open()})("mouseleave",function(){return Ln.close()}),2&Zt&&n.Tol(Ln.classes)},inputs:{item:"item"},decls:1,vars:1,consts:[[4,"ngIf"],["class","nav-link",3,"ngClass",4,"ngIf"],["class","nav-link",3,"ngClass","routerLink","routerLinkActive","routerLinkActiveOptions","target",4,"ngIf"],["class","nav-link",3,"ngClass","href","target",4,"ngIf"],["class","nav-link",3,"ngClass","click",4,"ngIf"],["class","nav-link",3,"ngClass","routerLink","routerLinkActive","routerLinkActiveOptions","click",4,"ngIf"],["class","nav-link",3,"ngClass","href","target","click",4,"ngIf"],["itemContent",""],[1,"children",3,"ngClass"],[4,"ngFor","ngForOf"],[1,"nav-link",3,"ngClass"],[4,"ngTemplateOutlet"],[1,"nav-link",3,"ngClass","routerLink","routerLinkActive","routerLinkActiveOptions","target"],[1,"nav-link",3,"ngClass","href","target"],[1,"nav-link",3,"ngClass","click"],[1,"nav-link",3,"ngClass","routerLink","routerLinkActive","routerLinkActiveOptions","click"],[1,"nav-link",3,"ngClass","href","target","click"],["class","nav-link-icon",4,"ngIf"],[1,"nav-link-title",3,"translate"],["class","nav-link-badge",3,"translate","ngStyle",4,"ngIf"],[1,"collapsable-arrow"],[1,"nav-link-icon"],[1,"nav-link-badge",3,"translate","ngStyle"],[3,"item",4,"ngIf"],[3,"item"]],template:function(Zt,Ln){1&Zt&&n.YNc(0,dd,12,13,"ng-container",0),2&Zt&&n.Q6J("ngIf",!Ln.item.hidden)},dependencies:[ur.mk,ur.sg,ur.O5,ur.tP,ur.PC,Ht.rH,Ht.Od,fo.Hw,Ve.Pi,Qo.oO,Qo.Zl,Wl,Et],data:{animation:va.L}})}return Et})();function ih(Et,Cn){if(1&Et&&n._UZ(0,"fuse-nav-vertical-group",6),2&Et){const Fe=n.oxw().$implicit;n.Q6J("item",Fe)}}function Cu(Et,Cn){if(1&Et&&n._UZ(0,"fuse-nav-vertical-collapsable",6),2&Et){const Fe=n.oxw().$implicit;n.Q6J("item",Fe)}}function id(Et,Cn){if(1&Et&&n._UZ(0,"fuse-nav-vertical-item",6),2&Et){const Fe=n.oxw().$implicit;n.Q6J("item",Fe)}}function ph(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,ih,1,1,"fuse-nav-vertical-group",5),n.YNc(2,Cu,1,1,"fuse-nav-vertical-collapsable",5),n.YNc(3,id,1,1,"fuse-nav-vertical-item",5),n.BQk()),2&Et){const Fe=Cn.$implicit;n.xp6(1),n.Q6J("ngIf","group"==Fe.type),n.xp6(1),n.Q6J("ngIf","collapsable"==Fe.type),n.xp6(1),n.Q6J("ngIf","item"==Fe.type)}}function ud(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,ph,4,3,"ng-container",4),n.BQk()),2&Et){const Fe=n.oxw();n.xp6(1),n.Q6J("ngForOf",Fe.navigation)}}function ql(Et,Cn){if(1&Et&&n._UZ(0,"fuse-nav-horizontal-collapsable",6),2&Et){const Fe=n.oxw().$implicit;n.Q6J("item",Fe)}}function Ku(Et,Cn){if(1&Et&&n._UZ(0,"fuse-nav-horizontal-collapsable",6),2&Et){const Fe=n.oxw().$implicit;n.Q6J("item",Fe)}}function od(Et,Cn){if(1&Et&&n._UZ(0,"fuse-nav-horizontal-item",6),2&Et){const Fe=n.oxw().$implicit;n.Q6J("item",Fe)}}function Ic(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,ql,1,1,"fuse-nav-horizontal-collapsable",5),n.YNc(2,Ku,1,1,"fuse-nav-horizontal-collapsable",5),n.YNc(3,od,1,1,"fuse-nav-horizontal-item",5),n.BQk()),2&Et){const Fe=Cn.$implicit;n.xp6(1),n.Q6J("ngIf","group"==Fe.type),n.xp6(1),n.Q6J("ngIf","collapsable"==Fe.type),n.xp6(1),n.Q6J("ngIf","item"==Fe.type)}}function Gd(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,Ic,4,3,"ng-container",4),n.BQk()),2&Et){const Fe=n.oxw();n.xp6(1),n.Q6J("ngForOf",Fe.navigation)}}function $d(Et,Cn){1&Et&&n._uU(0),2&Et&&n.AsE(" ",Cn.category," : ",Cn.value," ")}function dc(Et,Cn){if(1&Et&&(n.TgZ(0,"div",7)(1,"kendo-chart"),n._UZ(2,"kendo-chart-title",8)(3,"kendo-chart-area",9),n.TgZ(4,"kendo-chart-tooltip"),n.YNc(5,$d,1,2,"ng-template",10),n.qZA(),n.TgZ(6,"kendo-chart-series")(7,"kendo-chart-series-item",11),n._UZ(8,"kendo-chart-series-item-labels",12),n.qZA()(),n._UZ(9,"kendo-chart-legend",13),n.qZA()()),2&Et){const Fe=n.oxw();n.xp6(7),n.Q6J("data",Fe.taskStatusData.taskStatus),n.xp6(1),n.Q6J("content",Fe.labelContent),n.xp6(1),n.Q6J("visible",!0)}}const $c=function(Et,Cn){return{horizontal:Et,vertical:Cn}};let oc=(()=>{class Et{constructor(Fe,Zt,Ln,So){this._changeDetectorRef=Fe,this._fuseNavigationService=Zt,this._personService=Ln,this._taskService=So,this.layout="vertical",this.donutChartApps=["ats","nho","eis","lts","nco","cms","spm"],this._unsubscribeAll=new Ws.x}ngOnInit(){this._personService.currentPersonApplication.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{this.currentApplication=Fe,this.currentApplication?.hasOwnProperty("application")&&this.donutChartApps.includes(this.currentApplication.application.toLowerCase())&&this._taskService.getApplicationTaskChart(JSON.stringify({applicationName:this.currentApplication.application})).pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Ln=>{Ln&&Ln.hasOwnProperty("taskStatus")&&Ln.taskStatus?.find(So=>So.data>0)&&(this.taskStatusData=Ln,this.showDonutChart=!0,this._changeDetectorRef.markForCheck())})}),this.navigation=this.navigation||this._fuseNavigationService.getCurrentNavigation(),this._fuseNavigationService.onNavigationChanged.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{this.navigation="main"!==Fe?Fe:this._fuseNavigationService.getCurrentNavigation(),this._changeDetectorRef.markForCheck()}),(0,Ya.T)(this._fuseNavigationService.onNavigationItemAdded,this._fuseNavigationService.onNavigationItemUpdated,this._fuseNavigationService.onNavigationItemRemoved).pipe((0,pi.R)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}labelContent(Fe){return Fe.value}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(n.sBO),n.Y36(Nt.J),n.Y36(Vi.R),n.Y36(zt.M))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["fuse-navigation"]],inputs:{layout:"layout",navigation:"navigation"},decls:5,vars:7,consts:[["fxFlex","","fxLayout","column",1,"nav-vertical-content-wrap","w-100-p"],[1,"nav",3,"ngClass"],[4,"ngIf"],["class","task-chart","fxFlex","1 0 auto","fxLayout","column","fxLayoutAlign","end center",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"item",4,"ngIf"],[3,"item"],["fxFlex","1 0 auto","fxLayout","column","fxLayoutAlign","end center",1,"task-chart"],["text","Task Status"],["height","300","background","none"],["kendoChartSeriesTooltipTemplate",""],["type","donut","categoryField","taskName","field","data",3,"data"],["color","#fff","background","none",3,"content"],["position","bottom","orientation","horizontal",3,"visible"]],template:function(Zt,Ln){1&Zt&&(n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,ud,2,1,"ng-container",2),n.YNc(3,Gd,2,1,"ng-container",2),n.qZA(),n.YNc(4,dc,10,3,"div",3),n.qZA()),2&Zt&&(n.xp6(1),n.Q6J("ngClass",n.WLB(4,$c,"horizontal"===Ln.layout,"vertical"===Ln.layout)),n.xp6(1),n.Q6J("ngIf","vertical"===Ln.layout),n.xp6(1),n.Q6J("ngIf","horizontal"===Ln.layout),n.xp6(1),n.Q6J("ngIf",Ln.showDonutChart))},dependencies:[ur.mk,ur.sg,ur.O5,wa.xw,wa.Wh,wa.yH,Qo.oO,pa.xH,pa.lH,pa.aE,pa.FV,pa.OC,pa.GZ,pa.pi,pa.r3,pa.KZ,rl.z,Nl.Z,nd._,Wl,gc],styles:["fuse-navigation{display:flex;flex:1 0 auto}fuse-navigation>.nav{margin:0;padding:0;width:100%}.navbar-fuse-sidebar .icont1{display:block}.navbar-fuse-sidebar .icont2{display:none}.navbar-fuse-sidebar.folded:not(.unfolded) .task-chart{visibility:hidden}.navbar-fuse-sidebar.folded:not(.unfolded) .icont1{display:none}.navbar-fuse-sidebar.folded:not(.unfolded) .icont2{display:block}.navbar-fuse-sidebar.folded:not(.unfolded) .nav-vertical-content-wrap{width:64px}\n"],encapsulation:2,changeDetection:0})}return Et})(),Hd=(()=>{class Et{constructor(Fe,Zt,Ln){this._fuseConfigService=Fe,this._fuseNavigationService=Zt,this._fuseSidebarService=Ln,this._unsubscribeAll=new Ws.x}ngOnInit(){this._fuseNavigationService.onNavigationChanged.pipe((0,cs.h)(Fe=>null!==Fe),(0,pi.R)(this._unsubscribeAll)).subscribe(()=>{this.navigation=this._fuseNavigationService.getCurrentNavigation()}),this._fuseConfigService.config.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{this.fuseConfig=Fe})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(an.m),n.Y36(Nt.J),n.Y36(zi.h))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["navbar-horizontal-style-1"]],decls:2,vars:1,consts:[[3,"ngClass"],["layout","horizontal"]],template:function(Zt,Ln){1&Zt&&(n.TgZ(0,"div",0),n._UZ(1,"fuse-navigation",1),n.qZA()),2&Zt&&n.Q6J("ngClass",Ln.fuseConfig.layout.navbar.primaryBackground)},dependencies:[ur.mk,Qo.oO,oc],styles:["navbar.horizontal-style-1{display:flex;flex-direction:column;flex:1 1 auto;width:100%;height:56px;max-height:56px;min-height:56px}\n"],encapsulation:2})}return Et})();var Rc=i(5177),_d=i(66878),rc=i(30481);const Di=["profilePicBrowser"];function uo(Et,Cn){if(1&Et&&n._UZ(0,"img",24),2&Et){const Fe=n.oxw();n.Q6J("src",Fe.profilePicSrc,n.LSH)}}function Wo(Et,Cn){1&Et&&(n.TgZ(0,"mat-icon",25),n._uU(1,"photo_camera"),n.qZA())}function vr(Et,Cn){if(1&Et&&(n.TgZ(0,"div",26),n._uU(1),n.qZA()),2&Et){const Fe=n.oxw();n.xp6(1),n.Oqu(null==Fe.person?null:Fe.person.title)}}const Jr=function(){return["image/jpeg","image/png","image/gif"]},ns=function(){return{suppressScrollX:!0}};let vs=(()=>{class Et{constructor(Fe,Zt,Ln,So,Jo,Hr,Es,Vs,Ra,Ha){this._fuseConfigService=Fe,this._fuseNavigationService=Zt,this._fuseSidebarService=Ln,this._router=So,this._commonService=Jo,this._personService=Hr,this.us=Es,this.dialog=Vs,this.pda=Ra,this.documentService=Ha,this.person={},this.to="",this.allowProfilePictureUpload=!0,this.fileObject=[],this._unsubscribeAll=new Ws.x}set directive(Fe){Fe&&(this._fusePerfectScrollbar=Fe,this._fuseNavigationService.onItemCollapseToggled.pipe((0,Rc.g)(500),(0,pi.R)(this._unsubscribeAll)).subscribe(()=>{this._fusePerfectScrollbar.update()}),this._router.events.pipe((0,cs.h)(Zt=>Zt instanceof Ht.m2),(0,rs.q)(1)).subscribe(()=>{setTimeout(()=>{this._fusePerfectScrollbar.scrollToElement("navbar .nav-link.active",-120)})}))}ngOnInit(){this._router.events.pipe((0,cs.h)(Fe=>Fe instanceof Ht.m2),(0,pi.R)(this._unsubscribeAll)).subscribe(()=>{this._fuseSidebarService.getSidebar("navbar")&&this._fuseSidebarService.getSidebar("navbar").close()}),this._fuseConfigService.config.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{this.fuseConfig=Fe}),this._personService.currentPersonDetail.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{Fe&&Object?.keys(Fe).length>0&&(this.person=Fe,this.getProfilePic(),this.getProfilePictureUploadStatus())}),this.pda.onPersonDataAccessModified.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{Fe&&(this.person.officeId=Fe.defaultOfficeId,this.person.office=Fe.defaultOffice,this.person.organization=Fe.defaultOrganization,this.person.dBA=Fe.dBA,this._personService.currentPersonDetail.next(this.person))})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}toggleSidebarOpened(){this._fuseSidebarService.getSidebar("navbar").toggleOpen()}toggleSidebarFolded(){this._fuseSidebarService.getSidebar("navbar").toggleFold();let Fe=this.us.getTokenValueByKey("personId");this.isNavigationPin=!this._fuseSidebarService.getSidebar("navbar").folded,this._commonService.dynamicUpdate(null,null,"user",Fe,[{columnName:"isNavigationPin",columnValue:this.isNavigationPin}]).subscribe(Zt=>{Zt&&(this.us.setLocalStorage("isNavigationPin",this.isNavigationPin),this.us.onToggleNavBar.next(this.isNavigationPin))})}changeProfilePicture(){this.profilePicBrowser&&this.allowProfilePictureUpload&&this.profilePicBrowser.nativeElement.click()}getProfilePictureUploadStatus(){this._commonService.tfOptionSelect("ProfilePicture","DisallowProfilePictureUpload","Office",this.person.officeId).pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{if(Fe&&Fe.length){const Zt=Fe[0].optionValue.split(",").map(So=>So.toLowerCase()),Ln=this.us.getTokenValueByKey("entity").toLowerCase();this.allowProfilePictureUpload=!Zt.includes(Ln)}})}onProfilePicChange(Fe){if(Fe.target.files&&Fe.target.files.length>0){const Zt=Fe.target.files[0],Ln=(Fe.target.getAttribute("accept")||"").split(",");if(this.fileObject.push(Zt),this.profilePicBrowser.nativeElement.value=null,!Ln.includes(Zt.type))return void this.us.callSnackBar("Invalid file extension. Only "+Ln.map(Jo=>Jo.replace("image/","").replace("video/","")).join(", ")+" file are allowed.","warning");if(!this._commonService.validateUploadSize({file:Zt,fileType:"profilePic"}))return;this.documentScan().then(Jo=>{Jo&&!Jo?.length||Jo?.length&&!Jo?.filter(Hr=>!Hr.cleanResult)?.length?this._commonService.getProfilePicture({personId:this.person.personId}).subscribe(Hr=>{Hr&&Hr.length>0&&(Hr=Hr[0]);const Es={entity:"Person",entityId:this.person.personId,documentTypeListItemId:Hr.documentTypeListItemId,documentId:Hr.documentId,documentName:Zt.name.substr(0,Zt.name.lastIndexOf(".")),file:Zt,fileName:Zt.name};this._commonService.savePictureDocument(Es).subscribe(Vs=>{Vs&&(this.getProfilePic(),this._commonService.onProfilePictureChanged.next(!0))})}):this.us.callSnackBar("uploadFailed","error")})}}documentScan(){return new Promise(Fe=>{this.fileObject?.length?Fe(this.documentService.openScannerDialog(this.fileObject)):(this.us.callSnackBar("Please choose valid file.","error"),Fe(!1))})}changeStyle(Fe){this._fuseSidebarService.getSidebar("navbar").unfoldTemporarily()}getProfilePic(){this.person&&this.person.personId&&(this.profilePicSrc=this._commonService.getPictureDocumentUrl({personId:this.person.personId}))}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(an.m),n.Y36(Nt.J),n.Y36(zi.h),n.Y36(Ht.F0),n.Y36(Ae.v),n.Y36(Vi.R),n.Y36(Rt.t),n.Y36(_d.on),n.Y36(bn.F),n.Y36(On.Z))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["navbar-vertical-style-1"]],viewQuery:function(Zt,Ln){if(1&Zt&&(n.Gf(Di,7),n.Gf(Dr.i,7)),2&Zt){let So;n.iGM(So=n.CRH())&&(Ln.profilePicBrowser=So.first),n.iGM(So=n.CRH())&&(Ln.directive=So.first)}},decls:34,vars:17,consts:[[1,"navbar-top",3,"ngClass"],[1,"logo",3,"mouseover","mouseout"],["src","../../../../../../org_theme/esg/images/backgrounds/inner_logo.png",1,"logo-icon"],[1,"logo-text"],[1,"buttons"],["mat-icon-button","","fxHide.sm","","fxHide.md","","fxHide.lt-md","",1,"toggle-sidebar-folded",3,"click"],[1,"secondary-text"],["mat-icon-button","","fxHide","","fxShow.xs","","fxShow.sm","","fxShow.md","",1,"toggle-sidebar-opened",3,"click"],[1,"navbar-scroll-container","px-8",3,"ngClass"],["fxlayoutGap","12px",1,"zenauto-userinfo-wrap","user","myInfoherer"],[1,"avatar-container","zenauto-avatar-wrap",3,"click"],["class","avatar","onError","this.src='assets/images/avatars/profile.jpg';",3,"src",4,"ngIf"],["class","take-picture fuse-white-fg",4,"ngIf"],["type","file",1,"zenauto-avatar-action",2,"display","none",3,"accept","multiple","change"],["profilePicBrowser",""],["fxFlex","",1,"avatar-information","text-center","px-16"],[1,"h3","zenauto-person-name"],["class","h5 email zenauto-title",4,"ngIf"],[1,"h5","email","zenauto-dba","more","mt-8"],[1,"h5","email","zenauto-office","more"],[1,"h6","font-size-12","email","pb-8","zenauto-personId","more"],[3,"matTooltip"],["fusePerfectScrollbar","",1,"navbar-content",3,"fusePerfectScrollbarOptions"],["layout","vertical",1,"h-100-p"],["onError","this.src='assets/images/avatars/profile.jpg';",1,"avatar",3,"src"],[1,"take-picture","fuse-white-fg"],[1,"h5","email","zenauto-title"]],template:function(Zt,Ln){1&Zt&&(n.TgZ(0,"div",0)(1,"div",1),n.NdJ("mouseover",function(Jo){return Ln.changeStyle(Jo)})("mouseout",function(Jo){return Ln.changeStyle(Jo)}),n._UZ(2,"img",2),n.TgZ(3,"span",3),n._uU(4," ZENOPLE "),n.qZA()(),n.TgZ(5,"div",4)(6,"button",5),n.NdJ("click",function(){return Ln.toggleSidebarFolded()}),n.TgZ(7,"mat-icon",6),n._uU(8,"menu"),n.qZA()(),n.TgZ(9,"button",7),n.NdJ("click",function(){return Ln.toggleSidebarOpened()}),n.TgZ(10,"mat-icon",6),n._uU(11,"arrow_back"),n.qZA()()()(),n.TgZ(12,"div",8)(13,"div",9)(14,"div",10),n.NdJ("click",function(){return Ln.changeProfilePicture()}),n.YNc(15,uo,1,1,"img",11),n.YNc(16,Wo,2,0,"mat-icon",12),n.TgZ(17,"input",13,14),n.NdJ("change",function(Jo){return Ln.onProfilePicChange(Jo)}),n.qZA()(),n.TgZ(19,"div",15)(20,"div",16),n._uU(21),n.ALo(22,"titlecase"),n.qZA(),n.YNc(23,vr,2,1,"div",17),n.TgZ(24,"div",18),n._uU(25),n.qZA(),n.TgZ(26,"div",19),n._uU(27),n.qZA(),n.TgZ(28,"div",20)(29,"span",21),n._uU(30,"#"),n.qZA(),n._uU(31),n.qZA()()(),n.TgZ(32,"div",22),n._UZ(33,"fuse-navigation",23),n.qZA()()),2&Zt&&(n.Q6J("ngClass",Ln.fuseConfig.layout.navbar.secondaryBackground),n.xp6(12),n.Q6J("ngClass",Ln.fuseConfig.layout.navbar.primaryBackground),n.xp6(3),n.Q6J("ngIf",Ln.profilePicSrc),n.xp6(1),n.Q6J("ngIf",Ln.allowProfilePictureUpload),n.xp6(1),n.Q6J("accept",n.DdM(15,Jr).join(","))("multiple",!1),n.xp6(4),n.Oqu(n.lcZ(22,13,null==Ln.person?null:Ln.person.name)),n.xp6(2),n.Q6J("ngIf",null==Ln.person?null:Ln.person.title),n.xp6(2),n.Oqu(null==Ln.person?null:Ln.person.dBA),n.xp6(2),n.Oqu(null!=Ln.person&&null!=Ln.person.application&&Ln.person.application.includes("Portal")?Ln.person.officePortalName:Ln.person.office),n.xp6(2),n.s9C("matTooltip","personId"),n.xp6(2),n.hij(" ",null==Ln.person?null:Ln.person.personId,""),n.xp6(1),n.Q6J("fusePerfectScrollbarOptions",n.DdM(16,ns)))},dependencies:[ts.eB,fo.Hw,rc.Kd,ur.mk,ur.O5,wa.yH,Qo.b8,Qo.oO,Dr.i,oc,ur.rS],styles:["fuse-sidebar.navbar-fuse-sidebar{overflow:hidden}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-top{padding:12px 0;justify-content:center}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-top .buttons{display:none}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-top .logo .logo-icon{width:45px;height:45px}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-top .logo .logo-text{display:none}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-scroll-container .user{padding:12px 0;height:64px;min-height:64px;max-height:64px}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-scroll-container .user .avatar-container{position:relative;top:auto;padding:0;left:auto}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-scroll-container .user .avatar-container .avatar{width:40px;height:40px}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-scroll-container .user .username,fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-scroll-container .user .email,fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-scroll-container .user .h2{display:none}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-1 .navbar-scroll-container .navbar-content{padding-top:0}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) .nav-link .nav-link-icon{margin-right:0}navbar.vertical-style-1{display:flex;flex-direction:column;flex:1 1 auto;width:100%;height:100%}navbar.vertical-style-1.right-navbar .toggle-sidebar-opened mat-icon{transform:rotate(180deg)}navbar navbar-vertical-style-1{display:flex;flex-direction:column;width:100%;height:100%}navbar navbar-vertical-style-1 .navbar-top{display:flex;flex-direction:row;flex:1 0 auto;align-items:center;justify-content:space-between;min-height:63px;max-height:63px;height:63px;padding:12px 12px 12px 20px}@media screen and (max-width: 599px){navbar navbar-vertical-style-1 .navbar-top{min-height:56px;max-height:56px;height:56px}}navbar navbar-vertical-style-1 .navbar-top .logo{display:flex;align-items:center}navbar navbar-vertical-style-1 .navbar-top .logo .logo-icon{width:45px;height:45px}navbar navbar-vertical-style-1 .navbar-top .logo .logo-text{margin-left:12px;font-size:16px;font-weight:300;letter-spacing:.4px;line-height:normal}navbar navbar-vertical-style-1 .navbar-top .buttons{display:flex;align-items:center}navbar navbar-vertical-style-1 .navbar-scroll-container{display:flex;flex-direction:column;flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}navbar navbar-vertical-style-1 .navbar-scroll-container .user{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;gap:12px;background:url(profile-bg.e4f7487ea4032297.png) no-repeat;background-position-y:bottom;margin-top:.7em;margin-bottom:.7em;background-size:100%}navbar navbar-vertical-style-1 .navbar-scroll-container .user .avatar-information{flex-direction:column;display:flex;width:100%}navbar navbar-vertical-style-1 .navbar-scroll-container .user .avatar-information .zenauto-person-name{color:#fff;font-size:1.3em}navbar navbar-vertical-style-1 .navbar-scroll-container .user .avatar-information .zenauto-title{border-bottom:1px dashed #90CBFD;padding-bottom:.6em}navbar navbar-vertical-style-1 .navbar-scroll-container .user .avatar-information .more{color:#d5eaf9}navbar navbar-vertical-style-1 .navbar-scroll-container .user .avatar-information .email{color:#fff}navbar navbar-vertical-style-1 .navbar-scroll-container .user .avatar-container{border-radius:50%;position:relative;overflow:hidden;border:4px solid white;filter:drop-shadow(0px 1px 4px rgba(0,0,0,.25))}navbar navbar-vertical-style-1 .navbar-scroll-container .user .avatar-container .avatar{width:100px;height:100px;margin:0}navbar navbar-vertical-style-1 .navbar-scroll-container .user .avatar-container .take-picture{top:0;color:#fff;background:rgba(0,0,0,.6509803922);width:100%;height:100%;position:absolute;z-index:-5;display:flex;justify-content:center;align-items:center;cursor:pointer}navbar navbar-vertical-style-1 .navbar-scroll-container .user .avatar-container:hover .take-picture{z-index:0}navbar navbar-vertical-style-1 .navbar-scroll-container .navbar-content{flex:1 1 auto}navbar navbar-vertical-style-1 .navbar-scroll-container .navbar-content.nav-perfect-scroll{max-height:calc(100vh - 304px);overflow-y:hidden}navbar navbar-vertical-style-1 .navbar-scroll-container .navbar-content.nav-perfect-scroll:hover{overflow-y:auto}navbar navbar-vertical-style-1 .navbar-scroll-container .navbar-content fuse-nav-vertical-group .group-title{display:none}\n"],encapsulation:2})}return Et})();const Ns=function(){return{suppressScrollX:!0}};let Is=(()=>{class Et{constructor(Fe,Zt,Ln,So){this._fuseConfigService=Fe,this._fuseNavigationService=Zt,this._fuseSidebarService=Ln,this._router=So,this._unsubscribeAll=new Ws.x}set directive(Fe){Fe&&(this._fusePerfectScrollbar=Fe,this._fuseNavigationService.onItemCollapseToggled.pipe((0,Rc.g)(500),(0,pi.R)(this._unsubscribeAll)).subscribe(()=>{this._fusePerfectScrollbar.update()}),this._router.events.pipe((0,cs.h)(Zt=>Zt instanceof Ht.m2),(0,rs.q)(1)).subscribe(()=>{setTimeout(()=>{this._fusePerfectScrollbar.scrollToElement("navbar .nav-link.active",-120)})}))}ngOnInit(){this._router.events.pipe((0,cs.h)(Fe=>Fe instanceof Ht.m2),(0,pi.R)(this._unsubscribeAll)).subscribe(()=>{this._fuseSidebarService.getSidebar("navbar")&&this._fuseSidebarService.getSidebar("navbar").close()}),this._fuseNavigationService.onNavigationChanged.pipe((0,cs.h)(Fe=>null!==Fe),(0,pi.R)(this._unsubscribeAll)).subscribe(()=>{this.navigation=this._fuseNavigationService.getCurrentNavigation()}),this._fuseConfigService.config.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{this.fuseConfig=Fe})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}toggleSidebarOpened(){this._fuseSidebarService.getSidebar("navbar").toggleOpen()}toggleSidebarFolded(){this._fuseSidebarService.getSidebar("navbar").toggleFold()}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(an.m),n.Y36(Nt.J),n.Y36(zi.h),n.Y36(Ht.F0))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["navbar-vertical-style-2"]],viewQuery:function(Zt,Ln){if(1&Zt&&n.Gf(Dr.i,7),2&Zt){let So;n.iGM(So=n.CRH())&&(Ln.directive=So.first)}},decls:13,vars:4,consts:[[1,"navbar-header",3,"ngClass"],[1,"logo"],["src","assets/images/logos/fuse.svg",1,"logo-icon"],[1,"logo-text"],["mat-icon-button","","fxHide.lt-lg","",1,"toggle-sidebar-folded",3,"click"],["mat-icon-button","","fxHide.gt-md","",1,"toggle-sidebar-opened",3,"click"],["fusePerfectScrollbar","",1,"navbar-content",3,"fusePerfectScrollbarOptions","ngClass"],["layout","vertical"]],template:function(Zt,Ln){1&Zt&&(n.TgZ(0,"div",0)(1,"div",1),n._UZ(2,"img",2),n.TgZ(3,"span",3),n._uU(4,"FUSE"),n.qZA()(),n.TgZ(5,"button",4),n.NdJ("click",function(){return Ln.toggleSidebarFolded()}),n.TgZ(6,"mat-icon"),n._uU(7,"menu"),n.qZA()(),n.TgZ(8,"button",5),n.NdJ("click",function(){return Ln.toggleSidebarOpened()}),n.TgZ(9,"mat-icon"),n._uU(10,"arrow_back"),n.qZA()()(),n.TgZ(11,"div",6),n._UZ(12,"fuse-navigation",7),n.qZA()),2&Zt&&(n.Q6J("ngClass",Ln.fuseConfig.layout.navbar.secondaryBackground),n.xp6(11),n.Q6J("fusePerfectScrollbarOptions",n.DdM(3,Ns))("ngClass",Ln.fuseConfig.layout.navbar.primaryBackground))},dependencies:[ts.eB,fo.Hw,ur.mk,Qo.b8,Qo.oO,Dr.i,oc],styles:["fuse-sidebar.navbar-fuse-sidebar{overflow:hidden}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-2 .navbar-header{padding:0 13px}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-2 .navbar-header .logo .logo-text{opacity:0;transition:opacity .2s ease}fuse-sidebar.navbar-fuse-sidebar.folded:not(.unfolded) navbar navbar-vertical-style-2 .navbar-content .material2 .nav-item .nav-link{border-radius:20px;margin:0 12px;padding:0 12px}navbar.vertical-style-2{display:flex;flex-direction:column;flex:1 1 auto;width:100%;height:100%}navbar.vertical-style-2.right-navbar .toggle-sidebar-opened mat-icon{transform:rotate(180deg)}navbar navbar-vertical-style-2{display:flex;flex-direction:column;width:100%;height:100%}navbar navbar-vertical-style-2 .navbar-header{display:flex;align-items:center;justify-content:space-between;height:64px;min-height:64px;padding:0 16px 0 24px;transition:padding .2s ease;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}navbar navbar-vertical-style-2 .navbar-header .logo{display:flex;align-items:center}navbar navbar-vertical-style-2 .navbar-header .logo .logo-icon{width:38px;height:38px}navbar navbar-vertical-style-2 .navbar-header .logo .logo-text{margin-left:8px;font-size:20px;font-weight:300;letter-spacing:.4px}navbar navbar-vertical-style-2 .navbar-content{flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}\n"],encapsulation:2})}return Et})();function qs(Et,Cn){1&Et&&(n.ynx(0),n._UZ(1,"navbar-horizontal-style-1"),n.BQk())}function fa(Et,Cn){1&Et&&(n.ynx(0),n._UZ(1,"navbar-vertical-style-1"),n.BQk())}function ye(Et,Cn){1&Et&&(n.ynx(0),n._UZ(1,"navbar-vertical-style-2"),n.BQk())}let bt=(()=>{class Et{constructor(Fe,Zt){this._elementRef=Fe,this._renderer=Zt,this._variant="vertical-style-1"}get variant(){return this._variant}set variant(Fe){this._renderer.removeClass(this._elementRef.nativeElement,this.variant),this._variant=Fe,this._renderer.addClass(this._elementRef.nativeElement,Fe)}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(n.SBq),n.Y36(n.Qsj))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["navbar"]],inputs:{variant:"variant"},decls:3,vars:3,consts:[[4,"ngIf"]],template:function(Zt,Ln){1&Zt&&(n.YNc(0,qs,2,0,"ng-container",0),n.YNc(1,fa,2,0,"ng-container",0),n.YNc(2,ye,2,0,"ng-container",0)),2&Zt&&(n.Q6J("ngIf","horizontal-style-1"===Ln.variant),n.xp6(1),n.Q6J("ngIf","vertical-style-1"===Ln.variant),n.xp6(1),n.Q6J("ngIf","vertical-style-2"===Ln.variant))},dependencies:[ur.O5,Hd,vs,Is],encapsulation:2})}return Et})();var be=i(26385),st=i(48247),ei=i(21242);function _o(Et,Cn){if(1&Et){const Fe=n.EpF();n.ynx(0),n.TgZ(1,"mat-radio-button",12),n.NdJ("click",function(Ln){const Jo=n.CHM(Fe).$implicit,Hr=n.oxw();return Ln.preventDefault(),n.KtG(Hr.switchRole(Jo))}),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.BQk()}if(2&Et){const Fe=Cn.$implicit;n.xp6(1),n.s9C("value",Fe.roleId),n.Q6J("checked",1==Fe.isCurrent),n.xp6(1),n.hij(" ",n.lcZ(3,3,Fe.resource)," ")}}let gr=(()=>{class Et{constructor(Fe,Zt,Ln,So){this.ps=Fe,this.us=Zt,this.cs=Ln,this.router=So,this.roleList=[],this.testCount=1,this._unsubscribeAll=new Ws.x,this.date=new Date}ngOnInit(){this.ps.personRole.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{Fe&&(this.roleList=Fe)})}switchRole(Fe){this.cs.switchRole({currentRoleId:Fe.roleId}).pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Ln=>{if(Ln)if(Ln.error)this.us.callSnackBar(Ln.error,"warning"),this.roleList=this.roleList.filter(So=>So.roleId!=Fe.roleId),this.roleList=[...this.roleList];else{this.us.roleSwitchClearSessions(),this.ps.applicationData.next(Ln);const So=this.us.getDeviceType();sessionStorage.setItem("headerParams",JSON.stringify({roleId:Ln.person.roleId,applicationId:Ln.person.applicationId,organizationId:Ln.person.organizationId,officeId:Ln.person.officeId,deviceType:So})),this.router.url.toLowerCase()==="/"+Ln.person.uRL.toLowerCase()?this.router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>this.router.navigate(["/"+Ln.person.uRL])):this.router.navigate(["/"+Ln.person.uRL]),this.roleList.map(Jo=>Jo.isCurrent=!1),this.roleList.find(Jo=>Jo.roleId===Fe.roleId).isCurrent=!0}}),this.testCount++}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(Vi.R),n.Y36(Rt.t),n.Y36(Ae.v),n.Y36(Ht.F0))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["quick-panel"]],decls:27,vars:16,consts:[["fxLayout","column","fusePerfectScrollbar",""],["cdkFocusRegionStart","",1,"date"],["matSubheader","","cdkFocusInit",""],[1,"secondary-text","mat-display-1","mb-0","p-16"],[1,"mb-12"],["fxLayout","row","fxLayoutAlign","start start"],[1,"mat-subheading-1"],["cdkFocusRegionEnd",""],["matSubheader",""],[1,"role-list"],["fxLayout","column","fxLayout.gt-xs","column","fxLayoutAlign","start start","fxLayoutWrap",""],[4,"ngFor","ngForOf"],[1,"mb-12",3,"value","checked","click"]],template:function(Zt,Ln){1&Zt&&(n.TgZ(0,"div",0)(1,"mat-list",1)(2,"h3",2)(3,"span"),n._uU(4,"Today"),n.qZA()(),n.TgZ(5,"div",3)(6,"div",4),n._uU(7),n.ALo(8,"date"),n.qZA(),n.TgZ(9,"div",5)(10,"span"),n._uU(11),n.ALo(12,"date"),n.qZA(),n.TgZ(13,"span",6),n._uU(14,"th"),n.qZA(),n.TgZ(15,"span"),n._uU(16),n.ALo(17,"date"),n.qZA()()()(),n._UZ(18,"mat-divider",7),n.TgZ(19,"mat-list")(20,"h3",8)(21,"span"),n._uU(22),n.ALo(23,"translate"),n.qZA()(),n.TgZ(24,"div",9)(25,"mat-radio-group",10),n.YNc(26,_o,4,5,"ng-container",11),n.qZA()()()()),2&Zt&&(n.xp6(7),n.hij(" ",n.xi3(8,5,Ln.date,"EEEE")," "),n.xp6(4),n.hij(" ",n.xi3(12,8,Ln.date,"d"),""),n.xp6(5),n.hij(" ",n.xi3(17,11,Ln.date,"MMMM"),""),n.xp6(6),n.Oqu(n.lcZ(23,14,"role")),n.xp6(4),n.Q6J("ngForOf",Ln.roleList))},dependencies:[be.d,st.Zj,st.Sc,ei.OY,ei.vy,ur.sg,wa.xw,wa.Wh,Dr.i,Ve.X$,ur.uU],styles:["quick-panel{display:flex;flex-direction:column;flex:1 1 auto;width:280px;min-width:280px;max-width:280px;z-index:99}quick-panel .mat-slide-toggle-content{flex:1}quick-panel .role-list{padding:20px;height:calc(100vh - 221px);overflow:auto}quick-panel .role-list mat-radio-group mat-radio-button label .mat-radio-label-content{white-space:normal}\n"],encapsulation:2})}return Et})();var ds=i(6990),us=i(56223),zs=i(84187),Ta=i(48424),Pe=i(24678),Tn=i(42400),v=i(82012);let ue=(()=>{class Et{transform(Fe,Zt){return Fe&&Fe.length>0&&Fe.sort((Ln,So)=>Ln[Zt]<So[Zt]?-1:Ln[Zt]>So[Zt]?1:0),Fe}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275pipe=n.Yjl({name:"sortBy",type:Et,pure:!0})}return Et})();const dt=["searchAutoFocus"];function In(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"button",18),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw();return n.KtG(Ln.cleanSearch())}),n.TgZ(1,"mat-icon"),n._uU(2,"close"),n.qZA()()}}function er(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"input",26),n.NdJ("ngModelChange",function(Ln){n.CHM(Fe);const So=n.oxw().$implicit;return n.KtG(So.isSelect=Ln)})("click",function(Ln){n.CHM(Fe);const So=n.oxw().$implicit,Jo=n.oxw();return n.KtG(Jo.onCheckChange(Ln,So))}),n.qZA()}if(2&Et){const Fe=n.oxw().$implicit;n.s9C("id","chk-"+Fe.nodeId),n.Q6J("ngModel",Fe.isSelect)}}function Br(Et,Cn){if(1&Et&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&Et){const Fe=n.oxw().$implicit;n.xp6(1),n.hij(" ",Fe.name," ")}}function es(Et,Cn){1&Et&&n.GkF(0)}const Ks=function(Et){return{$implicit:Et}};function xa(Et,Cn){if(1&Et&&(n.TgZ(0,"ul",27),n.YNc(1,es,1,0,"ng-container",28),n.qZA()),2&Et){const Fe=n.oxw().$implicit;n.oxw();const Zt=n.MAs(25);n.xp6(1),n.Q6J("ngTemplateOutlet",Zt)("ngTemplateOutletContext",n.VKq(2,Ks,Fe))}}const ha=function(Et,Cn){return[Et,Cn]};function Aa(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"ul",19)(1,"li",20)(2,"mat-icon",21),n.NdJ("click",function(){const So=n.CHM(Fe).$implicit,Jo=n.oxw();return n.KtG(Jo.openOrCloseNode(So))}),n._uU(3),n.qZA(),n.YNc(4,er,1,2,"input",22),n._UZ(5,"label",23),n.YNc(6,Br,2,1,"span",24),n.YNc(7,xa,2,4,"ul",25),n.qZA()()}if(2&Et){const Fe=Cn.$implicit,Zt=n.oxw();n.xp6(1),n.Q6J("ngClass",n.WLB(7,ha,Fe.display?"show-node":"hide-node",Fe.isOpen?"top-parent-open":"top-parent-close")),n.xp6(1),n.Q6J("ngClass",Fe.display?"show-node":"hide-node"),n.xp6(1),n.hij(" ","tenant"==(null==Fe.nodeType?null:Fe.nodeType.toLowerCase())&&Fe.isOpen?"expand_more":"chevron_right"," "),n.xp6(1),n.Q6J("ngIf",Fe.display),n.xp6(1),n.s9C("for","chk-"+Fe.nodeId),n.xp6(1),n.Q6J("ngIf",Fe.display),n.xp6(1),n.Q6J("ngIf",Zt.getTree(Fe.nodeId,"parentNodeId"))}}function vl(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"mat-icon",21),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw().$implicit,So=n.oxw(2);return n.KtG(So.openOrCloseNode(Ln))}),n._uU(1),n.qZA()}if(2&Et){const Fe=n.oxw().$implicit;n.Q6J("ngClass",Fe.display?"show-node ":"hide-node"),n.xp6(1),n.hij(" ",Fe.isOpen?"expand_more":"chevron_right"," ")}}function ml(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"input",26),n.NdJ("ngModelChange",function(Ln){n.CHM(Fe);const So=n.oxw().$implicit;return n.KtG(So.isSelect=Ln)})("click",function(Ln){n.CHM(Fe);const So=n.oxw().$implicit,Jo=n.oxw(2);return n.KtG(Jo.onCheckChange(Ln,So))}),n.qZA()}if(2&Et){const Fe=n.oxw().$implicit;n.s9C("id","chk-"+Fe.nodeId),n.Q6J("ngModel",Fe.isSelect)}}function yl(Et,Cn){if(1&Et&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&Et){const Fe=n.oxw().$implicit;n.xp6(1),n.hij(" ",Fe.name," ")}}function Cc(Et,Cn){1&Et&&n.GkF(0)}function Bc(Et,Cn){if(1&Et&&(n.TgZ(0,"ul",27),n.YNc(1,Cc,1,0,"ng-container",28),n.qZA()),2&Et){const Fe=n.oxw().$implicit;n.oxw(2);const Zt=n.MAs(25);n.xp6(1),n.Q6J("ngTemplateOutlet",Zt)("ngTemplateOutletContext",n.VKq(2,Ks,Fe))}}function Bl(Et,Cn){if(1&Et&&(n.TgZ(0,"li",20),n.YNc(1,vl,2,2,"mat-icon",30),n.YNc(2,ml,1,2,"input",22),n._UZ(3,"label",23),n.YNc(4,yl,2,1,"span",24),n.YNc(5,Bc,2,4,"ul",25),n.qZA()),2&Et){const Fe=Cn.$implicit,Zt=n.oxw(2);n.Q6J("ngClass",n.WLB(6,ha,Fe.display?"show-node ":"hide-node",Fe.isOpen?"parent-open":"parent-close")),n.xp6(1),n.Q6J("ngIf","tenantorganization"==(null==Fe.nodeType?null:Fe.nodeType.toLowerCase())||"region"==(null==Fe.officeType?null:Fe.officeType.toLowerCase())),n.xp6(1),n.Q6J("ngIf",Fe.display),n.xp6(1),n.s9C("for","chk-"+Fe.nodeId),n.xp6(1),n.Q6J("ngIf",Fe.display),n.xp6(1),n.Q6J("ngIf",Zt.getTree(Fe.nodeId,"parentNodeId"))}}function Wc(Et,Cn){if(1&Et&&(n.YNc(0,Bl,6,9,"li",29),n.ALo(1,"sortBy")),2&Et){const Fe=Cn.$implicit,Zt=n.oxw();n.Q6J("ngForOf",n.xi3(1,1,Zt.getTree(Fe.nodeId,"parentNodeId"),"name"))}}let xu=(()=>{class Et{set pdaData(Fe){Fe&&(this._pdaData=Fe,this.treeNode=this._pdaData[0].access,this.defaultNodeId=this._pdaData[0].defaultNodeId,this.getTree(0,"isSelect").forEach(Ln=>{this.walkthroughParent(Ln)}),this.getRootNode(),this.defaultOfficeNode(),this.defaultNode={...this.treeNode.find(Ln=>Ln.nodeId===this.defaultNodeId)},this.pda.pdaData=[...this.treeNode],this.pda.defaultNode={...this.defaultNode},this.autoFocus.nativeElement.focus(),this.selectedOption="all")}defaultOfficeNode(){this.defaultNodes=this.getDefaultNodes(),this.officeList=this.defaultNodes.filter(Fe=>"region"!==Fe.officeType.toLowerCase()).map(Fe=>({nodeId:Fe.nodeId,office:Fe.name,alias:Fe.organization})),this.officeList.sort((Fe,Zt)=>Fe.office.toLowerCase()>Zt.office.toLowerCase()?1:-1),this.officeConfig={data:this.officeList,columns:[{name:"alias",width:20,type:"string"},{name:"office",width:80,type:"string"}],totalCount:this.officeList.length}}get pdaData(){return this._pdaData}constructor(Fe,Zt,Ln,So,Jo){this.dialogRef=Fe,this.data=Zt,this.pda=Ln,this.commonService=So,this.utilityService=Jo,this.officeConfig={},this.autoCompleteControl=new us.p4,this.officeList=[],this.defaultNode={},this.search="",this.filter=!1,this.default=!0,this.checked=!1,this.all=!0,this.unchecked=!1}ngOnInit(){}getRootNode(){this.rootNode=this.treeNode.filter(Fe=>Fe.nodeId==Fe.rootNodeId)}onCheckChange(Fe,Zt){if("Tenant"==Zt.nodeType){let Ln=this.treeNode.filter(So=>So.rootNodeId===Zt.nodeId&&"Office"==So.nodeType);1==Ln.length&&Ln[0].nodeId==this.defaultNode.nodeId?(Zt.isSelect=!0,Fe.preventDefault(),this.utilityService.callSnackBar("Default office cannot be removed","info")):this.walkThroughMain(Zt,Fe)}else if("TenantOrganization"==Zt.nodeType){let Ln=this.treeNode.filter(So=>So.parentNodeId===Zt.nodeId);1==Ln.length&&Ln[0].nodeId==this.defaultNode.nodeId?(Zt.isSelect=!0,Fe.preventDefault(),this.utilityService.callSnackBar("Default office cannot be removed","info")):this.walkThroughMain(Zt,Fe)}else this.walkThroughMain(Zt,Fe);this.pda.pdaData=[...this.treeNode],this.pda.defaultNode={...this.defaultNode}}walkThroughMain(Fe,Zt){"Office"==Fe.nodeType&&Fe.nodeId==this.defaultNode.nodeId?(Fe.isSelect=!0,this.walkthroughParent(Fe),Zt.preventDefault(),this.utilityService.callSnackBar("Default office cannot be removed","info")):Fe.isSelect?(Fe.isSelect=!1,this.walkThrough(Fe,Fe.isSelect)):(Fe.isSelect=!0,this.walkThrough(Fe,Fe.isSelect))}walkThrough(Fe,Zt){this.walkThroughChildren(Fe,Zt),this.walkthroughParent(Fe),this.defaultOfficeNode(),this.hasDefaultNode&&(this.walkthroughParent(this.defaultNode),this.hasDefaultNode=!1)}walkthroughParent(Fe){let Zt=this.getTree(Fe.parentNodeId,"nodeId");if(Zt&&Zt.length){let Ln=this.getTree(Zt[0].nodeId,"parentNodeId");Ln.length==Ln.filter(So=>1==So.isSelect).length?(Zt[0].isSelect=!0,Zt[0].isIntermediate=!1):(Zt[0].isSelect=!1,Zt[0].isIntermediate=!0),this.walkthroughParent(Zt[0])}}walkThroughChildren(Fe,Zt){let Ln=this.getTree(Fe.nodeId,"parentNodeId");Ln&&Ln.length&&Ln.forEach(So=>{"Office"==So.nodeType&&So.nodeId===this.defaultNode.nodeId?(this.hasDefaultNode=!0,So.isSelect=!0,Zt||this.utilityService.callSnackBar("Default office cannot be removed.","info"),this.walkthroughParent(So)):(So.isSelect=Zt,this.walkThroughChildren(So,Zt))})}getTree(Fe,Zt){return"nodeId"==Zt?this.treeNode.filter(Ln=>Ln.nodeId===Fe):"parentNodeId"==Zt?this.treeNode.filter(Ln=>Ln.parentNodeId===Fe):"isSelect"==Zt?this.treeNode.filter(Ln=>!0===Ln.isSelect):void 0}getDefaultNodes(){return this.treeNode.filter(Fe=>"Office"===Fe.nodeType&&!0===Fe.isSelect)}defaultNodeSelectionChange(Fe){Object.keys(Fe).length>0&&(this.defaultNode={...this.defaultNodes.find(Zt=>Zt.nodeId===Fe[0].nodeId)},this.pda.pdaData=[...this.treeNode],this.pda.defaultNode={...this.defaultNode})}searchPda(){if(this.treeNode.forEach(Fe=>{Fe.isSearch=!1}),null!=this.search||""!=this.search){let Fe;this.filter=!0,Fe=this.treeNode.filter("all"==this.selectedOption?Zt=>Zt.name.toLowerCase().indexOf(this.search.toLowerCase())>-1:"checked"==this.selectedOption?Zt=>Zt.name.toLowerCase().indexOf(this.search.toLowerCase())>-1&&1==Zt.isSelect:Zt=>Zt.name.toLowerCase().indexOf(this.search.toLowerCase())>-1&&0==Zt.isSelect),Fe.forEach(Zt=>{this.reStructureSearchParentData(Zt),this.reStructureSearchChildData(Zt),this.isIntermediateNode(Zt)})}else{let Fe;this.filter=!1,Fe="all"==this.selectedOption?this.treeNode:this.treeNode.filter("checked"==this.selectedOption?Zt=>1==Zt.isSelect:Zt=>0==Zt.isSelect),Fe.forEach(Zt=>{this.reStructureSearchParentData(Zt),this.reStructureSearchChildData(Zt),this.isIntermediateNode(Zt)})}this.treeNode.forEach(Fe=>{Fe.display=Fe.isSearch})}reStructureSearchParentData(Fe){this.isSearch(Fe);let Zt=this.getTree(Fe.parentNodeId,"nodeId");Zt&&Zt.length&&(this.isSearch(Zt[0]),this.reStructureSearchParentData(Zt[0]))}reStructureSearchChildData(Fe){let Zt;this.isSearch(Fe),Zt="all"==this.selectedOption?this.getTree(Fe.nodeId,"parentNodeId"):"checked"==this.selectedOption?this.getTree(Fe.nodeId,"parentNodeId").filter(Ln=>1==Ln.isSelect):this.getTree(Fe.nodeId,"parentNodeId").filter(Ln=>0==Ln.isSelect),Zt&&Zt.length&&Zt.forEach(Ln=>{this.isSearch(Ln),this.reStructureSearchChildData(Ln)})}isSearch(Fe){this.treeNode.find(Zt=>Zt.nodeId==Fe.nodeId).isSearch=!0}toggleView(Fe){if("checked"==Fe){let Zt;this.cleanDisplay(),Zt=""!=this.search.trim()?this.treeNode.filter(Ln=>1==Ln.isSelect&&1==Ln.isSearch):this.treeNode.filter(Ln=>1==Ln.isSelect),Zt.forEach(Ln=>{Ln.display=!0,this.displayParents(Ln)})}else if("all"==Fe){let Zt;Zt=""!=this.search.trim()?this.treeNode.filter(Ln=>1==Ln.isSearch):this.treeNode,this.cleanDisplay(),Zt.forEach(Ln=>{Ln.display=!0,this.displayParents(Ln)})}else{let Zt;Zt=""!=this.search.trim()?this.treeNode.filter(Ln=>1==Ln.isSearch&&0==Ln.isSelect):this.treeNode.filter(Ln=>0==Ln.isSelect),this.cleanDisplay(),Zt.forEach(Ln=>{Ln.display=!0,this.displayParents(Ln)})}}displayParents(Fe){let Zt=this.getTree(Fe.parentNodeId,"nodeId");Zt&&Zt.length&&(Zt[0].display=!0,this.displayParents(Zt[0]))}cleanDisplay(){this.treeNode.forEach(Fe=>{Fe.display=!1})}cleanSearch(){this.search="",this.searchPda()}isIntermediateNode(Fe){let Zt=this.getTree(Fe.parentNodeId,"nodeId");if(Zt&&Zt.length){let Ln=this.getTree(Zt[0].nodeId,"parentNodeId");Zt[0].isIntermediate=Ln.length!=Ln.filter(So=>1==So.isSelect).length,this.walkthroughParent(Zt[0])}}closeDialog(){this.dialogRef.close()}openOrCloseNode(Fe){Fe.isOpen=!Fe.isOpen}displayWith(){return this.defaultNode?this.defaultNode.name:""}ngAfterViewInit(){}onSelectionChange(Fe){this.selectedOption=Fe.value,this.toggleView(Fe.value)}ngOnDestroy(){}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(_d.hV),n.Y36(_d.eJ),n.Y36(bn.F),n.Y36(Ae.v),n.Y36(Rt.t))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["zen-person-data-access"]],viewQuery:function(Zt,Ln){if(1&Zt&&n.Gf(dt,7),2&Zt){let So;n.iGM(So=n.CRH())&&(Ln.autoFocus=So.first)}},inputs:{pdaData:"pdaData"},decls:26,vars:14,consts:[["fxLayout","row wrap","fxFlex","100",1,"px-12","pt-12","grey-100-bg"],["fxLayout","column","fxFlex","100","fxFlex.gt-xs","100","fxFlex.gt-md","100"],[1,"zen-select","chip-black",3,"ngModel","config","nameField","valueField","placeholder","clearButton","panelClass","virtualScroll","selectEvent","ngModelChange"],["fxLayout","row wrap","fxFlex","100",1,"px-12","grey-100-bg"],["fxLayout","column","fxFlex","70","fxFlex.gt-xs","70","fxFlex.gt-md","70"],["fxFlex","100",1,"search-for"],["matInput","","placeholder","Search",3,"ngModel","ngModelChange"],["searchAutoFocus",""],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["fxLayout","column","fxFlex","30","fxFlex.gt-xs","30","fxFlex.gt-md","30",1,""],["fxFlex","100",1,"select-check"],[3,"value","valueChange","selectionChange"],["value","all"],["value","checked"],["value","unchecked"],["fxLayout","row wrap","fxFlex","100",1,"tree-tree-cover","px-12","pt-12"],["class","tree-tree",4,"ngFor","ngForOf"],["recursiveNode",""],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[1,"tree-tree"],[3,"ngClass"],[3,"ngClass","click"],["type","checkbox",3,"id","ngModel","ngModelChange","click",4,"ngIf"],[3,"for"],[4,"ngIf"],["class","nav collapse","style","margin-left:20px",4,"ngIf"],["type","checkbox",3,"id","ngModel","ngModelChange","click"],[1,"nav","collapse",2,"margin-left","20px"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass","click",4,"ngIf"]],template:function(Zt,Ln){1&Zt&&(n.TgZ(0,"div",0)(1,"div",1)(2,"zen-select",2),n.NdJ("selectEvent",function(Jo){return Ln.defaultNodeSelectionChange(Jo)})("ngModelChange",function(Jo){return Ln.defaultNode.nodeId=Jo}),n.ALo(3,"translate"),n.qZA()()(),n.TgZ(4,"div",3)(5,"div",4)(6,"div",5)(7,"mat-form-field")(8,"input",6,7),n.NdJ("ngModelChange",function(Jo){return Ln.search=Jo})("ngModelChange",function(){return Ln.searchPda()}),n.qZA()(),n.YNc(10,In,3,0,"button",8),n.qZA()(),n.TgZ(11,"div",9)(12,"div",10)(13,"mat-form-field")(14,"mat-select",11),n.NdJ("valueChange",function(Jo){return Ln.selectedOption=Jo})("selectionChange",function(Jo){return Ln.onSelectionChange(Jo)}),n.TgZ(15,"mat-option",12),n._uU(16,"All"),n.qZA(),n.TgZ(17,"mat-option",13),n._uU(18,"Checked"),n.qZA(),n.TgZ(19,"mat-option",14),n._uU(20,"Unchecked"),n.qZA()()()()()(),n.TgZ(21,"div",15)(22,"div",1),n.YNc(23,Aa,8,10,"ul",16),n.YNc(24,Wc,2,4,"ng-template",null,17,n.W1O),n.qZA()()),2&Zt&&(n.xp6(2),n.Q6J("ngModel",Ln.defaultNode.nodeId)("config",Ln.officeConfig)("nameField","office")("valueField","nodeId")("placeholder",n.lcZ(3,12,"defaultOffice"))("clearButton",!1)("panelClass","custom-dropdown")("virtualScroll",!0),n.xp6(6),n.Q6J("ngModel",Ln.search),n.xp6(2),n.Q6J("ngIf",Ln.search),n.xp6(4),n.Q6J("value",Ln.selectedOption),n.xp6(9),n.Q6J("ngForOf",Ln.rootNode))},dependencies:[ur.mk,ur.sg,ur.O5,ur.tP,us.Fj,us.Wl,us.JJ,us.On,fo.Hw,zs.v_,zs.nX,Ta.x8,Pe.CK,ts.eB,Tn.k0,wa.xw,wa.yH,Qo.oO,v.i,ue,Ve.X$],styles:["[_nghost-%COMP%]   .tree-tree-cover[_ngcontent-%COMP%]{overflow-y:auto!important;scrollbar-width:thin}[_nghost-%COMP%]   .chun-mark[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:48px}[_nghost-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]{box-shadow:none}[_nghost-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]   mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]   mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background:none!important}[_nghost-%COMP%]   .search-for[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%]   .search-for[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]   .search-for[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{position:absolute;right:0;top:0}[_nghost-%COMP%]   .select-check[_ngcontent-%COMP%]{padding-left:5px}[_nghost-%COMP%]   .select-check[_ngcontent-%COMP%]   .mat-select[_ngcontent-%COMP%]{margin-top:-13px}[_nghost-%COMP%]   .select-check[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]   .show-node[_ngcontent-%COMP%]{display:block;line-height:35px}[_nghost-%COMP%]   .hide-node[_ngcontent-%COMP%]{display:none}  .custom-dropdown mat-table mat-header-row mat-header-cell{padding-left:12px}  .custom-dropdown mat-table mat-header-row mat-header-cell.mat-column-alias{max-width:30ch!important}  .custom-dropdown mat-table mat-option{border-bottom:1px solid #e8e8e8;height:auto;white-space:normal;line-height:normal}  .custom-dropdown mat-table mat-option mat-row{align-items:flex-start;min-height:auto;padding:12px 0}  .custom-dropdown mat-table mat-option mat-cell{align-items:flex-start;padding-left:12px;word-break:break-word}  .custom-dropdown mat-table mat-option mat-row mat-cell.mat-column-alias{max-width:30ch!important}"],changeDetection:0})}return Et})(),iu=(()=>{class Et{constructor(Fe,Zt,Ln,So,Jo,Hr,Es,Vs){this.pda=Fe,this.dialogRef=Zt,this.data=Ln,this.commonService=So,this.utilityService=Jo,this.router=Hr,this.sv=Es,this.eds=Vs,this._unsubscribeAll=new Ws.x}ngOnInit(){this.pda.GetPersonDataAccess(JSON.stringify({personId:0})).pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Zt=>{this.pdaData={...Zt}})}saveDataAccess(){this.treeNode=this.pda.pdaData,this.defaultNode=this.pda.defaultNode;let Fe=this.utilityService.getTokenValueByKey("personId"),Zt={personId:"",personDataAccessId:"",defaultNodeId:""};Zt.personId=Fe,Zt.defaultNodeId=this.defaultNode.nodeId,Zt.personDataAccessId=this.treeNode.filter(Jo=>1==Jo.isSelect&&"Office"==Jo.nodeType).map(Jo=>Jo.personDataAccessId).join(",").toString(),this.pda.UpdatePersonDataAccess(Zt).subscribe(Jo=>{if(Jo){let Hr=JSON.parse(sessionStorage.getItem("headerParams"));Hr.officeId=Jo.defaultOfficeId,sessionStorage.setItem("headerParams",JSON.stringify(Hr)),this.pda.onPersonDataAccessModified.next(Jo),this.utilityService.officeDetail.next(Jo),this.utilityService.callSnackBar("Data Access updated.","success")}}),this.dialogRef.close();const Ln=this.eds.getCurrentEntityDetail();if(this.eds.isDetailView.getValue()){if(this.eds.directory?.length){this.eds.isDetailView.next(!1);const Jo=this.router.url.split("/");this.router.navigate(["./"+Jo[1]+"/"+Jo[2]],{skipLocationChange:!!Ln.isSlideView}),sessionStorage.removeItem("edl")}}else Ln.isSlideView&&(this.sv.isOpen="closed",this.sv.showHideSlideView.next(this.sv.isOpen))}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(bn.F),n.Y36(_d.hV),n.Y36(_d.eJ),n.Y36(Ae.v),n.Y36(Rt.t),n.Y36(Ht.F0),n.Y36(on.D),n.Y36(mn.a))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["person-data-access-popup"]],decls:13,vars:1,consts:[[1,"dialog-content-wrapper"],[1,"mat-accent","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","space-between center"],[1,"title","dialog-title"],["mat-icon-button","","aria-label","Close dialog",3,"click"],["mat-dialog-content","",1,"m-0","zen-person-data-dialog"],[1,"w-100-p",3,"pdaData"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","end center",1,"m-0","p-12","grey-100-bg","data-access-footer"],["mat-raised-button","","type","submit","aria-label","SAVE",1,"save-button","mat-accent",3,"click"]],template:function(Zt,Ln){1&Zt&&(n.TgZ(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),n._uU(4,"Data Access"),n.qZA(),n.TgZ(5,"button",4),n.NdJ("click",function(){return Ln.dialogRef.close()}),n.TgZ(6,"mat-icon"),n._uU(7,"close"),n.qZA()()()(),n.TgZ(8,"div",5),n._UZ(9,"zen-person-data-access",6),n.qZA(),n.TgZ(10,"div",7)(11,"button",8),n.NdJ("click",function(){return Ln.saveDataAccess()}),n._uU(12," Save "),n.qZA()()()),2&Zt&&(n.xp6(9),n.Q6J("pdaData",Ln.pdaData))},dependencies:[ar.Ye,ar.rD,fo.Hw,ts.eB,wa.xw,wa.Wh,wa.yH,xu],styles:[".zen-person-data-dialog[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding:0}"]})}return Et})();var ku=i(37563),Lc=i(23605),ul=i(23799),Mc=i(41477),uf=i(7623),Tf=i(65139),Ff=i(27688);const hf=["emailSignatureDetailFormElement"],Vd=["previewElement"],Fu=["fileUploadButton"],Ch=["zenFileUpload"],mh=["emailSignatureDetailForm"];function Sd(Et,Cn){if(1&Et&&(n.TgZ(0,"span",46)(1,"label",47)(2,"span",48)(3,"b"),n._uU(4,"Selected File: "),n.qZA()()(),n.TgZ(5,"span")(6,"b"),n._uU(7),n.qZA()()()),2&Et){const Fe=n.oxw();n.xp6(7),n.Oqu(Fe.uploadedDocumentName)}}const vd=function(){return["template"]};let hd=(()=>{class Et{constructor(Fe,Zt,Ln,So,Jo){this.dialogRef=Fe,this.emailSignatureDialogData=Zt,this.cs=Ln,this.us=So,this.ds=Jo,this.emailSignature={},this.emailSignatureImage={},this.documentParams={},this.fields=["name","title","company","phone","address","emailaddress","website","linkedin","facebook","twitter","instagram","youtube"],this.allowedExtensions=["jpeg","jpg","png","webp"],this._unsubscribeAll=new Ws.x}ngOnInit(){this.emailSignatureDetailForm=new us.F([],[]),this.getSignatureTemplates()}onTemplateSelect(Fe){this.currentTemplateBody=Fe[0].body,this.previewElement.nativeElement.innerHTML=this.currentTemplateBody,this.emailSignature.templateId=Fe[0].templateId}getSignatureTemplates(){this.cs.getSignatureTemplates({category:"PersonalEmailSignatureTemplate"}).pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Zt=>{if(this.templateList=Zt.emailSignature,this.currentTemplateBody=this.templateList[0].body,this.previewElement.nativeElement.innerHTML=this.currentTemplateBody,this.emailSignature.templateId=this.templateList[0].templateId,Zt.fileName){this.uploadedDocumentName=Zt.fileName,this.documentId=Zt.documentId;const Ln=this.base64ToBlob(Zt.document),So=new FileReader;So.readAsDataURL(Ln),So.onload=()=>{this.previewElement.nativeElement.getElementsByClassName("photo")[0].src=So.result},this.reinitializeTemplate("edit",this.fields)}else this.onSetData()})}onSetData(){let Fe={personId:this.us.getTokenValueByKey("personId")};this.cs.getTfGeneralPersonInformation(JSON.stringify(Fe)).pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Zt=>{if(Zt){const Ln=this.previewElement.nativeElement;Ln.getElementsByClassName("name")[0].innerText=Zt[0].name,Ln.getElementsByClassName("address")[0].innerText=Zt[0].address,Ln.getElementsByClassName("phone")[0].innerText=Zt[0].phone,Ln.getElementsByClassName("title")[0].innerText=Zt[0].title,Ln.getElementsByClassName("company")[0].innerText=Zt[0].organization;const Ra=Ln.getElementsByClassName("emailaddress")[0];Ra.href="mailto:"+Zt[0].email,Ra.textContent=Zt[0].email;let Ha=["name","title","company","phone","address","emailaddress"];const Al=Ln.getElementsByTagName("table")[0];this.currentTemplateBody=Al.outerHTML,this.reinitializeTemplate("edit",Ha)}})}base64ToBlob(Fe){const Zt=atob(Fe),Ln=new Array(Zt.length);for(let Jo=0;Jo<Zt.length;Jo++)Ln[Jo]=Zt.charCodeAt(Jo);const So=new Uint8Array(Ln);return new Blob([So],{type:"image/png"})}onFileUpload(Fe){let Zt=Fe[0].name.split(".").pop();if(!this.allowedExtensions.includes(Zt))return this.fileObject=null,this.documentId=null,this.uploadedDocumentName=null,this.us.callSnackBar("Please upload image files only.","info");this.fileObject=Fe;const Ln=new FileReader;Ln.readAsDataURL(this.fileObject[0]),Ln.onload=()=>{this.documentId=null,this.uploadedDocumentName=null,this.previewElement.nativeElement.getElementsByClassName("photo")[0].src=Ln.result}}documentScan(){return new Promise(Fe=>{Fe(this.fileObject||this.documentId?this.documentId?{success:!0,hasDocumentId:!0}:this.ds.openScannerDialogNew(this.fileObject):{success:!1,hasDocumentId:!1,hasFileObject:!1})})}onZenFileUpload(Fe){}onFileRemove(Fe){}onBlur(Fe,Zt,Ln=""){const So=this.previewElement.nativeElement;let Jo=Zt.toLowerCase().trim(),Hr="hide"+Jo.toLowerCase();if(So){switch(Jo.toLowerCase()){case"name":case"title":case"company":case"phone":case"address":const Vs=So.getElementsByClassName(Jo)[0];""==Ln?Vs.innerText=Fe:"edit"==Ln&&("phone"==Jo.toLowerCase()&&(Vs.innerText=Vs.innerText.replace(/[^0-9]/g,"")),this.emailSignature[Zt]=Vs.innerText);let Ra=So.getElementsByClassName(Hr);for(let Rl=0;Rl<Ra.length;Rl++)if("title"==Jo.toLowerCase()&&""==Fe&&""==Ln)Vs.innerText="#PersonalSignature.Title#";else if("name"==Jo.toLowerCase()&&""==Fe&&""==Ln)Vs.innerText="#PersonalSignature.Name#";else if("company"==Jo.toLowerCase()&&""==Fe&&""==Ln)Vs.innerText="#PersonalSignature.CompanyName#";else if("edit"==Ln?Ra[Rl].style.display=""==Vs.innerText?"none":"inline":"save"==Ln?(Ra[Rl].style.display=this.emailSignature[Zt]&&""!=this.emailSignature[Zt]?"inline":"none","none"==Ra[Rl].style.display&&(Vs.innerText="")):Ra[Rl].style.display=""==Fe?"none":"inline","phone"==Jo.toLowerCase()){const jc=So.getElementsByClassName("emailaddress")[0];So.getElementsByClassName("hidephonemailpipe")[0].style.display=""!==Fe&&""!==jc.textContent?"inline":"none"}else if("address"==Jo.toLowerCase()){const jc=So.getElementsByClassName("website")[0];So.getElementsByClassName("hideaddresswebsitepipe")[0].style.display=""!==Fe&&""!==jc.textContent?"inline":"none"}break;case"emailaddress":const Ha=So.getElementsByClassName(Jo)[0];""==Ln?(Ha.href="mailto:"+Fe,Ha.textContent=Fe):"edit"==Ln&&(this.emailSignature[Zt]=Ha.textContent);let Al=So.getElementsByClassName(Hr);for(let Rl=0;Rl<Al.length;Rl++)if("edit"==Ln?Al[Rl].style.display=""==Ha.textContent?"none":"inline":"save"==Ln?(Al[Rl].style.display=this.emailSignature[Zt]&&""!=this.emailSignature[Zt]?"inline":"none","none"==Al[Rl].style.display&&(Ha.href="",Ha.textContent="")):Al[Rl].style.display=""==Fe?"none":"inline","emailaddress"==Jo.toLowerCase()){const jc=So.getElementsByClassName("phone")[0];So.getElementsByClassName("hidephonemailpipe")[0].style.display=""!==Fe&&""!==jc.innerText?"inline":"none"}break;case"website":const kl=So.getElementsByClassName(Jo)[0];""==Ln?(kl.href=Fe,kl.textContent=Fe):"edit"==Ln&&(this.emailSignature[Zt]=kl.textContent);let gl=So.getElementsByClassName(Hr);for(let Rl=0;Rl<gl.length;Rl++)if("edit"==Ln?gl[Rl].style.display=""==kl.textContent?"none":"inline":"save"==Ln?(gl[Rl].style.display=this.emailSignature[Zt]&&""!=this.emailSignature[Zt]?"inline":"none","none"==gl[Rl].style.display&&(kl.href="",kl.textContent="")):gl[Rl].style.display=""==Fe?"none":"inline","website"==Jo.toLowerCase()){const jc=So.getElementsByClassName("address")[0];So.getElementsByClassName("hideaddresswebsitepipe")[0].style.display=""!==Fe&&""!==jc.innerText?"inline":"none"}break;case"linkedin":case"facebook":case"twitter":case"instagram":case"youtube":const wl=So.getElementsByClassName(Jo)[0];""==Ln?wl.href=Fe:"edit"==Ln&&(this.emailSignature[Zt]=wl.getAttribute("href"));let Pc=So.getElementsByClassName(Hr);for(let Rl=0;Rl<Pc.length;Rl++)"edit"==Ln?Pc[Rl].style.display=""==wl.href?"none":"inline-block":"save"==Ln?(Pc[Rl].style.display=this.emailSignature[Zt]&&""!=this.emailSignature[Zt]?"inline-block":"none","none"==Pc[Rl].style.display&&(wl.href="")):Pc[Rl].style.display=""==Fe?"none":"inline-block"}const Es=So.getElementsByTagName("table")[0];this.currentTemplateBody=Es.outerHTML}}onValidateAndSave(){if(this.emailSignatureDetailForm.controls.emailSignatureDetail.invalid)return this.us.callSnackBar("Please fill all the required fields.","info");if(!this.fileObject&&!this.documentId)return this.us.callSnackBar("Signature image is required.","info");const Fe=this.previewElement.nativeElement;Fe.getElementsByClassName("photo")[0].src="#PersonalSignature.Image#";const Ln=Fe.getElementsByTagName("table")[0];this.currentTemplateBody=Ln.outerHTML,this.documentScan().then(So=>{(So&&So[0]?.cleanResult&&!So[0].foundViruses||So&&So.hasDocumentId||So&&So.documentScannerDisabled)&&(this.reinitializeTemplate("save",this.fields),this.onSave())})}reinitializeTemplate(Fe,Zt){Zt.forEach(Ln=>{this.onBlur("",Ln,Fe)})}onSave(){this.documentParams.entity="officestaff",this.documentParams.entityId=0,this.documentParams.documentName=this.documentId?"DummyName":this.fileObject[0].name,this.documentParams.documentTypeListItemId=0,this.documentParams.fileName=this.documentId?"DummyName":this.fileObject[0].name,this.documentParams.isEmailAttachment=!1,this.documentParams.emailSignature=this.currentTemplateBody,this.documentParams.documentId=this.documentId?this.documentId:0;const Fe=new FormData;return Fe.append("file",this.documentId?new Blob:this.fileObject[0],this.documentId?"DummyName":this.fileObject[0].name),Fe.append("json",JSON.stringify(this.documentParams,this.us.dateReplacer)),this.cs.insertEmailSignature(Fe).pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Zt=>{Zt&&"success"==Zt.result?(this.us.callSnackBar("Email signature updated successfully.","success"),this.dialogRef.close()):this.us.callSnackBar(Zt,"error")})}closeForm(){this.dialogRef.close([null,null])}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(_d.hV),n.Y36(_d.eJ),n.Y36(Ae.v),n.Y36(Rt.t),n.Y36(On.Z))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["app-email-signature-form"]],viewQuery:function(Zt,Ln){if(1&Zt&&(n.Gf(hf,7),n.Gf(Vd,7),n.Gf(Fu,7),n.Gf(Ch,7),n.Gf(mh,5)),2&Zt){let So;n.iGM(So=n.CRH())&&(Ln.formElement=So.first),n.iGM(So=n.CRH())&&(Ln.previewElement=So.first),n.iGM(So=n.CRH())&&(Ln.fileUploadButton=So.first),n.iGM(So=n.CRH())&&(Ln.zenFileUpload=So.first),n.iGM(So=n.CRH())&&(Ln.emailSignatureDetailForm=So.first)}},inputs:{data:"data"},decls:103,vars:91,consts:[[1,"dialog-content-wrapper"],["matDialogTitle","",1,"mat-accent","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","space-between center"],[1,"title","dialog-title"],["mat-button","","aria-label","Close dialog",1,"mat-icon-button",3,"click"],["mat-dialog-content","",1,"p-0","m-0","h-100-p"],["id","emailSignaturePreviewForm","name","emailSignaturePreviewForm","autocomplete","off","tabindex","-1",1,"email-signature-preview","h-100-p",3,"keydown.enter"],["emailSignaturePreviewForm","ngForm","emailSignaturePreviewFormElement",""],[1,"email-signature-preview-body","flex","justify-start","items-start","h-100-p"],["fxFlex","",1,"flex","flex-col","items-center","justify-center","overflow-hidden","h-100-p"],[1,"mb-32","font-weight-bold"],[1,"signature-preview","p-8","mat-elevation-z2","pointer-none"],["previewElement",""],["fxLayout","column","fxFlex","400px",1,"email-signature-slide-view-wrapper","bl","h-100-p","overflow-y-auto"],[1,"email-signature-details-wrapper","p-12","h-100-p","flex","flex-col"],[1,"title","dialog-title","mb-12","mt-4"],["fxFlex","",1,"email-signature-detail-info","p-8","overflow-y-auto"],["id","emailSignatureDetailForm","name","emailSignatureDetailForm","autocomplete","off","tabindex","-1","fxLayout","column","fxLayout.xs","column","fxLayoutAlign","start start","fxLayoutGap","10px",1,"email-signature-preview",3,"keydown.enter"],["emailSignatureDetailForm","ngForm","emailSignatureDetailFormElement",""],["fxLayout","column",1,"email-signature-group","w-100-p"],["ngModelGroup","emailSignatureDetail"],[1,"w-100-p",3,"ngModelGroup"],["name","templateId","placeholder","Select a template","nameField","template","valueField","templateId","tabindex","-1","required","","hidden","",1,"no-padding-head","chip-black",3,"ngModel","data","columns","ngModelChange","selectEvent"],["ngModelGroup","kendoFileSelect"],[3,"ngModelGroup"],[3,"autoUpload","showDropZone","chooseLabel","isMultiple","instantDocumentScan","allowedExtensions","showSupportedFiles","onUploadFileFn"],["element",""],["class","ml-12 line-height-24",4,"ngIf"],["hidden",""],["name","file",3,"autoUpload","showDropZone","isMultiple","chooseLabel","instantDocumentScan","showRegistrationResumeInstruction","showFileList","showSupportedFiles","onUploadFileFn"],["zenFileUpload",""],[1,"w-100-p"],["matInput","","name","name","type","text","required","",3,"ngModel","placeholder","ngModelChange","blur"],["matInput","","name","title","type","text","required","",3,"ngModel","placeholder","ngModelChange","blur"],["matInput","","name","company","type","text","required","",3,"ngModel","placeholder","ngModelChange","blur"],["matInput","","name","phone","type","text","mask","(000) 000-0000",3,"zen-validator","ngModel","placeholder","ngModelChange","blur"],["matInput","","name","emailAddress","type","text",3,"ngModel","zen-validator","placeholder","ngModelChange","blur"],["matInput","","name","address","type","text",3,"ngModel","placeholder","ngModelChange","blur"],["matInput","","name","website","type","text",3,"ngModel","placeholder","ngModelChange","blur"],["matInput","","name","linkedIn","type","text",3,"ngModel","pattern","placeholder","ngModelChange","blur"],["matInput","","name","facebook","type","text",3,"ngModel","pattern","placeholder","ngModelChange","blur"],["matInput","","name","twitter","type","text",3,"ngModel","pattern","placeholder","ngModelChange","blur"],["matInput","","name","youtube","type","text",3,"ngModel","pattern","placeholder","ngModelChange","blur"],["matInput","","name","instagram","type","text",3,"ngModel","pattern","placeholder","ngModelChange","blur"],["mat-dialog-actions","",1,"mat-dialog-actions","mb-0","flex","justify-end"],["mat-raised-button","","color","primary",1,"mat-accent","mr-16",3,"click"],[1,"ml-12","line-height-24"],["for","file",1,"file-upload","jfd",2,"pointer-events","none"],[1,"js-fileName"]],template:function(Zt,Ln){1&Zt&&(n.TgZ(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),n._uU(4,"Email signature preview"),n.qZA(),n.TgZ(5,"button",4),n.NdJ("click",function(){return Ln.closeForm()}),n.TgZ(6,"mat-icon"),n._uU(7,"close"),n.qZA()()()(),n.TgZ(8,"div",5)(9,"form",6,7),n.NdJ("keydown.enter",function(Jo){return Jo.preventDefault()}),n.TgZ(12,"div",8)(13,"div",9)(14,"h3",10),n._uU(15,"Live Signature Preview"),n.qZA(),n._UZ(16,"div",11,12),n.qZA(),n.TgZ(18,"div",13)(19,"div",14)(20,"h3",15),n._uU(21,"Enter signature detail"),n.qZA(),n.TgZ(22,"div",16)(23,"form",17,18),n.NdJ("keydown.enter",function(Jo){return Jo.preventDefault()}),n.TgZ(26,"div",19)(27,"div",20)(28,"div",21)(29,"zen-select",22),n.NdJ("ngModelChange",function(Jo){return Ln.emailSignature.templateId=Jo})("selectEvent",function(Jo){return Ln.onTemplateSelect(Jo)}),n.qZA()()(),n.TgZ(30,"div")(31,"div",23)(32,"div",24)(33,"zen-file-upload",25,26),n.NdJ("onUploadFileFn",function(Jo){return Ln.onFileUpload(Jo)}),n.ALo(35,"translate"),n.qZA(),n.YNc(36,Sd,8,1,"span",27),n.TgZ(37,"div",28)(38,"zen-file-upload",29,30),n.NdJ("onUploadFileFn",function(Jo){return Ln.onZenFileUpload(Jo)}),n.qZA()()()()(),n.TgZ(40,"div",20)(41,"div",24)(42,"mat-form-field",31)(43,"input",32),n.NdJ("ngModelChange",function(Jo){return Ln.emailSignature.name=Jo})("blur",function(Jo){return Ln.onBlur(Jo.target.value,"name")}),n.ALo(44,"translate"),n.qZA()()()(),n.TgZ(45,"div",20)(46,"div",24)(47,"mat-form-field",31)(48,"input",33),n.NdJ("ngModelChange",function(Jo){return Ln.emailSignature.title=Jo})("blur",function(Jo){return Ln.onBlur(Jo.target.value,"title")}),n.ALo(49,"translate"),n.qZA()()()(),n.TgZ(50,"div",20)(51,"div",24)(52,"mat-form-field",31)(53,"input",34),n.NdJ("ngModelChange",function(Jo){return Ln.emailSignature.company=Jo})("blur",function(Jo){return Ln.onBlur(Jo.target.value,"company")}),n.ALo(54,"translate"),n.qZA()()()(),n.TgZ(55,"div",20)(56,"div",24)(57,"mat-form-field",31)(58,"input",35),n.NdJ("ngModelChange",function(Jo){return Ln.emailSignature.phone=Jo})("blur",function(Jo){return Ln.onBlur(Jo.target.value,"phone")}),n.ALo(59,"translate"),n.qZA()()()(),n.TgZ(60,"div",20)(61,"div",24)(62,"mat-form-field",31)(63,"input",36),n.NdJ("ngModelChange",function(Jo){return Ln.emailSignature.emailaddress=Jo})("blur",function(Jo){return Ln.onBlur(Jo.target.value,"emailAddress")}),n.ALo(64,"translate"),n.qZA()()()(),n.TgZ(65,"div",20)(66,"div",24)(67,"mat-form-field",31)(68,"input",37),n.NdJ("ngModelChange",function(Jo){return Ln.emailSignature.address=Jo})("blur",function(Jo){return Ln.onBlur(Jo.target.value,"address")}),n.ALo(69,"translate"),n.qZA()()()(),n.TgZ(70,"div",20)(71,"div",24)(72,"mat-form-field",31)(73,"input",38),n.NdJ("ngModelChange",function(Jo){return Ln.emailSignature.website=Jo})("blur",function(Jo){return Ln.onBlur(Jo.target.value,"website")}),n.ALo(74,"translate"),n.qZA()()()(),n.TgZ(75,"div",20)(76,"div",24)(77,"mat-form-field",31)(78,"input",39),n.NdJ("ngModelChange",function(Jo){return Ln.emailSignature.linkedin=Jo})("blur",function(Jo){return Ln.onBlur(Jo.target.value,"linkedIn")}),n.ALo(79,"translate"),n.qZA()()()(),n.TgZ(80,"div",20)(81,"div",24)(82,"mat-form-field",31)(83,"input",40),n.NdJ("ngModelChange",function(Jo){return Ln.emailSignature.facebook=Jo})("blur",function(Jo){return Ln.onBlur(Jo.target.value,"facebook")}),n.ALo(84,"translate"),n.qZA()()()(),n.TgZ(85,"div",20)(86,"div",24)(87,"mat-form-field",31)(88,"input",41),n.NdJ("ngModelChange",function(Jo){return Ln.emailSignature.twitter=Jo})("blur",function(Jo){return Ln.onBlur(Jo.target.value,"twitter")}),n.ALo(89,"translate"),n.qZA()()()(),n.TgZ(90,"div",20)(91,"div",24)(92,"mat-form-field",31)(93,"input",42),n.NdJ("ngModelChange",function(Jo){return Ln.emailSignature.youtube=Jo})("blur",function(Jo){return Ln.onBlur(Jo.target.value,"youtube")}),n.ALo(94,"translate"),n.qZA()()()(),n.TgZ(95,"div",20)(96,"div",24)(97,"mat-form-field",31)(98,"input",43),n.NdJ("ngModelChange",function(Jo){return Ln.emailSignature.instagram=Jo})("blur",function(Jo){return Ln.onBlur(Jo.target.value,"instagram")}),n.ALo(99,"translate"),n.qZA()()()()()()()()()()()(),n.TgZ(100,"div",44)(101,"button",45),n.NdJ("click",function(){return Ln.onValidateAndSave()}),n._uU(102,"Save"),n.qZA()()()),2&Zt&&(n.xp6(28),n.Q6J("ngModelGroup",Ln.emailSignature.signatureId),n.xp6(1),n.Q6J("ngModel",Ln.emailSignature.templateId)("data",Ln.templateList)("columns",n.DdM(90,vd)),n.xp6(3),n.Q6J("ngModelGroup",Ln.emailSignatureImage.signatureId1),n.xp6(1),n.Q6J("autoUpload",!0)("showDropZone",!1)("chooseLabel",n.lcZ(35,64,"Upload image"))("isMultiple",!1)("instantDocumentScan",!1)("allowedExtensions",Ln.allowedExtensions)("showSupportedFiles",!0),n.xp6(3),n.Q6J("ngIf",Ln.uploadedDocumentName),n.xp6(2),n.Q6J("autoUpload",!0)("showDropZone",!1)("isMultiple",!1)("chooseLabel","Upload image")("instantDocumentScan",!0)("showRegistrationResumeInstruction",!0)("showFileList",!1)("showSupportedFiles",!0),n.xp6(3),n.Q6J("ngModelGroup",Ln.emailSignature.signatureId),n.xp6(2),n.Q6J("ngModel",Ln.emailSignature.name)("placeholder",n.lcZ(44,66,"name")),n.xp6(3),n.Q6J("ngModelGroup",Ln.emailSignature.signatureId),n.xp6(2),n.Q6J("ngModel",Ln.emailSignature.title)("placeholder",n.lcZ(49,68,"title")),n.xp6(3),n.Q6J("ngModelGroup",Ln.emailSignature.signatureId),n.xp6(2),n.Q6J("ngModel",Ln.emailSignature.company)("placeholder",n.lcZ(54,70,"company")),n.xp6(3),n.Q6J("ngModelGroup",Ln.emailSignature.signatureId),n.xp6(2),n.Q6J("zen-validator","personalInfo.mobile")("ngModel",Ln.emailSignature.phone)("placeholder",n.lcZ(59,72,"phone")),n.xp6(3),n.Q6J("ngModelGroup",Ln.emailSignature.signatureId),n.xp6(2),n.Q6J("ngModel",Ln.emailSignature.emailaddress)("zen-validator","personalInfo.email")("placeholder",n.lcZ(64,74,"emailAddress")),n.xp6(3),n.Q6J("ngModelGroup",Ln.emailSignature.signatureId),n.xp6(2),n.Q6J("ngModel",Ln.emailSignature.address)("placeholder",n.lcZ(69,76,"address")),n.xp6(3),n.Q6J("ngModelGroup",Ln.emailSignature.signatureId),n.xp6(2),n.Q6J("ngModel",Ln.emailSignature.website)("placeholder",n.lcZ(74,78,"website")),n.xp6(3),n.Q6J("ngModelGroup",Ln.emailSignature.signatureId),n.xp6(2),n.Q6J("ngModel",Ln.emailSignature.linkedin)("pattern","^[w]{3}\\.linkedin\\.com\\/in\\/[a-zA-Z0-9_-]+\\/?.*$")("placeholder",n.lcZ(79,80,"www.linkedin.com/in/username")),n.xp6(3),n.Q6J("ngModelGroup",Ln.emailSignature.signatureId),n.xp6(2),n.Q6J("ngModel",Ln.emailSignature.facebook)("pattern","^[w]{3}\\.facebook\\.com\\/[a-zA-Z0-9_-]+\\/?.*$")("placeholder",n.lcZ(84,82,"www.facebook.com/username")),n.xp6(3),n.Q6J("ngModelGroup",Ln.emailSignature.signatureId),n.xp6(2),n.Q6J("ngModel",Ln.emailSignature.twitter)("pattern","^[w]{3}\\.twitter\\.com\\/[a-zA-Z0-9_-]+\\/?.*$")("placeholder",n.lcZ(89,84,"www.twitter.com/username")),n.xp6(3),n.Q6J("ngModelGroup",Ln.emailSignature.signatureId),n.xp6(2),n.Q6J("ngModel",Ln.emailSignature.youtube)("pattern","^[w]{3}\\.youtube\\.com\\/user\\/[a-zA-Z0-9_-]+\\/?.*$")("placeholder",n.lcZ(94,86,"www.youtube.com/user/username")),n.xp6(3),n.Q6J("ngModelGroup",Ln.emailSignature.signatureId),n.xp6(2),n.Q6J("ngModel",Ln.emailSignature.instagram)("pattern","^[w]{3}\\.instagram\\.com\\/[a-zA-Z0-9_-]+\\/?.*$")("placeholder",n.lcZ(99,88,"www.instagram.com/username")))},dependencies:[ur.O5,us._Y,us.Fj,us.JJ,us.JL,us.Q7,us.c5,us.On,us.Mq,us.F,wa.xw,wa.SQ,wa.Wh,wa.yH,zs.v_,Tn.k0,v.i,ar.Ye,ar.rD,fo.Hw,ts.eB,uf.O,Tf.p,Ff.tZ,Ve.X$],styles:["@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInLeft{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInRight{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInDown{0%{opacity:0;transform:translateY(-2000px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInLeft{0%{opacity:0;transform:translate(-2000px)}to{opacity:1;transform:translate(0)}}@keyframes slideInRight{0%{opacity:0;transform:translate(2000px)}to{opacity:1;transform:translate(0)}}.k-upload-button{width:100%}.k-dropzone-hint{display:none}.email-signature-popup .show-hide-extra-fields{text-align:right;cursor:pointer;font-size:12px}.email-signature-popup .dialog-content-wrapper{width:80vw;max-height:85vh;height:85vh;display:flex;flex-direction:column}.email-signature-popup .dialog-content-wrapper .no-wrap{white-space:nowrap}.email-signature-popup .dialog-content-wrapper .email-signature-preview-body .signature-preview{border-radius:6px;border:1px solid rgb(228,228,228)}.email-signature-popup .dialog-content-wrapper .email-signature-preview-body .signature-preview .photo{object-fit:cover}\n"],encapsulation:2})}return Et})();var ff=i(82826),Iu=i(78250),Qh=i(37398);const xh=[];var Xh=i(1462),Sh=i(82358),pf=i(10459),Nc=i(18266),wh=i(32943),Eh=i(39014);const oh=["searchInput"],yd=["shortcuts"],Nd=["calendarSideView"],Pp=["emailSideView"];function Ad(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"div",9)(1,"button",8),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw();return n.KtG(Ln.showMobileShortcutsPanel())}),n.TgZ(2,"mat-icon",10),n._uU(3,"apps"),n.qZA()()()}}function Gh(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"a",18),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw().$implicit,So=n.oxw();return n.KtG(So.onShortcutClick(Ln))}),n.ALo(1,"translate"),n._UZ(2,"i",19),n.qZA()}if(2&Et){const Fe=n.oxw().$implicit;let Zt;n.Q6J("matTooltip",n.lcZ(1,4,null!==(Zt=Fe.display)&&void 0!==Zt?Zt:Fe.title)),n.xp6(2),n.Q6J("ngClass",Fe.iconClass)("matBadgeHidden",!Fe.notificationCount)("matBadge",Fe.notificationCount)}}function uc(Et,Cn){if(1&Et&&(n.TgZ(0,"mat-icon",20),n._uU(1),n.qZA()),2&Et){const Fe=n.oxw().$implicit;n.Q6J("ngClass",Fe.iconClass)("matBadgeHidden",!Fe.notificationCount)("matBadge",Fe.notificationCount),n.xp6(1),n.Oqu(Fe.icon)}}function rh(Et,Cn){if(1&Et&&n._UZ(0,"mat-icon",21),2&Et){const Fe=n.oxw().$implicit;n.Q6J("ngClass",Fe.iconClass)("matBadgeHidden",!Fe.notificationCount)("matBadge",Fe.notificationCount)("svgIcon",Fe.icon)}}function sh(Et,Cn){if(1&Et&&(n.TgZ(0,"span",22),n._uU(1),n.qZA()),2&Et){const Fe=n.oxw().$implicit;n.Q6J("ngClass",Fe.iconClass),n.xp6(1),n.hij(" ",Fe.title.substr(0,1).toUpperCase()," ")}}const wd=function(Et){return{active:Et}};function Bf(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"div",11),n.ynx(1,12),n.YNc(2,Gh,3,6,"a",13),n.TgZ(3,"a",14),n.NdJ("click",function(){const So=n.CHM(Fe).$implicit,Jo=n.oxw();return n.KtG(Jo.onShortcutClick(So))}),n.ALo(4,"translate"),n.ynx(5,12),n.YNc(6,uc,2,4,"mat-icon",15),n.YNc(7,rh,1,4,"mat-icon",16),n.BQk(),n.YNc(8,sh,2,2,"span",17),n.qZA(),n.BQk(),n.qZA()}if(2&Et){const Fe=Cn.$implicit;let Zt;n.Gre("w-40 h-40 p-4 each-shortcut zenauto-",Fe.title,""),n.Q6J("ngClass",n.VKq(15,wd,null==Fe?null:Fe.isActive)),n.xp6(1),n.Q6J("ngSwitch",Fe.iconType),n.xp6(1),n.Q6J("ngSwitchCase","fontawesome"),n.xp6(1),n.Tol(Fe.icon),n.Q6J("matTooltip",n.lcZ(4,13,null!==(Zt=Fe.display)&&void 0!==Zt?Zt:Fe.title)),n.xp6(2),n.Q6J("ngSwitch",Fe.icon),n.xp6(2),n.Q6J("ngSwitchCase","gp-calculator"),n.xp6(1),n.Q6J("ngIf",!Fe.icon)}}let Qd=(()=>{class Et{set value(Fe){this.etcShortcuts=Fe}constructor(Fe,Zt,Ln,So,Jo,Hr,Es,Vs,Ra,Ha,Al,kl,gl,wl,Pc,Rl){this.renderer=Fe,this.mediaObserver=Zt,this.fuseMatchMedia=Ln,this.fuseNavigationService=So,this.cookieService=Jo,this.taskService=Hr,this.commonService=Es,this.dialog=Vs,this.gsbs=Ra,this.ss=Ha,this.router=Al,this.ns=kl,this.us=gl,this.pda=wl,this.emailService=Pc,this.calendarService=Rl,this.eventNotificationCount=0,this.shortcutItems=[],this.searching=!1,this.mobileShortcutsPanelActive=!1,this.showEmail=!1,this.filteredNavigationItems=this.navigationItems=this.fuseNavigationService.getFlatNavigation(xh),this._unsubscribeAll=new Ws.x}ngOnInit(){this.setShortcutItems(),this.router.events.pipe((0,cs.h)(Fe=>Fe instanceof Ht.OD),(0,Qh.U)(Fe=>Fe),(0,cs.h)(Fe=>!this.shortcutItems.find(Zt=>Zt.url==Fe.url)),(0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{this.shortcutItems.map(Zt=>Zt.isActive=!1)}),this.getSmsNotificationCount(),this.pda.onPersonDataAccessModified.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{this.getSmsNotificationCount(),this.getTaskNotificationCount(),this.getOrganizationSMSProfile(),this.getEventNotificationCount()}),this.matchMediaSubscription=this.fuseMatchMedia.onMediaChange.subscribe(()=>{this.mediaObserver.isActive("gt-sm")&&this.hideMobileShortcutsPanel()}),this.setSMSNotificationRecursion(),this.setTaskNotificationRecursion(),this.setEventNotificationRecursion(),this.getOrganizationSMSProfile(),this.ns.onSMSRecevied.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{if(Fe){this.commonService.onChangeSmsInnerDashboardCount.next(Fe),this.smsNotificationCount=this.us.getLocalStorage("smsNotificationCount"),Fe=JSON.parse(Fe);let Zt=[];this.organizationSMSProfileList.forEach(Ln=>{Fe.filter(Jo=>Jo.organizationSMSProfileId==Ln.organizationSMSProfileId).forEach(Jo=>{Zt.push(Jo)})})}}),this.us.onSMSNotificationCountChanged.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{Fe&&this.getSmsNotificationCount()}),this.commonService.onEventNotificationCountChange.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{Fe&&this.getEventNotificationCount()}),this.ns.onChangeTaskNotification.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{Fe?.changeTaskCount&&this.getTaskNotificationCount()}),this.taskService.onFilterChanged.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{Fe?.reload&&this.getTaskNotificationCount()})}ngAfterViewInit(){setTimeout(()=>{this.highlightActiveShortcut()},2e3)}setSMSNotificationRecursion(){setTimeout(()=>{this.getSmsNotificationCount(),this.setSMSNotificationRecursion()},6e4*Be.XL.settings.refreshSMSCountIntervalInMinutes)}setTaskNotificationRecursion(){setTimeout(()=>{this.getTaskNotificationCount(),this.setTaskNotificationRecursion()},6e4*Be.XL.settings.refreshTaskCountIntervalInMinutes)}getTaskNotificationCount(){-1!==this.shortcutItems.findIndex(Zt=>"task"==Zt.title.toLowerCase())?this.taskService.getTaskNotificationCount().subscribe(Zt=>{this.taskNotificationCount=Zt.notificationCount,this.us.setLocalStorage("taskNotificationCount",Zt.notificationCount),this.setNotificationCount("task",this.taskNotificationCount)}):(this.us.setLocalStorage("taskNotificationCount",0),this.setNotificationCount("task",0))}getSmsNotificationCount(){-1!==this.shortcutItems.findIndex(Zt=>"text"==Zt.title.toLowerCase())?this.commonService.getSMSNotificationCount({}).subscribe(Zt=>{this.smsNotificationCount=Zt.notificationCount,this.us.setLocalStorage("smsNotificationCount",Zt.notificationCount),this.setNotificationCount("text",this.smsNotificationCount)}):(this.us.setLocalStorage("smsNotificationCount",0),this.setNotificationCount("text",0))}setEventNotificationRecursion(){setInterval(()=>{this.getEventNotificationCount()},6e4*Be.XL.settings.refreshEventCountIntervalInMinutes)}getEventNotificationCount(){if(-1!==this.shortcutItems.findIndex(Zt=>"calendar"==Zt.title.toLowerCase())){const Zt=parseInt(this.us.getTokenValueByKey("calendarId"));this.calendarService.getEventNotificationCount({calendarId:Zt}).subscribe(Ln=>{if(Ln){const Vs=Ln.map(Ra=>({...Ra,startDate:Ra.startDate+"Z",endDate:Ra.endDate+"Z"})).map(Ra=>({...Ra,startDate:new Date(Ra.startDate),endDate:new Date(Ra.endDate)})).map(Ra=>({...Ra,startDateOnly:this.calendarService.getDateString(Ra.startDate)})).filter(Ra=>Ra.startDateOnly==this.calendarService.getDateString(new Date)).filter(Ra=>Ra.startDate>new Date);return this.eventNotificationCount=Vs.length,void this.setNotificationCount("calendar",this.eventNotificationCount)}this.resetEventNotificationCount()})}else this.resetEventNotificationCount()}resetEventNotificationCount(){this.eventNotificationCount=0,this.setNotificationCount("calendar",this.eventNotificationCount)}getOrganizationSMSProfile(){-1!==this.shortcutItems.findIndex(Zt=>"text"==Zt.title.toLowerCase())&&this.ss.getOrganizationSMSProfile({}).pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Zt=>{this.organizationSMSProfileList=Zt})}setNotificationCount(Fe,Zt){if(!Fe)return;let Ln=this.shortcutItems.findIndex(Hr=>Hr.title.toLowerCase()==Fe);this.shortcutItems=this.shortcutItems.filter(Hr=>Hr.title.toLowerCase()!==Fe);let So=this.etcShortcuts.optionValue.split(",");if(So?.length){let Hr=So.findIndex(Es=>"sms"==Es.toLowerCase());Hr>=0&&So.splice(Hr,1,"Text")}const Jo=So.find(Hr=>Hr.toLowerCase()===Fe.toLowerCase());"text"==Jo?.toLowerCase()?(this.us.setLocalStorage("smsNotificationCount",Zt),this.shortcutItems.splice(Ln,0,{title:"Text",type:"nav-item",iconType:"mat-icon",icon:"message",url:"/sms",notificationCount:0==Zt?null:Zt,notificationCountVisible:!0,iconClass:"sms-icon",containerClass:"smslink"})):"task"==Jo?.toLowerCase()?(this.us.setLocalStorage("taskNotificationCount",Zt),this.shortcutItems.splice(Ln,0,{title:"Task",type:"nav-item",iconType:"mat-icon",icon:"check_box",url:"/task/filter/duetask",notificationCount:0==Zt?null:Zt,notificationCountVisible:!0,iconClass:"task-icon",containerClass:"tasklink"})):"calendar"==Jo?.toLowerCase()&&this.shortcutItems.splice(Ln,0,{title:"Calendar",type:"nav-item",iconType:"mat-icon",icon:"today",url:"/calendar",notificationCount:0==Zt?null:Zt,notificationCountVisible:!0,iconClass:"task-icon",containerClass:"tasklink"})}setShortcutItems(){let Fe=this.etcShortcuts.optionValue.split(",");if(Fe?.length){let Zt=Fe.findIndex(Ln=>"sms"==Ln.toLowerCase());Zt>=0&&Fe.splice(Zt,1,"Text")}this.shortcutItems=[],Fe.map(Zt=>{"Calendar"==Zt?this.shortcutItems.push({title:"Calendar",type:"nav-item",icon:"today",url:"/calendar",containerClass:"calendarlink"}):"GPCalculator"==Zt?this.shortcutItems.push({display:"GP Calculator",title:"GPCalculator",type:"nav-item",iconType:"mat-icon",icon:"gp-calculator",containerClass:"gpcalculatorlink"}):"Email"==Zt?this.shortcutItems.push({title:"Email",type:"nav-item",iconType:"mat-icon",icon:"email",url:"/email",iconClass:"email-icon",containerClass:"emaillink"}):"MyProductivity"==Zt&&this.shortcutItems.push({display:"My Productivity",title:"MyProductivity",type:"nav-item",icon:"trending_up",url:"/myProductivity",containerClass:"myproductivitylink"})})}ngOnDestroy(){this.matchMediaSubscription.unsubscribe(),this._unsubscribeAll.next(),this._unsubscribeAll.complete()}toLowerCase(Fe){return Fe.toLowerCase()}search(Fe){const Zt=Fe.target.value.toLowerCase();if(""===Zt)return this.searching=!1,void(this.filteredNavigationItems=this.navigationItems);this.searching=!0,this.filteredNavigationItems=this.navigationItems.filter(Ln=>Ln.title.toLowerCase().includes(Zt))}toggleShortcut(Fe,Zt){Fe.stopPropagation();for(let Ln=0;Ln<this.shortcutItems.length;Ln++)if(this.shortcutItems[Ln].url===Zt.url)return this.shortcutItems.splice(Ln,1),void this.cookieService.set("FUSE2.shortcuts",JSON.stringify(this.shortcutItems));this.shortcutItems.push(Zt),this.cookieService.set("FUSE2.shortcuts",JSON.stringify(this.shortcutItems))}isInShortcuts(Fe){return this.shortcutItems.find(Zt=>Zt.url===Fe.url)}onMenuOpen(){setTimeout(()=>{this.searchInputField.nativeElement.focus()})}showMobileShortcutsPanel(){this.mobileShortcutsPanelActive=!0,this.renderer.addClass(this.shortcutsEl.nativeElement,"show-mobile-panel")}hideMobileShortcutsPanel(){this.mobileShortcutsPanelActive=!1,this.renderer.removeClass(this.shortcutsEl.nativeElement,"show-mobile-panel")}onShortcutClick(Fe){switch(this.shortcutItems.map(Zt=>Zt.isActive=!1),Fe.isActive=!0,Fe.title.trim().toLowerCase()){case"gpcalculator":this.openGPCalculator();break;case"calendar":this.openCalendar();break;case"email":this.openEmail(),this.emailService.emailSource.next("ETCEmail");break;case"myproductivity":this.openMyProductivity();break;case"task":this.router?.url&&!this.router?.url.includes(Fe.url)&&this.router.navigate([Fe.url],{queryParams:{fromShortcuts:!0}});break;default:this.router.navigate([Fe.url])}}openGPCalculator(){this.commonService.isGrossProfitCalculatorFlag=this.commonService.isGrossProfitCalculatorFlag+1,this.dialogRef=this.dialog.open(ul.v,{data:{callFor:"DataAccess",title:"GrossCalculator"},panelClass:"gross-profit-calculator-popup",disableClose:!0}),this.dialogRef.afterClosed().subscribe(()=>{this.commonService.isGrossProfitCalculatorFlag=0,this.highlightActiveShortcut()})}openCalendar(){this.router.navigate(["calendar"])}openMyProductivity(){this.router.navigate(["myProductivity"])}openEmail(){this.router.navigate(["email"])}resetEmailData(){this.emailService.onFoldersChanged.next([])}highlightActiveShortcut(){this.shortcutItems.map(Ln=>Ln.isActive=!1);const Fe=this.router.url,Zt=this.shortcutItems.find(Ln=>Fe.includes(Ln.url));Zt&&(Zt.isActive=!0)}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(n.Qsj),n.Y36(Xh.u0),n.Y36(Sh._),n.Y36(Nt.J),n.Y36(pf.N),n.Y36(zt.M),n.Y36(Ae.v),n.Y36(_d.on),n.Y36(ro.j),n.Y36(Nc.o),n.Y36(Ht.F0),n.Y36(Jn.g),n.Y36(Rt.t),n.Y36(bn.F),n.Y36(pe.j),n.Y36(wh.o))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["fuse-shortcuts"]],viewQuery:function(Zt,Ln){if(1&Zt&&(n.Gf(oh,5),n.Gf(yd,7),n.Gf(Nd,5),n.Gf(Pp,5)),2&Zt){let So;n.iGM(So=n.CRH())&&(Ln.searchInputField=So.first),n.iGM(So=n.CRH())&&(Ln.shortcutsEl=So.first),n.iGM(So=n.CRH())&&(Ln.calendarSideView=So.first),n.iGM(So=n.CRH())&&(Ln.emailSideView=So.first)}},inputs:{value:["etc-shortcuts","value"],taskNotificationCount:"taskNotificationCount"},decls:11,vars:3,consts:[["id","fuse-shortcuts",3,"fxShow"],["shortcuts",""],["class","shortcuts-mobile-toggle","fxLayout","row","fxLayoutAlign","start center","fxHide","","fxShow.lt-md","",4,"ngIf"],["fxHide.xs","","fxHide.sm","",1,"shortcuts"],["fxLayout","row","fxLayoutAlign","space-between center","fxFlex","0 1 auto"],["fxLayout","row","fxLayoutAlign","start center"],["fxLayout","row","fxLayoutAlign","center center",3,"ngClass","class",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center","fxHide","","fxShow.xs","","fxShow.sm","",1,"shortcuts-mobile-close"],["mat-icon-button","",3,"click"],["fxLayout","row","fxLayoutAlign","start center","fxHide","","fxShow.lt-md","",1,"shortcuts-mobile-toggle"],[1,"amber-600-fg"],["fxLayout","row","fxLayoutAlign","center center",3,"ngClass"],[3,"ngSwitch"],[3,"matTooltip","click",4,"ngSwitchCase"],["mat-icon-button","",3,"matTooltip","click"],["class","secondary-text","matBadgeColor","warn",3,"ngClass","matBadgeHidden","matBadge",4,"ngSwitchDefault"],["class","secondary-text s-22","matBadgeColor","warn",3,"ngClass","matBadgeHidden","matBadge","svgIcon",4,"ngSwitchCase"],["class","h2 secondary-text text-bold",3,"ngClass",4,"ngIf"],[3,"matTooltip","click"],["matBadgeColor","warn",3,"ngClass","matBadgeHidden","matBadge"],["matBadgeColor","warn",1,"secondary-text",3,"ngClass","matBadgeHidden","matBadge"],["matBadgeColor","warn",1,"secondary-text","s-22",3,"ngClass","matBadgeHidden","matBadge","svgIcon"],[1,"h2","secondary-text","text-bold",3,"ngClass"]],template:function(Zt,Ln){1&Zt&&(n.TgZ(0,"div",0,1),n.YNc(2,Ad,4,0,"div",2),n.TgZ(3,"div",3)(4,"div",4)(5,"div",5),n.YNc(6,Bf,9,17,"div",6),n.TgZ(7,"div",7)(8,"button",8),n.NdJ("click",function(){return Ln.hideMobileShortcutsPanel()}),n.TgZ(9,"mat-icon"),n._uU(10,"close"),n.qZA()()()()()()()),2&Zt&&(n.Q6J("fxShow",Ln.shortcutItems.length>0),n.xp6(2),n.Q6J("ngIf",!Ln.mobileShortcutsPanelActive),n.xp6(4),n.Q6J("ngForOf",Ln.shortcutItems))},dependencies:[ur.mk,ur.sg,ur.O5,ur.RF,ur.n9,ur.ED,wa.xw,wa.Wh,wa.yH,Qo.b8,Qo.oO,Eh.k,ts.eB,ts.Nr,fo.Hw,rc.Kd,Ve.X$],styles:['@media screen and (max-width: 599px){[_nghost-%COMP%]   #fuse-shortcuts[_ngcontent-%COMP%]   .shortcuts[_ngcontent-%COMP%]{display:none!important}}@media screen and (max-width: 959px){[_nghost-%COMP%]   #fuse-shortcuts.show-mobile-panel[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:99;padding:0 8px}[_nghost-%COMP%]   #fuse-shortcuts.show-mobile-panel[_ngcontent-%COMP%]   .shortcuts[_ngcontent-%COMP%]{display:flex!important;flex:1;height:100%}[_nghost-%COMP%]   #fuse-shortcuts.show-mobile-panel[_ngcontent-%COMP%]   .shortcuts[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1 1 auto!important}}[_nghost-%COMP%]   #fuse-shortcuts[_ngcontent-%COMP%] ~.fuse-sidebar-overlay{position:fixed!important;z-index:0}[_nghost-%COMP%]   #fuse-shortcuts[_ngcontent-%COMP%]   .shortcuts[_ngcontent-%COMP%]   .each-shortcut[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%]   #fuse-shortcuts[_ngcontent-%COMP%]   .shortcuts[_ngcontent-%COMP%]   .each-shortcut[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]   .mat-badge-content[_ngcontent-%COMP%]{width:27px;height:27px;line-height:27px;top:-20px}[_nghost-%COMP%]   #fuse-shortcuts[_ngcontent-%COMP%]   .shortcuts[_ngcontent-%COMP%]   .each-shortcut[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]   .mat-badge-content.mat-badge-above[_ngcontent-%COMP%]   .mat-badge-content[_ngcontent-%COMP%]{top:-19px}[_nghost-%COMP%]   #fuse-shortcuts[_ngcontent-%COMP%]   .shortcuts[_ngcontent-%COMP%]   .each-shortcut[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .fa-calculator[_ngcontent-%COMP%]{margin-top:9px}[_nghost-%COMP%]   #fuse-shortcuts[_ngcontent-%COMP%]   .shortcuts[_ngcontent-%COMP%]   .each-shortcut.active[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], [_nghost-%COMP%]   #fuse-shortcuts[_ngcontent-%COMP%]   .shortcuts[_ngcontent-%COMP%]   .each-shortcut.active[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#006097!important}[_nghost-%COMP%]   #fuse-shortcuts[_ngcontent-%COMP%]   .shortcuts[_ngcontent-%COMP%]   .each-shortcut.active[_ngcontent-%COMP%]:before{content:"";width:100%;height:4px;position:absolute;bottom:-12px;background-color:#006097;border-top-left-radius:16px;border-top-right-radius:16px}[_nghost-%COMP%]   .cal-mat[_ngcontent-%COMP%]{font-size:18px!important;text-align:center}[_nghost-%COMP%]   .sms-icon[_ngcontent-%COMP%]{margin-top:4px}@keyframes _ngcontent-%COMP%_jump{0%{transform:translateZ(0) scaleZ(1)}50%{transform:translate3d(0,30%,0) scale3d(.7,1.5,1)}to{transform:translate3d(0,100%,0) scale3d(1.5,.7,1)}}.jump[_ngcontent-%COMP%]{transform-origin:50% 50%;animation:_ngcontent-%COMP%_jump .5s linear alternate infinite}.calendar-viewer[_ngcontent-%COMP%], .email-viewer[_ngcontent-%COMP%]{position:fixed;width:78vw;min-width:78vw;overflow:visible}  .unpinned-with-slideview .calendar-viewer,   .unpinned-with-slideview .email-viewer{width:94vw;min-width:94vw}.email-viewer[_ngcontent-%COMP%]   .slide-close-button[_ngcontent-%COMP%]{z-index:9999}.email-viewer[_ngcontent-%COMP%]     zen-email{height:100%}.email-viewer[_ngcontent-%COMP%]     zen-email .page-layout{height:100%}.email-viewer[_ngcontent-%COMP%]     zen-email .page-layout .zen-email-side-nav{width:330px;max-width:330px;min-width:330px}.email-viewer[_ngcontent-%COMP%]     zen-email .page-layout .zen-email-side-nav zen-email-side-nav .nav-list{height:calc(100vh - 302px)!important}.email-viewer[_ngcontent-%COMP%]     zen-email .page-layout zen-email-view .email-attachment .attachment-content span:nth-child(1){font-size:12px;margin-right:16px}.email-viewer[_ngcontent-%COMP%]     zen-email .page-layout zen-email-view .email-attachment .attachment-content span:nth-child(2){font-weight:500!important}.email-viewer[_ngcontent-%COMP%]     zen-email .page-layout zen-email-view .info{font-size:70%}.email-viewer[_ngcontent-%COMP%]     zen-email .page-layout zen-email-view .info tr{line-height:normal}.email-viewer[_ngcontent-%COMP%]     zen-email .page-layout zen-email-view .info .details{font-size:85%}.email-viewer[_ngcontent-%COMP%]     zen-email .page-layout zen-email-view .info .details .detail{font-weight:400}.email-viewer[_ngcontent-%COMP%] ~ .fuse-sidebar-overlay[_ngcontent-%COMP%] {position:fixed!important}']})}return Et})();var Th=i(26177);function _p(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"button",5),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw();return n.KtG(Ln.expand())}),n.TgZ(1,"mat-icon",6),n._uU(2,"search"),n.qZA()()}}function Hh(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"div",7)(1,"input",8,9),n.NdJ("keyup.enter",function(Ln){n.CHM(Fe);const So=n.oxw();return n.KtG(So.onSearch(Ln.target.value))})("ngModelChange",function(Ln){n.CHM(Fe);const So=n.oxw();return n.KtG(So.searchText=Ln)}),n.qZA(),n.TgZ(3,"button",10),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.MAs(2),So=n.oxw();return n.KtG(So.onSearch(Ln.value))}),n.TgZ(4,"mat-icon",11),n._uU(5,"search"),n.qZA()(),n.TgZ(6,"button",12),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw();return n.KtG(Ln.collapse())}),n.TgZ(7,"mat-icon",13),n._uU(8,"close"),n.qZA()()()}if(2&Et){const Fe=n.oxw();n.xp6(1),n.Q6J("ngModel",Fe.searchText)}}const Sl=function(Et){return{expanded:Et}};let Rn=(()=>{class Et{set setSearchState(Fe){this.collapsed=Fe,this.collapsed&&(this.searchText="")}constructor(Fe){this._fuseConfigService=Fe,this.search=new n.vpe,this.clearSearch=new n.vpe,this.currentState=new n.vpe,this.collapsed=!0,this._unsubscribeAll=new Ws.x}ngOnInit(){}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}collapse(){this.collapsed=!0,this.searchText="",this.currentState.emit("collapsed"),this.clearSearch.emit()}expand(){this.collapsed=!1,this.currentState.emit("expanded")}onSearch(Fe){""!==Fe?.trim()&&this.search.emit(Fe?.trim())}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(an.m))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["zen-expanding-search"]],inputs:{setSearchState:["collapsed","setSearchState"]},outputs:{search:"search",clearSearch:"clearSearch",currentState:"currentState"},decls:5,vars:5,consts:[[1,"expanded-search-bar",3,"ngClass"],[1,"expanded-search-bar-content"],["for","expanded-search-bar-input"],["mat-icon-button","","class","expanded-search-bar-expander zenauto-top-search-expanded","aria-label","Expand Search Bar",3,"click",4,"ngIf"],["class","input-wrapper","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["mat-icon-button","","aria-label","Expand Search Bar",1,"expanded-search-bar-expander","zenauto-top-search-expanded",3,"click"],[1,"s-24","secondary-text"],["fxLayout","row","fxLayoutAlign","start center",1,"input-wrapper"],["id","expanded-search-bar-input","type","text","placeholder","Search","fxFlex","",1,"zenauto-top-search","ml-24",3,"ngModel","keyup.enter","ngModelChange"],["expandedSearchBarInput",""],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Search",1,"search-button",3,"click"],[1,"s-18"],["mat-icon-button","","aria-label","Collapse Search Bar",1,"expanded-search-bar-collapser","zenauto-top-search-closebtn",3,"click"],[1,"s-18","secondary-text"]],template:function(Zt,Ln){1&Zt&&(n.TgZ(0,"div",0)(1,"div",1)(2,"label",2),n.YNc(3,_p,3,0,"button",3),n.qZA(),n.YNc(4,Hh,9,1,"div",4),n.qZA()()),2&Zt&&(n.Q6J("ngClass",n.VKq(3,Sl,!Ln.collapsed)),n.xp6(3),n.Q6J("ngIf",Ln.collapsed),n.xp6(1),n.Q6J("ngIf",!Ln.collapsed))},dependencies:[ur.mk,ur.O5,us.Fj,us.JJ,us.On,wa.xw,wa.Wh,wa.yH,Qo.oO,fo.Hw,ts.eB,zs.nX],styles:["@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0}to{opacity:1}}@keyframes _ngcontent-%COMP%_fadeInLeft{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}@keyframes _ngcontent-%COMP%_fadeInRight{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}@keyframes _ngcontent-%COMP%_fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes _ngcontent-%COMP%_slideInDown{0%{opacity:0;transform:translateY(-2000px)}to{opacity:1;transform:translateY(0)}}@keyframes _ngcontent-%COMP%_slideInLeft{0%{opacity:0;transform:translate(-2000px)}to{opacity:1;transform:translate(0)}}@keyframes _ngcontent-%COMP%_slideInRight{0%{opacity:0;transform:translate(2000px)}to{opacity:1;transform:translate(0)}}[_nghost-%COMP%]   .expanded-search-bar-content[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_slideInDown;animation-iteration-count:1;-webkit-animation-duration:1s;-moz-animation-duration:1s;-ms-animation-duration:1s;-o-animation-duration:1s;animation-delay:0s;animation-timing-function:ease;animation-fill-mode:both;backface-visibility:hidden;border-bottom:1px solid #949494;animation-duration:.2s!important}[_nghost-%COMP%]   .expanded-search-bar-content[_ngcontent-%COMP%]   .input-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-size:14px;margin-left:0!important;padding-left:4px;background-color:transparent}"]})}return Et})();var Uo=i(12437);const je=["advancedSearchRef"],Mn=["zenExpandingSearchElement"];function Gi(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"button",16),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw();return n.KtG(Ln.toggleSidebarOpen("navbar"))}),n.TgZ(1,"mat-icon",17),n._uU(2,"menu"),n.qZA()()}}function nr(Et,Cn){1&Et&&n._UZ(0,"div",18)}function is(Et,Cn){1&Et&&(n.TgZ(0,"div",19)(1,"div",20),n._UZ(2,"img",21),n.qZA()())}function ta(Et,Cn){if(1&Et&&(n.TgZ(0,"div",22),n._UZ(1,"fuse-shortcuts",23),n.qZA()),2&Et){const Fe=n.oxw();n.xp6(1),n.Q6J("etc-shortcuts",Fe.etcShortcuts)}}function dl(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"zen-expanding-search",24,25),n.NdJ("search",function(Ln){n.CHM(Fe);const So=n.oxw();return n.KtG(So.globalSearch(Ln))})("currentState",function(Ln){n.CHM(Fe);const So=n.oxw();return n.KtG(So.setGlobalSearchState(Ln))})("clearSearch",function(){n.CHM(Fe);const Ln=n.oxw();return n.KtG(Ln.clearGlobalSearch())}),n.qZA()}2&Et&&n.Q6J("collapsed",!0)}function $l(Et,Cn){1&Et&&(n.TgZ(0,"mat-icon"),n._uU(1,"remove"),n.qZA())}function fl(Et,Cn){1&Et&&(n.TgZ(0,"mat-icon",29),n._uU(1,"expand_more"),n.qZA())}function _c(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"button",26),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw();return n.KtG(Ln.toggleAdvancedSearch())}),n.YNc(1,$l,2,0,"mat-icon",27),n.YNc(2,fl,2,0,"ng-template",null,28,n.W1O),n.qZA()}if(2&Et){const Fe=n.MAs(3),Zt=n.oxw();n.xp6(1),n.Q6J("ngIf",Zt.showAdvancedSearch)("ngIfElse",Fe)}}const Ol=function(){return["entity"]},hc=function(Et){return{visibleFields:Et}};function fd(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"advanced-search",30,31),n.NdJ("onAdvancedSearch",function(Ln){n.CHM(Fe);const So=n.oxw();return n.KtG(So.applyAdvancedSearch(Ln))}),n.qZA()}if(2&Et){const Fe=n.oxw();n.Q6J("visibility",Fe.showAdvancedSearch)("showResumeSearch",Fe.showResumeSearch)("showFavourite",Fe.showFavourite)("showFavouriteToggle",Fe.showFavouriteToggle)("isGlobal",!0)("entityName","global")("displayConfig",n.VKq(8,hc,n.DdM(7,Ol)))}}function Su(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"button",32),n.NdJ("click",function(Ln){n.CHM(Fe);const So=n.oxw();return n.KtG(So.openAvailabilityForm(Ln))}),n.TgZ(1,"mat-icon",33),n.ALo(2,"translate"),n._uU(3,"schedule"),n.qZA()()}2&Et&&(n.xp6(1),n.s9C("matTooltip",n.lcZ(2,1,"schedule")))}function gm(Et,Cn){if(1&Et&&(n.TgZ(0,"mat-chip-list")(1,"mat-chip",34),n._uU(2),n.qZA()()),2&Et){const Fe=n.oxw();n.xp6(2),n.Oqu(Fe.mode)}}function Xd(Et,Cn){1&Et&&(n.TgZ(0,"mat-icon",38),n._uU(1,"brightness_2 "),n.qZA())}function gh(Et,Cn){1&Et&&n._UZ(0,"img",39)}function Ed(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"button",35),n.NdJ("click",function(Ln){n.CHM(Fe);const So=n.oxw();return n.KtG(So.darkModeChange(Ln))}),n.ALo(1,"translate"),n.YNc(2,Xd,2,0,"mat-icon",36),n.YNc(3,gh,1,0,"ng-template",null,37,n.W1O),n.qZA()}if(2&Et){const Fe=n.MAs(4),Zt=n.oxw();n.Q6J("matTooltip",n.lcZ(1,3,"brightness_2"==Zt.darkModeIcon?"darkTheme":"lightTheme")),n.xp6(2),n.Q6J("ngIf","brightness_2"==Zt.darkModeIcon)("ngIfElse",Fe)}}function ep(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"a",65),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw(2);return n.KtG(Ln.openDocumentationLink())}),n.TgZ(1,"button",66),n.ALo(2,"translate"),n.TgZ(3,"mat-icon",17),n._uU(4),n.qZA()()()}2&Et&&(n.xp6(1),n.Q6J("matTooltip",n.lcZ(2,2,"help")),n.xp6(3),n.Oqu("help"))}function Dh(Et,Cn){if(1&Et&&(n.TgZ(0,"button",73)(1,"div",74)(2,"mat-icon",75),n._uU(3),n.qZA(),n.TgZ(4,"p",76),n._uU(5),n.qZA()()()),2&Et){n.oxw();const Fe=n.MAs(3),Zt=n.oxw(2);n.Q6J("matMenuTriggerFor",Fe),n.xp6(1),n.Gre("selected-app-",Zt.selectedAppIndex+1,""),n.xp6(2),n.Oqu(Zt.selectedApp.icon),n.xp6(1),n.s9C("matTooltip",Zt.selectedApp.description),n.xp6(1),n.hij(" ",Zt.selectedApp.application,"")}}const Vh=function(Et){return{"icon-overwrite":Et}};function Ju(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"li",77),n.NdJ("click",function(){const Ln=n.CHM(Fe),So=Ln.$implicit,Jo=Ln.index,Hr=n.oxw(3);return n.KtG(Hr.setApplication(So,Jo))}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",78),n._uU(3),n.qZA(),n.TgZ(4,"span"),n._uU(5),n.ALo(6,"translate"),n.qZA()()}if(2&Et){const Fe=Cn.$implicit;n.Gre("zenauto-app-",n.lcZ(1,7,Fe.resource),""),n.s9C("matTooltip",Fe.description),n.xp6(2),n.Q6J("ngClass",n.VKq(11,Vh,"jsm"===Fe.resource.toLowerCase())),n.xp6(1),n.Oqu(Fe.icon),n.xp6(2),n.Oqu(n.lcZ(6,9,Fe.resource))}}function ou(Et,Cn){if(1&Et&&(n.TgZ(0,"div",67),n.YNc(1,Dh,6,7,"button",68),n.TgZ(2,"mat-menu",69,70)(4,"ul",71),n.YNc(5,Ju,7,13,"li",72),n.qZA()()()),2&Et){const Fe=n.oxw(2);n.xp6(1),n.Q6J("ngIf",Fe.selectedApp),n.xp6(1),n.Q6J("overlapTrigger",!1),n.xp6(3),n.Q6J("ngForOf",Fe.personApplicationData.application)}}function qa(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"button",79),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw(2);return n.KtG(Ln.openDataAccess())}),n.TgZ(1,"mat-icon"),n._uU(2,"edit"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Data Access"),n.qZA()()}}function qh(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"button",54),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw(2);return n.KtG(Ln.changePassword())}),n.TgZ(1,"mat-icon"),n._uU(2,"security"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Change Password"),n.qZA()()}}function Mh(Et,Cn){if(1&Et&&n._UZ(0,"img",80),2&Et){const Fe=n.oxw(2);n.Q6J("src","assets/images/flags/"+Fe.selectedLanguage.cultureCode.toLowerCase()+".png",n.LSH)}}function Uc(Et,Cn){if(1&Et&&(n.TgZ(0,"span",81),n._uU(1),n.qZA()),2&Et){const Fe=n.oxw(2);n.xp6(1),n.Oqu(Fe.selectedLanguage.cultureCode)}}function pu(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"button",82),n.NdJ("click",function(){const So=n.CHM(Fe).$implicit,Jo=n.oxw(2);return n.KtG(Jo.setLanguage(So))}),n.TgZ(1,"span",19),n._UZ(2,"img",83),n.TgZ(3,"span",84),n._uU(4),n.qZA()()()}if(2&Et){const Fe=Cn.$implicit;n.xp6(2),n.Q6J("src","assets/images/flags/"+Fe.cultureCode.toLowerCase()+".png",n.LSH),n.xp6(2),n.Oqu(Fe.language)}}function Od(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"button",85),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw(2);return n.KtG(Ln.toggleSidebarOpen("chatBot"))}),n.TgZ(1,"mat-icon",75),n._uU(2,"chat"),n.qZA()()}}function Fd(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"button",85),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw(2);return n.KtG(Ln.toggleSidebarOpen("quickPanel"))}),n.TgZ(1,"mat-icon",75),n._uU(2,"format_list_bulleted"),n.qZA()()}}function qd(Et,Cn){1&Et&&n._UZ(0,"div",86)}function Wh(Et,Cn){1&Et&&n._UZ(0,"div",60)}function Df(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"button",87),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw(2);return n.KtG(Ln.toggleSidebarOpen("navbar"))}),n.TgZ(1,"mat-icon",17),n._uU(2,"menu"),n.qZA()()}}function Au(Et,Cn){if(1&Et){const Fe=n.EpF();n.ynx(0),n.TgZ(1,"button",40),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw();return n.KtG(Ln.openFullscreen(Ln.resizeType))}),n.ALo(2,"translate"),n.TgZ(3,"mat-icon",17),n._uU(4),n.qZA()(),n.YNc(5,ep,5,4,"a",41),n._UZ(6,"div",42),n.YNc(7,ou,6,3,"div",43),n._UZ(8,"div",42),n.TgZ(9,"div",44)(10,"button",45)(11,"div",46),n._UZ(12,"img",47),n.TgZ(13,"span",48),n._uU(14),n.qZA(),n.TgZ(15,"mat-icon",49),n._uU(16,"keyboard_arrow_down"),n.qZA()()(),n.TgZ(17,"mat-menu",50,51),n.YNc(19,qa,5,0,"button",52),n.YNc(20,qh,5,0,"button",53),n.TgZ(21,"button",54),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw();return n.KtG(Ln.Logout())}),n.TgZ(22,"mat-icon"),n._uU(23,"exit_to_app"),n.qZA(),n.TgZ(24,"span"),n._uU(25,"Logout"),n.qZA()()(),n.TgZ(26,"button",55)(27,"div",46),n.YNc(28,Mh,1,1,"img",56),n.YNc(29,Uc,2,1,"span",57),n.qZA()(),n.TgZ(30,"mat-menu",50,58),n.YNc(32,pu,5,2,"button",59),n.qZA(),n._UZ(33,"div",60),n.YNc(34,Od,3,0,"button",61),n._UZ(35,"div",60),n.YNc(36,Fd,3,0,"button",61),n.YNc(37,qd,1,0,"div",62),n.YNc(38,Wh,1,0,"div",63),n.YNc(39,Df,3,0,"button",64),n.qZA(),n.BQk()}if(2&Et){const Fe=n.MAs(18),Zt=n.MAs(31),Ln=n.oxw();n.xp6(1),n.Q6J("matTooltip",n.lcZ(2,20,Ln.resizeType?"exitFullScreen":"enterFullScreen")),n.xp6(3),n.Oqu(Ln.resizeType?"fullscreen_exit":"fullscreen"),n.xp6(1),n.Q6J("ngIf",!Ln.hideDarkMode),n.xp6(2),n.Q6J("ngIf",Ln.personApplicationData.application.length>1),n.xp6(3),n.Q6J("matMenuTriggerFor",Fe),n.xp6(2),n.Q6J("src",Ln.profilePicUrl,n.LSH),n.xp6(2),n.Oqu(Ln.name),n.xp6(3),n.Q6J("overlapTrigger",!1),n.xp6(2),n.Q6J("ngIf","OfficeStaff"===Ln.personType),n.xp6(1),n.Q6J("ngIf",!Ln.hideChangePassword),n.xp6(6),n.Q6J("matMenuTriggerFor",Zt),n.xp6(2),n.Q6J("ngIf",Ln.selectedLanguage),n.xp6(1),n.Q6J("ngIf",Ln.selectedLanguage),n.xp6(1),n.Q6J("overlapTrigger",!1),n.xp6(2),n.Q6J("ngForOf",Ln.personApplicationData.culture),n.xp6(2),n.Q6J("ngIf","OfficeStaff"===Ln.personType&&Ln.showSupportBotOption),n.xp6(2),n.Q6J("ngIf","OfficeStaff"===Ln.personType),n.xp6(1),n.Q6J("ngIf",Ln.jobsInCart),n.xp6(1),n.Q6J("ngIf",!Ln.hiddenNavbar&&Ln.rightNavbar),n.xp6(1),n.Q6J("ngIf",!Ln.hiddenNavbar&&Ln.rightNavbar)}}let ef=(()=>{class Et extends Lc.g{constructor(Fe,Zt,Ln,So,Jo,Hr,Es,Vs,Ra,Ha,Al,kl,gl,wl,Pc,Rl,jc,Md,Sc,fh,tu,pc,wc){super(),this._fuseConfigService=Fe,this._fuseSidebarService=Zt,this._translateService=Ln,this.renderer=So,this.login=Jo,this.personService=Hr,this.pda=Es,this.changeDetector=Vs,this.navigationService=Ra,this.commonService=Ha,this.translationService=Al,this.us=kl,this.js=gl,this.dialog=wl,this.eds=Pc,this.workflowService=Rl,this.reportService=jc,this.document=Md,this.router=Sc,this.globalSearchService=fh,this.ns=tu,this.advancedSearchService=pc,this.title=wc,this._jsmWebUrl=Be.XL.settings.jsmWebUrl,this.apiUrl=Be.XL.settings.apiUrl,this.isAuthenticated=!1,this.resizeType=!1,this.jobsInCart=0,this.jwtHelper=new At.N0,this.f9Flag=0,this.shiftGFlag=0,this.navigateToNewTab=!1,this.showGPCalculator="false",this.portalApplications=["ApplicantPortal","NewHirePortal","AgentPortal","EmployeePortal","CustomerPortal"],this.hideChangePasswordFor=["ApplicantPortal","NewHirePortal","AgentPortal"],this.hideChangePassword=!0,this.hideDarkMode=!1,this.showAdvancedSearch=!1,this.showFavourite=!1,this.availability="notset",this.showAvailability=!1,this.isMobile=!1,this.showFavouriteToggle=!0,this.showEmailSignatureButton=!1,this.showSupportBotOption=!1,this.enableAdvanceForm=!0,this.userStatusOptions=[{title:"Online",icon:"icon-checkbox-marked-circle",color:"#4CAF50"},{title:"Away",icon:"icon-clock",color:"#FFC107"},{title:"Do not Disturb",icon:"icon-minus-circle",color:"#F44336"},{title:"Invisible",icon:"icon-checkbox-blank-circle-outline",color:"#BDBDBD"},{title:"Offline",icon:"icon-checkbox-blank-circle-outline",color:"#616161"}],this.us.isTokenValid()&&(this.isAuthenticated=!0,this.ns.startHubConnection(),this.personId=parseInt(this.us.getTokenValueByKey("personId")),this.personType=kl.getTokenValueByKey("entity")),this._unsubscribeAll=new Ws.x}ngAfterViewInit(){this.setDarkModeIcon()}onBrowserTabChange(){document.hidden||(this.navigateToNewTab=!1)}documentClick(Fe){if(this.showAdvancedSearch){var Zt,Ln;const Jo=document.getElementById("advanced-search-menu");Zt=Fe.target,Ln=Fe.currentTarget;var So=Zt?.className+" "+Ln?.activeElement?.className;Jo&&Jo.contains(Zt)||"advanced-menu-expand-button"==Zt.id||Zt.id.includes("remove_button_")||So?.includes("mat-calendar")||So?.includes("mat-datepicker")||So?.includes("block-ui")||Zt.closest("#zs-table")||Zt.closest("#zs-clear-btn")||Zt.closest(".zen-popup-sm")||(this.isMobile||this.advancedSearchRef.savedSearchDropdown?.zsAutoTrigger.closePanel(),this.showAdvancedSearch=!1)}}ngOnInit(){this.isMobileResolution.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Ln=>{this.isMobile=Ln}),this.mode=this.us.getLocalStorage("mode"),this.mode="t"===this.mode?.toLowerCase()?"TEST":null,this.showResumeSearch=this.advancedSearchService.showResumeSearch,this.setProfilePicUrl(),this.elem=document.documentElement,this._fuseConfigService.config.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Ln=>{this.horizontalNavbar="top"===Ln.layout.navbar.position,this.rightNavbar="right"===Ln.layout.navbar.position,this.hiddenNavbar=!0===Ln.layout.navbar.hidden,this.horizontalNav="top"===Ln.layout.navigation,this.noNav="none"===Ln.layout.navigation,this.zenNav="zen-above"===Ln.layout.toolbar}),this.selectedLanguage=ds.find(this.languages,{id:this._translateService.currentLang}),this.us.isTokenValid()&&(this.getPersonApplicationData('{"name": "All"}'),this.checkAvailabilityButtonAccess(),this.checkChatBotAccess()),this.js.onJobCartChanged.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Ln=>{this.jobsInCart=Ln.length}),this.globalSearchService.searchbarCollapsed.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Ln=>{}),this.commonService.onProfilePictureChanged.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Ln=>{Ln&&this.setProfilePicUrl()});let Fe=!1;this.pda.onPersonDataAccessModified.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Ln=>{Fe&&(this.enableAdvanceForm=!1,this.changeDetector.detectChanges(),this.enableAdvanceForm=!0),Fe=!0});let Zt=!1;this.personService.applicationData.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Ln=>{Zt&&(this.enableAdvanceForm=!1,this.changeDetector.detectChanges(),this.enableAdvanceForm=!0),Zt=!0}),this.advancedSearchService.onAdvanceSearchClose.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Ln=>{Ln&&this.toggleAdvancedSearch(Ln)})}checkAvailabilityButtonAccess(){let Fe=this.us.getTokenValueByKey("entity");if("employee"==Fe?.toLowerCase()){let Zt="ShowAvailabilityButton",Ln="office",So=this.us.getTokenValueByKey("officeId");this.commonService.tfOptionSelect(Fe,Zt,Ln,So).pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Jo=>{Jo&&Jo[0]&&"true"==Jo[0].optionValue.toLowerCase()&&(this.showAvailability=!0)})}}checkEmailSignatureButtonAccess(){this.commonService.tfEmailSignatureButtonAccess("").pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{Fe&&(this.showEmailSignatureButton=Fe.accessAvailable)})}setDarkModeIcon(){let Fe=this.us.getLocalStorage("default-theme-mode");this.document.body.classList.add(Fe),this.darkModeIcon=document.body.classList.contains("theme-dark")?"brightness_5":"brightness_2"}setProfilePicUrl(){this.profilePicUrl=this.commonService.getPictureDocumentUrl({personId:parseInt(this.us.getTokenValueByKey("personId"))})}toggleSidebarOpen(Fe){this._fuseSidebarService.getSidebar(Fe).toggleOpen()}setLanguage(Fe){this.selectedLanguage=Fe,this.translationService.changeLanguage(this.selectedLanguage.cultureCode.toLowerCase()),this.personApplicationData.culture.find(Zt=>1==Zt.isCurrent).cultureId!=this.selectedLanguage.cultureId&&(this.personService.setPersonCulture(this.selectedLanguage.cultureId),this.personApplicationData.culture.forEach(Zt=>Zt.isCurrent=0),this.personApplicationData.culture.find(Zt=>Zt.cultureCode==Fe.cultureCode).isCurrent=1,localStorage.setItem("selectedLanguage",this.personApplicationData.culture.find(Zt=>1==Zt.isCurrent).cultureCode))}getPersonApplicationData(Fe){this.personService.applicationData.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Zt=>{if(Zt&&Zt.hasOwnProperty("culture")){this.personApplicationData=Zt;const Ln=Zt.application.findIndex(Vs=>1==Vs.isCurrent);this.selectedAppIndex=Ln;const So=Zt.application[Ln];this.title.setTitle("ZENOPLE - "+So.application),this.setCurrentWorkflow(So),this.personService.currentPersonApplication.next(So),this.personService.setPersonRole(this.personApplicationData.role),this.personService.applicationNavigation.next(this.personApplicationData.navigation);let Jo=localStorage.getItem("selectedLanguage");this.setLanguage(this.personApplicationData.culture.find(Jo?Vs=>Vs.cultureCode==Jo:Vs=>1==Vs.isCurrent)),this.translationService.cultureList.next(this.personApplicationData.culture),this.etcShortcuts=this.personApplicationData.officeStaff,this.showGlobalSearch=this.etcShortcuts&&this.etcShortcuts.optionValue.split(",").includes("Search"),this.selectedApp=this.personApplicationData.application.filter(Vs=>1==Vs.isCurrent)[0],this.hideChangePassword=this.hideChangePasswordFor.includes(this.selectedApp.application),this.hideDarkMode=this.portalApplications.includes(this.selectedApp.application),this.zenNav||this.navigationService.setNavigationModel(this.personApplicationData.navigation),this.us.setLocalStorage("person",Zt.person),this.commonService.availabilityStatus.next(this.personApplicationData.availability.availability);const Hr=this.personApplicationData.role.filter(Vs=>1==Vs.isCurrent)[0],Es=this.us.getDeviceType();sessionStorage.setItem("headerParams",JSON.stringify({roleId:Hr.roleId,applicationId:this.selectedApp.applicationId,organizationId:this.personApplicationData.person.organizationId,officeId:this.personApplicationData.person.officeId,deviceType:Es})),this.personService.currentPersonDetail.next(Zt.person),this.personService.currentPersonDetail.subscribe(Vs=>{Vs?.hasOwnProperty("name")&&(this.name=Vs.name)}),this.getGPCalculatorAccess()}})}getAvailabilityStatus(){"EmployeePortal"==this.selectedApp.application&&this.commonService.availabilityStatus.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{this.availability=Fe,this.showAvailability=!0})}openAvailabilityForm(Fe){let Zt=Fe.target.getBoundingClientRect();const Ln=new _d.w6;Ln.disableClose=!0,Ln.autoFocus=!0,Ln.panelClass="availability-popup",Ln.position={top:Zt.y+Zt.height+10+"px",left:Zt.x-Zt.width+10+"px"},Ln.data={label:"Set your available dates",minimumDate:new Date},this.dialog.open(Mc.r,Ln).afterClosed().subscribe(Jo=>{Jo&&"failed"==Jo.response&&this.us.callSnackBar("Something went wrong.","error")})}setApplication(Fe,Zt){if("jsm"===Fe.application.toLowerCase()){let Ln=JSON.parse(this.us.decrypt(localStorage.getItem("ZNPL")));const Jo=document.location.origin;Ln.webOriginUrl=Jo,Ln.apiUrl=this.apiUrl,Ln.person.application=Fe.application,Ln.person.applicationId=Fe.applicationId;const Hr=this.us.encrypt(JSON.stringify(Ln));return window.open(`${this._jsmWebUrl}scheduled-job/directory?id=${Hr}`,"_blank","noopener=true"),void console.log(`${this._jsmWebUrl}scheduled-job/directory?id=${Hr}`)}this.personService.switchApplication(Fe,this.navigateToNewTab),this.navigateToNewTab||(this.selectedAppIndex=Zt,this.reportService.reportTabDataSet.next([]),this.reportService.reportViewDialogDisabled=!0,this.eds.removeDirectoryAndCurrentEntityData(),this.setCurrentWorkflow(Fe),this.selectedApp=Fe),this.navigateToNewTab=!1}setCurrentWorkflow(Fe){this.workflowService.setCurrentWorkflow({workflowId:Fe.workflowId,workflow:Fe.workflow})}Logout(){this.login.Logout()}manageSignature(){this.dialogRef=this.dialog.open(hd,{data:{title:"Email Signature"},panelClass:"email-signature-popup",disableClose:!0}),this.dialogRef.afterClosed().subscribe(()=>{})}changePassword(){this.dialogRef=this.dialog.open(ku.d,{disableClose:!0})}getCurrentLanguage(Fe){return Fe}getGPCalculatorAccess(){let Fe=this.etcShortcuts.optionValue.split(",");Fe&&Fe.some(Ln=>"GPCalculator"===Ln)&&(this.showGPCalculator="true")}openDataAccess(){this.f9Flag=this.f9Flag+1,this.dialogRef=this.dialog.open(iu,{data:"abc",panelClass:"dataaccess-popup",disableClose:!0}),this.dialogRef.afterClosed().subscribe(()=>{this.f9Flag=0})}openGrossCalculator(){this.commonService.isGrossProfitCalculatorFlag=this.commonService.isGrossProfitCalculatorFlag+1,this.dialogRef=this.dialog.open(ul.v,{data:{callFor:"DataAccess",title:"GrossCalculator"},panelClass:"gross-profit-calculator-popup",disableClose:!0}),this.dialogRef.afterClosed().subscribe(()=>{this.commonService.isGrossProfitCalculatorFlag=0})}openFullscreen(Fe){!1===Fe?(this.resizeType=!0,this.elem.requestFullscreen?this.elem.requestFullscreen():this.elem.mozRequestFullScreen?this.elem.mozRequestFullScreen():this.elem.webkitRequestFullscreen?this.elem.webkitRequestFullscreen():this.elem.msRequestFullscreen&&this.elem.msRequestFullscreen()):(this.resizeType=!1,this.document.exitFullscreen?this.document.exitFullscreen():this.document.mozCancelFullScreen?this.document.mozCancelFullScreen():this.document.webkitExitFullscreen?this.document.webkitExitFullscreen():this.document.msExitFullscreen&&this.document.msExitFullscreen())}openDocumentation(){return`/docs/${this.personApplicationData.application[this.selectedAppIndex].application}`}openDocumentationLink(){window.open(`https://zenoplesupport.aqore.com/${this.personApplicationData.application[this.selectedAppIndex].application}-overview`)}hotkeys(Fe){"F9"==Fe.code&&0===this.f9Flag?(this.f9Flag=this.f9Flag+1,this.openDataAccess()):"Control"==Fe.key?this.navigateToNewTab=!0:"Control"!=Fe.key&&Fe.ctrlKey?this.navigateToNewTab=!1:"Backspace"==Fe.key&&"TEXTAREA"!=(Fe.target||Fe.srcElement).tagName&&"INPUT"!=(Fe.target||Fe.srcElement).tagName&&"ql-editor"!=(Fe.target||Fe.srcElement).className&&(Fe.stopPropagation(),Fe.preventDefault())}hotkeysup(Fe){"Control"==Fe.key?this.navigateToNewTab=!1:"F8"==Fe.key&&0===this.shiftGFlag&&Fe.shiftKey&&!Fe.altKey&&!Fe.ctrlKey&&!Fe.metaKey&&"OfficeStaff"===this.personType&&"true"==this.showGPCalculator&&0==this.commonService.isGrossProfitCalculatorFlag&&this.openGrossCalculator()}fixedEncodeURIComponent(Fe){return encodeURIComponent(Fe).replace(/[!'()*]/g,function(Zt){return"%"+Zt.charCodeAt(0).toString(16).toUpperCase()})}globalSearch(Fe){const Zt={searchText:Fe,timeStamp:(new Date).getTime()};this.advancedSearchService.onFavoritevalue=!1,this.advancedSearchService.onToolbarClick.next({favorite:this.advancedSearchService.onFavoritevalue});const Ln=this.fixedEncodeURIComponent(JSON.stringify(Zt));this.router.navigateByUrl("/search/"+Ln)}clearGlobalSearch(){this.toggleAdvancedSearch("hide")}setGlobalSearchState(Fe){this.globalSearchState=Fe}toggleAdvancedSearch(Fe){this.showAdvancedSearch="show"===Fe||"hide"!==Fe&&!this.showAdvancedSearch,this.advancedSearchService.onToolbarClick.next({favorite:this.advancedSearchService.onFavoritevalue})}applyAdvancedSearch(Fe){const Zt={searchText:Fe,timeStamp:(new Date).getTime()};let Ln;Ln=this.fixedEncodeURIComponent(Zt&&"object"==typeof Zt?JSON.stringify(Zt):Zt),this.showAdvancedSearch=!1,this.router.navigateByUrl("/search/"+Ln)}darkModeChange(Fe){this.personService.darkModeChange(this.renderer),this.setDarkModeIcon()}checkChatBotAccess(){this.commonService.tfOptionSelect("Common","EnableAIFeatures","Person",this.personId).pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{Fe&&Fe[0]&&Fe[0].optionValue.toLowerCase().includes("support bot")&&(this.showSupportBotOption=!0)})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(an.m),n.Y36(zi.h),n.Y36(Ve.sK),n.Y36(n.Qsj),n.Y36(Ni.r),n.Y36(Vi.R),n.Y36(bn.F),n.Y36(n.sBO),n.Y36(Nt.J),n.Y36(Ae.v),n.Y36(Pn.R),n.Y36(Rt.t),n.Y36(Qn.a),n.Y36(_d.on),n.Y36(mn.a),n.Y36(ii.z),n.Y36(qt.r),n.Y36(ur.K0),n.Y36(Ht.F0),n.Y36(ho.E),n.Y36(Jn.g),n.Y36(ff.i),n.Y36(e.Dx))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["toolbar"]],viewQuery:function(Zt,Ln){if(1&Zt&&(n.Gf(je,5),n.Gf(Mn,5)),2&Zt){let So;n.iGM(So=n.CRH())&&(Ln.advancedSearchRef=So.first),n.iGM(So=n.CRH())&&(Ln.zenExpandingSearchElement=So.first)}},hostBindings:function(Zt,Ln){1&Zt&&n.NdJ("keydown",function(Jo){return Ln.hotkeys(Jo)},!1,n.Jf7)("keyup",function(Jo){return Ln.hotkeysup(Jo)},!1,n.Jf7)("visibilitychange",function(Jo){return Ln.onBrowserTabChange(Jo)},!1,n.evT)("click",function(Jo){return Ln.documentClick(Jo)},!1,n.evT)},features:[n.qOj],decls:19,vars:12,consts:[[1,"p-0","mat-elevation-z1","private-toolbar"],["fxFlex","","fxFill","","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","1 0 auto","fxLayout","row","fxLayoutAlign","start center"],["mat-icon-button","","class","navbar-toggle-button","fxHide","","fxShow.xs","","fxShow.sm","","fxShow.md","",3,"click",4,"ngIf"],["class","toolbar-separator","fxHide.gt-md","",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["class","px-mat-16",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"global-search-container"],[3,"collapsed","search","currentState","clearSearch",4,"ngIf"],["mat-icon-button","","id","advanced-menu-button","class","advanced-menu-btn zenauto-advanced-menu-btn",3,"click",4,"ngIf"],["fxFlex","","id","advanced-search-menu",1,"advanced-search-container","advancesearch-bucket",3,"hidden"],[3,"visibility","showResumeSearch","showFavourite","showFavouriteToggle","isGlobal","entityName","displayConfig","onAdvancedSearch",4,"ngIf"],["mat-icon-button","",1,"close-adv-search",3,"click"],["mat-icon-button","","class","secondary-text pulse-me",3,"click",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","class","secondary-text","fxHide.xs","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","","fxHide","","fxShow.xs","","fxShow.sm","","fxShow.md","",1,"navbar-toggle-button",3,"click"],[1,"secondary-text"],["fxHide.gt-md","",1,"toolbar-separator"],["fxLayout","row","fxLayoutAlign","start center"],[1,"logo"],["src","assets/images/logos/fuse.svg",1,"logo-icon"],[1,"px-mat-16"],[3,"etc-shortcuts"],[3,"collapsed","search","currentState","clearSearch"],["zenExpandingSearchElement",""],["mat-icon-button","","id","advanced-menu-button",1,"advanced-menu-btn","zenauto-advanced-menu-btn",3,"click"],[4,"ngIf","ngIfElse"],["drop_down",""],["id","advanced-menu-expand-button"],[3,"visibility","showResumeSearch","showFavourite","showFavouriteToggle","isGlobal","entityName","displayConfig","onAdvancedSearch"],["advancedSearchRef",""],["mat-icon-button","",1,"secondary-text","pulse-me",3,"click"],[3,"matTooltip"],["color","warn",2,"background-color","red !important","color","white !important"],["mat-icon-button","","fxHide.xs","",1,"secondary-text",3,"matTooltip","click"],["class","night-mode-icon",4,"ngIf","ngIfElse"],["lightModeIcon",""],[1,"night-mode-icon"],["src","assets/images/backgrounds/daymode.png","alt","daymode",1,"w-52"],["mat-icon-button","","fxHide.xs","",1,"navbar-toggle-button",3,"matTooltip","click"],[3,"click",4,"ngIf"],["fxHide.xs","",1,"toolbar-separator"],["class","zenauto-application-menu-wrap application-menu h-100-p",4,"ngIf"],["fxFlex","0 1 auto","fxLayout","row","fxLayoutAlign","start center",1,"h-100-p"],["mat-button","",1,"user-button","h-100-p",3,"matMenuTriggerFor"],["fxLayout","row","fxLayoutAlign","center center"],["onError","this.src='assets/images/avatars/profile.jpg';",1,"avatar","mr-0","mr-sm-16","zenauto-logged-user-avatar",3,"src"],["fxHide.xs","",1,"username","mr-12","zenauto-logged-username"],["fxHide.xs","",1,"s-16","zenauto-dropdown-menu"],[3,"overlapTrigger"],["userMenu","matMenu"],["class","zenauto-dropdown-office-access","mat-menu-item","",3,"click",4,"ngIf"],["class","zenauto-dropdown-password","mat-menu-item","","class","",3,"click",4,"ngIf"],["mat-menu-item","",1,"",3,"click"],["mat-button","",1,"language-button","h-100-p",3,"matMenuTriggerFor"],["class","flag mr-8",3,"src",4,"ngIf"],["class","iso text-uppercase",4,"ngIf"],["languageMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["fxHide","","fxShow.gt-xs","",1,"toolbar-separator"],["mat-icon-button","","class","quick-panel-toggle-button zenauto-quick-panel","aria-label","Toggle quick panel",3,"click",4,"ngIf"],["class","toolbar-separator",4,"ngIf"],["class","toolbar-separator","fxHide","","fxShow.gt-xs","",4,"ngIf"],["mat-icon-button","","class","navbar-toggle-button","fxHide.gt-md","",3,"click",4,"ngIf"],[3,"click"],["mat-icon-button","","fxHide.xs","",1,"navbar-toggle-button",3,"matTooltip"],[1,"zenauto-application-menu-wrap","application-menu","h-100-p"],["mat-button","","class","zenauto-app-button user-button m-0 p-0",3,"matMenuTriggerFor",4,"ngIf"],["yPosition","below",1,"app_icon_wrap","zenauto-appicon-wrap",3,"overlapTrigger"],["appMenu","matMenu"],[1,"app-wrap"],["mat-menu-item","",3,"matTooltip","class","click",4,"ngFor","ngForOf"],["mat-button","",1,"zenauto-app-button","user-button","m-0","p-0",3,"matMenuTriggerFor"],["fxLayout","column","fxLayoutAlign","center center"],[1,"icon"],[1,"active-app-name","zenauto-select-application",3,"matTooltip"],["mat-menu-item","",3,"matTooltip","click"],[1,"s-36",3,"ngClass"],["mat-menu-item","",1,"zenauto-dropdown-office-access",3,"click"],[1,"flag","mr-8",3,"src"],[1,"iso","text-uppercase"],["mat-menu-item","",3,"click"],[1,"flag","mr-16","zenauto-culture-flag",3,"src"],[1,"iso","zenauto-culture-language"],["mat-icon-button","","aria-label","Toggle quick panel",1,"quick-panel-toggle-button","zenauto-quick-panel",3,"click"],[1,"toolbar-separator"],["mat-icon-button","","fxHide.gt-md","",1,"navbar-toggle-button",3,"click"]],template:function(Zt,Ln){1&Zt&&(n.TgZ(0,"mat-toolbar",0)(1,"div",1)(2,"div",2),n.YNc(3,Gi,3,0,"button",3),n.YNc(4,nr,1,0,"div",4),n.YNc(5,is,3,0,"div",5),n.YNc(6,ta,2,1,"div",6),n.TgZ(7,"div",7),n.YNc(8,dl,2,1,"zen-expanding-search",8),n.YNc(9,_c,4,2,"button",9),n.TgZ(10,"div",10),n.YNc(11,fd,2,10,"advanced-search",11),n.TgZ(12,"button",12),n.NdJ("click",function(){return Ln.toggleAdvancedSearch("hide")}),n.TgZ(13,"mat-icon"),n._uU(14,"close"),n.qZA()()()(),n.YNc(15,Su,4,3,"button",13),n.qZA(),n.YNc(16,gm,3,1,"mat-chip-list",14),n.YNc(17,Ed,5,5,"button",15),n.YNc(18,Au,40,22,"ng-container",14),n.qZA()()),2&Zt&&(n.xp6(3),n.Q6J("ngIf",!Ln.hiddenNavbar&&!Ln.rightNavbar),n.xp6(1),n.Q6J("ngIf",!Ln.hiddenNavbar&&!Ln.rightNavbar),n.xp6(1),n.Q6J("ngIf",Ln.horizontalNavbar),n.xp6(1),n.Q6J("ngIf",Ln.etcShortcuts),n.xp6(2),n.Q6J("ngIf",Ln.showGlobalSearch),n.xp6(1),n.Q6J("ngIf","expanded"==Ln.globalSearchState&&!Ln.showAdvancedSearch),n.xp6(1),n.Q6J("hidden",!Ln.showAdvancedSearch),n.xp6(1),n.Q6J("ngIf",Ln.enableAdvanceForm),n.xp6(4),n.Q6J("ngIf",Ln.showAvailability),n.xp6(1),n.Q6J("ngIf",Ln.mode),n.xp6(1),n.Q6J("ngIf",!Ln.hideDarkMode),n.xp6(1),n.Q6J("ngIf",Ln.personApplicationData))},dependencies:[ur.mk,ur.sg,ur.O5,wa.xw,wa.Wh,wa.s9,wa.yH,Qo.b8,Qo.oO,fo.Hw,Iu.W0,Iu.tN,Iu.D8,ar.Ye,rc.Kd,Qd,ts.eB,Th.ir,Th.lw,Rn,Uo.g,Ve.X$],styles:['@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0}to{opacity:1}}@keyframes _ngcontent-%COMP%_fadeInLeft{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}@keyframes _ngcontent-%COMP%_fadeInRight{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}@keyframes _ngcontent-%COMP%_fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes _ngcontent-%COMP%_slideInDown{0%{opacity:0;transform:translateY(-2000px)}to{opacity:1;transform:translateY(0)}}@keyframes _ngcontent-%COMP%_slideInLeft{0%{opacity:0;transform:translate(-2000px)}to{opacity:1;transform:translate(0)}}@keyframes _ngcontent-%COMP%_slideInRight{0%{opacity:0;transform:translate(2000px)}to{opacity:1;transform:translate(0)}}[_nghost-%COMP%]{position:relative;display:flex;flex:0 0 auto;z-index:4}.below[_nghost-%COMP%]{z-index:2}[_nghost-%COMP%]   .pulse-me[_ngcontent-%COMP%]{margin-left:10px;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;cursor:pointer;box-shadow:0 0 #ff585866;animation:_ngcontent-%COMP%_pulse 2s infinite}[_nghost-%COMP%]   .pulse-me[_ngcontent-%COMP%]   .clock[_ngcontent-%COMP%]{transform:scale(2);border-radius:50%;width:24px;height:24px;position:relative}[_nghost-%COMP%]   .pulse-me[_ngcontent-%COMP%]   .clock[_ngcontent-%COMP%]:after{position:absolute;width:0px;height:6px;display:block;border-left:1px solid #000000;content:"";left:12.5px;top:6px;animation-duration:7s}@media screen and (max-width: 599px){[_nghost-%COMP%]   .pulse-me[_ngcontent-%COMP%]   .clock[_ngcontent-%COMP%]:after{border-left:.5px solid #000000;left:12.75px}}[_nghost-%COMP%]   .pulse-me[_ngcontent-%COMP%]   .clock[_ngcontent-%COMP%]:before{position:absolute;width:0px;height:6px;display:block;border-left:1px solid #000000;content:"";left:12.5px;top:6px;animation-duration:60s}@media screen and (max-width: 599px){[_nghost-%COMP%]   .pulse-me[_ngcontent-%COMP%]   .clock[_ngcontent-%COMP%]:before{border-left:.5px solid #000000;left:12.75px}}[_nghost-%COMP%]   .pulse-me[_ngcontent-%COMP%]   .clock[_ngcontent-%COMP%]:before, [_nghost-%COMP%]   .pulse-me[_ngcontent-%COMP%]   .clock[_ngcontent-%COMP%]:after{transform-origin:bottom;animation-name:_ngcontent-%COMP%_dial;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes _ngcontent-%COMP%_dial{0%{transform:rotate(0)}to{transform:rotate(360deg)}}[_nghost-%COMP%]   .pulse[_ngcontent-%COMP%]:hover{animation:none}@keyframes _ngcontent-%COMP%_pulse{0%{box-shadow:0 0 #ff585880}70%{box-shadow:0 0 0 10px #ff585800}to{box-shadow:0 0 #ff585800}}[_nghost-%COMP%]   .night-mode-icon[_ngcontent-%COMP%]{transform:rotate(145deg)}[_nghost-%COMP%]   .mat-toolbar[_ngcontent-%COMP%]     zen-expanding-search .expanded-search-bar-collapser{height:20px;width:20px;line-height:20px;border-radius:4px;margin-bottom:4px}[_nghost-%COMP%]   .logo[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%]   .logo[_ngcontent-%COMP%]   .logo-icon[_ngcontent-%COMP%]{width:38px}[_nghost-%COMP%]   .user-button[_ngcontent-%COMP%], [_nghost-%COMP%]   fuse-search-bar[_ngcontent-%COMP%], [_nghost-%COMP%]   .language-button[_ngcontent-%COMP%], [_nghost-%COMP%]   .chat-panel-toggle-button[_ngcontent-%COMP%], [_nghost-%COMP%]   .quick-panel-toggle-button[_ngcontent-%COMP%]{min-width:64px;height:64px}@media screen and (max-width: 599px){[_nghost-%COMP%]   .user-button[_ngcontent-%COMP%], [_nghost-%COMP%]   fuse-search-bar[_ngcontent-%COMP%], [_nghost-%COMP%]   .language-button[_ngcontent-%COMP%], [_nghost-%COMP%]   .chat-panel-toggle-button[_ngcontent-%COMP%], [_nghost-%COMP%]   .quick-panel-toggle-button[_ngcontent-%COMP%]{height:56px}}[_nghost-%COMP%]   .navbar-toggle-button[_ngcontent-%COMP%]{min-width:56px;height:56px}[_nghost-%COMP%]   .toolbar-separator[_ngcontent-%COMP%]{height:64px;width:1px;background:rgba(0,0,0,.12)}@media screen and (max-width: 599px){[_nghost-%COMP%]   .toolbar-separator[_ngcontent-%COMP%]{height:56px}}[_nghost-%COMP%]   .global-search-container[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%]   .global-search-container[_ngcontent-%COMP%]   .advanced-search-container[_ngcontent-%COMP%]{position:absolute;top:30px;z-index:9999;left:0;width:41vw;box-shadow:0 0 10px #696969;background-color:#fff;overflow-y:auto}@media screen and (max-width: 599px){[_nghost-%COMP%]   .global-search-container[_ngcontent-%COMP%]   .advanced-search-container[_ngcontent-%COMP%]{width:100%;position:fixed}}[_nghost-%COMP%]   .global-search-container[_ngcontent-%COMP%]   .advanced-search-container[_ngcontent-%COMP%]   advanced-search[_ngcontent-%COMP%]  .search-content form .advance-form-container{padding-bottom:16px!important;padding-top:0!important;flex:auto!important;max-height:calc(100vh - 250px);overflow-y:auto}[_nghost-%COMP%]   .global-search-container[_ngcontent-%COMP%]   .advanced-search-container[_ngcontent-%COMP%]   advanced-search[_ngcontent-%COMP%]  .search-content form .advance-form-container .primary-search{display:flex;flex-direction:column}[_nghost-%COMP%]   .global-search-container[_ngcontent-%COMP%]   .advanced-search-container[_ngcontent-%COMP%]   advanced-search[_ngcontent-%COMP%]  .search-content form .advance-form-container .primary-search .cursor-pointer{position:absolute;top:0;z-index:1;font-size:14px;left:0;padding:0 16px}[_nghost-%COMP%]   .global-search-container[_ngcontent-%COMP%]   .advanced-search-container[_ngcontent-%COMP%]   advanced-search[_ngcontent-%COMP%]  .search-content form .advance-form-container .additional-parameter{background-color:#e9f4fe;border-left:none}[_nghost-%COMP%]   .global-search-container[_ngcontent-%COMP%]   .advanced-search-container[_ngcontent-%COMP%]   advanced-search[_ngcontent-%COMP%]  .search-content form .advance-form-container .additional-parameter .mat-form-field-label{color:#000}[_nghost-%COMP%]   .global-search-container[_ngcontent-%COMP%]   .advanced-search-container[_ngcontent-%COMP%]   advanced-search[_ngcontent-%COMP%]  .search-content form .advance-form-container .parameter-type-block legend{font-size:16px}[_nghost-%COMP%]   .global-search-container[_ngcontent-%COMP%]   .advanced-search-container[_ngcontent-%COMP%]   advanced-search[_ngcontent-%COMP%]  .search-content form .advance-form-container .parameter-type-block .add-param-action{font-size:14px;font-weight:400}[_nghost-%COMP%]   .global-search-container[_ngcontent-%COMP%]   .advanced-search-container[_ngcontent-%COMP%]   .close-adv-search[_ngcontent-%COMP%]{position:absolute;right:16px;top:2px;z-index:1;font-size:20px;display:flex;cursor:pointer;justify-content:center;align-items:center;height:27px;width:27px;box-shadow:none}[_nghost-%COMP%]   .global-search-container[_ngcontent-%COMP%]   .advanced-search-container[_ngcontent-%COMP%]   .close-adv-search[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{line-height:24px;font-size:20px}[_nghost-%COMP%]   .global-search-container[_ngcontent-%COMP%]   .advanced-search-container[_ngcontent-%COMP%]   .close-adv-search[_ngcontent-%COMP%]:active   mat-icon[_ngcontent-%COMP%]{transform:translateY(2px)}[_nghost-%COMP%]   .global-search-container[_ngcontent-%COMP%]   .advanced-menu-btn[_ngcontent-%COMP%]{background:#f1f1f1;display:flex;justify-content:center;align-items:center;box-shadow:none;border-radius:4px!important;margin-left:8px;width:20px;height:20px;margin-bottom:4px}[_nghost-%COMP%]   .global-search-container[_ngcontent-%COMP%]   .advanced-menu-btn[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#0000008a;line-height:24px}  .notifications-menu h4{padding-left:12px;padding-top:4px}  .notifications-menu h4 strong{color:#3b71ce}  .notifications-menu .notifications-box{padding:0 16px 0 30px}  .notifications-menu .notifications-box li{color:#676767;list-style-type:circle;margin-bottom:12px;cursor:pointer}  .notifications-menu .notifications-box li:hover{color:#1d1d1d;transition:.1s ease-in-out}  .notifications-menu .notifications-box li:last-child{margin-bottom:0}']})}return Et})();function Bu(Et,Cn){if(1&Et&&n._UZ(0,"img",22),2&Et){const Fe=n.oxw();n.Q6J("src",Fe.logo,n.LSH)}}function ru(Et,Cn){1&Et&&n._UZ(0,"img",23)}function mf(Et,Cn){if(1&Et&&(n.TgZ(0,"button",24)(1,"div",25),n._UZ(2,"img",26),n.TgZ(3,"span",27),n._uU(4),n.qZA(),n.TgZ(5,"mat-icon",28),n._uU(6,"keyboard_arrow_down"),n.qZA()()()),2&Et){const Fe=n.oxw(),Zt=n.MAs(13);n.Q6J("matMenuTriggerFor",Zt),n.xp6(2),n.Q6J("src",Fe.profilePicUrl,n.LSH),n.xp6(2),n.Oqu(Fe.person.name)}}function Rp(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"button",29),n.NdJ("click",function(){n.CHM(Fe);const Ln=n.oxw();return n.KtG(Ln.toLoginPage())}),n.TgZ(1,"div",30)(2,"mat-icon",31),n._uU(3,"login"),n.qZA(),n._uU(4,"\xa0\xa0 "),n.TgZ(5,"span",32),n._uU(6,"Login"),n.qZA()()()}}function ah(Et,Cn){if(1&Et&&(n.TgZ(0,"button",33)(1,"div",25),n._UZ(2,"img",34),n.TgZ(3,"span",35),n._uU(4),n.qZA()()()),2&Et){const Fe=n.oxw(),Zt=n.MAs(28);n.Q6J("matMenuTriggerFor",Zt),n.xp6(2),n.Q6J("src","assets/images/flags/"+Fe.selectedLanguage.cultureCode.toLowerCase()+".png",n.LSH),n.xp6(2),n.Oqu(Fe.selectedLanguage.cultureCode)}}function Qc(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"button",36),n.NdJ("click",function(){const So=n.CHM(Fe).$implicit,Jo=n.oxw();return n.KtG(Jo.setLanguage(So))}),n.TgZ(1,"div",4),n._UZ(2,"img",37),n.TgZ(3,"span",38),n._uU(4),n.qZA()()()}if(2&Et){const Fe=Cn.$implicit;n.xp6(2),n.Q6J("src","assets/images/flags/"+Fe.cultureCode.toLowerCase()+".png",n.LSH),n.xp6(2),n.Oqu(Fe.language)}}const kh=function(Et){return{"no-cart-item":Et}},$p=function(Et){return{"font-weight":Et}};let Mf=(()=>{class Et{constructor(Fe,Zt,Ln,So,Jo,Hr,Es,Vs,Ra){this.us=Fe,this.ls=Zt,this.js=Ln,this.ps=So,this.router=Jo,this.translationService=Hr,this.dialog=Es,this.ns=Vs,this.commonService=Ra,this.isAuthenticated=!1,this.jobsInCart=0,this.logo=null,this.hasJobPortalAccess=!0,this._unsubscribeAll=new Ws.x,this.logo=this.js.organizationLogo,this.us.isTokenValid()&&(this.isAuthenticated=!0,this.ns.startHubConnection(),this.person={personId:this.us.getTokenValueByKey("personId"),name:this.us.getTokenValueByKey("name")}),this.getLanguage(),this.js.onJobCartChanged.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Ha=>{this.jobsInCart=Ha.length}),this.us.onJobPortalAccessChange.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Ha=>{null!=Ha&&(this.hasJobPortalAccess=Ha)}),this.setProfilePicUrl()}setProfilePicUrl(){this.person?.personId&&(this.profilePicUrl=this.commonService.getPictureDocumentUrl({personId:this.person.personId}))}getLanguage(){if(this.isAuthenticated){let Fe={name:"Culture"};this.ps.personApplicationData(JSON.stringify(Fe)).pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Zt=>{this.culture=Zt.culture,this.js.currentLanguage=this.culture.filter(Ln=>1==Ln.isCurrent)[0]}),Fe={name:"Person"},this.ps.personApplicationData(JSON.stringify(Fe)).pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Zt=>{this.ps.currentPersonDetail.next(Zt.person)})}else this.culture=this.js.organizationCulture,this.js.currentLanguage=this.culture.filter(Fe=>1==Fe.isCurrent)[0]}setLanguage(Fe){this.js.currentLanguage=Fe,this.translationService.changeLanguage(Fe.cultureCode.toLowerCase()),this.isAuthenticated&&this.ps.setPersonCulture(Fe.cultureId)}toLoginPage(){this.router.navigate(["login",this.js.filter.organizationCode],{})}Logout(){this.ls.Logout()}openDataAccess(){this.dialogRef=this.dialog.open(iu,{data:"abc",panelClass:"zen-popup-md",disableClose:!0})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(Rt.t),n.Y36(Ni.r),n.Y36(Qn.a),n.Y36(Vi.R),n.Y36(Ht.F0),n.Y36(Pn.R),n.Y36(_d.on),n.Y36(Jn.g),n.Y36(Ae.v))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["zen-toolbar"]],decls:31,vars:16,consts:[[1,"p-0"],["fxFlex","","fxFill","","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","1 0 auto","fxLayout","row","fxLayoutAlign","start center"],["fxHide.gt-md","",1,"toolbar-separator"],["fxLayout","row","fxLayoutAlign","start center"],[1,"logo","ml-16"],["style","height:60px; width:auto","class","logo-icon",3,"src",4,"ngIf"],["class","logo-icon","src","../../../org_theme/esg/images/backgrounds/inner_logo.png",4,"ngIf"],["fxHide","","fxShow.gt-xs","",1,"toolbar-separator"],["fxFlex","0 1 auto","fxLayout","row","fxLayoutAlign","start center",1,""],["mat-button","","class","user-button m-0",3,"matMenuTriggerFor",4,"ngIf"],["yPosition","below",3,"overlapTrigger"],["userMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],["mat-button","","class","user-button zenauto-login-button",3,"click",4,"ngIf"],[1,"toolbar-separator"],["mat-button","",1,"zenauto-saved-jobs-button","user-button",3,"ngClass","click"],["fxLayout","row center","fxLayoutGap","6px","fxLayoutAlign","space-around center"],["matBadgePosition","after","matBadgeColor","accent","matBadgeSize","medium",1,"pr-4","mr-4","font-weight-400",3,"matBadge","matBadgeHidden","ngStyle"],["mat-button","","class","language-button",3,"matMenuTriggerFor",4,"ngIf"],["languageMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],[1,"logo-icon",2,"height","60px","width","auto",3,"src"],["src","../../../org_theme/esg/images/backgrounds/inner_logo.png",1,"logo-icon"],["mat-button","",1,"user-button","m-0",3,"matMenuTriggerFor"],["fxLayout","row","fxLayoutAlign","center center"],["onError","this.src='assets/images/avatars/profile.jpg';",1,"avatar",3,"src"],["fxHide","","fxShow.gt-sm","",1,"username","mr-12"],["fxHide.xs","",1,"s-16"],["mat-button","",1,"user-button","zenauto-login-button",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"font-weight-400"],[1,"s-24","icon-overwrite","secondary-text"],[1,"username"],["mat-button","",1,"language-button",3,"matMenuTriggerFor"],[1,"flag","mr-8",3,"src"],[1,"iso","text-uppercase"],["mat-menu-item","",3,"click"],[1,"flag","mr-16",3,"src"],[1,"iso"]],template:function(Zt,Ln){1&Zt&&(n.TgZ(0,"mat-toolbar",0)(1,"div",1)(2,"div",2),n._UZ(3,"div",3),n.TgZ(4,"div",4)(5,"div",5),n.YNc(6,Bu,1,1,"img",6),n.YNc(7,ru,1,0,"img",7),n.qZA()()(),n._UZ(8,"div",8),n.TgZ(9,"div",9),n._UZ(10,"div",8),n.YNc(11,mf,7,3,"button",10),n.TgZ(12,"mat-menu",11,12)(14,"button",13),n.NdJ("click",function(){return Ln.Logout()}),n.TgZ(15,"mat-icon"),n._uU(16,"exit_to_app"),n.qZA(),n.TgZ(17,"span"),n._uU(18,"Logout"),n.qZA()()(),n.YNc(19,Rp,7,0,"button",14),n._UZ(20,"div",15),n.TgZ(21,"button",16),n.NdJ("click",function(){return Ln.js.applyJob()}),n.TgZ(22,"div",17)(23,"div",18),n._uU(24,"Saved Jobs"),n.qZA()()(),n._UZ(25,"div",15),n.YNc(26,ah,5,3,"button",19),n.TgZ(27,"mat-menu",11,20),n.YNc(29,Qc,5,2,"button",21),n.qZA(),n._UZ(30,"div",15),n.qZA()()()),2&Zt&&(n.xp6(6),n.Q6J("ngIf",Ln.logo),n.xp6(1),n.Q6J("ngIf",!Ln.logo&&!Ln.isAuthenticated),n.xp6(4),n.Q6J("ngIf",Ln.isAuthenticated&&Ln.hasJobPortalAccess),n.xp6(1),n.Q6J("overlapTrigger",!1),n.xp6(7),n.Q6J("ngIf",!Ln.isAuthenticated||Ln.isAuthenticated&&!Ln.hasJobPortalAccess),n.xp6(2),n.Q6J("ngClass",n.VKq(12,kh,0==Ln.jobsInCart)),n.xp6(2),n.s9C("matBadge",Ln.jobsInCart),n.Q6J("matBadgeHidden",!(Ln.jobsInCart>0))("ngStyle",n.VKq(14,$p,Ln.jobsInCart>0?"600":"400")),n.xp6(3),n.Q6J("ngIf",Ln.selectedLanguage),n.xp6(1),n.Q6J("overlapTrigger",!1),n.xp6(2),n.Q6J("ngForOf",Ln.culture))},dependencies:[ur.mk,ur.sg,ur.O5,ur.PC,wa.xw,wa.SQ,wa.Wh,wa.s9,wa.yH,Qo.b8,Qo.oO,Qo.Zl,fo.Hw,Iu.W0,Iu.tN,Iu.D8,ar.Ye,ts.eB,Eh.k],styles:["[_nghost-%COMP%]{position:relative;display:flex;flex:0 0 auto;z-index:4}.below[_nghost-%COMP%]{z-index:2}[_nghost-%COMP%]   .mat-toolbar[_ngcontent-%COMP%]{background:inherit;color:inherit;position:relative}[_nghost-%COMP%]   .mat-toolbar[_ngcontent-%COMP%]   .loading-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;width:100%}[_nghost-%COMP%]   .logo[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%]   .logo[_ngcontent-%COMP%]   .logo-icon[_ngcontent-%COMP%]{width:38px}[_nghost-%COMP%]   .zenauto-saved-jobs-button[_ngcontent-%COMP%]   .mat-badge-content[_ngcontent-%COMP%]{background-color:#3454d1}[_nghost-%COMP%]   .user-button[_ngcontent-%COMP%], [_nghost-%COMP%]   fuse-search-bar[_ngcontent-%COMP%], [_nghost-%COMP%]   .language-button[_ngcontent-%COMP%], [_nghost-%COMP%]   .quick-panel-toggle-button[_ngcontent-%COMP%]{min-width:64px;height:64px}@media screen and (max-width: 599px){[_nghost-%COMP%]   .user-button[_ngcontent-%COMP%], [_nghost-%COMP%]   fuse-search-bar[_ngcontent-%COMP%], [_nghost-%COMP%]   .language-button[_ngcontent-%COMP%], [_nghost-%COMP%]   .quick-panel-toggle-button[_ngcontent-%COMP%]{height:56px}}[_nghost-%COMP%]   .toggle-button-navbar[_ngcontent-%COMP%]{min-width:56px;height:56px}[_nghost-%COMP%]   .toolbar-separator[_ngcontent-%COMP%]{height:64px;width:1px;background:rgba(0,0,0,.12)}@media screen and (max-width: 599px){[_nghost-%COMP%]   .toolbar-separator[_ngcontent-%COMP%]{height:56px}}"]})}return Et})();var gf=i(65592);let Lp=(()=>{class Et{constructor(Fe,Zt){this.httpClient=Fe,this._webApiService=Zt,this._aIApiUrl=Be.XL.settings.apiUrl+"AI/"}getStreamedChatResponses(Fe){return new gf.y(Zt=>{const Ln={headers:new o.WM({"Content-Type":"application/json"}),observe:"events",responseType:"text",reportProgress:!0};let So=0;this.httpClient.post(this._aIApiUrl+"GetStreamingChatResponse",{json:Fe},Ln).subscribe({next:Jo=>{if(Jo.type===o.dt.DownloadProgress){const Es=Jo.partialText.slice(So);So=Jo.loaded,Zt.next(Es.replace(/\\n/g,"\n").replace(/\[\w+\]/g,""))}},error:Jo=>{Zt.error(Jo),Zt.complete(),So=0},complete:()=>{Zt.complete(),So=0}})})}insertChatbotLog(Fe){return this._webApiService.post(this._aIApiUrl+"AIUsageLog",{json:Fe},null,null,!1)}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.LFG(o.eN),n.LFG(Wn.f))};static#t=this.\u0275prov=n.Yz7({token:Et,factory:Et.\u0275fac,providedIn:"root"})}return Et})();var pd=i(3305),su=i(32296),kf=i(24516),$u=i(45919);const jh=["documentSideView"];function Qp(Et,Cn){if(1&Et&&(n.TgZ(0,"ul")(1,"li")(2,"a",15),n._uU(3),n.qZA()()()),2&Et){const Fe=Cn.$implicit;n.xp6(2),n.Q6J("href",Fe.Url,n.LSH),n.xp6(1),n.Oqu(Fe.Title)}}function Ih(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"div")(1,"mat-expansion-panel",14),n.NdJ("opened",function(){n.CHM(Fe);const Ln=n.oxw(2);return n.KtG(Ln.panelOpenState.set(!0))})("closed",function(){n.CHM(Fe);const Ln=n.oxw(2);return n.KtG(Ln.panelOpenState.set(!1))}),n.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"mat-icon"),n._uU(5),n.qZA(),n._uU(6),n.qZA()(),n.YNc(7,Qp,4,2,"ul",4),n.qZA()()}if(2&Et){const Fe=n.oxw().$implicit,Zt=n.oxw();n.xp6(5),n.hij(" ",Zt.panelOpenState()?"expand_more":"chevron_right",""),n.xp6(1),n.hij(" ",null==Fe.citations?null:Fe.citations.length," References "),n.xp6(1),n.Q6J("ngForOf",Fe.citations)}}const Pd=function(Et,Cn){return{from:Et,to:Cn}};function Rd(Et,Cn){if(1&Et&&(n.ynx(0),n.TgZ(1,"div",11),n._UZ(2,"p",12),n.YNc(3,Ih,8,3,"div",13),n.qZA(),n.BQk()),2&Et){const Fe=Cn.$implicit,Zt=n.oxw();n.xp6(1),n.Q6J("ngClass",n.WLB(3,Pd,"assistant"===Fe.role,"user"===Fe.role)),n.xp6(1),n.Q6J("innerHTML",Zt.sanitizeContent(Fe.content),n.oJD),n.xp6(1),n.Q6J("ngIf",(null==Fe.citations?null:Fe.citations.length)>0)}}function If(Et,Cn){if(1&Et){const Fe=n.EpF();n.TgZ(0,"zen-doc-viewer",16),n.NdJ("documentSlideView",function(){n.CHM(Fe);const Ln=n.oxw();return n.KtG(Ln.closeSlideView())}),n.qZA()}if(2&Et){const Fe=n.oxw();n.Q6J("documentUrl",Fe.documentUrl)}}let eu=(()=>{class Et{constructor(Fe,Zt,Ln,So){this.us=Fe,this._chatbotService=Zt,this.cdr=Ln,this.sanitizer=So,this.name="",this.messages=[],this.userMessage="",this.panelOpenState=(0,n.tdS)(!1),this._unsubscribeAll=new Ws.x}ngOnInit(){this.personId=parseInt(this.us.getTokenValueByKey("personId"));const Fe=this.us.getTokenValueByKey("name").toLowerCase().split(" ")[0];this.name=Fe.charAt(0).toUpperCase()+Fe.slice(1)}sendMessage(){if(""!=this.userMessage.trim()){this.messages.push({role:"user",content:this.userMessage,citations:[]});var Fe=JSON.stringify({sessionId:"ses"+this.personId,messages:this.messages.slice(-5)});this.messages.push({role:"assistant",content:"",citations:null}),this._chatbotService.getStreamedChatResponses(Fe).pipe((0,pi.R)(this._unsubscribeAll)).subscribe({next:Zt=>{if(!this.citationsList){const Ln=Zt.match(/"citationsList":(\[.*?\])/);Ln?(this.citationsList=JSON.parse(Ln[1]),this.citationsList=this.filterUniqueArray(this.citationsList)):this.citationsList=null,Zt=Zt.replace(/{\"citationsList\":\[.*?\]}/,"")}this.messages[this.messages.length-1].content+=Zt,this.cdr.detectChanges()},error:Zt=>{console.error("Error receiving stream",Zt)},complete:()=>{var Zt={history:this.messages.slice(-6,-1).map(Ln=>Ln.content).join(" "),query:this.messages[this.messages.length-2].content,answer:this.messages[this.messages.length-1].content,requiredTokenCalculation:!0,operation:"ChatbotLogInsert"};this._chatbotService.insertChatbotLog(JSON.stringify(Zt)).pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Ln=>{this.messages[this.messages.length-1].citations=Ln.isUnanswered?[]:this.citationsList,this.citationsList=null})}}),this.userMessage=""}}sanitizeContent(Fe){return this.sanitizer.bypassSecurityTrustHtml(("<p>"+Fe+"</p>").replace(/\*\*(.*?)\*\*/g,"<b>$1</b>").replace(/\n/g,"<br>").replace(/\[([^\]]+)\]\((https?:\/\/[^\)]+)\)/g,'<a href="$2" target="_blank">$1</a>').replace(/\((https?:\/\/[^\)]+)\)/g,'<a href="$1" target="_blank">here</a>'))}filterUniqueArray(Fe){const Zt=new Set;return Fe.filter(Ln=>!Zt.has(Ln.Title)&&!!Ln.Title&&(Zt.add(Ln.Title),!0))}onDocumentView(Fe){this.documentViewerData={documentId:null,documentName:"Reference",fileName:"Reference.pdf",extension:"pdf"},this.documentUrl=Fe,this.documentSideView.open()}closeSlideView(){this.documentSideView.close(),this.documentUrl=null}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(Rt.t),n.Y36(Lp),n.Y36(n.sBO),n.Y36(e.H7))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["chat-bot"]],viewQuery:function(Zt,Ln){if(1&Zt&&n.Gf(jh,5),2&Zt){let So;n.iGM(So=n.CRH())&&(Ln.documentSideView=So.first)}},decls:15,vars:6,consts:[[1,"chat-bot-header"],["fxLayout","column","fxLayoutAlign","start stretch",1,"chat-bot-chat-container"],["fxFlex","",1,"messages"],[1,"message","from"],[4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"chat-bot-input-container"],["matInput","","placeholder","Type your question","fxFlex","",3,"ngModel","ngModelChange","keyup.enter"],["mat-flat-button","",1,"send-button",3,"click"],[1,"doc-side-viewer-1","doc-nav","fixed","top-0",3,"name","position"],["documentSideView",""],["fxFlex","",3,"documentUrl","documentSlideView",4,"ngIf"],[1,"message",3,"ngClass"],[1,"message-content",3,"innerHTML"],[4,"ngIf"],["hideToggle","",3,"opened","closed"],["target","_blank",3,"href"],["fxFlex","",3,"documentUrl","documentSlideView"]],template:function(Zt,Ln){1&Zt&&(n.TgZ(0,"h1",0),n._uU(1,"Zenople Support Bot"),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"p"),n._uU(6),n.qZA()(),n.YNc(7,Rd,4,6,"ng-container",4),n.qZA()(),n.TgZ(8,"div",5)(9,"textarea",6),n.NdJ("ngModelChange",function(Jo){return Ln.userMessage=Jo})("keyup.enter",function(){return Ln.sendMessage()}),n.qZA(),n.TgZ(10,"button",7),n.NdJ("click",function(){return Ln.sendMessage()}),n._uU(11,"Send"),n.qZA()(),n.TgZ(12,"fuse-sidebar",8,9),n.YNc(14,If,1,1,"zen-doc-viewer",10),n.qZA()),2&Zt&&(n.xp6(6),n.hij("Hello ",Ln.name,"! I'm your Zenople support AI assistant. How can I assist you today?"),n.xp6(1),n.Q6J("ngForOf",Ln.messages),n.xp6(2),n.Q6J("ngModel",Ln.userMessage),n.xp6(3),n.Q6J("name","chatbotViewDocument")("position","right"),n.xp6(2),n.Q6J("ngIf",Ln.documentUrl))},dependencies:[pd.ib,pd.yz,pd.yK,su.lW,fo.Hw,kf.Nt,ur.mk,ur.sg,ur.O5,us.Fj,us.JJ,us.On,wa.xw,wa.Wh,wa.yH,Qo.oO,$u.t,_s.H],styles:[".chat-bot-header{position:fixed;top:0;width:100%;background-color:#fff;z-index:1000;padding:5px;border-bottom:1px solid #ddd;font-size:15px;text-align:center}.chat-bot-chat-container{display:flex;flex-direction:column;position:absolute;top:60px;bottom:60px;width:100%;overflow-y:auto;padding:15px}.chat-bot-chat-container .message{display:flex;flex-direction:column;border-radius:40px;margin:0 5px 15px;padding:0 15px;position:relative;font-size:14px}.chat-bot-chat-container .message .message-content{margin:5px}.chat-bot-chat-container .message.to{padding:0 15px;background-color:#2095fe;color:#fff;margin-left:100px;text-align:right}.chat-bot-chat-container .message.from{background-color:#e5e4e9;color:#363636;margin-right:100px}.chat-bot-chat-container .message.to+.message.to,.chat-bot-chat-container .message.from+.message.from{margin-top:-10px}.chat-bot-chat-container mat-expansion-panel{background-color:transparent;box-shadow:none!important;padding-bottom:10px}.chat-bot-chat-container mat-expansion-panel mat-expansion-panel-header{padding:0!important}.chat-bot-chat-container mat-expansion-panel .mat-expansion-panel-body{padding:0}.chat-bot-input-container{position:fixed;bottom:0;width:100%;padding:10px;background-color:#f0f0f0;border-top:1px solid #ddd;display:flex;align-items:center}.chat-bot-input-container .send-button{margin-left:10px;background:rgb(59,59,248)!important;color:#f0f0f0!important}.doc-side-viewer-1{bottom:0;width:80vw!important;min-width:80vw!important;max-width:80vw!important}.doc-side-viewer-1 .zen-dv-bottom-row{flex:1}\n"],encapsulation:2})}return Et})();function lh(Et,Cn){1&Et&&n.GkF(0)}function zf(Et,Cn){1&Et&&n.GkF(0)}function ch(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,zf,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(20);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function Uf(Et,Cn){1&Et&&n.GkF(0)}function tp(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,Uf,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(24);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function Qu(Et,Cn){1&Et&&n.GkF(0)}function Yh(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,Qu,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(20);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function zu(Et,Cn){1&Et&&n.GkF(0)}function dh(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,zu,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(20);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function _f(Et,Cn){1&Et&&n.GkF(0)}function _h(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,_f,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(22);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function Xp(Et,Cn){1&Et&&n.GkF(0)}function Ou(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,Xp,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(22);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function _m(Et,Cn){1&Et&&n.GkF(0)}function Af(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,_m,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(26);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function ac(Et,Cn){1&Et&&n.GkF(0)}function au(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,ac,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(22);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function wu(Et,Cn){1&Et&&n.GkF(0)}function Of(Et,Cn){if(1&Et&&n._UZ(0,"zen-toolbar",13),2&Et){const Fe=n.oxw(2);n.Q6J("ngClass",!0===Fe.fuseConfig.layout.toolbar.customBackgroundColor?Fe.fuseConfig.layout.toolbar.position+" "+Fe.fuseConfig.layout.toolbar.background:Fe.fuseConfig.layout.toolbar.position)}}function Gf(Et,Cn){if(1&Et&&n._UZ(0,"toolbar",13),2&Et){const Fe=n.oxw(2);n.Q6J("ngClass",!0===Fe.fuseConfig.layout.toolbar.customBackgroundColor?Fe.fuseConfig.layout.toolbar.position+" "+Fe.fuseConfig.layout.toolbar.background:Fe.fuseConfig.layout.toolbar.position)}}function vm(Et,Cn){if(1&Et&&(n.YNc(0,Of,1,1,"zen-toolbar",12),n.YNc(1,Gf,1,1,"toolbar",12)),2&Et){const Fe=n.oxw();n.Q6J("ngIf",Fe.fuseConfig.layout.toolbar.zentoolbar&&!Fe.fuseConfig.layout.toolbar.hidden),n.xp6(1),n.Q6J("ngIf",!Fe.fuseConfig.layout.toolbar.zentoolbar&&!Fe.fuseConfig.layout.toolbar.hidden)}}function Np(Et,Cn){if(1&Et&&n._UZ(0,"footer",13),2&Et){const Fe=n.oxw(2);n.Q6J("ngClass",!0===Fe.fuseConfig.layout.footer.customBackgroundColor?Fe.fuseConfig.layout.footer.position+" "+Fe.fuseConfig.layout.footer.background:Fe.fuseConfig.layout.footer.position)}}function Yt(Et,Cn){if(1&Et&&n.YNc(0,Np,1,1,"footer",12),2&Et){const Fe=n.oxw();n.Q6J("ngIf",!Fe.fuseConfig.layout.footer.hidden)}}function Ri(Et,Cn){if(1&Et&&(n.TgZ(0,"fuse-sidebar",15),n._UZ(1,"navbar",16),n.qZA()),2&Et){const Fe=n.oxw(2);n.Q6J("folded",!Fe.isNavigationPin),n.xp6(1),n.Q6J("variant",Fe.fuseConfig.layout.navbar.variant)}}function ee(Et,Cn){if(1&Et&&n.YNc(0,Ri,2,2,"fuse-sidebar",14),2&Et){const Fe=n.oxw();n.Q6J("ngIf",!Fe.fuseConfig.layout.navbar.hidden)}}function Ze(Et,Cn){if(1&Et&&(n.TgZ(0,"fuse-sidebar",18),n._UZ(1,"navbar",19),n.qZA()),2&Et){const Fe=n.oxw(2);n.Q6J("folded",!Fe.isNavigationPin),n.xp6(1),n.Q6J("variant",Fe.fuseConfig.layout.navbar.variant)}}function Yn(Et,Cn){if(1&Et&&n.YNc(0,Ze,2,2,"fuse-sidebar",17),2&Et){const Fe=n.oxw();n.Q6J("ngIf",!Fe.fuseConfig.layout.navbar.hidden)}}const Bo=function(){return{suppressScrollX:!0,updateOnRouteChange:!0}};let $r=(()=>{class Et{constructor(Fe,Zt,Ln){this._fuseConfigService=Fe,this.us=Zt,this.ps=Ln,this.isNavigationPin=!1,this._unsubscribeAll=new Ws.x}ngOnInit(){this._fuseConfigService.config.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{this.fuseConfig=Fe}),this.ps.applicationData.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{this.navigationPin()}),this.us.onToggleNavBar.subscribe(Fe=>{this.isNavigationPin=Fe})}navigationPin(){this.us.isTokenValid()&&(this.isNavigationPin=this.us.getLocalStorage("isNavigationPin"),null==this.isNavigationPin&&(this.isNavigationPin=this.us.getTokenValueByKey("isNavigationPin"),this.isNavigationPin="false"!=this.isNavigationPin.toLowerCase(),this.us.setLocalStorage("isNavigationPin",this.isNavigationPin)))}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(an.m),n.Y36(Rt.t),n.Y36(Vi.R))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["vertical-layout-1"]],decls:27,vars:13,consts:[[4,"ngIf"],["id","main"],["id","container-1",1,"container"],["id","container-2",1,"container",3,"ngClass"],["id","container-3","fusePerfectScrollbar","",1,"container",3,"fusePerfectScrollbarOptions"],["name","quickPanel","position","right",1,"quick-panel"],["name","chatBot","position","right",1,"chat-bot","h-100-p","main-doc"],["toolbar",""],["footer",""],["leftNavbar",""],["rightNavbar",""],[4,"ngTemplateOutlet"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],["name","navbar","class","navbar-fuse-sidebar","lockedOpen","gt-md",3,"folded",4,"ngIf"],["name","navbar","lockedOpen","gt-md",1,"navbar-fuse-sidebar",3,"folded"],[1,"left-navbar",3,"variant"],["name","navbar","position","right","class","navbar-fuse-sidebar","lockedOpen","gt-md",3,"folded",4,"ngIf"],["name","navbar","position","right","lockedOpen","gt-md",1,"navbar-fuse-sidebar",3,"folded"],[1,"right-navbar",3,"variant"]],template:function(Zt,Ln){1&Zt&&(n.YNc(0,lh,1,0,"ng-container",0),n.TgZ(1,"div",1),n.YNc(2,ch,2,1,"ng-container",0),n.TgZ(3,"div",2),n.YNc(4,tp,2,1,"ng-container",0),n.TgZ(5,"div",3),n.YNc(6,Yh,2,1,"ng-container",0),n.TgZ(7,"div",4),n.YNc(8,dh,2,1,"ng-container",0),n._UZ(9,"content"),n.YNc(10,_h,2,1,"ng-container",0),n.qZA(),n.YNc(11,Ou,2,1,"ng-container",0),n.qZA(),n.YNc(12,Af,2,1,"ng-container",0),n.qZA(),n.YNc(13,au,2,1,"ng-container",0),n.qZA(),n.YNc(14,wu,1,0,"ng-container",0),n.TgZ(15,"fuse-sidebar",5),n._UZ(16,"quick-panel"),n.qZA(),n.TgZ(17,"fuse-sidebar",6),n._UZ(18,"chat-bot"),n.qZA(),n.YNc(19,vm,2,2,"ng-template",null,7,n.W1O),n.YNc(21,Yt,1,1,"ng-template",null,8,n.W1O),n.YNc(23,ee,1,1,"ng-template",null,9,n.W1O),n.YNc(25,Yn,1,1,"ng-template",null,10,n.W1O)),2&Zt&&(n.Q6J("ngIf",!Ln.fuseConfig.layout.sidepanel.hidden&&"left"===Ln.fuseConfig.layout.sidepanel.position),n.xp6(2),n.Q6J("ngIf","above"===Ln.fuseConfig.layout.toolbar.position),n.xp6(2),n.Q6J("ngIf","left"===Ln.fuseConfig.layout.navbar.position),n.xp6(1),n.Q6J("ngClass",Ln.isNavigationPin?"pinned-with-slideview":" unpinned-with-slideview"),n.xp6(1),n.Q6J("ngIf","below-fixed"===Ln.fuseConfig.layout.toolbar.position),n.xp6(1),n.Q6J("fusePerfectScrollbarOptions",n.DdM(12,Bo)),n.xp6(1),n.Q6J("ngIf","below-static"===Ln.fuseConfig.layout.toolbar.position),n.xp6(2),n.Q6J("ngIf","below-static"===Ln.fuseConfig.layout.footer.position),n.xp6(1),n.Q6J("ngIf","below-fixed"===Ln.fuseConfig.layout.footer.position),n.xp6(1),n.Q6J("ngIf","right"===Ln.fuseConfig.layout.navbar.position),n.xp6(1),n.Q6J("ngIf","above"===Ln.fuseConfig.layout.footer.position),n.xp6(1),n.Q6J("ngIf",!Ln.fuseConfig.layout.sidepanel.hidden&&"right"===Ln.fuseConfig.layout.sidepanel.position))},dependencies:[ur.mk,ur.O5,ur.tP,Qo.oO,Dr.i,_s.H,Ia,_l,bt,gr,ef,Mf,eu],styles:["vertical-layout-1{display:flex;flex:1 1 auto;width:100%;height:100%}vertical-layout-1 #main{position:relative;display:flex;flex:1 1 auto;flex-direction:column;width:100%;height:100%;z-index:1;min-width:0}vertical-layout-1 #main>.container{position:relative;display:flex;flex:1 1 0%;width:100%;min-height:0;min-width:0;max-width:100%}vertical-layout-1 #main>.container>.container{position:relative;display:flex;flex:1 1 0%;flex-direction:column;min-width:0;max-width:100%}vertical-layout-1 #main>.container>.container>.container{position:relative;display:flex;flex:1 1 0%;flex-direction:column;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;max-width:100%}vertical-layout-1 #main>.container>.container>.container content.inner-scroll{flex:1 1 0%;min-height:0}vertical-layout-1 #main>.container>.container>.container content.inner-scroll>*:not(router-outlet){flex:1 1 0%}.firefox vertical-layout-1 fuse-sidebar.quick-panel,.safari vertical-layout-1 fuse-sidebar.quick-panel{display:none}.firefox vertical-layout-1 fuse-sidebar.quick-panel.open,.safari vertical-layout-1 fuse-sidebar.quick-panel.open{display:block}.chat-bot{height:70%;top:revert;min-width:460px}.main-doc{top:0;overflow:visible}\n"],encapsulation:2})}return Et})();function ea(Et,Cn){1&Et&&n.GkF(0)}function Fa(Et,Cn){1&Et&&n.GkF(0)}function el(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,Fa,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(20);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function bl(Et,Cn){1&Et&&n.GkF(0)}function Ql(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,bl,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(20);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function Pl(Et,Cn){1&Et&&n.GkF(0)}function Zl(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,Pl,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(24);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function kc(Et,Cn){1&Et&&n.GkF(0)}function Eu(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,kc,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(20);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function Td(Et,Cn){1&Et&&n.GkF(0)}function Wd(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,Td,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(22);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function tc(Et,Cn){1&Et&&n.GkF(0)}function tf(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,tc,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(26);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function zl(Et,Cn){1&Et&&n.GkF(0)}function Uu(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,zl,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(22);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function Xc(Et,Cn){1&Et&&n.GkF(0)}function Tc(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,Xc,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(22);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function vh(Et,Cn){1&Et&&n.GkF(0)}function vp(Et,Cn){if(1&Et&&n._UZ(0,"toolbar",13),2&Et){const Fe=n.oxw(2);n.Q6J("ngClass",!0===Fe.fuseConfig.layout.toolbar.customBackgroundColor?Fe.fuseConfig.layout.toolbar.position+" "+Fe.fuseConfig.layout.toolbar.background:Fe.fuseConfig.layout.toolbar.position)}}function nf(Et,Cn){if(1&Et&&n.YNc(0,vp,1,1,"toolbar",12),2&Et){const Fe=n.oxw();n.Q6J("ngIf",!Fe.fuseConfig.layout.toolbar.hidden)}}function vf(Et,Cn){if(1&Et&&n._UZ(0,"footer",13),2&Et){const Fe=n.oxw(2);n.Q6J("ngClass",!0===Fe.fuseConfig.layout.footer.customBackgroundColor?Fe.fuseConfig.layout.footer.position+" "+Fe.fuseConfig.layout.footer.background:Fe.fuseConfig.layout.footer.position)}}function Hf(Et,Cn){if(1&Et&&n.YNc(0,vf,1,1,"footer",12),2&Et){const Fe=n.oxw();n.Q6J("ngIf",!Fe.fuseConfig.layout.footer.hidden)}}function Vf(Et,Cn){if(1&Et&&(n.TgZ(0,"fuse-sidebar",15),n._UZ(1,"navbar",16),n.qZA()),2&Et){const Fe=n.oxw(2);n.Q6J("folded",Fe.fuseConfig.layout.navbar.folded),n.xp6(1),n.Q6J("variant",Fe.fuseConfig.layout.navbar.variant)}}function Fp(Et,Cn){if(1&Et&&n.YNc(0,Vf,2,2,"fuse-sidebar",14),2&Et){const Fe=n.oxw();n.Q6J("ngIf",!Fe.fuseConfig.layout.navbar.hidden)}}function Bp(Et,Cn){if(1&Et&&(n.TgZ(0,"fuse-sidebar",18),n._UZ(1,"navbar",19),n.qZA()),2&Et){const Fe=n.oxw(2);n.Q6J("folded",Fe.fuseConfig.layout.navbar.folded),n.xp6(1),n.Q6J("variant",Fe.fuseConfig.layout.navbar.variant)}}function qp(Et,Cn){if(1&Et&&n.YNc(0,Bp,2,2,"fuse-sidebar",17),2&Et){const Fe=n.oxw();n.Q6J("ngIf",!Fe.fuseConfig.layout.navbar.hidden)}}const np=function(){return{suppressScrollX:!0,updateOnRouteChange:!0}};let rf=(()=>{class Et{constructor(Fe){this._fuseConfigService=Fe,this.navigation=xh,this._unsubscribeAll=new Ws.x}ngOnInit(){this._fuseConfigService.config.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{this.fuseConfig=Fe})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(an.m))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["vertical-layout-2"]],decls:27,vars:12,consts:[[4,"ngIf"],["id","main"],["id","container-1","fusePerfectScrollbar","",1,"container",3,"fusePerfectScrollbarOptions"],["id","container-2",1,"container"],["id","container-3",1,"container"],["name","quickPanel","position","right",1,"quick-panel"],["name","chatBot","position","right",1,"quick-panel"],["toolbar",""],["footer",""],["leftNavbar",""],["rightNavbar",""],[4,"ngTemplateOutlet"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],["name","navbar","class","navbar-fuse-sidebar","lockedOpen","gt-md",3,"folded",4,"ngIf"],["name","navbar","lockedOpen","gt-md",1,"navbar-fuse-sidebar",3,"folded"],[1,"left-navbar",3,"variant"],["name","navbar","position","right","class","navbar-fuse-sidebar","lockedOpen","gt-md",3,"folded",4,"ngIf"],["name","navbar","position","right","lockedOpen","gt-md",1,"navbar-fuse-sidebar",3,"folded"],[1,"right-navbar",3,"variant"]],template:function(Zt,Ln){1&Zt&&(n.YNc(0,ea,1,0,"ng-container",0),n.TgZ(1,"div",1),n.YNc(2,el,2,1,"ng-container",0),n.TgZ(3,"div",2),n.YNc(4,Ql,2,1,"ng-container",0),n.TgZ(5,"div",3),n.YNc(6,Zl,2,1,"ng-container",0),n.TgZ(7,"div",4),n.YNc(8,Eu,2,1,"ng-container",0),n._UZ(9,"content"),n.YNc(10,Wd,2,1,"ng-container",0),n.qZA(),n.YNc(11,tf,2,1,"ng-container",0),n.qZA(),n.YNc(12,Uu,2,1,"ng-container",0),n.qZA(),n.YNc(13,Tc,2,1,"ng-container",0),n.qZA(),n.YNc(14,vh,1,0,"ng-container",0),n.TgZ(15,"fuse-sidebar",5),n._UZ(16,"quick-panel"),n.qZA(),n.TgZ(17,"fuse-sidebar",6),n._UZ(18,"chat-bot"),n.qZA(),n.YNc(19,nf,1,1,"ng-template",null,7,n.W1O),n.YNc(21,Hf,1,1,"ng-template",null,8,n.W1O),n.YNc(23,Fp,1,1,"ng-template",null,9,n.W1O),n.YNc(25,qp,1,1,"ng-template",null,10,n.W1O)),2&Zt&&(n.Q6J("ngIf",!Ln.fuseConfig.layout.sidepanel.hidden&&"left"===Ln.fuseConfig.layout.sidepanel.position),n.xp6(2),n.Q6J("ngIf","above-fixed"===Ln.fuseConfig.layout.toolbar.position),n.xp6(1),n.Q6J("fusePerfectScrollbarOptions",n.DdM(11,np)),n.xp6(1),n.Q6J("ngIf","above-static"===Ln.fuseConfig.layout.toolbar.position),n.xp6(2),n.Q6J("ngIf","left"===Ln.fuseConfig.layout.navbar.position),n.xp6(2),n.Q6J("ngIf","below"===Ln.fuseConfig.layout.toolbar.position),n.xp6(2),n.Q6J("ngIf","below"===Ln.fuseConfig.layout.footer.position),n.xp6(1),n.Q6J("ngIf","right"===Ln.fuseConfig.layout.navbar.position),n.xp6(1),n.Q6J("ngIf","above-static"===Ln.fuseConfig.layout.footer.position),n.xp6(1),n.Q6J("ngIf","above-fixed"===Ln.fuseConfig.layout.footer.position),n.xp6(1),n.Q6J("ngIf",!Ln.fuseConfig.layout.sidepanel.hidden&&"right"===Ln.fuseConfig.layout.sidepanel.position))},dependencies:[ur.mk,ur.O5,ur.tP,Qo.oO,Dr.i,_s.H,Ia,_l,bt,gr,ef,eu],styles:["vertical-layout-2{display:flex;flex:1 1 auto;width:100%;height:100%}vertical-layout-2 #main{position:relative;display:flex;flex:1 1 auto;flex-direction:column;width:100%;height:100%;z-index:1;min-width:0}vertical-layout-2 #main>.container{position:relative;display:flex;flex:1 1 auto;flex-direction:column;width:100%;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}vertical-layout-2 #main>.container>.container{position:relative;display:flex;flex:1 0 auto;width:100%}vertical-layout-2 #main>.container>.container>.container{position:relative;display:flex;flex:1 1 auto;flex-direction:column;min-width:0}\n"],encapsulation:2})}return Et})();function yf(Et,Cn){1&Et&&n.GkF(0)}function bf(Et,Cn){1&Et&&n.GkF(0)}function v_(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,bf,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(17);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function Ah(Et,Cn){1&Et&&n.GkF(0)}function yp(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,Ah,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(17);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function Ag(Et,Cn){1&Et&&n.GkF(0)}function cg(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,Ag,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(21);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function Jg(Et,Cn){1&Et&&n.GkF(0)}function ip(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,Jg,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(23);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function em(Et,Cn){1&Et&&n.GkF(0)}function zp(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,em,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(19);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function Km(Et,Cn){1&Et&&n.GkF(0)}function Jm(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,Km,1,0,"ng-container",11),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(19);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function tm(Et,Cn){1&Et&&n.GkF(0)}function Oc(Et,Cn){if(1&Et&&n._UZ(0,"toolbar",4),2&Et){const Fe=n.oxw(2);n.Q6J("ngClass",!0===Fe.fuseConfig.layout.toolbar.customBackgroundColor?Fe.fuseConfig.layout.toolbar.position+" "+Fe.fuseConfig.layout.toolbar.background:Fe.fuseConfig.layout.toolbar.position)}}function ym(Et,Cn){if(1&Et&&n.YNc(0,Oc,1,1,"toolbar",12),2&Et){const Fe=n.oxw();n.Q6J("ngIf",!Fe.fuseConfig.layout.toolbar.hidden)}}function bp(Et,Cn){if(1&Et&&n._UZ(0,"footer",4),2&Et){const Fe=n.oxw(2);n.Q6J("ngClass",!0===Fe.fuseConfig.layout.footer.customBackgroundColor?Fe.fuseConfig.layout.footer.position+" "+Fe.fuseConfig.layout.footer.background:Fe.fuseConfig.layout.footer.position)}}function Og(Et,Cn){if(1&Et&&n.YNc(0,bp,1,1,"footer",12),2&Et){const Fe=n.oxw();n.Q6J("ngIf",!Fe.fuseConfig.layout.footer.hidden)}}function dg(Et,Cn){if(1&Et&&(n.TgZ(0,"fuse-sidebar",14),n._UZ(1,"navbar",15),n.qZA()),2&Et){const Fe=n.oxw(2);n.Q6J("folded",Fe.fuseConfig.layout.navbar.folded),n.xp6(1),n.Q6J("variant",Fe.fuseConfig.layout.navbar.variant)}}function y_(Et,Cn){if(1&Et&&n.YNc(0,dg,2,2,"fuse-sidebar",13),2&Et){const Fe=n.oxw();n.Q6J("ngIf",!Fe.fuseConfig.layout.navbar.hidden)}}function Am(Et,Cn){if(1&Et&&(n.TgZ(0,"fuse-sidebar",17),n._UZ(1,"navbar",18),n.qZA()),2&Et){const Fe=n.oxw(2);n.Q6J("folded",Fe.fuseConfig.layout.navbar.folded),n.xp6(1),n.Q6J("variant",Fe.fuseConfig.layout.navbar.variant)}}function b_(Et,Cn){if(1&Et&&n.YNc(0,Am,2,2,"fuse-sidebar",16),2&Et){const Fe=n.oxw();n.Q6J("ngIf",!Fe.fuseConfig.layout.navbar.hidden)}}const mu=function(){return{suppressScrollX:!0,updateOnRouteChange:!0}},Pf=function(Et,Cn){return{"ml-32":Et,"mr-32":Cn}};let Up=(()=>{class Et{constructor(Fe){this._fuseConfigService=Fe,this.navigation=xh,this._unsubscribeAll=new Ws.x}ngOnInit(){this._fuseConfigService.config.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{this.fuseConfig=Fe})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(an.m))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["vertical-layout-3"]],decls:24,vars:14,consts:[[4,"ngIf"],["id","main"],["id","container-1","fusePerfectScrollbar","",1,"container",3,"fusePerfectScrollbarOptions"],["id","container-2",1,"container"],[3,"ngClass"],["name","quickPanel","position","right",1,"quick-panel"],["name","chatBot","position","right",1,"quick-panel"],["toolbar",""],["footer",""],["leftNavbar",""],["rightNavbar",""],[4,"ngTemplateOutlet"],[3,"ngClass",4,"ngIf"],["name","navbar","class","navbar-fuse-sidebar","lockedOpen","gt-md",3,"folded",4,"ngIf"],["name","navbar","lockedOpen","gt-md",1,"navbar-fuse-sidebar",3,"folded"],[1,"left-navbar",3,"variant"],["name","navbar","position","right","class","navbar-fuse-sidebar","lockedOpen","gt-md",3,"folded",4,"ngIf"],["name","navbar","position","right","lockedOpen","gt-md",1,"navbar-fuse-sidebar",3,"folded"],[1,"right-navbar",3,"variant"]],template:function(Zt,Ln){1&Zt&&(n.YNc(0,yf,1,0,"ng-container",0),n.TgZ(1,"div",1),n.YNc(2,v_,2,1,"ng-container",0),n.TgZ(3,"div",2),n.YNc(4,yp,2,1,"ng-container",0),n.TgZ(5,"div",3),n.YNc(6,cg,2,1,"ng-container",0),n._UZ(7,"content",4),n.YNc(8,ip,2,1,"ng-container",0),n.qZA(),n.YNc(9,zp,2,1,"ng-container",0),n.qZA(),n.YNc(10,Jm,2,1,"ng-container",0),n.qZA(),n.YNc(11,tm,1,0,"ng-container",0),n.TgZ(12,"fuse-sidebar",5),n._UZ(13,"quick-panel"),n.qZA(),n.TgZ(14,"fuse-sidebar",6),n._UZ(15,"chat-bot"),n.qZA(),n.YNc(16,ym,1,1,"ng-template",null,7,n.W1O),n.YNc(18,Og,1,1,"ng-template",null,8,n.W1O),n.YNc(20,y_,1,1,"ng-template",null,9,n.W1O),n.YNc(22,b_,1,1,"ng-template",null,10,n.W1O)),2&Zt&&(n.Q6J("ngIf",!Ln.fuseConfig.layout.sidepanel.hidden&&"left"===Ln.fuseConfig.layout.sidepanel.position),n.xp6(2),n.Q6J("ngIf","above-fixed"===Ln.fuseConfig.layout.toolbar.position),n.xp6(1),n.Q6J("fusePerfectScrollbarOptions",n.DdM(10,mu)),n.xp6(1),n.Q6J("ngIf","above-static"===Ln.fuseConfig.layout.toolbar.position),n.xp6(2),n.Q6J("ngIf","left"===Ln.fuseConfig.layout.navbar.position),n.xp6(1),n.Q6J("ngClass",n.WLB(11,Pf,"left"===Ln.fuseConfig.layout.navbar.position,"right"===Ln.fuseConfig.layout.navbar.position)),n.xp6(1),n.Q6J("ngIf","right"===Ln.fuseConfig.layout.navbar.position),n.xp6(1),n.Q6J("ngIf","above-static"===Ln.fuseConfig.layout.footer.position),n.xp6(1),n.Q6J("ngIf","above-fixed"===Ln.fuseConfig.layout.footer.position),n.xp6(1),n.Q6J("ngIf",!Ln.fuseConfig.layout.sidepanel.hidden&&"right"===Ln.fuseConfig.layout.sidepanel.position))},dependencies:[ur.mk,ur.O5,ur.tP,Qo.oO,Dr.i,_s.H,Ia,_l,bt,gr,ef,eu],styles:["vertical-layout-3{display:flex;flex:1 1 auto;width:100%;height:100%}vertical-layout-3 #main{position:relative;display:flex;flex:1 1 auto;flex-direction:column;width:100%;height:100%;z-index:1;min-width:0}vertical-layout-3 #main>.container{position:relative;display:flex;flex:1 1 auto;flex-direction:column;width:100%;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}vertical-layout-3 #main>.container>.container{position:relative;display:flex;flex:1 0 auto;width:100%;min-width:0;padding:32px}vertical-layout-3 #main>.container>.container>content{flex:1 1 auto;min-width:0;box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f}\n"],encapsulation:2})}return Et})();function C_(Et,Cn){1&Et&&n.GkF(0)}function Wf(Et,Cn){1&Et&&n.GkF(0)}function nm(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,Wf,1,0,"ng-container",2),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(20);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function $g(Et,Cn){1&Et&&n.GkF(0)}function Om(Et,Cn){1&Et&&n.GkF(0)}function ug(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,Om,1,0,"ng-container",2),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(20);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function $m(Et,Cn){1&Et&&n.GkF(0)}function hg(Et,Cn){1&Et&&n.GkF(0)}function fg(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,hg,1,0,"ng-container",2),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(22);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function pg(Et,Cn){1&Et&&n.GkF(0)}function op(Et,Cn){if(1&Et&&(n.ynx(0),n.YNc(1,pg,1,0,"ng-container",2),n.BQk()),2&Et){n.oxw();const Fe=n.MAs(22);n.xp6(1),n.Q6J("ngTemplateOutlet",Fe)}}function rp(Et,Cn){1&Et&&n.GkF(0)}function Zh(Et,Cn){if(1&Et&&n._UZ(0,"toolbar",13),2&Et){const Fe=n.oxw(2);n.Q6J("ngClass",!0===Fe.fuseConfig.layout.toolbar.customBackgroundColor?Fe.fuseConfig.layout.toolbar.position+" "+Fe.fuseConfig.layout.toolbar.background:Fe.fuseConfig.layout.toolbar.position)}}function qc(Et,Cn){if(1&Et&&n.YNc(0,Zh,1,1,"toolbar",12),2&Et){const Fe=n.oxw();n.Q6J("ngIf",!Fe.fuseConfig.layout.toolbar.hidden)}}function Qm(Et,Cn){if(1&Et&&n._UZ(0,"footer",13),2&Et){const Fe=n.oxw(2);n.Q6J("ngClass",!0===Fe.fuseConfig.layout.footer.customBackgroundColor?Fe.fuseConfig.layout.footer.position+" "+Fe.fuseConfig.layout.footer.background:Fe.fuseConfig.layout.footer.position)}}function Pm(Et,Cn){if(1&Et&&n.YNc(0,Qm,1,1,"footer",12),2&Et){const Fe=n.oxw();n.Q6J("ngIf",!Fe.fuseConfig.layout.footer.hidden)}}function Xm(Et,Cn){1&Et&&n._UZ(0,"navbar",15)}function mg(Et,Cn){if(1&Et&&n.YNc(0,Xm,1,0,"navbar",14),2&Et){const Fe=n.oxw();n.Q6J("ngIf",!Fe.fuseConfig.layout.navbar.hidden)}}function im(Et,Cn){if(1&Et&&(n.TgZ(0,"fuse-sidebar",17),n._UZ(1,"navbar",18),n.qZA()),2&Et){const Fe=n.oxw(2);n.Q6J("folded",Fe.fuseConfig.layout.navbar.folded),n.xp6(1),n.Q6J("variant",Fe.fuseConfig.layout.navbar.variant)}}function yh(Et,Cn){if(1&Et&&n.YNc(0,im,2,2,"fuse-sidebar",16),2&Et){const Fe=n.oxw();n.Q6J("ngIf",!Fe.fuseConfig.layout.navbar.hidden)}}const bm=function(){return{suppressScrollX:!0,updateOnRouteChange:!0}};let Qg=(()=>{class Et{constructor(Fe){this._fuseConfigService=Fe,this.navigation=xh,this._unsubscribeAll=new Ws.x}ngOnInit(){this._fuseConfigService.config.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(Fe=>{this.fuseConfig=Fe})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.Y36(an.m))};static#t=this.\u0275cmp=n.Xpm({type:Et,selectors:[["horizontal-layout-1"]],decls:27,vars:10,consts:[[4,"ngIf"],["id","main"],[4,"ngTemplateOutlet"],["id","container-1",1,"container"],["id","container-2",1,"container"],["id","container-3","fusePerfectScrollbar","",1,"container",3,"fusePerfectScrollbarOptions"],["name","quickPanel","position","right",1,"quick-panel"],["name","chatBot","position","right",1,"quick-panel"],["toolbar",""],["footer",""],["topNavbar",""],["leftNavbar",""],[3,"ngClass",4,"ngIf"],[3,"ngClass"],["variant","horizontal-style-1","class","top-navbar","fxHide","","fxShow.gt-md","",4,"ngIf"],["variant","horizontal-style-1","fxHide","","fxShow.gt-md","",1,"top-navbar"],["name","navbar","class","navbar-fuse-sidebar",3,"folded",4,"ngIf"],["name","navbar",1,"navbar-fuse-sidebar",3,"folded"],[1,"left-navbar",3,"variant"]],template:function(Zt,Ln){if(1&Zt&&(n.YNc(0,C_,1,0,"ng-container",0),n.TgZ(1,"div",1),n.YNc(2,nm,2,1,"ng-container",0),n.ynx(3),n.YNc(4,$g,1,0,"ng-container",2),n.BQk(),n.YNc(5,ug,2,1,"ng-container",0),n.TgZ(6,"div",3),n.ynx(7),n.YNc(8,$m,1,0,"ng-container",2),n.BQk(),n.TgZ(9,"div",4)(10,"div",5),n._UZ(11,"content"),n.YNc(12,fg,2,1,"ng-container",0),n.qZA()()(),n.YNc(13,op,2,1,"ng-container",0),n.qZA(),n.YNc(14,rp,1,0,"ng-container",0),n.TgZ(15,"fuse-sidebar",6),n._UZ(16,"quick-panel"),n.qZA(),n.TgZ(17,"fuse-sidebar",7),n._UZ(18,"chat-bot"),n.qZA(),n.YNc(19,qc,1,1,"ng-template",null,8,n.W1O),n.YNc(21,Pm,1,1,"ng-template",null,9,n.W1O),n.YNc(23,mg,1,1,"ng-template",null,10,n.W1O),n.YNc(25,yh,1,1,"ng-template",null,11,n.W1O)),2&Zt){const So=n.MAs(24),Jo=n.MAs(26);n.Q6J("ngIf",!Ln.fuseConfig.layout.sidepanel.hidden&&"left"===Ln.fuseConfig.layout.sidepanel.position),n.xp6(2),n.Q6J("ngIf","above"===Ln.fuseConfig.layout.toolbar.position),n.xp6(2),n.Q6J("ngTemplateOutlet",So),n.xp6(1),n.Q6J("ngIf","below"===Ln.fuseConfig.layout.toolbar.position),n.xp6(3),n.Q6J("ngTemplateOutlet",Jo),n.xp6(2),n.Q6J("fusePerfectScrollbarOptions",n.DdM(9,bm)),n.xp6(2),n.Q6J("ngIf","above-static"===Ln.fuseConfig.layout.footer.position),n.xp6(1),n.Q6J("ngIf","above-fixed"===Ln.fuseConfig.layout.footer.position),n.xp6(1),n.Q6J("ngIf",!Ln.fuseConfig.layout.sidepanel.hidden&&"right"===Ln.fuseConfig.layout.sidepanel.position)}},dependencies:[ur.mk,ur.O5,ur.tP,Qo.b8,Qo.oO,Dr.i,_s.H,Ia,_l,bt,gr,ef,eu],styles:["horizontal-layout-1{display:flex;flex:1 1 auto;width:100%;height:100%}horizontal-layout-1 #main{position:relative;display:flex;flex:1 1 auto;flex-direction:column;width:100%;height:100%;z-index:1;min-width:0}horizontal-layout-1 #main>.container{position:relative;display:flex;flex:1 1 0%;width:100%;min-height:0;min-width:0}horizontal-layout-1 #main>.container>.container{position:relative;display:flex;flex:1 1 0%;flex-direction:column;min-width:0}horizontal-layout-1 #main>.container>.container>.container{position:relative;display:flex;flex:1 1 0%;flex-direction:column;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}horizontal-layout-1 #main>.container>.container>.container content.inner-scroll{flex:1 1 0%;min-height:0}horizontal-layout-1 #main>.container>.container>.container content.inner-scroll>*:not(router-outlet){flex:1 1 0%}\n"],encapsulation:2})}return Et})();function Pg(Et,Cn){1&Et&&(n.ynx(0),n._UZ(1,"vertical-layout-1"),n.BQk())}function Cf(Et,Cn){1&Et&&(n.ynx(0),n._UZ(1,"vertical-layout-2"),n.BQk())}function rd(Et,Cn){1&Et&&(n.ynx(0),n._UZ(1,"vertical-layout-3"),n.BQk())}function Cm(Et,Cn){1&Et&&(n.ynx(0),n._UZ(1,"horizontal-layout-1"),n.BQk())}class xm{constructor(Cn,Fe,Zt,Ln,So,Jo,Hr,Es,Vs,Ra,Ha,Al,kl,gl,wl,Pc,Rl,jc,Md){this.document=Cn,this.renderer=Fe,this._fuseConfigService=Zt,this._fuseNavigationService=Ln,this._fuseSidebarService=So,this._fuseSplashScreenService=Jo,this._fuseTranslationLoaderService=Hr,this._translateService=Es,this._platform=Vs,this._utilityService=Ra,this.cdr=Ha,this.ps=Al,this.cics=kl,this.location=gl,this.route=wl,this._breakpointObserver=Pc,this.dds=Rl,this.geo=jc,this.push=Md,this.mediaBreakpoint=[],this._unsubscribeAll=new Ws.x,this._fuseNavigationService.register("main",this.navigation),this._fuseNavigationService.setCurrentNavigation("main"),this._translateService.addLangs(["en","tr"]),this._translateService.setDefaultLang("en"),this._fuseTranslationLoaderService.loadTranslations(to,Ro),this._translateService.use("en"),this._platform.IOS?this.document.body.classList.add("ios"):this._platform.ANDROID&&this.document.body.classList.add("android"),this.cics.init(),this._breakpointObserver.observe([Sr.u3.Tablet,Sr.u3.TabletLandscape,Sr.u3.TabletPortrait,Sr.u3.Handset,Sr.u3.HandsetLandscape,Sr.u3.HandsetPortrait]).subscribe(Sc=>{this.mediaBreakpoint.forEach(fh=>{this.renderer.removeClass(Cn.body,fh)}),Sc.matches?Sc.breakpoints["(max-width: 599.98px) and (orientation: portrait)"]?this.mediaBreakpoint=["mobile-portrait","mobile","portrait"]:Sc.breakpoints["(max-width: 959.98px) and (orientation: landscape)"]?this.mediaBreakpoint=["mobile-landscape","mobile","landscape"]:Sc.breakpoints["(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)"]?this.mediaBreakpoint=["tablet-portrait","tablet","portrait"]:Sc.breakpoints["(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)"]&&(this.mediaBreakpoint=["tablet-landscape","tablet","landscape"]):this.mediaBreakpoint=["desktop"],this._utilityService.mediaBreakpoint.next(this.mediaBreakpoint),this.mediaBreakpoint.forEach(fh=>{this.document.body.classList.add(fh)})}),Be.XL.settings&&(Be.XL.settings.GTMContainerId&&this.setGTMScript(),Be.XL.settings.firebaseConfig&&this.push.init(Be.XL.settings.firebaseConfig)),this.ps.trackGeolocation()}ngOnInit(){const Fe=(localStorage.getItem("ZNPL")?JSON.parse(this._utilityService.decrypt(localStorage.getItem("ZNPL"))):{}).token,Zt=sessionStorage.getItem("sessionInfo");if(Fe&&!Zt){const So=this._utilityService.jwtHelper.decodeToken(Fe);sessionStorage.setItem("sessionInfo",JSON.stringify({personId:So.personId,tenant:So.tenant}))}this._utilityService.getTokenValueByKey("navigationStyle"),this.location.subscribe(So=>{const Jo=So.url.split("/");Jo[0]||Jo.shift(),Jo.join("/")}),this.route.events.pipe((0,cs.h)(So=>So instanceof Ht.R9),function vo(){return(0,Ps.e)((Et,Cn)=>{let Fe,Zt=!1;Et.subscribe((0,Qi.x)(Cn,Ln=>{const So=Fe;Fe=Ln,Zt&&Cn.next([So,Ln]),Zt=!0}))})}()).pipe((0,pi.R)(this._unsubscribeAll)).subscribe(So=>{sessionStorage.setItem("previousUrl",So[0].urlAfterRedirects)}),this._fuseConfigService.config.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(So=>{this.fuseConfig=So,this.cdr.detectChanges(),"boxed"===this.fuseConfig.layout.width?this.document.body.classList.add("boxed"):this.document.body.classList.remove("boxed");for(let Jo=0;Jo<this.document.body.classList.length;Jo++){const Hr=this.document.body.classList[Jo];Hr.startsWith("theme-")&&this.document.body.classList.remove(Hr)}this.currentTheme=this._utilityService.getLocalStorage("default-theme-mode")||this.fuseConfig.colorTheme,this.document.body.classList.add(this.currentTheme)}),this.ps.applicationData.pipe((0,pi.R)(this._unsubscribeAll)).subscribe(So=>{if(So?.hasOwnProperty("theme")){for(let Jo=0;Jo<this.document.body.classList.length;Jo++){const Hr=this.document.body.classList[Jo];Hr.startsWith("theme-")&&this.document.body.classList.remove(Hr)}this.currentTheme=this._utilityService.getLocalStorage("default-theme-mode"),this.document.body.classList.add(this.currentTheme)}}),this.renderer.addClass(document.body,this._utilityService.deviceService.browser.toLowerCase()),setTimeout(()=>{this.darkModeInit()})}findExternalNav(Cn,Fe){let Zt="";const Ln=Cn.find(So=>Fe.includes(So.url));if(Ln)Zt=Ln;else if(Cn&&Cn instanceof Array)for(const So of Cn)if(So&&So.hasOwnProperty("children")){if(Zt=this.findExternalNav(So.children,Fe),Zt)break}else Zt=null;else Zt=null;return Zt}darkModeInit(){"theme-dark"==localStorage.getItem("default-theme-mode")?(this.renderer.addClass(document.body,"theme-dark"),this.renderer.removeClass(document.body,"theme-default")):(this._utilityService.setLocalStorage("default-theme-mode","theme-default"),this.renderer.removeClass(document.body,"theme-dark"),this.renderer.addClass(document.body,"theme-default"))}setGTMScript(){const Cn=this.document.createElement("script");Cn.type="text/javascript",Cn.setAttribute("id","google_script"),Cn.innerHTML="(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','"+Be.XL.settings.GTMContainerId+"');";const Fe=this.document.createElement("noscript");Fe.setAttribute("id","google_no_script"),Fe.innerHtml='<iframe src="https://www.googletagmanager.com/ns.html?id='+Be.XL.settings.GTMContainerId+'" height="0" width="0" style="display: none; visibility: hidden"></iframe>',document.getElementsByTagName("head")[0].appendChild(Cn),document.getElementsByTagName("body")[0].appendChild(Fe)}toggleSidebarOpen(Cn){this._fuseSidebarService.getSidebar(Cn).toggleOpen()}ngOnDestroy(){this.renderer.removeClass(document.body,this._utilityService.deviceService.browser.toLowerCase()),this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Fe){return new(Fe||xm)(n.Y36(ur.K0),n.Y36(n.Qsj),n.Y36(an.m),n.Y36(Nt.J),n.Y36(zi.h),n.Y36(Os),n.Y36(Ys),n.Y36(Ve.sK),n.Y36(la.t4),n.Y36(Rt.t),n.Y36(n.sBO),n.Y36(Vi.R),n.Y36(cr),n.Y36(ur.Ye),n.Y36(Ht.F0),n.Y36(Sr.Yg),n.Y36(Pt.x0),n.Y36(Da._),n.Y36(Ka._))};static#t=this.\u0275cmp=n.Xpm({type:xm,selectors:[["app"]],decls:6,vars:6,consts:[[3,"delayStart","delayStop"],[4,"ngIf"]],template:function(Fe,Zt){1&Fe&&(n._UZ(0,"block-ui",0)(1,"fuse-progress-bar"),n.YNc(2,Pg,2,0,"ng-container",1),n.YNc(3,Cf,2,0,"ng-container",1),n.YNc(4,rd,2,0,"ng-container",1),n.YNc(5,Cm,2,0,"ng-container",1)),2&Fe&&(n.Q6J("delayStart",0)("delayStop",500),n.xp6(2),n.Q6J("ngIf","vertical-layout-1"===Zt.fuseConfig.layout.style),n.xp6(1),n.Q6J("ngIf","vertical-layout-2"===Zt.fuseConfig.layout.style),n.xp6(1),n.Q6J("ngIf","vertical-layout-3"===Zt.fuseConfig.layout.style),n.xp6(1),n.Q6J("ngIf","horizontal-layout-1"===Zt.fuseConfig.layout.style))},dependencies:[ur.O5,To,$r,rf,Up,Qg,Fr.G8],styles:["[_nghost-%COMP%]{position:relative;display:flex;flex:1 1 auto;width:100%;height:100%;min-width:0}[_nghost-%COMP%]   .theme-options-button[_ngcontent-%COMP%]{position:absolute;top:160px;right:0;width:48px;height:48px;line-height:48px;text-align:center;cursor:pointer;border-radius:0;margin:0;pointer-events:auto;opacity:.9;z-index:998}@media screen and (min-width: 1280px){[_nghost-%COMP%]   .theme-options-button.right-side-panel[_ngcontent-%COMP%]{right:70px}}[_nghost-%COMP%]   .theme-options-button.side-panel-hidden[_ngcontent-%COMP%]{right:0!important}[_nghost-%COMP%]   .theme-options-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{animation:rotating 3s linear infinite}[_nghost-%COMP%]   .theme-options-button[_ngcontent-%COMP%]:hover{opacity:1}[_nghost-%COMP%]   .theme-options-sidebar[_ngcontent-%COMP%]{width:360px;min-width:360px;max-width:360px}"]})}(0,_a.gn)([(0,Fr.bH)("appBlockUI")],xm.prototype,"appBlockUI",void 0);const Sm={colorTheme:"theme-default",customScrollbars:!0,layout:{style:"vertical-layout-1",width:"fullwidth",navbar:{primaryBackground:"fuse-navy-700",secondaryBackground:"fuse-navy-900",folded:!1,hidden:!1,position:"left",variant:"vertical-style-1"},toolbar:{customBackgroundColor:!1,background:"fuse-white-500",hidden:!1,position:"below-static"},footer:{customBackgroundColor:!0,background:"fuse-navy-900",hidden:!1,position:"below-fixed"},sidepanel:{hidden:!1,position:"right"}}};var Cp=i(40019);let xp=(()=>{class Et{static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({imports:[Ht.Bz,Je.L]})}return Et})(),om=(()=>{class Et{static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({providers:[ur.uU],imports:[Ht.Bz,ts.yu,fo.Ps,ar.g0,Je.L]})}return Et})(),Xg=(()=>{class Et{static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({imports:[ts.yu,fo.Ps,Je.L,ft.PU]})}return Et})(),sf=(()=>{class Et{static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({imports:[ts.yu,fo.Ps,rc.AA,Je.L,ft.PU]})}return Et})(),jf=(()=>{class Et{static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({imports:[ts.yu,fo.Ps,Je.L,ft.PU]})}return Et})();var sp=i(29025);let Rf=(()=>{class Et{static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({imports:[Je.L,ts.yu,sp.IF,fo.Ps,st.gR,rc.AA,Xg,sf,jf]})}return Et})();var Rm=i(45837);let ap=(()=>{class Et{static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({imports:[Je.L,fo.Ps,ts.yu,Iu.jT,Eh.g,st.gR]})}return Et})();var rm=i(12430),Gp=i(21819),jd=i(49488),xf=i(73176),lp=i(81426);let Kh=(()=>{class Et{static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({imports:[ur.ez,us.u5,us.UX,ar.g0,fo.Ps,Ta.uw,ts.yu,jd.vV,Tn.x4,pd.To,Je.L,xf.N6,rc.AA,Gp.D8,rm.L,lp.H,Ve.aw]})}return Et})();var Tu=i(85947),Sf=i(93197),Lf=i(46493);let Sp=(()=>{class Et{static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({providers:[pf.N,pe.j,Nc.o,wh.o,Sf.xA,{provide:_d.hV,useValue:{}}],imports:[ur.ez,Ht.Bz,Tu.o9,Eh.g,ts.yu,be.t,zs.wp,fo.Ps,Tn.x4,Iu.jT,st.gR,rc.AA,Ve.aw,Lf.U,ft.ef]})}return Et})();var Lm=i(50888);let wp=(()=>{class Et{static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({imports:[Je.L,fo.Ps,ts.yu,Tn.x4]})}return Et})();var Nm=i(65563),wm=i(83991),cp=i(45754),sm=i(20075),qg=i(45463),e_=i(13868),Rg=i(53790);let Lg=(()=>{class Et{static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({imports:[Je.L,Tn.x4,rm.L,ar.g0,fo.Ps,ts.yu,zs.wp,Ve.aw,cp.Zh,sm.M,qg.zt,e_.g,Rg.u]})}return Et})(),am=(()=>{class Et{static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({imports:[Ht.Bz,Je.L,fo.Ps,Iu.jT,ar.g0,rc.AA,Sp,_d.yj,ts.yu,Th.yD,Ve.aw,Kh,Lm.C,wp,Nm.Q,wm.D,ft.ef,ap,Rm.R,Eh.g,Lg]})}return Et})();var Gu=i(79172),Hu=i(51838);let dp=(()=>{class Et{static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({imports:[be.t,st.gR,Hu.Wd,ei.Xo,Ve.aw,Je.L]})}return Et})();var Ng=i(75986),up=i(23680),xc=i(64170),Fm=i(59038),Pu=i(77988),Yd=i(74104),gg=i(92596),Yf=i(39523),Hp=i(58869);let Vp=(()=>{class Et{static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({providers:[Lp,(0,o.h_)((0,o.yn)())],imports:[pd.To,su.ot,xc.lN,fo.Ps,kf.c,Yd.Nh,gg.AV,up.si,Fm.ie,Je.L,Pu.Tx,Ng.p9,ar.g0,Yf.O,Hp.e]})}return Et})(),Em=(()=>{class Et{static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({imports:[Ht.Bz,Je.L,ft.ef,xp,om,Rf,dp,am,Gu.o,fs.I,Vp]})}return Et})(),_g=(()=>{class Et{static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({imports:[Ht.Bz,Je.L,ft.ef,xp,om,Rf,dp,am,Vp]})}return Et})(),Fg=(()=>{class Et{static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({imports:[Ht.Bz,Je.L,ft.ef,xp,om,Rf,dp,am,Vp]})}return Et})();var Wp=i(32651);let lm=(()=>{class Et{static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({imports:[Wp.SJ,Je.L,ft.ef,ft.kZ,xp,om,Rf,dp,am,Vp]})}return Et})(),nc=(()=>{class Et{static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({imports:[Em,_g,Fg,lm,Em,_g,Fg,lm]})}return Et})();var qm=i(45895);let Nf=(()=>{class Et{constructor(Fe,Zt){this.injector=Fe,this.snackBar=Zt}handleError(Fe){try{if(this.injector.get(Ht.F0),Fe.toString().includes("ExpressionChangedAfterItHasBeenCheckedError"))return console.log("#ExpressionChangedAfterItHasBeenCheckedError# has been logged from GlobalErrorHandler.");/Loading chunk [\d]+ failed/.test(Fe.message)?(console.warn("App is reloading due to missing chunk...."),window.location.reload()):Fe.constructor===Object?Object.keys(Fe).length?console.error(Fe):console.error("Error occured, but no error message found"):console.error(Fe)}catch(Zt){console.error(Zt)}}showError(Fe){this.callSnackBar(Fe.error.error,5e3)}callSnackBar(Fe,Zt,Ln){this.snackBar.open(Fe,"Ok",{duration:Zt||5e3,horizontalPosition:"center"})}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.LFG(n.zs3),n.LFG(qm.pl))};static#t=this.\u0275prov=n.Yz7({token:Et,factory:Et.\u0275fac})}return Et})();i(57271);var Ru=i(51233),Bm=i(41349),Zf=i(10509);let x_=(()=>{class Et{constructor(Fe,Zt){this._router=Fe,this.utilityService=Zt,this.isNavigationAuthenticated=!1,this.jwtHelper=new At.N0,this._unsubscribeAll=new Ws.x}canActivate(Fe,Zt){const Ln=this.utilityService.getLocalStorage("token"),So=this.utilityService.getLocalStorage("twofactorAuthToken");return!Ln&&(!(!So||!this.jwtHelper.decodeToken(So).twoFactorEnabled)||void 0)}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.LFG(Ht.F0),n.LFG(Rt.t))};static#t=this.\u0275prov=n.Yz7({token:Et,factory:Et.\u0275fac,providedIn:"root"})}return Et})(),Bd=(()=>{class Et{constructor(Fe,Zt){this.ps=Fe,this.router=Zt}canActivate(Fe,Zt){const Ln=this.ps.applicationNavigation.getValue();return!Ln||(!!Ln.filter(Jo=>null!=Jo.children.find(Hr=>{const Es=Hr.url.toString().startsWith("/")?Hr.url:"/"+Hr.url.toString();return"item"==Hr.type&&Es==Zt.url}))?.length||(window.history.pushState({},"",this.router.url),!1))}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.LFG(Vi.R),n.LFG(Ht.F0))};static#t=this.\u0275prov=n.Yz7({token:Et,factory:Et.\u0275fac})}return Et})();const Ep=[{path:"blank",loadChildren:()=>i.e(2362).then(i.bind(i,92362)).then(Et=>Et.BlankModule)},{path:"login/:orgCode",loadChildren:()=>Promise.all([i.e(3729),i.e(7985)]).then(i.bind(i,7985)).then(Et=>Et.LoginModule)},{path:"apply/:orgCode",loadChildren:()=>Promise.all([i.e(3729),i.e(4461)]).then(i.bind(i,74461)).then(Et=>Et.ApplicantPrescreeningModule)},{path:"register/:orgCode",loadChildren:()=>Promise.all([i.e(3729),i.e(4501)]).then(i.bind(i,64501)).then(Et=>Et.ApplicantRegisterModule)},{path:"browser-not-supported",loadChildren:()=>i.e(8532).then(i.bind(i,38532)).then(Et=>Et.BrowserNotSupportedModule)},{path:"timeclock/:alias",loadChildren:()=>Promise.all([i.e(2288),i.e(2205),i.e(6321)]).then(i.bind(i,56321)).then(Et=>Et.TimeClockModule)},{path:"timeclock/:alias/:timeClockId",loadChildren:()=>Promise.all([i.e(2288),i.e(2205),i.e(6321)]).then(i.bind(i,56321)).then(Et=>Et.TimeClockModule)},{path:"applicant-portal",loadChildren:()=>i.e(2749).then(i.bind(i,32749)).then(Et=>Et.ApplicantPortalModule)},{path:"newhire-portal",loadChildren:()=>i.e(9680).then(i.bind(i,39680)).then(Et=>Et.NewhirePortalModule)},{path:"employee-portal",loadChildren:()=>i.e(2095).then(i.bind(i,42095)).then(Et=>Et.EmployeePortalModule)},{path:"customer-portal",loadChildren:()=>i.e(7068).then(i.bind(i,17068)).then(Et=>Et.CustomerPortalModule)},{path:"agent-portal",loadChildren:()=>i.e(6161).then(i.bind(i,66161)).then(Et=>Et.AgentPortalModule)},{path:Zf.l.JobPortal+"/:organizationCode",canActivate:[Cp.y],data:{app:Zf.l.JobPortal},loadChildren:()=>Promise.all([i.e(5407),i.e(3043)]).then(i.bind(i,66397)).then(Et=>Et.JobPortalRoutingModule)},{path:Zf.l.JobCandidate+"/:organizationCode",canActivate:[Cp.y],data:{page:Zf.l.JobCandidate},loadChildren:()=>Promise.all([i.e(5407),i.e(8592),i.e(7274)]).then(i.bind(i,40141)).then(Et=>Et.JobPortalCandidateRoutingModule)},{path:"applicant",loadChildren:()=>i.e(5910).then(i.bind(i,25910)).then(Et=>Et.ApplicantModule),canActivate:[Bd]},{path:"newhire",loadChildren:()=>i.e(7726).then(i.bind(i,67726)).then(Et=>Et.NewhireModule),canActivate:[Bd]},{path:"employee",loadChildren:()=>i.e(4266).then(i.bind(i,34266)).then(Et=>Et.EmployeeModule),canActivate:[Bd]},{path:"lead",loadChildren:()=>i.e(992).then(i.bind(i,10992)).then(Et=>Et.LeadModule),canActivate:[Bd]},{path:"sales",loadChildren:()=>Promise.all([i.e(8592),i.e(3731)]).then(i.bind(i,93731)).then(Et=>Et.SaleModule),canActivate:[Bd]},{path:"newcustomer",loadChildren:()=>i.e(5124).then(i.bind(i,65124)).then(Et=>Et.NewCustomerModule),canActivate:[Bd]},{path:"customer",loadChildren:()=>i.e(8230).then(i.bind(i,38230)).then(Et=>Et.CustomerModule),canActivate:[Bd]},{path:"agency",loadChildren:()=>Promise.all([i.e(8592),i.e(9652)]).then(i.bind(i,29618)).then(Et=>Et.AgencyModule),canActivate:[Bd]},{path:"temp-job",loadChildren:()=>i.e(847).then(i.bind(i,40847)).then(Et=>Et.TempJobModule),canActivate:[Bd]},{path:"assignment",loadChildren:()=>i.e(1941).then(i.bind(i,31941)).then(Et=>Et.AssignmentModule),canActivate:[Bd]},{path:"job-candidate",loadChildren:()=>Promise.all([i.e(8592),i.e(737)]).then(i.bind(i,1341)).then(Et=>Et.JobCandidateModule),canActivate:[Bd]},{path:"direct-hire-job",loadChildren:()=>i.e(264).then(i.bind(i,90264)).then(Et=>Et.DirectHireJobModule),canActivate:[Bd]},{path:"timesheet",loadChildren:()=>i.e(3526).then(i.bind(i,83526)).then(Et=>Et.TimeEntryModule),canActivate:[Bd]},{path:"payroll",loadChildren:()=>i.e(943).then(i.bind(i,50943)).then(Et=>Et.PayrollModule),canActivate:[Bd]},{path:"payment",loadChildren:()=>i.e(1151).then(i.bind(i,11151)).then(Et=>Et.PaymentModule),canActivate:[Bd]},{path:"invoicing",loadChildren:()=>i.e(6196).then(i.bind(i,76196)).then(Et=>Et.InvoicingModule),canActivate:[Bd]},{path:"invoice",loadChildren:()=>i.e(4513).then(i.bind(i,34513)).then(Et=>Et.InvoiceModule),canActivate:[Bd]},{path:"report",loadChildren:()=>i.e(1848).then(i.bind(i,31848)).then(Et=>Et.ReportModule),canActivate:[Bd]},{path:"admin",loadChildren:()=>i.e(216).then(i.bind(i,80216)).then(Et=>Et.AdminModule),canActivate:[Bd]},{path:"email",loadChildren:()=>Promise.all([i.e(9931),i.e(3164),i.e(3047),i.e(6364),i.e(4233),i.e(7886),i.e(3243),i.e(4521),i.e(9015),i.e(2546),i.e(8410),i.e(8681),i.e(9148),i.e(9519),i.e(3854),i.e(2189),i.e(417),i.e(9912),i.e(8478)]).then(i.bind(i,8274)).then(Et=>Et.EtcEmailModule)},{path:"task",loadChildren:()=>Promise.all([i.e(9931),i.e(3164),i.e(3047),i.e(6364),i.e(4233),i.e(7886),i.e(3243),i.e(4521),i.e(9015),i.e(2546),i.e(8592),i.e(3643)]).then(i.bind(i,70468)).then(Et=>Et.EtcTaskModule)},{path:"search",loadChildren:()=>Promise.all([i.e(9931),i.e(3164),i.e(3047),i.e(6364),i.e(4233),i.e(7886),i.e(3243),i.e(4521),i.e(9015),i.e(2546),i.e(8410),i.e(8592),i.e(2828)]).then(i.bind(i,56574)).then(Et=>Et.GlobalSearchModule)},{path:"bill",loadChildren:()=>i.e(6439).then(i.bind(i,46439)).then(Et=>Et.BillModule),canActivate:[Bd]},{path:"accounting",loadChildren:()=>i.e(7981).then(i.bind(i,47981)).then(Et=>Et.AccountingModule),canActivate:[Bd]},{path:"work-injury",loadChildren:()=>i.e(5806).then(i.bind(i,45806)).then(Et=>Et.WorkInjuryModule),canActivate:[Bd]},{path:"unemployment",loadChildren:()=>Promise.all([i.e(8592),i.e(1259)]).then(i.bind(i,51259)).then(Et=>Et.UnemploymentModule),canActivate:[Bd]},{path:"forgot-password",loadChildren:()=>Promise.all([i.e(3729),i.e(8740)]).then(i.bind(i,18740)).then(Et=>Et.ForgotPasswordModule)},{path:"info",loadChildren:()=>i.e(7890).then(i.bind(i,77890)).then(Et=>Et.ApplicationInformationModule)},{path:"availability/:personId/:token",loadChildren:()=>i.e(7590).then(i.bind(i,37590)).then(Et=>Et.AvailabilityLandingPageModule)},{path:"registrationReminder",loadChildren:()=>i.e(6911).then(i.bind(i,56911)).then(Et=>Et.CommonLandingPageModule)},{path:"gmailOAuthAccessToken",loadChildren:()=>i.e(6911).then(i.bind(i,56911)).then(Et=>Et.CommonLandingPageModule)},{path:"OAuthToken",loadChildren:()=>i.e(6911).then(i.bind(i,56911)).then(Et=>Et.CommonLandingPageModule)},{path:"dynamic",loadChildren:()=>Promise.all([i.e(8592),i.e(2250)]).then(i.bind(i,72250)).then(Et=>Et.DynamicDashboardModule),canActivate:[Bd]},{path:"calendar",loadChildren:()=>Promise.all([i.e(7886),i.e(112)]).then(i.bind(i,30112)).then(Et=>Et.CalendarRoutingModule)},{path:"myProductivity",loadChildren:()=>Promise.all([i.e(9931),i.e(3164),i.e(3047),i.e(6364),i.e(4233),i.e(7886),i.e(3243),i.e(3729),i.e(2814),i.e(8592),i.e(5090)]).then(i.bind(i,65090)).then(Et=>Et.MyProductivityModule)},{path:"sms",loadChildren:()=>Promise.all([i.e(9931),i.e(3164),i.e(3047),i.e(6364),i.e(4233),i.e(7886),i.e(3243),i.e(9281),i.e(9240)]).then(i.bind(i,12100)).then(Et=>Et.TextWrapperModule)},{path:"pra",loadChildren:()=>i.e(8927).then(i.bind(i,18927)).then(Et=>Et.PraModule)},{path:"session-expiry",loadChildren:()=>i.e(4597).then(i.bind(i,56291)).then(Et=>Et.SessionExpiryModule)},{path:"error-404",loadChildren:()=>i.e(2858).then(i.bind(i,21151)).then(Et=>Et.Error404Module)},{path:"docs/:app",loadChildren:()=>i.e(2874).then(i.bind(i,12874)).then(Et=>Et.DocumentationModule)},{path:"two-factor-auth",canActivate:[x_],loadChildren:()=>i.e(3225).then(i.bind(i,3225)).then(Et=>Et.TwoFactorAuthModule)},{path:"**",redirectTo:"error-404"}];let Zd=(()=>{class Et{constructor(Fe){this.http=Fe}getTranslation(Fe){var Zt=JSON.stringify({lang:Fe}),Ln=Be.XL.settings.apiUrl+"Common/GeneratedResource";let So=(new o.WM).set("AllowAnonymous","true");return this.http.get(Ln+"?json="+Zt,{headers:So}).pipe((0,Qh.U)(Jo=>{if(Jo)return Jo.resource}))}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.LFG(o.eN))};static#t=this.\u0275prov=n.Yz7({token:Et,factory:Et.\u0275fac})}return Et})();var S_=i(67217),eg=i(20553);const Tm=new n.OlP("FUSE_MOCK_API_DEFAULT_DELAY");var t_=i(94664),Tp=i(58504),zm=i(22096);class Dd{constructor(Cn,Fe){this.url=Cn,this.delay=Fe,this._reply=void 0,this._replyCount=0,this._replied=0}get response(){if(this._replyCount>0&&this._replyCount<=this._replied)return(0,Tp._)("Execution limit has been reached!");if(!this._reply)return(0,Tp._)("Response callback function does not exist!");if(!this.request)return(0,Tp._)("Request does not exist!");this._replied++;const Cn=this._reply({request:this.request,urlParams:this.urlParams});return Cn instanceof gf.y?Cn.pipe((0,rs.q)(1)):(0,zm.of)(Cn).pipe((0,rs.q)(1))}reply(Cn){this._reply=Cn}replyCount(Cn){this._replyCount=Cn}}let Oh=(()=>{class Et{constructor(){this._handlers={get:new Map,post:new Map,patch:new Map,delete:new Map,put:new Map,head:new Map,jsonp:new Map,options:new Map}}findHandler(Fe,Zt){const Ln={handler:void 0,urlParams:{}},So=Zt.split("/");return this._handlers[Fe.toLowerCase()].forEach((Hr,Es)=>{if(Ln.handler)return;const Vs=Es.split("/");So.length===Vs.length&&Vs.every((Ha,Al)=>Ha===So[Al]||Ha.startsWith(":"))&&(Ln.handler=Hr,Ln.urlParams=(0,ds.fromPairs)((0,ds.compact)(Vs.map((Ha,Al)=>Ha.startsWith(":")?[Ha.substring(1),So[Al]]:void 0))))}),Ln}onGet(Fe,Zt){return this._registerHandler("get",Fe,Zt)}onPost(Fe,Zt){return this._registerHandler("post",Fe,Zt)}onPatch(Fe,Zt){return this._registerHandler("patch",Fe,Zt)}onDelete(Fe,Zt){return this._registerHandler("delete",Fe,Zt)}onPut(Fe,Zt){return this._registerHandler("put",Fe,Zt)}onHead(Fe,Zt){return this._registerHandler("head",Fe,Zt)}onJsonp(Fe,Zt){return this._registerHandler("jsonp",Fe,Zt)}onOptions(Fe,Zt){return this._registerHandler("options",Fe,Zt)}_registerHandler(Fe,Zt,Ln){const So=new Dd(Zt,Ln);return this._handlers[Fe].set(Zt,So),So}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275prov=n.Yz7({token:Et,factory:Et.\u0275fac,providedIn:"root"})}return Et})(),Ph=(()=>{class Et{constructor(Fe,Zt){this._defaultDelay=Fe,this._fuseMockApiService=Zt}intercept(Fe,Zt){const{handler:Ln,urlParams:So}=this._fuseMockApiService.findHandler(Fe.method.toUpperCase(),Fe.url);return Ln?(Ln.request=Fe,Ln.urlParams=So,Ln.response.pipe((0,Rc.g)(Ln.delay??this._defaultDelay??0),(0,t_.w)(Jo=>{if(!Jo)return Jo=new o.UA({error:"NOT FOUND",status:404,statusText:"NOT FOUND"}),(0,Tp._)(Jo);const Hr={status:Jo[0],body:Jo[1]};return Hr.status>=200&&Hr.status<300?(Jo=new o.Zn({body:Hr.body,status:Hr.status,statusText:"OK"}),(0,zm.of)(Jo)):(Jo=new o.UA({error:Hr.body.error,status:Hr.status,statusText:"ERROR"}),(0,Tp._)(Jo))}))):Zt.handle(Fe)}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.LFG(Tm),n.LFG(Oh))};static#t=this.\u0275prov=n.Yz7({token:Et,factory:Et.\u0275fac,providedIn:"root"})}return Et})(),bd=(()=>{class Et{static forRoot(Fe,Zt){return{ngModule:Et,providers:[{provide:n.ip1,deps:[...Fe],useFactory:()=>()=>null,multi:!0},{provide:Tm,useValue:Zt?.delay??0}]}}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)};static#t=this.\u0275mod=n.oAB({type:Et});static#n=this.\u0275inj=n.cJS({providers:[{provide:o.TP,useClass:Ph,multi:!0}]})}return Et})();const Ac=i(16676)(),ol={media:["assets/images/cards/01-320x200.jpg","assets/images/cards/02-320x200.jpg","assets/images/cards/03-320x200.jpg","assets/images/cards/04-320x200.jpg","assets/images/cards/05-320x200.jpg","assets/images/cards/06-320x200.jpg","assets/images/cards/07-320x200.jpg","assets/images/cards/08-320x200.jpg"],docs:[],links:[]},Kf=[{id:"e6b2b82f-b199-4a60-9696-5f3e40d2715g",chatId:"",contactId:"me",value:"Hi!",mms:[],createdAt:Ac.subtract(1,"weeks").set({hour:18,minute:56}).toISOString()},{id:"e6b2b82f-b199-4a60-9696-5f3e40d2715d",chatId:"",contactId:"me",value:"Hey! Are you available right now? How about if we grab that coffee today? Remotely, of course :)",mms:["assets/images/cards/01-320x200.jpg","assets/images/cards/02-320x200.jpg","assets/images/cards/03-320x200.jpg","assets/images/cards/04-320x200.jpg","assets/images/cards/05-320x200.jpg","assets/images/cards/06-320x200.jpg","assets/images/cards/07-320x200.jpg","assets/images/cards/08-320x200.jpg"],createdAt:Ac.subtract(1,"weeks").set({hour:18,minute:57}).toISOString()},{id:"eb82cf4b-fa93-4bf4-a88a-99e987ddb7ea",chatId:"",contactId:"",value:"Hey, dude!",mms:["assets/images/cards/01-320x200.jpg","assets/images/cards/02-320x200.jpg","assets/images/cards/03-320x200.jpg"],createdAt:Ac.subtract(1,"weeks").set({hour:19,minute:4}).toISOString()},{id:"3cf9b2a6-ae54-47db-97b2-ee139a8f84e5",chatId:"",contactId:"",value:"Long time no see.",mms:[],createdAt:Ac.subtract(1,"weeks").set({hour:19,minute:4}).toISOString()},{id:"2ab91b0f-fafb-45f3-88df-7efaff29134b",chatId:"",contactId:"me",value:"Yeah, man... Things were quite busy for me and my family.",mms:[],createdAt:Ac.subtract(1,"weeks").set({hour:19,minute:6}).toISOString()},{id:"10e81481-378f-49ac-b06b-7c59dcc639ae",chatId:"",contactId:"",value:"What's up? Anything I can help with?",mms:[],createdAt:Ac.subtract(1,"weeks").set({hour:19,minute:6}).toISOString()},{id:"3b334e72-6605-4ebd-a4f6-3850067048de",chatId:"",contactId:"me",value:"We've been on the move, changed 3 places over 4 months",mms:[],createdAt:Ac.subtract(1,"weeks").set({hour:19,minute:7}).toISOString()},{id:"25998113-3a96-4dd0-a7b9-4d2bb58db3f3",chatId:"",contactId:"",value:"Wow! That's crazy! \u{1f92f} What happened?",mms:[],createdAt:Ac.subtract(1,"weeks").set({hour:19,minute:7}).toISOString()},{id:"30adb3da-0e4f-487e-aec2-6d9f31e097f6",chatId:"",contactId:"me",value:"You know I got a job in that big software company. First move was because of that.",mms:[],createdAt:Ac.subtract(1,"weeks").set({hour:19,minute:7}).toISOString()},{id:"c0d6fd6e-d294-4845-8751-e84b8f2c4d3b",chatId:"",contactId:"me",value:"Then they decided to re-locate me after a month",mms:[],createdAt:Ac.subtract(1,"weeks").set({hour:19,minute:7}).toISOString()},{id:"8d3c442b-62fa-496f-bffa-210ff5c1866b",chatId:"",contactId:"me",value:"Which was an absolute pain because we just set up everything, house, kids school and all that.",mms:[],createdAt:Ac.subtract(1,"weeks").set({hour:19,minute:7}).toISOString()},{id:"3cf26ef0-e81f-4698-ac39-487454413332",chatId:"",contactId:"me",value:"So we moved the second time.",mms:[],createdAt:Ac.subtract(1,"weeks").set({hour:19,minute:7}).toISOString()},{id:"415151b9-9ee9-40a4-a4ad-2d88146bc71b",chatId:"",contactId:"",value:"It's crazy!",mms:[],createdAt:Ac.subtract(1,"weeks").set({hour:19,minute:9}).toISOString()},{id:"3a2d3a0e-839b-46e7-86ae-ca0826ecda7c",chatId:"",contactId:"me",value:"Then this virus thing happened and just after a week we moved in, they decided the whole department will be working remotely.",mms:[],createdAt:Ac.subtract(1,"weeks").set({hour:19,minute:10}).toISOString()},{id:"5329c20d-6754-47ec-af8c-660c72be3528",chatId:"",contactId:"me",value:"And then we decided to move back our first location because, you know, everything was already setup so that's the third time.",mms:[],createdAt:Ac.subtract(1,"weeks").set({hour:19,minute:10}).toISOString()},{id:"415151b9-9ee9-40a4-a4ad-2d88146bc71b",chatId:"",contactId:"",value:"Ohh dude, I'm really sorry you had to go through all that in such a short period of time",mms:[],createdAt:Ac.subtract(1,"weeks").set({hour:19,minute:11}).toISOString()},{id:"ea7662d5-7b72-4c19-ad6c-f80320541001",chatId:"",contactId:"",value:"\u{1f615}",mms:[],createdAt:Ac.subtract(1,"weeks").set({hour:19,minute:11}).toISOString()},{id:"3a2d3a0e-839b-46e7-86ae-ca0826ecda7c",chatId:"",contactId:"me",value:"Thanks, man! It was good catching up with you.",mms:[],createdAt:Ac.subtract(1,"weeks").set({hour:19,minute:11}).toISOString()},{id:"5329c20d-6754-47ec-af8c-660c72be3528",chatId:"",contactId:"",value:"Yeah dude. Hit me again next week so we can grab a coffee, remotely!",mms:[],createdAt:Ac.subtract(1,"weeks").set({hour:19,minute:12}).toISOString()},{id:"5329c20d-6754-47ec-af8c-660c72be3528",chatId:"",contactId:"me",value:":) Sure, man! See you next week!",mms:[],createdAt:Ac.subtract(1,"weeks").set({hour:19,minute:12}).toISOString()},{id:"5329c20d-6754-47ec-af8c-660c72be3528",chatId:"",contactId:"",value:"See you later!",mms:[],createdAt:Ac.subtract(1,"weeks").set({hour:19,minute:12}).toISOString()},{id:"bab8ca0e-b8e5-4375-807b-1c91fca25a5d",chatId:"",contactId:"me",value:"Hey! Are you available right now? How about if we grab that coffee today? Remotely, of course :)",mms:[],createdAt:Ac.set({hour:12,minute:45}).toISOString()},{id:"8445a84d-599d-4e2d-a31c-5f4f29ad2b4c",chatId:"",contactId:"",value:"Hi!",mms:[],createdAt:Ac.set({hour:12,minute:56}).toISOString()},{id:"9f506742-50da-4350-af9d-61e53392fa08",chatId:"",contactId:"",value:"Sure thing! I'm gonna call you in 5, is it okay?",mms:[],createdAt:Ac.set({hour:12,minute:56}).toISOString()},{id:"ca8523d8-faed-45f7-af09-f6bd5c3f3875",chatId:"",contactId:"me",value:"Awesome! Call me in 5 minutes..",mms:[],createdAt:Ac.set({hour:12,minute:58}).toISOString()},{id:"39944b00-1ffe-4ffb-8ca6-13c292812e06",chatId:"",contactId:"",value:"\u{1f44d}\u{1f3fb}",mms:[],createdAt:Ac.set({hour:13,minute:0}).toISOString()}],Um=[{id:"ff6bc7f1-449a-4419-af62-b89ce6cae0aa",contactId:"9d3f0e7f-dcbd-4e56-a5e8-87b8154e9edf",unreadCount:2,muted:!1,lastMessage:"See you tomorrow!",lastMessageAt:"26/04/2021"},{id:"4459a3f0-b65e-4df2-8c37-6ec72fcc4b31",contactId:"16b9e696-ea95-4dd8-86c4-3caf705a1dc6",unreadCount:0,muted:!1,lastMessage:"See you tomorrow!",lastMessageAt:"26/04/2021"},{id:"f73a5a34-a723-4b35-8439-5289e0164c83",contactId:"bf172879-423a-4fd6-8df3-6d1938bbfe1f",unreadCount:1,muted:!1,lastMessage:"See you tomorrow!",lastMessageAt:"26/04/2021"},{id:"747f101c-0371-4ca3-9f20-cb913a80fe89",contactId:"abd9e78b-9e96-428f-b3ff-4d934c401bee",unreadCount:0,muted:!0,lastMessage:"See you tomorrow!",lastMessageAt:"26/04/2021"},{id:"b3facfc4-dfc2-4ac2-b55d-cb70b3e68419",contactId:"6519600a-5eaa-45f8-8bed-c46fddb3b26a",unreadCount:0,muted:!1,lastMessage:"See you tomorrow!",lastMessageAt:"26/04/2021"},{id:"e3127982-9e53-4611-ac27-eb70c84be4aa",contactId:"b62359fd-f2a8-46e6-904e-31052d1cd675",unreadCount:0,muted:!1,lastMessage:"See you tomorrow!",lastMessageAt:"26/04/2021"},{id:"a30351f3-bfa6-4ce3-b13a-82748fe0edee",contactId:"2c37ed00-427a-46d7-8f8f-d711c768d1ee",unreadCount:0,muted:!1,lastMessage:"See you tomorrow!",lastMessageAt:"26/04/2021"},{id:"5636c0ba-fa47-42ca-9160-27340583041e",contactId:"b8258ccf-48b5-46a2-9c95-e0bd7580c645",unreadCount:0,muted:!1,lastMessage:"See you tomorrow!",lastMessageAt:"26/04/2021"},{id:"feddd91a-51af-48d8-99b0-cd99ee060a36",contactId:"e2946946-b4b5-4fd7-bab4-62c38cdff2f1",unreadCount:0,muted:!1,lastMessage:"See you tomorrow!",lastMessageAt:"26/04/2021"},{id:"89421c2f-1751-4040-b09b-4a4268db47b9",contactId:"12148fa2-e0a4-49fb-b3c5-daeecdb5180a",unreadCount:0,muted:!0,lastMessage:"See you tomorrow!",lastMessageAt:"26/04/2021"},{id:"ffbbfdb4-0485-44aa-8521-5ce1eda3fd2f",contactId:"81fdc48c-5572-4123-8a73-71b7892120de",muted:!1,lastMessage:"See you tomorrow!",lastMessageAt:"26/04/2021"},{id:"a477baea-df90-4e2f-b108-7791bcd50bc8",contactId:"a9a9f382-e4c3-42fb-9fe9-65aa534732b5",unreadCount:0,muted:!1,lastMessage:"See you tomorrow!",lastMessageAt:"26/04/2021"},{id:"450840c8-aa0b-47a4-b6ca-b864ad9a3a88",contactId:"7e8e1f1e-d19f-45c7-86bd-6fef599dae71",unreadCount:0,muted:!1,lastMessage:"See you tomorrow!",lastMessageAt:"26/04/2021"},{id:"427270f0-841c-47f9-912c-3fd8139db5e6",contactId:"8141dd08-3a6e-4770-912c-59d0ed06dde6",unreadCount:0,muted:!1,lastMessage:"See you tomorrow!",lastMessageAt:"26/04/2021"},{id:"491b2918-e71e-4017-919e-0ba009afd003",contactId:"114642a2-ccb7-4cb1-ad2b-5e9b6a0c1d2e",unreadCount:0,muted:!1,lastMessage:"See you tomorrow!",lastMessageAt:"26/04/2021"}],cm=[{id:"cd5fa417-b667-482d-b208-798d9da3213c",avatar:"assets/images/avatars/male-01.jpg",name:"Dejesus Michael",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"dejesusmichael@mail.org",label:"Personal"},{email:"michael.dejesus@vitricomp.io",label:"Work"}],phoneNumbers:[{country:"bs",phoneNumber:"984 531 2468",label:"Mobile"},{country:"bs",phoneNumber:"806 470 2693",label:"Work"}],title:"Track Service Worker",company:"Vitricomp",birthday:"1975-01-10T12:00:00.000Z",address:"279 Independence Avenue, Calvary, Guam, PO4127"},attachments:ol},{id:"beec5287-ed50-4504-858a-5dc3f8ce6935",avatar:null,name:"Dena Molina",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"denamolina@mail.us",label:"Personal"},{email:"molina.dena@envire.tv",label:"Work"}],phoneNumbers:[{country:"io",phoneNumber:"934 537 3180",label:"Mobile"}],title:"Weather Analyst",company:"Envire",birthday:"1994-12-05T12:00:00.000Z",address:"856 Woodside Avenue, Alfarata, Iowa, PO4992"},attachments:ol},{id:"9d3f0e7f-dcbd-4e56-a5e8-87b8154e9edf",avatar:"assets/images/avatars/male-02.jpg",name:"Bernard Langley",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"bernardlangley@mail.com",label:"Personal"},{email:"langley.bernard@boilcat.name",label:"Work"}],phoneNumbers:[{country:"md",phoneNumber:"893 548 2862",label:"Mobile"}],title:"Electromedical Equipment Technician",company:"Boilcat",birthday:"1988-05-26T12:00:00.000Z",address:"943 Adler Place, Hamilton, South Dakota, PO5592"},attachments:ol},{id:"42a5da95-5e6d-42fd-a09d-de755d123a47",background:"assets/images/cards/16-640x480.jpg",name:"Mclaughlin Steele",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"mclaughlinsteele@mail.me",label:"Personal"},{email:"steele.mclaughlin@accel.info",label:"Work"}],phoneNumbers:[{country:"va",phoneNumber:"830 484 3813",label:"Mobile"},{country:"va",phoneNumber:"999 475 2789",label:"Work"},{country:"va",phoneNumber:"933 406 3598",label:"Home"}],company:"Accel",birthday:"1968-08-13T12:00:00.000Z",address:"334 Sandford Street, Savage, Virgin Islands, PO1858"},attachments:ol},{id:"a7806ced-03f1-4197-8b30-00bdd463366b",avatar:"assets/images/avatars/male-04.jpg",name:"Marsh Cochran",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"marshcochran@mail.biz",label:"Personal"}],phoneNumbers:[{country:"tz",phoneNumber:"864 401 3980",label:"Mobile"},{country:"tz",phoneNumber:"956 546 2589",label:"Work"}],title:"Fundraising Director",company:"Xsports",birthday:"1983-12-22T12:00:00.000Z",address:"487 Hamilton Walk, Bergoo, American Samoa, PO5616"},attachments:ol},{id:"f4ad15d9-5a24-463a-88ea-6189d6bb3a53",avatar:"assets/images/avatars/male-05.jpg",name:"Parrish Austin",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"parrishaustin@mail.co.uk",label:"Personal"},{email:"austin.parrish@insource.net",label:"Work"}],phoneNumbers:[{country:"lv",phoneNumber:"834 426 3574",label:"Mobile"},{country:"lv",phoneNumber:"816 573 3694",label:"Work"},{country:"lv",phoneNumber:"967 515 2009",label:"Home"}],title:"Motor Winder",company:"Insource",birthday:"1963-08-24T12:00:00.000Z",address:"610 Harbor Lane, Cascades, Minnesota, PO8639"},attachments:ol},{id:"780d0111-5e5c-4694-8d1d-0ea421971fbf",avatar:"assets/images/avatars/female-02.jpg",name:"Laverne Dodson",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"lavernedodson@mail.ca",label:"Personal"}],phoneNumbers:[{country:"ar",phoneNumber:"964 417 2318",label:"Mobile"},{country:"ar",phoneNumber:"830 410 2506",label:"Work"}],title:"Television News Producer",company:"Lovepad",birthday:"1973-09-25T12:00:00.000Z",address:"428 Newport Street, Neahkahnie, Arkansas, PO8324"},attachments:ol},{id:"bf172879-423a-4fd6-8df3-6d1938bbfe1f",avatar:"assets/images/avatars/male-06.jpg",name:"Edwards Mckenzie",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"edwardsmckenzie@mail.org",label:"Personal"},{email:"mckenzie.edwards@bugsall.io",label:"Work"}],phoneNumbers:[{country:"pe",phoneNumber:"934 519 2903",label:"Mobile"},{country:"pe",phoneNumber:"989 489 3662",label:"Work"},{country:"pe",phoneNumber:"813 461 2790",label:"Home"}],title:"Legal Assistant",company:"Bugsall",birthday:"1988-07-27T12:00:00.000Z",address:"384 Polhemus Place, Dalton, Palau, PO6038"},attachments:ol},{id:"1eaa3213-ece2-4ba6-8e15-eb36ca388f50",avatar:"assets/images/avatars/female-03.jpg",name:"Trudy Berg",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"trudyberg@mail.us",label:"Personal"},{email:"berg.trudy@satiance.tv",label:"Work"}],phoneNumbers:[{country:"ls",phoneNumber:"912 539 2770",label:"Mobile"}],title:"Meteorologist",company:"Satiance",birthday:"1989-12-15T12:00:00.000Z",address:"945 Jerome Avenue, Riceville, North Carolina, PO1625"},attachments:ol},{id:"abd9e78b-9e96-428f-b3ff-4d934c401bee",avatar:"assets/images/avatars/female-04.jpg",name:"Elsie Melendez",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"elsiemelendez@mail.com",label:"Personal"},{email:"melendez.elsie@chillium.name",label:"Work"}],phoneNumbers:[{country:"tg",phoneNumber:"907 515 3007",label:"Mobile"},{country:"tg",phoneNumber:"967 534 2803",label:"Work"}],title:"Fundraising Director",company:"Chillium",birthday:"1980-06-28T12:00:00.000Z",address:"428 Varanda Place, Veyo, Oklahoma, PO6188"},attachments:ol},{id:"efae92cc-3bd1-4c6a-a395-b6760c69bd55",avatar:"assets/images/avatars/male-07.jpg",name:"Lamb Underwood",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"lambunderwood@mail.me",label:"Personal"}],phoneNumbers:[{country:"pf",phoneNumber:"855 517 2767",label:"Mobile"},{country:"pf",phoneNumber:"906 442 3593",label:"Work"},{country:"pf",phoneNumber:"905 402 2121",label:"Home"}],title:"Legal Assistant",company:"Exotechno",birthday:"1990-07-26T12:00:00.000Z",address:"609 Greenpoint Avenue, Beason, Vermont, PO5229"},attachments:ol},{id:"bde636a7-c3d2-4bff-939a-aab11df1516b",avatar:null,name:"Tessa Valdez",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"tessavaldez@mail.info",label:"Personal"}],phoneNumbers:[{country:"dz",phoneNumber:"892 430 2631",label:"Mobile"},{country:"dz",phoneNumber:"997 525 2354",label:"Work"},{country:"dz",phoneNumber:"907 472 2857",label:"Home"}],title:"Banker Mason",company:"Securia",birthday:"1994-01-10T12:00:00.000Z",address:"183 Crosby Avenue, Blanco, Mississippi, PO3463"},attachments:ol},{id:"6519600a-5eaa-45f8-8bed-c46fddb3b26a",background:"assets/images/cards/24-640x480.jpg",name:"Mcleod Wagner",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"mcleodwagner@mail.biz",label:"Personal"}],phoneNumbers:[{country:"at",phoneNumber:"977 590 2773",label:"Mobile"},{country:"at",phoneNumber:"828 496 3813",label:"Work"},{country:"at",phoneNumber:"831 432 2512",label:"Home"}],company:"Inrt",birthday:"1980-12-03T12:00:00.000Z",address:"736 Glen Street, Kaka, West Virginia, PO9350"},attachments:ol},{id:"6d80a6f6-2884-4ac4-9c73-06b82c220017",avatar:"assets/images/avatars/female-06.jpg",name:"Kristie Hall",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"kristiehall@mail.co.uk",label:"Personal"},{email:"hall.kristie@austech.net",label:"Work"}],phoneNumbers:[{country:"tn",phoneNumber:"841 530 3641",label:"Mobile"},{country:"tn",phoneNumber:"941 410 3743",label:"Work"},{country:"tn",phoneNumber:"938 599 3850",label:"Home"}],title:"Electromedical Equipment Technician",company:"Austech",birthday:"1975-08-31T12:00:00.000Z",address:"547 Revere Place, Hoehne, New Hampshire, PO2125"},attachments:ol},{id:"35190d23-036e-44ef-b545-cc744c626edd",avatar:"assets/images/avatars/female-07.jpg",name:"Shannon Kennedy",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"shannonkennedy@mail.ca",label:"Personal"}],phoneNumbers:[{country:"gb",phoneNumber:"899 508 2992",label:"Mobile"},{country:"gb",phoneNumber:"834 499 3354",label:"Work"},{country:"gb",phoneNumber:"834 526 3388",label:"Home"}],title:"Gas Meter Mechanic",company:"Eventix",birthday:"1994-09-07T12:00:00.000Z",address:"480 Chase Court, Edinburg, Kansas, PO5357"},attachments:ol},{id:"b018c194-68ec-4915-ab56-e9f3bd2d98db",avatar:"assets/images/avatars/female-08.jpg",name:"Martha Swanson",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"marthaswanson@mail.org",label:"Personal"},{email:"swanson.martha@sequitur.io",label:"Work"}],phoneNumbers:[{country:"gb",phoneNumber:"844 480 3309",label:"Mobile"},{country:"gb",phoneNumber:"981 591 3239",label:"Work"},{country:"gb",phoneNumber:"923 484 3147",label:"Home"}],title:"Short Story Writer",company:"Sequitur",birthday:"1993-12-31T12:00:00.000Z",address:"595 Howard Place, Convent, Rhode Island, PO6993"},attachments:ol},{id:"b7c355e9-e003-467e-82d2-4f6978c1a696",avatar:"assets/images/avatars/female-09.jpg",name:"Jacklyn Morgan",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"jacklynmorgan@mail.us",label:"Personal"},{email:"morgan.jacklyn@shopabout.tv",label:"Work"}],phoneNumbers:[{country:"so",phoneNumber:"974 542 2061",label:"Mobile"}],title:"Animal Sitter",company:"Shopabout",birthday:"1976-09-30T12:00:00.000Z",address:"971 Conover Street, Statenville, Louisiana, PO6622"},attachments:ol},{id:"cfa07b7c-93d1-42e7-9592-493d9efc78ae",avatar:"assets/images/avatars/female-10.jpg",name:"Tonya Bowers",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"tonyabowers@mail.com",label:"Personal"},{email:"bowers.tonya@tourmania.name",label:"Work"}],phoneNumbers:[{country:"tv",phoneNumber:"922 585 2914",label:"Mobile"},{country:"tv",phoneNumber:"913 538 2961",label:"Work"}],title:"Track Service Worker",company:"Tourmania",birthday:"1976-06-14T12:00:00.000Z",address:"197 Marconi Place, Welda, Delaware, PO6061"},attachments:ol},{id:"00feeb63-c83a-4655-a37e-a07da10cfa1c",avatar:"assets/images/avatars/female-11.jpg",name:"Latonya Cruz",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"latonyacruz@mail.me",label:"Personal"}],phoneNumbers:[{country:"tm",phoneNumber:"981 508 2080",label:"Mobile"},{country:"tm",phoneNumber:"817 425 2052",label:"Work"},{country:"tm",phoneNumber:"939 434 3805",label:"Home"}],title:"Motor Winder",company:"Zilch",birthday:"1967-11-28T12:00:00.000Z",address:"775 Dahill Road, Iberia, California, PO2169"},attachments:ol},{id:"142abf21-e635-4a7d-9330-e57f66adcdbe",avatar:"assets/images/avatars/female-12.jpg",name:"Evangelina Mcclain",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"evangelinamcclain@mail.info",label:"Personal"}],phoneNumbers:[{country:"ck",phoneNumber:"992 583 3187",label:"Mobile"},{country:"ck",phoneNumber:"881 472 3297",label:"Work"},{country:"ck",phoneNumber:"846 477 3596",label:"Home"}],title:"Congressional Representative",company:"Straloy",birthday:"1976-02-15T12:00:00.000Z",address:"305 Columbia Street, Dupuyer, Puerto Rico, PO8744"},attachments:ol},{id:"e4f255a3-b5dd-45a7-975f-c399604a399a",avatar:"assets/images/avatars/male-09.jpg",name:"Herring Gonzales",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"herringgonzales@mail.biz",label:"Personal"}],phoneNumbers:[{country:"ai",phoneNumber:"995 411 2513",label:"Mobile"},{country:"ai",phoneNumber:"839 492 2760",label:"Work"}],title:"Gas Meter Mechanic",company:"Cubix",birthday:"1995-02-16T12:00:00.000Z",address:"195 Brooklyn Road, Jeff, Marshall Islands, PO2943"},attachments:ol},{id:"ab4f712d-d712-41a8-b567-be4c66c349a3",avatar:"assets/images/avatars/female-13.jpg",name:"Alyce Cash",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"alycecash@mail.co.uk",label:"Personal"}],phoneNumbers:[{country:"ht",phoneNumber:"969 499 3077",label:"Mobile"},{country:"ht",phoneNumber:"907 513 2784",label:"Work"}],title:"Weather Analyst",company:"Qnekt",birthday:"1973-12-19T12:00:00.000Z",address:"964 Henry Street, Eureka, Indiana, PO1035"},attachments:ol},{id:"5d067800-c301-46c6-a7f7-28dc89d9a554",avatar:null,name:"Kristine Pacheco",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"kristinepacheco@mail.net",label:"Personal"},{email:"pacheco.kristine@vurbo.ca",label:"Work"}],phoneNumbers:[{country:"mm",phoneNumber:"977 516 2492",label:"Mobile"}],title:"Short Story Writer",company:"Vurbo",birthday:"1985-10-22T12:00:00.000Z",address:"622 Dodworth Street, Rose, Arizona, PO9530"},attachments:ol},{id:"c500255a-1173-47d0-a0e4-4944d48fc12a",avatar:"assets/images/avatars/male-10.jpg",name:"English Haney",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"englishhaney@mail.org",label:"Personal"}],phoneNumbers:[{country:"lb",phoneNumber:"989 567 3834",label:"Mobile"}],title:"Meteorologist",company:"Photobin",birthday:"1969-09-05T12:00:00.000Z",address:"579 Pooles Lane, Belleview, Montana, PO4106"},attachments:ol},{id:"b62359fd-f2a8-46e6-904e-31052d1cd675",avatar:"assets/images/avatars/male-11.jpg",name:"Joseph Strickland",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"josephstrickland@mail.io",label:"Personal"},{email:"strickland.joseph@bytrex.us",label:"Work"}],phoneNumbers:[{country:"jo",phoneNumber:"990 450 2729",label:"Mobile"}],title:"Hotel Manager",company:"Bytrex",birthday:"1991-09-08T12:00:00.000Z",address:"844 Ellery Street, Hondah, Texas, PO1272"},attachments:ol},{id:"16b9e696-ea95-4dd8-86c4-3caf705a1dc6",avatar:"assets/images/avatars/male-12.jpg",name:"Nunez Faulkner",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"nunezfaulkner@mail.tv",label:"Personal"}],phoneNumbers:[{country:"xk",phoneNumber:"909 552 3327",label:"Mobile"}],title:"Hotel Manager",company:"Buzzopia",birthday:"1982-01-23T12:00:00.000Z",address:"614 Herkimer Court, Darrtown, Nebraska, PO9308"},attachments:ol},{id:"19662ecf-0686-4aad-a46c-24b552eb2ff5",avatar:"assets/images/avatars/female-15.jpg",name:"Juana Morrow",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"juanamorrow@mail.com",label:"Personal"}],phoneNumbers:[{country:"ee",phoneNumber:"868 438 3943",label:"Mobile"}],title:"Meteorologist",company:"Lyria",birthday:"1992-03-29T12:00:00.000Z",address:"663 Drew Street, Juntura, Georgia, PO9857"},attachments:ol},{id:"26dfe954-8bf3-45ee-b285-1d0a88c8d3ea",avatar:"assets/images/avatars/male-13.jpg",name:"Lara Gaines",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"laragaines@mail.name",label:"Personal"}],phoneNumbers:[{country:"mr",phoneNumber:"891 498 2043",label:"Mobile"}],title:"Electromedical Equipment Technician",company:"Acruex",birthday:"1961-06-07T12:00:00.000Z",address:"762 Troutman Street, Drummond, Oregon, PO6973"},attachments:ol},{id:"d6462af2-c488-4de7-9b26-3845bd2983f9",avatar:"assets/images/avatars/male-14.jpg",name:"Johnston Riddle",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"johnstonriddle@mail.me",label:"Personal"}],phoneNumbers:[{country:"bt",phoneNumber:"979 541 2691",label:"Mobile"},{country:"bt",phoneNumber:"909 407 3887",label:"Work"},{country:"bt",phoneNumber:"864 557 3128",label:"Home"}],title:"Hotel Manager",company:"Xleen",birthday:"1972-09-13T12:00:00.000Z",address:"674 Bryant Street, Grahamtown, Federated States Of Micronesia, PO2757"},attachments:ol},{id:"a1723c04-69fe-4573-a135-6645658afe76",avatar:null,name:"Vargas Gardner",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"vargasgardner@mail.info",label:"Personal"},{email:"gardner.vargas@cosmosis.biz",label:"Work"}],phoneNumbers:[{country:"bi",phoneNumber:"855 456 2754",label:"Mobile"}],title:"Bindery Machine Operator",company:"Cosmosis",birthday:"1979-10-21T12:00:00.000Z",address:"869 Seton Place, Chemung, Maine, PO8109"},attachments:ol},{id:"823e6166-c0c8-4373-9270-8a0d17489a08",avatar:"assets/images/avatars/male-16.jpg",name:"Mccall Day",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"mccallday@mail.co.uk",label:"Personal"}],phoneNumbers:[{country:"se",phoneNumber:"993 504 3286",label:"Mobile"},{country:"se",phoneNumber:"924 434 2238",label:"Work"},{country:"se",phoneNumber:"816 466 2634",label:"Home"}],title:"Historiographer",company:"Nipaz",birthday:"1964-03-05T12:00:00.000Z",address:"854 Hanover Place, Harleigh, New Jersey, PO9459"},attachments:ol},{id:"2c37ed00-427a-46d7-8f8f-d711c768d1ee",avatar:"assets/images/avatars/male-17.jpg",name:"Silva Foster",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"silvafoster@mail.net",label:"Personal"}],phoneNumbers:[{country:"bn",phoneNumber:"916 511 3837",label:"Mobile"},{country:"bn",phoneNumber:"949 564 3247",label:"Work"}],title:"Insurance Analyst",company:"Extrawear",birthday:"1980-04-29T12:00:00.000Z",address:"137 Bridge Street, Sisquoc, District Of Columbia, PO4105"},attachments:ol},{id:"944764c0-b261-4428-9188-bbd3022d66a8",avatar:"assets/images/avatars/female-16.jpg",name:"Cathryn Snider",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"cathrynsnider@mail.ca",label:"Personal"},{email:"snider.cathryn@phormula.org",label:"Work"}],phoneNumbers:[{country:"na",phoneNumber:"896 471 3036",label:"Mobile"},{country:"na",phoneNumber:"851 491 3567",label:"Work"},{country:"na",phoneNumber:"805 487 2016",label:"Home"}],title:"Short Story Writer",company:"Phormula",birthday:"1981-06-09T12:00:00.000Z",address:"528 Glenmore Avenue, Elrama, Illinois, PO2952"},attachments:ol},{id:"f2b3c756-5ad2-4d4b-aee5-b32c91457128",avatar:null,name:"Mooney Cantrell",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"mooneycantrell@mail.io",label:"Personal"}],phoneNumbers:[{country:"bh",phoneNumber:"915 577 3020",label:"Mobile"},{country:"bh",phoneNumber:"923 431 3594",label:"Work"}],title:"Fundraising Director",company:"Crustatia",birthday:"1968-12-07T12:00:00.000Z",address:"277 Coventry Road, Fairforest, Nevada, PO6031"},attachments:ol},{id:"54b1c201-4b2b-4be0-ad70-a6413e9628cd",avatar:"assets/images/avatars/female-17.jpg",name:"Saundra Murphy",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"saundramurphy@mail.us",label:"Personal"}],phoneNumbers:[{country:"mt",phoneNumber:"902 529 2999",label:"Mobile"}],title:"Dental Laboratory Worker",company:"Zilencio",birthday:"1983-11-07T12:00:00.000Z",address:"557 Monroe Street, Mayfair, Maryland, PO7200"},attachments:ol},{id:"faf979c7-a13b-445a-b30a-08845f5fa90e",avatar:"assets/images/avatars/female-18.jpg",name:"Enid Sparks",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"enidsparks@mail.tv",label:"Personal"}],phoneNumbers:[{country:"bh",phoneNumber:"813 410 3258",label:"Mobile"},{country:"bh",phoneNumber:"877 501 2767",label:"Work"}],title:"Historiographer",company:"Skybold",birthday:"1984-05-04T12:00:00.000Z",address:"219 Village Court, Keyport, Alabama, PO7776"},attachments:ol},{id:"2bfa2be5-7688-48d5-b5ac-dc0d9ac97f14",avatar:null,name:"Nadia Mcknight",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"nadiamcknight@mail.com",label:"Personal"}],phoneNumbers:[{country:"tk",phoneNumber:"943 511 2203",label:"Mobile"},{country:"tk",phoneNumber:"817 578 2993",label:"Work"}],title:"Legal Assistant",company:"Pearlesex",birthday:"1973-10-06T12:00:00.000Z",address:"448 Berriman Street, Reinerton, Washington, PO6704"},attachments:ol},{id:"77a4383b-b5a5-4943-bc46-04c3431d1566",avatar:"assets/images/avatars/male-19.jpg",name:"Best Blackburn",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"bestblackburn@mail.name",label:"Personal"},{email:"blackburn.best@beadzza.me",label:"Work"}],phoneNumbers:[{country:"gl",phoneNumber:"814 498 3701",label:"Mobile"}],title:"Hotel Manager",company:"Beadzza",birthday:"1987-06-07T12:00:00.000Z",address:"578 Tampa Court, Wescosville, Ohio, PO4108"},attachments:ol},{id:"8bb0f597-673a-47ca-8c77-2f83219cb9af",avatar:null,name:"Duncan Carver",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"duncancarver@mail.info",label:"Personal"}],phoneNumbers:[{country:"jm",phoneNumber:"968 547 2111",label:"Mobile"},{country:"jm",phoneNumber:"968 433 3120",label:"Work"},{country:"jm",phoneNumber:"905 425 2777",label:"Home"}],title:"Historiographer",company:"Hotcakes",birthday:"1980-09-15T12:00:00.000Z",address:"931 Bristol Street, Why, South Carolina, PO9700"},attachments:ol},{id:"c318e31f-1d74-49c5-8dae-2bc5805e2fdb",avatar:"assets/images/avatars/male-01.jpg",name:"Martin Richards",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"martinrichards@mail.biz",label:"Personal"}],phoneNumbers:[{country:"mg",phoneNumber:"902 500 2668",label:"Mobile"},{country:"mg",phoneNumber:"947 559 2919",label:"Work"},{country:"mg",phoneNumber:"934 434 3768",label:"Home"}],title:"Dental Laboratory Worker",company:"Overfork",birthday:"1977-04-12T12:00:00.000Z",address:"268 Hutchinson Court, Drytown, Florida, PO3041"},attachments:ol},{id:"0a8bc517-631a-4a93-aacc-000fa2e8294c",avatar:"assets/images/avatars/female-20.jpg",name:"Candice Munoz",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"candicemunoz@mail.co.uk",label:"Personal"}],phoneNumbers:[{country:"fm",phoneNumber:"838 562 2769",label:"Mobile"}],title:"Legal Assistant",company:"Eclipto",birthday:"1976-09-09T12:00:00.000Z",address:"946 Remsen Street, Caroline, New Mexico, PO3247"},attachments:ol},{id:"a4c9945a-757b-40b0-8942-d20e0543cabd",avatar:"assets/images/avatars/female-01.jpg",name:"Vickie Mosley",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"vickiemosley@mail.net",label:"Personal"}],phoneNumbers:[{country:"tr",phoneNumber:"939 555 3054",label:"Mobile"},{country:"tr",phoneNumber:"852 486 2053",label:"Work"}],title:"Bindery Machine Operator",company:"Strozen",birthday:"1989-06-21T12:00:00.000Z",address:"397 Vandalia Avenue, Rockingham, Michigan, PO8089"},attachments:ol},{id:"b8258ccf-48b5-46a2-9c95-e0bd7580c645",avatar:"assets/images/avatars/female-02.jpg",name:"Tina Harris",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"tinaharris@mail.ca",label:"Personal"}],phoneNumbers:[{country:"gp",phoneNumber:"933 464 2431",label:"Mobile"},{country:"gp",phoneNumber:"894 535 3609",label:"Work"}],title:"Short Story Writer",company:"Gallaxia",birthday:"1976-09-10T12:00:00.000Z",address:"821 Beverly Road, Tyro, Colorado, PO4248"},attachments:ol},{id:"f004ea79-98fc-436c-9ba5-6cfe32fe583d",avatar:"assets/images/avatars/male-02.jpg",name:"Holt Manning",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"holtmanning@mail.org",label:"Personal"},{email:"manning.holt@idetica.io",label:"Work"}],phoneNumbers:[{country:"nz",phoneNumber:"822 531 2600",label:"Mobile"},{country:"nz",phoneNumber:"922 549 2094",label:"Work"}],title:"Fundraising Director",company:"Idetica",birthday:"1973-11-08T12:00:00.000Z",address:"364 Porter Avenue, Delshire, Missouri, PO8911"},attachments:ol},{id:"8b69fe2d-d7cc-4a3d-983d-559173e37d37",background:"assets/images/cards/28-640x480.jpg",name:"Misty Ramsey",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"mistyramsey@mail.us",label:"Personal"}],phoneNumbers:[{country:"kp",phoneNumber:"990 457 2106",label:"Mobile"},{country:"kp",phoneNumber:"918 550 2946",label:"Work"}],company:"Grupoli",birthday:"1969-08-10T12:00:00.000Z",address:"101 Sackett Street, Naomi, Tennessee, PO6335"},attachments:ol},{id:"cdcc62e4-1520-4ccc-803d-52868c7e01ba",avatar:"assets/images/avatars/female-04.jpg",name:"Dee Alvarado",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"deealvarado@mail.tv",label:"Personal"}],phoneNumbers:[{country:"nu",phoneNumber:"855 445 2483",label:"Mobile"},{country:"nu",phoneNumber:"858 415 2860",label:"Work"},{country:"nu",phoneNumber:"968 587 2752",label:"Home"}],title:"Dental Laboratory Worker",company:"Tsunamia",birthday:"1996-06-17T12:00:00.000Z",address:"956 Pierrepont Street, Crumpler, Hawaii, PO3299"},attachments:ol},{id:"e2946946-b4b5-4fd7-bab4-62c38cdff2f1",avatar:"assets/images/avatars/female-05.jpg",name:"Samantha Jacobson",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"samanthajacobson@mail.com",label:"Personal"}],phoneNumbers:[{country:"es",phoneNumber:"879 591 3327",label:"Mobile"}],title:"Dental Laboratory Worker",company:"Emoltra",birthday:"1972-02-04T12:00:00.000Z",address:"384 Love Lane, Dyckesville, New York, PO4115"},attachments:ol},{id:"fdc77706-6ba2-4397-b2f8-a9a0b6495153",avatar:"assets/images/avatars/female-06.jpg",name:"Rhea Landry",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"rhealandry@mail.name",label:"Personal"}],phoneNumbers:[{country:"jp",phoneNumber:"906 579 3698",label:"Mobile"},{country:"jp",phoneNumber:"841 475 2681",label:"Work"}],title:"Electromedical Equipment Technician",company:"Comtent",birthday:"1988-05-22T12:00:00.000Z",address:"725 Arlington Avenue, Mathews, Wyoming, PO4562"},attachments:ol},{id:"12148fa2-e0a4-49fb-b3c5-daeecdb5180a",avatar:"assets/images/avatars/female-07.jpg",name:"Olga Rhodes",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"olgarhodes@mail.me",label:"Personal"},{email:"rhodes.olga@moreganic.info",label:"Work"}],phoneNumbers:[{country:"tl",phoneNumber:"971 514 3366",label:"Mobile"},{country:"tl",phoneNumber:"807 480 2033",label:"Work"},{country:"tl",phoneNumber:"810 528 3783",label:"Home"}],title:"Pastry Baker",company:"Moreganic",birthday:"1971-08-13T12:00:00.000Z",address:"253 Beard Street, Staples, Massachusetts, PO8089"},attachments:ol},{id:"07dd64eb-8b8f-4765-a16c-8db083c45096",avatar:"assets/images/avatars/female-08.jpg",name:"Lorraine Pennington",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"lorrainepennington@mail.biz",label:"Personal"}],phoneNumbers:[{country:"fm",phoneNumber:"932 404 3308",label:"Mobile"},{country:"fm",phoneNumber:"979 550 3200",label:"Work"},{country:"fm",phoneNumber:"868 557 3568",label:"Home"}],title:"Electromedical Equipment Technician",company:"Marvane",birthday:"1967-06-10T12:00:00.000Z",address:"962 Whitney Avenue, Sussex, North Dakota, PO5796"},attachments:ol},{id:"81fdc48c-5572-4123-8a73-71b7892120de",avatar:"assets/images/avatars/female-09.jpg",name:"Earlene Rosales",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"earlenerosales@mail.co.uk",label:"Personal"},{email:"rosales.earlene@softmicro.net",label:"Work"}],phoneNumbers:[{country:"ki",phoneNumber:"927 589 3619",label:"Mobile"}],title:"Historiographer",company:"Softmicro",birthday:"1960-11-13T12:00:00.000Z",address:"981 Kingston Avenue, Topaz, Connecticut, PO6866"},attachments:ol},{id:"f8bbf6be-d49a-41a3-bb80-3d51df84c12b",avatar:"assets/images/avatars/female-10.jpg",name:"Marcia Hatfield",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"marciahatfield@mail.ca",label:"Personal"},{email:"hatfield.marcia@datagen.org",label:"Work"}],phoneNumbers:[{country:"no",phoneNumber:"883 432 3718",label:"Mobile"},{country:"no",phoneNumber:"934 516 2135",label:"Work"},{country:"no",phoneNumber:"923 596 3843",label:"Home"}],title:"Track Service Worker",company:"Datagen",birthday:"1980-02-26T12:00:00.000Z",address:"802 Preston Court, Waikele, Pennsylvania, PO7421"},attachments:ol},{id:"cd482941-3eaf-4560-ac37-56a9296025df",avatar:"assets/images/avatars/female-11.jpg",name:"Liliana Ayala",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"lilianaayala@mail.io",label:"Personal"}],phoneNumbers:[{country:"bd",phoneNumber:"936 590 2412",label:"Mobile"}],title:"Insurance Analyst",company:"Pharmex",birthday:"1988-04-27T12:00:00.000Z",address:"935 Guider Avenue, Kipp, Wisconsin, PO5282"},attachments:ol},{id:"22f18d47-ff8d-440e-888d-a1747c093052",avatar:"assets/images/avatars/female-12.jpg",name:"Alice Harding",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"aliceharding@mail.us",label:"Personal"}],phoneNumbers:[{country:"sx",phoneNumber:"881 472 3113",label:"Mobile"},{country:"sx",phoneNumber:"974 548 3124",label:"Work"},{country:"sx",phoneNumber:"800 518 3615",label:"Home"}],title:"Track Service Worker",company:"Futurity",birthday:"1985-09-17T12:00:00.000Z",address:"387 Holt Court, Thomasville, Alaska, PO2867"},attachments:ol},{id:"a9a9f382-e4c3-42fb-9fe9-65aa534732b5",avatar:"assets/images/avatars/female-13.jpg",name:"Francisca Perkins",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"franciscaperkins@mail.tv",label:"Personal"},{email:"perkins.francisca@overplex.com",label:"Work"}],phoneNumbers:[{country:"au",phoneNumber:"830 430 3437",label:"Mobile"},{country:"au",phoneNumber:"868 538 2886",label:"Work"}],title:"Dental Laboratory Worker",company:"Overplex",birthday:"1966-08-14T12:00:00.000Z",address:"733 Delmonico Place, Belvoir, Virginia, PO7102"},attachments:ol},{id:"0222b24b-c288-48d1-b356-0f087fa172f8",avatar:null,name:"Warren Gates",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"warrengates@mail.name",label:"Personal"},{email:"gates.warren@qualitex.me",label:"Work"}],phoneNumbers:[{country:"gt",phoneNumber:"847 513 2248",label:"Mobile"},{country:"gt",phoneNumber:"866 591 3665",label:"Work"},{country:"gt",phoneNumber:"877 539 3840",label:"Home"}],title:"Banker Mason",company:"Qualitex",birthday:"1977-02-23T12:00:00.000Z",address:"713 Fane Court, Lemoyne, Kentucky, PO3601"},attachments:ol},{id:"0630f1ca-cdb9-405d-b134-68f733334089",avatar:"assets/images/avatars/female-14.jpg",name:"Maryann Mcintyre",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"maryannmcintyre@mail.info",label:"Personal"},{email:"mcintyre.maryann@aquafire.biz",label:"Work"}],phoneNumbers:[{country:"bf",phoneNumber:"861 419 2752",label:"Mobile"},{country:"bf",phoneNumber:"935 553 3031",label:"Work"}],title:"Fundraising Director",company:"Aquafire",birthday:"1963-04-07T12:00:00.000Z",address:"698 Brooklyn Avenue, Dixonville, Utah, PO2712"},attachments:ol},{id:"999c24f3-7bb8-4a01-85ca-2fca7863c57e",avatar:"assets/images/avatars/female-15.jpg",name:"Sharon Marshall",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"sharonmarshall@mail.co.uk",label:"Personal"},{email:"marshall.sharon@utara.net",label:"Work"}],phoneNumbers:[{country:"fo",phoneNumber:"947 441 2999",label:"Mobile"},{country:"fo",phoneNumber:"984 441 2615",label:"Work"},{country:"fo",phoneNumber:"824 541 2714",label:"Home"}],title:"Legal Assistant",company:"Utara",birthday:"1960-01-26T12:00:00.000Z",address:"923 Ivan Court, Hatteras, Idaho, PO7573"},attachments:ol},{id:"7e8e1f1e-d19f-45c7-86bd-6fef599dae71",avatar:"assets/images/avatars/female-16.jpg",name:"Margo Witt",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"margowitt@mail.ca",label:"Personal"},{email:"witt.margo@norsul.org",label:"Work"}],phoneNumbers:[{country:"ao",phoneNumber:"992 596 3391",label:"Mobile"},{country:"ao",phoneNumber:"950 489 2505",label:"Work"},{country:"ao",phoneNumber:"891 540 2231",label:"Home"}],title:"Television News Producer",company:"Norsul",birthday:"1975-08-31T12:00:00.000Z",address:"539 Rockaway Avenue, Whitmer, Guam, PO4871"},attachments:ol},{id:"bedcb6a2-da83-4631-866a-77d10d239477",avatar:"assets/images/avatars/male-04.jpg",name:"Alvarado Turner",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"alvaradoturner@mail.io",label:"Personal"}],phoneNumbers:[{country:"lv",phoneNumber:"961 537 3956",label:"Mobile"}],title:"Fundraising Director",company:"Geologix",birthday:"1985-12-08T12:00:00.000Z",address:"233 Willmohr Street, Cressey, Iowa, PO1962"},attachments:ol},{id:"66f9de1b-f842-4d4c-bb59-f97e91db0462",avatar:"assets/images/avatars/male-05.jpg",name:"Maldonado Rodriquez",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"maldonadorodriquez@mail.us",label:"Personal"},{email:"rodriquez.maldonado@zentility.tv",label:"Work"}],phoneNumbers:[{country:"et",phoneNumber:"811 502 3398",label:"Mobile"},{country:"et",phoneNumber:"877 402 2443",label:"Work"},{country:"et",phoneNumber:"949 536 3451",label:"Home"}],title:"Dental Laboratory Worker",company:"Zentility",birthday:"1993-06-01T12:00:00.000Z",address:"916 Cobek Court, Morningside, South Dakota, PO2019"},attachments:ol},{id:"9cb0ea57-3461-4182-979b-593b0c1ec6c3",avatar:"assets/images/avatars/male-06.jpg",name:"Tran Duke",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"tranduke@mail.com",label:"Personal"},{email:"duke.tran@splinx.name",label:"Work"}],phoneNumbers:[{country:"si",phoneNumber:"837 503 2254",label:"Mobile"},{country:"si",phoneNumber:"893 405 3190",label:"Work"},{country:"si",phoneNumber:"931 402 3874",label:"Home"}],title:"Legal Assistant",company:"Splinx",birthday:"1976-04-27T12:00:00.000Z",address:"405 Canarsie Road, Richville, Virgin Islands, PO2744"},attachments:ol},{id:"2fb89a90-5622-4b5b-8df3-d49b85905392",avatar:null,name:"Estela Lyons",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"estelalyons@mail.me",label:"Personal"}],phoneNumbers:[{country:"vg",phoneNumber:"864 459 3205",label:"Mobile"},{country:"vg",phoneNumber:"886 524 2880",label:"Work"},{country:"vg",phoneNumber:"815 484 3420",label:"Home"}],title:"Animal Sitter",company:"Gonkle",birthday:"1968-03-11T12:00:00.000Z",address:"540 Metrotech Courtr, Garfield, American Samoa, PO2290"},attachments:ol},{id:"8141dd08-3a6e-4770-912c-59d0ed06dde6",avatar:null,name:"Madeleine Fletcher",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"madeleinefletcher@mail.info",label:"Personal"},{email:"fletcher.madeleine@genmom.biz",label:"Work"}],phoneNumbers:[{country:"uy",phoneNumber:"898 554 3354",label:"Mobile"}],title:"Fundraising Director",company:"Genmom",birthday:"1970-07-15T12:00:00.000Z",address:"825 Cherry Street, Foscoe, Minnesota, PO7290"},attachments:ol},{id:"7585015c-ada2-4f88-998d-9646865d1ad2",avatar:"assets/images/avatars/male-07.jpg",name:"Meyer Roach",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"meyerroach@mail.co.uk",label:"Personal"}],phoneNumbers:[{country:"uz",phoneNumber:"891 543 2053",label:"Mobile"},{country:"uz",phoneNumber:"842 564 3671",label:"Work"},{country:"uz",phoneNumber:"992 491 3514",label:"Home"}],title:"Electromedical Equipment Technician",company:"Zentime",birthday:"1968-10-16T12:00:00.000Z",address:"315 Albemarle Road, Allison, Arkansas, PO6008"},attachments:ol},{id:"32c73a6a-67f2-48a9-b2a1-b23da83187bb",avatar:null,name:"Bolton Obrien",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"boltonobrien@mail.net",label:"Personal"},{email:"obrien.bolton@enersol.ca",label:"Work"}],phoneNumbers:[{country:"tn",phoneNumber:"860 472 2458",label:"Mobile"},{country:"tn",phoneNumber:"887 499 3580",label:"Work"}],title:"Banker Mason",company:"Enersol",birthday:"1968-09-08T12:00:00.000Z",address:"818 Aviation Road, Geyserville, Palau, PO9655"},attachments:ol},{id:"114642a2-ccb7-4cb1-ad2b-5e9b6a0c1d2e",avatar:"assets/images/avatars/male-09.jpg",name:"Barber Johnson",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"barberjohnson@mail.org",label:"Personal"}],phoneNumbers:[{country:"az",phoneNumber:"928 567 2521",label:"Mobile"},{country:"az",phoneNumber:"898 515 2048",label:"Work"},{country:"az",phoneNumber:"935 495 3348",label:"Home"}],title:"Talent Manager",company:"Zounds",birthday:"1967-03-02T12:00:00.000Z",address:"386 Vernon Avenue, Dragoon, North Carolina, PO4559"},attachments:ol},{id:"310ece7d-dbb0-45d6-9e69-14c24e50fe3d",avatar:"assets/images/avatars/male-10.jpg",name:"Cervantes Kramer",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"cervanteskramer@mail.io",label:"Personal"}],phoneNumbers:[{country:"vg",phoneNumber:"998 498 2507",label:"Mobile"},{country:"vg",phoneNumber:"856 477 3445",label:"Work"}],title:"Motor Winder",company:"Xeronk",birthday:"1992-09-04T12:00:00.000Z",address:"238 Rochester Avenue, Lydia, Oklahoma, PO3914"},attachments:ol},{id:"dcc673f6-de59-4715-94ed-8f64663d449b",avatar:"assets/images/avatars/female-19.jpg",name:"Megan Suarez",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"megansuarez@mail.us",label:"Personal"}],phoneNumbers:[{country:"bb",phoneNumber:"875 422 2053",label:"Mobile"},{country:"bb",phoneNumber:"861 487 2597",label:"Work"},{country:"bb",phoneNumber:"873 414 3953",label:"Home"}],title:"Bindery Machine Operator",company:"Cemention",birthday:"1984-09-08T12:00:00.000Z",address:"112 Tillary Street, Camptown, Vermont, PO8827"},attachments:ol},{id:"3e4ca731-d39b-4ad9-b6e0-f84e67f4b74a",background:"assets/images/cards/26-640x480.jpg",name:"Ofelia Ratliff",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"ofeliaratliff@mail.tv",label:"Personal"}],phoneNumbers:[{country:"vu",phoneNumber:"978 546 3699",label:"Mobile"},{country:"vu",phoneNumber:"892 551 2229",label:"Work"},{country:"vu",phoneNumber:"949 495 3479",label:"Home"}],company:"Buzzmaker",birthday:"1988-11-11T12:00:00.000Z",address:"951 Hampton Avenue, Bartonsville, Mississippi, PO4232"},attachments:ol},{id:"2012d4a5-19e4-444d-aaff-1d8b1d853650",avatar:"assets/images/avatars/female-01.jpg",name:"Laurel Parker",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"laurelparker@mail.com",label:"Personal"}],phoneNumbers:[{country:"lu",phoneNumber:"805 502 3677",label:"Mobile"},{country:"lu",phoneNumber:"925 527 2973",label:"Work"},{country:"lu",phoneNumber:"975 495 2977",label:"Home"}],title:"Fundraising Director",company:"Omnigog",birthday:"1987-05-17T12:00:00.000Z",address:"157 Woodhull Street, Rutherford, West Virginia, PO6646"},attachments:ol},{id:"012b8219-74bf-447c-af2c-66904d90a956",avatar:"assets/images/avatars/female-02.jpg",name:"Tracy Delacruz",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"tracydelacruz@mail.name",label:"Personal"},{email:"delacruz.tracy@shepard.me",label:"Work"}],phoneNumbers:[{country:"co",phoneNumber:"974 428 2886",label:"Mobile"}],title:"Bindery Machine Operator",company:"Shepard",birthday:"1963-08-10T12:00:00.000Z",address:"604 Merit Court, Wyano, New Hampshire, PO1641"},attachments:ol},{id:"8b1befd2-66a7-4981-ae52-77f01b382d18",avatar:"assets/images/avatars/female-03.jpg",name:"Jeannette Stanton",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"jeannettestanton@mail.info",label:"Personal"},{email:"stanton.jeannette@zentury.biz",label:"Work"}],phoneNumbers:[{country:"dz",phoneNumber:"947 561 3783",label:"Mobile"},{country:"dz",phoneNumber:"917 463 3737",label:"Work"},{country:"dz",phoneNumber:"835 510 2059",label:"Home"}],title:"Hotel Manager",company:"Zentury",birthday:"1975-09-02T12:00:00.000Z",address:"100 Menahan Street, Snyderville, Kansas, PO1006"},attachments:ol},{id:"844668c3-5e20-4fed-9e3a-7d274f696e61",avatar:"assets/images/avatars/female-04.jpg",name:"Johnnie Cleveland",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"johnniecleveland@mail.co.uk",label:"Personal"},{email:"cleveland.johnnie@viasia.net",label:"Work"}],phoneNumbers:[{country:"au",phoneNumber:"947 468 2942",label:"Mobile"}],title:"Fundraising Director",company:"Viasia",birthday:"1986-03-15T12:00:00.000Z",address:"283 Albany Avenue, Jennings, Rhode Island, PO1646"},attachments:ol},{id:"5a01e870-8be1-45a5-b58a-ec09c06e8f28",avatar:"assets/images/avatars/female-05.jpg",name:"Staci Hyde",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"stacihyde@mail.ca",label:"Personal"}],phoneNumbers:[{country:"id",phoneNumber:"944 525 2944",label:"Mobile"},{country:"id",phoneNumber:"877 500 2506",label:"Work"}],title:"Banker Mason",company:"Zilla",birthday:"1975-04-22T12:00:00.000Z",address:"560 Dooley Street, Ellerslie, Louisiana, PO1005"},attachments:ol},{id:"5ac1f193-f150-45f9-bfe4-b7b4e1a83ff9",avatar:"assets/images/avatars/female-06.jpg",name:"Angela Gallagher",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"angelagallagher@mail.org",label:"Personal"}],phoneNumbers:[{country:"et",phoneNumber:"996 514 3856",label:"Mobile"},{country:"et",phoneNumber:"903 539 2049",label:"Work"},{country:"et",phoneNumber:"938 463 3685",label:"Home"}],title:"Electromedical Equipment Technician",company:"Zenolux",birthday:"1965-08-02T12:00:00.000Z",address:"445 Remsen Avenue, Ruckersville, Delaware, PO2712"},attachments:ol},{id:"995df091-d78a-4bb7-840c-ba6a7d14a1bd",avatar:"assets/images/avatars/male-11.jpg",name:"Hutchinson Levy",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"hutchinsonlevy@mail.io",label:"Personal"}],phoneNumbers:[{country:"et",phoneNumber:"970 546 3452",label:"Mobile"},{country:"et",phoneNumber:"894 438 2430",label:"Work"}],title:"Congressional Representative",company:"Zytrek",birthday:"1978-03-22T12:00:00.000Z",address:"911 Lois Avenue, Epworth, California, PO6557"},attachments:ol},{id:"7184be71-a28f-4f2b-8c45-15f78cf2f825",avatar:"assets/images/avatars/female-05.jpg",name:"Alissa Nelson",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"alissanelson@mail.us",label:"Personal"}],phoneNumbers:[{country:"lu",phoneNumber:"893 600 2639",label:"Mobile"}],title:"Bindery Machine Operator",company:"Emtrak",birthday:"1993-10-19T12:00:00.000Z",address:"514 Sutter Avenue, Shindler, Puerto Rico, PO3862"},attachments:ol},{id:"325d508c-ca49-42bf-b0d5-c4a6b8da3d5c",avatar:null,name:"Oliver Head",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"oliverhead@mail.tv",label:"Personal"}],phoneNumbers:[{country:"bn",phoneNumber:"977 528 3294",label:"Mobile"}],title:"Meteorologist",company:"Rameon",birthday:"1967-01-05T12:00:00.000Z",address:"569 Clermont Avenue, Movico, Marshall Islands, PO7293"},attachments:ol},{id:"c674b6e1-b846-4bba-824b-0b4df0cdec48",avatar:"assets/images/avatars/male-13.jpg",name:"Duran Barr",about:"Hi there! I'm using FuseChat.",details:{emails:[{email:"duranbarr@mail.com",label:"Personal"},{email:"barr.duran@hinway.name",label:"Work"}],phoneNumbers:[{country:"sr",phoneNumber:"857 457 2508",label:"Mobile"},{country:"sr",phoneNumber:"887 522 2146",label:"Work"},{country:"sr",phoneNumber:"947 574 3174",label:"Home"}],title:"Insurance Analyst",company:"Hinway",birthday:"1977-11-06T12:00:00.000Z",address:"103 Chestnut Avenue, Glenbrook, Indiana, PO2578"},attachments:ol}],fc={id:"cfaad35d-07a3-4447-a6c3-d8c3d54fd5df",name:"Brian Hughes",email:"hughes.brian@company.com",avatar:"assets/images/avatars/brian-hughes.jpg",about:"Hi there! I'm using FuseChat."},Rh=[(()=>{class Et{constructor(Fe){this._fuseMockApiService=Fe,this._texts=Um,this._contacts=cm,this._messages=Kf,this._profile=fc,this.registerHandlers(),this._texts=this._texts.map(Zt=>({...Zt,contact:this._contacts.find(Ln=>Ln.id===Zt.contactId),messages:this._messages.map(Ln=>({...Ln,textId:Zt.id,contactId:"me"===Ln.contactId?this._profile.id:Zt.contactId,isMine:"me"===Ln.contactId}))}))}registerHandlers(){this._fuseMockApiService.onGet("api/apps/text/texts").reply(()=>[200,(0,ds.cloneDeep)(this._texts)]),this._fuseMockApiService.onGet("api/apps/text/text").reply(({request:Fe})=>{const Zt=Fe.params.get("id");return[200,(0,ds.cloneDeep)(this._texts).find(Jo=>Jo.id===Zt)]}),this._fuseMockApiService.onPatch("api/apps/text/text").reply(({request:Fe})=>{const Zt=Fe.body.id,Ln=(0,ds.cloneDeep)(Fe.body.text);let So=null;return this._texts.forEach((Jo,Hr,Es)=>{Jo.id===Zt&&(Es[Hr]=(0,ds.assign)({},Es[Hr],Ln),So=Es[Hr])}),[200,So]}),this._fuseMockApiService.onGet("api/apps/text/contacts").reply(()=>{let Fe=(0,ds.cloneDeep)(this._contacts);return Fe.sort((Zt,Ln)=>Zt.name.localeCompare(Ln.name)),Fe=Fe.map(Zt=>(0,ds.omit)(Zt,["details","attachments"])),[200,Fe]}),this._fuseMockApiService.onGet("api/apps/text/contact").reply(({request:Fe})=>{const Zt=Fe.params.get("id");return[200,(0,ds.cloneDeep)(this._contacts).find(Jo=>Jo.id===Zt)]}),this._fuseMockApiService.onGet("api/apps/text/profile").reply(()=>[200,(0,ds.cloneDeep)(this._profile)])}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.LFG(Oh))};static#t=this.\u0275prov=n.Yz7({token:Et,factory:Et.\u0275fac,providedIn:"root"})}return Et})()],hh={showDelay:0,hideDelay:0,touchendHideDelay:1500,disableTooltipInteractivity:!0};let Dp=(()=>{class Et{constructor(Fe){(0,Bm.n)(Fe)}static#e=this.\u0275fac=function(Zt){return new(Zt||Et)(n.LFG(n.zs3))};static#t=this.\u0275mod=n.oAB({type:Et,bootstrap:[xm]});static#n=this.\u0275inj=n.cJS({providers:[Nt.J,e.ki,Bd,Cp.y,{provide:o.TP,useClass:He,multi:!0},{provide:o.TP,useClass:Xn,multi:!0},{provide:gg.Jm,useValue:hh},cr,Pt.x0,Da._,Rt.t,{provide:n.qLn,useClass:Nf}],imports:[o.JF,o.Ed,Be.hY,Ht.Bz.forRoot(Ep,{onSameUrlNavigation:"reload"}),e.b2,ui,bd.forRoot(Rh),Je.L,Xs,$e.forRoot(Sm),ft.zd,ft.ef,io,nc,Fr.uh.forRoot(),Ve.aw.forRoot({loader:{provide:Ve.Zw,useClass:Zd,deps:[o.eN]}}),fs.I,Wi.y.forRoot(),jr.Q,Ru.O,up.XK,S_.hO.initializeApp(eg.N.firebase),Fr.uh]})}return Et})();eg.N.production&&(0,n.G48)(),e.q6().bootstrapModule(Dp).catch(Et=>console.error(Et))},12437:(he,y,i)=>{"use strict";i.d(y,{g:()=>Mt});var e=i(15861),n=i(65879),o=i(94748),a=i(78645),l=i(59773),u=i(48180),d=i(66878),s=i(82826),A=i(74187),_=i(56223),C=i(83814),R=i(82012),x=i(84187),f=i(42400),k=i(30617),w=i(94505),g=i(81274),M=i(19347);let p=(()=>{class pt{constructor(tt,Ne,vt,ln){this.dialogRef=tt,this.matData=Ne,this.advancedSearchService=vt,this.utilityService=ln,this.saveInfo={advanceSearchId:0,title:"",shareWith:[],jsonValue:"",entity:""},this._unsubscribeAll=new a.x}ngOnInit(){Object.assign(this.saveInfo,this.matData),this.advancedSearchService.shareWithPersonList({advanceSearchId:this.saveInfo.advanceSearchId}).pipe((0,l.R)(this._unsubscribeAll)).subscribe(tt=>{const Ne=tt.data.filter(vt=>vt.isSelect).map(vt=>vt.personId);this.saveInfo.shareWith=Ne,this.officeStaffList=tt})}saveSearch(){this.saveInfo.title?this.advancedSearchService.saveAdvancedSearch(this.saveInfo).pipe((0,l.R)(this._unsubscribeAll)).subscribe(tt=>{null==tt?this.utilityService.callSnackBar("savedSearchAlreadyExists","warning"):this.dialogRef.close(tt)}):this.utilityService.callSnackBar("Please provide a search title.","warning")}closeDialog(){this.dialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Ne){return new(Ne||pt)(n.Y36(d.hV),n.Y36(d.eJ),n.Y36(s.i),n.Y36(A.t))};static#t=this.\u0275cmp=n.Xpm({type:pt,selectors:[["zen-save-search-form"]],decls:17,vars:7,consts:[[1,"dialog-content-wrapper","confirm-dialog"],[1,"mat-accent","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","space-between center"],[1,"title","dialog-title"],["mat-button","","aria-label","Close dialog","tabindex","-1",1,"mat-icon-button",3,"click"],[1,"white-fg"],["mat-dialog-content","",1,"p-12","m-0"],["fxLayout","column"],["advancedSaveForm","ngForm"],[1,"w-100-p"],["matInput","","name","title","maxlength","100",3,"placeholder","ngModel","ngModelChange"],["name","shareWith","nameField","name","valueField","personId",1,"no-padding-head","chip-black","overflow-hidden",3,"ngModel","placeholder","config","multiple","ngModelChange"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","end center",1,"m-0","p-12"],["mat-raised-button","","color","accent",3,"click"]],template:function(Ne,vt){1&Ne&&(n.TgZ(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),n._uU(4),n.qZA(),n.TgZ(5,"button",4),n.NdJ("click",function(){return vt.closeDialog()}),n.TgZ(6,"mat-icon",5),n._uU(7,"close"),n.qZA()()()(),n.TgZ(8,"div",6)(9,"form",7,8)(11,"mat-form-field",9)(12,"input",10),n.NdJ("ngModelChange",function(jn){return vt.saveInfo.title=jn}),n.qZA()(),n.TgZ(13,"zen-select",11),n.NdJ("ngModelChange",function(jn){return vt.saveInfo.shareWith=jn}),n.qZA()()(),n.TgZ(14,"div",12)(15,"button",13),n.NdJ("click",function(){return vt.saveSearch()}),n._uU(16,"Save"),n.qZA()()()),2&Ne&&(n.xp6(4),n.Oqu("Save Search"),n.xp6(8),n.Q6J("placeholder","Title")("ngModel",vt.saveInfo.title),n.xp6(1),n.Q6J("ngModel",vt.saveInfo.shareWith)("placeholder","Share With")("config",vt.officeStaffList)("multiple",!0))},dependencies:[_._Y,_.Fj,_.JJ,_.JL,_.nD,_.On,_.F,C.xw,C.Wh,C.yH,R.i,x.v_,f.k0,k.Hw,w.eB,g.Ye,g.rD,M.xY,M.H8]})}return pt})(),E=(()=>{class pt{constructor(tt){this.dialogRef=tt,this._unsubscribeAll=new a.x}ngOnInit(){}closeDialog(tt){this.dialogRef.close({action:tt})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Ne){return new(Ne||pt)(n.Y36(d.hV))};static#t=this.\u0275cmp=n.Xpm({type:pt,selectors:[["zen-save-search-action"]],decls:17,vars:0,consts:[[1,"dialog-content-wrapper","confirm-dialog"],[1,"mat-accent","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","space-between center"],[1,"title","dialog-title"],["mat-dialog-content","",1,"p-12","m-0"],["fxlayout","column",1,"h3","p-0"],["fxLayout","row","fxLayoutAlign","start center"],[1,"blue-fg","mr-8"],["fxLayout","row","fxLayoutGap","12px",1,"m-0","p-12","mat-dialog-actions"],["mat-raised-button","","fxFlex","","color","accent",3,"click"]],template:function(Ne,vt){1&Ne&&(n.TgZ(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),n._uU(4,"Save Search"),n.qZA()()(),n.TgZ(5,"div",4)(6,"mat-dialog-content",5)(7,"div",6)(8,"mat-icon",7),n._uU(9,"info"),n.qZA(),n.TgZ(10,"span"),n._uU(11,"Would you like to create a new search or update the existing one?"),n.qZA()()()(),n.TgZ(12,"div",8)(13,"button",9),n.NdJ("click",function(){return vt.closeDialog("add")}),n._uU(14,"Create"),n.qZA(),n.TgZ(15,"button",9),n.NdJ("click",function(){return vt.closeDialog("edit")}),n._uU(16,"Update"),n.qZA()()())},dependencies:[C.xw,C.SQ,C.Wh,C.yH,k.Hw,w.eB,g.Ye,g.rD,M.xY]})}return pt})();var b=i(36028),I=i(60703),L=i(78337),D=i(57493),F=i(710),P=i(59834);const O=function(){return{gridViewOnly:!0,virtualMode:!0}};let U=(()=>{class pt{constructor(tt,Ne,vt,ln,jn,Pi){this.data=tt,this.dialogRef=Ne,this.dialog=vt,this.fs=ln,this._cs=jn,this.us=Pi,this.isIndeterminate=!1,this.allRowsSelected=!1,this.updatedShareEntities=[],this._unSubscribeAll=new a.x,this.gridData=tt.shareEntityData,this.favoriteId=tt.favoriteId,this.title=tt.shareEntityData.title,this.selection=new L.Ov(!0,[])}ngOnInit(){this.sessionData=JSON.parse(sessionStorage.getItem("headerParams")),this.currentOfficeId=this.sessionData.officeId}closeDialog(){this.dialogRef.close()}onEntityChecked(tt){tt.dataItem.isSelect=tt.event.checked,this.selection.toggle(tt.dataItem),this.selection.hasValue()?this.selection.selected.length==this.gridData.data.length?(this.allRowsSelected=!0,this.isIndeterminate=!1):this.isIndeterminate=!0:(this.allRowsSelected=!1,this.isIndeterminate=!1)}favoriteShare(){this.updatedShareEntities=this.gridData.data.filter(Ne=>1==Ne.isSelect).map(Ne=>Ne.personId);const tt={data:JSON.stringify(this.updatedShareEntities),favoriteId:this.favoriteId};this.fs.shareFavoriteTsk(tt).subscribe(Ne=>{Ne&&(this.us.callSnackBar("favoriteGroupShareUpdatedSuccessfully","success"),this.dialogRef.close(Ne))},Ne=>{this.us.callSnackBar(Ne,"success"),this.dialogRef.close()})}onAllEntitySelection(tt){this.selection.clear(),tt.checked?(this.selection.select(...this.gridData.data),this.gridData.data.map(Ne=>{Ne.isSelect=!0}),this.allRowsSelected=!0):(this.gridData.data.map(Ne=>Ne.isSelect=!1),this.selection.deselect(...this.gridData.data),this.allRowsSelected=!1)}ngOnDestroy(){this._unSubscribeAll.next(),this._unSubscribeAll.complete()}static#e=this.\u0275fac=function(Ne){return new(Ne||pt)(n.Y36(d.eJ),n.Y36(d.hV),n.Y36(d.on),n.Y36(D.e),n.Y36(F.v),n.Y36(A.t))};static#t=this.\u0275cmp=n.Xpm({type:pt,selectors:[["zen-favorite-share"]],decls:18,vars:14,consts:[[1,"dialog-content-wrapper"],[1,"mat-accent","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","space-between center"],[1,"title","dialog-title"],["mat-icon-button","","aria-label","Close dialog",3,"click"],["mat-dialog-content","",1,"p-8","m-0","status-update-dialog"],["scrollView",""],["name","shareFavoriteForm","fxLayout","column","fxFlex","","autocomplete","off",1,"w-100-p",3,"keydown.enter"],["shareCalendarForm","ngForm"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","start start","fxLayoutGap","8px","fxLayoutGap.xs","0"],["fxFlex","100"],[3,"data","slideVisible","clientSideFiltering","showFilterToggle","pageable","clientSidePaging","sortable","clientSorting","filterToggleValue","isIndeterminate","config","allRowsSelected","onRowCheckboxChangeFn","onHeaderCheckboxChangeFn"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","end center",1,"m-0","p-8","mat-dialog-actions"],["mat-raised-button","","aria-label","SAVE",1,"save-button","mat-accent",3,"click"]],template:function(Ne,vt){1&Ne&&(n.TgZ(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),n._uU(4),n.qZA(),n.TgZ(5,"button",4),n.NdJ("click",function(){return vt.closeDialog()}),n.TgZ(6,"mat-icon"),n._uU(7,"close"),n.qZA()()()(),n.TgZ(8,"div",5,6)(10,"form",7,8),n.NdJ("keydown.enter",function(jn){return jn.preventDefault()}),n.TgZ(12,"div",9)(13,"div",10)(14,"zen-grid",11),n.NdJ("onRowCheckboxChangeFn",function(jn){return vt.onEntityChecked(jn)})("onHeaderCheckboxChangeFn",function(jn){return vt.onAllEntitySelection(jn)}),n.qZA()()()()(),n.TgZ(15,"div",12)(16,"button",13),n.NdJ("click",function(){return vt.favoriteShare()}),n._uU(17," Save "),n.qZA()()()),2&Ne&&(n.xp6(4),n.hij("Share Favorite : ",vt.title,""),n.xp6(10),n.Q6J("data",vt.gridData)("slideVisible",!1)("clientSideFiltering",!0)("showFilterToggle",!0)("pageable",!1)("clientSidePaging",!1)("sortable",!1)("clientSorting",!1)("filterToggleValue",!0)("isIndeterminate",vt.isIndeterminate)("config",n.DdM(13,O))("allRowsSelected",vt.allRowsSelected))},dependencies:[_._Y,_.JL,_.F,C.xw,C.SQ,C.Wh,C.yH,P.H,k.Hw,w.eB,g.Ye,g.rD,d.Rb,d.ev],styles:[".favorite-share-dialog .dialog-content-wrapper{width:65vw;max-height:85vh;display:flex;flex-direction:column}.favorite-share-dialog .dialog-content-wrapper .status-update-dialog{max-height:75vh}.favorite-share-dialog .dialog-content-wrapper .status-update-dialog kendo-grid{max-height:calc(75vh - 191px)}\n"],encapsulation:2})}return pt})();var V=i(96814),K=i(62232),X=i(61371),me=i(26177),J=i(30481),Q=i(48247),re=i(38034),de=i(21242),te=i(51838),j=i(33650),H=i(89515);const z=["advanceForm"],q=["savedSearchDropdown"],se=["favoritehRef"];function ne(pt,Lt){if(1&pt){const tt=n.EpF();n.TgZ(0,"div",3)(1,"mat-slide-toggle",4),n.NdJ("ngModelChange",function(vt){n.CHM(tt);const ln=n.oxw();return n.KtG(ln.showFavourite=vt)})("change",function(vt){n.CHM(tt);const ln=n.oxw();return n.KtG(ln.toggleFavorite(vt))}),n._uU(2),n.qZA()()}if(2&pt){const tt=n.oxw();n.xp6(1),n.Q6J("ngModel",tt.showFavourite),n.xp6(1),n.hij(" ","Favorite Search"," ")}}function _e(pt,Lt){if(1&pt){const tt=n.EpF();n.TgZ(0,"mat-chip",34),n.NdJ("removed",function(){const vt=n.CHM(tt),ln=vt.$implicit,jn=vt.index,Pi=n.oxw(2);return n.KtG(Pi.removeChip(ln,"include",jn))}),n.TgZ(1,"span",35),n._uU(2),n.qZA(),n.TgZ(3,"mat-icon",36),n._uU(4,"cancel"),n.qZA()()}if(2&pt){const tt=Lt.$implicit;n.Q6J("selectable",!0)("removable",!0),n.xp6(1),n.s9C("matTooltip",tt),n.xp6(1),n.Oqu(tt)}}const ge=function(){return["name"]};function Ce(pt,Lt){if(1&pt){const tt=n.EpF();n.TgZ(0,"div",20)(1,"zen-select",37),n.NdJ("ngModelChange",function(vt){n.CHM(tt);const ln=n.oxw(2);return n.KtG(ln.searchMode=vt)}),n.qZA()()}if(2&pt){const tt=n.oxw(2);n.xp6(1),n.Q6J("ngModel",tt.searchMode)("placeholder","Search Type")("data",tt.searchModeList)("columns",n.DdM(4,ge))}}function Te(pt,Lt){if(1&pt){const tt=n.EpF();n.TgZ(0,"div",38)(1,"div",22)(2,"mat-slide-toggle",39),n.NdJ("ngModelChange",function(vt){n.CHM(tt);const ln=n.oxw(2);return n.KtG(ln.advancedSearchFields.applyFilter=vt)}),n._uU(3),n.qZA()()()}if(2&pt){const tt=n.oxw(2);n.xp6(2),n.Q6J("ngModel",tt.advancedSearchFields.applyFilter),n.xp6(1),n.hij(" ","Apply Filter"," ")}}function De(pt,Lt){if(1&pt){const tt=n.EpF();n.TgZ(0,"mat-chip",34),n.NdJ("removed",function(){const vt=n.CHM(tt),ln=vt.$implicit,jn=vt.index,Pi=n.oxw(3);return n.KtG(Pi.removeChip(ln,"exclude",jn))}),n.TgZ(1,"span",35),n._uU(2),n.qZA(),n.TgZ(3,"mat-icon",36),n._uU(4,"cancel"),n.qZA()()}if(2&pt){const tt=Lt.$implicit;n.Q6J("selectable",!0)("removable",!0),n.xp6(1),n.s9C("matTooltip",tt),n.xp6(1),n.Oqu(tt)}}function fe(pt,Lt){if(1&pt){const tt=n.EpF();n.TgZ(0,"mat-chip",34),n.NdJ("removed",function(){const vt=n.CHM(tt),ln=vt.$implicit,jn=vt.index,Pi=n.oxw(3);return n.KtG(Pi.removeChip(ln,"optional",jn))}),n.TgZ(1,"span",35),n._uU(2),n.qZA(),n.TgZ(3,"mat-icon",36),n._uU(4,"cancel"),n.qZA()()}if(2&pt){const tt=Lt.$implicit;n.Q6J("selectable",!0)("removable",!0),n.xp6(1),n.s9C("matTooltip",tt),n.xp6(1),n.Oqu(tt)}}function xe(pt,Lt){if(1&pt){const tt=n.EpF();n.TgZ(0,"div",42)(1,"zen-select",45),n.NdJ("ngModelChange",function(vt){n.CHM(tt);const ln=n.oxw(3);return n.KtG(ln.advancedSearchFields.selectedEntities=vt)})("clickEvent",function(vt){n.CHM(tt);const ln=n.oxw(3);return n.KtG(ln.isEntitySelected(vt))})("blurEvent",function(){n.CHM(tt);const vt=n.oxw(3);return n.KtG(vt.getAdvancedSearchParameters(vt.advancedSearchFields.selectedEntities))}),n.ALo(2,"translate"),n.qZA()()}if(2&pt){const tt=n.oxw(3);n.xp6(1),n.s9C("placeholder",n.lcZ(2,5,"Entity")),n.Q6J("data",tt.entities)("multiple",!0)("ngModel",tt.advancedSearchFields.selectedEntities)("columns",n.DdM(7,ge))}}const Oe=function(){return[]};function Le(pt,Lt){if(1&pt){const tt=n.EpF();n.TgZ(0,"div")(1,"mat-form-field",14)(2,"mat-chip-list",40,41),n.YNc(4,De,5,4,"mat-chip",17),n.TgZ(5,"input",18),n.NdJ("matChipInputTokenEnd",function(vt){n.CHM(tt);const ln=n.oxw(2);return n.KtG(ln.addChip(vt,"exclude"))}),n.ALo(6,"translate"),n.qZA()()(),n.TgZ(7,"div",42)(8,"mat-form-field",14)(9,"mat-chip-list",40,43),n.YNc(11,fe,5,4,"mat-chip",17),n.TgZ(12,"input",18),n.NdJ("matChipInputTokenEnd",function(vt){n.CHM(tt);const ln=n.oxw(2);return n.KtG(ln.addChip(vt,"optional"))}),n.ALo(13,"translate"),n.qZA()()()(),n.YNc(14,xe,3,8,"div",44),n.qZA()}if(2&pt){const tt=n.MAs(3),Ne=n.MAs(10),vt=n.oxw(2);n.xp6(4),n.Q6J("ngForOf",vt.advancedSearchFields.exclude?vt.advancedSearchFields.exclude.split(","):n.DdM(15,Oe)),n.xp6(1),n.Q6J("placeholder",n.lcZ(6,11,"exclude"))("matChipInputFor",tt)("matChipInputSeparatorKeyCodes",vt.separatorKeysCodes)("matChipInputAddOnBlur",!0),n.xp6(6),n.Q6J("ngForOf",vt.advancedSearchFields.optional?vt.advancedSearchFields.optional.split(","):n.DdM(16,Oe)),n.xp6(1),n.Q6J("placeholder",n.lcZ(13,13,"optional"))("matChipInputFor",Ne)("matChipInputSeparatorKeyCodes",vt.separatorKeysCodes)("matChipInputAddOnBlur",!0),n.xp6(2),n.Q6J("ngIf",vt.isGlobal||(null==vt.displayConfig||null==vt.displayConfig.visibleFields?null:vt.displayConfig.visibleFields.includes("entity")))}}function Gt(pt,Lt){if(1&pt&&(n.TgZ(0,"legend",50)(1,"span",51),n._uU(2),n.ALo(3,"translate"),n.qZA()()),2&pt){const tt=n.oxw().$implicit;n.xp6(2),n.Oqu(n.lcZ(3,1,tt.header))}}function Ut(pt,Lt){if(1&pt&&(n.TgZ(0,"span",60),n._uU(1),n.qZA()),2&pt){const tt=n.oxw().$implicit;n.xp6(1),n.hij(" ",tt," ")}}function An(pt,Lt){1&pt&&n.GkF(0)}const $n=function(pt,Lt,tt,Ne){return{paramItem:pt,searchParam:Lt,outerIndex:tt,innerIndex:Ne}};function xn(pt,Lt){if(1&pt&&(n.ynx(0),n.YNc(1,An,1,0,"ng-container",61),n.BQk()),2&pt){const tt=n.oxw().$implicit,Ne=n.oxw(3).index,vt=n.oxw(),ln=vt.$implicit,jn=vt.index;n.oxw();const Pi=n.MAs(29);n.xp6(1),n.Q6J("ngTemplateOutlet",Pi)("ngTemplateOutletContext",n.l5B(2,$n,tt,ln,jn,Ne))}}function mt(pt,Lt){if(1&pt&&(n.ynx(0),n.YNc(1,xn,2,7,"ng-container",2),n.BQk()),2&pt){const tt=Lt.$implicit,Ne=n.oxw(2).$implicit;n.xp6(1),n.Q6J("ngIf",Ne==="*"+tt.name+"*")}}function ut(pt,Lt){if(1&pt&&n.YNc(0,mt,2,1,"ng-container",26),2&pt){const tt=n.oxw(2).$implicit;n.Q6J("ngForOf",tt)}}function Wt(pt,Lt){if(1&pt&&(n.ynx(0),n.YNc(1,Ut,2,1,"span",58),n.YNc(2,ut,1,1,"ng-template",null,59,n.W1O),n.BQk()),2&pt){const tt=Lt.$implicit,Ne=n.MAs(3);n.xp6(1),n.Q6J("ngIf","*"!=tt.charAt(0)&&"*"!=tt.charAt(tt.length-1))("ngIfElse",Ne)}}function dn(pt,Lt){if(1&pt){const tt=n.EpF();n.TgZ(0,"div",52)(1,"div",53)(2,"div",54)(3,"div",55),n.YNc(4,Wt,4,2,"ng-container",26),n.qZA()(),n.TgZ(5,"div",56)(6,"mat-icon",57),n.NdJ("click",function(){const ln=n.CHM(tt).index,jn=n.oxw().index,Pi=n.oxw(2);return n.KtG(Pi.onSearchParameterRemoved(jn,ln))}),n._uU(7," remove_circle_outline"),n.qZA()()()()}if(2&pt){const tt=n.oxw().$implicit;n.xp6(4),n.Q6J("ngForOf",tt.templateArray),n.xp6(2),n.s9C("id","remove_button_"+tt.header)}}function sn(pt,Lt){if(1&pt){const tt=n.EpF();n.TgZ(0,"div",62)(1,"div",63),n.NdJ("click",function(){n.CHM(tt);const vt=n.oxw().index,ln=n.oxw(2);return n.KtG(ln.onSearchParameterAdded(vt))}),n.TgZ(2,"mat-icon",64),n._uU(3," add_circle_outline"),n.qZA(),n.TgZ(4,"span"),n._uU(5,"Add more parameter"),n.qZA()()()}}function fn(pt,Lt){if(1&pt&&(n.ynx(0),n.TgZ(1,"div")(2,"fieldset",46),n.YNc(3,Gt,4,3,"legend",47),n.YNc(4,dn,8,2,"div",48),n.YNc(5,sn,6,0,"div",49),n.qZA()(),n.BQk()),2&pt){const tt=Lt.$implicit,Ne=n.oxw(2);n.xp6(1),n.Gre("all-parameter-container p-16 zenauto-search-",tt.header,""),n.xp6(1),n.Q6J("ngModelGroup",Ne.advancedSearchFields[tt.name]),n.xp6(1),n.Q6J("ngIf",tt.header),n.xp6(1),n.Q6J("ngForOf",tt.parameter),n.xp6(1),n.Q6J("ngIf",tt.allowMultiple)}}function yi(pt,Lt){if(1&pt){const tt=n.EpF();n.TgZ(0,"mat-chip",34),n.NdJ("removed",function(){const ln=n.CHM(tt).index,jn=n.oxw(3),Pi=jn.innerIndex,go=jn.searchParam,si=jn.paramItem,ot=n.oxw(2);return n.KtG(ot.removeDynamicChip(ln,Pi,go,si))}),n.TgZ(1,"span",35),n._uU(2),n.qZA(),n.TgZ(3,"mat-icon",36),n._uU(4,"cancel"),n.qZA()()}if(2&pt){const tt=Lt.$implicit;n.Q6J("selectable",!0)("removable",!0),n.xp6(1),n.s9C("matTooltip",tt),n.xp6(1),n.Oqu(tt)}}function nn(pt,Lt){if(1&pt){const tt=n.EpF();n.TgZ(0,"mat-form-field",72)(1,"mat-chip-list",null,73),n.YNc(3,yi,5,4,"mat-chip",17),n.TgZ(4,"input",74),n.NdJ("matChipInputTokenEnd",function(vt){n.CHM(tt);const ln=n.oxw(2),jn=ln.outerIndex,Pi=ln.innerIndex,go=ln.searchParam,si=ln.paramItem,ot=n.oxw(2);return n.KtG(ot.addDynamicChip(vt,jn,Pi,go,si))}),n.ALo(5,"translate"),n.qZA()()()}if(2&pt){const tt=n.MAs(2),Ne=n.oxw(2),vt=Ne.searchParam,ln=Ne.innerIndex,jn=Ne.paramItem,Pi=Ne.outerIndex,go=n.oxw(2);n.xp6(3),n.Q6J("ngForOf",(null==go.advancedSearchFields[vt.name][ln][jn.name]?null:go.advancedSearchFields[vt.name][ln][jn.name].split(","))||n.DdM(9,Oe)),n.xp6(1),n.Q6J("name",Pi+jn.name+ln)("placeholder",n.lcZ(5,7,jn.placeholder))("matChipInputFor",tt)("matChipInputSeparatorKeyCodes",go.separatorKeysCodes)("matChipInputAddOnBlur",!0)("required",jn.required)}}function Mi(pt,Lt){if(1&pt&&(n.TgZ(0,"mat-label"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&pt){const tt=n.oxw(3).paramItem;n.xp6(1),n.Oqu(n.lcZ(2,1,tt.label))}}function mi(pt,Lt){if(1&pt){const tt=n.EpF();n.TgZ(0,"mat-form-field",55),n.YNc(1,Mi,3,3,"mat-label",2),n.TgZ(2,"input",75),n.NdJ("ngModelChange",function(vt){n.CHM(tt);const ln=n.oxw(2),jn=ln.searchParam,Pi=ln.innerIndex,go=ln.paramItem,si=n.oxw(2);return n.KtG(si.advancedSearchFields[jn.name][Pi][go.name]=vt)}),n.ALo(3,"translate"),n.qZA()()}if(2&pt){const tt=n.oxw(2),Ne=tt.paramItem,vt=tt.outerIndex,ln=tt.innerIndex,jn=tt.searchParam,Pi=n.oxw(2);n.xp6(1),n.Q6J("ngIf",Ne.label),n.xp6(1),n.Q6J("name",vt+Ne.name+ln)("placeholder",n.lcZ(3,6,Ne.placeholder))("ngModel",Pi.advancedSearchFields[jn.name][ln][Ne.name])("type","Number"==Ne.dataType?"number":"text")("required",Ne.required)}}const Eo=function(){return["label"]};function Ko(pt,Lt){if(1&pt){const tt=n.EpF();n.TgZ(0,"zen-select",76),n.NdJ("selectEvent",function(){n.CHM(tt);const vt=n.oxw(4);return n.KtG(vt.markFormAsDirty())})("ngModelChange",function(vt){n.CHM(tt);const ln=n.oxw(2),jn=ln.searchParam,Pi=ln.innerIndex,go=ln.paramItem,si=n.oxw(2);return n.KtG(si.advancedSearchFields[jn.name][Pi][go.name]=vt)}),n.ALo(1,"translate"),n.qZA()}if(2&pt){const tt=n.oxw(2),Ne=tt.paramItem,vt=tt.outerIndex,ln=tt.innerIndex,jn=tt.searchParam,Pi=n.oxw(2);let go;n.s9C("placeholder",n.lcZ(1,6,Ne.label)),n.Q6J("name",vt+Ne.name+ln)("data",Ne.data)("columns",null!==(go=Ne.columns)&&void 0!==go?go:n.DdM(8,Eo))("required",Ne.required)("ngModel",Pi.advancedSearchFields[jn.name][ln][Ne.name])}}function xo(pt,Lt){if(1&pt){const tt=n.EpF();n.TgZ(0,"zen-select",77),n.NdJ("selectEvent",function(){n.CHM(tt);const vt=n.oxw(2),ln=vt.searchParam,jn=vt.innerIndex,Pi=vt.paramItem,go=n.oxw(2);return n.KtG(go.setMultiselectLabel(ln.name,jn,Pi.name,go.advancedSearchFields[ln.name][jn][Pi.name][0],Pi.data))})("ngModelChange",function(vt){n.CHM(tt);const ln=n.oxw(2),jn=ln.searchParam,Pi=ln.innerIndex,go=ln.paramItem,si=n.oxw(2);return n.KtG(si.advancedSearchFields[jn.name][Pi][go.name]=vt)}),n.ALo(1,"translate"),n.qZA()}if(2&pt){const tt=n.oxw(2),Ne=tt.paramItem,vt=tt.outerIndex,ln=tt.innerIndex,jn=tt.searchParam,Pi=n.oxw(2);n.s9C("placeholder",n.lcZ(1,7,Ne.label)),n.Q6J("name",vt+Ne.name+ln)("data",Ne.data)("columns",n.DdM(9,Eo))("multiple",!0)("required",Ne.required)("ngModel",Pi.advancedSearchFields[jn.name][ln][Ne.name])}}function Bn(pt,Lt){if(1&pt&&(n.TgZ(0,"mat-label"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&pt){const tt=n.oxw(3).paramItem;n.xp6(1),n.Oqu(n.lcZ(2,1,tt.label))}}function Xt(pt,Lt){if(1&pt){const tt=n.EpF();n.TgZ(0,"mat-form-field",55),n.YNc(1,Bn,3,3,"mat-label",2),n.TgZ(2,"input",78),n.NdJ("ngModelChange",function(vt){n.CHM(tt);const ln=n.oxw(2),jn=ln.searchParam,Pi=ln.innerIndex,go=ln.paramItem,si=n.oxw(2);return n.KtG(si.advancedSearchFields[jn.name][Pi][go.name]=vt)}),n.ALo(3,"translate"),n.qZA(),n._UZ(4,"mat-datepicker-toggle",79)(5,"mat-datepicker",null,80),n.qZA()}if(2&pt){const tt=n.MAs(6),Ne=n.oxw(2),vt=Ne.paramItem,ln=Ne.outerIndex,jn=Ne.innerIndex,Pi=Ne.searchParam,go=n.oxw(2);n.xp6(1),n.Q6J("ngIf",vt.label),n.xp6(1),n.Q6J("name",ln+vt.name+jn)("placeholder",n.lcZ(3,7,vt.placeholder))("matDatepicker",tt)("ngModel",go.advancedSearchFields[Pi.name][jn][vt.name])("required",vt.required),n.xp6(2),n.Q6J("for",tt)}}function Ji(pt,Lt){if(1&pt&&(n.TgZ(0,"mat-radio-button",83),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&pt){const tt=Lt.$implicit;n.Q6J("value",tt.value),n.xp6(1),n.hij(" ",n.lcZ(2,2,tt.label)," ")}}function En(pt,Lt){if(1&pt){const tt=n.EpF();n.TgZ(0,"mat-radio-group",81),n.NdJ("ngModelChange",function(vt){n.CHM(tt);const ln=n.oxw(2),jn=ln.searchParam,Pi=ln.innerIndex,go=ln.paramItem,si=n.oxw(2);return n.KtG(si.advancedSearchFields[jn.name][Pi][go.name]=vt)}),n.YNc(1,Ji,3,4,"mat-radio-button",82),n.qZA()}if(2&pt){const tt=n.oxw(2),Ne=tt.outerIndex,vt=tt.paramItem,ln=tt.innerIndex,jn=tt.searchParam,Pi=n.oxw(2);n.Q6J("name",Ne+vt.name+ln)("ngModel",Pi.advancedSearchFields[jn.name][ln][vt.name]),n.xp6(1),n.Q6J("ngForOf",vt.data)}}function un(pt,Lt){if(1&pt){const tt=n.EpF();n.TgZ(0,"mat-slide-toggle",84),n.NdJ("ngModelChange",function(vt){n.CHM(tt);const ln=n.oxw(2),jn=ln.searchParam,Pi=ln.innerIndex,go=ln.paramItem,si=n.oxw(2);return n.KtG(si.advancedSearchFields[jn.name][Pi][go.name]=vt)}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&pt){const tt=n.oxw(2),Ne=tt.outerIndex,vt=tt.paramItem,ln=tt.innerIndex,jn=tt.searchParam,Pi=n.oxw(2);n.Q6J("name",Ne+vt.name+ln)("ngModel",Pi.advancedSearchFields[jn.name][ln][vt.name]),n.xp6(1),n.hij(" ",n.lcZ(2,3,vt.name)," ")}}function Ki(pt,Lt){if(1&pt&&(n.ynx(0),n.YNc(1,nn,6,10,"mat-form-field",66),n.YNc(2,mi,4,8,"mat-form-field",67),n.YNc(3,Ko,2,9,"zen-select",68),n.YNc(4,xo,2,10,"zen-select",69),n.YNc(5,Xt,7,9,"mat-form-field",67),n.YNc(6,En,2,3,"mat-radio-group",70),n.YNc(7,un,3,5,"mat-slide-toggle",71),n.BQk()),2&pt){const tt=n.oxw().paramItem;n.xp6(1),n.Q6J("ngIf","Chip"==tt.dataType),n.xp6(1),n.Q6J("ngIf","Number"==tt.dataType||"String"==tt.dataType),n.xp6(1),n.Q6J("ngIf","Select"==tt.dataType),n.xp6(1),n.Q6J("ngIf","MultiSelect"==tt.dataType),n.xp6(1),n.Q6J("ngIf","Date"==tt.dataType),n.xp6(1),n.Q6J("ngIf","Radio"==tt.dataType),n.xp6(1),n.Q6J("ngIf","Toggle"==tt.dataType)}}function Fn(pt,Lt){if(1&pt&&(n.TgZ(0,"div",65),n.YNc(1,Ki,8,7,"ng-container",2),n.qZA()),2&pt){const tt=Lt.searchParam,Ne=n.oxw(2);n.xp6(1),n.Q6J("ngIf",Ne.advancedSearchFields[tt.name])}}function oi(pt,Lt){if(1&pt){const tt=n.EpF();n.TgZ(0,"button",85),n.NdJ("click",function(){n.CHM(tt);const vt=n.oxw(2);return n.KtG(vt.onDeleteClick())}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&pt&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"delete")," "))}const It=function(){return["title"]},Bt=function(){return{standalone:!0}};function xt(pt,Lt){if(1&pt){const tt=n.EpF();n.TgZ(0,"div",5)(1,"div",6)(2,"form",7,8)(4,"div",9)(5,"div",10)(6,"a",11),n.NdJ("click",function(){n.CHM(tt);const vt=n.oxw();return n.KtG(vt.clearAdvancedSearch(!0))}),n._uU(7,"Clear Search"),n.qZA(),n.TgZ(8,"zen-select",12,13),n.NdJ("ngModelChange",function(vt){n.CHM(tt);const ln=n.oxw();return n.KtG(ln.advancedSearchId=vt)})("selectEvent",function(vt){n.CHM(tt);const ln=n.oxw();return n.KtG(ln.onSavedSearchSelected(vt))}),n.qZA(),n.TgZ(10,"mat-form-field",14)(11,"mat-chip-list",15,16),n.YNc(13,_e,5,4,"mat-chip",17),n.TgZ(14,"input",18),n.NdJ("matChipInputTokenEnd",function(vt){n.CHM(tt);const ln=n.oxw();return n.KtG(ln.addChip(vt,"include"))}),n.ALo(15,"translate"),n.qZA()()(),n.YNc(16,Ce,2,5,"div",19),n.TgZ(17,"div",20),n.YNc(18,Te,4,2,"div",21),n.TgZ(19,"div",22)(20,"mat-slide-toggle",23),n.NdJ("change",function(vt){n.CHM(tt);const ln=n.oxw();return n.KtG(ln.onMoreToggleChange(vt))})("ngModelChange",function(vt){n.CHM(tt);const ln=n.oxw();return n.KtG(ln.advancedSearchFields.moreToggle=vt)}),n._uU(21),n.qZA()()(),n.YNc(22,Le,15,17,"div",2),n.qZA(),n.TgZ(23,"div")(24,"div",24)(25,"zen-select",25),n.NdJ("selectEvent",function(vt){n.CHM(tt);const ln=n.oxw();return n.KtG(ln.onSearchParameterSelected(vt))}),n.ALo(26,"translate"),n.qZA()(),n.YNc(27,fn,6,7,"ng-container",26),n.YNc(28,Fn,2,1,"ng-template",27,28,n.W1O),n.qZA()(),n.TgZ(30,"div",29)(31,"div",30)(32,"button",31),n.NdJ("click",function(){n.CHM(tt);const vt=n.oxw();return n.KtG(vt.onSaveClick())}),n._uU(33),n.ALo(34,"translate"),n.qZA(),n.YNc(35,oi,3,3,"button",32),n.TgZ(36,"button",33),n.NdJ("click",function(){n.CHM(tt);const vt=n.oxw();return n.KtG(vt.onAdvanceSearch())}),n._uU(37),n.ALo(38,"translate"),n.qZA()()()()()()}if(2&pt){const tt=n.MAs(12),Ne=n.oxw();n.xp6(8),n.Q6J("hidden",!Ne.savedSearchList||!(null!=Ne.savedSearchList&&Ne.savedSearchList.length))("ngModel",Ne.advancedSearchId)("placeholder","Saved Search")("data",Ne.savedSearchList)("columns",n.DdM(31,It))("ngModelOptions",n.DdM(32,Bt)),n.xp6(5),n.Q6J("ngForOf",Ne.advancedSearchFields.include?Ne.advancedSearchFields.include.split(","):n.DdM(33,Oe)),n.xp6(1),n.Q6J("placeholder",n.lcZ(15,23,"include"))("matChipInputFor",tt)("matChipInputSeparatorKeyCodes",Ne.separatorKeysCodes)("matChipInputAddOnBlur",!0),n.xp6(2),n.Q6J("ngIf",Ne.hideSearchMode),n.xp6(2),n.Q6J("ngIf",Ne.showApplyFilter),n.xp6(2),n.Q6J("ngModel",Ne.advancedSearchFields.moreToggle),n.xp6(1),n.hij(" ","More"," "),n.xp6(1),n.Q6J("ngIf",Ne.advancedSearchFields.moreToggle),n.xp6(3),n.s9C("placeholder",n.lcZ(26,25,"Additional Parameters")),n.Q6J("data",Ne.newSearchParametersDictionary)("columns",n.DdM(34,ge)),n.xp6(2),n.Q6J("ngForOf",Ne.selectedSearchParameters),n.xp6(6),n.Oqu(n.lcZ(34,27,"save")),n.xp6(2),n.Q6J("ngIf",Ne.showDelButton),n.xp6(2),n.Oqu(n.lcZ(38,29,"search"))}}function wt(pt,Lt){if(1&pt){const tt=n.EpF();n.TgZ(0,"div")(1,"favorite-form",86,87),n.NdJ("favoriteSearch",function(vt){n.CHM(tt);const ln=n.oxw();return n.KtG(ln.shareFavorite(vt))})("globalEvent",function(vt){n.CHM(tt);const ln=n.oxw();return n.KtG(ln.receiveSearchEvent(vt))}),n.qZA()()}2&pt&&(n.xp6(1),n.Q6J("callFromGlobalSearch",!0))}let Mt=(()=>{class pt{set hideApplyFilter(tt){tt||(this.showApplyFilter=!1)}set visibility(tt){tt&&this.toggleAdvancedSearch(tt)}set entity(tt){tt&&(this.entityName=tt.toLowerCase())}set entityFav(tt){tt&&(this.showFavourite=!1,this.showFavouriteToggleBar=tt)}constructor(tt,Ne,vt,ln,jn,Pi,go){this.utilityService=tt,this.datepipe=Ne,this.dialog=vt,this.advancedSearchService=ln,this.zenSearchService=jn,this.personService=Pi,this.favoriteService=go,this.savedSearchList=[],this.showApplyFilter=!0,this.advanceByDefault=!1,this.showResumeSearch=!0,this.isGlobal=!1,this.bypassSessionRestore=!1,this.showAdvancedSection=!1,this.advancedSearchFields={favoriteId:null,include:"",exclude:"",optional:"",searchResume:!0,moreToggle:!1,applyFilter:!1,selectedEntities:[],isSelectedEntity:!1,searchMode:""},this.onAdvancedSearch=new n.vpe,this.onBasicSearch=new n.vpe,this.onAdvancedSearchCleared=new n.vpe,this.separatorKeysCodes=[b.K5,b.OC],this.selectedSearchParameters=[],this.showDelButton=!1,this.multiselectLabels={},this.newSearchParametersDictionary=[],this.entities=[],this.sessionRestored=!1,this.showFavouriteToggleBar=!1,this.showFavourite=!1,this.jwtHelper=new I.N0,this.hideSearchMode=!1,this.searchModeList=[{name:"All",value:"All"},{name:"Resume Search",value:"ResumeSearch"},{name:"Zenople Search",value:"ZenopleSearch"}],this._unsubscribeAll=new a.x}ngOnInit(){let tt;this.searchMode||(this.searchMode="All","lead"!==this.entityName.toLowerCase()&&"customer"!==this.entityName.toLowerCase()&&"newcustomer"!==this.entityName.toLowerCase()&&"target"!==this.entityName.toLowerCase()&&(this.hideSearchMode=!0));let Ne=this.utilityService.getLocalStorage("token");if(Ne&&!this.jwtHelper.isTokenExpired(Ne))if(this.entityList){tt=this.entityList;for(let vt=0;vt<tt.length;++vt)this.entities[vt]={name:tt[vt]}}else this.advancedSearchService.defaultEntity("{}").pipe((0,l.R)(this._unsubscribeAll)).subscribe(vt=>{if(vt?.value){tt=vt.value?.split(",");for(let ln=0;ln<tt.length;++ln)this.entities[ln]={name:tt[ln]}}});this.advancedSearchService.onToolbarClick.pipe((0,l.R)(this._unsubscribeAll)).subscribe(vt=>{1!=vt?.favorite&&(this.showFavourite=!1)})}ngAfterViewInit(){this.checkEmpty(this.advancedSearchFields)||this.markFormAsDirty()}isEntitySelected(tt){this.advancedSearchFields.isSelectedEntity=tt.length>0}removeUnwantedParameters(){const tt=JSON.parse(JSON.stringify(this.selectedSearchParameters));let Ne=!1;for(let vt=0;vt<tt.length;vt++){const ln=this.searchParametersDictionary.findIndex(jn=>jn.name===tt[vt].name);if(ln>=0)this.searchParametersDictionary[ln].hidden=!0;else{const jn=this.selectedSearchParameters.findIndex(Pi=>Pi.name===tt[vt].name);jn>=0&&(delete this.advancedSearchFields[this.selectedSearchParameters[jn].name],this.selectedSearchParameters.splice(jn,1))}Ne=!0}Ne&&this.onSearchParameterDataChange()}restoreState(){const tt=this.zenSearchService.getSearchText(this.entityName);tt?.constructor===Object&&(this.advancedSearchFields=tt);let Ne=!1;for(const vt of Object.keys(this.advancedSearchFields)){const ln=this.searchParametersDictionary.findIndex(jn=>jn.name===vt);if(ln>=0){const jn=JSON.parse(JSON.stringify(this.searchParametersDictionary[ln]));for(let Pi=0;Pi<this.advancedSearchFields[vt].length-1;Pi++)jn.parameter.push(jn.parameter[0]);this.selectedSearchParameters.unshift(jn),this.searchParametersDictionary[ln].hidden=!0,Ne=!0}}Ne&&this.onSearchParameterDataChange(),this.sessionRestored=!0}getAdvancedSearchParameters(tt){this.isGlobal?0==tt?.length&&(tt=this.entities.map(function(Ne){return Ne.name})):(tt={entity:this.currentApplication[0].workflow},this.advancedSearchFields.selectedEntities=[{name:this.currentApplication[0].workflow.toLowerCase()}]),this.advancedSearchService.advancedSearchParameter({isGlobal:this.isGlobal,selectedEntities:tt??(this.isGlobal?[]:{})}).pipe((0,u.q)(1)).subscribe(Ne=>{Ne&&(this.searchParametersDictionary=Ne,this.newSearchParametersDictionary=this.searchParametersDictionary,this.searchParametersDictionary.map(vt=>vt.templateArray=vt.template.split("#")),this.removeUnwantedParameters(),!this.sessionRestored&&!this.bypassSessionRestore&&this.restoreState(),this.checkResumeSearch())})}onSearchParameterSelected(tt){if(tt.length>0){const Ne=tt[0],vt=this.searchParametersDictionary.findIndex(ln=>ln.name===Ne.name);vt>=0&&((!this.advancedSearchFields.hasOwnProperty(Ne.name)||0===this.advancedSearchFields[Ne.name].length)&&(this.advancedSearchFields[Ne.name]=[{}]),this.selectedSearchParameters.unshift(JSON.parse(JSON.stringify(Ne))),this.searchParametersDictionary[vt].hidden=!0,this.onSearchParameterDataChange())}}onSearchParameterDataChange(){this.searchParametersDictionary&&(this.newSearchParametersDictionary=this.searchParametersDictionary.filter(tt=>1!=tt.hidden),this.newSearchParametersDictionary=[...this.newSearchParametersDictionary])}onSearchParameterAdded(tt){this.advancedSearchFields[this.selectedSearchParameters[tt].name].push({}),this.selectedSearchParameters[tt].parameter.push(this.selectedSearchParameters[tt].parameter[0])}onSearchParameterRemoved(tt,Ne){const vt=this.searchParametersDictionary.findIndex(ln=>ln.name===this.selectedSearchParameters[tt].name);this.selectedSearchParameters[tt].parameter.length<=1?(this.selectedSearchParameters.splice(tt,1),this.searchParametersDictionary[vt].hidden=!1,delete this.advancedSearchFields[this.searchParametersDictionary[vt].name]):(this.selectedSearchParameters[tt].parameter.splice(Ne,1),this.advancedSearchFields[this.searchParametersDictionary[vt].name].splice(Ne,1)),this.onSearchParameterDataChange()}clearDynamicAdvancedSearch(){this.selectedSearchParameters=[],this.searchParametersDictionary&&this.searchParametersDictionary.length&&this.searchParametersDictionary.map(tt=>{tt.hidden=!1}),this.onSearchParameterDataChange()}populateDynamicAdvancedSearch(){Object.keys(this.advancedSearchFields).forEach(tt=>{const Ne=this.searchParametersDictionary.find(vt=>vt.name===tt);if(Ne){this.onSearchParameterSelected([Ne]);const vt=this.selectedSearchParameters.findIndex(ln=>ln.name===Ne.name);for(let ln=0;ln<this.advancedSearchFields[tt].length-1;ln++)this.selectedSearchParameters[vt].parameter.push(this.selectedSearchParameters[vt].parameter[0])}})}removeDynamicChip(tt,Ne,vt,ln){const jn=this.advancedSearchFields[vt.name][Ne][ln.name].split(",");let Pi;jn.splice(tt,1),jn&&jn.length&&(Pi=jn.join(",")),this.advancedSearchFields[vt.name][Ne][ln.name]=Pi,this.markFormAsDirty()}addDynamicChip(tt,Ne,vt,ln,jn){const Pi=tt.input,go=tt.value;(go||"").trim()&&(this.advancedSearchFields[ln.name][vt][jn.name]?this.advancedSearchFields[ln.name][vt][jn.name]+=","+go.trim():this.advancedSearchFields[ln.name][vt][jn.name]=go.trim()),Pi&&(Pi.value=""),this.markFormAsDirty()}setAdvanceSearchField(tt,Ne,vt){let ln=[];"include"===tt?ln=this.advancedSearchFields.include.split(","):"exclude"===tt?ln=this.advancedSearchFields.exclude.split(","):"optional"===tt&&(ln=this.advancedSearchFields.optional.split(",")),"add"===vt?ln.push(Ne):"replace"===vt?ln=Ne:"merge"===vt&&ln.concat(...Ne),"include"===tt?this.advancedSearchFields.include=ln.join():"exclude"===tt?this.advancedSearchFields.exclude=ln.join():"optional"===tt&&(this.advancedSearchFields.optional=ln.join())}receiveSearchEvent(tt){tt&&(this.advancedSearchFields.favoriteId=tt,this.favoriteId=tt,this.onAdvanceSearch())}shareFavorite(tt){tt&&(this.advancedSearchFields.favoriteId=tt,this.favoriteId=tt,this.getShareFavoriteList({favoriteId:this.favoriteId}))}getShareFavoriteList(tt){this.favoriteService.getShareFavoriteList(JSON.stringify(tt)).subscribe(Ne=>{Ne&&(this.favPersonData=Ne),this.openFavoriteShareDialog()})}openFavoriteShareDialog(){var tt=this;return(0,e.Z)(function*(){tt.advancedSearchService.onAdvanceSearchClose.next("hide"),tt.dialog.open(U,{panelClass:"favorite-share-dialog",data:{shareEntityData:tt.favPersonData,favoriteId:tt.favoriteId}}).afterClosed().subscribe(vt=>{})})()}onAdvanceSearch(){if(this.advancedSearchFields.favoriteId=!0===this.showFavourite?this.favoriteId:null,this.selectedSearchParameters)for(const Ne of this.selectedSearchParameters)for(const vt of Ne?.parameter||[])for(const ln of vt||[]){if("Date"==ln?.dataType)for(const jn of this.advancedSearchFields[Ne.name]){let Pi=this.datepipe.transform(jn[ln?.name],"yyyy-MM-dd");if(null!=Pi){let go=Pi.toLocaleString().slice(0,10);jn[ln?.name]=this.utilityService.toJsDate(go,"jsdate")}}if(!this.showFavourite)if(ln?.required){for(const jn of this.advancedSearchFields[Ne.name]||[])if(!jn[ln.name]||""===jn[ln.name])return void this.utilityService.callSnackBar(`Please fill all the required fields in ${Ne.name}.`,"warning")}else if(this.advancedSearchFields[Ne.name].find(jn=>0===Object.keys(jn).length))return void this.utilityService.callSnackBar(`Please enter atleast one parameter to search in ${Ne.name}`,"warning")}this.advanceByDefault&&this.markFormAsDirty(),this.makeFormClean(this.advancedSearchFields);const tt=JSON.parse(JSON.stringify(this.advancedSearchFields));if(delete tt.selectedEntities,this.advancedSearchFields.include.length>0){this.advancedSearchFields.searchMode=this.searchMode,this.entityName&&(this.zenSearchService.setSearchType(this.entityName,"any"),this.zenSearchService.setSearchText(this.entityName,this.advancedSearchFields));const Ne=this.advancedSearchFields.selectedEntities;(!this.advancedSearchFields.moreToggle||this.advancedSearchFields.moreToggle&&!(this.advancedSearchFields.selectedEntities?.length>0))&&(this.advancedSearchFields.selectedEntities=this.entities.map(function(vt){return vt.name})),this.onAdvancedSearch.emit(this.advancedSearchFields),this.appliedAdvancedSearch=JSON.parse(JSON.stringify(this.advancedSearchFields)),this.advancedSearchFields.selectedEntities=Ne}else if(this.checkEmpty(tt)&&this.advancedSearchFields.selectedEntities?.length>0)this.utilityService.callSnackBar("Please enter atleast one parameter to search.","warning");else if(this.advanceForm?.dirty&&!this.checkEmpty(this.advancedSearchFields)){this.advancedSearchFields.searchMode=this.searchMode,this.entityName&&(this.zenSearchService.setSearchType(this.entityName,"any"),this.zenSearchService.setSearchText(this.entityName,this.advancedSearchFields));const Ne=this.advancedSearchFields.selectedEntities;(!this.advancedSearchFields.moreToggle||this.advancedSearchFields.moreToggle&&!(this.advancedSearchFields.selectedEntities?.length>0))&&(this.advancedSearchFields.selectedEntities=this.entities.map(function(vt){return vt.name})),this.onAdvancedSearch.emit(this.advancedSearchFields),this.appliedAdvancedSearch=JSON.parse(JSON.stringify(this.advancedSearchFields)),this.advancedSearchFields.selectedEntities=Ne}else this.advancedSearchFields?.favoriteId>0?(this.advancedSearchFields.selectedEntities=this.entities.map(function(Ne){return Ne.name}),this.onAdvancedSearch.emit(this.advancedSearchFields)):this.utilityService.callSnackBar("Please enter atleast one parameter to search.","warning");delete this.advancedSearchFields.searchMode}onSaveClick(){this.advanceForm.dirty&&!this.checkEmpty(this.advancedSearchFields)?this.advancedSearchId&&!this.selectedSavedSearch.isShared?this.dialog.open(E,{panelClass:"zen-popup-sm",disableClose:!0}).afterClosed().pipe((0,l.R)(this._unsubscribeAll)).subscribe(Ne=>{this.saveSearch(Ne.action)}):this.saveSearch("add"):this.utilityService.callSnackBar("Please fill in the fields to save.","warning")}markFormAsDirty(){this.advanceForm.form.markAsDirty()}makeFormClean(tt){for(const Ne in tt)tt[Ne]instanceof Object&&!Array.isArray(tt[Ne])&&(tt[Ne].length<0||0===Object.keys(tt[Ne][0]).length)&&this.advanceForm.reset()}checkEmpty(tt){for(const Ne in tt)if("boolean"!=typeof tt[Ne])if(tt[Ne]instanceof Object){if(tt[Ne]instanceof Date||!1===this.checkEmpty(tt[Ne]))return!1}else if(""!==tt[Ne]&&null!=tt[Ne]&&0!==tt[Ne].length)return!1;return!0}saveSearch(tt){if(tt){const Ne="add"===tt?{}:this.savedSearchList.find(ln=>ln.advanceSearchId===this.advancedSearchId);Ne.jsonValue=this.advancedSearchFields,Ne.entity=this.entityName.toLowerCase(),this.dialog.open(p,{panelClass:"zen-popup-sm",data:JSON.parse(JSON.stringify(Ne)),disableClose:!0}).afterClosed().pipe((0,l.R)(this._unsubscribeAll)).subscribe(ln=>{if(ln){const jn=this.savedSearchList.findIndex(Pi=>Pi.advanceSearchId===ln.advanceSearchId);jn>-1?this.savedSearchList[jn]=ln:this.savedSearchList.unshift(ln),this.savedSearchList=[...this.savedSearchList],this.advancedSearchId=ln.advanceSearchId,"add"===tt?this.utilityService.callSnackBar("searchSavedSuccessfully","success"):"edit"===tt&&this.utilityService.callSnackBar("searchUpdatedSuccessfully","success")}})}}toggleAdvancedSearch(tt){tt?this.onAdvanceSearchOpened():this.onAdvanceSearchClosed()}onMoreToggleChange(tt){let Ne=[];Ne=tt.checked&&this.advancedSearchFields.selectedEntities.length>0?this.advancedSearchFields.selectedEntities:this.entities.map(function(vt){return vt.name}),this.getAdvancedSearchParameters(Ne)}onAdvanceSearchOpened(){const tt=JSON.parse(sessionStorage.getItem("headerParams"));let Ne;if(tt&&(Ne=tt.applicationId),this.currentApplication=this.personService.appData?.application.filter(vt=>vt.applicationId==Ne),!this.searchParametersDictionary){const vt=this.entities.map(function(ln){return ln.name});this.getAdvancedSearchParameters(vt)}this.basicSearchText&&(this.advancedSearchFields.include=this.basicSearchText,this.markFormAsDirty()),this.savedSearchLoaded||this.advancedSearchService.advancedSearchData({column:"title",callFrom:this.entityName?.toLowerCase()}).pipe((0,u.q)(1)).subscribe(vt=>{vt&&(this.savedSearchList=vt),this.savedSearchLoaded=!0}),this.appliedAdvancedSearch&&Object.keys(this.appliedAdvancedSearch).forEach(vt=>{"include"!==vt&&"exclude"!==vt&&!this.showAdvancedSection&&(this.showAdvancedSection=!0)})}onAdvanceSearchClosed(){this.advancedSearchId=null,this.appliedAdvancedSearch?this.advancedSearchFields=JSON.parse(JSON.stringify(this.appliedAdvancedSearch)):this.advanceForm.reset()}confirmation(){this.utilityService.openConfirmDialog({headerText:"confirmation",confirmationText:"areYouSureYouWantToDelete"}),this.utilityService.confirmDialogAction.pipe((0,l.R)(this._unsubscribeAll)).subscribe(Ne=>{"yes"===Ne&&(this.advancedSearchService.deleteAdvancedSearch(this.selectedSavedSearch.advanceSearchId).pipe((0,l.R)(this._unsubscribeAll)).subscribe(vt=>{const ln=this.savedSearchList.findIndex(jn=>jn.advanceSearchId===this.selectedSavedSearch.advanceSearchId);ln>-1&&(this.savedSearchList.splice(ln,1),this.savedSearchList=[...this.savedSearchList],this.clearAdvancedSearch(!0),this.utilityService.callSnackBar("savedSearchDeletedSuccessfully","success")),this.showDelButton=!1}),this.utilityService.closeConfirmDialog())})}onDeleteClick(){this.confirmation()}onSavedSearchSelected(tt){this.advancedSearchId?(this.advancedSearchService.advancedSearchData({advanceSearchId:this.advancedSearchId,column:"jsonValue"}).pipe((0,l.R)(this._unsubscribeAll)).subscribe(Ne=>{this.selectedSavedSearch=Ne[0],this.showDelButton=!0,this.clearDynamicAdvancedSearch(),this.advancedSearchFields=JSON.parse(JSON.stringify(this.selectedSavedSearch.jsonValue)),this.populateDynamicAdvancedSearch()}),this.markFormAsDirty()):this.showDelButton=!1}checkResumeSearch(){let tt;tt=this.isGlobal?this.advancedSearchFields.selectedEntities:this.advancedSearchFields.selectedEntities.map(function(Ne){return Ne.name}),this.showResumeSearch=!tt.some(Ne=>["lead","target","newcustomer","customer"].includes(Ne))}onAdvancedOutsideClick(tt){tt.stopPropagation()}clearAdvancedSearch(tt=!1){this.advancedSearchId=null,this.showDelButton=!1,this.showSearchResume=!0,this.advancedSearchFields={include:"",exclude:"",optional:"",searchInResume:!0,moreToggle:!1,applyFilter:!1,selectedEntities:[]},this.clearDynamicAdvancedSearch(),this.advanceForm.form.controls.searchResume?.setValue(this.advancedSearchFields.searchInResume),this.advanceForm.form.markAsPristine(),this.appliedAdvancedSearch&&(this.appliedAdvancedSearch=null,tt&&this.onBasicSearch.emit(""),this.onAdvancedSearchCleared.emit())}addChip(tt,Ne){const vt=tt.input,ln=tt.value?.trim().endsWith(",")?tt.value.trim().replace(",",""):tt.value.trim();let jn=null;(ln||"").trim()&&("include"===Ne?jn="include":"exclude"===Ne?jn="exclude":"optional"===Ne&&(jn="optional"),this.advancedSearchFields[jn]?this.advancedSearchFields[jn]+=","+ln.trim():this.advancedSearchFields[jn]=ln.trim()),vt&&(vt.value=""),this.markFormAsDirty()}removeChip(tt,Ne,vt){let ln=null;"include"===Ne?ln="include":"exclude"===Ne?ln="exclude":"optional"===Ne&&(ln="optional");const jn=this.advancedSearchFields[ln].split(",");jn.splice(vt,1);let Pi="";jn&&jn.length&&(Pi=jn.join(",")),this.advancedSearchFields[ln]=Pi,this.markFormAsDirty()}onSearchResumeChange(tt){}toggleSearchResume(){this.showSearchResume=void 0===this.showSearchResume||!this.showSearchResume}toggleFavorite(tt){this.showFavourite=!!tt.checked,this.advancedSearchService.onFavoritevalue=this.showFavourite}setMultiselectLabel(tt,Ne,vt,ln,jn){this.multiselectLabels.hasOwnProperty(tt)||(this.multiselectLabels[tt]=[]),this.multiselectLabels[tt][Ne]||(this.multiselectLabels[tt][Ne]={innerProperty:""}),this.multiselectLabels[tt][Ne][vt]=jn.find(Pi=>Pi.value===ln)?.label,this.advanceForm.form.markAsDirty()}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Ne){return new(Ne||pt)(n.Y36(A.t),n.Y36(V.uU),n.Y36(d.on),n.Y36(s.i),n.Y36(K.o),n.Y36(X.R),n.Y36(D.e))};static#t=this.\u0275cmp=n.Xpm({type:pt,selectors:[["advanced-search"]],viewQuery:function(Ne,vt){if(1&Ne&&(n.Gf(z,5),n.Gf(q,5),n.Gf(se,5)),2&Ne){let ln;n.iGM(ln=n.CRH())&&(vt.advanceForm=ln.first),n.iGM(ln=n.CRH())&&(vt.savedSearchDropdown=ln.first),n.iGM(ln=n.CRH())&&(vt.favouritehRef=ln.first)}},inputs:{basicSearchText:"basicSearchText",advanceByDefault:"advanceByDefault",showResumeSearch:"showResumeSearch",isGlobal:"isGlobal",displayConfig:"displayConfig",entityList:"entityList",bypassSessionRestore:"bypassSessionRestore",hideApplyFilter:"hideApplyFilter",visibility:"visibility",showFavourite:"showFavourite",entity:["entityName","entity"],entityFav:["showFavouriteToggle","entityFav"]},outputs:{onAdvancedSearch:"onAdvancedSearch",onBasicSearch:"onBasicSearch",onAdvancedSearchCleared:"onAdvancedSearchCleared"},decls:3,vars:3,consts:[["class","toggle-wrapper favorite-toggle mt-40 ml-16",4,"ngIf"],["class","search-content search-content-show",4,"ngIf"],[4,"ngIf"],[1,"toggle-wrapper","favorite-toggle","mt-40","ml-16"],["name","searchFavorite","matTooltip","Enabling this will only give search results from Favorite",1,"font-size-14","font-weight-300","advanced-filter-toggle","zenauto-favorite-search",3,"ngModel","ngModelChange","change"],[1,"search-content","search-content-show"],[1,"search-formfield"],["fxLayout","column"],["advanceForm","ngForm"],["fxFlex","",1,"advance-form-container","py-16"],[1,"primary-search","px-16"],[1,"cursor-pointer",3,"click"],["nameField","title","valueField","advanceSearchId","id","saved-search-select","panelClass","custom-dropdown",1,"no-padding-head","chip-black","overflow-hidden",3,"hidden","ngModel","placeholder","data","columns","ngModelOptions","ngModelChange","selectEvent"],["savedSearchDropdown",""],[1,"w-100-p"],["aria-label","Include selection"],["includeChipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],[3,"placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["fxLayout","row","fxLayoutGap","12px","fxLayoutAlign","start center","class","mb-8",4,"ngIf"],["fxLayout","row","fxLayoutGap","12px","fxLayoutAlign","start center",1,"mb-8"],["class","filter-type",4,"ngIf"],[1,"toggle-wrapper"],["name","moreToggle",1,"font-size-14","font-weight-300","advanced-filter-toggle","zenauto-more",3,"ngModel","change","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center",1,"py-8","px-16","w-100-p","additional-parameter"],["nameField","name","valueField","name","name","searchOptions",1,"no-padding-head","chip-black","overflow-hidden",3,"placeholder","data","columns","selectEvent"],[4,"ngFor","ngForOf"],[";","",";","",";",""],["dynamicFieldsTemplate",""],["fxFlex","60px",1,"search-actions","zenauto-search-actions"],["fxLayout","row","fxLayoutGap","12px",1,"m-0","p-12","primary-50-bg"],["mat-raised-button","","fxFlex","",1,"zenauto-search-save-btn",3,"click"],["mat-raised-button","","fxFlex","","class","zenauto-search-delete-btn","color","warn",3,"click",4,"ngIf"],["mat-raised-button","","fxFlex","","color","accent",1,"zenauto-search-search-btn",3,"click"],[3,"selectable","removable","removed"],[1,"text-truncate","chip-text",3,"matTooltip"],["matChipRemove",""],["name","Search Mode","nameField","name","valueField","value",1,"no-padding-head","chip-black","overflow-hidden",3,"ngModel","placeholder","data","columns","ngModelChange"],[1,"filter-type"],["name","applyFilter","matTooltip","Enabling this will also apply the filter",1,"font-size-14","font-weight-300","advanced-filter-toggle","zenauto-apply-filter",3,"ngModel","ngModelChange"],["aria-label","Fruit selection"],["excludeChipList",""],["fxLayout","row","fxLayoutAlign","start center",1,"py-8","w-100-p"],["optionalChipList",""],["fxLayout","row","fxLayoutAlign","start center","class","py-8 w-100-p",4,"ngIf"],["nameField","name","valueField","name","name","entities",1,"no-padding-head","chip-black","overflow-hidden",3,"placeholder","data","multiple","ngModel","columns","ngModelChange","clickEvent","blurEvent"],[1,"parameter-type-block","p-0",3,"ngModelGroup"],["class","parameter-type-title py-4 px-16","matSubheader","",4,"ngIf"],["class","filter-main-container",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","end center","fxLayoutGap","8px","class","py-8 px-16 add-param-action",4,"ngIf"],["matSubheader","",1,"parameter-type-title","py-4","px-16"],[1,"font-weight-600"],[1,"filter-main-container"],["fxLayout","row","fxLayoutAlign","start center",1,"filter-container"],["fxFlex","","fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutGap","8px",1,"pl-16","mr-12"],["fxFlex",""],["fxFlex","30px"],[1,"red-fg","delete-param",3,"id","click"],["class","labellll",4,"ngIf","ngIfElse"],["paramPlaceholder",""],[1,"labellll"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["fxLayout","row","fxLayoutAlign","end center","fxLayoutGap","8px",1,"py-8","px-16","add-param-action"],["fxLayoutAlign","center center","fxLayout","row","fxLayoutGap","6px",2,"cursor","pointer",3,"click"],[1,"green-fg","add-param"],["fxLayout","row wrap","fxLayoutAlign","start center"],["fxFlex","100",4,"ngIf"],["fxFlex","",4,"ngIf"],["nameField","label","valueField","value","class","no-padding-head chip-black overflow-hidden","panelClass","dropdown-word-wrap",3,"placeholder","name","data","columns","required","ngModel","selectEvent","ngModelChange",4,"ngIf"],["nameField","label","valueField","value","class","no-padding-head chip-black overflow-hidden","panelClass","custom-dropdown",3,"placeholder","name","data","columns","multiple","required","ngModel","selectEvent","ngModelChange",4,"ngIf"],["fxFlex","",3,"name","ngModel","ngModelChange",4,"ngIf"],["class","font-size-14 font-weight-300 advanced-filter-toggle zenauto-favorite-search","name","searchFavorite",3,"name","ngModel","ngModelChange",4,"ngIf"],["fxFlex","100"],["dynamicChipList",""],[3,"name","placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","required","matChipInputTokenEnd"],["matInput","",3,"name","placeholder","ngModel","type","required","ngModelChange"],["nameField","label","valueField","value","panelClass","dropdown-word-wrap",1,"no-padding-head","chip-black","overflow-hidden",3,"placeholder","name","data","columns","required","ngModel","selectEvent","ngModelChange"],["nameField","label","valueField","value","panelClass","custom-dropdown",1,"no-padding-head","chip-black","overflow-hidden",3,"placeholder","name","data","columns","multiple","required","ngModel","selectEvent","ngModelChange"],["matInput","",3,"name","placeholder","matDatepicker","ngModel","required","ngModelChange"],["matSuffix","",3,"for"],["picker",""],["fxFlex","",3,"name","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["name","searchFavorite",1,"font-size-14","font-weight-300","advanced-filter-toggle","zenauto-favorite-search",3,"name","ngModel","ngModelChange"],["mat-raised-button","","fxFlex","","color","warn",1,"zenauto-search-delete-btn",3,"click"],[3,"callFromGlobalSearch","favoriteSearch","globalEvent"],["favoritehRef",""]],template:function(Ne,vt){1&Ne&&(n.YNc(0,ne,3,2,"div",0),n.YNc(1,xt,39,35,"div",1),n.YNc(2,wt,3,1,"div",2)),2&Ne&&(n.Q6J("ngIf",vt.showFavouriteToggleBar),n.xp6(1),n.Q6J("ngIf",!vt.showFavourite),n.xp6(1),n.Q6J("ngIf",vt.showFavourite))},dependencies:[V.sg,V.O5,V.tP,_._Y,_.Fj,_.JJ,_.JL,_.Q7,_.On,_.Mq,_.F,C.xw,C.SQ,C.Wh,C.yH,R.i,x.v_,x.$V,x.nX,f.k0,k.Hw,me.ir,me.lw,me.IP,me.Y6,w.eB,J.Kd,Q.Sc,re.Mq,re.hl,re.nW,de.OY,de.vy,te.iZ,j.a,H.X$],styles:[".checkbox-wrapper{display:flex;align-content:center;align-items:center;height:45px}.parameter-menu{margin-top:45px}.checkbox-element{color:#00000073;font:700 16px/1.125 Muli,Helvetica Neue,Arial,sans-serif}.advancesearch-bucket .toggle-wrapper .advanced-filter-toggle{height:auto}.advancesearch-bucket .toggle-wrapper .advanced-filter-toggle .mat-slide-toggle-thumb-container{height:26px;width:26px;top:-1px}.advancesearch-bucket .toggle-wrapper .advanced-filter-toggle .mat-slide-toggle-thumb-container .mat-slide-toggle-thumb{height:26px;width:26px}.advancesearch-bucket .search-formfield .advance-form-container{overflow-y:auto}.advancesearch-bucket .search-formfield .advance-form-container .primary-search .cursor-pointer{font-weight:400;color:#ff3737}.advancesearch-bucket .search-formfield .advance-form-container .additional-parameter{background:#d5edff;border-left:2px solid rgba(0,122,217,.5411764706);position:sticky;top:-16px;z-index:1}.advancesearch-bucket .search-formfield .advance-form-container .all-parameter-container{background:rgba(241,241,241,.7607843137);padding:4px;position:relative}.advancesearch-bucket .search-formfield .advance-form-container .all-parameter-container .parameter-type-block{border-color:#1414140f;background:#ececec}.advancesearch-bucket .search-formfield .advance-form-container .all-parameter-container .parameter-type-block .filter-main-container:not(:last-child){border-bottom:6px solid #d8d8d8;padding:20px 0}.advancesearch-bucket .search-formfield .advance-form-container .all-parameter-container .parameter-type-block .add-param-action{background:rgba(226,226,226,.9098039216);box-shadow:inset 0 0 4px #cecece}.advancesearch-bucket .search-formfield .advance-form-container .all-parameter-container .parameter-type-block .add-param-action .add-param{border-radius:50%}.advancesearch-bucket .search-formfield .advance-form-container .all-parameter-container .parameter-type-block .add-param-action:hover .add-param{background:#4caf50;color:#fff!important;cursor:pointer}.advancesearch-bucket .search-formfield .advance-form-container .all-parameter-container .delete-param{height:24px;width:24px;transition:all ease-in;border-radius:50%}.advancesearch-bucket .search-formfield .advance-form-container .all-parameter-container .delete-param:hover{background:#f71800;color:#fff!important;cursor:pointer}.advancesearch-bucket .search-formfield .advance-form-container mat-chip .chip-text{max-width:350px}.advancesearch-bucket .multi-select .mat-select-value-text{text-overflow:unset!important}.advancesearch-bucket favorite-form form{padding:16px}.dropdown-word-wrap mat-cell{white-space:pre-wrap!important;word-break:break-word;line-height:1.5;padding-top:10px;padding-bottom:10px}.dropdown-word-wrap mat-row{min-height:auto}.custom-dropdown mat-table{width:auto}.custom-dropdown mat-table mat-header-row mat-header-cell{padding-left:12px!important}.custom-dropdown mat-table mat-header-row mat-header-cell.mat-column-select{max-width:40px!important}.custom-dropdown mat-table mat-option{border-bottom:1px solid #e8e8e8;height:auto;white-space:normal;line-height:normal}.custom-dropdown mat-table mat-option mat-row{align-items:flex-start;min-height:auto;padding:12px 0}.custom-dropdown mat-table mat-option mat-cell{align-items:flex-start;word-break:break-word;padding-left:12px}.custom-dropdown mat-table mat-option mat-cell.mat-column-select{max-width:40px!important}\n"],encapsulation:2,data:{animation:o.L}})}return pt})()},83991:(he,y,i)=>{"use strict";i.d(y,{D:()=>F});var e=i(30481),n=i(45754),o=i(81274),a=i(94505),l=i(84187),u=i(30617),d=i(42400),s=i(20180),A=i(26177),_=i(38034),C=i(26385),R=i(48247),x=i(21242),f=i(48424),k=i(89515),w=i(82826),g=i(12430),M=i(77171),p=i(53790),E=i(51838),b=i(45152),I=i(19347),L=i(66878),D=i(65879);let F=(()=>{class P{static#e=this.\u0275fac=function(V){return new(V||P)};static#t=this.\u0275mod=D.oAB({type:P});static#n=this.\u0275inj=D.cJS({providers:[w.i,{provide:L.eJ,useValue:{}}],imports:[s.L,g.L,l.wp,d.x4,f.uw,u.Ps,A.yD,a.yu,n.Zh,o.g0,I.Is,e.AA,R.gR,C.t,_.FA,x.Xo,k.aw,M.y,p.u,E.Wd,b.V]})}return P})()},82826:(he,y,i)=>{"use strict";i.d(y,{i:()=>l});var e=i(7110),n=i(65619),o=i(65879),a=i(6738);let l=(()=>{class u{constructor(s){this.ws=s,this.showResumeSearch=!0,this.onFavoritevalue=!1,this._advancedSearchUrl=e.XL.settings.apiUrl+"AdvancedSearch/",this.onToolbarClick=new n.X(null),this.onAdvanceSearchClose=new n.X(null)}saveAdvancedSearch(s){return this.ws.post(this._advancedSearchUrl+"AdvancedSearchSave",{json:JSON.stringify(s)})}deleteAdvancedSearch(s){return this.ws.post(this._advancedSearchUrl+"AdvancedSearchDelete?advanceSearchId="+s+"&isDelete=yes")}advancedSearchData(s){return this.ws.get(this._advancedSearchUrl+"AdvancedSearch",{json:JSON.stringify(s)})}shareWithPersonList(s){return this.ws.get(this._advancedSearchUrl+"AdvancedSearchPerson",{json:JSON.stringify(s)})}advancedSearchParameter(s){return this.ws.get(this._advancedSearchUrl+"AdvancedSearchParameter",{json:JSON.stringify(s)})}defaultEntity(s){return this.ws.get(this._advancedSearchUrl+"DefaultEntity",{json:s},null)}static#e=this.\u0275fac=function(A){return new(A||u)(o.LFG(a.f))};static#t=this.\u0275prov=o.Yz7({token:u,factory:u.\u0275fac})}return u})()},10838:(he,y,i)=>{"use strict";i.d(y,{Y:()=>w});var e=i(82260),n=i(20180),o=i(47805),a=i(89515),l=i(30617),u=i(30481),d=i(47157),s=i(18266),A=i(90620),_=i(87411),C=i(14165),R=i(25800),x=i(37525),f=i(43786),k=i(65879);let w=(()=>{class g{static#e=this.\u0275fac=function(E){return new(E||g)};static#t=this.\u0275mod=k.oAB({type:g});static#n=this.\u0275inj=k.cJS({providers:[s.o,R.Z,f.Y,x.d],imports:[n.L,o.x,a.aw,l.Ps,d.a,u.AA,A.X,C.I,_.L,e.i]})}return g})()},25088:(he,y,i)=>{"use strict";i.d(y,{M:()=>C});var e=i(84187),n=i(21242),o=i(48247),a=i(94505),l=i(30617),u=i(89515),d=i(20180),s=i(40087),A=i(81274),_=i(65879);let C=(()=>{class R{static#e=this.\u0275fac=function(k){return new(k||R)};static#t=this.\u0275mod=_.oAB({type:R});static#n=this.\u0275inj=_.cJS({providers:[s.t],imports:[d.L,u.aw,A.g0,l.Ps,a.yu,e.wp,o.gR,n.Xo]})}return R})()},59430:(he,y,i)=>{"use strict";i.d(y,{h:()=>K});var e=i(56148),n=i(39421),o=i(21819),a=i(94505),l=i(45754),u=i(26177),d=i(23680),s=i(24678),A=i(38034),_=i(30617),C=i(42400),R=i(48424),x=i(51838),f=i(81274),k=i(30481),w=i(32651),g=i(20180),M=i(89515),p=i(80438),E=i(25800),b=i(68838),I=i(48979),L=i(12430),D=i(40478),F=i(56263),P=i(66878),O=i(20075),U=i(54885),V=i(65879);let K=(()=>{class X{static#e=this.\u0275fac=function(Q){return new(Q||X)};static#t=this.\u0275mod=V.oAB({type:X});static#n=this.\u0275inj=V.cJS({providers:[D.O,E.Z,p.A,{provide:P.hV,useValue:{}}],imports:[g.L,a.yu,_.Ps,C.x4,f.g0,d.si,R.uw,l.Zh,x.Wd,s.Uc,o.D8,w.SJ,L.L,M.aw,I.i,b.h,u.yD,k.AA,A.FA,n.Z_,e.I,F.Ky,P.yj,O.M,U.nf]})}return X})()},15855:(he,y,i)=>{"use strict";i.d(y,{s:()=>M});var e=i(65879),n=i(70378),o=i(7110),a=i(96814),l=i(83814),u=i(26177),d=i(30617),s=i(45919),A=i(71810);const _=["toolbarTemplate"],C=["toolbarElement"],R=["chipList"],x=["emailAttachment"];function f(p,E){if(1&p){const b=e.EpF();e.TgZ(0,"mat-icon",9),e.NdJ("click",function(){e.CHM(b);const L=e.oxw().$implicit,D=e.oxw(2);return e.KtG(D.remove(L))}),e._uU(1,"cancel"),e.qZA()}}function k(p,E){if(1&p&&(e.TgZ(0,"mat-chip",7),e._uU(1),e.YNc(2,f,2,0,"mat-icon",8),e.qZA()),2&p){const b=E.$implicit;e.Q6J("selectable",!0)("removable",!0),e.xp6(1),e.hij(" ",b.fileName," "),e.xp6(1),e.Q6J("ngIf",!0)}}function w(p,E){if(1&p){const b=e.EpF();e.TgZ(0,"zen-doc-viewer",10),e.NdJ("documentSlideView",function(){e.CHM(b);const L=e.oxw(2);return e.KtG(L.closeSlideView("files"))}),e.qZA()}if(2&p){const b=e.oxw(2);e.Q6J("docData",b.documentViewerData)("documentUrl",b.documentUrl)("customFile",b.customFile)}}function g(p,E){if(1&p&&(e.TgZ(0,"mat-chip-list",1,2),e.YNc(2,k,3,4,"mat-chip",3),e.qZA(),e.TgZ(3,"fuse-sidebar",4,5),e.YNc(5,w,1,3,"zen-doc-viewer",6),e.qZA()),2&p){const b=e.oxw();e.xp6(2),e.Q6J("ngForOf",b.attachmentList),e.xp6(3),e.Q6J("ngIf",b.documentUrl||b.customFile)}}let M=(()=>{class p extends n.JU{set attachmentListView(b){b&&b.length>0&&(this.attachmentList=b,this.onAttachmentCountChangeFn.emit(this.attachmentList),this.cdRef.detectChanges())}constructor(b){super(),this.cdRef=b,this.attachmentList=[],this.onAttachmentCountChangeFn=new e.vpe,this.onFileDeleteFn=new e.vpe}ngOnInit(){}remove(b){let I=-1;I=this.attachmentList.findIndex(b&&b.documentId?L=>L.documentId===b.documentId:L=>L.uid===b.uid),I>=0&&this.attachmentList.splice(I,1),this.onAttachmentCountChangeFn.emit(this.attachmentList),this.onFileDeleteFn.emit(b)}openSlideView(b,I){this.extension=b.extension?b.extension:b.fileName.split(".").pop(),this.customFile=null,this.documentUrl=null,"files"==I?.toLowerCase()&&(b.documentId?(this.documentUrl=o.XL.settings.apiUrl+"Document/SingleDocument?documentId="+b.documentId,this.documentViewerData={documentId:b.documentId,documentName:b.fileName,fileName:b.fileName,extension:this.extension}):(this.customFile=b,this.documentViewerData={documentId:null,documentName:b.fileName,fileName:b.fileName,extension:b.extension}),this.emailAttachment.open())}closeSlideView(b){"files"==b?.toLowerCase()&&(this.emailAttachment.close(),this.documentUrl=null,this.customFile=null)}ngOnDestroy(){}static#e=this.\u0275fac=function(I){return new(I||p)(e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:p,selectors:[["custom-attachment-list"]],viewQuery:function(I,L){if(1&I&&(e.Gf(_,7),e.Gf(C,5),e.Gf(R,5),e.Gf(x,5)),2&I){let D;e.iGM(D=e.CRH())&&(L.toolbarTemplate=D.first),e.iGM(D=e.CRH())&&(L.toolbarElement=D.first),e.iGM(D=e.CRH())&&(L.chipElement=D.first),e.iGM(D=e.CRH())&&(L.emailAttachment=D.first)}},inputs:{attachmentListView:["attachmentList","attachmentListView"]},outputs:{onAttachmentCountChangeFn:"onAttachmentCountChangeFn",onFileDeleteFn:"onFileDeleteFn"},features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>p)}]),e.qOj],decls:2,vars:0,consts:[["toolbarTemplate",""],[1,"upload-files"],["chipList",""],[3,"selectable","removable",4,"ngFor","ngForOf"],["name","zen-email-attachment","position","right",1,"doc-side-viewer","full-height"],["emailAttachment",""],["fxFlex","",3,"docData","documentUrl","customFile","documentSlideView",4,"ngIf"],[3,"selectable","removable"],["matChipRemove","",3,"click",4,"ngIf"],["matChipRemove","",3,"click"],["fxFlex","",3,"docData","documentUrl","customFile","documentSlideView"]],template:function(I,L){1&I&&e.YNc(0,g,6,2,"ng-template",null,0,e.W1O)},dependencies:[a.sg,a.O5,l.yH,u.ir,u.lw,u.Y6,d.Hw,s.t,A.H],encapsulation:2})}return p})()},56148:(he,y,i)=>{"use strict";i.d(y,{I:()=>s});var e=i(30617),n=i(26177),o=i(20180),a=i(39523),l=i(87411),u=i(58869),d=i(65879);let s=(()=>{class A{static#e=this.\u0275fac=function(R){return new(R||A)};static#t=this.\u0275mod=d.oAB({type:A});static#n=this.\u0275inj=d.cJS({imports:[o.L,n.yD,e.Ps,a.O,l.L,u.e]})}return A})()},40478:(he,y,i)=>{"use strict";i.d(y,{O:()=>u});var e=i(65619),n=i(78645),o=i(46438),a=i(65879),l=i(69862);let u=(()=>{class d{constructor(A){this.http=A,this.onChatSelected=new e.X(null),this.onContactSelected=new e.X(null),this.onChatsUpdated=new n.x,this.onUserUpdated=new n.x,this.onLeftSidenavViewChanged=new n.x,this.onRightSidenavViewChanged=new n.x,this.onCurrentFilterChanged=new e.X(null)}getChat(A){const _=this.user.chatList.find(C=>C.contactId===A);if(_)return new Promise((C,R)=>{this.http.get("api/chat-chats/"+_.id).subscribe(x=>{const f=x,k=this.contacts.find(g=>g.id===A);this.onChatSelected.next({chatId:f.id,dialog:f.dialog,contact:k})},R)});this.createNewChat(A).then(C=>{this.getChat(A)})}createNewChat(A){return new Promise((_,C)=>{const R=this.contacts.find(w=>w.id===A),x=o.n.generateGUID(),f={id:x,dialog:[]};this.user.chatList.push({contactId:A,id:x,lastMessageTime:"2017-02-18T10:30:18.931Z",name:R.name,unread:null}),this.http.post("api/chat-chats",{...f}).subscribe(w=>{this.http.post("api/chat-user/"+this.user.id,this.user).subscribe(g=>{this.getUser().then(M=>{this.onUserUpdated.next(M),_(M)})})},C)})}selectContact(A){this.onContactSelected.next(A)}setUserStatus(A){this.user.status=A}updateUserData(A){this.http.post("api/chat-user/"+this.user.id,A).subscribe(_=>{this.user=A})}updateDialog(A,_){return new Promise((C,R)=>{this.http.post("api/chat-chats/"+A,{id:A,dialog:_}).subscribe(f=>{C(f)},R)})}resolve(A,_){return new Promise((C,R)=>{Promise.all([this.getContacts(),this.getChats(),this.getUser()]).then(([x,f,k])=>{this.contacts=x,this.chats=f,this.user=k,C()},R)})}getContacts(){return new Promise((A,_)=>{this.http.get("api/chat-contacts").subscribe(C=>{A(C)},_)})}getChats(){return new Promise((A,_)=>{this.http.get("api/chat-chats").subscribe(C=>{A(C)},_)})}getUser(){return new Promise((A,_)=>{this.http.get("api/chat-user").subscribe(C=>{A(C[0])},_)})}static#e=this.\u0275fac=function(_){return new(_||d)(a.LFG(l.eN))};static#t=this.\u0275prov=a.Yz7({token:d,factory:d.\u0275fac})}return d})()},36711:(he,y,i)=>{"use strict";i.d(y,{$:()=>f});var e=i(66878),n=i(47394),o=i(65879),a=i(43970),l=i(96814),u=i(81274),d=i(94505),s=i(51314),A=i(83814),_=i(30617),C=i(89515);function R(k,w){if(1&k){const g=o.EpF();o.ynx(0),o.TgZ(1,"button",10),o.NdJ("click",function(){o.CHM(g);const p=o.oxw();return o.KtG(p.onNo())}),o._uU(2,"No"),o.qZA(),o._uU(3," \xa0 "),o.TgZ(4,"zen-loading-button",11),o.NdJ("onBtnClick",function(){o.CHM(g);const p=o.oxw();return o.KtG(p.onYes())}),o.qZA(),o.BQk()}if(2&k){const g=o.oxw();o.xp6(1),o.Q6J("disabled",g.loading),o.xp6(3),o.Q6J("btnColor","mat-accent")("spinnerColor","primary")("disabled",g.btnDisable)("name","yes")("loading",g.loading)}}function x(k,w){if(1&k){const g=o.EpF();o.TgZ(0,"zen-loading-button",11),o.NdJ("onBtnClick",function(){o.CHM(g);const p=o.oxw();return o.KtG(p.onYes())}),o.qZA()}if(2&k){const g=o.oxw();o.Q6J("btnColor","mat-accent")("spinnerColor","primary")("disabled",g.btnDisable)("name","Ok")("loading",g.loading)}}let f=(()=>{class k{constructor(g,M,p){this.cds=g,this.dialogRef=M,this.data=p,this.isAlert=!1,this.setTimer=!1,this.timer=0,this.btnDisable=!!this.data.setTimer,this.loading=!!this.data.setTimer,M.disableClose=!0,this.subs=new n.w0,this.isAlert=this.data.isAlert,this.setTimer=this.data.setTimer,this.timer=this.data.timer,setTimeout(()=>{this.btnDisable=!1,this.loading=!1},this.timer)}ngOnInit(){this.subs.add(this.cds.action.subscribe(g=>{"close"==g?(this.dialogRef.close(),this.cds.action.next(null)):"yes"==g&&(this.loading=!0,this.btnDisable=!0)}))}onYes(){this.cds.action.next("yes"),this.data.closeOnYes&&this.dialogRef.close("yes")}onNo(){this.cds.action.next("no"),this.dialogRef.close("no")}ngOnDestroy(){this.subs.unsubscribe()}static#e=this.\u0275fac=function(M){return new(M||k)(o.Y36(a.D),o.Y36(e.hV),o.Y36(e.eJ))};static#t=this.\u0275cmp=o.Xpm({type:k,selectors:[["zen-confirm-dialog"]],decls:18,vars:12,consts:[[1,"dialog-content-wrapper","confirm-dialog"],[1,"mat-accent","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","space-between center"],[1,"title","dialog-title"],["mat-dialog-content","","fusePerfectScrollbar","",1,"p-12","m-0"],["fxlayout","column",1,"h3","p-0"],[1,"flex-for"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","end center",1,"m-0","p-12"],[4,"ngIf","ngIfElse"],["alertActionTemplate",""],["mat-raised-button","",3,"disabled","click"],[3,"btnColor","spinnerColor","disabled","name","loading","onBtnClick"]],template:function(M,p){if(1&M&&(o.TgZ(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),o._uU(4),o.ALo(5,"translate"),o.qZA()()(),o.TgZ(6,"div",4)(7,"mat-dialog-content",5)(8,"div",6)(9,"mat-icon"),o._uU(10),o.qZA(),o.TgZ(11,"span"),o._uU(12),o.ALo(13,"translate"),o.qZA()()()(),o.TgZ(14,"div",7),o.YNc(15,R,5,6,"ng-container",8),o.YNc(16,x,1,5,"ng-template",null,9,o.W1O),o.qZA()()),2&M){const E=o.MAs(17);let b;o.xp6(4),o.Oqu(o.lcZ(5,8,p.data.headerText)),o.xp6(5),o.Gre("font-size-48 mr-8 ",p.data.dialogIcon?"amber-800-fg s-36":"w-48 h-52 blue-400-fg",""),o.xp6(1),o.Oqu(null!==(b=p.data.dialogIcon)&&void 0!==b?b:"info"),o.xp6(2),o.Oqu(o.lcZ(13,10,p.data.confirmationText)),o.xp6(3),o.Q6J("ngIf",!p.isAlert)("ngIfElse",E)}},dependencies:[l.O5,u.Ye,u.rD,e.Rb,e.ev,d.eB,s.M,A.xw,A.Wh,A.yH,_.Hw,C.X$],styles:[".confirm-dialog .h3{font-size:14px}.flex-for{flex-direction:row;box-sizing:border-box;display:flex;align-items:center}.flex-for span{word-break:break-word}\n"],encapsulation:2})}return k})()},92415:(he,y,i)=>{"use strict";i.d(y,{D:()=>_});var e=i(94505),n=i(66878),o=i(30617),a=i(81274),l=i(43970),u=i(60682),d=i(89515),s=i(96814),A=i(65879);let _=(()=>{class C{static#e=this.\u0275fac=function(f){return new(f||C)};static#t=this.\u0275mod=A.oAB({type:C});static#n=this.\u0275inj=A.cJS({providers:[l.D],imports:[s.ez,a.g0,n.yj,e.yu,u.X,o.Ps,d.aw]})}return C})()},43970:(he,y,i)=>{"use strict";i.d(y,{D:()=>o});var e=i(65619),n=i(65879);let o=(()=>{class a{constructor(){this.action=new e.X(null)}close(){this.action.next("close")}reset(){this.action.next(null)}static#e=this.\u0275fac=function(d){return new(d||a)};static#t=this.\u0275prov=n.Yz7({token:a,factory:a.\u0275fac})}return a})()},30537:(he,y,i)=>{"use strict";i.d(y,{D:()=>R});var e=i(53790),n=i(77171),o=i(42400),a=i(13868),l=i(20180),u=i(12430),d=i(89515),s=i(84187),A=i(45754),_=i(21242),C=i(65879);let R=(()=>{class x{static#e=this.\u0275fac=function(w){return new(w||x)};static#t=this.\u0275mod=C.oAB({type:x});static#n=this.\u0275inj=C.cJS({imports:[l.L,s.wp,A.Zh,o.x4,_.Xo,u.L,a.g,e.u,d.aw,n.y]})}return x})()},87903:(he,y,i)=>{"use strict";i.d(y,{O:()=>J});var e=i(48979),n=i(94505),o=i(45754),a=i(23680),l=i(24678),u=i(38034),d=i(84187),s=i(30617),A=i(42400),_=i(11194),C=i(48424),R=i(32651),x=i(51838),f=i(54841),k=i(81274),w=i(20180),g=i(12430),M=i(47805),p=i(89515),E=i(91918),b=i(54885),I=i(60682),L=i(13868),D=i(8379),F=i(39523),P=i(98148),O=i(64034),U=i(66878),V=i(14165),K=i(30481),X=i(20075),me=i(65879);let J=(()=>{class Q{static#e=this.\u0275fac=function(te){return new(te||Q)};static#t=this.\u0275mod=me.oAB({type:Q});static#n=this.\u0275inj=me.cJS({imports:[w.L,e.i,M.x,n.yu,A.x4,s.Ps,a.si,x.Wd,R.SJ,f.U5,d.wp,_.gf,o.Zh,l.Uc,C.uw,k.g0,K.AA,u.FA,U.yj,p.aw,g.L,L.g,I.X,E.o0,b.nf,D.Q,F.O,P.ef,O.w,V.I,X.M]})}return Q})()},29486:(he,y,i)=>{"use strict";i.d(y,{Z:()=>re});var e=i(97582),n=i(69862),o=i(7110),a=i(3209),l=i(65619),u=i(37398),d=i(64716),s=i(66878),A=i(78645),_=i(72664),C=i(59773),R=i(86825),x=i(65879),f=i(64740),k=i(74187),w=i(30617),g=i(48134),M=i(94505),p=i(96814),E=i(83814),b=i(89515);function I(de,te){1&de&&x._UZ(0,"mat-progress-bar",11)}function L(de,te){if(1&de&&(x.TgZ(0,"p",12)(1,"mat-icon",13),x._uU(2,"warning"),x.qZA(),x.TgZ(3,"span"),x._uU(4),x.ALo(5,"translate"),x.qZA()()),2&de){const j=x.oxw();x.xp6(4),x.Oqu(x.lcZ(5,1,j.validationMessage))}}function D(de,te){1&de&&(x.TgZ(0,"div",14)(1,"mat-icon",15),x._uU(2,"security"),x.qZA(),x.TgZ(3,"div",16)(4,"div",17)(5,"mat-icon",18),x._uU(6,"search"),x.qZA()()()())}function F(de,te){1&de&&(x.TgZ(0,"p",19),x._uU(1),x.qZA()),2&de&&(x.xp6(1),x.hij(" ","Please wait while your file is being scanned for viruses. This process is for your security and to protect your data. Thank you for your patience."," "))}function P(de,te){if(1&de&&(x.TgZ(0,"p",20),x._uU(1),x.qZA()),2&de){const j=x.oxw();x.xp6(1),x.hij("Selected Files ",null==j.files?null:j.files.length,"")}}function O(de,te){1&de&&(x.TgZ(0,"mat-icon",31),x._uU(1,"done"),x.qZA())}function U(de,te){1&de&&(x.TgZ(0,"span"),x._uU(1),x.ALo(2,"translate"),x.qZA()),2&de&&(x.xp6(1),x.Oqu(x.lcZ(2,1,"noThreatsFound")))}function V(de,te){1&de&&(x.TgZ(0,"span",32),x._uU(1),x.ALo(2,"translate"),x.qZA()),2&de&&(x.xp6(1),x.Oqu(x.lcZ(2,1,"threatsDetected")))}function K(de,te){if(1&de&&(x.TgZ(0,"div",23)(1,"div",24)(2,"div",25)(3,"p",26),x._uU(4),x.qZA()(),x.TgZ(5,"div",27),x.YNc(6,O,2,0,"mat-icon",28),x.YNc(7,U,3,3,"span",29),x.YNc(8,V,3,3,"span",30),x.qZA()()()),2&de){const j=te.$implicit,H=x.oxw(2);x.xp6(4),x.Oqu(null!=j&&null!=j.file&&j.file.name?j.file.name:j.file.fileName),x.xp6(2),x.Q6J("ngIf",!H.showScannerBar&&j.cleanResult),x.xp6(1),x.Q6J("ngIf",!H.showScannerBar&&j.cleanResult),x.xp6(1),x.Q6J("ngIf",!H.showScannerBar&&!j.cleanResult)}}function X(de,te){if(1&de&&(x.TgZ(0,"div",21),x.YNc(1,K,9,4,"div",22),x.qZA()),2&de){const j=x.oxw();x.xp6(1),x.Q6J("ngForOf",j.fileResult)}}function me(de,te){if(1&de){const j=x.EpF();x.TgZ(0,"div",33)(1,"button",34),x.NdJ("click",function(){x.CHM(j);const z=x.oxw();return x.KtG(z.close())}),x._uU(2,"OK"),x.qZA()()}}let J=(()=>{class de{constructor(j,H,z,q){this.cloudmersiveScannerService=j,this.dialogRef=H,this.data=z,this.utilityService=q,this.showScannerBar=!0,this.displayValidationMessage=!1,this.fileResultBehavior=new l.X([]),this.preventClose=!1,this.showValidationMsg=!0,this.instantDocumentScan=!0,this.showFileScanComplete=!1,this.showCloseBtn=!1,this.tittleMessage="Scanning for Security Threats...",this._unsubscribeAll=new A.x,this.files=z}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}ngOnInit(){this.documentScan(this.files)}syncDocumentScan(j){try{this.fileResult=[];const H=[];return j.forEach(z=>{H.push(this.cloudmersiveScannerService.documentScanPromise(z).then(q=>q).catch(()=>({})))}),Promise.all(H).then(z=>{if(!z?.length||!z?.[0]?.hasOwnProperty("CleanResult"))return this.displayValidationMessage=!0,this.showScannerBar=!1,this.tittleMessage="Scan Failed",this.validationMessage="Error occured while scanning the files for threats detection.",this.fileResult=!1,!1;for(let q in z){let se={};se.file=j[q],se.cleanResult=z[q].CleanResult,se.foundViruses=z[q].FoundViruses,this.fileResult.push(se)}z.filter(q=>!q.CleanResult)?.length?(this.showFileScanComplete=!0,this.showScannerBar=!1,this.tittleMessage="Scan Complete",this.displayValidationMessage=!0,this.validationMessage="Suspicious files detected, these files will be discarded for security reasons."):setTimeout(()=>(this.dialogRef.close({fileResult:this.fileResult}),{fileResult:this.fileResult}),200)}).catch(z=>!1)}catch{this.utilityService.callSnackBar("somethingWentWrongWhileScanning","error")}}documentScan(j){j&&this.cloudmersiveScannerService.getCredential().then(H=>{(0,_.D)(this.syncDocumentScan(j)).pipe((0,C.R)(this._unsubscribeAll)).subscribe(z=>{})})}close(){this.cloudmersiveScannerService.fileResultBehavior.next(this.fileResult),this.dialogRef.close({fileResult:this.fileResult})}removeFile(j){const H=this.fileResult.findIndex(z=>z?.file?.name===j.name&&!z.cleanResult);H>=0&&this.fileResult.splice(H,1)}static#e=this.\u0275fac=function(H){return new(H||de)(x.Y36(f.F),x.Y36(s.hV),x.Y36(s.eJ),x.Y36(k.t))};static#t=this.\u0275cmp=x.Xpm({type:de,selectors:[["zen-file-scanner-popper"]],inputs:{files:"files",preventClose:"preventClose",showValidationMsg:"showValidationMsg",instantDocumentScan:"instantDocumentScan"},decls:13,vars:11,consts:[["fxLayout","row","fxLayoutAlign","space-between center",1,"pr-12"],["mat-dialog-title","",1,"px-12"],["mode","indeterminate","color","accent",4,"ngIf"],["mat-dialog-content","",1,"scanner-dialog"],["class","px-12 mb-0 red-fg text-center font-size-16 w-100-p","fxLayout","row","fxLayoutGap","8px","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","column",1,"p-12","h3",3,"fxLayoutAlign"],["class","position-relative outer-circle","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["class","font-size-16 py-16 m-0 text-center",4,"ngIf"],["class","mb-8",4,"ngIf"],["class","file-wrapper w-100-p b border-radius-4 p-12 py-0",4,"ngIf"],["mat-dialog-actions","","fxLayout","column","fxLayoutAlign","end end","class","pb-12 px-12 mt-12",4,"ngIf"],["mode","indeterminate","color","accent"],["fxLayout","row","fxLayoutGap","8px","fxLayoutAlign","center center",1,"px-12","mb-0","red-fg","text-center","font-size-16","w-100-p"],[1,"red-fg","s-32"],["fxLayout","row","fxLayoutAlign","center center",1,"position-relative","outer-circle"],[1,"s-100","accent-fg","mb-12","mt-20","policy"],[1,"rotate","linear","infinite","duringFour"],[1,"counter"],[1,"s-70","accent-fg","mb-12","mt-20","policy","position-absolute"],[1,"font-size-16","py-16","m-0","text-center"],[1,"mb-8"],[1,"file-wrapper","w-100-p","b","border-radius-4","p-12","py-0"],["class","py-12 bb file-row","fxLayout","row","fxLayoutAlign","start center",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"py-12","bb","file-row"],["fxLayout","row","fxLayoutAlign","space-between center",1,"w-100-p","secondary-text"],["fxLayout","row","fxLayoutGap","18px","fxLayoutAlign","start center",1,"file-uploaded"],[1,"m-0","text-truncate","w-400"],["fxLayout","row","fxLayoutGap","8px","fxLayoutAlign","end center",1,"threats-warning","font-size-14"],["class","green-fg",4,"ngIf"],[4,"ngIf"],["class","red-fg",4,"ngIf"],[1,"green-fg"],[1,"red-fg"],["mat-dialog-actions","","fxLayout","column","fxLayoutAlign","end end",1,"pb-12","px-12","mt-12"],["mat-raised-button","","mat-dialog-close","","color","accent",1,"mt-12",3,"click"]],template:function(H,z){1&H&&(x.TgZ(0,"div",0)(1,"h2",1),x._uU(2),x.ALo(3,"translate"),x.qZA()(),x.YNc(4,I,1,0,"mat-progress-bar",2),x.TgZ(5,"div",3),x.YNc(6,L,6,3,"p",4),x.TgZ(7,"div",5),x.YNc(8,D,7,0,"div",6),x.YNc(9,F,2,1,"p",7),x.YNc(10,P,2,1,"p",8),x.YNc(11,X,2,1,"div",9),x.qZA()(),x.YNc(12,me,3,0,"div",10)),2&H&&(x.xp6(2),x.Oqu(x.lcZ(3,9,z.tittleMessage)),x.xp6(2),x.Q6J("ngIf",z.showScannerBar),x.xp6(2),x.Q6J("ngIf",z.displayValidationMessage),x.xp6(1),x.Q6J("fxLayoutAlign",z.displayValidationMessage?"start start":" center start"),x.xp6(1),x.Q6J("ngIf",z.showScannerBar),x.xp6(1),x.Q6J("ngIf",z.showScannerBar),x.xp6(1),x.Q6J("ngIf",(null==z.fileResult?null:z.fileResult.length)&&!z.showScannerBar&&z.displayValidationMessage),x.xp6(1),x.Q6J("ngIf",!z.showScannerBar&&z.displayValidationMessage),x.xp6(1),x.Q6J("ngIf",z.displayValidationMessage&&!z.showScannerBar))},dependencies:[w.Hw,g.eI,M.eB,p.sg,p.O5,E.xw,E.SQ,E.Wh,b.X$],styles:[".zen-file-scanner-popup{width:26vw}  .zen-file-scanner-popup .mat-progress-bar{height:4px}  .zen-file-scanner-popup zen-file-scanner-popper .scanner-dialog .file-wrapper{max-height:calc(100vh - 480px);overflow-y:auto}  .zen-file-scanner-popup zen-file-scanner-popper .scanner-dialog .file-wrapper .file-row:last-child{border-bottom:none!important}  .zen-file-scanner-popup zen-file-scanner-popper .scanner-dialog mat-icon.policy{font-family:Material Icons!important}  .zen-file-scanner-popup .outer-circle{width:200px;height:150px;border-radius:100px}  .zen-file-scanner-popup .counter{width:50px;height:50px;animation-duration:inherit;animation-direction:reverse;animation-timing-function:inherit;animation-iteration-count:inherit;animation-name:inherit}@keyframes _ngcontent-%COMP%_circle{0%{-webkit-transform:rotateZ(0deg)}to{-webkit-transform:rotateZ(360deg)}}  .zen-file-scanner-popup .rotate{width:65px;height:65px;animation-name:_ngcontent-%COMP%_circle;-webkit-animation-name:_ngcontent-%COMP%_circle;position:absolute;z-index:10;display:block;right:36px;animation-duration:2.5s;-webkit-animation-duration:2.5s;animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite;animation-timing-function:linear}"],data:{animation:[(0,R.X$)("verifyAnimation",[(0,R.SB)("inactive",(0,R.oB)({transform:"scale(0)"})),(0,R.SB)("active",(0,R.oB)({transform:"scale(1)"})),(0,R.eR)("inactive => active",(0,R.jt)("500ms ease-in"))])]}})}return de})();var Q=i(6738);class re{constructor(te,j,H,z){this.ws=te,this.utilityService=j,this.httpClient=H,this.scannerDialog=z,this.basePath=o.XL.settings.apiUrl,this.commonServiceUrl=this.basePath+"Common/",this.documentServiceUrl=this.basePath+"Document/",this.orgApiUri=o.XL.settings.apiUrl+"Organization/",this.showProgressBar=!1,this.showProgressMb=new l.X(0),this.currentPersonDetail=new l.X({}),this.enableDocumentScanner=null,this.showProgressMb=new l.X(0)}getDocument(te,j){return this.ws.get(this.documentServiceUrl+"Document",{json:te,refresh:j})}insertBulkResumeDocument(te){let j=new n.WM;return j=j.append("Content-Type","angular/auto"),j=j.append("enctype","multipart/form-data"),j=j.append("Accept","application/json"),j=j.append("Authorization","Bearer "+this.utilityService.getLocalStorage("token")),j=j.append("HeaderParams",JSON.stringify({roleId:0,applicationId:0})),this.ws.postWithOptions(this.documentServiceUrl+"InsertBulkResumeDocument",te,{headers:j})}insertDocument(te){let j=new n.WM;return j=j.append("Content-Type","angular/auto"),j=j.append("enctype","multipart/form-data"),j=j.append("Accept","application/json"),j=j.append("Authorization","Bearer "+this.utilityService.getLocalStorage("token")),j=j.append("HeaderParams",JSON.stringify({roleId:0,applicationId:0})),this.ws.postWithOptions(this.documentServiceUrl+"InsertDocument",te,{headers:j})}updateDocument(te){let j=new n.WM;return j=j.append("Content-Type","angular/auto"),j=j.append("enctype","multipart/form-data"),j=j.append("Accept","application/json"),j=j.append("Authorization","Bearer "+this.utilityService.getLocalStorage("token")),j=j.append("HeaderParams",JSON.stringify({roleId:0,applicationId:0})),this.ws.postWithOptions(this.documentServiceUrl+"UpdateDocument",te,{headers:j})}getSingleDocument(te,j){this.blockUI.start();let H=new n.WM;return H=H.append("Content-Type","application/json; charset = UTF-8"),H=H.append("Accept","application/octet-stream"),H=H.append("Authorization","Bearer "+this.utilityService.getLocalStorage("token")),this.httpClient.post(this.documentServiceUrl+"SingleDocument",{documentId:te},{headers:H,responseType:"blob"}).pipe((0,u.U)(q=>new Blob([q],{type:j})),(0,d.x)(()=>{this.blockUI.stop()}))}getSingleDocumentBulk(te){let j=new n.WM;return j=j.append("Content-Type","application/json; charset = UTF-8"),j=j.append("Accept","application/octet-stream"),this.ws.postWithOptions(this.documentServiceUrl+"SingleDocumentBulk",{json:te},{headers:j,responseType:"blob",notCamalizedJson:!0}).pipe((0,u.U)(z=>new Blob([z],{type:"application/zip"})))}getSingleDocumentBulkNew(te){let j=new n.WM;return j=j.append("Content-Type","application/json; charset = UTF-8"),j=j.append("Accept","application/octet-stream"),j=j.append("Transfer-Encoding","true"),this.ws.postWithOptions(this.documentServiceUrl+"SingleDocumentBulk",{json:te},{reportProgress:!0,observe:"events",responseType:"blob",headers:j,notCamalizedJson:!0}).pipe((0,u.U)(z=>z))}downloadThroughURL(te){let j=new n.WM;return j=j.append("Content-Type","application/json; charset = UTF-8"),j=j.append("Accept","application/octet-stream"),j=j.append("Authorization","Bearer "+this.utilityService.getLocalStorage("token")),this.httpClient.get(te,{headers:j,responseType:"blob"}).pipe((0,u.U)(z=>{const q=this.setFileType(z.type);return new Blob([z],{type:q})}))}getMergeDocument(te,j){this.blockUI.start();let H=new n.WM;return H=H.append("Content-Type","application/json; charset = UTF-8"),H=H.append("Accept","application/octet-stream"),H=H.append("Authorization","Bearer "+this.utilityService.getLocalStorage("token")),this.httpClient.post(this.documentServiceUrl+"MergeDocument",{documentIds:te},{headers:H,responseType:"blob"}).pipe((0,u.U)(q=>new Blob([q],{type:j})),(0,d.x)(()=>{this.blockUI.stop()}))}getServiceBatch(te,j){return this.ws.get(this.documentServiceUrl+"ServiceBatch",{json:te,refresh:j},null)}getDocumentTypeListItem(te){return this.ws.get(this.documentServiceUrl+"DocumentTypeListItem",{json:te},null)}insertServiceBatch(te){return this.ws.post(this.documentServiceUrl+"ServiceBatch",{json:te},null,null)}updateServiceBatchStatus(te){return this.ws.post(this.documentServiceUrl+"UpdateServiceBatchStatus",{json:te},null,null)}getServiceBatchStatus(te){return this.ws.get(this.documentServiceUrl+"GetServiceBatchStatus",{json:te},null)}getServiceBatchParsedResumeData(te){return this.ws.get(this.documentServiceUrl+"GetServiceBatchParsedResumeData",{json:te},null)}updateParsedResumeDocument(te){return this.ws.post(this.documentServiceUrl+"UpdateParsedResumeDocument",{json:te},null,null)}createServiceBatchNewPerson(te,j,H){return this.ws.post(this.documentServiceUrl+"ServiceBatchNewPerson",{json:te,entity:j,serviceBatchId:H})}sendDocumentEmail(te,j,H,z=!1){return this.ws.post(this.documentServiceUrl+"DocumentEmail",{email:te,documentIds:j,merge:H},null,null,z)}deleteDocument(te){return this.ws.post(this.documentServiceUrl+"DeleteDocument",{json:te},null,null)}checkServiceBatch(te){return this.ws.get(this.documentServiceUrl+"CheckServiceBatch",{json:te,refresh:!0},null)}getPersonHandbook(te,j){return this.ws.get(this.documentServiceUrl+"PersonHandbook",{json:te,refresh:j||!1},null)}getEntityDocument(te,j){return this.ws.get(this.documentServiceUrl+"EntityDocument",{json:te,refresh:j})}getDocumentEntity(te,j){return this.ws.get(this.documentServiceUrl+"DocumentEntity",{json:te,refresh:j})}documentAccessTsk(te){return this.ws.post(this.documentServiceUrl+"DocumentAccess",{json:te},null,null)}getEntityDocumentObject(te){let j=new n.WM;j=j.append("Content-Type","application/json; charset = UTF-8"),j=j.append("Accept","application/octet-stream"),j=j.append("Authorization","Bearer "+this.utilityService.getLocalStorage("token"));const H={headers:j,responseType:"blob"};return this.httpClient.post(this.documentServiceUrl+"EntityDocumentObject",{json:JSON.stringify(te)},H).pipe((0,u.U)(z=>new Blob([z],{type:"pdf"})))}save(){return"Add"==this.sharedData.mode?new Promise(te=>this.insertDocument(this.sharedData.docData).subscribe(j=>{this.sharedData.newDocument=j,this.sharedData.newDocument.access=this.sharedData.documentAccessData.access,this.sharedData.newDocument.accessValue=this.sharedData.documentAccessData.accessValue;let z={isMoveDocument:this.sharedData.documentAccessData.isMoveDocument,documentId:this.sharedData.newDocument.documentId,entity:this.sharedData.documentAccessData.entity,entityIdList:this.sharedData.documentAccessData.entityIdList};return new Promise(q=>this.documentAccessTsk(JSON.stringify(z)).subscribe(se=>te(!0)))})):"Edit"==this.sharedData.mode?new Promise(te=>this.updateDocument(this.sharedData.docData).subscribe(j=>{this.sharedData.newDocument=this.sharedData.docModel,this.sharedData.newDocument.documentType=this.sharedData.documentType,this.sharedData.newDocument.fileName=this.sharedData.fileName,this.sharedData.newDocument.access=this.sharedData.documentAccessData.access,this.sharedData.newDocument.accessValue=this.sharedData.documentAccessData.accessValue;let H={isMoveDocument:this.sharedData.documentAccessData.isMoveDocument,documentId:this.sharedData.newDocument.documentId,entity:this.sharedData.documentAccessData.entity,entityIdList:this.sharedData.documentAccessData.entityIdList};return new Promise(z=>this.documentAccessTsk(JSON.stringify(H)).subscribe(q=>te(!0)))})):void 0}setFileType(te){let j="";switch(te){case"application/pdf":j="pdf";break;case"application/msword":j="doc";break;case"application/msword":j="dot";break;case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":j="docx";break;case"application/vnd.openxmlformats-officedocument.wordprocessingml.template":j="dotx";break;case"application/vnd.ms-word.document.macroEnabled.12":j="docm";break;case"application/vnd.ms-word.template.macroEnabled.12":j="dotm";break;case"application/vnd.ms-excel":j="xls";break;case"application/vnd.ms-excel":j="xlt";break;case"application/vnd.ms-excel":j="xla";break;case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":j="xlsx";break;case"application/vnd.openxmlformats-officedocument.spreadsheetml.template":j="xltx";break;case"application/vnd.ms-excel.sheet.macroEnabled.12":j="xlsm";break;case"application/vnd.ms-excel.template.macroEnabled.12":j="xltm";break;case"application/vnd.ms-excel.addin.macroEnabled.12":j="xlam";break;case"application/vnd.ms-excel.sheet.binary.macroEnabled.12":j="xlsb";break;case"application/vnd.ms-powerpoint":j="ppt";break;case"application/vnd.ms-powerpoint":j="pot";break;case"application/vnd.ms-powerpoint":j="pps";break;case"application/vnd.ms-powerpoint":j="ppa";break;case"application/vnd.openxmlformats-officedocument.presentationml.presentation":j="pptx";break;case"application/vnd.openxmlformats-officedocument.presentationml.template":j="potx";break;case"application/vnd.openxmlformats-officedocument.presentationml.slideshow":j="ppsx";break;case"application/vnd.ms-powerpoint.addin.macroEnabled.12":j="ppam";break;case"application/vnd.ms-powerpoint.presentation.macroEnabled.12":j="pptm";break;case"application/vnd.ms-powerpoint.template.macroEnabled.12":j="potm";break;case"application/vnd.ms-powerpoint.slideshow.macroEnabled.12":j="ppsm";break;case"application/vnd.ms-access":j="mdb";break;case"application/rtf":j="rtf";break;case"js":j="application/x-javascript";break;case"image/bmp":j="bmp";break;case"image/cis-cod":j="cod";break;case"image/gif":j="gif";break;case"image/png":j="png";break;case"image/ief":j="ief";break;case"image/jpeg":j="jpeg";break;case"image/pipeg":j="jfif";break;case"image/svg+xml":j="svg";break;case"image/tiff":j="tif";break;case"image/tiff":j="tiff";break;case"image/x-cmu-raster":j="ras";break;case"image/x-cmx":j="cmx";break;case"image/x-icon":j="ico";break;case"image/x-portable-anymap":j="pnm";break;case"image/x-portable-bitmap":j="pbm";break;case"image/x-portable-graymap":j="pgm";break;case"image/x-portable-pixmap":j="ppm";break;case"image/x-rgb":j="rgb";break;case"image/x-xbitmap":j="xbm";break;case"image/x-xpixmap":j="xpm";break;case"image/x-xwindowdump":j="xwd";break;case"message/rfc822":j="mhtml";break;case"text/css":j="css";break;case"text/h323":j="323";break;case"text/html":j="htm";break;case"text/html":j="html";break;case"text/html":j="stm";break;case"application/javascript":j="json";break;case"text/iuls":j="uls";break;case"text/plain":j="txt";break;case"text/richtext":j="rtx";break;case"text/scriptlet":j="sct";break;case"text/tab-separated-values":j="tsv";break;case"text/webviewhtml":j="htt";break;case"text/x-component":j="htc";break;default:j="application/vnd.openxmlformats-officedocument.wordprocessingml.document"}return j}getCurrentTenantOrgnization(){return new Promise(te=>{var j=localStorage.getItem("ZNPL");if(null==this.enableDocumentScanner&&j){const H=JSON.parse(this.utilityService.decrypt(j));this.getCurrentOrganizationDetail({alias:H?.orgCode}).subscribe(z=>{this.enableDocumentScanner=z?.enableDocumentScanner??!1,te(!0)},z=>{te(!1)})}else te(!0)})}optionPropertyValue(te,j,H,z){return this.ws.get(this.commonServiceUrl+"OptionPropertyValue",{option:te,property:j,entity:H,entityId:z},null)}openScannerDialog(te,j=""){return new Promise(H=>{this.getCurrentTenantOrgnization().then(z=>{if(1==this.enableDocumentScanner){if("affinda"==j)return void H(!0);this.scannerDialog.open(J,{disableClose:!0,data:te,panelClass:"zen-file-scanner-popup"}).afterClosed().subscribe(se=>{H(!!se?.fileResult&&se?.fileResult)})}else console.log("Document scanner not enabled"),H(!0)})})}openScannerDialogNew(te){return new Promise(j=>{this.getCurrentTenantOrgnization().then(H=>{1==this.enableDocumentScanner?this.scannerDialog.open(J,{disableClose:!0,data:te,panelClass:"zen-file-scanner-popup"}).afterClosed().subscribe(q=>{j(!!q?.fileResult&&q?.fileResult)}):j({success:!0,documentScannerDisabled:!0})})})}getCurrentOrganizationDetail(te){let j=new n.WM;return j=j.append("AllowAnonymous","true"),this.ws.getWithOptions(this.orgApiUri+"TenantOrganization",{headers:j,params:{json:JSON.stringify(te)}})}getEmailDocumentListItem(te){return this.ws.get(this.documentServiceUrl+"EmailDocumentListItem",{json:te},null)}static#e=this.\u0275fac=function(j){return new(j||re)(x.LFG(Q.f),x.LFG(k.t),x.LFG(n.eN),x.LFG(s.on))};static#t=this.\u0275prov=x.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"})}(0,e.gn)([(0,a.bH)()],re.prototype,"blockUI",void 0)},45114:(he,y,i)=>{"use strict";i.d(y,{f:()=>u});var e=i(7110),n=i(65619),o=i(69862),a=i(65879),l=i(6738);let u=(()=>{class d{constructor(A,_){this.ws=A,this.httpClient=_,this.currentEVerifyStatus=new n.X(null),this.everifyUrl=e.XL.settings.apiUrl+"EVerify/"}duplicateCheck(A,_){const C=(new o.LE).set("personId",_.toString()),R=(new o.WM).set("Content-Type","application/json");return this.ws.postWithOptions(this.everifyUrl+"DuplicateCheck",A,{params:C,headers:R})}initiateVerification(A,_,C){const R=C?(new o.LE).set("personId",_.toString()).append("duplicateCaseNumbers",C):(new o.LE).set("personId",_.toString()),x=(new o.WM).set("Content-Type","application/json");return this.ws.postWithOptions(this.everifyUrl+"InitiateVerification",A,{params:R,headers:x})}closeAllCases(A,_,C,R){const x=(new o.LE).set("reasonCode",_).append("ssn",C).append("personId",R.toString()),f=(new o.WM).set("Content-Type","application/json");return this.ws.postWithOptions(this.everifyUrl+"CloseAllCases",A,{params:x,headers:f})}confirmDetails(A,_,C){const R=(new o.LE).set("caseNumber",_).append("personId",C.toString()),x=(new o.WM).set("Content-Type","application/json");return this.ws.postWithOptions(this.everifyUrl+"ConfirmDetails",A,{params:R,headers:x})}retrievePhoto(A,_){const R={params:(new o.LE).set("caseNumber",A).append("personId",_.toString())};return this.ws.getWithOptions(this.everifyUrl+"RetrievePhoto",R)}photoMatch(A,_,C){const R=(new o.LE).set("caseNumber",_).append("personId",C.toString()),x=(new o.WM).set("Content-Type","application/json");return this.ws.postWithOptions(this.everifyUrl+"PhotoMatch",A,{params:R,headers:x})}scanAndUpload(A,_,C){const R=(new o.LE).set("caseNumber",_).append("personId",C.toString());let x=new o.WM;return x=x.append("Content-Type","angular/auto"),x=x.append("enctype","multipart/form-data"),x=x.append("Accept","application/json"),this.ws.postWithOptions(this.everifyUrl+"ScanAndUpload",A,{params:R,headers:x})}furtherActionNotice(A,_,C){const x={params:(new o.LE).set("caseNumber",A).append("personId",_.toString()).append("language",C)};return this.ws.getWithOptions(this.everifyUrl+"FurtherActionNotice",x)}referCase(A,_,C){const R=(new o.LE).set("caseNumber",_).append("personId",C.toString()),x=(new o.WM).set("Content-Type","application/json");return this.ws.postWithOptions(this.everifyUrl+"ReferCase",A,{params:R,headers:x})}noAction(A,_,C){const R=(new o.LE).set("caseNumber",_).append("personId",C.toString()),x=(new o.WM).set("Content-Type","application/json");return this.ws.postWithOptions(this.everifyUrl+"NoAction",A,{params:R,headers:x})}caseClosureReasons(A,_){const R={params:(new o.LE).set("caseNumber",A).append("personId",_.toString())};return this.ws.getWithOptions(this.everifyUrl+"CaseClosureReasons",R)}closeCase(A,_,C){const R=(new o.LE).set("caseNumber",_).append("personId",C.toString()),x=(new o.WM).set("Content-Type","application/json");return this.ws.postWithOptions(this.everifyUrl+"CloseCase",A,{params:R,headers:x})}referralDateConfirmation(A,_,C){const x={params:(new o.LE).set("caseNumber",A).append("personId",_.toString()).append("language",C)};return this.ws.getWithOptions(this.everifyUrl+"ReferralDateConfirmation",x)}retrieveCase(A,_){const R={params:(new o.LE).set("caseNumber",A).append("personId",_.toString())};return this.ws.getWithOptions(this.everifyUrl+"RetrieveCase",R)}static#e=this.\u0275fac=function(_){return new(_||d)(a.LFG(l.f),a.LFG(o.eN))};static#t=this.\u0275prov=a.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})()},87439:(he,y,i)=>{"use strict";i.d(y,{F:()=>ne});var e=i(15861),n=i(97582),o=i(34938),a=i(23605),l=i(65879),u=i(78645),d=i(64190),s=i(11194),A=i(94748),_=i(68658),C=i(59773),R=i(48180),x=i(22664),f=i(6990),w=i(3209),g=i(28011),M=i(710),p=i(61371),E=i(66878),b=i(74187),I=i(96814),L=i(64954),D=i(83814),F=i(43413),P=i(30617),O=i(32333),U=i(94505),V=i(23680),K=i(89515);const X=["tabs"],me=["detailContainer"],J=function(){return{x:"50px"}},Q=function(_e){return{value:"*",params:_e}};function re(_e,ge){if(1&_e){const Ce=l.EpF();l.TgZ(0,"button",21),l.NdJ("click",function(){l.CHM(Ce);const De=l.oxw(2);return l.KtG(De.onSlideViewClose.emit(!0))}),l.TgZ(1,"mat-icon",22),l._uU(2,"close"),l.qZA()()}2&_e&&l.Q6J("@animate",l.VKq(2,Q,l.DdM(1,J)))}function de(_e,ge){if(1&_e){const Ce=l.EpF();l.TgZ(0,"button",24),l.NdJ("click",function(){l.CHM(Ce);const De=l.oxw(3);return l.KtG(De.navigateBack())}),l.TgZ(1,"mat-icon",25),l._uU(2,"arrow_back"),l.qZA()()}}function te(_e,ge){if(1&_e&&l.YNc(0,de,3,0,"button",23),2&_e){const Ce=l.oxw(2);l.Q6J("ngIf",Ce.showBackButton)}}function j(_e,ge){if(1&_e){const Ce=l.EpF();l.TgZ(0,"mat-paginator",26,27),l.NdJ("page",function(De){l.CHM(Ce);const fe=l.oxw(2);return l.KtG(fe.pageChange(De))}),l.qZA()}if(2&_e){const Ce=l.oxw(2);l.Q6J("length",Ce.gridData.length)("pageIndex",Ce.currentPageIndex)("pageSize",1)("showFirstLastButtons",!1)}}function H(_e,ge){if(1&_e&&(l.TgZ(0,"span",28),l._uU(1),l.qZA()),2&_e){const Ce=l.oxw(2);l.xp6(1),l.Oqu(Ce.entityTitle)}}function z(_e,ge){1&_e&&(l.TgZ(0,"div",29),l._UZ(1,"div",null,30),l.qZA())}function q(_e,ge){if(1&_e&&(l.TgZ(0,"div",10)(1,"div",11)(2,"div",12)(3,"div",13)(4,"div",14),l.YNc(5,re,3,4,"button",15),l.YNc(6,te,1,1,"ng-template",null,16,l.W1O),l.TgZ(8,"div",17),l.YNc(9,j,2,4,"mat-paginator",18),l.qZA()(),l.YNc(10,H,2,1,"span",19),l._UZ(11,"span"),l.qZA(),l.YNc(12,z,3,0,"div",20),l.qZA()()()),2&_e){const Ce=l.MAs(7),Te=l.oxw();l.xp6(5),l.Q6J("ngIf",!Te.isDetailView)("ngIfElse",Ce),l.xp6(4),l.Q6J("ngIf",Te.showMatNavigator),l.xp6(1),l.Q6J("ngIf",!Te.isPortalApplication),l.xp6(2),l.Q6J("ngIf",Te.showDetailTemplate)}}function se(_e,ge){if(1&_e){const Ce=l.EpF();l.TgZ(0,"a",31),l.NdJ("click",function(){const fe=l.CHM(Ce).$implicit,xe=l.oxw();return l.KtG(xe.setInternalNavigation(fe))}),l._uU(1),l.ALo(2,"translate"),l.qZA()}if(2&_e){const Ce=ge.$implicit,Te=l.oxw();l.Gre("zenauto-internal-link-",Ce.title.replaceAll(" ","").replaceAll("&","-"),""),l.Q6J("disabled",Te.disableNavigationTab)("active",Ce.isActive),l.xp6(1),l.hij(" ",l.lcZ(2,6,Ce.title)," ")}}class ne extends a.g{set content(ge){this.detailContainer=ge,this.setupDetailComponent()}set setCustomTemplate(ge){this.customTemplate=ge}set setSlideView(ge){ge&&(this.isSlideView=ge,this.personService.isSlideView=this.isSlideView,this.eds.updateEntityDetailObject(this.isSlideView,x.j.EntityData,"isSlideView"))}set value(ge){if(ge&&Object.keys(ge).length>0)this.entityData=ge,this.entityAccessCheck(this.entityData.entityId,this.entityData.entity).then(Ce=>{Ce&&(this.showDetailTemplate=!0,this.evaluateAndRedirect())});else{let Ce=this.router.url.split("/"),Te={entity:Ce[1].replace(/-/g,""),entityId:Ce[3],activeInternalNav:{outerNavId:this.eds.getActiveInternalNavId("outerNavId")??null,innerNavId:this.eds.getActiveInternalNavId("innerNavId")??null}};switch(this.isDetailView&&!sessionStorage.getItem("detailViewRootUrl")&&(Ce=Ce.slice(0,4),sessionStorage.setItem("detailViewRootUrl",Ce.join("/"))),Te.entity.toLowerCase()){case"sales":Te.entity="target";break;case"admin":Te.entity=Ce[2].replace(/-/g,"");break;case"organization":Te.entity="customer";break;case"person":Te.entity="employee"}Ce.length>=3&&"contact-directory"===Ce[2].toLowerCase()&&(Te.entity="contact"),this.entityAccessCheck(Te.entityId,Te.entity).then(De=>{De&&this.eds.loadEntityDataFromDb(Te).then(fe=>{this.entityData=fe,this.entityData&&(this.displayEntityTitle(),this.showDetailTemplate=!0),this.evaluateAndRedirect()})})}}constructor(ge,Ce,Te,De,fe,xe,Oe,Le,Gt){super(),this.componentFactoryResolver=ge,this.eds=Ce,this.commonService=Te,this.personService=De,this.router=fe,this.dialog=xe,this.utilityService=Oe,this.location=Le,this.workflowService=Gt,this.disableNavigationTab=!1,this.currentPageIndex=-1,this.showMatNavigator=!1,this.isSlideView=!1,this.entityData={},this.showDetailTemplate=!1,this.exceptionJson={},this.expJson={entityId:0,entity:"",exceptionStage:"",entityOfficeId:0},this.isPortalApplication=!1,this.entityTitle="",this.isInternalUser=!0,this.entityMapping={newhire:"New Hire",jobcandidate:"Job Candidate",tempjob:"Job",directhirejob:"Direct Hire",newcustomer:"New Customer",workinjury:"Work Injury"},this.openAddDialog=new l.vpe,this.close=new l.vpe,this.onPageChange=new l.vpe,this.onSlideViewClose=new l.vpe,this.isDetailView=!0,this.showBackButton=!0,this.useCustomData=!1,this._unsubscribeAll=new u.x,this.disableNavigationTab=!0,this.blockUI.start()}ngOnInit(){this.personService.currentPersonDetail.pipe((0,C.R)(this._unsubscribeAll)).subscribe(Ce=>{this.currentPersonDetail=Ce}),["applicantportal","newhireportal","employeeportal"].includes(this.currentPersonDetail.application.toLowerCase())&&(this.isPortalApplication=!0),this.isInternalUser="true"===this.utilityService.getTokenValueByKey("isInternal").toLowerCase(),this.isDetailView&&this.eds.isDetailView.next(!0),this.utilityService.onSnapshotEntityChange.next(null),this.utilityService.onSnapshotEntityChange.pipe((0,C.R)(this._unsubscribeAll)).subscribe(Ce=>{Ce&&this.entityData.entityId==Ce.entityId&&this.entityData.entity.toLowerCase()==Ce.entity.toLowerCase()&&this.setInternalNavigation(Ce.data)}),this.listenNavChangeEvent()}ngAfterViewInit(){this.entityData=this.eds.getCurrentEntityDetail(),this.displayEntityTitle()}displayEntityTitle(){this.entity=this.entityData.entity,this.entityTitle=this.entityMapping[this.entity?.toLowerCase()]?this.entityMapping[this.entity?.toLowerCase()]:this.entity}setupDetailComponent(){try{if(this.customTemplate){const ge=this.componentFactoryResolver.resolveComponentFactory(this.customTemplate);this.detailContainer&&(this.detailContainer.clear(),this.componentRef=this.detailContainer.createComponent(ge),this.customDetailInstance=this.componentRef.instance)}}catch(ge){console.log("setupDetailComponent:",ge)}}entityAccessCheck(ge,Ce){return new Promise((Te,De)=>{this.commonService.entityAccessCheck(ge,Ce).pipe((0,C.R)(this._unsubscribeAll)).subscribe(fe=>{fe.value||(this.router.navigateByUrl(this.eds.getBlankUrl(),{skipLocationChange:!0,replaceUrl:!1}),this.blockUI.stop(),this.utilityService.callSnackBar("Access to this navigation is restricted.","error")),Te(fe.value)},De)})}loadNavigationAndRedirect(){var ge=this;return(0,e.Z)(function*(){ge.isInternalUser&&(yield ge.callExceptionProcess()),ge.loadInternalNavigation()})()}loadInternalNavigation(){this.eds.getInternalNavigation(this.entityData.parentNavigationId,this.entityData.applicationId,this.entityData.roleId).pipe((0,R.q)(1)).subscribe(ge=>{this.navigationTabs=ge,this.navigationTabs?.length?this.checkActivatedRouteAndRedirect():(this.router.navigateByUrl(this.eds.getBlankUrl(),{skipLocationChange:!0,replaceUrl:!1}),this.blockUI.stop())})}checkActivatedRouteAndRedirect(ge){var Ce=this;return(0,e.Z)(function*(){let Te,De,fe;if(ge)Te=Ce.navigationTabs.find(Oe=>Oe.id==ge.id),Te||(Te=Ce.navigationTabs.find(Oe=>Oe.id==ge.parentNavigationId),fe=Te?ge.id:null);else{const Oe=Ce.eds.getActiveInternalNavId("outerNavId");fe=Oe?Ce.eds.getActiveInternalNavId("innerNavId"):null,Te=(Oe?Ce.navigationTabs.find(Gt=>Gt.id==Oe):Ce.navigationTabs[0])??Ce.navigationTabs[0]}Te&&(Ce.navigationTabs.map(Oe=>Oe.isActive=!1),Te.isActive=!0,Ce.eds.updateEntityDetailObject(Ce.navigationTabs,x.j.EntityData,"navigationTabs"),Ce.eds.updateEntityDetailNavigationStatus(Te),"internalgroup"==Te.type&&(De=(fe?Te.children.find(Le=>Le.id==fe):Te.children[0])??Te.children[0],Te.children.map(Le=>Le.isActive=!1),De.isActive=!0,Ce.eds.updateEntityDetailObject(Te.children,x.j.EntityData,"groupNavigationTabs"),Ce.eds.updateGroupEntityDetailNavigationStatus(De))),Ce.eds.currentRouterOutlet.next(Ce.outlet);const xe=Ce.eds.getFullUrl();Ce.router.navigateByUrl(xe,{skipLocationChange:!!Ce.isSlideView,replaceUrl:!0}).then(Oe=>{Ce.blockUI.stop(),Ce.disableNavigationTab=!1}).catch(Oe=>{Ce.blockUI.stop(),Ce.disableNavigationTab=!1})})()}evaluateAndRedirect(){this.loadNavigationAndRedirect(),this.checkIfEntityDetailExistsInGridData(),this.detailContainer&&this.customDetailInstance.onEntityChange(),this.entityData.hasOwnProperty("isSlideView")&&(this.isSlideView=this.entityData.isSlideView,this.personService.isSlideView=this.isSlideView,this.eds.updateEntityDetailObject(this.isSlideView,x.j.EntityData,"isSlideView"))}navigateBack(){const ge=this.router.url.split("/");this.router.navigate(["./"+ge[1]+"/"+ge[2]],{skipLocationChange:!!this.isSlideView})}addToRecent(ge){this.commonService.insertRecentData({entity:ge.entity,entityId:ge.entityId,applicationId:ge.applicationId}).pipe((0,C.R)(this._unsubscribeAll)).subscribe(De=>{})}pageChange(ge){var Ce=this;return(0,e.Z)(function*(){const Te=Ce.gridData[ge.pageIndex];if(Te.entityId){if(Ce.entityData.entity=Te.entity?.toLowerCase(),Ce.entityData.entityId=Te.entityId,Ce.entity=Ce.entityData.entity,Ce.entityTitle=Ce.entityMapping[Ce.entity?.toLowerCase()]?Ce.entityMapping[Ce.entity?.toLowerCase()]:Ce.entity,Ce.eds.isDetailView.value&&1===Ce.eds.directory.length){const fe=Ce.eds.rootUrl.split("/");fe[fe.length-1]=Te.entityId,Ce.eds.rootUrl=fe.join("/")}const De={entity:Ce.entityData.entity,entityId:Ce.entityData.entityId,activeInternalNav:{outerNavId:Ce.eds.getActiveInternalNavId("outerNavId")??null,innerNavId:Ce.eds.getActiveInternalNavId("innerNavId")??null},selectionColumn:Te.selectionColumn,selectionId:Te.selectionId};Ce.entityAccessCheck(De.entityId,De.entity).then(fe=>{fe&&Ce.eds.loadEntityDataFromDb(De).then(xe=>{Ce.entityData.gridDataItem=xe.gridDataItem,Ce.entityData.primaryColumn=xe.primaryColumn,Ce.entityData.parentNavigationId=xe.parentNavigationId,Ce.entityData.applicationId=xe.applicationId,Ce.evaluateAndRedirect();const Oe=(0,f.cloneDeep)(Ce.entityData);Oe.primaryColumn=De.selectionColumn??Ce.entityData.primaryColumn,Oe.entityId=De.selectionId??Ce.entityData.entityId,Ce.onPageChange.emit(Oe),Ce.addToRecent(Ce.entityData)})})}else{const De=ge.pageIndex-ge.previousPageIndex>0?"next":"previous";"next"===De&&Ce.paginator.hasNextPage()?Ce.paginator.nextPage():"previous"===De&&Ce.paginator.hasPreviousPage()&&Ce.paginator.previousPage()}})()}listenNavChangeEvent(){this.eds.currentNavigationTab.pipe((0,C.R)(this._unsubscribeAll)).subscribe(ge=>{if(ge&&this.entityData.entityId==ge.entityId&&this.entityData.entity==ge.entity){const Ce=this.navigationTabs?.find(Te=>Te.id==ge.navigation.navigationId);Ce>=0&&(this.navigationTabs.map(Te=>Te.isActive=!1),this.navigationTabs[Ce].isActive=!0)}})}setInternalNavigation(ge){this.disableNavigationTab=!0,this.blockUI.start(),this.utilityService.onInternalNavigationChange.next(!0),this.eds.removeGroupInternalNavigation(),this.checkActivatedRouteAndRedirect(ge)}getParentNavigationId(ge){void 0!==ge.length?ge.forEach(Ce=>{this.currentPath===Ce.url&&(this.entityData.parentNavigationId=Ce.id),Ce.children.length>0&&Ce.children.forEach(Te=>{this.getParentNavigationId(Te)})}):(this.currentPath===ge.url&&(this.entityData.parentNavigationId=ge.id),ge.children&&ge.children.forEach(Ce=>{this.getParentNavigationId(Ce)}))}checkIfEntityDetailExistsInGridData(){this.gridData=this.eds.getCurrentGridData(),this.currentPageIndex=-1,this.currentPageIndex=this.entityData.selectionColumn&&this.entityData.selectionId?this.gridData?.findIndex(ge=>ge.selectionId==this.entityData.selectionId)??-1:this.gridData?.findIndex(ge=>ge.entityId==this.entityData.entityId)??-1,this.showMatNavigator=this.gridData?.length>1&&-1!==this.currentPageIndex&&!1!==this.entityData.navigate}callExceptionProcess(){var ge=this;return new Promise(function(){var Ce=(0,e.Z)(function*(Te){if(Object.keys(ge.entityData).length>0&&ge.entityData.entityId>0){ge.expJson.entity=ge.entityData.entity,ge.expJson.entityId=ge.entityData.entityId,ge.expJson.entityOfficeId=ge.entityData.gridDataItem.officeId;const De={applicant:"ApplicantDetail",newhire:"NewHireDetail",employee:"EmployeeDetail",lead:"LeadDetail",target:"TargetDetail",newcustomer:"NewCustomerDetail",customer:"CustomerDetail",assignment:"AssignmentDetail",tempjob:"TempJobDetail",directhirejob:"DirectHireJobDetail",payment:"PaymentDetail",invoice:"InvoiceDetail",workinjury:"WorkInjuryDetail",unemployment:"UnemploymentDetail"},fe=ge.entityData.entity.toLowerCase();ge.expJson.exceptionStage=De[fe]??"",ge.exceptionJson.exceptionJson=ge.expJson,ge.exceptionJson.dialogLoadType=_.Z.static,""!==ge.expJson.exceptionStage&&(yield ge.exceptionTask(ge.exceptionJson)),Te(!0)}});return function(Te){return Ce.apply(this,arguments)}}())}exceptionTask(ge){return new Promise(Ce=>{this.commonService.exceptionProcess(JSON.stringify(ge.exceptionJson)).pipe((0,C.R)(this._unsubscribeAll)).subscribe(Te=>{Te?(Te&&Object.keys(Te).length>0&&null!=Te.data?(ge.exceptionData=Te,this.openExceptionDialog(ge).subscribe()):Te&&Te.hasOwnProperty("error")&&(this.utilityService.callSnackBar("errorInException","error"),Ce(!1)),Ce(!0)):(this.utilityService.callSnackBar("errorInException","error"),Ce(!1))})})}openExceptionDialog(ge){const Ce=new u.x;return this.dialog.open(o.x,{data:ge,panelClass:"exception-dialog",disableClose:!0}),this.blockUI.stop(),Ce.asObservable()}ngOnDestroy(){this.workflowService.currentWorkflowStage=null,this.eds.removeCurrentEntityDetail(),this.utilityService.onSnapshotEntityChange.next(null),this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Ce){return new(Ce||ne)(l.Y36(l._Vd),l.Y36(g.a),l.Y36(M.v),l.Y36(p.R),l.Y36(d.F0),l.Y36(E.on),l.Y36(b.t),l.Y36(I.Ye),l.Y36(L.z))};static#t=this.\u0275cmp=l.Xpm({type:ne,selectors:[["entity-detail"]],viewQuery:function(Ce,Te){if(1&Ce&&(l.Gf(d.lC,5),l.Gf(X,7,l.SBq),l.Gf(s.cl,5),l.Gf(me,5,l.s_b)),2&Ce){let De;l.iGM(De=l.CRH())&&(Te.outlet=De.first),l.iGM(De=l.CRH())&&(Te.tabs=De.first),l.iGM(De=l.CRH())&&(Te.paginator=De.first),l.iGM(De=l.CRH())&&(Te.content=De.first)}},inputs:{isDetailView:"isDetailView",showBackButton:"showBackButton",useCustomData:"useCustomData",showOpenDialog:"showOpenDialog",setCustomTemplate:["customTemplate","setCustomTemplate"],setSlideView:["isSlideView","setSlideView"],value:["entityDetail","value"]},outputs:{openAddDialog:"openAddDialog",close:"close",onPageChange:"onPageChange",onSlideViewClose:"onSlideViewClose"},features:[l.qOj],decls:11,vars:2,consts:[[1,"page-layout","carded","fullwidth"],[1,"top-bg"],[1,"center"],["class","zen-header white-fg",4,"ngIf"],[1,"content-card","fuse-white"],[1,"navtab-custom"],[1,"navtab-custom-links"],["mat-tab-nav-bar","",1,"zenauto-internal-navigation-wrap"],["mat-tab-link","",3,"disabled","active","class","click",4,"ngFor","ngForOf"],[1,"co-inner-wrap","inner-scroll"],[1,"zen-header","white-fg"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","10px","fxLayoutGap.xs","0",1,"zen-top-header"],["fxFlex","100",1,"entitydetail-top-left"],["fxLayout","row","fxLayoutAlign","space-between center",1,"px-8","mkg-action","h-40"],["fxLayout","row","fxLayoutAlign","space-between center"],["matRipple","","class","close-button h-28 w-28","fxLayout","row","fxLayoutAlign","center center",3,"click",4,"ngIf","ngIfElse"],["backButton",""],[1,"paginator-container"],["class","employeedetail-paginator",3,"length","pageIndex","pageSize","showFirstLastButtons","page",4,"ngIf"],["class","entity-name",4,"ngIf"],["fxLayout","column","fxLayout.xs","column",4,"ngIf"],["matRipple","","fxLayout","row","fxLayoutAlign","center center",1,"close-button","h-28","w-28",3,"click"],[1,"s-18"],["class","pre-action","mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",1,"pre-action",3,"click"],[1,"fuse-white-fg"],[1,"employeedetail-paginator",3,"length","pageIndex","pageSize","showFirstLastButtons","page"],["paginator",""],[1,"entity-name"],["fxLayout","column","fxLayout.xs","column"],["detailContainer",""],["mat-tab-link","",3,"disabled","active","click"]],template:function(Ce,Te){1&Ce&&(l.TgZ(0,"div",0),l._UZ(1,"div",1),l.TgZ(2,"div",2),l.YNc(3,q,13,5,"div",3),l.TgZ(4,"div",4)(5,"div",5)(6,"div",6)(7,"nav",7),l.YNc(8,se,3,8,"a",8),l.qZA()()(),l.TgZ(9,"div",9),l._UZ(10,"router-outlet"),l.qZA()()()()),2&Ce&&(l.xp6(3),l.Q6J("ngIf",Te.customTemplate),l.xp6(5),l.Q6J("ngForOf",Te.navigationTabs))},dependencies:[d.lC,I.sg,I.O5,D.xw,D.SQ,D.Wh,D.yH,F.I,P.Hw,O.vP,O.JV,s.cl,U.eB,V.wG,K.X$],styles:["[_nghost-%COMP%]   .page-layout[_ngcontent-%COMP%]{height:100%;background:#006097;padding-bottom:0;overflow:inherit}@media screen and (max-width: 959px){[_nghost-%COMP%]   .page-layout[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]{z-index:0}}[_nghost-%COMP%]   .page-layout[_ngcontent-%COMP%]   .center[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{max-height:175px!important;min-height:175px!important;height:175px}@media screen and (max-width: 599px){[_nghost-%COMP%]   .page-layout[_ngcontent-%COMP%]   .center[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{max-height:inherit!important;min-height:inherit!important}}[_nghost-%COMP%]   .page-layout[_ngcontent-%COMP%]   .center[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .skill-tag[_ngcontent-%COMP%]{font-size:11px;border-radius:16px;margin:0 4px 0 0;padding:3px 8px;background-color:var(--blue-50);color:#000}[_nghost-%COMP%]   .page-layout[_ngcontent-%COMP%]   .center[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .org-detail-cover[_ngcontent-%COMP%]{position:relative;width:calc(100% - 102px)}@media screen and (max-width: 599px){[_nghost-%COMP%]   .page-layout[_ngcontent-%COMP%]   .center[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .org-detail-cover[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%]   .page-layout[_ngcontent-%COMP%]   .center[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .org-detail-cover[_ngcontent-%COMP%]   .social-media[_ngcontent-%COMP%]{position:absolute;bottom:0;min-width:200px}@media screen and (max-width: 599px){[_nghost-%COMP%]   .page-layout[_ngcontent-%COMP%]   .center[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .org-detail-cover[_ngcontent-%COMP%]   .social-media[_ngcontent-%COMP%]{position:relative;width:100%;display:flex;flex-direction:row;justify-content:center}[_nghost-%COMP%]   .page-layout[_ngcontent-%COMP%]   .center[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .mobileCover-pf[_ngcontent-%COMP%]{align-items:center!important}}[_nghost-%COMP%]   .page-layout[_ngcontent-%COMP%]   mat-paginator[_ngcontent-%COMP%]  button.cdk-focused.cdk-program-focused .mat-button-focus-overlay{background:transparent}[_nghost-%COMP%]   .page-layout[_ngcontent-%COMP%]   .ios.tablet[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]{z-index:0}[_nghost-%COMP%]   .page-layout[_ngcontent-%COMP%]   .ios.tablet[_ngcontent-%COMP%]   .main-container[_ngcontent-%COMP%]   .comment[_ngcontent-%COMP%]   .kendo-editor[_ngcontent-%COMP%]{height:auto!important}[_nghost-%COMP%]   .k-safari[_ngcontent-%COMP%]   .safari[_ngcontent-%COMP%]   nav[_ngcontent-%COMP%]{z-index:0}"],data:{animation:A.L}})}(0,n.gn)([(0,w.bH)()],ne.prototype,"blockUI",void 0)},30508:(he,y,i)=>{"use strict";i.d(y,{n:()=>C});var e=i(94505),n=i(30617),o=i(23680),a=i(11194),l=i(32333),u=i(64190),d=i(20180),s=i(89515),A=i(90810),_=i(65879);let C=(()=>{class R{static#e=this.\u0275fac=function(k){return new(k||R)};static#t=this.\u0275mod=_.oAB({type:R});static#n=this.\u0275inj=_.cJS({imports:[u.Bz,d.L,s.aw,n.Ps,l.Nn,a.gf,e.yu,o.si,A.i]})}return R})()},28011:(he,y,i)=>{"use strict";i.d(y,{a:()=>R});var e=i(15861),n=i(65619),o=i(22096),a=i(37398),l=i(26306),u=i(22664),d=i(65879),s=i(61371),A=i(710),_=i(74187),C=i(96814);let R=(()=>{class x{constructor(k,w,g,M){if(this.personService=k,this.commonService=w,this.us=g,this.location=M,this.isDetailView=new n.X(!1),this._currentNavigationTab=new n.X(null),this.currentRouterOutlet=new n.X(null),this._currentWorkflowStage=new n.X(null),this.origin=new n.X(null),this.directory=[],this._rootUrl="",sessionStorage.getItem("detailViewRootUrl")){let p=this.getDirectoryDataFromStorage()??[];p?.length>1&&p.splice(1,p.length-1),sessionStorage.setItem("directory",JSON.stringify(p)),this.directory=p}else sessionStorage.removeItem("directory")}get applicationData(){return this.personService.applicationData.getValue()}getInternalNavigation(k,w,g){const M={name:"Navigation",parentNavigationId:k,refresh:!0,origin:this.origin.getValue()};return w&&(M.applicationId=w,g&&(M.roleId=g)),this.personService.personApplicationData(JSON.stringify(M)).pipe((0,a.U)(p=>p?.navigation?p.navigation:(this.us.callSnackBar("youDonotHaveAccessToView","warning"),(0,o.of)(null))),(0,l.K)(p=>401===p.status||"Unauthorized"===p.statusText?(this.us.callSnackBar("youDonotHaveAccessToView","warning"),(0,o.of)(null)):(this.us.callSnackBar(p.statusText,"warning"),(0,o.of)(null))))}setEntityDetailObject(k,w,g=!0){w==u.j.GridData?g?this.currentGridData=k:this.updateEntityDetailObject(k,u.j.GridData):w==u.j.EntityData&&(this.currentEntityData=k)}updateEntityDetailObject(k,w,g){g?(w===u.j.EntityData&&"isSlideView"==g&&(this.personService.isSlideView=k),this.directory[this.directory.length-1][w][g]=k):this.directory[this.directory.length-1][w]=k,sessionStorage.setItem("directory",JSON.stringify(this.directory))}removeCurrentEntityDetail(){this.directory?.length>1?(this.directory.pop(),sessionStorage.setItem("directory",JSON.stringify(this.directory))):this.removeDirectoryAndCurrentEntityData()}updateEntityDetailNavigationStatus(k){const w=this.getCurrentEntityDetail().navigationTabs;w.map(M=>M.isActive=!1);const g=w.findIndex(M=>M.id===k.id);g>=0&&(w[g].isActive=!0,this.setActiveInternalNavId({outerNavId:w[g].id}),this.updateEntityDetailObject(w,u.j.EntityData,"navigationTabs"),this.setInternalNavPath(k,!1),this.currentNavigationTab=k)}updateGroupEntityDetailNavigationStatus(k){const w=this.getCurrentEntityDetail().groupNavigationTabs;w.map(M=>M.isActive=!1);const g=w.findIndex(M=>M.id===k.id);g>=0&&(w[g].isActive=!0,this.setActiveInternalNavId(w[g].id,"innerNavId"),this.updateEntityDetailObject(w,u.j.EntityData,"groupNavigationTabs"),this.setInternalNavPath(k,!0))}updateEntityDetailGridDataItem(k,w){this.directory?.length&&(this.directory[this.directory.length-1].entityData.gridDataItem[k]=w),sessionStorage.setItem("directory",JSON.stringify(this.directory))}removeGroupInternalNavigation(){delete this.directory[this.directory.length-1].entityData.groupNavigationTabs,sessionStorage.setItem("directory",JSON.stringify(this.directory))}getActiveInternalNavigationId(){let k;return k=this.getCurrentEntityDetail().hasOwnProperty("groupNavigationTabs")?this.getCurrentEntityDetail().groupNavigationTabs.find(w=>!0===w.isActive):(this.getCurrentEntityDetail().navigationTabs||[]).find(w=>!0===w.isActive),k?k.id:0}set currentNavigationTab(k){const w=this.getCurrentEntityDetail();this._currentNavigationTab.next({entityId:w.entityId,entity:w.entity,navigation:k})}get currentNavigationTab(){return this._currentNavigationTab}set currentWorkflowStage(k){if(k){const w=this.getCurrentEntityDetail();this._currentWorkflowStage.next({entityId:w.entityId,entity:w.entity,workflowStage:k})}else this._currentWorkflowStage.next(null)}get currentWorkflowStage(){return this._currentWorkflowStage}loadEntityDataFromDb(k){const w={entity:k.entity,entityId:k.entityId};return new Promise(g=>{this.commonService.entityDetail(JSON.stringify(w)).subscribe(M=>{let E,p=JSON.parse(sessionStorage.getItem("headerParams"));M&&M.applicationId?E=M.applicationId:p&&p.applicationId&&(E=p.applicationId.toString()),k.gridDataItem=M.data,k.primaryColumn=M.primaryColumn,k.parentNavigationId=M.navigationId,k.applicationId=E,this.setEntityDetailObject(k,u.j.EntityData,!1),g(k)})})}refreshEntityDetail(k){const w={entity:k.entity,entityId:k.entityId};return new Promise(g=>{this.commonService.entityDetail(JSON.stringify(w)).subscribe(M=>{k.entity=M.entity,k.entityId=M.entityId,k.gridDataItem=M.data,k.primaryColumn=M.primaryColumn,k.parentNavigationId=M.navigationId,k.applicationId=M.applicationId,this.updateEntityDetailObject(M.entity,u.j.EntityData,"entity"),this.updateEntityDetailObject(M.entityId,u.j.EntityData,"entityId"),this.updateEntityDetailObject(M.data,u.j.EntityData,"gridDataItem"),this.updateEntityDetailObject(M.primaryColumn,u.j.EntityData,"primaryColumn"),this.updateEntityDetailObject(M.navigationId,u.j.EntityData,"parentNavigationId"),this.updateEntityDetailObject(M.applicationId,u.j.EntityData,"applicationId"),g(k)})})}removeDirectoryAndCurrentEntityData(){this.isDetailView.value&&(this.isDetailView.next(!1),sessionStorage.removeItem("detailViewRootUrl")),this.directory=[],sessionStorage.removeItem("directory")}setInternalNavPath(k,w){let g=k.url;w&&(g=`${this.getCurrentEntityDetail().navigationTabs.find(p=>p.id==k.parentNavigationId).url}/${k.url}`),this.updateEntityDetailObject(g,u.j.EntityData,"internalNavPath")}getCurrentGridData(){return this.directory?.length?this.directory[this.directory.length-1].gridData:[]}getCurrentEntityDetail(){let k={};return this.directory?.length&&(k=this.directory[this.directory.length-1].entityData,k.entity=k.entity.toLowerCase()),k}set currentEntityData(k){this.directory?.length||(this.directory=[{gridData:[]}]),k.hasOwnProperty("entity")&&(k.entity=k.entity.toLowerCase()),0==this.directory.length?(this.directory[0].entityData=k,sessionStorage.setItem("directory",JSON.stringify(this.directory))):(this.directory[this.directory.length-1].entityData=k,sessionStorage.setItem("directory",JSON.stringify(this.directory)))}set currentGridData(k){this.directory.push({gridData:k}),sessionStorage.setItem("directory",JSON.stringify(this.directory))}get rootUrl(){if(1===this.directory?.length)if(this.isDetailView.value){const k=sessionStorage.getItem("detailViewRootUrl");this._rootUrl=k??this.location.path(),sessionStorage.setItem("detailViewRootUrl",this._rootUrl)}else this._rootUrl=this.location.path();return this._rootUrl}set rootUrl(k){this._rootUrl=k,this.isDetailView.value&&1===this.directory.length&&sessionStorage.setItem("detailViewRootUrl",this._rootUrl)}getEntityDetailUrl(){let k="";for(let w of this.directory){const g=w?.entityData?.internalNavPath??"";g&&(k=k.endsWith("/")||g?.startsWith("/")?`${k}${g}`:`${k}/${g}`)}return k}getFullUrl(){const k=this.rootUrl,w=this.getEntityDetailUrl();return k.endsWith("/")||w?.startsWith("/")?`${k}${w}`:`${k}/${w}`}getBlankUrl(){const k=this.rootUrl;let w="";for(let M=0;M<this.directory.length-1;M++){const p=this.directory[M]?.entityData?.internalNavPath??"";p&&(w=w.endsWith("/")||p?.startsWith("/")?`${w}${p}`:`${w}/${p}`)}return w+=w.endsWith("/")?"blank":"/blank",k.endsWith("/")||w?.startsWith("/")?`${k}${w}`:`${k}/${w}`}getDirectoryDataFromStorage(k,w,g){const M=sessionStorage.getItem("directory"),p=M?JSON.parse(M):null;return k?p?.length?w?p[g??p.length-1][k][w]:p[g??p.length-1][k]:null:p}setActiveInternalNavId(k,w){let g;if(w){const M=this.getCurrentEntityDetail().activeInternalNav;M&&(M[w]=k,g=M)}else g=k;this.updateEntityDetailObject(g,u.j.EntityData,"activeInternalNav"),1===this.directory.length&&sessionStorage.setItem("activeInternalNav",JSON.stringify(g))}getActiveInternalNavId(k){let w=this.getCurrentEntityDetail()?.activeInternalNav??null;w=w??this.getDirectoryDataFromStorage(u.j.EntityData,"activeInternalNav");let g=null;if(w)g=w[k]??null;else if(this.directory.length<=1){const M=sessionStorage.getItem("activeInternalNav")?JSON.parse(sessionStorage.getItem("activeInternalNav")):null;g=M&&M[k]?M[k]:null}return g}setDirectoryObjectForEntityDetail(k,w,g){var M=this;return(0,e.Z)(function*(){M.setEntityDetailObject(k??[],u.j.GridData);const p=w??(yield M.loadEntityDataFromDb(g));M.setEntityDetailObject(p,u.j.EntityData)})()}updateEntityDetailSkill(k,w){this.directory?.length&&(this.directory[this.directory.length-1].entityData.gridDataItem[k]=w),this.us.onSkillChange.next({data:w}),sessionStorage.setItem("directory",JSON.stringify(this.directory))}static#e=this.\u0275fac=function(w){return new(w||x)(d.LFG(s.R),d.LFG(A.v),d.LFG(_.t),d.LFG(C.Ye))};static#t=this.\u0275prov=d.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})()},45476:(he,y,i)=>{"use strict";i.d(y,{v:()=>k});var e=i(7110),n=i(78645),o=i(59773),a=i(65879),l=i(28011),u=i(710),d=i(74187),s=i(29486),A=i(96814),_=i(30617);const C=["pictureBrowser"];function R(w,g){if(1&w){const M=a.EpF();a.TgZ(0,"img",4),a.NdJ("error",function(){a.CHM(M);const E=a.oxw(2);return a.KtG(E.getErrorSrc())}),a.qZA()}if(2&w){const M=a.oxw(2);a.Q6J("src",M.avatarSrc,a.LSH)}}function x(w,g){if(1&w){const M=a.EpF();a.ynx(0),a.TgZ(1,"mat-icon",5),a._uU(2,"photo_camera"),a.qZA(),a.TgZ(3,"input",6,7),a.NdJ("change",function(E){a.CHM(M);const b=a.oxw(2);return a.KtG(b.onPictureChange(E))}),a.qZA(),a.BQk()}if(2&w){const M=a.oxw(2);a.xp6(3),a.Q6J("accept",M.entityImageFormat.join(","))("multiple",!1)}}function f(w,g){if(1&w){const M=a.EpF();a.TgZ(0,"div",1),a.NdJ("click",function(){a.CHM(M);const E=a.oxw();return a.KtG(E.changePicture())}),a.YNc(1,R,1,1,"img",2),a.YNc(2,x,5,2,"ng-container",3),a.qZA()}if(2&w){const M=a.oxw();a.xp6(1),a.Q6J("ngIf",M.avatarSrc),a.xp6(1),a.Q6J("ngIf",M.allowProfilePictureUpload)}}let k=(()=>{class w{constructor(M,p,E,b){this.eds=M,this.commonService=p,this.utilityService=E,this.documentService=b,this.showUploadPicAction=!1,this.allowProfilePictureUpload=!0,this.uploadEntityConfig={allowUploadEntities:["tenantorganization","applicant","newhire","lead","target","newcustomer","customer","contact","employee","jobcandidate"],logoFileEntities:["tenantorganization","office"],orgDocumentEntities:["lead","target","newcustomer","customer","tempjob","directhirejob","transaction","agency"],personDocumentEntities:["applicant","newhire","contact","transaction","employee","workinjury","unemployment","backgroundcheck","officestaff","jobcandidate"]},this._unsubscribeAll=new n.x}ngOnInit(){this.entityData=this.eds.getCurrentEntityDetail(),this.entityImageFormat=e.XL.settings.entityImageFormat||["image/jpeg","image/jpg","image/png","image/gif"],this.utilityService.reloadEntityImage.pipe((0,o.R)(this._unsubscribeAll)).subscribe(M=>{M?.refresh&&this.entityData?.entity?.toLowerCase()==M.entity?.toLowerCase()&&this.entityData?.entityId==M.entityId&&(this.selectedEntity=this.entityData.gridDataItem,this.loadPicture(),this.isPortalApplication&&this.getProfilePictureUploadStatus())})}getProfilePictureUploadStatus(){this.commonService.tfOptionSelect("ProfilePicture","DisallowProfilePictureUpload","Office",parseInt(this.utilityService.getTokenValueByKey("officeId").toString())).pipe((0,o.R)(this._unsubscribeAll)).subscribe(M=>{if(M&&M.length){const p=M[0].optionValue.split(",").map(b=>b.toLowerCase()),E=this.entityData.entity.toLowerCase();this.allowProfilePictureUpload=!p.includes(E)}})}getAvatarSrc(){const M=(new Date).getTime();if(this.avatarSrc="",this.logo)this.avatarSrc=this.logo.src+"?t="+M;else if(this.entityData&&this.entityData.entity)if(this.uploadEntityConfig.orgDocumentEntities.includes(this.entityData.entity.toLowerCase())){const p=this.commonService.getPictureDocumentUrl({documentId:this.entityData.gridDataItem.documentId});this.avatarSrc=p+"?t="+M}else if(this.uploadEntityConfig.personDocumentEntities.includes(this.entityData.entity.toLowerCase())){const p={personId:this.entityData.entityId};["workinjury","unemployment","jobcandidate"].includes(this.entityData.entity.toLowerCase())&&(p.personId=this.entityData.gridDataItem.personId);const E=this.commonService.getPictureDocumentUrl(p);this.avatarSrc=E+"?t="+M}this.avatarSrc||this.getErrorSrc()}getErrorSrc(){this.avatarSrc=this.entityData&&this.entityData.entity&&this.uploadEntityConfig.orgDocumentEntities.includes(this.entityData.entity.toLowerCase())?"assets/images/avatars/orgimage.jpg":this.entityData&&this.entityData.entity&&this.uploadEntityConfig.personDocumentEntities.includes(this.entityData.entity.toLowerCase())?"assets/images/avatars/profile.jpg":"assets/images/avatars/orgimage.jpg"}loadPicture(){if(this.entityData&&this.entityData.entity){const M=this.entityData.entity.toLowerCase();if(this.showUploadPicAction=this.uploadEntityConfig.allowUploadEntities.includes(M),this.uploadEntityConfig.logoFileEntities.includes(M)){let p,E;p="tenantorganization"==this.entityData.entity||"office"==this.entityData.entity?this.entityData.gridDataItem.tenantId+this.entityData.gridDataItem.tenantInsertDateValue:this.entityData.gridDataItem.tenantId,E="office"==this.entityData.entity?"officelogo":"logo",this.commonService.getRepositoryFiles({fileType:"logo",alias:this.entityData.gridDataItem.alias,tenantId:p,organizationId:this.entityData.gridDataItem.tenantOrganizationId,officeId:this.entityData.gridDataItem.officeId,logoType:E}).pipe((0,o.R)(this._unsubscribeAll)).subscribe(b=>{b&&b.length?(b[0].src=`${this.commonService.fileRepositoryUrl}${b[0].src}?t=${(new Date).getTime()}`,this.logo=b[0],this.avatarSrc=this.logo.src):(this.logo=null,this.getAvatarSrc())})}else this.getAvatarSrc()}}changePicture(){this.pictureBrowser&&this.pictureBrowser.nativeElement.click()}onPictureChange(M){if(M.target.files&&M.target.files.length>0){this.fileObject=[];const p=M.target.files[0],E=(M.target.getAttribute("accept")||"").split(",");this.pictureBrowser.nativeElement.value=null;const b=this.entityData.entity.toLowerCase();if(this.fileObject.push(p),!E.includes(p.type))return void this.utilityService.callSnackBar("Invalid file extension. Only "+E.map(L=>L.replace("image/","").replace("video/","")).join(", ")+" file are allowed.","warning");this.documentScan().then(L=>{if(L&&!L?.length||L?.length&&!L?.filter(D=>!D.cleanResult)?.length){if(this.uploadEntityConfig.logoFileEntities.includes(b)){if(!this.commonService.validateUploadSize({file:p,fileType:"logo"}))return;let D,F;D="tenantorganization"===this.entityData?.entity?.toLowerCase()||"office"===this.entityData?.entity?.toLowerCase()?this.entityData.gridDataItem.tenantId+this.entityData.gridDataItem.tenantInsertDateValue:this.entityData.gridDataItem.tenantId,F="office"==this.entityData.entity?"officelogo":"logo";const P=new FormData;P.append("files",p,p.name),P.append("json",JSON.stringify({tenantId:D,organizationId:this.entityData.gridDataItem.tenantOrganizationId,officeId:this.entityData.gridDataItem.officeId,logoType:F,fileType:"logo",alias:this.entityData.gridDataItem.alias,deletedFiles:this.logo?[this.logo]:[]})),this.commonService.uploadFiles(P).pipe((0,o.R)(this._unsubscribeAll)).subscribe(O=>{O&&O.isSuccess?(this.loadPicture(),this.utilityService.callSnackBar(this.logo?"logoUpdatedSuccessfully":"logoSavedSuccessfully","success")):this.utilityService.callSnackBar(O&&O.messageResource,O&&O.type)})}else if(this.uploadEntityConfig.personDocumentEntities.includes(b)||this.uploadEntityConfig.orgDocumentEntities.includes(b)){if(!this.commonService.validateUploadSize({file:p,fileType:"profilePic"}))return;const D={entity:["workinjury","unemployment","jobcandidate"].includes(this.entityData.entity.toLowerCase())?this.entityData.gridDataItem?.title:this.entityData.entity,entityId:["workinjury","unemployment","jobcandidate"].includes(this.entityData.entity.toLowerCase())?this.entityData.gridDataItem?.personId:this.entityData.entityId,documentTypeListItemId:this.entityData.gridDataItem.documentTypeListItemId,documentId:this.entityData.gridDataItem.documentId,documentName:p.name.substr(0,p.name.lastIndexOf(".")),file:p,fileName:p.name},F=null!=D.documentId&&D.documentId>0;this.commonService.savePictureDocument(D).pipe((0,o.R)(this._unsubscribeAll)).subscribe(P=>{F||(this.entityData.gridDataItem.documentId=P.documentId,this.commonService.profilePictureChanged=!0),this.loadPicture()})}}else this.utilityService.callSnackBar("uploadFailed","error")})}}documentScan(){return new Promise(M=>{this.fileObject?.length?M(this.documentService.openScannerDialog(this.fileObject)):(this.utilityService.callSnackBar("Please choose valid file.","error"),M(!1))})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(p){return new(p||w)(a.Y36(l.a),a.Y36(u.v),a.Y36(d.t),a.Y36(s.Z))};static#t=this.\u0275cmp=a.Xpm({type:w,selectors:[["entity-image"]],viewQuery:function(p,E){if(1&p&&a.Gf(C,5),2&p){let b;a.iGM(b=a.CRH())&&(E.pictureBrowser=b.first)}},inputs:{isPortalApplication:["IsPortalApplication","isPortalApplication"]},decls:1,vars:1,consts:[["class","org-logo",3,"click",4,"ngIf"],[1,"org-logo",3,"click"],[3,"src","error",4,"ngIf"],[4,"ngIf"],[3,"src","error"],[1,"take-picture"],["type","file",2,"display","none",3,"accept","multiple","change"],["pictureBrowser",""]],template:function(p,E){1&p&&a.YNc(0,f,3,2,"div",0),2&p&&a.Q6J("ngIf",E.entityData)},dependencies:[A.O5,_.Hw],styles:[".org-logo[_ngcontent-%COMP%]{width:95px;height:95px;position:relative;display:flex;flex-direction:column;border-radius:4px!important;overflow:hidden}.org-logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:cover;border:1px solid #fff;height:100%;width:100%;border-radius:4px}.org-logo[_ngcontent-%COMP%]   .take-picture[_ngcontent-%COMP%]{color:#fff;background:rgba(0,0,0,.6509803922);width:100%;height:100%;position:absolute;z-index:-5;display:flex;justify-content:center;align-items:center;cursor:pointer}.org-logo[_ngcontent-%COMP%]:hover   .take-picture[_ngcontent-%COMP%]{z-index:0}"]})}return w})()},47157:(he,y,i)=>{"use strict";i.d(y,{a:()=>s});var e=i(47805),n=i(30617),o=i(89515),a=i(60682),l=i(20180),u=i(96814),d=i(65879);let s=(()=>{class A{static#e=this.\u0275fac=function(R){return new(R||A)};static#t=this.\u0275mod=d.oAB({type:A});static#n=this.\u0275inj=d.cJS({imports:[l.L,e.x,o.aw,n.Ps,a.X,u.ez]})}return A})()},4295:(he,y,i)=>{"use strict";i.d(y,{V:()=>p});var e=i(78645),n=i(59773),o=i(66878),a=i(65879),l=i(65619),u=i(7110),d=i(6738),s=i(74187);let A=(()=>{class E{constructor(I,L){this.ws=I,this.utilityService=L,this.onPersonDataAccessModified=new l.X(null),this.pdaData=[],this.disableSave=new l.X(!1),this._commonServiceUrl=u.XL.settings.apiUrl+"Common/"}GetPersonDataAccess(I){return this.ws.get(this._commonServiceUrl+"GetPDA",{json:I,refresh:!0})}GetEntityDataAccess(I){return this.ws.get(this._commonServiceUrl+"GetEntityNode",{json:I,refresh:!0})}static#e=this.\u0275fac=function(L){return new(L||E)(a.LFG(d.f),a.LFG(s.t))};static#t=this.\u0275prov=a.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();var _=i(710),C=i(96814),R=i(83814),x=i(97655),f=i(81274),k=i(30617),w=i(19347),g=i(94505);function M(E,b){if(1&E){const I=a.EpF();a.TgZ(0,"zen-tree",9),a.NdJ("valueChange",function(D){a.CHM(I);const F=a.oxw();return a.KtG(F.emitNodeIdList(D))}),a.qZA()}if(2&E){const I=a.oxw();a.Q6J("config",I.zenTreeConfig)}}let p=(()=>{class E{constructor(I,L,D,F,P){this.pda=I,this.cs=L,this.us=D,this.dialogRef=F,this.data=P,this.personId=0,this.pdaData=[],this.styleClass="dataaccess-layout-wrap",this.zenTreeConfig={data:[]},this._unsubscribeAll=new e.x}ngOnInit(){this.personalInfoModel=this.data.personalInfoModel,this.personId=this.personalInfoModel.personId,this.entity=this.data.entity,this.entityId=this.data.entityId,(!this.pdaData||0===this.pdaData.length)&&this.getDataForTree(this.personId),this.personalInfoModel.nodeId&&(this.pdaData.forEach(I=>{I.disabled=!1}),this.pdaData?.filter(I=>I.nodeId==this.personalInfoModel.nodeId).forEach(I=>{I.isSelect=!0,I.disabled=!0}),this.zenTreeConfig.data=[...this.pdaData],this.zenTreeConfig=JSON.parse(JSON.stringify(this.zenTreeConfig)))}getDataForTree(I){this.pda.GetEntityDataAccess(JSON.stringify({personId:I,entity:this.entity,entityId:this.entityId})).pipe((0,n.R)(this._unsubscribeAll)).subscribe(D=>{D&&(this.pdaData=[...D],this.zenTreeConfig.data=[...D],this.zenTreeConfig=JSON.parse(JSON.stringify(this.zenTreeConfig)),this.nodeList=this.pdaData.filter(F=>1==F.isSelect&&"Office"==F.nodeType).map(F=>F.nodeId),this.zenTreeConfig.data=[...this.pdaData],this.zenTreeConfig=JSON.parse(JSON.stringify(this.zenTreeConfig)))})}emitNodeIdList(I){this.nodeList=I,(this.pdaData||[]).map(L=>{L.isSelect=!!this.nodeList.includes(L.nodeId)})}save(){this.nodeList.toString();const L={entity:this.entity,entityId:this.entityId,personId:this.personId,nodeList:this.nodeList.toString()};this.cs.entityNodeTsk(L).subscribe(D=>{D&&(console.log("success"),this.us.callSnackBar("Entity shared successfully","success"))}),this.closeDialog()}closeDialog(){this.dialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(L){return new(L||E)(a.Y36(A),a.Y36(_.v),a.Y36(s.t),a.Y36(o.hV),a.Y36(o.eJ))};static#t=this.\u0275cmp=a.Xpm({type:E,selectors:[["entity-share"]],decls:13,vars:1,consts:[[1,"dialog-content-wrapper"],[1,"mat-accent","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","space-between center"],[1,"title","dialog-title"],["mat-icon-button","","aria-label","Close dialog",3,"click"],["mat-dialog-content","",1,"m-0","zen-person-data-dialog"],[3,"config","valueChange",4,"ngIf"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","end center",1,"m-0","p-12","grey-100-bg","data-access-footer"],["mat-raised-button","","type","submit","aria-label","SAVE",1,"save-button","mat-accent",3,"click"],[3,"config","valueChange"]],template:function(L,D){1&L&&(a.TgZ(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),a._uU(4,"Share Entity"),a.qZA(),a.TgZ(5,"button",4),a.NdJ("click",function(){return D.closeDialog()}),a.TgZ(6,"mat-icon"),a._uU(7,"close"),a.qZA()()()(),a.TgZ(8,"div",5),a.YNc(9,M,1,1,"zen-tree",6),a.qZA(),a.TgZ(10,"div",7)(11,"button",8),a.NdJ("click",function(){return D.save()}),a._uU(12," Save "),a.qZA()()()),2&L&&(a.xp6(9),a.Q6J("ngIf",D.pdaData.length>0))},dependencies:[C.O5,R.xw,R.Wh,R.yH,x.x,f.Ye,f.rD,k.Hw,w.xY,w.H8,g.eB],styles:[".entity-share-popup{width:600px}\n"],encapsulation:2})}return E})()},34938:(he,y,i)=>{"use strict";i.d(y,{x:()=>I});var e=i(78645),n=i(66878),o=i(65879),a=i(96814),l=i(30617),u=i(81274),d=i(94505),s=i(83814),A=i(89515),_=i(15541);function C(L,D){if(1&L&&(o.TgZ(0,"tr")(1,"td")(2,"div",15)(3,"mat-icon"),o._uU(4,"warning"),o.qZA(),o.TgZ(5,"div"),o._uU(6),o.qZA()()()()),2&L){const F=D.$implicit;o.xp6(6),o.Oqu(F.exception)}}function R(L,D){if(1&L&&(o.TgZ(0,"div",12)(1,"table",13)(2,"thead")(3,"tr")(4,"th"),o._uU(5),o.ALo(6,"translate"),o.qZA()()(),o.TgZ(7,"tbody"),o.YNc(8,C,7,1,"tr",14),o.qZA()()()),2&L){const F=o.oxw();o.xp6(5),o.Oqu(o.lcZ(6,2,"severe")),o.xp6(3),o.Q6J("ngForOf",F.severeExps)}}function x(L,D){if(1&L&&(o.TgZ(0,"tr")(1,"td")(2,"div",17)(3,"mat-icon"),o._uU(4,"warning"),o.qZA(),o._UZ(5,"div",18),o.ALo(6,"safeHtml"),o.qZA()()()),2&L){const F=D.$implicit;o.xp6(5),o.Q6J("innerHtml",o.lcZ(6,1,F.exception),o.oJD)}}function f(L,D){if(1&L&&(o.TgZ(0,"div",12)(1,"table",16)(2,"thead")(3,"tr")(4,"th"),o._uU(5),o.ALo(6,"translate"),o.qZA()()(),o.TgZ(7,"tbody"),o.YNc(8,x,7,3,"tr",14),o.qZA()()()),2&L){const F=o.oxw();o.xp6(5),o.Oqu(o.lcZ(6,2,"warning")),o.xp6(3),o.Q6J("ngForOf",F.warningExps)}}function k(L,D){if(1&L&&(o.TgZ(0,"tr")(1,"td")(2,"div",20)(3,"mat-icon"),o._uU(4,"success"),o.qZA(),o._UZ(5,"div",18),o.ALo(6,"safeHtml"),o.qZA()()()),2&L){const F=D.$implicit;o.xp6(5),o.Q6J("innerHtml",o.lcZ(6,1,F.exception),o.oJD)}}function w(L,D){if(1&L&&(o.TgZ(0,"div",12)(1,"table",19)(2,"thead")(3,"tr")(4,"th"),o._uU(5),o.ALo(6,"translate"),o.qZA()()(),o.TgZ(7,"tbody"),o.YNc(8,k,7,3,"tr",14),o.qZA()()()),2&L){const F=o.oxw();o.xp6(5),o.Oqu(o.lcZ(6,2,"success")),o.xp6(3),o.Q6J("ngForOf",F.successMsgs)}}function g(L,D){if(1&L&&(o.TgZ(0,"div",21),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&L){const F=o.oxw();o.xp6(1),o.hij(" ",o.lcZ(2,1,F.proceedMsg)," ")}}function M(L,D){if(1&L&&(o.TgZ(0,"div",21),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&L){const F=o.oxw();o.xp6(1),o.hij(" ",o.lcZ(2,1,F.proceedMsg)," ")}}function p(L,D){if(1&L){const F=o.EpF();o.TgZ(0,"button",22),o.NdJ("click",function(){o.CHM(F);const O=o.oxw();return o.KtG(O.exceptionButtonClick(!1))}),o._uU(1),o.ALo(2,"translate"),o.qZA()}2&L&&(o.xp6(1),o.hij(" ",o.lcZ(2,1,"ok")," "))}function E(L,D){if(1&L){const F=o.EpF();o.TgZ(0,"button",23),o.NdJ("click",function(){o.CHM(F);const O=o.oxw();return o.KtG(O.exceptionButtonClick(!1))}),o._uU(1),o.ALo(2,"translate"),o.qZA()}if(2&L){const F=o.oxw();o.xp6(1),o.hij(" ",o.lcZ(2,1,F.noButtonName)," ")}}function b(L,D){if(1&L){const F=o.EpF();o.TgZ(0,"button",22),o.NdJ("click",function(){o.CHM(F);const O=o.oxw();return o.KtG(O.exceptionButtonClick(!0))}),o._uU(1),o.ALo(2,"translate"),o.qZA()}if(2&L){const F=o.oxw();o.xp6(1),o.hij(" ",o.lcZ(2,1,F.yesButtonName)," ")}}let I=(()=>{class L{constructor(F,P){this.expDialogRef=F,this.expDialogData=P,this.proceedMsg="Are you sure you want to proceed?",this.severeExps=[],this.warningExps=[],this.successMsgs=[],this.yesButtonName="yes",this.noButtonName="no",this.showProceedMsgAways=!1,this._unsubscribeAll=new e.x}ngOnInit(){this.expDialogData.exceptionData.hasOwnProperty("snackbar"),this.expDialogData.exceptionData.hasOwnProperty("proceedMsg")&&(this.proceedMsg=this.expDialogData.exceptionData.proceedMsg),this.expDialogData.exceptionData.hasOwnProperty("showProceedMsgAways")&&(this.showProceedMsgAways=!0),this.expDialogData.exceptionData.hasOwnProperty("yesButtonName")&&(this.yesButtonName=this.expDialogData.exceptionData.yesButtonName),this.expDialogData.exceptionData.hasOwnProperty("noButtonName")&&(this.noButtonName=this.expDialogData.exceptionData.noButtonName),this.title=this.expDialogData.exceptionData.title,this.severeExps=this.expDialogData.exceptionData.data.filter(F=>"severe"===F.exceptionType.toLowerCase()||"critical"===F.exceptionType.toLowerCase()),this.warningExps=this.expDialogData.exceptionData.data.filter(F=>"warning"===F.exceptionType.toLowerCase()),this.successMsgs=this.expDialogData.exceptionData.data.filter(F=>"success"===F.exceptionType.toLowerCase()),this.hasSevereExp=this.severeExps.length>0}exceptionButtonClick(F){this.expDialogRef.close(F)}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(P){return new(P||L)(o.Y36(n.hV),o.Y36(n.eJ))};static#t=this.\u0275cmp=o.Xpm({type:L,selectors:[["zen-exception-dialog"]],decls:18,vars:11,consts:[[1,"dialog-content-wrapper","confirm-dialog"],[1,"m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","space-between center"],[1,"title","dialog-title","text-center","w-100-p"],["mat-dialog-content","",1,"p-12","m-0","fuse-white"],["class","exception-wrapper mb-8",4,"ngIf"],["mat-dialog-actions","",1,"m-0","px-16"],["fxLayout","row","fxLayoutAlign","space-between center",1,"w-100-p"],["class","zenauto-proceed-message","fxFlex","",4,"ngIf"],["fxFlex","",1,"text-right"],["mat-raised-button","","class","accent zenauto-proceed-button",3,"click",4,"ngIf"],["mat-raised-button","","class","zenauto-proceed-button",3,"click",4,"ngIf"],[1,"exception-wrapper","mb-8"],[1,"zenauto-exception-type","severe"],[4,"ngFor","ngForOf"],[1,"error-msg","zenauto-exception-messsage"],[1,"zenauto-exception-type","warning"],[1,"warning-msg","zenauto-exception-messsage"],[3,"innerHtml"],[1,"zenauto-exception-type","success"],[1,"success-msg","zenauto-exception-messsage"],["fxFlex","",1,"zenauto-proceed-message"],["mat-raised-button","",1,"accent","zenauto-proceed-button",3,"click"],["mat-raised-button","",1,"zenauto-proceed-button",3,"click"]],template:function(P,O){1&P&&(o.TgZ(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"div",3),o._uU(4),o.ALo(5,"translate"),o.qZA()()(),o.TgZ(6,"div",4),o.YNc(7,R,9,4,"div",5),o.YNc(8,f,9,4,"div",5),o.YNc(9,w,9,4,"div",5),o.qZA(),o.TgZ(10,"div",6)(11,"div",7),o.YNc(12,g,3,3,"div",8),o.YNc(13,M,3,3,"div",8),o.TgZ(14,"div",9),o.YNc(15,p,3,3,"button",10),o.YNc(16,E,3,3,"button",11),o.YNc(17,b,3,3,"button",10),o.qZA()()()()),2&P&&(o.xp6(4),o.Oqu(o.lcZ(5,9,O.title?O.title:"exception")),o.xp6(3),o.Q6J("ngIf",O.severeExps.length>0),o.xp6(1),o.Q6J("ngIf",O.warningExps.length>0),o.xp6(1),o.Q6J("ngIf",O.successMsgs.length>0),o.xp6(3),o.Q6J("ngIf","continuous"==O.expDialogData.dialogLoadType&&!O.hasSevereExp&&!O.showProceedMsgAways),o.xp6(1),o.Q6J("ngIf",O.showProceedMsgAways),o.xp6(2),o.Q6J("ngIf","static"==O.expDialogData.dialogLoadType||O.hasSevereExp),o.xp6(1),o.Q6J("ngIf","continuous"==O.expDialogData.dialogLoadType&&!O.hasSevereExp),o.xp6(1),o.Q6J("ngIf","continuous"==O.expDialogData.dialogLoadType&&!O.hasSevereExp))},dependencies:[a.sg,a.O5,l.Hw,u.Ye,u.rD,n.Rb,n.ev,d.eB,s.xw,s.Wh,s.yH,A.X$,_.z],styles:[".exception-dialog{padding:0}.exception-dialog .dialog-content-wrapper{width:900px}.exception-wrapper table.success{border:2px solid #37b400}.exception-wrapper table.success thead tr:first-child{background:#37b400}.exception-wrapper table.success thead tr:first-child th{color:#000;font-family:monospace;font-size:20px}.exception-wrapper table.warning{border:2px solid #F6D01C}.exception-wrapper table.warning thead tr:first-child{background:#F6D01C}.exception-wrapper table.warning thead tr:first-child th{color:#000;font-family:monospace;font-size:20px}.exception-wrapper table.severe{margin-bottom:10px}.exception-wrapper table.severe thead tr:first-child th{font-family:monospace;font-size:20px}.exception-wrapper table{text-align:left;line-height:40px;border-collapse:separate;border-spacing:0;border:2px solid #D8000C;width:100%;border-radius:.25rem}.exception-wrapper thead tr:first-child{background:#D8000C;color:#fff;border:none}.exception-wrapper th:first-child,.exception-wrapper td:first-child{padding:0 15px 0 20px}.exception-wrapper th{font-weight:500}.exception-wrapper thead tr:last-child th{border-bottom:3px solid #ddd}.exception-wrapper tbody tr:last-child td{border:none}.exception-wrapper tbody td{border-bottom:1px solid #ddd}.exception-wrapper td:last-child{text-align:right}.exception-wrapper .info-msg,.exception-wrapper .success-msg,.exception-wrapper .warning-msg,.exception-wrapper .error-msg{margin:10px 0;font-size:1em;display:flex;flex-direction:row;padding:10px 15px;line-height:20px;word-break:break-word}.exception-wrapper .success-msg{color:#000;background-color:#37b400;text-align:left;font-family:monospace;font-size:17px}.exception-wrapper .success-msg mat-icon{margin-right:10px}.exception-wrapper .warning-msg{color:#000;background-color:#fff59d;text-align:left;font-family:monospace;font-size:17px}.exception-wrapper .warning-msg mat-icon{margin-right:10px}.exception-wrapper .error-msg{color:#d8000c;background-color:#ffbaba;text-align:left;font-family:monospace;font-size:17px}.exception-wrapper .error-msg mat-icon{margin-right:10px}\n"],encapsulation:2})}return L})()},90810:(he,y,i)=>{"use strict";i.d(y,{i:()=>C});var e=i(96814),n=i(94505),o=i(66878),a=i(30617),l=i(48247),u=i(81274),d=i(89515),s=i(85947),A=i(71951),_=i(65879);let C=(()=>{class R{static#e=this.\u0275fac=function(k){return new(k||R)};static#t=this.\u0275mod=_.oAB({type:R});static#n=this.\u0275inj=_.cJS({imports:[e.ez,d.aw,a.Ps,u.g0,o.yj,n.yu,l.gR,s.o9,A.x]})}return R})()},33650:(he,y,i)=>{"use strict";i.d(y,{a:()=>P});var e=i(65879),n=i(59773),o=i(78645),a=i(57493),l=i(74187),u=i(82826),d=i(96814),s=i(56223),A=i(83814),_=i(27509),C=i(82012),R=i(84187),x=i(42400),f=i(30617),k=i(94505),w=i(89515);const g=function(){return["title","createdBy"]},M=function(){return{standalone:!0}};function p(O,U){if(1&O){const V=e.EpF();e.TgZ(0,"zen-select",11),e.NdJ("ngModelChange",function(X){e.CHM(V);const me=e.oxw();return e.KtG(me.favoriteId=X)})("selectEvent",function(X){e.CHM(V);const me=e.oxw();return e.KtG(me.onSelected(X))}),e.qZA()}if(2&O){const V=e.oxw();e.Q6J("ngModel",V.favoriteId)("placeholder","Favorite Group")("data",V.favoriteList)("columns",e.DdM(6,g))("disabled",V.showAddFavourite)("ngModelOptions",e.DdM(7,M))}}function E(O,U){if(1&O){const V=e.EpF();e.TgZ(0,"mat-form-field",12)(1,"input",13),e.NdJ("ngModelChange",function(X){e.CHM(V);const me=e.oxw();return e.KtG(me.title=X)}),e.qZA()()}if(2&O){const V=e.oxw();e.xp6(1),e.Q6J("ngModel",V.title)("placeholder","Add New Group")}}function b(O,U){if(1&O){const V=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(V);const X=e.oxw();return e.KtG(X.onFavoriteAdd())}),e.TgZ(1,"mat-icon"),e._uU(2,"add"),e.qZA()()}}function I(O,U){if(1&O){const V=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(V);const X=e.oxw();return e.KtG(X.onFavoriteRemove())}),e.TgZ(1,"mat-icon"),e._uU(2,"remove"),e.qZA()()}}function L(O,U){1&O&&e._UZ(0,"div",15)}function D(O,U){if(1&O){const V=e.EpF();e.TgZ(0,"div")(1,"div",16)(2,"button",17),e.NdJ("click",function(){e.CHM(V);const X=e.oxw();return e.KtG(X.onFavoriteSave())}),e._uU(3),e.ALo(4,"translate"),e.qZA()()()}2&O&&(e.xp6(3),e.Oqu(e.lcZ(4,1,"save")))}function F(O,U){if(1&O){const V=e.EpF();e.TgZ(0,"div",18)(1,"div",19)(2,"button",20),e.NdJ("click",function(){e.CHM(V);const X=e.oxw();return e.KtG(X.onFavoriteDelete())}),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"button",21),e.NdJ("click",function(){e.CHM(V);const X=e.oxw();return e.KtG(X.shareFavorite())}),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"button",22),e.NdJ("click",function(){e.CHM(V);const X=e.oxw();return e.KtG(X.onFavoriteSearch())}),e._uU(9),e.ALo(10,"translate"),e.qZA()()()}2&O&&(e.xp6(3),e.hij(" ",e.lcZ(4,3,"delete")," "),e.xp6(3),e.Oqu(e.lcZ(7,5,"share")),e.xp6(3),e.Oqu(e.lcZ(10,7,"search")))}let P=(()=>{class O{set setData(V){this.data=V}set showFavourite(V){V&&(this.showFavourite=V)}set setCallFromGlobaSearch(V){this.showSearchFavourite=V}constructor(V,K,X){this.fs=V,this.us=K,this.ads=X,this.messageEvent=new e.vpe,this.globalEvent=new e.vpe,this.favoriteSearch=new e.vpe,this.title=null,this.favoriteList=[],this.showAddFavourite=!1,this.showSearchFavourite=!1,this.callFromGlobalSearch=!1,this.entities=[],this.favoriteSearchFields={favoriteId:"",selectedEntities:[],isSelectedEntity:!1},this._unsubscribeAll=new o.x}ngOnInit(){if(this.ads.onToolbarClick.pipe((0,n.R)(this._unsubscribeAll)).subscribe(V=>{1==V?.favorite&&this.getFavorite()}),this.getFavorite(),this.showSearchFavourite){const V=["applicant","newHire","employee","contact","lead","target","newCustomer","customer"];for(let K=0;K<V.length;++K)this.entities[K]={name:V[K]}}}getFavorite(){this.fs.getFavoriteList("").subscribe(V=>{V&&(this.favoriteList=V,1==this.favoriteList?.length&&(this.favoriteId=V[0]?.favoriteId))})}onSelected(V){this.favoriteId=V[0].favoriteId,this.isSharable=!!V[0].isSharable}onFavoriteAdd(){this.showAddFavourite=!0}onFavoriteRemove(){this.showAddFavourite=!1}onFavoriteSave(){if(this.showAddFavourite&&(null==this.title||""===this.title.trim()))return this.messageEvent.emit(!1),void this.us.callSnackBar("Please add a group","warning");if(!this.showAddFavourite&&!this.favoriteId)return this.messageEvent.emit(!1),void this.us.callSnackBar("Please select a group","warning");const V={option:"add",title:this.title,entity:this.data?.entity,data:this.data?.entityList,favoriteId:!1===this.showAddFavourite?this.favoriteId:null};return new Promise(K=>{this.fs.favoriteTsk(V).subscribe(X=>{X?.error?(this.messageEvent.emit(!1),this.us.callSnackBar("Unknown error occured. Please try again later","error"),K(!1)):(this.messageEvent.emit(!0),this.us.callSnackBar("Added to favourite successfully","success"),K(!0))})})}onFavoriteDelete(){this.favoriteId?(this.us.openConfirmDialog({headerText:"Confirmation",confirmationText:"Are you sure you want to delete the Favorite Group?"}),this.us.confirmDialogAction.pipe((0,n.R)(this._unsubscribeAll)).subscribe(K=>{if("yes"==K){const X={option:"delete",entity:this.data?.entity,favoriteId:this.favoriteId};return new Promise(me=>{this.fs.favoriteTsk(X).subscribe(J=>{J?.error||(this.us.callSnackBar("Favorite group deleted successfully","success"),this.getFavorite(),this.us.closeConfirmDialog(),me(!0))})})}})):this.us.callSnackBar("Please select a group","warning")}onFavoriteSearch(){this.favoriteId>0?(this.favoriteSearchFields.favoriteId=this.favoriteId,this.globalEvent.emit(this.favoriteId)):this.us.callSnackBar("Please select a group","warning")}shareFavorite(){if(this.favoriteId>0){this.favoriteSearchFields.favoriteId=this.favoriteId;var V=this.favoriteList.find(K=>K.favoriteId==this.favoriteId);V&&(V.isSharable?this.favoriteSearch.emit(this.favoriteId):this.us.callSnackBar("youcanshareyourfavoritegrouponly","warning"))}else this.us.callSnackBar("Please select a group","warning")}static#e=this.\u0275fac=function(K){return new(K||O)(e.Y36(a.e),e.Y36(l.t),e.Y36(u.i))};static#t=this.\u0275cmp=e.Xpm({type:O,selectors:[["favorite-form"]],inputs:{setData:["data","setData"],showFavourite:"showFavourite",setCallFromGlobaSearch:["callFromGlobalSearch","setCallFromGlobaSearch"]},outputs:{messageEvent:"messageEvent",globalEvent:"globalEvent",favoriteSearch:"favoriteSearch"},decls:12,vars:8,consts:[[1,"favorite-content","favorite-content-show"],[1,"favorite-formfield"],["fxLayout","column",1,"p-0"],["favoriteForm","ngForm"],["fxLayout","row","fxLayoutAlign","start center",1,"favorite-form-container","p-12",3,"ngClass"],["nameField","title","valueField","favoriteId","panelClass","custom-dropdown","class","no-padding-head chip-black overflow-hidden",3,"ngModel","placeholder","data","columns","disabled","ngModelOptions","ngModelChange","selectEvent",4,"ngIf"],["class","w-100-p",4,"ngIf"],["mat-mini-fab","","color","accent","class","ml-16",3,"click",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[4,"ngIf"],["class","p-12",4,"ngIf"],["nameField","title","valueField","favoriteId","panelClass","custom-dropdown",1,"no-padding-head","chip-black","overflow-hidden",3,"ngModel","placeholder","data","columns","disabled","ngModelOptions","ngModelChange","selectEvent"],[1,"w-100-p"],["matInput","","type","text","name","Title","maxlength","250",3,"ngModel","placeholder","ngModelChange"],["mat-mini-fab","","color","accent",1,"ml-16",3,"click"],["fxLayout","row","fxLayoutAlign","start center"],["fxLayout","row","fxLayoutAlign","end start","fxLayoutGap","12px",1,"m-0","p-12","mat-dialog-actions"],["mat-raised-button","","color","accent",1,"zenauto-search-save-btn",3,"click"],[1,"p-12"],["fxLayout","row","fxLayoutAlign","end center","fxLayoutGap","16px",1,"mat-dialog-actions","p-12","mb-0"],["fxFlex","","mat-raised-button","","color","warn",1,"zenauto-search-delete-btn",3,"click"],["fxFlex","","mat-raised-button","",1,"zenauto-search-search-btn",3,"click"],["fxFlex","","mat-raised-button","","color","accent",1,"zenauto-search-search-btn",3,"click"]],template:function(K,X){1&K&&(e.TgZ(0,"div",0)(1,"div",1)(2,"form",2,3)(4,"div",4),e.YNc(5,p,1,8,"zen-select",5),e.YNc(6,E,2,2,"mat-form-field",6),e.YNc(7,b,3,0,"button",7),e.YNc(8,I,3,0,"button",7),e.qZA(),e.YNc(9,L,1,0,"div",8),e.YNc(10,D,5,3,"div",9),e.YNc(11,F,11,9,"div",10),e.qZA()()()),2&K&&(e.xp6(4),e.s9C("ngClass",X.showSearchFavourite?"pt-0":""),e.xp6(1),e.Q6J("ngIf",!X.showAddFavourite),e.xp6(1),e.Q6J("ngIf",X.showAddFavourite&&!X.showSearchFavourite),e.xp6(1),e.Q6J("ngIf",!X.showAddFavourite&&!X.showSearchFavourite),e.xp6(1),e.Q6J("ngIf",X.showAddFavourite&&!X.showSearchFavourite),e.xp6(1),e.Q6J("ngIf",X.showAddFavourite&&!X.showSearchFavourite),e.xp6(1),e.Q6J("ngIf",!X.showSearchFavourite),e.xp6(1),e.Q6J("ngIf",X.showSearchFavourite))},dependencies:[d.mk,d.O5,s._Y,s.Fj,s.JJ,s.JL,s.nD,s.On,s.F,A.xw,A.SQ,A.Wh,A.yH,_.oO,C.i,R.v_,x.k0,f.Hw,k.eB,w.X$]})}return O})()},9805:(he,y,i)=>{"use strict";i.d(y,{X:()=>s});var e=i(66878),n=i(65879),o=i(83814),a=i(30617),l=i(94505),u=i(81274),d=i(33650);let s=(()=>{class A{constructor(C,R,x){this.data=C,this.dialogRef=R,this.dialog=x}ngOnInit(){this.info=this.data}closeDialog(){this.dialogRef.close()}receiveDialogClose(C){C&&this.dialogRef.close(C)}static#e=this.\u0275fac=function(R){return new(R||A)(n.Y36(e.eJ),n.Y36(e.hV),n.Y36(e.on))};static#t=this.\u0275cmp=n.Xpm({type:A,selectors:[["favourite"]],decls:10,vars:1,consts:[[1,"dialog-content-wrapper","favorite-dialog-wrapper"],[1,"mat-accent","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","space-between center"],[1,"title","dialog-title"],["mat-icon-button","","aria-label","Close dialog",3,"click"],["mat-dialog-content","",1,"p-12","m-0","favorite-dialog","perfect-scroll"],[3,"data","messageEvent"]],template:function(R,x){1&R&&(n.TgZ(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),n._uU(4,"Add to Favorite"),n.qZA(),n.TgZ(5,"button",4),n.NdJ("click",function(){return x.closeDialog()}),n.TgZ(6,"mat-icon"),n._uU(7,"close"),n.qZA()()()(),n.TgZ(8,"div",5)(9,"favorite-form",6),n.NdJ("messageEvent",function(k){return x.receiveDialogClose(k)}),n.qZA()()()),2&R&&(n.xp6(9),n.Q6J("data",x.info))},dependencies:[o.xw,o.Wh,o.yH,a.Hw,l.eB,u.Ye,u.rD,e.Rb,d.a],styles:[".favorite-dialog[_ngcontent-%COMP%]{width:600px;padding:0!important}"]})}return A})()},45152:(he,y,i)=>{"use strict";i.d(y,{V:()=>F});var e=i(30481),n=i(45754),o=i(81274),a=i(94505),l=i(84187),u=i(30617),d=i(42400),s=i(20180),A=i(26177),_=i(38034),C=i(66878),R=i(26385),x=i(48247),f=i(21242),k=i(48424),w=i(89515),g=i(57493),M=i(12430),p=i(77171),E=i(53790),b=i(51838),I=i(48979),L=i(98148),D=i(65879);let F=(()=>{class P{static#e=this.\u0275fac=function(V){return new(V||P)};static#t=this.\u0275mod=D.oAB({type:P});static#n=this.\u0275inj=D.cJS({providers:[g.e,{provide:C.eJ,useValue:{}}],imports:[s.L,I.i,M.L,l.wp,d.x4,k.uw,u.Ps,A.yD,a.yu,n.Zh,o.g0,L.ef,C.yj,e.AA,x.gR,R.t,_.FA,f.Xo,w.aw,p.y,E.u,b.Wd,u.Ps]})}return P})()},57493:(he,y,i)=>{"use strict";i.d(y,{e:()=>a});var e=i(7110),n=i(65879),o=i(6738);let a=(()=>{class l{constructor(d){this.ws=d,this.showResumeSearch=!0,this._favoriteUrl=e.XL.settings.apiUrl+"Favorite/"}favoriteTsk(d){return this.ws.post(this._favoriteUrl+"FavoriteTsk",{json:JSON.stringify(d)})}shareFavoriteTsk(d){return this.ws.post(this._favoriteUrl+"ShareFavoriteTsk",{json:JSON.stringify(d)})}getFavoriteList(d,s){return this.ws.get(this._favoriteUrl+"FavoriteList",{json:d,refresh:s})}getShareFavoriteList(d,s){return this.ws.get(this._favoriteUrl+"ShareFavoriteList",{json:d,refresh:s})}static#e=this.\u0275fac=function(s){return new(s||l)(n.LFG(o.f))};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac})}return l})()},57733:(he,y,i)=>{"use strict";i.d(y,{E:()=>o});var e=i(65619),n=i(65879);let o=(()=>{class a{constructor(){this.searchbarCollapsed=new e.X(!0)}collapseSearchbar(u){this.searchbarCollapsed.next(u)}static#e=this.\u0275fac=function(d){return new(d||a)};static#t=this.\u0275prov=n.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()},23799:(he,y,i)=>{"use strict";i.d(y,{v:()=>Q});var e=i(66878),n=i(56223),o=i(59773),a=i(78645),l=i(65879),u=i(64259),d=i(5759),s=i(710),A=i(74187),_=i(96814),C=i(84187),R=i(42400),x=i(82012),f=i(81274),k=i(30617),w=i(83814),g=i(27509),M=i(94505),p=i(65139),E=i(30481),b=i(45754),I=i(21242),L=i(26177),D=i(89515);const F=["formElement"],P=function(){return["alias","organization"]};function O(re,de){if(1&re){const te=l.EpF();l.TgZ(0,"div",72)(1,"zen-select",97),l.NdJ("ngModelChange",function(H){l.CHM(te);const z=l.oxw();return l.KtG(z.grossProfit.tenantOrganizationId=H)})("selectEvent",function(H){l.CHM(te);const z=l.oxw();return l.KtG(z.onOrganizationChange(H))}),l.ALo(2,"translate"),l.qZA()()}if(2&re){const te=l.oxw();l.xp6(1),l.s9C("placeholder",l.lcZ(2,5,"company")),l.Q6J("ngModel",te.grossProfit.tenantOrganizationId)("data",te.organizationList)("emitDefaultSelection",!1)("columns",l.DdM(7,P))}}const U=function(){return["office"]};function V(re,de){if(1&re){const te=l.EpF();l.TgZ(0,"div",72)(1,"zen-select",98),l.NdJ("ngModelChange",function(H){l.CHM(te);const z=l.oxw();return l.KtG(z.grossProfit.officeId=H)})("selectEvent",function(H){l.CHM(te);const z=l.oxw();return l.KtG(z.onOfficeChange(H))}),l.ALo(2,"translate"),l.qZA()()}if(2&re){const te=l.oxw();l.xp6(1),l.s9C("placeholder",l.lcZ(2,5,"office")),l.Q6J("ngModel",te.grossProfit.officeId)("data",te.officeList)("emitDefaultSelection",!1)("columns",l.DdM(7,U))}}function K(re,de){1&re&&(l.TgZ(0,"span"),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&re&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"eRRate"),""))}function X(re,de){1&re&&(l.TgZ(0,"span"),l._uU(1),l.ALo(2,"translate"),l.qZA()),2&re&&(l.xp6(1),l.hij(" ",l.lcZ(2,1,"wcCodeRate"),""))}const me=function(){return["stateCode"]},J=function(){return["wcCode"]};let Q=(()=>{class re{constructor(te,j,H,z,q,se){this.dialogRef=te,this.grossProfitDialogData=j,this.gs=H,this.pdas=z,this.cs=q,this.us=se,this.grossProfit={},this.defaultRound=4,this.isFica=!0,this.isFuta=!0,this.isCalculateBill=!0,this.billRatedisableType=!1,this.nonEditable=!0,this.payRateDisableType=!1,this._unsubscribeAll=new a.x}ngOnInit(){this.callFor=this.grossProfitDialogData.callFor,this.organizationId=this.grossProfitDialogData.organizationId,this.jobId=this.grossProfitDialogData.jobId,this.officeId=JSON.parse(sessionStorage.getItem("headerParams")).officeId,"DataAccess"===this.callFor?this.pdas.onPersonDataAccessModified.pipe((0,o.R)(this._unsubscribeAll)).subscribe(te=>{(te||null==te)&&this.cs.personDataAccessOrganization({includePagination:!1,searchText:"",callfrom:"gPCalculator"},!1).pipe((0,o.R)(this._unsubscribeAll)).subscribe(H=>{this.organizationList=H.data,this.organizationList.length>0?(this.grossProfit.tenantOrganizationId=this.organizationList[0].organizationId,this.officeList=this.organizationList[0].officeData,this.grossProfit.officeId=this.officeList.find(q=>q.officeId==this.organizationList[0].defaultOfficeId)?.officeId??this.officeList[0].officeId):this.officeList=[]})}):this.grossProfitOptionSelection(),this.grossProfit.tenantOrganizationId=this.grossProfitDialogData.tenantOrganizationId,this.isFica=!0,this.isFuta=!0,this.isMedi=!0,this.isCalculateBill=!0,this.isCalculateBill?(this.billRatedisableType=!0,this.payRateDisableType=!1):(this.payRateDisableType=!0,this.billRatedisableType=!1)}onOrganizationChange(te){this.grossProfit.wcCodeRate=null,this.grossProfit.wcCode=null,this.grossProfit.stateId=null,this.grossProfit.sutaTax=null,this.grossProfit.sutaState=null,this.grossProfit.wcCodeId=null,this.sutaStateList=[],this.wcCodeStateList=[],this.grossProfit.totalBurden=this.grossProfit.federalTax+this.grossProfit.otherTax,te.length>0&&(this.grossProfit.tenantOrganizationId=te[0]?.organizationId,this.officeList=te[0]?.officeData,setTimeout(()=>{this.grossProfit.officeId=this.officeList.find(j=>j.officeId==te[0]?.defaultOfficeId)?.officeId??this.officeList[0]?.officeId,this.grossProfitOptionSelection()},100))}onOfficeChange(te){te.length>0&&(this.grossProfit.officeId=te[0]?.officeId,this.grossProfitOptionSelection())}closeForm(te){this.dialogRef.close([null,null])}reset(te){this.grossProfit.rTPayRate="",this.grossProfit.rTMarkup="",this.grossProfit.rTGPAmount="",this.grossProfit.rTGPPercent="",this.grossProfit.oTPayRate="",this.grossProfit.oTMarkup="",this.grossProfit.oTGPAmount="",this.grossProfit.oTGPPercent="",this.grossProfit.dTPayRate="",this.grossProfit.dTMarkup="",this.grossProfit.dTGPAmount="",this.grossProfit.dTGPPercent="",this.grossProfit.hourPerWeekRT="",this.grossProfit.hourPerWeekOT="",this.grossProfit.noOfWeek="",this.grossProfit.overTimePlan="",this.grossProfit.rTBillRate="",this.grossProfit.oTBillRate="",this.grossProfit.dTBillRate="",this.grossProfit.totalBurden="",this.calculateGrossProfit()}calculateGrossProfit(te,j){this.toasterMessage=null;let H=!1;function z(q,se){return 0===se||"0.00"===se||""===se?"":se}this.grossProfit?.[j]<0&&(H=!0,this.toasterMessage="valueCannotBeNegative"),("rTGPPercent"===j||"oTGPPercent"===j)&&(H?this.grossProfit?.[j]>99&&(this.toasterMessage="valueCannotBeNegativeAnd"+j+"CannotExceed99Percent"):this.grossProfit?.[j]>99&&(this.toasterMessage=j+"CannotExceed99Percent")),this.toasterMessage?this.us.callSnackBar(this.toasterMessage,"warning"):(this.grossProfit.changeParameter=j,this.calculatejson={federalTax:this.grossProfit.federalTax?this.grossProfit.federalTax:0,otherTax:this.grossProfit.otherTax?this.grossProfit.otherTax:0,sutaState:this.grossProfit.sutaState?this.grossProfit.sutaState:"",stateId:this.grossProfit.stateId?this.grossProfit.stateId:0,sutaTax:this.grossProfit.sutaTax?this.grossProfit.sutaTax:0,wcCodeState:this.grossProfit.wcCode?this.grossProfit.wcCode:"",wcCodeId:this.grossProfit.wcCodeId?this.grossProfit.wcCodeId:0,wcCodeRate:this.grossProfit.wcCodeRate?this.grossProfit.wcCodeRate:0,otherBurden:this.grossProfit.otherBurden?this.grossProfit.otherBurden:0,totalBurden:this.grossProfit.totalBurden?this.grossProfit.totalBurden:0,rTPayRate:this.grossProfit.rTPayRate?this.grossProfit.rTPayRate:0,rTMarkup:this.grossProfit.rTMarkup?this.grossProfit.rTMarkup:0,rTBillRate:this.grossProfit.rTBillRate?this.grossProfit.rTBillRate:0,rTGPAmount:this.grossProfit.rTGPAmount?this.grossProfit.rTGPAmount:0,rTGPPercent:this.grossProfit.rTGPPercent?this.grossProfit.rTGPPercent:0,oTPayRate:this.grossProfit.oTPayRate?this.grossProfit.oTPayRate:0,oTMarkup:this.grossProfit.oTMarkup?this.grossProfit.oTMarkup:0,oTBillRate:this.grossProfit.oTBillRate?this.grossProfit.oTBillRate:0,oTGPAmount:this.grossProfit.oTGPAmount?this.grossProfit.oTGPAmount:0,oTGPPercent:this.grossProfit.oTGPPercent?this.grossProfit.oTGPPercent:0,dTPayRate:this.grossProfit.dTPayRate?this.grossProfit.dTPayRate:0,dTMarkup:this.grossProfit.dTMarkup?this.grossProfit.dTMarkup:0,dTBillRate:this.grossProfit.dTBillRate?this.grossProfit.dTBillRate:0,dTGPAmount:this.grossProfit.dTGPAmount?this.grossProfit.dTGPAmount:0,dTGPPercent:this.grossProfit.dTGPPercent?this.grossProfit.dTGPPercent:0,hourPerWeekRT:this.grossProfit.hourPerWeekRT?this.grossProfit.hourPerWeekRT:0,hourPerWeekOT:this.grossProfit.hourPerWeekOT?this.grossProfit.hourPerWeekOT:0,noOfWeek:this.grossProfit.noOfWeek?this.grossProfit.noOfWeek:0,overTimePlan:this.grossProfit.overTimePlan?this.grossProfit.overTimePlan:0,isFuta:this.isFuta,isFica:this.isFica,isMedi:this.isMedi,isCalculateBill:this.isCalculateBill,changeParameter:this.grossProfit.changeParameter?this.grossProfit.changeParameter:"",organizationId:this.organizationId,tenantOrganizationId:this.grossProfit.tenantOrganizationId,futaTax:this.grossProfit.futaTax?this.grossProfit.futaTax:0,ficaTax:this.grossProfit.ficaTax?this.grossProfit.ficaTax:0,mediTax:this.grossProfit.mediTax?this.grossProfit.mediTax:0,noOfPerson:this.grossProfit.noOfPerson?this.grossProfit.noOfPerson:1,officeId:this.grossProfit.officeId??this.officeId},this.cs.grossProfitCalculator(this.calculatejson).pipe((0,o.R)(this._unsubscribeAll)).subscribe(q=>{if(q){this.grossProfit=q,this.grossProfit.rTPayRate=q.rTPayRate,this.grossProfit.oTPayRate=q.oTPayRate,this.grossProfit.dTPayRate=q.dTPayRate,this.grossProfit.rTBillRate=q.rTBillRate,this.grossProfit.oTBillRate=q.oTBillRate,this.grossProfit.dTBillRate=q.dTBillRate,this.grossProfit.rTGPAmount=q.rTGPAmount,this.grossProfit.oTGPAmount=q.oTGPAmount,this.grossProfit.dTGPAmount=q.dTGPAmount,this.grossProfit.oTMarkup=Number(q.oTMarkup).toFixed(this.defaultRound).toString(),this.grossProfit.rTMarkup=Number(q.rTMarkup).toFixed(this.defaultRound).toString(),this.grossProfit.rTGPPercent=q.rTGPPercent,this.grossProfit.oTGPPercent=q.oTGPPercent,this.grossProfit.totalGpAmount=q.totalGPAmount,this.grossProfit.noOfPerson=q.noOfPerson;const se=JSON.stringify(this.grossProfit,z);this.grossProfit=JSON.parse(se),this.grossProfit.federalTax=q.federalTax,this.grossProfit.totalBurden=q.totalBurden,this.grossProfit.otherBurden=q.otherBurden,this.grossProfit.otherTax=q.otherTax,this.grossProfit.wcCodeRate=q.wcCodeRate,this.grossProfit.sutaTax=q.sutaTax}}))}futaChange(te){this.isFuta=te,this.calculateGrossProfit(te)}ficaChange(te){this.isFica=te,this.calculateGrossProfit(te)}mediChange(te){this.isMedi=te,this.calculateGrossProfit(te)}calculateBill(te){1==te.source.value?(this.isCalculateBill=!0,this.billRatedisableType=!0,this.payRateDisableType=!1):(this.isCalculateBill=!1,this.billRatedisableType=!1,this.payRateDisableType=!0)}grossProfitOptionSelection(te){te?this.cs.grossProfitOptionSelection({organizationId:this.organizationId,tenantOrganizationId:"DataAccess"!==this.callFor?this.grossProfit?.tenantOrganizationId??this.organizationId:this.grossProfit?.tenantOrganizationId||null,officeId:this.grossProfit?.officeId??this.officeId,callFor:this.callFor,jobId:this.jobId,stateId:te}).pipe((0,o.R)(this._unsubscribeAll)).subscribe(H=>{""!=H?.wcCodeState?(this.wcCodeStateList=H.wcCodeState,this.grossProfit.wcCodeId=this.wcCodeStateList?.length?this.wcCodeStateList[0].wcCodeId:0,this.grossProfit.wcCodeId&&this.getWcCodeRate()):this.wcCodeStateList=[],this.organizationId=H.organization[0].organizationId,this.grossProfit.tenantOrganizationId=H.organization[0].tenantOrganizationId}):(this.jsonOption={organizationId:this.organizationId,tenantOrganizationId:"DataAccess"!==this.callFor?this.grossProfit?.tenantOrganizationId?this.grossProfit?.tenantOrganizationId:this.organizationId:this.grossProfit?.tenantOrganizationId||null,officeId:this.grossProfit?.officeId??this.officeId,callFor:this.callFor,jobId:this.jobId},this.cs.grossProfitOptionSelection(this.jsonOption).pipe((0,o.R)(this._unsubscribeAll)).subscribe(j=>{j?.defaultValue?.length&&(this.grossProfit.federalTax=j?.federalTax?.federalTax,this.grossProfit.otherBurden=j?.otherBurden?.otherBurden,this.grossProfit.otherTax=j?.otherTax?.otherTax,this.grossProfit.futaTax=j?.taxes?.futaTax,this.grossProfit.ficaTax=j?.taxes?.ficaTax,this.grossProfit.mediTax=j?.taxes?.mediTax,this.grossProfit.rTBillRate=j.defaultValue[0].rTBillRate,this.grossProfit.rTPayRate=j.defaultValue[0].rTPayRate,this.grossProfit.noOfWeek=j.defaultValue[0].noOfWeek,this.grossProfit.noOfPerson=j.defaultValue[0].noOfPerson,this.grossProfit.hourPerWeekRT=j.defaultValue[0].hourPerWeekRT),""!=j?.sUTAState?(this.organizationId=j.organization[0].organizationId,this.grossProfit.tenantOrganizationId=j.organization[0].tenantOrganizationId,this.sutaStateList=j.sUTAState,this.grossProfit.stateId=this.sutaStateList[0].stateId,this.grossProfit.sutaState=this.sutaStateList[0].stateCode??this.grossProfit.sutaState):this.sutaStateList=[],this.calculateGrossProfit()}))}autoSUTAStateSelect(te){this.grossProfit.wcCodeRate=null,this.grossProfit.wcCode=null,this.grossProfit.stateId=te,this.grossProfit.stateId&&this.grossProfitOptionSelection(te),this.calculateGrossProfit()}autoWcCodeStateSelect(te){te&&(this.grossProfit.wcCodeId=te)}setWcCodeState(te){te.length>0&&(this.grossProfit.wcCode=te[0].wcCode,this.grossProfit.wcCodeId=te[0].wcCodeId,this.getWcCodeRate())}setSUTAState(te){te.length>0&&(this.grossProfit.wcCodeRate=null,this.grossProfit.wcCode=null,this.grossProfit.wcCodeId=null,this.grossProfit.sutaState=te[0]?.stateCode,this.grossProfit.stateId=te[0].stateId,this.getSUTATax(),this.grossProfitOptionSelection(te[0].stateId))}getSUTATax(){this.cs.getSUTATax(this.grossProfit.stateId,this.organizationId).pipe((0,o.R)(this._unsubscribeAll)).subscribe(te=>{te?.length&&(this.grossProfit.sutaTax=Number(te[0]?.taxRate),this.calculateOnStateChange())})}getWcCodeRate(){const te=this.grossProfit.wcCodeId;this.cs.getWcCodeRate(this.grossProfit.wcCodeId,this.organizationId,this.jobId).pipe((0,o.R)(this._unsubscribeAll)).subscribe(j=>{j?.length&&(this.grossProfit.wcCodeRate=Number(j[0]?.wcCodeRate),this.grossProfit.wcCodeId=te,this.calculateOnStateChange())})}calculateOnStateChange(){this.calculateGrossProfit()}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(j){return new(j||re)(l.Y36(e.hV),l.Y36(e.eJ),l.Y36(u.Y),l.Y36(d.F),l.Y36(s.v),l.Y36(A.t))};static#t=this.\u0275cmp=l.Xpm({type:re,selectors:[["zen-gross-profit-calculator-form"]],viewQuery:function(j,H){if(1&j&&(l.Gf(n.F,7),l.Gf(F,7)),2&j){let z;l.iGM(z=l.CRH())&&(H.grossProfitCalculatorForm=z.first),l.iGM(z=l.CRH())&&(H.formElement=z.first)}},inputs:{data:"data"},decls:310,vars:155,consts:[[1,"dialog-content-wrapper"],["matDialogTitle","",1,"mat-accent","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","space-between center"],[1,"title","dialog-title"],["mat-button","","aria-label","Close dialog",1,"mat-icon-button",3,"click"],["mat-dialog-content","",1,"p-0","m-0","mat-dialog-content"],["id","grossProfitCalculator","name","grossProfitCalculatorForm","autocomplete","off","tabindex","-1",1,"gross-profit-calculation",3,"keydown.enter"],["grossProfitCalculatorForm","ngForm"],[1,"calculation-body","px-12"],["ngModelGroup","grossProfit"],[3,"ngModelGroup"],["fxLayout","row wrap","fxFlex","100"],["fxLayout","column","fxFlex","100",1,"mb-12","zenauto-regular"],[1,"w-100-p"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-0","font-weight-600"],["fxFlex","102px"],["fxFlex","","fxLayoutAlign","start center",1,"ml-8",3,"change"],["value","1",1,"ml-8",3,"checked"],["value","0",1,"ml-8"],["fxLayout","column"],["fxLayout","row","fxLayoutGap","12px","fxLayoutGap.xs","0"],["fxFlex","","fxLayout","row","fxLayout.lt-sm","column","fxLayoutAlign","start center","fxLayoutAlign.lt-sm","start start"],["fxFlex","","fxFlex.lt-sm","0 0 0"],["fxLayout","row","fxLayoutAlign","start center"],["matPrefix",""],["fxFlex","100px","fxFlex.lt-sm","0 0 0","ngClass.lt-sm","w-152","appearance","outline"],["matInput","","name","rTPayRate","type","number","zen-validator","grossProfit.gPNumericData",3,"ngModel","placeholder","disabled","ngModelChange","change"],["rTPayRate",""],["fxFlex","","fxLayout","row","fxLayout.lt-sm","column","fxLayoutAlign","space-between center","fxLayoutAlign.lt-sm","start start",1,"bl","pl-8"],["fxFlex","138px","fxFlex.lt-sm","0 0 0"],["fxFlex","100px","fxFlex.lt-sm","0 0 0","ngClass.lt-sm","w-152","appearance","outline",1,"mr-18"],["matInput","","name","rTMarkup","type","number","zen-validator","grossProfit.gPNumericData",3,"ngModel","placeholder","ngModelChange","change"],["rTMarkup",""],["matInput","","name","rTBillRate","type","number","zen-validator","grossProfit.gPNumericData",3,"ngModel","placeholder","disabled","ngModelChange","change"],["rTBillRate",""],["fxFlex","","fxLayout","row","fxLayout.lt-sm","column","fxLayoutAlign","start center","fxLayoutAlign.lt-sm","start start",1,"bl","pl-8"],["matInput","","name","rTGPPercent","type","number","zen-validator","grossProfit.gPPercent","required","",3,"ngModel","placeholder","ngModelChange","change"],["rTGPPercent",""],["matSuffix",""],["matInput","","name","rTGPAmount","type","number","zen-validator","grossProfit.gPNumericData",3,"ngModel","placeholder","ngModelChange","change"],["rTGPAmount",""],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"bl","pl-8"],["fxLayout","column","fxFlex","100",1,"mb-12","zenauto-overTime"],[1,"m-0","p-0","font-weight-600"],["matInput","","name","oTPayRate","type","number","zen-validator","grossProfit.gPNumericData",3,"ngModel","placeholder","disabled","ngModelChange","change"],["oTPayRate",""],["matInput","","name","oTMarkup","type","number","zen-validator","grossProfit.gPNumericData",3,"ngModel","placeholder","ngModelChange","change"],["oTMarkup",""],["matInput","","name","oTBillRate","type","number","zen-validator","grossProfit.gPNumericData",3,"ngModel","placeholder","disabled","ngModelChange","change"],["oTBillRate",""],["matInput","","name","oTGPPercent","type","number","zen-validator","grossProfit.gPPercent","required","",3,"ngModel","placeholder","ngModelChange","change"],["oTGPPercent",""],["matInput","","name","oTGPAmount","type","number","zen-validator","grossProfit.gPNumericData",3,"ngModel","placeholder","ngModelChange","change"],["oTGPAmount",""],["fxLayout","column","fxFlex","100",1,"mb-12","zenauto-forecast"],["matInput","","name","hourPerWeekRT","type","number","zen-validator","grossProfit.gPNumericData",3,"ngModel","placeholder","ngModelChange","change"],["hourPerWeek",""],["matInput","","name","hourPerWeekOT","type","number","zen-validator","grossProfit.gPNumericData",3,"ngModel","placeholder","ngModelChange","change"],["fxFlex","","fxLayout","column","fxLayoutAlign","start center"],["fxFlex","","fxLayout","row","fxLayout.lt-sm","column","fxLayoutAlign","start center","fxLayoutAlign.lt-sm","start start",1,"w-100-p"],["matInput","","name","noOfWeek","type","number","zen-validator","grossProfit.gPNumericData",3,"ngModel","placeholder","ngModelChange","change"],["noOfWeek",""],["matInput","","name","noOfPerson","type","number","zen-validator","grossProfit.gPNumericData",3,"ngModel","placeholder","ngModelChange","change"],["matInput","","name","totalGpAmount","type","number","zen-validator","grossProfit.gPNumericData",3,"ngModel","placeholder","ngModelChange","change"],["totalGpAmount",""],["fxLayout","column","fxLayoutAlign","center center",1,"gross-profit-detail-slide-view-wrapper"],[1,"gross-profit-details-wrapper"],[1,"detail-info","p-8"],["id","grossProfitCalculator","name","grossProfitCalculatorForm","autocomplete","off","tabindex","-1","fxLayout","column","fxLayout.xs","column","fxLayoutAlign","start start","fxLayoutGap","10px",1,"gross-profit-calculation",3,"keydown.enter"],["ngModelGroup","grossProfit",1,"grossProfit-group"],["fxLayout","column","fxFlex","100",1,"mb-12","zenauto-company"],["fxLayout","row wrap",4,"ngIf"],["fxLayout","row wrap"],["fxFlex","calc(50% - 4px)",1,"mr-4"],[1,"text-truncate",3,"matTooltip"],["fxFlex","calc(100% - 18px)","appearance","outline"],["matInput","","name","federalTax","type","number",3,"ngModel","placeholder","disabled","ngModelChange"],["matSuffix","",1,"ml-4"],["fxFlex","calc(50% - 4px)",1,"ml-4"],[3,"matTooltip"],["matInput","","name","otherTax","type","number",3,"ngModel","placeholder","disabled","ngModelChange","change"],["otherTax",""],["fxFlex","calc(100% - 18px)"],["name","sutaState","placeholder","","nameField","stateCode","valueField","stateId","tabindex","-1",1,"chip-black",3,"ngModel","autoSelect","data","columns","virtualScroll","ngModelChange","onAutoSelect","selectEvent"],["matInput","","name","sutaTax","type","number",3,"ngModel","placeholder","disabled","ngModelChange"],["name","wcCode","placeholder","","nameField","wcCode","valueField","wcCodeId",1,"chip-black",3,"ngModel","autoSelect","data","columns","virtualScroll","panelClass","ngModelChange","onAutoSelect","selectEvent"],[4,"ngIf"],["matInput","","name","wcCodeRate",3,"ngModel","placeholder","disabled","ngModelChange"],["matInput","","name","otherBurden","type","number","zen-validator","grossProfit.gPNumericData",3,"ngModel","placeholder","ngModelChange","change"],["otherBurden",""],["matInput","","name","totalBurden","type","number",3,"ngModel","placeholder","disabled","ngModelChange"],["totalBurden",""],["fxLayout","column","fxLayoutAlign","start start","fxLayoutGap","4px",1,"w-100-p","burden-types","mt-8"],["fxLayout","row","fxLayoutAlign","space-between center",1,"w-100-p"],["type","checkbox",1,"mr-8",3,"checked","change"],["aria-label","Fish selection"],["selected","",1,"w-60","mat-standerd"],["nameField","organization","valueField","organizationId","name","organizationId","panelClass","zen-select-md",1,"no-padding-head","chip-black",3,"placeholder","ngModel","data","emitDefaultSelection","columns","ngModelChange","selectEvent"],["nameField","office","valueField","officeId","name","officeId","panelClass","zen-select-md",1,"no-padding-head","chip-black",3,"placeholder","ngModel","data","emitDefaultSelection","columns","ngModelChange","selectEvent"]],template:function(j,H){if(1&j){const z=l.EpF();l.TgZ(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),l._uU(4," Gross Profit Calculator"),l.qZA(),l.TgZ(5,"button",4),l.NdJ("click",function(){l.CHM(z);const se=l.MAs(10);return l.KtG(H.closeForm(se))}),l.TgZ(6,"mat-icon"),l._uU(7,"close"),l.qZA()()()(),l.TgZ(8,"div",5)(9,"form",6,7),l.NdJ("keydown.enter",function(se){return se.preventDefault()}),l.TgZ(11,"div",8)(12,"div",9)(13,"div",10)(14,"div",11)(15,"fieldset",12)(16,"legend",13)(17,"p",14)(18,"span",15),l._uU(19),l.ALo(20,"translate"),l.qZA(),l.TgZ(21,"mat-radio-group",16),l.NdJ("change",function(se){return H.calculateBill(se)}),l.TgZ(22,"mat-radio-button",17),l._uU(23),l.ALo(24,"translate"),l.qZA(),l.TgZ(25,"mat-radio-button",18),l._uU(26),l.ALo(27,"translate"),l.qZA()()()(),l.TgZ(28,"div",19)(29,"div",20)(30,"div",21)(31,"div",22),l._uU(32),l.ALo(33,"translate"),l.qZA(),l.TgZ(34,"div",23)(35,"span",24),l._uU(36,"$ \xa0"),l.qZA(),l.TgZ(37,"mat-form-field",25)(38,"input",26,27),l.NdJ("ngModelChange",function(se){return H.grossProfit.rTPayRate=se})("change",function(se){return H.calculateGrossProfit(se,"rTPayRate")}),l.qZA()()()(),l.TgZ(40,"div",28)(41,"div",29),l._uU(42),l.ALo(43,"translate"),l.qZA(),l.TgZ(44,"mat-form-field",30)(45,"input",31,32),l.NdJ("ngModelChange",function(se){return H.grossProfit.rTMarkup=se})("change",function(se){return H.calculateGrossProfit(se,"rTMarkup")}),l.qZA()()()(),l.TgZ(47,"div",20)(48,"div",21)(49,"div",22),l._uU(50),l.ALo(51,"translate"),l.qZA(),l.TgZ(52,"div",23)(53,"span",24),l._uU(54,"$ \xa0"),l.qZA(),l.TgZ(55,"mat-form-field",25)(56,"input",33,34),l.NdJ("ngModelChange",function(se){return H.grossProfit.rTBillRate=se})("change",function(se){return H.calculateGrossProfit(se,"rTBillRate")}),l.qZA()()()(),l.TgZ(58,"div",35)(59,"div",22),l._uU(60),l.ALo(61,"translate"),l.qZA(),l.TgZ(62,"div",23)(63,"mat-form-field",25)(64,"input",36,37),l.NdJ("ngModelChange",function(se){return H.grossProfit.rTGPPercent=se})("change",function(se){return H.calculateGrossProfit(se,"rTGPPercent")}),l.qZA()(),l.TgZ(66,"span",38),l._uU(67,"\xa0%"),l.qZA()()()(),l.TgZ(68,"div",20)(69,"div",21)(70,"div",22),l._uU(71),l.ALo(72,"translate"),l.qZA(),l.TgZ(73,"div",23)(74,"span",24),l._uU(75,"$ \xa0"),l.qZA(),l.TgZ(76,"mat-form-field",25)(77,"input",39,40),l.NdJ("ngModelChange",function(se){return H.grossProfit.rTGPAmount=se})("change",function(se){return H.calculateGrossProfit(se,"rTGPAmount")}),l.qZA()()()(),l._UZ(79,"div",41),l.qZA()()()()()(),l.TgZ(80,"div",9)(81,"div",10)(82,"div",11)(83,"fieldset",42)(84,"legend")(85,"p",43),l._uU(86),l.ALo(87,"translate"),l.qZA()(),l.TgZ(88,"div",19)(89,"div",20)(90,"div",21)(91,"div",22),l._uU(92),l.ALo(93,"translate"),l.qZA(),l.TgZ(94,"div",23)(95,"span",24),l._uU(96,"$ \xa0"),l.qZA(),l.TgZ(97,"mat-form-field",25)(98,"input",44,45),l.NdJ("ngModelChange",function(se){return H.grossProfit.oTPayRate=se})("change",function(se){return H.calculateGrossProfit(se,"oTPayRate")}),l.qZA()()()(),l.TgZ(100,"div",28)(101,"div",29),l._uU(102),l.ALo(103,"translate"),l.qZA(),l.TgZ(104,"mat-form-field",30)(105,"input",46,47),l.NdJ("ngModelChange",function(se){return H.grossProfit.oTMarkup=se})("change",function(se){return H.calculateGrossProfit(se,"oTMarkup")}),l.qZA()()()(),l.TgZ(107,"div",20)(108,"div",21)(109,"div",22),l._uU(110),l.ALo(111,"translate"),l.qZA(),l.TgZ(112,"div",23)(113,"span",24),l._uU(114,"$ \xa0"),l.qZA(),l.TgZ(115,"mat-form-field",25)(116,"input",48,49),l.NdJ("ngModelChange",function(se){return H.grossProfit.oTBillRate=se})("change",function(se){return H.calculateGrossProfit(se,"oTBillRate")}),l.qZA()()()(),l.TgZ(118,"div",35)(119,"div",22),l._uU(120),l.ALo(121,"translate"),l.qZA(),l.TgZ(122,"div",23)(123,"mat-form-field",25)(124,"input",50,51),l.NdJ("ngModelChange",function(se){return H.grossProfit.oTGPPercent=se})("change",function(se){return H.calculateGrossProfit(se,"oTGPPercent")}),l.qZA()(),l.TgZ(126,"span",38),l._uU(127,"\xa0%"),l.qZA()()()(),l.TgZ(128,"div",20)(129,"div",21)(130,"div",22),l._uU(131),l.ALo(132,"translate"),l.qZA(),l.TgZ(133,"div",23)(134,"span",24),l._uU(135,"$ \xa0"),l.qZA(),l.TgZ(136,"mat-form-field",25)(137,"input",52,53),l.NdJ("ngModelChange",function(se){return H.grossProfit.oTGPAmount=se})("change",function(se){return H.calculateGrossProfit(se,"oTGPAmount")}),l.qZA()()()(),l._UZ(139,"div",41),l.qZA()()()()()(),l.TgZ(140,"div",9)(141,"div",10)(142,"div",11)(143,"fieldset",54)(144,"legend")(145,"p",43),l._uU(146),l.ALo(147,"translate"),l.qZA()(),l.TgZ(148,"div",19)(149,"div",20)(150,"div",21)(151,"div",22),l._uU(152),l.ALo(153,"translate"),l.qZA(),l.TgZ(154,"mat-form-field",25)(155,"input",55,56),l.NdJ("ngModelChange",function(se){return H.grossProfit.hourPerWeekRT=se})("change",function(se){return H.calculateGrossProfit(se,"hourPerWeekRT")}),l.qZA()()(),l.TgZ(157,"div",35)(158,"div",22),l._uU(159),l.ALo(160,"translate"),l.qZA(),l.TgZ(161,"mat-form-field",25)(162,"input",57,56),l.NdJ("ngModelChange",function(se){return H.grossProfit.hourPerWeekOT=se})("change",function(se){return H.calculateGrossProfit(se,"hourPerWeekOT")}),l.qZA()()()(),l.TgZ(164,"div",20)(165,"div",58)(166,"div",59)(167,"div",22),l._uU(168),l.ALo(169,"translate"),l.qZA(),l.TgZ(170,"mat-form-field",25)(171,"input",60,61),l.NdJ("ngModelChange",function(se){return H.grossProfit.noOfWeek=se})("change",function(se){return H.calculateGrossProfit(se,"noOfWeek")}),l.qZA()()(),l.TgZ(173,"div",59)(174,"div",22),l._uU(175),l.ALo(176,"translate"),l.qZA(),l.TgZ(177,"mat-form-field",25)(178,"input",62,61),l.NdJ("ngModelChange",function(se){return H.grossProfit.noOfPerson=se})("change",function(se){return H.calculateGrossProfit(se,"noOfPerson")}),l.qZA()()()(),l.TgZ(180,"div",35)(181,"div",22),l._uU(182),l.ALo(183,"translate"),l.qZA(),l.TgZ(184,"div",23)(185,"span",24),l._uU(186,"$ \xa0"),l.qZA(),l.TgZ(187,"mat-form-field",25)(188,"input",63,64),l.NdJ("ngModelChange",function(se){return H.grossProfit.totalGpAmount=se})("change",function(se){return H.calculateGrossProfit(se,"totalGpAmount")}),l.qZA()()()()()()()()()()()(),l.TgZ(190,"div",65)(191,"div",66)(192,"mat-toolbar",1)(193,"mat-toolbar-row",2)(194,"span",3),l._uU(195,"Burden Option"),l.qZA()()(),l.TgZ(196,"div",67)(197,"form",68,7),l.NdJ("keydown.enter",function(se){return se.preventDefault()}),l.TgZ(199,"div",69)(200,"div",10)(201,"div",11)(202,"fieldset",70)(203,"div",19),l.YNc(204,O,3,8,"div",71),l.YNc(205,V,3,8,"div",71),l.TgZ(206,"div",72)(207,"div",73)(208,"div",74),l.ALo(209,"translate"),l._uU(210),l.ALo(211,"translate"),l.qZA(),l.TgZ(212,"div",23)(213,"mat-form-field",75)(214,"input",76),l.NdJ("ngModelChange",function(se){return H.grossProfit.federalTax=se}),l.qZA()(),l.TgZ(215,"span",77),l._uU(216,"%"),l.qZA()()(),l.TgZ(217,"div",78)(218,"div",79),l.ALo(219,"translate"),l._uU(220),l.ALo(221,"translate"),l.qZA(),l.TgZ(222,"div",23)(223,"mat-form-field",75)(224,"input",80,81),l.NdJ("ngModelChange",function(se){return H.grossProfit.otherTax=se})("change",function(se){return H.calculateGrossProfit(se,"otherTax")}),l.qZA()(),l.TgZ(226,"span",77),l._uU(227,"%"),l.qZA()()()(),l.TgZ(228,"div",72)(229,"div",73)(230,"div"),l._uU(231),l.ALo(232,"translate"),l.qZA(),l.TgZ(233,"div",23)(234,"div",82)(235,"zen-select",83),l.NdJ("ngModelChange",function(se){return H.grossProfit.stateId=se})("onAutoSelect",function(se){return H.autoSUTAStateSelect(se)})("selectEvent",function(se){return H.setSUTAState(se)}),l.qZA()()()(),l.TgZ(236,"div",78)(237,"div"),l._uU(238),l.ALo(239,"translate"),l.qZA(),l.TgZ(240,"div",23)(241,"mat-form-field",75)(242,"input",84),l.NdJ("ngModelChange",function(se){return H.grossProfit.sutaTax=se}),l.qZA()(),l.TgZ(243,"span",77),l._uU(244,"%"),l.qZA()()()(),l.TgZ(245,"div",72)(246,"div",73)(247,"div"),l._uU(248),l.ALo(249,"translate"),l.qZA(),l.TgZ(250,"div",23)(251,"div",82)(252,"zen-select",85),l.NdJ("ngModelChange",function(se){return H.grossProfit.wcCodeId=se})("onAutoSelect",function(se){return H.autoWcCodeStateSelect(se)})("selectEvent",function(se){return H.setWcCodeState(se)}),l.qZA()()()(),l.TgZ(253,"div",78),l.YNc(254,K,3,3,"span",86),l.YNc(255,X,3,3,"span",86),l.TgZ(256,"div",23)(257,"mat-form-field",75)(258,"input",87),l.NdJ("ngModelChange",function(se){return H.grossProfit.wcCodeRate=se}),l.qZA()(),l.TgZ(259,"span",77),l._uU(260,"%"),l.qZA()()()(),l.TgZ(261,"div",72)(262,"div",73)(263,"div"),l._uU(264),l.ALo(265,"translate"),l.qZA(),l.TgZ(266,"div",23)(267,"mat-form-field",75)(268,"input",88,89),l.NdJ("ngModelChange",function(se){return H.grossProfit.otherBurden=se})("change",function(se){return H.calculateGrossProfit(se,"otherBurden")}),l.qZA()(),l.TgZ(270,"span",77),l._uU(271,"%"),l.qZA()()(),l.TgZ(272,"div",78)(273,"div"),l._uU(274),l.ALo(275,"translate"),l.qZA(),l.TgZ(276,"div",23)(277,"mat-form-field",75)(278,"input",90,91),l.NdJ("ngModelChange",function(se){return H.grossProfit.totalBurden=se}),l.qZA()(),l.TgZ(280,"span",77),l._uU(281,"%"),l.qZA()()()()(),l.TgZ(282,"div",92)(283,"div",93)(284,"mat-checkbox",94),l.NdJ("change",function(se){return H.futaChange(se.checked)}),l._uU(285),l.ALo(286,"translate"),l.qZA(),l.TgZ(287,"mat-chip-list",95)(288,"mat-chip",96),l._uU(289),l.TgZ(290,"span",77),l._uU(291,"%"),l.qZA()()()(),l.TgZ(292,"div",93)(293,"mat-checkbox",94),l.NdJ("change",function(se){return H.ficaChange(se.checked)}),l._uU(294),l.ALo(295,"translate"),l.qZA(),l.TgZ(296,"mat-chip-list",95)(297,"mat-chip",96),l._uU(298),l.TgZ(299,"span",77),l._uU(300,"%"),l.qZA()()()(),l.TgZ(301,"div",93)(302,"mat-checkbox",94),l.NdJ("change",function(se){return H.mediChange(se.checked)}),l._uU(303),l.ALo(304,"translate"),l.qZA(),l.TgZ(305,"mat-chip-list",95)(306,"mat-chip",96),l._uU(307),l.TgZ(308,"span",77),l._uU(309,"%"),l.qZA()()()()()()()()()()()()()()()}2&j&&(l.xp6(13),l.Q6J("ngModelGroup",H.grossProfit.otherTax),l.xp6(6),l.Oqu(l.lcZ(20,89,"regular")),l.xp6(3),l.Q6J("checked","checked"),l.xp6(1),l.hij("",l.lcZ(24,91,"calculateBill")," "),l.xp6(3),l.Oqu(l.lcZ(27,93,"calculatePay")),l.xp6(6),l.hij(" ",l.lcZ(33,95,"rTPayRate")," "),l.xp6(6),l.Q6J("ngModel",H.grossProfit.rTPayRate)("disabled",H.payRateDisableType),l.xp6(4),l.hij(" ",l.lcZ(43,97,"rTMarkUp")," "),l.xp6(3),l.Q6J("ngModel",H.grossProfit.rTMarkup),l.xp6(5),l.hij(" ",l.lcZ(51,99,"rTBillRate")," "),l.xp6(6),l.Q6J("ngModel",H.grossProfit.rTBillRate)("disabled",H.billRatedisableType),l.xp6(4),l.hij(" ",l.lcZ(61,101,"rTGPPercent")," "),l.xp6(4),l.Q6J("ngModel",H.grossProfit.rTGPPercent),l.xp6(7),l.hij(" ",l.lcZ(72,103,"rTGPAmount")," "),l.xp6(6),l.Q6J("ngModel",H.grossProfit.rTGPAmount),l.xp6(4),l.Q6J("ngModelGroup",H.grossProfit.otherTax),l.xp6(5),l.Oqu(l.lcZ(87,105,"overTime")),l.xp6(6),l.hij(" ",l.lcZ(93,107,"oTPayRate")," "),l.xp6(6),l.Q6J("ngModel",H.grossProfit.oTPayRate)("disabled",H.payRateDisableType),l.xp6(4),l.hij(" ",l.lcZ(103,109,"oTMarkUp")," "),l.xp6(3),l.Q6J("ngModel",H.grossProfit.oTMarkup),l.xp6(5),l.hij(" ",l.lcZ(111,111,"oTBillRate")," "),l.xp6(6),l.Q6J("ngModel",H.grossProfit.oTBillRate)("disabled",H.billRatedisableType),l.xp6(4),l.hij(" ",l.lcZ(121,113,"oTGPPercent")," "),l.xp6(4),l.Q6J("ngModel",H.grossProfit.oTGPPercent),l.xp6(7),l.hij(" ",l.lcZ(132,115,"oTGPAmount")," "),l.xp6(6),l.Q6J("ngModel",H.grossProfit.oTGPAmount),l.xp6(4),l.Q6J("ngModelGroup",H.grossProfit.otherTax),l.xp6(5),l.Oqu(l.lcZ(147,117,"forecast")),l.xp6(6),l.hij(" ",l.lcZ(153,119,"hourPerWeekRT")," "),l.xp6(3),l.Q6J("ngModel",H.grossProfit.hourPerWeekRT),l.xp6(4),l.hij(" ",l.lcZ(160,121,"hourPerWeekOT")," "),l.xp6(3),l.Q6J("ngModel",H.grossProfit.hourPerWeekOT),l.xp6(6),l.hij(" ",l.lcZ(169,123,"noOfWeek")," "),l.xp6(3),l.Q6J("ngModel",H.grossProfit.noOfWeek),l.xp6(4),l.hij(" ",l.lcZ(176,125,"noOfPerson")," "),l.xp6(3),l.Q6J("ngModel",H.grossProfit.noOfPerson),l.xp6(4),l.hij(" ",l.lcZ(183,127,"totalGpAmount")," "),l.xp6(6),l.Q6J("ngModel",H.grossProfit.totalGpAmount),l.xp6(12),l.Q6J("ngModelGroup",H.grossProfit.otherTax),l.xp6(4),l.Q6J("ngIf","DataAccess"===H.callFor),l.xp6(1),l.Q6J("ngIf","DataAccess"===H.callFor),l.xp6(3),l.s9C("matTooltip",l.lcZ(209,129,"federalTaxBurden")),l.xp6(2),l.hij(" ",l.lcZ(211,131,"federalTaxBurden")," "),l.xp6(4),l.Q6J("ngModel",H.grossProfit.federalTax)("disabled",H.nonEditable),l.xp6(4),l.s9C("matTooltip",l.lcZ(219,133,"otherTaxBurden")),l.xp6(2),l.hij(" ",l.lcZ(221,135,"otherTaxBurden")," "),l.xp6(4),l.Q6J("ngModel",H.grossProfit.otherTax)("disabled",H.nonEditable),l.xp6(7),l.Oqu(l.lcZ(232,137,"sutaState")),l.xp6(4),l.Q6J("ngModel",H.grossProfit.stateId)("autoSelect",!0)("data",H.sutaStateList)("columns",l.DdM(153,me))("virtualScroll",!0),l.uIk("appearance","outline"),l.xp6(3),l.Oqu(l.lcZ(239,139,"sutaTax")),l.xp6(4),l.Q6J("ngModel",H.grossProfit.sutaTax)("disabled",H.nonEditable),l.xp6(6),l.Oqu(l.lcZ(249,141,"wCCode")),l.xp6(4),l.Q6J("ngModel",H.grossProfit.wcCodeId)("autoSelect",!0)("data",H.wcCodeStateList)("columns",l.DdM(154,J))("virtualScroll",!0)("panelClass","zen-select-sm"),l.xp6(2),l.Q6J("ngIf","WA"==H.grossProfit.sutaState),l.xp6(1),l.Q6J("ngIf","WA"!==H.grossProfit.sutaState),l.xp6(3),l.Q6J("ngModel",H.grossProfit.wcCodeRate)("disabled",H.nonEditable),l.xp6(6),l.Oqu(l.lcZ(265,143,"otherBurden")),l.xp6(4),l.Q6J("ngModel",H.grossProfit.otherBurden),l.xp6(6),l.Oqu(l.lcZ(275,145,"totalBurden")),l.xp6(4),l.Q6J("ngModel",H.grossProfit.totalBurden)("disabled",H.nonEditable),l.xp6(6),l.Q6J("checked","checked"),l.xp6(1),l.hij(" ",l.lcZ(286,147,"useFUTA")," "),l.xp6(4),l.hij(" ",H.grossProfit.futaTax,""),l.xp6(4),l.Q6J("checked","checked"),l.xp6(1),l.hij(" ",l.lcZ(295,149,"useFICA")," "),l.xp6(4),l.hij(" ",H.grossProfit.ficaTax,""),l.xp6(4),l.Q6J("checked","checked"),l.xp6(1),l.hij(" ",l.lcZ(304,151,"useMedicare")," "),l.xp6(4),l.hij(" ",H.grossProfit.mediTax,""))},dependencies:[_.O5,C.v_,C.g4,C.nX,R.k0,x.i,f.Ye,f.rD,k.Hw,w.xw,w.SQ,w.Wh,w.yH,g.oO,M.eB,p.p,E.Kd,n._Y,n.Fj,n.wV,n.JJ,n.JL,n.Q7,n.On,n.Mq,n.F,b.FC,I.OY,I.vy,L.ir,L.lw,D.X$],styles:["@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInLeft{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInRight{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInDown{0%{opacity:0;transform:translateY(-2000px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInLeft{0%{opacity:0;transform:translate(-2000px)}to{opacity:1;transform:translate(0)}}@keyframes slideInRight{0%{opacity:0;transform:translate(2000px)}to{opacity:1;transform:translate(0)}}.gross-profit-calculator-popup .show-hide-extra-fields{text-align:right;cursor:pointer;font-size:12px}.gross-profit-calculator-popup .dialog-content-wrapper{width:650px;max-height:85vh;height:85vh;display:flex;flex-direction:column}.gross-profit-calculator-popup .dialog-content-wrapper .no-wrap{white-space:nowrap}.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content{overflow:hidden;max-height:calc(85vh - 66px);height:calc(85vh - 66px)}@media screen and (max-width: 599px){.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content{max-height:unset;overflow-y:auto}}.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content .gross-profit-calculation{height:65vh}@media screen and (max-width: 599px){.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content .gross-profit-calculation{height:auto}}.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content .gross-profit-calculation .calculation-body{height:calc(85vh - 66px);overflow-y:scroll}.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content .gross-profit-calculation .calculation-body .bl{border-left:2px solid #c1c1c1!important}.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content .gross-profit-calculation .calculation-body .mat-form-field.mr-18{margin-right:18px}.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content .gross-profit-calculation .calculation-body .mat-form-field.mat-form-field-disabled .mat-form-field-flex .mat-form-field-outline{background:#eee}.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content .gross-profit-calculation .calculation-body .mat-form-field .mat-form-field-infix{padding:12px 0!important;border-top:none}.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content .gross-profit-calculation .calculation-body .mat-form-field .mat-form-field-infix input{text-align:right}.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content .gross-profit-calculation .calculation-body .mat-form-field .mat-form-field-infix input::-webkit-outer-spin-button,.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content .gross-profit-calculation .calculation-body .mat-form-field .mat-form-field-infix input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content .gross-profit-calculation .calculation-body .mat-form-field .mat-form-field-wrapper{padding-bottom:8px!important}.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content .gross-profit-calculation .calculation-body zen-select .mat-form-field.mat-focused .mat-form-field-infix .mat-chip-list-wrapper{border:2px solid #000000}.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content .gross-profit-calculation .calculation-body zen-select .mat-form-field .mat-form-field-infix .mat-chip-list-wrapper{border:1px solid #dbdbdb;height:36px}.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content .gross-profit-calculation .calculation-body zen-select .mat-form-field .mat-form-field-infix .mat-chip-list-wrapper input{text-align:left}.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content .gross-profit-calculation .calculation-body zen-select .mat-form-field .mat-form-field-infix .mat-chip-list-wrapper #zs-clear-btn{top:0}.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content .gross-profit-calculation .calculation-body zen-select .mat-form-field .mat-form-field-infix .mat-chip-list-wrapper #zs-clear-btn .mat-button-focus-overlay{background:none}.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content .gross-profit-calculation .calculation-body zen-select .mat-form-field .mat-form-field-underline{background:none}.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content .gross-profit-calculation .calculation-body .burden-types mat-chip.mat-standard-chip{min-height:20px!important;justify-content:center;background-color:#e0e0e0;color:#000000de}.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content .gross-profit-calculation .calculation-foot{height:24px}.gross-profit-calculator-popup .dialog-content-wrapper .mat-dialog-content form fieldset{padding:12px!important}.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper{animation-name:slideInLeft;animation-iteration-count:1;animation-duration:1s;animation-delay:0s;animation-timing-function:ease;animation-fill-mode:both;backface-visibility:hidden;position:fixed;top:0;left:calc(50% - 625px);height:100vh;width:300px}@media screen and (max-width: 599px){.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper{all:unset}}.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper{height:auto;width:300px;background:#ffffff;box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f;border-radius:4px}@media screen and (max-width: 599px){.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper{width:100%}}.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper mat-toolbar{background:#f2f2f2;border-top-left-radius:4px;border-top-right-radius:4px}.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper .detail-info{height:calc(85vh - 66px)!important;overflow:auto}@media screen and (max-width: 599px){.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper .detail-info{height:calc(85vh - 175px)!important;overflow-y:auto}}.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper .detail-info .grossProfit-group{width:100%}@media screen and (max-width: 599px){.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper .detail-info .grossProfit-group{width:100%}}.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper .detail-info .grossProfit-group fieldset{width:100%;min-width:100%}.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper .detail-info .mat-form-field.mr-18{margin-right:18px}.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper .detail-info .mat-form-field.mat-form-field-disabled .mat-form-field-flex .mat-form-field-outline{background:#eee}.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper .detail-info .mat-form-field .mat-form-field-infix{padding:12px 0!important;border-top:none}.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper .detail-info .mat-form-field .mat-form-field-infix input{text-align:right}.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper .detail-info .mat-form-field .mat-form-field-infix input::-webkit-outer-spin-button,.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper .detail-info .mat-form-field .mat-form-field-infix input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper .detail-info .mat-form-field .mat-form-field-wrapper{padding-bottom:8px!important}.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper .detail-info zen-select .mat-form-field.mat-focused .mat-form-field-infix .mat-chip-list-wrapper{border:2px solid #000000}.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper .detail-info zen-select .mat-form-field .mat-form-field-infix .mat-chip-list-wrapper{border:1px solid #dbdbdb;height:36px}.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper .detail-info zen-select .mat-form-field .mat-form-field-infix .mat-chip-list-wrapper input{text-align:left}.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper .detail-info zen-select .mat-form-field .mat-form-field-infix .mat-chip-list-wrapper #zs-clear-btn{top:0}.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper .detail-info zen-select .mat-form-field .mat-form-field-infix .mat-chip-list-wrapper #zs-clear-btn .mat-button-focus-overlay{background:none}.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper .detail-info zen-select .mat-form-field .mat-form-field-underline{background:none}.gross-profit-calculator-popup .dialog-content-wrapper .gross-profit-detail-slide-view-wrapper .gross-profit-details-wrapper .detail-info .burden-types mat-chip.mat-standard-chip{min-height:20px!important;justify-content:center;background-color:#e0e0e0;color:#000000de}\n"],encapsulation:2})}return re})()},65563:(he,y,i)=>{"use strict";i.d(y,{Q:()=>M});var e=i(60682),n=i(81274),o=i(12430),a=i(45754),l=i(26177),u=i(84187),d=i(30617),s=i(42400),A=i(21242),_=i(30481),C=i(64259),R=i(96814),x=i(13868),f=i(20180),k=i(89515),w=i(34423),g=i(65879);let M=(()=>{class p{static#e=this.\u0275fac=function(I){return new(I||p)};static#t=this.\u0275mod=g.oAB({type:p});static#n=this.\u0275inj=g.cJS({providers:[C.Y],imports:[R.ez,s.x4,o.L,n.g0,d.Ps,e.X,x.g,u.wp,n.g0,_.AA,f.L,k.aw,a.Zh,w._t,A.Xo,l.yD]})}return p})()},64259:(he,y,i)=>{"use strict";i.d(y,{Y:()=>n});var e=i(65879);let n=(()=>{class o{constructor(){}static#e=this.\u0275fac=function(u){return new(u||o)};static#t=this.\u0275prov=e.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},28817:(he,y,i)=>{"use strict";i.d(y,{A:()=>w});var e=i(66878),n=i(65879),o=i(94505),a=i(81274),l=i(30617),u=i(96814),d=i(83814),s=i(27509),A=i(67107),_=i(89515);function C(g,M){if(1&g&&(n.TgZ(0,"mat-toolbar",9)(1,"mat-toolbar-row",10)(2,"span",11),n._uU(3),n.qZA()()()),2&g){const p=n.oxw();n.xp6(3),n.Oqu(p.info.header)}}function R(g,M){1&g&&(n.TgZ(0,"mat-icon",12),n._uU(1,"info"),n.qZA())}function x(g,M){1&g&&(n.TgZ(0,"p",13),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&g&&(n.xp6(1),n.hij("",n.lcZ(2,1,"registrationCountdownMessage")," "))}function f(g,M){if(1&g&&(n.TgZ(0,"div",14)(1,"div",15),n._uU(2),n.qZA(),n._UZ(3,"round-progress",16),n.qZA()),2&g){const p=n.oxw();n.xp6(1),n.Q6J("ngStyle",p.getOverlayStyle()),n.xp6(1),n.Oqu(p.countDown),n.xp6(1),n.Q6J("current",p.countDown)("max",p.maxCountdownCount)("radius",p.countdownRadius)}}function k(g,M){1&g&&(n.TgZ(0,"div",17)(1,"button",18),n._uU(2,"OK"),n.qZA()())}let w=(()=>{class g{constructor(p,E){this.dialogRef=p,this.info=E,this.countdownRadius=50,p.disableClose=!0,null==E.showOkButton&&(E.showOkButton=!0),this.countDown=E.timeOut?E.timeOut:0,this.maxCountdownCount=E.timeOut?E.timeOut:0}ngOnInit(){if(this.info.timeOut){const p=setInterval(()=>{this.countDown--,0==this.countDown&&(clearInterval(p),this.dialogRef.close())},1e3)}}getOverlayStyle(){let p="translateY(-50%) translateX(-50%)";return{top:"50%",bottom:"auto",left:"50%",transform:p,"-moz-transform":p,"-webkit-transform":p,"font-size":this.countdownRadius/3.5+"px"}}static#e=this.\u0275fac=function(E){return new(E||g)(n.Y36(e.hV),n.Y36(e.eJ))};static#t=this.\u0275cmp=n.Xpm({type:g,selectors:[["zen-information-dialog"]],decls:10,vars:6,consts:[[1,"dialog-content-wrapper"],["class","mat-accent m-0",4,"ngIf"],["mat-dialog-content","",1,"p-24","m-0"],["fxLayout","row","fxLayoutAlign","start center"],["class","font-size-24 blue-fg mr-8",4,"ngIf"],[1,"applicant-credentials","m-0",3,"innerHTML"],["class","blue-fg",4,"ngIf"],["class","progress-wrapper",4,"ngIf"],["mat-dialog-actions","","class","m-0 p-16","fxLayout","row","fxLayoutAlign","end center",4,"ngIf"],[1,"mat-accent","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","space-between center"],[1,"title","dialog-title"],[1,"font-size-24","blue-fg","mr-8"],[1,"blue-fg"],[1,"progress-wrapper"],[1,"current",3,"ngStyle"],[3,"current","max","radius"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","end center",1,"m-0","p-16"],["mat-raised-button","","mat-dialog-close","",1,"accent"]],template:function(E,b){1&E&&(n.TgZ(0,"div",0),n.YNc(1,C,4,1,"mat-toolbar",1),n.TgZ(2,"div",2)(3,"div",3),n.YNc(4,R,2,0,"mat-icon",4),n._UZ(5,"p",5),n.qZA(),n.YNc(6,x,3,3,"p",6),n._UZ(7,"p"),n.YNc(8,f,4,5,"div",7),n.qZA(),n.YNc(9,k,3,0,"div",8),n.qZA()),2&E&&(n.xp6(1),n.Q6J("ngIf",b.info.header),n.xp6(3),n.Q6J("ngIf",b.info.showInfoIcon),n.xp6(1),n.Q6J("innerHTML",b.info.message,n.oJD),n.xp6(1),n.Q6J("ngIf",b.info.timeOut),n.xp6(2),n.Q6J("ngIf",b.info.timeOut),n.xp6(1),n.Q6J("ngIf",b.info.showOkButton))},dependencies:[e.aO,e.Rb,e.ev,o.eB,a.Ye,a.rD,l.Hw,u.O5,u.PC,d.xw,d.Wh,d.yH,s.Zl,A.Z$,_.X$],styles:[".confirm-dialog-popup .mat-dialog-container{padding:0}.confirm-dialog-popup .mat-dialog-container .compose-form .mat-form-field{width:100%}.confirm-dialog-popup .dialog-content-wrapper{width:600px;max-height:85vh;display:flex;flex-direction:column}@media screen and (max-width: 599px){.confirm-dialog-popup .dialog-content-wrapper{width:100%}}.confirm-dialog-popup .dialog-content-wrapper zen-stepper{height:auto;padding-bottom:60px}.applicant-register-popup .dialog-content-wrapper{width:600px;max-height:85vh;display:flex;flex-direction:column;box-shadow:inset 0 0 0 7px #026fa3;position:relative}@media screen and (max-width: 599px){.applicant-register-popup .dialog-content-wrapper{width:100%;padding-bottom:10px;max-height:inherit}.applicant-register-popup .dialog-content-wrapper .mat-dialog-content{max-height:inherit}.applicant-register-popup .dialog-content-wrapper h4{text-align:justify}}.applicant-register-popup .dialog-content-wrapper .applicant-credentials .pl-4 p{word-break:break-all}.progress-wrapper{position:absolute;margin:20px auto;font-size:40px;display:table;right:20px;bottom:0;z-index:5}@media screen and (max-width: 599px){.progress-wrapper{right:15px;bottom:13px;margin:0}}.current{position:absolute;color:#bbb;font-weight:100;line-height:1}round-progress{margin:auto}@media screen and (max-width: 599px){round-progress{width:50px!important;height:50px!important}}.initiate-rehire-popup .mat-dialog-actions,.resend-email-popup .mat-dialog-actions{flex-direction:row;display:flex;align-content:center flex-end;background:#ffffff}\n"],encapsulation:2})}return g})()},51233:(he,y,i)=>{"use strict";i.d(y,{O:()=>_});var e=i(89515),n=i(94505),o=i(66878),a=i(30617),l=i(81274),u=i(96814),d=i(20180),s=i(67107),A=i(65879);let _=(()=>{class C{static#e=this.\u0275fac=function(f){return new(f||C)};static#t=this.\u0275mod=A.oAB({type:C});static#n=this.\u0275inj=A.cJS({imports:[o.yj,n.yu,l.g0,a.Ps,u.ez,d.L,s.y,e.aw]})}return C})()},37525:(he,y,i)=>{"use strict";i.d(y,{d:()=>s});var e=i(7110),n=i(78645),o=i(59773),a=i(65879),l=i(6738),u=i(69862),d=i(74187);let s=(()=>{class A{constructor(C,R,x){this.ws=C,this.httpClient=R,this.utilityService=x,this._unsubscribeAll=new n.x,this._ars=e.XL.settings.apiUrl+"Assignment/"}ngOnInit(){}getAssignmentRate(C){return this.ws.get(this._ars+"AssignmentRate",{json:JSON.stringify(C)})}insertAssignmentRate(C){return this.ws.post(this._ars+"AssignmentRate",{json:JSON.stringify(C)},null,null,!1)}updateAssignmentRate(C){return this.ws.post(this._ars+"UpdateAssignmentRate",{json:JSON.stringify(C)},null,null,!1)}CopyAssignmentRateToTransaction(C){return this.ws.post(this._ars+"CopyAssignmentRateToTransaction",{json:JSON.stringify(C)})}confirmUpdateTransaction(C){this.utilityService.openConfirmDialog({headerText:"ratesChanged",confirmationText:"copyAssigmentRateInTransaction"}),this.utilityService.confirmDialogAction.pipe((0,o.R)(this._unsubscribeAll)).subscribe(x=>{x&&("yes"===x&&this.CopyAssignmentRateToTransaction(C).subscribe(f=>{f&&this.utilityService.callSnackBar("transactionRatesUpdated","success")}),this.utilityService.closeConfirmDialog())})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(R){return new(R||A)(a.LFG(l.f),a.LFG(u.eN),a.LFG(d.t))};static#t=this.\u0275prov=a.Yz7({token:A,factory:A.\u0275fac})}return A})()},19167:(he,y,i)=>{"use strict";i.d(y,{t:()=>O});var e=i(20180),n=i(89515),o=i(94505),a=i(45754),l=i(26177),u=i(84187),d=i(30617),s=i(42400),A=i(48979),_=i(86352),C=i(12430),R=i(90620),x=i(27105),f=i(87411),k=i(77171),w=i(53790),g=i(21242),M=i(38034),p=i(83991),E=i(32651),b=i(32333),I=i(47805),L=i(51838),D=i(58869),F=i(39523),P=i(65879);let O=(()=>{class U{static#e=this.\u0275fac=function(X){return new(X||U)};static#t=this.\u0275mod=P.oAB({type:U});static#n=this.\u0275inj=P.cJS({imports:[e.L,x.W,n.aw,d.Ps,o.yu,u.wp,s.x4,l.yD,a.Zh,f.L,k.y,w.u,A.i,_.K,C.L,R.X,g.Xo,M.FA,p.D,E.SJ,b.Nn,L.Wd,I.x,D.e,F.O]})}return U})()},96704:(he,y,i)=>{"use strict";i.d(y,{h:()=>re});var e=i(56223),n=i(78645),o=i(22096),a=i(83620),l=i(59773),u=i(68658),d=i(34938),s=i(65879),A=i(710),_=i(74187),C=i(28011),R=i(49155),x=i(61371),f=i(66878),k=i(96814),w=i(83814),g=i(27509),M=i(56263),p=i(84187),E=i(42400),b=i(82012),I=i(38034),L=i(65139),D=i(89515);const F=["formElement"],P=function(){return["organization","department","office","status"]};function O(de,te){if(1&de){const j=s.EpF();s.ynx(0,11),s.TgZ(1,"zen-select",47),s.NdJ("selectEvent",function(z){s.CHM(j);const q=s.oxw();return s.KtG(q.setOrganization(z))})("fetch",function(z){s.CHM(j);const q=s.oxw();return s.KtG(q.getCustomers(z))})("ngModelChange",function(z){s.CHM(j);const q=s.oxw();return s.KtG(q.model.organizationId=z)})("onAutoSelect",function(z){s.CHM(j);const q=s.oxw();return s.KtG(q.setValue(z,"organizationId"))}),s.qZA(),s.BQk()}if(2&de){const j=s.oxw();s.Q6J("ngModelGroup",j.model.jobId),s.xp6(1),s.Q6J("placeholder","searchOrganization")("columns",s.DdM(6,P))("ngModel",j.model.organizationId)("data",j.customers)("disabled",j.disableCustomer)}}const U=function(){return{standalone:!0}};function V(de,te){if(1&de){const j=s.EpF();s.TgZ(0,"mat-form-field",9)(1,"input",48),s.NdJ("ngModelChange",function(z){s.CHM(j);const q=s.oxw();return s.KtG(q.model.organization=z)}),s.ALo(2,"translate"),s.qZA()()}if(2&de){const j=s.oxw();s.xp6(1),s.s9C("placeholder",s.lcZ(2,3,"organization")),s.Q6J("ngModel",j.model.organization)("ngModelOptions",s.DdM(5,U))}}const K=function(){return["resource"]};function X(de,te){if(1&de){const j=s.EpF();s.TgZ(0,"div",6),s.ynx(1,11),s.TgZ(2,"zen-select",49),s.NdJ("ngModelChange",function(z){s.CHM(j);const q=s.oxw();return s.KtG(q.model.statusListItemId=z)})("onAutoSelect",function(z){s.CHM(j);const q=s.oxw();return s.KtG(q.setValue(z,"statusListItemId"))}),s.qZA(),s.BQk(),s.qZA()}if(2&de){const j=s.oxw();s.Q6J("ngModelGroup","Job"),s.xp6(1),s.Q6J("ngModelGroup",j.model.jobId),s.xp6(1),s.Q6J("ngModel",j.model.statusListItemId)("placeholder","status")("data",j.statuses)("columns",s.DdM(7,K))("disabled",!j.allowStatusEdit)}}const me=function(){return["office"]},J=function(){return["address1","address2","city","state","zipCode","addressType","note"]},Q=function(){return["name","office","title"]};let re=(()=>{class de{constructor(j,H,z,q,se,ne){this.cs=j,this.us=H,this.eds=z,this.js=q,this.ps=se,this.dialog=ne,this.hasLoadMore=!0,this.loadMore=!1,this.styleClass="formOfJob",this.model={},this.currentParams={officeId:0,organizationId:0},this.stateId=0,this.disableCustomer=!1,this.jocc=0,this.maximumRateInputChanged=new n.x,this.directory="DirectHireJob",this.defaultDecimalPlace=2,this.allowStatusEdit=!0,this.defaultOfficeCopyFromValue="",this._unsubscribeAll=new n.x}ngOnInit(){this.officeStaffOrganizationId=JSON.parse(sessionStorage.getItem("headerParams")).organizationId,this.officeStaffOfficeId=JSON.parse(sessionStorage.getItem("headerParams")).officeId,this.getDefaultOfficeCopyFromProperty(),this.entityDetailServiceData=this.eds.getCurrentEntityDetail(),this.formType=this.data.action.toLowerCase(),"edit"===this.formType||"copy"===this.formType?(this.model=this.sharedData.job,this.previousStatusListItemId=this.model.statusListItemId,this.getOffices(this.sharedData.job.organizationId),this.getContact(this.sharedData.job.organizationId)):"add"===this.formType&&(this.model={},this.data.customerData&&(this.model.organizationId=this.data.customerData.gridDataItem.organizationId,this.model.organization=this.data.customerData.gridDataItem.organization,this.model.department=this.data.customerData.gridDataItem.department,this.customers=[{organization:this.model.organization,organizationId:this.model.organizationId,department:this.model.department,officeId:this.data.customerData.gridDataItem.officeId,office:this.data.customerData.gridDataItem.office,status:null}],this.disableCustomer=!0)),this.maximumRateInputChanged.pipe((0,a.b)(1500)).subscribe(()=>{this.checkValidationForRate()}),this.getStatusAccess()}activate(){}getDefaultOfficeCopyFromProperty(){this.cs.optionPropertyValue("Job","DefaultOfficeCopyFrom","Organization",this.officeStaffOrganizationId).pipe((0,l.R)(this._unsubscribeAll)).subscribe(j=>{j.value&&(this.defaultOfficeCopyFromValue=j.value?.toLowerCase())})}setDefaultOffice(){if("office staff"==this.defaultOfficeCopyFromValue)-1!=this.offices?.map(function(j){return j.officeId})?.indexOf(this.officeStaffOfficeId)&&(this.model.officeId=this.officeStaffOfficeId);else if("organization"==this.defaultOfficeCopyFromValue){const j=this.customers?.find(H=>H.organizationId==this.model.organizationId)?.officeId;-1!=this.offices?.map(function(H){return H.officeId})?.indexOf(j)&&(this.model.officeId=j)}}getStatusAccess(){this.cs.tfOptionSelect(this.js.directory,"DontAllowStatusChange","Person",parseInt(this.us.getTokenValueByKey("personId").toString())).pipe((0,l.R)(this._unsubscribeAll)).subscribe(j=>{var z=j[0]?.optionValue?.split(",");this.allowStatusEdit=!z?.includes(this.model.statusListItemId?.toString())})}verifyEndDate(j,H){const z=new Date(j),q=new Date(H);(""==j&&""!=H||z>q)&&this.jobForm.form.controls.Job.controls[this.model.jobId].controls.endDate.setErrors({incorrect:!0})}validate(){return this.checkValidationForRate(),this.isValid&&this.checkValidationForValue(),this.jobForm.invalid?(this.us.callSnackBar(this.jobForm.form.controls.Job.controls[this.model.jobId].controls.endDate.errors?.incorrect?"End Date must be greater or equal to Start Date":"Please fill out all the required fields.","warning"),this.loadMore=!0,(0,o.of)(!1)):(0,o.of)(!!this.isValid)}save(){return new Promise(j=>{this.formType.toLowerCase();const z={exceptionJson:{entityId:"edit"===this.formType.toLowerCase()?this.model.jobId:this.model.organizationId,organizationId:this.model.organizationId,data:{toUpdateIds:[this.model.jobId?this.model.jobId:0],statusListItemId:this.model.statusListItemId,formDetail:this.model},organizationAddressId:this.model.organizationAddressId,otPlanId:this.model.oTPlanId,entity:this.directory,relatedEntityId:this.model.organizationId,entityOfficeId:this.model.officeId,exceptionStage:"edit"===this.formType.toLowerCase()?"EditJob":"NewTempJob"},dialogLoadType:u.Z.continuous};return this.previousStatusListItemId!=this.model.statusListItemId&&this.model.assigned>0&&(z.exceptionJson.statusListItemId=this.model.statusListItemId),this.exceptionTask(z).then(q=>{if(q){if("edit"==this.formType){const se=this.us.getDirtyValues(this.jobForm);return this.js.updateJob({dv:se,jobId:this.model.jobId}).pipe((0,l.R)(this._unsubscribeAll)).subscribe(_e=>{this.sharedData.edited=!0,this.us.callSnackBar("jobUpdated","success"),se&&JSON.stringify(se).includes("contactId")&&this.cs.onJobUpdated.next({entity:"job",value:this.model}),j(!0)})}if("add"===this.formType||"copy"===this.formType){if(this.standAlone)return this.js.createJob(this.model).pipe((0,l.R)(this._unsubscribeAll)).subscribe(se=>{se&&se.directory&&se.directory.data[0].jobId>0&&(this.sharedData.jobDetail=se,this.sharedData.job=se.directory.data[0],this.sharedData.entity=this.directory,this.sharedData.entityId=this.sharedData.job.jobId,this.cs.onJobUpdated.next({entity:"job",value:this.model}),j(!0)),j(!1)});this.sharedData.jobForm=this.model,j(!0)}j(!0)}else j(!1)})})}exceptionTask(j){return new Promise(H=>{this.cs.exceptionProcessWithPost(JSON.stringify(j.exceptionJson)).pipe((0,l.R)(this._unsubscribeAll)).subscribe(z=>{z?z&&Object.keys(z).length>0&&null!=z.data?(j.exceptionData=z,this.openExceptionDialog(j).subscribe(q=>{H(q)})):z&&z.hasOwnProperty("error")?(this.us.callSnackBar("errorInException","error"),H(!1)):H("noException"):(this.us.callSnackBar("errorInException","error"),H(!1))})})}openExceptionDialog(j){const H=new n.x;return this.dialog.open(d.x,{data:j,panelClass:"exception-dialog",disableClose:!0}).afterClosed().subscribe(q=>H.next(q)),H.asObservable()}stepperClose(){return{response:this.us.isFormDirty(this.jobForm)}}getCustomers(j){this.cs.directHireJobOrganization({searchText:j}).pipe((0,l.R)(this._unsubscribeAll)).subscribe(H=>{this.customers=H,"copy"===this.formType&&(this.model.organizationId=this.sharedData.job.organizationId)})}getOffices(j){this.cs.getOfficeList({organizationId:j,entity:"Customer"}).pipe((0,l.R)(this._unsubscribeAll)).subscribe(H=>{this.offices=H,"add"==this.formType.toLowerCase()&&(this.offices?this.setDefaultOffice():this.model.officeId=void 0)})}setOrganization(j){this.data.customerData?(this.getContact(this.data.customerData.gridDataItem.organizationId),this.getOffices(this.data.customerData.gridDataItem.organizationId)):(j=j[0],this.model.department=j?.department,this.getOffices(j?.organizationId),this.getContact(j?.organizationId)),"organization"==this.defaultOfficeCopyFromValue&&"add"==this.formType.toLowerCase()&&this.setDefaultOffice()}getContact(j){this.ps.getContactPerson({organizationId:j,showActiveOnly:!0,contactPersonId:this.model.contactId}).pipe((0,l.R)(this._unsubscribeAll)).subscribe(z=>{this.contactList=z})}setOffice(j){!j||0===j.length||(this.model.officeId=(j=j[0]).officeId,this.getJobOption())}setJobRateType(j){this.currentJobRateType=j[0].listItem}setOrganizationAddress(j){(j=j[0])?(this.stateId!=j.stateId&&(this.stateId=j.stateId),"add"==this.formType.toLowerCase()&&this.setCurrencyByCountry(j.countryCode)):this.stateId=0}setCurrencyByCountry(j){if(!this.currencies)return;let H="usd";switch(j.toLowerCase()){case"us":H="usd";break;case"ca":H="cad"}this.model.currencyListItemId=this.currencies.find(z=>z.listItem.toLowerCase()==H).listItemId}setValue(j,H){this.model[H]=j}getJobOption(){this.model.officeId>0&&this.model.organizationId>0&&this.newParams(this.model)&&(this.currentParams={officeId:this.model.officeId,organizationId:this.model.organizationId},this.js.jobOption({organizationId:this.model.organizationId,officeId:this.model.officeId,stateId:this.stateId,option:this.directory,entity:"Customer",callFrom:"dhJobForm"}).pipe((0,l.R)(this._unsubscribeAll)).subscribe(j=>{this.jocc++,this.addresses=j.organizationAddress?j.organizationAddress:[],this.statuses=j.status?j.status:[],this.currencies=j.currency?j.currency:[],this.model.skillId=j.skillId,this.model.jobCandidateWorkflowId=j.jobCandidateWorkflowId,this.workflows=j.workflow?j.workflow:[],this.workflow=this.workflows[0],this.workflow&&(this.model.workflowId=this.workflow.workflowId,this.model.workflowStageId=this.workflow.workflowStage[0].workflowStageId),this.jobRateTypes=j.jobRateType?j.jobRateType:[],this.feeTypes=j.feeType?j.feeType:[],this.priorities=j.priority?j.priority:[],this.sources=j.source?j.source:[]}))}newParams(j){return this.currentParams.officeId!=j.officeId||this.currentParams.organizationId!=j.organizationId}getSelectedListItem(j){const H=j.find(z=>1==z.selected);if(H)return H.listItemId}updateSelectedOffice(j){const H=[...this.offices];return H.map(z=>{z.selected=z.officeId==j}),H}rateInputChangedEvent(j){this.maximumRateInputChanged.next(j.target.value)}checkValidationForRate(){this.isValid=!1,this.model.minimum>=0&&this.model.maximum>=0&&(this.model.maximum>=this.model.minimum?this.isValid=!0:this.us.callSnackBar("maximumRateShouldBeGreaterThanMinimumRate","warning"))}checkValidationForValue(){this.isValid=!1,"percent"==this.feeTypes.find(j=>j.listItemId==this.model.feeTypeListItemId).listItem.toLowerCase()&&this.model.value>100?this.us.callSnackBar("valueShouldNotBeMoreThan100WhenFeeTypeIsSetToPercent","warning"):(this.model.value=this.model.value?Number(this.model.value.toFixed(this.defaultDecimalPlace)):this.model.value,this.isValid=!0)}minimumBlur(){this.model.minimum=this.model.minimum?Number(this.model.minimum.toFixed(this.defaultDecimalPlace)):this.model.minimum}maximumBlur(){this.model.maximum=this.model.maximum?Number(this.model.maximum.toFixed(this.defaultDecimalPlace)):this.model.maximum}submitJobForm(j){if(console.log("JOB FORM DATA",this.model),"add"===this.data.action)this.js.job(this.model).pipe((0,l.R)(this._unsubscribeAll)).subscribe(H=>{});else{const H=this.us.getDirtyValues(j);this.cs.dynamicUpdate(H).pipe((0,l.R)(this._unsubscribeAll)).subscribe(z=>{})}}closeForm(j){this.us.isFormDirty(j)&&this.confirmation()}confirmation(){this.us.openConfirmDialog({headerText:"Pending Changes",confirmationText:"Are you sure you want to discard changes?"}),this.us.confirmDialogAction.pipe((0,l.R)(this._unsubscribeAll)).subscribe(H=>{"yes"==H&&this.us.closeConfirmDialog()})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(H){return new(H||de)(s.Y36(A.v),s.Y36(_.t),s.Y36(C.a),s.Y36(R.O),s.Y36(x.R),s.Y36(f.on))};static#t=this.\u0275cmp=s.Xpm({type:de,selectors:[["zen-direct-hire-job-form"]],viewQuery:function(H,z){if(1&H&&(s.Gf(e.F,7),s.Gf(F,7)),2&H){let q;s.iGM(q=s.CRH())&&(z.jobForm=q.first),s.iGM(q=s.CRH())&&(z.formElement=q.first)}},inputs:{data:"data"},decls:113,vars:130,consts:[["id","jobForm","name","jobForm","autocomplete","off"],["jobForm","ngForm","formElement",""],["fxLayout","row wrap","fxFlex","100"],["fxLayout","column",1,"mb-12","zenauto-job","w-100-p"],[1,"m-0","p-0"],["fxLayout","row wrap","fxLayout.xs","column","fxLayoutGap","12px","fxLayoutGap.xs","12px"],["fxFlex","",3,"ngModelGroup"],[3,"ngModelGroup",4,"ngIf"],["class","w-100-p",4,"ngIf"],[1,"w-100-p"],["matInput","","name","department","disabled","","type","text","required","",3,"ngModel","ngModelGroup","placeholder","ngModelChange"],[3,"ngModelGroup"],["nameField","office","valueField","officeId","name","officeId","required","",1,"no-padding-head","chip-black",3,"columns","ngModel","placeholder","data","selectEvent","ngModelChange","onAutoSelect"],["fxFlex","",3,"ngModelGroup",4,"ngIf"],["name","organizationAddressId","nameField","address1","valueField","organizationAddressId","panelClass","custom-dropdown direct-hire","required","",1,"no-padding-head","chip-black",3,"ngModel","columns","data","placeholder","ngModelChange","onAutoSelect","selectEvent"],[1,"w-100-p",3,"ngModelGroup"],["matInput","","name","jobTitle","type","text","required","",3,"ngModel","placeholder","ngModelChange"],["nameField","name","valueField","personId","name","contactId","panelClass","zen-select-md","required","",1,"no-padding-head","chip-black",3,"ngModel","placeholder","data","columns","ngModelChange","onAutoSelect"],["fxLayout","column",1,"mb-12","zenauto-rate-fees","w-100-p"],["matInput","","step","1","oninput","validity.valid||(value='');","name","required","required","","type","number",3,"ngModel","zen-validator","min","placeholder","ngModelChange"],["name","jobRateTypeListItemId","nameField","resource","valueField","listItemId","required","",1,"no-padding-head","chip-black",3,"ngModel","placeholder","columns","emitDefaultSelection","data","ngModelChange","selectEvent","onAutoSelect"],["matInput","","zen-validator","directHireJob.minimum","name","minimum","required","","type","number",3,"ngModel","min","placeholder","ngModelChange","keyup","blur"],["matInput","","zen-validator","directHireJob.maximum","name","maximum","required","","type","number",3,"ngModel","min","placeholder","ngModelChange","keyup","blur"],["nameField","resource","valueField","listItemId","name","feeTypeListItemId","required","",1,"no-padding-head","chip-black",3,"ngModel","placeholder","columns","data","ngModelChange","selectEvent","onAutoSelect"],["matInput","","zen-validator","directHireJob.value","name","value","required","","type","number",3,"ngModel","min","placeholder","ngModelChange","blur"],["nameField","resource","valueField","listItemId","name","priorityListItemId","required","",1,"no-padding-head","chip-black",3,"ngModel","placeholder","columns","data","ngModelChange","onAutoSelect"],["matInput","","name","startDate","zen-validator","job.startDate",1,"overflow-hidden",3,"placeholder","ngModel","matDatepicker","max","ngModelChange","blur"],["startDateRef",""],["matSuffix","",3,"for"],[3,"closed"],["picker1",""],["matInput","","name","endDate","zen-validator","job.endDate",1,"overflow-hidden",3,"placeholder","ngModel","matDatepicker","min","ngModelChange","blur"],["endDateRef",""],["picker",""],["fxLayout","column",1,"mb-12","zenauto-description","w-100-p"],["fxLayout","column","fxFlex","100","fxFlex.gt-xs","100","fxFlex.gt-md","100"],["fxFlex","",1,"mr-sm-24",3,"ngModelGroup"],["matInput","","name","description","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","10",3,"ngModel","placeholder","ngModelChange"],["desc",""],["matInput","","maxlength","4000","name","note","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","10",3,"ngModel","placeholder","ngModelChange"],["note",""],["align","end"],["fxLayout","column",1,"mb-12","w-100-p","zenauto-options",3,"fxShow"],["fxFlex","",3,"ngModelGroup","fxShow"],["nameField","resource","valueField","listItemId","name","sourceListItemId",1,"no-padding-head","chip-black",3,"ngModel","placeholder","columns","data","ngModelChange","onAutoSelect"],["nameField","resource","valueField","listItemId","name","currencyListItemId","required","",1,"no-padding-head","chip-black",3,"ngModel","placeholder","columns","data","ngModelChange","onAutoSelect"],["fxHide","","type","submit"],["nameField","organization","valueField","organizationId","name","organizationId","panelClass","zen-select-lg","required","",1,"no-padding-head","chip-black",3,"placeholder","columns","ngModel","data","disabled","selectEvent","fetch","ngModelChange","onAutoSelect"],["matInput","","disabled","","type","text",3,"ngModel","ngModelOptions","placeholder","ngModelChange"],["nameField","resource","valueField","listItemId","name","statusListItemId","required","",1,"no-padding-head","chip-black",3,"ngModel","placeholder","data","columns","disabled","ngModelChange","onAutoSelect"]],template:function(H,z){if(1&H){const q=s.EpF();s.TgZ(0,"form",0,1)(3,"div")(4,"div",2)(5,"fieldset",3)(6,"legend")(7,"p",4),s._uU(8,"Job "),s.qZA()(),s.TgZ(9,"div",5)(10,"div",6),s.YNc(11,O,2,7,"ng-container",7),s.YNc(12,V,3,6,"mat-form-field",8),s.qZA(),s.TgZ(13,"div",6)(14,"mat-form-field",9)(15,"input",10),s.NdJ("ngModelChange",function(ne){return z.model.department=ne}),s.ALo(16,"translate"),s.qZA()()(),s.TgZ(17,"div",6),s.ynx(18,11),s.TgZ(19,"zen-select",12),s.NdJ("selectEvent",function(ne){return z.setOffice(ne)})("ngModelChange",function(ne){return z.model.officeId=ne})("onAutoSelect",function(ne){return z.setValue(ne,"officeId")}),s.qZA(),s.BQk(),s.qZA(),s.YNc(20,X,3,8,"div",13),s.qZA(),s.TgZ(21,"div",5)(22,"div",6),s.ynx(23,11),s.TgZ(24,"zen-select",14),s.NdJ("ngModelChange",function(ne){return z.model.organizationAddressId=ne})("onAutoSelect",function(ne){return z.setValue(ne,"organizationAddressId")})("selectEvent",function(ne){return z.setOrganizationAddress(ne)}),s.qZA(),s.BQk(),s.qZA(),s.TgZ(25,"div",6)(26,"mat-form-field",15)(27,"input",16),s.NdJ("ngModelChange",function(ne){return z.model.jobTitle=ne}),s.ALo(28,"translate"),s.qZA()()(),s.TgZ(29,"div",6),s.ynx(30,11),s.TgZ(31,"zen-select",17),s.NdJ("ngModelChange",function(ne){return z.model.contactId=ne})("onAutoSelect",function(ne){return z.setValue(ne,"contactId")}),s.qZA(),s.BQk(),s.qZA()()(),s.TgZ(32,"fieldset",18)(33,"legend")(34,"p",4),s._uU(35,"Rates and Fee"),s.qZA()(),s.TgZ(36,"div",5),s.ynx(37,11),s.TgZ(38,"div",6)(39,"mat-form-field",9)(40,"input",19),s.NdJ("ngModelChange",function(ne){return z.model.required=ne}),s.ALo(41,"translate"),s.qZA()()(),s.BQk(),s.ynx(42,11),s.TgZ(43,"div",6)(44,"zen-select",20),s.NdJ("ngModelChange",function(ne){return z.model.jobRateTypeListItemId=ne})("selectEvent",function(ne){return z.setJobRateType(ne)})("onAutoSelect",function(ne){return z.setValue(ne,"jobRateTypeListItemId")}),s.qZA()(),s.TgZ(45,"div",6)(46,"mat-form-field",9)(47,"input",21),s.NdJ("ngModelChange",function(ne){return z.model.minimum=ne})("keyup",function(ne){return z.rateInputChangedEvent(ne)})("blur",function(){return z.minimumBlur()}),s.ALo(48,"translate"),s.qZA()()(),s.TgZ(49,"div",6)(50,"mat-form-field",9)(51,"input",22),s.NdJ("ngModelChange",function(ne){return z.model.maximum=ne})("keyup",function(ne){return z.rateInputChangedEvent(ne)})("blur",function(){return z.maximumBlur()}),s.ALo(52,"translate"),s.qZA()()(),s.BQk(),s.qZA(),s.ynx(53,11),s.TgZ(54,"div",5)(55,"div",6)(56,"zen-select",23),s.NdJ("ngModelChange",function(ne){return z.model.feeTypeListItemId=ne})("selectEvent",function(){return z.checkValidationForValue()})("onAutoSelect",function(ne){return z.setValue(ne,"feeTypeListItemId")}),s.qZA()(),s.TgZ(57,"div",6)(58,"mat-form-field",9)(59,"input",24),s.NdJ("ngModelChange",function(ne){return z.model.value=ne})("blur",function(){return z.checkValidationForValue()}),s.ALo(60,"translate"),s.qZA()()(),s.TgZ(61,"div",6)(62,"zen-select",25),s.NdJ("ngModelChange",function(ne){return z.model.priorityListItemId=ne})("onAutoSelect",function(ne){return z.setValue(ne,"priorityListItemId")}),s.qZA()()(),s.BQk(),s.ynx(63,11),s.TgZ(64,"div",5)(65,"div",6)(66,"mat-form-field",9)(67,"input",26,27),s.NdJ("ngModelChange",function(ne){return z.model.startDate=ne})("blur",function(){s.CHM(q);const ne=s.MAs(68),_e=s.MAs(76);return s.KtG(z.verifyEndDate(ne.value,_e.value))}),s.ALo(69,"translate"),s.qZA(),s._UZ(70,"mat-datepicker-toggle",28),s.TgZ(71,"mat-datepicker",29,30),s.NdJ("closed",function(){s.CHM(q);const ne=s.MAs(68),_e=s.MAs(76);return s.KtG(z.verifyEndDate(ne.value,_e.value))}),s.qZA()()(),s.TgZ(73,"div",6)(74,"mat-form-field",9)(75,"input",31,32),s.NdJ("ngModelChange",function(ne){return z.model.endDate=ne})("blur",function(){s.CHM(q);const ne=s.MAs(68),_e=s.MAs(76);return s.KtG(z.verifyEndDate(ne.value,_e.value))}),s.ALo(77,"translate"),s.qZA(),s._UZ(78,"mat-datepicker-toggle",28),s.TgZ(79,"mat-datepicker",29,33),s.NdJ("closed",function(){s.CHM(q);const ne=s.MAs(68),_e=s.MAs(76);return s.KtG(z.verifyEndDate(ne.value,_e.value))}),s.qZA()()()(),s.BQk(),s.qZA(),s.TgZ(81,"fieldset",34)(82,"legend")(83,"p",4),s._uU(84,"Description "),s.qZA()(),s.TgZ(85,"div",2),s.ynx(86,11),s.TgZ(87,"div",35)(88,"mat-form-field",36)(89,"textarea",37,38),s.NdJ("ngModelChange",function(ne){return z.model.description=ne}),s.ALo(91,"translate"),s._uU(92,"                        "),s.qZA()()(),s.TgZ(93,"div",35)(94,"mat-form-field",36)(95,"textarea",39,40),s.NdJ("ngModelChange",function(ne){return z.model.note=ne}),s.ALo(97,"translate"),s._uU(98,"                        "),s.qZA(),s.TgZ(99,"mat-hint",41),s._uU(100),s.qZA()()(),s.BQk(),s.qZA()(),s.TgZ(101,"fieldset",42)(102,"legend")(103,"p",4),s._uU(104,"Options"),s.qZA()(),s.TgZ(105,"div",5)(106,"div",43),s.ynx(107,11),s.TgZ(108,"zen-select",44),s.NdJ("ngModelChange",function(ne){return z.model.sourceListItemId=ne})("onAutoSelect",function(ne){return z.setValue(ne,"sourceListItemId")}),s.qZA(),s.BQk(),s.qZA(),s.TgZ(109,"div",43),s.ynx(110,11),s.TgZ(111,"zen-select",45),s.NdJ("ngModelChange",function(ne){return z.model.currencyListItemId=ne})("onAutoSelect",function(ne){return z.setValue(ne,"currencyListItemId")}),s.qZA(),s.BQk(),s.qZA()()()()(),s._UZ(112,"button",46),s.qZA()}if(2&H){const q=s.MAs(72),se=s.MAs(80),ne=s.MAs(96);s.xp6(10),s.Q6J("ngModelGroup","Job"),s.xp6(1),s.Q6J("ngIf","add"==z.formType),s.xp6(1),s.Q6J("ngIf","edit"==z.formType||"copy"==z.formType),s.xp6(1),s.Q6J("ngModelGroup","Job"),s.xp6(2),s.s9C("placeholder",s.lcZ(16,102,"department")),s.Q6J("ngModel",z.model.department)("ngModelGroup",z.model.jobId),s.xp6(2),s.Q6J("ngModelGroup","Job"),s.xp6(1),s.Q6J("ngModelGroup",z.model.jobId),s.xp6(1),s.Q6J("columns",s.DdM(122,me))("ngModel",z.model.officeId)("placeholder","office")("data",z.offices),s.xp6(1),s.Q6J("ngIf","edit"==z.data.action),s.xp6(2),s.Q6J("ngModelGroup","Job"),s.xp6(1),s.Q6J("ngModelGroup",z.model.jobId),s.xp6(1),s.Q6J("ngModel",z.model.organizationAddressId)("columns",s.DdM(123,J))("data",z.addresses)("placeholder","worksiteAddress"),s.xp6(1),s.Q6J("ngModelGroup","Job"),s.xp6(1),s.Q6J("ngModelGroup",z.model.jobId),s.xp6(1),s.s9C("placeholder",s.lcZ(28,104,"jobTitle")),s.Q6J("ngModel",z.model.jobTitle),s.xp6(2),s.Q6J("ngModelGroup","Job"),s.xp6(1),s.Q6J("ngModelGroup",z.model.jobId),s.xp6(1),s.Q6J("ngModel",z.model.contactId)("placeholder","contact")("data",z.contactList)("columns",s.DdM(124,Q)),s.xp6(6),s.Q6J("ngModelGroup","Job"),s.xp6(1),s.Q6J("ngModelGroup",z.model.jobId),s.xp6(2),s.s9C("placeholder",s.lcZ(41,106,"requiredNumber")),s.Q6J("ngModel",z.model.required)("zen-validator","edit"===z.formType?"job.requiredZero":"job.required")("min","edit"===z.formType?"0":"1"),s.xp6(2),s.Q6J("ngModelGroup","DirectHireJob"),s.xp6(1),s.Q6J("ngModelGroup",z.model.jobId),s.xp6(1),s.Q6J("ngModel",z.model.jobRateTypeListItemId)("placeholder","jobRateType")("columns",s.DdM(125,K))("emitDefaultSelection",!1)("data",z.jobRateTypes),s.xp6(1),s.Q6J("ngModelGroup",z.model.jobId),s.xp6(2),s.s9C("placeholder",s.lcZ(48,108,"minimum")),s.Q6J("ngModel",z.model.minimum)("min",0),s.xp6(2),s.Q6J("ngModelGroup",z.model.jobId),s.xp6(2),s.s9C("placeholder",s.lcZ(52,110,"maximum")),s.Q6J("ngModel",z.model.maximum)("min",0),s.xp6(2),s.Q6J("ngModelGroup","DirectHireJob"),s.xp6(2),s.Q6J("ngModelGroup",z.model.jobId),s.xp6(1),s.Q6J("ngModel",z.model.feeTypeListItemId)("placeholder","feeType")("columns",s.DdM(126,K))("data",z.feeTypes),s.xp6(1),s.Q6J("ngModelGroup",z.model.jobId),s.xp6(2),s.s9C("placeholder",s.lcZ(60,112,"value")),s.Q6J("ngModel",z.model.value)("min",0),s.xp6(2),s.Q6J("ngModelGroup",z.model.jobId),s.xp6(1),s.Q6J("ngModel",z.model.priorityListItemId)("placeholder","priority")("columns",s.DdM(127,K))("data",z.priorities),s.xp6(1),s.Q6J("ngModelGroup","Job"),s.xp6(2),s.Q6J("ngModelGroup",z.model.jobId),s.xp6(2),s.s9C("placeholder",s.lcZ(69,114,"startDate")),s.Q6J("ngModel",z.model.startDate)("matDatepicker",q)("max",z.model.endDate?z.model.endDate:null),s.xp6(3),s.Q6J("for",q),s.xp6(3),s.Q6J("ngModelGroup",z.model.jobId),s.xp6(2),s.s9C("placeholder",s.lcZ(77,116,"endDate")),s.Q6J("ngModel",z.model.endDate)("matDatepicker",se)("min",z.model.startDate?z.model.startDate:null),s.xp6(3),s.Q6J("for",se),s.xp6(8),s.Q6J("ngModelGroup","Job"),s.xp6(2),s.Q6J("ngModelGroup",z.model.jobId),s.xp6(1),s.s9C("placeholder",s.lcZ(91,118,"description")),s.Q6J("ngModel",z.model.description),s.xp6(5),s.Q6J("ngModelGroup",z.model.jobId),s.xp6(1),s.s9C("placeholder",s.lcZ(97,120,"note")),s.Q6J("ngModel",z.model.note),s.xp6(5),s.hij("",ne.value.length," / 4000"),s.xp6(1),s.Q6J("fxShow",z.loadMore),s.xp6(5),s.Q6J("ngModelGroup","DirectHireJob")("fxShow",z.loadMore),s.xp6(1),s.Q6J("ngModelGroup",z.model.jobId),s.xp6(1),s.Q6J("ngModel",z.model.sourceListItemId)("placeholder","source")("columns",s.DdM(128,K))("data",z.sources),s.xp6(1),s.Q6J("ngModelGroup","Job")("fxShow",z.loadMore),s.xp6(1),s.Q6J("ngModelGroup",z.model.jobId),s.xp6(1),s.Q6J("ngModel",z.model.currencyListItemId)("placeholder","currency")("columns",s.DdM(129,K))("data",z.currencies)}},dependencies:[k.O5,e._Y,e.Fj,e.wV,e.JJ,e.JL,e.Q7,e.nD,e.qQ,e.On,e.Mq,e.F,w.xw,w.SQ,w.yH,g.b8,M.IC,p.v_,p.pH,p.nX,E.k0,b.i,I.Mq,I.hl,I.nW,L.p,D.X$],styles:[".job-form-popup .show-hide-extra-fields{text-align:right;cursor:pointer;font-size:12px}.job-form-popup .dialog-content-wrapper{width:65vw;max-height:85vh;display:flex;flex-direction:column}.job-form-popup .dialog-content-wrapper zen-stepper .mat-dialog-content{max-height:85vh}@media screen and (max-width: 599px){.job-form-popup .dialog-content-wrapper zen-stepper .mat-dialog-content{height:auto}}.job-form-popup .dialog-content-wrapper zen-stepper .mat-dialog-content .mat-horizontal-content-container{padding:0;height:calc(85vh - 134px)}@media screen and (max-width: 599px){.job-form-popup .dialog-content-wrapper zen-stepper .mat-dialog-content .mat-horizontal-content-container{height:auto}}.job-form-popup .dialog-content-wrapper zen-tree .tree-tree-cover{height:auto!important}.job-form-popup zen-rate-grid .k-grid-toolbar{overflow:visible}.custom-dropdown.mat-autocomplete-panel.direct-hire{min-width:75vw}.custom-dropdown.mat-autocomplete-panel.direct-hire mat-table mat-header-row mat-header-cell{padding-left:12px!important}.custom-dropdown.mat-autocomplete-panel.direct-hire mat-table mat-header-row mat-header-cell.mat-column-note{min-width:30%;max-width:30%}.custom-dropdown.mat-autocomplete-panel.direct-hire mat-table mat-option{border-bottom:1px solid #e8e8e8;height:auto;white-space:normal;line-height:normal}.custom-dropdown.mat-autocomplete-panel.direct-hire mat-table mat-option mat-row{align-items:flex-start;min-height:auto;padding:12px 0}.custom-dropdown.mat-autocomplete-panel.direct-hire mat-table mat-option mat-cell{align-items:flex-start;word-break:break-word;padding-left:12px}.custom-dropdown.mat-autocomplete-panel.direct-hire mat-table mat-option mat-cell.mat-column-note{min-width:30%;max-width:30%}\n"],encapsulation:2})}return de})()},58698:(he,y,i)=>{"use strict";i.d(y,{b:()=>L});var e=i(94505),n=i(24678),o=i(38034),a=i(84187),l=i(30617),u=i(42400),d=i(11194),s=i(51838),A=i(20180),_=i(89515),C=i(13868),R=i(48979),x=i(47805),f=i(86352),k=i(12430),w=i(96814),g=i(3305),M=i(39421),p=i(77171),E=i(53790),b=i(26177),I=i(65879);let L=(()=>{class D{static#e=this.\u0275fac=function(O){return new(O||D)};static#t=this.\u0275mod=I.oAB({type:D});static#n=this.\u0275inj=I.cJS({providers:[w.uU],imports:[w.ez,A.L,_.aw,l.Ps,e.yu,d.gf,s.Wd,a.wp,n.Uc,o.FA,u.x4,g.To,R.i,f.K,x.x,C.g,k.L,M.Z_,p.y,E.u,b.yD]})}return D})()},54766:(he,y,i)=>{"use strict";i.d(y,{N:()=>b});var e=i(45547),n=i(8379),o=i(20180),a=i(47805),l=i(89515),u=i(30617),d=i(30481),s=i(96814),A=i(47157),_=i(87411),C=i(13317),R=i(7573),x=i(88374),f=i(17577),k=i(25800),w=i(1760),g=i(79225),M=i(19167),p=i(13315),E=i(65879);let b=(()=>{class I{static#e=this.\u0275fac=function(F){return new(F||I)};static#t=this.\u0275mod=E.oAB({type:I});static#n=this.\u0275inj=E.cJS({providers:[R.l,f.k,k.Z],imports:[s.ez,o.L,a.x,l.aw,u.Ps,A.a,d.AA,_.L,n.Q,e.f,x.B,C.I,w.E,g.X,M.t,p.P]})}return I})()},13682:(he,y,i)=>{"use strict";i.d(y,{Z:()=>fe});var e=i(56223),n=i(78645),o=i(59773),a=i(68658),l=i(34938),u=i(6990),s=i(65879),A=i(710),_=i(74187),C=i(28011),R=i(49155),x=i(61371),f=i(66878),k=i(96814),w=i(83814),g=i(27509),M=i(56263),p=i(84187),E=i(42400),b=i(45754),I=i(82012),L=i(38034),D=i(46311),F=i(65139),P=i(89515);const O=["formElement"],U=["sbtn"],V=["rateGrid"],K=["extra1Ref"],X=["extra2Ref"],me=["extra3Ref"],J=["extra4Ref"],Q=["purchaseOrderNumberRef"],re=function(){return["organization","department","office","status"]};function de(xe,Oe){if(1&xe){const Le=s.EpF();s.ynx(0,12),s.TgZ(1,"zen-select",82),s.NdJ("selectEvent",function(Ut){s.CHM(Le);const An=s.oxw();return s.KtG(An.setOrganization(Ut))})("fetch",function(Ut){s.CHM(Le);const An=s.oxw();return s.KtG(An.getCustomers(Ut))})("ngModelChange",function(Ut){s.CHM(Le);const An=s.oxw();return s.KtG(An.model.organizationId=Ut)})("onAutoSelect",function(Ut){s.CHM(Le);const An=s.oxw();return s.KtG(An.setValue(Ut,"organizationId"))}),s.qZA(),s.BQk()}if(2&xe){const Le=s.oxw();s.Q6J("ngModelGroup",Le.model.jobId),s.xp6(1),s.Q6J("placeholder","searchOrganization")("columns",s.DdM(6,re))("ngModel",Le.model.organizationId)("data",Le.customers)("disabled",Le.disableCustomer)}}const te=function(){return{standalone:!0}};function j(xe,Oe){if(1&xe){const Le=s.EpF();s.TgZ(0,"mat-form-field",10)(1,"input",83),s.NdJ("ngModelChange",function(Ut){s.CHM(Le);const An=s.oxw();return s.KtG(An.model.organization=Ut)}),s.ALo(2,"translate"),s.qZA()()}if(2&xe){const Le=s.oxw();s.xp6(1),s.s9C("placeholder",s.lcZ(2,3,"organization")),s.Q6J("ngModel",Le.model.organization)("ngModelOptions",s.DdM(5,te))}}function H(xe,Oe){if(1&xe&&(s.TgZ(0,"div",86),s._uU(1),s.qZA()),2&xe){const Le=s.oxw(2);s.xp6(1),s.hij(" ",Le.statusValidationMessage," ")}}const z=function(){return["resource"]};function q(xe,Oe){if(1&xe){const Le=s.EpF();s.TgZ(0,"div",7),s.ynx(1,12),s.TgZ(2,"zen-select",84),s.NdJ("ngModelChange",function(Ut){s.CHM(Le);const An=s.oxw();return s.KtG(An.model.statusListItemId=Ut)})("onAutoSelect",function(Ut){s.CHM(Le);const An=s.oxw();return s.KtG(An.setValue(Ut,"statusListItemId"))}),s.qZA(),s.YNc(3,H,2,1,"div",85),s.BQk(),s.qZA()}if(2&xe){const Le=s.oxw();s.Q6J("ngModelGroup","Job"),s.xp6(1),s.Q6J("ngModelGroup",Le.model.jobId),s.xp6(1),s.Q6J("ngModel",Le.model.statusListItemId)("placeholder","status")("data",Le.statuses)("columns",s.DdM(8,z))("disabled",!Le.allowStatusEdit),s.xp6(1),s.Q6J("ngIf",Le.statusValidationMessage)}}const se=function(){return["office"]},ne=function(){return["description"]},_e=function(){return["address1","address2","city","state","zipCode","addressType","note"]},ge=function(){return["wCCode","stateCode","description"]},Ce=function(){return["markUp","rTMarkUp","oTMarkUp","dTMarkUp","oTPayMultiplier","dTPayMultiplier"]},Te=function(){return["name","number","expirationDate","description"]},De=function(){return["name","office","title"]};let fe=(()=>{class xe{constructor(Le,Gt,Ut,An,$n,xn){this.cs=Le,this.us=Gt,this.eds=Ut,this.js=An,this.ps=$n,this.dialog=xn,this.hasLoadMore=!0,this.loadMore=!1,this.styleClass="formOfJob",this.model={},this.currentParams={officeId:0,organizationId:0},this.currentMarkUp={},this.rateGridData=[],this.stateId=0,this.transactionCodeList=[],this.rates=[],this.rtec=0,this.disableCustomer=!1,this.jobPositionColumns=[],this.shiftColumns=[],this.isRateGridDirty=!1,this.jocc=0,this.allowEditBillRates=!0,this.allowStatusEdit=!0,this.purchaseOrderColumns=[],this.disablePo=!1,this.defaultOfficeCopyFromValue="",this.allowWorksiteSourceOverride=!1,this.isMarkUpTouched=!1,this._unsubscribeAll=new n.x,this.extras={extra1Label:"Extra 1",extra2Label:"Extra 2",extra3Label:"Extra 3",extra4Label:"Extra 4"}}ngOnInit(){console.log("job-formmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm"),this.officeStaffOrganizationId=JSON.parse(sessionStorage.getItem("headerParams")).organizationId,this.officeStaffOfficeId=JSON.parse(sessionStorage.getItem("headerParams")).officeId,this.getDefaultOfficeCopyFromProperty(),this.getAllowWorksiteSourceOverrideProperty(),this.entityDetailServiceData=this.eds.getCurrentEntityDetail(),this.formType=this.data.action.toLowerCase(),"edit"===this.formType||"copy"===this.formType?(this.js.directory="TempJob",this.model=this.sharedData.job,this.previousStatusListItemId=this.model.statusListItemId,this.getOffices(this.sharedData.job.organizationId),this.getContact(this.sharedData.job.organizationId),this.rateGridData=this.model.rates):"add"===this.formType&&(this.model={},this.data.customerData&&(this.js.directory="TempJob",this.model.organizationId=this.data.customerData.gridDataItem.organizationId,this.model.organization=this.data.customerData.gridDataItem.organization,this.model.department=this.data.customerData.gridDataItem.department,this.customers=[{organization:this.model.organization,organizationId:this.model.organizationId,department:this.model.department,officeId:this.data.customerData.gridDataItem.officeId,office:this.data.customerData.gridDataItem.office,status:null}],this.disableCustomer=!0)),this.cs.tfOptionSelect("Person","AllowEditBillRates","Person",parseInt(this.us.getTokenValueByKey("personId").toString())).pipe((0,o.R)(this._unsubscribeAll)).subscribe(Le=>{if(Le&&Le.length){const Gt=Le[0].optionValue;"True"===Gt?this.allowEditBillRates=!0:"False"===Gt&&(this.allowEditBillRates=!1)}}),this.getStatusAccess()}getDefaultOfficeCopyFromProperty(){this.cs.optionPropertyValue("Job","DefaultOfficeCopyFrom","Organization",this.officeStaffOrganizationId).pipe((0,o.R)(this._unsubscribeAll)).subscribe(Le=>{Le.value&&(this.defaultOfficeCopyFromValue=Le.value?.toLowerCase())})}getAllowWorksiteSourceOverrideProperty(){this.cs.optionPropertyValue("Common","AllowWorksiteSourceOverride","Person",parseInt(this.us.getTokenValueByKey("personId").toString())).pipe((0,o.R)(this._unsubscribeAll)).subscribe(Le=>{Le.value&&(this.allowWorksiteSourceOverride="false"!=Le.value?.toLowerCase())})}setDefaultOffice(){if("office staff"==this.defaultOfficeCopyFromValue)-1!=this.offices?.map(function(Le){return Le.officeId})?.indexOf(this.officeStaffOfficeId)&&(this.model.officeId=this.officeStaffOfficeId);else if("organization"==this.defaultOfficeCopyFromValue){const Le=this.customers?.find(Gt=>Gt.organizationId==this.model.organizationId)?.officeId;-1!=this.offices?.map(function(Gt){return Gt.officeId})?.indexOf(Le)&&(this.model.officeId=Le)}}getContact(Le){this.ps.getContactPerson({organizationId:Le,showActiveOnly:!0,contactPersonId:this.model.contactId}).pipe((0,o.R)(this._unsubscribeAll)).subscribe(Ut=>{this.contactList=Ut})}getStatusAccess(){this.cs.tfOptionSelect(this.js.directory,"DontAllowStatusChange","Person",parseInt(this.us.getTokenValueByKey("personId").toString())).pipe((0,o.R)(this._unsubscribeAll)).subscribe(Le=>{var Ut=Le[0]?.optionValue?.split(",");this.allowStatusEdit=!Ut?.includes(this.model.statusListItemId?.toString())})}activate(){}validate(){return new Promise((Le,Gt)=>this.jobForm.invalid?(this.us.callSnackBar("pleaseFillAllTheRequiredFields","warning"),this.loadMore=!0,Le(this.jobForm.valid)):this.rateGrid.outputValue().then(Ut=>Ut&&Ut.valid?Ut.rates.length>0&&"add"==this.formType.toLowerCase()||"edit"==this.formType.toLowerCase()&&(Ut.rateCopy.length>0||Ut.rates.length>0)?(this.sharedData.jobData=this.model,this.sharedData.shifts=this.shifts,Ut.rates&&(this.sharedData.jobData.rates=Ut.rates,this.sharedData.jobData.rates.length>0&&(this.isRateGridDirty=!0)),Ut.rateUpd&&(this.sharedData.jobData.rateUpd=Ut.rateUpd,this.sharedData.jobData.rateUpd.length>0&&(this.isRateGridDirty=!0)),Ut.rateDel&&(this.sharedData.jobData.rateDel=Ut.rateDel.map(An=>An.jobRateId),this.sharedData.jobData.rateDel.length>0&&(this.isRateGridDirty=!0)),Ut.rateCopy&&(this.sharedData.jobData.rateCopy=Ut.rateCopy),Le(!0)):"copy"==this.formType.toLowerCase()&&(Ut.rateCopy.length>0||Ut.rates.length>0)?(this.sharedData.jobData=this.model,this.sharedData.shifts=this.shifts,Ut.rates&&(this.sharedData.jobData.rates=Ut.rates,this.sharedData.jobData.rates.length>0&&(this.isRateGridDirty=!0)),Ut.rateUpd&&(this.sharedData.jobData.rateUpd=Ut.rateUpd,this.sharedData.jobData.rateUpd.length>0&&(this.isRateGridDirty=!0)),Ut.rateDel&&(this.sharedData.jobData.rateDel=Ut.rateDel.map(An=>An.jobRateId),this.sharedData.jobData.rateDel.length>0&&(this.isRateGridDirty=!0)),Ut.rateCopy&&(this.sharedData.jobData.rateCopy=Ut.rateCopy,this.isRateGridDirty=!0),Le(!0)):(this.us.callSnackBar("At least one transaction code is required","warning"),Le(!1)):(this.us.callSnackBar("One or more rates are invalid.","warning"),Le(!1))))}save(){return new Promise(Le=>{this.formType.toLowerCase();const Ut={exceptionJson:{entityId:"edit"===this.formType.toLowerCase()?this.model.jobId:this.model.organizationId,organizationId:this.model.organizationId,data:{toUpdateIds:[this.model.jobId?this.model.jobId:0],statusListItemId:this.model.statusListItemId,formDetail:this.model},organizationAddressId:this.model.organizationAddressId,otPlanId:this.model.oTPlanId,entity:this.js.directory,relatedEntityId:this.model.organizationId,entityOfficeId:this.model.officeId,exceptionStage:"edit"===this.formType.toLowerCase()?"EditJob":"NewTempJob"},dialogLoadType:a.Z.continuous};return this.previousStatusListItemId!=this.model.statusListItemId&&this.model.assigned>0&&(Ut.exceptionJson.statusListItemId=this.model.statusListItemId),this.exceptionTask(Ut).then(An=>{if(An){if("edit"==this.formType){this.jobForm.form.controls.Job.controls[this.model.jobId].controls.purchaseOrderNumber?.markAsDirty();var $n=this.jobForm.form.controls.Job.controls[this.model.jobId].controls.statusListItemId.dirty;this.jobForm.form.controls.Job.controls[this.model.jobId].controls.purchaseOrderId&&(this.jobForm.form.controls.Job.controls[this.model.jobId].controls.purchaseOrderId.value=this.model.purchaseOrderId);const xn=this.us.getDirtyValues(this.jobForm);return xn||this.isRateGridDirty?this.js.updateJob({dv:xn,jobId:this.model.jobId,rates:this.model.rates,rateUpd:this.model.rateUpd,rateDel:this.model.rateDel,entity:this.entityDetailServiceData.entity}).pipe((0,o.R)(this._unsubscribeAll)).subscribe(ut=>{this.sharedData.edited=!0,this.us.callSnackBar("jobUpdated","success"),this.isRateGridDirty&&(this.sharedData.rateUpdated=!0),$n&&(this.sharedData.statusUpdated=!0),xn&&JSON.stringify(xn).includes("contactId")&&this.cs.onJobUpdated.next({entity:"job",value:this.model}),Le(!0)}):(this.us.callSnackBar("jobUpdated","success"),void Le(!0))}if("add"===this.formType||"copy"===this.formType){if(this.standAlone)return"copy"===this.formType&&(this.model.rates=this.model.rateCopy),this.js.createJob(this.model).pipe((0,o.R)(this._unsubscribeAll)).subscribe(xn=>{xn&&xn.directory&&xn.directory.data[0].jobId>0&&(this.sharedData.jobDetail=xn,this.sharedData.job=xn.directory.data[0],this.sharedData.entity=this.js.directory,this.sharedData.entityId=this.sharedData.job.jobId,this.cs.onJobUpdated.next({entity:"job",value:this.model}),Le(!0)),Le(!1)});this.sharedData.jobForm=this.model,Le(!0)}Le(!0)}else Le(!1)})})}exceptionTask(Le){return new Promise(Gt=>{this.cs.exceptionProcessWithPost(JSON.stringify(Le.exceptionJson,this.us.dateReplacer)).pipe((0,o.R)(this._unsubscribeAll)).subscribe(Ut=>{Ut?Ut&&Object.keys(Ut).length>0&&null!=Ut.data?(Le.exceptionData=Ut,this.openExceptionDialog(Le).subscribe(An=>{Gt(An)})):Ut&&Ut.hasOwnProperty("error")?(this.us.callSnackBar("errorInException","error"),Gt(!1)):Gt("noException"):(this.us.callSnackBar("errorInException","error"),Gt(!1))})})}openExceptionDialog(Le){const Gt=new n.x;return this.dialog.open(l.x,{data:Le,panelClass:"exception-dialog",disableClose:!0}).afterClosed().subscribe(An=>Gt.next(An)),Gt.asObservable()}stepperClose(){return{response:this.us.isFormDirty(this.jobForm)}}getTransactionCodeList(){const Le={listItem:"Earnings",transactionType:"",entityId:0,entity:"Job",officeId:this.model.officeId};return new Promise((Gt,Ut)=>{this.cs.getTransactionCodeList(Le,!0).pipe((0,o.R)(this._unsubscribeAll)).subscribe(An=>{An&&(this.transactionCodeList=An),Gt(An)},Ut)})}getCustomers(Le){this.cs.organization({entity:"customer",searchText:Le,callFrom:"CopyJob"}).pipe((0,o.R)(this._unsubscribeAll)).subscribe(Gt=>{this.customers=Gt,"copy"===this.formType&&(this.model.organizationId=this.sharedData.job.organizationId)})}getOffices(Le){let Gt={organizationId:Le,entity:"Customer",callFrom:"IncludeAllStatus"};"edit"==this.formType.toLowerCase()&&(Gt.action="edit",Gt.editedEntityOfficeId=this.model.officeId),this.cs.getOfficeList(Gt).pipe((0,o.R)(this._unsubscribeAll)).subscribe(Ut=>{this.offices=Ut,"add"==this.formType.toLowerCase()&&(this.offices?this.setDefaultOffice():this.model.officeId=void 0)})}setOrganization(Le){this.data.customerData?(this.getContact(this.data.customerData.gridDataItem.organizationId),this.getOffices(this.data.customerData.gridDataItem.organizationId)):(Le=Le[0],this.model.department=Le?.department,this.getOffices(Le?.organizationId),this.getContact(Le?.organizationId)),"organization"==this.defaultOfficeCopyFromValue&&"add"==this.formType.toLowerCase()&&this.setDefaultOffice()}getWorksiteSource(Le){this.cs.getWorksiteSource(JSON.stringify(Le)).subscribe(Gt=>{Gt&&(this.worksiteSourceList=Gt.applicableWorksiteList,this.allWorksiteSourceList=Gt.allWorksiteList,(null==this.model.worksiteSourceListItemId||null==this.model.worksiteSourceListItemId||this.model.worksiteSourceListItemId?.length<1)&&(this.model.worksiteSourceListItemId=this.allowWorksiteSourceOverride?this.worksiteSourceList?.find(Ut=>"worksite"==Ut.listItem?.toLowerCase())?.listItemId??this.worksiteSourceList[0]?.listItemId:this.worksiteSourceList?.find(Ut=>"worksite"==Ut.listItem?.toLowerCase())?.listItemId??this.allWorksiteSourceList?.find(Ut=>"worksite"==Ut.listItem?.toLowerCase())?.listItemId))})}setPurchaseOrder(Le){Le.length>0?(this.model.purchaseOrderNumber=Le[0]?.purchaseOrder,this.model.purchaseOrderId=Le[0]?.purchaseOrderId,this.disablePo=!0):(this.model.purchaseOrderNumber=null,this.model.purchaseOrderId=null,this.disablePo=!1)}setOffice(Le){!Le||0===Le.length||(this.model.officeId=(Le=Le[0]).officeId,this.getTransactionCodeList().then(Gt=>{this.getJobOption()}))}setWorksite(Le){}setSkill(Le,Gt=""){if((Le=Le[0])&&Object?.keys(Le)?.length>0){this.model.jobTitle=Le.skill;const Ut=this.markUps.find(An=>An.markUpId==Le.markUpId);if(Ut&&(this.model.markUpId=Ut.markUpId),this.getJobOption(this.model.skillId,"callFromskill"),Le.wCCodeId&&"add"===this.formType&&(this.model.wCCodeId=Le.wCCodeId),Le.rTPayRate&&null==Gt)this.defaultRates="edit"==this.formType?(0,u.cloneDeep)(this.rateGridData):[{transactionCode:"RT",payRate:Le.rTPayRate,billRate:Le.rTBillRate},{transactionCode:"OT",payRate:Le.oTPayRate,billRate:Le.oTBillRate}];else if(Le.rTPayRate&&"skilldropdown"==Gt)this.defaultRates=[{transactionCode:"RT",payRate:Le.rTPayRate,billRate:Le.rTBillRate},{transactionCode:"OT",payRate:Le.oTPayRate,billRate:Le.oTBillRate}];else if("edit"==this.formType&&"skilldropdown"!=Gt)this.defaultRates=(0,u.cloneDeep)(this.rateGridData);else if("edit"==this.formType&&"skilldropdown"==Gt)return}}setJobRateType(Le){this.currentJobRateType=Le[0].listItem}setOrganizationAddress(Le){(Le=Le[0])?(this.stateId!=Le.stateId&&(this.stateId=Le.stateId,this.model.skillId>0&&this.getJobOption(this.model.skillId)),this.setCurrencyByCountry(Le.countryCode)):this.stateId=0}setCurrencyByCountry(Le){if(!this.currencies||0===this.currencies.length)return;let Gt="usd";switch(Le.toLowerCase()){case"us":Gt="usd";break;case"ca":Gt="cad"}this.model.currencyListItemId=this.currencies.find(Ut=>Ut.listItem.toLowerCase()==Gt).listItemId}setShift(Le,Gt=""){if(Le.length>0){if(Le=Le[0],Object.keys(Le).length>0){Le.rTPayRate&&"shiftdropdown"==Gt&&(this.defaultRates=[{transactionCode:"RT",payRate:Le.rTPayRate,billRate:Le.rTBillRate},{transactionCode:"OT",payRate:Le.oTPayRate,billRate:Le.oTBillRate}]);const Ut=this.markUps.find(An=>An.markUpId==Le.markUpId);Ut&&(this.model.markUpId=Ut.markUpId),this.model.markUpId=Le.markUpId?Le.markUpId:this.model.markUpId,this.model.sunday=Le.sunday,this.model.monday=Le.monday,this.model.tuesday=Le.tuesday,this.model.wednesday=Le.wednesday,this.model.thursday=Le.thursday,this.model.friday=Le.friday,this.model.saturday=Le.saturday,this.markDaysDirty()}}else 0===Le.length&&(this.model.sunday=!1,this.model.monday=!1,this.model.tuesday=!1,this.model.wednesday=!1,this.model.thursday=!1,this.model.friday=!1,this.model.saturday=!1,this.markDaysDirty())}markDaysDirty(){this.jobForm.controls.Job.controls[this.model.jobId].controls.sunday.markAsDirty(),this.jobForm.controls.Job.controls[this.model.jobId].controls.monday.markAsDirty(),this.jobForm.controls.Job.controls[this.model.jobId].controls.tuesday.markAsDirty(),this.jobForm.controls.Job.controls[this.model.jobId].controls.wednesday.markAsDirty(),this.jobForm.controls.Job.controls[this.model.jobId].controls.thursday.markAsDirty(),this.jobForm.controls.Job.controls[this.model.jobId].controls.friday.markAsDirty(),this.jobForm.controls.Job.controls[this.model.jobId].controls.saturday.markAsDirty()}onMarkUpTab(){this.rateGrid.rateGrid.totalCount>0&&this.rateGrid.onRateGridEditCellFn({sender:this.rateGrid.rateGridDomEl,dataItem:this.rateGrid.rateGrid.data[0],rowIndex:0,colIndex:this.rateGrid.startColIndex})}markUpRate(Le){this.jobForm.control.controls.TempJob.touched&&(this.isMarkUpTouched=!0),this.currentMarkUp=Le=Le?Le[0]:this.currentMarkUp,this.currentMarkUp&&0!=Object.keys(this.currentMarkUp).length?(Le.payRate=this.model.rTPayRate,Le.billRate=this.model.rTBillRate,console.log("selected Markups",Le),Le.hasOwnProperty("markUpId")&&this.cs.markUpRate(Le).pipe((0,o.R)(this._unsubscribeAll)).subscribe(Gt=>{Gt&&(this.model.rTPayRate=Gt.rTPayRate,this.model.rTBillRate=Gt.rTBillRate,this.model.oTPayRate=Gt.oTPayRate,this.model.oTBillRate=Gt.oTBillRate),console.log("calculated rates",Gt)})):this.currentMarkUp=null}setValue(Le,Gt){"wccodeid"==Gt.toLowerCase()&&"edit"==this.formType.toLowerCase()||(this.model[Gt]=Le,this.jobForm.control.controls.TempJob.touched&&(this.isMarkUpTouched=!0))}getJobOption(Le=0,Gt=""){(this.model.officeId>0&&this.model.organizationId>0&&this.newParams(this.model)||Le>0)&&(this.currentParams={officeId:this.model.officeId,organizationId:this.model.organizationId},this.js.jobOption({organizationId:this.model.organizationId,jobId:this.model.jobId,officeId:this.model.officeId,skillId:Le,stateId:this.stateId,option:this.js.directory,entity:"Customer",callFrom:"jobForm",formMode:this.formType}).pipe((0,o.R)(this._unsubscribeAll)).subscribe(An=>{if(console.log("officeoptions ",An),Le>0)this.shifts=An.shift.data,this.getShiftColumns(An.shift),this.manageShiftId(),this.wCCodes=An.wCCode?An.wCCode.data:[],this.shifts?.length&&this.shifts[0].skillId==Le&&("edit"!==this.formType&&"copy"!==this.formType||null==Gt?(this.model.shiftId=this.shifts[0].shiftId,this.model.markUpId=this.shifts[0].markUpId,this.shifts[0].rTPayRate&&(this.defaultRates=[{transactionCode:"RT",payRate:this.shifts[0].rTPayRate,billRate:this.shifts[0].rTBillRate},{transactionCode:"OT",payRate:this.shifts[0].oTPayRate,billRate:this.shifts[0].oTBillRate}])):(this.model.shiftId=this.model.shiftId,this.model.markUpId=this.model.markUpId)),-1==this.wCCodes.findIndex(ut=>ut.wCCodeId==this.model.wCCodeId)&&(this.model.wCCodeId=null),0===this.wCCodes.length&&0!==(this.model.organizationAddressId??0)&&this.us.callSnackBar("Please setup a WC Code for the selected customer address.","warning");else{if(this.jocc++,this.addresses=An.organizationAddress?An.organizationAddress:[],this.skills=An.skill.data?An.skill.data:[],(!this.skills||0==this.skills.length)&&this.us.callSnackBar("noCustomerJobPosition","warning"),this.getJobpositionColumns(An.skill),this.markUps=An.markUp.data?An.markUp.data:[],"add"===this.formType.toLowerCase()&&(this.model.markUpId=this.markUps.find(ut=>1==ut.isDefault)?.markUpId),this.getpurchaseOrderColumns(An.purchaseOrder),this.purchaseOrders=An.purchaseOrder.data?An.purchaseOrder.data:[],this.creditCards=An.creditCard.data?An.creditCard.data:[],this.statuses=An.status?An.status:[],this.currencies=An.currency?An.currency:[],this.extras=An.extra?An.extra:[],("add"===this.formType||"edit"===this.formType&&this.jocc>1)&&this.setExtras(this.extras),this.model.jobCandidateWorkflowId=An.jobCandidateWorkflowId,this.workflows=An.workflow?An.workflow:[],this.workflow=this.workflows[0],this.workflow&&(this.model.workflowId=this.workflow.workflowId,this.model.workflowStageId=this.workflow.workflowStage[0].workflowStageId),this.payPeriods=An.payPeriod?An.payPeriod:[],this.jobTypes=An.jobType?An.jobType:[],"add"===this.formType){var $n=this.payPeriods.filter(ut=>ut.selected).shift(),xn=this.jobTypes.filter(ut=>ut.selected).shift();$n&&(this.model.payPeriodListItemId=$n.listItemId,this.model.payPeriod=$n.listItem),xn&&(this.model.jobTypeListItemId=xn.listItemId,this.model.jobType=xn.listItem)}"edit"===this.formType&&(this.defaultRates=null!=this.rateGridData?(0,u.cloneDeep)(this.rateGridData):[{transactionCode:"RT",payRate:0,billRate:0},{transactionCode:"OT",payRate:0,billRate:0}],this.model.shiftId=this.model.shiftId,this.model.markUpId=this.model.markUpId),this.discounts=An.discount?An.discount:[],this.charges=An.charge?An.charge:[],this.jobRateTypes=An.jobRateType?An.jobRateType:[],this.durationTypes=An.durationType?An.durationType:[],this.model.duration=this.model.duration??An.duration,this.purchaseOrders.filter(ut=>ut.purchaseOrderId==this.model.purchaseOrderId),this.oTPlans=An.oTPlan?An.oTPlan:[]}}),this.getWorksiteSource({calledFrom:"TempJob",officeId:this.model.officeId,organizationId:this.model.organizationId,mode:this.formType,jobId:this.model.jobId,calledFor:"WorksiteSource"}))}getpurchaseOrderColumns(Le){this.purchaseOrderColumns=this.us.getPropertyArray(Le.requiredColumns,"name")}setExtras(Le){this.model.extra1=Le.extra1,this.model.extra2=Le.extra2,this.model.extra3=Le.extra3,this.model.extra4=Le.extra4,this.model.purchaseOrderNumber=Le.purchaseOrderNumber,this.extra1Ref?.control.markAsDirty(),this.extra2Ref?.control.markAsDirty(),this.extra3Ref?.control.markAsDirty(),this.extra4Ref?.control.markAsDirty(),this.purchaseOrderNumberRef?.control.markAsDirty()}manageShiftId(){this.model.shiftId&&this.shifts&&(this.shifts.map(Gt=>Gt.shiftId).includes(this.model.shiftId)||(this.model.shiftId=null))}getJobpositionColumns(Le){this.jobPositionColumns=this.us.getPropertyArray(Le.columns,"name")}getShiftColumns(Le){this.shiftColumns=this.us.getPropertyArray(Le.columns,"name")}newParams(Le){return this.currentParams.officeId!=Le.officeId||this.currentParams.organizationId!=Le.organizationId}getSelectedListItem(Le){const Gt=Le.find(Ut=>1==Ut.selected);if(Gt)return Gt.listItemId}updateSelectedOffice(Le){const Gt=[...this.offices];return Gt.map(Ut=>{Ut.selected=Ut.officeId==Le}),Gt}submitJobForm(Le){if(console.log("JOB FORM DATA",this.model),"add"===this.data.action)this.js.job(this.model).pipe((0,o.R)(this._unsubscribeAll)).subscribe(Gt=>{});else{const Gt=this.us.getDirtyValues(Le);this.cs.dynamicUpdate(Gt).pipe((0,o.R)(this._unsubscribeAll)).subscribe(Ut=>{})}}closeForm(Le){this.us.isFormDirty(Le)&&this.confirmation()}confirmation(){this.us.openConfirmDialog({headerText:"Pending Changes",confirmationText:"Are you sure you want to discard changes?"}),this.us.confirmDialogAction.pipe((0,o.R)(this._unsubscribeAll)).subscribe(Gt=>{"yes"==Gt&&this.us.closeConfirmDialog()})}onRequiredChange(){"edit"!=this.formType&&(this.model.originalRequired=this.model.required)}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Gt){return new(Gt||xe)(s.Y36(A.v),s.Y36(_.t),s.Y36(C.a),s.Y36(R.O),s.Y36(x.R),s.Y36(f.on))};static#t=this.\u0275cmp=s.Xpm({type:xe,selectors:[["zen-job-form"]],viewQuery:function(Gt,Ut){if(1&Gt&&(s.Gf(e.F,7),s.Gf(O,7),s.Gf(U,7),s.Gf(V,7),s.Gf(K,7),s.Gf(X,7),s.Gf(me,7),s.Gf(J,7),s.Gf(Q,7)),2&Gt){let An;s.iGM(An=s.CRH())&&(Ut.jobForm=An.first),s.iGM(An=s.CRH())&&(Ut.formElement=An.first),s.iGM(An=s.CRH())&&(Ut.submitBtn=An.first),s.iGM(An=s.CRH())&&(Ut.rateGrid=An.first),s.iGM(An=s.CRH())&&(Ut.extra1Ref=An.first),s.iGM(An=s.CRH())&&(Ut.extra2Ref=An.first),s.iGM(An=s.CRH())&&(Ut.extra3Ref=An.first),s.iGM(An=s.CRH())&&(Ut.extra4Ref=An.first),s.iGM(An=s.CRH())&&(Ut.purchaseOrderNumberRef=An.first)}},inputs:{data:"data"},decls:198,vars:264,consts:[["id","jobForm","name","jobForm","autocomplete","off",1,"scheduled-job-form"],["jobForm","ngForm","formElement",""],["id","control-wrapper"],["fxLayout","column","fxFlex","100"],["fxLayout","column",1,"mb-12","min-w-full","zenauto-add-job-customer"],[1,"m-0","p-0"],["fxLayout","row wrap","fxLayout.xs","column","fxLayoutGap","12px","fxLayoutGap.xs","12px"],["fxFlex","",3,"ngModelGroup"],[3,"ngModelGroup",4,"ngIf"],["class","w-100-p",4,"ngIf"],[1,"w-100-p"],["matInput","","name","department","disabled","","type","text","required","",3,"ngModel","ngModelGroup","placeholder","ngModelChange"],[3,"ngModelGroup"],["nameField","office","valueField","officeId","name","officeId","required","",1,"no-padding-head","chip-black",3,"columns","ngModel","placeholder","data","selectEvent","ngModelChange","onAutoSelect"],["fxFlex","",3,"hidden","ngModelGroup"],["name","worksiteSourceListItemId","required","","nameField","description","valueField","listItemId",1,"no-padding-head","chip-black",3,"ngModel","placeholder","data","columns","ngModelChange","selectEvent"],["fxFlex","",3,"ngModelGroup",4,"ngIf"],["name","organizationAddressId","nameField","address1","valueField","organizationAddressId","panelClass","zen-select-xl custom-dropdown worksite","required","",1,"no-padding-head","chip-black",3,"ngModel","columns","data","placeholder","ngModelChange","onAutoSelect","selectEvent"],["name","skillId","nameField","jobPosition","valueField","skillId","panelClass","zen-select-lg","required","",1,"no-padding-head","chip-black","w-100-p",3,"ngModel","columns","placeholder","data","emitDefaultSelection","selectEvent","ngModelChange","onAutoSelect"],[1,"w-100-p",3,"ngModelGroup"],["matInput","","name","jobTitle","type","text","required","",3,"ngModel","placeholder","ngModelChange"],["step","1","oninput","validity.valid||(value='');","matInput","","name","required","required","","type","number",3,"min","ngModel","zen-validator","placeholder","change","ngModelChange"],["fxLayout","column",1,"mb-12","min-w-full","zenauto-add-job-rates-shift"],["name","wCCodeId","panelClass","zen-select-md","nameField","wCCode","valueField","wCCodeId","required","",1,"no-padding-head","chip-black",3,"ngModel","columns","placeholder","data","ngModelChange","onAutoSelect"],["name","jobRateTypeListItemId","nameField","resource","valueField","listItemId","required","",1,"no-padding-head","chip-black",3,"ngModel","placeholder","columns","emitDefaultSelection","data","ngModelChange","selectEvent","onAutoSelect"],["name","shiftId","nameField","shift","valueField","shiftId","panelClass","zen-select-lg custom-dropdown shift",1,"no-padding-head","chip-black",3,"ngModel","columns","placeholder","emitDefaultSelection","data","ngModelChange","selectEvent","onAutoSelect"],["matInput","","name","startDate","zen-validator","job.startDate",3,"placeholder","ngModel","max","matDatepicker","ngModelChange"],["matSuffix","",3,"for"],["picker1",""],["matInput","","name","endDate","zen-validator","job.endDate",3,"placeholder","ngModel","min","matDatepicker","ngModelChange"],["picker",""],["nameField","markUp","valueField","markUpId","name","markUpId","panelClass","custom-dropdown markup",1,"no-padding-head","chip-black",3,"ngModel","placeholder","columns","data","ngModelChange","selectEvent","onAutoSelect","keydown.Tab"],["primaryColumn","jobRateId",1,"gridContent",3,"allowEditBillRates","showAddNewRow","transactionCodeList","gridData","markUp","markUpTouched","defaultRates","rateType"],["rateGrid",""],["fxLayout","column",1,"mb-12","min-w-full","zenauto-add-job-options",3,"fxShow"],["fxFlex","",3,"ngModelGroup","fxShow"],["nameField","resource","valueField","oTPlanId","name","oTPlanId","required","",1,"no-padding-head","chip-black",3,"ngModel","placeholder","columns","data","ngModelChange","onAutoSelect"],["nameField","resource","valueField","listItemId","name","payPeriodListItemId",1,"no-padding-head","chip-black",3,"ngModel","placeholder","columns","data","ngModelChange"],["nameField","resource","valueField","listItemId","name","jobTypeListItemId",1,"no-padding-head","chip-black",3,"ngModel","placeholder","columns","data","ngModelChange","onAutoSelect"],["panelClass","zen-select-xl custom-dropdown","nameField","purchaseOrder","valueField","purchaseOrder","name","purchaseOrderId",1,"no-padding-head","chip-black",3,"ngModel","columns","placeholder","data","ngModelChange","selectEvent","onAutoSelect"],["matInput","","name","purchaseOrderNumber","zen-validator","job.purchaseOrderNumber","placeholder","PO Number","type","text",3,"ngModel","disabled","ngModelChange"],["purchaseOrderNumberRef","ngModel"],["name","discountId","nameField","discount","valueField","discountId","panelClass","zen-select-md",1,"no-padding-head","chip-black",3,"ngModel","config","placeholder","ngModelChange","onAutoSelect"],["name","chargeId","nameField","charge","valueField","chargeId","panelClass","zen-select-md",1,"no-padding-head","chip-black",3,"ngModel","config","placeholder","ngModelChange","onAutoSelect"],["name","creditCardId","nameField","name","valueField","creditCardId","panelClass","zen-select-lg",1,"no-padding-head","chip-black",3,"ngModel","columns","placeholder","data","ngModelChange","onAutoSelect"],["matInput","","name","extra1","zen-validator","job.extra1","type","text",3,"ngModel","placeholder","ngModelChange"],["extra1Ref","ngModel"],["matInput","","name","extra2","zen-validator","job.extra2","type","text",3,"ngModel","placeholder","ngModelChange"],["extra2Ref","ngModel"],["matInput","","name","extra3","zen-validator","job.extra3","type","text",3,"ngModel","placeholder","ngModelChange"],["extra3Ref","ngModel"],["matInput","","name","extra4","zen-validator","job.extra4","type","text",3,"ngModel","placeholder","ngModelChange"],["extra4Ref","ngModel"],["min","0","step","1","oninput","validity.valid||(value='');","matInput","","zen-validator","job.originalRequired","name","originalRequired","type","number","required","",3,"ngModel","placeholder","disabled","ngModelChange"],["nameField","name","valueField","personId","name","contactId","panelClass","zen-select-md",1,"no-padding-head","chip-black",3,"ngModel","placeholder","data","columns","ngModelChange","onAutoSelect"],["fxLayout","column",1,"mb-12","min-w-full","zenauto-add-job-duration",3,"fxShow"],["fxLayout","row wrap","fxLayout.xs","column","fxLayoutGap","12px","fxLayoutGap.xs","12px",3,"ngModelGroup"],["fxFlex","",3,"fxShow","ngModelGroup"],["nameField","resource","valueField","listItemId","name","durationTypeListItemId",1,"no-padding-head","chip-black",3,"ngModel","placeholder","columns","data","ngModelChange","onAutoSelect"],["matInput","","name","duration","type","number",3,"ngModel","placeholder","ngModelChange"],["fxFlex","",3,"fxShow"],["nameField","resource","valueField","listItemId","name","currencyListItemId","required","",1,"no-padding-head","chip-black",3,"ngModel","placeholder","columns","data","ngModelChange","onAutoSelect"],["name","monday",3,"ngModel","ngModelChange"],["name","tuesday",3,"ngModel","ngModelChange"],["name","wednesday",3,"ngModel","ngModelChange"],["name","thursday",3,"ngModel","ngModelChange"],["name","friday",3,"ngModel","ngModelChange"],["name","saturday",3,"ngModel","ngModelChange"],["name","sunday",3,"ngModel","ngModelChange"],["fxFlex","100",3,"ngModelGroup","fxShow"],["name","autoUpdate",3,"ngModel","ngModelGroup","ngModelChange"],["fxLayout","column",1,"mb-12","min-w-full","zenauto-add-job-description"],["fxLayout","row wrap","fxFlex","100"],["fxLayout","column","fxFlex","100","fxFlex.gt-xs","100","fxFlex.gt-md","100"],["fxFlex","",1,"mr-sm-24",3,"ngModelGroup"],["matInput","","name","description","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","10",3,"ngModel","placeholder","ngModelChange"],["desc",""],["matInput","","maxlength","4000","name","note","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","10",3,"ngModel","placeholder","ngModelChange"],["note",""],["align","end"],["fxHide","","type","submit"],["sbtn",""],["nameField","organization","valueField","organizationId","name","organizationId","panelClass","zen-select-lg","required","",1,"no-padding-head","chip-black",3,"placeholder","columns","ngModel","data","disabled","selectEvent","fetch","ngModelChange","onAutoSelect"],["matInput","","disabled","","name","organization","type","text",3,"ngModel","ngModelOptions","placeholder","ngModelChange"],["nameField","resource","valueField","listItemId","name","statusListItemId","required","",1,"no-padding-head","chip-black",3,"ngModel","placeholder","data","columns","disabled","ngModelChange","onAutoSelect"],["class","red-fg",4,"ngIf"],[1,"red-fg"]],template:function(Gt,Ut){if(1&Gt&&(s.TgZ(0,"form",0,1)(3,"div",2)(4,"div",3)(5,"fieldset",4)(6,"legend")(7,"p",5),s._uU(8,"Job "),s.qZA()(),s.TgZ(9,"div",6)(10,"div",7),s.YNc(11,de,2,7,"ng-container",8),s.YNc(12,j,3,6,"mat-form-field",9),s.qZA(),s.TgZ(13,"div",7)(14,"mat-form-field",10)(15,"input",11),s.NdJ("ngModelChange",function($n){return Ut.model.department=$n}),s.ALo(16,"translate"),s.qZA()()(),s.TgZ(17,"div",7),s.ynx(18,12),s.TgZ(19,"zen-select",13),s.NdJ("selectEvent",function($n){return Ut.setOffice($n)})("ngModelChange",function($n){return Ut.model.officeId=$n})("onAutoSelect",function($n){return Ut.setValue($n,"officeId")}),s.qZA(),s.BQk(),s.qZA(),s.TgZ(20,"div",14),s.ynx(21,12),s.TgZ(22,"zen-select",15),s.NdJ("ngModelChange",function($n){return Ut.model.worksiteSourceListItemId=$n})("selectEvent",function($n){return Ut.setWorksite($n)}),s.ALo(23,"translate"),s.qZA(),s.BQk(),s.qZA(),s.YNc(24,q,4,9,"div",16),s.qZA(),s.TgZ(25,"div",6)(26,"div",7),s.ynx(27,12),s.TgZ(28,"zen-select",17),s.NdJ("ngModelChange",function($n){return Ut.model.organizationAddressId=$n})("onAutoSelect",function($n){return Ut.setValue($n,"organizationAddressId")})("selectEvent",function($n){return Ut.setOrganizationAddress($n)}),s.qZA(),s.BQk(),s.qZA(),s.TgZ(29,"div",7),s.ynx(30,12),s.TgZ(31,"zen-select",18),s.NdJ("selectEvent",function($n){return Ut.setSkill($n,"skilldropdown")})("ngModelChange",function($n){return Ut.model.skillId=$n})("onAutoSelect",function($n){return Ut.setValue($n,"skillId")}),s.qZA(),s.BQk(),s.qZA(),s.TgZ(32,"div",7)(33,"mat-form-field",19)(34,"input",20),s.NdJ("ngModelChange",function($n){return Ut.model.jobTitle=$n}),s.ALo(35,"translate"),s.qZA()()(),s.TgZ(36,"div",7)(37,"mat-form-field",19)(38,"input",21),s.NdJ("change",function(){return Ut.onRequiredChange()})("ngModelChange",function($n){return Ut.model.required=$n}),s.ALo(39,"translate"),s.qZA()()()()(),s.TgZ(40,"fieldset",22)(41,"legend")(42,"p",5),s._uU(43,"Rates and shift"),s.qZA()(),s.TgZ(44,"div",6),s.ynx(45,12),s.TgZ(46,"div",7)(47,"zen-select",23),s.NdJ("ngModelChange",function($n){return Ut.model.wCCodeId=$n})("onAutoSelect",function($n){return Ut.setValue($n,"wCCodeId")}),s.qZA()(),s.BQk(),s.ynx(48,12),s.TgZ(49,"div",7)(50,"zen-select",24),s.NdJ("ngModelChange",function($n){return Ut.model.jobRateTypeListItemId=$n})("selectEvent",function($n){return Ut.setJobRateType($n)})("onAutoSelect",function($n){return Ut.setValue($n,"jobRateTypeListItemId")}),s.qZA()(),s.BQk(),s.TgZ(51,"div",7),s.ynx(52,12),s.TgZ(53,"zen-select",25),s.NdJ("ngModelChange",function($n){return Ut.model.shiftId=$n})("selectEvent",function($n){return Ut.setShift($n,"shiftdropdown")})("onAutoSelect",function($n){return Ut.setValue($n,"shiftId")}),s.qZA(),s.BQk(),s.qZA()(),s.TgZ(54,"div",6)(55,"div",7)(56,"mat-form-field",19)(57,"input",26),s.NdJ("ngModelChange",function($n){return Ut.model.startDate=$n}),s.ALo(58,"translate"),s.qZA(),s._UZ(59,"mat-datepicker-toggle",27)(60,"mat-datepicker",null,28),s.qZA()(),s.TgZ(62,"div",7)(63,"mat-form-field",19)(64,"input",29),s.NdJ("ngModelChange",function($n){return Ut.model.endDate=$n}),s.ALo(65,"translate"),s.qZA(),s._UZ(66,"mat-datepicker-toggle",27)(67,"mat-datepicker",null,30),s.qZA()(),s.TgZ(69,"div",7),s.ynx(70,12),s.TgZ(71,"zen-select",31),s.NdJ("ngModelChange",function($n){return Ut.model.markUpId=$n})("selectEvent",function($n){return Ut.markUpRate($n)})("onAutoSelect",function($n){return Ut.setValue($n,"markUpId")})("keydown.Tab",function(){return Ut.onMarkUpTab()}),s.qZA(),s.BQk(),s.qZA()(),s.TgZ(72,"div",6)(73,"div",10),s._UZ(74,"zen-rate-grid",32,33),s.qZA()()(),s.TgZ(76,"fieldset",34)(77,"legend")(78,"p",5),s._uU(79,"Options"),s.qZA()(),s.TgZ(80,"div",6)(81,"div",35),s.ynx(82,12),s.TgZ(83,"zen-select",36),s.NdJ("ngModelChange",function($n){return Ut.model.oTPlanId=$n})("onAutoSelect",function($n){return Ut.setValue($n,"oTPlanId")}),s.qZA(),s.BQk(),s.qZA(),s.TgZ(84,"div",35),s.ynx(85,12),s.TgZ(86,"zen-select",37),s.NdJ("ngModelChange",function($n){return Ut.model.payPeriodListItemId=$n}),s.qZA(),s.BQk(),s.qZA(),s.TgZ(87,"div",35),s.ynx(88,12),s.TgZ(89,"zen-select",38),s.NdJ("ngModelChange",function($n){return Ut.model.jobTypeListItemId=$n})("onAutoSelect",function($n){return Ut.setValue($n,"jobTypeListItemId")}),s.qZA(),s.BQk(),s.qZA()(),s.TgZ(90,"div",6)(91,"div",35),s.ynx(92,12),s.TgZ(93,"zen-select",39),s.NdJ("ngModelChange",function($n){return Ut.model.purchaseOrderNumber=$n})("selectEvent",function($n){return Ut.setPurchaseOrder($n)})("onAutoSelect",function($n){return Ut.setValue($n,"purchaseOrderId")}),s.qZA(),s.BQk(),s.qZA(),s.TgZ(94,"div",35)(95,"mat-form-field",19)(96,"input",40,41),s.NdJ("ngModelChange",function($n){return Ut.model.purchaseOrderNumber=$n}),s.qZA()()(),s.TgZ(98,"div",35),s.ynx(99,12),s.TgZ(100,"zen-select",42),s.NdJ("ngModelChange",function($n){return Ut.model.discountId=$n})("onAutoSelect",function($n){return Ut.setValue($n,"discountId")}),s.qZA(),s.BQk(),s.qZA(),s.TgZ(101,"div",35),s.ynx(102,12),s.TgZ(103,"zen-select",43),s.NdJ("ngModelChange",function($n){return Ut.model.chargeId=$n})("onAutoSelect",function($n){return Ut.setValue($n,"chargeId")}),s.qZA(),s.BQk(),s.qZA(),s.TgZ(104,"div",35),s.ynx(105,12),s.TgZ(106,"zen-select",44),s.NdJ("ngModelChange",function($n){return Ut.model.creditCardId=$n})("onAutoSelect",function($n){return Ut.setValue($n,"creditCardId")}),s.qZA(),s.BQk(),s.qZA()(),s.TgZ(107,"div",6)(108,"div",35)(109,"mat-form-field",19)(110,"input",45,46),s.NdJ("ngModelChange",function($n){return Ut.model.extra1=$n}),s.qZA()()(),s.TgZ(112,"div",35)(113,"mat-form-field",19)(114,"input",47,48),s.NdJ("ngModelChange",function($n){return Ut.model.extra2=$n}),s.qZA()()(),s.TgZ(116,"div",35)(117,"mat-form-field",19)(118,"input",49,50),s.NdJ("ngModelChange",function($n){return Ut.model.extra3=$n}),s.qZA()()(),s.TgZ(120,"div",35)(121,"mat-form-field",19)(122,"input",51,52),s.NdJ("ngModelChange",function($n){return Ut.model.extra4=$n}),s.qZA()()()(),s.TgZ(124,"div",6)(125,"div",35)(126,"mat-form-field",19)(127,"input",53),s.NdJ("ngModelChange",function($n){return Ut.model.originalRequired=$n}),s.ALo(128,"translate"),s.qZA()()(),s.TgZ(129,"div",35),s.ynx(130,12),s.TgZ(131,"zen-select",54),s.NdJ("ngModelChange",function($n){return Ut.model.contactId=$n})("onAutoSelect",function($n){return Ut.setValue($n,"contactId")}),s.qZA(),s.BQk(),s.qZA()()(),s.TgZ(132,"fieldset",55)(133,"legend")(134,"p",5),s._uU(135,"Duration"),s.qZA()(),s.ynx(136),s.TgZ(137,"div",56)(138,"div",57)(139,"zen-select",58),s.NdJ("ngModelChange",function($n){return Ut.model.durationTypeListItemId=$n})("onAutoSelect",function($n){return Ut.setValue($n,"durationTypeListItemId")}),s.qZA()(),s.TgZ(140,"div",57)(141,"mat-form-field",10)(142,"input",59),s.NdJ("ngModelChange",function($n){return Ut.model.duration=$n}),s.ALo(143,"translate"),s.qZA()()()(),s.BQk(),s.ynx(144,12),s.TgZ(145,"div",6)(146,"div",60),s.ynx(147,12),s.TgZ(148,"zen-select",61),s.NdJ("ngModelChange",function($n){return Ut.model.currencyListItemId=$n})("onAutoSelect",function($n){return Ut.setValue($n,"currencyListItemId")}),s.qZA(),s.BQk(),s.qZA()(),s.BQk(),s.ynx(149,12),s.TgZ(150,"div",6)(151,"div",57)(152,"mat-checkbox",62),s.NdJ("ngModelChange",function($n){return Ut.model.monday=$n}),s._uU(153,"Monday"),s.qZA()(),s.TgZ(154,"div",57)(155,"mat-checkbox",63),s.NdJ("ngModelChange",function($n){return Ut.model.tuesday=$n}),s._uU(156,"Tuesday"),s.qZA()(),s.TgZ(157,"div",57)(158,"mat-checkbox",64),s.NdJ("ngModelChange",function($n){return Ut.model.wednesday=$n}),s._uU(159,"Wednesday"),s.qZA()(),s.TgZ(160,"div",57)(161,"mat-checkbox",65),s.NdJ("ngModelChange",function($n){return Ut.model.thursday=$n}),s._uU(162,"Thursday"),s.qZA()(),s.TgZ(163,"div",57)(164,"mat-checkbox",66),s.NdJ("ngModelChange",function($n){return Ut.model.friday=$n}),s._uU(165,"Friday"),s.qZA()(),s.TgZ(166,"div",57)(167,"mat-checkbox",67),s.NdJ("ngModelChange",function($n){return Ut.model.saturday=$n}),s._uU(168,"Saturday"),s.qZA()(),s.TgZ(169,"div",57)(170,"mat-checkbox",68),s.NdJ("ngModelChange",function($n){return Ut.model.sunday=$n}),s._uU(171,"Sunday"),s.qZA()()(),s.BQk(),s.TgZ(172,"div",6)(173,"div",69)(174,"mat-checkbox",70),s.NdJ("ngModelChange",function($n){return Ut.model.isAutoUpdate=$n}),s._uU(175,"Auto-update "),s.qZA()()()(),s.TgZ(176,"fieldset",71)(177,"legend")(178,"p",5),s._uU(179,"Description "),s.qZA()(),s.TgZ(180,"div",72),s.ynx(181,12),s.TgZ(182,"div",73)(183,"mat-form-field",74)(184,"textarea",75,76),s.NdJ("ngModelChange",function($n){return Ut.model.description=$n}),s.ALo(186,"translate"),s._uU(187,"                        "),s.qZA()()(),s.TgZ(188,"div",73)(189,"mat-form-field",74)(190,"textarea",77,78),s.NdJ("ngModelChange",function($n){return Ut.model.note=$n}),s.ALo(192,"translate"),s._uU(193,"                        "),s.qZA(),s.TgZ(194,"mat-hint",79),s._uU(195),s.qZA()()(),s.BQk(),s.qZA()()()(),s._UZ(196,"button",80,81),s.qZA()),2&Gt){const An=s.MAs(61),$n=s.MAs(68),xn=s.MAs(191);s.xp6(10),s.Q6J("ngModelGroup","Job"),s.xp6(1),s.Q6J("ngIf","add"==Ut.formType),s.xp6(1),s.Q6J("ngIf","edit"==Ut.formType||"copy"==Ut.formType),s.xp6(1),s.Q6J("ngModelGroup","Job"),s.xp6(2),s.s9C("placeholder",s.lcZ(16,231,"department")),s.Q6J("ngModel",Ut.model.department)("ngModelGroup",Ut.model.jobId),s.xp6(2),s.Q6J("ngModelGroup","Job"),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("columns",s.DdM(251,se))("ngModel",Ut.model.officeId)("placeholder","office")("data",Ut.offices),s.xp6(1),s.Q6J("hidden",!Ut.allowWorksiteSourceOverride)("ngModelGroup","Job"),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.s9C("placeholder",s.lcZ(23,233,"worksiteSource")),s.Q6J("ngModel",Ut.model.worksiteSourceListItemId)("data",Ut.worksiteSourceList)("columns",s.DdM(252,ne)),s.xp6(2),s.Q6J("ngIf","edit"==Ut.data.action),s.xp6(2),s.Q6J("ngModelGroup","Job"),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.organizationAddressId)("columns",s.DdM(253,_e))("data",Ut.addresses)("placeholder","worksiteAddress"),s.xp6(1),s.Q6J("ngModelGroup","Job"),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.skillId)("columns",Ut.jobPositionColumns)("placeholder","jobPosition")("data",Ut.skills)("emitDefaultSelection",!1),s.xp6(1),s.Q6J("ngModelGroup","Job"),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.s9C("placeholder",s.lcZ(35,235,"jobTitle")),s.Q6J("ngModel",Ut.model.jobTitle),s.xp6(2),s.Q6J("ngModelGroup","Job"),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.s9C("placeholder",s.lcZ(39,237,"requiredNumber")),s.Q6J("min","edit"===Ut.formType?"0":"1")("ngModel",Ut.model.required)("zen-validator","edit"===Ut.formType?"job.requiredZero":"job.required"),s.xp6(7),s.Q6J("ngModelGroup","TempJob"),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.wCCodeId)("columns",s.DdM(254,ge))("placeholder","wCCode")("data",Ut.wCCodes),s.xp6(1),s.Q6J("ngModelGroup","TempJob"),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.jobRateTypeListItemId)("placeholder","jobRateType")("columns",s.DdM(255,z))("emitDefaultSelection",!1)("data",Ut.jobRateTypes),s.xp6(1),s.Q6J("ngModelGroup","Job"),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.shiftId)("columns",Ut.shiftColumns)("placeholder","shift")("emitDefaultSelection",!1)("data",Ut.shifts),s.xp6(2),s.Q6J("ngModelGroup","Job"),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.s9C("placeholder",s.lcZ(58,239,"startDate")),s.Q6J("ngModel",Ut.model.startDate)("max",Ut.model.endDate?Ut.model.endDate:null)("matDatepicker",An),s.xp6(2),s.Q6J("for",An),s.xp6(3),s.Q6J("ngModelGroup","Job"),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.s9C("placeholder",s.lcZ(65,241,"endDate")),s.Q6J("ngModel",Ut.model.endDate)("min",Ut.model.startDate?Ut.model.startDate:null)("matDatepicker",$n),s.xp6(2),s.Q6J("for",$n),s.xp6(3),s.Q6J("ngModelGroup","TempJob"),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.markUpId)("placeholder","markUp")("columns",s.DdM(256,Ce))("data",Ut.markUps),s.xp6(3),s.Q6J("allowEditBillRates",Ut.allowEditBillRates)("showAddNewRow",Ut.loadMore)("transactionCodeList",Ut.transactionCodeList)("gridData",Ut.rateGridData)("markUp",Ut.currentMarkUp)("markUpTouched",Ut.isMarkUpTouched)("defaultRates",Ut.defaultRates)("rateType",Ut.currentJobRateType),s.xp6(2),s.Q6J("fxShow",Ut.loadMore),s.xp6(5),s.Q6J("ngModelGroup","TempJob")("fxShow",Ut.loadMore),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.oTPlanId)("placeholder","oTPlan")("columns",s.DdM(257,z))("data",Ut.oTPlans),s.xp6(1),s.Q6J("ngModelGroup","Job")("fxShow",Ut.loadMore),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.payPeriodListItemId)("placeholder","payPeriod")("columns",s.DdM(258,z))("data",Ut.payPeriods),s.xp6(1),s.Q6J("ngModelGroup","TempJob")("fxShow",Ut.loadMore),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.jobTypeListItemId)("placeholder","jobType")("columns",s.DdM(259,z))("data",Ut.jobTypes),s.xp6(2),s.Q6J("ngModelGroup","Job")("fxShow",Ut.loadMore),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.purchaseOrderNumber)("columns",Ut.purchaseOrderColumns)("placeholder","purchaseOrder")("data",Ut.purchaseOrders),s.xp6(1),s.Q6J("ngModelGroup","Job")("fxShow",Ut.loadMore),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.purchaseOrderNumber)("disabled",Ut.disablePo),s.xp6(2),s.Q6J("ngModelGroup","TempJob")("fxShow",Ut.loadMore),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.discountId)("config",Ut.discounts)("placeholder","discount"),s.xp6(1),s.Q6J("ngModelGroup","TempJob")("fxShow",Ut.loadMore),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.chargeId)("config",Ut.charges)("placeholder","charge"),s.xp6(1),s.Q6J("ngModelGroup","Job")("fxShow",Ut.loadMore),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.creditCardId)("columns",s.DdM(260,Te))("placeholder","creditCard")("data",Ut.creditCards),s.xp6(2),s.Q6J("ngModelGroup","Job")("fxShow",Ut.loadMore),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.s9C("placeholder",null!=Ut.extras&&Ut.extras.extra1Label?null==Ut.extras?null:Ut.extras.extra1Label:"Extra 1"),s.Q6J("ngModel",Ut.model.extra1),s.xp6(2),s.Q6J("ngModelGroup","Job")("fxShow",Ut.loadMore),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.s9C("placeholder",null!=Ut.extras&&Ut.extras.extra2Label?null==Ut.extras?null:Ut.extras.extra2Label:"Extra 2"),s.Q6J("ngModel",Ut.model.extra2),s.xp6(2),s.Q6J("ngModelGroup","Job")("fxShow",Ut.loadMore),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.s9C("placeholder",null!=Ut.extras&&Ut.extras.extra3Label?null==Ut.extras?null:Ut.extras.extra3Label:"Extra 3"),s.Q6J("ngModel",Ut.model.extra3),s.xp6(2),s.Q6J("ngModelGroup","Job")("fxShow",Ut.loadMore),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.s9C("placeholder",null!=Ut.extras&&Ut.extras.extra4Label?null==Ut.extras?null:Ut.extras.extra4Label:"Extra 4"),s.Q6J("ngModel",Ut.model.extra4),s.xp6(3),s.Q6J("ngModelGroup","Job")("fxShow",Ut.loadMore),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.s9C("placeholder",s.lcZ(128,243,"originalRequiredNumber")),s.Q6J("ngModel",Ut.model.originalRequired)("disabled","edit"!=Ut.formType),s.xp6(2),s.Q6J("ngModelGroup","Job")("fxShow",Ut.loadMore),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.contactId)("placeholder","contact")("data",Ut.contactList)("columns",s.DdM(261,De)),s.xp6(1),s.Q6J("fxShow",Ut.loadMore),s.xp6(5),s.Q6J("ngModelGroup","TempJob"),s.xp6(1),s.Q6J("fxShow",Ut.loadMore)("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.durationTypeListItemId)("placeholder","durationType")("columns",s.DdM(262,z))("data",Ut.durationTypes),s.xp6(1),s.Q6J("fxShow",Ut.loadMore)("ngModelGroup",Ut.model.jobId),s.xp6(2),s.s9C("placeholder",s.lcZ(143,245,"duration")),s.Q6J("ngModel",Ut.model.duration),s.xp6(2),s.Q6J("ngModelGroup","Job"),s.xp6(2),s.Q6J("fxShow",Ut.loadMore),s.xp6(1),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.currencyListItemId)("placeholder","currency")("columns",s.DdM(263,z))("data",Ut.currencies),s.xp6(1),s.Q6J("ngModelGroup","Job"),s.xp6(2),s.Q6J("fxShow",Ut.loadMore)("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.monday),s.xp6(2),s.Q6J("fxShow",Ut.loadMore)("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.tuesday),s.xp6(2),s.Q6J("fxShow",Ut.loadMore)("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.wednesday),s.xp6(2),s.Q6J("fxShow",Ut.loadMore)("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.thursday),s.xp6(2),s.Q6J("fxShow",Ut.loadMore)("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.friday),s.xp6(2),s.Q6J("fxShow",Ut.loadMore)("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.saturday),s.xp6(2),s.Q6J("fxShow",Ut.loadMore)("ngModelGroup",Ut.model.jobId),s.xp6(1),s.Q6J("ngModel",Ut.model.sunday),s.xp6(3),s.Q6J("ngModelGroup","Job")("fxShow",Ut.loadMore),s.xp6(1),s.Q6J("ngModel",Ut.model.isAutoUpdate)("ngModelGroup",Ut.model.jobId),s.xp6(7),s.Q6J("ngModelGroup","Job"),s.xp6(2),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.s9C("placeholder",s.lcZ(186,247,"description")),s.Q6J("ngModel",Ut.model.description),s.xp6(5),s.Q6J("ngModelGroup",Ut.model.jobId),s.xp6(1),s.s9C("placeholder",s.lcZ(192,249,"note")),s.Q6J("ngModel",Ut.model.note),s.xp6(5),s.hij("",xn.value.length," / 4000")}},dependencies:[k.O5,e._Y,e.Fj,e.wV,e.JJ,e.JL,e.Q7,e.nD,e.qQ,e.On,e.Mq,e.F,w.xw,w.SQ,w.yH,g.b8,M.IC,p.v_,p.pH,p.nX,E.k0,b.FC,I.i,L.Mq,L.hl,L.nW,D.S,F.p,P.X$],styles:[".job-form-popup .show-hide-extra-fields{text-align:right;cursor:pointer;font-size:12px}.job-form-popup .dialog-content-wrapper{width:65vw;max-height:85vh;display:flex;flex-direction:column}.job-form-popup .dialog-content-wrapper zen-stepper .mat-dialog-content{max-height:85vh}@media screen and (max-width: 599px){.job-form-popup .dialog-content-wrapper zen-stepper .mat-dialog-content{height:auto}}.job-form-popup .dialog-content-wrapper zen-stepper .mat-dialog-content .mat-horizontal-content-container{padding:0;height:calc(85vh - 134px)}@media screen and (max-width: 599px){.job-form-popup .dialog-content-wrapper zen-stepper .mat-dialog-content .mat-horizontal-content-container{height:auto}}.job-form-popup .dialog-content-wrapper zen-tree .tree-tree-cover{height:auto!important}.job-form-popup zen-rate-grid .k-grid-toolbar{overflow:visible}.custom-dropdown.mat-autocomplete-panel.worksite{min-width:75vw!important}.custom-dropdown.mat-autocomplete-panel.worksite mat-table mat-header-row mat-header-cell{padding-left:12px!important}.custom-dropdown.mat-autocomplete-panel.worksite mat-table mat-header-row mat-header-cell.mat-column-note{min-width:30%;max-width:30%}.custom-dropdown.mat-autocomplete-panel.worksite mat-table mat-option{border-bottom:1px solid #e8e8e8;height:auto;white-space:normal;line-height:normal}.custom-dropdown.mat-autocomplete-panel.worksite mat-table mat-option mat-row{align-items:flex-start;min-height:auto;padding:12px 0}.custom-dropdown.mat-autocomplete-panel.worksite mat-table mat-option mat-cell{align-items:flex-start;word-break:break-word;padding-left:12px}.custom-dropdown.mat-autocomplete-panel.worksite mat-table mat-option mat-cell.mat-column-note{min-width:30%;max-width:30%}.custom-dropdown.mat-autocomplete-panel.shift,.custom-dropdown.mat-autocomplete-panel.markup{min-width:38vw!important}\n"],encapsulation:2})}return xe})()},45547:(he,y,i)=>{"use strict";i.d(y,{f:()=>b});var e=i(20180),n=i(21819),o=i(94505),a=i(45754),l=i(23680),u=i(24678),d=i(38034),s=i(30617),A=i(42400),_=i(48424),C=i(51838),R=i(81274),x=i(12430),f=i(89515),k=i(53790),w=i(48979),g=i(18314),M=i(58698),p=i(13868),E=i(65879);let b=(()=>{class I{static#e=this.\u0275fac=function(F){return new(F||I)};static#t=this.\u0275mod=E.oAB({type:I});static#n=this.\u0275inj=E.cJS({imports:[e.L,o.yu,s.Ps,A.x4,R.g0,l.si,_.uw,a.Zh,C.Wd,u.Uc,n.D8,x.L,x.L,f.aw,k.u,d.FA,w.i,g.C,M.b,p.g]})}return I})()},7573:(he,y,i)=>{"use strict";i.d(y,{l:()=>R});var e=i(22096),n=i(7110),o=i(616),a=i(13682),l=i(37398),u=i(96704),d=i(65879),s=i(6738),A=i(74187),_=i(66878),C=i(710);let R=(()=>{class x{constructor(k,w,g,M){this.ws=k,this.us=w,this.dialog=g,this.cs=M,this.basePath=n.XL.settings.apiUrl+"Job/"}save(){const w={jobUrl:this.sharedData.apiUrl+"job/googlejobs?jobId="+this.sharedData.jobId+"&organizationCode="+this.sharedData.organizationCode,organizationCode:this.sharedData.organizationCode};if("jobPortalJob"===this.sharedData.wizardType){if(!this.sharedData.jobPortalJob&&!this.sharedData.portalDescription)return(0,e.of)(!0);const g={jobId:this.sharedData.jobId,portalDescription:this.sharedData.portalDescription,jobTitle:this.sharedData.jobTitle,city:this.sharedData.city,stateId:this.sharedData.stateId,zipCode:this.sharedData.zipCode,jobType:this.sharedData.jobType,postDate:this.sharedData.postDate,payRate:this.sharedData.payRate,jobEmailRecipient:this.sharedData.jobEmailRecipient,jobPostedDate:this.sharedData.jobPostedDate,jobPortalJob:this.sharedData.jobPortalJob,isAlreadyPostedJob:this.sharedData.isAlreadyPostedJob};return this.sharedData.showZipRecruiterPanel&&(g.compensationMinAmount=this.sharedData.compensationMinAmount,g.compensationMaxAmount=this.sharedData.compensationMaxAmount,g.compensationIntervalListItemId=this.sharedData.compensationIntervalListItemId,g.currencyListItemId=this.sharedData.currencyListItemId,g.experienceLevelListItemId=this.sharedData.experienceLevelListItemId,g.educationDegreeListItemId=this.sharedData.educationDegreeListItemId,g.benefitListItemId=this.sharedData.benefitListItemId),this.sharedData.showHaleyPanel&&(g.maximumPay=this.sharedData.maximumPay,g.minimumPay=this.sharedData.minimumPay,g.email=this.sharedData.email,g.date=this.sharedData.date),this.sharedData.showIndeedPanel&&(g.resume=this.sharedData.resume,g.screeningQuestion=this.sharedData.screeningQuestion),this.ws.post(this.basePath+"JobPortalJob",{json:JSON.stringify(g,this.us.dateReplacer)}).pipe((0,l.U)(M=>!!M&&(this.sharedData.jobPortalJobResult=M,(this.sharedData.updated||this.sharedData.showGooglePanel)&&this.indexGoogleJob(w),!0)))}{const g=this.sharedData.entity,M={...this.sharedData.jobForm};return this.sharedData.jobPortalJobForm&&(M.jobPortalId=this.sharedData.jobPortalJobForm.jobPortalId,M.portalDescription=this.sharedData.jobPortalJobForm.portalDescription,M.jobPortalJobDate=this.sharedData.jobPortalJobForm.date),this.sharedData.skillAddForm&&(M.skillIdList=this.sharedData.skillAddForm.skillIdList),this.CreateJob(M,g).pipe((0,l.U)(p=>!!(p&&p.directory&&p.directory.data[0].jobId>0)&&(this.sharedData.job=p.directory.data[0],this.sharedData.entityId=this.sharedData.job.jobId,this.cs.onJobUpdated.next({entity:"job",value:M}),!0)))}}indexGoogleJob(k){return this.ws.post(this.basePath+"GoogleIndexTask",{Json:JSON.stringify(k)}).subscribe(w=>{if(w)return!0},w=>{this.us.callSnackBar("jobIndexFailedOnGoogleJobs","error")})}CreateJob(k,w){return this.ws.post(this.basePath+"Job",{json:JSON.stringify(k,this.us.dateReplacer),entity:w})}wizardSteps(k){return[{component:"directhirejob"===this.entity?.toLowerCase()?u.h:a.Z,data:{data:{},action:k,formType:k},completed:!1,name:"Job"}]}openJobStepper(k,w,g){return this.entity=w?.entity,g||(g=this.wizardSteps(k)),this.dialog.open(o.o,{panelClass:"job-form-popup",data:{steps:g,title:k.toLowerCase()+"Job",service:g.length>1?this:null,sharedData:w,saveWithPromise:!0,customClass:"JobStepperCustomClass",formType:k,validateWithPromise:"directhirejob"!==this.entity?.toLowerCase()}})}static#e=this.\u0275fac=function(w){return new(w||x)(d.LFG(s.f),d.LFG(A.t),d.LFG(_.on),d.LFG(C.v))};static#t=this.\u0275prov=d.Yz7({token:x,factory:x.\u0275fac})}return x})()},49155:(he,y,i)=>{"use strict";i.d(y,{O:()=>A});var e=i(65619),n=i(7110),o=i(10509),a=i(65879),l=i(64190),u=i(66878),d=i(74187),s=i(6738);let A=(()=>{class _{constructor(R,x,f,k){this.router=R,this.dialog=x,this.us=f,this.ws=k,this.directory="",this.constants=o.l,this.onJobSelected=new e.X({}),this.basePath=n.XL.settings.apiUrl+"Job/"}resolve(R,x){return this.routeParams=R.params,this.currentApp=R.data.app,this.setDirectoryName(this.currentApp),new Promise((f,k)=>{Promise.all([]).then(()=>{f(!0)},k)})}jobDirectory(R,x=!1){return new Promise((f,k)=>{this.getJobs(R,x).subscribe(w=>{f(w)},k)})}getJobs(R,x=!1){return this.ws.post(n.XL.settings.apiUrl+"Common/Directory",{Json:JSON.stringify(R),refresh:x},null,null,!0)}jobJobPortal(R,x=!1){return this.ws.get(this.basePath+"JobJobPortal",{Json:JSON.stringify(R),refresh:x},null,!0)}jobSnapshot(R){return this.ws.get(this.basePath+"JobSnapshot",{json:JSON.stringify({jobId:R})})}jobOption(R){return this.ws.get(this.basePath+"JobOption",{json:JSON.stringify(R)})}job(R){return this.ws.get(this.basePath+"Job",{json:JSON.stringify(R),entity:this.currentApp})}createJob(R,x){return this.ws.post(this.basePath+"Job",{json:JSON.stringify(R,this.us.dateReplacer),entity:x??this.directory})}getJobCandidate(R,x=!1){return this.ws.get(this.basePath+"JobCandidate",{json:JSON.stringify(R),refresh:x},null,!0)}getJobCandidatePerson(R,x=!1){return this.ws.get(this.basePath+"JobCandidatePerson",{json:JSON.stringify(R),refresh:x},null,!0)}getOrganizationJobPositionShift(R,x=!1){return this.ws.get(this.basePath+"OrganizationJobPositionShift",{json:JSON.stringify(R),refresh:x},null,!0)}insertJobCandidate(R){return this.ws.post(this.basePath+"JobCandidate",{json:JSON.stringify(R)})}getOrganizationJobPortal(R,x){return this.ws.get(this.basePath+"OrganizationJobPortal",{json:R,refresh:x},null,!0)}insertJobPortalJob(R){return this.ws.post(this.basePath+"JobPortalJob",{json:JSON.stringify(R,this.us.dateReplacer)})}getJobPortalGrid(R){return this.ws.get(this.basePath+"JobPortalGrid",{refresh:R},null,!0)}getJobRate(R,x=!1){return this.ws.get(this.basePath+"JobRate",{json:R,refresh:x},null,!0)}getAssignmentRate(R,x=!1){return this.ws.get(n.XL.settings.apiUrl+"Assignment/AssignmentRate",{json:R,refresh:x},null,!0)}getOrganizationMarkUp(R,x){return this.ws.get(this.basePath+"OrganizationMarkUp",{json:R,refresh:x},null,!0)}InsertJobAssignment(R,x){return this.ws.post(this.basePath+"JobAssignment",{json:JSON.stringify(R,this.us.dateReplacer),entity:x})}CopyJobAssignment(R){return this.ws.post(this.basePath+"CopyJobAssignment",{json:JSON.stringify(R,this.us.dateReplacer)})}getJob(R){return this.ws.get(this.basePath+"Job",{json:JSON.stringify(R)})}insertJobRate(R){return this.ws.post(this.basePath+"JobRate",{json:JSON.stringify(R)})}updateJob(R){return this.ws.post(this.basePath+"JobUpdate",{json:JSON.stringify(R,this.us.dateReplacer)})}updateJobAndAssignmentMarkup(R){return this.ws.post(this.basePath+"JobAndAssignmentMarkupUpd",{json:JSON.stringify(R)})}getJobInterview(R,x){return this.ws.get(this.basePath+"JobInterview",{json:JSON.stringify(R),refresh:x},null)}getJobInterviewQuestion(R,x){return this.ws.get(this.basePath+"JobInterviewQuestion",{json:JSON.stringify(R),refresh:x})}insertJobInterview(R){return this.ws.post(this.basePath+"JobInterview?json="+JSON.stringify(R))}getJobServiceBatch(R){return this.ws.get(this.basePath+"GetJobServiceBatch",{json:R},null)}getEmailServiceBatch(R){return this.ws.get(this.basePath+"GetEmailServiceBatch",{json:R},null)}getShift(R){return this.ws.get(n.XL.settings.apiUrl+"Organization/Shift",{json:R},null)}setDirectoryName(R){switch(R){case o.l.TempJob:this.directory="TempJob";break;case o.l.DirectHireJob:this.directory="DirectHireJob";break;default:this.directory="TempJob"}}static#e=this.\u0275fac=function(x){return new(x||_)(a.LFG(l.F0),a.LFG(u.on),a.LFG(d.t),a.LFG(s.f))};static#t=this.\u0275prov=a.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"})}return _})()},13315:(he,y,i)=>{"use strict";i.d(y,{P:()=>l});var e=i(20180),n=i(48979),o=i(51838),a=i(65879);let l=(()=>{class u{static#e=this.\u0275fac=function(A){return new(A||u)};static#t=this.\u0275mod=a.oAB({type:u});static#n=this.\u0275inj=a.cJS({imports:[e.L,o.Wd,n.i]})}return u})()},24048:(he,y,i)=>{"use strict";i.d(y,{y:()=>_});var e=i(89515),n=i(81274),o=i(20180),a=i(84187),l=i(42400),u=i(30617),d=i(94505),s=i(51838),A=i(65879);let _=(()=>{class C{static#e=this.\u0275fac=function(f){return new(f||C)};static#t=this.\u0275mod=A.oAB({type:C});static#n=this.\u0275inj=A.cJS({imports:[o.L,n.g0,u.Ps,d.yu,s.Wd,a.wp,l.x4,e.aw]})}return C})()},55066:(he,y,i)=>{"use strict";i.d(y,{f:()=>yi});var e=i(78645),n=i(59773),o=i(616),a=i(94748),l=i(22096),u=i(47394),d=i(37398),s=i(65879),A=i(710),_=i(20012),C=i(74187),R=i(96814),x=i(56223),f=i(83814),k=i(27509),w=i(84187),g=i(42400),M=i(65139),p=i(82012),E=i(45754),b=i(30481),I=i(89515);const L=["departmentForm"],D=["sbtn"],F=["formElement"];function P(nn,Mi){if(1&nn){const mi=s.EpF();s.TgZ(0,"mat-checkbox",20),s.NdJ("change",function(Ko){const Bn=s.CHM(mi).$implicit,Xt=s.oxw(2);return s.KtG(Xt.copyFromParentCbChange(Ko,Bn.name))}),s.ALo(1,"translate"),s._uU(2),s.ALo(3,"translate"),s.qZA()}if(2&nn){const mi=Mi.$implicit;s.s9C("name",s.lcZ(1,3,mi.name)),s.Q6J("checked",mi.checked),s.xp6(2),s.hij(" ",s.lcZ(3,5,mi.name)," ")}}function O(nn,Mi){if(1&nn){const mi=s.EpF();s.TgZ(0,"fieldset",5)(1,"legend")(2,"label",6),s._uU(3),s.ALo(4,"translate"),s.qZA()(),s.TgZ(5,"div",16)(6,"mat-checkbox",17),s.NdJ("change",function(Ko){s.CHM(mi);const xo=s.oxw();return s.KtG(xo.checkAllChange(Ko))}),s.ALo(7,"translate"),s._uU(8),s.ALo(9,"translate"),s.qZA()(),s.TgZ(10,"div",18),s.YNc(11,P,4,7,"mat-checkbox",19),s.qZA()()}if(2&nn){const mi=s.oxw();s.xp6(3),s.Oqu(s.lcZ(4,4,"copyFromParent")),s.xp6(3),s.s9C("name",s.lcZ(7,6,"checkAll")),s.xp6(2),s.hij(" ",s.lcZ(9,8,"checkAll")," "),s.xp6(3),s.Q6J("ngForOf",mi.copyFromParentCb)}}const U=function(){return["office"]};let V=(()=>{class nn{activate(){}validate(mi){return(0,l.of)(!(this.departmentForm&&!this.departmentForm.valid))}save(){return this.ds.addEditDepartment({entity:this.entity,copyBit:this.copyFromParentParam.length>0?1:0,organizationData:[{entityType:"Department",organizationId:0,officeId:this.departmentModel.officeId,department:this.departmentModel.department,organization:this.departmentModel.organization,organizationStatusListItem:this.organizationStatusListItem,parentOrganizationId:this.departmentModel.organizationId}],copyFromData:{organizationId:0,copyFromOrganizationId:this.departmentModel.organizationId,copyList:this.copyFromParentParam.join(",")}},!0).pipe((0,n.R)(this._unsubscribeAll),(0,d.U)(mi=>mi?"duplicateDepartment"===mi.result?(this.us.callSnackBar("duplicateDepartment","warning"),!1):(mi.directory&&mi.directory.data&&(this.sharedData.newDepartment=mi.directory.data[0]),this.us.callSnackBar("departmentAddedSucessfully","success"),!0):(this.us.callSnackBar("failedToAddDepartment","error"),!1)))}stepperClose(){return{response:!(!this.departmentForm||!this.departmentForm.dirty),message:"areYouSureYouWantToDiscardChanges"}}constructor(mi,Eo,Ko){this.cs=mi,this.ds=Eo,this.us=Ko,this.subs=new u.w0,this.officeList=[],this.departmentList=[],this.departmentModel={},this.copyFromParentCb=[{name:"address",checked:!1},{name:"contactRole",checked:!1},{name:"salesProfile",checked:!1},{name:"markUp",checked:!1},{name:"serviceProfile",checked:!1},{name:"shift",checked:!1},{name:"userRole",checked:!1},{name:"wCCode",checked:!1},{name:"jobPosition",checked:!1}],this.copyFromParentParam=[],this.checkedCount=0,this._unsubscribeAll=new e.x}ngOnInit(){this.action=this.data.action,this.entity=this.data.entity,this.departmentModel.organization=this.data.organization,this.departmentModel.organizationId=this.data.organizationId,this.departmentModel.currentDepartment=this.data.department,this.organizationStatusListItem=this.data.status,this.getOrganizationOfficeList()}getOrganizationOfficeList(){this.cs.getCompanyOfficeByOrganization(this.departmentModel.organizationId).pipe((0,n.R)(this._unsubscribeAll)).subscribe(mi=>{mi?(this.departmentModel.officeId=this.data.officeId,this.officeList=mi):this.us.callSnackBar("failedToLoadOffice","error")})}checkAllChange(mi){mi&&mi.checked?(this.copyFromParentParam=this.copyFromParentCb.map(Eo=>Eo.name),this.copyFromParentCb.forEach(Eo=>{Eo.checked=!0})):(this.copyFromParentParam=[],this.copyFromParentCb.forEach(Eo=>{Eo.checked=!1}))}copyFromParentCbChange(mi,Eo){mi&&mi.checked?(this.copyFromParentParam.push(Eo),"jobPosition"===Eo&&this.us.callSnackBar("jobPositionCopy","info")):this.copyFromParentParam=this.copyFromParentParam.filter(Ko=>Ko!==Eo)}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Eo){return new(Eo||nn)(s.Y36(A.v),s.Y36(_.Z),s.Y36(C.t))};static#t=this.\u0275cmp=s.Xpm({type:nn,selectors:[["department"]],viewQuery:function(Eo,Ko){if(1&Eo&&(s.Gf(L,5),s.Gf(D,5),s.Gf(F,5)),2&Eo){let xo;s.iGM(xo=s.CRH())&&(Ko.departmentForm=xo.first),s.iGM(xo=s.CRH())&&(Ko.submitBtn=xo.first),s.iGM(xo=s.CRH())&&(Ko.formElement=xo.first)}},decls:29,vars:29,consts:[[1,"delta-in"],["fxLayout","row wrap"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","10px",1,"w-100-p"],["name","departmentForm",1,"w-100-p","department-add-edit-form",3,"keydown.enter"],["formElement","","departmentForm","ngForm"],["fxLayout","column",1,"mb-12"],[1,"m-0","p-0","text-center"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","10px"],["fxFlex",""],["matInput","","name","organization","zen-validator","department.organization","disabled","",2,"text-overflow","ellipsis",3,"placeholder","ngModel","matTooltip","ngModelChange"],["matInput","","name","currentDepartment","maxlength","100","zen-validator","department.currentDepartment","disabled","","required","",2,"text-overflow","ellipsis",3,"placeholder","ngModel","matTooltip","ngModelChange"],["matInput","","zen-validator","department.department","name","department","required","","maxlength","100",3,"placeholder","ngModel","ngModelChange"],["name","officeId","nameField","office","valueField","officeId","autofocus","","required","",1,"zen-select","chip-black",3,"data","ngModel","placeholder","columns","ngModelChange"],["fxLayout","column","class","mb-12",4,"ngIf"],["fxHide","","type","submit"],["sbtn",""],[1,"mb-12"],[1,"header-copy-chk",3,"name","change"],[1,"mb-12","mt-12"],["style","margin: 5px;",3,"name","checked","change",4,"ngFor","ngForOf"],[2,"margin","5px",3,"name","checked","change"]],template:function(Eo,Ko){1&Eo&&(s.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"form",3,4),s.NdJ("keydown.enter",function(Bn){return Bn.preventDefault()}),s.TgZ(6,"fieldset",5)(7,"legend")(8,"label",6),s._uU(9),s.ALo(10,"translate"),s.qZA()(),s.TgZ(11,"div",7)(12,"mat-form-field",8)(13,"input",9),s.NdJ("ngModelChange",function(Bn){return Ko.departmentModel.organization=Bn}),s.ALo(14,"translate"),s.ALo(15,"translate"),s.qZA()(),s.TgZ(16,"mat-form-field",8)(17,"input",10),s.NdJ("ngModelChange",function(Bn){return Ko.departmentModel.currentDepartment=Bn}),s.ALo(18,"translate"),s.ALo(19,"translate"),s.qZA()(),s.TgZ(20,"mat-form-field",8)(21,"input",11),s.NdJ("ngModelChange",function(Bn){return Ko.departmentModel.department=Bn}),s.ALo(22,"translate"),s.qZA()(),s.TgZ(23,"div",8)(24,"zen-select",12),s.NdJ("ngModelChange",function(Bn){return Ko.departmentModel.officeId=Bn}),s.ALo(25,"translate"),s.qZA()()()(),s.YNc(26,O,12,10,"fieldset",13),s._UZ(27,"button",14,15),s.qZA()()()()),2&Eo&&(s.xp6(9),s.Oqu(s.lcZ(10,14,"organization")),s.xp6(4),s.s9C("placeholder",s.lcZ(14,16,"organization")),s.s9C("matTooltip",s.lcZ(15,18,Ko.departmentModel.organization)),s.Q6J("ngModel",Ko.departmentModel.organization),s.xp6(4),s.s9C("placeholder",s.lcZ(18,20,"currentDepartment")),s.s9C("matTooltip",s.lcZ(19,22,Ko.departmentModel.currentDepartment)),s.Q6J("ngModel",Ko.departmentModel.currentDepartment),s.xp6(4),s.s9C("placeholder",s.lcZ(22,24,"department")),s.Q6J("ngModel",Ko.departmentModel.department),s.xp6(3),s.s9C("placeholder",s.lcZ(25,26,"office")),s.Q6J("data",Ko.officeList)("ngModel",Ko.departmentModel.officeId)("columns",s.DdM(28,U)),s.xp6(2),s.Q6J("ngIf","Add"==Ko.action))},dependencies:[R.sg,R.O5,x._Y,x.Fj,x.JJ,x.JL,x.Q7,x.nD,x.On,x.F,f.xw,f.SQ,f.Wh,f.yH,k.b8,w.v_,g.k0,M.p,p.i,E.FC,b.Kd,I.X$],styles:[".department-add-edit-popup .mat-dialog-container{padding:0}.department-add-edit-popup .dialog-content-wrapper{width:1000px;display:flex;flex-direction:column}@media screen and (max-width: 599px){.department-add-edit-popup .dialog-content-wrapper{width:auto}}.department-add-edit-popup .dialog-content-wrapper .mat-horizontal-content-container{padding:0;height:auto}.department-add-edit-popup .dialog-content-wrapper .department-add-edit-form .header-copy-chk{margin-left:5px;font-weight:700;font-size:large}\n"],encapsulation:2})}return nn})();var K=i(98447),X=i(62828),me=i(20305),J=i(23605),Q=i(9805),re=i(4295),de=i(28011),te=i(39059),j=i(66878),H=i(60930),z=i(79907),q=i(61371),se=i(86853),ne=i(49919),_e=i(25800);function ge(nn,Mi){if(1&nn&&(s.ynx(0),s._UZ(1,"organization-entity-detail-template-mobile",3),s.BQk()),2&nn){const mi=s.oxw();s.xp6(1),s.Q6J("context",mi)}}function Ce(nn,Mi){if(1&nn){const mi=s.EpF();s.TgZ(0,"organization-tree",6),s.NdJ("onDepartmentChange",function(Ko){s.CHM(mi);const xo=s.oxw(2);return s.KtG(xo.onDepartmentChange(Ko))}),s.qZA()}if(2&nn){const mi=s.oxw(2);s.Q6J("entityData",mi.entityData)}}function Te(nn,Mi){if(1&nn){const mi=s.EpF();s.TgZ(0,"fuse-sidebar",4),s.NdJ("click",function(Ko){s.CHM(mi);const xo=s.oxw();return s.KtG(xo.fuseSidebarClick(Ko))}),s.YNc(1,Ce,1,1,"organization-tree",5),s.qZA()}if(2&nn){const mi=s.oxw();s.Q6J("ngClass",mi.deptTreeClass),s.xp6(1),s.Q6J("ngIf",mi.showOrganizationTree)}}function De(nn,Mi){1&nn&&s._UZ(0,"entity-image")}function fe(nn,Mi){if(1&nn&&(s.TgZ(0,"li")(1,"a",42),s._UZ(2,"i",43),s.qZA()()),2&nn){const mi=s.oxw(4);s.xp6(1),s.Tol(mi.selectedEntity.facebook?"facebook":"disable-link"),s.s9C("href",mi.selectedEntity.facebook,s.LSH)}}function xe(nn,Mi){if(1&nn&&(s.TgZ(0,"li")(1,"a",42),s._UZ(2,"i",44),s.qZA()()),2&nn){const mi=s.oxw(4);s.xp6(1),s.Tol(mi.selectedEntity.twitter?"mr-4 twitter":"disable-link"),s.s9C("href",mi.selectedEntity.twitter,s.LSH)}}function Oe(nn,Mi){if(1&nn&&(s.TgZ(0,"li")(1,"a",42),s._UZ(2,"i",45),s.qZA()()),2&nn){const mi=s.oxw(4);s.xp6(1),s.Tol(mi.selectedEntity.linkedIn?"mr-4 linkedin":"disable-link"),s.s9C("href",mi.selectedEntity.linkedIn,s.LSH)}}function Le(nn,Mi){if(1&nn&&(s.TgZ(0,"div",40)(1,"ul",41),s.YNc(2,fe,3,3,"li",0),s.YNc(3,xe,3,3,"li",0),s.YNc(4,Oe,3,3,"li",0),s.qZA()()),2&nn){const mi=s.oxw(3);s.xp6(2),s.Q6J("ngIf",mi.selectedEntity.facebook),s.xp6(1),s.Q6J("ngIf",mi.selectedEntity.twitter),s.xp6(1),s.Q6J("ngIf",mi.selectedEntity.linkedIn)}}function Gt(nn,Mi){if(1&nn){const mi=s.EpF();s.TgZ(0,"zen-navigation-action",46,47),s.NdJ("onFavoriteActionClick",function(Ko){s.CHM(mi);const xo=s.oxw(3);return s.KtG(xo.favoriteIconClickAction(Ko))}),s.qZA()}if(2&nn){const mi=s.oxw(3);s.Q6J("json",mi.json)}}function Ut(nn,Mi){1&nn&&s._UZ(0,"span",48)}function An(nn,Mi){1&nn&&s._UZ(0,"span",49)}function $n(nn,Mi){if(1&nn&&(s.TgZ(0,"p",36)(1,"mat-icon",50),s.ALo(2,"translate"),s._uU(3," business"),s.qZA(),s.TgZ(4,"span",51),s._uU(5),s.qZA()()),2&nn){const mi=s.oxw(3);s.xp6(1),s.s9C("matTooltip",s.lcZ(2,2,"department")),s.xp6(4),s.hij(" ",mi.selectedEntity.department," ")}}function xn(nn,Mi){if(1&nn&&(s.TgZ(0,"span",54),s._uU(1),s.qZA()),2&nn){const mi=s.oxw(4);s.xp6(1),s.hij(" | Ext. ",mi.organizationService.phoneExtension,"")}}function mt(nn,Mi){if(1&nn&&(s.TgZ(0,"p",36)(1,"mat-icon",37),s.ALo(2,"translate"),s._uU(3,"phone"),s.qZA(),s.TgZ(4,"span",52),s._uU(5),s.YNc(6,xn,2,1,"span",53),s.qZA()()),2&nn){const mi=s.oxw(3);s.xp6(1),s.s9C("matTooltip",s.lcZ(2,3,"phone")),s.xp6(4),s.hij(" ",mi.organizationService.primaryPhoneNumber," "),s.xp6(1),s.Q6J("ngIf",mi.organizationService.phoneExtension)}}function ut(nn,Mi){if(1&nn&&(s.TgZ(0,"div",55),s._UZ(1,"workflow-detail",56),s.qZA()),2&nn){const mi=s.oxw(3);s.Tol("customer"==mi.entityData.entity.toLowerCase()||"agency"==mi.entityData.entity.toLowerCase()?"hide-workflow-stage":"workflow-holder"),s.xp6(1),s.Q6J("entityDetailData",mi.entityData)}}function Wt(nn,Mi){if(1&nn&&(s.ynx(0),s.TgZ(1,"div",57)(2,"div",58)(3,"div",59)(4,"div",60)(5,"mat-icon"),s._uU(6,"attach_money"),s.qZA(),s.TgZ(7,"strong",61),s._uU(8),s.qZA()(),s._UZ(9,"div",62),s.TgZ(10,"span"),s._uU(11),s.ALo(12,"translate"),s.qZA()(),s.TgZ(13,"div",59)(14,"div",60)(15,"mat-icon"),s._uU(16,"work_outline"),s.qZA(),s.TgZ(17,"strong",63),s._uU(18),s.qZA()(),s._UZ(19,"div",62),s.TgZ(20,"span"),s._uU(21,"Current Job Count"),s.qZA()(),s.TgZ(22,"div",59)(23,"div",60)(24,"mat-icon"),s._uU(25,"assignment"),s.qZA(),s.TgZ(26,"strong",64),s._uU(27),s.qZA()(),s._UZ(28,"div",62),s.TgZ(29,"span"),s._uU(30),s.ALo(31,"translate"),s.qZA()()()(),s.BQk()),2&nn){const mi=s.oxw(3);s.xp6(8),s.Oqu(mi.selectedEntity.aRBalance?mi.selectedEntity.aRBalance:0),s.xp6(3),s.Oqu(s.lcZ(12,5,"aRBalance")),s.xp6(7),s.Oqu(mi.selectedEntity.openJobCount?mi.selectedEntity.openJobCount:0),s.xp6(9),s.Oqu(mi.selectedEntity.activeAssignment?mi.selectedEntity.activeAssignment:0),s.xp6(3),s.Oqu(s.lcZ(31,7,"activeAssignment"))}}const dn=function(){return{"margin-top.px":10}};function sn(nn,Mi){if(1&nn&&(s.TgZ(0,"div",9)(1,"div",10)(2,"div",11)(3,"div",12),s.YNc(4,De,1,0,"entity-image",0),s.YNc(5,Le,5,3,"div",13),s.qZA()()(),s.TgZ(6,"div",14)(7,"div",15)(8,"div",16)(9,"div",17)(10,"div",18),s.YNc(11,Gt,2,1,"zen-navigation-action",19),s.qZA()()(),s.TgZ(12,"div",20)(13,"div",21)(14,"div",22)(15,"div",23)(16,"div",24)(17,"span",25),s._uU(18),s.qZA(),s.TgZ(19,"span",26),s.YNc(20,Ut,1,0,"span",27),s.YNc(21,An,1,0,"span",28),s._uU(22),s.qZA()()(),s.TgZ(23,"div",29)(24,"span")(25,"b",30),s.ALo(26,"translate"),s._uU(27,"#"),s.qZA(),s.TgZ(28,"span",31),s._uU(29),s.qZA()()(),s.TgZ(30,"div",32)(31,"mat-icon",33),s.ALo(32,"translate"),s.ALo(33,"translate"),s._uU(34,"account_balance"),s.qZA(),s.TgZ(35,"span",34),s._uU(36),s.qZA()(),s.YNc(37,$n,6,4,"p",35),s.TgZ(38,"p",36)(39,"mat-icon",37),s.ALo(40,"translate"),s._uU(41,"location_on"),s.qZA(),s.TgZ(42,"span",38),s._uU(43),s.qZA()(),s.YNc(44,mt,7,5,"p",35),s.qZA(),s.YNc(45,ut,2,3,"div",39),s.YNc(46,Wt,32,9,"ng-container",0),s.qZA()()()()()),2&nn){const mi=s.oxw(2);s.xp6(4),s.Q6J("ngIf",mi.entity),s.xp6(1),s.Q6J("ngIf",(null==mi.selectedEntity?null:mi.selectedEntity.facebook)||(null==mi.selectedEntity?null:mi.selectedEntity.twitter)||(null==mi.selectedEntity?null:mi.selectedEntity.linkedIn)),s.xp6(6),s.Q6J("ngIf",mi.json&&mi.json.navigationId),s.xp6(4),s.Q6J("ngStyle.xs",s.DdM(29,dn)),s.xp6(3),s.Oqu(mi.selectedEntity.organization),s.xp6(2),s.Q6J("ngIf",mi.isStatusActive),s.xp6(1),s.Q6J("ngIf",!mi.isStatusActive),s.xp6(1),s.hij(" ",mi.selectedEntity.status," "),s.xp6(3),s.s9C("matTooltip",s.lcZ(26,21,"organizationId")),s.xp6(4),s.hij(" ",mi.selectedEntity.organizationId," "),s.xp6(2),s.hYB("matTooltip","",s.lcZ(32,23,"office")," | ",s.lcZ(33,25,"company"),""),s.xp6(5),s.lnq(" ",null==mi.selectedEntity?null:mi.selectedEntity.office," ",null!=mi.selectedEntity&&mi.selectedEntity.office&&null!=mi.selectedEntity&&mi.selectedEntity.tenantOrganization?"|":""," ",null==mi.selectedEntity?null:mi.selectedEntity.tenantOrganization,""),s.xp6(1),s.Q6J("ngIf","newcustomer"==mi.entityData.entity.toLowerCase()||"customer"==mi.entityData.entity.toLowerCase()),s.xp6(2),s.s9C("matTooltip",s.lcZ(40,27,"address")),s.xp6(4),s.hij(" ",mi.selectedEntity.address," "),s.xp6(1),s.Q6J("ngIf",mi.organizationService.primaryPhoneNumber),s.xp6(1),s.Q6J("ngIf",mi.showWorkflowDetail),s.xp6(1),s.Q6J("ngIf","customer"==mi.entityData.entity.toLowerCase())}}function fn(nn,Mi){1&nn&&(s.TgZ(0,"div",7),s.YNc(1,sn,47,30,"div",8),s.qZA())}let yi=(()=>{class nn extends J.g{constructor(mi,Eo,Ko,xo,Bn,Xt,Ji,En,un,Ki,Fn){super(),this.eds=mi,this.utilityService=Eo,this.taskService=Ko,this.dialog=xo,this.commonService=Bn,this.organizationService=Xt,this._fuseSidebarService=Ji,this.personService=En,this.tos=un,this.snapshotService=Ki,this.reportUtilityService=Fn,this.workflowEntities=["Lead","Target","NewCustomer"],this.moveNextData={entity:"",entityId:"",manualCheck:1},this.moveNextWorkflow={entity:"",entityId:"",nextEntity:""},this.isMobile=!1,this.entityMapping={newcustomer:"New Customer"},this.entityTitle="",this._unsubscribeAll=new e.x}ngOnInit(){this.isMobileResolution.pipe((0,n.R)(this._unsubscribeAll)).subscribe(mi=>{this.isMobile=mi}),this.commonService.onContactInfoUpdate.pipe((0,n.R)(this._unsubscribeAll)).subscribe(mi=>{mi&&"contactinfo"==mi?.entity?.toLowerCase()&&this.refreshTopHeaderPanelInfo()}),this.utilityService.onPrimaryAddressChange.pipe((0,n.R)(this._unsubscribeAll)).subscribe(mi=>{mi&&(this.selectedEntity.address=mi)}),this.onEntityChange(),this.setNavigationActionJson(),this.isNavigationPin=this.utilityService.getLocalStorage("isNavigationPin"),this.checkNavPin(),this.utilityService.onToggleNavBar.pipe((0,n.R)(this._unsubscribeAll)).subscribe(mi=>{null!=mi&&(this.isNavigationPin=mi,this.checkNavPin())}),this.commonService.onJobUpdated.pipe((0,n.R)(this._unsubscribeAll)).subscribe(mi=>{mi&&(mi?.newJobAdded||mi?.statusUpdated)&&this.refreshTopHeaderPanelInfo()})}checkNavPin(){this.deptTreeClass=this.isNavigationPin?"sidebar main-sideba organization-tree-cover":"sidebar main-sideba organization-tree-cover-all"}onEntityChange(){this.entityData=this.eds.getCurrentEntityDetail(),this.entity=this.entityData.entity,this.entityTitle=this.entityMapping[this.entity?.toLowerCase()]?this.entityMapping[this.entity?.toLowerCase()]:this.entity,this.selectedEntity=this.entityData.gridDataItem,this.isStatusActive=!(!this.selectedEntity.statusAppliesActive&&"1"!=this.selectedEntity?.listItemPropertyValue),this.organizationService.primaryPhoneNumber=this.selectedEntity.phone,this.organizationService.phoneExtension=this.selectedEntity.extension,this.personService.currentPersonDetail.pipe((0,n.R)(this._unsubscribeAll)).subscribe(mi=>{this.currentPersonDetail=mi}),this.showOrHideWorkFlowDetail(),this.utilityService.reloadEntityImage.next({entity:this.entityData?.entity,entityId:this.entityData?.entityId,refresh:!0})}showOrHideWorkFlowDetail(){this.workflowEntities.findIndex(mi=>mi.toLowerCase()===this.entityData.entity.toLowerCase())>-1&&(this.showWorkflowDetail=!0)}setNavigationActionJson(){this.json={directory:this.entityData.entity,navigationId:this.entityData.parentNavigationId,navigationActionType:"single",optionProperty:"DetailFavoriteAction",applicationId:this.entityData.applicationId}}favoriteIconClickAction(mi){switch(this.showOrganizationTree=!1,mi.title.toLowerCase()){case"movetonextstage":this.askMoveToNextStage();break;case"movetonextworkflow":this.askMoveToNextWorkflow();break;case"edit":this.openEditForms(mi.title);break;case"discard":this.askToDiscard();break;case"refresh":this.refreshTopHeaderPanelInfo();break;case"adddepartment":this.addDepartment();break;case"viewdepartment":case"department":this.openDepartmentTree();break;case"addastenantorganization":this.openAddAsOrganizationDialog();break;case"initiatecustomeronboarding":this.initiateCustomerOnboarding();break;case"auditlogreport":this.reportUtilityService.openReport({report:"AuditLog",reportId:null,title:"AuditLog",reportType:"SpreadsheetReport",parameterValueMap:[{key:"RelatesTo",value:(this.entityData.entity||"").toLowerCase()},{key:"RelatesToValue",value:(this.entityData.entityId||"").toString()}]});break;case"favorite":this.openFavoriteForm();break;case"share":this.shareEntity()}}openFavoriteForm(){if(this.entityData){let mi=[];mi.push({entity:this.entityData.entity,entityId:this.entityData.entityId}),this.dialog.open(Q.X,{panelClass:"favorite-dialog",data:{entity:this.entityData.entity,entityList:mi},disableClose:!0}).afterClosed().subscribe(Ko=>{})}else this.utilityService.callSnackBar("noPersonSelected","warning")}initiateCustomerOnboarding(){const mi={organizationId:this.entityData.entityId};this.utilityService.openConfirmDialog({headerText:"confirm",confirmationText:"confirmInitiateCustomerOnboarding"}),this.utilityService.confirmDialogAction.pipe((0,n.R)(this._unsubscribeAll)).subscribe(Ko=>{Ko&&("yes"===Ko&&this.commonService.initiateCustomerOnboarding(mi).subscribe(xo=>{xo&&1==xo.success?this.utilityService.callSnackBar("initiateCustomerOnboardingSuccessfully","success"):this.utilityService.callSnackBar("customerMustBeLSQFundedOrClientFunded","info")}),this.utilityService.closeConfirmDialog())})}onDepartmentChange(mi){this.onEntityChange(),this._fuseSidebarService.getSidebar("department-tree").close()}openDepartmentTree(){this.showOrganizationTree=!0,this.entityData={...this.entityData},this._fuseSidebarService.getSidebar("department-tree").open()}fuseSidebarClick(mi){"department-tree"===mi.target.id&&this._fuseSidebarService.getSidebar("department-tree").close()}addDepartment(){this.dialog.open(o.o,{panelClass:"department-add-edit-popup",data:{title:"addDepartment",steps:[{component:V,data:{action:"Add",entity:this.entityData.entity,organizationId:this.entityData.gridDataItem.organizationId,organization:this.entityData.gridDataItem.organization,department:this.entityData.gridDataItem.department,status:this.entityData.gridDataItem.status,officeId:this.entityData.gridDataItem?.officeId},completed:!1,name:"addDepartment"}]}}).afterClosed().pipe((0,n.R)(this._unsubscribeAll)).subscribe(Eo=>{Eo&&Eo.hasOwnProperty("newDepartment")&&Eo.newDepartment.organizationId>0&&this.refreshTopHeaderPanelInfo()})}openAddAsOrganizationDialog(){this.commonService.checkOrganization(JSON.stringify({organizationId:this.entityData.gridDataItem.organizationId})).pipe((0,n.R)(this._unsubscribeAll)).subscribe(mi=>{mi.message?this.utilityService.callSnackBar(mi.message,"warning"):this.commonService.getEntityEdit(JSON.stringify({entity:this.entityData.entity,entityId:this.entityData.entityId})).subscribe(xo=>{const Bn=xo;Bn.tenantId=this.currentPersonDetail.tenantId,Bn.tenant=this.currentPersonDetail.tenant,Bn.department="Primary",Bn.nextInvoiceNumber=1,this.dialog.open(o.o,{panelClass:"tenant-organization-popup",data:{steps:[{component:K.P,data:{mode:"Add",orgModel:Bn,title:"addAsTenantOrganization",createAsOrganization:!0},completed:!1,name:"Tenant Organization Info"},{component:X.x,data:{mode:"add",entityData:this.entityData},completed:!1,name:"Tenant Organization Email Profile"}],title:"addAsTenantOrganization",service:this.tos,validateWithPromise:!0}}).afterClosed().subscribe(En=>{En&&this.utilityService.callSnackBar("organizationCreatedAsTenentOrganizationSuccessfully","success")})})})}askMoveToNextStage(){this.utilityService.openConfirmDialog({headerText:"Confirm",confirmationText:"areYouSureYouWantToMoveToNextStage"}),this.utilityService.confirmDialogAction.pipe((0,n.R)(this._unsubscribeAll)).subscribe(Eo=>{"yes"==Eo&&(this.moveNextData.entity=this.entityData.entity,this.moveNextData.entityId=this.entityData.entityId,this.moveNextData.manualCheck=1,this.commonService.moveToNewWorkflowStage(JSON.stringify(this.moveNextData)).subscribe(Ko=>{"successfullymovedtonextstage"==Ko?.msg?.toLowerCase()||"nextstagemovedandentitycreated"==Ko?.msg?.toLowerCase()?(this.utilityService.callSnackBar(Ko.msg,"success"),Ko.reloadStageBar&&(this.taskService.createdOrUpdatedTask=!0)):this.utilityService.callSnackBar(Ko?.msg,"info")}),this.utilityService.closeConfirmDialog())})}askMoveToNextWorkflow(){this.utilityService.openConfirmDialog({headerText:"Confirm",confirmationText:"areYouSureYouWantToMoveToNextWorkflow"}),this.utilityService.confirmDialogAction.pipe((0,n.R)(this._unsubscribeAll)).subscribe(Eo=>{"yes"==Eo&&(this.moveNextWorkflow.entity=this.entityData.entity,this.moveNextWorkflow.entityId=this.entityData.entityId,this.moveNextWorkflow.nextEntity="",this.commonService.moveToNewApplication(JSON.stringify(this.moveNextWorkflow)).subscribe(Ko=>{"successfullymovedtonextworkflow"==Ko?.msg?.toLowerCase()?this.utilityService.callSnackBar(Ko?.msg,"success"):this.utilityService.callSnackBar(Ko.msg,"info")}),this.utilityService.closeConfirmDialog())})}shareEntity(){this.dialog.open(re.V,{data:{personalInfoModel:this.currentPersonDetail,entity:this.entityData.entity,entityId:this.entityData.entityId}})}openEditForms(mi){this.commonService.getEntityEdit(JSON.stringify({entity:this.entityData.entity,entityId:this.entityData.entityId})).pipe((0,n.R)(this._unsubscribeAll)).subscribe(Ko=>{const xo=Ko;xo&&this.entityData.hasOwnProperty("entity")&&("lead"==this.entityData.entity.toLowerCase()||"customer"==this.entityData.entity.toLowerCase()||"newcustomer"==this.entityData.entity.toLowerCase()||"target"==this.entityData.entity.toLowerCase()||"agency"==this.entityData.entity.toLowerCase())&&this.openOrganizationEditForm(xo)})}openOrganizationEditForm(mi){let Eo,Ko,xo;Eo=[{component:me.U,data:{data:[{entity:this.entityData.entity,entityId:this.entityData.entityId,data:mi}],formType:"Edit"},completed:!1,name:"Organization"}],xo=this.entityData?.entity?.toLowerCase(),"lead"===xo?Ko="EditLead":"target"===xo?Ko="EditTarget":"newcustomer"===xo?Ko="EditNewCustomer":"customer"===xo&&(Ko="EditCustomer"),this.dialog.open(o.o,{panelClass:"organization-form-popup",data:{steps:Eo,title:"edit"+this.entityData.entity,service:this.organizationService,validateWithPromise:!0,exceptionData:[{step:1,entity:this.entityData.entity,entityId:this.entityData.entityId,exceptionStage:Ko}]}}).afterClosed().subscribe(Xt=>{Xt&&(this.refreshTopHeaderPanelInfo(),this.snapshotService.refreshSnapshot())})}askToDiscard(){const mi=this.entityData.gridDataItem.status;if("1"==(this.entityData.gridDataItem.statusAppliesActive?1:this.entityData.gridDataItem.listItemPropertyValue))this.utilityService.openConfirmDialog({headerText:"Confirm",confirmationText:"areYouSureYouWantToDiscard"}),this.utilityService.confirmDialogAction.pipe((0,n.R)(this._unsubscribeAll)).subscribe(xo=>{"yes"==xo&&(this.commonService.entityStatusUpdate(JSON.stringify({entity:this.entityData.entity,entityId:this.entityData.entityId})).subscribe(Xt=>{Xt.hasOwnProperty("status")?(this.entityData.gridDataItem.status=Xt.currentStatus,this.entityData.gridDataItem.listItemPropertyValue=Xt.listItemPropertyValue??this.entityData.gridDataItem.listItemPropertyValue,this.entityData.gridDataItem.statusListItemId=Xt.currentStatusListItemId,this.selectedEntity=this.entityData.gridDataItem,this.isStatusActive=!1,this.utilityService.callSnackBar(Xt.status,"success")):this.utilityService.callSnackBar("actionCannotBeCompleted","error")}),this.utilityService.closeConfirmDialog())});else{const Ko=this.entityData.entity.toLowerCase();let xo="";"applicant"==Ko||"newhire"==Ko?xo="person":("lead"==Ko||"target"==Ko||"newcustomer"==Ko||"customer"==Ko)&&(xo="organization"),this.utilityService.callSnackBar(xo+"Already"+mi,"info")}}refreshTopHeaderPanelInfo(){this.eds.refreshEntityDetail({entity:this.entityData.entity,entityId:this.entityData.entityId}).then(Eo=>{this.selectedEntity=Eo.gridDataItem,this.selectedEntity={...this.selectedEntity},this.isStatusActive=!(!this.selectedEntity.statusAppliesActive&&"1"!=this.selectedEntity?.listItemPropertyValue),this.entityData.gridDataItem=Eo.gridDataItem,this.organizationService.primaryPhoneNumber=this.selectedEntity.phone,this.organizationService.phoneExtension=this.selectedEntity.extension,this.entityData={...this.entityData}})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Eo){return new(Eo||nn)(s.Y36(de.a),s.Y36(C.t),s.Y36(te.M),s.Y36(j.on),s.Y36(A.v),s.Y36(H.M),s.Y36(z.h),s.Y36(q.R),s.Y36(se.N),s.Y36(ne.Z),s.Y36(_e.Z))};static#t=this.\u0275cmp=s.Xpm({type:nn,selectors:[["organization-entity-detail-template"]],features:[s.qOj],decls:3,vars:3,consts:[[4,"ngIf"],["id","department-tree","name","department-tree","position","right",3,"ngClass","click",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","class","organization-entity-detail px-8 zenauto-organization-entity-detail",4,"ngIf"],[3,"context"],["id","department-tree","name","department-tree","position","right",3,"ngClass","click"],["fusePerfectScrollbar","",3,"entityData","onDepartmentChange",4,"ngIf"],["fusePerfectScrollbar","",3,"entityData","onDepartmentChange"],["fxLayout","row","fxLayout.xs","column",1,"organization-entity-detail","px-8","zenauto-organization-entity-detail"],["class","w-100-p",4,"fuseIfOnDom"],[1,"w-100-p"],["fxFlex","95px"],["fxLayout","row","fxLayoutAlign","center start",1,"org-info-lbl"],["fxLayout","column","fxLayoutAlign","center start"],["class","social-media",4,"ngIf"],["fxFlex","",1,"pl-12","fuse-white-fg"],["fxLayout","column","fxFill",""],["fxLayout","row","fxLayoutAlign","space-between center",1,"force-top"],["fxFlex","","fxLayout","row","fxLayoutAlign","space-between center",1,"entitydetail-top-right"],["fxFlex",""],["id","detailNavigation","name","detailNavigation",3,"json","onFavoriteActionClick",4,"ngIf"],["fxFlex","",1,"entity-detail-lk1"],["fxLayout","row","fxLayout.xs","column","fxLayoutGap","8px","fxLayoutGap.xs","0"],["fxFlex","35%",1,"entity-detail-lk1-row1"],[1,"mob-h",3,"ngStyle.xs"],["fxLayout","row","fxLayoutAlign","start center",1,"org-holder"],[1,"font-weight-700","org-name","zenauto-organization-name"],["fxLayout","row","fxLayoutAlign","start center",1,"ml-12","zenauto-organization-status"],["class","stat active mr-4 zenauto-organization-active",4,"ngIf"],["class","stat inactive mr-4 zenauto-organization-inactive",4,"ngIf"],[1,"font-size-14"],[1,"mr-8","cursor-default",3,"matTooltip"],[1,"zenauto-organization-id"],["fxLayout","row","fxlayoutAlign","start center"],[1,"s-16","mr-8",3,"matTooltip"],[1,"font-size-14","zenauto-organization-office"],["class","font-size-14 m-0","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"font-size-14","m-0"],["role","img","aria-hidden","true",1,"mat-icon","material-icons","s-16","mr-8",3,"matTooltip"],[1,"text-truncate","full_address","zenauto-organization-address"],["fxFlex","100","fxFlex.gt-xs","65%","fxFlex.gt-md","65%",3,"class",4,"ngIf"],[1,"social-media"],["fxLayout","row","fxLayoutAlign","center start",1,"pb-4"],["target","_blank",3,"href"],["aria-hidden","true",1,"fa","fa-facebook"],["aria-hidden","true",1,"fa","fa-twitter"],["aria-hidden","true",1,"fa","fa-linkedin"],["id","detailNavigation","name","detailNavigation",3,"json","onFavoriteActionClick"],["detailNavigation",""],[1,"stat","active","mr-4","zenauto-organization-active"],[1,"stat","inactive","mr-4","zenauto-organization-inactive"],["role","img","aria-hidden","true",1,"mat-icon","s-16","mr-8","material-icons",3,"matTooltip"],[1,"department","zenauto-organization-department"],[1,"text-truncate","zenauto-organization-contact-number"],["class","phone_number",4,"ngIf"],[1,"phone_number"],["fxFlex","100","fxFlex.gt-xs","65%","fxFlex.gt-md","65%"],[3,"entityDetailData"],["fxLayout","row","fxFlex","","fxLayoutAlign","end end"],["fxLayout","row wrap","fxLayoutAlign","start end",1,"w-80-p","box-info","box-info-row-1"],["fxLayout","column","fxFlex","",1,"box-item"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","12px"],[1,"zenauto-organization-ar-balance"],[1,"box-bar"],[1,"zenauto-organization-job-count"],[1,"zenauto-organization-active-assignment"]],template:function(Eo,Ko){1&Eo&&(s.YNc(0,ge,2,1,"ng-container",0),s.YNc(1,Te,2,2,"fuse-sidebar",1),s.YNc(2,fn,2,0,"div",2)),2&Eo&&(s.Q6J("ngIf",Ko.isMobile),s.xp6(1),s.Q6J("ngIf",!Ko.isMobile),s.xp6(1),s.Q6J("ngIf",!Ko.isMobile))},styles:['.department-icon{cursor:pointer}@media screen and (max-width: 599px){.organization-entity-detail .mob-h{max-height:inherit!important;min-height:inherit!important;height:inherit;flex:1!important}}.organization-entity-detail .mob-h .org-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;font-size:1.1rem}.organization-entity-detail .social-media{position:absolute;left:9em;top:8px}.organization-entity-detail .social-media ul{margin:0;padding:0;display:flex}.organization-entity-detail .social-media ul li{list-style:none;margin-right:5px}.organization-entity-detail .social-media ul li a{position:relative;display:block;text-align:center;padding:8px 6px;box-sizing:border-box;transition:.2s;text-decoration:none!important;border:1px solid transparent;width:30px}.organization-entity-detail .social-media ul li a:hover{box-shadow:0 2px 5px #0000004d;border-radius:4px;border:1px solid #508fc9}.organization-entity-detail .social-media ul li a .fa{width:100%;height:100%;display:block;line-height:8px!important;font-size:16px!important;color:#eaeaea;transition:.2s;min-width:initial;min-height:inherit}.organization-entity-detail .entity-detail-lk1{color:#fff}.organization-entity-detail .entity-detail-lk1 .entity-detail-lk1-row1 div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:normal}.organization-entity-detail .entity-detail-lk1 .workflow-holder{position:relative;justify-content:flex-end}@media screen and (max-width: 599px){.organization-entity-detail .entity-detail-lk1 .workflow-holder{padding-bottom:80px;margin-top:10px}}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap{color:#fff}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row .crow-tail-col{background:#fff;transform:rotate(0) skew(0) translate(0);transition:.5s;box-shadow:-5px 5px 5px #00000080;position:relative}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row .crow-tail-col:before{content:"";position:absolute;top:2px;left:-5px;height:100%;width:5px;background:#b1b1b1;transform:.5s;transform:rotate(0) skewY(-45deg)}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row .crow-tail-col:after{content:"";position:absolute;bottom:-5px;left:-4px;height:5px;width:100%;background:#b1b1b1;transform:.5s;transform:rotate(0) skew(-45deg)}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row .crow-tail-col div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row1 .crow-tail-col:nth-child(1){background:#f44336}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row1 .crow-tail-col:nth-child(1):before{background:#b71c1c}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row1 .crow-tail-col:nth-child(1):after{background:#e57373}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row1 .crow-tail-col:nth-child(2){background:#ffc107}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row1 .crow-tail-col:nth-child(2):before{background:#bf8f00}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row1 .crow-tail-col:nth-child(2):after{background:#e6d74d}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row1 .crow-tail-col:nth-child(3){background:#4caf50}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row1 .crow-tail-col:nth-child(3):before{background:#1b5e20}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row1 .crow-tail-col:nth-child(3):after{background:#66bb6a}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row1 .crow-tail-col:nth-child(4){background:#362e8e}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row1 .crow-tail-col:nth-child(4):before{background:#09006b}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row1 .crow-tail-col:nth-child(4):after{background:#5c6bc0}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row2 .crow-tail-col:nth-child(1){background:#3b5998}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row2 .crow-tail-col:nth-child(1):before{background:#365492}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row2 .crow-tail-col:nth-child(1):after{background:#4a69ad}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row2 .crow-tail-col:nth-child(2){background:#00aced}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row2 .crow-tail-col:nth-child(2):before{background:#097aa5}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row2 .crow-tail-col:nth-child(2):after{background:#53b9e0}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row2 .crow-tail-col:nth-child(3){background:#dd4b39}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row2 .crow-tail-col:nth-child(3):before{background:#b33a2b}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row2 .crow-tail-col:nth-child(3):after{background:#e66a5a}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row2 .crow-tail-col:nth-child(4){background:#e4405f}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row2 .crow-tail-col:nth-child(4):before{background:#d81c3f}.organization-entity-detail .entity-detail-lk1 .crow-tail-wrap .crow-tail-row.crow-tail-row2 .crow-tail-col:nth-child(4):after{background:#e46880}.organization-entity-detail .entity-detail-lk1 .flat-crow-tail-wrap .crow-tail-row{text-decoration:none;display:block;background:#fff;text-align:left;padding-left:20px;transform:rotate(0) skew(0) translate(0);transition:.5s;box-shadow:-5px 5px 5px #0000004d}.organization-entity-detail .entity-detail-lk1 .flat-crow-tail-wrap .crow-tail-row .crow-tail-col .b{border:1px dotted #000!important}.organization-entity-detail .entity-detail-lk1 .flat-crow-tail-wrap .crow-tail-row .crow-tail-col .text-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.organization-entity-detail .org-holder .stat{width:8px;height:8px;border-radius:50%;display:inline-block}.organization-entity-detail .org-holder .stat.active{background-color:#8bc34a}.organization-entity-detail .org-holder .stat.inactive{background-color:#f44336}organization-entity-detail-template .organization-tree-cover organization-tree{width:43vw}.hide-workflow-stage{visibility:hidden;position:absolute}@media only screen and (min-width: 500px){.height-manage{height:550px!important}}@media only screen and (max-width: 500px){.w-400{width:200px!important;min-width:200px!important}}fuse-sidebar#department-tree{background:rgba(0,0,0,.5)!important}\n'],encapsulation:2,data:{animation:a.L}})}return nn})()},13317:(he,y,i)=>{"use strict";i.d(y,{I:()=>Xt});var e=i(53252),n=i(8379),o=i(1760),a=i(47157),l=i(30617),u=i(30481),d=i(89515),s=i(20180),A=i(47805),_=i(60682),C=i(55066),R=i(96814),x=i(65996),f=i(43320),k=i(51838),w=i(56223),g=i(65879);let M=(()=>{class Ji{static#e=this.\u0275fac=function(Ki){return new(Ki||Ji)};static#t=this.\u0275mod=g.oAB({type:Ji});static#n=this.\u0275inj=g.cJS({providers:[f.I],imports:[R.ez,w.u5,l.Ps,x.dZ,k.Wd,d.aw]})}return Ji})();var p=i(98148),E=i(68230),b=i(35364),I=i(94505),L=i(45754),D=i(66878),F=i(84187),P=i(42400),O=i(48424),U=i(81274),V=i(3209),K=i(48979),X=i(13868),me=i(89809),J=i(20012),Q=i(12430);let re=(()=>{class Ji{static#e=this.\u0275fac=function(Ki){return new(Ki||Ji)};static#t=this.\u0275mod=g.oAB({type:Ji});static#n=this.\u0275inj=g.cJS({providers:[J.Z],imports:[R.ez,s.L,P.x4,F.wp,O.uw,l.Ps,me.zE,D.yj,V.uh,I.yu,k.Wd,U.g0,A.x,_.X,K.i,X.g,d.aw,Q.L,L.Zh,u.AA]})}return Ji})();var de=i(94748),te=i(83814),j=i(27509),H=i(3461),z=i(94390),q=i(71810),se=i(40681),ne=i(45476),_e=i(76939),ge=i(78645),Ce=i(59773),Te=i(87439),De=i(28011),fe=i(710),xe=i(64190),Oe=i(74187);function Le(Ji,En){1&Ji&&g._UZ(0,"span",10)}function Gt(Ji,En){1&Ji&&g._UZ(0,"span",11)}function Ut(Ji,En){1&Ji&&g._UZ(0,"span",12)}function An(Ji,En){if(1&Ji&&(g.YNc(0,Le,1,0,"span",7),g.YNc(1,Gt,1,0,"span",8),g.YNc(2,Ut,1,0,"span",9),g._uU(3)),2&Ji){const un=En.$implicit;g.Q6J("ngIf",null==un?null:un.isAppliesAsActive),g.xp6(1),g.Q6J("ngIf",!(null!=un&&un.isAppliesAsActive)&&(null==un?null:un.statusListItemId)),g.xp6(1),g.Q6J("ngIf",!(null!=un&&un.isAppliesAsActive)&&null==(null==un?null:un.statusListItemId)),g.xp6(1),g.hij(" ",un.department," ")}}let $n=(()=>{class Ji{set eData(un){this.entityData1=un,this.isInitial||this.addDataToSessionStorage(),("lead"===this.entityData1.entity.toLowerCase()||"target"===this.entityData1.entity.toLowerCase()||"customer"===this.entityData1.entity.toLowerCase()||"newcustomer"===this.entityData1.entity.toLowerCase())&&this.getOrganizationTree()}constructor(un,Ki,Fn,oi,It,Bt){this.ots=un,this.eds=Ki,this.cs=Fn,this.router=oi,this.utilityService=It,this.location=Bt,this.organizationName="",this.selectedKeys=[],this.expandedKeys=[],this.isInitial=!0,this.statusVal=!0,this.onDepartmentChange=new g.vpe,this._unsubscribeAll=new ge.x}ngOnInit(){}getOrganizationTree(){const un={organizationId:this.entityData1.gridDataItem.organizationId?this.entityData1.gridDataItem.organizationId:this.organizationId,entity:this.entityData1.entity.toLowerCase(),status:this.statusVal?"Active":"All"};this.ots.getOrganizationTree(un).pipe((0,Ce.R)(this._unsubscribeAll)).subscribe(Ki=>{if(Ki){this.organizationTreeData=Ki.treeData,this.expandedKeys=Ki.treeParents.split(","),this.expandedKeys=[...this.expandedKeys];const oi=this.organizationTreeData.filter(function(Bt){return null==Bt.parentId});this.organizationName=oi.length>0?oi[0].organization:Ki?.rootOrganization;const It=this.organizationTreeData.filter(function(Bt){return!0===Bt.isSelected});It.length>0&&(this.selectedKeys=[],this.selectedKeys.push(It[0].organizationId))}})}onstatusSwitchChange(un){this.getOrganizationTree()}getDetailData(un){this.cs.getDirectoryData(JSON.stringify({entity:this.entityData1.entity,entityId:un})).pipe((0,Ce.R)(this._unsubscribeAll)).subscribe(Fn=>{if(Fn){this.entityData1.entityId=Fn.organizationId,this.entityData1.gridDataItem=Fn;let oi=this.eds.getCurrentEntityDetail();oi.entityId=Fn.organizationId,oi.gridDataItem=Fn,this.onDepartmentChange.emit(oi);let It=this.router.url;const Bt=It.split("/");isNaN(Bt[3])||(It=It.replace(It.split("/")[3],this.entityData1.entityId),Bt[3]=this.entityData1.entityId,It=Bt.join("/")),this.router.navigate([It],{skipLocationChange:!!oi.isSlideView})}})}onOrganizationDblClick(un){this.getDetailData(un.dataItem.organizationId)}onOrganizationClick(un){un?.item?.dataItem?.statusListItemId?(this.organizationId=un?.item?.dataItem?.organizationId,this.eds.refreshEntityDetail({entity:this.entityData1?.entity,entityId:un?.item?.dataItem?.organizationId}).then(Fn=>{let oi=this.eds.getCurrentEntityDetail();oi.entityId=Fn.entityId,oi.gridDataItem=Fn.gridDataItem,this.onDepartmentChange.emit(oi);let It=this.router.url;const Bt=It.split("/");isNaN(Bt[3])||(Bt[3]=oi.entityId,It=Bt.join("/")),this.router.navigateByUrl(It,{skipLocationChange:!!oi.isSlideView})})):this.utilityService.callSnackBar("selectedDepartmentIsNotIn"+this.entityData1?.entity,"info")}addDataToSessionStorage(){sessionStorage.setItem("directory",JSON.stringify(this.sessionDirectoryDataInitial))}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}ngAfterViewInit(){}static#e=this.\u0275fac=function(Ki){return new(Ki||Ji)(g.Y36(f.I),g.Y36(De.a),g.Y36(fe.v),g.Y36(xe.F0),g.Y36(Oe.t),g.Y36(R.Ye))};static#t=this.\u0275cmp=g.Xpm({type:Ji,selectors:[["organization-tree"]],viewQuery:function(Ki,Fn){if(1&Ki&&g.Gf(Te.F,5),2&Ki){let oi;g.iGM(oi=g.CRH())&&(Fn.entityDetailComponentViewChild=oi.first)}},inputs:{eData:["entityData","eData"]},outputs:{onDepartmentChange:"onDepartmentChange"},decls:10,vars:11,consts:[[1,"organizationTreeData"],[1,"organization-tree-head","p-8"],[1,"h2","ml-4"],[1,"pull-right"],["labelPosition","before",1,"mr-8",3,"ngModel","color","ngModelChange","change"],["textField","department","kendoTreeViewSelectable","","kendoTreeViewExpandable","","kendoTreeViewFlatDataBinding","","idField","organizationId","parentIdField","parentId",3,"nodes","expandBy","expandedKeys","selectBy","selectedKeys","expandedKeysChange","selectedKeysChange","nodeClick"],["kendoTreeViewNodeTemplate",""],["style"," border-radius: 50%; display: block; margin-top: 2px; float: left;","class","w-8 h-8 green-bg mr-8",4,"ngIf"],["style"," border-radius: 50%; display: block; margin-top: 2px; float: left;","class","w-8 h-8 red-bg mr-8",4,"ngIf"],["style"," border-radius: 50%; display: block; margin-top: 2px; float: left;","class","w-8 h-8 grey-bg mr-8",4,"ngIf"],[1,"w-8","h-8","green-bg","mr-8",2,"border-radius","50%","display","block","margin-top","2px","float","left"],[1,"w-8","h-8","red-bg","mr-8",2,"border-radius","50%","display","block","margin-top","2px","float","left"],[1,"w-8","h-8","grey-bg","mr-8",2,"border-radius","50%","display","block","margin-top","2px","float","left"]],template:function(Ki,Fn){1&Ki&&(g.TgZ(0,"div",0)(1,"div",1)(2,"span",2),g._uU(3),g.qZA(),g.TgZ(4,"div",3)(5,"mat-slide-toggle",4),g.NdJ("ngModelChange",function(It){return Fn.statusVal=It})("change",function(It){return Fn.onstatusSwitchChange(It)}),g._uU(6),g.ALo(7,"translate"),g.qZA()()(),g.TgZ(8,"kendo-treeview",5),g.NdJ("expandedKeysChange",function(It){return Fn.expandedKeys=It})("selectedKeysChange",function(It){return Fn.selectedKeys=It})("nodeClick",function(It){return Fn.onOrganizationClick(It)}),g.YNc(9,An,4,4,"ng-template",6),g.qZA()()),2&Ki&&(g.xp6(3),g.Oqu(Fn.organizationName),g.xp6(2),g.Q6J("ngModel",Fn.statusVal)("color","accent"),g.xp6(1),g.hij(" ",g.lcZ(7,9,Fn.statusVal?"active":"all")," "),g.xp6(2),g.Q6J("nodes",Fn.organizationTreeData)("expandBy","department")("expandedKeys",Fn.expandedKeys)("selectBy","organizationId")("selectedKeys",Fn.selectedKeys))},dependencies:[R.O5,w.JJ,w.On,x.kD,x.tF,x.fe,x.MB,x.oU,k.iZ,d.X$],styles:['.organizationTreeData .organization-tree-head{border-bottom:1px dotted #ccc;margin-bottom:10px}.organizationTreeData ::ng-deep .k-treeview{white-space:inherit!important;margin-left:-14px!important}.organizationTreeData ::ng-deep .k-treeview .k-selected{background-color:#64b5f6}.organizationTreeData ul{padding-left:1em!important}.organizationTreeData li{line-height:1.2;position:relative;padding:0 0 1em 1em}.organizationTreeData ul li{padding:1em 0 0 1em}.organizationTreeData li:last-child{padding-bottom:0}.organizationTreeData .k-mid{position:relative;display:inline-block;background:#fff}.organizationTreeData .k-mid:before{color:#fff;position:relative;z-index:1;float:left;margin:0 1em 0 -2em;width:1em;height:1em;border-radius:1em;content:"";text-align:center;line-height:.9em}.organizationTreeData li:before{position:absolute;top:0;bottom:0;left:.6em;display:block;width:0;border-left:1px dotted #777;height:14px;content:""}.organizationTreeData .k-in:after{position:absolute;left:-.5em;display:block;height:.1em;width:1em;border-bottom:1px dotted #777;content:""}.organizationTreeData k-mid:after{border-bottom:0}.organizationTreeData .k-in,.organizationTreeData .k-in:hover{background:none!important}.organizationTreeData .k-treeview .k-in:hover{color:#fff!important;background:linear-gradient(to right,#32a4d9 0%,#5451aa 100%)!important;border:none!important}.organizationTreeData .k-treeview .k-in.k-state-selected{color:#fff!important;background:linear-gradient(to right,#32a4d9 0%,#5451aa 100%)!important;background:-moz-linear-gradient(to right,#32a4d9 0%,#5451aa 100%)!important}\n'],encapsulation:2})}return Ji})();function xn(Ji,En){if(1&Ji){const un=g.EpF();g.TgZ(0,"organization-tree",33),g.NdJ("onDepartmentChange",function(Fn){g.CHM(un);const oi=g.oxw();return g.KtG(oi.$m.onDepartmentChange(Fn))}),g.qZA()}if(2&Ji){const un=g.oxw();g.Q6J("entityData",un.$m.entity)}}function mt(Ji,En){1&Ji&&g._UZ(0,"entity-image")}function ut(Ji,En){if(1&Ji){const un=g.EpF();g.TgZ(0,"zen-navigation-action",36,37),g.NdJ("onFavoriteActionClick",function(Fn){g.CHM(un);const oi=g.oxw(2);return g.KtG(oi.$m.favoriteIconClickAction(Fn))}),g.qZA()}if(2&Ji){const un=g.oxw(2);g.Q6J("json",un.$m.json)}}const Wt=function(){return{delay:"100ms",x:"-25px"}},dn=function(Ji){return{value:"*",params:Ji}};function sn(Ji,En){if(1&Ji&&(g.TgZ(0,"div",34)(1,"div"),g.YNc(2,ut,2,1,"zen-navigation-action",35),g.qZA()()),2&Ji){const un=g.oxw();g.Q6J("@animate",g.VKq(3,dn,g.DdM(2,Wt))),g.xp6(2),g.Q6J("ngIf",un.$m.json&&un.$m.json.navigationId)}}function fn(Ji,En){1&Ji&&g._UZ(0,"span",38)}function yi(Ji,En){1&Ji&&g._UZ(0,"span",39)}function nn(Ji,En){if(1&Ji&&(g.TgZ(0,"span",40)(1,"mat-icon",41),g._uU(2,"account_balance"),g.qZA(),g._uU(3),g.qZA()),2&Ji){const un=g.oxw();g.s9C("matTooltip",un.$m.selectedEntity.department),g.xp6(3),g.hij(" ",un.$m.selectedEntity.department," ")}}function Mi(Ji,En){if(1&Ji&&(g.TgZ(0,"span",42)(1,"mat-icon",43),g._uU(2,"home"),g.qZA(),g._uU(3),g.qZA()),2&Ji){const un=g.oxw();g.s9C("matTooltip",un.$m.selectedEntity.address&&un.$m.selectedEntity.phone?un.$m.selectedEntity.address+" | "+un.$m.selectedEntity.phone:un.$m.selectedEntity.address?un.$m.selectedEntity.address:un.$m.selectedEntity.phone),g.xp6(3),g.hij(" ",un.$m.selectedEntity.address&&un.$m.selectedEntity.phone?un.$m.selectedEntity.address+" | "+un.$m.selectedEntity.phone:un.$m.selectedEntity.address?un.$m.selectedEntity.address:un.$m.selectedEntity.phone," ")}}function mi(Ji,En){if(1&Ji&&(g.ynx(0),g.TgZ(1,"div",44)(2,"div",45)(3,"div",46)(4,"div",47)(5,"div",48)(6,"div",49)(7,"div",50)(8,"mat-icon"),g._uU(9,"payment"),g.qZA()(),g.TgZ(10,"div",51)(11,"p"),g._uU(12),g.ALo(13,"translate"),g.qZA(),g.TgZ(14,"h1",52)(15,"strong"),g._uU(16),g.qZA()()()()()(),g.TgZ(17,"div",47)(18,"div",48)(19,"div",49)(20,"div",53)(21,"mat-icon"),g._uU(22,"assignment_ind"),g.qZA()(),g.TgZ(23,"div",51)(24,"p"),g._uU(25),g.ALo(26,"translate"),g.qZA(),g.TgZ(27,"h1",54)(28,"strong"),g._uU(29),g.qZA()()()()()(),g.TgZ(30,"div",47)(31,"div",48)(32,"div",49)(33,"div",55)(34,"mat-icon"),g._uU(35,"assignment"),g.qZA()(),g.TgZ(36,"div",51)(37,"p"),g._uU(38),g.ALo(39,"translate"),g.qZA(),g.TgZ(40,"h1",56)(41,"strong"),g._uU(42),g.qZA()()()()()()()()(),g.BQk()),2&Ji){const un=g.oxw();g.xp6(12),g.Oqu(g.lcZ(13,6,"aRBalance")),g.xp6(4),g.Oqu(un.$m.selectedEntity.aRBalance?un.$m.selectedEntity.aRBalance:0),g.xp6(9),g.Oqu(g.lcZ(26,8,"openJobCount")),g.xp6(4),g.Oqu(un.$m.selectedEntity.openJobCount?un.$m.selectedEntity.openJobCount:0),g.xp6(9),g.Oqu(g.lcZ(39,10,"activeAssignment")),g.xp6(4),g.Oqu(un.$m.selectedEntity.activeAssignment?un.$m.selectedEntity.activeAssignment:0)}}const Eo=function(){return{"margin-top.px":10}};let Ko=(()=>{class Ji{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(Ki){return new(Ki||Ji)};static#t=this.\u0275cmp=g.Xpm({type:Ji,selectors:[["organization-entity-detail-template-mobile"]],inputs:{$m:["context","$m"]},decls:48,vars:29,consts:[["id","department-tree","name","department-tree","position","right",3,"ngClass","click"],["fusePerfectScrollbar","",3,"entityData","onDepartmentChange",4,"ngIf"],["fxLayout","row","fxLayout.xs","column",1,"organization-entity-detail"],["fxFlex","125px"],["fxLayout","row","fxLayoutAlign","center start",1,"org-info-lbl"],["fxLayout","row","fxLayoutAlign","center start"],[4,"ngIf"],["fxFlex","",1,"pl-12"],["fxLayout","column","fxFill",""],["class","entitydetail-top-right","fxFlex","32px","style","position:absolute; top:0px; right:0;",4,"fuseIfOnDom"],["fxFlex","32px",1,"mob-h",3,"ngStyle.xs"],["fxLayout","row","fxLayoutAlign","start baseline",2,"color","#fff"],[1,"font-size-28","font-weight-700","org-name",3,"matTooltip"],[1,"ml-4"],["style","width: 8px;\n                                  height: 8px;\n                                  border-radius: 50%;\n                                  background-color: #8BC34A;\n                                  display:inline-block;",4,"ngIf"],["style","width: 8px;\n                                  height: 8px;\n                                  border-radius: 50%;\n                                  background-color: #F44336;\n                                  display:inline-block;",4,"ngIf"],["fxFlex","",1,"entity-detail-lk1"],["fxLayout","row","fxLayout.xs","column","fxLayoutGap","8px","fxLayoutGap.xs","0"],["fxFlex","35%",1,"entity-detail-lk1-row1",2,"color","#fff"],[2,"color","#fff","font-size","16px"],["class","font-size-18 font-weight-700 department",3,"matTooltip",4,"ngIf"],["class","font-size-18 font-weight-700 full_address",3,"matTooltip",4,"ngIf"],[1,"font-size-16"],[1,"organizationid"],[1,"mr-4"],[1,"office",3,"matTooltip"],[1,"social-media"],["target","_blank",3,"href"],["aria-hidden","true",1,"fa","fa-facebook"],["aria-hidden","true",1,"fa","fa-twitter"],["aria-hidden","true",1,"fa","fa-linkedin"],["fxFlex","100","fxFlex.gt-xs","65%","fxFlex.gt-md","65%"],[3,"entityDetailData"],["fusePerfectScrollbar","",3,"entityData","onDepartmentChange"],["fxFlex","32px",1,"entitydetail-top-right",2,"position","absolute","top","0px","right","0"],["id","detailNavigation","name","detailNavigation",3,"json","onFavoriteActionClick",4,"ngIf"],["id","detailNavigation","name","detailNavigation",3,"json","onFavoriteActionClick"],["detailNavigation",""],[2,"width","8px","height","8px","border-radius","50%","background-color","#8BC34A","display","inline-block"],[2,"width","8px","height","8px","border-radius","50%","background-color","#F44336","display","inline-block"],[1,"font-size-18","font-weight-700","department",3,"matTooltip"],["role","img","aria-hidden","true","title","Department",1,"mat-icon","material-icons","ng-star-inserted"],[1,"font-size-18","font-weight-700","full_address",3,"matTooltip"],["role","img","aria-hidden","true","title","Address and Phone",1,"mat-icon","material-icons","ng-star-inserted"],["fxFlex",""],["fxLayout","row wrap","fxLayoutAlign","center center",1,"box-flat-crow-tail-wrap"],["fxLayout","row wrap","fxLayoutGap","6px",1,"w-100-p","p-8","line-height-24","crow-tail-row","crow-tail-row1"],["fxFlex","",1,"crow-tail-col"],[1,"card","cascading-admin-card"],[1,"admin-up"],[1,"fa","blue1"],[1,"data"],[1,"arbalance"],[1,"fa","orange1"],[1,"openjob_count"],[1,"fa","lightblue1"],[1,"activeassigment"]],template:function(Ki,Fn){1&Ki&&(g.TgZ(0,"fuse-sidebar",0),g.NdJ("click",function(It){return Fn.$m.fuseSidebarClick(It)}),g.YNc(1,xn,1,1,"organization-tree",1),g.qZA(),g.TgZ(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),g.YNc(6,mt,1,0,"entity-image",6),g.qZA()()(),g.TgZ(7,"div",7)(8,"div",8),g.YNc(9,sn,3,5,"div",9),g.TgZ(10,"div",10)(11,"div",11)(12,"span",12),g._uU(13),g.qZA(),g.TgZ(14,"span",13),g.YNc(15,fn,1,0,"span",14),g.YNc(16,yi,1,0,"span",15),g._uU(17),g.qZA()()(),g.TgZ(18,"div",16)(19,"div",17)(20,"div",18)(21,"div",19)(22,"div")(23,"div"),g.YNc(24,nn,4,2,"span",20),g.YNc(25,Mi,4,2,"span",21),g.qZA(),g.TgZ(26,"div",22)(27,"span",23)(28,"b",24),g._uU(29,"ID"),g.qZA(),g._uU(30),g.qZA()(),g.TgZ(31,"div")(32,"span",25),g._uU(33),g.qZA()()(),g.TgZ(34,"div",26)(35,"ul")(36,"li")(37,"a",27),g._UZ(38,"i",28),g.qZA()(),g.TgZ(39,"li")(40,"a",27),g._UZ(41,"i",29),g.qZA()(),g.TgZ(42,"li")(43,"a",27),g._UZ(44,"i",30),g.qZA()()()()()(),g.TgZ(45,"div",31),g._UZ(46,"workflow-detail",32),g.qZA(),g.YNc(47,mi,43,12,"ng-container",6),g.qZA()()()()()),2&Ki&&(g.Q6J("ngClass",Fn.$m.deptTreeClass),g.xp6(1),g.Q6J("ngIf",Fn.$m.showOrganizationTree),g.xp6(5),g.Q6J("ngIf",Fn.$m.entity),g.xp6(4),g.Q6J("ngStyle.xs",g.DdM(28,Eo)),g.xp6(2),g.s9C("matTooltip",Fn.$m.selectedEntity.organization),g.xp6(1),g.Oqu(Fn.$m.selectedEntity.organization),g.xp6(2),g.Q6J("ngIf","Active"==Fn.$m.selectedEntity.status),g.xp6(1),g.Q6J("ngIf","Active"!=Fn.$m.selectedEntity.status),g.xp6(1),g.hij(" ",Fn.$m.selectedEntity.status," "),g.xp6(7),g.Q6J("ngIf","newcustomer"==Fn.$m.entityData.entity.toLowerCase()||"customer"==Fn.$m.entityData.entity.toLowerCase()),g.xp6(1),g.Q6J("ngIf","lead"==Fn.$m.entityData.entity.toLowerCase()||"target"==Fn.$m.entityData.entity.toLowerCase()),g.xp6(5),g.AsE("",Fn.$m.selectedEntity.personId," ",Fn.$m.selectedEntity.organizationId,""),g.xp6(2),g.s9C("matTooltip",Fn.$m.selectedEntity.office),g.xp6(1),g.hij(" ",Fn.$m.selectedEntity.office," "),g.xp6(4),g.Tol(Fn.$m.selectedEntity.facebook?"facebook":"disable-link"),g.s9C("href",Fn.$m.selectedEntity.facebook,g.LSH),g.xp6(3),g.Tol(Fn.$m.selectedEntity.twitter?"mr-4 twitter":"disable-link mr-4"),g.s9C("href",Fn.$m.selectedEntity.twitter,g.LSH),g.xp6(3),g.Tol(Fn.$m.selectedEntity.linkedIn?"mr-4 linkedin":"disable-link mr-4"),g.s9C("href",Fn.$m.selectedEntity.linkedIn,g.LSH),g.xp6(2),g.Tol("customer"==Fn.$m.entityData.entity.toLowerCase()||"agency"==Fn.$m.entityData.entity.toLowerCase()?"hide-workflow-stage":"workflow-holder"),g.xp6(1),g.Q6J("entityDetailData",Fn.$m.entityData),g.xp6(1),g.Q6J("ngIf","customer"==Fn.$m.entityData.entity.toLowerCase()))},dependencies:[R.mk,R.O5,te.xw,te.SQ,te.Wh,te.s9,te.yH,j.oO,j.Zl,H.u,z.i,q.H,l.Hw,u.Kd,se.M,ne.v,_e.H,$n,d.X$],encapsulation:2,data:{animation:de.L}})}return Ji})();var xo=i(25800),Bn=i(45152);let Xt=(()=>{class Ji{static#e=this.\u0275fac=function(Ki){return new(Ki||Ji)};static#t=this.\u0275mod=g.oAB({type:Ji});static#n=this.\u0275inj=g.cJS({providers:[xo.Z],imports:[s.L,p.ef,l.Ps,u.AA,A.x,n.Q,_.X,d.aw,a.a,o.E,M,E.t,b.m,e.O,re,Bn.V]})}return Ji})();g.B6R(C.f,[R.mk,R.O5,te.xw,te.SQ,te.Wh,te.s9,te.yH,j.oO,j.Zl,H.u,z.i,q.H,l.Hw,u.Kd,se.M,ne.v,_e.H,$n,Ko],[d.X$])},20012:(he,y,i)=>{"use strict";i.d(y,{Z:()=>a});var e=i(7110),n=i(65879),o=i(6738);let a=(()=>{class l{constructor(d){this.webApiService=d,this.basePath=e.XL.settings.apiUrl}addEditDepartment(d,s){return this.webApiService.post(this.basePath+"Organization/DepartmentTsk",{json:JSON.stringify(d),refresh:s},null,null,!0)}getOrganizationDepartmentList(d,s){return this.webApiService.get(this.basePath+"Organization/GetOrganizationDepartmentList",{json:JSON.stringify(d),refresh:s},null,!0)}getDepartmentDetails(d,s){return this.webApiService.get(this.basePath+"Organization/GetDepartmentDetails",{json:JSON.stringify(d),refresh:s},null,!0)}static#e=this.\u0275fac=function(s){return new(s||l)(n.LFG(o.f))};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac})}return l})()},20305:(he,y,i)=>{"use strict";i.d(y,{U:()=>ne});var e=i(66878),n=i(56223),o=i(78645),a=i(22096),l=i(59773),u=i(68658),d=i(34938),s=i(65879),A=i(710),_=i(28011),C=i(20042),R=i(74187),x=i(61371),f=i(41476),k=i(86853),w=i(96814),g=i(83814),M=i(27509),p=i(84187),E=i(42400),b=i(82012),I=i(65139),L=i(27688),D=i(89515);const F=["formElement"],P=["submitButton"],O=function(){return["description"]};function U(_e,ge){if(1&_e){const Ce=s.EpF();s.TgZ(0,"div",38)(1,"div",9)(2,"zen-select",39),s.NdJ("ngModelChange",function(De){s.CHM(Ce);const fe=s.oxw(2);return s.KtG(fe.organization.workflowId=De)}),s.ALo(3,"translate"),s.qZA()()()}if(2&_e){const Ce=s.oxw(2);s.xp6(1),s.Q6J("ngModelGroup",Ce.organization.organizationId),s.xp6(1),s.s9C("placeholder",s.lcZ(3,5,"workflow")),s.Q6J("ngModel",Ce.organization.workflowId)("data",Ce.workflowList)("columns",s.DdM(7,O))}}const V=function(){return["resource"]};function K(_e,ge){if(1&_e){const Ce=s.EpF();s.TgZ(0,"div",40)(1,"div",9)(2,"zen-select",41),s.NdJ("ngModelChange",function(De){s.CHM(Ce);const fe=s.oxw(2);return s.KtG(fe.organization.statusListItemId=De)})("selectEvent",function(De){s.CHM(Ce);const fe=s.oxw(2);return s.KtG(fe.onStatusChange(De))}),s.ALo(3,"translate"),s.qZA()()()}if(2&_e){const Ce=s.oxw(2);s.s9C("ngModelGroup",Ce.entity),s.xp6(1),s.Q6J("ngModelGroup",Ce.organization.organizationId),s.xp6(1),s.s9C("placeholder",s.lcZ(3,8,"status")),s.Q6J("ngModel",Ce.organization.statusListItemId)("data",Ce.statusList)("virtualScroll",!0)("columns",s.DdM(10,V))("disabled",!Ce.allowStatusEdit)}}const X=function(){return["alias","organization"]},me=function(){return["office"]},J=function(){return["organization"]};function Q(_e,ge){if(1&_e){const Ce=s.EpF();s.TgZ(0,"div",42)(1,"div",7)(2,"zen-select",43),s.NdJ("ngModelChange",function(De){s.CHM(Ce);const fe=s.oxw(2);return s.KtG(fe.organization.backOfficeTenantOrganizationId=De)})("selectEvent",function(De){s.CHM(Ce);const fe=s.oxw(2);return s.KtG(fe.onBackOfficeTenantOrganizationChange(De))}),s.ALo(3,"translate"),s.qZA()(),s.TgZ(4,"div",44)(5,"div",9)(6,"div",45)(7,"zen-select",46,47),s.NdJ("ngModelChange",function(De){s.CHM(Ce);const fe=s.oxw(2);return s.KtG(fe.organization.backOfficeId=De)})("onAutoSelect",function(De){s.CHM(Ce);const fe=s.MAs(8),xe=s.oxw(2);return s.KtG(xe.autoSelectBackOffice(De,fe))}),s.ALo(9,"translate"),s.qZA()()()(),s.TgZ(10,"div",48)(11,"div",9)(12,"div",45)(13,"zen-select",49),s.NdJ("ngModelChange",function(De){s.CHM(Ce);const fe=s.oxw(2);return s.KtG(fe.organization.fundingOrganizationId=De)}),s.ALo(14,"translate"),s.qZA()()()()()}if(2&_e){const Ce=s.oxw(2);s.xp6(2),s.s9C("placeholder",s.lcZ(3,22,"backOfficeCompany")),s.Q6J("ngModel",Ce.organization.backOfficeTenantOrganizationId)("data",Ce.backOfficeTenantOrganizationList)("columns",s.DdM(28,X))("virtualScroll",!0)("disabled",!Ce.isAllowedToEdit)("required",Ce.requireBackOffice),s.xp6(3),s.Q6J("ngModelGroup",Ce.organization.organizationId),s.xp6(2),s.s9C("placeholder",s.lcZ(9,24,"backOffice")),s.Q6J("ngModel",Ce.organization.backOfficeId)("data",Ce.backOfficeList)("columns",s.DdM(29,me))("virtualScroll",!0)("disabled",!Ce.isAllowedToEdit)("required",Ce.requireBackOffice),s.xp6(4),s.Q6J("ngModelGroup",Ce.organization.organizationId),s.xp6(2),s.s9C("placeholder",s.lcZ(14,26,"fundingCompany")),s.Q6J("ngModel",Ce.organization.fundingOrganizationId)("virtualScroll",!0)("data",Ce.fundingPartnersList)("columns",s.DdM(30,J))("disabled",!Ce.requireFunding)}}const re=function(){return{standalone:!0}},de=function(){return["countryCode","country"]};function te(_e,ge){if(1&_e){const Ce=s.EpF();s.TgZ(0,"div",7)(1,"zen-select",50),s.NdJ("ngModelChange",function(De){s.CHM(Ce);const fe=s.oxw(2);return s.KtG(fe.organization.countryId=De)})("selectEvent",function(De){s.CHM(Ce);const fe=s.oxw(2);return s.KtG(fe.onCountryChange(De))}),s.ALo(2,"translate"),s.qZA()()}if(2&_e){const Ce=s.oxw(2);s.xp6(1),s.s9C("placeholder",s.lcZ(2,6,"country")),s.Q6J("ngModel",Ce.organization.countryId)("ngModelOptions",s.DdM(8,re))("data",Ce.countryList)("virtualScroll",!0)("columns",s.DdM(9,de))}}function j(_e,ge){if(1&_e&&(s.TgZ(0,"div",51),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&_e){const Ce=s.oxw(2);s.xp6(1),s.hij(" ",s.lcZ(2,1,Ce.address1Validation)," ")}}function H(_e,ge){if(1&_e&&(s.TgZ(0,"div",51),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&_e){const Ce=s.oxw(2);s.xp6(1),s.hij(" ",s.lcZ(2,1,Ce.address2Validation)," ")}}function z(_e,ge){if(1&_e&&(s.TgZ(0,"div",51),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&_e){const Ce=s.oxw(2);s.xp6(1),s.hij(" ",s.lcZ(2,1,Ce.cityValidation)," ")}}const q=function(){return["stateCode","state"]};function se(_e,ge){if(1&_e){const Ce=s.EpF();s.TgZ(0,"div")(1,"form",1,2),s.NdJ("keydown.enter",function(De){return De.preventDefault()}),s.TgZ(4,"fieldset",3)(5,"legend",4)(6,"p",5),s._uU(7),s.ALo(8,"translate"),s.qZA()(),s.TgZ(9,"div",6)(10,"div",7)(11,"div",8)(12,"div",9)(13,"mat-form-field",4)(14,"input",10),s.NdJ("ngModelChange",function(De){s.CHM(Ce);const fe=s.oxw();return s.KtG(fe.organization.organization=De)}),s.ALo(15,"translate"),s.qZA()()()()(),s.TgZ(16,"div",7)(17,"div",8)(18,"div",9)(19,"mat-form-field",4)(20,"input",11),s.NdJ("ngModelChange",function(De){s.CHM(Ce);const fe=s.oxw();return s.KtG(fe.organization.department=De)}),s.ALo(21,"translate"),s.qZA()()()()(),s.TgZ(22,"div",7)(23,"div",8)(24,"div",9)(25,"zen-select",12),s.NdJ("click",function(){s.CHM(Ce);const De=s.oxw();return s.KtG(De.rollBack())})("ngModelChange",function(De){s.CHM(Ce);const fe=s.oxw();return s.KtG(fe.organization.officeId=De)})("selectEvent",function(De){s.CHM(Ce);const fe=s.oxw();return s.KtG(fe.onOfficeChange(De))}),s.ALo(26,"translate"),s.qZA()()()(),s.YNc(27,U,4,8,"div",13),s.YNc(28,K,4,11,"div",14),s.qZA(),s.YNc(29,Q,15,31,"div",15),s.qZA(),s.TgZ(30,"fieldset",16)(31,"legend")(32,"p",5),s._uU(33),s.ALo(34,"translate"),s.qZA()(),s.TgZ(35,"div",17)(36,"div",18)(37,"div",19),s.YNc(38,te,3,10,"div",20),s.qZA()()(),s.TgZ(39,"div",17)(40,"div",18)(41,"div",19)(42,"div",21)(43,"mat-form-field",22)(44,"input",23),s.NdJ("ngModelChange",function(De){s.CHM(Ce);const fe=s.oxw();return s.KtG(fe.organization.address1=De)})("ngModelChange",function(De){s.CHM(Ce);const fe=s.oxw();return s.KtG(fe.address1InputChangedEvent(De))}),s.ALo(45,"translate"),s.qZA()(),s.YNc(46,j,3,3,"div",24),s.qZA(),s.TgZ(47,"div",21)(48,"mat-form-field",7)(49,"input",25),s.NdJ("ngModelChange",function(De){s.CHM(Ce);const fe=s.oxw();return s.KtG(fe.organization.address2=De)})("ngModelChange",function(De){s.CHM(Ce);const fe=s.oxw();return s.KtG(fe.address2InputChangedEvent(De))}),s.ALo(50,"translate"),s.qZA()(),s.YNc(51,H,3,3,"div",24),s.qZA()(),s.TgZ(52,"div",26)(53,"div",21)(54,"mat-form-field",7)(55,"input",27),s.NdJ("ngModelChange",function(De){s.CHM(Ce);const fe=s.oxw();return s.KtG(fe.organization.city=De)})("ngModelChange",function(De){s.CHM(Ce);const fe=s.oxw();return s.KtG(fe.cityInputChangedEvent(De))}),s.ALo(56,"translate"),s.qZA()(),s.YNc(57,z,3,3,"div",24),s.qZA(),s.TgZ(58,"div",7)(59,"zen-select",28),s.NdJ("ngModelChange",function(De){s.CHM(Ce);const fe=s.oxw();return s.KtG(fe.organization.stateId=De)}),s.ALo(60,"translate"),s.qZA()(),s.TgZ(61,"mat-form-field",7)(62,"input",29),s.NdJ("ngModelChange",function(De){s.CHM(Ce);const fe=s.oxw();return s.KtG(fe.organization.zipCode=De)}),s.ALo(63,"translate"),s.ALo(64,"translate"),s.qZA()()()()()(),s.TgZ(65,"fieldset",30)(66,"legend")(67,"p",5),s._uU(68),s.ALo(69,"translate"),s.qZA()(),s.TgZ(70,"div",31)(71,"div",32)(72,"div",19)(73,"mat-form-field",7)(74,"input",33),s.NdJ("ngModelChange",function(De){s.CHM(Ce);const fe=s.oxw();return s.KtG(fe.organization.website=De)}),s.ALo(75,"translate"),s.qZA()()()(),s.TgZ(76,"div",32)(77,"div",19)(78,"mat-form-field",7)(79,"input",34),s.NdJ("ngModelChange",function(De){s.CHM(Ce);const fe=s.oxw();return s.KtG(fe.organization.phone=De)}),s.ALo(80,"translate"),s.ALo(81,"translate"),s.qZA()()()(),s.TgZ(82,"div",32)(83,"div",19)(84,"mat-form-field",7)(85,"input",35),s.NdJ("ngModelChange",function(De){s.CHM(Ce);const fe=s.oxw();return s.KtG(fe.organization.phoneExtension=De)}),s.ALo(86,"translate"),s.qZA()()()()()(),s._UZ(87,"button",36,37),s.qZA()()}if(2&_e){const Ce=s.oxw();s.xp6(7),s.Oqu(s.lcZ(8,49,"organization")),s.xp6(5),s.Q6J("ngModelGroup",Ce.organization.organizationId),s.xp6(2),s.s9C("placeholder",s.lcZ(15,51,"organization")),s.Q6J("ngModel",Ce.organization.organization)("zen-validator","organizationForm.organization")("disabled",Ce.organizationDisabled),s.xp6(4),s.Q6J("ngModelGroup",Ce.organization.organizationId),s.xp6(2),s.s9C("placeholder",s.lcZ(21,53,"department")),s.Q6J("ngModel",Ce.organization.department)("zen-validator","organizationForm.department"),s.xp6(4),s.Q6J("ngModelGroup",Ce.organization.organizationId),s.xp6(1),s.s9C("placeholder",s.lcZ(26,55,"office")),s.Q6J("ngModel",Ce.organization.officeId)("config",Ce.officeListData)("virtualScroll",!0),s.xp6(2),s.Q6J("ngIf","lead"==Ce.entity.toLowerCase()||"target"==Ce.entity.toLowerCase()||"newcustomer"==Ce.entity.toLowerCase()),s.xp6(1),s.Q6J("ngIf","Edit"==Ce.formType),s.xp6(1),s.Q6J("ngIf",Ce.showHideBackOfficePanel&&("newcustomer"==Ce.entity.toLowerCase()||"customer"==Ce.entity.toLowerCase()||"target"==Ce.entity.toLowerCase())),s.xp6(4),s.Oqu(s.lcZ(34,57,"address")),s.xp6(3),s.Q6J("ngModelGroup",Ce.organization.addressId),s.xp6(2),s.Q6J("ngIf",Ce.countryList&&Ce.countryList.length>1),s.xp6(2),s.Q6J("ngModelGroup",Ce.organization.addressId),s.xp6(4),s.s9C("placeholder",s.lcZ(45,59,"address1")),s.Q6J("ngModel",Ce.organization.address1),s.xp6(2),s.Q6J("ngIf",Ce.address1Validation),s.xp6(3),s.s9C("placeholder",s.lcZ(50,61,"address2")),s.Q6J("ngModel",Ce.organization.address2),s.xp6(2),s.Q6J("ngIf",Ce.address2Validation),s.xp6(4),s.s9C("placeholder",s.lcZ(56,63,"city")),s.Q6J("ngModel",Ce.organization.city),s.xp6(2),s.Q6J("ngIf",Ce.cityValidation),s.xp6(2),s.s9C("placeholder",s.lcZ(60,65,"state")),s.Q6J("ngModel",Ce.organization.stateId)("data",Ce.stateList)("columns",s.DdM(81,q)),s.xp6(3),s.s9C("placeholder",s.lcZ(63,67,"zIPCode")),s.s9C("mask",s.lcZ(64,69,"zipCodeMaskValue")),s.Q6J("ngModel",Ce.organization.zipCode),s.xp6(6),s.hij(" ",s.lcZ(69,71,"contactInformation")," "),s.xp6(3),s.Q6J("ngModelGroup",Ce.organization.websiteContactInformationId),s.xp6(3),s.s9C("placeholder",s.lcZ(75,73,"website")),s.Q6J("ngModel",Ce.organization.website),s.xp6(2),s.Q6J("ngModelGroup",Ce.organization.phoneContactInformationId),s.xp6(3),s.s9C("placeholder",s.lcZ(80,75,"phone")),s.s9C("mask",s.lcZ(81,77,"phoneMaskValue")),s.Q6J("ngModel",Ce.organization.phone),s.xp6(3),s.Q6J("ngModelGroup",Ce.organization.phoneContactInformationId),s.xp6(3),s.s9C("placeholder",s.lcZ(86,79,"extension")),s.Q6J("ngModel",Ce.organization.phoneExtension)}}let ne=(()=>{class _e{constructor(Ce,Te,De,fe,xe,Oe,Le,Gt,Ut,An){this.dialogRef=Ce,this.data=Te,this.commonService=De,this.eds=fe,this.workflowSummaryService=xe,this.utilityService=Oe,this.personService=Le,this.officeService=Gt,this.tenantOrganizationService=Ut,this.dialog=An,this.directoryParam={},this.workflow={},this.organization={},this.wfData={application:""},this.entData={entity:"",organization:""},this.formType="",this.header="",this.countryList=[],this.orgCountryCode="",this.zipCodeChange=0,this.showHideBackOfficePanel=!1,this.isAllowedToEdit=!1,this.contactInformationEditData=[],this.organizationDisabled=!1,this.callFrom="",this.customerEditExceptionCall=!1,this.disableStepperSaveButton=!1,this.allowStatusEdit=!0,this.contactInfoList=[],this._unsubscribeAll=new o.x}setupForm(){this.getOfficeList(),this.getCountryList(),"Edit"===this.data.formType&&this.getStatusList()}ngOnInit(){this.officeStaffOfficeId=JSON.parse(sessionStorage.getItem("headerParams")).officeId,this.personService.currentPersonDetail.pipe((0,l.R)(this._unsubscribeAll)).subscribe(Ce=>{this.currentPersonDetail=Ce}),this.stepsData=this.data,this.entity=this.data.data[0].entity,this.callFrom=this.data.data[0].callFrom?this.data.data[0].callFrom:this.entity,this.wfData.application="sales"===this.entity.toLowerCase()?"Target":this.entity,"AddNew"===this.data.formType?(this.formType="AddNew",this.addNew=!0,this.organization.department="Primary",this.setupForm()):"Edit"===this.data.formType?(this.formType="Edit",this.isEdit=!0,"customer"==this.entity.toLowerCase()&&this.CustomerEditExceptionCall(),this.data.data[0].data&&this.data.data[0].data.countryCode&&(this.orgCountryCode=this.data.data[0].data.countryCode),this.organization={...this.data.data[0].data},this.previousListItemId=this.organization.statusListItemId,this.organizationDisabled=1==this.organization.isDepartment,this.isAllowedToEdit="True"===this.data.data[0].data.isAllowedToEditBackOffice,this.getBackOfficeTenantOrganization(),this.getBackOffice(this.data.data[0].data.backOfficeTenantOrganizationId),this.getFundingPartnersList(),this.setupForm(),"agency"!==this.entity.toLowerCase()&&this.getWorkFlowList(this.organization.officeId),this.getContactInfoList()):(this.addNew=!1,this.name="addExistingTo"+this.entity),this.getStatusAccess()}getContactInfoList(){this.commonService.getContactInformation(JSON.stringify({entity:this.entity,entityId:this.organization.organizationId}),!0).pipe((0,l.R)(this._unsubscribeAll)).subscribe(Te=>{this.contactInfoList=Te&&(Te?.totalCount??0)>0?Te.data:[]})}getStatusAccess(){this.commonService.tfOptionSelect(this.entity,"DontAllowStatusChange","Person",parseInt(this.utilityService.getTokenValueByKey("personId").toString())).pipe((0,l.R)(this._unsubscribeAll)).subscribe(Ce=>{var De=Ce[0]?.optionValue?.split(",");this.allowStatusEdit=!De?.includes(this.organization.statusListItemId?.toString())})}address1InputChangedEvent(Ce){this.address1Validation=this.organization.address1.length>50?"address1CannotExceed50Characters":""}address2InputChangedEvent(Ce){this.address2Validation=this.organization.address2.length>50?"address2CannotExceed50Characters":""}cityInputChangedEvent(Ce){this.cityValidation=this.organization.city.length>25?"cityCannotExceed25Characters":""}CustomerEditExceptionCall(){this.commonService.tfOptionSelect("Customer","CustomerEditExceptionCall","Organization",this.data.data[0].data.organizationId).pipe((0,l.R)(this._unsubscribeAll)).subscribe(Ce=>{Ce&&(this.customerEditExceptionCall=Ce[0]?.optionValue)})}getCountryList(){const Ce="agency"==this.entity.toLowerCase()?{organizationId:this.currentPersonDetail.organizationId}:{officeId:this.selectedOffice?.officeId?this.selectedOffice.officeId:this.currentPersonDetail.officeId};this.commonService.getCountry(Ce).pipe((0,l.R)(this._unsubscribeAll)).subscribe(Te=>{this.countryList=Te,this.sharedData.countryList=this.countryList,1===this.countryList.length&&(this.organization.countryId=this.countryList[0].countryId,this.orgCountryCode=this.countryList[0].countryCode,this.getStateListByCountry(this.organization.countryId))})}getStateListByCountry(Ce){this.organization.countryId=Ce,this.commonService.getStateListByOrganization(JSON.stringify({countryId:Ce})).pipe((0,l.R)(this._unsubscribeAll)).subscribe(De=>{this.stateList=De,this.sharedData.stateList=this.stateList})}getStateList(){this.organization.stateId=0,this.organization.zipCode=null,this.commonService.getStateListByOrganization(JSON.stringify({organizationId:0})).subscribe(Ce=>{this.stateList=Ce})}getStatusList(){this.commonService.getListItemList({category:"STATUS",officeId:this.currentPersonDetail.officeId,property:"relatesto",value:this.entity}).pipe((0,l.R)(this._unsubscribeAll)).subscribe(Ce=>{this.statusList=Ce})}getAllowBackOfficeEditOptionProperty(){this.commonService.optionPropertyValue(this.entity,"AllowAddEditBackOffice","Person",this.currentPersonDetail.personId).subscribe(Ce=>{this.isAllowedToEdit="true"===Ce.value.toLowerCase(),this.isAllowedToEdit&&this.getBackOfficeTenantOrganization()})}getOfficeList(Ce=this.organization.organizationId){"Edit"===this.data.formType?"agency"==this.entity.toLowerCase()?this.officeService.getPersonOffice(JSON.stringify({currentOrganizationId:this.organization.organizationId})).subscribe(Te=>{this.setOfficeList(Te)}):this.commonService.getOfficeList({organizationId:Ce,entity:this.entity,callFrom:this.callFrom,action:"Edit",editedEntityOfficeId:this.organization.officeId}).pipe((0,l.R)(this._unsubscribeAll)).subscribe(Te=>{this.setOfficeList(Te)}):this.officeService.getPersonOffice(JSON.stringify({entity:this.entity,currentOrganizationId:this.organization.organizationId,allowCrossOver:1,callFrom:this.callFrom})).subscribe(Te=>{this.setOfficeList(Te)})}setOfficeList(Ce){this.officeList=Ce,this.officeListData={data:this.officeList,columns:this.getOfficeColumns()},"addnew"===this.data?.formType?.toLowerCase()&&-1!=this.officeList?.map(function(Te){return Te.officeId})?.indexOf(this.officeStaffOfficeId)&&(this.organization.officeId=this.officeStaffOfficeId)}onCountryChange(Ce){Ce.length>0&&(this.getStateListByCountry(Ce[0].countryId),this.orgCountryCode=Ce[0].countryCode)}onCancelEvent(Ce){this.dialogRef.close()}getExistingOrganizationList(Ce){this.commonService.organization(Ce).pipe((0,l.R)(this._unsubscribeAll)).subscribe(Te=>{this.existingOrganizationList=Te})}getMultiColumnOptions(Ce){this.entData.organization=Ce,this.entData.selectSameEntity=!1,this.entData.entity=this.directoryParam.entity,null!=Ce&&this.getExistingOrganizationList(this.entData)}isFormValid(){return this.addNew||this.isEdit?(null!==this.organizationForm||void 0!==this.organizationForm)&&this.organizationForm.valid:!!this.currentOrganization}close(){let Ce;Ce=this.addNew?this.utilityService.isFormDirty(this.organizationForm):!!this.currentOrganization,Ce?(this.utilityService.openConfirmDialog({headerText:"Confirm",confirmationText:"leavePage"}),this.utilityService.confirmDialogAction.subscribe(De=>{"yes"===De&&(this.dialogRef.close(),this.utilityService.closeConfirmDialog())})):this.dialogRef.close()}rollBack(){this.officeListData.length>100&&(document.querySelector(".hask-codea mat-table mat-option:first-of-type").style.height="0px")}onOfficeChange(Ce){this.selectedOffice=Ce[0],this.sharedData.selectedOffice=this.selectedOffice,this.organization.tenantId=this.selectedOffice?.tenantId,this.getCountryList(),Ce[0]?.hasOwnProperty("requireBackOffice")&&(this.requireBackOffice="True"===Ce[0].requireBackOffice),Ce[0]?.hasOwnProperty("requireFunding")&&(this.requireFunding="True"===Ce[0].requireFunding),this.requireBackOffice||this.requireFunding?this.showHideBackOfficePanel=!0:!this.requireBackOffice&&!this.requireFunding&&(this.showHideBackOfficePanel=!1),this.showHideBackOfficePanel&&this.getAllowBackOfficeEditOptionProperty(),"AddNew"==this.formType&&(this.getWorkFlowList(this.organization.officeId),this.showHideBackOfficePanel&&this.getFundingPartnersList())}getWorkFlowList(Ce){const De=this.eds.getCurrentEntityDetail().applicationId||0;this.personService.getWorkflow(JSON.stringify({officeId:Ce,entity:this.entity,applicationId:De})).pipe((0,l.R)(this._unsubscribeAll)).subscribe(xe=>{this.workflowList=xe,null==this.workflowList&&this.utilityService.callSnackBar("Workflow does not exist for "+this.selectedOffice.office+".","warning"),null!=this.workflowList&&1===this.workflowList.length&&(this.organization.workflowId=this.workflowList[0].workflowId)})}onBackOfficeTenantOrganizationChange(Ce){Ce.length>0&&this.getBackOffice(Ce[0].organizationId)}autoSelectBackOffice(Ce,Te){this.organization.backOfficeId=Ce,Te.control.markAsDirty()}getBackOffice(Ce){this.officeService.getOffice(JSON.stringify({tenantId:this.organization.tenantId,organizationId:Ce})).pipe((0,l.R)(this._unsubscribeAll)).subscribe(De=>{this.backOfficeList=De})}getBackOfficeTenantOrganization(){this.tenantOrganizationService.getTenantOrganizationList(JSON.stringify({entityAction:"Edit"===this.formType?"TenantOrganizationEdit":"TenantOrganizationAdd",callFor:"BackOfficeTenantOrganization",tenantId:this.organization.tenantId})).pipe((0,l.R)(this._unsubscribeAll)).subscribe(Te=>{Te&&(this.backOfficeTenantOrganizationList=Te,1==this.backOfficeTenantOrganizationList.length&&(this.organization.backOfficeTenantOrganizationId=this.backOfficeTenantOrganizationList[0].organizationId,this.getBackOffice(this.backOfficeTenantOrganizationList[0].organizationId)))})}getFundingPartnersList(){this.commonService.getFundingOrganization({officeId:this.organization.officeId,organizationId:this.organization.organizationId}).pipe((0,l.R)(this._unsubscribeAll)).subscribe(Te=>{this.fundingPartnersList=Te})}onStatusChange(Ce){this.disableStepperSaveButton=!1;const Te=this.statusList.find(De=>De.listItemId==this.organization.statusListItemId);if(this.customerEditExceptionCall&&"active"==Te.listItem.toLowerCase()&&this.previousListItemId!==Te.listItemId)return this.exceptionTask({exceptionJson:{entity:"Organization",entityId:this.organization.organizationId,exceptionStage:"CustomerEdit"},dialogLoadType:u.Z.continuous}).then(fe=>{fe?(this.disableStepperSaveButton=!1,Ce(!0)):(this.disableStepperSaveButton=!0,Ce(!1))})}activate(){}validate(Ce){return new Promise(Te=>{if(this.sharedData.organizationModel=this.organization,this.organizationForm.valid){if("Edit"!=this.formType)return this.checkIfOrganizationAlreadyExists(Te);{let De=-1;null!=this.organization.phoneContactInformationId?De=this.contactInfoList.findIndex(xe=>xe.contactInformationId!=this.organization.phoneContactInformationId&&xe.contactInformationTypeListItem.toLowerCase()===this.organization?.contactInformationTypeListItem?.toLowerCase()&&xe.value===this.organization.phone):null==this.organization.phoneContactInformationId&&(De=this.contactInfoList.findIndex(xe=>xe.value===this.organization.phone)),-1!==De&&(this.utilityService.callSnackBar("Phone number already exists in Contact Information.","warning"),Te(!1));let fe=this.utilityService.getDirtyValues(this.organizationForm);if(fe)if(fe.hasOwnProperty("organization")){if(fe.organization[this.organization.organizationId].organization)return this.checkIfOrganizationAlreadyExists(Te);Te(!0)}else Te(!0);else Te(!0)}}else Te(!1)})}checkIfOrganizationAlreadyExists(Ce){return this.exceptionTask({exceptionJson:{entity:this.entity,entityId:0,exceptionStage:"New"+this.entity,organizationName:this.organization.organization,organizationId:"Edit"===this.formType?this.organization.organizationId:0,entityOfficeId:this.organization.officeId},dialogLoadType:u.Z.continuous}).then(De=>{Ce(!!De)})}exceptionTask(Ce){return new Promise(Te=>{this.commonService.exceptionProcess(JSON.stringify(Ce.exceptionJson)).pipe((0,l.R)(this._unsubscribeAll)).subscribe(De=>{De?De&&Object.keys(De).length>0&&null!=De.data?(Ce.exceptionData=De,this.openExceptionDialog(Ce).subscribe(fe=>{Te(fe)})):De&&De.hasOwnProperty("error")?(this.utilityService.callSnackBar("errorInException","error"),Te(!1)):Te("noException"):(this.utilityService.callSnackBar("errorInException","error"),Te(!1))})})}openExceptionDialog(Ce){const Te=new o.x;return this.dialog.open(d.x,{data:Ce,panelClass:"exception-dialog",disableClose:!0}).afterClosed().subscribe(fe=>Te.next(fe)),Te.asObservable()}save(){if("AddNew"===this.formType){const Ce=this.organization,Te=new Date;return Ce.officeId=this.organization.officeId,Ce.organizationId=0,Ce.stateId=this.organization.stateId,Ce.addressType="Main",Ce.addressNote="",Ce.fEIN="",Ce.nextInvoiceNumber=0,Ce.workflowId=this.organization.workflowId,Ce.enteredDate=Te.toLocaleDateString("en-US"),Ce.website=void 0===this.organization.website?null:this.organization.website,Ce.phone=void 0===this.organization.phone?null:this.organization.phone,Ce.phoneExtension=void 0===this.organization.phoneExtension?null:this.organization.phoneExtension,Ce.zipCode=this.organization.zipCode,Ce.entity=this.entity,Ce.backOfficeTenantOrganizationId=this.organization.backOfficeTenantOrganizationId,Ce.backOfficeId=this.organization.backOfficeId,Ce.fundingOrganizationId=this.organization.fundingOrganizationId?this.organization.fundingOrganizationId:this.selectedOffice.organizationId,this.sharedData.organizationModel=Ce,this.sharedData.formType="AddNew",(0,a.of)(!0)}if("Edit"===this.formType){this.sharedData.organizationModel=this.organization,this.sharedData.entity=this.entity;let Ce=this.utilityService.getDirtyValues(this.organizationForm);if(Ce){if(Ce.hasOwnProperty("organization")){let Te=parseInt(JSON.parse(Object.keys(Ce.organization).toString()));if(Ce.organization[Te].department&&Ce.organization[Te].department.length>100)return this.utilityService.callSnackBar("departmentLengthCannotBeGreaterThan100Characters","warning"),(0,a.of)(!1)}if(Ce.hasOwnProperty("backOfficeTenantOrganizationId")&&delete Ce.backOfficeTenantOrganizationId,Ce.hasOwnProperty("backOffice")&&(Ce.hasOwnProperty("organization")?Ce.organization[this.organization.organizationId].backOfficeId=Ce.backOffice[this.organization.organizationId].backOfficeId:Ce.organization=Ce.backOffice,delete Ce.backOffice),Ce.hasOwnProperty("fundingBy")&&(Ce.hasOwnProperty("organization")?Ce.organization[this.organization.organizationId].fundingOrganizationId=Ce.fundingBy[this.organization.organizationId].fundingOrganizationId:Ce.organization=Ce.fundingBy,delete Ce.fundingBy),Ce.hasOwnProperty("workflow")){const Te={entity:this.entity,entityId:this.organization.organizationId,workflowId:Ce.workflow[this.organization.organizationId].workflowId};delete Ce.workflow,this.sharedData.workflowEditModel=Te}return Object.keys(Ce).length>0&&(this.sharedData.organizationEditModel=Ce),this.sharedData.formType="Edit",(0,a.of)(!0)}return this.utilityService.callSnackBar("changesNotAvailableToUpdate","warning"),(0,a.of)(!0)}}onBackOfficeChange(Ce){1==Ce.length&&(this.organization.backOfficeId=Ce[0].officeId)}stepperClose(Ce){let Te;return Te="statusChangeSevereException"!=Ce&&this.utilityService.isFormDirty(this.organizationForm),{response:Te}}getOfficeColumns(){return[{name:"alias",type:"string",width:20},{name:"office",type:"string",width:80}]}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Te){return new(Te||_e)(s.Y36(e.hV),s.Y36(e.eJ),s.Y36(A.v),s.Y36(_.a),s.Y36(C.E),s.Y36(R.t),s.Y36(x.R),s.Y36(f.l),s.Y36(k.N),s.Y36(e.on))};static#t=this.\u0275cmp=s.Xpm({type:_e,selectors:[["organization-form"]],viewQuery:function(Te,De){if(1&Te&&(s.Gf(n.F,5),s.Gf(F,5),s.Gf(P,5)),2&Te){let fe;s.iGM(fe=s.CRH())&&(De.organizationForm=fe.first),s.iGM(fe=s.CRH())&&(De.formElement=fe.first),s.iGM(fe=s.CRH())&&(De.submitBtn=fe.first)}},decls:1,vars:1,consts:[[4,"ngIf"],["id","organizationForm","name","organizationForm","autocomplete","off","fxLayout","column",3,"keydown.enter"],["formElement","","organizationForm","ngForm"],["fxLayout","column",1,"mb-12","zenauto-organization"],[1,"w-100-p"],[1,"m-0","p-0"],["fxLayout","row","fxLayoutGap","12px","fxLayout.xs","column"],["fxFlex",""],["ngModelGroup","organization"],[3,"ngModelGroup"],["matInput","","name","organization","autofocus","","type","text","required","","maxlength","100",3,"placeholder","ngModel","zen-validator","disabled","ngModelChange"],["matInput","","name","department","type","text","required","","maxlength","100",3,"placeholder","ngModel","zen-validator","ngModelChange"],["panelClass","zen-select-md","name","officeId","nameField","office","valueField","officeId","required","","panelClass","hask-codea custom-dropdown",1,"no-padding-head","chip-black",3,"ngModel","placeholder","config","virtualScroll","click","ngModelChange","selectEvent"],["fxFlex","","ngModelGroup","workflow",4,"ngIf"],["fxFlex","",3,"ngModelGroup",4,"ngIf"],["fxFlex","1 0 auto","fxLayout","row","fxLayout.xs","column","fxLayoutGap","12px","fxLayoutGap.xs","0",4,"ngIf"],["fxLayout","column",1,"mb-12","zenauto-organization-address"],["ngModelGroup","address"],["fxLayout","column","fxFlex","100",1,"w-100-p",3,"ngModelGroup"],["fxFlex","1 0 auto","fxLayout","column","fxLayout.gt-xs","row"],["fxFlex","",4,"ngIf"],["fxFlex","","fxLayout","column"],["fxFlex","",1,"mr-sm-12"],["matInput","","name","address1","type","text","required","","zen-validator","organizationForm.address1",3,"placeholder","ngModel","ngModelChange"],["class","red-fg",4,"ngIf"],["matInput","","name","address2","type","text","zen-validator","organizationForm.address2",3,"placeholder","ngModel","ngModelChange"],["fxFlex","1 0 auto","fxLayout","column","fxLayout.gt-xs","row","fxLayoutGap","12px"],["matInput","","name","city","type","text","required","","zen-validator","organizationForm.city",3,"placeholder","ngModel","ngModelChange"],["valueField","stateId","name","stateId","nameField","stateCode","required","",1,"no-padding-head","chip-black","overflow-hidden",3,"placeholder","ngModel","data","columns","ngModelChange"],["matInput","","name","zipCode","type","text","zen-validator","organizationForm.zip","required","",3,"placeholder","mask","ngModel","ngModelChange"],["fxLayout","column",1,"mb-12","zenauto-organization-contact-info"],["ngModelGroup","contactInformation","fxLayout","row","fxLayout.xs","column","fxLayoutGap","8px"],["fxLayout","column","fxFlex","",1,"w-100-p",3,"ngModelGroup"],["matInput","","name","website","type","text","zen-validator","organizationForm.website",3,"placeholder","ngModel","ngModelChange"],["matInput","","name","phone","type","text","zen-validator","organizationForm.phone",3,"placeholder","mask","ngModel","ngModelChange"],["matInput","","name","phoneExtension","mask","00000","zen-validator","organizationForm.phoneExtension",3,"placeholder","ngModel","ngModelChange"],["fxHide","","type","submit"],["submitButton",""],["fxFlex","","ngModelGroup","workflow"],["name","workflowId","nameField","description","valueField","workflowId","required","",1,"chip-black",3,"ngModel","placeholder","data","columns","ngModelChange"],["fxFlex","",3,"ngModelGroup"],["name","statusListItemId","nameField","resource","valueField","listItemId","required","",1,"chip-black",3,"ngModel","placeholder","data","virtualScroll","columns","disabled","ngModelChange","selectEvent"],["fxFlex","1 0 auto","fxLayout","row","fxLayout.xs","column","fxLayoutGap","12px","fxLayoutGap.xs","0"],["nameField","organization","valueField","organizationId","name","backOfficeTenantOrganizationId","panelClass","zen-select-md",1,"no-padding-head","chip-black","overflow-hidden",3,"placeholder","ngModel","data","columns","virtualScroll","disabled","required","ngModelChange","selectEvent"],["ngModelGroup","backOffice","fxFlex",""],["fxFlex","100"],["nameField","office","valueField","officeId","name","backOfficeId",1,"no-padding-head","chip-black","overflow-hidden",3,"placeholder","ngModel","data","columns","virtualScroll","disabled","required","ngModelChange","onAutoSelect"],["backOfficeRef","ngModel"],["ngModelGroup","fundingBy","fxFlex",""],["nameField","organization","valueField","organizationId","name","fundingOrganizationId","required","",1,"no-padding-head","chip-black","overflow-hidden",3,"placeholder","ngModel","virtualScroll","data","columns","disabled","ngModelChange"],["nameField","country","valueField","countryId","required","",1,"no-padding-head","chip-black","overflow-hidden",3,"placeholder","ngModel","ngModelOptions","data","virtualScroll","columns","ngModelChange","selectEvent"],[1,"red-fg"]],template:function(Te,De){1&Te&&s.YNc(0,se,89,82,"div",0),2&Te&&s.Q6J("ngIf",De.addNew||De.isEdit)},dependencies:[w.O5,n._Y,n.Fj,n.JJ,n.JL,n.Q7,n.nD,n.On,n.Mq,n.F,g.xw,g.SQ,g.yH,M.b8,p.v_,E.k0,b.i,I.p,L.tZ,D.X$],styles:[".organization-form-popup .state-mat-form-field .mat-form-field-label{display:block}.organization-form-popup .mat-dialog-content{overflow:hidden}.organization-form-popup .mat-dialog-container{padding:0}.organization-form-popup .dialog-content-wrapper{width:65vw;max-height:85vh;display:flex;flex-direction:column}@media screen and (max-width: 599px){.organization-form-popup .dialog-content-wrapper{width:auto}}.organization-form-popup .dialog-content-wrapper .mat-horizontal-content-container{padding:0;max-height:55vh}\n"],encapsulation:2})}return _e})()},53252:(he,y,i)=>{"use strict";i.d(y,{O:()=>x});var e=i(77171),n=i(13868),o=i(12430),a=i(30617),l=i(42400),u=i(84187),d=i(94505),s=i(20180),A=i(89515),_=i(53790),C=i(86853),R=i(65879);let x=(()=>{class f{static#e=this.\u0275fac=function(g){return new(g||f)};static#t=this.\u0275mod=R.oAB({type:f});static#n=this.\u0275inj=R.cJS({providers:[C.N],imports:[s.L,u.wp,l.x4,a.Ps,d.yu,o.L,n.g,_.u,A.aw,e.y]})}return f})()},43320:(he,y,i)=>{"use strict";i.d(y,{I:()=>a});var e=i(7110),n=i(65879),o=i(6738);let a=(()=>{class l{constructor(d){this.ws=d,this.basePath=e.XL.settings.apiUrl}getOrganizationTree(d){return this.ws.get(this.basePath+"Organization/OrganizationTree",{json:JSON.stringify(d)},null,!1)}static#e=this.\u0275fac=function(s){return new(s||l)(n.LFG(o.f))};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac})}return l})()},60930:(he,y,i)=>{"use strict";i.d(y,{M:()=>P});var e=i(65619),n=i(9315),o=i(22096),a=i(78337),l=i(78645),u=i(59773),d=i(65879),s=i(28011),A=i(66878),_=i(49155),C=i(74187),R=i(24640),x=i(59834),f=i(96814),k=i(83814),w=i(51838);const g=function(){return{gridViewOnly:!0,showAllPageSize:!0}};function M(O,U){if(1&O){const V=d.EpF();d.TgZ(0,"zen-grid",6),d.NdJ("onRowCheckboxChangeFn",function(X){d.CHM(V);const me=d.oxw();return d.KtG(me.onJobChecked(X))})("onHeaderCheckboxChangeFn",function(X){d.CHM(V);const me=d.oxw();return d.KtG(me.onAllJobSelection(X))}),d.qZA()}if(2&O){const V=d.oxw();d.Q6J("data",V.jobs.data)("columns",V.jobs.columns)("totalRecords",V.jobs.totalCount)("primaryColumn",V.jobs.primaryColumn)("clientSidePaging",!0)("selectable",!0)("sortable",!0)("pageable",!0)("config",d.DdM(14,g))("displayHeaderSelection",!0)("isIndeterminate",V.isIndeterminate)("allRowsSelected",V.allRowsSelected)("showFilterToggle",!0)("filterToggleValue",!0)}}let p=(()=>{class O{constructor(V,K,X,me,J){this.eds=V,this.dialog=K,this.js=X,this.us=me,this.cjs=J,this.jobs={},this._unsubscribeAll=new l.x,this.selection=new a.Ov(!0,[]),this.filters=[],this.filter="Current",this.checked=!1}ngOnInit(){this.getJobDirectory()}onToggle(V){this.checked=V.checked,this.filter=this.checked?"All":"Current",this.getJobDirectory()}getJobDirectory(V){let K={output:"d",searchText:this.eds.getCurrentEntityDetail().entityId,entity:"Customer",searchType:"OrganizationId",directory:"TempJob",pageNumber:V?V.pageNumber:1,pageSize:V?V.pageSize:"All",orderBy:V?V.orderBy:null,sortorder:V?V.sortorder:null,filter:this.filter,callFrom:"ServiceProfile"};new Promise((X,me)=>{Promise.all([this.js.jobDirectory(K)]).then(([J])=>{this.jobs=J.directory,0==J.directory.totalCount&&(this.jobs.data=[]),X(!0)},me)})}onJobChecked(V){V.dataItem.isSelect=V.event.checked,this.selection.toggle(V.dataItem.jobId),this.manageHeaderCheckbox()}onAllJobSelection(V){if(this.selection.clear(),V.checked){const K=this;this.jobs.data.map(X=>{K.selection.select(X.jobId),X.isSelect=!0})}else this.jobs.data.map(K=>K.isSelect=!1);this.manageHeaderCheckbox()}manageHeaderCheckbox(){this.selection.hasValue()?this.selection.selected.length===this.jobs.data.length?(this.isIndeterminate=!1,this.allRowsSelected=!0):(this.isIndeterminate=!0,this.allRowsSelected=!1):(this.isIndeterminate=!1,this.allRowsSelected=!1)}activate(){}validate(V){return this.selection.selected.length>0?(0,o.of)(!0):(this.us.callSnackBar("Please select jobs to update.","info"),(0,o.of)(!1))}save(){return new Promise((V,K)=>{V(this.resolveConfirmDialog())})}resolveConfirmDialog(){return new Promise((V,K)=>{V(this.openConfirmDialog())})}openConfirmDialog(){return this.us.openConfirmDialog({headerText:"serviceProfileUpdated",confirmationText:"updateOpenExistingTransactions"}),new Promise(K=>{this.us.confirmDialogAction.subscribe(X=>{if(X){let me;"yes"==X?(me={jobIds:this.selection.selected,entity:"Transaction",columns:this.data},K(this.updateJobsFromServiceProfile(me))):"no"==X&&(me={jobIds:this.selection.selected,entity:"Job",columns:this.data},K(this.updateJobsFromServiceProfile(me))),this.us.closeConfirmDialog()}})})}updateJobsFromServiceProfile(V){return new Promise(K=>{this.cjs.updateJobsOnServiceProfileChange(V).pipe((0,u.R)(this._unsubscribeAll)).subscribe(X=>{X?K(!0):(this.us.callSnackBar("Something went wrong while updating.","error"),K(!1))})})}stepperClose(){return{response:!1}}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(K){return new(K||O)(d.Y36(s.a),d.Y36(A.on),d.Y36(_.O),d.Y36(C.t),d.Y36(R.K))};static#t=this.\u0275cmp=d.Xpm({type:O,selectors:[["zen-update-jobs"]],decls:8,vars:3,consts:[[1,"delta-in","job-assignment-c"],[1,"child-action-control"],["fxLayout","row","fxLayoutAlign","start center",1,"left","pt-4","pb-8"],["color","accent",1,"pl-8",3,"checked","change"],[1,"right"],["class","assignment-grid",3,"data","columns","totalRecords","primaryColumn","clientSidePaging","selectable","sortable","pageable","config","displayHeaderSelection","isIndeterminate","allRowsSelected","showFilterToggle","filterToggleValue","onRowCheckboxChangeFn","onHeaderCheckboxChangeFn",4,"ngIf"],[1,"assignment-grid",3,"data","columns","totalRecords","primaryColumn","clientSidePaging","selectable","sortable","pageable","config","displayHeaderSelection","isIndeterminate","allRowsSelected","showFilterToggle","filterToggleValue","onRowCheckboxChangeFn","onHeaderCheckboxChangeFn"]],template:function(K,X){1&K&&(d.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"span"),d._uU(4),d.qZA(),d.TgZ(5,"mat-slide-toggle",3),d.NdJ("change",function(J){return X.onToggle(J)}),d.qZA()(),d._UZ(6,"div",4),d.qZA(),d.YNc(7,M,1,15,"zen-grid",5),d.qZA()),2&K&&(d.xp6(4),d.Oqu(X.checked?"All":"Current"),d.xp6(1),d.Q6J("checked",X.checked),d.xp6(2),d.Q6J("ngIf",X.jobs))},dependencies:[x.H,f.O5,k.xw,k.Wh,w.iZ],styles:[".update-jobs zen-stepper-dialog zen-stepper .mat-dialog-content{min-height:75vh;max-height:75vh}.update-jobs zen-stepper-dialog zen-stepper .mat-dialog-content kendo-grid{height:calc(75vh - 52px)}\n"],encapsulation:2})}return O})();var E=i(616),b=i(37398),I=i(710),L=i(41476),D=i(61371),F=i(64190);let P=(()=>{class O{constructor(V,K,X,me,J,Q,re){this.commonService=V,this.utilityService=K,this.officeService=X,this.personService=me,this.router=J,this.eds=Q,this.dialog=re,this.onStateChange=new e.X({}),this.contactInfoInsert=!1,this.addressList=[],this.updateContactInformationGrid=!1}updateJobsOnServiceProfileChange(V){return this.utilityService.openConfirmDialog({headerText:"serviceProfileUpdated",confirmationText:"updateJobsOnServiceProfileUpdate"}),new Promise(X=>{this.utilityService.confirmDialogAction.subscribe(me=>{"yes"==me?(X({action:!0}),this.updatejobsDialog(V),this.utilityService.closeConfirmDialog()):"no"==me&&(X({action:!1}),this.utilityService.closeConfirmDialog())})})}updatejobsDialog(V){this.dialog.open(E.o,{panelClass:"update-jobs",data:{steps:[{component:p,data:V,completed:!1,name:"Update Jobs"}],title:"Update Jobs",saveWithPromise:!0}}).afterClosed().subscribe(me=>{me&&this.utilityService.callSnackBar("Jobs Updated","success")})}save(){if(this.sharedData.hasOwnProperty("selectedOffice")&&delete this.sharedData.selectedOffice,this.sharedData.hasOwnProperty("countryList")&&delete this.sharedData.countryList,this.sharedData.hasOwnProperty("stateList")&&delete this.sharedData.stateList,"AddNew"==this.sharedData.formType){const V=this.sharedData.organizationModel.entity;return this.commonService.createOrganizationWithPerson(JSON.stringify(this.sharedData),V).pipe((0,b.U)(K=>(this.sharedData.newOrganization=K,!0)))}{if(this.sharedData.organizationEditModel&&this.sharedData.organizationEditModel.hasOwnProperty("address")&&this.sharedData.organizationEditModel.address.hasOwnProperty("null")){let K=this.sharedData.organizationEditModel.address.null;delete this.sharedData.organizationEditModel.address;let me={officeId:parseInt(this.utilityService.getTokenValueByKey("officeId")),category:"Addresstype",entityId:this.sharedData.organizationModel.organizationId,entity:this.sharedData.entity,editedListItemId:0};this.commonService.getAddressType(JSON.stringify(me)).subscribe(J=>{this.addressList=J;let Q={};Q.address1=K.address1,Q.address2=K.address2,Q.city=K.city,Q.stateId=K.stateId,Q.zipCode=K.zipCode,Q.entityId=this.sharedData.organizationModel.organizationId,Q.entity=this.sharedData.entity,Q.addressTypeListItemId=this.addressList.find(re=>"Main"==re.addressType).addressTypeListItemId,this.commonService.addressNewTsk(Q.entity,Q).subscribe(re=>{this.utilityService.callSnackBar("organizationUpdatedSuccessfully","success")})})}if(this.sharedData.organizationEditModel&&this.sharedData.organizationEditModel.hasOwnProperty("organization")&&JSON.stringify(this.sharedData.organizationEditModel.organization).includes("organization")){let K={organization:this.sharedData.organizationEditModel.organization};delete this.sharedData.organizationEditModel.organization,this.commonService.dynamicUpdate(K).subscribe(X=>{if(!X||!X.success)return!1;this.commonService.updateDepartmentOrganizationName(K.organization).subscribe(me=>!(!me||!me.success))})}let V=[];if(this.sharedData.organizationEditModel&&this.sharedData.organizationEditModel.hasOwnProperty("contactInformation")&&this.sharedData.organizationEditModel.contactInformation.hasOwnProperty("null")&&(this.sharedData.organizationEditModel.contactInformation.null.hasOwnProperty("website")&&(V.push({entityId:this.sharedData.organizationModel.organizationId,website:this.sharedData.organizationModel.website}),delete this.sharedData.organizationEditModel.contactInformation.null.website,this.contactInfoInsert=!0),this.sharedData.organizationEditModel.contactInformation.null.hasOwnProperty("phone")&&(V.push({entityId:this.sharedData.organizationModel.organizationId,phone:this.sharedData.organizationModel.phone}),delete this.sharedData.organizationEditModel.contactInformation.null.phone,this.contactInfoInsert=!0),this.sharedData.organizationEditModel.contactInformation.null.hasOwnProperty("phoneExtension")&&(V.push({entityId:this.sharedData.organizationModel.organizationId,phoneExtension:this.sharedData.organizationModel.phoneExtension}),delete this.sharedData.organizationEditModel.contactInformation.null.phone,this.contactInfoInsert=!0),this.sharedData.organizationEditModel.contactInformation.hasOwnProperty("null")&&(delete this.sharedData.organizationEditModel.contactInformation.null,Object.keys(this.sharedData.organizationEditModel.contactInformation).length<=0&&delete this.sharedData.organizationEditModel.contactInformation)),this.sharedData.organizationEditModel&&this.sharedData.organizationEditModel.hasOwnProperty("contactInformation")&&!this.sharedData.organizationEditModel.contactInformation.hasOwnProperty("null")&&(this.sharedData.organizationEditModel.contactInformation[this.sharedData.organizationModel.websiteContactInformationId]&&this.sharedData.organizationModel.website.length>0?(this.sharedData.organizationEditModel.contactInformation[this.sharedData.organizationModel.websiteContactInformationId]={},this.sharedData.organizationEditModel.contactInformation[this.sharedData.organizationModel.websiteContactInformationId].value=this.sharedData.organizationModel.website):this.sharedData.organizationEditModel.contactInformation[this.sharedData.organizationModel.websiteContactInformationId]&&0===this.sharedData.organizationModel.website.length&&(this.sharedData.organizationEditModel.OrganizationCurrent={[this.sharedData.organizationModel.organizationId]:{WebsiteContactInformationId:null}},delete this.sharedData.organizationEditModel.contactInformation[this.sharedData.organizationModel.websiteContactInformationId]),this.sharedData.organizationEditModel.contactInformation[this.sharedData.organizationModel.phoneContactInformationId]&&this.sharedData.organizationModel.phone.length>0?(this.sharedData.organizationEditModel.contactInformation[this.sharedData.organizationModel.phoneContactInformationId]={},this.sharedData.organizationEditModel.contactInformation[this.sharedData.organizationModel.phoneContactInformationId].value=this.sharedData.organizationModel.phone,this.sharedData.organizationEditModel.contactInformation[this.sharedData.organizationModel.phoneContactInformationId].extension=this.sharedData.organizationModel.phoneExtension||null):this.sharedData.organizationEditModel.contactInformation[this.sharedData.organizationModel.phoneContactInformationId]&&0===this.sharedData.organizationModel.phone.length&&(this.sharedData.organizationEditModel.hasOwnProperty("OrganizationCurrent")?this.sharedData.organizationEditModel.OrganizationCurrent[this.sharedData.organizationModel.organizationId].PhoneContactInformationId=null:this.sharedData.organizationEditModel.OrganizationCurrent={[this.sharedData.organizationModel.organizationId]:{PhoneContactInformationId:null}},delete this.sharedData.organizationEditModel.contactInformation[this.sharedData.organizationModel.phoneContactInformationId]),Object.keys(this.sharedData.organizationEditModel.contactInformation).length<=0&&delete this.sharedData.organizationEditModel.contactInformation),null!=this.sharedData.organizationModel.phoneContactInformationId&&(this.contactInfoInsert=!1),this.contactInfoInsert&&Object.keys(this.sharedData?.organizationEditModel||{}).length>0){let K=this.commonService.dynamicUpdate(this.sharedData.organizationEditModel).pipe((0,b.U)(me=>!0)),X=this.commonService.insertContactInformation(V,this.sharedData.entity).pipe((0,b.U)(me=>{if(me)return!0}));return(0,n.D)([X,K]).pipe((0,b.U)(me=>((V[0]?.hasOwnProperty("phone")||this.sharedData.organizationEditModel?.contactInformation?.hasOwnProperty(this.sharedData.organizationModel.phoneContactInformationId))&&(this.updatePrimaryPhoneContact(),this.updatePhoneExtension()),this.personService.onPrimaryContactInformationChange.next(!0),this.utilityService.callSnackBar("organizationUpdatedSuccessfully","success"),!0)))}if(this.contactInfoInsert&&Object.keys(this.sharedData?.organizationEditModel||{}).length<=0)return this.commonService.insertContactInformation(V,this.sharedData.entity).pipe((0,b.U)(K=>{if(K)return this.utilityService.callSnackBar("organizationUpdatedSuccessfully","success"),V[0].hasOwnProperty("phone")&&(this.updatePrimaryPhoneContact(),this.updatePhoneExtension()),this.personService.onPrimaryContactInformationChange.next(!0),this.onStateChange.next("stateChanged"),!0}));if(this.sharedData.hasOwnProperty("workflowEditModel")&&this.sharedData.hasOwnProperty("organizationEditModel")){const K=this.commonService.dynamicUpdate(this.sharedData.organizationEditModel).pipe((0,b.U)(me=>!0)),X=this.officeService.entityOfficeUpdateTsk(JSON.stringify(this.sharedData.workflowEditModel)).pipe((0,b.U)(me=>!0));return(0,n.D)([K,X]).pipe((0,b.U)(me=>(this.utilityService.callSnackBar("organizationUpdatedSuccessfully","success"),!0)))}if(this.sharedData.hasOwnProperty("organizationEditModel")&&!this.sharedData.hasOwnProperty("workflowEditModel"))return(this.sharedData.organizationEditModel.hasOwnProperty("contactInformation")||this.sharedData.organizationEditModel.hasOwnProperty("OrganizationCurrent"))&&(this.updateContactInformationGrid=!0),this.commonService.dynamicUpdate(this.sharedData.organizationEditModel).pipe((0,b.U)(K=>(this.utilityService.callSnackBar("organizationUpdatedSuccessfully","success"),this.onStateChange.next("stateChanged"),this.updateContactInformationGrid&&((this.sharedData.organizationEditModel?.contactInformation?.hasOwnProperty(this.sharedData.organizationModel.phoneContactInformationId)||this.sharedData.organizationEditModel.hasOwnProperty("OrganizationCurrent"))&&(this.updatePrimaryPhoneContact(),this.updatePhoneExtension()),this.personService.onPrimaryContactInformationChange.next(!0)),!0)));if(this.sharedData.hasOwnProperty("workflowEditModel")&&!this.sharedData.hasOwnProperty("organizationEditModel"))return this.officeService.entityOfficeUpdateTsk(JSON.stringify(this.sharedData.workflowEditModel)).pipe((0,b.U)(K=>(this.utilityService.callSnackBar("organizationUpdatedSuccessfully","success"),!0)))}return(0,o.of)(!0)}updatePrimaryPhoneContact(){const V=this.sharedData.organizationModel.phone,K=V.length>0?`(${V.substring(0,3)}) ${V.substring(3,6)}-${V.substring(6,10)}`:V;this.primaryPhoneNumber=K}updatePhoneExtension(){this.phoneExtension=this.sharedData.organizationModel.phoneExtension}getAddressTypeListItem(V,K){let me={officeId:parseInt(this.utilityService.getTokenValueByKey("officeId")),category:"Addresstype",entityId:V,entity:K,editedListItemId:0};this.commonService.getAddressType(JSON.stringify(me)).subscribe(J=>{this.addressList=J})}setEntityDetail(){const V={parentNavigationId:this.organizationDetail.directory.navigationId,applicationId:this.organizationDetail.directory.applicationId,entityId:this.organizationDetail.directory.data[0].organizationId,primaryColumn:this.organizationDetail.directory.primaryColumn,entity:this.organizationDetail.directory.entity,gridDataItem:this.organizationDetail.directory.data[0]};let K="";K="target"===V.entity.toLowerCase()?"sales":V.entity.toLowerCase(),this.router.navigateByUrl("/"+K+"/directory/"+V.entityId)}updateOrganizationDepartment(){}static#e=this.\u0275fac=function(K){return new(K||O)(d.LFG(I.v),d.LFG(C.t),d.LFG(L.l),d.LFG(D.R),d.LFG(F.F0),d.LFG(s.a),d.LFG(A.on))};static#t=this.\u0275prov=d.Yz7({token:O,factory:O.\u0275fac})}return O})()},51625:(he,y,i)=>{"use strict";i.d(y,{X:()=>A});var e=i(65619),n=i(47394),o=i(7110),a=i(65879),l=i(6738),u=i(710),d=i(28011),s=i(74187);let A=(()=>{class _{constructor(R,x,f,k){this.ws=R,this.cs=x,this.eds=f,this.us=k,this.basePath=o.XL.settings.apiUrl+"Person/",this.currentBankSequence=new e.X({}),this.exceptionJson={entity:"PersonBankAccount",entityId:0,exceptionStage:"PersonBankAccountException",entityOfficeId:0},this.subs=new n.w0,this.sessionStorageData=JSON.parse(sessionStorage.getItem("headerParams")),this.entityData=this.eds.getCurrentEntityDetail(),this.officeId=this.entityData?.gridDataItem?.officeId?this.entityData?.gridDataItem?.officeId:this.sessionStorageData.officeId}bankAccountStatusList(){return this.cs.ListItemProperty(this.officeId,"Status","RelatesTo","Bank")}bankAccountTypeList(){return this.cs.ListItem("BankAccountType",this.officeId)}bankAmountTypeList(){return this.cs.ListItem("BankAmountType",this.officeId)}personBankAccountList(R,x){return this.ws.get(this.basePath+"PersonBankAccount",{Json:JSON.stringify(R),refresh:!0},null,!1)}processRetrieveException(R,x){this.exceptionJson.entityId=R?.entityId,this.exceptionJson.entityOfficeId=R?.officeId,this.subs.add(this.cs.exceptionProcess(JSON.stringify(this.exceptionJson)).subscribe(f=>{f?f.data?(this.bankAccountException=f.data,this.callSnackBar("Add"==x?"exceptionWhileAddingBankAccount":"Edit"==x?"exceptionWhileEditingBankAccount":"exceptionWhileUpdatingSequence","warning")):f&&f.hasOwnProperty("error")?this.us.callSnackBar("errorInException","error"):this.bankAccountException=null:this.us.callSnackBar("errorInException","error")}))}personBankAccountTsk(R){return this.ws.post(this.basePath+"PersonBankAccountTsk",{Json:JSON.stringify(R)})}personBankAccountValidationIns(R){return this.ws.post(this.basePath+"PersonBankAccountValidationIns",{Json:JSON.stringify(R)})}callSnackBar(R,x,f){this.us.callSnackBar(R,x,f)}static#e=this.\u0275fac=function(x){return new(x||_)(a.LFG(l.f),a.LFG(u.v),a.LFG(d.a),a.LFG(s.t))};static#t=this.\u0275prov=a.Yz7({token:_,factory:_.\u0275fac})}return _})()},5759:(he,y,i)=>{"use strict";i.d(y,{F:()=>u});var e=i(65619),n=i(7110),o=i(65879),a=i(6738),l=i(74187);let u=(()=>{class d{constructor(A,_){this.ws=A,this.utilityService=_,this.onPersonDataAccessModified=new e.X(null),this.pdaData=[],this.disableSave=new e.X(!1),this._commonServiceUrl=n.XL.settings.apiUrl+"Common/"}GetPersonDataAccess(A){return this.ws.get(this._commonServiceUrl+"GetPDA",{json:A,refresh:!0})}UpdatePersonDataAccess(A){return this.ws.post(this._commonServiceUrl+"PostPDA",{json:JSON.stringify(A)})}static#e=this.\u0275fac=function(_){return new(_||d)(o.LFG(a.f),o.LFG(l.t))};static#t=this.\u0275prov=o.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})()},96629:(he,y,i)=>{"use strict";i.d(y,{n:()=>Le});var e=i(68838),n=i(87411),o=i(78623),a=i(30537),l=i(51233),u=i(90620),d=i(51216),s=i(8379),A=i(24048),_=i(19735),C=i(18266),R=i(39088),x=i(1760),f=i(47157),k=i(30617),w=i(30481),g=i(89515),M=i(20180),p=i(47805),E=i(60682),b=i(78602),I=i(14165),L=i(25088),D=i(12430),F=i(45754),P=i(81274),O=i(65879);let U=(()=>{class Gt{static#e=this.\u0275fac=function($n){return new($n||Gt)};static#t=this.\u0275mod=O.oAB({type:Gt});static#n=this.\u0275inj=O.cJS({imports:[M.L,s.Q,F.Zh,P.g0,D.L,g.aw]})}return Gt})();var V=i(45837),K=i(25800),X=i(94505),me=i(24678),J=i(84187),Q=i(42400),re=i(48424),de=i(51838),te=i(98445),j=i(60045),H=i(13868),z=i(48979),q=i(64034),se=i(88412),ne=i(38034);let _e=(()=>{class Gt{static#e=this.\u0275fac=function($n){return new($n||Gt)};static#t=this.\u0275mod=O.oAB({type:Gt});static#n=this.\u0275inj=O.cJS({imports:[M.L,J.wp,Q.x4,k.Ps,X.yu,D.L,g.aw,de.Wd,z.i,p.x,D.L,H.g,me.Uc,re.uw,se.v,te.dp,F.Zh,j.R,w.AA,E.X,q.w,ne.FA,n.L]})}return Gt})();var ge=i(98148),Ce=i(54428),Te=i(45152),De=i(11659),fe=i(21242),xe=i(19347);let Oe=(()=>{class Gt{static#e=this.\u0275fac=function($n){return new($n||Gt)};static#t=this.\u0275mod=O.oAB({type:Gt});static#n=this.\u0275inj=O.cJS({imports:[M.L,fe.Xo,g.aw,z.i,se.v,P.g0,k.Ps,xe.Is,X.yu]})}return Gt})(),Le=(()=>{class Gt{static#e=this.\u0275fac=function($n){return new($n||Gt)};static#t=this.\u0275mod=O.oAB({type:Gt});static#n=this.\u0275inj=O.cJS({providers:[R.H,b.G,C.o,_.r,g.sK,K.Z],imports:[M.L,ge.ef,g.aw,k.Ps,w.AA,E.X,p.x,s.Q,f.a,x.E,o.j,A.y,l.O,d.S,u.X,a.D,I.I,L.M,U,n.L,V.R,e.h,_e,De._,Ce.e,Te.V,Oe]})}return Gt})()},41477:(he,y,i)=>{"use strict";i.d(y,{r:()=>R});var e=i(59773),n=i(65879),o=i(78645),a=i(66878),l=i(710),u=i(74187),d=i(96814),s=i(83814),A=i(92033),_=i(94505);function C(x,f){if(1&x){const k=n.EpF();n.TgZ(0,"button",5),n.NdJ("click",function(){n.CHM(k);const g=n.oxw();return n.KtG(g.close())}),n._uU(1,"Cancel"),n.qZA()}}let R=(()=>{class x{constructor(k,w,g,M){this.cs=k,this.us=w,this.dialog=g,this.data=M,this.availabilityModel=[],this.logoUrl=new n.vpe,this.showCancelButton=!0,this.personId=0,this.isDataPrePopulated=!1,this.daysSelected=[],this._unsubscribeAll=new o.x}ngAfterViewInit(){}ngOnInit(){this.label=this.data.label,this.showCancelButton=!this.data.showCancelButton||this.data.showCancelButton,this.minDate=this.data.minimumDate,this.personId=this.data.personId,this.getAvailableDates()}getAvailableDates(){let k={personId:this.data.personId?this.data.personId:parseInt(this.us.getTokenValueByKey("personId"))};this.cs.getAvailability(k).pipe((0,e.R)(this._unsubscribeAll)).subscribe(w=>{if(w.data){let g=this.us.getPropertyArray(w.data,"date");g.length>0&&(this.isDataPrePopulated=!0),this.daysSelected=g}})}onSelectedDateChanged(k){this.daysSelected=k}save(){if(this.daysSelected.length>0||this.isDataPrePopulated){let k={personId:this.data.personId?this.data.personId:parseInt(this.us.getTokenValueByKey("personId")),daysSelected:this.daysSelected};this.cs.availability(k).pipe((0,e.R)(this._unsubscribeAll)).subscribe(w=>{"success"==w.response&&this.us.callSnackBar("Schedule updated.","success"),this.dialog.close({response:w.response})})}else this.us.callSnackBar("No dates are selected","info")}loadLogo(k,w){k&&this.logoUrl.emit({imageUrl:`${this.cs.fileRepositoryUrl}${k}/logo`,alias:k,loginUrl:w})}close(){this.dialog.close()}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(w){return new(w||x)(n.Y36(l.v),n.Y36(u.t),n.Y36(a.hV),n.Y36(a.eJ))};static#t=this.\u0275cmp=n.Xpm({type:x,selectors:[["app-availability-form"]],outputs:{logoUrl:"logoUrl"},decls:6,vars:4,consts:[[1,"availability-wrapper"],[3,"label","daysSelected","minimumDate","onSelectedDateChanged"],["fxLayout","row","fxLayout.lt-sm","column","fxLayoutGap","12px","fxLayoutAlign","end center",1,"px-16"],["mat-button","","color","secondary",3,"click",4,"ngIf"],["mat-button","","mat-raised-button","","color","accent",3,"click"],["mat-button","","color","secondary",3,"click"]],template:function(w,g){1&w&&(n.TgZ(0,"div",0)(1,"zen-multi-date-picker",1),n.NdJ("onSelectedDateChanged",function(p){return g.onSelectedDateChanged(p)}),n.qZA(),n.TgZ(2,"div",2),n.YNc(3,C,2,0,"button",3),n.TgZ(4,"button",4),n.NdJ("click",function(){return g.save()}),n._uU(5,"Save"),n.qZA()()()),2&w&&(n.xp6(1),n.Q6J("label",g.label)("daysSelected",g.daysSelected)("minimumDate",g.minDate),n.xp6(2),n.Q6J("ngIf",g.showCancelButton))},dependencies:[d.O5,s.xw,s.SQ,s.Wh,A.O,_.eB],styles:[".mat-calendar-body-cell.selected{background-color:#09f!important;border-radius:50%}.availability-wrapper{padding-bottom:10px;width:25rem;text-align:center}\n"],encapsulation:2})}return x})()},45837:(he,y,i)=>{"use strict";i.d(y,{R:()=>d});var e=i(76125),n=i(96814),o=i(20180),a=i(66878),l=i(94505),u=i(65879);let d=(()=>{class s{static#e=this.\u0275fac=function(C){return new(C||s)};static#t=this.\u0275mod=u.oAB({type:s});static#n=this.\u0275inj=u.cJS({providers:[n.uU],imports:[o.L,a.yj,e.d,l.yu]})}return s})()},78623:(he,y,i)=>{"use strict";i.d(y,{j:()=>w});var e=i(86853),n=i(53790),o=i(13868),a=i(12430),l=i(89515),u=i(20180),d=i(84187),s=i(42400),A=i(30617),_=i(94505),C=i(77171),R=i(30481),x=i(45754),f=i(20075),k=i(65879);let w=(()=>{class g{static#e=this.\u0275fac=function(E){return new(E||g)};static#t=this.\u0275mod=k.oAB({type:g});static#n=this.\u0275inj=k.cJS({providers:[e.N],imports:[u.L,d.wp,s.x4,A.Ps,_.yu,a.L,o.g,n.u,l.aw,C.y,R.AA,x.Zh,f.M]})}return g})()},46311:(he,y,i)=>{"use strict";i.d(y,{S:()=>w});var e=i(56223),n=i(6990),a=i(47394),l=i(78645),u=i(59773),d=i(65879),s=i(710),A=i(74187),_=i(96814),C=i(59834),R=i(27509);const x=function(){return{gridViewOnly:!0}};function f(g,M){if(1&g){const p=d.EpF();d.TgZ(0,"zen-grid",2),d.NdJ("zenGridDomElementFn",function(b){d.CHM(p);const I=d.oxw();return d.KtG(I.rateGridDomElement(b))})("onGridCellEditFn",function(b){d.CHM(p);const I=d.oxw();return d.KtG(I.onRateGridEditCellFn(b))})("onGridCellEditorSaveFn",function(b){d.CHM(p);const I=d.oxw();return d.KtG(I.onSaveRate(b))})("editorDDLValChange",function(b){d.CHM(p);const I=d.oxw();return d.KtG(I.dropDownValChange(b))})("addNew",function(b){d.CHM(p);const I=d.oxw();return d.KtG(I.addNewRow(b))})("onDeleteSelectionChangeFn",function(b){d.CHM(p);const I=d.oxw();return d.KtG(I.delete(b))})("onKeyDown",function(b){d.CHM(p);const I=d.oxw();return d.KtG(I.onTabEnterClick(b))}),d.qZA()}if(2&g){const p=d.oxw();d.Q6J("data",p.rateGrid.data)("pageable",!1)("totalRecords",p.rateGrid.totalCount)("columns",p.rateGrid.columns)("editGridCell",p.editGridCell)("startColIndex",p.startColIndex)("endColIndex",p.endColIndex)("showAddNewRow",p.showAddNewRow)("editFormGroup",p.formGroup)("addFormGroup",p.formGroup)("clientSidePaging",!0)("primaryColumn","transactionCodeId")("config",d.DdM(15,x))("ignoreValidation",!0)("navigable",!0)}}const k=g=>[...new Set([].concat(...g))];let w=(()=>{class g{set setEditBillRates(p){this.allowEditBillRates=p}set setAddNewRow(p){this.showAddNewRow=p}set rateGridData(p){p&&(this.gridData=p,this.feedToRateGrid())}set markUpVal(p){if(this.markUp=p,!(this.markUp&&Object.keys(this.markUp).length>0))return this.markUp=null,this.currentMarkUp=null,void(this.calculatedMarkUpData=null);this.markUpRate(this.markUp)}set setMarkUpTouched(p){p&&this.rateGrid.data.forEach(E=>{E.isEdited=!0})}set setTransactionCodes(p){this.loadTransactionCodes(p)}set setRateType(p){let E,b;if(p){"hourly"===p.toLowerCase()?E=[{transactionCode:"RT",payRate:0,billRate:0},{transactionCode:"OT",payRate:0,billRate:0}]:"salary"===p.toLowerCase()&&(E=[{transactionCode:"Salary",payRate:0,billRate:0}]),b=[...this.rateGrid.data];for(const I of b)this.delete(I);this.manageDefaultRates(E,!1)}}set setDefaultRates(p){this.initialDefaultRates=p,this.manageDefaultRates(p)}constructor(p,E){this.cs=p,this.us=E,this.subscriptions=new a.w0,this.currentMarkUp={},this.otherPayCodes=[],this.otherTransactionCodes=[],this.tabClick=!1,this.previousRowClosed=!0,this.isNew=!1,this.editGridCell=!0,this.officeId=0,this.actionsColumns=["deleteaction"],this.rateFormGroup=b=>new e.nJ({transactionCode:new e.p4(b.transactionCode,[e.kI.required]),transactionCodeId:new e.p4(b.transactionCodeId,[e.kI.required]),payRate:new e.p4(b.payRate,[e.kI.required,e.kI.min(0)]),billRate:new e.p4(b.billRate,[e.kI.required,e.kI.min(0)])}),this.rateGrid={},this.ratesToDelete=[],this._unsubscribeAll=new l.x,this.rateGrid=this.getRateGrid()}ngOnInit(){this.transactionCodeColIndex=this.rateGrid.columns.findIndex(p=>"transactionCode"==p.name)+this.actionsColumns.length,this.startColIndex=this.rateGrid.columns.findIndex(p=>"payRate"==p.name)+this.actionsColumns.length,this.endColIndex=this.rateGrid.columns.findIndex(p=>"billRate"==p.name)+this.actionsColumns.length,this.payRateColIndex=this.rateGrid.columns.findIndex(p=>"payRate"==p.name)+this.actionsColumns.length}loadTransactionCodes(p){this.transactionCodeList=p;const E=(0,n.cloneDeep)(p);!p||0===p.length||(this.rtCode=this.transactionCodeList.find(b=>"rt"===b.transactionCode.toLowerCase()),this.otCode=this.transactionCodeList.find(b=>"ot"===b.transactionCode.toLowerCase()),this.dtCode=this.transactionCodeList.find(b=>"dt"===b.transactionCode.toLowerCase()),this.rateGrid.columns[this.transactionCodeColIndex].editorData=E,this.otId=this.otCode?this.otCode.transactionCodeId:-1,this.rtId=this.rtCode?this.rtCode.transactionCodeId:-1,this.dtId=this.dtCode?this.dtCode.transactionCodeId:-1,this.otherTransactionCodes=this.transactionCodeList.filter(b=>b.transactionCodeId!==this.rtId&&b.transactionCodeId!==this.otId&&b.transactionCodeId!==this.dtId).map(b=>b.transactionCodeId))}feedToRateGrid(){this.gridData&&(this.rateGrid.data=this.gridData,this.sort(),this.markUp?this.markUpRate(this.markUp):this.calculatedMarkUpData=void 0)}manageDefaultRates(p,E=!0){if(p){if(this.formGroup){const b=this.formGroup.controls.transactionCode.value,I=p.find(L=>L.transactionCode.toLowerCase()===b.toLowerCase());I&&(E&&(this.formGroup.controls.payRate.setValue(I.payRate),this.formGroup.controls.billRate.setValue(I.billRate)),p.splice(p.findIndex(L=>L.transactionCode.toLowerCase()===I.transactionCode.toLowerCase()),1))}for(const b of p){const I=this.transactionCodeList.find(L=>L.transactionCode.toLowerCase()===b.transactionCode.toLowerCase());b.transactionCodeId=I?I.transactionCodeId:null,b.transactionCodeId&&(this.rateGrid.data&&this.rateGrid.data.length>0?this.rateGrid.data.find(L=>L.transactionCode.toLowerCase()===b.transactionCode.toLowerCase())&&E?this.us.swapArrayObject(b,this.rateGrid.data,"transactionCode"):this.rateGrid.data.unshift(b):this.rateGrid.data=[b])}this.sort()}}getUnusedCodes(){const p=this.us.getPropertyArray(this.rateGrid.data,"transactionCode");return p?this.transactionCodeList.filter(E=>!p.includes(E.transactionCode)):this.transactionCodeList}addNewRow(p){if(this.formGroup){if(this.formGroup.invalid)return void this.us.callSnackBar("editRowInvalidMessage","warning");this.onSaveRate()}if(this.rateGridDomEl=p.sender,0===this.transactionCodeList.length)return this.us.callSnackBar("No Paycodes left.","warning");const E=this.getUnusedCodes();this.rateGrid.columns[this.transactionCodeColIndex].editorData=E;const b=this.autoSelectTransactionCode(E);this.formGroup=this.rateFormGroup({transactionCode:b.transactionCode,transactionCodeId:b.transactionCodeId,payRate:0,billRate:0}),this.isNew=!0,p.sender.addRow(this.formGroup),this.onSaveRate(p)}autoSelectTransactionCode(p=this.transactionCodeList){let E;return E=p.find(b=>"rt"===b.transactionCode.toLowerCase()),E||(E=p.find(b=>"ot"===b.transactionCode.toLowerCase())),E||p[0]}rateGridDomElement(p){this.rateGridDomEl=p}dropDownValChange(p){if(p){const E=p.dataItem;this.calculatedMarkUpData&&("ot"===E.transactionCode.toLowerCase()?(this.formGroup.controls.payRate.setValue(this.calculatedMarkUpData.oTPayRate),this.formGroup.controls.billRate.setValue(this.calculatedMarkUpData.oTBillRate)):"rt"===E.transactionCode.toLowerCase()?(this.formGroup.controls.payRate.setValue(this.calculatedMarkUpData.rTPayRate),this.formGroup.controls.billRate.setValue(this.calculatedMarkUpData.rTBillRate)):"dt"===E.transactionCode.toLowerCase()?(this.formGroup.controls.payRate.setValue(this.calculatedMarkUpData.dTPayRate),this.formGroup.controls.billRate.setValue(this.calculatedMarkUpData.dTBillRate)):this.otherTransactionCodes.includes(E.transactionCodeId)&&this.calculatedMarkUpData.otherPayCodes&&this.calculatedMarkUpData.otherPayCodes[0]&&this.calculatedMarkUpData.otherPayCodes.map(b=>{E.transactionCodeId===b.transactionCodeId&&(this.formGroup.controls.payRate.setValue(b.payRate),this.formGroup.controls.billRate.setValue(b.billRate))}))}}onRateGridEditCellFn(p){if((!this.formGroup||!this.formGroup.invalid)&&p){let E=this.getUnusedCodes();E.push(p.dataItem),this.rateGrid.columns[this.transactionCodeColIndex].editorData=E,this.editedDataItem=p,this.editedRowIndex=p.rowIndex,this.rateGridDomEl=p.sender,this.formGroup=this.rateFormGroup(p.dataItem),this.allowEditBillRates||(this.markUp||this.formGroup.controls.billRate.setValue(0),this.formGroup.controls.billRate.disable());const b=this.rateGrid.data.findIndex(I=>I.transactionCodeId===p.dataItem.transactionCodeId);b&&(this.editedRowIndex=b),this.isNew=!1,p.sender.editRow(this.editedRowIndex,this.formGroup),this.setFocus(this.editedRowIndex,p.colIndex)}}onSaveRate(p){return new Promise((E,b)=>{if(this.isNew&&this.formGroup){if(!this.formGroup.controls.transactionCodeId.value)return this.us.callSnackBar("Please select a transactionCode","warning"),void E({});if(this.markUp)return this.tabClick||(this.onSaveRateAddedData(),E({})),this.markUpRate().then(I=>{E({})});this.onSaveRateAddedData(),E({})}else if(!this.isNew&&this.formGroup){if(this.formGroup.dirty){this.formGroup.value.payRate=Math.abs(this.formGroup.value.payRate),this.formGroup.value.billRate=Math.abs(this.formGroup.value.billRate),this.rateGrid.data[this.editedRowIndex].transactionCodeId=this.formGroup.value.transactionCodeId,this.rateGrid.data[this.editedRowIndex].transactionCode=this.transactionCodeList.find(P=>P.transactionCodeId==this.formGroup.value.transactionCodeId).transactionCode;let I=this.getUnusedCodes();I.push(this.formGroup.value),this.rateGrid.columns[this.transactionCodeColIndex].editorData=I;let L=this.formGroup.value.transactionCode,D=!(!this.rateGrid||!this.rateGrid.data||-1===this.rateGrid.data.findIndex(P=>"ot"==P.transactionCode.toLowerCase())),F=!(!this.rateGrid||!this.rateGrid.data||-1===this.rateGrid.data.findIndex(P=>"rt"==P.transactionCode.toLowerCase()));return L&&"dt"==L.toLowerCase()&&!D?(this.formGroup.controls.transactionCode.setErrors({incorrect:!0}),this.us.callSnackBar("Transaction code OT must exist for DT.","warning"),E({})):L&&"ot"==L.toLowerCase()&&!F?(this.formGroup.controls.transactionCode.setErrors({incorrect:!0}),this.us.callSnackBar("Transaction code RT must exist for OT.","warning"),E({})):(this.formGroup.controls.transactionCode.setErrors(null),this.rateGrid.data[this.editedRowIndex].payRate=this.formGroup.value.payRate,this.rateGrid.data[this.editedRowIndex].billRate=this.formGroup.value.billRate,this.rateGrid.data.forEach(P=>{P.isEdited=!0}),this.rateGridDomEl.closeRow(this.editedRowIndex),this.formGroup=void 0,this.editedRowIndex=-1,this.previousRowClosed=!0,this.markUpRate().then(P=>{E({})}))}{let I=this.formGroup.value.transactionCode,L=!(!this.rateGrid||!this.rateGrid.data||-1===this.rateGrid.data.findIndex(F=>"ot"==F.transactionCode.toLowerCase())),D=!(!this.rateGrid||!this.rateGrid.data||-1===this.rateGrid.data.findIndex(F=>"rt"==F.transactionCode.toLowerCase()));if(I&&"dt"==I.toLowerCase()&&!L)return this.formGroup.controls.transactionCode.setErrors({incorrect:!0}),this.us.callSnackBar("Transaction code OT must exist for DT.","warning"),E({});if(I&&"ot"==I.toLowerCase()&&!D)return this.formGroup.controls.transactionCode.setErrors({incorrect:!0}),this.us.callSnackBar("Transaction code RT must exist for OT.","warning"),E({});this.formGroup.controls.transactionCode.setErrors(null),this.rateGridDomEl.closeRow(this.editedRowIndex),this.formGroup=void 0,this.editedRowIndex=-1,this.previousRowClosed=!1,E({})}}else E({})})}checkRtOtDt(){let p=this.formGroup.value.transactionCode,E=!(!this.rateGrid||!this.rateGrid.data||-1===this.rateGrid.data.findIndex(I=>"ot"==I.transactionCode.toLowerCase())),b=!(!this.rateGrid||!this.rateGrid.data||-1===this.rateGrid.data.findIndex(I=>"rt"==I.transactionCode.toLowerCase()));if(!(p&&"dt"==p.toLowerCase()&&E&&b)){if(p&&"dt"==p.toLowerCase()&&!E)return this.us.callSnackBar("Transaction code OT must exist for DT.","warning");if(p&&"ot"==p.toLowerCase()&&!b)return this.us.callSnackBar("Transaction code RT must exist for OT.","warning")}}onSaveRateAddedData(){if(this.formGroup){const E=this.transactionCodeList.find(L=>L.transactionCodeId==this.formGroup.value.transactionCodeId);this.formGroup.controls.transactionCode.setValue(E.transactionCode),this.rateGrid.data.find(L=>"rt"===L.transactionCode.toLowerCase())&&this.formGroup.value.transactionCodeId==this.otId&&this.calculateMarkUp(this.currentMarkUp),this.formGroup.controls.payRate.value||this.formGroup.controls.payRate.setValue(0),this.formGroup.controls.billRate.value||this.formGroup.controls.billRate.setValue(0),0===this.rateGrid.data.length?(this.rateGrid.data=[this.formGroup.value],this.rateGrid.totalCount=1):(this.rateGrid.data.unshift(this.formGroup.value),this.rateGrid.totalCount=this.rateGrid.totalCount+1),this.rateGrid.data=[...this.rateGrid.data];const I=this.rateGrid.data.filter(L=>this.otherTransactionCodes.includes(L.transactionCodeId));if(I&&I[0]){this.otherPayCodes=[],I.map(D=>{this.otherPayCodes.push({transactionCodeId:D.transactionCodeId,payRate:D.payRate,billRate:D.billRate})});const L={...this.currentMarkUp,otherPayCodes:k(this.otherPayCodes)};L.hasOwnProperty("markUpId")&&this.calculateMarkUp(L)}this.isNew=!1,this.rateGridDomEl.closeRow(-1),this.formGroup=void 0}}onTabEnterClick(p){if("Tab"===p.key||"Enter"===p.key){this.tabClick=!0,this.formGroup&&!this.isNew&&(this.formGroup.value.payRate=Math.abs(this.formGroup.value.payRate),this.formGroup.value.billRate=Math.abs(this.formGroup.value.billRate),this.rateGrid.data[this.editedRowIndex].payRate=this.formGroup.value.payRate,this.rateGrid.data[this.editedRowIndex].billRate=this.formGroup.value.billRate),this.markUp&&this.markUpRate();const E=this.rateGridDomEl.activeCell.rowIndex,b=p.srcElement.attributes.id.value;let I=this.rateGrid.columns.findIndex(D=>D.name.toLowerCase()==b.replace("Id","").replace("Ddl","").replace("Dp","").toLowerCase());p.srcElement.offsetParent.classList.contains("k-numeric-wrap")&&(I=this.endColIndex),this.setFocus(E,I+1)}else this.tabClick=!1}setFocus(p,E){let b,I;const L=setTimeout(function(){document.querySelectorAll(".rateGrid .k-grid-content tr")&&document.querySelectorAll(".rateGrid .k-grid-content tr")[p].children[E]&&(b=document.querySelectorAll(".rateGrid .k-grid-content tr")[p].children[E].firstElementChild.getAttribute("id"),b&&b.includes("DdlWrapper")?b=b.replace("DdlWrapper","Ddl"):b&&b.includes("dpWrapper")?b=b.replace("dpWrapper","Dp"):b&&b.includes("Zs")?I=document.getElementById(b).firstElementChild.getElementsByTagName("input")[0].getAttribute("id"):document.querySelectorAll(".rateGrid .k-grid-content tr")[p].children[E].firstElementChild.className.includes("k-numerictextbox")?I=document.querySelectorAll(".rateGrid .k-grid-content tr")[p].children[E].firstElementChild.getElementsByTagName("input")[0].getAttribute("id"):b&&b.value&&(I=b.value),I?(document.getElementById(I).focus(),this.ddlValueOld="",this.enterKeyCount=1,clearTimeout(L)):this.enterKey=!1)},100)}delete(p){this.formGroup&&(this.isNew&&!this.formGroup.controls.transactionCodeId.value&&(this.formGroup.controls.transactionCode.setValue(void 0),p.transactionCode=void 0),-1==this.rateGrid.data.findIndex(E=>E.transactionCode==p.transactionCode)&&this.rateGrid.data.push(p),this.rateGridDomEl.closeRow(this.editedRowIndex),this.formGroup=void 0),p[this.primaryColumn]&&this.ratesToDelete.push(p),this.rateGrid.data.splice(this.rateGrid.data.findIndex(E=>E.transactionCode==p.transactionCode),1),this.rateGrid.data=[...this.rateGrid.data]}markUpRate(p){return new Promise((E,b)=>{if(p||(p=this.currentMarkUp),this.currentMarkUp=p,!this.currentMarkUp||0===Object.keys(this.currentMarkUp).length)return this.currentMarkUp=null,void E({});if(this.formGroup&&!this.isNew){if(this.rateGrid.data&&this.rateGrid.data.length>0){const I=this.rateGrid.data[this.editedRowIndex];if("rt"===I.transactionCode.toLowerCase())return p.payRate=I.payRate,p.billRate=I.billRate,this.calculateMarkUp(p).then(L=>{E({})});if("rt"!==I.transactionCode.toLowerCase()&&"ot"!==I.transactionCode.toLowerCase()&&"dt"!==I.transactionCode.toLowerCase()){let L=this.rateGrid.data.filter(F=>this.otherTransactionCodes.includes(F.transactionCodeId));const D={transactionCode:this.formGroup.controls.transactionCode.value,transactionCodeId:this.formGroup.controls.transactionCodeId.value,payRate:this.formGroup.controls.payRate.value,billRate:this.formGroup.controls.billRate.value};if(L=[...L,D],L&&L[0]){if(this.otherPayCodes=[],L.map(F=>{this.otherPayCodes.push({transactionCodeId:F.transactionCodeId,payRate:F.payRate,billRate:F.billRate})}),p.otherPayCodes=k(this.otherPayCodes),p.hasOwnProperty("markUpId"))return this.calculateMarkUp(p).then(F=>{E({})});E({})}else E({})}else E({})}}else if(this.formGroup&&this.isNew){if(this.formGroup.value.payRate=Math.abs(this.formGroup.value.payRate),this.formGroup.value.billRate=Math.abs(this.formGroup.value.billRate),this.formGroup.value.transactionCodeId==this.rtId)return p.payRate=this.formGroup.value.payRate,p.billRate=this.formGroup.value.billRate,this.calculateMarkUp(p).then(I=>{E({})});this.otherTransactionCodes.includes(this.formGroup.value.transactionCodeId)?(this.calculateRateForOtherCode(p),E({})):this.formGroup.valid&&this.formGroup.value.billRate>0?(this.calculatedMarkUpData=void 0,this.onSaveRateAddedData(),E({})):E({})}else if(this.markUp)if(this.rateGrid.data.length>0){const I=this.rateGrid.data.find(D=>"rt"===D.transactionCode.toLowerCase()),L=this.rateGrid.data.filter(D=>this.otherTransactionCodes.includes(D.transactionCodeId));if(L&&L[0])p.payRate=I?this.rateGrid.data.filter(D=>this.rtId===D.transactionCodeId)[0].payRate:0,p.billRate=0,this.calculateRateForOtherCode(p),E({});else if(I)return p.payRate=I.payRate,p.billRate=I.billRate,this.calculateMarkUp(p).then(D=>{E({})})}else E({});else E({})})}calculateRateForOtherCode(p){let E=this.rateGrid.data.filter(I=>this.otherTransactionCodes.includes(I.transactionCodeId)),b={};this.formGroup&&(b={transactionCode:this.formGroup.controls.transactionCode.value,transactionCodeId:this.formGroup.controls.transactionCodeId.value,payRate:this.formGroup.controls.payRate.value,billRate:this.formGroup.controls.billRate.value}),E=[...E,b],E&&E[0]&&(this.otherPayCodes=[],E.map(I=>{this.otherPayCodes.push({transactionCodeId:I.transactionCodeId,payRate:I.payRate,billRate:I.billRate})}),p.otherPayCodes=k(this.otherPayCodes),p.hasOwnProperty("markUpId")&&this.calculateMarkUp(p))}setMarkUpDataToRates(){if(!this.calculatedMarkUpData)return;this.formGroup&&(this.formGroup.controls.billRate.enable(),this.rateGrid.data[this.editedRowIndex]&&"rt"===this.rateGrid.data[this.editedRowIndex].transactionCode.toLowerCase()||this.formGroup.value.transactionCodeId==this.rtId?(this.formGroup.controls.payRate.setValue(this.calculatedMarkUpData.rTPayRate),this.formGroup.controls.billRate.setValue(this.calculatedMarkUpData.rTBillRate)):this.rateGrid.data[this.editedRowIndex]&&"ot"===this.rateGrid.data[this.editedRowIndex].transactionCode.toLowerCase()||this.formGroup.value.transactionCodeId==this.otId?(this.formGroup.controls.payRate.setValue(this.calculatedMarkUpData.oTPayRate),this.formGroup.controls.billRate.setValue(this.calculatedMarkUpData.oTBillRate)):this.rateGrid.data[this.editedRowIndex]&&"dt"===this.rateGrid.data[this.editedRowIndex].transactionCode.toLowerCase()||this.formGroup.value.transactionCodeId==this.dtId?(this.formGroup.controls.payRate.setValue(this.calculatedMarkUpData.dTPayRate),this.formGroup.controls.billRate.setValue(this.calculatedMarkUpData.dTBillRate)):(this.rateGrid.data[this.editedRowIndex]&&this.otherTransactionCodes.includes(this.rateGrid.data[this.editedRowIndex].transactionCodeId)||this.otherTransactionCodes.includes(this.formGroup.value.transactionCodeId))&&this.calculatedMarkUpData.otherPayCodes&&this.calculatedMarkUpData.otherPayCodes[0]&&this.calculatedMarkUpData.otherPayCodes.map(L=>{this.formGroup.value.transactionCodeId===L.transactionCodeId&&(this.formGroup.controls.payRate.setValue(L.payRate),this.formGroup.controls.billRate.setValue(L.billRate))})),this.rateGrid.data.find(L=>"rt"===L.transactionCode.toLowerCase())&&(this.rateGrid.data.find(L=>"rt"===L.transactionCode.toLowerCase()).payRate=this.calculatedMarkUpData.rTPayRate,this.rateGrid.data.find(L=>"rt"===L.transactionCode.toLowerCase()).billRate=this.calculatedMarkUpData.rTBillRate),this.rateGrid.data.find(L=>"ot"===L.transactionCode.toLowerCase())&&(this.rateGrid.data.find(L=>"ot"===L.transactionCode.toLowerCase()).payRate=this.calculatedMarkUpData.oTPayRate,this.rateGrid.data.find(L=>"ot"===L.transactionCode.toLowerCase()).billRate=this.calculatedMarkUpData.oTBillRate),this.rateGrid.data.find(L=>"dt"===L.transactionCode.toLowerCase())&&(this.rateGrid.data.find(L=>"dt"===L.transactionCode.toLowerCase()).payRate=this.calculatedMarkUpData.dTPayRate,this.rateGrid.data.find(L=>"dt"===L.transactionCode.toLowerCase()).billRate=this.calculatedMarkUpData.dTBillRate);const I=this.rateGrid.data.filter(L=>this.otherTransactionCodes.includes(L.transactionCodeId));I&&I[0]&&this.calculatedMarkUpData.otherPayCodes&&this.calculatedMarkUpData.otherPayCodes[0]&&this.calculatedMarkUpData.otherPayCodes.map(L=>{this.rateGrid.data.map(D=>{D.transactionCodeId===L.transactionCodeId&&(D.payRate=L.payRate,D.billRate=L.billRate)})}),this.allowEditBillRates||this.formGroup.controls.billRate.disable()}calculateMarkUp(p){return new Promise((E,b)=>{this.cs.markUpRate(p).pipe((0,u.R)(this._unsubscribeAll)).subscribe(I=>{I?(this.calculatedMarkUpData=I,E(this.calculatedMarkUpData),this.setMarkUpDataToRates(),this.tabClick=!1,this.rateGrid.data=[...this.rateGrid.data]):this.calculatedMarkUpData=void 0},b)})}outputValue(){return new Promise((p,E)=>{let b=!(!this.rateGrid||!this.rateGrid.data||-1===this.rateGrid.data.findIndex(D=>"dt"==D.transactionCode.toLowerCase())),I=!(!this.rateGrid||!this.rateGrid.data||-1===this.rateGrid.data.findIndex(D=>"ot"==D.transactionCode.toLowerCase())),L=!(!this.rateGrid||!this.rateGrid.data||-1===this.rateGrid.data.findIndex(D=>"rt"==D.transactionCode.toLowerCase()));return b&&!I?(this.us.callSnackBar("Transaction code OT must exist for DT.","warning"),p({valid:!1})):I&&!L?(this.us.callSnackBar("Transaction code RT must exist for OT.","warning"),p({valid:!1})):(this.formGroup&&this.formGroup.controls.transactionCode.setErrors(null),this.formGroup&&this.formGroup.invalid?p({valid:!1}):this.onSaveRate().then(D=>{let F=!0;for(const P of this.rateGrid.data)P.transactionCodeId||(F=!1);p({valid:F,rates:this.rateGrid.data.filter(P=>!P[this.primaryColumn]),rateCopy:this.rateGrid.data,rateUpd:this.rateGrid.data.filter(P=>P[this.primaryColumn]&&P.isEdited),rateDel:this.ratesToDelete})}))})}sort(){const p=["salary","dt","ot","rt"];for(const E of p){const b=this.rateGrid.data.find(I=>I.transactionCode.toLowerCase()===E);b&&(this.rateGrid.data.splice(this.rateGrid.data.findIndex(I=>I.transactionCode.toLowerCase()===E),1),this.rateGrid.data.unshift(b))}this.rateGrid.totalCount=this.rateGrid.data.length,this.rateGrid.data=[...this.rateGrid.data]}getRateGrid(){return{columns:[{name:"transactionCode",type:"text",sort:!1,editor:"zenSelect",editorData:[],editorTextField:"transactionCode",editorValueField:"transactionCodeId",editorColumns:["transactionCode"]},{name:"payRate",type:"money",sort:!1,editor:"numeric",editorData:[],editorTextField:"",editorValueField:"",editorColumns:[]},{name:"billRate",type:"money",sort:!1,editor:"numeric",editorData:[],editorTextField:"",editorValueField:"",editorColumns:[]},{name:"deleteAction",type:"bit",sort:!1,editor:"delete",editorData:[],editorTextField:"",editorValueField:"",editorColumns:[]}],data:[],totalCount:0}}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(E){return new(E||g)(d.Y36(s.v),d.Y36(A.t))};static#t=this.\u0275cmp=d.Xpm({type:g,selectors:[["zen-rate-grid"]],inputs:{panelClass:"panelClass",setEditBillRates:["allowEditBillRates","setEditBillRates"],setAddNewRow:["showAddNewRow","setAddNewRow"],rateGridData:["gridData","rateGridData"],markUpVal:["markUp","markUpVal"],setMarkUpTouched:["markUpTouched","setMarkUpTouched"],setTransactionCodes:["transactionCodeList","setTransactionCodes"],setRateType:["rateType","setRateType"],setDefaultRates:["defaultRates","setDefaultRates"],primaryColumn:"primaryColumn"},decls:2,vars:2,consts:[[3,"ngClass"],["class","rateGrid",3,"data","pageable","totalRecords","columns","editGridCell","startColIndex","endColIndex","showAddNewRow","editFormGroup","addFormGroup","clientSidePaging","primaryColumn","config","ignoreValidation","navigable","zenGridDomElementFn","onGridCellEditFn","onGridCellEditorSaveFn","editorDDLValChange","addNew","onDeleteSelectionChangeFn","onKeyDown",4,"ngIf"],[1,"rateGrid",3,"data","pageable","totalRecords","columns","editGridCell","startColIndex","endColIndex","showAddNewRow","editFormGroup","addFormGroup","clientSidePaging","primaryColumn","config","ignoreValidation","navigable","zenGridDomElementFn","onGridCellEditFn","onGridCellEditorSaveFn","editorDDLValChange","addNew","onDeleteSelectionChangeFn","onKeyDown"]],template:function(E,b){1&E&&(d.TgZ(0,"div",0),d.YNc(1,f,1,16,"zen-grid",1),d.qZA()),2&E&&(d.Q6J("ngClass",b.panelClass),d.xp6(1),d.Q6J("ngIf",b.rateGrid))},dependencies:[_.mk,_.O5,C.H,R.oO],styles:[".rateGrid .action-button-grid button.add-col{position:absolute;top:30px;left:15px}\n"],encapsulation:2})}return g})()},18314:(he,y,i)=>{"use strict";i.d(y,{C:()=>u});var e=i(96814),n=i(56223),o=i(48979),a=i(20180),l=i(65879);let u=(()=>{class d{static#e=this.\u0275fac=function(_){return new(_||d)};static#t=this.\u0275mod=l.oAB({type:d});static#n=this.\u0275inj=l.cJS({imports:[e.ez,n.u5,o.i,a.L]})}return d})()},46898:(he,y,i)=>{"use strict";i.d(y,{g:()=>x});var e=i(66878),n=i(10217),a=i(65879),l=i(74187),u=i(96814),d=i(83814),s=i(30617),A=i(94505),_=i(36126);function C(f,k){if(1&f&&(a._UZ(0,"iframe",5,6),a.ALo(2,"safe")),2&f){const w=a.oxw();a.Q6J("src",a.xi3(2,1,w.src,"resourceUrl"),a.uOi)}}function R(f,k){if(1&f){const w=a.EpF();a.ynx(0),a.TgZ(1,"p",7)(2,"span"),a._uU(3,"Your browser can't display this document."),a.qZA(),a.TgZ(4,"a",8),a.NdJ("click",function(){a.CHM(w);const M=a.oxw();return a.KtG(M.saveFile())}),a._uU(5,"Download Now"),a.qZA()(),a.BQk()}}let x=(()=>{class f{constructor(w,g,M){this.dialogRef=w,this.dialogData=g,this.us=M,this.isMobile=!1}ngOnInit(){this.isMobile=!(!this.us.deviceService.isMobile()&&!this.us.deviceService.isTablet()),this.dialogData.iframeUrl instanceof Blob?this.src=window.URL.createObjectURL(this.dialogData.iframeUrl):fetch(this.dialogData.iframeUrl).then(w=>w.blob()).then(w=>{this.src=window.URL.createObjectURL(w)})}saveFile(){n.saveAs(this.src,this.dialogData.reportName)}closeIframeDialog(){window.URL.revokeObjectURL(this.src),this.dialogRef.close(!0)}static#e=this.\u0275fac=function(g){return new(g||f)(a.Y36(e.hV),a.Y36(e.eJ),a.Y36(l.t))};static#t=this.\u0275cmp=a.Xpm({type:f,selectors:[["zen-report-slideview-iframe"]],decls:7,vars:2,consts:[[1,"dialog-content-wrapper"],["mat-button","","aria-label","Close dialog","tabindex","-1",1,"mat-icon-button","close-btn",3,"click"],[1,"mat-dialog-content","position-relative"],["class","doc w-100-p h-100-p",3,"src",4,"ngIf"],[4,"ngIf"],[1,"doc","w-100-p","h-100-p",3,"src"],["reportIframe",""],["fxLayout","column","fxLayoutAlign","center center",1,"position-absolute","w-100-p","support-message","fuse-white-bg"],[1,"mt-16",3,"click"]],template:function(g,M){1&g&&(a.TgZ(0,"div",0)(1,"button",1),a.NdJ("click",function(){return M.closeIframeDialog()}),a.TgZ(2,"mat-icon"),a._uU(3,"close"),a.qZA()(),a.TgZ(4,"div",2),a.YNc(5,C,3,4,"iframe",3),a.YNc(6,R,6,0,"ng-container",4),a.qZA()()),2&g&&(a.xp6(5),a.Q6J("ngIf",M.src),a.xp6(1),a.Q6J("ngIf",M.isMobile))},dependencies:[u.O5,d.xw,d.Wh,s.Hw,A.eB,_.y],styles:["@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInLeft{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInRight{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInDown{0%{opacity:0;transform:translateY(-2000px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInLeft{0%{opacity:0;transform:translate(-2000px)}to{opacity:1;transform:translate(0)}}@keyframes slideInRight{0%{opacity:0;transform:translate(2000px)}to{opacity:1;transform:translate(0)}}.report-iframe-slide-view-popup{animation-name:slideInRight;animation-iteration-count:1;animation-duration:1s;animation-delay:0s;animation-timing-function:ease;animation-fill-mode:both;backface-visibility:hidden;width:80vw;position:fixed!important;right:0;height:100vh}@media screen and (max-width: 599px){.report-iframe-slide-view-popup{width:96vw!important}}.report-iframe-slide-view-popup .mat-dialog-container{overflow:visible!important}.report-iframe-slide-view-popup .mat-dialog-container .dialog-content-wrapper{position:relative;max-height:100vh!important}.report-iframe-slide-view-popup .mat-dialog-container .dialog-content-wrapper .close-btn{position:absolute;top:5px;left:-17px;z-index:999;background:#929292;border:2px solid #fff;border-radius:50%;width:30px;height:30px;line-height:30px}.report-iframe-slide-view-popup .mat-dialog-container .dialog-content-wrapper .close-btn mat-icon{color:#f9f9f9;width:20px;height:20px;line-height:23px;font-size:17px}.report-iframe-slide-view-popup .mat-dialog-container .dialog-content-wrapper .close-btn:hover{background:red}.report-iframe-slide-view-popup .mat-dialog-container .dialog-content-wrapper .mat-dialog-content{height:100vh;max-height:100vh}.report-iframe-slide-view-popup .mat-dialog-container .dialog-content-wrapper .mat-dialog-content iframe{height:100vh!important}.report-iframe-slide-view-popup .mat-dialog-container .dialog-content-wrapper .mat-dialog-content .support-message{top:-12px;bottom:0;z-index:1;padding-right:45px}.theme-dark .report-iframe-slide-view-popup .support-message{background-color:#353535!important}.theme-dark .report-iframe-slide-view-popup .support-message span{color:#f9f9f9}.mobile .report-iframe-slide-view-popup .mat-dialog-container .dialog-content-wrapper .close-btn{left:10px}\n"],encapsulation:2})}return f})()},87411:(he,y,i)=>{"use strict";i.d(y,{L:()=>l});var e=i(30617),n=i(30508),o=i(20180),a=i(65879);let l=(()=>{class u{static#e=this.\u0275fac=function(A){return new(A||u)};static#t=this.\u0275mod=a.oAB({type:u});static#n=this.\u0275inj=a.cJS({imports:[o.L,e.Ps,n.n]})}return u})()},25500:(he,y,i)=>{"use strict";i.d(y,{D:()=>o});var e=i(65619),n=i(65879);let o=(()=>{class a{constructor(){this.isOpen="closed",this.context={},this.entity=null,this.closeSlideView=new e.X(""),this.showHideSlideView=new e.X(this.isOpen),this.onContextChanged=new e.X(this.context),this.onEntityChanged=new e.X(this.entity)}toggleSlideView(u){this.isOpen=u,this.showHideSlideView.next(this.isOpen)}setEntity(u){this.entity=u,this.onEntityChanged.next(this.entity)}setContext(u){this.context=u,this.onContextChanged.next(this.context)}static#e=this.\u0275fac=function(d){return new(d||a)};static#t=this.\u0275prov=n.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()},17691:(he,y,i)=>{"use strict";i.d(y,{j:()=>l});var e=i(7110),n=i(65619),o=i(65879),a=i(6738);let l=(()=>{class u{constructor(s){this.ws=s,this.selectedContactCurrentToggleState=!1,this.currentOrganizationSmsProfileId=0,this.smsProfileString="",this.basePath=e.XL.settings.apiUrl,this.onChatSelected=new n.X(null),this.onMMSImageSelected=new n.X(null),this.onOrganizationProfileSelected=new n.X(null),this.onChangeSMSNotificationCount=new n.X(null),this.onContactDetailSelected=new n.X(null),this.onContactInfoSelected=new n.X(null),this.onAssignedToSelected=new n.X(null),this.onFilterSearch=new n.X(null),this.onAssignedTo=new n.X(null),this.onContactNumberSelected=new n.X(null),this.onSidebarChanged=new n.X(null),this.onCurrentTextNavigationChanged=new n.X(null),this.ontoggleChatList=new n.X(null)}getPersonSMSContact(s){return this.ws.get(this.basePath+"SMS/PersonSMSContact",{json:s},null)}getMessage(s){return this.ws.get(e.XL.settings.apiUrl+"SMS/PersonSMS",{json:s},null)}getSMSNotificationCount(s){return this.ws.get(e.XL.settings.apiUrl+"SMS/SMSNotificationCount",{json:JSON.stringify(s)})}insertSMS(s){return this.ws.post(e.XL.settings.apiUrl+"SMS/InsertSMS",JSON.stringify(s))}updateSMSView(s){return this.ws.post(e.XL.settings.apiUrl+"SMS/UpdateSMSView",{json:s},null,null,!1)}updateSMSAction(s){return this.ws.post(e.XL.settings.apiUrl+"SMS/UpdateSMSAction",{json:s},null,null,!1)}tfSMSOfficeStaffSel(s,A,_){return this.ws.get(e.XL.settings.apiUrl+"SMS/TfSMSOfficeStaffSel",{userPersonId:s,includeSelectedOny:A,refresh:_},null)}getSMSRecipients(s){return this.ws.get(e.XL.settings.apiUrl+"SMS/GetSMSRecipients",{json:JSON.stringify(s)})}contactSelected(s){this.onContactDetailSelected.next(s),this.onContactInfoSelected.next(!0)}static#e=this.\u0275fac=function(A){return new(A||u)(o.LFG(a.f))};static#t=this.\u0275prov=o.Yz7({token:u,factory:u.\u0275fac})}return u})()},90620:(he,y,i)=>{"use strict";i.d(y,{X:()=>I});var e=i(78250),n=i(21242),o=i(48424),a=i(94505),l=i(66878),u=i(84187),d=i(30617),s=i(42400),A=i(81274),_=i(20180),C=i(12430),R=i(48979),x=i(89515),f=i(85947),k=i(38034),w=i(75110),g=i(54885),M=i(64034),p=i(30481),E=i(20075),b=i(65879);let I=(()=>{class L{static#e=this.\u0275fac=function(P){return new(P||L)};static#t=this.\u0275mod=b.oAB({type:L});static#n=this.\u0275inj=b.cJS({imports:[_.L,f.o9,a.yu,A.g0,d.Ps,u.wp,s.x4,o.uw,l.yj,e.jT,n.Xo,C.L,R.i,g.nf,k.FA,w.IZ,w.ni,x.aw,M.w,p.AA,E.M]})}return L})()},18266:(he,y,i)=>{"use strict";i.d(y,{o:()=>k});var e=i(97582),n=i(69862),o=i(65619),a=i(78645),l=i(46438),u=i(7110),d=i(3209),s=i(37398),A=i(64716),_=i(65879),C=i(710),R=i(6738),x=i(28011),f=i(74187);class k{constructor(g,M,p,E,b){this._httpClient=g,this.commonService=M,this.ws=p,this.eds=E,this.us=b,this.documentServiceUrl=u.XL.settings.apiUrl+"Document/",this.currentlyScheduled=!0,this.mineSMSOnly=!1,this.onChatSelected=new o.X(null),this.onContactChatSelected=new o.X(null),this.onContactSelected=new o.X(null),this.onOrganizationProfileSelected=new o.X(null),this.onSmsOutboundChanged=new o.X(null),this.onChatsUpdated=new a.x,this.onUserUpdated=new a.x,this.onLeftSidenavViewChanged=new a.x,this.onRightSidenavViewChanged=new a.x,this.isCurrent=new o.X(!0),this.onCheckBoxSelect=new o.X(null),this.onDeselectingContacts=new o.X(null),this.onPinMessage=new o.X(null),this.onActiveNavChange=new o.X(null),this.onSMSDelete=new o.X(null),this.onStartDateChange=new o.X(null),this.onEndDateChange=new o.X(null)}resolve(g,M){return this.entityId=g.root.children[0].params.entityId,new Promise((p,E)=>{Promise.all([this.getContacts()]).then(([b])=>{b&&(this.contacts=b.data),p()},E)})}getMessage(g){return this.ws.get(u.XL.settings.apiUrl+"SMS/PersonSMS",{json:g},null)}getChat(g,M,p,E,b){if(0!=M&&null!=M)return new Promise((I,L)=>{this.ws.get(u.XL.settings.apiUrl+"SMS/PersonSMS",{json:JSON.stringify({contactInformationId:M,organizationSMSProfileId:p,isCurrent:!!E,currentOrganizationSmsProfileList:E?b:"",personId:g}),refresh:!0}).subscribe(F=>{let P=F;const O=this.contacts&&this.contacts.data.find(V=>V.contactInformationId===M),U={weekday:"short",year:"numeric",month:"long",day:"numeric"};if(P=P?.filter(V=>{V.unformattedInsertDate=V.insertDate;const K=new Date(V.insertDate);return new Date(Date.UTC(K.getFullYear(),K.getMonth(),K.getDate(),K.getHours(),K.getMinutes())),V.insertDate=new Date(`${V.insertDate.replace("T"," ")} UTC`).toDateString()+" "+new Date(`${V.insertDate.replace("T"," ")} UTC`).toLocaleTimeString().replace(/:\d+ /," ")}),P?.forEach(V=>{V.scheduleDateUTC=new Date(V.scheduleDateUTC).toLocaleTimeString(void 0,U).replace(/:\d+ /," ")}),!P){const K={chatId:l.n.generateGUID(),dialog:[],contact:O};return this.onChatSelected.next({...K}),void this.onContactChatSelected.next({...K})}{const V={chatId:P.id,dialog:P,contact:O};this.onChatSelected.next({...V}),this.onContactChatSelected.next({...V})}},L)});this.createNewChat(M).then(I=>{})}getContactChat(g,M,p,E,b,I){0!=M&&null!=M?this.ws.get(u.XL.settings.apiUrl+"SMS/PersonSMS",{json:JSON.stringify({contactInformationId:M,organizationSMSProfileId:p,isCurrent:!!E,currentOrganizationSmsProfileList:E?b:"",personId:g,callFrom:I}),refresh:!0}).subscribe(D=>{let F=D;const P=this.contacts&&this.contacts.data.find(O=>O.contactInformationId===M);if(F)this.onContactChatSelected.next({chatId:F.id,dialog:F,contact:P});else{const U={chatId:l.n.generateGUID(),dialog:[],contact:P};this.onContactChatSelected.next({...U})}}):this.createNewChat(M).then(D=>{})}createNewChat(g){return new Promise((M,p)=>{l.n.generateGUID()})}selectContact(g){this.onContactSelected.next(g)}setUserStatus(g){this.user.status=g}getContacts(g){if(g){const M=g.entityId;let p=g.entity.toLowerCase();return new Promise((E,b)=>{let I=0;I=M||this.entityId,this.commonService.getContactInformation(JSON.stringify({entity:"jobcandidate"===p?p:"Person",entityId:I,isCellPhone:1}),!0).subscribe(L=>{this.contacts=L||null,E(L)},b)})}return null}insertSMS(g){return this.ws.post(u.XL.settings.apiUrl+"SMS/InsertSMS",JSON.stringify(g))}sendTemplateSMS(g){return this.ws.post(u.XL.settings.apiUrl+"SMS/TemplateSMS",g)}getOrganizationSMSProfile(g){return this.ws.get(u.XL.settings.apiUrl+"SMS/OrganizationSMSProfile",{json:JSON.stringify(g)})}deleteSMS(g){return this.ws.post(u.XL.settings.apiUrl+"SMS/DeleteSMS",{json:g},null)}getOrganizationSMSProfileDetail(g){return this.ws.get(u.XL.settings.apiUrl+"SMS/OrganizationSMSProfileDetail",{json:JSON.stringify(g)})}uploadFiles(g){let M=new n.WM;return M=M.append("enctype","multipart/form-data"),M=M.append("Accept","application/json"),M=M.append("Content-Type","angular/auto"),M=M.append("Authorization","Bearer "+this.us.getLocalStorage("token")),M=M.append("HeaderParams",JSON.stringify({roleId:0,applicationId:0})),this.ws.postWithOptions(u.XL.settings.apiUrl+"SMS/UploadFile",g,{headers:M})}getDocumentTemplate(){this.blockUI.start();let g=new n.WM;return g=g.append("Content-Type","application/json; charset = UTF-8"),g=g.append("Accept","application/octet-stream"),g=g.append("Authorization","Bearer "+this.us.getLocalStorage("token")),this._httpClient.get(this.documentServiceUrl+"DocumentTemplate",{headers:g,responseType:"blob"}).pipe((0,s.U)(p=>new Blob([p],{type:"DocumentTemplate"})),(0,A.x)(()=>{this.blockUI.stop()}))}getFormattedDate(g,M){let p;if(g instanceof Date){const E=new Date(g);let D,b=new Date,L=(Math.abs(b.getDate()-E.getDate()),E.getFullYear());D=0==Math.floor(Math.abs(b.getTime()-E.getTime())/864e5)?1:Math.floor(Math.abs(b.getTime()-E.getTime())/864e5);let F=b.getFullYear(),P=["Sun","Mon","Tue","Wed","Thurs","Fri","Sat"],O=["Jan","Feb","March","April","May","June","July","Aug","Sep","Oct","Nov","Dec"];p=E.getDate()===b.getDate()&&E.getMonth()===b.getMonth()&&F===L?"Today "+E.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):1===D&&E.getTime()<b.getTime()?"Yesterday "+E.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):D>1&&D<=7?P[E.getDay()]+" "+E.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):F>L?O[E.getMonth()]+" "+E.getDate()+" "+E.getFullYear()+", "+E.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):P[E.getDay()]+", "+O[E.getMonth()]+" "+E.getDate()+", "+E.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}else p=g;return p}static#e=this.\u0275fac=function(M){return new(M||k)(_.LFG(n.eN),_.LFG(C.v),_.LFG(R.f),_.LFG(x.a),_.LFG(f.t))};static#t=this.\u0275prov=_.Yz7({token:k,factory:k.\u0275fac})}(0,e.gn)([(0,d.bH)()],k.prototype,"blockUI",void 0)},49919:(he,y,i)=>{"use strict";i.d(y,{Z:()=>o});var e=i(65619),n=i(65879);let o=(()=>{class a{constructor(){this.i=0,this.snapshotIndex=new e.X(this.i)}refreshSnapshot(){this.snapshotIndex.next(++this.i)}static#e=this.\u0275fac=function(d){return new(d||a)};static#t=this.\u0275prov=n.Yz7({token:a,factory:a.\u0275fac})}return a})()},68838:(he,y,i)=>{"use strict";i.d(y,{h:()=>fe});var e=i(29941),n=i(84936),o=i(51625),a=i(86401),l=i(94505),u=i(45754),d=i(23680),s=i(38034),A=i(66878),_=i(84187),C=i(30617),R=i(42400),x=i(78250),f=i(48424),k=i(32651),w=i(51838),g=i(32333),M=i(81274),p=i(30481),E=i(20180),b=i(89515),I=i(91918),L=i(54885),D=i(12430),F=i(48979),P=i(47805),O=i(86439),U=i(13868),V=i(56223),K=i(98148),X=i(53790),me=i(64190),J=i(36295),Q=i(95023),re=i(51216),de=i(20075),te=i(65879);let j=(()=>{class xe{static#e=this.\u0275fac=function(Gt){return new(Gt||xe)};static#t=this.\u0275mod=te.oAB({type:xe});static#n=this.\u0275inj=te.cJS({imports:[E.L,_.wp,l.yu,f.uw,R.x4,C.Ps,d.si,M.g0,A.yj,b.aw,de.M]})}return xe})();var H=i(57417),z=i(39523),q=i(56263),se=i(87411),ne=i(13317),_e=i(10838),ge=i(54766),Ce=i(74260),Te=i(92682),De=i(10847);let fe=(()=>{class xe{static#e=this.\u0275fac=function(Gt){return new(Gt||xe)};static#t=this.\u0275mod=te.oAB({type:xe});static#n=this.\u0275inj=te.cJS({providers:[a.c,J.o,n.e,e.F,H.w,o.X,Q.H,Ce.P,Te.k,De.$],imports:[me.Bz,E.L,l.yu,u.Zh,s.FA,_.wp,C.Ps,R.x4,d.si,f.uw,k.SJ,M.g0,x.jT,A.yj,g.Nn,w.Wd,p.AA,b.aw,I.o0,L.nf,O.XI,D.L,F.i,P.x,U.g,V.u5,K.ef,X.u,re.S,j,z.O,q.Ky,se.L,ne.I,_e.Y,ge.N]})}return xe})()},39059:(he,y,i)=>{"use strict";i.d(y,{M:()=>_});var e=i(65619),n=i(7110),o=i(65879),a=i(64190),l=i(96814),u=i(6738),d=i(710),s=i(28011),A=i(74187);let _=(()=>{class C{constructor(x,f,k,w,g,M){this.router=x,this.location=f,this.ws=k,this.cs=w,this.eds=g,this.utilityService=M,this.searchText="",this.currentView=new e.X({}),this.onTasksChanged=new e.X([]),this.onSelectedTodosChanged=new e.X([]),this.onCurrentTaskChanged=new e.X([]),this.onFiltersChanged=new e.X([]),this.onCurrentFilterChanged=new e.X(null),this.onOwnersChanged=new e.X([]),this.onViewChanged=new e.X({}),this.onTagsChanged=new e.X([]),this.onSearchTextChanged=new e.X(""),this.onPageChanged=new e.X(null),this.onFilterChanged=new e.X([]),this.onETCTaskRefresh=new e.X([]),this.OwnerChanged=new e.X(null),this.currentOwner=new e.X({}),this._createdOrUpdatedTask=new e.X(null),this.onRefresh=new e.X(null),this.showOrHideRelatesTo=new e.X({}),this.onCustomerWorkflowClick=new e.X({}),this.taskParam=new e.X(null),this.filterUpdJson={},this.filterInsJson={},this.pageNumber=1,this.pageSize=50,this.initialPageSize=50,this.columnFilters=[],this.predicate="",this.sortOrder="desc",this.orderBy="StartDate",this.basePath=n.XL.settings.apiUrl+"Task/",this.tasks=[],this.filters=[],this.selectedTodos=[],this.taskFormPreset={},this.onCurrentFilterChanged.subscribe(p=>{this.pageSize=this.initialPageSize,this.pageNumber=1}),this.OwnerChanged.subscribe(p=>{p&&(this.owners?.map(E=>E.isCurrent=!1),this.owners?.map(E=>{E.id==p.value.id&&(E.isCurrent=!0)}),this.owners&&(this.onOwnersChanged.next(this.owners),this.currentOwner.next(this.owners.filter(E=>!0===E.isCurrent)[0])),this.getTasks())})}resolve(x,f){return this.routeParams=x.params,this.routeQueryParams=x.queryParams,"true"==x?.queryParams?.fromShortcuts?.toLowerCase()&&this.ws.get(n.XL.settings.apiUrl+"common/DirectoryFilter",{json:JSON.stringify({directory:"Task",callFrom:"ETC"}),refresh:!0}).subscribe(k=>{const w=k.find(g=>g.hasOwnProperty("applyStageFilter"));w&&(this.isStageFilter=w.applyStageFilter),this.rawFilters=k,k&&(this.owners=k.filter(g=>"TaskOwnerFilter"==g.filterName)[0].data,this.onOwnersChanged.next(this.owners),this.currentOwner.next(this.owners.filter(g=>!0===g.isCurrent)[0]))}),"blank"==this.routeParams.taskId||"task"==this.routeParams.taskId?(delete x.params.taskId,void delete this.routeParams.taskId):new Promise((k,w)=>{Promise.all([this.getFilters()]).then(()=>{this.getTasks(),k()},w)})}set createdOrUpdatedTask(x){const f=this.eds.getCurrentEntityDetail(),k=this.createdOrUpdatedTask.value??{};f?.entity&&(x?k[f.entity.toLowerCase()]={entityId:f.entityId,data:x,timestamp:Date.now()}:delete k[f.entity.toLowerCase()],this._createdOrUpdatedTask.next(k))}get createdOrUpdatedTask(){return this._createdOrUpdatedTask}getDynamicJson(x){if(this.rawFilters)for(const f of this.rawFilters)switch(f.filterName){case"TaskOwnerFilter":this.generateDynamicJson(f,this.currentOwner.getValue().id);break;case"TaskFilter":this.generateDynamicJson(f,x);break;case"TaskView":this.generateDynamicJson(f,this.currentView.getValue().id)}}generateDynamicJson(x,f){if(x.currentValue!=f)if(0==x.id)this.filterInsJson.optionPropertyId=x.optionPropertyId,this.filterInsJson.optionValue=f,this.filterInsJson.filterName=x.filterName;else{const k={},w={};w[x.columnName]=f;const g={};g[x.id]=w,k[x.tableName]=g,Object.assign(this.filterUpdJson,k)}}updateRoutes(){const x=this.routeParams.taskId;this.setCurrentTask(x&&"filter"!=x&&"tags"!=x?this.routeParams.taskId:null),!this.routeParams.filterHandle&&!this.routeParams.tagHandle&&this.location.go("/task/filter/"+this.currentFilter.id.toLowerCase())}setRoutes(x){const f=this.routeParams.tagHandle,k=this.routeParams.filterHandle,w=x?"/"+x:"";this.location.go(f?"task/tag/"+f.toLowerCase()+w:k?"task/filter/"+k.toLowerCase()+w:"/task/filter/"+this.currentFilter.id)}getFilters(){if(this.setCurrentTask(null),!(this.filters.length>0))return new Promise((x,f)=>{this.ws.get(n.XL.settings.apiUrl+"common/DirectoryFilter",{json:JSON.stringify({directory:"Task",callFrom:"ETC"}),refresh:!0}).subscribe(k=>{const w=k.find(g=>g.hasOwnProperty("applyStageFilter"));w&&(this.isStageFilter=w.applyStageFilter),this.rawFilters=k,k&&(this.filters=k.filter(g=>"TaskFilter"==g.filterName)[0].data,this.onFiltersChanged.next(this.filters),this.currentFilter=this.filters.filter(g=>!0===g.isCurrent)[0],this.owners=k.filter(g=>"TaskOwnerFilter"==g.filterName)[0].data,this.onOwnersChanged.next(this.owners),this.currentOwner.next(this.owners.filter(g=>!0===g.isCurrent)[0]),this.views=k.filter(g=>"TaskView"==g.filterName)[0].data,this.onViewChanged.next(this.views),this.currentView.next(this.views.filter(g=>!0===g.isCurrent)[0]),x(this.filters))},f)})}getTasks(){return this.isFromETC=!0,this.routeParams?.filterHandle?(this.filters?.forEach(x=>{x.isCurrent=!1}),this.currentFilter=this.filters.find(x=>x.id.toLowerCase()==this.routeParams.filterHandle.toLowerCase()),this.currentFilter.isCurrent=!0,this.filters=[...this.filters],this.onFiltersChanged.next(this.filters),this.getDynamicJson(this.routeParams.filterHandle),this.getTasksByFilter(this.routeParams.filterHandle)):this.getTasksByCurrentFilter()}getTasksByCurrentFilter(){return this.getDynamicJson(this.currentFilter?.id),this.getTasksByFilter(this.currentFilter?.id)}getTasksByFilter(x,f,k,w,g){let M=JSON.stringify({entityId:this.currentOwner.getValue().id,filter:x,sortOrder:this.sortOrder,orderBy:this.orderBy,pageNumber:this.pageNumber,pageSize:this.pageSize,isFromETC:this.isFromETC,isStageFilter:this.isStageFilter,columnFilters:this.columnFilters,predicate:this.predicate,dynamicUpdJson:"{}"==JSON.stringify(this.filterUpdJson)?null:this.filterUpdJson,dynamicInsJson:"{}"==JSON.stringify(this.filterInsJson)?null:this.filterInsJson});return this.taskParam.next(M),new Promise((p,E)=>{this.ws.get(this.basePath+"Task",{json:M,refresh:!0}).subscribe(b=>{b.primaryColumn="taskId",b.entity="task",b.hasOwnProperty("insertedPersonOptionId")&&b.hasOwnProperty("filterName")&&(this.rawFilters.filter(L=>L.filterName==b.filterName)[0].id=b.insertedPersonOptionId),this.rawFilters.filter(L=>"TaskFilter"==L.filterName)[0].currentValue=x,this.rawFilters.filter(L=>"TaskOwnerFilter"==L.filterName)[0].currentValue=this.currentOwner.getValue().id,this.tasks=b;let I=this.tasks.columns.findIndex(L=>"assignedToEntityName"===L.name);this.tasks.columns.splice(I,1),this.onTasksChanged.next(this.tasks),p(this.tasks),this.updateRoutes(),this.filterUpdJson={},this.filterInsJson={}},E)})}updateTaskView(x){const f=this.rawFilters.filter(w=>"TaskView"==w.filterName)[0];this.generateDynamicJson(f,x)}toggleSelectedTodo(x){if(this.selectedTodos.length>0)for(const f of this.selectedTodos)if(f.taskId===x){const k=this.selectedTodos.indexOf(f);if(-1!==k)return this.selectedTodos.splice(k,1),void this.onSelectedTodosChanged.next(this.selectedTodos)}this.selectedTodos.push(this.tasks.find(f=>f.id===x)),this.onSelectedTodosChanged.next(this.selectedTodos)}toggleSelectAll(){this.selectedTodos.length>0?this.deselectTodos():this.selectTodos()}selectTodos(x,f){this.selectedTodos=[],void 0===x||void 0===f?this.selectedTodos=this.tasks:this.selectedTodos.push(...this.tasks.filter(k=>k[x]===f)),this.onSelectedTodosChanged.next(this.selectedTodos)}deselectTodos(){this.selectedTodos=[],this.onSelectedTodosChanged.next(this.selectedTodos)}setCurrentTask(x){null!=x?(this.currentTask=null,this.currentTask=this.tasks.data.find(f=>f.taskId===x),this.currentTask&&this.onCurrentTaskChanged.next([this.currentTask,"edit"])):this.onCurrentTaskChanged.next([null,null])}taskPreset(x){return this.ws.get(this.basePath+"TaskPreset",{json:x})}taskTemplate(x){return this.ws.get(this.basePath+"TaskTemplate",{json:x,refresh:!0})}task(x){return this.ws.get(this.basePath+"Task",{json:x,refresh:!0})}getTask(x){return this.ws.get(this.basePath+"TaskList",{json:x,refresh:!0})}taskTemplateTask(x){return this.ws.get(this.basePath+"TaskTemplateTask",{json:x})}createTask(x,f){const k={json:JSON.stringify(x),entity:f};return this.ws.post(this.basePath+"Task",k)}createTaskComment(x){const f={json:JSON.stringify(x)};return this.ws.post(this.basePath+"TaskComment",f)}toggleTaskCompleted(x){this.tasks.map(f=>{if(x.includes(f.taskId))if(f.completionDate)this.cs.dynamicUpdate('{"Task":{"'+x+'":{"CompletionDate":null}}}',"Task set as complete").subscribe(k=>{f.completionDate=null});else{const k=this.mergeDateTime(new Date,new Date);this.cs.dynamicUpdate('{"Task":{"'+x+'":{"CompletionDate":"'+k+'"}}}',"Task set as complete").subscribe(w=>{f.completionDate=k})}})}updateTask(x){return this.ws.post(this.basePath+"UpdateTask",{json:JSON.stringify(x,this.utilityService.dateReplacer)})}toggleTagOnSelectedTodos(x){this.selectedTodos.map(f=>{this.toggleTagOnTodo(x,f)})}toggleTagOnTodo(x,f){const k=f.tags.indexOf(x);-1!==k?f.tags.splice(k,1):f.tags.push(x)}updateTodos(x){}mergeDateTime(x,f){return x.getFullYear()+"-"+(x.getMonth()+1)+"-"+x.getDate()+" "+f.getHours()+":"+f.getMinutes()+":00"}getTaskControl(x,f){return this.ws.get(this.basePath+"TaskControl",{json:x,refresh:f})}postTaskAction(x){return this.ws.post(this.basePath+"TaskAction",{json:x})}workflowStage(x){return this.ws.get(this.basePath+"WorkflowStage",{json:x,refresh:!0})}taskTemplateState(x){return this.ws.get(this.basePath+"TaskTemplateState",{json:x,refresh:!0})}taskTemplateCity(x){return this.ws.get(this.basePath+"TaskTemplateCity",{json:x,refresh:!0})}getWorkflowTaskTemplate(x){return this.ws.get(this.basePath+"WorkflowTaskTemplate",{json:x,refresh:!0})}getTaskNotificationCount(){return this.ws.get(this.basePath+"TaskNotificationCount",null,null,!1,!0,!1)}getAssignedToTaskPerson(x){return this.ws.get(this.basePath+"AssignedToTaskPerson",{json:x,refresh:!0})}getApplicationTaskChart(x){return this.ws.get(this.basePath+"ApplicationTaskChart",{json:x})}TaskLogInsert(x){return this.ws.post(this.basePath+"TaskLogInsert",{json:x})}getTaskShare(x){return this.ws.get(this.basePath+"TaskShare",{json:x},null)}insertTaskShare(x){return this.ws.post(this.basePath+"InsertTaskShare",{json:x},null,null)}updateTaskShare(x){return this.ws.post(this.basePath+"UpdateTaskShare",{json:x},null,null)}static#e=this.\u0275fac=function(f){return new(f||C)(o.LFG(a.F0),o.LFG(l.Ye),o.LFG(u.f),o.LFG(d.v),o.LFG(s.a),o.LFG(A.t))};static#t=this.\u0275prov=o.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})()},58103:(he,y,i)=>{"use strict";i.d(y,{S:()=>$n});var e=i(78337),n=i(65879),o=i(94748),a=i(78645),l=i(59773),u=i(21476),d=i(73942),s=i(10217),_=i(56223),C=i(66878),R=i(6990),f=i(96814),k=i(61371),w=i(710),g=i(18266),M=i(79907),p=i(17691),E=i(74187),b=i(29486),I=i(32296),L=i(64170),D=i(30617),F=i(24516),P=i(56263),O=i(83814),U=i(3305),V=i(82012),K=i(59834),X=i(92596),me=i(7623),J=i(54885),Q=i(81274),re=i(89515);const de=["textsGridComponent"],te=["messageInput"],j=["phoneBookOrigin"],H=["phoneBookPanel"],z=["datetimepicker"],q=["fileInput"];function se(xn,mt){if(1&xn){const ut=n.EpF();n.TgZ(0,"div")(1,"mat-form-field",48)(2,"textarea",49),n.NdJ("ngModelChange",function(dn){n.CHM(ut);const sn=n.oxw(2);return n.KtG(sn.internalNote=dn)}),n.qZA()()()}if(2&xn){const ut=n.oxw(2);n.xp6(1),n.Q6J("subscriptSizing","dynamic"),n.xp6(1),n.Q6J("ngModel",ut.internalNote)}}function ne(xn,mt){if(1&xn){const ut=n.EpF();n.TgZ(0,"div",50),n._UZ(1,"mat-icon",51),n.TgZ(2,"span",52),n._uU(3),n.qZA(),n.TgZ(4,"mat-icon",53),n.NdJ("click",function(){n.CHM(ut);const dn=n.oxw(2);return n.KtG(dn.clearDateSelection())}),n.qZA()()}if(2&xn){const ut=n.oxw(2);n.xp6(3),n.Oqu(ut.scheduleDateTIme)}}function _e(xn,mt){1&xn&&n._UZ(0,"mat-icon",54)}const ge=function(){return{defaultView:"grid",virtualMode:!0,gridViewOnly:!0}};function Ce(xn,mt){if(1&xn){const ut=n.EpF();n.TgZ(0,"zen-grid",55,56),n.NdJ("onHeaderCheckboxChangeFn",function(dn){n.CHM(ut);const sn=n.oxw(2);return n.KtG(sn.onAllPersonSelection(dn))})("onRowCheckboxChangeFn",function(dn){n.CHM(ut);const sn=n.oxw(2);return n.KtG(sn.onPersonChecked(dn))})("addNew",function(dn){n.CHM(ut);const sn=n.oxw(2);return n.KtG(sn.addNewRow(dn))})("removeRow",function(dn){n.CHM(ut);const sn=n.oxw(2);return n.KtG(sn.deleteRow(dn))})("onGridCellEditorSaveFn",function(dn){n.CHM(ut);const sn=n.oxw(2);return n.KtG(sn.onSaveEditedData(dn))}),n.qZA()}if(2&xn){const ut=n.oxw(2);n.Q6J("data",ut.gridData.data)("pageable",!1)("columns",ut.gridData.columns)("totalRecords",ut.gridData.totalCount)("clientSideFiltering",!0)("clientSidePaging",!0)("showFilterToggle",!1)("filterToggleValue",!0)("slideVisible",!1)("sortable",!0)("clientSorting",!0)("allRowsSelected",ut.allRowsSelected)("displayHeaderSelection",!0)("addFormGroup",ut.addReceipentFormGroup)("showAddNewRow",!0)("editGridCell",ut.editGridCell)("isIndeterminate",ut.isIndeterminate)("config",n.DdM(18,ge))}}const Te=function(){return["description"]},De=function(){return["phoneProfileName","phoneNumber"]},fe=function(){return["name"]};function xe(xn,mt){if(1&xn){const ut=n.EpF();n.ynx(0),n.TgZ(1,"div",1)(2,"div",2)(3,"mat-toolbar",3)(4,"mat-toolbar-row",4)(5,"div",5),n._uU(6,"New SMS"),n.qZA(),n.TgZ(7,"button",6),n.NdJ("click",function(){n.CHM(ut);const dn=n.oxw();return n.KtG(dn.closeDialog())}),n.TgZ(8,"mat-icon"),n._uU(9,"close"),n.qZA()()()(),n.TgZ(10,"div",7)(11,"div",8)(12,"div",9)(13,"zen-select",10),n.NdJ("selectEvent",function(dn){n.CHM(ut);const sn=n.oxw();return n.KtG(sn.onTemplateSelect(dn))})("ngModelChange",function(dn){n.CHM(ut);const sn=n.oxw();return n.KtG(sn.templateId=dn)})("onAutoSelect",function(dn){n.CHM(ut);const sn=n.oxw();return n.KtG(sn.setTemplateById(dn))}),n.qZA(),n.TgZ(14,"zen-select",11),n.NdJ("ngModelChange",function(dn){n.CHM(ut);const sn=n.oxw();return n.KtG(sn.currentOrganizationSmsProfileId=dn)})("selectEvent",function(dn){n.CHM(ut);const sn=n.oxw();return n.KtG(sn.onSMSProfileSelect(dn))}),n.qZA(),n.YNc(15,se,3,2,"div",0),n.TgZ(16,"div",12)(17,"zen-select",13),n.NdJ("fetch",function(dn){n.CHM(ut);const sn=n.oxw();return n.KtG(sn.onSearchClick(dn))})("selectEvent",function(dn){n.CHM(ut);const sn=n.oxw();return n.KtG(sn.onRecipientClick(dn))}),n.ALo(18,"translate"),n.qZA()(),n._UZ(19,"div",14),n.TgZ(20,"div",15),n.YNc(21,ne,5,1,"div",16),n.TgZ(22,"div",17)(23,"mat-form-field",18)(24,"textarea",19,20),n.NdJ("ngModelChange",function(dn){n.CHM(ut);const sn=n.oxw();return n.KtG(sn.message=dn)})("input",function(){n.CHM(ut);const dn=n.oxw();return n.KtG(dn.onInput())}),n.qZA()(),n.TgZ(26,"div",21)(27,"button",22),n._UZ(28,"mat-icon",23),n.qZA(),n.TgZ(29,"button",24),n.NdJ("click",function(){n.CHM(ut);const dn=n.oxw();return n.KtG(dn.sendSMSConfirmDialog())}),n._UZ(30,"mat-icon",25),n.YNc(31,_e,1,0,"mat-icon",26),n.qZA(),n.TgZ(32,"kendo-datetimepicker",27,28),n.NdJ("valueChange",function(dn){n.CHM(ut);const sn=n.oxw();return n.KtG(sn.onDateSelected(dn))}),n.qZA()()()(),n.TgZ(34,"div",29),n._UZ(35,"div",30),n.TgZ(36,"div"),n._uU(37),n.qZA()()(),n.TgZ(38,"div",31)(39,"div",32)(40,"div",14)(41,"div",33)(42,"mat-accordion",34)(43,"mat-expansion-panel",35)(44,"mat-expansion-panel-header",36)(45,"mat-panel-description",37),n._uU(46," Import Contacts "),n.qZA()(),n.TgZ(47,"div",38)(48,"div",39)(49,"div",40),n._UZ(50,"mat-icon",41),n.TgZ(51,"span",42),n.NdJ("click",function(){n.CHM(ut);const dn=n.oxw();return n.KtG(dn.downloadTemplate())}),n._uU(52,"Download Template"),n.qZA()(),n.TgZ(53,"div"),n._uU(54,"\xa0"),n.qZA()(),n.TgZ(55,"div",39)(56,"zen-file-upload",43,44),n.NdJ("onUploadFileFn",function(dn){n.CHM(ut);const sn=n.oxw();return n.KtG(sn.onFileChange(dn))}),n.qZA(),n.TgZ(58,"div",45),n._uU(59,"(Excel and CSV File only) "),n.qZA()()()()()()(),n.TgZ(60,"div",46),n.YNc(61,Ce,2,19,"zen-grid",47),n.qZA()()()()()()(),n.BQk()}if(2&xn){const ut=n.oxw();n.xp6(13),n.Q6J("placeholder","template")("columns",n.DdM(35,Te))("data",ut.templates)("panelClass","zen-select-sm")("ngModel",ut.templateId),n.xp6(1),n.Q6J("placeholder","sMSProfile")("columns",n.DdM(36,De))("data",ut.organizationSmsProfileList)("ngModel",ut.currentOrganizationSmsProfileId)("panelClass","zen-select-sm"),n.xp6(1),n.Q6J("ngIf",ut.gridData.data.length>1),n.xp6(2),n.s9C("placeholder",n.lcZ(18,33,"searchPerson")),n.Q6J("clearOnBlur",!1)("multiple",!0)("config",ut.personZenSelectConfig)("filterColumns",n.DdM(37,fe)),n.xp6(4),n.Q6J("ngIf",ut.scheduleDateSelected),n.xp6(3),n.Q6J("ngModel",ut.message)("cdkAutosizeMinRows",12)("cdkAutosizeMaxRows",12),n.xp6(5),n.Q6J("matTooltip",ut.scheduleDateSelected?"Send in scheduled date & time":"Send now"),n.xp6(1),n.Q6J("svgIcon","heroicons_outline:paper-airplane"),n.xp6(1),n.Q6J("ngIf",ut.scheduleDateSelected),n.xp6(1),n.Q6J("disabledDates",ut.disabledDates),n.xp6(5),n.hij(" ",ut.counterText+(ut.arrayCount>1?"/"+ut.arrayCount.toString():"")," "),n.xp6(19),n.Q6J("autoUpload",!0)("showDropZone",!1)("chooseLabel","Upload Contacts")("instantDocumentScan",!1)("showRegistrationResumeInstruction",!0)("allowedExtensions",ut.allowedExtensions)("showSupportedFiles",!0),n.xp6(5),n.Q6J("ngIf",ut.gridData.data)}}function Oe(xn,mt){if(1&xn){const ut=n.EpF();n.TgZ(0,"div")(1,"mat-form-field",68)(2,"textarea",49),n.NdJ("ngModelChange",function(dn){n.CHM(ut);const sn=n.oxw(2);return n.KtG(sn.internalNote=dn)}),n.qZA()()()}if(2&xn){const ut=n.oxw(2);n.xp6(1),n.Q6J("subscriptSizing","dynamic"),n.xp6(1),n.Q6J("ngModel",ut.internalNote)}}function Le(xn,mt){if(1&xn){const ut=n.EpF();n.TgZ(0,"div",50),n._UZ(1,"mat-icon",51),n.TgZ(2,"span",52),n._uU(3),n.qZA(),n.TgZ(4,"mat-icon",53),n.NdJ("click",function(){n.CHM(ut);const dn=n.oxw(2);return n.KtG(dn.clearDateSelection())}),n.qZA()()}if(2&xn){const ut=n.oxw(2);n.xp6(3),n.Oqu(ut.scheduleDateTIme)}}function Gt(xn,mt){1&xn&&n._UZ(0,"mat-icon",54)}function Ut(xn,mt){if(1&xn){const ut=n.EpF();n.TgZ(0,"zen-grid",69,56),n.NdJ("onHeaderCheckboxChangeFn",function(dn){n.CHM(ut);const sn=n.oxw(2);return n.KtG(sn.onAllPersonSelection(dn))})("onRowCheckboxChangeFn",function(dn){n.CHM(ut);const sn=n.oxw(2);return n.KtG(sn.onPersonChecked(dn))})("addNew",function(dn){n.CHM(ut);const sn=n.oxw(2);return n.KtG(sn.addNewRow(dn))})("removeRow",function(dn){n.CHM(ut);const sn=n.oxw(2);return n.KtG(sn.deleteRow(dn))})("onGridCellEditorSaveFn",function(dn){n.CHM(ut);const sn=n.oxw(2);return n.KtG(sn.onSaveEditedData(dn))}),n.qZA()}if(2&xn){const ut=n.oxw(2);n.Q6J("data",ut.gridData.data)("pageable",!1)("columns",ut.gridData.columns)("totalRecords",ut.gridData.totalCount)("clientSideFiltering",!0)("clientSidePaging",!0)("showFilterToggle",!1)("filterToggleValue",!0)("slideVisible",!1)("sortable",!0)("clientSorting",!0)("allRowsSelected",ut.allRowsSelected)("displayHeaderSelection",!0)("addFormGroup",ut.addReceipentFormGroup)("showAddNewRow",!0)("editGridCell",ut.editGridCell)("isIndeterminate",ut.isIndeterminate)("config",n.DdM(18,ge))}}function An(xn,mt){if(1&xn){const ut=n.EpF();n.ynx(0),n.TgZ(1,"div",57)(2,"button",58),n.NdJ("click",function(){n.CHM(ut);const dn=n.oxw();return n.KtG(dn.toggleSidebar("composeSidebar"))}),n.TgZ(3,"mat-icon"),n._uU(4,"close"),n.qZA()(),n._UZ(5,"div",59),n.qZA(),n.TgZ(6,"div",8)(7,"div",60)(8,"zen-select",10),n.NdJ("selectEvent",function(dn){n.CHM(ut);const sn=n.oxw();return n.KtG(sn.onTemplateSelect(dn))})("ngModelChange",function(dn){n.CHM(ut);const sn=n.oxw();return n.KtG(sn.templateId=dn)})("onAutoSelect",function(dn){n.CHM(ut);const sn=n.oxw();return n.KtG(sn.setTemplateById(dn))}),n.qZA(),n.TgZ(9,"zen-select",11),n.NdJ("ngModelChange",function(dn){n.CHM(ut);const sn=n.oxw();return n.KtG(sn.currentOrganizationSmsProfileId=dn)})("selectEvent",function(dn){n.CHM(ut);const sn=n.oxw();return n.KtG(sn.onSMSProfileSelect(dn))}),n.qZA(),n.YNc(10,Oe,3,2,"div",0),n.TgZ(11,"div",12)(12,"zen-select",13),n.NdJ("fetch",function(dn){n.CHM(ut);const sn=n.oxw();return n.KtG(sn.onSearchClick(dn))})("selectEvent",function(dn){n.CHM(ut);const sn=n.oxw();return n.KtG(sn.onRecipientClick(dn))}),n.ALo(13,"translate"),n.qZA()(),n.TgZ(14,"div",61),n.YNc(15,Le,5,1,"div",16),n.TgZ(16,"div",17)(17,"mat-form-field",62)(18,"textarea",63,20),n.NdJ("ngModelChange",function(dn){n.CHM(ut);const sn=n.oxw();return n.KtG(sn.message=dn)})("input",function(){n.CHM(ut);const dn=n.oxw();return n.KtG(dn.onInput())}),n.qZA()(),n.TgZ(20,"div",21)(21,"button",64),n._UZ(22,"mat-icon",23),n.qZA(),n.TgZ(23,"button",65),n.NdJ("click",function(){n.CHM(ut);const dn=n.oxw();return n.KtG(dn.sendSMSConfirmDialog())}),n._UZ(24,"mat-icon",25),n.YNc(25,Gt,1,0,"mat-icon",26),n.qZA(),n.TgZ(26,"kendo-datetimepicker",27,28),n.NdJ("valueChange",function(dn){n.CHM(ut);const sn=n.oxw();return n.KtG(sn.onDateSelected(dn))}),n.qZA()()()(),n.TgZ(28,"div",29),n._UZ(29,"div",30),n.TgZ(30,"div"),n._uU(31),n.qZA()()(),n.TgZ(32,"div",66)(33,"div",32)(34,"div",14)(35,"div",33)(36,"mat-accordion",34)(37,"mat-expansion-panel",35)(38,"mat-expansion-panel-header",36)(39,"mat-panel-description",37),n._uU(40," Import Contacts "),n.qZA()(),n.TgZ(41,"div",38)(42,"div",39)(43,"div",40),n._UZ(44,"mat-icon",41),n.TgZ(45,"span",42),n.NdJ("click",function(){n.CHM(ut);const dn=n.oxw();return n.KtG(dn.downloadTemplate())}),n._uU(46,"Download Template"),n.qZA()(),n.TgZ(47,"div"),n._uU(48,"\xa0"),n.qZA()(),n.TgZ(49,"div",39)(50,"zen-file-upload",43,44),n.NdJ("onUploadFileFn",function(dn){n.CHM(ut);const sn=n.oxw();return n.KtG(sn.onFileChange(dn))}),n.qZA(),n.TgZ(52,"div",45),n._uU(53,"(Excel and CSV File only)"),n.qZA()()()()()()(),n.TgZ(54,"div",46),n.YNc(55,Ut,2,19,"zen-grid",67),n.qZA()()()(),n.BQk()}if(2&xn){const ut=n.oxw();n.xp6(8),n.Q6J("placeholder","template")("columns",n.DdM(35,Te))("data",ut.templates)("panelClass","zen-select-sm")("ngModel",ut.templateId),n.xp6(1),n.Q6J("placeholder","sMSProfile")("columns",n.DdM(36,De))("data",ut.organizationSmsProfileList)("ngModel",ut.currentOrganizationSmsProfileId)("panelClass","zen-select-sm"),n.xp6(1),n.Q6J("ngIf",ut.gridData.data.length>1),n.xp6(2),n.s9C("placeholder",n.lcZ(13,33,"searchPerson")),n.Q6J("clearOnBlur",!1)("multiple",!0)("config",ut.personZenSelectConfig)("filterColumns",n.DdM(37,fe)),n.xp6(3),n.Q6J("ngIf",ut.scheduleDateSelected),n.xp6(3),n.Q6J("ngModel",ut.message)("cdkAutosizeMinRows",12)("cdkAutosizeMaxRows",12),n.xp6(5),n.Q6J("matTooltip",ut.scheduleDateSelected?"Send in scheduled date & time":"Send now"),n.xp6(1),n.Q6J("svgIcon","heroicons_outline:paper-airplane"),n.xp6(1),n.Q6J("ngIf",ut.scheduleDateSelected),n.xp6(1),n.Q6J("disabledDates",ut.disabledDates),n.xp6(5),n.hij(" ",ut.counterText+(ut.arrayCount>1?"/"+ut.arrayCount.toString():"")," "),n.xp6(19),n.Q6J("autoUpload",!0)("showDropZone",!1)("chooseLabel","Upload Contacts")("instantDocumentScan",!1)("showRegistrationResumeInstruction",!0)("allowedExtensions",ut.allowedExtensions)("showSupportedFiles",!0),n.xp6(5),n.Q6J("ngIf",ut.gridData.data)}}let $n=(()=>{class xn{constructor(ut,Wt,dn,sn,fn,yi,nn,Mi,mi,Eo,Ko){this.datePipe=ut,this.ps=Wt,this.cs=dn,this.cdr=sn,this.ss=fn,this._fuseSidebarService=yi,this.gsbs=nn,this.us=Mi,this.documentService=mi,this.dialogRef=Eo,this.data=Ko,this.opened=!1,this.displayedColumns=["position","name","phone"],this.maxLimit=155,this.arrayCount=1,this.counterText="",this.selected="First option",this.panelOpenState=!1,this.drawerOpened=!1,this._unsubscribeAll=new a.x,this.dataNumber=0,this.dataSize=20,this.messageView="all",this.startDate=new Date,this.endDate=new Date,this.maxDate=new Date,this.mineSMSOnly=!1,this.unseenMessages=0,this.assignToYouClicked=new n.vpe,this.activeNav="allText",this.assignedToData=[],this.starredData=[],this.gridData={data:[],columns:[{name:"isSelect",type:"boolean",sort:"0",filterable:"0",display:"Is Select",maskType:"",translate:0},{name:"name",type:"string",sort:"0",filterable:"0",display:"Name",maskType:"",translate:0},{name:"phone",type:"string",sort:"0",filterable:"0",display:"Phone",maskType:"all",translate:0}],totalCount:0},this.allRowsSelected=!1,this.isIndeterminate=!1,this.selection=new e.Ov,this.smsLimit=0,this.outBoundSmsCount=0,this.isSendingSms=!1,this.showContactInformation=!1,this.isScheduled=!1,this.templateId=0,this.smsScheduleDate=new Date,this.smsDate=new Date,this.minDate=new Date,this.templateCategory="SMSTemplate",this.relatesToEntity="ETC",this.tempPersonId=0,this.editGridCell=!0,this.allowedExtensions=["csv","xlsx"],this.isDataValid=!0,this.hasDuplicateValue=!1,this.format="MM/dd/yyyy HH:mm",this.imageSVG=d.yyU,this.callContact=!1,this.openSlide=!1,this.totalContactList=0,this.isBottomReached=!1,this.scheduleDateSelected=!1,this.isDialog=!1,this.currentOrganizationSmsProfileId=0,this.smsProfileString="",this.addNewReceipentFormGroup=xo=>new _.nJ({name:new _.p4(xo.name,[_.kI.required]),phone:new _.p4(xo.phone,[_.kI.required,_.kI.pattern(/^[0-9]+$/)])}),this.disabledDates=xo=>{let Xt=new Date(new Date);return Xt.setDate(Xt.getDate()-1),xo<Xt},this.selection=new e.Ov,Ko&&(this.isDialog=this.data?.isDialog,this.selection.clear(),this.setToPersonList(this.data?.recipients)),this.searchText="",this.officeId=this.ps.currentPersonDetail.getValue().officeId,this.startDate.setDate(this.startDate.getDate()-3),this.messages=[]}ngOnInit(){this.organizationSmsProfileList=this.gsbs.organizationSmsProfileList,this.currentOrganizationSmsProfile=this.gsbs.currentOrganizationSmsProfile,this.currentOrganizationSmsProfileId=this.gsbs.currentOrganizationSmsProfileId,(!this.organizationSmsProfileList||0==this.organizationSmsProfileList||!this.currentOrganizationSmsProfileId||0==this.currentOrganizationSmsProfileId||!this.currentOrganizationSmsProfile||0==this.currentOrganizationSmsProfile)&&this.getOrganizationSMSProfile(),this.ss.onCheckBoxSelect.pipe((0,l.R)(this._unsubscribeAll)).subscribe(ut=>{ut&&(this.gridData.data=ut,this.selection=new e.Ov(!0,ut),this.selection.select(...ut),this.allRowsSelected=this.selection.selected.length>0,this.textsGridComponent?.rowSelectedIds.push(...this.selection?.selected)),this.cdr.detectChanges()}),this.cs.getTemplate({officeId:this.officeId,category:this.templateCategory,relatesToEntity:this.relatesToEntity}).pipe((0,l.R)(this._unsubscribeAll)).subscribe(ut=>{this.templates=ut}),this.gridData?.data||(this.gridData={data:[],columns:[{name:"isSelect",type:"boolean",sort:"0",filterable:"0",display:"Is Select",maskType:"",translate:0},{name:"name",type:"string",sort:"0",filterable:"0",display:"Name",maskType:"",translate:0},{name:"phone",type:"string",sort:"0",filterable:"0",display:"Phone",maskType:"all",translate:0}],totalCount:0})}ngAfterViewInit(){this.textsGridComponent?.rowSelectedIds.push(...this.selection.selected)}setToPersonList(ut=[]){const Wt=["Opt-out for mass text","Opt-out for all text","Opted out","Blocked"];ut.filter(yi=>Wt.includes(yi.optOut)||Wt.includes(yi.optStatus)).length>0&&this.us.callSnackBar("optedOutNumberHasNotBeenIncludedInAList","warning");const sn=ut.filter(yi=>!Wt.includes(yi.optOut)&&!Wt.includes(yi.optStatus)),fn=[];sn.length>0?(sn[0].hasOwnProperty("contactInformationId")?sn.map(yi=>{fn.push({personId:yi.personId,name:yi.name,phone:yi.phone,isSelect:!0,contactInformationId:yi.contactInformationId,contactInformationType:yi.contactInformationType})}):sn.map(yi=>{fn.push({personId:yi.personId,name:yi.name,phone:yi.phone,isSelect:!0})}),this.gridData={data:fn,columns:[{name:"isSelect",type:"boolean",sort:"0",filterable:"0",display:"Is Select",maskType:"",translate:0},{name:"name",type:"string",sort:"0",filterable:"0",display:"Name",maskType:"",translate:0},{name:"phone",type:"string",sort:"0",filterable:"0",display:"Phone",maskType:"",translate:0}],totalCount:fn.length},this.gridData={...this.gridData}):this.gridData={data:[],columns:[{name:"isSelect",type:"boolean",sort:"0",filterable:"0",display:"Is Select",maskType:"",translate:0},{name:"name",type:"string",sort:"0",filterable:"0",display:"Name",maskType:"",translate:0},{name:"phone",type:"string",sort:"0",filterable:"0",display:"Phone",maskType:"",translate:0}],totalCount:0},this.selection=new e.Ov(!0,fn),this.selection.select(...fn),this.allRowsSelected=fn.length>0}onSMSProfileSelect(ut){ut&&ut.length>0&&(this.currentOrganizationSmsProfileId=ut[0].organizationSMSProfileId,this.getSMSProfileDetail())}getSMSProfileDetail(){this.ss.getOrganizationSMSProfileDetail({organizationSmsProfileId:this.currentOrganizationSmsProfileId,showOutboundCount:!0}).pipe((0,l.R)(this._unsubscribeAll)).subscribe(Wt=>{this.organizationSmsProfileDetail=Wt,this.smsLimit=parseInt(this.organizationSmsProfileDetail[0].smsLimit),this.outBoundSmsCount=parseInt(this.organizationSmsProfileDetail[0].outboundCount)})}getOrganizationSMSProfile(){this.ss.getOrganizationSMSProfile({}).pipe((0,l.R)(this._unsubscribeAll)).subscribe(ut=>{this.organizationSmsProfileList=(0,R.cloneDeep)(ut),this.gsbs.organizationSmsProfileList=(0,R.cloneDeep)(ut),this.organizationSmsProfileList&&this.organizationSmsProfileList.length>0&&(this.currentOrganizationSmsProfileId=this.organizationSmsProfileList[0].organizationSMSProfileId)})}onPersonChecked(ut){ut.event.checked?(ut.dataItem.isSelect=ut.event.checked,this.selection||(this.selection=new e.Ov),this.selection.toggle(ut.dataItem)):(ut.dataItem.isSelect=ut.event.checked,this.selection.toggle(ut.dataItem)),this.manageHeaderCheckBox()}onAllPersonSelection(ut){this.selection.clear(),ut.checked?(this.gridData.data.forEach(Wt=>{this.selection.selected.push(Wt),Wt.isSelect=!0}),this.allRowsSelected=!0,this.textsGridComponent?.rowSelectedIds.push(...this.selection.selected)):(this.gridData.data.forEach(Wt=>{this.selection.deselect(Wt),Wt.isSelect=!1}),this.allRowsSelected=!1,this.textsGridComponent.rowSelectedIds=[])}onSaveEditedData(ut){if(null!=this.addReceipentFormGroup&&this.addReceipentFormGroup&&this.addReceipentFormGroup.dirty&&this.addReceipentFormGroup.valid){if(this.addReceipentFormGroup.value.isSelect=!1,this.addReceipentFormGroup.value.personId=this.tempPersonId,this.addReceipentFormGroup.value&&this.addReceipentFormGroup.value.phone){if(10!==this.addReceipentFormGroup.value.phone.length)return void this.us.callSnackBar("Mobile length must be 10 digit","info");this.addReceipentFormGroup.value.phone=this.addReceipentFormGroup.value.phone.match(/\d+/g).join("")}if(this.gridData.data?.findIndex(dn=>dn.phone==this.addReceipentFormGroup.value.phone)>=0)return void this.us.callSnackBar("enteredPhoneNumberAlreadyExistsInTheList","warning");0==this.gridData?.data.length&&(this.gridData={data:[],columns:[{name:"isSelect",type:"boolean",sort:"0",filterable:"0",display:"Is Select",maskType:"",translate:0},{name:"name",type:"string",sort:"0",filterable:"0",display:"Name",maskType:"",translate:0},{name:"phone",type:"string",sort:"0",filterable:"0",display:"Phone",maskType:"",translate:0}],totalCount:0}),this.gridData.data.push(this.addReceipentFormGroup.value),this.gridData.totalCount++,this.addReceipentFormGroup=void 0,this.gridData={...this.gridData},this.mainGrid.closeRow()}}setTemplateById(ut){this.templateId=ut;const Wt=this.templates.find(dn=>dn.templateId==ut);this.onTemplateSelect([Wt])}onTemplateSelect(ut){ut&&ut.length>0?(this.templateId=ut[0].templateId,this.message=ut[0].body):(this.templateId=0,this.message="")}addNewRow(ut){this.addReceipentFormGroup=this.addNewReceipentFormGroup({name:"",phone:""}),ut.sender.addRow(this.addReceipentFormGroup),this.mainGrid=ut.sender}deleteRow(ut){this.selection.selected.length>0?Object.keys(ut.selectedId).length>0&&(this.us.openConfirmDialog({headerText:"Confirm",confirmationText:"areYouSureYouWantToRemoveTheseNumbers"}),this.us.confirmDialogAction.subscribe(dn=>{if("yes"===dn){this.us.closeConfirmDialog();let sn=this.gridData.data.filter(fn=>0==fn.isSelect);this.gridData.data=(0,R.cloneDeep)(sn),this.gridData.totalCount=sn.length,this.selection.clear(),this.gridData={...this.gridData},this.manageHeaderCheckBox(),this.cdr.detectChanges()}})):this.us.callSnackBar("Please select an item","info")}sendSMSConfirmDialog(){const ut=this.gridData.data.filter(yi=>!0===yi.isSelect).map(yi=>({personId:null==yi.personId?0:yi.personId,name:yi.name,phone:yi.phone})),Wt=parseInt(this.organizationSmsProfileDetail[0].outboundQueueCount),dn=ut.length+Wt;let sn=Math.abs(4*(ut.length+Wt)/60),fn=Math.abs(sn/60);sn=parseFloat(sn.toFixed(2)),fn=parseFloat(fn.toFixed(2)),dn>this.smsLimit?(this.us.openConfirmDialog({headerText:"High number of SMS warning",confirmationText:"You currently have "+dn+" texts that are queued to be sent out. Estimated time for delivery is "+(fn>=1?fn+" hour(s).":sn+"minute(s).")+" Do you want to continue?"}),this.us.confirmDialogAction.pipe((0,l.R)(this._unsubscribeAll)).subscribe(nn=>{nn&&("yes"===nn&&this.sendSMS(),this.us.closeConfirmDialog())})):this.sendSMS()}sendSMS(){if(this.isSendingSms=!0,!this.messageInput.nativeElement.value?.trim())return void this.us.callSnackBar("blankTextCannotBeSent","info");if(!this.selection.selected.length)return void this.us.callSnackBar("Please select a number to text.","warning");let ut;this.gridData.data.length>0&&(ut=this.gridData.data[0].hasOwnProperty("contactInformationId")?{toPersonList:this.gridData.data.filter(Wt=>!0===Wt.isSelect).map(Wt=>({personId:null==Wt.personId?0:Wt.personId,name:Wt.name,phone:Wt.phone?Wt.phone.replace(/[\(\)\s-]/g,"").replace(/Ext.*/i,""):"",contactInformationId:Wt.contactInformationId})),body:this.messageInput.nativeElement.value,scheduleDate:this.isScheduled?this.smsScheduleDate.toISOString():this.smsDate.toISOString(),entity:this.application,organizationSMSProfileId:this.currentOrganizationSmsProfileId,sMSTemplateId:this.templateId,reference:this.internalNote,isScheduled:this.isScheduled,callFrom:"dialog"}:{toPersonList:this.gridData.data.filter(Wt=>!0===Wt.isSelect).map(Wt=>({personId:null==Wt.personId?0:Wt.personId,name:Wt.name,phone:Wt.phone?Wt.phone.replace(/[\(\)\s-]/g,"").replace(/Ext.*/i,""):""})),body:this.messageInput.nativeElement.value,scheduleDate:this.isScheduled?this.smsScheduleDate.toISOString():this.smsDate.toISOString(),entity:this.application,organizationSMSProfileId:this.currentOrganizationSmsProfileId,sMSTemplateId:this.templateId,reference:this.internalNote,isScheduled:this.isScheduled,callFrom:"dialog"},this.messages.push({text:ut.body,insertDate:new Date}),this.ss.sendTemplateSMS(ut).subscribe(Wt=>{this.isSendingSms=!1,Wt?(this.us.callSnackBar(this.isScheduled?"Message scheduled successfully.":"Message sent successfully.","success"),this.dialogRef?.componentInstance?.data&&this.dialogRef.close(Wt),this.ss.onDeselectingContacts.next(this.gridData.data)):(this.messages=[],this.us.callSnackBar("SMS not sent.","error")),this.messageInput.nativeElement.value="",this.gridData.data=[],this.internalNote="",this.selection.clear(),this.textsGridComponent?.rowSelectedIds.push(...this.selection?.selected),this.allRowsSelected=this.selection.selected.length>0,this.toggleSidebar("composeSidebar")}))}downloadTemplate(){this.ss.getDocumentTemplate().pipe((0,l.R)(this._unsubscribeAll)).subscribe(ut=>{s.saveAs(ut,"DocumentTemplate.xlsx")},ut=>{this.us.callSnackBar("errorOccured","error")})}onFileChange(ut){if(ut?.length){this.fileObject=ut;let Wt=["csv","xlsx"];this.fileInput?._files?.every(sn=>Wt.includes(sn?.name?.toLowerCase()?.split(".").pop()))?(this.validationMessage="",this.displayValidationMessage=!1,this.fileName=this.fileInput?._files?.[0]?.name,this.Submit()):(this.us.callSnackBar("Invalid file extension. Only  csv and xlsx file are allowed.","warning"),this.fileName="")}}Submit(){if(!this.fileInput?._files?.[0])return void this.us.callSnackBar("pleaseSelectFile","Warning");const ut=this.fileObject[0].name.split(".").pop();this.allowedExtensions.some(Wt=>Wt===ut)&&this.documentScan().then(Wt=>{if(Wt&&!Wt?.length||Wt?.length&&Wt?.[0]?.cleanResult&&!Wt?.[0]?.foundViruses?.length){let dn=new FormData;dn.append("file",this.fileObject[0],this.fileObject[0].name),this.ss.uploadFiles(dn).subscribe(sn=>{if(sn){sn.forEach(nn=>{nn.isSelect=!0,this.selection.toggle(nn)}),this.validationMessage="",this.displayValidationMessage=!1;let fn=[];sn.forEach(nn=>{nn.phone.length<10?this.isDataValid=!1:this.gridData.data.length>0&&this.gridData.data.findIndex(Mi=>Mi.phone==nn.phone)>-1?this.hasDuplicateValue=!0:fn.push(nn)});const yi=fn.filter((nn,Mi)=>{const mi=fn.findIndex(Eo=>nn.phone==Eo.phone);return mi!=Mi&&(this.hasDuplicateValue=!0),mi===Mi});this.gridData.data=[...this.gridData.data,...yi],this.gridData.totalCount=this.gridData.data.length,this.fileName="",this.gridData=JSON.parse(JSON.stringify(this.gridData)),!this.isDataValid&&this.hasDuplicateValue?this.us.callSnackBar("invalidDataAndDuplicateValuesHasBeenRemoved","Warning"):this.isDataValid?this.hasDuplicateValue&&this.us.callSnackBar("invalidDuplicateValuesHasBeenRemoved","Warning"):this.us.callSnackBar("invalidDataHasBeenRemoved","Warning"),this.isDataValid=!0,this.hasDuplicateValue=!1,this.cdr.detectChanges()}this.manageHeaderCheckBox()})}})}manageHeaderCheckBox(){let ut=(this.gridData.data&&this.gridData.data?.filter(Wt=>1==Wt.isSelect).length)??0;ut>0&&ut==this.gridData.data.length?(this.allRowsSelected=!0,this.isIndeterminate=!1):ut>0&&ut<this.gridData.data.length?(this.allRowsSelected=!1,this.isIndeterminate=!0):0==ut&&(this.allRowsSelected=!1,this.isIndeterminate=!1),this.textsGridComponent.rowSelectedIds=[],this.gridData.data&&this.textsGridComponent.rowSelectedIds.push(...this.gridData.data)}documentScan(){return new Promise(ut=>{ut(!!this.fileObject?.length&&this.documentService.openScannerDialog(this.fileObject))})}onSearchClick(ut){this.gsbs.getSMSRecipients({organizationSMSProfileIdList:this.currentOrganizationSmsProfileId,searchText:ut,pageNumber:0,pageSize:10,callFrom:"SMS"}).pipe((0,l.R)(this._unsubscribeAll)).subscribe(dn=>{this.personZenSelectConfig={data:dn.data?.filter(sn=>1==sn.isPrimary),columns:this.getPersonColumns()}})}getPersonColumns(){return[{name:"name",type:"string",sort:"0",filterable:"0",display:"Name",maskType:"",translate:0},{name:"phone",type:"string",sort:"0",filterable:"0",display:"Phone",maskType:"all",translate:0}]}onRecipientClick(ut){ut&&Array.isArray(ut)&&ut.length>0&&(Array.isArray(this.gridData.data)||(this.gridData.data=[]),ut.forEach(Wt=>{this.gridData.data.some(sn=>sn.personId===Wt.personId)||(Wt.isSelect=!0,this.gridData.data.push(Wt),this.selection.select(Wt))}),this.gridData.data=[...this.gridData.data],this.cdr.detectChanges(),this.gridData.totalCount=this.gridData.data.length,this.manageHeaderCheckBox())}onSMSDateChange(ut){this.smsScheduleDate=ut,this.isScheduled=!0}clearDate(ut){ut.stopPropagation(),this.smsScheduleDate=null,this.isScheduled=!1}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleSidebar(ut){this.selection.clear();let Wt=this._fuseSidebarService.getSidebar(ut);Wt.toggleOpen(),this.gsbs.onSidebarChanged.next(Wt)}clearDateSelection(){this.datetimepicker.value=null,this.scheduleDateSelected=!1,this.scheduleDateTIme=""}get remainingCharacters(){const ut=this.message.match(new RegExp(`.{1,${this.maxLimit}}`,"g"))||[];return this.arrayCount=ut.length,this.maxLimit-ut[ut?.length-1]?.length}onInput(){this.counterText=this.message.length/this.maxLimit<=1?this.remainingCharacters<=40?this.remainingCharacters.toString():"":this.remainingCharacters.toString()}onDateSelected(ut){this.scheduleDateSelected=!0,this.scheduleDateTIme=this.datePipe.transform(ut,"medium"),this.smsScheduleDate=ut,this.isScheduled=!0}closeDialog(){this.dialogRef.close()}static#e=this.\u0275fac=function(Wt){return new(Wt||xn)(n.Y36(f.uU),n.Y36(k.R),n.Y36(w.v),n.Y36(n.sBO),n.Y36(g.o),n.Y36(M.h),n.Y36(p.j),n.Y36(E.t),n.Y36(b.Z),n.Y36(C.hV),n.Y36(C.eJ,8))};static#t=this.\u0275cmp=n.Xpm({type:xn,selectors:[["app-text-compose"]],viewQuery:function(Wt,dn){if(1&Wt&&(n.Gf(u.NW,7),n.Gf(de,5),n.Gf(te,5),n.Gf(j,5),n.Gf(H,5),n.Gf(z,5),n.Gf(q,5)),2&Wt){let sn;n.iGM(sn=n.CRH())&&(dn.paginator=sn.first),n.iGM(sn=n.CRH())&&(dn.textsGridComponent=sn.first),n.iGM(sn=n.CRH())&&(dn.messageInput=sn.first),n.iGM(sn=n.CRH())&&(dn._phoneBookOrigin=sn.first),n.iGM(sn=n.CRH())&&(dn._phoneBookPanel=sn.first),n.iGM(sn=n.CRH())&&(dn.datetimepicker=sn.first),n.iGM(sn=n.CRH())&&(dn.fileInput=sn.first)}},hostAttrs:[1,"flex","flex-col","h-full"],outputs:{assignToYouClicked:"assignToYouClicked"},decls:2,vars:2,consts:[[4,"ngIf"],["id","control-wrapper",1,"flex","flex-col"],[1,"dialog-content-wrapper","text-wrapper-main","flex","flex-col"],[1,"mat-accent","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","space-between center"],[1,"title","dialog-title"],["mat-icon-button","","aria-label","Close dialog",3,"click"],["mat-dialog-content","",1,"p-12","m-0","flex","flex-col","h-full","mat-dialog-content"],[1,"flex-1","flex","flex-row","gap-3","overflow-hidden"],[1,"flex-1","flex","flex-col","gap-3","overflow-y-auto"],["name","template","nameField","description","valueField","templateId","autoSelect","true",1,"no-padding-head","chip-black",3,"placeholder","columns","data","panelClass","ngModel","selectEvent","ngModelChange","onAutoSelect"],["name","sMSProfile","required","","nameField","phoneProfileName","valueField","organizationSMSProfileId","autoSelect","true",1,"no-padding-head","chip-black",3,"placeholder","columns","data","ngModel","panelClass","ngModelChange","selectEvent"],[1,"flex","flex-col"],["panelClass","zen-select-xl","name","personId","nameField","name",1,"no-padding-head","chip-black","overflow-hidden",3,"clearOnBlur","multiple","placeholder","config","filterColumns","fetch","selectEvent"],[1,"flex","flex-row","gap-2","template-actions"],[1,"flex","flex-col","p-4","bg-white","dark:bg-transparent","texting-area","sticky","bottom-0"],["class","flex flex-row items-center gap-1 justify-center text-primary",4,"ngIf"],[1,"flex","flex-row"],["subscriptSizing","dynamic",1,"fuse-mat-dense","fuse-mat-rounded","fuse-mat-bold","w-full","ml-4"],["matInput","","cdkTextareaAutosize","","maxlength","1000","placeholder","Enter text here...",3,"ngModel","cdkAutosizeMinRows","cdkAutosizeMaxRows","ngModelChange","input"],["messageInput",""],[1,"flex","flex-col","gap-2","items-center","my-px","ml-4","send-actions"],["mat-icon-button","","color","primary",1,"bg-primary","send-text","zenauto-Schedule1"],["svgIcon","mat_outline:timer",1,"text-white"],["mat-icon-button","","color","primary",1,"bg-primary","send-text","zenauto-SendMessage1",3,"matTooltip","click"],[1,"text-white",3,"svgIcon"],["class","s-22 absolute -right-1 rounded-full bg-gray-100 text-primary when-scheduled specialIcon","svgIcon","mat_outline:timer",4,"ngIf"],["placeholder","Pick a date to schedule","calendarType","infinite",1,"opacity-0","absolute","top-2","z-0",3,"disabledDates","valueChange"],["datetimepicker",""],[1,"flex","flex-row","justify-between","items-center","px-6","bg-white","dark:bg-transparent"],[1,"flex","items-center","my-px"],[1,"flex-1","flex","flex-col","overflow-hidden","gap-3"],[1,"flex-1","flex","flex-col","overflow-hidden"],[1,"flex-1","flex","flex-row","gap-2","justify-center","items-center","py-4","bg-white","dark:bg-transparent","rounded-lg"],[1,"w-full"],["hideToggle",""],[1,"h-36"],[1,"flex","justify-center"],[1,"flex","flex-row","gap-2","h-full","w-full","pt-12"],[1,"flex","flex-col","flex-1","gap-1"],["matRipple","",1,"flex-1","flex","flex-row","items-center","justify-center","gap-1","cursor-pointer","py-1","px-2","down-temp"],["svgIcon","feather:download",1,"s-20"],[1,"text-md",3,"click"],[1,"csv-upload","flex-1",3,"autoUpload","showDropZone","chooseLabel","instantDocumentScan","showRegistrationResumeInstruction","allowedExtensions","showSupportedFiles","onUploadFileFn"],["fileInput",""],[1,"text-center","font-size-12"],[1,"flex-1","overflow-hidden","flex","flex-col"],["class","dialog-grid",3,"data","pageable","columns","totalRecords","clientSideFiltering","clientSidePaging","showFilterToggle","filterToggleValue","slideVisible","sortable","clientSorting","allRowsSelected","displayHeaderSelection","addFormGroup","showAddNewRow","editGridCell","isIndeterminate","config","onHeaderCheckboxChangeFn","onRowCheckboxChangeFn","addNew","removeRow","onGridCellEditorSaveFn",4,"ngIf"],["fxFlex","",3,"subscriptSizing"],["matInput","","placeholder","Your Internal note for this text","maxlength","100","name","reference",3,"ngModel","ngModelChange"],[1,"flex","flex-row","items-center","gap-1","justify-center","text-primary"],["svgIcon","mat_outline:timer",1,"s-22","rounded-full","text-primary","when-scheduled"],[1,"text-primary","sp-char"],["svgIcon","heroicons_outline:x-mark",1,"s-16","hover:cursor-pointer","red-fg",3,"click"],["svgIcon","mat_outline:timer",1,"s-22","absolute","-right-1","rounded-full","bg-gray-100","text-primary","when-scheduled","specialIcon"],[1,"dialog-grid",3,"data","pageable","columns","totalRecords","clientSideFiltering","clientSidePaging","showFilterToggle","filterToggleValue","slideVisible","sortable","clientSorting","allRowsSelected","displayHeaderSelection","addFormGroup","showAddNewRow","editGridCell","isIndeterminate","config","onHeaderCheckboxChangeFn","onRowCheckboxChangeFn","addNew","removeRow","onGridCellEditorSaveFn"],["textsGridComponent",""],[1,"flex","flex-row","items-center"],["mat-icon-button","",3,"click"],[1,"flex-1","text-center","text-semibold","text-lg"],[1,"flex-1","flex","flex-col","gap-3","pl-12","ml-12","pr-12","border"],[1,"flex","flex-col","p-4","bg-white","dark:bg-transparent","texting-area","relative"],["subscriptSizing","dynamic",1,"fuse-mat-dense","fuse-mat-rounded","fuse-mat-bold","w-full"],["matInput","","cdkTextareaAutosize","","required","","maxlength","1000","placeholder","Type a message","name","sentMessage",3,"ngModel","cdkAutosizeMinRows","cdkAutosizeMaxRows","ngModelChange","input"],["mat-icon-button","","color","primary",1,"bg-primary","send-text","zenauto-Scheduled"],["mat-icon-button","","color","primary",1,"bg-primary","send-text","zenauto-SendMessage",3,"matTooltip","click"],[1,"flex-1","flex","flex-col","mr-12","overflow-hidden","gap-3","border"],["class","slide-grid",3,"data","pageable","columns","totalRecords","clientSideFiltering","clientSidePaging","showFilterToggle","filterToggleValue","slideVisible","sortable","clientSorting","allRowsSelected","displayHeaderSelection","addFormGroup","showAddNewRow","editGridCell","isIndeterminate","config","onHeaderCheckboxChangeFn","onRowCheckboxChangeFn","addNew","removeRow","onGridCellEditorSaveFn",4,"ngIf"],[1,"w-full",3,"subscriptSizing"],[1,"slide-grid",3,"data","pageable","columns","totalRecords","clientSideFiltering","clientSidePaging","showFilterToggle","filterToggleValue","slideVisible","sortable","clientSorting","allRowsSelected","displayHeaderSelection","addFormGroup","showAddNewRow","editGridCell","isIndeterminate","config","onHeaderCheckboxChangeFn","onRowCheckboxChangeFn","addNew","removeRow","onGridCellEditorSaveFn"]],template:function(Wt,dn){1&Wt&&(n.YNc(0,xe,62,38,"ng-container",0),n.YNc(1,An,56,38,"ng-container",0)),2&Wt&&(n.Q6J("ngIf",dn.isDialog),n.xp6(1),n.Q6J("ngIf",!dn.isDialog))},dependencies:[I.RK,L.KE,D.Hw,F.Nt,P.IC,f.O5,_.Fj,_.JJ,_.Q7,_.nD,_.On,O.xw,O.Wh,O.yH,U.pp,U.ib,U.yz,U.u4,V.i,K.H,X.gM,me.O,J.JX,Q.Ye,Q.rD,re.X$],encapsulation:2,data:{animation:o.L}})}return xn})()},10847:(he,y,i)=>{"use strict";i.d(y,{$:()=>a});var e=i(7110),n=i(65879),o=i(6738);let a=(()=>{class l{constructor(d){this.webApiService=d,this.basePath=e.XL.settings.apiUrl+"Unemployment/"}unemploymentTask(d,s){return this.webApiService.post(this.basePath+"UnemploymentTsk",{json:JSON.stringify(d),refresh:s},null,null,!0)}unemploymentCharge(d,s){return this.webApiService.get(this.basePath+"UnemploymentCharge",{json:JSON.stringify(d),refresh:s},null,!0)}static#e=this.\u0275fac=function(s){return new(s||l)(n.LFG(o.f))};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac})}return l})()},37563:(he,y,i)=>{"use strict";i.d(y,{d:()=>F});var e=i(66878),n=i(78645),o=i(59773),a=i(65879),l=i(61371),u=i(74187),d=i(28011),s=i(710),A=i(96814),_=i(56223),C=i(83814),R=i(81274),x=i(84187),f=i(42400),k=i(30617),w=i(94505),g=i(65139),M=i(89515);function p(P,O){1&P&&(a.TgZ(0,"span",19),a._uU(1,"Change Password"),a.qZA())}function E(P,O){if(1&P&&(a.TgZ(0,"span",19),a._uU(1),a.qZA()),2&P){const U=a.oxw();a.xp6(1),a.hij("Change Password of ",U.data.name,"")}}function b(P,O){if(1&P){const U=a.EpF();a.TgZ(0,"div",10)(1,"mat-form-field")(2,"input",20),a.NdJ("ngModelChange",function(K){a.CHM(U);const X=a.oxw();return a.KtG(X.model.oldPassword=K)}),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"mat-icon",12),a.NdJ("click",function(){a.CHM(U);const K=a.oxw();return a.KtG(K.hide=!K.hide)}),a._uU(5),a.qZA()()()}if(2&P){const U=a.oxw();a.xp6(2),a.s9C("placeholder",a.lcZ(3,4,"Old Password")),a.Q6J("type",U.hide?"password":"text")("ngModel",U.model.oldPassword),a.xp6(3),a.Oqu(U.hide?"visibility_off":"visibility")}}function I(P,O){if(1&P&&(a.TgZ(0,"mat-hint",21),a._uU(1),a.qZA()),2&P){const U=a.oxw();a.xp6(1),a.Oqu(U.passwordRejectMsg)}}function L(P,O){1&P&&(a.TgZ(0,"li"),a._uU(1,"Must contain atleast 1 Number."),a.qZA())}function D(P,O){1&P&&(a.TgZ(0,"li"),a._uU(1,"Must Contain atleast 1 Special Character."),a.qZA())}let F=(()=>{class P{constructor(U,V,K,X,me,J){this.ps=U,this.dialog=V,this.us=K,this.eds=X,this.cs=me,this.data=J,this.model={},this.hide=!0,this.newHide=!0,this.newHide1=!0,this.btnDisable=!0,this.isSuperAdmin=!1,this.params={},this.passwordDirtyFlag=!1,this.confirmPasswordDirtyFlag=!1,this.isPasswordRejected=!1,this.passwordRejectMsg="Password and confirm password mismatched",this.upperCaseCharactersRegex=new RegExp("[A-Z]+"),this.lowerCaseCharactersRegex=new RegExp("[a-z]+"),this.numberCharactersRegex=new RegExp("[0-9]+"),this.specialCharactersRegex=/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]+/,this.isInternalUser=!0,this._unsubscribeAll=new n.x}ngOnInit(){this.loggedInPersonId=parseInt(this.us.getTokenValueByKey("personId")),this.isInternalUser="true"===this.us.getTokenValueByKey("isInternal").toLowerCase(),this.data?(this.isSuperAdmin=!0,this.personId=this.data.personId):this.personId=this.loggedInPersonId}checkPasswordValidity(U){if(!(Object.keys(this.model).length<=0)&&("newPassword"==U?this.passwordDirtyFlag=!0:"confirmPassword"==U&&(this.confirmPasswordDirtyFlag=!0),this.passwordDirtyFlag&&this.confirmPasswordDirtyFlag))if(this.model?.newPassword===this.model?.confirmPassword){if(this.model?.newPassword?.length<8)return this.isPasswordRejected=!0,void(this.passwordRejectMsg="New Password Must be at least 8 characters");if(!this.lowerCaseCharactersRegex.test(this.model?.newPassword))return this.isPasswordRejected=!0,void(this.passwordRejectMsg="New Password must contain lowercase character");if(!this.upperCaseCharactersRegex.test(this.model?.newPassword))return this.isPasswordRejected=!0,void(this.passwordRejectMsg="New Password must contain uppercase character");if(!this.numberCharactersRegex.test(this.model?.newPassword)&&this.isInternalUser)return this.isPasswordRejected=!0,void(this.passwordRejectMsg="New Password must contain a number");if(!this.specialCharactersRegex.test(this.model?.newPassword)&&this.isInternalUser)return this.isPasswordRejected=!0,void(this.passwordRejectMsg="New Password must contain special character");if(this.model.oldPassword===this.model.newPassword)return this.isPasswordRejected=!0,void(this.passwordRejectMsg="New Password and Old Password can not be same");this.isPasswordRejected=!1,this.passwordRejectMsg=""}else this.isPasswordRejected=!0,this.passwordRejectMsg="Your new password and confirm password do not match"}save(U){if(U.valid&&this.passwordDirtyFlag&&this.confirmPasswordDirtyFlag)if(this.model.newPassword===this.model.confirmPassword){if(this.model.newPassword.length<8)return this.isPasswordRejected=!0,void(this.passwordRejectMsg="New Password Must be at least 8 characters");if(!this.lowerCaseCharactersRegex.test(this.model.newPassword))return this.isPasswordRejected=!0,void(this.passwordRejectMsg="New Password must contain lowercase character");if(!this.upperCaseCharactersRegex.test(this.model.newPassword))return this.isPasswordRejected=!0,void(this.passwordRejectMsg="New Password must contain uppercase character");if(!this.numberCharactersRegex.test(this.model.newPassword)&&this.isInternalUser)return this.isPasswordRejected=!0,void(this.passwordRejectMsg="New Password must contain a number");if(!this.specialCharactersRegex.test(this.model.newPassword)&&this.isInternalUser)return this.isPasswordRejected=!0,void(this.passwordRejectMsg="New Password must contain special character");if(this.model.oldPassword===this.model.newPassword)return this.isPasswordRejected=!0,void(this.passwordRejectMsg="New Password and Old Password can not be same");this.isPasswordRejected=!1,this.passwordRejectMsg="",this.changePassword()}else this.isPasswordRejected=!0,this.passwordRejectMsg="Your new password and confirm password do not match"}changePassword(){this.params=this.isSuperAdmin?{newPassword:this.model.newPassword,confirmPassword:this.model.confirmPassword,personId:this.personId,doneBy:"SuperAdmin"}:{oldPassword:this.model.oldPassword,newPassword:this.model.newPassword,confirmPassword:this.model.confirmPassword,personId:this.personId},this.cs.userPasswordUpd(this.params).pipe((0,o.R)(this._unsubscribeAll)).subscribe(U=>{"Password changed successfully."==U.message?(this.close(),this.us.callSnackBar(U.message,"success")):this.us.callSnackBar(U.message,"warning")})}close(){this.dialog.close()}static#e=this.\u0275fac=function(V){return new(V||P)(a.Y36(l.R),a.Y36(e.hV),a.Y36(u.t),a.Y36(d.a),a.Y36(s.v),a.Y36(e.eJ))};static#t=this.\u0275cmp=a.Xpm({type:P,selectors:[["zen-user-password-change-form"]],decls:41,vars:19,consts:[[1,"dialog-content-wrapper","changepassword-popup"],[1,"mat-accent","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","space-between center"],["class","title dialog-title",4,"ngIf"],["mat-icon-button","","tabindex","-1","aria-label","Close dialog",3,"click"],["mat-dialog-content","",1,"p-12","m-0"],["id","changePasswordForm","name","changePasswordForm","autocomplete","off"],["changePasswordForm","ngForm"],["fxLayout","row wrap","fxFlex","100"],["fxLayout","column","fxFlex","100",4,"ngIf"],["fxLayout","column","fxFlex","100"],["matInput","","name","newPassword","zen-validator","changeUserPassword.newPassword",3,"placeholder","type","ngModel","ngModelChange","blur"],["matSuffix","",3,"click"],["matInput","","name","confirmPassword","zen-validator","changeUserPassword.confirmPassword",3,"placeholder","type","ngModel","ngModelChange","blur"],["class","red-fg font-size-14",4,"ngIf"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","end center",1,"m-0","p-12","bb"],["mat-raised-button","","type","submit","form","changePasswordForm",1,"mat-accent",3,"disabled","click"],[1,"passwordMessage"],[4,"ngIf"],[1,"title","dialog-title"],["matInput","","name","oldPassword","zen-validator","changeUserPassword.oldPassword",3,"placeholder","type","ngModel","ngModelChange"],[1,"red-fg","font-size-14"]],template:function(V,K){if(1&V){const X=a.EpF();a.TgZ(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2),a.YNc(3,p,2,0,"span",3),a.YNc(4,E,2,1,"span",3),a.TgZ(5,"button",4),a.NdJ("click",function(){return K.close()}),a.TgZ(6,"mat-icon"),a._uU(7,"close"),a.qZA()()()(),a.TgZ(8,"div",5)(9,"form",6,7)(11,"div",8),a.YNc(12,b,6,6,"div",9),a.TgZ(13,"div",10)(14,"mat-form-field")(15,"input",11),a.NdJ("ngModelChange",function(J){return K.model.newPassword=J})("blur",function(){return K.checkPasswordValidity("newPassword")}),a.ALo(16,"translate"),a.qZA(),a.TgZ(17,"mat-icon",12),a.NdJ("click",function(){return K.newHide=!K.newHide}),a._uU(18),a.qZA()()(),a.TgZ(19,"div",10)(20,"mat-form-field")(21,"input",13),a.NdJ("ngModelChange",function(J){return K.model.confirmPassword=J})("blur",function(){return K.checkPasswordValidity("confirmPassword")}),a.ALo(22,"translate"),a.qZA(),a.TgZ(23,"mat-icon",12),a.NdJ("click",function(){return K.newHide1=!K.newHide1}),a._uU(24),a.qZA(),a.YNc(25,I,2,1,"mat-hint",14),a.qZA()()()()(),a.TgZ(26,"div",15)(27,"button",16),a.NdJ("click",function(){a.CHM(X);const J=a.MAs(10);return a.KtG(K.save(J))}),a._uU(28," Save "),a.qZA()(),a.TgZ(29,"div")(30,"p",17),a._uU(31,"Password"),a.qZA(),a.TgZ(32,"ul")(33,"li"),a._uU(34,"Must be atleast 8 Characters long."),a.qZA(),a.TgZ(35,"li"),a._uU(36,"Must contain atleast 1 Capital Case."),a.qZA(),a.TgZ(37,"li"),a._uU(38,"Must contain atleast 1 Small Case."),a.qZA(),a.YNc(39,L,2,0,"li",18),a.YNc(40,D,2,0,"li",18),a.qZA()()()}if(2&V){const X=a.MAs(10);a.xp6(3),a.Q6J("ngIf",!K.isSuperAdmin),a.xp6(1),a.Q6J("ngIf",K.isSuperAdmin),a.xp6(8),a.Q6J("ngIf",!K.isSuperAdmin),a.xp6(3),a.s9C("placeholder",a.lcZ(16,15,"New Password")),a.Q6J("type",K.newHide?"password":"text")("ngModel",K.model.newPassword),a.xp6(3),a.Oqu(K.newHide?"visibility_off":"visibility"),a.xp6(3),a.s9C("placeholder",a.lcZ(22,17,"Confirm Password")),a.Q6J("type",K.newHide1?"password":"text")("ngModel",K.model.confirmPassword),a.xp6(3),a.Oqu(K.newHide1?"visibility_off":"visibility"),a.xp6(1),a.Q6J("ngIf",K.isPasswordRejected),a.xp6(2),a.Q6J("disabled",X.invalid),a.xp6(12),a.Q6J("ngIf",K.isInternalUser),a.xp6(1),a.Q6J("ngIf",K.isInternalUser)}},dependencies:[A.O5,_._Y,_.Fj,_.JJ,_.JL,_.On,_.F,C.xw,C.Wh,C.yH,R.Ye,R.rD,x.v_,x.pH,x.nX,f.k0,k.Hw,w.eB,g.p,M.X$],styles:["::-ms-reveal{display:none}.changepassword-popup{width:500px}.changepassword-popup .mat-dialog-container{padding:0}.changepassword-popup .mat-dialog-container .compose-form .mat-form-field{width:100%}.changepassword-popup .dialog-content-wrapper{width:900px;max-height:85vh;display:flex;flex-direction:column}.changepassword-popup .dialog-content-wrapper .mat-horizontal-content-container{padding:0}.changepassword-popup .dialog-content-wrapper zen-stepper{height:auto;padding-bottom:60px}.passwordMessage{padding-left:20px}\n"],encapsulation:2})}return P})()},50888:(he,y,i)=>{"use strict";i.d(y,{C:()=>_});var e=i(89515),n=i(13868),o=i(30617),a=i(81274),l=i(20180),u=i(84187),d=i(42400),s=i(94505),A=i(65879);let _=(()=>{class C{static#e=this.\u0275fac=function(f){return new(f||C)};static#t=this.\u0275mod=A.oAB({type:C});static#n=this.\u0275inj=A.cJS({imports:[l.L,a.g0,u.wp,d.x4,o.Ps,s.yu,n.g,e.aw]})}return C})()},82260:(he,y,i)=>{"use strict";i.d(y,{i:()=>E});var e=i(29025),n=i(48979),o=i(38034),a=i(96837),l=i(20180),u=i(94505),d=i(26177),s=i(84187),A=i(30617),_=i(42400),C=i(48424),R=i(30481),x=i(12430),f=i(13868),k=i(53790),w=i(89515),g=i(8379),M=i(54885),p=i(65879);let E=(()=>{class b{static#e=this.\u0275fac=function(D){return new(D||b)};static#t=this.\u0275mod=p.oAB({type:b});static#n=this.\u0275inj=p.cJS({providers:[a.i],imports:[l.L,s.wp,_.x4,A.Ps,o.FA,u.yu,x.L,C.uw,f.g,k.u,w.aw,g.Q,n.i,M.If,R.AA,d.yD,e.IF]})}return b})()},96837:(he,y,i)=>{"use strict";i.d(y,{i:()=>a});var e=i(7110),n=i(65879),o=i(6738);let a=(()=>{class l{constructor(d){this.webApiService=d,this.basePath=e.XL.settings.apiUrl+"WorkInjury/"}workInjuryTask(d,s){return this.webApiService.post(this.basePath+"WorkInjuryTsk",{json:JSON.stringify(d),refresh:s},null,null,!0)}workInjuryBodyParts(d,s){return this.webApiService.get(this.basePath+"WorkInjuryBodyParts",{json:JSON.stringify(d),refresh:s},null,!0)}static#e=this.\u0275fac=function(s){return new(s||l)(n.LFG(o.f))};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac})}return l})()},76939:(he,y,i)=>{"use strict";i.d(y,{H:()=>D});var e=i(78645),n=i(59773),o=i(65879),a=i(50699),l=i(64954),u=i(64190),d=i(28011),s=i(39059),A=i(710),_=i(74187),C=i(96814),R=i(30617),x=i(30481),f=i(32040),k=i(83814),w=i(27509),g=i(89515);function M(F,P){if(1&F&&(o.TgZ(0,"span",12)(1,"span",13),o._uU(2),o.qZA(),o._uU(3," | "),o.TgZ(4,"span"),o._uU(5),o.qZA()()),2&F){const O=o.oxw().$implicit;o.xp6(2),o.Oqu(O.completedTask),o.xp6(3),o.Oqu(O.totalTask)}}function p(F,P){if(1&F&&(o.TgZ(0,"span")(1,"span"),o._uU(2),o.qZA()()),2&F){const O=o.oxw().$implicit;o.Gre("zenauto-cw-",O.completedTask,""),o.xp6(2),o.Oqu(O.completedTask)}}function E(F,P){1&F&&(o.TgZ(0,"mat-icon",14),o._uU(1,"check"),o.qZA())}function b(F,P){1&F&&(o.TgZ(0,"mat-icon",15),o.ALo(1,"translate"),o._uU(2,"radio_button_checked "),o.qZA()),2&F&&o.s9C("matTooltip",o.lcZ(1,1,"current"))}const I=function(F,P){return[F,P]};function L(F,P){if(1&F){const O=o.EpF();o.ynx(0),o.TgZ(1,"li",2)(2,"div",3),o.NdJ("click",function(){const K=o.CHM(O).$implicit,X=o.oxw();return o.KtG(!X.disableDetailClick&&X.onWorkflowStageClick(K))}),o.TgZ(3,"div",4),o.YNc(4,M,6,2,"span",5),o.YNc(5,p,3,4,"span",6),o.YNc(6,E,2,0,"mat-icon",7),o.qZA(),o._UZ(7,"kendo-progressbar",8),o.TgZ(8,"span"),o.ALo(9,"translate"),o.YNc(10,b,3,3,"mat-icon",9),o.TgZ(11,"span",10),o.ALo(12,"translate"),o._uU(13),o.ALo(14,"translate"),o.qZA()()(),o.TgZ(15,"mat-icon",11),o._uU(16,"trending_flat"),o.qZA()(),o.BQk()}if(2&F){const O=P.$implicit,U=o.oxw();let V;o.xp6(1),o.Gre("",O.resource," each-stage"),o.Udp("width",100/U.totalStage+"%"),o.xp6(1),o.Q6J("ngClass",o.WLB(28,I,O.workflowStageId==U.selectedWorkflowStage.workflowStageId?"selected-stage":"unselected-stage",U.disableDetailClick?"":"point")),o.xp6(2),o.Q6J("ngIf","directhirejob"!=U.entity),o.xp6(1),o.Q6J("ngIf","directhirejob"==U.entity),o.xp6(1),o.Q6J("ngIf",1==O.isStagecompleted),o.xp6(1),o.Udp("width",100,"%"),o.Q6J("emptyCssStyle",U.emptyStyles)("progressCssStyle",O.stageColor)("value",null!==(V=O.progress)&&void 0!==V?V:0)("animation",U.workflowAnimation)("label",!1),o.xp6(1),o.Gre("stage-status zenauto-cw-",o.lcZ(9,22,O.resource),""),o.xp6(2),o.Q6J("ngIf",O.currentStage>0&&"directhirejob"!=U.entity),o.xp6(1),o.s9C("matTooltip",o.lcZ(12,24,O.resource)),o.xp6(2),o.hij(" ",o.lcZ(14,26,O.resource),"")}}let D=(()=>{class F{set value(O){Object.keys(O).length>0&&(this.entityData=O,this.selectedWorkflowStage={},this.entityData.hasOwnProperty("disableWorkflowDetailClick")&&(this.disableDetailClick=this.entityData.disableWorkflowDetailClick),this.getWorkflowDetail(this.entityData))}constructor(O,U,V,K,X,me,J,Q){this._workflowDetailService=O,this._workflowService=U,this.route=V,this.entityDetailService=K,this.router=X,this.taskService=me,this._cs=J,this.utilityService=Q,this.disableClick=!1,this.disableDetailClick=!1,this.entity="",this.entityData={},this.selectedWorkflowStage={},this.progressValue=0,this.workflowStageColors=[{color:"#F44336",background:"#F44336"},{color:"#ffc107",background:"#ffc107"},{color:"#4caf50",background:"#4caf50"},{color:"#ff7c22",background:"#ff7c22"},{color:"#ff4f79",background:"#ff4f79"},{color:"#9575cd",background:"#9575cd"},{color:"#657a9a",background:"#657a9a"}],this.progressStyles={color:"",background:""},this.emptyStyles={background:""},this._unsubscribeAll=new e.x}ngOnInit(){let O;this.taskService.createdOrUpdatedTask.pipe((0,n.R)(this._unsubscribeAll)).subscribe(V=>{V?.hasOwnProperty(this.entityData.entity)&&V[this.entityData.entity].entityId==this.entityData.entityId&&O!=V[this.entityData.entity].timestamp&&(O=V[this.entityData.entity].timestamp,this.entityData=this.entityDetailService.getCurrentEntityDetail(),this.getWorkflowDetail(this.entityData))}),this.isSlideView=!!this.entityDetailService.getCurrentEntityDetail().hasOwnProperty("isSlideView")&&this.entityData.isSlideView,this._cs.onShowEveryTask.pipe((0,n.R)(this._unsubscribeAll)).subscribe(V=>{if(V&&V?.entityId){let K=this.workflowDetail?.findIndex(X=>"total"==X.workflowStage.toLowerCase());K>=0&&this.onWorkflowStageClick(this.workflowDetail[K])}}),this.utilityService.onInternalNavigationChange.pipe((0,n.R)(this._unsubscribeAll)).subscribe(V=>{V&&(this.selectedWorkflowStage={})}),this.changeProgress()}getWorkflowDetail(O){this.entity="sales"===O.entity.toLowerCase()?"target":"workinjury"===O.entity.toLowerCase()?"work-injury":O.entity.toLowerCase(),this._workflowDetailService.getWorkflowDetail({entity:O.entity,entityId:O.entityId}).pipe((0,n.R)(this._unsubscribeAll)).subscribe(V=>{this.workflowAnimation={duration:"directhirejob"==this.entity?0:800},this.workflowDetail=V,this.workflowDetail.forEach(K=>{let X=this.workflowDetail.findIndex(me=>me.workflowStageId==K.workflowStageId);K.stageColor=this.workflowStageColors[X],"directhirejob"==this.entity?K.progress=100:setTimeout(()=>{K.progress=K.totalTask?K.completedTask/K.totalTask*100:100},500)}),this.totalStage=this.workflowDetail.length,this.setCurrentWorkflowStage()})}setCurrentWorkflowStage(){-1===this.workflowDetail.findIndex(U=>this.selectedWorkflowStage?.workflowStageId==U.workflowStageId)&&(this.selectedWorkflowStage=this.workflowDetail.find(U=>U.currentStage==U.workflowStageId)),this._workflowService.currentWorkflowStage=this.selectedWorkflowStage}onWorkflowStageClick(O){this.selectedWorkflowStage=O,this._workflowService.currentWorkflowStage=O,this.entityData=this.entityDetailService.getCurrentEntityDetail();const U="directhirejob"===this.entityData.entity?"talent":"task",V=this.entityData.navigationTabs.find(K=>K.navigation?.toLowerCase()===U&&"item"===K.type?.toLowerCase());if(V){V.isActive=!0,this.entityDetailService.updateEntityDetailNavigationStatus(V);const K=this.entityDetailService.getFullUrl();this.entityDetailService.removeGroupInternalNavigation(),this.router.navigate([K],{skipLocationChange:!!this.isSlideView,replaceUrl:!0,relativeTo:this.route})}}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}changeProgress(){this.progressValue=0===this.progressValue?100:0}static#e=this.\u0275fac=function(U){return new(U||F)(o.Y36(a.L),o.Y36(l.z),o.Y36(u.gz),o.Y36(d.a),o.Y36(u.F0),o.Y36(s.M),o.Y36(A.v),o.Y36(_.t))};static#t=this.\u0275cmp=o.Xpm({type:F,selectors:[["workflow-detail"]],inputs:{value:["entityDetailData","value"]},decls:2,vars:1,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"workflow-v2","zenauto-circle-workflow-wrap"],[4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center"],["fxFlex","calc(100% - 25px)","fxLayout","column",1,"stage",3,"ngClass","click"],[1,"stage-number"],["class","zenauto-cw-stageIn",4,"ngIf"],[3,"class",4,"ngIf"],["class","s-18",4,"ngIf"],[3,"emptyCssStyle","progressCssStyle","value","animation","label"],["class","s-10 mr-4 active-p",3,"matTooltip",4,"ngIf"],["matTooltipPosition","left",1,"text-truncate","font-size-12",3,"matTooltip"],[1,"dir"],[1,"zenauto-cw-stageIn"],[1,"font-weight-600","stg-no"],[1,"s-18"],[1,"s-10","mr-4","active-p",3,"matTooltip"]],template:function(U,V){1&U&&(o.TgZ(0,"ul",0),o.YNc(1,L,17,31,"ng-container",1),o.qZA()),2&U&&(o.xp6(1),o.Q6J("ngForOf",V.workflowDetail))},dependencies:[C.mk,C.sg,C.O5,R.Hw,x.Kd,f.RI,k.xw,k.Wh,k.yH,w.oO,g.X$],styles:[".workflow-v2[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:0;padding:0;align-items:center;overflow-x:auto}.workflow-v2[_ngcontent-%COMP%]   .each-stage[_ngcontent-%COMP%]{display:flex;flex-direction:column;list-style:none}.workflow-v2[_ngcontent-%COMP%]   .each-stage[_ngcontent-%COMP%]:nth-child(1)     kendo-progressbar .k-progress-status-wrap{background-color:#f4433640}.workflow-v2[_ngcontent-%COMP%]   .each-stage[_ngcontent-%COMP%]:nth-child(3)     kendo-progressbar .k-progress-status-wrap{background-color:#ffc10733}.workflow-v2[_ngcontent-%COMP%]   .each-stage[_ngcontent-%COMP%]:nth-child(5)     kendo-progressbar .k-progress-status-wrap{background-color:#4caf5066}.workflow-v2[_ngcontent-%COMP%]   .each-stage[_ngcontent-%COMP%]:nth-child(7)     kendo-progressbar .k-progress-status-wrap{background-color:#ff7a2240}.workflow-v2[_ngcontent-%COMP%]   .each-stage[_ngcontent-%COMP%]:nth-child(9)     kendo-progressbar .k-progress-status-wrap{background-color:#ff4f7940}.workflow-v2[_ngcontent-%COMP%]   .each-stage[_ngcontent-%COMP%]:nth-child(11)     kendo-progressbar .k-progress-status-wrap{background-color:#9575cd40}.workflow-v2[_ngcontent-%COMP%]   .each-stage[_ngcontent-%COMP%]:nth-child(13)     kendo-progressbar .k-progress-status-wrap{background-color:#28afb040}.workflow-v2[_ngcontent-%COMP%]   .each-stage[_ngcontent-%COMP%]   .stage[_ngcontent-%COMP%]{padding:6px 2px}.workflow-v2[_ngcontent-%COMP%]   .each-stage[_ngcontent-%COMP%]   .stage[_ngcontent-%COMP%]:hover{background:rgba(13,44,71,.4117647059);cursor:pointer}.workflow-v2[_ngcontent-%COMP%]   .each-stage[_ngcontent-%COMP%]   .selected-stage[_ngcontent-%COMP%]{background:#0b3c64;border-radius:4px}.workflow-v2[_ngcontent-%COMP%]   .each-stage[_ngcontent-%COMP%]   kendo-progressbar[_ngcontent-%COMP%]{height:6px}.workflow-v2[_ngcontent-%COMP%]   .each-stage[_ngcontent-%COMP%]   .stage-status[_ngcontent-%COMP%]{display:flex;justify-content:start;align-items:center}.workflow-v2[_ngcontent-%COMP%]   .each-stage[_ngcontent-%COMP%]   .stage-status[_ngcontent-%COMP%]   .active-p[_ngcontent-%COMP%]{color:#00ffd0;box-shadow:0 0 5px;border-radius:50%}.workflow-v2[_ngcontent-%COMP%]   .each-stage[_ngcontent-%COMP%]:last-child   .dir[_ngcontent-%COMP%]{display:none!important}.workflow-v2[_ngcontent-%COMP%]   .dir[_ngcontent-%COMP%]{color:#75b5da}.workflow-v2[_ngcontent-%COMP%]     .stage-number{display:flex;justify-content:space-between}.workflow-v2[_ngcontent-%COMP%]     .stage-number .zenauto-cw-stageIn{font-size:1rem;white-space:nowrap}"]})}return F})()},1760:(he,y,i)=>{"use strict";i.d(y,{E:()=>_});var e=i(96814),n=i(50699),o=i(30617),a=i(30481),l=i(89515),u=i(81426),d=i(32040),s=i(85947),A=i(65879);let _=(()=>{class C{static#e=this.\u0275fac=function(f){return new(f||C)};static#t=this.\u0275mod=A.oAB({type:C});static#n=this.\u0275inj=A.cJS({providers:[n.L],imports:[e.ez,o.Ps,a.AA,l.aw,u.H,d.q7,s.o9]})}return C})()},50699:(he,y,i)=>{"use strict";i.d(y,{L:()=>a});var e=i(7110),n=i(65879),o=i(6738);let a=(()=>{class l{constructor(d){this.webApiService=d,this.basePath=e.XL.settings.apiUrl}getWorkflowDetail(d){return this.webApiService.get(this.basePath+"Workflow/WorkflowDetail",{json:JSON.stringify(d),refresh:!0},null,!1)}static#e=this.\u0275fac=function(s){return new(s||l)(n.LFG(o.f))};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac})}return l})()},20042:(he,y,i)=>{"use strict";i.d(y,{E:()=>d});var e=i(65619),n=i(7110),o=i(37398),a=i(65879),l=i(6738),u=i(74187);let d=(()=>{class s{constructor(_,C){this.webApiService=_,this.utilityService=C,this.basePath=n.XL.settings.apiUrl,this.directoryParamValue={},this.allDirectoryParam=new e.X({}),this.stageClass="w-100-p stage0",this.reselectWorkflow=new e.X(null)}getWorkflowSummary(_){return this.webApiService.get(this.basePath+"Workflow/WorkflowSummary",{data:JSON.stringify(_)},null,!1)}setDirectoryParam(_){const C=JSON.parse(sessionStorage.getItem("headerParams"));this.directoryParamValue[C.applicationId]=_,this.allDirectoryParam.next(this.directoryParamValue)}directoryParam(){const _=JSON.parse(sessionStorage.getItem("headerParams"));return this.allDirectoryParam.pipe((0,o.U)(C=>C[_.applicationId]?C[_.applicationId]:{}))}setStorageDirectoryParam(_){sessionStorage.setItem("directoryParam",_)}getStorageDirectoryParam(){const _=sessionStorage.getItem("directoryParam");return _?JSON.parse(_):""}static#e=this.\u0275fac=function(C){return new(C||s)(a.LFG(l.f),a.LFG(u.t))};static#t=this.\u0275prov=a.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})()},79172:(he,y,i)=>{"use strict";i.d(y,{o:()=>x});var e=i(94505),n=i(66878),o=i(84187),a=i(30617),l=i(78250),u=i(39014),d=i(81274),s=i(30481),A=i(20180),_=i(89515),C=i(64190),R=i(65879);let x=(()=>{class f{static#e=this.\u0275fac=function(g){return new(g||f)};static#t=this.\u0275mod=R.oAB({type:f});static#n=this.\u0275inj=R.cJS({imports:[A.L,a.Ps,l.jT,_.aw,s.AA,d.g0,e.yu,C.Bz,n.yj,o.wp,u.g]})}return f})()},45919:(he,y,i)=>{"use strict";i.d(y,{t:()=>I});var e=i(65879),n=i(7110),o=i(10217),l=i(78645),u=i(59773),d=i(74187),s=i(29486),A=i(96814),_=i(83814),C=i(27509),R=i(91438),x=i(69234),f=i(30617),k=i(94505);function w(L,D){if(1&L){const F=e.EpF();e.ynx(0),e.TgZ(1,"button",14),e.NdJ("click",function(){e.CHM(F);const O=e.oxw(2);return e.KtG(O.getPreviousData())}),e.TgZ(2,"mat-icon"),e._uU(3,"chevron_left"),e.qZA()(),e.TgZ(4,"button",14),e.NdJ("click",function(){e.CHM(F);const O=e.oxw(2);return e.KtG(O.getNextData())}),e.TgZ(5,"mat-icon"),e._uU(6,"chevron_right"),e.qZA()(),e.BQk()}if(2&L){const F=e.oxw(2);e.xp6(1),e.Q6J("disabled",0==F.selectedIndex),e.xp6(3),e.Q6J("disabled",F.documentList.length==F.selectedIndex+1)}}function g(L,D){if(1&L&&(e.TgZ(0,"div",15)(1,"span"),e._uU(2),e.qZA()()),2&L){const F=e.oxw(2);e.xp6(2),e.AsE("",F.selectedIndex+1," of ",F.documentList.length,"")}}function M(L,D){if(1&L){const F=e.EpF();e.TgZ(0,"div",6)(1,"div",7)(2,"button",8),e.NdJ("click",function(){e.CHM(F);const O=e.oxw();return e.KtG(O.documentSlideView.emit(!0))}),e.TgZ(3,"mat-icon",9),e._uU(4,"close"),e.qZA()(),e.YNc(5,w,7,2,"ng-container",10),e.qZA(),e.TgZ(6,"div",11)(7,"span",12),e._uU(8),e.qZA()(),e.YNc(9,g,3,2,"div",13),e.qZA()}if(2&L){const F=e.oxw();let P;e.xp6(5),e.Q6J("ngIf",(null==F.documentList?null:F.documentList.length)>1),e.xp6(3),e.Oqu(null!==(P=null==F.documentList[F.selectedIndex]?null:F.documentList[F.selectedIndex].documentName)&&void 0!==P?P:null==F.documentList[F.selectedIndex]?null:F.documentList[F.selectedIndex].fileName),e.xp6(1),e.Q6J("ngIf",(null==F.documentList?null:F.documentList.length)>1)}}function p(L,D){1&L&&(e.TgZ(0,"div",16),e._UZ(1,"mat-spinner",17),e.qZA())}function E(L,D){if(1&L){const F=e.EpF();e.TgZ(0,"ngx-doc-viewer",18),e.NdJ("loaded",function(){e.CHM(F);const O=e.oxw();return e.KtG(O.onloadDocument())}),e.qZA()}if(2&L){const F=e.oxw();e.Q6J("url",F.documentUrl)("viewer",F.viewer)("googleCheckInterval",F.googleCheckInterval)}}function b(L,D){if(1&L&&e._UZ(0,"img",19),2&L){const F=e.oxw();e.Q6J("src",F.documentUrl,e.LSH)}}let I=(()=>{class L{set value(F){F.length>0&&(this.documentList=F,this.selectedIndex=0,this.openDocumentView(this.documentList[0]))}set val(F){this.documentList=[],this.docData&&this.documentList.push(this.docData),this.documentUrl=F,this.setViewer()}set values(F){F.src&&(this.inputType="blob"),this.fileSrc=F.src,this.fileName=F.documentName??F.fileName,this.openDocumentView(this.documentList[0])}set v(F){this.showDocViewerHeader=F}constructor(F,P){this.us=F,this.ds=P,this.documentLoading=!1,this.documentUrl="",this.googleCheckInterval=7e3,this.isMobile=!1,this.selectedIndex=0,this.documentList=[],this.showDocViewerHeader=!0,this.documentSlideView=new e.vpe,this.inputType="url",this._unsubscribeAll=new l.x}ngOnInit(){}setViewer(){this.documentLoading=!0;const F={office:["ppt","pptx","doc","docx","xls","xlsx"],pdf:["pdf"],google:["txt","tiff","zip","rar","xps","ttf","ps","eps","svg","dxf","psd","ai","pages","css","php","c","cpp","h","hpp","js","rtf"],url:["html"]};if(this.docData){if(this.viewer="pdf","object"===this.inputType)this.viewer="pdf"==this.docData.extension.toLowerCase()?"pdf":"mammoth";else for(var P in F)F[P].includes(this.docData.extension.toLowerCase())&&(this.viewer=P);this.title=this.docData.documentName,["jpeg","jpg","png","gif","bmp"].includes(this.docData.extension.toLowerCase())?(this.isImage=!0,this.documentLoading=!1):(this.isImage=!1,this.checkIsMobile())}else this.isImage=!1,this.viewer="pdf",this.checkIsMobile()}checkIsMobile(){this.isMobile=!(!this.us.deviceService.isMobile()&&!this.us.deviceService.isTablet()),"pdf"===this.viewer&&this.isMobile&&(this.viewer="google"),"pdf"===this.viewer&&"Safari"==this.us.deviceService.browser&&(this.viewer="google"),this.documentLoading=!("google"!=this.viewer&&"office"!=this.viewer||"blob"==this.inputType)}download(){this.ds.downloadThroughURL(this.documentUrl).pipe((0,u.R)(this._unsubscribeAll)).subscribe(F=>{F.text().then(P=>{'"File not found"'!=P?o.saveAs(F,(this.title?this.title:"download")+"."+F.type):this.us.callSnackBar("File not found","error")})},F=>{this.us.callSnackBar("errorOccured","error")})}onloadDocument(){this.documentLoading=!1}getPreviousData(){this.selectedIndex--,this.openDocumentView(this.documentList[this.selectedIndex])}getNextData(){this.selectedIndex++,this.openDocumentView(this.documentList[this.selectedIndex])}openDocumentView(F){this.fileSrc?("blob"===this.inputType&&("google"===this.viewer||"office"===this.viewer)&&["txt","doc","docx","ppt","pptx","xls","xlsx","tiff"].includes(F.extension.toLowerCase())&&(this.documentSlideView.emit(this.docData),this.us.callSnackBar("No preview is available for "+F.extension+" file.","info")),F.documentName=this.fileName,F.fileName=this.fileName,this.documentUrl=this.fileSrc,this.docData={documentId:null,documentName:F.documentName,fileName:F.fileName,extension:F.extension}):(this.documentUrl=n.XL.settings.apiUrl+"Document/SingleDocument?documentId="+F.documentId,this.docData={documentId:F.documentId,documentName:F.documentName,fileName:F.fileName,extension:F.extension}),this.setViewer()}ngOnDestroy(){this.documentUrl="",this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(P){return new(P||L)(e.Y36(d.t),e.Y36(s.Z))};static#t=this.\u0275cmp=e.Xpm({type:L,selectors:[["zen-doc-viewer"]],hostAttrs:[1,"h-100-p"],inputs:{showDocViewerHeader:"showDocViewerHeader",config:"config",isImage:"isImage",inputType:"inputType",docData:"docData",value:["documentList","value"],val:["documentUrl","val"],values:["customFile","values"],v:["showDocViewerHeader","v"]},outputs:{documentSlideView:"documentSlideView"},decls:6,vars:6,consts:[["fxLayout","column",1,"h-100-p"],["fxLayout","row","class","py-4 doc-viewer-action",4,"ngIf"],[1,"zen-dv-bottom-row",3,"fxLayout","ngClass"],["class","pre-loading-page w-100-p h-100-p",4,"ngIf"],["class","doc w-100-p h-100-p",3,"url","viewer","googleCheckInterval","loaded",4,"ngIf"],["class","h-100-p object-contain",3,"src",4,"ngIf"],["fxLayout","row",1,"py-4","doc-viewer-action"],["fxLayout","row","fxLayoutAlign","start center",1,"viewer-controls","ml-8"],["mat-icon-button","",1,"slide-close","w-28","h-28",3,"click"],[1,"s-18"],[4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","center center",1,"h4"],[1,"h3","title-core"],["class","pr-12","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["mat-icon-button","",3,"disabled","click"],["fxLayout","row","fxLayoutAlign","start center",1,"pr-12"],[1,"pre-loading-page","w-100-p","h-100-p"],["diameter","50"],[1,"doc","w-100-p","h-100-p",3,"url","viewer","googleCheckInterval","loaded"],[1,"h-100-p","object-contain",3,"src"]],template:function(P,O){1&P&&(e.TgZ(0,"div",0),e.YNc(1,M,10,3,"div",1),e.TgZ(2,"div",2),e.YNc(3,p,2,0,"div",3),e.YNc(4,E,1,3,"ngx-doc-viewer",4),e.YNc(5,b,1,1,"img",5),e.qZA()()),2&P&&(e.xp6(1),e.Q6J("ngIf",O.showDocViewerHeader),e.xp6(1),e.Q6J("fxLayout",O.documentUrl&&O.isImage?"column":"")("ngClass",O.documentUrl&&O.isImage?"px-8 overflow-y-auto":""),e.xp6(1),e.Q6J("ngIf",O.documentLoading),e.xp6(1),e.Q6J("ngIf",O.documentUrl&&!O.isImage),e.xp6(1),e.Q6J("ngIf",O.documentUrl&&O.isImage))},dependencies:[A.mk,A.O5,_.xw,_.Wh,_.yH,C.oO,R.sN,x.zr,f.Hw,k.eB],styles:[".zen-dv-top-row{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;padding:8px}.zen-dv-top-row div{flex:0 0 50%}.zen-dv-top-row div .title{color:#000;font-weight:700}.zen-dv-bottom-row .pre-loading-page{flex:0 0 100%!important;position:absolute;top:0;background:#fff;align-items:center;justify-content:center;display:flex}\n"],encapsulation:2})}return L})()},39523:(he,y,i)=>{"use strict";i.d(y,{O:()=>R});var e=i(91922),n=i(20180),o=i(56223),a=i(96814),l=i(91438),u=i(69234),d=i(30481),s=i(89515),A=i(30617),_=i(94505),C=i(65879);let R=(()=>{class x{static#e=this.\u0275fac=function(w){return new(w||x)};static#t=this.\u0275mod=C.oAB({type:x});static#n=this.\u0275inj=C.cJS({imports:[n.L,e.q,a.ez,o.u5,d.AA,s.aw,l.UK,u.cX,A.Ps,_.yu]})}return x})()},26869:(he,y,i)=>{"use strict";i.d(y,{N:()=>se});var e=i(65879),n=i(56223),o=i(78645),a=i(74187),l=i(89515),u=i(96814),d=i(83814),s=i(27509),A=i(54885),_=i(84187),C=i(82012),R=i(27688),x=i(30481),f=i(42400),k=i(38034);const w=["sbtn"];function g(ne,_e){if(1&ne&&(e.TgZ(0,"div",9),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ne){const ge=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,ge.noControlsLabel)," ")}}function M(ne,_e){if(1&ne&&(e.TgZ(0,"span",18),e._uU(1),e.qZA()),2&ne){const ge=e.oxw(2).$implicit;e.xp6(1),e.hij("",ge.prefix,"\xa0")}}function p(ne,_e){if(1&ne&&(e.TgZ(0,"span",19),e._uU(1),e.qZA()),2&ne){const ge=e.oxw(2).$implicit;e.xp6(1),e.hij("\xa0",ge.suffix,"")}}const E=function(ne,_e){return["mat-form-field",ne,_e]};function b(ne,_e){if(1&ne){const ge=e.EpF();e.TgZ(0,"mat-form-field",14)(1,"input",15),e.NdJ("change",function(Te){e.CHM(ge);const De=e.oxw().$implicit,fe=e.oxw(3);return e.KtG(fe.onParameterChange(Te,De))}),e.qZA(),e.YNc(2,M,2,1,"span",16),e.YNc(3,p,2,1,"span",17),e.qZA()}if(2&ne){const ge=e.oxw().$implicit;e.Q6J("ngClass",e.WLB(10,E,ge.visible?"":"hidden",ge.class||"")),e.xp6(1),e.s9C("type","string"===ge.dataType?"text":"number"),e.Q6J("placeholder",ge.placeholder)("matTooltip",ge.tooltip)("name",ge.name)("mask",ge.mask)("value",ge.value)("required",ge.required),e.xp6(1),e.Q6J("ngIf",""!=ge.prefix),e.xp6(1),e.Q6J("ngIf",""!=ge.suffix)}}const I=function(ne,_e){return["zen-select","chip-black",ne,_e]},L=function(){return{}},D=function(ne,_e){return{statusCellTemplate:ne,statusHeaderTemplate:_e}},F=function(){return["id","nameField"]},P=function(){return{standalone:!0}};function O(ne,_e){if(1&ne){const ge=e.EpF();e.TgZ(0,"zen-select",20),e.NdJ("ngModelChange",function(Te){e.CHM(ge);const De=e.oxw().$implicit;return e.KtG(De.value=Te)})("zenSelectInit",function(Te){e.CHM(ge);const De=e.oxw(4);return e.KtG(De.addZenSelect(Te))})("fetch",function(Te){e.CHM(ge);const De=e.oxw().$implicit,fe=e.oxw(3);return e.KtG(fe.fetchControlData(Te,De))})("blurEvent",function(Te){e.CHM(ge);const De=e.oxw().$implicit,fe=e.oxw(3);return e.KtG(fe.onParameterChange(Te,De))}),e.qZA()}if(2&ne){const ge=e.oxw(),Ce=ge.$implicit,Te=ge.index,De=e.oxw(3),fe=e.MAs(4),xe=e.MAs(2);e.Q6J("placeholder",Ce.placeholder)("ngModel",Ce.value)("matTooltip",Ce.tooltip)("ngClass",e.WLB(13,I,Ce.visible?"":"hidden",Ce.class||""))("config",De.controlSelectListDs[Ce.controlId]||e.DdM(16,L))("virtualScroll",!0)("columnTemplates","status"==(De.controlSelectListDs[Ce.controlId]||e.DdM(17,L)).columnTemplates?e.WLB(18,D,fe,xe):null)("panelClass",Te==De.controlsPerRow-1?"last-zen-select":"zen-select-md")("multiple",Ce.multiple)("hiddenColumns",e.DdM(21,F))("ngModelOptions",e.DdM(22,P))("nameField","nameField"),e.uIk("required",Ce.required)}}function U(ne,_e){if(1&ne){const ge=e.EpF();e.TgZ(0,"mat-form-field",14)(1,"input",21),e.NdJ("dateChange",function(Te){e.CHM(ge);const De=e.oxw().$implicit,fe=e.oxw(3);return e.KtG(fe.onParameterChange(Te,De))}),e.qZA(),e._UZ(2,"mat-datepicker-toggle",22)(3,"mat-datepicker",null,23),e.qZA()}if(2&ne){const ge=e.MAs(4),Ce=e.oxw().$implicit;e.Q6J("ngClass",e.WLB(8,E,Ce.visible?"":"hidden",Ce.class||"")),e.xp6(1),e.Q6J("placeholder",Ce.placeholder)("matTooltip",Ce.tooltip)("value",Ce.value)("name",Ce.name)("matDatepicker",ge)("required",Ce.required),e.xp6(1),e.Q6J("for",ge)}}const V=function(ne,_e){return[ne,_e]};function K(ne,_e){if(1&ne){const ge=e.EpF();e.TgZ(0,"div",14)(1,"kendo-timepicker",24),e.NdJ("ngModelChange",function(Te){e.CHM(ge);const De=e.oxw().$implicit;return e.KtG(De.value=Te)})("valueChange",function(Te){e.CHM(ge);const De=e.oxw().$implicit,fe=e.oxw(3);return e.KtG(fe.onParameterChange(Te,De))}),e.qZA()()}if(2&ne){const ge=e.oxw().$implicit;e.Q6J("ngClass",e.WLB(7,V,ge.visible?"":"hidden",ge.class||"")),e.xp6(1),e.Q6J("placeholder",ge.placeholder)("matTooltip",ge.tooltip)("ngModel",ge.value)("name",ge.name)("format","hh:mm a")("required",ge.required)}}function X(ne,_e){if(1&ne){const ge=e.EpF();e.TgZ(0,"div",14)(1,"kendo-datetimepicker",24),e.NdJ("ngModelChange",function(Te){e.CHM(ge);const De=e.oxw().$implicit;return e.KtG(De.value=Te)})("valueChange",function(Te){e.CHM(ge);const De=e.oxw().$implicit,fe=e.oxw(3);return e.KtG(fe.onParameterChange(Te,De))}),e.qZA()()}if(2&ne){const ge=e.oxw().$implicit;e.Q6J("ngClass",e.WLB(7,V,ge.visible?"":"hidden",ge.class||"")),e.xp6(1),e.Q6J("placeholder",ge.placeholder)("matTooltip",ge.tooltip)("ngModel",ge.value)("name",ge.name)("format","MM/dd/yyyy hh:mm a")("required",ge.required)}}function me(ne,_e){if(1&ne&&(e.ynx(0),e.YNc(1,b,4,13,"mat-form-field",12),e.YNc(2,O,1,23,"zen-select",13),e.YNc(3,U,5,11,"mat-form-field",12),e.YNc(4,K,2,10,"div",12),e.YNc(5,X,2,10,"div",12),e.BQk()),2&ne){const ge=_e.$implicit;e.xp6(1),e.Q6J("ngIf","textbox"==ge.controlType),e.xp6(1),e.Q6J("ngIf","dropdown"==ge.controlType),e.xp6(1),e.Q6J("ngIf","date"==ge.controlType),e.xp6(1),e.Q6J("ngIf","time"==ge.controlType),e.xp6(1),e.Q6J("ngIf","datetime"==ge.controlType)}}function J(ne,_e){if(1&ne&&(e.TgZ(0,"div",10),e.YNc(1,me,6,5,"ng-container",11),e.qZA()),2&ne){const ge=_e.$implicit;e.xp6(1),e.Q6J("ngForOf",ge.controls)}}function Q(ne,_e){if(1&ne){const ge=e.EpF();e.TgZ(0,"form",3,4),e.NdJ("ngSubmit",function(Te){e.CHM(ge);const De=e.oxw();return e.KtG(De.onFormSubmit(Te))}),e.YNc(3,g,3,3,"div",5),e.YNc(4,J,2,1,"div",6),e._UZ(5,"button",7,8),e.qZA()}if(2&ne){const ge=e.oxw();e.Q6J("ngClass",ge.formClass),e.xp6(3),e.Q6J("ngIf",ge.noParameters),e.xp6(1),e.Q6J("ngForOf",ge.formControls)}}function re(ne,_e){1&ne&&(e._uU(0),e.ALo(1,"translate")),2&ne&&e.hij(" ",e.lcZ(1,1,_e.localSk.column.name||"status"),"\n")}function de(ne,_e){if(1&ne&&(e.ynx(0),e.TgZ(1,"div",28)(2,"div",29),e._UZ(3,"div",30),e.qZA(),e.TgZ(4,"div",31),e._uU(5),e.ALo(6,"translate"),e.qZA()(),e.BQk()),2&ne){const ge=e.oxw().localSk;e.xp6(5),e.hij(" ",e.lcZ(6,1,ge.dataItem[ge.column.name])," ")}}function te(ne,_e){if(1&ne&&(e.ynx(0),e.TgZ(1,"div",28)(2,"div",29),e._UZ(3,"div",32),e.qZA(),e.TgZ(4,"div",31),e._uU(5),e.ALo(6,"translate"),e.qZA()(),e.BQk()),2&ne){const ge=e.oxw().localSk;e.xp6(5),e.hij(" ",e.lcZ(6,1,ge.dataItem[ge.column.name])," ")}}function j(ne,_e){if(1&ne&&(e.ynx(0),e.TgZ(1,"div",28)(2,"div",29),e._UZ(3,"div",33),e.qZA(),e.TgZ(4,"div",31),e._uU(5),e.ALo(6,"translate"),e.qZA()(),e.BQk()),2&ne){const ge=e.oxw().localSk;e.xp6(5),e.hij(" ",e.lcZ(6,1,ge.dataItem[ge.column.name])," ")}}const H=function(){return["open","active","assigned","available","completed"]},z=function(){return["tobeopen","reopen","pending"]};function q(ne,_e){if(1&ne&&(e.ynx(0,25),e.YNc(1,de,7,3,"ng-container",26),e.YNc(2,te,7,3,"ng-container",26),e.YNc(3,j,7,3,"ng-container",27),e.BQk()),2&ne){const ge=_e.localSk;e.Q6J("ngSwitch",!0),e.xp6(1),e.Q6J("ngSwitchCase",e.DdM(3,H).includes(ge.dataItem[ge.column.name].trim().toLowerCase())),e.xp6(1),e.Q6J("ngSwitchCase",e.DdM(4,z).includes(ge.dataItem[ge.column.name].trim().toLowerCase()))}}let se=(()=>{class ne{set setControlsData(ge){ge&&Object.keys(ge).length>0?(this.childControlsParentValue&&this.childControlsList.forEach(Ce=>{const Te=this.formValue.filter(De=>Ce===De.controlId);if(Te&&Te[0]){let De;const fe=this.formValue.filter(xe=>Te[0].parentControlId.includes(xe.controlId));if(fe&&fe.length>1){const xe=fe.map(Oe=>({parentId:Oe.controlId,value:Oe.value}));De=xe?JSON.stringify(xe):null}else fe&&1===fe.length&&(De=fe[0].value);!De&&!this.childControlsParentValue[Ce]&&ge[Ce]&&(ge[Ce].data=[])}}),this.controlSelectListDs=ge):this.controlSelectListDs={}}set controls(ge){ge&&this.loadFormControls(ge)}set resetForm(ge){ge&&(this.controlsList&&this.loadFormControls(this.controlsList),this.onReset.emit(!0))}set submitForm(ge){ge&&(this.submitBtn&&this.submitBtn.nativeElement?this.submitBtn.nativeElement.click():this.onFormSubmit({}))}set submitOnLoad(ge){this.submit=ge}constructor(ge,Ce,Te){this.utilityService=ge,this.translate=Ce,this.ref=Te,this.onSubmit=new e.vpe,this.onReset=new e.vpe,this.getControlsData=new e.vpe,this.controlsLoaded=new e.vpe,this.noControlsLabel="noFilters",this.submitOnValueChange=!1,this.formClass=[],this.controlsPerRow=4,this.submit=!1,this.controlsList=[],this.childControlsList=[],this.childControlsParentValue={},this.formControls=[],this.formValue=[],this.controlSelectListDs={},this.zenSelects=[],this.noParameters=!1,this.valueChanged=!1,this._unsubscribeAll=new o.x}ngOnInit(){}loadFormControls(ge){this.ref.detach(),this.controlsList=[...new Set(ge)],this.formControls=void 0,this.formValue=[],this.controlSelectListDs={},this.zenSelects=[],this.childControlsParentValue={},this.childControlsList=[],this.valueChanged=!1,ge&&ge[0]?this.createformControls().then(Ce=>{this.ref.reattach(),Ce&&(this.formControls=[...new Set(Ce)],this.noParameters=!(this.formControls.length>0),this.controlsLoaded.emit(!0),this.submit&&(this.submitBtn&&this.submitBtn.nativeElement?this.submitBtn.nativeElement.click():this.onFormSubmit({})))}).catch(Ce=>{this.ref.reattach(),this.utilityService.callSnackBar(Ce,"error"),this.noParameters=!0,this.controlsLoaded.emit(!0)}):this.noParameters=!0}createformControls(){return new Promise((ge,Ce)=>{const Te={};let De,fe,Le,xe=0,Oe=0;const Gt=[];Gt.push({rowNumber:xe,controls:[]}),0===this.controlsList.length||0===Object.keys(this.controlsList[0]).length?ge(Gt):this.controlsList.forEach((Ut,An)=>{Le=Ut.dataType?Ut.dataType.toLowerCase():"",Ut.parentControlId&&Array.isArray(Ut.parentControlId)&&Ut.parentControlId.length>0?this.childControlsList.push(Ut.controlId):Ut.parentControlId=[],this.formValue.push(this.getFormModel(Ut)),fe=Ut.value,fe&&""!==fe&&(De={},"multiselect"===Le?(fe=fe.split(","),De=(fe||[]).map(xn=>isNaN(xn)?xn:Number(xn))):"select"===Le?De=isNaN(fe)?fe:Number(fe):["date","datetime","time"].includes(Le)?"between"===Ut.operator?(fe=fe.split(","),"date"===Le?(De.From=fe&&fe[0]?new Date(fe[0]):null,De.To=fe&&fe[0]?new Date(fe[1]):null):(De.From=fe&&fe[0]?this.utilityService.toJsDate(fe[0],"JsDate"):null,De.To=fe&&fe[0]?this.utilityService.toJsDate(fe[1],"JsDate"):null)):De="date"===Le?new Date(fe):this.utilityService.toJsDate(fe,"JsDate"):"between"===Ut.operator?(fe=fe.split(","),"number"===Le?(De.From=Number(fe[0]),De.To=Number(fe[1])):["money","decimal"].includes(Le)&&(De.From=parseFloat(fe[0]),De.To=parseFloat(fe[1]))):De="number"===Le?Number(fe):["money","decimal"].includes(Le)?parseFloat(fe):fe),Oe<this.controlsPerRow?(Gt[xe].controls.push(this.getControlsModel(Ut,De,"between"===Ut.operator?"From":"")),Oe++):Oe===this.controlsPerRow&&(xe++,Gt.push({rowNumber:xe,controls:[]}),Gt[xe].controls.push(this.getControlsModel(Ut,De,"between"===Ut.operator?"From":"")),Oe=1);let $n="between"===Ut.operator&&De?De["between"===Ut.operator?"From":""]:De&&"object"!=typeof De?De:null;if(Te[`${Ut.name}${"between"===Ut.operator?"From":""}`]=Ut.required?new n.p4($n,n.kI.required):new n.p4($n),"between"===Ut.operator&&($n="between"===Ut.operator&&De?De["between"===Ut.operator?"To":""]:De&&"object"!=typeof De?De:null,Te[Ut.name+"To"]=Ut.required?new n.p4($n,n.kI.required):new n.p4($n),Oe<this.controlsPerRow?(Gt[xe].controls.push(this.getControlsModel(Ut,De,"To")),Oe++):Oe===this.controlsPerRow&&(xe++,Gt.push({rowNumber:xe,controls:[]}),Gt[xe].controls.push(this.getControlsModel(Ut,De,"To")),Oe=1)),De=void 0,$n=void 0,fe=void 0,4===Oe&&(Gt.push({rowNumber:xe,controls:[]}),xe++,Oe=0),["multiselect","select"].includes(Le))if(0===Ut.parentControlId.length)this.fetchControlData("",Ut);else{let xn;const mt=this.controlsList.filter(ut=>Ut.parentControlId.includes(ut.controlId));if(mt&&mt.length>1){const ut=mt.map(Wt=>({parentId:Wt.controlId,value:Wt.value}));xn=ut?JSON.stringify(ut):null}else mt&&1===mt.length&&(xn=mt[0].value);xn&&this.getControlsData.emit({searchText:"",controlDef:Ut,parentValue:xn})}this.controlsList.length-1===An&&ge(Gt)})})}getFormModel(ge){return{name:ge.name,dataType:ge.dataType?ge.dataType.toLowerCase():"",visible:!!ge.visible,value:ge.value,alias:ge.alias,required:!!ge.required,requireValueAsParent:!!ge.requireValueAsParent,operator:ge.operator,controlId:ge.controlId,parentControlId:ge.parentControlId}}getControlsModel(ge,Ce,Te){const De=ge.dataType?ge.dataType.toLowerCase():"",fe="between"===ge.operator&&Ce?Ce[Te]:Ce;return{controlId:ge.controlId,name:`${ge.name}${Te}`,class:ge.class||null,placeholder:`${this.translate.instant(ge.name)} ${"between"===ge.operator?this.translate.instant(Te.toLowerCase()):""}`,tooltip:`${this.translate.instant(ge.description)} ${["select","multiselect"].includes(De)?"":this.translate.instant(ge.operator)?"("+this.translate.instant(ge.operator)+")":""}`,visible:!!ge.visible,prefix:ge.prefix,suffix:ge.suffix,mask:ge.mask,dataType:De,controlType:["string","text","number","decimal","money"].includes(De)?"textbox":["select","multiselect"].includes(De)?"dropdown":De,required:!!ge.required,operator:ge.operator,multiple:"multiselect"===De,parentControlId:ge.parentControlId,value:fe||""}}fetchControlData(ge,Ce){let Te;const De=this.formValue.filter(fe=>Ce.parentControlId.includes(fe.controlId));if(De&&De.length>1){const fe=De.map(xe=>({parentId:xe.controlId,value:xe.value}));Te=fe?JSON.stringify(fe):null}else De&&1===De.length&&(Te=De[0].value);Ce.parentControlId.length>0&&(this.childControlsParentValue[Ce.controlId]=Te&&""!==Te?Te:null),Te&&Ce.parentControlId.length>0||0===Ce.parentControlId.length?this.getControlsData.emit({searchText:ge,controlDef:Ce,parentValue:Te}):Ce.parentControlId.length>0&&(this.controlSelectListDs[Ce.controlId]&&(this.controlSelectListDs[Ce.controlId].data=[],this.formControls.forEach(fe=>{fe.controls=fe.controls.map(function(xe){return xe.controlId==Ce.controlId&&(xe.value=null),xe})}),this.formValue.find(fe=>fe.controlId==Ce.controlId).value=""),this.controlSelectListDs=JSON.parse(JSON.stringify(this.controlSelectListDs)))}fetchChildControlData(ge){this.formValue.filter(Te=>Te.parentControlId.includes(ge.controlId)).forEach(Te=>{this.fetchControlData("",Te)})}addZenSelect(ge){ge&&this.zenSelects.push(ge)}onParameterChange(ge,Ce){if(ge){let Te,De,fe,Oe,Le,Gt,xe=[];this.formValue.map(Ut=>{if(Ut.controlId===Ce.controlId)switch(Te=null,De=null,fe=null,xe=[],Gt=Ce.dataType?Ce.dataType.toLowerCase():"",Gt){case"date":"between"===Ce.operator?(Te=Ut.value||",",De=Ce.name.includes("From")?`${ge.targetElement.value},${Te.split(",")[1]}`:`${Te.split(",")[0]},${ge.targetElement.value}`):(Te=Ut.value,De=ge.targetElement.value),this.setValueChanged(Te,De,Gt),Ut.value=De;break;case"datetime":case"time":Te=Ut.value,De=this.utilityService.toJsDate(ge,"ISOString"),this.setValueChanged(Te,De,Gt),Ut.value=De;break;case"multiselect":ge.forEach(An=>{xe.push(An.id)}),Te=Ut.value,De=xe.join(","),this.setValueChanged(Te,De,Gt),Ut.value=De,this.fetchChildControlData(Ut);break;case"select":Te=Ut.value,De=ge[0]?ge[0].id:"",this.setValueChanged(Te,De,Gt),Ut.value=De,this.fetchChildControlData(Ut);break;case"number":Le=""!==Ce.mask?ge.target.value.trim().replace(/\D+/g,""):ge.target.value.trim(),Oe=isNaN(""===Le?"string value":Le),fe=Oe?"":Number(Le),"between"===Ce.operator?(Te=Ut.value||",",De=Ce.name.includes("From")?`${fe},${Te.split(",")[1]}`:`${Te.split(",")[0]},${fe}`):(Te=Ut.value,De=fe),this.setValueChanged(Te,De,Gt),Ut.value=De;break;case"decimal":case"money":Le=""!==Ce.mask?ge.target.value.trim().replace(/\D+/g,""):ge.target.value.trim(),Oe=isNaN(""===Le?"string value":Le),fe=Oe?"":parseFloat(Le),"between"===Ce.operator?(Te=Ut.value?Ut.value:",",De=Ce.name.includes("From")?`${fe},${Te.split(",")[1]}`:`${Te.split(",")[0]},${fe}`):(Te=Ut.value,De=fe),this.setValueChanged(Te,De,Gt),Ut.value=De;break;case"string":case"text":Te=Ut.value,De=ge.target.value.trim().toString(),this.setValueChanged(Te,De,Gt),Ut.value=De}}),this.submitOnValueChange&&this.valueChanged&&this.submitBtn.nativeElement.click()}else this.utilityService.callSnackBar("filterValueNotFound","warning")}setValueChanged(ge,Ce,Te){this.valueChanged=!1,("multiselect"===Te&&(ge&&ge.length)!==(Ce&&Ce.length)||ge!==Ce)&&(this.valueChanged=!0)}onFormSubmit(ge){let Te,De,Ce=!0;for(const fe of this.formValue){if(De=fe.dataType?fe.dataType.toLowerCase():"",["",null].includes(fe.value)&&fe.required){this.utilityService.callSnackBar("selectAllFilters","warning"),Ce=!1;break}if(["money","number","decimal"].includes(De)){if("between"===fe.operator&&(Te=""===fe.value||fe.value?null:fe.value.split(","),fe.required)){if(Te&&1===Te.length&&fe.required){this.utilityService.callSnackBar("invalidFilterValue","warning"),Ce=!1;break}if(["money","decimal"].includes(De)&&parseFloat(Te[0])>parseFloat(Te[1])&&fe.required){this.utilityService.callSnackBar("fromGreaterThanTo","warning"),Ce=!1;break}if("number"===De&&Number(Te[0])>Number(Te[1])&&fe.required){this.utilityService.callSnackBar("fromGreaterThanTo","warning"),Ce=!1;break}}}else if("date"===De){if("between"===fe.operator){if(Te=""===fe.value||fe.value?null:fe.value.split(","),fe.required){if(Te&&1===Te.length&&!this.utilityService.isValidDate(Te[0])&&!this.utilityService.isValidDate(Te[1])){this.utilityService.callSnackBar("invalidDateFilter","warning"),Ce=!1;break}if(Te&&1===Te.length&&new Date(Te[0])>new Date(Te[1])){this.utilityService.callSnackBar("fromDateGreaterThanTo","warning"),Ce=!1;break}}}else if(!this.utilityService.isValidDate(fe.value)&&fe.required){this.utilityService.callSnackBar("invalidDateFilter","warning"),Ce=!1;break}}else Ce=!0}this.onSubmit.emit({value:this.formValue,controls:this.controlsList,isValid:Ce})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(Ce){return new(Ce||ne)(e.Y36(a.t),e.Y36(l.sK),e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:ne,selectors:[["zen-dynamic-form"]],viewQuery:function(Ce,Te){if(1&Ce&&e.Gf(w,5),2&Ce){let De;e.iGM(De=e.CRH())&&(Te.submitBtn=De.first)}},inputs:{setControlsData:"setControlsData",controls:"controls",resetForm:"resetForm",submitForm:"submitForm",submitOnLoad:"submitOnLoad",noControlsLabel:"noControlsLabel",submitOnValueChange:"submitOnValueChange",formClass:"formClass",controlsPerRow:"controlsPerRow"},outputs:{onSubmit:"onSubmit",onReset:"onReset",getControlsData:"getControlsData",controlsLoaded:"controlsLoaded"},decls:5,vars:1,consts:[["name","reportParameterForm",3,"ngClass","ngSubmit",4,"ngIf"],["statusHeaderTpl",""],["statusCellTpl",""],["name","reportParameterForm",3,"ngClass","ngSubmit"],["formElement","","reportParameterForm","ngForm"],["class","no-parameter","fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","10px","class","w-100-p",4,"ngIf"],["fxLayout","row wrap","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","10px","class","w-100-p",4,"ngFor","ngForOf"],["fxHide","","type","submit"],["sbtn",""],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","10px",1,"w-100-p"],["fxLayout","row wrap","fxLayout.xs","column","fxLayoutAlign","center","fxLayoutGap","10px",1,"w-100-p"],[4,"ngFor","ngForOf"],["fxFlex","",3,"ngClass",4,"ngIf"],["valueField","id","fxFlex","",3,"placeholder","ngModel","matTooltip","ngClass","config","virtualScroll","columnTemplates","panelClass","multiple","hiddenColumns","ngModelOptions","nameField","ngModelChange","zenSelectInit","fetch","blurEvent",4,"ngIf"],["fxFlex","",3,"ngClass"],["matInput","",3,"type","placeholder","matTooltip","name","mask","value","required","change"],["matPrefix","",4,"ngIf"],["matSuffix","",4,"ngIf"],["matPrefix",""],["matSuffix",""],["valueField","id","fxFlex","",3,"placeholder","ngModel","matTooltip","ngClass","config","virtualScroll","columnTemplates","panelClass","multiple","hiddenColumns","ngModelOptions","nameField","ngModelChange","zenSelectInit","fetch","blurEvent"],["matInput","",3,"placeholder","matTooltip","value","name","matDatepicker","required","dateChange"],["matSuffix","",3,"for"],["datePicker",""],[1,"mt-16","w-100-p",3,"placeholder","matTooltip","ngModel","name","format","required","ngModelChange","valueChange"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxLayout","row","fxLayoutAlign","start center",1,"label","ng-star-inserted"],[1,"label-color"],[1,"w-12","h-12","accent-bg","mr-4",2,"border-radius","50%"],[1,"font-weight-600"],[1,"w-12","h-12","yellow-800-bg","mr-4",2,"border-radius","50%"],[1,"w-12","h-12","red-500-bg","mr-4",2,"border-radius","50%"]],template:function(Ce,Te){1&Ce&&(e.YNc(0,Q,7,3,"form",0),e.YNc(1,re,2,3,"ng-template",null,1,e.W1O),e.YNc(3,q,4,5,"ng-template",null,2,e.W1O)),2&Ce&&e.Q6J("ngIf",Te.formControls)},dependencies:[u.mk,u.sg,u.O5,u.RF,u.n9,u.ED,n._Y,n.JJ,n.JL,n.Q7,n.On,n.F,d.xw,d.SQ,d.Wh,d.yH,s.b8,s.oO,A.JX,A.eQ,_.v_,_.g4,_.nX,C.i,R.tZ,x.Kd,f.k0,k.Mq,k.hl,k.nW,l.X$],styles:["zen-dynamic-form[_ngcontent-%COMP%]   .no-parameter[_ngcontent-%COMP%]{color:#8a8790;font-size:22px;font-weight:500;text-align:center}zen-dynamic-form[_ngcontent-%COMP%]   .zen-loading-backcontent-cover[_ngcontent-%COMP%]{position:absolute;top:15px;width:100%;height:100%;background:#ffffff;z-index:160}"]})}return ne})()},11812:(he,y,i)=>{"use strict";i.d(y,{J:()=>w});var e=i(20180),n=i(98148),o=i(89515),a=i(54885),l=i(12430),u=i(53790),d=i(94505),s=i(21242),A=i(30617),_=i(84187),C=i(30481),R=i(42400),x=i(38034),f=i(48424),k=i(65879);let w=(()=>{class g{static#e=this.\u0275fac=function(E){return new(E||g)};static#t=this.\u0275mod=k.oAB({type:g});static#n=this.\u0275inj=k.cJS({imports:[e.L,n.VM,o.aw,d.yu,s.Xo,A.Ps,a.If,a.nf,_.wp,l.L,f.uw,u.u,C.AA,R.x4,x.FA]})}return g})()},7623:(he,y,i)=>{"use strict";i.d(y,{O:()=>w});var e=i(65879),n=i(59773),o=i(78645),a=i(710),l=i(74187),u=i(64740),d=i(45463),s=i(29486),A=i(66878),_=i(96814),C=i(56223),R=i(89515);const x=["fileInput"];function f(g,M){if(1&g&&(e.TgZ(0,"div",7),e._UZ(1,"img",8),e.qZA()),2&g){const p=M.$implicit;e.xp6(1),e.Q6J("src",p,e.LSH)("alt",p.name)}}function k(g,M){if(1&g&&(e.TgZ(0,"div",5),e.YNc(1,f,2,2,"div",6),e.qZA()),2&g){const p=e.oxw();e.xp6(1),e.Q6J("ngForOf",p.fileInfo)}}let w=(()=>{class g{set allowedExtensionsVal(p){p&&(this.uploadRestrictions.allowedExtensions=p)}set minFileSizeVal(p){p&&(this.uploadRestrictions.minFileSize=p)}set parserTypeVal(p){p&&this.cs.getResumeParser(p).pipe((0,n.R)(this._unsubscribeAll)).subscribe(E=>{E&&(this.parserName=E.parserName)})}constructor(p,E,b,I,L,D,F,P){this.cs=p,this.us=E,this.cloudmersiveScannerService=b,this.uploadService=I,this.documentService=L,this.el=D,this.dialog=F,this.cdr=P,this.showScannerBar=!1,this.chooseLabel="Upload",this.uploadSelectedFiles="Upload",this.clearSelectedFiles="Clear",this.skipColumcustomUploadnFilter=!0,this.showDropZone=!1,this.type="file",this.autoUpload=!1,this.disabled=!1,this.displayValidationMessage=!1,this.instantDocumentScan=!0,this.required=!1,this.isResumeUpload=!1,this.showUploadButton=!0,this.showCancelButton=!1,this.isMultiple=!1,this.showRegistrationResumeInstruction=!0,this.showSupportedFiles=!1,this.allowScanner=!0,this.showPreview=!1,this.showFileList=!0,this.onChangeChooseFileFn=new e.vpe,this.onUploadFileFn=new e.vpe,this.onFileRemoveFn=new e.vpe,this.onFileSelectFn=new e.vpe,this.showFileSelect=!0,this.preventClose=!1,this.showValidationMsg=!0,this.events=[],this.imagePreviews=[],this.uploadRestrictions={minFileSize:10,allowedExtensions:[]},this._unsubscribeAll=new o.x}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}ngOnInit(){this.cloudmersiveScannerService.fileResultBehavior.pipe((0,n.R)(this._unsubscribeAll)).subscribe(p=>{if(p&&this._files?.length){p.filter(I=>!I.cleanResult).forEach(I=>{p.findIndex(D=>D?.file?.name===I.name&&!D.cleanResult)});let b=(p?.filter(I=>I.cleanResult)).map(I=>I.file)?.map(I=>I?.name);this._files=[...this._files.filter(I=>b.includes(I.name))]}})}remove(p){this.onFileRemoveFn.emit()}select(p){let E=!1;this.validationMessage="",this.displayValidationMessage=!1;const I=[];let L;if(this.fileInfo=[],p.files.forEach(D=>{if(I.push(D.name),D.validationErrors)E=!0;else{const F=new FileReader;let P=this;F.onload=function(O){P.fileInfo.push(F.result)},F.readAsDataURL(D.rawFile)}}),L=p.files.map(D=>D.rawFile),this.instantDocumentScan){if(this.uploadRestrictions?.allowedExtensions?.length){if(L.map(F=>F.name.split(".").pop()).some(F=>!this.uploadRestrictions.allowedExtensions.some(P=>P===F)))return;L.forEach((F,P)=>{F.size<this.uploadRestrictions.minFileSize&&L.splice(P,1)})}if(0===L.length)return;this.documentService.openScannerDialog(L,this.parserName).then(D=>{this.onUploadFileFn.emit(D)})}else setTimeout(()=>{p?.files?.length&&this.onUploadFileFn.emit(L)},1e3)}static#e=this.\u0275fac=function(E){return new(E||g)(e.Y36(a.v),e.Y36(l.t),e.Y36(u.F),e.Y36(d.C7),e.Y36(s.Z),e.Y36(e.SBq),e.Y36(A.on),e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:g,selectors:[["zen-file-upload"]],viewQuery:function(E,b){if(1&E&&e.Gf(x,5),2&E){let I;e.iGM(I=e.CRH())&&(b.fileInput=I.first)}},inputs:{showScannerBar:"showScannerBar",chooseLabel:"chooseLabel",uploadSelectedFiles:"uploadSelectedFiles",clearSelectedFiles:"clearSelectedFiles",skipColumcustomUploadnFilter:"skipColumcustomUploadnFilter",showDropZone:"showDropZone",type:"type",autoUpload:"autoUpload",disabled:"disabled",displayValidationMessage:"displayValidationMessage",instantDocumentScan:"instantDocumentScan",supportedFiles:"supportedFiles",fileUploadPreMessage:"fileUploadPreMessage",required:"required",isResumeUpload:"isResumeUpload",showUploadButton:"showUploadButton",showCancelButton:"showCancelButton",isMultiple:"isMultiple",showRegistrationResumeInstruction:"showRegistrationResumeInstruction",showSupportedFiles:"showSupportedFiles",allowedExtensions:"allowedExtensions",allowScanner:"allowScanner",showPreview:"showPreview",showFileList:"showFileList",minFileSize:"minFileSize",parserType:"parserType",allowedExtensionsVal:["allowedExtensions","allowedExtensionsVal"],minFileSizeVal:["minFileSize","minFileSizeVal"],parserTypeVal:["parserType","parserTypeVal"]},outputs:{onChangeChooseFileFn:"onChangeChooseFileFn",onUploadFileFn:"onUploadFileFn",onFileRemoveFn:"onFileRemoveFn",onFileSelectFn:"onFileSelectFn"},decls:6,vars:12,consts:[[3,"ngModel","restrictions","multiple","showFileList","disabled","ngModelChange","select","remove"],["fileInput",""],[3,"dropFilesHere"],[3,"select","uploadSelectedFiles","clearSelectedFiles"],["class","images-wrapper",4,"ngIf"],[1,"images-wrapper"],["class","file-image",4,"ngFor","ngForOf"],[1,"file-image"],[3,"src","alt"]],template:function(E,b){1&E&&(e.TgZ(0,"kendo-fileselect",0,1),e.NdJ("ngModelChange",function(L){return b._files=L})("select",function(L){return b.select(L)})("remove",function(L){return b.remove(L)}),e._UZ(2,"kendo-fileselect-messages",2),e.ALo(3,"translate"),e._UZ(4,"kendo-upload-messages",3),e.qZA(),e.YNc(5,k,2,1,"div",4)),2&E&&(e.Q6J("ngModel",b._files)("restrictions",b.uploadRestrictions)("multiple",b.isMultiple)("showFileList",b.showFileList)("disabled",b.disabled),e.xp6(2),e.Q6J("dropFilesHere",e.lcZ(3,10,"selectFile")),e.xp6(2),e.Q6J("select",b.chooseLabel)("uploadSelectedFiles",b.uploadSelectedFiles)("clearSelectedFiles",b.clearSelectedFiles),e.xp6(1),e.Q6J("ngIf",b.showPreview))},dependencies:[_.sg,_.O5,C.JJ,C.On,d.Tv,d.At,R.X$],styles:['[_nghost-%COMP%]{width:100%}[_nghost-%COMP%]   kendo-fileselect[_ngcontent-%COMP%]  .k-dropzone .k-dropzone-hint{text-align:left;padding-left:12px}[_nghost-%COMP%]   kendo-fileselect[_ngcontent-%COMP%]  .k-dropzone .k-button-solid-base{color:#fff;background:#007ad9;border:1px solid #007ad9;padding:.2rem 1rem;font-size:1rem;cursor:pointer}[_nghost-%COMP%]   kendo-fileselect[_ngcontent-%COMP%]  .k-dropzone .k-button-solid-base:hover{background:#0d86e3}[_nghost-%COMP%]   kendo-fileselect[_ngcontent-%COMP%]  .k-dropzone .k-button-solid-base span{display:flex;align-items:center}[_nghost-%COMP%]   kendo-fileselect[_ngcontent-%COMP%]  .k-dropzone .k-button-solid-base span:before{content:"+";padding-right:8px;font-size:20px}[_nghost-%COMP%]   kendo-fileselect[_ngcontent-%COMP%]  .k-upload-files .k-file.k-file-invalid .k-file-single .k-file-validation-message{color:red}']})}return g})()},20075:(he,y,i)=>{"use strict";i.d(y,{M:()=>x});var e=i(89515),n=i(30617),o=i(48134),a=i(94505),l=i(20180),u=i(30481),d=i(64740),s=i(65879);let A=(()=>{class f{static#e=this.\u0275fac=function(g){return new(g||f)};static#t=this.\u0275mod=s.oAB({type:f});static#n=this.\u0275inj=s.cJS({providers:[d.F],imports:[n.Ps,e.aw,u.AA,o.jc,a.yu,l.L]})}return f})();var _=i(66878),C=i(26177),R=i(45463);let x=(()=>{class f{static#e=this.\u0275fac=function(g){return new(g||f)};static#t=this.\u0275mod=s.oAB({type:f});static#n=this.\u0275inj=s.cJS({providers:[R.C7],imports:[e.aw,u.AA,A,_.yj,l.L,C.yD,n.Ps,R.zt]})}return f})()},59834:(he,y,i)=>{"use strict";i.d(y,{H:()=>Sl});var e=i(15861),n=i(65879),o=i(94748),a=i(8841),l=i(53342),u=i(54357),d=i(7110),s=i(10509),A=i(22664),_=i(78645),C=i(9315),R=i(22096),x=i(59773),f=i(99397),k=i(37398),w=i(23605),g=i(6990),M=i(5892),p=i(28011),E=i(710),b=i(74187),I=i(89515),L=i(62232),D=i(96814),F=i(56223),P=i(83814),O=i(27509),U=i(3461),V=i(30617),K=i(45754),X=i(16672),me=i(78250),J=i(51838),Q=i(30481),re=i(94505),de=i(84187),te=i(48424),j=i(24678),H=i(38034),z=i(42400),q=i(48134),se=i(34423),ne=i(82012),_e=i(80889),ge=i(82789),Ce=i(72350),Te=i(32598),De=i(10922),fe=i(83620);let xe=(()=>{class Rn{constructor(){this.debounceClick=new n.vpe,this.clicks=new _.x,this.clicks.pipe((0,fe.b)(300)).subscribe(je=>{this.debounceClick.emit(je)})}handleClick(je){je.preventDefault(),je.stopPropagation(),this.clicks.next(je)}static#e=this.\u0275fac=function(Mn){return new(Mn||Rn)};static#t=this.\u0275dir=n.lG2({type:Rn,selectors:[["","debounceClick",""]],hostBindings:function(Mn,Gi){1&Mn&&n.NdJ("click",function(is){return Gi.handleClick(is)})},outputs:{debounceClick:"debounceClick"}})}return Rn})();var Oe=i(32202),Le=i(42094);const Gt=["grid"],Ut=["panel"],An=["editorZenSel"],$n=["gridColumnActionMenuTrigger"],xn=function(){return{delay:"300ms",scale:"0.2"}},mt=function(Rn){return{value:"*",params:Rn}};function ut(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"button",32),n.NdJ("click",function(Gi){n.CHM(je);const nr=n.oxw(2);return n.KtG(nr.showControls(Gi))}),n.TgZ(1,"mat-icon",33),n._uU(2),n.qZA()()}if(2&Rn){const je=n.oxw(2);n.Q6J("@animate",n.VKq(3,mt,n.DdM(2,xn))),n.xp6(2),n.Oqu(je.zenPanelArrow)}}const Wt=function(Rn){return{active:Rn}};function dn(Rn,Uo){if(1&Rn){const je=n.EpF();n.ynx(0),n.TgZ(1,"button",34),n.NdJ("click",function(){n.CHM(je);const Gi=n.oxw(2);return n.KtG(Gi.changeView("grid"))}),n.ALo(2,"translate"),n.TgZ(3,"mat-icon",35),n._uU(4,"view_list "),n.qZA()(),n.BQk()}if(2&Rn){const je=n.oxw(2);n.xp6(1),n.s9C("matTooltip",n.lcZ(2,2,"gridView")),n.xp6(2),n.Q6J("ngClass",n.VKq(4,Wt,"grid"==je.displayMode))}}function sn(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"button",36),n.NdJ("click",function(){n.CHM(je);const Gi=n.oxw(2);return n.KtG(Gi.changeView("card"))}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",37),n._uU(3,"apps"),n.qZA()()}if(2&Rn){const je=n.oxw(2);n.s9C("matTooltip",n.lcZ(1,2,"cardView")),n.xp6(2),n.Q6J("ngClass",n.VKq(4,Wt,"card"==je.displayMode))}}function fn(Rn,Uo){1&Rn&&(n.TgZ(0,"span",42),n._uU(1,"Groupbar On"),n.qZA())}function yi(Rn,Uo){1&Rn&&(n.TgZ(0,"span",43),n._uU(1,"Groupbar Off"),n.qZA())}function nn(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"mat-slide-toggle",39),n.NdJ("ngModelChange",function(Gi){n.CHM(je);const nr=n.oxw(3);return n.KtG(nr.groupingToggleValue=Gi)})("change",function(Gi){n.CHM(je);const nr=n.oxw(3);return n.KtG(nr.toggleGrouping(Gi))}),n.YNc(1,fn,2,0,"span",40),n.YNc(2,yi,2,0,"span",41),n.qZA()}if(2&Rn){const je=n.oxw(3);n.Q6J("ngModel",je.groupingToggleValue),n.xp6(1),n.Q6J("ngIf",je.groupingToggleValue),n.xp6(1),n.Q6J("ngIf",!je.groupingToggleValue)}}function Mi(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",27),n.YNc(1,nn,3,3,"mat-slide-toggle",38),n.qZA()),2&Rn){const je=n.oxw(2);n.xp6(1),n.Q6J("ngIf",!je.hideGroupbarToggle)}}function mi(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"div",27)(1,"button",44),n.NdJ("click",function(Gi){n.CHM(je);const nr=n.oxw(2);return n.KtG(nr.exportToExcelCheck(Gi))}),n.ALo(2,"translate"),n._UZ(3,"img",45),n.qZA()()}2&Rn&&(n.xp6(1),n.s9C("matTooltip",n.lcZ(2,1,"saveAsExcel")))}function Eo(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"button",46,47),n.NdJ("mouseenter",function(){n.CHM(je);const Gi=n.oxw(2);return Gi._matMenuClosed=!1,n.KtG(Gi.gridColumnActionMenuTriggerRef.openMenu())})("click",function(Gi){return Gi.stopPropagation()}),n.TgZ(2,"mat-icon",48),n._uU(3,"view_column"),n.qZA()()}if(2&Rn){n.oxw();const je=n.MAs(13);n.Q6J("matMenuTriggerFor",je)}}const Ko=function(){return[]};function xo(Rn,Uo){if(1&Rn){const je=n.EpF();n.ynx(0),n.TgZ(1,"tr",59)(2,"td",60)(3,"span",61)(4,"mat-icon"),n._uU(5,"drag_indicator"),n.qZA()()(),n.TgZ(6,"td",62),n._uU(7),n.ALo(8,"translate"),n.qZA(),n.TgZ(9,"td",63)(10,"mat-checkbox",64),n.NdJ("change",function(Gi){const is=n.CHM(je).$implicit,ta=n.oxw(3);return n.KtG(ta.hiddenColumnChanged(Gi,is))}),n.qZA()()(),n.BQk()}if(2&Rn){const je=Uo.$implicit,Mn=n.oxw(3);n.xp6(1),n.ekj("nonChooserColumn",(Mn.firstColumns||n.DdM(6,Ko)).includes(je.name.toLowerCase())),n.xp6(6),n.Oqu(n.lcZ(8,4,je.display?je.display:je.name)),n.xp6(3),n.Q6J("checked",!(Mn.hiddenColumns||n.DdM(7,Ko)).includes(je.name))}}const Bn=function(Rn){return{"drag-boundry":Rn}};function Xt(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"div",49),n.NdJ("click",function(Gi){return Gi.stopPropagation()}),n.TgZ(1,"div",50)(2,"table",51)(3,"thead")(4,"tr",52),n._UZ(5,"th",53),n.TgZ(6,"th",53),n._uU(7),n.ALo(8,"translate"),n.qZA(),n.TgZ(9,"th",53),n._uU(10),n.ALo(11,"translate"),n.qZA()()(),n.TgZ(12,"tbody",54),n.NdJ("cdkDropListDropped",function(Gi){n.CHM(je);const nr=n.oxw(2);return n.KtG(nr.orderColumns(Gi,"master"))}),n.YNc(13,xo,11,8,"ng-container",55),n.qZA()()(),n.TgZ(14,"div",56)(15,"button",57),n.NdJ("click",function(){n.CHM(je);const Gi=n.oxw(2);return n.KtG(Gi.resetColumnOptions())}),n._uU(16),n.ALo(17,"translate"),n.qZA(),n.TgZ(18,"button",58),n.NdJ("click",function(){n.CHM(je);const Gi=n.oxw(2);return n.KtG(Gi.applyColumnOptions())}),n._uU(19),n.ALo(20,"translate"),n.qZA()()()}if(2&Rn){const je=n.oxw(2);n.xp6(7),n.Oqu(n.lcZ(8,7,"column")),n.xp6(3),n.Oqu(n.lcZ(11,9,"visible")),n.xp6(2),n.Q6J("ngClass",n.VKq(15,Bn,je.columns&&je.columns.length))("cdkDropListLockAxis","y"),n.xp6(1),n.Q6J("ngForOf",je.tempOrderColumns),n.xp6(3),n.Oqu(n.lcZ(17,11,"default")),n.xp6(3),n.Oqu(n.lcZ(20,13,"apply"))}}const Ji=function(Rn,Uo){return{"grid-view-control":Rn,"grid-view-control-open":Uo}};function En(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",19),n.YNc(1,ut,3,5,"button",20),n.TgZ(2,"div",21)(3,"div",22)(4,"div",23),n.YNc(5,dn,5,6,"ng-container",8),n.YNc(6,sn,4,6,"button",24),n.qZA(),n.TgZ(7,"div",25),n.YNc(8,Mi,2,1,"div",26),n.YNc(9,mi,4,3,"div",26),n.TgZ(10,"div",27),n.YNc(11,Eo,4,1,"button",28),n.TgZ(12,"mat-menu",29,30),n.YNc(14,Xt,21,17,"div",31),n.qZA()()()()()()),2&Rn){const je=n.oxw();n.xp6(2),n.Q6J("ngClass",n.WLB(8,Ji,je.displayCard,!je.displayCard)),n.xp6(3),n.Q6J("ngIf",je.config.gridViewOnly||!je.config.cardViewOnly&&!je.config.gridViewOnly),n.xp6(1),n.Q6J("ngIf",!je.config.cardViewOnly&&!je.config.gridViewOnly),n.xp6(2),n.Q6J("ngIf",je.showGroupingToggleDiv&&(je.config.gridViewOnly||"grid"==je.displayMode||"compactGrid"==je.displayMode)),n.xp6(1),n.Q6J("ngIf",je.showExcelExport),n.xp6(2),n.Q6J("ngIf",je.columns&&je.config.showColumnActionsMenu),n.xp6(1),n.Q6J("overlapTrigger",!1),n.xp6(2),n.Q6J("ngIf",!je._matMenuClosed)}}function un(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"mat-checkbox",68),n.NdJ("change",function(Gi){n.CHM(je);const nr=n.oxw(2),is=nr.value,ta=nr.cardColumns.name,dl=n.oxw(2);return n.KtG(dl.groupHeaderCheckBoxChangeFn(Gi,is,ta))}),n.qZA()}if(2&Rn){const je=n.oxw(2).value,Mn=n.oxw(2);n.Q6J("id",je)("name",je)("checked",Mn.groupHeaderChk[0][je.charAt(0).toLowerCase()+je.slice(1).split(" ").join("")+"Checked"])("indeterminate",Mn.groupHeaderChk[0][je.charAt(0).toLowerCase()+je.slice(1).split(" ").join("")+"Indeterminate"])}}function Ki(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div"),n.YNc(1,un,1,4,"mat-checkbox",67),n.qZA()),2&Rn){const je=n.oxw().value;n.xp6(1),n.Q6J("ngIf",je)}}function Fn(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"toString"),n.qZA()),2&Rn){const je=n.oxw().value;n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,je)))}}function oi(Rn,Uo){if(1&Rn&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn){const je=n.oxw().cardColumns.name;n.xp6(1),n.hij("\xa0\xa0",n.lcZ(2,1,je)+": ","")}}function It(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"toString"),n.qZA()),2&Rn){const je=n.oxw().value;n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,je)))}}function Bt(Rn,Uo){if(1&Rn&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn){const je=n.oxw().$implicit;n.xp6(1),n.Oqu(", "+n.lcZ(2,1,je)+" : ")}}function xt(Rn,Uo){if(1&Rn&&(n.ynx(0),n.YNc(1,Bt,3,3,"span",8),n._uU(2,"\xa0"),n.TgZ(3,"strong"),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"toString"),n.qZA(),n.BQk()),2&Rn){const je=Uo.$implicit,Mn=n.oxw().group;n.xp6(1),n.Q6J("ngIf",Mn.items[0][je]),n.xp6(3),n.Oqu(n.lcZ(5,2,n.lcZ(6,4,Mn.items[0][je])))}}function wt(Rn,Uo){if(1&Rn&&(n.YNc(0,Ki,2,1,"div",8),n.YNc(1,Fn,4,5,"strong",8),n.YNc(2,oi,3,3,"span",8),n._uU(3,"\xa0"),n.YNc(4,It,4,5,"strong",8),n.YNc(5,xt,7,6,"ng-container",55)),2&Rn){const je=Uo.value,Mn=n.oxw(2);n.Q6J("ngIf",Mn.showGroupHeaderCheckBox),n.xp6(1),n.Q6J("ngIf",Mn.groupingTemplate&&Mn.groupingTemplate.showValueOnly),n.xp6(1),n.Q6J("ngIf",!Mn.groupingTemplate&&je),n.xp6(2),n.Q6J("ngIf",!Mn.groupingTemplate&&je),n.xp6(1),n.Q6J("ngForOf",Mn.groupLabels)}}function Mt(Rn,Uo){1&Rn&&n.GkF(0)}const pt=function(Rn,Uo){return{dataItem:Rn,cardEntityId:Uo}},Lt=function(Rn){return{localSk:Rn}};function tt(Rn,Uo){if(1&Rn&&n.YNc(0,Mt,1,0,"ng-container",70),2&Rn){const je=Uo.$implicit,Mn=n.oxw(3);n.Q6J("ngTemplateOutlet",Mn.config.customCardView)("ngTemplateOutletContext",n.VKq(5,Lt,n.WLB(2,pt,je,Mn.cardEntityId)))}}function Ne(Rn,Uo){1&Rn&&n.YNc(0,tt,1,7,"ng-template",69)}function vt(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"span",77),n.NdJ("debounceClick",function(){n.CHM(je);const Gi=n.oxw(4).$implicit,nr=n.oxw(3);return n.KtG(nr.navigationCellClick(Gi))}),n.TgZ(1,"b",78),n.ALo(2,"zenLabelMask"),n.ALo(3,"zenLabelMask"),n._uU(4),n.ALo(5,"zenLabelMask"),n.qZA()()}if(2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw().$implicit,Gi=n.oxw(3);n.xp6(1),n.MGl("matTooltip"," ",n.Dn7(3,7,Mn[je.name],je.name+"Masking",Mn.countryCode),""),n.Q6J("innerHTML",Gi.transform(n.Dn7(2,3,Mn[je.name],je.name+"Masking",Mn.countryCode),je.type),n.oJD),n.xp6(3),n.hij(" ",n.Dn7(5,11,Mn[je.name],je.name+"Masking",Mn.countryCode)," ")}}function ln(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"span",77),n.NdJ("debounceClick",function(){n.CHM(je);const Gi=n.oxw(4).$implicit,nr=n.oxw(3);return n.KtG(nr.navigationCellClick(Gi))}),n.TgZ(1,"b",78),n.ALo(2,"zenLabelMask"),n.ALo(3,"zenLabelMask"),n._uU(4),n.ALo(5,"zenLabelMask"),n.qZA()()}if(2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw().$implicit,Gi=n.oxw(3);n.xp6(1),n.MGl("matTooltip"," ",n.xi3(3,6,Mn[je.name],Mn[je.name+"Masking"]),""),n.Q6J("innerHTML",Gi.transform(n.xi3(2,3,Mn[je.name],Mn[je.name+"Masking"]),je.type),n.oJD),n.xp6(3),n.hij(" ",n.Dn7(5,9,Mn[je.name],Mn[je.name+"Masking"],Mn.countryCode)," ")}}function jn(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"span",77),n.NdJ("debounceClick",function(){n.CHM(je);const Gi=n.oxw(5).$implicit,nr=n.oxw(3);return n.KtG(nr.navigationCellClick(Gi))}),n.TgZ(1,"b",78),n.ALo(2,"zenLabelMask"),n.ALo(3,"zenLabelMask"),n._uU(4),n.ALo(5,"zenLabelMask"),n.qZA()()}if(2&Rn){const je=n.oxw(4).$implicit,Mn=n.oxw().$implicit,Gi=n.oxw(3);n.xp6(1),n.MGl("matTooltip"," ",n.Dn7(3,7,Mn[je.name],je.maskType,Mn.countryCode),""),n.Q6J("innerHTML",Gi.transform(n.Dn7(2,3,Mn[je.name],je.maskType,Mn.countryCode),je.type),n.oJD),n.xp6(3),n.hij(" ",n.Dn7(5,11,Mn[je.name],je.maskType,Mn.countryCode)," ")}}function Pi(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"span",77),n.NdJ("debounceClick",function(){n.CHM(je);const Gi=n.oxw(5).$implicit,nr=n.oxw(3);return n.KtG(nr.navigationCellClick(Gi))}),n._UZ(1,"b",78),n.qZA()}if(2&Rn){const je=n.oxw(4).$implicit,Mn=n.oxw().$implicit,Gi=n.oxw(3);n.xp6(1),n.s9C("matTooltip",Mn[je.name]),n.Q6J("innerHTML",Gi.transform(Mn[je.name],je.type),n.oJD)}}function go(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div"),n.YNc(1,jn,6,15,"span",79),n.YNc(2,Pi,2,2,"ng-template",null,80,n.W1O),n.qZA()),2&Rn){const je=n.MAs(3),Mn=n.oxw(3).$implicit;n.xp6(1),n.Q6J("ngIf",""!=Mn.maskType)("ngIfElse",je)}}function si(Rn,Uo){if(1&Rn&&(n.ynx(0,74),n.YNc(1,vt,6,15,"span",75),n.YNc(2,ln,6,13,"span",75),n.YNc(3,go,4,2,"div",76),n.BQk()),2&Rn){const je=n.oxw(2).$implicit;n.Q6J("ngSwitch",je.maskType),n.xp6(1),n.Q6J("ngSwitchCase","all"),n.xp6(1),n.Q6J("ngSwitchCase","other")}}function ot(Rn,Uo){if(1&Rn){const je=n.EpF();n.ynx(0),n.TgZ(1,"span",77),n.NdJ("debounceClick",function(){n.CHM(je);const Gi=n.oxw(3).$implicit,nr=n.oxw(3);return n.KtG(nr.navigationCellClick(Gi))}),n._UZ(2,"b",78),n.qZA(),n.BQk()}if(2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw().$implicit,Gi=n.oxw(3);n.xp6(2),n.s9C("matTooltip",Mn[je.name]),n.Q6J("innerHTML",Gi.transform(Mn[je.name],je.type),n.oJD)}}function pn(Rn,Uo){if(1&Rn&&(n.TgZ(0,"ul")(1,"li",72),n.ALo(2,"translate"),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"li"),n.YNc(6,si,4,3,"ng-container",73),n.YNc(7,ot,3,2,"ng-container",8),n.qZA()()),2&Rn){const je=n.oxw().$implicit;n.xp6(1),n.s9C("matTooltip",n.lcZ(2,4,je.name)),n.xp6(2),n.Oqu(n.lcZ(4,6,je.name)),n.xp6(3),n.Q6J("ngIf",je.hasOwnProperty("maskType")),n.xp6(1),n.Q6J("ngIf",!je.hasOwnProperty("maskType"))}}function _i(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"ul")(1,"li")(2,"button",81)(3,"mat-icon",82),n.NdJ("debounceClick",function(){n.CHM(je);const Gi=n.oxw(2).$implicit,nr=n.oxw(3);return n.KtG(nr.openBar(Gi))}),n._uU(4,"visibility"),n.qZA()()()()}}function wi(Rn,Uo){1&Rn&&n.GkF(0)}const hi=function(Rn,Uo){return{column:Rn,dataItem:Uo}};function zn(Rn,Uo){if(1&Rn&&(n.TgZ(0,"ul")(1,"li",72),n.ALo(2,"translate"),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"li",83),n.YNc(6,wi,1,0,"ng-container",70),n.qZA()()),2&Rn){const je=n.oxw().$implicit,Mn=n.oxw().$implicit;n.oxw(3);const Gi=n.MAs(23);n.xp6(1),n.s9C("matTooltip",n.lcZ(2,4,je.name)),n.xp6(2),n.Oqu(n.lcZ(4,6,je.name)),n.xp6(3),n.Q6J("ngTemplateOutlet",Gi)("ngTemplateOutletContext",n.VKq(11,Lt,n.WLB(8,hi,je,Mn)))}}function Ei(Rn,Uo){if(1&Rn&&(n.TgZ(0,"li"),n.YNc(1,pn,8,8,"ul",8),n.YNc(2,_i,5,0,"ul",8),n.YNc(3,zn,7,13,"ul",8),n.qZA()),2&Rn){const je=Uo.$implicit,Mn=n.oxw(4);n.xp6(1),n.Q6J("ngIf",je.name==Mn.navigation),n.xp6(1),n.Q6J("ngIf","view"==je.name&&Mn.slideVisible),n.xp6(1),n.Q6J("ngIf","actions"!=je.name&&"view"!=je.name&&je.name!=Mn.navigation)}}function li(Rn,Uo){if(1&Rn&&(n.TgZ(0,"ul",71),n.YNc(1,Ei,4,3,"li",55),n.qZA()),2&Rn){const je=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",je.columns)}}function Xi(Rn,Uo){1&Rn&&n.YNc(0,li,2,1,"ng-template",69)}const ki=function(){return{"line-height":"1em","vertical-align":"middle","font-family":"inherit"}},bo=function(){return{"background-color":"#F6F6F6",color:"rgba(0, 0, 0, 0.87)","line-height":"1em","border-bottom":"1px solid #eee"}},jo=function(){return{"background-color":"#888",color:"#fff","line-height":"1em"}};function wn(Rn,Uo){if(1&Rn&&(n.ynx(0),n.TgZ(1,"kendo-grid-column",65),n.ALo(2,"translate"),n.YNc(3,wt,6,5,"ng-template",66),n.YNc(4,Ne,1,0,null,8),n.YNc(5,Xi,1,0,null,8),n.qZA(),n.BQk()),2&Rn){const je=n.oxw();n.xp6(1),n.Akn(n.DdM(10,ki)),n.Q6J("field",null==je.cardColumns?null:je.cardColumns.name)("title",n.lcZ(2,8,je.cardColumns.display?je.cardColumns.display:je.cardColumns.name))("headerStyle",n.DdM(11,bo))("footerStyle",n.DdM(12,jo)),n.xp6(3),n.Q6J("ngIf",je.config.customCardView),n.xp6(1),n.Q6J("ngIf",!je.config.customCardView)}}function Zi(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"button",90),n.NdJ("click",function(){n.CHM(je);const Gi=n.oxw(3);return n.KtG(Gi.removeRecords())}),n.TgZ(1,"mat-icon",91),n._uU(2,"delete"),n.qZA()()}}function oo(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"button",92),n.NdJ("click",function(){n.CHM(je);const Gi=n.oxw(3);return n.KtG(Gi.cancelHandler())}),n.TgZ(1,"mat-icon",91),n._uU(2,"close"),n.qZA()()}}function Bi(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",85)(1,"button",86),n.ALo(2,"translate"),n.TgZ(3,"mat-icon",87),n._uU(4,"add"),n.qZA()(),n.YNc(5,Zi,3,0,"button",88),n.YNc(6,oo,3,0,"button",89),n.qZA()),2&Rn){const je=n.oxw(2);n.xp6(1),n.Q6J("matTooltip",n.lcZ(2,4,"add"))("disabled",je.config&&je.config.disableGridAddFabBtn),n.xp6(4),n.Q6J("ngIf",(null==je.rowSelectedIds?null:je.rowSelectedIds.length)>0&&je.showDeleteRow),n.xp6(1),n.Q6J("ngIf",je.isInEditingMode&&je.showCancelHandler)}}function Xo(Rn,Uo){1&Rn&&n.YNc(0,Bi,7,6,"ng-template",84)}function Lo(Rn,Uo){1&Rn&&n.GkF(0)}function or(Rn,Uo){if(1&Rn&&n.YNc(0,Lo,1,0,"ng-container",94),2&Rn){const je=n.oxw(2);n.Q6J("ngTemplateOutlet",je.footerToolbarTemplate)}}function xr(Rn,Uo){1&Rn&&n.YNc(0,or,1,1,"ng-template",93),2&Rn&&n.Q6J("position","bottom")}function Nr(Rn,Uo){if(1&Rn&&(n.TgZ(0,"kendo-grid-string-filter-cell",104),n._UZ(1,"kendo-filter-eq-operator")(2,"kendo-filter-neq-operator")(3,"kendo-filter-contains-operator")(4,"kendo-filter-not-contains-operator")(5,"kendo-filter-startswith-operator")(6,"kendo-filter-endswith-operator")(7,"kendo-filter-isnull-operator")(8,"kendo-filter-isnotnull-operator"),n.qZA()),2&Rn){const je=n.oxw(),Mn=je.column,Gi=je.$implicit,nr=n.oxw(3);n.Q6J("column",Mn)("filter",Gi)("showOperators",nr.showOperators)}}function as(Rn,Uo){if(1&Rn&&n._UZ(0,"kendo-grid-date-filter-cell",105),2&Rn){const je=n.oxw(),Mn=je.column,Gi=je.$implicit,nr=n.oxw(3);n.Q6J("column",Mn)("filter",Gi)("operator","eq")("showOperators",nr.showOperators)}}function ji(Rn,Uo){if(1&Rn&&n._UZ(0,"kendo-grid-numeric-filter-cell",106),2&Rn){const je=n.oxw(),Mn=je.column,Gi=je.$implicit,nr=n.oxw(3);n.Q6J("column",Mn)("filter",Gi)("showOperators",nr.showOperators)}}function Fo(Rn,Uo){if(1&Rn&&n._UZ(0,"kendo-grid-boolean-filter-cell",107),2&Rn){const je=n.oxw(),Gi=je.$implicit;n.Q6J("column",je.column)("filter",Gi)}}function rt(Rn,Uo){if(1&Rn&&(n.YNc(0,Nr,9,3,"kendo-grid-string-filter-cell",100),n.YNc(1,as,1,4,"kendo-grid-date-filter-cell",101),n.YNc(2,ji,1,3,"kendo-grid-numeric-filter-cell",102),n.YNc(3,Fo,1,2,"kendo-grid-boolean-filter-cell",103)),2&Rn){const je=Uo.column;n.Q6J("ngIf","text"==je.filter.toLowerCase()||"string"==je.filter.toLowerCase()||"customheaderandcelltpl"==je.filter.toLowerCase()),n.xp6(1),n.Q6J("ngIf","date"==je.filter.toLowerCase()||"datetime"==je.filter.toLowerCase()||"datetimeampm"==je.filter.toLowerCase()||"time"==je.filter.toLowerCase()),n.xp6(1),n.Q6J("ngIf","numeric"==je.filter.toLowerCase()||"int"==je.filter.toLowerCase()||"money"==je.filter.toLowerCase()),n.xp6(1),n.Q6J("ngIf","boolean"==je.filter.toLowerCase()||"bit"==je.filter.toLowerCase()||"disabledcheckbox"==je.filter.toLowerCase())}}function ai(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"mat-checkbox",68),n.NdJ("change",function(Gi){n.CHM(je);const nr=n.oxw(2),is=nr.value,ta=nr.field,dl=n.oxw(3);return n.KtG(dl.groupHeaderCheckBoxChangeFn(Gi,is,ta))}),n.qZA()}if(2&Rn){const je=n.oxw(2).value,Mn=n.oxw(3);n.Q6J("id",je)("name",je)("checked",Mn.groupHeaderChk[0][je.charAt(0).toLowerCase()+je.slice(1).split(" ").join("")+"Checked"])("indeterminate",Mn.groupHeaderChk[0][je.charAt(0).toLowerCase()+je.slice(1).split(" ").join("")+"Indeterminate"])}}function Gn(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div"),n.YNc(1,ai,1,4,"mat-checkbox",67),n.qZA()),2&Rn){const je=n.oxw().value;n.xp6(1),n.Q6J("ngIf",je)}}function Io(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"toString"),n.qZA()),2&Rn){const je=n.oxw(2).value;n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,je)))}}function wr(Rn,Uo){if(1&Rn&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn){const je=n.oxw(2).field;n.xp6(1),n.hij("\xa0\xa0",n.lcZ(2,1,je)+": ","")}}function bs(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"toString"),n.qZA()),2&Rn){const je=n.oxw(2).value;n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,je)))}}function ba(Rn,Uo){if(1&Rn&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn){const je=n.oxw().$implicit;n.xp6(1),n.Oqu(", "+n.lcZ(2,1,je)+" : ")}}function ms(Rn,Uo){if(1&Rn&&(n.ynx(0),n.YNc(1,ba,3,3,"span",8),n._uU(2,"\xa0"),n.TgZ(3,"strong"),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"toString"),n.qZA(),n.BQk()),2&Rn){const je=Uo.$implicit,Mn=n.oxw(2).group;n.xp6(1),n.Q6J("ngIf",Mn.items[0][je]),n.xp6(3),n.Oqu(n.lcZ(5,2,n.lcZ(6,4,Mn.items[0][je])))}}function Oa(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div"),n.YNc(1,Io,4,5,"strong",8),n.YNc(2,wr,3,3,"span",8),n._uU(3,"\xa0"),n.YNc(4,bs,4,5,"strong",8),n.YNc(5,ms,7,6,"ng-container",55),n.qZA()),2&Rn){const je=n.oxw(),Mn=je.field,Gi=je.value,nr=n.oxw(3);n.xp6(1),n.Q6J("ngIf",nr.groupingTemplate&&nr.groupingTemplate.showValueOnly),n.xp6(1),n.Q6J("ngIf",!nr.groupingTemplate&&Mn),n.xp6(2),n.Q6J("ngIf",!nr.groupingTemplate&&Gi),n.xp6(1),n.Q6J("ngForOf",nr.groupLabels)}}function Ea(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn){const je=n.oxw(2),Mn=je.group,Gi=je.field,nr=n.oxw(3);n.xp6(1),n.Oqu(n.lcZ(2,1,Mn.items[0][nr.groupLabel(Gi)]))}}function Sa(Rn,Uo){if(1&Rn&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn){const je=n.oxw(2).field,Mn=n.oxw(3);n.xp6(1),n.hij("\xa0\xa0",n.lcZ(2,1,Mn.groupLabel(je))+": ","")}}function tr(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn){const je=n.oxw(2),Mn=je.group,Gi=je.field,nr=n.oxw(3);n.xp6(1),n.Oqu(n.lcZ(2,1,Mn.items[0][nr.groupLabel(Gi)]))}}function Mr(Rn,Uo){if(1&Rn&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn){const je=n.oxw().$implicit;n.xp6(1),n.Oqu(", "+n.lcZ(2,1,je)+" : ")}}function Li(Rn,Uo){if(1&Rn&&(n.ynx(0),n.YNc(1,Mr,3,3,"span",8),n._uU(2,"\xa0"),n.TgZ(3,"strong"),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"toString"),n.qZA(),n.BQk()),2&Rn){const je=Uo.$implicit,Mn=n.oxw(2).group;n.xp6(1),n.Q6J("ngIf",Mn.items[0][je]),n.xp6(3),n.Oqu(n.lcZ(5,2,n.lcZ(6,4,Mn.items[0][je])))}}function Ao(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div"),n.YNc(1,Ea,3,3,"strong",8),n.YNc(2,Sa,3,3,"span",8),n._uU(3,"\xa0"),n.YNc(4,tr,3,3,"strong",8),n.YNc(5,Li,7,6,"ng-container",55),n.qZA()),2&Rn){const je=n.oxw(4);n.xp6(1),n.Q6J("ngIf",je.groupingTemplate&&je.groupingTemplate.showValueOnly),n.xp6(1),n.Q6J("ngIf",!je.groupingTemplate),n.xp6(2),n.Q6J("ngIf",!je.groupingTemplate),n.xp6(1),n.Q6J("ngForOf",je.groupLabels)}}function ao(Rn,Uo){if(1&Rn&&(n.YNc(0,Gn,2,1,"div",8),n.YNc(1,Oa,6,4,"div",8),n.YNc(2,Ao,6,4,"div",8)),2&Rn){const je=Uo.field,Mn=n.oxw(3);n.Q6J("ngIf",Mn.showGroupHeaderCheckBox),n.xp6(1),n.Q6J("ngIf","customGroup"!==je),n.xp6(1),n.Q6J("ngIf","customGroup"===je)}}function Go(Rn,Uo){1&Rn&&n.GkF(0)}const pr=function(Rn,Uo,je,Mn){return{aggregates:Rn,field:Uo,groups:je,column:Mn}};function Rr(Rn,Uo){if(1&Rn&&n.YNc(0,Go,1,0,"ng-container",70),2&Rn){const je=Uo.$implicit,Mn=Uo.field,Gi=n.oxw().$implicit,nr=n.oxw(2);n.Q6J("ngTemplateOutlet",nr.config.groupFooterTemplate)("ngTemplateOutletContext",n.VKq(7,Lt,n.l5B(2,pr,je,Mn,nr.groups,Gi)))}}function br(Rn,Uo){}function Ti(Rn,Uo){1&Rn&&n.YNc(0,br,0,0,"ng-template",99)}function mr(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"span",108)(1,"mat-icon",109),n.NdJ("click",function(){const nr=n.CHM(je).$implicit,is=n.oxw(4);return n.KtG(is.emitEditAction(nr))}),n.ALo(2,"translate"),n._uU(3,"edit"),n.qZA()()}2&Rn&&(n.xp6(1),n.s9C("matTooltip",n.lcZ(2,1,"edit")))}function ri(Rn,Uo){1&Rn&&n.YNc(0,mr,4,3,"ng-template",69)}function mo(Rn,Uo){}function Ii(Rn,Uo){1&Rn&&n.YNc(0,mo,0,0,"ng-template",99)}function yo(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"span",108)(1,"mat-icon",110),n.NdJ("click",function(Gi){const nr=n.CHM(je),is=nr.rowIndex,ta=nr.$implicit;return n.oxw(4).emitDeleteAction(is,ta),n.KtG(Gi.stopPropagation())}),n.ALo(2,"translate"),n._uU(3," delete_forever "),n.qZA()()}2&Rn&&(n.xp6(1),n.Q6J("matTooltip",n.lcZ(2,1,"delete")))}function lr(Rn,Uo){1&Rn&&n.YNc(0,yo,4,3,"ng-template",69)}function Yr(Rn,Uo){1&Rn&&n.GkF(0)}function Gs(Rn,Uo){if(1&Rn&&n._UZ(0,"span",117),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw(2);n.Gre("filter-prefix-icon k-icon ",Mn.showFilterToggle&&Mn.filteredColumn&&Mn.filteredColumn===je.name?"k-i-filter-clear":"k-i-filter"," ng-tns-c55-30")}}const fi=function(Rn){return{column:Rn}};function Ho(Rn,Uo){if(1&Rn){const je=n.EpF();n.YNc(0,Yr,1,0,"ng-container",70),n.TgZ(1,"button",111,112),n.NdJ("menuClosed",function(Gi){n.CHM(je);const nr=n.oxw(4);return n.KtG(nr.filterMenuClosed(Gi))})("click",function(Gi){n.CHM(je);const nr=n.MAs(2),is=n.oxw(2).$implicit,ta=n.oxw(2);return n.KtG(ta.setColumnHeaderFilter(Gi,is,nr))}),n.ALo(3,"translate"),n.YNc(4,Gs,1,3,"span",113),n.qZA(),n.TgZ(5,"mat-menu",114,115)(7,"button",116),n.NdJ("click",function(Gi){n.CHM(je);const nr=n.oxw(2).$implicit,is=n.oxw(2);return n.KtG(is.filterMenuItemClick(Gi,nr,"current"))}),n.TgZ(8,"mat-icon"),n._uU(9,"sort"),n.qZA(),n.TgZ(10,"span"),n._uU(11),n.ALo(12,"translate"),n.qZA()(),n.TgZ(13,"button",116),n.NdJ("click",function(Gi){n.CHM(je);const nr=n.oxw(2).$implicit,is=n.oxw(2);return n.KtG(is.filterMenuItemClick(Gi,nr,"all"))}),n.TgZ(14,"mat-icon"),n._uU(15,"done_all"),n.qZA(),n.TgZ(16,"span"),n._uU(17),n.ALo(18,"translate"),n.qZA()()()}if(2&Rn){const je=n.MAs(6),Mn=n.oxw(2).$implicit,Gi=n.oxw(2);n.Q6J("ngTemplateOutlet",Gi.config[Mn.name+"HeaderTemplate"])("ngTemplateOutletContext",n.VKq(17,Lt,n.VKq(15,fi,Mn))),n.xp6(1),n.Q6J("matMenuTriggerFor",je)("ngClass",Gi.filteredColumn&&Gi.filteredColumn===Mn.name?"show-column-btn":"hide-column-btn")("matTooltip",n.lcZ(3,9,"columnFilter")),n.xp6(3),n.Q6J("ngIf",Mn.filterable),n.xp6(1),n.Q6J("overlapTrigger",!1),n.xp6(6),n.Oqu(n.lcZ(12,11,"currentPageFilter")),n.xp6(6),n.Oqu(n.lcZ(18,13,"allPageFilter"))}}function _t(Rn,Uo){1&Rn&&n.YNc(0,Ho,19,19,"ng-template",99)}function Zn(Rn,Uo){if(1&Rn&&(n._UZ(0,"div",118),n.ALo(1,"translate")),2&Rn){const je=n.oxw(2).$implicit;n.Q6J("innerHTML",n.lcZ(1,1,je.name),n.oJD)}}function qo(Rn,Uo){1&Rn&&n.YNc(0,Zn,2,3,"ng-template",99)}function Cr(Rn,Uo){if(1&Rn&&(n.TgZ(0,"mat-icon",119),n._uU(1),n.qZA()),2&Rn){const je=Uo.$implicit,Mn=n.oxw(2).$implicit;n.s9C("id",Mn.name),n.xp6(1),n.hij(" ",je[Mn.name]," ")}}function kr(Rn,Uo){1&Rn&&n.YNc(0,Cr,2,2,"ng-template",69)}function xs(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",121),n.ALo(1,"translate"),n._UZ(2,"span",118),n.qZA()),2&Rn){const je=n.oxw().$implicit,Mn=n.oxw(2).$implicit;n.s9C("id",Mn.name),n.Q6J("matTooltip",n.lcZ(1,3,je[Mn.name])),n.xp6(2),n.Q6J("innerHTML",je[Mn.name],n.oJD)}}function Us(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"div",121),n.ALo(1,"translate"),n.TgZ(2,"span",77),n.NdJ("debounceClick",function(){n.CHM(je);const Gi=n.oxw().$implicit,nr=n.oxw(4);return n.KtG(nr.navigationCellClick(Gi))}),n._UZ(3,"b",118),n.qZA()()}if(2&Rn){const je=n.oxw().$implicit,Mn=n.oxw(2).$implicit,Gi=n.oxw(2);n.s9C("id",Mn.name),n.Q6J("matTooltip",n.lcZ(1,3,je[Mn.name])),n.xp6(3),n.Q6J("innerHTML",Gi.transform(je[Mn.name],Mn.type),n.oJD)}}function Ts(Rn,Uo){if(1&Rn&&(n.YNc(0,xs,3,5,"div",120),n.YNc(1,Us,4,5,"div",120)),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(2);n.Q6J("ngIf",je.name!=Mn.navigation),n.xp6(1),n.Q6J("ngIf",je.name==Mn.navigation)}}function Ss(Rn,Uo){1&Rn&&n.YNc(0,Ts,2,2,"ng-template",69)}function Ua(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"button",122)(1,"mat-icon",82),n.NdJ("debounceClick",function(){const nr=n.CHM(je).$implicit,is=n.oxw(4);return n.KtG(is.openBar(nr))}),n._uU(2," visibility "),n.qZA()()}if(2&Rn){const je=Uo.$implicit,Mn=n.oxw(2).$implicit;n.s9C("id",Mn.name),n.Q6J("disabled",je.disableEyeView)}}function $o(Rn,Uo){1&Rn&&n.YNc(0,Ua,3,2,"ng-template",69)}function Ar(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"span",123)(1,"mat-icon",124),n.NdJ("click",function(){n.CHM(je);const Gi=n.oxw(4);return n.KtG(Gi.slidePanel())}),n._uU(2," visibility "),n.qZA()()}if(2&Rn){const je=n.oxw(2).$implicit;n.s9C("id",je.name)}}function No(Rn,Uo){1&Rn&&n.YNc(0,Ar,3,1,"ng-template",69)}function qr(Rn,Uo){}function js(Rn,Uo){1&Rn&&n.YNc(0,qr,0,0,"ng-template",99)}function Ds(Rn,Uo){}function Zr(Rn,Uo){1&Rn&&n.YNc(0,Ds,0,0,"ng-template",99)}function ls(Rn,Uo){}function Hs(Rn,Uo){1&Rn&&n.YNc(0,ls,0,0,"ng-template",99)}function Js(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",126)(1,"mat-icon",127),n.ALo(2,"translate"),n._uU(3,"info"),n.qZA()()),2&Rn){const je=n.oxw().$implicit,Mn=n.oxw(2).$implicit;n.s9C("id",Mn.name),n.xp6(1),n.s9C("matTooltip",n.lcZ(2,2,je.disableRowSelection?"alreadyModifiedAndPosted":"rowModified"))}}function Wa(Rn,Uo){1&Rn&&n._UZ(0,"div")}function ll(Rn,Uo){if(1&Rn&&(n.YNc(0,Js,4,4,"div",125),n.YNc(1,Wa,1,0,"div",8)),2&Rn){const je=Uo.$implicit;n.Q6J("ngIf",je.isEdit),n.xp6(1),n.Q6J("ngIf",!je.isEdit)}}function Za(Rn,Uo){1&Rn&&n.YNc(0,ll,2,2,"ng-template",69)}function sl(Rn,Uo){if(1&Rn&&(n.ynx(0),n.TgZ(1,"label"),n._uU(2),n.qZA(),n.BQk()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw(2);n.xp6(2),n.hij(" ",Mn.getSelectedData(je,Mn.formData.controls[je.name])," ")}}function Jt(Rn,Uo){if(1&Rn&&(n.TgZ(0,"mat-option",133),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn){const je=Uo.$implicit,Mn=n.oxw(5).$implicit;n.Q6J("value",je[Mn.editorValueField]),n.xp6(1),n.hij(" ",n.lcZ(2,2,je[Mn.editorTextField])," ")}}function Tt(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"mat-form-field",130)(1,"mat-select",131),n.NdJ("selectionChange",function(Gi){n.CHM(je);const nr=n.oxw(2).dataItem,is=n.oxw(2).$implicit,ta=n.oxw(2);return n.KtG(ta.onDropDownValChange(Gi,nr,is))}),n.YNc(2,Jt,3,4,"mat-option",132),n.qZA()()}if(2&Rn){const je=n.oxw(4).$implicit,Mn=n.oxw(2);n.Q6J("id",je.name+"DdlWrapper"),n.xp6(1),n.Q6J("id",je.name+"Ddl")("disabled",Mn.formData.controls[je.name].disabled)("formControl",Mn.formData.controls[je.name])("required",je.required),n.xp6(1),n.Q6J("ngForOf",je.editorData)}}function ht(Rn,Uo){if(1&Rn&&(n.ynx(0),n.YNc(1,Tt,3,6,"mat-form-field",129),n.BQk()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw(2);n.xp6(1),n.Q6J("ngIf",!Mn.formData.controls[je.name].disabled)}}function yn(Rn,Uo){if(1&Rn&&(n.YNc(0,sl,3,1,"ng-container",8),n.YNc(1,ht,2,1,"ng-container",8)),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(2);n.Q6J("ngIf",Mn.formData.controls[je.name].disabled),n.xp6(1),n.Q6J("ngIf",!Mn.formData.controls[je.name].disabled)}}function vi(Rn,Uo){1&Rn&&n.YNc(0,yn,2,2,"ng-template",128)}function Yi(Rn,Uo){if(1&Rn&&(n.ynx(0),n.TgZ(1,"label"),n._uU(2),n.qZA(),n.BQk()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw(2);n.xp6(2),n.hij(" ",Mn.formData.controls[je.editorTextField].value," ")}}function co(Rn,Uo){if(1&Rn){const je=n.EpF();n.ynx(0),n.TgZ(1,"input",134),n.NdJ("keydown.enter",function(Gi){n.CHM(je);const nr=n.oxw().dataItem,is=n.oxw(2).$implicit,ta=n.oxw(2);return n.KtG(ta.textEditorKeyDownFn(Gi,nr,is))})("keydown.Tab",function(Gi){n.CHM(je);const nr=n.oxw().dataItem,is=n.oxw(2).$implicit,ta=n.oxw(2);return n.KtG(ta.textEditorKeyDownFn(Gi,nr,is))}),n.ALo(2,"translate"),n.qZA(),n.BQk()}if(2&Rn){const je=n.oxw(3),Mn=je.index,Gi=je.$implicit,nr=n.oxw(2);n.xp6(1),n.Q6J("tabindex",Mn)("id",Gi.name)("placeholder",n.lcZ(2,7,"search"))("formControl",nr.formData.get(Gi.name))("disabled",nr.formData.controls[Gi.name].disabled)("name",Gi.name)("required",Gi.required)}}function sr(Rn,Uo){if(1&Rn&&(n.YNc(0,Yi,3,1,"ng-container",8),n.YNc(1,co,3,9,"ng-container",8)),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(2);n.Q6J("ngIf",Mn.formData.controls[je.name].disabled),n.xp6(1),n.Q6J("ngIf",!Mn.formData.controls[je.name].disabled)}}function yr(Rn,Uo){1&Rn&&n.YNc(0,sr,2,2,"ng-template",128)}function Ur(Rn,Uo){if(1&Rn&&(n.ynx(0),n.TgZ(1,"label",135),n._uU(2),n.qZA(),n.BQk()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw(2);n.xp6(1),n.s9C("id",je.name),n.xp6(1),n.hij(" ",Mn.formData.controls[je.editorTextField].value," ")}}function ss(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"zen-select",138,139),n.NdJ("ngModelChange",function(Gi){n.CHM(je);const nr=n.oxw(4).$implicit,is=n.oxw(2);return n.KtG(is.formData.controls[nr.editorValueField].value=Gi)})("selectEvent",function(Gi){n.CHM(je);const nr=n.oxw(2).dataItem,is=n.oxw(2).$implicit,ta=n.oxw(2);return n.KtG(ta.zenSelectedData(Gi,nr,is))}),n.ALo(2,"translate"),n.qZA()}if(2&Rn){const je=n.oxw(4),Mn=je.$implicit,Gi=je.index,nr=n.oxw(2);n.hYB("panelClass","",Mn.panelClass?Mn.panelClass:"zen-select-md"," ",nr.preventGridFlicker?"zen-loading-backcontent-cover-zenselect":"",""),n.Q6J("tabIndex",Gi)("selectorId",Mn.name+"Zs")("floatLabel",Mn.floatLabel?Mn.floatLabel:"never")("ngModel",nr.formData.controls[Mn.editorValueField].value)("nameField",Mn.editorTextField)("valueField",Mn.editorValueField)("disabled",nr.formData.controls[Mn.name].disabled)("data",Mn.editorData)("columns",Mn.editorColumns)("placeholder",n.lcZ(2,13,Mn.name))("multiple",!!Mn.multiple&&Mn.multiple)}}function gs(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"zen-select",140,139),n.NdJ("ngModelChange",function(Gi){n.CHM(je);const nr=n.oxw(4).$implicit,is=n.oxw(2);return n.KtG(is.formData.controls[nr.editorValueField].value=Gi)})("selectEvent",function(Gi){n.CHM(je);const nr=n.oxw(2).dataItem,is=n.oxw(2).$implicit,ta=n.oxw(2);return n.KtG(ta.zenSelectedData(Gi,nr,is))}),n.ALo(2,"translate"),n.qZA()}if(2&Rn){const je=n.oxw(4),Mn=je.$implicit,Gi=je.index,nr=n.oxw(2);n.hYB("panelClass","",Mn.panelClass?Mn.panelClass:"zen-select-md"," ",nr.preventGridFlicker?"zen-loading-backcontent-cover-zenselect":"",""),n.Q6J("tabIndex",Gi)("selectorId",Mn.name+"Zs")("floatLabel",Mn.floatLabel?Mn.floatLabel:"never")("ngModel",nr.formData.controls[Mn.editorValueField].value)("nameField",Mn.editorTextField)("valueField",Mn.editorValueField)("disabled",nr.formData.controls[Mn.name].disabled)("data",Mn.editorData)("columns",Mn.editorColumns)("placeholder",n.lcZ(2,13,Mn.name))("multiple",!!Mn.multiple&&Mn.multiple)}}function Pr(Rn,Uo){if(1&Rn&&(n.ynx(0),n.YNc(1,ss,3,15,"zen-select",136),n.YNc(2,gs,3,15,"zen-select",137),n.BQk()),2&Rn){const je=n.oxw(3).$implicit;n.xp6(1),n.Q6J("ngIf",je.required),n.xp6(1),n.Q6J("ngIf",!je.required)}}function ys(Rn,Uo){if(1&Rn&&(n.YNc(0,Ur,3,2,"ng-container",8),n.YNc(1,Pr,3,2,"ng-container",8)),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(2);n.Q6J("ngIf",Mn.formData.controls[je.name].disabled),n.xp6(1),n.Q6J("ngIf",!Mn.formData.controls[je.name].disabled)}}function da(Rn,Uo){1&Rn&&n.YNc(0,ys,2,2,"ng-template",128)}function Va(Rn,Uo){if(1&Rn&&(n.ynx(0),n.TgZ(1,"label"),n._uU(2),n.qZA(),n.BQk()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw(2);n.xp6(2),n.hij(" ",Mn.formData.controls[je.editorTextField].value," ")}}function ga(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"zen-select",143,139),n.NdJ("ngModelChange",function(Gi){n.CHM(je);const nr=n.oxw(4).$implicit,is=n.oxw(2);return n.KtG(is.formData.controls[nr.editorValueField].value=Gi)})("selectEvent",function(Gi){n.CHM(je);const nr=n.oxw(2).dataItem,is=n.oxw(2).$implicit,ta=n.oxw(2);return n.KtG(ta.zenSelectedData(Gi,nr,is))}),n.ALo(2,"translate"),n.qZA()}if(2&Rn){const je=n.oxw(4),Mn=je.$implicit,Gi=je.index,nr=n.oxw(2);n.hYB("panelClass","",Mn.panelClass?Mn.panelClass:"zen-select-md"," ",nr.preventGridFlicker?"zen-loading-backcontent-cover-zenselect":"",""),n.Q6J("tabIndex",Gi)("selectorId",Mn.name+"Zs")("floatLabel",Mn.floatLabel?Mn.floatLabel:"never")("ngModel",nr.formData.controls[Mn.editorValueField].value)("nameField",Mn.editorTextField)("valueField",Mn.editorValueField)("disabled",nr.formData.controls[Mn.name].disabled)("config",Mn.editorConfig)("virtualScroll",!!Mn.virtualScroll&&Mn.virtualScroll)("multiple",!!Mn.multiple&&Mn.multiple)("placeholder",n.lcZ(2,13,Mn.name))}}function al(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"zen-select",144,139),n.NdJ("ngModelChange",function(Gi){n.CHM(je);const nr=n.oxw(4).$implicit,is=n.oxw(2);return n.KtG(is.formData.controls[nr.editorValueField].value=Gi)})("selectEvent",function(Gi){n.CHM(je);const nr=n.oxw(2).dataItem,is=n.oxw(2).$implicit,ta=n.oxw(2);return n.KtG(ta.zenSelectedData(Gi,nr,is))}),n.ALo(2,"translate"),n.qZA()}if(2&Rn){const je=n.oxw(4),Mn=je.$implicit,Gi=je.index,nr=n.oxw(2);n.hYB("panelClass","",Mn.panelClass?Mn.panelClass:"zen-select-md"," ",nr.preventGridFlicker?"zen-loading-backcontent-cover-zenselect":"",""),n.Q6J("tabIndex",Gi)("selectorId",Mn.name+"Zs")("floatLabel",Mn.floatLabel?Mn.floatLabel:"never")("ngModel",nr.formData.controls[Mn.editorValueField].value)("nameField",Mn.editorTextField)("valueField",Mn.editorValueField)("disabled",nr.formData.controls[Mn.name].disabled)("config",Mn.editorConfig)("multiple",!!Mn.multiple&&Mn.multiple)("virtualScroll",!!Mn.virtualScroll&&Mn.virtualScroll)("placeholder",n.lcZ(2,13,Mn.name))}}function ur(Rn,Uo){if(1&Rn&&(n.ynx(0),n.YNc(1,ga,3,15,"zen-select",141),n.YNc(2,al,3,15,"zen-select",142),n.BQk()),2&Rn){const je=n.oxw(3).$implicit;n.xp6(1),n.Q6J("ngIf",je.required),n.xp6(1),n.Q6J("ngIf",!je.required)}}function La(Rn,Uo){if(1&Rn&&(n.YNc(0,Va,3,1,"ng-container",8),n.YNc(1,ur,3,2,"ng-container",8)),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(2);n.Q6J("ngIf",Mn.formData.controls[je.name].disabled),n.xp6(1),n.Q6J("ngIf",!Mn.formData.controls[je.name].disabled)}}function ra(Rn,Uo){1&Rn&&n.YNc(0,La,2,2,"ng-template",128)}function Ls(Rn,Uo){if(1&Rn&&(n.ynx(0),n.TgZ(1,"label"),n._uU(2),n.qZA(),n.BQk()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw(2);n.xp6(2),n.hij(" ",Mn.formData.controls[je.editorTextField].value," ")}}function vn(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"zen-select",147,139),n.NdJ("ngModelChange",function(Gi){n.CHM(je);const nr=n.oxw(4).$implicit,is=n.oxw(2);return n.KtG(is.formData.controls[nr.editorValueField].value=Gi)})("keyUp",function(Gi){n.CHM(je);const nr=n.oxw(2).dataItem,is=n.oxw(2).$implicit,ta=n.oxw(2);return n.KtG(ta.zenSelectKeyUp(Gi,nr,is))})("selectEvent",function(Gi){n.CHM(je);const nr=n.oxw(2).dataItem,is=n.oxw(2).$implicit,ta=n.oxw(2);return n.KtG(ta.zenSelectedData(Gi,nr,is))}),n.ALo(2,"translate"),n.qZA()}if(2&Rn){const je=n.oxw(4),Mn=je.$implicit,Gi=je.index,nr=n.oxw(2);n.hYB("panelClass","",Mn.panelClass?Mn.panelClass:"zen-select-md"," ",nr.preventGridFlicker?"zen-loading-backcontent-cover-zenselect":"",""),n.Q6J("tabIndex",Gi)("selectorId",Mn.name+"Zs")("floatLabel",Mn.floatLabel?Mn.floatLabel:"never")("ngModel",nr.formData.controls[Mn.editorValueField].value)("emitKeyUp",!0)("nameField",Mn.editorTextField)("valueField",Mn.editorValueField)("clearOnBlur",!1)("disabled",nr.formData.controls[Mn.name].disabled)("data",Mn.editorData)("columns",Mn.editorColumns)("placeholder",n.lcZ(2,15,Mn.name))("multiple",!!Mn.multiple&&Mn.multiple)}}function Xe(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"zen-select",148,139),n.NdJ("ngModelChange",function(Gi){n.CHM(je);const nr=n.oxw(4).$implicit,is=n.oxw(2);return n.KtG(is.formData.controls[nr.editorValueField].value=Gi)})("keyUp",function(Gi){n.CHM(je);const nr=n.oxw(2).dataItem,is=n.oxw(2).$implicit,ta=n.oxw(2);return n.KtG(ta.zenSelectKeyUp(Gi,nr,is))})("selectEvent",function(Gi){n.CHM(je);const nr=n.oxw(2).dataItem,is=n.oxw(2).$implicit,ta=n.oxw(2);return n.KtG(ta.zenSelectedData(Gi,nr,is))}),n.ALo(2,"translate"),n.qZA()}if(2&Rn){const je=n.oxw(4),Mn=je.$implicit,Gi=je.index,nr=n.oxw(2);n.hYB("panelClass","",Mn.panelClass?Mn.panelClass:"zen-select-md"," ",nr.preventGridFlicker?"zen-loading-backcontent-cover-zenselect":"",""),n.Q6J("tabIndex",Gi)("selectorId",Mn.name+"Zs")("floatLabel",Mn.floatLabel?Mn.floatLabel:"never")("ngModel",nr.formData.controls[Mn.editorValueField].value)("emitKeyUp",!0)("nameField",Mn.editorTextField)("valueField",Mn.editorValueField)("clearOnBlur",!1)("disabled",nr.formData.controls[Mn.name].disabled)("data",Mn.editorData)("multiple",!!Mn.multiple&&Mn.multiple)("columns",Mn.editorColumns)("placeholder",n.lcZ(2,15,Mn.name))}}function Ke(Rn,Uo){if(1&Rn&&(n.ynx(0),n.YNc(1,vn,3,17,"zen-select",145),n.YNc(2,Xe,3,17,"zen-select",146),n.BQk()),2&Rn){const je=n.oxw(3).$implicit;n.xp6(1),n.Q6J("ngIf",je.required),n.xp6(1),n.Q6J("ngIf",!je.required)}}function ze(Rn,Uo){if(1&Rn&&(n.YNc(0,Ls,3,1,"ng-container",8),n.YNc(1,Ke,3,2,"ng-container",8)),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(2);n.Q6J("ngIf",Mn.formData.controls[je.name].disabled),n.xp6(1),n.Q6J("ngIf",!Mn.formData.controls[je.name].disabled)}}function St(Rn,Uo){1&Rn&&n.YNc(0,ze,2,2,"ng-template",128)}function it(Rn,Uo){if(1&Rn&&(n.ynx(0),n.TgZ(1,"label"),n._uU(2),n.qZA(),n.BQk()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw(2);n.xp6(2),n.hij(" ",Mn.formData.controls[je.editorTextField].value," ")}}function Dt(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"zen-select",151,139),n.NdJ("ngModelChange",function(Gi){n.CHM(je);const nr=n.oxw(4).$implicit,is=n.oxw(2);return n.KtG(is.formData.controls[nr.editorValueField].value=Gi)})("keyUp",function(Gi){n.CHM(je);const nr=n.oxw(2).dataItem,is=n.oxw(2).$implicit,ta=n.oxw(2);return n.KtG(ta.zenSelectKeyUp(Gi,nr,is))})("selectEvent",function(Gi){n.CHM(je);const nr=n.oxw(2).dataItem,is=n.oxw(2).$implicit,ta=n.oxw(2);return n.KtG(ta.zenSelectedData(Gi,nr,is))}),n.ALo(2,"translate"),n.qZA()}if(2&Rn){const je=n.oxw(4),Mn=je.$implicit,Gi=je.index,nr=n.oxw(2);n.hYB("panelClass","",Mn.panelClass?Mn.panelClass:"zen-select-md"," ",nr.preventGridFlicker?"zen-loading-backcontent-cover-zenselect":"",""),n.Q6J("tabIndex",Gi)("selectorId",Mn.name+"Zs")("floatLabel",Mn.floatLabel?Mn.floatLabel:"never")("ngModel",nr.formData.controls[Mn.editorValueField].value)("emitKeyUp",!0)("nameField",Mn.editorTextField)("valueField",Mn.editorValueField)("clearOnBlur",!1)("disabled",nr.formData.controls[Mn.name].disabled)("config",Mn.editorConfig)("virtualScroll",!!Mn.virtualScroll&&Mn.virtualScroll)("multiple",!!Mn.multiple&&Mn.multiple)("placeholder",n.lcZ(2,15,Mn.name))}}function Hn(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"zen-select",152,139),n.NdJ("ngModelChange",function(Gi){n.CHM(je);const nr=n.oxw(4).$implicit,is=n.oxw(2);return n.KtG(is.formData.controls[nr.editorValueField].value=Gi)})("keyUp",function(Gi){n.CHM(je);const nr=n.oxw(2).dataItem,is=n.oxw(2).$implicit,ta=n.oxw(2);return n.KtG(ta.zenSelectKeyUp(Gi,nr,is))})("selectEvent",function(Gi){n.CHM(je);const nr=n.oxw(2).dataItem,is=n.oxw(2).$implicit,ta=n.oxw(2);return n.KtG(ta.zenSelectedData(Gi,nr,is))}),n.ALo(2,"translate"),n.qZA()}if(2&Rn){const je=n.oxw(4),Mn=je.$implicit,Gi=je.index,nr=n.oxw(2);n.hYB("panelClass","",Mn.panelClass?Mn.panelClass:"zen-select-md"," ",nr.preventGridFlicker?"zen-loading-backcontent-cover-zenselect":"",""),n.Q6J("tabIndex",Gi)("selectorId",Mn.name+"Zs")("floatLabel",Mn.floatLabel?Mn.floatLabel:"never")("ngModel",nr.formData.controls[Mn.editorValueField].value)("emitKeyUp",!0)("nameField",Mn.editorTextField)("valueField",Mn.editorValueField)("clearOnBlur",!1)("disabled",nr.formData.controls[Mn.name].disabled)("config",Mn.editorConfig)("multiple",!!Mn.multiple&&Mn.multiple)("virtualScroll",!!Mn.virtualScroll&&Mn.virtualScroll)("placeholder",n.lcZ(2,15,Mn.name))}}function Ui(Rn,Uo){if(1&Rn&&(n.ynx(0),n.YNc(1,Dt,3,17,"zen-select",149),n.YNc(2,Hn,3,17,"zen-select",150),n.BQk()),2&Rn){const je=n.oxw(3).$implicit;n.xp6(1),n.Q6J("ngIf",je.required),n.xp6(1),n.Q6J("ngIf",!je.required)}}function Co(Rn,Uo){if(1&Rn&&(n.YNc(0,it,3,1,"ng-container",8),n.YNc(1,Ui,3,2,"ng-container",8)),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(2);n.Q6J("ngIf",Mn.formData.controls[je.name].disabled),n.xp6(1),n.Q6J("ngIf",!Mn.formData.controls[je.name].disabled)}}function Sn(Rn,Uo){1&Rn&&n.YNc(0,Co,2,2,"ng-template",128)}function Vn(Rn,Uo){if(1&Rn&&(n.ynx(0),n.TgZ(1,"label"),n._uU(2),n.qZA(),n.BQk()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw(2);n.xp6(2),n.hij(" ",Mn.formData.controls[je.editorTextField].value," ")}}function Dn(Rn,Uo){if(1&Rn&&(n.ynx(0),n._UZ(1,"input",153),n.BQk()),2&Rn){const je=n.oxw(3),Mn=je.index,Gi=je.$implicit,nr=n.oxw(2);n.xp6(1),n.Q6J("tabindex",Mn)("id",Gi.name)("disabled",nr.formData.controls[Gi.name].disabled)("formControl",nr.formData.get(Gi.name))("name",Gi.name)("required",Gi.required)}}function kn(Rn,Uo){if(1&Rn&&(n.YNc(0,Vn,3,1,"ng-container",8),n.YNc(1,Dn,2,6,"ng-container",8)),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(2);n.Q6J("ngIf",Mn.formData.controls[je.name].disabled),n.xp6(1),n.Q6J("ngIf",!Mn.formData.controls[je.name].disabled)}}function ui(Rn,Uo){1&Rn&&n.YNc(0,kn,2,2,"ng-template",128)}function Ot(Rn,Uo){if(1&Rn&&(n.ynx(0),n.TgZ(1,"label"),n._uU(2),n.ALo(3,"date"),n.qZA(),n.BQk()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw(2);n.xp6(2),n.hij(" ",n.xi3(3,1,Mn.formData.controls[je.editorTextField].value,"MM/dd/yyyy")," ")}}function en(Rn,Uo){if(1&Rn&&(n.ynx(0),n.TgZ(1,"mat-form-field",154),n._UZ(2,"input",155),n.ALo(3,"translate"),n._UZ(4,"mat-datepicker-toggle",156)(5,"mat-datepicker",null,157),n.qZA(),n.BQk()),2&Rn){const je=n.MAs(6),Mn=n.oxw(3).$implicit,Gi=n.oxw(2);n.xp6(1),n.Q6J("id",Mn.name+"dpWrapper"),n.xp6(1),n.Q6J("id",Mn.name+"Dp")("name",Mn.name)("matDatepicker",je)("disabled",Gi.formData.controls[Mn.name].disabled)("formControl",Gi.formData.get(Mn.name))("placeholder",n.lcZ(3,9,"MM/DD/YYYY"))("required",Mn.required),n.xp6(2),n.Q6J("for",je)}}function cn(Rn,Uo){if(1&Rn&&(n.YNc(0,Ot,4,4,"ng-container",8),n.YNc(1,en,7,11,"ng-container",8)),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(2);n.Q6J("ngIf",Mn.formData.controls[je.name].disabled),n.xp6(1),n.Q6J("ngIf",!Mn.formData.controls[je.name].disabled)}}function Ht(Rn,Uo){1&Rn&&n.YNc(0,cn,2,2,"ng-template",128)}function ft(Rn,Uo){if(1&Rn&&(n.ynx(0),n.TgZ(1,"label"),n._uU(2),n.qZA(),n.BQk()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw(2);n.xp6(2),n.hij(" ",Mn.formData.controls[je.editorTextField].value," ")}}function Nt(Rn,Uo){if(1&Rn&&(n.ynx(0),n._UZ(1,"kendo-numerictextbox",158),n.BQk()),2&Rn){const je=n.oxw(3),Mn=je.$implicit,Gi=je.index,nr=n.oxw(2);n.xp6(1),n.s9C("id",Mn.name),n.Q6J("tabindex",Gi)("decimals",2)("format","c2")("autoCorrect",!1)("disabled",nr.formData.controls[Mn.name].disabled)("formControl",nr.formData.get(Mn.name))("required",Mn.required)}}function an(Rn,Uo){if(1&Rn&&(n.YNc(0,ft,3,1,"ng-container",8),n.YNc(1,Nt,2,8,"ng-container",8)),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(2);n.Q6J("ngIf",Mn.formData.controls[je.name].disabled),n.xp6(1),n.Q6J("ngIf",!Mn.formData.controls[je.name].disabled)}}function $e(Rn,Uo){1&Rn&&n.YNc(0,an,2,2,"ng-template",128)}function Je(Rn,Uo){if(1&Rn&&(n.ynx(0),n.TgZ(1,"label"),n._uU(2),n.qZA(),n.BQk()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw(2);n.xp6(2),n.hij(" ",Mn.formData.controls[je.editorTextField].value," ")}}function Ve(Rn,Uo){if(1&Rn&&(n.ynx(0),n._UZ(1,"kendo-numerictextbox",159),n.BQk()),2&Rn){const je=n.oxw(3),Mn=je.$implicit,Gi=je.index,nr=n.oxw(2);n.xp6(1),n.s9C("id",Mn.name),n.Q6J("tabindex",Gi)("format","n"+Mn.decimalPoint)("value",nr.formData.controls[Mn.name].value)("disabled",nr.formData.controls[Mn.name].disabled)("formControl",nr.formData.get(Mn.name))("required",Mn.required)}}function Ge(Rn,Uo){if(1&Rn&&(n.YNc(0,Je,3,1,"ng-container",8),n.YNc(1,Ve,2,7,"ng-container",8)),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(2);n.Q6J("ngIf",Mn.formData.controls[je.name].disabled),n.xp6(1),n.Q6J("ngIf",!Mn.formData.controls[je.name].disabled)}}function Be(Rn,Uo){1&Rn&&n.YNc(0,Ge,2,2,"ng-template",128)}function At(Rn,Uo){if(1&Rn&&(n.ynx(0),n.TgZ(1,"label"),n._uU(2),n.qZA(),n.BQk()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw(2);n.xp6(2),n.hij(" ",Mn.formData.controls[je.editorTextField].value," ")}}function Rt(Rn,Uo){if(1&Rn&&(n.ynx(0),n._UZ(1,"input",160),n.TgZ(2,"mat-icon"),n._uU(3,"remove_red_eye"),n.qZA(),n.BQk()),2&Rn){const je=n.oxw(3),Mn=je.index,Gi=je.$implicit,nr=n.oxw(2);n.xp6(1),n.Q6J("tabindex",Mn)("id",Gi.name)("disabled",nr.formData.controls[Gi.name].disabled)("formControl",nr.formData.get(Gi.name))("name",Gi.name)("required",Gi.required)}}function Pt(Rn,Uo){if(1&Rn&&(n.YNc(0,At,3,1,"ng-container",8),n.YNc(1,Rt,4,6,"ng-container",8)),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(2);n.Q6J("ngIf",Mn.formData.controls[je.name].disabled),n.xp6(1),n.Q6J("ngIf",!Mn.formData.controls[je.name].disabled)}}function $t(Rn,Uo){1&Rn&&n.YNc(0,Pt,2,2,"ng-template",128)}const Xn=function(Rn,Uo){return{disableBar:Rn,enableBar:Uo}};function Nn(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"span",171)(1,"button",172),n.NdJ("debounceClick",function(){const nr=n.CHM(je).$implicit,is=n.oxw(2).$implicit,ta=n.oxw(4);return n.KtG(ta.openMultiViewBar(is,nr))}),n.TgZ(2,"mat-icon",72),n.ALo(3,"translate"),n._uU(4),n.qZA()()()}if(2&Rn){const je=Uo.$implicit,Mn=n.oxw(2).$implicit;n.Q6J("ngClass",n.WLB(6,Xn,!Mn[je.primaryColumn],Mn[je.primaryColumn])),n.xp6(1),n.Q6J("disabled",!Mn[je.primaryColumn]||Mn.isArchive),n.xp6(1),n.s9C("matTooltip",n.lcZ(3,4,je.resource)),n.xp6(2),n.Oqu(je.value)}}function Ae(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"div",167),n.NdJ("mouseenter",function(){n.CHM(je);const Gi=n.oxw(5);return n.KtG(Gi.multiActionMenuMouseEnter())})("mouseleave",function(){n.CHM(je),n.oxw();const Gi=n.MAs(2),nr=n.MAs(1),is=n.oxw(4);return n.KtG(is.multiActionMenuMouseLeave(Gi,nr))}),n.TgZ(1,"div",168)(2,"div",169),n.YNc(3,Nn,5,9,"span",170),n.qZA()()()}if(2&Rn){const je=n.oxw().$implicit;n.xp6(3),n.Q6J("ngForOf",je.rowMultiViewActionList)}}function He(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"span",171)(1,"button",172),n.NdJ("debounceClick",function(){const nr=n.CHM(je).$implicit,is=n.oxw(3).$implicit,ta=n.oxw(4);return n.KtG(ta.openMultiViewBar(is,nr))}),n.TgZ(2,"mat-icon",72),n.ALo(3,"translate"),n._uU(4),n.qZA()()()}if(2&Rn){const je=Uo.$implicit,Mn=n.oxw(3).$implicit;n.Q6J("ngClass",n.WLB(6,Xn,!Mn[je.primaryColumn],Mn[je.primaryColumn])),n.xp6(1),n.Q6J("disabled",!Mn[je.primaryColumn]||Mn.isArchive),n.xp6(1),n.s9C("matTooltip",n.lcZ(3,4,je.resource)),n.xp6(2),n.Oqu(je.value)}}function Kt(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",169),n.YNc(1,He,5,9,"span",170),n.qZA()),2&Rn){const je=n.oxw(6);n.xp6(1),n.Q6J("ngForOf",je.multiViewActionList)}}function On(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"div",167),n.NdJ("mouseenter",function(){n.CHM(je);const Gi=n.oxw(5);return n.KtG(Gi.multiActionMenuMouseEnter())})("mouseleave",function(){n.CHM(je),n.oxw();const Gi=n.MAs(2),nr=n.MAs(1),is=n.oxw(4);return n.KtG(is.multiActionMenuMouseLeave(Gi,nr))}),n.TgZ(1,"div",168),n.YNc(2,Kt,2,1,"div",173),n.qZA()()}if(2&Rn){const je=n.oxw().$implicit,Mn=n.oxw(4);n.xp6(2),n.Q6J("ngIf",null!=je&&null!=Mn.multiViewActionList)}}function Fi(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"button",161,162),n.NdJ("mouseenter",function(){n.CHM(je);const Gi=n.MAs(2),nr=n.oxw(4);return n.KtG(nr.multiActionBtnEnter(Gi))})("mouseleave",function(){n.CHM(je);const Gi=n.MAs(2),nr=n.MAs(1),is=n.oxw(4);return n.KtG(is.multiActionBtnLeave(Gi,nr))}),n.TgZ(3,"mat-icon",48),n._uU(4,"visibility"),n.qZA()(),n.TgZ(5,"mat-menu",163,164),n.YNc(7,Ae,4,1,"div",165),n.YNc(8,On,3,1,"ng-template",null,166,n.W1O),n.qZA()}if(2&Rn){const je=Uo.$implicit,Mn=n.MAs(6),Gi=n.MAs(9),nr=n.oxw(2).$implicit,is=n.oxw(2);n.s9C("id",nr.name),n.Q6J("id",je[is.primaryColumn])("matMenuTriggerFor",Mn),n.xp6(5),n.Q6J("hasBackdrop",!1),n.xp6(2),n.Q6J("ngIf",is.config&&is.config.isRowMultViewAction&&je&&null!=je.rowMultiViewActionList)("ngIfElse",Gi)}}function Ci(Rn,Uo){1&Rn&&n.YNc(0,Fi,10,6,"ng-template",69)}function xi(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"span",176),n.NdJ("debounceClick",function(){n.CHM(je);const Gi=n.oxw(2).$implicit,nr=n.oxw(4);return n.KtG(nr.navigationCellClick(Gi))}),n.TgZ(1,"b",78),n.ALo(2,"zenLabelMask"),n.ALo(3,"zenLabelMask"),n._uU(4),n.ALo(5,"zenLabelMask"),n.qZA()()}if(2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(2).$implicit,Gi=n.oxw(2);n.s9C("id",Mn.name),n.xp6(1),n.MGl("matTooltip"," ",n.Dn7(3,8,je[Mn.name],Mn.name+"Masking",je.countryCode),""),n.Q6J("innerHTML",Gi.transform(n.Dn7(2,4,je[Mn.name],Mn.name+"Masking",je.countryCode),Mn.type),n.oJD),n.xp6(3),n.hij(" ",n.Dn7(5,12,je[Mn.name],Mn.name+"Masking",je.countryCode)," ")}}function Wn(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"span",176),n.NdJ("debounceClick",function(){n.CHM(je);const Gi=n.oxw(2).$implicit,nr=n.oxw(4);return n.KtG(nr.navigationCellClick(Gi))}),n.TgZ(1,"b",78),n.ALo(2,"zenLabelMask"),n.ALo(3,"zenLabelMask"),n._uU(4),n.ALo(5,"zenLabelMask"),n.qZA()()}if(2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(2).$implicit,Gi=n.oxw(2);n.s9C("id",Mn.name),n.xp6(1),n.MGl("matTooltip"," ",n.xi3(3,7,je[Mn.name],je[Mn.name+"Masking"]),""),n.Q6J("innerHTML",Gi.transform(n.xi3(2,4,je[Mn.name],je[Mn.name+"Masking"]),Mn.type),n.oJD),n.xp6(3),n.hij(" ",n.Dn7(5,10,je[Mn.name],je[Mn.name+"Masking"],je.countryCode)," ")}}function Vt(Rn,Uo){if(1&Rn&&(n.TgZ(0,"span")(1,"b",78),n.ALo(2,"zenLabelMask"),n.ALo(3,"zenLabelMask"),n._uU(4),n.ALo(5,"zenLabelMask"),n.qZA()()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw(2).$implicit,Gi=n.oxw(2);n.xp6(1),n.MGl("matTooltip"," ",n.Dn7(3,7,je[Mn.name],Mn.maskType,je.countryCode),""),n.Q6J("innerHTML",Gi.transform(n.Dn7(2,3,je[Mn.name],Mn.maskType,je.countryCode),Mn.type),n.oJD),n.xp6(3),n.hij(" ",n.Dn7(5,11,je[Mn.name],Mn.maskType,je.countryCode)," ")}}function qt(Rn,Uo){if(1&Rn&&(n.TgZ(0,"span"),n._UZ(1,"b",78),n.qZA()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw(2).$implicit,Gi=n.oxw(2);n.xp6(1),n.s9C("matTooltip",je[Mn.name]),n.Q6J("innerHTML",Gi.transform(je[Mn.name],Mn.type),n.oJD)}}function bn(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"span",176),n.NdJ("debounceClick",function(){n.CHM(je);const Gi=n.oxw(2).$implicit,nr=n.oxw(4);return n.KtG(nr.navigationCellClick(Gi))}),n.YNc(1,Vt,6,15,"span",177),n.YNc(2,qt,2,2,"ng-template",null,80,n.W1O),n.qZA()}if(2&Rn){const je=n.MAs(3),Mn=n.oxw(4).$implicit;n.s9C("id",Mn.name),n.xp6(1),n.Q6J("ngIf",""!=Mn.maskType)("ngIfElse",je)}}function ii(Rn,Uo){if(1&Rn&&(n.ynx(0,74),n.YNc(1,xi,6,16,"span",174),n.YNc(2,Wn,6,14,"span",174),n.YNc(3,bn,4,3,"span",175),n.BQk()),2&Rn){const je=n.oxw(3).$implicit;n.Q6J("ngSwitch",je.maskType),n.xp6(1),n.Q6J("ngSwitchCase","all"),n.xp6(1),n.Q6J("ngSwitchCase","other")}}function Vi(Rn,Uo){if(1&Rn){const je=n.EpF();n.ynx(0),n.TgZ(1,"span",176),n.NdJ("debounceClick",function(){n.CHM(je);const Gi=n.oxw().$implicit,nr=n.oxw(4);return n.KtG(nr.navigationCellClick(Gi))}),n._UZ(2,"b",78),n.qZA(),n.BQk()}if(2&Rn){const je=n.oxw().$implicit,Mn=n.oxw(2).$implicit,Gi=n.oxw(2);n.xp6(1),n.s9C("id",Mn.name),n.xp6(1),n.s9C("matTooltip",je[Mn.name]),n.Q6J("innerHTML",Gi.transform(je[Mn.name],Mn.type),n.oJD)}}function Jn(Rn,Uo){if(1&Rn&&(n.YNc(0,ii,4,3,"ng-container",73),n.YNc(1,Vi,3,3,"ng-container",8)),2&Rn){const je=n.oxw(2).$implicit;n.Q6J("ngIf",je.hasOwnProperty("maskType")),n.xp6(1),n.Q6J("ngIf",!je.hasOwnProperty("maskType"))}}function zt(Rn,Uo){1&Rn&&n.YNc(0,Jn,2,2,"ng-template",69)}function mn(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"mat-checkbox",182),n.NdJ("change",function(Gi){n.CHM(je);const nr=n.oxw(5);return n.KtG(nr.headerCheckBoxChangeFn(Gi))}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&Rn){const je=n.oxw(5);n.Q6J("checked",je.allRowsSelected)("indeterminate",je.isIndeterminateValue)("hidden",!je.displayHeaderSelection)("disabled",je.disableHeaderSelection)("labelPosition","after"),n.xp6(1),n.hij(" ",n.lcZ(2,6,"all")," ")}}function Qn(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"mat-checkbox",183),n.NdJ("change",function(Gi){n.CHM(je);const nr=n.oxw(5);return n.KtG(nr.visibleAllCheckBoxChangeFn(Gi))}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&Rn){const je=n.oxw(5);n.Q6J("checked",je.visibleRowsSelected)("indeterminate",je.isIndeterminateValue)("hidden",!je.visibleRowsSelected)("labelPosition","after"),n.xp6(1),n.hij(" ",n.lcZ(2,5,"visible")," ")}}function ci(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"button",184),n.NdJ("click",function(){n.CHM(je);const Gi=n.oxw(5);return n.KtG(Gi.fabButtonActionClick(Gi.fabBtnConfig.name))}),n.ALo(1,"translate"),n.TgZ(2,"mat-icon",185),n._uU(3),n.qZA()()}if(2&Rn){const je=n.oxw(5);n.Q6J("matTooltip",n.lcZ(1,3,je.fabBtnConfig.name))("disabled",je.fabBtnConfig.disabled),n.xp6(3),n.Oqu(je.fabBtnConfig.iconName)}}function Oi(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",178),n.YNc(1,mn,3,8,"mat-checkbox",179),n.YNc(2,Qn,3,7,"mat-checkbox",180),n.YNc(3,ci,4,5,"button",181),n.qZA()),2&Rn){const je=n.oxw(4);n.xp6(1),n.Q6J("ngIf",je.displayHeaderSelection),n.xp6(1),n.Q6J("ngIf",je.visibleRowsSelected),n.xp6(1),n.Q6J("ngIf",je.fabBtnConfig&&je.fabBtnConfig.name)}}function Ai(Rn,Uo){1&Rn&&n.YNc(0,Oi,4,3,"ng-template",99)}function Pn(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"div",135)(1,"mat-checkbox",186),n.NdJ("change",function(Gi){const nr=n.CHM(je),is=nr.rowIndex,ta=nr.$implicit,dl=n.oxw(4);return n.KtG(dl.rowCheckboxChangeFn(Gi,is,ta))}),n.qZA()()}if(2&Rn){const je=Uo.$implicit,Mn=n.oxw(2).$implicit,Gi=n.oxw(2);n.s9C("id",Mn.name),n.xp6(1),n.Q6J("checked",je.isSelect)("disabled",!(!je.disableRowSelection&&!Gi.disableAllRowSelection))}}function qn(Rn,Uo){1&Rn&&n.YNc(0,Pn,2,3,"ng-template",69)}function Ni(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"div")(1,"mat-checkbox",187),n.NdJ("change",function(Gi){n.CHM(je);const nr=n.oxw(4);return n.KtG(nr.headerCheckBoxChangeFn(Gi))}),n._uU(2),n.ALo(3,"translate"),n.qZA()()}if(2&Rn){const je=n.oxw(4);n.xp6(1),n.Q6J("checked",je.allRowsSelected)("indeterminate",je.isIndeterminateValue)("disabled",je.disableHeaderSelection)("hidden",null!=je.postDate)("labelPosition","after"),n.xp6(1),n.hij(" ",n.lcZ(3,6,"all")," ")}}function Ue(Rn,Uo){1&Rn&&n.YNc(0,Ni,4,8,"ng-template",99)}function Ye(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"div",135)(1,"mat-checkbox",188),n.NdJ("change",function(Gi){const nr=n.CHM(je),is=nr.rowIndex,ta=nr.$implicit,dl=n.oxw(4);return n.KtG(dl.rowCheckboxChangeFn(Gi,is,ta))}),n.qZA()()}if(2&Rn){const je=Uo.$implicit,Mn=n.oxw(2).$implicit,Gi=n.oxw(2);n.s9C("id",Mn.name),n.xp6(1),n.Q6J("checked",je.isApprove)("disabled",je.disableRowSelection||"severe"==je.exceptionType.toLowerCase())("hidden",null!=Gi.postDate)}}function Me(Rn,Uo){1&Rn&&n.YNc(0,Ye,2,4,"ng-template",69)}function pe(Rn,Uo){1&Rn&&(n.TgZ(0,"div"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"hidePosted")," "))}function lt(Rn,Uo){1&Rn&&(n.TgZ(0,"div"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"showPosted")," "))}function yt(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"div",196),n.NdJ("click",function(Gi){return Gi.stopPropagation()}),n.TgZ(1,"mat-slide-toggle",197),n.NdJ("ngModelChange",function(Gi){n.CHM(je);const nr=n.oxw(6);return n.KtG(nr.showPostedBatch=Gi)})("change",function(){n.CHM(je);const Gi=n.oxw(6);return n.KtG(Gi.toggleChange())}),n.YNc(2,pe,3,3,"div",8),n.YNc(3,lt,3,3,"div",8),n.qZA()()}if(2&Rn){const je=n.oxw(6);n.xp6(1),n.Q6J("ngModel",je.showPostedBatch),n.xp6(1),n.Q6J("ngIf",je.showPostedBatch),n.xp6(1),n.Q6J("ngIf",!je.showPostedBatch)}}function on(Rn,Uo){1&Rn&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"hideOthers")," "))}function zi(Rn,Uo){1&Rn&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"showOthers")," "))}function Kn(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"div",196),n.NdJ("click",function(Gi){return Gi.stopPropagation()}),n.TgZ(1,"mat-slide-toggle",197),n.NdJ("ngModelChange",function(Gi){n.CHM(je);const nr=n.oxw(6);return n.KtG(nr.showOthersBatch=Gi)})("change",function(){n.CHM(je);const Gi=n.oxw(6);return n.KtG(Gi.toggleChange())}),n.YNc(2,on,3,3,"span",8),n.YNc(3,zi,3,3,"span",8),n.qZA()()}if(2&Rn){const je=n.oxw(6);n.xp6(1),n.Q6J("ngModel",je.showOthersBatch),n.xp6(1),n.Q6J("ngIf",je.showOthersBatch),n.xp6(1),n.Q6J("ngIf",!je.showOthersBatch)}}function ho(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"div",190)(1,"button",191)(2,"mat-icon",192),n.ALo(3,"translate"),n._uU(4,"format_list_bulleted"),n.qZA()(),n.TgZ(5,"mat-menu",193,194),n.NdJ("closed",function(Gi){n.CHM(je);const nr=n.oxw(5);return n.KtG(nr.gridSettingsMenuClosed(Gi))}),n.YNc(7,yt,4,3,"div",195),n.YNc(8,Kn,4,3,"div",195),n.qZA()()}if(2&Rn){const je=n.MAs(6),Mn=n.oxw(5);n.xp6(1),n.Q6J("matMenuTriggerFor",je),n.xp6(1),n.Q6J("matTooltip",n.lcZ(3,5,"gridOption")),n.xp6(3),n.Q6J("overlapTrigger",!1),n.xp6(2),n.Q6J("ngIf",Mn.showBatchHeaderAction),n.xp6(1),n.Q6J("ngIf",Mn.showBatchHeaderAction)}}function po(Rn,Uo){1&Rn&&n.GkF(0)}function $i(Rn,Uo){if(1&Rn&&(n.ynx(0),n.YNc(1,po,1,0,"ng-container",94),n.BQk()),2&Rn){const je=n.oxw(5);n.xp6(1),n.Q6J("ngTemplateOutlet",je.headerActionTemplate)}}function ro(Rn,Uo){if(1&Rn&&(n.YNc(0,ho,9,7,"div",189),n.YNc(1,$i,2,1,"ng-container",8)),2&Rn){const je=n.oxw(4);n.Q6J("ngIf",je.showGridActionMenu&&!je.headerActionTemplate),n.xp6(1),n.Q6J("ngIf",je.showGridActionMenu&&je.headerActionTemplate)}}function wo(Rn,Uo){1&Rn&&n.YNc(0,ro,2,2,"ng-template",99)}function io(Rn,Uo){if(1&Rn&&n._UZ(0,"div",135),2&Rn){const je=n.oxw(3).$implicit;n.s9C("id",je.name)}}function Wi(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"button",202),n.NdJ("click",function(Gi){n.CHM(je);const nr=n.oxw(2).$implicit,is=n.oxw(4);return Gi.stopPropagation(),n.KtG(is.getActionList(nr))}),n.TgZ(1,"mat-icon",48),n._uU(2,"more_vert"),n.qZA()()}if(2&Rn){n.oxw(6);const je=n.MAs(25);n.Q6J("zenPopperCtrlTriggerFor",je)}}function fo(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",200),n.YNc(1,Wi,3,1,"button",201),n.qZA()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw(2);n.s9C("id",je.name),n.xp6(1),n.Q6J("ngIf",Mn.showGridRowActionMenu)}}function cr(Rn,Uo){if(1&Rn&&(n.YNc(0,io,1,1,"div",198),n.YNc(1,fo,2,2,"div",199)),2&Rn){const je=n.oxw(4);n.Q6J("ngTemplateOutlet",je.dragAndDropCellActionTemplate),n.xp6(1),n.Q6J("ngIf",!je.dragAndDropCellActionTemplate)}}function Fr(Rn,Uo){1&Rn&&n.YNc(0,cr,2,2,"ng-template",69)}function jr(Rn,Uo){1&Rn&&n._UZ(0,"div")}function fs(Rn,Uo){if(1&Rn){const je=n.EpF();n.YNc(0,jr,1,0,"div",94),n.TgZ(1,"mat-menu",114,115)(3,"button",116),n.NdJ("click",function(Gi){n.CHM(je);const nr=n.oxw(2).$implicit,is=n.oxw(2);return n.KtG(is.filterMenuItemClick(Gi,nr,"current"))}),n.TgZ(4,"mat-icon"),n._uU(5,"sort"),n.qZA(),n.TgZ(6,"span"),n._uU(7),n.ALo(8,"translate"),n.qZA()(),n.TgZ(9,"button",116),n.NdJ("click",function(Gi){n.CHM(je);const nr=n.oxw(2).$implicit,is=n.oxw(2);return n.KtG(is.filterMenuItemClick(Gi,nr,"all"))}),n.TgZ(10,"mat-icon"),n._uU(11,"done_all"),n.qZA(),n.TgZ(12,"span"),n._uU(13),n.ALo(14,"translate"),n.qZA()()()}if(2&Rn){const je=n.oxw(4);n.Q6J("ngTemplateOutlet",je.dragAndDropHeaderActionTemplate),n.xp6(1),n.Q6J("overlapTrigger",!1),n.xp6(6),n.Oqu(n.lcZ(8,4,"currentPageFilter")),n.xp6(6),n.Oqu(n.lcZ(14,6,"allPageFilter"))}}function Ms(Rn,Uo){1&Rn&&n.YNc(0,fs,15,8,"ng-template",99)}function Ca(Rn,Uo){if(1&Rn&&n._UZ(0,"div",135),2&Rn){const je=n.oxw(3).$implicit;n.s9C("id",je.name)}}function ks(Rn,Uo){if(1&Rn&&n.YNc(0,Ca,1,1,"div",198),2&Rn){const je=n.oxw(4);n.Q6J("ngTemplateOutlet",je.dragAndDropCellActionTemplate)}}function ts(Rn,Uo){1&Rn&&n.YNc(0,ks,1,1,"ng-template",69)}function na(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"button",111,112),n.NdJ("menuClosed",function(Gi){n.CHM(je);const nr=n.oxw(4);return n.KtG(nr.filterMenuClosed(Gi))})("click",function(Gi){n.CHM(je);const nr=n.MAs(1),is=n.oxw(2).$implicit,ta=n.oxw(2);return n.KtG(ta.setColumnHeaderFilter(Gi,is,nr))}),n.ALo(2,"translate"),n._UZ(3,"span",117),n.qZA()}if(2&Rn){n.oxw();const je=n.MAs(4),Mn=n.oxw().$implicit,Gi=n.oxw(2);n.Q6J("matMenuTriggerFor",je)("ngClass",Gi.filteredColumn&&Gi.filteredColumn===Mn.name?"show-column-btn":"hide-column-btn")("matTooltip",n.lcZ(2,6,"columnFilter")),n.xp6(3),n.Gre("filter-prefix-icon k-icon ",Gi.showFilterToggle&&Gi.filteredColumn&&Gi.filteredColumn===Mn.name?"k-i-filter-clear":"k-i-filter"," ng-tns-c55-30")}}function Xs(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"div",203),n._uU(1),n.qZA(),n.YNc(2,na,4,8,"button",204),n.TgZ(3,"mat-menu",114,115)(5,"button",116),n.NdJ("click",function(Gi){n.CHM(je);const nr=n.oxw().$implicit,is=n.oxw(2);return n.KtG(is.filterMenuItemClick(Gi,nr,"current"))}),n.TgZ(6,"mat-icon"),n._uU(7,"sort"),n.qZA(),n.TgZ(8,"span"),n._uU(9),n.ALo(10,"translate"),n.qZA()(),n.TgZ(11,"button",116),n.NdJ("click",function(Gi){n.CHM(je);const nr=n.oxw().$implicit,is=n.oxw(2);return n.KtG(is.filterMenuItemClick(Gi,nr,"all"))}),n.TgZ(12,"mat-icon"),n._uU(13,"done_all"),n.qZA(),n.TgZ(14,"span"),n._uU(15),n.ALo(16,"translate"),n.qZA()()()}if(2&Rn){const je=Uo.$implicit,Mn=n.oxw(3);n.xp6(1),n.hij(" ",je.title," "),n.xp6(1),n.Q6J("ngIf",!Mn.endlessScroll),n.xp6(1),n.Q6J("overlapTrigger",!1),n.xp6(6),n.Oqu(n.lcZ(10,5,"currentPageFilter")),n.xp6(6),n.Oqu(n.lcZ(16,7,"allPageFilter"))}}function _a(Rn,Uo){1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn&&(n.xp6(1),n.hij(" \xa0\xa0 ",n.lcZ(2,1,"total"),""))}function Ws(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" : ",n.xi3(2,1,Mn.total[je.field],"USD")," ")}}function cs(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" : ",Mn.total[je.field]," ")}}function Ps(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" : ",n.xi3(2,1,Mn.total[je.field],"1.2-2")," ")}}function Qi(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" : ",n.xi3(2,1,Mn.total[je.field],"1.2-2")," ")}}function vo(Rn,Uo){1&Rn&&n._UZ(0,"strong")}function pi(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n.YNc(1,vo,1,0,"strong",70),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.field+"TotalCellTemplate"])("ngTemplateOutletContext",n.VKq(4,Lt,n.VKq(2,fi,je)))}}function to(Rn,Uo){1&Rn&&n._UZ(0,"strong")}function Ro(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n.YNc(1,to,1,0,"strong",70),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.field+"TotalCellTemplate"])("ngTemplateOutletContext",n.VKq(4,Lt,n.VKq(2,fi,je)))}}function Sr(Rn,Uo){1&Rn&&(n.TgZ(0,"strong",209),n._uU(1," Total "),n.qZA())}function rs(Rn,Uo){1&Rn&&n._UZ(0,"hr")}function Os(Rn,Uo){1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn&&(n.xp6(1),n.hij(" \xa0\xa0 ",n.lcZ(2,1,"grandTotal"),""))}function Ys(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" : ",n.xi3(2,1,Mn.grandTotal[je.field],"USD")," ")}}function la(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" : ",Mn.grandTotal[je.field]," ")}}function Da(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" : ",n.xi3(2,1,Mn.grandTotal[je.field],"1.2-2")," ")}}function Ka(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" : ",n.xi3(2,1,Mn.grandTotal[je.field],"1.2-2")," ")}}function nl(Rn,Uo){1&Rn&&n._UZ(0,"strong")}function il(Rn,Uo){1&Rn&&(n.TgZ(0,"strong",209),n._uU(1," Total "),n.qZA())}function xl(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div"),n.YNc(1,_a,3,3,"strong",8),n.ynx(2,74),n.YNc(3,Ws,3,4,"strong",207),n.YNc(4,cs,2,1,"strong",207),n.YNc(5,Ps,3,4,"strong",207),n.YNc(6,Qi,3,4,"strong",207),n.YNc(7,pi,2,6,"strong",207),n.YNc(8,Ro,2,6,"strong",207),n.YNc(9,Sr,2,0,"strong",208),n.BQk(),n.YNc(10,rs,1,0,"hr",8),n.YNc(11,Os,3,3,"strong",8),n.ynx(12,74),n.YNc(13,Ys,3,4,"strong",207),n.YNc(14,la,2,1,"strong",207),n.YNc(15,Da,3,4,"strong",207),n.YNc(16,Ka,3,4,"strong",207),n.YNc(17,nl,1,0,"strong",70),n.YNc(18,il,2,0,"strong",208),n.BQk(),n.qZA()),2&Rn){const je=n.oxw().$implicit,Mn=n.oxw(4);n.xp6(1),n.Q6J("ngIf",Mn.total&&Mn.obj.keys(Mn.total).length>0),n.xp6(1),n.Q6J("ngSwitch",je.filter),n.xp6(1),n.Q6J("ngSwitchCase","money"),n.xp6(1),n.Q6J("ngSwitchCase","int"),n.xp6(1),n.Q6J("ngSwitchCase","numeric"),n.xp6(1),n.Q6J("ngSwitchCase","decimal"),n.xp6(1),n.Q6J("ngSwitchCase","customHeaderAndCellTpl"),n.xp6(1),n.Q6J("ngSwitchCase","noFilterHeaderAndCellTpl"),n.xp6(2),n.Q6J("ngIf",Mn.total&&Mn.obj.keys(Mn.total).length>0&&Mn.grandTotal&&Mn.obj.keys(Mn.grandTotal).length>0),n.xp6(1),n.Q6J("ngIf",Mn.grandTotal&&Mn.obj.keys(Mn.grandTotal).length>0),n.xp6(1),n.Q6J("ngSwitch",je.filter),n.xp6(1),n.Q6J("ngSwitchCase","money"),n.xp6(1),n.Q6J("ngSwitchCase","int"),n.xp6(1),n.Q6J("ngSwitchCase","numeric"),n.xp6(1),n.Q6J("ngSwitchCase","decimal"),n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.field+"GrandTotalCellTemplate"])("ngTemplateOutletContext",n.VKq(19,Lt,n.VKq(17,fi,je)))}}function eo(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" ",n.xi3(2,1,Mn.total[je.field],"USD")," ")}}function To(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" ",Mn.total[je.field]," ")}}function Qo(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" ",n.xi3(2,1,Mn.total[je.field],"1.2-2")," ")}}function Dr(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" ",n.xi3(2,1,Mn.total[je.field],"1.2-2")," ")}}function _s(Rn,Uo){1&Rn&&n._UZ(0,"strong")}function ia(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n.YNc(1,_s,1,0,"strong",70),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.field+"TotalCellTemplate"])("ngTemplateOutletContext",n.VKq(4,Lt,n.VKq(2,fi,je)))}}function Ia(Rn,Uo){1&Rn&&n._UZ(0,"strong")}function ar(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n.YNc(1,Ia,1,0,"strong",70),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.field+"TotalCellTemplate"])("ngTemplateOutletContext",n.VKq(4,Lt,n.VKq(2,fi,je)))}}function wa(Rn,Uo){1&Rn&&(n.TgZ(0,"strong",209),n._uU(1," Total "),n.qZA())}function _l(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",210),n.ynx(1,74),n.YNc(2,eo,3,4,"strong",207),n.YNc(3,To,2,1,"strong",207),n.YNc(4,Qo,3,4,"strong",207),n.YNc(5,Dr,3,4,"strong",207),n.YNc(6,ia,2,6,"strong",207),n.YNc(7,ar,2,6,"strong",207),n.YNc(8,wa,2,0,"strong",208),n.BQk(),n.qZA()),2&Rn){const je=n.oxw().$implicit;n.xp6(1),n.Q6J("ngSwitch",je.filter),n.xp6(1),n.Q6J("ngSwitchCase","money"),n.xp6(1),n.Q6J("ngSwitchCase","int"),n.xp6(1),n.Q6J("ngSwitchCase","numeric"),n.xp6(1),n.Q6J("ngSwitchCase","decimal"),n.xp6(1),n.Q6J("ngSwitchCase","customHeaderAndCellTpl"),n.xp6(1),n.Q6J("ngSwitchCase","noFilterHeaderAndCellTpl")}}function Ya(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" ",n.xi3(2,1,Mn.grandTotal[je.field],"USD")," ")}}function pa(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" ",Mn.grandTotal[je.field]," ")}}function rl(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" ",n.xi3(2,1,Mn.grandTotal[je.field],"1.2-2")," ")}}function Nl(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" ",n.xi3(2,1,Mn.grandTotal[je.field],"1.2-2")," ")}}function nd(Rn,Uo){1&Rn&&n._UZ(0,"strong")}function Ct(Rn,Uo){1&Rn&&(n.TgZ(0,"strong",209),n._uU(1," Total "),n.qZA())}function rn(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",210),n.ynx(1,74),n.YNc(2,Ya,3,4,"strong",207),n.YNc(3,pa,2,1,"strong",207),n.YNc(4,rl,3,4,"strong",207),n.YNc(5,Nl,3,4,"strong",207),n.YNc(6,nd,1,0,"strong",70),n.YNc(7,Ct,2,0,"strong",208),n.BQk(),n.qZA()),2&Rn){const je=n.oxw().$implicit,Mn=n.oxw(4);n.xp6(1),n.Q6J("ngSwitch",je.filter),n.xp6(1),n.Q6J("ngSwitchCase","money"),n.xp6(1),n.Q6J("ngSwitchCase","int"),n.xp6(1),n.Q6J("ngSwitchCase","numeric"),n.xp6(1),n.Q6J("ngSwitchCase","decimal"),n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.field+"GrandTotalCellTemplate"])("ngTemplateOutletContext",n.VKq(9,Lt,n.VKq(7,fi,je)))}}function We(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" ",n.xi3(2,1,Mn.total[je.field],"USD")," ")}}function Ft(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" ",Mn.total[je.field]," ")}}function ct(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" ",n.xi3(2,1,Mn.total[je.field],"1.2-2")," ")}}function Qt(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" ",n.xi3(2,1,Mn.total[je.field],"1.2-2")," ")}}function gi(Rn,Uo){1&Rn&&n._UZ(0,"strong")}function Do(Rn,Uo){1&Rn&&n._UZ(0,"strong")}function Po(Rn,Uo){1&Rn&&(n.TgZ(0,"strong",209),n._uU(1," Total "),n.qZA())}function Or(Rn,Uo){1&Rn&&n._UZ(0,"hr")}function hs(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" ",n.xi3(2,1,Mn.grandTotal[je.field],"USD")," ")}}function Zs(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" ",Mn.grandTotal[je.field]," ")}}function ca(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" ",n.xi3(2,1,Mn.grandTotal[je.field],"1.2-2")," ")}}function za(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.hij(" ",n.xi3(2,1,Mn.grandTotal[je.field],"1.2-2")," ")}}function cl(Rn,Uo){1&Rn&&n._UZ(0,"strong")}function yc(Rn,Uo){1&Rn&&n._UZ(0,"strong")}function bc(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n.YNc(1,cl,1,0,"strong",70),n.YNc(2,yc,1,0,"strong",70),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.field+"TotalCellTemplate"])("ngTemplateOutletContext",n.VKq(6,Lt,n.VKq(4,fi,je))),n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.field+"GrandTotalCellTemplate"])("ngTemplateOutletContext",n.VKq(10,Lt,n.VKq(8,fi,je)))}}function ec(Rn,Uo){1&Rn&&n._UZ(0,"strong")}function Wl(Rn,Uo){1&Rn&&n._UZ(0,"strong")}function va(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n.YNc(1,ec,1,0,"strong",70),n.YNc(2,Wl,1,0,"strong",70),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw(4);n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.field+"TotalCellTemplate"])("ngTemplateOutletContext",n.VKq(6,Lt,n.VKq(4,fi,je))),n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.field+"GrandTotalCellTemplate"])("ngTemplateOutletContext",n.VKq(10,Lt,n.VKq(8,fi,je)))}}function Hc(Rn,Uo){1&Rn&&(n.TgZ(0,"strong",209),n._uU(1," Total "),n.qZA())}function Vc(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",210),n.ynx(1,74),n.YNc(2,We,3,4,"strong",207),n.YNc(3,Ft,2,1,"strong",207),n.YNc(4,ct,3,4,"strong",207),n.YNc(5,Qt,3,4,"strong",207),n.YNc(6,gi,1,0,"strong",70),n.YNc(7,Do,1,0,"strong",70),n.YNc(8,Po,2,0,"strong",208),n.BQk(),n.YNc(9,Or,1,0,"hr",8),n.ynx(10,74),n.YNc(11,hs,3,4,"strong",207),n.YNc(12,Zs,2,1,"strong",207),n.YNc(13,ca,3,4,"strong",207),n.YNc(14,za,3,4,"strong",207),n.YNc(15,bc,3,12,"strong",207),n.YNc(16,va,3,12,"strong",207),n.YNc(17,Hc,2,0,"strong",208),n.BQk(),n.qZA()),2&Rn){const je=n.oxw().$implicit,Mn=n.oxw(4);n.xp6(1),n.Q6J("ngSwitch",je.filter),n.xp6(1),n.Q6J("ngSwitchCase","money"),n.xp6(1),n.Q6J("ngSwitchCase","int"),n.xp6(1),n.Q6J("ngSwitchCase","numeric"),n.xp6(1),n.Q6J("ngSwitchCase","decimal"),n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.field+"TotalCellTemplate"])("ngTemplateOutletContext",n.VKq(19,Lt,n.VKq(17,fi,je))),n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.field+"GrandTotalCellTemplate"])("ngTemplateOutletContext",n.VKq(23,Lt,n.VKq(21,fi,je))),n.xp6(2),n.Q6J("ngIf",Mn.total&&Mn.obj.keys(Mn.total).length>0&&Mn.grandTotal&&Mn.obj.keys(Mn.grandTotal).length>0),n.xp6(1),n.Q6J("ngSwitch",je.filter),n.xp6(1),n.Q6J("ngSwitchCase","money"),n.xp6(1),n.Q6J("ngSwitchCase","int"),n.xp6(1),n.Q6J("ngSwitchCase","numeric"),n.xp6(1),n.Q6J("ngSwitchCase","decimal"),n.xp6(1),n.Q6J("ngSwitchCase","customHeaderAndCellTpl"),n.xp6(1),n.Q6J("ngSwitchCase","noFilterHeaderAndCellTpl")}}function Mu(Rn,Uo){if(1&Rn&&(n.YNc(0,xl,19,21,"div",8),n.YNc(1,_l,9,7,"div",206),n.YNc(2,rn,8,11,"div",206),n.YNc(3,Vc,18,25,"div",206)),2&Rn){const je=Uo.columnIndex,Mn=n.oxw(4);n.Q6J("ngIf",je==Mn.numberOfActions),n.xp6(1),n.Q6J("ngIf",je!=Mn.numberOfActions&&Mn.total&&Mn.obj.keys(Mn.total).length>0&&(!Mn.grandTotal||0==Mn.obj.keys(Mn.grandTotal).length)),n.xp6(1),n.Q6J("ngIf",je!=Mn.numberOfActions&&(!Mn.total||0==Mn.obj.keys(Mn.total).length)&&Mn.grandTotal&&Mn.obj.keys(Mn.grandTotal).length>0),n.xp6(1),n.Q6J("ngIf",je!=Mn.numberOfActions&&Mn.total&&Mn.obj.keys(Mn.total).length>0&&Mn.grandTotal&&Mn.obj.keys(Mn.grandTotal).length>0)}}function Tl(Rn,Uo){1&Rn&&n.YNc(0,Mu,4,4,"ng-template",205)}function cc(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",135),n._uU(1),n.ALo(2,"date"),n.qZA()),2&Rn){const je=n.oxw().$implicit,Mn=n.oxw().$implicit;n.s9C("id",Mn.name),n.xp6(1),n.hij(" ",n.xi3(2,2,je[Mn.name],"MM/dd/yyyy")," ")}}function Id(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",135),n._uU(1),n.ALo(2,"date"),n.qZA()),2&Rn){const je=n.oxw().$implicit,Mn=n.oxw().$implicit;n.s9C("id",Mn.name),n.xp6(1),n.Oqu(n.xi3(2,2,je[Mn.name],"MM/dd/yyyy h:mm:ss"))}}function vu(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",135),n._uU(1),n.ALo(2,"date"),n.qZA()),2&Rn){const je=n.oxw().$implicit,Mn=n.oxw().$implicit;n.s9C("id",Mn.name),n.xp6(1),n.Oqu(n.xi3(2,2,je[Mn.name],"MM/dd/yyyy HH:mm a"))}}function th(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",135),n._uU(1),n.ALo(2,"date"),n.qZA()),2&Rn){const je=n.oxw().$implicit,Mn=n.oxw().$implicit;n.s9C("id",Mn.name),n.xp6(1),n.Oqu(n.xi3(2,2,je[Mn.name],"hh:mm a"))}}function Uh(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",135),n._uU(1),n.ALo(2,"number"),n.qZA()),2&Rn){const je=n.oxw().$implicit,Mn=n.oxw().$implicit;n.s9C("id",Mn.name),n.xp6(1),n.Oqu(n.xi3(2,2,je[Mn.name],"1.2-2"))}}function Jc(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",135),n._uU(1),n.ALo(2,"number"),n.qZA()),2&Rn){const je=n.oxw().$implicit,Mn=n.oxw().$implicit;n.s9C("id",Mn.name),n.xp6(1),n.hij(" ",n.xi3(2,2,je[Mn.name],"1."+Mn.decimalPoint+"-"+Mn.decimalPoint),"")}}function nh(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",135),n._uU(1),n.qZA()),2&Rn){const je=n.oxw().$implicit,Mn=n.oxw().$implicit;n.s9C("id",Mn.name),n.xp6(1),n.Oqu(je[Mn.name])}}function cd(Rn,Uo){if(1&Rn&&(n.TgZ(0,"span",135),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&Rn){const je=n.oxw().$implicit,Mn=n.oxw().$implicit;n.s9C("id",Mn.name),n.xp6(1),n.Oqu(n.xi3(2,2,je[Mn.name],je.currency))}}function Cd(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",135),n._uU(1),n.qZA()),2&Rn){const je=n.oxw().$implicit,Mn=n.oxw().$implicit;n.s9C("id",Mn.name),n.xp6(1),n.hij(" ",je[Mn.name]?"True":"False"," ")}}function yu(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",135),n._UZ(1,"mat-checkbox",214),n.qZA()),2&Rn){const je=n.oxw().$implicit,Mn=n.oxw().$implicit;n.s9C("id",Mn.name),n.xp6(1),n.Q6J("checked",je[Mn.name])("disabled",!0)}}function bu(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",135)(1,"mat-icon"),n._uU(2," star "),n.qZA()()),2&Rn){const je=n.oxw().$implicit,Mn=n.oxw().$implicit;n.s9C("id",Mn.name),n.xp6(1),n.Tol("Yes"==je[Mn.name]?"amber-600-fg mat-icon material-icons ng-star-inserted":"secondary-text mat-icon material-icons ng-star-inserted")}}function nu(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"div",215),n.NdJ("dblclick",function(){n.CHM(je);const Gi=n.oxw().$implicit,nr=n.oxw(3);return n.KtG(nr.gridCellDblClick(Gi))}),n.TgZ(1,"b"),n._uU(2),n.ALo(3,"translate"),n.qZA()()}if(2&Rn){const je=n.oxw().$implicit,Mn=n.oxw().$implicit;n.s9C("id",Mn.name),n.xp6(2),n.Oqu(n.lcZ(3,2,je[Mn.name]))}}function Zu(Rn,Uo){1&Rn&&n.GkF(0)}const mc=function(Rn,Uo,je){return{column:Rn,dataItem:Uo,rowIndex:je}};function xd(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",216),n.YNc(1,Zu,1,0,"ng-container",70),n.qZA()),2&Rn){const je=n.oxw(),Mn=je.$implicit,Gi=je.rowIndex,nr=n.oxw().$implicit,is=n.oxw(2);n.s9C("id",nr.name),n.xp6(1),n.Q6J("ngTemplateOutlet",is.config[nr.name+"CellTemplate"])("ngTemplateOutletContext",n.VKq(7,Lt,n.kEZ(3,mc,nr,Mn,Gi)))}}function fu(Rn,Uo){1&Rn&&n.GkF(0)}function Fl(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",216),n.YNc(1,fu,1,0,"ng-container",70),n.qZA()),2&Rn){const je=n.oxw(),Mn=je.$implicit,Gi=je.rowIndex,nr=n.oxw().$implicit,is=n.oxw(2);n.s9C("id",nr.name),n.xp6(1),n.Q6J("ngTemplateOutlet",is.config[nr.name+"CellTemplate"])("ngTemplateOutletContext",n.VKq(7,Lt,n.kEZ(3,mc,nr,Mn,Gi)))}}function Jd(Rn,Uo){if(1&Rn&&(n.TgZ(0,"span",135),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn){const je=n.oxw(2).$implicit,Mn=n.oxw().$implicit;n.s9C("id",Mn.name),n.xp6(1),n.hij(" ",je[Mn.name]?n.lcZ(2,2,je[Mn.name]):"\xa0"," ")}}function Jl(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",135),n._uU(1),n.ALo(2,"zenLabelMask"),n.qZA()),2&Rn){const je=n.oxw(4).$implicit,Mn=n.oxw().$implicit;n.s9C("id",Mn.name),n.xp6(1),n.hij(" ",n.Dn7(2,2,je[Mn.name],Mn.name+"Masking",je.countryCode)," ")}}function gd(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",135),n._uU(1),n.ALo(2,"zenLabelMask"),n.qZA()),2&Rn){const je=n.oxw(4).$implicit,Mn=n.oxw().$implicit;n.s9C("id",Mn.name),n.xp6(1),n.hij(" ",n.Dn7(2,2,je[Mn.name],je[Mn.name+"Masking"],je.countryCode)," ")}}function dd(Rn,Uo){if(1&Rn&&(n.TgZ(0,"span",135),n._uU(1),n.ALo(2,"zenLabelMask"),n.qZA()),2&Rn){const je=n.oxw(5).$implicit,Mn=n.oxw().$implicit;n.s9C("id",Mn.name),n.xp6(1),n.hij(" ",n.Dn7(2,2,je[Mn.name],Mn.maskType,je.countryCode)," ")}}function gc(Rn,Uo){if(1&Rn&&(n.TgZ(0,"span",135),n._uU(1),n.qZA()),2&Rn){const je=n.oxw(5).$implicit,Mn=n.oxw().$implicit;n.s9C("id",Mn.name),n.xp6(1),n.Oqu(je[Mn.name]?je[Mn.name]:"\xa0")}}function ih(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div"),n.YNc(1,dd,3,6,"span",217),n.YNc(2,gc,2,2,"ng-template",null,80,n.W1O),n.qZA()),2&Rn){const je=n.MAs(3),Mn=n.oxw(5).$implicit;n.xp6(1),n.Q6J("ngIf",""!=Mn.maskType)("ngIfElse",je)}}function Cu(Rn,Uo){if(1&Rn&&(n.ynx(0,74),n.YNc(1,Jl,3,6,"div",211),n.YNc(2,gd,3,6,"div",211),n.YNc(3,ih,4,2,"div",76),n.BQk()),2&Rn){const je=n.oxw(4).$implicit;n.Q6J("ngSwitch",je.maskType),n.xp6(1),n.Q6J("ngSwitchCase","all"),n.xp6(1),n.Q6J("ngSwitchCase","other")}}function id(Rn,Uo){if(1&Rn&&(n.ynx(0),n.TgZ(1,"span",135),n._uU(2),n.qZA(),n.BQk()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw().$implicit;n.xp6(1),n.s9C("id",Mn.name),n.xp6(1),n.Oqu(je[Mn.name]?je[Mn.name]:"\xa0")}}function ph(Rn,Uo){if(1&Rn&&(n.YNc(0,Cu,4,3,"ng-container",73),n.YNc(1,id,3,2,"ng-container",8)),2&Rn){const je=n.oxw(3).$implicit;n.Q6J("ngIf",je.hasOwnProperty("maskType")),n.xp6(1),n.Q6J("ngIf",!je.hasOwnProperty("maskType"))}}function ud(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div"),n.YNc(1,Jd,3,4,"span",217),n.YNc(2,ph,2,2,"ng-template",null,218,n.W1O),n.qZA()),2&Rn){const je=n.MAs(3),Mn=n.oxw(2).$implicit;n.xp6(1),n.Q6J("ngIf",Mn.translate)("ngIfElse",je)}}function ql(Rn,Uo){if(1&Rn&&(n.ynx(0,74),n.YNc(1,cc,3,5,"div",211),n.YNc(2,Id,3,5,"div",211),n.YNc(3,vu,3,5,"div",211),n.YNc(4,th,3,5,"div",211),n.YNc(5,Uh,3,5,"div",211),n.YNc(6,Jc,3,5,"div",211),n.YNc(7,nh,2,2,"div",211),n.YNc(8,cd,3,5,"span",211),n.YNc(9,Cd,2,2,"div",211),n.YNc(10,yu,2,3,"div",211),n.YNc(11,bu,3,4,"div",211),n.YNc(12,nu,4,4,"div",212),n.YNc(13,xd,2,9,"div",213),n.YNc(14,Fl,2,9,"div",213),n.YNc(15,ud,4,2,"div",76),n.BQk()),2&Rn){const je=n.oxw().$implicit;n.Q6J("ngSwitch",je.type),n.xp6(1),n.Q6J("ngSwitchCase","date"),n.xp6(1),n.Q6J("ngSwitchCase","dateTime"),n.xp6(1),n.Q6J("ngSwitchCase","dateTimeAmPm"),n.xp6(1),n.Q6J("ngSwitchCase","time"),n.xp6(1),n.Q6J("ngSwitchCase","numeric"),n.xp6(1),n.Q6J("ngSwitchCase","decimal"),n.xp6(1),n.Q6J("ngSwitchCase","int"),n.xp6(1),n.Q6J("ngSwitchCase","money"),n.xp6(1),n.Q6J("ngSwitchCase","bit"),n.xp6(1),n.Q6J("ngSwitchCase","disabledCheckbox"),n.xp6(1),n.Q6J("ngSwitchCase","favorite"),n.xp6(1),n.Q6J("ngSwitchCase","reportName"),n.xp6(1),n.Q6J("ngSwitchCase","customHeaderAndCellTpl"),n.xp6(1),n.Q6J("ngSwitchCase","noFilterHeaderAndCellTpl")}}const Ku=function(){return{"line-height":"1em","vertical-align":"middle","font-family":"inherit","border-bottom":"1px solid #eee"}},od=function(Rn){return[Rn]},Ic=function(){return{"background-color":"#f6f6f6",color:"#000","line-height":"1em"}};function Gd(Rn,Uo){if(1&Rn&&(n.TgZ(0,"kendo-grid-column",96),n.ALo(1,"translate"),n.YNc(2,rt,4,4,"ng-template",97),n.YNc(3,ao,3,3,"ng-template",66),n.YNc(4,Rr,1,9,"ng-template",98),n.YNc(5,Ti,1,0,null,8),n.YNc(6,ri,1,0,null,8),n.YNc(7,Ii,1,0,null,8),n.YNc(8,lr,1,0,null,8),n.YNc(9,_t,1,0,null,8),n.YNc(10,qo,1,0,null,8),n.YNc(11,kr,1,0,null,8),n.YNc(12,Ss,1,0,null,8),n.YNc(13,$o,1,0,null,8),n.YNc(14,No,1,0,null,8),n.YNc(15,js,1,0,null,8),n.YNc(16,Zr,1,0,null,8),n.YNc(17,Hs,1,0,null,8),n.YNc(18,Za,1,0,null,8),n.YNc(19,vi,1,0,null,8),n.YNc(20,yr,1,0,null,8),n.YNc(21,da,1,0,null,8),n.YNc(22,ra,1,0,null,8),n.YNc(23,St,1,0,null,8),n.YNc(24,Sn,1,0,null,8),n.YNc(25,ui,1,0,null,8),n.YNc(26,Ht,1,0,null,8),n.YNc(27,$e,1,0,null,8),n.YNc(28,Be,1,0,null,8),n.YNc(29,$t,1,0,null,8),n.YNc(30,Ci,1,0,null,8),n.YNc(31,zt,1,0,null,8),n.YNc(32,Ai,1,0,null,8),n.YNc(33,qn,1,0,null,8),n.YNc(34,Ue,1,0,null,8),n.YNc(35,Me,1,0,null,8),n.YNc(36,wo,1,0,null,8),n.YNc(37,Fr,1,0,null,8),n.YNc(38,Ms,1,0,null,8),n.YNc(39,ts,1,0,null,8),n.YNc(40,Xs,17,9,"ng-template",99),n.YNc(41,Tl,1,0,null,8),n.YNc(42,ql,16,15,"ng-template",69),n.qZA()),2&Rn){const je=Uo.$implicit,Mn=Uo.index,Gi=n.oxw(2);n.Akn(n.DdM(54,Ku)),n.Tol(je.locked?n.VKq(55,od,"locked-column-cell"+Mn):""),n.Q6J("field",je.name)("title",n.lcZ(1,52,je.display?je.display:je.name))("filter",je.type)("editor",je.editor)("filterable",1==je.filterable&&"menu")("sortable",1==je.sort)("hidden",Gi.hiddenColumns.indexOf(je.name)>-1)("headerStyle",n.DdM(57,bo))("headerClass",je.locked?n.VKq(58,od,"locked-column-header"+Mn):"")("footerClass",je.locked?n.VKq(60,od,"locked-column-footer"+Mn):"")("footerStyle",n.DdM(62,Ic))("width",Gi.widths[je.name]&&Gi.widths[je.name]>0?Gi.widths[je.name]:1),n.xp6(5),n.Q6J("ngIf","editAction"==je.name&&!Gi.config.customEditActions),n.xp6(1),n.Q6J("ngIf","editAction"==je.name&&!Gi.config.customEditActions),n.xp6(1),n.Q6J("ngIf","deleteAction"==je.name&&!Gi.config.customDeleteActions),n.xp6(1),n.Q6J("ngIf","deleteAction"==je.name&&!Gi.config.customDeleteActions),n.xp6(1),n.Q6J("ngIf","customHeaderAndCellTpl"==je.type&&!("note"==je.name||"message"==je.name||je.defaultCustomColumn)),n.xp6(1),n.Q6J("ngIf","noFilterHeaderAndCellTpl"==je.type),n.xp6(1),n.Q6J("ngIf","icon"==je.name),n.xp6(1),n.Q6J("ngIf",("note"==je.name||"message"==je.name||je.defaultCustomColumn)&&"customHeaderAndCellTpl"==je.type),n.xp6(1),n.Q6J("ngIf","view"==je.name&&Gi.slideVisible),n.xp6(1),n.Q6J("ngIf","historyView"==je.name),n.xp6(1),n.Q6J("ngIf","view"==je.name),n.xp6(1),n.Q6J("ngIf","multiView"==je.name),n.xp6(1),n.Q6J("ngIf","isEdit"==je.name),n.xp6(1),n.Q6J("ngIf","isEdit"==je.name),n.xp6(1),n.Q6J("ngIf","dropDown"==je.editor&&Gi.formData),n.xp6(1),n.Q6J("ngIf","searchEditor"==je.editor&&Gi.formData),n.xp6(1),n.Q6J("ngIf","zenSelect"==je.editor&&Gi.formData&&Gi.formData.controls[je.name]),n.xp6(1),n.Q6J("ngIf","zenSelectConfigEditor"==je.editor&&Gi.formData&&Gi.formData.controls[je.name]),n.xp6(1),n.Q6J("ngIf","zenSelectNewEditor"==je.editor&&Gi.formData&&Gi.formData.controls[je.name]),n.xp6(1),n.Q6J("ngIf","zenSelectNewConfigEditor"==je.editor&&Gi.formData&&Gi.formData.controls[je.name]),n.xp6(1),n.Q6J("ngIf",Gi.formData&&"textEditor"==je.editor),n.xp6(1),n.Q6J("ngIf",Gi.formData&&"datePicker"==je.editor),n.xp6(1),n.Q6J("ngIf",Gi.formData&&Gi.formData.controls[je.name]&&"currencyEditor"==je.editor),n.xp6(1),n.Q6J("ngIf",Gi.formData&&Gi.formData.controls[je.name]&&"decimalEditor"==je.editor),n.xp6(1),n.Q6J("ngIf",Gi.formData&&"passwordEditor"==je.editor),n.xp6(1),n.Q6J("ngIf","multiView"==je.name),n.xp6(1),n.Q6J("ngIf",je.name==Gi.navigation),n.xp6(1),n.Q6J("ngIf","isSelect"==je.name),n.xp6(1),n.Q6J("ngIf","isSelect"==je.name),n.xp6(1),n.Q6J("ngIf","isApprove"==je.name),n.xp6(1),n.Q6J("ngIf","isApprove"==je.name),n.xp6(1),n.Q6J("ngIf","actions"==je.name),n.xp6(1),n.Q6J("ngIf","actions"==je.name),n.xp6(1),n.Q6J("ngIf","dragAndDrop"==je.name),n.xp6(1),n.Q6J("ngIf","dragAndDrop"==je.name),n.xp6(2),n.Q6J("ngIf",Gi.total&&Gi.obj.keys(Gi.total).length>0||Gi.grandTotal&&Gi.obj.keys(Gi.grandTotal).length>0)}}function $d(Rn,Uo){if(1&Rn&&(n.ynx(0),n.YNc(1,Gd,43,63,"kendo-grid-column",95),n.BQk()),2&Rn){const je=n.oxw();n.xp6(1),n.Q6J("ngForOf",je.columns)("ngForTrackBy",je.trackColumnFn)}}function dc(Rn,Uo){1&Rn&&(n.TgZ(0,"div"),n._uU(1,"\xa0"),n.qZA())}function $c(Rn,Uo){if(1&Rn&&(n.TgZ(0,"mat-option",133),n._uU(1),n.qZA()),2&Rn){const je=Uo.$implicit;n.Q6J("value",je.text),n.xp6(1),n.hij(" ",je.text," ")}}function oc(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"div",219)(1,"div",220),n._UZ(2,"kendo-pager-prev-buttons",220)(3,"kendo-pager-next-buttons",220),n.TgZ(4,"mat-form-field",221)(5,"mat-label"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"mat-select",222),n.NdJ("ngModelChange",function(Gi){n.CHM(je);const nr=n.oxw();return n.KtG(nr.pageSizeTxt=Gi)})("selectionChange",function(){n.CHM(je);const Gi=n.oxw();return n.KtG(Gi.pageSizeChange({skip:Gi.skip,take:Gi.pageSizeTxt}))}),n.YNc(9,$c,2,2,"mat-option",132),n.qZA()()(),n.TgZ(10,"div",223)(11,"div",224),n._uU(12),n.ALo(13,"translate"),n.qZA(),n._UZ(14,"kendo-pager-info",225),n.qZA()()}if(2&Rn){const je=n.oxw();n.xp6(4),n.Q6J("floatLabel","never"),n.xp6(2),n.Oqu(n.lcZ(7,5,"pageSize")),n.xp6(2),n.Q6J("ngModel",je.pageSizeTxt),n.xp6(1),n.Q6J("ngForOf",je.pageSizeOptions),n.xp6(3),n.hij(" \xa0",n.lcZ(13,7,"itemsPerPage")," ")}}function Hd(Rn,Uo){1&Rn&&n.GkF(0)}function Rc(Rn,Uo){if(1&Rn&&n.YNc(0,Hd,1,0,"ng-container",227),2&Rn){const je=n.oxw(2);n.Q6J("ngComponentOutlet",je.detailRowComponent)("ngComponentOutletInjector",je.detailRowInjector)}}function _d(Rn,Uo){1&Rn&&n.YNc(0,Rc,1,2,"ng-template",226)}function rc(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"mat-checkbox",68),n.NdJ("change",function(Gi){n.CHM(je);const nr=n.oxw(2),is=nr.value,ta=nr.field,dl=n.oxw(2);return n.KtG(dl.groupHeaderCheckBoxChangeFn(Gi,is,ta))}),n.qZA()}if(2&Rn){const je=n.oxw(2).value,Mn=n.oxw(2);n.Q6J("id",je)("name",je)("checked",Mn.groupHeaderChk[0][je.charAt(0).toLowerCase()+je.slice(1).split(" ").join("")+"Checked"])("indeterminate",Mn.groupHeaderChk[0][je.charAt(0).toLowerCase()+je.slice(1).split(" ").join("")+"Indeterminate"])}}function Di(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div"),n.YNc(1,rc,1,4,"mat-checkbox",67),n.qZA()),2&Rn){const je=n.oxw().value;n.xp6(1),n.Q6J("ngIf",je)}}function uo(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"toString"),n.qZA()),2&Rn){const je=n.oxw(2).value;n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,je)))}}function Wo(Rn,Uo){if(1&Rn&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn){const je=n.oxw(2).field;n.xp6(1),n.hij("\xa0\xa0",n.lcZ(2,1,je)+": ","")}}function vr(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"translate"),n.ALo(3,"toString"),n.qZA()),2&Rn){const je=n.oxw(2).value;n.xp6(1),n.Oqu(n.lcZ(2,1,n.lcZ(3,3,je)))}}function Jr(Rn,Uo){if(1&Rn&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn){const je=n.oxw().$implicit;n.xp6(1),n.Oqu(", "+n.lcZ(2,1,je)+" : ")}}function ns(Rn,Uo){if(1&Rn&&(n.ynx(0),n.YNc(1,Jr,3,3,"span",8),n._uU(2,"\xa0"),n.TgZ(3,"strong"),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"toString"),n.qZA(),n.BQk()),2&Rn){const je=Uo.$implicit,Mn=n.oxw(2).group;n.xp6(1),n.Q6J("ngIf",Mn.items[0][je]),n.xp6(3),n.Oqu(n.lcZ(5,2,n.lcZ(6,4,Mn.items[0][je])))}}function vs(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div"),n.YNc(1,uo,4,5,"strong",8),n.YNc(2,Wo,3,3,"span",8),n._uU(3,"\xa0"),n.YNc(4,vr,4,5,"strong",8),n.YNc(5,ns,7,6,"ng-container",55),n.qZA()),2&Rn){const je=n.oxw(),Mn=je.field,Gi=je.value,nr=n.oxw(2);n.xp6(1),n.Q6J("ngIf",nr.groupingTemplate&&nr.groupingTemplate.showValueOnly),n.xp6(1),n.Q6J("ngIf",!nr.groupingTemplate&&Mn),n.xp6(2),n.Q6J("ngIf",!nr.groupingTemplate&&Gi),n.xp6(1),n.Q6J("ngForOf",nr.groupLabels)}}function Ns(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn){const je=n.oxw(2),Mn=je.group,Gi=je.field,nr=n.oxw(2);n.xp6(1),n.Oqu(n.lcZ(2,1,Mn.items[0][nr.groupLabel(Gi)]))}}function Is(Rn,Uo){if(1&Rn&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn){const je=n.oxw(2).field,Mn=n.oxw(2);n.xp6(1),n.hij("\xa0\xa0",n.lcZ(2,1,Mn.groupLabel(je))+": ","")}}function qs(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn){const je=n.oxw(2),Mn=je.group,Gi=je.field,nr=n.oxw(2);n.xp6(1),n.Oqu(n.lcZ(2,1,Mn.items[0][nr.groupLabel(Gi)]))}}function fa(Rn,Uo){if(1&Rn&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn){const je=n.oxw().$implicit;n.xp6(1),n.Oqu(", "+n.lcZ(2,1,je)+" : ")}}function ye(Rn,Uo){if(1&Rn&&(n.ynx(0),n.YNc(1,fa,3,3,"span",8),n._uU(2,"\xa0"),n.TgZ(3,"strong"),n._uU(4),n.ALo(5,"translate"),n.ALo(6,"toString"),n.qZA(),n.BQk()),2&Rn){const je=Uo.$implicit,Mn=n.oxw(2).group;n.xp6(1),n.Q6J("ngIf",Mn.items[0][je]),n.xp6(3),n.Oqu(n.lcZ(5,2,n.lcZ(6,4,Mn.items[0][je])))}}function bt(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div"),n.YNc(1,Ns,3,3,"strong",8),n.YNc(2,Is,3,3,"span",8),n._uU(3,"\xa0"),n.YNc(4,qs,3,3,"strong",8),n.YNc(5,ye,7,6,"ng-container",55),n.qZA()),2&Rn){const je=n.oxw(3);n.xp6(1),n.Q6J("ngIf",je.groupingTemplate&&je.groupingTemplate.showValueOnly),n.xp6(1),n.Q6J("ngIf",!je.groupingTemplate),n.xp6(2),n.Q6J("ngIf",!je.groupingTemplate),n.xp6(1),n.Q6J("ngForOf",je.groupLabels)}}function be(Rn,Uo){if(1&Rn&&(n.YNc(0,Di,2,1,"div",8),n.YNc(1,vs,6,4,"div",8),n.YNc(2,bt,6,4,"div",8)),2&Rn){const je=Uo.field,Mn=n.oxw(2);n.Q6J("ngIf",Mn.showGroupHeaderCheckBox),n.xp6(1),n.Q6J("ngIf","customGroup"!==je),n.xp6(1),n.Q6J("ngIf","customGroup"===je)}}function st(Rn,Uo){if(1&Rn&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&Rn){const je=n.oxw().$implicit,Mn=n.oxw().$implicit;n.xp6(1),n.Oqu(n.xi3(2,1,je[Mn.name].sum,"USD"))}}function ei(Rn,Uo){if(1&Rn&&n.YNc(0,st,3,4,"span",8),2&Rn){const je=Uo.$implicit;n.Q6J("ngIf",je&&je.length>0)}}function _o(Rn,Uo){1&Rn&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"total")," "))}function gr(Rn,Uo){1&Rn&&(n.TgZ(0,"span"),n._UZ(1,"br"),n._uU(2),n.ALo(3,"translate"),n.qZA()),2&Rn&&(n.xp6(2),n.hij(" ",n.lcZ(3,1,"grandTotal")," "))}function ds(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw();n.xp6(1),n.hij(" ",n.xi3(2,1,Mn.total[je.name],"USD")," ")}}function us(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.qZA()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw();n.xp6(1),n.hij(" ",Mn.total[je.name]," ")}}function zs(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw();n.xp6(1),n.hij(" ",n.xi3(2,1,Mn.total[je.name],"1.2-2")," ")}}function Ta(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw();n.xp6(1),n.hij(" ",n.xi3(2,1,Mn.total[je.name],"1.2-2")," ")}}function Pe(Rn,Uo){1&Rn&&n._UZ(0,"strong")}function Tn(Rn,Uo){1&Rn&&n._UZ(0,"strong")}function v(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n.YNc(1,Pe,1,0,"strong",70),n.YNc(2,Tn,1,0,"strong",70),n.qZA()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw();n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.name+"TotalCellTemplate"])("ngTemplateOutletContext",n.VKq(6,Lt,n.VKq(4,fi,je))),n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.name+"GrandTotalCellTemplate"])("ngTemplateOutletContext",n.VKq(10,Lt,n.VKq(8,fi,je)))}}function ue(Rn,Uo){1&Rn&&n._UZ(0,"strong")}function dt(Rn,Uo){1&Rn&&n._UZ(0,"strong")}function In(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n.YNc(1,ue,1,0,"strong",70),n.YNc(2,dt,1,0,"strong",70),n.qZA()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw();n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.name+"TotalCellTemplate"])("ngTemplateOutletContext",n.VKq(6,Lt,n.VKq(4,fi,je))),n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.name+"GrandTotalCellTemplate"])("ngTemplateOutletContext",n.VKq(10,Lt,n.VKq(8,fi,je)))}}function er(Rn,Uo){1&Rn&&n._UZ(0,"strong",209)}function Br(Rn,Uo){if(1&Rn&&(n.TgZ(0,"span"),n.ynx(1,74),n.YNc(2,ds,3,4,"strong",207),n.YNc(3,us,2,1,"strong",207),n.YNc(4,zs,3,4,"strong",207),n.YNc(5,Ta,3,4,"strong",207),n.YNc(6,v,3,12,"strong",207),n.YNc(7,In,3,12,"strong",207),n.YNc(8,er,1,0,"strong",208),n.BQk(),n.qZA()),2&Rn){const je=n.oxw(2).$implicit;n.xp6(1),n.Q6J("ngSwitch",je.type),n.xp6(1),n.Q6J("ngSwitchCase","money"),n.xp6(1),n.Q6J("ngSwitchCase","int"),n.xp6(1),n.Q6J("ngSwitchCase","numeric"),n.xp6(1),n.Q6J("ngSwitchCase","decimal"),n.xp6(1),n.Q6J("ngSwitchCase","customHeaderAndCellTpl"),n.xp6(1),n.Q6J("ngSwitchCase","noFilterHeaderAndCellTpl")}}function es(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw();n.xp6(1),n.hij(" ",n.xi3(2,1,Mn.grandTotal[je.name],"USD")," ")}}function Ks(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.qZA()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw();n.xp6(1),n.hij(" ",Mn.grandTotal[je.name]," ")}}function xa(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw();n.xp6(1),n.hij(" ",n.xi3(2,1,Mn.grandTotal[je.name],"1.2-2")," ")}}function ha(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw();n.xp6(1),n.hij(" ",n.xi3(2,1,Mn.grandTotal[je.name],"1.2-2")," ")}}function Aa(Rn,Uo){1&Rn&&n._UZ(0,"strong")}function vl(Rn,Uo){1&Rn&&n._UZ(0,"strong")}function ml(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n.YNc(1,Aa,1,0,"strong",70),n.YNc(2,vl,1,0,"strong",70),n.qZA()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw();n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.name+"TotalCellTemplate"])("ngTemplateOutletContext",n.VKq(6,Lt,n.VKq(4,fi,je))),n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.name+"GrandTotalCellTemplate"])("ngTemplateOutletContext",n.VKq(10,Lt,n.VKq(8,fi,je)))}}function yl(Rn,Uo){1&Rn&&n._UZ(0,"strong")}function Cc(Rn,Uo){1&Rn&&n._UZ(0,"strong")}function Bc(Rn,Uo){if(1&Rn&&(n.TgZ(0,"strong"),n.YNc(1,yl,1,0,"strong",70),n.YNc(2,Cc,1,0,"strong",70),n.qZA()),2&Rn){const je=n.oxw(3).$implicit,Mn=n.oxw();n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.name+"TotalCellTemplate"])("ngTemplateOutletContext",n.VKq(6,Lt,n.VKq(4,fi,je))),n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.name+"GrandTotalCellTemplate"])("ngTemplateOutletContext",n.VKq(10,Lt,n.VKq(8,fi,je)))}}function Bl(Rn,Uo){1&Rn&&n._UZ(0,"strong",209)}function Wc(Rn,Uo){if(1&Rn&&(n.TgZ(0,"span"),n._UZ(1,"br"),n.ynx(2,74),n.YNc(3,es,3,4,"strong",207),n.YNc(4,Ks,2,1,"strong",207),n.YNc(5,xa,3,4,"strong",207),n.YNc(6,ha,3,4,"strong",207),n.YNc(7,ml,3,12,"strong",207),n.YNc(8,Bc,3,12,"strong",207),n.YNc(9,Bl,1,0,"strong",208),n.BQk(),n.qZA()),2&Rn){const je=n.oxw(2).$implicit;n.xp6(2),n.Q6J("ngSwitch",je.type),n.xp6(1),n.Q6J("ngSwitchCase","money"),n.xp6(1),n.Q6J("ngSwitchCase","int"),n.xp6(1),n.Q6J("ngSwitchCase","numeric"),n.xp6(1),n.Q6J("ngSwitchCase","decimal"),n.xp6(1),n.Q6J("ngSwitchCase","customHeaderAndCellTpl"),n.xp6(1),n.Q6J("ngSwitchCase","noFilterHeaderAndCellTpl")}}function xu(Rn,Uo){if(1&Rn&&(n.YNc(0,_o,3,3,"span",8),n.YNc(1,gr,4,3,"span",8),n.YNc(2,Br,9,7,"span",8),n.YNc(3,Wc,10,7,"span",8)),2&Rn){const je=n.oxw().index,Mn=n.oxw();n.Q6J("ngIf",Mn.total&&Mn.obj.keys(Mn.total).length>0&&0==je),n.xp6(1),n.Q6J("ngIf",Mn.grandTotal&&Mn.obj.keys(Mn.grandTotal).length>0&&0==je),n.xp6(1),n.Q6J("ngIf",Mn.total&&Mn.obj.keys(Mn.total).length>0&&0!=je),n.xp6(1),n.Q6J("ngIf",Mn.grandTotal&&Mn.obj.keys(Mn.grandTotal).length>0&&0!=je)}}function iu(Rn,Uo){if(1&Rn&&(n.TgZ(0,"kendo-excelexport-column",228),n.ALo(1,"translate"),n.YNc(2,be,3,3,"ng-template",229),n.YNc(3,ei,1,1,"ng-template",230),n.YNc(4,xu,4,4,"ng-template",231),n.qZA()),2&Rn){const je=Uo.$implicit;n.Q6J("field",je.name)("title",n.lcZ(1,2,je.display?je.display:je.name))}}function ku(Rn,Uo){1&Rn&&(n.TgZ(0,"div",232)(1,"mat-icon"),n._uU(2,"info"),n.qZA(),n._uU(3),n.ALo(4,"translate"),n.qZA()),2&Rn&&(n.xp6(3),n.hij("\xa0\xa0",n.lcZ(4,1,"thereAreNoRecordsToDisplay")," "))}function Lc(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"div",239)(1,"kendo-datapager",240),n.NdJ("pageChange",function(Gi){n.CHM(je);const nr=n.oxw(2);return n.KtG(nr.virtualPageChange(Gi))}),n.qZA()()}if(2&Rn){const je=n.oxw(2);n.xp6(1),n.Q6J("pageSize",je.dataPagerSize)("skip",je.dataPagerSkip)("total",je.virtualPageTotalRecords)("pageSizeValues",!1)("info",!0)("type","numeric")}}function ul(Rn,Uo){if(1&Rn&&(n.TgZ(0,"mat-option",133),n._uU(1),n.qZA()),2&Rn){const je=Uo.$implicit;n.Q6J("value",je.text),n.xp6(1),n.hij(" ",je.text," ")}}function Mc(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"div",239)(1,"mat-form-field",221)(2,"mat-label"),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"mat-select",222),n.NdJ("ngModelChange",function(Gi){n.CHM(je);const nr=n.oxw(2);return n.KtG(nr.pageSizeTxt=Gi)})("selectionChange",function(){n.CHM(je);const Gi=n.oxw(2);return n.KtG(Gi.pageSizeChange({skip:Gi.skip,take:Gi.pageSizeTxt}))}),n.YNc(6,ul,2,2,"mat-option",132),n.qZA()()()}if(2&Rn){const je=n.oxw(2);n.xp6(1),n.Q6J("floatLabel","never"),n.xp6(2),n.Oqu(n.lcZ(4,4,"pageSize")),n.xp6(2),n.Q6J("ngModel",je.pageSizeTxt),n.xp6(1),n.Q6J("ngForOf",je.pageSizeOptions)}}function uf(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",241),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&Rn){const je=n.oxw(2);let Mn;n.xp6(1),n.HOy(" ",n.lcZ(2,4,"itemsPerPage")," ",null!==(Mn=je.dataPagerCurrentPageIndex)&&void 0!==Mn?Mn:0," - ",null!==(Mn=je.dataPagerMaxItems)&&void 0!==Mn?Mn:0," of ",null!==(Mn=je.virtualPageTotalRecords)&&void 0!==Mn?Mn:0," items ")}}function Tf(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",241),n._uU(1),n.qZA()),2&Rn){const je=n.oxw(2);n.xp6(1),n.AsE(" ",je.endlessScroll?je.gridData.length:je.totalRecords>30?je.skip+30:je.totalRecords?je.totalRecords:0," of ",je.totalRecords?je.totalRecords:0," items ")}}function Ff(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",233)(1,"div",234)(2,"div",235),n.YNc(3,Lc,2,6,"div",236),n.YNc(4,Mc,7,6,"div",236),n.qZA(),n.TgZ(5,"div",237),n.YNc(6,uf,3,6,"div",238),n.YNc(7,Tf,2,2,"div",238),n.qZA()()()),2&Rn){const je=n.oxw();n.xp6(3),n.Q6J("ngIf","All"!==je.pageSizeTxt),n.xp6(1),n.Q6J("ngIf",!je.config.virtualMode),n.xp6(2),n.Q6J("ngIf","All"!==je.pageSizeTxt),n.xp6(1),n.Q6J("ngIf","All"===je.pageSizeTxt)}}function hf(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",233)(1,"div",242)(2,"div",237)(3,"div",241),n._uU(4),n.ALo(5,"translate"),n.qZA()()()()),2&Rn){const je=n.oxw();let Mn;n.xp6(4),n.lnq(" ",n.lcZ(5,3,"Showing")," ",null!==(Mn=null==je.gridData?null:je.gridData.length)&&void 0!==Mn?Mn:0," of ",null!==(Mn=je.virtualPageTotalRecords)&&void 0!==Mn?Mn:0," items ")}}function Vd(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",72),n.ALo(1,"date"),n._uU(2),n.ALo(3,"date"),n.qZA()),2&Rn){const je=n.oxw().localSk;n.Q6J("matTooltip",n.xi3(1,2,je.dataItem[je.column.name],"MM/dd/yyyy")),n.xp6(2),n.hij(" ",n.xi3(3,5,je.dataItem[je.column.name],"MM/dd/yyyy")," ")}}function Fu(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",72),n.ALo(1,"date"),n._uU(2),n.ALo(3,"date"),n.qZA()),2&Rn){const je=n.oxw().localSk;n.Q6J("matTooltip",n.xi3(1,2,je.dataItem[je.column.name],"MM/dd/yyyy h:mm:ss")),n.xp6(2),n.hij(" ",n.xi3(3,5,je.dataItem[je.column.name],"MM/dd/yyyy h:mm:ss")," ")}}function Ch(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",72),n.ALo(1,"date"),n._uU(2),n.ALo(3,"date"),n.qZA()),2&Rn){const je=n.oxw().localSk;n.Q6J("matTooltip",n.xi3(1,2,je.dataItem[je.column.name],"hh:mm a")),n.xp6(2),n.hij(" ",n.xi3(3,5,je.dataItem[je.column.name],"hh:mm a")," ")}}function mh(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",72),n.ALo(1,"number"),n._uU(2),n.ALo(3,"number"),n.qZA()),2&Rn){const je=n.oxw().localSk;n.Q6J("matTooltip",n.xi3(1,2,je.dataItem[je.column.name],"1.2-2")),n.xp6(2),n.hij(" ",n.xi3(3,5,je.dataItem[je.column.name],"1.2-2")," ")}}function Sd(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",72),n.ALo(1,"number"),n._uU(2),n.ALo(3,"number"),n.qZA()),2&Rn){const je=n.oxw().localSk;n.Q6J("matTooltip",n.xi3(1,2,je.dataItem[je.column.name],"1."+je.column.decimalPoint+"-"+je.column.decimalPoint)),n.xp6(2),n.hij(" ",n.xi3(3,5,je.dataItem[je.column.name],"1."+je.column.decimalPoint+"-"+je.column.decimalPoint)," ")}}function vd(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",72),n._uU(1),n.qZA()),2&Rn){const je=n.oxw().localSk;n.Q6J("matTooltip",je.dataItem[je.column.name]),n.xp6(1),n.hij(" ",je.dataItem[je.column.name]," ")}}function hd(Rn,Uo){if(1&Rn&&(n.TgZ(0,"span",72),n.ALo(1,"currency"),n._uU(2),n.ALo(3,"currency"),n.qZA()),2&Rn){const je=n.oxw().localSk;n.Q6J("matTooltip",n.xi3(1,2,je.dataItem[je.column.name],je.dataItem.currency)),n.xp6(2),n.Oqu(n.xi3(3,5,je.dataItem[je.column.name],je.dataItem.currency))}}function ff(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div"),n._UZ(1,"mat-checkbox",214),n.qZA()),2&Rn){const je=n.oxw().localSk;n.xp6(1),n.Q6J("checked",je.dataItem[je.column.name])("disabled",!0)}}function Iu(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div")(1,"mat-icon"),n._uU(2," star "),n.qZA()()),2&Rn){const je=n.oxw().localSk;n.xp6(1),n.Tol("Yes"==je.dataItem[je.column.name]?"amber-600-fg mat-icon material-icons ng-star-inserted":"secondary-text mat-icon material-icons ng-star-inserted")}}function Qh(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"div",246),n.NdJ("dblclick",function(){n.CHM(je);const Gi=n.oxw().localSk,nr=n.oxw();return n.KtG(nr.gridCellDblClick(Gi.dataItem))}),n.ALo(1,"translate"),n.TgZ(2,"b"),n._uU(3),n.ALo(4,"translate"),n.qZA()()}if(2&Rn){const je=n.oxw().localSk;n.Q6J("matTooltip",n.lcZ(1,2,je.dataItem[je.column.name])),n.xp6(3),n.Oqu(n.lcZ(4,4,je.dataItem[je.column.name]))}}function xh(Rn,Uo){1&Rn&&n.GkF(0)}function Xh(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",247),n.YNc(1,xh,1,0,"ng-container",70),n.qZA()),2&Rn){const je=n.oxw().localSk,Mn=n.oxw();n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.column.name+"CellTemplate"])("ngTemplateOutletContext",n.VKq(5,Lt,n.WLB(2,hi,je.column,je.dataItem)))}}function Sh(Rn,Uo){1&Rn&&n.GkF(0)}function pf(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",247),n.YNc(1,Sh,1,0,"ng-container",70),n.qZA()),2&Rn){const je=n.oxw().localSk,Mn=n.oxw();n.xp6(1),n.Q6J("ngTemplateOutlet",Mn.config[je.column.name+"CellTemplate"])("ngTemplateOutletContext",n.VKq(5,Lt,n.WLB(2,hi,je.column,je.dataItem)))}}function Nc(Rn,Uo){if(1&Rn&&(n.TgZ(0,"span",249),n.ALo(1,"translate"),n._uU(2),n.ALo(3,"translate"),n.qZA()),2&Rn){const je=n.oxw(2).localSk;n.Q6J("matTooltip",je.dataItem[je.column.name]?n.lcZ(1,2,je.dataItem[je.column.name]):""),n.xp6(2),n.hij(" ",je.dataItem[je.column.name]?n.lcZ(3,4,je.dataItem[je.column.name]):"\xa0"," ")}}function wh(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",72),n.ALo(1,"zenLabelMask"),n._uU(2),n.ALo(3,"zenLabelMask"),n.qZA()),2&Rn){const je=n.oxw(3).localSk;n.Q6J("matTooltip",n.Dn7(1,2,je.dataItem[je.column.name],je.column.name+"Masking",je.dataItem.countryCode)),n.xp6(2),n.hij(" ",n.Dn7(3,6,je.dataItem[je.column.name],je.column.name+"Masking",je.dataItem.countryCode)," ")}}function Eh(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",72),n.ALo(1,"zenLabelMask"),n._uU(2),n.ALo(3,"zenLabelMask"),n.qZA()),2&Rn){const je=n.oxw(3).localSk;n.Q6J("matTooltip",n.Dn7(1,2,je.dataItem[je.column.name],je.dataItem[je.column.name+"Masking"],je.dataItem.countryCode)),n.xp6(2),n.hij(" ",n.Dn7(3,6,je.dataItem[je.column.name],je.dataItem[je.column.name+"Masking"],je.dataItem.countryCode)," ")}}function oh(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",72),n.ALo(1,"zenLabelMask"),n._uU(2),n.ALo(3,"zenLabelMask"),n.qZA()),2&Rn){const je=n.oxw(3).localSk;n.Q6J("matTooltip",n.Dn7(1,2,je.dataItem[je.column.name],je.column.maskType,je.dataItem.countryCode)),n.xp6(2),n.hij(" ",n.Dn7(3,6,je.dataItem[je.column.name],je.column.maskType,je.dataItem.countryCode)," ")}}function yd(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div",72),n._uU(1),n.qZA()),2&Rn){const je=n.oxw(3).localSk;n.Q6J("matTooltip",je.dataItem[je.column.name]?je.dataItem[je.column.name]:""),n.xp6(1),n.hij(" ",je.dataItem[je.column.name]?je.dataItem[je.column.name]:"\xa0"," ")}}function Nd(Rn,Uo){if(1&Rn&&(n.YNc(0,wh,4,10,"div",250),n.YNc(1,Eh,4,10,"div",250),n.YNc(2,oh,4,10,"div",250),n.YNc(3,yd,2,2,"div",250)),2&Rn){const je=n.oxw(2).localSk;n.Q6J("ngIf","all"==je.column.maskType),n.xp6(1),n.Q6J("ngIf","other"==je.column.maskType),n.xp6(1),n.Q6J("ngIf",""!=je.column.maskType),n.xp6(1),n.Q6J("ngIf",""==je.column.maskType)}}function Pp(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div"),n.YNc(1,Nc,4,6,"span",248),n.YNc(2,Nd,4,4,"ng-template",null,218,n.W1O),n.qZA()),2&Rn){const je=n.MAs(3),Mn=n.oxw().localSk;n.xp6(1),n.Q6J("ngIf",Mn.column.translate)("ngIfElse",je)}}function Ad(Rn,Uo){1&Rn&&(n.ynx(0,74),n.YNc(1,Vd,4,8,"div",243),n.YNc(2,Fu,4,8,"div",243),n.YNc(3,Ch,4,8,"div",243),n.YNc(4,mh,4,8,"div",243),n.YNc(5,Sd,4,8,"div",243),n.YNc(6,vd,2,2,"div",243),n.YNc(7,hd,4,8,"span",243),n.YNc(8,ff,2,2,"div",207),n.YNc(9,Iu,3,3,"div",207),n.YNc(10,Qh,5,6,"div",244),n.YNc(11,Xh,2,7,"div",245),n.YNc(12,pf,2,7,"div",245),n.YNc(13,Pp,4,2,"div",76),n.BQk()),2&Rn&&(n.Q6J("ngSwitch",Uo.localSk.column.type),n.xp6(1),n.Q6J("ngSwitchCase","date"),n.xp6(1),n.Q6J("ngSwitchCase","dateTime"),n.xp6(1),n.Q6J("ngSwitchCase","time"),n.xp6(1),n.Q6J("ngSwitchCase","numeric"),n.xp6(1),n.Q6J("ngSwitchCase","decimal"),n.xp6(1),n.Q6J("ngSwitchCase","int"),n.xp6(1),n.Q6J("ngSwitchCase","money"),n.xp6(1),n.Q6J("ngSwitchCase","disabledCheckbox"),n.xp6(1),n.Q6J("ngSwitchCase","favorite"),n.xp6(1),n.Q6J("ngSwitchCase","reportName"),n.xp6(1),n.Q6J("ngSwitchCase","customHeaderAndCellTpl"),n.xp6(1),n.Q6J("ngSwitchCase","noFilterHeaderAndCellTpl"))}function Gh(Rn,Uo){if(1&Rn&&(n.TgZ(0,"mat-icon",255),n._uU(1),n.qZA()),2&Rn){const je=n.oxw().$implicit;n.Q6J("svgIcon","znac-"+je.resource),n.xp6(1),n.hij(" ",je.icon,"")}}function uc(Rn,Uo){if(1&Rn&&(n.TgZ(0,"mat-icon"),n._uU(1),n.qZA()),2&Rn){const je=n.oxw(2).$implicit;n.xp6(1),n.Oqu(je.icon)}}function rh(Rn,Uo){if(1&Rn&&n.YNc(0,uc,2,1,"mat-icon",8),2&Rn){const je=n.oxw().$implicit;n.Q6J("ngIf",je.icon)}}function sh(Rn,Uo){if(1&Rn){const je=n.EpF();n.TgZ(0,"div")(1,"button",251),n.NdJ("click",function(Gi){const is=n.CHM(je).$implicit,ta=n.oxw(2),dl=n.MAs(25);return ta.selectRowAction(Gi,is.action,ta.rowActionsSelectedData),n.KtG(dl.close())}),n.YNc(2,Gh,2,2,"mat-icon",252),n.YNc(3,rh,1,1,"ng-template",null,253,n.W1O),n.TgZ(5,"span"),n._uU(6),n.ALo(7,"translate"),n.qZA(),n._UZ(8,"div",254),n.qZA()()}if(2&Rn){const je=Uo.$implicit,Mn=n.MAs(4),Gi=n.oxw(2);n.xp6(2),n.Q6J("ngIf",je.icon&&Gi.config&&Gi.config.svgIcons&&Gi.config.svgIcons.length>0&&Gi.config.svgIcons.includes(je.resource.toLowerCase()))("ngIfElse",Mn),n.xp6(4),n.Oqu(n.lcZ(7,3,je.resource))}}function wd(Rn,Uo){if(1&Rn&&(n.TgZ(0,"div"),n.YNc(1,sh,9,5,"div",55),n.qZA()),2&Rn){const je=n.oxw();n.xp6(1),n.Q6J("ngForOf",je.actionList)}}function Bf(Rn,Uo){1&Rn&&(n.TgZ(0,"div")(1,"p",256)(2,"strong"),n._uU(3),n.ALo(4,"translate"),n.qZA()()()),2&Rn&&(n.xp6(3),n.Oqu(n.lcZ(4,1,"noActions")))}const Qd=function(Rn){return{visibility:Rn}},Th=function(Rn,Uo,je,Mn){return{virtualGrid:Rn,scrollableGrid:Uo,hideGroupingFooter:je,gridToolbar:Mn}},_p=(Rn,Uo)=>new RegExp(Uo).test(Rn.className),Hh=(Rn,Uo)=>{for(;Rn&&Rn.parentElement;){if(_p(Rn.parentElement,Uo))return!0;Rn=Rn.parentElement}return!1};let Sl=(()=>{class Rn extends w.g{get isInEditingMode(){return void 0!==this.editedRowIndex||this.isNew}constructor(je,Mn,Gi,nr,is,ta,dl,$l,fl){super(),this.fuseConfig=je,this.cdRef=Mn,this.eds=Gi,this.renderer=nr,this.commonService=is,this.us=ta,this.translate=dl,this.parentInjector=$l,this.zenSearchService=fl,this._jsmWebUrl=d.XL.settings.jsmWebUrl,this.apiUrl=d.XL.settings.apiUrl,this.showOperators=!1,this.config={},this.filterable=!1,this.editGridCell=!1,this.ignoreValidation=!1,this.showCancelHandler=!1,this.sort=[],this.pageable=!1,this.sortable=!1,this.resizable=!0,this.multiple=!1,this.showFilterToggle=!1,this.filterToggleValue=!1,this.showGroupingToggle=!1,this.groupingToggleValue=!1,this.hideGroupbarToggle=!1,this.navigable=!1,this.selectable=!1,this.toggleSelection=!1,this.visibleRowsSelected=!1,this.disableAllRowSelection=!1,this.displayHeaderSelection=!0,this.skip=0,this.detailUrl="#",this.slideVisible=!1,this.displayCard=!1,this.clientSidePaging=!1,this.clientSorting=!1,this.clientSideFiltering=!0,this.reorderable=!1,this.groupable=!1,this.isChildGrid=!1,this.standaloneNavigationClick=!1,this.filter={logic:"and",filters:[]},this.autoSelection=!0,this.showAddNewRow=!1,this.showDeleteRow=!0,this.showGridRowActionMenu=!0,this.enableDragAndDrop=!1,this.navigationActionType="singleAndMultiple",this.manualTabSwitch=!1,this.groupLabels=[],this.showGroupHeaderCheckBox=!1,this.hasDetailRow=!1,this.rowActionMenuClosed=!1,this.sortOrderRefreshBtn=!1,this.entityDetailLevel="",this.gridDragAndDropClass="",this.showNoRecordMessage=!0,this.loading=!1,this.scrollable="scrollable",this.groupRowCollapsable=!1,this.isEntityDetail=!0,this.skipColumnFilter=!1,this.excelExportNetworkCall=!1,this.endlessScroll=!1,this.calculateAggregates=!1,this.onPageChange=new n.vpe,this.onExcelExportNetworkCall=new n.vpe,this.onNavigationCellClick=new n.vpe,this.onCheckboxChangeFn=new n.vpe,this.onSelectionChangeFn=new n.vpe,this.onEditSelectionChangeFn=new n.vpe,this.onDeleteSelectionChangeFn=new n.vpe,this.onHeaderCheckboxChangeFn=new n.vpe,this.onRowCheckboxChangeFn=new n.vpe,this.onGridRowActionMenuClick=new n.vpe,this.onGridRowActionSelected=new n.vpe,this.gridHeaderMenuClosed=new n.vpe,this.onSortingFn=new n.vpe,this.handleDragAndDrop=new n.vpe,this.addNew=new n.vpe,this.removeRow=new n.vpe,this.onVisibleAllCheckBoxChangeFn=new n.vpe,this.onFilterChangeFn=new n.vpe,this.onScrollBottom=new n.vpe,this.onServerSideFilter=new n.vpe,this.onColumnFilterSearchFn=new n.vpe,this.onColumnFilterValueChangeFn=new n.vpe,this.onGroupChangeFn=new n.vpe,this.onViewRecent=new n.vpe,this.onGroupHeaderCheckboxChangeFn=new n.vpe,this.onGridCellEditFn=new n.vpe,this.onGridCellEditorSaveFn=new n.vpe,this.zenGridDomElementFn=new n.vpe,this.onKeyDown=new n.vpe,this.ontextEditorKeyDown=new n.vpe,this.editorDDLValChange=new n.vpe,this.selectionClear=new n.vpe,this.onDblClickFn=new n.vpe,this.onFavoriteClickFn=new n.vpe,this.onSlidePanelView=new n.vpe,this.onFabBtnClick=new n.vpe,this.onRefreshSortOrderClick=new n.vpe,this.onGridViewChange=new n.vpe,this.onOpenBar=new n.vpe,this.onDetailExpandFn=new n.vpe,this.onDetailCollapseFn=new n.vpe,this.onGroupingToggleChangeFn=new n.vpe,this.onColumnFilterCustomFn=new n.vpe,this.afterViewCheckedHit=!1,this.columns=[],this.excelExportColumns=[],this.obj=Object,this.groups=[],this._matMenuClosed=!1,this.widths={},this.intialZenSelCase=!1,this.extraCssClass="",this.emptyFilterClass="",this.uniqueClass="",this.showFilterToggleDiv=!1,this.tempShowFilterToggle=!1,this.showGroupingToggleDiv=!1,this.intitialInnerWidth=0,this.viewchange="mygrid",this.hiddenColumns=[],this.tempHiddenColumns=[],this.tempOrderColumns=[],this.loadSlideView=!1,this.pageNumber=1,this.isSelect=!1,this.isNew=!1,this.dataSource={},this.zenPanelArrow="keyboard_arrow_down",this.noRecord="thereAreNoRecordsToDisplay",this.displayMode="grid",this.rowSelectedIds=[],this.sessionDataExists=!1,this.customTemplateAvailable=!1,this.entityData={entityId:0,entity:"",parentNavigationId:0,internalNavigationId:0,primaryColumn:"",gridDataItem:{},applicationId:0,customTemplate:null},this.detailRowIndex=[],this.tempRowIndex=[],this.gridHeaderMenuClosedJson={showPostedBatch:!1,showOthersBatch:!1},this.directoryType=["applicant","newhire","lead","newcustomer","target"],this._disableToggleSelectionCall=!1,this.prevGroupingVal=!1,this.prevFilteringVal=!1,this.preventMultipleCall=!1,this.decreaseKnownWidth=0,this.numberOfActions=0,this.isSticky="",this.stickyColumnClass="",this.pageSizeOptions=[{text:"20"},{text:"50"},{text:"100"},{text:"200"},{text:"500"}],this.pageSizeTxt="50",this.dataPagerSize=0,this.dataPagerSkip=200,this.virtualPageSize="30",this.virtualPageTotalRecords=0,this.customVirtualizedPageSize=[],this.totalData={},this.firstColumns=["entityicon","batchexceptioncount","taskindicator","icon","customactions","draganddrop","deleteaction","editaction","isselect","isedit","isapprove","actions","resume","multiview","view","statusicon","document","selecteddocuments"],this.defaultColumns=[],this.actionDisplayColumns=[],this.filteredData=[],this.currentFilteredData=[],this.pageSize=50,this.isMobile=!1,this.intialSortingState=!1,this.intialSorting=0,this.showExcelExport=!0,this.isRowSelected=_c=>{if(this.selectionKeys&&this.selectionKeys.length>0){const Ol=this;return Ol.selectionKeys.indexOf(_c.dataItem[Ol.primaryColumn])>=0}return!1},this.uniqueClass=Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5),this.barClosed=!0,this.onSettingsChanged=this.fuseConfig.config.subscribe(_c=>{this.fuseSettings=_c}),this._unsubscribeAll=new _.x,this.tokenPersonId=this.us.getTokenValueByKey("personId"),this.allData=this.allData.bind(this)}ngOnInit(){this.isMobileResolution.pipe((0,x.R)(this._unsubscribeAll)).subscribe(Mn=>{this.isMobile=Mn}),this.currentResolution.pipe((0,x.R)(this._unsubscribeAll)).subscribe(Mn=>{this.activeResolution=Mn}),this.firstToggleInit=!0,this.firstInternalToggleInit=!0,this.showFilterToggleDiv=!!this.showFilterToggle,this.showFilterToggle=!!this.filterToggleValue,this.showGroupingToggleDiv=!!this.showGroupingToggle,this.showGroupingToggle=!!this.groupingToggleValue,this.prevGroupingVal=this.showGroupingToggleDiv,this.prevFilteringVal=this.showFilterToggleDiv,this.pageSizeTxt=this.pageSize.toString(),this.showFilterToggleDiv&&this.entityType&&this.directoryType.includes(this.entityType.toLowerCase())&&this.commonService.tfOptionSelect("Directory","ColumnFilter","Person",this.tokenPersonId).pipe((0,x.R)(this._unsubscribeAll)).subscribe(Mn=>{Mn&&Object.keys(Mn).length>0&&(this.filterToggleOptionProperty=Mn[0],this.showFilterToggle="false"!==this.filterToggleOptionProperty.optionValue.toLowerCase(),this.filterToggleValue="false"!==this.filterToggleOptionProperty.optionValue.toLowerCase(),this.tempShowFilterToggle="false"!==this.filterToggleOptionProperty.optionValue.toLowerCase(),null==this.filteredColumn&&(this.filteredColumn=this.filterToggleValue?this.columns.filter(Gi=>!0===Gi.filterable)[0].name:null),this.tempShowFilterToggle="false"!==this.filterToggleOptionProperty.optionValue)}),this.sessionData=JSON.parse(sessionStorage.getItem("headerParams")),Object.keys(this.config).length<=0?(this.config={cardViewCss:"zenCartview",cardViewOnly:!1,gridViewOnly:!1,defaultView:"grid"},this.displayMode="grid"):(this.displayMode=this.config.defaultView,this.viewchange=this.config.viewChange?this.config.viewChange:"mygrid",this.config.showAllPageSize&&this.setAllPageSize(),this.config.virtualMode&&this.virtualGridMode().then(Mn=>{Mn&&(this.pageSize=30,this.pageSizeTxt="30",this.skip=0)})),this.config.cardViewOnly&&(this.viewchange="card-view-grid"),this.editGridCell&&(this.gridData&&this.gridData.length>0&&(this.selectionKeys=[this.gridData[0][this.primaryColumn]]),this.renderer.listen("document","click",Mn=>{var Gi=Mn.target,nr=Mn.currentTarget,is=Gi?.className+" "+nr?.activeElement?.className;!Hh(Gi,"k-grid-content")&&!Hh(Gi,"k-grid-toolbar")&&Gi.className&&!is.includes("mat-option-text")&&!is.includes("mat-calendar-body-cell-content")&&!is.includes("mat-calendar-content")&&!is.includes("k-calendar")&&!Gi.ownerDocument.activeElement.className.includes("mat-input-element mat-form-field-autofill-control mat-chip-input")&&!Gi.ownerDocument.activeElement.className.includes("mat-calendar-body-cell mat-focus-indicator mat-calendar-body-active")&&!Gi.ownerDocument.activeElement.className.includes("mat-focus-indicator mat-calendar-next-button")&&!Gi.ownerDocument.activeElement.className.includes("mat-focus-indicator mat-calendar-previous-button")&&this.saveEditedRow()})),this.gridControlPanel=this.displayCard,this.gridControlPanel&&!this.config.cardViewOnly&&this.commonService.tfOptionSelect("Person","DirectoryExcelExport","Person",parseInt(this.us.getTokenValueByKey("personId").toString())).pipe((0,x.R)(this._unsubscribeAll)).subscribe(Mn=>{Mn&&Mn.length&&(this.showExcelExport="allow"===Mn[0].optionValue.toLowerCase())}),this.us.onToggle.pipe((0,x.R)(this._unsubscribeAll)).subscribe(Mn=>{!Mn&&this.entityType&&this.checkRecentData()}),"recentsearch"===this.zenSearchService.getSearchType(this.entityType)?.toLowerCase()&&this.checkRecentData(),this.us.onToggleNavBar.pipe((0,x.R)(this._unsubscribeAll)).subscribe(Mn=>{if(null!=Mn){if(this.firstToggleInit)return void(this.firstToggleInit=!1);this.adjustAndAssignWidth()}}),this.us.onInternalToggleNavBar.pipe((0,x.R)(this._unsubscribeAll)).subscribe(Mn=>{if(null!=Mn){if(this.firstInternalToggleInit)return void(this.firstInternalToggleInit=!1);this.adjustAndAssignWidth()}})}set totalRecordsVal(je){this.totalRecords=je,this.virtualPageTotalRecords=je,0!==je&&this.callUpdateDataSet()}set columnVal(je){je&&(this.columns=je,this.cardColumns=this.groups.length>0?je.filter(Mn=>Mn.name===this.groups[0].field)?.[0]:je[0],this.zenGrid&&"virtual"===this.zenGrid.scrollable&&this.virtualGridMode().then(Mn=>{}),this.setColumnsOrder())}set dataVal(je){je&&(this.data=je,this.sort=this.data&&this.data[0]&&this.data[0].sort?this.data[0].sort:this.data?.data?.length>1?this.data?.sort:[{dir:"asc",field:""}]),this.callUpdateDataSet()}callUpdateDataSet(){this.afterViewCheckedHit&&this.updateDataSet(this.data)}set groupsVal(je){je&&je.length>0&&(this.groups=je,this.aggregates=this.groups[0].hasOwnProperty("aggregates")?this.groups[0].aggregates:[])}set setHideGroupingToggleDiv(je){setTimeout(()=>{this.hideGroupbarToggle=je,this.cdRef.detectChanges()},300)}set setCustomTemplateAvailable(je){this.customTemplateAvailable=je}set setPageSize(je){this.zenGrid&&"All"!==je&&(this.zenGrid.scrollable="scrollable",this.scrollable="scrollable",this.zenGrid.rowHeight=null,this.zenGrid.height=null,this.skip=0,this.pageSizeTxt=je.toString(),this.contentScrollerReset()),this.virtualPageSize=je,this.pageSize=je}updateDataSet(je){this.hasDetailRow&&this.collapseDetailRow(),void 0!==je&&(this.customVirtualizedPageSize.includes(this.virtualPageSize)&&"virtual"!==this.zenGrid.scrollable?(this.primaryColumn=je.primaryColumn?je.primaryColumn:this.primaryColumn,this.columns=null!=je&&je.data?je.columns:this.columns,this.virtualPageTotalRecords=null!=je&&je.totalCount?je.totalCount:this.virtualPageTotalRecords,this.totalRecords=null!=je&&je.totalCount?je.totalCount:this.virtualPageTotalRecords,this.virtualGridMode().then(Mn=>{Mn&&(this.skip=0,this.pageSize=30,this.totalData=je,this.setColumnsOrder(),this.assignAllPageSizeSelectedData(!0))})):"All"===this.pageSize&&"virtual"!==this.zenGrid.scrollable?(this.primaryColumn=je.primaryColumn?je.primaryColumn:this.primaryColumn,this.columns=null!=je&&je.data?je.columns:this.columns,this.virtualPageTotalRecords=null!=je&&je.totalCount?je.totalCount:this.virtualPageTotalRecords,this.totalRecords=null!=je&&je.totalCount?je.totalCount:this.virtualPageTotalRecords,this.virtualGridMode().then(Mn=>{Mn&&(this.pageSize=30,this.skip=0,this.totalData=je,this.setColumnsOrder(),this.config.initialVirtualLoad?(this.assignAllPageSizeSelectedData(!1),this.config.initialVirtualLoad=!0):this.assignAllPageSizeSelectedData(!0),this.adjustAndAssignWidth())})):this.zenGrid&&"virtual"===this.zenGrid.scrollable?(this.primaryColumn=je.primaryColumn?je.primaryColumn:this.primaryColumn,this.columns=null!=je&&je.data?je.columns:this.columns,this.virtualPageTotalRecords=null!=je&&je.totalCount?je.totalCount:this.virtualPageTotalRecords,this.totalRecords=null!=je&&je.totalCount?je.totalCount:this.virtualPageTotalRecords,this.virtualGridMode().then(Mn=>{Mn&&(this.pageSize=30,this.pageSizeTxt=this.customVirtualizedPageSize.includes(this.virtualPageSize)?this.virtualPageSize:"30",this.skip=0,this.totalData=je,this.sortChange(this.sort),this.setColumnsOrder(),this.config.virtualMode&&0===je.totalCount?(this.gridView={data:[],total:0},this.showNoRecordMessage=!0):this.assignAllPageSizeSelectedData(!1))})):(null!=je&&je.data?(this.columns=je.columns,this.setColumnsOrder(),this.totalRecords=je.totalCount,this.virtualPageTotalRecords=je.totalCount,this.dataSource=(0,g.cloneDeep)(je),this.gridData=0===je.totalCount?[]:je.data,this.navigation=this.navigation?this.navigation:je.navigation,this.navigationId=this.navigationId?this.navigationId:je.navigationId,this.primaryColumn=je.primaryColumn?je.primaryColumn:this.primaryColumn,this.applicationId=je.applicationId?je.applicationId:this.applicationId,this.entity=je.entity?je.entity:this.entity,this.groups=je.groups?je.groups:this.groups,this.cardColumns=this.groups.length>0?je.columns.filter(Mn=>Mn.name===this.groups[0].field)?.[0]:je.columns[0],this.aggregates=je.hasOwnProperty("aggregates")?this.groups[0].aggregates:[],this.groupLabels=je.groupLabels?je.groupLabels:this.groupLabels,Object.keys(this.config).length>0&&(this.config.gridColumnOptions=je.gridColumnOptions,this.config.showColumnActionsMenu=!!je.gridColumnOptions),je.enableDragAndDrop&&(this.enableDragAndDrop=!0,this.gridDragAndDropClass=je.gridClass),this.groupHeaderChk=je.groupHeaderChk?je.groupHeaderChk:[]):(this.config.virtualMode&&(this.totalData=je),this.gridData=je),this.loadData()))}set dragAndDrop(je){if(je){let Mn;Mn=Array.from(""!==this.gridDragAndDropClass?document.querySelectorAll("."+this.gridDragAndDropClass+" .k-grid-content tr"):document.querySelectorAll(".k-grid-content tr")),this.handleDragAndDrop.emit(Mn)}}set editFormData(je){je&&(this.formData=je)}set addFormData(je){je&&(this.formData=je,this.showNoRecordMessage=!1)}set isIndeterminateVal(je){this.isIndeterminateValue=!!je}set enableDeleteButton(je){this.isRowChecked=!!je}removeGroupedColumnsFromColumnSelector(){this.groupingToggleValue||this.groups.map(Mn=>Mn.field).forEach(Mn=>{const Gi=this.tempOrderColumns.findIndex(nr=>nr.name.toLowerCase()===Mn.toLowerCase());Gi>=0&&this.tempOrderColumns.splice(Gi,1)})}addGroupedColumnsFromColumnSelector(){let je=this.config?.gridColumnOptions?.columnWithOrdering?.optionValue?.split(",");var Mn=this.tempOrderColumns?.map(Gi=>Gi.name.toLowerCase());return je.forEach(Gi=>{if(!Mn.includes(Gi.toLowerCase())){let nr=je.indexOf(Gi.toLowerCase());Mn=[...Mn.slice(0,nr),Gi,...Mn.slice(nr)]}}),this.groupingToggleValue||this.groups.map(nr=>nr.field).forEach(nr=>{let is=this.columns.find(ta=>ta.name.toLowerCase()==nr.toLowerCase());this.tempOrderColumns.includes(is)||this.tempOrderColumns.push(is)}),Mn}loadData(){if(null!=this.gridData&&0!==Object.keys(this.gridData).length&&null!=this.totalRecords&&0!==this.totalRecords){if(this.emptyFilterClass="",this.showNoRecordMessage=!1,this.preventMultipleCall=!1,this.gridView=this.clientSidePaging?{data:this.gridData.slice(this.skip,this.skip+parseInt(this.pageSize)),total:this.gridData.length}:{data:this.gridData,total:null==this.totalRecords?this.gridData.length:this.totalRecords},(this.groupable||this.groupingToggleValue)&&this.groups.length>0)if(this.clientSidePaging&&0!==this.skip){const je=[];let Mn=this.skip-1;this.gridData.forEach(function(Gi,nr){je[Mn]=Gi,Mn++}),this.loadGrid()}else this.groupChange(this.groups);this.autoSelection&&this.gridData.length>0&&this.primaryColumn&&(this.selectionKeys=[this.gridData[0][this.primaryColumn]],this.cardEntityId=this.gridData[0][this.primaryColumn],this.onSelectionChangeFn.emit(this.gridData[0])),this.loadSlideView&&0===this.detailIndex&&this.clearSlideData(),!this.config.cardViewOnly&&"card"!==this.config.defaultView&&(this.preventGridFlicker=!0),(this.config.cardViewOnly||"card"===this.config.defaultView)&&(this.preventGridFlicker=!1),this.adjustAndAssignWidth(),this.groupRowCollapsable&&this.gridView.data.forEach((je,Mn)=>{this.zenGrid.collapseGroup(String(Mn))})}else if((!this.clientSideFiltering&&this.showFilterToggle||this.filter?.filters?.length)&&(this.emptyFilterClass="emptyFilter"),this.showNoRecordMessage=!0,this.columns=[...this.columns],this.gridView={data:[],total:0},this.columns&&this.columns.length>0){this.cardColumns=this.groups.length>0?this.columns.filter(je=>je.name===this.groups[0].field)?.[0]:this.columns[0];for(let je=0;je<this.columns.length;je++)Object.keys(this.columns).includes("locked")&&(this.columns[je].locked=!1),this.widths[this.columns[je].name]=void 0;if(this.autoGrid&&this.autoGrid?.columns)for(const je of this.firstColumns){const Mn=this.autoGrid.columns.toArray(),Gi=Mn.length>0&&Mn[0].field?Mn.find(is=>is.field.toLowerCase()===je):null,nr=this.columns.find(is=>is.name.toLowerCase()===je);if(nr){const is=this.columns.findIndex(ta=>ta.name.toLowerCase()===je);this.columns.splice(is,1),this.columns.unshift(nr)}if(Gi){const is=Mn.findIndex(ta=>ta.field.toLowerCase()===je);Mn.splice(is,1),Mn.unshift(Gi)}}if(this.tempOrderColumns=[...this.columns],this.removeGroupedColumnsFromColumnSelector(),!this.config.cardViewOnly&&"card"!==this.config.defaultView&&(this.preventGridFlicker=!0,this.adjustAndAssignWidth()),!this.preventMultipleCall)return void(this.preventMultipleCall=!0)}}setColumnsOrder(){return new Promise(je=>{if(Object.keys(this.config).length>0)if(this.config&&this.config.gridColumnOptions){if(this.config.showColumnActionsMenu=!0,this.tempHiddenColumns=this.config.gridColumnOptions.hiddenColumns&&this.config.gridColumnOptions.hiddenColumns.optionValue?this.config.gridColumnOptions.hiddenColumns.optionValue.split(","):[],this.hiddenColumns=[...this.tempHiddenColumns],this.groups.map(Gi=>Gi.field).forEach(Gi=>{this.hiddenColumns?.includes(Gi)||this.hiddenColumns.push(Gi)}),this.config.gridColumnOptions.columnWithOrdering&&this.config.gridColumnOptions.columnWithOrdering.optionValue){const Gi=this.config.gridColumnOptions.columnWithOrdering.optionValue.split(",").map(is=>is.toLowerCase()),nr=[];for(const is of Gi){const ta=this.columns.find(dl=>dl.name.toLowerCase()===is);ta&&nr.push(ta)}this.columns=nr}}else this.config.showColumnActionsMenu=!1;if(this.columns){if("levelUndefined"===this.entityDetailLevel&&this.columns.find(nr=>"multiview"===nr.name.toLowerCase()||"view"===nr.name.toLowerCase())){const nr=this.columns.findIndex(is=>"multiview"===is.name.toLowerCase()||"view"===is.name.toLowerCase());this.columns.splice(nr,1)}this.columns.map(Gi=>Gi.filterable=!0),this.showOperators=!0,this.numberOfActions=0;for(const Gi of this.firstColumns){const nr=this.columns.find(is=>is.name.toLowerCase()===Gi);if(nr){this.numberOfActions+=1;const is=this.columns.findIndex(ta=>ta.name.toLowerCase()===Gi);this.columns[is].filterable=!1,this.columns.splice(is,1),this.columns.unshift(nr)}}this._stickyClass="";let Mn=!1;setTimeout(()=>{const Gi=document.getElementById("grid-holder");if(Gi){if(this.lockedColumns&&this.lockedColumns.length>0)for(let nr=0;nr<this.lockedColumns.length;nr++){const is=this.columns.find(ta=>ta.name.toLowerCase()===this.lockedColumns[nr].toLowerCase());is&&Object.keys(is).length>0&&(is.locked=!0)}for(const nr of this.columns)nr.locked&&"customactions"!==nr.name.toLowerCase()&&(Mn=!!Gi.classList.contains(nr.name),this._stickyClass=""===this._stickyClass?" "+nr.name:this._stickyClass+" "+nr.name)}!Mn&&Gi&&this.totalRecords>0&&(Gi.className+=""+this._stickyClass,this._stickyClass&&this.lockedColumns.length&&(this.isSticky="sticky",this.stickyColumnClass="sticky-"+this.lockedColumns.length))}),null==this.filteredColumn&&(this.filteredColumn=this.filterToggleValue?this.columns.filter(Gi=>!0===Gi.filterable)[0]?.name:null),this.tempOrderColumns=[...this.columns],this.removeGroupedColumnsFromColumnSelector()}this.setColumnsForExport(),je(!0)})}adjustAndAssignWidth(){this.columns&&this.columns.length>0&&(this.widths={},this.setColumnsOrder().then(je=>{je&&this.gridView&&!this.config.cardViewOnly&&this.columns&&(this.zenGrid.autoFitColumns(),setTimeout(()=>{this.fitColumns()}))}))}loadGrid(){this.hideColumns();const je=this.groups.map(Mn=>(Mn.dir=Mn.dir??"asc",Mn));this.gridData=(0,l.Xo)(this.gridData,je),this.gridView=(0,l.N4)(this.gridData,this.clientSidePaging?{skip:this.skip,take:this.pageSize,group:this.groups}:{group:this.groups}),this.gridView.total=this.totalRecords,this.adjustAndAssignWidth()}virtualPageChange(je){this.dataPagerSize=je.take,this.dataPagerSkip=je.skip,this.skip=je.skip,je.pageNumber=je.skip/je.take+1,this.pageNumber=je.skip/je.take+1,this.callDataPagerUpdate(),this.customVirtualizedPageSize.includes(this.virtualPageSize)&&this.onPageChange.emit({skip:this.dataPagerSkip,take:je.take,pageNumber:je.pageNumber})}callDataPagerUpdate(){this.pageNumber=this.dataPagerSkip/this.dataPagerSize+1,this.dataPagerCurrentPageIndexFn(),this.dataPagerMaxItemsFn()}resetDataPager(){this.pageNumber=1,this.skip=0,this.dataPagerCurrentPageIndexFn(),this.dataPagerMaxItemsFn()}dataPagerMaxItemsFn(){this.dataPagerMaxItems=Math.min(this.pageNumber*Number(this.dataPagerSize),this.virtualPageTotalRecords)}dataPagerCurrentPageIndexFn(){this.dataPagerCurrentPageIndex=this.virtualPageTotalRecords?(Number(this.pageNumber?this.pageNumber:1)-1)*Number(this.dataPagerSize)+1:0}pageChange(je){if(this.zenGrid&&"virtual"===this.zenGrid.scrollable)this.loading=!0,this.skip=je.skip,this.assignAllPageSizeSelectedData(!0);else if(this.clearFilter(),this.sort=[],this.pageSize=je.take,this.dataPagerSize=je.take,this.skip=je.skip,je.pageNumber=je.skip/je.take+1,this.pageNumber=je.skip/je.take+1,this.callDataPagerUpdate(),this.clientSidePaging&&this.onPageChange.emit(je),this.us.onToggle.getValue())this.clientSidePaging?this.loadData():this.onPageChange.emit(je);else{if(!sessionStorage.getItem("selectedSearchData"))return;this.getRecentData()}}setAllPageSize(){-1===this.pageSizeOptions.findIndex(Mn=>"All"===Mn.text)&&this.pageSizeOptions.push({text:"All"})}pageSizeChange(je){return this.clearFilter(),this.sort=[],0===this.intialSorting&&(this.intialSortingState=this.sortable,this.intialSorting++),this._intialPageChangedColumns=[...this.columns],this.contentScrollerReset(),this.customVirtualizedPageSize.includes(je.take)?(this.virtualPageSize=je.take,this.dataPagerSize=je.take,this.dataPagerSkip=0,this.pageSize=30,this.callDataPagerUpdate(),this.clientSidePaging?(this.totalData=this.gridData,this.assignAllPageSizeSelectedData()):this.onPageChange.emit({skip:this.dataPagerSkip,take:this.dataPagerSize,pageNumber:1}),void this.virtualGridMode()):"All"===je.take?(this.filter={logic:"and",filters:[]},this.virtualPageSize="30",this.pageSize=30,this.clientSidePaging?(this.totalData=this.gridData,this.assignAllPageSizeSelectedData(),this.onPageChange.emit({skip:je.skip,take:"All",pageNumber:1})):this.onPageChange.emit({skip:je.skip,take:"All",pageNumber:1}),void this.virtualGridMode()):(this.virtualPageSize="30",this.columns&&(this.filterToggleValue=this.tempShowFilterToggle,this.showFilterToggle=!!this.filterToggleValue,this.columns=[...this._intialPageChangedColumns]),this.zenGrid.scrollable="scrollable",this.scrollable="scrollable",this.zenGrid.rowHeight=null,this.zenGrid.height=null,je.skip=0,void this.pageChange(je))}virtualGridMode(){return new Promise(je=>{this.zenGrid&&(this.zenGrid.rowHeight=window.matchMedia("(max-width: 576px)").matches?156:53,this.zenGrid.height=window.matchMedia("(max-width: 576px)").matches?350:662),this.scrollable="virtual";const Mn=this;this.columns&&"All"===this.pageSizeTxt&&(this.filterToggleValue=!0,this.config&&Object.keys(this.config).includes("virtualGridFiltering")&&(this.filterToggleValue=this.config.virtualGridFiltering),this.showFilterToggle=!!this.filterToggleValue,this.columns.map(function(Gi){Mn.firstColumns.includes(Gi.name.toLowerCase())||(Gi.filterable=!0,Gi.sort=!0)})),je(!0)})}assignAllPageSizeSelectedData(je){!this.config.cardViewOnly&&"card"!==this.config.defaultView&&(this.preventGridFlicker=!0);let Mn,Gi,nr=0,is=30;if(this.groups&&this.groups.length>0&&(is=100),this.pageSizeTxt=this.customVirtualizedPageSize.includes(this.virtualPageSize)?this.virtualPageSize:"All",this.totalData?.data){Gi={...this.totalData},(this.filter?.filters?.length>0||this.sort?.length>0||this.groups?.length>0)&&(Gi.data=(0,l.N4)(Gi.data.slice(),{sort:this.sort,filter:this.filter}).data);const ta=this.groups.map(dl=>(dl.dir=dl.dir??"asc",dl));Gi.data=(0,l.Xo)(Gi.data,ta),Mn=Gi.data.slice(this.skip,this.skip+is),this.groups&&this.groups.length>0&&(Mn=(0,l.N4)(Mn.slice(),{group:this.groups}).data),nr=this.filter?.filters?.length>0?Gi.data.length:this.customVirtualizedPageSize.includes(this.virtualPageSize)&&this.totalData.data.length<=Number(this.virtualPageSize)?this.totalData.data.length:Gi.totalCount,this.gridData=Gi.data,this.totalRecords=nr,this.config.virtualMode&&(this.columns=Gi.columns)}else{Gi=[...this.totalData],(this.filter?.filters?.length>0||this.sort?.length>0||this.groups?.length>0)&&(Gi=(0,l.N4)(Gi.slice(),{sort:this.sort,filter:this.filter}).data);const ta=this.groups.map(dl=>(dl.dir=dl.dir??"asc",dl));Gi=(0,l.Xo)(Gi,ta),Mn=Array.isArray(Gi)?Gi.slice(this.skip,this.skip+is):[],this.groups?.length>0&&(Mn=(0,l.N4)(Mn.slice(),{group:this.groups}).data),this.totalRecords=Gi.length,nr=this.totalRecords,this.gridData=Gi}Mn.length>0?(this.showNoRecordMessage=!1,this.groups&&Object.keys(this.groups).length>0&&this.hideColumns(),this.gridView={data:Mn,total:nr},this.gridView={...this.gridView}):(this.gridView={data:(0,l.N4)(Mn,{filter:this.filter}).data,total:nr},this.showNoRecordMessage=0===this.totalRecords,!this.config.cardViewOnly&&"card"!==this.config.defaultView&&(this.preventGridFlicker=!1)),je?!this.config.cardViewOnly&&"card"!==this.config.defaultView&&(this.preventGridFlicker=!1):(this.autoSelection&&this.gridView.total>0&&this.primaryColumn&&(this.selectionKeys=[this.gridView.data[0][this.primaryColumn]],this.cardEntityId=this.gridView.data[0][this.primaryColumn],this.onSelectionChangeFn.emit(this.gridView.data[0])),this.adjustAndAssignWidth()),this.customVirtualizedPageSize.includes(this.virtualPageSize)&&this.callDataPagerUpdate(),this.loading=!1}sortChange(je){if(je||(je=[{dir:"asc",field:""}]),je?.length&&!je[0]?.dir&&this.sort?.length&&"desc"==this.sort[0]?.dir&&(je[0].dir="asc"),this.sort=je,this.zenGrid&&"virtual"===this.zenGrid.scrollable){for(let Mn=0;Mn<this.sort.length;Mn++){const Gi=this.columns.filter(nr=>nr.name===this.sort[Mn].field);Gi.length>0&&"date"===Gi[0].type.toLowerCase()&&(this.totalData?.data?this.totalData.data.map(nr=>nr[Gi[0].name]=nr[Gi[0].name]?this.convertDateToGMT(nr[Gi[0].name]):null):this.totalData?.map(nr=>nr[Gi[0].name]=nr[Gi[0].name]?this.convertDateToGMT(nr[Gi[0].name]):null))}return this.assignAllPageSizeSelectedData(!0),void(this.config&&this.config.sortingFnCallBack&&this.onSortingFn.emit(je))}this.clientSorting?this.gridView={data:(0,l.Xo)(this.gridData,this.sort),total:this.totalRecords}:(je[0].dir||(je=null),this.onSortingFn.emit(je))}selectionChange(je){Object.keys(je.selectedRows[0]?.dataItem).length&&(this._disableToggleSelectionCall=!0,this.selectionKeys=[je.selectedRows[0].dataItem[this.primaryColumn]],this.onSelectionChangeFn.emit(je.selectedRows[0].dataItem))}toggleSelectionChange(je){this._disableToggleSelectionCall||this.selectionKeys[0]!==je.dataItem[this.primaryColumn]?this._disableToggleSelectionCall=!1:(this.selectionKeys=[],this.onSelectionChangeFn.emit(null))}capitalizeFirstLetter(je){return je.charAt(0).toUpperCase()+je.slice(1)}filterChange(je){this.delay(1e3).then(Mn=>{if(this.editGridCell&&(this.zenGrid.closeRow(this.editedRowIndex),this.formData=void 0),this.zenGrid&&"virtual"===this.zenGrid.scrollable)return this.preventGridFlicker=!1,this.skip=0,this.clientSideFilterActivity(je,!0),void this.onColumnFilterValueChangeFn.emit(je);this.clientSideFilterActivity(je),this.filter=je,this.onColumnFilterValueChangeFn.emit(je),this.skip=0,this.config.isFilter=!0})}delay(je){return(0,e.Z)(function*(){yield new Promise(Mn=>setTimeout(()=>Mn(!0),je)).then(()=>{})})()}convertDateToGMT(je){let Mn=this.us.toJsDate(je,"jsdate");return new Date(Mn)}clientSideFilterActivity(je,Mn){if(this.skipColumnFilter)this.onColumnFilterCustomFn.emit(je);else{for(let nr=0;nr<je.filters.length;nr++){const is=this.columns.filter(ta=>ta.name.toLowerCase()===je.filters[nr].field.toLowerCase());is?.length&&"date"===is[0]?.type?.toLowerCase()&&(je.filters[nr].value=this.convertDateToGMT(je.filters[nr].value),Mn?this.totalData?.data?this.totalData.data.map(ta=>ta[is[0].name]=ta[is[0].name]?this.convertDateToGMT(ta[is[0].name]):null):this.totalData.map(ta=>ta[is[0].name]=ta[is[0].name]?this.convertDateToGMT(ta[is[0].name]):null):this.gridData.map(ta=>ta[is[0].name]=ta[is[0].name]?this.convertDateToGMT(ta[is[0].name]):null))}if(this.filterInside=(0,g.cloneDeep)(je),this.filterInside?.filters?.length)for(let nr=0;nr<=this.filterInside.filters.length;nr++){let is=this.filterInside.filters[nr]?.field,ta=this.filterInside.filters[nr]?.value;if(is&&null!=ta){this.columns.find($l=>$l.name==is&&"int"==$l.type)&&(ta=parseInt(ta,10),this.filterInside.filters[nr].value=ta);let dl=this.columns.findIndex($l=>$l.name==is&&1==$l?.translate&&"date"!==$l.type);if(this.columns.find($l=>$l.name==is&&"date"==$l.type)&&(this.filterInside.filters[nr].value=this.convertDateToGMT(ta)),-1!=dl){let $l=ta.toString().replace(/\s/g,"");this.filterInside.filters[nr].value=$l}}}this.filter=je,this.filteredData=(0,l.j)(Mn?this.totalData&&this.totalData.data?this.totalData.data:this.totalData:this.gridData,this.filterInside),this.showNoRecordMessage=0===this.filteredData.length,this.gridView=this.groups&&Object.keys(this.groups).length>0?this.clientSidePaging?{data:(0,l.N4)(this.filteredData.slice(this.skip,this.skip+this.pageSize),{group:this.groups,filter:this.filter,sort:this.sort}).data,total:0===je.filters.length&&Mn?this.totalData&&this.totalData.data?this.totalData.totalCount:this.totalRecords:this.filteredData.length}:{data:(0,l.N4)(this.filteredData,{group:this.groups,filter:this.filter,sort:this.sort}).data,total:0===je.filters.length&&Mn?this.totalData&&this.totalData.data?this.totalData.totalCount:this.totalRecords:this.filteredData.length}:this.pageable||this.clientSidePaging?je.filters.length>0||Mn?{data:this.filteredData.slice(this.skip,this.skip+this.pageSize),total:this.filteredData.length>0?this.filteredData.length:0}:{data:this.filteredData.slice(this.skip,this.skip+this.pageSize),total:this.totalRecords}:{data:this.filteredData,total:this.filteredData.length>0?this.filteredData.length:0},this.gridDragAndDropClass&&this.zenGridDomElementFn.next(this.zenGrid);const Gi=[];if((!this.aggregates||0===this.aggregates.length)&&(this.total||this.grandTotal)){const nr=this.obj.keys(this.total);for(let is=0;is<nr.length;is++)Gi.push({field:nr[is],aggregate:"sum"});this.aggregates=[...Gi]}if((Mn||this.clientSidePaging||this.calculateAggregates)&&this.filteredData&&this.aggregates&&this.aggregates.length>0){const nr=(0,l.VN)(this.filteredData,this.aggregates);if(nr){const is=this;this.aggregates.map(ta=>{is.grandTotal&&(this.grandTotal[ta.field]=nr[ta.field]&&nr[ta.field][ta.aggregate]?nr[ta.field][ta.aggregate]:0),is.total&&(this.total[ta.field]=nr[ta.field]&&nr[ta.field][ta.aggregate]?nr[ta.field][ta.aggregate]:0)}),this.grandTotal&&(0==this.filter?.filters?.length&&(this.grandTotal=this.dataSource.grandTotal),this.grandTotal={...this.grandTotal}),this.total&&(this.total={...this.total})}}if(Mn&&(this.totalRecords=0===je.filters.length&&Mn?this.totalData&&this.totalData.data?this.totalData.totalCount:this.totalRecords:this.filteredData.length),this.emptyFilterClass=0===this.filteredData.length?"emptyFilter":"",this.endlessScroll&&this.onServerSideFilter.emit(je),this.currentFilteredData=JSON.parse(JSON.stringify(this.filteredData)),this.onColumnFilterSearchFn.emit(this.filteredData),this.zenGrid&&"virtual"===this.zenGrid.scrollable)return;this.config&&this.config.filterFnCallBack&&this.onFilterChangeFn.emit(je)}}toggleFilter(je){let Mn={};if(this.showFilterToggle=je.checked,this.showFilterToggleDiv&&this.entityType&&this.directoryType.includes(this.entityType.toLowerCase())){if(this.filterToggleOptionProperty&&Object.keys(this.filterToggleOptionProperty).length>0){const Gi={},nr={};nr.optionPropertyId=this.filterToggleOptionProperty.optionPropertyId,nr.personId=this.tokenPersonId,nr.optionValue=je.checked,Gi[this.filterToggleOptionProperty.entityOptionId]=nr,Mn.PersonOption=Gi,Mn=[Mn],this.commonService.dynamicTsk(Mn,!1).pipe((0,x.R)(this._unsubscribeAll)).subscribe(is=>{0===this.filterToggleOptionProperty.entityOptionId&&(this.filterToggleOptionProperty.entityOptionId=is.entityOptionId)},is=>{this.us.callSnackBar("errorUpdatingColumnFilter","error")})}if(!je.checked){if(this.clientSideFiltering)return void this.clearFilter();this.filter={filters:[],logic:"and"},this.config&&this.config.filterFnCallBack&&this.onFilterChangeFn.emit(this.filter)}}else if(this.gridDragAndDropClass&&this.clientSideFiltering)return this.filter={filters:[],logic:"and"},this.filteredData=(0,l.j)(this.gridData,this.filter),this.filteredData.map(function(Gi){Gi.draggable=!0,Gi.dragging=!1}),void(this.gridView={data:this.filteredData,total:this.filteredData.length>0?this.filteredData.length:this.totalRecords});this.gridDragAndDropClass&&this.zenGridDomElementFn.next(this.zenGrid)}clearFilter(){this.filter={filters:[],logic:"and"},this.gridView=(0,l.N4)(this.gridData,{skip:this.skip,take:this.pageable?this.pageSize:this.gridData.length,group:this.groups,sort:this.sort,filter:this.filter}),this.filteredData.map(function(je){je.draggable=!0,je.dragging=!1}),this.gridData?.length&&(this.showNoRecordMessage=!1)}toggleGrouping(je){this.showGroupingToggle=je.checked,this.onGroupingToggleChangeFn.emit(je.checked)}toggleGroup(je){setTimeout(()=>{this.fitColumns()},10)}detailRowProcess(){this.zenGrid.detailExpand.pipe((0,x.R)(this._unsubscribeAll)).subscribe(je=>{this.collapseAll(),this.selectionKeys=[],je.skip=this.skip,je.pageSize=this.pageSize,je.total=this.total,je.grandTotal=this.grandTotal,je.gridView=this.gridView,je.gridData=this.gridData,je.zenMasterGridCmp=this,this.selectionKeys.push(je.dataItem[this.primaryColumn]),this.onSelectionChangeFn.emit(je.dataItem),this.detailRowIndex.findIndex(Gi=>Gi===je.index)<0&&(this.detailRowIndex.pop(),this.detailRowIndex.push(je.index)),sessionStorage.setItem("rowIndex",JSON.stringify(this.detailRowIndex)),this.detailRowInjector=n.zs3.create({providers:[{provide:s.X,useValue:je}],parent:this.parentInjector})}),this.zenGrid.detailCollapse.pipe((0,x.R)(this._unsubscribeAll)).subscribe(je=>{const Mn=this.detailRowIndex.findIndex(Gi=>Gi===je.index);-1!==Mn&&(this.detailRowIndex.splice(Mn,1),sessionStorage.setItem("rowIndex",JSON.stringify(this.detailRowIndex)))})}trackByKey(je,Mn){return Mn[this.primaryColumn]}collapseAll(){this.gridData&&this.gridData.forEach((je,Mn)=>{this.zenGrid.collapseRow(Mn)})}addHandler(je){this.addNew.emit(je)}removeRecords(){this.removeRow.emit({sender:this.zenGrid,selectedId:this.rowSelectedIds})}getRecentData(){this.sessionData=JSON.parse(sessionStorage.getItem("headerParams"));const je={skip:this.skip,take:this.pageSize};if(this.pageSizeTxt=this.pageSize.toString(),!this.sessionDataExists)return this.gridData=[],this.columns=this.columns,this.totalRecords=0,void this.loadData();if(!this.sessionSelectedData)return this.gridData=[],this.columns=this.columns,this.totalRecords=0,void this.loadData();{const Mn=this.entityType.toLowerCase(),Gi=JSON.parse(sessionStorage.getItem("recentData"))[this.sessionData.applicationId][Mn],nr=(0,l.N4)(Gi.data,je);Gi.totalCount=nr.total,Gi.data=nr.data,this.gridData={},this.columns=[],this.navigation="",this.navigationId=0,this.totalRecords=0,this.primaryColumn="",this.entity="",this.applicationId=0,this.gridData=0===Gi.totalCount?[]:Gi.data,this.columns=Gi.columns,this.navigation=Gi.navigation,this.navigationId=Gi.navigationId,this.totalRecords=Gi.totalCount,this.primaryColumn=Gi.primaryColumn,this.entity=Gi.entity,this.applicationId=Gi.applicationId,this.loadData()}}handleCellClick(je){this.config.preventHandleCellClick&&"Enter"==je.originalEvent.code||(this.toggleSelection?this.toggleSelectionChange({dataItem:je.dataItem,rowIndex:je.rowIndex}):this.gridCellEditClick({dataItem:je.dataItem,rowIndex:je.rowIndex,columnIndex:je.columnIndex,isEdited:je.isEdited}))}gridCellEditClick({dataItem:je,rowIndex:Mn,columnIndex:Gi,isEdited:nr}){this.editGridCell&&(nr||(this.intialZenSelCase=!1,this.editRowHandler({dataItem:je,rowIndex:Mn,colIndex:Gi,sender:this.zenGrid})))}gridCellDblClick(je){this.onDblClickFn.emit(je)}gridFavoriteClick(je,Mn){this.onFavoriteClickFn.emit(!0)}saveEditedRow(){this.editGridCell&&(this.formData&&!this.formData.valid&&!this.ignoreValidation||this.onGridCellEditorSaveFn.emit())}editRowHandler({sender:je,colIndex:Mn,rowIndex:Gi,dataItem:nr}){this.formData&&!this.formData.valid&&!this.ignoreValidation||(this.onGridCellEditorSaveFn.emit(),this.editedRowIndex=Gi,this.onGridCellEditFn.emit({sender:je,colIndex:Mn,rowIndex:Gi,dataItem:nr}))}clearFormData(){this.formData=void 0}navigationCellClick(je){if(this.isEntityDetail)if(je?.isArchive)this.us.callSnackBar("archivalData","error");else{let Mn;if(this.standaloneNavigationClick){const Gi=je;return this.primaryColumn=this.dataSource.primaryColumn,this.entity=this.dataSource.entity,this.navigationId=this.navigationId?this.navigationId:this.dataSource.navigationId,this.entityData.parentNavigationId=Gi.detailNavigationId?Gi.detailNavigationId:this.navigationId,this.entityData.entityId=Gi[Gi.detailPrimaryColumn?Gi.detailPrimaryColumn:this.primaryColumn],this.entityData.primaryColumn=Gi.detailPrimaryColumn?Gi.detailPrimaryColumn:this.primaryColumn,this.entityData.entity=Gi.detailEntity?Gi.detailEntity.toLowerCase():this.entity.toLowerCase(),this.entityData.gridDataItem=Gi,this.entityData.applicationId=this.applicationId,this.entityData={...this.entityData},this.setEntityDetailObject(this.filteredData?.length?this.filteredData:this.gridData,A.j.GridData,!0,this.entityData,je),void this.onNavigationCellClick.emit(this.entityData)}this.dataSource.navigationId||this.navigationId?(this.primaryColumn=this.dataSource.primaryColumn?this.dataSource.primaryColumn:this.sessionSelectedData.primaryColumn,this.entity=this.dataSource.entity?this.dataSource.entity:this.sessionSelectedData.entity,this.navigationId=this.navigationId?this.navigationId:this.dataSource.navigationId,Mn={entityId:je[this.dataSource.primaryColumn?this.dataSource.primaryColumn:this.primaryColumn],entity:this.entity.toLowerCase(),parentNavigationId:this.navigationId,applicationId:this.applicationId,primaryColumn:this.primaryColumn,gridDataItem:je},this.customTemplateAvailable?(Mn={entityId:je[this.dataSource.primaryColumn?this.dataSource.primaryColumn:this.primaryColumn],entity:this.entity.toLowerCase(),parentNavigationId:this.navigationId,applicationId:this.applicationId,primaryColumn:this.primaryColumn},this.setEntityDetailObject(this.filteredData?.length?this.filteredData:this.gridData,A.j.GridData,!0,Mn,je),this.setEntityData(Mn,!0).then(Gi=>{this.entityType&&this.addToRecent(je),this.onNavigationCellClick.emit(Gi)})):(Mn={entityId:je[this.dataSource.primaryColumn?this.dataSource.primaryColumn:this.primaryColumn],entity:this.entity.toLowerCase(),parentNavigationId:this.navigationId,applicationId:this.applicationId,primaryColumn:this.primaryColumn,gridDataItem:je},this.setEntityDetailObject(this.filteredData?.length?this.filteredData:this.gridData,A.j.GridData,!0,Mn,je),this.onNavigationCellClick.emit(Mn))):this.onSelectionChangeFn.emit(je)}else this.onSelectionChangeFn.emit(je)}addToRecent(je){if(this.config.checkRecentView||(this.config.checkRecentView=!0),(this.entityType||je.detailEntity)&&this.config.checkRecentView){const Gi={entity:je.detailEntity?je.detailEntity.toLowerCase():this.entityType.toLowerCase(),entityId:je[this.dataSource.primaryColumn?this.dataSource.primaryColumn:this.primaryColumn],applicationId:je.detailEntity?je.applicationId:this.sessionData.applicationId};this.commonService.insertRecentData(Gi).pipe((0,x.R)(this._unsubscribeAll)).subscribe(nr=>{})}}checkRecentData(){if(sessionStorage.getItem("recentData")){this.sessionData=JSON.parse(sessionStorage.getItem("headerParams"));const je=JSON.parse(sessionStorage.getItem("recentData"));if(je[this.sessionData.applicationId]){let Mn=this.entityType;Mn&&(Mn=Mn.toLowerCase(),je[this.sessionData.applicationId][Mn]&&(this.sessionDataExists=!0,this.sessionSelectedData=je[this.sessionData.applicationId][Mn]))}}this.getRecentData()}emitEditAction(je){this.selectionKeys=[je[this.primaryColumn]],this.onEditSelectionChangeFn.emit(je)}emitDeleteAction(je,Mn){this.selectionKeys=[Mn[this.primaryColumn]],Mn.rowIndex=je,this.onDeleteSelectionChangeFn.emit(Mn)}fabButtonActionClick(je){this.onFabBtnClick.emit(je)}refreshSortOrderClick(je){this.onRefreshSortOrderClick.emit(je)}getActionList(je){if(je.isArchive)this.actionList=null;else{let Mn={};if(this.selectionKeys=[],this.rowActionsSelectedData=je,this.selectionKeys.push(je[this.primaryColumn]),this.onSelectionChangeFn.emit(je),this.config&&this.config.rowActionJson)this.config.rowActionJson.entityId=this.config.isRowActionIndividualLevel?je[this.config.rowActionJson.rowActionPrimaryColumn]:0,Mn=this.config.rowActionJson;else switch(this.entityType){case"invoicing":case"invoice":const Gi={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entity,entityId:0,location:this.location};"invoicing"===this.entityType?Gi.entityId="invoice"===this.location?je.invoiceId:je.invoiceBatchId:"invoice"===this.entityType&&("correctionBatch"===this.entity?(Gi.entityId=je.invoiceId,Gi.entity="invoiceBatch"):Gi.entityId="invoiceMerge"===this.entity?je.invoiceMergeId:"invoice"===this.entity.toLowerCase()?je.invoiceId:je.invoiceBatchId,void 0===Gi.entityId&&(Gi.entityId=je.invoiceId)),Mn=Gi;break;case"payroll":case"paymentCorrectionBatch":Mn={directory:"paymentCorrectionBatch"===this.entityType?"payment":this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entity,entityId:"payment"===this.location?je.paymentId:je.paymentBatchId,location:this.location};break;case"billpayment":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entity,entityId:"payment"===this.location?je.paymentId:je.paymentBatchId,location:this.location,isBill:1};break;case"payment":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entity,location:this.location,entityId:"aRBatch"===this.entity?je.aRBatchId:je.paymentId};break;case"MarkUp":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:"Single",entity:"MarkUp",entityId:je.markUpId,organizationId:je.organizationId,location:this.location,optionProperty:"MarkUpFavoriteAction",applicationId:this.applicationId?this.applicationId:this.eds.getCurrentEntityDetail()?this.eds.getCurrentEntityDetail().applicationId:0};break;case"WorkInjury":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:"Single",entity:"WorkInjury",entityId:je.workInjuryId,organizationId:je.organizationId,location:this.location,optionProperty:"WorkInjuryFavoriteAction"};break;case"WCCode":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:"Single",entity:"WCCode",type:this.wCCodeType,typeId:this.wCCodeTypeId,entityId:je.wCCodeId,location:this.location,optionProperty:"WCCodeFavoriteAction"};break;case"DynamicReport":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:"Single",entity:"DynamicReport",entityId:je.reportId,location:this.location,optionProperty:"DynamicReportFavoriteAction"};break;case"Reports":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:"Single",entity:"Reports",entityId:je.reportId,location:this.location,optionProperty:"ReportsFavoriteAction"};break;case"Discount":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:"Single",entity:"Discount",entityId:je.discountId,organizationId:je.organizationId,location:this.location,optionProperty:"DiscountFavoriteAction"};break;case"Charge":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:"Single",entity:"Charge",entityId:je.chargeId,organizationId:je.organizationId,location:this.location,optionProperty:"ChargeFavoriteAction",applicationId:this.applicationId};break;case"Accounting":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:"Single",entity:"Accounting",location:this.location,optionProperty:"GLAutomationFavoriteAction"};break;case"bulkDocument":case"resumeImport":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,entityId:je.serviceBatchId};break;case"Timesheet":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,entityId:je.transactionBatchId,location:this.location};break;case"TimeImport":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entity,entityId:je.importBatchId,location:this.location};break;case"skill":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,entityId:je.skillId};break;case"AccountingPeriod":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:"Single",entity:"AccountingPeriod",entityId:je.accountingPeriodId,optionProperty:"AccountingPeriodFavoriteAction"};break;case"BankFeed":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entity,location:this.location,entityId:je.bankFileBatchId};break;case"ExportBatch":"exportbatch"==this.entity.toLowerCase().trim()&&(Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,location:this.location,entityId:je.exportBatchId});break;case"Role":"role"===this.entity.toLowerCase().trim()&&(Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,location:this.location,entityId:je.roleId});break;case"paycode":case"deduction":case"benefit":case"salesTax":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,entityId:je.transactionCodeId};break;case"tasktemplate":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,entityId:je.taskTemplateId};break;case"form":case"group":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,entityId:je.formId};break;case"exception":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,entityId:je.exceptionId};break;case"report":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,entityId:je.reportId};break;case"tile":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,entityId:je.tileId};break;case"billItem":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,entityId:je.billItemId};break;case"bankAccount":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,entityId:je.bankAccountId};break;case"officeStaff":case"agent":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,entityId:je.personId};break;case"office":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,entityId:je.officeId};break;case"document":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,entityId:je.documentId};break;case"agency":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,entityId:je.organizationId,applicationId:this.applicationId};break;case"culture":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,entityId:je.cultureId};break;case"tenantOrganization":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,entityId:je.organizationId};break;case"workflow":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,entityId:je.workflowId};break;case"accrual":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,entityId:je.accrualId};break;case"assignment":Mn={directory:this.entityType,navigationId:this.navigationId,navigationActionType:this.navigationActionType,entity:this.entityType,entityId:je.assignmentId};break;default:Mn={}}Mn.applicationId=this.eds.getCurrentEntityDetail()?this.eds.getCurrentEntityDetail().applicationId:0,this.actionList=void 0,"navigation"==this.entityType&&0==je.editAccess?this.us.callSnackBar("landingNavigationAreNotAllowedToUpdateAccess","info"):this.commonService.personNavigationAction(Mn,!!Mn?.entityId).pipe((0,x.R)(this._unsubscribeAll)).subscribe(Gi=>{this.actionList=Gi?Gi.data:null})}}selectRowAction(je,Mn,Gi){this.onSelectionChangeFn.emit(Gi),this.onGridRowActionSelected.emit(Mn),this.rowActionMenuClosed&&je.stopPropagation()}gridSettingsMenuClosed(je){this.isEmitChange&&(this.gridHeaderMenuClosedJson={showOthersBatch:this.showOthersBatch,showPostedBatch:this.showPostedBatch},this.gridHeaderMenuClosed.emit(this.gridHeaderMenuClosedJson),this.isEmitChange=!1),this.clickZenGridComponentForDomChanges()}toggleChange(){this.isEmitChange=!0,this.clickZenGridComponentForDomChanges()}headerCheckBoxChangeFn(je){if(this.filteredData&&this.filteredData.length>0)if(je.checked){let Mn=JSON.parse(JSON.stringify(this.filteredData));Mn.map(Gi=>Gi.isSelect=!0),this.currentFilteredData=Mn,this.onColumnFilterSearchFn.emit(this.currentFilteredData)}else{let Mn=JSON.parse(JSON.stringify(this.filteredData));Mn.map(Gi=>Gi.isSelect=!1),this.currentFilteredData=Mn,this.onColumnFilterSearchFn.emit([])}this.onHeaderCheckboxChangeFn.emit(je),this.clickZenGridComponentForDomChanges()}visibleAllCheckBoxChangeFn(je){this.gridView.data.map(Mn=>Mn.isSelect=je.checked),this.onVisibleAllCheckBoxChangeFn.emit(je)}rowCheckboxChangeFn(je,Mn,Gi){if(this.filteredData&&this.filteredData.length>0){const is=this.currentFilteredData.findIndex(ta=>ta[this.primaryColumn]===Gi[this.primaryColumn]);je.checked?-1!=is?(this.currentFilteredData[is].isSelect=!0,this.currentFilteredData=this.currentFilteredData.filter(ta=>1==ta.isSelect)):(Gi.isSelect=!0,this.currentFilteredData.push(Gi)):this.currentFilteredData.splice(is,1),this.onColumnFilterSearchFn.emit(this.currentFilteredData)}if(this.primaryColumn){const is=this.rowSelectedIds.findIndex(ta=>ta[this.primaryColumn]===Gi[this.primaryColumn]);-1!=is&&this.rowSelectedIds.splice(is,1),je.checked&&this.rowSelectedIds.push(Gi)}this.onRowCheckboxChangeFn.emit({event:je,rowIndex:Mn,dataItem:Gi})}groupHeaderCheckBoxChangeFn(je,Mn,Gi){const nr=this.gridView.data.filter(function(is){return is.value===Mn});nr.length>0&&(nr[0].items.forEach(!0===je.checked?function(is){is.isSelect=!0}:function(is){is.isSelect=!1}),this.onGroupHeaderCheckboxChangeFn.emit({data:nr[0].items,checked:je.checked}))}selectGroupingHeaderCheckBox(je,Mn){this.groupHeaderChk[0][Mn+"Checked"]="Checked"===je,this.groupHeaderChk[0][Mn+"Indeterminate"]="Indeterminate"===je}rowCallback(je){const Mn=je.index%2==0;return{even:Mn,odd:!Mn}}rowClassCallBack(je){return{dragging:je.dataItem.dragging}}groupChange(je){var Mn=je.length-1;Mn>-1&&this.firstColumns.includes(je[Mn].field.toLowerCase())?je.splice(Mn,1):(this.groups=je,this.onGroupChangeFn.emit(this.groups),je.length?this.groups.map(Gi=>Gi.aggregates=this.aggregates):this.groupLabels=[],"virtual"===this.zenGrid?.scrollable?(this.hideColumns(),this.assignAllPageSizeSelectedData()):this.loadGrid())}hideColumns(){if(this.hiddenColumns=[],this.groups)for(const je of this.groups)-1===this.hiddenColumns.indexOf(je.field)&&this.hiddenColumns.push(je.field);if(this.groupLabels)for(const je of this.groupLabels)-1===this.hiddenColumns.indexOf(je.field)&&this.hiddenColumns.push(je)}collapseDetailRow(){if(this.hasDetailRow&&(this.detailRowIndex=null==JSON.parse(sessionStorage.getItem("rowIndex"))?[]:JSON.parse(sessionStorage.getItem("rowIndex")),this.detailRowIndex&&this.detailRowIndex.length>0)){const je=this;this.detailRowIndex.forEach(Mn=>{je.zenGrid.collapseRow(Mn)}),sessionStorage.removeItem("rowIndex")}}collapseDetailRows(){if(this.gridData)for(let je=0;je<this.gridData.length;je++)this.zenGrid.collapseRow(je)}openBar(je){if(this.selectionKeys=[je[this.primaryColumn]],this.onSelectionChangeFn.emit(je),je?.isArchive)this.us.callSnackBar("archivalData","error");else{if("ScheduledJob"==this.entity){const Gi=this.eds.applicationData.application.find(fl=>"JSM"==fl.application);if(!Gi)return void console.error("JSM application not found!!!");const nr=Gi.applicationId;let is=JSON.parse(this.us.decrypt(localStorage.getItem("ZNPL")));const dl=document.location.origin;is.webOriginUrl=dl,is.apiUrl=this.apiUrl,is.person.application="JSM",is.person.applicationId=nr;const $l=this.us.encrypt(JSON.stringify(is));return window.open(`${this._jsmWebUrl}scheduled-job/directory/${je.jobId}?id=${$l}`,"_blank","noopener=true"),void console.log(`${this._jsmWebUrl}scheduled-job/directory/${je.jobId}?id=${$l}`)}if(this.isEntityDetail){const Mn={entityId:je[je.detailPrimaryColumn?je.detailPrimaryColumn:"organizationPersonRoleId"===this.primaryColumn?"personId":this.primaryColumn],entity:je.detailEntity?je.detailEntity?.toLowerCase():this.entity?.toLowerCase(),parentNavigationId:je.detailNavigationId?je.detailNavigationId:this.navigationId,applicationId:je.applicationId?je.applicationId:this.applicationId,primaryColumn:je.detailPrimaryColumn?je.detailPrimaryColumn:this.primaryColumn};if(window.innerWidth<=767)return void this.navigationCellClick(je);if(!1===je.showSlideView)return void this.us.callSnackBar("youCannotViewTheEntity.","warning");this.addToRecent(je),this.setEntityDetailObject(this.filteredData?.length?this.filteredData:this.gridData,A.j.GridData,!0,Mn,je),this.setEntityData(Mn,null,je).then(Gi=>{this.onOpenBar.emit()})}else this.onOpenBar.emit()}}slidePanel(){this.onSlidePanelView.emit(!0)}openMultiViewBar(je,Mn){const Gi={entityId:0,entity:"",parentNavigationId:0,applicationId:0,primaryColumn:"",selectionColumn:"",selectionId:0};switch(this.selectionKeys=[je[this.primaryColumn]],Mn.listItem.toLowerCase()){case"customer":Gi.entity="Customer",Gi.entityId=je.organizationId,Gi.primaryColumn="organizationId";break;case"lead":Gi.entity="Lead",Gi.entityId=je.organizationId,Gi.primaryColumn="organizationId";break;case"newcustomer":Gi.entity="NewCustomer",Gi.entityId=je.organizationId,Gi.primaryColumn="organizationId";break;case"target":Gi.entity="Target",Gi.entityId=je.organizationId,Gi.primaryColumn="organizationId";break;case"contact":Gi.entity="Contact",Gi.entityId=je.personId,Gi.primaryColumn="personId";break;case"agency":Gi.entity="Agency",Gi.entityId=je.organizationId,Gi.primaryColumn="organizationId";break;case"employee":Gi.entity="Employee",Gi.entityId=je.personId,Gi.primaryColumn="personId";break;case"applicant":Gi.entity="applicant",Gi.entityId=je.personId,Gi.primaryColumn="personId";break;case"newhire":Gi.entity="newhire",Gi.entityId=je.personId,Gi.primaryColumn="personId";break;case"candidate":Gi.entity="jobcandidate",Gi.entityId=je.jobCandidateId,Gi.primaryColumn="jobCandidateId";break;case"jobcandidate":Gi.entity="JobCandidate",Gi.entityId=je.jobCandidateId,Gi.primaryColumn="jobCandidateId";break;case"workinjury":Gi.entity="WorkInjury",Gi.entityId=je.workInjuryId,Gi.primaryColumn="workInjuryId";break;case"unemployment":Gi.entity="Unemployment",Gi.entityId=je.unemploymentId,Gi.primaryColumn="unemploymentId";break;case"job":Gi.entity="Job",Gi.entityId=je.jobId,Gi.primaryColumn="jobId";break;case"tempjob":Gi.entity="TempJob",Gi.entityId=je.jobId,Gi.primaryColumn="jobId";break;case"directhirejob":Gi.entity="DirectHireJob",Gi.entityId=je.jobId,Gi.primaryColumn="jobId";break;case"transaction":Gi.entity="Transaction",Gi.entityId=je.transactionId,Gi.primaryColumn="transactionId";break;case"assignment":Gi.entity="Assignment",Gi.entityId=je.assignmentId,Gi.primaryColumn="assignmentId";break;case"invoice":Gi.entity="Invoice",Gi.entityId=je.invoiceId,Gi.primaryColumn="invoiceId";break;case"payment":Gi.entity="Payment",Gi.entityId=je.paymentId,Gi.primaryColumn="paymentId"}Gi.parentNavigationId=Mn.parentNavigationId,Gi.applicationId=Mn.applicationId?Mn.applicationId:this.applicationId,Gi.selectionColumn=this.primaryColumn,Gi.selectionId=je[this.primaryColumn],this.entityType&&this.addToRecent(je),this.setEntityDetailObject(this.filteredData?.length?this.filteredData:this.gridData,A.j.GridData,!0,Gi,je),this.setEntityData(Gi).then(nr=>{this.onOpenBar.emit()})}setEntityData(je,Mn,Gi){return new Promise(nr=>{this.customTemplateAvailable?this.eds.loadEntityDataFromDb(je).then(is=>{is&&nr(is)}):(this.entityData.parentNavigationId=je.parentNavigationId,this.entityData.entityId=je.entityId,this.entityData.primaryColumn=je.detailPrimaryColumn?je.detailPrimaryColumn:this.primaryColumn,this.entityData.entity=je.entity,this.entityData.gridDataItem=Gi,this.entityData.applicationId=this.applicationId,this.entityData={...this.entityData},this.setEntityDetailObject(this.entityData,A.j.EntityData,!1,this.entityData),nr(this.entityData))})}hideColumn(je){const Mn=this.columns;Mn.splice(Mn.indexOf(je),1)}removeKGridUndefinedSortData(je){return je.forEach((Mn,Gi)=>{void 0===Mn.dir&&je.splice(Gi,1)}),je}changeView(je,Mn){"card"===je?(this.viewchange="card-view-grid",this.displayMode="card",this.showFilterToggleDiv=!1,this.showGroupingToggleDiv=!1,this.preventGridFlicker=!1,this.cardviewtblwidth()):"customCard"===je?(this.viewchange="custom-card-view",this.displayMode="customCard",this.preventGridFlicker=!1):"compact"===je?(this.showGroupingToggleDiv=!(!this.prevGroupingVal&&!this.showGroupingToggle),this.showFilterToggleDiv=!(!this.prevFilteringVal&&!this.showFilterToggle),this.viewchange="compact-view-grid",this.displayMode="compactGrid",Mn||this.adjustAndAssignWidth()):(this.showGroupingToggleDiv=!(!this.prevGroupingVal&&!this.showGroupingToggle),this.showFilterToggleDiv=!(!this.prevFilteringVal&&!this.showFilterToggle),this.viewchange="mygrid",this.displayMode="grid",Mn||this.adjustAndAssignWidth()),this.onGridViewChange.emit({view:je})}showControls(je){const Mn=je.target.classList.contains("mat-icon","z-shutter-arrow"),Gi=je.target.classList.contains("grid-view-control-open");(Mn||Gi)&&(this.displayCard?(this.displayCard=!1,this.zenPanelArrow="keyboard_arrow_up"):(this.displayCard=!0,this.zenPanelArrow="keyboard_arrow_down"))}cancelHandler(){}gridCellEditAddKeyDown(je){if(!this.editGridCell||(this.onKeyDown.emit(je),this.manualTabSwitch)||"Tab"!==je.key)return;let Mn=this.zenGrid.activeRow;if(!Mn||!Mn.dataItem)return;const Gi=this.zenGrid.activeCell;let nr=!1;const is=Mn.dataItem,ta=Number(this.startColIndex),dl=Number(this.endColIndex);if(nr=ta||dl?je.shiftKey?is&&Gi.colIndex===ta:is&&Gi.colIndex==dl:je.shiftKey?is&&0===Gi.colIndex:is&&Gi.colIndex==this.columns.length-1,nr){if(ta||dl){for(let _c=dl;_c<this.columns.length;_c++)if(this.zenGrid.focusNextCell(),_c==this.columns.length-1){if(!this.zenGrid.activeCell)return void this.onGridCellEditorSaveFn.emit();this.zenGrid.activeCell&&this.zenGrid.focusCell(this.zenGrid.activeCell.rowIndex,ta+1)}}else{if(!this.zenGrid.activeCell)return;setTimeout(()=>{this.zenGrid.focusCell(this.zenGrid.activeCell.rowIndex,1)})}Mn=this.zenGrid.activeRow,this.gridCellEditClick({dataItem:Mn.dataItem,rowIndex:Mn.index-1,columnIndex:this.startColIndex})}}onDropDownValChange(je,Mn,Gi){this.formData.controls[Gi.name].setValue(je.value);const nr=Gi.editorData.find(is=>is[Gi.editorValueField]===je.value);this.formData.controls[Gi.editorTextField].setValue(nr[Gi.editorTextField]),this.editorDDLValChange.emit({event:je,dataItem:Mn,column:Gi})}zenSelectedData(je,Mn,Gi){je.length>0?(this.formData.controls[Gi.editorValueField]?.setValue(je[0][Gi.editorValueField]),this.formData.controls[Gi.editorTextField]?.setValue(je[0][Gi.editorTextField]),this.intialZenSelCase?this.formData.controls[Gi.editorValueField].markAsDirty():this.intialZenSelCase=!0,this.editorDDLValChange.emit({event:je,dataItem:Mn,column:Gi})):(this.formData.controls[Gi.editorValueField].setValue(null),this.formData.controls[Gi.editorTextField].setValue(null),this.selectionClear.emit({event:je,dataItem:Mn,column:Gi}))}textEditorKeyDownFn(je,Mn,Gi){this.ontextEditorKeyDown.emit({event:je,dataItem:Mn,column:Gi})}zenSelectKeyUp(je,Mn,Gi){""===je||void 0===je?(this.formData.controls[Gi.name].markAsDirty(),this.formData.controls[Gi.name].setValue(null),this.formData.controls[Gi.editorValueField].setValue(null),this.formData.controls[Gi.editorValueField].markAsDirty(),this.formData.controls[Gi.editorValueField].setErrors({incorrect:!0})):(this.formData.controls[Gi.name].markAsDirty(),this.formData.controls[Gi.name].setValue(je),this.formData.controls[Gi.editorValueField].setValue(0))}transform(je,Mn){let Gi;return Gi="date"===Mn?(0,u.p6)(new Date(je),"MM/dd/yyyy"):je,je}getSelectedData(je,Mn){if(Mn.value)return je.editorData.find(Gi=>Gi[je.editorValueField]===Mn.value)[je.editorTextField]}clearSlideData(){this.loadSlideView=!1}onDataStateChange(je){}fitColumns(){"card-view-grid"!==this.viewchange?(this.zenGrid.autoFitColumns(),this.adjustWidth()):this.preventGridFlicker=!1}cardviewtblwidth(){let je,Mn,Gi;if(Mn=document.querySelector("."+this.uniqueClass+" .k-grid-table-wrap"),je=document.querySelector("."+this.uniqueClass+" .k-grid-table"),Gi=document.querySelector("."+this.uniqueClass+" .k-grid-header-wrap table"),je&&Mn){const nr=Mn.offsetWidth;je.style.width=nr-10+"px",Gi.style.width=nr-10+"px"}}adjustWidth(){let je,Mn,Gi=!1;for(let nr=0;nr<this.groups.length;nr++)this.hiddenColumns.includes(this.groups[nr].field)&&(Gi=!0);if(je=document.querySelector("."+this.uniqueClass+" .k-grid-table"),Mn=document.querySelector("."+this.uniqueClass+" .k-grid-table-wrap"),je&&Mn){const nr=je.offsetWidth,is=Mn.offsetWidth,ta={};let dl=0,$l=0,fl=0,_c=0;this.groupLabels?.length||this.groups&&this.groups?.length?(_c=this.columns?.length-this.groupLabels?.length-this.groups.length-(Gi?0:this.hiddenColumns?.length)-this.numberOfActions,dl=(is-nr)/_c):(_c=this.columns?.length-this.numberOfActions-this.hiddenColumns?.length,dl=(is-nr)/_c),nr<is?this.autoGrid?.columns?.toArray().map(Ol=>{this.firstColumns.includes(Ol.field.toLowerCase())?(fl="isselect"===Ol.field.toLowerCase()||"isapprove"===Ol.field.toLowerCase()?70:"view"===Ol.field.toLowerCase()||"multiview"===Ol.field.toLowerCase()?40:this.config&&this.config[Ol.field+"Width"]>0?this.config[Ol.field+"Width"]:50,Ol.width>fl?($l+=Ol.width-fl,Ol.width=fl):($l-=fl-Ol.width,$l=fl,Ol.width=fl)):Ol.width=Ol.width+dl}):this.autoGrid.columns.toArray().map(Ol=>{this.firstColumns.includes(Ol.field.toLowerCase())&&(fl="isselect"===Ol.field.toLowerCase()||"isapprove"===Ol.field.toLowerCase()?70:"view"===Ol.field.toLowerCase()||"multiview"===Ol.field.toLowerCase()?40:this.config&&this.config[Ol.field+"Width"]>0?this.config[Ol.field+"Width"]:50,Ol.width>fl?($l+=Ol.width-fl,Ol.width=fl):($l-=fl-Ol.width,$l=fl,Ol.width=fl))}),$l>0&&(dl=$l/_c,this.autoGrid.columns.toArray().map(Ol=>{this.firstColumns.includes(Ol.field.toLowerCase())?ta[Ol.field]=Ol.width:(ta[Ol.field]=Ol.width+dl,Ol.width=Ol.width+dl)})),this.widths=ta,this.preventGridFlicker=!1}}onResize(je){this.zenGridXSsize(je.target.innerWidth,je.type),"resize"===je.type&&!this.config.cardViewOnly&&"card"!==this.config.defaultView&&(this.preventGridFlicker=!0,this.adjustAndAssignWidth())}zenGridXSsize(je,Mn){if("resize"===Mn&&this.config&&this.config.gridViewOnly)return this.preventGridFlicker=!0,void this.adjustAndAssignWidth();if(!this.displayCard){let Gi="grid";Object.keys(this.config).length>0&&(Gi=this.config.defaultView),this.changeView(Gi,Mn)}}onClick(je){je.classList.contains("z-shutter-arrow")||(this.displayCard=!0,this.zenPanelArrow="keyboard_arrow_down")}onDetailExpand(je){this.onDetailExpandFn.emit(je)}onDetailCollapse(je){this.onDetailCollapseFn.emit(je)}exportToExcelCheck(je){this.excelExportNetworkCall?this.onExcelExportNetworkCall.emit(!0):this.exportToExcel(je)}exportToExcel(je){let Mn=0;this.zenGrid.excelExport.pipe((0,x.R)(this._unsubscribeAll)).subscribe(Gi=>{if(Gi&&this.zenGrid&&0===Mn&&(this.total&&Object.keys(this.total).length>0||this.grandTotal&&Object.keys(this.grandTotal).length>0)){let nr=[],is=[],ta=[];ta=[],this.excelExportColumns.forEach((fl,_c)=>{0===_c?(nr.push({value:this.translate.instant("total")?this.translate.instant("total"):"total",...this.getWorkBookCellProp("footer",fl.type,"left")}),is.push({value:this.translate.instant("grandTotal")?this.translate.instant("grandTotal"):"grandTotal",...this.getWorkBookCellProp("footer",fl.type,"left")})):(nr.push({value:this.total[fl.name],...this.getWorkBookCellProp("footer",fl.type)}),is.push({value:this.grandTotal[fl.name],...this.getWorkBookCellProp("footer",fl.type)}))}),nr.length>0&&(ta.push({cells:nr}),nr=[]),is.length>0&&(ta.push({cells:is}),is=[]);const dl=Gi.workbook.sheets[0].rows,$l=dl.findIndex(fl=>"footer"===fl.type);-1!==$l&&(dl.splice($l,1),Gi.workbook.sheets[0].rows=[...dl,...ta]),Mn++}}),0!==this.gridView.data.length?this.zenGrid.saveAsExcel():this.us.callSnackBar("noRecordsToExport","warning")}allData(){let je=(0,g.cloneDeep)(this.filter);je.filters.forEach(Gi=>{Gi.value&&!isNaN(Date.parse(Gi.value))&&(Gi.value=this.formatDate(Gi.value))});const Mn=this.excelExportColumns.filter(Gi=>"date"==Gi.type);if(Mn.length>0){const nr=(0,g.cloneDeep)(this.gridData).map(ta=>(Mn.forEach(dl=>{ta[dl.name]&&(ta[dl.name]=this.formatDate(ta[dl.name]))}),ta));return{data:(0,l.N4)(nr,{group:this.groups,sort:this.sort,filter:je}).data,group:this.groups}}return{data:(0,l.N4)(this.gridData,{group:this.groups,sort:this.sort,filter:je}).data,group:this.groups}}formatDate(je){const Mn=this.us.toJsDate(je,"jsdate"),Gi=Mn.getFullYear();return`${String(Mn.getMonth()+1).padStart(2,"0")}/${String(Mn.getDate()).padStart(2,"0")}/${Gi}`}getWorkBookCellProp(je,Mn,Gi){return{format:d.XL.settings.workbook.format[Mn]||null,background:d.XL.settings.workbook[je].background,color:d.XL.settings.workbook[je].color||null,borderTop:d.XL.settings.workbook[je].borderTop||null,borderLeft:d.XL.settings.workbook[je].borderLeft||null,borderRight:d.XL.settings.workbook[je].borderRight||null,bold:d.XL.settings.workbook[je].bold,fontSize:d.XL.settings.workbook[je].fontSize,textAlign:Gi||(d.XL.settings.workbook.rightAlignedDataTypes.includes(Mn)?"right":"left"),verticalAlign:d.XL.settings.workbook[je].verticalAlign,wrap:d.XL.settings.workbook[je].wrap}}setColumnsForExport(){let je=[];je=[...this.columns];for(const Mn of this.firstColumns){const Gi=je.findIndex(nr=>nr.name.toLowerCase()===Mn);-1!==Gi&&je.splice(Gi,1)}if(this.hiddenColumns.length>0)for(const Mn of this.hiddenColumns){const Gi=je.findIndex(nr=>nr.name.toLowerCase()===Mn);-1!==Gi&&je.splice(Gi,1)}this.excelExportColumns=[...je]}clickZenGridComponentForDomChanges(){const je=document.getElementById("zen-grid-id");this.config.preventDomClick||!je||je.click()}resetColumnOptions(){const je={default:!0,hiddenColumns:[],columnOrders:[],skipTabColumns:[]};this.gridColumnActionMenuTriggerRef.closeMenu(),this._matMenuClosed=!0,this._isDirtyHiddenColumn=!0,this._isDirtyOrderColumn=!0,this.preventGridFlicker=!0,(0,C.D)(this.saveColumnOrderChange(je),this.saveHiddenColumnChange(je)).pipe((0,x.R)(this._unsubscribeAll),(0,f.b)(()=>{this._isDirtyHiddenColumn=!1,this._isDirtyOrderColumn=!1})).subscribe(()=>{this.adjustAndAssignWidth(),this.hiddenColumns=this.config.gridColumnOptions.hiddenColumns.defaultValue?this.config.gridColumnOptions.hiddenColumns.defaultValue.split(","):[],this.tempHiddenColumns=[...this.hiddenColumns],this.groups.map(Gi=>Gi.field).forEach(Gi=>{this.hiddenColumns?.includes(Gi)||this.hiddenColumns.push(Gi)}),this.tempOrderColumns=[...this.tempOrderColumns],this.removeGroupedColumnsFromColumnSelector(),this.setColumnsForExport()})}applyColumnOptions(){var je=this.addGroupedColumnsFromColumnSelector();const Mn={default:!1,hiddenColumns:this.tempHiddenColumns,columnOrders:je};this.gridColumnActionMenuTriggerRef&&(this.preventGridFlicker=!0,this.gridColumnActionMenuTriggerRef.closeMenu(),this._matMenuClosed=!0,this.hiddenColumns=this.tempHiddenColumns,this.columns=this.tempOrderColumns,this.setColumnsForExport(),(0,C.D)(this.saveColumnOrderChange(Mn),this.saveHiddenColumnChange(Mn)).pipe((0,x.R)(this._unsubscribeAll),(0,f.b)(()=>{this._isDirtyHiddenColumn=!1,this._isDirtyOrderColumn=!1})).subscribe(()=>{this.adjustAndAssignWidth()}))}hiddenColumnChanged(je,Mn){if(je.checked||this.tempHiddenColumns.includes(Mn.name)){if(je.checked&&this.tempHiddenColumns.includes(Mn.name)){const Gi=this.tempHiddenColumns.indexOf(Mn.name);Gi>-1&&(this.tempHiddenColumns.splice(Gi,1),this._isDirtyHiddenColumn=!0)}}else this._isDirtyHiddenColumn=!0,this.tempHiddenColumns.push(Mn.name)}orderColumns(je,Mn){const Gi=this.tempOrderColumns[je.previousIndex],nr=this.tempOrderColumns[je.currentIndex];!this.firstColumns.includes(Gi.name)&&!this.firstColumns.includes(nr.name)&&(this.tempOrderColumns.splice(je.previousIndex,1),this.tempOrderColumns.splice(je.currentIndex,0,Gi),this._isDirtyOrderColumn=!0)}saveColumnOrderChange(je){if(je.default||this._isDirtyOrderColumn){let Mn=je.default?this.config.gridColumnOptions.columnWithOrdering.defaultValue:je.columnOrders.join(",");const Gi=[],nr=Mn.split(",");for(const is of nr){const ta=this.columns.find(dl=>dl.name.toLowerCase()===is.toLowerCase());ta&&Gi.push(ta)}if(this.columns=[...Gi],this.tempOrderColumns=[...this.columns],this.removeGroupedColumnsFromColumnSelector(),this.config.gridColumnOptions.columnWithOrdering&&Mn!==(this.config.gridColumnOptions.columnWithOrdering.optionValue||"")){const is={};return is[this.config.gridColumnOptions.columnWithOrdering.personOptionId]={optionPropertyId:this.config.gridColumnOptions.columnWithOrdering.optionPropertyId,optionValue:Mn},this.saveOptionToServer([{personOption:is}],this.config.gridColumnOptions.columnWithOrdering).pipe((0,k.U)(ta=>(this.config.gridColumnOptions.columnWithOrdering.optionValue=Mn,Mn)))}}return(0,R.of)(!1).pipe()}saveHiddenColumnChange(je){if(je.default||this._isDirtyHiddenColumn){const Mn=je.default?this.config.gridColumnOptions.hiddenColumns.defaultValue:je.hiddenColumns.join(","),Gi={};return Gi[this.config.gridColumnOptions.hiddenColumns.personOptionId]={optionPropertyId:this.config.gridColumnOptions.hiddenColumns.optionPropertyId,optionValue:Mn},this.saveOptionToServer([{personOption:Gi}],this.config.gridColumnOptions.hiddenColumns).pipe((0,k.U)(nr=>(this.config.gridColumnOptions.hiddenColumns.optionValue=Mn,this.tempHiddenColumns=Mn.split(","),this.hiddenColumns=[...this.tempHiddenColumns],this.hiddenColumns)))}return(0,R.of)(!1).pipe()}saveOptionToServer(je,Mn){return this.commonService.dynamicTsk(je).pipe((0,x.R)(this._unsubscribeAll),(0,k.U)(Gi=>(Gi&&Gi.personOptionId&&(Mn.personOptionId=Gi.personOptionId,Mn.optionValue=Gi.optionValue),Gi)))}reInitializeData(je,Mn){this.filter?.filters.length>0?this.clientSideFilterActivity(this.filter,!0):(this.gridView.data=je,Mn&&(this.gridView.total=Mn,this.totalRecords=Mn,this.showNoRecordMessage=!(Mn>0)),this.gridData=je)}contentScrollerReset(){this.grid?.nativeElement?.getElementsByClassName("k-grid-content")?.item(0)?.scrollTo({top:0});const Gi=document.getElementsByClassName("k-grid-table");if(Gi)for(let nr=0;nr<Gi.length;nr++)Gi[nr].style.transform="none"}multiActionMenuMouseEnter(){this._isMultiActionMatMenuOpen=!0}multiActionMenuMouseLeave(je,Mn){setTimeout(()=>{this._multiActionBtnEntered?this._isMultiActionMatMenuOpen=!1:(this._isMultiActionMatMenuOpen=!1,je.closeMenu(),this.renderer.removeClass(Mn._elementRef.nativeElement,"cdk-focused"),this.renderer.removeClass(Mn._elementRef.nativeElement,"cdk-program-focused"))},80)}multiActionBtnEnter(je){setTimeout(()=>{this._multiActionMenuTriggerRef&&this._multiActionMenuTriggerRef!==je?(this._multiActionMenuTriggerRef.closeMenu(),this._multiActionMenuTriggerRef=je,je.openMenu()):this._isMultiActionMatMenuOpen?(this._multiActionBtnEntered=!0,this._multiActionMenuTriggerRef=je):(this._multiActionBtnEntered=!0,this._multiActionMenuTriggerRef=je,je.openMenu())})}multiActionBtnLeave(je,Mn){setTimeout(()=>{this._multiActionBtnEntered&&!this._isMultiActionMatMenuOpen&&(je.closeMenu(),this.renderer.removeClass(Mn._elementRef.nativeElement,"cdk-focused"),this.renderer.removeClass(Mn._elementRef.nativeElement,"cdk-program-focused")),this._isMultiActionMatMenuOpen?this._multiActionBtnEntered=!1:(je.closeMenu(),this.renderer.removeClass(Mn._elementRef.nativeElement,"cdk-focused"),this.renderer.removeClass(Mn._elementRef.nativeElement,"cdk-program-focused"))},100)}onMouseWheelScroll(je){this._multiActionMenuTriggerRef&&(this._multiActionMenuTriggerRef.closeMenu(),this._multiActionMenuTriggerRef=null)}trackColumnFn(je,Mn){return je}setColumnHeaderFilter(je,Mn,Gi){if(this.showFilterToggle)return this.showFilterToggle=!1,this.filterToggleValue=!1,this.filteredColumn=null,this.data?.totalCount>0&&(this.showNoRecordMessage=!1),Gi.closeMenu(),this.toggleFilter({checked:!1}),void this.clearFilter();(null==this.filteredColumn||""===this.filteredColumn||this.filteredColumn!==Mn.name)&&(this.filterToggleValue=!0,this.filteredColumn=Mn.name,Gi.openMenu())}filterMenuItemClick(je,Mn,Gi){switch(this.showFilterToggle=!0,Gi){case"current":this.preventGridFlicker=!0,this.adjustAndAssignWidth();break;case"all":this.totalRecords!==this.gridData.length&&this.pageSizeChange({skip:0,take:"All"})}this.toggleFilter({checked:!0})}filterMenuClosed(je){this.showFilterToggle||(this.filteredColumn=null)}setEntityDetailObject(je,Mn,Gi,nr,is){let ta;if(this.config.setEntityDetail=null==this.config.setEntityDetail||this.config.setEntityDetail,je&&this.config.setEntityDetail){if(Mn===A.j.GridData){let dl,$l;if("All"==this.pageSizeTxt){const fl=je.findIndex(hc=>hc==is);let _c=fl-50;_c=_c<0?0:_c;let Ol=fl+50;Ol=Ol>=je.length?je.length:Ol,dl=je.slice(_c,Ol)}else dl=je;is?.hasOwnProperty("rowMultiViewActionList")&&($l=is.rowMultiViewActionList?.findIndex(fl=>fl.listItem?.toLowerCase()===nr.entity?.toLowerCase())),ta=dl.map(fl=>{let _c={};return nr.selectionId&&(_c.selectionColumn=this.primaryColumn,_c.selectionId=fl[this.primaryColumn]),fl.hasOwnProperty("detailEntity")?(_c.entity=fl.detailEntity,_c.entityId=fl[nr.primaryColumn]):fl.hasOwnProperty("rowMultiViewActionList")?(_c.entity=fl.rowMultiViewActionList[$l]?.listItem,_c.entityId=fl[fl.rowMultiViewActionList[$l]?.primaryColumn]):(_c.entity=nr.entity,_c.entityId=fl[nr.primaryColumn]),_c})}this.eds.setEntityDetailObject(ta??je,Mn,Gi)}}ngAfterViewInit(){if(this.zenGrid){if(this.enableDragAndDrop&&""!==this.gridDragAndDropClass){const je=Array.from(document.querySelectorAll("."+this.gridDragAndDropClass+" .k-grid-content tr"));this.handleDragAndDrop.emit(je)}this.zenGridDomElementFn.emit(this.zenGrid)}this.zenGridXSsize(window.innerWidth,"afterViewInit")}ngAfterViewChecked(){this.afterViewCheckedHit||(this.data?.columns||this.columns?.length>0)&&(this.updateDataSet(this.data),this.afterViewCheckedHit=!0,this.hasDetailRow&&this.detailRowProcess()),this.uiGridFlicker!==this.preventGridFlicker&&(this.uiGridFlicker=this.preventGridFlicker,this.cdRef.detectChanges())}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}groupLabel(je){const Mn=this.groups.filter(Gi=>Gi.field==je);return Mn.length>0?Mn[0].label:void 0}loadMore(){this.endlessScroll&&this.gridData.length!=this.totalRecords&&this.onScrollBottom.emit(!0)}static#e=this.\u0275fac=function(Mn){return new(Mn||Rn)(n.Y36(M.m),n.Y36(n.sBO),n.Y36(p.a),n.Y36(n.Qsj),n.Y36(E.v),n.Y36(b.t),n.Y36(I.sK),n.Y36(n.zs3),n.Y36(L.o))};static#t=this.\u0275cmp=n.Xpm({type:Rn,selectors:[["zen-grid"]],viewQuery:function(Mn,Gi){if(1&Mn&&(n.Gf(a.MwP,5),n.Gf(Gt,5),n.Gf(a.MwP,5),n.Gf(Ut,5),n.Gf(An,5),n.Gf($n,5)),2&Mn){let nr;n.iGM(nr=n.CRH())&&(Gi.zenGrid=nr.first),n.iGM(nr=n.CRH())&&(Gi.grid=nr.first),n.iGM(nr=n.CRH())&&(Gi.autoGrid=nr.first),n.iGM(nr=n.CRH())&&(Gi.panel=nr.first),n.iGM(nr=n.CRH())&&(Gi.zenSelect=nr.first),n.iGM(nr=n.CRH())&&(Gi.gridColumnActionMenuTriggerRef=nr.first)}},hostVars:2,hostBindings:function(Mn,Gi){1&Mn&&n.NdJ("resize",function(is){return Gi.onResize(is)},!1,n.Jf7)("click",function(is){return Gi.onClick(is.target)},!1,n.evT)("mousewheel",function(is){return Gi.onMouseWheelScroll(is)}),2&Mn&&n.ekj("bar-closed",Gi.barClosed)},inputs:{showOperators:"showOperators",groupingTemplate:"groupingTemplate",aggregates:"aggregates",config:"config",fabBtnConfig:"fabBtnConfig",filterable:"filterable",editGridCell:"editGridCell",ignoreValidation:"ignoreValidation",showCancelHandler:"showCancelHandler",sort:"sort",pageable:"pageable",sortable:"sortable",resizable:"resizable",multiple:"multiple",showPostedBatch:"showPostedBatch",showOthersBatch:"showOthersBatch",showBatchHeaderAction:"showBatchHeaderAction",showFilterToggle:"showFilterToggle",filterToggleValue:"filterToggleValue",showGroupingToggle:"showGroupingToggle",groupingToggleValue:"groupingToggleValue",navigable:"navigable",selectable:"selectable",toggleSelection:"toggleSelection",allRowsSelected:"allRowsSelected",visibleRowsSelected:"visibleRowsSelected",postDate:"postDate",disableHeaderSelection:"disableHeaderSelection",disableAllRowSelection:"disableAllRowSelection",displayHeaderSelection:"displayHeaderSelection",skip:"skip",detailUrl:"detailUrl",slideVisible:"slideVisible",displayCard:"displayCard",clientSidePaging:"clientSidePaging",clientSorting:"clientSorting",clientSideFiltering:"clientSideFiltering",reorderable:"reorderable",groupable:"groupable",isChildGrid:"isChildGrid",standaloneNavigationClick:"standaloneNavigationClick",filter:"filter",autoSelection:"autoSelection",showAddNewRow:"showAddNewRow",showDeleteRow:"showDeleteRow",multiViewActionList:"multiViewActionList",showPostedLabel:"showPostedLabel",showOthersLabel:"showOthersLabel",showGridActionMenu:"showGridActionMenu",showGridRowActionMenu:"showGridRowActionMenu",enableDragAndDrop:"enableDragAndDrop",grandTotal:"grandTotal",total:"total",startColIndex:"startColIndex",endColIndex:"endColIndex",selectionKeys:"selectionKeys",navigation:"navigation",navigationId:"navigationId",entityType:"entityType",entity:"entity",wCCodeType:"wCCodeType",wCCodeTypeId:"wCCodeTypeId",applicationId:"applicationId",primaryColumn:"primaryColumn",navigationActionType:"navigationActionType",location:"location",manualTabSwitch:"manualTabSwitch",groupLabels:"groupLabels",showGroupHeaderCheckBox:"showGroupHeaderCheckBox",hasDetailRow:"hasDetailRow",detailRowComponent:"detailRowComponent",rowActionMenuClosed:"rowActionMenuClosed",sortOrderRefreshBtn:"sortOrderRefreshBtn",entityDetailLevel:"entityDetailLevel",gridDragAndDropClass:"gridDragAndDropClass",footerToolbarTemplate:"footerToolbarTemplate",headerActionTemplate:"headerActionTemplate",dragAndDropHeaderActionTemplate:"dragAndDropHeaderActionTemplate",dragAndDropCellActionTemplate:"dragAndDropCellActionTemplate",message:"message",showNoRecordMessage:"showNoRecordMessage",lockedColumns:"lockedColumns",loading:"loading",scrollable:"scrollable",groupRowCollapsable:"groupRowCollapsable",isEntityDetail:"isEntityDetail",skipColumnFilter:"skipColumnFilter",excelExportNetworkCall:"excelExportNetworkCall",endlessScroll:"endlessScroll",calculateAggregates:"calculateAggregates",totalRecordsVal:["totalRecords","totalRecordsVal"],columnVal:["columns","columnVal"],dataVal:["data","dataVal"],groupsVal:["groups","groupsVal"],setHideGroupingToggleDiv:["hideGroupbarToggle","setHideGroupingToggleDiv"],setCustomTemplateAvailable:["customTemplateAvailable","setCustomTemplateAvailable"],setPageSize:["pageSize","setPageSize"],dragAndDrop:["enableDragAndDrop","dragAndDrop"],editFormData:["editFormGroup","editFormData"],addFormData:["addFormGroup","addFormData"],isIndeterminateVal:["isIndeterminate","isIndeterminateVal"],enableDeleteButton:["isRowChecked","enableDeleteButton"]},outputs:{onPageChange:"onPageChange",onExcelExportNetworkCall:"onExcelExportNetworkCall",onNavigationCellClick:"onNavigationCellClick",onCheckboxChangeFn:"onCheckboxChangeFn",onSelectionChangeFn:"onSelectionChangeFn",onEditSelectionChangeFn:"onEditSelectionChangeFn",onDeleteSelectionChangeFn:"onDeleteSelectionChangeFn",onHeaderCheckboxChangeFn:"onHeaderCheckboxChangeFn",onRowCheckboxChangeFn:"onRowCheckboxChangeFn",onGridRowActionMenuClick:"onGridRowActionMenuClick",onGridRowActionSelected:"onGridRowActionSelected",gridHeaderMenuClosed:"gridHeaderMenuClosed",onSortingFn:"onSortingFn",handleDragAndDrop:"handleDragAndDrop",addNew:"addNew",removeRow:"removeRow",onVisibleAllCheckBoxChangeFn:"onVisibleAllCheckBoxChangeFn",onFilterChangeFn:"onFilterChangeFn",onScrollBottom:"onScrollBottom",onServerSideFilter:"onServerSideFilter",onColumnFilterSearchFn:"onColumnFilterSearchFn",onColumnFilterValueChangeFn:"onColumnFilterValueChangeFn",onGroupChangeFn:"onGroupChangeFn",onViewRecent:"onViewRecent",onGroupHeaderCheckboxChangeFn:"onGroupHeaderCheckboxChangeFn",onGridCellEditFn:"onGridCellEditFn",onGridCellEditorSaveFn:"onGridCellEditorSaveFn",zenGridDomElementFn:"zenGridDomElementFn",onKeyDown:"onKeyDown",ontextEditorKeyDown:"ontextEditorKeyDown",editorDDLValChange:"editorDDLValChange",selectionClear:"selectionClear",onDblClickFn:"onDblClickFn",onFavoriteClickFn:"onFavoriteClickFn",onSlidePanelView:"onSlidePanelView",onFabBtnClick:"onFabBtnClick",onRefreshSortOrderClick:"onRefreshSortOrderClick",onGridViewChange:"onGridViewChange",onOpenBar:"onOpenBar",onDetailExpandFn:"onDetailExpandFn",onDetailCollapseFn:"onDetailCollapseFn",onGroupingToggleChangeFn:"onGroupingToggleChangeFn",onColumnFilterCustomFn:"onColumnFilterCustomFn"},features:[n.qOj],decls:29,vars:54,consts:[["desktopGrid",""],["id","zen-grid-id",1,"zen-grid-wrap"],["class","sutter",4,"ngIf"],["mode","indeterminate","color","accent",1,"loading-grid",3,"ngStyle"],["id","grid-holder",1,"grid-holder"],["grid",""],[3,"data","skip","resizable","scrollable","loading","selectable","pageSize","sort","sortable","filter","filterable","pageable","rowSelected","rowClass","groupable","reorderable","group","navigable","ngClass","cellClick","scrollBottom","filterChange","pageChange","sortChange","selectionChange","groupExpand","add","groupChange","keydown","dataStateChange","detailExpand","detailCollapse"],["zenGrid",""],[4,"ngIf"],["kendoGridNoRecordsTemplate",""],["kendoPagerTemplate",""],[3,"fileName","fetchData"],[3,"field","title",4,"ngFor","ngForOf"],["class","no-records-label h-20",4,"ngIf"],["class","custom-pagination-wrap w-100-p virtual-nav overflow-hidden",4,"ngIf"],["dataTypeDisplayTemplate",""],[1,"zen-grid-popper",3,"type","backDrop","placement"],["popperCtrl",""],[1,"mat-menu"],[1,"sutter"],["class","sutter-openbtn z-shutter","tabindex","-1",3,"click",4,"fuseIfOnDom"],["fxLayout","column","fxLayoutAlign","center center","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","space-between start",1,"grid-view-control","white-fg",3,"ngClass"],["fxflex","","fxLayout","row","fxLayoutAlign","space-between center",1,"w-100-p"],["fxLayout","row",1,"text-left","grid-view-list","z-shutter"],["class","mat-icon-button","tabindex","-1",3,"matTooltip","click",4,"ngIf"],["fxLayout","row"],["class","text-right mr-4 grid-view-list z-shutter",4,"ngIf"],[1,"text-right","mr-4","grid-view-list","z-shutter"],["mat-button","","aria-label","More","class","mat-icon-button w-28 h-28","tabindex","-1",3,"matMenuTriggerFor","mouseenter","click",4,"ngIf"],["xPosition","after","yPosition","below",3,"overlapTrigger"],["gridColumnActionMenu","matMenu"],[3,"click",4,"ngIf"],["tabindex","-1",1,"sutter-openbtn","z-shutter",3,"click"],[1,"s-12","z-shutter-arrow"],[1,"mat-icon-button","mr-0",3,"matTooltip","click"],["tabindex","-1",1,"s-28","z-shutter",3,"ngClass"],["tabindex","-1",1,"mat-icon-button",3,"matTooltip","click"],[1,"s-28","z-shutter",3,"ngClass"],["class","z-shutter","labelPosition","before",3,"ngModel","ngModelChange","change",4,"ngIf"],["labelPosition","before",1,"z-shutter",3,"ngModel","ngModelChange","change"],["class","z-shutter accent-fg",4,"ngIf"],["class","z-shutter",4,"ngIf"],[1,"z-shutter","accent-fg"],[1,"z-shutter"],["mat-icon-button","","type","button","tabindex","-1",1,"w-28","h-28",3,"matTooltip","click"],["src","../../../../assets/icons/extra-icons/xl.png"],["mat-button","","aria-label","More","tabindex","-1",1,"mat-icon-button","w-28","h-28",3,"matMenuTriggerFor","mouseenter","click"],["gridColumnActionMenuTrigger","matMenuTrigger"],[1,"s-20"],[3,"click"],["cdkScrollable","",1,"column-option-table-wrap"],[1,"mat-table","option-table"],[1,"mat-header-row"],[1,"mat-header-cell"],["cdkDropList","",1,"drop-container",3,"ngClass","cdkDropListLockAxis","cdkDropListDropped"],[4,"ngFor","ngForOf"],[1,"column-option-button-wrap","w-100-p","text-right"],["mat-raised-button","","color","secondary","tabindex","-1",3,"click"],["mat-raised-button","","color","accent","tabindex","-1",1,"ml-8",3,"click"],["cdkDrag","","cdkDragBoundary",".drag-boundry",1,"mat-row"],[1,"mat-cell","drag"],["cdkDragHandle",""],[1,"mat-cell","value"],[1,"mat-cell","action"],[3,"checked","change"],[3,"field","title","headerStyle","footerStyle"],["kendoGridGroupHeaderTemplate",""],["type","checkbox",3,"id","name","checked","indeterminate","change",4,"ngIf"],["type","checkbox",3,"id","name","checked","indeterminate","change"],["kendoGridCellTemplate",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"zenCartview"],[3,"matTooltip"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],["debounceClick","","style","cursor:pointer",3,"debounceClick",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["debounceClick","",2,"cursor","pointer",3,"debounceClick"],[3,"innerHTML","matTooltip"],["debounceClick","","style","cursor:pointer",3,"debounceClick",4,"ngIf","ngIfElse"],["noMaskType",""],["mat-icon-button","",1,"view"],["role","img","aria-hidden","true","debounceClick","",1,"s-20","mat-icon","material-icons",3,"debounceClick"],[1,"other-type"],["kendoGridToolbarTemplate",""],["fxLayout","row","fxLayoutAlign","end center",1,"action-button-grid"],["kendoGridAddCommand","",1,"bg-inherit","w-32","h-32","add-col","fuse-white-fg","blue-bg","rounded",3,"matTooltip","disabled"],["tabindex","-1",1,"font-size-20","line-height-32"],["mat-mini-fab","","class","bg-inherit w-32 h-32 warn del-col",3,"click",4,"ngIf"],["mat-mini-fab","","class","k-button k-primary bg-inherit w-32 h-32 warn",3,"click",4,"ngIf"],["mat-mini-fab","",1,"bg-inherit","w-32","h-32","warn","del-col",3,"click"],["tabindex","-1",1,"font-size-20"],["mat-mini-fab","",1,"k-button","k-primary","bg-inherit","w-32","h-32","warn",3,"click"],["kendoGridToolbarTemplate","",3,"position"],[4,"ngTemplateOutlet"],[3,"field","title","filter","editor","filterable","sortable","hidden","headerStyle","headerClass","style","class","footerClass","footerStyle","width",4,"ngFor","ngForOf","ngForTrackBy"],[3,"field","title","filter","editor","filterable","sortable","hidden","headerStyle","headerClass","footerClass","footerStyle","width"],["kendoGridFilterCellTemplate",""],["kendoGridGroupFooterTemplate",""],["kendoGridHeaderTemplate",""],["style","min-width:75px !important;","filterService","filterService",3,"column","filter","showOperators",4,"ngIf"],["filterService","filterService",3,"column","filter","operator","showOperators",4,"ngIf"],["filterService","filterService","currentFilter","filter","format","column.format",3,"column","filter","showOperators",4,"ngIf"],["filterService","filterService","currentFilter","filter",3,"column","filter",4,"ngIf"],["filterService","filterService",2,"min-width","75px !important",3,"column","filter","showOperators"],["filterService","filterService",3,"column","filter","operator","showOperators"],["filterService","filterService","currentFilter","filter","format","column.format",3,"column","filter","showOperators"],["filterService","filterService","currentFilter","filter",3,"column","filter"],[2,"cursor","pointer","text-align","center"],["role","img","aria-hidden","true",1,"edit-icon","mat-icon","material-icons",3,"matTooltip","click"],["role","img","aria-hidden","true","color","warn",1,"s-24","mat-icon","material-icons",3,"matTooltip","click"],["mat-icon-button","",3,"matMenuTriggerFor","ngClass","matTooltip","menuClosed","click"],["menuTrigger","matMenuTrigger"],["matPrefix","",3,"class",4,"ngIf"],["xPosition","after","yPosition","below",1,"filter-mat-menu",3,"overlapTrigger"],["filterMenu","matMenu"],["mat-menu-item","",3,"click"],["matPrefix",""],[3,"innerHTML"],["role","img","aria-hidden","true",1,"s-24","mat-icon","material-icons","secondary-text",3,"id"],["class","kendo-cell-truncate",3,"id","matTooltip",4,"ngIf"],[1,"kendo-cell-truncate",3,"id","matTooltip"],["mat-icon-button","",3,"disabled","id"],[2,"cursor","pointer",3,"id"],["role","img","aria-hidden","true",1,"s-24","mat-icon","material-icons",3,"click"],["style","text-align:center;",3,"id",4,"ngIf"],[2,"text-align","center",3,"id"],["role","img","aria-hidden","true","color","accent",1,"s-24","mat-icon","material-icons",3,"matTooltip"],["kendoGridEditTemplate",""],["class","w-100-p",3,"id",4,"ngIf"],[1,"w-100-p",3,"id"],["disableOptionCentering","","panelClass","zenGridMatPanelClass",3,"id","disabled","formControl","required","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["type","text",1,"k-textbox","b","p-4",3,"tabindex","id","placeholder","formControl","disabled","name","required","keydown.enter","keydown.Tab"],[3,"id"],["name","zenSelect","class","zen-select chip-black elies-edit-row-control","required","",3,"tabIndex","selectorId","floatLabel","ngModel","nameField","valueField","disabled","data","columns","placeholder","multiple","panelClass","ngModelChange","selectEvent",4,"ngIf"],["name","zenSelect","class","zen-select chip-black elies-edit-row-control",3,"tabIndex","selectorId","floatLabel","ngModel","nameField","valueField","disabled","data","columns","placeholder","multiple","panelClass","ngModelChange","selectEvent",4,"ngIf"],["name","zenSelect","required","",1,"zen-select","chip-black","elies-edit-row-control",3,"tabIndex","selectorId","floatLabel","ngModel","nameField","valueField","disabled","data","columns","placeholder","multiple","panelClass","ngModelChange","selectEvent"],["editorZenSel",""],["name","zenSelect",1,"zen-select","chip-black","elies-edit-row-control",3,"tabIndex","selectorId","floatLabel","ngModel","nameField","valueField","disabled","data","columns","placeholder","multiple","panelClass","ngModelChange","selectEvent"],["name","zenSelect","class","zen-select chip-black elies-edit-row-control","required","",3,"tabIndex","selectorId","floatLabel","ngModel","nameField","valueField","disabled","config","virtualScroll","multiple","placeholder","panelClass","ngModelChange","selectEvent",4,"ngIf"],["name","zenSelect","class","zen-select chip-black elies-edit-row-control",3,"tabIndex","selectorId","floatLabel","ngModel","nameField","valueField","disabled","config","multiple","virtualScroll","placeholder","panelClass","ngModelChange","selectEvent",4,"ngIf"],["name","zenSelect","required","",1,"zen-select","chip-black","elies-edit-row-control",3,"tabIndex","selectorId","floatLabel","ngModel","nameField","valueField","disabled","config","virtualScroll","multiple","placeholder","panelClass","ngModelChange","selectEvent"],["name","zenSelect",1,"zen-select","chip-black","elies-edit-row-control",3,"tabIndex","selectorId","floatLabel","ngModel","nameField","valueField","disabled","config","multiple","virtualScroll","placeholder","panelClass","ngModelChange","selectEvent"],["name","zenSelectNewEditor","class","chip-black no-padding-head elies-edit-row-control","required","",3,"tabIndex","selectorId","floatLabel","ngModel","emitKeyUp","nameField","valueField","clearOnBlur","disabled","data","columns","placeholder","multiple","panelClass","ngModelChange","keyUp","selectEvent",4,"ngIf"],["name","zenSelectNewEditor","class","chip-black no-padding-head elies-edit-row-control",3,"tabIndex","selectorId","floatLabel","ngModel","emitKeyUp","nameField","valueField","clearOnBlur","disabled","data","multiple","columns","placeholder","panelClass","ngModelChange","keyUp","selectEvent",4,"ngIf"],["name","zenSelectNewEditor","required","",1,"chip-black","no-padding-head","elies-edit-row-control",3,"tabIndex","selectorId","floatLabel","ngModel","emitKeyUp","nameField","valueField","clearOnBlur","disabled","data","columns","placeholder","multiple","panelClass","ngModelChange","keyUp","selectEvent"],["name","zenSelectNewEditor",1,"chip-black","no-padding-head","elies-edit-row-control",3,"tabIndex","selectorId","floatLabel","ngModel","emitKeyUp","nameField","valueField","clearOnBlur","disabled","data","multiple","columns","placeholder","panelClass","ngModelChange","keyUp","selectEvent"],["name","zenSelectNewEditor","class","chip-black no-padding-head elies-edit-row-control","required","",3,"tabIndex","selectorId","floatLabel","ngModel","emitKeyUp","nameField","valueField","clearOnBlur","disabled","config","virtualScroll","multiple","placeholder","panelClass","ngModelChange","keyUp","selectEvent",4,"ngIf"],["name","zenSelectNewEditor","class","chip-black no-padding-head elies-edit-row-control",3,"tabIndex","selectorId","floatLabel","ngModel","emitKeyUp","nameField","valueField","clearOnBlur","disabled","config","multiple","virtualScroll","placeholder","panelClass","ngModelChange","keyUp","selectEvent",4,"ngIf"],["name","zenSelectNewEditor","required","",1,"chip-black","no-padding-head","elies-edit-row-control",3,"tabIndex","selectorId","floatLabel","ngModel","emitKeyUp","nameField","valueField","clearOnBlur","disabled","config","virtualScroll","multiple","placeholder","panelClass","ngModelChange","keyUp","selectEvent"],["name","zenSelectNewEditor",1,"chip-black","no-padding-head","elies-edit-row-control",3,"tabIndex","selectorId","floatLabel","ngModel","emitKeyUp","nameField","valueField","clearOnBlur","disabled","config","multiple","virtualScroll","placeholder","panelClass","ngModelChange","keyUp","selectEvent"],["type","text",1,"k-textbox",3,"tabindex","id","disabled","formControl","name","required"],["floatLabel","never",1,"elies-edit-row-control",3,"id"],["matInput","",3,"id","name","matDatepicker","disabled","formControl","placeholder","required"],["matSuffix","",3,"for"],["picker",""],["name","column.name",3,"id","tabindex","decimals","format","autoCorrect","disabled","formControl","required"],["name","column.name",3,"id","tabindex","format","value","disabled","formControl","required"],["type","password",1,"k-textbox",3,"tabindex","id","disabled","formControl","name","required"],["mat-button","","aria-label","More",1,"mat-icon-button",3,"id","matMenuTriggerFor","mouseenter","mouseleave"],["eyeActionBtn","","actionHoverTrigger","matMenuTrigger"],[1,"action-collection-wrap",3,"hasBackdrop"],["multiActionMenu","matMenu"],["class","zen-grid-eyeaction-holder",3,"mouseenter","mouseleave",4,"ngIf","ngIfElse"],["multiViewActionTpl",""],[1,"zen-grid-eyeaction-holder",3,"mouseenter","mouseleave"],[1,"zen-grid-moreaction-triger"],[1,"zen-grid-moreaction-content-wrap"],["class","zen-grid-moreaction-content",3,"ngClass",4,"ngFor","ngForOf"],[1,"zen-grid-moreaction-content",3,"ngClass"],["mat-mini-fab","","debounceClick","",3,"disabled","debounceClick"],["class","zen-grid-moreaction-content-wrap",4,"ngIf"],["debounceClick","","style","cursor:pointer",3,"id","debounceClick",4,"ngSwitchCase"],["debounceClick","","style","cursor:pointer",3,"id","debounceClick",4,"ngSwitchDefault"],["debounceClick","",2,"cursor","pointer",3,"id","debounceClick"],[4,"ngIf","ngIfElse"],[1,"is-select"],["type","checkbox","name","column",3,"checked","indeterminate","hidden","disabled","labelPosition","change",4,"ngIf"],["type","checkbox","name","column",3,"checked","indeterminate","hidden","labelPosition","change",4,"ngIf"],["mat-mini-fab","","color","accent","aria-label","fabBtnConfig.name",3,"matTooltip","disabled","click",4,"ngIf"],["type","checkbox","name","column",3,"checked","indeterminate","hidden","disabled","labelPosition","change"],["type","checkbox","name","column",3,"checked","indeterminate","hidden","labelPosition","change"],["mat-mini-fab","","color","accent","aria-label","fabBtnConfig.name",3,"matTooltip","disabled","click"],[1,"fuse-white-fg"],["type","checkbox",3,"checked","disabled","change"],["type","checkbox","name","column",3,"checked","indeterminate","disabled","hidden","labelPosition","change"],["type","checkbox",3,"checked","disabled","hidden","change"],["class","text-center header-action-wrap",4,"ngIf"],[1,"text-center","header-action-wrap"],["mat-icon-button","","aria-label","GridSettings",3,"matMenuTriggerFor"],[1,"s-20",3,"matTooltip"],["xPosition","after","yPosition","below",3,"overlapTrigger","closed"],["gridSettings","matMenu"],["class","mat-menu-item","fxLayout","row","fxLayoutAlign","start center",3,"click",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"mat-menu-item",3,"click"],["labelPosition","after",3,"ngModel","ngModelChange","change"],[3,"id",4,"ngTemplateOutlet"],["class","text-center cell-action-wrap",3,"id",4,"ngIf"],[1,"text-center","cell-action-wrap",3,"id"],["mat-button","","aria-label","More","class","mat-icon-button zen-actions",3,"zenPopperCtrlTriggerFor","click",4,"ngIf"],["mat-button","","aria-label","More",1,"mat-icon-button","zen-actions",3,"zenPopperCtrlTriggerFor","click"],[1,"non-numeric-data-holder"],["mat-icon-button","",3,"matMenuTriggerFor","ngClass","matTooltip","menuClosed","click",4,"ngIf"],["kendoGridFooterTemplate",""],["class","zen-foot-nu-text",4,"ngIf"],[4,"ngSwitchCase"],["class","nonFooterColumn",4,"ngSwitchDefault"],[1,"nonFooterColumn"],[1,"zen-foot-nu-text"],[3,"id",4,"ngSwitchCase"],["style","cursor:pointer;",3,"id","dblclick",4,"ngSwitchCase"],["class","custom-header-and-cell",3,"id",4,"ngSwitchCase"],["type","checkbox",3,"checked","disabled"],[2,"cursor","pointer",3,"id","dblclick"],[1,"custom-header-and-cell",3,"id"],[3,"id",4,"ngIf","ngIfElse"],["noTranslate",""],["fxLayout","row","fxLayoutAlign","space-between center",1,"w-100-p","zenauto-pagination"],["fxLayout","row","fxLayoutAlign","start center"],[1,"w-70","ml-8",3,"floatLabel"],["name","pageSizeOption",3,"ngModel","ngModelChange","selectionChange"],["fxLayout","row","fxLayoutAlign","start center",1,"whitespace-normal","zenauto-pageNoinfo"],[1,"ml-8","mr-4","secondary-text"],[1,"zenauto-itemsPerPage"],["kendoGridDetailTemplate",""],[4,"ngComponentOutlet","ngComponentOutletInjector"],[3,"field","title"],["kendoExcelExportGroupHeaderTemplate",""],["kendoExcelExportGroupFooterTemplate",""],["kendoExcelExportFooterTemplate",""],[1,"no-records-label","h-20"],[1,"custom-pagination-wrap","w-100-p","virtual-nav","overflow-hidden"],["fxLayout","row","fxLayoutAlign","space-between center",1,"w-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],["class","child",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"font-size-12","font-weight-400","secondary-text","child"],["class","font-size-12 whitespace-nowrap pr-8",4,"ngIf"],[1,"child"],[1,"virtual-pager-wrap",3,"pageSize","skip","total","pageSizeValues","info","type","pageChange"],[1,"font-size-12","whitespace-nowrap","pr-8"],["fxLayout","row","fxLayoutAlign","space-between center",1,"custom-pagination","w-100-p"],[3,"matTooltip",4,"ngSwitchCase"],["style","cursor:pointer;",3,"matTooltip","dblclick",4,"ngSwitchCase"],["class","custom-header-and-cell",4,"ngSwitchCase"],[2,"cursor","pointer",3,"matTooltip","dblclick"],[1,"custom-header-and-cell"],["class","other",3,"matTooltip",4,"ngIf","ngIfElse"],[1,"other",3,"matTooltip"],[3,"matTooltip",4,"ngIf"],["aria-disabled","false",1,"mat-menu-item",3,"click"],[3,"svgIcon",4,"ngIf","ngIfElse"],["matIconTpl",""],["matripple","",1,"mat-menu-ripple","mat-ripple"],[3,"svgIcon"],[1,"text-center","w-100-p","secondary-text","p-24"]],template:function(Mn,Gi){if(1&Mn&&(n.ynx(0,null,0),n.TgZ(2,"div",1),n.YNc(3,En,15,11,"div",2),n._UZ(4,"mat-progress-bar",3),n.TgZ(5,"div",4)(6,"div",null,5)(8,"kendo-grid",6,7),n.NdJ("cellClick",function(is){return Gi.handleCellClick(is)})("scrollBottom",function(){return Gi.loadMore()})("filterChange",function(is){return Gi.filterChange(is)})("pageChange",function(is){return Gi.pageChange(is)})("sortChange",function(is){return Gi.sortChange(is)})("selectionChange",function(is){return Gi.selectionChange(is)})("groupExpand",function(is){return Gi.toggleGroup(is)})("add",function(is){return Gi.addHandler(is)})("groupChange",function(is){return Gi.groupChange(is)})("keydown",function(is){return Gi.gridCellEditAddKeyDown(is)})("dataStateChange",function(is){return Gi.onDataStateChange(is)})("detailExpand",function(is){return Gi.onDetailExpand(is)})("detailCollapse",function(is){return Gi.onDetailCollapse(is)}),n.YNc(10,wn,6,13,"ng-container",8),n.YNc(11,Xo,1,0,null,8),n.YNc(12,xr,1,1,null,8),n.YNc(13,$d,2,2,"ng-container",8),n.YNc(14,dc,2,0,"ng-template",9),n.YNc(15,oc,15,9,"ng-template",10),n.YNc(16,_d,1,0,null,8),n.TgZ(17,"kendo-grid-excel",11),n.YNc(18,iu,5,4,"kendo-excelexport-column",12),n.qZA()()()(),n.YNc(19,ku,5,3,"div",13),n.YNc(20,Ff,8,4,"div",14),n.YNc(21,hf,6,5,"div",14),n.qZA(),n.BQk(),n.YNc(22,Ad,14,13,"ng-template",null,15,n.W1O),n.TgZ(24,"zen-popper-ctrl",16,17)(26,"div",18),n.YNc(27,wd,2,1,"div",8),n.YNc(28,Bf,5,3,"div",8),n.qZA()()),2&Mn){const nr=n.MAs(9);n.xp6(3),n.Q6J("ngIf",Gi.gridControlPanel&&!Gi.config.cardViewOnly),n.xp6(1),n.Q6J("ngStyle",n.VKq(47,Qd,1==Gi.uiGridFlicker?"visible":"hidden")),n.xp6(2),n.D1c("",Gi.showNoRecordMessage?"no-records":"records"," ",Gi.viewchange," ",Gi.extraCssClass," ",Gi.uniqueClass," ",Gi.emptyFilterClass," ",Gi.isSticky," ",Gi.stickyColumnClass," ",Gi.uiGridFlicker?"animate-zen-grid":""," grid-wraper"),n.xp6(2),n.Q6J("data",Gi.gridView)("skip",Gi.skip)("resizable",Gi.resizable)("scrollable",Gi.scrollable)("loading",Gi.loading)("selectable",Gi.selectable)("pageSize",Gi.pageSize)("sort",Gi.sort)("sortable",Gi.sortable)("filter",Gi.filter)("filterable",Gi.showFilterToggle)("pageable",Gi.pageable)("rowSelected",Gi.isRowSelected)("rowClass",Gi.rowClassCallBack)("groupable",Gi.showGroupingToggle)("reorderable",Gi.reorderable)("group",Gi.groups)("navigable",Gi.navigable)("ngClass",n.l5B(49,Th,"virtual"==nr.scrollable,"scrollable"==nr.scrollable,!Gi.config.showGroupingFooter&&(null==Gi.groups?null:Gi.groups.length)>0,Gi.showAddNewRow)),n.xp6(2),n.Q6J("ngIf",Gi.cardColumns&&"card"==Gi.displayMode&&!Gi.config.gridViewOnly||Gi.config.cardViewOnly),n.xp6(1),n.Q6J("ngIf",Gi.showAddNewRow),n.xp6(1),n.Q6J("ngIf",Gi.footerToolbarTemplate),n.xp6(1),n.Q6J("ngIf",("grid"==Gi.displayMode||"compactGrid"==Gi.displayMode)&&!Gi.config.cardViewOnly||Gi.config.gridViewOnly),n.xp6(3),n.Q6J("ngIf",Gi.hasDetailRow&&Gi.detailRowComponent),n.xp6(1),n.s9C("fileName",(Gi.config.exportFileName?Gi.config.exportFileName:Gi.entity)+".xlsx"),n.Q6J("fetchData",Gi.allData),n.xp6(1),n.Q6J("ngForOf",Gi.excelExportColumns),n.xp6(1),n.Q6J("ngIf",Gi.showNoRecordMessage),n.xp6(1),n.Q6J("ngIf","virtual"==nr.scrollable),n.xp6(1),n.Q6J("ngIf",Gi.endlessScroll),n.xp6(3),n.Q6J("type","blank")("backDrop",!0)("placement","right"),n.xp6(3),n.Q6J("ngIf",Gi.actionList),n.xp6(1),n.Q6J("ngIf",!Gi.actionList)}},dependencies:[D.mk,D.$G,D.sg,D.O5,D.tP,D.PC,D.RF,D.n9,D.ED,a.MwP,a.kyx,a.UgW,a.QBG,a.NEF,a.bg4,a.RZ,a.vvB,a.Ztq,a.sXO,a.SKf,a.mCm,a._cx,a.G_w,a.hwo,a.XW7,a.E7N,a.TIf,a.Pqr,a.Ymc,a.Bl$,a.PZI,a.sYL,a.dVe,a.FF7,a.wW,a.gpF,a.obP,a.r$8,a.hJC,F.Fj,F.JJ,F.Q7,F.On,F.oH,P.xw,P.Wh,O.oO,O.Zl,U.u,V.Hw,K.FC,X.PQ,me.W0,me.tN,me.D8,J.iZ,Q.Kd,re.eB,de.v_,de.$V,de.g4,de.nX,te.x8,j.CK,H.Mq,H.hl,H.nW,z.k0,q.eI,se.Wj,se.Zt,se.Bh,ne.i,_e.Uw,a.mYD,ge.bg,ge.RZ,ge.NE,ge.QB,Ce.Y,Te.V,De.PR,xe,D.JJ,D.H9,D.uU,I.X$,Oe.p,Le.z],styles:['@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInLeft{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInRight{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInDown{0%{opacity:0;transform:translateY(-2000px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInLeft{0%{opacity:0;transform:translate(-2000px)}to{opacity:1;transform:translate(0)}}@keyframes slideInRight{0%{opacity:0;transform:translate(2000px)}to{opacity:1;transform:translate(0)}}.loading-grid{position:absolute;z-index:1;height:5px}.animate-zen-grid{animation-name:fadeInLeft;animation-iteration-count:1;animation-duration:1s;animation-delay:0s;animation-timing-function:ease;animation-fill-mode:both;backface-visibility:hidden}.column-option-table-wrap{width:100%;max-height:440px!important;overflow:scroll}.column-option-table-wrap .option-table th{padding-left:8px;padding-right:8px;font-size:14px!important;font-weight:700!important}.column-option-table-wrap .option-table th.mat-header-row{top:0!important;position:sticky!important;z-index:100!important}.column-option-table-wrap .option-table th:first-child{padding-left:12px!important}.column-option-table-wrap .option-table tbody tr td{padding-left:8px;padding-right:8px;font-size:14px!important}.column-option-table-wrap .option-table tbody tr td:first-child{padding-left:12px!important}.column-option-button-wrap{padding:8px 12px 8px 8px;float:right}.column-option-button-wrap button :last-child{margin-left:8px}.nonChooserColumn{min-height:0px;height:0px!important;padding:0;visibility:hidden;border:0px}.nonChooserColumn td,.nonChooserColumn th{display:none}.nonFooterColumn{visibility:hidden;padding:0!important}.cdk-drag-preview{border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;width:auto;display:table;vertical-align:middle!important;background:#ffffff}.cdk-drag-preview:first-child{padding-left:12px!important}.cdk-drag-preview:last-child{padding-right:12px!important}.cdk-drag-preview .mat-cell.drag{padding-left:13px;width:40px;padding-right:16px}.cdk-drag-preview .mat-cell.drag span{display:flex}.cdk-drag-preview .mat-cell.value{width:100%}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}tbody.cdk-drop-list-dragging .mat-row:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}button.skipTabButton{color:#a1a1a1!important}button.skipTabButton.active{color:#03a9f4!important}.custom-pagination-wrap{height:50px;padding:5px}.custom-pagination-wrap .custom-pagination{height:50px}.break-all{word-break:break-all}.word-break{word-break:break-word}.ngx-text-highlight{background:yellow}mark{display:inline;margin:0;padding:0;font-weight:600;background:yellow}.w-140{width:140px!important}.zen-grid-wrap{position:relative}.zen-grid-wrap .sutter{text-align:center;height:10px}.zen-grid-wrap .sutter .sutter-openbtn{background:#424242;height:10px;position:relative;margin:0;padding:0;border:none}.zen-grid-wrap .sutter .sutter-openbtn mat-icon{width:30px!important;height:10px!important;line-height:14px!important;color:#fff;font-size:18px!important;position:relative;top:-3px}.zen-grid-wrap .sutter .grid-view-control{width:100%;padding:0;border-top:1px solid #eee;border-bottom:1px solid #eee;position:absolute;top:-1px;background:#fff;color:#000!important;overflow-y:hidden;height:0;transition-property:all;transition-duration:.5s;transition-timing-function:cubic-bezier(.5)}.zen-grid-wrap .sutter .grid-view-control mat-icon:hover{cursor:pointer}.zen-grid-wrap .sutter .grid-view-control .mat-mini-fab{width:35px;height:35px;line-height:35px}.zen-grid-wrap .sutter .grid-view-control .mat-mini-fab .mat-button-wrapper{padding:0}.zen-grid-wrap .sutter .grid-view-control .grid-view-list mat-icon{color:#0000008a;box-shadow:3px 2px 5px #ccc;margin-right:7px}.zen-grid-wrap .sutter .grid-view-control .grid-view-list mat-icon.blue-fg{box-shadow:none}.zen-grid-wrap .sutter .grid-view-control .grid-view-list button{background:none!important;border:none!important}.zen-grid-wrap .sutter .grid-view-control-open{height:50px;padding:5px;width:100%;border-top:1px solid #eee;border-bottom:1px solid #eee;position:absolute;top:-1px;z-index:6;background:#fff;color:#000!important;transition-property:all;transition-duration:.5s;transition-timing-function:cubic-bezier(.5);box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.zen-grid-wrap .sutter .grid-view-control-open mat-icon:hover{cursor:pointer}.zen-grid-wrap .sutter .grid-view-control-open .mat-mini-fab{width:35px;height:35px;line-height:35px}.zen-grid-wrap .sutter .grid-view-control-open .mat-mini-fab .mat-button-wrapper{padding:0}.zen-grid-wrap .sutter .grid-view-control-open .grid-view-list button{margin-right:5px;line-height:0;padding:1px;background:none!important;border:none!important}.zen-grid-wrap .sutter .grid-view-control-open .grid-view-list button mat-icon{color:#0000008a}.zen-grid-wrap .sutter .grid-view-control-open .grid-view-list button mat-icon.active{background-color:#2021241f;border:1px solid #bdc1c6;font-size:23px!important}.zen-grid-wrap .grid-holder{position:relative}.zen-grid-wrap .grid-holder .k-grid-norecords{display:none}.zen-grid-wrap .grid-holder .no-records-label{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%;position:absolute;top:50%}.zen-grid-wrap .custom-pagination-wrap{display:flex;align-items:center;height:50px;padding:5px;background-color:#fff;border-top:1px solid rgba(0,0,0,.12);border-bottom:1px solid #e0e0e0;font-size:12px;font-weight:400;color:#0000008a}.zen-grid-wrap .custom-pagination-wrap .virtual-pager-wrap.k-pager-wrap{border-color:#00000014;color:#656565;border-style:none;background-color:#fff}.zen-grid-wrap .custom-pagination-wrap .virtual-pager-wrap.k-pager-wrap .k-pager-numbers-wrap{display:none}.zen-grid-wrap .custom-pagination-wrap .k-state-disabled.k-pager-refresh,.zen-grid-wrap .custom-pagination-wrap .k-pager-numbers .k-state-disabled.k-link,.zen-grid-wrap .custom-pagination-wrap .k-state-disabled.k-pager-nav{color:inherit}.zen-grid-wrap .custom-pagination-wrap kendo-datapager-next-buttons button:not(.k-state-disabled) .k-i-arrow-end-right:before,.zen-grid-wrap .custom-pagination-wrap kendo-datapager-next-buttons button:not(.k-state-disabled) .k-i-seek-e:before{color:#2196f3}.zen-grid-wrap .custom-pagination-wrap kendo-datapager-next-buttons button:not(.k-state-disabled) .k-i-arrow-e:before{color:#2196f3}.zen-grid-wrap .custom-pagination-wrap kendo-datapager-prev-buttons button:not(.k-state-disabled) .k-i-arrow-end-right:before,.zen-grid-wrap .custom-pagination-wrap kendo-datapager-prev-buttons button:not(.k-state-disabled) .k-i-seek-w:before,.zen-grid-wrap .custom-pagination-wrap kendo-datapager-prev-buttons button:not(.k-state-disabled) .k-i-arrow-w:before{color:#2196f3}.zen-grid-wrap .no-records-label{position:absolute;top:50%;display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%}.zen-grid-wrap ::ng-deep .mat-progress-bar-fill:after{background-color:#32a5d9}.zen-grid-wrap ::ng-deep .mat-progress-bar-buffer{background:#e4e8eb}.zen-grid-wrap ::ng-deep .mat-progress-bar{border-radius:2px}.zen-grid-wrap .zen-loading-backcontent-cover{position:absolute;top:15px;width:100%;height:100%;background:#ffffff;z-index:160}div.action-collection-wrap{background:none!important;box-shadow:none!important;margin-top:-38px;margin-left:26px;overflow:hidden}div.action-collection-wrap .zen-grid-eyeaction-holder .zen-grid-moreaction-triger .zen-grid-moreaction-content-wrap{animation-name:fadeInLeft;animation-iteration-count:1;animation-duration:.1s;animation-delay:.1s;animation-timing-function:ease;animation-fill-mode:both;backface-visibility:hidden}div.action-collection-wrap .zen-grid-eyeaction-holder .zen-grid-moreaction-triger .zen-grid-moreaction-content-wrap .zen-grid-moreaction-content{color:#757575;border-radius:50%;margin-right:10px}div.action-collection-wrap .zen-grid-eyeaction-holder .zen-grid-moreaction-triger .zen-grid-moreaction-content-wrap .zen-grid-moreaction-content.disableBar button{background:silver!important}div.action-collection-wrap .zen-grid-eyeaction-holder .zen-grid-moreaction-triger .zen-grid-moreaction-content-wrap .zen-grid-moreaction-content.disableBar button mat-icon{color:#fff}div.action-collection-wrap .zen-grid-eyeaction-holder .zen-grid-moreaction-triger .zen-grid-moreaction-content-wrap .zen-grid-moreaction-content.disableBar button mat-icon:hover{cursor:not-allowed}div.action-collection-wrap .zen-grid-eyeaction-holder .zen-grid-moreaction-triger .zen-grid-moreaction-content-wrap .zen-grid-moreaction-content:hover mat-icon{background:none!important}div.action-collection-wrap .zen-grid-eyeaction-holder .zen-grid-moreaction-triger .zen-grid-moreaction-content-wrap .zen-grid-moreaction-content:nth-child(1) button{background:#9575cd!important;border:2px solid #fff}div.action-collection-wrap .zen-grid-eyeaction-holder .zen-grid-moreaction-triger .zen-grid-moreaction-content-wrap .zen-grid-moreaction-content:nth-child(2) button{background:#677b9a!important;border:2px solid #fff}div.action-collection-wrap .zen-grid-eyeaction-holder .zen-grid-moreaction-triger .zen-grid-moreaction-content-wrap .zen-grid-moreaction-content:nth-child(3) button{background:#ffc107!important;border:2px solid #fff}div.action-collection-wrap .zen-grid-eyeaction-holder .zen-grid-moreaction-triger .zen-grid-moreaction-content-wrap .zen-grid-moreaction-content:nth-child(4) button{background:#36b50c!important;border:2px solid #fff}div.action-collection-wrap .zen-grid-eyeaction-holder .zen-grid-moreaction-triger .zen-grid-moreaction-content-wrap .zen-grid-moreaction-content:nth-child(5) button{background:#362e8e!important;border:2px solid #fff}div.action-collection-wrap .zen-grid-eyeaction-holder .zen-grid-moreaction-triger .zen-grid-moreaction-content-wrap .zen-grid-moreaction-content:nth-child(6) button{background:#9575cd!important;border:2px solid #fff}div.action-collection-wrap .zen-grid-eyeaction-holder .zen-grid-moreaction-triger .zen-grid-moreaction-content-wrap .zen-grid-moreaction-content:nth-child(7) button{background:#6a7d9a!important;border:2px solid #fff}div.action-collection-wrap .zen-grid-eyeaction-holder .zen-grid-moreaction-triger .zen-grid-moreaction-content-wrap button:hover{border:2px solid #ff1100!important}div.action-collection-wrap .zen-grid-eyeaction-holder .zen-grid-moreaction-triger mat-icon{float:left;line-height:23px}.mygrid.emptyFilter .k-grid-header .k-grid-header-wrap,.mygrid.no-records .k-grid-header .k-grid-header-wrap{overflow:auto}.mygrid .hideGroupingFooter .k-group-footer{display:none}.mygrid.sticky-1 kendo-grid table thead tr th:nth-child(1){box-shadow:5px 0 4px #0000001a}.mygrid.sticky-1 kendo-grid table tbody tr td:nth-child(1){box-shadow:5px 0 4px #0000001a}.mygrid.sticky-1 kendo-grid table tbody tr.k-grouping-row~tr.k-master-row td:nth-child(1){box-shadow:none}.mygrid.sticky-2 kendo-grid table thead tr th:nth-child(2){box-shadow:5px 0 4px #0000001a}.mygrid.sticky-2 kendo-grid table tbody tr td:nth-child(2){box-shadow:5px 0 4px #0000001a}.mygrid.sticky-2 kendo-grid table tbody tr.k-grouping-row~tr.k-master-row td:nth-child(2){box-shadow:none}.mygrid.sticky-3 kendo-grid table thead tr th:nth-child(3){box-shadow:5px 0 4px #0000001a}.mygrid.sticky-3 kendo-grid table tbody tr td:nth-child(3){box-shadow:5px 0 4px #0000001a}.mygrid.sticky-3 kendo-grid table tbody tr.k-grouping-row~tr.k-master-row td:nth-child(3){box-shadow:none}.mygrid kendo-grid{min-height:200px}.mygrid kendo-grid .hide-column-btn{float:right;font-size:medium;visibility:hidden;z-index:1;cursor:pointer;color:#000;top:15px;position:absolute;right:11px}.mygrid kendo-grid .hide-column-btn .k-i-filter:before{color:#575a64}.mygrid kendo-grid .show-column-btn{float:right;font-size:medium;visibility:visible;z-index:1;cursor:pointer;top:15px;position:absolute;right:11px}.mygrid kendo-grid .show-column-btn .k-i-filter-clear{color:#f44336!important}.mygrid kendo-grid thead tr th{padding:8px 23px 8px 12px}.mygrid kendo-grid thead tr th:hover .hide-column-btn{visibility:visible;cursor:pointer}.mygrid kendo-grid thead tr th.locked-column-header0{position:sticky!important;left:0;z-index:5}.mygrid kendo-grid thead tr th.locked-column-header1{position:sticky!important;left:40px;z-index:5}.mygrid kendo-grid thead tr th.locked-column-header2{position:sticky!important;left:75px;z-index:5}.mygrid kendo-grid .bg-inherit{background:inherit}.mygrid kendo-grid .bg-inherit .mat-button-wrapper{padding:0!important}.mygrid kendo-grid .k-grid-content{overflow-y:auto!important}.mygrid kendo-grid .k-grid-table-wrap{background-color:#fff}.mygrid kendo-grid.gridToolbar{padding-top:15px;border-top:none}.mygrid kendo-grid.gridToolbar .k-grid-toolbar{width:5%;position:absolute;left:0;z-index:1;top:20px;background:no-repeat;border:none;overflow:visible}.mygrid kendo-grid.gridToolbar .k-grid-toolbar .action-button-grid button{position:absolute;right:6px;top:6px}.mygrid kendo-grid.gridToolbar .k-grid-toolbar .action-button-grid button.del-col{right:42px}.mygrid .k-grid .k-grouping-row+tr .k-group-cell{border-top-width:1.5px}.mygrid .k-grid-header{background:#f1f1f1}.mygrid .k-grid-header .k-header{height:50px;vertical-align:middle;text-transform:capitalize;background-color:#f1f1f1!important;padding:.2rem 1.2rem!important;border-inline-start-width:0!important}.mygrid .k-grid-header .k-header a{padding:0;margin:0}.mygrid .k-grid-header .k-grid-header-wrap th .numeric-data-holder{width:100%;text-align:right}.mygrid .k-grid-header .k-grid-header-wrap th .k-link{color:#2d323e}.mygrid .k-grid-header .k-grid-header-wrap th .k-link:hover{text-decoration:none!important}.mygrid .k-grid-header .k-grid-header-wrap th .k-link .numeric-data-holder{width:100%;text-align:right}.mygrid .k-grid-header .k-grid-header-wrap th .k-link span{color:#000}.mygrid .k-grid-header kendo-grid-string-filter-cell kendo-dropdownlist.k-header,.mygrid .k-grid-header kendo-grid-string-filter-cell kendo-datepicker.k-header,.mygrid .k-grid-header kendo-grid-boolean-filter-cell kendo-dropdownlist.k-header,.mygrid .k-grid-header kendo-grid-boolean-filter-cell kendo-datepicker.k-header,.mygrid .k-grid-header kendo-grid-date-filter-cell kendo-dropdownlist.k-header,.mygrid .k-grid-header kendo-grid-date-filter-cell kendo-datepicker.k-header,.mygrid .k-grid-header kendo-grid-numeric-filter-cell kendo-dropdownlist.k-header,.mygrid .k-grid-header kendo-grid-numeric-filter-cell kendo-datepicker.k-header{height:auto!important;border:none!important}.mygrid kendo-grid-list tr td b{font-weight:700!important}.mygrid kendo-grid-list tr td span[style="cursor:pointer"] mat-icon:active{position:relative;top:3px}.mygrid kendo-grid-list tr td.locked-column-cell0{position:sticky;left:0;background-color:#fcfcfc!important;text-overflow:inherit;z-index:1;box-shadow:5px 2px 4px #d1d1d1}.mygrid kendo-grid-list tr td.locked-column-cell1{position:sticky;left:40px;background-color:#fcfcfc!important;text-overflow:inherit;z-index:1;box-shadow:5px 2px 4px #d1d1d1}.mygrid kendo-grid-list tr td.locked-column-cell2{position:sticky;left:75px;background-color:#fcfcfc!important;text-overflow:inherit;z-index:1;box-shadow:5px 2px 4px #d1d1d1}.mygrid kendo-grid-list tr td input.k-textbox{border:1px solid rgb(228,228,228)}.mygrid .mat-icon-button{width:auto;height:auto;line-height:inherit}.mygrid table{margin:0;width:100%;max-width:none;border-width:0;border-color:inherit;border-collapse:separate;border-spacing:0;outline:0}.mygrid table tr td{text-overflow:unset}.mygrid table tr.k-selected td{background-color:#d9e9f6!important}.mygrid table tr.k-selected td.locked-column-cell0,.mygrid table tr.k-selected td.locked-column-cell1,.mygrid table tr.k-selected td.locked-column-cell2{background-color:#fcfcfc!important}.mygrid table tr td.k-state-focused{box-shadow:none!important}.mygrid table tr{background-color:#fff!important}.mygrid table tr.dragging{background-color:#bebebe!important}.mygrid table tr:hover{background-color:#3179cd1a!important;transition-property:background;transition-duration:.3s;transition-timing-function:linear}.mygrid table tr th{border-style:none;white-space:nowrap}.mygrid table tr td{border-style:none;text-align:left;padding:1rem 1.2rem!important;vertical-align:top;border-top:0;color:#000000de;transition:width .3s ease;font-size:14px;font-weight:400;word-break:break-all;border-inline-start-width:0!important}.mygrid table tr td a.k-icon{padding:0!important}.mygrid table tr td a.k-icon:hover{text-decoration:none!important}.mygrid table tr td zen-select.elies-edit-row-control .disable-form-field mat-chip-list mat-chip{color:#00000061!important}.mygrid table tr td zen-select .zs-container .zs-header .mat-form-field-label{display:none!important}.mygrid table tr td .elies-edit-row-control.mat-form-field-disabled .mat-form-field-infix input{color:#00000061!important}.mygrid table tr td .elies-edit-row-control.mat-form-field-disabled .mat-form-field-label{color:#00000061}.mygrid table tr td .edit-icon{font-size:24px!important;width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;line-height:24px!important}.mygrid table tr.k-detail-row kendo-grid{min-height:200px}.mygrid table tr.k-master-row .zen-eyeaction-holder .zen-moreaction-triger .zen-moreaction-content-wrap{left:72px}.mygrid table tr.k-filter-row td .k-header{padding:inherit!important}.mygrid table tr[kendogridfilterrow]{background-color:#f6f6f6!important;padding:0;transition:none}.mygrid table tr[kendogridfilterrow] td{padding:4px!important;background-color:#f1f1f1!important;width:auto;white-space:nowrap}.mygrid table tr[kendogridfilterrow] td .k-filtercell .k-filtercell-operator{margin-left:-1px}.mygrid table tr[kendogridfilterrow] td .k-datepicker{padding:0!important}.mygrid table tr[kendogridfilterrow] td kendo-grid-boolean-filter-cell kendo-grid-filter-wrapper-cell kendo-dropdownlist.k-header{padding:0!important}.mygrid table tr[kendogridfilterrow] td kendo-grid-boolean-filter-cell kendo-grid-filter-wrapper-cell kendo-dropdownlist.k-header span.k-dropdown-wrap{background:#ffffff}.mygrid table tr.k-grid-edit-row{height:52px!important;background:#f9f9f9!important}.mygrid table tr.k-grid-edit-row td{padding:0 1.2rem!important;min-height:50px;height:53px}.mygrid table tr.k-grid-edit-row td .zs-container .zs-header{min-height:50px}.mygrid table tr.k-grid-edit-row td mat-form-field{height:50px;position:relative;top:-6px}.mygrid table tr.k-grid-edit-row td .mat-form-field-flex>.mat-form-field-infix{padding:.4em 0!important}.mygrid table tr.k-grid-edit-row td .mat-form-field-label-wrapper{top:-1.5em}.mygrid table tr.k-grid-edit-row td .mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{transform:translateY(-1.1em) scale(.75);width:133.33333%}.mygrid table tr.k-grid-edit-row td .elies-edit-row-control .mat-form-field-infix{width:auto!important}.mygrid .k-pager-wrap{height:50px;padding:5px;background-color:#fff;border-top:1px solid rgba(0,0,0,.12);border-bottom:1px solid #e0e0e0;font-size:12px;font-weight:400;color:#0000008a}.mygrid .k-pager-wrap .k-pager-numbers .k-link.k-selected,.mygrid .k-pager-wrap .k-pager-numbers .k-link:link.k-selected{color:#000000bf;background-color:#9e9e9e33;border-color:none;font-weight:700}.mygrid .k-pager-wrap .k-pager-numbers .k-link,.mygrid .k-pager-wrap .k-pager-numbers .k-link:link{color:#000000bf}.mygrid .k-pager-wrap kendo-pager-page-sizes{margin-left:0!important}.mygrid .k-pager-wrap kendo-pager-page-sizes select{height:31px;border-color:#dadada}.mygrid .k-grid-norecords>td{text-align:center}.mygrid .k-grid-footer-wrap table td,.mygrid .k-grid-footer-locked table td{padding:12px 0!important}.mygrid .k-grid-footer-wrap table td .zen-foot-nu-text strong,.mygrid .k-grid-footer-locked table td .zen-foot-nu-text strong{padding:0 1.2rem}.mygrid .k-grid-footer-wrap table td hr,.mygrid .k-grid-footer-locked table td hr{padding:0 16px}.mygrid .k-grid-footer-wrap table td.locked-column-cell0,.mygrid .k-grid-footer-locked table td.locked-column-cell0{position:sticky;left:0}.mygrid .k-grid-footer-wrap table td.locked-column-cell1,.mygrid .k-grid-footer-locked table td.locked-column-cell1{position:sticky;left:40px}.mygrid .k-grid-footer-wrap table td.locked-column-cell2,.mygrid .k-grid-footer-locked table td.locked-column-cell2{position:sticky;left:75px}.mygrid .k-grid-lockedcolumns kendo-grid-list .k-grid-content-locked table tr td{padding:1rem 1.2rem!important}.mygrid .k-grid-lockedcolumns kendo-grid-list .k-grid-content-locked table tr.k-selected td:last-child{border-right:none}.mygrid .k-grid-lockedcolumns kendo-grid-list .k-grid-content table tr.k-selected td:first-child{border-left:none}.mygrid.sticky table tr[kendogridfilterrow] td{position:sticky}.mygrid.sticky table tr[kendogridfilterrow] td[kendogridfiltercell][aria-label="View Filter"],.mygrid.sticky table tr[kendogridfilterrow] td[kendogridfiltercell][aria-label="Multi view Filter"],.mygrid.sticky table tr[kendogridfilterrow] td[kendogridfiltercell][aria-label="Actions Filter"],.mygrid.sticky table tr[kendogridfilterrow] td[kendogridfiltercell][aria-label="customActions Filter"],.mygrid.sticky table tr[kendogridfilterrow] td[kendogridfiltercell][aria-label="Is Select Filter"]{box-shadow:5px 2px 4px #d1d1d1;z-index:999;position:sticky;left:0}.mygrid.sticky table tr[kendogridfilterrow] td:nth-child(1)[aria-label="View Filter"],.mygrid.sticky table tr[kendogridfilterrow] td:nth-child(1)[aria-label="Multi view Filter"]{left:0}.mygrid.sticky table tr[kendogridfilterrow] td:nth-child(2)[aria-label="Actions Filter"]{left:40px}.mygrid.sticky table tr[kendogridfilterrow] td:nth-child(3)[aria-label="Is Select Filter"]{left:75px}.isSelect .mygrid.sticky-1 kendo-grid table colgroup col:nth-child(1){width:82px!important}.multiView.isSelect .mygrid.sticky-2 kendo-grid table colgroup col:nth-child(1){width:50px!important}.multiView.isSelect .mygrid.sticky-2 kendo-grid table colgroup col:nth-child(2){width:82px!important}.actions.isSelect .mygrid.sticky-2 kendo-grid table colgroup col:nth-child(1){width:50px!important}.actions.isSelect .mygrid.sticky-2 kendo-grid table colgroup col:nth-child(2){width:82px!important}.card-view-grid kendo-grid{border:none}@media screen and (max-width: 599px){.card-view-grid kendo-grid{height:auto}}.card-view-grid kendo-grid .k-grid-header{visibility:hidden;height:0}.card-view-grid kendo-grid .k-grid-table tbody{flex-direction:row;box-sizing:border-box;display:flex;flex:1 0 auto;flex-flow:row wrap;padding:8px}.card-view-grid kendo-grid .k-grid-table tr{flex:1 1 100%;box-sizing:border-box;max-width:calc(33% - 13px);flex-direction:row;display:inline-flex;background:#fff;margin-right:8px;margin-bottom:8px}.card-view-grid kendo-grid .k-grid-table tr.k-selected .zenCartview{border:2px solid #3d8dbc!important;background:#f3fbff}.card-view-grid kendo-grid .k-grid-table tr.k-detail-row{flex-flow:wrap-reverse}@media screen and (min-width: 960px) and (max-width: 1279px){.card-view-grid kendo-grid .k-grid-table tr{max-width:50%;margin-right:0}.card-view-grid kendo-grid .k-grid-table tr:nth-child(2n) td .zenCartview{margin-right:0!important}}@media screen and (max-width: 599px){.card-view-grid kendo-grid .k-grid-table tr{max-width:100%}.card-view-grid kendo-grid .k-grid-table tr td .zenCartview{margin-right:0!important}}.card-view-grid kendo-grid .k-grid-table tr:nth-child(3n) td .zenCartview{margin-right:0}.card-view-grid kendo-grid .k-grid-table tr td{width:calc(100vw - 8px);vertical-align:top!important;background:none!important;padding:0}@media screen and (max-width: 599px){.card-view-grid kendo-grid .k-grid-table tr td{padding:0}}.card-view-grid kendo-grid .k-grid-table tr td.k-hierarchy-cell{width:auto}.card-view-grid kendo-grid .k-grid-table tr td .zenCartview{animation-name:fadeInLeft;animation-iteration-count:1;animation-duration:1s;animation-delay:0s;animation-timing-function:ease;animation-fill-mode:both;backface-visibility:hidden;padding:20px;list-style-type:none;margin:0 15px 15px 0;box-shadow:8px 5px 16px #ccc;-webkit-box-shadow:8px 5px 16px #ccc;-moz-box-shadow:8px 5px 16px #ccc;border:2px solid transparent}@media screen and (max-width: 599px){.card-view-grid kendo-grid .k-grid-table tr td .zenCartview{margin-bottom:0!important}}.card-view-grid kendo-grid .k-grid-table tr td .zenCartview:hover{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;-webkit-box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);-moz-box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.card-view-grid kendo-grid .k-grid-table tr td .zenCartview li{border-bottom:1px dotted #ccc}.card-view-grid kendo-grid .k-grid-table tr td .zenCartview li ul{padding:0;list-style-type:none}.card-view-grid kendo-grid .k-grid-table tr td .zenCartview li ul li{width:50%;display:inline-block;line-height:25px;font-size:13px;border:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-view-grid kendo-grid .k-grid-table tr td .zenCartview li ul li:nth-child(1){font-weight:500;color:#404040;text-transform:capitalize}.card-view-grid kendo-grid .k-grid-table tr td .zenCartview li ul li.other-type{color:#000}.card-view-grid kendo-grid .k-grid-table tr td .zenCartview li ul li.other-type span,.card-view-grid kendo-grid .k-grid-table tr td .zenCartview li ul li.other-type div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block!important}.card-view-grid kendo-grid .k-grid-table tr td .zenCartview .other-type .other{display:inline-block;max-width:100%}.card-view-grid kendo-grid .k-grid-table tr.k-grid-norecords{width:100%}.card-view-grid kendo-grid .k-grid-table tr.k-grid-norecords td{text-align:center}.card-view-grid kendo-grid .k-pager-wrap{padding:5px;height:50px;background-color:#fff;border-top:1px solid rgba(0,0,0,.12);font-size:12px;font-weight:400;color:#0000008a;border-bottom:1px solid #e0e0e0;z-index:150}.card-view-grid kendo-grid .k-pager-wrap .k-pager-numbers .k-link.k-selected,.card-view-grid kendo-grid .k-pager-wrap .k-pager-numbers .k-link:link.k-selected{color:#000000bf;background-color:#9e9e9e33;border-color:none;font-weight:700}.card-view-grid kendo-grid .k-pager-wrap .k-pager-numbers .k-link,.card-view-grid kendo-grid .k-pager-wrap .k-pager-numbers .k-link:link{color:#000000bf}.card-view-grid kendo-grid .k-pager-wrap kendo-pager-page-sizes{margin-left:0!important}.card-view-grid kendo-grid .k-pager-wrap kendo-pager-page-sizes select{height:31px;border-color:#dadada}.card-view-grid table{width:100%!important}.card-view-grid table colgroup{display:flex;flex-direction:column}.card-view-grid table colgroup col{flex:0 0 AUTO}.card-view-grid table tbody{flex:1 1 100%}.card-view-grid table tbody tr.k-grouping-row{flex:0 0 100%!important;max-width:inherit!important;border:1px solid #ccc;background:#ededed}.card-view-grid table tbody tr.k-grouping-row td{width:auto!important}.card-view-grid table tbody tr td.k-group-cell{display:none}.card-view-grid table tbody .k-grouping-row+tr td{border-top-width:0}.compact-view-grid .hide-column-btn{float:right;font-size:medium;visibility:hidden;z-index:1;cursor:pointer;color:#000;top:15px;position:absolute;right:0}.compact-view-grid .hide-column-btn .k-i-filter:before{color:#575a64}.compact-view-grid .show-column-btn{float:right;font-size:medium;visibility:visible;z-index:1;cursor:pointer;top:15px;position:absolute;right:0}.compact-view-grid .show-column-btn .k-i-filter-clear{color:#f44336!important}.compact-view-grid .k-grid-header th.k-header{height:50px;vertical-align:middle}.compact-view-grid .k-grid-header .k-grid-header-wrap th .k-link{display:flex;color:#2d323e}.compact-view-grid .k-grid-header .k-grid-header-wrap th .k-link:hover{text-decoration:none}.compact-view-grid .k-grid-header .k-grid-header-wrap th .k-link .numeric-data-holder{width:100%;text-align:right}.compact-view-grid .k-grid-header .k-grid-header-wrap th .k-link span{color:#000}.compact-view-grid .mat-icon-button{width:auto;height:auto;line-height:inherit}.compact-view-grid table tr.k-selected{background-color:#fff!important}.compact-view-grid table tr.k-selected td{background:none!important}.compact-view-grid table tr{background-color:#fff!important}.compact-view-grid table tr:hover{cursor:pointer;transition-property:background;transition-duration:.3s;transition-timing-function:linear}.compact-view-grid table tr th{border-style:none}.compact-view-grid table tr td{border-style:none;text-align:left;padding:7px 10px!important;vertical-align:top;border-top:0;color:#000000de;transition:width .3s ease;font-size:14px;font-weight:400;height:38px}.compact-view-grid table tr td .edit-icon{font-size:20px!important;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;line-height:20px!important}.compact-view-grid table tr td zen-select .zs-container .zs-header{height:35px;min-height:35px!important}.compact-view-grid table tr td zen-select .zs-container .zs-header mat-form-field ::ng-deep{position:relative;top:-15px}.compact-view-grid table tr td zen-select .zs-container .zs-header mat-form-field ::ng-deep .mat-form-field-hide-placeholder .mat-form-field-label{position:relative;z-index:-1}.compact-view-grid table tr td zen-select .zs-container .zs-header .mat-form-field-hide-placeholder .mat-form-field-label{position:relative;z-index:-1}.compact-view-grid table tr td mat-form-field{height:35px;position:relative;top:-15px}.compact-view-grid table tr.k-grid-norecords{width:100%}.compact-view-grid table tr.k-grid-norecords td{text-align:center}.compact-view-grid .k-pager-wrap{padding:5px;height:50px;background-color:#fff;border-top:1px solid rgba(0,0,0,.12);border-bottom:1px solid #e0e0e0;font-size:12px;font-weight:400;color:#0000008a;z-index:150}.compact-view-grid .k-pager-wrap .k-pager-numbers .k-link.k-selected,.compact-view-grid .k-pager-wrap .k-pager-numbers .k-link:link.k-selected{color:#000000bf;background-color:#9e9e9e33;border-color:none;font-weight:700}.compact-view-grid .k-pager-wrap .k-pager-numbers .k-link,.compact-view-grid .k-pager-wrap .k-pager-numbers .k-link:link{color:#000000bf}.compact-view-grid .k-pager-wrap kendo-pager-page-sizes{margin-left:0!important}.compact-view-grid .k-pager-wrap kendo-pager-page-sizes select{height:31px;border-color:#dadada}.compact-view-grid .k-grid-norecords>td{text-align:center}.compact-view-grid .k-grid-footer-wrap table td{padding:12px 0!important}.compact-view-grid .k-grid-footer-wrap table td .zen-foot-nu-text span{padding:0 1.2rem}.compact-view-grid .k-grid-footer-wrap table td hr{padding:0 16px}.customCardView table{width:100%!important}.customCardView table tr.k-grid-norecords{width:100%}.customCardView table tr.k-grid-norecords td{text-align:center}.customCardView.selected .card{box-shadow:inset 0 0 0 2px #4896c3}.customCardView .card{box-shadow:inset 0 0 0 2px #cfd7de;display:grid;font-family:inherit;height:200px;border-radius:4px;background:#ffffff}.customCardView .card:hover{cursor:pointer}.customCardView .card.document-card .bottom.dots{font-size:16px}.customCardView .back{grid-template-columns:repeat(12,1fr);grid-template-rows:repeat(12,1fr)}.customCardView .back .yellow{grid-column:1/span 12;grid-row:1/span 2;text-align:right}.customCardView .back .top.dots{background:radial-gradient(#4cc9c8 20%,transparent 19%),radial-gradient(#4cc9c8 20%,transparent 19%),transparent;background-size:6px 6px;background-position:0 0,3px 3px;grid-column:8/span 6;grid-row:2/span 3}.customCardView .back .personal-info{grid-column:1/span 12;grid-row:4/span 12;border-top:1px solid #ccc}.customCardView .back .personal-info p{font-size:12px;font-weight:500;word-break:break-all;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.customCardView .back .personal-info .note-info p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-style:italic}.customCardView .back .personal-info p.insert-date{float:right}.customCardView .back .personal-info p.created-by{float:right;padding-left:10%}.customCardView .back .bottom.dots{background-size:6px 6px;background-position:0 0,3px 3px;grid-column:1/span 9;z-index:2;font-size:14px;padding-left:15px;font-weight:700;border-bottom:1px solid #ccc;grid-row:1/span 2;display:flex;justify-content:flex-start;align-items:center}.customCardView .back .bottom.dots .clips{white-space:nowrap;overflow:hidden;padding-right:10px;padding-left:5px;text-overflow:ellipsis;flex:1 0}.customCardView .back .bottom.dots span img{top:0;position:relative;left:-5px;width:16px;height:16px}.customCardView .back .bottom.dots span mat-icon{position:relative}.customCardView .back .top-full{background-size:6px 6px;background-position:0 0,3px 3px;grid-column:1/span 12;grid-row:2/span 2;z-index:2;font-size:16px;padding-left:15px;font-weight:700;border-bottom:1px solid #ccc}.customCardView .back .middle-full{background-size:6px 6px;background-position:0 0,3px 3px;grid-column:1/span 12;grid-row:6/span 2;z-index:2;font-size:18px;padding-left:15px;font-weight:700}.customCardView .back .middle-full p{word-break:break-all;line-height:20px}.customCardView .back .middle-full-from-top{background-size:6px 6px;background-position:0 0,3px 3px;grid-column:1/span 12;grid-row:3/span 5;z-index:2;font-size:14px;padding-left:15px;font-weight:700}.customCardView .back .middle-full-from-top p{word-break:break-all;line-height:20px}.customCardView .back .middle-full-from-top-1{background-size:6px 6px;background-position:0 0,3px 3px;grid-column:1/span 12;grid-row:3/span 4;z-index:2;font-size:18px;padding-left:15px;font-weight:700}.customCardView .back .middle-full-from-top-1 p{word-break:break-all;line-height:16px}.customCardView .back .middle-full-from-top-1 p.address-note{max-height:90px;overflow:auto}.customCardView .back .middle-full-no-bottom{background-size:6px 6px;background-position:0 0,3px 3px;grid-column:1/span 12;grid-row:3/span 9;z-index:2;font-size:18px;padding-left:15px;font-weight:700}.customCardView .back .bottom-full{background-size:6px 6px;background-position:0 0,3px 3px;grid-column:1/span 12;grid-row:7/span 9;z-index:2;font-size:10px;padding-left:15px;padding-right:15px;font-weight:700}.customCardView .back .bottom-half-left{background-size:6px 6px;background-position:0 0,3px 3px;grid-column:1/span 6;grid-row:11/span 2;z-index:2;font-size:10px;padding-left:15px;font-weight:700}.customCardView .back .bottom-half-right{background-size:6px 6px;background-position:0 0,3px 3px;grid-column:7/span 12;grid-row:11/span 2;z-index:2;font-size:10px;padding-right:15px;font-weight:700;text-align:right}.customCardView .back .pinkPo{grid-column:8/span 5;grid-row:1/span 2;text-align:right;padding-right:15px;border-bottom:1px solid #ccc;display:flex;justify-content:flex-end;align-items:center}.customCardView .back .card-top-wrap{flex-wrap:wrap;flex-direction:row;box-sizing:border-box;display:flex;flex:1 1 auto}.customCardView.address-card .card{height:230px}.customCardView.address-card .card.back .middle-full-from-top-1{font-size:16px;grid-row:3/span 5}.customCardView.address-card .card.back .bottom-full{grid-row:8/span 10;padding-right:15px}.customCardView.contact-information-card .card{height:170px}.customCardView.contact-information-card .card.back .middle-full-no-bottom{grid-row:4/span 7;padding-right:15px!important}.theme-dark .mygrid table tr:hover td{background-color:#3179cd26!important}.theme-dark .mygrid table tr.k-selected td,.theme-dark .mygrid table tr.k-selected td.k-group-cell{background-color:#2a4260!important}.theme-dark .mygrid table tr td zen-slide-view .card-view-grid table tbody{background:#424242}.theme-dark .mygrid table tr td zen-slide-view .card-view-grid table tr.k-selected td{background-color:transparent!important;border:none!important}.theme-dark .mygrid table tr td zen-slide-view zen-select .zs-container .zs-header .mat-form-field-label{display:block!important}.theme-default .mygrid table tr td zen-slide-view zen-select .zs-container .zs-header .mat-form-field-label{display:block!important}.zen-loading-backcontent-cover-zenselect,.zen-grid-popper .popper__arrow{display:none}.kendo-cell-truncate{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;max-width:250px;line-height:17px}.kendo-cell-truncate span{height:17px;display:block}.rounded{border-radius:50%}\n'],encapsulation:2,data:{animation:o.L}})}return Rn})()},48979:(he,y,i)=>{"use strict";i.d(y,{i:()=>me});var e=i(34423),n=i(96814),o=i(69862),a=i(56223),l=i(94505),u=i(45754),d=i(26177),s=i(38034),A=i(84187),_=i(30617),C=i(42400),R=i(78250),x=i(48134),f=i(48424),k=i(51838),w=i(54841),g=i(30481),M=i(20180),p=i(89515),E=i(31486),b=i(8841),I=i(80889),L=i(10922),D=i(91569),F=i(16493),P=i(3209),O=i(30508),U=i(64034),V=i(87411),K=i(12430),X=i(65879);let me=(()=>{class J{static#e=this.\u0275fac=function(de){return new(de||J)};static#t=this.\u0275mod=X.oAB({type:J});static#n=this.\u0275inj=X.cJS({imports:[n.ez,o.JF,b.zE6,a.u5,M.L,_.Ps,u.Zh,R.jT,w.U5,k.Wd,g.AA,l.yu,A.wp,f.uw,s.FA,C.x4,d.yD,x.jc,P.uh,V.L,O.n,p.aw,g.AA,E.g9,e._t,K.L,F.M,I.Ln,D.h,b.xGR,U.w,L.UF]})}return J})()},58271:(he,y,i)=>{"use strict";i.d(y,{k:()=>o});var e=i(71951),n=i(65879);let o=(()=>{class a{static#e=this.\u0275fac=function(d){return new(d||a)};static#t=this.\u0275mod=n.oAB({type:a});static#n=this.\u0275inj=n.cJS({imports:[e.x]})}return a})()},51314:(he,y,i)=>{"use strict";i.d(y,{M:()=>a});var e=i(65879),n=i(94505),o=i(89515);let a=(()=>{class l{constructor(){this.btnColor="accent",this.spinnerColor="accent",this.disabled=!1,this.loading=!1,this.btnDisabled=!1,this.onBtnClick=new e.vpe,this.loadSpinner=!1}ngOnInit(){}set btnValue(d){this.btnDisabled=d}set setName(d){this.name=d}set setSpinner(d){null!=d&&(this.loadSpinner=d)}btnClicked(d){this.onBtnClick.emit(!0)}static#e=this.\u0275fac=function(s){return new(s||l)};static#t=this.\u0275cmp=e.Xpm({type:l,selectors:[["zen-loading-button"]],inputs:{name:"name",btnColor:"btnColor",spinnerColor:"spinnerColor",disabled:"disabled",loading:"loading",btnValue:["disabled","btnValue"],setName:["name","setName"],setSpinner:["loading","setSpinner"]},outputs:{onBtnClick:"onBtnClick"},decls:5,vars:5,consts:[["mat-raised-button","",1,"zen-loading-btn-wrap",3,"color","disabled","colorChange","click"]],template:function(s,A){1&s&&(e.TgZ(0,"button",0),e.NdJ("colorChange",function(C){return A.btnColor=C})("click",function(C){return A.btnClicked(C)}),e.ynx(1),e.TgZ(2,"div"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.BQk(),e.qZA()),2&s&&(e.Q6J("color",A.btnColor)("disabled",A.btnDisabled),e.xp6(3),e.Oqu(e.lcZ(4,3,A.name)))},dependencies:[n.eB,o.X$],styles:[".zen-loading-btn-wrap[_ngcontent-%COMP%]{height:36px}.zen-loading-btn-wrap[_ngcontent-%COMP%]   .spinner-btn-wrap[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:inline-block}.zen-loading-btn-wrap[_ngcontent-%COMP%]   .spinner-btn-wrap[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]{position:relative;top:6px;left:2px}"]})}return l})()},60682:(he,y,i)=>{"use strict";i.d(y,{X:()=>d});var e=i(96814),n=i(89515),o=i(94505),a=i(91438),l=i(85947),u=i(65879);let d=(()=>{class s{static#e=this.\u0275fac=function(C){return new(C||s)};static#t=this.\u0275mod=u.oAB({type:s});static#n=this.\u0275inj=u.cJS({imports:[a.UK,o.yu,n.aw,l.o9,e.ez,l.o9,o.yu]})}return s})()},12669:(he,y,i)=>{"use strict";i.d(y,{w:()=>u});var e=i(65619),n=i(54841),o=i(37398),a=i(93997);class u extends n.r4{get allData(){return this.$data.slice()}set allData(s){this.$data=s||[],this._dataLength=this.$data.length,this.viewport.scrollToOffset(0);let A=0;this.hasDynamicItemSize?(this._calcCumulativeHeight(),A=this._viewportContentSize=this._cumIndexHeight[(this._dataLength-1).toString()],this.viewport.setTotalContentSize(A)):(A=this._viewportContentSize=this.itemSize*s.length,this.viewport.setTotalContentSize(A)),this.visibleData.next(this.$data.slice(0,this.pageSize))}set appendData(s){const A=this._dataLength;if(this.$data.push(...s),this._dataLength=this.$data.length,this.hasDynamicItemSize){this._calcAppendCumulativeHeight(A);const _=this._viewportContentSize=this._cumIndexHeight[(this._dataLength-1).toString()];this.viewport.setTotalContentSize(_);const C=Math.min(this._dataLength,this._lastStartIndex+this.pageSize+2*this._bufferSize);this.visibleData.next(this.$data.slice(this._lastStartIndex,C))}else{const _=Math.min(this._dataLength,this._lastStartIndex+this.pageSize+2*this._bufferSize);this.viewport.setTotalContentSize(this.itemSize*s.length),this.visibleData.next(this.$data.slice(this._lastStartIndex,_))}}constructor(s,A,_,C,R){super(s),this.initialData=s,this.viewport=A,this.itemSize=_,this.pageSize=C,this.hasDynamicItemSize=R,this._lastScrollTop=0,this._cumIndexHeight={},this._cumIndexHeightRev={},this.offset=0,this.btmOffset=0,this.offsetChange=new e.X(0),this.bottomOffsetChange=new e.X(0),this.fetchNext=new e.X({skip:0}),this.visibleData=new e.X([]),this._viewportContentSize=0,this._bufferSize=5,this._processing=!1,this._cumHtRef=[],this.lastTbodyHeight=0,this._expandedDetailRuids=[],this._expandedItemDetailRuids=[],this.itemSize=this.itemSize?this.itemSize:48,this.pageSize=this.pageSize?this.pageSize:20,this.$data=this.initialData,this.viewport.subscription&&this.viewport.subscription.complete(),R?(this.viewport.elementRef.nativeElement.querySelector(".zmg > tbody"),this.viewport.subscription=this.viewport.elementScrolled().pipe((0,o.U)(f=>{let k=f.currentTarget.scrollTop;const w=this._getSetScrollDirection(k);if(!w||f.currentTarget.scrollTop>this._viewportContentSize)return f.preventDefault(),-1;const g=this.getIndexByHeight(w,k);return Math.max(0,g-this._bufferSize)}),(0,a.x)()).subscribe(f=>{if(f<0)return;this._lastStartIndex=f;const k=Math.min(this._dataLength,f+this.pageSize+2*this._bufferSize);this._lastEndIndex=k-1;const w=this.$data.slice(f,k);this.offset=f>0?this._cumIndexHeight[(f-1).toString()]:0,this.viewport.setRenderedContentOffset(this.offset),this.offsetChange.next(this.offset),this.visibleData.next(w)})):this.viewport.subscription=this.viewport.elementScrolled().pipe((0,o.U)(x=>{const f=x.currentTarget.scrollTop;if(f>this._viewportContentSize)return x.preventDefault(),-1;const k=Math.floor(f/this.itemSize);return Math.max(0,k-this._bufferSize)}),(0,a.x)()).subscribe(x=>{if(x<0)return;const f=Math.min(this._dataLength,x+this.pageSize+2*this._bufferSize),k=this.$data.slice(x,f);this.offset=this.itemSize*x,this.viewport.setRenderedContentOffset(this.offset),this.offsetChange.next(this.offset),this.visibleData.next(k)})}connect(){return this.visibleData}disconnect(){}_calcCumulativeHeight(){const s=this.allData;this._cumHtRef=[];for(let A=0;A<this._dataLength;A++){s[A]&&(s[A].zmg_ruid=Number(A));const _=((s[A].items||[]).length||1)*this.itemSize+1;s[A].zmg_ruid=A,s[A].zmg_roffset=_;const C=A<=0?_:this._cumIndexHeight[A-1]+_;this._cumHtRef.push(C.toString()),this._cumIndexHeight[A.toString()]=C,this._cumIndexHeightRev[C.toString()]=A}}_calcAppendCumulativeHeight(s){const A=this.allData;for(let C=s;C<this._dataLength;C++){A[C]&&(A[C].zmg_ruid=C);const R=((A[C].items||[]).length||1)*this.itemSize+1;A[C].zmg_ruid=C,A[C].zmg_roffset=R;const x=C<=0?R:this._cumIndexHeight[C-1]+R;this._cumHtRef.push(x.toString()),this._cumIndexHeight[C.toString()]=x,this._cumIndexHeightRev[x.toString()]=C}}getIndexByHeight(s,A){if(s){let _=0,C=0;if("up"===s){for(_=this._lastEndIndex,_=isNaN(_)?0:_;Number(this._cumHtRef[(_--).toString()])>A;);C=_<=0?0:++_}else{for(_=this._lastStartIndex,_=isNaN(_)?0:_;Number(this._cumHtRef[(_++).toString()])<A;);C=_<=0?0:--_}const R=this._cumHtRef[C.toString()];return R?this._cumIndexHeightRev[R.toString()]:-1}return-1}_getSetScrollDirection(s){const A=s===this._lastScrollTop?"":s>this._lastScrollTop?"down":"up";return this._lastScrollTop=s<=0?0:s,A}log(s){const _=this.viewport.elementRef.nativeElement.querySelector(".zmg > tbody").clientHeight;s={...s,lastTbody:this.lastTbodyHeight,tbodyH:_,diffHight:_-this.lastTbodyHeight},this.lastTbodyHeight=_;const C=this.viewport.measureRenderedContentSize(),R=this.viewport.getOffsetToRenderedContentStart(),x=this.viewport.elementRef.nativeElement.querySelectorAll("tbody > tr.zmg-master-row");let f=57,k=0;x.forEach((w,g)=>{f+=w.clientHeight,k++}),console.log("Last => trCount",k,"trHeightSum",f,"renderedSize",C,"renderedOffsetStart",R,"calcOffset",C-f,"cur =>",s)}setDynamicRowHeight(s,A){if(!isNaN(s)&&!isNaN(A)){const _=this.allData.length;A=isNaN(A)?0:A;for(let C=s;C<_;C++){const R=this._cumIndexHeight[C.toString()],x=this._cumIndexHeight[C.toString()]+A;this._cumIndexHeight[C.toString()]=x,this._cumIndexHeightRev[x]=C,delete this._cumIndexHeightRev[R]}this._cumHtRef=Object.keys(this._cumIndexHeightRev)}}concat(s,A){setTimeout(()=>{if(this.$data=this.$data.concat(s),this.hasDynamicItemSize){this._calcCumulativeHeight();const _=this._viewportContentSize=this._cumIndexHeight[(this.$data.length-1).toString()];this.viewport.setTotalContentSize(_),this.viewport.scrollToOffset(this._lastScrollTop)}else this.viewport.setTotalContentSize(this.itemSize*this.data.length)},200)}}},69167:(he,y,i)=>{"use strict";i.d(y,{O:()=>a});var e=i(16672),n=i(65879);let a=(()=>{class l extends e.Ee{constructor(){super(48,1e3,2e3)}attach(d){this.onDataLengthChanged()}static#e=this.\u0275fac=function(s){return new(s||l)};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac})}return l})()},92033:(he,y,i)=>{"use strict";i.d(y,{O:()=>A});var e=i(65879),n=i(78645),o=i(96814),a=i(38034),l=i(84187),u=i(89515);const d=["calendar"];function s(_,C){if(1&_&&(e.TgZ(0,"div",3)(1,"mat-label"),e._uU(2),e.ALo(3,"translate"),e.qZA()()),2&_){const R=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,1,R.label))}}let A=(()=>{class _{set daysSelectedFn(R){R.length>0&&(this.daysSelected=R,this.calendar.updateTodaysDate())}constructor(){this.onSelectedDateChanged=new e.vpe,this.daysSelected=[],this.isSelected=R=>{const x=R.getFullYear()+"-"+("00"+(R.getMonth()+1)).slice(-2)+"-"+("00"+R.getDate()).slice(-2);return this.daysSelected.find(f=>f==x)?"selected":null},this._unsubscribeAll=new n.x}ngAfterViewInit(){}ngOnInit(){}onDateSelected(R,x){const f=R.getFullYear()+"-"+("00"+(R.getMonth()+1)).slice(-2)+"-"+("00"+R.getDate()).slice(-2),k=this.daysSelected.findIndex(w=>w==f);k<0?this.daysSelected.push(f):this.daysSelected.splice(k,1),x.updateTodaysDate(),this.onSelectedDateChanged.emit(this.daysSelected)}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(x){return new(x||_)};static#t=this.\u0275cmp=e.Xpm({type:_,selectors:[["zen-multi-date-picker"]],viewQuery:function(x,f){if(1&x&&e.Gf(d,5),2&x){let k;e.iGM(k=e.CRH())&&(f.calendar=k.first)}},inputs:{label:"label",minDate:["minimumDate","minDate"],daysSelectedFn:["daysSelected","daysSelectedFn"]},outputs:{onSelectedDateChanged:"onSelectedDateChanged"},decls:3,vars:3,consts:[["class","font-size-16 font-weight-600 mt-20 text-left pl-24",4,"ngIf"],[3,"minDate","dateClass","selectedChange"],["calendar",""],[1,"font-size-16","font-weight-600","mt-20","text-left","pl-24"]],template:function(x,f){if(1&x){const k=e.EpF();e.YNc(0,s,4,3,"div",0),e.TgZ(1,"mat-calendar",1,2),e.NdJ("selectedChange",function(g){e.CHM(k);const M=e.MAs(2);return e.KtG(f.onDateSelected(g,M))}),e.qZA()}2&x&&(e.Q6J("ngIf",f.label),e.xp6(1),e.Q6J("minDate",f.minDate)("dateClass",f.isSelected))},dependencies:[o.O5,a._H,l.$V,u.X$],styles:[".mat-calendar-body-cell{height:85%!important;width:85%!important}.mat-calendar-body-cell.selected{background-color:#09f!important;border-radius:50%}.mat-calendar-body-cell.selected .mat-calendar-body-cell-content{color:#fff;font-weight:700}\n"],encapsulation:2})}return _})()},76125:(he,y,i)=>{"use strict";i.d(y,{d:()=>s});var e=i(20180),n=i(94505),o=i(38034),a=i(66878),l=i(89515),u=i(42400),d=i(65879);let s=(()=>{class A{static#e=this.\u0275fac=function(R){return new(R||A)};static#t=this.\u0275mod=d.oAB({type:A});static#n=this.\u0275inj=d.cJS({imports:[e.L,n.yu,l.aw,o.FA,a.yj,u.x4]})}return A})()},40681:(he,y,i)=>{"use strict";i.d(y,{M:()=>te});var e=i(65879),n=i(78645),o=i(23605),a=i(59773),l=i(710),u=i(74187),d=i(28011),s=i(96814),A=i(83814),_=i(27509),C=i(94390),R=i(30481),x=i(30617),f=i(48247),k=i(23680),w=i(78250),g=i(89515);function M(j,H){if(1&j&&(e.TgZ(0,"mat-icon",17),e._uU(1),e.qZA()),2&j){const z=e.oxw().$implicit;e.Q6J("svgIcon","znac-"+z.resource),e.xp6(1),e.hij(" ",z.icon,"")}}function p(j,H){if(1&j&&(e.TgZ(0,"mat-icon"),e._uU(1),e.qZA()),2&j){const z=e.oxw(2).$implicit;e.xp6(1),e.Oqu(z.icon)}}function E(j,H){if(1&j&&e.YNc(0,p,2,1,"mat-icon",7),2&j){const z=e.oxw().$implicit;e.Q6J("ngIf",z.icon)}}function b(j,H){if(1&j&&(e.TgZ(0,"span",18),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&j){const z=e.oxw().$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,z.resource)," ")}}const I=function(j,H){return{animateIcon:j,"":H}};function L(j,H){if(1&j){const z=e.EpF();e.TgZ(0,"div",12)(1,"button",13),e.NdJ("click",function(){const ne=e.CHM(z).$implicit,_e=e.oxw(2);return e.KtG(_e.favoriteIconClickAction(ne))})("dblclick",function(){const ne=e.CHM(z).$implicit,_e=e.oxw(2);return e.KtG(_e.favoriteIconDoubleClickAction(ne))}),e.ALo(2,"translate"),e.YNc(3,M,2,2,"mat-icon",14),e.YNc(4,E,1,1,"ng-template",null,15,e.W1O),e.YNc(6,b,3,3,"span",16),e.qZA()()}if(2&j){const z=H.$implicit,q=e.MAs(5),se=e.oxw(2);e.xp6(1),e.Tol(z.resource),e.s9C("matTooltip",e.lcZ(2,8,z.resource)),e.Q6J("ngClass",e.WLB(10,I,z.isAnimate,!z.isAnimate)),e.xp6(2),e.Q6J("ngIf",z.icon&&se.svgIcons.length>0&&se.svgIcons.includes(z.resource.toLowerCase()))("ngIfElse",q),e.xp6(3),e.Q6J("ngIf",!z.icon)}}function D(j,H){if(1&j&&(e.TgZ(0,"button",19)(1,"mat-icon"),e._uU(2),e.qZA()()),2&j){const z=e.oxw(2),q=e.MAs(4);e.Q6J("matMenuTriggerFor",q)("matTooltipDisabled",!(!z.config||!z.config.icon)),e.xp6(2),e.hij(" ",z.config.icon,"")}}function F(j,H){if(1&j&&(e.TgZ(0,"button",20)(1,"mat-icon",21),e._uU(2,"star"),e.qZA()()),2&j){e.oxw(2);const z=e.MAs(4);e.Q6J("matMenuTriggerFor",z)}}function P(j,H){if(1&j&&(e.TgZ(0,"div",8),e.YNc(1,L,7,13,"div",9),e.YNc(2,D,3,3,"button",10),e.YNc(3,F,3,1,"ng-template",null,11,e.W1O),e.qZA()),2&j){const z=e.MAs(4),q=e.oxw();e.xp6(1),e.Q6J("ngForOf",q.entityFavoriteItems),e.xp6(1),e.Q6J("ngIf",q.config&&q.config.icon)("ngIfElse",z)}}function O(j,H){if(1&j&&e._UZ(0,"mat-icon",30),2&j){const z=e.oxw().$implicit;e.Q6J("svgIcon","znac-"+z.resource)}}function U(j,H){if(1&j&&(e.TgZ(0,"mat-icon",32),e._uU(1),e.qZA()),2&j){const z=e.oxw(2).$implicit;e.xp6(1),e.Oqu(z.icon)}}function V(j,H){if(1&j&&e.YNc(0,U,2,1,"mat-icon",31),2&j){const z=e.oxw().$implicit;e.Q6J("ngIf",z.icon)}}function K(j,H){if(1&j&&(e.TgZ(0,"span",33),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&j){const z=e.oxw().$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,z.resource)," ")}}function X(j,H){1&j&&e._UZ(0,"div")}function me(j,H){if(1&j){const z=e.EpF();e.TgZ(0,"mat-icon",37),e.NdJ("click",function(se){e.CHM(z);const ne=e.oxw(2).$implicit,_e=e.oxw();return e.KtG(_e.toggleShortcut(se,ne))}),e._uU(1,"star "),e.qZA()}}function J(j,H){if(1&j){const z=e.EpF();e.TgZ(0,"mat-icon",38),e.NdJ("click",function(se){e.CHM(z);const ne=e.oxw(2).$implicit,_e=e.oxw();return e.KtG(_e.toggleShortcut(se,ne))}),e._uU(1,"star"),e.qZA()}}function Q(j,H){if(1&j&&(e.TgZ(0,"div",34),e.YNc(1,me,2,0,"mat-icon",35),e.YNc(2,J,2,0,"mat-icon",36),e.qZA()),2&j){const z=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",!z.isFavorite),e.xp6(1),e.Q6J("ngIf",z.isFavorite)}}function re(j,H){if(1&j){const z=e.EpF();e.TgZ(0,"mat-list-item",22),e.NdJ("click",function(){const ne=e.CHM(z).$implicit,_e=e.oxw();return e.KtG(_e.favoriteIconClickAction(ne))})("dblclick",function(){const ne=e.CHM(z).$implicit,_e=e.oxw();return e.KtG(_e.favoriteIconDoubleClickAction(ne))}),e.TgZ(1,"div",23)(2,"button",24),e.YNc(3,O,1,1,"mat-icon",25),e.YNc(4,V,1,1,"ng-template",null,15,e.W1O),e.YNc(6,K,3,3,"span",26),e.TgZ(7,"p",27),e.ALo(8,"translate"),e._uU(9),e.ALo(10,"translate"),e.qZA()(),e.YNc(11,X,1,0,"div",28),e.YNc(12,Q,3,2,"ng-template",null,29,e.W1O),e.qZA()()}if(2&j){const z=H.$implicit,q=e.MAs(5),se=e.MAs(13),ne=e.oxw();e.xp6(2),e.MT6("",z.resource," ",ne.isLongNavigationName?"w-100-p":"",""),e.xp6(1),e.Q6J("ngIf",ne.svgIcons.length>0&&ne.svgIcons.includes(z.resource.toLowerCase()))("ngIfElse",q),e.xp6(3),e.Q6J("ngIf",!z.icon),e.xp6(1),e.s9C("matTooltip",e.lcZ(8,11,z.resource)),e.xp6(2),e.hij(" ",e.lcZ(10,13,z.resource),""),e.xp6(2),e.Q6J("ngIf",ne.config&&ne.config.hideIndividualIcon)("ngIfElse",se)}}function de(j,H){1&j&&(e.TgZ(0,"mat-list-item")(1,"p",39)(2,"strong"),e._uU(3),e.ALo(4,"translate"),e.qZA()()()),2&j&&(e.xp6(3),e.Oqu(e.lcZ(4,1,"noShortCutsYet!")))}let te=(()=>{class j extends o.g{set disableBlockUI(z){this._disableBlockUI=z}set mobileAdapt(z){this._mobileAdapt=z,this.initMobileAdaptation()}set val(z){z&&(this.json=z,this.sessionData=JSON.parse(sessionStorage.getItem("headerParams")),this.json.roleId=this.sessionData.roleId,this.getPersonNavigationAction(this.json.navigationId))}set configObj(z){z&&(this.maxFavoriteCount=z.maxFavoriteCount?z.maxFavoriteCount:this.maxFavoriteCount,this.config=z,this.svgIcons=z.svgIcons?z.svgIcons:[])}constructor(z,q,se){super(),this.commonService=z,this.us=q,this.eds=se,this._mobileAdapt=!1,this._disableBlockUI=!0,this._isMobile=!1,this.entityFavoriteItems=[],this.actionId=[],this.tempFavoriteItem=[],this.shortcutItems=[],this.tempShortCutItems=[],this.favoriteJson={},this.maxFavoriteCount=8,this.svgIcons=[],this.onFavActionAfterLoadList=new e.vpe,this.onFavoriteActionClick=new e.vpe,this.onFavoriteActionDoubleClick=new e.vpe,this._unsubscribeAll=new n.x,this.isMobileResolution.pipe((0,a.R)(this._unsubscribeAll)).subscribe(ne=>{this._isMobile=ne,this.initMobileAdaptation()})}ngOnInit(){}initMobileAdaptation(){this.configObj=this._mobileAdapt&&this._isMobile?{icon:"more_vert",maxFavoriteCount:3}:null}getPersonNavigationAction(z){this.json||(this.json={directory:"employee",navigationId:z,navigationActionType:"multiple"}),this.refreshAndLoadList()}favoriteIconClickAction(z){this.onFavoriteActionClick.emit(z)}favoriteIconDoubleClickAction(z){}toggleShortcut(z,q){z.stopPropagation();const se={},ne={};if(this.favoriteJson={},this.entityFavoriteItems.length<this.maxFavoriteCount){const _e=this.entityFavoriteItems.findIndex(Ce=>Ce.id==q.id),ge=this.shortcutItems.findIndex(Ce=>Ce.id==q.id);_e>-1?(this.entityFavoriteItems.splice(_e,1),this.shortcutItems[ge].isFavorite=!1):(this.entityFavoriteItems.push(q),this.shortcutItems[ge].isFavorite=!0),se.optionPropertyId=this.optionPropertyId,se.optionValue=this.entityFavoriteItems.map(function(Ce){return Ce.id}).join(","),ne[this.primaryId]=se,this.favoriteJson[this.entity]=ne,this.favoriteJson=[this.favoriteJson]}else if(this.entityFavoriteItems.length>=this.maxFavoriteCount&&q.isFavorite){const _e=this.entityFavoriteItems.findIndex(Ce=>Ce.id==q.id),ge=this.shortcutItems.findIndex(Ce=>Ce.id==q.id);_e>-1&&(this.entityFavoriteItems.splice(_e,1),this.shortcutItems[ge].isFavorite=!1)}else se.optionPropertyId=this.optionPropertyId,se.optionValue=this.entityFavoriteItems.map(function(_e){return _e.id}).join(","),ne[this.primaryId]=se,this.favoriteJson[this.entity]=ne,this.favoriteJson=[this.favoriteJson],this.us.callSnackBar("removeOneOfTheFavoriteList","warning")}favoriteMenuClosed(z){Object.keys(this.favoriteJson).length>=1&&this.commonService.dynamicTsk(this.favoriteJson).pipe((0,a.R)(this._unsubscribeAll)).subscribe(q=>{if(q&&0==this.primaryId){const se=this.entity.charAt(0).toLowerCase()+this.entity.slice(1)+"Id";this.primaryId=q[se]}},()=>{const q=this;this.entityFavoriteItems.forEach(function(se){const ne=q.shortcutItems.findIndex(_e=>_e.id==se.id);-1!=ne&&(q.shortcutItems[ne].isFavorite=!se.isFavorite)}),this.entityFavoriteItems=[],this.favoriteJson={}})}refreshAndLoadList(){const z=!this._disableBlockUI;this.json.hasOwnProperty("entityDetaillevel")&&null!==this.json.entityDetaillevel&&""!==this.json.entityDetaillevel&&"levelone"!==this.json.entityDetaillevel.toLowerCase()&&(this.json.applicationId=this.eds.getCurrentEntityDetail()?this.eds.getCurrentEntityDetail().applicationId:0),this.commonService.personNavigationAction(this.json,z).pipe((0,a.R)(this._unsubscribeAll)).subscribe(q=>{if(q){if(this.entity=q.entity,this.primaryId=null==q.id?0:q.id,q.data){this.tempStoredData=[];const se=this;if(q.data.forEach(function(ne){se.optionPropertyId=ne.optionPropertyId,se.tempStoredData.push({title:ne.action,resource:ne.resource,icon:ne.icon,isFavorite:ne.isFavorite,isAnimate:ne.isAnimate,id:ne.navigationActionId,optionPropertyId:ne.optionPropertyId,navigationActionType:ne.navigationActionType})}),this.shortcutItems=this.tempStoredData,q.optionValue){this.actionId=q.optionValue.split(",").map(Number);const ne=this.actionId;this.entityFavoriteItems=this.shortcutItems.filter(function(_e){return ne.indexOf(_e.id)>-1})}}this.onFavActionAfterLoadList.emit()}else this.shortcutItems=[],this.entityFavoriteItems=[]})}popActions(z){const q=this;this.tempShortCutItems=[],this.tempFavoriteItem=[],z.forEach(function(se){if(q.entityFavoriteItems.length>0){const ne=q.entityFavoriteItems.findIndex(_e=>_e.title.charAt(0).toLowerCase()+_e.title.slice(1)==se.name);-1!=ne&&(q.tempFavoriteItem.push(q.entityFavoriteItems[ne]),q.entityFavoriteItems.splice(ne,1))}if(q.shortcutItems.length>0){const ne=q.shortcutItems.findIndex(_e=>_e.title.charAt(0).toLowerCase()+_e.title.slice(1)==se.name);-1!=ne&&(q.tempShortCutItems.push(q.shortcutItems[ne]),q.shortcutItems.splice(ne,1))}})}pushActions(z){const q=this;z.forEach(function(se){if(q.tempFavoriteItem.length>0){const ne=q.tempFavoriteItem.filter(_e=>_e.title.charAt(0).toLowerCase()+_e.title.slice(1)==se.name);ne.length>0&&q.entityFavoriteItems.push(ne[0])}if(q.tempShortCutItems.length>0){const ne=q.tempShortCutItems.filter(_e=>_e.title.charAt(0).toLowerCase()+_e.title.slice(1)==se.name);ne.length>0&&q.shortcutItems.push(ne[0])}})}animateFavoritePinIcons(z,q){const se=this;z.forEach(function(ne){if(se.entityFavoriteItems.length>0){const _e=se.entityFavoriteItems.filter(ge=>ge.title.toLowerCase()===ne.toLowerCase());_e.length>0&&(_e[0].isAnimate=q)}})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(q){return new(q||j)(e.Y36(l.v),e.Y36(u.t),e.Y36(d.a))};static#t=this.\u0275cmp=e.Xpm({type:j,selectors:[["zen-navigation-action"]],inputs:{disableBlockUI:"disableBlockUI",isLongNavigationName:"isLongNavigationName",matSolidIcon:"matSolidIcon",mobileAdapt:"mobileAdapt",val:["json","val"],configObj:["config","configObj"]},outputs:{onFavActionAfterLoadList:"onFavActionAfterLoadList",onFavoriteActionClick:"onFavoriteActionClick",onFavoriteActionDoubleClick:"onFavoriteActionDoubleClick"},features:[e.qOj],decls:8,vars:8,consts:[[1,"shortcuts"],["fxLayout","row","fxLayoutAlign","end center",1,"shortcuts-cover"],["fxLayout","row","fxLayoutAlign","center center","fxLayoutGap","16px",4,"ngIf"],["yPosition","below","fusePerfectScrollbar","",3,"overlapTrigger","closed"],["addMenu","matMenu"],[1,"shortcuts-down-wrao","py-0"],[3,"click","dblclick",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center","fxLayoutGap","16px"],["class","added-shortcut h-24","fxHide.lt-sm","",4,"ngFor","ngForOf"],["mat-icon-button","","matTooltip","Click to add/remove shortcut","class","pl-8 star-btn",3,"matMenuTriggerFor","matTooltipDisabled",4,"ngIf","ngIfElse"],["noIconTpl",""],["fxHide.lt-sm","",1,"added-shortcut","h-24"],["mat-icon-button","",3,"ngClass","matTooltip","click","dblclick"],[3,"svgIcon",4,"ngIf","ngIfElse"],["matIconTpl",""],["class","h2 secondary-text text-bold",4,"ngIf"],[3,"svgIcon"],[1,"h2","secondary-text","text-bold"],["mat-icon-button","","matTooltip","Click to add/remove shortcut",1,"pl-8","star-btn",3,"matMenuTriggerFor","matTooltipDisabled"],["mat-icon-button","",1,"pl-8","star-btn",3,"matMenuTriggerFor"],[1,"amber-600-fg"],[3,"click","dblclick"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100-p"],["fxLayout","row","fxLayoutAlign","start center"],["class","znac-custom-icon s-16",3,"svgIcon",4,"ngIf","ngIfElse"],["class"," h2 w-32 h-32 p-4 mr-8 secondary-text text-bold","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["matLine","","fxFlex","",1,"my-8","text-left","main-line-text",3,"matTooltip"],[4,"ngIf","ngIfElse"],["showIndividualIcon",""],[1,"znac-custom-icon","s-16",3,"svgIcon"],["mat-list-icon","","class","mr-8 secondary-text",4,"ngIf"],["mat-list-icon","",1,"mr-8","secondary-text"],["fxLayout","row","fxLayoutAlign","center center",1,"h2","w-32","h-32","p-4","mr-8","secondary-text","text-bold"],["fxHide.lt-sm","",1,"mt-4"],["class","ml-8 secondary-text zenauto-star-unpinned",3,"click",4,"ngIf"],["class","amber-600-fg zenauto-star-pinned",3,"click",4,"ngIf"],[1,"ml-8","secondary-text","zenauto-star-unpinned",3,"click"],[1,"amber-600-fg","zenauto-star-pinned",3,"click"],[1,"text-center","w-100-p","secondary-text"]],template:function(q,se){1&q&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,P,5,3,"div",2),e.qZA(),e.TgZ(3,"mat-menu",3,4),e.NdJ("closed",function(_e){return se.favoriteMenuClosed(_e)}),e.TgZ(5,"mat-nav-list",5),e.YNc(6,re,14,15,"mat-list-item",6),e.YNc(7,de,5,3,"mat-list-item",7),e.qZA()()()),2&q&&(e.xp6(2),e.Q6J("ngIf",se.shortcutItems),e.xp6(1),e.MT6("",se.isLongNavigationName?"w-280":"w-240"," ",se.matSolidIcon?"icons-overwrite":"",""),e.Q6J("overlapTrigger",!1),e.xp6(3),e.Q6J("ngForOf",se.shortcutItems),e.xp6(1),e.Q6J("ngIf",0==se.shortcutItems.length))},dependencies:[s.mk,s.sg,s.O5,A.xw,A.SQ,A.Wh,A.yH,_.b8,_.oO,C.i,R.Kd,x.Hw,f.U,f.oh,k.X2,f.ap,w.W0,w.D8,g.X$],styles:[".shortcuts,.shortcuts .shortcuts-cover{height:35px}.shortcuts .shortcuts-cover button{margin:0!important;background:none!important;border:none!important;padding:0!important}@media screen and (max-width: 599px){.shortcuts .shortcuts-cover button.star-btn{position:relative;top:-1px}}.shortcuts .shortcuts-cover button.star-btn:hover{cursor:pointer!important}.shortcuts .shortcuts-cover button.moveToPreviousStage mat-icon{transform:rotate(180deg)}.shortcuts .shortcuts-cover .added-shortcut button.animateIcon{animation-duration:2s;animation-iteration-count:infinite;animation-name:bounce-4;animation-timing-function:ease}.shortcuts .shortcuts-cover .added-shortcut button.animateIcon mat-icon{color:#039be5}.shortcuts .shortcuts-cover .added-shortcut button:hover{cursor:pointer!important}.shortcuts .ng-star-inserted button{color:#0000008a}.shortcuts-down-wrao{max-height:312px;overflow:auto}.shortcuts-down-wrao button{margin:0!important;background:none!important;padding:0!important;border:0!important}.shortcuts-down-wrao button mat-icon.znac-custom-icon{margin-left:6px;margin-right:10px}.shortcuts-down-wrao button mat-icon.znac-custom-icon svg{fill:#959595}.shortcuts-down-wrao button.moveToPreviousStage mat-icon{transform:rotate(180deg)}.shortcuts-down-wrao .mat-list-item{height:53px!important}.shortcuts-down-wrao .mat-list-item .mat-list-item-content{padding:0 12px 0 8px}.shortcuts-down-wrao .mat-list-item button:hover{cursor:pointer!important}.shortcuts-down-wrao .main-line-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:125px;font-family:Poppins}@-moz-document url-prefix(){.shortcuts-down-wrao .main-line-text{width:115px}}@keyframes bounce-4{0%{transform:scale(1) translateY(0)}10%{transform:scale(1.1,.9) translateY(0)}30%{transform:scale(.9,1.1) translateY(-10px)}50%{transform:scale(1) translateY(0)}to{transform:scale(1) translateY(0)}}\n"],encapsulation:2})}return j})()},47805:(he,y,i)=>{"use strict";i.d(y,{x:()=>x});var e=i(72605),n=i(45754),o=i(24678),a=i(30617),l=i(48247),u=i(78250),d=i(48424),s=i(81274),A=i(30481),_=i(20180),C=i(89515),R=i(65879);let x=(()=>{class f{static#e=this.\u0275fac=function(g){return new(g||f)};static#t=this.\u0275mod=R.oAB({type:f});static#n=this.\u0275inj=R.cJS({providers:[e.G],imports:[_.L,C.aw,n.Zh,o.Uc,d.uw,A.AA,a.Ps,l.gR,u.jT,s.g0]})}return f})()},72605:(he,y,i)=>{"use strict";i.d(y,{G:()=>a});var e=i(7110),n=i(65879),o=i(6738);let a=(()=>{class l{constructor(d){this.ws=d}personNavigationAction(d,s,A){return this.ws.get(e.XL.settings.apiUrl+"Person/PersonNavigationAction",{json:JSON.stringify({directory:d,navigationId:s,navigationActionType:A})},null,!1)}static#e=this.\u0275fac=function(s){return new(s||l)(n.LFG(o.f))};static#t=this.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac})}return l})()},32598:(he,y,i)=>{"use strict";i.d(y,{V:()=>n});var e=i(65879);let n=(()=>{class o{constructor(l){this.el=l,this.triggerEvent="click",this.preventClose=!1,this.triggerRef=l}ngOnInit(){const l=this;this.triggerRef.nativeElement.addEventListener(this.triggerEvent,u=>{l.popperRef&&l.popperRef.open(u.target)}),"mouseover"===this.triggerEvent&&this.triggerRef.nativeElement.addEventListener("mouseout",u=>{this.closePopper()}),this.triggerFor&&(this.popperRef=this.triggerFor,this.popperRef.triggerRef=this.triggerRef.nativeElement,"mouseover"===this.triggerEvent&&this.popperRef&&(this.popperRef.popperWrap.nativeElement.addEventListener("mouseover",u=>{this.preventClose=!0}),this.popperRef.popperWrap.nativeElement.addEventListener("mouseout",u=>{this.preventClose=!1,this.closePopper()})))}closePopper(){this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout(()=>{this.popperRef&&!this.preventClose&&this.popperRef.close()},1e3)}static#e=this.\u0275fac=function(u){return new(u||o)(e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:o,selectors:[["","zenPopperCtrlTriggerFor",""]],inputs:{triggerFor:["zenPopperCtrlTriggerFor","triggerFor"],triggerEvent:"triggerEvent"}})}return o})()},72350:(he,y,i)=>{"use strict";i.d(y,{Y:()=>jo});var e=i(65879),n=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",o=function(){for(var wn=["Edge","Trident","Firefox"],Zi=0;Zi<wn.length;Zi+=1)if(n&&navigator.userAgent.indexOf(wn[Zi])>=0)return 1;return 0}(),d=n&&window.Promise?function a(wn){var Zi=!1;return function(){Zi||(Zi=!0,window.Promise.resolve().then(function(){Zi=!1,wn()}))}}:function l(wn){var Zi=!1;return function(){Zi||(Zi=!0,setTimeout(function(){Zi=!1,wn()},o))}};
/**!
         * @fileOverview Kickass library to create and place poppers near their reference elements.
         * @version 1.16.1
         * @license
         * Copyright (c) 2016 Federico Zivolo and contributors
         *
         * Permission is hereby granted, free of charge, to any person obtaining a copy
         * of this software and associated documentation files (the "Software"), to deal
         * in the Software without restriction, including without limitation the rights
         * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         * copies of the Software, and to permit persons to whom the Software is
         * furnished to do so, subject to the following conditions:
         *
         * The above copyright notice and this permission notice shall be included in all
         * copies or substantial portions of the Software.
         *
         * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
         * SOFTWARE.
         */function s(wn){return wn&&"[object Function]"==={}.toString.call(wn)}function A(wn,Zi){if(1!==wn.nodeType)return[];var Bi=wn.ownerDocument.defaultView.getComputedStyle(wn,null);return Zi?Bi[Zi]:Bi}function _(wn){return"HTML"===wn.nodeName?wn:wn.parentNode||wn.host}function C(wn){if(!wn)return document.body;switch(wn.nodeName){case"HTML":case"BODY":return wn.ownerDocument.body;case"#document":return wn.body}var Zi=A(wn);return/(auto|scroll|overlay)/.test(Zi.overflow+Zi.overflowY+Zi.overflowX)?wn:C(_(wn))}function R(wn){return wn&&wn.referenceNode?wn.referenceNode:wn}var x=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function k(wn){return 11===wn?x:10===wn?f:x||f}function w(wn){if(!wn)return document.documentElement;for(var Zi=k(10)?document.body:null,oo=wn.offsetParent||null;oo===Zi&&wn.nextElementSibling;)oo=(wn=wn.nextElementSibling).offsetParent;var Bi=oo&&oo.nodeName;return Bi&&"BODY"!==Bi&&"HTML"!==Bi?-1!==["TH","TD","TABLE"].indexOf(oo.nodeName)&&"static"===A(oo,"position")?w(oo):oo:wn?wn.ownerDocument.documentElement:document.documentElement}function M(wn){return null!==wn.parentNode?M(wn.parentNode):wn}function p(wn,Zi){if(!(wn&&wn.nodeType&&Zi&&Zi.nodeType))return document.documentElement;var oo=wn.compareDocumentPosition(Zi)&Node.DOCUMENT_POSITION_FOLLOWING,Bi=oo?wn:Zi,Xo=oo?Zi:wn,Lo=document.createRange();Lo.setStart(Bi,0),Lo.setEnd(Xo,0);var or=Lo.commonAncestorContainer;if(wn!==or&&Zi!==or||Bi.contains(Xo))return function g(wn){var Zi=wn.nodeName;return"BODY"!==Zi&&("HTML"===Zi||w(wn.firstElementChild)===wn)}(or)?or:w(or);var xr=M(wn);return xr.host?p(xr.host,Zi):p(wn,M(Zi).host)}function E(wn){var oo="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",Bi=wn.nodeName;return"BODY"===Bi||"HTML"===Bi?(wn.ownerDocument.scrollingElement||wn.ownerDocument.documentElement)[oo]:wn[oo]}function I(wn,Zi){var oo="x"===Zi?"Left":"Top",Bi="Left"===oo?"Right":"Bottom";return parseFloat(wn["border"+oo+"Width"])+parseFloat(wn["border"+Bi+"Width"])}function L(wn,Zi,oo,Bi){return Math.max(Zi["offset"+wn],Zi["scroll"+wn],oo["client"+wn],oo["offset"+wn],oo["scroll"+wn],k(10)?parseInt(oo["offset"+wn])+parseInt(Bi["margin"+("Height"===wn?"Top":"Left")])+parseInt(Bi["margin"+("Height"===wn?"Bottom":"Right")]):0)}function D(wn){var Zi=wn.body,oo=wn.documentElement,Bi=k(10)&&getComputedStyle(oo);return{height:L("Height",Zi,oo,Bi),width:L("Width",Zi,oo,Bi)}}var P=function(){function wn(Zi,oo){for(var Bi=0;Bi<oo.length;Bi++){var Xo=oo[Bi];Xo.enumerable=Xo.enumerable||!1,Xo.configurable=!0,"value"in Xo&&(Xo.writable=!0),Object.defineProperty(Zi,Xo.key,Xo)}}return function(Zi,oo,Bi){return oo&&wn(Zi.prototype,oo),Bi&&wn(Zi,Bi),Zi}}(),O=function(wn,Zi,oo){return Zi in wn?Object.defineProperty(wn,Zi,{value:oo,enumerable:!0,configurable:!0,writable:!0}):wn[Zi]=oo,wn},U=Object.assign||function(wn){for(var Zi=1;Zi<arguments.length;Zi++){var oo=arguments[Zi];for(var Bi in oo)Object.prototype.hasOwnProperty.call(oo,Bi)&&(wn[Bi]=oo[Bi])}return wn};function V(wn){return U({},wn,{right:wn.left+wn.width,bottom:wn.top+wn.height})}function K(wn){var Zi={};try{if(k(10)){Zi=wn.getBoundingClientRect();var oo=E(wn,"top"),Bi=E(wn,"left");Zi.top+=oo,Zi.left+=Bi,Zi.bottom+=oo,Zi.right+=Bi}else Zi=wn.getBoundingClientRect()}catch{}var Xo={left:Zi.left,top:Zi.top,width:Zi.right-Zi.left,height:Zi.bottom-Zi.top},Lo="HTML"===wn.nodeName?D(wn.ownerDocument):{},Nr=wn.offsetWidth-(Lo.width||wn.clientWidth||Xo.width),as=wn.offsetHeight-(Lo.height||wn.clientHeight||Xo.height);if(Nr||as){var ji=A(wn);Nr-=I(ji,"x"),as-=I(ji,"y"),Xo.width-=Nr,Xo.height-=as}return V(Xo)}function X(wn,Zi){var oo=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Bi=k(10),Xo="HTML"===Zi.nodeName,Lo=K(wn),or=K(Zi),xr=C(wn),Nr=A(Zi),as=parseFloat(Nr.borderTopWidth),ji=parseFloat(Nr.borderLeftWidth);oo&&Xo&&(or.top=Math.max(or.top,0),or.left=Math.max(or.left,0));var Fo=V({top:Lo.top-or.top-as,left:Lo.left-or.left-ji,width:Lo.width,height:Lo.height});if(Fo.marginTop=0,Fo.marginLeft=0,!Bi&&Xo){var rt=parseFloat(Nr.marginTop),ai=parseFloat(Nr.marginLeft);Fo.top-=as-rt,Fo.bottom-=as-rt,Fo.left-=ji-ai,Fo.right-=ji-ai,Fo.marginTop=rt,Fo.marginLeft=ai}return(Bi&&!oo?Zi.contains(xr):Zi===xr&&"BODY"!==xr.nodeName)&&(Fo=function b(wn,Zi){var oo=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Bi=E(Zi,"top"),Xo=E(Zi,"left"),Lo=oo?-1:1;return wn.top+=Bi*Lo,wn.bottom+=Bi*Lo,wn.left+=Xo*Lo,wn.right+=Xo*Lo,wn}(Fo,Zi)),Fo}function J(wn){var Zi=wn.nodeName;if("BODY"===Zi||"HTML"===Zi)return!1;if("fixed"===A(wn,"position"))return!0;var oo=_(wn);return!!oo&&J(oo)}function Q(wn){if(!wn||!wn.parentElement||k())return document.documentElement;for(var Zi=wn.parentElement;Zi&&"none"===A(Zi,"transform");)Zi=Zi.parentElement;return Zi||document.documentElement}function re(wn,Zi,oo,Bi){var Xo=arguments.length>4&&void 0!==arguments[4]&&arguments[4],Lo={top:0,left:0},or=Xo?Q(wn):p(wn,R(Zi));if("viewport"===Bi)Lo=function me(wn){var Zi=arguments.length>1&&void 0!==arguments[1]&&arguments[1],oo=wn.ownerDocument.documentElement,Bi=X(wn,oo),Xo=Math.max(oo.clientWidth,window.innerWidth||0),Lo=Math.max(oo.clientHeight,window.innerHeight||0),or=Zi?0:E(oo),xr=Zi?0:E(oo,"left");return V({top:or-Bi.top+Bi.marginTop,left:xr-Bi.left+Bi.marginLeft,width:Xo,height:Lo})}(or,Xo);else{var xr=void 0;"scrollParent"===Bi?"BODY"===(xr=C(_(Zi))).nodeName&&(xr=wn.ownerDocument.documentElement):xr="window"===Bi?wn.ownerDocument.documentElement:Bi;var Nr=X(xr,or,Xo);if("HTML"!==xr.nodeName||J(or))Lo=Nr;else{var as=D(wn.ownerDocument),ji=as.height,Fo=as.width;Lo.top+=Nr.top-Nr.marginTop,Lo.bottom=ji+Nr.top,Lo.left+=Nr.left-Nr.marginLeft,Lo.right=Fo+Nr.left}}var rt="number"==typeof(oo=oo||0);return Lo.left+=rt?oo:oo.left||0,Lo.top+=rt?oo:oo.top||0,Lo.right-=rt?oo:oo.right||0,Lo.bottom-=rt?oo:oo.bottom||0,Lo}function de(wn){return wn.width*wn.height}function te(wn,Zi,oo,Bi,Xo){var Lo=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===wn.indexOf("auto"))return wn;var or=re(oo,Bi,Lo,Xo),xr={top:{width:or.width,height:Zi.top-or.top},right:{width:or.right-Zi.right,height:or.height},bottom:{width:or.width,height:or.bottom-Zi.bottom},left:{width:Zi.left-or.left,height:or.height}},Nr=Object.keys(xr).map(function(rt){return U({key:rt},xr[rt],{area:de(xr[rt])})}).sort(function(rt,ai){return ai.area-rt.area}),as=Nr.filter(function(rt){return rt.width>=oo.clientWidth&&rt.height>=oo.clientHeight}),ji=as.length>0?as[0].key:Nr[0].key,Fo=wn.split("-")[1];return ji+(Fo?"-"+Fo:"")}function j(wn,Zi,oo){var Bi=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return X(oo,Bi?Q(Zi):p(Zi,R(oo)),Bi)}function H(wn){var oo=wn.ownerDocument.defaultView.getComputedStyle(wn),Bi=parseFloat(oo.marginTop||0)+parseFloat(oo.marginBottom||0),Xo=parseFloat(oo.marginLeft||0)+parseFloat(oo.marginRight||0);return{width:wn.offsetWidth+Xo,height:wn.offsetHeight+Bi}}function z(wn){var Zi={left:"right",right:"left",bottom:"top",top:"bottom"};return wn.replace(/left|right|bottom|top/g,function(oo){return Zi[oo]})}function q(wn,Zi,oo){oo=oo.split("-")[0];var Bi=H(wn),Xo={width:Bi.width,height:Bi.height},Lo=-1!==["right","left"].indexOf(oo),or=Lo?"top":"left",xr=Lo?"left":"top",Nr=Lo?"height":"width",as=Lo?"width":"height";return Xo[or]=Zi[or]+Zi[Nr]/2-Bi[Nr]/2,Xo[xr]=oo===xr?Zi[xr]-Bi[as]:Zi[z(xr)],Xo}function se(wn,Zi){return Array.prototype.find?wn.find(Zi):wn.filter(Zi)[0]}function _e(wn,Zi,oo){var Bi=void 0===oo?wn:wn.slice(0,function ne(wn,Zi,oo){if(Array.prototype.findIndex)return wn.findIndex(function(Xo){return Xo[Zi]===oo});var Bi=se(wn,function(Xo){return Xo[Zi]===oo});return wn.indexOf(Bi)}(wn,"name",oo));return Bi.forEach(function(Xo){Xo.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var Lo=Xo.function||Xo.fn;Xo.enabled&&s(Lo)&&(Zi.offsets.popper=V(Zi.offsets.popper),Zi.offsets.reference=V(Zi.offsets.reference),Zi=Lo(Zi,Xo))}),Zi}function ge(){if(!this.state.isDestroyed){var wn={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};wn.offsets.reference=j(this.state,this.popper,this.reference,this.options.positionFixed),wn.placement=te(this.options.placement,wn.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),wn.originalPlacement=wn.placement,wn.positionFixed=this.options.positionFixed,wn.offsets.popper=q(this.popper,wn.offsets.reference,wn.placement),wn.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",wn=_e(this.modifiers,wn),this.state.isCreated?this.options.onUpdate(wn):(this.state.isCreated=!0,this.options.onCreate(wn))}}function Ce(wn,Zi){return wn.some(function(oo){return oo.enabled&&oo.name===Zi})}function Te(wn){for(var Zi=[!1,"ms","Webkit","Moz","O"],oo=wn.charAt(0).toUpperCase()+wn.slice(1),Bi=0;Bi<Zi.length;Bi++){var Xo=Zi[Bi],Lo=Xo?""+Xo+oo:wn;if(typeof document.body.style[Lo]<"u")return Lo}return null}function De(){return this.state.isDestroyed=!0,Ce(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Te("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function fe(wn){var Zi=wn.ownerDocument;return Zi?Zi.defaultView:window}function xe(wn,Zi,oo,Bi){var Xo="BODY"===wn.nodeName,Lo=Xo?wn.ownerDocument.defaultView:wn;Lo.addEventListener(Zi,oo,{passive:!0}),Xo||xe(C(Lo.parentNode),Zi,oo,Bi),Bi.push(Lo)}function Oe(wn,Zi,oo,Bi){oo.updateBound=Bi,fe(wn).addEventListener("resize",oo.updateBound,{passive:!0});var Xo=C(wn);return xe(Xo,"scroll",oo.updateBound,oo.scrollParents),oo.scrollElement=Xo,oo.eventsEnabled=!0,oo}function Le(){this.state.eventsEnabled||(this.state=Oe(this.reference,0,this.state,this.scheduleUpdate))}function Ut(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function Gt(wn,Zi){return fe(wn).removeEventListener("resize",Zi.updateBound),Zi.scrollParents.forEach(function(oo){oo.removeEventListener("scroll",Zi.updateBound)}),Zi.updateBound=null,Zi.scrollParents=[],Zi.scrollElement=null,Zi.eventsEnabled=!1,Zi}(this.reference,this.state))}function An(wn){return""!==wn&&!isNaN(parseFloat(wn))&&isFinite(wn)}function $n(wn,Zi){Object.keys(Zi).forEach(function(oo){var Bi="";-1!==["width","height","top","right","bottom","left"].indexOf(oo)&&An(Zi[oo])&&(Bi="px"),wn.style[oo]=Zi[oo]+Bi})}var dn=n&&/Firefox/i.test(navigator.userAgent);function fn(wn,Zi,oo){var Bi=se(wn,function(xr){return xr.name===Zi}),Xo=!!Bi&&wn.some(function(xr){return xr.name===oo&&xr.enabled&&xr.order<Bi.order});if(!Xo){var Lo="`"+Zi+"`";console.warn("`"+oo+"` modifier is required by "+Lo+" modifier in order to work, be sure to include it before "+Lo+"!")}return Xo}var Mi=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],mi=Mi.slice(3);function Eo(wn){var Zi=arguments.length>1&&void 0!==arguments[1]&&arguments[1],oo=mi.indexOf(wn),Bi=mi.slice(oo+1).concat(mi.slice(0,oo));return Zi?Bi.reverse():Bi}var Bt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function Ki(wn){var Zi=wn.placement,oo=Zi.split("-")[0],Bi=Zi.split("-")[1];if(Bi){var Xo=wn.offsets,Lo=Xo.reference,or=Xo.popper,xr=-1!==["bottom","top"].indexOf(oo),Nr=xr?"left":"top",as=xr?"width":"height",ji={start:O({},Nr,Lo[Nr]),end:O({},Nr,Lo[Nr]+Lo[as]-or[as])};wn.offsets.popper=U({},or,ji[Bi])}return wn}},offset:{order:200,enabled:!0,fn:function En(wn,Zi){var Nr,oo=Zi.offset,Xo=wn.offsets,Lo=Xo.popper,or=Xo.reference,xr=wn.placement.split("-")[0];return Nr=An(+oo)?[+oo,0]:function Ji(wn,Zi,oo,Bi){var Xo=[0,0],Lo=-1!==["right","left"].indexOf(Bi),or=wn.split(/(\+|\-)/).map(function(ji){return ji.trim()}),xr=or.indexOf(se(or,function(ji){return-1!==ji.search(/,|\s/)}));or[xr]&&-1===or[xr].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var Nr=/\s*,\s*|\s+/,as=-1!==xr?[or.slice(0,xr).concat([or[xr].split(Nr)[0]]),[or[xr].split(Nr)[1]].concat(or.slice(xr+1))]:[or];return as=as.map(function(ji,Fo){var rt=(1===Fo?!Lo:Lo)?"height":"width",ai=!1;return ji.reduce(function(Gn,Io){return""===Gn[Gn.length-1]&&-1!==["+","-"].indexOf(Io)?(Gn[Gn.length-1]=Io,ai=!0,Gn):ai?(Gn[Gn.length-1]+=Io,ai=!1,Gn):Gn.concat(Io)},[]).map(function(Gn){return function Xt(wn,Zi,oo,Bi){var Xo=wn.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),Lo=+Xo[1],or=Xo[2];return Lo?0===or.indexOf("%")?V("%p"===or?oo:Bi)[Zi]/100*Lo:"vh"===or||"vw"===or?("vh"===or?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*Lo:Lo:wn}(Gn,rt,Zi,oo)})}),as.forEach(function(ji,Fo){ji.forEach(function(rt,ai){An(rt)&&(Xo[Fo]+=rt*("-"===ji[ai-1]?-1:1))})}),Xo}(oo,Lo,or,xr),"left"===xr?(Lo.top+=Nr[0],Lo.left-=Nr[1]):"right"===xr?(Lo.top+=Nr[0],Lo.left+=Nr[1]):"top"===xr?(Lo.left+=Nr[0],Lo.top-=Nr[1]):"bottom"===xr&&(Lo.left+=Nr[0],Lo.top+=Nr[1]),wn.popper=Lo,wn},offset:0},preventOverflow:{order:300,enabled:!0,fn:function un(wn,Zi){var oo=Zi.boundariesElement||w(wn.instance.popper);wn.instance.reference===oo&&(oo=w(oo));var Bi=Te("transform"),Xo=wn.instance.popper.style,Lo=Xo.top,or=Xo.left,xr=Xo[Bi];Xo.top="",Xo.left="",Xo[Bi]="";var Nr=re(wn.instance.popper,wn.instance.reference,Zi.padding,oo,wn.positionFixed);Xo.top=Lo,Xo.left=or,Xo[Bi]=xr,Zi.boundaries=Nr;var ji=wn.offsets.popper,Fo={primary:function(ai){var Gn=ji[ai];return ji[ai]<Nr[ai]&&!Zi.escapeWithReference&&(Gn=Math.max(ji[ai],Nr[ai])),O({},ai,Gn)},secondary:function(ai){var Gn="right"===ai?"left":"top",Io=ji[Gn];return ji[ai]>Nr[ai]&&!Zi.escapeWithReference&&(Io=Math.min(ji[Gn],Nr[ai]-("right"===ai?ji.width:ji.height))),O({},Gn,Io)}};return Zi.priority.forEach(function(rt){var ai=-1!==["left","top"].indexOf(rt)?"primary":"secondary";ji=U({},ji,Fo[ai](rt))}),wn.offsets.popper=ji,wn},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function Bn(wn){var Zi=wn.offsets,oo=Zi.popper,Bi=Zi.reference,Xo=wn.placement.split("-")[0],Lo=Math.floor,or=-1!==["top","bottom"].indexOf(Xo),xr=or?"right":"bottom",Nr=or?"left":"top",as=or?"width":"height";return oo[xr]<Lo(Bi[Nr])&&(wn.offsets.popper[Nr]=Lo(Bi[Nr])-oo[as]),oo[Nr]>Lo(Bi[xr])&&(wn.offsets.popper[Nr]=Lo(Bi[xr])),wn}},arrow:{order:500,enabled:!0,fn:function yi(wn,Zi){var oo;if(!fn(wn.instance.modifiers,"arrow","keepTogether"))return wn;var Bi=Zi.element;if("string"==typeof Bi){if(!(Bi=wn.instance.popper.querySelector(Bi)))return wn}else if(!wn.instance.popper.contains(Bi))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),wn;var Xo=wn.placement.split("-")[0],Lo=wn.offsets,or=Lo.popper,xr=Lo.reference,Nr=-1!==["left","right"].indexOf(Xo),as=Nr?"height":"width",ji=Nr?"Top":"Left",Fo=ji.toLowerCase(),rt=Nr?"left":"top",ai=Nr?"bottom":"right",Gn=H(Bi)[as];xr[ai]-Gn<or[Fo]&&(wn.offsets.popper[Fo]-=or[Fo]-(xr[ai]-Gn)),xr[Fo]+Gn>or[ai]&&(wn.offsets.popper[Fo]+=xr[Fo]+Gn-or[ai]),wn.offsets.popper=V(wn.offsets.popper);var Io=xr[Fo]+xr[as]/2-Gn/2,wr=A(wn.instance.popper),bs=parseFloat(wr["margin"+ji]),ba=parseFloat(wr["border"+ji+"Width"]),ms=Io-wn.offsets.popper[Fo]-bs-ba;return ms=Math.max(Math.min(or[as]-Gn,ms),0),wn.arrowElement=Bi,wn.offsets.arrow=(O(oo={},Fo,Math.round(ms)),O(oo,rt,""),oo),wn},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function xo(wn,Zi){if(Ce(wn.instance.modifiers,"inner")||wn.flipped&&wn.placement===wn.originalPlacement)return wn;var oo=re(wn.instance.popper,wn.instance.reference,Zi.padding,Zi.boundariesElement,wn.positionFixed),Bi=wn.placement.split("-")[0],Xo=z(Bi),Lo=wn.placement.split("-")[1]||"",or=[];switch(Zi.behavior){case"flip":or=[Bi,Xo];break;case"clockwise":or=Eo(Bi);break;case"counterclockwise":or=Eo(Bi,!0);break;default:or=Zi.behavior}return or.forEach(function(xr,Nr){if(Bi!==xr||or.length===Nr+1)return wn;Bi=wn.placement.split("-")[0],Xo=z(Bi);var as=wn.offsets.popper,ji=wn.offsets.reference,Fo=Math.floor,rt="left"===Bi&&Fo(as.right)>Fo(ji.left)||"right"===Bi&&Fo(as.left)<Fo(ji.right)||"top"===Bi&&Fo(as.bottom)>Fo(ji.top)||"bottom"===Bi&&Fo(as.top)<Fo(ji.bottom),ai=Fo(as.left)<Fo(oo.left),Gn=Fo(as.right)>Fo(oo.right),Io=Fo(as.top)<Fo(oo.top),wr=Fo(as.bottom)>Fo(oo.bottom),bs="left"===Bi&&ai||"right"===Bi&&Gn||"top"===Bi&&Io||"bottom"===Bi&&wr,ba=-1!==["top","bottom"].indexOf(Bi),Ea=!!Zi.flipVariations&&(ba&&"start"===Lo&&ai||ba&&"end"===Lo&&Gn||!ba&&"start"===Lo&&Io||!ba&&"end"===Lo&&wr)||!!Zi.flipVariationsByContent&&(ba&&"start"===Lo&&Gn||ba&&"end"===Lo&&ai||!ba&&"start"===Lo&&wr||!ba&&"end"===Lo&&Io);(rt||bs||Ea)&&(wn.flipped=!0,(rt||bs)&&(Bi=or[Nr+1]),Ea&&(Lo=function nn(wn){return"end"===wn?"start":"start"===wn?"end":wn}(Lo)),wn.placement=Bi+(Lo?"-"+Lo:""),wn.offsets.popper=U({},wn.offsets.popper,q(wn.instance.popper,wn.offsets.reference,wn.placement)),wn=_e(wn.instance.modifiers,wn,"flip"))}),wn},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function oi(wn){var Zi=wn.placement,oo=Zi.split("-")[0],Bi=wn.offsets,Xo=Bi.popper,Lo=Bi.reference,or=-1!==["left","right"].indexOf(oo),xr=-1===["top","left"].indexOf(oo);return Xo[or?"left":"top"]=Lo[oo]-(xr?Xo[or?"width":"height"]:0),wn.placement=z(Zi),wn.offsets.popper=V(Xo),wn}},hide:{order:800,enabled:!0,fn:function Fn(wn){if(!fn(wn.instance.modifiers,"hide","preventOverflow"))return wn;var Zi=wn.offsets.reference,oo=se(wn.instance.modifiers,function(Bi){return"preventOverflow"===Bi.name}).boundaries;if(Zi.bottom<oo.top||Zi.left>oo.right||Zi.top>oo.bottom||Zi.right<oo.left){if(!0===wn.hide)return wn;wn.hide=!0,wn.attributes["x-out-of-boundaries"]=""}else{if(!1===wn.hide)return wn;wn.hide=!1,wn.attributes["x-out-of-boundaries"]=!1}return wn}},computeStyle:{order:850,enabled:!0,fn:function sn(wn,Zi){var oo=Zi.x,Bi=Zi.y,Xo=wn.offsets.popper,Lo=se(wn.instance.modifiers,function(ms){return"applyStyle"===ms.name}).gpuAcceleration;void 0!==Lo&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var Gn,Io,or=void 0!==Lo?Lo:Zi.gpuAcceleration,xr=w(wn.instance.popper),Nr=K(xr),as={position:Xo.position},ji=function Wt(wn,Zi){var oo=wn.offsets,Bi=oo.popper,Lo=Math.round,or=Math.floor,xr=function(bs){return bs},Nr=Lo(oo.reference.width),as=Lo(Bi.width),ji=-1!==["left","right"].indexOf(wn.placement),Fo=-1!==wn.placement.indexOf("-"),Gn=Zi?ji||Fo||Nr%2==as%2?Lo:or:xr,Io=Zi?Lo:xr;return{left:Gn(Nr%2==1&&as%2==1&&!Fo&&Zi?Bi.left-1:Bi.left),top:Io(Bi.top),bottom:Io(Bi.bottom),right:Gn(Bi.right)}}(wn,window.devicePixelRatio<2||!dn),Fo="bottom"===oo?"top":"bottom",rt="right"===Bi?"left":"right",ai=Te("transform");if(Io="bottom"===Fo?"HTML"===xr.nodeName?-xr.clientHeight+ji.bottom:-Nr.height+ji.bottom:ji.top,Gn="right"===rt?"HTML"===xr.nodeName?-xr.clientWidth+ji.right:-Nr.width+ji.right:ji.left,or&&ai)as[ai]="translate3d("+Gn+"px, "+Io+"px, 0)",as[Fo]=0,as[rt]=0,as.willChange="transform";else{var bs="right"===rt?-1:1;as[Fo]=Io*("bottom"===Fo?-1:1),as[rt]=Gn*bs,as.willChange=Fo+", "+rt}return wn.attributes=U({},{"x-placement":wn.placement},wn.attributes),wn.styles=U({},as,wn.styles),wn.arrowStyles=U({},wn.offsets.arrow,wn.arrowStyles),wn},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function mt(wn){return $n(wn.instance.popper,wn.styles),function xn(wn,Zi){Object.keys(Zi).forEach(function(oo){!1!==Zi[oo]?wn.setAttribute(oo,Zi[oo]):wn.removeAttribute(oo)})}(wn.instance.popper,wn.attributes),wn.arrowElement&&Object.keys(wn.arrowStyles).length&&$n(wn.arrowElement,wn.arrowStyles),wn},onLoad:function ut(wn,Zi,oo,Bi,Xo){var Lo=j(Xo,Zi,wn,oo.positionFixed),or=te(oo.placement,Lo,Zi,wn,oo.modifiers.flip.boundariesElement,oo.modifiers.flip.padding);return Zi.setAttribute("x-placement",or),$n(Zi,{position:oo.positionFixed?"fixed":"absolute"}),oo},gpuAcceleration:void 0}}},xt=function(){function wn(Zi,oo){var Bi=this,Xo=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(function(wn,Zi){if(!(wn instanceof Zi))throw new TypeError("Cannot call a class as a function")})(this,wn),this.scheduleUpdate=function(){return requestAnimationFrame(Bi.update)},this.update=d(this.update.bind(this)),this.options=U({},wn.Defaults,Xo),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=Zi&&Zi.jquery?Zi[0]:Zi,this.popper=oo&&oo.jquery?oo[0]:oo,this.options.modifiers={},Object.keys(U({},wn.Defaults.modifiers,Xo.modifiers)).forEach(function(or){Bi.options.modifiers[or]=U({},wn.Defaults.modifiers[or]||{},Xo.modifiers?Xo.modifiers[or]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(or){return U({name:or},Bi.options.modifiers[or])}).sort(function(or,xr){return or.order-xr.order}),this.modifiers.forEach(function(or){or.enabled&&s(or.onLoad)&&or.onLoad(Bi.reference,Bi.popper,Bi.options,or,Bi.state)}),this.update();var Lo=this.options.eventsEnabled;Lo&&this.enableEventListeners(),this.state.eventsEnabled=Lo}return P(wn,[{key:"update",value:function(){return ge.call(this)}},{key:"destroy",value:function(){return De.call(this)}},{key:"enableEventListeners",value:function(){return Le.call(this)}},{key:"disableEventListeners",value:function(){return Ut.call(this)}}]),wn}();xt.Utils=(typeof window<"u"?window:global).PopperUtils,xt.placements=Mi,xt.Defaults=Bt;const wt=xt;var Mt=i(96814),pt=i(94505),Lt=i(30617),tt=i(89515);const Ne=["popperWrapper"];function vt(wn,Zi){1&wn&&e.Hsn(0)}function ln(wn,Zi){1&wn&&e.GkF(0)}function jn(wn,Zi){if(1&wn&&(e.ynx(0),e.YNc(1,ln,1,0,"ng-container",14),e.BQk()),2&wn){const oo=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",oo.template)}}function Pi(wn,Zi){if(1&wn&&(e.ynx(0),e.YNc(1,jn,2,1,"ng-container",6),e.BQk()),2&wn){const oo=Zi.$implicit;e.xp6(1),e.Q6J("ngIf","header"===oo.position)}}function go(wn,Zi){if(1&wn){const oo=e.EpF();e.TgZ(0,"button",16),e.NdJ("click",function(){e.CHM(oo);const Xo=e.oxw(2);return e.KtG(Xo.close())}),e.TgZ(1,"mat-icon"),e._uU(2,"close"),e.qZA()()}}function si(wn,Zi){1&wn&&e.GkF(0)}function ot(wn,Zi){1&wn&&e.GkF(0)}function pn(wn,Zi){if(1&wn&&(e.ynx(0),e.YNc(1,ot,1,0,"ng-container",14),e.BQk()),2&wn){const oo=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",oo.template)}}function _i(wn,Zi){if(1&wn&&(e.ynx(0),e.YNc(1,pn,2,1,"ng-container",6),e.BQk()),2&wn){const oo=Zi.$implicit;e.xp6(1),e.Q6J("ngIf","footer"===oo.position)}}function wi(wn,Zi){if(1&wn){const oo=e.EpF();e.TgZ(0,"div",17)(1,"div",18),e.YNc(2,_i,2,1,"ng-container",11),e._UZ(3,"span",10),e.TgZ(4,"button",19),e.NdJ("click",function(){e.CHM(oo);const Xo=e.oxw(2);return e.KtG(Xo.onAction.emit(Xo.actionLabel))}),e._uU(5),e.ALo(6,"translate"),e.qZA()()()}if(2&wn){const oo=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",oo.extraActions),e.xp6(2),e.Q6J("disabled",oo.disableAction),e.xp6(1),e.Oqu(e.lcZ(6,3,oo.actionLabel))}}function hi(wn,Zi){if(1&wn&&(e.TgZ(0,"div",7)(1,"div",8)(2,"span",9),e._uU(3),e.ALo(4,"translate"),e.qZA(),e._UZ(5,"span",10),e.YNc(6,Pi,2,1,"ng-container",11),e.YNc(7,go,3,0,"button",12),e.qZA(),e.TgZ(8,"div",13),e.YNc(9,si,1,0,"ng-container",14),e.qZA(),e.YNc(10,wi,7,5,"div",15),e.qZA()),2&wn){const oo=e.oxw(),Bi=e.MAs(4);e.xp6(3),e.Oqu(e.lcZ(4,5,oo.title)),e.xp6(3),e.Q6J("ngForOf",oo.extraActions),e.xp6(1),e.Q6J("ngIf",oo.hideClosePopperAction),e.xp6(2),e.Q6J("ngTemplateOutlet",Bi),e.xp6(1),e.Q6J("ngIf",!oo.hideActions)}}function zn(wn,Zi){1&wn&&e.GkF(0)}function Ei(wn,Zi){if(1&wn){const oo=e.EpF();e.TgZ(0,"span",18),e.YNc(1,zn,1,0,"ng-container",14),e._UZ(2,"span",10),e.TgZ(3,"button",16),e.NdJ("click",function(){e.CHM(oo);const Xo=e.oxw();return e.KtG(Xo.close())}),e.TgZ(4,"mat-icon"),e._uU(5,"close"),e.qZA()()()}if(2&wn){e.oxw();const oo=e.MAs(4);e.xp6(1),e.Q6J("ngTemplateOutlet",oo)}}function li(wn,Zi){1&wn&&e.GkF(0)}function Xi(wn,Zi){if(1&wn&&(e.ynx(0),e.YNc(1,li,1,0,"ng-container",14),e.BQk()),2&wn){e.oxw();const oo=e.MAs(4);e.xp6(1),e.Q6J("ngTemplateOutlet",oo)}}const ki=function(wn){return{opened:wn}},bo=["*"];let jo=(()=>{class wn{constructor(){this.type="model",this.title="",this.hideActions=!1,this.hideClosePopperAction=!1,this.actionLabel="save",this.disableAction=!1,this.backDrop=!1,this.extraActions=[],this.opened=new e.vpe,this.onAction=new e.vpe,this._opened=!1}ngOnInit(){}open(oo){const Bi=this.initPopper(oo||this.triggerRef,this.popperWrap.nativeElement);this.closeFn=()=>{this._opened=!1,Bi.destroy(),this.opened.emit(this._opened)};const Xo=this.popperWrap.nativeElement.querySelector(".popper__close");Xo&&Xo.addEventListener("click",()=>this.closeFn()),this.backDrop&&(this.backDropEl=document.querySelector(":not(zen-popper-ctrl)"),this.backDropEl&&this.backDropEl.addEventListener("click",()=>this.closeFn())),this._opened=!0,Bi.scheduleUpdate(),Bi.scheduleUpdate(),this.opened.emit(this._opened)}close(){this.closeFn&&this.closeFn()}initPopper(oo,Bi){return new wt(oo,Bi,{placement:null!=this.placement&&""!=this.placement?this.placement:"bottom",modifiers:{arrow:{enabled:!0},flip:{behavior:["left","bottom","top","right"]},computeStyle:{gpuAcceleration:!1}}})}static#e=this.\u0275fac=function(Bi){return new(Bi||wn)};static#t=this.\u0275cmp=e.Xpm({type:wn,selectors:[["zen-popper-ctrl"]],viewQuery:function(Bi,Xo){if(1&Bi&&e.Gf(Ne,7),2&Bi){let Lo;e.iGM(Lo=e.CRH())&&(Xo.popperWrap=Lo.first)}},inputs:{type:"type",title:"title",hideActions:"hideActions",hideClosePopperAction:"hideClosePopperAction",actionLabel:"actionLabel",disableAction:"disableAction",backDrop:"backDrop",placement:"placement",extraActions:"extraActions"},outputs:{opened:"opened",onAction:"onAction"},ngContentSelectors:bo,decls:8,vars:6,consts:[["id","popper__base",1,"popper",3,"ngClass"],["popperWrapper",""],[1,"popper__arrow"],["content",""],["class","popper-content-wrapper",4,"ngIf"],["class","flex-row",4,"ngIf"],[4,"ngIf"],[1,"popper-content-wrapper"],[1,"popper-header","flex-row"],[1,"popper-title"],[1,"flex-spacer"],[4,"ngFor","ngForOf"],["class","btn-close","mat-icon-button","",3,"click",4,"ngIf"],["mat-dialog-content","","fusePerfectScrollbar","",1,"popper-content"],[4,"ngTemplateOutlet"],["class","popper-actions-wrapper","fxLayout","row","fxLayoutAlign","end center",4,"ngIf"],["mat-icon-button","",1,"btn-close",3,"click"],["fxLayout","row","fxLayoutAlign","end center",1,"popper-actions-wrapper"],[1,"flex-row"],["mat-raised-button","",1,"save-button","mat-accent",3,"disabled","click"]],template:function(Bi,Xo){1&Bi&&(e.F$t(),e.TgZ(0,"div",0,1),e._UZ(2,"span",2),e.YNc(3,vt,1,0,"ng-template",null,3,e.W1O),e.YNc(5,hi,11,7,"div",4),e.YNc(6,Ei,6,1,"span",5),e.YNc(7,Xi,2,1,"ng-container",6),e.qZA()),2&Bi&&(e.Q6J("ngClass",e.VKq(4,ki,Xo._opened)),e.xp6(5),e.Q6J("ngIf","model"===Xo.type),e.xp6(1),e.Q6J("ngIf","tooltip"===Xo.type),e.xp6(1),e.Q6J("ngIf","blank"===Xo.type))},dependencies:[Mt.mk,Mt.sg,Mt.O5,Mt.tP,pt.eB,Lt.Hw,tt.X$],styles:["#popper__base[_ngcontent-%COMP%]{display:none}#popper__base.opened[_ngcontent-%COMP%]{display:inherit;z-index:99999!important}.flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.flex-row[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:not(:first-child){padding-left:8px!important}.flex-spacer[_ngcontent-%COMP%]{flex:1 1 auto}.popper[_ngcontent-%COMP%]   .popper-content-wrapper[_ngcontent-%COMP%]{min-width:350px}.popper[_ngcontent-%COMP%]   .popper-content-wrapper[_ngcontent-%COMP%]   .popper-header[_ngcontent-%COMP%]{margin:0;padding:12px}.popper[_ngcontent-%COMP%]   .popper-content-wrapper[_ngcontent-%COMP%]   .popper-header[_ngcontent-%COMP%]   .btn-close[_ngcontent-%COMP%]:hover{color:#f44336}.popper[_ngcontent-%COMP%]   .popper-content-wrapper[_ngcontent-%COMP%]   .popper-header[_ngcontent-%COMP%]   .popper-title[_ngcontent-%COMP%]{font-size:16px;font-weight:bolder}.popper[_ngcontent-%COMP%]   .popper-content-wrapper[_ngcontent-%COMP%]   .popper-content[_ngcontent-%COMP%]{margin:0;padding:0 12px 12px}.popper[_ngcontent-%COMP%]   .popper-content-wrapper[_ngcontent-%COMP%]   .popper-actions-wrapper[_ngcontent-%COMP%]{margin:0;padding:12px;background-color:#f5f5f5}"]})}return wn})()},64034:(he,y,i)=>{"use strict";i.d(y,{w:()=>u});var e=i(96814),n=i(94505),o=i(30617),a=i(89515),l=i(65879);let u=(()=>{class d{static#e=this.\u0275fac=function(_){return new(_||d)};static#t=this.\u0275mod=l.oAB({type:d});static#n=this.\u0275inj=l.cJS({imports:[e.ez,n.yu,o.Ps,a.aw]})}return d})()},9538:(he,y,i)=>{"use strict";i.d(y,{H:()=>E});var e=i(59773),n=i(23605),o=i(65879),a=i(94748),l=i(78645),u=i(30481),d=i(74187),s=i(62232);const A=["searchBox"],_=["advancedSearchRef"],C=["zenGrid"];function R(b,I){if(1&b&&(o.ynx(0),o._UZ(1,"zen-search-mobile",2),o.BQk()),2&b){const L=o.oxw();o.xp6(1),o.Q6J("context",L)}}function x(b,I){1&b&&(o.TgZ(0,"mat-icon",20),o._uU(1," info "),o.qZA())}function f(b,I){if(1&b){const L=o.EpF();o.TgZ(0,"button",21),o.NdJ("click",function(){o.CHM(L);const F=o.oxw(3);return o.KtG(F.clearButtonClicked())}),o.TgZ(1,"mat-icon"),o._uU(2,"close"),o.qZA()()}}function k(b,I){if(1&b){const L=o.EpF();o.TgZ(0,"button",22),o.NdJ("click",function(){o.CHM(L);const F=o.oxw(3);return o.KtG(F.toggleAdvancedSearch())}),o.TgZ(1,"mat-icon"),o._uU(2,"arrow_drop_down"),o.qZA()()}}function w(b,I){if(1&b){const L=o.EpF();o.TgZ(0,"div",7,8),o.YNc(2,x,2,0,"mat-icon",9),o.TgZ(3,"mat-form-field",10)(4,"input",11,12),o.NdJ("ngModelChange",function(F){o.CHM(L);const P=o.oxw(2);return o.KtG(P.entitySearchText=F)})("focus",function(){o.CHM(L);const F=o.oxw(2);return o.KtG(F.showTooltip())})("keyup",function(F){o.CHM(L);const P=o.oxw(2);return o.KtG(P.onKeyUp(F))}),o.qZA(),o.YNc(8,f,3,0,"button",13),o.TgZ(9,"button",14),o.NdJ("click",function(){o.CHM(L);const F=o.oxw(2);return o.KtG(F.basicSearchClicked())}),o.TgZ(10,"mat-icon",15),o._uU(11,"search"),o.qZA()()(),o.YNc(12,k,3,0,"button",16),o.TgZ(13,"div",17)(14,"advanced-search",18,19),o.NdJ("onAdvancedSearch",function(F){o.CHM(L);const P=o.oxw(2);return o.KtG(P.onAdvancedSearch(F))})("onBasicSearch",function(){o.CHM(L);const F=o.oxw(2);return o.KtG(F.search())})("onAdvancedSearchCleared",function(){o.CHM(L);const F=o.oxw(2);return o.KtG(F.onAdvancedSearchCleared())}),o.qZA()()()}if(2&b){const L=o.oxw(2);o.xp6(2),o.Q6J("ngIf",L.appliedAdvancedSearch),o.xp6(2),o.Q6J("ngModel",L.entitySearchText)("matTooltipDisabled",""!=L.entitySearchText)("matTooltip",L.searchTooltip),o.xp6(4),o.Q6J("ngIf",L.entitySearchText),o.xp6(4),o.Q6J("ngIf",L.showAdvancedSearch),o.xp6(1),o.Q6J("hidden",!L.advancedSearchVisibility),o.xp6(1),o.Q6J("basicSearchText",L.entitySearchText)("visibility",L.advancedSearchVisibility)("showResumeSearch",L.showResumeSearch)}}function g(b,I){if(1&b){const L=o.EpF();o.TgZ(0,"div",23)(1,"label"),o._uU(2),o.qZA(),o.TgZ(3,"mat-slide-toggle",24),o.NdJ("ngModelChange",function(F){o.CHM(L);const P=o.oxw(2);return o.KtG(P.searchMode=F)})("change",function(){o.CHM(L);const F=o.oxw(2);return o.KtG(F.toggle())}),o.qZA()()}if(2&b){const L=o.oxw(2);o.xp6(2),o.Oqu(L.searchLabel),o.xp6(1),o.Q6J("ngModel",L.searchMode)}}function M(b,I){if(1&b){const L=o.EpF();o.TgZ(0,"div",25)(1,"label"),o._uU(2),o.qZA(),o.TgZ(3,"mat-slide-toggle",24),o.NdJ("ngModelChange",function(F){o.CHM(L);const P=o.oxw(2);return o.KtG(P.searchMode=F)})("change",function(){o.CHM(L);const F=o.oxw(2);return o.KtG(F.toggle())}),o.qZA()()}if(2&b){const L=o.oxw(2);o.xp6(2),o.Oqu(L.searchLabel),o.xp6(1),o.Q6J("ngModel",L.searchMode)}}function p(b,I){if(1&b&&(o.TgZ(0,"div",3),o.YNc(1,w,16,10,"div",4),o.YNc(2,g,4,2,"div",5),o.YNc(3,M,4,2,"div",6),o.qZA()),2&b){const L=o.oxw();o.xp6(1),o.Q6J("ngIf",L.searchMode),o.xp6(1),o.Q6J("ngIf",L.searchMode&&L.showSearch),o.xp6(1),o.Q6J("ngIf",!L.searchMode&&L.showSearch)}}let E=(()=>{class b extends n.g{set entity(L){L&&(this.entityName=L.toLowerCase(),this.restoreState())}get searchText(){return this.entitySearchText}set searchText(L){this.entitySearchText=L}constructor(L,D){super(),this.utilityService=L,this.zenSearchService=D,this.entitySearchText="",this.displayMode=!0,this.searchLabel="Search",this.showSearch=!0,this.searchOnChange=!1,this.searchOnInit=!0,this.showAdvancedSearch=!1,this.showResumeSearch=!1,this.showAdvancedSection=!1,this.searchMode=!0,this.onSearch=new o.vpe,this.onToggle=new o.vpe,this.isMobile=!1,this._unsubscribeAll=new l.x}documentClick(L){const D=document.getElementById("advanced-search-menu"),F=document.getElementById("advanced-menu-button");D&&D.contains(L.target)||F&&F.contains(L.target)||L.target.closest("#zs-table")||L.target.closest("#zs-clear-btn")||L.target.closest(".zen-popup-sm")||this.advancedSearchVisibility&&(this.isMobile||this.advancedSearchRef.savedSearchDropdown.zsAutoTrigger.closePanel(),this.advancedSearchVisibility=!1)}ngOnInit(){this.isMobileResolution.pipe((0,e.R)(this._unsubscribeAll)).subscribe(L=>{this.isMobile=L})}ngAfterViewInit(){this.searchMode&&setTimeout(()=>{try{this.searchBox.nativeElement.focus()}catch{}})}clearButtonClicked(L){this.entitySearchText="",this.searchOnChange&&(this.search(),L&&L.dismiss())}restoreState(){const L=this.zenSearchService.getSearchType(this.entityName);L?"recentsearch"===L.toLowerCase()?(this.searchMode=!1,this.searchLabel="Recent",this.utilityService.onToggle.next(this.searchMode)):(this.searchMode=!0,this.searchLabel="Search",this.utilityService.onToggle.next(this.searchMode),this.checkSearchText()):(this.searchMode=!0,this.zenSearchService.setSearchType(this.entityName,"any"),this.checkSearchText())}search(L){this.searchMode&&(L&&(this.entitySearchText=L),this.zenSearchService.setSearchText(this.entityName,this.entitySearchText),this.onSearch.emit(this.entitySearchText?.trim()))}toggle(){this.searchLabel=this.searchMode?"Search":"Recent";let L=null;this.searchMode?(L=this.zenSearchService.getTileSession(this.entityName)?.value?"session":"any",this.zenSearchService.setSearchType(this.entityName,L),this.utilityService.onToggle.next(this.searchMode),this.onToggle.emit(this.searchMode),this.checkSearchText()):(L="recentsearch",this.zenSearchService.setSearchType(this.entityName,L),this.utilityService.onToggle.next(this.searchMode),this.onToggle.emit(this.searchMode))}checkSearchText(){const L=this.zenSearchService.getSearchText(this.entityName);this.entitySearchText=L?.constructor===String?L:"",(this.entitySearchText||!this.entitySearchText&&this.searchOnInit)&&this.onSearch.emit(this.entitySearchText?.trim())}basicSearchClicked(L){this.search(),L&&L.dismiss()}onKeyUp(L){this.searchOnChange?this.search():"Enter"==L.key?((this.backspaceTimeout||this.clearSearchTimeout)&&(clearTimeout(this.backspaceTimeout),clearTimeout(this.clearSearchTimeout)),this.search()):(this.backspaceTimeout||this.clearSearchTimeout)&&(clearTimeout(this.backspaceTimeout),clearTimeout(this.clearSearchTimeout)),""==this.entitySearchText&&(this.searchTooltip=null)}onAdvancedSearch(L){this.entitySearchText="",this.appliedAdvancedSearch=!0,this.onSearch.emit(L)}onAdvancedSearchCleared(){this.appliedAdvancedSearch=!1}toggleAdvancedSearch(){this.advancedSearchVisibility=void 0===this.advancedSearchVisibility||!this.advancedSearchVisibility}onAdvancedOutsideClick(L){L.stopPropagation()}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}showTooltip(){this.searchTooltip&&this.tooltip.show()}static#e=this.\u0275fac=function(D){return new(D||b)(o.Y36(d.t),o.Y36(s.o))};static#t=this.\u0275cmp=o.Xpm({type:b,selectors:[["zen-search"]],viewQuery:function(D,F){if(1&D&&(o.Gf(A,5),o.Gf(_,5),o.Gf(C,5),o.Gf(u.Kd,5)),2&D){let P;o.iGM(P=o.CRH())&&(F.searchBox=P.first),o.iGM(P=o.CRH())&&(F.advancedSearchRef=P.first),o.iGM(P=o.CRH())&&(F.autoGrid=P.first),o.iGM(P=o.CRH())&&(F.tooltip=P.first)}},hostBindings:function(D,F){1&D&&o.NdJ("click",function(O){return F.documentClick(O)},!1,o.evT)},inputs:{showSearch:"showSearch",searchOnChange:"searchOnChange",searchOnInit:"searchOnInit",showAdvancedSearch:"showAdvancedSearch",showResumeSearch:"showResumeSearch",_bottomSheet:"_bottomSheet",searchTooltip:"searchTooltip",entity:["entityName","entity"]},outputs:{onSearch:"onSearch",onToggle:"onToggle"},features:[o.qOj],decls:2,vars:2,consts:[[4,"ngIf"],["class","search-input-wrapper mr-12","fxFlex","1 0 auto","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[3,"context"],["fxFlex","1 0 auto","fxLayout","row","fxLayoutAlign","start center",1,"search-input-wrapper","mr-12"],["class","custom-search ml-12","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["class","offline-switch","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["class","offline-switch w-100-p text-right","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center",1,"custom-search","ml-12"],["searchcontentarea",""],["matTooltip","Please expand search to view search details","color","accent","class","mr-4",4,"ngIf"],["floatLabel","never","fxFlex","1 0 auto"],["id","search","matInput","","name","search","placeholder","Search",3,"ngModel","matTooltipDisabled","matTooltip","ngModelChange","focus","keyup"],["searchBox","","filter","","matTooltip",""],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Search",1,"search-button",3,"click"],[1,"s-24"],["mat-button","","id","advanced-menu-button","class","advanced-menu-btn",3,"click",4,"ngIf"],["id","advanced-search-menu",1,"advanced-search-menu",3,"hidden"],[3,"basicSearchText","visibility","showResumeSearch","onAdvancedSearch","onBasicSearch","onAdvancedSearchCleared"],["advancedSearchRef",""],["matTooltip","Please expand search to view search details","color","accent",1,"mr-4"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["mat-button","","id","advanced-menu-button",1,"advanced-menu-btn",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"offline-switch"],["labelPosition","before",3,"ngModel","ngModelChange","change"],["fxLayout","row","fxLayoutAlign","center center",1,"offline-switch","w-100-p","text-right"]],template:function(D,F){1&D&&(o.YNc(0,R,2,1,"ng-container",0),o.YNc(1,p,4,3,"div",1)),2&D&&(o.Q6J("ngIf",F.isMobile),o.xp6(1),o.Q6J("ngIf",!F.isMobile))},styles:[".search-input-wrapper{height:50px}.search-input-wrapper .custom-search{position:relative;width:100%}.search-input-wrapper .custom-search .adv-click{min-width:auto;padding:0;width:25px}.search-input-wrapper .custom-search .adv-click:hover .mat-button-focus-overlay{background-color:#0000}.search-input-wrapper .custom-search .search-content{position:absolute;top:46px;right:0;width:100%;z-index:1000;padding:15px;display:none;border:2px solid #eee;width:350px}.search-input-wrapper .custom-search .search-content .search-formfield{display:flex;flex-direction:column;position:relative}.search-input-wrapper .custom-search .search-content .search-formfield .top-action-adv-search .close-adv-search{position:absolute;left:-10px;top:-10px}.search-input-wrapper .custom-search .search-content .search-formfield .top-action-adv-search .close-adv-search .mat-button-wrapper{width:24px;height:24px;padding:0}.search-input-wrapper .custom-search .search-content .search-formfield .top-action-adv-search .close-adv-search .mat-button-wrapper mat-icon{font-size:19px;line-height:9px}.search-input-wrapper .custom-search .search-content .search-formfield .top-action-adv-search .clear-adv-search a:hover{text-decoration:none}.search-input-wrapper .custom-search .search-content .search-formfield>*{width:100%}.search-input-wrapper .custom-search .search-content-show{display:block}.search-input-wrapper .custom-search .adv-click:focus+.search-content{display:block}.search-input-wrapper .custom-search .search-button{color:#8c8c8c!important;margin-right:12px}.advanced-search-menu .search-content{padding:0!important}.advanced-search-menu .mat-accordion .mat-expansion-panel{margin:0;box-shadow:none!important}.advanced-search-menu .mat-accordion .mat-expansion-panel-header,.advanced-search-menu .mat-accordion .mat-expansion-panel-body{padding:0}.advanced-menu-btn{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0;padding:0;min-width:0}\n"],encapsulation:2,data:{animation:a.L}})}return b})()},86352:(he,y,i)=>{"use strict";i.d(y,{K:()=>K});var e=i(9538),n=i(94505),o=i(24678),a=i(66878),l=i(3305),u=i(84187),d=i(30617),s=i(42400),A=i(78250),_=i(48424),C=i(51838),R=i(81274),x=i(30481),f=i(20180),k=i(85947),w=i(26177),g=i(89515),M=i(12430),p=i(83991),E=i(65879),b=i(96814),I=i(56223),L=i(83814);function D(X,me){1&X&&(E.TgZ(0,"mat-icon",11),E._uU(1," info "),E.qZA())}function F(X,me){if(1&X){const J=E.EpF();E.TgZ(0,"button",12),E.NdJ("click",function(){E.CHM(J);const re=E.oxw(2);return E.KtG(re.$m.clearButtonClicked(re.$m._bottomSheet))}),E.TgZ(1,"mat-icon"),E._uU(2,"close"),E.qZA()()}}function P(X,me){if(1&X){const J=E.EpF();E.TgZ(0,"button",13),E.NdJ("click",function(){E.CHM(J);const re=E.oxw(2);return E.KtG(re.$m.toggleAdvancedSearch())}),E.TgZ(1,"mat-icon"),E._uU(2,"arrow_drop_down"),E.qZA()()}}function O(X,me){if(1&X){const J=E.EpF();E.TgZ(0,"div",2,3),E.YNc(2,D,2,0,"mat-icon",4),E.TgZ(3,"mat-form-field",5)(4,"input",6,7),E.NdJ("ngModelChange",function(re){E.CHM(J);const de=E.oxw();return E.KtG(de.$m.entitySearchText=re)})("keyup",function(re){E.CHM(J);const de=E.oxw();return E.KtG(de.$m.onKeyUp(re))}),E.qZA(),E.YNc(7,F,3,0,"button",8),E.TgZ(8,"button",9),E.NdJ("click",function(){E.CHM(J);const re=E.oxw();return E.KtG(re.$m.basicSearchClicked(re.$m._bottomSheet))}),E.TgZ(9,"mat-icon"),E._uU(10,"search"),E.qZA()()(),E.YNc(11,P,3,0,"button",10),E.qZA()}if(2&X){const J=E.oxw();E.xp6(2),E.Q6J("ngIf",J.$m.appliedAdvancedSearch),E.xp6(2),E.Q6J("ngModel",J.$m.entitySearchText),E.xp6(3),E.Q6J("ngIf",J.$m.entitySearchText),E.xp6(4),E.Q6J("ngIf",J.$m.showAdvancedSearch)}}let U=(()=>{class X{constructor(){console.log("inside zen search mobile")}ngOnInit(){}static#e=this.\u0275fac=function(Q){return new(Q||X)};static#t=this.\u0275cmp=E.Xpm({type:X,selectors:[["zen-search-mobile"]],inputs:{$m:["context","$m"]},decls:2,vars:1,consts:[["fxFlex","1 0 auto","fxLayout","row","fxLayoutAlign","start center",1,"search-input-wrapper","mx-12","m-md-0"],["class","custom-search ml-12","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center",1,"custom-search","ml-12"],["searchcontentarea",""],["matTooltip","Please expand search to view search details","color","accent","class","mr-4",4,"ngIf"],["floatPlaceholder","never","fxFlex","1 0 auto"],["id","search","matInput","","name","search","placeholder","Search",3,"ngModel","ngModelChange","keyup"],["searchBox","","filter",""],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Search",1,"search-button",3,"click"],["mat-button","","id","advanced-menu-button","class","advanced-menu-btn",3,"click",4,"ngIf"],["matTooltip","Please expand search to view search details","color","accent",1,"mr-4"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["mat-button","","id","advanced-menu-button",1,"advanced-menu-btn",3,"click"]],template:function(Q,re){1&Q&&(E.TgZ(0,"div",0),E.YNc(1,O,12,4,"div",1),E.qZA()),2&Q&&(E.xp6(1),E.Q6J("ngIf",re.$m.searchMode))},dependencies:[b.O5,I.Fj,I.JJ,I.On,L.xw,L.Wh,L.yH,u.v_,u.nX,s.k0,n.eB,d.Hw,x.Kd],encapsulation:2})}return X})();var V=i(12437);let K=(()=>{class X{static#e=this.\u0275fac=function(Q){return new(Q||X)};static#t=this.\u0275mod=E.oAB({type:X});static#n=this.\u0275inj=E.cJS({imports:[f.L,s.x4,u.wp,n.yu,C.Wd,_.uw,o.Uc,d.Ps,w.yD,A.jT,R.g0,a.yj,x.AA,M.L,k.o9,l.To,p.D,g.aw]})}return X})();E.B6R(e.H,[b.O5,I.Fj,I.JJ,I.On,L.xw,L.Wh,L.yH,u.v_,u.nX,s.k0,n.eB,C.iZ,d.Hw,x.Kd,V.g,U],[])},62232:(he,y,i)=>{"use strict";i.d(y,{o:()=>a});var e=i(65879),n=i(6738),o=i(74187);let a=(()=>{class l{constructor(d,s){this.webApiService=d,this.utilityService=s,this.searchTypeProperty="searchType",this.searchTextProperty="searchText",this.tileSessionProperty="tileSession"}getSearchType(d){const s=JSON.parse(sessionStorage.getItem("headerParams")),A=sessionStorage.getItem(this.searchTypeProperty);if(A){const _=JSON.parse(A);if(_[s.applicationId])return _[s.applicationId][d?.toLowerCase()]}}setSearchType(d,s){const A=JSON.parse(sessionStorage.getItem("headerParams")),_=sessionStorage.getItem(this.searchTypeProperty);let C=null;_?(C=JSON.parse(_),C[A.applicationId]||(C[A.applicationId]={})):C={[A.applicationId]:{}},C[A.applicationId][d.toLowerCase()]=s,sessionStorage.setItem(this.searchTypeProperty,JSON.stringify(C))}getSearchText(d){const s=JSON.parse(sessionStorage.getItem("headerParams")),A=sessionStorage.getItem(this.searchTextProperty);if(A){const _=JSON.parse(A);if(_[s.applicationId])return _[s.applicationId][d.toLowerCase()]}}setSearchText(d,s){const A=JSON.parse(sessionStorage.getItem("headerParams")),_=sessionStorage.getItem(this.searchTextProperty);let C=null;_?(C=JSON.parse(_),C[A.applicationId]||(C[A.applicationId]={})):C={[A.applicationId]:{}},C[A.applicationId][d.toLowerCase()]="string"==typeof s?s?.trim():s,sessionStorage.setItem(this.searchTextProperty,JSON.stringify(C))}setTileSession(d,s,A){const _=JSON.parse(sessionStorage.getItem("headerParams")),C=sessionStorage.getItem(this.tileSessionProperty);let R=null;C?(R=JSON.parse(C),R[_.applicationId]||(R[_.applicationId]={})):R={[_.applicationId]:{}},s?R[_.applicationId][d.toLowerCase()]={id:s,value:A}:delete R[_.applicationId][d.toLowerCase()],sessionStorage.setItem(this.tileSessionProperty,JSON.stringify(R))}getTileSession(d){const s=JSON.parse(sessionStorage.getItem("headerParams")),A=sessionStorage.getItem(this.tileSessionProperty);if(A){const _=JSON.parse(A);if(_[s.applicationId])return _[s.applicationId][d.toLowerCase()]}}static#e=this.\u0275fac=function(s){return new(s||l)(e.LFG(n.f),e.LFG(o.t))};static#t=this.\u0275prov=e.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},82012:(he,y,i)=>{"use strict";i.d(y,{i:()=>br});var e=i(78337),n=i(16672),o=i(65879),a=i(56223),l=i(21819),u=i(54841),d=i(94748),s=i(12669),A=i(69167),_=i(47394),C=i(710),R=i(74187),x=i(89515),f=i(96814),k=i(94505),w=i(30617),g=i(84187),M=i(42400),p=i(30481),E=i(45754),b=i(26177),I=i(24678),L=i(83814),D=i(27509),F=i(42094),P=i(32202);const O=["searchInput"],U=["zsContainer"],V=["zsAutoTrigger"],K=["cdkViewPort"];function X(Ti,mr){if(1&Ti){const ri=o.EpF();o.TgZ(0,"mat-chip",19),o.NdJ("click",function(){o.CHM(ri),o.oxw();const Ii=o.MAs(8);return o.KtG(Ii.click())}),o.TgZ(1,"div",20),o.ALo(2,"translate"),o.ALo(3,"toString"),o._uU(4),o.ALo(5,"translate"),o.ALo(6,"toString"),o.qZA()()}if(2&Ti){const ri=mr.$implicit,mo=o.oxw();o.Q6J("selectable",!1)("color","white"),o.xp6(1),o.s9C("matTooltip",mo.toolTip?mo.toolTip:o.lcZ(2,4,o.lcZ(3,6,ri))),o.xp6(3),o.hij(" ",o.lcZ(5,8,o.lcZ(6,10,ri)),"")}}function me(Ti,mr){if(1&Ti){const ri=o.EpF();o.TgZ(0,"button",21),o.NdJ("click",function(){o.CHM(ri);const Ii=o.oxw();return o.KtG(Ii.clear(!1,!0))}),o.TgZ(1,"mat-icon",22),o._uU(2,"close"),o.qZA()()}}function J(Ti,mr){if(1&Ti){const ri=o.EpF();o.TgZ(0,"mat-icon",23),o.NdJ("click",function(){o.CHM(ri);const Ii=o.oxw(),yo=o.MAs(9);return o.KtG(Ii.onTriggerClick(yo))}),o._uU(1,"arrow_drop_down"),o.qZA()}}function Q(Ti,mr){if(1&Ti){const ri=o.EpF();o.TgZ(0,"mat-header-cell")(1,"mat-checkbox",32),o.NdJ("change",function(Ii){o.CHM(ri);const yo=o.oxw(2);return o.KtG(Ii?yo.masterToggle(Ii):null)}),o._uU(2),o.ALo(3,"translate"),o.qZA()()}if(2&Ti){const ri=o.oxw(2);o.xp6(1),o.Q6J("checked",ri.selection.hasValue()&&ri.isAllSelected())("indeterminate",ri.selection.hasValue()&&!ri.isAllSelected()),o.xp6(1),o.hij(" ",o.lcZ(3,3,ri.headerDisplay.select?ri.headerDisplay.select:"")," ")}}function re(Ti,mr){if(1&Ti){const ri=o.EpF();o.TgZ(0,"mat-cell")(1,"mat-checkbox",33),o.NdJ("click",function(Ii){return Ii.stopPropagation()})("change",function(Ii){const lr=o.CHM(ri).$implicit,Yr=o.oxw(2);return o.KtG(Ii?Yr.onSelect(lr,Ii):null)}),o.qZA()()}if(2&Ti){const ri=mr.$implicit,mo=o.oxw(2);o.xp6(1),o.Q6J("checked",mo.selection.isSelected(ri))}}function de(Ti,mr){1&Ti&&o.GkF(0)}function te(Ti,mr){if(1&Ti&&(o._uU(0),o.ALo(1,"translate")),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw(2);o.hij(" ",o.lcZ(1,1,mo.headerDisplay[ri.name]?mo.headerDisplay[ri.name]:ri.name)," ")}}const j=function(Ti){return{"zs-hidden":Ti}},H=function(Ti,mr){return{column:Ti,dataItem:mr}},z=function(Ti){return{localSk:Ti}};function q(Ti,mr){if(1&Ti&&(o.TgZ(0,"mat-header-cell",37),o.YNc(1,de,1,0,"ng-container",38),o.YNc(2,te,2,3,"ng-template",null,39,o.W1O),o.qZA()),2&Ti){const ri=mr.$implicit,mo=o.MAs(3),Ii=o.oxw().$implicit,yo=o.oxw(2);o.Q6J("fxFlex",Ii.width)("ngClass",o.VKq(4,j,yo.isHiddenColumn(Ii.name))),o.xp6(1),o.Q6J("ngTemplateOutlet",yo.columnTemplates&&yo.columnTemplates[Ii.name+"HeaderTemplate"]||mo)("ngTemplateOutletContext",o.VKq(9,z,o.WLB(6,H,Ii,ri)))}}function se(Ti,mr){1&Ti&&o.GkF(0)}function ne(Ti,mr){if(1&Ti&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,ri[mo.name],"MM/dd/yyyy")," ")}}function _e(Ti,mr){if(1&Ti&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.Oqu(o.xi3(2,1,ri[mo.name],"MM/dd/yyyy h:mm:ss"))}}function ge(Ti,mr){if(1&Ti&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.Oqu(o.xi3(2,1,ri[mo.name],"hh:mm a"))}}function Ce(Ti,mr){if(1&Ti&&(o.TgZ(0,"div",46),o._uU(1),o.ALo(2,"number"),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.Oqu(o.xi3(2,1,ri[mo.name],"1.2-2"))}}function Te(Ti,mr){if(1&Ti&&(o.TgZ(0,"div"),o._uU(1),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.Oqu(ri[mo.name])}}function De(Ti,mr){if(1&Ti&&(o.TgZ(0,"div",46),o._uU(1),o.ALo(2,"currency"),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,ri[mo.name],ri.currency)," ")}}function fe(Ti,mr){if(1&Ti&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"zenLabelMask"),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,ri[mo.name],ri[mo.name+"Masking"])," ")}}function xe(Ti,mr){if(1&Ti&&o._UZ(0,"mat-icon",49),2&Ti){const ri=o.oxw(3).$implicit,mo=o.oxw().$implicit;o.Q6J("ngClass",ri[mo.name])("svgIcon",ri[mo.name])}}function Oe(Ti,mr){if(1&Ti&&(o.TgZ(0,"mat-icon",50),o.ALo(1,"translate"),o._uU(2),o.qZA()),2&Ti){const ri=o.oxw(3).$implicit,mo=o.oxw().$implicit;o.Q6J("ngClass",ri[mo.name])("matTooltip",o.lcZ(1,3,mo.name)),o.xp6(2),o.hij("",ri[mo.name]," ")}}function Le(Ti,mr){if(1&Ti&&(o.TgZ(0,"div"),o.YNc(1,xe,1,2,"mat-icon",47),o.YNc(2,Oe,3,5,"mat-icon",48),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.Q6J("ngIf",ri[mo.name].indexOf("fa-")>-1),o.xp6(1),o.Q6J("ngIf",-1===ri[mo.name].indexOf("fa-"))}}function Gt(Ti,mr){if(1&Ti&&(o.TgZ(0,"span"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&Ti){const ri=o.oxw(3).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.lcZ(2,1,ri[mo.name])," ")}}function Ut(Ti,mr){if(1&Ti&&(o.TgZ(0,"span"),o._uU(1),o.ALo(2,"zenLabelMask"),o.qZA()),2&Ti){const ri=o.oxw(4).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.Dn7(2,1,ri[mo.name],mo.name+"Masking",ri.countryCode)," ")}}function An(Ti,mr){if(1&Ti&&(o.TgZ(0,"span"),o._uU(1),o.ALo(2,"zenLabelMask"),o.qZA()),2&Ti){const ri=o.oxw(4).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.Dn7(2,1,ri[mo.name],ri[mo.name+"Masking"],ri.countryCode)," ")}}function $n(Ti,mr){if(1&Ti&&(o.TgZ(0,"span"),o._uU(1),o.ALo(2,"translate"),o.ALo(3,"toString"),o.qZA()),2&Ti){const ri=o.oxw(4).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,o.lcZ(3,3,ri[mo.name])))}}function xn(Ti,mr){if(1&Ti&&(o.ynx(0,42),o.YNc(1,Ut,3,5,"span",43),o.YNc(2,An,3,5,"span",43),o.YNc(3,$n,4,5,"span",45),o.BQk()),2&Ti){const ri=o.oxw(4).$implicit;o.Q6J("ngSwitch",ri.maskType),o.xp6(1),o.Q6J("ngSwitchCase","all"),o.xp6(1),o.Q6J("ngSwitchCase","other")}}function mt(Ti,mr){if(1&Ti&&(o.TgZ(0,"div"),o.YNc(1,Gt,3,3,"span",51),o.YNc(2,xn,4,3,"ng-template",null,52,o.W1O),o.qZA()),2&Ti){const ri=o.MAs(3),mo=o.oxw(3).$implicit;o.xp6(1),o.Q6J("ngIf",mo.translate)("ngIfElse",ri)}}function ut(Ti,mr){if(1&Ti&&(o.ynx(0,42),o.YNc(1,ne,3,4,"div",43),o.YNc(2,_e,3,4,"div",43),o.YNc(3,ge,3,4,"div",43),o.YNc(4,Ce,3,4,"div",44),o.YNc(5,Te,2,1,"div",43),o.YNc(6,De,3,4,"div",44),o.YNc(7,fe,3,4,"div",43),o.YNc(8,Le,3,2,"div",43),o.YNc(9,mt,4,2,"div",45),o.BQk()),2&Ti){const ri=o.oxw(2).$implicit;o.Q6J("ngSwitch",ri.type),o.xp6(1),o.Q6J("ngSwitchCase","date"),o.xp6(1),o.Q6J("ngSwitchCase","dateTime"),o.xp6(1),o.Q6J("ngSwitchCase","time"),o.xp6(1),o.Q6J("ngSwitchCase","numeric"),o.xp6(1),o.Q6J("ngSwitchCase","int"),o.xp6(1),o.Q6J("ngSwitchCase","money"),o.xp6(1),o.Q6J("ngSwitchCase","mask"),o.xp6(1),o.Q6J("ngSwitchCase","icon")}}function Wt(Ti,mr){if(1&Ti&&(o.TgZ(0,"mat-cell",40),o.YNc(1,se,1,0,"ng-container",38),o.YNc(2,ut,10,9,"ng-template",null,41,o.W1O),o.qZA()),2&Ti){const ri=mr.$implicit,mo=o.MAs(3),Ii=o.oxw().$implicit,yo=o.oxw(2);o.Q6J("fxFlex",Ii.width)("ngClass",o.VKq(4,j,yo.isHiddenColumn(Ii.name))),o.xp6(1),o.Q6J("ngTemplateOutlet",yo.columnTemplates&&yo.columnTemplates[Ii.name+"CellTemplate"]||mo)("ngTemplateOutletContext",o.VKq(9,z,o.WLB(6,H,Ii,ri)))}}function dn(Ti,mr){1&Ti&&(o.ynx(0,34),o.YNc(1,q,4,11,"mat-header-cell",35),o.YNc(2,Wt,4,11,"mat-cell",36),o.BQk()),2&Ti&&o.Q6J("matColumnDef",mr.$implicit.name)}function sn(Ti,mr){if(1&Ti&&o._UZ(0,"mat-header-row",53),2&Ti){const ri=o.oxw(2);o.Q6J("ngClass",1!=ri.columns.length||ri.showHeader?null:"zs-hidden")}}function fn(Ti,mr){if(1&Ti&&(o.TgZ(0,"mat-option",54),o._UZ(1,"mat-row"),o.qZA()),2&Ti){const ri=o.oxw(2);o.Udp("height",ri.placeholderHeight,"px")}}const yi=function(Ti){return{"blue-50":Ti}};function nn(Ti,mr){if(1&Ti&&(o.TgZ(0,"mat-option",55),o._UZ(1,"mat-row"),o.qZA()),2&Ti){const ri=mr.$implicit,mo=o.oxw(2);o.Q6J("ngClass",o.VKq(2,yi,ri[mo.valueField]==mo.selectedId))("value",ri)}}const Mi=function(){return[]};function mi(Ti,mr){if(1&Ti&&(o.TgZ(0,"mat-table",24),o.ynx(1,25),o.YNc(2,Q,4,5,"mat-header-cell",26),o.YNc(3,re,2,1,"mat-cell",27),o.BQk(),o.YNc(4,dn,3,1,"ng-container",28),o.YNc(5,sn,1,1,"mat-header-row",29),o.YNc(6,fn,2,2,"mat-option",30),o.YNc(7,nn,2,4,"mat-option",31),o.qZA()),2&Ti){const ri=o.oxw();o.Q6J("dataSource",ri.rows)("multiTemplateDataRows",!0),o.xp6(4),o.Q6J("ngForOf",ri.columnConfig),o.xp6(1),o.Q6J("matHeaderRowDef",ri.displayedColumns)("matHeaderRowDefSticky",!0),o.xp6(1),o.Q6J("matRowDefColumns",o.DdM(8,Mi))("matRowDefWhen",ri.placeholderWhen),o.xp6(1),o.Q6J("matRowDefColumns",ri.displayedColumns)}}function Eo(Ti,mr){if(1&Ti){const ri=o.EpF();o.TgZ(0,"mat-header-cell")(1,"mat-checkbox",32),o.NdJ("change",function(Ii){o.CHM(ri);const yo=o.oxw(2);return o.KtG(Ii?yo.masterToggle(Ii):null)}),o._uU(2),o.ALo(3,"translate"),o.qZA()()}if(2&Ti){const ri=o.oxw(2);o.xp6(1),o.Q6J("checked",ri.selection.hasValue()&&ri.isAllSelected())("indeterminate",ri.selection.hasValue()&&!ri.isAllSelected()),o.xp6(1),o.hij(" ",o.lcZ(3,3,ri.headerDisplay.select?ri.headerDisplay.select:"")," ")}}function Ko(Ti,mr){if(1&Ti){const ri=o.EpF();o.TgZ(0,"mat-checkbox",60),o.NdJ("click",function(Ii){return Ii.stopPropagation()})("change",function(Ii){o.CHM(ri);const yo=o.oxw().$implicit,lr=o.oxw(2);return o.KtG(Ii?lr.onSelect(yo,Ii):null)}),o.qZA()}if(2&Ti){const ri=o.oxw().$implicit,mo=o.oxw(2);o.Q6J("ngClass",ri.hasOwnProperty("zenSelGroup")?"multi-matcheckBox-size":"")("id",ri.zenSelGroup)("checked",mo.selection.isSelected(ri))("indeterminate",ri.isIndeterminate)}}function xo(Ti,mr){if(1&Ti){const ri=o.EpF();o.TgZ(0,"mat-checkbox",61),o.NdJ("click",function(Ii){return Ii.stopPropagation()})("change",function(Ii){o.CHM(ri);const yo=o.oxw().$implicit,lr=o.oxw(2);return o.KtG(Ii?lr.onSelect(yo,Ii):null)}),o.qZA()}if(2&Ti){const ri=o.oxw().$implicit,mo=o.oxw(2);o.Q6J("checked",mo.selection.isSelected(ri))}}function Bn(Ti,mr){if(1&Ti&&(o.TgZ(0,"mat-cell"),o.YNc(1,Ko,1,4,"mat-checkbox",58),o.YNc(2,xo,1,1,"mat-checkbox",59),o.qZA()),2&Ti){const ri=mr.$implicit;o.xp6(1),o.Q6J("ngIf",ri.hasOwnProperty("zenSelGroup")),o.xp6(1),o.Q6J("ngIf",!ri.hasOwnProperty("zenSelGroup"))}}function Xt(Ti,mr){1&Ti&&o.GkF(0)}function Ji(Ti,mr){if(1&Ti&&(o._uU(0),o.ALo(1,"translate")),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw(2);o.hij(" ",o.lcZ(1,1,mo.headerDisplay[ri.name]?mo.headerDisplay[ri.name]:ri.name)," ")}}function En(Ti,mr){if(1&Ti&&(o.TgZ(0,"mat-header-cell",37),o.YNc(1,Xt,1,0,"ng-container",38),o.YNc(2,Ji,2,3,"ng-template",null,39,o.W1O),o.qZA()),2&Ti){const ri=mr.$implicit,mo=o.MAs(3),Ii=o.oxw().$implicit,yo=o.oxw(2);o.Q6J("fxFlex",Ii.width)("ngClass",o.VKq(4,j,yo.isHiddenColumn(Ii.name))),o.xp6(1),o.Q6J("ngTemplateOutlet",yo.columnTemplates&&yo.columnTemplates[Ii.name+"HeaderTemplate"]||mo)("ngTemplateOutletContext",o.VKq(9,z,o.WLB(6,H,Ii,ri)))}}function un(Ti,mr){1&Ti&&o.GkF(0)}function Ki(Ti,mr){if(1&Ti&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,ri[mo.name],"MM/dd/yyyy")," ")}}function Fn(Ti,mr){if(1&Ti&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.Oqu(o.xi3(2,1,ri[mo.name],"MM/dd/yyyy h:mm:ss"))}}function oi(Ti,mr){if(1&Ti&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.Oqu(o.xi3(2,1,ri[mo.name],"hh:mm a"))}}function It(Ti,mr){if(1&Ti&&(o.TgZ(0,"div",46),o._uU(1),o.ALo(2,"number"),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.Oqu(o.xi3(2,1,ri[mo.name],"1.2-2"))}}function Bt(Ti,mr){if(1&Ti&&(o.TgZ(0,"div"),o._uU(1),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.Oqu(ri[mo.name])}}function xt(Ti,mr){if(1&Ti&&(o.TgZ(0,"div",46),o._uU(1),o.ALo(2,"currency"),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,ri[mo.name],ri.currency)," ")}}function wt(Ti,mr){if(1&Ti&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"zenLabelMask"),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,ri[mo.name],ri[mo.name+"Masking"])," ")}}function Mt(Ti,mr){if(1&Ti&&o._UZ(0,"mat-icon",49),2&Ti){const ri=o.oxw(3).$implicit,mo=o.oxw().$implicit;o.Q6J("ngClass",ri[mo.name])("svgIcon",ri[mo.name])}}function pt(Ti,mr){if(1&Ti&&(o.TgZ(0,"mat-icon",50),o.ALo(1,"translate"),o._uU(2),o.qZA()),2&Ti){const ri=o.oxw(3).$implicit,mo=o.oxw().$implicit;o.Q6J("ngClass",ri[mo.name])("matTooltip",o.lcZ(1,3,mo.name)),o.xp6(2),o.hij("",ri[mo.name]," ")}}function Lt(Ti,mr){if(1&Ti&&(o.TgZ(0,"div"),o.YNc(1,Mt,1,2,"mat-icon",47),o.YNc(2,pt,3,5,"mat-icon",48),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.Q6J("ngIf",ri[mo.name].indexOf("fa-")>-1),o.xp6(1),o.Q6J("ngIf",-1===ri[mo.name].indexOf("fa-"))}}function tt(Ti,mr){if(1&Ti&&(o.TgZ(0,"span"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&Ti){const ri=o.oxw(3).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.lcZ(2,1,ri[mo.name])," ")}}function Ne(Ti,mr){if(1&Ti&&(o.TgZ(0,"span"),o._uU(1),o.ALo(2,"zenLabelMask"),o.qZA()),2&Ti){const ri=o.oxw(4).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.Dn7(2,1,ri[mo.name],mo.name+"Masking",ri.countryCode)," ")}}function vt(Ti,mr){if(1&Ti&&(o.TgZ(0,"span"),o._uU(1),o.ALo(2,"zenLabelMask"),o.qZA()),2&Ti){const ri=o.oxw(4).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.Dn7(2,1,ri[mo.name],ri[mo.name+"Masking"],ri.countryCode)," ")}}function ln(Ti,mr){if(1&Ti&&(o.TgZ(0,"span"),o._uU(1),o.ALo(2,"translate"),o.ALo(3,"toString"),o.qZA()),2&Ti){const ri=o.oxw(4).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,o.lcZ(3,3,ri[mo.name])))}}function jn(Ti,mr){if(1&Ti&&(o.ynx(0,42),o.YNc(1,Ne,3,5,"span",43),o.YNc(2,vt,3,5,"span",43),o.YNc(3,ln,4,5,"span",45),o.BQk()),2&Ti){const ri=o.oxw(4).$implicit;o.Q6J("ngSwitch",ri.maskType),o.xp6(1),o.Q6J("ngSwitchCase","all"),o.xp6(1),o.Q6J("ngSwitchCase","other")}}function Pi(Ti,mr){if(1&Ti&&(o.TgZ(0,"div"),o.YNc(1,tt,3,3,"span",51),o.YNc(2,jn,4,3,"ng-template",null,52,o.W1O),o.qZA()),2&Ti){const ri=o.MAs(3),mo=o.oxw(3).$implicit;o.xp6(1),o.Q6J("ngIf",mo.translate)("ngIfElse",ri)}}function go(Ti,mr){if(1&Ti&&(o.ynx(0,42),o.YNc(1,Ki,3,4,"div",43),o.YNc(2,Fn,3,4,"div",43),o.YNc(3,oi,3,4,"div",43),o.YNc(4,It,3,4,"div",44),o.YNc(5,Bt,2,1,"div",43),o.YNc(6,xt,3,4,"div",44),o.YNc(7,wt,3,4,"div",43),o.YNc(8,Lt,3,2,"div",43),o.YNc(9,Pi,4,2,"div",45),o.BQk()),2&Ti){const ri=o.oxw(2).$implicit;o.Q6J("ngSwitch",ri.type),o.xp6(1),o.Q6J("ngSwitchCase","date"),o.xp6(1),o.Q6J("ngSwitchCase","dateTime"),o.xp6(1),o.Q6J("ngSwitchCase","time"),o.xp6(1),o.Q6J("ngSwitchCase","numeric"),o.xp6(1),o.Q6J("ngSwitchCase","int"),o.xp6(1),o.Q6J("ngSwitchCase","money"),o.xp6(1),o.Q6J("ngSwitchCase","mask"),o.xp6(1),o.Q6J("ngSwitchCase","icon")}}function si(Ti,mr){if(1&Ti&&(o.TgZ(0,"mat-cell",40),o.YNc(1,un,1,0,"ng-container",38),o.YNc(2,go,10,9,"ng-template",null,41,o.W1O),o.qZA()),2&Ti){const ri=mr.$implicit,mo=o.MAs(3),Ii=o.oxw().$implicit,yo=o.oxw(2);o.Q6J("fxFlex",Ii.width)("ngClass",o.VKq(4,j,yo.isHiddenColumn(Ii.name))),o.xp6(1),o.Q6J("ngTemplateOutlet",yo.columnTemplates&&yo.columnTemplates[Ii.name+"CellTemplate"]||mo)("ngTemplateOutletContext",o.VKq(9,z,o.WLB(6,H,Ii,ri)))}}function ot(Ti,mr){1&Ti&&(o.ynx(0,34),o.YNc(1,En,4,11,"mat-header-cell",35),o.YNc(2,si,4,11,"mat-cell",36),o.BQk()),2&Ti&&o.Q6J("matColumnDef",mr.$implicit.name)}function pn(Ti,mr){if(1&Ti&&o._UZ(0,"mat-header-row",53),2&Ti){const ri=o.oxw(2);o.Q6J("ngClass",1!=ri.columns.length||ri.showHeader?null:"zs-hidden")}}const _i=function(Ti,mr,ri,mo,Ii,yo){return{"blue-50":Ti,"zen-parent":mr,"zen-child":ri,"not-first-child":mo,"first-child":Ii,"last-child":yo}},wi=function(){return{y:"100%"}},hi=function(Ti){return{value:"*",params:Ti}};function zn(Ti,mr){if(1&Ti&&(o.TgZ(0,"mat-option",62),o._UZ(1,"mat-row",53),o.qZA()),2&Ti){const ri=mr.$implicit,mo=o.oxw(2);o.Q6J("ngClass",o.HTZ(4,_i,ri[mo.valueField]==mo.selectedId,1==ri.hasOwnProperty("zenSelGroup"),0==ri.hasOwnProperty("zenSelGroup"),1==ri.hasOwnProperty("notFirstChild"),1==ri.hasOwnProperty("firstChild"),1==ri.hasOwnProperty("lastChild")))("@animate",o.VKq(12,hi,o.DdM(11,wi)))("value",ri),o.xp6(1),o.Q6J("ngClass",ri.hasOwnProperty("zenSelGroup")?"grouped":"")}}const Ei=function(){return{value:"50"}};function li(Ti,mr){if(1&Ti&&(o.TgZ(0,"mat-table",56),o.ynx(1,25),o.YNc(2,Eo,4,5,"mat-header-cell",26),o._UZ(3,"mat-cell"),o.YNc(4,Bn,3,2,"mat-cell",27),o.BQk(),o.YNc(5,ot,3,1,"ng-container",28),o.YNc(6,pn,1,1,"mat-header-row",29),o.TgZ(7,"div"),o.YNc(8,zn,2,14,"mat-option",57),o.qZA()()),2&Ti){const ri=o.oxw();o.Q6J("dataSource",ri.rows)("@animateStagger",o.DdM(6,Ei)),o.xp6(5),o.Q6J("ngForOf",ri.columnConfig),o.xp6(1),o.Q6J("matHeaderRowDef",ri.displayedColumns)("matHeaderRowDefSticky",!0),o.xp6(2),o.Q6J("matRowDefColumns",ri.displayedColumns)}}function Xi(Ti,mr){if(1&Ti){const ri=o.EpF();o.TgZ(0,"mat-checkbox",32),o.NdJ("change",function(Ii){o.CHM(ri);const yo=o.oxw(3);return o.KtG(Ii?yo.masterToggle(Ii):null)}),o._uU(1),o.ALo(2,"translate"),o.qZA()}if(2&Ti){const ri=o.oxw(3);o.Q6J("checked",ri.selection.hasValue()&&ri.isAllSelected())("indeterminate",ri.selection.hasValue()&&!ri.isAllSelected()),o.xp6(1),o.hij(" ",o.lcZ(2,3,ri.headerDisplay.select?ri.headerDisplay.select:"")," ")}}function ki(Ti,mr){if(1&Ti&&(o.TgZ(0,"mat-header-cell"),o.YNc(1,Xi,3,5,"mat-checkbox",63),o.qZA()),2&Ti){const ri=o.oxw(2);o.xp6(1),o.Q6J("ngIf",ri.showHeaderCheckBox)}}function bo(Ti,mr){if(1&Ti){const ri=o.EpF();o.TgZ(0,"mat-cell")(1,"mat-checkbox",33),o.NdJ("click",function(Ii){return Ii.stopPropagation()})("change",function(Ii){const lr=o.CHM(ri).$implicit,Yr=o.oxw(2);return o.KtG(Ii?Yr.onSelect(lr,Ii):null)}),o.qZA()()}if(2&Ti){const ri=mr.$implicit,mo=o.oxw(2);o.xp6(1),o.Q6J("checked",mo.selection.isSelected(ri))}}function jo(Ti,mr){1&Ti&&o.GkF(0)}function wn(Ti,mr){if(1&Ti&&(o._uU(0),o.ALo(1,"translate")),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw(2);o.hij(" ",o.lcZ(1,1,mo.headerDisplay[ri.name]?mo.headerDisplay[ri.name]:ri.name)," ")}}function Zi(Ti,mr){if(1&Ti&&(o.TgZ(0,"mat-header-cell",37),o.YNc(1,jo,1,0,"ng-container",38),o.YNc(2,wn,2,3,"ng-template",null,39,o.W1O),o.qZA()),2&Ti){const ri=mr.$implicit,mo=o.MAs(3),Ii=o.oxw().$implicit,yo=o.oxw(2);o.Q6J("fxFlex",Ii.width)("ngClass",o.VKq(4,j,yo.isHiddenColumn(Ii.name))),o.xp6(1),o.Q6J("ngTemplateOutlet",yo.columnTemplates&&yo.columnTemplates[Ii.name+"HeaderTemplate"]||mo)("ngTemplateOutletContext",o.VKq(9,z,o.WLB(6,H,Ii,ri)))}}function oo(Ti,mr){1&Ti&&o.GkF(0)}function Bi(Ti,mr){if(1&Ti&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,ri[mo.name],"MM/dd/yyyy")," ")}}function Xo(Ti,mr){if(1&Ti&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.Oqu(o.xi3(2,1,ri[mo.name],"MM/dd/yyyy h:mm:ss"))}}function Lo(Ti,mr){if(1&Ti&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"date"),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.Oqu(o.xi3(2,1,ri[mo.name],"hh:mm a"))}}function or(Ti,mr){if(1&Ti&&(o.TgZ(0,"div",46),o._uU(1),o.ALo(2,"number"),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.Oqu(o.xi3(2,1,ri[mo.name],"1.2-2"))}}function xr(Ti,mr){if(1&Ti&&(o.TgZ(0,"div"),o._uU(1),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.Oqu(ri[mo.name])}}function Nr(Ti,mr){if(1&Ti&&(o.TgZ(0,"div",46),o._uU(1),o.ALo(2,"currency"),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,ri[mo.name],ri.currency)," ")}}function as(Ti,mr){if(1&Ti&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"zenLabelMask"),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.xi3(2,1,ri[mo.name],ri[mo.name+"Masking"])," ")}}function ji(Ti,mr){if(1&Ti&&o._UZ(0,"mat-icon",49),2&Ti){const ri=o.oxw(3).$implicit,mo=o.oxw().$implicit;o.Q6J("ngClass",ri[mo.name])("svgIcon",ri[mo.name])}}function Fo(Ti,mr){if(1&Ti&&(o.TgZ(0,"mat-icon",50),o.ALo(1,"translate"),o._uU(2),o.qZA()),2&Ti){const ri=o.oxw(3).$implicit,mo=o.oxw().$implicit;o.Q6J("ngClass",ri[mo.name])("matTooltip",o.lcZ(1,3,mo.name)),o.xp6(2),o.hij("",ri[mo.name]," ")}}function rt(Ti,mr){if(1&Ti&&(o.TgZ(0,"div"),o.YNc(1,ji,1,2,"mat-icon",47),o.YNc(2,Fo,3,5,"mat-icon",48),o.qZA()),2&Ti){const ri=o.oxw(2).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.Q6J("ngIf",ri[mo.name].indexOf("fa-")>-1),o.xp6(1),o.Q6J("ngIf",-1===ri[mo.name].indexOf("fa-"))}}function ai(Ti,mr){if(1&Ti&&(o.TgZ(0,"span"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&Ti){const ri=o.oxw(3).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.lcZ(2,1,ri[mo.name])," ")}}function Gn(Ti,mr){if(1&Ti&&(o.TgZ(0,"span"),o._uU(1),o.ALo(2,"zenLabelMask"),o.qZA()),2&Ti){const ri=o.oxw(4).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.Dn7(2,1,ri[mo.name],mo.name+"Masking",ri.countryCode)," ")}}function Io(Ti,mr){if(1&Ti&&(o.TgZ(0,"span"),o._uU(1),o.ALo(2,"zenLabelMask"),o.qZA()),2&Ti){const ri=o.oxw(4).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.hij(" ",o.Dn7(2,1,ri[mo.name],ri[mo.name+"Masking"],ri.countryCode)," ")}}function wr(Ti,mr){if(1&Ti&&(o.TgZ(0,"span"),o._uU(1),o.ALo(2,"translate"),o.ALo(3,"toString"),o.qZA()),2&Ti){const ri=o.oxw(4).$implicit,mo=o.oxw().$implicit;o.xp6(1),o.Oqu(o.lcZ(2,1,o.lcZ(3,3,ri[mo.name])))}}function bs(Ti,mr){if(1&Ti&&(o.ynx(0,42),o.YNc(1,Gn,3,5,"span",43),o.YNc(2,Io,3,5,"span",43),o.YNc(3,wr,4,5,"span",45),o.BQk()),2&Ti){const ri=o.oxw(4).$implicit;o.Q6J("ngSwitch",ri.maskType),o.xp6(1),o.Q6J("ngSwitchCase","all"),o.xp6(1),o.Q6J("ngSwitchCase","other")}}function ba(Ti,mr){if(1&Ti&&(o.TgZ(0,"div"),o.YNc(1,ai,3,3,"span",51),o.YNc(2,bs,4,3,"ng-template",null,52,o.W1O),o.qZA()),2&Ti){const ri=o.MAs(3),mo=o.oxw(3).$implicit;o.xp6(1),o.Q6J("ngIf",mo.translate)("ngIfElse",ri)}}function ms(Ti,mr){if(1&Ti&&(o.ynx(0,42),o.YNc(1,Bi,3,4,"div",43),o.YNc(2,Xo,3,4,"div",43),o.YNc(3,Lo,3,4,"div",43),o.YNc(4,or,3,4,"div",44),o.YNc(5,xr,2,1,"div",43),o.YNc(6,Nr,3,4,"div",44),o.YNc(7,as,3,4,"div",43),o.YNc(8,rt,3,2,"div",43),o.YNc(9,ba,4,2,"div",45),o.BQk()),2&Ti){const ri=o.oxw(2).$implicit;o.Q6J("ngSwitch",ri.type),o.xp6(1),o.Q6J("ngSwitchCase","date"),o.xp6(1),o.Q6J("ngSwitchCase","dateTime"),o.xp6(1),o.Q6J("ngSwitchCase","time"),o.xp6(1),o.Q6J("ngSwitchCase","numeric"),o.xp6(1),o.Q6J("ngSwitchCase","int"),o.xp6(1),o.Q6J("ngSwitchCase","money"),o.xp6(1),o.Q6J("ngSwitchCase","mask"),o.xp6(1),o.Q6J("ngSwitchCase","icon")}}function Oa(Ti,mr){if(1&Ti&&(o.TgZ(0,"mat-cell",40),o.YNc(1,oo,1,0,"ng-container",38),o.YNc(2,ms,10,9,"ng-template",null,41,o.W1O),o.qZA()),2&Ti){const ri=mr.$implicit,mo=o.MAs(3),Ii=o.oxw().$implicit,yo=o.oxw(2);o.Q6J("fxFlex",Ii.width)("ngClass",o.VKq(4,j,yo.isHiddenColumn(Ii.name))),o.xp6(1),o.Q6J("ngTemplateOutlet",yo.columnTemplates&&yo.columnTemplates[Ii.name+"CellTemplate"]||mo)("ngTemplateOutletContext",o.VKq(9,z,o.WLB(6,H,Ii,ri)))}}function Ea(Ti,mr){1&Ti&&(o.ynx(0,34),o.YNc(1,Zi,4,11,"mat-header-cell",35),o.YNc(2,Oa,4,11,"mat-cell",36),o.BQk()),2&Ti&&o.Q6J("matColumnDef",mr.$implicit.name)}function Sa(Ti,mr){if(1&Ti&&o._UZ(0,"mat-header-row",53),2&Ti){const ri=o.oxw(2);o.Q6J("ngClass",1!=ri.columns.length||ri.showHeader?null:"zs-hidden")}}function tr(Ti,mr){if(1&Ti&&(o.TgZ(0,"mat-option",62),o._UZ(1,"mat-row"),o.qZA()),2&Ti){const ri=mr.$implicit,mo=o.oxw(2);o.Q6J("ngClass",o.VKq(3,yi,null==mo.selectedId?null:mo.selectedId.includes(ri[mo.valueField])))("@animate",o.VKq(6,hi,o.DdM(5,wi)))("value",ri)}}function Mr(Ti,mr){if(1&Ti&&(o.TgZ(0,"mat-table",56),o.ynx(1,25),o.YNc(2,ki,2,1,"mat-header-cell",26),o.YNc(3,bo,2,1,"mat-cell",27),o.BQk(),o.YNc(4,Ea,3,1,"ng-container",28),o.YNc(5,Sa,1,1,"mat-header-row",29),o.TgZ(6,"div"),o.YNc(7,tr,2,8,"mat-option",57),o.qZA()()),2&Ti){const ri=o.oxw();o.Q6J("dataSource",ri.rows)("@animateStagger",o.DdM(6,Ei)),o.xp6(4),o.Q6J("ngForOf",ri.columnConfig),o.xp6(1),o.Q6J("matHeaderRowDef",ri.displayedColumns)("matHeaderRowDefSticky",!0),o.xp6(2),o.Q6J("matRowDefColumns",ri.displayedColumns)}}function Li(Ti,mr){if(1&Ti){const ri=o.EpF();o.TgZ(0,"div")(1,"button",64),o.NdJ("click",function(){o.CHM(ri);const Ii=o.oxw();return o.KtG(Ii.loadMore())}),o._uU(2),o.ALo(3,"translate"),o.qZA()()}2&Ti&&(o.xp6(2),o.hij(" ",o.lcZ(3,1,"loadMore")," ..."))}function Ao(Ti,mr){if(1&Ti&&(o.TgZ(0,"mat-hint",65),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&Ti){const ri=o.oxw();o.xp6(1),o.Oqu(o.lcZ(2,1,ri.hint))}}const ao=function(Ti,mr){return{"disable-form-field":Ti,"mat-input-focused":mr}},Go=function(Ti){return{"input-compact":Ti}},pr=function(Ti){return{"cdk-viewport":Ti}};function Rr(Ti){const mr={required:{given:Ti.value,message:"This field is required"}};if(Ti.validator){const ri=Ti.validator({});if(ri&&ri.required)return null==Ti.value||void 0===Ti.value?mr:null}return null}let br=(()=>{class Ti{set val(ri){const mo=setTimeout(()=>{this.columns.length>0&&(!ri?.length&&this.selection?.selected?.length&&this.selection.clear(),this.data=ri,this.updateTable(this.data),clearTimeout(mo))})}set colVals(ri){ri&&(this.columns=ri)}set append(ri){ri?this.appendTable(ri):this.isLastPage=!0}set setHiddenColumns(ri){ri&&(this.hiddenColumns=ri)}set zenSelectConfig(ri){if(ri){const mo=setTimeout(()=>{this.zenSelConfig=ri,this.columnConfig=ri.columns||[],this.columns=[],this.filterColumns=ri.filterColumns||[],this.totalCount=ri.totalCount||null,this.updateTable(ri.data),this.isLastPage=!!(this.rows.data||this.rows._data).length&&null!==this.totalCount&&(this.rows.data||this.rows._data).length>=this.totalCount,clearTimeout(mo)},1)}}constructor(ri,mo,Ii,yo,lr){this.cs=ri,this.us=mo,this.cdRef=Ii,this._ngZ=yo,this.translate=lr,this.allowPropagate=!1,this.obj=Object,this.placeholderHeight=0,this.itemSize=48,this.data=[],this.columns=[],this.multiGroupData=[],this.hiddenColumns=[],this.pageNumber=1,this.isLastPage=!1,this.isPageChangeSuccess=!0,this.groupList=[],this.modifySelectedData=!1,this.hasMultiGroupValue=!1,this.enableVirtualScroll=!1,this.allRowSelected=!1,this.disableSearch=!1,this.filterColumns=[],this.disabled=!1,this.closeOnSelect=!0,this.floatLabel="auto",this.emitKeyUp=!1,this.panelClass="",this.clearOnBlur=!0,this.clearButton=!0,this.emitDefaultSelection=!0,this.showHeaderCheckBox=!0,this.pageSize=20,this.virtualScroll=!1,this.showHeader=!1,this.serverSideSearch=!1,this.headerDisplay={},this.isMultiGroup=!1,this.fetch=new o.vpe,this.selectEvent=new o.vpe,this.clickEvent=new o.vpe,this.blurEvent=new o.vpe,this.addActionClick=new o.vpe,this.keyUp=new o.vpe,this.zenSelectInit=new o.vpe,this.onAutoSelect=new o.vpe,this.onLoadMore=new o.vpe,this.onSearch=new o.vpe,this.scroll=Yr=>{const fi=Array.prototype.slice.call(Yr.srcElement.classList,0);if(!this.enableVirtualScroll&&!fi.includes("mat-autocomplete-panel")&&this.triggerAutocompleteInput.panelOpen)return this.triggerAutocompleteInput.closePanel(),void window.removeEventListener("scroll",this.scroll,!0);this.enableVirtualScroll&&!fi.includes("cdk-virtual-scroll-viewport")&&this.triggerAutocompleteInput.panelOpen&&(this.triggerAutocompleteInput.closePanel(),window.removeEventListener("scroll",this.scroll,!0))},this.onChange=Yr=>{},this.onTouched=Yr=>{},this.subs=new _.w0,this.selectedId=[],this.selectedName=[],this.requiredPlaceholder=!1,this.lastSearchText="",this.inputFocused=!1,this.isChanged=!1,this.onInitHit=!1,this.fetchOnProgress=!1,this.triggerClickEvent=!1,this.hiddenColumns.push("selected"),this.selection=new e.Ov(!1,[])}ngOnInit(){this.uniqueId=this.selectorId?this.selectorId:Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5),this.onInitHit=!0,this.pageIndex=1,this.tempPageIdx=0,this.allRowSelected=!1,this.zenSelConfig||this.updateTable(this.data),this.multiple&&(this.selection=new e.Ov(this.multiple,[])),this.selectedValuesToArray(),this.subs.add(this.selection.changed.subscribe(ri=>{this.isChanged=!0,this.selectedValuesToArray(),this.emitDefaultSelection?this.selectEvent.emit(this.selection.selected):this.emitDefaultSelection=!0,this.triggerClickEvent&&(this.triggerClickEvent=!1,this.clickEvent.emit(this.selection.selected))})),this.zenSelectInit.emit(this)}emitChanges(){this._ngZ.run(()=>{this.blurEvent.emit(this.selection.selected)})}panelClose(){this.emitChanges(),this.enableVirtualScroll&&this.rows&&(this.rows&&this.rows.viewport&&this.rows.viewport.scrollToIndex(0),this.rows.allData=this.rows.filteredData),this.multiple&&this.clearOnBlur&&setTimeout(()=>{this.searchInput.nativeElement.value="",this.rows.filter="",this.cdRef.detectChanges()},300)}writeValue(ri){if(this.onInitHit&&!this.emitDefaultSelection&&void 0===ri&&(this.emitDefaultSelection=!0),void 0!==ri){if(null==ri)return this.selection.clear(),void(this.ngModelSelected=[]);if(this.multiple&&0===ri.length)return void this.selection.clear();if(Array.isArray(ri)||(ri=[ri]),this.rows&&this.rows.data&&this.rows.data.length>0){let mo=[];ri.length>0&&(mo=this.rows.data.filter(Ii=>ri.includes(Ii[this.valueField]))),mo.length>0&&(this.multiple?(this.selection.clear(),this.selection.select(...mo)):this.selection.select(mo[0]))}else this.ngModelSelected=ri}}registerOnChange(ri){this.onChange=ri}registerOnTouched(ri){this.onTouched=ri}setDisabledState(ri){this.disabled=ri}isAllSelected(){return this.selection.selected.length===this.rows.data.length}isAllGroupSelected(ri){let mo=this.selection.selected?.filter(Gs=>Gs.zenSelGroupName==ri.zenSelGroupName).length||0,Ii=this.rows.data.filter(Gs=>Gs.zenSelGroupName==ri.zenSelGroupName).length,yo=this.selection.selected.filter(Gs=>Gs.hasOwnProperty("zenSelGroup"))?.findIndex(Gs=>Gs.zenSelGroup==ri.zenSelGroupName)>=0;var lr=this.rows.data.findIndex(Gs=>Gs.hasOwnProperty("zenSelGroup")&&Gs.zenSelGroup==ri.zenSelGroupName),Yr=this.rows.data.find(Gs=>Gs.hasOwnProperty("zenSelGroup")&&Gs.hasOwnProperty("zenSelIsGroupBy")&&Gs.zenSelGroup==ri.zenSelGroupName);mo<=1&&!yo&&mo<=Ii||0==mo&&yo||mo==Ii&&yo?mo==Ii&&Ii>1?lr>=0&&(this.rows.data[lr].isIndeterminate=!1):mo==Ii&&1==Ii?this.selection.toggle(Yr):0==mo?(this.selection.toggle(Yr),lr>=0&&(this.rows.data[lr].isIndeterminate=!1)):(this.selection.toggle(Yr),lr>=0&&(this.rows.data[lr].isIndeterminate=!0)):mo>=1&&mo!=Ii?this.selection.selected.findIndex(Gs=>Gs.hasOwnProperty("zenSelGroup")&&Gs.hasOwnProperty("zenSelIsGroupBy")&&Gs.zenSelGroup==ri.zenSelGroupName)<0?this.selection.toggle(Yr):lr>=0&&(this.rows.data[lr].isIndeterminate=!0):this.isMultiGroupEdit&&mo>=1&&mo==Ii&&this.selection.toggle(Yr)}masterToggle(ri){this.allRowSelected=ri.checked,this.allowPropagate=!0,this.isMultiGroup?this.isAllSelected()?this.selection.clear():this.selection.select(...this.rows.data):this.isAllSelected()?this.selection.clear():this.selection.select(...this.rows.filteredData)}clear(ri=!1,mo=!1){this.triggerClickEvent=mo,this.allowPropagate=!0,this.searchInput.nativeElement.value="",this.rows.filter="",this.allRowSelected=!1,this.selection.clear(),this.onTouched(ri),this.emitChanges()}erase(){!this.multiple&&""===this.searchInput.nativeElement.value&&this.clearButton&&this.clear(!1,!0)}onTriggerClick(ri){this.disabled||(window.addEventListener("scroll",this.scroll,!0),this.inputFocused=!0,ri.openPanel(),this.searchInput.nativeElement.focus())}onInputFocus(ri){this.inputFocused=!0,ri.openPanel(),this.searchInput.nativeElement.click()}focus(){this.searchInput.nativeElement.focus()}getData(ri){this.zsAutoTrigger.activeOption||(this.fetch.emit(ri),this.lastSearchText=ri,this.fetchOnProgress=!0)}entitySearch(ri,mo){this.subs.add(this.cs.entitySearch(ri,mo).subscribe(Ii=>{this.updateTable(Ii)}))}filterFn(ri,mo){let Ii="";for(const lr of this.filterColumns)Ii+=ri[lr]?this.trimWhiteSpace(ri[lr].toString())+" ":" ";const yo=this.trimWhiteSpace(mo);return Ii.toLowerCase().search(yo.toLowerCase())>-1}updateTable(ri){if(ri&&ri.length&&this.columns&&this.isMultiGroup&&ri[0].hasOwnProperty("zenSelGroupKey")&&this.columns.findIndex(yo=>yo==ri[0].zenSelGroupKey)<0&&this.columns.unshift(ri[0].zenSelGroupKey),null==ri||0===ri.length||ri.constructor!==Array)this.selectedId=[],this.selectedName=[];else if(ri){if(!this.columnConfig){0===this.columns.length&&(this.columns=Object.getOwnPropertyNames(ri[0])),this.columnConfig=[];for(const yo of this.columns)this.columnConfig.push({name:yo})}if(0===this.columns.length&&(this.columns=this.columnConfig.map(yo=>yo.name)),0===this.filterColumns.length&&(this.filterColumns=this.columns),this.valueField||(this.valueField=this.columns[0]),this.nameField||(this.nameField="company"==this.customNameField?.toLowerCase()||"office"==this.customNameField?.toLowerCase()?this.columns[2]:this.columns[1]),this.displayedColumns=this.multiple?["select"].concat(this.columns):this.columns,this.selection.selected.length>0){const yo=ri.map(fi=>fi[this.valueField]),Yr=this.selection.selected.map(fi=>fi[this.valueField]).filter(fi=>-1===yo.indexOf(fi)),Gs=[];for(const fi of Yr){const Ho=this.selection.selected.find(_t=>_t[this.valueField]===fi);Gs.push(Ho)}Gs.length>0?(this.selection.deselect(...Gs),this.isChanged=!0):(this.selectedValuesToArray(),this.selectEvent.emit(this.selection.selected))}if(this.ngModelSelected&&this.ngModelSelected.length>0){let yo=this.ngModelSelected?.map(lr=>ri.find(Yr=>Yr[this.valueField]===lr)).filter(lr=>void 0!==lr);0==yo.length&&(yo=ri.filter(lr=>this.ngModelSelected.includes(lr[this.valueField]?.toString()))),yo.length>0&&(this.multiple?(this.selection.clear(),this.selection.select(...yo)):this.selection.select(yo[0]),this.isChanged=!0),this.ngModelSelected=[]}else 0===this.selection.selected.length&&this.autoSelect&&ri.length>0?this.onAutoSelect.emit(ri[0][this.valueField]):0!==this.selection.selected.length||!this.requiredPlaceholder||1!==ri.length||void 0!==this.autoSelect&&!0!==this.autoSelect?ri.map(yo=>{yo.selected&&this.onAutoSelect.emit(yo[this.valueField])}):this.onAutoSelect.emit(ri[0][this.valueField])}else this.columnConfig=null,this.columns=null;if(this.virtualScroll)this.enableVirtualScroll=ri?.length>100,ri&&this.enableVirtualScroll?(this.rows=new s.w(ri,this.viewport,this.itemSize),this.rows.offsetChange.subscribe(yo=>{this.placeholderHeight=yo}),this.rows.allData=ri||[]):this.rows=new u.r4(ri||[]);else if(this.isMultiGroup&&ri&&ri[0]?.hasOwnProperty("zenSelGroupKey")){this.hasMultiGroupValue=!0,this.multiGroupData=[],this.isMultiGroupEdit||(this.selection.clear(),this.selectedId=[],this.selectedName=[]);var mo=this.groupBy(ri,"zenSelGroupName"),Ii=ri[0].zenSelGroupKey;Object.keys(mo).forEach(yo=>{var lr={zenSelGroup:yo,zenSelIsGroupBy:!0,isIndeterminate:!1};lr[Ii]=yo,this.multiGroupData.push(lr),mo[yo].forEach((Gs,fi,Ho)=>{0!=fi&&(Gs.notFirstChild=!0),0==fi&&(Gs.firstChild=!0),fi===Ho.length-1&&(Gs.lastChild=!0),this.multiGroupData.push(Gs)})}),this.rows=new u.r4(this.multiGroupData),this.isMultiGroupEdit&&(this.selection.selected.forEach(yo=>{this.onSelect(yo,{checked:!0})}),this.isMultiGroupEdit=!this.isMultiGroupEdit)}else this.rows=new u.r4(ri||[]);this.rows.filterPredicate=(yo,lr)=>this.filterFn(yo,lr),this.rows.data.length&&this.rows.data[0].hasOwnProperty("zenSelGroupName")&&(this.rows.groupingData=this.groupArrayOfObjects(this.rows.data,"zenSelGroupName"),this.groupList=[],this.groupList=Object.keys(this.rows.groupingData)),this.fetchOnProgress&&this.rows.data&&this.rows.data.length>0&&setTimeout(()=>{this.pageIndex=1,this.tempPageIdx=0,this.isPageChangeSuccess=!0,this.zsAutoTrigger.openPanel()}),this.fetchOnProgress=!1}isGroup(ri,mo){return mo.zenSelIsGroupBy}groupBy(ri,mo){return ri.reduce(function(Ii,yo){return(Ii[yo[mo]]=Ii[yo[mo]]||[]).push(yo),Ii},{})}trimWhiteSpace(ri){return ri.replace(/\s/g,"")}groupArrayOfObjects(ri,mo){return ri.reduce(function(Ii,yo){return(Ii[yo[mo]]=Ii[yo[mo]]||[]).push(yo),Ii},{})}placeholderWhen(ri,mo){return 0===ri}onSelect(ri,mo,Ii=!0){if(this.searchInput.nativeElement.value="",this.triggerClickEvent=!0,Ii&&(this.allowPropagate=!0),mo&&!mo.hasOwnProperty("checked")&&(this.multiple||!this.closeOnSelect)&&mo.stopPropagation(),this.multiple)if(this.isMultiGroupEdit||this.selection.toggle(ri),1==ri.hasOwnProperty("zenSelGroup")&&null==mo&&(mo=this.selection.selected.length&&this.selection.selected.findIndex(_t=>_t.zenSelGroup==ri.zenSelGroup)>=0?{checked:!0}:{checked:!1}),this.isMultiGroup&&ri.hasOwnProperty("zenSelIsGroupBy")&&ri.hasOwnProperty("zenSelGroup")){var lr,yo=[],Yr=this.rows.data.findIndex(Ho=>Ho.hasOwnProperty("zenSelGroup")&&Ho.zenSelGroup==ri.zenSelGroup);if(this.selection.selected.length&&(this.selection.selected.filter(Ho=>!Ho.hasOwnProperty("zenSelIsGroupBy")&&!Ho.hasOwnProperty("zenSelGroup")&&Ho.zenSelGroupName==ri.zenSelGroup).forEach(Ho=>yo.push(Ho[this.valueField])),lr=this.rows.data.filter(Ho=>!Ho.hasOwnProperty("zenSelIsGroupBy")&&!Ho.hasOwnProperty("zenSelGroup")&&Ho.zenSelGroupName==ri.zenSelGroup).length||0),yo=yo.filter(Ho=>null!=Ho),mo&&mo.hasOwnProperty("checked")&&(1==mo.checked&&lr!=yo.length||0==mo.checked&&lr!=yo.length)?yo.length?this.rows.data.filter(Ho=>!Ho.hasOwnProperty("zenSelIsGroupBy")&&!Ho.hasOwnProperty("zenSelGroup")&&this.selection).forEach(Ho=>{Ho.zenSelGroupName.toString().toLowerCase()==ri.zenSelGroup.toString().toLowerCase()&&!yo.includes(Ho[this.valueField])&&this.selection.toggle(Ho)}):this.rows.data.filter(Ho=>!Ho.hasOwnProperty("zenSelIsGroupBy")&&!Ho.hasOwnProperty("zenSelGroup")&&this.selection).forEach(Ho=>{Ho.zenSelGroupName.toString().toLowerCase()==ri.zenSelGroup.toString().toLowerCase()&&this.selection.toggle(Ho)}):this.rows.data.filter(Ho=>!Ho.hasOwnProperty("zenSelIsGroupBy")&&!Ho.hasOwnProperty("zenSelGroup")&&this.selection).forEach(Ho=>{Ho.zenSelGroupName.toString().toLowerCase()==ri.zenSelGroup.toString().toLowerCase()&&yo.includes(Ho[this.valueField])&&this.selection.toggle(Ho)}),ri.hasOwnProperty("zenSelGroup")){var Gs=this.selection.selected.findIndex(Ho=>Ho.hasOwnProperty("zenSelGroup")&&Ho.zenSelGroup==ri.zenSelGroup),fi=this.selection.selected.filter(Ho=>Ho.zenSelGroupName==ri.zenSelGroup);Gs<0&&fi.length&&(this.selection.toggle(ri),Yr>=0&&(this.rows.data[Yr].isIndeterminate=!1))}}else this.isMultiGroup&&this.hasMultiGroupValue&&!ri.hasOwnProperty("zenSelIsGroupBy")&&this.isAllGroupSelected(ri);else this.selection.select(ri),this.rows.filter="",this.searchInput.nativeElement.value="";window.removeEventListener("scroll",this.scroll,!0)}selectedValuesToArray(){this.selectedId=this.us.getPropertyArray(this.selection.selected,this.valueField),this.selectedName=this.us.getPropertyArray(this.selection.selected,this.nameField),this.isMultiGroup&&this.selection.selected.findIndex(ri=>ri.hasOwnProperty("zenSelIsGroupBy")&&ri.hasOwnProperty("zenSelGroup"))>=0&&(this.selectedId=this.selectedId.filter(ri=>null!=ri),this.selectedName=this.selectedName.filter(ri=>null!=ri)),this.selectedName.includes(this.searchInput.nativeElement.value)&&(this.searchInput.nativeElement.value=""),this.multiple&&this.selectedName.length>0&&(this.ngModelSelected=this.selectedId,this.selectedName=this.selectedName.length>1?[`${this.translate?.instant(""==this.selectedName[0]?" ":this.selectedName[0])} and ${this.selectedName.length-1} more...`]:[`${this.translate?.instant(""==this.selectedName[0]?" ":this.selectedName[0])}`]),this.allowPropagate&&this.onChange(this.multiple?this.selectedId:void 0!==this.selectedId[0]&&null!=this.selectedId[0]?this.selectedId[0]:null),this.cdRef.detectChanges(),this.isChanged=!1}filter(ri,mo){!this.rows||this.disableSearch||(this.rows.filter=ri.trim(),this.emitKeyUp&&0===this.selectedId.length&&this.keyUp.emit(ri),!this.emitKeyUp&&this.serverSideSearch&&0===this.selectedId.length&&13==mo.which&&this.onSearch.emit(ri),this.enableVirtualScroll&&(this.rows.viewport.scrollToIndex(0),this.rows.allData=this.rows.filteredData))}onBlur(){!this.multiple&&this.clearOnBlur&&setTimeout(()=>{this.searchInput.nativeElement.value="",this.rows.filter=""},300),this.inputFocused=!1,this.onTouched(!0)}isHiddenColumn(ri){return!!this.hiddenColumns.includes(ri)}addAction(ri,mo){this.addActionClick.emit(mo)}loadMore(){let ri;null===this.totalCount||0===this.totalCount?ri=this.rows.data.length/this.pageSize+1:(this.isPageChangeSuccess||0===this.tempPageIdx&&(this.pageIndex=this.pageIndex-1,ri=this.pageIndex,this.tempPageIdx++),(0===this.pageIndex||this.isPageChangeSuccess)&&(this.pageIndex=this.pageIndex+1,ri=this.pageIndex,this.isPageChangeSuccess=!1)),this.onLoadMore.emit({pageSize:this.pageSize,pageNumber:ri})}appendTable(ri){null==ri||0===ri.length||ri.constructor!==Array||(this.allRowSelected&&this.selection.select(...this.selection.selected,...ri),this.isPageChangeSuccess=!0,this.tempPageIdx=0,this.rows.data=[...this.rows.data,...ri],this.isLastPage=!!(this.rows.data||this.rows._data).length&&null!==this.totalCount&&this.rows.data.length>=this.totalCount)}ngAfterViewInit(){this.container.nativeElement.parentElement.hasAttribute("required")&&(""===this.container.nativeElement.parentElement.getAttribute("required")?this.requiredPlaceholder=!0:"true"===this.container.nativeElement.parentElement.getAttribute("required")&&(this.requiredPlaceholder=!(!this.container.nativeElement.parentElement.hasAttribute("required")||""!==this.container.nativeElement.parentElement.getAttribute("required")&&"true"!==this.container.nativeElement.parentElement.getAttribute("required")&&(this.container.nativeElement.parentElement.getAttribute("required"),1))))}updateView(){this.cdRef.detectChanges(),this.cdRef.markForCheck()}ngAfterViewChecked(){this.uiRequiredPlaceholder!==this.requiredPlaceholder&&(this.uiRequiredPlaceholder=this.requiredPlaceholder,this.cdRef.detectChanges())}ngOnDestroy(){window.removeEventListener("scroll",this.scroll,!0),this.subs.unsubscribe()}static#e=this.\u0275fac=function(mo){return new(mo||Ti)(o.Y36(C.v),o.Y36(R.t),o.Y36(o.sBO),o.Y36(o.R0b),o.Y36(x.sK))};static#t=this.\u0275cmp=o.Xpm({type:Ti,selectors:[["zen-select"]],viewQuery:function(mo,Ii){if(1&mo&&(o.Gf(O,7),o.Gf(U,7),o.Gf(V,7),o.Gf(K,7),o.Gf(Ti,5),o.Gf(O,5,l.QJ)),2&mo){let yo;o.iGM(yo=o.CRH())&&(Ii.searchInput=yo.first),o.iGM(yo=o.CRH())&&(Ii.container=yo.first),o.iGM(yo=o.CRH())&&(Ii.zsAutoTrigger=yo.first),o.iGM(yo=o.CRH())&&(Ii.viewport=yo.first),o.iGM(yo=o.CRH())&&(Ii.zenSelect=yo.first),o.iGM(yo=o.CRH())&&(Ii.triggerAutocompleteInput=yo.first)}},inputs:{isMultiGroupEdit:"isMultiGroupEdit",disableSearch:"disableSearch",selectorId:"selectorId",columnTemplates:"columnTemplates",placeholder:"placeholder",filterColumns:"filterColumns",disabled:"disabled",multiple:"multiple",closeOnSelect:"closeOnSelect",nameField:"nameField",customNameField:"customNameField",valueField:"valueField",floatLabel:"floatLabel",emitKeyUp:"emitKeyUp",autoSelect:"autoSelect",panelClass:"panelClass",clearOnBlur:"clearOnBlur",clearButton:"clearButton",emitDefaultSelection:"emitDefaultSelection",showHeaderCheckBox:"showHeaderCheckBox",pageable:"pageable",pageSize:"pageSize",virtualScroll:"virtualScroll",showHeader:"showHeader",serverSideSearch:"serverSideSearch",hint:"hint",headerDisplay:"headerDisplay",toolTip:"toolTip",name:"name",val:["data","val"],colVals:["columns","colVals"],append:"append",setHiddenColumns:["hiddenColumns","setHiddenColumns"],zenSelectConfig:["config","zenSelectConfig"],isMultiGroup:"isMultiGroup"},outputs:{fetch:"fetch",selectEvent:"selectEvent",clickEvent:"clickEvent",blurEvent:"blurEvent",addActionClick:"addActionClick",keyUp:"keyUp",zenSelectInit:"zenSelectInit",onAutoSelect:"onAutoSelect",onLoadMore:"onLoadMore",onSearch:"onSearch"},features:[o._Bn([{provide:a.JU,useExisting:(0,o.Gpc)(()=>Ti),multi:!0},{provide:a.Cf,useValue:Rr,multi:!0},{provide:n.yU,useClass:A.O}])],decls:22,vars:42,consts:[[1,"zs-container",3,"ngClass"],["zsContainer",""],[1,"zs-header"],[1,"obs-mat-container",3,"floatLabel","ngClass"],[1,"zenauto-selected-option",3,"selectable","tabIndex"],["zsChipList",""],[3,"selectable","color","click",4,"ngFor","ngForOf"],["matInput","","autocomplete","new-password","type","text","spellcheck","false",3,"matAutocompleteDisabled","matAutocomplete","ngClass","placeholder","name","disabled","matChipInputFor","id","zen-validator","click","keyup","blur","keydown.enter","keydown.backspace","focus"],["searchInput","","zsAutoTrigger","matAutocompleteTrigger"],["id","zs-clear-btn","tabindex","-1","mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["matSuffix","",3,"click",4,"ngIf"],[3,"displayWith","tabIndex","optionSelected","closed"],["zsAuto","matAutocomplete"],["rowHeight","48","offset","280",3,"ngClass"],["cdkViewPort",""],["id","zs-table",3,"dataSource","multiTemplateDataRows",4,"ngIf"],["id","zs-table",3,"dataSource",4,"ngIf"],[4,"ngIf"],["align","end",4,"ngIf"],[3,"selectable","color","click"],[1,"chip-text-holder",3,"matTooltip"],["id","zs-clear-btn","tabindex","-1","mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["matSuffix","",1,"secondary-text"],["matSuffix","",3,"click"],["id","zs-table",3,"dataSource","multiTemplateDataRows"],["matColumnDef","select"],[4,"matHeaderCellDef"],[4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],[3,"ngClass",4,"matHeaderRowDef","matHeaderRowDefSticky"],["disabled","","mat-row","",3,"height",4,"matRowDef","matRowDefColumns","matRowDefWhen"],[3,"ngClass","value",4,"matRowDef","matRowDefColumns"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],[3,"matColumnDef"],[3,"fxFlex","ngClass",4,"matHeaderCellDef"],["matRipple","",3,"fxFlex","ngClass",4,"matCellDef"],[3,"fxFlex","ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["noHeaderTemplate",""],["matRipple","",3,"fxFlex","ngClass"],["noCellTemplate",""],[3,"ngSwitch"],[4,"ngSwitchCase"],["style","float:right;",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[2,"float","right"],["class","svg-icon",3,"ngClass","svgIcon",4,"ngIf"],["matTooltipPosition","right",3,"ngClass","matTooltip",4,"ngIf"],[1,"svg-icon",3,"ngClass","svgIcon"],["matTooltipPosition","right",3,"ngClass","matTooltip"],[4,"ngIf","ngIfElse"],["noTranslate",""],[3,"ngClass"],["disabled","","mat-row",""],[3,"ngClass","value"],["id","zs-table",3,"dataSource"],["matRipple","",3,"ngClass","value",4,"matRowDef","matRowDefColumns"],["class","isGroup",3,"ngClass","id","checked","indeterminate","click","change",4,"ngIf"],["class","isNormal",3,"checked","click","change",4,"ngIf"],[1,"isGroup",3,"ngClass","id","checked","indeterminate","click","change"],[1,"isNormal",3,"checked","click","change"],["matRipple","",3,"ngClass","value"],[3,"checked","indeterminate","change",4,"ngIf"],["mat-button","","color","accent",1,"w-100-p",3,"click"],["align","end"]],template:function(mo,Ii){if(1&mo){const yo=o.EpF();o.TgZ(0,"div",0,1)(2,"div",2)(3,"mat-form-field",3)(4,"mat-chip-list",4,5),o.YNc(6,X,7,12,"mat-chip",6),o.TgZ(7,"input",7,8),o.NdJ("click",function(){o.CHM(yo);const Yr=o.MAs(9);return o.KtG(Ii.onTriggerClick(Yr))})("keyup",function(Yr){return Ii.filter(Yr.target.value,Yr)})("blur",function(){return Ii.onBlur()})("keydown.enter",function(Yr){return Yr.preventDefault(),Ii.getData(Yr.target.value)})("keydown.backspace",function(){return Ii.erase()})("focus",function(){o.CHM(yo);const Yr=o.MAs(9);return o.KtG(Ii.onInputFocus(Yr))}),o.ALo(10,"translate"),o.qZA(),o.YNc(11,me,3,0,"button",9),o.YNc(12,J,2,0,"mat-icon",10),o.qZA(),o.TgZ(13,"mat-autocomplete",11,12),o.NdJ("optionSelected",function(Yr){return Ii.onSelect(Yr.option.value,null)})("closed",function(){return Ii.panelClose()}),o.TgZ(15,"cdk-virtual-scroll-viewport",13,14),o.YNc(17,mi,8,9,"mat-table",15),o.qZA(),o.YNc(18,li,9,7,"mat-table",16),o.YNc(19,Mr,8,7,"mat-table",16),o.YNc(20,Li,4,3,"div",17),o.qZA(),o.YNc(21,Ao,3,3,"mat-hint",18),o.qZA()()()}if(2&mo){const yo=o.MAs(5),lr=o.MAs(14);o.Q6J("ngClass",Ii.panelClass),o.xp6(3),o.Q6J("floatLabel",Ii.floatLabel)("ngClass",o.WLB(35,ao,1==Ii.disabled,1==Ii.inputFocused)),o.uIk("appearance",Ii.zenSelConfig&&Ii.zenSelConfig.appearance?Ii.zenSelConfig.appearance:""),o.xp6(1),o.Q6J("selectable",!1)("tabIndex",-1),o.xp6(2),o.Q6J("ngForOf",Ii.selectedName),o.xp6(1),o.hYB("placeholder","",o.lcZ(10,33,Ii.placeholder),"",Ii.uiRequiredPlaceholder?" *":"",""),o.s9C("zen-validator",Ii.uiRequiredPlaceholder?"zenSelect.required":"zenSelect.optional"),o.Q6J("matAutocompleteDisabled",Ii.disabled)("matAutocomplete",lr)("ngClass",o.VKq(38,Go,!Ii.clearOnBlur))("name",Ii.name)("disabled",Ii.disabled)("matChipInputFor",yo)("id",Ii.uniqueId),o.uIk("aria-label",Ii.placeholder),o.xp6(4),o.Q6J("ngIf",Ii.clearButton&&!Ii.disabled&&Ii.selectedId.length>0),o.xp6(1),o.Q6J("ngIf",!Ii.disabled),o.xp6(1),o.IyS("",Ii.panelClass," bigger-mat-ac \n        ",Ii.enableVirtualScroll?"zenVirtual":"zenScroll"," \n        ",Ii.rows&&Ii.obj.keys(Ii.rows).includes("filteredData")&&Ii.rows.filteredData.length<=4?"adjustPanelHeight":"",""),o.Q6J("displayWith",Ii.displayWith)("tabIndex",-1),o.xp6(2),o.Q6J("ngClass",o.VKq(40,pr,Ii.enableVirtualScroll)),o.xp6(2),o.Q6J("ngIf",Ii.enableVirtualScroll&&!Ii.isMultiGroup||Ii.enableVirtualScroll&&Ii.isMultiGroup&&!Ii.hasMultiGroupValue),o.xp6(1),o.Q6J("ngIf",!Ii.enableVirtualScroll&&Ii.isMultiGroup&&Ii.hasMultiGroupValue),o.xp6(1),o.Q6J("ngIf",!Ii.enableVirtualScroll&&!Ii.isMultiGroup||!Ii.enableVirtualScroll&&Ii.isMultiGroup&&!Ii.hasMultiGroupValue),o.xp6(1),o.Q6J("ngIf",Ii.pageable&&!Ii.isLastPage),o.xp6(1),o.Q6J("ngIf",Ii.hint)}},dependencies:[f.mk,f.sg,f.O5,f.tP,f.RF,f.n9,f.ED,k.eB,w.Hw,g.v_,g.pH,g.nX,M.k0,p.Kd,u.ty,u.wO,u.S4,u.t3,u.R3,u.Al,u.L7,u.ML,u.fg,u.Zw,E.FC,b.ir,b.lw,b.IP,l.VN,l.QJ,I.CK,L.yH,D.oO,n.N7,f.JJ,f.H9,f.uU,x.X$,F.z,P.p],styles:['#zs-table[_ngcontent-%COMP%]     .mat-header-row{background:rgb(238,238,238)}#zs-table[_ngcontent-%COMP%]     .mat-header-row, #zs-table[_ngcontent-%COMP%]     .mat-row{border:none}#zs-table[_ngcontent-%COMP%]     .mat-option{padding:0;height:auto;border-bottom:1px solid #e8e8e8}#zs-table[_ngcontent-%COMP%]     .mat-option .mat-cell.mat-column-select{overflow:visible}.zs-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}@media (max-width: 320px){.zs-container[_ngcontent-%COMP%]{min-width:100%}}@media (max-width: 480px){.zs-container[_ngcontent-%COMP%]{min-width:100%}}.zs-container[_ngcontent-%COMP%]   .zs-header[_ngcontent-%COMP%]{min-height:64px}.zs-container[_ngcontent-%COMP%]   .zs-header[_ngcontent-%COMP%]   .zen-select-input[_ngcontent-%COMP%]{min-width:25px;flex:auto}.zs-container[_ngcontent-%COMP%]   .zs-header[_ngcontent-%COMP%]   .mat-form-field-label[_ngcontent-%COMP%]{font-size:16px;display:block!important}.zs-container[_ngcontent-%COMP%]   .zs-header[_ngcontent-%COMP%]   .obs-mat-container[_ngcontent-%COMP%]{position:relative}.zs-container[_ngcontent-%COMP%]   .zs-header[_ngcontent-%COMP%]   .obs-mat-container[_ngcontent-%COMP%]   mat-chip-list[_ngcontent-%COMP%]   mat-chip[_ngcontent-%COMP%]{width:calc(100% - 40px);display:flex!important;flex:1;padding-left:0;border-radius:0}.zs-container[_ngcontent-%COMP%]   .zs-header[_ngcontent-%COMP%]   .obs-mat-container[_ngcontent-%COMP%]   mat-chip-list[_ngcontent-%COMP%]   mat-chip[_ngcontent-%COMP%]   .chip-text-holder[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.zs-container[_ngcontent-%COMP%]   .zs-header[_ngcontent-%COMP%]   .obs-mat-container[_ngcontent-%COMP%]   mat-chip-list[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding:0;width:0px;flex:initial}.zs-container[_ngcontent-%COMP%]   .zs-header[_ngcontent-%COMP%]   .obs-mat-container[_ngcontent-%COMP%]   mat-chip-list[_ngcontent-%COMP%]   .input-compact[_ngcontent-%COMP%]{padding:0;display:flex!important;flex:3!important;width:initial}.zs-container[_ngcontent-%COMP%]   .zs-header[_ngcontent-%COMP%]   .obs-mat-container[_ngcontent-%COMP%]   mat-chip-list[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{position:absolute;right:0}.zs-container[_ngcontent-%COMP%]   .zs-header[_ngcontent-%COMP%]   .obs-mat-container[_ngcontent-%COMP%]   mat-chip-list[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{position:absolute;right:20px;display:none;top:-5px;border:0;padding:0;width:24px;height:24px;background:none}.zs-container[_ngcontent-%COMP%]   .zs-header[_ngcontent-%COMP%]   .obs-mat-container[_ngcontent-%COMP%]   mat-chip-list[_ngcontent-%COMP%]:hover   button[_ngcontent-%COMP%]{display:block}.zs-container[_ngcontent-%COMP%]   .zs-header[_ngcontent-%COMP%]   .obs-mat-container.mat-input-focused[_ngcontent-%COMP%]   mat-chip[_ngcontent-%COMP%]{width:auto;display:flex!important;flex:1!important}.zs-container[_ngcontent-%COMP%]   .zs-header[_ngcontent-%COMP%]   .obs-mat-container.mat-input-focused[_ngcontent-%COMP%]   mat-chip[_ngcontent-%COMP%]   .chip-text-holder[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.zs-container[_ngcontent-%COMP%]   .zs-header[_ngcontent-%COMP%]   .obs-mat-container.mat-input-focused[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding:0;display:flex!important;flex:3!important;width:30px}.zs-container[_ngcontent-%COMP%]   .zs-header[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:100%}.zs-container[_ngcontent-%COMP%]   .zs-header[_ngcontent-%COMP%]   .mat-table[_ngcontent-%COMP%]{overflow:auto;max-height:500px}.mat-active[_ngcontent-%COMP%]{border:solid 1px #2196f3!important}.zs-hidden[_ngcontent-%COMP%]{display:none!important}.zen-grid-select[_ngcontent-%COMP%]{padding:0!important;margin:0!important}.cdk-viewport[_ngcontent-%COMP%]{height:256px;width:100%}  .cdk-virtual-scroll-content-wrapper{transform:translateY(0)!important}.mat-icon.svg-icon[_ngcontent-%COMP%]{min-width:1px!important;min-height:1px!important;width:16px!important;height:16px!important;font-size:16px!important}.zen-child[_ngcontent-%COMP%] {overflow:visible}.zen-child[_ngcontent-%COMP%]  mat-row{position:relative}.zen-child[_ngcontent-%COMP%]  mat-row:before{content:"";background:#d9d9d9;width:1px;position:absolute;left:18px;height:105%;top:0}.zen-child[_ngcontent-%COMP%]  .mat-option-text{overflow:visible}.zen-child[_ngcontent-%COMP%]  .mat-option-text .mat-column-select{overflow:visible}.zen-child[_ngcontent-%COMP%]  .mat-option-text .mat-column-select mat-checkbox.isNormal label{position:relative}.zen-child[_ngcontent-%COMP%]  .mat-option-text .mat-column-select mat-checkbox.isNormal label:after{content:"";background:#d9d9d9;width:14px;position:absolute;left:-14px;height:1px;top:50%;right:0}.zen-child[_ngcontent-%COMP%]  .mat-option-text .mat-column-select mat-checkbox.isNormal{padding-left:20px!important}.zen-child.first-child[_ngcontent-%COMP%]   mat-row[_ngcontent-%COMP%]:before{height:136%;top:-13px}.zen-child.last-child[_ngcontent-%COMP%]   mat-row[_ngcontent-%COMP%]:before{height:62%}.zen-child.first-child.last-child[_ngcontent-%COMP%]   mat-row[_ngcontent-%COMP%]:before{height:86%}.zen-child.not-first-child.last-child[_ngcontent-%COMP%]   mat-row[_ngcontent-%COMP%]:before{height:57%}.isGroup[_ngcontent-%COMP%]{margin:0!important}.grouped[_ngcontent-%COMP%]{background-color:#f5f5f5;font-size:30px}'],data:{animation:d.L}})}return Ti})()},12430:(he,y,i)=>{"use strict";i.d(y,{L:()=>E});var e=i(96814),n=i(21819),o=i(45754),a=i(26177),l=i(84187),u=i(30617),d=i(42400),s=i(78250),A=i(54841),_=i(30481),C=i(94505),R=i(89515),x=i(20180),f=i(56223),k=i(91569),w=i(16493),g=i(14643),M=i(16672),p=i(65879);let E=(()=>{class b{static#e=this.\u0275fac=function(D){return new(D||b)};static#t=this.\u0275mod=p.oAB({type:b});static#n=this.\u0275inj=p.cJS({imports:[e.ez,f.u5,s.jT,C.yu,u.Ps,d.x4,_.AA,l.wp,A.U5,o.Zh,a.yD,n.D8,R.aw,x.L,R.aw,k.h,w.M,g.HT,M.Cl]})}return b})()},616:(he,y,i)=>{"use strict";i.d(y,{o:()=>b});var e=i(65879),n=i(66878),o=i(47394),a=i(78645),l=i(59773),u=i(74187),d=i(10256),s=i(4934),A=i(96814),_=i(83814),C=i(30617),R=i(81274),x=i(30481),f=i(94505),k=i(89515);const w=["zenStepper"];function g(I,L){if(1&I){const D=e.EpF();e.TgZ(0,"button",10),e.NdJ("click",function(){e.CHM(D);const P=e.oxw();return e.KtG(P.toggleSlidViewDetail())}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.TgZ(3,"mat-icon",7),e._uU(4),e.qZA()()}if(2&I){const D=e.oxw();e.hYB("matTooltip","",e.lcZ(1,3,"toggle")," ",e.lcZ(2,5,D.detailViewTitle),""),e.xp6(4),e.Oqu(D.toggleDetailViewIcon)}}function M(I,L){if(1&I){const D=e.EpF();e.TgZ(0,"zen-stepper",11,12),e.NdJ("onSave",function(P){e.CHM(D);const O=e.oxw();return e.KtG(O.closeOnSave(P))})("onStepChange",function(P){e.CHM(D);const O=e.oxw();return e.KtG(O.stepChanged(P))})("onCustomButtonClick",function(P){e.CHM(D);const O=e.oxw();return e.KtG(O.customButtonClick(P))}),e.qZA()}if(2&I){const D=e.oxw();e.Q6J("steps",D.steps)("service",D.service)("sharedData",D.sharedData)("showButton",D.showButton)("saveButtonText",D.saveButtonText)("alwaysShowSave",D.alwaysShowSave)("saveWithPromise",D.saveWithPromise)("validateWithPromise",D.validateWithPromise)("customClass",D.customClass)("isPopup",!0)("exceptionData",D.exceptionData)("customButton",D.customButton)}}function p(I,L){1&I&&e.GkF(0)}function E(I,L){if(1&I){const D=e.EpF();e.TgZ(0,"div",13)(1,"div",14)(2,"mat-toolbar",15)(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"button",10),e.NdJ("click",function(){e.CHM(D);const P=e.oxw();return e.KtG(P.closeSlidViewDetail())}),e.ALo(7,"translate"),e.TgZ(8,"mat-icon",7),e._uU(9,"close"),e.qZA()()(),e.TgZ(10,"div",16),e.YNc(11,p,1,0,"ng-container",17),e.qZA()()()}if(2&I){const D=e.oxw();e.Gre("zen-stepper-detail-slide-view-wrapper ",D.viewDetailView?"opened":"close",""),e.xp6(4),e.Oqu(e.lcZ(5,6,D.detailViewTitle)),e.xp6(2),e.Q6J("matTooltip",e.lcZ(7,8,"close")),e.xp6(5),e.Q6J("ngTemplateOutlet",D.slideDetailTemplate)}}let b=(()=>{class I{constructor(D,F,P,O){this.dialogRef=D,this.us=F,this.zenStepperService=P,this.data=O,this.title="",this.alwaysShowSave=!1,this.saveWithPromise=!1,this.validateWithPromise=!1,this.showButton=!0,this.onCustomButtonClick=new e.vpe,this.showDetailView=!1,this.detailViewTitle="details",this.viewDetailView=!1,this.toggleDetailViewIcon="info",this.steps=O.steps,this.service=O.service,this.sharedData=O.sharedData,this.saveButtonText=O.saveButtonText,this.alwaysShowSave=O.alwaysShowSave,this.saveWithPromise=O.saveWithPromise,this.validateWithPromise=O.validateWithPromise,this.customClass=O.customClass,this.customButton=O.customButton,this.showButton=null!=O.showButton?O.showButton:this.showButton,D.disableClose=!0,this.title=O.title?O.title:O.steps[0].name,this.exceptionData=O.exceptionData,this.showDetailView=!!O.showDetailView,this.toggleDetailViewIcon=O.toggleDetailViewIcon?O.toggleDetailViewIcon:"info",this.detailViewTitle=O.detailViewTitle?O.detailViewTitle:"details",D._containerInstance._config.data?.steps.length&&(["Edit","Copy","Access"].includes(D._containerInstance._config.data?.steps[0]?.data?.formType)||["Edit","Copy","Access"].includes(D._containerInstance._config.data.steps[0].data?.mode)||["edit","copy","access"].includes(D._containerInstance._config.data?.steps[0]?.data?.formType)||["edit","copy","access"].includes(D._containerInstance._config.data.steps[0].data?.mode))&&(D._containerInstance._config.autoFocus=!1),this.subs=new o.w0,this._unsubscribeAll=new a.x}stepChanged(D){}customButtonClick(D){this.onCustomButtonClick.emit(D)}closeOnSave(D){this.dialogRef.close(D)}closeDialog(){const D=this.zenStepper.stepperClose();D&&1==D.response?this.confirmation(D.subject,D.message):this.dialogRef.close()}confirmation(D,F){this.us.openConfirmDialog({headerText:D||"Confirmation",confirmationText:F||"Are you sure you want to discard changes?"}),this.subs.add(this.us.confirmDialogAction.subscribe(O=>{"yes"===O&&(this.dialogRef.close(),this.us.closeConfirmDialog())}))}ngOnInit(){this.zenStepperService.slideViewDetailTemplate.pipe((0,l.R)(this._unsubscribeAll)).subscribe(D=>{this.slideDetailTemplate=D||null}),this.zenStepperService.toggleSlideViewDetail.pipe((0,l.R)(this._unsubscribeAll)).subscribe(D=>{this.viewDetailView=!!D})}ngAfterViewInit(){setTimeout(()=>{this.sharedData&&(this.sharedData.stepper=this.zenStepper)},300)}toggleSlidViewDetail(){this.viewDetailView=!this.viewDetailView}closeSlidViewDetail(){this.viewDetailView=!1}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete(),this.subs.unsubscribe()}static#e=this.\u0275fac=function(F){return new(F||I)(e.Y36(n.hV),e.Y36(u.t),e.Y36(d.D),e.Y36(n.eJ))};static#t=this.\u0275cmp=e.Xpm({type:I,selectors:[["zen-stepper-dialog"]],viewQuery:function(F,P){if(1&F&&e.Gf(w,5),2&F){let O;e.iGM(O=e.CRH())&&(P.zenStepper=O.first)}},outputs:{onCustomButtonClick:"onCustomButtonClick"},decls:14,vars:9,consts:[[1,"dialog-content-wrapper"],[1,"mat-accent","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","space-between center"],[1,"title","dialog-title","text-truncate",3,"matTooltip"],["fxLayoutGap","5px"],["mat-button","","class","mat-icon-button details-slide-view-toggle","tabindex","-1",3,"matTooltip","click",4,"ngIf"],["mat-button","","aria-label","Close dialog","tabindex","-1",1,"mat-icon-button",3,"click"],[1,"white-fg"],["tabindex","-1","fxLayout","column","fxFlexAlign","start start",3,"steps","service","sharedData","showButton","saveButtonText","alwaysShowSave","saveWithPromise","validateWithPromise","customClass","isPopup","exceptionData","customButton","onSave","onStepChange","onCustomButtonClick",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center",3,"class",4,"ngIf"],["mat-button","","tabindex","-1",1,"mat-icon-button","details-slide-view-toggle",3,"matTooltip","click"],["tabindex","-1","fxLayout","column","fxFlexAlign","start start",3,"steps","service","sharedData","showButton","saveButtonText","alwaysShowSave","saveWithPromise","validateWithPromise","customClass","isPopup","exceptionData","customButton","onSave","onStepChange","onCustomButtonClick"],["zenStepper",""],["fxLayout","column","fxLayoutAlign","center center"],[1,"zen-stepper-details-wrapper"],["fxLayout","row","fxLayoutAlign","space-between center"],[1,"detail-info","p-8"],[4,"ngTemplateOutlet"]],template:function(F,P){1&F&&(e.TgZ(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),e.ALo(4,"translate"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div",4),e.YNc(8,g,5,7,"button",5),e.TgZ(9,"button",6),e.NdJ("click",function(){return P.closeDialog()}),e.TgZ(10,"mat-icon",7),e._uU(11,"close"),e.qZA()()()()(),e.YNc(12,M,2,12,"zen-stepper",8),e.qZA(),e.YNc(13,E,12,10,"div",9)),2&F&&(e.xp6(3),e.s9C("matTooltip",e.lcZ(4,5,P.title)),e.xp6(2),e.Oqu(e.lcZ(6,7,P.title)),e.xp6(3),e.Q6J("ngIf",P.showDetailView),e.xp6(4),e.Q6J("ngIf",P.steps),e.xp6(1),e.Q6J("ngIf",P.showDetailView))},dependencies:[s.z,A.O5,A.tP,_.xw,_.SQ,_.Wh,_.XD,_.yH,C.Hw,R.Ye,R.rD,x.Kd,f.eB,k.X$],styles:["@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInLeft{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInRight{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInDown{0%{opacity:0;transform:translateY(-2000px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInLeft{0%{opacity:0;transform:translate(-2000px)}to{opacity:1;transform:translate(0)}}@keyframes slideInRight{0%{opacity:0;transform:translate(2000px)}to{opacity:1;transform:translate(0)}}.job-position-popup .mygrid kendo-grid{height:auto}.zen-stepper-detail-slide-view-wrapper.opened{animation-name:slideInRight;animation-iteration-count:1;animation-duration:1s;animation-delay:0s;animation-timing-function:ease;animation-fill-mode:both;backface-visibility:hidden;position:fixed;top:0;right:0;height:100vh;width:17vw}.zen-stepper-detail-slide-view-wrapper.opened .zen-stepper-details-wrapper{height:auto;width:17vw;background:#ffffff;box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f;border-radius:4px}.zen-stepper-detail-slide-view-wrapper.opened .zen-stepper-details-wrapper mat-toolbar{background:#f2f2f2;border-top-left-radius:4px;border-top-right-radius:4px}.zen-stepper-detail-slide-view-wrapper.close .zen-stepper-details-wrapper{display:none}.mat-tooltip-panel .mat-tooltip{text-overflow:unset;max-width:450px}\n"],encapsulation:2})}return I})()},8379:(he,y,i)=>{"use strict";i.d(y,{Q:()=>_});var e=i(69651),n=i(89515),o=i(20180),a=i(94505),l=i(66878),u=i(30617),d=i(81274),s=i(30481),A=i(65879);let _=(()=>{class C{static#e=this.\u0275fac=function(f){return new(f||C)};static#t=this.\u0275mod=A.oAB({type:C});static#n=this.\u0275inj=A.cJS({imports:[e.w,n.aw,o.L,l.yj,u.Ps,d.g0,s.AA,a.yu]})}return C})()},79225:(he,y,i)=>{"use strict";i.d(y,{X:()=>u});var e=i(69651),n=i(20180),o=i(98148),a=i(30617),l=i(65879);let u=(()=>{class d{static#e=this.\u0275fac=function(_){return new(_||d)};static#t=this.\u0275mod=l.oAB({type:d});static#n=this.\u0275inj=l.cJS({imports:[e.w,n.L,o.ef,a.Ps]})}return d})()},4934:(he,y,i)=>{"use strict";i.d(y,{z:()=>te});var e=i(65879),n=i(61545),o=i(47394),a=i(78645),l=i(37398),u=i(68658),d=i(34938),s=i(10256),A=i(74187),_=i(710),C=i(66878),R=i(96814),x=i(83814),f=i(27509),k=i(30617),w=i(94505);const g=["container"];let M=(()=>{class j{constructor(z,q){this.componentFactoryResolver=z,this.zs=q,this.stepInit=new e.vpe,this.subscription=new o.w0,this.sharedData=this.zs.sharedData}ngOnInit(){if(this.step.component||(this.step.component=this.zs.getComponentType("Default")),this.step.component){let z;z=this.step.component;let q=this.componentFactoryResolver.resolveComponentFactory(z);this.componentRef=this.container.createComponent(q),this.instance=this.componentRef.instance,this.instance.data=this.step.data,this.instance.sharedData=this.sharedData,this.instance.name=this.step.name?this.step.name:this.instance.name,this.instance.standAlone=this.zs.standAlone,this.name=this.instance.name}this.stepInit.emit(this)}activate(){this.instance&&typeof this.instance.activate<"u"&&this.instance.activate()}stepperClose(){return this.instance.stepperClose()}validate(z){return this.instance.formElement&&this.instance.formElement.nativeElement.classList.add("form-submitted"),this.instance.submitBtn&&this.instance.submitBtn.nativeElement.click(),this.instance.validate(z)}save(){return this.instance.save()}toggleLoadMore(){this.instance&&(this.instance.hasOwnProperty("loadMore")&&(this.instance.loadMore=!this.instance.loadMore),typeof this.instance.toggleLoadMore<"u"&&this.instance.toggleLoadMore())}assignZenStepperRef(z){this.instance.hasOwnProperty("zenStepperRef")&&(this.instance.zenStepperRef=z)}ngOnDestroy(){this.subscription.unsubscribe(),this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)}static#e=this.\u0275fac=function(q){return new(q||j)(e.Y36(e._Vd),e.Y36(s.D))};static#t=this.\u0275cmp=e.Xpm({type:j,selectors:[["zen-step"]],viewQuery:function(q,se){if(1&q&&e.Gf(g,7,e.s_b),2&q){let ne;e.iGM(ne=e.CRH())&&(se.container=ne.first)}},inputs:{step:"step",index:"index"},outputs:{stepInit:"stepInit"},decls:2,vars:0,consts:[[1,""],["container",""]],template:function(q,se){1&q&&e._UZ(0,"div",0,1)}})}return j})();var p=i(89515);const E=["stepperDom"];function b(j,H){1&j&&(e.TgZ(0,"mat-icon"),e._uU(1,"check"),e.qZA())}function I(j,H){if(1&j&&(e.TgZ(0,"span",16),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&j){const z=e.oxw().$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,z.name))}}function L(j,H){if(1&j){const z=e.EpF();e.ynx(0),e.TgZ(1,"mat-step",13),e.ALo(2,"translate"),e.YNc(3,I,3,3,"ng-template",14),e.TgZ(4,"zen-step",15),e.NdJ("stepInit",function(se){const _e=e.CHM(z).index,ge=e.oxw(2);return e.KtG(ge.addStep(se,_e))}),e.qZA()(),e.BQk()}if(2&j){const z=H.$implicit,q=H.index;e.xp6(1),e.Q6J("label",e.lcZ(2,4,z.name))("completed",1==z.completed),e.xp6(3),e.Q6J("step",z)("index",q)}}function D(j,H){if(1&j){const z=e.EpF();e.TgZ(0,"mat-horizontal-stepper",9,10),e.NdJ("selectionChange",function(se){e.CHM(z);const ne=e.oxw();return e.KtG(ne.stepChanged(se))}),e.YNc(2,b,2,0,"ng-template",11),e.YNc(3,L,5,6,"ng-container",12),e.qZA()}if(2&j){const z=e.oxw();e.Q6J("linear",z.isLinear)("ngClass",z.ngStyles),e.xp6(3),e.Q6J("ngForOf",z.steps)}}function F(j,H){1&j&&e.GkF(0)}function P(j,H){if(1&j&&(e.ynx(0),e.YNc(1,F,1,0,"ng-container",17),e.BQk()),2&j){const z=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",z.leftBottomActionTemplate)}}function O(j,H){if(1&j){const z=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){e.CHM(z);const se=e.oxw(2);return e.KtG(se.onLoadMore())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&j){const z=e.oxw(2);e.Q6J("disabled",z.loading),e.xp6(1),e.Oqu(e.lcZ(2,2,"showLess"))}}function U(j,H){if(1&j){const z=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){e.CHM(z);const se=e.oxw(2);return e.KtG(se.onLoadMore())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&j){const z=e.oxw(2);e.Q6J("disabled",z.loading),e.xp6(1),e.Oqu(e.lcZ(2,2,"showMore"))}}function V(j,H){if(1&j&&(e.TgZ(0,"div",18),e.YNc(1,O,3,4,"button",19),e.YNc(2,U,3,4,"button",20),e.qZA()),2&j){const z=e.oxw();e.xp6(1),e.Q6J("ngIf",null==z.zenSteps[z._currentStepIndex]||null==z.zenSteps[z._currentStepIndex].instance?null:z.zenSteps[z._currentStepIndex].instance.loadMore),e.xp6(1),e.Q6J("ngIf",!(null!=z.zenSteps[z._currentStepIndex]&&null!=z.zenSteps[z._currentStepIndex].instance&&z.zenSteps[z._currentStepIndex].instance.loadMore))}}function K(j,H){if(1&j){const z=e.EpF();e.TgZ(0,"div",18)(1,"button",23),e.NdJ("click",function(){e.CHM(z);const se=e.oxw();return e.KtG(se.customButtonClicked())}),e._uU(2),e.ALo(3,"translate"),e.qZA()()}if(2&j){const z=e.oxw();e.xp6(1),e.Q6J("disabled",z.loading),e.xp6(1),e.Oqu(e.lcZ(3,2,z.customButton.name))}}function X(j,H){if(1&j){const z=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){e.CHM(z);const se=e.oxw(2);return e.KtG(se.previous())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&j){const z=e.oxw(2);e.Q6J("disabled",z.loading),e.xp6(1),e.Oqu(e.lcZ(2,2,"previous"))}}function me(j,H){if(1&j){const z=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){e.CHM(z);const se=e.oxw(2);return e.KtG(se.next())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&j){const z=e.oxw(2);e.Q6J("disabled",z.loading||z.disableNextButton||(null==z.zenSteps[z._currentStepIndex]||null==z.zenSteps[z._currentStepIndex].instance?null:z.zenSteps[z._currentStepIndex].instance.disableNextButton)),e.xp6(1),e.Oqu(e.lcZ(2,2,"next"))}}function J(j,H){if(1&j){const z=e.EpF();e.TgZ(0,"button",28),e.NdJ("click",function(){e.CHM(z);const se=e.oxw(2);return e.KtG(se.callSave())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&j){const z=e.oxw(2);e.Q6J("disabled",z.loading||(null==z.zenSteps[z._currentStepIndex]||null==z.zenSteps[z._currentStepIndex].instance?null:z.zenSteps[z._currentStepIndex].instance.disableStepperSaveButton)||z.disableSaveButton||(null==z.zenSteps[z._currentStepIndex]||null==z.zenSteps[z._currentStepIndex].instance?null:z.zenSteps[z._currentStepIndex].instance.disableNextButton)),e.xp6(1),e.Oqu(e.lcZ(2,2,z.saveButtonText?z.saveButtonText:"save"))}}function Q(j,H){if(1&j&&(e.TgZ(0,"div",24),e.YNc(1,X,3,4,"button",25),e.YNc(2,me,3,4,"button",25),e.YNc(3,J,3,4,"button",26),e.qZA()),2&j){const z=e.oxw();e.xp6(1),e.Q6J("ngIf",z._currentStepIndex>0),e.xp6(1),e.Q6J("ngIf",z._currentStepIndex!=z.steps.length-1),e.xp6(1),e.Q6J("ngIf",z._currentStepIndex==z.steps.length-1||z.alwaysShowSave)}}const re=function(j,H){return{"m-0 referencevalue":!0,"p-8 mat-dialog-content":j,"slide-cover":H}},de=function(j){return{"mat-dialog-actions":j}};let te=(()=>{class j{constructor(z,q,se,ne){this.zs=z,this.us=q,this.cs=se,this.matDialog=ne,this.saveButtonText=null,this.alwaysShowSave=!1,this.saveWithPromise=!1,this.validateWithPromise=!1,this.customClass="",this.customButton=null,this.disableNextButton=!1,this.disableSaveButton=!1,this.showButton=!0,this.onSave=new e.vpe,this.onStepChange=new e.vpe,this.onCustomButtonClick=new e.vpe,this.loading=!1,this.isLinear=!0,this.zenSteps=[],this.viewInitialized=!1,this.zenStepStyleClass="",this._currentStepIndex=0,this._stepCount=0,this.subscription=new o.w0,this._unsubscribeAll=new a.x,this.zs.sharedData={},this.ngStyles={}}ngOnInit(){this.zs.sharedData=null==this.sharedData||null==this.sharedData?{}:this.sharedData,this.service&&(this.service.sharedData=this.zs.sharedData),this._currentStepIndex=0,this._stepCount=this.steps.length,this.zs.standAlone=1==this._stepCount}ngAfterViewInit(){this.viewInitialized=!0,this.matSteps=this.stepper._steps._results,this.zenSteps[0].activate(),this.setNgStyles(),this.stepperNodeList=this.stepperSteps.nativeElement.querySelectorAll(".mat-step-header"),this.stepperNodeList.forEach(q=>q.setAttribute("tabindex",-1))}addStep(z,q){this.zenSteps[q]=z,this.zenSteps[q].assignZenStepperRef(this)}setNgStyles(){this.ngStyles={},this.ngStyles["hide-step-header"]=1==this.steps.length,this.customClass&&(this.ngStyles[this.customClass]=!0);try{this.ngStyles[this.zenSteps[this._currentStepIndex].instance.styleClass]=!0}catch{}this.ngStyles={...this.ngStyles}}setZenStepStyleClass(){try{this.zenStepStyleClass=this.customClass+" "+this.zenSteps[this._currentStepIndex].instance.styleClass}catch{this.zenStepStyleClass=this.customClass}}stepChanged(z){const q=z.selectedIndex;this._currentStepIndex=q,this.zenSteps[q].activate(),this.onStepChange.emit({zenStep:this.zenSteps[q],matStep:this.matSteps[q]}),this.invalidateStepsAhead(q),this.us.assignCssClassOnZenSteps(q,this.stepperNodeList),this.setNgStyles(),this.loading=!1}customButtonClicked(){this.onCustomButtonClick.emit(this.sharedData)}invalidateStepsAhead(z){for(let q=z;q<this._stepCount;q++)this.matSteps[q].completed=!1}previous(){this.loading=!0,this.validate("previous"),this.stepper.previous()}processValidateResult(z,q,se){if(q)this.matSteps[z].completed=!0;else{this.matSteps[z].completed=!1;const ne=this;setTimeout(()=>{ne.loading=!1},300)}"next"==se&&this.stepper.next()}validate(z){const q=this._currentStepIndex;if(this.validateWithPromise)return new Promise(se=>this.zenSteps[q].validate(z).then(ne=>{this.processValidateResult(q,ne,z),se(ne)}));this.zenSteps[q].validate(z).subscribe(se=>{this.processValidateResult(q,se,z)})}stepperClose(z){let q=this.zenSteps[z=z??0].stepperClose();return q&&q.response?q:z+1==this._stepCount?{response:!1}:this.stepperClose(++z)}next(){this.loading=!0,this.validate("next"),this.loading=!1}forcePrevious(){const z=this;setTimeout(()=>{z.stepper.previous()},300)}forceNext(){const z=this;setTimeout(()=>{z.matSteps[this._currentStepIndex].completed=!0,z.stepper.next()},300)}callSave(){this.loading||(this.loading=!0,this.validateWithPromise?this.validate("next").then(z=>{this.areAllStepValid()&&this.callStepSaveExp()}):(this.validate("next"),this.areAllStepValid()&&this.callStepSaveExp()))}processCallStepSaveResult(z,q){if(!z)return console.log("%c Error with content save on step "+q,"background:red; color: #000"),void(this.loading=!1);q+1==this._stepCount?this.save():this.callStepSaveExp(++q)}callStepSaveExp(z){z=z??0;const q=this.exceptionData?.find(se=>se.step===z+1)||null;q?this.checkException(q).subscribe(se=>{se?this.openExceptionDialog(se,z):this.saveWithPromise?this.callStepSaveWithPromise(z):this.callStepSave(z)}):this.saveWithPromise?this.callStepSaveWithPromise(z):this.callStepSave(z)}callStepSave(z){this.zenSteps[z=z??0].save(this.zs.sharedData).subscribe(q=>{this.processCallStepSaveResult(q,z)},q=>{this.us.callSnackBar("Error in step: "+this.steps[z].name,"error"),this.loading=!1})}callStepSaveWithPromise(z){this.zenSteps[z=z??0].save(this.zs.sharedData).then(q=>{this.processCallStepSaveResult(q,z)},q=>{this.us.callSnackBar("Error in step: "+this.steps[z].name,"error"),this.loading=!1})}processSaveResult(z){if(!z)return this.us.callSnackBar("Exception occured","error"),void(this.loading=!1);this.onSave.emit(this.zs.sharedData),this.loading=!1}save(){this.service?(this.service.sharedData=this.zs.sharedData,this.saveWithPromise?this.service.save().then(z=>{this.processSaveResult(z)},z=>{this.us.callSnackBar("Exception occured: "+z.toString(),"error"),this.loading=!1}):this.service.save().subscribe(z=>{this.processSaveResult(z)},z=>{this.us.callSnackBar("Exception occured: "+z.toString(),"error"),this.loading=!1})):(this.onSave.emit(this.zs.sharedData),this.loading=!1)}checkException(z){let q={exceptionJson:{entity:z.entity,entityId:z.entityId,exceptionStage:z.exceptionStage,data:this.zs.sharedData},dialogLoadType:u.Z.continuous};return this.cs.stepperExceptionProcess(JSON.stringify(q.exceptionJson)).pipe((0,l.U)(se=>se&&Object.keys(se).length>0&&null!=se.data?(q.exceptionData=se,q):(q=null,q)))}openExceptionDialog(z,q){q=q??0,new a.x,this.matDialog.open(d.x,{data:z,panelClass:"exception-dialog",disableClose:!0}).afterClosed().subscribe(_e=>{console.log("Dialog closed"),1==_e?this.saveWithPromise?this.callStepSaveWithPromise(q):this.callStepSave(q):0==_e&&(this.loading=!1)})}areAllStepValid(){for(let z of this.matSteps)if(0==z.completed)return!1;return!0}reset(){this.stepper.reset()}onLoadMore(){this.zenSteps[this._currentStepIndex].toggleLoadMore()}ngOnDestroy(){this.subscription.unsubscribe(),this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static#e=this.\u0275fac=function(q){return new(q||j)(e.Y36(s.D),e.Y36(A.t),e.Y36(_.v),e.Y36(C.on))};static#t=this.\u0275cmp=e.Xpm({type:j,selectors:[["zen-stepper"]],viewQuery:function(q,se){if(1&q&&(e.Gf(n.Vq,5),e.Gf(E,5)),2&q){let ne;e.iGM(ne=e.CRH())&&(se.stepper=ne.first),e.iGM(ne=e.CRH())&&(se.stepperSteps=ne.first)}},inputs:{steps:"steps",service:"service",sharedData:"sharedData",isPopup:"isPopup",isSlide:"isSlide",saveButtonText:"saveButtonText",alwaysShowSave:"alwaysShowSave",saveWithPromise:"saveWithPromise",validateWithPromise:"validateWithPromise",customClass:"customClass",customButton:"customButton",disableNextButton:"disableNextButton",disableSaveButton:"disableSaveButton",showButton:"showButton",leftBottomActionTemplate:"leftBottomActionTemplate",exceptionData:"exceptionData"},outputs:{onSave:"onSave",onStepChange:"onStepChange",onCustomButtonClick:"onCustomButtonClick"},decls:10,vars:12,consts:[[3,"ngClass"],[1,"zen-stepper"],["stepperDom",""],[3,"linear","ngClass","selectionChange",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"py-4",3,"ngClass"],[4,"ngIf"],["class","grid-bottom-button","style","padding-left:12px",4,"ngIf"],[1,"flex-spacer"],["class","grid-bottom-button",4,"ngIf"],[3,"linear","ngClass","selectionChange"],["stepper",""],["matStepperIcon","edit"],[4,"ngFor","ngForOf"],["flex","",3,"label","completed"],["matStepLabel",""],[3,"step","index","stepInit"],[1,"white-fg"],[4,"ngTemplateOutlet"],[1,"grid-bottom-button",2,"padding-left","12px"],["mat-raised-button","","class","zenauto-show-less toggle-more",3,"disabled","click",4,"ngIf"],["mat-raised-button","","class","zenauto-show-more toggle-more",3,"disabled","click",4,"ngIf"],["mat-raised-button","",1,"zenauto-show-less","toggle-more",3,"disabled","click"],["mat-raised-button","",1,"zenauto-show-more","toggle-more",3,"disabled","click"],["mat-raised-button","",3,"disabled","click"],[1,"grid-bottom-button"],["mat-raised-button","","class","mat-accent mr-8",3,"disabled","click",4,"ngIf"],["mat-raised-button","","class","save-button mat-accent mr-8",3,"disabled","click",4,"ngIf"],["mat-raised-button","",1,"mat-accent","mr-8",3,"disabled","click"],["mat-raised-button","",1,"save-button","mat-accent","mr-8",3,"disabled","click"]],template:function(q,se){1&q&&(e.TgZ(0,"div",0)(1,"div",1,2),e.YNc(3,D,4,3,"mat-horizontal-stepper",3),e.qZA()(),e.TgZ(4,"div",4),e.YNc(5,P,2,1,"ng-container",5),e.YNc(6,V,3,2,"div",6),e.YNc(7,K,4,4,"div",6),e._UZ(8,"div",7),e.YNc(9,Q,4,3,"div",8),e.qZA()),2&q&&(e.Q6J("ngClass",e.WLB(7,re,1==se.isPopup,1==se.isSlide)),e.xp6(3),e.Q6J("ngIf",se.steps),e.xp6(1),e.Q6J("ngClass",e.VKq(10,de,1==se.isPopup||1==se.isSlide)),e.xp6(1),e.Q6J("ngIf",se.leftBottomActionTemplate),e.xp6(1),e.Q6J("ngIf",null==se.zenSteps[se._currentStepIndex]||null==se.zenSteps[se._currentStepIndex].instance?null:se.zenSteps[se._currentStepIndex].instance.hasLoadMore),e.xp6(1),e.Q6J("ngIf",se.customButton),e.xp6(2),e.Q6J("ngIf",se.showButton))},dependencies:[R.mk,R.sg,R.O5,R.tP,x.xw,x.Wh,f.oO,n.C0,n.VY,n.Vq,n.z9,k.Hw,w.eB,M,p.X$],styles:[".zenStepperSidebar{position:fixed;top:64px;height:calc(100vh - 96px)}.zenStepperSidebar .slide-cover{height:calc(100vh - 156px);overflow-y:scroll}.zen-stepper .mat-horizontal-stepper-header-container{display:flex}.zen-stepper .mat-horizontal-stepper-header-container .mat-horizontal-stepper-header{flex:1;height:50px!important;padding:0 0 0 8px;color:#ccc;border-right:1px dotted #fff;background:#000}.zen-stepper .mat-horizontal-stepper-header-container .mat-horizontal-stepper-header:hover{background-color:#000}.zen-stepper .mat-horizontal-stepper-header-container .mat-horizontal-stepper-header.zen-step-header{background:#01c853!important}.zen-stepper .mat-horizontal-stepper-header-container .mat-horizontal-stepper-header.zen-step-header .td-complete mat-icon{color:#fff}.zen-stepper .mat-horizontal-stepper-header-container .mat-horizontal-stepper-header.zen-step-header-active,.zen-stepper .mat-horizontal-stepper-header-container .mat-horizontal-stepper-header.zen-step-header-active:hover{background:#03a9f4}.zen-stepper .mat-horizontal-stepper-header-container .mat-horizontal-stepper-header.zen-step-header-active .td-complete mat-icon{color:#fff}.zen-stepper .mat-horizontal-stepper-header-container .mat-horizontal-stepper-header .mat-step-label{color:#fff!important}.zen-stepper .mat-horizontal-stepper-header-container .mat-horizontal-stepper-header .mat-step-icon,.zen-stepper .mat-horizontal-stepper-header-container .mat-horizontal-stepper-header .mat-step-icon-not-touched{background-color:#fff;color:#000;width:30px;height:30px;font-size:18px}.zen-stepper .mat-horizontal-stepper-header-container .mat-stepper-horizontal-line{display:none}.zen-stepper .mat-horizontal-content-container{padding:0}.zen-stepper mat-step-header:first-of-type{background:#03a9f4!important}.zen-stepper mat-step-header:first-of-type .mat-step-label.mat-step-label-active{color:#fff!important}.zen-stepper .hide-step-header .mat-horizontal-stepper-header-container{display:none!important}zen-stepper-dialog .dialog-content-wrapper{height:100%;max-height:100%!important}zen-stepper-dialog .dialog-content-wrapper zen-stepper .mat-dialog-content .zen-stepper .mat-stepper-horizontal .mat-horizontal-content-container{overflow-y:auto}.theme-options-panel .zenStepperSidebar{top:65px!important}.theme-options-panel .zenStepperSidebar zen-slide-view{top:0!important}entity-detail .zenStepperSidebar{top:65px!important}entity-detail .zenStepperSidebar zen-slide-view{top:0!important}.flex-spacer{flex:1 0 0}\n"],encapsulation:2})}return j})()},69651:(he,y,i)=>{"use strict";i.d(y,{w:()=>s});var e=i(94505),n=i(30617),o=i(61545),a=i(10256),l=i(20180),u=i(89515),d=i(65879);let s=(()=>{class A{static#e=this.\u0275fac=function(R){return new(R||A)};static#t=this.\u0275mod=d.oAB({type:A});static#n=this.\u0275inj=d.cJS({providers:[a.D],imports:[l.L,o.T5,n.Ps,e.yu,u.aw]})}return A})()},10256:(he,y,i)=>{"use strict";i.d(y,{D:()=>l});var e=i(65619),n=i(22096),o=i(65879);let a=(()=>{class u{constructor(){}activate(){}stepperClose(){return{response:!1}}validate(){return(0,n.of)(!0)}save(){return(0,n.of)(!0)}static#e=this.\u0275fac=function(A){return new(A||u)};static#t=this.\u0275cmp=o.Xpm({type:u,selectors:[["zen-step-default"]],decls:2,vars:0,template:function(A,_){1&A&&(o.TgZ(0,"h1"),o._uU(1,"Component not found"),o.qZA())},encapsulation:2})}return u})(),l=(()=>{class u{constructor(){this.sharedData={},this.slideViewDetailTemplate=new e.X(null),this.toggleSlideViewDetail=new e.X(!1),this.mappings={}}getComponentType(s){return this.mappings[s]||a}static#e=this.\u0275fac=function(A){return new(A||u)};static#t=this.\u0275prov=o.Yz7({token:u,factory:u.\u0275fac})}return u})()},97655:(he,y,i)=>{"use strict";i.d(y,{x:()=>K});var e=i(47394),n=i(65879),o=i(74187),a=i(30617),l=i(84187),u=i(48424),d=i(24678),s=i(94505),A=i(42400),_=i(96814),C=i(83814),R=i(27509),x=i(45754),f=i(51838),k=i(30481),w=i(89515);const g=["searchInput"];function M(X,me){if(1&X){const J=n.EpF();n.TgZ(0,"button",22),n.NdJ("click",function(){n.CHM(J);const re=n.oxw();return n.KtG(re.clearSearch())}),n.TgZ(1,"mat-icon"),n._uU(2,"close"),n.qZA()()}}function p(X,me){if(1&X){const J=n.EpF();n.TgZ(0,"mat-icon",28),n.NdJ("click",function(){n.CHM(J);const re=n.oxw().$implicit,de=n.oxw();return n.KtG(de.openCloseNode(re))}),n._uU(1),n.qZA()}if(2&X){const J=n.oxw().$implicit;n.Q6J("ngClass",J.display&&J.isSearch?"show-node":"hide-node"),n.xp6(1),n.hij(" ",J.isOpen?"expand_more":"chevron_right"," ")}}function E(X,me){1&X&&n.GkF(0)}const b=function(X){return{$implicit:X}};function I(X,me){if(1&X&&(n.TgZ(0,"ul",29),n.YNc(1,E,1,0,"ng-container",30),n.qZA()),2&X){const J=n.oxw().$implicit;n.oxw();const Q=n.MAs(34);n.Q6J("ngClass",J.isOpen?"show-node":"hide-node"),n.xp6(1),n.Q6J("ngTemplateOutlet",Q)("ngTemplateOutletContext",n.VKq(3,b,J))}}const L=function(X,me){return[X,me]};function D(X,me){if(1&X){const J=n.EpF();n.TgZ(0,"ul",23)(1,"li",24),n.YNc(2,p,2,2,"mat-icon",25),n.TgZ(3,"mat-checkbox",26),n.NdJ("change",function(){const de=n.CHM(J).$implicit,te=n.oxw();return n.KtG(te.onCheckChange(de))}),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,I,2,5,"ul",27),n.qZA()()}if(2&X){const J=me.$implicit,Q=n.oxw();n.xp6(1),n.Q6J("ngClass",n.WLB(9,L,J.display&&J.isSearch?"show-node":"hide-node",Q.hasChild(J)?"has-child":"pl-28")),n.xp6(1),n.Q6J("ngIf",Q.hasChild(J)),n.xp6(1),n.Q6J("checked",J.isSelect)("indeterminate",J.isIntermediate)("disabled",J.disabled),n.xp6(1),n.hij(" ",n.lcZ(5,7,J.name)," "),n.xp6(2),n.Q6J("ngIf",Q.hasChild(J))}}function F(X,me){if(1&X){const J=n.EpF();n.TgZ(0,"mat-icon",28),n.NdJ("click",function(){n.CHM(J);const re=n.oxw().$implicit,de=n.oxw(2);return n.KtG(de.openCloseNode(re))}),n._uU(1),n.qZA()}if(2&X){const J=n.oxw().$implicit;n.Q6J("ngClass",J.display&&J.isSearch?"show-node ":"hide-node"),n.xp6(1),n.hij(" ",J.isOpen?"expand_more":"chevron_right"," ")}}function P(X,me){1&X&&n.GkF(0)}function O(X,me){if(1&X&&(n.TgZ(0,"ul",29),n.YNc(1,P,1,0,"ng-container",30),n.qZA()),2&X){const J=n.oxw().$implicit;n.oxw(2);const Q=n.MAs(34);n.Q6J("ngClass",J.isOpen?"show-node":"hide-node")("ngClass",J.isDefaultNode?"grey-class":"noGrey-class"),n.xp6(1),n.Q6J("ngTemplateOutlet",Q)("ngTemplateOutletContext",n.VKq(4,b,J))}}function U(X,me){if(1&X){const J=n.EpF();n.TgZ(0,"li",24),n.YNc(1,F,2,2,"mat-icon",25),n.TgZ(2,"mat-checkbox",32),n.NdJ("change",function(){const de=n.CHM(J).$implicit,te=n.oxw(2);return n.KtG(te.onCheckChange(de))}),n.ALo(3,"translate"),n._uU(4),n.ALo(5,"translate"),n.qZA(),n.YNc(6,O,2,6,"ul",27),n.qZA()}if(2&X){const J=me.$implicit,Q=n.oxw(2);n.Q6J("ngClass",n.WLB(13,L,J.display&&J.isSearch?"show-node ":"hide-node",Q.hasChild(J)?"has-child":"pl-28")),n.xp6(1),n.Q6J("ngIf",Q.hasChild(J)),n.xp6(1),n.s9C("matTooltip",J.isDefaultNode?"defaultNode":n.lcZ(3,9,"")),n.Q6J("checked",J.isSelect)("indeterminate",J.isIntermediate)("disabled",J.disabled)("ngClass",J.isDefaultNode?"default-node":""),n.xp6(2),n.hij(" ",n.lcZ(5,11,J.name)," "),n.xp6(2),n.Q6J("ngIf",Q.hasChild(J))}}function V(X,me){if(1&X&&n.YNc(0,U,7,16,"li",31),2&X){const J=me.$implicit,Q=n.oxw();n.Q6J("ngForOf",Q.getNode(J,"childNode"))("ngForTrackBy",Q.trackIndex)}}let K=(()=>{class X{set config(J){J&&(this.treeNode=this.utilityService.withoutVariableReference(J.data||[]),this.searchable=null==J.searchable||J.searchable,this.expanded=null==J.expanded||J.expanded,this.returnValueOnInit=null==J.returnValueOnInit||J.returnValueOnInit,this.initialliazeConfig())}constructor(J){this.utilityService=J,this.subs=new e.w0,this.valueChange=new n.vpe,this.checkedChange=new n.vpe,this.checkedNodes=[],this.searchText="",this.selected="all",this.indeterminate=!1,this.searchable=!0,this.expanded=!0,this.returnValueOnInit=!0}ngOnInit(){}initialliazeConfig(){this.checkedNodes=[],this.treeNode.map(Q=>{Q.isOpen=null!=Q.isOpen?Q.isOpen:this.expanded,Q.isSearch=null!=Q.isSearch?Q.isSearch:this.searchable,Q.display=null==Q.display||Q.display,Q.disabled=null!=Q.disabled&&Q.disabled}),(this.getNode({},"isSelect")||[]).map(Q=>{this.currentNode=Q,this.visitChildNodes(Q,Q.isSelect)}),this.rootNode=this.getNode({},"rootNode"),this.isCheckedAll(),this.returnValueOnInit&&setTimeout(()=>{this.valueChange.emit(this.checkedNodes)},1e3),this.searchText&&this.filterBySearchText()}isCheckedAll(){const J=this.treeNode.filter(re=>re.isSelect&&re.display);this.treeNode.filter(re=>re.display).length===J.length?(this.checkedAll=!0,this.indeterminate=!1):J.length>0?(this.checkedAll=!1,this.indeterminate=!0):(this.checkedAll=!1,this.indeterminate=!1)}checkAll(J){J&&(this.rootNode.map(Q=>{Q.isSelect=J.checked,this.currentNode=Q,this.visitChildNodes(Q,J.checked)}),this.isCheckedAll(),this.valueChange.emit(this.checkedNodes))}onCheckChange(J){if(J.isSelect=!J.isSelect,J.parentNodeId)this.currentNode=J,this.visitChildNodes(J,J.isSelect);else{const Q=this.getNode(J,"childNode");Q.map(re=>{re.isSelect=J.isSelect}),Q.map(re=>{this.currentNode=re,this.visitChildNodes(re,J.isSelect)})}this.isCheckedAll(),this.checkedChange.emit(J),this.valueChange.emit(this.checkedNodes)}setIndeterminate(J){const Q=this.getNode(J,"childNode"),re=Q.filter(de=>de.isSelect);Q.length>0&&(Q.length===re.length?(J.isSelect=!0,J.isIntermediate=!1):re.length>0?(J.isSelect=this.currentNode.nodeId===J.nodeId&&this.currentNode.isSelect,J.isIntermediate=!0):(J.isSelect=this.currentNode.nodeId===J.nodeId&&this.currentNode.isSelect,J.isIntermediate=!1))}visitParentNodes(J){const Q=this.getNode(J,"parentNode");if(Q&&1===Q.length){const re=this.getNode(Q[0],"childNode"),de=re.filter(j=>j.isSelect),te=re.filter(j=>j.isIntermediate);re.length===de.length?(Q[0].isSelect=!0,Q[0].isIntermediate=!1):de.length>0||te.length>0?(Q[0].isSelect=!1,Q[0].isIntermediate=!0):(Q[0].isSelect=!1,Q[0].isIntermediate=!1),this.visitParentNodes(Q[0])}else Q&&Q.length>1&&console.error("A node can't have multiple parents!")}visitChildNodes(J,Q){const re=this.getNode(J,"childNode");if(this.currentNode={...this.currentNode},re&&re.length>0)re.map(de=>{de.display&&(de.isSelect=de.disabled?de.isSelect:Q)}),re.map(de=>{this.visitChildNodes(de,Q)});else if(this.visitParentNodes(J),J.isSelect&&!this.checkedNodes.includes(J.nodeId))69==J.nodeId&&console.log(J.nodeId),this.checkedNodes.push(J.nodeId);else if(!J.isSelect&&(this.checkedNodes=this.checkedNodes.filter(de=>de!==J.nodeId),J.disabled)){this.checkedNodes.push(J.nodeId);for(let de=0;de<this.treeNode?.length;de++)this.treeNode[de].nodeId==J.nodeId&&(this.treeNode[de].isSelect=!0)}}getNode(J,Q){return"node"===Q?this.treeNode.filter(re=>re.nodeId&&J.nodeId):"rootNode"===Q?this.treeNode.filter(re=>!re.parentNodeId&&re.display):"parentNode"===Q?this.treeNode.filter(re=>re.nodeId===J.parentNodeId&&re.display):"childNode"===Q?this.treeNode.filter(re=>re.parentNodeId===J.nodeId&&re.display):"isSelect"===Q?this.treeNode.filter(re=>re.isSelect&&!this.hasChild(re)):void 0}hasChild(J){const Q=this.getNode(J,"childNode");return!!(Q&&Q.length>0)}searchNode(J){this.searchText=J.srcElement?J.srcElement.value.toLowerCase():"",this.filterBySearchText()}filterBySearchText(){this.unSetAllSearchedNodes(),this.getFilteredNode().map(Q=>{Q.isSearch=!0,this.setParentNodeSearched(Q)})}toggleNode(J){J&&(this.unSetAllSearchedNodes(),this.searchable&&this.searchInput&&(this.searchInput.nativeElement.value="",this.searchText=""),this.getFilteredNode().map(re=>{re.isSearch=!0,this.setParentNodeSearched(re)}))}getFilteredNode(){let J;return J=this.treeNode.filter("checked"===this.selected?Q=>Q.name.toLowerCase().includes(this.searchText)&&Q.isSelect:"unchecked"===this.selected?Q=>Q.name.toLowerCase().includes(this.searchText)&&!Q.isSelect:Q=>Q.name.toLowerCase().includes(this.searchText)),J}setParentNodeSearched(J){const Q=this.getNode(J,"parentNode");Q&&Q.length>0&&(Q[0].isSearch=!0,this.setParentNodeSearched(Q[0]))}unSetAllSearchedNodes(){this.treeNode.map(J=>{J.isSearch=!1})}clearSearch(){this.searchable&&this.searchInput&&(this.searchInput.nativeElement.value="",this.searchText="",this.searchNode({}))}openCloseNode(J){J.isOpen=!J.isOpen}trackIndex(J){return J}onExpandedChange(J){J&&(this.expanded=!this.expanded,this.treeNode.map(Q=>{Q.isOpen=this.expanded}))}ngOnDestroy(){this.subs.unsubscribe()}static#e=this.\u0275fac=function(Q){return new(Q||X)(n.Y36(o.t))};static#t=this.\u0275cmp=n.Xpm({type:X,selectors:[["zen-tree"]],viewQuery:function(Q,re){if(1&Q&&n.Gf(g,5),2&Q){let de;n.iGM(de=n.CRH())&&(re.searchInput=de.first)}},inputs:{config:"config"},outputs:{valueChange:"valueChange",checkedChange:"checkedChange"},decls:35,vars:29,consts:[["fxLayout","row","fxLayoutAlign","start center","fxLayout.lt-sm","column","fxLayoutAlign.lt-sm","start start","fxLayoutGap","10px",1,"p-12","grey-100-bg"],["fxLayout","row","fxLayoutGap","16px","fxLayoutAlign","start center","fxFlex","calc(50% - 10px)"],["fxLayout","column",1,"check-all"],[3,"checked","indeterminate","change"],["fxLayout","column"],["labelPosition","after",3,"color","checked","change"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","10px","fxFlex","calc(50% - 10px)"],["fxFlex","","fxLayout.xs","column","fxLayout.md","column",1,"search-for"],[1,"h-44"],["matInput","",3,"placeholder","input"],["searchInput",""],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["fxFlex","","fxLayout.xs","column","fxLayout.md","column",1,"select-check"],[2,"height","33px"],[3,"value","valueChange","selectionChange"],["value","all"],["value","checked"],["value","unchecked"],["fxLayout","row wrap","fxFlex","100",1,"tree-tree-cover","px-12","pt-12"],["fxLayout","column","fxFlex","100","fxFlex.gt-xs","100","fxFlex.gt-md","100"],["class","tree-tree",4,"ngFor","ngForOf","ngForTrackBy"],["recursiveNode",""],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[1,"tree-tree"],[3,"ngClass"],[3,"ngClass","click",4,"ngIf"],[3,"checked","indeterminate","disabled","change"],["class","nav collapse","style","margin-left:20px",3,"ngClass",4,"ngIf"],[3,"ngClass","click"],[1,"nav","collapse",2,"margin-left","20px",3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],[3,"checked","indeterminate","disabled","ngClass","matTooltip","change"]],template:function(Q,re){1&Q&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-checkbox",3),n.NdJ("change",function(te){return re.checkAll(te)}),n._uU(4),n.ALo(5,"translate"),n.qZA()(),n.TgZ(6,"div",4)(7,"mat-slide-toggle",5),n.NdJ("change",function(te){return re.onExpandedChange(te)}),n._uU(8),n.ALo(9,"translate"),n.ALo(10,"translate"),n.qZA()()(),n.TgZ(11,"div",6)(12,"div",7)(13,"mat-form-field",8)(14,"input",9,10),n.NdJ("input",function(te){return re.searchNode(te)}),n.ALo(16,"translate"),n.qZA(),n.YNc(17,M,3,0,"button",11),n.qZA()(),n.TgZ(18,"div",12)(19,"mat-form-field",13)(20,"mat-select",14),n.NdJ("valueChange",function(te){return re.selected=te})("selectionChange",function(te){return re.toggleNode(te)}),n.TgZ(21,"mat-option",15),n._uU(22),n.ALo(23,"translate"),n.qZA(),n.TgZ(24,"mat-option",16),n._uU(25),n.ALo(26,"translate"),n.qZA(),n.TgZ(27,"mat-option",17),n._uU(28),n.ALo(29,"translate"),n.qZA()()()()()(),n.TgZ(30,"div",18)(31,"div",19),n.YNc(32,D,7,12,"ul",20),n.YNc(33,V,1,2,"ng-template",null,21,n.W1O),n.qZA()()),2&Q&&(n.xp6(3),n.Q6J("checked",re.checkedAll)("indeterminate",re.indeterminate),n.xp6(1),n.hij(" ",n.lcZ(5,15,"checkAll")," "),n.xp6(3),n.Q6J("color","accent")("checked",re.expanded),n.xp6(1),n.AsE(" ",n.lcZ(9,17,re.expanded?"collapse":"expand"),"\xa0",n.lcZ(10,19,"all")," "),n.xp6(6),n.s9C("placeholder",n.lcZ(16,21,"search")),n.xp6(3),n.Q6J("ngIf",null!=re.searchText&&""!==re.searchText),n.xp6(3),n.Q6J("value",re.selected),n.xp6(2),n.hij(" ",n.lcZ(23,23,"all"),""),n.xp6(3),n.hij(" ",n.lcZ(26,25,"checked"),""),n.xp6(3),n.Oqu(n.lcZ(29,27,"unChecked")),n.xp6(4),n.Q6J("ngForOf",re.rootNode)("ngForTrackBy",re.trackIndex))},dependencies:[a.Hw,l.v_,l.nX,u.x8,d.CK,s.eB,A.k0,_.mk,_.sg,_.O5,_.tP,C.xw,C.SQ,C.Wh,C.yH,R.oO,x.FC,f.iZ,k.Kd,w.X$],styles:[".search-for{position:relative}.search-for .mat-form-field{width:100%}.search-for button{position:absolute;right:0;top:-10px}.show-node{display:block;line-height:35px}.default-node .mat-checkbox-label{background-color:#72c4ec45;padding:0 8px}.hide-node{display:none}label[for=checkAll]{margin-right:18px}label[for=checkAll]:after{right:-48px}.check-all .mat-checkbox{font-size:17px;font-weight:700}.check-all .mat-checkbox .mat-checkbox-layout .mat-checkbox-inner-container{width:20px;height:20px}.select-check{padding-left:5px}.select-check .mat-select{margin-top:-13px}.select-check .mat-form-field{width:100%}\n"],encapsulation:2,changeDetection:0})}return X})()},88412:(he,y,i)=>{"use strict";i.d(y,{v:()=>f});var e=i(89515),n=i(94505),o=i(45754),a=i(30617),l=i(42400),u=i(48424),d=i(81274),s=i(56223),A=i(20180),_=i(49488),C=i(51838),R=i(30481),x=i(65879);let f=(()=>{class k{static#e=this.\u0275fac=function(M){return new(M||k)};static#t=this.\u0275mod=x.oAB({type:k});static#n=this.\u0275inj=x.cJS({imports:[e.aw,s.u5,s.UX,d.g0,a.Ps,u.uw,n.yu,l.x4,A.L,o.Zh,C.Wd,_.vV,R.AA]})}return k})()},99842:(he,y,i)=>{"use strict";i.d(y,{r4:()=>s,oh:()=>d,Yn:()=>p,$w:()=>C,d:()=>f,IS:()=>I,Pt:()=>k});const e=()=>typeof window<"u",n={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)(\.(\d+(\.\d+)?))?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},o={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},a={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i},l={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i},u=(L,D,F)=>{for(let P in D)if(D.hasOwnProperty(P)&&D[P].test(L))return P;return void 0!==F?F:L},d=L=>{let D,F=[];for(let P in n)if(n.hasOwnProperty(P)){if(F=L.match(n[P]),!F)continue;if("windows"===P&&"plugins"in window.navigator)return null;const O={};return O.device=P,O.browser=u(L,l,"default"),O.name=u(P,o),O[O.name]=!0,O.majorVersion=F[2],O.minorVersion=F[3]?F[3].replace("_","."):".0",D=O.minorVersion.replace(".","").substr(0,2),O.flatVersion=O.majorVersion+D+new Array(3-(D.length<3?D.length:2)).join("0"),O.cordova=void 0!==typeof window.PhoneGap||void 0!==typeof window.cordova,O.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||O.cordova,O}return null},s=L=>{let D=null,F=[];for(let P in a)if(a.hasOwnProperty(P)&&(F=L.match(a[P]),F)){D={},D[P]=!0,D[F[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,D.version=parseInt(document.documentMode||F[2],10);break}return D},A=e()&&window.navigator?window.navigator.userAgent:null,_=A?s(A):null,C=A?d(A):null,R=e()&&"ontouchstart"in window,x=_&&!_.chrome&&window.MSPointerEvent,f=_&&!_.chrome&&window.PointerEvent,k=C&&(R||x||f),w=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function g(L){const D=[];return L.replace(w,function(F,P,O,U){D.push(void 0!==P?P:O||U)}),D}const M={};function p(L){if(M[L])return M[L];const D=g(L);return M[L]=function(F){let P=F;for(let O=0;O<D.length&&P;O++)P=P[D[O]];return P},M[L]}M.undefined=L=>L;const E={undefined:L=>L},b=(L,D)=>D&&D.arrays&&!isNaN(Number(L))?[]:{};function I(L){if(E[L])return E[L];const D=g(L);return E[L]=(F,P,O)=>{let U=F;const V=D.length-1;for(let K=0;K<V&&U;K++)U=U[D[K]]=U[D[K]]||b(D[K+1],O);U[D[V]]=P},E[L]}},53342:(he,y,i)=>{"use strict";i.d(y,{VN:()=>ji,j:()=>tr,vM:()=>Ao,GO:()=>C,Xo:()=>ao,N4:()=>ri});const e=Ii=>null!=Ii,n=Ii=>null==Ii,o=Ii=>Array.isArray(Ii),a=Ii=>"function"==typeof Ii,l=Ii=>"string"==typeof Ii,A=Ii=>!isNaN(Ii-parseFloat(Ii)),_=Ii=>Ii&&Ii.getTime,C=Ii=>e(Ii.filters),R=(Ii,yo,lr)=>Yr=>Ii(Yr)?yo(Yr):lr(Yr),x=(...Ii)=>yo=>Ii.reduceRight((lr,Yr)=>Yr(lr),yo),I=("",{}),L=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;I.undefined=Ii=>Ii;const D=(Ii,yo)=>{const lr=Ii+yo;if(I[lr])return I[lr];const Yr=[];return Ii.replace(L,(Gs,fi,Ho,_t)=>{Yr.push(e(fi)?fi:Ho||_t)}),I[lr]=Gs=>{let fi=Gs;for(let Ho=0;Ho<Yr.length;Ho++)if(fi=fi[Yr[Ho]],!e(fi)&&yo)return fi;return fi},I[lr]},de=Ii=>yo=>[Ii,yo],te=()=>null,H=Ii=>yo=>e(Ii(yo)),z=Ii=>yo=>(Ii=>e(Ii)&&o(Ii)&&Ii.length>0)(Ii(yo)),q=(Ii,yo)=>R(Ii,yo,te),ne=(Ii,yo)=>lr=>Ii(lr).map(yo).join("~"),Ce=x(...[['"',""],[":","-"]].map(([yo,lr])=>Yr=>Yr.replace(new RegExp(yo,"g"),lr))),Te=yo=>yo.slice(0,yo.indexOf(".")),De=({field:Ii,dir:yo="asc"})=>`${Ii}-${yo}`,xe=D("take"),Oe=D("aggregates"),Le=D("skip"),Gt=D("group"),Ut=D("sort",!0),An=ne(Ut,De),$n=ne(Gt,De),xn=ne(Oe,({field:Ii,aggregate:yo})=>`${Ii}-${yo}`),ut=x(Ii=>`datetime'${Ii}'`,Te,Ce,JSON.stringify,Ii=>new Date(Date.UTC(Ii.getFullYear(),Ii.getMonth(),Ii.getDate(),Ii.getHours(),Ii.getMinutes(),Ii.getSeconds(),Ii.getMilliseconds()))),sn=x(de("page"),({skip:Ii,take:yo})=>Math.floor((Ii||0)/yo)+1),fn=x(de("pageSize"),xe),yi=x(de("group"),$n),nn=x(de("sort"),An),Mi=x(de("aggregate"),xn),Ji=(q(H(Le),sn),q(H(xe),fn),q(z(Gt),yi),q(H(Oe),Mi),x(q(z(Ut),nn),Ii=>Object.assign({},Ii,{sort:(Ut(Ii)||[]).filter(({dir:yo})=>(Ii=>!(Ii=>n(Ii)||0===Ii.trim().length)(Ii))(yo))})),({field:Ii,operator:yo,value:lr})=>`${Ii}~${yo}~${lr}`),wt=(R(Ii=>_(Ii.value),x(Ji,({field:Ii,value:yo,ignoreCase:lr,operator:Yr})=>({value:ut(yo),field:Ii,ignoreCase:lr,operator:Yr})),Ji),(Ii,yo,lr)=>(yo[Ii]=lr,yo)),pt=Ii=>yo=>{const lr=yo[Ii];return e(lr)?lr:yo[(Ii=>Ii.replace(/(^[A-Z])/g,(yo,lr)=>lr.toLowerCase()))(Ii)]},vt=(pt("Member"),pt("AggregateMethodName"),pt("Value"),Ii=>yo=>Object.keys(yo).reduce(Ii.bind(null,yo),{})),ln=vt((Ii,yo,lr)=>wt(lr.toLowerCase(),yo,Ii[lr])),jn=vt((Ii,yo,lr)=>wt(lr,yo,ln(Ii[lr]))),Pi=(Ii,yo)=>e(Ii)?Ii:yo,si=x(({field:Ii,hasSubgroups:yo,value:lr,aggregates:Yr,items:Gs})=>({aggregates:jn(Yr),field:Ii,items:yo?Gs.map(si):Gs,value:lr}),Ii=>({aggregates:Ii.Aggregates||Ii.aggregates,field:Ii.Member||Ii.member||Ii.field,hasSubgroups:Ii.HasSubgroups||Ii.hasSubgroups||!1,items:Ii.Items||Ii.items,value:Pi(Ii.Key,Pi(Ii.key,Ii.value))})),_i=(Ii,yo)=>n(Ii)?Ii===yo?0:-1:n(yo)?1:Ii.localeCompare?Ii.localeCompare(yo):Ii>yo?1:Ii<yo?-1:0,wi=(Ii,yo)=>_i(yo,Ii),hi=Ii=>{if("function"==typeof Ii.compare)return Ii.compare;const yo=D(Ii.field,!0);return(lr,Yr)=>("asc"===Ii.dir?_i:wi)(yo(lr),yo(Yr))},zn=(Ii,yo)=>0,wn=(Ii,yo)=>(Ii.push(yo),Ii),Zi=Ii=>yo=>(lr,Yr,Gs)=>yo(lr,Ii(Yr,Gs)),oo=Ii=>yo=>(lr,Yr)=>Ii(Yr)?yo(lr,Yr):lr,Bi=Ii=>e(Ii.__value),Nr=(Ii,yo,lr)=>{let Yr=yo;for(let Gs=0,fi=lr.length;Gs<fi;Gs++)if(Yr=Ii(Yr,lr[Gs],Gs),Bi(Yr)){Yr=Yr.__value;break}return Yr},as=Zi(Ii=>Ii),ji=(Ii,yo=[],lr=as)=>{const Yr={};return yo.length?((Ii={})=>(Object.keys(Ii).forEach(yo=>{const lr=Ii[yo];Object.keys(lr).forEach(Yr=>{lr[Yr]=lr[Yr].result()})}),Ii))(Nr(lr((Ii=>{const yo=Ii.map(lr=>{const Yr=D(lr.field,!0),Gs=(lr.aggregate||"").toLowerCase(),fi=D(Gs,!0);return(Ho,_t)=>{const Zn=Ho[lr.field]||{},qo=fi(Zn)||(Ii=>({average:()=>{let yo=0,lr=0;return{calc:Yr=>{A(Yr)?(yo+=Yr,lr++):yo=Yr},result:()=>A(yo)?yo/lr:yo}},count:()=>{let yo=0;return{calc:()=>yo++,result:()=>yo}},max:()=>{let yo=Number.NEGATIVE_INFINITY;return{calc:lr=>{yo=A(yo)||_(yo)?yo:lr,yo<lr&&(A(lr)||_(lr))&&(yo=lr)},result:()=>yo}},min:()=>{let yo=Number.POSITIVE_INFINITY;return{calc:lr=>{yo=A(yo)||_(yo)?yo:lr,yo>lr&&(A(lr)||_(lr))&&(yo=lr)},result:()=>yo}},sum:()=>{let yo=0;return{calc:lr=>{lr=e(lr)?lr:0,yo+=lr},result:()=>yo}}}[Ii]()))(Gs);return qo.calc(Yr(_t)),Zn[lr.aggregate]=qo,Ho[lr.field]=Zn,Ho}});return(lr,Yr)=>yo.reduce((Gs,fi)=>fi(Gs,Yr),lr)})(yo)),Yr,Ii)):Yr},rt=Ii=>{Ii.filters&&(Ii.filters=Ii.filters.map(yo=>{const lr=Object.assign({},yo);return!C(yo)&&l(yo.operator)&&(lr.operator=(Ii=>({"!=":"neq","<":"lt","<=":"lte","==":"eq",">":"gt",">=":"gte",equal:"eq",equals:"eq",equalto:"eq",ge:"gte",greater:"gt",greaterthan:"gt",greaterthanequal:"gte",isempty:"isempty",isequalto:"eq",isgreaterthan:"gt",isgreaterthanorequalto:"gte",islessthan:"lt",islessthanorequalto:"lte",isnotempty:"isnotempty",isnotequalto:"neq",isnull:"isnull",le:"lte",less:"lt",lessthan:"lt",lessthanequal:"lte",ne:"neq",notequal:"neq",notequals:"neq",notequalto:"neq",notsubstringof:"doesnotcontain"}[Ii.toLowerCase()]||Ii))(yo.operator)),C(yo)&&rt(lr),lr}))},Gn=Ii=>(e(Ii)&&(Ii=(Ii=>C(Ii)?Object.assign({},Ii):{filters:o(Ii)?Ii:[Ii],logic:"and"})(Ii),rt(Ii)),Ii),Io={or:{concat:(Ii,yo)=>lr=>Ii(lr)||yo(lr),identity:()=>!1},and:{concat:(Ii,yo)=>lr=>Ii(lr)&&yo(lr),identity:()=>!0}},wr={contains:(Ii,yo)=>(Ii||"").indexOf(yo)>=0,doesnotcontain:(Ii,yo)=>-1===(Ii||"").indexOf(yo),doesnotendwith:(Ii,yo)=>(Ii||"").indexOf(yo,(Ii||"").length-(yo||"").length)<0,doesnotstartwith:(Ii,yo)=>-1===(Ii||"").lastIndexOf(yo,0),endswith:(Ii,yo)=>(Ii||"").indexOf(yo,(Ii||"").length-(yo||"").length)>=0,eq:(Ii,yo)=>Ii===yo,gt:(Ii,yo)=>Ii>yo,gte:(Ii,yo)=>Ii>=yo,isempty:Ii=>""===Ii,isnotempty:Ii=>""!==Ii,isnotnull:Ii=>e(Ii),isnull:Ii=>n(Ii),lt:(Ii,yo)=>Ii<yo,lte:(Ii,yo)=>Ii<=yo,neq:(Ii,yo)=>Ii!=yo,startswith:(Ii,yo)=>0===(Ii||"").lastIndexOf(yo,0)},bs=/^\/Date\((.*?)\)\/$/,Ea=Ii=>{const yo=Io[Ii.logic];return Ii.filters.filter(e).map(lr=>C(lr)?Ea(lr):(({field:Ii,ignoreCase:yo,value:lr,operator:Yr})=>{Ii=e(Ii)?Ii:Ho=>Ho,yo=!e(yo)||yo;const Gs=((Ii,yo,lr)=>{if(!e(yo))return Ii;let Yr=Ii;if(l(yo)){const Gs=bs.exec(yo);Gs?yo=new Date(+Gs[1]):Yr=fi=>{const Ho=Ii(fi);return"string"==typeof Ho&&lr?Ho.toLowerCase():A(Ho)?Ho+"":Ho}}return _(yo)?Gs=>{const fi=Yr(Gs);return _(fi)?fi.getTime():fi}:Yr})(a(Ii)?Ii:D(Ii,!0),lr,yo);lr=((Ii,yo)=>{if(null!=Ii&&l(Ii)){const lr=bs.exec(Ii);if(lr)return new Date(+lr[1]).getTime();if(yo)return Ii.toLowerCase()}else if(null!=Ii&&_(Ii))return Ii.getTime();return Ii})(lr,yo);const fi=a(Yr)?Yr:wr[Yr];return Ho=>fi(Gs(Ho),lr,yo)})(lr)).reduce(yo.concat,yo.identity)},Sa=Ii=>Ii&&0!==Ii.filters.length?Ea(Ii):()=>!0,tr=(Ii,yo)=>!e(yo)||C(yo)&&0===yo.filters.length?Ii:Ii.filter(Sa(Gn(yo))),Mr=Ii=>(Ii=o(Ii)?Ii:[Ii]).map(yo=>Object.assign({dir:"asc"},yo)),Li=Zi(Ii=>Ii),Ao=(Ii,yo=[],lr=Li,Yr=Ii)=>{if(!(yo=Mr(yo)).length)return Ii;const Gs=yo[0],Ho=Nr(lr((Ii=>{const yo=D(Ii,!0);let lr=0;return(Yr,Gs)=>{Yr[Ii]=Yr[Ii]||{};const fi=yo(Gs),Ho=(Ii=>(Ii=e(Ii)&&Ii.getTime?Ii.getTime():Ii)+"")(fi),_t=Yr[Ii][Ho]||{__position:lr++,aggregates:{},items:[],value:fi};return _t.items.push(Gs),Yr[Ii][Ho]=_t,Yr}})(Gs.field)),{},Ii),_t=[];return Object.keys(Ho).forEach(Zn=>{Object.keys(Ho[Zn]).forEach(qo=>{const Cr=Ho[Zn][qo];let kr={},xs=Yr;e(Gs.aggregates)&&(xs=tr(Yr,{field:Gs.field,ignoreCase:!1,operator:"eq",value:Cr.value}),kr=ji(xs,Gs.aggregates)),_t[Cr.__position]={aggregates:kr,field:Zn,items:yo.length>1?Ao(Cr.items,yo.slice(1),Li,xs):Cr.items,value:Cr.value}})}),_t},ao=(Ii,yo)=>{if(yo.some(lr=>e(lr.dir)||e(lr.compare))){Ii=Ii.slice(0);const lr=(Ii=>Ii.filter(yo=>e(yo.dir)||e(yo.compare)).map(yo=>hi(yo)).reduce((yo,lr)=>(Yr,Gs)=>yo(Yr,Gs)||lr(Yr,Gs),zn))(yo);Ii.sort(lr)}return Ii},mr=(Ii,yo)=>yo?Ii.filter(yo):Ii,ri=(Ii,yo)=>{const{skip:lr,take:Yr,filter:Gs,sort:fi,group:Ho}=yo,_t=[...Mr(Ho||[]),...fi||[]];_t.length&&(Ii=ao(Ii,_t));const Zn=e(Gs)&&oo.length,qo=e(Ho)&&Ho.length;if(!Zn&&!qo)return{data:Yr?Ii.slice(lr,lr+Yr):Ii,total:Ii.length};let Cr;const kr=[];let xs;if(Zn?(xs=Sa(Gn(Gs)),Cr=((Ii,yo)=>{let lr=0;for(let Yr=0,Gs=Ii.length;Yr<Gs;Yr++)yo(Ii[Yr])&&lr++;return lr})(Ii,xs),kr.push(oo(xs))):Cr=Ii.length,e(lr)&&e(Yr)&&(kr.push((Ii=>yo=>(lr,Yr)=>Ii--<=0?yo(lr,Yr):lr)(lr)),kr.push((Ii=>yo=>(lr,Yr)=>Ii-- >0?yo(lr,Yr):(Ii=>Bi(Ii)?Ii:{__value:Ii,reduced:!0})(lr))(Yr))),kr.length){const Us=x(...kr);return{data:qo?Ao(Ii,Ho,Us,mr(Ii,xs)):Nr(Us(wn),[],Ii),total:Cr}}return{data:qo?Ao(Ii,Ho):Ii,total:Cr}}},13073:(he,y,i)=>{"use strict";i.d(y,{E:()=>o});var e=i(61197),n=i(72089);const o=(a,l)=>{const u=(0,n.k)(a);return u.setDate(u.getDate()+l),(0,e.m)(u,a.getHours())}},94450:(he,y,i)=>{"use strict";i.d(y,{z:()=>u});var e=i(61197),n=i(72089),o=i(26642);const u=(d,s)=>{const A=(0,n.k)(d),C=(12+(A.getMonth()+s)%12)%12;return A.setMonth(A.getMonth()+s),((d,s)=>d.getMonth()!==s?(0,o.q)(u(d,-1)):d)((0,e.m)(A,d.getHours()),C)}},61197:(he,y,i)=>{"use strict";i.d(y,{m:()=>n});var e=i(72089);const n=(o,a)=>{const l=(0,e.k)(o);return 0===a&&23===l.getHours()&&l.setHours(l.getHours()+2),l}},72089:(he,y,i)=>{"use strict";i.d(y,{k:()=>e});const e=n=>n?new Date(n.getTime()):null},17885:(he,y,i)=>{"use strict";i.d(y,{Mb:()=>o,X$:()=>e,zq:()=>n});const e=6e4,n=36e5,o=864e5},33882:(he,y,i)=>{"use strict";i.d(y,{B:()=>n});var e=i(61197);const n=(o,a,l,u=0,d=0,s=0,A=0)=>{const _=new Date(o,a,l,u,d,s,A);return o>-1&&o<100&&_.setFullYear(_.getFullYear()-1900),(0,e.m)(_,u)}},17097:(he,y,i)=>{"use strict";i.d(y,{J:()=>e});var e=function(n){return n[n.Sunday=0]="Sunday",n[n.Monday=1]="Monday",n[n.Tuesday=2]="Tuesday",n[n.Wednesday=3]="Wednesday",n[n.Thursday=4]="Thursday",n[n.Friday=5]="Friday",n[n.Saturday=6]="Saturday",n}(e||{})},78961:(he,y,i)=>{"use strict";i.d(y,{l:()=>n});var e=i(33882);const n=o=>(0,e.B)(o.getFullYear(),o.getMonth(),1,o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds())},77345:(he,y,i)=>{"use strict";i.d(y,{_:()=>n});var e=i(33882);const n=o=>(0,e.B)(o.getFullYear(),o.getMonth(),o.getDate(),0,0,0)},78016:(he,y,i)=>{"use strict";i.d(y,{X:()=>e});const e=(n,o)=>!n&&!o||n&&o&&n.getTime()===o.getTime()},26642:(he,y,i)=>{"use strict";i.d(y,{q:()=>o});var e=i(13073),n=i(33882);const o=a=>{const l=(0,n.B)(a.getFullYear(),a.getMonth()+1,1,a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds());return(0,e.E)(l,-1)}},68503:(he,y,i)=>{"use strict";i.d(y,{_:()=>A});const e=(C,R)=>x=>R(C(x)),n=(C,R,x)=>C.addEventListener&&C.addEventListener(R,x),o=(C,R,x)=>C&&C.removeEventListener&&C.removeEventListener(R,x),a=()=>{},l=C=>C.preventDefault(),u=/touch/;function s(C){return C.type.match(u)?{pageX:C.changedTouches[0].pageX,pageY:C.changedTouches[0].pageY,clientX:C.changedTouches[0].clientX,clientY:C.changedTouches[0].clientY,type:C.type,originalEvent:C,isTouch:!0}:{pageX:C.pageX,pageY:C.pageY,clientX:C.clientX,clientY:C.clientY,offsetX:C.offsetX,offsetY:C.offsetY,type:C.type,ctrlKey:C.ctrlKey,shiftKey:C.shiftKey,altKey:C.altKey,originalEvent:C}}let A=(()=>{class C{static supportPointerEvent(){return typeof window<"u"&&window.PointerEvent}get document(){return this._element?this._element.ownerDocument:document}constructor({press:x=a,drag:f=a,release:k=a,mouseOnly:w=!1}){this._pressHandler=e(s,x),this._dragHandler=e(s,f),this._releaseHandler=e(s,k),this._ignoreMouse=!1,this._mouseOnly=w,this._touchstart=g=>{1===g.touches.length&&this._pressHandler(g)},this._touchmove=g=>{1===g.touches.length&&this._dragHandler(g)},this._touchend=g=>{0===g.touches.length&&1===g.changedTouches.length&&(this._releaseHandler(g),this._ignoreMouse=!0,setTimeout(this._restoreMouse,2e3))},this._restoreMouse=()=>{this._ignoreMouse=!1},this._mousedown=g=>{const{which:M}=g;M&&M>1||this._ignoreMouse||(n(this.document,"mousemove",this._mousemove),n(this.document,"mouseup",this._mouseup),this._pressHandler(g))},this._mousemove=g=>{this._dragHandler(g)},this._mouseup=g=>{o(this.document,"mousemove",this._mousemove),o(this.document,"mouseup",this._mouseup),this._releaseHandler(g)},this._pointerdown=g=>{g.isPrimary&&0===g.button&&(n(this.document,"pointermove",this._pointermove),n(this.document,"pointerup",this._pointerup),n(this.document,"pointercancel",this._pointerup),n(this.document,"contextmenu",l),this._pressHandler(g))},this._pointermove=g=>{g.isPrimary&&this._dragHandler(g)},this._pointerup=g=>{g.isPrimary&&(o(this.document,"pointermove",this._pointermove),o(this.document,"pointerup",this._pointerup),o(this.document,"pointercancel",this._pointerup),o(this.document,"contextmenu",l),this._releaseHandler(g))}}cancelDrag(){o(this.document,"pointermove",this._pointermove),o(this.document,"pointerup",this._pointerup),o(this.document,"pointercancel",this._pointerup)}bindTo(x){x!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=x,this._bindToCurrent())}_bindToCurrent(){const x=this._element;this._usePointers()?n(x,"pointerdown",this._pointerdown):(n(x,"mousedown",this._mousedown),this._mouseOnly||(n(x,"touchstart",this._touchstart),n(x,"touchmove",this._touchmove),n(x,"touchend",this._touchend)))}_unbindFromCurrent(){const x=this._element;if(this._usePointers())return o(x,"pointerdown",this._pointerdown),o(this.document,"pointermove",this._pointermove),o(this.document,"pointerup",this._pointerup),o(this.document,"contextmenu",l),void o(this.document,"pointercancel",this._pointerup);o(x,"mousedown",this._mousedown),this._mouseOnly||(o(x,"touchstart",this._touchstart),o(x,"touchmove",this._touchmove),o(x,"touchend",this._touchend))}_usePointers(){return!this._mouseOnly&&C.supportPointerEvent()}update({press:x=a,drag:f=a,release:k=a,mouseOnly:w=!1}){this._pressHandler=e(s,x),this._dragHandler=e(s,f),this._releaseHandler=e(s,k),this._mouseOnly=w}destroy(){this._unbindFromCurrent(),this._element=null}}return C.default=C,C})()},57553:(he,y,i)=>{"use strict";i.d(y,{Z:()=>e});class e{}},90380:(he,y,i)=>{"use strict";i.d(y,{Z:()=>u});var e=i(57553),n=i(21795),o=i(31462);const u=(()=>{class d extends e.Z{constructor(A){if(super(),1===arguments.length){const _=d.formats,C=this.resolveColor(A);for(let R=0;R<_.length;R++){const f=_[R].process,k=_[R].re.exec(C);if(k){const w=f(k);this.r=w[0],this.g=w[1],this.b=w[2]}}}else this.r=arguments[0],this.g=arguments[1],this.b=arguments[2];this.r=this.normalizeByte(this.r),this.g=this.normalizeByte(this.g),this.b=this.normalizeByte(this.b)}toHex(){const A=this.padDigit,_=this.r.toString(16),C=this.g.toString(16),R=this.b.toString(16);return"#"+A(_)+A(C)+A(R)}resolveColor(A){let _=A||"black";return"#"===_.charAt(0)&&(_=_.substr(1,6)),_=_.replace(/ /g,""),_=_.toLowerCase(),_=d.namedColors[_]||_,_}normalizeByte(A){return A<0||isNaN(A)?0:A>255?255:A}padDigit(A){return 1===A.length?"0"+A:A}brightness(A){const _=Math.round;return this.r=_(this.normalizeByte(this.r*A)),this.g=_(this.normalizeByte(this.g*A)),this.b=_(this.normalizeByte(this.b*A)),this}percBrightness(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)}isDark(){return this.percBrightness()<180}static fromBytes(A,_,C,R){return new o.Jj(A,_,C,R??1)}static fromRGB(A,_,C,R){return new o.eX(A,_,C,R??1)}static fromHSV(A,_,C,R){return new o.kz(A,_,C,R??1)}static fromHSL(A,_,C,R){return new o.wA(A,_,C,R??1)}}return d.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(s){return[parseInt(s[1],10),parseInt(s[2],10),parseInt(s[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],d.namedColors=n.Z,d})()},21795:(he,y,i)=>{"use strict";i.d(y,{Z:()=>n});const n={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}},31462:(he,y,i)=>{"use strict";i.d(y,{Jj:()=>s,ZP:()=>f,eX:()=>d,kz:()=>_,wA:()=>C});var e=i(57553),n=i(35276),o=i(21795);const a=n.Z.browser;let l=k=>{const w=Object.keys(o.Z);w.push("transparent");const g=new RegExp("^("+w.join("|")+")(\\W|$)","i");return l=M=>g.exec(M),g.exec(k)};class u extends e.Z{constructor(){super()}toHSV(){return this}toRGB(){return this}toHex(w){return this.toBytes().toHex(w)}toBytes(){return this}toCss(w){return"#"+this.toHex(w)}toCssRgba(){const w=this.toBytes();return`rgba(${w.r}, ${w.g}, ${w.b}, ${parseFloat(Number(this.a).toFixed(3))})`}toDisplay(){return a.msie&&a.version<9?this.toCss():this.toCssRgba()}equals(w){return w===this||null!=w&&this.toCssRgba()===f(w).toCssRgba()}diff(w){if(null===w)return NaN;const g=this.toBytes(),M=w.toBytes();return Math.sqrt(Math.pow(.3*(g.r-M.r),2)+Math.pow(.59*(g.g-M.g),2)+Math.pow(.11*(g.b-M.b),2))}clone(){let w=this.toBytes();return w===this&&(w=new s(w.r,w.g,w.b,w.a)),w}}class d extends u{constructor(w,g,M,p){super(),this.r=w,this.g=g,this.b=M,this.a=p}toHSV(){const{r:w,g,b:M}=this,p=Math.min(w,g,M),E=Math.max(w,g,M),b=E-p,I=E;let L,D;return 0===b?new _(0,0,I,this.a):(0!==E?(D=b/E,L=w===E?(g-M)/b:g===E?2+(M-w)/b:4+(w-g)/b,L*=60,L<0&&(L+=360)):(D=0,L=-1),new _(L,D,I,this.a))}toHSL(){const{r:w,g,b:M}=this,p=Math.max(w,g,M),E=Math.min(w,g,M);let b,I,L=(p+E)/2;if(p===E)b=I=0;else{const D=p-E;switch(I=L>.5?D/(2-p-E):D/(p+E),p){case w:b=(g-M)/D+(g<M?6:0);break;case g:b=(M-w)/D+2;break;case M:b=(w-g)/D+4}}return new C(60*b,100*I,100*L,this.a)}toBytes(){return new s(255*this.r,255*this.g,255*this.b,this.a)}}class s extends d{constructor(w,g,M,p){super(Math.round(w),Math.round(g),Math.round(M),p)}toRGB(){return new d(this.r/255,this.g/255,this.b/255,this.a)}toHSV(){return this.toRGB().toHSV()}toHSL(){return this.toRGB().toHSL()}toHex(w){let g=A(this.r,2)+A(this.g,2)+A(this.b,2);return w&&w.alpha&&(g+=A(Math.round(255*this.a),2)),g}toBytes(){return this}}function A(k,w,g="0"){let M=k.toString(16);for(;w>M.length;)M=g+M;return M}class _ extends u{constructor(w,g,M,p){super(),this.h=w,this.s=g,this.v=M,this.a=p}toRGB(){let p,E,b,{h:w,s:g,v:M}=this;if(0===g)p=E=b=M;else{w/=60;const I=Math.floor(w),L=w-I,D=M*(1-g),F=M*(1-g*L),P=M*(1-g*(1-L));switch(I){case 0:p=M,E=P,b=D;break;case 1:p=F,E=M,b=D;break;case 2:p=D,E=M,b=P;break;case 3:p=D,E=F,b=M;break;case 4:p=P,E=D,b=M;break;default:p=M,E=D,b=F}}return new d(p,E,b,this.a)}toHSL(){return this.toRGB().toHSL()}toBytes(){return this.toRGB().toBytes()}}class C extends u{constructor(w,g,M,p){super(),this.h=w,this.s=g,this.l=M,this.a=p}toRGB(){let p,E,b,w=this.h/360,g=this.s/100,M=this.l/100;if(0===g)p=E=b=M;else{const I=M<.5?M*(1+g):M+g-M*g,L=2*M-I;p=R(L,I,w+1/3),E=R(L,I,w),b=R(L,I,w-1/3)}return new d(p,E,b,this.a)}toHSV(){return this.toRGB().toHSV()}toBytes(){return this.toRGB().toBytes()}}function R(k,w,g){let M=g;return M<0&&(M+=1),M>1&&(M-=1),M<1/6?k+6*(w-k)*M:M<.5?w:M<2/3?k+(w-k)*(2/3-M)*6:k}function x(k){return parseFloat(parseFloat(parseInt(k,16)/255).toFixed(3))}function f(k,w){let g,M;if(null==k||"none"===k)return null;if(k instanceof u)return k;let p=k.toLowerCase();if(g=l(p))return p="transparent"===g[1]?new d(1,1,1,0):f(o.Z[g[1]],w),p.match=[g[1]],p;if((g=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(p))?M=new s(parseInt(g[1],16),parseInt(g[2],16),parseInt(g[3],16),1):(g=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(p))?M=new s(parseInt(g[1]+g[1],16),parseInt(g[2]+g[2],16),parseInt(g[3]+g[3],16),1):(g=/^#?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(p))?M=new s(parseInt(g[1]+g[1],16),parseInt(g[2]+g[2],16),parseInt(g[3]+g[3],16),x(g[4]+g[4])):(g=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(p))?M=new s(parseInt(g[1],16),parseInt(g[2],16),parseInt(g[3],16),x(g[4])):(g=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(p))?M=new s(parseInt(g[1],10),parseInt(g[2],10),parseInt(g[3],10),1):(g=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(p))?M=new s(parseInt(g[1],10),parseInt(g[2],10),parseInt(g[3],10),parseFloat(g[4])):(g=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(p))?M=new d(parseFloat(g[1])/100,parseFloat(g[2])/100,parseFloat(g[3])/100,1):(g=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(p))&&(M=new d(parseFloat(g[1])/100,parseFloat(g[2])/100,parseFloat(g[3])/100,parseFloat(g[4]))),M)M.match=g;else if(!w)throw new Error("Cannot parse color: "+p);return M}},35276:(he,y,i)=>{"use strict";i.d(y,{Z:()=>a});let n=null;const a={get browser(){return typeof window>"u"||n||(n=function e(l){const u={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+))/i};let d={};for(let s in u)if(u.hasOwnProperty(s)){const A=l.match(u[s]);if(A){d[s]=!0,d[A[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,d.version=parseInt(document.documentMode||A[2],10);break}}return d}(window.navigator.userAgent)),n}}},11737:(he,y,i)=>{"use strict";i.d(y,{Z:()=>o});var e=i(57553);const o=class n extends e.Z{observers(){return this._observers=this._observers||[],this._observers}addObserver(l){return this._observers?this._observers.push(l):this._observers=[l],this}removeObserver(l){const u=this.observers(),d=u.indexOf(l);return-1!==d&&u.splice(d,1),this}trigger(l,u){const d=this._observers;if(d&&!this._suspended)for(let s=0;s<d.length;s++){let A=d[s];A[l]&&A[l](u)}return this}optionsChange(l={}){l.element=this,this.trigger("optionsChange",l)}geometryChange(){this.trigger("geometryChange",{element:this})}suspend(){return this._suspended=(this._suspended||0)+1,this}resume(){return this._suspended=Math.max((this._suspended||0)-1,0),this}_observerField(l,u){this[l]&&this[l].removeObserver(this),this[l]=u,u.addObserver(this)}}},75429:(he,y,i)=>{"use strict";i.d(y,{Z:()=>u});var e=i(57553),n=i(11737),o=i(10409);const a={}.toString;class l extends n.Z{constructor(s,A=""){super(),this.prefix=A;for(let _ in s){let C=s[_];C=this._wrap(C,_),this[_]=C}}get(s){const A=s.split(".");let _=this;for(;A.length&&_;)_=_[A.shift()];return _}set(s,A){this.get(s)!==A&&(this._set(s,this._wrap(A,s)),this.optionsChange({field:this.prefix+s,value:A}))}_set(s,A){const _=s.indexOf(".")>=0;let C=this,R=s;if(_){const x=R.split(".");let f=this.prefix;for(;x.length>1;){R=x.shift(),f+=R+".";let k=C[R];k||(k=new l({},f),k.addObserver(this),C[R]=k),C=k}R=x[0]}C._clear(R),C[R]=A}_clear(s){const A=this[s];A&&A.removeObserver&&A.removeObserver(this)}_wrap(s,A){const _=a.call(s);let C=s;return null!==C&&(0,o.Z)(C)&&"[object Object]"===_&&(!(s instanceof l)&&!(s instanceof e.Z)&&(C=new l(C,this.prefix+A+".")),C.addObserver(this)),C}}const u=l},80600:(he,y,i)=>{"use strict";i.d(y,{Z:()=>b});var e=i(11737),n=i(93560),o=i(58214),a=i(78203),l=i(8551),u=i(61305);function d(I,L,D){return I<L||(0,u.Z)(I,L,D)}var s=i(12090),_=i(40163),C=i(56626),R=i(3897),x=i(27229);const k=Math.pow,w=["radiusX","radiusY","startAngle","endAngle","anticlockwise"];class g extends((0,l.Z)(e.Z,w)){constructor(L=new s.Z,D={}){super(),this.setCenter(L),this.radiusX=D.radiusX,this.radiusY=D.radiusY||D.radiusX,this.startAngle=D.startAngle,this.endAngle=D.endAngle,this.anticlockwise=D.anticlockwise||!1,this.xRotation=D.xRotation}clone(){return new g(this.center,{radiusX:this.radiusX,radiusY:this.radiusY,startAngle:this.startAngle,endAngle:this.endAngle,anticlockwise:this.anticlockwise})}setCenter(L){return this._observerField("center",s.Z.create(L)),this.geometryChange(),this}getCenter(){return this.center}pointAt(L){const D=this.center,F=(0,n.Z)(L);return new s.Z(D.x+this.radiusX*Math.cos(F),D.y+this.radiusY*Math.sin(F))}curvePoints(){const L=this.startAngle,D=this.anticlockwise?-1:1,F=[this.pointAt(L)],P=this._arcInterval(),O=P.endAngle-P.startAngle,U=Math.ceil(O/45),V=O/U;let X,K=L;this.xRotation&&(X=(0,x.Z)().rotate(this.xRotation,this.center));for(let me=1;me<=U;me++){const J=K+D*V,Q=this._intervalCurvePoints(K,J,X);F.push(Q.cp1,Q.cp2,Q.p2),K=J}return F}bbox(L){const D=this._arcInterval(),F=D.startAngle,P=D.endAngle,O=(0,_.Z)(this.center,this.radiusX,this.radiusY,L),U=(0,o.Z)(O.x),V=(0,o.Z)(O.y),K=this.pointAt(P).transformCopy(L);let X=E(U,F),me=E(V,F),J=this.pointAt(F).transformCopy(L),Q=s.Z.min(J,K),re=s.Z.max(J,K);for(;X<P||me<P;){let de,te;X<P&&(de=this.pointAt(X).transformCopy(L),X+=90),me<P&&(te=this.pointAt(me).transformCopy(L),me+=90),J=new s.Z(de.x,te.y),Q=s.Z.min(Q,J),re=s.Z.max(re,J)}return R.Z.fromPoints(Q,re)}_arcInterval(){let{startAngle:L,endAngle:D,anticlockwise:F}=this;if(F){let P=L;L=D,D=P}return(L>D||F&&L===D)&&(D+=360),{startAngle:L,endAngle:D}}_intervalCurvePoints(L,D,F){const P=this.pointAt(L),O=this.pointAt(D),U=this._derivativeAt(L),V=this._derivativeAt(D),K=((0,n.Z)(D)-(0,n.Z)(L))/3,X=new s.Z(P.x+K*U.x,P.y+K*U.y),me=new s.Z(O.x-K*V.x,O.y-K*V.y);return F&&(P.transform(F),O.transform(F),X.transform(F),me.transform(F)),{p1:P,cp1:X,cp2:me,p2:O}}_derivativeAt(L){const D=(0,n.Z)(L);return new s.Z(-this.radiusX*Math.sin(D),this.radiusY*Math.cos(D))}containsPoint(L){const D=this._arcInterval(),F=D.endAngle-D.startAngle,{center:P,radiusX:O,radiusY:U}=this,V=P.distanceTo(L),K=Math.atan2(L.y-P.y,L.x-P.x),X=O*U/Math.sqrt(k(O,2)*k(Math.sin(K),2)+k(U,2)*k(Math.cos(K),2)),me=this.pointAt(this.startAngle).round(C.c),J=this.pointAt(this.endAngle).round(C.c),Q=function A(I,L,D,F){const P=L.x-I.x,O=F.x-D.x,U=L.y-I.y,V=F.y-D.y,K=I.x-D.x,X=I.y-D.y,me=P*V-O*U,J=(P*X-U*K)/me,Q=(O*X-V*K)/me;if(J>=0&&J<=1&&Q>=0&&Q<=1)return new s.Z(I.x+Q*P,I.y+Q*U)}(P,L.round(C.c),me,J);let re;if(F<180)re=Q&&d(P.distanceTo(Q),V)&&d(V,X);else{let de=M(P.x,P.y,O,U,L.x,L.y);360!==de&&(de=(360+de)%360);let te=D.startAngle<=de&&de<=D.endAngle;re=te&&d(V,X)||!te&&(!Q||Q.equals(L))}return re}_isOnPath(L,D){const F=this._arcInterval(),P=this.center;let O=M(P.x,P.y,this.radiusX,this.radiusY,L.x,L.y);return 360!==O&&(O=(360+O)%360),F.startAngle<=O&&O<=F.endAngle&&this.pointAt(O).distanceTo(L)<=D}static fromPoints(L,D,F,P,O,U,V){const K=function p(I){let{x1:L,y1:D,x2:F,y2:P,rx:O,ry:U,largeArc:V,swipe:K,rotation:X=0}=I;const me=(0,n.Z)(X),J=Math.cos(me),Q=Math.sin(me),re=J*(L-F)/2+Q*(D-P)/2,de=-Q*(L-F)/2+J*(D-P)/2,te=V!==K?1:-1,j=Math.pow(re,2),H=Math.pow(de,2);let z=Math.pow(O,2),q=Math.pow(U,2),se=j/z+H/q;se>1&&(se=Math.sqrt(j/z+H/q),O*=se,z=Math.pow(O,2),U*=se,q=Math.pow(U,2));let ne=te*Math.sqrt((z*q-z*H-q*j)/(z*H+q*j));isNaN(ne)&&(ne=0);const _e=ne*(O*de)/U,ge=U*re*-ne/O,Ce=J*_e-Q*ge+(L+F)/2,Te=Q*_e+J*ge+(D+P)/2,De=(re-_e)/O,fe=(de-ge)/U,xe=-(re+_e)/O,Oe=-(de+ge)/U,Le=(fe>=0?1:-1)*(0,o.Z)(Math.acos(De/Math.sqrt(De*De+fe*fe))),Gt=(0,a.Z)((De*xe+fe*Oe)/(Math.sqrt(De*De+fe*fe)*Math.sqrt(xe*xe+Oe*Oe)),10);let Ut=(De*Oe-fe*xe>=0?1:-1)*(0,o.Z)(Math.acos(Gt));!K&&Ut>0&&(Ut-=360),K&&Ut<0&&(Ut+=360);let An=Le+Ut;const $n=An>=0?1:-1;return An=Math.abs(An)%360*$n,{center:new s.Z(Ce,Te),startAngle:Le,endAngle:An,radiusX:O,radiusY:U,xRotation:X}}({x1:L.x,y1:L.y,x2:D.x,y2:D.y,rx:F,ry:P,largeArc:O,swipe:U,rotation:V});return new g(K.center,{startAngle:K.startAngle,endAngle:K.endAngle,radiusX:K.radiusX,radiusY:K.radiusY,xRotation:K.xRotation,anticlockwise:0===U})}}function M(I,L,D,F,P,O){const U=(0,a.Z)((P-I)/D,3),V=(0,a.Z)((O-L)/F,3);return(0,a.Z)((0,o.Z)(Math.atan2(V,U)))}function E(I,L){let D=I;for(;D<L;)D+=90;return D}const b=g},27128:(he,y,i)=>{"use strict";i.d(y,{Z:()=>A});var e=i(8551),n=i(12090),o=i(3897),a=i(40163),l=i(11737),u=i(93560);const d=Math.PI/2;class s extends((0,e.Z)(l.Z,["radius"])){constructor(C=new n.Z,R=0){super(),this.setCenter(C),this.setRadius(R)}setCenter(C){return this._observerField("center",n.Z.create(C)),this.geometryChange(),this}getCenter(){return this.center}equals(C){return C&&C.center.equals(this.center)&&C.radius===this.radius}clone(){return new s(this.center.clone(),this.radius)}pointAt(C){return this._pointAt((0,u.Z)(C))}bbox(C){const R=(0,a.Z)(this.center,this.radius,this.radius,C);let x=n.Z.maxPoint(),f=n.Z.minPoint();for(let k=0;k<4;k++){let w=this._pointAt(R.x+k*d).transformCopy(C),g=this._pointAt(R.y+k*d).transformCopy(C),M=new n.Z(w.x,g.y);x=n.Z.min(x,M),f=n.Z.max(f,M)}return o.Z.fromPoints(x,f)}_pointAt(C){const{center:R,radius:x}=this;return new n.Z(R.x+x*Math.cos(C),R.y+x*Math.sin(C))}containsPoint(C){const{center:R,radius:x}=this;return Math.pow(C.x-R.x,2)+Math.pow(C.y-R.y,2)<=Math.pow(x,2)}_isOnPath(C,R){const{center:x,radius:f}=this,k=x.distanceTo(C);return f-R<=k&&k<=f+R}}const A=s},56626:(he,y,i)=>{"use strict";i.d(y,{c:()=>e});const e=10},61305:(he,y,i)=>{"use strict";i.d(y,{Z:()=>o});var e=i(56626),n=i(78203);function o(a,l,u=e.c){return 0===(0,n.Z)(Math.abs(a-l),u)}},40163:(he,y,i)=>{"use strict";function e(n,o,a,l){let u=0,d=0;return l&&(u=Math.atan2(l.c*a,l.a*o),0!==l.b&&(d=Math.atan2(l.d*a,l.b*o))),{x:u,y:d}}i.d(y,{Z:()=>e})},72072:(he,y,i)=>{"use strict";function e(n,o,a){let l;if(n.x!==o.x){const u=Math.min(n.x,o.x),d=Math.max(n.x,o.x),s=Math.min(n.y,o.y),A=Math.max(n.y,o.y),_=u<=a.x&&a.x<d;l=s===A?a.y<=s&&_:_&&(A-s)*((n.x-o.x)*(n.y-o.y)>0?a.x-u:d-a.x)/(d-u)+s-a.y>=0}return l?1:0}i.d(y,{Z:()=>e})},11255:(he,y,i)=>{"use strict";i.d(y,{Z:()=>u});var e=i(57553),n=i(10409),o=i(93560),a=i(78203);class l extends e.Z{constructor(s=0,A=0,_=0,C=0,R=0,x=0){super(),this.a=s,this.b=A,this.c=_,this.d=C,this.e=R,this.f=x}multiplyCopy(s){return new l(this.a*s.a+this.c*s.b,this.b*s.a+this.d*s.b,this.a*s.c+this.c*s.d,this.b*s.c+this.d*s.d,this.a*s.e+this.c*s.f+this.e,this.b*s.e+this.d*s.f+this.f)}invert(){const{a:s,b:A,c:_,d:C,e:R,f:x}=this,f=s*C-A*_;return 0===f?null:new l(C/f,-A/f,-_/f,s/f,(_*x-C*R)/f,(A*R-s*x)/f)}clone(){return new l(this.a,this.b,this.c,this.d,this.e,this.f)}equals(s){return!!s&&this.a===s.a&&this.b===s.b&&this.c===s.c&&this.d===s.d&&this.e===s.e&&this.f===s.f}round(s){return this.a=(0,a.Z)(this.a,s),this.b=(0,a.Z)(this.b,s),this.c=(0,a.Z)(this.c,s),this.d=(0,a.Z)(this.d,s),this.e=(0,a.Z)(this.e,s),this.f=(0,a.Z)(this.f,s),this}toArray(s){const A=[this.a,this.b,this.c,this.d,this.e,this.f];if((0,n.Z)(s))for(let _=0;_<A.length;_++)A[_]=(0,a.Z)(A[_],s);return A}toString(s,A=","){return this.toArray(s).join(A)}static translate(s,A){return new l(1,0,0,1,s,A)}static unit(){return new l(1,0,0,1,0,0)}static rotate(s,A,_){const C=new l;return C.a=Math.cos((0,o.Z)(s)),C.b=Math.sin((0,o.Z)(s)),C.c=-C.b,C.d=C.a,C.e=A-A*C.a+_*C.b||0,C.f=_-_*C.a-A*C.b||0,C}static scale(s,A){return new l(s,0,0,A,0,0)}}l.IDENTITY=l.unit();const u=l},12090:(he,y,i)=>{"use strict";i.d(y,{Z:()=>A});var e=i(8551),n=i(11737),o=i(78203),a=i(10409),l=i(52912),u=i(11255),d=i(62803);class s extends((0,e.Z)(n.Z,["x","y"])){constructor(C,R){super(),this.x=C||0,this.y=R||0}equals(C){return C&&C.x===this.x&&C.y===this.y}clone(){return new s(this.x,this.y)}rotate(C,R){const x=s.create(R)||s.ZERO;return this.transform(u.Z.rotate(C,x.x,x.y))}translate(C,R){return this.x+=C,this.y+=R,this.geometryChange(),this}translateWith(C){return this.translate(C.x,C.y)}move(C,R){return this.x=this.y=0,this.translate(C,R)}scale(C,R=C){return this.x*=C,this.y*=R,this.geometryChange(),this}scaleCopy(C,R){return this.clone().scale(C,R)}transform(C){const R=(0,d.Z)(C),{x,y:f}=this;return this.x=R.a*x+R.c*f+R.e,this.y=R.b*x+R.d*f+R.f,this.geometryChange(),this}transformCopy(C){const R=this.clone();return C&&R.transform(C),R}distanceTo(C){const R=this.x-C.x,x=this.y-C.y;return Math.sqrt(R*R+x*x)}round(C){return this.x=(0,o.Z)(this.x,C),this.y=(0,o.Z)(this.y,C),this.geometryChange(),this}toArray(C){const R=(0,a.Z)(C);return[R?(0,o.Z)(this.x,C):this.x,R?(0,o.Z)(this.y,C):this.y]}toString(C,R=" "){let{x,y:f}=this;return(0,a.Z)(C)&&(x=(0,o.Z)(x,C),f=(0,o.Z)(f,C)),x+R+f}static create(C,R){if((0,a.Z)(C))return C instanceof s?C:1===arguments.length&&2===C.length?new s(C[0],C[1]):new s(C,R)}static min(){let C=l.lA,R=l.lA;for(let x=0;x<arguments.length;x++){let f=arguments[x];C=Math.min(f.x,C),R=Math.min(f.y,R)}return new s(C,R)}static max(){let C=l.fO,R=l.fO;for(let x=0;x<arguments.length;x++){const f=arguments[x];C=Math.max(f.x,C),R=Math.max(f.y,R)}return new s(C,R)}static minPoint(){return new s(l.fO,l.fO)}static maxPoint(){return new s(l.lA,l.lA)}static get ZERO(){return new s(0,0)}}const A=s},3897:(he,y,i)=>{"use strict";i.d(y,{Z:()=>l});var e=i(11737),n=i(12090),o=i(35148);class a extends e.Z{constructor(d=new n.Z,s=new o.Z,A=0){super(),this.setOrigin(d),this.setSize(s),this.setCornerRadius(A)}clone(){return new a(this.origin.clone(),this.size.clone())}equals(d){return d&&d.origin.equals(this.origin)&&d.size.equals(this.size)}setOrigin(d){return this._observerField("origin",n.Z.create(d)),this.geometryChange(),this}getOrigin(){return this.origin}setCornerRadius(d){return this.cornerRadius=Array.isArray(d)?d:[d,d],this.geometryChange(),this}getCornerRadius(){return this.cornerRadius}setSize(d){return this._observerField("size",o.Z.create(d)),this.geometryChange(),this}getSize(){return this.size}width(){return this.size.width}height(){return this.size.height}topLeft(){return this.origin.clone()}bottomRight(){return this.origin.clone().translate(this.width(),this.height())}topRight(){return this.origin.clone().translate(this.width(),0)}bottomLeft(){return this.origin.clone().translate(0,this.height())}center(){return this.origin.clone().translate(this.width()/2,this.height()/2)}bbox(d){const s=this.topLeft().transformCopy(d),A=this.topRight().transformCopy(d),_=this.bottomRight().transformCopy(d),C=this.bottomLeft().transformCopy(d);return a.fromPoints(s,A,_,C)}transformCopy(d){return a.fromPoints(this.topLeft().transform(d),this.bottomRight().transform(d))}expand(d,s=d){return this.size.width+=2*d,this.size.height+=2*s,this.origin.translate(-d,-s),this}expandCopy(d,s){return this.clone().expand(d,s)}containsPoint(d){const s=this.origin,A=this.bottomRight();return!(d.x<s.x||d.y<s.y||A.x<d.x||A.y<d.y)}_isOnPath(d,s){const A=this.expandCopy(s,s),_=this.expandCopy(-s,-s);return A.containsPoint(d)&&!_.containsPoint(d)}static fromPoints(){const d=n.Z.min.apply(null,arguments),s=n.Z.max.apply(null,arguments),A=new o.Z(s.x-d.x,s.y-d.y);return new a(d,A)}static union(d,s){return a.fromPoints(n.Z.min(d.topLeft(),s.topLeft()),n.Z.max(d.bottomRight(),s.bottomRight()))}static intersect(d,s){const A={left:d.topLeft().x,top:d.topLeft().y,right:d.bottomRight().x,bottom:d.bottomRight().y},_={left:s.topLeft().x,top:s.topLeft().y,right:s.bottomRight().x,bottom:s.bottomRight().y};if(A.left<=_.right&&_.left<=A.right&&A.top<=_.bottom&&_.top<=A.bottom)return a.fromPoints(new n.Z(Math.max(A.left,_.left),Math.max(A.top,_.top)),new n.Z(Math.min(A.right,_.right),Math.min(A.bottom,_.bottom)))}}const l=a},77795:(he,y,i)=>{"use strict";i.d(y,{Z:()=>P});var e=i(11737),n=i(3897),o=i(12090),a=i(27229),l=i(58214),u=i(52912);function d(O,U,V){const K=(0,l.Z)(Math.atan2(U.y-O.y,U.x-O.x));return V.transformCopy((0,a.Z)().rotate(-K,O)).x<O.x}function s(O,U,V){const K=1-O;return Math.pow(K,3)*V[0][U]+3*Math.pow(K,2)*O*V[1][U]+3*Math.pow(O,2)*K*V[2][U]+Math.pow(O,3)*V[3][U]}function A(O,U){return[3*O[1][U]-O[0][U]-3*O[2][U]+O[3][U],3*(O[0][U]-2*O[1][U]+O[2][U]),3*(-O[0][U]+O[1][U]),O[0][U]]}var _=i(56626),C=i(57553),R=i(78203);class x extends C.Z{constructor(U=0,V=0){super(),this.real=U,this.img=V}add(U){return new x((0,R.Z)(this.real+U.real,_.c),(0,R.Z)(this.img+U.img,_.c))}addConstant(U){return new x(this.real+U,this.img)}negate(){return new x(-this.real,-this.img)}multiply(U){return new x(this.real*U.real-this.img*U.img,this.real*U.img+this.img*U.real)}multiplyConstant(U){return new x(this.real*U,this.img*U)}nthRoot(U){const V=Math.atan2(this.img,this.real),K=Math.sqrt(Math.pow(this.img,2)+Math.pow(this.real,2)),X=Math.pow(K,1/U);return new x(X*Math.cos(V/U),X*Math.sin(V/U))}equals(U){return this.real===U.real&&this.img===U.img}isReal(){return 0===this.img}}const f=x;function k(O){return O<0?-1:1}function g(O,U,V,K){if(0===O)return function w(O,U,V){const K=Math.sqrt(Math.pow(U,2)-4*O*V);return[(-U+K)/(2*O),(-U-K)/(2*O)]}(U,V,K);const X=(3*O*V-Math.pow(U,2))/(3*Math.pow(O,2)),me=(2*Math.pow(U,3)-9*O*U*V+27*Math.pow(O,2)*K)/(27*Math.pow(O,3)),J=Math.pow(X/3,3)+Math.pow(me/2,2),Q=new f(0,1),re=-U/(3*O);let de,te,j,H,z,q,se;J<0?(de=new f(-me/2,Math.sqrt(-J)).nthRoot(3),te=new f(-me/2,-Math.sqrt(-J)).nthRoot(3)):(de=-me/2+Math.sqrt(J),de=new f(k(de)*Math.pow(Math.abs(de),1/3)),te=-me/2-Math.sqrt(J),te=new f(k(te)*Math.pow(Math.abs(te),1/3))),j=de.add(te),q=de.add(te).multiplyConstant(-.5),se=de.add(te.negate()).multiplyConstant(Math.sqrt(3)/2),H=q.add(Q.multiply(se)),z=q.add(Q.negate().multiply(se));const ne=[];return j.isReal()&&ne.push((0,R.Z)(j.real+re,_.c)),H.isReal()&&ne.push((0,R.Z)(H.real+re,_.c)),z.isReal()&&ne.push((0,R.Z)(z.real+re,_.c)),ne}function M(O,U,V,K,X){const me=A(O,K),J=g(me[0],me[1],me[2],me[3]-U[K]);let Q;for(let re=0;re<J.length;re++)if(0<=J[re]&&J[re]<=1&&(Q=s(J[re],V,O),Math.abs(Q-U[V])<=X))return!0}var p=i(61305),b=i(72072),I=i(94927);const L=["anchor","controlIn","controlOut"];class D extends((0,I.Z)(e.Z,L)){constructor(U,V,K){super(),this.anchor(U||new o.Z),this.controlIn(V),this.controlOut(K)}bboxTo(U,V){const K=this.anchor().transformCopy(V),X=U.anchor().transformCopy(V);let me;return me=this.controlOut()&&U.controlIn()?this._curveBoundingBox(K,this.controlOut().transformCopy(V),U.controlIn().transformCopy(V),X):this._lineBoundingBox(K,X),me}_lineBoundingBox(U,V){return n.Z.fromPoints(U,V)}_curveBoundingBox(U,V,K,X){const me=[U,V,K,X],J=this._curveExtremesFor(me,"x"),Q=this._curveExtremesFor(me,"y"),re=F([J.min,J.max,U.x,X.x]),de=F([Q.min,Q.max,U.y,X.y]);return n.Z.fromPoints(new o.Z(re.min,de.min),new o.Z(re.max,de.max))}_curveExtremesFor(U,V){const K=this._curveExtremes(U[0][V],U[1][V],U[2][V],U[3][V]);return{min:s(K.min,V,U),max:s(K.max,V,U)}}_curveExtremes(U,V,K,X){const me=U-3*V+3*K-X,J=-2*(U-2*V+K),Q=U-V,re=Math.sqrt(J*J-4*me*Q);let de=0,te=1;0===me?0!==J&&(de=te=-Q/J):isNaN(re)||(de=(-J+re)/(2*me),te=(-J-re)/(2*me));let j=Math.max(Math.min(de,te),0);(j<0||j>1)&&(j=0);let H=Math.min(Math.max(de,te),1);return(H>1||H<0)&&(H=1),{min:j,max:H}}_intersectionsTo(U,V){let K;return K=this.controlOut()&&U.controlIn()?function E(O,U,V){const K=A(O,"x"),X=g(K[0],K[1],K[2],K[3]-U.x);let me,J,Q=0;for(let re=0;re<X.length;re++)me=s(X[re],"y",O),J=(0,p.Z)(me,U.y)||me>U.y,J&&((0===X[re]||1===X[re])&&V.bottomRight().x>U.x||0<X[re]&&X[re]<1)&&Q++;return Q}([this.anchor(),this.controlOut(),U.controlIn(),U.anchor()],V,this.bboxTo(U)):(0,b.Z)(this.anchor(),U.anchor(),V),K}_isOnCurveTo(U,V,K,X){if(this.bboxTo(U).expand(K,K).containsPoint(V)){const J=this.anchor(),Q=this.controlOut(),re=U.controlIn(),de=U.anchor();if("start"===X&&J.distanceTo(V)<=K)return!d(J,Q,V);if("end"===X&&de.distanceTo(V)<=K)return!d(de,re,V);const te=[J,Q,re,de];if(M(te,V,"x","y",K)||M(te,V,"y","x",K))return!0;const j=(0,a.Z)().rotate(45,V),H=[J.transformCopy(j),Q.transformCopy(j),re.transformCopy(j),de.transformCopy(j)];return M(H,V,"x","y",K)||M(H,V,"y","x",K)}}_isOnLineTo(U,V,K){const X=this.anchor(),me=U.anchor(),J=(0,l.Z)(Math.atan2(me.y-X.y,me.x-X.x));return new n.Z([X.x,X.y-K/2],[X.distanceTo(me),K]).containsPoint(V.transformCopy((0,a.Z)().rotate(-J,X)))}_isOnPathTo(U,V,K,X){let me;return me=this.controlOut()&&U.controlIn()?this._isOnCurveTo(U,V,K/2,X):this._isOnLineTo(U,V,K),me}}function F(O){let U=O.length,V=u.lA,K=u.fO;for(let X=0;X<U;X++)K=Math.max(K,O[X]),V=Math.min(V,O[X]);return{min:V,max:K}}const P=D},35148:(he,y,i)=>{"use strict";i.d(y,{Z:()=>u});var e=i(11737),n=i(8551),o=i(10409),a=i(78203);class l extends((0,n.Z)(e.Z,["width","height"])){constructor(s,A){super(),this.width=s||0,this.height=A||0}equals(s){return s&&s.width===this.width&&s.height===this.height}clone(){return new l(this.width,this.height)}toArray(s){const A=(0,o.Z)(s);return[A?(0,a.Z)(this.width,s):this.width,A?(0,a.Z)(this.height,s):this.height]}static create(s,A){if((0,o.Z)(s))return s instanceof l?s:1===arguments.length&&2===s.length?new l(s[0],s[1]):new l(s,A)}static get ZERO(){return new l(0,0)}}const u=l},62803:(he,y,i)=>{"use strict";function e(n){return n&&"function"==typeof n.matrix?n.matrix():n}i.d(y,{Z:()=>e})},27229:(he,y,i)=>{"use strict";i.d(y,{Z:()=>d});var e=i(11737),n=i(62803),o=i(11255),a=i(12090);class l extends e.Z{constructor(A=o.Z.unit()){super(),this._matrix=A}clone(){return new l(this._matrix.clone())}equals(A){return A&&A._matrix.equals(this._matrix)}translate(A,_){return this._matrix=this._matrix.multiplyCopy(o.Z.translate(A,_)),this._optionsChange(),this}scale(A,_=A,C=null){let R=C;return R&&(R=a.Z.create(R),this._matrix=this._matrix.multiplyCopy(o.Z.translate(R.x,R.y))),this._matrix=this._matrix.multiplyCopy(o.Z.scale(A,_)),R&&(this._matrix=this._matrix.multiplyCopy(o.Z.translate(-R.x,-R.y))),this._optionsChange(),this}rotate(A,_){const C=a.Z.create(_)||a.Z.ZERO;return this._matrix=this._matrix.multiplyCopy(o.Z.rotate(A,C.x,C.y)),this._optionsChange(),this}multiply(A){const _=(0,n.Z)(A);return this._matrix=this._matrix.multiplyCopy(_),this._optionsChange(),this}matrix(A){return A?(this._matrix=A,this._optionsChange(),this):this._matrix}_optionsChange(){this.optionsChange({field:"transform",value:this})}}const u=l;function d(s){return null===s?null:s instanceof u?s:new u(s)}},39632:(he,y,i)=>{"use strict";i.d(y,{Z:()=>w});var e=i(1820);const o=class n extends e.Z{_change(){this.optionsChange({field:"stops"})}};var a=i(75429),l=i(10409);function u(g){return function(M){return(0,l.Z)(M)?(this.options.set(g,M),this):this.options.get(g)}}var _=i(11737);const C=["offset","color","opacity"];class R extends(((g,M)=>{const p=class extends g{};return function d(g,M){for(let p=0;p<M.length;p++)g[M[p]]=u(M[p])}(p.prototype,M),p})(_.Z,C)){constructor(M,p,E){super(),this.options=new a.Z({offset:M,color:p,opacity:(0,l.Z)(E)?E:1}),this.options.addObserver(this)}static create(M){if((0,l.Z)(M)){let p;return p=M instanceof R?M:M.length>1?new R(M[0],M[1],M[2]):new R(M.offset,M.color,M.opacity),p}}}const x=R;var f=i(7552);const w=class k extends _.Z{get nodeType(){return"Gradient"}constructor(M={}){super(),this.stops=new o(this._createStops(M.stops)),this.stops.addObserver(this),this._userSpace=M.userSpace,this.id=(0,f.Z)()}userSpace(M){return(0,l.Z)(M)?(this._userSpace=M,this.optionsChange(),this):this._userSpace}_createStops(M=[]){const p=[];for(let E=0;E<M.length;E++)p.push(x.create(M[E]));return p}addStop(M,p,E){this.stops.push(new x(M,p,E))}removeStop(M){const p=this.stops.indexOf(M);p>=0&&this.stops.splice(p,1)}optionsChange(M){this.trigger("optionsChange",{field:"gradient"+(M?"."+M.field:""),value:this})}geometryChange(){this.optionsChange()}}},8996:(he,y,i)=>{"use strict";i.d(y,{Z:()=>u});var e=i(94927),n=i(12090),o=i(39632);const a=["start","end"];class l extends((0,e.Z)(o.Z,a)){constructor(s={}){super(s),this.start(s.start||new n.Z),this.end(s.end||new n.Z(1,0))}}const u=l},38689:(he,y,i)=>{"use strict";i.d(y,{Z:()=>u});var e=i(94927),n=i(12090),o=i(39632),a=i(10409);class l extends((0,e.Z)(o.Z,["center"])){constructor(s={}){super(s),this.center(s.center||new n.Z),this._radius=(0,a.Z)(s.radius)?s.radius:1,this._fallbackFill=s.fallbackFill}radius(s){return(0,a.Z)(s)?(this._radius=s,this.geometryChange(),this):this._radius}fallbackFill(s){return(0,a.Z)(s)?(this._fallbackFill=s,this.optionsChange(),this):this._fallbackFill}}const u=l},77046:(he,y,i)=>{"use strict";i.d(y,{Vg:()=>ge});var e=i(11255),n=i(3897),o=i(80600),a=i(27229),l=i(27128),u=i(67118),d=i(97296),s=i(13966);const A={1:"i",10:"x",100:"c",2:"ii",20:"xx",200:"cc",3:"iii",30:"xxx",300:"ccc",4:"iv",40:"xl",400:"cd",5:"v",50:"l",500:"d",6:"vi",60:"lx",600:"dc",7:"vii",70:"lxx",700:"dcc",8:"viii",80:"lxxx",800:"dccc",9:"ix",90:"xc",900:"cm",1e3:"m"};function _(wn){const Zi=[1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1];let oo="";for(;wn>0;)wn<Zi[0]?Zi.shift():(oo+=A[Zi[0]],wn-=Zi[0]);return oo}function C(wn,Zi){return wn.length<2?wn.slice():function Bi(Xo){if(Xo.length<=1)return Xo;var Lo=Math.floor(Xo.length/2),or=Xo.slice(0,Lo),xr=Xo.slice(Lo);return function oo(Bi,Xo){for(var Lo=[],or=0,xr=0,Nr=0;or<Bi.length&&xr<Xo.length;)Zi(Bi[or],Xo[xr])<=0?Lo[Nr++]=Bi[or++]:Lo[Nr++]=Xo[xr++];return or<Bi.length&&Lo.push.apply(Lo,Bi.slice(or)),xr<Xo.length&&Lo.push.apply(Lo,Xo.slice(xr)),Lo}(or=Bi(or),xr=Bi(xr))}(wn)}var R=i(35276),f=i(31462),k=i(70702),w=i(44096),g=i(37690),M=i(19608),p=i(8996),E=i(63424),b=i(46643),I=i(23776),L=i(26082),D=i(10409);class F extends((0,I.Z)((0,L.Z)((0,E.Z)(b.Z)))){get nodeType(){return"Rect"}constructor(Zi=new n.Z,oo={}){super(oo),this.geometry(Zi),(0,D.Z)(this.options.stroke)||this.stroke("#000")}_bbox(Zi){return this._geometry.bbox(Zi)}rawBBox(){return this._geometry.bbox()}_containsPoint(Zi){return this._geometry.containsPoint(Zi)}_isOnPath(Zi){return this.geometry()._isOnPath(Zi,this.options.stroke.width/2)}}const P=F;var O=i(2869),U=i(31502);const V=R.Z.browser||{};function K(wn){return Array.prototype.slice.call(wn)}var X="KENDO-PSEUDO-ELEMENT";const me="data-kendo-bullet-type";var J={},Q={};Q._root=Q;const de=typeof window<"u"&&(V.msie||V.edge);class te extends k.Z{constructor(Zi,oo,Bi){super(Zi,oo.getOrigin(),Bi),this._pdfRect=oo}rect(){return this._pdfRect}rawBBox(){return this._pdfRect}}function z(wn,Zi){Object.keys(Zi).forEach(function(oo){wn.style[oo]=Zi[oo]})}var wn,q=typeof Element<"u"&&Element.prototype&&((wn=Element.prototype).matches?function(Zi,oo){return Zi.matches(oo)}:wn.webkitMatchesSelector?function(Zi,oo){return Zi.webkitMatchesSelector(oo)}:wn.mozMatchesSelector?function(Zi,oo){return Zi.mozMatchesSelector(oo)}:wn.msMatchesSelector?function(Zi,oo){return Zi.msMatchesSelector(oo)}:function(Zi){return-1!==[].indexOf.call(document.querySelectorAll(Zi),this)});function se(wn,Zi){if(wn.closest)return wn.closest(Zi);for(;wn&&!/^\[object (?:HTML)?Document\]$/.test(String(wn));){if(1==wn.nodeType&&q(wn,Zi))return wn;wn=wn.parentNode}}var ne=function(wn){return wn?function Zi(oo){var Bi=oo.cloneNode(!1);if(1==oo.nodeType){var or,Xo=wn(oo),Lo=wn(Bi),xr=Xo.data();for(or in xr)Lo.data(or,xr[or]);for(/^canvas$/i.test(oo.tagName)?Bi.getContext("2d").drawImage(oo,0,0):/^(?:input|select|textarea|option)$/i.test(oo.tagName)&&(Bi.removeAttribute("id"),Bi.removeAttribute("name"),/^textarea$/i.test(oo.tagName)||(Bi.value=oo.value),Bi.checked=oo.checked,Bi.selected=oo.selected),or=oo.firstChild;or;or=or.nextSibling)Bi.appendChild(Zi(or))}return Bi}:function(oo){const Bi=function or(xr){const Nr=xr.cloneNode(!1);xr._kendoExportVisual&&(Nr._kendoExportVisual=xr._kendoExportVisual);for(let as=xr.firstChild;as;as=as.nextSibling)Nr.appendChild(or(as));return Nr}(oo),Xo=oo.querySelectorAll("canvas");Xo.length&&K(Bi.querySelectorAll("canvas")).forEach((or,xr)=>{or.getContext("2d").drawImage(Xo[xr],0,0)});const Lo=oo.querySelectorAll("input, select, textarea, option");return K(Bi.querySelectorAll("input, select, textarea, option")).forEach((or,xr)=>{or.removeAttribute("id"),or.removeAttribute("name"),/^textarea$/i.test(or.tagName)||(or.value=Lo[xr].value),or.checked=Lo[xr].checked,or.selected=Lo[xr].selected}),Bi}}(typeof window<"u"&&window.kendo&&window.kendo.jQuery);function ge(wn,Zi){Zi||(Zi={});var oo=(0,d.Z)();if(!wn)return oo.reject("No element to export");if("function"!=typeof window.getComputedStyle)throw new Error("window.getComputedStyle is missing.  You are using an unsupported browser, or running in IE8 compatibility mode.  Drawing HTML is supported in Chrome, Firefox, Safari and IE9+.");u.pl(function Oe(wn){null==wn&&(wn=document);for(var Zi={},oo=0;oo<wn.styleSheets.length;++oo)Bi(wn.styleSheets[oo]);return Zi;function Bi(xr){if(xr){var Nr=null;try{Nr=xr.cssRules}catch{}Nr&&function Lo(xr,Nr){for(var as=0;as<Nr.length;++as){var ji=Nr[as];switch(ji.type){case 3:Bi(ji.styleSheet);break;case 5:var Fo=ji.style,rt=De(Ko(Fo,"font-family")),ai=/^([56789]00|bold)$/i.test(Ko(Fo,"font-weight")),Gn="italic"==Ko(Fo,"font-style"),Io=Xo(ji);Io.length>0&&or(xr,rt,ai,Gn,Io[0])}}}(xr,Nr)}}function Xo(xr){var Nr=Ko(xr.style,"src");if(Nr)return De(Nr).reduce(function(ji,Fo){var rt=fe(Fo);return rt&&ji.push(rt),ji},[]);var as=fe(xr.cssText);return as?[as]:[]}function or(xr,Nr,as,ji,Fo){/^data:/i.test(Fo)||/^[^\/:]+:\/\//.test(Fo)||/^\//.test(Fo)||(Fo=String(xr.href).replace(/[^\/]*$/,"")+Fo),Nr.forEach(function(rt){rt=rt.replace(/^(['"]?)(.*?)\1$/,"$2"),as&&(rt+="|bold"),ji&&(rt+="|italic"),Zi[rt]=Fo})}}(wn.ownerDocument));var Bi=function _e(wn){return"number"==typeof wn?{x:wn,y:wn}:Array.isArray(wn)?{x:wn[0],y:wn[1]}:{x:wn.x,y:wn.y}}(Zi.scale||1);function Xo(xr){var Nr=new w.Z,as=xr.getBoundingClientRect();return It(Nr,[Bi.x,0,0,Bi.y,-as.left*Bi.x,-as.top*Bi.y]),Q._clipbox=!1,Q._matrix=e.Z.unit(),Q._stackingContext={element:xr,group:Nr},Q._avoidLinks=!0===Zi.avoidLinks?"a":Zi.avoidLinks,function j(wn,Zi){wn.classList?wn.classList.add(Zi):wn.className+=" "+Zi}(xr,"k-pdf-export"),bo(xr,Nr),function H(wn,Zi){wn.classList?wn.classList.remove(Zi):wn.className=wn.className.split(/\s+/).reduce(function(oo,Bi){return Bi!=Zi&&oo.push(Bi),oo},[]).join(" ")}(xr,"k-pdf-export"),Nr}return dn([wn],function(){var xr=Zi&&Zi.forcePageBreak,Nr=Zi&&Zi.paperSize&&"auto"!=Zi.paperSize,as=u.M(function(Io,wr){return"paperSize"==Io?Nr?Zi[Io]:"A4":Io in Zi?Zi[Io]:wr}),ji=Nr&&as.paperSize[0],Fo=Nr&&as.paperSize[1],rt=Zi.margin&&as.margin,ai=!!rt;if(xr||Fo){rt||(rt={left:0,top:0,right:0,bottom:0}),ji&&(ji/=Bi.x),Fo&&(Fo/=Bi.y),rt.left/=Bi.x,rt.right/=Bi.x,rt.top/=Bi.y,rt.bottom/=Bi.y;var Gn=new w.Z({pdf:{multiPage:!0,paperSize:Nr?as.paperSize:"auto",_ignoreMargin:ai}});!function or(xr,Nr,as,ji,Fo,rt,ai){var Gn=function Lo(xr){if(null!=xr)return"string"==typeof xr&&(xr=function x(){throw new Error("Template implementation missing.")}(xr.replace(/^\s+|\s+$/g,""))),"function"==typeof xr?function(Nr){var as=xr(Nr);if(as&&"string"==typeof as){var ji=document.createElement("div");ji.innerHTML=as,as=ji.firstElementChild}return as}:function(){return xr.cloneNode(!0)}}(ai.template),Io=Nr.ownerDocument,wr=[],bs=ai._destructive?Nr:ne(Nr),ba=Io.createElement("KENDO-PDF-DOCUMENT"),ms=0;function Oa(){("-"!=as||Fo)&&Sa(bs);{let pr=Li();bs.parentNode.insertBefore(pr,bs),pr.appendChild(bs)}Gn&&wr.forEach(function(pr,Rr){const br=Gn({element:pr,pageNum:Rr+1,totalPages:wr.length});br&&pr.appendChild(br)}),dn(wr,xr.bind(null,{pages:wr,container:ba}))}function Ea(pr){return!!(ai.keepTogether&&q(pr,ai.keepTogether)&&pr.offsetHeight<=Fo-ms)||!(/^h[1-6]$/i.test(pr.tagName)&&pr.offsetHeight>=Fo-ms)&&(pr.getAttribute("data-kendo-chart")||/^(?:img|tr|thead|th|tfoot|iframe|svg|object|canvas|input|textarea|select|video|h[1-6])/i.test(pr.tagName))}function Sa(pr){if("TABLE"==pr.tagName&&z(pr,{tableLayout:"fixed"}),!Ea(pr)){var Rr=Eo(pr),br=parseFloat(Ko(Rr,"padding-bottom")),Ti=parseFloat(Ko(Rr,"border-bottom-width")),mr=ms;ms+=br+Ti;for(var ri=!0,mo=pr.firstChild;mo;mo=mo.nextSibling)if(1==mo.nodeType){if(ri=!1,q(mo,as)){Mr(mo);continue}if(!Fo){Sa(mo);continue}if(!/^(?:static|relative)$/.test(Ko(Eo(mo),"position")))continue;var Ii=Ao(mo);1==Ii||Ii&&Ea(mo)?Mr(mo):Sa(mo)}else 3==mo.nodeType&&Fo&&(ao(mo,ri),ri=!1);ms=mr}}function Mr(pr){if(1==pr.nodeType&&pr!==bs&&function tr(pr){var Rr=pr.parentNode,br=Rr.firstChild;if(pr===br)return!0;if(pr===Rr.children[0]){if(7==br.nodeType||8==br.nodeType)return!0;if(3==br.nodeType)return!/\S/.test(br.data)}return!1}(pr))return Mr(pr.parentNode);var Rr,br,Ti,mr,ri;br=(Rr=se(pr,"table"))&&Rr.querySelector("colgroup"),ai.repeatHeaders&&(Ti=Rr&&Rr.querySelector("thead"),(mr=se(pr,".k-grid"))&&mr.querySelector(".k-auto-scrollable")&&(ri=mr.querySelector(".k-grid-header")));var mo=Li(),Ii=Io.createRange();Ii.setStartBefore(bs),Ii.setEndBefore(pr),mo.appendChild(Ii.extractContents()),bs.parentNode.insertBefore(mo,bs),Go(pr.parentNode),Rr&&(Rr=se(pr,"table"),ai.repeatHeaders&&Ti&&Rr.insertBefore(Ti.cloneNode(!0),Rr.firstChild),br&&Rr.insertBefore(br.cloneNode(!0),Rr.firstChild)),ai.repeatHeaders&&ri&&(mr=se(pr,".k-grid")).insertBefore(ri.cloneNode(!0),mr.firstChild)}function Li(){var pr=Io.createElement("KENDO-PDF-PAGE");return z(pr,{display:"block",boxSizing:"content-box",width:ji?ji+"px":"auto",padding:rt.top+"px "+rt.right+"px "+rt.bottom+"px "+rt.left+"px",position:"relative",height:Fo?Fo+"px":"auto",overflow:Fo||ji?"hidden":"visible",clear:"both"}),ai&&ai.pageClassName&&(pr.className=ai.pageClassName),wr.push(pr),pr}function Ao(pr){var Rr=pr.getBoundingClientRect();if(0===Rr.width||0===Rr.height)return 0;var br=bs.getBoundingClientRect().top,Ti=Fo-ms;return Rr.height>Ti?3:Rr.top-br>Ti?1:Rr.bottom-br>Ti?2:0}function ao(pr,Rr){if(/\S/.test(pr.data)){var br=pr.data.length,Ti=Io.createRange();Ti.selectNodeContents(pr);var mr=Ao(Ti);if(mr){var ri=pr;if(1==mr)Mr(Rr?pr.parentNode:pr);else if(function Ii(yo,lr,Yr){return Ti.setEnd(pr,lr),yo==lr||lr==Yr?lr:Ao(Ti)?Ii(yo,yo+lr>>1,lr):Ii(lr,lr+Yr>>1,Yr)}(0,br>>1,br),!/\S/.test(Ti.toString())&&Rr)Mr(pr.parentNode);else{ri=pr.splitText(Ti.endOffset);var mo=Li();Ti.setStartBefore(bs),mo.appendChild(Ti.extractContents()),bs.parentNode.insertBefore(mo,bs),Go(ri.parentNode)}ao(ri)}}}function Go(pr){var Rr=se(pr,"li");Rr&&(Rr.setAttribute("kendo-no-bullet","1"),Go(Rr.parentNode))}K(bs.querySelectorAll("tfoot")).forEach(function(pr){pr.parentNode.appendChild(pr)}),K(bs.querySelectorAll("ol")).forEach(function(pr){K(pr.children).forEach(function(Rr,br){Rr.setAttribute("kendo-split-index",br)})}),z(ba,{display:"block",position:"absolute",boxSizing:"content-box",left:"-10000px",top:"-10000px"}),ji&&(z(ba,{width:ji+"px",paddingLeft:rt.left+"px",paddingRight:rt.right+"px"}),z(bs,{overflow:"hidden"})),Nr.parentNode.insertBefore(ba,Nr),ba.appendChild(bs),Wt([ba],ai.beforePageBreak?function(){ai.beforePageBreak(ba,Oa)}:Oa)}(function(Io){if(Zi.progress){var wr=!1,bs=0;!function ba(){if(bs<Io.pages.length){var ms=Xo(Io.pages[bs]);Gn.append(ms),Zi.progress({page:ms,pageNum:++bs,totalPages:Io.pages.length,cancel:function(){wr=!0}}),wr?Io.container.parentNode.removeChild(Io.container):setTimeout(ba)}else Io.container.parentNode.removeChild(Io.container),oo.resolve(Gn)}()}else Io.pages.forEach(function(ba){Gn.append(Xo(ba))}),Io.container.parentNode.removeChild(Io.container),oo.resolve(Gn)},wn,xr,ji?ji-rt.left-rt.right:null,Fo?Fo-rt.top-rt.bottom:null,rt,Zi)}else oo.resolve(Xo(wn))}),oo}var Te=function(){var wn=/^((-webkit-|-moz-|-o-|-ms-)?linear-gradient\s*)\(/,Zi=/^([-0-9.]+%)/,oo=/^([-0-9.]+px)/,Bi=/^(left|right|top|bottom|to|center)\W/,Xo=/^([-0-9.]+(deg|grad|rad|turn)|0)/,Lo=/^(\s+)/,or=/^(\()/,xr=/^(\))/,Nr=/^(,)/,as=/^(url)\(/,ji=/^(.*?)\)/,Fo={},rt={};function ai(Gn){var Ea,Io=Gn;if(Le(Fo,Io))return Fo[Io];function bs(Sa){!function wr(){var Sa=Lo.exec(Gn);Sa&&(Gn=Gn.substr(Sa[1].length))}();var tr=Sa.exec(Gn);if(tr)return Gn=Gn.substr(tr[1].length),tr[1]}function ba(){var tr,Mr,Sa=(0,f.ZP)(Gn,!0);if(Sa){let Li=/^#[0-9a-f]+/i.exec(Gn)||/^rgba?\(.*?\)/i.exec(Gn)||/^..*?\b/.exec(Gn);return Gn=Gn.substr(Li[0].length),Sa=Sa.toRGB(),(tr=bs(oo))||(Mr=bs(Zi)),{color:Sa,length:tr,percent:Mr}}}return(Ea=bs(wn))?Ea=function ms(Sa){var tr,Mr,Li,Ao=[],ao=!1;if(bs(or)){if("0"==(tr=bs(Xo))&&(tr="0deg"),tr?(tr=function oi(wn){var Zi=parseFloat(wn);return/grad$/.test(wn)?Math.PI*Zi/200:/rad$/.test(wn)?Zi:/turn$/.test(wn)?Math.PI*Zi*2:/deg$/.test(wn)?Math.PI*Zi/180:void 0}(tr),bs(Nr)):("to"==(Mr=bs(Bi))?Mr=bs(Bi):Mr&&/^-/.test(Sa)&&(ao=!0),Li=bs(Bi),bs(Nr)),/-moz-/.test(Sa)&&null==tr&&null==Mr){var Go=bs(Zi),pr=bs(Zi);ao=!0,"0%"==Go?Mr="left":"100%"==Go&&(Mr="right"),"0%"==pr?Li="top":"100%"==pr&&(Li="bottom"),bs(Nr)}for(;Gn&&!bs(xr);){var Rr=ba();if(!Rr)break;Ao.push(Rr),bs(Nr)}return{type:"linear",angle:tr,to:Mr&&Li?Mr+" "+Li:Mr||Li||null,stops:Ao,reverse:ao}}}(Ea):(Ea=bs(as))&&(Ea=function Oa(){if(bs(or)){var Sa=bs(ji);return Sa=Sa.replace(/^['"]+|["']+$/g,""),bs(xr),{type:"url",url:Sa}}}()),Fo[Io]=Ea||{type:"none"}}return function(Gn){return Le(rt,Gn)?rt[Gn]:rt[Gn]=De(Gn).map(ai)}}(),De=function(){var wn={};return function(Zi,oo){oo||(oo=/^\s*,\s*/);var Bi=Zi+oo;if(Le(wn,Bi))return wn[Bi];var as,Xo=[],Lo=0,or=0,xr=0,Nr=!1;function ji(rt){return as=rt.exec(Zi.substr(or))}function Fo(rt){return rt.replace(/^\s+|\s+$/g,"")}for(;or<Zi.length;)!Nr&&ji(/^[\(\[\{]/)?(xr++,or++):!Nr&&ji(/^[\)\]\}]/)?(xr--,or++):!Nr&&ji(/^[\"\']/)?(Nr=as[0],or++):"'"==Nr&&ji(/^\\\'/)||'"'==Nr&&ji(/^\\\"/)?or+=2:"'"==Nr&&ji(/^\'/)||'"'==Nr&&ji(/^\"/)?(Nr=!1,or++):ji(oo)?(!Nr&&!xr&&or>Lo&&(Xo.push(Fo(Zi.substring(Lo,or))),Lo=or+as[0].length),or+=as[0].length):or++;return Lo<or&&Xo.push(Fo(Zi.substring(Lo,or))),wn[Bi]=Xo}}(),fe=function(wn){return function(Zi){var Bi,oo=wn[Zi];return oo||((Bi=/url\((['"]?)([^'")]*?)\1\)\s+format\((['"]?)truetype\3\)/.exec(Zi))||(Bi=/url\((['"]?)([^'")]*?\.ttf)\1\)/.exec(Zi)))&&(oo=wn[Zi]=Bi[2]),oo}}(Object.create(null)),xe=function(wn){return function(Zi){var oo=wn[Zi];return null==oo&&(oo=wn[Zi]=(0,s.Z)("Mapq",{font:Zi}).height),oo}}(Object.create(null));function Le(wn,Zi){return Object.prototype.hasOwnProperty.call(wn,Zi)}function An(wn,Zi){var oo=Q;for(wn="_counter_"+wn;oo&&!Le(oo,wn);)oo=Object.getPrototypeOf(oo);oo||(oo=Q._root),oo[wn]=(oo[wn]||0)+(Zi??1)}function $n(wn,Zi){Q[wn="_counter_"+wn]=Zi??0}function xn(wn,Zi,oo){for(var Bi=0;Bi<wn.length;){var Xo=wn[Bi++],Lo=parseFloat(wn[Bi]);isNaN(Lo)?Zi(Xo,oo):(Zi(Xo,Lo),++Bi)}}function mt(wn){var Zi=Ko(wn,"counter-reset");Zi&&xn(De(Zi,/^\s+/),$n,0);var oo=Ko(wn,"counter-increment");oo&&xn(De(oo,/^\s+/),An,1)}function ut(wn,Zi){var oo=(0,f.ZP)(wn,!0);return oo&&(oo=oo.toRGB(),Zi?oo=oo.toCssRgba():0===oo.a&&(oo=null)),oo}function Wt(wn,Zi){var oo=0,Bi=!1;function Xo(){!Bi&&--oo<=0&&(Zi(),Bi=!0)}wn.forEach(function(Lo){for(var or=Lo.querySelectorAll("img"),xr=0;xr<or.length;++xr){var Nr=or[xr];Nr.complete||(oo++,Nr.onload=Nr.onerror=Xo)}}),oo||Xo()}function dn(wn,Zi){var oo=[];function Bi(or){J[or]||(J[or]=!0,oo.push(or))}wn.forEach(function or(xr){/^img$/i.test(xr.tagName)&&Bi(xr.src),Te(Ko(Eo(xr),"background-image")).forEach(function(Nr){"url"==Nr.type&&Bi(Nr.url)}),xr.children&&K(xr.children).forEach(or)});var Xo=oo.length;function Lo(){--Xo<=0&&Wt(wn,Zi)}0===Xo&&Lo(),oo.forEach(function(or){var xr=J[or]=new window.Image;/^data:/i.test(or)||(xr.crossOrigin="Anonymous"),xr.src=or,xr.complete?Lo():(xr.onload=Lo,xr.onerror=function(){J[or]=null,Lo()})})}function sn(wn){var Zi="";do{Zi=String.fromCharCode(97+wn%26)+Zi,wn=Math.floor(wn/26)}while(wn>0);return Zi}function nn(wn){if(null!=Q._clipbox){var Zi=wn.bbox(Q._matrix);Q._clipbox=Q._clipbox?n.Z.intersect(Q._clipbox,Zi):Zi}}function Eo(wn,Zi){return window.getComputedStyle(wn,Zi||null)}function Ko(wn,Zi,oo){var Bi=wn.getPropertyValue(Zi);return(null==Bi||""===Bi)&&(V.webkit?Bi=wn.getPropertyValue("-webkit-"+Zi):V.mozilla?Bi=wn.getPropertyValue("-moz-"+Zi):V.opera?Bi=wn.getPropertyValue("-o-"+Zi):de&&(Bi=wn.getPropertyValue("-ms-"+Zi))),arguments.length>2&&(null==Bi||""===Bi)?oo:Bi}function xo(wn,Zi,oo,Bi){wn.setProperty(Zi,oo,Bi),V.webkit?wn.setProperty("-webkit-"+Zi,oo,Bi):V.mozilla?wn.setProperty("-moz-"+Zi,oo,Bi):V.opera?wn.setProperty("-o-"+Zi,oo,Bi):de&&(wn.setProperty("-ms-"+Zi,oo,Bi),wn[Zi="ms"+Zi.replace(/(^|-)([a-z])/g,function(Xo,Lo,or){return Lo+or.toUpperCase()})]=oo)}function Bn(wn,Zi){return Zi="border-"+Zi,{width:parseFloat(Ko(wn,Zi+"-width")),style:Ko(wn,Zi+"-style"),color:ut(Ko(wn,Zi+"-color"),!0)}}function Xt(wn,Zi){var oo=wn.style.cssText,Bi=Zi();return wn.style.cssText=oo,Bi}function Ji(wn,Zi){var oo=Ko(wn,"border-"+Zi+"-radius").split(/\s+/g).map(parseFloat);return 1==oo.length&&oo.push(oo[0]),wt({x:oo[0],y:oo[1]})}function En(wn){var Zi=wn.getBoundingClientRect();return Zi=un(Zi,"border-*-width",wn),un(Zi,"padding-*",wn)}function un(wn,Zi,oo){var Bi,Xo,Lo,or,xr;return"string"==typeof Zi?(Bi=Eo(oo),Xo=parseFloat(Ko(Bi,Zi.replace("*","top"))),Lo=parseFloat(Ko(Bi,Zi.replace("*","right"))),or=parseFloat(Ko(Bi,Zi.replace("*","bottom"))),xr=parseFloat(Ko(Bi,Zi.replace("*","left")))):"number"==typeof Zi&&(Xo=Lo=or=xr=Zi),{top:wn.top+Xo,right:wn.right-Lo,bottom:wn.bottom-or,left:wn.left+xr,width:wn.right-wn.left-Lo-xr,height:wn.bottom-wn.top-or-Xo}}function Fn(wn){return 180*wn/Math.PI%360}function It(wn,Zi){return Zi=new e.Z(Zi[0],Zi[1],Zi[2],Zi[3],Zi[4],Zi[5]),wn.transform(Zi),Zi}function Bt(wn,Zi){wn.clip(Zi)}function xt(wn,Zi,oo,Bi){for(var Xo=new o.Z([Zi,oo],Bi).curvePoints(),Lo=1;Lo<Xo.length;)wn.curveTo(Xo[Lo++],Xo[Lo++],Xo[Lo++])}function wt(wn){return(wn.x<=0||wn.y<=0)&&(wn.x=wn.y=0),wn}function Mt(wn,Zi,oo,Bi,Xo){var Lo=Math.max(0,Zi.x),or=Math.max(0,Zi.y),xr=Math.max(0,oo.x),Nr=Math.max(0,oo.y),as=Math.max(0,Bi.x),ji=Math.max(0,Bi.y),Fo=Math.max(0,Xo.x),rt=Math.max(0,Xo.y),ai=Math.min(wn.width/(Lo+xr),wn.height/(Nr+ji),wn.width/(as+Fo),wn.height/(rt+or));return ai<1&&(Lo*=ai,or*=ai,xr*=ai,Nr*=ai,as*=ai,ji*=ai,Fo*=ai,rt*=ai),{tl:{x:Lo,y:or},tr:{x:xr,y:Nr},br:{x:as,y:ji},bl:{x:Fo,y:rt}}}function pt(wn,Zi,oo){var Bi=Eo(wn),Xo=Ji(Bi,"top-left"),Lo=Ji(Bi,"top-right"),or=Ji(Bi,"bottom-left"),xr=Ji(Bi,"bottom-right");if("padding"==oo||"content"==oo){var Nr=Bn(Bi,"top"),as=Bn(Bi,"right"),ji=Bn(Bi,"bottom"),Fo=Bn(Bi,"left");if(Xo.x-=Fo.width,Xo.y-=Nr.width,Lo.x-=as.width,Lo.y-=Nr.width,xr.x-=as.width,xr.y-=ji.width,or.x-=Fo.width,or.y-=ji.width,"content"==oo){var rt=parseFloat(Ko(Bi,"padding-top")),ai=parseFloat(Ko(Bi,"padding-right")),Gn=parseFloat(Ko(Bi,"padding-bottom")),Io=parseFloat(Ko(Bi,"padding-left"));Xo.x-=Io,Xo.y-=rt,Lo.x-=ai,Lo.y-=rt,xr.x-=ai,xr.y-=Gn,or.x-=Io,or.y-=Gn}}return"number"==typeof oo&&(Xo.x-=oo,Xo.y-=oo,Lo.x-=oo,Lo.y-=oo,xr.x-=oo,xr.y-=oo,or.x-=oo,or.y-=oo),Lt(Zi,Xo,Lo,xr,or)}function Lt(wn,Zi,oo,Bi,Xo){var Lo=Mt(wn,Zi,oo,Bi,Xo),or=Lo.tl,xr=Lo.tr,Nr=Lo.br,as=Lo.bl,ji=new g.y({fill:null,stroke:null});return ji.moveTo(wn.left,wn.top+or.y),or.x&&xt(ji,wn.left+or.x,wn.top+or.y,{startAngle:-180,endAngle:-90,radiusX:or.x,radiusY:or.y}),ji.lineTo(wn.right-xr.x,wn.top),xr.x&&xt(ji,wn.right-xr.x,wn.top+xr.y,{startAngle:-90,endAngle:0,radiusX:xr.x,radiusY:xr.y}),ji.lineTo(wn.right,wn.bottom-Nr.y),Nr.x&&xt(ji,wn.right-Nr.x,wn.bottom-Nr.y,{startAngle:0,endAngle:90,radiusX:Nr.x,radiusY:Nr.y}),ji.lineTo(wn.left+as.x,wn.bottom),as.x&&xt(ji,wn.left+as.x,wn.bottom-as.y,{startAngle:90,endAngle:180,radiusX:as.x,radiusY:as.y}),ji.close()}function tt(wn,Zi){var oo=String(parseFloat(wn));switch(Zi){case"decimal-leading-zero":return oo.length<2&&(oo="0"+oo),oo;case"lower-roman":return _(wn).toLowerCase();case"upper-roman":return _(wn).toUpperCase();case"lower-latin":case"lower-alpha":return sn(wn-1);case"upper-latin":case"upper-alpha":return sn(wn-1).toUpperCase();default:return oo}}function vt(wn){if(wn.cssText)return wn.cssText;for(var Zi=[],oo=0;oo<wn.length;++oo)Zi.push(wn[oo]+": "+Ko(wn,wn[oo]));return Zi.join(";\n")}function ln(wn,Zi){if(wn.tagName==X)return void jn(wn,Zi);let oo=[];function Bi(Xo,Lo){let or=Eo(wn,Xo),xr=or.content;if(mt(or),xr&&"normal"!=xr&&"none"!=xr&&"0px"!=or.width){let Nr=wn.ownerDocument.createElement(X);Nr.style.cssText=vt(or),Nr.textContent=function Ne(wn,Zi){function oo(or,xr,Nr){return Nr?(Nr=Nr.replace(/^\s*(["'])(.*)\1\s*$/,"$2"),function Ut(wn){var Zi=[],oo=Q;for(wn="_counter_"+wn;oo;)Le(oo,wn)&&Zi.push(oo[wn]),oo=Object.getPrototypeOf(oo);return Zi.reverse()}(or).map(function(as){return tt(as,xr)}).join(Nr)):tt(function Gt(wn){return Q[wn="_counter_"+wn]}(or)||0,xr)}var Lo,Bi=De(Zi,/^\s+/),Xo=[];return Bi.forEach(function(or){var xr;(Lo=/^\s*(["'])(.*)\1\s*$/.exec(or))?Xo.push(Lo[2].replace(/\\([0-9a-f]{4})/gi,function(Nr,as){return String.fromCharCode(parseInt(as,16))})):(Lo=/^\s*counter\((.*?)\)\s*$/.exec(or))?(xr=De(Lo[1]),Xo.push(oo(xr[0],xr[1]))):(Lo=/^\s*counters\((.*?)\)\s*$/.exec(or))?(xr=De(Lo[1]),Xo.push(oo(xr[0],xr[2],xr[1]))):(Lo=/^\s*attr\((.*?)\)\s*$/.exec(or))?Xo.push(wn.getAttribute(Lo[1])||""):Xo.push(or)}),Xo.join("")}(wn,xr),wn.insertBefore(Nr,Lo),oo.push(Nr)}}if(Bi(":before",wn.firstChild),Bi(":after",null),oo.length>0){let Xo=wn.className;wn.className+=" kendo-pdf-hide-pseudo-elements",jn(wn,Zi),wn.className=Xo,oo.forEach(function(Lo){wn.removeChild(Lo)})}else jn(wn,Zi)}function jn(wn,Zi){var oo=Eo(wn),Bi=Bn(oo,"top"),Xo=Bn(oo,"right"),Lo=Bn(oo,"bottom"),or=Bn(oo,"left"),xr=Ji(oo,"top-left"),Nr=Ji(oo,"top-right"),as=Ji(oo,"bottom-left"),ji=Ji(oo,"bottom-right"),Fo=Ko(oo,"direction"),rt=Ko(oo,"background-color");rt=ut(rt);var ba,ms,ai=Te(Ko(oo,"background-image")),Gn=De(Ko(oo,"background-repeat")),Io=De(Ko(oo,"background-position")),wr=De(Ko(oo,"background-origin")),bs=De(Ko(oo,"background-size"));de&&"ellipsis"==(ba=oo.textOverflow)&&(ms=wn.style.textOverflow,wn.style.textOverflow="clip"),V.msie&&V.version<10&&(Io=De(wn.currentStyle.backgroundPosition));var Oa=un(wn.getBoundingClientRect(),"border-*-width",wn);!function(){var br=Ko(oo,"clip"),Ti=/^\s*rect\((.*)\)\s*$/.exec(br);if(Ti){var mr=Ti[1].split(/[ ,]+/g),ri="auto"==mr[0]?Oa.top:parseFloat(mr[0])+Oa.top,mo="auto"==mr[1]?Oa.right:parseFloat(mr[1])+Oa.left,Ii="auto"==mr[2]?Oa.bottom:parseFloat(mr[2])+Oa.top,yo="auto"==mr[3]?Oa.left:parseFloat(mr[3])+Oa.left,lr=new w.Z,Yr=(new g.y).moveTo(yo,ri).lineTo(mo,ri).lineTo(mo,Ii).lineTo(yo,Ii).close();Bt(lr,Yr),Zi.append(lr),Zi=lr,nn(Yr)}}();var Ea,Sa,tr,Mr=Ko(oo,"display");if("table-row"==Mr)for(Ea=[],Sa=0,tr=wn.children;Sa<tr.length;++Sa)Ea.push(tr[Sa].getBoundingClientRect());else 1==(Ea=wn.getClientRects()).length&&(Ea=[wn.getBoundingClientRect()]);for(Ea=function Li(br){if(/^td$/i.test(wn.tagName)){var Ti=Q.table;if(Ti&&"collapse"==Ko(Ti.style,"border-collapse")){var mr=Bn(Ti.style,"left").width,ri=Bn(Ti.style,"top").width;if(0===mr&&0===ri)return br;var mo=Ti.element.getBoundingClientRect(),yo=Ti.element.rows[0].cells[0].getBoundingClientRect();if(yo.top==mo.top||yo.left==mo.left)return K(br).map(function(lr){return{left:lr.left+mr,top:lr.top+ri,right:lr.right+mr,bottom:lr.bottom+ri,height:lr.height,width:lr.width}})}}return br}(Ea),Sa=0;Sa<Ea.length;++Sa)Rr(Ea[Sa],0===Sa,Sa==Ea.length-1);if("A"==wn.tagName&&wn.href&&!/^#?$/.test(wn.getAttribute("href"))&&(!Q._avoidLinks||!q(wn,Q._avoidLinks))){const br=document.createRange();br.selectNodeContents(wn),K(br.getClientRects()).forEach(function(Ti){const mr=new w.Z;mr._pdfLink={url:wn.href,top:Ti.top,right:Ti.right,bottom:Ti.bottom,left:Ti.left},Zi.append(mr)})}return Ea.length>0&&"list-item"==Mr&&!wn.getAttribute("kendo-no-bullet")&&function pr(){var br=Ko(oo,"list-style-type");if("none"!=br){var Ti=Ko(oo,"list-style-position");switch(br){case"circle":case"disc":case"square":mr(function(mo){mo.innerHTML="&nbsp;",mo.setAttribute(me,br)});break;case"decimal":case"decimal-leading-zero":mr(function(mo){ri(function(Ii){++Ii,"decimal-leading-zero"==br&&Ii<10&&(Ii="0"+Ii),mo.innerHTML=Ii+"."})});break;case"lower-roman":case"upper-roman":mr(function(mo){ri(function(Ii){Ii=_(Ii+1),"upper-roman"==br&&(Ii=Ii.toUpperCase()),mo.innerHTML=Ii+"."})});break;case"lower-latin":case"lower-alpha":case"upper-latin":case"upper-alpha":mr(function(mo){ri(function(Ii){Ii=sn(Ii),/^upper/i.test(br)&&(Ii=Ii.toUpperCase()),mo.innerHTML=Ii+"."})})}}function mr(mo){Xt(wn,function(){wn.style.position="relative";var Ii=wn.ownerDocument.createElement(X);Ii.style.position="absolute",Ii.style.boxSizing="border-box","outside"==Ti?(Ii.style.width="6em",Ii.style.left="-6.8em",Ii.style.textAlign="right"):Ii.style.left="0px",mo(Ii),wn.insertBefore(Ii,wn.firstChild),bo(Ii,Zi),wn.removeChild(Ii)})}function ri(mo){var Ii=wn.parentNode.children,yo=wn.getAttribute("kendo-split-index");if(null!=yo)return mo(0|yo,Ii.length);for(var lr=0;lr<Ii.length;++lr)if(Ii[lr]===wn)return mo(lr,Ii.length)}}(),(function _i(wn){return/^(?:textarea|select|input)$/i.test(wn.tagName)}(wn)||/^(hidden|auto|scroll)/.test(Ko(oo,"overflow"))||/^(hidden|auto|scroll)/.test(Ko(oo,"overflow-x"))||/^(hidden|auto|scroll)/.test(Ko(oo,"overflow-y")))&&function br(){var Ti=pt(wn,Oa,"padding"),mr=new w.Z;Bt(mr,Ti),Zi.append(mr),Zi=mr,nn(Ti)}(),!function go(wn,Zi){var oo;if(wn._kendoExportVisual)oo=wn._kendoExportVisual();else if(window.kendo&&window.kendo.jQuery&&wn.getAttribute(window.kendo.attr("role"))){var Bi=window.kendo.widgetInstance(window.kendo.jQuery(wn));Bi&&(Bi.exportDOMVisual||Bi.exportVisual)&&(oo=Bi.exportDOMVisual?Bi.exportDOMVisual():Bi.exportVisual())}if(!oo)return!1;var Xo=new w.Z;Xo.children.push(oo);var Lo=wn.getBoundingClientRect();return Xo.transform(a.Z().translate(Lo.left,Lo.top)),Zi.append(Xo),!0}(wn,Zi)&&!function si(wn,Zi){const oo=wn.getAttribute(me);if(!oo)return!1;var Bi=wn.getBoundingClientRect();const Xo=Eo(wn).color;if("square"===oo){const Lo=Bi.height/5;Zi.append(new P(new n.Z([Bi.right-Lo,Bi.top+Bi.height/2.1],[Lo,Lo])).fill(Xo).stroke(Xo))}else{const Lo=Bi.height/7,xr=new O.Z(new l.Z([Bi.right-Lo,Bi.top+(Bi.height+Lo)/2],Lo));"circle"===oo?xr.stroke(Xo,.5):xr.fill(Xo).stroke(null),Zi.append(xr)}return!0}(wn,Zi)&&li(wn,Zi),de&&"ellipsis"==ba&&(wn.style.textOverflow=ms),Zi;function Ao(br,Ti,mr,ri,mo,Ii,yo,lr){if(!(mr<=0)){var Yr,Gs=new w.Z;It(Gs,lr),Zi.append(Gs),wt(Ii),wt(yo),Yr=new g.y({fill:{color:br},stroke:null}),Gs.append(Yr),Yr.moveTo(Ii.x?Math.max(Ii.x,ri):0,0).lineTo(Ti-(yo.x?Math.max(yo.x,mo):0),0).lineTo(Ti-Math.max(yo.x,mo),mr).lineTo(Math.max(Ii.x,ri),mr).close(),Ii.x&&fi(ri,Ii,[-1,0,0,1,Ii.x,0]),yo.x&&fi(mo,yo,[1,0,0,1,Ti-yo.x,0])}function fi(Ho,_t,Zn){var qo=Math.PI/2*Ho/(Ho+mr),Cr={x:_t.x-Ho,y:_t.y-mr},kr=new g.y({fill:{color:br},stroke:null}).moveTo(0,0);It(kr,Zn),xt(kr,0,_t.y,{startAngle:-90,endAngle:-Fn(qo),radiusX:_t.x,radiusY:_t.y}),Cr.x>0&&Cr.y>0?(kr.lineTo(Cr.x*Math.cos(qo),_t.y-Cr.y*Math.sin(qo)),xt(kr,0,_t.y,{startAngle:-Fn(qo),endAngle:-90,radiusX:Cr.x,radiusY:Cr.y,anticlockwise:!0})):Cr.x>0?kr.lineTo(Cr.x,mr).lineTo(0,mr):kr.lineTo(Cr.x,mr).lineTo(Cr.x,0),Gs.append(kr.close())}}function Go(br,Ti,mr,ri,mo,Ii,yo){if(mr&&"none"!=mr)if("url"==mr.type){var lr=J[mr.url];lr&&lr.width>0&&lr.height>0&&Yr(br,Ti,lr.width,lr.height,function(Gs,fi){Gs.append(new M.Z(mr.url,fi))})}else{if("linear"!=mr.type)return;Yr(br,Ti,Ti.width,Ti.height,function Pi(wn){return function(Zi,oo){var Bi=oo.width(),Xo=oo.height();switch(wn.type){case"linear":var Lo=null!=wn.angle?wn.angle:Math.PI;switch(wn.to){case"top":Lo=0;break;case"left":Lo=-Math.PI/2;break;case"bottom":Lo=Math.PI;break;case"right":Lo=Math.PI/2;break;case"top left":case"left top":Lo=-Math.atan2(Xo,Bi);break;case"top right":case"right top":Lo=Math.atan2(Xo,Bi);break;case"bottom left":case"left bottom":Lo=Math.PI+Math.atan2(Xo,Bi);break;case"bottom right":case"right bottom":Lo=Math.PI-Math.atan2(Xo,Bi)}wn.reverse&&(Lo-=Math.PI),(Lo%=2*Math.PI)<0&&(Lo+=2*Math.PI);var or=Math.abs(Bi*Math.sin(Lo))+Math.abs(Xo*Math.cos(Lo)),xr=Math.atan(Bi*Math.tan(Lo)/Xo),Nr=Math.sin(xr),as=Math.cos(xr),ji=Math.abs(Nr)+Math.abs(as),Fo=ji/2*Nr,rt=ji/2*as;Lo>Math.PI/2&&Lo<=3*Math.PI/2&&(Fo=-Fo,rt=-rt);var ai=[],Gn=0,Io=wn.stops.map(function(ba,ms){var Oa=ba.percent;Oa?Oa=parseFloat(Oa)/100:ba.length?Oa=parseFloat(ba.length)/or:0===ms?Oa=0:ms==wn.stops.length-1&&(Oa=1);var Ea={color:ba.color.toCssRgba(),offset:Oa};return null!=Oa?(Gn=Oa,ai.forEach(function(Sa,tr){Sa.stop.offset=Sa.left+(Gn-Sa.left)*(tr+1)/(ai.length+1)}),ai=[]):ai.push({left:Gn,stop:Ea}),Ea}),wr=[.5-Fo,.5+rt],bs=[.5+Fo,.5-rt];Zi.append(g.y.fromRect(oo).stroke(null).fill(new p.Z({start:wr,end:bs,stops:Io,userSpace:!1})));break;case"radial":window.console&&window.console.log&&window.console.log("Radial gradients are not yet supported in HTML renderer")}}}(mr))}function Yr(Gs,fi,Ho,_t,Zn){var Cr,qo=Ho/_t,kr=fi;if("content-box"==Ii?(kr=un(kr,"border-*-width",wn),kr=un(kr,"padding-*",wn)):"padding-box"==Ii&&(kr=un(kr,"border-*-width",wn)),!/^\s*auto(\s+auto)?\s*$/.test(yo))if("contain"==yo)Cr=Math.min(kr.width/Ho,kr.height/_t),Ho*=Cr,_t*=Cr;else if("cover"==yo)Cr=Math.max(kr.width/Ho,kr.height/_t),Ho*=Cr,_t*=Cr;else{var xs=yo.split(/\s+/g);Ho=/%$/.test(xs[0])?kr.width*parseFloat(xs[0])/100:parseFloat(xs[0]),_t=1==xs.length||"auto"==xs[1]?Ho/qo:/%$/.test(xs[1])?kr.height*parseFloat(xs[1])/100:parseFloat(xs[1])}var Us=String(mo);switch(Us){case"bottom":Us="50% 100%";break;case"top":Us="50% 0";break;case"left":Us="0 50%";break;case"right":Us="100% 50%";break;case"center":Us="50% 50%"}1==(Us=Us.split(/\s+/)).length&&(Us[1]="50%"),Us[0]=/%$/.test(Us[0])?parseFloat(Us[0])/100*(kr.width-Ho):parseFloat(Us[0]),Us[1]=/%$/.test(Us[1])?parseFloat(Us[1])/100*(kr.height-_t):parseFloat(Us[1]);var Ts=new n.Z([kr.left+Us[0],kr.top+Us[1]],[Ho,_t]);function Ss(){for(;Ts.origin.x>fi.left;)Ts.origin.x-=Ho}function Ua(){for(;Ts.origin.y>fi.top;)Ts.origin.y-=_t}function $o(){for(;Ts.origin.x<fi.right;)Zn(Gs,Ts.clone()),Ts.origin.x+=Ho}if("no-repeat"==ri)Zn(Gs,Ts);else if("repeat-x"==ri)Ss(),$o();else if("repeat-y"==ri)for(Ua();Ts.origin.y<fi.bottom;)Zn(Gs,Ts.clone()),Ts.origin.y+=_t;else if("repeat"==ri){Ss(),Ua();for(var Ar=Ts.origin.clone();Ts.origin.y<fi.bottom;)Ts.origin.x=Ar.x,$o(),Ts.origin.y+=_t}}}function Rr(br,Ti,mr){if(0!==br.width&&0!==br.height){!function ao(br){var Ti=new w.Z;if(Bt(Ti,Lt(br,xr,Nr,ji,as)),Zi.append(Ti),rt){var mr=new g.y({fill:{color:rt.toCssRgba()},stroke:null});mr.moveTo(br.left,br.top).lineTo(br.right,br.top).lineTo(br.right,br.bottom).lineTo(br.left,br.bottom).close(),Ti.append(mr)}for(var ri=ai.length;--ri>=0;)Go(Ti,br,ai[ri],Gn[ri%Gn.length],Io[ri%Io.length],wr[ri%wr.length],bs[ri%bs.length])}(br);var ri=or.width>0&&(Ti&&"ltr"==Fo||mr&&"rtl"==Fo),mo=Xo.width>0&&(mr&&"ltr"==Fo||Ti&&"rtl"==Fo);if(0!==Bi.width||0!==or.width||0!==Xo.width||0!==Lo.width){if(Bi.color==Xo.color&&Bi.color==Lo.color&&Bi.color==or.color&&Bi.width==Xo.width&&Bi.width==Lo.width&&Bi.width==or.width&&ri&&mo){br=un(br,Bi.width/2);var Ii=pt(wn,br,Bi.width/2);return Ii.options.stroke={color:Bi.color,width:Bi.width},void Zi.append(Ii)}if(0===xr.x&&0===Nr.x&&0===ji.x&&0===as.x&&Bi.width<2&&or.width<2&&Xo.width<2&&Lo.width<2)return Bi.width>0&&Zi.append(new g.y({stroke:{width:Bi.width,color:Bi.color}}).moveTo(br.left,br.top+Bi.width/2).lineTo(br.right,br.top+Bi.width/2)),Lo.width>0&&Zi.append(new g.y({stroke:{width:Lo.width,color:Lo.color}}).moveTo(br.left,br.bottom-Lo.width/2).lineTo(br.right,br.bottom-Lo.width/2)),ri&&Zi.append(new g.y({stroke:{width:or.width,color:or.color}}).moveTo(br.left+or.width/2,br.top).lineTo(br.left+or.width/2,br.bottom)),void(mo&&Zi.append(new g.y({stroke:{width:Xo.width,color:Xo.color}}).moveTo(br.right-Xo.width/2,br.top).lineTo(br.right-Xo.width/2,br.bottom)));var yo=Mt(br,xr,Nr,ji,as),lr=yo.tl,Yr=yo.tr,Gs=yo.br,fi=yo.bl;Ao(Bi.color,br.width,Bi.width,or.width,Xo.width,lr,Yr,[1,0,0,1,br.left,br.top]),Ao(Lo.color,br.width,Lo.width,Xo.width,or.width,Gs,fi,[-1,0,0,-1,br.right,br.bottom]),Ao(or.color,br.height,or.width,Lo.width,Bi.width,Ho(fi),Ho(lr),[0,-1,1,0,br.left,br.bottom]),Ao(Xo.color,br.height,Xo.width,Bi.width,Lo.width,Ho(Yr),Ho(Gs),[0,1,-1,0,br.right,br.top])}}function Ho(_t){return{x:_t.y,y:_t.x}}}}function ot(wn,Zi,oo){var Bi=En(wn),Xo=new n.Z([Bi.left,Bi.top],[Bi.width,Bi.height]),Lo=new M.Z(Zi,Xo);Bt(Lo,pt(wn,Bi,"content")),oo.append(Lo)}function pn(wn,Zi){var oo=Eo(wn),Bi=Eo(Zi),Xo=parseFloat(Ko(oo,"z-index")),Lo=parseFloat(Ko(Bi,"z-index")),or=Ko(oo,"position"),xr=Ko(Bi,"position");return isNaN(Xo)&&isNaN(Lo)?/static|absolute/.test(or)&&/static|absolute/.test(xr)?0:"static"==or?-1:"static"==xr?1:0:isNaN(Xo)?0===Lo?0:Lo>0?-1:1:isNaN(Lo)?0===Xo?0:Xo>0?1:-1:parseFloat(Xo)-parseFloat(Lo)}function li(wn,Zi){switch(Q._stackingContext.element===wn&&(Q._stackingContext.group=Zi),wn.tagName.toLowerCase()){case"img":ot(wn,wn.src,Zi);break;case"svg":let as=function Ei(wn){const Zi=new window.XMLSerializer;let oo=Zi.serializeToString(wn);if(V.mozilla&&(!wn.getAttribute("width")||!wn.getAttribute("height"))){const Xo=(new window.DOMParser).parseFromString(oo,"image/svg+xml").documentElement,Lo=En(wn);Xo.setAttribute("width",Lo.width),Xo.setAttribute("height",Lo.height),oo=Zi.serializeToString(Xo)}return oo}(wn);ot(wn,`data:image/svg+xml;base64,${(0,U.Z)(as)}`,Zi);break;case"canvas":try{ot(wn,wn.toDataURL("image/png"),Zi)}catch{}break;case"textarea":case"input":case"select":!function zn(wn,Zi){var oo=wn.tagName.toLowerCase();if("input"==oo&&("checkbox"==wn.type||"radio"==wn.type))return function hi(wn,Zi){var Bi=Ko(Eo(wn),"color"),Xo=wn.getBoundingClientRect();"checkbox"==wn.type?(Zi.append(g.y.fromRect(new n.Z([Xo.left+1,Xo.top+1],[Xo.width-2,Xo.height-2])).stroke(Bi,1)),wn.checked&&Zi.append((new g.y).stroke(Bi,1.2).moveTo(Xo.left+.22*Xo.width,Xo.top+.55*Xo.height).lineTo(Xo.left+.45*Xo.width,Xo.top+.75*Xo.height).lineTo(Xo.left+.78*Xo.width,Xo.top+.22*Xo.width))):(Zi.append(new O.Z(new l.Z([(Xo.left+Xo.right)/2,(Xo.top+Xo.bottom)/2],Math.min(Xo.width-2,Xo.height-2)/2)).stroke(Bi,1)),wn.checked&&Zi.append(new O.Z(new l.Z([(Xo.left+Xo.right)/2,(Xo.top+Xo.bottom)/2],Math.min(Xo.width-8,Xo.height-8)/2)).fill(Bi).stroke(null)))}(wn,Zi);var or,Bi=wn.parentNode,Xo=wn.ownerDocument,Lo=Xo.createElement(X);if(Lo.style.cssText=vt(Eo(wn)),"input"==oo&&(Lo.style.whiteSpace="pre"),("select"==oo||"textarea"==oo)&&(Lo.style.overflow="auto"),"select"==oo)if(wn.multiple)for(var xr=0;xr<wn.options.length;++xr)(or=Xo.createElement(X)).style.cssText=vt(Eo(wn.options[xr])),or.style.display="block",or.textContent=wn.options[xr].textContent,Lo.appendChild(or);else or=function wi(wn){return wn.selectedOptions&&wn.selectedOptions.length>0?wn.selectedOptions[0]:wn.options[wn.selectedIndex]}(wn),or&&(Lo.textContent=or.textContent);else Lo.textContent=wn.value;Bi.insertBefore(Lo,wn),Lo.scrollLeft=wn.scrollLeft,Lo.scrollTop=wn.scrollTop,wn.style.display="none",li(Lo,Zi),wn.style.display="",Bi.removeChild(Lo)}(wn,Zi);break;default:for(var oo=[],Bi=[],Xo=[],Lo=wn.firstChild;Lo;Lo=Lo.nextSibling)switch(Lo.nodeType){case 3:/\S/.test(Lo.data)&&Xi(wn,Lo,Zi);break;case 1:var or=Eo(Lo),xr=Ko(or,"float");"static"!=Ko(or,"position")?Xo.push(Lo):"none"!=xr?Bi.push(Lo):oo.push(Lo)}C(oo,pn).forEach(function(Fo){bo(Fo,Zi)}),C(Bi,pn).forEach(function(Fo){bo(Fo,Zi)}),C(Xo,pn).forEach(function(Fo){bo(Fo,Zi)})}}function Xi(wn,Zi,oo){if(!function Mi(){var wn=Q._clipbox;return null==wn||(wn?0===wn.width()||0===wn.height():void 0)}()){var Bi=Eo(wn);if(!(parseFloat(Ko(Bi,"text-indent"))<-500)){var Xo=Zi.data,Lo=0,or=Xo.search(/\S\s*$/)+1;if(or){var xr=Ko(Bi,"font-size"),Nr=Ko(Bi,"line-height"),as=[Ko(Bi,"font-style"),Ko(Bi,"font-variant"),Ko(Bi,"font-weight"),xr,Ko(Bi,"font-family")].join(" ");if(xr=parseFloat(xr),Nr=parseFloat(Nr),0!==xr&&!isNaN(xr)){var ji=Ko(Bi,"color"),Fo=wn.ownerDocument.createRange(),ai="justify"==Ko(Bi,"text-align"),Gn=Ko(Bi,"column-count",1),Io=Ko(Bi,"white-space"),wr=Ko(Bi,"text-transform"),bs=wn.getBoundingClientRect().width/xr*5;0===bs&&(bs=500);var ba=null,ms=Q.underline,Oa=Q["line-through"],Ea=Q.overline,Sa=Q["underline-offset"];for(ms&&tr(function pr(Rr){let br=xr/12,Ti=Rr.bottom;Ti+=null!=Sa?Sa:br,ao(br,Rr,ms,Ti)});!Li(););return void((Oa||Ea)&&tr(function Go(Rr){let br=xr/12;ao(br,Rr,Oa,Rr.bottom-Rr.height/2.7),ao(br,Rr,Ea,Rr.top)}))}}}}function tr(Rr){Fo.selectNode(Zi);let br=K(Fo.getClientRects());(tr=Ti=>br.forEach(Ti))(Rr)}function Mr(Rr){if(de||V.chrome||V.safari){for(var br=Rr.getClientRects(),Ti={top:1/0,right:-1/0,bottom:-1/0,left:1/0},mr=!1,ri=0;ri<br.length;++ri){var mo=br[ri];mo.width<=1||mo.bottom===ba||(Ti.left=Math.min(mo.left,Ti.left),Ti.top=Math.min(mo.top,Ti.top),Ti.right=Math.max(mo.right,Ti.right),Ti.bottom=Math.max(mo.bottom,Ti.bottom),mr=!0)}return mr?(Ti.width=Ti.right-Ti.left,Ti.height=Ti.bottom-Ti.top,Ti):Rr.getBoundingClientRect()}return Rr.getBoundingClientRect()}function Li(){var br,Rr=Lo,Ti=Xo.substr(Lo).search(/\S/);if(Lo+=Ti,Ti<0||Lo>=or)return!0;Fo.setStart(Zi,Lo),Fo.setEnd(Zi,Lo+1),br=Mr(Fo);var mr=!1;if((ai||Gn>1)&&(Ti=Xo.substr(Lo).search(/\s/))>=0){Fo.setEnd(Zi,Lo+Ti);var ri=Mr(Fo);ri.bottom==br.bottom&&(br=ri,mr=!0,Lo+=Ti)}if(!mr){if((Ti=function Yr(Gs,fi,Ho){Fo.setEnd(Zi,fi);var _t=Mr(Fo);return _t.bottom!=br.bottom&&Gs<fi?Yr(Gs,Gs+fi>>1,fi):_t.right!=br.right?(br=_t,fi<Ho?Yr(fi,fi+Ho>>1,Ho):fi):fi}(Lo,Math.min(or,Lo+bs),or))==Lo)return!0;if(Lo=Ti,0===(Ti=Fo.toString().search(/\s+$/)))return!1;Ti>0&&(Fo.setEnd(Zi,Fo.startOffset+Ti),br=Mr(Fo))}de&&(br=Fo.getClientRects()[0]);var mo=Fo.toString();if(/^(?:pre|pre-wrap)$/i.test(Io)){if(/\t/.test(mo)){var Ii=0;for(Ti=Rr;Ti<Fo.startOffset;++Ti){var yo=Xo.charCodeAt(Ti);9==yo?Ii+=8-Ii%8:10==yo||13==yo?Ii=0:Ii++}for(;(Ti=mo.search("\t"))>=0;){var lr="        ".substr(0,8-(Ii+Ti)%8);mo=mo.substr(0,Ti)+lr+mo.substr(Ti+1)}}}else mo=mo.replace(/\s+/g," ");mr||(ba=br.bottom),function Ao(Rr,br){if(de&&!isNaN(Nr)){var Ti=xe(as),mr=(br.top+br.bottom-Ti)/2;br={top:mr,right:br.right,bottom:mr+Ti,left:br.left,height:Ti,width:br.right-br.left}}switch(wr){case"uppercase":Rr=Rr.toUpperCase();break;case"lowercase":Rr=Rr.toLowerCase();break;case"capitalize":Rr=Rr.replace(/(?:^|\s)\S/g,mo=>mo.toUpperCase())}var ri=new te(Rr,new n.Z([br.left,br.top],[br.width,br.height]),{font:as,fill:{color:ji}});oo.append(ri)}(mo,br)}function ao(Rr,br,Ti,mr){if(Ti){var ri=new g.y({stroke:{width:Rr,color:Ti}});ri.moveTo(br.left,mr-=Rr).lineTo(br.right,mr),oo.append(ri)}}}function bo(wn,Zi){var oo=Eo(wn);if(mt(oo),!/^(style|script|link|meta|iframe|col|colgroup)$/i.test(wn.tagName)&&null!=Q._clipbox){var Bi=parseFloat(Ko(oo,"opacity")),Xo=Ko(oo,"visibility"),Lo=Ko(oo,"display");if(0!==Bi&&"hidden"!=Xo&&"none"!=Lo){var xr,or=function Ki(wn){var Zi=Ko(wn,"transform");if("none"==Zi)return null;var oo=/^\s*matrix\(\s*(.*?)\s*\)\s*$/.exec(Zi);if(oo){var Bi=Ko(wn,"transform-origin");return{matrix:oo=oo[1].split(/\s*,\s*/g).map(parseFloat),origin:Bi=Bi.split(/\s+/g).map(parseFloat)}}}(oo),Nr=Ko(oo,"z-index");(or||Bi<1)&&"auto"==Nr&&(Nr=0),xr=function ki(wn,Zi,oo){var Bi;"auto"!=oo?(Bi=Q._stackingContext.group,oo=parseFloat(oo)):(Bi=Zi,oo=0);for(var Xo=Bi.children,Lo=0;Lo<Xo.length&&!(null!=Xo[Lo]._dom_zIndex&&Xo[Lo]._dom_zIndex>oo);++Lo);var or=new w.Z;if(Bi.insert(Lo,or),or._dom_zIndex=oo,Bi!==Zi&&Q._clipbox){var xr=Q._matrix.invert(),Nr=Q._clipbox.transformCopy(xr);Bt(or,g.y.fromRect(Nr))}return or}(0,Zi,Nr),Bi<1&&xr.opacity(Bi*xr.opacity()),function fn(wn,Zi,oo){(Q=Object.create(Q))[wn.tagName.toLowerCase()]={element:wn,style:Zi};let Bi=Ko(Zi,"text-decoration");if(Bi&&"none"!=Bi){let Xo=Ko(Zi,"text-decoration-color");Bi.split(/\s+/g).forEach(function(Lo){if(!Q[Lo]&&(Q[Lo]=Xo,"underline"==Lo)){let or=Ko(Zi,"text-underline-offset");"auto"!=or&&(Q["underline-offset"]=parseFloat(or))}})}(function mi(wn){function Zi(oo){return Ko(wn,oo)}if("none"!=Zi("transform")||"static"!=Zi("position")||"auto"!=Zi("z-index")||Zi("opacity")<1)return!0})(Zi)&&(Q._stackingContext={element:wn,group:oo})}(wn,oo,xr),or?Xt(wn,function(){xo(wn.style,"transform","none","important"),xo(wn.style,"transition","none","important"),"static"==Ko(oo,"position")&&xo(wn.style,"position","relative","important");var as=wn.getBoundingClientRect(),ji=as.left+or.origin[0],Fo=as.top+or.origin[1],rt=[1,0,0,1,-ji,-Fo];rt=jo(rt,or.matrix),rt=jo(rt,[1,0,0,1,ji,Fo]),rt=It(xr,rt),Q._matrix=Q._matrix.multiplyCopy(rt),ln(wn,xr)}):ln(wn,xr),function yi(){Q=Object.getPrototypeOf(Q)}()}}}function jo(wn,Zi){var oo=wn[0],Bi=wn[1],Xo=wn[2],Lo=wn[3],or=wn[4],xr=wn[5],Nr=Zi[0],as=Zi[1],ji=Zi[2],Fo=Zi[3];return[oo*Nr+Bi*ji,oo*as+Bi*Fo,Xo*Nr+Lo*ji,Xo*as+Lo*Fo,or*Nr+xr*ji+Zi[4],or*as+xr*Fo+Zi[5]]}},26082:(he,y,i)=>{"use strict";i.d(y,{Z:()=>l});var e=i(11255),n=i(62803);const o=e.Z.IDENTITY.toString(),l=u=>class extends u{bbox(d){const s=(0,n.Z)(this.currentTransform(d)),A=s?s.toString():o;let _;this._bboxCache&&this._matrixHash===A?_=this._bboxCache.clone():(_=this._bbox(s),this._bboxCache=_?_.clone():null,this._matrixHash=A);const C=this.options.get("stroke.width");return C&&_&&_.expand(C/2),_}geometryChange(){delete this._bboxCache,this.trigger("geometryChange",{element:this})}}},23776:(he,y,i)=>{"use strict";i.d(y,{Z:()=>a});var e=i(10409);const a=l=>class extends l{fill(u,d){const s=this.options;if((0,e.Z)(u)){if(u&&"Gradient"!==u.nodeType){const A={color:u};(0,e.Z)(d)&&(A.opacity=d),s.set("fill",A)}else s.set("fill",u);return this}return s.get("fill")}stroke(u,d,s){return(0,e.Z)(u)?(this.options.set("stroke.color",u),(0,e.Z)(d)&&this.options.set("stroke.width",d),(0,e.Z)(s)&&this.options.set("stroke.opacity",s),this):this.options.get("stroke")}}},47911:(he,y,i)=>{"use strict";i.d(y,{Z:()=>n});const n=(o,a)=>class extends o{traverse(l){const u=this[a];for(let d=0;d<u.length;d++){let s=u[d];s.traverse?s.traverse(l):l(s)}return this}}},8551:(he,y,i)=>{"use strict";function e(u){return function(d){return this[u]!==d&&(this[u]=d,this.geometryChange()),this}}function n(u){return function(){return this[u]}}i.d(y,{Z:()=>l});const l=(u,d)=>{const s=class extends u{};return function o(u,d){for(let s=0;s<d.length;s++){let A=d[s],_=A.charAt(0).toUpperCase()+A.substring(1,A.length);u["set"+_]=e(A),u["get"+_]=n(A)}}(s.prototype,d),s}},63424:(he,y,i)=>{"use strict";i.d(y,{Z:()=>l});var e=i(10409);function n(u){const d="_"+u;return function(s){return(0,e.Z)(s)?(this._observerField(d,s),this.geometryChange(),this):this[d]}}const l=(u,d=["geometry"])=>{const s=class extends u{};return function o(u,d){for(let s=0;s<d.length;s++)u[d[s]]=n(d[s])}(s.prototype,d),s}},94927:(he,y,i)=>{"use strict";i.d(y,{Z:()=>u});var e=i(10409),n=i(12090);function o(d){const s="_"+d;return function(A){return(0,e.Z)(A)?(this._observerField(s,n.Z.create(A)),this.geometryChange(),this):this[s]}}const u=(d,s)=>{const A=class extends d{};return function a(d,s){for(let A=0;A<s.length;A++)d[s[A]]=o(s[A])}(A.prototype,s),A}},67118:(he,y,i)=>{"use strict";i.d(y,{BB:()=>fe,Q$:()=>go,qL:()=>_e,pl:()=>ln,VI:()=>tt,M:()=>H,hR:()=>Te,lL:()=>De,$h:()=>Lt});var e=i(35276);const n=typeof Uint8Array<"u"&&e.Z.browser&&(!e.Z.browser.msie||e.Z.browser.version>9),o=(si="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",{decode:function(ot){for(var pn=ot.replace(/[^A-Za-z0-9\+\/\=]/g,""),_i=0,wi=pn.length,hi=[];_i<wi;){var zn=si.indexOf(pn.charAt(_i++)),Ei=si.indexOf(pn.charAt(_i++)),li=si.indexOf(pn.charAt(_i++)),Xi=si.indexOf(pn.charAt(_i++)),bo=(15&Ei)<<4|li>>>2,jo=(3&li)<<6|Xi;hi.push(zn<<2|Ei>>>4),64!=li&&hi.push(bo),64!=Xi&&hi.push(jo)}return hi},encode:function(ot){for(var pn=0,_i=ot.length,wi="";pn<_i;){var hi=ot[pn++],zn=ot[pn++],Ei=ot[pn++],Xi=(3&hi)<<4|zn>>>4,ki=(15&zn)<<2|Ei>>>6,bo=63&Ei;pn-_i==2?ki=bo=64:pn-_i==1&&(bo=64),wi+=si.charAt(hi>>>2)+si.charAt(Xi)+si.charAt(ki)+si.charAt(bo)}return wi}});var si;function a(si){var ot=0,pn=0;null==si?si=n?new Uint8Array(256):[]:pn=si.length;var _i=n?function(Gn){if(Gn>=si.length){var Io=new Uint8Array(Math.max(Gn+256,2*si.length));Io.set(si,0),si=Io}}:function(){},wi=n?function(){return new Uint8Array(si.buffer,0,pn)}:function(){return si},hi=n?function(Gn){if("string"==typeof Gn)return Fo(Gn);var Io=Gn.length;_i(ot+Io),si.set(Gn,ot),(ot+=Io)>pn&&(pn=ot)}:function(Gn){if("string"==typeof Gn)return Fo(Gn);for(var Io=0;Io<Gn.length;++Io)Xi(Gn[Io])};function li(){return ot<pn?si[ot++]:0}function Xi(Gn){_i(ot),si[ot++]=255&Gn,ot>pn&&(pn=ot)}function ki(){return li()<<8|li()}function bo(Gn){Xi(Gn>>8),Xi(Gn)}function Zi(){return 65536*ki()+ki()}function oo(Gn){bo(Gn>>>16&65535),bo(65535&Gn)}function Bi(){var Gn=Zi();return Gn>=2147483648?Gn-4294967296:Gn}function Xo(Gn){oo(Gn<0?Gn+4294967296:Gn)}function as(Gn){return rt(Gn,li)}function Fo(Gn){for(var Io=0;Io<Gn.length;++Io)Xi(Gn.charCodeAt(Io))}function rt(Gn,Io){for(var wr=new Array(Gn),bs=0;bs<Gn;++bs)wr[bs]=Io();return wr}var ai={eof:function Ei(){return ot>=pn},readByte:li,writeByte:Xi,readShort:ki,writeShort:bo,readLong:Zi,writeLong:oo,readFixed:function Lo(){return Zi()/65536},writeFixed:function or(Gn){oo(Math.round(65536*Gn))},readShort_:function jo(){var Gn=ki();return Gn>=32768?Gn-65536:Gn},writeShort_:function wn(Gn){bo(Gn<0?Gn+65536:Gn)},readLong_:Bi,writeLong_:Xo,readFixed_:function xr(){return Bi()/65536},writeFixed_:function Nr(Gn){Xo(Math.round(65536*Gn))},read:as,write:hi,readString:function ji(Gn){return String.fromCharCode.apply(String,as(Gn))},writeString:Fo,times:rt,get:wi,slice:n?function(Gn,Io){if(si.buffer.slice)return new Uint8Array(si.buffer.slice(Gn,Gn+Io));var wr=new Uint8Array(Io);return wr.set(new Uint8Array(si.buffer,Gn,Io)),wr}:function(Gn,Io){return si.slice(Gn,Gn+Io)},offset:function(Gn){return null!=Gn?(ot=Gn,ai):ot},skip:function(Gn){ot+=Gn},toString:function(){throw new Error("FIX CALLER.  BinaryStream is no longer convertible to string!")},length:function(){return pn},saveExcursion:function(Gn){var Io=ot;try{return Gn()}finally{ot=Io}},writeBase64:function(Gn){window.atob?Fo(window.atob(Gn)):hi(o.decode(Gn))},base64:function(){return o.encode(wi())}};return ai}function u(si){return si.map(function(ot){var pn="";return ot>65535&&(ot-=65536,pn+=String.fromCharCode(ot>>>10&1023|55296),ot=56320|1023&ot),pn+String.fromCharCode(ot)}).join("")}function _(si,ot){return Object.prototype.hasOwnProperty.call(si,ot)}function C(si){return Object.keys(si).sort(function(ot,pn){return ot-pn}).map(parseFloat)}class R{constructor(ot){this.raw=ot,this.scalerType=ot.readLong(),this.tableCount=ot.readShort(),this.searchRange=ot.readShort(),this.entrySelector=ot.readShort(),this.rangeShift=ot.readShort();for(var pn=this.tables={},_i=0;_i<this.tableCount;++_i){var wi={tag:ot.readString(4),checksum:ot.readLong(),offset:ot.readLong(),length:ot.readLong()};pn[wi.tag]=wi}}readTable(ot,pn){var _i=this.tables[ot];if(!_i)throw new Error("Table "+ot+" not found in directory");return this[ot]=_i.table=new pn(this,_i)}render(ot){var pn=Object.keys(ot).length,_i=Math.pow(2,Math.floor(Math.log(pn)/Math.LN2)),wi=16*_i,hi=Math.floor(Math.log(_i)/Math.LN2),zn=16*pn-wi,Ei=a();Ei.writeLong(this.scalerType),Ei.writeShort(pn),Ei.writeShort(wi),Ei.writeShort(hi),Ei.writeShort(zn);var li=16*pn,Xi=Ei.offset()+li,ki=null,bo=a();for(var jo in ot)if(_(ot,jo)){var wn=ot[jo];for(Ei.writeString(jo),Ei.writeLong(this.checksum(wn)),Ei.writeLong(Xi),Ei.writeLong(wn.length),bo.write(wn),"head"==jo&&(ki=Xi),Xi+=wn.length;Xi%4;)bo.writeByte(0),Xi++}Ei.write(bo.get());var oo=2981146554-this.checksum(Ei.get());return Ei.offset(ki+8),Ei.writeLong(oo),Ei.get()}checksum(ot){ot=a(ot);for(var pn=0;!ot.eof();)pn+=ot.readLong();return 4294967295&pn}}class x{constructor(ot,pn){this.definition=pn,this.length=pn.length,this.offset=pn.offset,this.file=ot,this.rawData=ot.raw,this.parse(ot.raw)}raw(){return this.rawData.slice(this.offset,this.length)}parse(){}}class f extends x{parse(ot){ot.offset(this.offset),this.version=ot.readLong(),this.revision=ot.readLong(),this.checkSumAdjustment=ot.readLong(),this.magicNumber=ot.readLong(),this.flags=ot.readShort(),this.unitsPerEm=ot.readShort(),this.created=ot.read(8),this.modified=ot.read(8),this.xMin=ot.readShort_(),this.yMin=ot.readShort_(),this.xMax=ot.readShort_(),this.yMax=ot.readShort_(),this.macStyle=ot.readShort(),this.lowestRecPPEM=ot.readShort(),this.fontDirectionHint=ot.readShort_(),this.indexToLocFormat=ot.readShort_(),this.glyphDataFormat=ot.readShort_()}render(ot){var pn=a();return pn.writeLong(this.version),pn.writeLong(this.revision),pn.writeLong(0),pn.writeLong(this.magicNumber),pn.writeShort(this.flags),pn.writeShort(this.unitsPerEm),pn.write(this.created),pn.write(this.modified),pn.writeShort_(this.xMin),pn.writeShort_(this.yMin),pn.writeShort_(this.xMax),pn.writeShort_(this.yMax),pn.writeShort(this.macStyle),pn.writeShort(this.lowestRecPPEM),pn.writeShort_(this.fontDirectionHint),pn.writeShort_(ot),pn.writeShort_(this.glyphDataFormat),pn.get()}}class k extends x{parse(ot){ot.offset(this.offset),this.offsets=0===this.file.head.indexToLocFormat?ot.times(this.length/2,function(){return 2*ot.readShort()}):ot.times(this.length/4,ot.readLong)}offsetOf(ot){return this.offsets[ot]}lengthOf(ot){return this.offsets[ot+1]-this.offsets[ot]}render(ot){for(var pn=a(),_i=ot[ot.length-1]>65535,wi=0;wi<ot.length;++wi)_i?pn.writeLong(ot[wi]):pn.writeShort(ot[wi]/2);return{format:_i?1:0,table:pn.get()}}}class w extends x{parse(ot){ot.offset(this.offset),this.version=ot.readLong(),this.ascent=ot.readShort_(),this.descent=ot.readShort_(),this.lineGap=ot.readShort_(),this.advanceWidthMax=ot.readShort(),this.minLeftSideBearing=ot.readShort_(),this.minRightSideBearing=ot.readShort_(),this.xMaxExtent=ot.readShort_(),this.caretSlopeRise=ot.readShort_(),this.caretSlopeRun=ot.readShort_(),this.caretOffset=ot.readShort_(),ot.skip(8),this.metricDataFormat=ot.readShort_(),this.numOfLongHorMetrics=ot.readShort()}render(ot){var pn=a();return pn.writeLong(this.version),pn.writeShort_(this.ascent),pn.writeShort_(this.descent),pn.writeShort_(this.lineGap),pn.writeShort(this.advanceWidthMax),pn.writeShort_(this.minLeftSideBearing),pn.writeShort_(this.minRightSideBearing),pn.writeShort_(this.xMaxExtent),pn.writeShort_(this.caretSlopeRise),pn.writeShort_(this.caretSlopeRun),pn.writeShort_(this.caretOffset),pn.write([0,0,0,0,0,0,0,0]),pn.writeShort_(this.metricDataFormat),pn.writeShort(ot.length),pn.get()}}class g extends x{parse(ot){ot.offset(this.offset),this.version=ot.readLong(),this.numGlyphs=ot.readShort(),this.maxPoints=ot.readShort(),this.maxContours=ot.readShort(),this.maxComponentPoints=ot.readShort(),this.maxComponentContours=ot.readShort(),this.maxZones=ot.readShort(),this.maxTwilightPoints=ot.readShort(),this.maxStorage=ot.readShort(),this.maxFunctionDefs=ot.readShort(),this.maxInstructionDefs=ot.readShort(),this.maxStackElements=ot.readShort(),this.maxSizeOfInstructions=ot.readShort(),this.maxComponentElements=ot.readShort(),this.maxComponentDepth=ot.readShort()}render(ot){var pn=a();return pn.writeLong(this.version),pn.writeShort(ot.length),pn.writeShort(this.maxPoints),pn.writeShort(this.maxContours),pn.writeShort(this.maxComponentPoints),pn.writeShort(this.maxComponentContours),pn.writeShort(this.maxZones),pn.writeShort(this.maxTwilightPoints),pn.writeShort(this.maxStorage),pn.writeShort(this.maxFunctionDefs),pn.writeShort(this.maxInstructionDefs),pn.writeShort(this.maxStackElements),pn.writeShort(this.maxSizeOfInstructions),pn.writeShort(this.maxComponentElements),pn.writeShort(this.maxComponentDepth),pn.get()}}class M extends x{parse(ot){ot.offset(this.offset);var pn=this.file;this.metrics=ot.times(pn.hhea.numOfLongHorMetrics,function(){return{advance:ot.readShort(),lsb:ot.readShort_()}}),this.leftSideBearings=ot.times(pn.maxp.numGlyphs-pn.hhea.numOfLongHorMetrics,ot.readShort_)}forGlyph(ot){var pn=this.metrics,_i=pn.length;return ot<_i?pn[ot]:{advance:pn[_i-1].advance,lsb:this.leftSideBearings[ot-_i]}}render(ot){for(var pn=a(),_i=0;_i<ot.length;++_i){var wi=this.forGlyph(ot[_i]);pn.writeShort(wi.advance),pn.writeShort_(wi.lsb)}return pn.get()}}var p=function(){class si{get compound(){return!1}constructor(li){this.raw=li}render(){return this.raw.get()}}class zn{get compound(){return!0}constructor(li){this.raw=li;for(var Xi=this.glyphIds=[],ki=this.idOffsets=[];;){var bo=li.readShort();if(ki.push(li.offset()),Xi.push(li.readShort()),!(32&bo))break;li.skip(1&bo?4:2),128&bo?li.skip(8):64&bo?li.skip(4):8&bo&&li.skip(2)}}render(li){for(var Xi=a(this.raw.get()),ki=0;ki<this.glyphIds.length;++ki){var bo=this.glyphIds[ki];Xi.offset(this.idOffsets[ki]),Xi.writeShort(li[bo])}return Xi.get()}}return class extends x{parse(){this.cache={}}glyphFor(Ei){var li=this.cache;if(_(li,Ei))return li[Ei];var Xi=this.file.loca,ki=Xi.lengthOf(Ei);if(0===ki)return li[Ei]=null;var bo=this.rawData,jo=this.offset+Xi.offsetOf(Ei),wn=a(bo.slice(jo,ki)),Zi=wn.readShort_(),oo=wn.readShort_(),Bi=wn.readShort_(),Xo=wn.readShort_(),Lo=wn.readShort_(),or=li[Ei]=Zi<0?new zn(wn):new si(wn);return or.numberOfContours=Zi,or.xMin=oo,or.yMin=Bi,or.xMax=Xo,or.yMax=Lo,or}render(Ei,li,Xi){for(var ki=a(),bo=[],jo=0;jo<li.length;++jo){var Zi=Ei[li[jo]];ki.offset()%2&&ki.writeByte(0),bo.push(ki.offset()),Zi&&ki.write(Zi.render(Xi))}return ki.offset()%2&&ki.writeByte(0),bo.push(ki.offset()),{table:ki.get(),offsets:bo}}}}(),E=function(){class si{constructor(pn,_i){this.text=pn,this.length=pn.length,this.platformID=_i.platformID,this.platformSpecificID=_i.platformSpecificID,this.languageID=_i.languageID,this.nameID=_i.nameID}}return class extends x{parse(ot){ot.offset(this.offset),ot.readShort();for(var pn=ot.readShort(),_i=this.offset+ot.readShort(),wi=ot.times(pn,function(){return{platformID:ot.readShort(),platformSpecificID:ot.readShort(),languageID:ot.readShort(),nameID:ot.readShort(),length:ot.readShort(),offset:ot.readShort()+_i}}),hi=this.strings={},zn=0;zn<wi.length;++zn){var Ei=wi[zn];ot.offset(Ei.offset);var li=ot.readString(Ei.length);hi[Ei.nameID]||(hi[Ei.nameID]=[]),hi[Ei.nameID].push(new si(li,Ei))}this.postscriptEntry=hi[6][0],this.postscriptName=this.postscriptEntry.text.replace(/[^\x20-\x7F]/g,"")}render(ot){var pn=this.strings,_i=0;for(var wi in pn)_(pn,wi)&&(_i+=pn[wi].length);var hi=a(),zn=a();for(wi in hi.writeShort(0),hi.writeShort(_i),hi.writeShort(6+12*_i),pn)if(_(pn,wi))for(var Ei=6==wi?[new si(ot,this.postscriptEntry)]:pn[wi],li=0;li<Ei.length;++li){var Xi=Ei[li];hi.writeShort(Xi.platformID),hi.writeShort(Xi.platformSpecificID),hi.writeShort(Xi.languageID),hi.writeShort(Xi.nameID),hi.writeShort(Xi.length),hi.writeShort(zn.offset()),zn.writeString(Xi.text)}return hi.write(zn.get()),hi.get()}}}(),b=function(){var si=".notdef .null nonmarkingreturn space exclam quotedbl numbersign dollar percent ampersand quotesingle parenleft parenright asterisk plus comma hyphen period slash zero one two three four five six seven eight nine colon semicolon less equal greater question at 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 bracketleft backslash bracketright asciicircum underscore grave 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 braceleft bar braceright asciitilde Adieresis Aring Ccedilla Eacute Ntilde Odieresis Udieresis aacute agrave acircumflex adieresis atilde aring ccedilla eacute egrave ecircumflex edieresis iacute igrave icircumflex idieresis ntilde oacute ograve ocircumflex odieresis otilde uacute ugrave ucircumflex udieresis dagger degree cent sterling section bullet paragraph germandbls registered copyright trademark acute dieresis notequal AE Oslash infinity plusminus lessequal greaterequal yen mu partialdiff summation product pi integral ordfeminine ordmasculine Omega ae oslash questiondown exclamdown logicalnot radical florin approxequal Delta guillemotleft guillemotright ellipsis nonbreakingspace Agrave Atilde Otilde OE oe endash emdash quotedblleft quotedblright quoteleft quoteright divide lozenge ydieresis Ydieresis fraction currency guilsinglleft guilsinglright fi fl daggerdbl periodcentered quotesinglbase quotedblbase perthousand Acircumflex Ecircumflex Aacute Edieresis Egrave Iacute Icircumflex Idieresis Igrave Oacute Ocircumflex apple Ograve Uacute Ucircumflex Ugrave dotlessi circumflex tilde macron breve dotaccent ring cedilla hungarumlaut ogonek caron Lslash lslash Scaron scaron Zcaron zcaron brokenbar Eth eth Yacute yacute Thorn thorn minus multiply onesuperior twosuperior threesuperior onehalf onequarter threequarters franc Gbreve gbreve Idotaccent Scedilla scedilla Cacute cacute Ccaron ccaron dcroat".split(/\s+/g);return class extends x{parse(ot){var pn;switch(ot.offset(this.offset),this.format=ot.readLong(),this.italicAngle=ot.readFixed_(),this.underlinePosition=ot.readShort_(),this.underlineThickness=ot.readShort_(),this.isFixedPitch=ot.readLong(),this.minMemType42=ot.readLong(),this.maxMemType42=ot.readLong(),this.minMemType1=ot.readLong(),this.maxMemType1=ot.readLong(),this.format){case 65536:case 196608:break;case 131072:pn=ot.readShort(),this.glyphNameIndex=ot.times(pn,ot.readShort),this.names=[];for(var _i=this.offset+this.length;ot.offset()<_i;)this.names.push(ot.readString(ot.readByte()));break;case 151552:pn=ot.readShort(),this.offsets=ot.read(pn);break;case 262144:this.map=ot.times(this.file.maxp.numGlyphs,ot.readShort)}}glyphFor(ot){switch(this.format){case 65536:return si[ot]||".notdef";case 131072:var pn=this.glyphNameIndex[ot];return pn<si.length?si[pn]:this.names[pn-si.length]||".notdef";case 151552:case 196608:return".notdef";case 262144:return this.map[ot]||65535}}render(ot){if(196608==this.format)return this.raw();var pn=a(this.rawData.slice(this.offset,32));pn.writeLong(131072),pn.offset(32);for(var _i=[],wi=[],hi=0;hi<ot.length;++hi){var Ei=this.glyphFor(ot[hi]),li=si.indexOf(Ei);li>=0?_i.push(li):(_i.push(si.length+wi.length),wi.push(Ei))}for(pn.writeShort(ot.length),hi=0;hi<_i.length;++hi)pn.writeShort(_i[hi]);for(hi=0;hi<wi.length;++hi)pn.writeByte(wi[hi].length),pn.writeString(wi[hi]);return pn.get()}}}(),I=function(){class si{constructor(_i,wi,hi){var zn=this;zn.platformID=_i.readShort(),zn.platformSpecificID=_i.readShort(),zn.offset=wi+_i.readLong(),_i.saveExcursion(function(){var Ei;switch(_i.offset(zn.offset),zn.format=_i.readShort(),zn.format){case 0:zn.length=_i.readShort(),zn.language=_i.readShort();for(var li=0;li<256;++li)hi[li]=_i.readByte();break;case 4:zn.length=_i.readShort(),zn.language=_i.readShort();var Xi=_i.readShort()/2;_i.skip(6);var ki=_i.times(Xi,_i.readShort);_i.skip(2);var bo=_i.times(Xi,_i.readShort),jo=_i.times(Xi,_i.readShort_),wn=_i.times(Xi,_i.readShort),Zi=(zn.length+zn.offset-_i.offset())/2,oo=_i.times(Zi,_i.readShort);for(li=0;li<Xi;++li){var Bi=bo[li],Xo=ki[li];for(Ei=Bi;Ei<=Xo;++Ei){var Lo;0===wn[li]?Lo=Ei+jo[li]:0!==(Lo=oo[wn[li]/2-(Xi-li)+(Ei-Bi)]||0)&&(Lo+=jo[li]),hi[Ei]=65535&Lo}}break;case 6:zn.length=_i.readShort(),zn.language=_i.readShort(),Ei=_i.readShort();for(var xr=_i.readShort();xr-- >0;)hi[Ei++]=_i.readShort();break;case 12:_i.readShort(),zn.length=_i.readLong(),zn.language=_i.readLong();for(var Nr=_i.readLong();Nr-- >0;){Ei=_i.readLong();for(var as=_i.readLong(),ji=_i.readLong();Ei<=as;)hi[Ei++]=ji++}break;default:window.console&&window.console.error("Unhandled CMAP format: "+zn.format)}})}}return class extends x{parse(pn){var _i=this,wi=_i.offset;pn.offset(wi),_i.codeMap={},_i.version=pn.readShort();var hi=pn.readShort();_i.tables=pn.times(hi,function(){return new si(pn,wi,_i.codeMap)})}static render(pn,_i){var wi=a();return wi.writeShort(0),wi.writeShort(1),wi.write(function ot(pn,_i){var wi=C(pn),hi=[],zn=[],Ei=null,li=null;function Xi(Gn){return _i[pn[Gn]]}for(var ki=0;ki<wi.length;++ki){var bo=wi[ki],wn=Xi(bo)-bo;(null==Ei||wn!==li)&&(Ei&&zn.push(Ei),hi.push(bo),li=wn),Ei=bo}Ei&&zn.push(Ei),zn.push(65535),hi.push(65535);var Zi=hi.length,oo=2*Zi,Bi=2*Math.pow(2,Math.floor(Math.log(Zi)/Math.LN2)),Xo=Math.log(Bi/2)/Math.LN2,Lo=oo-Bi,or=[],xr=[],Nr=[];for(ki=0;ki<Zi;++ki){var as=hi[ki],ji=zn[ki];if(65535==as){or.push(0),xr.push(0);break}var Fo=Xi(as);if(as-Fo>=32768){or.push(0),xr.push(2*(Nr.length+Zi-ki));for(var rt=as;rt<=ji;++rt)Nr.push(Xi(rt))}else or.push(Fo-as),xr.push(0)}var ai=a();return ai.writeShort(3),ai.writeShort(1),ai.writeLong(12),ai.writeShort(4),ai.writeShort(16+8*Zi+2*Nr.length),ai.writeShort(0),ai.writeShort(oo),ai.writeShort(Bi),ai.writeShort(Xo),ai.writeShort(Lo),zn.forEach(ai.writeShort),ai.writeShort(0),hi.forEach(ai.writeShort),or.forEach(ai.writeShort_),xr.forEach(ai.writeShort),Nr.forEach(ai.writeShort),ai.get()}(pn,_i)),wi.get()}}}();class L extends x{parse(ot){ot.offset(this.offset),this.version=ot.readShort(),this.averageCharWidth=ot.readShort_(),this.weightClass=ot.readShort(),this.widthClass=ot.readShort(),this.type=ot.readShort(),this.ySubscriptXSize=ot.readShort_(),this.ySubscriptYSize=ot.readShort_(),this.ySubscriptXOffset=ot.readShort_(),this.ySubscriptYOffset=ot.readShort_(),this.ySuperscriptXSize=ot.readShort_(),this.ySuperscriptYSize=ot.readShort_(),this.ySuperscriptXOffset=ot.readShort_(),this.ySuperscriptYOffset=ot.readShort_(),this.yStrikeoutSize=ot.readShort_(),this.yStrikeoutPosition=ot.readShort_(),this.familyClass=ot.readShort_(),this.panose=ot.times(10,ot.readByte),this.charRange=ot.times(4,ot.readLong),this.vendorID=ot.readString(4),this.selection=ot.readShort(),this.firstCharIndex=ot.readShort(),this.lastCharIndex=ot.readShort(),this.version>0&&(this.ascent=ot.readShort_(),this.descent=ot.readShort_(),this.lineGap=ot.readShort_(),this.winAscent=ot.readShort(),this.winDescent=ot.readShort(),this.codePageRange=ot.times(2,ot.readLong),this.version>1&&(this.xHeight=ot.readShort(),this.capHeight=ot.readShort(),this.defaultChar=ot.readShort(),this.breakChar=ot.readShort(),this.maxContext=ot.readShort()))}render(){return this.raw()}}var D=1e5;class P{constructor(ot){this.font=ot,this.subset={},this.unicodes={},this.ogid2ngid={0:0},this.ngid2ogid={0:0},this.ncid2ogid={},this.next=this.firstChar=1,this.nextGid=1,this.psName=function F(){for(var si="",ot=String(D),pn=0;pn<ot.length;++pn)si+=String.fromCharCode(ot.charCodeAt(pn)-48+65);return++D,si}()+"+"+this.font.psName}use(ot){var pn=this;if("string"==typeof ot)return function l(si){for(var wi,hi,ot=[],pn=0,_i=si.length;pn<_i;)(wi=si.charCodeAt(pn++))>=55296&&wi<=56319&&pn<_i?56320==(64512&(hi=si.charCodeAt(pn++)))?ot.push(((1023&wi)<<10)+(1023&hi)+65536):(ot.push(wi),pn--):ot.push(wi);return ot}(ot).reduce(function(zn,Ei){return zn+String.fromCharCode(pn.use(Ei))},"");var _i=pn.unicodes[ot];if(!_i){_i=pn.next++,pn.subset[_i]=ot,pn.unicodes[ot]=_i;var wi=pn.font.cmap.codeMap[ot];if(wi&&(pn.ncid2ogid[_i]=wi,null==pn.ogid2ngid[wi])){var hi=pn.nextGid++;pn.ogid2ngid[wi]=hi,pn.ngid2ogid[hi]=wi}}return _i}encodeText(ot){return this.use(ot)}glyphIds(){return C(this.ogid2ngid)}glyphsFor(ot,pn){pn||(pn={});for(var _i=0;_i<ot.length;++_i){var wi=ot[_i];if(!pn[wi]){var hi=pn[wi]=this.font.glyf.glyphFor(wi);hi&&hi.compound&&this.glyphsFor(hi.glyphIds,pn)}}return pn}render(){var ot=this.glyphsFor(this.glyphIds());for(var pn in ot)if(_(ot,pn)&&(pn=parseInt(pn,10),null==this.ogid2ngid[pn])){var _i=this.nextGid++;this.ogid2ngid[pn]=_i,this.ngid2ogid[_i]=pn}var hi=C(this.ngid2ogid).map(function(ki){return this.ngid2ogid[ki]},this),zn=this.font,Ei=zn.glyf.render(ot,hi,this.ogid2ngid),li=zn.loca.render(Ei.offsets);this.lastChar=this.next-1;var Xi={cmap:I.render(this.ncid2ogid,this.ogid2ngid),glyf:Ei.table,loca:li.table,hmtx:zn.hmtx.render(hi),hhea:zn.hhea.render(hi),maxp:zn.maxp.render(hi),post:zn.post.render(hi),name:zn.name.render(this.psName),head:zn.head.render(li.format),"OS/2":zn.os2.render()};return this.font.directory.render(Xi)}cidToGidMap(){for(var ot=a(),pn=0,_i=this.firstChar;_i<this.next;++_i){for(;pn<_i;)ot.writeShort(0),pn++;var wi=this.ncid2ogid[_i];ot.writeShort(wi?this.ogid2ngid[wi]:0),pn++}return ot.get()}}class O{constructor(ot,pn){var _i=this,wi=_i.contents=a(ot);if("ttcf"==wi.readString(4)){var hi;const li=function(){wi.offset(hi),_i.parse()};if(!pn)throw new Error("Must specify a name for TTC files");wi.readLong();for(var zn=wi.readLong(),Ei=0;Ei<zn;++Ei)if(hi=wi.readLong(),wi.saveExcursion(li),_i.psName==pn)return;throw new Error("Font "+pn+" not found in collection")}wi.offset(0),_i.parse()}parse(){var ot=this.directory=new R(this.contents);this.head=ot.readTable("head",f),this.loca=ot.readTable("loca",k),this.hhea=ot.readTable("hhea",w),this.maxp=ot.readTable("maxp",g),this.hmtx=ot.readTable("hmtx",M),this.glyf=ot.readTable("glyf",p),this.name=ot.readTable("name",E),this.post=ot.readTable("post",b),this.cmap=ot.readTable("cmap",I),this.os2=ot.readTable("OS/2",L),this.psName=this.name.postscriptName,this.ascent=this.os2.ascent||this.hhea.ascent,this.descent=this.os2.descent||this.hhea.descent,this.lineGap=this.os2.lineGap||this.hhea.lineGap,this.scale=1e3/this.head.unitsPerEm}widthOfGlyph(ot){return this.hmtx.forGlyph(ot).advance*this.scale}makeSubset(){return new P(this)}}const V=i(24769).Wt;var X=i(56905),me=i(31502);const J=e.Z.browser,Q="\n";var re=0;const de={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],executive:[521.86,756],folio:[612,936],legal:[612,1008],letter:[612,792],tabloid:[792,1224]};function te(){var si=0,ot=a();function pn(){for(var _i=0;_i<arguments.length;++_i){var wi=arguments[_i];if(void 0===wi)throw new Error("Cannot output undefined to PDF");if(wi instanceof dn)wi.beforeRender(pn),wi.render(pn);else if(Gt(wi))An(wi,pn);else if(Ut(wi))$n(wi,pn);else if("number"==typeof wi){if(isNaN(wi))throw new Error("Cannot output NaN to PDF");var hi=wi.toFixed(7);hi.indexOf(".")>=0&&(hi=hi.replace(/\.?0+$/,"")),"-0"==hi&&(hi="0"),ot.writeString(hi)}else/string|boolean/.test(typeof wi)?ot.writeString(String(wi)):"function"==typeof wi.get?ot.write(wi.get()):"object"==typeof wi&&(wi?pn(new Mi(wi)):ot.writeString("null"))}}return pn.writeData=function(_i){ot.write(_i)},pn.withIndent=function(_i){++si,_i(pn),--si},pn.indent=function(){pn(Q,xe("",2*si,"  ")),pn.apply(null,arguments)},pn.offset=function(){return ot.offset()},pn.toString=function(){throw new Error("FIX CALLER")},pn.get=function(){return ot.get()},pn.stream=function(){return ot},pn}function H(si){if("function"!=typeof si){var ot=si;si=function(wi,hi){return wi in ot?ot[wi]:hi}}var pn=si("paperSize",de.a4);if(!pn)return{};if("string"==typeof pn&&null==(pn=de[pn.toLowerCase()]))throw new Error("Unknown paper size");pn[0]=Wt(pn[0]),pn[1]=Wt(pn[1]),si("landscape",!1)&&(pn=[Math.max(pn[0],pn[1]),Math.min(pn[0],pn[1])]);var _i=si("margin");return _i&&(_i="string"==typeof _i||"number"==typeof _i?{left:_i=Wt(_i,0),top:_i,right:_i,bottom:_i}:{left:Wt(_i.left,0),top:Wt(_i.top,0),right:Wt(_i.right,0),bottom:Wt(_i.bottom,0)},si("addMargin")&&(pn[0]+=_i.left+_i.right,pn[1]+=_i.top+_i.bottom)),{paperSize:pn,margin:_i}}var z={"Times-Roman":!0,"Times-Bold":!0,"Times-Italic":!0,"Times-BoldItalic":!0,Helvetica:!0,"Helvetica-Bold":!0,"Helvetica-Oblique":!0,"Helvetica-BoldOblique":!0,Courier:!0,"Courier-Bold":!0,"Courier-Oblique":!0,"Courier-BoldOblique":!0,Symbol:!0,ZapfDingbats:!0},ne={};function _e(){ne={}}var Te=function Ce(si){return function(ot,pn){var _i=ot.length,wi=_i;if(0===_i)return pn();function hi(){0==--_i&&pn()}for(;wi-- >0;)si(ot[wi],hi)}}(function se(si,ot){var pn=z[si];pn?ot(pn):function q(si,ot){let pn;if(J.msie&&(pn=/^data:.*?;base64,/i.exec(si)))ot(function A(si){return window.atob?function d(si){const ot=window.atob(si),pn=new Uint8Array(ot.length);for(let _i=0;_i<ot.length;_i++)pn[_i]=ot.charCodeAt(_i);return pn}(si):function s(si){const ot=new Uint8Array(si.length);for(let pn=0;pn<si.length;pn++)ot[pn]=si[pn];return ot}(o.decode(si))}(si.substr(pn[0].length)));else{var wi=new XMLHttpRequest;wi.open("GET",si,!0),n&&(wi.responseType="arraybuffer"),wi.onload=function(){200==wi.status||304==wi.status?ot(n?new Uint8Array(wi.response):new window.VBArray(wi.responseBody).toArray()):_i()},wi.onerror=_i,wi.send(null)}function _i(){window.console&&(window.console.error?window.console.error("Cannot load URL: %s",si):window.console.log("Cannot load URL: %s",si)),ot(null)}}(si,function(_i){if(null==_i)throw new Error("Cannot load font from "+si);var wi=new O(_i);z[si]=wi,ot(wi)})}),De=function(si,ot,pn){pn=Object.assign({jpegQuality:.92,keepPNG:!1},pn);var _i=Object.keys(si),wi=_i.length;if(0===wi)return ot();function hi(){0==--wi&&ot()}_i.forEach(function(zn){!function ge(si,ot,pn,_i){var hi,zn,wi=ne[si];if(wi)pn(wi);else if(wi=new Image,/^data:/i.test(si)||(wi.crossOrigin="Anonymous"),n&&!/^data:/i.test(si)){var Ei=new XMLHttpRequest;Ei.onload=function(){if(zn=Ei.response,J.mozilla&&"image/svg+xml"==zn.type){let jo=new FileReader;jo.onload=function(){let Zi=(new window.DOMParser).parseFromString(this.result,"image/svg+xml").documentElement;if(Zi.getAttribute("width")&&Zi.getAttribute("height"))li(hi=URL.createObjectURL(zn));else{Zi.setAttribute("width",ot.width),Zi.setAttribute("height",ot.height);let oo=(new window.XMLSerializer).serializeToString(Zi);li(`data:image/svg+xml;base64,${(0,me.Z)(oo)}`)}},jo.readAsText(zn)}else li(hi=URL.createObjectURL(zn))},Ei.onerror=ki,Ei.open("GET",si,!0),Ei.responseType="blob",Ei.send()}else li(si);function li(jo){wi.src=jo,wi.complete&&!J.msie?bo.call(wi):(wi.onload=bo,wi.onerror=ki)}function Xi(){ot||(ot={width:wi.width,height:wi.height});var jo=document.createElement("canvas");jo.width=ot.width,jo.height=ot.height;var Zi,wn=jo.getContext("2d");wn.drawImage(wi,0,0,ot.width,ot.height);try{Zi=wn.getImageData(0,0,ot.width,ot.height)}catch{return void ki()}finally{hi&&URL.revokeObjectURL(hi)}for(var oo=!1,Bi=a(),Xo=a(),Lo=Zi.data,or=0;or<Lo.length;){Bi.writeByte(Lo[or++]),Bi.writeByte(Lo[or++]),Bi.writeByte(Lo[or++]);var xr=Lo[or++];xr<255&&(oo=!0),Xo.writeByte(xr)}if(oo||_i.keepPNG)wi=new Xt(ot.width,ot.height,Bi,Xo);else{var Nr=jo.toDataURL("image/jpeg",_i.jpegQuality);Nr=Nr.substr(Nr.indexOf(";base64,")+8);var as=a();as.writeBase64(Nr),wi=new Bn(as)}pn(ne[si]=wi)}function ki(){pn(ne[si]="ERROR")}function bo(){if(ot&&!(zn&&"image/svg+xml"===zn.type||/^data:image\/svg\+xml;/i.test(this.src.substring(0,19)))&&(ot.width>=wi.width||ot.height>=wi.height)&&(ot=null),!ot&&zn&&/^image\/jpe?g$/i.test(zn.type)){let jo=new FileReader;jo.onload=function(){try{let wn=new Bn(a(new Uint8Array(this.result)));URL.revokeObjectURL(hi),pn(ne[si]=wn)}catch{Xi()}},jo.readAsArrayBuffer(zn)}else Xi()}}(zn,si[zn],hi,pn)})};class fe{constructor(ot){var pn=this,_i=te(),wi=0,hi=[];function zn(ki,bo){return ot&&null!=ot[ki]?ot[ki]:bo}pn.getOption=zn,pn.attach=function(ki){return hi.indexOf(ki)<0&&(function j(si,ot){var pn=si.beforeRender,_i=si.render;si.beforeRender=function(){},si.render=function(wi){wi(ot," 0 R")},si.renderFull=function(wi){si._offset=wi.offset(),wi(ot," 0 obj "),pn.call(si,wi),_i.call(si,wi),wi(" endobj")}}(ki,++wi),hi.push(ki)),ki},pn.pages=[],pn.FONTS={},pn.IMAGES={},pn.GRAD_COL_FUNCTIONS={},pn.GRAD_OPC_FUNCTIONS={},pn.GRAD_COL={},pn.GRAD_OPC={};var Ei=pn.attach(new Eo),li=pn.attach(new Ko);if(zn("autoPrint")){let ki={};ki.JavaScript=new Mi({Names:[new sn("JS"),pn.attach(new Mi({S:nn("JavaScript"),JS:new sn("print(true);")}))]}),Ei.props.Names=new Mi(ki)}Ei.setPages(li);var Xi=pn.attach(new Mi({Producer:new sn(zn("producer","Kendo UI PDF Generator"),!0),Title:new sn(zn("title",""),!0),Author:new sn(zn("author",""),!0),Subject:new sn(zn("subject",""),!0),Keywords:new sn(zn("keywords",""),!0),Creator:new sn(zn("creator","Kendo UI PDF Generator"),!0),CreationDate:zn("date",new Date)}));pn.addPage=function(ki){var bo=H(function(or,xr){return ki&&null!=ki[or]?ki[or]:xr}),jo=bo.paperSize,wn=bo.margin,Zi=jo[0],oo=jo[1];wn&&(Zi-=wn.left+wn.right,oo-=wn.top+wn.bottom);var Bi=new mi(te(),null,!0),Xo={Contents:pn.attach(Bi),Parent:li,MediaBox:[0,0,jo[0],jo[1]]},Lo=new Mt(pn,Xo);return Lo._content=Bi,li.addPage(pn.attach(Lo)),Lo.transform(1,0,0,-1,0,jo[1]),wn&&(Lo.translate(wn.left,wn.top),Lo.rect(0,0,Zi,oo),Lo.clip()),pn.pages.push(Lo),Lo},pn.render=function(){var ki;for(_i("%PDF-1.4",Q,"%\xc2\xc1\xda\xcf\xce",Q,Q),ki=0;ki<hi.length;++ki)hi[ki].renderFull(_i),_i(Q,Q);var bo=_i.offset();for(_i("xref",Q,0," ",hi.length+1,Q),_i("0000000000 65535 f ",Q),ki=0;ki<hi.length;++ki)_i(Oe(hi[ki]._offset,10)," 00000 n ",Q);return _i(Q),_i("trailer",Q),_i(new Mi({Size:hi.length+1,Root:Ei,Info:Xi}),Q,Q),_i("startxref",Q,bo,Q),_i("%%EOF",Q),_i.stream().offset(0)},pn.loadFonts=Te,pn.loadImages=De}getFont(ot){var pn=this.FONTS[ot];if(!pn){if(!(pn=z[ot]))throw new Error("Font "+ot+" has not been loaded");pn=this.attach(!0===pn?new Ji(ot):new En(this,pn)),this.FONTS[ot]=pn}return pn}getImage(ot){var pn=this.IMAGES[ot];if(!pn){if(!(pn=ne[ot]))throw new Error("Image "+ot+" has not been loaded");if("ERROR"===pn)return null;pn=this.IMAGES[ot]=this.attach(pn.asStream(this))}return pn}getOpacityGS(ot,pn){var _i=parseFloat(ot).toFixed(3);ot=parseFloat(_i),_i+=pn?"S":"F";var wi=this._opacityGSCache||(this._opacityGSCache={}),hi=wi[_i];if(!hi){var zn={Type:nn("ExtGState")};pn?zn.CA=ot:zn.ca=ot,(hi=this.attach(new Mi(zn)))._resourceName=nn("GS"+ ++re),wi[_i]=hi}return hi}dict(ot){return new Mi(ot)}name(ot){return nn(ot)}stream(ot,pn){return new mi(pn,ot)}}function xe(si,ot,pn){for(;si.length<ot;)si=pn+si;return si}function Oe(si,ot){return xe(String(si),ot,"0")}function Le(si,ot){return Object.prototype.hasOwnProperty.call(si,ot)}var Gt=Array.isArray||function(si){return si instanceof Array};function Ut(si){return si instanceof Date}function An(si,ot){ot("["),si.length>0&&ot.withIndent(function(){for(var pn=0;pn<si.length;++pn)pn>0&&pn%8==0?ot.indent(si[pn]):ot(" ",si[pn])}),ot(" ]")}function $n(si,ot){ot("(D:",Oe(si.getUTCFullYear(),4),Oe(si.getUTCMonth()+1,2),Oe(si.getUTCDate(),2),Oe(si.getUTCHours(),2),Oe(si.getUTCMinutes(),2),Oe(si.getUTCSeconds(),2),"Z)")}function xn(si){return si*(72/25.4)}function mt(si){return xn(10*si)}function ut(si){return 72*si}function Wt(si,ot){if("number"==typeof si)return si;var pn;if("string"==typeof si&&(pn=/^\s*([0-9.]+)\s*(mm|cm|in|pt)\s*$/.exec(si))){var _i=parseFloat(pn[1]);if(!isNaN(_i))return"pt"==pn[2]?_i:{mm:xn,cm:mt,in:ut}[pn[2]](_i)}if(null!=ot)return ot;throw new Error("Can't parse unit: "+si)}class dn{beforeRender(){}}class sn extends dn{constructor(ot,pn){super(),this.value=ot,this.utf16be=!!pn}render(ot){let pn=this.value;if(this.utf16be)pn=X.aA+(0,X.FC)(pn),pn=pn.replace(/([\(\)\\])/g,"\\$1"),ot("(",pn,")");else{let wi=[40];for(var _i=0;_i<pn.length;++_i){let hi=255&pn.charCodeAt(_i);(40==hi||41==hi||92==hi)&&wi.push(92),wi.push(hi)}wi.push(41),ot.writeData(wi)}}toString(){return this.value}}class fn extends sn{constructor(ot){super(ot),this.value=ot}render(ot){ot("<");for(var pn=0;pn<this.value.length;++pn)ot(Oe(this.value.charCodeAt(pn).toString(16),4));ot(">")}}class yi extends dn{static get(ot){return nn(ot)}constructor(ot){super(),this.name=ot}render(ot){ot("/"+this.escape())}escape(){return this.name.replace(/[^\x21-\x7E]/g,function(ot){return"#"+Oe(ot.charCodeAt(0).toString(16),2)})}toString(){return this.name}}function nn(si){return new yi(si)}class Mi extends dn{constructor(ot){super(),this.props=ot}render(ot){var pn=this.props,_i=!0;ot("<<"),ot.withIndent(function(){for(var wi in pn)Le(pn,wi)&&!/^_/.test(wi)&&(_i=!1,ot.indent(nn(wi)," ",pn[wi]))}),_i||ot.indent(),ot(">>")}}class mi extends dn{constructor(ot,pn,_i){if(super(),"string"==typeof ot){var wi=a();wi.write(ot),ot=wi}this.data=ot,this.props=pn||{},this.compress=_i}render(ot){var pn=this.data.get(),_i=this.props;this.compress&&(_i.Filter?_i.Filter instanceof Array||(_i.Filter=[_i.Filter]):_i.Filter=[],_i.Filter.unshift(nn("FlateDecode")),pn=V(pn)),_i.Length=pn.length,ot(new Mi(_i)," stream",Q),ot.writeData(pn),ot(Q,"endstream")}}class Eo extends Mi{constructor(){super({Type:nn("Catalog")})}setPages(ot){this.props.Pages=ot}}class Ko extends Mi{constructor(){super({Type:nn("Pages"),Kids:[],Count:0})}addPage(ot){this.props.Kids.push(ot),this.props.Count++}}var xo=[192,193,194,195,197,198,199,201,202,203,205,206,207];class Bn{constructor(ot){var pn,_i,wi,hi;if(ot.offset(0),65496!=ot.readShort())throw new Error("Invalid JPEG image");for(;!ot.eof();){if(255!=ot.readByte())throw new Error("Invalid JPEG image");var li=ot.readByte(),Xi=ot.readShort();if(xo.indexOf(li)>=0){hi=ot.readByte(),_i=ot.readShort(),pn=ot.readShort(),wi=ot.readByte();break}ot.skip(Xi-2)}if(null==wi)throw new Error("Invalid JPEG image");var ki={Type:nn("XObject"),Subtype:nn("Image"),Width:pn,Height:_i,BitsPerComponent:hi,Filter:nn("DCTDecode")};switch(wi){case 1:ki.ColorSpace=nn("DeviceGray");break;case 3:ki.ColorSpace=nn("DeviceRGB");break;case 4:ki.ColorSpace=nn("DeviceCMYK"),ki.Decode=[1,0,1,0,1,0,1,0]}this.asStream=function(){ot.offset(0);var bo=new mi(ot,ki);return bo._resourceName=nn("I"+ ++re),bo}}}class Xt{constructor(ot,pn,_i,wi){this.asStream=function(hi){var zn=new mi(wi,{Type:nn("XObject"),Subtype:nn("Image"),Width:ot,Height:pn,BitsPerComponent:8,ColorSpace:nn("DeviceGray")},!0),Ei=new mi(_i,{Type:nn("XObject"),Subtype:nn("Image"),Width:ot,Height:pn,BitsPerComponent:8,ColorSpace:nn("DeviceRGB"),SMask:hi.attach(zn)},!0);return Ei._resourceName=nn("I"+ ++re),Ei}}}class Ji extends Mi{constructor(ot){super({Type:nn("Font"),Subtype:nn("Type1"),BaseFont:nn(ot)}),this._resourceName=nn("F"+ ++re)}encodeText(ot){return new sn(String(ot))}}class En extends Mi{constructor(ot,pn,_i){super({}),(_i=this.props).Type=nn("Font"),_i.Subtype=nn("Type0"),_i.Encoding=nn("Identity-H"),this._pdf=ot,this._font=pn,this._sub=pn.makeSubset(),this._resourceName=nn("F"+ ++re);var wi=pn.head;this.name=pn.psName;var hi=this.scale=pn.scale;this.bbox=[wi.xMin*hi,wi.yMin*hi,wi.xMax*hi,wi.yMax*hi],this.italicAngle=pn.post.italicAngle,this.ascent=pn.ascent*hi,this.descent=pn.descent*hi,this.lineGap=pn.lineGap*hi,this.capHeight=pn.os2.capHeight||this.ascent,this.xHeight=pn.os2.xHeight||0,this.stemV=0,this.familyClass=(pn.os2.familyClass||0)>>8,this.isSerif=this.familyClass>=1&&this.familyClass<=7,this.isScript=10==this.familyClass,this.flags=(pn.post.isFixedPitch?1:0)|(this.isSerif?2:0)|(this.isScript?8:0)|(0!==this.italicAngle?64:0)|32}encodeText(ot){return new fn(this._sub.encodeText(String(ot)))}getTextWidth(ot,pn){for(var _i=0,wi=this._font.cmap.codeMap,hi=0;hi<pn.length;++hi){var zn=wi[pn.charCodeAt(hi)];_i+=this._font.widthOfGlyph(zn||0)}return _i*ot/1e3}beforeRender(){var ot=this,pn=ot._sub,_i=pn.render(),wi=new mi(a(_i),{Length1:_i.length},!0),hi=ot._pdf.attach(new Mi({Type:nn("FontDescriptor"),FontName:nn(ot._sub.psName),FontBBox:ot.bbox,Flags:ot.flags,StemV:ot.stemV,ItalicAngle:ot.italicAngle,Ascent:ot.ascent,Descent:ot.descent,CapHeight:ot.capHeight,XHeight:ot.xHeight,FontFile2:ot._pdf.attach(wi)})),zn=pn.ncid2ogid,Ei=pn.firstChar,li=pn.lastChar,Xi=[];!function Zi(oo,Bi){if(oo<=li){var Xo=zn[oo];null==Xo?Zi(oo+1):(Bi||Xi.push(oo,Bi=[]),Bi.push(ot._font.widthOfGlyph(Xo)),Zi(oo+1,Bi))}}(Ei);var ki=new Mi({Type:nn("Font"),Subtype:nn("CIDFontType2"),BaseFont:nn(ot._sub.psName),CIDSystemInfo:new Mi({Registry:new sn("Adobe"),Ordering:new sn("Identity"),Supplement:0}),FontDescriptor:hi,FirstChar:Ei,LastChar:li,DW:Math.round(ot._font.widthOfGlyph(0)),W:Xi,CIDToGIDMap:ot._pdf.attach(ot._makeCidToGidMap())}),bo=ot.props;bo.BaseFont=nn(ot._sub.psName),bo.DescendantFonts=[ot._pdf.attach(ki)];var jo=new un(Ei,li,pn.subset),wn=new mi(te(),null,!0);wn.data(jo),bo.ToUnicode=ot._pdf.attach(wn)}_makeCidToGidMap(){return new mi(a(this._sub.cidToGidMap()),null,!0)}}class un extends dn{constructor(ot,pn,_i){super(),this.firstChar=ot,this.lastChar=pn,this.map=_i}render(ot){ot.indent("/CIDInit /ProcSet findresource begin"),ot.indent("12 dict begin"),ot.indent("begincmap"),ot.indent("/CIDSystemInfo <<"),ot.indent("  /Registry (Adobe)"),ot.indent("  /Ordering (UCS)"),ot.indent("  /Supplement 0"),ot.indent(">> def"),ot.indent("/CMapName /Adobe-Identity-UCS def"),ot.indent("/CMapType 2 def"),ot.indent("1 begincodespacerange"),ot.indent("  <0000><ffff>"),ot.indent("endcodespacerange");var pn=this;ot.indent(pn.lastChar-pn.firstChar+1," beginbfchar"),ot.withIndent(function(){for(var _i=pn.firstChar;_i<=pn.lastChar;++_i){var hi=u([pn.map[_i]]);ot.indent("<",Oe(_i.toString(16),4),">","<");for(var zn=0;zn<hi.length;++zn)ot(Oe(hi.charCodeAt(zn).toString(16),4));ot(">")}}),ot.indent("endbfchar"),ot.indent("endcmap"),ot.indent("CMapName currentdict /CMap defineresource pop"),ot.indent("end"),ot.indent("end")}}function Ki(si){return si.map(function(ot){return Gt(ot)?Ki(ot):"number"==typeof ot?(Math.round(1e3*ot)/1e3).toFixed(3):ot}).join(" ")}function Fn(si,ot,pn,_i,wi,hi,zn){var Ei=Ki([ot,pn,_i,wi,hi,zn]),li=si.GRAD_COL_FUNCTIONS[Ei];return li||(li=si.GRAD_COL_FUNCTIONS[Ei]=si.attach(new Mi({FunctionType:2,Domain:[0,1],Range:[0,1,0,1,0,1],N:1,C0:[ot,pn,_i],C1:[wi,hi,zn]}))),li}function oi(si,ot,pn){var _i=Ki([ot,pn]),wi=si.GRAD_OPC_FUNCTIONS[_i];return wi||(wi=si.GRAD_OPC_FUNCTIONS[_i]=si.attach(new Mi({FunctionType:2,Domain:[0,1],Range:[0,1],N:1,C0:[ot],C1:[pn]}))),wi}class Mt extends Mi{constructor(ot,pn){super(pn),this._pdf=ot,this._rcount=0,this._textMode=!1,this._fontResources={},this._gsResources={},this._xResources={},this._patResources={},this._shResources={},this._opacity=1,this._matrix=[1,0,0,1,0,0],this._annotations=[],this._font=null,this._fontSize=null,this._contextStack=[],(pn=this.props).Type=nn("Page"),pn.ProcSet=[nn("PDF"),nn("Text"),nn("ImageB"),nn("ImageC"),nn("ImageI")],pn.Resources=new Mi({Font:new Mi(this._fontResources),ExtGState:new Mi(this._gsResources),XObject:new Mi(this._xResources),Pattern:new Mi(this._patResources),Shading:new Mi(this._shResources)}),pn.Annots=this._annotations}_out(){this._content.data.apply(null,arguments)}transform(ot,pn,_i,wi,hi,zn){(function Pi(si){return 1===si[0]&&0===si[1]&&0===si[2]&&1===si[3]&&0===si[4]&&0===si[5]})(arguments)||(this._matrix=function jn(si,ot){var pn=si[0],_i=si[1],wi=si[2],hi=si[3],zn=si[4],Ei=si[5],li=ot[0],Xi=ot[1],ki=ot[2],bo=ot[3];return[pn*li+_i*ki,pn*Xi+_i*bo,wi*li+hi*ki,wi*Xi+hi*bo,zn*li+Ei*ki+ot[4],zn*Xi+Ei*bo+ot[5]]}(arguments,this._matrix),this._out(ot," ",pn," ",_i," ",wi," ",hi," ",zn," cm"),this._out(Q))}translate(ot,pn){this.transform(1,0,0,1,ot,pn)}scale(ot,pn){this.transform(ot,0,0,pn,0,0)}rotate(ot){var pn=Math.cos(ot),_i=Math.sin(ot);this.transform(pn,_i,-_i,pn,0,0)}beginText(){this._textMode=!0,this._out("BT",Q)}endText(){this._textMode=!1,this._out("ET",Q)}_requireTextMode(){if(!this._textMode)throw new Error("Text mode required; call page.beginText() first")}_requireFont(){if(!this._font)throw new Error("No font selected; call page.setFont() first")}setFont(ot,pn){this._requireTextMode(),null==ot?ot=this._font:ot instanceof En||(ot=this._pdf.getFont(ot)),null==pn&&(pn=this._fontSize),this._fontResources[ot._resourceName]=ot,this._font=ot,this._fontSize=pn,this._out(ot._resourceName," ",pn," Tf",Q)}setTextLeading(ot){this._requireTextMode(),this._out(ot," TL",Q)}setTextRenderingMode(ot){this._requireTextMode(),this._out(ot," Tr",Q)}showText(ot,pn){if(this._requireFont(),ot.length>1&&pn&&this._font instanceof En){var _i=this._font.getTextWidth(this._fontSize,ot);this._out(pn/_i*100," Tz ")}this._out(this._font.encodeText(ot)," Tj",Q)}showTextNL(ot){this._requireFont(),this._out(this._font.encodeText(ot)," '",Q)}addLink(ot,pn){var _i=this._toPage({x:pn.left,y:pn.bottom}),wi=this._toPage({x:pn.right,y:pn.top});this._annotations.push(new Mi({Type:nn("Annot"),Subtype:nn("Link"),Rect:[_i.x,_i.y,wi.x,wi.y],Border:[0,0,0],A:new Mi({Type:nn("Action"),S:nn("URI"),URI:new sn(ot)})}))}setStrokeColor(ot,pn,_i){this._out(ot," ",pn," ",_i," RG",Q)}setOpacity(ot){this.setFillOpacity(ot),this.setStrokeOpacity(ot),this._opacity*=ot}setStrokeOpacity(ot){if(ot<1){var pn=this._pdf.getOpacityGS(this._opacity*ot,!0);this._gsResources[pn._resourceName]=pn,this._out(pn._resourceName," gs",Q)}}setFillColor(ot,pn,_i){this._out(ot," ",pn," ",_i," rg",Q)}setFillOpacity(ot){if(ot<1){var pn=this._pdf.getOpacityGS(this._opacity*ot,!1);this._gsResources[pn._resourceName]=pn,this._out(pn._resourceName," gs",Q)}}gradient(ot,pn){this.save(),this.rect(pn.left,pn.top,pn.width,pn.height),this.clip(),ot.userSpace||this.transform(pn.width,0,0,pn.height,pn.left,pn.top);var hi,_i=function wt(si,ot,pn){var _i="radial"==ot.type,wi=function It(si,ot){var Ei,Xi,ki,bo,pn=!1,_i=[],wi=[],hi=[],zn=[];for(Ei=1;Ei<ot.length;++Ei)wi.push(Fn(si,(ki=ot[Ei-1].color).r,ki.g,ki.b,(bo=(Xi=ot[Ei]).color).r,bo.g,bo.b)),(ki.a<1||bo.a<1)&&(pn=!0),hi.push(Xi.offset),zn.push(0,1);if(pn)for(Ei=1;Ei<ot.length;++Ei)_i.push(oi(si,(ki=ot[Ei-1].color).a,(bo=(Xi=ot[Ei]).color).a));return hi.pop(),{hasAlpha:pn,colors:jo(wi),opacities:pn?jo(_i):null};function jo(wn){return 1==wn.length?wn[0]:{FunctionType:3,Functions:wn,Domain:[0,1],Bounds:hi,Encode:zn}}}(si,ot.stops),hi=_i?[ot.start.x,ot.start.y,ot.start.r,ot.end.x,ot.end.y,ot.end.r]:[ot.start.x,ot.start.y,ot.end.x,ot.end.y],zn=function Bt(si,ot,pn,_i,wi,hi){var zn,Ei;if(!hi){var li=[ot].concat(_i);pn.forEach(function(Xi){li.push(Xi.offset,Xi.color.r,Xi.color.g,Xi.color.b)}),Ei=Ki(li),zn=si.GRAD_COL[Ei]}return zn||(zn=new Mi({Type:nn("Shading"),ShadingType:ot?3:2,ColorSpace:nn("DeviceRGB"),Coords:_i,Domain:[0,1],Function:wi,Extend:[!0,!0]}),si.attach(zn),zn._resourceName="S"+ ++re,Ei&&(si.GRAD_COL[Ei]=zn)),zn}(si,_i,ot.stops,hi,wi.colors,ot.userSpace&&pn),Ei=wi.hasAlpha?function xt(si,ot,pn,_i,wi,hi){var zn,Ei;if(!hi){var li=[ot].concat(_i);pn.forEach(function(Xi){li.push(Xi.offset,Xi.color.a)}),Ei=Ki(li),zn=si.GRAD_OPC[Ei]}return zn||(zn=new Mi({Type:nn("ExtGState"),AIS:!1,CA:1,ca:1,SMask:{Type:nn("Mask"),S:nn("Luminosity"),G:si.attach(new mi("/a0 gs /s0 sh",{Type:nn("XObject"),Subtype:nn("Form"),FormType:1,BBox:hi?[hi.left,hi.top+hi.height,hi.left+hi.width,hi.top]:[0,1,1,0],Group:{Type:nn("Group"),S:nn("Transparency"),CS:nn("DeviceGray"),I:!0},Resources:{ExtGState:{a0:{CA:1,ca:1}},Shading:{s0:{ColorSpace:nn("DeviceGray"),Coords:_i,Domain:[0,1],ShadingType:ot?3:2,Function:wi,Extend:[!0,!0]}}}}))}}),si.attach(zn),zn._resourceName="O"+ ++re,Ei&&(si.GRAD_OPC[Ei]=zn)),zn}(si,_i,ot.stops,hi,wi.opacities,ot.userSpace&&pn):null;return{hasAlpha:wi.hasAlpha,shading:zn,opacity:Ei}}(this._pdf,ot,pn),wi=_i.shading._resourceName;this._shResources[wi]=_i.shading,_i.hasAlpha&&(this._gsResources[hi=_i.opacity._resourceName]=_i.opacity,this._out("/"+hi+" gs ")),this._out("/"+wi+" sh",Q),this.restore()}setDashPattern(ot,pn){this._out(ot," ",pn," d",Q)}setLineWidth(ot){this._out(ot," w",Q)}setLineCap(ot){this._out(ot," J",Q)}setLineJoin(ot){this._out(ot," j",Q)}setMitterLimit(ot){this._out(ot," M",Q)}save(){this._contextStack.push(this._context()),this._out("q",Q)}restore(){this._out("Q",Q),this._context(this._contextStack.pop())}moveTo(ot,pn){this._out(ot," ",pn," m",Q)}lineTo(ot,pn){this._out(ot," ",pn," l",Q)}bezier(ot,pn,_i,wi,hi,zn){this._out(ot," ",pn," ",_i," ",wi," ",hi," ",zn," c",Q)}bezier1(ot,pn,_i,wi){this._out(ot," ",pn," ",_i," ",wi," y",Q)}bezier2(ot,pn,_i,wi){this._out(ot," ",pn," ",_i," ",wi," v",Q)}close(){this._out("h",Q)}rect(ot,pn,_i,wi){this._out(ot," ",pn," ",_i," ",wi," re",Q)}ellipse(ot,pn,_i,wi){function hi(li){return ot+li}function zn(li){return pn+li}var Ei=.5522847498307936;this.moveTo(hi(0),zn(wi)),this.bezier(hi(_i*Ei),zn(wi),hi(_i),zn(wi*Ei),hi(_i),zn(0)),this.bezier(hi(_i),zn(-wi*Ei),hi(_i*Ei),zn(-wi),hi(0),zn(-wi)),this.bezier(hi(-_i*Ei),zn(-wi),hi(-_i),zn(-wi*Ei),hi(-_i),zn(0)),this.bezier(hi(-_i),zn(wi*Ei),hi(-_i*Ei),zn(wi),hi(0),zn(wi))}circle(ot,pn,_i){this.ellipse(ot,pn,_i,_i)}stroke(){this._out("S",Q)}nop(){this._out("n",Q)}clip(){this._out("W n",Q)}clipStroke(){this._out("W S",Q)}closeStroke(){this._out("s",Q)}fill(){this._out("f",Q)}fillStroke(){this._out("B",Q)}drawImage(ot){var pn=this._pdf.getImage(ot);pn&&(this._xResources[pn._resourceName]=pn,this._out(pn._resourceName," Do",Q))}comment(ot){var pn=this;ot.split(/\r?\n/g).forEach(function(_i){pn._out("% ",_i,Q)})}_context(ot){if(null==ot)return{opacity:this._opacity,matrix:this._matrix};this._opacity=ot.opacity,this._matrix=ot.matrix}_toPage(ot){var pn=this._matrix;return{x:pn[0]*ot.x+pn[2]*ot.y+pn[4],y:pn[1]*ot.x+pn[3]*ot.y+pn[5]}}}function pt(si){return si.replace(/^\s*(['"])(.*)\1\s*$/,"$2")}function Lt(si){var pn=/^\s*((normal|italic)\s+)?((normal|small-caps)\s+)?((normal|bold|\d+)\s+)?(([0-9.]+)(px|pt))(\/(([0-9.]+)(px|pt)|normal))?\s+(.*?)\s*$/i.exec(si);if(!pn)return{fontSize:12,fontFamily:"sans-serif"};var _i=pn[8]?parseInt(pn[8],10):12;return{italic:pn[2]&&"italic"==pn[2].toLowerCase(),variant:pn[4],bold:pn[6]&&/bold|700/i.test(pn[6]),fontSize:_i,lineHeight:pn[12]?"normal"==pn[12]?_i:parseInt(pn[12],10):null,fontFamily:pn[14].split(/\s*,\s*/g).map(pt)}}function tt(si){var _i,wi,zn,pn=si.fontFamily;if(pn instanceof Array)for(var hi=0;hi<pn.length&&(zn=pn[hi],si.bold&&(zn+="|bold"),si.italic&&(zn+="|italic"),_i=zn.toLowerCase(),!(wi=Ne[_i]));++hi);else wi=Ne[pn.toLowerCase()];for(;"function"==typeof wi;)wi=wi();return wi||(wi="Times-Roman"),wi}var Ne={serif:"Times-Roman","serif|bold":"Times-Bold","serif|italic":"Times-Italic","serif|bold|italic":"Times-BoldItalic","sans-serif":"Helvetica","sans-serif|bold":"Helvetica-Bold","sans-serif|italic":"Helvetica-Oblique","sans-serif|bold|italic":"Helvetica-BoldOblique",monospace:"Courier","monospace|bold":"Courier-Bold","monospace|italic":"Courier-Oblique","monospace|bold|italic":"Courier-BoldOblique",zapfdingbats:"ZapfDingbats","zapfdingbats|bold":"ZapfDingbats","zapfdingbats|italic":"ZapfDingbats","zapfdingbats|bold|italic":"ZapfDingbats"};function vt(si,ot){si=si.toLowerCase(),Ne[si]=function(){return Ne[ot]},Ne[si+"|bold"]=function(){return Ne[ot+"|bold"]},Ne[si+"|italic"]=function(){return Ne[ot+"|italic"]},Ne[si+"|bold|italic"]=function(){return Ne[ot+"|bold|italic"]}}function ln(si,ot){if(1==arguments.length)for(var pn in si)Le(si,pn)&&ln(pn,si[pn]);else switch(si=si.toLowerCase(),Ne[si]=ot,si){case"dejavu sans":Ne["sans-serif"]=ot;break;case"dejavu sans|bold":Ne["sans-serif|bold"]=ot;break;case"dejavu sans|italic":Ne["sans-serif|italic"]=ot;break;case"dejavu sans|bold|italic":Ne["sans-serif|bold|italic"]=ot;break;case"dejavu serif":Ne.serif=ot;break;case"dejavu serif|bold":Ne["serif|bold"]=ot;break;case"dejavu serif|italic":Ne["serif|italic"]=ot;break;case"dejavu serif|bold|italic":Ne["serif|bold|italic"]=ot;break;case"dejavu mono":Ne.monospace=ot;break;case"dejavu mono|bold":Ne["monospace|bold"]=ot;break;case"dejavu mono|italic":Ne["monospace|italic"]=ot;break;case"dejavu mono|bold|italic":Ne["monospace|bold|italic"]=ot}}vt("Times New Roman","serif"),vt("Courier New","monospace"),vt("Arial","sans-serif"),vt("Helvetica","sans-serif"),vt("Verdana","sans-serif"),vt("Tahoma","sans-serif"),vt("Georgia","sans-serif"),vt("Monaco","monospace"),vt("Andale Mono","monospace");const go={fill:0,stroke:1,fillAndStroke:2,invisible:3,fillAndClip:4,strokeAndClip:5,fillStrokeClip:6,clip:7}},14295:(he,y,i)=>{"use strict";i.d(y,{F_:()=>H});var e=i(97296),n=i(31462),o=i(67118),a=i(44096),l=i(39632),u=i(38689),d=i(37690),s=i(11255),A=i(3897);const _=300,C=o.Q$,R={dash:[4],dashDot:[4,2,1,2],dot:[1,2],longDash:[8,2],longDashDot:[8,2,1,2],longDashDotDot:[8,2,1,2,1,2],solid:[]},x={butt:0,round:1,square:2},f={miter:0,round:1,bevel:2};function k(q,se){var ne=[],_e={},ge=q.options;function Ce(Oe,Le,Gt){return Gt||(Gt=ge),Gt.pdf&&null!=Gt.pdf[Oe]?Gt.pdf[Oe]:Le}var Te=Ce("multiPage"),De=Ce("imgDPI",_);function fe(){if(!(--xe>0)){var Oe=new o.BB({producer:Ce("producer"),title:Ce("title"),author:Ce("author"),subject:Ce("subject"),keywords:Ce("keywords"),creator:Ce("creator"),date:Ce("date"),autoPrint:Ce("autoPrint")});Te?q.children.forEach(Le):Le(q),se(Oe.render(),Oe)}function Le(Gt){var Ut=Gt.options,An=function j(q){var ge,se=!1,ne=s.Z.unit(),_e=null;do{ge=!1,q=Oe(q)}while(q&&ge);return{root:q,bbox:_e};function Ce(Le){return ge=!0,Le}function Te(Le){return Le.visible()&&Le.opacity()>0&&(D(Le.fill())||D(Le.stroke()))}function De(Le){for(var Gt=[],Ut=0;Ut<Le.length;++Ut){var An=Oe(Le[Ut]);null!=An&&Gt.push(An)}return Gt}function Oe(Le){return function fe(Le,Gt){var Ut=se,An=ne;Le.transform()&&(ne=ne.multiplyCopy(Le.transform().matrix()));var $n=Le.clip();$n&&($n=$n.bbox())&&($n=$n.bbox(ne),se=se?A.Z.intersect(se,$n):$n);try{return Gt()}finally{se=Ut,ne=An}}(Le,function(){if(!(Le instanceof a.Z||Le instanceof d.w)){var Gt=function xe(Le){if(null==se)return!1;var Gt=Le.rawBBox().bbox(ne);return se&&Gt&&(Gt=A.Z.intersect(Gt,se)),Gt}(Le);if(!Gt)return Ce(null);_e=_e?A.Z.union(_e,Gt):Gt}return p({Path:function(Ut){return 0!==Ut.segments.length&&Te(Ut)?Ut:Ce(null)},MultiPath:function(Ut){if(!Te(Ut))return Ce(null);var An=new d.w(Ut.options);return An.paths=De(Ut.paths),0===An.paths.length?Ce(null):An},Circle:function(Ut){return Te(Ut)?Ut:Ce(null)},Arc:function(Ut){return Te(Ut)?Ut:Ce(null)},Text:function(Ut){return/\S/.test(Ut.content())&&Te(Ut)?Ut:Ce(null)},Image:function(Ut){return Ut.visible()&&Ut.opacity()>0?Ut:Ce(null)},Group:function(Ut){if(!(Ut.visible()&&Ut.opacity()>0))return Ce(null);var An=new a.Z(Ut.options);return An.children=De(Ut.children),An._pdfLink=Ut._pdfLink,Ut===q||0!==An.children.length||Ut._pdfLink?An:Ce(null)},Rect:function(Ut){return Te(Ut)?Ut:Ce(null)}},Le)})}}(Gt),$n=An.bbox;Gt=An.root;var xn=Ce("paperSize",Ce("paperSize","auto"),Ut),mt=!1;if("auto"==xn)if($n){var ut=$n.getSize();xn=[ut.width,ut.height],mt=!0;var Wt=$n.getOrigin();(An=new a.Z).transform(new s.Z(1,0,0,1,-Wt.x,-Wt.y)),An.append(Gt),Gt=An}else xn="A4";E(Gt,Oe.addPage({paperSize:xn,margin:Ce("margin",Ce("margin"),Ut),addMargin:mt,landscape:Ce("landscape",Ce("landscape",!1),Ut)}),Oe)}}o.qL(),q.traverse(function(Oe){p({Image:function(Le){var Gt=Le.src(),Ut=Le.bbox().size;if(De){var An=_e[Gt];Ut={width:Math.ceil(Ut.width*De/72),height:Math.ceil(Ut.height*De/72)},An&&(Ut.width=Math.max(An.width,Ut.width),Ut.height=Math.max(An.height,Ut.height))}_e[Gt]=Ut},Text:function(Le){var Gt=o.$h(Le.options.font),Ut=o.VI(Gt);ne.indexOf(Ut)<0&&ne.push(Ut)}},Oe)});var xe=2;o.hR(ne,fe),o.lL(_e,fe,{jpegQuality:Ce("jpegQuality",.92),keepPNG:Ce("keepPNG",!1)})}function p(q,se){var ne=q[se.nodeType];return ne?ne.call.apply(ne,arguments):se}function E(q,se,ne){q.options._pdfDebug&&se.comment("BEGIN: "+q.options._pdfDebug);var _e=q.transform(),ge=q.opacity();if(se.save(),null!=ge&&ge<1&&se.setOpacity(ge),function b(q,se){var ne=q.stroke&&q.stroke();if(ne){var _e=ne.color;if(_e){if(null==(_e=te(_e)))return;se.setStrokeColor(_e.r,_e.g,_e.b),1!=_e.a&&se.setStrokeOpacity(_e.a)}var ge=ne.width;if(null!=ge){if(0===ge)return;se.setLineWidth(ge)}var Ce=ne.dashType;Ce&&se.setDashPattern(R[Ce],0);var Te=ne.lineCap;Te&&se.setLineCap(x[Te]);var De=ne.lineJoin;De&&se.setLineJoin(f[De]);var fe=ne.opacity;null!=fe&&se.setStrokeOpacity(fe)}}(q,se),function I(q,se){var ne=q.fill&&q.fill();if(ne&&!(ne instanceof l.Z)){var _e=ne.color;if(_e){if(null==(_e=te(_e)))return;se.setFillColor(_e.r,_e.g,_e.b),1!=_e.a&&se.setFillOpacity(_e.a)}var ge=ne.opacity;null!=ge&&se.setFillOpacity(ge)}}(q,se),_e){var Ce=_e.matrix();se.transform(Ce.a,Ce.b,Ce.c,Ce.d,Ce.e,Ce.f)}(function L(q,se,ne){var _e=q.clip();_e&&(U(_e,se),se.clip())})(q,se),p({Path:V,MultiPath:K,Circle:X,Arc:me,Text:J,Image:re,Group:Q,Rect:de},q,se,ne),se.restore(),q.options._pdfDebug&&se.comment("END: "+q.options._pdfDebug)}function D(q){return q&&(q instanceof l.Z||q.color&&!/^(none|transparent)$/i.test(q.color)&&(null==q.width||q.width>0)&&(null==q.opacity||q.opacity>0))}function F(q,se,ne,_e){var ge=q.fill();if(ge instanceof l.Z){_e?se.clipStroke():se.clip();var Te,De,Ce=ge instanceof u.Z;Ce?(Te={x:ge.center().x,y:ge.center().y,r:0},De={x:ge.center().x,y:ge.center().y,r:ge.radius()}):(Te={x:ge.start().x,y:ge.start().y},De={x:ge.end().x,y:ge.end().y});var fe=ge.stops.elements().map(function(Ut){var An=Ut.offset();An=/%$/.test(An)?parseFloat(An)/100:parseFloat(An);var $n=te(Ut.color());return $n.a*=Ut.opacity(),{offset:An,color:$n}});fe.unshift(fe[0]),fe.push(fe[fe.length-1]);var xe={userSpace:ge.userSpace(),type:Ce?"radial":"linear",start:Te,end:De,stops:fe},Oe=q.rawBBox(),Le=Oe.topLeft(),Gt=Oe.getSize();return se.gradient(xe,Oe={left:Le.x,top:Le.y,width:Gt.width,height:Gt.height}),!0}}function P(q,se,ne){D(q.fill())&&D(q.stroke())?F(q,se,0,!0)||se.fillStroke():D(q.fill())?F(q,se,0,!1)||se.fill():D(q.stroke())?se.stroke():se.nop()}function U(q,se,ne){var _e=q.segments;if(0!==_e.length&&!function O(q,se){var ne=q.segments;if(4==ne.length&&q.options.closed){for(var _e=[],ge=0;ge<ne.length;++ge){if(ne[ge].controlIn())return!1;_e[ge]=ne[ge].anchor()}if(_e[0].y==_e[1].y&&_e[1].x==_e[2].x&&_e[2].y==_e[3].y&&_e[3].x==_e[0].x||_e[0].x==_e[1].x&&_e[1].y==_e[2].y&&_e[2].x==_e[3].x&&_e[3].y==_e[0].y)return se.rect(_e[0].x,_e[0].y,_e[2].x-_e[0].x,_e[2].y-_e[0].y),!0}}(q,se)){for(var ge,Ce=0;Ce<_e.length;++Ce){var Te=_e[Ce],De=Te.anchor();if(ge){var fe=ge.controlOut(),xe=Te.controlIn();fe&&xe?se.bezier(fe.x,fe.y,xe.x,xe.y,De.x,De.y):se.lineTo(De.x,De.y)}else se.moveTo(De.x,De.y);ge=Te}q.options.closed&&se.close()}}function V(q,se,ne){U(q,se),P(q,se)}function K(q,se,ne){for(var _e=q.paths,ge=0;ge<_e.length;++ge)U(_e[ge],se);P(q,se)}function X(q,se,ne){var _e=q.geometry();se.circle(_e.center.x,_e.center.y,_e.radius),P(q,se)}function me(q,se,ne){var _e=q.geometry().curvePoints();se.moveTo(_e[0].x,_e[0].y);for(var ge=1;ge<_e.length;)se.bezier(_e[ge].x,_e[ge++].y,_e[ge].x,_e[ge++].y,_e[ge].x,_e[ge++].y);P(q,se)}function J(q,se){var ge,ne=o.$h(q.options.font),_e=q._position;se.transform(1,0,0,-1,_e.x,_e.y+ne.fontSize);const Ce=Te=>{se.beginText(),se.setFont(o.VI(ne),ne.fontSize),se.setTextRenderingMode(Te),se.showText(q.content(),q._pdfRect?q._pdfRect.width():null)};q.fill()&&q.stroke()?(ge=C.fillAndStroke,"stroke"===q.options.paintOrder&&(Ce(C.stroke),ge=C.fill)):q.fill()?ge=C.fill:q.stroke()&&(ge=C.stroke),Ce(ge),se.endText()}function Q(q,se,ne){q._pdfLink&&se.addLink(q._pdfLink.url,q._pdfLink);for(var _e=q.children,ge=0;ge<_e.length;++ge)E(_e[ge],se,ne)}function re(q,se){var ne=q.src();if(ne){var _e=q.rect(),ge=_e.getOrigin(),Ce=_e.getSize();se.transform(Ce.width,0,0,-Ce.height,ge.x,ge.y+Ce.height),se.drawImage(ne)}}function de(q,se,ne){var _e=q.geometry();const[ge,Ce]=_e.cornerRadius;0===ge&&0===Ce?(se.rect(_e.origin.x,_e.origin.y,_e.size.width,_e.size.height),P(q,se)):V(d.y.fromRect(_e,q.options),se)}function te(q){var se=(0,n.ZP)(q,!0);return se?se.toRGB():null}function H(q,se){var ne=(0,e.Z)();for(var _e in se)"margin"==_e&&q.options.pdf&&q.options.pdf._ignoreMargin||q.options.set("pdf."+_e,se[_e]);return function w(q,se){k(q,function(ne){se("data:application/pdf;base64,"+ne.base64())})}(q,ne.resolve),ne}},2869:(he,y,i)=>{"use strict";i.d(y,{Z:()=>A});var e=i(27128),n=i(23776),o=i(26082),a=i(63424),l=i(46643),u=i(10409);class s extends((0,n.Z)((0,o.Z)((0,a.Z)(l.Z)))){get nodeType(){return"Circle"}constructor(C=new e.Z,R={}){super(R),this.geometry(C),(0,u.Z)(this.options.stroke)||this.stroke("#000")}rawBBox(){return this._geometry.bbox()}_bbox(C){return this._geometry.bbox(C)}_containsPoint(C){return this.geometry().containsPoint(C)}_isOnPath(C){return this.geometry()._isOnPath(C,this.options.stroke.width/2)}}const A=s},46643:(he,y,i)=>{"use strict";i.d(y,{Z:()=>R});var e=i(75429),n=i(3897),o=i(11255),a=i(27229),l=i(62803),u=i(11737),d=i(7552),s=i(10409),A=i(12944),_=i(66098);const R=class C extends u.Z{get nodeType(){return"Rect"}constructor(f){super(),this._initOptions(f)}_initOptions(f={}){const{clip:k,transform:w}=f;w&&(f.transform=(0,a.Z)(w)),k&&!k.id&&(k.id=(0,d.Z)()),this.options=new e.Z(f),this.options.addObserver(this)}transform(f){if(!(0,s.Z)(f))return this.options.get("transform");this.options.set("transform",(0,a.Z)(f))}parentTransform(){let k,f=this;for(;f.parent;){f=f.parent;let w=f.transform();w&&(k=w.matrix().multiplyCopy(k||o.Z.unit()))}if(k)return(0,a.Z)(k)}currentTransform(f=this.parentTransform()){const k=this.transform(),w=(0,l.Z)(k);let M,g=(0,l.Z)(f);if(M=w&&g?g.multiplyCopy(w):w||g,M)return(0,a.Z)(M)}visible(f){return(0,s.Z)(f)?(this.options.set("visible",f),this):!1!==this.options.get("visible")}clip(f){const k=this.options;return(0,s.Z)(f)?(f&&!f.id&&(f.id=(0,d.Z)()),k.set("clip",f),this):k.get("clip")}opacity(f){return(0,s.Z)(f)?(this.options.set("opacity",f),this):(0,A.Z)(this.options.get("opacity"),1)}className(f){return(0,s.Z)(f)?(this.options.set("className",f),this):this.options.get("className")}clippedBBox(f){const k=this._clippedBBox(f);if(k){const w=this.clip();return w?n.Z.intersect(k,w.bbox(f)):k}}containsPoint(f,k){if(this.visible()){const w=this.currentTransform(k);let g=f;return w&&(g=f.transformCopy(w.matrix().invert())),this._hasFill()&&this._containsPoint(g)||this._isOnPath&&this._hasStroke()&&this._isOnPath(g)}return!1}_hasFill(){const f=this.options.fill;return f&&!(0,_.Z)(f.color)}_hasStroke(){const f=this.options.stroke;return f&&f.width>0&&!(0,_.Z)(f.color)}_clippedBBox(f){return this.bbox(f)}}},1820:(he,y,i)=>{"use strict";i.d(y,{Z:()=>A});var e=i(11737);const n=[].push,o=[].pop,a=[].splice,l=[].shift,u=[].slice,d=[].unshift,A=class s extends e.Z{constructor(C=[]){super(),this.length=0,this._splice(0,C.length,C)}elements(C){return C?(this._splice(0,this.length,C),this._change(),this):this.slice(0)}push(){const C=arguments,R=n.apply(this,C);return this._add(C),R}slice(){return u.call(this)}pop(){const C=this.length,R=o.apply(this);return C&&this._remove([R]),R}splice(C,R){const x=u.call(arguments,2),f=this._splice(C,R,x);return this._change(),f}shift(){const C=this.length,R=l.apply(this);return C&&this._remove([R]),R}unshift(){const C=arguments,R=d.apply(this,C);return this._add(C),R}indexOf(C){const R=this.length;for(let x=0;x<R;x++)if(this[x]===C)return x;return-1}_splice(C,R,x){const f=a.apply(this,[C,R].concat(x));return this._clearObserver(f),this._setObserver(x),f}_add(C){this._setObserver(C),this._change()}_remove(C){this._clearObserver(C),this._change()}_setObserver(C){for(let R=0;R<C.length;R++)C[R].addObserver(this)}_clearObserver(C){for(let R=0;R<C.length;R++)C[R].removeObserver(this)}_change(){}}},44096:(he,y,i)=>{"use strict";i.d(y,{Z:()=>d});var e=i(46643),n=i(47911),o=i(28017),a=i(97128),l=i(39820);class u extends((0,n.Z)(e.Z,"children")){get nodeType(){return"Group"}constructor(A){super(A),this.children=[]}childrenChange(A,_,C){this.trigger("childrenChange",{action:A,items:_,index:C})}append(){return(0,o.Z)(this.children,arguments),this._reparent(arguments,this),this.childrenChange("add",arguments),this}insert(A,_){return this.children.splice(A,0,_),_.parent=this,this.childrenChange("add",[_],A),this}insertAt(A,_){return this.insert(_,A)}remove(A){const _=this.children.indexOf(A);return _>=0&&(this.children.splice(_,1),A.parent=null,this.childrenChange("remove",[A],_)),this}removeAt(A){if(0<=A&&A<this.children.length){let _=this.children[A];this.children.splice(A,1),_.parent=null,this.childrenChange("remove",[_],A)}return this}clear(){const A=this.children;return this.children=[],this._reparent(A,null),this.childrenChange("remove",A,0),this}bbox(A){return(0,a.Z)(this.children,!0,this.currentTransform(A))}rawBBox(){return(0,a.Z)(this.children,!1)}_clippedBBox(A){return(0,l.Z)(this.children,this.currentTransform(A))}currentTransform(A){return e.Z.prototype.currentTransform.call(this,A)||null}containsPoint(A,_){if(this.visible()){const C=this.children,R=this.currentTransform(_);for(let x=0;x<C.length;x++)if(C[x].containsPoint(A,R))return!0}return!1}_reparent(A,_){for(let C=0;C<A.length;C++){const R=A[C],x=R.parent;x&&x!==this&&x.remove&&x.remove(R),R.parent=_}}}const d=u},19608:(he,y,i)=>{"use strict";i.d(y,{Z:()=>d});var e=i(63424),n=i(46643),o=i(3897),a=i(62803),l=i(10409);class u extends((0,e.Z)(n.Z,["rect"])){get nodeType(){return"Image"}constructor(A,_=new o.Z,C={}){super(C),this.src(A),this.rect(_)}src(A){return(0,l.Z)(A)?(this.options.set("src",A),this):this.options.get("src")}bbox(A){const _=(0,a.Z)(this.currentTransform(A));return this._rect.bbox(_)}rawBBox(){return this._rect.bbox()}_containsPoint(A){return this._rect.containsPoint(A)}_hasFill(){return this.src()}}const d=u},37690:(he,y,i)=>{"use strict";i.d(y,{w:()=>$n,y:()=>An});var e=i(1820);const o=class n extends e.Z{_change(){this.geometryChange()}};var a=i(46643),l=i(77795),u=i(12090),d=i(63657),s=i(78203);const A=.333,_=.01,C="x",R="y";function k(xn,mt){for(;mt[xn+1]&&(mt[xn].equals(mt[xn+1])||mt[xn+1].equals(mt[xn+2]));)mt.splice(xn+1,1)}function M(xn,mt){const ut=(mt.y-xn.y)/(mt.x-xn.x);return[xn.y-ut*xn.x,ut]}function p(xn,mt,ut){let yi,Wt=C,dn=R,sn=!1,fn=!1;if(function g(xn,mt,ut){const dn=P(M(xn,mt),ut.x);return xn.x===mt.x&&mt.x===ut.x||(0,s.Z)(dn,1)===(0,s.Z)(ut.y,1)}(xn,mt,ut))yi=b(xn,mt,C,R);else{const mi={x:I(xn,mt,ut,C),y:I(xn,mt,ut,R)};if(mi.x&&mi.y)yi=b(xn,ut,C,R),sn=!0;else if(function w(xn,mt,ut){let Wt=!1;if(xn.x===mt.x)Wt=!0;else if(mt.x===ut.x)(mt.y<ut.y&&xn.y<=mt.y||ut.y<mt.y&&mt.y<=xn.y)&&(Wt=!0);else{const sn=P(M(xn,mt),ut.x);xn.y<=mt.y&&ut.y<=sn||mt.y<=xn.y&&ut.y>=sn||(Wt=!0)}return Wt}(xn,mt,ut)&&(Wt=R,dn=C),mi[Wt])yi=0;else{let Eo;Eo=ut[dn]<xn[dn]&&xn[dn]<=mt[dn]||xn[dn]<ut[dn]&&mt[dn]<=xn[dn]?O((ut[dn]-xn[dn])*(mt[Wt]-xn[Wt])):-O((ut[Wt]-xn[Wt])*(mt[dn]-xn[dn])),yi=_*Eo,fn=!0}}const nn=D(yi,xn,mt,Wt,dn);if(fn){const mi=Wt;Wt=dn,dn=mi}const Mi=L(yi,mt,ut,Wt,dn);return sn&&(E(xn,mt,nn,yi),E(mt,ut,Mi,yi)),[nn,Mi]}function E(xn,mt,ut,Wt){xn.y<mt.y?mt.y<ut.y?(ut.x=xn.x+(mt.y-xn.y)/Wt,ut.y=mt.y):ut.y<xn.y&&(ut.x=mt.x-(mt.y-xn.y)/Wt,ut.y=xn.y):ut.y<mt.y?(ut.x=xn.x-(xn.y-mt.y)/Wt,ut.y=mt.y):xn.y<ut.y&&(ut.x=mt.x+(xn.y-mt.y)/Wt,ut.y=xn.y)}function b(xn,mt,ut,Wt){const dn=mt[ut]-xn[ut];let fn;return fn=0===dn?0:(mt[Wt]-xn[Wt])/dn,fn}function I(xn,mt,ut,Wt){return ut[Wt]>mt[Wt]&&mt[Wt]>xn[Wt]||ut[Wt]<mt[Wt]&&mt[Wt]<xn[Wt]}function L(xn,mt,ut,Wt,dn){const sn=mt[Wt],yi=(ut[Wt]-sn)*A;return F(sn+yi,mt[dn]+yi*xn,Wt,dn)}function D(xn,mt,ut,Wt,dn){const fn=ut[Wt],yi=(fn-mt[Wt])*A;return F(fn-yi,ut[dn]-yi*xn,Wt,dn)}function F(xn,mt,ut,Wt){const dn=new u.Z;return dn[ut]=xn,dn[Wt]=mt,dn}function P(xn,mt){const ut=xn.length;let Wt=0;for(let dn=0;dn<ut;dn++)Wt+=Math.pow(mt,dn)*xn[dn];return Wt}function O(xn){return xn<=0?-1:1}var U=i(23776),V=i(26082),K=i(80600),X=i(3897),me=i(35148),J=i(72072),Q=i(10409),re=i(93560);function te(xn,mt,ut){const Wt=mt?0:1;for(let dn=0;dn<xn.length;dn+=2)xn.splice(dn+Wt,0,ut)}function j(xn,mt){if(xn&&mt)return mt.scaleCopy(2).translate(-xn.x,-xn.y)}const H=1/3;function z(xn,mt,ut){const Wt=mt.clone().scale(.6666666666666666);return{controlOut:Wt.clone().translateWith(xn.scaleCopy(H)),controlIn:Wt.translateWith(ut.scaleCopy(H))}}const q={l:function(xn,mt){const{parameters:ut,position:Wt}=mt;for(let dn=0;dn<ut.length;dn+=2){let sn=new u.Z(ut[dn],ut[dn+1]);mt.isRelative&&sn.translateWith(Wt),xn.lineTo(sn.x,sn.y),Wt.x=sn.x,Wt.y=sn.y}},c:function(xn,mt){const{parameters:ut,position:Wt}=mt;for(let dn=0;dn<ut.length;dn+=6){let sn=new u.Z(ut[dn],ut[dn+1]),fn=new u.Z(ut[dn+2],ut[dn+3]),yi=new u.Z(ut[dn+4],ut[dn+5]);mt.isRelative&&(fn.translateWith(Wt),sn.translateWith(Wt),yi.translateWith(Wt)),xn.curveTo(sn,fn,yi),Wt.x=yi.x,Wt.y=yi.y}},v:function(xn,mt){te(mt.parameters,!0,mt.isRelative?0:mt.position.x),this.l(xn,mt)},h:function(xn,mt){te(mt.parameters,!1,mt.isRelative?0:mt.position.y),this.l(xn,mt)},a:function(xn,mt){const{parameters:ut,position:Wt}=mt;for(let dn=0;dn<ut.length;dn+=7){const sn=ut[dn],fn=ut[dn+1],yi=ut[dn+2],nn=ut[dn+3],Mi=ut[dn+4],mi=new u.Z(ut[dn+5],ut[dn+6]);mt.isRelative&&mi.translateWith(Wt),(Wt.x!==mi.x||Wt.y!==mi.y)&&(xn.arcTo(mi,sn,fn,nn,Mi,yi),Wt.x=mi.x,Wt.y=mi.y)}},s:function(xn,mt){const{parameters:ut,position:Wt,previousCommand:dn}=mt;let sn;("s"===dn||"c"===dn)&&(sn=(0,d.Z)((0,d.Z)(xn.paths).segments).controlIn());for(let fn=0;fn<ut.length;fn+=4){let Mi,yi=new u.Z(ut[fn],ut[fn+1]),nn=new u.Z(ut[fn+2],ut[fn+3]);mt.isRelative&&(yi.translateWith(Wt),nn.translateWith(Wt)),Mi=sn?j(sn,Wt):Wt.clone(),sn=yi,xn.curveTo(Mi,yi,nn),Wt.x=nn.x,Wt.y=nn.y}},q:function(xn,mt){const{parameters:ut,position:Wt}=mt;for(let dn=0;dn<ut.length;dn+=4){let sn=new u.Z(ut[dn],ut[dn+1]),fn=new u.Z(ut[dn+2],ut[dn+3]);mt.isRelative&&(sn.translateWith(Wt),fn.translateWith(Wt));let yi=z(Wt,sn,fn);xn.curveTo(yi.controlOut,yi.controlIn,fn),Wt.x=fn.x,Wt.y=fn.y}},t:function(xn,mt){const{parameters:ut,position:Wt,previousCommand:dn}=mt;let sn;("q"===dn||"t"===dn)&&(sn=(0,d.Z)((0,d.Z)(xn.paths).segments).controlIn().clone().translateWith(Wt.scaleCopy(-1/3)).scale(1.5));for(let fn=0;fn<ut.length;fn+=2){let yi=new u.Z(ut[fn],ut[fn+1]);mt.isRelative&&yi.translateWith(Wt),sn=sn?j(sn,Wt):Wt.clone();let nn=z(Wt,sn,yi);xn.curveTo(nn.controlOut,nn.controlIn,yi),Wt.x=yi.x,Wt.y=yi.y}}},se=/([a-df-z]{1})([^a-df-z]*)(z)?/gi,ne=/[,\s]?([+\-]?(?:\d*\.\d+|\d+)(?:[eE][+\-]?\d+)?)/g;var fe=i(97128),xe=i(39820),Oe=i(39945);const Ut=(xn,mt)=>xn.controlOut()&&mt.controlIn()?"C":"L";class An extends((0,U.Z)((0,V.Z)(a.Z))){get nodeType(){return"Path"}constructor(mt){super(mt),this.segments=new o,this.segments.addObserver(this),(0,Q.Z)(this.options.stroke)||(this.stroke("#000"),(0,Q.Z)(this.options.stroke.lineJoin)||this.options.set("stroke.lineJoin","miter"))}moveTo(mt,ut){return this.suspend(),this.segments.elements([]),this.resume(),this.lineTo(mt,ut),this}lineTo(mt,ut){const Wt=(0,Q.Z)(ut)?new u.Z(mt,ut):mt,dn=new l.Z(Wt);return this.segments.push(dn),this}curveTo(mt,ut,Wt){if(this.segments.length>0){const dn=(0,d.Z)(this.segments),sn=new l.Z(Wt,ut);this.suspend(),dn.controlOut(mt),this.resume(),this.segments.push(sn)}return this}arc(mt,ut,Wt,dn,sn){if(this.segments.length>0){const yi=(0,d.Z)(this.segments).anchor(),nn=(0,re.Z)(mt),Mi=new u.Z(yi.x-Wt*Math.cos(nn),yi.y-dn*Math.sin(nn)),mi=new K.Z(Mi,{startAngle:mt,endAngle:ut,radiusX:Wt,radiusY:dn,anticlockwise:sn});this._addArcSegments(mi)}return this}arcTo(mt,ut,Wt,dn,sn,fn){if(this.segments.length>0){const nn=(0,d.Z)(this.segments).anchor(),Mi=K.Z.fromPoints(nn,u.Z.create(mt),ut,Wt,dn,sn,fn);this._addArcSegments(Mi)}return this}_addArcSegments(mt){this.suspend();const ut=mt.curvePoints();for(let Wt=1;Wt<ut.length;Wt+=3)this.curveTo(ut[Wt],ut[Wt+1],ut[Wt+2]);this.resume(),this.geometryChange()}close(){return this.options.closed=!0,this.geometryChange(),this}rawBBox(){return this._bbox()}toString(mt){let ut="";const Wt=this.segments,dn=Wt.length;if(dn>0){const sn=[],fn=(xn=mt,(...mt)=>mt.map(ut=>ut.toString(xn)).join(" "));let yi;for(let nn=1;nn<dn;nn++){let Mi=Ut(Wt[nn-1],Wt[nn]);Mi!==yi&&(yi=Mi,sn.push(Mi)),sn.push("L"===Mi?fn(Wt[nn].anchor()):fn(Wt[nn-1].controlOut(),Wt[nn].controlIn(),Wt[nn].anchor()))}ut="M"+fn(Wt[0].anchor())+" "+sn.join(" "),this.options.closed&&(ut+="Z")}var xn;return ut}_containsPoint(mt){const ut=this.segments,Wt=ut.length;let sn,fn,dn=0;for(let yi=1;yi<Wt;yi++)sn=ut[yi-1],fn=ut[yi],dn+=sn._intersectionsTo(fn,mt);return(this.options.closed||!ut[0].anchor().equals(ut[Wt-1].anchor()))&&(dn+=(0,J.Z)(ut[0].anchor(),ut[Wt-1].anchor(),mt)),dn%2!=0}_isOnPath(mt,ut){const Wt=this.segments,dn=Wt.length,sn=ut||this.options.stroke.width;if(dn>1){if(Wt[0]._isOnPathTo(Wt[1],mt,sn,"start"))return!0;for(let fn=2;fn<=dn-2;fn++)if(Wt[fn-1]._isOnPathTo(Wt[fn],mt,sn))return!0;if(Wt[dn-2]._isOnPathTo(Wt[dn-1],mt,sn,"end"))return!0}return!1}_bbox(mt){const ut=this.segments,Wt=ut.length;let dn;if(1===Wt){let sn=ut[0].anchor().transformCopy(mt);dn=new X.Z(sn,me.Z.ZERO)}else if(Wt>0)for(let sn=1;sn<Wt;sn++){let fn=ut[sn-1].bboxTo(ut[sn],mt);dn=dn?X.Z.union(dn,fn):fn}return dn}static parse(mt,ut){return $n.parse(mt,ut)}static fromRect(mt,ut){const Wt=new An(ut);let[dn,sn]=mt.cornerRadius;if(0===dn&&0===sn)Wt.moveTo(mt.topLeft()).lineTo(mt.topRight()).lineTo(mt.bottomRight()).lineTo(mt.bottomLeft()).close();else{const fn=mt.origin,{x:yi,y:nn}=fn,Mi=mt.width(),mi=mt.height();dn=(0,Oe.Z)(dn,0,Mi/2),sn=(0,Oe.Z)(sn,0,mi/2),Wt.moveTo(yi+dn,nn).lineTo(yi+Mi-dn,nn).arcTo([yi+Mi,nn+sn],dn,sn,!1).lineTo(yi+Mi,nn+mi-sn).arcTo([yi+Mi-dn,nn+mi],dn,sn,!1).lineTo(yi+dn,nn+mi).arcTo([yi,nn+mi-sn],dn,sn,!1).lineTo(yi,nn+sn).arcTo([yi+dn,nn],dn,sn,!1)}return Wt}static fromPoints(mt,ut){if(mt){const Wt=new An(ut);for(let dn=0;dn<mt.length;dn++){let sn=u.Z.create(mt[dn]);sn&&(0===dn?Wt.moveTo(sn):Wt.lineTo(sn))}return Wt}}static curveFromPoints(mt,ut){if(mt){const Wt=function x(xn,mt){const ut=xn.slice(0),Wt=[];let dn=ut.length;if(dn>2&&(k(0,ut),dn=ut.length),dn<2||2===dn&&ut[0].equals(ut[1]))return Wt;let nn,Mi,sn=ut[0],fn=ut[1],yi=ut[2];for(Wt.push(new l.Z(sn));sn.equals(ut[dn-1]);)mt=!0,ut.pop(),dn--;if(2===dn){const Eo=b(sn,fn,C,R);return(0,d.Z)(Wt).controlOut(L(Eo,sn,fn,C,R)),Wt.push(new l.Z(fn,D(Eo,sn,fn,C,R))),Wt}if(mt){sn=ut[dn-1],fn=ut[0],yi=ut[1];const Eo=p(sn,fn,yi);nn=Eo[1],Mi=Eo[0]}else nn=L(b(sn,fn,C,R),sn,fn,C,R);let mi=nn;for(let Eo=0;Eo<=dn-3;Eo++)if(k(Eo,ut),dn=ut.length,Eo+3<=dn){sn=ut[Eo],fn=ut[Eo+1],yi=ut[Eo+2];const Ko=p(sn,fn,yi);(0,d.Z)(Wt).controlOut(mi),mi=Ko[1],Wt.push(new l.Z(fn,Ko[0]))}if(mt){sn=ut[dn-2],fn=ut[dn-1],yi=ut[0];const Eo=p(sn,fn,yi);(0,d.Z)(Wt).controlOut(mi),Wt.push(new l.Z(fn,Eo[0])),(0,d.Z)(Wt).controlOut(Eo[1]),Wt.push(new l.Z(yi,Mi))}else{const Eo=b(fn,yi,C,R);(0,d.Z)(Wt).controlOut(mi),Wt.push(new l.Z(yi,D(Eo,fn,yi,C,R)))}return Wt}(mt),dn=new An(ut);return dn.segments.push.apply(dn.segments,Wt),dn}}static fromArc(mt,ut){const Wt=new An(ut),dn=mt.startAngle,sn=mt.pointAt(dn);return Wt.moveTo(sn.x,sn.y),Wt.arc(dn,mt.endAngle,mt.radiusX,mt.radiusY,mt.anticlockwise),Wt}}class $n extends((0,U.Z)((0,V.Z)(a.Z))){static parse(mt,ut){return function Te(xn,mt){const ut=new u.Z;let Wt;return mt.replace(se,(dn,sn,fn,yi)=>{let nn=sn.toLowerCase();const Mi=nn===sn,mi=function Ce(xn){const mt=[];return xn.replace(ne,function(ut,Wt){mt.push(parseFloat(Wt))}),mt}(fn.trim());if("m"===nn&&(Mi?(ut.x+=mi[0],ut.y+=mi[1]):(ut.x=mi[0],ut.y=mi[1]),xn.moveTo(ut.x,ut.y),mi.length>2&&(nn="l",mi.splice(0,2))),q[nn])q[nn](xn,{parameters:mi,position:ut,isRelative:Mi,previousCommand:Wt}),yi&&"z"===yi.toLowerCase()&&xn.close();else if("m"!==nn)throw new Error("Error while parsing SVG path. Unsupported command: "+nn);Wt=nn}),xn}(new $n(ut),mt)}toString(mt){const ut=this.paths;let Wt="";if(ut.length>0){const dn=[];for(let sn=0;sn<ut.length;sn++)dn.push(ut[sn].toString(mt));Wt=dn.join(" ")}return Wt}get nodeType(){return"MultiPath"}constructor(mt){super(mt),this.paths=new o,this.paths.addObserver(this),(0,Q.Z)(this.options.stroke)||this.stroke("#000")}moveTo(mt,ut){const Wt=new An;return Wt.moveTo(mt,ut),this.paths.push(Wt),this}lineTo(mt,ut){return this.paths.length>0&&(0,d.Z)(this.paths).lineTo(mt,ut),this}curveTo(mt,ut,Wt){return this.paths.length>0&&(0,d.Z)(this.paths).curveTo(mt,ut,Wt),this}arc(mt,ut,Wt,dn,sn){return this.paths.length>0&&(0,d.Z)(this.paths).arc(mt,ut,Wt,dn,sn),this}arcTo(mt,ut,Wt,dn,sn,fn){return this.paths.length>0&&(0,d.Z)(this.paths).arcTo(mt,ut,Wt,dn,sn,fn),this}close(){return this.paths.length>0&&(0,d.Z)(this.paths).close(),this}_bbox(mt){return(0,fe.Z)(this.paths,!0,mt)}rawBBox(){return(0,fe.Z)(this.paths,!1)}_containsPoint(mt){const ut=this.paths;for(let Wt=0;Wt<ut.length;Wt++)if(ut[Wt]._containsPoint(mt))return!0;return!1}_isOnPath(mt){const ut=this.paths,Wt=this.options.stroke.width;for(let dn=0;dn<ut.length;dn++)if(ut[dn]._isOnPath(mt,Wt))return!0;return!1}_clippedBBox(mt){return(0,xe.Z)(this.paths,this.currentTransform(mt))}}},70702:(he,y,i)=>{"use strict";i.d(y,{Z:()=>R});var e=i(46643),n=i(12090),o=i(3897),a=i(62803),l=i(23776),u=i(94927),d=i(10409),s=i(13966);class C extends((0,l.Z)((0,u.Z)(e.Z,["position"]))){get nodeType(){return"Text"}constructor(f,k=new n.Z,w={}){super(w),this.content(f),this.position(k),this.options.font||(this.options.font="12px sans-serif"),(0,d.Z)(this.options.fill)||this.fill("#000")}content(f){return(0,d.Z)(f)?(this.options.set("content",f),this):this.options.get("content")}measure(){return(0,s.Z)(this.content(),{font:this.options.get("font")})}rect(){const f=this.measure(),k=this.position().clone();return new o.Z(k,[f.width,f.height])}bbox(f){const k=(0,a.Z)(this.currentTransform(f));return this.rect().bbox(k)}rawBBox(){return this.rect().bbox()}_containsPoint(f){return this.rect().containsPoint(f)}}const R=C},97128:(he,y,i)=>{"use strict";i.d(y,{Z:()=>n});var e=i(3897);function n(o,a,l){let u;for(let d=0;d<o.length;d++){let s=o[d];if(s.visible()){let A=a?s.bbox(l):s.rawBBox();A&&(u=u?e.Z.union(u,A):A)}}return u}},39820:(he,y,i)=>{"use strict";i.d(y,{Z:()=>n});var e=i(3897);function n(o,a){let l;for(let u=0;u<o.length;u++){let d=o[u];if(d.visible()){let s=d.clippedBBox(a);s&&(l=l?e.Z.union(l,s):s)}}return l}},13966:(he,y,i)=>{"use strict";i.d(y,{Z:()=>_});var e=i(57553);const o=class n extends e.Z{constructor(R){super(),this._size=R,this._length=0,this._map={}}put(R,x){const f=this._map,k={key:R,value:x};f[R]=k,this._head?(this._tail.newer=k,k.older=this._tail,this._tail=k):this._head=this._tail=k,this._length>=this._size?(f[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++}get(R){const x=this._map[R];if(x)return x===this._head&&x!==this._tail&&(this._head=x.newer,this._head.older=null),x!==this._tail&&(x.older&&(x.older.newer=x.newer,x.newer.older=x.older),x.older=this._tail,x.newer=null,this._tail.newer=x,this._tail=x),x.value}};var a=i(88572);const u={baselineMarkerSize:1};let d;typeof document<"u"&&(d=document.createElement("div"),d.style.cssText="position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: pre!important;");class s extends e.Z{constructor(R){super(),this._cache=new o(1e3),this.options=Object.assign({},u,R)}measure(R,x,f={}){if(typeof R>"u"||null===R)return{width:0,height:0,baseline:0};const k=(0,a.Ms)(x),w=(0,a.Ym)(R+k),g=this._cache.get(w);if(g)return g;const M={width:0,height:0,baseline:0},p=f.box||d,E=this._baselineMarker().cloneNode(!1);for(let I in x){let L=x[I];typeof L<"u"&&(p.style[I]=L)}const b=!1!==f.normalizeText?(0,a.bG)(R):String(R);return p.textContent=b,p.appendChild(E),document.body.appendChild(p),b.length&&(M.width=p.offsetWidth-this.options.baselineMarkerSize,M.height=p.offsetHeight,M.baseline=E.offsetTop+this.options.baselineMarkerSize),M.width>0&&M.height>0&&this._cache.put(w,M),p.parentNode.removeChild(p),M}_baselineMarker(){const R=document.createElement("div");return R.style.cssText="display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;",R}}s.current=new s;const A=s;function _(C,R,x){return A.current.measure(C,R,x)}},88572:(he,y,i)=>{"use strict";i.d(y,{Ms:()=>a,Ym:()=>l,bG:()=>o});const e=/\r?\n|\r|\t/g,n=" ";function o(u){return String(u).replace(e,n)}function a(u){const d=[];for(let s in u)d.push(s+u[s]);return d.sort().join("")}function l(u){let d=2166136261;for(let s=0;s<u.length;++s)d+=(d<<1)+(d<<4)+(d<<7)+(d<<8)+(d<<24),d^=u.charCodeAt(s);return d>>>0}},28017:(he,y,i)=>{"use strict";function e(n,o){return n.push.apply(n,o),n}i.d(y,{Z:()=>e})},52912:(he,y,i)=>{"use strict";i.d(y,{ZX:()=>e,fO:()=>o,lA:()=>n});const e=Math.PI/180,n=Number.MAX_VALUE,o=-Number.MAX_VALUE},97296:(he,y,i)=>{"use strict";function e(){let n,o;const a=new Promise((l,u)=>{n=d=>(a._state="resolved",l(d),a),o=d=>(a._state="rejected",u(d),a)});return a._state="pending",a.resolve=n,a.reject=o,a.state=()=>a._state,a}i.d(y,{Z:()=>e})},10409:(he,y,i)=>{"use strict";i.d(y,{Z:()=>n});const e="undefined";function n(o){return typeof o!==e}},7552:(he,y,i)=>{"use strict";i.d(y,{Z:()=>n});let e=1;function n(){return"kdef"+e++}},58214:(he,y,i)=>{"use strict";i.d(y,{Z:()=>n});var e=i(52912);function n(o){return o/e.ZX}},31502:(he,y,i)=>{"use strict";i.d(y,{Z:()=>o});var e=i(56905);const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function o(a){let l="",u=0;const d=(0,e.Wj)(a);for(;u<d.length;){let s=d.charCodeAt(u++),A=d.charCodeAt(u++),_=d.charCodeAt(u++),C=s>>2,R=(3&s)<<4|A>>4,x=(15&A)<<2|_>>6,f=63&_;isNaN(A)?x=f=64:isNaN(_)&&(f=64),l=l+n.charAt(C)+n.charAt(R)+n.charAt(x)+n.charAt(f)}return l}},56905:(he,y,i)=>{"use strict";i.d(y,{FC:()=>l,Wj:()=>o,aA:()=>n});const e=String.fromCharCode,n="\xfe\xff";function o(u){let d="";for(let s=0;s<u.length;s++){let A=u.charCodeAt(s);if(55296<=A&&A<=56319){const _=A,C=u.charCodeAt(++s);isNaN(C)||(A=1024*(_-55296)+(C-56320)+65536)}A<128?d+=e(A):A<2048?(d+=e(192|A>>>6),d+=e(128|63&A)):A<65536?(d+=e(224|A>>>12),d+=e(128|A>>>6&63),d+=e(128|63&A)):A<1114111&&(d+=e(240|A>>>18),d+=e(128|A>>>12&63),d+=e(128|A>>>6&63),d+=e(128|63&A))}return d}function a(u){return e(u>>8)+e(255&u)}function l(u){let d="";for(let s=0;s<u.length;s++){const A=u.charCodeAt(s);if(A<65535)d+=a(A);else{const C=56320+(A-65536&1023);d+=a(55296+(A-65536>>10)),d+=a(C)}}return d}},66098:(he,y,i)=>{"use strict";i.d(y,{Z:()=>n});var e=i(10409);function n(o){return""===o||null===o||"none"===o||"transparent"===o||!(0,e.Z)(o)}},63657:(he,y,i)=>{"use strict";function e(n){if(n)return n[n.length-1]}i.d(y,{Z:()=>e})},39945:(he,y,i)=>{"use strict";function e(n,o,a){return Math.max(Math.min(n,a),o)}i.d(y,{Z:()=>e})},93560:(he,y,i)=>{"use strict";i.d(y,{Z:()=>n});var e=i(52912);function n(o){return o*e.ZX}},78203:(he,y,i)=>{"use strict";function n(o,a){const l=function e(o){return o?Math.pow(10,o):1}(a);return Math.round(o*l)/l}i.d(y,{Z:()=>n})},12944:(he,y,i)=>{"use strict";i.d(y,{Z:()=>n});var e=i(10409);function n(o,a){return(0,e.Z)(o)?o:a}},9890:(he,y,i)=>{"use strict";function e(C,R,x={}){let f=u;if(x.forceProxy&&!x.proxyURL)throw new Error("No proxyURL is set, but forceProxy is true");x.forceProxy||(o()&&(f=l),navigator.msSaveBlob&&(f=a)),f(C,R,x)}i.d(y,{p:()=>e});const n=()=>document.createElement("a"),o=()=>"download"in n();function a(C,R){let x=C;if("string"==typeof C){const f=C.split(";base64,"),k=f[0],w=atob(f[1]),g=new Uint8Array(w.length);for(let M=0;M<w.length;M++)g[M]=w.charCodeAt(M);x=new Blob([g.buffer],{type:k})}navigator.msSaveBlob(x,R)}function l(C,R){let x=C;window.Blob&&C instanceof Blob&&(x=URL.createObjectURL(C));const f=n();f.download=R,f.href=x;const k=document.createEvent("MouseEvents");k.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),f.dispatchEvent(k),setTimeout(()=>URL.revokeObjectURL(x))}function u(C,R,x){if(!x.proxyURL)return;const f=document.createElement("form");f.setAttribute("action",x.proxyURL),f.setAttribute("method","POST"),f.setAttribute("target",x.proxyTarget||"_self");const k=x.proxyData||{};k.fileName=R;const w=C.split(";base64,");k.contentType=w[0].replace("data:",""),k.base64=w[1];for(let g in k)if(k.hasOwnProperty(g)){const M=document.createElement("input");M.setAttribute("type","hidden"),M.setAttribute("name",g),M.setAttribute("value",k[g]),f.appendChild(M)}document.body.appendChild(f),f.submit(),document.body.removeChild(f)}},18754:(he,y,i)=>{"use strict";function o($e){return"string"==typeof $e}i.d(y,{F3:()=>ut,Jp:()=>fn,LG:()=>tt,WU:()=>an,p6:()=>Yi,uf:()=>Sa,zD:()=>xn,$U:()=>ln,sG:()=>kn,p3:()=>Rr,y0:()=>Ht,BB:()=>Nt,Ak:()=>vt});const l=/\{(\d+)}?\}/g;class u{constructor({name:Je,message:Ve}){if(!Je||!Ve)throw new Error("{ name: string, message: string } object is required!");this.name=Je,this.message=Ve}formatMessage(...Je){const Ve=d(Je),Ge=this.message.replace(l,function(Be,At){return Ve[parseInt(At,10)]});return`${this.name}: ${Ge}`}error(...Je){return new Error(this.formatMessage(Je))}}const d=function($e){return $e.reduce((Je,Ve)=>Je.concat(Ve),[])},A=($e={NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."},Object.keys($e).reduce(function(Ve,Ge){return Ve[Ge]=new u({name:Ge,message:$e[Ge]}),Ve},{}));var $e;const R={en:{name:"en",identity:{version:{_unicodeVersion:"14.0.0",_cldrVersion:"41"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"\xd7",perMille:"\u2030",infinity:"\u221e",nan:"NaN",timeSeparator:":",approximatelySign:"~"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"\u20ac","symbol-alt-narrow":"\u20ac"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMd:"M/d/y GGGGG",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era",short:"era",narrow:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},weekOfMonth:{wide:"week of month",short:"wk. of mo.",narrow:"wk. of mo."},day:{wide:"day",short:"day",narrow:"day"},dayOfYear:{wide:"day of year",short:"day of yr.",narrow:"day of yr."},weekday:{wide:"day of the week",short:"day of wk.",narrow:"day of wk."},weekdayOfMonth:{wide:"weekday of the month",short:"wkday. of mo.",narrow:"wkday. of mo."},dayperiod:{short:"AM/PM",wide:"AM/PM",narrow:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},zone:{wide:"time zone",short:"zone",narrow:"zone"},millisecond:{narrow:"ms",short:"ms",wide:"millisecond"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};function x($e){let Je;return Je=o($e)?f($e):$e,Je}function f($e){if(R[$e])return R[$e];if(R.supplemental.likelySubtags){const Ve=$e.split("-"),Ge=Ve[0],Be=Ve.slice(1),At=function C($e,Je){const Ve=R.supplemental.likelySubtags;for(let Ge=0;Ge<Je.length;Ge++){let Be=Ve[$e+"-"+Je[Ge]];if(Be)return Be}if(Ve[$e])return Ve[$e]}(Ge,Be),Rt=At?function _($e,Je){const Ve=$e.split("-"),Ge=Ve[0],Be=Ve[1],At=Ve[2];return R[$e]||-1!==Je.indexOf(At)&&R[Ge+"-"+At]||-1!==Je.indexOf(Be)&&R[Ge+"-"+Be]||R[Ge]}(At,Be):null;if(Rt)return Rt}throw A.NoLocale.error($e)}const k="decimal",w="currency",g="accounting",M="percent",p="scientific",E="$",b="%",I="n",L=";",D=",",F=".",P="",O="en",U="Formats-numberSystem-latn",V="symbols-numberSystem-latn",K=/([#,0.]+)/g,X=/\xa4/g;function me($e){return K.lastIndex=0,$e.replace(X,E).replace(K,I).split(L)}function J($e){return K.lastIndex=0,K.exec($e.split(L)[0])[0].split(F)[0].split(D).slice(1).map(function(Be){return Be.length}).reverse()}function Q($e,Je){for(let Ve in Je)Ve.startsWith("unitPattern")&&($e[Ve]=Je[Ve].replace("{0}",I).replace("{1}",E))}function re($e,Je){const Ve=R[$e],Ge=Ve.numbers=Ve.numbers||{};Ge.symbols=Ge.symbols||{};for(let Be in Je)if(Be===V)Object.assign(Ge.symbols,Je[Be]);else if(Be.includes(U)){const At=Be.substr(0,Be.indexOf(U)),Rt=Je[Be].standard;Ge[At]={patterns:me(Rt)},At===w?(Ge[At].groupSize=J((Je[k+U]||Je[Be]).standard),Q(Ge[At],Je[Be]),Ge[g]={patterns:me(Je[Be][g]),groupSize:Ge[At].groupSize}):Ge[At].groupSize=J(Rt)}else"currencies"===Be&&(Ge.currencies=Je[Be])}const de={s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},te=/y+/g,j=[["dateFormats","short"]],H={D:[["dateFormats","full"]],m:[["dateTimeFormats","availableFormats","MMMd"]],M:[["dateTimeFormats","availableFormats","MMMMd"]],y:[["dateTimeFormats","availableFormats","yMMM"]],Y:[["dateTimeFormats","availableFormats","yMMMM"]],F:[["dateFormats","full"],["timeFormats","medium"]],g:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","short"]],G:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","medium"]],t:[["timeFormats","short"]],T:[["timeFormats","medium"]]};function z($e){let Je=[],Ve=Object.getOwnPropertyNames($e);for(let Ge=0;Ge<Ve.length;Ge++)Je.push($e[Ve[Ge]]);return Je}function q($e,Je){const Ve={};for(let Ge in $e){let Be=Ve[Ge]={};for(let At in $e[Ge]){let Rt=$e[Ge][At];Be[At]=Je?Rt:z(Rt)}}return Ve}function ne($e,Je){const Ve=R[$e].calendar;Ve.days=q(Je.days),Ve.months=q(Je.months),Ve.quarters=q(Je.quarters),Ve.dayPeriods=q(Je.dayPeriods,!0),Ve.eras=function se($e){const Je={},Ve=Je.format={},Ge={eraAbbr:"abbreviated",eraNames:"wide",eraNarrow:"narrow"};for(let Be in $e)Ve[Ge[Be]]=$e[Be];return Je}(Je.eras)}function _e($e,Je){const Ve=R[$e].calendar,Ge={};for(let Be in Je){const[At,Rt="wide"]=Be.split("-"),Pt=Ge[At]||{},$t=Je[Be].displayName;$t&&(Pt[Rt]=$t,Ge[At]=Pt)}Ve.dateFields=Ge}function ge($e,Je){const Ve=[];for(let Ge=0;Ge<$e.length;Ge++){let Be=$e[Ge],At=Je;for(let Rt=0;Rt<Be.length;Rt++)At=At[Be[Rt]];Ve.push(At)}return Ve.join(" ")}function Ce($e,Je){const Ve=R[$e].calendar,Ge=Ve.patterns={};Ge.d=ge(j,Je).replace(te,"y");for(let At in H)Ge[At]=ge(H[At],Je);for(let At in de)Ge[At]=de[At];const Be=Je.dateTimeFormats;Ve.dateTimeFormats={full:Be.full,long:Be.long,medium:Be.medium,short:Be.short,availableFormats:Be.availableFormats},Ve.timeFormats=Je.timeFormats,Ve.dateFormats=Je.dateFormats}function Te($e,Je){const Ve=R[$e].calendar=R[$e].calendar||{};for(let Ge in Je)"timeZoneNames"===Ge?(Ve.gmtFormat=Je[Ge].gmtFormat,Ve.gmtZeroFormat=Je[Ge].gmtZeroFormat):"calendars"===Ge&&Je[Ge].gregorian?(Ce($e,Je[Ge].gregorian),ne($e,Je[Ge].gregorian)):"fields"===Ge&&_e($e,Je.fields)}function fe($e){if($e.territory)return $e.territory;const Ve=$e.identity;let Ge;return Ge=Ve&&Ve.territory?Ve.territory:function De($e,Je){const Ve=R.supplemental.likelySubtags;let Ge=$e.split("-");if(Ve){const At=Ve[$e]||Ve[Ge[0]];At&&(Ge=At.split("-"))}if(Je)for(let At=Ge.length-1;At>=1;At--){const Rt=Ge[At];(Rt===Je.variant||Rt===Je.script)&&Ge.splice(At,1)}const Be=Ge.length;if(Be>1)return Ge[Be-1].toUpperCase()}($e.name,Ve),$e.territory=Ge,Ge}const xe="duration-millisecond",Oe="unitPattern-count-one",Le="unitPattern-count-other",Gt=/\{0\}\s?/;function Ut($e){return($e[Oe]||$e[Le]).replace(Gt,"")}function An($e,Je){$e.calendar.dateFields.millisecond={narrow:Ut(Je.narrow[xe]),short:Ut(Je.short[xe]),wide:Ut(Je.long[xe])}}function $n($e,Je){for(let Ve in Je)"numbers"===Ve?re($e,Je[Ve]):"dates"===Ve&&Te($e,Je[Ve])}function xn(){const $e=arguments.length;for(let Je=0;Je<$e;Je++){let Ve=arguments[Je];if(Ve.main){let Ge=Object.keys(Ve.main)[0],Be=Ve.main[Ge],At=R[Ge]=R[Ge]||{};Be.units?An(At,Be.units):(At.name=At.name||Ge,At.identity=At.identity||Be.identity,fe(At),$n(Ge,Be))}else if(Ve.supplemental)if(Ve.supplemental.weekData)R.supplemental.weekData={firstDay:Ve.supplemental.weekData.firstDay,weekendStart:Ve.supplemental.weekData.weekendStart,weekendEnd:Ve.supplemental.weekData.weekendEnd};else if(Ve.supplemental.likelySubtags)R.supplemental.likelySubtags=Object.assign(R.supplemental.likelySubtags,Ve.supplemental.likelySubtags);else if(Ve.supplemental.currencyData){const Ge=R.supplemental.currencyData;Ge.region=Object.assign(Ge.region||{},Ve.supplemental.currencyData.region),Ge.fractions=Object.assign(Ge.fractions||{},Ve.supplemental.currencyData.fractions)}}}function ut($e,Je=O){const Ge=f(Je).calendar.dateFields;if(!Ge)throw A.NoDateFieldNames.error();const Be=Ge[$e.type]||{};return Be[$e.nameType]||Be.wide}function fn($e,Je){const{type:Ve,nameType:Ge,standAlone:Be,lower:At}=Je,Rt=x($e),$t=(At?"lower-":P)+Ge,Xn=Rt.calendar[Ve][Be?"stand-alone":"format"];let Nn=Xn[$t];return!Nn&&At&&(Nn=Xn[$t]=function sn($e){return Array.isArray($e)?function Wt($e){const Je=[];for(let Ve=0;Ve<$e.length;Ve++)Je.push($e[Ve].toLowerCase());return Je}($e):function dn($e){const Je={};for(let Ve in $e)Je[Ve]=$e[Ve].toLowerCase();return Je}($e)}(Xn[Ge])),Nn}function yi($e){const Je=$e.split("-"),Ve=parseInt(Je[0],10),Ge=parseInt(Je[1],10)-1,Be=parseInt(Je[2],10);return new Date(Ve,Ge,Be)}const{NoCurrency:nn,NoCurrencyDisplay:Mi,NoSupplementalCurrency:mi,NoCurrencyRegion:Eo,NoValidCurrency:Ko}=A,xo=2,Bn="symbol",Xt="XXX",Ji={"001":"USD",150:"EUR"};function En($e,Je,Ve){const Be=x($e).numbers.currencies;if(!Be){if(Ve)throw nn.error();return}const At=Be[Je];if(At)return At;if(Ve)throw Mi.error()}function un($e,Je){return Je.length-$e.length}function xt($e,Je){const Ve=x($e),Ge=Ve.numbers;if(!Ge.localeCurrency){const Be=function Bt($e,Je=!0){if(Ji[$e])return Ji[$e];const Ve=R.supplemental.currencyData;if(!Ve){if(Je)throw mi.error();return}const Ge=Ve.region[$e];if(Ge)return function Ki($e){let Je,Ve,Ge,Be;for(let At=0;At<$e.length;At++){const Rt=$e[At],Pt=Object.keys(Rt)[0],$t=Rt[Pt];if(Pt!==Xt&&"false"!==$t._tender&&$t._from)if($t._to){if(!Ge){const Xn=yi($t._from),Nn=yi($t._to);(!Ve||Ve.to<Nn||Ve.from<Xn)&&(Je=Pt,Ve={from:Xn,to:Nn})}}else{const Xn=yi($t._from);(!Be||Be<Xn)&&(Ge=Pt,Be=Xn)}}return Ge||Je}(Ge);if(Je)throw Eo.error($e)}(fe(Ve),Je);if(!Be&&Je)throw Ko.error(Ve.name);Ge.localeCurrency=Be}return Ge.localeCurrency}const wt=["sun","mon","tue","wed","thu","fri","sat"],Mt="001",{NoWeekData:pt,NoFirstDay:Lt}=A;function tt($e){const Je=x($e);if(!isNaN(Je.firstDay))return Je.firstDay;const Ve=R.supplemental.weekData;if(!Ve)throw pt.error();const Ge=Ve.firstDay[fe(Je)]||Ve.firstDay[Mt];if(!Ge)throw Lt.error();return Je.firstDay=wt.indexOf(Ge),Je.firstDay}const{NoWeekData:Ne}=A;function vt($e){const Je=x($e);if(Je.weekendRange)return Je.weekendRange;const Ve=R.supplemental.weekData;if(!Ve)throw Ne.error();const Ge=fe(Je),At=Ve.weekendEnd[Ge]||Ve.weekendEnd[Mt];return Je.weekendRange={start:wt.indexOf(Ve.weekendStart[Ge]||Ve.weekendStart[Mt]),end:wt.indexOf(At)},Je.weekendRange}function ln($e){return x($e).numbers.symbols}function jn($e){return 1/$e==-1/0}function Pi($e,Je={}){return Je.currency||(Je.currency=xt($e,!0)),function oi($e,Je){const{value:Ve,currency:Ge,currencyDisplay:Be=Bn}=Je;if("code"===Be)return Ge;const At=En($e,Ge,!0);let Rt;return Rt=Be===Bn?At["symbol-alt-narrow"]||At[Bn]||Ge:typeof Ve>"u"||1!==Ve?At["displayName-count-other"]:At["displayName-count-one"],Rt}($e,Je)}function go($e,Je,Ve,Ge,Be){const At=Be.numbers.symbols,Rt=$e.indexOf(At.decimal),Pt=Ge.groupSize.slice();let $t=Pt.shift(),Xn=-1!==Rt?Rt:Ve+1,Nn=$e.substring(Je,Xn),Ae=$e;const He=Nn.length;if(He>=$t){let Kt=He,On=[];for(;Kt>-1;){let Fi=Nn.substring(Kt-$t,Kt);Fi&&On.push(Fi),Kt-=$t;let Ci=Pt.shift();if($t=void 0!==Ci?Ci:$t,0===$t){Fi=Nn.substring(0,Kt),Fi&&On.push(Fi);break}}Nn=On.reverse().join(At.group),Ae=$e.substring(0,Je)+Nn+$e.substring(Xn)}return Ae}function si($e){return $e===w||$e===g}function ot($e,Je=2,Ve=!1){const Ge=Je-String($e).length;let Be=$e;if(Ge>0){const At=new Array(Ge+1).join("0");Be=Ve?$e+At:At+$e}return Be}const pn=20;function _i($e,Je){let Ve=$e,Ge=Je||0;return Ve=Ve.toString().split("e"),Ve=Math.round(+(Ve[0]+"e"+(Ve[1]?Number(Ve[1])+Ge:Ge))),Ve=Ve.toString().split("e"),Ve=+(Ve[0]+"e"+(Ve[1]?Number(Ve[1])-Ge:-Ge)),Ve.toFixed(Math.min(Ge,pn))}const wi=3,hi=0,zn=/0+$/;function ki($e,Je,Ve){const Ge=Ve.numbers.symbols,{style:Be}=Je,At=si(Be);if(Be===p)return(void 0!==Je.minimumFractionDigits?$e.toExponential(Je.minimumFractionDigits):$e.toExponential()).replace(F,Ge.decimal);let Pt,Rt=$e;At&&(Je.value=Rt,Pt=Pi(Ve,Je)),Be===M&&(Rt*=100,Pt=Ge.percentSign);const{minimumFractionDigits:$t,maximumFractionDigits:Xn}=function Ei($e){let{minimumFractionDigits:Je,maximumFractionDigits:Ve,style:Ge}=$e;const Be=si(Ge);let At;return Be&&(At=function It($e){let Je=xo,Ve=xo;const Ge=((R.supplemental.currencyData||{}).fractions||{})[$e];return Ge&&Ge._digits&&(Ve=Je=parseInt(Ge._digits,10)),{minimumFractionDigits:Je,maximumFractionDigits:Ve}}($e.currency)),void 0===Je&&(Je=Be?At.minimumFractionDigits:0),void 0===Ve&&(Ve=Ge===M?Math.max(Je,hi):Be?Math.max(Je,At.maximumFractionDigits):Math.max(Je,wi)),{minimumFractionDigits:Je,maximumFractionDigits:Ve}}(Je);Rt=_i(Rt,Xn);const Nn=Rt<0,Ae=jn($e),He=Rt.split(F);let Kt=He[0],On=ot(He[1]?He[1].replace(zn,P):P,$t,!0);Nn&&(Kt=Kt.substring(1)),Je.minimumIntegerDigits&&(Kt=ot(Kt,Je.minimumIntegerDigits));let Ci,Fi=!1!==Je.useGrouping?go(Kt,0,Kt.length,Je,Ve):Kt;if(On&&(Fi+=Ge.decimal+On),At&&"name"===Je.currencyDisplay)Ci=function Xi($e,Je){const Ve=$e.numbers.currency;let Ge=1!==Je?Ve["unitPattern-count-other"]:Ve["unitPattern-count-one"];return Je<0&&(Ge=Ge.replace(I,`-${I}`)),Ge}(Ve,$e);else{const Wn=Je.patterns;Ci=Nn||Ae?Wn[1]||"-"+Wn[0]:Wn[0]}return Ci!==I||Nn?function li($e,Je,Ve){let Ge=P;for(let Be=0,At=Je.length;Be<At;Be++){let Rt=Je.charAt(Be);Ge+=Rt===I?$e:Rt===E||Rt===b?Ve:Rt}return Ge}(Fi,Ci,Pt):Fi}const bo=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,jo="__??__";function wn($e,Je){const Ve=$e.format;-1!==Ve.indexOf(b)&&($e.style=M,$e.symbol=Je.numbers.symbols.percentSign,$e.number*=100),-1!==Ve.indexOf(E)&&($e.style=w,$e.symbol=Pi(Je))}function Zi($e){let Je=$e.format;if(Je.indexOf("'")>-1||Je.indexOf('"')>-1||Je.indexOf("\\")>-1){const Ve=$e.literals=[];$e.format=Je.replace(bo,function(Ge){const Be=Ge.charAt(0).replace("\\",P),At=Ge.slice(1).replace(Be,P);return Ve.push(At),jo})}}const Bi="#",Xo="0",Lo=/(\.(?:[0-9]*[1-9])?)0+$/g,or=/\.$/,xr=/,/g;function ai($e,Je,Ve){let Ge;return Ge=-1===$e&&-1!==Je?Je:-1!==$e&&-1===Je?$e:Ve?Math.min($e,Je):Math.max($e,Je),Ge}function ba($e,Je,Ve){const Ge={negative:$e<0,number:Math.abs($e),negativeZero:jn($e),format:Je};return function Fo($e){let{number:Je,format:Ve}=$e;if(Ve=Ve.split(L),($e.negative||$e.negativeZero)&&Ve[1])Ve=Ve[1],$e.hasNegativeFormat=!0;else if(0===Je){const Ge=Ve[2];Ve=Ge||Ve[0],Ge&&function ji($e){return-1===$e.indexOf(Bi)&&-1===$e.indexOf(Xo)}(Ge)&&($e.constant=Ge)}else Ve=Ve[0];$e.format=Ve}(Ge),Ge.constant?Ge.constant:(Zi(Ge),wn(Ge,Ve),function rt($e){$e.hasGroup=$e.format.indexOf(D)>-1,$e.hasGroup&&($e.format=$e.format.replace(xr,P))}(Ge),function as($e){let{number:Je,format:Ve}=$e,Ge=Ve.indexOf(F);if(-1!==Ge){const Be=Ve.lastIndexOf(Xo)-Ge,At=Ve.lastIndexOf(Bi)-Ge,Rt=Be>-1,Pt=At>-1;let $t=Je.toString().split("e");$t=$t[1]?_i(Je,Math.abs($t[1])):$t[0],$t=$t.split(F)[1]||P;let Xn=$t.length,Nn=-1;Rt||Pt?Rt&&Be>At?Xn=Be:At>Be&&(Pt&&Xn>At?Xn=At:Rt&&Xn<Be&&(Xn=Be),Nn=Rt?Be:0):($e.format=Ve.substring(0,Ge)+Ve.substring(Ge+1),Ge=-1,Xn=0),Xn>-1&&(Je=_i(Je,Xn),Nn>-1&&(Je=function Nr($e,Je){let Ve;return Ve=0===Je?Lo:new RegExp(`(\\.[0-9]{${Je}}[1-9]*)0+$`,"g"),$e.replace(Ve,"$1").replace(or,P)}(Je,Nn)))}else Je=_i(Je);$e.negative&&-1*Je>=0&&!$e.negativeZero&&($e.negative=!1),$e.number=Je,$e.decimalIndex=Ge}(Ge),function Gn($e){const Je=$e.format;let Ve=Je.indexOf(Bi),Ge=Je.indexOf(Xo),Be=ai(Ve,Ge,!0);Ve=Je.lastIndexOf(Bi),Ge=Je.lastIndexOf(Xo);let At=ai(Ve,Ge);Be===Je.length&&(At=Be),$e.start=Be,$e.end=At,$e.lastZeroIndex=Ge}(Ge),function bs($e,Je){let Ve=$e.number;return-1!==$e.start&&(Ve=function wr($e,Je){const{start:Ve,end:Ge,negative:Be,negativeZero:At,format:Rt,decimalIndex:Pt,lastZeroIndex:$t,hasNegativeFormat:Xn,hasGroup:Nn}=$e;let Ae=$e.number;const He=Ae.toString().split(F),Kt=Rt.length,On=He[0],Fi=He[1]||P,Ci=On.length;let xi=P;Ae=Rt.substring(0,Ve),(Be||At)&&!Xn&&(Ae+="-");for(let Wn=Ve;Wn<Kt;Wn++){let Vt=Rt.charAt(Wn);if(-1===Pt){if(Ge-Wn<Ci){Ae+=On;break}}else if(-1!==$t&&$t<Wn&&(xi=P),Pt-Wn<=Ci&&Pt-Wn>-1&&(Ae+=On,Wn=Pt),Pt===Wn){Ae+=(Fi?Je.numbers.symbols.decimal:P)+Fi,Wn+=Ge-Pt+1;continue}Vt===Xo?(Ae+=Vt,xi=Vt):Vt===Bi&&(Ae+=xi)}return Nn&&(Ae=go(Ae,Ve+(Be&&!Xn?1:0),Math.max(Ge,Ci+Ve),Je.numbers.decimal,Je)),Ge>=Ve&&(Ae+=Rt.substring(Ge+1)),Ae}($e,Je),Ve=function Io($e,Je,Ve){let Ge=$e;if(Je===w||Je===M){Ge=P;for(let Be=0,At=$e.length;Be<At;Be++){let Rt=$e.charAt(Be);Ge+=Rt===E||Rt===b?Ve:Rt}}return Ge}(Ve,$e.style,$e.symbol),Ve=function oo($e,Je){let Ve=$e;if(Je){const Ge=Je.length;for(let Be=0;Be<Ge;Be++)Ve=Ve.replace(jo,Je[Be])}return Ve}(Ve,$e.literals)),Ve}(Ge,Ve))}const ms=/^(n|c|p|e|a)(\d*)$/i;function Ea($e){let Je;return Je=o($e)?function Oa($e){const Je=ms.exec($e);if(Je){const Ve={style:k};let Ge=Je[1].toLowerCase();return"c"===Ge?Ve.style=w:"a"===Ge?Ve.style=g:"p"===Ge?Ve.style=M:"e"===Ge&&(Ve.style=p),Je[2]&&(Ve.minimumFractionDigits=Ve.maximumFractionDigits=parseInt(Je[2],10)),Ve}}($e):$e,Je}function Sa($e,Je=I,Ve=O){if(null==$e)return P;if(!isFinite($e))return String($e);const Ge=f(Ve),Be=Ea(Je);let At;return At=Be?ki($e,Object.assign({},Ge.numbers[Be.style||k],Be),Ge):ba($e,Je,Ge),At}function tr($e){return"number"==typeof $e}const Mr=/[eE][-+]?[0-9]+/,Li=/\u00A0/g;function Ao($e,Je){if(Je.length>1){const Ve=(Je[1]||P).replace(E,P).split(I);if($e.indexOf(Ve[0])>-1&&$e.indexOf(Ve[1])>-1)return $e.replace(Ve[0],P).replace(Ve[1],P)}}function Rr($e,Je=O,Ve={}){if(!$e&&0!==$e)return null;if(tr($e))return $e;const Ge=f(Je),Be=Ge.numbers.symbols;let Pt,At=$e.toString(),Rt=Ve||{};if(o(Ve)&&(Rt={format:Ve},Zi(Rt),At=function Go($e,Je){const Ve=Je.literals;let Ge=$e;if(Ve)for(let Be=0;Be<Ve.length;Be++)Ge=Ge.replace(Ve[Be],P);return Ge}(At,Rt),wn(Rt,Ge)),(Rt.style===M||At.indexOf(Be.percentSign)>-1)&&(At=At.replace(Be.percentSign,P),Pt=!0),Mr.test(At))return At=parseFloat(At.replace(Be.decimal,F)),isNaN(At)?null:At;const{negative:$t,number:Xn}=function ao($e,Je,Ve){const Ge=Ea(Ve)||{};let Rt,Be=si(Ge.style),At=$e;const Pt=Ge.currency||xt(Je,Be);if(Pt){const $t=function Fn($e,Je,Ve=!0){const Ge=En($e,Je,Ve);if(Ge){if(!Ge.displays){const Be=[Je];for(let At in Ge)Be.push(Ge[At]);Be.sort(un),Ge.displays=Be}return Ge.displays}}(Je,Pt,Be);if($t)for(let Xn=0;Xn<$t.length;Xn++){let Nn=$t[Xn];if(At.includes(Nn)){At=At.replace(Nn,P),Be=!0;break}}if(Be){const Xn=Ao(At,Je.numbers.currency.patterns)||Ao(At,Je.numbers.accounting.patterns);Xn&&(Rt=!0,At=Xn)}}return{number:At,negative:Rt}}(At,Ge,Rt);At=String(Xn).trim();const Nn=At.indexOf("-");if(Nn>0)return null;let Ae=Nn>-1;return Ae=void 0!==$t?$t:Ae,At=At.replace("-",P).replace(Li," ").split(Be.group.replace(Li," ")).join(P).replace(Be.decimal,F),At=parseFloat(At),isNaN(At)?At=null:Ae&&(At*=-1),At&&Pt&&(At=function pr($e){const Je=String($e),Ve=Je.indexOf(F);let Be=$e/Math.pow(10,2);return-1===Ve||String(Be).length<=Je.length+2?Be:parseFloat(Be.toFixed(Je.length-Ve+1+2))}(At)),At}const br=/\{(\d+)}/g;function Ti($e){const Je=arguments;return $e.replace(br,(Ve,Ge)=>Je[parseInt(Ge,10)+1])}const mr=120,ri=20,mo=[2,1,5,3,4],Gs={[(-2).toString()]:8,[(-1).toString()]:6,[2..toString()]:6,[1..toString()]:3},fi={numeric:1,"2-digit":2,short:3,long:4,narrow:5},Ho=/[hHmsSzZoOvVxX]/,Zn=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function _t($e){return $e.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],qo={e:"c",E:"c",M:"L",Q:"q"},Cr={},kr={};function xs($e){return Cr[$e]||(Cr[$e]=new RegExp($e+"+")),Cr[$e]}function Us($e){const Je=[];let Ve=$e.charAt(0),Ge=Ve;for(let Be=1;Be<$e.length;Be++){let At=$e.charAt(Be);At===Ge?Ve+=At:(Je.push(Ve),Ve=Ge=At)}return Je.push(Ve),Je}function Ts($e,Je){const Ve=$e.length;let Be,At,Ge=-Number.MAX_VALUE;for(let Rt in Je){const Pt=[];let $t=Rt.replace("v","z"),Xn=0;for(let Nn=0;Nn<Ve;Nn++){const Ae=$e[Nn];let Kt=(xs(Ae[0]).exec($t)||[])[0];if(Kt){if($t=$t.replace(Kt,P),Kt.length!==Ae.length){let On=Math.max(Math.min(mo[Kt.length]-mo[Ae.length],2),-2);Xn-=Gs[On]}}else Xn-=mr;if(Pt.push(Kt),Xn<Ge)break}$t.length&&(Xn-=Us($t).length*ri),Xn>Ge&&(Ge=Xn,Be=Pt,At=Je[Rt])}At=At.replace("v","z");for(let Rt=0;Rt<Ve;Rt++){const Pt=Be[Rt];if(Pt&&Pt!==$e[Rt]){const $t=Be[Rt][0];At=At.replace(xs($t),$e[Rt]),qo[$t]&&(At=At.replace(xs(qo[$t]),$e[Rt]))}}return At}function Ar($e,Je){const Ve=Je.calendar;let Ge;if(o($e))Ge=Ve.patterns[$e]?Ve.patterns[$e]:$e;else if($e){if($e.pattern)return $e.pattern;let Be=$e.skeleton;Be||($e.datetime?Ge=Ti(Ve.dateTimeFormats[$e.datetime],Ve.timeFormats[$e.datetime],Ve.dateFormats[$e.datetime]):$e.date?Ge=Ve.dateFormats[$e.date]:$e.time?Ge=Ve.timeFormats[$e.time]:Be=function $o($e){let Je=[];for(let Ve=0;Ve<Zn.length;Ve++){let Ge=Zn[Ve],At=$e[Ge.key];if(At){let Rt=Ge.specifier||Ge.getSpecifier($e);Je.push(Rt.repeat(fi[At]))}}return Je.join(P)}($e)),Be&&(Ge=function Ua($e,Je){const Ve=Je.calendar.dateTimeFormats.availableFormats;if(Ve[$e])return Ve[$e];if(kr[Je.name]&&kr[Je.name][$e])return kr[Je.name][$e];const Ge=$e.search(Ho);let Be;if(Ge>0){const At=$e.substr(0,Ge),Rt=$e.substr(Ge);Be=Ti(Je.calendar.dateTimeFormats.short,Ve[Rt]||Ts(Us(Rt),Ve),Ve[At]||Ts(Us(At),Ve))}else Be=Ts(Us($e),Ve);return function Ss($e,Je,Ve){kr[Ve]||(kr[Ve]={}),kr[Ve][$e]=Je}($e,Be,Je.name),Be}(Be,Je))}return Ge||(Ge=Ve.patterns.d),Ge}function No($e){let Je;return $e<=3?Je="abbreviated":4===$e?Je="wide":5===$e?Je="narrow":6===$e&&(Je="short"),Je}function qr($e,Je,Ve,Ge,Be){return fn($e,{type:Je,nameType:No(Ve),standAlone:Ge,lower:Be})}function js($e){return"function"==typeof $e}function Ds($e){return!!$e&&js($e.getTime)&&js($e.getMonth)}const ls="hour",Hs="zone",Js="weekday",Wa="quarter",ll={G:"era",y:"year",q:Wa,Q:Wa,M:"month",L:"month",d:"day",E:Js,c:Js,e:Js,h:ls,H:ls,k:ls,K:ls,m:"minute",s:"second",S:"millisecond",a:"dayperiod",x:Hs,X:Hs,z:Hs,Z:Hs},Za=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function Jt($e,Je,Ve,Ge){return Je<=2?ot($e+1,Je):qr(Ve,"months",Je,Ge)[$e]}function Tt($e,Je,Ve,Ge){const Be=Math.floor($e.getMonth()/3);return Je<3?Be+1:qr(Ve,"quarters",Je,Ge)[Be]}function ht($e,Je,Ve){const{shortHours:Ge,optionalMinutes:Be,separator:At,localizedName:Rt,zZeroOffset:Pt}=Ve,$t=$e.getTimezoneOffset()/60;if(0===$t&&Pt)return"Z";const Xn=$t<=0?"+":"-",Nn=Math.abs($t).toString().split("."),Ae=Nn[1]||0;let He=Xn+(Ge?Nn[0]:ot(Nn[0],2));return(Ae||!Be)&&(He+=(At?":":P)+ot(Ae,2)),Rt&&(He=Ti(0===$t?Je.calendar.gmtZeroFormat:Je.calendar.gmtFormat,He)),He}function yn($e,Je,Ve,Ge){let Be;return Be=Je<3?function sl($e,Je,Ve){const Ge=tt(Ve);let Be;return Be=$e<Ge?7-Ge+$e:$e-Ge,Be+1}($e.getDay(),0,Ve):qr(Ve,"days",Je,Ge)[$e.getDay()],Be}const vi={};function Yi($e,Je,Ve=O){if(!Ds($e))return $e??P;const Ge=f(Ve);return Ar(Je,Ge).replace(Za,function(At){let Pt,Rt=At.length;return Pt=At.includes("'")||At.includes('"')?At.slice(1,Rt-1):vi[At[0]]($e,Rt,Ge),Pt})}function co($e,Je,Ve){const Ge=$e.getTimezoneOffset(),Be=new Date($e.getTime()+6e4*(Je-Ve)),At=Be.getTimezoneOffset();return new Date(Be.getTime()+6e4*(At-Ge))}vi.d=function($e,Je){return ot($e.getDate(),Je)},vi.E=function($e,Je,Ve){return qr(Ve,"days",Je)[$e.getDay()]},vi.M=function($e,Je,Ve){return Jt($e.getMonth(),Je,Ve,!1)},vi.L=function($e,Je,Ve){return Jt($e.getMonth(),Je,Ve,!0)},vi.y=function($e,Je){let Ve=$e.getFullYear();return 2===Je&&(Ve%=100),ot(Ve,Je)},vi.h=function($e,Je){return ot($e.getHours()%12||12,Je)},vi.H=function($e,Je){return ot($e.getHours(),Je)},vi.k=function($e,Je){return ot($e.getHours()||24,Je)},vi.K=function($e,Je){return ot($e.getHours()%12,Je)},vi.m=function($e,Je){return ot($e.getMinutes(),Je)},vi.s=function($e,Je){return ot($e.getSeconds(),Je)},vi.S=function($e,Je){const Ve=$e.getMilliseconds();let Ge;return Ge=0!==Ve?ot(String(Ve/1e3).split(".")[1].substr(0,Je),Je,!0):ot(P,Je),Ge},vi.a=function($e,Je,Ve){return qr(Ve,"dayPeriods",Je)[$e.getHours()<12?"am":"pm"]},vi.z=function($e,Je,Ve){return ht($e,Ve,{shortHours:Je<4,optionalMinutes:Je<4,separator:!0,localizedName:!0})},vi.Z=function($e,Je,Ve){return ht($e,Ve,{separator:Je>3,localizedName:4===Je,zZeroOffset:5===Je})},vi.x=function($e,Je,Ve){return ht($e,Ve,{optionalMinutes:1===Je,separator:3===Je||5===Je})},vi.X=function($e,Je,Ve){return ht($e,Ve,{optionalMinutes:1===Je,separator:3===Je||5===Je,zZeroOffset:!0})},vi.G=function($e,Je,Ve){let Ge=$e.getFullYear()>=0?1:0;return qr(Ve,"eras",Je)[Ge]},vi.e=yn,vi.c=function($e,Je,Ve){return yn($e,Je,Ve,!0)},vi.q=function($e,Je,Ve){return Tt($e,Je,Ve,!0)},vi.Q=Tt;const yr=/([+|-]\d{1,2})(:?)(\d{2})?/,Ur=/^\/Date\((.*?)\)\/$/,ss=/[+-]\d*/,gs={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},Pr=/\d+/,da=/^ */,Va=/ *$/,ga=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],al=["G","g","F","Y","y","M","m","D","d","y","T","t"];function La($e,Je,Ve){return!($e>=Je&&$e<=Ve)}function ra($e,Je){let{format:Ve,idx:Ge}=Je,Be=0;for(;Ve[Ge]===$e;)Be++,Ge++;return Be>0&&(Ge-=1),Je.idx=Ge,Be}function Ls($e,Je){let Ve=$e?gs[$e]||new RegExp("^\\d{1,"+$e+"}"):Pr,Ge=Je.value.substr(Je.valueIdx,$e).match(Ve);return Ge?(Ge=Ge[0],Je.valueIdx+=Ge.length,parseInt(Ge,10)):null}function vn($e,Je,Ve){let At,Rt,Xn,Ge=0,Be=$e.length,Pt=0,$t=0;for(;Ge<Be;Ge++)At=$e[Ge],Rt=At.length,Xn=Je.value.substr(Je.valueIdx,Rt),Ve&&(Xn=Xn.toLowerCase()),Xn===At&&Rt>Pt&&(Pt=Rt,$t=Ge);return Pt?(Je.valueIdx+=Pt,$t+1):null}function Xe($e){let Je=!1;return $e.value.charAt($e.valueIdx)===$e.format[$e.idx]&&($e.valueIdx++,Je=!0),Je}function ze($e,Je,Ve){const{shortHours:Ge,noSeparator:Be,optionalMinutes:At,localizedName:Rt,zLiteral:Pt}=Ve;if($e.UTC=!0,Pt&&"Z"===$e.value.charAt($e.valueIdx))return $e.valueIdx++,!1;if(Rt&&!vn(function Ke($e){const{gmtFormat:Je,gmtZeroFormat:Ve}=$e;if(!Je)throw A.NoGMTInfo.error();return[Je.replace("{0}",P).toLowerCase(),Ve.replace("{0}",P).toLowerCase()]}(Je.calendar),$e,!0))return!0;const $t=yr.exec($e.value.substr($e.valueIdx,6));if(!$t)return!Rt;const Xn=$t[1],Nn=$t[3],Ae=parseInt(Xn,10),He=$t[2];let Kt=parseInt(Nn,10);if(isNaN(Ae)||!Ge&&3!==Xn.length||!At&&isNaN(Kt)||Be&&He||(isNaN(Kt)&&(Kt=null),La(Ae,-12,13)||Kt&&La(Kt,0,59)))return!0;$e.valueIdx+=$t[0].length,$e.hoursOffset=Ae,$e.minutesOffset=Kt}function St($e,Je,Ve){const Ge=ra($e,Je),Be=qr(Ve,"months",Ge,"L"===$e,!0),At=Ge<3?Ls(2,Je):vn(Be,Je,!0);if(null===At||La(At,1,12))return!0;Je.month=At-1}function it($e,Je,Ve){const Ge=ra($e,Je),Be=qr(Ve,"days",Ge,"c"===$e,!0);let At=Ge<3?Ls(1,Je):vn(Be,Je,!0);if(!At&&0!==At||La(At,1,7))return!0}const Dt={};function Ui($e,Je){return`${da.exec(Je)[0]}${$e}${Va.exec(Je)[0]}`}function Co($e,Je,Ve){let Ge=Ar(Je,Ve).split(P);const Be={format:Ge,idx:0,value:Ui($e,Je),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},At=Ge.length;let Rt=!1;for(;Be.idx<At;Be.idx++){let Pt=Ge[Be.idx];if(Rt)"'"===Pt&&(Rt=!1),Xe(Be);else if(Dt[Pt]){if(Dt[Pt](Be,Ve))return null}else if("'"===Pt)Rt=!0,Xe(Be);else if(!Xe(Be))return null}return Be.valueIdx<$e.length?null:function Hn($e){let{year:Je,month:Ve,day:Ge,hours:Be,minutes:At,seconds:Rt,milliseconds:Pt,pmHour:$t,UTC:Xn,hoursOffset:Nn,minutesOffset:Ae}=$e;const He=null!==Be||null!==At||Rt||null,Kt=new Date;let On;return null===Je&&null===Ve&&null===Ge&&He?(Je=Kt.getFullYear(),Ve=Kt.getMonth(),Ge=Kt.getDate()):(null===Je&&(Je=Kt.getFullYear()),null===Ge&&(Ge=1)),$t&&Be<12&&(Be+=12),Xn?(Nn&&(Be+=-Nn),Ae&&(At+=-Ae*(Nn<0?-1:1)),On=new Date(Date.UTC(Je,Ve,Ge,Be,At,Rt,Pt))):(On=new Date(Je,Ve,Ge,Be,At,Rt,Pt),function sr($e,Je){!Je&&23===$e.getHours()&&$e.setHours($e.getHours()+2)}(On,Be)),Je<100&&On.setFullYear(Je),On.getDate()!==Ge&&void 0===Xn?null:On}(Be)||null}function kn($e,Je,Ve=O){if(!$e)return null;if(Ds($e))return $e;let Ge=String($e).trim(),Be=function Vn($e){if($e&&0===$e.indexOf("/D")){let Je=Ur.exec($e);if(Je){Je=Je[1];let Ve=ss.exec(Je.substring(1));return Je=new Date(parseInt(Je,10)),Ve&&(Ve=function Sn($e){const Je="-"===$e.substr(0,1)?-1:1;let Ve=$e.substring(1);return Ve=60*parseInt(Ve.substr(0,2),10)+parseInt(Ve.substring(2),10),Je*Ve}(Ve[0]),Je=co(Je,Je.getTimezoneOffset(),0),Je=co(Je,0,-1*Ve)),Je}}}(Ge);if(Be)return Be;const At=f(Ve);let Rt=Je||function Dn($e){const Je=[],Ve=$e.patterns,Ge=al.length;for(let Be=0;Be<Ge;Be++)Je.push(Ve[al[Be]]);return Je.concat(ga)}(At.calendar);Rt=Array.isArray(Rt)?Rt:[Rt];const Pt=Rt.length;for(let $t=0;$t<Pt;$t++)if(Be=Co(Ge,Rt[$t],At),Be)return Be;return Be}Dt.d=function($e){ra("d",$e);const Je=Ls(2,$e);if(null===Je||La(Je,1,31))return!0;null===$e.day&&($e.day=Je)},Dt.E=function($e,Je){if(null===vn(qr(Je,"days",ra("E",$e),!1,!0),$e,!0))return!0},Dt.M=function($e,Je){return St("M",$e,Je)},Dt.L=function($e,Je){return St("L",$e,Je)},Dt.y=function($e){const Je=ra("y",$e);let Ve=Ls(1===Je?void 0:Je,$e);if(null===Ve)return!0;if(2===Je){const Ge=(new Date).getFullYear();Ve=Ge-Ge%100+Ve,Ve>2029&&(Ve-=100)}$e.year=Ve},Dt.h=function($e){ra("h",$e);let Je=Ls(2,$e);if(12===Je&&(Je=0),null===Je||La(Je,0,11))return!0;$e.hours=Je},Dt.K=function($e){ra("K",$e);let Je=Ls(2,$e);if(null===Je||La(Je,0,11))return!0;$e.hours=Je},Dt.a=function($e,Je){let Ge=qr(Je,"dayPeriods",ra("a",$e),!1,!0);const Be=vn([Ge.pm],$e,!0);if(!Be&&!vn([Ge.am],$e,!0))return!0;$e.pmHour=Be},Dt.H=function($e){ra("H",$e);const Je=Ls(2,$e);if(null===Je||La(Je,0,23))return!0;$e.hours=Je},Dt.k=function($e){ra("k",$e);let Je=Ls(2,$e);if(null===Je||La(Je,1,24))return!0;$e.hours=24===Je?0:Je},Dt.m=function($e){ra("m",$e);const Je=Ls(2,$e);if(null===Je||La(Je,0,59))return!0;$e.minutes=Je},Dt.s=function($e){ra("s",$e);const Je=Ls(2,$e);if(null===Je||La(Je,0,59))return!0;$e.seconds=Je},Dt.S=function($e){const Je=ra("S",$e),Ve=$e.value.substr($e.valueIdx,Je);let Ge=null;if(isNaN(parseInt(Ve,10))||(Ge=parseFloat("0."+Ve,10),Ge=_i(Ge,3),Ge*=1e3,$e.valueIdx+=Je),null===Ge||La(Ge,0,999))return!0;$e.milliseconds=Ge},Dt.z=function($e,Je){const Ge=ra("z",$e)<4,Be=ze($e,Je,{shortHours:Ge,optionalMinutes:Ge,localizedName:!0});if(Be)return Be},Dt.Z=function($e,Je){const Ve=ra("Z",$e),Ge=ze($e,Je,{noSeparator:Ve<4,zLiteral:5===Ve,localizedName:4===Ve});if(Ge)return Ge},Dt.x=function($e,Je){const Ve=ra("x",$e),Ge=ze($e,Je,{noSeparator:3!==Ve&&5!==Ve,optionalMinutes:1===Ve});if(Ge)return Ge},Dt.X=function($e,Je){const Ve=ra("X",$e),Ge=ze($e,Je,{noSeparator:3!==Ve&&5!==Ve,optionalMinutes:1===Ve,zLiteral:!0});if(Ge)return Ge},Dt.G=function($e,Je){const Ge=qr(Je,"eras",ra("G",$e),!1,!0);if(null===vn([Ge[0],Ge[1]],$e,!0))return!0},Dt.e=function($e,Je){return it("e",$e,Je)},Dt.c=function($e,Je){return it("c",$e,Je)};const ui={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},Ot="literal";function en($e,Je){const Ve=$e[$e.length-1];Ve&&Ve.type===Ot?Ve.pattern+=Je:$e.push({type:Ot,pattern:Je})}function cn($e){return"h"===$e||"K"===$e}function Ht($e,Je=O){const Ge=Ar($e,f(Je)),Be=[];let At=Za.lastIndex=0,Rt=Za.exec(Ge);for(;Rt;){let Pt=Rt[0];if(At<Rt.index&&en(Be,Ge.substring(At,Rt.index)),Pt.startsWith('"')||Pt.startsWith("'"))en(Be,Pt);else{const $t=Pt[0],Xn=ll[$t],Nn={type:Xn,pattern:Pt};"hour"===Xn&&(Nn.hour12=cn(Pt));const Ae=ui[Xn];if(Ae){const He=tr(Ae.minLength)?Ae.minLength:Ae.minLength[$t],Kt=Pt.length;Kt>=He&&(Nn.names={type:Ae.type,nameType:No(Kt),standAlone:Ae.standAlone===$t})}Be.push(Nn)}At=Za.lastIndex,Rt=Za.exec(Ge)}return At<Ge.length&&en(Be,Ge.substring(At)),Be}const ft=/\{(\d+)(:[^}]+)?\}/g;function Nt($e,Je,Ve){if(Je){if(Ds($e))return Yi($e,Je,Ve);if(tr($e))return Sa($e,Je,Ve)}return $e??P}function an($e,Je,Ve){return $e.replace(ft,function(Ge,Be,At){return Nt(Je[parseInt(Be,10)],At?At.substring(1):P,Ve)})}},13710:(he,y,i)=>{"use strict";i.d(y,{I:()=>Zn});var e=i(74881),n=i(24769),o={Promise};const a={base64:!0,array:!0,string:!0,nodebuffer:!1,nodestream:!1,get arraybuffer(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"},get uint8array(){return typeof Uint8Array<"u"},get blob(){return l()}};let l=function(){let Tt;if(typeof ArrayBuffer>"u")Tt=!1;else{const ht=new ArrayBuffer(0);try{Tt=0===new Blob([ht],{type:"application/zip"}).size}catch{Tt=!1}}return l=()=>Tt,Tt};const u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function C(Tt){return Tt}function R(Tt,ht){for(var yn=0;yn<Tt.length;++yn)ht[yn]=255&Tt.charCodeAt(yn);return ht}function x(Tt,ht,yn){var vi=[],Yi=0,co=Tt.length;if(co<=yn)return String.fromCharCode.apply(null,Tt);for(;Yi<co;)vi.push(String.fromCharCode.apply(null,"array"===ht?Tt.slice(Yi,Math.min(Yi+yn,co)):Tt.subarray(Yi,Math.min(Yi+yn,co)))),Yi+=yn;return vi.join("")}let k=()=>{let Tt;try{Tt=a.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch{Tt=!1}return k=()=>Tt,Tt};function w(Tt){var ht=65536,yn=b(Tt),vi=!0;if("uint8array"===yn&&(vi=k()),vi)for(;ht>1;)try{return x(Tt,yn,ht)}catch{ht=Math.floor(ht/2)}return function f(Tt){for(var ht="",yn=0;yn<Tt.length;yn++)ht+=String.fromCharCode(Tt[yn]);return ht}(Tt)}const g=w;function M(Tt,ht){for(var yn=0;yn<Tt.length;yn++)ht[yn]=Tt[yn];return ht}var p={string:{string:C,array:function(Tt){return R(Tt,new Array(Tt.length))},arraybuffer:function(Tt){return p.string.uint8array(Tt).buffer},uint8array:function(Tt){return R(Tt,new Uint8Array(Tt.length))}},array:{string:w,array:C,arraybuffer:function(Tt){return new Uint8Array(Tt).buffer},uint8array:function(Tt){return new Uint8Array(Tt)}},arraybuffer:{string:function(Tt){return w(new Uint8Array(Tt))},array:function(Tt){return M(new Uint8Array(Tt),new Array(Tt.byteLength))},arraybuffer:C,uint8array:function(Tt){return new Uint8Array(Tt)}},uint8array:{string:w,array:function(Tt){return M(Tt,new Array(Tt.length))},arraybuffer:function(Tt){return Tt.buffer},uint8array:C}};const E=function(Tt,ht){if(ht||(ht=""),!Tt)return ht;I(Tt);var yn=b(ht);return p[yn][Tt](ht)},b=function(Tt){return"string"==typeof Tt?"string":"[object Array]"===Object.prototype.toString.call(Tt)?"array":a.uint8array&&Tt instanceof Uint8Array?"uint8array":a.arraybuffer&&Tt instanceof ArrayBuffer?"arraybuffer":void 0},I=function(Tt){if(!a[Tt.toLowerCase()])throw new Error(Tt+" is not supported by this platform")},L=65535,D=-1,F=function(Tt){var yn,vi,ht="";for(vi=0;vi<(Tt||"").length;vi++)ht+="\\x"+((yn=Tt.charCodeAt(vi))<16?"0":"")+yn.toString(16).toUpperCase();return ht},P=function(Tt,ht,yn){setTimeout(function(){Tt.apply(yn||null,ht||[])},0)},O=function(){var ht,yn,Tt={};for(ht=0;ht<arguments.length;ht++)for(yn in arguments[ht])Object.hasOwnProperty.call(arguments[ht],yn)&&typeof Tt[yn]>"u"&&(Tt[yn]=arguments[ht][yn]);return Tt},U=function(Tt,ht,yn,vi,Yi){return o.Promise.resolve(ht).then(function(sr){return a.blob&&(sr instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(sr)))&&typeof FileReader<"u"?new o.Promise(function(Ur,ss){var gs=new FileReader;gs.onload=function(Pr){Ur(Pr.target.result)},gs.onerror=function(Pr){ss(Pr.target.error)},gs.readAsArrayBuffer(sr)}):sr}).then(function(sr){var yr=b(sr);return yr?("arraybuffer"===yr?sr=E("uint8array",sr):"string"===yr&&(Yi?sr=function(Tt){let ht,yn,vi,Yi,co,sr,yr,Ur=0,ss=0;if("data:"===Tt.substr(0,5))throw new Error("Invalid base64 input, it looks like a data url.");let ys,Pr=3*(Tt=Tt.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(Tt.charAt(Tt.length-1)===u.charAt(64)&&Pr--,Tt.charAt(Tt.length-2)===u.charAt(64)&&Pr--,Pr%1!=0)throw new Error("Invalid base64 input, bad content length.");for(ys=a.uint8array?new Uint8Array(0|Pr):new Array(0|Pr);Ur<Tt.length;)Yi=u.indexOf(Tt.charAt(Ur++)),co=u.indexOf(Tt.charAt(Ur++)),sr=u.indexOf(Tt.charAt(Ur++)),yr=u.indexOf(Tt.charAt(Ur++)),ht=Yi<<2|co>>4,yn=(15&co)<<4|sr>>2,vi=(3&sr)<<6|yr,ys[ss++]=ht,64!==sr&&(ys[ss++]=yn),64!==yr&&(ys[ss++]=vi);return ys}(sr):yn&&!0!==vi&&(sr=function A(Tt){return R(Tt,a.uint8array?new Uint8Array(Tt.length):new Array(Tt.length))}(sr))),sr):o.Promise.reject(new Error("Can't read the data of '"+Tt+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})};class V{constructor(ht){this.name=ht||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}push(ht){this.emit("data",ht)}end(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(ht){this.emit("error",ht)}return!0}error(ht){return!this.isFinished&&(this.isPaused?this.generatedError=ht:(this.isFinished=!0,this.emit("error",ht),this.previous&&this.previous.error(ht),this.cleanUp()),!0)}on(ht,yn){return this._listeners[ht].push(yn),this}cleanUp(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]}emit(ht,yn){if(this._listeners[ht])for(var vi=0;vi<this._listeners[ht].length;vi++)this._listeners[ht][vi].call(this,yn)}pipe(ht){return ht.registerPrevious(this)}registerPrevious(ht){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=ht.streamInfo,this.mergeStreamInfo(),this.previous=ht;var yn=this;return ht.on("data",function(vi){yn.processChunk(vi)}),ht.on("end",function(){yn.end()}),ht.on("error",function(vi){yn.error(vi)}),this}pause(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)}resume(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var ht=!1;return this.generatedError&&(this.error(this.generatedError),ht=!0),this.previous&&this.previous.resume(),!ht}flush(){}processChunk(ht){this.push(ht)}withStreamInfo(ht,yn){return this.extraStreamInfo[ht]=yn,this.mergeStreamInfo(),this}mergeStreamInfo(){for(var ht in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(ht)&&(this.streamInfo[ht]=this.extraStreamInfo[ht])}lock(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()}toString(){var ht="Worker "+this.name;return this.previous?this.previous+" -> "+ht:ht}}let K=function(Tt){const ht=new Array(256);for(let yn=0;yn<256;yn++)ht[yn]=yn>=252?6:yn>=248?5:yn>=240?4:yn>=224?3:yn>=192?2:1;return ht[254]=ht[254]=1,K=function(yn){return ht[yn]},ht[Tt]};const Q=function(ht){return function(Tt){var ht,yn,vi,Yi,co,sr=Tt.length,yr=0;for(Yi=0;Yi<sr;Yi++)55296==(64512&(yn=Tt.charCodeAt(Yi)))&&Yi+1<sr&&56320==(64512&(vi=Tt.charCodeAt(Yi+1)))&&(yn=65536+(yn-55296<<10)+(vi-56320),Yi++),yr+=yn<128?1:yn<2048?2:yn<65536?3:4;for(ht=a.uint8array?new Uint8Array(yr):new Array(yr),co=0,Yi=0;co<yr;Yi++)55296==(64512&(yn=Tt.charCodeAt(Yi)))&&Yi+1<sr&&56320==(64512&(vi=Tt.charCodeAt(Yi+1)))&&(yn=65536+(yn-55296<<10)+(vi-56320),Yi++),yn<128?ht[co++]=yn:yn<2048?(ht[co++]=192|yn>>>6,ht[co++]=128|63&yn):yn<65536?(ht[co++]=224|yn>>>12,ht[co++]=128|yn>>>6&63,ht[co++]=128|63&yn):(ht[co++]=240|yn>>>18,ht[co++]=128|yn>>>12&63,ht[co++]=128|yn>>>6&63,ht[co++]=128|63&yn);return ht}(ht)},re=function(ht){return function(Tt){var ht,yn,vi,Yi,co=Tt.length,sr=new Array(2*co);for(yn=0,ht=0;ht<co;)if((vi=Tt[ht++])<128)sr[yn++]=vi;else if((Yi=K(vi))>4)sr[yn++]=65533,ht+=Yi-1;else{for(vi&=2===Yi?31:3===Yi?15:7;Yi>1&&ht<co;)vi=vi<<6|63&Tt[ht++],Yi--;Yi>1?sr[yn++]=65533:vi<65536?sr[yn++]=vi:(sr[yn++]=55296|(vi-=65536)>>10&1023,sr[yn++]=56320|1023&vi)}return sr.length!==yn&&(sr.subarray?sr=sr.subarray(0,yn):sr.length=yn),g(sr)}(ht=E(a.uint8array?"uint8array":"array",ht))};class de extends V{constructor(){super("utf-8 decode"),this.leftOver=null}processChunk(ht){var yn=E(a.uint8array?"uint8array":"array",ht.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var vi=yn;(yn=new Uint8Array(vi.length+this.leftOver.length)).set(this.leftOver,0),yn.set(vi,this.leftOver.length)}else yn=this.leftOver.concat(yn);this.leftOver=null}var Yi=function(Tt,ht){var yn;for((ht=ht||Tt.length)>Tt.length&&(ht=Tt.length),yn=ht-1;yn>=0&&128==(192&Tt[yn]);)yn--;return yn<0||0===yn?ht:yn+K(Tt[yn])>ht?yn:ht}(yn),co=yn;Yi!==yn.length&&(a.uint8array?(co=yn.subarray(0,Yi),this.leftOver=yn.subarray(Yi,yn.length)):(co=yn.slice(0,Yi),this.leftOver=yn.slice(Yi,yn.length))),this.push({data:re(co),meta:ht.meta})}flush(){this.leftOver&&this.leftOver.length&&(this.push({data:re(this.leftOver),meta:{}}),this.leftOver=null)}}class te extends V{constructor(){super("utf-8 encode")}processChunk(ht){this.push({data:Q(ht.data),meta:ht.meta})}}class j extends V{constructor(ht){super("ConvertWorker to "+ht),this.destType=ht}processChunk(ht){this.push({data:E(this.destType,ht.data),meta:ht.meta})}}function q(Tt,ht){return new o.Promise(function(yn,vi){var Yi=[],co=Tt._internalType,sr=Tt._outputType,yr=Tt._mimeType;Tt.on("data",function(Ur,ss){Yi.push(Ur),ht&&ht(ss)}).on("error",function(Ur){Yi=[],vi(Ur)}).on("end",function(){try{var Ur=function H(Tt,ht,yn){switch(Tt){case"blob":return function(Tt,ht){return I("blob"),new Blob([Tt],{type:ht})}(E("arraybuffer",ht),yn);case"base64":return function(Tt){let yn,vi,Yi,co,sr,yr,Ur,ht=[],ss=0,gs=Tt.length,Pr=gs,ys="string"!=typeof Tt;for(;ss<Tt.length;)Pr=gs-ss,ys?(yn=Tt[ss++],vi=ss<gs?Tt[ss++]:0,Yi=ss<gs?Tt[ss++]:0):(yn=Tt.charCodeAt(ss++),vi=ss<gs?Tt.charCodeAt(ss++):0,Yi=ss<gs?Tt.charCodeAt(ss++):0),co=yn>>2,sr=(3&yn)<<4|vi>>4,yr=Pr>1?(15&vi)<<2|Yi>>6:64,Ur=Pr>2?63&Yi:64,ht.push(u.charAt(co)+u.charAt(sr)+u.charAt(yr)+u.charAt(Ur));return ht.join("")}(ht);default:return E(Tt,ht)}}(sr,function z(Tt,ht){var yn,vi=0,Yi=null,co=0;for(yn=0;yn<ht.length;yn++)co+=ht[yn].length;switch(Tt){case"string":return ht.join("");case"array":return Array.prototype.concat.apply([],ht);case"uint8array":for(Yi=new Uint8Array(co),yn=0;yn<ht.length;yn++)Yi.set(ht[yn],vi),vi+=ht[yn].length;return Yi;default:throw new Error("concat : unsupported type '"+Tt+"'")}}(co,Yi),yr);yn(Ur)}catch(ss){vi(ss)}Yi=[]}).resume()})}class se{constructor(ht,yn,vi){var Yi=yn;switch(yn){case"blob":case"arraybuffer":Yi="uint8array";break;case"base64":Yi="string"}try{this._internalType=Yi,this._outputType=yn,this._mimeType=vi,I(Yi),this._worker=ht.pipe(new j(Yi)),ht.lock()}catch(co){this._worker=new V("error"),this._worker.error(co)}}accumulate(ht){return q(this,ht)}on(ht,yn){var vi=this;return this._worker.on(ht,"data"===ht?function(Yi){yn.call(vi,Yi.data,Yi.meta)}:function(){P(yn,arguments,vi)}),this}resume(){return P(this._worker.resume,[],this._worker),this}pause(){return this._worker.pause(),this}}var Gt=Object.freeze({__proto__:null,base64:!1,binary:!1,dir:!1,createFolders:!0,date:null,compression:null,compressionOptions:null,comment:null,unixPermissions:null,dosPermissions:null});class An extends V{constructor(ht){super("DataWorker");var yn=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,ht.then(function(vi){yn.dataIsReady=!0,yn.data=vi,yn.max=vi&&vi.length||0,yn.type=b(vi),yn.isPaused||yn._tickAndRepeat()},function(vi){yn.error(vi)})}cleanUp(){super.cleanUp(),this.data=null}resume(){return!!super.resume()&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,P(this._tickAndRepeat,[],this)),!0)}_tickAndRepeat(){this._tickScheduled=!1,!this.isPaused&&!this.isFinished&&(this._tick(),this.isFinished||(P(this._tickAndRepeat,[],this),this._tickScheduled=!0))}_tick(){if(this.isPaused||this.isFinished)return!1;var yn=null,vi=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":yn=this.data.substring(this.index,vi);break;case"uint8array":yn=this.data.subarray(this.index,vi);break;case"array":yn=this.data.slice(this.index,vi)}return this.index=vi,this.push({data:yn,meta:{percent:this.max?this.index/this.max*100:0}})}}class $n extends V{constructor(ht){super("DataLengthProbe for "+ht),this.propName=ht,this.withStreamInfo(ht,0)}processChunk(ht){ht&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+ht.data.length),super.processChunk(ht)}}let xn=function(){const Tt=[];for(let ht=0;ht<256;ht++){let yn=ht;for(let vi=0;vi<8;vi++)yn=1&yn?3988292384^yn>>>1:yn>>>1;Tt[ht]=yn}return xn=function(){return Tt},Tt};function Wt(Tt,ht){return typeof Tt>"u"||!Tt.length?0:"string"!==b(Tt)?function mt(Tt,ht,yn,vi){const Yi=xn();let co=vi+yn;Tt^=-1;for(let sr=vi;sr<co;sr++)Tt=Tt>>>8^Yi[255&(Tt^ht[sr])];return-1^Tt}(0|ht,Tt,Tt.length,0):function ut(Tt,ht,yn,vi){const Yi=xn();let co=vi+yn;Tt^=-1;for(let sr=vi;sr<co;sr++)Tt=Tt>>>8^Yi[255&(Tt^ht.charCodeAt(sr))];return-1^Tt}(0|ht,Tt,Tt.length,0)}class dn extends V{constructor(){super("Crc32Probe"),this.withStreamInfo("crc32",0)}processChunk(ht){this.streamInfo.crc32=Wt(ht.data,this.streamInfo.crc32||0),this.push(ht)}}class sn{constructor(ht,yn,vi,Yi,co){this.compressedSize=ht,this.uncompressedSize=yn,this.crc32=vi,this.compression=Yi,this.compressedContent=co}getContentWorker(){var ht=new An(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new $n("data_length")),yn=this;return ht.on("end",function(){if(this.streamInfo.data_length!==yn.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),ht}getCompressedWorker(){return new An(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}static createWorkerFrom(ht,yn,vi){return ht.pipe(new dn).pipe(new $n("uncompressedSize")).pipe(yn.compressWorker(vi)).pipe(new $n("compressedSize")).withStreamInfo("compression",yn)}}class fn{constructor(ht,yn,vi){this.name=ht,this.dir=vi.dir,this.date=vi.date,this.comment=vi.comment,this.unixPermissions=vi.unixPermissions,this.dosPermissions=vi.dosPermissions,this._data=yn,this._dataBinary=vi.binary,this.options={compression:vi.compression,compressionOptions:vi.compressionOptions}}internalStream(ht){var yn=null,vi="string";try{if(!ht)throw new Error("No output type specified.");var Yi="string"===(vi=ht.toLowerCase())||"text"===vi;("binarystring"===vi||"text"===vi)&&(vi="string"),yn=this._decompressWorker();var co=!this._dataBinary;co&&!Yi&&(yn=yn.pipe(new te)),!co&&Yi&&(yn=yn.pipe(new de))}catch(sr){(yn=new V("error")).error(sr)}return new se(yn,vi,"")}async(ht,yn){return this.internalStream(ht).accumulate(yn)}_compressWorker(ht,yn){if(this._data instanceof sn&&this._data.compression.magic===ht.magic)return this._data.getCompressedWorker();var vi=this._decompressWorker();return this._dataBinary||(vi=vi.pipe(new te)),sn.createWorkerFrom(vi,ht,yn)}_decompressWorker(){return this._data instanceof sn?this._data.getContentWorker():this._data instanceof V?this._data:new An(this._data)}}let yi=function(){const ht=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u"?"uint8array":"array";yi=function(){return ht}};class nn extends V{constructor(ht,yn){super("FlateWorker/"+ht),this._pako=null,this._pakoAction=ht,this._pakoOptions=yn,this.meta={}}processChunk(ht){this.meta=ht.meta,null===this._pako&&this._createPako(),this._pako.push(E(yi(),ht.data),!1)}flush(){super.flush(),null===this._pako&&this._createPako(),this._pako.push([],!0)}cleanUp(){super.cleanUp(),this._pako=null}_createPako(){const ht={raw:!0,level:this._pakoOptions.level||-1};this._pako="Deflate"===this._pakoAction?new n.gb(ht):new n.T_(ht),this._pako.onData=yn=>{this.push({data:yn,meta:this.meta})}}}var Eo={STORE:{magic:"\0\0",compressWorker:function(){return new V("STORE compression")},uncompressWorker:function(){return new V("STORE decompression")}},DEFLATE:{magic:"\b\0",compressWorker:function(Tt){return new nn("Deflate",Tt)},uncompressWorker:function(){return new nn("Inflate",{})}}};const Ko="PK\x03\x04",xo="PK\x01\x02",Bn="PK\x05\x06",Ji="PK\x06\x06";var un=function(Tt,ht){var vi,yn="";for(vi=0;vi<ht;vi++)yn+=String.fromCharCode(255&Tt),Tt>>>=8;return yn},oi=function(Tt,ht,yn,vi,Yi,co){var al,ur,sr=Tt.file,yr=Tt.compression,Ur=co!==Q,ss=E("string",co(sr.name)),gs=E("string",Q(sr.name)),Pr=sr.comment,ys=E("string",co(Pr)),da=E("string",Q(Pr)),Va=gs.length!==sr.name.length,ga=da.length!==Pr.length,La="",ra="",Ls="",vn=sr.dir,Xe=sr.date,Ke={crc32:0,compressedSize:0,uncompressedSize:0};(!ht||yn)&&(Ke.crc32=Tt.crc32,Ke.compressedSize=Tt.compressedSize,Ke.uncompressedSize=Tt.uncompressedSize);var ze=0;ht&&(ze|=8),!Ur&&(Va||ga)&&(ze|=2048);var St=0,it=0;vn&&(St|=16),"UNIX"===Yi?(it=798,St|=function(Tt,ht){var yn=Tt;return Tt||(yn=ht?16893:33204),(65535&yn)<<16}(sr.unixPermissions,vn)):(it=20,St|=function(Tt,ht){return 63&(Tt||0)}(sr.dosPermissions)),al=Xe.getUTCHours(),al<<=6,al|=Xe.getUTCMinutes(),al<<=5,al|=Xe.getUTCSeconds()/2,ur=Xe.getUTCFullYear()-1980,ur<<=4,ur|=Xe.getUTCMonth()+1,ur<<=5,ur|=Xe.getUTCDate(),Va&&(ra=un(1,1)+un(Wt(ss),4)+gs,La+="up"+un(ra.length,2)+ra),ga&&(Ls=un(1,1)+un(Wt(ys),4)+da,La+="uc"+un(Ls.length,2)+Ls);var Dt="";return Dt+="\n\0",Dt+=un(ze,2),Dt+=yr.magic,Dt+=un(al,2),Dt+=un(ur,2),Dt+=un(Ke.crc32,4),Dt+=un(Ke.compressedSize,4),Dt+=un(Ke.uncompressedSize,4),Dt+=un(ss.length,2),Dt+=un(La.length,2),{fileRecord:Ko+Dt+ss+La,dirRecord:xo+un(it,2)+Dt+un(ys.length,2)+"\0\0\0\0"+un(St,4)+un(vi,4)+ss+La+ys}};class xt extends V{constructor(ht,yn,vi,Yi){super("ZipFileWorker"),this.bytesWritten=0,this.zipComment=yn,this.zipPlatform=vi,this.encodeFileName=Yi,this.streamFiles=ht,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}push(ht){var yn=ht.meta.percent||0,vi=this.entriesCount,Yi=this._sources.length;this.accumulate?this.contentBuffer.push(ht):(this.bytesWritten+=ht.data.length,super.push({data:ht.data,meta:{currentFile:this.currentFile,percent:vi?(yn+100*(vi-Yi-1))/vi:100}}))}openedSource(ht){this.currentSourceOffset=this.bytesWritten,this.currentFile=ht.file.name;var yn=this.streamFiles&&!ht.file.dir;if(yn){var vi=oi(ht,yn,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:vi.fileRecord,meta:{percent:0}})}else this.accumulate=!0}closedSource(ht){this.accumulate=!1;var Tt,yn=this.streamFiles&&!ht.file.dir,vi=oi(ht,yn,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(vi.dirRecord),yn)this.push({data:(Tt=ht,"PK\x07\b"+un(Tt.crc32,4)+un(Tt.compressedSize,4)+un(Tt.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:vi.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null}flush(){for(var ht=this.bytesWritten,yn=0;yn<this.dirRecords.length;yn++)this.push({data:this.dirRecords[yn],meta:{percent:100}});var Yi=function(Tt,ht,yn,vi,Yi){var sr=E("string",Yi(vi));return Bn+"\0\0\0\0"+un(Tt,2)+un(Tt,2)+un(ht,4)+un(yn,4)+un(sr.length,2)+sr}(this.dirRecords.length,this.bytesWritten-ht,ht,this.zipComment,this.encodeFileName);this.push({data:Yi,meta:{percent:100}})}prepareNextSource(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()}registerPrevious(ht){this._sources.push(ht);var yn=this;return ht.on("data",function(vi){yn.processChunk(vi)}),ht.on("end",function(){yn.closedSource(yn.previous.streamInfo),yn._sources.length?yn.prepareNextSource():yn.end()}),ht.on("error",function(vi){yn.error(vi)}),this}resume(){return!!super.resume()&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))}error(ht){var yn=this._sources;if(!super.error(ht))return!1;for(var vi=0;vi<yn.length;vi++)try{yn[vi].error(ht)}catch{}return!0}lock(){super.lock();for(var ht=this._sources,yn=0;yn<ht.length;yn++)ht[yn].lock()}}class pt{constructor(ht){this.data=ht,this.length=ht.length,this.index=0,this.zero=0}checkOffset(ht){this.checkIndex(this.index+ht)}checkIndex(ht){if(this.length<this.zero+ht||ht<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+ht+"). Corrupted zip ?")}setIndex(ht){this.checkIndex(ht),this.index=ht}skip(ht){this.setIndex(this.index+ht)}byteAt(ht){}readInt(ht){var vi,yn=0;for(this.checkOffset(ht),vi=this.index+ht-1;vi>=this.index;vi--)yn=(yn<<8)+this.byteAt(vi);return this.index+=ht,yn}readString(ht){return E("string",this.readData(ht))}readData(ht){}lastIndexOfSignature(ht){}readAndCheckSignature(ht){}readDate(){var ht=this.readInt(4);return new Date(Date.UTC(1980+(ht>>25&127),(ht>>21&15)-1,ht>>16&31,ht>>11&31,ht>>5&63,(31&ht)<<1))}}class Lt extends pt{constructor(ht){super(ht);for(var yn=0;yn<this.data.length;yn++)ht[yn]=255&ht[yn]}byteAt(ht){return this.data[this.zero+ht]}lastIndexOfSignature(ht){for(var yn=ht.charCodeAt(0),vi=ht.charCodeAt(1),Yi=ht.charCodeAt(2),co=ht.charCodeAt(3),sr=this.length-4;sr>=0;--sr)if(this.data[sr]===yn&&this.data[sr+1]===vi&&this.data[sr+2]===Yi&&this.data[sr+3]===co)return sr-this.zero;return-1}readAndCheckSignature(ht){var yn=ht.charCodeAt(0),vi=ht.charCodeAt(1),Yi=ht.charCodeAt(2),co=ht.charCodeAt(3),sr=this.readData(4);return yn===sr[0]&&vi===sr[1]&&Yi===sr[2]&&co===sr[3]}readData(ht){if(this.checkOffset(ht),0===ht)return[];var yn=this.data.slice(this.zero+this.index,this.zero+this.index+ht);return this.index+=ht,yn}}class tt extends pt{constructor(ht){super(ht)}byteAt(ht){return this.data.charCodeAt(this.zero+ht)}lastIndexOfSignature(ht){return this.data.lastIndexOf(ht)-this.zero}readAndCheckSignature(ht){return ht===this.readData(4)}readData(ht){this.checkOffset(ht);const yn=this.data.slice(this.zero+this.index,this.zero+this.index+ht);return this.index+=ht,yn}}class Ne extends Lt{constructor(ht){super(ht)}readData(ht){if(this.checkOffset(ht),0===ht)return new Uint8Array(0);var yn=this.data.subarray(this.zero+this.index,this.zero+this.index+ht);return this.index+=ht,yn}}function vt(Tt){const ht=b(Tt);return I(ht),"string"!==ht||a.uint8array?a.uint8array?new Ne(E("uint8array",Tt)):new Lt(E("array",Tt)):new tt(Tt)}class go{constructor(ht,yn){this.options=ht,this.loadOptions=yn}isEncrypted(){return 1==(1&this.bitFlag)}useUTF8(){return 2048==(2048&this.bitFlag)}readLocalPart(ht){var yn,vi;if(ht.skip(22),this.fileNameLength=ht.readInt(2),vi=ht.readInt(2),this.fileName=ht.readData(this.fileNameLength),ht.skip(vi),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(yn=function(Tt){for(var ht in Eo)if(Eo.hasOwnProperty(ht)&&Eo[ht].magic===Tt)return Eo[ht];return null}(this.compressionMethod),null===yn)throw new Error("Corrupted zip : compression "+F(this.compressionMethod)+" unknown (inner file : "+E("string",this.fileName)+")");this.decompressed=new sn(this.compressedSize,this.uncompressedSize,this.crc32,yn,ht.readData(this.compressedSize))}readCentralPart(ht){this.versionMadeBy=ht.readInt(2),ht.skip(2),this.bitFlag=ht.readInt(2),this.compressionMethod=ht.readString(2),this.date=ht.readDate(),this.crc32=ht.readInt(4),this.compressedSize=ht.readInt(4),this.uncompressedSize=ht.readInt(4);var yn=ht.readInt(2);if(this.extraFieldsLength=ht.readInt(2),this.fileCommentLength=ht.readInt(2),this.diskNumberStart=ht.readInt(2),this.internalFileAttributes=ht.readInt(2),this.externalFileAttributes=ht.readInt(4),this.localHeaderOffset=ht.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");ht.skip(yn),this.readExtraFields(ht),this.parseZIP64ExtraField(ht),this.fileComment=ht.readData(this.fileCommentLength)}processAttributes(){this.unixPermissions=null,this.dosPermissions=null;var ht=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===ht&&(this.dosPermissions=63&this.externalFileAttributes),3===ht&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&"/"===this.fileNameStr.slice(-1)&&(this.dir=!0)}parseZIP64ExtraField(ht){if(this.extraFields[1]){var yn=vt(this.extraFields[1].value);this.uncompressedSize===D&&(this.uncompressedSize=yn.readInt(8)),this.compressedSize===D&&(this.compressedSize=yn.readInt(8)),this.localHeaderOffset===D&&(this.localHeaderOffset=yn.readInt(8)),this.diskNumberStart===D&&(this.diskNumberStart=yn.readInt(4))}}readExtraFields(ht){var vi,Yi,co,yn=ht.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});ht.index<yn;)vi=ht.readInt(2),Yi=ht.readInt(2),co=ht.readData(Yi),this.extraFields[vi]={id:vi,length:Yi,value:co}}handleUTF8(){var ht=a.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=re(this.fileName),this.fileCommentStr=re(this.fileComment);else{var yn=this.findExtraFieldUnicodePath();if(null!==yn)this.fileNameStr=yn;else{var vi=E(ht,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(vi)}var Yi=this.findExtraFieldUnicodeComment();if(null!==Yi)this.fileCommentStr=Yi;else{var co=E(ht,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(co)}}}findExtraFieldUnicodePath(){var ht=this.extraFields[28789];if(ht){var yn=vt(ht.value);return 1!==yn.readInt(1)||Wt(this.fileName)!==yn.readInt(4)?null:re(yn.readData(ht.length-5))}return null}findExtraFieldUnicodeComment(){var ht=this.extraFields[25461];if(ht){var yn=vt(ht.value);return 1!==yn.readInt(1)||Wt(this.fileComment)!==yn.readInt(4)?null:re(yn.readData(ht.length-5))}return null}}class si{constructor(ht){this.files=[],this.loadOptions=ht}checkSignature(ht){if(!this.reader.readAndCheckSignature(ht)){this.reader.index-=4;var yn=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+F(yn)+", expected "+F(ht)+")")}}isSignature(ht,yn){var vi=this.reader.index;this.reader.setIndex(ht);var co=this.reader.readString(4)===yn;return this.reader.setIndex(vi),co}readBlockEndOfCentral(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var ht=this.reader.readData(this.zipCommentLength),vi=E(a.uint8array?"uint8array":"array",ht);this.zipComment=this.loadOptions.decodeFileName(vi)}readBlockZip64EndOfCentral(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var vi,Yi,co,ht=this.zip64EndOfCentralSize-44;0<ht;)vi=this.reader.readInt(2),Yi=this.reader.readInt(4),co=this.reader.readData(Yi),this.zip64ExtensibleData[vi]={id:vi,length:Yi,value:co}}readBlockZip64EndOfCentralLocator(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")}readLocalFiles(){var ht,yn;for(ht=0;ht<this.files.length;ht++)this.reader.setIndex((yn=this.files[ht]).localHeaderOffset),this.checkSignature(Ko),yn.readLocalPart(this.reader),yn.handleUTF8(),yn.processAttributes()}readCentralDir(){var ht;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(xo);)(ht=new go({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(ht);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)}readEndOfCentral(){var ht=this.reader.lastIndexOfSignature(Bn);if(ht<0)throw this.isSignature(0,Ko)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(ht);var vi=ht;if(this.checkSignature(Bn),this.readBlockEndOfCentral(),this.diskNumber===L||this.diskWithCentralDirStart===L||this.centralDirRecordsOnThisDisk===L||this.centralDirRecords===L||this.centralDirSize===D||this.centralDirOffset===D){if(this.zip64=!0,(ht=this.reader.lastIndexOfSignature("PK\x06\x07"))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(ht),this.checkSignature("PK\x06\x07"),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,Ji)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(Ji),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(Ji),this.readBlockZip64EndOfCentral()}var Yi=this.centralDirOffset+this.centralDirSize;this.zip64&&(Yi+=20,Yi+=12+this.zip64EndOfCentralSize);var co=vi-Yi;if(co>0)this.isSignature(vi,xo)||(this.reader.zero=co);else if(co<0)throw new Error("Corrupted zip: missing "+Math.abs(co)+" bytes.")}prepareReader(ht){this.reader=vt(ht)}load(ht){this.prepareReader(ht),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}}function ot(Tt){return new o.Promise(function(ht,yn){var vi=Tt.decompressed.getContentWorker().pipe(new dn);vi.on("error",function(Yi){yn(Yi)}).on("end",function(){vi.streamInfo.crc32!==Tt.decompressed.crc32?yn(new Error("Corrupted zip : CRC32 mismatch")):ht()}).resume()})}function pn(Tt,ht){var yn=this;return ht=O(ht||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:re}),U("the loaded zip file",Tt,!0,ht.optimizedBinaryString,ht.base64).then(function(vi){var Yi=new si(ht);return Yi.load(vi),Yi}).then(function(Yi){var co=[o.Promise.resolve(Yi)],sr=Yi.files;if(ht.checkCRC32)for(var yr=0;yr<sr.length;yr++)co.push(ot(sr[yr]));return o.Promise.all(co)}).then(function(Yi){for(var co=Yi.shift(),sr=co.files,yr=0;yr<sr.length;yr++){var Ur=sr[yr];yn.file(Ur.fileNameStr,Ur.decompressed,{binary:!0,optimizedBinaryString:!0,date:Ur.date,dir:Ur.dir,comment:Ur.fileCommentStr.length?Ur.fileCommentStr:null,unixPermissions:Ur.unixPermissions,dosPermissions:Ur.dosPermissions,createFolders:ht.createFolders})}return co.zipComment.length&&(yn.comment=co.zipComment),yn})}var _i=function(Tt,ht,yn){var Yi,vi=b(ht),co=O(yn||{},Gt);co.date=co.date||new Date,null!==co.compression&&(co.compression=co.compression.toUpperCase()),"string"==typeof co.unixPermissions&&(co.unixPermissions=parseInt(co.unixPermissions,8)),co.unixPermissions&&16384&co.unixPermissions&&(co.dir=!0),co.dosPermissions&&16&co.dosPermissions&&(co.dir=!0),co.dir&&(Tt=hi(Tt)),co.createFolders&&(Yi=wi(Tt))&&zn.call(this,Yi,!0),(!yn||typeof yn.binary>"u")&&(co.binary=!("string"===vi&&!1===co.binary&&!1===co.base64)),(ht instanceof sn&&0===ht.uncompressedSize||co.dir||!ht||0===ht.length)&&(co.base64=!1,co.binary=!0,ht="",co.compression="STORE",vi="string");var Ur;Ur=ht instanceof sn||ht instanceof V?ht:U(Tt,ht,co.binary,co.optimizedBinaryString,co.base64);var ss=new fn(Tt,Ur,co);this.files[Tt]=ss},wi=function(Tt){"/"===Tt.slice(-1)&&(Tt=Tt.substring(0,Tt.length-1));var ht=Tt.lastIndexOf("/");return ht>0?Tt.substring(0,ht):""},hi=function(Tt){return"/"!==Tt.slice(-1)&&(Tt+="/"),Tt},zn=function(Tt,ht){return ht=!(typeof ht<"u")||ht,Tt=hi(Tt),this.files[Tt]||_i.call(this,Tt,null,{dir:!0,createFolders:ht}),this.files[Tt]};function Ei(Tt){return"[object RegExp]"===Object.prototype.toString.call(Tt)}class li{constructor(){if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){const ht=new li;for(const yn in this)"function"!=typeof this[yn]&&(ht[yn]=this[yn]);return ht}}load(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")}forEach(ht){var yn,vi,Yi;for(yn in this.files)Yi=this.files[yn],(vi=yn.slice(this.root.length,yn.length))&&yn.slice(0,this.root.length)===this.root&&ht(vi,Yi)}filter(ht){var yn=[];return this.forEach(function(vi,Yi){ht(vi,Yi)&&yn.push(Yi)}),yn}file(ht,yn,vi){if(1===arguments.length){if(Ei(ht)){var Yi=ht;return this.filter(function(sr,yr){return!yr.dir&&Yi.test(sr)})}var co=this.files[this.root+ht];return co&&!co.dir?co:null}return _i.call(this,ht=this.root+ht,yn,vi),this}folder(ht){if(!ht)return this;if(Ei(ht))return this.filter(function(co,sr){return sr.dir&&ht.test(co)});var vi=zn.call(this,this.root+ht),Yi=this.clone();return Yi.root=vi.name,Yi}remove(ht){var yn=this.files[ht=this.root+ht];if(yn||("/"!==ht.slice(-1)&&(ht+="/"),yn=this.files[ht]),yn&&!yn.dir)delete this.files[ht];else for(var vi=this.filter(function(co,sr){return sr.name.slice(0,ht.length)===ht}),Yi=0;Yi<vi.length;Yi++)delete this.files[vi[Yi].name];return this}generate(ht){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")}generateInternalStream(ht){var yn,vi={};try{if((vi=O(ht||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Q})).type=vi.type.toLowerCase(),vi.compression=vi.compression.toUpperCase(),"binarystring"===vi.type&&(vi.type="string"),!vi.type)throw new Error("No output type specified.");I(vi.type),("darwin"===vi.platform||"freebsd"===vi.platform||"linux"===vi.platform||"sunos"===vi.platform)&&(vi.platform="UNIX"),"win32"===vi.platform&&(vi.platform="DOS"),yn=function(Tt,ht,yn){var vi=new xt(ht.streamFiles,yn,ht.platform,ht.encodeFileName),Yi=0;try{Tt.forEach(function(co,sr){Yi++;var yr=function(Tt,ht){var yn=Tt||ht,vi=Eo[yn];if(!vi)throw new Error(yn+" is not a valid compression method !");return vi}(sr.options.compression,ht.compression),ss=sr.dir,gs=sr.date;sr._compressWorker(yr,sr.options.compressionOptions||ht.compressionOptions||{}).withStreamInfo("file",{name:co,dir:ss,date:gs,comment:sr.comment||"",unixPermissions:sr.unixPermissions,dosPermissions:sr.dosPermissions}).pipe(vi)}),vi.entriesCount=Yi}catch(co){vi.error(co)}return vi}(this,vi,vi.comment||this.comment||"")}catch(co){(yn=new V("error")).error(co)}return new se(yn,vi.type||"string",vi.mimeType)}generateAsync(ht,yn){return this.generateInternalStream(ht).accumulate(yn)}loadAsync(ht,yn){return pn.apply(this,[ht,yn])}static loadAsync(ht,yn){return(new li).loadAsync(ht,yn)}static get support(){return a}static get defaults(){return Gt}static get version(){return"3.2.2-esm"}static get external(){return o}}var ki=i(31119);function bo(Tt,ht,yn){return(1461*(Tt+4800+((ht-13)/12|0))/4|0)+(367*(ht-1-12*((ht-13)/12|0))/12|0)-(3*((Tt+4900+((ht-13)/12|0))/100|0)/4|0)+yn-32075}const jo=bo(1900,0,-1);const Bi="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",Xo=`data:${Bi};base64,`,Lo={compression:"DEFLATE",type:"base64"},or={compression:"DEFLATE",type:"blob"},xr={compression:"DEFLATE",type:"arraybuffer"};function Nr(Tt){return Xo+Tt}function as(Tt,ht){return ht.indexOf(Tt)}const ji=JSON.parse.bind(JSON);function Fo(Tt){return String(Tt).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&#39;")}function rt(Tt,ht){let yn="";for(let vi=0;vi<Tt;++vi)yn+=ht(vi);return yn}function ai(Tt,ht){let yn="";if(null!=Tt)if(Array.isArray(Tt))for(let vi=0;vi<Tt.length;++vi)yn+=ht(Tt[vi],vi);else"object"==typeof Tt&&Object.keys(Tt).forEach((vi,Yi)=>{yn+=ht(Tt[vi],vi,Yi)});return yn}const Gn='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r',Io=`${Gn}\n            <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n               <Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/>\n               <Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/>\n               <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/>\n            </Relationships>`,Ao=Tt=>`${Gn}\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n  ${ai(Tt,ht=>`\n    <Relationship Id="${ht.rId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="${ht.target}"/>`)}\n</Relationships>`;function Rr(Tt){const ht=Math.floor(Tt/26)-1;return(ht>=0?Rr(ht):"")+String.fromCharCode(65+Tt%26)}function br(Tt,ht){return Rr(ht)+(Tt+1)}function Ti(Tt,ht){return"$"+Rr(ht)+"$"+(Tt+1)}function mr(Tt){return(Tt.frozenRows||(Tt.freezePane||{}).rowSplit||1)-1}function ri(Tt){return Tt/7-Math.floor(128/7)/256}class yo{constructor(ht,yn,vi,Yi){this.options=ht,this._strings=yn,this._styles=vi,this._borders=Yi,this._validations={},this._comments=[],this._drawings=ht.drawings||[],this._hyperlinks=(this.options.hyperlinks||[]).map((co,sr)=>Object.assign({},co,{rId:`link${sr}`}))}relsToXML(){const ht=this._hyperlinks,yn=this._comments,vi=this._drawings;if(ht.length||yn.length||vi.length)return(({hyperlinks:Tt,comments:ht,sheetIndex:yn,drawings:vi})=>`${Gn}\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n  ${ai(Tt,Yi=>`\n    <Relationship Id="${Yi.rId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="${Fo(Yi.target)}" TargetMode="External" />`)}\n  ${ht.length?`\n    <Relationship Id="comment${yn}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" Target="../comments${yn}.xml"/>\n    <Relationship Id="vml${yn}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing" Target="../drawings/vmlDrawing${yn}.vml"/>`:""}\n  ${vi.length?`\n    <Relationship Id="drw${yn}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" Target="../drawings/drawing${yn}.xml"/>`:""}\n</Relationships>`)({hyperlinks:ht,comments:yn,sheetIndex:this.options.sheetIndex,drawings:vi})}toXML(ht){const yn=this.options.mergedCells||[],Yi=function Us(Tt,ht){const yn=[],vi=[];!function Ts(Tt,ht){for(let yn=0;yn<Tt.length;yn++){const vi=Tt[yn];if(!vi)continue;let Yi=vi.index;"number"!=typeof Yi&&(Yi=yn),ht(vi,Yi)}}(Tt,function(sr,yr){const Ur={_source:sr,index:yr,height:sr.height,level:sr.level,cells:[]};yn.push(Ur),vi[yr]=Ur});const Yi=Ss(yn).slice(0),co={rowData:yn,rowsByIndex:vi,mergedCells:ht};for(let sr=0;sr<Yi.length;sr++)qr(Yi[sr],co),delete Yi[sr]._source;return Ss(yn)}(this.options.rows||[],yn);this._readCells(Yi);let sr,co=this.options.filter;co&&"number"==typeof co.from&&"number"==typeof co.to?co={from:br(mr(this.options),co.from),to:br(mr(this.options),co.to)}:co&&co.ref&&co.columns&&(sr=co,co=null);const yr=[];for(let Va in this._validations)Object.prototype.hasOwnProperty.call(this._validations,Va)&&yr.push(this._validations[Va]);let Ur=null,ss=this.options.defaultCellStyle;this._hasDisabledCells&&(ss=ss?Object.assign({disabled:!1},ss):{disabled:!1}),ss&&(Ur=this._lookupStyle(ss));const gs=this.options.freezePane||{},Pr=this.options.defaults||{},ys=this.options.rows?this._getLastRow():1,da=this.options.rows?this._getLastCol():1;return(({frozenColumns:Tt,frozenRows:ht,columns:yn,defaults:vi,data:Yi,index:co,mergeCells:sr,autoFilter:yr,filter:Ur,showGridLines:ss,hyperlinks:gs,validations:Pr,defaultCellStyleId:ys,rtl:da,legacyDrawing:Va,drawing:ga,lastRow:al,lastCol:ur,hasDisabledCells:La})=>`${Gn}\n<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" mc:Ignorable="x14ac">\n   ${al&&ur?`<dimension ref="A1:${br(al-1,ur-1)}" />`:""}\n\n   <sheetViews>\n     <sheetView ${da?'rightToLeft="1"':""} ${0===co?'tabSelected="1"':""} workbookViewId="0" ${!1===ss?'showGridLines="0"':""}>\n     ${ht||Tt?`\n       <pane state="frozen"\n         ${Tt?`xSplit="${Tt}"`:""}\n         ${ht?`ySplit="${ht}"`:""}\n         topLeftCell="${String.fromCharCode(65+(Tt||0))+((ht||0)+1)}"\n       />`:""}\n     </sheetView>\n   </sheetViews>\n\n   <sheetFormatPr x14ac:dyDescent="0.25" ${vi.skipCustomHeight?"":'customHeight="1"'} defaultRowHeight="${vi.rowHeight?.75*vi.rowHeight:15}"\n     ${vi.columnWidth?`defaultColWidth="${ri(vi.columnWidth)}"`:""} />\n\n   ${null!=ys||yn&&yn.length>0?`\n     <cols>\n       ${yn&&yn.length?"":`\n         <col min="1" max="16384" style="${ys}"\n              ${vi.columnWidth?`width="${ri(vi.columnWidth)}"`:""} /> `}\n       ${ai(yn,(ra,Ls)=>{const vn="number"==typeof ra.index?ra.index+1:Ls+1;return 0===ra.width?`<col ${null!=ys?`style="${ys}"`:""}\n                        min="${vn}" max="${vn}" hidden="1" customWidth="1" />`:`<col ${null!=ys?`style="${ys}"`:""}\n                      min="${vn}" max="${vn}" customWidth="1"\n                      ${ra.autoWidth?`width="${(7*ra.width+5)/7*256/256}" bestFit="1"`:`width="${ri(ra.width)}"`} />`})}\n     </cols>`:""}\n\n   <sheetData>\n     ${ai(Yi,(ra,Ls)=>`\n         <row r="${"number"==typeof ra.index?ra.index+1:Ls+1}" x14ac:dyDescent="0.25"\n              ${ra.level?`outlineLevel="${ra.level}"`:""}\n              ${0===ra.height?'hidden="1"':ra.height?`ht="${function mo(Tt){return.75*Tt}(ra.height)}" customHeight="1"`:""}>\n           ${ai(ra.data,Xe=>`\n             <c r="${Xe.ref}" ${Xe.style?`s="${Xe.style}"`:""} ${Xe.type?`t="${Xe.type}"`:""}>\n               ${null!=Xe.formula?function pr(Tt){return"string"==typeof Tt?`<f>${Fo(Tt)}</f>`:`<f t="array" ref="${Tt.ref}">${Fo(Tt.src)}</f>`}(Xe.formula):""}\n               ${null!=Xe.value?`<v>${Fo(Xe.value)}</v>`:""}\n             </c>`)}\n         </row>\n       `)}\n   </sheetData>\n\n   ${La?'<sheetProtection sheet="1" objects="1" scenarios="1"/>':""}\n\n   ${yr?`<autoFilter ref="${yr.from}:${yr.to}"/>`:Ur?sl(Ur):""}\n\n   ${sr.length?`\n     <mergeCells count="${sr.length}">\n       ${ai(sr,ra=>`<mergeCell ref="${ra}"/>`)}\n     </mergeCells>`:""}\n\n   ${Pr.length?`\n     <dataValidations>\n       ${ai(Pr,ra=>`\n         <dataValidation sqref="${ra.sqref.join(" ")}"\n                         showErrorMessage="${ra.showErrorMessage}"\n                         type="${Fo(ra.type)}"\n                         ${"list"!==ra.type?`operator="${Fo(ra.operator)}"`:""}\n                         allowBlank="${ra.allowBlank}"\n                         showDropDown="${ra.showDropDown}"\n                         ${ra.error?`error="${Fo(ra.error)}"`:""}\n                         ${ra.errorTitle?`errorTitle="${Fo(ra.errorTitle)}"`:""}>\n           ${ra.formula1?`<formula1>${Fo(ra.formula1)}</formula1>`:""}\n           ${ra.formula2?`<formula2>${Fo(ra.formula2)}</formula2>`:""}\n         </dataValidation>`)}\n     </dataValidations>`:""}\n\n   ${gs.length?`\n     <hyperlinks>\n       ${ai(gs,ra=>`\n         <hyperlink ref="${ra.ref}" r:id="${ra.rId}"/>`)}\n     </hyperlinks>`:""}\n\n   <pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3" />\n   ${ga?`<drawing r:id="${ga}"/>`:""}\n   ${Va?`<legacyDrawing r:id="${Va}"/>`:""}\n</worksheet>`)({frozenColumns:this.options.frozenColumns||gs.colSplit,frozenRows:this.options.frozenRows||gs.rowSplit,columns:this.options.columns,defaults:Pr,data:Yi,index:ht,mergeCells:yn,autoFilter:co,filter:sr,showGridLines:this.options.showGridLines,hyperlinks:this._hyperlinks,validations:yr,defaultCellStyleId:Ur,rtl:void 0!==this.options.rtl?this.options.rtl:Pr.rtl,legacyDrawing:this._comments.length?`vml${this.options.sheetIndex}`:null,drawing:this._drawings.length?`drw${this.options.sheetIndex}`:null,lastRow:ys,lastCol:da,hasDisabledCells:this._hasDisabledCells})}commentsXML(){if(this._comments.length)return(({comments:Tt})=>`${Gn}\n<comments xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">\n  <authors>\n    <author></author>\n  </authors>\n  <commentList>\n    ${ai(Tt,ht=>`\n      <comment ref="${ht.ref}" authorId="0">\n        <text>\n          <r>\n            <rPr>\n              <sz val="8"/>\n              <color indexed="81"/>\n              <rFont val="Tahoma"/>\n              <charset val="1"/>\n            </rPr>\n            <t>${Fo(ht.text)}</t>\n          </r>\n        </text>\n      </comment>`)}\n  </commentList>\n</comments>`)({comments:this._comments})}drawingsXML(ht){if(this._drawings.length){let yn={};return{main:(Tt=this._drawings.map(Yi=>{let co=Ar(Yi.topLeftCell),sr=yn[Yi.image];return sr||(sr=yn[Yi.image]={rId:`img${Yi.image}`,target:ht[Yi.image].target}),{col:co.col,colOffset:No(Yi.offsetX),row:co.row,rowOffset:No(Yi.offsetY),width:No(Yi.width),height:No(Yi.height),imageId:sr.rId}}),`${Gn}\n<xdr:wsDr xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"\n          xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"\n          xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">\n  ${ai(Tt,(ht,yn)=>`\n    <xdr:oneCellAnchor editAs="oneCell">\n      <xdr:from>\n        <xdr:col>${ht.col}</xdr:col>\n        <xdr:colOff>${ht.colOffset}</xdr:colOff>\n        <xdr:row>${ht.row}</xdr:row>\n        <xdr:rowOff>${ht.rowOffset}</xdr:rowOff>\n      </xdr:from>\n      <xdr:ext cx="${ht.width}" cy="${ht.height}" />\n      <xdr:pic>\n        <xdr:nvPicPr>\n          <xdr:cNvPr id="${yn+1}" name="Picture ${yn+1}"/>\n          <xdr:cNvPicPr/>\n        </xdr:nvPicPr>\n        <xdr:blipFill>\n          <a:blip r:embed="${ht.imageId}"/>\n          <a:stretch>\n            <a:fillRect/>\n          </a:stretch>\n        </xdr:blipFill>\n        <xdr:spPr>\n          <a:prstGeom prst="rect">\n            <a:avLst/>\n          </a:prstGeom>\n        </xdr:spPr>\n      </xdr:pic>\n      <xdr:clientData/>\n    </xdr:oneCellAnchor>`)}\n</xdr:wsDr>`),rels:Ao(yn)}}var Tt}legacyDrawing(){if(this._comments.length)return(({comments:Tt})=>`<xml xmlns:v="urn:schemas-microsoft-com:vml"\n     xmlns:o="urn:schemas-microsoft-com:office:office"\n     xmlns:x="urn:schemas-microsoft-com:office:excel">\n  <v:shapetype coordsize="21600,21600" id="_x0000_t202" path="m,l,21600r21600,l21600,xe">\n    <v:stroke joinstyle="miter"/>\n    <v:path gradientshapeok="t" o:connecttype="rect"/>\n  </v:shapetype>\n  ${ai(Tt,ht=>`\n    <v:shape type="#_x0000_t202" style="visibility: hidden" fillcolor="#ffffe1" o:insetmode="auto">\n      <v:shadow on="t" color="black" obscured="t"/>\n      <x:ClientData ObjectType="Note">\n        <x:MoveWithCells/>\n        <x:SizeWithCells/>\n        <x:Anchor>${ht.anchor}</x:Anchor>\n        <x:AutoFill>False</x:AutoFill>\n        <x:Row>${ht.row}</x:Row>\n        <x:Column>${ht.col}</x:Column>\n      </x:ClientData>\n    </v:shape>`)}\n</xml>`)({comments:this._comments})}_lookupString(ht){const yn="$"+ht,vi=this._strings.indexes[yn];let Yi;return void 0!==vi?Yi=vi:(Yi=this._strings.indexes[yn]=this._strings.uniqueCount,this._strings.uniqueCount++),this._strings.count++,Yi}_lookupStyle(ht){const yn=JSON.stringify(ht);if("{}"===yn)return 0;let vi=as(yn,this._styles);return vi<0&&(vi=this._styles.push(yn)-1),vi+1}_lookupBorder(ht){const yn=JSON.stringify(ht);if("{}"===yn)return;let vi=as(yn,this._borders);return vi<0&&(vi=this._borders.push(yn)-1),vi+1}_readCells(ht){for(let yn=0;yn<ht.length;yn++){const vi=ht[yn],Yi=vi.cells;vi.data=[];for(let co=0;co<Yi.length;co++){const sr=this._cell(Yi[co],vi.index,co);sr&&vi.data.push(sr)}}}_cell(ht,yn,vi){if(!ht||ht===xs)return null;let Yi=ht.value,co={};ht.borderLeft&&(co.left=ht.borderLeft),ht.borderRight&&(co.right=ht.borderRight),ht.borderTop&&(co.top=ht.borderTop),ht.borderBottom&&(co.bottom=ht.borderBottom),ht.dBorders&&(co.diagonal=ht.dBorders),co=this._lookupBorder(co);const sr=this.options.defaultCellStyle||{};let yr={borderId:co};(ys=>{ys("color"),ys("background"),ys("bold"),ys("italic"),ys("underline"),ys("fontFamily")||ys("fontName","fontFamily"),ys("fontSize"),ys("format"),ys("textAlign")||ys("hAlign","textAlign"),ys("verticalAlign")||ys("vAlign","verticalAlign"),ys("wrap"),ys("indent"),ys("disabled")||ys("enable")&&(yr.disabled=!yr.enable,delete yr.enable),yr.disabled&&(this._hasDisabledCells=!0)})((ys,da)=>{let Va=ht[ys];if(void 0===Va&&(Va=sr[ys]),void 0!==Va)return yr[da||ys]=Va,!0});const ss=(this.options.columns||[])[vi];let gs=typeof Yi;if(ss&&ss.autoWidth&&(!ht.colSpan||1===ht.colSpan)){let ys=Yi;"number"===gs&&(ys=ki.Z.toString(Yi,ht.format)),ss.width=Math.max(ss.width||0,String(ys).length)}"string"===gs?(Yi=function Ii(Tt){return String(Tt).replace(/[\x00-\x09\x0B\x0C\x0E-\x1F]/g,"").replace(/\r?\n/g,"\r\n")}(Yi),Yi=this._lookupString(Yi),gs="s"):"number"===gs?gs="n":"boolean"===gs?(gs="b",Yi=Number(Yi)):Yi&&Yi.getTime?(gs=null,Yi=function oo(Tt){const ht=function Zi(Tt,ht,yn,vi){return(Tt+(ht+(yn+vi/1e3)/60)/60)/24}(Tt.getHours(),Tt.getMinutes(),Tt.getSeconds(),Tt.getMilliseconds()),yn=function wn(Tt,ht,yn){return bo(Tt,ht,yn)-jo}(Tt.getFullYear(),Tt.getMonth(),Tt.getDate());return yn<0?yn-1+ht:yn+ht}(Yi),yr.format||(yr.format="mm-dd-yy")):(gs=null,Yi=null),yr=this._lookupStyle(yr);const Pr=br(yn,vi);return ht.validation&&this._addValidation(ht.validation,Pr),ht.comment&&this._comments.push({ref:Pr,text:ht.comment,row:yn,col:vi,anchor:[vi+1,15,yn,10,vi+3,15,yn+3,4].join(", ")}),{value:Yi,formula:ht.formula,type:gs,style:yr,ref:Pr}}_addValidation(ht,yn){const vi={showErrorMessage:"reject"===ht.type?1:0,formula1:ht.from,formula2:ht.to,type:Gs[ht.dataType]||ht.dataType,operator:Yr[ht.comparerType]||ht.comparerType,allowBlank:ht.allowNulls?1:0,showDropDown:ht.showButton?0:1,error:ht.messageTemplate,errorTitle:ht.titleTemplate},Yi=JSON.stringify(vi);this._validations[Yi]||(this._validations[Yi]=vi,vi.sqref=[]),this._validations[Yi].sqref.push(yn)}_getLastRow(){return lr(this.options.rows)}_getLastCol(){let ht=0;return this.options.rows.forEach(function(yn){yn.cells&&(ht=Math.max(ht,lr(yn.cells)))}),ht}}function lr(Tt){let ht=Tt.length;return Tt.forEach(function(yn){yn.index&&yn.index>=ht&&(ht=yn.index+1)}),ht}const Yr={greaterThanOrEqualTo:"greaterThanOrEqual",lessThanOrEqualTo:"lessThanOrEqual"},Gs={number:"decimal"},fi={General:0,0:1,"0.00":2,"#,##0":3,"#,##0.00":4,"0%":9,"0.00%":10,"0.00E+00":11,"# ?/?":12,"# ??/??":13,"mm-dd-yy":14,"d-mmm-yy":15,"d-mmm":16,"mmm-yy":17,"h:mm AM/PM":18,"h:mm:ss AM/PM":19,"h:mm":20,"h:mm:ss":21,"m/d/yy h:mm":22,"#,##0 ;(#,##0)":37,"#,##0 ;[Red](#,##0)":38,"#,##0.00;(#,##0.00)":39,"#,##0.00;[Red](#,##0.00)":40,"mm:ss":45,"[h]:mm:ss":46,"mmss.0":47,"##0.0E+0":48,"@":49,"[$-404]e/m/d":27,"m/d/yy":30,t0:59,"t0.00":60,"t#,##0":61,"t#,##0.00":62,"t0%":67,"t0.00%":68,"t# ?/?":69,"t# ??/??":70};function _t(Tt){let ht=function Ho(Tt){function ht(vi){let Yi=parseInt(vi,10).toString(16);return Yi.length<2?"0"+Yi:Yi}let yn=/^rgba?\((\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([0-9.]+)\s*)?\)/i.exec(Tt.trim());return yn?"#"+ht(255*(yn[4]?parseFloat(yn[4]):1)|0)+ht(yn[1])+ht(yn[2])+ht(yn[3]):Tt}(Tt);return ht.length<6&&(ht=ht.replace(/(\w)/g,function(yn,vi){return vi+vi})),ht=ht.substring(1).toUpperCase(),ht.length<8&&(ht="FF"+ht),ht}class Zn{constructor(ht){this.options=ht||{},this._strings={indexes:{},count:0,uniqueCount:0},this._styles=[],this._borders=[],this._images=this.options.images,this._imgId=0,this._sheets=(0,e.Z)(this.options.sheets||[],(yn,vi)=>(yn.defaults=this.options,yn.sheetIndex=vi+1,new yo(yn,this._strings,this._styles,this._borders)))}imageFilename(ht){const yn=++this._imgId;switch(ht){case"image/jpg":case"image/jpeg":return`image${yn}.jpg`;case"image/png":return`image${yn}.png`;case"image/gif":return`image${yn}.gif`;default:return`image${yn}.bin`}}toZIP(){const ht=function Xi(){return new li}(),yn=ht.folder("docProps");yn.file("core.xml",(({creator:Tt,lastModifiedBy:ht,created:yn,modified:vi})=>`${Gn}\n <cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties"\n   xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/"\n   xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n   <dc:creator>${Fo(Tt)}</dc:creator>\n   <cp:lastModifiedBy>${Fo(ht)}</cp:lastModifiedBy>\n   <dcterms:created xsi:type="dcterms:W3CDTF">${Fo(yn)}</dcterms:created>\n   <dcterms:modified xsi:type="dcterms:W3CDTF">${Fo(vi)}</dcterms:modified>\n</cp:coreProperties>`)({creator:this.options.creator||"Kendo UI",lastModifiedBy:this.options.creator||"Kendo UI",created:this.options.date||(new Date).toJSON(),modified:this.options.date||(new Date).toJSON()}));const vi=this._sheets.length;yn.file("app.xml",(({sheets:Tt})=>`${Gn}\n<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes">\n  <Application>Microsoft Excel</Application>\n  <DocSecurity>0</DocSecurity>\n  <ScaleCrop>false</ScaleCrop>\n  <HeadingPairs>\n    <vt:vector size="2" baseType="variant">\n      <vt:variant>\n        <vt:lpstr>Worksheets</vt:lpstr>\n      </vt:variant>\n      <vt:variant>\n        <vt:i4>${Tt.length}</vt:i4>\n      </vt:variant>\n    </vt:vector>\n  </HeadingPairs>\n  <TitlesOfParts>\n    <vt:vector size="${Tt.length}" baseType="lpstr">${ai(Tt,(ht,yn)=>ht.options.title?`<vt:lpstr>${Fo(ht.options.title)}</vt:lpstr>`:`<vt:lpstr>Sheet${yn+1}</vt:lpstr>`)}</vt:vector>\n  </TitlesOfParts>\n  <LinksUpToDate>false</LinksUpToDate>\n  <SharedDoc>false</SharedDoc>\n  <HyperlinksChanged>false</HyperlinksChanged>\n  <AppVersion>14.0300</AppVersion>\n</Properties>`)({sheets:this._sheets})),ht.folder("_rels").file(".rels",Io);const co=ht.folder("xl");if(co.folder("_rels").file("workbook.xml.rels",(({count:Tt})=>`${Gn}\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n  ${rt(Tt,ht=>`\n    <Relationship Id="rId${ht+1}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet${ht+1}.xml" />`)}\n  <Relationship Id="rId${Tt+1}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml" />\n  <Relationship Id="rId${Tt+2}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml" />\n</Relationships>`)({count:vi})),this._images){const vn=co.folder("media");Object.keys(this._images).forEach(Xe=>{const Ke=this._images[Xe],ze=this.imageFilename(Ke.type);vn.file(ze,Ke.data),Ke.target=`../media/${ze}`})}const yr={};co.file("workbook.xml",(({sheets:Tt,filterNames:ht,userNames:yn})=>`${Gn}\n<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">\n  <fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="9303" />\n  <workbookPr defaultThemeVersion="124226" />\n  <bookViews>\n    <workbookView xWindow="240" yWindow="45" windowWidth="18195" windowHeight="7995" />\n  </bookViews>\n  <sheets>\n  ${ai(Tt,({options:vi},Yi)=>{const sr=vi.state||"visible";return`<sheet name="${Fo(vi.name||vi.title||`Sheet${Yi+1}`)}" state="${sr}" sheetId="${Yi+1}" r:id="rId${Yi+1}" />`})}\n  </sheets>\n  ${ht.length||yn.length?`\n    <definedNames>\n      ${ai(ht,vi=>`\n         <definedName name="_xlnm._FilterDatabase" hidden="1" localSheetId="${vi.localSheetId}">${Fo(function Jt(Tt){return/^\'/.test(Tt)||/^[a-z_][a-z0-9_]*$/i.test(Tt)?Tt:"'"+Tt.replace(/\x27/g,"\\'")+"'"}(vi.name))}!${Fo(vi.from)}:${Fo(vi.to)}</definedName>`)}\n      ${ai(yn,vi=>`\n         <definedName name="${vi.name}" hidden="${vi.hidden?1:0}" ${null!=vi.localSheetId?`localSheetId="${vi.localSheetId}"`:""}>${Fo(vi.value)}</definedName>`)}\n    </definedNames>`:""}\n  <calcPr fullCalcOnLoad="1" calcId="145621" />\n</workbook>`)({sheets:this._sheets,filterNames:(0,e.Z)(this._sheets,function(vn,Xe){const Ke=vn.options,ze=Ke.name||Ke.title||"Sheet"+(Xe+1);yr[ze.toLowerCase()]=Xe;const St=Ke.filter;if(St){if(St.ref){let it=St.ref.split(":"),Dt=Ar(it[0]),Hn=Ar(it[1]);return{localSheetId:Xe,name:ze,from:Ti(Dt.row,Dt.col),to:Ti(Hn.row,Hn.col)}}if(typeof St.from<"u"&&typeof St.to<"u")return{localSheetId:Xe,name:ze,from:Ti(mr(Ke),St.from),to:Ti(mr(Ke),St.to)}}}),userNames:(0,e.Z)(this.options.names||[],function(vn){return{name:vn.localName,localSheetId:vn.sheet?yr[vn.sheet.toLowerCase()]:null,value:vn.value,hidden:vn.hidden}})}));const Ur=co.folder("worksheets"),ss=co.folder("drawings"),gs=ss.folder("_rels"),Pr=Ur.folder("_rels"),ys=[],da=[];for(let vn=0;vn<vi;vn++){const Xe=this._sheets[vn],Ke=`sheet${vn+1}.xml`,ze=Xe.toXML(vn),St=Xe.relsToXML(),it=Xe.commentsXML(),Dt=Xe.legacyDrawing(),Hn=Xe.drawingsXML(this._images);if(St&&Pr.file(Ke+".rels",St),it){let Ui=`comments${Xe.options.sheetIndex}.xml`;co.file(Ui,it),ys.push(Ui)}if(Dt&&ss.file(`vmlDrawing${Xe.options.sheetIndex}.vml`,Dt),Hn){let Ui=`drawing${Xe.options.sheetIndex}.xml`;ss.file(Ui,Hn.main),gs.file(`${Ui}.rels`,Hn.rels),da.push(Ui)}Ur.file(Ke,ze)}const Va=(0,e.Z)(this._borders,ji),ga=(0,e.Z)(this._styles,ji),al=function(vn){return vn.underline||vn.bold||vn.italic||vn.color||vn.fontFamily||vn.fontSize},La=(0,e.Z)(ga,function(vn){if(vn.fontSize&&(vn.fontSize=function(vn){let Ke,Xe=Number(vn);return Xe&&(Ke=3*Xe/4),Ke}(vn.fontSize)),vn.color&&(vn.color=_t(vn.color)),al(vn))return vn}),ra=(0,e.Z)(ga,function(vn){if(vn.format&&void 0===fi[vn.format])return vn}),Ls=(0,e.Z)(ga,function(vn){if(vn.background)return vn.background=_t(vn.background),vn});return co.file("styles.xml",(({formats:Tt,fonts:ht,fills:yn,borders:vi,styles:Yi})=>`${Gn}\n<styleSheet\n    xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"\n    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"\n    mc:Ignorable="x14ac"\n    xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">\n  <numFmts count="${Tt.length}">\n  ${ai(Tt,(co,sr)=>`\n    <numFmt formatCode="${Fo(co.format)}" numFmtId="${165+sr}" />`)}\n  </numFmts>\n  <fonts count="${ht.length+1}" x14ac:knownFonts="1">\n    <font>\n       <sz val="11" />\n       <color theme="1" />\n       <name val="Calibri" />\n       <family val="2" />\n       <scheme val="minor" />\n    </font>\n    ${ai(ht,co=>`\n    <font>\n      ${co.bold?"<b/>":""}\n      ${co.italic?"<i/>":""}\n      ${co.underline?"<u/>":""}\n      <sz val="${co.fontSize||11}" />\n      ${co.color?`<color rgb="${Fo(co.color)}" />`:'<color theme="1" />'}\n      ${co.fontFamily?`\n        <name val="${Fo(co.fontFamily)}" />\n        <family val="2" />\n      `:'\n        <name val="Calibri" />\n        <family val="2" />\n        <scheme val="minor" />\n      '}\n    </font>`)}\n  </fonts>\n  <fills count="${yn.length+2}">\n      <fill><patternFill patternType="none"/></fill>\n      <fill><patternFill patternType="gray125"/></fill>\n    ${ai(yn,co=>"\n      "+(co.background?`\n        <fill>\n          <patternFill patternType="solid">\n              <fgColor rgb="${Fo(co.background)}"/>\n          </patternFill>\n        </fill>\n      `:""))}\n  </fills>\n  <borders count="${vi.length+1}">\n    <border><left/><right/><top/><bottom/><diagonal/></border>\n    ${ai(vi,kr)}\n  </borders>\n  <cellStyleXfs count="1">\n    <xf borderId="0" fillId="0" fontId="0" />\n  </cellStyleXfs>\n  <cellXfs count="${Yi.length+1}">\n    <xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" />\n    ${ai(Yi,co=>`\n      <xf xfId="0"\n          ${co.fontId?`fontId="${co.fontId}" applyFont="1"`:""}\n          ${co.fillId?`fillId="${co.fillId}" applyFill="1"`:""}\n          ${co.numFmtId?`numFmtId="${co.numFmtId}" applyNumberFormat="1"`:""}\n          ${co.textAlign||co.verticalAlign||co.wrap?'applyAlignment="1"':""}\n          ${co.borderId?`borderId="${co.borderId}" applyBorder="1"`:""}\n          ${null!=co.disabled?'applyProtection="1"':""}>\n        ${co.textAlign||co.verticalAlign||co.wrap?`\n        <alignment\n          ${co.textAlign?`horizontal="${Fo(co.textAlign)}"`:""}\n          ${co.verticalAlign?`vertical="${Fo(co.verticalAlign)}"`:""}\n          ${co.indent?`indent="${Fo(co.indent)}"`:""}\n          ${co.wrap?'wrapText="1"':""} />\n        `:""}\n        ${null!=co.disabled?`\n        <protection locked="${co.disabled?1:0}" />\n        `:""}\n      </xf>\n    `)}\n  </cellXfs>\n  <cellStyles count="1">\n    <cellStyle name="Normal" xfId="0" builtinId="0"/>\n  </cellStyles>\n  <dxfs count="0" />\n  <tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleMedium9" />\n</styleSheet>`)({fonts:La,fills:Ls,formats:ra,borders:Va,styles:(0,e.Z)(ga,function(vn){const Xe={};return al(vn)&&(Xe.fontId=as(vn,La)+1),vn.background&&(Xe.fillId=as(vn,Ls)+2),Xe.textAlign=vn.textAlign,Xe.indent=vn.indent,Xe.verticalAlign=vn.verticalAlign,Xe.wrap=vn.wrap,Xe.borderId=vn.borderId,vn.format&&(Xe.numFmtId=void 0!==fi[vn.format]?fi[vn.format]:165+as(vn,ra)),null!=vn.disabled&&(Xe.disabled=vn.disabled),Xe})})),co.file("sharedStrings.xml",(({count:Tt,uniqueCount:ht,indexes:yn})=>`${Gn}\n<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="${Tt}" uniqueCount="${ht}">\n  ${ai(Object.keys(yn),vi=>`\n    <si><t xml:space="preserve">${Fo(vi.substring(1))}</t></si>`)}\n</sst>`)(this._strings)),ht.file("[Content_Types].xml",(({sheetCount:Tt,commentFiles:ht,drawingFiles:yn})=>`${Gn}\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\n  <Default Extension="png" ContentType="image/png"/>\n  <Default Extension="gif" ContentType="image/gif"/>\n  <Default Extension="jpg" ContentType="image/jpeg"/>\n  <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" />\n  <Default Extension="xml" ContentType="application/xml" />\n  <Default Extension="vml" ContentType="application/vnd.openxmlformats-officedocument.vmlDrawing"/>\n  <Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" />\n  <Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/>\n  <Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/>\n  ${rt(Tt,vi=>`<Override PartName="/xl/worksheets/sheet${vi+1}.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" />`)}\n  ${ai(ht,vi=>`<Override PartName="/xl/${vi}" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"/>`)}\n  ${ai(yn,vi=>`<Override PartName="/xl/drawings/${vi}" ContentType="application/vnd.openxmlformats-officedocument.drawing+xml"/>`)}\n  <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml" />\n  <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml" />\n</Types>`)({sheetCount:vi,commentFiles:ys,drawingFiles:da})),ht}toDataURL(){const ht=this.toZIP();return ht.generateAsync?ht.generateAsync(Lo).then(Nr):Nr(ht.generate(Lo))}toBlob(){const ht=this.toZIP();return ht.generateAsync?ht.generateAsync(or):new Blob([ht.generate(xr)],{type:Bi})}}function Cr(Tt,ht){let yn="";return ht&&(yn+="<"+Tt+' style="'+function qo(Tt){let ht="thin";return 2===Tt?ht="medium":3===Tt&&(ht="thick"),ht}(ht.size)+'">',ht.color&&(yn+='<color rgb="'+_t(ht.color)+'"/>'),yn+="</"+Tt+">"),yn}function kr(Tt){let ht=Tt.diagonal?Tt.diagonal.type:0;return`<border ${2&ht?'diagonalUp="true"':""} ${1&ht?'diagonalDown="true"':""}>\n      ${Cr("left",Tt.left)}\n      ${Cr("right",Tt.right)}\n      ${Cr("top",Tt.top)}\n      ${Cr("bottom",Tt.bottom)}\n      ${Cr("diagonal",Tt.diagonal)}\n    </border>`}const xs={};function Ss(Tt){return Tt.sort(function(ht,yn){return ht.index-yn.index})}function Ua(Tt,ht){Tt.indexOf(ht)<0&&Tt.push(ht)}function $o(Tt,ht){for(let yn=0;yn<Tt.length;++yn){const Yi=Tt[yn].split(":");let co=Yi[0];if(co===ht){let sr=Yi[1];return co=Ar(co),sr=Ar(sr),{rowSpan:sr.row-co.row+1,colSpan:sr.col-co.col+1}}}}function Ar(Tt){const vi=/^([a-z]+)(\d+)$/i.exec(Tt);return{row:function yn(Yi){return parseInt(Yi,10)-1}(vi[2]),col:function ht(Yi){let co=Yi.toUpperCase(),sr=0;for(let yr=0;yr<co.length;++yr)sr=26*sr+co.charCodeAt(yr)-64;return sr-1}(vi[1])}}function No(Tt){return Math.round(9525*Tt)}function qr(Tt,ht){const vi=Tt.index,Yi=Tt._source.cells,co=Tt.cells;if(Yi)for(let sr=0;sr<Yi.length;sr++){const yr=Yi[sr]||xs;let Ur=yr.rowSpan||1,ss=yr.colSpan||1;const gs=js(co,yr),Pr=br(vi,gs);if(1===Ur&&1===ss){const ys=$o(ht.mergedCells,Pr);ys&&(ss=ys.colSpan,Ur=ys.rowSpan)}if(ls(yr,co,gs,ss),(Ur>1||ss>1)&&Ua(ht.mergedCells,Pr+":"+br(vi+Ur-1,gs+ss-1)),Ur>1)for(let ys=vi+1;ys<vi+Ur;ys++){let da=ht.rowsByIndex[ys];da||(da=ht.rowsByIndex[ys]={index:ys,cells:[]},ht.rowData.push(da)),ls(yr,da.cells,gs-1,ss+1)}}}function js(Tt,ht){let yn;return"number"==typeof ht.index?(yn=ht.index,Ds(Tt,ht,ht.index)):yn=function Zr(Tt,ht){let yn=Tt.length;for(let vi=0;vi<Tt.length+1;vi++)if(!Tt[vi]){Tt[vi]=ht,yn=vi;break}return yn}(Tt,ht),yn}function Ds(Tt,ht,yn){Tt[yn]=ht}function ls(Tt,ht,yn,vi){for(let Yi=1;Yi<vi;Yi++)Ds(ht,{borderTop:Tt.borderTop,borderRight:Tt.borderRight,borderBottom:Tt.borderBottom,borderLeft:Tt.borderLeft},yn+Yi)}const Hs=({ref:Tt,columns:ht,generators:yn})=>`\n<autoFilter ref="${Tt}">\n  ${ai(ht,vi=>`\n    <filterColumn colId="${vi.index}">\n      ${yn[vi.filter](vi)}\n    </filterColumn>\n  `)}\n</autoFilter>`,Js=({logic:Tt,criteria:ht})=>`\n<customFilters ${"and"===Tt?'and="1"':""}>\n${ai(ht,yn=>{let vi=sl.customOperator(yn);return`<customFilter ${vi?`operator="${vi}"`:""} val="${sl.customValue(yn)}"/>`})}\n</customFilters>`,Wa=({type:Tt})=>`<dynamicFilter type="${sl.dynamicFilterType(Tt)}" />`,ll=({type:Tt,value:ht})=>`<top10 percent="${/percent$/i.test(Tt)?1:0}"\n       top="${/^top/i.test(Tt)?1:0}"\n       val="${ht}" />`,Za=({blanks:Tt,values:ht})=>`<filters ${Tt?'blank="1"':""}>\n    ${ai(ht,yn=>`\n      <filter val="${yn}" />`)}\n  </filters>`;function sl(Tt){return Hs({ref:Tt.ref,columns:Tt.columns,generators:{custom:Js,dynamic:Wa,top:ll,value:Za}})}sl.customOperator=function(Tt){return{eq:"equal",gt:"greaterThan",gte:"greaterThanOrEqual",lt:"lessThan",lte:"lessThanOrEqual",ne:"notEqual",doesnotstartwith:"notEqual",doesnotendwith:"notEqual",doesnotcontain:"notEqual",doesnotmatch:"notEqual"}[Tt.operator.toLowerCase()]},sl.customValue=function(Tt){function ht(yn){return yn.replace(/([*?])/g,"~$1")}switch(Tt.operator.toLowerCase()){case"startswith":case"doesnotstartwith":return ht(Tt.value)+"*";case"endswith":case"doesnotendwith":return"*"+ht(Tt.value);case"contains":case"doesnotcontain":return"*"+ht(Tt.value)+"*";default:return Tt.value}},sl.dynamicFilterType=function(Tt){return{quarter1:"Q1",quarter2:"Q2",quarter3:"Q3",quarter4:"Q4",january:"M1",february:"M2",march:"M3",april:"M4",may:"M5",june:"M6",july:"M7",august:"M8",september:"M9",october:"M10",november:"M11",december:"M12"}[Tt.toLowerCase()]||Tt}},31119:(he,y,i)=>{"use strict";i.d(y,{Z:()=>o});let e={toString:a=>a};const o=class n{static register(l){e=l}static toString(l,u){return e.toString(l,u)}}},74881:(he,y,i)=>{"use strict";function e(n,o){return n.reduce((a,l,u)=>{const d=o(l,u);return null!=d&&a.push(d),a},[])}i.d(y,{Z:()=>e})},90438:(he,y,i)=>{"use strict";i.d(y,{qg:()=>a,AJ:()=>o,w5:()=>f,tF:()=>A,qS:()=>R,cv:()=>g,wV:()=>M,Wl:()=>O,aF:()=>U,Lz:()=>J,on:()=>p,VM:()=>re});const o=En=>{const{anchorRect:un,anchorAlign:Ki,elementRect:Fn,elementAlign:oi,margin:It={}}=En,Bt=Ki.horizontal,xt=Ki.vertical,wt=oi.horizontal,Mt=oi.vertical;let pt=It.horizontal||0,Lt=It.vertical||0,tt=un.top,Ne=un.left;return"bottom"===xt&&(tt+=un.height),("center"===xt||"middle"===xt)&&(tt+=Math.round(un.height/2)),"bottom"===Mt&&(tt-=Fn.height,Lt*=-1),("center"===Mt||"middle"===Mt)&&(tt-=Math.round(Fn.height/2),Lt*=-1),"right"===Bt&&(Ne+=un.width),("center"===Bt||"middle"===Bt)&&(Ne+=Math.round(un.width/2)),"right"===wt&&(Ne-=Fn.width,pt*=-1),("center"===wt||"middle"===wt)&&(Ne-=Math.round(Fn.width/2),pt*=-1),{top:tt+Lt,left:Ne+pt}};function a(En,un){return{top:En.top+un.y,left:En.left+un.x,height:En.height,width:En.width}}function l(En){return En.ownerDocument||En.document||En}const d=En=>l(En).defaultView,A=En=>l(En).documentElement;let _=0;function R(En){const un=d(En),Ki=A(En),Fn={height:un.innerHeight,width:un.innerWidth};return Ki.scrollHeight-Ki.clientHeight>0&&(Fn.width-=function C(){if(!_&&typeof document<"u"){const En=document.createElement("div");En.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",En.innerHTML="&nbsp;",document.body.appendChild(En),_=En.offsetWidth-En.scrollWidth,document.body.removeChild(En)}return _}()),Fn}const f=En=>{if(!En.getBoundingClientRect){const It=R(En);return{bottom:It.height,left:0,right:It.width,top:0}}const{bottom:un,left:Ki,right:Fn,top:oi}=En.getBoundingClientRect();return{bottom:un,left:Ki,right:Fn,top:oi}},g=En=>{let un=En.getBoundingClientRect(),{left:Ki,top:Fn}=un;return!un.height&&!un.width&&(un=(En=>{const{display:un,left:Ki,position:Fn}=En.style;En.style.display="",En.style.left="-10000px",En.style.position="absolute";const oi=En.getBoundingClientRect();return En.style.display=un,En.style.left=Ki,En.style.position=Fn,oi})(En)),{top:Fn,left:Ki,height:un.height,width:un.width}},M=(En,un)=>{const Ki=[];let Fn=En.parentNode;for(;Fn&&(Ki.push(Fn),Fn!==un);)Fn=Fn.parentNode;return Ki};function p(En){const un=A(En),Ki=d(En);return{x:Ki.pageXOffset||un.scrollLeft||0,y:Ki.pageYOffset||un.scrollTop||0}}const E=En=>En===(En.ownerDocument||{}).body?p(En):{x:En.scrollLeft,y:En.scrollTop},I=En=>{let un=En.offsetParent;for(;un&&"static"===un.style.position;)un=un.offsetParent;return un||A(En)},O=(En,un,Ki=1)=>{const Fn=un?I(un):null,{top:oi,left:It,height:Bt,width:xt}=((En,un)=>{const Ki=d(En),Fn=Ki.getComputedStyle(En),oi=g(En),It=un||I(En),Bt=En.ownerDocument;let wt={top:0,left:0};if("fixed"!==Fn.position&&It!==Bt.body&&It!==Bt.documentElement){const Mt=Ki.getComputedStyle(It);wt=g(It),wt.top+=parseInt(Mt.borderTopWidth,10),wt.left+=parseInt(Mt.borderLeftWidth,10)}return{top:oi.top-wt.top,left:oi.left-wt.left,height:oi.height,width:oi.width}})(En,Fn),{x:wt,y:Mt}=((En,un)=>En?E(En):function L(En){const un=I(En);return un?E(un):{x:0,y:0}}(un))(Fn,En),pt=En.ownerDocument,Lt=Fn===pt.body||Fn===pt.documentElement?1:Ki;return{top:oi+Mt*Lt,left:It+wt*Lt,height:Bt,width:xt}};function U(En,un){return{top:En.top-un.y,left:En.left-un.x,height:En.height,width:En.width}}const K=function(En,un,Ki){let Fn=0;return En+un>Ki&&(Fn=Ki-(En+un)),En<0&&(Fn=-En),Fn},X=function({offset:En,size:un,anchorSize:Ki,viewPortSize:Fn,anchorAlignPoint:oi,elementAlignPoint:It,margin:Bt}){let xt=0;const pt=2*Bt;if(It!==oi&&"center"!==It&&"middle"!==It&&"center"!==oi&&"middle"!==oi){const Lt="top"===oi||"left"===oi;En<0&&Lt?(xt=un+Ki+pt,En+xt+un>Fn&&(xt=0)):En>=0&&!Lt&&(En+un>Fn&&(xt+=-(Ki+un+pt)),En+xt<0&&(xt=0))}return xt},J=En=>{const{anchorRect:un,anchorAlign:Ki,elementRect:Fn,elementAlign:oi,collisions:It,viewPort:Bt,margin:xt={}}=En,{top:wt,left:Mt,height:pt,width:Lt}=Fn,{height:tt,width:Ne}=Bt,vt=xt.horizontal||0,ln=xt.vertical||0;let jn=0,Pi=0;const go="fit"===It.vertical,si="fit"===It.horizontal,ot="flip"===It.vertical,pn="flip"===It.horizontal;go&&(Pi+=K(wt,pt,tt)),si&&(jn+=K(Mt,Lt,Ne)),ot&&(Pi+=X({margin:ln,offset:wt,size:pt,anchorSize:un.height,viewPortSize:tt,anchorAlignPoint:Ki.vertical,elementAlignPoint:oi.vertical})),pn&&(jn+=X({margin:vt,offset:Mt,size:Lt,anchorSize:un.width,viewPortSize:Ne,anchorAlignPoint:Ki.horizontal,elementAlignPoint:oi.horizontal}));const _i=ot&&0!==Pi,wi=pn&&0!==jn,hi=go&&0!==Pi,zn=si&&0!==jn;return{flipped:wi||_i,fitted:hi||zn,flip:{horizontal:wi,vertical:_i},fit:{horizontal:zn,vertical:hi},offset:{left:jn,top:Pi}}},Q=En=>{const un=[];let Ki=En.parentNode.firstElementChild;for(;Ki;)Ki!==En&&un.push(Ki),Ki=Ki.nextElementSibling;return un},re=(En,un)=>{const Ki=M(En);let oi,It,Fn=un;for(;Fn&&(oi=Q(Fn),It=Ki.reduce((Bt,xt)=>Bt.concat(oi.filter(wt=>wt===xt)),[])[0],!It);)Fn=Fn.parentElement;return It};!function H(En){let un,Ki=!1}(En=>{if(!q())return!1;const un=En?En.ownerDocument:document;if(!un||!un.body)return!1;const Fn=un.createElement("div");Fn.style.transform="matrix(10, 0, 0, 10, 0, 0)",Fn.innerHTML='<div style="position: fixed; top: 10px;">child</div>',un.body.appendChild(Fn);const oi=10!==Fn.children[0].getBoundingClientRect().top;return un.body.removeChild(Fn),oi});const q=()=>!!(typeof window<"u"&&window.document&&window.document.createElement)},73942:(he,y,i)=>{"use strict";i.d(y,{$2l:()=>_,$g8:()=>dc,$sV:()=>Zr,$zW:()=>To,A2f:()=>De,Adj:()=>_p,Bl3:()=>yu,BxM:()=>Hd,CCI:()=>v,CHk:()=>ri,CIP:()=>ii,Dc8:()=>Xo,EAA:()=>tc,EN9:()=>R,FZE:()=>$o,GPf:()=>fl,GSz:()=>Ii,GZK:()=>Cr,GzL:()=>Zh,H4i:()=>nr,I5$:()=>un,IHW:()=>da,K8M:()=>sl,K8V:()=>is,LEE:()=>$c,LOr:()=>Va,Lpe:()=>At,M7i:()=>d,Mbe:()=>Rr,Me8:()=>s,Mlz:()=>Ua,NdF:()=>mo,NqI:()=>fi,Ntp:()=>mc,NzR:()=>ao,O4n:()=>qd,OUW:()=>Pm,Ouv:()=>ph,P8c:()=>ss,Pn:()=>Nc,Pyu:()=>Cu,Q3u:()=>cd,QNP:()=>xd,QR$:()=>Jt,Qpz:()=>Hf,Qsz:()=>bn,R7U:()=>qr,RL9:()=>Ls,RbE:()=>Wd,Ryu:()=>Ku,Sp5:()=>jr,TZQ:()=>gs,UIf:()=>vd,UTP:()=>hc,UeD:()=>Bp,UsW:()=>Zu,Uyc:()=>go,V7P:()=>Ki,V8V:()=>wh,VxT:()=>Oe,W2X:()=>E,WIQ:()=>ud,WR_:()=>Gt,YFK:()=>tf,YGw:()=>qo,YS7:()=>ga,Zan:()=>nh,aYQ:()=>mr,b8s:()=>Ce,bI8:()=>u,c9I:()=>xs,d3p:()=>$l,dAf:()=>Gi,dgT:()=>Qm,dpm:()=>Za,eQZ:()=>Ts,fL_:()=>L,fNn:()=>Mn,fRI:()=>l,gem:()=>oc,h0F:()=>je,hOA:()=>od,heQ:()=>ta,iw$:()=>I,jKn:()=>No,jQe:()=>Ti,ltC:()=>qc,mKC:()=>ks,mvG:()=>ql,n3D:()=>vp,oXh:()=>b,p5j:()=>kr,pB:()=>pr,pTO:()=>rp,qoH:()=>op,rRS:()=>id,r_d:()=>Jc,rbJ:()=>Tt,sPT:()=>Ho,s_Y:()=>Ao,tQD:()=>Xm,tjX:()=>lt,uq1:()=>Tn,uwq:()=>Cd,woj:()=>Df,x$Z:()=>Pt,x9g:()=>g,xIX:()=>xe,yXJ:()=>Rt,yyU:()=>on,zfv:()=>fs});const l={name:"caret-alt-up",content:'<path d="m256 160 128 192H128l128-192z" />',viewBox:"0 0 512 512"},u={name:"caret-alt-right",content:'<path d="M352 256 160 384V128l192 128z" />',viewBox:"0 0 512 512"},d={name:"caret-alt-down",content:'<path d="M256 352 128 160h256L256 352z" />',viewBox:"0 0 512 512"},s={name:"caret-alt-left",content:'<path d="m160 256 192-128v256L160 256z" />',viewBox:"0 0 512 512"},_={name:"caret-alt-to-right",content:'<path d="m128 128 192 128-192 128V128zm224 256V128h-32v256h32z" />',viewBox:"0 0 512 512"},R={name:"caret-alt-to-left",content:'<path d="M352 384 160 256l192-128v256zM128 128v256h32V128h-32z" />',viewBox:"0 0 512 512"},g={name:"caret-alt-expand",content:'<path d="M128 288h256L256 480 128 288zM256 32 128 224h256.001L256 32z" />',viewBox:"0 0 512 512"},E={name:"chevron-up",content:'<path d="m129.941 353.941 126.06-126.06 126.061 126.06L416 320 256.001 160 96 320l33.941 33.941z" />',viewBox:"0 0 512 512"},b={name:"chevron-right",content:'<path d="m158.059 129.941 126.06 126.06-126.06 126.061L192 416l160-159.999L192 96l-33.941 33.941z" />',viewBox:"0 0 512 512"},I={name:"chevron-down",content:'<path d="m382.059 158.059-126.06 126.06-126.061-126.06L96 192l159.999 160L416 192l-33.941-33.941z" />',viewBox:"0 0 512 512"},L={name:"chevron-left",content:'<path d="m353.941 382.059-126.06-126.06 126.06-126.061L320 96 160 255.999 320 416l33.941-33.941z" />',viewBox:"0 0 512 512"},Ce={name:"columns",content:'<path d="M64 32h96v448H64V32zm128 448h96V32h-96v448zM320 32v448h96V32h-96z" />',viewBox:"0 0 512 512"},De={name:"reorder",content:'<path d="M480 128v64H32v-64h448zM32 224v64h448v-64H32zm448 96H32v64h448v-64z" />',viewBox:"0 0 512 512"},xe={name:"more-vertical",content:'<path d="M240 128c26.4 0 48-21.6 48-48s-21.6-48-48-48-48 21.6-48 48 21.6 48 48 48zm0 64c-26.4 0-48 21.6-48 48s21.6 48 48 48 48-21.6 48-48-21.6-48-48-48zm0 160c-26.4 0-48 21.6-48 48s21.6 48 48 48 48-21.6 48-48-21.6-48-48-48z" />',viewBox:"0 0 512 512"},Oe={name:"more-horizontal",content:'<path d="M128 240c0-26.4-21.6-48-48-48s-48 21.6-48 48 21.6 48 48 48 48-21.6 48-48zm64 0c0 26.4 21.6 48 48 48s48-21.6 48-48-21.6-48-48-48-48 21.6-48 48zm160 0c0 26.4 21.6 48 48 48s48-21.6 48-48-21.6-48-48-48-48 21.6-48 48z" />',viewBox:"0 0 512 512"},Gt={name:"home",content:'<path d="M480 256c0 17.7-14.3 32-32 32-9.1 0-17.4-3.8-23.2-10l-8.8-8.7V416c0 17.7-14.3 32-32 32h-64c-17.7 0-32-14.3-32-32v-96h-64v96c0 17.7-14.3 32-32 32h-64c-17.7 0-32-14.3-32-32V268.6l-8.3 8.9C81.8 284 73.4 288 64 288c-17.7 0-32-14.3-32-32 0-8.5 3.3-16.1 8.6-21.9l.2-.2 1-1 191-191.3 1-1c5.8-5.5 13.6-8.9 22.2-8.9 9.1 0 17.3 3.8 23.1 9.9L470.3 233l.7.7.3.3c5.4 5.8 8.7 13.5 8.7 22z" />',viewBox:"0 0 512 512"},un={name:"display-inline-flex",content:'<path d="M96 416h320V96H96v320zm32-288h256v256H128V128zm32 32h64v192h-64zm128 0h64v192h-64zM32 32h32v448H32zm416 0h32v448h-32z" />',viewBox:"0 0 512 512"},Ki={name:"droplet-slider",content:'<path d="M192 384v32c-53 0-96-43-96-96h32c0 35.3 28.7 64 64 64zm160-72c0 92.8-71.6 168-160 168S32 404.8 32 312C32 181.3 192 32 192 32s160 149.3 160 280zm-32 0c0-46.3-25.3-104.7-73-169-20-27-40.3-49.8-55-65.4-14.7 15.6-34.9 38.5-55 65.4-47.8 64.3-73 122.8-73 169 0 75 57.4 136 128 136s128-61 128-136zm128-88h-32v256h32V224zm0-192h-32v64h32V32zm-64 96v64h96v-64h-96z" />',viewBox:"0 0 512 512"},go={name:"max-width",content:'<path d="M0 96v288h32V96zm479 0v143.4L352 160v64H160v-64L32 240l128 80v-64h192v64l127-79.4V384h32V96z" />',viewBox:"0 0 512 512"},Xo={name:"right-double-quotes",content:'<path d="M136 100.2c-57.4 0-104 46.6-104 104s46.6 104 104 104c20.1 0 38.9-5.7 54.8-15.6-14.2 30.5-37.4 55.2-69.2 73.7-44 25.6-89.1 29.6-89.6 29.6l1.3 15.9 1.3 15.9c2.1-.2 51.8-4.4 102-33.2 47.1-27 103.3-81.3 103.3-186.1.1-1.4.1-2.8.1-4.3 0-57.3-46.6-103.9-104-103.9zm344 104c0-57.4-46.6-104-104-104s-104 46.6-104 104 46.6 104 104 104c20.1 0 38.9-5.7 54.8-15.6-14.2 30.5-37.4 55.2-69.2 73.7-44 25.6-89.1 29.6-89.6 29.6l2.6 31.9c2.1-.2 51.8-4.4 102-33.2 47.1-27 103.3-81.3 103.3-186.1.1-1.4.1-2.8.1-4.3z" />',viewBox:"0 0 512 512"},Ao={name:"undo",content:'<path d="M479.9 416c-57.7-56.6-136.7-96-223.9-96v128L32 256 256 64v128c122.2 0 221.5 102.4 223.9 224z" />',viewBox:"0 0 512 512"},ao={name:"redo",content:'<path d="M256 192V64l224 192-224 192V320c-87.2 0-166.2 39.4-223.9 96C34.5 294.4 133.9 192 256 192z" />',viewBox:"0 0 512 512"},pr={name:"arrow-rotate-cw",content:'<path d="M480 288c0 123.7-100.3 224-224 224S32 411.7 32 288 132.3 64 256 64V0l160 96-160 96v-64c-88.2 0-160 71.8-160 160s71.8 160 160 160 160-71.8 160-160c0-29.1-7.8-56.4-21.5-80l55.5-32c19.1 32.9 30 71.2 30 112z" />',viewBox:"0 0 512 512"},Rr={name:"arrows-no-repeat",content:'<path d="m321 434.2 47.5 47.5C335.5 501 297 512 256 512 132.3 512 32 411.7 32 288c0-41 11-79.5 30.3-112.6l47.5 47.5c-8.9 19.9-13.8 41.9-13.8 65 0 88.2 71.8 160 160 160 23.1.1 45.2-4.8 65-13.7zm118.3-17.5c12.9-18.3 23.1-38.7 30.1-60.4 6.9-21.5 10.6-44.5 10.6-68.3 0-40.8-10.9-79.1-30-112l-55.5 32c13.6 23.5 21.5 50.9 21.5 80 0 4.8-.2 9.5-.6 14.2-2.2 24.8-10.1 47.9-22.3 68.2L173.6 150.9c20.3-12.2 43.4-20.1 68.2-22.3 4.7-.4 9.4-.6 14.2-.6v64l160-96L256 0v64c-23.8 0-46.7 3.7-68.3 10.6-21.8 7-42.1 17.2-60.4 30.1L22.6 0 0 22.6 489.4 512l22.6-22.6-72.7-72.7z" />',viewBox:"0 0 512 512"},Ti={name:"arrow-rotate-cw-small",content:'<path d="M416 280c0 88.4-71.6 160-160 160S96 368.4 96 280s71.6-160 160-160V64l128 80-128 80v-56c-61.8 0-112 50.2-112 112s50.2 112 112 112 112-50.2 112-112c0-10-1.3-19.7-3.8-29l46.4-12.4c3.5 13.2 5.4 27.1 5.4 41.4z" />',viewBox:"0 0 512 512"},mr={name:"clock",content:'<path d="M256 128h-32v160h160v-32H256V128zm0-96C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm0 416c-105.9 0-192-86.1-192-192S150.1 64 256 64s192 86.1 192 192-86.1 192-192 192z" />',viewBox:"0 0 512 512"},ri={name:"calendar",content:'<path d="M416 416H288V288h128v128zm64-352v384c0 17.6-14.4 32-32 32H64c-17.6 0-32-14.4-32-32V64c0-17.6 14.4-32 32-32h64V0h64v32h128V0h64v32h64c17.6 0 32 14.4 32 32zm-32 128H64v255.9l.1.1 383.9-.1V192zm0-127.9c-.1-.1-.1-.1 0 0l-64-.1v32h-64V64H192v32h-64V64H64.1l-.1.1V160h384V64.1z" />',viewBox:"0 0 512 512"},mo={name:"save",content:'<path d="M384 32H64c-17.6 0-32 14.4-32 32v384c0 17.6 14.4 32 32 32h384c17.6 0 32-14.4 32-32V128l-96-96zm-64 32v128h-64V64h64zm128 384-383.9.1-.1-.1V64.1l.1-.1H96v160h256V64h18.7l77.3 77.3V448z" />',viewBox:"0 0 512 512"},Ii={name:"print",content:'<path d="M448 160h-32V96l-64-64H128c-17.7 0-32 14.3-32 32v96H64c-17.6 0-32 14.4-32 32v160c0 17.6 14.4 32 32 32h32v64c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32v-64h32c17.6 0 32-14.4 32-32V192c0-17.6-14.4-32-32-32zM128 64h192v64h64v64H128V64zm320 256h-64v127.9l-.1.1H128.1l-.1-.1V320H64v-32h384v32zm-288 0h192v32H160v-32zm0 64h160v32H160v-32z" />',viewBox:"0 0 512 512"},fi={name:"link",content:'<path d="M384 384c-47.4 0-88.7-25.8-110.8-64H384c35.4 0 64-28.6 64-64s-28.7-64-64-64H273.2c22.1-38.2 63.5-64 110.8-64 70.7 0 128 57.3 128 128s-57.3 128-128 128zM96 256c0-17.7 14.3-32 32-32h256c17.7 0 32 14.3 32 32s-14.3 32-32 32H128c-17.7 0-32-14.3-32-32zm-32 0c0 35.4 28.6 64 64 64h110.8c-22.1 38.2-63.5 64-110.8 64C57.3 384 0 326.7 0 256s57.3-128 128-128c47.4 0 88.7 25.8 110.8 64H128c-35.4 0-64 28.6-64 64z" />',viewBox:"0 0 512 512"},Ho={name:"unlink",content:'<path d="M384 384c-47.4 0-88.7-25.8-110.8-64H384c35.4 0 64-28.6 64-64s-28.7-64-64-64H273.2c22.1-38.2 63.5-64 110.8-64 70.7 0 128 57.3 128 128s-57.3 128-128 128zM64 256c0 35.4 28.6 64 64 64h110.8c-22.1 38.2-63.5 64-110.8 64C57.3 384 0 326.7 0 256s57.3-128 128-128c47.4 0 88.7 25.8 110.8 64H128c-35.3 0-64 28.6-64 64zM272 97.6V0h-32v97.6c5.2-1 10.5-1.6 16-1.6s10.8.6 16 1.6zm-60.1 11.7-69-69-22.6 22.6 69 69c5.9-9 13.6-16.7 22.6-22.6zm110.8 22.6 69-69-22.6-22.6-69 69c9 5.9 16.7 13.6 22.6 22.6zM256 416c-5.5 0-10.8-.6-16-1.6V512h32v-97.6c-5.2 1-10.5 1.6-16 1.6zm-66.7-35.9-69 69 22.6 22.6 69-69c-9-5.9-16.7-13.6-22.6-22.6zm110.8 22.6 69 69 22.6-22.6-69-69c-5.9 9-13.6 16.7-22.6 22.6z" />',viewBox:"0 0 512 512"},qo={name:"lock",content:'<path d="M384 224h-32v-96c0-53-43-96-96-96s-96 43-96 96v96h-32c-17.6 0-32 14.4-32 32v192c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32V256c0-17.6-14.4-32-32-32zm-192-96c0-35.3 28.7-64 64-64s64 28.7 64 64v96H192v-96zm64 256c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z" />',viewBox:"0 0 512 512"},Cr={name:"unlock",content:'<path d="M416 224H224v-96c0-53-43-96-96-96s-96 43-96 96v128h32V128c0-35.3 28.7-64 64-64s64 28.7 64 64v96h-32c-17.6 0-32 14.4-32 32v192c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32V256c0-17.6-14.4-32-32-32zM288 384c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z" />',viewBox:"0 0 512 512"},kr={name:"cancel",content:'<path d="M256 32c-50.3 0-96.8 16.6-134.1 44.6-17.2 12.8-32.4 28.1-45.3 45.3C48.6 159.2 32 205.7 32 256c0 123.7 100.3 224 224 224 50.3 0 96.8-16.6 134.1-44.6 17.2-12.8 32.4-28.1 45.3-45.3 28-37.4 44.6-83.8 44.6-134.1 0-123.7-100.3-224-224-224zm0 384c-88.2 0-160-71.8-160-160 0-32.6 9.8-62.9 26.6-88.2l221.6 221.6C318.9 406.2 288.6 416 256 416zm133.4-71.8L167.8 122.6C193.1 105.8 223.4 96 256 96c88.2 0 160 71.8 160 160 0 32.6-9.8 62.9-26.6 88.2z" />',viewBox:"0 0 512 512"},xs={name:"cancel-outline",content:'<path d="M256 32c-56.1 0-107.4 20.6-146.7 54.7-8.1 7-15.6 14.6-22.6 22.6C52.6 148.6 32 199.9 32 256c0 123.7 100.3 224 224 224 56.1 0 107.4-20.6 146.7-54.7 8.1-7 15.6-14.6 22.6-22.6C459.4 363.4 480 312.1 480 256c0-123.7-100.3-224-224-224zm0 416c-106 0-192-86-192-192 0-47.2 17.1-90.5 45.4-124L380 402.6c-33.5 28.3-76.8 45.4-124 45.4zm146.6-68L132 109.4C165.5 81.1 208.8 64 256 64c106 0 192 86 192 192 0 47.2-17.1 90.5-45.4 124z" />',viewBox:"0 0 512 512"},Ts={name:"check",content:'<path d="M434.7 82.7 480 128 192 416 32 256l45.3-45.3L192 325.5 434.7 82.7z" />',viewBox:"0 0 512 512"},Ua={name:"check-circle",content:'<path d="M256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm-32 352L96 256l45-45 83 83 147-147 45 45-192 192z" />',viewBox:"0 0 512 512"},$o={name:"x",content:'<path d="M416 141.3 301.3 256 416 370.7 370.7 416 256 301.3 141.3 416 96 370.7 210.7 256 96 141.3 141.3 96 256 210.7 370.7 96l45.3 45.3z" />',viewBox:"0 0 512 512"},No={name:"x-circle",content:'<path d="M256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm128 306.7L338.7 384 256 301.3 173.3 384 128 338.7l82.7-82.7-82.7-82.7 45.3-45.3 82.7 82.7 82.7-82.7 45.3 45.3-82.7 82.7 82.7 82.7z" />',viewBox:"0 0 512 512"},qr={name:"plus",content:'<path d="M288 224V96h-64v128H96v64h128v128h64V288h128v-64H288z" />',viewBox:"0 0 512 512"},Zr={name:"minus",content:'<path d="M96 224v64h320v-64H96z" />',viewBox:"0 0 512 512"},Za={name:"sort-asc-small",content:'<path d="M256 192v224h-32V192h-96L240 64l112 128h-96z" />',viewBox:"0 0 512 512"},sl={name:"sort-desc-small",content:'<path d="M352 288 240 416 128 288h96V64h32v224h96z" />',viewBox:"0 0 512 512"},Jt={name:"filter",content:'<path d="M64 64v32l160 160v224l64-64V256L448 96V64H64z" />',viewBox:"0 0 512 512"},Tt={name:"filter-clear",content:'<path d="m143.5 64 168.2 168.2L288 256v160l-64 64V256L64 96V64h79.5zm236.1 100.4L448 96V64H279.3l-64-64L192 22l298 298 22-23.3-132.4-132.3z" />',viewBox:"0 0 512 512"},ss={name:"upload",content:'<path d="M32 384v96h448v-96H32zm192-64h64V192h96L256 32 128 192h96v128z" />',viewBox:"0 0 512 512"},gs={name:"hyperlink-open",content:'<path d="M32 480h448V256h-32v192H64V64h192V32H32v448zM320 32l56.9 56.9.5.5L224 242.7l45.3 45.3 153.3-153.4L480 192V32H320z" />',viewBox:"0 0 512 512"},da={name:"window",content:'<path d="M96 96v320h320V96H96zm288 288H128V192h256v192z" />',viewBox:"0 0 512 512"},Va={name:"window-restore",content:'<path d="M448 32v288h-32V128H160V32h288zM64 192h288v288H64V192zm32 256h224V288H96v160z" />',viewBox:"0 0 512 512"},ga={name:"window-minimize",content:'<path d="M416 288v64H96v-64h320z" />',viewBox:"0 0 512 512"},Ls={name:"search",content:'<path d="M365.3 320h-22.7l-26.7-26.7C338.5 265.7 352 230.4 352 192c0-88.4-71.6-160-160-160S32 103.6 32 192s71.6 160 160 160c38.4 0 73.7-13.5 101.3-36.1l26.7 26.7v22.7L434.7 480l45.3-45.3L365.3 320zM64 192c0-70.7 57.3-128 128-128s128 57.3 128 128-57.3 128-128 128S64 262.7 64 192z" />',viewBox:"0 0 512 512"},At={name:"stick",content:'<path d="M192 96c0-17.7-14.3-32-32-32H96c-17.7 0-32 14.3-32 32v32h128V96zm128 160c0 35.3-28.7 64-64 64s-64-28.7-64-64v-96H64v96c0 106 86 192 192 192s192-86 192-192v-96H320v96zm96-192h-64c-17.7 0-32 14.3-32 32v32h128V96c0-17.7-14.3-32-32-32z" />',viewBox:"0 0 512 512"},Rt={name:"unstick",content:'<path d="M290.6 131.4c12.4-12.4 12.4-32.6 0-45l-45-45c-12.4-12.4-32.6-12.4-45 0L178 63.8l90.1 90 22.5-22.4zM268.1 334c-24.9 24.9-65.2 24.9-90.1 0s-24.9-65.2 0-90.1l67.5-67.5-90-90.1L88 153.9C13.4 228.5 13.4 349.4 88 424s195.5 74.6 270.1 0l67.5-67.5-90-90.1-67.5 67.6zm202.6-67.5-45-45c-12.4-12.4-32.6-12.4-45 0L358.2 244l90 90 22.5-22.5c12.4-12.4 12.4-32.6 0-45z" />',viewBox:"0 0 512 512"},Pt={name:"set-column-position",content:'<path d="M448 32H64c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zM192 416H96V96h96v320zm224 0H224v-32h192v32zm0-64H224v-64h192v64zm0-96H224v-64h192v64zm0-96H224V96h192v64z" />',viewBox:"0 0 512 512"},bn={name:"play-sm",content:'<path d="M96 416V96l320 160L96 416z" />',viewBox:"0 0 512 512"},ii={name:"pause-sm",content:'<path d="M288 96h96v320h-96V96zM96 416h96V96H96v320z" />',viewBox:"0 0 512 512"},lt={name:"exclamation-circle",content:'<path d="M224 128h64v160h-64V128zm0 256h64v-64h-64v64zm256-128c0 123.7-100.3 224-224 224S32 379.7 32 256 132.3 32 256 32s224 100.3 224 224zm-32 0c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z" />',viewBox:"0 0 512 512"},on={name:"image",content:'<path d="M304 160c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48 21.5-48 48-48zm144-96H64c-17.6 0-32 14.4-32 32v320c0 17.6 14.4 32 32 32h384c17.6 0 32-14.4 32-32V96c0-17.6-14.4-32-32-32zm-.1 272-64-64-80 80L176 224 64 336V96.1l.1-.1h383.8l.1.1-.1 239.9z" />',viewBox:"0 0 512 512"},jr={name:"palette",content:'<path d="m206 256.6 160-160c-2.2-5.7-4.8-11.1-7.9-16.3-24.2-40.8-60.1-66-107.8-75.9-2.3-.5-4.7-1-7.1-1.4C192-5.8 143.1 4.8 96.5 34.6 49.3 64.7 19.2 107.2 6.1 162c-13 54.8-5.2 106.4 23.4 154.6 14.2 23.8 31.3 43.2 51.4 58.4 3.8-25.2 13.4-52 36.4-75 31.3-31.4 64-41.3 88.7-43.4zM288 64c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-96-32c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM64 256c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm0-128c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm438.7 12.9L480 118.3c-12.4-12.4-32.8-12.4-45.3 0L281.1 271.9c11.5 5.8 20.8 12.2 27.7 17.6 5.3 4.2 9.2 7.7 11.3 9.8l11.3 12.7c5.4 6.8 11.8 16.2 17.6 27.6l153.5-153.5c12.6-12.4 12.6-32.8.2-45.2zM354.3 289.3c-4.8-5.8-8.6-9.9-10.6-11.9-2.3-2.3-6.3-6.1-12-10.7L457.4 141h.1l22.5 22.5-125.7 125.8zm-78.7 169c-23.8 23.7-48.4 33-70.7 37.7-49.6 10.4-96 16-96 16s34.7-17.3 33.9-77c-.4-32.7-3.7-66.4 19.7-89.8 56.6-56.7 113.3.2 113.3.2s56.7 56-.2 112.9z" />',viewBox:"0 0 512 512"},fs={name:"droplet",content:'<path d="M256 384v32c-53 0-96-43-96-96h32c0 35.3 28.7 64 64 64zm160-72c0 92.8-71.6 168-160 168S96 404.8 96 312C96 181.3 256 32 256 32s160 149.3 160 280zm-32 0c0-46.3-25.3-104.7-73-169-20-27-40.3-49.8-55-65.4-14.7 15.6-34.9 38.5-55 65.4-47.8 64.3-73 122.8-73 169 0 75 57.4 136 128 136s128-61 128-136z" />',viewBox:"0 0 512 512"},ks={name:"sliders",content:'<path d="M480 96v32H285.3c-6.6 18.6-24.4 32-45.3 32s-38.7-13.4-45.3-32H32V96h162.7c6.6-18.6 24.4-32 45.3-32s38.7 13.4 45.3 32H480zm-112 96c-20.9 0-38.7 13.4-45.3 32H32v32h290.7c6.6 18.6 24.4 32 45.3 32s38.7-13.4 45.3-32H480v-32h-66.7c-6.6-18.6-24.4-32-45.3-32zM176 320c-20.9 0-38.7 13.4-45.3 32H32v32h98.7c6.6 18.6 24.4 32 45.3 32s38.7-13.4 45.3-32H480v-32H221.3c-6.6-18.6-24.4-32-45.3-32z" />',viewBox:"0 0 512 512"},To={name:"droplet-slash",content:'<path d="m317.9 431 23.2 23.2C316.5 470.6 287.3 480 256 480c-88.4 0-160-75.2-160-168 0-27.8 7.2-56.4 18.6-84.2l24.8 24.8C131.9 274 128 293.9 128 312c0 75 57.4 136 128 136 22.4 0 43.5-6.2 61.9-17zM256 416v-32c-35.3 0-64-28.7-64-64h-32c0 53 43 96 96 96zm224 41.4L457.4 480 32 54.6 54.6 32l108.7 108.7C207 77.7 256 32 256 32s160 149.3 160 280c0 24.1-4.9 47.1-13.6 67.8l77.6 77.6zM384 312c0-46.3-25.3-104.7-73-169-20-27-40.3-49.8-55-65.4-14.7 15.6-34.9 38.5-55 65.4-1.4 1.9-2.7 3.7-4.1 5.6-.8 1.1-1.5 2.1-2.3 3.2l-1.5 2.1-3 4.2c-.2.3-.4.5-.6.8-1 1.5-2.1 3-3.1 4.5-.1.1-.1.2-.2.3l191.2 191.2c.5-1.6 1-3.3 1.4-4.9 0-.2.1-.4.1-.5.4-1.5.8-2.9 1.1-4.4.1-.3.1-.6.2-.9.3-1.4.6-2.7.9-4.1.1-.4.2-.8.2-1.2.2-1.3.5-2.6.7-3.9.1-.5.2-1 .2-1.5.2-1.2.3-2.5.5-3.7.1-.5.1-1.1.2-1.6l.3-3.6c0-.6.1-1.1.1-1.7.1-1.3.2-2.5.2-3.8 0-.5.1-1 .1-1.6.4-1.9.4-3.7.4-5.5z" />',viewBox:"0 0 512 512"},Jc={name:"bold",content:'<path d="M128 96h115.8c25.3 0 44.2 1.1 56.6 3.2 12.4 2.1 23.6 6.5 33.4 13.2 9.8 6.7 18 15.6 24.6 26.7 6.6 11.1 9.8 23.6 9.8 37.4 0 15-4.1 28.7-12.1 41.2-8.1 12.5-19.1 21.9-32.9 28.2 19.5 5.7 34.5 15.4 45 29s15.7 29.8 15.7 48.2c0 14.6-3.4 28.7-10.2 42.4-6.7 13.8-16 24.8-27.7 33s-26.1 13.3-43.3 15.2c-10.8 1.2-36.7 1.9-78 2.2H128V96zm64 53v74h30.9c25.2 0 40.8-.4 46.9-1.1 11.1-1.3 19.7-5.2 26.1-11.5 6.3-6.3 9.5-14.7 9.5-25 0-9.9-2.7-18-8.2-24.1-5.5-6.2-13.6-10-24.4-11.2-6.4-.7-24.8-1.1-55.2-1.1H192zm0 127.1V362h48.6c23.4 0 38.1-.7 44.5-2 9.6-1.8 17.5-6 23.6-12.8 6.1-6.8 9-15.9 9-27.3 0-9.6-2.3-17.9-7-24.6-4.7-6.7-11.4-11.6-20.3-14.7-8.8-3.1-28-4.6-57.5-4.6l-40.9.1z" />',viewBox:"0 0 512 512"},nh={name:"italic",content:'<path d="m377.2 128 6.8-32H198.8l-6.8 32h59.2l-54.4 256h-62l-6.8 32h185.2l6.8-32h-59.2l54.4-256h62z" />',viewBox:"0 0 512 512"},cd={name:"underline",content:'<path d="M128 416h256v32H128v-32zM320 64v224c0 11.6-3.5 16-10.3 20.3-11.8 7.4-31.3 11.7-53.7 11.7s-41.9-4.3-53.7-11.7c-6.8-4.3-10.3-8.7-10.3-20.3V64h-64v224c0 70.4 64.3 96 128 96s128-25.6 128-96V64h-64z" />',viewBox:"0 0 512 512"},Cd={name:"font-family",content:'<path d="M224 416V160h-95l-.8-64H384v64h-96v256h-64z" />',viewBox:"0 0 512 512"},yu={name:"foreground-color",content:'<path d="M299.5 96h-87.1L96 416h64l23.3-64h145.4l23.3 64h64L299.5 96zm-92.9 192L256 152.2 305.4 288h-98.8z" />',viewBox:"0 0 512 512"},Zu={name:"strikethrough",content:'<path d="M393.9 320c.1-23.9 4.5-41.4 13.5-52.5 9.1-11.1 20.8-16.7 35.3-16.7 9.6 0 17.7 3.1 24.5 9.3 6.8 6.2 11.4 15.4 14.1 27.7l27.9-4.7c-3.3-18.4-10.8-32.7-22.5-42.7s-26.8-15-45.2-15c-14.5 0-28.1 3.6-40.4 11.1-12.4 7.4-21.6 18.5-27.7 33.2-5.9 14.4-8.9 31.2-9.1 50.4h-25.5v-2.2c0-13.2-1.7-25.6-5.1-37.1-3.4-11.5-8.1-21.4-14.2-29.6-6-8.1-13.7-14.5-23-19s-19.2-6.8-29.6-6.8c-18.9 0-34.3 8.2-46.4 24.6v-90H192v160h-45v-25.8c0-13.7-.5-23.3-1.4-28.5-1.7-8.5-4.7-15.5-9-21.1-4.3-5.5-10.9-10.2-19.9-13.8-9-3.6-20.8-5.5-35.3-5.5-14.6 0-27.4 2.1-38.5 6.4-11.1 4.3-19.5 10.4-25.4 18.4-5.8 8-10 18.4-12.6 31.4l28.1 4.1c3.1-13 7.8-22 14.3-27.1s16.4-7.7 29.9-7.7c14.5 0 25.4 3.5 32.7 10.5 5.4 5.1 8.1 14 8.1 26.6 0 1.1 0 3.8-.2 8.1-11 4.1-28 7.7-51.2 10.7-11.4 1.5-19.9 3-25.5 4.7-6.7 2-12.9 4.9-18.5 8.6H0v32h1.2c-.8 3.8-1.2 7.7-1.2 11.8 0 15.2 5 27.8 15 37.6S39.3 416 57.9 416c11.3 0 21.8-1.9 31.6-6s20.1-10.9 30.7-20.6h.1c.8 8.6 2.7 20.3 5.7 26.7h30c-3.6-7-6-18.4-7.3-26.1-1-6-1.6-18.7-1.8-37.9h45v64h26.6V389c11.4 18 27.1 27 47.1 27 20.1 0 37.3-8.5 51.7-25.6 8.6-10.2 14.6-23 18-38.3h31.8c3.3 16 9.4 29.2 18.3 39.5 14.1 16.3 32.7 24.5 55.9 24.5 18.5 0 34.1-6 46.8-17.8 12.1-11.3 19.8-26.7 23.2-46.2h.5v-32H393.9zm-280.7 42.6c-4.1 9-10.4 16.1-19 21.4-8.6 5.2-18.4 7.8-29.5 7.8-11.2 0-19.6-2.8-25.4-8.2-5.8-5.6-8.7-12.4-8.7-20.7 0-3.9.7-7.5 2.1-10.9h83.6c-.7 4.1-1.8 7.7-3.1 10.6zm105.1-43.3c0-22.2 4.6-39.2 13.7-50.9 9.1-11.8 20-17.6 32.5-17.6s23.1 5.6 31.8 17c8.8 11.3 13.1 28.7 13.2 52.3h-91.3c.1-.3.1-.6.1-.8zm77.6 53.6c-9.1 11.8-20 17.7-32.5 17.7-15.5 0-27.7-8-36.7-23.9-2.2-3.9-4-8.8-5.3-14.7H306c-2.4 8.3-5.7 15.3-10.1 20.9zm173.5 6.6c-7.5 7.5-16.9 11.2-28.2 11.2-14 0-25.4-5.6-34.1-16.7-4.4-5.6-7.7-12.9-9.9-21.9h85.5c-2.6 11.9-7 21.1-13.3 27.4z" />',viewBox:"0 0 512 512"},mc={name:"subscript",content:'<path d="m198.6 304 89.4 89.4-22.6 22.6-89.4-89.4L86.6 416 64 393.4l89.4-89.4L64 214.6 86.6 192l89.4 89.4 89.4-89.4 22.6 22.6-89.4 89.4zm167.7 144h81.4v32H320v-11.9c0-8 1.7-15.3 5-21.7 3.3-6.4 7.5-12.1 12.5-17.2s10.5-9.6 16.4-13.5c5.9-3.9 11.6-7.4 16.9-10.6 5.6-3.3 10.6-6.4 14.8-9.4 4.2-3 7.8-6 10.7-8.9 2.9-3 5.1-6 6.5-9 1.4-3 2.1-6.3 2.1-9.7 0-6.7-2.3-11.8-7-15.3-4.6-3.4-11.7-5.2-21.3-5.2-16.5 0-32.3 5.4-47.4 16.1v-30.5c16.7-8.9 35.5-13.3 56.5-13.3 9.7 0 18.5 1 26.2 3.1 7.7 2.1 14.3 5.1 19.6 8.9 5.4 3.9 9.4 8.6 12.3 14.1 2.8 5.5 4.2 11.7 4.2 18.5 0 7.2-1.4 13.7-4.1 19.3-2.7 5.6-6.3 10.8-10.8 15.4-4.5 4.6-9.7 8.8-15.6 12.7-5.9 3.8-12 7.6-18.3 11.1-4.3 2.5-8.4 5-12.4 7.4-4 2.5-7.5 4.9-10.5 7.2-3.1 2.6-7.1 6.6-10 10.4z" />',viewBox:"0 0 512 512"},xd={name:"supscript",content:'<path d="m198.6 304 89.4 89.4-22.6 22.6-89.4-89.4L86.6 416 64 393.4l89.4-89.4L64 214.6 86.6 192l89.4 89.4 89.4-89.4 22.6 22.6-89.4 89.4zm167.7-112h81.4v32H320v-11.9c0-8 1.7-15.3 5-21.7s7.5-12.1 12.5-17.2 10.5-9.6 16.4-13.5 11.6-7.4 16.9-10.6c5.6-3.3 10.6-6.4 14.8-9.4 4.2-3 7.8-6 10.7-8.9 2.9-3 5.1-6 6.5-9s2.1-6.3 2.1-9.7c0-6.7-2.3-11.8-7-15.3-4.6-3.4-11.7-5.2-21.3-5.2-16.5 0-32.3 5.4-47.4 16.1V77.3c16.7-8.9 35.5-13.3 56.5-13.3 9.7 0 18.5 1 26.2 3.1s14.3 5.1 19.6 8.9c5.4 3.9 9.4 8.6 12.3 14.1 2.8 5.5 4.2 11.7 4.2 18.5 0 7.2-1.4 13.7-4.1 19.3-2.7 5.6-6.3 10.8-10.8 15.4-4.5 4.6-9.7 8.8-15.6 12.7-5.9 3.8-12 7.6-18.3 11.1-4.3 2.5-8.4 5-12.4 7.4-4 2.5-7.5 4.9-10.5 7.2-3.1 2.5-7.1 6.5-10 10.3z" />',viewBox:"0 0 512 512"},Cu={name:"list-ordered",content:'<path d="M192 64h288v32H192V64zm0 160h288v32H192v-32zm0 160h288v32H192v-32zM96 32v128H64V64c-1.5 1.3-14.9 7.8-22.1 10V50.8c7.2-2.1 13.9-4.8 20.3-8 6.3-3.3 12.1-6.8 17.2-10.7L96 32zM66.7 297h61.1v23H32v-9.5c0-6.4 1.2-12.2 3.7-17.3 2.5-5.1 5.6-9.7 9.3-13.8 3.7-4.1 7.8-7.7 12.3-10.8 4.5-3.1 8.7-6 12.7-8.5 4.2-2.6 7.9-5.1 11.1-7.6 3.2-2.4 5.9-4.8 8-7.2 2.2-2.4 3.8-4.8 4.9-7.2s1.6-5 1.6-7.8c0-5.4-1.7-9.5-5.2-12.2-3.5-2.8-8.8-4.1-16-4.1-12.4 0-24.2 4.3-35.5 12.9v-24.4c12.5-7.1 26.6-10.6 42.4-10.6 7.3 0 13.8.8 19.6 2.5 5.8 1.7 10.7 4.1 14.7 7.2 4 3.1 7.1 6.9 9.2 11.3 2.1 4.4 3.2 9.3 3.2 14.8 0 5.8-1 10.9-3.1 15.5-2 4.5-4.8 8.6-8.1 12.3-3.4 3.7-7.3 7.1-11.7 10.1-4.4 3.1-9 6-13.8 8.9-3.2 2-6.3 4-9.3 5.9-3 2-5.6 3.9-7.9 5.8s-4.1 3.8-5.4 5.6c-1.3 1.8-2 3.6-2 5.2zM32 473.8V450c10.1 6 21.8 9.1 35.3 9.1 8.5 0 15.1-1.5 19.8-4.5 4.7-3 7.1-7.2 7.1-12.5 0-5.5-2.9-9.8-8.8-12.8-5.8-3-13.9-4.5-24.1-4.5h-14V404h12.9c19.6 0 29.4-5.4 29.4-16.1 0-10.1-7.5-15.1-22.6-15.1-10.1 0-19.9 2.7-29.4 8v-22.3c10.6-4.4 22.9-6.6 37-6.6 15.4 0 27.4 2.8 36 8.5s12.9 13.1 12.9 22.2c0 16.2-10 26.3-29.9 30.4v.4c10.6 1.1 19 4.3 25.2 9.5 6.2 5.3 9.2 11.7 9.2 19.4 0 11.6-5.1 20.7-15.4 27.4S88.1 480 69.9 480c-15.5 0-28.2-2.1-37.9-6.2z" />',viewBox:"0 0 512 512"},id={name:"list-unordered",content:'<path d="M192 64h288v32H192V64zm0 160h288v32H192v-32zm0 160h288v32H192v-32zM80 32c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm0 160c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm0 160c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z" />',viewBox:"0 0 512 512"},ph={name:"indent",content:'<path d="M480 64H32V32h448v32zm0 32H224v32h256V96zm0 64H224v32h256v-32zm0 64H224v32h256v-32zm0 64H224v32h256v-32zm0 64H224v32h256v-32zm0 64H32v32h448v-32zM160 240 32 128v224l128-112z" />',viewBox:"0 0 512 512"},ud={name:"outdent",content:'<path d="M480 64H32V32h448v32zm0 32H224v32h256V96zm0 64H224v32h256v-32zm0 64H224v32h256v-32zm0 64H224v32h256v-32zm0 64H224v32h256v-32zm0 64H32v32h448v-32zm-320-64V128L32 240l128 112z" />',viewBox:"0 0 512 512"},ql={name:"insert-top",content:'<path d="M192 320h192v32H192v-32zm0-128h288v-32H192v32zm192 64H192v32h192v-32zM32 64v224l96-112L32 64z" />',viewBox:"0 0 512 512"},Ku={name:"insert-middle",content:'<path d="M192 128h192v32H192v-32zm0 128h288v-32H192v32zm192 64H192v32h192v-32zM32 128v224l96-112-96-112z" />',viewBox:"0 0 512 512"},od={name:"insert-bottom",content:'<path d="M192 224h192v32H192v-32zm0 128h288v-32H192v32zm192-192H192v32h192v-32zM32 224v224l96-112-96-112z" />',viewBox:"0 0 512 512"},dc={name:"align-left",content:'<path d="M448 96H64V64h384v32zm-96 32H64v32h288v-32zm96 64H64v32h384v-32zm-96 64H64v32h288v-32zm96 64H64v32h384v-32zm-96 64H64v32h288v-32z" />',viewBox:"0 0 512 512"},$c={name:"align-center",content:'<path d="M448 96H64V64h384v32zm-64 64H128v-32h256v32zm64 64H64v-32h384v32zm-64 64H128v-32h256v32zm64 64H64v-32h384v32zm-64 64H128v-32h256v32z" />',viewBox:"0 0 512 512"},oc={name:"align-right",content:'<path d="M64 192h384v32H64v-32zm384-96V64H64v32h384zm-288 64h288v-32H160v32zM64 320v32h384v-32H64zm96-32h288v-32H160v32zm0 96v32h288v-32H160z" />',viewBox:"0 0 512 512"},Hd={name:"align-justify",content:'<path d="M448 160H64v-32h384v32zm0-96H64v32h384V64zM64 352h384v-32H64v32zm0-64h384v-32H64v32zm0-64h384v-32H64v32zm0 192h384v-32H64v32z" />',viewBox:"0 0 512 512"},Tn={name:"code-snippet",content:'<path d="M416 32V0h-32v32h-32V0h-32v32h-32V0h-32v32h-32V0h-32v32h-32V0h-32v32H96V0H64v32H32v32H0v32h32v32H0v32h32v32H0v32h32v32H0v32h32v32H0v32h32v32H0v32h32v32h32v32h32v-32h32v32h32v-32h32v32h32v-32h32v32h32v-32h32v32h32v-32h32v32h32v-32h32v-32h32v-32h-32v-32h32v-32h-32v-32h32v-32h-32v-32h32v-32h-32v-32h32v-32h-32V96h32V64h-32V32h-32zm0 256v128H64V64h352v224zM32 0v32H0V0h32zM0 448h32v32H0v-32zm198.6-265.4L141.3 240l57.4 57.4L176 320l-80-80 80-80 22.6 22.6zM304 160l80 80-80 80-22.6-22.6 57.4-57.4-57.4-57.4L304 160zM480 32h-32V0h32v32zm-32 448v-32h32v32h-32z" />',viewBox:"0 0 512 512"},v={name:"select-all",content:'<path d="M448 448h32v32h-32v-32zm0-448h32v32h-32V0zM0 448h32v32H0v-32zM0 0h32v32H0V0zm448 384h32v32h-32v-32zm0-64h32v32h-32v-32zm0-64h32v32h-32v-32zm0-64h32v32h-32v-32zm0-64h32v32h-32v-32zm0-64h32v32h-32V64zM0 384h32v32H0v-32zm0-64h32v32H0v-32zm0-64h32v32H0v-32zm0-64h32v32H0v-32zm0-64h32v32H0v-32zm0-64h32v32H0V64zm128 384h32v32h-32v-32zm-64 0h32v32H64v-32zm128 0h32v32h-32v-32zm64 0h32v32h-32v-32zm64 0h32v32h-32v-32zm64 0h32v32h-32v-32zM64 0h32v32H64V0zm64 0h32v32h-32V0zm64 0h32v32h-32V0zm64 0h32v32h-32V0zm64 0h32v32h-32V0zm64 0h32v32h-32V0zm-96 64 53.4 53.4L240 218.9 138.6 117.4 192 64H64v128l53.5-53.5L218.9 240 117.5 341.5 64 288v128h128l-53.4-53.4L240 261.1l101.4 101.5L288 416h128V288l-53.5 53.5L261.1 240l101.4-101.5L416 192V64H288z" />',viewBox:"0 0 512 512"},vd={name:"copy",content:'<path d="M384 96H192c-17.7 0-32 14.3-32 32v320c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32V192l-96-96zm64 352H192V128h160v96h96v224zM64 384h64v32H64c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32h192l32 32H64v320z" />',viewBox:"0 0 512 512"},Nc={name:"apply-format",content:'<path d="M380.984 313.69c12.445 12.445 12.445 32.81 0 45.255L266.529 470.658c-12.445 12.445-32.787 12.467-45.255 0L0 248.898c18.584 18.584 40.255-4.835 40.255-4.835L154.71 132.671c12.445-12.445 32.81-12.445 45.255 0L380.984 313.69zm89.682-227.101-45.255-45.255c-12.445-12.445-32.81-12.445-45.255 0l-67.882 67.882-22.627-22.627c-12.445-12.445-32.81-12.445-45.255 0l-22.627 22.627 181.019 181.019 22.627-22.627c12.445-12.445 12.445-32.81 0-45.255l-22.627-22.627 67.882-67.882c12.445-12.446 12.445-32.81 0-45.255z" />',viewBox:"0 0 512 512"},wh={name:"clear-css",content:'<path d="M402.784 290.235 221.765 109.216l22.627-22.627c12.445-12.445 32.81-12.445 45.255 0l22.627 22.627 67.882-67.882c12.445-12.445 32.81-12.445 45.255 0l45.255 45.255c12.445 12.445 12.445 32.81 0 45.255l-67.882 67.882 22.627 22.627c12.445 12.445 12.445 32.81 0 45.255l-22.627 22.627zm-21.8 23.455-181.02-181.019c-12.346-12.346-32.483-12.437-44.953-.287L54.627 32 32 54.627l100.074 100.074-91.819 89.362S18.585 267.482 0 248.898l221.274 221.76c12.467 12.467 32.81 12.445 45.255 0l91.851-89.651L457.373 480 480 457.373l-98.73-98.73c12.151-12.47 12.06-32.607-.286-44.953z" />',viewBox:"0 0 512 512"},_p={name:"table-add",content:'<path d="M448 320V32H32v416h288V320h128zm-288 96H64v-96h96v96zm0-128H64v-96h96v96zm0-128H64V64h96v96zm128 256h-96v-96h96v96zm0-128h-96v-96h96v96zm0-128h-96V64h96v96zm32-96h96v96h-96V64zm0 224v-96h96v96h-96zm192 128v32h-64v64h-32v-64h-64v-32h64v-64h32v64h64z" />',viewBox:"0 0 512 512"},je={name:"table-column-insert-left",content:'<path d="M32 480V0h128v480H32zM480 32v416H192V32h288zM224 160h96V64h-96v96zm0 128h96v-96h-96v96zm0 128h96v-96h-96v96zm224-96h-96v96h96v-96zm0-32v-96h-96v96h96zm0-224h-96v96h96V64z" />',viewBox:"0 0 512 512"},Mn={name:"table-column-insert-right",content:'<path d="M352 480V0h128v480H352zM320 32v416H32V32h288zm-32 32h-96v96h96V64zm0 128h-96v96h96v-96zm0 128h-96v96h96v-96zM64 416h96v-96H64v96zm96-128v-96H64v96h96zM64 160h96V64H64v96z" />',viewBox:"0 0 512 512"},Gi={name:"table-row-insert-above",content:'<path d="M480 160H0V32h480v128zM32 192h416v288H32V192zm32 32v96h96v-96H64zm128 0v96h96v-96h-96zm128 0v96h96v-96h-96zm96 224v-96h-96v96h96zm-128-96h-96v96h96v-96zm-128 96v-96H64v96h96z" />',viewBox:"0 0 512 512"},nr={name:"table-row-insert-below",content:'<path d="M480 480H0V352h480v128zM32 32h416v288H32V32zm128 256v-96H64v96h96zm128 0v-96h-96v96h96zm128 0v-96h-96v96h96zM320 64v96h96V64h-96zm-32 0h-96v96h96V64zM64 64v96h96V64H64z" />',viewBox:"0 0 512 512"},is={name:"table-column-delete",content:'<path d="M192 288v224h128V288H192zm0-288v64h128V0H192zm160 32h128v416H352V32zm96 288h-64v96h64v-96zm0-128h-64v96h64v-96zm0-128h-64v96h64V64zM32 32h128v416H32V32zm96 288H64v96h64v-96zm0-128H64v96h64v-96zm0-128H64v96h64V64zm128 89.373L313.373 96 336 118.627 278.627 176 336 233.373 313.373 256 256 198.627 198.627 256 176 233.373 233.373 176 176 118.627 198.627 96 256 153.373z" />',viewBox:"0 0 512 512"},ta={name:"table-row-delete",content:'<path d="M224 192H0v128h224V192zm288 0h-64v128h64V192zm-32 160v128H64V352h416zm-288 96v-64H96v64h96zm128 0v-64h-96v64h96zm128 0v-64h-96v64h96zm32-416v128H64V32h416zm-288 96V64H96v64h96zm128 0V64h-96v64h96zm128 0V64h-96v64h96zm-89.373 128L416 313.373 393.373 336 336 278.627 278.627 336 256 313.373 313.373 256 256 198.627 278.627 176 336 233.373 393.373 176 416 198.627 358.627 256z" />',viewBox:"0 0 512 512"},$l={name:"table-delete",content:'<path d="M32 32v416h416V32H32zm384 128h-64v32h64v96h-64v32h64v96h-96v-64h-32v64h-96v-64h-32v64H64v-96h64v-32H64v-96h64v-32H64V64h96v64h32V64h96v64h32V64h96v96zm-153.4 80 57.4 57.4-22.6 22.6-57.4-57.4-57.4 57.4-22.6-22.6 57.4-57.4-57.4-57.4 22.6-22.6 57.4 57.4 57.4-57.4 22.6 22.6-57.4 57.4z" />',viewBox:"0 0 512 512"},fl={name:"cells-merge",content:'<path d="M32 32v448h416V32H32zm160 32h96v64h-96V64zM64 64h96v64H64V64zm96 384H64v-64h96v64zm128 0h-96v-64h96v64zm128 0h-96v-64h96v64zm0-96H64V160h352v192zm0-224h-96V64h96v64z" />',viewBox:"0 0 512 512"},hc={name:"cell-split-horizontally",content:'<path d="M32 32v416h416V32H32zm32 32h160v64H64V64zm160 160h-64v-64h64v64zM64 160h64v64H64v-64zm0 96h160v64H64v-64zm0 160v-64h160v64H64zm192-256h64v64h-64v-64zm160 256H256v-64h160v64zm0-96H256v-64h160v64zm0-96h-64v-64h64v64zm0-96H256V64h160v64z" />',viewBox:"0 0 512 512"},qd={name:"font-size",content:'<path d="M97 224 32 416h29l16.9-50H146l16.9 50h29l-65-192H97zm-8.9 112 23.9-70.6 23.9 70.6H88.1zM376 96h-48L224 416h48l26-80h108l26 80h48L376 96zm-62.4 192L352 169.8 390.4 288h-76.8z" />',viewBox:"0 0 512 512"},Df={name:"table-wizard",content:'<path d="M160 384V160h224v96l32 32V0H0v416h288l-32-32h-96zM288 32h96v96h-96V32zm-128 0h96v96h-96V32zm-32 352H32v-96h96v96zm0-128H32v-96h96v96zm0-128H32V32h96v96zm376.6 362.1-15.5 15.5c-8.6 8.6-22.4 8.6-31 0l-124-124c-8.6-8.6-8.6-22.4 0-31l15.5-15.5c8.6-8.6 22.4-8.6 31 0l124 124c8.6 8.5 8.6 22.4 0 31zm-158.5-209-21-14.8c-3.2-2.3-5.1-6-5.1-10l.3-25.7c.1-6.6-5.2-12.1-11.8-12.2-2.6 0-5.2.8-7.3 2.4l-20.6 15.4c-3.2 2.4-7.3 3-11 1.8l-24.3-8.3c-6.8-2.3-14.3 1.9-15.7 9.3-.4 2.1-.1 4.2.5 6.2l8.2 24.1c1.3 3.7.6 7.8-1.8 11l-15.4 20.6c-4.3 5.8-2.6 14.2 4 17.8 1.9 1 4 1.4 6.1 1.4l25.4-.3c3.9-.1 7.7 1.8 10 5.1l14.8 21c4.2 5.9 12.7 6.9 18.1 1.7 1.5-1.5 2.6-3.3 3.2-5.3l7.5-24.3c1.2-3.8 4.1-6.7 7.9-7.9l24.5-7.6c6.3-2 9.8-8.7 7.9-15-.7-2.7-2.3-4.9-4.4-6.4z" />',viewBox:"0 0 512 512"},Wd={name:"file",content:'<path d="M352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},tc={name:"file-add",content:'<path d="M512 416h-64v64h-32v-64h-64v-32h64v-64h32v64h64v32zM96 448V64h224v96h96v96h32V128l-96-96H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h224v-32" />',viewBox:"0 0 512 512"},tf={name:"file-txt",content:'<path d="M352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288zm-32-96v32H128v-32h256zM256 160v32H128v-32m256 64v32H128v-32h256zm-256 96v-32h224v32H128z" />',viewBox:"0 0 512 512"},vp={name:"file-pdf",content:'<path d="M240.9 160c-7.6 0-13.8 4-15.4 9.9-4.9 18.6.2 46.3 9.4 82.3l-2.4 5.9c-6.6 16.4-14.8 33-22.1 47.6l-1 1.9c-7.7 15.3-14.6 28.4-21 39.4l-6.5 3.5c-.5.3-11.6 6.3-14.3 7.9-22.2 13.6-36.9 28.9-39.4 41.2-.8 3.9-.2 8.9 3.7 11.2l6.3 3.2c2.7 1.4 5.6 2.1 8.6 2.1 15.8 0 34.2-20.2 59.5-65.3 29.2-9.7 62.5-17.8 91.6-22.3 22.2 12.8 49.5 21.7 66.8 21.7 3.1 0 5.7-.3 7.8-.9 3.3-.9 6.1-2.8 7.8-5.4 3.4-5.2 4-12.2 3.1-19.5-.3-2.1-2-4.8-3.8-6.6-5.1-5.2-16.5-7.9-33.7-8.1-11.7-.1-25.8.9-40.6 3-6.6-3.9-13.5-8.2-18.8-13.3-14.4-13.8-26.5-32.9-34-53.9.5-2 .9-3.7 1.3-5.4 0 0 8.1-47.1 6-63.1-.3-2.2-.5-2.8-1.1-4.5l-.7-1.9c-2.2-5.2-6.5-10.7-13.3-10.4l-3.8-.2zm2.7 8.4c5.1 0 8 13.1 8.2 25.4.3 12.3-2.6 20.9-6 27.3-2.9-9.4-4.3-24.3-4.3-34-.1-.1-.3-18.7 2.1-18.7zm.4 104.1c8.6 16 19.3 29.5 31.9 40.4 1.6 1.3 3.2 2.7 5 4.1-25.6 5.2-47.7 11.5-67.1 19.1 3.6-6.5 7.2-13.3 11-20.6 9.1-17.7 14.9-31.6 19.2-43zm102.2 51.6c9.3 0 12 0 21.1 2.3 9.1 2.4 9.2 7.2 7.6 8.2-1.6 1-6 1.6-8.9 1.6-9.2 0-20.7-4.3-36.8-11.4 6.3-.4 11.9-.7 17-.7zm-165.4 35.8c-17.7 28.8-29.5 40.3-37.3 43.8 2.9-8.1 14.3-24 31.2-38.1 1.1-.9 3.7-3.4 6.1-5.7zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},Hf={name:"file-config",content:'<path d="M352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288zm-41.8-124.6-23.7-17.9c1-5.7 1.6-11.5 1.6-17.4 0-6-.5-11.8-1.6-17.4l23.7-17.9c3.7-2.8 4.7-7.9 2.4-11.9l-19.4-33.5c-2.3-4-7.2-5.6-11.5-3.9L318.4 215c-8.8-7.5-19-13.5-30.2-17.4l-3.7-29.5c-.6-4.6-4.5-8-9.1-8h-38.7c-4.6 0-8.5 3.4-9.1 8l-3.7 29.5c-11.1 4-21.3 9.9-30.2 17.4l-27.4-11.6c-4.2-1.8-9.2-.1-11.5 3.9l-19.4 33.5c-2.3 4-1.3 9.1 2.4 11.9l23.7 17.9c-1 5.7-1.6 11.5-1.6 17.4 0 6 .5 11.8 1.6 17.4l-23.7 17.9c-3.7 2.8-4.7 7.9-2.4 11.9l19.4 33.5c2.3 4 7.2 5.6 11.5 3.9l27.4-11.6c8.8 7.5 19 13.5 30.2 17.4l3.7 29.5c.6 4.6 4.5 8 9.1 8h38.7c4.6 0 8.5-3.4 9.1-8l3.7-29.5c11.1-4 21.3-9.9 30.2-17.4l27.4 11.6c4.2 1.8 9.2.1 11.5-3.9l19.4-33.5c2.2-4 1.2-9-2.5-11.8zM256 336c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z" />',viewBox:"0 0 512 512"},Bp={name:"file-zip",content:'<path d="M352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h64v32h32v32h-32v32h32v32h-32v32h32v32h-32v32h32v34.7c-18.6 6.6-32 24.4-32 45.3 0 26.5 21.5 48 48 48s48-21.5 48-48c0-20.9-13.4-38.7-32-45.3V256h32v-32h-32v-32h32v-32h-32v-32h32V96h-32V64h96v96h96v288zm-192-80c0 8.8-7.2 16-16 16s-16-7.2-16-16 7.2-16 16-16 16 7.2 16 16z" />',viewBox:"0 0 512 512"},op={name:"file-video",content:'<path d="M352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288zM304 304.8v-.8c0-8.8-7.2-16-16-16h-10.1c24.2-3.1 42.8-24.3 41.8-49.6-1-24.8-21.2-45-46-46-27.4-1.1-49.9 20.8-49.9 48 0 24.4 18.2 44.6 41.8 47.6h-70.4c17.2-1.7 30.3-16.9 28.7-34.8-1.4-15.5-14.1-27.9-29.6-28.9-18.7-1.3-34.2 13.5-34.2 31.9 0 16.6 12.7 30.2 28.8 31.8H176c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16h111.7c8.4 0 15.6-6.3 16.3-14.6.2-3.1-.3-6.1-1.7-8.7l1.8 1.1 44.9 27.1c1.3.8 2.7 1.2 4.1 1.2 1.3 0 2.7-.3 3.9-1 2.5-1.4 4.1-4.1 4.1-7v-95.8c0-2.9-1.5-5.5-4-6.9s-5.5-1.5-8 0L304 304.8zM193.5 272c-.5.1-1 .1-1.5.1s-1 0-1.5-.1h-.2c-8.6-.8-15.1-8.5-14.3-17.2.6-7.9 7.2-14.2 15.1-14.6 9.2-.5 16.8 6.9 16.8 16 .1 8.1-6.1 15-14.4 15.8zm82.3-.3c-.3 0-.6.1-.9.1-1 .1-2.1.2-3.1.2s-2.1 0-3.1-.2c-.3 0-.6-.1-.9-.1-15.9-2-27.9-15.7-27.9-31.7 0-17.6 14.4-32 32-32s32 14.4 32 32c-.1 16.1-12.1 29.7-28.1 31.7z" />',viewBox:"0 0 512 512"},rp={name:"file-audio",content:'<path d="M218 353.8c-5.5-2.9-12.1-4.5-19-4.5-21 0-38 14.8-38 33.2s17 33.2 38 33.2 38-14.8 38-33.2V256.6l96-22.6v87.8c-5.5-2.9-12.1-4.5-19-4.5-21 0-38 14.8-38 33.2s17 33.2 38 33.2 38-14.8 38-33.2V192.2l-134 31.5v130.1zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},Zh={name:"file-image",content:'<path d="M298.7 385.2S272.2 288 213.1 288s-85 128-85 128h256s-11.9-78.7-42.7-78.7-42.7 47.9-42.7 47.9zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288zM288 256c0 17.7 14.3 32 32 32s32-14.3 32-32-14.3-32-32-32-32 14.3-32 32z" />',viewBox:"0 0 512 512"},qc={name:"file-presentation",content:'<path d="M127.5 214.4c0 9.9 6.1 18.2 14.5 21.2v113.1c0 12.4 9.6 22.4 21.3 22.4H246v11.8l-13.6 14.6c-1.9 2-3 4.8-3 8 0 6.3 4.7 11.3 10.5 11.3 2.8 0 5.5-1.3 7.4-3.3.1-.1.2-.3.4-.4l8.9-9.6 8.9 9.6c.1.1.2.3.4.4 1.9 2 4.5 3.3 7.4 3.3 5.8 0 10.5-5 10.5-11.3 0-3.1-1.2-6-3-8L267 382.8V371h78.8c11.1 0 20.1-9.3 20.9-21h1.3V235.9c9-2.6 15.7-11.3 15.7-21.6 0-12.4-9.5-22.4-21.3-22.4H148.8c-11.8.1-21.3 10.1-21.3 22.5zM299 237h43v89h-43v-89zm-64 26h43v63h-43v-63zm-64 18h43v45h-43v-45zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},Qm={name:"file-data",content:'<path d="M352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288zM128 229.3v149.4c0 20.6 19.1 37.3 42.7 37.3h170.6c23.6 0 42.7-16.7 42.7-37.3V229.3c0-20.6-19.1-37.3-42.7-37.3H170.7c-23.6 0-42.7 16.7-42.7 37.3zM247 379h-76v-47h76v47zm18-112h76v47h-76v-47zm0 65h76v47h-76v-47zm-18-19h-76v-47h76v47z" />',viewBox:"0 0 512 512"},Pm={name:"file-disc-image",content:'<path d="M256.1 322.7c3.7 0 7.2-1.1 10.1-3s5.2-4.5 6.7-7.6c1.2-2.5 1.9-5.2 1.9-8.1 0-10.3-8.4-18.7-18.7-18.7-2.8 0-5.4.6-7.7 1.7-3.4 1.6-6.3 4.1-8.3 7.3-1.7 2.8-2.7 6.1-2.7 9.7 0 10.4 8.3 18.7 18.7 18.7zm-52.5-117.8c-19.1 10.1-34.9 25.5-45.4 44.4-9 16.1-14.1 34.7-14.1 54.4 0 61.7 50 111.7 111.7 111.7 20 0 38.8-5.3 55.1-14.5 18.6-10.6 33.9-26.4 43.9-45.4 8.1-15.5 12.7-33.1 12.7-51.8 0-61.7-50-111.7-111.7-111.7-18.9 0-36.7 4.7-52.2 12.9zm89.8 99.2c0 6.1-1.4 11.8-4 16.9l48.7 25.8c-8.3 15.8-20.9 28.9-36.3 37.7l-26.6-48.3c-5.6 3.3-12.1 5.3-19.1 5.3-20.6 0-37.4-16.7-37.4-37.4 0-6.8 1.8-13.2 5-18.7l-49.2-27.1c8.8-15.7 22-28.6 38-37l26.8 49.3c5-2.5 10.7-3.9 16.7-3.9 20.7 0 37.4 16.7 37.4 37.4zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},Xm={name:"file-programming",content:'<path d="m236 256-52.6-.2-48.6 48.6.1.1c-4.1 3.9-6.7 9.4-6.7 15.5 0 5.8 2.3 11 6 14.8l49.1 49.1 46.8-.2-59.7-59.7c.2-.9.3-1.8.3-2.8L236 256zm105.2 65.5c.1.9.2 1.9.3 2.8L281.9 384l46.8.2 49.1-49.1c3.7-3.8 6-9.1 6-14.8 0-6.1-2.6-11.6-6.7-15.5l.1-.1-48.6-48.7-52.6.2 65.2 65.3zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"}},24769:(he,y,i)=>{"use strict";i.d(y,{T_:()=>ao,Wt:()=>Ue,gb:()=>Ni});var R=-2,I=4,D=0,F=1,P=2;function U(pe,lt){return Object.prototype.hasOwnProperty.call(pe,lt)}function V(pe){for(var lt=Array.prototype.slice.call(arguments,1);lt.length;){var yt=lt.shift();if(yt){if("object"!=typeof yt)throw new TypeError(yt+"must be non-object");for(var on in yt)U(yt,on)&&(pe[on]=yt[on])}}return pe}function K(pe,lt){return pe.length===lt?pe:pe.subarray?pe.subarray(0,lt):(pe.length=lt,pe)}var X={arraySet:function(pe,lt,yt,on,zi){if(lt.subarray&&pe.subarray)pe.set(lt.subarray(yt,yt+on),zi);else for(var Kn=0;Kn<on;Kn++)pe[zi+Kn]=lt[yt+Kn]},flattenChunks:function(pe){var lt,yt,on,zi,Kn,ho;for(on=0,lt=0,yt=pe.length;lt<yt;lt++)on+=pe[lt].length;for(ho=new Uint8Array(on),zi=0,lt=0,yt=pe.length;lt<yt;lt++)ho.set(Kn=pe[lt],zi),zi+=Kn.length;return ho},Buf8:function(pe){return new Uint8Array(pe)},Buf16:function(pe){return new Uint16Array(pe)},Buf32:function(pe){return new Int32Array(pe)}},me={arraySet:function(pe,lt,yt,on,zi){for(var Kn=0;Kn<on;Kn++)pe[zi+Kn]=lt[yt+Kn]},flattenChunks:function(pe){return[].concat.apply([],pe)},Buf8:function(pe){return new Array(pe)},Buf16:function(pe){return new Array(pe)},Buf32:function(pe){return new Array(pe)}};let J=()=>{const pe=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";return J=()=>pe,pe},Q=(pe,lt,yt,on,zi)=>(Q=J()?X.arraySet:me.arraySet,Q(pe,lt,yt,on,zi)),re=pe=>(re=J()?X.flattenChunks:me.flattenChunks,re(pe)),de=pe=>(de=J()?X.Buf8:me.Buf8,de(pe)),te=pe=>(te=J()?X.Buf16:me.Buf16,te(pe)),j=pe=>(j=J()?X.Buf32:me.Buf32,j(pe)),H=function(){let pe=!0;try{String.fromCharCode.apply(null,[0])}catch{pe=!1}return H=()=>pe,pe},z=function(){let pe=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{pe=!1}return z=()=>pe,pe},q=function(pe){for(var lt=de(256),yt=0;yt<256;yt++)lt[yt]=yt>=252?6:yt>=248?5:yt>=240?4:yt>=224?3:yt>=192?2:1;return lt[254]=lt[254]=1,q=on=>lt[on],lt[pe]};function se(pe){var lt,yt,on,zi,Kn,ho=pe.length,po=0;for(zi=0;zi<ho;zi++)55296==(64512&(yt=pe.charCodeAt(zi)))&&zi+1<ho&&56320==(64512&(on=pe.charCodeAt(zi+1)))&&(yt=65536+(yt-55296<<10)+(on-56320),zi++),po+=yt<128?1:yt<2048?2:yt<65536?3:4;for(lt=new Uint8Array(po),Kn=0,zi=0;Kn<po;zi++)55296==(64512&(yt=pe.charCodeAt(zi)))&&zi+1<ho&&56320==(64512&(on=pe.charCodeAt(zi+1)))&&(yt=65536+(yt-55296<<10)+(on-56320),zi++),yt<128?lt[Kn++]=yt:yt<2048?(lt[Kn++]=192|yt>>>6,lt[Kn++]=128|63&yt):yt<65536?(lt[Kn++]=224|yt>>>12,lt[Kn++]=128|yt>>>6&63,lt[Kn++]=128|63&yt):(lt[Kn++]=240|yt>>>18,lt[Kn++]=128|yt>>>12&63,lt[Kn++]=128|yt>>>6&63,lt[Kn++]=128|63&yt);return lt}function ne(pe,lt){if(lt<65534&&(pe.subarray&&z()||!pe.subarray&&H()))return String.fromCharCode.apply(null,K(pe,lt));for(var yt="",on=0;on<lt;on++)yt+=String.fromCharCode(pe[on]);return yt}function Ce(pe,lt){var yt,on,zi,Kn,ho=lt||pe.length,po=new Array(2*ho);for(on=0,yt=0;yt<ho;)if((zi=pe[yt++])<128)po[on++]=zi;else if((Kn=q(zi))>4)po[on++]=65533,yt+=Kn-1;else{for(zi&=2===Kn?31:3===Kn?15:7;Kn>1&&yt<ho;)zi=zi<<6|63&pe[yt++],Kn--;Kn>1?po[on++]=65533:zi<65536?po[on++]=zi:(po[on++]=55296|(zi-=65536)>>10&1023,po[on++]=56320|1023&zi)}return ne(po,on)}function Te(pe,lt){var yt;for((lt=lt||pe.length)>pe.length&&(lt=pe.length),yt=lt-1;yt>=0&&128==(192&pe[yt]);)yt--;return yt<0||0===yt?lt:yt+q(pe[yt])>lt?yt:lt}function De(pe,lt,yt,on){for(var zi=65535&pe|0,Kn=pe>>>16&65535|0,ho=0;0!==yt;){yt-=ho=yt>2e3?2e3:yt;do{Kn=Kn+(zi=zi+lt[on++]|0)|0}while(--ho);zi%=65521,Kn%=65521}return zi|Kn<<16|0}let xe=function(){const pe=function fe(){for(var pe,lt=[],yt=0;yt<256;yt++){pe=yt;for(var on=0;on<8;on++)pe=1&pe?3988292384^pe>>>1:pe>>>1;lt[yt]=pe}return lt}();return xe=()=>pe,pe};function Oe(pe,lt,yt,on){var zi=xe(),Kn=on+yt;pe^=-1;for(var ho=on;ho<Kn;ho++)pe=pe>>>8^zi[255&(pe^lt[ho])];return-1^pe}var Le=30,Gt=12;function Ut(pe,lt){var yt,on,zi,Kn,ho,po,$i,ro,wo,io,Wi,fo,cr,Fr,jr,fs,Ms,Ca,ks,ts,na,Xs,_a,Ws,cs;Ws=pe.input,zi=(on=pe.next_in)+(pe.avail_in-5),cs=pe.output,ho=(Kn=pe.next_out)-(lt-pe.avail_out),po=Kn+(pe.avail_out-257),$i=(yt=pe.state).dmax,ro=yt.wsize,wo=yt.whave,io=yt.wnext,Wi=yt.window,fo=yt.hold,cr=yt.bits,Fr=yt.lencode,jr=yt.distcode,fs=(1<<yt.lenbits)-1,Ms=(1<<yt.distbits)-1;e:do{cr<15&&(fo+=Ws[on++]<<cr,fo+=Ws[on++]<<(cr+=8),cr+=8),Ca=Fr[fo&fs];t:for(;;){if(fo>>>=ks=Ca>>>24,cr-=ks,0==(ks=Ca>>>16&255))cs[Kn++]=65535&Ca;else{if(!(16&ks)){if(64&ks){if(32&ks){yt.mode=Gt;break e}pe.msg="invalid literal/length code",yt.mode=Le;break e}Ca=Fr[(65535&Ca)+(fo&(1<<ks)-1)];continue t}for(ts=65535&Ca,(ks&=15)&&(cr<ks&&(fo+=Ws[on++]<<cr,cr+=8),ts+=fo&(1<<ks)-1,fo>>>=ks,cr-=ks),cr<15&&(fo+=Ws[on++]<<cr,fo+=Ws[on++]<<(cr+=8),cr+=8),Ca=jr[fo&Ms];;){if(fo>>>=ks=Ca>>>24,cr-=ks,16&(ks=Ca>>>16&255)){if(na=65535&Ca,cr<(ks&=15)&&(fo+=Ws[on++]<<cr,(cr+=8)<ks&&(fo+=Ws[on++]<<cr,cr+=8)),(na+=fo&(1<<ks)-1)>$i){pe.msg="invalid distance too far back",yt.mode=Le;break e}if(fo>>>=ks,cr-=ks,na>(ks=Kn-ho)){if((ks=na-ks)>wo&&yt.sane){pe.msg="invalid distance too far back",yt.mode=Le;break e}if(Xs=0,_a=Wi,0===io){if(Xs+=ro-ks,ks<ts){ts-=ks;do{cs[Kn++]=Wi[Xs++]}while(--ks);Xs=Kn-na,_a=cs}}else if(io<ks){if(Xs+=ro+io-ks,(ks-=io)<ts){ts-=ks;do{cs[Kn++]=Wi[Xs++]}while(--ks);if(Xs=0,io<ts){ts-=ks=io;do{cs[Kn++]=Wi[Xs++]}while(--ks);Xs=Kn-na,_a=cs}}}else if(Xs+=io-ks,ks<ts){ts-=ks;do{cs[Kn++]=Wi[Xs++]}while(--ks);Xs=Kn-na,_a=cs}for(;ts>2;)cs[Kn++]=_a[Xs++],cs[Kn++]=_a[Xs++],cs[Kn++]=_a[Xs++],ts-=3;ts&&(cs[Kn++]=_a[Xs++],ts>1&&(cs[Kn++]=_a[Xs++]))}else{Xs=Kn-na;do{cs[Kn++]=cs[Xs++],cs[Kn++]=cs[Xs++],cs[Kn++]=cs[Xs++],ts-=3}while(ts>2);ts&&(cs[Kn++]=cs[Xs++],ts>1&&(cs[Kn++]=cs[Xs++]))}break}if(64&ks){pe.msg="invalid distance code",yt.mode=Le;break e}Ca=jr[(65535&Ca)+(fo&(1<<ks)-1)]}}break}}while(on<zi&&Kn<po);fo&=(1<<(cr-=(ts=cr>>3)<<3))-1,pe.next_in=on-=ts,pe.next_out=Kn,pe.avail_in=on<zi?zi-on+5:5-(on-zi),pe.avail_out=Kn<po?po-Kn+257:257-(Kn-po),yt.hold=fo,yt.bits=cr}var An=15,$n=852,xn=592,mt=0,ut=1,Wt=2,dn=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],sn=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],fn=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],yi=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function nn(pe,lt,yt,on,zi,Kn,ho,po){var Ca,ks,ts,na,Xs,cs,to,Ro,Sr,$i=po.bits,ro=0,wo=0,io=0,Wi=0,fo=0,cr=0,Fr=0,jr=0,fs=0,Ms=0,_a=null,Ws=0,Ps=te(An+1),Qi=te(An+1),vo=null,pi=0;for(ro=0;ro<=An;ro++)Ps[ro]=0;for(wo=0;wo<on;wo++)Ps[lt[yt+wo]]++;for(fo=$i,Wi=An;Wi>=1&&0===Ps[Wi];Wi--);if(fo>Wi&&(fo=Wi),0===Wi)return zi[Kn++]=20971520,zi[Kn++]=20971520,po.bits=1,0;for(io=1;io<Wi&&0===Ps[io];io++);for(fo<io&&(fo=io),jr=1,ro=1;ro<=An;ro++)if(jr<<=1,(jr-=Ps[ro])<0)return-1;if(jr>0&&(pe===mt||1!==Wi))return-1;for(Qi[1]=0,ro=1;ro<An;ro++)Qi[ro+1]=Qi[ro]+Ps[ro];for(wo=0;wo<on;wo++)0!==lt[yt+wo]&&(ho[Qi[lt[yt+wo]]++]=wo);if(pe===mt?(_a=vo=ho,cs=19):pe===ut?(_a=dn,Ws-=257,vo=sn,pi-=257,cs=256):(_a=fn,vo=yi,cs=-1),Ms=0,wo=0,ro=io,Xs=Kn,cr=fo,Fr=0,ts=-1,na=(fs=1<<fo)-1,pe===ut&&fs>$n||pe===Wt&&fs>xn)return 1;for(;;){to=ro-Fr,ho[wo]<cs?(Ro=0,Sr=ho[wo]):ho[wo]>cs?(Ro=vo[pi+ho[wo]],Sr=_a[Ws+ho[wo]]):(Ro=96,Sr=0),Ca=1<<ro-Fr,io=ks=1<<cr;do{zi[Xs+(Ms>>Fr)+(ks-=Ca)]=to<<24|Ro<<16|Sr|0}while(0!==ks);for(Ca=1<<ro-1;Ms&Ca;)Ca>>=1;if(0!==Ca?(Ms&=Ca-1,Ms+=Ca):Ms=0,wo++,0==--Ps[ro]){if(ro===Wi)break;ro=lt[yt+ho[wo]]}if(ro>fo&&(Ms&na)!==ts){for(0===Fr&&(Fr=fo),Xs+=io,jr=1<<(cr=ro-Fr);cr+Fr<Wi&&!((jr-=Ps[cr+Fr])<=0);)cr++,jr<<=1;if(fs+=1<<cr,pe===ut&&fs>$n||pe===Wt&&fs>xn)return 1;zi[ts=Ms&na]=fo<<24|cr<<16|Xs-Kn|0}}return 0!==Ms&&(zi[Xs+Ms]=ro-Fr<<24|64<<16|0),po.bits=fo,0}var mi=1,Eo=2,Xt=0,un=-2,Bt=1,or=852,xr=592;function Nr(pe){return(pe>>>24&255)+(pe>>>8&65280)+((65280&pe)<<8)+((255&pe)<<24)}function as(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=te(320),this.work=te(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ai(pe,lt){var yt,on;return pe?(on=new as,pe.state=on,on.window=null,yt=function rt(pe,lt){var yt,on;return!pe||!pe.state||(on=pe.state,lt<0?(yt=0,lt=-lt):(yt=1+(lt>>4),lt<48&&(lt&=15)),lt&&(lt<8||lt>15))?un:(null!==on.window&&on.wbits!==lt&&(on.window=null),on.wrap=yt,on.wbits=lt,function Fo(pe){var lt;return pe&&pe.state?((lt=pe.state).wsize=0,lt.whave=0,lt.wnext=0,function ji(pe){var lt;return pe&&pe.state?(pe.total_in=pe.total_out=(lt=pe.state).total=0,pe.msg="",lt.wrap&&(pe.adler=1&lt.wrap),lt.mode=Bt,lt.last=0,lt.havedict=0,lt.dmax=32768,lt.head=null,lt.hold=0,lt.bits=0,lt.lencode=lt.lendyn=j(or),lt.distcode=lt.distdyn=j(xr),lt.sane=1,lt.back=-1,Xt):un}(pe)):un}(pe))}(pe,lt),yt!==Xt&&(pe.state=null),yt):un}var Io,wr,Gn=!0;function bs(pe){if(Gn){var lt;for(Io=j(512),wr=j(32),lt=0;lt<144;)pe.lens[lt++]=8;for(;lt<256;)pe.lens[lt++]=9;for(;lt<280;)pe.lens[lt++]=7;for(;lt<288;)pe.lens[lt++]=8;for(nn(mi,pe.lens,0,288,Io,0,pe.work,{bits:9}),lt=0;lt<32;)pe.lens[lt++]=5;nn(Eo,pe.lens,0,32,wr,0,pe.work,{bits:5}),Gn=!1}pe.lencode=Io,pe.lenbits=9,pe.distcode=wr,pe.distbits=5}function ba(pe,lt,yt,on){var zi,Kn=pe.state;return null===Kn.window&&(Kn.wsize=1<<Kn.wbits,Kn.wnext=0,Kn.whave=0,Kn.window=de(Kn.wsize)),on>=Kn.wsize?(Q(Kn.window,lt,yt-Kn.wsize,Kn.wsize,0),Kn.wnext=0,Kn.whave=Kn.wsize):((zi=Kn.wsize-Kn.wnext)>on&&(zi=on),Q(Kn.window,lt,yt-on,zi,Kn.wnext),(on-=zi)?(Q(Kn.window,lt,yt-on,on,0),Kn.wnext=on,Kn.whave=Kn.wsize):(Kn.wnext+=zi,Kn.wnext===Kn.wsize&&(Kn.wnext=0),Kn.whave<Kn.wsize&&(Kn.whave+=zi))),0}function ms(pe,lt){var yt,on,zi,Kn,ho,po,$i,ro,wo,io,Wi,fo,cr,Fr,fs,Ms,Ca,ks,ts,na,Xs,_a,cs,Ps,jr=0,Ws=de(4),Qi=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!pe||!pe.state||!pe.output||!pe.input&&0!==pe.avail_in)return un;12===(yt=pe.state).mode&&(yt.mode=13),ho=pe.next_out,zi=pe.output,Kn=pe.next_in,on=pe.input,ro=yt.hold,wo=yt.bits,io=po=pe.avail_in,Wi=$i=pe.avail_out,_a=Xt;e:for(;;)switch(yt.mode){case Bt:if(0===yt.wrap){yt.mode=13;break}for(;wo<16;){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}if(2&yt.wrap&&35615===ro){yt.check=0,Ws[0]=255&ro,Ws[1]=ro>>>8&255,yt.check=Oe(yt.check,Ws,2,0),ro=0,wo=0,yt.mode=2;break}if(yt.flags=0,yt.head&&(yt.head.done=!1),!(1&yt.wrap)||(((255&ro)<<8)+(ro>>8))%31){pe.msg="incorrect header check",yt.mode=30;break}if(8!=(15&ro)){pe.msg="unknown compression method",yt.mode=30;break}if(wo-=4,Xs=8+(15&(ro>>>=4)),0===yt.wbits)yt.wbits=Xs;else if(Xs>yt.wbits){pe.msg="invalid window size",yt.mode=30;break}yt.dmax=1<<Xs,pe.adler=yt.check=1,yt.mode=512&ro?10:12,ro=0,wo=0;break;case 2:for(;wo<16;){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}if(yt.flags=ro,8!=(255&yt.flags)){pe.msg="unknown compression method",yt.mode=30;break}if(57344&yt.flags){pe.msg="unknown header flags set",yt.mode=30;break}yt.head&&(yt.head.text=ro>>8&1),512&yt.flags&&(Ws[0]=255&ro,Ws[1]=ro>>>8&255,yt.check=Oe(yt.check,Ws,2,0)),ro=0,wo=0,yt.mode=3;case 3:for(;wo<32;){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}yt.head&&(yt.head.time=ro),512&yt.flags&&(Ws[0]=255&ro,Ws[1]=ro>>>8&255,Ws[2]=ro>>>16&255,Ws[3]=ro>>>24&255,yt.check=Oe(yt.check,Ws,4,0)),ro=0,wo=0,yt.mode=4;case 4:for(;wo<16;){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}yt.head&&(yt.head.xflags=255&ro,yt.head.os=ro>>8),512&yt.flags&&(Ws[0]=255&ro,Ws[1]=ro>>>8&255,yt.check=Oe(yt.check,Ws,2,0)),ro=0,wo=0,yt.mode=5;case 5:if(1024&yt.flags){for(;wo<16;){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}yt.length=ro,yt.head&&(yt.head.extra_len=ro),512&yt.flags&&(Ws[0]=255&ro,Ws[1]=ro>>>8&255,yt.check=Oe(yt.check,Ws,2,0)),ro=0,wo=0}else yt.head&&(yt.head.extra=null);yt.mode=6;case 6:if(1024&yt.flags&&((fo=yt.length)>po&&(fo=po),fo&&(yt.head&&(Xs=yt.head.extra_len-yt.length,yt.head.extra||(yt.head.extra=new Array(yt.head.extra_len)),Q(yt.head.extra,on,Kn,fo,Xs)),512&yt.flags&&(yt.check=Oe(yt.check,on,fo,Kn)),po-=fo,Kn+=fo,yt.length-=fo),yt.length))break e;yt.length=0,yt.mode=7;case 7:if(2048&yt.flags){if(0===po)break e;fo=0;do{Xs=on[Kn+fo++],yt.head&&Xs&&yt.length<65536&&(yt.head.name+=String.fromCharCode(Xs))}while(Xs&&fo<po);if(512&yt.flags&&(yt.check=Oe(yt.check,on,fo,Kn)),po-=fo,Kn+=fo,Xs)break e}else yt.head&&(yt.head.name=null);yt.length=0,yt.mode=8;case 8:if(4096&yt.flags){if(0===po)break e;fo=0;do{Xs=on[Kn+fo++],yt.head&&Xs&&yt.length<65536&&(yt.head.comment+=String.fromCharCode(Xs))}while(Xs&&fo<po);if(512&yt.flags&&(yt.check=Oe(yt.check,on,fo,Kn)),po-=fo,Kn+=fo,Xs)break e}else yt.head&&(yt.head.comment=null);yt.mode=9;case 9:if(512&yt.flags){for(;wo<16;){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}if(ro!==(65535&yt.check)){pe.msg="header crc mismatch",yt.mode=30;break}ro=0,wo=0}yt.head&&(yt.head.hcrc=yt.flags>>9&1,yt.head.done=!0),pe.adler=yt.check=0,yt.mode=12;break;case 10:for(;wo<32;){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}pe.adler=yt.check=Nr(ro),ro=0,wo=0,yt.mode=11;case 11:if(0===yt.havedict)return pe.next_out=ho,pe.avail_out=$i,pe.next_in=Kn,pe.avail_in=po,yt.hold=ro,yt.bits=wo,2;pe.adler=yt.check=1,yt.mode=12;case 12:if(5===lt||6===lt)break e;case 13:if(yt.last){ro>>>=7&wo,wo-=7&wo,yt.mode=27;break}for(;wo<3;){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}switch(yt.last=1&ro,wo-=1,3&(ro>>>=1)){case 0:yt.mode=14;break;case 1:if(bs(yt),yt.mode=20,6===lt){ro>>>=2,wo-=2;break e}break;case 2:yt.mode=17;break;case 3:pe.msg="invalid block type",yt.mode=30}ro>>>=2,wo-=2;break;case 14:for(ro>>>=7&wo,wo-=7&wo;wo<32;){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}if((65535&ro)!=(ro>>>16^65535)){pe.msg="invalid stored block lengths",yt.mode=30;break}if(yt.length=65535&ro,ro=0,wo=0,yt.mode=15,6===lt)break e;case 15:yt.mode=16;case 16:if(fo=yt.length){if(fo>po&&(fo=po),fo>$i&&(fo=$i),0===fo)break e;Q(zi,on,Kn,fo,ho),po-=fo,Kn+=fo,$i-=fo,ho+=fo,yt.length-=fo;break}yt.mode=12;break;case 17:for(;wo<14;){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}if(yt.nlen=257+(31&ro),wo-=5,yt.ndist=1+(31&(ro>>>=5)),wo-=5,yt.ncode=4+(15&(ro>>>=5)),ro>>>=4,wo-=4,yt.nlen>286||yt.ndist>30){pe.msg="too many length or distance symbols",yt.mode=30;break}yt.have=0,yt.mode=18;case 18:for(;yt.have<yt.ncode;){for(;wo<3;){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}yt.lens[Qi[yt.have++]]=7&ro,ro>>>=3,wo-=3}for(;yt.have<19;)yt.lens[Qi[yt.have++]]=0;if(yt.lencode=yt.lendyn,yt.lenbits=7,_a=nn(0,yt.lens,0,19,yt.lencode,0,yt.work,cs={bits:yt.lenbits}),yt.lenbits=cs.bits,_a){pe.msg="invalid code lengths set",yt.mode=30;break}yt.have=0,yt.mode=19;case 19:for(;yt.have<yt.nlen+yt.ndist;){for(;Ms=(jr=yt.lencode[ro&(1<<yt.lenbits)-1])>>>16&255,Ca=65535&jr,!((fs=jr>>>24)<=wo);){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}if(Ca<16)ro>>>=fs,wo-=fs,yt.lens[yt.have++]=Ca;else{if(16===Ca){for(Ps=fs+2;wo<Ps;){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}if(ro>>>=fs,wo-=fs,0===yt.have){pe.msg="invalid bit length repeat",yt.mode=30;break}Xs=yt.lens[yt.have-1],fo=3+(3&ro),ro>>>=2,wo-=2}else if(17===Ca){for(Ps=fs+3;wo<Ps;){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}wo-=fs,Xs=0,fo=3+(7&(ro>>>=fs)),ro>>>=3,wo-=3}else{for(Ps=fs+7;wo<Ps;){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}wo-=fs,Xs=0,fo=11+(127&(ro>>>=fs)),ro>>>=7,wo-=7}if(yt.have+fo>yt.nlen+yt.ndist){pe.msg="invalid bit length repeat",yt.mode=30;break}for(;fo--;)yt.lens[yt.have++]=Xs}}if(30===yt.mode)break;if(0===yt.lens[256]){pe.msg="invalid code -- missing end-of-block",yt.mode=30;break}if(yt.lenbits=9,_a=nn(mi,yt.lens,0,yt.nlen,yt.lencode,0,yt.work,cs={bits:yt.lenbits}),yt.lenbits=cs.bits,_a){pe.msg="invalid literal/lengths set",yt.mode=30;break}if(yt.distbits=6,yt.distcode=yt.distdyn,_a=nn(Eo,yt.lens,yt.nlen,yt.ndist,yt.distcode,0,yt.work,cs={bits:yt.distbits}),yt.distbits=cs.bits,_a){pe.msg="invalid distances set",yt.mode=30;break}if(yt.mode=20,6===lt)break e;case 20:yt.mode=21;case 21:if(po>=6&&$i>=258){pe.next_out=ho,pe.avail_out=$i,pe.next_in=Kn,pe.avail_in=po,yt.hold=ro,yt.bits=wo,Ut(pe,Wi),ho=pe.next_out,zi=pe.output,$i=pe.avail_out,Kn=pe.next_in,on=pe.input,po=pe.avail_in,ro=yt.hold,wo=yt.bits,12===yt.mode&&(yt.back=-1);break}for(yt.back=0;Ms=(jr=yt.lencode[ro&(1<<yt.lenbits)-1])>>>16&255,Ca=65535&jr,!((fs=jr>>>24)<=wo);){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}if(Ms&&!(240&Ms)){for(ks=fs,ts=Ms,na=Ca;Ms=(jr=yt.lencode[na+((ro&(1<<ks+ts)-1)>>ks)])>>>16&255,Ca=65535&jr,!(ks+(fs=jr>>>24)<=wo);){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}ro>>>=ks,wo-=ks,yt.back+=ks}if(ro>>>=fs,wo-=fs,yt.back+=fs,yt.length=Ca,0===Ms){yt.mode=26;break}if(32&Ms){yt.back=-1,yt.mode=12;break}if(64&Ms){pe.msg="invalid literal/length code",yt.mode=30;break}yt.extra=15&Ms,yt.mode=22;case 22:if(yt.extra){for(Ps=yt.extra;wo<Ps;){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}yt.length+=ro&(1<<yt.extra)-1,ro>>>=yt.extra,wo-=yt.extra,yt.back+=yt.extra}yt.was=yt.length,yt.mode=23;case 23:for(;Ms=(jr=yt.distcode[ro&(1<<yt.distbits)-1])>>>16&255,Ca=65535&jr,!((fs=jr>>>24)<=wo);){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}if(!(240&Ms)){for(ks=fs,ts=Ms,na=Ca;Ms=(jr=yt.distcode[na+((ro&(1<<ks+ts)-1)>>ks)])>>>16&255,Ca=65535&jr,!(ks+(fs=jr>>>24)<=wo);){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}ro>>>=ks,wo-=ks,yt.back+=ks}if(ro>>>=fs,wo-=fs,yt.back+=fs,64&Ms){pe.msg="invalid distance code",yt.mode=30;break}yt.offset=Ca,yt.extra=15&Ms,yt.mode=24;case 24:if(yt.extra){for(Ps=yt.extra;wo<Ps;){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}yt.offset+=ro&(1<<yt.extra)-1,ro>>>=yt.extra,wo-=yt.extra,yt.back+=yt.extra}if(yt.offset>yt.dmax){pe.msg="invalid distance too far back",yt.mode=30;break}yt.mode=25;case 25:if(0===$i)break e;if(yt.offset>(fo=Wi-$i)){if((fo=yt.offset-fo)>yt.whave&&yt.sane){pe.msg="invalid distance too far back",yt.mode=30;break}cr=fo>yt.wnext?yt.wsize-(fo-=yt.wnext):yt.wnext-fo,fo>yt.length&&(fo=yt.length),Fr=yt.window}else Fr=zi,cr=ho-yt.offset,fo=yt.length;fo>$i&&(fo=$i),$i-=fo,yt.length-=fo;do{zi[ho++]=Fr[cr++]}while(--fo);0===yt.length&&(yt.mode=21);break;case 26:if(0===$i)break e;zi[ho++]=yt.length,$i--,yt.mode=21;break;case 27:if(yt.wrap){for(;wo<32;){if(0===po)break e;po--,ro|=on[Kn++]<<wo,wo+=8}if(pe.total_out+=Wi-=$i,yt.total+=Wi,Wi&&(pe.adler=yt.check=yt.flags?Oe(yt.check,zi,Wi,ho-Wi):De(yt.check,zi,Wi,ho-Wi)),Wi=$i,(yt.flags?ro:Nr(ro))!==yt.check){pe.msg="incorrect data check",yt.mode=30;break}ro=0,wo=0}yt.mode=28;case 28:if(yt.wrap&&yt.flags){for(;wo<32;){if(0===po)break e;po--,ro+=on[Kn++]<<wo,wo+=8}if(ro!==(4294967295&yt.total)){pe.msg="incorrect length check",yt.mode=30;break}ro=0,wo=0}yt.mode=29;case 29:_a=1;break e;case 30:_a=-3;break e;case 31:return-4;default:return un}return pe.next_out=ho,pe.avail_out=$i,pe.next_in=Kn,pe.avail_in=po,yt.hold=ro,yt.bits=wo,(yt.wsize||Wi!==pe.avail_out&&yt.mode<30&&(yt.mode<27||4!==lt))&&ba(pe,pe.output,pe.next_out,Wi-pe.avail_out),Wi-=pe.avail_out,pe.total_in+=io-=pe.avail_in,pe.total_out+=Wi,yt.total+=Wi,yt.wrap&&Wi&&(pe.adler=yt.check=yt.flags?Oe(yt.check,zi,Wi,pe.next_out-Wi):De(yt.check,zi,Wi,pe.next_out-Wi)),pe.data_type=yt.bits+(yt.last?64:0)+(12===yt.mode?128:0)+(20===yt.mode||15===yt.mode?256:0),(0===io&&0===Wi||4===lt)&&_a===Xt&&(_a=-5),_a}function Sa(pe,lt){var on,yt=lt.length;return pe&&pe.state&&(0===(on=pe.state).wrap||11===on.mode)?11===on.mode&&De(1,lt,yt,0)!==on.check?-3:ba(pe,lt,yt,yt)?(on.mode=31,-4):(on.havedict=1,Xt):un}var tr={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function Mr(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}function Li(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Ao=Object.prototype.toString;class ao{constructor(lt){if(!(this instanceof ao))return new ao(lt);this.options=V({chunkSize:16384,windowBits:0,to:""},lt||{});var yt=this.options;yt.raw&&yt.windowBits>=0&&yt.windowBits<16&&(yt.windowBits=-yt.windowBits,0===yt.windowBits&&(yt.windowBits=-15)),yt.windowBits>=0&&yt.windowBits<16&&!(lt&&lt.windowBits)&&(yt.windowBits+=32),yt.windowBits>15&&yt.windowBits<48&&(15&yt.windowBits||(yt.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Mr,this.strm.avail_out=0;var on=ai(this.strm,yt.windowBits);if(0!==on)throw new Error(tr[on]);if(this.header=new Li,function Ea(pe,lt){var yt;pe&&pe.state&&2&(yt=pe.state).wrap&&(yt.head=lt,lt.done=!1)}(this.strm,this.header),yt.dictionary&&("string"==typeof yt.dictionary?yt.dictionary=se(yt.dictionary):"[object ArrayBuffer]"===Ao.call(yt.dictionary)&&(yt.dictionary=new Uint8Array(yt.dictionary)),yt.raw&&0!==(on=Sa(this.strm,yt.dictionary))))throw new Error(tr[on])}push(lt,yt){var ho,po,$i,ro,wo,io,on=this.strm,zi=this.options.chunkSize,Kn=this.options.dictionary,Wi=!1;if(this.ended)return!1;po=yt===~~yt?yt:!0===yt?4:0,on.input="string"==typeof lt?function ge(pe){for(var lt=new Uint8Array(pe.length),yt=0,on=lt.length;yt<on;yt++)lt[yt]=pe.charCodeAt(yt);return lt}(lt):"[object ArrayBuffer]"===Ao.call(lt)?new Uint8Array(lt):lt,on.next_in=0,on.avail_in=on.input.length;do{if(0===on.avail_out&&(on.output=de(zi),on.next_out=0,on.avail_out=zi),2===(ho=ms(on,0))&&Kn&&(io="string"==typeof Kn?se(Kn):"[object ArrayBuffer]"===Ao.call(Kn)?new Uint8Array(Kn):Kn,ho=Sa(this.strm,io)),-5===ho&&!0===Wi&&(ho=0,Wi=!1),1!==ho&&0!==ho)return this.onEnd(ho),this.ended=!0,!1;on.next_out&&(0===on.avail_out||1===ho||0===on.avail_in&&(4===po||2===po))&&("string"===this.options.to?($i=Te(on.output,on.next_out),ro=on.next_out-$i,wo=Ce(on.output,$i),on.next_out=ro,on.avail_out=zi-ro,ro&&Q(on.output,on.output,$i,ro,0),this.onData(wo)):this.onData(K(on.output,on.next_out))),0===on.avail_in&&0===on.avail_out&&(Wi=!0)}while((on.avail_in>0||0===on.avail_out)&&1!==ho);return 1===ho&&(po=4),4===po?(ho=function Oa(pe){if(!pe||!pe.state)return un;var lt=pe.state;return lt.window&&(lt.window=null),pe.state=null,Xt}(this.strm),this.onEnd(ho),this.ended=!0,0===ho):(2===po&&(this.onEnd(0),on.avail_out=0),!0)}onData(lt){this.chunks.push(lt)}onEnd(lt){0===lt&&(this.result="string"===this.options.to?this.chunks.join(""):re(this.chunks)),this.chunks=[],this.err=lt,this.msg=this.strm.msg}}function br(pe){for(var lt=pe.length;--lt>=0;)pe[lt]=0}var No,qr,js,Ds,Zr,ls,Js,Wa,ll,Ti=0,mr=1,ri=2,mo=3,Ii=258,yo=29,lr=256,Yr=lr+1+yo,Gs=30,fi=19,Ho=2*Yr+1,_t=15,Zn=16,qo=7,Cr=256,kr=16,xs=17,Us=18,Ts=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Ss=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Ua=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],$o=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ar=512;function Hs(pe,lt,yt,on,zi){this.static_tree=pe,this.extra_bits=lt,this.extra_base=yt,this.elems=on,this.max_length=zi,this.has_stree=pe&&pe.length}function Za(pe,lt){this.dyn_tree=pe,this.max_code=0,this.stat_desc=lt}function sl(pe){return pe<256?js[pe]:js[256+(pe>>>7)]}function Jt(pe,lt){pe.pending_buf[pe.pending++]=255&lt,pe.pending_buf[pe.pending++]=lt>>>8&255}function Tt(pe,lt,yt){pe.bi_valid>Zn-yt?(pe.bi_buf|=lt<<pe.bi_valid&65535,Jt(pe,pe.bi_buf),pe.bi_buf=lt>>Zn-pe.bi_valid,pe.bi_valid+=yt-Zn):(pe.bi_buf|=lt<<pe.bi_valid&65535,pe.bi_valid+=yt)}function ht(pe,lt,yt){Tt(pe,yt[2*lt],yt[2*lt+1])}function yn(pe,lt){var yt=0;do{yt|=1&pe,pe>>>=1,yt<<=1}while(--lt>0);return yt>>>1}function co(pe,lt,yt){var Kn,ho,on=new Array(_t+1),zi=0;for(Kn=1;Kn<=_t;Kn++)on[Kn]=zi=zi+yt[Kn-1]<<1;for(ho=0;ho<=lt;ho++){var po=pe[2*ho+1];0!==po&&(pe[2*ho]=yn(on[po]++,po))}}function yr(pe){var lt;for(lt=0;lt<Yr;lt++)pe.dyn_ltree[2*lt]=0;for(lt=0;lt<Gs;lt++)pe.dyn_dtree[2*lt]=0;for(lt=0;lt<fi;lt++)pe.bl_tree[2*lt]=0;pe.dyn_ltree[2*Cr]=1,pe.opt_len=pe.static_len=0,pe.last_lit=pe.matches=0}function Ur(pe){pe.bi_valid>8?Jt(pe,pe.bi_buf):pe.bi_valid>0&&(pe.pending_buf[pe.pending++]=pe.bi_buf),pe.bi_buf=0,pe.bi_valid=0}function gs(pe,lt,yt,on){var zi=2*lt,Kn=2*yt;return pe[zi]<pe[Kn]||pe[zi]===pe[Kn]&&on[lt]<=on[yt]}function Pr(pe,lt,yt){for(var on=pe.heap[yt],zi=yt<<1;zi<=pe.heap_len&&(zi<pe.heap_len&&gs(lt,pe.heap[zi+1],pe.heap[zi],pe.depth)&&zi++,!gs(lt,on,pe.heap[zi],pe.depth));)pe.heap[yt]=pe.heap[zi],yt=zi,zi<<=1;pe.heap[yt]=on}function ys(pe,lt,yt){var on,zi,ho,po,Kn=0;if(0!==pe.last_lit)do{on=pe.pending_buf[pe.d_buf+2*Kn]<<8|pe.pending_buf[pe.d_buf+2*Kn+1],zi=pe.pending_buf[pe.l_buf+Kn],Kn++,0===on?ht(pe,zi,lt):(ht(pe,(ho=Ds[zi])+lr+1,lt),0!==(po=Ts[ho])&&Tt(pe,zi-=Zr[ho],po),ht(pe,ho=sl(--on),yt),0!==(po=Ss[ho])&&Tt(pe,on-=ls[ho],po))}while(Kn<pe.last_lit);ht(pe,Cr,lt)}function da(pe,lt){var ho,po,ro,yt=lt.dyn_tree,on=lt.stat_desc.static_tree,zi=lt.stat_desc.has_stree,Kn=lt.stat_desc.elems,$i=-1;for(pe.heap_len=0,pe.heap_max=Ho,ho=0;ho<Kn;ho++)0!==yt[2*ho]?(pe.heap[++pe.heap_len]=$i=ho,pe.depth[ho]=0):yt[2*ho+1]=0;for(;pe.heap_len<2;)yt[2*(ro=pe.heap[++pe.heap_len]=$i<2?++$i:0)]=1,pe.depth[ro]=0,pe.opt_len--,zi&&(pe.static_len-=on[2*ro+1]);for(lt.max_code=$i,ho=pe.heap_len>>1;ho>=1;ho--)Pr(pe,yt,ho);ro=Kn;do{ho=pe.heap[1],pe.heap[1]=pe.heap[pe.heap_len--],Pr(pe,yt,1),po=pe.heap[1],pe.heap[--pe.heap_max]=ho,pe.heap[--pe.heap_max]=po,yt[2*ro]=yt[2*ho]+yt[2*po],pe.depth[ro]=(pe.depth[ho]>=pe.depth[po]?pe.depth[ho]:pe.depth[po])+1,yt[2*ho+1]=yt[2*po+1]=ro,pe.heap[1]=ro++,Pr(pe,yt,1)}while(pe.heap_len>=2);pe.heap[--pe.heap_max]=pe.heap[1],function Yi(pe,lt){var ro,wo,io,Wi,fo,cr,yt=lt.dyn_tree,on=lt.max_code,zi=lt.stat_desc.static_tree,Kn=lt.stat_desc.has_stree,ho=lt.stat_desc.extra_bits,po=lt.stat_desc.extra_base,$i=lt.stat_desc.max_length,Fr=0;for(Wi=0;Wi<=_t;Wi++)pe.bl_count[Wi]=0;for(yt[2*pe.heap[pe.heap_max]+1]=0,ro=pe.heap_max+1;ro<Ho;ro++)(Wi=yt[2*yt[2*(wo=pe.heap[ro])+1]+1]+1)>$i&&(Wi=$i,Fr++),yt[2*wo+1]=Wi,!(wo>on)&&(pe.bl_count[Wi]++,fo=0,wo>=po&&(fo=ho[wo-po]),pe.opt_len+=(cr=yt[2*wo])*(Wi+fo),Kn&&(pe.static_len+=cr*(zi[2*wo+1]+fo)));if(0!==Fr){do{for(Wi=$i-1;0===pe.bl_count[Wi];)Wi--;pe.bl_count[Wi]--,pe.bl_count[Wi+1]+=2,pe.bl_count[$i]--,Fr-=2}while(Fr>0);for(Wi=$i;0!==Wi;Wi--)for(wo=pe.bl_count[Wi];0!==wo;)!((io=pe.heap[--ro])>on)&&(yt[2*io+1]!==Wi&&(pe.opt_len+=(Wi-yt[2*io+1])*yt[2*io],yt[2*io+1]=Wi),wo--)}}(pe,lt),co(yt,$i,pe.bl_count)}function Va(pe,lt,yt){var on,Kn,zi=-1,ho=lt[1],po=0,$i=7,ro=4;for(0===ho&&($i=138,ro=3),lt[2*(yt+1)+1]=65535,on=0;on<=yt;on++)Kn=ho,ho=lt[2*(on+1)+1],!(++po<$i&&Kn===ho)&&(po<ro?pe.bl_tree[2*Kn]+=po:0!==Kn?(Kn!==zi&&pe.bl_tree[2*Kn]++,pe.bl_tree[2*kr]++):po<=10?pe.bl_tree[2*xs]++:pe.bl_tree[2*Us]++,po=0,zi=Kn,0===ho?($i=138,ro=3):Kn===ho?($i=6,ro=3):($i=7,ro=4))}function ga(pe,lt,yt){var on,Kn,zi=-1,ho=lt[1],po=0,$i=7,ro=4;for(0===ho&&($i=138,ro=3),on=0;on<=yt;on++)if(Kn=ho,ho=lt[2*(on+1)+1],!(++po<$i&&Kn===ho)){if(po<ro)do{ht(pe,Kn,pe.bl_tree)}while(0!=--po);else 0!==Kn?(Kn!==zi&&(ht(pe,Kn,pe.bl_tree),po--),ht(pe,kr,pe.bl_tree),Tt(pe,po-3,2)):po<=10?(ht(pe,xs,pe.bl_tree),Tt(pe,po-3,3)):(ht(pe,Us,pe.bl_tree),Tt(pe,po-11,7));po=0,zi=Kn,0===ho?($i=138,ro=3):Kn===ho?($i=6,ro=3):($i=7,ro=4)}}var ra=!1;function vn(pe,lt,yt,on){Tt(pe,(Ti<<1)+(on?1:0),3),function ss(pe,lt,yt,on){Ur(pe),on&&(Jt(pe,yt),Jt(pe,~yt)),Q(pe.pending_buf,pe.window,lt,yt,pe.pending),pe.pending+=yt}(pe,lt,yt,!0)}function ze(pe,lt,yt){return pe.pending_buf[pe.d_buf+2*pe.last_lit]=lt>>>8&255,pe.pending_buf[pe.d_buf+2*pe.last_lit+1]=255&lt,pe.pending_buf[pe.l_buf+pe.last_lit]=255&yt,pe.last_lit++,0===lt?pe.dyn_ltree[2*yt]++:(pe.matches++,lt--,pe.dyn_ltree[2*(Ds[yt]+lr+1)]++,pe.dyn_dtree[2*sl(lt)]++),pe.last_lit===pe.lit_bufsize-1}var Dn=3,kn=258,ui=kn+Dn+1;function Rt(pe,lt){return pe.msg=tr[lt],lt}function Pt(pe){return(pe<<1)-(pe>4?9:0)}function $t(pe){for(var lt=pe.length;--lt>=0;)pe[lt]=0}function Xn(pe){var lt=pe.state,yt=lt.pending;yt>pe.avail_out&&(yt=pe.avail_out),0!==yt&&(Q(pe.output,lt.pending_buf,lt.pending_out,yt,pe.next_out),pe.next_out+=yt,lt.pending_out+=yt,pe.total_out+=yt,pe.avail_out-=yt,lt.pending-=yt,0===lt.pending&&(lt.pending_out=0))}function Nn(pe,lt){(function Ke(pe,lt,yt,on){var zi,Kn,ho=0;pe.level>0?(pe.strm.data_type===P&&(pe.strm.data_type=function La(pe){var yt,lt=4093624447;for(yt=0;yt<=31;yt++,lt>>>=1)if(1&lt&&0!==pe.dyn_ltree[2*yt])return D;if(0!==pe.dyn_ltree[18]||0!==pe.dyn_ltree[20]||0!==pe.dyn_ltree[26])return F;for(yt=32;yt<lr;yt++)if(0!==pe.dyn_ltree[2*yt])return F;return D}(pe)),da(pe,pe.l_desc),da(pe,pe.d_desc),ho=function al(pe){var lt;for(Va(pe,pe.dyn_ltree,pe.l_desc.max_code),Va(pe,pe.dyn_dtree,pe.d_desc.max_code),da(pe,pe.bl_desc),lt=fi-1;lt>=3&&0===pe.bl_tree[2*$o[lt]+1];lt--);return pe.opt_len+=3*(lt+1)+5+5+4,lt}(pe),(Kn=pe.static_len+3+7>>>3)<=(zi=pe.opt_len+3+7>>>3)&&(zi=Kn)):zi=Kn=yt+5,yt+4<=zi&&-1!==lt?vn(pe,lt,yt,on):pe.strategy===I||Kn===zi?(Tt(pe,(mr<<1)+(on?1:0),3),ys(pe,No,qr)):(Tt(pe,(ri<<1)+(on?1:0),3),function ur(pe,lt,yt,on){var zi;for(Tt(pe,lt-257,5),Tt(pe,yt-1,5),Tt(pe,on-4,4),zi=0;zi<on;zi++)Tt(pe,pe.bl_tree[2*$o[zi]+1],3);ga(pe,pe.dyn_ltree,lt-1),ga(pe,pe.dyn_dtree,yt-1)}(pe,pe.l_desc.max_code+1,pe.d_desc.max_code+1,ho+1),ys(pe,pe.dyn_ltree,pe.dyn_dtree)),yr(pe),on&&Ur(pe)})(pe,pe.block_start>=0?pe.block_start:-1,pe.strstart-pe.block_start,lt),pe.block_start=pe.strstart,Xn(pe.strm)}function Ae(pe,lt){pe.pending_buf[pe.pending++]=lt}function He(pe,lt){pe.pending_buf[pe.pending++]=lt>>>8&255,pe.pending_buf[pe.pending++]=255&lt}function Kt(pe,lt,yt,on){var zi=pe.avail_in;return zi>on&&(zi=on),0===zi?0:(pe.avail_in-=zi,Q(lt,pe.input,pe.next_in,zi,yt),1===pe.state.wrap?pe.adler=De(pe.adler,lt,zi,yt):2===pe.state.wrap&&(pe.adler=Oe(pe.adler,lt,zi,yt)),pe.next_in+=zi,pe.total_in+=zi,zi)}function On(pe,lt){var zi,Kn,yt=pe.max_chain_length,on=pe.strstart,ho=pe.prev_length,po=pe.nice_match,$i=pe.strstart>pe.w_size-ui?pe.strstart-(pe.w_size-ui):0,ro=pe.window,wo=pe.w_mask,io=pe.prev,Wi=pe.strstart+kn,fo=ro[on+ho-1],cr=ro[on+ho];pe.prev_length>=pe.good_match&&(yt>>=2),po>pe.lookahead&&(po=pe.lookahead);do{if(ro[(zi=lt)+ho]===cr&&ro[zi+ho-1]===fo&&ro[zi]===ro[on]&&ro[++zi]===ro[on+1]){on+=2,zi++;do{}while(ro[++on]===ro[++zi]&&ro[++on]===ro[++zi]&&ro[++on]===ro[++zi]&&ro[++on]===ro[++zi]&&ro[++on]===ro[++zi]&&ro[++on]===ro[++zi]&&ro[++on]===ro[++zi]&&ro[++on]===ro[++zi]&&on<Wi);if(Kn=kn-(Wi-on),on=Wi-kn,Kn>ho){if(pe.match_start=lt,ho=Kn,Kn>=po)break;fo=ro[on+ho-1],cr=ro[on+ho]}}}while((lt=io[lt&wo])>$i&&0!=--yt);return ho<=pe.lookahead?ho:pe.lookahead}function Fi(pe){var yt,on,zi,Kn,ho,lt=pe.w_size;do{if(Kn=pe.window_size-pe.lookahead-pe.strstart,pe.strstart>=lt+(lt-ui)){Q(pe.window,pe.window,lt,lt,0),pe.match_start-=lt,pe.strstart-=lt,pe.block_start-=lt,yt=on=pe.hash_size;do{zi=pe.head[--yt],pe.head[yt]=zi>=lt?zi-lt:0}while(--on);yt=on=lt;do{zi=pe.prev[--yt],pe.prev[yt]=zi>=lt?zi-lt:0}while(--on);Kn+=lt}if(0===pe.strm.avail_in)break;if(on=Kt(pe.strm,pe.window,pe.strstart+pe.lookahead,Kn),pe.lookahead+=on,pe.lookahead+pe.insert>=Dn)for(pe.ins_h=pe.window[ho=pe.strstart-pe.insert],pe.ins_h=(pe.ins_h<<pe.hash_shift^pe.window[ho+1])&pe.hash_mask;pe.insert&&(pe.ins_h=(pe.ins_h<<pe.hash_shift^pe.window[ho+Dn-1])&pe.hash_mask,pe.prev[ho&pe.w_mask]=pe.head[pe.ins_h],pe.head[pe.ins_h]=ho,ho++,pe.insert--,!(pe.lookahead+pe.insert<Dn)););}while(pe.lookahead<ui&&0!==pe.strm.avail_in)}function Ci(pe,lt){var yt=65535;for(yt>pe.pending_buf_size-5&&(yt=pe.pending_buf_size-5);;){if(pe.lookahead<=1){if(Fi(pe),0===pe.lookahead&&0===lt)return 1;if(0===pe.lookahead)break}pe.strstart+=pe.lookahead,pe.lookahead=0;var on=pe.block_start+yt;if((0===pe.strstart||pe.strstart>=on)&&(pe.lookahead=pe.strstart-on,pe.strstart=on,Nn(pe,!1),0===pe.strm.avail_out)||pe.strstart-pe.block_start>=pe.w_size-ui&&(Nn(pe,!1),0===pe.strm.avail_out))return 1}return pe.insert=0,4===lt?(Nn(pe,!0),0===pe.strm.avail_out?3:4):(pe.strstart>pe.block_start&&Nn(pe,!1),1)}function xi(pe,lt){for(var yt,on;;){if(pe.lookahead<ui){if(Fi(pe),pe.lookahead<ui&&0===lt)return 1;if(0===pe.lookahead)break}if(yt=0,pe.lookahead>=Dn&&(pe.ins_h=(pe.ins_h<<pe.hash_shift^pe.window[pe.strstart+Dn-1])&pe.hash_mask,yt=pe.prev[pe.strstart&pe.w_mask]=pe.head[pe.ins_h],pe.head[pe.ins_h]=pe.strstart),0!==yt&&pe.strstart-yt<=pe.w_size-ui&&(pe.match_length=On(pe,yt)),pe.match_length>=Dn)if(on=ze(pe,pe.strstart-pe.match_start,pe.match_length-Dn),pe.lookahead-=pe.match_length,pe.match_length<=pe.max_lazy_match&&pe.lookahead>=Dn){pe.match_length--;do{pe.strstart++,pe.ins_h=(pe.ins_h<<pe.hash_shift^pe.window[pe.strstart+Dn-1])&pe.hash_mask,yt=pe.prev[pe.strstart&pe.w_mask]=pe.head[pe.ins_h],pe.head[pe.ins_h]=pe.strstart}while(0!=--pe.match_length);pe.strstart++}else pe.strstart+=pe.match_length,pe.match_length=0,pe.ins_h=pe.window[pe.strstart],pe.ins_h=(pe.ins_h<<pe.hash_shift^pe.window[pe.strstart+1])&pe.hash_mask;else on=ze(pe,0,pe.window[pe.strstart]),pe.lookahead--,pe.strstart++;if(on&&(Nn(pe,!1),0===pe.strm.avail_out))return 1}return pe.insert=pe.strstart<Dn-1?pe.strstart:Dn-1,4===lt?(Nn(pe,!0),0===pe.strm.avail_out?3:4):pe.last_lit&&(Nn(pe,!1),0===pe.strm.avail_out)?1:2}function Wn(pe,lt){for(var yt,on,zi;;){if(pe.lookahead<ui){if(Fi(pe),pe.lookahead<ui&&0===lt)return 1;if(0===pe.lookahead)break}if(yt=0,pe.lookahead>=Dn&&(pe.ins_h=(pe.ins_h<<pe.hash_shift^pe.window[pe.strstart+Dn-1])&pe.hash_mask,yt=pe.prev[pe.strstart&pe.w_mask]=pe.head[pe.ins_h],pe.head[pe.ins_h]=pe.strstart),pe.prev_length=pe.match_length,pe.prev_match=pe.match_start,pe.match_length=Dn-1,0!==yt&&pe.prev_length<pe.max_lazy_match&&pe.strstart-yt<=pe.w_size-ui&&(pe.match_length=On(pe,yt),pe.match_length<=5&&(1===pe.strategy||pe.match_length===Dn&&pe.strstart-pe.match_start>4096)&&(pe.match_length=Dn-1)),pe.prev_length>=Dn&&pe.match_length<=pe.prev_length){zi=pe.strstart+pe.lookahead-Dn,on=ze(pe,pe.strstart-1-pe.prev_match,pe.prev_length-Dn),pe.lookahead-=pe.prev_length-1,pe.prev_length-=2;do{++pe.strstart<=zi&&(pe.ins_h=(pe.ins_h<<pe.hash_shift^pe.window[pe.strstart+Dn-1])&pe.hash_mask,yt=pe.prev[pe.strstart&pe.w_mask]=pe.head[pe.ins_h],pe.head[pe.ins_h]=pe.strstart)}while(0!=--pe.prev_length);if(pe.match_available=0,pe.match_length=Dn-1,pe.strstart++,on&&(Nn(pe,!1),0===pe.strm.avail_out))return 1}else if(pe.match_available){if((on=ze(pe,0,pe.window[pe.strstart-1]))&&Nn(pe,!1),pe.strstart++,pe.lookahead--,0===pe.strm.avail_out)return 1}else pe.match_available=1,pe.strstart++,pe.lookahead--}return pe.match_available&&(on=ze(pe,0,pe.window[pe.strstart-1]),pe.match_available=0),pe.insert=pe.strstart<Dn-1?pe.strstart:Dn-1,4===lt?(Nn(pe,!0),0===pe.strm.avail_out?3:4):pe.last_lit&&(Nn(pe,!1),0===pe.strm.avail_out)?1:2}function bn(pe,lt,yt,on,zi){this.good_length=pe,this.max_lazy=lt,this.nice_length=yt,this.max_chain=on,this.func=zi}let ii=function(){const pe=[new bn(0,0,0,0,Ci),new bn(4,4,8,4,xi),new bn(4,5,16,8,xi),new bn(4,6,32,32,xi),new bn(4,4,16,16,Wn),new bn(8,16,32,32,Wn),new bn(8,16,128,128,Wn),new bn(8,32,128,256,Wn),new bn(32,128,258,1024,Wn),new bn(32,258,258,4096,Wn)];return ii=()=>pe,pe};function Jn(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=te(1146),this.dyn_dtree=te(122),this.bl_tree=te(78),$t(this.dyn_ltree),$t(this.dyn_dtree),$t(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=te(16),this.heap=te(573),$t(this.heap),this.heap_len=0,this.heap_max=0,this.depth=te(573),$t(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function mn(pe){var lt=function zt(pe){var lt;return pe&&pe.state?(pe.total_in=pe.total_out=0,pe.data_type=P,(lt=pe.state).pending=0,lt.pending_out=0,lt.wrap<0&&(lt.wrap=-lt.wrap),lt.status=lt.wrap?42:113,pe.adler=2===lt.wrap?0:1,lt.last_flush=0,function Ls(pe){ra||(function sr(){var pe,lt,yt,on,zi,Kn=new Array(_t+1);for(br(No=new Array(2*(Yr+2))),br(qr=new Array(2*Gs)),br(js=new Array(Ar)),br(Ds=new Array(Ii-mo+1)),br(Zr=new Array(yo)),br(ls=new Array(Gs)),yt=0,on=0;on<yo-1;on++)for(Zr[on]=yt,pe=0;pe<1<<Ts[on];pe++)Ds[yt++]=on;for(Ds[yt-1]=on,zi=0,on=0;on<16;on++)for(ls[on]=zi,pe=0;pe<1<<Ss[on];pe++)js[zi++]=on;for(zi>>=7;on<Gs;on++)for(ls[on]=zi<<7,pe=0;pe<1<<Ss[on]-7;pe++)js[256+zi++]=on;for(lt=0;lt<=_t;lt++)Kn[lt]=0;for(pe=0;pe<=143;)No[2*pe+1]=8,pe++,Kn[8]++;for(;pe<=255;)No[2*pe+1]=9,pe++,Kn[9]++;for(;pe<=279;)No[2*pe+1]=7,pe++,Kn[7]++;for(;pe<=287;)No[2*pe+1]=8,pe++,Kn[8]++;for(co(No,Yr+1,Kn),pe=0;pe<Gs;pe++)qr[2*pe+1]=5,qr[2*pe]=yn(pe,5);Js=new Hs(No,Ts,lr+1,Yr,_t),Wa=new Hs(qr,Ss,0,Gs,_t),ll=new Hs(new Array(0),Ua,0,fi,qo)}(),ra=!0),pe.l_desc=new Za(pe.dyn_ltree,Js),pe.d_desc=new Za(pe.dyn_dtree,Wa),pe.bl_desc=new Za(pe.bl_tree,ll),pe.bi_buf=0,pe.bi_valid=0,yr(pe)}(lt),0):Rt(pe,R)}(pe);return 0===lt&&function Vi(pe){pe.window_size=2*pe.w_size,$t(pe.head);const lt=ii();pe.max_lazy_match=lt[pe.level].max_lazy,pe.good_match=lt[pe.level].good_length,pe.nice_match=lt[pe.level].nice_length,pe.max_chain_length=lt[pe.level].max_chain,pe.strstart=0,pe.block_start=0,pe.lookahead=0,pe.insert=0,pe.match_length=pe.prev_length=Dn-1,pe.match_available=0,pe.ins_h=0}(pe.state),lt}function Oi(pe,lt){var yt,on,zi,Kn;if(!pe||!pe.state||lt>5||lt<0)return pe?Rt(pe,R):R;if(on=pe.state,!pe.output||!pe.input&&0!==pe.avail_in||666===on.status&&4!==lt)return Rt(pe,0===pe.avail_out?-5:R);if(on.strm=pe,yt=on.last_flush,on.last_flush=lt,42===on.status)if(2===on.wrap)pe.adler=0,Ae(on,31),Ae(on,139),Ae(on,8),on.gzhead?(Ae(on,(on.gzhead.text?1:0)+(on.gzhead.hcrc?2:0)+(on.gzhead.extra?4:0)+(on.gzhead.name?8:0)+(on.gzhead.comment?16:0)),Ae(on,255&on.gzhead.time),Ae(on,on.gzhead.time>>8&255),Ae(on,on.gzhead.time>>16&255),Ae(on,on.gzhead.time>>24&255),Ae(on,9===on.level?2:on.strategy>=2||on.level<2?4:0),Ae(on,255&on.gzhead.os),on.gzhead.extra&&on.gzhead.extra.length&&(Ae(on,255&on.gzhead.extra.length),Ae(on,on.gzhead.extra.length>>8&255)),on.gzhead.hcrc&&(pe.adler=Oe(pe.adler,on.pending_buf,on.pending,0)),on.gzindex=0,on.status=69):(Ae(on,0),Ae(on,0),Ae(on,0),Ae(on,0),Ae(on,0),Ae(on,9===on.level?2:on.strategy>=2||on.level<2?4:0),Ae(on,3),on.status=113);else{var ho=8+(on.w_bits-8<<4)<<8;ho|=(on.strategy>=2||on.level<2?0:on.level<6?1:6===on.level?2:3)<<6,0!==on.strstart&&(ho|=32),ho+=31-ho%31,on.status=113,He(on,ho),0!==on.strstart&&(He(on,pe.adler>>>16),He(on,65535&pe.adler)),pe.adler=1}if(69===on.status)if(on.gzhead.extra){for(zi=on.pending;on.gzindex<(65535&on.gzhead.extra.length)&&(on.pending!==on.pending_buf_size||(on.gzhead.hcrc&&on.pending>zi&&(pe.adler=Oe(pe.adler,on.pending_buf,on.pending-zi,zi)),Xn(pe),zi=on.pending,on.pending!==on.pending_buf_size));)Ae(on,255&on.gzhead.extra[on.gzindex]),on.gzindex++;on.gzhead.hcrc&&on.pending>zi&&(pe.adler=Oe(pe.adler,on.pending_buf,on.pending-zi,zi)),on.gzindex===on.gzhead.extra.length&&(on.gzindex=0,on.status=73)}else on.status=73;if(73===on.status)if(on.gzhead.name){zi=on.pending;do{if(on.pending===on.pending_buf_size&&(on.gzhead.hcrc&&on.pending>zi&&(pe.adler=Oe(pe.adler,on.pending_buf,on.pending-zi,zi)),Xn(pe),zi=on.pending,on.pending===on.pending_buf_size)){Kn=1;break}Kn=on.gzindex<on.gzhead.name.length?255&on.gzhead.name.charCodeAt(on.gzindex++):0,Ae(on,Kn)}while(0!==Kn);on.gzhead.hcrc&&on.pending>zi&&(pe.adler=Oe(pe.adler,on.pending_buf,on.pending-zi,zi)),0===Kn&&(on.gzindex=0,on.status=91)}else on.status=91;if(91===on.status)if(on.gzhead.comment){zi=on.pending;do{if(on.pending===on.pending_buf_size&&(on.gzhead.hcrc&&on.pending>zi&&(pe.adler=Oe(pe.adler,on.pending_buf,on.pending-zi,zi)),Xn(pe),zi=on.pending,on.pending===on.pending_buf_size)){Kn=1;break}Kn=on.gzindex<on.gzhead.comment.length?255&on.gzhead.comment.charCodeAt(on.gzindex++):0,Ae(on,Kn)}while(0!==Kn);on.gzhead.hcrc&&on.pending>zi&&(pe.adler=Oe(pe.adler,on.pending_buf,on.pending-zi,zi)),0===Kn&&(on.status=103)}else on.status=103;if(103===on.status&&(on.gzhead.hcrc?(on.pending+2>on.pending_buf_size&&Xn(pe),on.pending+2<=on.pending_buf_size&&(Ae(on,255&pe.adler),Ae(on,pe.adler>>8&255),pe.adler=0,on.status=113)):on.status=113),0!==on.pending){if(Xn(pe),0===pe.avail_out)return on.last_flush=-1,0}else if(0===pe.avail_in&&Pt(lt)<=Pt(yt)&&4!==lt)return Rt(pe,-5);if(666===on.status&&0!==pe.avail_in)return Rt(pe,-5);if(0!==pe.avail_in||0!==on.lookahead||0!==lt&&666!==on.status){var $i=2===on.strategy?function qt(pe,lt){for(var yt;;){if(0===pe.lookahead&&(Fi(pe),0===pe.lookahead)){if(0===lt)return 1;break}if(pe.match_length=0,yt=ze(pe,0,pe.window[pe.strstart]),pe.lookahead--,pe.strstart++,yt&&(Nn(pe,!1),0===pe.strm.avail_out))return 1}return pe.insert=0,4===lt?(Nn(pe,!0),0===pe.strm.avail_out?3:4):pe.last_lit&&(Nn(pe,!1),0===pe.strm.avail_out)?1:2}(on,lt):3===on.strategy?function Vt(pe,lt){for(var yt,on,zi,Kn,ho=pe.window;;){if(pe.lookahead<=kn){if(Fi(pe),pe.lookahead<=kn&&0===lt)return 1;if(0===pe.lookahead)break}if(pe.match_length=0,pe.lookahead>=Dn&&pe.strstart>0&&(on=ho[zi=pe.strstart-1])===ho[++zi]&&on===ho[++zi]&&on===ho[++zi]){Kn=pe.strstart+kn;do{}while(on===ho[++zi]&&on===ho[++zi]&&on===ho[++zi]&&on===ho[++zi]&&on===ho[++zi]&&on===ho[++zi]&&on===ho[++zi]&&on===ho[++zi]&&zi<Kn);pe.match_length=kn-(Kn-zi),pe.match_length>pe.lookahead&&(pe.match_length=pe.lookahead)}if(pe.match_length>=Dn?(yt=ze(pe,1,pe.match_length-Dn),pe.lookahead-=pe.match_length,pe.strstart+=pe.match_length,pe.match_length=0):(yt=ze(pe,0,pe.window[pe.strstart]),pe.lookahead--,pe.strstart++),yt&&(Nn(pe,!1),0===pe.strm.avail_out))return 1}return pe.insert=0,4===lt?(Nn(pe,!0),0===pe.strm.avail_out?3:4):pe.last_lit&&(Nn(pe,!1),0===pe.strm.avail_out)?1:2}(on,lt):ii()[on.level].func(on,lt);if((3===$i||4===$i)&&(on.status=666),1===$i||3===$i)return 0===pe.avail_out&&(on.last_flush=-1),0;if(2===$i&&(1===lt?function Xe(pe){Tt(pe,mr<<1,3),ht(pe,Cr,No),function vi(pe){16===pe.bi_valid?(Jt(pe,pe.bi_buf),pe.bi_buf=0,pe.bi_valid=0):pe.bi_valid>=8&&(pe.pending_buf[pe.pending++]=255&pe.bi_buf,pe.bi_buf>>=8,pe.bi_valid-=8)}(pe)}(on):5!==lt&&(vn(on,0,0,!1),3===lt&&($t(on.head),0===on.lookahead&&(on.strstart=0,on.block_start=0,on.insert=0))),Xn(pe),0===pe.avail_out))return on.last_flush=-1,0}return 4!==lt?0:on.wrap<=0?1:(2===on.wrap?(Ae(on,255&pe.adler),Ae(on,pe.adler>>8&255),Ae(on,pe.adler>>16&255),Ae(on,pe.adler>>24&255),Ae(on,255&pe.total_in),Ae(on,pe.total_in>>8&255),Ae(on,pe.total_in>>16&255),Ae(on,pe.total_in>>24&255)):(He(on,pe.adler>>>16),He(on,65535&pe.adler)),Xn(pe),on.wrap>0&&(on.wrap=-on.wrap),0!==on.pending?0:1)}var qn=Object.prototype.toString;class Ni{constructor(lt){this.options=V({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},lt||{});var yt=this.options;yt.raw&&yt.windowBits>0?yt.windowBits=-yt.windowBits:yt.gzip&&yt.windowBits>0&&yt.windowBits<16&&(yt.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Mr,this.strm.avail_out=0;var on=function ci(pe,lt,yt,on,zi,Kn){if(!pe)return R;var ho=1;if(-1===lt&&(lt=6),on<0?(ho=0,on=-on):on>15&&(ho=2,on-=16),zi<1||zi>9||8!==yt||on<8||on>15||lt<0||lt>9||Kn<0||Kn>I)return Rt(pe,R);8===on&&(on=9);var po=new Jn;return pe.state=po,po.strm=pe,po.wrap=ho,po.gzhead=null,po.w_bits=on,po.w_size=1<<po.w_bits,po.w_mask=po.w_size-1,po.hash_bits=zi+7,po.hash_size=1<<po.hash_bits,po.hash_mask=po.hash_size-1,po.hash_shift=~~((po.hash_bits+Dn-1)/Dn),po.window=de(2*po.w_size),po.head=te(po.hash_size),po.prev=te(po.w_size),po.lit_bufsize=1<<zi+6,po.pending_buf_size=4*po.lit_bufsize,po.pending_buf=de(po.pending_buf_size),po.d_buf=1*po.lit_bufsize,po.l_buf=3*po.lit_bufsize,po.level=lt,po.strategy=Kn,po.method=yt,mn(pe)}(this.strm,yt.level,yt.method,yt.windowBits,yt.memLevel,yt.strategy);if(0!==on)throw new Error(tr[on]);if(yt.header&&function Qn(pe,lt){pe&&pe.state&&2===pe.state.wrap&&(pe.state.gzhead=lt)}(this.strm,yt.header),yt.dictionary){var zi;if(zi="string"==typeof yt.dictionary?se(yt.dictionary):"[object ArrayBuffer]"===qn.call(yt.dictionary)?new Uint8Array(yt.dictionary):yt.dictionary,on=function Pn(pe,lt){var on,zi,Kn,ho,po,$i,ro,wo,yt=lt.length;if(!pe||!pe.state||2===(ho=(on=pe.state).wrap)||1===ho&&42!==on.status||on.lookahead)return R;for(1===ho&&(pe.adler=De(pe.adler,lt,yt,0)),on.wrap=0,yt>=on.w_size&&(0===ho&&($t(on.head),on.strstart=0,on.block_start=0,on.insert=0),wo=de(on.w_size),Q(wo,lt,yt-on.w_size,on.w_size,0),lt=wo,yt=on.w_size),po=pe.avail_in,$i=pe.next_in,ro=pe.input,pe.avail_in=yt,pe.next_in=0,pe.input=lt,Fi(on);on.lookahead>=Dn;){zi=on.strstart,Kn=on.lookahead-(Dn-1);do{on.ins_h=(on.ins_h<<on.hash_shift^on.window[zi+Dn-1])&on.hash_mask,on.prev[zi&on.w_mask]=on.head[on.ins_h],on.head[on.ins_h]=zi,zi++}while(--Kn);on.strstart=zi,on.lookahead=Dn-1,Fi(on)}return on.strstart+=on.lookahead,on.block_start=on.strstart,on.insert=on.lookahead,on.lookahead=0,on.match_length=on.prev_length=Dn-1,on.match_available=0,pe.next_in=$i,pe.input=ro,pe.avail_in=po,on.wrap=ho,0}(this.strm,zi),0!==on)throw new Error(tr[on]);this._dict_set=!0}}push(lt,yt){var Kn,ho,pe,on=this.strm,zi=this.options.chunkSize;if(this.ended)return!1;ho=yt===~~yt?yt:!0===yt?4:0,on.input="string"==typeof lt?se(lt):"[object ArrayBuffer]"===qn.call(lt)?new Uint8Array(lt):lt,on.next_in=0,on.avail_in=on.input.length;do{if(0===on.avail_out&&(on.output=de(zi),on.next_out=0,on.avail_out=zi),1!==(Kn=Oi(on,ho))&&0!==Kn)return this.onEnd(Kn),this.ended=!0,!1;(0===on.avail_out||0===on.avail_in&&(4===ho||2===ho))&&this.onData("string"===this.options.to?ne(pe=K(on.output,on.next_out),pe.length):K(on.output,on.next_out))}while((on.avail_in>0||0===on.avail_out)&&1!==Kn);return 4===ho?(Kn=function Ai(pe){var lt;return pe&&pe.state?42!==(lt=pe.state.status)&&69!==lt&&73!==lt&&91!==lt&&103!==lt&&113!==lt&&666!==lt?Rt(pe,R):(pe.state=null,113===lt?Rt(pe,-3):0):R}(this.strm),this.onEnd(Kn),this.ended=!0,0===Kn):(2===ho&&(this.onEnd(0),on.avail_out=0),!0)}onData(lt){this.chunks.push(lt)}onEnd(lt){0===lt&&(this.result="string"===this.options.to?this.chunks.join(""):re(this.chunks)),this.chunks=[],this.err=lt,this.msg=this.strm.msg}}function Ue(pe,lt){var yt=new Ni(lt);if(yt.push(pe,!0),yt.err)throw yt.msg||tr[yt.err];return yt.result}},4212:(he,y,i)=>{var e=i(82276);window.$||(window.$=e),window.jQuery||(window.jQuery=e),window.kendo||(window.kendo=i(35536))},78461:(he,y,i)=>{var o,a,u,l,e=i(82276),n={};o=window,(l=o.Cowboy||(o.Cowboy={})).throttle=u=function(d,s,A,_){var C,R=0;function x(){var f=this,k=+new Date-R,w=arguments;function g(){R=+new Date,A.apply(f,w)}_&&!C&&g(),C&&clearTimeout(C),_===a&&k>d?g():!0!==s&&(C=setTimeout(_?function M(){C=a}:g,_===a?d-k:d))}return"boolean"!=typeof s&&(_=A,A=s,s=a),l.guid&&(x.guid=A.guid=A.guid||l.guid++),x},l.debounce=function(d,s,A){return A===a?u(d,s,!1):u(d,A,!1!==s)},function(o,a,l,u,d){"use strict";var s=/{(\w+?)}/g,A={DELETE:46,BACKSPACE:8,TAB:9,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36},x=o.utils={generateGuidString:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(f){var k=16*Math.random()|0;return("x"==f?k:3&k|8).toString(16)})},trim:function(f,k){return this.rtrim(this.ltrim(f,k),k)},replaceAll:function(f,k,w){return f.replace(new RegExp(k,"g"),w)},ltrim:function(f,k){return k===d&&(k="s"),f.replace(new RegExp("^["+k+"]+"),"")},rtrim:function(f,k){return k===d&&(k="s"),f.replace(new RegExp("["+k+"]+$"),"")},stringFormat:function(f,k){var w=Array.isArray(k);return f.replace(s,function(g,M){return k[w?parseInt(M):M]})},escapeHtml:function(f){return a("<div>").text(f).html()},isSpecialKey:function _(){if(l.navigator.userAgent.toLowerCase().indexOf("firefox")>-1){var k=Object.keys(A),w=k.length;return function(g){for(var M=0;M<w;M++)if(A[k[M]]==g)return!0}}return function(g){return!1}}(),tryParseInt:function(f){return/^(\-|\+)?([0-9]+)$/.test(f)?Number(f):NaN},tryParseFloat:function(f){return/^(\-|\+)?([0-9]+(\.[0-9]+)?)$/.test(f)?Number(f):NaN},parseToLocalDate:function(f){return f instanceof Date?f:(/Z|[\+\-]\d\d:?\d\d/i.test(f)||(f+="Z"),new Date(f))},adjustTimezone:function(f){return new Date(Date.UTC(f.getFullYear(),f.getMonth(),f.getDate(),f.getHours(),f.getMinutes(),f.getSeconds(),f.getMilliseconds()))},unadjustTimezone:function(f){return new Date(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate(),f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds())},areEqual:function(f,k){if(f instanceof Date&&k instanceof Date){if(f.getTime()!==k.getTime())return!1}else if(f!==k)return!1;return!0},reportSourcesAreEqual:function(f,k){if(f&&k&&f.report===k.report){var w="";f.parameters&&(w=JSON.stringify(f.parameters));var g="";return k.parameters&&(g=JSON.stringify(k.parameters)),w===g}return!1},areEqualArrays:function(f,k){if(null===f)return null===k;if(null===k||f.length!==k.length)return!1;for(var w=f.length-1;w>=0;w--)if(!x.areEqual(f[w],k[w]))return!1;return!0},isSvgSupported:function(){var k=/Version\/(\d+.\d+.\d+) Safari/.exec(navigator.userAgent);return!(k&&k.length>1)||parseFloat(k[1])>=6},isInternalServerError:function(f){return!!f&&"internalservererror"===x.replaceAll(f," ","").toLowerCase()},isInvalidClientException:function(f){return x.isExceptionOfType(f,"Telerik.Reporting.Services.Engine.InvalidClientException")},isExceptionOfType:function(f,k){if(!f||!f.responseText)return!1;var w=x.parseJSON(f.responseText);return!(!w||!w.exceptionType)&&w.exceptionType===k},parseJSON:function(f){try{return JSON.parse(f,function(k,w){if(k&&w){var g=k.charAt(0);g===g.toUpperCase()&&(this[g.toLowerCase()+k.slice(1)]=w)}return w})}catch{return null}},extend:function(){var k,w,g,M,p=0,E=arguments.length;for(M=E>1&&arguments[p++]||{};p<E;p++)if(null!=(g=arguments[p]))for(w in g)M!==(k=g[w])&&k!==d&&(M[w]=k);return M},each:function(f,k){var w,g=0;if(x.isArray(f))for(w=f.length;g<w&&!1!==k.call(f[g],g,f[g]);g++);else for(g in f)if(!1===k.call(f[g],g,f[g]))break;return f},selector:function(){return u.querySelectorAll(arguments[0])},isArray:function(f){return!!Array.isArray(f)||"number"==typeof(!!f&&"length"in f&&f.length)},loadScriptWithCallback:function(f,k,w){var g=u.createElement("script");g.src=f,g.onload=function(){k(w)},g.onerror=function(){x.logError(new Error("Failed to load script "+f))},u.head.appendChild(g)},loadScript:function(f){return x.$ajax({dataType:"script",cache:!0,url:f})},filterUniqueLastOccurance:function(f){return f.filter(function k(w,g,M){return M.lastIndexOf(w)===g})},logError:function(f){var k=l.console;k&&k.error&&k.error(f)},findElement:function(f){f.constructor!=Array&&(f=[f]);for(var k=a(f[0]),w=1;w<f.length;w++)k=k.find(f[w]);return k},toRgbColor:function(f){if(f&&f.length<6){var k=1,w=f.split("");for("#"!==w[0]&&(k=0);k<w.length;k++)w[k]=w[k]+w[k];f=w.join("")}var g=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(f);return g?parseInt(g[1],16)+", "+parseInt(g[2],16)+", "+parseInt(g[3],16):null},isRgbColor:function(f){return!!f&&f.indexOf(",")>-1},getColorAlphaValue:function(f){if("transparent"===f.toLowerCase())return 0;if(!this.isRgbColor(f))return 1;-1!==f.indexOf("#")&&(f=this.toRgbColor(f));var k=f.split(",").map(function(g){return g.trim()});return 4===k.length?parseFloat((parseFloat(k[3].replace(/[()]/g,""))/255).toFixed(2)):1},$ajax:function(f){return new Promise(function(k,w){a.ajax(f).done(function(g){return k(g)}).fail(function(g,M,p){w(function C(f,k,w){return{xhr:f,status:k,error:w}}(g,M,p))})})},rectangle:function R(f,k,w,g){return{left:f,top:k,width:w,height:g,right:function(){return f+w},bottom:function(){return k+g},union:function(M){var p=Math.min(f,M.left),E=Math.min(k,M.top);return R(p,E,Math.max(this.right(),M.right())-p,Math.max(this.bottom(),M.bottom())-E)}}}};o.domUtils=function(){function f(k){return parseInt(k,10)||0}return{getMargins:function(k){var w=a(k);return{left:f(w.css("marginLeft")),right:f(w.css("marginRight")),top:f(w.css("marginTop")),bottom:f(w.css("marginBottom"))}},getPadding:function(k){var w=a(k);return{left:f(w.css("paddingLeft")),right:f(w.css("paddingRight")),top:f(w.css("paddingTop")),bottom:f(w.css("paddingBottom"))}},getBorderWidth:function(k){var w=a(k);return{left:f(w.css("borderLeftWidth")),right:f(w.css("borderRightWidth")),top:f(w.css("borderTopWidth")),bottom:f(w.css("borderBottomWidth"))}},scale:function(k,w,g,M,p){M=M||0,p=p||0;var E=x.stringFormat("scale({0}, {1})",[w=w||1,g=g||1]),b=x.stringFormat("{0} {1}",[M,p]);a(k).css("transform",E).css("-moz-transform",E).css("-ms-transform",E).css("-webkit-transform",E).css("-o-transform",E).css("-moz-transform-origin",b).css("-webkit-transform-origin",b).css("-o-transform-origin",b).css("-ms-transform-origin",b).css("transform-origin",b)}}}()}(n,window.jQuery,window,document),function(o,a,l,u,d){"use strict";function s(){this.fixSplitter=function(R){}}function A(){s.call(this),this.fixSplitter=function(R,x){R.wrapper.find(".k-splitbar").children().each(function(){var k=a(this);k.hasClass("k-icon")||(k.addClass("k-icon"),k.hasClass("k-resize-handle")||(k.addClass("k-i-arrow-60-"+function _(R){switch(R){case"TOP":return"up";case"BOTTOM":return"down";case"LEFT":return"left";default:return"right"}}(x)),k.find("span.k-icon").hide()))})}}s.prototype.constructor=s,(A.prototype=Object.create(s.prototype)).constructor=A,o.createKendoWidgetFixer=function C(){o.kendoUtils=l.kendo.version>="2023.1.314"?new A:new s}}(n,window.jQuery,window,document),function(o){"use strict";o.sr=o.utils.extend({controllerNotInitialized:"Controller is not initialized.",noReportInstance:"No report instance.",missingTemplate:"!obsolete resource!",noReport:"No report.",noReportDocument:"No report document.",missingOrInvalidParameter:"There are missing or invalid parameter values. Please input valid data for the following parameters:\n",invalidParameter:"Please input a valid value.",invalidDateTimeValue:"Please input a valid date.",parameterIsEmpty:"Parameter value cannot be empty.",cannotValidateType:"Cannot validate parameter of type {type}.",loadingFormats:"Loading...",loadingReport:"Loading report...",preparingDownload:"Preparing document to download. Please wait...",preparingPrint:"Preparing document to print. Please wait...",errorLoadingTemplates:"Error loading the report viewer's templates. (trvTemplateUrl = '{0}').",errorServiceUrl:"Cannot access the Reporting REST service. (serviceUrl = '{0}'). Make sure the service address is correct and enable CORS if needed. (https://enable-cors.org)",errorServiceVersion:"The version of the Report Viewer '{1}' does not match the version of the Reporting REST Service '{0}'. Please make sure both are running same version.",loadingReportPagesInProgress:"{0} pages loaded so far...",loadedReportPagesComplete:"Done. Total {0} pages loaded.",noPageToDisplay:"No page to display.",errorDeletingReportInstance:"Error deleting report instance: '{0}'.",errorRegisteringViewer:"Error registering the viewer with the service.",noServiceClient:"No serviceClient has been specified for this controller.",errorRegisteringClientInstance:"Error registering client instance.",errorCreatingReportInstance:"Error creating report instance (Report = '{0}').",errorCreatingReportDocument:"Error creating report document (Report = '{0}'; Format = '{1}').",unableToGetReportParameters:"Unable to get report parameters.",errorObtainingAuthenticationToken:"Error obtaining authentication token.",clientExpired:"Click 'Refresh' to restore client session.",promisesChainStopError:"Error shown. Throwing promises chain stop error.",renderingCanceled:"Report processing was canceled.",tryReportPreview:"The report may now be previewed.",parameterEditorSelectNone:"clear selection",parameterEditorSelectAll:"select all",parametersAreaPreviewButton:"Preview",menuNavigateBackwardText:"Navigate Backward",menuNavigateBackwardTitle:"Navigate Backward",menuNavigateForwardText:"Navigate Forward",menuNavigateForwardTitle:"Navigate Forward",menuStopRenderingText:"Stop Rendering",menuStopRenderingTitle:"Stop Rendering",menuRefreshText:"Refresh",menuRefreshTitle:"Refresh",menuFirstPageText:"First Page",menuFirstPageTitle:"First Page",menuLastPageText:"Last Page",menuLastPageTitle:"Last Page",menuPreviousPageTitle:"Previous Page",menuNextPageTitle:"Next Page",menuPageNumberTitle:"Page Number Selector",menuDocumentMapTitle:"Toggle Document Map",menuParametersAreaTitle:"Toggle Parameters Area",menuZoomInTitle:"Zoom In",menuZoomOutTitle:"Zoom Out",menuPageStateTitle:"Toggle FullPage/PageWidth",menuPrintText:"Print...",menuContinuousScrollText:"Toggle Continuous Scrolling",menuSendMailText:"Send an email",menuPrintTitle:"Print",menuContinuousScrollTitle:"Toggle Continuous Scrolling",menuSendMailTitle:"Send an email",menuExportText:"Export",menuExportTitle:"Export",menuPrintPreviewText:"Toggle Print Preview",menuPrintPreviewTitle:"Toggle Print Preview",menuSearchText:"Search",menuSearchTitle:"Toggle Search",menuSideMenuTitle:"Toggle Side Menu",sendEmailFromLabel:"From:",sendEmailToLabel:"To:",sendEmailCCLabel:"CC:",sendEmailSubjectLabel:"Subject:",sendEmailFormatLabel:"Format:",sendEmailSendLabel:"Send",sendEmailCancelLabel:"Cancel",ariaLabelPageNumberSelector:"Page number selector. Showing page {0} of {1}.",ariaLabelPageNumberEditor:"Page number editor",ariaLabelExpandable:"Expandable",ariaLabelSelected:"Selected",ariaLabelParameter:"parameter",ariaLabelErrorMessage:"Error message",ariaLabelParameterInfo:"Contains {0} options",ariaLabelMultiSelect:"Multiselect",ariaLabelMultiValue:"Multivalue",ariaLabelSingleValue:"Single value",ariaLabelParameterDateTime:"DateTime",ariaLabelParameterString:"String",ariaLabelParameterNumerical:"Numerical",ariaLabelParameterBoolean:"Boolean",ariaLabelParametersAreaPreviewButton:"Preview the report",ariaLabelMainMenu:"Main menu",ariaLabelCompactMenu:"Compact menu",ariaLabelSideMenu:"Side menu",ariaLabelDocumentMap:"Document map area",ariaLabelDocumentMapSplitter:"Document map area splitbar.",ariaLabelParametersAreaSplitter:"Parameters area splitbar.",ariaLabelPagesArea:"Report contents area",ariaLabelSearchDialogArea:"Search area",ariaLabelSendEmailDialogArea:"Send email area",ariaLabelSearchDialogStop:"Stop search",ariaLabelSearchDialogOptions:"Search options",ariaLabelSearchDialogNavigateUp:"Navigate up",ariaLabelSearchDialogNavigateDown:"Navigate down",ariaLabelSearchDialogMatchCase:"Match case",ariaLabelSearchDialogMatchWholeWord:"Match whole word",ariaLabelSearchDialogUseRegex:"Use regex",ariaLabelMenuNavigateBackward:"Navigate backward",ariaLabelMenuNavigateForward:"Navigate forward",ariaLabelMenuStopRendering:"Stop rendering",ariaLabelMenuRefresh:"Refresh",ariaLabelMenuFirstPage:"First page",ariaLabelMenuLastPage:"Last page",ariaLabelMenuPreviousPage:"Previous page",ariaLabelMenuNextPage:"Next page",ariaLabelMenuPageNumber:"Page number selector",ariaLabelMenuDocumentMap:"Toggle document map",ariaLabelMenuParametersArea:"Toggle parameters area",ariaLabelMenuZoomIn:"Zoom in",ariaLabelMenuZoomOut:"Zoom out",ariaLabelMenuPageState:"Toggle FullPage/PageWidth",ariaLabelMenuPrint:"Print",ariaLabelMenuContinuousScroll:"Continuous scrolling",ariaLabelMenuSendMail:"Send an email",ariaLabelMenuExport:"Export",ariaLabelMenuPrintPreview:"Toggle print preview",ariaLabelMenuSearch:"Search in report contents",ariaLabelMenuSideMenu:"Toggle side menu",ariaLabelSendEmailFrom:"From email address",ariaLabelSendEmailTo:"Recipient email address",ariaLabelSendEmailCC:"Carbon Copy email address",ariaLabelSendEmailSubject:"Email subject:",ariaLabelSendEmailFormat:"Report format:",ariaLabelSendEmailSend:"Send email",ariaLabelSendEmailCancel:"Cancel sending email",searchDialogTitle:"Search in report contents",searchDialogSearchInProgress:"searching...",searchDialogNoResultsLabel:"No results",searchDialogResultsFormatLabel:"Result {0} of {1}",searchDialogStopTitle:"Stop Search",searchDialogNavigateUpTitle:"Navigate Up",searchDialogNavigateDownTitle:"Navigate Down",searchDialogMatchCaseTitle:"Match Case",searchDialogMatchWholeWordTitle:"Match Whole Word",searchDialogUseRegexTitle:"Use Regex",searchDialogCaptionText:"Find",searchDialogPageText:"page",sendEmailDialogTitle:"Send Email",sendEmailValidationEmailRequired:"Email field is required",sendEmailValidationEmailFormat:"Email format is not valid",sendEmailValidationSingleEmail:"The field accepts a single email address only",sendEmailValidationFormatRequired:"Format field is required",errorSendingDocument:"Error sending report document (Report = '{0}')."},o.sr)}(n),function(o,a,l,u,d){"use strict";var s=o.utils;if(!s)throw"Missing telerikReportViewer.utils";var A=s.rectangle;o.uiFreezeCoordinator={$placeholder:null,$scrollableContainer:null,itemsInitialState:{},xFrozenAreasBounds:{},yFrozenAreasBounds:{},freezeMaxZIndex:{},zIndex:1,freezeBGColor:{},currentlyfreezedContainer:{vertical:{},horizontal:{}},isInitialize:!1,scaleFactor:null,init:function(C){this.$placeholder=C,this.$scrollableContainer=C.find(".trv-page-container"),this.isInitialize&&this.reset(C),this._attachToScrollEvent(),this.isInitialize=!0},reset:function(C){this.$placeholder=C,this.$scrollableContainer=C.find(".trv-page-container"),this.itemsInitialState={},this.xFrozenAreasBounds={},this.yFrozenAreasBounds={},this.currentlyfreezedContainer={vertical:{},horizontal:{}}},setScaleFactor:function(C){this.scaleFactor=C},_attachToScrollEvent:function(){var C=this;this.$scrollableContainer.scroll(function(){var x=C.$scrollableContainer.find("div[data-sticky-id]");if(x.length)for(var f=x.map(function(E,b){return a(b).attr("data-sticky-id")}).get(),k=f.filter(function(E,b){return b===f.indexOf(E)}),w=C.$scrollableContainer.scrollTop(),g=C.$scrollableContainer.scrollLeft(),M=0;M<k.length;M++){var p=k[M];C.itemsInitialState[p]||C._saveFreezeItemsInitialState(p),C._updateFreezeItemsOnScroll(p,w,g)}})},_saveFreezeItemsInitialState:function(C){var f,k,R=a("[data-sticky-direction][data-sticky-id='"+C+"']"),x=a("[data-reporting-action][data-sticky-id='"+C+"']");this.itemsInitialState[C]={},this.freezeBGColor[C]=a("[data-id='"+C+"']").attr("data-sticky-bg-color");for(var w=0;w<R.length;w++){var g=a(R[w]),M=g.attr("data-sticky-direction"),p=g.attr("data-id"),E=g.position(),b={top:E.top/this.scaleFactor,left:E.left/this.scaleFactor},I=A(b.left,b.top,g.outerWidth(!0)*this.scaleFactor,g.outerHeight(!0)*this.scaleFactor);switch(M){case"Vertical":f=f?f.union(I):I;break;case"Horizontal":k=k?k.union(I):I}this._saveFreezeItemInitialState(C,g,p,b)}this.freezeMaxZIndex[C]=x.length?x.css("zIndex"):this.zIndex,this.yFrozenAreasBounds[C]=f,this.xFrozenAreasBounds[C]=k},_saveFreezeItemInitialState:function(C,R,x,f){var k=R.css("background-color"),w=this._hasSetBgColor(k),g={top:f.top,left:f.left,zIndex:R.css("zIndex"),hasBgColor:w};this.itemsInitialState[C][x]=g},_updateFreezeItemsOnScroll:function(C,R,x){var f=a("div[data-id='"+C+"']");if(this._isInScrollVisibleArea(f)){var k=f.closest(".trv-report-page"),w=k.position(),g=parseFloat(k.css("margin-top")),M=parseFloat(k.css("padding-top")),p=parseFloat(k.css("padding-left")),E=parseFloat(k.css("border-top-width")),b=parseFloat(k.css("border-left-width")),I=a("[data-sticky-direction*='Horizontal'][data-sticky-id='"+C+"']"),L=a("[data-sticky-direction*='Vertical'][data-sticky-id='"+C+"']"),D=I.length>0,F=L.length>0,P=f.position(),O=P.top+w.top+g+M+E,U=P.left+p+b,V=R-O,K=x-U;F&&V>0?R<=f.outerHeight()*this.scaleFactor+O-this.yFrozenAreasBounds[C].height&&(this.currentlyfreezedContainer.vertical[C]=!0,this._updateUIElementsPosition(L,"top",V/this.scaleFactor,C)):this.currentlyfreezedContainer.vertical[C]&&(delete this.currentlyfreezedContainer.vertical[C],this._updateUIElementsPosition(L,"top",-1,C)),D&&K>0?x<=f.outerWidth()*this.scaleFactor+U-this.xFrozenAreasBounds[C].width&&(this.currentlyfreezedContainer.horizontal[C]=!0,this._updateUIElementsPosition(I,"left",K/this.scaleFactor,C)):this.currentlyfreezedContainer.horizontal[C]&&(delete this.currentlyfreezedContainer.horizontal[C],this._updateUIElementsPosition(I,"left",-1,C))}else(this.currentlyfreezedContainer.horizontal[C]||this.currentlyfreezedContainer.vertical[C])&&this._resetToDefaultPosition(C)},_resetToDefaultPosition:function(C){var R=a("[data-sticky-direction*='Horizontal'][data-sticky-id='"+C+"']"),x=a("[data-sticky-direction*='Vertical'][data-sticky-id='"+C+"']");this._updateUIElementsPosition(x,"top",-1,C),this._updateUIElementsPosition(R,"left",-1,C),delete this.currentlyfreezedContainer.horizontal[C],delete this.currentlyfreezedContainer.vertical[C]},_updateUIElementsPosition:function(C,R,x,f){for(var k=0;k<C.length;k++){var w=a(C[k]),M=w.attr("data-sticky-direction").indexOf(",")>0,p=w.attr("data-id"),E=this.itemsInitialState[f][p],b=E[R],I=E.zIndex,L=E.hasBgColor,D=1,F=this.freezeMaxZIndex[f]?this.freezeMaxZIndex[f]:D,P={"z-index":D=M?"auto"!==I?I:F+2:"auto"!==I?I+1:F};x>=0?b+=x:P["z-index"]=I,L||this._applyBgColorOnScroll(w,M,L,x>=0,f),P[R]=b+"px",w.css(P)}},_applyBgColorOnScroll:function(C,R,x,f,k){return!!C.is("img")||(R&&this._isFrozen(k)&&!x?(C.css("background-color",this.freezeBGColor[k]),!0):void C.css("background-color",f?this.freezeBGColor[k]:"initial"))},_hasSetBgColor:function(C){return s.getColorAlphaValue(C)>0},_isFrozen:function(C){return this.currentlyfreezedContainer.horizontal[C]||this.currentlyfreezedContainer.vertical[C]},_isInScrollVisibleArea:function(C){var R=C.closest(".trv-report-page"),x=C.position();return this._isVisibleVertically(C,R,x)&&this._isVisibleHorizontally(C,R,x)},_isVisibleHorizontally:function(C,R,x){var f=parseFloat(R.css("padding-left")),k=this.$scrollableContainer.scrollLeft(),w=this.$scrollableContainer.width(),g=C.outerWidth(!0)*this.scaleFactor,M=x.left+f;return M>k-g&&M<k+g+w},_isVisibleVertically:function(C,R,x){var f=parseFloat(R.css("padding-top")),k=R.position(),w=this.$scrollableContainer.scrollTop(),g=this.$scrollableContainer.height(),M=C.outerHeight(!0)*this.scaleFactor,p=x.top+f+k.top;return p>w-M&&p<w+M+g}}}(n,e,window,document),function(o,a,l,u,d){"use strict";var s=o.utils;if(!s)throw"Missing telerikReportViewer.utils";o.scroll={controller:{},$placeholder:null,$pageContainer:null,pageContainer:null,$pageWrapper:null,pageWrapper:null,viewMode:null,loadedPage:{},scrollInProgress:!1,enabled:!1,pageCount:0,additionalTopOffset:130,pageDistance:20,oldScrollTopPosition:0,skeletonTemplate:'<div class="trv-report-page trv-skeleton-page trv-skeleton-{0}" style="{1}" data-page="{0}"><div class="trv-skeleton-wrapper" style="{2}"></div></div>',init:function(C,R){var x=this;x.$placeholder=a("[data-selector='"+R.viewerSelector+"']").find(C),x.$pageContainer=this.$placeholder.find(".trv-page-container"),x.pageContainer=this.$pageContainer[0],x.$pageWrapper=this.$placeholder.find(".trv-page-wrapper"),x.pageWrapper=this.$pageWrapper[0],x.controller=R.controller,x.viewMode=null,x.loadedPage={},x.scrollInProgress=!1,x.enabled=!1,x.pageCount=0,x.controller.scale(function(f,k){x.enabled&&setTimeout(function(){x._loadMorePages(),x._keepCurrentPageInToView()},100)}).onLoadedReportChange(function(f){x.enabled&&(x.disable(),"trv.ON_LOADED_REPORT_CHANGE"!==f&&setTimeout(function(){x.controller.getPageData(1).then(function(k){x.renderPage(k)})}))}).viewModeChanged(function(f){x.enabled&&x.disable()}).interactiveActionExecuting(function(f,k){var w=k.action.Type;x.enabled&&("sorting"===w||"toggleVisibility"===w)&&x.disable()}).updatePageDimensionsReady(function(f,k){x.enabled&&x._currentPageNumber()>0&&x._keepCurrentPageInToView()}).pageCountChange(function(f,k){x.enabled&&x.pageCount!==k&&(x._currentPageNumber()>0&&!x.scrollInProgress&&x._loadMorePages(),k>1&&x._initEvents(),x.pageCount=k)})},isEnabled:function(){return this.enabled},disable:function(){this.$pageWrapper.empty(),this.enabled=!1,this.loadedPage={},this.pageCount=0,this.$placeholder.removeClass("scrollable"),this._unbind()},enable:function(){this.enabled=!0,this.$placeholder.addClass("scrollable"),this._initEvents()},renderPage:function(C){var R=this,x=R.controller.viewMode(),f=R.$placeholder.find('[data-page="'+C.pageNumber+'"]');R.enabled?(x===R.viewMode&&f.length?R._navigateToPage(C,f):R._updatePageArea(C),R.viewMode=R.controller.viewMode()):(R.enabled=!0,R.$placeholder.addClass("scrollable"),x===R.viewMode&&f.length?(R._render(C,!0),this.$pageContainer.scrollTop(3),R._setCurrentPage(C.pageNumber)):R._updatePageArea(C),R.viewMode=R.controller.viewMode(),R._loadMorePages())},navigateToElement:function(C,R){var x=this;x.scrollInProgress=!0,x._isSkeletonScreen(null,R)?x.controller.getPageData(R).then(function(f){x._render(f,!1),x.$pageContainer.animate({scrollTop:C},500,function(){x._setCurrentPage(R),setTimeout(function(){x.scrollInProgress=!1},100)})}):x.$pageContainer.animate({scrollTop:C},500,function(){x._setCurrentPage(R),setTimeout(function(){x.scrollInProgress=!1},100)})},_setCurrentPage:function(C){var R=this;C!==R._currentPageNumber()&&R.controller.currentPageNumber(C),R.controller.pageCount()>1&&(R.$placeholder.find(".k-state-default").removeClass("k-state-default"),R.$placeholder.find('[data-page="'+C+'"]').addClass("k-state-default")),R._loadNextPreviousPage(C)},_updatePageArea:function(C){var R=this,x=0,f=C.pageNumber;R.scrollInProgress=!0,f>1&&R._generateSkeletonScreens(f),R._render(C,!1),R._setCurrentPage(C.pageNumber),setTimeout(function(){x=f>1?R.$placeholder.find('[data-page="'+f+'"]').position().top:0,R.$pageContainer.animate({scrollTop:x},0,function(){R.scrollInProgress=!1})},100)},_navigateToPage:function(C,R){var x=this;x.scrollInProgress=!0;var f=R.position().top,k=x.$placeholder.find(".trv-report-page"),w=C.pageNumber;a(k[0]).height(),x._isSkeletonScreen(R,w)?x.controller.getPageData(w).then(function(M){x._render(M,!1),x.$pageContainer.animate({scrollTop:f},500,function(){setTimeout(function(){x._setCurrentPage(M.pageNumber),x.scrollInProgress=!1})})}):(x._updatePageContent(C,R),x.$pageContainer.animate({scrollTop:f},500,function(){setTimeout(function(){x._setCurrentPage(C.pageNumber),x.scrollInProgress=!1})}))},_updatePageContent:function(C,R){this._updatePageStyle(C);var x=C.pageNumber,k=a(a.parseHTML(C.pageContent)).find("div.sheet"),w=this.$placeholder.find('[data-page="'+x+'"]');k.css("margin",0),w.append(k).append(a('<div class="trv-page-overlay"></div>')),R.replaceWith(w),this.controller.scrollPageReady({page:C,target:w})},_currentPageNumber:function(){return this.controller.currentPageNumber()},_isSkeletonScreen:function(C,R){return C||(C=this.$placeholder.find('[data-page="'+R+'"]')),C.hasClass("trv-skeleton-"+R)},_addSkeletonScreen:function(C,R){var x=this,f=parseInt(R?C+1:C-1),k=x.$placeholder.find('[data-page="'+f+'"]'),w=k.attr("style"),g=k.find("sheet").attr("style"),M=s.stringFormat(x.skeletonTemplate,[C,w,g]);R?x.$pageWrapper.prepend(M):x.$pageWrapper.append(M)},_generateSkeletonScreens:function(C){for(var R=this,x="",f=this.$placeholder.find('[data-page="1"]'),k=f.attr("style"),w=f.find("sheet").attr("style"),g=R.$placeholder.find(".trv-report-page").last().attr("data-page"),M=g?parseInt(g)+1:1;M<C;M++)x+=s.stringFormat(R.skeletonTemplate,[M,k,w]);R.$pageWrapper.append(a(x))},_loadMorePages:function(){var C=this,R=C.controller.pageCount(),x=C.$pageContainer.innerHeight()>C.$pageWrapper.innerHeight();if(R>1)if(x){C.scrollInProgress=!0;var k=parseInt(C.$placeholder.find(".trv-report-page").last().attr("data-page"))+1;k<=R&&C.controller.getPageData(k).then(function(w){C._render(w,!1),C._loadMorePages(),C.scrollInProgress=!1})}else C._loadVisiblePages(),C.scrollInProgress=!1},_loadVisiblePages:function(){var C=this,R=C.$placeholder.find(".trv-report-page");a.each(R,function(x,f){var k=a(f),w=parseInt(k.attr("data-page"));C._scrolledInToView(k)&&C._isSkeletonScreen(k,w)&&C.controller.getPageData(w).then(function(g){C._render(g,!1)})})},_scrolledInToView:function(C){var R=C[0].getBoundingClientRect(),x=C.closest(".trv-pages-area")[0].getBoundingClientRect(),f=x.top,k=x.top+x.height,w=R.top,g=w+C.outerHeight(!0);return w>0&&w<k||g<k&&g>this.additionalTopOffset+f},_render:function(C,R){var x=this,f=C.pageNumber,k=x.$placeholder.find('[data-page="'+f+'"]');if(R||!k||!k.length||x._isSkeletonScreen(k,f)){x.loadedPage[f]=C,x._updatePageStyle(C);var g=a(a.parseHTML(C.pageContent)).find("div.sheet"),M=a('<div class="trv-report-page" data-page="'+f+'"></div>');g.css("margin",0),M.append(g).append(a('<div class="trv-page-overlay"></div>')),R&&x.$pageWrapper.empty(),x.$pageWrapper.removeData().data("pageNumber",f);var p=x.$placeholder.find(".trv-skeleton-"+f);p.length?p.replaceWith(M):x.$pageWrapper.append(M),x.controller.scrollPageReady({page:C,target:M})}},_updatePageStyle:function(C){var k,R=this,x=R.loadedPage[R._lastLoadedPage()]||C,f="trv-"+R.controller.clientId()+"-styles";a("#"+f).remove(),(k=a("<style id="+f+"></style>")).append(x.pageStyles),k.appendTo("head")},_lastLoadedPage:function(){var R;for(var x in this.loadedPage)this.loadedPage.hasOwnProperty(x)&&(R=x);return R},_loadNextPreviousPage:function(C){var x,f,k,w,R=this;C<R.controller.pageCount()&&(k=R.$placeholder.find('[data-page="'+(x=C+1)+'"]')),C>1&&(w=R.$placeholder.find('[data-page="'+(f=C-1)+'"]')),w&&w.length&&R._isSkeletonScreen(w,f)&&R.controller.getPageData(f).then(function(g){R._render(g,!1)}),k&&k.length&&R._isSkeletonScreen(k,x)&&R.controller.getPageData(x).then(function(g){R._render(g,!1)})},_clickPage:function(C){var R=this,x=R._currentPageNumber(),f=parseInt(C.attr("data-page"));x!==f&&(R._isSkeletonScreen(C,f)?R.controller.getPageData(f).then(function(k){R._render(k,!1,!0),R._setCurrentPage(k.pageNumber)}):R._setCurrentPage(f))},_initEvents:function(){var C=this;C.$pageContainer.off("click",".trv-report-page").on("click",".trv-report-page",function(R){C._clickPage(a(R.currentTarget))}),C.$pageContainer.scroll(Cowboy.throttle(250,function(){var R=C.$placeholder.find(".trv-report-page"),x=parseInt((C.$pageContainer.scrollTop()+C.$pageContainer.innerHeight()).toFixed(0));!C.scrollInProgress&&C.oldScrollTopPosition!==x&&(C.oldScrollTopPosition>x?C._scrollUp(R):C._scrollDown(R,x)),C.oldScrollTopPosition=x})),C.$pageContainer.scroll(Cowboy.debounce(250,function(){var R=C.$placeholder.find(".trv-report-page"),x=parseInt((C.$pageContainer.scrollTop()+C.$pageContainer.innerHeight()).toFixed(0));!C.scrollInProgress&&R.length&&C.oldScrollTopPosition!==x&&C._advanceCurrentPage(R)}))},_unbind:function(){this.$pageContainer.off("click",".trv-report-page"),this.$pageContainer.off("scroll")},_advanceCurrentPage:function(C){var f,R=this,x=R._findNewCurrentPage(C),k=R._currentPageNumber(),w=R._scrolledInToView(R.$placeholder.find('[data-page="'+k+'"]'));-1!==x?(x=a(x),k!==(f=parseInt(x.attr("data-page")))&&!w&&(R._isSkeletonScreen(x,f)?R.controller.getPageData(f).then(function(g){R._render(g,!1,!0),R._setCurrentPage(g.pageNumber)}):R._setCurrentPage(f))):console.log("Page not found - ",x)},_findNewCurrentPage:function(C){var R=this,x=Math.floor(C.length/2),f=R._findPageInViewPort(x,C);return 1===C.length?C[0]:0===f?C[x]:f<0&&C.length>1?R._findNewCurrentPage(C.splice(x,Number.MAX_VALUE)):f>0&&C.length>1?R._findNewCurrentPage(C.splice(0,x)):-1},_findPageInViewPort:function(C,R){var x=this.$placeholder.find(R[C]),f=x[0].getBoundingClientRect(),w=x.closest(".trv-pages-area")[0].getBoundingClientRect().top,M=f.top,p=M+x.outerHeight(!0),E=this.additionalTopOffset+w;return M<=E&&E<p?0:p<E?-1:1},_scrollDown:function(C,R){var x=this;if(R>=x.pageContainer.scrollHeight-5){var k=parseInt(a(C[C.length-1]).attr("data-page"))+1;x._currentPageNumber()<k&&k<=x.controller.pageCount()&&(x._addSkeletonScreen(k,!1),x.controller.getPageData(k).then(function(w){x._render(w,!1)}))}else x._advanceCurrentPage(C),x._loadVisiblePages()},_scrollUp:function(C){var R=this;if(0===R.$pageContainer.scrollTop()){var x=a(C[0]),k=parseInt(x.attr("data-page"))-1;R._currentPageNumber()>k&&k>=1&&(R._addSkeletonScreen(k,!0),R.controller.getPageData(k).then(function(w){R._render(w,!1),R.$pageContainer.scrollTop(3)}))}else R._advanceCurrentPage(C),R._loadVisiblePages()},_keepCurrentPageInToView:function(){var C=this,R=C.$placeholder.find('[data-page="'+C._currentPageNumber()+'"]'),x=R.position().top,f=R.innerHeight(),k=C.$pageContainer.innerHeight();C.scrollInProgress=!0,f<k&&(x=parseInt(x-(k-f)/2)),C.$pageContainer.animate({scrollTop:x},0,function(){setTimeout(function(){C.scrollInProgress=!1},100)})}}}(n,e,window,document),function(o,a,l,u){"use strict";var d=o.utils;if(!d)throw"Missing telerikReportViewer.utils";function _(k){return{hasPdfPlugin:function(){return function w(){var g=navigator.plugins,M=!1;return d.each(g,function(p,E){if(g[p].name===k||"Adobe Acrobat"===g[p].name)return M=!0,!1}),M}()}}}var x=function R(){if(a.navigator){var k=a.navigator.userAgent.toLowerCase();return k.indexOf("msie")>-1||k.indexOf("mozilla")>-1&&k.indexOf("trident")>-1?function s(){return{hasPdfPlugin:function(){return null!==function k(){var g=null;return d.each(["AcroPDF.PDF.1","PDF.PdfCtrl.6","PDF.PdfCtrl.5"],function(M,p){try{if(g=new ActiveXObject(p))return!1}catch{}}),g}()}}}():k.indexOf("firefox")>-1?function A(){return{hasPdfPlugin:function(){return function k(){var w=/Firefox[\/\s](\d+\.\d+)/.exec(navigator.userAgent);if(null!==w&&w.length>1&&parseFloat(w[1])>=19)return!1;var M=navigator.mimeTypes["application/pdf"],p=null!==M?M.enabledPlugin:null;if(p){var E=p.description;return-1!==E.indexOf("Adobe")&&(-1===E.indexOf("Version")||parseFloat(E.split("Version")[1])>=6)}return!1}()}}}():k.indexOf("edg/")>-1?_("Microsoft Edge PDF Plugin"):k.indexOf("chrome")>-1?_("Chrome PDF Viewer"):k.indexOf("safari")>-1?_("WebKit built-in PDF"):{hasPdfPlugin:function(){return!1}}}return null}(),f=!!x&&x.hasPdfPlugin();o.printManager=function(){var k;function g(){return a.navigator&&a.navigator.msSaveOrOpenBlob}var b=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?function p(I){a.open(I,"_self")}:function w(I){var L=null;if(k||((k=l.createElement("iframe")).style.display="none",k.onload=function(){try{k.contentDocument.execCommand("print",!0,null)}catch(F){d.logError(F)}finally{L&&(a.URL||a.webkitURL).revokeObjectURL(L)}}),function M(I){var L=a.location,D=l.createElement("a");return D.setAttribute("href",I),""==D.host&&(D.href=D.href),L.hostname===D.hostname&&L.protocol===D.protocol&&L.port===D.port}(I)&&g())return k.src=I,void l.body.appendChild(k);var D=new XMLHttpRequest;D.open("GET",I,!0),D.responseType="arraybuffer",D.onload=function(F){if(200===this.status){var P=new Blob([this.response],{type:"application/pdf"});g()?a.navigator.msSaveOrOpenBlob(P):(L=(a.URL||a.webkitURL).createObjectURL(P),k.src=L,l.body.appendChild(k))}else console.log("Could not retrieve remote PDF document.")},D.send()};return{print:function(I){b(I)},getDirectPrintState:function(){return f}}}()}(n,window,document),function(o,a,l,u,d){"use strict";var s=o.sr;if(!s)throw"Missing telerikReportViewer.sr";var A=o.utils;if(!A)throw"Missing telerikReportViewer.utils";var _={};function C(x,f,k){var p,E,I,L,D,F,P,O,U,V,K,X,me,w=(f=a.extend({},_,f)).controller,g=!1,M=!1,b=k.viewerSelector,J=a("[data-selector='"+b+"']").find(".trv-report-viewer");if(!w)throw"No controller (telerikReporting.ReportViewerController) has been specified.";function re(){de(!1)}function de(Wt){M=Wt,Wt?(function j(){if(!g){p=a(x),I=p.find("[name='from']"),L=p.find("[name='to']"),D=p.find("[name='cc']"),F=p.find("[name='subject']"),O=p.find("[name='format']"),U=p.find("textarea"),function H(){p.find(".trv-send-email-field input").each(function(){var Wt=a(this),dn=Wt.attr("name");Wt.attr("id",b+"-"+dn)}),p.find(".trv-send-email-label label").each(function(){var Wt=a(this),dn=Wt.attr("for");Wt.attr("for",b+"-"+dn)})}(),function _e(){X={sendEmail_Cancel:new ut(function(){Ut()}),sendEmail_Send:new ut(function(dn){!function ge(Wt,dn){var sn={from:I.val(),to:L.val(),cc:D.val(),subject:F.val(),format:P.value(),body:V?V.value():bodyText.val(),deviceInfo:{}};(function Te(){var Wt=fe(I)||!Le(I,!1),dn=fe(L)||!Le(L,!0),sn=D.val().length&&!Le(D,!0),fn=P.value().length;return fn||xe(O,"data-required-msg"),!(Wt||dn||sn||!fn)})()&&(w.sendReport(sn),Ut())}()})},o.binder.bind(p.find(".trv-send-email-actions"),{controller:w,commands:X},k)}(),function $n(Wt){if(Wt){var dn=Wt.find(".trv-replace-string"),sn=Wt.find("[aria-label]"),fn=Wt.find("[title]");dn.length&&a.each(dn,function(yi,nn){!function xn(Wt){Wt&&Wt.text(s[Wt.text()])}(a(nn))}),sn.length&&a.each(sn,function(yi,nn){mt(a(nn),"aria-label")}),fn.length&&a.each(fn,function(yi,nn){mt(a(nn),"title")})}}(p);try{E=J.find(".trv-send-email-window").kendoWindow({title:s.sendEmailDialogTitle,minWidth:350,minHeight:350,maxHeight:900,modal:!0,close:function(){z(),function An(){a(".k-invalid-msg").removeClass("-visible")}()},open:function(){q(),se()},deactivate:function(){w.setSendEmailDialogVisible({visible:!1})},activate:function(){E.wrapper.find(".trv-send-email-fields input[type='email']:visible").first().focus(),setTimeout(function(){!function Ce(){I.off("blur").on("blur",function(Wt){fe(a(this))||Le(a(this),!1)}),L.off("blur").on("blur",function(Wt){fe(a(this))||Le(a(this),!0)}),D.off("blur").on("blur",function(Wt){a(this).val().length?Le(a(this),!0):Oe(a(this))})}()},250)}}).data("kendoWindow")}catch(Wt){throw console.error("Instantiation of Kendo Window for Send Email dialog threw an exception",Wt),Wt}E.wrapper.addClass("trv-send-email");try{P=O.kendoComboBox({dataTextField:"localizedName",dataValueField:"name",dataSource:K||[],filter:"startswith",dataBound:function(){this.select(0),this.trigger("change")}}).data("kendoComboBox")}catch(Wt){throw console.error("Instantiation of Kendo ComboBox as document format selector threw an exception",Wt),Wt}p.on("keydown",'[name="format_input"]',function(Wt){9===Wt.keyCode&&V&&setTimeout(function(){V.focus()})});try{V=U.kendoEditor({tools:["bold","italic","underline","strikethrough","justifyLeft","justifyCenter","justifyRight","justifyFull","insertUnorderedList","insertOrderedList","indent","outdent","createLink","unlink","cleanFormatting","formatting","fontName","fontSize","foreColor","backColor","subscript","superscript"]}).data("kendoEditor")}catch(Wt){throw console.error("Instantiation of Kendo Editor for Email body editor threw an exception",Wt),Wt}De(k.sendEmail),g=!0}}(),De(k.sendEmail),E.open()):E&&E.options.visible&&E.close()}function z(){var Wt=E.element.parent(".k-window");me=Wt.offset()}function q(){var Wt=E.element.parent(".k-window"),sn=350;a(l).width()>800&&(sn=720),Wt.css({width:sn}),E.refresh({width:sn})}function se(){if(me){var dn=a(l).innerWidth(),sn=a(l).innerHeight(),fn=E.wrapper,yi=fn.outerWidth(!0),nn=fn.outerHeight(!0),Mi=me.left,mi=me.top,Ko=mi+nn;Mi+yi>dn-10&&(Mi=Math.max(10,dn-yi-10),fn.css({left:Mi}),E.setOptions({position:{left:Mi}})),Ko>sn-10&&(mi=Math.max(10,sn-nn-10),fn.css({top:mi}),E.setOptions({position:{top:mi}}))}else E.center()}function De(Wt){I.val(Wt&&Wt.from||""),L.val(Wt&&Wt.to||""),D.val(Wt&&Wt.cc||""),F.val(Wt&&Wt.subject||""),Wt&&Wt.format?P.value(Wt.format):P.select(0),P.trigger("change"),V.value(Wt&&Wt.body||"")}function fe(Wt){return Wt.val().length?(Oe(Wt),!1):(xe(Wt,"data-required-msg"),!0)}function xe(Wt,dn){var sn=s[Wt.attr(dn)];a('[data-for="'+Wt.attr("name")+'"]').addClass("-visible").text(sn)}function Oe(Wt){a('[data-for="'+Wt.attr("name")+'"]').removeClass("-visible")}function Le(Wt,dn){var sn=Wt.val();if(dn){for(var fn=sn.split(/[\s,;]+/),yi=0;yi<fn.length;yi++)if(!Gt(fn[yi].trim(),Wt))return!1;return!0}return Gt(sn,Wt)}function Gt(Wt,dn){return Wt.indexOf(",")>-1||Wt.indexOf(";")>-1?(xe(dn,"data-single-email-msg"),!1):!!/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/.test(Wt)||(xe(dn,"data-email-msg"),!1)}function Ut(){E.close()}function mt(Wt,dn){Wt&&Wt.attr(dn,s[Wt.attr(dn)])}function ut(Wt){var dn=!0,sn=!1,fn={enabled:function(yi){return 0===arguments.length?dn:(dn=!!yi,a(this).trigger("enabledChanged"),fn)},checked:function(yi){return 0===arguments.length?sn:(sn=!!yi,a(this).trigger("checkedChanged"),fn)},exec:Wt};return fn}k.sendEmail&&k.sendEmail.enabled?(w.getSendEmailDialogState(function(Wt,dn){dn.visible=M}).setSendEmailDialogVisible(function(Wt,dn){de(dn.visible)}).setSearchDialogVisible(function(Wt,dn){dn.visible&&M&&de(!M)}).beginLoadReport(re).viewModeChanged(re),w.getDocumentFormats().then(function(Wt){K=Wt}),a(l).resize(function(){E&&E.options.visible&&(z(),q(),se())})):a("[data-selector='"+b+"']").find("a[data-command='telerik_ReportViewer_toggleSendEmailDialog']").closest(".k-item ").hide()}var R="telerik_ReportViewer_SendEmail";a.fn[R]=function(x,f){return A.each(this,function(){a.data(this,R)||a.data(this,R,new C(this,x,f))})}}(n,e,window,document),function(o,a,l){"use strict";var u=o.utils;if(!u)throw"Missing telerikReporting.utils";var s="application/json; charset=UTF-8",_="GET",C="POST",x="DELETE",f={};o.ServiceClient=function(k){k=u.extend({},f,k);var g,w=u.rtrim(k.serviceUrl||k.baseUrl,"\\/"),M=u.$ajax;function p(L){if(!L)throw"Invalid clientID"}function E(L,D){return D=u.extend({},{baseUrl:w},D),u.stringFormat(L,D)}function b(L){return L?{headers:{Authorization:"Bearer "+L}}:{}}function I(){if(!g){var L=k.loginInfo;g=L&&L.url&&(L.username||L.password)?M({url:L.url,type:C,data:{grant_type:"password",username:L.username,password:L.password},dataType:"json",contentType:"application/x-www-form-urlencoded; charset=UTF-8"}).then(function(D){return D.access_token}):Promise.resolve()}return g}return{_urlFromTemplate:E,registerClient:function(L){return I().then(function(D){var F=u.extend(b(D),L,{type:C,url:E("{baseUrl}/clients"),dataType:"json",data:JSON.stringify({timeStamp:Date.now()})});return M(F)}).then(function(D){if(D.Message)throw D.Message;return D.clientId})},unregisterClient:function(L,D){return p(L),I().then(function(F){var P=u.extend(b(F),D,{type:x,url:E("{baseUrl}/clients/{clientID}",{clientID:L})});return M(P)})},getParameters:function(L,D,F,P){return p(L),I().then(function(O){var U=u.extend(b(O),P,{type:C,url:E("{baseUrl}/clients/{clientID}/parameters",{clientID:L}),contentType:s,dataType:"json",data:JSON.stringify({report:D,parameterValues:F})});return M(U)})},createReportInstance:function(L,D,F,P){return p(L),I().then(function(O){var U=u.extend(b(O),P,{type:C,url:E("{baseUrl}/clients/{clientID}/instances",{clientID:L}),contentType:s,dataType:"json",data:JSON.stringify({report:D,parameterValues:F})});return M(U)}).then(function(O){return O.instanceId})},deleteReportInstance:function(L,D,F){return p(L),I().then(function(P){var O=u.extend(b(P),F,{type:x,url:E("{baseUrl}/clients/{clientID}/instances/{instanceID}",{clientID:L,instanceID:D})});return M(O)})},createReportDocument:function(L,D,F,P,O,U,V,K){return p(L),I().then(function(X){(P=P||{}).BasePath=w;var me=u.extend(b(X),K,{type:C,url:E("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents",{clientID:L,instanceID:D}),contentType:s,dataType:"json",data:JSON.stringify({format:F,deviceInfo:P,useCache:O,baseDocumentID:U,actionID:V})});return M(me)}).then(function(X){return X.documentId})},sendDocument:function(L,D,F,P,O){return p(L),I().then(function(U){var V=u.extend(b(U),O,{type:C,url:E("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents/{documentID}/send",{clientID:L,instanceID:D,documentID:F}),contentType:s,data:JSON.stringify({from:P.from,to:P.to,cc:P.cc,subject:P.subject,body:P.body})});return M(V)})},deleteReportDocument:function(L,D,F,P){return p(L),I().then(function(O){var U=u.extend(b(O),P,{type:x,url:E("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents/{documentID}",{clientID:L,instanceID:D,documentID:F})});return M(U)})},getDocumentInfo:function(L,D,F,P){return p(L),I().then(function(O){var U=u.extend(b(O),P,{type:_,url:E("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents/{documentID}/info",{clientID:L,instanceID:D,documentID:F}),dataType:"json"});return M(U)})},getPage:function(L,D,F,P,O){return p(L),I().then(function(U){var V=u.extend(b(U),O,{type:_,url:E("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents/{documentID}/pages/{pageNumber}",{clientID:L,instanceID:D,documentID:F,pageNumber:P}),dataType:"json"});return M(V)})},get:function(L){return M({type:_,url:L})},formatDocumentUrl:function(L,D,F,P){var O=E("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents/{documentID}",{clientID:L,instanceID:D,documentID:F});return P&&(O+="?"+P),O},getDocumentFormats:function(L){return I().then(function(D){var F=u.extend(b(D),L,{type:_,url:E("{baseUrl}/formats"),dataType:"json"});return M(F)})},getServiceVersion:function(L){return I().then(function(D){var F=u.extend(b(D),L,{type:_,url:E("{baseUrl}/version"),dataType:"json"});return M(F)})},getResource:function(L,D,F,P,O){return p(L),I().then(function(U){var V=u.extend(b(U),O,{type:_,url:E("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents/{documentID}/resources/{resourceID}",{clientID:L,instanceID:D,documentID:F,resourceID:P}),dataType:"json"});return M(V)})},getSearchResults:function(L,D,F,P,O,U,V,K){p(L);var X=E("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents/{documentID}/search",{clientID:L,instanceID:D,documentID:F});return I().then(function(me){var J=u.extend(b(me),K,{type:C,url:X,contentType:s,dataType:"json",data:JSON.stringify({searchToken:P,matchCase:O,matchWholeWord:U,useRegularExpressions:V})});return M(J)})},setAccessToken:function(L){g=Promise.resolve(L)},login:I,keepClientAlive:function(L,D){return I().then(function(F){var P=u.extend(b(F),D,{type:C,url:E("{baseUrl}/clients/keepAlive/{clientID}",{clientID:L})});return M(P)})},getClientsSessionTimeoutSeconds:function(L){return I().then(function(D){var F=u.extend(b(D),L,{type:_,url:E("{baseUrl}/clients/sessionTimeout")});return M(F)}).then(function(D){return D.clientSessionTimeout})}}}}(n),function(o,a,l,u){"use strict";var d=o.sr;if(!d)throw"Missing telerikReportViewer.sr";var s=o.utils;if(!s)throw"Missing telerikReportViewer.utils";var A=o.printManager;if(!A)throw"Missing telerikReportViewer.printManager";o.ViewModes={INTERACTIVE:"INTERACTIVE",PRINT_PREVIEW:"PRINT_PREVIEW"},o.PrintModes={AUTO_SELECT:"AUTO_SELECT",FORCE_PDF_PLUGIN:"FORCE_PDF_PLUGIN",FORCE_PDF_FILE:"FORCE_PDF_FILE"},o.PageModes={SINGLE_PAGE:"SINGLE_PAGE",CONTINUOUS_SCROLL:"CONTINUOUS_SCROLL"},o.ParameterEditorTypes={COMBO_BOX:"COMBO_BOX",LIST_VIEW:"LIST_VIEW"},o.ParametersAreaPositions={RIGHT:"RIGHT",LEFT:"LEFT",TOP:"TOP",BOTTOM:"BOTTOM"},o.DocumentMapAreaPositions={RIGHT:"RIGHT",LEFT:"LEFT"};var _={pagePollIntervalMs:500,documentInfoPollIntervalMs:2e3},R=function(x,f,k){if(!x)throw d.noServiceClient;var g,M;if(!function w(L){return"number"==typeof L&&isFinite(L)}(k))throw"sessionTimeoutSeconds must a number and must be finite";function p(L){return 1e3*L}function E(){M<=0||(g=setInterval(function(){x.keepClientAlive(f)},M))}function I(){g&&(clearInterval(g),g=null)}return M=k<=120?p(k)/2:p(k-60),{start:E,restart:function b(){I(),E()},stop:I}};o.ReportViewerController=function C(x){var k,w,g,M,p,E,b,I,L,D,O,V,K,Q,f={},F=o.ViewModes.INTERACTIVE,P=o.PageModes.CONTINUOUS_SCROLL,U=o.PrintModes.AUTO_SELECT,X=!1,me=o.parameterValidators,J=new function Bt(){var li={};function Xi(bo){var jo=li[bo];return jo||(li[bo]=jo=new ki(bo)),jo}return{on:function(bo,jo){Xi(bo).on(jo)},trigger:function(bo,jo){Xi(bo).trigger(jo)}};function ki(bo){var jo=[];return{on:function(Zi){jo.push(Zi)},trigger:function(Zi){var oo=[].slice.call(Zi);oo.unshift(bo);for(var Bi=0;Bi<jo.length;Bi++)jo[Bi].apply(f,oo)}}}};_e(),(x=s.extend({},_,x)).settings.printMode&&(U=x.settings.printMode());var re=x.serviceClient;if(!re)throw d.noServiceClient;function te(){k=null,M=null,H(),Q=null,x.settings.clientId(null)}function j(){if(!x.settings.keepClientAlive)throw new Error("Required settings.keepClientAlive() is not supplied for ReportViewerController");if(x.settings.keepClientAlive()&&k)return re.getClientsSessionTimeoutSeconds().then(function(li){(Q=new R(re,k,li)).start()})}function H(){x.settings.keepClientAlive()&&Q&&Q.stop()}function q(li,Xi,ki){var bo="";if(!li.xhr)throw Te(An({responseText:bo=li},0,null,null)),bo;if(s.isInvalidClientException(li.xhr)&&function _i(){X=!0,f.clientExpired()}(),Te(An(li.xhr,0,s.isInternalServerError(li.error)?"":li.error,Xi)),!ki)throw li.xhr.responseJSON&&li.xhr.responseJSON.exceptionMessage?li.xhr.responseJSON.exceptionMessage:d.promisesChainStopError}function se(){return M||(M=re.registerClient().catch(function(li){q(li,d.errorRegisteringViewer)}).then(function(li){!function de(li){k=li,H(),x.settings.clientId(k),j()}(li)}).catch(te)),M}function ne(){return p||(p=function De(li,Xi){return En(),re.createReportInstance(k,li,Xi).catch(function(ki){q(ki,s.stringFormat(d.errorCreatingReportInstance,[s.escapeHtml(li)]))})}(b,I).then(function(li){w=li})).catch(function(li){p=null}),p}function _e(){g=null,w=null,p=null,ge()}function ge(){L=D=0}function Te(){var li=function Ce(li){var Xi=li.length;return 1===Xi?li[0]:Xi>1?s.stringFormat(li[0],Array.prototype.slice.call(li,1)):""}(arguments);f.error(li)}function fe(li,Xi,ki,bo,jo){return En(),un(),re.createReportDocument(k,w,li,Xi,ki,bo,jo).catch(function(wn){q(wn,s.stringFormat(d.errorCreatingReportDocument,[s.escapeHtml(b),s.escapeHtml(li)]))})}function Oe(li,Xi,ki,bo){return bo.isCanceled||Xi!==w?Promise.reject():re.getDocumentInfo(li,Xi,ki).catch(q).then(function(jo){return jo&&jo.documentReady||(jo.promise=new Promise(function(wn,Zi){a.setTimeout(wn,bo.documentInfoPollIntervalMs)}).then(function(){return Oe(li,Xi,ki,bo)})),jo})}function Le(li,Xi,ki,bo){var ji,jo={};function wn(ai){li&&(g=ai,function oo(){li&&li.beginLoadReport()}(),function Lo(){En(),un(),Ki(),or(Oe(k,w,g,jo))}())}function or(ai){ai.then(function(Gn){Gn.documentReady?function Bi(ai){li&&li.onReportLoadComplete(ai)}(Gn):(function Xo(ai){li&&(D=ai.pageCount,li.reportLoadProgress(ai))}(Gn),or(Gn.promise))})}function Nr(ai){return new Promise(function(Gn,Io){var wr=function(){re.getPage(k,w,g,ai).catch(q).then(function(bs){bs.pageReady?Gn(bs):a.setTimeout(wr,x.pagePollIntervalMs)})};wr()})}function Fo(){if(!ji){var ai=function z(){return F===o.ViewModes.PRINT_PREVIEW?"HTML5":"HTML5Interactive"}(),Gn=function rt(){var ai=Gt();return ai.ContentOnly=!0,ai.UseSVG=s.isSvgSupported(),ai}();(function Zi(ai){jo.documentInfoPollIntervalMs=x.pagePollIntervalMs,li&&li.beforeLoadReport(ai)})({deviceInfo:Gn}),ji=se().then(ne).then(function(){return fe(ai,Gn,Xi,ki,bo)}).then(wn)}return ji}return{beginLoad:function(){Fo()},beginGetPage:function(ai){En(),Fo().then(function(){return function as(ai){li&&li.beginLoadPage(ai)}(ai),Nr(ai)}).then(function(Gn){jo.documentInfoPollIntervalMs=x.documentInfoPollIntervalMs,li&&li.pageReady(Gn)})},getPageData:function(ai){return En(),Fo().then(function(){return Nr(ai)})},dispose:function(){li=null},cancel:function(){jo.isCanceled=!0}}}function Gt(){var li={};x.settings.enableAccessibility()&&(li.enableAccessibility=!0,li.contentTabIndex=x.settings.contentTabIndex);var Xi={};f.getSearchDialogState(Xi);var ki=Xi.visible,bo=x.settings.searchMetadataOnDemand();return li.enableSearch=!bo||ki,li}function An(li,Xi,ki,bo){var jo=s.parseJSON(li.responseText),wn="";if(jo){var Zi=function Ut(li){return"Telerik.Reporting.Services.Engine.InvalidParameterException"===li?d.missingOrInvalidParameter:""}(jo.exceptionType||jo.error);if(Zi)return Zi;wn=s.escapeHtml(jo.message);var oo=s.escapeHtml(jo.exceptionMessage||jo.error_description);oo&&(wn?wn+=" "+oo:wn=oo)}else wn=s.escapeHtml(li.responseText);return(bo||ki)&&(wn&&(wn=" "+wn),wn=s.escapeHtml(bo||ki)+wn),s.isInvalidClientException(li)&&(wn+="<br />"+d.clientExpired),wn}function yi(li){f.showNotification(li)}function nn(li){f.hideNotification(li)}function Mi(li){f.setUIState(li)}function Bn(li,Xi){return Fn(),se().then(ne).then(function(){return fe(li,Xi,!0,g)}).then(function(ki){return function Xt(li,Xi,ki,bo){return new Promise(function(jo,wn){var Zi=function(oo){oo.then(function(Bi){Bi.documentReady?jo({clientId:li,instanceId:Xi,documentId:ki}):Zi(Bi.promise)})};Zi(Oe(li,Xi,ki,bo))})}(k,w,ki,x)})}function Ji(li){Fn(),un(),Ki(),go(),f.refreshReportCore(!1,g,li)}function En(){if(!k)throw d.controllerNotInitialized}function un(){if(!w)throw d.noReportInstance}function Ki(){if(!g)throw d.noReportDocument}function Fn(){if(!b)throw d.noReport}function It(li,Xi){var ki=function oi(li){var Xi;return li&&li.length&&(Xi=li[0]),"function"==typeof Xi?Xi:null}(Xi);return ki?J.on(li,ki):J.trigger(li,Xi),f}function pt(li,Xi){if(li)for(var ki=0,bo=li.length;ki<bo;ki++){var jo=li[ki];if(jo.id===Xi)return jo.page;var wn=pt(jo.items,Xi);if(wn)return wn}return null}function Lt(li){var Xi={};return Array.isArray(li)&&li.forEach(function(ki){Xi[ki.Key]=ki.Value}),Xi}function tt(li){Ne(li),f.reportSourceChanged()}function Ne(li){x.settings.reportSource&&x.settings.reportSource(li)}k=x.settings.clientId(),j();var ln={sorting:function(li){Ji(li.Id)},toggleVisibility:function(li){Ji(li.Id)},navigateToReport:function(li){var Xi=li.Value;go(),f.reportSource({report:Xi.Report,parameters:Lt(Xi.ParameterValues)}),f.refreshReport(!1)},navigateToUrl:function(li){var Xi=li.Value;a.open(Xi.Url,Xi.Target)},navigateToBookmark:function(li){var Xi=li.Value,ki=pt(V,Xi);f.navigateToPage(ki,{type:"bookmark",id:Xi})},customAction:function(li){}};function go(){f.serverActionStarted()}function zn(li){if(!s.isExceptionOfType(li.xhr,"System.ArgumentException"))throw q(li,null,!0),null;throw s.parseJSON(li.xhr.responseText).exceptionMessage}return f.Events={ERROR:"trv.ERROR",EXPORT_STARTED:"trv.EXPORT_STARTED",EXPORT_DOCUMENT_READY:"trv.EXPORT_DOCUMENT_READY",PRINT_STARTED:"trv.PRINT_STARTED",PRINT_DOCUMENT_READY:"trv.PRINT_DOCUMENT_READY",BEFORE_LOAD_PARAMETERS:"trv.BEFORE_LOAD_PARAMETERS",ON_LOADED_REPORT_CHANGE:"trv.ON_LOADED_REPORT_CHANGE",BEFORE_LOAD_REPORT:"trv.BEFORE_LOAD_REPORT",BEGIN_LOAD_REPORT:"trv.BEGIN_LOAD_REPORT",REPORT_LOAD_COMPLETE:"trv.REPORT_LOAD_COMPLETE",REPORT_LOAD_PROGRESS:"trv.REPORT_LOAD_PROGRESS",REPORT_LOAD_FAIL:"trv.REPORT_LOAD_FAIL",BEGIN_LOAD_PAGE:"trv.BEGIN_LOAD_PAGE",PAGE_READY:"trv.PAGE_READY",VIEW_MODE_CHANGED:"trv.VIEW_MODE_CHANGED",PAGE_MODE_CHANGED:"trv.PAGE_MODE_CHANGED",PRINT_MODE_CHANGED:"trv.PRINT_MODE_CHANGED",REPORT_SOURCE_CHANGED:"trv.REPORT_SOURCE_CHANGED",NAVIGATE_TO_PAGE:"trv.NAVIGATE_TO_PAGE",CURRENT_PAGE_CHANGED:"trv.CURRENT_PAGE_CHANGED",GET_DOCUMENT_MAP_STATE:"trv.GET_DOCUMENT_MAP_STATE",SET_DOCUMENT_MAP_VISIBLE:"trv.SET_DOCUMENT_MAP_VISIBLE",GET_PARAMETER_AREA_STATE:"trv.GET_PARAMETER_AREA_STATE",SET_PARAMETER_AREA_VISIBLE:"trv.SET_PARAMETER_AREA_VISIBLE",PAGE_SCALE:"trv.PAGE_SCALE",GET_PAGE_SCALE:"trv.GET_PAGE_SCALE",SERVER_ACTION_STARTED:"trv.SERVER_ACTION_STARTED",SET_TOGGLE_SIDE_MENU:"trv.SET_TOGGLE_SIDE_MENU",GET_TOGGLE_SIDE_MENU:"trv.GET_TOGGLE_SIDE_MENU",UPDATE_UI:"trv.UPDATE_UI",CSS_LOADED:"trv.CSS_LOADED",RELOAD_PARAMETERS:"trv.RELOAD_PARAMETERS",INTERACTIVE_ACTION_EXECUTING:"trv.INTERACTIVE_ACTION_EXECUTING",INTERACTIVE_ACTION_ENTER:"trv.INTERACTIVE_ACTION_ENTER",INTERACTIVE_ACTION_LEAVE:"trv.INTERACTIVE_ACTION_LEAVE",UPDATE_UI_INTERNAL:"trv.UPDATE_UI_INTERNAL",CLIENT_EXPIRED:"trv.CLIENT_EXPIRED",TOOLTIP_OPENING:"trv.TOOLTIP_OPENING",PAGE_NUMBER:"trv.PAGE_NUMBER",PAGE_COUNT:"trv.PAGE_COUNT",GET_SEARCH_DIALOG_STATE:"trv.GET_SEARCH_DIALOG_STATE",SET_SEARCH_DIALOG_VISIBLE:"trv.SET_SEARCH_DIALOG_VISIBLE",SET_SEND_EMAIL_DIALOG_VISIBLE:"trv.SET_SEND_EMAIL_DIALOG_VISIBLE",SEND_EMAIL_STARTED:"trv.SEND_EMAIL_STARTED",SEND_EMAIL_READY:"trv.SEND_EMAIL_READY",SHOW_NOTIFICATION:"trv.SHOW_NOTIFICATION",HIDE_NOTIFICATION:"trv.HIDE_NOTIFICATION",UI_STATE:"trv.UI_STATE",SCROLL_PAGE_READY:"trv.SCROLL_PAGE_READY",UPDATE_SCROLL_PAGE_DIMENSIONS_READY:"trv.UPDATE_SCROLL_PAGE_DIMENSIONS_READY",MISSING_OR_INVALID_PARAMETERS:"trv.MISSING_OR_INVALID_PARAMETERS",RENDERING_STOPPED:"trv.RENDERING_STOPPED"},s.extend(f,{getPageData:function(li){if(O)return O.getPageData(li)},reportSource:function(li){return null===li?(b=I=null,_e(),tt(li),this):li?(b=li.report,I=li.parameters,tt(li),this):null===b?null:{report:b,parameters:s.extend({},I)}},updateSettings:function(li){x.settings=s.extend({},li,x.settings)},clearReportSource:function(){return b=I=null,_e(),tt(u),this},reportDocumentIdExposed:function(){return g},setParameters:function(li){I=li},pageCount:function(){return D},currentPageNumber:function(li){if(li===u)return L;var Xi=s.tryParseInt(li);return Xi!==L&&(L=Xi,function vt(li){x.settings.pageNumber(li),f.currentPageChanged()}(Xi)),this},viewMode:function(li){var Xi=f.setViewMode(li);return"string"==typeof Xi?Xi:(b&&f.refreshReportCore(!1,g),f)},setViewMode:function(li){return li?(F!==li&&(F=li,f.viewModeChanged(li)),f):F},pageMode:function(li){var Xi=f.setPageMode(li);return"string"==typeof Xi?Xi:(b&&f.refreshReportCore(!1,g),f)},setPageMode:function(li){return li?(P!==li&&(P=li,f.pageModeChanged(li)),f):P},printMode:function(li){return li?(U!==li&&(U=li,f.printModeChanged(li)),f):U},previewReport:function(li,Xi,ki){f.onLoadedReportChange(),f.refreshReportCore(li,Xi,ki)},refreshReportCore:function(li,Xi,ki){!function xn(li,Xi,ki){b?(O&&(O.dispose(),O=null),_e(),(O=new Le(f,!li,Xi,ki)).beginLoad()):Te(d.noReport)}(li,Xi,ki)},stopRendering:function(){Fn(),un(),Ki(),re.deleteReportDocument(k,w,g).catch(q).then(function(){O&&O.cancel(),ge(),f.renderingStopped()})},getReportParameters:function(){return I},refreshReport:function(li,Xi,ki){if(f.onLoadedReportChange(),X&&(X=!1,te()),b){var bo=f.loadParameters(null);bo.then(function(jo){var wn={},Zi=[],oo=!1;s.each(jo||[],function(){try{wn[this.id]=me.validate(this,this.value)}catch{return oo=!0,void Zi.push(this)}}),oo?(Te(d.missingOrInvalidParameter),function Ei(li){for(var Xi=l.querySelector(".trv-pages-area .trv-error-message"),ki=l.createElement("ul"),bo=0;bo<li.length;bo++){var jo=l.createElement("li");jo.classList.add(li[bo].name),jo.innerText=s.stringFormat("{0} ({1})",[li[bo].text,li[bo].name]),ki.appendChild(jo)}Xi.appendChild(ki)}(Zi),f.missingOrInvalidParameters()):(f.setParameters(wn),f.refreshReportCore(li,Xi,ki))}),f.reloadParameters(bo)}else Te(d.noReport)},exportReport:function(li,Xi){!function Ko(li,Xi){Fn(),Xi||(Xi=Gt());var ki={format:li,deviceInfo:Xi,handled:!1};(function mt(li){f.exportStarted(li)})(ki),ki.handled||(Mi({operationName:"ExportInProgress",inProgress:!0}),yi({stringResources:"preparingDownload"}),Bn(li,ki.deviceInfo).then(function(jo){var wn=re.formatDocumentUrl(jo.clientId,jo.instanceId,jo.documentId,"response-content-disposition=attachment"),Zi={url:wn,format:li,handled:!1,windowOpenTarget:"_self"};(function ut(li){f.exportReady(li)})(Zi),nn(),Mi({operationName:"ExportInProgress",inProgress:!1}),Zi.handled||a.open(wn,Zi.windowOpenTarget)}))}(li,Xi)},sendReport:function(li){!function xo(li){Fn(),li.deviceInfo||(li.deviceInfo=Gt());var Xi={deviceInfo:li.deviceInfo,handled:!1,format:li.format};!function Wt(li){f.sendEmailStarted(li)}(Xi),Xi.handled||Bn(li.format,li.deviceInfo).then(function(bo){var jo=re.formatDocumentUrl(bo.clientId,bo.instanceId,bo.documentId,"response-content-disposition=attachment");li.url=jo,li.handled=!1,function dn(li){f.sendEmailReady(li)}(li),delete li.deviceInfo,li.handled||function xe(li,Xi){En(),un(),re.sendDocument(k,w,li,Xi).catch(function(ki){q(ki,s.stringFormat(d.errorSendingDocument,[s.escapeHtml(b)]))})}(bo.documentId,li)})}(li)},printReport:function(){!function mi(){Fn();var li={ImmediatePrint:!0},Xi={deviceInfo:li,handled:!1};if(function sn(li){f.printStarted(li)}(Xi),!Xi.handled){Mi({operationName:"PrintInProgress",inProgress:!0}),yi({stringResources:"preparingPrint"});var jo="response-content-disposition="+(function Eo(){switch(U){case o.PrintModes.FORCE_PDF_FILE:case!1:return!1;case o.PrintModes.FORCE_PDF_PLUGIN:case!0:return!0;default:return A.getDirectPrintState()}}()?"inline":"attachment");Bn("PDF",li).then(function(wn){var Zi=re.formatDocumentUrl(wn.clientId,wn.instanceId,wn.documentId,jo),oo={url:Zi,handled:!1};(function fn(li){f.printReady(li)})(oo),nn(),Mi({operationName:"PrintInProgress",inProgress:!1}),oo.handled||A.print(Zi)})}}()},getReportPage:function(li){!function $n(li){O&&O.beginGetPage(li)}(li)},executeReportAction:function(li){!function Pi(li){var Xi=li.action,ki=ln[Xi.Type];"function"==typeof ki&&a.setTimeout(function(){(function jn(li){f.interactiveActionExecuting(li)})(li),li.cancel||ki(Xi)},0)}(li)},reportActionEnter:function(li){!function si(li){f.interactiveActionEnter({action:li.action,element:li.element})}(li)},reportActionLeave:function(li){!function ot(li){f.interactiveActionLeave({action:li.action,element:li.element})}(li)},reportToolTipOpening:function(li){!function wi(li){f.toolTipOpening(li)}(li)},loadParameters:function(li){return null===b?{}:(f.beforeLoadParameters(null===li),function xt(li,Xi){return se().then(function(){return re.getParameters(k,li,Xi||I||{}).catch(function(ki){q(ki,d.unableToGetReportParameters)})})}(b,li))},getDocumentFormats:function(){return function wt(){return K?Promise.resolve(K):(E||(E=re.getDocumentFormats().catch(q)),E)}()},getServiceVersion:function(){return function Mt(){return re.getServiceVersion().catch(q)}()},setAuthenticationToken:function(li){re.setAccessToken(li)},clientId:function(){return k},onReportLoadComplete:function(li){D=li.pageCount,V=li.bookmarkNodes,K=li.renderingExtensions,Ne(f.reportSource()),f.reportLoadComplete(li)},raiseError:Te,getSearchResults:function(li,Xi){return function hi(li){return li.searchToken&&""!==li.searchToken?re.getSearchResults(k,w,g,li.searchToken,li.matchCase,li.matchWholeWord,li.useRegex).catch(zn):Promise.resolve(null)}(li)},on:J.on,showNotification:function(){return It(f.Events.SHOW_NOTIFICATION,arguments)},hideNotification:function(){return It(f.Events.HIDE_NOTIFICATION,arguments)},setUIState:function(){return It(f.Events.UI_STATE,arguments)},error:function(){return It(f.Events.ERROR,arguments)},reloadParameters:function(){return It(f.Events.RELOAD_PARAMETERS,arguments)},exportStarted:function(){return It(f.Events.EXPORT_STARTED,arguments)},exportReady:function(){return It(f.Events.EXPORT_DOCUMENT_READY,arguments)},sendEmailStarted:function(){return It(f.Events.SEND_EMAIL_STARTED,arguments)},sendEmailReady:function(){return It(f.Events.SEND_EMAIL_READY,arguments)},printStarted:function(){return It(f.Events.PRINT_STARTED,arguments)},printReady:function(){return It(f.Events.PRINT_DOCUMENT_READY,arguments)},beforeLoadParameters:function(){return It(f.Events.BEFORE_LOAD_PARAMETERS,arguments)},onLoadedReportChange:function(){return It(f.Events.ON_LOADED_REPORT_CHANGE,arguments)},beforeLoadReport:function(){return It(f.Events.BEFORE_LOAD_REPORT,arguments)},beginLoadReport:function(){return It(f.Events.BEGIN_LOAD_REPORT,arguments)},reportLoadComplete:function(){return It(f.Events.REPORT_LOAD_COMPLETE,arguments)},reportLoadProgress:function(){return It(f.Events.REPORT_LOAD_PROGRESS,arguments)},reportLoadFail:function(){return It(f.Events.REPORT_LOAD_FAIL,arguments)},beginLoadPage:function(){return It(f.Events.BEGIN_LOAD_PAGE,arguments)},pageReady:function(){return It(f.Events.PAGE_READY,arguments)},viewModeChanged:function(){return It(f.Events.VIEW_MODE_CHANGED,arguments)},pageModeChanged:function(){return It(f.Events.PAGE_MODE_CHANGED,arguments)},printModeChanged:function(){return It(f.Events.PRINT_MODE_CHANGED,arguments)},reportSourceChanged:function(){return It(f.Events.REPORT_SOURCE_CHANGED,arguments)},navigateToPage:function(){return It(f.Events.NAVIGATE_TO_PAGE,arguments)},currentPageChanged:function(){return It(f.Events.CURRENT_PAGE_CHANGED,arguments)},getDocumentMapState:function(){return It(f.Events.GET_DOCUMENT_MAP_STATE,arguments)},setDocumentMapVisible:function(){return It(f.Events.SET_DOCUMENT_MAP_VISIBLE,arguments)},getParametersAreaState:function(){return It(f.Events.GET_PARAMETER_AREA_STATE,arguments)},setParametersAreaVisible:function(){return It(f.Events.SET_PARAMETER_AREA_VISIBLE,arguments)},setSideMenuVisible:function(){return It(f.Events.SET_TOGGLE_SIDE_MENU,arguments)},getSideMenuVisible:function(){return It(f.Events.GET_TOGGLE_SIDE_MENU,arguments)},scale:function(){return It(f.Events.PAGE_SCALE,arguments)},getScale:function(){return It(f.Events.GET_PAGE_SCALE,arguments)},serverActionStarted:function(){return It(f.Events.SERVER_ACTION_STARTED,arguments)},cssLoaded:function(){return It(f.Events.CSS_LOADED,arguments)},interactiveActionExecuting:function(){return It(f.Events.INTERACTIVE_ACTION_EXECUTING,arguments)},interactiveActionEnter:function(){return It(f.Events.INTERACTIVE_ACTION_ENTER,arguments)},interactiveActionLeave:function(){return It(f.Events.INTERACTIVE_ACTION_LEAVE,arguments)},updateUI:function(){return It(f.Events.UPDATE_UI,arguments)},updateUIInternal:function(){return It(f.Events.UPDATE_UI_INTERNAL,arguments)},toolTipOpening:function(){return It(f.Events.TOOLTIP_OPENING,arguments)},pageNumberChange:function(){return It(f.Events.PAGE_NUMBER,arguments)},pageCountChange:function(){return It(f.Events.PAGE_COUNT,arguments)},getSearchDialogState:function(){return It(f.Events.GET_SEARCH_DIALOG_STATE,arguments)},getSendEmailDialogState:function(){return It(f.Events.GET_SEND_EMAIL_DIALOG_STATE,arguments)},setSearchDialogVisible:function(){return It(f.Events.SET_SEARCH_DIALOG_VISIBLE,arguments)},setSendEmailDialogVisible:function(){return It(f.Events.SET_SEND_EMAIL_DIALOG_VISIBLE,arguments)},scrollPageReady:function(){return It(f.Events.SCROLL_PAGE_READY,arguments)},updatePageDimensionsReady:function(){return It(f.Events.UPDATE_SCROLL_PAGE_DIMENSIONS_READY,arguments)},missingOrInvalidParameters:function(){return It(f.Events.MISSING_OR_INVALID_PARAMETERS,arguments)},renderingStopped:function(){return It(f.Events.RENDERING_STOPPED,arguments)},clientExpired:function pn(){return It(f.Events.CLIENT_EXPIRED,arguments)},dispose:function(){H(),this.keepClientAliveSentinel=null}}),f}}(n,window,document),function(o,a,l,u,d){"use strict";o.touchBehavior=function(s,A){var _,C;function p(E,b){var I=A[E];"function"==typeof I&&I(b)}!function R(E){if("function"==typeof a.fn.kendoTouch)try{a(E).mousedown(function(){C=!0}).mouseup(function(){C=!1}).kendoTouch({multiTouch:!0,enableSwipe:!0,swipe:function(b){C||function g(E){p("swipe",E)}(b)},gesturestart:function(b){C||function f(E){_=kendo.touchDelta(E.touches[0],E.touches[1]).distance}(b)},gestureend:function(b){},gesturechange:function(b){C||function w(E){var b=kendo.touchDelta(E.touches[0],E.touches[1]).distance;(function M(E){p("pinch",E)})({distance:b,lastDistance:_}),_=b}(b)},doubletap:function(b){C||function x(E){p("doubletap",E)}(b)},touchstart:function(b){C||p("touchstart")}})}catch(b){throw console.error("Instantiation of Kendo Touch threw an exception",b),b}}(s)}}(n,e,window,document),function(o,a,l,u,d){"use strict";var s=o.sr;if(!s)throw"Missing telerikReportViewer.sr";var A=o.utils;if(!A)throw"Missing telerikReportViewer.utils";var _=o.domUtils,C=o.touchBehavior;if(!C)throw"Missing telerikReportViewer.touch";var R={},x=o.ScaleModes={FIT_PAGE_WIDTH:"FIT_PAGE_WIDTH",FIT_PAGE:"FIT_PAGE",SPECIFIC:"SPECIFIC"};function f(w,g,M){var p=(g=a.extend({},R,g,M)).controller;if(!p)throw"No controller (telerikReportViewer.reportViewerController) has been specified.";var P,O,J,Q,re,de,E=a(w),b=E.find(".trv-page-container"),I=b[0],L=E.find(".trv-page-wrapper"),D=L[0],F=E.find(".trv-error-message"),U=x.SPECIFIC,V=1,me=!0,te=!1,j=!1,z="trv-initial-image-styles",q=A.extend({},o.scroll,{}),se=null;function fe(){Ut(re),re=!1}function Oe(){return-1!==[x.FIT_PAGE,x.FIT_PAGE_WIDTH].indexOf(U)}function Le(){for(var pt=0,Lt=b.find(".trv-report-page"),tt=Lt.length;pt<tt;pt++){var Ne=parseInt(a(Lt[pt]).attr("data-page"));Mi(Lt[pt],U,V,Ne)}p.updatePageDimensionsReady()}function Gt(pt){U=pt.scaleMode||U;var Lt=V;"scale"in pt&&(Lt=pt.scale),V=Math.max(.1,Math.min(8,Lt)),Le()}function Ut(pt){(function Eo(){b.off("click","[data-reporting-action]",Ko),b.off("mouseenter","[data-reporting-action]",Bn),b.off("mouseleave","[data-reporting-action]",Xt),b.off("mouseenter","[data-tooltip-title],[data-tooltip-text]",En),b.off("mouseleave","[data-tooltip-title],[data-tooltip-text]",oi)})(),O=d,pt&&L.empty(),fn()}function An(){return $n(p.currentPageNumber())}function $n(pt){var Lt,tt=b.find(".trv-report-page");return p.pageMode()===o.PageModes.SINGLE_PAGE?A.each(tt,function(Ne,vt){return yi(vt)===pt&&(Lt=vt),!Lt}):a.each(tt,function(Ne,vt){if(parseInt(a(vt).attr("data-page"))===pt)return Lt=vt,!1}),Lt}function xn(pt,Lt){me?function ut(pt,Lt){var tt=$n(pt);tt?(Lt&&Wt(Lt,pt),q.isEnabled()&&!Lt&&q.navigateToElement(tt.offsetTop,pt)):(O=Lt,function nn(pt){sn(!0),l.setTimeout(p.getReportPage.bind(p,pt),1),J=null}(pt))}(pt,Lt):function mt(pt,Lt){J=pt,Q=Lt}(pt,Lt)}function Wt(pt,Lt){if(pt){var tt=b.find("[data-"+pt.type+"-id="+pt.id+"]")[0];if(tt){if(g.enableAccessibility){var Ne=dn(a(tt));Ne&&Ne.focus()}for(var vt=b[0],ln=0,jn=0;tt&&tt!==vt;){if(a(tt).is(".trv-page-wrapper")){var Pi=a(tt).data("pageScale");"number"==typeof Pi&&(ln*=Pi,jn*=Pi)}ln+=tt.offsetTop,jn+=tt.offsetLeft,tt=tt.offsetParent}q.isEnabled()&&Lt?q.navigateToElement(ln,Lt):(vt.scrollTop=ln,vt.scrollLeft=jn)}else q.isEnabled()&&Lt&&q.navigateToElement(E.find('[data-page="'+Lt+'"]')[0].offsetTop,Lt)}}function dn(pt){if(!pt||0===pt.length)return null;var Lt=A.tryParseInt(pt.attr("tabindex"));return!isNaN(Lt)&&Lt>-1?pt:dn(pt.next())}function sn(pt){(pt?a.fn.addClass:a.fn.removeClass).call(E,"trv-loading")}function fn(pt){F.text(pt),(pt?a.fn.addClass:a.fn.removeClass).call(E,"trv-error")}function yi(pt,Lt){var tt=pt.$?pt:a(pt),Ne="pageNumber";return Lt===d?tt.data(Ne):(tt.data(Ne,Lt),pt)}function Mi(pt,Lt,tt,Ne){var vt=a(pt),ln=Ne?vt:vt.find("div.trv-report-page"),jn=ln.find("div.sheet"),Pi=ln.find("div.trv-skeleton-wrapper"),go=jn[0]||Pi[0],si=Pi[0];if(go){var ot,pn,_i=vt.data("box");if(!_i){var wi=_.getMargins(vt),hi=_.getBorderWidth(ln),zn=_.getPadding(ln);vt.data("box",_i={padLeft:wi.left+hi.left+zn.left,padRight:wi.right+hi.right+zn.right,padTop:wi.top+hi.top+zn.top,padBottom:wi.bottom+hi.bottom+zn.bottom})}vt.data("pageWidth")===d?(pn=go.offsetHeight,vt.data("pageWidth",ot=go.offsetWidth),vt.data("pageHeight",pn)):(ot=vt.data("pageWidth"),pn=vt.data("pageHeight"));var li=(I.clientWidth-(pn>ot&&Lt===x.FIT_PAGE_WIDTH?20:0)-_i.padLeft-_i.padRight)/ot;Lt===x.FIT_PAGE_WIDTH?tt=li:(!tt||Lt===x.FIT_PAGE)&&(tt=Math.min(li,(I.clientHeight-1-_i.padTop-_i.padBottom)/pn)),se&&se.setScaleFactor(tt),vt.data("pageScale",tt),ln.data("pageScale",tt),si||_.scale(jn,tt,tt),ln.css({height:tt*pn,width:tt*ot})}}function Ko(pt){var Ne=Ji(a(this).attr("data-reporting-action"));Ne&&(J=function xo(pt,Lt){return q.isEnabled()&&("sorting"===Lt||"toggleVisibility"===Lt)&&a(pt.target).closest(".trv-report-page").attr("data-page")||p.currentPageNumber()}(pt,Ne.Type),p.executeReportAction({element:pt.currentTarget,action:Ne,cancel:!1})),pt.stopPropagation()}function Bn(pt){var Ne=Ji(a(this).attr("data-reporting-action"));null!==Ne&&pt.currentTarget===this&&p.reportActionEnter({element:pt.currentTarget,action:Ne})}function Xt(pt){var Ne=Ji(a(this).attr("data-reporting-action"));null!==Ne&&pt.currentTarget===this&&p.reportActionLeave({element:pt.currentTarget,action:Ne})}function Ji(pt){var Lt;return P?(A.each(P,function(){return this.Id===pt&&(Lt=this),Lt===d}),Lt):null}function En(pt){var Lt=a(this),tt=Lt.attr("data-tooltip-title"),Ne=Lt.attr("data-tooltip-text");if(tt||Ne){var vt={element:pt.currentTarget,toolTip:{title:tt||"",text:Ne||""},cancel:!1};if(p.reportToolTipOpening(vt),!vt.cancel){var ln=function un(pt){var tt=a(g.templates["trv-pages-area-kendo-tooltip"]),Ne=tt.find(".trv-pages-area-kendo-tooltip-title"),vt=tt.find(".trv-pages-area-kendo-tooltip-text");return Ne.text(pt.toolTip.title),vt.text(pt.toolTip.text),tt.clone().wrap("<p>").parent().html()}(vt),jn=pt.currentTarget.viewportElement,Pi=function Fn(pt,Lt){var tt=pt.data("kendoTooltip");if(!tt)try{tt=pt.kendoTooltip({content:Lt,autohide:!0,callout:!1}).data("kendoTooltip")}catch(Ne){throw console.error("Instantiation of Kendo Tooltip threw an exception",Ne),Ne}return tt}(Lt,ln);Pi.show(Lt),jn&&"svg"===jn.nodeName&&function Ki(pt,Lt){var tt=Lt.pageX,Ne=Lt.pageY;pt.popup.element.closest("[role=region]").css({left:tt+10,top:Ne+5})}(Pi,pt)}}}function oi(pt){var tt=a(this).data("kendoTooltip");tt&&tt.hide()}function Mt(){a("#"+z).remove()}(function ne(){!function _e(pt){pt.attr("aria-label",s[pt.attr("aria-label")])}(E)})(),q&&q.init(w,g),a(l).on("resize",function(pt,Lt){Oe()&&Le()}),function xe(pt){var Lt,tt;C(pt,{swipe:function(Ne){var vt=p.currentPageNumber();Lt&&"left"===Ne.direction?vt<p.pageCount()&&p.navigateToPage(vt+1):tt&&"right"===Ne.direction&&vt>1&&p.navigateToPage(vt-1)},pinch:function(Ne){var vt=An();Gt({scale:(a(vt).data("pageScale")||V)*(Ne.distance/Ne.lastDistance),scaleMode:o.ScaleModes.SPECIFIC})},doubletap:function(Ne){g.commands.toggleZoomMode.exec()},touchstart:function(Ne){tt=0===D.scrollLeft,Lt=D.scrollWidth-D.offsetWidth===D.scrollLeft}})}(E),p.pageModeChanged(function(){p.pageMode()===o.PageModes.CONTINUOUS_SCROLL?q.enable():q.disable(),p.refreshReport(!0)}).reportSourceChanged(function(){re=!0,J=null,Q=null,me=!1}).beforeLoadParameters(function(pt,Lt){Lt&&fn(s.loadingReport)}).beforeLoadReport(function(){me=!1,J||(J=1),function ge(){de&&l.clearTimeout(de)}(),Ut(),sn(!0),fn(s.loadingReport)}).beginLoadReport(function(pt,Lt){me=!0,function Ce(){var pt=$n(J);pt&&yi(pt,-1)}()}).reportLoadProgress(function(pt,Lt){(function Te(pt,Lt){pt&&pt<=Lt&&xn(pt,Q)})(J,Lt.pageCount),fn(A.stringFormat(s.loadingReportPagesInProgress,[Lt.pageCount]))}).reportLoadComplete(function(pt,Lt){0===Lt.pageCount?(fe(),fn(s.noPageToDisplay)):(function De(pt,Lt){pt&&xn(pt=Math.min(pt,Lt),Q)}(J,Lt.pageCount),fn(A.stringFormat(s.loadedReportPagesComplete,[Lt.pageCount])),de=l.setTimeout(fn,2e3),function mi(){b.on("click","[data-reporting-action]",Ko),b.on("mouseenter","[data-reporting-action]",Bn),b.on("mouseleave","[data-reporting-action]",Xt),b.on("mouseenter","[data-tooltip-title],[data-tooltip-text]",En),b.on("mouseleave","[data-tooltip-title],[data-tooltip-text]",oi)}()),Lt.containsFrozenContent&&!se&&(se=A.extend({},o.uiFreezeCoordinator,{}),p.viewMode()===o.ViewModes.INTERACTIVE&&se.init(E))}).navigateToPage(function(pt,Lt,tt){xn(Lt,tt)}).pageReady(function(pt,Lt){p.pageMode()===o.PageModes.SINGLE_PAGE?(q.isEnabled()&&q.disable(),function Bt(pt){P=JSON.parse(pt.pageActions),function It(pt){var Lt="trv-"+p.clientId()+"-styles";a("#"+Lt).remove();var tt=a("<style id="+Lt+"></style>");tt.append(pt.pageStyles),tt.appendTo("head")}(pt);var Lt=pt.pageNumber,Ne=a(a.parseHTML(pt.pageContent)).find("div.sheet"),vt=a('<div class="trv-report-page" data-page="'+Lt+'"></div>');Ne.css("margin",0),vt.append(Ne).append(a('<div class="trv-page-overlay"></div>'));var ln=L.empty().removeData().data("pageNumber",Lt).append(vt);p.currentPageNumber(Lt),p.viewMode()===o.ViewModes.INTERACTIVE?(E.removeClass("printpreview"),E.addClass("interactive")):(E.removeClass("interactive"),E.addClass("printpreview")),Mi(ln,U,V),b.scrollTop(0),b.scrollLeft(0),Wt(O)}(Lt)):q.renderPage(Lt),j||(j=!0),te&&Mt(),p.viewMode()===o.ViewModes.INTERACTIVE&&se&&se.init(E),sn(!1)}).error(function(pt,Lt){sn(!1),fe(),fn(Lt)}).showNotification(function(pt,Lt){fn(s[Lt.stringResources])}).hideNotification(function(pt,Lt){fn()}).scale(function(pt,Lt){Gt(Lt)}).getScale(function(pt,Lt){var tt=An(),Ne=a(tt).data("pageScale")||V;Lt.scale=Ne,Lt.scaleMode=U}).setDocumentMapVisible(function(){Oe()&&setTimeout(function(){Le()})}).setParametersAreaVisible(function(){Oe()&&setTimeout(function(){Le()})}).serverActionStarted(function(){sn(!0),fn(s.loadingReport)}).scrollPageReady(function(pt,Lt){!function xt(pt){var Lt=JSON.parse(pt.page.pageActions);P=P?P.concat(Lt):Lt,p.viewMode()===o.ViewModes.INTERACTIVE?(E.removeClass("printpreview"),E.addClass("interactive")):(E.removeClass("interactive"),E.addClass("printpreview")),Mi(pt.target,U,V,pt.page.pageNumber)}(Lt)}).missingOrInvalidParameters(function(pt,Lt){g.initialPageAreaImageUrl&&!j&&(fe(),function wt(){var pt=a("<style id="+z+"></style>");Mt(),pt.append(A.stringFormat('.trv-page-container {background: #ffffff url("{0}") no-repeat center 50px}',[g.initialPageAreaImageUrl])),pt.appendTo("head"),te=!0}())}).renderingStopped(function(){Ut(!0),fn(s.renderingCanceled)})}var k="telerik_ReportViewer_PagesArea";a.fn[k]=function(w,g){return A.each(this,function(){a.data(this,k)||a.data(this,k,new f(this,w,g))})}}(n,e,window,document),function(o,a,l,u,d){"use strict";var s={},A=o.sr;if(!A)throw"Missing telerikReportViewer.sr";var _=o.utils;if(!_)throw"Missing telerikReportViewer.utils";function C(x,f,k){var w=(f=a.extend({},s,f,k)).controller;if(!w)throw"No controller (telerikReporting.reportViewerController) has been specified.";var M,g=a(x),p=!1!==f.documentMapVisible,E=f.enableAccessibility,b=null,I=!1;function D(te){var j=this.dataItem(te.node);w.navigateToPage(j.page,{type:"bookmark",id:j.id})}function F(te){E&&l.setTimeout(function(){P(te.node)},100)}function P(te){var j=a(te).find("li");_.each(j,function(){var H=a(this);H.attr("aria-label",H[0].innerText)})}function O(){U([])}function U(te){var j=te&&!a.isEmptyObject(te),H=M.data("kendoTreeView");if(!H)try{M.kendoTreeView({dataTextField:"text",select:D}),H=M.data("kendoTreeView")}catch(z){throw console.error("Instantiation of Kendo TreeView as Document Map threw an exception",z),z}H.setDataSource(te),E&&function V(te){te.bind("expand",F),te.element.attr("aria-label",A.ariaLabelDocumentMap);var j=te.element.find("ul");_.each(j,function(){P(this)}),I&&function K(){var te=g.next();f.documentMapAreaPosition===o.DocumentMapAreaPositions.RIGHT&&(te=g.prev()),te.attr("aria-label",A.ariaLabelDocumentMapSplitter)}()}(H),Q(j)}function J(){g.removeClass("trv-loading")}function Q(te){var j=o[f.viewerSelector+"-document-map-splitter"],H=g.next();f.documentMapAreaPosition===o.DocumentMapAreaPositions.RIGHT&&(H=g.prev()),j&&((I?a.fn.removeClass:a.fn.addClass).call(H,"trv-hidden"),j.toggle(".trv-document-map",te))}!function L(){(M=a('<div id="'+f.viewerSelector+'-documentMap"></div>')).appendTo(x),function re(){w.beginLoadReport(function(){!function me(){g.addClass("trv-loading")}();var te=w.reportSource().report,j=b!==te||!function X(){var te={};return w.getDocumentMapState(te),te.visible}();b=te,j&&O()}).reportLoadComplete(function(te,j){j.documentMapAvailable?(I=!0,U(j.documentMapNodes),w.setDocumentMapVisible({enabled:!0,visible:p})):Q(I=!1),J()}).error(function(te,j){J(),O()}).getDocumentMapState(function(te,j){j.enabled=I,j.visible=p}).setDocumentMapVisible(function(te,j){Q((p=j.visible)&&I)}).renderingStopped(function(){I=!1,Q(!1)})}(),function de(te){var j=te.find(".trv-document-map-overlay");j&&j.attr("aria-label",A[j.attr("aria-label")])}(g)}()}var R="telerik_ReportViewer_DocumentMapArea";a.fn[R]=function(x,f){return _.each(this,function(){a.data(this,R)||a.data(this,R,new C(this,x,f))})}}(n,e,window,document),function(o,a,l,u,d){"use strict";o.ParameterTypes={INTEGER:"System.Int64",FLOAT:"System.Double",STRING:"System.String",DATETIME:"System.DateTime",BOOLEAN:"System.Boolean"},o.parameterEditorsMatch={MultiSelect:function(I,L){return!!I.availableValues&&I.multivalue&&(!L||!L.multiSelect||L.multiSelect!==o.ParameterEditorTypes.COMBO_BOX)},MultiSelectCombo:function(I,L){return!!I.availableValues&&I.multivalue&&L&&L.multiSelect&&L.multiSelect===o.ParameterEditorTypes.COMBO_BOX},SingleSelect:function(I,L){return!(!I.availableValues||I.multivalue||L&&L.singleSelect&&L.singleSelect===o.ParameterEditorTypes.COMBO_BOX)},SingleSelectCombo:function(I,L){return!!I.availableValues&&!I.multivalue&&L&&L.singleSelect&&L.singleSelect===o.ParameterEditorTypes.COMBO_BOX},MultiValue:function(I){return!!I.multivalue},DateTime:function(I){return I.type===o.ParameterTypes.DATETIME},String:function(I){return I.type===o.ParameterTypes.STRING},Number:function(I){switch(I.type){case o.ParameterTypes.INTEGER:case o.ParameterTypes.FLOAT:return!0;default:return!1}},Boolean:function(I){return I.type===o.ParameterTypes.BOOLEAN},Default:function(I){return!0}};var s=o.sr,A=o.utils,__formatValue=function(L){var D="";return L&&[].concat(L).forEach(function(F){D.length>0&&(D+="\n"),D+=F}),D},__parseValues=function(L){return(""+L).split("\n")};function x(I,L,D){(I?a.fn.addClass:a.fn.removeClass).call(D,L)}function f(I,L){x(!L,"k-disabled",I)}function w(I,L,D,F,P){F||(F="");var O=A.stringFormat("{0}. {1} {2}. {3}",[D,L,s.ariaLabelParameter,F]);I.attr("aria-label",O),E(I,P)}var g,M=0;function p(I){if(!g){var L=a("div.trv-parameters-area-content");if(L.length>0){var D=L.attr("tabIndex");D&&(g=A.tryParseInt(D))}(!g||isNaN(g))&&(g=300)}var F=I.closest(".trv-parameter-value"),P=F.find(".trv-select-all"),O=F.find(".trv-select-none"),V=I.closest(".k-widget").find(".k-input"),K=V&&V.length;P&&P.length&&P.attr("tabindex",g+ ++M),O&&O.length&&O.attr("tabindex",g+ ++M),K?V.attr("tabindex",g+ ++M):I.attr("tabindex",g+ ++M)}function E(I,L){var D=A.stringFormat(" {0}:",[s.ariaLabelErrorMessage]),F=I.attr("aria-label");if(F){var P=F.indexOf(D);P>-1&&(F=F.substring(0,P)),L&&""!==L?(I.attr("aria-required",!0),I.attr("aria-invalid",!0),F+=D+L):I.removeAttr("aria-invalid"),I.attr("aria-label",F)}}function b(I){return kendo.version>="2017.3.1018"||I}o.parameterEditors=[{match:o.parameterEditorsMatch.MultiSelect,createEditor:function(I,L){var D=a(I),F=!0;D.html(L.templates["trv-parameter-editor-available-values-multiselect"]);var V,K,X,J,P=D.find(".trv-list"),O=D.find(".trv-select-all"),U=D.find(".trv-select-none"),me=L.parameterChanged;function Q(Ce){J&&(function re(Ce){var Te=P.find(".trv-listviewitem");A.each(Te,function(){var De=a(this),fe=Ce.filter(De).length>0;De.attr("aria-selected",fe)})}(Ce),function de(Ce){var Te=K.availableValues,De=a.map(Ce,function(xe){return Te[a(xe).index()].value});te(),X=l.setTimeout(function(){A.areEqualArrays(K.value,De)||me(K,De),X=null},K.autoRefresh||K.childParameters?1e3:0)}(Ce))}function te(){X&&l.clearTimeout(X)}function j(){return a(V.element).find(".k-selected")}function H(Ce){if(F){var Te=a(Ce.target),De=V.select();Te.hasClass("k-selected")?De.splice(a.inArray(Te[0],De),1):De.push(Te),V.clearSelection(),V.select(De),V.trigger("change")}}function z(Ce){Q(j())}function q(Ce){if(F&&32===Ce.which){var Te=V.element.find(".k-focus");Te.length>0&&(Te.toggleClass("k-selected"),Q(j()),Ce.preventDefault())}}function _e(Ce){(function ge(Ce){Array.isArray(Ce)||(Ce=[Ce]);var Te=P.find(".trv-listviewitem");A.each(K.availableValues,function(De,fe){var xe=!1;A.each(Ce,function(Oe,Le){var Gt=fe.value;return Le instanceof Date&&(Gt=A.parseToLocalDate(fe.value)),!(xe=A.areEqual(Le,Gt))}),function k(I,L){x(L,"k-selected",I),I.attr("aria-selected",L)}(a(Te[De]),xe)})})(Ce),Q(j())}return O.text(s[O.text()]),O.click(function(Ce){Ce.preventDefault(),F&&_e(K.availableValues.map(function(Te){return Te.value}))}),U.text(s[U.text()]),U.click(function(Ce){Ce.preventDefault(),F&&_e([])}),{beginEdit:function(Ce){(function ne(){J=!1,V&&(V.element.off("touch click",".trv-listviewitem",H),V.element.off("keydown",q))})(),K=Ce;try{V=P.kendoListView({template:kendo.template('<div class="trv-listviewitem" style="cursor: pointer">${name}</div>'),dataSource:{data:K.availableValues},selectable:"MULTIPLE",navigatable:b(L.enableAccessibility),change:z}).data("kendoListView")}catch(Te){throw console.error("Instantiation of Kendo ListView as MultiSelect parameter editor threw an exception",Te),Te}!function se(){p(P),_e(K.value),V.element.off().on("touch click",".trv-listviewitem",H),V.element.on("keydown",q),J=!0}()},enable:function(Ce){f(P,F=Ce)},clearPendingChange:te,addAccessibility:function(Ce){var Te=A.stringFormat(s.ariaLabelParameterInfo,[Ce.availableValues.length]);w(P,s.ariaLabelMultiSelect,Ce.text,Te,Ce.Error),P.attr("aria-multiselectable","true");var De=P.find(".trv-listviewitem");A.each(De,function(){a(this).attr("aria-label",this.innerText)})},setAccessibilityErrorState:function(Ce){E(P,Ce.Error)},destroy:function(){V.destroy()}}}},{match:o.parameterEditorsMatch.MultiSelectCombo,createEditor:function(I,L){var V,K,X,me,J,re,D=a(I),F=!0,U=L.parameterChanged,Q=!0;function j(){J&&l.clearTimeout(J)}function z(){Q&&function de(ne){!function te(ne){j(),J=l.setTimeout(function(){A.areEqualArrays(re.value,ne)||U(re,ne),J=null},re.autoRefresh||re.childParameters?1e3:0)}(ne)}(function H(){return me.value()}())}return D.html(L.templates["trv-parameter-editor-available-values-multiselect-combo"]),V=D.find(".trv-combo"),(K=D.find(".trv-select-none"))&&(K.text(s[K.text()]),K.click(function(ne){ne.preventDefault(),me.value([]),me.trigger("change")})),(X=D.find(".trv-select-all"))&&(X.text(s[X.text()]),X.click(function(ne){if(ne.preventDefault(),F){var _e=a.map(re.availableValues,function(ge){return ge.value});me.value(_e),me.trigger("change")}})),{beginEdit:function(ne){(function se(){me&&me.unbind("change",z)})(),re=ne;try{me=V.kendoMultiSelect({itemTemplate:'<div class="trv-editoritem">${name}</div>',dataSource:re.availableValues,dataTextField:"name",dataValueField:"value",value:re.value,filter:"contains",autoClose:!1,open:function(){Q=!1},close:function(_e){Q=!0,z()},autoWidth:!0,clearButton:!1}).data("kendoMultiSelect")}catch(_e){throw console.error("Instantiation of Kendo MultiSelect as MultiSelectCombo parameter editor threw an exception",_e),_e}!function q(){p(V),me.bind("change",z)}()},enable:function(ne){F=ne,me.enable(ne)},clearPendingChange:j,addAccessibility:function(ne){var _e=me.input,ge=A.stringFormat(s.ariaLabelParameterInfo,[ne.availableValues.length]);w(_e,s.ariaLabelMultiSelect,ne.text,ge,ne.Error);var Ce=me.items();A.each(Ce,function(){a(this).attr("aria-label",this.innerText)})},setAccessibilityErrorState:function(ne){E(V,ne.Error)},destroy:function(){me.destroy()}}}},{match:o.parameterEditorsMatch.SingleSelect,createEditor:function(I,L){var D=a(I),F=!0;D.html(L.templates["trv-parameter-editor-available-values"]);var U,V,P=D.find(".trv-list"),O=D.find(".trv-select-none"),K=L.parameterChanged;function Q(){!function X(j){!function me(j){var H=V.availableValues,z=a.map(j,function(q){return H[a(q).index()].value});Array.isArray(z)&&(z=z[0]),K(V,z)}(j)}(function J(){return U.select()}())}return O&&(O.text(s[O.text()]),O.click(function(j){j.preventDefault(),U.clearSelection(),U.trigger("change")})),{beginEdit:function(j){(function de(){U&&U.unbind("change",Q)})(),V=j;try{U=P.kendoListView({template:'<div class="trv-listviewitem">${name}</div>',dataSource:{data:V.availableValues},selectable:!0,navigatable:b(L.enableAccessibility)}).data("kendoListView")}catch(H){throw console.error("Instantiation of Kendo ListView as SingleSelect parameter editor threw an exception",H),H}!function re(){p(P),function te(j){var H=P.find(".trv-listviewitem");A.each(V.availableValues,function(z,q){var se=q.value;return j instanceof Date&&(se=A.parseToLocalDate(q.value)),!A.areEqual(j,se)||(U.select(H[z]),!1)})}(V.value),U.bind("change",Q)}()},enable:function(j){f(P,F=j),F?(U.bind("change",Q),P.addClass("k-selectable")):(U.unbind("change",Q),P.removeClass("k-selectable"))},addAccessibility:function(j){var H=A.stringFormat(s.ariaLabelParameterInfo,[j.availableValues.length]);w(P,s.ariaLabelSingleValue,j.text,H,j.Error);var z=P.find(".trv-listviewitem");A.each(z,function(){a(this).attr("aria-label",this.innerText)})},setAccessibilityErrorState:function(j){E(P,j.Error)},destroy:function(){U.destroy()}}}},{match:o.parameterEditorsMatch.SingleSelectCombo,createEditor:function(I,L){var V,K,X,me,D=a(I),U=L.parameterChanged;function de(H){!function J(H,z){!function Q(H,z){var q=z||"";!z&&H>=0&&(q=me.availableValues[H].value),U(me,q)}(H,z)}(function re(){return X.select()}(),this.value())}return D.html(L.templates["trv-parameter-editor-available-values-combo"]),V=D.find(".trv-combo"),(K=D.find(".trv-select-none"))&&(K.text(s[K.text()]),K.click(function(H){H.preventDefault(),X.value(""),X.trigger("change")})),{beginEdit:function(H){(function j(){X&&X.unbind("change",de)})(),me=H;try{X=V.kendoComboBox({template:'<div class="trv-editoritem">${name}</div>',dataSource:me.availableValues,dataTextField:"name",dataValueField:"value",value:me.value,filter:"contains",suggest:!0,clearButton:!1}).data("kendoComboBox")}catch(z){throw console.error("Instantiation of Kendo ComboBox as SingleSelectCombo parameter editor threw an exception",z),z}!function te(){p(V),X.bind("change",de)}()},enable:function(H){X.enable(H)},addAccessibility:function(H){var z=X.input,q=A.stringFormat(s.ariaLabelParameterInfo,[H.availableValues.length]);w(z,s.ariaLabelSingleValue,H.text,q,H.Error);var se=X.items();A.each(se,function(){a(this).attr("aria-label",this.innerText)})},setAccessibilityErrorState:function(H){E(V,H.Error)},destroy:function(){X.destroy()}}}},{match:o.parameterEditorsMatch.MultiValue,createEditor:function(I,L){var F,D=a(I);D.html(L.templates["trv-parameter-editor-multivalue"]);var P=D.find("textarea").on("change",function(){L.parameterChanged&&L.parameterChanged(F,__parseValues(this.value))});return{beginEdit:function(U){F=U,function O(U){F.value=U,P.val(__formatValue(U))}(U.value),p(P)},enable:function(U){f(P,U),P.prop("disabled",!U)},addAccessibility:function(U){w(P,s.ariaLabelMultiValue,U.text,null,U.Error)},setAccessibilityErrorState:function(U){E(P,U.Error)}}}},{match:o.parameterEditorsMatch.DateTime,createEditor:function(I,L){var F,D=a(I);D.html(L.templates["trv-parameter-editor-datetime"]);try{var P=D.find("input[type=datetime]").kendoDatePicker({change:function(){var V=L.parameterChanged;if(V){var K=this.value();null!==K&&(K=A.adjustTimezone(K)),V(F,K)}}}),O=P.data("kendoDatePicker")}catch(V){throw console.error("Instantiation of Kendo DatePicker as DateTime parameter editor threw an exception",V),V}return{beginEdit:function(V){F=V,function U(V){F.value=V;var K=null;try{V&&(K=A.unadjustTimezone(V))}catch{K=null}O.value(K)}(V.value),p(P)},enable:function(V){O.enable(V),f(P,V)},addAccessibility:function(V){w(P,s.ariaLabelParameterDateTime,V.text,null,V.Error),P.attr("aria-live","assertive")},setAccessibilityErrorState:function(V){E(P,V.Error)},destroy:function(){O.destroy()}}}},{match:o.parameterEditorsMatch.String,createEditor:function(I,L){var F,D=a(I);D.html(L.templates["trv-parameter-editor-text"]);var P=D.find('input[type="text"]').change(function(){L.parameterChanged&&L.parameterChanged(F,P.val())});return{beginEdit:function(U){F=U,function O(U){F.value=U,P.val(U)}(U.value),p(P)},enable:function(U){P.prop("disabled",!U),f(P,U)},addAccessibility:function(U){w(P,s.ariaLabelParameterString,U.text,null,U.Error),P.attr("aria-live","assertive")},setAccessibilityErrorState:function(U){E(P,U.Error)}}}},{match:o.parameterEditorsMatch.Number,createEditor:function(I,L){var F,P,D=a(I);D.html(L.templates["trv-parameter-editor-number"]);var O=D.find("input[type=number]").on("change",function(){L.parameterChanged&&L.parameterChanged(F,O.val())});return{beginEdit:function(V){P&&P.dispose(),O.val((F=V).value),P=F.type===o.ParameterTypes.INTEGER?function C(I){function D(U){return!!A.isSpecialKey(U.keyCode)||function L(U){return/^(\-|\+)?([0-9]*)$/.test(U)}(a(I).val()+String.fromCharCode(U.charCode))}function F(U){}return function P(U){a(U).on("keypress",D).on("paste",F)}(I),{dispose:function(){!function O(U){a(U).off("keypress",D).off("paste",F)}(I)}}}(O):function R(I){function D(U){return!!A.isSpecialKey(U.keyCode)||function L(U){return/^(\-|\+)?([0-9]*(\.[0-9]*)?)$/.test(U)}(a(I).val()+String.fromCharCode(U.charCode))}function F(U){}return function P(U){a(U).on("keypress",D).on("paste",F)}(I),{dispose:function(){!function O(U){a(U).off("keypress",D).off("paste",F)}(I)}}}(O),p(O)},enable:function(V){O.prop("disabled",!V),f(O,V)},addAccessibility:function(V){w(O,s.ariaLabelParameterNumerical,V.text,null,V.Error),O.attr("aria-live","assertive")},setAccessibilityErrorState:function(V){E(O,V.Error)}}}},{match:o.parameterEditorsMatch.Boolean,createEditor:function(I,L){var F,D=a(I);D.html(L.templates["trv-parameter-editor-boolean"]);var P=D.find("input[type=checkbox]").on("change",function(){L.parameterChanged&&L.parameterChanged(F,this.checked)});return{beginEdit:function(U){F=U,function O(U){F.value=U,P[0].checked=!0===U}(U.value),p(P)},enable:function(U){f(P,U),P.attr("disabled",!U)},addAccessibility:function(U){w(P,s.ariaLabelParameterBoolean,U.text,null,U.Error),P.attr("aria-live","assertive")},setAccessibilityErrorState:function(U){E(P,U.Error)}}}},{match:o.parameterEditorsMatch.Default,createEditor:function(I,L){var D=a(I);return D.html('<div class="trv-parameter-editor-generic"></div>'),{beginEdit:function(F){D.find(".trv-parameter-editor-generic").text(F.Error?"(error)":F.value)},enable:function(F){}}}}]}(n,e,window,document),function(o,a,l,u,d){"use strict";var s=o.sr,A=o.utils;o.parameterValidators=function(){var _={};function C(f,k,w,g){var M=[].concat(k).map(function(p){return function x(f,k,w){if(f.availableValues){var g=!1;if(A.each(f.availableValues,function(M,p){return!(g=w(k,p.value))}),!g){if(f.allowNull&&!k)return k;throw s.invalidParameter}}return k}(f,w(p),g)});if(f.multivalue){if(null==k||0==k.length){if(f.allowNull)return k;throw s.invalidParameter}return M}return M[0]}function R(f,k){return f.allowNull&&-1!=[null,"",d].indexOf(k)}return _[o.ParameterTypes.STRING]={validate:function(f,k){return C(f,k,function(w){if(!w){if(f.allowNull)return null;if(f.allowBlank)return"";throw s.parameterIsEmpty}return w},function(w,g){return w==g})}},_[o.ParameterTypes.FLOAT]={validate:function(f,k){return C(f,k,function(w){var g=A.tryParseFloat(w);if(isNaN(g)){if(R(f,w))return null;throw s.parameterIsEmpty}return g},function(w,g){return A.tryParseFloat(w)==A.tryParseFloat(g)})}},_[o.ParameterTypes.INTEGER]={validate:function(f,k){return C(f,k,function(w){var g=A.tryParseInt(w);if(isNaN(g)){if(R(f,w))return null;throw s.parameterIsEmpty}return g},function(w,g){return A.tryParseInt(w)==A.tryParseFloat(g)})}},_[o.ParameterTypes.DATETIME]={validate:function(f,k){return C(f,k,function(w){if(f.allowNull&&(null===w||""===w||w===d))return null;if(!isNaN(Date.parse(w)))return f.availableValues?w:A.parseToLocalDate(w);throw s.invalidDateTimeValue},function(w,g){return w=A.parseToLocalDate(w),g=A.parseToLocalDate(g),w.getTime()==g.getTime()})}},_[o.ParameterTypes.BOOLEAN]={validate:function(f,k){return C(f,k,function(w){if(-1!=["true","false"].indexOf((""+w).toLowerCase()))return!!w;if(R(f,w))return null;throw s.parameterIsEmpty},function(w,g){return!!w==!!g})}},{validate:function(f,k){var w=_[f.type];if(!w)throw A.stringFormat(s.cannotValidateType,f);return w.validate(f,k)}}}()}(n,0,window,document),function(o,a,l,u,d){"use strict";var s=o.sr,A=o.utils,_=o.parameterValidators,C={};function x(k,w,g){w=a.extend({},C,w,g);var M={},p=a(M),E={},b=w.controller;if(!b)throw"No controller (telerikReporting.reportViewerController) has been specified.";var L,D,I=[].concat(w.parameterEditors,o.parameterEditors),F=d,P=a(k),O=P.find(".trv-parameters-area-content"),U=P.find(".trv-error-message"),V=P.find(".trv-parameters-area-preview-button");V.text(s[V.text()]),V.attr("aria-label",s[V.attr("aria-label")]),V.on("click",function(Bn){Bn.preventDefault(),_e()&&Te()});var K=w.templates["trv-parameter"],X=!1!==w.parametersAreaVisible,me=w.enableAccessibility;function re(Bn,Xt){Bn.style.display=Xt?"none":""}function H(Bn){Bn?(V.prop("disabled",!1),V.removeClass("k-disabled")):(V.prop("disabled",!0),V.addClass("k-disabled"))}function q(Bn){U.text(Bn),(Bn?a.fn.addClass:a.fn.removeClass).call(P,"trv-error")}function _e(){var Bn=!0;return A.each(D,function(){return Bn=!this.Error}),Bn}function Ce(Bn){L={},D=Bn||[],function ge(){A.each(E,function(){this.hasOwnProperty("destroy")&&this.destroy()}),E={}}();var Xt,Ji=a("<div></div>");A.each(D,function(){try{this.value=_.validate(this,this.value)}catch(Fn){this.Error=this.Error||Fn}this.Error?this.Error=s.invalidParameter:L[this.id]=this.value,(this.isVisible||w.showHiddenParameters)&&(Xt=function te(Bn){var Xt=function de(){return a(K)}(),Ji=Xt.find(".trv-parameter-value"),En=Xt.find(".trv-parameter-title"),un=Xt.find(".trv-parameter-error"),Ki=Xt.find(".trv-parameter-error-message"),Fn=Xt.find(".trv-parameter-use-default input"),It=function z(Bn,Xt){var Ji;return A.each(I,function(){return this&&this.match(Bn,Xt)&&(Ji=this),!Ji}),Ji}(Bn,w.parameters&&w.parameters.editors?w.parameters.editors:null),Bt=A.escapeHtml(Bn.text),xt=!Bn.isVisible;xt&&(Bt+=" [<b>hidden</b>]"),En.html(Bt).attr("title",Bt),Ki.text(Bn.Error),(Bn.Error?a.fn.show:a.fn.hide).call(un);var wt=It.createEditor(Ji,{templates:w.templates,parameterChanged:function(pt,Lt){var tt=u.querySelector(".trv-pages-area .trv-error-message ul li."+pt.name);try{Lt=_.validate(pt,Lt),un.hide(),tt&&re(tt,!0),function Gt(Bn,Xt){if(delete Bn.Error,Bn.value=Xt,L[Bn.id]=Xt,F!==d?Bn.id in F&&(L[Bn.id]=Xt):L[Bn.id]=Xt,Oe(Bn),Bn.childParameters)sn(xe);else{var Ji=_e();if(H(Ji),Ji){var En=u.querySelector(".trv-pages-area .trv-error-message");V.is(":visible")&&En&&(En.textContent=s.tryReportPreview),xe()}}}(pt,Lt)}catch(Ne){tt&&re(tt,!1),pt.Error=Ne,pt.value=[],Ki.text(Ne),un.show(),H(!1)}finally{!function j(Bn){var Xt=E[Bn.id];!Xt||!me||Xt.setAccessibilityErrorState(Bn)}(pt)}},enableAccessibility:me});return E[Bn.id]=wt,wt.beginEdit(Bn),me&&!xt&&wt.addAccessibility(Bn),Fn.length>0&&(Fn.on("click",function(){var pt=a(this).is(":checked");pt?(delete L[Bn.id],delete F[Bn.id],Oe(Bn),sn(Mi)):(L[Bn.id]=Bn.value,F[Bn.id]=Bn.value),wt.enable(!pt),fe()}),null!==F?Bn.id in F||(Fn.prop("checked",!0),wt.enable(!1)):xt&&(Fn.prop("checked",!0),wt.enable(!1))),Xt}(this))&&Ji.append(Xt)}),F!==d&&(null===F?(F={},A.each(D,function(){this.isVisible?F[this.id]=this.value:delete L[this.id]})):A.each(D,function(){this.id in F||delete L[this.id]})),O.empty(),D.length>0&&(O.append(Ji.children()),me&&O.attr("aria-label","Parameters area. Contains "+D.length+" parameters.")),function se(){(!function ne(){var Bn=!0;return A.each(D,function(){return Bn=!this.isVisible||this.autoRefresh}),Bn}()?a.fn.addClass:a.fn.removeClass).call(P,"preview")}(),H(_e())}function Te(){b.setParameters(a.extend({},L)),b.previewReport(!1)}function fe(){M.parametersReady(L)}function xe(){fe(),function De(){for(var Bn=!0,Xt=D.length-1;Bn&&Xt>=0;Xt--){var Ji=D[Xt];Bn=Ji.id in L&&(!!Ji.autoRefresh||!Ji.isVisible)}return Bn}()&&Te()}function Oe(Bn){Bn.childParameters&&A.each(Bn.childParameters,function(Xt,Ji){var En=function Ut(Bn){if(D)for(var Xt=0;Xt<D.length;Xt++){var Ji=D[Xt];if(Ji.id===Bn)return Ji}return null}(Ji);En&&Oe(En),delete L[Ji],function Le(Bn){if(E){var Xt=E[Bn];Xt&&"function"==typeof Xt.clearPendingChange&&Xt.clearPendingChange()}}(Ji)})}function $n(Bn){if(!Bn||null===Bn)return!1;var Xt=!1;return A.each(Bn,function(){return!(Xt=this.isVisible)}),Xt}!function J(){!function Q(Bn){var Xt=Bn.find(".trv-parameters-area-preview-button");Xt&&(Xt.attr("aria-label",s[Xt.attr("aria-label")]),Xt.text(s[Xt.text()]))}(P)}();var xn=0;function mt(){xn++,P.addClass("trv-loading")}function ut(){xn>0&&0==--xn&&P.removeClass("trv-loading")}var Wt=!1;function sn(Bn){fn(b.loadParameters(L),Bn)}function fn(Bn,Xt){mt(),Bn.then(function(Ji){!function dn(Bn,Xt){(Wt=$n(Bn))||mi(!1),Ce(Bn),q(""),Wt&&X&&(mi(!0),me&&function Eo(){var Bn=P.prev(),Xt=P.find(".trv-parameters-area-content").attr("tabIndex");(w.parametersAreaPosition===o.ParametersAreaPositions.TOP||w.parametersAreaPosition===o.ParametersAreaPositions.LEFT)&&(Bn=P.next()),Bn.attr("aria-label",s.ariaLabelParametersAreaSplitter),Bn.attr("tabIndex",Xt)}()),b.updateUIInternal(),"function"==typeof Xt&&Xt(),ut()}(Ji,Xt)}).catch(function(Ji){ut(),xo(),P.hasClass("trv-hidden")||q(Ji),M.error(Ji)})}function nn(Bn,Xt){var Ji=function yi(Bn){var Xt;return Bn&&Bn.length&&(Xt=Bn[0]),"function"==typeof Xt?Xt:null}(Xt);return Ji?p.on(Bn,Ji):p.trigger(Bn,Xt),b}function Mi(){null===F&&(F=a.extend({},L)),fe()}function mi(Bn){var Xt=o[w.viewerSelector+"-parameters-splitter"],Ji=P.prev();(w.parametersAreaPosition===o.ParametersAreaPositions.TOP||w.parametersAreaPosition===o.ParametersAreaPositions.LEFT)&&(Ji=P.next()),Xt&&((Wt?a.fn.removeClass:a.fn.addClass).call(Ji,"trv-hidden"),Xt.toggle(".trv-parameters-area",Bn))}function xo(){Ce([])}return b.reloadParameters(function Ko(Bn,Xt){q(),O.empty(),fn(Xt,Mi)}).getParametersAreaState(function(Bn,Xt){var Ji=!1;D&&(Ji=$n(D)),Xt.enabled=Ji,Xt.visible=X}).setParametersAreaVisible(function(Bn,Xt){X=Xt.visible,mi(Xt.visible&&$n(D))}).beforeLoadReport(function(){xn=0,mt()}).error(ut).pageReady(function(){ut()}),a.extend(M,{allParametersValid:function(){return _e()},clear:function(){xo()},error:function(){return nn("pa.Error",arguments)},parametersReady:function(){return nn("pa.parametersReady",arguments)},setParameters:function(Bn){F=null===Bn?null:a.extend({},Bn)}}),M}var f="telerik_ReportViewer_ParametersArea";a.fn[f]=function(k,w){return A.each(this,function(){a.data(this,f)||a.data(this,f,new x(this,k,w))})}}(n,e,window,document),function(o,a,l,u,d){"use strict";if(!o.utils)throw"Missing telerikReporting.utils";o.uiController=function A(_){var C={ExportInProgress:1,PrintInProgress:2,RenderInProgress:4};function R(P){return 0!=(w&P)}function x(P,O){O?w|=P:w&=~P}var g,f=_.controller,k=_.history,w=0,M=_.commands;if(!f)throw"No controller (telerikReporting.ReportViewerController) has been specified.";function L(){g||(g=!0,l.setTimeout(function(){try{!function D(){var P=f.reportSource(),O=f.pageCount(),U=f.currentPageNumber(),V=P&&P.report,K=V&&O>0,X=K&&U<O,me=K&&U>1,J=K&&U,Q=function p(){var P={};return f.getDocumentMapState(P),P}(),re=function E(){var P={};return f.getParametersAreaState(P),P}(),de=function b(){var P={};return f.getSearchDialogState(P),P}(),te=function I(){var P={};return f.getSendEmailDialogState(P),P}(),j=R(C.RenderInProgress),H=R(C.PrintInProgress),z=R(C.ExportInProgress);M.goToFirstPage.enabled(me),M.goToPrevPage.enabled(me),M.stopRendering.enabled(V&&j),M.goToLastPage.enabled(X),M.goToNextPage.enabled(X),M.goToPage.enabled(K),M.print.enabled(K&&!j&&!H),M.export.enabled(K&&!j&&!z),M.refresh.enabled(V),M.historyBack.enabled(k&&k.canMoveBack()),M.historyForward.enabled(k&&k.canMoveForward()),M.toggleDocumentMap.enabled(V&&Q.enabled).checked(Q.enabled&&Q.visible),M.toggleParametersArea.enabled(V&&re.enabled).checked(re.enabled&&re.visible),M.togglePrintPreview.enabled(K).checked(f.viewMode()==o.ViewModes.PRINT_PREVIEW),M.pageMode.enabled(K).checked(f.pageMode()==o.PageModes.CONTINUOUS_SCROLL),M.zoom.enabled(J),M.zoomIn.enabled(J),M.zoomOut.enabled(J),M.toggleZoomMode.enabled(J),M.toggleSearchDialog.enabled(K).checked(de.visible),M.toggleSendEmailDialog.enabled(K).checked(te.visible),f.updateUI(null),f.pageNumberChange(U),f.pageCountChange(O)}()}finally{g=!1}},10))}f.scale(function(P,O){M.toggleZoomMode.checked(O.scaleMode===o.ScaleModes.FIT_PAGE||O.scaleMode===o.ScaleModes.FIT_PAGE_WIDTH)}),f.currentPageChanged(L),f.beforeLoadReport(function(){x(C.RenderInProgress,!0),L()}),f.reportLoadProgress(L),f.reportLoadComplete(function(){x(C.RenderInProgress,!1),L()}),f.reportSourceChanged(L),f.viewModeChanged(L),f.pageModeChanged(function(){L()}),f.setParametersAreaVisible(L),f.setDocumentMapVisible(L),f.setUIState(function(P,O){x(C[O.operationName],O.inProgress),L()}),f.error(function(){x(C.ExportInProgress,!1),x(C.PrintInProgress,!1),x(C.RenderInProgress,!1),L()}),f.updateUIInternal(L),f.setSearchDialogVisible(L),f.setSendEmailDialogVisible(L),f.renderingStopped(function(){x(C.RenderInProgress,!1),L()}),L()}}(n,0,window,document),function(o,a,l,u){"use strict";var d=o.utils;if(!d)throw"Missing telerikReporting.utils";o.HistoryManager=function(s){var A=s.controller;if(!A)throw"No controller (telerikReporting.reportViewerController) has been specified.";var C=s.settings,R=C.history()||{records:[],position:-1};function x(){var I=R.records;return I.length>0?I[R.position]:null}function k(){C.history(R)}function g(I){!function b(){for(var I=R.records.length-1;I>=0&&!0===R.records[I].temp;)R.records.splice(I,1),R.position>=I&&R.position--,I--}();var L=x(),D=A.reportSource();(!L||!d.reportSourcesAreEqual(L.reportSource,D))&&function f(I){var L=R.records;(L=Array.prototype.slice.call(L,0,R.position+1)).push(I),R.records=L,R.position=L.length-1,k()}({reportSource:D,pageNumber:1,temp:I})}function M(I){A.setViewMode(I.viewMode),A.reportSource(I.reportSource),A.refreshReport(!1,I.reportDocumentId),A.navigateToPage(I.pageNumber)}function p(I){var F=R.position+I;return 0<=F&&F<R.records.length}function E(I){var L=R.position,D=R.records.length,F=L+I;F<0?F=0:F>=D&&(F=D-1),F!=L&&(R.position=F,k(),M(x()))}return A.onLoadedReportChange(function(){g(!0)}).currentPageChanged(function(){!function w(){var I=x();I&&(I.pageNumber=A.currentPageNumber(),I.viewMode=A.viewMode(),I.reportDocumentId=A.reportDocumentIdExposed(),k())}()}).reportLoadComplete(function(I,L){g(!1)}).clientExpired(function(){for(var I=R.records,L=0;L<I.length;L++)I[L].reportDocumentId=null}),{back:function(){E(-1)},forward:function(){E(1)},canMoveBack:function(){return p(-1)},canMoveForward:function(){return p(1)},loadCurrent:function(){var I=x();return I&&M(I),!!I}}}}(n,window,document),function(o,a,l,u,d){"use strict";if(!o.utils)throw"Missing telerikReporting.utils";var A={};A[o.ScaleModes.FIT_PAGE]={scaleMode:o.ScaleModes.FIT_PAGE_WIDTH},A[o.ScaleModes.FIT_PAGE_WIDTH]={scaleMode:o.ScaleModes.SPECIFIC,scale:1},A[o.ScaleModes.SPECIFIC]={scaleMode:o.ScaleModes.FIT_PAGE};var _=[.1,.25,.5,.75,1,1.5,2,4,8];function R(x){var f=!0,k=!1,w={enabled:function(g){return 0===arguments.length?f:(f=!!g,a(this).trigger("enabledChanged"),w)},checked:function(g){return 0===arguments.length?k:(k=!!g,a(this).trigger("checkedChanged"),w)},exec:x};return w}o.CommandSet=function C(x){var f=x.controller;if(!f)throw"No options.controller.";var k=x.history;if(!k)throw"No options.history.";return{historyBack:new R(function(){k.back()}),historyForward:new R(function(){k.forward()}),stopRendering:new R(function(){f.stopRendering()}),goToPrevPage:new R(function(){f.navigateToPage(f.currentPageNumber()-1)}),goToNextPage:new R(function(){f.navigateToPage(f.currentPageNumber()+1)}),goToFirstPage:new R(function(){f.navigateToPage(1)}),goToLastPage:new R(function(){f.navigateToPage(f.pageCount())}),goToPage:new R(function(L){if(!isNaN(L)){var D=f.pageCount();return L>D?L=D:L<1&&(L=1),f.navigateToPage(L),L}}),refresh:new R(function(){f.refreshReport(!0)}),export:new R(function(L){L&&f.exportReport(L)}),print:new R(function(){f.printReport()}),pageMode:new R(function(){f.pageMode(f.pageMode()===o.PageModes.SINGLE_PAGE?o.PageModes.CONTINUOUS_SCROLL:o.PageModes.SINGLE_PAGE)}),togglePrintPreview:new R(function(){f.viewMode(f.viewMode()===o.ViewModes.PRINT_PREVIEW?o.ViewModes.INTERACTIVE:o.ViewModes.PRINT_PREVIEW)}),toggleDocumentMap:new R(function(){var L;f.setDocumentMapVisible({visible:(L={},f.getDocumentMapState(L),!L.visible)})}),toggleParametersArea:new R(function(){var L;f.setParametersAreaVisible({visible:(L={},f.getParametersAreaState(L),!L.visible)})}),zoom:new R(function(L){var D={};D.scale=L,D.scaleMode=o.ScaleModes.SPECIFIC,f.scale(D)}),zoomIn:new R(function(){b(1)}),zoomOut:new R(function(){b(-1)}),toggleSideMenu:new R(function(){var L;f.setSideMenuVisible({visible:(L={},f.getSideMenuVisible(L),!L.visible)})}),toggleZoomMode:new R(function(L){var D={};f.getScale(D),f.scale(A[D.scaleMode])}),toggleSearchDialog:new R(function(){var L;f.setSearchDialogVisible({visible:(L={},f.getSearchDialogState(L),!L.visible)})}),toggleSendEmailDialog:new R(function(){var L;f.setSendEmailDialogVisible({visible:(L={},f.getSendEmailDialogState(L),!L.visible)})})};function b(L){var D={};f.getScale(D),D.scale=function I(L,D){for(var F=-1,P=_.length,O=0;O<P;O++){var U=_[O];if(L<U){F=O-.5;break}if(L===U){F=O;break}}return F+=D,(F=D>=0?Math.round(F-.49):Math.round(F+.49))<0?F=0:F>P-1&&(F=P-1),_[F]}(D.scale,L),D.scaleMode=o.ScaleModes.SPECIFIC,f.scale(D)}}}(n,e,window,document),function(o,a,l,u,d){"use strict";var s=o.sr;if(!s)throw"Missing telerikReportViewer.sr";var _,C,A=o.utils;if(!A)throw"Missing telerikReporting.utils";function R(f,k,w){var de,g=a.extend({},k,w),M=a(f).data("kendoMenu"),p=f.childNodes,E=g.controller,b=g.enableAccessibility;if(!E)throw"No controller (telerikReporting.ReportViewerController) has been specified.";function F(_e){var ge=a(_e.item);M.unbind("open",F),M.append({text:s.loadingFormats,spriteCssClass:"k-icon k-loading"},ge),E.getDocumentFormats().then(P).then(function(){M.open(ge)}).then(function(){M.bind("open",F)})}function P(_e){A.each(a(f).find("ul[data-command-list=export-format-list]"),function(){var ge=a(this),Ce=ge.parents("li"),Te=b?Ce.attr("tabindex"):-1;Te||(Te=1),ge.empty(),A.each(_e,function(){var xe="<li "+(b?A.stringFormat('aria-label="{localizedName}" ',this):" ")+A.stringFormat('tabindex="'+Te+'"><a tabindex="-1" href="#" data-command="telerik_ReportViewer_export" data-command-parameter="{name}"><span>{localizedName}</span></a></li>',this);M.append(xe,Ce)}),b&&function O(_e){A.each(_e,function(){var ge=a(this);ge.off("keydown"),ge.on("keydown",function(Ce){switch(Ce.which){case kendo.keys.ENTER:U(ge);break;case kendo.keys.UP:var Te=ge.prev();Te.length>0?Te.focus():ge.parents("li").focus();break;case kendo.keys.DOWN:var De=ge.next();De.length>0?De.focus():ge.parent().children("li").first().focus()}})})}(Ce.find("li"))})}function U(_e){if(q(_e))!function V(){a("[data-role='telerik_ReportViewer_MainMenu']").data("kendoMenu").open("#trv-main-menu-export-command")}();else if(_e&&_e.length>0){var ge=_e.children("a");ge.length>0&&ge.click()}}function K(_e){!function me(_e){_&&_.is(_e)&&l.setTimeout(function(){var ge=_e.find("li");ge.length>0&&ge[0].focus()},100)}(a(_e.item))}function X(_e){C=d}function J(_e){switch(_e.which){case kendo.keys.ENTER:if(!b){var ge=Q();ge.length>0&&(q(ge)&&C&&(ge=C),U(ge))}break;case kendo.keys.RIGHT:b?function re(){var _e=Q();if(_e&&!(!_e.length>0)){var ge=_e.next();"none"==ge.css("display")&&(ge=ge.next()),!ge.length>0&&(ge=a(p).filter("li.k-item").first()),ge.focus()}}():function te(){var _e=M.element.children("li.k-item"),ge=_e.filter(".k-focus");if(kendo.version>="2017.3.913")de=ge;else if(ge.hasClass("k-disabled"))if(!de||ge.is(de)){var Ce=ge.next();!Ce.length>0&&(Ce=_e.first()),ge.toggleClass("k-focus"),Ce.toggleClass("k-focus"),de=Ce,M._oldHoverItem=Ce}else de=ge;else M._oldHoverItem=ge,de=ge}();break;case kendo.keys.LEFT:b?function j(){var _e=Q();if(_e&&!(!_e.length>0)){var ge=_e.prev();"none"==ge.css("display")&&(ge=ge.prev()),!ge.length>0&&(ge=a(p).filter("li.k-item").last()),ge.focus()}}():function H(){var _e=M.element.children("li.k-item.k-focus");de=_e}();break;case kendo.keys.DOWN:case kendo.keys.UP:b||(C=function z(){var _e=M.element.find('li.k-item.k-focus [data-command="telerik_ReportViewer_export"]');return 1===_e.length?_e.parent("li"):d}())}}function Q(){var _e,ge=u.activeElement;if(ge&&"li"==ge.localName)for(var Ce=a(p).filter("li.k-item"),Te=0;Te<Ce.length;Te++){var De=Ce[Te];if(ge===De){_e=a(De);break}}else ge&&"input"==ge.localName?_e=a(ge).closest("li.k-item"):0===(_e=M.element.children("li.k-item.k-focus")).length&&(_e=M.element.children("li.k-item").first());return _e}function q(_e){if(0!==_e.length){var ge=_e.attr("id");return"trv-main-menu-export-command"==ge||"trv-side-menu-export-command"==ge}}M||function I(){try{M=a(f).kendoMenu().data("kendoMenu")}catch(_e){throw console.error("Instantiation of Kendo Menu as Main Menu threw an exception",_e),_e}M.bind("open",F),M.bind("activate",K),M.bind("deactivate",X),M.element.off("keydown",J),M.element.on("keydown",J),g.enableAccessibility&&function L(){var _e=a.find('[data-role="telerik_ReportViewer_MainMenu"]');A.each(_e,function(){var ge=a(this),Ce=ge.find("li"),Te=0,De=ge.attr("tabIndex");De&&(!(Te=A.tryParseInt(De))||isNaN(Te))&&(Te=0),function D(_e,ge){A.each(_e,function(){var Ce=a(this);Ce.attr("tabindex",ge),Ce.focus(function(){Ce.addClass("k-focus")}),Ce.blur(function(){Ce.removeClass("k-focus")});var Te=Ce.children("a");if(Te.length>0){var De=a(Te);De.attr("tabindex",-1),Ce.attr("title",De.attr("title"))}Ce.off("keydown"),Ce.on("keydown",function(fe){fe.which==kendo.keys.ENTER&&(U(Ce),_=Ce)})})}(Ce,Te);var fe=Ce.find('input[data-role="telerik_ReportViewer_PageNumberInput"]');fe.length>0&&fe.attr("tabindex",Te)})}(),function se(){var _e=function ne(){return A.findElement("ul[data-role=telerik_ReportViewer_MainMenu]")}();_e&&A.each(_e,function(){var ge=a(this),Ce=ge.children("li.k-item");ge.attr("aria-label",s[ge.attr("aria-label")]),A.each(Ce,function(){var Te=a(this);if(Te.attr("aria-label",s[Te.attr("aria-label")]),Te.hasClass("trv-report-pager"))Te.attr("title",s[Te.attr("title")]);else{var De=Te.find("a");De&&De.attr("title",s[De.attr("title")])}})})}()}(),E.reportLoadComplete(function(_e,ge){b||M&&M._oldHoverItem&&M._oldHoverItem.toggleClass("k-focus")})}var x="telerik_ReportViewer_MainMenu";a.fn[x]=function(f,k){return A.each(this,function(){a.data(this,x)||a.data(this,x,new R(this,f,k))})}}(n,e,window,document),function(o,a,l,u,d){"use strict";var s=o.sr;if(!s)throw"Missing telerikReportViewer.sr";var A=o.utils;if(!A)throw"Missing telerikReporting.utils";function _(R,x,f){var E,k=a.extend({},x,f),w=a(R).data("kendoMenu"),g=k.enableAccessibility,p=3,I=!1,L=k.controller;if(!L)throw"No controller (telerikReporting.ReportViewerController) has been specified.";function P(te){var j=a(te.item);E.unbind("expand",P),E.append({text:s.loadingFormats,spriteCssClass:"k-icon k-loading"},j),k.controller.getDocumentFormats().then(O).then(function(){E.expand(j)}).then(function(){E.bind("expand",P)})}function O(te){A.each(a(R).find("ul[data-command-list=export-format-list]"),function(){var j=a(this),H=j.parents("li"),z=H.attr("tabindex");z||(z=p),j.empty(),A.each(te,function(q){var _e="<li "+(g?A.stringFormat('aria-label="{localizedName}" ',this):" ")+A.stringFormat('tabindex="'+z+'"><a tabindex="-1" href="#" data-command="telerik_ReportViewer_export" data-command-parameter="{name}"><span>{localizedName}</span></a></li>',this);E.append(_e,H)}),X(H.find("li"),z),V(H)})}function V(te){A.each(te.find("li"),function(){0===a(this).children("ul").length&&a(this).children("a").click(function(){L.setSideMenuVisible({visible:!I})})})}function X(te,j){te.attr("tabindex",j);var H=te.find("li");A.each(H,function(){var z=a(this);z.attr("tabindex",j);var q=z.children("a");q.length>0&&a(q).attr("tabindex",-1),z.focus(function(){var ne=z.children("a");ne.length>0&&ne.addClass("k-focus")}),z.blur(function(){var ne=z.children("a");ne.length>0&&ne.removeClass("k-focus")}),z.off("keydown",J),z.on("keydown",J)})}function me(te){if(te.which==kendo.keys.ENTER){var j,H=!1,z=u.activeElement;if(z&&"li"==z.localName)for(var q=E.element.find("li.k-item"),se=0;se<q.length;se++){var ne=q[se];if(z===ne){j=a(ne),H=!0;break}}else j=E.select();if(!j||!j.length>0)return;Q(j,H)}}function J(te){te.which==kendo.keys.ENTER&&Q(a(te.target),!1)}function Q(te,j){if(!(!te.length>0))if(0===te.children("ul").length){var z=te.find("a");z.length>0&&z[0].click()}else j&&(te.hasClass("k-active")?E.collapse(te):E.expand(te))}w||function D(te){var j=a(te);try{E=j.children("ul").kendoPanelBar().data("kendoPanelBar")}catch(H){throw console.error("Instantiation of Kendo PanelBar as side menu threw an exception",H),H}E.bind("expand",P),E.element.off("keydown",me),E.element.on("keydown",me),function K(te){te&&X(te.children("ul"),te.attr("tabindex")||p)}(j),V(j),j.click(function(H){H.target==te&&L.setSideMenuVisible({visible:!I})}),function re(){var te=function de(){return A.findElement("div[data-role=telerik_ReportViewer_SideMenu] > ul")}();te&&A.each(te,function(){var j=a(this),H=j.children("li.k-panelbar-header");j.attr("aria-label",s[j.attr("aria-label")]),A.each(H,function(){var z=a(this),q=z.find("a");if(z.attr("aria-label",s[z.attr("aria-label")]),q){var se=q.find("span:not(.k-icon)");q.attr("title",s[q.attr("title")]),se&&se.text(s[se.text()])}})})}()}(R),L.setSideMenuVisible(function(te,j){(function F(){var te=E.element.parent();te.position().left<0||!te.is(":visible")?te.show():l.setTimeout(function(){te.hide()},500)})(),g&&E.element.focus(),(I=j.visible)||E.collapse(a("#trv-side-menu-export-command"))}).getSideMenuVisible(function(te,j){j.visible=I})}var C="telerik_ReportViewer_SideMenu";a.fn[C]=function(R,x){return A.each(this,function(){a.data(this,C)||a.data(this,C,new _(this,R,x))})}}(n,e,window,document),function(o,a,l,u,d){"use strict";var s=o.utils;if(!s)throw"Missing telerikReportViewer.utils";function R(M,p){var E,b=a(M),I=b.attr("data-command");I&&(E=p.commands[I]),E&&(b.click(function(L){E.enabled()?E.exec(a(this).attr("data-command-parameter")):L.preventDefault()}),a(E).on("enabledChanged",function(L){(E.enabled()?a.fn.removeClass:a.fn.addClass).call(b,"disabled")}).on("checkedChanged",function(L){(E.checked()?a.fn.addClass:a.fn.removeClass).call(b,"checked")}))}o.binder={bind:function(M){var p=Array.prototype.slice.call(arguments,1);!function A(M,p){var E=p[0].commands,b=p[1],I='[data-command^="telerik_ReportViewer_"]',L="[data-target-report-viewer]"+I;M.on("click",I,function D(P){var O=a(this).attr("data-command");if(O){var U=O.substring(21),V=E[U];V&&V.enabled()&&V.exec(a(this).attr("data-command-parameter")),P.preventDefault()}}),o.GlobalSettings.CommandHandlerAttached||(a(u.body).on("click",L,function F(P){var O=a(this),U=O.attr("data-command"),V=O.attr("data-target-report-viewer");if(U&&V){var K=U.substring(21),me=a(V).data("telerik_ReportViewer").commands[K];me.enabled()&&me.exec(a(this).attr("data-command-parameter")),P.preventDefault()}}),o.GlobalSettings.CommandHandlerAttached=!0),s.each(E,function(P,O){!function _(M,p,E,b){if(p){var I='[data-command="telerik_ReportViewer_'+M+'"]',L='[data-target-report-viewer="'+E.selector+'"]'+I,D=b.find(I),F=a(L);a(p).on("enabledChanged",function(P){(p.enabled()?a.fn.removeClass:a.fn.addClass).call(D.parent("li"),"k-disabled"),(p.enabled()?a.fn.removeClass:a.fn.addClass).call(F,E.disabledButtonClass)}).on("checkedChanged",function(P){var O=D.parent("li");(p.checked()?a.fn.addClass:a.fn.removeClass).call(O,function C(M){return M.hasClass("trv-menu-toggleable")?"k-selected !k-bg-primary":"k-selected"}(O)),(p.checked()?a.fn.addClass:a.fn.removeClass).call(F,E.checkedButtonClass)})}}(P,O,b,M)})}(M,p);var E=s.selector('[data-role^="telerik_ReportViewer_"]');s.each(E,function(){var b=a(this),I=a.fn[b.attr("data-role")];"function"==typeof I&&I.apply(b,p)})}};var x="telerik_ReportViewer_LinkButton";function f(M,p){var E=a(M),b=0,I=p.commands.goToPage;function L(F){(b!==F||!E.is(":focus"))&&(E.val(F),b=F)}p.controller.pageNumberChange(function(F,P){L(P)}),E.change(function(){var F=a(this).val(),P=s.tryParseInt(F);isNaN(P)||L(I.exec(P))}),E.keydown(function(F){if(13==F.which)return a(this).change(),F.preventDefault()}),E.keypress(function(F){return!!s.isSpecialKey(F.keyCode)||function D(F){return/^([0-9]+)$/.test(F)}(E.val()+String.fromCharCode(F.charCode))}).on("paste",function(F){})}a.fn[x]=function(M){return s.each(this,function(){a.data(this,x)||a.data(this,x,new R(this,M))})};var k="telerik_ReportViewer_PageNumberInput";function w(M,p){var E=a(M);p.controller.pageCountChange(function(b,I){E.text(I)})}a.fn[k]=function(M){return s.each(this,function(){a.data(this,k)||a.data(this,k,new f(this,M))})};var g="telerik_ReportViewer_PageCountLabel";a.fn[g]=function(M){return s.each(this,function(){a.data(this,g)||a.data(this,g,new w(this,M))})}}(n,e,window,document),function(o,a,l,u){"use strict";o.PerspectiveManager=function(d,s){var C,A=!!d.querySelectorAll&&d.querySelectorAll(".trv-menu-small")[0],_={small:{documentMapVisible:!1,parametersAreaVisible:!1,onDocumentMapVisibleChanged:function(V,K){K.visible&&s.setParametersAreaVisible({visible:!1})},onParameterAreaVisibleChanged:function(V,K){K.visible&&s.setDocumentMapVisible({visible:!1})},onBeforeLoadReport:function(){s.setParametersAreaVisible({visible:!1}),s.setDocumentMapVisible({visible:!1})},onNavigateToPage:function(){s.setParametersAreaVisible({visible:!1}),s.setDocumentMapVisible({visible:!1})}},large:{documentMapVisible:!0,parametersAreaVisible:!0}};function x(V){var K=D();if(K!==C){var X=_[C],me=_[K];C=K,V&&V.call(void 0,X,me),function P(V){O(V.documentMapVisible),U(V.parametersAreaVisible)}(me)}}function f(V,K){b("onDocumentMapVisibleChanged",arguments)}function k(V,K){b("onParameterAreaVisibleChanged",arguments)}function w(){b("onBeforeLoadReport",arguments)}function g(){b("onNavigateToPage",arguments)}function M(){b("onReportLoadComplete",arguments)}function p(){x(function(V,K){F(V)})}function E(){x(null)}function b(V,K){var X=_[C],me=X[V];"function"==typeof me&&me.apply(X,K)}function D(){var V=$(a).width()/parseFloat($("body").css("font-size"));return A&&V<=40.5?"small":"large"}function F(V){V.documentMapVisible=O(),V.parametersAreaVisible=U()}function O(){if(0===arguments.length){var V={};return s.getDocumentMapState(V),V.visible}return s.setDocumentMapVisible({visible:!!arguments[0]}),this}function U(){if(0===arguments.length){var V={};return s.getParametersAreaState(V),V.visible}return s.setParametersAreaVisible({visible:!!arguments[0]}),this}return function R(){C=D(),F(_.large)}(),{attach:function I(){a.addEventListener("resize",p),s.setDocumentMapVisible(f),s.setParametersAreaVisible(k),s.beforeLoadReport(w),s.navigateToPage(g),s.reportLoadComplete(M),s.cssLoaded(E)},dispose:function L(){a.removeEventListener("resize",p)}}}}(n,window,document),function(o,a,l,u,d){"use strict";var s=o.sr;if(!s)throw"Missing telerikReportViewer.sr";var A=o.utils;if(!A)throw"Missing telerikReportViewer.utils";var _={};o.accessibility=function C(R){var x,k,w,f=!1,g={CONFIRM_KEY:13,CONTENT_AREA_KEY:67,DOCUMENT_MAP_AREA_KEY:68,MENU_AREA_KEY:77,PARAMETERS_AREA_KEY:80};if(R=a.extend({},_,R),!(x=R.controller))throw"No controller (telerikReporting.ReportViewerController) has been specified.";function p(){k||(function L(){(k={})[g.DOCUMENT_MAP_AREA_KEY]=function F(){return A.findElement(["div[data-role=telerik_ReportViewer_DocumentMapArea]","div[data-role=treeview]"])}(),k[g.MENU_AREA_KEY]=function P(){return A.findElement("ul[data-role=telerik_ReportViewer_MainMenu]")}(),k[g.CONTENT_AREA_KEY]=D();var re=function O(){return A.findElement(["div[data-role=telerik_ReportViewer_ParametersArea]","div.trv-parameters-area-content"])}();re&&(k[g.PARAMETERS_AREA_KEY]=re,function V(re){if(0!==re.length){var de=re.parent("div[data-role=telerik_ReportViewer_ParametersArea]");K(de)&&A.each(re.children(),function(){a(this).keydown(function(te){te.which==g.CONFIRM_KEY&&(de.find("button.trv-parameters-area-preview-button").focus(),te.preventDefault())})})}}(re))}(),a(u.body).off("keydown",U),a(u.body).on("keydown",U))}function D(){return A.findElement(["div[data-role=telerik_ReportViewer_PagesArea]"])}function U(re){if(k&&re.altKey&&re.ctrlKey){var de=k[re.which];if(de&&K(de.parent())){var te="k-focus";w&&w.removeClass(te),de.addClass(te),de.focus(),w=de,re.preventDefault()}}}function K(re){return re&&!(re.hasClass("k-collapsed")||re.hasClass("trv-hidden"))}return x.reportLoadComplete(function M(re,de){p();var te=D();te.length>0&&te.focus()}).pageReady(function(re,de){(function b(re){re&&(p(),function X(re){if(re){var de=re.find("div [data-reporting-action]");!de.length>0||A.each(de,function(){var te=a(this);te.keydown(function(j){j.which==g.CONFIRM_KEY&&te.click()})})}}(k[g.CONTENT_AREA_KEY]))})(de),f=!0}).error(function(re,de){(function E(){var de=A.findElement(["div.trv-pages-area","div.trv-error-message"]);0!==de.length&&(de.attr("tabIndex",0),de.focus())})(),l.setTimeout(p,500)}).updateUI(function(re){f&&(function I(){var re=a(".trv-report-pager");if(re.length>0){var de=x.currentPageNumber(),te=x.pageCount();A.each(re,function(){var j=a(this);j.attr("aria-label",A.stringFormat(s.ariaLabelPageNumberSelector,[de,te]));var H=j.find("input[data-role=telerik_ReportViewer_PageNumberInput]");H.length>0&&A.each(H,function(){var z=a(this);z.attr("aria-label",s.ariaLabelPageNumberEditor),z.attr("min","1"),z.attr("max",""+te)})})}}(),function me(){var re=k[g.MENU_AREA_KEY];re&&A.each(re,function(){var te=a(this).children("li.k-item");A.each(te,function(){var j=a(this);if(!j.hasClass("trv-report-pager")){var H=j.attr("aria-label"),z=A.stringFormat(". {0}",[s.ariaLabelExpandable]),q=j.find("ul").length>0&&H.indexOf(z)<0?z:"",se=A.stringFormat(". {0}",[s.ariaLabelSelected]),ne=j.hasClass("k-selected")&&H.indexOf(se)<0?se:"";j.attr("aria-label",H+q+ne),j.hasClass("k-disabled")?j.attr("aria-disabled","true"):j.removeAttr("aria-disabled")}})})}())}),{getKeyMap:function Q(){return g},setKeyMap:function J(re){g=re,k=void 0}}}}(n,e,window,document),function(o,a,l,u,d){"use strict";var s=o.sr;if(!s)throw"Missing telerikReportViewer.sr";var A=o.utils;if(!A)throw"Missing telerikReportViewer.utils";var _={};function C(x,f,k){var p,E,b,I,L,D,F,P,O,U,V,K,X,me,J,Q,de,te,j,H,z,w=(f=a.extend({},_,f)).controller,g=!1,M=!1,re=[],q=a("[data-selector='"+k.viewerSelector+"']").find(".trv-report-viewer"),se="",ne={shadedClassName:"trv-search-dialog-shaded-result",highlightedClassName:"trv-search-dialog-highlighted-result",current:null,elements:[]};if(!w)throw"No controller (telerikReporting.ReportViewerController) has been specified.";function _e(){te||(Ce(!1),j=!1)}function Ce(wt){M=wt,wt?(j=!0,function Te(){if(!g){p=a(x),E=p.find(".trv-search-dialog-input-box"),O=p.find(".trv-search-dialog-results-label"),U=p.find(".trv-search-dialog-results-area"),function An(){try{U.kendoListView({selectable:!0,navigatable:!0,dataSource:{},contentElement:"",template:"<div class='trv-search-dialog-results-row'><span>#: description #</span> <span class='trv-search-dialog-results-pageSpan'>"+s.searchDialogPageText+" #:page#</span></div>",change:function(){var wt=this.select().index(),Mt=this.dataSource.view();(function Bn(wt){wt&&(ne.current&&(ne.current.removeClass(ne.highlightedClassName),ne.current.addClass(ne.shadedClassName)),wt.page===w.currentPageNumber()?Ko(wt):w.pageMode()!==o.PageModes.CONTINUOUS_SCROLL?Ji():Ko(wt),H=wt,w.navigateToPage(wt.page,{type:"search",id:wt.id}))})(Mt[wt]),Xt(wt,Mt.length)}})}catch(wt){throw console.error("Instantiation of Kendo ListView as search result area threw an exception",wt),wt}}(),function Fn(wt){if(wt){var Mt=wt.find(".trv-search-dialog-caption-label"),pt=wt.find(".trv-search-dialog-search-options"),Lt=wt.find("a[data-command='telerik_ReportViewer_searchDialog_StopSearch']"),tt=wt.find("a[data-command='telerik_ReportViewer_searchDialog_MatchCase']"),Ne=wt.find("a[data-command='telerik_ReportViewer_searchDialog_MatchWholeWord']"),vt=wt.find("a[data-command='telerik_ReportViewer_searchDialog_UseRegex']"),ln=wt.find("a[data-command='telerik_ReportViewer_searchDialog_NavigateUp']"),jn=wt.find("a[data-command='telerik_ReportViewer_searchDialog_NavigateDown']");Bt(wt,"aria-label"),Bt(pt,"aria-label"),function It(wt){wt&&wt.text(s[wt.text()])}(Mt),oi(Lt),oi(tt),oi(Ne),oi(vt),oi(ln),oi(jn)}}(p);try{b=p.find(".trv-search-dialog-search-options").kendoMenu(),L=p.find(".trv-search-dialog-stopsearch-placeholder").kendoMenu(),F=p.find(".trv-search-dialog-navigational-buttons").kendoMenu()}catch(wt){throw console.error("Instantiation of Kendo Menu for Search Dialog threw an exception",wt),wt}I=b.data("kendoMenu"),D=L.data("kendoMenu"),P=F.data("kendoMenu"),I.element.on("keydown",fe),D.element.on("keydown",fe),P.element.on("keydown",fe),function De(wt){for(var Mt=a(wt).find(".k-menu-item"),pt=0;pt<Mt.length;pt++)a(Mt[pt]).removeClass("k-item")}(".trv-search-dialog-search-options");try{V=E.kendoComboBox({dataTextField:"value",dataValueField:"value",dataSource:re,contentElement:"",change:dn,ignoreCase:!1,filtering:Wt,filter:"startswith",delay:1e3,open:function(wt){de&&wt.preventDefault()},select:Le}).data("kendoComboBox")}catch(wt){throw console.error("Instantiation of Kendo ComboBox as search input threw an exception",wt),wt}try{K=q.find(".trv-search-window").kendoWindow({title:s.searchDialogTitle,height:390,width:310,minWidth:310,minHeight:390,maxHeight:700,scrollable:!1,close:function(){xe(),se=""},open:function(){Oe()},deactivate:function(){w.setSearchDialogVisible({visible:!1})},activate:function(){V.input.focus()}}).data("kendoWindow")}catch(wt){throw console.error("Instantiation of Kendo Window for Search dialog threw an exception",wt),wt}K.wrapper.addClass("trv-search"),function Ut(){me={searchDialog_MatchCase:new xt(function(){xn(this)}),searchDialog_MatchWholeWord:new xt(function(){xn(this)}),searchDialog_UseRegex:new xt(function(){xn(this)})};var wt=o.binder;wt.bind(b,{controller:w,commands:me},k),X=new xt(function(){!function $n(){mt(!1)}()}),wt.bind(L,{controller:w,commands:{searchDialog_StopSearch:X}},k),J={searchDialog_NavigateUp:new xt(function(){En(-1)}),searchDialog_NavigateDown:new xt(function(){En(1)})},wt.bind(F,{controller:w,commands:J},k)}(),g=!0}}(),K.open(),V.value(""),nn(null),Ki(!1,null)):(Ji(),K&&K.options.visible&&K.close())}function fe(wt){var Mt=a(wt.target).find(".k-focus");if(13===wt.keyCode&&Mt&&Mt.length>0){var pt=Mt.children("a");pt.length>0&&pt.click()}}function xe(){var wt=K.element.parent(".k-window");z=wt.offset()}function Oe(){var wt=a(l).innerWidth(),Mt=a(l).innerHeight(),pt=K.wrapper,Lt=pt.outerWidth(!0),tt=pt.outerHeight(!0);if(z){var ln=z.left,jn=z.top,go=jn+tt;ln+Lt>wt-10&&(ln=Math.max(10,wt-Lt-10),pt.css({left:ln}),K.setOptions({position:{left:ln}})),go>Mt-10&&(jn=Math.max(10,Mt-tt-10),pt.css({top:jn}),K.setOptions({position:{top:jn}}))}else{var vt=q[0].getBoundingClientRect();pt.css({top:vt.top+10,left:vt.right-Lt-10}),K.setOptions({position:{top:vt.top+10,left:vt.right-Lt-10}})}}function Le(wt){if(l.event||l.event.type){var Mt=l.event;"keydown"===Mt.type&&(wt.preventDefault(),40===Mt.keyCode?En(1):38===Mt.keyCode&&En(-1))}}function xn(wt){wt.checked(!wt.checked()),function sn(){V&&fn(V.value())}()}function mt(wt){X.enabled(wt)}function ut(wt,Mt){M&&Eo(Q)}function Wt(wt){wt.preventDefault(),wt.filter&&wt.filter.value!==se&&fn(se=wt.filter.value)}function dn(wt){var Mt=wt.sender.value();Mt&&se!==Mt&&fn(se=Mt)}function fn(wt){(function yi(){O.text(s.searchDialogSearchInProgress),Ji(),Q=null,mt(!0),Ki(!1,null)})(),function Mi(wt){if(wt&&""!==wt){var Mt=re.filter(function(pt){return pt.value===wt});Mt&&Mt.length>0||(re.unshift({value:wt}),re.length>10&&re.pop(),de=!0,V.dataSource.data(re),V.select(function(pt){return pt.value===wt}),de=!1)}}(wt),w.getSearchResults({searchToken:wt,matchCase:me.searchDialog_MatchCase.checked(),matchWholeWord:me.searchDialog_MatchWholeWord.checked(),useRegex:me.searchDialog_UseRegex.checked()}).then(function(Mt){nn(Mt,null)}).catch(function(Mt){Mt&&nn(null,Mt)})}function nn(wt,Mt){mt(!1),Mt&&Ki(!0,Mt),function mi(wt){wt||(wt=[]),U.data("kendoListView").dataSource.data(wt)}(wt),Q=wt,wt&&wt.length>0?(Eo(wt),function xo(){var wt=U.data("kendoListView"),Mt=wt.element.children().first();wt.select(Mt),wt.trigger("change")}()):Xt(-1,0)}function Eo(wt){if(wt&&0!==wt.length){var Lt=p.parent().find(".trv-page-container").find("[data-search-id]");A.each(wt,function(){var tt=Lt.filter("[data-search-id="+this.id+"]");tt&&(tt.addClass(ne.shadedClassName),ne.elements.push(tt))}),Ko(H),H=null}}function Ko(wt){if(wt){var Mt=wt.id,pt=a(ne.elements.filter(function(tt){return tt.attr("data-search-id")===Mt})).first();if(pt&&(ne.current=pt[0],ne.current)){var Lt=a("[data-search-id='"+Mt+"']");Lt.removeClass(ne.shadedClassName),Lt.addClass(ne.highlightedClassName)}}}function Xt(wt,Mt){var pt=0===Mt?s.searchDialogNoResultsLabel:A.stringFormat(s.searchDialogResultsFormatLabel,[wt+1,Mt]);O.text(pt);var tt=wt<Mt-1;J.searchDialog_NavigateUp.enabled(wt>0),J.searchDialog_NavigateDown.enabled(tt)}function Ji(){ne.elements&&ne.elements.length>0&&A.each(ne.elements,function(){this.removeClass(ne.shadedClassName)}),ne.current&&ne.current.removeClass(ne.highlightedClassName),ne.elements=[],ne.current=null}function En(wt){var Mt=U.data("kendoListView"),pt=Mt.select();if(pt){var Lt=Mt.select().trigger("change").index(),tt=Mt.dataSource.view(),Ne=Math.min(tt.length-1,Math.max(0,Lt+wt));if(Ne!==Lt){var ln=Mt.element.find('[data-uid="'+tt[Ne].uid+'"]');ln&&(Mt.select(ln),Mt.trigger("change"),function un(wt,Mt){if(wt.offsetTop-wt.clientHeight<Mt.scrollTop)wt.scrollIntoView();else{var pt=wt.offsetTop+wt.offsetHeight;pt>Mt.scrollTop+Mt.offsetHeight&&(Mt.scrollTop=pt-Mt.offsetHeight)}}(ln[0],Mt.element[0]))}}else pt=Mt.element.children().first(),Mt.select(pt),Mt.trigger("change")}function Ki(wt,Mt){var pt=b.find("i[data-role='telerik_ReportViewer_SearchDialog_Error']");if(pt&&0!==pt.length){var Lt=b.data("kendoMenu").element.find("li").last();wt?(pt[0].title=Mt,Lt.show()):Lt.hide()}else console.log(Mt)}function oi(wt){Bt(wt,"title"),Bt(wt,"aria-label")}function Bt(wt,Mt){wt&&wt.attr(Mt,s[wt.attr(Mt)])}function xt(wt){var Mt=!0,pt=!1,Lt={enabled:function(tt){return 0===arguments.length?Mt:(Mt=!!tt,a(this).trigger("enabledChanged"),Lt)},checked:function(tt){return 0===arguments.length?pt:(pt=!!tt,a(this).trigger("checkedChanged"),Lt)},exec:wt};return Lt}w.getSearchDialogState(function(wt,Mt){Mt.visible=M}).setSearchDialogVisible(function(wt,Mt){!function ge(wt){if(M=wt,wt&&k.searchMetadataOnDemand&&!j)return te=!0,w.reportLoadComplete(function(){te&&(Ce(!0),te=!1)}),void w.refreshReport(!0);Ce(wt)}(Mt.visible)}).setSendEmailDialogVisible(function(wt,Mt){Mt.visible&&M&&Ce(!M)}).pageReady(ut).scrollPageReady(ut).beginLoadReport(_e).viewModeChanged(_e),a(l).resize(function(){K&&K.options.visible&&(xe(),Oe())})}var R="telerik_ReportViewer_SearchDialog";a.fn[R]=function(x,f){return A.each(this,function(){a.data(this,R)||a.data(this,R,new C(this,x,f))})}}(n,e,window,document),function(o,a,l,u,d){"use strict";a||alert("jQuery is not loaded. Make sure that jQuery is included."),o.GlobalSettings||(o.GlobalSettings={});var s=o.utils;if(!s)throw"Missing telerikReportViewer.utils";var A=o.sr;if(!A)throw"Missing telerikReportViewer.sr";if(!o.ServiceClient)throw"Missing telerikReportViewer.ServiceClient";if(!o.ReportViewerController)throw"Missing telerikReportViewer.ReportViewerController";if(!o.HistoryManager)throw"Missing telerikReportViewer.HistoryManager";var _=o.binder;if(!_)throw"Missing telerikReportViewer.Binder";if(!o.CommandSet)throw"Missing telerikReportViewer.commandSet";if(!o.uiController)throw"Missing telerikReportViewer.uiController";o.Events={EXPORT_BEGIN:"EXPORT_BEGIN",EXPORT_END:"EXPORT_END",PRINT_BEGIN:"PRINT_BEGIN",PRINT_END:"PRINT_END",RENDERING_BEGIN:"RENDERING_BEGIN",RENDERING_END:"RENDERING_END",PAGE_READY:"PAGE_READY",ERROR:"ERROR",UPDATE_UI:"UPDATE_UI",INTERACTIVE_ACTION_EXECUTING:"INTERACTIVE_ACTION_EXECUTING",INTERACTIVE_ACTION_ENTER:"INTERACTIVE_ACTION_ENTER",INTERACTIVE_ACTION_LEAVE:"INTERACTIVE_ACTION_LEAVE",VIEWER_TOOLTIP_OPENING:"VIEWER_TOOLTIP_OPENING",SEND_EMAIL_BEGIN:"SEND_EMAIL_BEGIN",SEND_EMAIL_END:"SEND_EMAIL_END"};var g,C=(g={},{load:function(M,p,E){var b=g[M];return b||(g[M]=b=E.get(M).then(function(I){var L={},D=[],F=s.rtrim(p,"\\/")+"/";I=s.replaceAll(I,"{service}/",F),I=s.replaceAll(I,"{service}",F);var P=a("<div></div>").html(I);return s.each(P.find("template"),function(O,U){var V=a(U);L[V.attr("id")]=s.trim(V.html(),"\n \t")}),s.each(P.find("link"),function(O,U){D.push(s.trim(U.outerHTML,"\n \t"))}),D=s.filterUniqueLastOccurance(D),{templates:L,styleSheets:D}})),b}});function R(){var g={};return{getItem:function(M){return g[M]},setItem:function(M,p){g[M]=p},removeItem:function(M){delete g[M]}}}function x(g,M,p){var E={};function b(U){var V=M.getItem(D(U));return null!==V&&V!==d?V:p[U]}function I(U,V){var K="state",X=b(K),me="string"==typeof X?JSON.parse(X):{};if(V.length){if(me){var J=V[0];J===d?delete me[U]:me[U]=J}return L(K,JSON.stringify(me)),E}return me[U]}function L(U,V){var K=D(U);if(M.setItem(K,V),M instanceof l.Storage){var X=M.getItem(K),me=u.createEvent("StorageEvent");me.initStorageEvent("telerikReportingStorage",!1,!1,K,X,V,null,M),l.dispatchEvent(me)}}function D(U){return g+"_"+U}function F(U,V){return V.length?(L(U,V[0]),E):b(U)}return s.extend(E,{viewMode:function(){return I("viewMode",arguments)},pageMode:function(){return I("pageMode",arguments)},printMode:function(){return I("printMode",arguments)},scale:function(){return I("scale",arguments)},scaleMode:function(){return I("scaleMode",arguments)},documentMapVisible:function(){return I("documentMapVisible",arguments)},parametersAreaVisible:function(){return I("parametersAreaVisible",arguments)},history:function(){return function O(U,V){if(V.length)return L(U,JSON.stringify(V[0])),E;var K=b(U);return"string"==typeof K?JSON.parse(K):null}("history",arguments)},clientId:function(){return F("clientId",arguments)},reportSource:function(){return I("reportSource",arguments)},pageNumber:function(){return I("pageNumber",arguments)},enableAccessibility:function(){return F("enableAccessibility",arguments)},accessibilityKeyMap:function(){return I("accessibilityKeyMap",arguments)},searchMetadataOnDemand:function(){return F("searchMetadataOnDemand",arguments)},keepClientAlive:function(){return F("keepClientAlive",arguments)}}),E}function k(g,M){var p=M.serviceUrl,E="";M.reportServer&&(E=s.rtrim(M.reportServer.url,"\\/"),p=E+"/api/reports");var D,P,V,b=a(g),I={},L=M.id||"#"+b.attr("id"),F={},O={},U={},K={},X={},me={},J="";if(M.viewerSelector="reportViewer-"+s.generateGuidString(),b.attr("data-selector",M.viewerSelector),function re(xe){if(!xe)return b.text("The report viewer configuration options are not initialized."),!1;if(xe.reportServer){if(!xe.reportServer.url)return b.text("The report server URL is not specified."),!1}else if(!xe.serviceUrl)return b.text("The serviceUrl is not specified."),!1;return!0}(M)){var Q="17.1.23.718";return M=s.extend({},function f(g,M){return{id:null,serviceUrl:null,trvTemplateUrl:s.rtrim(g,"\\/")+"/resources/templates/telerikReportViewerTemplate-"+M+".html/",reportSource:null,reportServer:null,authenticationToken:null,sendEmail:null,scale:1,scaleMode:o.ScaleModes.FIT_PAGE,viewMode:o.ViewModes.INTERACTIVE,pageMode:o.PageModes.CONTINUOUS_SCROLL,parametersAreaPosition:o.ParametersAreaPositions.RIGHT,documentMapAreaPosition:o.DocumentMapAreaPositions.LEFT,parameters:{editors:{multiSelect:o.ParameterEditorTypes.LIST_VIEW,singleSelect:o.ParameterEditorTypes.LIST_VIEW}},persistSession:!1,parameterEditors:[],disabledButtonClass:null,checkedButtonClass:null,parametersAreaVisible:!0,documentMapVisible:!0,enableAccessibility:!1,searchMetadataOnDemand:!1,initialPageAreaImageUrl:null,keepClientAlive:!0}}(p,Q),M),F=new x(L,M.persistSession?l.sessionStorage:new R,{scale:M.scale,scaleMode:M.scaleMode,printMode:M.printMode?M.printMode:M.directPrint,enableAccessibility:M.enableAccessibility,searchMetadataOnDemand:M.searchMetadataOnDemand,sendEmail:M.sendEmail,parametersAreaPosition:M.parametersAreaPosition,documentMapAreaPosition:M.documentMapAreaPosition,keepClientAlive:M.keepClientAlive}),M.reportServer?(J=s.rtrim(M.reportServer.url,"\\/"),me.serviceUrl=J+"/api/reports",me.loginInfo={url:J+"/Token",username:M.reportServer.username,password:M.reportServer.password}):me.serviceUrl=M.serviceUrl,P=new o.ServiceClient(me),(O=M.controller)?O.updateSettings(F):O=new o.ReportViewerController({serviceClient:P,settings:F}),V=new o.HistoryManager({controller:O,settings:F}),K=new o.CommandSet({controller:O,history:V}),new o.uiController({controller:O,history:V,commands:K}),X={stringResources:A,refreshReport:function(xe){return 0===arguments.length&&(xe=!0),O.refreshReport(xe),X},reportSource:function(xe){return xe||null===xe?(O.reportSource(xe),O.refreshReport(!1),X):O.reportSource()},clearReportSource:function(){return O.clearReportSource(),X},viewMode:function(xe){return xe?(O.viewMode(xe),X):O.viewMode()},pageMode:function(xe){return xe?(O.pageMode(xe),X):O.pageMode()},printMode:function(xe){return xe?(O.printMode(xe),X):O.printMode()},scale:function(xe){return xe?(O.scale(xe),X):(O.getScale(xe={}),xe)},currentPage:function(){return O.currentPageNumber()},pageCount:function(){return O.pageCount()},parametersAreaVisible:function(xe){O.setParametersAreaVisible({visible:xe})},getReportParameters:function(){return O.getReportParameters()},authenticationToken:function(xe){return xe&&O.setAuthenticationToken(xe),X},bind:function(xe,Oe){de(xe,Oe,!0)},unbind:function(xe,Oe){de(xe,Oe,!1)},accessibilityKeyMap:function(xe){return D?xe?(D.setKeyMap(xe),X):D.getKeyMap():d},commands:K,dispose:function(){O.dispose(),U&&U.dispose()}},function Te(){return l.Promise}()?fe(Q):s.loadScriptWithCallback("https://cdn.polyfill.io/v2/polyfill.min.js?features=Promise",fe,Q),X}function de(xe,Oe,Le){"function"==typeof Oe?Le?a(X).on(xe,{sender:X},Oe):a(X).off(xe,Oe):!Oe&&!Le&&a(X).off(xe)}function q(xe,Oe){switch(a(xe).attr("data-id")){case"trv-document-map":O.setDocumentMapVisible({visible:Oe});break;case"trv-parameters-area":O.setParametersAreaVisible({visible:Oe})}}function ge(){var xe=!1;(function H(){b.html(I["trv-report-viewer"]),_.bind(b,{controller:O,commands:K,templates:I},M),(U=new o.PerspectiveManager(g,O)).attach(),function z(){var xe={max:"500px",min:"50px",size:"210px",collapsible:!0},Oe=b.find(".trv-parameters-area"),Le=[{}],Gt={max:"500px",min:"50px",size:"210px",collapsible:!0,collapsed:!0},Ut=b.find(".trv-document-map"),An=[{}],$n="horizontal";M.documentMapAreaPosition===o.DocumentMapAreaPositions.RIGHT?(Ut.insertAfter(b.find(".trv-pages-area")),An.push(Gt)):An.unshift(Gt),(M.parametersAreaPosition===o.ParametersAreaPositions.TOP||M.parametersAreaPosition===o.ParametersAreaPositions.BOTTOM)&&($n="vertical",Oe.addClass("-vertical"),xe.size="130px"),M.parametersAreaPosition===o.ParametersAreaPositions.LEFT||M.parametersAreaPosition===o.ParametersAreaPositions.TOP?(Oe.insertBefore(b.find(".trv-document-map-splitter")),Le.unshift(xe)):Le.push(xe);try{var xn=b.find(".trv-document-map-splitter").kendoSplitter({panes:An,expand:function(ut){q(ut.pane,!0)},collapse:function(ut){q(ut.pane,!1)},resize:function(ut){o.kendoUtils.fixSplitter(ut.sender,M.documentMapAreaPosition)}}).data("kendoSplitter")}catch(ut){throw console.error("Instantiation of Kendo Splitter as Document Map splitter threw an exception",ut),ut}try{var mt=b.find(".trv-parameters-splitter").kendoSplitter({panes:Le,orientation:$n,expand:function(ut){q(ut.pane,!0)},collapse:function(ut){q(ut.pane,!1)},resize:function(ut){o.kendoUtils.fixSplitter(ut.sender,M.parametersAreaPosition)}}).data("kendoSplitter")}catch(ut){throw console.error("Instantiation of Kendo Splitter as Parameters area splitter threw an exception",ut),ut}o[M.viewerSelector+"-parameters-splitter"]=mt,o[M.viewerSelector+"-document-map-splitter"]=xn}(),function te(){var xe={EXPORT_BEGIN:O.Events.EXPORT_STARTED,EXPORT_END:O.Events.EXPORT_DOCUMENT_READY,PRINT_BEGIN:O.Events.PRINT_STARTED,PRINT_END:O.Events.PRINT_DOCUMENT_READY,RENDERING_BEGIN:O.Events.BEFORE_LOAD_REPORT,RENDERING_END:O.Events.REPORT_LOAD_COMPLETE,PAGE_READY:O.Events.PAGE_READY,ERROR:O.Events.ERROR,UPDATE_UI:O.Events.UPDATE_UI,INTERACTIVE_ACTION_EXECUTING:O.Events.INTERACTIVE_ACTION_EXECUTING,INTERACTIVE_ACTION_ENTER:O.Events.INTERACTIVE_ACTION_ENTER,INTERACTIVE_ACTION_LEAVE:O.Events.INTERACTIVE_ACTION_LEAVE,VIEWER_TOOLTIP_OPENING:O.Events.TOOLTIP_OPENING,SEND_EMAIL_BEGIN:O.Events.SEND_EMAIL_STARTED,SEND_EMAIL_END:O.Events.SEND_EMAIL_READY},Oe=a(X);for(var Le in xe)O.on(xe[Le],function(Ut,An){return function($n,xn){Ut.trigger({type:An,data:$n.data},xn)}}(Oe,Le))}(),function j(){de(o.Events.EXPORT_BEGIN,M.exportBegin,!0),de(o.Events.EXPORT_END,M.exportEnd,!0),de(o.Events.PRINT_BEGIN,M.printBegin,!0),de(o.Events.PRINT_END,M.printEnd,!0),de(o.Events.RENDERING_BEGIN,M.renderingBegin,!0),de(o.Events.RENDERING_END,M.renderingEnd,!0),de(o.Events.PAGE_READY,M.pageReady,!0),de(o.Events.ERROR,M.error,!0),de(o.Events.UPDATE_UI,M.updateUi,!0),de(o.Events.INTERACTIVE_ACTION_EXECUTING,M.interactiveActionExecuting,!0),de(o.Events.INTERACTIVE_ACTION_ENTER,M.interactiveActionEnter,!0),de(o.Events.INTERACTIVE_ACTION_LEAVE,M.interactiveActionLeave,!0),de(o.Events.VIEWER_TOOLTIP_OPENING,M.viewerToolTipOpening,!0),de(o.Events.SEND_EMAIL_BEGIN,M.sendEmailBegin,!0),de(o.Events.SEND_EMAIL_END,M.sendEmailEnd,!0)}(),function se(){var xe=F.viewMode(),Oe=F.pageMode(),Le=F.printMode(),Gt=F.scale(),Ut=F.scaleMode(),An=F.documentMapVisible(),$n=F.parametersAreaVisible();F.accessibilityKeyMap(),O.viewMode(xe||M.viewMode),O.pageMode(Oe||M.pageMode),O.printMode(Le||M.printMode),O.scale({scale:Gt||M.scale,scaleMode:Ut||M.scaleMode}),O.setDocumentMapVisible({visible:An||M.documentMapVisible}),O.setParametersAreaVisible({visible:$n||M.parametersAreaVisible}),O.printModeChanged(function(){F.printMode(O.printMode())}),O.viewModeChanged(function(){F.viewMode(O.viewMode())}),O.pageModeChanged(function(){F.pageMode(O.pageMode())}),O.scale(function(){var mt={};O.getScale(mt),F.scale(mt.scale),F.scaleMode(mt.scaleMode)}),O.setSideMenuVisible(function(mt,ut){l.setTimeout(function(){(ut.visible?a.fn.addClass:a.fn.removeClass).call(b,"trv-side-menu-visible")},1)}),O.setDocumentMapVisible(function(){var mt={};O.getDocumentMapState(mt),F.documentMapVisible(mt.visible)}),O.setParametersAreaVisible(function(){var mt={};O.getParametersAreaState(mt),F.parametersAreaVisible(mt.visible)})}(),function ne(xe){if(xe.enableAccessibility){D=new o.accessibility({controller:O,templates:I});var Oe=xe.accessibilityKeyMap;Oe&&D.setKeyMap(Oe),F.contentTabIndex=function _e(){var xe="div.trv-pages-area";try{var Oe=b.find(xe);if(0===Oe.length)throw"Selector "+xe+" did not return a result.";return parseInt(Oe.attr("tabindex"))}catch(Le){return console&&console.log(Le),0}}()}}(M)})(),O.reportLoadComplete(function(){!1===M.documentMapVisible&&O.setDocumentMapVisible({visible:!1})});var Oe=F.reportSource();if(Oe!==d){O.reportSource(Oe);var Le=F.pageNumber();Le!==d&&O.navigateToPage(Le),xe=!0}else M.viewMode&&O.viewMode(M.viewMode),M.pageMode&&O.pageMode(M.pageMode),M.reportSource&&(O.reportSource(M.reportSource),xe=!0);"function"==typeof M.ready&&M.ready.call(X),xe&&O.refreshReport(!1)}function fe(xe){(function De(xe){if(l.kendo)return Promise.resolve();var Oe=s.rtrim(p,"\\/")+"/resources/js/telerikReportViewer.kendo-"+xe+".min.js/";return s.loadScript(Oe).catch(function(Le){s.logError("Kendo could not be loaded automatically. Make sure 'options.serviceUrl' / 'options.reportServer.url' is correct and accessible. The error is: "+Le.error)})})(xe).then(function(){o.createKendoWidgetFixer()}).then(function(){X.authenticationToken(M.authenticationToken),O.getServiceVersion().catch(function(){return b.text(s.stringFormat(A.errorServiceUrl,[s.escapeHtml(p)])),Promise.reject()}).then(function(Oe){if(Oe!==xe)return b.text(s.stringFormat(A.errorServiceVersion,[Oe,xe])),Promise.reject();C.load(M.trvTemplateUrl,p,P).catch(function(){return b.text(s.stringFormat(A.errorLoadingTemplates,[s.escapeHtml(M.trvTemplateUrl)])),Promise.reject()}).then(function(Le){return I=Le.templates,function Ce(xe){if(!xe)return Promise.resolve();var Oe=a("head"),Le=Oe.find("link").map(function(Ut,An){return An.outerHTML}).toArray(),Gt=[];return s.each(xe,function(Ut,An){-1===Le.indexOf(An)&&Gt.push(new Promise(function($n,xn){var mt=a(An);mt.on("load",$n),mt.on("onerror",function(){s.logError("error loading stylesheet "+An),$n()}),Oe.append(mt)}))}),Promise.all(Gt).then(O.cssLoaded)}(Le.styleSheets)}).then(ge)})})}}var w="telerik_ReportViewer";e.fn[w]=function(g){return this.selector&&!g.selector&&(g.selector=this.selector),s.each(this,function(){a.data(this,w)||a.data(this,w,new k(this,g))})},o.ReportViewer=k}(n,e,window,document),he.exports={ReportViewer:n.ReportViewer}},35536:(he,y,i)=>{var e,n,o,a,l,u,d,s,A,_,C,R,x,f,k,w,g,M,p,E,b,I,L,D,F,P,O,U,V,K,X,me,J,Q,re,de,te,j,H,z,q,se,ne,_e,ge,Ce,Te,De,fe,xe,Oe,Le,Gt,Ut,An,$n,xn,mt,ut,Wt,dn,sn,fn,yi,nn,Mi,mi,Eo,Ko,xo,Bn,Xt,Ji,En,un,Ki,Fn,oi,It,Bt,xt,wt,Mt,pt,Lt,tt,Ne,vt,ln,jn,Pi,go,si,ot,pn,_i,wi,hi,zn,Ei,li,Xi,ki,bo,jo,wn,Zi,oo,Bi,Xo,Lo,or,xr,Nr,as,ji,Fo,rt,ai,Gn,Io,wr,bs,ba,ms,Oa,Ea,Sa,tr,Mr,Li,Ao,ao,Go,pr,Rr,br,Ti,mr,ri,mo,Ii,yo,lr,Yr,Gs,fi,Ho,_t,Zn,qo,Cr,kr,xs,Us,Ts,Ss,Ua,$o,Ar,No,qr,js,Ds,Zr,ls,Hs,Js,Wa,ll,Za,sl,Jt,Tt,ht,yn,vi,Yi,co,sr,yr,Ur,ss,gs,Pr,ys,da,Va,ga,al,ur,La,ra=i(82276);ur=[i(82276)],void 0===(e=function(){var Vn,Xe={name:"@progress/kendo-ui",productName:"Kendo UI",productCodes:["KENDOUICOMPLETE","KENDOUI","KENDOUI","KENDOUICOMPLETE"],publishDate:0,version:"",licensingDocsUrl:"https://docs.telerik.com/kendo-ui/intro/installation/using-license-code"},Ke=ra,ze=window,St=void 0,it=ze.kendo=ze.kendo||{cultures:{}},Dt=Ke.extend,Hn=Ke.each,Ui=Array.isArray,Co=Ke.noop,Sn=Math,Dn=ze.JSON||{},kn={},ui=/%/,Ot=/\{(\d+)(:[^\}]+)?\}/g,en=/(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+)?/i,cn=/^(\+|-?)\d+(\.?)\d*$/,Ht="function",ft="string",Nt="number",an="object",$e="null",Je="boolean",Ve="undefined",Ge="prefix",Be="aria-labelledby",At="aria-label",Pt={},$t={},Xn=[].slice,Nn=["themeColor","fillMode","shape","size","rounded","positionMode"],Ae=function(){var Di,uo,Wo,vr,Jr,ns,vs=arguments[0]||{},Ns=1,Is=arguments.length,qs=!1;for("boolean"==typeof vs&&(qs=vs,vs=arguments[Ns]||{},Ns++),"object"!=typeof vs&&"function"!=typeof vs&&(vs={}),Ns===Is&&(vs=this,Ns--);Ns<Is;Ns++)if(null!=(Jr=arguments[Ns]))for(vr in Jr)"filters"==vr||"concat"==vr||":"==vr||(Di=vs[vr],vs!==(Wo=Jr[vr])&&(qs&&Wo&&(ra.isPlainObject(Wo)||(uo=Array.isArray(Wo)))?(uo?(uo=!1,ns=Di&&Array.isArray(Di)?Di:[]):ns=Di&&ra.isPlainObject(Di)?Di:{},vs[vr]=Ae(qs,ns,Wo)):Wo!==St&&(vs[vr]=Wo)));return vs};function He(){}it.version="2022.3.913".replace(/^\s+|\s+$/g,""),He.extend=function(Di){var Wo,ns,uo=function(){},vr=this,Jr=Di&&Di.init?Di.init:function(){vr.apply(this,arguments)};for(Wo in uo.prototype=vr.prototype,ns=Jr.fn=Jr.prototype=new uo,Di)ns[Wo]=null!=Di[Wo]&&Di[Wo].constructor===Object?Dt(!0,{},uo.prototype[Wo],Di[Wo]):Di[Wo];return ns.constructor=Jr,Jr.extend=vr.extend,Jr},He.prototype._initOptions=function(Di){this.options=nl({},this.options,Di)};var Kt=it.isFunction=function(Di){return"function"==typeof Di},On=function(){this._defaultPrevented=!0},Fi=function(){return!0===this._defaultPrevented},Ci=He.extend({init:function(){this._events={}},bind:function(Di,uo,Wo){var Jr,vs,Ns,Is,vr=this,ns=typeof Di===ft?[Di]:Di,qs=typeof uo===Ht;if(uo===St){for(Jr in Di)vr.bind(Jr,Di[Jr]);return vr}for(Jr=0,vs=ns.length;Jr<vs;Jr++)Di=ns[Jr],(Is=qs?uo:uo[Di])&&(Wo&&(Ns=Is,Is=function(){vr.unbind(Di,Is),Ns.apply(vr,arguments)},Is.original=Ns),(vr._events[Di]=vr._events[Di]||[]).push(Is));return vr},one:function(Di,uo){return this.bind(Di,uo,!0)},first:function(Di,uo){var vr,ns,vs,Jr=typeof Di===ft?[Di]:Di,Ns=typeof uo===Ht;for(vr=0,ns=Jr.length;vr<ns;vr++)Di=Jr[vr],(vs=Ns?uo:uo[Di])&&(this._events[Di]=this._events[Di]||[]).unshift(vs);return this},trigger:function(Di,uo){var Jr,ns,vr=this._events[Di];if(vr){for((uo=uo||{}).sender=this,uo._defaultPrevented=!1,uo.preventDefault=On,uo.isDefaultPrevented=Fi,Jr=0,ns=(vr=vr.slice()).length;Jr<ns;Jr++)vr[Jr].call(this,uo);return!0===uo._defaultPrevented}return!1},unbind:function(Di,uo){var Jr,vr=this._events[Di];if(Di===St)this._events={};else if(vr)if(uo)for(Jr=vr.length-1;Jr>=0;Jr--)(vr[Jr]===uo||vr[Jr].original===uo)&&vr.splice(Jr,1);else this._events[Di]=[];return this}});function xi(Di,uo){if(uo)return"'"+Di.split("'").join("\\'").split('\\"').join('\\\\\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")+"'";var Wo=Di.charAt(0),vr=Di.substring(1);return"="===Wo?"+("+vr+")+":":"===Wo?"+$kendoHtmlEncode("+vr+")+":";"+Di+";$kendoOutput+="}var Wn=/^\w+/,Vt=/\$\{([^}]*)\}/g,qt=/\\\}/g,bn=/__CURLY__/g,ii=/\\#/g,Vi=/__SHARP__/g,Jn=["","0","00","000","0000"];function zt(Di,uo,Wo){return(Wo=(uo=uo||2)-(Di+="").length)?Jn[uo].substring(0,Wo)+Di:Di}Vn={paramName:"data",useWithBlock:!0,render:function(Di,uo){var Wo,vr,Jr="";for(Wo=0,vr=uo.length;Wo<vr;Wo++)Jr+=Di(uo[Wo]);return Jr},compile:function(Di,uo){var Ns,Is,qs,Wo=Dt({},this,uo),vr=Wo.paramName,Jr=vr.match(Wn)[0],ns=Wo.useWithBlock,vs="var $kendoOutput, $kendoHtmlEncode = kendo.htmlEncode;";if(Kt(Di))return Di;for(vs+=ns?"with("+vr+"){":"",vs+="$kendoOutput=",Is=Di.replace(qt,"__CURLY__").replace(Vt,"#=$kendoHtmlEncode($1)#").replace(bn,"}").replace(ii,"__SHARP__").split("#"),qs=0;qs<Is.length;qs++)vs+=xi(Is[qs],qs%2==0);vs+=ns?";}":";",vs=(vs+="return $kendoOutput;").replace(Vi,"#");try{return(Ns=new Function(Jr,vs))._slotCount=Math.floor(Is.length/2),Ns}catch{throw new Error(it.format("Invalid template:'{0}' Generated code:'{1}'",Di,vs))}}};var Qn,ci,Ai,mn=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,Oi={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},Pn={}.toString;function qn(Di){return mn.lastIndex=0,mn.test(Di)?'"'+Di.replace(mn,function(uo){var Wo=Oi[uo];return typeof Wo===ft?Wo:"\\u"+("0000"+uo.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+Di+'"'}function Ni(Di,uo){var Wo,vr,Jr,ns,Ns,qs,vs=Qn,Is=uo[Di];if(Is&&typeof Is===an&&typeof Is.toJSON===Ht&&(Is=Is.toJSON(Di)),typeof Ai===Ht&&(Is=Ai.call(uo,Di,Is)),(qs=typeof Is)===ft)return qn(Is);if(qs===Nt)return isFinite(Is)?String(Is):$e;if(qs===Je||qs===$e)return String(Is);if(qs===an){if(!Is)return $e;if(Qn+=ci,Ns=[],"[object Array]"===Pn.apply(Is)){for(ns=Is.length,Wo=0;Wo<ns;Wo++)Ns[Wo]=Ni(Wo,Is)||$e;return Jr=0===Ns.length?"[]":Qn?"[\n"+Qn+Ns.join(",\n"+Qn)+"\n"+vs+"]":"["+Ns.join(",")+"]",Qn=vs,Jr}if(Ai&&typeof Ai===an)for(ns=Ai.length,Wo=0;Wo<ns;Wo++)typeof Ai[Wo]===ft&&(Jr=Ni(vr=Ai[Wo],Is))&&Ns.push(qn(vr)+(Qn?": ":":")+Jr);else for(vr in Is)Object.hasOwnProperty.call(Is,vr)&&(Jr=Ni(vr,Is))&&Ns.push(qn(vr)+(Qn?": ":":")+Jr);return Jr=0===Ns.length?"{}":Qn?"{\n"+Qn+Ns.join(",\n"+Qn)+"\n"+vs+"}":"{"+Ns.join(",")+"}",Qn=vs,Jr}}typeof Date.prototype.toJSON!==Ht&&(Date.prototype.toJSON=function(){var Di=this;return isFinite(Di.valueOf())?zt(Di.getUTCFullYear(),4)+"-"+zt(Di.getUTCMonth()+1)+"-"+zt(Di.getUTCDate())+"T"+zt(Di.getUTCHours())+":"+zt(Di.getUTCMinutes())+":"+zt(Di.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}),typeof Dn.stringify!==Ht&&(Dn.stringify=function(Di,uo,Wo){var vr;if(Qn="",ci="",typeof Wo===Nt)for(vr=0;vr<Wo;vr+=1)ci+=" ";else typeof Wo===ft&&(ci=Wo);if(Ai=uo,uo&&typeof uo!==Ht&&(typeof uo!==an||typeof uo.length!==Nt))throw new Error("JSON.stringify");return Ni("",{"":Di})});var Ue=/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|HH|H|hh|h|mm|m|fff|ff|f|tt|ss|s|zzz|zz|z|"[^"]*"|'[^']*'/g,Ye=/^(n|c|p|e)(\d*)$/i,Me=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,pe=/\,/g,yt=".",po="en-US",$i={}.toString;function ro(Di){if(Di){if(Di.numberFormat)return Di;if(typeof Di===ft){var uo=it.cultures;return uo[Di]||uo[Di.split("-")[0]]||null}return null}return null}function wo(Di){return Di&&(Di=ro(Di)),Di||it.cultures.current}it.cultures["en-US"]={name:po,numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{name:"US Dollar",abbr:"USD",pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"$"}},calendars:{standard:{days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December"],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",F:"dddd, MMMM dd, yyyy h:mm:ss tt",g:"M/d/yyyy h:mm tt",G:"M/d/yyyy h:mm:ss tt",m:"MMMM dd",M:"MMMM dd",s:"yyyy'-'MM'-'ddTHH':'mm':'ss",t:"h:mm tt",T:"h:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},"/":"/",":":":",firstDay:0,twoDigitYearMax:2029}}},it.culture=function(Di){var Wo,uo=it.cultures;if(Di===St)return uo.current;(Wo=ro(Di)||uo[po]).calendar=Wo.calendars.standard,uo.current=Wo},it.findCulture=ro,it.getCulture=wo,it.culture(po);var fo=function(Di,uo,Wo,vr){var Ns,Is,qs,fa,ye,bt,Jr=Di.indexOf(vr[yt]),ns=vr.groupSize.slice(),vs=ns.shift();if((Is=(Ns=Di.substring(uo,Wo=-1!==Jr?Jr:Wo+1)).length)>=vs){for(qs=Is,fa=[];qs>-1;)if((ye=Ns.substring(qs-vs,qs))&&fa.push(ye),qs-=vs,0===(vs=(bt=ns.shift())!==St?bt:vs)){qs>0&&fa.push(Ns.substring(0,qs));break}Ns=fa.reverse().join(vr[","]),Di=Di.substring(0,uo)+Ns+Di.substring(Wo)}return Di},cr=function(Di,uo,Wo){return uo=uo||0,Di=Di.toString().split("e"),Di=Math.round(+(Di[0]+"e"+(Di[1]?+Di[1]+uo:uo))),Wo&&(Di=-Di),(Di=+((Di=Di.toString().split("e"))[0]+"e"+(Di[1]?+Di[1]-uo:-uo))).toFixed(Math.min(uo,20))},Fr=function(Di,uo,Wo){if(uo){if("[object Date]"===$i.call(Di))return function io(Di,uo,Wo){var vr=(Wo=wo(Wo)).calendars.standard,Jr=vr.days,ns=vr.months;return(uo=vr.patterns[uo]||uo).replace(Ue,function(vs){var Ns,Is,qs;return"d"===vs?Is=Di.getDate():"dd"===vs?Is=zt(Di.getDate()):"ddd"===vs?Is=Jr.namesAbbr[Di.getDay()]:"dddd"===vs?Is=Jr.names[Di.getDay()]:"M"===vs?Is=Di.getMonth()+1:"MM"===vs?Is=zt(Di.getMonth()+1):"MMM"===vs?Is=ns.namesAbbr[Di.getMonth()]:"MMMM"===vs?Is=ns.names[Di.getMonth()]:"yy"===vs?Is=zt(Di.getFullYear()%100):"yyyy"===vs?Is=zt(Di.getFullYear(),4):"h"===vs?Is=Di.getHours()%12||12:"hh"===vs?Is=zt(Di.getHours()%12||12):"H"===vs?Is=Di.getHours():"HH"===vs?Is=zt(Di.getHours()):"m"===vs?Is=Di.getMinutes():"mm"===vs?Is=zt(Di.getMinutes()):"s"===vs?Is=Di.getSeconds():"ss"===vs?Is=zt(Di.getSeconds()):"f"===vs?Is=Sn.floor(Di.getMilliseconds()/100):"ff"===vs?((Is=Di.getMilliseconds())>99&&(Is=Sn.floor(Is/10)),Is=zt(Is)):"fff"===vs?Is=zt(Di.getMilliseconds(),3):"tt"===vs?Is=Di.getHours()<12?vr.AM[0]:vr.PM[0]:"zzz"===vs?(qs=(Ns=Di.getTimezoneOffset())<0,Is=Sn.abs(Ns/60).toString().split(".")[0],Ns=Sn.abs(Ns)-60*Is,Is=(qs?"+":"-")+zt(Is),Is+=":"+zt(Ns)):("zz"===vs||"z"===vs)&&(qs=(Is=Di.getTimezoneOffset()/60)<0,Is=Sn.abs(Is).toString().split(".")[0],Is=(qs?"+":"-")+("zz"===vs?zt(Is):Is)),Is!==St?Is:vs.slice(1,vs.length-1)})}(Di,uo,Wo);if(typeof Di===Nt)return function Wi(Di,uo,Wo){var Is,qs,fa,ye,bt,st,ei,_o,zs,Ta,Pe,Tn,v,ue,dt,In,er,Br,Ks,Aa,ha,vr=(Wo=wo(Wo)).numberFormat,Jr=vr[yt],ns=vr.decimals,vs=vr.pattern[0],Ns=[],be=Di<0,ds="",us="";if(Di===St)return"";if(!isFinite(Di))return Di;if(!uo)return Wo.name.length?Di.toLocaleString():Di.toString();if(bt=Ye.exec(uo)){if(fa="p"===(uo=bt[1].toLowerCase()),((qs="c"===uo)||fa)&&(Jr=(vr=qs?vr.currency:vr.percent)[yt],ns=vr.decimals,Is=vr.symbol,vs=vr.pattern[be?0:1]),(ye=bt[2])&&(ns=+ye),"e"===uo)return(ye?Di.toExponential(ns):Di.toExponential()).replace(yt,vr[yt]);if(fa&&(Di*=100),be=(Di=cr(Di,ns))<0,st=(Di=Di.split(yt))[0],ei=Di[1],be&&(st=st.substring(1)),us=fo(st,0,st.length,vr),ei&&(us+=Jr+ei),"n"===uo&&!be)return us;for(Di="",zs=0,Ta=vs.length;zs<Ta;zs++)Di+="n"===(Pe=vs.charAt(zs))?us:"$"===Pe||"%"===Pe?Is:Pe;return Di}if((uo.indexOf("'")>-1||uo.indexOf('"')>-1||uo.indexOf("\\")>-1)&&(uo=uo.replace(Me,function(yl){var Cc=yl.charAt(0).replace("\\",""),Bc=yl.slice(1).replace(Cc,"");return Ns.push(Bc),"??"})),uo=uo.split(";"),be&&uo[1])uo=uo[1],v=!0;else if(0===Di&&uo[2]){if(-1==(uo=uo[2]).indexOf("#")&&-1==uo.indexOf("0"))return uo}else uo=uo[0];if((fa=-1!=uo.indexOf("%"))&&(Di*=100),(qs=-1!=(Ks=uo.indexOf("$")))&&"\\"===uo[Ks-1]&&(uo=uo.split("\\").join(""),qs=!1),(qs||fa)&&(Jr=(vr=qs?vr.currency:vr.percent)[yt],ns=vr.decimals,Is=vr.symbol),(Tn=uo.indexOf(",")>-1)&&(uo=uo.replace(pe,"")),ue=uo.indexOf(yt),Ta=uo.length,-1!=ue)if(ei=(ei=(ei=Di.toString().split("e"))[1]?cr(Di,Math.abs(ei[1])):ei[0]).split(yt)[1]||"",In=uo.lastIndexOf("0")-ue,Br=(dt=uo.lastIndexOf("#")-ue)>-1,zs=ei.length,!(er=In>-1)&&!Br&&(Ta=(uo=uo.substring(0,ue)+uo.substring(ue+1)).length,ue=-1,zs=0),er&&In>dt)zs=In;else if(dt>In)if(Br&&zs>dt){for(var ml=cr(Di,dt,be);"0"===ml.charAt(ml.length-1)&&dt>0&&dt>In;)dt--,ml=cr(Di,dt,be);zs=dt}else er&&zs<In&&(zs=In);if(Di=cr(Di,zs,be),dt=uo.indexOf("#"),In=uo.indexOf("0"),ha=-1==dt&&-1!=In?In:-1!=dt&&-1==In?dt:dt>In?In:dt,dt=uo.lastIndexOf("#"),In=uo.lastIndexOf("0"),Aa=-1==dt&&-1!=In?In:-1!=dt&&-1==In||dt>In?dt:In,ha==Ta&&(Aa=ha),-1!=ha){for(_o=(st=(us=Di.toString().split(yt))[0]).length,ei=us[1]||"",be&&-1*Di>=0&&(be=!1),Di=uo.substring(0,ha),be&&!v&&(Di+="-"),zs=ha;zs<Ta;zs++){if(Pe=uo.charAt(zs),-1==ue){if(Aa-zs<_o){Di+=st;break}}else if(-1!=In&&In<zs&&(ds=""),ue-zs<=_o&&ue-zs>-1&&(Di+=st,zs=ue),ue===zs){Di+=(ei?Jr:"")+ei,zs+=Aa-ue+1;continue}"0"===Pe?(Di+=Pe,ds=Pe):"#"===Pe&&(Di+=ds)}if(Tn&&(Di=fo(Di,ha+(be&&!v?1:0),Math.max(Aa,_o+ha),vr)),Aa>=ha&&(Di+=uo.substring(Aa+1)),qs||fa){for(us="",zs=0,Ta=Di.length;zs<Ta;zs++)us+="$"===(Pe=Di.charAt(zs))||"%"===Pe?Is:Pe;Di=us}if(Ta=Ns.length)for(zs=0;zs<Ta;zs++)Di=Di.replace("??",Ns[zs])}return Di}(Di,uo,Wo)}return Di!==St?Di:""},jr=(it.format=function(Di){var uo=arguments;return Di.replace(Ot,function(Wo,vr,Jr){var ns=uo[parseInt(vr,10)+1];return Fr(ns,Jr?Jr.substring(1):"")})},it._extractFormat=function(Di){return"{0:"===Di.slice(0,3)&&(Di=Di.slice(3,Di.length-1)),Di},it._activeElement=function(){try{return document.activeElement}catch{return document.documentElement.activeElement}},it._round=cr,it._outerWidth=function(Di,uo){return Ke(Di).outerWidth(uo||!1)||0},it._outerHeight=function(Di,uo){return Ke(Di).outerHeight(uo||!1)||0},it.toString=Fr,/\u00A0/g),fs=/\s/g,Ms=/[eE][\-+]?[0-9]+/,Ca=/[+|\-]\d{1,2}/,ks=/[+|\-]\d{1,2}:?\d{2}/,ts=/^\/Date\((.*?)\)\/$/,na=/[+-]\d*/,Xs=[[],["G","g","F"],["D","d","y","m","T","t"]],_a=[["yyyy-MM-ddTHH:mm:ss.fffffffzzz","yyyy-MM-ddTHH:mm:ss.fffffff","yyyy-MM-ddTHH:mm:ss.fffzzz","yyyy-MM-ddTHH:mm:ss.fff","ddd MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:sszzz","yyyy-MM-ddTHH:mmzzz","yyyy-MM-ddTHH:mmzz","yyyy-MM-ddTHH:mm:ss","yyyy-MM-dd HH:mm:ss","yyyy/MM/dd HH:mm:ss"],["yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm","yyyy/MM/dd HH:mm"],["yyyy/MM/dd","yyyy-MM-dd","HH:mm:ss","HH:mm"]],Ws={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},cs={}.toString;function Ps(Di,uo,Wo){return!(Di>=uo&&Di<=Wo)}function Qi(Di){return Di.charAt(0)}function vo(Di){return Ke.map(Di,Qi)}function to(Di){for(var uo=0,Wo=Di.length,vr=[];uo<Wo;uo++)vr[uo]=(Di[uo]+"").toLowerCase();return vr}function Ro(Di){var Wo,uo={};for(Wo in Di)uo[Wo]=to(Di[Wo]);return uo}function Sr(Di,uo,Wo,vr){if(!Di)return null;var Pe,Tn,v,ue,dt,In,er,Br,es,Ks,xa,Aa,Jr=function(vl){for(var ml=0;uo[_o]===vl;)ml++,_o++;return ml>0&&(_o-=1),ml},ns=function(vl){var ml=Ws[vl]||new RegExp("^\\d{1,"+vl+"}"),yl=Di.substr(gr,vl).match(ml);return yl?(gr+=(yl=yl[0]).length,parseInt(yl,10)):null},vs=function(vl,ml){for(var Bc,Bl,iu,yl=0,Cc=vl.length,Wc=0,xu=0;yl<Cc;yl++)iu=Di.substr(gr,Bl=(Bc=vl[yl]).length),ml&&(iu=iu.toLowerCase()),iu==Bc&&Bl>Wc&&(Wc=Bl,xu=yl);return Wc?(gr+=Wc,xu+1):null},Ns=function(){var vl=!1;return Di.charAt(gr)===uo[_o]&&(gr++,vl=!0),vl},Is=Wo.calendars.standard,qs=null,fa=null,ye=null,bt=null,be=null,st=null,ei=null,_o=0,gr=0,ds=!1,us=new Date,zs=Is.twoDigitYearMax||2029,Ta=us.getFullYear();for(uo||(uo="d"),(ue=Is.patterns[uo])&&(uo=ue),v=(uo=uo.split("")).length;_o<v;_o++)if(Pe=uo[_o],ds)"'"===Pe?ds=!1:Ns();else if("d"===Pe){if(Tn=Jr("d"),Is._lowerDays||(Is._lowerDays=Ro(Is.days)),null!==ye&&Tn>2)continue;if(null===(ye=Tn<3?ns(2):vs(Is._lowerDays[3==Tn?"namesAbbr":"names"],!0))||Ps(ye,1,31))return null}else if("M"===Pe){if(Tn=Jr("M"),Is._lowerMonths||(Is._lowerMonths=Ro(Is.months)),null===(fa=Tn<3?ns(2):vs(Is._lowerMonths[3==Tn?"namesAbbr":"names"],!0))||Ps(fa,1,12))return null;fa-=1}else if("y"===Pe){if(null===(qs=ns(Tn=Jr("y"))))return null;2==Tn&&("string"==typeof zs&&(zs=Ta+parseInt(zs,10)),(qs=Ta-Ta%100+qs)>zs&&(qs-=100))}else if("h"===Pe){if(Jr("h"),12==(bt=ns(2))&&(bt=0),null===bt||Ps(bt,0,11))return null}else if("H"===Pe){if(Jr("H"),null===(bt=ns(2))||Ps(bt,0,23))return null}else if("m"===Pe){if(Jr("m"),null===(be=ns(2))||Ps(be,0,59))return null}else if("s"===Pe){if(Jr("s"),null===(st=ns(2))||Ps(st,0,59))return null}else if("f"===Pe){if(Tn=Jr("f"),Aa=Di.substr(gr,Tn).match(Ws[3]),null!==(ei=ns(Tn))&&(ei=parseFloat("0."+Aa[0],10),ei=it._round(ei,3),ei*=1e3),null===ei||Ps(ei,0,999))return null}else if("t"===Pe){if(Tn=Jr("t"),Br=Is.AM,es=Is.PM,1===Tn&&(Br=vo(Br),es=vo(es)),!(dt=vs(es))&&!vs(Br))return null}else if("z"===Pe){if(In=!0,Tn=Jr("z"),"Z"===Di.substr(gr,1)){Ns();continue}if(!(er=Di.substr(gr,6).match(Tn>2?ks:Ca))||(Ks=(er=er[0].split(":"))[0],!(xa=er[1])&&Ks.length>3&&(xa=Ks.substring(gr=Ks.length-2),Ks=Ks.substring(0,gr)),Ps(Ks=parseInt(Ks,10),-12,13))||Tn>2&&(xa=er[0][0]+xa,xa=parseInt(xa,10),isNaN(xa)||Ps(xa,-59,59)))return null}else if("'"===Pe)ds=!0,Ns();else if(!Ns())return null;return vr&&!/^\s*$/.test(Di.substr(gr))||(null!==qs||null!==fa||null!==ye||null===bt&&null===be&&!st?(null===qs&&(qs=Ta),null===ye&&(ye=1)):(qs=Ta,fa=us.getMonth(),ye=us.getDate()),dt&&bt<12&&(bt+=12),In?(Ks&&(bt+=-Ks),xa&&(be+=-xa),Di=new Date(Date.UTC(qs,fa,ye,bt,be,st,ei))):function pi(Di,uo){!uo&&23===Di.getHours()&&Di.setHours(Di.getHours()+2)}(Di=new Date(qs,fa,ye,bt,be,st,ei),bt),qs<100&&Di.setFullYear(qs),Di.getDate()!==ye&&In===St)?null:Di}function Ys(Di,uo,Wo,vr){if("[object Date]"===cs.call(Di))return Di;var vs,Ns,Jr=0,ns=null;if(Di&&0===Di.indexOf("/D")&&(ns=ts.exec(Di)))return Ns=na.exec((ns=ns[1]).substring(1)),ns=new Date(parseInt(ns,10)),Ns&&(Ns=function rs(Di){var uo="-"===Di.substr(0,1)?-1:1;return Di=Di.substring(1),uo*(60*parseInt(Di.substr(0,2),10)+parseInt(Di.substring(2),10))}(Ns[0]),ns=it.timezone.apply(ns,0),ns=it.timezone.convert(ns,0,-1*Ns)),ns;for(Wo=it.getCulture(Wo),uo||(uo=function Os(Di){var Jr,ns,vs,uo=Sn.max(Xs.length,_a.length),vr=(Di.calendar||Di.calendars.standard).patterns,Ns=[];for(vs=0;vs<uo;vs++){for(Jr=Xs[vs],ns=0;ns<Jr.length;ns++)Ns.push(vr[Jr[ns]]);Ns=Ns.concat(_a[vs])}return Ns}(Wo)),vs=(uo=Ui(uo)?uo:[uo]).length;Jr<vs;Jr++)if(ns=Sr(Di,uo[Jr],Wo,vr))return ns;return ns}function Ka(Di,uo){var vr=it._outerWidth,Jr=it._outerHeight,ns=Di.parent(".k-animation-container"),vs=ns[0].style;ns.is(":hidden")&&ns.css({display:"",position:""}),ui.test(vs.width)||ui.test(vs.height)||ns.css({width:uo?vr(Di)+1:vr(Di),height:Jr(Di),boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"})}function nl(Di){var uo=1,Wo=arguments.length;for(uo=1;uo<Wo;uo++)il(Di,arguments[uo]);return Di}function il(Di,uo){var vs,Ns,Is,qs,fa,Wo=it.data.ObservableArray,vr=it.data.LazyObservableArray,Jr=it.data.DataSource,ns=it.data.HierarchicalDataSource;for(vs in uo)!(qs=(Is=typeof(Ns=uo[vs]))===an&&null!==Ns?Ns.constructor:null)||qs===Array||qs===Wo||qs===vr||qs===Jr||qs===ns||qs===RegExp||it.isFunction(ze.ArrayBuffer)&&qs===ArrayBuffer||Ns instanceof HTMLElement?Is!==Ve&&(Di[vs]=Ns):Ns instanceof Date?Di[vs]=new Date(Ns.getTime()):Kt(Ns.clone)?Di[vs]=Ns.clone():(Di[vs]=typeof(fa=Di[vs])===an&&fa||{},il(Di[vs],Ns));return Di}function xl(Di,uo,Wo){for(var vr in uo)if(uo.hasOwnProperty(vr)&&uo[vr].test(Di))return vr;return Wo!==St?Wo:Di}function To(Di){return Di.replace(/\-(\w)/g,function(uo,Wo){return Wo.toUpperCase()})}function Qo(Di,uo){var vr,Wo={};return document.defaultView&&document.defaultView.getComputedStyle?(vr=document.defaultView.getComputedStyle(Di,""),uo&&Ke.each(uo,function(Jr,ns){Wo[ns]=vr.getPropertyValue(ns)})):(vr=Di.currentStyle,uo&&Ke.each(uo,function(Jr,ns){Wo[ns]=vr[To(ns)]})),it.size(Wo)||(Wo=vr),Wo}it.parseDate=function(Di,uo,Wo){return Ys(Di,uo,Wo,!1)},it.parseExactDate=function(Di,uo,Wo){return Ys(Di,uo,Wo,!0)},it.parseInt=function(Di,uo){var Wo=it.parseFloat(Di,uo);return Wo&&(Wo|=0),Wo},it.parseFloat=function(Di,uo,Wo){if(!Di&&0!==Di)return null;if(typeof Di===Nt)return Di;Di=Di.toString();var qs,fa,vr=(uo=it.getCulture(uo)).numberFormat,Jr=vr.percent,ns=vr.currency,vs=ns.symbol,Ns=Jr.symbol,Is=Di.indexOf("-");return Ms.test(Di)?(Di=parseFloat(Di.replace(vr["."],".")),isNaN(Di)&&(Di=null),Di):Is>0?null:(Is=Is>-1,Di.indexOf(vs)>-1||Wo&&Wo.toLowerCase().indexOf("c")>-1?(qs=(vr=ns).pattern[0].replace("$",vs).split("n"),Di.indexOf(qs[0])>-1&&Di.indexOf(qs[1])>-1&&(Di=Di.replace(qs[0],"").replace(qs[1],""),Is=!0)):Di.indexOf(Ns)>-1&&(fa=!0,vr=Jr,vs=Ns),Di=Di.replace("-","").replace(vs,"").replace(jr," ").split(vr[","].replace(jr," ")).join("").replace(fs,"").replace(vr["."],"."),Di=parseFloat(Di),isNaN(Di)?Di=null:Is&&(Di*=-1),Di&&fa&&(Di/=100),Di)},kn._scrollbar=St,kn.scrollbar=function(Di){if(!isNaN(kn._scrollbar)&&!Di)return kn._scrollbar;var Wo,uo=document.createElement("div");return uo.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",uo.innerHTML="&nbsp;",document.body.appendChild(uo),kn._scrollbar=Wo=uo.offsetWidth-uo.scrollWidth,document.body.removeChild(uo),Wo},kn.isRtl=function(Di){return Ke(Di).closest(".k-rtl").length>0};var ia=document.createElement("table");try{ia.innerHTML="<tr><td></td></tr>",kn.tbodyInnerHtml=!0}catch{kn.tbodyInnerHtml=!1}kn.touch="ontouchstart"in ze;var Ia=document.documentElement.style,ar=kn.transitions=!1,wa=kn.transforms=!1,_l="HTMLElement"in ze?HTMLElement.prototype:[];kn.hasHW3D="WebKitCSSMatrix"in ze&&"m11"in new ze.WebKitCSSMatrix||"MozPerspective"in Ia||"msPerspective"in Ia,kn.cssFlexbox="flexWrap"in Ia||"WebkitFlexWrap"in Ia||"msFlexWrap"in Ia,Hn(["Moz","webkit","O","ms"],function(){var Di=this.toString(),uo=typeof ia.style[Di+"Transition"]===ft;if(uo||typeof ia.style[Di+"Transform"]===ft){var Wo=Di.toLowerCase();return wa={css:"ms"!=Wo?"-"+Wo+"-":"",prefix:Di,event:"o"===Wo||"webkit"===Wo?Wo:""},uo&&((ar=wa).event=ar.event?ar.event+"TransitionEnd":"transitionend"),!1}}),ia=null,kn.transforms=wa,kn.transitions=ar,kn.devicePixelRatio=ze.devicePixelRatio===St?1:ze.devicePixelRatio;try{kn.screenWidth=ze.outerWidth||ze.screen?ze.screen.availWidth:ze.innerWidth,kn.screenHeight=ze.outerHeight||ze.screen?ze.screen.availHeight:ze.innerHeight}catch{kn.screenWidth=ze.screen.availWidth,kn.screenHeight=ze.screen.availHeight}kn.detectOS=function(Di){var Wo,uo=!1,vr=[],Jr=!/mobile safari/i.test(Di),ns={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.?(\d+(\.\d+)?)?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},vs={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},Ns={tablet:/playbook|ipad|fire/i},Is={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i};for(var qs in ns)if(ns.hasOwnProperty(qs)&&(vr=Di.match(ns[qs]))){if("windows"==qs&&"plugins"in navigator)return!1;(uo={}).device=qs,uo.tablet=xl(qs,Ns,!1),uo.browser=xl(Di,Is,"default"),uo.name=xl(qs,vs),uo[uo.name]=!0,uo.majorVersion=vr[2],uo.minorVersion=(vr[3]||"0").replace("_","."),Wo=uo.minorVersion.replace(".","").substr(0,2),uo.flatVersion=uo.majorVersion+Wo+new Array(3-(Wo.length<3?Wo.length:2)).join("0"),uo.cordova=typeof ze.PhoneGap!==Ve||typeof ze.cordova!==Ve,uo.appMode=ze.navigator.standalone||/file|local|wmapp/.test(ze.location.protocol)||uo.cordova,uo.android&&(kn.devicePixelRatio<1.5&&uo.flatVersion<400||Jr)&&(kn.screenWidth>800||kn.screenHeight>800)&&(uo.tablet=qs);break}return uo};var Ya=kn.mobileOS=kn.detectOS(navigator.userAgent);kn.wpDevicePixelRatio=Ya.wp?screen.width/320:0,kn.hasNativeScrolling=!1,(Ya.ios||Ya.android&&Ya.majorVersion>2||Ya.wp)&&(kn.hasNativeScrolling=Ya),kn.delayedClick=function(){if(kn.touch){if(Ya.ios)return!0;if(Ya.android)return!kn.browser.chrome||!(kn.browser.version<32)&&!(Ke("meta[name=viewport]").attr("content")||"").match(/user-scalable=no/i)}return!1},kn.mouseAndTouchPresent=kn.touch&&!(kn.mobileOS.ios||kn.mobileOS.android),kn.detectBrowser=function(Di){var uo=!1,Wo=[],Jr={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var ns in Jr)if(Jr.hasOwnProperty(ns)&&(Wo=Di.match(Jr[ns]))){(uo={})[ns]=!0,uo[Wo[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,uo.version=parseInt(document.documentMode||Wo[2],10),uo.chrome&&Di.match(/(edg)[ \/]([\w.]+)/i)&&(uo.chromiumEdge=!0);break}return uo},kn.browser=kn.detectBrowser(navigator.userAgent),!Ya&&kn.touch&&kn.browser.safari&&(Ya=kn.mobileOS={ios:!0,tablet:"tablet",device:"ipad"}),kn.detectClipboardAccess=function(){var Di={copy:!!document.queryCommandSupported&&document.queryCommandSupported("copy"),cut:!!document.queryCommandSupported&&document.queryCommandSupported("cut"),paste:!!document.queryCommandSupported&&document.queryCommandSupported("paste")};return kn.browser.chrome&&(Di.paste=!1,kn.browser.version>=43&&(Di.copy=!0,Di.cut=!0)),Di},kn.clipboard=kn.detectClipboardAccess(),kn.zoomLevel=function(){try{var Di=kn.browser,uo=0,Wo=document.documentElement;return Di.msie&&11==Di.version&&Wo.scrollHeight>Wo.clientHeight&&!kn.touch&&(uo=kn.scrollbar()),kn.touch?Wo.clientWidth/ze.innerWidth:Di.msie&&Di.version>=10?((top||ze).document.documentElement.offsetWidth+uo)/(top||ze).innerWidth:1}catch{return 1}};var pa=kn.browser,rl="",Nl=Ke(document.documentElement),nd=parseInt(pa.version,10);pa.msie?rl="ie":pa.mozilla?rl="ff":pa.safari?rl="safari":pa.webkit?rl="webkit":pa.opera?rl="opera":pa.edge&&(rl="edge"),rl&&(rl="k-"+rl+" k-"+rl+nd),kn.mobileOS&&(rl+=" k-mobile"),kn.cssFlexbox||(rl+=" k-no-flexbox"),Nl.addClass(rl),kn.eventCapture=document.documentElement.addEventListener;var Ct=document.createElement("input"),rn=(kn.placeholder="placeholder"in Ct,kn.propertyChangeEvent="onpropertychange"in Ct,kn.input=function(){for(var ns,Di=["number","date","time","month","week","datetime","datetime-local"],uo=Di.length,vr={},Jr=0;Jr<uo;Jr++)Ct.setAttribute("type",ns=Di[Jr]),Ct.value="test",vr[ns.replace("-","")]="text"!==Ct.type&&"test"!==Ct.value;return vr}(),Ct.style.cssText="float:left;",kn.cssFloat=!!Ct.style.cssFloat,Ct=null,kn.stableSort=function(){for(var uo=[{index:0,field:"b"}],Wo=1;Wo<513;Wo++)uo.push({index:Wo,field:"a"});return uo.sort(function(vr,Jr){return vr.field>Jr.field?1:vr.field<Jr.field?-1:0}),1===uo[0].index}(),kn.matchesSelector=_l.webkitMatchesSelector||_l.mozMatchesSelector||_l.msMatchesSelector||_l.oMatchesSelector||_l.matchesSelector||_l.matches||function(Di){for(var uo=document.querySelectorAll?(this.parentNode||document).querySelectorAll(Di)||[]:Ke(Di),Wo=uo.length;Wo--;)if(uo[Wo]==this)return!0;return!1},kn.matchMedia="matchMedia"in ze,kn.pushState=ze.history&&ze.history.pushState,kn.hashChange="onhashchange"in ze,kn.customElements="registerElement"in ze.document,kn.browser.chrome),We=kn.browser.crios,Ft=kn.browser.mozilla,ct=kn.browser.safari;kn.msPointers=!rn&&ze.MSPointerEvent,kn.pointers=!rn&&!We&&!Ft&&!ct&&ze.PointerEvent,kn.kineticScrollNeeded=Ya&&(kn.touch||kn.msPointers||kn.pointers);var hs={};function Zs(Di,uo,Wo,vr){return typeof Di===ft&&(Kt(uo)&&(vr=uo,uo=400,Wo=!1),Kt(Wo)&&(vr=Wo,Wo=!1),typeof uo===Je&&(Wo=uo,uo=400),Di={effects:Di,duration:uo,reverse:Wo,complete:vr}),Dt({effects:{},duration:400,reverse:!1,init:Co,teardown:Co,hide:!1},Di,{completeCallback:Di.complete,complete:Co})}function ca(Di,uo,Wo,vr,Jr){for(var Ns,ns=0,vs=Di.length;ns<vs;ns++)(Ns=Ke(Di[ns])).queue(function(){hs.promise(Ns,Zs(uo,Wo,vr,Jr))});return Di}Ke.extend(hs,{enabled:!0,Element:function(Di){this.element=Ke(Di)},promise:function(Di,uo){Di.is(":visible")||Di.css({display:Di.data("olddisplay")||"block"}).css("display"),uo.hide&&Di.data("olddisplay",Di.css("display")).hide(),uo.init&&uo.init(),uo.completeCallback&&uo.completeCallback(Di),Di.dequeue()},disable:function(){this.enabled=!1,this.promise=this.promiseShim},enable:function(){this.enabled=!0,this.promise=this.animatedPromise}}),hs.promiseShim=hs.promise,!("kendoAnimate"in Ke.fn)&&Dt(Ke.fn,{kendoStop:function(Di,uo){return this.stop(Di,uo)},kendoAnimate:function(Di,uo,Wo,vr){return ca(this,Di,uo,Wo,vr)},kendoAddClass:function(Di,uo){return it.toggleClass(this,Di,uo,!0)},kendoRemoveClass:function(Di,uo){return it.toggleClass(this,Di,uo,!1)},kendoToggleClass:function(Di,uo,Wo){return it.toggleClass(this,Di,uo,Wo)}});var cl=/&/g,yc=/</g,bc=/"/g,ec=/'/g,Wl=/>/g,Vc=function(Di){return Di.target};kn.touch&&(Vc=function(Di){var uo="originalEvent"in Di?Di.originalEvent.changedTouches:"changedTouches"in Di?Di.changedTouches:null;return uo?document.elementFromPoint(uo[0].clientX,uo[0].clientY):Di.target},Hn(["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap"],function(Di,uo){Ke.fn[uo]=function(Wo){return this.on(uo,Wo)}})),kn.touch?kn.mobileOS?(kn.mousedown="touchstart",kn.mouseup="touchend",kn.mousemove="touchmove",kn.mousecancel="touchcancel",kn.click="touchend",kn.resize="orientationchange"):(kn.mousedown="mousedown touchstart",kn.mouseup="mouseup touchend",kn.mousemove="mousemove touchmove",kn.mousecancel="mouseleave touchcancel",kn.click="click",kn.resize="resize"):kn.pointers?(kn.mousemove="pointermove",kn.mousedown="pointerdown",kn.mouseup="pointerup",kn.mousecancel="pointercancel",kn.click="pointerup",kn.resize="orientationchange resize"):kn.msPointers?(kn.mousemove="MSPointerMove",kn.mousedown="MSPointerDown",kn.mouseup="MSPointerUp",kn.mousecancel="MSPointerCancel",kn.click="MSPointerUp",kn.resize="orientationchange resize"):(kn.mousemove="mousemove",kn.mousedown="mousedown",kn.mouseup="mouseup",kn.mousecancel="mouseleave",kn.click="click",kn.resize="resize");var Tl=/^([a-z]+:)?\/\//i,cc=(Dt(it,{widgets:[],_widgetRegisteredCallbacks:[],ui:it.ui||{},fx:it.fx||function Or(Di){return new it.effects.Element(Di)},effects:it.effects||hs,mobile:it.mobile||{},data:it.data||{},dataviz:it.dataviz||{},drawing:it.drawing||{},spreadsheet:{messages:{}},keys:{INSERT:45,DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F2:113,F10:121,F12:123,NUMPAD_PLUS:107,NUMPAD_MINUS:109,NUMPAD_DOT:110},support:it.support||kn,animate:it.animate||ca,ns:"",attr:function(Di){return"data-"+it.ns+Di},getShadows:function la(Di){var uo=Di.css(it.support.transitions.css+"box-shadow")||Di.css("box-shadow"),Wo=uo&&uo.match(en)||[0,0,0,0,0],vr=Sn.max(+Wo[3],+(Wo[4]||0));return{left:-Wo[1]+vr,right:+Wo[1]+vr,bottom:+Wo[2]+vr}},wrap:function Da(Di,uo){var Wo,vr=it._outerWidth,Jr=it._outerHeight,ns=Di.parent(),vs=vr(ze);if(ns.removeClass("k-animation-container-sm"),ns.hasClass("k-animation-container"))Ka(Di,uo);else{var Ns=Di[0].style.width,Is=Di[0].style.height,qs=ui.test(Ns),fa=ui.test(Is),ye=Di.hasClass("k-tooltip")||Di.is(".k-menu-horizontal.k-context-menu");Wo=qs||fa,!qs&&(!uo||uo&&Ns||ye)&&(Ns=uo?vr(Di)+1:vr(Di)),(!fa&&(!uo||uo&&Is)||Di.is(".k-menu-horizontal.k-context-menu"))&&(Is=Jr(Di)),Di.wrap(Ke("<div/>").addClass("k-animation-container").attr("role","region").css({width:Ns,height:Is})),ns=Di.parent(),Wo&&Di.css({width:"100%",height:"100%",boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"})}return vs<vr(ns)&&(ns.addClass("k-animation-container-sm"),Ka(Di,uo)),ns},deepExtend:nl,getComputedStyles:Qo,isScrollable:function Dr(Di){if(Di&&Di.className&&"string"==typeof Di.className&&Di.className.indexOf("k-auto-scrollable")>-1)return!0;var uo=Qo(Di,["overflow"]).overflow;return uo.indexOf("auto")>-1||uo.indexOf("scroll")>-1},scrollLeft:function _s(Di,uo){var ns,vs,Wo=kn.browser.webkit,vr=kn.browser.mozilla,Jr=kn.browser.version;if(Di instanceof Ke&&uo!==St)Di.each(function(Ns,Is){_s(Is,uo)});else if(ns=Di instanceof Ke?Di[0]:Di){if(vs=kn.isRtl(Di),uo===St)return vs&&Wo&&(Jr<85||kn.browser.safari)?ns.scrollWidth-ns.clientWidth-ns.scrollLeft:Math.abs(ns.scrollLeft);ns.scrollLeft=vs&&Wo&&(Jr<85||kn.browser.safari)?ns.scrollWidth-ns.clientWidth-uo:vs&&(vr||Wo)&&uo>0?-uo:uo}},size:function Qt(Di){var Wo,uo=0;for(Wo in Di)Di.hasOwnProperty(Wo)&&"toJSON"!=Wo&&uo++;return uo},toCamelCase:To,toHyphens:function eo(Di){return Di.replace(/([a-z][A-Z])/g,function(uo){return uo.charAt(0)+"-"+uo.charAt(1).toLowerCase()})},getOffset:it.getOffset||function gi(Di,uo,Wo){uo||(uo="offset");var vr=Di[uo](),Jr={top:vr.top,right:vr.right,bottom:vr.bottom,left:vr.left};if(kn.browser.msie&&(kn.pointers||kn.msPointers)&&!Wo){var ns=kn.isRtl(Di)?1:-1;Jr.top-=ze.pageYOffset-document.documentElement.scrollTop,Jr.left-=ze.pageXOffset+ns*document.documentElement.scrollLeft}return Jr},parseEffects:it.parseEffects||function Po(Di){var uo={};return Hn("string"==typeof Di?Di.split(" "):Di,function(Wo){uo[Wo]=this}),uo},toggleClass:it.toggleClass||function za(Di,uo,Wo,vr){return uo&&(uo=uo.split(" "),Hn(uo,function(Jr,ns){Di.toggleClass(ns,vr)})),Di},directions:it.directions||{left:{reverse:"right"},right:{reverse:"left"},down:{reverse:"up"},up:{reverse:"down"},top:{reverse:"bottom"},bottom:{reverse:"top"},in:{reverse:"out"},out:{reverse:"in"}},Observable:Ci,Class:He,Template:Vn,template:Vn.compile.bind(Vn),render:Vn.render.bind(Vn),stringify:Dn.stringify.bind(Dn),eventTarget:Vc,htmlEncode:function va(Di){return(""+Di).replace(cl,"&amp;").replace(yc,"&lt;").replace(Wl,"&gt;").replace(bc,"&quot;").replace(ec,"&#39;")},unescape:function Hc(Di){var uo;try{uo=ze.decodeURIComponent(Di)}catch{uo=Di.replace(/%u([\dA-F]{4})|%([\dA-F]{2})/gi,function(vr,Jr,ns){return String.fromCharCode(parseInt("0x"+(Jr||ns),16))})}return uo},isLocalUrl:function(Di){return Di&&!Tl.test(Di)},expr:function(Di,uo,Wo){return typeof uo==ft&&(Wo=uo,uo=!1),Wo=Wo||"d",(Di=Di||"")&&"["!==Di.charAt(0)&&(Di="."+Di),uo?(Di=function(Di,uo){var vr,Jr,ns,vs,Wo=uo||"d",Ns=1;for(Jr=0,ns=Di.length;Jr<ns;Jr++)""!==(vs=Di[Jr])&&(0!==(vr=vs.indexOf("["))&&(-1==vr?vs="."+vs:(Ns++,vs="."+vs.substring(0,vr)+" || {})"+vs.substring(vr))),Ns++,Wo+=vs+(Jr<ns-1?" || {})":")"));return new Array(Ns).join("(")+Wo}((Di=(Di=Di.replace(/"([^.]*)\.([^"]*)"/g,'"$1_$DOT$_$2"')).replace(/'([^.]*)\.([^']*)'/g,"'$1_$DOT$_$2'")).split("."),Wo),Di=Di.replace(/_\$DOT\$_/g,".")):Di=Wo+Di,Di},getter:function(Di,uo){var Wo=Di+uo;return Pt[Wo]=Pt[Wo]||new Function("d","return "+it.expr(Di,uo))},setter:function(Di){return $t[Di]=$t[Di]||new Function("d,value",it.expr(Di)+"=value")},accessor:function(Di){return{get:it.getter(Di),set:it.setter(Di)}},guid:function(){var uo,Wo,Di="";for(Di+="abcdef"[Math.floor(Math.random()*Math.floor(6))],uo=1;uo<32;uo++)Wo=16*Sn.random()|0,(8==uo||12==uo||16==uo||20==uo)&&(Di+="-"),Di+=(12==uo?4:16==uo?3&Wo|8:Wo).toString(16);return Di},roleSelector:function(Di){return Di.replace(/(\S+)/g,"["+it.attr("role")+"=$1],").slice(0,-1)},directiveSelector:function(Di){var uo=Di.split(" ");if(uo)for(var Wo=0;Wo<uo.length;Wo++)"view"!=uo[Wo]&&(uo[Wo]=uo[Wo].replace(/(\w*)(view|bar|strip|over)$/,"$1-$2"));return uo.join(" ").replace(/(\S+)/g,"kendo-mobile-$1,").slice(0,-1)},triggeredByInput:function(Di){return/^(label|input|textarea|select)$/i.test(Di.target.tagName)},onWidgetRegistered:function(Di){for(var uo=0,Wo=it.widgets.length;uo<Wo;uo++)Di(it.widgets[uo]);it._widgetRegisteredCallbacks.push(Di)},logToConsole:function(Di,uo){var Wo=ze.console;!it.suppressLog&&typeof Wo<"u"&&Wo.log&&Wo[uo||"log"](Di)}}),Ci.extend({init:function(Di,uo){var Wo=this;(function rc(){_d.validatePackage(Xe)})(),Wo.element=it.jQuery(Di).handler(Wo),Wo.angular("init",uo),Ci.fn.init.call(Wo);var Jr,vr=uo?uo.dataSource:null;uo&&(Jr=(Wo.componentTypes||{})[(uo||{}).componentType]),vr&&(uo=Dt({},uo,{dataSource:{}})),uo=Wo.options=Dt(!0,{},Wo.options,Wo.defaults,Jr||{},uo),vr&&(uo.dataSource=vr),Wo.element.attr(it.attr("role"))||Wo.element.attr(it.attr("role"),(uo.name||"").toLowerCase()),Wo.element.data("kendo"+uo.prefix+uo.name,Wo),Wo.bind(Wo.events,uo)},events:[],options:{prefix:""},_hasBindingTarget:function(){return!!this.element[0].kendoBindingTarget},_tabindex:function(Di){var uo=this.element,Wo="tabindex",vr=(Di=Di||this.wrapper).attr(Wo)||uo.attr(Wo);uo.removeAttr(Wo),Di.attr(Wo,isNaN(vr)?0:vr)},setOptions:function(Di){this._clearCssClasses(Di),this._setEvents(Di),Ke.extend(this.options,Di),this._applyCssClasses()},_setEvents:function(Di){for(var Jr,uo=this,Wo=0,vr=uo.events.length;Wo<vr;Wo++)uo.options[Jr=uo.events[Wo]]&&Di[Jr]&&(uo.unbind(Jr,uo.options[Jr]),uo._events&&uo._events[Jr]&&delete uo._events[Jr]);uo.bind(uo.events,Di)},resize:function(Di){var uo=this.getSize(),Wo=this._size;(Di||(uo.width>0||uo.height>0)&&(!Wo||uo.width!==Wo.width||uo.height!==Wo.height))&&(this._size=uo,this._resize(uo,Di),this.trigger("resize",uo))},getSize:function(){return it.dimensions(this.element)},size:function(Di){if(!Di)return this.getSize();this.setSize(Di)},setSize:Ke.noop,_resize:Ke.noop,destroy:function(){var Di=this;Di.element.removeData("kendo"+Di.options.prefix+Di.options.name),Di.element.removeData("handler"),Di.unbind()},_destroy:function(){this.destroy()},angular:function(){},_muteAngularRebind:function(Di){this._muteRebind=!0,Di.call(this),this._muteRebind=!1},_applyCssClasses:function(Di){var ns,vs,Ns,Is,uo=this.__proto__.options,Wo=this.options,vr=Di||this.wrapper||this.element,Jr=[];if(it.cssProperties.propertyDictionary[uo.name]){for(ns=0;ns<Nn.length;ns++)Is=this.options._altname||uo.name,uo.hasOwnProperty(vs=Nn[ns])&&("themeColor"===vs?(Ns=it.cssProperties.getValidClass({widget:Is,propName:"fillMode",value:Wo.fillMode}))&&Ns.length&&Jr.push(it.cssProperties.getValidClass({widget:Is,propName:vs,value:Wo[vs],fill:Wo.fillMode})):Jr.push(it.cssProperties.getValidClass({widget:Is,propName:vs,value:Wo[vs]})));vr.addClass(Jr.join(" "))}},_ariaLabel:function(Di){var Ns,Wo=this.element,vr=Wo.attr("id"),Jr=Ke('label[for="'+vr+'"]'),ns=Wo.attr(At),vs=Wo.attr(Be);Di[0]!==Wo[0]&&(ns?Di.attr(At,ns):vs?Di.attr(Be,vs):Jr.length&&(Ns=Jr.attr("id")||this._generateLabelId(Jr,vr||it.guid()),Di.attr(Be,Ns)))},_clearCssClasses:function(Di,uo){var ns,vs,Ns,Wo=this.__proto__.options,vr=this.options,Jr=uo||this.wrapper||this.element;if(it.cssProperties.propertyDictionary[Wo.name])for(ns=0;ns<Nn.length;ns++)Ns=this.options._altname||Wo.name,Wo.hasOwnProperty(vs=Nn[ns])&&Di.hasOwnProperty(vs)&&("themeColor"===vs?Jr.removeClass(it.cssProperties.getValidClass({widget:Ns,propName:vs,value:vr[vs],fill:vr.fillMode})):("fillMode"===vs&&Jr.removeClass(it.cssProperties.getValidClass({widget:Ns,propName:"themeColor",value:vr.themeColor,fill:vr.fillMode})),Jr.removeClass(it.cssProperties.getValidClass({widget:Ns,propName:vs,value:vr[vs]}))))},_generateLabelId:function(Di,uo){var Wo=uo+"_label";return Di.attr("id",Wo),Wo}})),Id=cc.extend({dataItems:function(){return this.dataSource.flatView()},_angularItems:function(Di){var uo=this;uo.angular(Di,function(){return{elements:uo.items(),data:Ke.map(uo.dataItems(),function(Wo){return{dataItem:Wo}})}})}}),vu=(it.dimensions=function(Di,uo){var Wo=Di[0];return uo&&Di.css(uo),{width:Wo.offsetWidth,height:Wo.offsetHeight}},it.notify=Co,/template$/i),th=/^\s*(?:\{(?:.|\r\n|\n)*\}|\[(?:.|\r\n|\n)*\])\s*$/,Uh=/^\{(\d+)(:[^\}]+)?\}|^\[[A-Za-z_]+\]$/,Jc=/([A-Z])/g;function nh(Di,uo){var Wo;return 0===uo.indexOf("data")&&(uo=(uo=uo.substring(4)).charAt(0).toLowerCase()+uo.substring(1)),uo=uo.replace(Jc,"-$1"),null===(Wo=Di.getAttribute("data-"+it.ns+uo))?Wo=St:"null"===Wo?Wo=null:"true"===Wo?Wo=!0:"false"===Wo?Wo=!1:cn.test(Wo)&&"mask"!=uo&&"format"!=uo?Wo=parseFloat(Wo):th.test(Wo)&&!Uh.test(Wo)&&(Wo=new Function("return ("+Wo+")")()),Wo}function cd(Di,uo,Wo){var Jr,ns,vr={},vs=Di.getAttribute("data-"+it.ns+"role");for(Jr in uo)(ns=nh(Di,Jr))!==St&&(vu.test(Jr)&&"drawer"!=vs&&("string"==typeof ns?Ke("#"+ns).length?ns=it.template(Ke("#"+ns).html()):Wo&&(ns=it.template(Wo[ns])):ns=Di.getAttribute(Jr)),vr[Jr]=ns);return vr}function Cd(Di,uo){return Ke.contains(Di,uo)?-1:1}function yu(){var Di=Ke(this);return Ke.inArray(Di.attr("data-"+it.ns+"role"),["slider","rangeslider","breadcrumb"])>-1||Di.is(":visible")}it.initWidget=function(Di,uo,Wo){var vr,Jr,ns,vs,Ns,Is,qs,fa,ye,bt;if(Wo?Wo.roles&&(Wo=Wo.roles):Wo=it.ui.roles,Is=(Di=Di.nodeType?Di:Di[0]).getAttribute("data-"+it.ns+"role")){ns=(ye=-1===Is.indexOf("."))?Wo[Is]:it.getter(Is)(ze);var be=Ke(Di).data(),st=ns?"kendo"+ns.fn.options.prefix+ns.fn.options.name:"";for(var ei in bt=ye?new RegExp("^kendo.*"+Is+"$","i"):new RegExp("^"+st+"$","i"),be)if(ei.match(bt)){if(ei!==st)return be[ei];vr=be[ei]}if(ns){for(fa=nh(Di,"dataSource"),uo=Ke.extend({},cd(Di,Ke.extend({},ns.fn.options,ns.fn.defaults)),uo),fa&&(uo.dataSource=typeof fa===ft?it.getter(fa)(ze):fa),vs=0,Ns=ns.fn.events.length;vs<Ns;vs++)(qs=nh(Di,Jr=ns.fn.events[vs]))!==St&&(uo[Jr]=it.getter(qs)(ze));return vr?Ke.isEmptyObject(uo)||vr.setOptions(uo):vr=new ns(Di,uo),vr}}},it.rolesFromNamespaces=function(Di){var Wo,vr,uo=[];for(Di[0]||(Di=[it.ui,it.dataviz.ui]),Wo=0,vr=Di.length;Wo<vr;Wo++)uo[Wo]=Di[Wo].roles;return Dt.apply(null,[{}].concat(uo.reverse()))},it.init=function(Di){var uo=it.rolesFromNamespaces(Xn.call(arguments,1));Ke(Di).find("[data-"+it.ns+"role]").addBack().each(function(){it.initWidget(this,{},uo)})},it.destroy=function(Di){Ke(Di).find("[data-"+it.ns+"role]").addBack().each(function(){var uo=Ke(this).data();for(var Wo in uo)0===Wo.indexOf("kendo")&&typeof uo[Wo].destroy===Ht&&uo[Wo].destroy()})},it.resize=function(Di,uo){var Wo=Ke(Di).find("[data-"+it.ns+"role]").addBack().filter(yu);if(Wo.length){var vr=Ke.makeArray(Wo);vr.sort(Cd),Ke.each(vr,function(){var Jr=it.widgetInstance(Ke(this));Jr&&Jr.resize(uo)})}},it.parseOptions=cd,Dt(it.ui,{Widget:cc,DataBoundWidget:Id,roles:{},progress:function(Di,uo,Wo){var vs,Ns,Is,qs,fa,vr=Di.find(".k-loading-mask"),Jr=it.support,ns=Jr.browser;fa=(Wo=Ke.extend({},{width:"100%",height:"100%",top:Di.scrollTop(),opacity:!1},Wo)).opacity?"k-loading-mask k-opaque":"k-loading-mask",uo?vr.length||(Ns=(vs=Jr.isRtl(Di))?"right":"left",qs=it.scrollLeft(Di),Is=ns.webkit&&vs?Di[0].scrollWidth-Di.width()-2*qs:0,vr=Ke(it.format("<div class='{0}'><span role='alert' aria-live='polite' class='k-loading-text'>{1}</span><div class='k-loading-image'></div><div class='k-loading-color'></div></div>",fa,it.ui.progress.messages.loading)).width(Wo.width).height(Wo.height).css("top",Wo.top).css(Ns,Math.abs(qs)+Is).prependTo(Di)):vr&&vr.remove()},plugin:function(Di,uo,Wo){var Jr,vr=Di.fn.options.name;Wo=Wo||"",(uo=uo||it.ui)[vr]=Di,uo.roles[vr.toLowerCase()]=Di,Jr="getKendo"+Wo+vr;var ns={name:vr="kendo"+Wo+vr,widget:Di,prefix:Wo||""};it.widgets.push(ns);for(var vs=0,Ns=it._widgetRegisteredCallbacks.length;vs<Ns;vs++)it._widgetRegisteredCallbacks[vs](ns);Ke.fn[vr]=function(Is){var fa,qs=this;return typeof Is===ft?(fa=Xn.call(arguments,1),this.each(function(){var bt,be,ye=Ke.data(this,vr);if(!ye)throw new Error(it.format("Cannot call method '{0}' of {1} before it is initialized",Is,vr));if(typeof(bt=ye[Is])!==Ht)throw new Error(it.format("Cannot find method '{0}' of {1}",Is,vr));if((be=bt.apply(ye,fa))!==St)return qs=be,!1})):this.each(function(){return new Di(this,Is)}),qs},Ke.fn[vr].widget=Di,Ke.fn[Jr]=function(){return this.data(vr)}}}),it.ui.progress.messages={loading:"Loading..."};var bu={bind:function(){return this},nullObject:!0,options:{}},nu=cc.extend({init:function(Di,uo){cc.fn.init.call(this,Di,uo),this.element.autoApplyNS(),this.wrapper=this.element,this.element.addClass("km-widget")},destroy:function(){cc.fn.destroy.call(this),this.element.kendoDestroy()},options:{prefix:"Mobile"},events:[],view:function(){var Di=this.element.closest(it.roleSelector("view splitview modalview drawer"));return it.widgetInstance(Di,it.mobile.ui)||bu},viewHasNativeScrolling:function(){var Di=this.view();return Di&&Di.options.useNativeScrolling},container:function(){var Di=this.element.closest(it.roleSelector("view layout modalview drawer splitview"));return it.widgetInstance(Di.eq(0),it.mobile.ui)||bu}});Dt(it.mobile,{init:function(Di){it.init(Di,it.mobile.ui,it.ui,it.dataviz.ui)},appLevelNativeScrolling:function(){return it.mobile.application&&it.mobile.application.options&&it.mobile.application.options.useNativeScrolling},roles:{},ui:{Widget:nu,DataBoundWidget:Id.extend(nu.prototype),roles:{},plugin:function(Di){it.ui.plugin(Di,it.mobile.ui,"Mobile")}}}),nl(it.dataviz,{init:function(Di){it.init(Di,it.dataviz.ui)},ui:{roles:{},themes:{},views:[],plugin:function(Di){it.ui.plugin(Di,it.dataviz.ui)}},roles:{}}),it.touchScroller=function(Di,uo){return uo||(uo={}),uo.useNative=!0,Ke(Di).map(function(Wo,vr){return vr=Ke(vr),!(!kn.kineticScrollNeeded||!it.mobile.ui.Scroller||vr.data("kendoMobileScroller"))&&(vr.kendoMobileScroller(uo),vr.data("kendoMobileScroller"))})[0]},it.preventDefault=function(Di){Di.preventDefault()},it.widgetInstance=function(Di,uo){var Jr,ns,Wo=Di.data(it.ns+"role"),vr=[],vs=Di.data("kendoView");if(Wo){if("content"===Wo&&(Wo="scroller"),"editortoolbar"===Wo){var Ns=Di.data("kendoEditorToolbar");if(Ns)return Ns}if("view"===Wo&&vs)return vs;if(uo)if(uo[0])for(Jr=0,ns=uo.length;Jr<ns;Jr++)vr.push(uo[Jr].roles[Wo]);else vr.push(uo.roles[Wo]);else vr=[it.ui.roles[Wo],it.dataviz.ui.roles[Wo],it.mobile.ui.roles[Wo]];for(Wo.indexOf(".")>=0&&(vr=[it.getter(Wo)(ze)]),Jr=0,ns=vr.length;Jr<ns;Jr++){var Is=vr[Jr];if(Is){var qs=Di.data("kendo"+Is.fn.options.prefix+Is.fn.options.name);if(qs)return qs}}}},it.onResize=function(Di){var uo=Di;return kn.mobileOS.android&&(uo=function(){setTimeout(Di,600)}),Ke(ze).on(kn.resize,uo),uo},it.unbindResize=function(Di){Ke(ze).off(kn.resize,Di)},it.attrValue=function(Di,uo){return Di.data(it.ns+uo)},it.days={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6},Ke.extend(Ke.expr.pseudos,{kendoFocusable:function(Di){var uo=Ke.attr(Di,"tabindex");return function Zu(Di,uo){var Wo=Di.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(Wo)?!Di.disabled:"a"===Wo&&Di.href||uo)&&function mc(Di){return Ke.expr.pseudos.visible(Di)&&!Ke(Di).parents().addBack().filter(function(){return"hidden"===Ke.css(this,"visibility")}).length}(Di)}(Di,!isNaN(uo)&&uo>-1)}});var xd=["mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","click"],Fl={setupMouseMute:function(){var Di=0,uo=xd.length,Wo=document.documentElement;if(!Fl.mouseTrap&&kn.eventCapture){Fl.mouseTrap=!0,Fl.bustClick=!1,Fl.captureMouse=!1;for(var vr=function(Jr){Fl.captureMouse&&("click"===Jr.type?Fl.bustClick&&!Ke(Jr.target).is("label, input, [data-rel=external]")&&(Jr.preventDefault(),Jr.stopPropagation()):Jr.stopPropagation())};Di<uo;Di++)Wo.addEventListener(xd[Di],vr,!0)}},muteMouse:function(Di){Fl.captureMouse=!0,Di.data.bustClick&&(Fl.bustClick=!0),clearTimeout(Fl.mouseTrapTimeoutID)},unMuteMouse:function(){clearTimeout(Fl.mouseTrapTimeoutID),Fl.mouseTrapTimeoutID=setTimeout(function(){Fl.captureMouse=!1,Fl.bustClick=!1},400)}},Jd={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"};kn.touch&&(kn.mobileOS.ios||kn.mobileOS.android)?Jd={down:"touchstart",move:"touchmove",up:"touchend touchcancel",cancel:"touchcancel"}:kn.pointers?Jd={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"}:kn.msPointers&&(Jd={down:"MSPointerDown",move:"MSPointerMove",up:"MSPointerUp",cancel:"MSPointerCancel MSPointerLeave"}),kn.msPointers&&!("onmspointerenter"in ze)&&Ke.each({MSPointerEnter:"MSPointerOver",MSPointerLeave:"MSPointerOut"},function(Di,uo){Ke.event.special[Di]={delegateType:uo,bindType:uo,handle:function(Wo){var vr,ns=Wo.relatedTarget,vs=Wo.handleObj;return(!ns||ns!==this&&!Ke.contains(this,ns))&&(Wo.type=vs.origType,vr=vs.handler.apply(this,arguments),Wo.type=uo),vr}}});var Jl=function(Di){return Jd[Di]||Di},gd=/([^ ]+)/g,dd=(it.applyEventMap=function(Di,uo){return Di=Di.replace(gd,Jl),uo&&(Di=Di.replace(gd,"$1."+uo)),Di},it.keyDownHandler=function(Di,uo){var Wo=uo._events.kendoKeydown;if(!Wo)return!0;Wo=Wo.slice(),Di.sender=uo,Di.preventKendoKeydown=!1;for(var vr=0,Jr=Wo.length;vr<Jr;vr++)Wo[vr].call(uo,Di);return!Di.preventKendoKeydown},Ke.fn.on);function gc(Di,uo){return new gc.fn.init(Di,uo)}Ae(!0,gc,Ke),(((gc.fn=gc.prototype=new Ke).constructor=gc).fn.init=function(Di,uo){return uo&&uo instanceof Ke&&!(uo instanceof gc)&&(uo=gc(uo)),Ke.fn.init.call(this,Di,uo,ih)}).prototype=gc.fn;var ih=gc(document),Cu=(Dt(gc.fn,{handler:function(Di){return this.data("handler",Di),this},autoApplyNS:function(Di){return this.data("kendoNS",Di||it.guid()),this},on:function(){var Di=this,uo=Di.data("kendoNS");if(1===arguments.length)return dd.call(Di,arguments[0]);var Wo=Di,vr=Xn.call(arguments);typeof vr[vr.length-1]===Ve&&vr.pop();var Jr=vr[vr.length-1],ns=it.applyEventMap(vr[0],uo);if(kn.mouseAndTouchPresent&&ns.search(/mouse|click/)>-1&&this[0]!==document.documentElement){Fl.setupMouseMute();var vs=2===vr.length?null:vr[1],Ns=ns.indexOf("click")>-1&&ns.indexOf("touchend")>-1;dd.call(this,{touchstart:Fl.muteMouse,touchend:Fl.unMuteMouse},vs,{bustClick:Ns})}if(-1!==arguments[0].indexOf("keydown")&&vr[1]&&vr[1].options){vr[0]=ns;var Is=vr[1],qs=vr[vr.length-1];return vr[vr.length-1]=function(fa){if(it.keyDownHandler(fa,Is))return qs.apply(this,[fa])},dd.apply(Di,vr),Di}return typeof Jr===ft&&(Wo=Di.data("handler"),Jr=Wo[Jr],vr[vr.length-1]=function(fa){Jr.call(Wo,fa)}),vr[0]=ns,dd.apply(Di,vr),Di},kendoDestroy:function(Di){return(Di=Di||this.data("kendoNS"))&&this.off("."+Di),this}}),it.jQuery=gc,it.eventMap=Jd,it.timezone=function(){var Di={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11},uo={Sun:0,Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6};function Wo(bt,be){var st,ei,_o,gr=be[3],ds=be[4],us=be[5],zs=be[8];return zs||(be[8]=zs={}),zs[bt]?zs[bt]:(isNaN(ds)?0===ds.indexOf("last")?(st=new Date(Date.UTC(bt,Di[gr]+1,1,us[0]-24,us[1],us[2],0)),ei=uo[ds.substr(4,3)],_o=st.getUTCDay(),st.setUTCDate(st.getUTCDate()+ei-_o-(ei>_o?7:0))):ds.indexOf(">=")>=0?(st=new Date(Date.UTC(bt,Di[gr],ds.substr(5),us[0],us[1],us[2],0)),ei=uo[ds.substr(0,3)],_o=st.getUTCDay(),st.setUTCDate(st.getUTCDate()+ei-_o+(ei<_o?7:0))):ds.indexOf("<=")>=0&&(st=new Date(Date.UTC(bt,Di[gr],ds.substr(5),us[0],us[1],us[2],0)),ei=uo[ds.substr(0,3)],_o=st.getUTCDay(),st.setUTCDate(st.getUTCDate()+ei-_o-(ei>_o?7:0))):st=new Date(Date.UTC(bt,Di[gr],ds,us[0],us[1],us[2],0)),zs[bt]=st)}function vr(bt,be,st){if(!(be=be[st])){var ei=st.split(":"),_o=0;return ei.length>1&&(_o=60*ei[0]+Number(ei[1])),[-1e6,"max","-","Jan",1,[0,0,0],_o,"-"]}var gr=new Date(bt).getUTCFullYear();(be=ra.grep(be,function(us){var zs=us[0],Ta=us[1];return zs<=gr&&(Ta>=gr||zs==gr&&"only"==Ta||"max"==Ta)})).push(bt),be.sort(function(us,zs){return"number"!=typeof us&&(us=Number(Wo(gr,us))),"number"!=typeof zs&&(zs=Number(Wo(gr,zs))),us-zs});var ds=be[ra.inArray(bt,be)-1]||be[be.length-1];return isNaN(ds)?ds:null}function ns(bt,be,st,ei){typeof bt!=Nt&&(bt=Date.UTC(bt.getFullYear(),bt.getMonth(),bt.getDate(),bt.getHours(),bt.getMinutes(),bt.getSeconds(),bt.getMilliseconds()));var _o=function Jr(bt,be,st){var ei=be[st];if("string"==typeof ei&&(ei=be[ei]),!ei)throw new Error('Timezone "'+st+'" is either incorrect, or kendo.timezones.min.js is not included.');for(var _o=ei.length-1;_o>=0;_o--){var gr=ei[_o][3];if(gr&&bt>gr)break}var ds=ei[_o+1];if(!ds)throw new Error('Timezone "'+st+'" not found on '+bt+".");return ds}(bt,be,ei);return{zone:_o,rule:vr(bt,st,_o[1])}}return{zones:{},rules:{},offset:function vs(bt,be){if("Etc/UTC"==be||"Etc/GMT"==be)return 0;var st=ns(bt,this.zones,this.rules,be),ei=st.zone,_o=st.rule;return it.parseFloat(_o?ei[0]-_o[6]:ei[0])},convert:function Is(bt,be,st){var _o,ei=st;typeof be==ft&&(be=this.offset(bt,be)),typeof st==ft&&(st=this.offset(bt,st));var gr=bt.getTimezoneOffset(),ds=(bt=new Date(bt.getTime()+6e4*(be-st))).getTimezoneOffset();return typeof ei==ft&&(ei=this.offset(bt,ei)),_o=ds-gr+(st-ei),new Date(bt.getTime()+6e4*_o)},apply:function qs(bt,be){return this.convert(bt,bt.getTimezoneOffset(),be)},remove:function fa(bt,be){return this.convert(bt,be,bt.getTimezoneOffset())},abbr:function Ns(bt,be){var st=ns(bt,this.zones,this.rules,be),_o=st.rule,gr=st.zone[2];return gr.indexOf("/")>=0?gr.split("/")[_o&&+_o[6]?1:0]:gr.indexOf("%s")>=0?gr.replace("%s",_o&&"-"!=_o[7]?_o[7]:""):gr},toLocalDate:function ye(bt){return this.apply(new Date(bt),"Etc/UTC")}}}(),it.date=function(){var Di=6e4,uo=864e5;function Wo(v,ue){return 0===ue&&23===v.getHours()&&(v.setHours(v.getHours()+2),!0)}function vr(v,ue,dt){var In=v.getHours();dt=dt||1,ue=(ue-v.getDay()+7*dt)%7,v.setDate(v.getDate()+ue),Wo(v,In)}function Jr(v,ue,dt){return vr(v=new Date(v),ue,dt),v}function ns(v){return new Date(v.getFullYear(),v.getMonth(),1)}function fa(v,ue){var dt=new Date(v.getFullYear(),0,1,-6),In=function qs(v,ue){return 1!==ue?gr(Jr(v,ue,-1),4):gr(v,4-(v.getDay()||7))}(v,ue),er=In.getTime()-dt.getTime(),Br=Math.floor(er/uo);return 1+Math.floor(Br/7)}function bt(v){return Wo(v=new Date(v.getFullYear(),v.getMonth(),v.getDate(),0,0,0),0),v}function st(v){return Pe(v).getTime()-bt(Pe(v))}function gr(v,ue){var dt=v.getHours();return ds(v=new Date(v),ue*uo),Wo(v,dt),v}function ds(v,ue,dt){var er,In=v.getTimezoneOffset();v.setTime(v.getTime()+ue),dt||(er=v.getTimezoneOffset()-In,v.setTime(v.getTime()+er*Di))}function zs(){return bt(new Date)}function Pe(v){var ue=new Date(1980,1,1,0,0,0);return v&&ue.setHours(v.getHours(),v.getMinutes(),v.getSeconds(),v.getMilliseconds()),ue}function Tn(v,ue){var dt=new Date(v);return new Date(dt.setFullYear(dt.getFullYear()+ue))}return{adjustDST:Wo,dayOfWeek:Jr,setDayOfWeek:vr,getDate:bt,isInDateRange:function _o(v,ue,dt){var Br,In=ue.getTime(),er=dt.getTime();return In>=er&&(er+=uo),(Br=v.getTime())>=In&&Br<=er},isInTimeRange:function ei(v,ue,dt){var Br,In=st(ue),er=st(dt);return!v||In==er||(ue>=dt&&(dt+=uo),In>(Br=st(v))&&(Br+=uo),er<In&&(er+=uo),Br>=In&&Br<=er)},isToday:function Ta(v){return bt(v).getTime()==zs().getTime()},nextDay:function(v){return gr(v,1)},previousDay:function(v){return gr(v,-1)},toUtcTime:function be(v){return Date.UTC(v.getFullYear(),v.getMonth(),v.getDate(),v.getHours(),v.getMinutes(),v.getSeconds(),v.getMilliseconds())},MS_PER_DAY:uo,MS_PER_HOUR:60*Di,MS_PER_MINUTE:Di,setTime:ds,setHours:function us(v,ue){return Wo(v=new Date(v.getFullYear(),v.getMonth(),v.getDate(),ue.getHours(),ue.getMinutes(),ue.getSeconds(),ue.getMilliseconds()),ue.getHours()),v},addDays:gr,today:zs,toInvariantTime:Pe,firstDayOfMonth:ns,lastDayOfMonth:function vs(v){var ue=new Date(v.getFullYear(),v.getMonth()+1,0),dt=ns(v),In=Math.abs(ue.getTimezoneOffset()-dt.getTimezoneOffset());return In&&ue.setHours(dt.getHours()+In/60),ue},weekInYear:function ye(v,ue){ue===St&&(ue=it.culture().calendar.firstDay);var dt=gr(v,-7),In=gr(v,7),er=fa(v,ue);return 0===er?fa(dt,ue)+1:53===er&&fa(In,ue)>1?1:er},getMilliseconds:st,firstDayOfYear:function Ns(v){return new Date(v.getFullYear(),0,1)},lastDayOfYear:function Is(v){return new Date(v.getFullYear(),11,31)},nextYear:function(v){return Tn(v,1)},previousYear:function(v){return Tn(v,-1)}}}(),it.stripWhitespace=function(Di){if(document.createNodeIterator)for(var uo=document.createNodeIterator(Di,NodeFilter.SHOW_TEXT,function(Jr){return Jr.parentNode==Di?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},!1);uo.nextNode();)uo.referenceNode&&!uo.referenceNode.textContent.trim()&&uo.referenceNode.parentNode.removeChild(uo.referenceNode);else for(var Wo=0;Wo<Di.childNodes.length;Wo++){var vr=Di.childNodes[Wo];3==vr.nodeType&&!/\S/.test(vr.nodeValue)&&(Di.removeChild(vr),Wo--),1==vr.nodeType&&it.stripWhitespace(vr)}},ze.requestAnimationFrame||ze.webkitRequestAnimationFrame||ze.mozRequestAnimationFrame||ze.oRequestAnimationFrame||ze.msRequestAnimationFrame||function(Di){setTimeout(Di,1e3/60)}),id=(it.animationFrame=function(Di){Cu.call(ze,Di)},[]),ph=(it.queueAnimation=function(Di){id[id.length]=Di,1===id.length&&it.runNextAnimation()},it.runNextAnimation=function(){it.animationFrame(function(){id[0]&&(id.shift()(),id[0]&&it.runNextAnimation())})},it.parseQueryStringParams=function(Di){for(var Wo={},vr=(Di.split("?")[1]||"").split(/&|=/),Jr=vr.length,ns=0;ns<Jr;ns+=2)""!==vr[ns]&&(Wo[decodeURIComponent(vr[ns])]=decodeURIComponent(vr[ns+1]));return Wo},it.elementUnderCursor=function(Di){if(typeof Di.x.client<"u")return document.elementFromPoint(Di.x.client,Di.y.client)},it.wheelDeltaY=function(Di){var vr,uo=Di.originalEvent,Wo=uo.wheelDeltaY;return uo.wheelDelta?(Wo===St||Wo)&&(vr=uo.wheelDelta):uo.detail&&uo.axis===uo.VERTICAL_AXIS&&(vr=10*-uo.detail),vr},it.throttle=function(Di,uo){var Wo,vr=0;if(!uo||uo<=0)return Di;var Jr=function(){var ns=this,vs=+new Date-vr,Ns=arguments;function Is(){Di.apply(ns,Ns),vr=+new Date}if(!vr)return Is();Wo&&clearTimeout(Wo),vs>uo?Is():Wo=setTimeout(Is,uo-vs)};return Jr.cancel=function(){clearTimeout(Wo)},Jr},it.caret=function(Di,uo,Wo){var vr,Jr=uo!==St;if(Wo===St&&(Wo=uo),Di[0]&&(Di=Di[0]),!Jr||!Di.disabled){try{if(Di.selectionStart!==St)if(Jr){Di.focus();var ns=kn.mobileOS;ns.wp||ns.android?setTimeout(function(){Di.setSelectionRange(uo,Wo)},0):Di.setSelectionRange(uo,Wo)}else uo=[Di.selectionStart,Di.selectionEnd];else if(document.selection)if(Ke(Di).is(":visible")&&Di.focus(),vr=Di.createTextRange(),Jr)vr.collapse(!0),vr.moveStart("character",uo),vr.moveEnd("character",Wo-uo),vr.select();else{var Ns,vs=vr.duplicate();vr.moveToBookmark(document.selection.createRange().getBookmark()),vs.setEndPoint("EndToStart",vr),uo=[Ns=vs.text.length,Ns+vr.text.length]}}catch{uo=[]}return uo}},it.compileMobileDirective=function(Di,uo){var Wo=ze.angular;return Di.attr("data-"+it.ns+"role",Di[0].tagName.toLowerCase().replace("kendo-mobile-","").replace("-","")),Wo.element(Di).injector().invoke(["$compile",function(vr){vr(Di)(uo),/^\$(digest|apply)$/.test(uo.$$phase)||uo.$digest()}]),it.widgetInstance(Di,it.mobile.ui)},it.antiForgeryTokens=function(){var Di={},uo=Ke("meta[name=csrf-token],meta[name=_csrf]").attr("content"),Wo=Ke("meta[name=csrf-param],meta[name=_csrf_header]").attr("content");return Ke("input[name^='__RequestVerificationToken']").each(function(){Di[this.name]=this.value}),Wo!==St&&uo!==St&&(Di[Wo]=uo),Di},it.cycleForm=function(Di){var uo=Di.find("input, .k-widget, .k-dropdownlist, .k-combobox").first(),Wo=Di.find("button, .k-button").last();function vr(Jr){var ns=it.widgetInstance(Jr);ns&&ns.focus?ns.focus():Jr.trigger("focus")}Wo.on("keydown",function(Jr){Jr.keyCode==it.keys.TAB&&!Jr.shiftKey&&(Jr.preventDefault(),vr(uo))}),uo.on("keydown",function(Jr){Jr.keyCode==it.keys.TAB&&Jr.shiftKey&&(Jr.preventDefault(),vr(Wo))})},it.focusElement=function(Di){var uo=[],Wo=Di.parentsUntil("body").filter(function(vr,Jr){return"visible"!==it.getComputedStyles(Jr,["overflow"]).overflow}).add(ze);Wo.each(function(vr,Jr){uo[vr]=Ke(Jr).scrollTop()});try{Di[0].setActive()}catch{Di[0].focus()}Wo.each(function(vr,Jr){Ke(Jr).scrollTop(uo[vr])})},it.focusNextElement=function(){if(document.activeElement){var Di=Ke(":kendoFocusable"),uo=Di.index(document.activeElement);uo>-1&&(Di[uo+1]||Di[0]).focus()}},it.trim=function(Di){return Di?Di.toString().trim():""},it.getWidgetFocusableElement=function(Di){var uo=Di.closest(":kendoFocusable"),Wo=it.widgetInstance(Di);return uo.length?uo:Wo?"Editor"===Wo.options.name?Ke(Wo.body):Wo.wrapper.find(":kendoFocusable").first():Di},it.addAttribute=function(Di,uo,Wo){var vr=Di.attr(uo)||"";vr.indexOf(Wo)<0&&Di.attr(uo,(vr+" "+Wo).trim())},it.removeAttribute=function(Di,uo,Wo){var vr=Di.attr(uo)||"";Di.attr(uo,vr.replace(Wo,"").trim())},it.toggleAttribute=function(Di,uo,Wo){(Di.attr(uo)||"").indexOf(Wo)<0?it.addAttribute(Di,uo,Wo):it.removeAttribute(Di,uo,Wo)},it.matchesMedia=function(Di){var uo=it._bootstrapToMedia(Di)||Di;return kn.matchMedia&&ze.matchMedia(uo).matches},it._bootstrapToMedia=function(Di){return{xs:"(max-width: 576px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"}[Di]},it.fileGroupMap={audio:[".aif",".iff",".m3u",".m4a",".mid",".mp3",".mpa",".wav",".wma",".ogg",".wav",".wma",".wpl"],video:[".3g2",".3gp",".avi",".asf",".flv",".m4u",".rm",".h264",".m4v",".mkv",".mov",".mp4",".mpg",".rm",".swf",".vob",".wmv"],image:[".ai",".dds",".heic",".jpe","jfif",".jif",".jp2",".jps",".eps",".bmp",".gif",".jpeg",".jpg",".png",".ps",".psd",".svg",".svgz",".tif",".tiff"],txt:[".doc",".docx",".log",".pages",".tex",".wpd",".wps",".odt",".rtf",".text",".txt",".wks"],presentation:[".key",".odp",".pps",".ppt",".pptx"],data:[".xlr",".xls",".xlsx"],programming:[".tmp",".bak",".msi",".cab",".cpl",".cur",".dll",".dmp",".drv",".icns",".ico",".link",".sys",".cfg",".ini",".asp",".aspx",".cer",".csr",".css",".dcr",".htm",".html",".js",".php",".rss",".xhtml"],pdf:[".pdf"],config:[".apk",".app",".bat",".cgi",".com",".exe",".gadget",".jar",".wsf"],zip:[".7z",".cbr",".gz",".sitx",".arj",".deb",".pkg",".rar",".rpm",".tar.gz",".z",".zip",".zipx"],"disc-image":[".dmg",".iso",".toast",".vcd",".bin",".cue",".mdf"]},it.getFileGroup=function(Di,uo){var Wo=it.fileGroupMap,vr=Object.keys(Wo);if(Di===St||!Di.length)return"file";for(var ns=0;ns<vr.length;ns+=1)if(Wo[vr[ns]].indexOf(Di.toLowerCase())>-1)return uo?"file-"+vr[ns]:vr[ns];return"file"},it.getFileSizeMessage=function(Di){if(0===Di)return"0 Byte";var Wo=parseInt(Math.floor(Math.log(Di)/Math.log(1024)),10);return Math.round(Di/Math.pow(1024,Wo),2)+" "+["Bytes","KB","MB","GB","TB"][Wo]},it.selectorFromClasses=function(Di){return"."+Di.split(" ").join(".")},["base","primary","secondary","tertiary","inherit","info","success","warning","error","dark","light","inverse"]),ud=["solid","outline","flat"],ql=["rectangle","square"],Ku=[["small","sm"],["medium","md"],["large","lg"]],od=[["small","sm"],["medium","md"],["large","lg"]],Ic=["fixed","static","sticky","absolute"],Gd=["both","horizontal","vertical"],$d=["auto","hidden","visible","scroll","clip"];function dc(Di,uo,Wo,vr){var Jr=Ke("<form>").attr({action:Wo,method:"POST",target:vr}),ns=it.antiForgeryTokens();ns.fileName=uo;var vs=Di.split(";base64,");for(var Ns in ns.contentType=vs[0].replace("data:",""),ns.base64=vs[1],ns)ns.hasOwnProperty(Ns)&&Ke("<input>").attr({value:ns[Ns],name:Ns,type:"hidden"}).appendTo(Jr);Jr.appendTo("body").submit().remove()}it.cssProperties=function(){var Di={};function Jr(Ns,Is,qs){Di[Ns]||(Di[Ns]={}),Di[Ns][Is]=qs||Is}function ns(Ns,Is){for(var qs=0;qs<Is.length;qs++)Ui(Is[qs])?Jr(Ns,Is[qs][0],Is[qs][1]):Jr(Ns,Is[qs])}return ns("themeColor",ph),ns("fillMode",ud),ns("shape",ql),ns("size",Ku),ns("positionMode",Ic),ns("rounded",od),ns("resize",Gd),ns("overflow",$d),{positionModeValues:Ic,roundedValues:od,sizeValues:Ku,shapeValues:ql,fillModeValues:ud,themeColorValues:ph,defaultValues:Di,propertyDictionary:{},registerValues:function vr(Ns,Is){var fa,ye,bt,be,st,ei,qs=it.cssProperties.propertyDictionary;for(fa=0;fa<Is.length;fa++)for(st=Is[fa].values,qs[Ns][bt=Is[fa].prop]||(qs[Ns][bt]={}),be=qs[Ns][bt],ye=0;ye<st.length;ye++)ei=st[ye],Ui(st[ye])?be[ei[0]]=ei[1]:be[ei]=ei},getValidClass:function vs(Ns){var ei,_o,qs=Ns.propName,fa=Ns.value,bt=it.cssProperties,st=bt.propertyDictionary[Ns.widget];return st&&(_o=(ei=st[qs])&&ei[fa]||bt.defaultValues[qs][fa])?("themeColor"===qs?st[Ge]+Ns.fill+"-":"positionMode"===qs?"k-pos-":"rounded"===qs?"k-rounded-":"resize"===qs?"k-resize-":"overflow"===qs?"k-overflow-":st[Ge])+_o:""},registerPrefix:function Wo(Ns,Is){var qs=it.cssProperties.propertyDictionary;qs[Ns]||(qs[Ns]={}),qs[Ns][Ge]=Is}}}(),it.registerCssClass=function(Di,uo,Wo){it.propertyToCssClassMap[Di]||(it.propertyToCssClassMap[Di]={}),it.propertyToCssClassMap[Di][uo]=Wo||uo},it.registerCssClasses=function(Di,uo){for(var Wo=0;Wo<uo.length;Wo++)Ui(uo[Wo])?it.registerCssClass(Di,uo[Wo][0],uo[Wo][1]):it.registerCssClass(Di,uo[Wo])},it.getValidCssClass=function(Di,uo,Wo){var vr=it.propertyToCssClassMap[uo][Wo];if(vr)return Di+vr},it.propertyToCssClassMap={},it.registerCssClasses("themeColor",ph),it.registerCssClasses("fill",ud),it.registerCssClasses("shape",ql),it.registerCssClasses("size",Ku),it.registerCssClasses("positionMode",Ic),it.whenAll=function(Di){var fa,uo=1==arguments.length&&Array.isArray(Di)?Di:Array.prototype.slice.call(arguments),Wo=uo.length,vr=Wo,Jr=Ke.Deferred(),ns=0,vs=0,Ns=Array(Wo),Is=Array(Wo),qs=Array(Wo);function ye(bt,be,st){return function(){st!=uo&&vs++,Jr.notifyWith(be[bt]=this,st[bt]=Array.prototype.slice.call(arguments)),--vr||Jr[(vs?"reject":"resolve")+"With"](be,st)}}for(;ns<Wo;ns++)(fa=uo[ns])&&it.isFunction(fa.promise)?fa.promise().done(ye(ns,qs,uo)).fail(ye(ns,Ns,Is)):(Jr.notifyWith(this,fa),--vr);return vr||Jr.resolveWith(qs,uo),Jr.promise()};var $c=document.createElement("a"),oc="download"in $c&&!it.support.browser.edge;function Hd(Di,uo){var Wo=Di;if("string"==typeof Di){for(var vr=Di.split(";base64,"),Jr=vr[0],ns=atob(vr[1]),vs=new Uint8Array(ns.length),Ns=0;Ns<ns.length;Ns++)vs[Ns]=ns.charCodeAt(Ns);Wo=new Blob([vs.buffer],{type:Jr})}navigator.msSaveBlob(Wo,uo)}function Rc(Di,uo){ze.Blob&&Di instanceof Blob&&(Di=URL.createObjectURL(Di)),$c.download=uo,$c.href=Di;var Wo=document.createEvent("MouseEvents");Wo.initMouseEvent("click",!0,!1,ze,0,0,0,0,0,!1,!1,!1,!1,0,null),$c.dispatchEvent(Wo),setTimeout(function(){URL.revokeObjectURL(Di)})}it.saveAs=function(Di){var uo=dc;Di.forceProxy||(oc?uo=Rc:navigator.msSaveBlob&&(uo=Hd)),uo(Di.dataURI,Di.fileName,Di.proxyURL,Di.proxyTarget)},it.proxyModelSetters=function(uo){var Wo={};return Object.keys(uo||{}).forEach(function(vr){Object.defineProperty(Wo,vr,{get:function(){return uo[vr]},set:function(Jr){uo[vr]=Jr,uo.dirty=!0}})}),Wo},it.getSeriesColors=function(){var uo=Ke('<div class="k-var--series-a"></div><div class="k-var--series-b"></div><div class="k-var--series-c"></div><div class="k-var--series-d"></div><div class="k-var--series-e"></div><div class="k-var--series-f"></div>'),Wo=[];return uo.appendTo(Ke("body")),uo.each(function(vr,Jr){Wo.push(Ke(Jr).css("background-color"))}),uo.remove(),Wo},it.isElement=function(Di){return Di instanceof Element||Di instanceof HTMLDocument},it.defaults=it.defaults||{},it.setDefaults=function(Di,uo){var Wo=Di.split("."),vr=it.defaults;Di=Wo.pop(),Wo.forEach(function(Jr){vr[Jr]===St&&(vr[Jr]={}),vr=vr[Jr]}),vr[Di]=uo.constructor===Object?nl({},vr[Di],uo):uo},it.class2type={},ra.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(Di,uo){it.class2type["[object "+uo+"]"]=uo.toLowerCase()}),it.type=function(Di){return null==Di?Di+"":"object"==typeof Di||"function"==typeof Di?it.class2type[Object.prototype.toString.call(Di)]||"object":typeof Di};var _d={validatePackage:function(){},setScriptKey:function(){}};return ze.KendoLicensing={setScriptKey:_d.setScriptKey},window.kendo}.apply(n={},ur))&&(e=n),void 0===(o=function(){var Xe=window.kendo.jQuery,ze=window.kendo,St=Xe.extend,it="\r\n",Dt="\r\n\r\n",Hn=ze.isFunction,Ui={eq:"eq",neq:"ne",gt:"gt",gte:"ge",lt:"lt",lte:"le",contains:"substringof",doesnotcontain:"substringof",endswith:"endswith",startswith:"startswith",isnull:"eq",isnotnull:"ne",isnullorempty:"eq",isnotnullorempty:"ne",isempty:"eq",isnotempty:"ne"},Co=St({},Ui,{contains:"contains"}),Sn={pageSize:Xe.noop,page:Xe.noop,filter:function(Ge,Be,At){Be&&(Be=Dn(Be,At))&&(Ge.$filter=Be)},sort:function(Ge,Be){var At=Xe.map(Be,function(Rt){var Pt=Rt.field.replace(/\./g,"/");return"desc"===Rt.dir&&(Pt+=" desc"),Pt}).join(",");At&&(Ge.$orderby=At)},skip:function(Ge,Be){Be&&(Ge.$skip=Be)},take:function(Ge,Be){Be&&(Ge.$top=Be)}},Vn={read:{dataType:"jsonp"}};function Dn(Ge,Be){var Pt,$t,Xn,Nn,Ae,He,Kt,On,At=[],Rt=Ge.logic||"and",Fi=Ge.filters;for(Pt=0,$t=Fi.length;Pt<$t;Pt++)Xn=(Ge=Fi[Pt]).field,Kt=Ge.value,He=Ge.operator,Ge.filters?Ge=Dn(Ge,Be):(On=Ge.ignoreCase,Xn=Xn.replace(/\./g,"/"),Ge=Ui[He],Be&&(Ge=Co[He]),"isnullorempty"===He?Ge=ze.format("{0} {1} null or {0} {1} ''",Xn,Ge):"isnotnullorempty"===He?Ge=ze.format("{0} {1} null and {0} {1} ''",Xn,Ge):"isnull"===He||"isnotnull"===He?Ge=ze.format("{0} {1} null",Xn,Ge):"isempty"===He||"isnotempty"===He?Ge=ze.format("{0} {1} ''",Xn,Ge):Ge&&void 0!==Kt&&("string"===(Nn=ze.type(Kt))?(Ae="'{1}'",Kt=Kt.replace(/'/g,"''"),!0===On&&(Xn="tolower("+Xn+")")):"date"===Nn?Be?(Ae="{1:yyyy-MM-ddTHH:mm:ss+00:00}",Kt=ze.timezone.apply(Kt,"Etc/UTC")):Ae="datetime'{1:yyyy-MM-ddTHH:mm:ss}'":Ae="{1}",Ge.length>3?"substringof"!==Ge?Ae="{0}({2},"+Ae+")":(Ae="{0}("+Ae+",{2})","doesnotcontain"===He&&(Be?(Ae="{0}({2},'{1}') eq -1",Ge="indexof"):Ae+=" eq false")):Ae="{2} {0} "+Ae,Ge=ze.format(Ae,Ge,Kt,Xn))),At.push(Ge);return Ge=At.join(" "+Rt+" "),At.length>1&&(Ge="("+Ge+")"),Ge}function kn(Ge){for(var Be in Ge)0===Be.indexOf("@odata")&&delete Ge[Be]}function ui(){return Math.floor(65536*(1+Math.random())).toString(16).substr(1)}function Ot(Ge){return Ge+ui()+"-"+ui()+"-"+ui()}function en(Ge,Be){var At=it+"--"+Ge;return Be&&(At+="--"),At}function cn(Ge,Be,At,Rt){var Pt=Ge.options[Rt].url,$t=ze.format("{0} ",At);return Hn(Pt)?$t+Pt(Be):$t+Pt}function Ht(Ge,Be){var At="";return At+=en(Ge,!1),At+=it+"Content-Type: application/http",(At+=it+"Content-Transfer-Encoding: binary")+(it+"Content-ID: ")+Be}function ft(Ge){var Be="";return Be+=it+"Content-Type: application/json;odata=minimalmetadata",(Be+=it+"Prefer: return=representation")+(Dt+ze.stringify(Ge))}function an(Ge,Be,At,Rt,Pt,$t,Xn){var Nn="";return Nn+=function $e(Ge,Be){var At="";return(At+="--"+Ge+it)+"Content-Type: multipart/mixed; boundary="+Be+it}(Be,At),Nn+=function Nt(Ge,Be,At,Rt,Pt,$t){for(var Xn="",Nn=0;Nn<Ge.length;Nn++)Xn+=Ht(Be,At),Xn+=Dt+cn(Pt,Ge[Nn],Pt.options[Rt].type,Rt)+" HTTP/1.1",$t||(Xn+=ft(Ge[Nn])),Xn+=it,At++;return Xn}(Ge,At,Rt,$t,Pt,Xn),(Nn+=en(At,!0))+it}return St(!0,ze.data,{schemas:{odata:{type:"json",data:function(Ge){return Ge.d.results||[Ge.d]},total:"d.__count"}},transports:{odata:{read:{cache:!0,dataType:"jsonp",jsonp:"$callback"},update:{cache:!0,dataType:"json",contentType:"application/json",type:"PUT"},create:{cache:!0,dataType:"json",contentType:"application/json",type:"POST"},destroy:{cache:!0,dataType:"json",type:"DELETE"},parameterMap:function(Ge,Be,At){var Rt,Pt,$t,Xn;if(Ge=Ge||{},Xn=(Xn=(this.options||Vn)[Be=Be||"read"])?Xn.dataType:"json","read"===Be)for($t in Rt={$inlinecount:"allpages"},"json"!=Xn&&(Rt.$format="json"),Ge)Sn[$t]?Sn[$t](Rt,Ge[$t],At):Rt[$t]=Ge[$t];else{if("json"!==Xn)throw new Error("Only json dataType can be used for "+Be+" operation.");if("destroy"!==Be){for($t in Ge)"number"==typeof(Pt=Ge[$t])&&(Ge[$t]=Pt+"");Rt=ze.stringify(Ge)}}return Rt}}}}),St(!0,ze.data,{schemas:{"odata-v4":{type:"json",data:function(Ge){if(Array.isArray(Ge)){for(var Be=0;Be<Ge.length;Be++)kn(Ge[Be]);return Ge}return kn(Ge=Xe.extend({},Ge)),Ge.value?Ge.value:[Ge]},total:function(Ge){return Ge["@odata.count"]}}},transports:{"odata-v4":{batch:{type:"POST"},read:{cache:!0,dataType:"json"},update:{cache:!0,dataType:"json",contentType:"application/json;IEEE754Compatible=true",type:"PUT"},create:{cache:!0,dataType:"json",contentType:"application/json;IEEE754Compatible=true",type:"POST"},destroy:{cache:!0,dataType:"json",type:"DELETE"},parameterMap:function(Ge,Be){var At=ze.data.transports.odata.parameterMap(Ge,Be,!0);return"read"==Be&&(At.$count=!0,delete At.$inlinecount),At&&At.$filter&&(At.$filter=At.$filter.replace(/('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}')/gi,function(Rt){return Rt.substring(1,Rt.length-1)})),At},submit:function(Ge){var At=function Je(Ge,Be){var At=St({},Ge.options.batch),Rt=Ot("sf_batch_"),Pt="",$t=0,Xn=Ge.options.batch.url,Nn=Ot("sf_changeset_");return At.type=Ge.options.batch.type,At.url=Hn(Xn)?Xn():Xn,At.headers=St(At.headers||{},{"Content-Type":"multipart/mixed; boundary="+Rt}),Be.updated.length&&(Pt+=an(Be.updated,Rt,Nn,$t,Ge,"update",!1),$t+=Be.updated.length,Nn=Ot("sf_changeset_")),Be.destroyed.length&&(Pt+=an(Be.destroyed,Rt,Nn,$t,Ge,"destroy",!0),$t+=Be.destroyed.length,Nn=Ot("sf_changeset_")),Be.created.length&&(Pt+=an(Be.created,Rt,Nn,$t,Ge,"create",!1)),Pt+=en(Rt,!0),At.data=Pt,At}(this,Ge.data),Rt=Ge.data;!Rt.updated.length&&!Rt.destroyed.length&&!Rt.created.length||Xe.ajax(St(!0,{},{success:function(Pt){var Nn,$t=function Ve(Ge){var Pt,$t,Xn,Nn,Ae,Be=Ge.match(/--changesetresponse_[a-z0-9-]+$/gm),At=0,Rt=[];Rt.push({models:[],passed:!0});for(var He=0;He<Be.length;He++)(Nn=Be[He]).lastIndexOf("--",Nn.length-1)?He<Be.length-1&&Rt.push({models:[],passed:!0}):(At=At?Ge.indexOf(Nn,At+Nn.length):Ge.indexOf(Nn),$t=(Pt=Ge.substring(At,Ge.indexOf("--",At+1))).match(/^HTTP\/1\.\d (\d{3}) (.*)$/gm).pop(),(Xn=ze.parseFloat($t.match(/\d{3}/g).pop()))>=200&&Xn<=299?(Ae=Pt.match(/\{.*\}/gm))&&Rt[Rt.length-1].models.push(JSON.parse(Ae[0])):Rt[Rt.length-1].passed=!1);return Rt}(Pt),Xn=0;Rt.updated.length&&((Nn=$t[Xn]).passed&&Ge.success(Nn.models.length?Nn.models:[],"update"),Xn++),Rt.destroyed.length&&((Nn=$t[Xn]).passed&&Ge.success([],"destroy"),Xn++),Rt.created.length&&(Nn=$t[Xn]).passed&&Ge.success(Nn.models,"create")},error:function(Pt,$t,Xn){Ge.error(Pt,$t,Xn)}},At))}}}}),window.kendo}.apply(a={},ur=[e]))&&(o=a),void 0===(l=function(){var Xe=window.kendo.jQuery,ze=window.kendo,St=Array.isArray,it=Xe.isPlainObject,Dt=Xe.map,Hn=Xe.each,Ui=Xe.extend,Co=ze.getter,Vn=ze.Class.extend({init:function(Dn){var kn=this,ui=Dn.total,Ot=Dn.model,en=Dn.parse,cn=Dn.errors,Ht=Dn.serialize,ft=Dn.data;if(Ot){if(it(Ot)){var Nt=Dn.modelBase||ze.data.Model;Ot.fields&&Hn(Ot.fields,function(Ve,Ge){it(Ge)&&Ge.field?ze.isFunction(Ge.field)||(Ge=Ui(Ge,{field:kn.getter(Ge.field)})):Ge={field:kn.getter(Ge)},Ot.fields[Ve]=Ge});var an=Ot.id;if(an){var $e={};$e[kn.xpathToMember(an,!0)]={field:kn.getter(an)},Ot.fields=Ui($e,Ot.fields),Ot.id=kn.xpathToMember(an)}Ot=Nt.define(Ot)}kn.model=Ot}if(ui&&("string"==typeof ui?(ui=kn.getter(ui),kn.total=function(Ve){return parseInt(ui(Ve),10)}):"function"==typeof ui&&(kn.total=ui)),cn&&("string"==typeof cn?(cn=kn.getter(cn),kn.errors=function(Ve){return cn(Ve)||null}):"function"==typeof cn&&(kn.errors=cn)),ft&&("string"==typeof ft?(ft=kn.xpathToMember(ft),kn.data=function(Ve){var Be,Ge=kn.evaluate(Ve,ft);return Ge=St(Ge)?Ge:[Ge],kn.model&&Ot.fields?(Be=new kn.model,Dt(Ge,function(At){if(At){var Pt,Rt={};for(Pt in Ot.fields)Rt[Pt]=Be._parse(Pt,Ot.fields[Pt].field(At));return Rt}})):Ge}):"function"==typeof ft&&(kn.data=ft)),"function"==typeof en){var Je=kn.parse;kn.parse=function(Ve){var Ge=en.call(kn,Ve);return Je.call(kn,Ge)}}"function"==typeof Ht&&(kn.serialize=Ht)},total:function(Dn){return this.data(Dn).length},errors:function(Dn){return Dn?Dn.errors:null},serialize:function(Dn){return Dn},parseDOM:function(Dn){var ui,Ot,en,cn,Ht,ft,$e,kn={},Nt=Dn.attributes,an=Nt.length;for($e=0;$e<an;$e++)kn["@"+(ft=Nt[$e]).nodeName]=ft.nodeValue;for(Ot=Dn.firstChild;Ot;Ot=Ot.nextSibling)3===(en=Ot.nodeType)||4===en?kn["#text"]=Ot.nodeValue:1===en&&(ui=this.parseDOM(Ot),St(Ht=kn[cn=Ot.nodeName])?Ht.push(ui):Ht=void 0!==Ht?[Ht,ui]:ui,kn[cn]=Ht);return kn},evaluate:function(Dn,kn){for(var Ot,en,cn,Ht,ft,ui=kn.split(".");Ot=ui.shift();)if(St(Dn=Dn[Ot])){for(en=[],kn=ui.join("."),ft=0,cn=Dn.length;ft<cn;ft++)Ht=this.evaluate(Dn[ft],kn),Ht=St(Ht)?Ht:[Ht],en.push.apply(en,Ht);return en}return Dn},parse:function(Dn){var kn,ui,Ot={};return kn=Dn.documentElement||Xe.parseXML(Dn).documentElement,ui=this.parseDOM(kn),Ot[kn.nodeName]=ui,Ot},xpathToMember:function(Dn,kn){return Dn?(Dn=Dn.replace(/^\//,"").replace(/\//g,".")).indexOf("@")>=0?Dn.replace(/\.?(@.*)/,kn?"$1":'["$1"]'):Dn.indexOf("text()")>=0?Dn.replace(/(\.?text\(\))/,kn?"#text":'["#text"]'):Dn:""},getter:function(Dn){return Co(this.xpathToMember(Dn),!0)}});return Xe.extend(!0,ze.data,{XmlDataReader:Vn,readers:{xml:Vn}}),window.kendo}.apply(u={},ur=[e]))&&(l=u),void 0===(d=function(){var Co,Xe=window.kendo.jQuery,Ke=void 0,ze=Xe.extend,St=Xe.isPlainObject,it=Xe.isEmptyObject,Dt=Array.isArray,Hn=Xe.grep,Ui=Xe.ajax,Sn=Xe.each,Vn=Xe.noop,Dn=window.kendo,kn=Dn.isFunction,ui=Dn.Observable,Ot=Dn.Class,en="string",cn="function",$e="destroy",Je="change",Ge="get",Be="error",At="requestStart",Rt="progress",Pt="requestEnd",$t="itemsLoaded",Xn="itemLoad",Nn=["create","read","update",$e],Ae=function(Ct){return Ct},He=Dn.getter,Kt=Dn.stringify,On=Math,Fi=[].push,xi=[].pop,Wn=[].splice,Vt=[].shift,qt=[].slice,bn=[].unshift,ii={}.toString,Vi=Dn.support.stableSort,Jn=/^\/Date\((.*?)\)\/$/,zt=[],mn=ui.extend({init:function(Ct,rn){var We=this;We.type=rn||Pn,ui.fn.init.call(We),We.length=Ct.length,We.wrapAll(Ct,We),We._loadPromises=[],We._loadedNodes=[]},at:function(Ct){return this[Ct]},toJSON:function(Ct){var rn,Ft,We=this.length,ct=new Array(We);for(rn=0;rn<We;rn++)(Ft=this[rn])instanceof Pn&&(Ft=Ft.toJSON(Ct)),ct[rn]=Ft;return ct},parent:Vn,wrapAll:function(Ct,rn){var Ft,ct,We=this,Qt=function(){return We};for(rn=rn||[],Ft=0,ct=Ct.length;Ft<ct;Ft++)rn[Ft]=We.wrap(Ct[Ft],Qt);return rn},wrap:function(Ct,rn){var We=this;return null!==Ct&&"[object Object]"===ii.call(Ct)&&(Ct instanceof We.type||Ct instanceof Me||(Ct=Ct instanceof Pn?Ct.toJSON():Ct,Ct=new We.type(Ct)),Ct.parent=rn,Ct.bind(Je,function(ct){var Qt=Ct.hasOwnProperty("hasSubgroups");We.trigger(Je,{field:ct.field,node:ct.node,index:ct.index,items:ct.items||[this],action:ct.node||Qt?ct.action||"itemloaded":"itemchange"})}),Ct.bind(Xn,function(ct){We._loadPromises.push(ct.promise),We._loading=!0,ct.promise.done(function(){We._loadedNodes.push(ct.node);var Qt=We._loadPromises.indexOf(ct.promise);We._loadPromises.splice(Qt,1),We._loadPromises.length||(We._loading=!1,We.trigger($t,{collection:We,nodes:We._loadedNodes}),We._loadedNodes=[])})})),Ct},loading:function(){return this._loading},push:function(){var We,Ct=this.length,rn=this.wrapAll(arguments);return We=Fi.apply(this,rn),this.omitChangeEvent||this.trigger(Je,{action:"add",index:Ct,items:rn}),We},slice:qt,sort:[].sort,join:[].join,pop:function(){var Ct=this.length,rn=xi.apply(this);return Ct&&this.trigger(Je,{action:"remove",index:Ct-1,items:[rn]}),rn},splice:function(Ct,rn,We){var ct,Qt,gi,Ft=this.wrapAll(qt.call(arguments,2));if((ct=Wn.apply(this,[Ct,rn].concat(Ft))).length)for(this.omitChangeEvent||this.trigger(Je,{action:"remove",index:Ct,items:ct}),Qt=0,gi=ct.length;Qt<gi;Qt++)ct[Qt]&&ct[Qt].children&&ct[Qt].unbind(Je);return We&&(this.omitChangeEvent||this.trigger(Je,{action:"add",index:Ct,items:Ft})),ct},shift:function(){var Ct=this.length,rn=Vt.apply(this);return Ct&&this.trigger(Je,{action:"remove",index:0,items:[rn]}),rn},unshift:function(){var rn,Ct=this.wrapAll(arguments);return rn=bn.apply(this,Ct),this.trigger(Je,{action:"add",index:0,items:Ct}),rn},indexOf:function(Ct){var We,Ft;for(We=0,Ft=this.length;We<Ft;We++)if(this[We]===Ct)return We;return-1},forEach:function(Ct,rn){for(var We=0,Ft=this.length,ct=rn||window;We<Ft;We++)Ct.call(ct,this[We],We,this)},map:function(Ct,rn){for(var We=0,Ft=[],ct=this.length,Qt=rn||window;We<ct;We++)Ft[We]=Ct.call(Qt,this[We],We,this);return Ft},reduce:function(Ct){var We,rn=0,Ft=this.length;for(2==arguments.length?We=arguments[1]:rn<Ft&&(We=this[rn++]);rn<Ft;rn++)We=Ct(We,this[rn],rn,this);return We},reduceRight:function(Ct){var We,rn=this.length-1;for(2==arguments.length?We=arguments[1]:rn>0&&(We=this[rn--]);rn>=0;rn--)We=Ct(We,this[rn],rn,this);return We},filter:function(Ct,rn){for(var ct,We=0,Ft=[],Qt=this.length,gi=rn||window;We<Qt;We++)Ct.call(gi,ct=this[We],We,this)&&(Ft[Ft.length]=ct);return Ft},find:function(Ct,rn){for(var Ft,We=0,ct=this.length,Qt=rn||window;We<ct;We++)if(Ct.call(Qt,Ft=this[We],We,this))return Ft},every:function(Ct,rn){for(var We=0,ct=this.length,Qt=rn||window;We<ct;We++)if(!Ct.call(Qt,this[We],We,this))return!1;return!0},some:function(Ct,rn){for(var We=0,ct=this.length,Qt=rn||window;We<ct;We++)if(Ct.call(Qt,this[We],We,this))return!0;return!1},remove:function(Ct){var rn=this.indexOf(Ct);-1!==rn&&this.splice(rn,1)},empty:function(){this.splice(0,this.length)}});typeof Symbol<"u"&&Symbol.iterator&&!mn.prototype[Symbol.iterator]&&(mn.prototype[Symbol.iterator]=[][Symbol.iterator]);var Qn=mn.extend({init:function(Ct,rn,We){ui.fn.init.call(this),this.type=rn||Pn,We&&(this._events=We);for(var ct=0;ct<Ct.length;ct++)this[ct]=Ct[ct];this.length=ct,this._parent=function(){return this}.bind(this)},at:function(Ct){var rn=this[Ct];return rn instanceof this.type?rn.parent=this._parent:rn=this[Ct]=this.wrap(rn,this._parent),rn}});function ci(Ct,rn,We,Ft){return function(ct){var gi,Qt={};for(gi in ct)Qt[gi]=ct[gi];Qt.field=Ft?We+"."+ct.field:We,rn==Je&&Ct._notifyChange&&Ct._notifyChange(Qt),Ct.trigger(rn,Qt)}}function Ai(Ct,rn){var ct,Qt,We=[],Ft=[];for(function Oi(Ct){return"object"==typeof Ct&&Object.getPrototypeOf(Ct)===Object.getPrototypeOf({})||Object.getPrototypeOf(Ct)===Object.getPrototypeOf(new Date)||"object"!=typeof Ct}(Ct=Ct||{})||(Ft=Object.getOwnPropertyNames(Object.getPrototypeOf(Ct))),ct=Object.getOwnPropertyNames(Ct).concat(Ft),Qt=zt.filter(function(gi){return ct.indexOf(gi)<0});Ct;)Object.getOwnPropertyNames(Ct).forEach(function(gi){-1===We.indexOf(gi)&&(!rn||Qt.indexOf(gi)<0)&&We.push(gi)}),Ct=Object.getPrototypeOf(Ct);return We}zt=Ai({},!1);var Pn=ui.extend({init:function(Ct){var We,rn=this,Ft=Ai(Ct,!0),ct=function(){return rn};ui.fn.init.call(this),this._handlers={},Ft.forEach(function(Qt){"object"==typeof(We=Ct[Qt])&&We&&!We.getTime&&"_"!=Qt.charAt(0)&&(We=rn.wrap(We,Qt,ct)),rn[Qt]=We}),rn.uid=Dn.guid()},shouldSerialize:function(Ct,rn){return this.hasOwnProperty(Ct)&&"_handlers"!==Ct&&"_events"!==Ct&&(rn&&rn[Ct]||typeof this[Ct]!==cn)&&"uid"!==Ct},forEach:function(Ct){for(var rn in this)this.shouldSerialize(rn)&&Ct(this[rn],rn)},toJSON:function(Ct){var We,Ft,rn={};for(Ft in this)this.shouldSerialize(Ft,Ct)&&(((We=this[Ft])instanceof Pn||We instanceof mn)&&(We=We.toJSON(Ct)),rn[Ft]=We);return rn},get:function(Ct){return this.trigger(Ge,{field:Ct}),"this"===Ct?this:Dn.getter(Ct,!0)(this)},_set:function(Ct,rn){var Ft=Ct.indexOf(".")>=0;if(Ft)for(var ct=Ct.split("."),Qt="";ct.length>1;){Qt+=ct.shift();var gi=Dn.getter(Qt,!0)(this);if(gi instanceof Pn)return gi.set(ct.join("."),rn),Ft;Qt+="."}return Dn.setter(Ct)(this,rn),Ft},set:function(Ct,rn){var We=this,Ft=!1,ct=Ct.indexOf(".")>=0,Qt=Dn.getter(Ct,!0)(We);return Qt!==rn&&(Qt instanceof ui&&this._handlers[Ct]&&(this._handlers[Ct].get&&Qt.unbind(Ge,this._handlers[Ct].get),Qt.unbind(Je,this._handlers[Ct].change)),(Ft=We.trigger("set",{field:Ct,value:rn}))||(ct||(rn=We.wrap(rn,Ct,function(){return We})),(!We._set(Ct,rn)||Ct.indexOf("(")>=0||Ct.indexOf("[")>=0)&&We.trigger(Je,{field:Ct}))),Ft},parent:Vn,wrap:function(Ct,rn,We){var ct,Qt,Ft=this,gi=ii.call(Ct);if(null!=Ct&&("[object Object]"===gi||"[object Array]"===gi)){var Do=Ct instanceof mn,Po=Ct instanceof ia;"[object Object]"!==gi||Po||Do?("[object Array]"===gi||Do||Po)&&(!Do&&!Po&&(Ct=new mn(Ct)),Qt=ci(Ft,Je,rn,!1),Ct.bind(Je,Qt),Ft._handlers[rn]={change:Qt}):(Ct instanceof Pn||(Ct=new Pn(Ct)),ct=ci(Ft,Ge,rn,!0),Ct.bind(Ge,ct),Qt=ci(Ft,Je,rn,!0),Ct.bind(Je,Qt),Ft._handlers[rn]={get:ct,change:Qt}),Ct.parent=We}return Ct}});function qn(Ct,rn){if(Ct===rn)return!0;var ct,We=Dn.type(Ct);if(We!==Dn.type(rn))return!1;if("date"===We)return Ct.getTime()===rn.getTime();if("object"!==We&&"array"!==We)return!1;for(ct in Ct)if(!qn(Ct[ct],rn[ct]))return!1;return!0}var Ni={number:function(Ct){return typeof Ct===en&&"null"===Ct.toLowerCase()?null:Dn.parseFloat(Ct)},date:function(Ct){return typeof Ct===en&&"null"===Ct.toLowerCase()?null:Dn.parseDate(Ct)},boolean:function(Ct){return typeof Ct===en?"null"===Ct.toLowerCase()?null:"true"===Ct.toLowerCase():null!=Ct?!!Ct:Ct},string:function(Ct){return typeof Ct===en&&"null"===Ct.toLowerCase()?null:null!=Ct?Ct+"":Ct},default:function(Ct){return Ct}},Ue={string:"",number:0,date:new Date,boolean:!1,default:""},Me=Pn.extend({init:function(Ct){var rn=this;if((!Ct||Xe.isEmptyObject(Ct))&&(Ct=Xe.extend({},rn.defaults,Ct),rn._initializers))for(var We=0;We<rn._initializers.length;We++){var Ft=rn._initializers[We];Ct[Ft]=rn.defaults[Ft]()}Pn.fn.init.call(rn,Ct),rn.dirty=!1,rn.dirtyFields={},rn.idField&&(rn.id=rn.get(rn.idField),rn.id===Ke&&(rn.id=rn._defaultId))},shouldSerialize:function(Ct){return Pn.fn.shouldSerialize.call(this,Ct)&&"uid"!==Ct&&!("id"!==this.idField&&"id"===Ct)&&"dirty"!==Ct&&"dirtyFields"!==Ct&&"_accessors"!==Ct},_parse:function(Ct,rn){var Qt,Ft=Ct,ct=this.fields||{};return(Ct=ct[Ct])||(Ct=function Ye(Ct,rn){var We,Ft;for(Ft in Ct){if(St(We=Ct[Ft])&&We.field&&We.field===rn)return We;if(We===rn)return We}return null}(ct,Ft)),Ct&&!(Qt=Ct.parse)&&Ct.type&&(Qt=Ni[Ct.type.toLowerCase()]),Qt?Qt(rn):rn},_notifyChange:function(Ct){var rn=Ct.action;("add"==rn||"remove"==rn)&&(this.dirty=!0,this.dirtyFields[Ct.field]=!0)},editable:function(Ct){return!(Ct=(this.fields||{})[Ct])||!1!==Ct.editable},set:function(Ct,rn){var We=this,Ft=We.dirty;We.editable(Ct)&&(qn(rn=We._parse(Ct,rn),We.get(Ct))?We.trigger("equalSet",{field:Ct,value:rn}):(We.dirty=!0,We.dirtyFields[Ct]=!0,Pn.fn.set.call(We,Ct,rn)&&!Ft&&(We.dirty=Ft,We.dirty||(We.dirtyFields[Ct]=!1))))},accept:function(Ct){var Ft,rn=this,We=function(){return rn};for(Ft in Ct){var ct=Ct[Ft];"_"!=Ft.charAt(0)&&(ct=rn.wrap(Ct[Ft],Ft,We)),rn._set(Ft,ct)}rn.idField&&(rn.id=rn.get(rn.idField)),rn.dirty=!1,rn.dirtyFields={}},isNew:function(){return this.id===this._defaultId}}),pe=(Me.define=function(Ct,rn){rn===Ke&&(rn=Ct,Ct=Me);var We,ct,Qt,gi,Do,Po,Or,Zs,Ft=ze({defaults:{}},rn),hs={},ca=Ft.id,za=[];if(ca&&(Ft.idField=ca),Ft.id&&delete Ft.id,ca&&(Ft.defaults[ca]=Ft._defaultId=""),"[object Array]"===ii.call(Ft.fields)){for(Po=0,Or=Ft.fields.length;Po<Or;Po++)typeof(Qt=Ft.fields[Po])===en?hs[Qt]={}:Qt.field&&(hs[Qt.field]=Qt);Ft.fields=hs}for(ct in Ft.fields)gi=(Qt=Ft.fields[ct]).type||"default",Do=null,Zs=ct,ct=typeof Qt.field===en?Qt.field:ct,Qt.nullable||"function"==typeof(Do=Ft.defaults[Zs!==ct?Zs:ct]=Qt.defaultValue!==Ke?Qt.defaultValue:Ue[gi.toLowerCase()])&&za.push(ct),rn.id===ct&&(Ft._defaultId=Do),Ft.defaults[Zs!==ct?Zs:ct]=Do,Qt.parse=Qt.parse||Ni[gi];return za.length>0&&(Ft._initializers=za),(We=Ct.extend(Ft)).define=function(cl){return Me.define(We,cl)},Ft.fields&&(We.fields=Ft.fields,We.idField=Ft.idField),We},{selector:function(Ct){return kn(Ct)?Ct:He(Ct)},compare:function(Ct){var rn=this.selector(Ct);return function(We,Ft){return We=rn(We),Ft=rn(Ft),null==We&&null==Ft?0:null==We?-1:null==Ft?1:We.localeCompare?We.localeCompare(Ft):We>Ft?1:We<Ft?-1:0}},create:function(Ct){var rn=Ct.compare||this.compare(Ct.field);return"desc"==Ct.dir?function(We,Ft){return rn(Ft,We,!0)}:rn},combine:function(Ct){return function(rn,We){var ct,Qt,Ft=Ct[0](rn,We);for(ct=1,Qt=Ct.length;ct<Qt;ct++)Ft=Ft||Ct[ct](rn,We);return Ft}}}),lt=ze({},pe,{asc:function(Ct){var rn=this.selector(Ct);return function(We,Ft){var ct=rn(We),Qt=rn(Ft);return ct&&ct.getTime&&Qt&&Qt.getTime&&(ct=ct.getTime(),Qt=Qt.getTime()),ct===Qt?We.__position-Ft.__position:null==ct?-1:null==Qt?1:ct.localeCompare?ct.localeCompare(Qt):ct>Qt?1:-1}},desc:function(Ct){var rn=this.selector(Ct);return function(We,Ft){var ct=rn(We),Qt=rn(Ft);return ct&&ct.getTime&&Qt&&Qt.getTime&&(ct=ct.getTime(),Qt=Qt.getTime()),ct===Qt?We.__position-Ft.__position:null==ct?1:null==Qt?-1:Qt.localeCompare?Qt.localeCompare(ct):ct<Qt?1:-1}},create:function(Ct){return this[Ct.dir](Ct.field)}}),yt=(Co=function(Ct,rn){var We,Ft=Ct.length,ct=new Array(Ft);for(We=0;We<Ft;We++)ct[We]=rn(Ct[We],We,Ct);return ct},function(){function Ct(ct){return"string"==typeof ct&&(ct=ct.replace(/[\r\n]+/g,"")),JSON.stringify(ct)}function rn(ct){return function(Qt,gi,Do,Po){return gi+="",Do&&(Qt="("+Qt+" + '').toString()"+(Po?".toLocaleLowerCase('"+Po+"')":".toLowerCase()"),gi=Po?gi.toLocaleLowerCase(Po):gi.toLowerCase()),ct(Qt,Ct(gi),Do)}}function We(ct,Qt,gi,Do,Po){if(null!=gi){if(typeof gi===en){var Or=Jn.exec(gi);Or?gi=new Date(+Or[1]):Do?(gi=Ct(Po?gi.toLocaleLowerCase(Po):gi.toLowerCase()),Qt="(("+Qt+" || '')+'')"+(Po?".toLocaleLowerCase('"+Po+"')":".toLowerCase()")):gi=Ct(gi)}gi.getTime&&(Qt="("+Qt+"&&"+Qt+".getTime?"+Qt+".getTime():"+Qt+")",gi=gi.getTime())}return Qt+" "+ct+" "+gi}function Ft(ct){for(var Qt="/^",gi=!1,Do=0;Do<ct.length;++Do){var Po=ct.charAt(Do);if(gi)Qt+="\\"+Po;else{if("~"==Po){gi=!0;continue}"*"==Po?Qt+=".*":"?"==Po?Qt+=".":".+^$()[]{}|\\/\n\r\u2028\u2029\xa0".indexOf(Po)>=0?Qt+="\\"+Po:Qt+=Po}gi=!1}return Qt+"$/"}return{quote:function(ct){return ct&&ct.getTime?"new Date("+ct.getTime()+")":Ct(ct)},eq:function(ct,Qt,gi,Do){return We("==",ct,Qt,gi,Do)},neq:function(ct,Qt,gi,Do){return We("!=",ct,Qt,gi,Do)},gt:function(ct,Qt,gi){return We(">",ct,Qt,gi)},gte:function(ct,Qt,gi){return We(">=",ct,Qt,gi)},lt:function(ct,Qt,gi){return We("<",ct,Qt,gi)},lte:function(ct,Qt,gi){return We("<=",ct,Qt,gi)},startswith:rn(function(ct,Qt){return ct+".lastIndexOf("+Qt+", 0) == 0"}),doesnotstartwith:rn(function(ct,Qt){return ct+".lastIndexOf("+Qt+", 0) == -1"}),endswith:rn(function(ct,Qt){return ct+".indexOf("+Qt+", "+ct+".length - "+(Qt?Qt.length-2:0)+") >= 0"}),doesnotendwith:rn(function(ct,Qt){return ct+".indexOf("+Qt+", "+ct+".length - "+(Qt?Qt.length-2:0)+") < 0"}),contains:rn(function(ct,Qt){return ct+".indexOf("+Qt+") >= 0"}),doesnotcontain:rn(function(ct,Qt){return ct+".indexOf("+Qt+") == -1"}),matches:rn(function(ct,Qt){return Ft(Qt=Qt.substring(1,Qt.length-1))+".test("+ct+")"}),doesnotmatch:rn(function(ct,Qt){return"!"+Ft(Qt=Qt.substring(1,Qt.length-1))+".test("+ct+")"}),isempty:function(ct){return ct+" === ''"},isnotempty:function(ct){return ct+" !== ''"},isnull:function(ct){return"("+ct+" == null)"},isnotnull:function(ct){return"("+ct+" != null)"},isnullorempty:function(ct){return"("+ct+" === null) || ("+ct+" === '')"},isnotnullorempty:function(ct){return"("+ct+" !== null) && ("+ct+" !== '')"}}}());function on(Ct){this.data=Ct||[]}function zi(Ct,rn){if(Ct){var We=typeof Ct===en?{field:Ct,dir:rn}:Ct,Ft=Dt(We)?We:We!==Ke?[We]:[];return Hn(Ft,function(ct){return!!ct.dir})}}function Kn(Ct,rn){var We={};if(Ct)for(var Ft=typeof Ct===en?{field:Ct,dir:rn}:Ct,ct=Dt(Ft)?Ft:Ft!==Ke?[Ft]:[],Qt=0;Qt<ct.length;Qt++)We[ct[Qt].field]={dir:ct[Qt].dir,index:Qt+1};return We}on.filterExpr=function(Ct){var Ft,ct,Qt,gi,Or,hs,rn=[],Do=[],Po=[],Zs=Ct.filters;for(Ft=0,ct=Zs.length;Ft<ct;Ft++)Or=(Qt=Zs[Ft]).field,hs=Qt.operator,Qt.filters?(Qt=(gi=on.filterExpr(Qt)).expression.replace(/__o\[(\d+)\]/g,function(ca,za){return"__o["+(Po.length+(za=+za))+"]"}).replace(/__f\[(\d+)\]/g,function(ca,za){return"__f["+(Do.length+(za=+za))+"]"}),Po.push.apply(Po,gi.operators),Do.push.apply(Do,gi.fields)):(typeof Or===cn?(gi="__f["+Do.length+"](d)",Do.push(Or)):gi=Dn.expr(Or),typeof hs===cn?(Qt="__o["+Po.length+"]("+gi+", "+yt.quote(Qt.value)+")",Po.push(hs)):Qt=yt[(hs||"eq").toLowerCase()](gi,Qt.value,Qt.ignoreCase===Ke||Qt.ignoreCase,Ct.accentFoldingFiltering)),rn.push(Qt);return{expression:"("+rn.join({and:" && ",or:" || "}[Ct.logic])+")",fields:Do,operators:Po}};var ho={"==":"eq",equals:"eq",isequalto:"eq",equalto:"eq",equal:"eq","!=":"neq",ne:"neq",notequals:"neq",isnotequalto:"neq",notequalto:"neq",notequal:"neq","<":"lt",islessthan:"lt",lessthan:"lt",less:"lt","<=":"lte",le:"lte",islessthanorequalto:"lte",lessthanequal:"lte",">":"gt",isgreaterthan:"gt",greaterthan:"gt",greater:"gt",">=":"gte",isgreaterthanorequalto:"gte",greaterthanequal:"gte",ge:"gte",notsubstringof:"doesnotcontain",isnull:"isnull",isempty:"isempty",isnotempty:"isnotempty"};function po(Ct){var rn,We,Ft,ct,Qt=Ct.filters;if(Qt)for(rn=0,We=Qt.length;rn<We;rn++)(ct=(Ft=Qt[rn]).operator)&&typeof ct===en&&(Ft.operator=ho[ct.toLowerCase()]||ct),po(Ft)}function $i(Ct){if(Ct&&!it(Ct))return(Dt(Ct)||!Ct.filters)&&(Ct={logic:"and",filters:Dt(Ct)?Ct:[Ct]}),po(Ct),Ct}function ro(Ct,rn){return!Ct.logic&&!rn.logic&&Ct.field===rn.field&&Ct.value===rn.value&&Ct.operator===rn.operator}function wo(Ct){return it(Ct=Ct||{})?{logic:"and",filters:[]}:$i(Ct)}function io(Ct,rn){return rn.logic||Ct.field>rn.field?1:Ct.field<rn.field?-1:0}function cr(Ct,rn,We,Ft){var ct=typeof Ct===en?{field:Ct,dir:rn,compare:We,skipItemSorting:Ft}:Ct,Qt=Dt(ct)?ct:ct!==Ke?[ct]:[];return Co(Qt,function(gi){return{field:gi.field,dir:gi.dir||"asc",aggregates:gi.aggregates,compare:gi.compare,skipItemSorting:gi.skipItemSorting}})}function Fr(Ct,rn,We){for(var Ft=cr(Ct,rn,We),ct=0;ct<Ft.length;ct++)delete Ft[ct].compare;return Ft}function fs(Ct,rn){return Ct&&Ct.getTime&&rn&&rn.getTime?Ct.getTime()===rn.getTime():Ct===rn}function Ms(Ct,rn,We,Ft,ct,Qt){var gi,Do,Po,Or=(rn=rn||[]).length;for(gi=0;gi<Or;gi++){Po=(Do=rn[gi]).aggregate;var hs=Do.field;Ct[hs]=Ct[hs]||{},Qt[hs]=Qt[hs]||{},Qt[hs][Po]=Qt[hs][Po]||{},Ct[hs][Po]=Ca[Po.toLowerCase()](Ct[hs][Po],We,Dn.accessor(hs),Ft,ct,Qt[hs][Po])}}on.normalizeFilter=$i,on.compareFilters=function Wi(Ct,rn){if(Ct=wo(Ct),rn=wo(rn),Ct.logic!==rn.logic)return!1;var We,Ft,ct=(Ct.filters||[]).slice(),Qt=(rn.filters||[]).slice();if(ct.length!==Qt.length)return!1;ct=ct.sort(io),Qt=Qt.sort(io);for(var gi=0;gi<ct.length;gi++)if(Ft=Qt[gi],(We=ct[gi]).logic&&Ft.logic){if(!Wi(We,Ft))return!1}else if(!ro(We,Ft))return!1;return!0},on.prototype={toArray:function(){return this.data},range:function(Ct,rn){return new on(this.data.slice(Ct,Ct+rn))},skip:function(Ct){return new on(this.data.slice(Ct))},take:function(Ct){return new on(this.data.slice(0,Ct))},select:function(Ct){return new on(Co(this.data,Ct))},order:function(Ct,rn,We){var Ft={dir:rn};return Ct&&(Ct.compare?Ft.compare=Ct.compare:Ft.field=Ct),new on(We?this.data.sort(pe.create(Ft)):this.data.slice(0).sort(pe.create(Ft)))},orderBy:function(Ct,rn){return this.order(Ct,"asc",rn)},orderByDescending:function(Ct,rn){return this.order(Ct,"desc",rn)},sort:function(Ct,rn,We,Ft){var ct,Qt,gi=zi(Ct,rn),Do=[];if(We=We||pe,gi.length){for(ct=0,Qt=gi.length;ct<Qt;ct++)Do.push(We.create(gi[ct]));return this.orderBy({compare:We.combine(Do)},Ft)}return this},filter:function(Ct){var rn,We,Ft,ct,Qt,Do,Po,hs,gi=this.data,Or=[];if(!(Ct=$i(Ct))||0===Ct.filters.length)return this;for(ct=on.filterExpr(Ct),Do=ct.fields,Po=ct.operators,Qt=hs=new Function("d, __f, __o","return "+ct.expression),(Do.length||Po.length)&&(hs=function(Zs){return Qt(Zs,Do,Po)}),rn=0,Ft=gi.length;rn<Ft;rn++)hs(We=gi[rn])&&Or.push(We);return new on(Or)},group:function(Ct,rn,We){Ct=cr(Ct||[]),rn=rn||this.data;var Qt,ct=new on(this.data);return Ct.length>0&&(Qt=Ct[0],ct=We&&We.groupPaging?new on(rn).groupAllData(Qt,rn).select(function(gi){var Do=new on(rn).filter([{field:gi.field,operator:"eq",value:gi.value,ignoreCase:!1}]),Po=Ct.length>1?new on(gi.items).group(Ct.slice(1),Do.toArray(),We).toArray():gi.items;return{field:gi.field,value:gi.value,hasSubgroups:Ct.length>1,items:Po,aggregates:Do.aggregate(Qt.aggregates),uid:Dn.guid(),itemCount:Po.length,subgroupCount:Po.length}}):ct.groupBy(Qt).select(function(gi){var Do=new on(rn).filter([{field:gi.field,operator:"eq",value:gi.value,ignoreCase:!1}]);return{field:gi.field,value:gi.value,items:Ct.length>1?new on(gi.items).group(Ct.slice(1),Do.toArray()).toArray():gi.items,hasSubgroups:Ct.length>1,aggregates:Do.aggregate(Qt.aggregates)}})),ct},groupBy:function(Ct){if(it(Ct)||!this.data.length)return new on([]);var Qt,Po,Or,hs,We=Ct.field,Ft=Ct.skipItemSorting?this.data:this._sortForGrouping(We,Ct.dir||"asc"),ct=Dn.accessor(We),gi=ct.get(Ft[0],We),Do={field:We,value:gi,items:[]},Zs=[Do];for(Or=0,hs=Ft.length;Or<hs;Or++)fs(gi,Po=ct.get(Qt=Ft[Or],We))||Zs.push(Do={field:We,value:gi=Po,items:[]}),Do.items.push(Qt);return new on(Zs=this._sortGroups(Zs,Ct))},groupAllData:function(Ct,rn){if(it(Ct)||this.data&&!this.data.length)return new on([]);var Qt,Po,Or,hs,We=Ct.field,Ft=Ct.skipItemSorting?rn:new on(rn).sort(We,Ct.dir||"asc",lt).toArray(),ct=Dn.accessor(We),gi=ct.get(Ft[0],We),Do={field:We,value:gi,items:[]},Zs=[Do];for(Or=0,hs=Ft.length;Or<hs;Or++)fs(gi,Po=ct.get(Qt=Ft[Or],We))||Zs.push(Do={field:We,value:gi=Po,items:[]}),Do.items.push(Qt);return new on(Zs=this._sortGroups(Zs,Ct))},_sortForGrouping:function(Ct,rn){var We,Ft,ct=this.data;if(!Vi){for(We=0,Ft=ct.length;We<Ft;We++)ct[We].__position=We;for(We=0,Ft=(ct=new on(ct).sort(Ct,rn,lt).toArray()).length;We<Ft;We++)delete ct[We].__position;return ct}return this.sort(Ct,rn).toArray()},_sortGroups:function(Ct,rn){var We=Ct;return rn&&kn(rn.compare)&&(We=new on(We).order({compare:rn.compare},rn.dir||"asc").toArray()),We},aggregate:function(Ct){var rn,We,Ft={},ct={};if(Ct&&Ct.length)for(rn=0,We=this.data.length;rn<We;rn++)Ms(Ft,Ct,this.data[rn],rn,We,ct);return Ft}};var Ca={sum:function(Ct,rn,We){var Ft=We.get(rn);return ks(Ct)?ks(Ft)&&(Ct+=Ft):Ct=Ft,Ct},count:function(Ct){return(Ct||0)+1},average:function(Ct,rn,We,Ft,ct,Qt){var gi=We.get(rn);return Qt.count===Ke&&(Qt.count=0),ks(Ct)?ks(gi)&&(Ct+=gi):Ct=gi,ks(gi)&&Qt.count++,Ft==ct-1&&ks(Ct)&&(Ct/=Qt.count),Ct},max:function(Ct,rn,We){var Ft=We.get(rn);return!ks(Ct)&&!ts(Ct)&&(Ct=Ft),Ct<Ft&&(ks(Ft)||ts(Ft))&&(Ct=Ft),Ct},min:function(Ct,rn,We){var Ft=We.get(rn);return!ks(Ct)&&!ts(Ct)&&(Ct=Ft),Ct>Ft&&(ks(Ft)||ts(Ft))&&(Ct=Ft),Ct}};function ks(Ct){return"number"==typeof Ct&&!isNaN(Ct)}function ts(Ct){return Ct&&Ct.getTime}function na(Ct){var rn,We=Ct.length,Ft=new Array(We);for(rn=0;rn<We;rn++)Ft[rn]=Ct[rn].toJSON();return Ft}on.normalizeGroup=cr,on.normalizeSort=zi,on.process=function(Ct,rn,We){var Or,hs,Ft=(rn=rn||{}).group,ct=function jr(Ct){for(var rn=Dt(Ct)?Ct:[Ct],We=0;We<rn.length;We++)if(rn[We]&&kn(rn[We].compare))return!0;return!1}(cr(Ft||[])),Qt=new on(Ct),gi=Fr(Ft||[]),Do=zi(rn.sort||[]),Po=ct?Do:gi.concat(Do),Zs=rn.filterCallback,ca=rn.filter,za=rn.skip,cl=rn.take;return Po&&We&&(Qt=Qt.sort(Po,Ke,Ke,We)),ca&&(Qt=Qt.filter(ca),Zs&&(Qt=Zs(Qt)),hs=Qt.toArray().length),Po&&(We||(Qt=Qt.sort(Po)),Ft&&(Ct=Qt.toArray())),ct?(Qt=Qt.group(Ft,Ct,rn),za!==Ke&&cl!==Ke&&!rn.groupPaging&&(Qt=new on(rs(Qt.toArray())).range(za,cl),Or=Co(gi,function(yc){return ze({},yc,{skipItemSorting:!0})}),Qt=Qt.group(Or,Ct,rn))):(za!==Ke&&cl!==Ke&&(za+cl>(hs=Qt.data.length)&&rn.virtual&&(za=(za-=za+cl-hs)<0?0:za),Qt=Qt.range(za,cl)),Ft&&(!it(Ft)||0!==Ft.length)&&(Qt=Qt.group(Ft,Ct,rn))),{total:hs,data:Qt.toArray()}};var Xs=Ot.extend({init:function(Ct){this.data=Ct.data},read:function(Ct){Ct.success(this.data)},update:function(Ct){Ct.success(Ct.data)},create:function(Ct){Ct.success(Ct.data)},destroy:function(Ct){Ct.success(Ct.data)}}),_a=Ot.extend({init:function(Ct){var We,rn=this;Ct=rn.options=ze({},rn.options,Ct),Sn(Nn,function(Ft,ct){typeof Ct[ct]===en&&(Ct[ct]={url:Ct[ct]})}),rn.cache=Ct.cache?Ws.create(Ct.cache):{find:Vn,add:Vn},We=Ct.parameterMap,Ct.submit&&(rn.submit=Ct.submit),kn(Ct.push)&&(rn.push=Ct.push),rn.push||(rn.push=Ae),rn.parameterMap=kn(We)?We:function(Ft){var ct={};return Sn(Ft,function(Qt,gi){Qt in We&&St(Qt=We[Qt])&&(gi=Qt.value(gi),Qt=Qt.key),ct[Qt]=gi}),ct}},options:{parameterMap:Ae},create:function(Ct){return Ui(this.setup(Ct,"create"))},read:function(Ct){var We,ct,Qt=this.cache;Ct=this.setup(Ct,"read"),We=Ct.success||Vn,(ct=Qt.find(Ct.data))!==Ke?We(ct):(Ct.success=function(gi){Qt.add(Ct.data,gi),We(gi)},Xe.ajax(Ct))},update:function(Ct){return Ui(this.setup(Ct,"update"))},destroy:function(Ct){return Ui(this.setup(Ct,$e))},setup:function(Ct,rn){Ct=Ct||{};var Ft,ct=this.options[rn],Qt=kn(ct.data)?ct.data(Ct.data):ct.data;return Ct=ze(!0,{},ct,Ct),Ft=ze(!0,{},Qt,Ct.data),Ct.data=this.parameterMap(Ft,rn),kn(Ct.url)&&(Ct.url=Ct.url(Ft)),Ct}}),Ws=Ot.extend({init:function(){this._store={}},add:function(Ct,rn){Ct!==Ke&&(this._store[Kt(Ct)]=rn)},find:function(Ct){return this._store[Kt(Ct)]},clear:function(){this._store={}},remove:function(Ct){delete this._store[Kt(Ct)]}});function cs(Ct,rn,We,Ft,ct){var Qt,gi,Do,Po,hs,Or={};for(Po=0,hs=Ct.length;Po<hs;Po++)for(gi in Qt=Ct[Po],rn)(Do=ct[gi])&&Do!==gi&&(Or[Do]||(Or[Do]=Dn.setter(Do)),Or[Do](Qt,rn[gi](Qt)),delete Qt[gi])}function Ps(Ct,rn,We,Ft,ct){var Qt,gi,Do,Po,Or;for(Po=0,Or=Ct.length;Po<Or;Po++)for(gi in Qt=Ct[Po],rn)Qt[gi]=We._parse(gi,rn[gi](Qt)),(Do=ct[gi])&&Do!==gi&&delete Qt[Do]}function Qi(Ct,rn,We,Ft,ct){var Qt,gi,Do,Po;for(gi=0,Po=Ct.length;gi<Po;gi++)(Do=Ft[(Qt=Ct[gi]).field])&&Do!=Qt.field&&(Qt.field=Do),Qt.value=We._parse(Qt.field,Qt.value),Qt.items&&(Qt.hasSubgroups?Qi(Qt.items,rn,We,Ft,ct):Ps(Qt.items,rn,We,0,ct))}function vo(Ct,rn,We,Ft,ct,Qt){return function(gi){return gi=Ct(gi),pi(rn,We,Ft,ct,Qt)(gi)}}function pi(Ct,rn,We,Ft,ct){return function(Qt){return Qt&&!it(We)&&("[object Array]"!==ii.call(Qt)&&!(Qt instanceof mn)&&(Qt=[Qt]),rn(Qt,We,new Ct,Ft,ct)),Qt||[]}}Ws.create=function(Ct){var rn={inmemory:function(){return new Ws}};return St(Ct)&&kn(Ct.find)?Ct:!0===Ct?new Ws:rn[Ct]()};var to=Ot.extend({init:function(Ct){var We,Ft,ct,Qt,rn=this;for(We in Ct=Ct||{})rn[We]=typeof(Ft=Ct[We])===en?He(Ft):Ft;Qt=Ct.modelBase||Me,St(rn.model)&&(rn.model=ct=Qt.define(rn.model));var gi=rn.data.bind(rn);if(rn._dataAccessFunction=gi,rn.model){var cl,yc,Do=rn.groups.bind(rn),Po=rn.serialize.bind(rn),Or={},hs={},Zs={},ca={},za=!1;(ct=rn.model).fields&&(Sn(ct.fields,function(bc,ec){var Wl;cl=bc,St(ec)&&ec.field?cl=ec.field:typeof ec===en&&(cl=ec),St(ec)&&ec.from&&(Wl=ec.from),za=za||Wl&&Wl!==bc||cl!==bc,hs[bc]=-1!==(yc=Wl||cl).indexOf(".")?He(yc,!0):He(yc),Zs[bc]=He(bc),Or[Wl||cl]=bc,ca[bc]=Wl||cl}),!Ct.serialize&&za&&(rn.serialize=vo(Po,ct,cs,Zs,Or,ca))),rn._dataAccessFunction=gi,rn._wrapDataAccessBase=pi(ct,Ps,hs,Or,ca),rn.data=vo(gi,ct,Ps,hs,Or,ca),rn.groups=vo(Do,ct,Qi,hs,Or,ca)}},errors:function(Ct){return Ct?Ct.errors:null},parse:Ae,data:Ae,total:function(Ct){return Ct.length},groups:Ae,aggregates:function(){return{}},serialize:function(Ct){return Ct}});function Ro(Ct,rn){var We,Ft;if(rn.items&&rn.items.length)for(var ct=0;ct<rn.items.length;ct++)Ft=rn.items[ct],(We=Ct.items[Ct.items.length-1])&&Ft?We.hasSubgroups&&We.value==Ft.value?Ro(We,Ft):We.field&&We.value==Ft.value?(We.items.omitChangeEvent=!0,We.items.push.apply(We.items,Ft.items),We.items.omitChangeEvent=!1):(Ct.items.omitChangeEvent=!0,Ct.items.push.apply(Ct.items,[Ft]),Ct.items.omitChangeEvent=!1):Ft&&(Ct.items.omitChangeEvent=!0,Ct.items.push.apply(Ct.items,[Ft]),Ct.items.omitChangeEvent=!1)}function Sr(Ct,rn,We,Ft){for(var ct,gi,Qt=0;rn.length&&Ft;){var Do=(gi=(ct=rn[Qt]).items).length;if(Ct&&Ct.field===ct.field&&Ct.value===ct.value?(Ct.hasSubgroups&&Ct.items.length?Sr(Ct.items[Ct.items.length-1],ct.items,We,Ft):(gi=gi.slice(We,We+Ft),Ct.items=Ct.items.concat(gi)),rn.splice(Qt--,1)):ct.hasSubgroups&&gi.length?(Sr(ct,gi,We,Ft),ct.items.length||rn.splice(Qt--,1)):(gi=gi.slice(We,We+Ft),ct.items=gi,ct.items.length||rn.splice(Qt--,1)),0===gi.length?We-=Do:(We=0,Ft-=gi.length),++Qt>=rn.length)break}Qt<rn.length&&rn.splice(Qt,rn.length-Qt)}function rs(Ct,rn){for(var ct,Qt,We=[],Ft=(Ct||[]).length,gi=kn(rn)?rn:function(Or,hs){return Or[hs]},Do=0;Do<Ft;Do++)if((ct=gi(Ct,Do)).hasSubgroups)We=We.concat(rs(ct.items));else{Qt=ct.items;for(var Po=0;Po<Qt.length;Po++)We.push(gi(Qt,Po))}return We}function Os(Ct){var rn,Ft,ct,Qt,We=[];for(rn=0,Ft=Ct.length;rn<Ft;rn++){var gi=Ct.at(rn);if(gi.items)if(gi.hasSubgroups)We=We.concat(Os(gi.items));else for(ct=gi.items,Qt=0;Qt<ct.length;Qt++)We.push(ct.at(Qt))}return We}function Ys(Ct,rn){var We,Ft,ct;if(rn)for(We=0,Ft=Ct.length;We<Ft;We++)(ct=Ct.at(We)).items&&(ct.hasSubgroups?Ys(ct.items,rn):ct.items=new Qn(ct.items,rn,ct.items._events))}function la(Ct,rn){for(var We=0;We<Ct.length;We++)if(Ct[We].hasSubgroups){if(la(Ct[We].items,rn))return!0}else if(rn(Ct[We].items,Ct[We]))return!0}function Da(Ct,rn,We,Ft){for(var ct=0;ct<Ct.length&&Ct[ct].data!==rn&&!Ka(Ct[ct].data,We,Ft);ct++);}function Ka(Ct,rn,We){for(var Ft=0,ct=Ct.length;Ft<ct;Ft++){if(Ct[Ft]&&Ct[Ft].hasSubgroups)return Ka(Ct[Ft].items,rn,We);if(Ct[Ft]===rn||Ct[Ft]===We)return Ct[Ft]=We,!0}}function nl(Ct,rn,We,Ft,ct){for(var Qt=0,gi=Ct.length;Qt<gi;Qt++){var Do=Ct[Qt];if(Do&&!(Do instanceof Ft))if(Do.hasSubgroups===Ke||ct){for(var Po=0;Po<rn.length;Po++)if(rn[Po]===Do){Ct[Qt]=rn.at(Po),Da(We,rn,Do,Ct[Qt]);break}}else nl(Do.items,rn,We,Ft,ct)}}function xl(Ct,rn){return rn?To(Ct,function(We){return We.uid&&We.uid==rn.uid||We[rn.idField]===rn.id&&rn.id!==rn._defaultId}):-1}function eo(Ct,rn){return rn?To(Ct,function(We){return We.uid==rn.uid}):-1}function To(Ct,rn){var We,Ft;if(Ct){for(We=0,Ft=Ct.length;We<Ft;We++)if(rn(Ct[We]))return We;return-1}}function Qo(Ct,rn){if(Ct&&!it(Ct)){var Ft,We=Ct[rn];return Ft=St(We)?We.from||We.field||rn:Ct[rn]||rn,kn(Ft)?rn:Ft}return rn}function Dr(Ct,rn){var We,Ft,ct={};for(var Qt in Ct)"filters"!==Qt&&(ct[Qt]=Ct[Qt]);if(Ct.filters)for(ct.filters=[],We=0,Ft=Ct.filters.length;We<Ft;We++)ct.filters[We]=Dr(Ct.filters[We],rn);else ct.field=Qo(rn.fields,ct.field);return ct}function _s(Ct,rn){var We,Ft,Qt,gi,ct=[];for(We=0,Ft=Ct.length;We<Ft;We++){for(var Do in Qt={},gi=Ct[We])Qt[Do]=gi[Do];Qt.field=Qo(rn.fields,Qt.field),Qt.aggregates&&Dt(Qt.aggregates)&&(Qt.aggregates=_s(Qt.aggregates,rn)),ct.push(Qt)}return ct}var ia=ui.extend({init:function(Ct){var Ft,rn=this;if(Ct&&(Ft=Ct.data),Ct=rn.options=ze({},rn.options,Ct),rn._map={},rn._prefetch={},rn._data=[],rn._pristineData=[],rn._ranges=[],rn._view=[],rn._pristineTotal=0,rn._destroyed=[],rn._pageSize=Ct.pageSize,rn._page=Ct.page||(Ct.pageSize?1:Ke),rn._sort=zi(Ct.sort),rn._sortFields=Kn(Ct.sort),rn._filter=$i(Ct.filter),rn._group=cr(Ct.group),rn._aggregate=Ct.aggregate,rn._total=Ct.total,rn._groupPaging=Ct.groupPaging,rn._groupPaging&&(rn._groupsState={}),rn._shouldDetachObservableParents=!0,ui.fn.init.call(rn),rn.transport=Ia.create(Ct,Ft,rn),kn(rn.transport.push)&&rn.transport.push({pushCreate:rn._pushCreate.bind(rn),pushUpdate:rn._pushUpdate.bind(rn),pushDestroy:rn._pushDestroy.bind(rn)}),null!=Ct.offlineStorage)if("string"==typeof Ct.offlineStorage){var ct=Ct.offlineStorage;rn._storage={getItem:function(){return JSON.parse(localStorage.getItem(ct))},setItem:function(Qt){localStorage.setItem(ct,Kt(rn.reader.serialize(Qt)))}}}else rn._storage=Ct.offlineStorage;rn.reader=new Dn.data.readers[Ct.schema.type||"json"](Ct.schema),rn._detachObservableParents(),rn._data=rn._observe(rn._data),rn._online=!0,rn.bind(["push",Be,Je,At,"sync",Pt,Rt],Ct)},options:{data:null,schema:{modelBase:Me},offlineStorage:null,serverSorting:!1,serverPaging:!1,serverFiltering:!1,serverGrouping:!1,serverAggregates:!1,batch:!1,inPlaceSort:!1},clone:function(){return this},online:function(Ct){return Ct!==Ke?this._online!=Ct&&(this._online=Ct,Ct)?this.sync():Xe.Deferred().resolve().promise():this._online},offlineData:function(Ct){return null==this.options.offlineStorage?null:Ct!==Ke?this._storage.setItem(Ct):this._storage.getItem()||[]},_isServerGrouped:function(){var Ct=this.group()||[];return this.options.serverGrouping&&Ct.length},_isServerGroupPaged:function(){return this._isServerGrouped()&&this._groupPaging},_isGroupPaged:function(){return this._groupPaging&&(this._group||[]).length},_pushCreate:function(Ct){this._push(Ct,"pushCreate")},_pushUpdate:function(Ct){this._push(Ct,"pushUpdate")},_pushDestroy:function(Ct){this._push(Ct,"pushDestroy")},_push:function(Ct,rn){var We=this._readData(Ct);We||(We=Ct),this[rn](We)},_flatData:function(Ct,rn){if(Ct){if(this._isServerGrouped())return Os(Ct);if(!rn)for(var We=0;We<Ct.length;We++)Ct.at(We)}return Ct},parent:Vn,get:function(Ct){var rn,We,Ft=this._flatData(this._data,this.options.useRanges);for(rn=0,We=Ft.length;rn<We;rn++)if(Ft[rn].id==Ct)return Ft[rn]},getByUid:function(Ct){return this._getByUid(Ct,this._data)},_getByUid:function(Ct,rn){var We,Ft,ct=this._flatData(rn,this.options.useRanges);if(ct)for(We=0,Ft=ct.length;We<Ft;We++)if(ct[We].uid==Ct)return ct[We]},indexOf:function(Ct){return eo(this._data,Ct)},at:function(Ct){return this._data.at(Ct)},data:function(Ct){var rn=this;if(Ct===Ke){if(rn._data)for(var We=0;We<rn._data.length;We++)rn._data.at(We);return rn._data}rn._detachObservableParents(),rn._data=this._observe(Ct),rn._pristineData=Ct.slice(0),rn._storeData(),rn._ranges=[],rn.trigger("reset"),rn._addRange(rn._data),rn._total=rn._data.length,rn._pristineTotal=rn._total,rn._process(rn._data)},view:function(Ct){if(Ct===Ke)return this._view;this._view=this._observeView(Ct)},_observeView:function(Ct){var rn=this;nl(Ct,rn._data,rn._ranges,rn.reader.model||Pn,rn._isServerGrouped());var We=new Qn(Ct,rn.reader.model);return We.parent=function(){return rn.parent()},We},flatView:function(){return(this.group()||[]).length?Os(this._view):this._view},add:function(Ct){return this.insert(this._data.length,Ct)},_createNewModel:function(Ct){return this.reader.model?new this.reader.model(Ct):Ct instanceof Pn?Ct:new Pn(Ct)},insert:function(Ct,rn){return rn||(rn=Ct,Ct=0),rn instanceof Me||(rn=this._createNewModel(rn)),this._isServerGrouped()?this._data.splice(Ct,0,this._wrapInEmptyGroup(rn)):this._data.splice(Ct,0,rn),this._insertModelInRange(Ct,rn),rn},pushInsert:function(Ct,rn){var Ft=this._getCurrentRangeSpan();rn||(rn=Ct,Ct=0),Dt(rn)||(rn=[rn]);var ct=[],Qt=this.options.autoSync;this.options.autoSync=!1;try{for(var gi=0;gi<rn.length;gi++){var Po=this.insert(Ct,rn[gi]);ct.push(Po);var Or=Po.toJSON();this._isServerGrouped()&&(Or=this._wrapInEmptyGroup(Or)),this._pristineData.push(Or),Ft&&Ft.length&&Xe(Ft).last()[0].pristineData.push(Or),Ct++}}finally{this.options.autoSync=Qt}ct.length&&this.trigger("push",{type:"create",items:ct})},pushCreate:function(Ct){this.pushInsert(this._data.length,Ct)},pushUpdate:function(Ct){Dt(Ct)||(Ct=[Ct]);for(var rn=[],We=0;We<Ct.length;We++){var Ft=Ct[We],ct=this._createNewModel(Ft),Qt=this.get(ct.id);Qt?(rn.push(Qt),Qt.accept(Ft),Qt.trigger(Je),this._updatePristineForModel(Qt,Ft)):this.pushCreate(Ft)}rn.length&&this.trigger("push",{type:"update",items:rn})},pushDestroy:function(Ct){var rn=this._removeItems(Ct);rn.length&&this.trigger("push",{type:"destroy",items:rn})},_removeItems:function(Ct,rn){Dt(Ct)||(Ct=[Ct]);var We=!(typeof rn<"u")||rn,Ft=[],ct=this.options.autoSync;this.options.autoSync=!1;try{for(var Qt=0;Qt<Ct.length;Qt++){var Do=this._createNewModel(Ct[Qt]),Po=!1;this._eachItem(this._data,function(Or){for(var hs=0;hs<Or.length;hs++){var Zs=Or.at(hs);if(Zs.id===Do.id){Ft.push(Zs),Or.splice(hs,1),Po=!0;break}}}),Po&&We&&(this._removePristineForModel(Do),this._destroyed.pop())}}finally{this.options.autoSync=ct}return Ft},pushMove:function(Ct,rn){var We=this._moveItems(Ct,rn);We.length&&this.trigger("push",{type:"update",items:We})},_moveItems:function(Ct,rn){Dt(rn)||(rn=[rn]);var We=[],Ft=this.options.autoSync;this.options.autoSync=!1;try{for(var ct=0;ct<rn.length;ct++){var gi=this._createNewModel(rn[ct]);this._eachItem(this._data,function(Do){for(var Po=0;Po<Do.length;Po++){var Or=Do.at(Po);if(Or.id===gi.id){We.push(Or),Do.splice(Ct>=Po?--Ct:Ct,0,Do.splice(Po,1)[0]),Ct++;break}}})}}finally{this.options.autoSync=Ft}return We},remove:function(Ct){var rn,Ft=this._isServerGrouped();return Ft&&Ct.uid&&(!Ct.isNew||!Ct.isNew())&&this._pushInDestroyed(Ct),this._eachItem(this._data,function(ct){if(rn=function il(Ct,rn){if(Ct){var Ft,ct,We=Ct.length;for(ct=0;ct<We;ct++)if((Ft=Ct[ct]).uid&&Ft.uid==rn.uid)return Ct.splice(ct,1),Ft}}(ct,Ct),rn&&Ft)return!0}),this._removeModelFromRanges(Ct),Ct},destroyed:function(){return this._destroyed},created:function(){var Ct,rn,We=[],Ft=this._flatData(this._data,this.options.useRanges);for(Ct=0,rn=Ft.length;Ct<rn;Ct++)Ft[Ct].isNew&&Ft[Ct].isNew()&&We.push(Ft[Ct]);return We},updated:function(){var Ct,rn,We=[],Ft=this._flatData(this._data,this.options.useRanges);for(Ct=0,rn=Ft.length;Ct<rn;Ct++)Ft[Ct].isNew&&!Ft[Ct].isNew()&&Ft[Ct].dirty&&We.push(Ft[Ct]);return We},sync:function(){var Ct=this,rn=[],We=[],Ft=Ct._destroyed,ct=Xe.Deferred().resolve().promise();if(Ct.online()){if(!Ct.reader.model)return ct;rn=Ct.created(),We=Ct.updated();var Qt=[];Ct.options.batch&&Ct.transport.submit?Qt=Ct._sendSubmit(rn,We,Ft):(Qt.push.apply(Qt,Ct._send("create",rn)),Qt.push.apply(Qt,Ct._send("update",We)),Qt.push.apply(Qt,Ct._send("destroy",Ft))),ct=Xe.when.apply(null,Qt).then(function(){var gi,Do;for(gi=0,Do=arguments.length;gi<Do;gi++)arguments[gi]&&Ct._accept(arguments[gi]);Ct._storeData(!0),Ct._syncEnd(),Ct._change({action:"sync"}),Ct.trigger("sync"),Ct._isServerGroupPaged()&&Ct.read()})}else Ct._storeData(!0),Ct._syncEnd(),Ct._change({action:"sync"});return ct},_syncEnd:Vn,cancelChanges:function(Ct){var rn=this;Ct instanceof Dn.data.Model?rn._cancelModel(Ct):(rn._destroyed=[],rn._detachObservableParents(),rn._data=rn._observe(rn._pristineData),rn.options.serverPaging&&(rn._total=rn._pristineTotal),rn._ranges=[],rn._addRange(rn._data,0),rn._changesCanceled(),rn._change(),rn._markOfflineUpdatesAsDirty(),rn._isServerGrouped()&&rn.read())},_changesCanceled:Vn,_markOfflineUpdatesAsDirty:function(){null!=this.options.offlineStorage&&this._eachItem(this._data,function(rn){for(var We=0;We<rn.length;We++){var Ft=rn.at(We);("update"==Ft.__state__||"create"==Ft.__state__)&&(Ft.dirty=!0)}})},hasChanges:function(){var Ct,rn,We=this._flatData(this._data,this.options.useRanges);if(this._destroyed.length)return!0;for(Ct=0,rn=We.length;Ct<rn;Ct++)if(We[Ct].isNew&&We[Ct].isNew()||We[Ct].dirty)return!0;return!1},_accept:function(Ct){var Po,rn=this,We=Ct.models,Ft=Ct.response,ct=0,Qt=rn._isServerGrouped(),gi=rn._pristineData,Do=Ct.type;if(rn.trigger(Pt,{response:Ft,type:Do}),Ft&&!it(Ft)){if(Ft=rn.reader.parse(Ft),rn._handleCustomErrors(Ft))return;Ft=rn.reader.data(Ft),Dt(Ft)||(Ft=[Ft])}else Ft=Xe.map(We,function(Or){return Or.toJSON()});for("destroy"===Do&&(rn._destroyed=[]),ct=0,Po=We.length;ct<Po;ct++)"destroy"!==Do?(We[ct].accept(Ft[ct]),"create"===Do?gi.push(Qt?rn._wrapInEmptyGroup(We[ct].toJSON()):Ft[ct]):"update"===Do&&rn._updatePristineForModel(We[ct],Ft[ct])):rn._removePristineForModel(We[ct])},_updatePristineForModel:function(Ct,rn){this._executeOnPristineForModel(Ct,function(We,Ft){Dn.deepExtend(Ft[We],rn)})},_executeOnPristineForModel:function(Ct,rn){this._eachPristineItem(function(We){var Ft=xl(We,Ct);if(Ft>-1)return rn(Ft,We),!0})},_removePristineForModel:function(Ct){this._executeOnPristineForModel(Ct,function(rn,We){We.splice(rn,1)})},_readData:function(Ct){return(this._isServerGrouped()?this.reader.groups:this.reader.data).call(this.reader,Ct)},_eachPristineItem:function(Ct){var rn=this,We=rn.options,Ft=rn._getCurrentRangeSpan();rn._eachItem(rn._pristineData,Ct),We.serverPaging&&We.useRanges&&Sn(Ft,function(ct,Qt){rn._eachItem(Qt.pristineData,Ct)})},_eachItem:function(Ct,rn){Ct&&Ct.length&&(this._isServerGrouped()?la(Ct,rn):rn(Ct))},_pristineForModel:function(Ct){var rn,We;return this._eachPristineItem(function(ct){if((We=xl(ct,Ct))>-1)return rn=ct[We],!0}),rn},_cancelModel:function(Ct){var rn=this,We=this._pristineForModel(Ct);this._eachItem(this._data,function(Ft){var ct=eo(Ft,Ct);ct>=0&&(!We||Ct.isNew()&&!We.__state__?(rn._modelCanceled(Ct),Ft.splice(ct,1),rn._removeModelFromRanges(Ct)):(Ft[ct].accept(We),"update"==We.__state__&&(Ft[ct].dirty=!0)))})},_modelCanceled:Vn,_submit:function(Ct,rn){var We=this;We.trigger(At,{type:"submit"}),We.trigger(Rt),We.transport.submit(ze({success:function(Ft,ct){var Qt=Xe.grep(Ct,function(gi){return gi.type==ct})[0];Qt&&Qt.resolve({response:Ft,models:Qt.models,type:ct})},error:function(Ft,ct,Qt){for(var gi=0;gi<Ct.length;gi++)Ct[gi].reject(Ft);We.error(Ft,ct,Qt)}},rn))},_sendSubmit:function(Ct,rn,We){var Ft=this,ct=[];return Ft.options.batch&&(Ct.length&&ct.push(Xe.Deferred(function(Qt){Qt.type="create",Qt.models=Ct})),rn.length&&ct.push(Xe.Deferred(function(Qt){Qt.type="update",Qt.models=rn})),We.length&&ct.push(Xe.Deferred(function(Qt){Qt.type="destroy",Qt.models=We})),Ft._submit(ct,{data:{created:Ft.reader.serialize(na(Ct)),updated:Ft.reader.serialize(na(rn)),destroyed:Ft.reader.serialize(na(We))}})),ct},_promise:function(Ct,rn,We){var Ft=this;return Xe.Deferred(function(ct){Ft.trigger(At,{type:We}),Ft.trigger(Rt),Ft.transport[We].call(Ft.transport,ze({success:function(Qt){ct.resolve({response:Qt,models:rn,type:We})},error:function(Qt,gi,Do){ct.reject(Qt),Ft.error(Qt,gi,Do)}},Ct))}).promise()},_send:function(Ct,rn){var Ft,ct,Qt=[],gi=this.reader.serialize(na(rn));if(this.options.batch)rn.length&&Qt.push(this._promise({data:{models:gi}},rn,Ct));else for(Ft=0,ct=rn.length;Ft<ct;Ft++)Qt.push(this._promise({data:gi[Ft]},[rn[Ft]],Ct));return Qt},read:function(Ct){var rn=this,We=rn._params(Ct),Ft=Xe.Deferred();return rn._queueRequest(We,function(){var ct=rn.trigger(At,{type:"read"});ct?(rn._dequeueRequest(),Ft.resolve(ct)):(rn.trigger(Rt),rn._ranges=[],rn.trigger("reset"),rn.online()?rn.transport.read({data:We,success:function(Qt){rn._ranges=[],rn.success(Qt,We),Ft.resolve()},error:function(){var Qt=qt.call(arguments);rn.error.apply(rn,Qt),Ft.reject.apply(Ft,Qt)}}):null!=rn.options.offlineStorage&&(rn.success(rn.offlineData(),We),Ft.resolve()))}),Ft.promise()},_readAggregates:function(Ct){return this.reader.aggregates(Ct)},success:function(Ct){var Ft,ct,rn=this,We=rn.options;if(rn.trigger(Pt,{response:Ct,type:"read"}),rn.online()){if(Ct=rn.reader.parse(Ct),rn._handleCustomErrors(Ct))return void rn._dequeueRequest();rn._total=rn.reader.total(Ct),rn._isServerGroupPaged()&&(rn._serverGroupsTotal=rn._total),rn._pageSize>rn._total&&(rn._pageSize=rn._total,rn.options.pageSize&&rn.options.pageSize>rn._pageSize&&(rn._pageSize=rn.options.pageSize)),rn._aggregate&&We.serverAggregates&&(rn._aggregateResult=rn._readAggregates(Ct)),Ct=rn._readData(Ct),rn._destroyed=[]}else{Ct=rn._readData(Ct),Ft=[];var Po,Qt={},gi=rn.reader.model,Do=gi?gi.idField:"id";for(Po=0;Po<this._destroyed.length;Po++){var Or=this._destroyed[Po][Do];Qt[Or]=Or}for(Po=0;Po<Ct.length;Po++){var hs=Ct[Po];"destroy"==hs.__state__?Qt[hs[Do]]||this._pushInDestroyed(this._createNewModel(hs)):Ft.push(hs)}rn._total=(Ct=Ft).length}if(rn._pristineTotal=rn._total,ct=rn._skip&&rn._data.length&&rn._skip<rn._data.length,rn.options.endless){ct&&rn._pristineData.splice(rn._skip,rn._pristineData.length),Ft=Ct.slice(0);for(var ca=0;ca<Ft.length;ca++)rn._pristineData.push(Ft[ca])}else rn._pristineData=Ct.slice(0);if(rn._detachObservableParents(),rn.options.endless){rn._data.unbind(Je,rn._changeHandler),rn._isServerGrouped()&&rn._data[rn._data.length-1].value===Ct[0].value&&(Ro(rn._data[rn._data.length-1],Ct[0]),Ct.shift()),Ct=rn._observe(Ct),ct&&rn._data.splice(rn._skip,rn._data.length);for(var za=0;za<Ct.length;za++)rn._data.push(Ct[za]);rn._data.bind(Je,rn._changeHandler)}else rn._data=rn._observe(Ct);rn._markOfflineUpdatesAsDirty(),rn._storeData(),rn._addRange(rn._data),rn._process(rn._data),rn._dequeueRequest()},_detachObservableParents:function(){if(this._data&&this._shouldDetachObservableParents)for(var Ct=0;Ct<this._data.length;Ct++)this._data[Ct].parent&&(this._data[Ct].parent=Vn)},_storeData:function(Ct){var rn=this._isServerGrouped(),We=this.reader.model;if(null!=this.options.offlineStorage){for(var ct=function Ft(Po){for(var Or=[],hs=0;hs<Po.length;hs++){var Zs=Po.at(hs),ca=Zs.toJSON();rn&&Zs.items?ca.items=Ft(Zs.items):(ca.uid=Zs.uid,We&&(Zs.isNew()?ca.__state__="create":Zs.dirty&&(ca.__state__="update"))),Or.push(ca)}return Or}(this._data),Qt=[],gi=0;gi<this._destroyed.length;gi++){var Do=this._destroyed[gi].toJSON();Do.__state__="destroy",Qt.push(Do)}this.offlineData(ct.concat(Qt)),Ct&&(this._pristineData=this.reader.reader?this.reader.reader._wrapDataAccessBase(ct):this.reader._wrapDataAccessBase(ct))}},_addRange:function(Ct,rn){var ct,We=this,Ft=typeof rn<"u"?rn:We._skip||0,Qt={data:Ct,pristineData:Ct.toJSON(),timestamp:We._timeStamp()};this._isGroupPaged()?(ct=Ft+Ct.length,Qt.outerStart=Ft,Qt.outerEnd=ct):ct=Ft+We._flatData(Ct,!0).length,Qt.start=Ft,Qt.end=ct,We._ranges.push(Qt),We._sortRanges(),We._isGroupPaged()&&(We._groupsFlat||(We._groupsFlat=[]),We._appendToGroupsFlat(Qt.data),We._updateOuterRangesLength())},_appendToGroupsFlat:function(Ct){for(var rn=Ct.length,We=0;We<rn;We++)this._groupsFlat.push(Ct[We])},_getGroupByUid:function(Ct){for(var We,rn=this._groupsFlat.length,Ft=0;Ft<rn;Ft++)if((We=this._groupsFlat[Ft]).uid===Ct)return We},_sortRanges:function(){this._ranges.sort(function(Ct,rn){return Ct.start-rn.start})},error:function(Ct,rn,We){this._dequeueRequest(),this.trigger(Pt,{}),this.trigger(Be,{xhr:Ct,status:rn,errorThrown:We})},_params:function(Ct){var rn=this,We=ze({take:rn.take(),skip:rn.skip(),page:rn.page(),pageSize:rn.pageSize(),sort:rn._sort,filter:rn._filter,group:rn._group,aggregate:rn._aggregate,groupPaging:!!rn._groupPaging},Ct);return rn.options.serverPaging||(delete We.take,delete We.skip,delete We.page,delete We.pageSize),rn.options.serverGrouping?rn.reader.model&&We.group&&(We.group=_s(We.group,rn.reader.model)):delete We.group,rn.options.serverFiltering?rn.reader.model&&We.filter&&(We.filter=Dr(We.filter,rn.reader.model)):delete We.filter,rn.options.serverSorting?rn.reader.model&&We.sort&&(We.sort=_s(We.sort,rn.reader.model)):delete We.sort,rn.options.serverAggregates?rn.reader.model&&We.aggregate&&(We.aggregate=_s(We.aggregate,rn.reader.model)):delete We.aggregate,rn.options.groupPaging||delete We.groupPaging,We},_queueRequest:function(Ct,rn){var We=this;We._requestInProgress?We._pending={callback:rn.bind(We),options:Ct}:(We._requestInProgress=!0,We._pending=Ke,rn())},_dequeueRequest:function(){var Ct=this;Ct._requestInProgress=!1,Ct._pending&&Ct._queueRequest(Ct._pending.options,Ct._pending.callback)},_handleCustomErrors:function(Ct){if(this.reader.errors){var rn=this.reader.errors(Ct);if(rn)return this.trigger(Be,{xhr:null,status:"customerror",errorThrown:"custom error",errors:rn}),!0}return!1},_shouldWrap:function(Ct){var rn=this.reader.model;return!(!rn||!Ct.length||Ct[0]instanceof rn)},_observe:function(Ct){var rn=this,We=rn.reader.model;return rn._shouldDetachObservableParents=!0,Ct instanceof mn?(rn._shouldDetachObservableParents=!1,rn._shouldWrap(Ct)&&(Ct.type=rn.reader.model,Ct.wrapAll(Ct,Ct))):(Ct=new(rn.pageSize()&&!rn.options.serverPaging?Qn:mn)(Ct,rn.reader.model)).parent=function(){return rn.parent()},rn._isServerGrouped()&&Ys(Ct,We),!(rn._changeHandler&&rn._data&&rn._data instanceof mn)||rn.options.useRanges&&rn.options.serverPaging?rn._changeHandler=rn._change.bind(rn):rn._data.unbind(Je,rn._changeHandler),Ct.bind(Je,rn._changeHandler)},_updateTotalForAction:function(Ct,rn){var We=this,Ft=parseInt(We._total,10);ks(We._total)||(Ft=parseInt(We._pristineTotal,10)),"add"===Ct?Ft+=rn.length:"remove"===Ct?Ft-=rn.length:"itemchange"===Ct||"sync"===Ct||We.options.serverPaging?"sync"===Ct&&(Ft=We._pristineTotal=parseInt(We._total,10)):Ft=We._pristineTotal,We._total=Ft},_pushInDestroyed:function(Ct){this._destroyed.find(function(We){return We.uid===Ct.uid})||this._destroyed.push(Ct)},_change:function(Ct){var We,Ft,rn=this,ct=Ct?Ct.action:"";if("remove"===ct)for(We=0,Ft=Ct.items.length;We<Ft;We++)(!Ct.items[We].isNew||!Ct.items[We].isNew())&&rn._pushInDestroyed(Ct.items[We]);if(!rn.options.autoSync||"add"!==ct&&"remove"!==ct&&"itemchange"!==ct)rn._updateTotalForAction(ct,Ct?Ct.items:[]),rn._process(rn._data,Ct);else{var Qt=function(gi){"sync"===gi.action&&(rn.unbind("change",Qt),rn._updateTotalForAction(ct,Ct.items))};rn.first("change",Qt),rn.sync()}},_calculateAggregates:function(Ct,rn){rn=rn||{};var We=new on(Ct),Ft=rn.aggregate,ct=rn.filter;return ct&&(We=We.filter(ct)),We.aggregate(Ft)},_process:function(Ct,rn){var ct,We=this,Ft={};if(!0!==We.options.serverPaging&&(Ft.skip=We._skip,Ft.take=We._take||We._pageSize,Ft.skip===Ke&&We._page!==Ke&&We._pageSize!==Ke&&(Ft.skip=(We._page-1)*We._pageSize),We.options.useRanges&&(Ft.skip=We.currentRangeStart())),!0!==We.options.serverSorting&&(Ft.sort=We._sort),!0!==We.options.serverFiltering&&(Ft.filter=We._filter),!0!==We.options.serverGrouping&&(Ft.group=We._group),!0!==We.options.serverAggregates&&(Ft.aggregate=We._aggregate),We.options.serverGrouping&&We._clearEmptyGroups(Ct),Ft.groupPaging=We._groupPaging,ct=We._isGroupPaged()&&rn&&("page"===rn.action||"expandGroup"===rn.action||"collapseGroup"===rn.action)?We._queryProcess(Ct,{aggregate:We._aggregate}):We._queryProcess(Ct,Ft),We._filter&&rn&&"add"===rn.action){var Qt=rn.items[0];ct.data.find(function(Po){return Po.uid===Qt.uid})||(ct.data.splice(Qt.index,0,Qt),ct.total++)}!0!==We.options.serverAggregates&&(We._aggregateResult=We._calculateAggregates(ct.dataToAggregate||Ct,Ft)),We._setView(ct,Ft,rn),We._setFilterTotal(ct.total,!1),(rn=rn||{}).items=rn.items||We._view,We.trigger(Je,rn)},_setView:function(Ct,rn,We){var Ft=this;if(Ft._isGroupPaged()&&!Ft._isServerGrouped())if(!We||"page"!==We.action&&"expandGroup"!==We.action&&"collapseGroup"!==We.action){Ft._ranges=[];var ct=new on(Ct.data);Ft._addRange(Ft._observe(Ct.data)),rn.skip+rn.take>Ct.data.length&&(rn.skip=Ct.data.length-rn.take),Ft.view(ct.range(rn.skip,rn.take).toArray())}else Ft.view(Ct.data),Ft._updateOuterRangesLength();else Ft.view(Ct.data)},_clearEmptyGroups:function(Ct){for(var rn=Ct.length-1;rn>=0;rn--){var We=Ct[rn];We.hasSubgroups&&this._clearEmptyGroups(We.items),We.items&&!We.items.length&&!We.itemCount&&Wn.apply(We.parent(),[rn,1])}},_queryProcess:function(Ct,rn){return this.options.inPlaceSort?on.process(Ct,rn,this.options.inPlaceSort):on.process(Ct,rn)},_mergeState:function(Ct){var rn=this;return Ct!==Ke&&(rn._pageSize=Ct.pageSize,rn._page=Ct.page,rn._sort=Ct.sort,rn._filter=Ct.filter,rn._group=Ct.group,rn._aggregate=Ct.aggregate,rn._skip=rn._currentRangeStart=Ct.skip,rn._take=Ct.take,rn._skip===Ke&&(rn._skip=rn._currentRangeStart=rn.skip(),Ct.skip=rn.skip()),rn._take===Ke&&rn._pageSize!==Ke&&(rn._take=rn._pageSize,Ct.take=rn._take),rn.options.virtual&&(Ct.virtual=rn.options.virtual),Ct.sort&&(rn._sort=Ct.sort=zi(Ct.sort),rn._sortFields=Kn(Ct.sort)),Ct.filter&&(rn._filter=Ct.filter=rn.options.accentFoldingFiltering&&!Xe.isEmptyObject(Ct.filter)?Xe.extend({},$i(Ct.filter),{accentFoldingFiltering:rn.options.accentFoldingFiltering}):$i(Ct.filter)),Ct.group&&(rn._group=Ct.group=cr(Ct.group)),Ct.aggregate&&(rn._aggregate=Ct.aggregate=function fo(Ct){return Dt(Ct)?Ct:[Ct]}(Ct.aggregate))),Ct},query:function(Ct){var rn;if(this.options.serverSorting||this.options.serverPaging||this.options.serverFiltering||this.options.serverGrouping||this.options.serverAggregates||(this._data===Ke||0===this._data.length)&&!this._destroyed.length){if(this.options.endless){var Ft=Ct.pageSize-this.pageSize();Ft>0?(Ft=this.pageSize(),Ct.page=Ct.pageSize/Ft,Ct.pageSize=Ft):(Ct.page=1,this.options.endless=!1)}return this.read(this._mergeState(Ct))}var ct=this.trigger(At,{type:"read"});return ct||(this.trigger(Rt),Ct&&(Ct.groupPaging=this._groupPaging),rn=this._queryProcess(this._data,this._mergeState(Ct)),this._setFilterTotal(rn.total,!0),this._aggregateResult=this._calculateAggregates(rn.dataToAggregate||this._data,Ct),this._setView(rn,Ct),this.trigger(Pt,{type:"read"}),this.trigger(Je,{items:rn.data,action:Ct?Ct.action:""})),Xe.Deferred().resolve(ct).promise()},_hasExpandedSubGroups:function(Ct){var rn=!1,We=Ct.items?Ct.items.length:0;if(!Ct.hasSubgroups)return!1;for(var Ft=0;Ft<We;Ft++)if(this._groupsState[Ct.items[Ft].uid]){rn=!0;break}return rn},_findGroupedRange:function(Ct,rn,We,Ft,ct){for(var Do,Po,Or,hs,Zs,Qt=this,gi=Ct.length,ca=0;ca<gi&&(Do=Ct[ca],!(We.taken>=We.take));ca++)if(Qt._getGroupByUid(Do.uid)||Qt._groupsFlat.push(Do),Qt._groupsState[Do.uid]){if(Qt._isServerGroupPaged()){if(Qt._fetchGroupItems(Do,We,Ft,ct))return void(Qt._fetchingGroupItems=!0);if(hs=(Do.subgroupCount||Do.itemCount)+1,Zs=We.skip-We.skipped,!Qt._hasExpandedSubGroups(Do)&&Zs>hs){We.skipped+=hs;continue}}if(We.includeParents&&We.skipped<We.skip?(We.skipped++,Do.excludeHeader=!0):We.includeParents&&(We.taken++,Do.excludeHeader=!1),Do.hasSubgroups&&Do.items&&Do.items.length)Do.currentItems=[],Ft||(Ft=[]),Ft.push(Do),Qt._findGroupedRange(Do.items,Do.currentItems,We,Ft,ct),Ft.pop(),Do.currentItems.length||We.taken>0?rn.push(Do):Do.excludeHeader=!1;else{Po=[],Or=Do.items.length;for(var za=0;za<Or;za++)if(We.skipped<We.skip)We.skipped++;else{if(We.taken>=We.take)break;Po.push(Do.items[za]),We.taken++}Po.length||We.taken>0?(Do.currentItems=Po,rn.push(Do)):Do.excludeHeader=!1}}else{if(We.skipped<We.skip){We.skipped++;continue}rn.push(Do),We.taken++}},_expandedSubGroupItemsCount:function(Ct,rn,We){var Qt,Po,ct=0,gi="number"==typeof rn,Do=gi?rn:Ct.subgroupCount;if(!Ct.hasSubgroups)return ct;for(var Or=0;Or<Do&&(Qt=Ct.items[Or]);Or++)if(Qt.hasSubgroups&&this._groupsState[Ct.uid]?(ct+=Po=this._expandedSubGroupItemsCount(Qt,Do,!0),gi&&(Do-=Po)):!Qt.hasSubgroups&&this._groupsState[Qt.uid]&&(ct+=Po=Qt.items?Qt.items.length:0,gi&&(Do-=Po)),We&&(ct+=1,gi&&(Do-=1)),gi&&ct>Do)return ct;return ct},_fetchGroupItems:function(Ct,rn,We,Ft){var Qt,gi,Do,ca,Po=Ct.hasSubgroups?Ct.subgroupCount:Ct.itemCount,Or=rn.take,hs=rn.skipped,Zs=this.take();return rn.includeParents&&(hs<rn.skip?hs+=1:Or-=1),!Ct.items||Ct.items&&!Ct.items.length?(this.getGroupItems(Ct,rn,We,Ft,0),!0):(ca=this._expandedSubGroupItemsCount(Ct,rn.skip-hs),!((Qt=Math.max(rn.skip-(hs+ca),0))>=Po)&&(gi=Ct.items[Qt],Do=Ct.items[Math.min(Qt+Or,Po-1)],gi.notFetched?(this.getGroupItems(Ct,rn,We,Ft,On.max(On.floor(Qt/Zs),0)*Zs,On.round((Qt+Zs)/Zs)),!0):Do.notFetched?(this.getGroupItems(Ct,rn,We,Ft,On.max(On.floor((Qt+Zs)/Zs),0)*Zs,On.round((Qt+Zs)/Zs)),!0):void 0))},getGroupItems:function(Ct,rn,We,Ft,ct,Qt){var Do,Po,Or,hs,gi=this;Ct.items||(Ct.items=[]),Do=gi.take(),Po=this._composeItemsFilter(Ct,We),Or={page:Qt||1,pageSize:Do,skip:ct,take:Do,filter:Po,aggregate:gi._aggregate,sort:gi._sort},(hs=gi.findSubgroups(Ct))&&hs.length&&(Or.group=hs,Or.groupPaging=!0),clearTimeout(gi._timeout),gi._timeout=setTimeout(function(){gi._queueRequest(Or,function(){gi.trigger(At,{type:"read"})?gi._dequeueRequest():gi.transport.read({data:Or,success:gi._groupItemsSuccessHandler(Ct,rn.skip,gi.take(),Ft,ct),error:function(){var Zs=qt.call(arguments);gi.error.apply(gi,Zs)}})})},100)},_groupItemsSuccessHandler:function(Ct,rn,We,Ft,ct){var Qt=this,gi=Qt._timeStamp();Ft=kn(Ft)?Ft:Vn;var Do=Qt.options.schema&&Qt.options.schema.total?Qt.options.schema.total:"Total";return function(Po){var Or,Zs,hs=Me.define(Qt.options.schema.model);Qt._dequeueRequest(),Qt.trigger(Pt,{response:Po,type:"read"}),Zs=kn(Do)?Do(Po):Po[Do],Po=Qt.reader.parse(Po),Ct.hasSubgroups?(Or=Qt.reader.groups(Po),Ct.subgroupCount=Zs):Or=(Or=Qt.reader.data(Po)).map(function(za){return new hs(za)}),Ct.items.omitChangeEvent=!0;for(var ca=0;ca<Zs;ca++)ca>=ct&&ca<ct+We?Ct.items.splice(ca,1,Or[ca-ct]):Ct.items[ca]||Ct.items.splice(ca,0,{notFetched:!0});Ct.items.omitChangeEvent=!1,Qt._updateRangePristineData(Ct),Qt._fetchingGroupItems=!1,Ct.countAdded||(Qt._serverGroupsTotal+=Zs,Ct.countAdded=!0),Qt.range(rn,We,Ft,"expandGroup"),(gi>=Qt._currentRequestTimeStamp||!Qt._skipRequestsInProgress)&&Qt.trigger(Je,{})}},findSubgroups:function(Ct){var rn=this._group.map(function(We){return We.field}).indexOf(Ct.field);return this._group.slice(rn+1,this._group.length)},_composeItemsFilter:function(Ct,rn){var We=this.filter()||{logic:"and",filters:[]};if(We.logic="and",(We=ze(!0,{},We)).filters.push({field:Ct.field,operator:"eq",value:Ct.value}),rn)for(var Ft=0;Ft<rn.length;Ft++)We.filters.push({field:rn[Ft].field,operator:"eq",value:rn[Ft].value});return We},_updateRangePristineData:function(Ct){for(var ct,Qt,gi,Do,Po,We=this._ranges,Ft=We.length,hs=0;hs<Ft;hs++){Do=(gi=We[hs]).data.length,Po=[],ct=null;for(var Zs=0;Zs<Do&&(Qt=gi.data[Zs],Po.push(Zs),!(Qt.uid===Ct.uid||Qt.hasSubgroups&&Qt.items.length&&this._containsSubGroup(Qt,Ct,Po)));Zs++)Po.pop();if(Po.length){for(ct=We[hs].pristineData;Po.length>1;)ct=ct[Po.splice(0,1)[0]].items;ct[Po[0]]=this._cloneGroup(Ct);break}}},_containsSubGroup:function(Ct,rn,We){var Qt,ct=Ct.items.length;if(Ct.hasSubgroups&&ct)for(var gi=0;gi<ct;gi++){if(Qt=Ct.items[gi],We.push(gi),Qt.uid===rn.uid||Qt.hasSubgroups&&Qt.items.length&&this._containsSubGroup(Qt,rn,We))return!0;We.pop()}},_cloneGroup:function(Ct){var rn=this;return(Ct="function"==typeof Ct.toJSON?Ct.toJSON():Ct).items&&Ct.items.length&&(Ct.items=Ct.items.map(function(We){return rn._cloneGroup(We)})),Ct},_setFilterTotal:function(Ct,rn){this.options.serverFiltering||(Ct!==Ke?this._total=Ct:rn&&(this._total=this._data.length))},fetch:function(Ct){var rn=this;return this._query().done(function(Ft){!0!==Ft&&kn(Ct)&&Ct.call(rn)})},_query:function(Ct){var rn=this;return rn.query(ze({},{page:rn.page(),pageSize:rn.pageSize(),sort:rn.sort(),filter:rn.filter(),group:rn.group(),aggregate:rn.aggregate()},Ct))},next:function(Ct){var rn=this,We=rn.page(),Ft=rn.total();if(Ct=Ct||{},We&&!(Ft&&We+1>rn.totalPages()))return rn._skip=rn._currentRangeStart=We*rn.take(),Ct.page=We+=1,rn._query(Ct),We},prev:function(Ct){var rn=this,We=rn.page();if(Ct=Ct||{},We&&1!==We)return rn._skip=rn._currentRangeStart=rn._skip-rn.take(),Ct.page=We-=1,rn._query(Ct),We},page:function(Ct){var We,rn=this;if(Ct!==Ke){Ct=On.max(On.min(On.max(Ct,1),rn.totalPages()),1);var Ft=rn.take();return rn._isGroupPaged()?void rn.range((Ct-=1)*Ft,Ft,null,"page"):void rn._query(rn._pageableQueryOptions({page:Ct}))}return(We=rn.skip())!==Ke?On.round((We||0)/(rn.take()||1))+1:Ke},pageSize:function(Ct){if(Ct===Ke)return this.take();this._query(this._pageableQueryOptions({pageSize:Ct,page:1}))},sort:function(Ct){return Ct!==Ke?(this.trigger("sort"),void this._query({sort:Ct})):this._sort},filter:function(Ct){if(Ct===Ke)return this._filter;this.trigger("reset"),this._query({filter:Ct,page:1})},group:function(Ct){var We={group:Ct};if(this._groupPaging&&(Ct!==Ke&&(!Ct||!Ct.length)&&(this._ranges=[]),We.page=1),Ct===Ke)return this._group;this._query(We)},getGroupsFlat:function(Ct){var rn,Ft,We=[];for(rn=0,Ft=Ct.length;rn<Ft;rn++){var ct=Ct[rn];ct.hasSubgroups&&(We=We.concat(this.getGroupsFlat(ct.items))),We.push(ct)}return We},total:function(){return parseInt(this._total||0,10)},groupsTotal:function(Ct){var rn=this;return rn._group.length?rn._isServerGrouped()?(rn._serverGroupsTotal||(rn._serverGroupsTotal=rn.total()),rn._serverGroupsTotal):rn._calculateGroupsTotal(rn._ranges.length?rn._ranges[0].data:[],Ct):rn.total()},_calculateGroupsTotal:function(Ct,rn,We,Ft){var Qt,gi,ct=this;if(We=We||"items",ct._group.length&&Ct){Qt=0,gi=Ct.length;for(var Do=0;Do<gi;Do++)Qt+=ct.groupCount(Ct[Do],rn,We,Ft);return ct._groupsTotal=Qt,Qt}return ct._groupsTotal=ct._data.length,ct._groupsTotal},groupCount:function(Ct,rn,We,Ft){var ct=this,Qt=0;return Ct.hasSubgroups&&ct._groupsState[Ct.uid]?((rn&&!Ct.excludeHeader||Ft)&&(Qt+=1),Ct[We].forEach(function(gi){Qt+=ct.groupCount(gi,rn,We,Ft)})):ct._groupsState[Ct.uid]?((rn&&!Ct.excludeHeader||Ft)&&Qt++,Qt+=Ct[We]?Ct[We].length:0):Qt++,Qt},countGroupRange:function(Ct){for(var rn=0,We=Ct.length,Ft=0;Ft<We;Ft++)rn+=this.groupCount(Ct[Ft],!0);return rn},aggregate:function(Ct){if(Ct===Ke)return this._aggregate;this._query({aggregate:Ct})},aggregates:function(){var Ct=this._aggregateResult;return it(Ct)&&(Ct=this._emptyAggregates(this.aggregate())),Ct},_emptyAggregates:function(Ct){var rn={};if(!it(Ct)){var We={};Dt(Ct)||(Ct=[Ct]);for(var Ft=0;Ft<Ct.length;Ft++)We[Ct[Ft].aggregate]=0,rn[Ct[Ft].field]=We}return rn},_pageableQueryOptions:function(Ct){return Ct},_wrapInEmptyGroup:function(Ct){var We,Ft,ct,rn=this.group();for(ct=rn.length-1;ct>=0;ct--)Ft=rn[ct],We={value:Ct.get?Ct.get(Ft.field):Ct[Ft.field],field:Ft.field,items:We?[We]:[Ct],hasSubgroups:!!We,aggregates:this._emptyAggregates(Ft.aggregates)};return We},totalPages:function(){var Ct=this,rn=Ct.pageSize()||Ct.total(),We=Ct._isGroupPaged()?Ct.groupsTotal(!0):Ct.total();return On.ceil((We||0)/rn)},inRange:function(Ct,rn){var Ft=On.min(Ct+rn,this.total());return!this.options.serverPaging&&this._data.length>0||this._findRange(Ct,Ft).length>0},lastRange:function(){var Ct=this._ranges;return Ct[Ct.length-1]||{start:0,end:0,data:[]}},firstItemUid:function(){var Ct=this._ranges;return Ct.length&&Ct[0].data.length&&Ct[0].data[0].uid},enableRequestsInProgress:function(){this._skipRequestsInProgress=!1},_timeStamp:function(){return(new Date).getTime()},range:function(Ct,rn,We,Ft){this._currentRequestTimeStamp=this._timeStamp(),this._skipRequestsInProgress=!0;var ct=this._isGroupPaged()?this.groupsTotal(!0):this.total();("expandGroup"===Ft||"collapseGroup"===Ft)&&this._updateOuterRangesLength(),Ct=On.min(Ct||0,ct),We=kn(We)?We:Vn;var Po,Qt=this,gi=On.max(On.floor(Ct/rn),0)*rn,Do=On.min(gi+rn,ct);if(((Po=Qt._findRange(Ct,On.min(Ct+rn,ct),We)).length||0===ct)&&!Qt._fetchingGroupItems)return Qt._processRangeData(Po,Ct,rn,Qt._originalPageSkip||gi,Qt._originalSize||Do,{action:Ft}),Qt._originalPageSkip=null,Qt._originalSize=null,void We();Qt._isGroupPaged()&&(Qt._originalPageSkip=gi,Qt._originalSize=Do,gi=On.max(On.floor(Qt._adjustPageSkip(Ct,rn)/rn),0)*rn,Do=On.min(gi+rn,ct)),rn!==Ke&&!Qt._fetchingGroupItems&&(Qt._isGroupPaged()&&!Qt._groupRangeExists(gi,rn)||!Qt._rangeExists(gi,Do)?Qt.prefetch(gi,rn,function(){Ct>gi&&Do<Qt.total()&&!Qt._rangeExists(Do,On.min(Do+rn,Qt.total()))?Qt.prefetch(Do,rn,function(){Qt.range(Ct,rn,We)}):Qt.range(Ct,rn,We)}):gi<Ct&&Qt.prefetch(Do,rn,function(){Qt.range(Ct,rn,We)}))},_findRange:function(Ct,rn,We){var Qt,Do,Po,Or,hs,Zs,ca,za,bc,ec,Wl,Hc,Ft=this,ct=Ft._ranges,gi=[],cl=Ft.options,yc=cl.serverSorting||cl.serverPaging||cl.serverFiltering||cl.serverGrouping||cl.serverAggregates,va={take:rn-Ct,skip:Ct,skipped:0,taken:0,includeParents:!0},Vc=Ft._isGroupPaged(),Mu=Vc?"outerStart":"start",Tl=Vc?"outerEnd":"end";for(Do=0,Wl=ct.length;Do<Wl;Do++){if(Qt=ct[Do],Vc){if(Qt.outerStart>=rn)return[];if(Ct>Qt.outerEnd){va.skipped+=Qt.outerEnd-(Hc||0),Hc=Qt.outerEnd;continue}if(typeof Hc<"u"&&Hc!=Qt.outerStart&&(va.skipped+=Qt.outerStart-Hc),va.skipped>va.skip)return[];for(typeof Hc>"u"&&Ct>0&&Qt.start>0&&(va.skipped=Qt.outerStart),Po=Do;;){if(this._findGroupedRange(Qt.data,gi,va,null,We),Ft._calculateGroupsTotal(gi,!0,"currentItems")>=va.take)return gi;if(Ft._fetchingGroupItems)return[];if(!ct[++Po]||ct[Po].outerStart!==Qt.outerEnd)break;Qt=ct[Po]}}else if(Ct>=Qt[Mu]&&Ct<=Qt[Tl]){for(ec=0,Po=Do;Po<Wl;Po++)if((bc=Ft._flatData((Qt=ct[Po]).data,!0)).length&&Ct+ec>=Qt.start){if(Zs=Qt.data,ca=Qt.end,!yc){if(cl.inPlaceSort)za=Ft._queryProcess(Qt.data,{filter:Ft.filter()});else{var Id=Fr(Ft.group()||[]).concat(zi(Ft.sort()||[]));za=Ft._queryProcess(Qt.data,{sort:Id,filter:Ft.filter()})}bc=Zs=za.data,za.total!==Ke&&(ca=za.total)}if(Or=0,Ct+ec>Qt.start&&(Or=Ct+ec-Qt.start),hs=bc.length,ca>rn&&(hs-=ca-rn),ec+=hs-Or,gi=Ft._mergeGroups(gi,Zs,Or,hs),rn<=Qt.end&&ec==rn-Ct)return gi}break}Hc=Qt.outerEnd}return[]},_getRangesMismatch:function(Ct){for(var We=this._ranges,Ft=0,ct=0;;){var Qt=We[ct];if(!Qt||Qt.outerStart>Ct)break;Qt.outerEnd!=Qt.end&&(Ft=Qt.outerEnd-Qt.end),ct++}return Ft},_mergeGroups:function(Ct,rn,We,Ft){if(this._isServerGrouped()){var Qt,ct=rn.toJSON();return Ct.length&&(Qt=Ct[Ct.length-1]),Sr(Qt,ct,We,Ft),Ct.concat(ct)}return Ct.concat(rn.slice(We,Ft))},_processRangeData:function(Ct,rn,We,Ft,ct,Qt){var gi=this;gi._pending=Ke,gi._skip=rn>gi.skip()&&!gi._omitPrefetch?On.min(ct,(gi.totalPages()-1)*gi.take()):Ft,gi._currentRangeStart=rn,gi._take=We;var Do=gi.options.serverPaging,Po=gi.options.serverSorting,Or=gi.options.serverFiltering,hs=gi.options.serverAggregates;try{gi.options.serverPaging=!0,!gi._isServerGrouped()&&!(gi.group()&&gi.group().length)&&(gi.options.serverSorting=!0),gi.options.serverFiltering=!0,gi.options.serverPaging=!0,gi.options.serverAggregates=!0,Do&&(gi._detachObservableParents(),gi._data=Ct=gi._observe(Ct)),gi._process(Ct,Qt)}finally{gi.options.serverPaging=Do,gi.options.serverSorting=Po,gi.options.serverFiltering=Or,gi.options.serverAggregates=hs}},skip:function(){var Ct=this;return Ct._skip===Ke?Ct._page!==Ke?(Ct._page-1)*(Ct.take()||1):Ke:Ct._skip},currentRangeStart:function(){return this._currentRangeStart||0},take:function(){return this._take||this._pageSize},_prefetchSuccessHandler:function(Ct,rn,We,Ft){var ct=this,Qt=ct._timeStamp();return function(gi){var Or,hs,Zs,Do=!1,Po={start:Ct,end:rn,data:[],timestamp:ct._timeStamp()};if(ct._dequeueRequest(),ct.trigger(Pt,{response:gi,type:"read"}),gi=ct.reader.parse(gi),(Zs=ct._readData(gi)).length){for(Or=0,hs=ct._ranges.length;Or<hs;Or++)if(ct._ranges[Or].start===Ct){Do=!0,Po=ct._ranges[Or],ct._isGroupPaged()||(Po.pristineData=Zs,Po.data=ct._observe(Zs),Po.end=Po.start+ct._flatData(Po.data,!0).length,ct._sortRanges());break}Do||ct._addRange(ct._observe(Zs),Ct)}ct._total=ct.reader.total(gi),(Ft||Qt>=ct._currentRequestTimeStamp||!ct._skipRequestsInProgress)&&(We&&Zs.length?We():ct.trigger(Je,{}))}},prefetch:function(Ct,rn,We){var Ft=this,ct=On.min(Ct+rn,Ft.total()),Qt={take:rn,skip:Ct,page:Ct/rn+1,pageSize:rn,sort:Ft._sort,filter:Ft._filter,group:Ft._group,aggregate:Ft._aggregate};Ft._isGroupPaged()&&!Ft._isServerGrouped()&&Ft._groupRangeExists(Ct,ct)?We&&We():Ft._isServerGroupPaged()&&!Ft._groupRangeExists(Ct,ct)||!Ft._rangeExists(Ct,ct)?(clearTimeout(Ft._timeout),Ft._timeout=setTimeout(function(){Ft._queueRequest(Qt,function(){Ft.trigger(At,{type:"read"})?Ft._dequeueRequest():(Ft._omitPrefetch&&Ft.trigger(Rt),Ft.transport.read({data:Ft._params(Qt),success:Ft._prefetchSuccessHandler(Ct,ct,We),error:function(){var gi=qt.call(arguments);Ft.error.apply(Ft,gi)}}))})},100)):We&&We()},_multiplePrefetch:function(Ct,rn,We){var Ft=this,ct=On.min(Ct+rn,Ft.total()),Qt={take:rn,skip:Ct,page:Ct/rn+1,pageSize:rn,sort:Ft._sort,filter:Ft._filter,group:Ft._group,aggregate:Ft._aggregate};Ft._rangeExists(Ct,ct)?We&&We():Ft.trigger(At,{type:"read"})||Ft.transport.read({data:Ft._params(Qt),success:Ft._prefetchSuccessHandler(Ct,ct,We,!0)})},_adjustPageSkip:function(Ct,rn){var ct,gi,Ft=this._getPrevRange(Ct),Qt=this.total();if(Ft){if(!(gi=this._getRangesMismatch(Ct)))return Ct;Ct-=gi}if((ct=On.max(On.floor(Ct/rn),0)*rn)>Qt)for(;!((ct-=rn)<Qt););return ct},_getNextRange:function(Ct){var Ft,ct,We=this._ranges;for(Ft=0,ct=We.length;Ft<ct;Ft++)if(We[Ft].start<=Ct&&We[Ft].end>=Ct)return We[Ft]},_getPrevRange:function(Ct){var Ft,ct,We=this._ranges;for(Ft=We.length-1;Ft>=0;Ft--)if(We[Ft].outerStart<=Ct){ct=We[Ft];break}return ct},_rangeExists:function(Ct,rn){var ct,Qt,Ft=this._ranges;for(ct=0,Qt=Ft.length;ct<Qt;ct++)if(Ft[ct].start<=Ct&&Ft[ct].end>=rn)return!0;return!1},_groupRangeExists:function(Ct,rn){var ct,Qt,Ft=this._ranges,gi=0,Do=this.groupsTotal(!0);for(rn>Do&&!this._isServerGrouped()&&(rn=Do),ct=0,Qt=Ft.length;ct<Qt;ct++){var Po=Ft[ct];Po.outerStart<=Ct&&Po.outerEnd>=Ct?gi+=Po.outerEnd-Ct:Po.outerStart<=rn&&Po.outerEnd>=rn&&(gi+=rn-Po.outerStart)}return gi>=rn-Ct},_getCurrentRangeSpan:function(){var Qt,gi,rn=this._ranges,We=this.currentRangeStart(),Ft=We+(this.take()||0),ct=[],Do=rn.length;for(gi=0;gi<Do;gi++)((Qt=rn[gi]).start<=We&&Qt.end>=We||Qt.start>=We&&Qt.start<=Ft)&&ct.push(Qt);return ct},_removeModelFromRanges:function(Ct){for(var Ft=0,ct=this._ranges.length;Ft<ct;Ft++)this._removeModelFromRange(this._ranges[Ft],Ct);this._updateRangesLength()},_removeModelFromRange:function(Ct,rn){this._eachItem(Ct.data,function(We){if(We)for(var Ft=0;Ft<We.length;Ft++){var ct=We[Ft];if(ct.uid&&ct.uid==rn.uid){[].splice.call(We,Ft,1);break}}})},_insertModelInRange:function(Ct,rn){var Qt,gi,We=this,Ft=We._ranges||[],ct=Ft.length;for(gi=0;gi<ct;gi++)if((Qt=Ft[gi]).start<=Ct&&Qt.end>=Ct){We._getByUid(rn.uid,Qt.data)||(We._isServerGrouped()?Qt.data.splice(Ct,0,We._wrapInEmptyGroup(rn)):Qt.data.splice(Ct,0,rn));break}We._updateRangesLength()},_updateRangesLength:function(){var Do,Po,rn=this._ranges||[],We=rn.length,Ft=!1,ct=0,Qt=0;for(Po=0;Po<We;Po++)Do=rn[Po],Qt=(this._isGroupPaged()?Do.data.length:this._flatData(Do.data,!0).length)-On.abs(Do.end-Do.start),Ft||0===Qt?Ft&&(Do.start+=ct,Do.end+=ct):(Ft=!0,Do.end+=ct=Qt)},_updateOuterRangesLength:function(){var ct,Qt,gi,Do,rn=this._ranges||[],We=rn.length,Ft=0;for(Qt=0;Qt<We;Qt++)ct=rn[Qt],Do=this._isGroupPaged()?this._calculateGroupsTotal(ct.data,!0,"items",!0):this._flatData(ct.data,!0).length,gi?(gi.end!=ct.start&&(Ft=ct.start-gi.end),ct.outerStart=gi.outerEnd+Ft,Ft=0):ct.outerStart=ct.start,ct.outerEnd=ct.outerStart+Do,gi=ct}}),Ia={create:function(Ct,rn,We){var Ft,ct=Ct.transport?Xe.extend({},Ct.transport):null;return ct?(ct.read=typeof ct.read===en?{url:ct.read}:ct.read,"jsdo"===Ct.type&&(ct.dataSource=We),Ct.type&&(Dn.data.transports=Dn.data.transports||{},Dn.data.schemas=Dn.data.schemas||{},Dn.data.transports[Ct.type]?St(Dn.data.transports[Ct.type])?ct=ze(!0,{},Dn.data.transports[Ct.type],ct):Ft=new Dn.data.transports[Ct.type](ze(ct,{data:rn})):Dn.logToConsole("Unknown DataSource transport type '"+Ct.type+"'.\nVerify that registration scripts for this type are included after Kendo UI on the page.","warn"),Ct.schema=ze(!0,{},Dn.data.schemas[Ct.type],Ct.schema)),Ft||(Ft=kn(ct.read)?ct:new _a(ct))):Ft=new Xs({data:Ct.data||[]}),Ft}};ia.create=function(Ct){(Dt(Ct)||Ct instanceof mn)&&(Ct={data:Ct});var gi,Do,Or,rn=Ct||{},We=rn.data,Ft=rn.fields,ct=rn.table,Qt=rn.select,Po={};if(!We&&Ft&&!rn.transport&&(ct?We=function wa(Ct,rn){var ct,Qt,gi,Or,hs,Zs,ca,We=Xe(Ct)[0].tBodies[0],Ft=We?We.rows:[],Do=rn.length,Po=[];for(ct=0,Qt=Ft.length;ct<Qt;ct++){for(hs={},ca=!0,Or=Ft[ct].cells,gi=0;gi<Do;gi++)"th"!==(Zs=Or[gi]).nodeName.toLowerCase()&&(ca=!1,hs[rn[gi].field]=Zs.innerHTML);ca||Po.push(hs)}return Po}(ct,Ft):Qt&&(We=function ar(Ct,rn){var gi,Do,Po,Or,hs,Zs,We=(Ct=Xe(Ct)[0]).options,Ft=rn[0],ct=rn[1],Qt=[];for(gi=0,Do=We.length;gi<Do;gi++)hs={},(Po=(Or=We[gi]).parentNode)===Ct&&(Po=null),!(Or.disabled||Po&&Po.disabled)&&(Po&&(hs.optgroup=Po.label),hs[Ft.field]=Or.text,hs[ct.field]=Zs=(Zs=Or.attributes.value)&&Zs.specified?Or.value:Or.text,Qt.push(hs));return Qt}(Qt,Ft),rn.group===Ke&&We[0]&&We[0].optgroup!==Ke&&(rn.group="optgroup"))),Dn.data.Model&&Ft&&(!rn.schema||!rn.schema.model)){for(gi=0,Do=Ft.length;gi<Do;gi++)(Or=Ft[gi]).type&&(Po[Or.field]=Or);it(Po)||(rn.schema=ze(!0,rn.schema,{model:{fields:Po}}))}return rn.data=We,Qt=null,rn.select=null,ct=null,rn.table=null,rn instanceof ia?rn:new ia(rn)};var _l=Me.define({idField:"id",init:function(Ct){var rn=this,We=rn.hasChildren||Ct&&Ct.hasChildren,Ft="items",ct={};if(Dn.data.Model.fn.init.call(rn,Ct),typeof rn.children===en&&(Ft=rn.children),ct={schema:{data:Ft,model:{hasChildren:We,id:rn.idField,fields:rn.fields}}},typeof rn.children!==en&&ze(ct,rn.children),ct.data=Ct,We||(We=ct.schema.data),typeof We===en&&(We=Dn.getter(We)),kn(We)){var Qt=We.call(rn,rn);rn.hasChildren=!(Qt&&0===Qt.length||!Qt)}rn._childrenOptions=ct,rn.hasChildren&&rn._initChildren(),rn._loaded=!(!Ct||!Ct._loaded)},_initChildren:function(){var rn,We,Ft,Ct=this;Ct.children instanceof pa||(rn=Ct.children=new pa(Ct._childrenOptions),Ft=(We=rn.transport).parameterMap,We.parameterMap=function(ct,Qt){return ct[Ct.idField||"id"]=Ct.id,Ft&&(ct=Ft.call(Ct,ct,Qt)),ct},rn.parent=function(){return Ct},rn.bind(Je,function(ct){ct.node=ct.node||Ct,Ct.trigger(Je,ct)}),rn.bind(Be,function(ct){var Qt=Ct.parent();Qt&&(ct.node=ct.node||Ct,Qt.trigger(Be,ct))}),rn.bind($t,function(ct){var Qt=Ct.parent();Qt&&Qt.trigger($t,ct)}),Ct._updateChildrenField())},append:function(Ct){this._initChildren(),this.loaded(!0),this.children.add(Ct)},hasChildren:!1,level:function(){for(var Ct=this.parentNode(),rn=0;Ct&&Ct.parentNode;)rn++,Ct=Ct.parentNode?Ct.parentNode():null;return rn},_updateChildrenField:function(){this[this._childrenOptions.schema.data||"items"]=this.children.data()},_childrenLoaded:function(){this._loaded=!0,this._updateChildrenField()},load:function(){var We,Ft,Ct={},rn="_query";return this.hasChildren?(this._initChildren(),We=this.children,Ct[this.idField||"id"]=this.id,this._loaded||(We._data=Ke,rn="read"),We.one(Je,this._childrenLoaded.bind(this)),this._matchFilter&&(Ct.filter={field:"_matchFilter",operator:"eq",value:!0}),Ft=We[rn](Ct),this._loaded||this.trigger(Xn,{promise:Ft,node:this})):this.loaded(!0),Ft||Xe.Deferred().resolve().promise()},parentNode:function(){return this.parent().parent()},loaded:function(Ct){if(Ct===Ke)return this._loaded;this._loaded=Ct},shouldSerialize:function(Ct){return Me.fn.shouldSerialize.call(this,Ct)&&"children"!==Ct&&"_loaded"!==Ct&&"hasChildren"!==Ct&&"_childrenOptions"!==Ct}});function Ya(Ct){return function(){var rn=this._data,We=ia.fn[Ct].apply(this,qt.call(arguments));return this._data!=rn&&this._attachBubbleHandlers(),We}}var pa=ia.extend({init:function(Ct){var rn=_l.define({children:Ct});Ct.filter&&!Ct.serverFiltering&&(this._hierarchicalFilter=Ct.filter,Ct.filter=null),ia.fn.init.call(this,ze(!0,{},{schema:{modelBase:rn,model:rn}},Ct)),this._attachBubbleHandlers()},_attachBubbleHandlers:function(){var Ct=this;Ct._data.bind(Be,function(rn){Ct.trigger(Be,rn)}),Ct._data.bind($t,function(rn){Ct.trigger($t,rn)})},loading:function(){return!!this._data&&(this._data.loading()||this._childrenLoading())},_childrenLoading:function(){var Ct=!1;return this._data.forEach(function(rn){rn.hasChildren&&rn.children.loading()&&(Ct=!0)}),Ct},read:function(Ct){var rn=ia.fn.read.call(this,Ct);return this._hierarchicalFilter&&(this._data&&this._data.length>0?this.filter(this._hierarchicalFilter):(this.options.filter=this._hierarchicalFilter,this._filter=$i(this.options.filter),this._hierarchicalFilter=null)),rn},remove:function(Ct){var Ft,rn=Ct.parentNode(),We=this;return rn&&rn._initChildren&&(We=rn.children),Ft=ia.fn.remove.call(We,Ct),rn&&!We.data().length&&(rn.hasChildren=!1),Ft},success:Ya("success"),data:Ya("data"),insert:function(Ct,rn){var We=this.parent();return We&&We._initChildren&&(We.hasChildren=!0,We._initChildren()),ia.fn.insert.call(this,Ct,rn)},filter:function(Ct){if(Ct===Ke)return this._filter;!this.options.serverFiltering&&this._markHierarchicalQuery(Ct)&&(Ct={logic:"or",filters:[Ct,{field:"_matchFilter",operator:"equals",value:!0}]}),this.trigger("reset"),this._query({filter:Ct,page:1})},_markHierarchicalQuery:function(Ct){var rn,We,Ft,ct,Qt,gi=this.options.accentFoldingFiltering;return(Ct=gi?Xe.extend({},$i(Ct),{accentFoldingFiltering:gi}):$i(Ct))&&0!==Ct.filters.length?(rn=on.filterExpr(Ct),Ft=rn.fields,ct=rn.operators,We=Qt=new Function("d, __f, __o","return "+rn.expression),(Ft.length||ct.length)&&(Qt=function(Do){return We(Do,Ft,ct)}),this._updateHierarchicalFilter(Qt),!0):(this._updateHierarchicalFilter(function(){return!0}),!1)},_updateHierarchicalFilter:function(Ct){for(var rn,We=this._data,Ft=!1,ct=0;ct<We.length;ct++)(rn=We[ct]).hasChildren?(rn._matchFilter=rn.children._updateHierarchicalFilter(Ct),rn._matchFilter||(rn._matchFilter=Ct(rn))):rn._matchFilter=Ct(rn),rn._matchFilter&&(Ft=!0);return Ft},_find:function(Ct,rn){var We,Ft,ct,Qt,gi=this._data;if(gi){if(ct=ia.fn[Ct].call(this,rn))return ct;for(We=0,Ft=(gi=this._flatData(this._data)).length;We<Ft;We++)if((Qt=gi[We].children)instanceof pa&&(ct=Qt[Ct](rn)))return ct}},get:function(Ct){return this._find("get",Ct)},getByUid:function(Ct){return this._find("getByUid",Ct)}});function rl(Ct,rn){var Ft,ct,gi,Zs,ca,za,cl,yc,We=Xe(Ct).children(),Qt=[],Do=rn[0].field,Po=rn[1]&&rn[1].field,Or=rn[2]&&rn[2].field,hs=rn[3]&&rn[3].field;function bc(ec,Wl){return ec.filter(Wl).add(ec.find(Wl))}for(Ft=0,ct=We.length;Ft<ct;Ft++)gi={_loaded:!0},za=(Zs=We.eq(Ft))[0].firstChild,Ct=(yc=Zs.children()).filter("ul"),yc=yc.filter(":not(ul)"),(ca=Zs.attr("data-id"))&&(gi.id=ca),za&&(gi[Do]=3==za.nodeType?za.nodeValue:yc.text()),Po&&(gi[Po]=bc(yc,"a").attr("href")),hs&&(gi[hs]=bc(yc,"img").attr("src")),Or&&(cl=bc(yc,".k-sprite").prop("className"),gi[Or]=cl&&Dn.trim(cl.replace("k-sprite",""))),Ct.length&&(gi.items=rl(Ct.eq(0),rn)),"true"==Zs.attr("data-hasChildren")&&(gi.hasChildren=!0),Qt.push(gi);return Qt}pa.create=function(Ct){var rn=(Ct=Ct&&Ct.push?{data:Ct}:Ct)||{},We=rn.data,Ft=rn.fields,ct=rn.list;return We&&We._dataSource?We._dataSource:(!We&&Ft&&!rn.transport&&ct&&(We=rl(ct,Ft)),rn.data=We,rn instanceof pa?rn:new pa(rn))};var Nl=Dn.Observable.extend({init:function(Ct,rn,We){Dn.Observable.fn.init.call(this),this._prefetching=!1,this.dataSource=Ct,this.prefetch=!We;var Ft=this;Ct.bind("change",function(){Ft._change()}),Ct.bind("reset",function(){Ft._reset()}),this._syncWithDataSource(),this.setViewSize(rn)},setViewSize:function(Ct){this.viewSize=Ct,this._recalculate()},at:function(Ct){var rn=this.pageSize,We=!0;return Ct>=this.total()?(this.trigger("endreached",{index:Ct}),null):this.useRanges?this.useRanges?((Ct<this.dataOffset||Ct>=this.skip+rn)&&(We=this.range(Math.floor(Ct/rn)*rn)),Ct===this.prefetchThreshold&&this._prefetch(),Ct===this.midPageThreshold?this.range(this.nextMidRange,!0):Ct===this.nextPageThreshold?this.range(this.nextFullRange):Ct===this.pullBackThreshold&&this.range(this.offset===this.skip?this.previousMidRange:this.previousFullRange),We?this.dataSource.at(Ct-this.dataOffset):(this.trigger("endreached",{index:Ct}),null)):void 0:this.dataSource.view()[Ct]},indexOf:function(Ct){return this.dataSource.data().indexOf(Ct)+this.dataOffset},total:function(){return parseInt(this.dataSource.total(),10)},next:function(){var Ct=this,rn=Ct.pageSize,We=Ct.skip-Ct.viewSize+rn,Ft=On.max(On.floor(We/rn),0)*rn;this.offset=We,this.dataSource.prefetch(Ft,rn,function(){Ct._goToRange(We,!0)})},range:function(Ct,rn){if(this.offset===Ct)return!0;var We=this,Ft=this.pageSize,ct=On.max(On.floor(Ct/Ft),0)*Ft,Qt=this.dataSource;return rn&&(ct+=Ft),Qt.inRange(Ct,Ft)?(this.offset=Ct,this._recalculate(),this._goToRange(Ct),!0):!this.prefetch||(Qt.prefetch(ct,Ft,function(){We.offset=Ct,We._recalculate(),We._goToRange(Ct,!0)}),!1)},syncDataSource:function(){var Ct=this.offset;this.offset=null,this.range(Ct)},destroy:function(){this.unbind()},_prefetch:function(){var Ct=this,rn=this.pageSize,We=this.skip+rn,Ft=this.dataSource;!Ft.inRange(We,rn)&&!this._prefetching&&this.prefetch&&(this._prefetching=!0,this.trigger("prefetching",{skip:We,take:rn}),Ft.prefetch(We,rn,function(){Ct._prefetching=!1,Ct.trigger("prefetched",{skip:We,take:rn})}))},_goToRange:function(Ct,rn){this.offset===Ct&&(this.dataOffset=Ct,this._expanding=rn,this.dataSource.range(Ct,this.pageSize),this.dataSource.enableRequestsInProgress())},_reset:function(){this._syncPending=!0},_change:function(){var Ct=this.dataSource;this.length=this.useRanges?Ct.lastRange().end:Ct.view().length,this._syncPending&&(this._syncWithDataSource(),this._recalculate(),this._syncPending=!1,this.trigger("reset",{offset:this.offset})),this.trigger("resize"),this._expanding&&this.trigger("expand"),delete this._expanding},_syncWithDataSource:function(){var Ct=this.dataSource;this._firstItemUid=Ct.firstItemUid(),this.dataOffset=this.offset=Ct.skip()||0,this.pageSize=Ct.pageSize(),this.useRanges=Ct.options.serverPaging},_recalculate:function(){var Ct=this.pageSize,rn=this.offset,We=this.viewSize,Ft=Math.ceil(rn/Ct)*Ct;this.skip=Ft,this.midPageThreshold=Ft+Ct-1,this.nextPageThreshold=Ft+We-1,this.prefetchThreshold=Ft+Math.floor(Ct/3*2),this.pullBackThreshold=this.offset-1,this.nextMidRange=Ft+Ct-We,this.nextFullRange=Ft,this.previousMidRange=rn-We,this.previousFullRange=Ft-Ct}}),nd=Dn.Observable.extend({init:function(Ct,rn){var We=this;Dn.Observable.fn.init.call(We),this.dataSource=Ct,this.batchSize=rn,this._total=0,this.buffer=new Nl(Ct,3*rn),this.buffer.bind({endreached:function(Ft){We.trigger("endreached",{index:Ft.index})},prefetching:function(Ft){We.trigger("prefetching",{skip:Ft.skip,take:Ft.take})},prefetched:function(Ft){We.trigger("prefetched",{skip:Ft.skip,take:Ft.take})},reset:function(){We._total=0,We.trigger("reset")},resize:function(){We._total=Math.ceil(this.length/We.batchSize),We.trigger("resize",{total:We.total(),offset:this.offset})}})},syncDataSource:function(){this.buffer.syncDataSource()},at:function(Ct){var Qt,rn=this.buffer,We=Ct*this.batchSize,Ft=this.batchSize,ct=[];rn.offset>We&&rn.at(rn.offset-1);for(var gi=0;gi<Ft&&null!==(Qt=rn.at(We+gi));gi++)ct.push(Qt);return ct},total:function(){return this._total},destroy:function(){this.buffer.destroy(),this.unbind()}});return ze(!0,Dn.data,{readers:{json:to},Query:on,DataSource:ia,HierarchicalDataSource:pa,Node:_l,Comparer:pe,ObservableObject:Pn,ObservableArray:mn,LazyObservableArray:Qn,LocalTransport:Xs,RemoteTransport:_a,Cache:Ws,DataReader:to,Model:Me,Buffer:Nl,BatchBuffer:nd}),window.kendo}.apply(s={},ur=[e,o,l]))&&(d=s),void 0===(A=function(){var Xe=window.kendo.jQuery,ze=window.kendo,St=ze.ui,it=St.Widget,Dt=ze.Class,Hn=ze.support,Ui=ze.getOffset,Co=ze._outerWidth,Sn=ze._outerHeight,Vn="open",Dn="close",kn="deactivate",ui="activate",Ot="center",cn="right",ft="bottom",Nt="absolute",an="hidden",$e="body",Je="location",Ve="position",Ge="visible",Be="effects",At="k-active",Rt="k-state-border",Pt=/k-state-border-(\w+)/,$t=".k-picker-wrap, .k-dropdown-wrap, .k-link",Nn=Xe(document.documentElement),Ae=Xe(window),On=Hn.transitions.css+"transform",Fi=Xe.extend,Ci=".kendoPopup",xi=["font-size","font-family","font-stretch","font-style","font-weight","line-height"];function Wn(Jn,zt){return!(!Jn||!zt)&&(Jn===zt||Xe.contains(Jn,zt))}var Vt=it.extend({init:function(Jn,zt){var Qn,mn=this;(zt=zt||{}).isRtl&&(zt.origin=zt.origin||ft+" "+cn,zt.position=zt.position||"top "+cn),it.fn.init.call(mn,Jn,zt),Jn=mn.element,mn.collisions=(zt=mn.options).collision?zt.collision.split(" "):[],mn.downEvent=ze.applyEventMap("down",ze.guid()),1===mn.collisions.length&&mn.collisions.push(mn.collisions[0]),Qn=Xe(mn.options.anchor).closest(".k-popup,.k-group").filter(":not([class^=km-])"),zt.appendTo=Xe(Xe(zt.appendTo)[0]||Qn[0]||document.body),mn.element.hide().addClass("k-popup k-group k-reset").toggleClass("k-rtl",!!zt.isRtl).css({position:Nt}).appendTo(zt.appendTo).attr("aria-hidden",!0).on("mouseenter"+Ci,function(){mn._hovered=!0}).on("wheel"+Ci,function(ci){var Oi=Xe(ci.target).find(".k-list"),Ai=Oi.parent();Oi.length&&Oi.is(":visible")&&(0===Ai.scrollTop()&&ci.originalEvent.deltaY<0||Ai.scrollTop()===Ai.prop("scrollHeight")-Ai.prop("offsetHeight")&&ci.originalEvent.deltaY>0)&&ci.preventDefault()}).on("mouseleave"+Ci,function(){mn._hovered=!1}),mn.wrapper=Xe(),!1===zt.animation&&(zt.animation={open:{effects:{}},close:{hide:!0,effects:{}}}),Fi(zt.animation.open,{complete:function(){mn.wrapper.css({overflow:Ge}),mn._activated=!0,mn._trigger(ui)}}),Fi(zt.animation.close,{complete:function(){mn._animationClose()}}),mn._mousedownProxy=function(ci){mn._mousedown(ci)},mn._resizeProxy=Hn.mobileOS.android?function(ci){setTimeout(function(){mn._resize(ci)},600)}:function(ci){mn._resize(ci)},zt.toggleTarget&&Xe(zt.toggleTarget).on(zt.toggleEvent+Ci,mn.toggle.bind(mn))},events:[Vn,ui,Dn,kn],options:{name:"Popup",toggleEvent:"click",origin:ft+" left",position:"top left",anchor:$e,appendTo:null,collision:"flip fit",viewport:window,copyAnchorStyles:!0,autosize:!1,modal:!1,adjustSize:{width:0,height:0},animation:{open:{effects:"slideIn:down",transition:!0,duration:200},close:{duration:100,hide:!0}},omitOriginOffsets:!1},_animationClose:function(){var Jn=this,zt=Jn.wrapper.data(Je);Jn.wrapper.hide(),zt&&Jn.wrapper.css(zt),Jn.options.anchor!=$e&&Jn._hideDirClass(),Jn._closing=!1,Jn._trigger(kn)},destroy:function(){var Qn,Jn=this,zt=Jn.options,mn=Jn.element.off(Ci);it.fn.destroy.call(Jn),zt.toggleTarget&&Xe(zt.toggleTarget).off(Ci),zt.modal||(Nn.off(Jn.downEvent,Jn._mousedownProxy),Jn._toggleResize(!1)),ze.destroy(Jn.element.children()),mn.removeData(),zt.appendTo[0]===document.body&&((Qn=mn.parent(".k-animation-container"))[0]?Qn.remove():mn.remove())},open:function(Jn,zt){var Ai,Pn,mn=this,Qn={isFixed:!isNaN(parseInt(zt,10)),x:Jn,y:zt},ci=mn.element,Oi=mn.options,qn=Xe(Oi.anchor),Ni=ci[0]&&ci.hasClass("km-widget"),Ue=ci.find("[role='listbox']");if(!mn.visible()){if(Oi.copyAnchorStyles&&(Ni&&"font-size"==xi[0]&&xi.shift(),ci.css(ze.getComputedStyles(qn[0],xi))),ci.data("animating")||mn._trigger(Vn))return;mn._activated=!1,Oi.modal||(Nn.off(mn.downEvent,mn._mousedownProxy).on(mn.downEvent,mn._mousedownProxy),mn._toggleResize(!1),mn._toggleResize(!0)),mn.wrapper=Pn=ze.wrap(ci,Oi.autosize).css({overflow:an,display:"block",position:Nt}).attr("aria-hidden",!1),Ue.attr("aria-label")?Pn.attr("aria-label",Ue.attr("aria-label")):Ue.attr("aria-labelledby")&&Pn.attr("aria-labelledby",Ue.attr("aria-labelledby")),Hn.mobileOS.android&&Pn.css(On,"translatez(0)"),Pn.css(Ve),Xe(Oi.appendTo)[0]==document.body&&Pn.css("top","-10000px"),mn.flipped=mn._position(Qn),Ai=mn._openAnimation(),Oi.anchor!=$e&&mn._showDirClass(Ai),!ci.is(":visible")&&void 0===ci.data("olddisplay")&&(ci.show(),ci.data("olddisplay",ci.css("display")),ci.hide()),ci.data(Be,Ai.effects).kendoStop(!0).kendoAnimate(Ai).attr("aria-hidden",!1)}},_location:function(Jn){var ci,mn=this.element,Qn=this.options,Oi=Xe(Qn.anchor),Ai=mn[0]&&mn.hasClass("km-widget");Qn.copyAnchorStyles&&(Ai&&"font-size"==xi[0]&&xi.shift(),mn.css(ze.getComputedStyles(Oi[0],xi))),this.wrapper=ci=ze.wrap(mn,Qn.autosize).css({overflow:an,display:"block",position:Nt}),Hn.mobileOS.android&&ci.css(On,"translatez(0)"),ci.css(Ve),Xe(Qn.appendTo)[0]==document.body&&ci.css("top","-10000px"),this._position(Jn||{});var Pn=ci.offset();return{width:ze._outerWidth(ci),height:ze._outerHeight(ci),left:Pn.left,top:Pn.top}},_openAnimation:function(){var Jn=Fi(!0,{},this.options.animation.open);return Jn.effects=ze.parseEffects(Jn.effects,this.flipped),Jn},_hideDirClass:function(){var Jn=Xe(this.options.anchor),zt=((Jn.attr("class")||"").match(Pt)||["","down"])[1],mn=Rt+"-"+zt;Jn.removeClass(mn).children($t).removeClass(At).removeClass(mn),this.element.removeClass(Rt+"-"+ze.directions[zt].reverse)},_showDirClass:function(Jn){var zt=Jn.effects.slideIn?Jn.effects.slideIn.direction:"down",mn=Rt+"-"+zt;Xe(this.options.anchor).addClass(mn).children($t).addClass(At).addClass(mn),this.element.addClass(Rt+"-"+ze.directions[zt].reverse)},position:function(){this.visible()&&(this.flipped=this._position())},toggle:function(){this[this.visible()?Dn:Vn]()},visible:function(){return this.element.is(":"+Ge)},close:function(Jn){var Qn,ci,Oi,Ai,zt=this,mn=zt.options;if(zt.visible()){if(Qn=zt.wrapper[0]?zt.wrapper:ze.wrap(zt.element).hide(),zt._toggleResize(!1),zt._closing||zt._trigger(Dn))return void zt._toggleResize(!0);zt.element.find(".k-popup").each(function(){var qn=Xe(this).data("kendoPopup");qn&&qn.close(Jn)}),Nn.off(zt.downEvent,zt._mousedownProxy),Jn?ci={hide:!0,effects:{}}:(ci=Fi(!0,{},mn.animation.close),Oi=zt.element.data(Be),!(Ai=ci.effects)&&!ze.size(Ai)&&Oi&&ze.size(Oi)&&(ci.effects=Oi,ci.reverse=!0),zt._closing=!0),zt.element.kendoStop(!0).attr("aria-hidden",!0),Qn.css({overflow:an}).attr("aria-hidden",!0),zt.element.kendoAnimate(ci),Jn&&zt._animationClose()}},_trigger:function(Jn){return this.trigger(Jn,{type:Jn})},_resize:function(Jn){var zt=this;-1!==Hn.resize.indexOf(Jn.type)?(clearTimeout(zt._resizeTimeout),zt._resizeTimeout=setTimeout(function(){zt._position(),zt._resizeTimeout=null},50)):(!zt._hovered||zt._activated&&zt.element.find(".k-list").length>0)&&zt.close()},_toggleResize:function(Jn){var zt=Jn?"on":"off",mn=Hn.resize;Hn.mobileOS.ios||Hn.mobileOS.android||Hn.browser.safari||(mn+=" scroll"),Jn&&!this.scrollableParents&&(this.scrollableParents=this._scrollableParents()),this.scrollableParents&&this.scrollableParents.length&&this.scrollableParents[zt]("scroll",this._resizeProxy),Ae[zt](mn,this._resizeProxy)},_mousedown:function(Jn){var mn=this.element[0],Qn=this.options,ci=Xe(Qn.anchor)[0],Oi=Qn.toggleTarget,Ai=ze.eventTarget(Jn),Pn=Xe(Ai).closest(".k-popup"),qn=Pn.parent().parent(".km-shim").length;Pn=Pn[0],(qn||!Pn||Pn===this.element[0])&&"popover"!==Xe(Jn.target).closest("a").data("rel")&&!Wn(mn,Ai)&&!Wn(ci,Ai)&&(!Oi||!Wn(Xe(Oi)[0],Ai))&&this.close()},_fit:function(Jn,zt,mn){var Qn=0;return Jn+zt>mn&&(Qn=mn-(Jn+zt)),Jn<0&&(Qn=-Jn),Qn},_flip:function(Jn,zt,mn,Qn,ci,Oi,Ai){var Pn=0;return Ai=Ai||zt,Oi!==ci&&Oi!==Ot&&ci!==Ot&&(Jn+Ai>Qn&&(Pn+=-(mn+zt)),Jn+Pn<0&&(Pn+=mn+zt)),Pn},_scrollableParents:function(){return Xe(this.options.anchor).parentsUntil("body").filter(function(Jn,zt){return ze.isScrollable(zt)})},_position:function(Jn){var Me,pe,lt,Kn,ho,po,$i,zt=this,mn=zt.element,Qn=zt.wrapper,ci=zt.options,Oi=Xe(ci.viewport),Ai=Hn.zoomLevel(),Pn=!!(Oi[0]==window&&window.innerWidth&&Ai<=1.02),qn=Xe(ci.anchor),Ni=ci.origin.toLowerCase().split(" "),Ue=ci.position.toLowerCase().split(" "),Ye=zt.collisions,yt=10002,on=0,zi=document.documentElement;if(ho=ci.viewport===window?{top:window.pageYOffset||document.documentElement.scrollTop||0,left:window.pageXOffset||document.documentElement.scrollLeft||0}:Oi.offset(),Pn?(po=window.innerWidth,$i=window.innerHeight):(po=Oi.width(),$i=Oi.height()),Pn&&zi.scrollHeight-zi.clientHeight>0&&(po-=(ci.isRtl?-1:1)*ze.support.scrollbar()),(Me=qn.parents().filter(Qn.siblings()))[0])if(lt=Math.max(Number(Me.css("zIndex")),0))yt=lt+10;else for(Kn=(pe=qn.parentsUntil(Me)).length;on<Kn;on++)(lt=Number(Xe(pe[on]).css("zIndex")))&&yt<lt&&(yt=lt+10);Qn.css("zIndex",yt),Qn.css(Jn&&Jn.isFixed?{left:Jn.x,top:Jn.y}:zt._align(Ni,Ue));var wo=Ui(Qn,Ve,qn[0]===Qn.offsetParent()[0]),io=Ui(Qn);qn.offsetParent().parent(".k-animation-container,.k-popup,.k-group").length&&(wo=Ui(Qn,Ve,!0),io=Ui(Qn)),io.top-=ho.top,io.left-=ho.left,zt.wrapper.data(Je)||Qn.data(Je,Fi({},wo));var fo=Fi({},io),cr=Fi({},wo),Fr=ci.adjustSize;"fit"===Ye[0]&&(cr.top+=zt._fit(fo.top,Sn(Qn)+Fr.height,$i/Ai)),"fit"===Ye[1]&&(cr.left+=zt._fit(fo.left,Co(Qn)+Fr.width,po/Ai));var jr=Fi({},cr),fs=Sn(mn),Ms=Sn(Qn);return!Qn.height()&&fs&&(Ms+=fs),"flip"===Ye[0]&&(cr.top+=zt._flip(fo.top,fs,Sn(qn),$i/Ai,Ni[0],Ue[0],Ms)),"flip"===Ye[1]&&(cr.left+=zt._flip(fo.left,Co(mn),Co(qn),po/Ai,Ni[1],Ue[1],Co(Qn))),mn.css(Ve,Nt),Qn.css(cr),cr.left!=jr.left||cr.top!=jr.top},_align:function(Jn,zt){var Ye,mn=this,Qn=mn.wrapper,ci=Xe(mn.options.anchor),Oi=Jn[0],Ai=Jn[1],Pn=zt[0],qn=zt[1],Ni=Ui(ci),Ue=Xe(mn.options.appendTo),Me=Co(Qn),pe=Sn(Qn)||Sn(Qn.children().first()),lt=Co(ci),yt=Sn(ci),on=mn.options.omitOriginOffsets?0:Ni.top,zi=mn.options.omitOriginOffsets?0:Ni.left,Kn=Math.round;return Ue[0]!=document.body&&(on-=(Ye=Ui(Ue)).top,zi-=Ye.left),Oi===ft&&(on+=yt),Oi===Ot&&(on+=Kn(yt/2)),Pn===ft&&(on-=pe),Pn===Ot&&(on-=Kn(pe/2)),Ai===cn&&(zi+=lt),Ai===Ot&&(zi+=Kn(lt/2)),qn===cn&&(zi-=Me),qn===Ot&&(zi-=Kn(Me/2)),{top:on,left:zi}}}),qt=(St.plugin(Vt),ze.support.stableSort),bn="kendoTabKeyTrap",Vi=Dt.extend({init:function(Jn){this.element=Xe(Jn),this.element.autoApplyNS(bn)},trap:function(){this.element.on("keydown",this._keepInTrap.bind(this))},removeTrap:function(){this.element.kendoDestroy(bn)},destroy:function(){this.element.kendoDestroy(bn),this.element=void 0},shouldTrap:function(){return!0},_keepInTrap:function(Jn){if(9===Jn.which&&this.shouldTrap()&&!Jn.isDefaultPrevented()){var zt=this._focusableElements(),mn=this._sortFocusableElements(zt),Qn=this._nextFocusable(Jn,mn);this._focus(Qn),Jn.preventDefault()}},_focusableElements:function(){var Jn=this.element.find("a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex], *[contenteditable]").filter(function(zt,mn){return mn.tabIndex>=0&&Xe(mn).is(":visible")&&!Xe(mn).is("[disabled]")});return this.element.is("[tabindex]")&&Jn.push(this.element[0]),Jn},_sortFocusableElements:function(Jn){var zt;if(qt)zt=Jn.sort(function(Qn,ci){return Qn.tabIndex-ci.tabIndex});else{var mn="__k_index";Jn.each(function(Qn,ci){ci.setAttribute(mn,Qn)}),zt=Jn.sort(function(Qn,ci){return Qn.tabIndex===ci.tabIndex?parseInt(Qn.getAttribute(mn),10)-parseInt(ci.getAttribute(mn),10):Qn.tabIndex-ci.tabIndex}),Jn.removeAttr(mn)}return zt},_nextFocusable:function(Jn,zt){var mn=zt.length,Qn=zt.index(Jn.target);return zt.get((Qn+(Jn.shiftKey?-1:1))%mn)},_focus:function(Jn){"IFRAME"!=Jn.nodeName?(Jn.focus(),"INPUT"==Jn.nodeName&&Jn.setSelectionRange&&this._haveSelectionRange(Jn)&&Jn.setSelectionRange(0,Jn.value.length)):Jn.contentWindow.document.body.focus()},_haveSelectionRange:function(Jn){var zt=Jn.type.toLowerCase();return"text"===zt||"search"===zt||"url"===zt||"tel"===zt||"password"===zt}});return St.Popup.TabKeyTrap=Vi,window.kendo}.apply(_={},ur=[e]))&&(A=_),void 0===(C=function(){var Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,St=ze.ui,it=ze._outerHeight,Dt=/^\d+(\.\d+)?%$/i,Hn=St.Widget,Ui=ze.keys,Co=ze.support,Sn=ze.htmlEncode,Vn=ze._activeElement,Dn=ze._outerWidth,kn=ze.data.ObservableArray,Ot="change",en="k-focus",cn="k-hover",Ht="k-selected",ft="k-i-loading k-input-loading-icon",Ve="k-list-ul",Be=".k-list-group-sticky-header",Rt=".k-list-item",Nn="cascade",Ae="select",He="click",On="mouseenter",Fi="activate",Ci="deactivate",xi="dataBinding",Wn="dataBound",Vt="selectedItemChange",qt="selected",bn="requestStart",ii="requestEnd",Jn="focus",mn=Xe.extend,Qn=Array.isArray,ci=Co.browser,Oi="k-hidden",Ni=ci.msie,Ue=/"/g,Ye={ComboBox:["DropDownList","MultiColumnComboBox"],DropDownList:["ComboBox","MultiColumnComboBox"],MultiColumnComboBox:["ComboBox","DropDownList"]},po="aria-labelledby",$i="aria-label",ro="aria-activedescendant",fo="aria-expanded",cr="aria-hidden",Fr="aria-busy",fs="aria-selected",Ms=".k-table-group-row",Ca=ze.ui.DataBoundWidget.extend({init:function(Qi,vo){var to,pi=this;Hn.fn.init.call(pi,Qi,vo),vo=pi.options,pi._isSelect=(Qi=pi.element).is(Ae),pi._isSelect&&pi.element[0].length&&(vo.dataSource||(vo.dataTextField=vo.dataTextField||"text",vo.dataValueField=vo.dataValueField||"value")),pi._listSize=ze.cssProperties.getValidClass({widget:"List",propName:"size",value:vo.size}),pi.ul=Xe('<ul unselectable="on"/>').attr({tabIndex:-1,"aria-hidden":!0}),pi.list=Xe("<div class='k-list'/>").addClass(pi._listSize).append(pi.ul),(to=Qi.attr("id"))||(to=ze.guid()),pi.list.attr("id",to+"-list"),pi.ul.attr("id",to+"_listbox"),vo.columns&&vo.columns.length&&(pi.list.removeClass("k-list").addClass("k-data-table"),pi.list.removeClass(pi._listSize).addClass("k-table-md"),pi.ul.removeClass(Ve).addClass("k-table"),pi._columnsHeader()),pi._header(),pi._noData(),pi._footer(),pi._accessors(),pi._initValue()},options:{valuePrimitive:!1,footerTemplate:"",headerTemplate:"",noDataTemplate:!0,size:"medium",messages:{noData:"No data found.",clear:"clear"}},setOptions:function(Qi){Hn.fn.setOptions.call(this,Qi),Qi&&Qi.enable!==Ke&&(Qi.enabled=Qi.enable),Qi.columns&&Qi.columns.length&&this._columnsHeader(),this._header(),this._noData(),this._footer(),this._renderFooter(),this._renderNoData()},focus:function(){this._focused.trigger(Jn)},readonly:function(Qi){this._editable({readonly:Qi===Ke||Qi,disable:!1})},enable:function(Qi){this._editable({readonly:!1,disable:!(Qi=Qi===Ke||Qi)})},_header:function(){var Qi=this,vo=Xe(Qi.header),pi=Qi.options.headerTemplate;if(this._angularElement(vo,"cleanup"),ze.destroy(vo),vo.remove(),pi){var to="function"!=typeof pi?ze.template(pi):pi;vo=Xe(to({})),Qi.header=vo[0]?vo:null,Qi.list.parent.length>0&&Qi.list.before(vo),this._angularElement(Qi.header,"compile")}else Qi.header=null},_columnsHeader:function(){var vo=Xe(this.columnsHeader);this._angularElement(vo,"cleanup"),ze.destroy(vo),vo.remove();for(var pi="<div class='k-table-header'><div class='k-table-header-wrap'><table class='k-table' role='presentation'>",to="<colgroup>",Ro="<tr class='k-table-row'>",Sr=0;Sr<this.options.columns.length;Sr++){var rs=this.options.columns[Sr],Ys=rs.headerTemplate||rs.title||rs.field||"",la="function"!=typeof Ys?ze.template(Ys):Ys,Da=rs.width,Ka=parseInt(Da,10),nl="";Da&&!isNaN(Ka)&&(nl+="style='width:",nl+=Ka,nl+=Dt.test(Da)?"%":"px",nl+=";'"),to+="<col "+nl+"/>",Ro+="<th class='k-table-th'>",Ro+=la(rs),Ro+="</th>"}pi+=to+="</colgroup>",pi+="<thead class='k-table-thead'>",pi+=Ro+="</tr>",this.columnsHeader=vo=Xe(pi+="</thead></table></div></div>"),this.list.prepend(vo),this._angularElement(this.columnsHeader,"compile")},_noData:function(){var Qi=this,vo=Xe(Qi.noData),pi=!0===Qi.options.noDataTemplate?Qi.options.messages.noData:Qi.options.noDataTemplate;Qi.angular("cleanup",function(){return{elements:vo}}),ze.destroy(vo),vo.remove(),pi?(Qi.noData=Xe('<div class="k-no-data" style="display: none;"></div>').appendTo(Qi.list),Qi.noDataTemplate="function"!=typeof pi?ze.template(pi):pi):Qi.noData=null},_footer:function(){var Qi=this,vo=Xe(Qi.footer),pi=Qi.options.footerTemplate,to=this.options.columns&&this.options.columns.length?'<div class="k-table-footer"><span class="k-table-td"></span></div>':'<div class="k-list-footer"></div>';this._angularElement(vo,"cleanup"),ze.destroy(vo),vo.remove(),pi?(Qi.footer=Xe(to).appendTo(Qi.list),Qi.footerTemplate="function"!=typeof pi?ze.template(pi):pi):Qi.footer=null},_listOptions:function(Qi){var vo=this,pi=vo.options,to=pi.virtual,Ro={change:vo._listChange.bind(vo)},Sr=vo._listBound.bind(vo),rs=vo._focused,Os=vo.element.attr("id"),Ys=Xe('label[for="'+vo.element.attr("id")+'"]'),la=rs.attr(po);return!la&&Ys.length&&(la=Ys.attr("id")||vo._generateLabelId(Ys,Os||ze.guid())),to="object"==typeof to?to:{},(Qi=Xe.extend({autoBind:!1,selectable:!0,dataSource:vo.dataSource,click:vo._click.bind(vo),activate:vo._activateItem.bind(vo),columns:pi.columns,deactivate:vo._deactivateItem.bind(vo),dataBinding:function(){vo.trigger(xi)},dataBound:Sr,height:pi.height,dataValueField:pi.dataValueField,dataTextField:pi.dataTextField,groupTemplate:pi.groupTemplate,fixedGroupTemplate:pi.fixedGroupTemplate,template:pi.template,ariaLabel:rs.attr($i),ariaLabelledBy:la,listSize:vo._listSize},Qi,to,Ro)).template||(Qi.template="#:"+ze.expr(Qi.dataTextField,"data")+"#"),pi.$angular&&(Qi.$angular=pi.$angular),Qi},_initList:function(){var Qi=this,vo=Qi._listOptions({selectedItemChange:Qi._listChange.bind(Qi)});Qi.options.virtual?(Qi.listView=new ze.ui.VirtualList(Qi.ul,vo),Qi.list.addClass("k-virtual-list")):Qi.listView=new ze.ui.StaticList(Qi.ul,vo),Qi.listView.bind("listBound",Qi._listBound.bind(Qi)),Qi._setListValue()},_setListValue:function(Qi){(Qi=Qi||this.options.value)!==Ke&&this.listView.value(Qi).done(this._updateSelectionState.bind(this))},_updateSelectionState:Xe.noop,_listMousedown:function(Qi){(!this.filterInput||this.filterInput[0]!==Qi.target)&&Qi.preventDefault()},_isFilterEnabled:function(){var Qi=this.options.filter;return Qi&&"none"!==Qi},_hideClear:function(){this._clear&&this._clear.addClass(Oi)},_showClear:function(){this._clear&&this._clear.removeClass(Oi)},_clearValue:function(){this._clearText(),this._accessor(""),this.listView.value([]),this._isSelect&&(this._customOption=Ke),this._isFilterEnabled()&&!this.options.enforceMinLength&&(this._filter({word:"",open:!1}),this.options.highlightFirst&&this.listView.focus(0)),this._change()},_clearText:function(){this.text("")},_clearFilter:function(){this.options.virtual||this.listView.bound(!1),this._filterSource()},_filterSource:function(Qi,vo){var to=this.options,Ro=to.filterFields&&Qi&&Qi.logic&&Qi.filters&&Qi.filters.length,Sr=this.dataSource,rs=mn({},Sr.filter()||{}),Os=Qi||rs.filters&&rs.filters.length&&!Qi,Ys=Ps(rs,to.dataTextField);if(this._clearFilterExpressions(rs),(Qi||Ys)&&this.trigger("filtering",{filter:Qi}))return Xe.Deferred().reject().promise();var la={filters:[],logic:"and"};Ro?la.filters.push(Qi):this._pushFilterExpression(la,Qi),cs(rs)&&(la.logic===rs.logic?la.filters=la.filters.concat(rs.filters):la.filters.push(rs)),this._cascading&&this.listView.setDSFilter(la);var Da=mn({},{page:Os?1:Sr.page(),pageSize:Os?Sr.options.pageSize:Sr.pageSize(),sort:Sr.sort(),filter:Sr.filter(),group:Sr.group(),aggregate:Sr.aggregate()},{filter:la});return Sr[vo?"read":"query"](Sr._mergeState(Da))},_pushFilterExpression:function(Qi,vo){cs(vo)&&""!==vo.value&&Qi.filters.push(vo)},_clearFilterExpressions:function(Qi){if(Qi.filters){for(var vo,pi=0;pi<Qi.filters.length;pi++)"fromFilter"in Qi.filters[pi]&&(vo=pi);isNaN(vo)||Qi.filters.splice(vo,1)}},_angularElement:function(Qi,vo){Qi&&this.angular(vo,function(){return{elements:Qi}})},_renderNoData:function(){var vo=this.noData;vo&&(this._angularElement(vo,"cleanup"),vo.html(this.noDataTemplate({instance:this})),this._angularElement(vo,"compile"))},_toggleNoData:function(Qi){Xe(this.noData).toggle(Qi)},_toggleHeader:function(Qi){this.listView.content.prev(Be).toggle(Qi)},_renderFooter:function(){var Qi=this,vo=Qi.footer?this.options.columns&&this.options.columns.length?Qi.footer.children().first():Qi.footer:null;vo&&(this._angularElement(vo,"cleanup"),vo.html(Qi.footerTemplate({instance:Qi})),this._angularElement(vo,"compile"))},_allowOpening:function(){return this.options.noDataTemplate||this.dataSource.flatView().length},_initValue:function(){var Qi=this,vo=Qi.options.value;null!==vo?Qi.element.val(vo):(vo=Qi._accessor(),Qi.options.value=vo),Qi._old=vo},_ignoreCase:function(){var pi,vo=this.dataSource.reader.model;vo&&vo.fields&&(pi=vo.fields[this.options.dataTextField])&&pi.type&&"string"!==pi.type&&(this.options.ignoreCase=!1)},_focus:function(Qi){return this.listView.focus(Qi)},_filter:function(Qi){var rs,vo=this,pi=vo.options,to=Qi.word,Ro=pi.filterFields,Sr=pi.dataTextField;if(Ro&&Ro.length){rs={logic:"or",filters:[],fromFilter:!0};for(var Os=0;Os<Ro.length;Os++)this._pushFilterExpression(rs,vo._buildExpression(to,Ro[Os]))}else rs=vo._buildExpression(to,Sr);vo._open=Qi.open,vo._filterSource(rs)},_buildExpression:function(Qi,vo){var to=this.options,Ro=to.ignoreCase,Sr=this.dataSource.options.accentFoldingFiltering;return{value:Ro?Sr?Qi.toLocaleLowerCase(Sr):Qi.toLowerCase():Qi,field:vo,operator:to.filter,ignoreCase:Ro}},_clearButton:function(){var Qi=this;Qi._clear||(Qi._clear=Xe('<span unselectable="on" class="k-clear-value" title="'+Qi.options.messages.clear+'"><span class="k-icon k-i-x"></span></span>').attr({role:"button",tabIndex:-1})),Qi.options.clearButton||Qi._clear.remove(),this._hideClear()},search:function(Qi){var vo=this.options;Qi="string"==typeof Qi?Qi:this._inputValue(),clearTimeout(this._typingTimeout),(!vo.enforceMinLength&&!Qi.length||Qi.length>=vo.minLength)&&(this._state="filter",this.listView&&(this.listView._emptySearch=!ze.trim(Qi).length),this._isFilterEnabled()?this._filter({word:Qi,open:!0}):this._searchByWord(Qi))},current:function(Qi){return this._focus(Qi)},items:function(){return this.ul[0].children},destroy:function(){var Qi=this,vo=Qi.ns;Hn.fn.destroy.call(Qi),Qi._unbindDataSource(),Qi.listView.destroy(),Qi.list.off(vo),Qi.popup.destroy(),Qi._form&&Qi._form.off("reset",Qi._resetHandler)},dataItem:function(Qi){var vo=this;if(Qi===Ke)return vo.listView.selectedDataItems()[0];if("number"!=typeof Qi){if(vo.options.virtual)return vo.dataSource.getByUid(Xe(Qi).data("uid"));Qi=Xe(vo.items()).index(Qi)}return vo.dataSource.flatView()[Qi]},_activateItem:function(){var Qi=this.listView.focus();Qi&&this.popup.visible()&&this._focused.add(this.filterInput).attr(ro,Qi.attr("id"))},_deactivateItem:function(){this._focused.add(this.filterInput).removeAttr(ro)},_accessors:function(){var vo=this.element,pi=this.options,to=ze.getter,Ro=vo.attr(ze.attr("text-field")),Sr=vo.attr(ze.attr("value-field"));!pi.dataTextField&&Ro&&(pi.dataTextField=Ro),!pi.dataValueField&&Sr&&(pi.dataValueField=Sr),this._text=to(pi.dataTextField),this._value=to(pi.dataValueField)},_aria:function(Qi){var vo=this,pi=vo.options,to=vo._focused;pi.suggest!==Ke&&to.attr("aria-autocomplete","none"===pi.filter?!0===pi.suggest?"inline":"none":!0===pi.suggest?"both":"list"),to.attr({"aria-controls":Qi=Qi?Qi+" "+vo.ul[0].id:vo.ul[0].id}),vo.filterInput&&vo.filterInput.length>0&&vo.filterInput.attr("aria-controls",Qi),vo.ul.attr("aria-live",vo._isFilterEnabled()?"polite":"off"),vo._ariaLabel(vo._focused)},_blur:function(){this._change(),this.close(),this._userTriggered=!1},_isValueChanged:function(Qi){return Qi!==ks(this._old,typeof Qi)},_change:function(){var Ro,Qi=this,vo=Qi.selectedIndex,pi=Qi.options.value,to=Qi.value();Qi._isSelect&&!Qi.listView.bound()&&pi&&(to=pi),(Qi._isValueChanged(to)||Qi._valueBeforeCascade!==Ke&&Qi._valueBeforeCascade!==ks(Qi._old,typeof Qi._valueBeforeCascade)&&Qi._userTriggered||vo!==Ke&&vo!==Qi._oldIndex&&!Qi.listView.isFiltered())&&(Ro=!0),Ro&&(Qi._valueBeforeCascade=Qi._old=null===Qi._old||""===Qi._old||""===to?to:Qi.dataItem()?Qi.options.dataValueField?Qi.dataItem()[Qi.options.dataValueField]:Qi.dataItem():null,Qi._oldIndex=vo,Qi._typing||Qi.element.trigger(Ot),Qi.trigger(Ot)),Qi.typing=!1},_data:function(){return this.dataSource.view()},_enable:function(){var Qi=this,vo=Qi.options,pi=Qi.element.is("[disabled]");vo.enable!==Ke&&(vo.enabled=vo.enable),!vo.enabled||pi?Qi.enable(!1):Qi.readonly(Qi.element.is("[readonly]"))},_dataValue:function(Qi){var vo=this._value(Qi);return vo===Ke&&(vo=this._text(Qi)),vo},_offsetHeight:function(){var Qi=0;return this.listView.content.parent().prevAll(":visible").each(function(){var pi=Xe(this);Qi+=it(pi,!0)}),Qi},_height:function(Qi){var Os,vo=this,pi=vo.list,to=vo.options.height,Ro=vo.popup.visible(),Sr=this.options.columns&&this.options.columns.length;if(Qi||vo.options.noDataTemplate){if(Os=pi.parent().add(pi.closest(".k-animation-container")).show(),!pi.parent().is(":visible"))return void Os.hide();Os.height(to=vo.listView.content[0].scrollHeight>to?to:"auto"),"auto"!==to&&(to-=vo._offsetHeight(),Sr&&(to=to-(it(Xe(vo.footer))||0)-(it(Xe(vo.columnsHeader))||0))),Sr?vo.listView.content.outerHeight(to):vo.listView.content.parent().outerHeight(to),Ro||pi.parent().hide()}return to},_openHandler:function(Qi){var vo;this._adjustListWidth(),this.trigger("open")?Qi.preventDefault():(this._focused.attr(fo,!0),this.ul.attr(cr,!1),(vo=this.listView.focus())&&this._focused.add(this.filterInput).attr(ro,vo.attr("id")))},_adjustListWidth:function(){var Ro,Sr,vo=this.list.parent(),pi=vo[0].style.width,to=this.wrapper;if(vo.data("width")||!pi)return Ro=window.getComputedStyle?window.getComputedStyle(to[0],null):0,Sr=parseFloat(Ro&&Ro.width)||Dn(to),Ro&&ci.msie&&(Sr+=parseFloat(Ro.paddingLeft)+parseFloat(Ro.paddingRight)+parseFloat(Ro.borderLeftWidth)+parseFloat(Ro.borderRightWidth)),pi="border-box"!==vo.css("box-sizing")?Sr-(Dn(vo)-vo.width()):Sr,vo.css({fontFamily:to.css("font-family"),width:this.options.autoWidth?"auto":pi,minWidth:pi,whiteSpace:this.options.autoWidth?"nowrap":"normal"}).data("width",pi),!0},_closeHandler:function(Qi){this.trigger("close")?Qi.preventDefault():(this._focused.attr(fo,!1),this.ul.attr(cr,!0),this._focused.add(this.filterInput).removeAttr(ro))},_focusItem:function(){var Qi=this.listView,vo=!Qi.focus(),pi=Xs(Qi.select());pi===Ke&&this.options.highlightFirst&&vo&&(pi=0),pi!==Ke?Qi.focus(pi):vo&&Qi.scrollToIndex(0)},_calculateGroupPadding:function(Qi){var vo=this.ul.children(".k-first").first(),pi=this.listView.content.prev(Be),to=0,Ro="right";pi[0]&&"none"!==pi[0].style.display&&("auto"!==Qi&&(to=ze.support.scrollbar()),this.element.parents(".k-rtl").length&&(Ro="left"),to+=parseFloat(vo.css("border-"+Ro+"-width"),10)+parseFloat(vo.children(".k-list-item-group-label").css("padding-"+Ro),10),pi.css("padding-"+Ro,to))},_calculatePopupHeight:function(Qi){var vo=this._height(this.dataSource.flatView().length||Qi);this._calculateGroupPadding(vo),this._calculateColumnsHeaderPadding(vo)},_calculateColumnsHeaderPadding:function(Qi){if(this.options.columns&&this.options.columns.length){var pi=Co.isRtl(this.wrapper),to=ze.support.scrollbar();this.columnsHeader.css(pi?"padding-left":"padding-right","auto"!==Qi?to:0)}},_refreshScroll:function(){var Qi=this.listView,vo=Qi.element.height()>Qi.content.height();this.options.autoWidth&&Qi.content.css({overflowX:"hidden",overflowY:vo?"scroll":"auto"})},_resizePopup:function(Qi){this.options.virtual||(this.popup.element.is(":visible")?this._calculatePopupHeight(Qi):(this.popup.one("open",function(vo){return function(){this._calculatePopupHeight(vo)}.bind(this)}.call(this,Qi)),this.popup.one(Fi,this._refreshScroll.bind(this))))},_popup:function(){var Qi=this;Qi.list.wrap("<div>"),Qi.popup=new St.Popup(Qi.list.parent(),mn({},Qi.options.popup,{anchor:Qi.wrapper,open:Qi._openHandler.bind(Qi),close:Qi._closeHandler.bind(Qi),animation:Qi.options.animation,isRtl:Co.isRtl(Qi.wrapper),autosize:Qi.options.autoWidth})),Qi.popup.element.prepend(Qi.header).on("mousedown"+this.ns,this._listMousedown.bind(this))},_toggleHover:function(Qi){Xe(Qi.currentTarget).toggleClass(cn,Qi.type===On)},_toggle:function(Qi,vo){var pi=this,to=Co.mobileOS&&(Co.touch||Co.MSPointers||Co.pointers);Qi=Qi!==Ke?Qi:!pi.popup.visible(),!vo&&!to&&pi._focused[0]!==Vn()&&(pi._prevent=!0,pi._focused.trigger(Jn),pi._prevent=!1),pi[Qi?"open":"close"]()},_triggerCascade:function(){var Qi=this;(!Qi._cascadeTriggered||Qi.value()!==ks(Qi._cascadedValue,typeof Qi.value()))&&(Qi._cascadedValue=Qi.value(),Qi._cascadeTriggered=!0,Qi.trigger(Nn,{userTriggered:Qi._userTriggered}))},_triggerChange:function(){this._valueBeforeCascade!==this.value()&&this.trigger(Ot)},_unbindDataSource:function(){this.dataSource.unbind(bn,this._requestStartHandler).unbind(ii,this._requestEndHandler).unbind("error",this._errorHandler)},requireValueMapper:function(Qi,vo){if(((Qi.value instanceof Array?Qi.value.length:Qi.value)||(vo instanceof Array?vo.length:vo))&&Qi.virtual&&"function"!=typeof Qi.virtual.valueMapper)throw new Error("ValueMapper is not provided while the value is being set. See http://docs.telerik.com/kendo-ui/controls/editors/combobox/virtualization#the-valuemapper-function")}});function ks(Qi,vo){return Qi!==Ke&&""!==Qi&&null!==Qi&&("boolean"===vo?("boolean"!=typeof Qi&&(Qi="true"===Qi.toString().toLowerCase()),Qi=!!Qi):"number"===vo?Qi=Number(Qi):"string"===vo&&(Qi=Qi.toString())),Qi}mn(Ca,{inArray:function(Qi,vo){var pi,to,Ro=vo.children;if(!Qi||Qi.parentNode!==vo)return-1;for(pi=0,to=Ro.length;pi<to;pi++)if(Qi===Ro[pi])return pi;return-1},unifyType:ks}),St.Select=(ze.ui.List=Ca).extend({init:function(Qi,vo){Ca.fn.init.call(this,Qi,vo),this._initial=this.element.val()},setDataSource:function(Qi){var pi,vo=this;vo.options.dataSource=Qi,vo._dataSource(),vo.listView.bound()&&(vo._initialIndex=null,vo.listView._current=null),vo.listView.setDataSource(vo.dataSource),vo.options.autoBind&&vo.dataSource.fetch(),(pi=vo._parentWidget())&&vo._cascadeSelect(pi)},close:function(){this.popup.close()},select:function(Qi){var vo=this;return Qi===Ke?vo.selectedIndex:vo._select(Qi).done(function(){vo._cascadeValue=vo._old=vo._accessor(),vo._oldIndex=vo.selectedIndex})},_accessor:function(Qi,vo){return this[this._isSelect?"_accessorSelect":"_accessorInput"](Qi,vo)},_accessorInput:function(Qi){var vo=this.element[0];if(Qi===Ke)return vo.value;null===Qi&&(Qi=""),vo.value=Qi},_accessorSelect:function(Qi,vo){var pi=this.element[0];if(Qi===Ke)return _a(pi).value||"";_a(pi).selected=!1,vo===Ke&&(vo=-1),null!==Qi&&""!==Qi&&-1==vo?this._custom(Qi):Qi?pi.value=Qi:pi.selectedIndex=vo},_syncValueAndText:function(){return!0},_custom:function(Qi){var pi=this.element,to=this._customOption;to||(to=Xe("<option/>"),this._customOption=to,pi.append(to)),to.text(Qi),to[0].selected=!0},_hideBusy:function(){var Qi=this;clearTimeout(Qi._busy),Qi._arrowIcon.removeClass(ft),Qi._focused.attr(Fr,!1),Qi._busy=null,Qi._showClear()},_showBusy:function(Qi){var vo=this;Qi.isDefaultPrevented()||(vo._request=!0,!vo._busy&&(vo._busy=setTimeout(function(){vo._arrowIcon&&(vo._focused.attr(Fr,!0),vo._arrowIcon.addClass(ft),vo._hideClear())},100)))},_requestEnd:function(){this._request=!1,this._hideBusy()},_dataSource:function(){var Ro,Qi=this,vo=Qi.element,pi=Qi.options,to=pi.dataSource||{};to=Array.isArray(to)?{data:to}:to,Qi._isSelect&&((Ro=vo[0].selectedIndex)>-1&&(pi.index=Ro),to.select=vo,to.fields=[{field:pi.dataTextField},{field:pi.dataValueField}]),Qi.dataSource?Qi._unbindDataSource():(Qi._requestStartHandler=Qi._showBusy.bind(Qi),Qi._requestEndHandler=Qi._requestEnd.bind(Qi),Qi._errorHandler=Qi._hideBusy.bind(Qi)),Qi.dataSource=ze.data.DataSource.create(to).bind(bn,Qi._requestStartHandler).bind(ii,Qi._requestEndHandler).bind("error",Qi._errorHandler)},_firstItem:function(){this.listView.focusFirst()},_lastItem:function(){this.listView.focusLast()},_nextItem:function(){return this.listView.focusNext()},_prevItem:function(){return this.listView.focusPrev()},_getNormalizedDataItem:function(Qi){var Sr,pi=this.listView;return Sr="number"==typeof Qi?this.optionLabel&&this.optionLabel.length?--Qi:Qi:pi.getElementIndex(Qi),pi.dataItemByIndex(Sr)},_getNormalizedSelectCandidate:function(Qi){var Ro=Qi;return this.optionLabel&&this.optionLabel.length&&"number"==typeof Qi&&Ro++,Ro},_move:function(Qi){var rs,Os,Ys,la,Da,vo=this,pi=vo.listView,to=Qi.keyCode,Ro=to===Ui.DOWN,Sr=vo.options.virtual;if(to===Ui.UP||Ro){if(Qi.altKey)vo.toggle(Ro);else{if(!pi.bound()&&!vo.ul[0].firstChild)return vo._fetch||(vo.dataSource.one(Ot,function(){vo._fetch=!1,vo._move(Qi)}),vo._fetch=!0,vo._filterSource()),Qi.preventDefault(),!0;Ys=vo._focus(),!vo._fetch&&(!Ys||Ys.hasClass(Ht))&&(Ro?(la=vo._nextItem(),(Sr&&la<=0||!vo._focus()&&!la)&&vo._lastItem()):(la=vo._prevItem(),(Sr&&la>=pi.dataSource.total()-1||!vo._focus()&&!la)&&vo._firstItem())),Da=vo._getNormalizedSelectCandidate(vo._get(vo._focus())||la||0),vo._select(Da,!0).done(function(){var eo=function(){vo.popup.visible()||vo._blur(),vo._cascadedValue=null===vo._cascadedValue?vo.value():vo.dataItem()?vo.dataItem()[vo.options.dataValueField]||vo.dataItem():null};vo.trigger(Ae,{dataItem:vo._getNormalizedDataItem(Da),item:vo._focus()})?vo._select(Ys).done(eo):eo()})}Qi.preventDefault(),Os=!0}else if(to===Ui.ENTER||to===Ui.TAB){vo.popup.visible()&&Qi.preventDefault(),Ys=vo._focus(),rs=vo.dataItem(),!vo.popup.visible()&&(!rs||vo.text()!==vo._text(rs))&&(Ys=null);var nl,Ka=vo.filterInput&&vo.filterInput[0]===Vn();if(Ys){var il=!0;if((rs=pi.dataItemByIndex(pi.getElementIndex(Ys)))&&(il=vo._value(rs)!==Ca.unifyType(vo.value(),typeof vo._value(rs))),il&&vo.trigger(Ae,{dataItem:rs,item:Ys}))return;nl=vo._select(Ys)}else vo.input&&((vo._syncValueAndText()||vo._isSelect)&&vo._accessor(vo.input.val()),vo.listView.value(vo.input.val()));vo._focusElement&&vo._focusElement(vo.wrapper),Ka&&to===Ui.TAB?vo.wrapper.focusout():nl&&"function"==typeof nl.done?nl.done(function(){vo._blur()}):vo._blur(),vo.close(),Os=!0}else to===Ui.ESC?(vo.popup.visible()&&Qi.preventDefault(),vo.close(),Os=!0):!vo.popup.visible()||to!==Ui.PAGEDOWN&&to!==Ui.PAGEUP||(Qi.preventDefault(),pi.scrollWith((to===Ui.PAGEDOWN?1:-1)*pi.screenHeight()),Os=!0);return Os},_fetchData:function(){var Qi=this,vo=!!Qi.dataSource.view().length;Qi._request||Qi.options.cascadeFrom||!Qi.listView.bound()&&!Qi._fetch&&!vo&&(Qi._fetch=!0,Qi.dataSource.fetch().done(function(){Qi._fetch=!1}))},_options:function(Qi,vo,pi){var Ys,la,Da,Ka,Ro=this.element,Sr=Ro[0],rs=Qi.length,Os="",nl=0;for(vo&&(Os=vo);nl<rs;nl++)Ys="<option",Da=this._text(la=Qi[nl]),(Ka=this._value(la))!==Ke&&(-1!==(Ka+="").indexOf('"')&&(Ka=Ka.replace(Ue,"&quot;")),Ys+=' value="'+Ka+'"'),Ys+=">",Da!==Ke&&(Ys+=Sn(Da)),Os+=Ys+="</option>";Ro.html(Os),pi!==Ke&&(Sr.value=pi,Sr.value&&!pi&&(Sr.selectedIndex=-1)),-1!==Sr.selectedIndex&&(Ys=_a(Sr))&&Ys.setAttribute(qt,qt)},_reset:function(){var Qi=this,vo=Qi.element,pi=vo.attr("form"),to=pi?Xe("#"+pi):vo.closest("form");to[0]&&(Qi._resetHandler=function(){setTimeout(function(){Qi.value(Qi._initial)})},Qi._form=to.on("reset",Qi._resetHandler))},_parentWidget:function(){var Qi=this.options.name;if(this.options.cascadeFrom){var vo=Xe("#"+this.options.cascadeFrom),pi=vo.data("kendo"+Qi);if(!pi)for(var to=0;to<Ye[Qi].length&&!(pi=vo.data("kendo"+Ye[Qi][to]));to+=1);return pi}},_cascade:function(){var to,Qi=this,vo=Qi.options;if(vo.cascadeFrom){if(!(to=Qi._parentWidget()))return;Qi._cascadeHandlerProxy=Qi._cascadeHandler.bind(Qi),Qi._cascadeFilterRequests=[],vo.autoBind=!1,to.bind("set",function(){Qi.one("set",function(Ro){Qi._selectedValue=Ro.value||Qi._accessor()})}),to.first(Nn,Qi._cascadeHandlerProxy),to.listView.bound()?(Qi._toggleCascadeOnFocus(),Qi._cascadeSelect(to)):(to.one(Wn,function(){Qi._toggleCascadeOnFocus(),to.popup.visible()&&to._focused.trigger(Jn)}),to.value()||Qi.enable(!1))}},_toggleCascadeOnFocus:function(){var Qi=this,vo=Qi._parentWidget(),pi=Ni&&vo instanceof St.DropDownList?"blur":"focusout";vo._focused.add(vo.filterInput).on(Jn,function(){vo.unbind(Nn,Qi._cascadeHandlerProxy),vo.unbind(Ot,Qi._cascadeHandlerProxy),vo.first(Ot,Qi._cascadeHandlerProxy)}),vo._focused.add(vo.filterInput).on(pi,function(){vo.unbind(Ot,Qi._cascadeHandlerProxy),vo.unbind(Nn,Qi._cascadeHandlerProxy),vo.first(Nn,Qi._cascadeHandlerProxy)})},_cascadeHandler:function(Qi){var vo=this._parentWidget(),pi=this.value();this._userTriggered=Qi.userTriggered||vo._userTriggered,this.listView.bound()&&this._clearSelection(vo,!0),this._cascadeSelect(vo,pi)},_cascadeChange:function(Qi){var vo=this,pi=vo._accessor()||vo._selectedValue;vo._cascadeFilterRequests.length||(vo._selectedValue=null),vo._userTriggered?vo._clearSelection(Qi,!0):pi?(pi!==ks(vo.listView.value()[0],typeof pi)&&vo.value(pi),(!vo.dataSource.view()[0]||-1===vo.selectedIndex)&&vo._clearSelection(Qi,!0)):vo.dataSource.flatView().length&&vo.select(vo.options.index),vo.enable(),vo._triggerCascade(),vo._triggerChange(),vo._userTriggered=!1},_cascadeSelect:function(Qi,vo){var pi=this,to=Qi.dataItem(),Ro=to?to[pi.options.cascadeFromParentField]||Qi._value(to):null,Sr=pi.options.cascadeFromField||Qi.options.dataValueField;if(pi._valueBeforeCascade=vo!==Ke?vo:pi.value(),Ro||0===Ro){Ps(pi.dataSource.filter()||{},Sr);var Os=function(){var Ys=pi._cascadeFilterRequests.shift();Ys&&pi.unbind("dataBound",Ys),(Ys=pi._cascadeFilterRequests[0])&&pi.first("dataBound",Ys),pi._cascadeChange(Qi)};pi._cascadeFilterRequests.push(Os),1===pi._cascadeFilterRequests.length&&pi.first("dataBound",Os),pi._cascading=!0,pi._filterSource({field:Sr,operator:"eq",value:Ro}),pi._cascading=!1}else pi.enable(!1),pi._clearSelection(Qi),pi._triggerCascade(),pi._triggerChange(),pi._userTriggered=!1}});var ts=".StaticList",na=ze.ui.DataBoundWidget.extend({init:function(Qi,vo){if(Hn.fn.init.call(this,Qi,vo),this.element.attr("role","listbox").on(He+ts,"li",this._click.bind(this)).on(On+ts,"li",function(){Xe(this).addClass(cn)}).on("mouseleave"+ts,"li",function(){Xe(this).removeClass(cn)}),vo&&vo.ariaLabel?this.element.attr($i,vo.ariaLabel):vo&&vo.ariaLabelledBy&&this.element.attr(po,vo.ariaLabelledBy),Co.touch&&this._touchHandlers(),"multiple"===this.options.selectable&&this.element.attr("aria-multiselectable",!0),this.options.columns&&this.options.columns.length){var pi=this.element.parent().find(".k-table-thead"),to=Xe('<tr class="k-table-group-row"><th class="k-table-th" colspan="'+this.options.columns.length+'"></th></tr>');pi.append(to),this.header=to.find(".k-table-th"),this.content=this.element.wrap("<div class='k-table-body k-table-scroller' unselectable='on'></div>").parent(),this.element.addClass("k-table-list")}else this.content=this.element.wrap("<div class='k-list-content k-list-scroller' unselectable='on'></div>").parent(),this.header=this.content.before('<div class="k-list-group-sticky-header" style="display:none"></div>').prev(),this.element.addClass(Ve);this.bound(!1),this._optionID=ze.guid(),this._selectedIndices=[],this._view=[],this._dataItems=[],this._values=[];var Ro=this.options.value;Ro&&(this._values=Array.isArray(Ro)?Ro.slice(0):[Ro]),this._getter(),this._templates(),this.setDataSource(this.options.dataSource),this._createOnScrollProxy()},options:{name:"StaticList",dataValueField:null,valuePrimitive:!1,selectable:!0,template:null,groupTemplate:null,fixedGroupTemplate:null,ariaLabel:null,ariaLabelledBy:null},events:[He,Ot,Fi,Ci,xi,Wn,Vt],setDataSource:function(Qi){var to,vo=this,pi=Qi||{};pi=Array.isArray(pi)?{data:pi}:pi,pi=ze.data.DataSource.create(pi),vo.dataSource?(vo.dataSource.unbind(Ot,vo._refreshHandler),to=vo.value(),vo.value([]),vo.bound(!1),vo.value(to)):vo._refreshHandler=vo.refresh.bind(vo),vo.setDSFilter(pi.filter()),vo.dataSource=pi.bind(Ot,vo._refreshHandler),vo._fixedHeader()},_touchHandlers:function(){var pi,to,Qi=this,vo=this.options.columns&&this.options.columns.length?".k-table-row":Rt,Ro=function(Sr){return(Sr.originalEvent||Sr).changedTouches[0].pageY};Qi.element.on("touchstart"+ts,function(Sr){pi=Ro(Sr)}),Qi.element.on("touchend"+ts,function(Sr){Sr.isDefaultPrevented()||(to=Ro(Sr),Math.abs(to-pi)<10&&(Qi._touchTriggered=!0,Qi._triggerClick(Xe(Sr.target).closest(vo).get(0))))})},skip:function(){return this.dataSource.skip()},setOptions:function(Qi){Hn.fn.setOptions.call(this,Qi),this._getter(),this._templates(),this._render()},destroy:function(){this.element.off(ts),this._refreshHandler&&this.dataSource.unbind(Ot,this._refreshHandler),clearTimeout(this._scrollId),Hn.fn.destroy.call(this)},dataItemByIndex:function(Qi){return this.dataSource.flatView()[Qi]},screenHeight:function(){return this.content[0].clientHeight},scrollToIndex:function(Qi){var vo=this.element[0].children[Qi];vo&&this.scroll(vo)},scrollWith:function(Qi){this.content.scrollTop(this.content.scrollTop()+Qi)},scroll:function(Qi){if(Qi){Qi[0]&&(Qi=Qi[0]);var vo=this.content[0],pi=Qi.offsetTop,Ro=vo.scrollTop,Sr=vo.clientHeight,rs=pi+Qi.offsetHeight;Ro>pi?Ro=pi:rs>Ro+Sr&&(Ro=rs-Sr),vo.scrollTop=Ro}},selectedDataItems:function(Qi){if(Qi===Ke)return this._dataItems.slice();this._dataItems=Qi,this._values=this._getValues(Qi)},_getValues:function(Qi){var vo=this._valueGetter;return Xe.map(Qi,function(pi){return vo(pi)})},focusNext:function(){var Qi=this.focus();Qi=Qi?Qi.next():0,this.focus(Qi)},focusPrev:function(){var Qi=this.focus();Qi=Qi?Qi.prev():this.element[0].children.length-1,this.focus(Qi)},focusFirst:function(){this.focus(this.element[0].children[0])},focusLast:function(){this.focus(Xs(this.element[0].children))},focus:function(Qi){var to,vo=this,pi=vo._optionID;if(Qi===Ke)return vo._current;Qi=Xs(vo._get(Qi)),Qi=Xe(this.element[0].children[Qi]),vo._current&&(vo._current.removeClass(en).removeAttr("id"),vo.trigger(Ci)),(to=!!Qi[0])&&(Qi.addClass(en),vo.scroll(Qi),Qi.attr("id",pi)),vo._current=to?Qi:null,vo.trigger(Fi)},focusIndex:function(){return this.focus()?this.focus().index():Ke},skipUpdate:function(Qi){this._skipUpdate=Qi},select:function(Qi){var Ys,vo=this,pi=vo.options.selectable,to="multiple"!==pi&&!1!==pi,Ro=vo._selectedIndices,Sr=[this.element.find(".k-selected").index()],rs=[],Os=[];if(Qi===Ke)return Ro.slice();1===(Qi=vo._get(Qi)).length&&-1===Qi[0]&&(Qi=[]);var la=Xe.Deferred().resolve(),Da=vo.isFiltered();return Da&&!to&&vo._deselectFiltered(Qi)?la:to&&!Da&&-1!==Xe.inArray(Xs(Qi),Ro)&&-1!==Xe.inArray(Xs(Qi),Sr)?(vo._dataItems.length&&vo._view.length&&(vo._dataItems=[vo._view[Ro[0]].item]),la):(Os=(Ys=vo._deselect(Qi)).removed,(Qi=Ys.indices).length&&(to&&(Qi=[Xs(Qi)]),rs=vo._select(Qi)),(rs.length||Os.length)&&(vo._valueComparer=null,vo.trigger(Ot,{added:rs,removed:Os})),la)},removeAt:function(Qi){return this._selectedIndices.splice(Qi,1),this._values.splice(Qi,1),this._valueComparer=null,{position:Qi,dataItem:this._dataItems.splice(Qi,1)[0]}},setValue:function(Qi){Qi=Array.isArray(Qi)||Qi instanceof kn?Qi.slice(0):[Qi],this._values=Qi,this._valueComparer=null},value:function(Qi){var to,vo=this,pi=vo._valueDeferred;return Qi===Ke?vo._values.slice():(vo.setValue(Qi),(!pi||"resolved"===pi.state())&&(vo._valueDeferred=pi=Xe.Deferred()),vo.bound()&&(to=vo._valueIndices(vo._values),"multiple"===vo.options.selectable&&vo.select(-1),vo.select(to),pi.resolve()),vo._skipUpdate=!1,pi)},items:function(){return this.element.children(Rt)},_click:function(Qi){this._touchTriggered?this._touchTriggered=!1:Qi.isDefaultPrevented()||this._triggerClick(Qi.currentTarget)},_createOnScrollProxy:function(){this._onScroll=function(){var vo=this;clearTimeout(vo._scrollId),vo._scrollId=setTimeout(function(){vo._renderHeader()},50)}.bind(this)},_triggerClick:function(Qi){this.trigger(He,{item:Xe(Qi)})||this.select(Qi)},_valueExpr:function(Qi,vo){var Sr,pi=this,to=0,rs=[];if(!pi._valueComparer||pi._valueType!==Qi){for(pi._valueType=Qi;to<vo.length;to++)rs.push(ks(vo[to],Qi));Sr=new Function("current","values","for (var idx = 0; idx < "+rs.length+"; idx++) { if (current === values[idx]) {   return idx; }} return -1;"),pi._valueComparer=function(Os){return Sr(Os,rs)}}return pi._valueComparer},_dataItemPosition:function(Qi,vo){var pi=this._valueGetter(Qi);return this._valueExpr(typeof pi,vo)(pi)},_getter:function(){this._valueGetter=ze.getter(this.options.dataValueField)},_deselect:function(Qi){var la,Da,Ka,vo=this,pi=vo.element[0].children,to=vo.options.selectable,Ro=vo._selectedIndices,Sr=vo._dataItems,rs=vo._values,Os=[],Ys=0;if(Qi=Qi.slice(),!0!==to&&Qi.length){if("multiple"===to)for(;Ys<Qi.length;Ys++)if(Xe(pi[Da=Qi[Ys]]).hasClass(Ht))for(la=0;la<Ro.length;la++)if((Ka=Ro[la])===Da){Xe(pi[Ka]).removeClass(Ht).attr(fs,!1);var il=this._view[Da].item,xl=this._dataItemPosition(il,this._values);Os.push({position:xl,dataItem:il}),Sr.splice(la,1),Ro.splice(la,1),Qi.splice(Ys,1),rs.splice(la,1),Ys-=1,la-=1;break}}else{for(;Ys<Ro.length;Ys++)Xe(pi[Ro[Ys]]).removeClass(Ht).attr(fs,!1),Os.push({position:Ys,dataItem:Sr[Ys]});vo._values=[],vo._dataItems=[],vo._selectedIndices=[]}return{indices:Qi,removed:Os}},_deselectFiltered:function(Qi){for(var to,Ro,vo=this.element[0].children,Sr=[],rs=0;rs<Qi.length;rs++)(Ro=this._dataItemPosition(this._view[to=Qi[rs]].item,this._values))>-1&&(Sr.push(this.removeAt(Ro)),Xe(vo[to]).removeClass(Ht));return!!Sr.length&&(this.trigger(Ot,{added:[],removed:Sr}),!0)},_select:function(Qi){var Ro,Sr,vo=this,pi=vo.element[0].children,to=vo._view,rs=[],Os=0;for(-1!==Xs(Qi)&&vo.focus(Qi);Os<Qi.length;Os++)Ro=to[Sr=Qi[Os]],-1!==Sr&&Ro&&(Ro=Ro.item,vo._selectedIndices.push(Sr),vo._dataItems.push(Ro),vo._values.push(vo._valueGetter(Ro)),Xe(pi[Sr]).addClass(Ht).attr(fs,!0),rs.push({dataItem:Ro}));return rs},getElementIndex:function(Qi){return Xe(Qi).data("offset-index")},_get:function(Qi){return"number"==typeof Qi?Qi=[Qi]:Qn(Qi)||(Qi=[(Qi=this.getElementIndex(Qi))!==Ke?Qi:-1]),Qi},_template:function(){var vo=this.options,pi=vo.template;return pi?(pi=ze.template(pi),pi=function(to){return'<li tabindex="-1" role="option" unselectable="on" class="k-list-item">'+pi(to)+"</li>"}):pi=ze.template('<li tabindex="-1" role="option" unselectable="on" class="k-list-item"><span class="k-list-item-text">${'+ze.expr(vo.dataTextField,"data")+"}</span></li>",{useWithBlock:!1}),pi},_templates:function(){var Qi,vo=this.options,pi={template:vo.template,groupTemplate:vo.groupTemplate,fixedGroupTemplate:vo.fixedGroupTemplate};if(vo.columns)for(var to=0;to<vo.columns.length;to++){var Ro=vo.columns[to],Sr=Ro.field?Ro.field.toString():"text";pi["column"+to]=Ro.template||"#: "+Sr+"#"}for(var rs in pi)(Qi=pi[rs])&&"function"!=typeof Qi&&(pi[rs]=ze.template(Qi));this.templates=pi},_normalizeIndices:function(Qi){for(var vo=[],pi=0;pi<Qi.length;pi++)Qi[pi]!==Ke&&vo.push(Qi[pi]);return vo},_valueIndices:function(Qi,vo){var Ro,pi=this._view,to=0;if(vo=vo?vo.slice():[],!Qi.length)return[];for(;to<pi.length;to++)-1!==(Ro=this._dataItemPosition(pi[to].item,Qi))&&(vo[Ro]=to);return this._normalizeIndices(vo)},_firstVisibleItem:function(){for(var Qi=this.element[0],pi=this.content[0].scrollTop,to=Xe(Qi.children[0]).height(),Ro=Math.floor(pi/to)||0,Sr=Qi.children[Ro]||Qi.lastChild,rs=Sr.offsetTop<pi;Sr;)if(rs){if(Sr.offsetTop+to>pi||!Sr.nextSibling)break;Sr=Sr.nextSibling}else{if(Sr.offsetTop<=pi||!Sr.previousSibling)break;Sr=Sr.previousSibling}return this._view[Xe(Sr).data("offset-index")]},_fixedHeader:function(){this.isGrouped()&&this.templates.fixedGroupTemplate?(this.header.closest(Ms).length?this.header.closest(Ms).show():this.header.show(),this.content.scroll(this._onScroll)):(this.header.closest(Ms).length?this.header.closest(Ms).hide():this.header.hide(),this.content.off("scroll",this._onScroll))},_renderHeader:function(){var Qi=this.templates.fixedGroupTemplate;if(Qi){var vo=this._firstVisibleItem();vo&&vo.group.toString().length&&this.header.html(Qi(vo.group))}},_renderItem:function(Qi){var vo='<li tabindex="-1" role="option" unselectable="on" ',pi=Qi.item,to=0!==Qi.index,Ro=Qi.selected,Sr=this.isGrouped(),rs=this.options.columns&&this.options.columns.length;return vo+=rs?'class="k-table-row'+(Qi.index%2==1?" k-table-alt-row":""):'class="k-list-item',to&&Qi.newGroup&&(vo+=" k-first"),Qi.isLastGroupedItem&&rs&&(vo+=" k-last"),Ro&&(vo+=" k-selected"),vo+='" aria-selected="'+(Ro?"true":"false")+'" data-offset-index="'+Qi.index+'">',rs?vo+=this._renderColumns(pi):(vo+='<span class="k-list-item-text">',vo+=this.templates.template(pi),vo+="</span>"),to&&Qi.newGroup?vo+=rs?'<span class="k-table-td k-table-group-td"><span>'+this.templates.groupTemplate(Qi.group)+"</span></span>":'<div class="k-list-item-group-label">'+this.templates.groupTemplate(Qi.group)+"</div>":Sr&&rs&&(vo+='<span class="k-table-td k-table-spacer-td"></span>'),vo+"</li>"},_renderColumns:function(Qi){for(var vo="",pi=0;pi<this.options.columns.length;pi++){var to=this.options.columns[pi].width,Ro=parseInt(to,10),Sr="";to&&!isNaN(Ro)&&(Sr+="style='width:",Sr+=Ro,Sr+=Dt.test(to)?"%":"px",Sr+=";'"),vo+="<span class='k-table-td' "+Sr+">",vo+=this.templates["column"+pi](Qi),vo+="</span>"}return vo},_render:function(){var to,Os,Ys,la,Qi="",vo=0,pi=0,Ro=[],Sr=this.dataSource.view(),rs=this.value(),Da=this.isGrouped();if(Da)for(vo=0;vo<Sr.length;vo++)for(Os=Sr[vo],Ys=!0,la=0;la<Os.items.length;la++)to={selected:this._selected(Os.items[la],rs),item:Os.items[la],group:Os.value,newGroup:Ys,isLastGroupedItem:la===Os.items.length-1,index:pi},Ro[pi]=to,pi+=1,Qi+=this._renderItem(to),Ys=!1;else for(vo=0;vo<Sr.length;vo++)to={selected:this._selected(Sr[vo],rs),item:Sr[vo],index:vo},Ro[vo]=to,Qi+=this._renderItem(to);this._view=Ro,this.element[0].innerHTML=Qi,Da&&Ro.length&&this._renderHeader()},_selected:function(Qi,vo){return(!this.isFiltered()||"multiple"===this.options.selectable)&&-1!==this._dataItemPosition(Qi,vo)},setDSFilter:function(Qi){this._lastDSFilter=mn({},Qi)},isFiltered:function(){return this._lastDSFilter||this.setDSFilter(this.dataSource.filter()),!ze.data.Query.compareFilters(this.dataSource.filter(),this._lastDSFilter)},refresh:function(Qi){var Sr,vo=this,pi=Qi&&Qi.action,to=vo.options.skipUpdateOnBind,Ro="itemchange"===pi;vo.trigger(xi),vo._angularItems("cleanup"),vo._fixedHeader(),vo._render(),vo.bound(!0),Ro||"remove"===pi?(Sr=function Ws(Qi,vo){var Ro,Sr,rs,Os,pi=vo.length,to=Qi.length,Ys=[],la=[];if(to)for(rs=0;rs<to;rs++){for(Ro=Qi[rs],Sr=!1,Os=0;Os<pi;Os++)if(Ro===vo[Os]){Sr=!0,Ys.push({index:rs,item:Ro});break}Sr||la.push(Ro)}return{changed:Ys,unchanged:la}}(vo._dataItems,Qi.items),Sr.changed.length&&(Ro?vo.trigger(Vt,{items:Sr.changed}):vo.value(vo._getValues(Sr.unchanged)))):vo.isFiltered()||vo._skipUpdate||vo._emptySearch?(vo.focus(0),vo._skipUpdate&&(vo._skipUpdate=!1,vo._selectedIndices=vo._valueIndices(vo._values,vo._selectedIndices))):!to&&(!pi||"add"===pi)&&vo.value(vo._values),vo._valueDeferred&&vo._valueDeferred.resolve(),vo._angularItems("compile"),vo.trigger(Wn)},bound:function(Qi){if(Qi===Ke)return this._bound;this._bound=Qi},isGrouped:function(){return(this.dataSource.group()||[]).length}});function Xs(Qi){return Qi[Qi.length-1]}function _a(Qi){var vo=Qi.selectedIndex;return vo>-1?Qi.options[vo]:{}}function cs(Qi){return!(!Qi||Xe.isEmptyObject(Qi)||Qi.filters&&!Qi.filters.length)}function Ps(Qi,vo){var pi,to=!1;return Qi.filters&&(pi=Xe.grep(Qi.filters,function(Ro){return to=Ps(Ro,vo),Ro.filters?Ro.filters.length:Ro.field!=vo}),!to&&Qi.filters.length!==pi.length&&(to=!0),Qi.filters=pi),to}return St.plugin(na),ze.cssProperties.registerPrefix("List","k-list-"),window.kendo}.apply(R={},ur=[d,A]))&&(C=R),void 0===(x=function(){var Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,St=ze.effects,it=Xe.each,Dt=Xe.extend,Hn=ze.support,Ui=Hn.browser,Co=Hn.transforms,Sn=Hn.transitions,Vn={scale:0,scalex:0,scaley:0,scale3d:0},Dn={translate:0,translatex:0,translatey:0,translate3d:0},kn=typeof document.documentElement.style.zoom<"u"&&!Co,ui=/matrix3?d?\s*\(.*,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?/i,Ot=/^(-?[\d\.\-]+)?[\w\s]*,?\s*(-?[\d\.\-]+)?[\w\s]*/i,en=/translatex?$/i,cn=/(zoom|fade|expand)(\w+)/,Ht=/(zoom|fade|expand)/,ft=/[xy]$/i,Nt=["perspective","rotate","rotatex","rotatey","rotatez","rotate3d","scale","scalex","scaley","scalez","scale3d","skew","skewx","skewy","translate","translatex","translatey","translatez","translate3d","matrix","matrix3d"],an=["rotate","scale","scalex","scaley","skew","skewx","skewy","translate","translatex","translatey","matrix"],$e={rotate:"deg",scale:"",skew:"px",translate:"px"},Je=Co.css,Ve=Math.round,Be="px",Rt="auto",Pt="width",$t="height",Nn="origin",Ae="abortId",He="overflow",Kt="translate",On="position",Fi="completeCallback",Ci=Je+"transition",xi=Je+"transform",Wn=Je+"backface-visibility",Vt=Je+"perspective",bn="perspective(1500px)",ii={left:{reverse:"right",property:"left",transition:"translatex",vertical:!1,modifier:-1},right:{reverse:"left",property:"left",transition:"translatex",vertical:!1,modifier:1},down:{reverse:"up",property:"top",transition:"translatey",vertical:!0,modifier:1},up:{reverse:"down",property:"top",transition:"translatey",vertical:!0,modifier:-1},top:{reverse:"bottom"},bottom:{reverse:"top"},in:{reverse:"out",modifier:-1},out:{reverse:"in",modifier:1},vertical:{reverse:"vertical"},horizontal:{reverse:"horizontal"}};if(ze.directions=ii,Dt(Xe.fn,{kendoStop:function($i,ro){return Sn?St.stopQueue(this,$i||!1,ro||!1):this.stop($i,ro)}}),Co&&!Sn){it(an,function($i,ro){Xe.fn[ro]=function(wo){if(typeof wo>"u")return Oi(this,ro);var io=Xe(this)[0],Wi=ro+"("+wo+$e[ro.replace(ft,"")]+")";return-1==io.style.cssText.indexOf(xi)?Xe(this).css(xi,Wi):io.style.cssText=io.style.cssText.replace(new RegExp(ro+"\\(.*?\\)","i"),Wi),this},Xe.fx.step[ro]=function(wo){Xe(wo.elem)[ro](wo.now)}});var Vi=Xe.fx.prototype.cur;Xe.fx.prototype.cur=function(){return-1!=an.indexOf(this.prop)?parseFloat(Xe(this.elem)[this.prop]()):Vi.apply(this,arguments)}}function Jn($i){return parseInt($i,10)}function zt($i,ro){return Jn($i.css(ro))}function Qn($i){for(var ro in $i)-1!=Nt.indexOf(ro)&&-1==an.indexOf(ro)&&delete $i[ro];return $i}function ci($i,ro){var Wi,fo,cr,Fr,wo=[],io={};for(fo in ro)Wi=fo.toLowerCase(),Fr=Co&&-1!=Nt.indexOf(Wi),!Hn.hasHW3D&&Fr&&-1==an.indexOf(Wi)?delete ro[fo]:(cr=ro[fo],Fr?wo.push(fo+"("+cr+")"):io[fo]=cr);return wo.length&&(io[xi]=wo.join(" ")),io}function Oi($i,ro){if(Co){var wo=$i.css(xi);if("none"==wo)return"scale"==ro?1:0;var io=wo.match(new RegExp(ro+"\\s*\\(([\\d\\w\\.]+)")),Wi=0;return io?Wi=Jn(io[1]):(io=wo.match(ui)||[0,0,0,0,0],ro=ro.toLowerCase(),en.test(ro)?Wi=parseFloat(io[3]/io[2]):"translatey"==ro?Wi=parseFloat(io[4]/io[2]):"scale"==ro?Wi=parseFloat(io[2]):"rotate"==ro&&(Wi=parseFloat(Math.atan2(io[2],io[1])))),Wi}return parseFloat($i.css(ro))}ze.toggleClass=function($i,ro,wo,io){return ro&&(ro=ro.split(" "),Sn&&(wo=Dt({exclusive:"all",duration:400,ease:"ease-out"},wo),$i.css(Ci,wo.exclusive+" "+wo.duration+"ms "+wo.ease),setTimeout(function(){$i.css(Ci,"").css($t)},wo.duration)),it(ro,function(Wi,fo){$i.toggleClass(fo,io)})),$i},ze.parseEffects=function($i,ro){var wo={};return"string"==typeof $i?it($i.split(" "),function(io,Wi){var fo=!Ht.test(Wi),Fr=Wi.replace(cn,function(Ms,Ca,ks){return Ca+":"+ks.toLowerCase()}).split(":"),jr=Fr[1],fs={};Fr.length>1&&(fs.direction=ro&&fo?ii[jr].reverse:jr),wo[Fr[0]]=fs}):it($i,function(io){var Wi=this.direction;Wi&&ro&&!Ht.test(io)&&(this.direction=ii[Wi].reverse),wo[io]=this}),wo},Sn&&Dt(St,{transition:function($i,ro,wo){var io,cr,Wi=0,fo=$i.data("keys")||[];wo=Dt({duration:200,ease:"ease-out",complete:null,exclusive:"all"},wo);var Fr=!1,jr=function(){Fr||(Fr=!0,cr&&(clearTimeout(cr),cr=null),$i.removeData(Ae).dequeue().css(Ci,"").css(Ci),wo.complete.call($i))};wo.duration=Xe.fx&&Xe.fx.speeds[wo.duration]||wo.duration,io=ci(0,ro),Xe.merge(fo,function mn($i){var ro=[];for(var wo in $i)ro.push(wo);return ro}(io)),Xe.hasOwnProperty("uniqueSort")?$i.data("keys",Xe.uniqueSort(fo)).height():$i.data("keys",Xe.unique(fo)).height(),$i.css(Ci,wo.exclusive+" "+wo.duration+"ms "+wo.ease).css(Ci),$i.css(io).css(xi),Sn.event&&($i.one(Sn.event,jr),0!==wo.duration&&(Wi=500)),cr=setTimeout(jr,wo.duration+Wi),$i.data(Ae,cr),$i.data(Fi,jr)},stopQueue:function($i,ro,wo){var io,Wi=$i.data("keys"),fo=!wo&&Wi,cr=$i.data(Fi);return fo&&(io=ze.getComputedStyles($i[0],Wi)),cr&&cr(),fo&&$i.css(io),$i.removeData("keys").stop(ro)}});var Ai=ze.Class.extend({init:function($i,ro){this.element=$i,this.effects=[],this.options=ro,this.restore=[]},run:function($i){var wo,io,Wi,Ca,ks,ts,ro=this,fo=$i.length,cr=ro.element,Fr=ro.options,jr=Xe.Deferred(),fs={},Ms={};for(ro.effects=$i,jr.done(ro.complete.bind(ro)),cr.data("animating",!0),io=0;io<fo;io++)for((wo=$i[io]).setReverse(Fr.reverse),wo.setOptions(Fr),ro.addRestoreProperties(wo.restore),wo.prepare(fs,Ms),Wi=0,ts=(ks=wo.children()).length;Wi<ts;Wi++)ks[Wi].duration(Fr.duration).run();for(var na in Fr.effects)Dt(Ms,Fr.effects[na].properties);for(cr.is(":visible")||Dt(fs,{display:cr.data("olddisplay")||"block"}),Co&&!Fr.reset&&(Ca=cr.data("targetTransform"))&&(fs=Dt(Ca,fs)),fs=ci(0,fs),Co&&!Sn&&(fs=Qn(fs)),cr.css(fs).css(xi),io=0;io<fo;io++)$i[io].setup();return Fr.init&&Fr.init(),cr.data("targetTransform",Ms),St.animate(cr,Ms,Dt({},Fr,{complete:jr.resolve})),jr.promise()},stop:function(){Xe(this.element).kendoStop(!0,!0)},addRestoreProperties:function($i){for(var wo,ro=this.element,io=0,Wi=$i.length;io<Wi;io++)this.restore.push(wo=$i[io]),ro.data(wo)||ro.data(wo,ro.css(wo))},restoreCallback:function(){for(var $i=this.element,ro=0,wo=this.restore.length;ro<wo;ro++){var io=this.restore[ro];$i.css(io,$i.data(io))}},complete:function(){var ro=0,wo=this.element,io=this.options,Wi=this.effects,fo=Wi.length;for(wo.removeData("animating").dequeue(),io.hide&&wo.data("olddisplay",wo.css("display")).hide(),this.restoreCallback(),kn&&!Co&&setTimeout(this.restoreCallback.bind(this),0);ro<fo;ro++)Wi[ro].teardown();io.completeCallback&&io.completeCallback(wo)}}),Pn=(St.promise=function($i,ro){var io,cr,wo=[],Wi=new Ai($i,ro),fo=ze.parseEffects(ro.effects);for(var Fr in ro.effects=fo,fo)(io=St[qn(Fr)])&&(cr=new io($i,fo[Fr].direction),wo.push(cr));wo[0]?Wi.run(wo):($i.is(":visible")||$i.css({display:$i.data("olddisplay")||"block"}).css("display"),ro.init&&ro.init(),$i.dequeue(),Wi.complete())},Dt(St,{animate:function($i,ro,wo){var io=!1!==wo.transition;delete wo.transition,Sn&&"transition"in St&&io?St.transition($i,ro,wo):Co?$i.animate(Qn(ro),{queue:!1,show:!1,hide:!1,duration:wo.duration,complete:wo.complete}):$i.each(function(){var Wi=Xe(this),fo={};it(Nt,function(cr,Fr){var jr,fs=ro?ro[Fr]+" ":null;if(fs){var Ms=ro;if(Fr in Vn&&ro[Fr]!==Ke)jr=fs.match(Ot),Co&&Dt(Ms,{scale:+jr[0]});else if(Fr in Dn&&ro[Fr]!==Ke){var Ca=Wi.css(On),ks="absolute"==Ca||"fixed"==Ca;Wi.data(Kt)||Wi.data(Kt,ks?{top:zt(Wi,"top")||0,left:zt(Wi,"left")||0,bottom:zt(Wi,"bottom"),right:zt(Wi,"right")}:{top:zt(Wi,"marginTop")||0,left:zt(Wi,"marginLeft")||0});var ts=Wi.data(Kt);if(jr=fs.match(Ot)){var na=Fr==Kt+"y"?0:+jr[1],Xs=Fr==Kt+"y"?+jr[1]:+jr[2];ks?(isNaN(ts.right)?isNaN(na)||Dt(Ms,{left:ts.left+na}):isNaN(na)||Dt(Ms,{right:ts.right-na}),isNaN(ts.bottom)?isNaN(Xs)||Dt(Ms,{top:ts.top+Xs}):isNaN(Xs)||Dt(Ms,{bottom:ts.bottom-Xs})):(isNaN(na)||Dt(Ms,{marginLeft:ts.left+na}),isNaN(Xs)||Dt(Ms,{marginTop:ts.top+Xs}))}}!Co&&"scale"!=Fr&&Fr in Ms&&delete Ms[Fr],Ms&&Dt(fo,Ms)}}),Ui.msie&&delete fo.scale,Wi.animate(fo,{queue:!1,show:!1,hide:!1,duration:wo.duration,complete:wo.complete})})}}),St.animatedPromise=St.promise,ze.Class.extend({init:function($i,ro){var wo=this;wo.element=$i,wo._direction=ro,wo.options={},wo._additionalEffects=[],wo.restore||(wo.restore=[])},reverse:function(){return this._reverse=!0,this.run()},play:function(){return this._reverse=!1,this.run()},add:function($i){return this._additionalEffects.push($i),this},direction:function($i){return this._direction=$i,this},duration:function($i){return this._duration=$i,this},compositeRun:function(){var $i=this,ro=new Ai($i.element,{reverse:$i._reverse,duration:$i._duration}),wo=$i._additionalEffects.concat([$i]);return ro.run(wo)},run:function(){if(this._additionalEffects&&this._additionalEffects[0])return this.compositeRun();var fo,fs,$i=this,ro=$i.element,wo=0,io=$i.restore,Wi=io.length,cr=Xe.Deferred(),Fr={},jr={},Ms=$i.children(),Ca=Ms.length;for(cr.done($i._complete.bind($i)),ro.data("animating",!0),wo=0;wo<Wi;wo++)ro.data(fo=io[wo])||ro.data(fo,ro.css(fo));for(wo=0;wo<Ca;wo++)Ms[wo].duration($i._duration).run();return $i.prepare(Fr,jr),ro.is(":visible")||Dt(Fr,{display:ro.data("olddisplay")||"block"}),Co&&(fs=ro.data("targetTransform"))&&(Fr=Dt(fs,Fr)),Fr=ci(0,Fr),Co&&!Sn&&(Fr=Qn(Fr)),ro.css(Fr).css(xi),$i.setup(),ro.data("targetTransform",jr),St.animate(ro,jr,{duration:$i._duration,complete:cr.resolve}),cr.promise()},stop:function(){var $i=0,ro=this.children(),wo=ro.length;for($i=0;$i<wo;$i++)ro[$i].stop();return Xe(this.element).kendoStop(!0,!0),this},restoreCallback:function(){for(var $i=this.element,ro=0,wo=this.restore.length;ro<wo;ro++){var io=this.restore[ro];$i.css(io,$i.data(io))}},_complete:function(){var $i=this,ro=$i.element;ro.removeData("animating").dequeue(),$i.restoreCallback(),$i.shouldHide()&&ro.data("olddisplay",ro.css("display")).hide(),kn&&!Co&&setTimeout($i.restoreCallback.bind($i),0),$i.teardown()},setOptions:function($i){Dt(!0,this.options,$i)},children:function(){return[]},shouldHide:Xe.noop,setup:Xe.noop,prepare:Xe.noop,teardown:Xe.noop,directions:[],setReverse:function($i){return this._reverse=$i,this}}));function qn($i){return $i.charAt(0).toUpperCase()+$i.substring(1)}function Ni($i,ro){var wo=Pn.extend(ro),io=wo.prototype.directions;St[qn($i)]=wo,St.Element.prototype[$i]=function(Wi,fo,cr,Fr){return new wo(this.element,Wi,fo,cr,Fr)},it(io,function(Wi,fo){St.Element.prototype[$i+qn(fo)]=function(cr,Fr,jr){return new wo(this.element,fo,cr,Fr,jr)}})}var Ue=["left","right","up","down"],Ye=["in","out"];function Me($i,ro,wo,io){Ni($i,{directions:Ye,startValue:function(Wi){return this._startValue=Wi,this},endValue:function(Wi){return this._endValue=Wi,this},shouldHide:function(){return this._shouldHide},prepare:function(Wi,fo){var Fr,jr,fs="out"===this._direction,Ms=this.element.data(ro);Fr=isNaN(Ms)||Ms==wo?typeof this._startValue<"u"?this._startValue:fs?wo:io:Ms,jr=typeof this._endValue<"u"?this._endValue:fs?io:wo,this._reverse?(Wi[ro]=jr,fo[ro]=Fr):(Wi[ro]=Fr,fo[ro]=jr),this._shouldHide=fo[ro]===io}})}Ni("slideIn",{directions:Ue,divisor:function($i){return this.options.divisor=$i,this},prepare:function($i,ro){var io,wo=this,Wi=wo.element,fo=ze._outerWidth,Fr=ii[wo._direction],fs=-Fr.modifier*(Fr.vertical?(0,ze._outerHeight)(Wi):fo(Wi))/(wo.options&&wo.options.divisor||1)+Be;wo._reverse&&(io=$i,$i=ro,ro=io),Co?($i[Fr.transition]=fs,ro[Fr.transition]="0px"):($i[Fr.property]=fs,ro[Fr.property]="0px")}}),Ni("tile",{directions:Ue,init:function($i,ro,wo){Pn.prototype.init.call(this,$i,ro),this.options={previous:wo}},previousDivisor:function($i){return this.options.previousDivisor=$i,this},children:function(){var $i=this,ro=$i._reverse,wo=$i.options.previous,io=$i.options.previousDivisor||1,Wi=$i._direction,fo=[ze.fx($i.element).slideIn(Wi).setReverse(ro)];return wo&&fo.push(ze.fx(wo).slideIn(ii[Wi].reverse).divisor(io).setReverse(!ro)),fo}}),Me("fade","opacity",1,0),Me("zoom","scale",1,.01),Ni("slideMargin",{prepare:function($i,ro){var Fr,io=this.element,Wi=this.options,fo=io.data(Nn),cr=Wi.offset,jr=this._reverse;!jr&&null===fo&&io.data(Nn,parseFloat(io.css("margin-"+Wi.axis))),Fr=io.data(Nn)||0,ro["margin-"+Wi.axis]=jr?Fr:Fr+cr}}),Ni("slideTo",{prepare:function($i,ro){var io=this.element,fo=this.options.offset.split(","),cr=this._reverse;Co?(ro.translatex=cr?0:fo[0],ro.translatey=cr?0:fo[1]):(ro.left=cr?0:fo[0],ro.top=cr?0:fo[1]),io.css("left")}}),Ni("expand",{directions:["horizontal","vertical"],restore:[He],prepare:function($i,ro){var io=this.element,Wi=this.options,fo=this._reverse,cr="vertical"===this._direction?$t:Pt,Fr=io[0].style[cr],jr=io.data(cr),fs=parseFloat(jr||Fr),Ms=Ve(io.css(cr,Rt)[cr]());$i.overflow="hidden",fs=Wi&&Wi.reset?Ms||fs:fs||Ms,ro[cr]=(fo?0:fs)+Be,$i[cr]=(fo?fs:0)+Be,jr===Ke&&io.data(cr,Fr)},shouldHide:function(){return this._reverse},teardown:function(){var ro=this.element,wo="vertical"===this._direction?$t:Pt,io=ro.data(wo);(io==Rt||""===io)&&setTimeout(function(){ro.css(wo,Rt).css(wo)},0)}});var pe={position:"absolute",marginLeft:0,marginTop:0,scale:1},lt=(Ni("transfer",{init:function($i,ro){this.element=$i,this.options={target:ro},this.restore=[]},setup:function(){this.element.appendTo(document.body)},prepare:function($i,ro){var io=this.element,Wi=St.box(io),fo=St.box(this.options.target),cr=Oi(io,"scale"),Fr=St.fillScale(fo,Wi),jr=St.transformOrigin(fo,Wi);Dt($i,pe),ro.scale=1,io.css(xi,"scale(1)").css(xi),io.css(xi,"scale("+cr+")"),$i.top=Wi.top,$i.left=Wi.left,$i.transformOrigin=jr.x+Be+" "+jr.y+Be,this._reverse?$i.scale=Fr:ro.scale=Fr}}),{top:"rect(auto auto $size auto)",bottom:"rect($size auto auto auto)",left:"rect(auto $size auto auto)",right:"rect(auto auto auto $size)"}),yt={top:{start:"rotatex(0deg)",end:"rotatex(180deg)"},bottom:{start:"rotatex(-180deg)",end:"rotatex(0deg)"},left:{start:"rotatey(0deg)",end:"rotatey(-180deg)"},right:{start:"rotatey(180deg)",end:"rotatey(0deg)"}};function on($i,ro){var io=$i[ze.directions[ro].vertical?$t:Pt]()/2+"px";return lt[ro].replace("$size",io)}Ni("turningPage",{directions:Ue,init:function($i,ro,wo){Pn.prototype.init.call(this,$i,ro),this._container=wo},prepare:function($i,ro){var wo=this,io=wo._reverse,Wi=io?ii[wo._direction].reverse:wo._direction,fo=yt[Wi];$i.zIndex=1,wo._clipInHalf&&($i.clip=on(wo._container,ze.directions[Wi].reverse)),$i[Wn]="hidden",ro[xi]=bn+(io?fo.start:fo.end),$i[xi]=bn+(io?fo.end:fo.start)},setup:function(){this._container.append(this.element)},face:function($i){return this._face=$i,this},shouldHide:function(){var ro=this._reverse,wo=this._face;return ro&&!wo||!ro&&wo},clipInHalf:function($i){return this._clipInHalf=$i,this},temporary:function(){return this.element.addClass("temp-page"),this}}),Ni("staticPage",{directions:Ue,init:function($i,ro,wo){Pn.prototype.init.call(this,$i,ro),this._container=wo},restore:["clip"],prepare:function($i,ro){$i.clip=on(this._container,this._reverse?ii[this._direction].reverse:this._direction),$i.opacity=.999,ro.opacity=1},shouldHide:function(){var ro=this._reverse,wo=this._face;return ro&&!wo||!ro&&wo},face:function($i){return this._face=$i,this}}),Ni("pageturn",{directions:["horizontal","vertical"],init:function($i,ro,wo,io){Pn.prototype.init.call(this,$i,ro),this.options={},this.options.face=wo,this.options.back=io},children:function(){var fo,ro=this.options,wo="horizontal"===this._direction?"left":"top",io=ze.directions[wo].reverse,Wi=this._reverse,cr=ro.face.clone(!0).removeAttr("id"),Fr=ro.back.clone(!0).removeAttr("id"),jr=this.element;return Wi&&(fo=wo,wo=io,io=fo),[ze.fx(ro.face).staticPage(wo,jr).face(!0).setReverse(Wi),ze.fx(ro.back).staticPage(io,jr).setReverse(Wi),ze.fx(cr).turningPage(wo,jr).face(!0).clipInHalf(!0).temporary().setReverse(Wi),ze.fx(Fr).turningPage(io,jr).clipInHalf(!0).temporary().setReverse(Wi)]},prepare:function($i,ro){$i[Vt]="1500px",$i.transformStyle="preserve-3d",$i.opacity=.999,ro.opacity=1},teardown:function(){this.element.find(".temp-page").remove()}}),Ni("flip",{directions:["horizontal","vertical"],init:function($i,ro,wo,io){Pn.prototype.init.call(this,$i,ro),this.options={},this.options.face=wo,this.options.back=io},children:function(){var fo,ro=this.options,wo="horizontal"===this._direction?"left":"top",io=ze.directions[wo].reverse,Wi=this._reverse,cr=this.element;return Wi&&(fo=wo,wo=io,io=fo),[ze.fx(ro.face).turningPage(wo,cr).face(!0).setReverse(Wi),ze.fx(ro.back).turningPage(io,cr).setReverse(Wi)]},prepare:function($i){$i[Vt]="1500px",$i.transformStyle="preserve-3d"}});var zi=!Hn.mobileOS.android,ho=(Ni("replace",{_before:Xe.noop,_after:Xe.noop,init:function($i,ro,wo){Pn.prototype.init.call(this,$i),this._previous=Xe(ro),this._transitionClass=wo},duration:function(){throw new Error("The replace effect does not support duration setting; the effect duration may be customized through the transition class rule")},beforeTransition:function($i){return this._before=$i,this},afterTransition:function($i){return this._after=$i,this},_both:function(){return Xe().add(this._element).add(this._previous)},_containerClass:function(){var $i=this._direction,ro="k-fx k-fx-start k-fx-"+this._transitionClass;return $i&&(ro+=" k-fx-"+$i),this._reverse&&(ro+=" k-fx-reverse"),ro},complete:function($i){if(!(!this.deferred||$i&&Xe($i.target).is(".km-touch-scrollbar, .km-actionsheet-wrapper"))){var ro=this.container;ro.removeClass("k-fx-end").removeClass(this._containerClass()).off(Sn.event,this.completeProxy),this._previous.hide().removeClass("k-fx-current"),this.element.removeClass("k-fx-next"),zi&&ro.css(He,""),this.isAbsolute||this._both().css(On,""),this.deferred.resolve(),delete this.deferred}},run:function(){if(this._additionalEffects&&this._additionalEffects[0])return this.compositeRun();var $i=this,ro=$i.element,wo=$i._previous,io=ro.parents().filter(wo.parents()).first(),Wi=$i._both(),fo=Xe.Deferred(),cr=ro.css(On);return io.length||(io=ro.parent()),this.container=io,this.deferred=fo,this.isAbsolute="absolute"==cr,this.isAbsolute||Wi.css(On,"absolute"),zi&&(io.css(He),io.css(He,"hidden")),Sn?(ro.addClass("k-fx-hidden"),io.addClass(this._containerClass()),this.completeProxy=this.complete.bind(this),io.on(Sn.event,this.completeProxy),ze.animationFrame(function(){ro.removeClass("k-fx-hidden").addClass("k-fx-next"),wo.css("display","").addClass("k-fx-current"),$i._before(wo,ro),ze.animationFrame(function(){io.removeClass("k-fx-start").addClass("k-fx-end"),$i._after(wo,ro)})})):this.complete(),fo.promise()},stop:function(){this.complete()}}),ze.Class.extend({init:function(){this._tickProxy=this._tick.bind(this),this._started=!1},tick:Xe.noop,done:Xe.noop,onEnd:Xe.noop,onCancel:Xe.noop,start:function(){this.enabled()&&(this.done()?this.onEnd():(this._started=!0,ze.animationFrame(this._tickProxy)))},enabled:function(){return!0},cancel:function(){this._started=!1,this.onCancel()},_tick:function(){var $i=this;$i._started&&($i.tick(),$i.done()?($i._started=!1,$i.onEnd()):ze.animationFrame($i._tickProxy))}})),po=ho.extend({init:function($i){Dt(this,$i),ho.fn.init.call(this)},done:function(){return this.timePassed()>=this.duration},timePassed:function(){return Math.min(this.duration,new Date-this.startDate)},moveTo:function($i){var ro=this;ro.initial=ro.movable[ro.axis],ro.delta=$i.location-ro.initial,ro.duration="number"==typeof $i.duration?$i.duration:300,ro.tick=ro._easeProxy($i.ease),ro.startDate=new Date,ro.start()},_easeProxy:function($i){var ro=this;return function(){ro.movable.moveAxis(ro.axis,$i(ro.timePassed(),ro.initial,ro.delta,ro.duration))}}});return Dt(po,{easeOutExpo:function($i,ro,wo,io){return $i==io?ro+wo:wo*(1-Math.pow(2,-10*$i/io))+ro},easeOutBack:function($i,ro,wo,io,Wi){return wo*(($i=$i/io-1)*$i*(2.70158*$i+1.70158)+1)+ro}}),St.Animation=ho,St.Transition=po,St.createEffect=Ni,St.box=function($i){var ro=($i=Xe($i)).offset();return ro.width=ze._outerWidth($i),ro.height=ze._outerHeight($i),ro},St.transformOrigin=function($i,ro){var wo=($i.left-ro.left)*ro.width/(ro.width-$i.width),io=($i.top-ro.top)*ro.height/(ro.height-$i.height);return{x:isNaN(wo)?0:wo,y:isNaN(io)?0:io}},St.fillScale=function($i,ro){return Math.min($i.width/ro.width,$i.height/ro.height)},St.fitScale=function($i,ro){return Math.max($i.width/ro.width,$i.height/ro.height)},window.kendo}.apply(f={},ur=[e]))&&(x=f),void 0===(k=function(){var Xe=window.kendo.jQuery,ze=window.kendo,St=ze.support,it=ze.Class,Dt=ze.Observable,Hn=Date.now,Ui=Xe.extend,Co=St.mobileOS,Sn=Co&&Co.android,Vn=800,kn=St.browser.msie?5:0,Ht="move",an="tap",$e="doubleTap",Je="release",Ge="gesturechange",Be="gestureend",At="gesturetap",Rt={api:0,touch:0,mouse:9,pointer:9},Pt=!St.touch||St.mouseAndTouchPresent;function $t(On,Fi){var Ci=On.x.location,xi=On.y.location,Wn=Fi.x.location,Vt=Fi.y.location,qt=Ci-Wn,bn=xi-Vt;return{center:{x:(Ci+Wn)/2,y:(xi+Vt)/2},distance:Math.sqrt(qt*qt+bn*bn)}}function Xn(On){var Vt,qt,bn,Fi=[],Ci=On.originalEvent,xi=On.currentTarget,Wn=0;if(On.api)Fi.push({id:2,event:On,target:On.target,currentTarget:On.target,location:On,type:"api"});else if(On.type.match(/touch/))for(Vt=(qt=Ci?Ci.changedTouches:[]).length;Wn<Vt;Wn++)Fi.push({location:bn=qt[Wn],event:On,target:bn.target,currentTarget:xi,id:bn.identifier,type:"touch"});else Fi.push(St.pointers||St.msPointers?{location:Ci,event:On,target:On.target,currentTarget:xi,id:Ci.pointerId,type:"pointer"}:{id:1,event:On,target:On.target,currentTarget:xi,location:On,type:"mouse"});return Fi}var Nn=it.extend({init:function(On,Fi){var Ci=this;Ci.axis=On,Ci._updateLocationData(Fi),Ci.startLocation=Ci.location,Ci.velocity=Ci.delta=0,Ci.timeStamp=Hn()},move:function(On){var Fi=this,Ci=On["page"+Fi.axis],xi=Hn(),Wn=xi-Fi.timeStamp||1;!Ci&&Sn||(Fi.delta=Ci-Fi.location,Fi._updateLocationData(On),Fi.initialDelta=Ci-Fi.startLocation,Fi.velocity=Fi.delta/Wn,Fi.timeStamp=xi)},_updateLocationData:function(On){var Ci=this.axis;this.location=On["page"+Ci],this.client=On["client"+Ci],this.screen=On["screen"+Ci]}}),Ae=it.extend({init:function(On,Fi,Ci){Ui(this,{x:new Nn("X",Ci.location),y:new Nn("Y",Ci.location),type:Ci.type,useClickAsTap:On.useClickAsTap,threshold:On.threshold||Rt[Ci.type],userEvents:On,target:Fi,currentTarget:Ci.currentTarget,initialTouch:Ci.target,id:Ci.id,pressEvent:Ci,_clicks:On._clicks,supportDoubleTap:On.supportDoubleTap,_moved:!1,_finished:!1})},press:function(){this._holdTimeout=setTimeout(this._hold.bind(this),this.userEvents.minHold),this._trigger("press",this.pressEvent)},_tap:function(On){var Fi=this;Fi.userEvents._clicks++,1==Fi.userEvents._clicks&&(Fi._clickTimeout=setTimeout(function(){Fi._trigger(1==Fi.userEvents._clicks?an:$e,On),Fi.userEvents._clicks=0},300))},_hold:function(){this._trigger("hold",this.pressEvent)},move:function(On){var Fi=this;if(!(Fi._finished||"api"!==On.type&&Fi.userEvents._shouldNotMove)){if(Fi.x.move(On.location),Fi.y.move(On.location),!Fi._moved){if(Fi._withinIgnoreThreshold())return;if(Kt.current&&Kt.current!==Fi.userEvents)return Fi.dispose();Fi._start(On)}Fi._finished||Fi._trigger(Ht,On)}},end:function(On){this.endTime=Hn(),!this._finished&&(this._finished=!0,this._trigger(Je,On),this._moved?this._trigger("end",On):this.useClickAsTap||(this.supportDoubleTap?this._tap(On):this._trigger(an,On)),clearTimeout(this._holdTimeout),this.dispose())},dispose:function(){var Fi=this.userEvents.touches;this._finished=!0,this.pressEvent=null,clearTimeout(this._holdTimeout),Fi.splice(Xe.inArray(this,Fi),1)},skip:function(){this.dispose()},cancel:function(){this.dispose()},isMoved:function(){return this._moved},_start:function(On){clearTimeout(this._holdTimeout),this.startTime=Hn(),this._moved=!0,this._trigger("start",On)},_trigger:function(On,Fi){var Ci=this,xi=Fi.event;Ci.userEvents.notify(On,{touch:Ci,x:Ci.x,y:Ci.y,target:Ci.target,event:xi})&&xi.preventDefault()},_withinIgnoreThreshold:function(){var On=this.x.initialDelta,Fi=this.y.initialDelta;return Math.sqrt(On*On+Fi*Fi)<=this.threshold}});function He(On){for(var Fi=ze.eventMap.up.split(" "),Ci=0,xi=Fi.length;Ci<xi;Ci++)On(Fi[Ci])}var Kt=Dt.extend({init:function(On,Fi){var xi,Ci=this,Wn=ze.guid();if(xi=Ci.filter=(Fi=Fi||{}).filter,Ci.threshold=Fi.threshold||kn,Ci.minHold=Fi.minHold||Vn,Ci.touches=[],Ci._maxTouches=Fi.multiTouch?2:1,Ci.allowSelection=Fi.allowSelection,Ci.captureUpIfMoved=Fi.captureUpIfMoved,Ci.useClickAsTap=!Fi.fastTap&&!St.delayedClick(),Ci.eventNS=Wn,Ci._clicks=0,Ci.supportDoubleTap=Fi.supportDoubleTap,On=Xe(On).handler(Ci),Dt.fn.init.call(Ci),Ui(Ci,{element:On,surface:Xe(Fi.global&&Pt?On[0].ownerDocument.documentElement:Fi.surface||On),stopPropagation:Fi.stopPropagation,pressed:!1}),Ci.surface.handler(Ci).on(ze.applyEventMap("move",Wn),"_move").on(ze.applyEventMap("up cancel",Wn),"_end"),On.on(ze.applyEventMap("down",Wn),xi,"_start"),Ci.useClickAsTap&&On.on(ze.applyEventMap("click",Wn),xi,"_click"),St.pointers||St.msPointers)if(St.browser.version<11){var Vt="pinch-zoom double-tap-zoom";On.css("-ms-touch-action",Fi.touchAction&&"none"!=Fi.touchAction?Vt+" "+Fi.touchAction:Vt)}else On.css("touch-action",Fi.touchAction||"none");if(Fi.preventDragEvent&&On.on(ze.applyEventMap("dragstart",Wn),ze.preventDefault),On.on(ze.applyEventMap("mousedown",Wn),xi,{root:On},"_select"),Ci.captureUpIfMoved&&St.eventCapture){var qt=Ci.surface[0],bn=Ci.preventIfMoving.bind(Ci);He(function(ii){qt.addEventListener(ii,bn,!0)})}Ci.bind(["press","hold",an,$e,"start",Ht,"end",Je,"cancel","gesturestart",Ge,Be,At,"select"],Fi)},preventIfMoving:function(On){this._isMoved()&&On.preventDefault()},destroy:function(){var On=this;if(!On._destroyed){if(On._destroyed=!0,On.captureUpIfMoved&&St.eventCapture){var Fi=On.surface[0];He(function(Ci){Fi.removeEventListener(Ci,On.preventIfMoving)})}On.element.kendoDestroy(On.eventNS),On.surface.kendoDestroy(On.eventNS),On.element.removeData("handler"),On.surface.removeData("handler"),On._disposeAll(),On.unbind(),delete On.surface,delete On.element,delete On.currentTarget}},capture:function(){Kt.current=this},cancel:function(){this._disposeAll(),this.trigger("cancel")},notify:function(On,Fi){var xi=this.touches;if(this._isMultiTouch()){switch(On){case Ht:On=Ge;break;case"end":On=Be;break;case an:On=At}Ui(Fi,{touches:xi},$t(xi[0],xi[1]))}return this.trigger(On,Ui(Fi,{type:On}))},press:function(On,Fi,Ci){this._apiCall("_start",On,Fi,Ci)},move:function(On,Fi){this._apiCall("_move",On,Fi)},end:function(On,Fi){this._apiCall("_end",On,Fi)},_isMultiTouch:function(){return this.touches.length>1},_maxTouchesReached:function(){return this.touches.length>=this._maxTouches},_disposeAll:function(){for(var On=this.touches;On.length>0;)On.pop().dispose()},_isMoved:function(){return Xe.grep(this.touches,function(On){return On.isMoved()}).length},_select:function(On){(!this.allowSelection||this.trigger("select",{event:On}))&&On.preventDefault()},_start:function(On){var Wn,bn,Fi=this,Ci=0,xi=Fi.filter,Vt=Xn(On),qt=Vt.length,ii=On.which;if(!(ii&&ii>1||Fi._maxTouchesReached()))for(Kt.current=null,Fi.currentTarget=On.currentTarget,Fi.stopPropagation&&On.stopPropagation();Ci<qt&&!Fi._maxTouchesReached();Ci++)bn=Vt[Ci],(Wn=xi?Xe(bn.currentTarget):Fi.element).length&&(bn=new Ae(Fi,Wn,bn),Fi.touches.push(bn),bn.press(),Fi._isMultiTouch()&&Fi.notify("gesturestart",{}))},_move:function(On){this._eachTouch("move",On)},_end:function(On){this._eachTouch("end",On)},_click:function(On){var Fi={touch:{initialTouch:On.target,target:Xe(On.currentTarget),endTime:Hn(),x:{location:On.pageX,client:On.clientX},y:{location:On.pageY,client:On.clientY}},x:On.pageX,y:On.pageY,target:Xe(On.currentTarget),event:On,type:"tap"};this.trigger("tap",Fi)&&On.preventDefault()},_eachTouch:function(On,Fi){var qt,bn,ii,Vi,xi={},Wn=Xn(Fi),Vt=this.touches;for(qt=0;qt<Vt.length;qt++)xi[(bn=Vt[qt]).id]=bn;for(qt=0;qt<Wn.length;qt++)(Vi=xi[(ii=Wn[qt]).id])&&Vi[On](ii)},_apiCall:function(On,Fi,Ci,xi){this[On]({api:!0,pageX:Fi,pageY:Ci,clientX:Fi,clientY:Ci,target:Xe(xi||this.element)[0],stopPropagation:Xe.noop,preventDefault:Xe.noop})}});return Kt.defaultThreshold=function(On){kn=On},Kt.minHold=function(On){Vn=On},ze.getTouches=Xn,ze.touchDelta=$t,ze.UserEvents=Kt,window.kendo}.apply(w={},ur=[e]))&&(k=w),void 0===(g=function(){var en,Xe=window.kendo.jQuery,ze=window.kendo,St=ze.support,it=window.document,Dt=Xe(window),Hn=ze.Class,Ui=ze.ui.Widget,Co=ze.Observable,Sn=ze.UserEvents,Vn=Xe.extend,Dn=ze.getOffset,kn={},ui={},Ot={},cn=ze.elementUnderCursor,ft="change",Nt="dragstart",Je="dragend",Ve="dragcancel",Ge="hintDestroyed",Be="dragenter",At="dragleave";function $t(ci,Oi){return parseInt(ci.css(Oi),10)||0}function Xn(ci,Oi){return Math.min(Math.max(ci,Oi.min),Oi.max)}function Nn(ci,Oi){var Ai=Dn(ci),Pn=ze._outerWidth,qn=ze._outerHeight,Ni=Ai.left+$t(ci,"borderLeftWidth")+$t(ci,"paddingLeft"),Ue=Ai.top+$t(ci,"borderTopWidth")+$t(ci,"paddingTop");return{x:{min:Ni,max:Ni+ci.width()-Pn(Oi,!0)},y:{min:Ue,max:Ue+ci.height()-qn(Oi,!0)}}}var Wn,He=Co.extend({init:function(ci,Oi){var Ai=this,Pn=ci[0];Ai.capture=!1,Pn.addEventListener?(Xe.each(ze.eventMap.down.split(" "),function(){Pn.addEventListener(this,Ai._press.bind(Ai),!0)}),Xe.each(ze.eventMap.up.split(" "),function(){Pn.addEventListener(this,Ai._release.bind(Ai),!0)})):(Xe.each(ze.eventMap.down.split(" "),function(){Pn.attachEvent(this,Ai._press.bind(Ai))}),Xe.each(ze.eventMap.up.split(" "),function(){Pn.attachEvent(this,Ai._release.bind(Ai))})),Co.fn.init.call(Ai),Ai.bind(["press","release"],Oi||{})},captureNext:function(){this.capture=!0},cancelCapture:function(){this.capture=!1},_press:function(ci){this.trigger("press"),this.capture&&ci.preventDefault()},_release:function(ci){this.trigger("release"),this.capture&&(ci.preventDefault(),this.cancelCapture())}}),Kt=Co.extend({init:function(ci){var Oi=this;Co.fn.init.call(Oi),Oi.forcedEnabled=!1,Xe.extend(Oi,ci),Oi.scale=1,Oi.horizontal?(Oi.measure="offsetWidth",Oi.scrollSize="scrollWidth",Oi.axis="x"):(Oi.measure="offsetHeight",Oi.scrollSize="scrollHeight",Oi.axis="y")},makeVirtual:function(){Xe.extend(this,{virtual:!0,forcedEnabled:!0,_virtualMin:0,_virtualMax:0})},virtualSize:function(ci,Oi){(this._virtualMin!==ci||this._virtualMax!==Oi)&&(this._virtualMin=ci,this._virtualMax=Oi,this.update())},outOfBounds:function(ci){return ci>this.max||ci<this.min},forceEnabled:function(){this.forcedEnabled=!0},getSize:function(){return this.container[0][this.measure]},getTotal:function(){return this.element[0][this.scrollSize]},rescale:function(ci){this.scale=ci},update:function(ci){var Oi=this,Ai=Oi.virtual?Oi._virtualMax:Oi.getTotal(),Pn=Ai*Oi.scale,qn=Oi.getSize();0===Ai&&!Oi.forcedEnabled||(Oi.max=Oi.virtual?-Oi._virtualMin:0,Oi.size=qn,Oi.total=Pn,Oi.min=Math.min(Oi.max,qn-Pn),Oi.minScale=qn/Ai,Oi.centerOffset=(Pn-qn)/2,Oi.enabled=Oi.forcedEnabled||Pn>qn,ci||Oi.trigger(ft,Oi))}}),On=Co.extend({init:function(ci){var Oi=this;Co.fn.init.call(Oi),Oi.x=new Kt(Vn({horizontal:!0},ci)),Oi.y=new Kt(Vn({horizontal:!1},ci)),Oi.container=ci.container,Oi.forcedMinScale=ci.minScale,Oi.maxScale=ci.maxScale||100,Oi.bind(ft,ci)},rescale:function(ci){this.x.rescale(ci),this.y.rescale(ci),this.refresh()},centerCoordinates:function(){return{x:Math.min(0,-this.x.centerOffset),y:Math.min(0,-this.y.centerOffset)}},refresh:function(){var ci=this;ci.x.update(),ci.y.update(),ci.enabled=ci.x.enabled||ci.y.enabled,ci.minScale=ci.forcedMinScale||Math.min(ci.x.minScale,ci.y.minScale),ci.fitScale=Math.max(ci.x.minScale,ci.y.minScale),ci.trigger(ft)}}),Fi=Co.extend({init:function(ci){Vn(this,ci),Co.fn.init.call(this)},outOfBounds:function(){return this.dimension.outOfBounds(this.movable[this.axis])},dragMove:function(ci){var Oi=this,Ai=Oi.dimension,Pn=Oi.axis,qn=Oi.movable,Ni=qn[Pn]+ci;Ai.enabled&&((Ni<Ai.min&&ci<0||Ni>Ai.max&&ci>0)&&(ci*=Oi.resistance),qn.translateAxis(Pn,ci),Oi.trigger(ft,Oi))}}),Ci=Hn.extend({init:function(ci){var Ai,Pn,qn,Ni,Oi=this;Vn(Oi,{elastic:!0},ci),Oi.x=Ai=new Fi({axis:"x",dimension:Oi.dimensions.x,resistance:qn=Oi.elastic?.5:0,movable:Ni=Oi.movable}),Oi.y=Pn=new Fi({axis:"y",dimension:Oi.dimensions.y,resistance:qn,movable:Ni}),Oi.userEvents.bind(["press","move","end","gesturestart","gesturechange"],{gesturestart:function(Ue){Oi.gesture=Ue,Oi.offset=Oi.dimensions.container.offset()},press:function(Ue){Xe(Ue.event.target).closest("a").is("[data-navigate-on-press=true]")&&Ue.sender.cancel()},gesturechange:function(Ue){var zi,Ye=Oi.gesture,Me=Ye.center,pe=Ue.center,lt=Ue.distance/Ye.distance,on=Oi.dimensions.maxScale;Ni.scale<=Oi.dimensions.minScale&&lt<1&&(lt+=.8*(1-lt)),Ni.scale*lt>=on&&(lt=on/Ni.scale);var Kn=Ni.x+Oi.offset.left,ho=Ni.y+Oi.offset.top;zi={x:(Kn-Me.x)*lt+pe.x-Kn,y:(ho-Me.y)*lt+pe.y-ho},Ni.scaleWith(lt),Ai.dragMove(zi.x),Pn.dragMove(zi.y),Oi.dimensions.rescale(Ni.scale),Oi.gesture=Ue,Ue.preventDefault()},move:function(Ue){Ue.event.target.tagName.match(/textarea|input/i)||(Ai.dimension.enabled||Pn.dimension.enabled?(Ai.dragMove(Ue.x.delta),Pn.dragMove(Ue.y.delta),Ue.preventDefault()):Ue.touch.skip())},end:function(Ue){Ue.preventDefault()}})}}),xi=St.transitions.prefix+"Transform";Wn=St.hasHW3D?function(ci,Oi,Ai){return"translate3d("+ci+"px,"+Oi+"px,0) scale("+Ai+")"}:function(ci,Oi,Ai){return"translate("+ci+"px,"+Oi+"px) scale("+Ai+")"};var Vt=Co.extend({init:function(ci){var Oi=this;Co.fn.init.call(Oi),Oi.element=Xe(ci),Oi.element[0].style.webkitTransformOrigin="left top",Oi.x=0,Oi.y=0,Oi.scale=1,Oi._saveCoordinates(Wn(Oi.x,Oi.y,Oi.scale))},translateAxis:function(ci,Oi){this[ci]+=Oi,this.refresh()},scaleTo:function(ci){this.scale=ci,this.refresh()},scaleWith:function(ci){this.scale*=ci,this.refresh()},translate:function(ci){this.x+=ci.x,this.y+=ci.y,this.refresh()},moveAxis:function(ci,Oi){this[ci]=Oi,this.refresh()},moveTo:function(ci){Vn(this,ci),this.refresh()},refresh:function(){var Pn,ci=this,Oi=ci.x,Ai=ci.y;ci.round&&(Oi=Math.round(Oi),Ai=Math.round(Ai)),(Pn=Wn(Oi,Ai,ci.scale))!=ci.coordinates&&(ze.support.browser.msie&&ze.support.browser.version<10?(ci.element[0].style.position="absolute",ci.element[0].style.left=ci.x+"px",ci.element[0].style.top=ci.y+"px"):ci.element[0].style[xi]=Pn,ci._saveCoordinates(Pn),ci.trigger(ft))},_saveCoordinates:function(ci){this.coordinates=ci}});function qt(ci,Oi){var qn,Ai=Oi.options.group,Pn=ci[Ai];if(Ui.fn.destroy.call(Oi),Pn.length>1){for(qn=0;qn<Pn.length;qn++)if(Pn[qn]==Oi){Pn.splice(qn,1);break}}else Pn.length=0,delete ci[Ai]}var bn=Ui.extend({init:function(ci,Oi){Ui.fn.init.call(this,ci,Oi);var Pn=this.options.group;Pn in ui?ui[Pn].push(this):ui[Pn]=[this]},events:[Be,At,"drop"],options:{name:"DropTarget",group:"default"},destroy:function(){qt(ui,this)},_trigger:function(ci,Oi){var Pn=kn[this.options.group];if(Pn)return this.trigger(ci,Vn({},Oi.event,{draggable:Pn,dropTarget:Oi.dropTarget}))},_over:function(ci){this._trigger(Be,ci)},_out:function(ci){this._trigger(At,ci)},_drop:function(ci){var Ai=kn[this.options.group];Ai&&(Ai.dropped=!this._trigger("drop",ci))}}),ii=(bn.destroyGroup=function(ci){var Ai,Oi=ui[ci]||Ot[ci];if(Oi){for(Ai=0;Ai<Oi.length;Ai++)Ui.fn.destroy.call(Oi[Ai]);Oi.length=0,delete ui[ci],delete Ot[ci]}},bn._cache=ui,bn.extend({init:function(ci,Oi){Ui.fn.init.call(this,ci,Oi);var Pn=this.options.group;Pn in Ot?Ot[Pn].push(this):Ot[Pn]=[this]},destroy:function(){qt(Ot,this)},options:{name:"DropTargetArea",group:"default",filter:null}})),Vi=Ui.extend({init:function(ci,Oi){var Ai=this;Ui.fn.init.call(Ai,ci,Oi),Ai._activated=!1,Ai.userEvents=new Sn(Ai.element,{global:!0,allowSelection:!0,filter:Ai.options.filter,threshold:Ai.options.distance,start:Ai._start.bind(Ai),hold:Ai._hold.bind(Ai),move:Ai._drag.bind(Ai),end:Ai._end.bind(Ai),cancel:Ai._cancel.bind(Ai),select:Ai._select.bind(Ai)}),ze.support.touch&&Ai.element.find(Ai.options.filter).css("touch-action","none"),Ai._afterEndHandler=Ai._afterEnd.bind(Ai),Ai._captureEscape=Ai._captureEscape.bind(Ai)},events:["hold",Nt,"drag",Je,Ve,Ge],options:{name:"Draggable",distance:ze.support.touch?0:5,group:"default",cursorOffset:null,axis:null,container:null,filter:null,ignore:null,holdToDrag:!1,autoScroll:!1,dropped:!1},cancelHold:function(){this._activated=!1},_captureEscape:function(ci){ci.keyCode===ze.keys.ESC&&(this._trigger(Ve,{event:ci}),this.userEvents.cancel())},_updateHint:function(ci){var Ai,Oi=this,qn=Oi.boundaries,Ni=Oi.options.axis,Ue=Oi.options.cursorOffset;Ue?Ai={left:ci.x.location+Ue.left,top:ci.y.location+Ue.top}:(Oi.hintOffset.left+=ci.x.delta,Oi.hintOffset.top+=ci.y.delta,Ai=Xe.extend({},Oi.hintOffset)),qn&&(Ai.top=Xn(Ai.top,qn.y),Ai.left=Xn(Ai.left,qn.x)),"x"===Ni?delete Ai.top:"y"===Ni&&delete Ai.left,Oi.hint.css(Ai)},_shouldIgnoreTarget:function(ci){var Oi=this.options.ignore;return Oi&&Xe(ci).is(Oi)},_select:function(ci){this._shouldIgnoreTarget(ci.event.target)||ci.preventDefault()},_start:function(ci){var Oi=this,Ai=Oi.options,Pn=Ai.container?Xe(Ai.container):null,qn=Ai.hint;if(this._shouldIgnoreTarget(ci.touch.initialTouch)||Ai.holdToDrag&&!Oi._activated)Oi.userEvents.cancel();else{if(Oi.currentTarget=ci.target,Oi.currentTargetOffset=Dn(Oi.currentTarget),qn){Oi.hint&&Oi.hint.stop(!0,!0).remove(),Oi.hint=ze.isFunction(qn)?Xe(qn.call(Oi,Oi.currentTarget)):qn;var Ni=Dn(Oi.currentTarget);Oi.hintOffset=Ni,Oi.hint.css({position:"absolute",zIndex:2e4,left:Ni.left,top:Ni.top}).appendTo(it.body),Oi.angular("compile",function(){Oi.hint.removeAttr("ng-repeat");for(var Ue=Xe(ci.target);!Ue.data("$$kendoScope")&&Ue.length;)Ue=Ue.parent();return{elements:Oi.hint.get(),scopeFrom:Ue.data("$$kendoScope")}})}kn[Ai.group]=Oi,Oi.dropped=!1,Pn&&(Oi.boundaries=Nn(Pn,Oi.hint)),Xe(it).on("keyup",Oi._captureEscape),Oi._trigger(Nt,ci)&&(Oi.userEvents.cancel(),Oi._afterEnd()),Oi.userEvents.capture()}},_hold:function(ci){this.currentTarget=ci.target,this._trigger("hold",ci)?this.userEvents.cancel():this._activated=!0},_drag:function(ci){ci.preventDefault();var Oi=this._elementUnderCursor(ci);if(this.options.autoScroll&&this._cursorElement!==Oi&&(this._scrollableParent=mn(Oi),this._cursorElement=Oi),this._lastEvent=ci,this._processMovement(ci,Oi),this.options.autoScroll&&this._scrollableParent[0]){var Ai=Qn(ci.x.location,ci.y.location,Jn(this._scrollableParent));this._scrollCompenstation=Xe.extend({},this.hintOffset),this._scrollVelocity=Ai,0===Ai.y&&0===Ai.x?(clearInterval(this._scrollInterval),this._scrollInterval=null):this._scrollInterval||(this._scrollInterval=setInterval(this._autoScroll.bind(this),50))}this.hint&&this._updateHint(ci)},_processMovement:function(ci,Oi){this._withDropTarget(Oi,function(Ai,Pn){if(Ai){if(en){if(Pn===en.targetElement)return;en._trigger(At,Vn(ci,{dropTarget:Xe(en.targetElement)}))}Ai._trigger(Be,Vn(ci,{dropTarget:Xe(Pn)})),en=Vn(Ai,{targetElement:Pn})}else en&&(en._trigger(At,Vn(ci,{dropTarget:Xe(en.targetElement)})),en=null)}),this._trigger("drag",Vn(ci,{dropTarget:en,elementUnderCursor:Oi}))},_autoScroll:function(){var ci=this._scrollableParent[0],Oi=this._scrollVelocity,Ai=this._scrollCompenstation;if(ci){var Pn=this._elementUnderCursor(this._lastEvent);this._processMovement(this._lastEvent,Pn);var qn,Ni,Ue=ci===zt()[0];Ue?(qn=it.body.scrollHeight>Dt.height(),Ni=it.body.scrollWidth>Dt.width()):(qn=ci.offsetHeight<=ci.scrollHeight,Ni=ci.offsetWidth<=ci.scrollWidth);var Ye=ci.scrollTop+Oi.y,Me=qn&&Ye>0&&Ye<ci.scrollHeight,pe=ci.scrollLeft+Oi.x,lt=Ni&&pe>0&&pe<ci.scrollWidth;Me?ci.scrollTop+=Oi.y:qn&&Ye<0&&(ci.scrollTop=0),lt?ci.scrollLeft+=Oi.x:Ni&&pe<0&&(ci.scrollLeft=0),this.hint&&Ue&&(lt||Me)&&(Me&&(Ai.top+=Oi.y),lt&&(Ai.left+=Oi.x),this.hint.css(Ai))}},_end:function(ci){this._withDropTarget(this._elementUnderCursor(ci),function(Oi,Ai){Oi&&(Oi._drop(Vn({},ci,{dropTarget:Xe(Ai)})),en=null)}),clearInterval(this._scrollInterval),this._scrollInterval=null,this._cancel(this._trigger(Je,ci))},_cancel:function(ci){var Oi=this;Oi._scrollableParent=null,this._cursorElement=null,clearInterval(this._scrollInterval),Oi._activated=!1,Oi.hint&&!Oi.dropped?setTimeout(function(){Oi.hint.stop(!0,!0),ci?Oi._afterEndHandler():Oi.hint.animate(Oi.currentTargetOffset,"fast",Oi._afterEndHandler)},0):Oi._afterEnd()},_trigger:function(ci,Oi){return this.trigger(ci,Vn({},Oi.event,{x:Oi.x,y:Oi.y,currentTarget:this.currentTarget,initialTarget:Oi.touch?Oi.touch.initialTouch:null,dropTarget:Oi.dropTarget,elementUnderCursor:Oi.elementUnderCursor}))},_elementUnderCursor:function(ci){var Oi=cn(ci),Ai=this.hint;return Ai&&function Pt(ci,Oi){try{return Xe.contains(ci,Oi)||ci==Oi}catch{return!1}}(Ai[0],Oi)&&(Ai.hide(),(Oi=cn(ci))||(Oi=cn(ci)),Ai.show()),Oi},_withDropTarget:function(ci,Oi){var Ai,Pn=this.options.group,qn=ui[Pn],Ni=Ot[Pn];(qn&&qn.length||Ni&&Ni.length)&&(Ai=function Ae(ci,Oi,Ai){for(var Pn,qn,Ni=0,Ue=Oi&&Oi.length,Ye=Ai&&Ai.length;ci&&ci.parentNode;){for(Ni=0;Ni<Ue;Ni++)if((Pn=Oi[Ni]).element[0]===ci)return{target:Pn,targetElement:ci};for(Ni=0;Ni<Ye;Ni++)if(Xe.contains((qn=Ai[Ni]).element[0],ci)&&St.matchesSelector.call(ci,qn.options.filter))return{target:qn,targetElement:ci};ci=ci.parentNode}}(ci,qn,Ni),Ai?Oi(Ai.target,Ai.targetElement):Oi())},destroy:function(){Ui.fn.destroy.call(this),this._afterEnd(),this.userEvents.destroy(),this._scrollableParent=null,this._cursorElement=null,clearInterval(this._scrollInterval),this.currentTarget=null},_afterEnd:function(){var ci=this;ci.hint&&ci.hint.remove(),delete kn[ci.options.group],ci.trigger("destroy"),ci.trigger(Ge),Xe(it).off("keyup",ci._captureEscape)}});function Jn(ci){var Ai,Pn,qn,Oi=zt()[0];return ci[0]===Oi?{top:Pn=Oi.scrollTop,left:qn=Oi.scrollLeft,bottom:Pn+Dt.height(),right:qn+Dt.width()}:((Ai=ci.offset()).bottom=Ai.top+ci.height(),Ai.right=Ai.left+ci.width(),Ai)}function zt(){return Xe(ze.support.browser.edge||ze.support.browser.safari?it.body:it.documentElement)}function mn(ci){var Oi=zt();if(!ci||ci===it.body||ci===it.documentElement)return Oi;for(var Ai=Xe(ci)[0];Ai&&!ze.isScrollable(Ai)&&Ai!==it.body;)Ai=Ai.parentNode;return Ai===it.body?Oi:Xe(Ai)}function Qn(ci,Oi,Ai){var Pn={x:0,y:0};return ci-Ai.left<50?Pn.x=-(50-(ci-Ai.left)):Ai.right-ci<50&&(Pn.x=50-(Ai.right-ci)),Oi-Ai.top<50?Pn.y=-(50-(Oi-Ai.top)):Ai.bottom-Oi<50&&(Pn.y=50-(Ai.bottom-Oi)),Pn}return ze.ui.plugin(bn),ze.ui.plugin(ii),ze.ui.plugin(Vi),ze.TapCapture=He,ze.containerBoundaries=Nn,Vn(ze.ui,{Pane:Ci,PaneDimensions:On,Movable:Vt}),ze.ui.Draggable.utils={autoScrollVelocity:Qn,scrollableViewPort:Jn,findScrollableParent:mn},window.kendo}.apply(M={},ur=[e,k]))&&(g=M),void 0===(p=function(){var Xe=window.kendo.jQuery,ze=window.kendo,it=ze.effects,Dt=ze.mobile.ui,Hn=Xe.extend,Ui=Dt.Widget,Co=ze.Class,Sn=ze.ui.Movable,Vn=ze.ui.Pane,Dn=ze.ui.PaneDimensions,kn=it.Transition,ui=it.Animation,Ot=Math.abs,Je="km-scroller-release",Ve="km-scroller-refresh",Be="change",$t=ui.extend({init:function(Kt){var On=this;ui.fn.init.call(On),Hn(On,Kt),On.userEvents.bind("gestureend",On.start.bind(On)),On.tapCapture.bind("press",On.cancel.bind(On))},enabled:function(){return this.movable.scale<this.dimensions.minScale},done:function(){return this.dimensions.minScale-this.movable.scale<.01},tick:function(){var Kt=this.movable;Kt.scaleWith(1.1),this.dimensions.rescale(Kt.scale)},onEnd:function(){var Kt=this.movable;Kt.scaleTo(this.dimensions.minScale),this.dimensions.rescale(Kt.scale)}}),Xn=ui.extend({init:function(Kt){var On=this;ui.fn.init.call(On),Hn(On,Kt,{transition:new kn({axis:Kt.axis,movable:Kt.movable,onEnd:function(){On._end()}})}),On.tapCapture.bind("press",function(){On.cancel()}),On.userEvents.bind("end",On.start.bind(On)),On.userEvents.bind("gestureend",On.start.bind(On)),On.userEvents.bind("tap",On.onEnd.bind(On))},onCancel:function(){this.transition.cancel()},freeze:function(Kt){this.cancel(),this._moveTo(Kt)},onEnd:function(){this.paneAxis.outOfBounds()?this._snapBack():this._end()},done:function(){return Ot(this.velocity)<1},start:function(Kt){var On=this;On.dimension.enabled&&(On.paneAxis.outOfBounds()?On.transition._started?(On.transition.cancel(),On.velocity=Math.min(Kt.touch[On.axis].velocity*On.velocityMultiplier,55),ui.fn.start.call(On)):On._snapBack():(On.velocity=Math.max(Math.min((2===Kt.touch.id?0:Kt.touch[On.axis].velocity)*On.velocityMultiplier,55),-55),On.tapCapture.captureNext(),ui.fn.start.call(On)))},tick:function(){var Kt=this,On=Kt.dimension,Fi=Kt.paneAxis.outOfBounds()?.5:Kt.friction,Ci=Kt.velocity*=Fi,xi=Kt.movable[Kt.axis]+Ci;!Kt.elastic&&On.outOfBounds(xi)&&(xi=Math.max(Math.min(xi,On.max),On.min),Kt.velocity=0),Kt.movable.moveAxis(Kt.axis,xi)},_end:function(){this.tapCapture.cancelCapture(),this.end()},_snapBack:function(){var On=this.dimension;this._moveTo(this.movable[this.axis]>On.max?On.max:On.min)},_moveTo:function(Kt){this.transition.moveTo({location:Kt,duration:500,ease:kn.easeOutExpo})}}),Nn=ui.extend({init:function(Kt){ze.effects.Animation.fn.init.call(this),Hn(this,Kt,{origin:{},destination:{},offset:{}})},tick:function(){this._updateCoordinates(),this.moveTo(this.origin)},done:function(){return Ot(this.offset.y)<5&&Ot(this.offset.x)<5},onEnd:function(){this.moveTo(this.destination),this.callback&&this.callback.call()},setCoordinates:function(Kt,On){this.offset={},this.origin=Kt,this.destination=On},setCallback:function(Kt){Kt&&ze.isFunction(Kt)?this.callback=Kt:Kt=void 0},_updateCoordinates:function(){this.offset={x:(this.destination.x-this.origin.x)/4,y:(this.destination.y-this.origin.y)/4},this.origin={y:this.origin.y+this.offset.y,x:this.origin.x+this.offset.x}}}),Ae=Co.extend({init:function(Kt){var On=this,Fi="x"===Kt.axis,Ci=Xe('<div role="scrollbar" aria-controls="'+Kt.controlsId+'" class="km-touch-scrollbar km-'+(Fi?"horizontal":"vertical")+'-scrollbar" />');Fi&&Ci.attr("aria-orientation","horizontal"),Hn(On,Kt,{element:Ci,elementSize:0,movable:new Sn(Ci),scrollMovable:Kt.movable,alwaysVisible:Kt.alwaysVisible,size:Fi?"width":"height"}),On.scrollMovable.bind(Be,On.refresh.bind(On)),On.container.append(Ci),Kt.alwaysVisible&&On.show()},refresh:function(){var Kt=this,On=Kt.axis,Fi=Kt.dimension,Ci=Fi.size,Wn=Ci/Fi.total,Vt=Math.round(-Kt.scrollMovable[On]*Wn),qt=Math.round(Ci*Wn);this.element.css("display",Wn>=1?"none":""),Vt+qt>Ci?qt=Ci-Vt:Vt<0&&(qt+=Vt,Vt=0),Kt.elementSize!=qt&&(Kt.element.css(Kt.size,qt+"px"),Kt.elementSize=qt),Kt._ariaValue(Vt,Fi.size-Kt.elementSize),Kt.movable.moveAxis(On,Vt)},show:function(){this.element.css({opacity:.7,visibility:"visible"})},hide:function(){this.alwaysVisible||this.element.css({opacity:0})},_ariaValue:function(Kt,On){var Fi=this.element;Kt>On&&(Kt=On),Fi.attr("aria-valuemax",On),Fi.attr("aria-valuenow",Kt)}}),He=Ui.extend({init:function(Kt,On){var Fi=this;if(Ui.fn.init.call(Fi,Kt,On),Kt=Fi.element,Fi._native=Fi.options.useNative&&ze.support.hasNativeScrolling,Fi._native)return Kt.addClass("km-native-scroller").prepend('<div class="km-scroll-header"/>'),void Hn(Fi,{scrollElement:Kt,fixedContainer:Kt.children().first()});Kt.css("overflow","hidden").addClass("km-scroll-wrapper").wrapInner('<div class="km-scroll-container"/>').prepend('<div class="km-scroll-header"/>');var Ci=Kt.children().eq(1),xi=new ze.TapCapture(Kt),Wn=new Sn(Ci),Vt=new Dn({element:Ci,container:Kt,forcedEnabled:Fi.options.zoom}),qt=this.options.avoidScrolling,bn=new ze.UserEvents(Kt,{touchAction:"pan-y",fastTap:!0,allowSelection:!0,preventDragEvent:!0,captureUpIfMoved:!0,multiTouch:Fi.options.zoom,supportDoubleTap:Fi.options.supportDoubleTap,start:function(zt){Vt.refresh();var mn=Ot(zt.x.velocity),Qn=Ot(zt.y.velocity),ci=2*mn>=Qn,Ai=2*Qn>=mn;!Xe.contains(Fi.fixedContainer[0],zt.event.target)&&!qt(zt)&&Fi.enabled&&(Vt.x.enabled&&ci||Vt.y.enabled&&Ai)?bn.capture():bn.cancel()}}),ii=new Vn({movable:Wn,dimensions:Vt,userEvents:bn,elastic:Fi.options.elastic}),Vi=new $t({movable:Wn,dimensions:Vt,userEvents:bn,tapCapture:xi}),Jn=new Nn({moveTo:function(zt){Fi.scrollTo(zt.x,zt.y)}});Wn.bind(Be,function(){Fi.scrollTop=-Wn.y,Fi.scrollLeft=-Wn.x,Fi.trigger("scroll",{scrollTop:Fi.scrollTop,scrollLeft:Fi.scrollLeft})}),Fi.options.mousewheelScrolling&&Kt.on("DOMMouseScroll mousewheel",this._wheelScroll.bind(this)),Hn(Fi,{movable:Wn,dimensions:Vt,zoomSnapBack:Vi,animatedScroller:Jn,userEvents:bn,pane:ii,tapCapture:xi,pulled:!1,enabled:!0,scrollElement:Ci,scrollTop:0,scrollLeft:0,fixedContainer:Kt.children().first()}),Fi._initAxis("x"),Fi._initAxis("y"),Fi._wheelEnd=function(){Fi._wheel=!1,Fi.userEvents.end(0,Fi._wheelY)},Vt.refresh(),Fi.options.pullToRefresh&&Fi._initPullToRefresh()},_wheelScroll:function(Kt){if(!Kt.ctrlKey){this._wheel||(this._wheel=!0,this._wheelY=0,this.userEvents.press(0,this._wheelY)),clearTimeout(this._wheelTimeout),this._wheelTimeout=setTimeout(this._wheelEnd,50);var On=ze.wheelDeltaY(Kt);On&&(this._wheelY+=On,this.userEvents.move(0,this._wheelY)),Kt.preventDefault()}},makeVirtual:function(){this.dimensions.y.makeVirtual()},virtualSize:function(Kt,On){this.dimensions.y.virtualSize(Kt,On)},height:function(){return this.dimensions.y.size},scrollHeight:function(){return this.scrollElement[0].scrollHeight},scrollWidth:function(){return this.scrollElement[0].scrollWidth},options:{name:"Scroller",zoom:!1,pullOffset:140,visibleScrollHints:!1,elastic:!0,useNative:!1,mousewheelScrolling:!0,avoidScrolling:function(){return!1},pullToRefresh:!1,messages:{pullTemplate:"Pull to refresh",releaseTemplate:"Release to refresh",refreshTemplate:"Refreshing"}},events:["pull","scroll","resize"],_resize:function(){this._native||this.contentResized()},setOptions:function(Kt){Ui.fn.setOptions.call(this,Kt),Kt.pullToRefresh&&this._initPullToRefresh()},reset:function(){this._native?this.scrollElement.scrollTop(0):(this.movable.moveTo({x:0,y:0}),this._scale(1))},contentResized:function(){this.dimensions.refresh(),this.pane.x.outOfBounds()&&this.movable.moveAxis("x",this.dimensions.x.min),this.pane.y.outOfBounds()&&this.movable.moveAxis("y",this.dimensions.y.min)},zoomOut:function(){var Kt=this.dimensions;Kt.refresh(),this._scale(Kt.fitScale),this.movable.moveTo(Kt.centerCoordinates())},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},scrollTo:function(Kt,On){this._native?(ze.scrollLeft(this.scrollElement,Ot(Kt)),this.scrollElement.scrollTop(Ot(On))):(this.dimensions.refresh(),this.movable.moveTo({x:Kt,y:On}))},animatedScrollTo:function(Kt,On,Fi){this._native?this.scrollTo(Kt,On):(this.animatedScroller.setCoordinates({x:this.movable.x,y:this.movable.y},{x:Kt,y:On}),this.animatedScroller.setCallback(Fi),this.animatedScroller.start())},pullHandled:function(){var Kt=this;Kt.refreshHint.removeClass(Ve),Kt.hintContainer.html(Kt.pullTemplate({})),Kt.yinertia.onEnd(),Kt.xinertia.onEnd(),Kt.userEvents.cancel()},destroy:function(){Ui.fn.destroy.call(this),this.userEvents&&this.userEvents.destroy()},_scale:function(Kt){this.dimensions.rescale(Kt),this.movable.scaleTo(Kt)},_initPullToRefresh:function(){var Kt=this;Kt.dimensions.y.forceEnabled(),Kt.pullTemplate=ze.template(Kt.options.messages.pullTemplate),Kt.releaseTemplate=ze.template(Kt.options.messages.releaseTemplate),Kt.refreshTemplate=ze.template(Kt.options.messages.refreshTemplate),Kt.scrollElement.prepend('<span class="km-scroller-pull"><span class="km-icon"></span><span class="km-loading-left"></span><span class="km-loading-right"></span><span class="km-template">'+Kt.pullTemplate({})+"</span></span>"),Kt.refreshHint=Kt.scrollElement.children().first(),Kt.hintContainer=Kt.refreshHint.children(".km-template"),Kt.pane.y.bind("change",Kt._paneChange.bind(Kt)),Kt.userEvents.bind("end",Kt._dragEnd.bind(Kt))},_dragEnd:function(){var Kt=this;Kt.pulled&&(Kt.pulled=!1,Kt.refreshHint.removeClass(Je).addClass(Ve),Kt.hintContainer.html(Kt.refreshTemplate({})),Kt.yinertia.freeze(Kt.options.pullOffset/2),Kt.trigger("pull"))},_paneChange:function(){var Kt=this;Kt.movable.y/.5>Kt.options.pullOffset?Kt.pulled||(Kt.pulled=!0,Kt.refreshHint.removeClass(Ve).addClass(Je),Kt.hintContainer.html(Kt.releaseTemplate({}))):Kt.pulled&&(Kt.pulled=!1,Kt.refreshHint.removeClass(Je),Kt.hintContainer.html(Kt.pullTemplate({})))},_initAxis:function(Kt){var qt,On=this,Fi=On.element.attr("id"),Ci=On.movable,xi=On.dimensions[Kt],Wn=On.tapCapture,Vt=On.pane[Kt];Fi||(Fi=ze.guid(),On.element.attr("id",Fi)),qt=new Ae({axis:Kt,movable:Ci,dimension:xi,container:On.element,alwaysVisible:On.options.visibleScrollHints,controlsId:Fi}),xi.bind(Be,function(){qt.refresh()}),Vt.bind(Be,function(){qt.show()}),On[Kt+"inertia"]=new Xn({axis:Kt,paneAxis:Vt,movable:Ci,tapCapture:Wn,userEvents:On.userEvents,dimension:xi,elastic:On.options.elastic,friction:On.options.friction||.96,velocityMultiplier:On.options.velocityMultiplier||10,end:function(){qt.hide(),On.trigger("scrollEnd",{axis:Kt,scrollTop:On.scrollTop,scrollLeft:On.scrollLeft})}})}});return Dt.plugin(He),window.kendo}.apply(E={},ur=[x,g]))&&(p=E),void 0===(b=function(){var Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,St=ze.ui,it=St.Widget,Hn=/^\d+(\.\d+)?%$/i,Vn="k-list-item",Dn="k-table-row",ui="k-list-item-group-label",cn="k-selected",Ht="k-focus",ft="k-hover",Nt="change",an="click",$e="listBound",Je="itemChange",Ve="activate",Ge="deactivate",Be=".k-table-group-row",At=".VirtualList";function Rt(Jn){return Jn[Jn.length-1]}function Pt(Jn){return Jn instanceof Array?Jn:[Jn]}function $t(Jn){return"string"==typeof Jn||"number"==typeof Jn||"boolean"==typeof Jn}function Nn(Jn,zt,mn){var Qn=document.createElement(mn||"div");return zt&&(Qn.className=zt),Jn.appendChild(Qn),Qn}function Vt(Jn,zt,mn){var Qn=mn.template,ci=this.options.columns&&this.options.columns.length,Oi=zt.index%2==1?"k-table-alt-row":"";Jn=Xe(Jn),zt.item||(Qn=mn.placeholderTemplate),0===zt.index&&this.header&&zt.group&&this.header.html(mn.fixedGroupTemplate(zt.group)),this.angular("cleanup",function(){return{elements:[Jn]}}),Jn.attr("data-uid",zt.item?zt.item.uid:"").attr("data-offset-index",zt.index),ci&&zt.item?(Oi.length>0?Jn.addClass(Oi):Jn.removeClass("k-table-alt-row"),Jn.html(function qt(Jn,zt,mn){for(var Qn="",ci=0;ci<Jn.columns.length;ci++){var Oi=Jn.columns[ci].width,Ai=parseInt(Oi,10),Pn="";Oi&&(Pn+="style='width:",Pn+=Ai,Pn+=Hn.test(Oi)?"%":"px",Pn+=";'"),Qn+="<span class='k-table-td' "+Pn+">",Qn+=mn["column"+ci](zt),Qn+="</span>"}return Qn}(this.options,zt.item,mn))):(Jn.find("."+ui).remove(),Jn.find(".k-list-item-text").html(Qn(zt.item||{}))),Jn.toggleClass(Ht,zt.current),Jn.toggleClass(cn,zt.selected),Jn.toggleClass("k-first",zt.newGroup),Jn.toggleClass("k-last",zt.isLastGroupedItem),Jn.toggleClass("k-loading-item",!zt.item),0!==zt.index&&zt.newGroup?ci?Xe('<span class="k-table-td k-table-group-td"><span>'+mn.groupTemplate(zt.group)+"</span></span>").appendTo(Jn):Xe("<div class="+ui+"></div>").appendTo(Jn).html(mn.groupTemplate(zt.group)):zt.group&&ci&&Jn.append(Xe('<span class="k-table-td k-table-spacer-td"></span>')),zt.top!==Ke&&function Ci(Jn,zt){Jn.style.webkitTransform="translateY("+zt+"px)",Jn.style.transform="translateY("+zt+"px)"}(Jn[0],zt.top),this.angular("compile",function(){return{elements:[Jn],data:[{dataItem:zt.item,group:zt.group,newGroup:zt.newGroup}]}})}function ii(Jn){return Jn&&"resolved"!==Jn.state()}var Vi=St.DataBoundWidget.extend({init:function(Jn,zt){var mn=this,Qn=zt.columns&&zt.columns.length?"k-table-body k-table-scroller":"k-list-content k-virtual-content";if(mn.bound(!1),mn._fetching=!1,it.fn.init.call(mn,Jn,zt),mn.options.itemHeight||(mn.options.itemHeight=function Ae(Jn){var mn,zt=Xe('<div class="k-list '+Jn+' k-virtual-list"><div class="k-list-content k-virtual-content"><ul class="k-list-ul"><li class="k-list-item"><span class="k-list-item-text">test</span></li></ul></div></div>');return zt.css({position:"absolute",left:"-200000px",visibility:"hidden"}),zt.appendTo(document.body),mn=parseFloat(ze.getComputedStyles(zt.find(".k-list-item")[0],["height"]).height),zt.remove(),mn}(zt.listSize)),zt=mn.options,mn.element.attr("role","listbox"),mn.content=mn.wrapper=mn.element.wrap("<div unselectable='on' class='"+Qn+"'></div>").parent(),mn.options.columns&&mn.options.columns.length){var ci=mn.element.closest(".k-data-table").find(".k-table-thead"),Oi=Xe('<tr class="k-table-group-row"><th class="k-table-th" colspan="'+mn.options.columns.length+'"></th></tr>');ci.append(Oi),mn.header=Oi.find(".k-table-th"),mn.element.addClass("k-table-list k-virtual-table")}else mn.header=mn.content.before("<div class='k-list-group-sticky-header'></div>").prev(),mn.element.addClass("k-list-ul");zt.ariaLabel?this.element.attr("aria-label",zt.ariaLabel):zt.ariaLabelledBy&&this.element.attr("aria-labelledby",zt.ariaLabelledBy),mn.element.on("mouseenter"+At,"li:not(.k-loading-item)",function(){Xe(this).addClass(ft)}).on("mouseleave"+At,"li",function(){Xe(this).removeClass(ft)}),mn._values=Pt(mn.options.value),mn._selectedDataItems=[],mn._selectedIndexes=[],mn._rangesList={},mn._promisesList=[],mn._optionID=ze.guid(),mn._templates(),mn.setDataSource(zt.dataSource),mn.content.on("scroll"+At,ze.throttle(function(){mn._renderItems(),mn._triggerListBound()},zt.delay)),mn._selectable()},options:{name:"VirtualList",autoBind:!0,delay:100,height:null,listScreens:4,threshold:.5,itemHeight:null,oppositeBuffer:1,type:"flat",selectable:!1,value:[],dataValueField:null,template:"#:data#",placeholderTemplate:"loading...",groupTemplate:"#:data#",fixedGroupTemplate:"#:data#",mapValueTo:"index",valueMapper:null,ariaLabel:null,ariaLabelledBy:null},events:[Nt,an,$e,Je,Ve,Ge],setOptions:function(Jn){var zt=this.options.columns&&this.options.columns.length?Dn:Vn;it.fn.setOptions.call(this,Jn),this._selectProxy&&!1===this.options.selectable?this.element.off(an,"."+zt,this._selectProxy):!this._selectProxy&&this.options.selectable&&this._selectable(),this._templates(),this.refresh()},items:function(){return Xe(this._items)},destroy:function(){this.wrapper.off(At),this.dataSource.unbind(Nt,this._refreshHandler),it.fn.destroy.call(this)},setDataSource:function(Jn){var Qn,zt=this,mn=Jn||{};mn=Array.isArray(mn)?{data:mn}:mn,mn=ze.data.DataSource.create(mn),zt.dataSource?(zt.dataSource.unbind(Nt,zt._refreshHandler),zt._clean(),zt.bound(!1),zt._deferValueSet=!0,Qn=zt.value(),zt.value([]),zt.mute(function(){zt.value(Qn)})):zt._refreshHandler=zt.refresh.bind(zt),zt.dataSource=mn.bind(Nt,zt._refreshHandler),zt.setDSFilter(mn.filter()),0!==mn.view().length?zt.refresh():zt.options.autoBind&&mn.fetch()},skip:function(){return this.dataSource.currentRangeStart()},_triggerListBound:function(){var Jn=this,zt=Jn.skip();Jn.bound()&&!Jn._selectingValue&&Jn._skip!==zt&&(Jn._skip=zt,Jn.trigger($e))},_getValues:function(Jn){var zt=this._valueGetter;return Xe.map(Jn,function(mn){return zt(mn)})},_highlightSelectedItems:function(){for(var Jn=0;Jn<this._selectedDataItems.length;Jn++){var zt=this._getElementByDataItem(this._selectedDataItems[Jn]);zt.length&&zt.addClass(cn)}},refresh:function(Jn){var Oi,zt=this,mn=Jn&&Jn.action,Qn="itemchange"===mn,ci=this.isFiltered();zt._mute||(zt._deferValueSet=!1,zt._fetching?(zt._renderItems&&zt._renderItems(!0),zt._triggerListBound()):(ci&&zt.focus(0),zt._createList(),mn||!zt._values.length||ci||zt.options.skipUpdateOnBind||zt._emptySearch?(zt.bound(!0),zt._highlightSelectedItems(),zt._triggerListBound()):(zt._selectingValue=!0,zt.bound(!0),zt.value(zt._values,!0).done(function(){zt._selectingValue=!1,zt._triggerListBound()}))),(Qn||"remove"===mn)&&(Oi=function bn(Jn,zt){var ci,Oi,Ai,Pn,mn=zt.length,Qn=Jn.length,qn=[],Ni=[];if(Qn)for(Ai=0;Ai<Qn;Ai++){for(ci=Jn[Ai],Oi=!1,Pn=0;Pn<mn;Pn++)if(ci===zt[Pn]){Oi=!0,qn.push({index:Ai,item:ci});break}Oi||Ni.push(ci)}return{changed:qn,unchanged:Ni}}(zt._selectedDataItems,Jn.items),Oi.changed.length&&(Qn?zt.trigger("selectedItemChange",{items:Oi.changed}):zt.value(zt._getValues(Oi.unchanged)))),zt._fetching=!1)},removeAt:function(Jn){var zt=this._values.splice(Jn,1)[0];return{position:Jn,dataItem:this._removeSelectedDataItem(zt)}},_removeSelectedDataItem:function(Jn){var zt=this,mn=zt._valueGetter;for(var Qn in zt._selectedDataItems)if(mn(zt._selectedDataItems[Qn])===Jn)return zt._selectedIndexes.splice(Qn,1),zt._selectedDataItems.splice(Qn,1)[0]},setValue:function(Jn){this._values=Pt(Jn)},value:function(Jn,zt){var mn=this;return Jn===Ke?mn._values.slice():(null===Jn&&(Jn=[]),Jn=Pt(Jn),(!mn._valueDeferred||"resolved"===mn._valueDeferred.state())&&(mn._valueDeferred=Xe.Deferred()),("multiple"===mn.options.selectable&&mn.select().length&&Jn.length||!Jn.length)&&mn.select(-1),mn._values=Jn,(mn.bound()&&!mn._mute&&!mn._deferValueSet||zt)&&mn._prefetchByValue(Jn),mn._valueDeferred)},_checkValuesOrder:function(Jn){if(this._removedAddedIndexes&&this._removedAddedIndexes.length===Jn.length){var zt=this._removedAddedIndexes.slice();return this._removedAddedIndexes=null,zt}return Jn},_prefetchByValue:function(Jn){for(var Oi,zt=this,mn=zt._dataView,Qn=zt._valueGetter,ci=zt.options.mapValueTo,Pn=[],qn=0;qn<Jn.length;qn++)for(var Ni=0;Ni<mn.length;Ni++)(Oi=mn[Ni].item)&&($t(Oi)?Jn[qn]===Oi:Jn[qn]===Qn(Oi))&&Pn.push(mn[Ni].index);if(Pn.length===Jn.length)return zt._values=[],void zt.select(Pn);"function"==typeof zt.options.valueMapper?zt.options.valueMapper({value:"multiple"===this.options.selectable?Jn:Jn[0],success:function(Ue){"index"===ci?zt.mapValueToIndex(Ue):"dataItem"===ci&&zt.mapValueToDataItem(Ue)}}):zt.value()[0]?(zt._selectingValue=!1,zt._triggerListBound()):zt.select([-1])},mapValueToIndex:function(Jn){if((Jn=Jn===Ke||-1===Jn||null===Jn?[]:Pt(Jn)).length){var zt=this._deselect([]).removed;zt.length&&this._triggerChange(zt,[])}else Jn=[-1];this.select(Jn)},mapValueToDataItem:function(Jn){var zt,mn;if((Jn=Jn===Ke||null===Jn?[]:Pt(Jn)).length){zt=Xe.map(this._selectedDataItems,function(Oi,Ai){return{index:Ai,dataItem:Oi}}),mn=Xe.map(Jn,function(Oi,Ai){return{index:Ai,dataItem:Oi}}),this._selectedDataItems=Jn,this._selectedIndexes=[];for(var Qn=0;Qn<this._selectedDataItems.length;Qn++){var ci=this._getElementByDataItem(this._selectedDataItems[Qn]);this._selectedIndexes.push(this._getIndecies(ci)[0]),ci.addClass(cn)}this._triggerChange(zt,mn),this._valueDeferred&&this._valueDeferred.resolve()}else this.select([-1])},deferredRange:function(Jn){var zt=this.dataSource,mn=this.itemCount,Qn=this._rangesList,ci=Xe.Deferred(),Oi=[],Ai=Math.floor(Jn/mn)*mn,Pn=Math.ceil(Jn/mn)*mn;return Xe.each(Pn===Ai?[Pn]:[Ai,Pn],function(Ni,Ue){var pe,Ye=Ue+mn,Me=Qn[Ue];Me&&Me.end===Ye?pe=Me.deferred:(pe=Xe.Deferred(),Qn[Ue]={end:Ye,deferred:pe},zt._multiplePrefetch(Ue,mn,function(){pe.resolve()})),Oi.push(pe)}),Xe.when.apply(Xe,Oi).then(function(){ci.resolve()}),ci},prefetch:function(Jn){var zt=this,mn=this.itemCount,Qn=!zt._promisesList.length;return ii(zt._activeDeferred)||(zt._activeDeferred=Xe.Deferred(),zt._promisesList=[]),Xe.each(Jn,function(ci,Oi){zt._promisesList.push(zt.deferredRange(zt._getSkip(Oi,mn)))}),Qn&&Xe.when.apply(Xe,zt._promisesList).done(function(){zt._promisesList=[],zt._activeDeferred.resolve()}),zt._activeDeferred},_findDataItem:function(Jn,zt){var mn;if("group"===this.options.type)for(var Qn=0;Qn<Jn.length;Qn++){if(!((mn=Jn[Qn].items).length<=zt))return mn[zt];zt-=mn.length}return Jn[zt]},_getRange:function(Jn,zt){return this.dataSource._findRange(Jn,Math.min(Jn+zt,this.dataSource.total()))},dataItemByIndex:function(Jn){var zt=this,mn=zt.itemCount,Qn=zt._getSkip(Jn,mn),ci=this._getRange(Qn,mn);return zt._getRange(Qn,mn).length?("group"===zt.options.type&&(ze.ui.progress(Xe(zt.wrapper),!0),zt.mute(function(){zt.dataSource.range(Qn,mn,function(){ze.ui.progress(Xe(zt.wrapper),!1)}),ci=zt.dataSource.view()})),zt._findDataItem(ci,[Jn-Qn])):null},selectedDataItems:function(){return this._selectedDataItems.slice()},scrollWith:function(Jn){this.content.scrollTop(this.content.scrollTop()+Jn)},scrollTo:function(Jn){this.content.scrollTop(Jn)},scrollToIndex:function(Jn){this.scrollTo(Jn*this.options.itemHeight)},focus:function(Jn){var zt,mn,Qn,ci,Oi=this.options.itemHeight,Ai=this._optionID,Pn=!0;if(Jn===Ke)return(ci=this.element.find("."+Ht)).length?ci:null;if("function"==typeof Jn){Qn=this.dataSource.flatView();for(var qn=0;qn<Qn.length;qn++)if(Jn(Qn[qn])){Jn=qn;break}}if(Jn instanceof Array&&(Jn=Rt(Jn)),isNaN(Jn)?(zt=Xe(Jn),mn=parseInt(Xe(zt).attr("data-offset-index"),10)):zt=this._getElementByIndex(mn=Jn),-1===mn)return this.element.find("."+Ht).removeClass(Ht),void(this._focusedIndex=Ke);if(zt.length){zt.hasClass(Ht)&&(Pn=!1),this._focusedIndex!==Ke&&((ci=this._getElementByIndex(this._focusedIndex)).removeClass(Ht).removeAttr("id"),Pn&&this.trigger(Ge)),this._focusedIndex=mn,zt.addClass(Ht).attr("id",Ai);var Ni=this._getElementLocation(mn);"top"===Ni?this.scrollTo(mn*Oi):"bottom"===Ni?this.scrollTo(mn*Oi+Oi-this._screenHeight):"outScreen"===Ni&&this.scrollTo(mn*Oi),Pn&&this.trigger(Ve)}else this._focusedIndex=mn,this.items().removeClass(Ht),this.scrollToIndex(mn)},focusIndex:function(){return this._focusedIndex},focusFirst:function(){this.scrollTo(0),this.focus(0)},focusLast:function(){var Jn=this.dataSource.total();this.scrollTo(this.heightContainer.offsetHeight),this.focus(Jn-1)},focusPrev:function(){var zt,Jn=this._focusedIndex;return!isNaN(Jn)&&Jn>0?(this.focus(Jn-=1),(zt=this.focus())&&zt.hasClass("k-loading-item")&&this.focus(Jn+=1),Jn):(Jn=this.dataSource.total()-1,this.focus(Jn),Jn)},focusNext:function(){var mn,Jn=this._focusedIndex,zt=this.dataSource.total()-1;return!isNaN(Jn)&&Jn<zt?(this.focus(Jn+=1),(mn=this.focus())&&mn.hasClass("k-loading-item")&&this.focus(Jn-=1),Jn):(this.focus(Jn=0),Jn)},_triggerChange:function(Jn,zt){zt=zt||[],((Jn=Jn||[]).length||zt.length)&&this.trigger(Nt,{removed:Jn,added:zt})},select:function(Jn){var mn,Qn,Pn,qn,Ni,zt=this,ci="multiple"!==zt.options.selectable,Oi=ii(zt._activeDeferred),Ai=this.isFiltered(),Ue=[];if(Jn===Ke)return zt._selectedIndexes.slice();if((!zt._selectDeferred||"resolved"===zt._selectDeferred.state())&&(zt._selectDeferred=Xe.Deferred()),mn=zt._getIndecies(Jn),Pn=ci&&!Ai&&Rt(mn)===Rt(this._selectedIndexes),(Ue=zt._deselectCurrentValues(mn)).length||!mn.length||Pn)return zt._triggerChange(Ue),zt._valueDeferred&&zt._valueDeferred.resolve().promise(),zt._selectDeferred.resolve().promise();1===mn.length&&-1===mn[0]&&(mn=[]),Qn=mn,Ni=zt._deselect(mn),Ue=Ni.removed,mn=Ni.indices,ci&&(Oi=!1,mn.length&&(mn=[Rt(mn)]));var Ye=function(){var Me=zt._select(mn);(Qn.length===mn.length||ci)&&zt.focus(mn),zt._triggerChange(Ue,Me),zt._valueDeferred&&zt._valueDeferred.resolve(),zt._selectDeferred.resolve()};return qn=zt.prefetch(mn),Oi||(qn?qn.done(Ye):Ye()),zt._selectDeferred.promise()},bound:function(Jn){if(Jn===Ke)return this._listCreated;this._listCreated=Jn},mute:function(Jn){this._mute=!0,Jn(),this._mute=!1},setDSFilter:function(Jn){this._lastDSFilter=Xe.extend({},Jn)},isFiltered:function(){return this._lastDSFilter||this.setDSFilter(this.dataSource.filter()),!ze.data.Query.compareFilters(this.dataSource.filter(),this._lastDSFilter)},skipUpdate:Xe.noop,_getElementByIndex:function(Jn){return this.items().filter(function(zt,mn){return Jn===parseInt(Xe(mn).attr("data-offset-index"),10)})},_getElementByDataItem:function(Jn){for(var Qn,zt=this._dataView,mn=this._valueGetter,Oi=0;Oi<zt.length;Oi++)if(zt[Oi].item&&$t(zt[Oi].item)?zt[Oi].item===Jn:zt[Oi].item&&Jn&&mn(zt[Oi].item)==mn(Jn)){Qn=zt[Oi];break}return Qn?this._getElementByIndex(Qn.index):Xe()},_clean:function(){this.result=Ke,this._lastScrollTop=Ke,this._skip=Ke,Xe(this.heightContainer).remove(),this.heightContainer=Ke,this.element.empty()},_height:function(){var Jn=!!this.dataSource.view().length,zt=this.options.height,mn=this.options.itemHeight,Qn=this.dataSource.total();return Jn?zt/mn>Qn&&(zt=Qn*mn):zt=0,zt},setScreenHeight:function(){var Jn=this._height();this.content.height(Jn),this._screenHeight=Jn},screenHeight:function(){return this._screenHeight},_getElementLocation:function(Jn){var zt=this.content.scrollTop(),mn=this._screenHeight,Qn=this.options.itemHeight,ci=Jn*Qn,Oi=ci+Qn,Ai=zt+mn;return ci===zt-Qn||Oi>zt&&ci<zt?"top":ci===Ai||ci<Ai&&Ai<Oi?"bottom":ci>=zt&&ci<=zt+(mn-Qn)?"inScreen":"outScreen"},_templates:function(){var Jn=this.options,zt={template:Jn.template,placeholderTemplate:Jn.placeholderTemplate,groupTemplate:Jn.groupTemplate,fixedGroupTemplate:Jn.fixedGroupTemplate};if(Jn.columns)for(var mn=0;mn<Jn.columns.length;mn++){var Qn=Jn.columns[mn],ci=Qn.field?Qn.field.toString():"text";zt["column"+mn]=Qn.template||"#: "+ci+"#"}for(var Oi in zt)"function"!=typeof zt[Oi]&&(zt[Oi]=ze.template(zt[Oi]||""));this.templates=zt},_generateItems:function(Jn,zt){for(var Qn,ci,mn=[],Oi=this.options.itemHeight+"px",Ai=this.options.columns&&this.options.columns.length?Dn:Vn;zt-- >0;)(ci=document.createElement("span")).className="k-list-item-text",(Qn=document.createElement("li")).tabIndex=-1,Qn.className=Ai,Qn.setAttribute("role","option"),Qn.style.height=Oi,Qn.style.minHeight=Oi,Qn.appendChild(ci),Jn.appendChild(Qn),mn.push(Qn);return mn},_saveInitialRanges:function(){var Jn=this.dataSource._ranges,zt=Xe.Deferred();zt.resolve(),this._rangesList={};for(var mn=0;mn<Jn.length;mn++)this._rangesList[Jn[mn].start]={end:Jn[mn].end,deferred:zt}},_createList:function(){var Jn=this,zt=Jn.content.get(0),mn=Jn.options,Qn=Jn.dataSource;Jn.bound()&&Jn._clean(),Jn._saveInitialRanges(),Jn._buildValueGetter(),Jn.setScreenHeight(),Jn.itemCount=function Xn(Jn,zt,mn){return Math.ceil(Jn*zt/mn)}(Jn._screenHeight,mn.listScreens,mn.itemHeight),Jn.itemCount>Qn.total()&&(Jn.itemCount=Qn.total()),Jn._items=Jn._generateItems(Jn.element[0],Jn.itemCount),Jn._setHeight(mn.itemHeight*Qn.total()),Jn.options.type=(Qn.group()||[]).length?"group":"flat","flat"===Jn.options.type?Jn.header.closest(Be).length?Jn.header.closest(Be).hide():Jn.header.hide():Jn.header.closest(Be).length?Jn.header.closest(Be).show():Jn.header.show(),Jn.getter=Jn._getter(function(){Jn._renderItems(!0)}),Jn._onScroll=function(ci,Oi){var Ai=Jn._listItems(Jn.getter);return Jn._fixedHeader(ci,Ai(ci,Oi))},Jn._renderItems=Jn._whenChanged(function On(Jn,zt){return function(mn){return zt(Jn.scrollTop,mn)}}(zt,Jn._onScroll),function Fi(Jn){return function(zt,mn){return Jn(zt.items,zt.index,mn),zt}}(Jn._reorderList(Jn._items,Vt.bind(Jn)))),Jn._renderItems(),Jn._calculateGroupPadding(Jn._screenHeight),Jn._calculateColumnsHeaderPadding()},_setHeight:function(Jn){var zt,mn=this.heightContainer;if(mn?zt=mn.offsetHeight:mn=this.heightContainer=Nn(this.content[0],"k-height-container"),Jn!==zt)for(mn.innerHTML="";Jn>0;){var Qn=Math.min(Jn,25e4);Nn(mn).style.height=Qn+"px",Jn-=Qn}},_getter:function(){var Jn=null,zt=this.dataSource,mn=zt.skip(),Qn=this.options.type,ci=this.itemCount,Oi={};return zt.pageSize()<ci&&this.mute(function(){zt.pageSize(ci)}),function(Ai,Pn){var qn=this;if(zt.inRange(Pn,ci)){var Ni;if(mn!==Pn&&this.mute(function(){zt.range(Pn,ci),mn=Pn}),"group"===Qn){if(!Oi[Pn])for(var Ue=Oi[Pn]=[],Ye=zt.view(),Me=0,pe=Ye.length;Me<pe;Me++)for(var lt=Ye[Me],yt=0,on=lt.items.length;yt<on;yt++)Ue.push({item:lt.items[yt],group:lt.value});Ni=Oi[Pn][Ai-Pn]}else Ni=zt.view()[Ai-Pn];return Ni}return Jn!==Pn&&(Jn=Pn,mn=Pn,qn._getterDeferred&&qn._getterDeferred.reject(),qn._getterDeferred=qn.deferredRange(Pn),qn._getterDeferred.then(function(){var zi=qn._indexConstraint(qn.content[0].scrollTop);qn._getterDeferred=null,Pn<=zi&&zi<=Pn+ci&&(qn._fetching=!0,zt.range(Pn,ci))})),null}},_fixedHeader:function(Jn,zt){var mn=this.currentVisibleGroup,ci=Math.floor((Jn-zt.top)/this.options.itemHeight),Oi=zt.items[ci];if(Oi&&Oi.item){var Ai=Oi.group;Ai!==mn&&(this.header.html(this.templates.fixedGroupTemplate(Ai||"")),this.currentVisibleGroup=Ai)}return zt},_itemMapper:function(Jn,zt,mn){var ci=this.options.itemHeight,Oi=this._focusedIndex,Ai=!1,Pn=!1,qn=!1,Ni=null,Ye=this._valueGetter;if("group"===this.options.type&&(Jn&&(qn=0===zt||!1!==this._currentGroup&&this._currentGroup!==Jn.group,this._currentGroup=Jn.group),Ni=Jn?Jn.group:null,Jn=Jn?Jn.item:null),"dataItem"===this.options.mapValueTo&&this._selectedDataItems.length&&Jn){for(var Me=0;Me<this._selectedDataItems.length;Me++)if(Ye(this._selectedDataItems[Me])===Ye(Jn)){Ai=!0;break}}else if(!this.isFiltered()&&mn.length&&Jn)for(var pe=0;pe<mn.length;pe++)if($t(Jn)?mn[pe]===Jn:mn[pe]===Ye(Jn)){mn.splice(pe,1),Ai=!0;break}return Oi===zt&&(Pn=!0),{item:Jn||null,group:Ni,newGroup:qn,selected:Ai,current:Pn,index:zt,top:zt*ci}},_range:function(Jn){var ci,zt=this.itemCount,mn=this._values.slice(),Qn=[];this._view={},this._currentGroup=!1;for(var Oi=Jn,Ai=Jn+zt;Oi<Ai;Oi++)ci=this._itemMapper(this.getter(Oi,Jn),Oi,mn),Qn[Qn.length-1]&&(Qn[Qn.length-1].isLastGroupedItem=ci.newGroup),Qn.push(ci),this._view[ci.index]=ci;return this._dataView=Qn,Qn},_getDataItemsCollection:function(Jn,zt){var mn=this._range(this._listIndex(Jn,zt));return{index:mn.length?mn[0].index:0,top:mn.length?mn[0].top:0,items:mn}},_listItems:function(){var mn=function Kt(Jn,zt){var mn=(Jn.listScreens-1-Jn.threshold)*zt,Qn=Jn.threshold*zt;return function(ci,Oi,Ai){return Oi>Ai?Oi-ci.top<mn:0===ci.top||Oi-ci.top>Qn}}(this.options,this._screenHeight);return function(Qn,ci){var Oi=this.result,Ai=this._lastScrollTop;return(ci||!Oi||!mn(Oi,Qn,Ai))&&(Oi=this._getDataItemsCollection(Qn,Ai)),this._lastScrollTop=Qn,this.result=Oi,Oi}.bind(this)},_whenChanged:function(Jn,zt){var mn;return function(Qn){var ci=Jn(Qn);ci!==mn&&(mn=ci,zt(ci,Qn))}},_reorderList:function(Jn,zt){var mn=this,Qn=Jn.length,ci=-1/0;return zt=function xi(Jn,zt){return function(mn,Qn){for(var ci=0,Oi=mn.length;ci<Oi;ci++)Jn(mn[ci],Qn[ci],zt),Qn[ci].item&&this.trigger(Je,{item:Xe(mn[ci]),data:Qn[ci].item,ns:ze.ui})}}(zt,this.templates).bind(this),function(Oi,Ai,Pn){var Ni,Ue,qn=Ai-ci;Pn||Math.abs(qn)>=Qn?(Ni=Jn,Ue=Oi):(Ni=function Wn(Jn,zt){var mn;return zt>0?(mn=Jn.splice(0,zt),Jn.push.apply(Jn,mn)):(mn=Jn.splice(zt,-zt),Jn.unshift.apply(Jn,mn)),mn}(Jn,qn),Ue=qn>0?Oi.slice(-qn):Oi.slice(0,-qn)),zt(Ni,Ue,mn.bound()),ci=Ai}},_bufferSizes:function(){var Jn=this.options;return function He(Jn,zt,mn){return{down:Jn*mn,up:Jn*(zt-1-mn)}}(this._screenHeight,Jn.listScreens,Jn.oppositeBuffer)},_indexConstraint:function(Jn){var zt=this.itemCount,mn=this.options.itemHeight,Qn=this.dataSource.total();return Math.min(Math.max(Qn-zt,0),Math.max(0,Math.floor(Jn/mn)))},_listIndex:function(Jn,zt){var mn=this._bufferSizes();return this._indexConstraint(Jn-(Jn>zt?mn.down:mn.up))},_selectable:function(){var Jn=this.options.columns&&this.options.columns.length?Dn:Vn;this.options.selectable&&(this._selectProxy=this._clickHandler.bind(this),this.element.on(an+At,"."+Jn,this._selectProxy))},getElementIndex:function(Jn){return Jn instanceof ra?parseInt(Jn.attr("data-offset-index"),10):Ke},_getIndecies:function(Jn){var mn,zt=[];if("function"==typeof Jn){mn=this.dataSource.flatView();for(var Qn=0;Qn<mn.length;Qn++)if(Jn(mn[Qn])){zt.push(Qn);break}}"number"==typeof Jn&&zt.push(Jn);var ci=this.getElementIndex(Jn);return isNaN(ci)||zt.push(ci),Jn instanceof Array&&(zt=Jn),zt},_deselect:function(Jn){var mn,Qn,Ue,zt=[],ci=this._selectedIndexes,Oi=this._selectedDataItems,Ai=0,Pn=this.options.selectable,qn=0,Ni=this._valueGetter,Me=null;if(Jn=Jn.slice(),!0!==Pn&&Jn.length){if("multiple"===Pn)for(var lt=0;lt<Jn.length;lt++){if(Me=null,Ai=Xe.inArray(Jn[lt],ci),Qn=this.dataItemByIndex(Jn[lt]),-1===Ai&&Qn)for(var yt=0;yt<Oi.length;yt++)($t(Qn)?Oi[yt]===Qn:Ni(Oi[yt])===Ni(Qn))&&(Ue=this._getElementByIndex(Jn[lt]),Me=this._deselectSingleItem(Ue,yt,Jn[lt],qn));else(mn=ci[Ai])!==Ke&&(Ue=this._getElementByIndex(mn),Me=this._deselectSingleItem(Ue,Ai,mn,qn));Me&&(Jn.splice(lt,1),zt.push(Me),qn++,lt--)}}else{for(var pe=0;pe<ci.length;pe++)ci[pe]!==Ke?this._getElementByIndex(ci[pe]).removeClass(cn):Oi[pe]&&this._getElementByDataItem(Oi[pe]).removeClass(cn),zt.push({index:ci[pe],position:pe,dataItem:Oi[pe]});this._values=[],this._selectedDataItems=[],this._selectedIndexes=[]}return{indices:Jn,removed:zt}},_deselectSingleItem:function(Jn,zt,mn,Qn){if(Jn.hasClass(cn))return Jn.removeClass(cn),this._values.splice(zt,1),this._selectedIndexes.splice(zt,1),{index:mn,position:zt+Qn,dataItem:this._selectedDataItems.splice(zt,1)[0]}},_deselectCurrentValues:function(Jn){var mn,Qn,ci,qn,zt=this.element[0].children,Oi=this._values,Ai=[],Pn=0;if("multiple"!==this.options.selectable||!this.isFiltered())return[];if(-1===Jn[0])return Xe(zt).removeClass(cn),Ai=Xe.map(this._selectedDataItems.slice(0),function(Ni,Ue){return{dataItem:Ni,position:Ue}}),this._selectedIndexes=[],this._selectedDataItems=[],this._values=[],Ai;for(;Pn<Jn.length;Pn++){for(ci=-1,this.dataItemByIndex(Qn=Jn[Pn])&&(mn=this._valueGetter(this.dataItemByIndex(Qn))),qn=0;qn<Oi.length;qn++)if(mn==Oi[qn]){ci=qn;break}ci>-1&&(Ai.push(this.removeAt(ci)),Xe(zt[Qn]).removeClass(cn))}return Ai},_getSkip:function(Jn,zt){return((Jn<zt?1:Math.floor(Jn/zt)+1)-1)*zt},_select:function(Jn){var ci,Oi,zt=this,Qn=this.dataSource,Ai=this.itemCount,Pn=this._valueGetter,qn=[];return"multiple"!==this.options.selectable&&(zt._selectedIndexes=[],zt._selectedDataItems=[],zt._values=[]),Oi=Qn.skip(),Xe.each(Jn,function(Ni,Ue){var Ye=zt._getSkip(Ue,Ai);zt.mute(function(){Qn.range(Ye,Ai),ci=zt._findDataItem(Qn.view(),[Ue-Ye]),zt._selectedIndexes.push(Ue),zt._selectedDataItems.push(ci),zt._values.push($t(ci)?ci:Pn(ci)),qn.push({index:Ue,dataItem:ci}),zt._getElementByIndex(Ue).addClass(cn),Qn.range(Oi,Ai)})}),zt._values=zt._checkValuesOrder(zt._values),qn},_clickHandler:function(Jn){var zt=Xe(Jn.currentTarget);!Jn.isDefaultPrevented()&&zt.attr("data-uid")&&this.trigger(an,{item:zt})},_buildValueGetter:function(){this._valueGetter=ze.getter(this.options.dataValueField)},_calculateGroupPadding:function(Jn){var zt=this.items().first(),mn=this.header,Qn=0;mn[0]&&"none"!==mn[0].style.display&&("auto"!==Jn&&(Qn=ze.support.scrollbar()),Qn+=parseFloat(zt.css("border-right-width"),10)+parseFloat(zt.children(".k-group").css("right"),10),mn.css("padding-right",Qn))},_calculateColumnsHeaderPadding:function(){if(this.options.columns&&this.options.columns.length){var Jn=ze.support.isRtl(this.wrapper),zt=ze.support.scrollbar(),mn=this.content.parent().parent().find(".k-table-header"),Qn=this.dataSource.total();mn.css(Jn?"padding-left":"padding-right",Qn?zt:0)}}});return ze.ui.VirtualList=Vi,ze.ui.plugin(Vi),window.kendo}.apply(I={},ur=[d]))&&(b=I),void 0===(L=function(){var Xe=window.kendo.jQuery,ze=window.kendo,St=ze.Class,it=(ze.html=ze.html||{},St.extend({init:function(Dt,Hn){this.element=Xe(Dt),delete(Hn=Hn||{}).name,this._initOptions(Hn)},options:{stylingOptions:[]},_addClasses:function(){var Dt=this,Hn=Dt.options,Ui=Hn.stylingOptions,Co=Dt.wrapper.data("added-classes");Ui=Ui.map(function(Sn){var Vn;return"themeColor"!==Sn||(Vn=ze.cssProperties.getValidClass({widget:Hn.name,propName:"fillMode",value:Hn.fillMode}))&&0!==Vn.length?ze.cssProperties.getValidClass({widget:Hn.name,propName:Sn,value:Hn[Sn],fill:Hn.fillMode}):""}),Co&&Dt.wrapper.removeClass(Co.join(" ")),Dt.wrapper.data("added-classes",Ui),Dt.wrapper.addClass(Ui.join(" "))},html:function(){return this.wrapper[0].outerHTML}}));return Xe.extend(ze.html,{HTMLBase:it}),window.kendo}.apply(D={},ur=[e]))&&(L=D),void 0===(F=function(){var Xe=window.kendo.jQuery,ze=window.kendo,St=ze.html.HTMLBase,Dt="k-button-icon",Co=St.extend({init:function(Sn,Vn){var Dn=this;St.fn.init.call(Dn,Sn,Vn),Dn.wrapper=Dn.element.addClass("k-button"),Dn.element.attr("type")||Dn.element.attr("type",Dn.options.type),Dn._addClasses(),Dn.iconElement(),Dn._textElement()},options:{name:"HTMLButton",type:"button",icon:"",iconClass:"",spriteCssClass:"",imageUrl:"",size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base",stylingOptions:["size","rounded","fillMode","themeColor"]},iconElement:function(){var cn,Ht,ft,Vn=this.element,Dn=this.options,kn=Dn.icon,ui=Dn.iconClass,Ot=Dn.spriteCssClass,en=Dn.imageUrl;(Ot||en||kn||ui)&&(ft=!0,Vn.contents().filter(function(){return!Xe(this).hasClass("k-sprite")&&!Xe(this).hasClass("k-icon")&&!Xe(this).hasClass("k-image")}).each(function(Nt,an){(1==an.nodeType||3==an.nodeType&&ze.trim(an.nodeValue).length>0)&&(ft=!1)})),ft&&this.element.addClass("k-icon-button"),en?((Ht=Vn.children("img.k-image").first())[0]||(Ht=Xe('<img alt="icon" class="k-image" />').prependTo(Vn)),Ht.attr("src",en),Ht.addClass(Dt)):kn||ui?((cn=Vn.children("span.k-icon").first())[0]||(cn=Xe("<span></span>").prependTo(Vn)),cn.attr("class",kn?"k-icon k-i-"+kn:ui),cn.addClass(Dt)):Ot&&((cn=Vn.children("span.k-sprite").first())[0]||(cn=Xe('<span class="k-sprite"></span>').prependTo(Vn)),cn.addClass(Ot+" "+Dt))},_textElement:function(){this.element.contents().filter(function(){return!(Xe(this).hasClass(Dt)||Xe(this).hasClass("k-sprite")||Xe(this).hasClass("k-icon")||Xe(this).hasClass("k-image"))}).each(function(Vn,Dn){if(1==Dn.nodeType||3==Dn.nodeType&&ze.trim(Dn.nodeValue).length>0){if(3===Dn.nodeType){var kn=document.createElement("span");Dn.parentNode.insertBefore(kn,Dn),kn.appendChild(Dn),Dn=kn}Dn.classList.add("k-button-text")}})}});return Xe.extend(ze.html,{renderButton:function(Sn,Vn){return(void 0===arguments[0]||Xe.isPlainObject(arguments[0]))&&(Vn=Sn,Sn=Xe("<button></button>")),new Co(Sn,Vn).html()},HTMLButton:Co}),ze.cssProperties.registerPrefix("HTMLButton","k-button-"),ze.cssProperties.registerValues("HTMLButton",[{prop:"fillMode",values:ze.cssProperties.fillModeValues.concat(["link"])},{prop:"rounded",values:ze.cssProperties.roundedValues.concat([["full","full"]])}]),window.kendo}.apply(P={},ur=[L]))&&(F=P),void 0===(O=function(){var Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,St=ze.ui,it=ze.html,Dt=St.List,Hn=St.Select,Ui=ze.caret,Co=ze.support,Sn=Co.placeholder,Vn=ze._activeElement,Dn=ze.keys,kn=".kendoComboBox",ui=kn+"FocusEvent",Ot="click"+kn,en="mousedown"+kn,cn="disabled",Ht="readonly",ft="change",an="k-focus",$e="k-disabled",Je="aria-disabled",Ve="aria-readonly",Be="filter",At="accept",Rt="rebind",Pt="mouseenter"+kn+" mouseleave"+kn,$t=/(\r\n|\n|\r)/gm,Xn=[16,17,18,19,20,33,34,37,39,45,91,92,144,145],Nn=Hn.extend({init:function(Ae,He){var On,Kt=this;Kt.ns=kn,He=Array.isArray(He)?{dataSource:He}:He,Hn.fn.init.call(Kt,Ae,He),He=Kt.options,Ae=Kt.element.on("focus"+kn,Kt._focusHandler.bind(Kt)),He.placeholder=He.placeholder||Ae.attr("placeholder"),Kt._reset(),Kt._wrapper(),Kt._input(),Kt._clearButton(),Kt._tabindex(Kt.input),Kt._popup(),Kt._dataSource(),Kt._ignoreCase(),Kt._enable(),Kt._attachFocusEvents(),Kt._oldIndex=Kt.selectedIndex=-1,Kt._aria(),Kt._initialIndex=He.index,Kt.requireValueMapper(Kt.options),Kt._initList(),Kt._cascade(),He.autoBind?Kt._filterSource():(!(On=He.text)&&Kt._isSelect&&(On=Ae.children(":selected").text()),On&&Kt._setText(On)),On||Kt._placeholder(),Xe(Kt.element).parents("fieldset").is(":disabled")&&Kt.enable(!1),ze.notify(Kt),Kt._toggleCloseVisibility(),Kt._applyCssClasses()},options:{name:"ComboBox",enabled:!0,index:-1,text:null,value:null,autoBind:!0,delay:200,dataTextField:"",dataValueField:"",minLength:1,enforceMinLength:!1,height:200,highlightFirst:!0,filter:"none",placeholder:"",suggest:!1,cascadeFrom:"",cascadeFromField:"",cascadeFromParentField:"",ignoreCase:!0,animation:{},virtual:!1,template:null,groupTemplate:"#:data#",fixedGroupTemplate:"#:data#",clearButton:!0,syncValueAndText:!0,autoWidth:!1,popup:null,size:"medium",fillMode:"solid",rounded:"medium"},events:["open","close",ft,"select","filtering","dataBinding","dataBound","cascade","set"],setOptions:function(Ae){var He=this._listOptions(Ae);Hn.fn.setOptions.call(this,Ae),this.listView.setOptions(He),this._accessors(),this._aria(),this._clearButton()},destroy:function(){var Ae=this;Ae.input.off(kn),Ae.input.off(ui),Ae.element.off(kn),Ae.wrapper.off(kn),clearTimeout(Ae._pasteTimeout),Ae._arrow.off(Ot+" "+en),Ae._clear.off(Ot+" "+en),Hn.fn.destroy.call(Ae)},_isValueChanged:function(Ae){return Ae!==Dt.unifyType(this._old,typeof Ae)&&Ae!==Dt.unifyType(this._oldText,typeof Ae)},_change:function(){var Ae=this,He=Ae.text(),Kt=He&&He!==Ae._oldText&&He!==Ae.options.placeholder,On=Ae.selectedIndex,Fi=-1===On;if(!Ae.options.syncValueAndText&&!Ae.value()&&Fi&&Kt)return Ae._old="",Ae._oldIndex=On,Ae._oldText=He,Ae._typing||Ae.element.trigger(ft),Ae.trigger(ft),void(Ae._typing=!1);Hn.fn._change.call(Ae),Ae._oldText=Ae.text&&Ae.text(),Ae._toggleCloseVisibility()},_attachFocusEvents:function(){var Ae=this;Ae.input.on("focus"+ui,Ae._inputFocus.bind(Ae)).on("focusout"+ui,Ae._inputFocusout.bind(Ae))},_focusHandler:function(Ae){Ae.target===this.element[0]&&this.input.trigger("focus")},_arrowClick:function(){this._toggle()},_inputFocus:function(){this.wrapper.addClass(an),this._placeholder(!1)},_inputFocusout:function(Ae){var He=this,Kt=He.value(),On=!Xe(Ae.relatedTarget).closest(".k-clear-value").length;He._userTriggered=!0,He.wrapper.removeClass(an),clearTimeout(He._typingTimeout),He._typingTimeout=null,On&&He.text(He.text());var Fi=He._focus(),Ci=this.listView.dataItemByIndex(this.listView.getElementIndex(Fi));Kt!==He.value()&&He.trigger("select",{dataItem:Ci,item:Fi})?He.value(Kt):(He._placeholder(),He._valueBeforeCascade=He._old,On&&(He._blur(),He.element.trigger("blur")))},_inputPaste:function(){var Ae=this;clearTimeout(Ae._pasteTimeout),Ae._pasteTimeout=null,Ae._pasteTimeout=setTimeout(function(){Ae.search()})},_editable:function(Ae){var He=this,Kt=Ae.disable,On=Ae.readonly,Fi=He.wrapper.off(kn),Ci=He.element.add(He.input.off(kn)),xi=He._arrow.off(Ot+" "+en),Wn=He._clear;On||Kt?(Fi.addClass(Kt?$e:"").removeClass(Kt?"":$e),Ci.attr(cn,Kt).attr(Ht,On).attr(Je,Kt).attr(Ve,On)):(Fi.removeClass($e).on(Pt,He._toggleHover),Ci.prop(cn,!1).prop(Ht,!1).attr(Je,!1).attr(Ve,!1),xi.on(Ot,He._arrowClick.bind(He)).on(en,function(Vt){Vt.preventDefault()}),Wn.on(Ot+" touchend"+kn,He._clearValue.bind(He)),He.input.on("keydown"+kn,He._keydown.bind(He)).on("input"+kn,He._search.bind(He)).on("paste"+kn,He._inputPaste.bind(He)),He.wrapper.on(Ot+kn,He._focusHandler.bind(He))),He._toggleCloseVisibility()},open:function(){var Ae=this,He=Ae._state,Kt=!!Ae.dataSource.filter()&&Ae.dataSource.filter().filters.length>0,On=!Ae.ul.find(Ae.listView.focus()).length;Ae.popup.visible()||(!Ae.listView.bound()&&He!==Be||He===At?(Ae._open=!0,Ae._state=Rt,1!==Ae.options.minLength&&!Kt||Kt&&Ae.value()&&-1===Ae.selectedIndex?(Ae.refresh(),Ae._openPopup(),this.options.virtual||Ae.listView.bound(!1)):Ae._filterSource()):Ae._allowOpening()&&(Ae.popup._hovered=!0,Ae._openPopup(),Ae.options.virtual?Ae._focusItem():On&&Ae.options.highlightFirst&&Ae.listView.focus(0)))},_scrollToFocusedItem:function(){var Ae=this.listView;Ae.scrollToIndex(Ae.getElementIndex(Ae.focus()))},_openPopup:function(){this.popup.one("activate",this._scrollToFocusedItem.bind(this)),this.popup.open()},_updateSelectionState:function(){var Ae=this,He=Ae.options.text,Kt=Ae.options.value;Ae.listView.isFiltered()||(-1===Ae.selectedIndex?((He===Ke||null===He)&&(He=Kt),Ae._accessor(Kt),Ae.input.val(He||Ae.input.val()),Ae._placeholder()):-1===Ae._oldIndex&&(Ae._oldIndex=Ae.selectedIndex))},_buildOptions:function(Ae){var He=this;if(He._isSelect){var Kt=He._customOption;He._state===Rt&&(He._state=""),He._customOption=Ke,He._options(Ae,"",He.value()),Kt&&Kt[0].selected&&!He.listView._emptySearch&&He._custom(Kt.val())}},_updateSelection:function(){var Ae=this,He=Ae.listView,Kt=Ae._initialIndex,On=null!==Kt&&Kt>-1;if(Ae._state===Be)Xe(He.focus()).removeClass("k-selected");else if(!Ae._fetch){He.value().length||(On?Ae.select(Kt):Ae._accessor()&&He.value(Ae._accessor())),Ae._initialIndex=null;var Ci=He.selectedDataItems()[0];Ci&&(Ae._value(Ci)!==Ae.value()?Ae._custom(Ae._value(Ci)):Ae._value(Ci)!==Ae.element[0].value&&Ae._accessor(Ae._value(Ci)),Ae.text()&&Ae.text()!==Ae._text(Ci)&&Ae._selectValue(Ci))}},_updateItemFocus:function(){var Ae=this.listView;this.options.highlightFirst?!Ae.focus()&&!Ae.focusIndex()&&Ae.focus(0):Ae.focus(-1)},_listBound:function(){var Ae=this,He=Ae.input[0]===Vn(),Kt=Ae.dataSource.flatView(),On=Ae.listView.skip(),Fi=Kt.length,Ci=Ae.dataSource._group?Ae.dataSource._group.length:0,xi=On===Ke||0===On;Ae._presetValue=!1,Ae._renderFooter(),Ae._renderNoData(),Ae._toggleNoData(!Fi),Ae._toggleHeader(!!Ci&&!!Fi),Ae._resizePopup(),Ae.popup.position(),Ae._buildOptions(Kt),Ae._updateSelection(),Kt.length&&xi&&(Ae._updateItemFocus(),Ae.options.suggest&&He&&Ae.input.val()&&Ae.suggest(Kt[0])),Ae._open&&(Ae._open=!1,Ae._typingTimeout&&!He?Ae.popup.close():Ae.toggle(Ae._allowOpening()),Ae._typingTimeout=null),Ae._hideBusy(),Ae.trigger("dataBound")},_listChange:function(){this._selectValue(this.listView.selectedDataItems()[0]),this._presetValue&&(this._oldIndex=this.selectedIndex)},_get:function(Ae){var He,Kt,On;if("function"==typeof Ae){for(He=this.dataSource.flatView(),On=0;On<He.length;On++)if(Ae(He[On])){Ae=On,Kt=!0;break}Kt||(Ae=-1)}return!this.dataSource.total()&&!Ae&&(Ae=-1),Ae},_select:function(Ae,He){var Kt=this;return-1===(Ae=Kt._get(Ae))&&(Kt.input[0].value="",Kt._accessor("")),Kt.listView.select(Ae).done(function(){!He&&Kt._state===Be&&(Kt._state=At),Kt._toggleCloseVisibility()})},_selectValue:function(Ae){var He=this.listView.select(),Kt="",On="";(He=He[He.length-1])===Ke&&(He=-1),this.selectedIndex=He,this.listView.isFiltered()&&-1!==He&&(this._valueBeforeCascade=this._old),-1!==He||Ae?((Ae||0===Ae)&&(Kt=this._dataValue(Ae),On=this._text(Ae)),null===Kt&&(Kt="")):(this.options.syncValueAndText?Kt=On=this.options.dataTextField===this.options.dataValueField?this._accessor():this.input[0].value:On=this.text(),this.listView.focus(-1)),this._setDomInputValue(On),this._accessor(Kt!==Ke?Kt:On,He),this._placeholder(),this._triggerCascade()},_setDomInputValue:function(Ae){var On,He=this,Kt=Ui(this.input);if(Kt&&Kt.length&&(On=Kt[0]),this._prev=this.input[0].value=Ae,On&&-1===this.selectedIndex){var Fi=Co.mobileOS;Fi.wp||Fi.android?setTimeout(function(){He.input[0].setSelectionRange(On,On)},0):this.input[0].setSelectionRange(On,On)}},refresh:function(){this.listView.refresh()},_toggleCloseVisibility:function(){var Ae=this.element.is(":disabled")||this.element.is("[readonly]");this.text()&&!Ae?this._showClear():this._hideClear()},suggest:function(Ae){var xi,He=this,Kt=He.input[0],On=He.text(),Fi=Ui(Kt)[0],Ci=He._last,Wn=He.dataSource.options.accentFoldingFiltering;Ci!=Dn.BACKSPACE&&Ci!=Dn.DELETE?("string"!=typeof(Ae=Ae||"")&&(Ae[0]&&(Ae=He.dataSource.view()[Dt.inArray(Ae[0],He.ul[0])]),Ae=Ae?He._text(Ae):""),Fi<=0&&(Fi=(Wn?On.toLocaleLowerCase(Wn):On.toLowerCase()).indexOf(Wn?Ae.toLocaleLowerCase(Wn):Ae.toLowerCase())+1),Ae?(Ae=Ae.toString(),(xi=(Wn?Ae.toLocaleLowerCase(Wn):Ae.toLowerCase()).indexOf(Wn?On.toLocaleLowerCase(Wn):On.toLowerCase()))>-1&&(On+=Ae.substring(xi+On.length))):On=On.substring(0,Fi),(On.length!==Fi||!Ae)&&(Kt.value=On,Kt===Vn()&&Ui(Kt,Fi,On.length))):He._last=Ke},text:function(Ae){var Ci,xi,He=this,Kt=He.input[0],On=He.options.ignoreCase,Fi=Ae=null===Ae?"":Ae;if(Ae===Ke)return Kt.value;!1!==He.options.autoBind||He.listView.bound()?(Ci=He.dataItem())&&He._text(Ci).replace&&He._text(Ci).replace($t,"")===Ae&&(xi=He._value(Ci))===Dt.unifyType(He._old,typeof xi)?He._triggerCascade():(On&&(Fi=Fi.toLowerCase()),(!He.dataItem()||He._text(He.dataItem())!==Ae)&&(He._select(function(Wn){return Wn=He._text(Wn),On&&(Wn=(Wn+"").toLowerCase()),Wn===Fi}).done(function(){He.selectedIndex<0&&(Kt.value=Ae,He.options.syncValueAndText&&He._accessor(Ae),He._cascadeTriggered=!0,He._triggerCascade()),He._prev=Kt.value}),He._toggleCloseVisibility())):He._setText(Ae)},toggle:function(Ae){this._toggle(Ae,!0)},value:function(Ae){var He=this,Kt=He.options,On=He.listView;if(Ae===Ke)return(Ae=He._accessor()||He.listView.value()[0])===Ke||null===Ae?"":Ae;He.requireValueMapper(He.options,Ae),He.trigger("set",{value:Ae}),(Ae!==Kt.value||He.input.val()!==Kt.text||He.options.cascadeFrom)&&(He._accessor(Ae),He._isFilterEnabled()&&On.bound()&&On.isFiltered()?He._clearFilter():He._fetchData(),On.value(Ae).done(function(){-1===He.selectedIndex&&(!On._selectedDataItems||!On._selectedDataItems.length)&&(He._accessor(Ae),He.input.val(Ae),He._placeholder(!0)),He._old=He._userTriggered?He._accessor():He._valueBeforeCascade=He._accessor(),He._oldIndex=He.selectedIndex,He._prev=He._oldText=He.input.val(),He._state===Be&&(He._state=At),He._toggleCloseVisibility()}))},_hideBusy:function(){var Ae=this;clearTimeout(Ae._busy),Ae._arrowIcon.removeClass("k-i-loading k-input-loading-icon"),Ae._focused.attr("aria-busy",!1),Ae._busy=null,Ae._toggleCloseVisibility()},_click:function(Ae){var He=this,Kt=Ae.item,On=He.listView.dataItemByIndex(He.listView.getElementIndex(Kt)),Fi=!0;Ae.preventDefault(),On&&((Fi=He._value(On)!==Dt.unifyType(He.value(),typeof He._value(On)))||He.input.val(He._text(On))),Fi&&He.trigger("select",{dataItem:On,item:Kt})?He.close():(He._userTriggered=!0,He._select(Kt).done(function(){He._blur()}))},_syncValueAndText:function(){return this.options.syncValueAndText},_inputValue:function(){return this.text()},_searchByWord:function(Ae){var He=this,Kt=He.options,On=He.dataSource,Fi=Kt.ignoreCase;if(Fi&&(Ae=Ae.toLowerCase()),He.ul[0].firstChild){this.listView.focus(this._get(function(Wn){var Vt=He._text(Wn);if(Vt!==Ke)return(""==(Vt+="")||""!==Ae)&&(Fi&&(Vt=Vt.toLowerCase()),0===Vt.indexOf(Ae))}));var xi=this.listView.focus();xi&&(Kt.suggest&&He.suggest(xi),this.open()),this.options.highlightFirst&&!Ae&&this.listView.focusFirst()}else On.one(ft,function(){On.view()[0]&&He.search(Ae)}).fetch()},_input:function(){var Wn,Vt,qt,Ae=this,He=Ae.element.removeClass("k-input-inner")[0],Kt=He.accessKey,On=Ae.wrapper,Fi="input.k-input-inner",Ci=He.name||"",xi=Ae.options;Ci&&(Ci='name="'+Ci+'_input" '),(Wn=On.find(Fi))[0]||(qt=it.renderButton('<button type="button" class="k-input-button" aria-label="expand combobox"></button>',{icon:"arrow-s",size:xi.size,fillMode:xi.fillMode,shape:"none",rounded:"none"}),On.append("<input "+Ci+'class="k-input-inner" type="text" autocomplete="off"/>').append(qt).append(Ae.element),Wn=On.find(Fi)),Wn[0].style.cssText=He.style.cssText,Wn[0].title=He.title,(Vt=parseInt(this.element.prop("maxlength")||this.element.attr("maxlength"),10))>-1&&(Wn[0].maxLength=Vt),Wn.addClass(He.className).css({width:"",height:He.style.height,position:""}).attr({role:"combobox","aria-expanded":!1}).show(),Sn&&Wn.attr("placeholder",Ae.options.placeholder),Kt&&(He.accessKey="",Wn[0].accessKey=Kt),Ae._focused=Ae.input=Wn,Ae._arrow=On.find(".k-input-button").attr({role:"button",tabIndex:-1}),Ae._arrowIcon=Ae._arrow.find(".k-icon")},_clearButton:function(){Dt.fn._clearButton.call(this),this.options.clearButton&&(this._clear.insertAfter(this.input),this.wrapper.addClass("k-combobox-clearable"))},_keydown:function(Ae){var He=this,Kt=Ae.keyCode,On=He.options.dataTextField||"text",Fi=Kt>=112&&Kt<=135,Ci=Xn.indexOf(Kt)>-1;if(He._last=Kt,clearTimeout(He._typingTimeout),He._typingTimeout=null,Kt===Dn.HOME)He._firstItem();else if(Kt===Dn.END)He._lastItem();else if(Kt===Dn.ENTER||Kt===Dn.TAB&&He.popup.visible()){var xi=He.listView.focus(),Wn=He.dataItem(),Vt=!0;if(!He.popup.visible()&&(!Wn||He.text()!==He._text(Wn))&&(xi=null),xi){if(He.popup.visible()&&Ae.preventDefault(),(Wn=He.listView.dataItemByIndex(He.listView.getElementIndex(xi)))&&(Vt=He._value(Wn)!==Dt.unifyType(He.value(),typeof He._value(Wn))),Vt&&He.trigger("select",{dataItem:Wn,item:xi}))return;He._userTriggered=!0,He._select(xi).done(function(){He._blur(),He._valueBeforeCascade=He._old=He.value()})}else(He._syncValueAndText()||He._isSelect)&&(!He.dataItem()||He.dataItem()[On]!==He.input.val())&&He._accessor(He.input.val()),He.options.highlightFirst?(He.listView.value(He.input.val()),He._blur()):He._oldText=He.text()}else Kt==Dn.TAB||He._move(Ae)||Ci||Fi||Ae.ctrlKey?Kt===Dn.ESC&&!He.popup.visible()&&He.text()&&He._clearValue():He._search()},_placeholder:function(Ae){if(!Sn){var Fi,Kt=this.input,On=this.options.placeholder;if(On){if(Fi=this.value(),Ae===Ke&&(Ae=!Fi),Kt.toggleClass("k-readonly",Ae),!Ae){if(Fi)return;On=""}Kt.val(On),!On&&Kt[0]===Vn()&&Ui(Kt[0],0,0)}}},_search:function(){var Ae=this;clearTimeout(Ae._typingTimeout),Ae._typingTimeout=setTimeout(function(){var He=Ae.text();""!==He&&Ae._prev!==He?(Ae._prev=He,"none"===Ae.options.filter&&Ae.options.virtual&&Ae.listView.select(-1),Ae.search(He),Ae._toggleCloseVisibility()):""===He&&""!==Ae._prev&&Ae._prev!==Ke&&(Ae._clearValue(),Ae._open=!0,Ae._state=Rt),Ae._typingTimeout=null},Ae.options.delay)},_setText:function(Ae){this.input.val(Ae),this._prev=Ae},_wrapper:function(){var He=this.element,Kt=He.parent();Kt.is("span.k-input")||((Kt=He.hide().wrap("<span />").parent())[0].style.cssText=He[0].style.cssText),this.wrapper=Kt.addClass("k-input k-combobox").addClass(He[0].className).removeClass("input-validation-error").css("display","")},_clearSelection:function(Ae,He){var On=Ae.value(),Fi=On&&-1===Ae.selectedIndex;-1==this.selectedIndex&&this.value()||(He||!On||Fi)&&(this.options.value="",this.value(""))},_preselect:function(Ae,He){this.input.val(He),this._accessor(Ae),this._old=this._accessor(),this._oldIndex=this.selectedIndex,this.listView.setValue(Ae),this._placeholder(),this._initialIndex=null,this._presetValue=!0,this._toggleCloseVisibility()},_clearText:function(){this._old=this.value(),this.text("")},_clearValue:function(){Hn.fn._clearValue.call(this),this.input.trigger("focus")}});return St.plugin(Nn),ze.cssProperties.registerPrefix("ComboBox","k-input-"),ze.cssProperties.registerValues("ComboBox",[{prop:"rounded",values:ze.cssProperties.roundedValues.concat([["full","full"]])}]),window.kendo}.apply(U={},ur=[C,p,b,F]))&&(O=U),void 0===(V=function(){var Xe=window.kendo.jQuery,ze=window.kendo,St=ze.ui.Widget,it=Math.abs,Dt="aria-selected",Hn="k-selected",Ui="k-selecting",Co="k-selectable",Sn="change",Dn="unselect",kn="k-unselecting",Ot=ze.support.browser.msie,en=!1,cn=Xe.extend,ft=(Xe('<div class="parent"><span></span></div>').on("click",">*",function(){en=!0}).find("span").trigger("click").end().off(),St.extend({init:function(Je,Ve){var Be,At,Ge=this;St.fn.init.call(Ge,Je,Ve),Ge._marquee=Xe("<div class='k-marquee'><div class='k-marquee-color'></div></div>"),Ge._lastActive=null,Ge.element.addClass(Co),Ge.relatedTarget=Ge.options.relatedTarget,Be=Ge.options.multiple,At=Ge.options.dragToSelect,Ge.userEvents=new ze.UserEvents(Ge.element,{global:!0,allowSelection:!0,filter:(en?"":"."+Co+" ")+Ge.options.filter,tap:Ge._tap.bind(Ge),touchAction:Be?"none":"pan-x pan-y"}),Be&&(At&&Ge.userEvents.bind("start",Ge._start.bind(Ge)).bind("move",Ge._move.bind(Ge)).bind("end",Ge._end.bind(Ge)),Ge.userEvents.bind("select",Ge._select.bind(Ge)))},events:[Sn,Dn],options:{name:"Selectable",filter:">*",inputSelectors:"input,a,textarea,.k-multiselect-wrap,select,button,.k-button>span,.k-button>img,span.k-icon.k-i-arrow-60-down,span.k-icon.k-i-arrow-60-up,label.k-checkbox-label.k-no-text,.k-icon.k-i-collapse,.k-icon.k-i-expand,span.k-numeric-wrap,.k-focusable",multiple:!1,dragToSelect:!0,relatedTarget:Xe.noop,ignoreOverlapped:!1,addIdToRanges:!1},_isElement:function(Je){var Ge,Ve=this.element,Be=Ve.length,At=!1;for(Je=Je[0],Ge=0;Ge<Be;Ge++)if(Ve[Ge]===Je){At=!0;break}return At},_tap:function(Je){var $t,Ve=Xe(Je.target),Ge=this,Be=Je.event.ctrlKey||Je.event.metaKey,At=Ge.options.multiple,Rt=At&&Je.event.shiftKey,Pt=Ge.options.selectedClass||Hn,Xn=Je.event.which,Nn=Je.event.button;!Ge._isElement(Ve.closest("."+Co))||Xn&&3==Xn||Nn&&2==Nn||this._allowSelection(Je.event.target)&&($t=Ve.hasClass(Pt),Ve=Ve.add(Ge.relatedTarget(Ve)),At?Rt?((!Ge._lastRange||!Nt(Ge._lastRange,Ve))&&(Ge.selectRange(Ge._firstSelectee(),Ve,Je),Ge._notify(Sn,Je)),Ge._lastRange=Ve):(Ge._lastRange=null,$t&&Be?(Ge._unselect(Ve),Ge._notify(Sn,Je)):Be?(Ge.value(Ve,Je),Ge._notify(Sn,Je)):(!$t||Ge.value().length>1)&&(Ge.clear(),Ge.value(Ve,Je),Ge._notify(Sn,Je)),Ge._lastActive=Ge._downTarget=Ve):$t&&Be?(Ge._unselect(Ve),Ge._notify(Sn,Je)):$t||(Ge.clear(),Ge.value(Ve,Je),Ge._notify(Sn,Je)))},_start:function(Je){var Rt,Ve=this,Ge=Xe(Je.target),At=Ge.hasClass(Ve.options.selectedClass||Hn),Pt=Je.event.ctrlKey||Je.event.metaKey;if(this._allowSelection(Je.event.target)){if(Ve._downTarget=Ge,!Ve._isElement(Ge.closest("."+Co)))return void Ve.userEvents.cancel();Ve.options.useAllItems?Ve._items=Ve.element.find(Ve.options.filter):(Rt=Ge.closest(Ve.element),Ve._items=Rt.find(Ve.options.filter)),Je.sender.capture(),Ve._marquee.appendTo(document.body).css({left:Je.x.client+1,top:Je.y.client+1,width:0,height:0}),Pt||Ve.clear(),Ge=Ge.add(Ve.relatedTarget(Ge)),At&&(Ve._selectElement(Ge,!0),Pt&&Ge.addClass(kn))}},_move:function(Je){var Ge={left:Je.x.startLocation>Je.x.location?Je.x.location:Je.x.startLocation,top:Je.y.startLocation>Je.y.location?Je.y.location:Je.y.startLocation,width:it(Je.x.initialDelta),height:it(Je.y.initialDelta)};this._marquee.css(Ge),this._invalidateSelectables(Ge,Je.event.ctrlKey||Je.event.metaKey),Je.preventDefault()},_end:function(Je){var Ve=this,Ge=ze.attr("range-selected"),Be=ze.guid();Ve._marquee.remove(),Ve._unselect(Ve.element.find(Ve.options.filter+"."+kn)).removeClass(kn);var At=Ve.element.find(Ve.options.filter+"."+Ui);if(At=At.add(Ve.relatedTarget(At)),Ve.options.addIdToRanges)for(var Rt=0;Rt<Ve._currentlyActive.length;Rt++)Xe(Ve._currentlyActive[Rt]).attr(Ge,Be);(!Ve._lastRange||!Nt(Ve._lastRange,At))&&(Ve.value(At,Je),Ve._notify(Sn,Je)),Ve._lastRange=At,Ve._lastActive=Ve._downTarget,Ve._items=null},_invalidateSelectables:function(Je,Ve){var Ge,Be,$t,Xn,At=this._downTarget[0],Rt=this._items,Pt=this.options.selectedClass||Hn;for(this._currentlyActive=[],Ge=0,Be=Rt.length;Ge<Be;Ge++)$t=(Xn=Rt.eq(Ge)).add(this.relatedTarget(Xn)),an(Xn,Je)?(Xn.hasClass(Pt)?Ve&&At!==Xn[0]&&$t.removeClass(Pt).addClass(kn):!Xn.hasClass(Ui)&&!Xn.hasClass(kn)&&!this._collidesWithActiveElement($t,Je)&&$t.addClass(Ui),this._currentlyActive.push($t[0])):Xn.hasClass(Ui)?$t.removeClass(Ui):Ve&&Xn.hasClass(kn)&&$t.removeClass(kn).addClass(Pt)},_collidesWithActiveElement:function(Je,Ve){if(!this.options.ignoreOverlapped)return!1;var At,Ge=this._currentlyActive,Be=Je[0].getBoundingClientRect(),Rt=!1,$t=ze.support.isRtl(Je)?"right":"left",Xn={};Ve.right=Ve.left+Ve.width,Ve.bottom=Ve.top+Ve.height;for(var Nn=0;Nn<Ge.length;Nn++)if($e(Be,At=Ge[Nn].getBoundingClientRect())){if(Xn[$t]="left"===$t?At.right:At.left,(Be=cn({},Be,Xn)).left>Be.right)return!0;Rt=!$e(Be,Ve)}return Rt},value:function(Je){var Ve=this,Ge=Ve._selectElement.bind(Ve);if(!Je)return Ve.element.find(Ve.options.filter+"."+(Ve.options.selectedClass||Hn));Je.each(function(){Ge(this)})},selectedRanges:function(){var Ve=ze.attr("range-selected"),Ge={};return this.element.find("["+Ve+"]").each(function(Be,At){var Rt=Xe(At).attr(Ve),Pt=Ge[Rt];Pt||(Pt=Ge[Rt]=[]),Pt.push(Xe(At))}),Ge},selectedSingleItems:function(){var Ve=ze.attr("range-selected");return this.element.find(this.options.filter+"."+(this.options.selectedClass||Hn)+":not(["+Ve+"])").toArray().map(function(Ge){return Xe(Ge)})},_firstSelectee:function(){var Ve,Je=this;return null!==Je._lastActive?Je._lastActive:(Ve=Je.value()).length>0?Ve[0]:Je.element.find(Je.options.filter)[0]},_selectElement:function(Je,Ve){var Ge=Xe(Je),Be=this.options.selectedClass||Hn,At=!Ve&&this._notify("select",{element:Je});Ge.removeClass(Ui),At||(Ge.addClass(Be),this.options.aria&&Ge.attr(Dt,!0))},_notify:function(Je,Ve){return this.trigger(Je,Ve=Ve||{})},_unselect:function(Je){if(!this.trigger(Dn,{element:Je})){var Ve=ze.attr("range-selected");return Je.removeClass(this.options.selectedClass||Hn).removeAttr(Ve),this.options.aria&&Je.attr(Dt,!1),Je}},_select:function(Je){this._allowSelection(Je.event.target)&&(!Ot||Ot&&!Xe(ze._activeElement()).is(this.options.inputSelectors))&&Je.preventDefault()},_allowSelection:function(Je){return!Xe(Je).is(this.options.inputSelectors)||(this.userEvents.cancel(),this._downTarget=null,!1)},resetTouchEvents:function(){this.userEvents.cancel()},clear:function(){var Je=this.element.find(this.options.filter+"."+(this.options.selectedClass||Hn));this._unselect(Je)},selectRange:function(Je,Ve){var Be,At,Rt,Ge=this;for(Ge.clear(),Ge.element.length>1&&(Rt=Ge.options.continuousItems()),(!Rt||!Rt.length)&&(Rt=Ge.element.find(Ge.options.filter)),(Je=Xe.inArray(Xe(Je)[0],Rt))>(Ve=Xe.inArray(Xe(Ve)[0],Rt))&&(At=Je,Je=Ve,Ve=At),Ge.options.useAllItems||(Ve+=Ge.element.length-1),Be=Je;Be<=Ve;Be++)Ge._selectElement(Rt[Be],!0)},destroy:function(){var Je=this;St.fn.destroy.call(Je),Je.element.off(".kendoSelectable"),Je.userEvents.destroy(),Je._marquee=Je._lastActive=Je.element=Je.userEvents=null}}));function Nt(Je,Ve){if(Je.length!==Ve.length)return!1;for(var Ge=0;Ge<Je.length;Ge++)if(Je[Ge]!==Ve[Ge])return!1;return!0}function an(Je,Ve){if(!Je.is(":visible"))return!1;var Ge=ze.getOffset(Je),Be=Ve.left+Ve.width,At=Ve.top+Ve.height;return Ge.right=Ge.left+ze._outerWidth(Je),Ge.bottom=Ge.top+ze._outerHeight(Je),!(Ge.left>Be||Ge.right<Ve.left||Ge.top>At||Ge.bottom<Ve.top)}function $e(Je,Ve){return!(Je.right<=Ve.left||Je.left>=Ve.right||Je.bottom<=Ve.top||Je.top>=Ve.bottom)}return ft.parseOptions=function(Je){var Ve=Je.mode||Je,Ge="string"==typeof Ve&&Ve.toLowerCase();return{multiple:Ge&&Ge.indexOf("multiple")>-1,cell:Ge&&Ge.indexOf("cell")>-1}},ze.ui.plugin(ft),window.kendo}.apply(K={},ur=[e,k]))&&(V=K),void 0===(X=function(){var Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,St=ze.support,it=ze.ui,Dt=it.Widget,Hn=ze.keys,Ui=ze.parseDate,Co=ze.date.adjustDST,Sn=ze.date.weekInYear,Vn=ze.ui.Selectable,Dn=ze._extractFormat,kn=ze.template,ui=ze.getCulture,Ot=ze.support.transitions,en=Ot?Ot.css+"transform-origin":"",cn=kn('<td class="#=data.cssClass#" role="gridcell"><a tabindex="-1" class="k-link" href="\\#" data-#=data.ns#value="#=data.dateString#">#=data.value#</a></td>',{useWithBlock:!1}),Ht=kn('<td role="gridcell" class="k-calendar-td k-out-of-range"><a class="k-link"></a></td>',{useWithBlock:!1}),ft=kn('<td role="gridcell" class="k-calendar-td k-out-of-range">&nbsp;</td>',{useWithBlock:!1}),Nt=kn('<td class="k-calendar-td k-alt">#= data.weekNumber #</td>',{useWithBlock:!1}),an=ze._outerWidth,$e=".kendoCalendar",Je="click"+$e,Ve="keydown"+$e,Rt="slideIn",Pt="month",$t="century",Xn="change",Nn="navigate",Ae="value",Kt="k-disabled",On="k-focus",Fi="k-other-month",Wn="td:has(.k-link)",Vt="td:has(.k-link):not(."+Kt+"):not(.k-out-of-range)",bn="k-selected",ii="blur"+$e,Jn="focus"+$e,zt=St.touch?"touchstart":"mouseenter",mn=St.touch?"touchstart"+$e:"mouseenter"+$e,Qn=St.touch?"touchend"+$e+" touchmove"+$e:"mouseleave"+$e,Ai="_prevArrow",Pn="_nextArrow",qn="aria-disabled",Ni="aria-selected",Ue="aria-label",Ye=Xe.extend,Me=Date,pe={month:0,year:1,decade:2,century:3},lt=".k-header, .k-calendar-header",yt='<div class="k-header k-hstack"><a tabindex="-1" href="\\#" #=actionAttr#="prev" role="button" class="k-nav-prev k-button #=size# k-rounded-md k-button-flat k-button-flat-base k-icon-button" '+Ue+'="Previous"><span class="k-button-icon k-icon k-i-arrow-60-left"></span></a><a tabindex="-1" href="\\#" #=actionAttr#="nav-up" role="button" id="nav-up" class="k-nav-fast k-button #=size# k-rounded-md k-button-flat k-button-flat-base  k-flex"></a><a tabindex="-1" href="\\#" #=actionAttr#="next" role="button" class="k-nav-next k-button #=size# k-rounded-md k-button-flat k-button-flat-base  k-icon-button" '+Ue+'="Next"><span class="k-icon k-i-arrow-60-right"></span></a></div>',zi=Dt.extend({init:function(pi,to){var Sr,Ro=this;(to=to||{}).componentType=to.componentType||"classic",Dt.fn.init.call(Ro,pi,to),pi=Ro.wrapper=Ro.element,(to=Ro.options).url=ze.unescape(to.url),Ro.options.disableDates=Ws(Ro.options.disableDates),Ro._templates(),Ro._selectable(),Ro._header(),Ro._viewWrapper(),Ro.options.hasFooter?Ro._footer(Ro.footer):(Ro._today=Ro.element.find("a.k-nav-today"),Ro._toggle()),pi.addClass("k-widget k-calendar "+(to.weekNumber?" k-week-number":"")).on(mn+" "+Qn,Wn,jr).on(Ve,"table.k-content",Ro._move.bind(Ro)).on(Je+" touchend",Wn,function(Os){var Ys=Os.currentTarget.firstChild,la=vo(Ys);-1!=Ys.href.indexOf("#")&&Os.preventDefault(),("month"!=Ro._view.name||!Ro.options.disableDates(la))&&("month"!=Ro._view.name||"single"==to.selectable)&&Ro._click(Xe(Ys))}).on("mouseup"+$e,"table.k-content, .k-footer",function(){Ro._focusView(!1!==Ro.options.focusOnNav)}).attr("id"),Ro._isMultipleSelection()&&Ro.options.weekNumber&&pi.on(Je,"td:not(:has(.k-link))",function(Os){var Ys=Xe(Os.currentTarget).closest("tr").find(Vt).first(),la=Ro.selectable._lastActive=Xe(Os.currentTarget).closest("tr").find(Vt).last();Ro.selectable.selectRange(Ys,la),Ro.selectable.trigger(Xn,{event:Os}),Ro._current=Ro._value=vo(la.find("a")),Ro._setCurrent(Ro._current)}),ks(to),Sr=Ui(to.value,to.format,to.culture),Ro._selectDates=[],Ro._index=pe[to.start],Ro._current=new Me(+wo(Sr,to.min,to.max)),Ro._addClassProxy=function(){if(Ro._active=!0,Ro._cell.hasClass(Kt)){var Os=Ro._view.toDateString(ro());Ro._cell=Ro._cellByDate(Os)}Ro._cell.addClass(On)},Ro._removeClassProxy=function(){Ro._active=!1,Ro._cell&&Ro._cell.removeClass(On)},Ro.value(Sr),Ro._isMultipleSelection()&&to.selectDates.length>0&&Ro.selectDates(to.selectDates),ze.notify(Ro)},options:{name:"Calendar",value:null,min:new Me(1900,0,1),max:new Me(2099,11,31),dates:[],disableDates:null,url:"",culture:"",footer:"",format:"",month:{},weekNumber:!1,selectable:"single",selectDates:[],start:Pt,depth:Pt,size:"medium",animation:{horizontal:{effects:Rt,reverse:!0,duration:500,divisor:2},vertical:{effects:"zoomIn",duration:400}},messages:{weekColumnHeader:"",today:"Today",navigateTo:"Navigate to ",parentViews:{month:"year view",year:"decade view",decade:"century view"}},componentType:"classic"},events:[Xn,Nn],componentTypes:{classic:{header:{template:yt},hasFooter:!0,linksSelector:".k-button",contentClasses:"k-calendar-table k-content"},modern:{header:{template:'<div class="k-calendar-header k-hstack"><a href="\\#" #=actionAttr#="nav-up" id="nav-up" role="button" class="k-calendar-title k-title k-button #=size# k-rounded-md k-button-flat k-button-flat-base "></a><span class="k-spacer"></span><span class="k-calendar-nav k-hstack"><a tabindex="-1" #=actionAttr#="prev" class="k-button #=size# k-rounded-md k-button-flat k-button-flat-base  k-icon-button k-prev-view"><span class="k-button-icon k-icon k-i-arrow-60-left"></span></a><a tabindex="-1" #=actionAttr#="today" class="k-nav-today">#=messages.today#</a><a tabindex="-1" #=actionAttr#="next" class="k-button #=size# k-rounded-md k-button-flat k-button-flat-base  k-icon-button k-next-view"><span class="k-button-icon k-icon k-i-arrow-60-right"></span></a></span></div>'},hasFooter:!1,linksSelector:".k-button",contentClasses:"k-calendar-table k-content k-calendar-content"}},setOptions:function(pi){var to=this;ks(pi),pi.disableDates=Ws(pi.disableDates),to._destroySelectable(),pi.messages&&(pi.messages=Xe.extend({},!0,to.options.messages,pi.messages)),Dt.fn.setOptions.call(to,pi),to._templates(),to._selectable(),to._viewWrapper(),to.options.hasFooter?to._footer(to.footer):(to.element.find(".k-footer").hide(),to._toggle()),to._index=pe[to.options.start],to.navigate(),pi.weekNumber&&to.element.addClass("k-week-number")},destroy:function(){var pi=this,to=pi._today;pi.element.off($e),pi._title.off($e),pi[Ai].off($e),pi[Pn].off($e),pi._destroySelectable(),ze.destroy(pi._table),to&&ze.destroy(to.off($e)),Dt.fn.destroy.call(pi)},current:function(){return this._current},view:function(){return this._view},focus:function(pi){this._bindTable(pi=pi||this._table),pi.trigger("focus")},min:function(pi){return this._option("min",pi)},max:function(pi){return this._option("max",pi)},navigateToPast:function(){this._navigate(Ai,-1)},navigateToFuture:function(){this._navigate(Pn,1)},navigateUp:function(){var to=this._index;this._title.hasClass(Kt)||this.navigate(this._current,++to)},navigateDown:function(pi){var to=this,Ro=to._index;if(pi){if(Ro===pe[to.options.depth])return void((!Qi(to._value,to._current)||!Qi(to._value,pi))&&(to.value(pi),to.trigger(Xn)));to.navigate(pi,--Ro)}},navigate:function(pi,to){to=isNaN(to)?pe[to]:to;var eo,To,Qo,Dr,Ro=this,Sr=Ro.options,rs=Sr.culture,Os=Sr.min,Ys=Sr.max,la=Ro._title,Da=Ro._table,Ka=Ro._oldTable,nl=Ro._current,il=pi&&+pi>+nl,xl=to!==Ke&&to!==Ro._index,_s=Ro.element.children(".k-calendar-view");if(pi||(pi=nl),Ro._current=pi=new Me(+wo(pi,Os,Ys)),to===Ke?to=Ro._index:Ro._index=to,Ro._view=To=Kn.views[to],Qo=To.compare,la.toggleClass(Kt,Dr=to===pe[$t]).attr(qn,Dr),Dr=Qo(pi,Os)<1,Ro[Ai].toggleClass(Kt,Dr).attr(qn,Dr),Dr=Qo(pi,Ys)>-1,Ro[Pn].toggleClass(Kt,Dr).attr(qn,Dr),Da&&Ka&&Ka.data("animating")&&(Ka.kendoStop(!0,!0),Da.kendoStop(!0,!0)),Ro._oldTable=Da,!Da||Ro._changeView){la.html(To.title(pi,Os,Ys,rs)),Ro.options.messages.parentViews&&Ro._view.name!==$t?la.attr("title",Ro.options.messages.navigateTo+Ro.options.messages.parentViews[Ro._view.name]):la.removeAttr("title"),Ro._table=eo=Xe(To.content(Ye({min:Os,max:Ys,date:pi,url:Sr.url,dates:Sr.dates,format:Sr.format,otherMonth:!0,culture:rs,disableDates:Sr.disableDates,isWeekColumnVisible:Sr.weekNumber,messages:Sr.messages,contentClasses:Ro.options.contentClasses},Ro[To.name]))),Ro._aria(),ts(eo,To.name);var ia=Da&&Da.data("start")===eo.data("start");Ro._animate({from:Da,to:eo,vertical:xl,future:il,replace:ia}),_s.removeClass("k-calendar-monthview k-calendar-yearview k-calendar-decadeview k-calendar-centuryview"),_s.addClass("k-calendar-"+To.name+"view"),Ro.trigger(Nn),Ro._focus(pi)}to===pe[Sr.depth]&&Ro._selectDates.length>0&&Ro._visualizeSelectedDatesInView(),"single"===Ro.options.selectable&&to===pe[Sr.depth]&&Ro._value&&!Ro.options.disableDates(Ro._value)&&Ro._selectCell(Ro._value),Ro._setCurrent(pi),!Da&&Ro._cell&&Ro._cell.removeClass(On),Ro._changeView=!0},selectDates:function(pi){var Ro,Sr,to=this;if(pi===Ke)return to._selectDates;Sr=pi.map(function(rs){return rs.getTime()}).filter(function(rs,Os,Ys){return Ys.indexOf(rs)===Os}).map(function(rs){return new Date(rs)}),Ro=Xe.grep(Sr,function(rs){if(rs)return+to._validateValue(new Date(rs.setHours(0,0,0,0)))==+rs}),to._selectDates=Ro.length>0?Ro:0===Sr.length?Sr:to._selectDates,to._visualizeSelectedDatesInView()},value:function(pi){var to=this,Ro=to._view,Sr=to._view;if(pi===Ke)return to._value;if((pi=to._validateValue(pi))&&to._isMultipleSelection()){var rs=new Date(+pi);rs.setHours(0,0,0,0),to._selectDates=[rs],to.selectable._lastActive=null}Ro&&null===pi&&to._cell?to._cell.removeClass(bn):(to._changeView=!pi||Sr&&0!==Sr.compare(pi,to._current),to.navigate(pi))},_aria:function(){var pi=this._table;pi.attr("aria-labelledby",this._title.attr("id")),"month"===this._view.name&&"multiple"===this.options.selectable&&pi.attr("aria-multiselectable","true")},_validateValue:function(pi){var to=this,Ro=to.options,Sr=Ro.min,rs=Ro.max;return null===pi&&(to._current=Ms(to._current.getFullYear(),to._current.getMonth(),to._current.getDate())),null!==(pi=Ui(pi,Ro.format,Ro.culture))&&(io(pi=new Me(+pi),Sr,rs)||(pi=null)),null!==pi&&to.options.disableDates(new Date(+pi))?to._value===Ke&&(to._value=null):to._value=pi,to._value},_visualizeSelectedDatesInView:function(){var to={};Xe.each(this._selectDates,function(Sr,rs){to[ze.calendar.views[0].toDateString(rs)]=rs}),this.selectable.clear();var Ro=this._table.find(Wn).filter(function(Sr,rs){return to[Xe(rs.firstChild).attr(ze.attr(Ae))]});Ro.length>0&&this.selectable._selectElement(Ro,!0)},_isMultipleSelection:function(){return"multiple"===this.options.selectable},_selectable:function(){var pi=this;if(pi._isMultipleSelection()){var Ro=Vn.parseOptions(pi.options.selectable);pi.selectable=new Vn(pi.wrapper,{aria:!0,inputSelectors:"input,textarea,.k-multiselect-wrap,select,button,.k-button>span,.k-button>img,span.k-icon.k-i-arrow-60-down,span.k-icon.k-i-arrow-60-up",multiple:Ro.multiple,filter:"table.k-month:eq(0) "+Vt,change:pi._onSelect.bind(pi),relatedTarget:pi._onRelatedTarget.bind(pi)})}},_onRelatedTarget:function(pi){this.selectable.options.multiple&&pi.is(Vt)&&(this._current=vo(pi.find("a")),this._setCurrent(this._current))},_onSelect:function(pi){var to=this,Ro=pi;Vn.parseOptions(to.options.selectable).multiple?(Ro.event.ctrlKey||Ro.event.metaKey?Xe(Ro.event.currentTarget).is(Vt)?to._toggleSelection(Xe(Ro.event.currentTarget)):(to._cellsBySelector(Vt).each(function(rs,Os){var Ys=vo(Xe(Os).find("a"));to._deselect(Ys)}),to._addSelectedCellsToArray()):Ro.event.shiftKey?to._rangeSelection(to._cell):Xe(Ro.event.currentTarget).is(Wn)?to.value(vo(Xe(Ro.event.currentTarget).find("a"))):(to._selectDates=[],to._addSelectedCellsToArray()),to.trigger(Xn)):Xe(Ro.event.currentTarget).is("td")&&!Xe(Ro.event.currentTarget).hasClass("k-selected")?Xe(Ro.event.currentTarget).addClass("k-selected"):to._click(Xe(Ro.event.currentTarget).find("a"))},_destroySelectable:function(){this.selectable&&(this.selectable.destroy(),this.selectable=null)},_toggleSelection:function(pi){var Ro=vo(pi.find("a"));pi.hasClass("k-selected")?this._selectDates.push(Ro):this._deselect(Ro)},_rangeSelection:function(pi,to){var Os,Ro=this,Sr=to||vo(Ro.selectable.value().first().find("a")),rs=vo(pi.find("a"));Ro.selectable._lastActive||Ro._value?Sr=Ro.selectable._lastActive?vo(Ro.selectable._lastActive.find("a")):new Date(+Ro._value):Ro.selectable._lastActive=to?Ro._cellByDate(Ro._view.toDateString(to),Vt):Ro.selectable.value().first(),Ro._selectDates=[],Os=cr(Sr,rs),Fr(Ro._selectDates,Os,Sr,Ro.options.disableDates),Ro._visualizeSelectedDatesInView()},_cellsBySelector:function(pi){return this._table.find(pi)},_addSelectedCellsToArray:function(){var pi=this;pi.selectable.value().each(function(to,Ro){var Sr=vo(Xe(Ro.firstChild));pi.options.disableDates(Sr)||pi._selectDates.push(Sr)})},_deselect:function(pi){var Ro=this._selectDates.map(Number).indexOf(+pi);-1!=Ro&&this._selectDates.splice(Ro,1)},_dateInView:function(pi){var Ro=vo(this._cellsBySelector(Vt).first().find("a"));return+pi<=+vo(this._cellsBySelector(Vt).last().find("a"))&&+pi>=+Ro},_isNavigatable:function(pi,to){var Os,Sr=this.options.disableDates;return"month"==this._view.name?!Sr(pi):(Os=this.wrapper.find("."+On).index(),this.wrapper.find(".k-content td").eq(Os+to).is(Vt)||!Sr(pi))},_move:function(pi){var il,xl,eo,To,to=this,Ro=to.options,Sr=pi.keyCode,rs=to._view,Os=to._index,Ys=to.options.min,la=to.options.max,Da=new Me(+to._current),Ka=ze.support.isRtl(to.wrapper),nl=to.options.disableDates;if(pi.target===to._table[0]&&(to._active=!0),Sr==Hn.RIGHT&&!Ka||Sr==Hn.LEFT&&Ka?(il=1,xl=!0):Sr==Hn.LEFT&&!Ka||Sr==Hn.RIGHT&&Ka?(il=-1,xl=!0):Sr==Hn.UP?(il=0===Os?-7:-4,xl=!0):Sr==Hn.DOWN?(il=0===Os?7:4,xl=!0):Sr==Hn.SPACEBAR?(il=0,xl=!0):Sr==Hn.HOME||Sr==Hn.END?(To=rs[eo=Sr==Hn.HOME?"first":"last"](Da),(Da=new Me(To.getFullYear(),To.getMonth(),To.getDate(),Da.getHours(),Da.getMinutes(),Da.getSeconds(),Da.getMilliseconds())).setFullYear(To.getFullYear()),xl=!0):84===Sr&&(to._todayClick(pi),xl=!0),pi.ctrlKey||pi.metaKey){if(Sr==Hn.RIGHT&&!Ka||Sr==Hn.LEFT&&Ka)to.navigateToFuture(),xl=!0;else if(Sr==Hn.LEFT&&!Ka||Sr==Hn.RIGHT&&Ka)to.navigateToPast(),xl=!0;else if(Sr==Hn.UP)to.navigateUp(),xl=!0;else if(Sr==Hn.DOWN)to._click(Xe(to._cell[0].firstChild)),xl=!0;else if((Sr==Hn.ENTER||Sr==Hn.SPACEBAR)&&to._isMultipleSelection()){to._keyboardToggleSelection(pi);var Qo=vo(Xe(to._cell[0]).find("a"));to._setCurrent(Qo)}}else pi.shiftKey?(il!==Ke||eo)&&(eo||rs.setDate(Da,il),io(Da,Ys,la)||(Da=wo(Da,Ro.min,Ro.max)),nl(Da)&&(Da=to._nextNavigatable(Da,il)),Ys=Ms(Ys.getFullYear(),Ys.getMonth(),Ys.getDate()),to._isMultipleSelection()?to._keyboardRangeSelection(pi,Da):to._focus(Da)):(Sr==Hn.ENTER||Sr==Hn.SPACEBAR?("month"==rs.name&&to._isMultipleSelection()?(to.value(vo(Xe(to._cell.find("a")))),to.selectable._lastActive=Xe(to._cell[0]),to.trigger(Xn)):to._click(Xe(to._cell[0].firstChild)),xl=!0):Sr==Hn.PAGEUP?(xl=!0,to.navigateToPast()):Sr==Hn.PAGEDOWN&&(xl=!0,to.navigateToFuture()),(il||eo)&&(eo||rs.setDate(Da,il),io(Da,Ys=Ms(Ys.getFullYear(),Ys.getMonth(),Ys.getDate()),la)||(Da=wo(Da,Ro.min,Ro.max)),to._isNavigatable(Da,il)||(Da=to._nextNavigatable(Da,il)),to._isMultipleSelection()?to._dateInView(Da)?(to._current=Da,to._setCurrent(Da)):to.navigate(Da):to._focus(Da)));return xl&&pi.preventDefault(),to._current},_keyboardRangeSelection:function(pi,to){var Sr,rs,Ro=this;if(!Ro._dateInView(to))return Ro._selectDates=[],rs=cr(Sr=Ro.selectable._lastActive?vo(Ro.selectable._lastActive.find("a")):to,new Date(+to)),Fr(Ro._selectDates,rs,Sr,Ro.options.disableDates),Ro.navigate(to),Ro._current=to,Ro.selectable._lastActive=Ro.selectable._lastActive||Ro._cellByDate(Ro._view.toDateString(to),Vt),void Ro.trigger(Xn);Ro.selectable.options.filter=Ro.wrapper.find("table").length>1&&+to>+Ro._current?"table.k-month:eq(1) "+Vt:"table.k-month:eq(0) "+Vt,Ro._setCurrent(to),Ro._current=to,Ro._rangeSelection(Ro._cellByDate(Ro._view.toDateString(to),Vt),to),Ro.trigger(Xn),Ro.selectable.options.filter="table.k-month:eq(0) "+Vt},_keyboardToggleSelection:function(pi){var to=this;pi.currentTarget=to._cell[0],to.selectable._lastActive=Xe(to._cell[0]),Xe(to._cell[0]).hasClass(bn)?to.selectable._unselect(Xe(to._cell[0])):to.selectable.value(Xe(to._cell[0])),to.selectable.trigger(Xn,{event:pi})},_nextNavigatable:function(pi,to){var Sr=!0,rs=this._view,Os=this.options.min,Ys=this.options.max,la=this.options.disableDates,Da=new Date(pi.getTime());for(rs.setDate(Da,-to);Sr;){if(rs.setDate(pi,to),!io(pi,Os,Ys)){pi=Da;break}Sr=la(pi)}return pi},_animate:function(pi){var to=this,Ro=pi.from,Sr=pi.to,rs=to._active,Os=to.element.children(".k-calendar-view");Ro?Ro.parent().data("animating")?(Ro.off($e),Ro.parent().kendoStop(!0,!0).remove(),Ro.remove(),Os.append(Sr),to._focusView(rs)):!Ro.is(":visible")||!1===to.options.animation||pi.replace?(Sr.insertAfter(Ro),Ro.off($e).remove(),to._focusView(rs)):to[pi.vertical?"_vertical":"_horizontal"](Ro,Sr,pi.future):(Os.append(Sr),to._bindTable(Sr))},_horizontal:function(pi,to,Ro){var Sr=this,rs=Sr._active,Os=Sr.options.animation.horizontal,Ys=Os.effects,la=an(pi),Da=an(pi,!0)-la;Ys&&-1!=Ys.indexOf(Rt)&&(pi.add(to).css({width:la}),pi.wrap("<div/>"),Sr._focusView(rs,pi),pi.parent().css({position:"relative",width:2*la+2*Da,display:"flex","margin-left":Ro?0:-la-Da}),to[Ro?"insertAfter":"insertBefore"](pi),Ye(Os,{effects:Rt+":"+(Ro?"right":"left"),complete:function(){pi.off($e).remove(),Sr._oldTable=null,to.unwrap(),Sr._focusView(rs)}}),pi.parent().kendoStop(!0,!0).kendoAnimate(Os))},_vertical:function(pi,to){var Ys,la,Ro=this,Sr=Ro.options.animation.vertical,rs=Sr.effects,Os=Ro._active;rs&&-1!=rs.indexOf("zoom")&&(to.insertBefore(pi),pi.css({position:"absolute",width:to.width()}),en&&(la=(la=(Ys=Ro._cellByDate(Ro._view.toDateString(Ro._current))).position()).left+parseInt(Ys.width()/2,10)+"px "+(la.top+parseInt(Ys.height()/2,10))+"px",to.css(en,la)),pi.kendoStop(!0,!0).kendoAnimate({effects:"fadeOut",duration:600,complete:function(){pi.off($e).remove(),Ro._oldTable=null,Ro._focusView(Os)}}),to.kendoStop(!0,!0).kendoAnimate(Sr))},_cellByDate:function(pi,to){return this._table.find(to||"td:not(."+Fi+")").filter(function(){return Xe(this.firstChild).attr(ze.attr(Ae))===pi})},_selectCell:function(pi){var to=this,Ro=to._selectedCell,Sr=to._view.toDateString(pi);Ro&&Ro[0]&&(Ro[0].removeAttribute(Ni),Ro.removeClass(bn)),Ro=to._cellByDate(Sr,"multiple"==to.options.selectable?Wn:"td:not(."+Fi+")"),to._selectedCell=Ro,Ro.addClass(bn).attr(Ni,!0)},_setCurrent:function(pi){var to=this,Ro=ze.guid(),Sr=to._cell,rs=to._view.toDateString(pi);Sr&&Sr[0]&&(Sr.removeClass(On),Sr[0].removeAttribute(Ue),Sr[0].removeAttribute("id")),Sr=to._cellByDate(rs,"multiple"==to.options.selectable?Wn:"td:not(."+Fi+")"),to._cell=Sr,Sr.attr("id",Ro).addClass(On),to._table[0]&&(to._table[0].removeAttribute("aria-activedescendant"),to._table.attr("aria-activedescendant",Ro))},_bindTable:function(pi){pi.on(Jn,this._addClassProxy).on(ii,this._removeClassProxy)},_click:function(pi){var to=this,Ro=to.options,Sr=new Date(+to._current),rs=vo(pi);Co(rs,0),"month"==to._view.name&&to.options.disableDates(rs)&&(rs=to._value),to._view.setDate(Sr,rs),to.navigateDown(wo(Sr,Ro.min,Ro.max))},_focus:function(pi){var to=this;0!==to._view.compare(pi,to._current)?to.navigate(pi):(to._current=pi,to._setCurrent(pi))},_focusView:function(pi,to){pi&&this.focus(to)},_viewWrapper:function(){var to=this.element,Ro=to.children(".k-calendar-view");Ro[0]||(Ro=Xe("<div class='k-calendar-view' />").insertAfter(to.find(lt)))},_footer:function(pi){var to=this,Ro=ro(),Sr=to.element,rs=Sr.find(".k-footer");if(!pi)return to._toggle(!1),void rs.hide();rs[0]||(rs=Xe('<div class="k-footer"><a tabindex="-1" href="#" class="k-link k-nav-today"></a></div>').appendTo(Sr)),to._today=rs.show().find(".k-link").html(pi(Ro)).attr("title",ze.toString(Ro,"D",to.options.culture)),to._toggle()},_header:function(){var pi=this,to=pi.element,Ro=pi.options.linksSelector;to.find(lt)[0]||to.html(ze.template(pi.options.header.template)(Xe.extend(!0,{},pi.options,{actionAttr:ze.attr("action"),size:ze.getValidCssClass("k-button-","size",pi.options.size)}))),to.find(Ro).on(Je+" touchend"+$e,function(){return!1}),pi._title=to.find("["+ze.attr("action")+'="nav-up"]').on(Je+" touchend"+$e,function(){pi._active=!1!==pi.options.focusOnNav,pi.navigateUp()}),pi[Ai]=to.find("["+ze.attr("action")+'="prev"]').on(Je+" touchend"+$e,function(){pi._active=!1!==pi.options.focusOnNav,pi.navigateToPast()}),pi[Pn]=to.find("["+ze.attr("action")+'="next"]').on(Je+" touchend"+$e,function(){pi._active=!1!==pi.options.focusOnNav,pi.navigateToFuture()}),to.find("["+ze.attr("action")+'="today"]').on(Je+" touchend"+$e,pi._todayClick.bind(pi))},_navigate:function(pi,to){var Ro=this,Sr=Ro._index+1,rs=new Me(+Ro._current);Ro._isMultipleSelection()&&(rs=vo(Ro._table.find("td:not(.k-other-month):not(.k-out-of-range)").has(".k-link").first().find("a")),Ro._current=new Date(+rs)),(pi=Ro[pi]).hasClass(Kt)||(Sr>3?rs.setFullYear(rs.getFullYear()+100*to):Kn.views[Sr].setDate(rs,to),Ro.navigate(rs))},_option:function(pi,to){var Os,Ro=this,Sr=Ro.options,rs=Ro._value||Ro._current;if(to===Ke)return Sr[pi];(to=Ui(to,Sr.format,Sr.culture))&&(Sr[pi]=new Me(+to),((Os="min"===pi?to>rs:rs>to)||function _a(pi,to){return!!pi&&pi.getFullYear()===to.getFullYear()&&pi.getMonth()===to.getMonth()}(rs,to))&&(Os&&(Ro._value=null),Ro._changeView=!0),Ro._changeView||(Ro._changeView=!(!Sr.month.content&&!Sr.month.empty)),Ro.navigate(Ro._value),Ro._toggle())},_toggle:function(pi){var to=this,Ro=to.options,Sr=to.options.disableDates(ro()),rs=to._today,Os=to._todayClass();pi===Ke&&(pi=io(ro(),Ro.min,Ro.max)),rs&&(rs.off(Je),pi&&!Sr?rs.addClass(Os).removeClass(Kt).on(Je,to._todayClick.bind(to)):rs.removeClass(Os).addClass(Kt).on(Je,fs))},_todayClass:function(){return"k-nav-today"},_todayClick:function(pi){var to=this,Ro=pe[to.options.depth],Sr=to.options.disableDates,rs=ro();pi.preventDefault(),!Sr(rs)&&(0===to._view.compare(to._current,rs)&&to._index==Ro&&(to._changeView=!1),to._isMultipleSelection()&&(to._selectDates=[rs],to.selectable._lastActive=null),to._value=rs,to.navigate(rs,Ro),to.trigger(Xn))},_templates:function(){var to=this.options,Ro=to.footer,Sr=to.month,rs=Sr.content,Os=Sr.weekNumber,Ys=Sr.empty,la='#= kendo.toString(data,"D","'+to.culture+'") #';this.month={content:kn('<td class="#=data.cssClass#" role="gridcell"><a tabindex="-1" class="k-link#=data.linkClass#" href="#=data.url#" '+ze.attr(Ae)+'="#=data.dateString#" title="#=data.title#">'+(rs||"#=data.value#")+"</a></td>",{useWithBlock:!!rs}),empty:kn('<td role="gridcell">'+(Ys||"&nbsp;")+"</td>",{useWithBlock:!!Ys}),weekNumber:kn('<td class="k-alt">'+(Os||"#= data.weekNumber #")+"</td>",{useWithBlock:!!Os})},this.year={content:kn('<td class="#=data.cssClass#" role="gridcell"><a tabindex="-1" class="k-link" href="\\#" data-#=data.ns#value="#=data.dateString#" aria-label="#=data.label#">#=data.value#</a></td>',{useWithBlock:!1})},Ro&&!0!==Ro&&(la=Ro),this.footer=!1!==Ro?kn(la,{useWithBlock:!1}):null},_updateAria:function(pi,to){var Ys,Sr=this._cell,rs=this.view().valueType(),Os=to||this.current();return Ys="month"===rs?ze.toString(Os,"MMMM"):"date"===rs?ze.toString(Os,"D"):Sr.text(),Sr.attr("aria-label",pi({current:Os,valueType:rs,text:Ys})),Sr.attr("id")}}),Kn=(it.plugin(zi),{firstDayOfMonth:function(pi){return Ms(pi.getFullYear(),pi.getMonth(),1)},firstVisibleDay:function(pi,to){var Ro=(to=to||ze.culture().calendar).firstDay,Sr=new Me(pi.getFullYear(),pi.getMonth(),1,pi.getHours(),pi.getMinutes(),pi.getSeconds(),pi.getMilliseconds());for(Sr.setFullYear(pi.getFullYear());Sr.getDay()!=Ro;)Kn.setTime(Sr,-864e5);return Sr},setTime:function(pi,to){var Ro=pi.getTimezoneOffset(),Sr=new Me(pi.getTime()+to),rs=Sr.getTimezoneOffset()-Ro;pi.setTime(Sr.getTime()+6e4*rs)},views:[{name:Pt,title:function(pi,to,Ro,Sr){return Ca(Sr).months.names[pi.getMonth()]+" "+pi.getFullYear()},content:function(pi){var Ro=0,Sr=pi.min,rs=pi.max,Os=pi.date,Ys=pi.dates,la=pi.format,Da=pi.culture,Ka=pi.url,nl=pi.showHeader,il=pi.otherMonth,xl=pi.isWeekColumnVisible,eo=Ka&&Ys[0],To=Ca(Da),Qo=To.firstDay,Dr=To.days,_s=Wi(Dr.names,Qo),ia=Wi(Dr.namesShort,Qo),Ia=Kn.firstVisibleDay(Os,To),ar=this.first(Os),wa=this.last(Os),_l=this.toDateString,Ya=ro(),rl='<table tabindex="0" role="grid" class="'+pi.contentClasses+'" cellspacing="0" data-start="'+_l(Ia)+'">';for(nl&&(rl+='<caption class="k-calendar-caption k-month-header">'+this.title(Os,Sr,rs,Da)+"</caption>"),rl+='<thead class="k-calendar-thead"><tr role="row" class="k-calendar-tr">',xl&&(rl+='<th scope="col" class="k-calendar-th k-alt">'+pi.messages.weekColumnHeader+"</th>");Ro<7;Ro++)rl+='<th scope="col" class="k-calendar-th" aria-label="'+_s[Ro]+'">'+ia[Ro]+"</th>";return Co(Ya,0),Ya=+Ya,po({cells:42,perRow:7,html:rl+='</tr></thead><tbody class="k-calendar-tbody"><tr role="row" class="k-calendar-tr">',start:Ia,isWeekColumnVisible:xl,weekNumber:pi.weekNumber,min:Ms(Sr.getFullYear(),Sr.getMonth(),Sr.getDate()),max:Ms(rs.getFullYear(),rs.getMonth(),rs.getDate()),otherMonth:il,content:pi.content,lastDayOfMonth:wa,empty:pi.empty,setter:this.setDate,disableDates:pi.disableDates,build:function(Nl,nd,Ct){var rn=["k-calendar-td"],We=Nl.getDay(),Ft="",ct="#";return(Nl<ar||Nl>wa)&&rn.push(Fi),Ct(Nl)&&rn.push(Kt),+Nl===Ya&&rn.push("k-today"),(0===We||6===We)&&rn.push("k-weekend"),eo&&function na(pi,to){for(var Ro=0,Sr=to.length;Ro<Sr;Ro++)if(pi===+to[Ro])return!0;return!1}(+Nl,Ys)&&(ct=Ka.replace("{0}",ze.toString(Nl,la,Da)),Ft=" k-action-link"),{date:Nl,dates:Ys,ns:ze.ns,title:ze.toString(Nl,"D",Da),value:Nl.getDate(),dateString:_l(Nl),cssClass:rn.join(" "),linkClass:Ft,url:ct}},weekNumberBuild:function(Nl){return{weekNumber:Sn(Nl,ze.culture().calendar.firstDay),currentDate:Nl}}})},first:function(pi){return Kn.firstDayOfMonth(pi)},last:function(pi){var to=Ms(pi.getFullYear(),pi.getMonth()+1,0),Ro=Kn.firstDayOfMonth(pi),Sr=Math.abs(to.getTimezoneOffset()-Ro.getTimezoneOffset());return Sr&&to.setHours(Ro.getHours()+Sr/60),to},compare:function(pi,to){var Sr=pi.getMonth(),rs=pi.getFullYear(),Os=to.getMonth(),Ys=to.getFullYear();return rs>Ys?1:rs<Ys?-1:Sr==Os?0:Sr>Os?1:-1},setDate:function(pi,to){var Ro=pi.getHours();to instanceof Me?pi.setFullYear(to.getFullYear(),to.getMonth(),to.getDate()):Kn.setTime(pi,864e5*to),Co(pi,Ro)},toDateString:function(pi){return pi.getFullYear()+"/"+pi.getMonth()+"/"+pi.getDate()},valueType:function(){return"date"}},{name:"year",title:function(pi){return pi.getFullYear()},content:function(pi){var to=Ca(pi.culture).months,Ro=to.namesAbbr,Sr=to.names,rs=this.toDateString,Os=pi.min,Ys=pi.max,la="";return pi.showHeader&&(la+='<table tabindex="0" role="grid" class="k-calendar-table k-content k-meta-view" cellspacing="0">',la+='<caption class="k-calendar-caption k-meta-header">',la+=this.title(pi.date),la+="</caption>",la+='<tbody class="k-calendar-tbody">',la+='<tr role="row" class="k-calendar-tr">'),po({min:Ms(Os.getFullYear(),Os.getMonth(),1),max:Ms(Ys.getFullYear(),Ys.getMonth(),1),start:Ms(pi.date.getFullYear(),0,1),html:la,setter:this.setDate,content:pi.content,build:function(Da){return{value:Ro[Da.getMonth()],label:Sr[Da.getMonth()],ns:ze.ns,dateString:rs(Da),cssClass:["k-calendar-td"].join(" ")}}})},first:function(pi){return Ms(pi.getFullYear(),0,pi.getDate())},last:function(pi){return Ms(pi.getFullYear(),11,pi.getDate())},compare:function(pi,to){return $i(pi,to)},setDate:function(pi,to){var Ro,Sr=pi.getHours();to instanceof Me?(Ro=to.getMonth(),pi.setFullYear(to.getFullYear(),Ro,pi.getDate()),Ro!==pi.getMonth()&&pi.setDate(0)):(Ro=pi.getMonth()+to,pi.setMonth(Ro),Ro>11&&(Ro-=12),Ro>0&&pi.getMonth()!=Ro&&pi.setDate(0)),Co(pi,Sr)},toDateString:function(pi){return pi.getFullYear()+"/"+pi.getMonth()+"/1"},valueType:function(){return"month"}},{name:"decade",title:function(pi,to,Ro){return ho(pi,to,Ro,10)},content:function(pi){var to=pi.date.getFullYear(),Ro=this.toDateString,Sr="";return pi.showHeader&&(Sr+='<table tabindex="0" role="grid" class="k-calendar-table k-content k-meta-view" cellspacing="0">',Sr+='<caption class="k-meta-header">',Sr+=this.title(pi.date,pi.min,pi.max),Sr+="</caption>",Sr+='<tbody class="k-calendar-thead">',Sr+='<tr role="row" class="k-calendar-tr">'),po({start:Ms(to-to%10-1,0,1),min:Ms(pi.min.getFullYear(),0,1),max:Ms(pi.max.getFullYear(),0,1),otherMonth:pi.otherMonth,html:Sr,setter:this.setDate,build:function(rs,Os){var Ys=["k-calendar-td"];return(0===Os||11===Os)&&Ys.push(Fi),{value:rs.getFullYear(),ns:ze.ns,dateString:Ro(rs),cssClass:Ys.join(" ")}}})},first:function(pi){var to=pi.getFullYear();return Ms(to-to%10,pi.getMonth(),pi.getDate())},last:function(pi){var to=pi.getFullYear();return Ms(to-to%10+9,pi.getMonth(),pi.getDate())},compare:function(pi,to){return $i(pi,to,10)},setDate:function(pi,to){fo(pi,to,1)},toDateString:function(pi){return pi.getFullYear()+"/0/1"},valueType:function(){return"year"}},{name:$t,title:function(pi,to,Ro){return ho(pi,to,Ro,100)},content:function(pi){var to=pi.date.getFullYear(),Ro=pi.min.getFullYear(),Sr=pi.max.getFullYear(),rs=this.toDateString,Os=Ro,Ys=Sr,la="";return(Ys-=Ys%10)-(Os-=Os%10)<10&&(Ys=Os+9),pi.showHeader&&(la+='<table tabindex="0" role="grid" class="k-calendar-table k-content k-meta-view" cellspacing="0">',la+='<caption class="k-calendar-caption k-meta-header">',la+=this.title(pi.date,pi.min,pi.max),la+="</caption>",la+='<tbody class="k-calendar-tbody">',la+='<tr role="row" class="k-calendar-tr">'),po({start:Ms(to-to%100-10,0,1),min:Ms(Os,0,1),max:Ms(Ys,0,1),otherMonth:pi.otherMonth,html:la,setter:this.setDate,build:function(Da,Ka){var nl=["k-calendar-td"],il=Da.getFullYear(),xl=il+9;return(0===Ka||11===Ka)&&nl.push(Fi),il<Ro&&(il=Ro),xl>Sr&&(xl=Sr),{ns:ze.ns,value:il+" - "+xl,dateString:rs(Da),cssClass:nl.join(" ")}}})},first:function(pi){var to=pi.getFullYear();return Ms(to-to%100,pi.getMonth(),pi.getDate())},last:function(pi){var to=pi.getFullYear();return Ms(to-to%100+99,pi.getMonth(),pi.getDate())},compare:function(pi,to){return $i(pi,to,100)},setDate:function(pi,to){fo(pi,to,10)},toDateString:function(pi){var to=pi.getFullYear();return to-to%10+"/0/1"},valueType:function(){return"decade"}}]});function ho(pi,to,Ro,Sr){var la,rs=pi.getFullYear(),Os=to.getFullYear(),Ys=Ro.getFullYear();return la=(rs-=rs%Sr)+(Sr-1),rs<Os&&(rs=Os),la>Ys&&(la=Ys),rs+"-"+la}function po(pi){var Ro,to=0,Sr=pi.min,rs=pi.max,Os=pi.start,Ys=pi.setter,la=pi.build,Da=pi.weekNumberBuild,Ka=pi.cells||12,nl=pi.isWeekColumnVisible,il=pi.perRow||4,xl=pi.otherMonth,eo=pi.lastDayOfMonth,To=pi.weekNumber||Nt,Qo=pi.content||cn,Dr=pi.empty||Ht,_s=pi.otherMonthCellTemplate||ft,ia=pi.html||'<table tabindex="0" role="grid" class="k-calendar-table k-content k-meta-view" cellspacing="0"><tbody class="k-calendar-tbody"><tr role="row" class="k-calendar-tr">';for(nl&&(ia+=To(Da(Os)));to<Ka;to++)to>0&&to%il==0&&(ia+='</tr><tr role="row" class="k-calendar-tr">',nl&&(ia+=To(xl||+Os<=+eo?Da(Os):{weekNumber:"&nbsp;"}))),Os=Ms(Os.getFullYear(),Os.getMonth(),Os.getDate()),Co(Os,0),ia+=-1===(Ro=la(Os,to,pi.disableDates)).cssClass.indexOf(Fi)||xl?io(Os,Sr,rs)?Qo(Ro):Dr(Ro):_s(Ro),Ys(Os,1);return ia+"</tr></tbody></table>"}function $i(pi,to,Ro){var Sr=pi.getFullYear(),rs=to.getFullYear(),Os=rs,Ys=0;return Ro&&(Os=(rs-=rs%Ro)-rs%Ro+Ro-1),Sr>Os?Ys=1:Sr<rs&&(Ys=-1),Ys}function ro(){var pi=new Me;return new Me(pi.getFullYear(),pi.getMonth(),pi.getDate())}function wo(pi,to,Ro){var Sr=ro();return pi&&(Sr=new Me(+pi)),to>Sr?Sr=new Me(+to):Ro<Sr&&(Sr=new Me(+Ro)),Sr}function io(pi,to,Ro){return+pi>=+to&&+pi<=+Ro}function Wi(pi,to){return pi.slice(to).concat(pi.slice(0,to))}function fo(pi,to,Ro){to=to instanceof Me?to.getFullYear():pi.getFullYear()+Ro*to,pi.setFullYear(to)}function cr(pi,to){if(+to<+pi){var Ro=+pi;Kn.views[0].setDate(pi,to),Kn.views[0].setDate(to,new Date(Ro))}var Sr=Date.UTC(pi.getFullYear(),pi.getMonth(),pi.getDate()),rs=Date.UTC(to.getFullYear(),to.getMonth(),to.getDate());return Math.ceil((+rs-+Sr)/ze.date.MS_PER_DAY)}function Fr(pi,to,Ro,Sr){for(var rs=0;rs<=to;rs++){var Os=new Date(Ro.getTime());Sr(Os=new Date(Os.setDate(Os.getDate()+rs)))||pi.push(Os)}}function jr(pi){Xe(this).hasClass("k-disabled")||Xe(this).toggleClass("k-hover",zt.indexOf(pi.type)>-1||"focus"==pi.type)}function fs(pi){pi.preventDefault()}function Ms(pi,to,Ro){var Sr=new Me(pi,to,Ro);return Sr.setFullYear(pi,to,Ro),Sr}function Ca(pi){return ui(pi).calendars.standard}function ks(pi){var to=pe[pi.start],Ro=pe[pi.depth],Sr=ui(pi.culture);pi.format=Dn(pi.format||Sr.calendars.standard.patterns.d),isNaN(to)&&(to=0,pi.start=Pt),(Ro===Ke||Ro>to)&&(pi.depth=Pt),null===pi.dates&&(pi.dates=[])}function ts(pi,to){pi.addClass("k-"+to)}function Ws(pi){return ze.isFunction(pi)?pi:Array.isArray(pi)?function Ps(pi){var to,Sr=[],rs=["su","mo","tu","we","th","fr","sa"],Os="if (found) { return true } else {return false}";if(pi[0]instanceof Me)Sr=function cs(pi){for(var to=[],Ro=0;Ro<pi.length;Ro++)to.push(pi[Ro].setHours(0,0,0,0));return to}(pi),to="var clonedDate = new Date(date); var found = date && window.kendo.jQuery.inArray(clonedDate.setHours(0, 0, 0, 0),["+Sr+"]) > -1;"+Os;else{for(var Ys=0;Ys<pi.length;Ys++){var la=pi[Ys].slice(0,2).toLowerCase(),Da=Xe.inArray(la,rs);Da>-1&&Sr.push(Da)}to="var clonedDate = new Date(date); var found = date && window.kendo.jQuery.inArray(clonedDate.getDay(),["+Sr+"]) > -1;"+Os}return new Function("date",to)}(pi):Xe.noop}function Qi(pi,to){return pi instanceof Date&&to instanceof Date&&(pi=pi.getTime(),to=to.getTime()),pi===to}function vo(pi){var to=Xe(pi).attr(ze.attr(Ae)).split("/");return Ms(to[0],to[1],to[2])}return Kn.isEqualDatePart=function Xs(pi,to){return!!pi&&pi.getFullYear()===to.getFullYear()&&pi.getMonth()===to.getMonth()&&pi.getDate()===to.getDate()},Kn.isEqualDate=Qi,Kn.restrictValue=wo,Kn.isInRange=io,Kn.addClassToViewContainer=ts,Kn.normalize=ks,Kn.viewsEnum=pe,Kn.disabled=Ws,Kn.toDateObject=vo,Kn.getToday=ro,Kn.createDate=Ms,ze.calendar=Kn,window.kendo}.apply(me={},ur=[e,V]))&&(X=me),void 0===(J=function(){var Xe=window.kendo.jQuery,Ke=void 0,St=window.kendo,it=St.caret,Dt=St.ui,Hn=Dt.Widget,Ui=St.keys,Co=".kendoDateInput",Sn={}.toString,Vn=(St.support.propertyChangeEvent?"propertychange.kendoDateInput input":"input")+Co,Dn="k-focus",kn="k-disabled",ui="k-invalid",Ot="disabled",en="readonly",cn="change",Ht="dMyHhmftsz",ft=Hn.extend({init:function($e,Je){var Ve=this;Hn.fn.init.call(Ve,$e,Je),$e=Ve.element,(Je=Ve.options).format=St._extractFormat(Je.format||St.getCulture(Je.culture).calendars.standard.patterns.d),Je.min=St.parseDate($e.attr("min"))||St.parseDate(Je.min),Je.max=St.parseDate($e.attr("max"))||St.parseDate(Je.max);var Ge=$e.parent().attr("class")||"",Be=Ge.indexOf("picker")>=0&&Ge.indexOf("rangepicker")<0;Be?Ve.wrapper=$e.parent():(Ve.wrapper=$e.wrap("<span class='k-dateinput k-input'></span>").parent(),Ve.wrapper.addClass($e[0].className).removeClass("input-validation-error"),Ve.wrapper[0].style.cssText=$e[0].style.cssText,$e.css({height:$e[0].style.height})),Ve._validationIcon=Xe("<span class='k-input-validation-icon k-icon k-i-warning k-hidden'></span>").insertAfter($e),Ve._form(),Ve.element.addClass(Be?" ":"k-input-inner").attr("autocomplete","off").on("focus"+Co,function(){Ve.wrapper.addClass(Dn)}).on("focusout"+Co,function(){Ve.wrapper.removeClass(Dn),Ve._change()});try{$e[0].setAttribute("type","text")}catch{$e[0].type="text"}$e.is("[disabled]")||Xe(Ve.element).parents("fieldset").is(":disabled")?Ve.enable(!1):Ve.readonly($e.is("[readonly]")),Ve.value(Ve.options.value||$e.val()),Ve._applyCssClasses(),St.notify(Ve)},options:{name:"DateInput",culture:"",value:"",format:"",min:new Date(1900,0,1),max:new Date(2099,11,31),messages:{year:"year",month:"month",day:"day",weekday:"day of the week",hour:"hours",minute:"minutes",second:"seconds",dayperiod:"AM/PM"},size:"medium",fillMode:"solid",rounded:"medium"},events:[cn],min:function($e){if($e===Ke)return this.options.min;this.options.min=$e},max:function($e){if($e===Ke)return this.options.max;this.options.max=$e},setOptions:function($e){Hn.fn.setOptions.call(this,$e),this._unbindInput(),this._bindInput(),this._updateElementValue()},destroy:function(){var $e=this;$e.element.off(Co),$e._formElement&&$e._formElement.off("reset",$e._resetHandler),Hn.fn.destroy.call($e)},value:function($e){if($e===Ke)return this._dateTime.getDateObject();null===$e&&($e=""),"[object Date]"!==Sn.call($e)&&($e=St.parseDate($e,this.options.format,this.options.culture)),$e&&!$e.getTime()&&($e=null),this._dateTime=new Nt($e,this.options.format,this.options.culture,this.options.messages),this._updateElementValue(),this._oldValue=$e},_updateElementValue:function(){var $e=this._dateTime.toPair(this.options.format,this.options.culture,this.options.messages);this.element.val($e[0]),this._oldText=$e[0],this._format=$e[1]},readonly:function($e){this._editable({readonly:$e===Ke||$e,disable:!1})},enable:function($e){this._editable({readonly:!1,disable:!($e=$e===Ke||$e)})},_bindInput:function(){var $e=this;$e.element.on("focus"+Co,function(){$e.wrapper.addClass(Dn)}).on("focusout"+Co,function(){$e.wrapper.removeClass(Dn),$e._change()}).on("paste"+Co,$e._paste.bind($e)).on("keydown"+Co,$e._keydown.bind($e)).on(Vn,$e._input.bind($e)).on("mouseup"+Co,$e._mouseUp.bind($e)).on("DOMMouseScroll"+Co+" mousewheel"+Co,$e._scroll.bind($e))},_unbindInput:function(){this.element.off("keydown"+Co).off("paste"+Co).off("focus"+Co).off("focusout"+Co).off(Vn).off("mouseup"+Co).off("DOMMouseScroll"+Co+" mousewheel"+Co)},_editable:function($e){var Ve=this.element,Ge=$e.disable,Be=$e.readonly,At=this.wrapper;this._unbindInput(),Be||Ge?(Ge&&(At.addClass(kn),Ve.attr(Ot,Ge),Ve&&Ve.length&&Ve[0].removeAttribute(en)),Be&&Ve.attr(en,Be)):(At.removeClass(kn),Ve&&Ve.length&&(Ve[0].removeAttribute(Ot),Ve[0].removeAttribute(en)),this._bindInput())},_change:function(){var $e=this,Je=$e._oldValue,Ve=$e.value();Ve&&$e.min()&&Ve<$e.min()&&($e.value($e.min()),Ve=$e.value()),Ve&&$e.max()&&Ve>$e.max()&&($e.value($e.max()),Ve=$e.value()),(Je&&Ve&&Ve.getTime()!==Je.getTime()||Je&&!Ve||!Je&&Ve)&&($e._oldValue=Ve,$e.trigger(cn),$e.element.trigger(cn))},_input:function(){var $e=this,Je=$e.element[0],Ve=!1;if(St._activeElement()===Je){var Ge=function an($e,Je,Ve,Ge){var Rt,Be=$e[Ge+$e.length-Ve.length],At=[];if(($e=$e.substring(0,Ge+$e.length-Ve.length))===(Ve=Ve.substring(0,Ge))&&Ge>0)return At.push([Je[Ge-1],Ve[Ge-1]]),At;if(0===$e.indexOf(Ve)&&(0===Ve.length||Je[Ve.length-1]!==Je[Ve.length])){var Pt="";for(Rt=Ve.length;Rt<$e.length;Rt++)Je[Rt]!==Pt&&Ht.indexOf(Je[Rt])>=0&&At.push([Pt=Je[Rt],""]);return At}if(" "===Ve[Ve.length-1]||Ve[Ve.length-1]===Be)return[[Je[Ge-1]," "]];if(0===Ve.indexOf($e)||-1===Ht.indexOf(Je[Ge-1])){var $t=Je[0];for(Rt=Math.max(0,$e.length-1);Rt<Je.length;Rt++)if(Ht.indexOf(Je[Rt])>=0){$t=Je[Rt];break}return[[$t,Ve[Ge-1]]]}return[[Je[Ge-1],Ve[Ge-1]]]}(this._oldText,this._format,this.element[0].value,it(this.element[0])[0]),Be=1===Ge.length&&" "===Ge[0][1];if(!Be)for(var At=0;At<Ge.length;At++){var Rt=this._dateTime.parsePart(Ge[At][0],Ge[At][1]);Ve=Ve||!Rt}if(this._updateElementValue(),Ge.length&&" "!==Ge[0][0]&&(this._selectSegment(Ge[0][0]),!Be)){var Pt=Ge[0][0];setTimeout(function(){$e._selectSegment(Pt)})}Be&&this._keydown({keyCode:39,preventDefault:function(){}}),Ve&&$e._blinkInvalidState()}},_blinkInvalidState:function(){var $e=this;$e._addInvalidState(),clearTimeout($e._invalidStateTimeout),$e._invalidStateTimeout=setTimeout($e._removeInvalidState.bind($e),100)},_addInvalidState:function(){this.wrapper.addClass(ui),this._validationIcon.removeClass("k-hidden")},_removeInvalidState:function(){this.wrapper.removeClass(ui),this._validationIcon.addClass("k-hidden"),this._invalidStateTimeout=null},_mouseUp:function(){var $e=it(this.element[0]);$e[0]===$e[1]&&this._selectNearestSegment()},_scroll:function($e){if(St._activeElement()===this.element[0]&&!this.element.is("[readonly]")){$e=window.event||$e;var Je={keyCode:37,preventDefault:function(){}};Je.keyCode=$e.shiftKey?($e.wheelDelta||-$e.detail)>0?37:39:($e.wheelDelta||-$e.detail)>0?38:40,this._keydown(Je),$e.returnValue=!1,$e.preventDefault&&$e.preventDefault(),$e.stopPropagation&&$e.stopPropagation()}},_form:function(){var $e=this,Je=$e.element,Ve=Je.attr("form"),Ge=Ve?Xe("#"+Ve):Je.closest("form"),Be=Je[0].value;!Be&&$e.options.value&&(Be=$e.options.value),Ge[0]&&($e._resetHandler=function(){setTimeout(function(){$e.value(Be)})},$e._formElement=Ge.on("reset",$e._resetHandler))},_paste:function($e){$e.preventDefault()},_keydown:function($e){var Ve,Je=$e.keyCode;if(37==Je||39==Je){$e.preventDefault(),(Ve=it(this.element[0]))[0]!=Ve[1]&&this._selectNearestSegment();for(var Ge=37==Je?-1:1,Be=-1==Ge?it(this.element[0])[0]-1:it(this.element[0])[1]+1;Be>=0&&Be<this._format.length;){if(Ht.indexOf(this._format[Be])>=0){this._selectSegment(this._format[Be]);break}Be+=Ge}}if(38==Je||40==Je){$e.preventDefault(),Ve=it(this.element[0]);var At=this._format[Ve[0]];if(Ht.indexOf(At)>=0){var Rt=1;"m"==At&&(Rt=this.options.interval||1),this._dateTime.modifyPart(At,38==Je?1*Rt:-1*Rt),this._updateElementValue(),this._selectSegment(At),this.element.trigger(cn)}}if(St.support.browser.msie&&St.support.browser.version<10){var Pt=$e.keyCode?$e.keyCode:$e.which;if(8===Pt||46===Pt){var $t=this;setTimeout(function(){$t._input()},0)}}Je===Ui.ENTER&&this._change()},_selectNearestSegment:function(){for(var Je=it(this.element[0])[0],Ve=Je,Ge=Je-1;Ve<this._format.length||Ge>=0;Ve++,Ge--){if(Ve<this._format.length&&-1!==Ht.indexOf(this._format[Ve]))return void this._selectSegment(this._format[Ve]);if(Ge>=0&&-1!==Ht.indexOf(this._format[Ge]))return void this._selectSegment(this._format[Ge])}},_selectSegment:function($e){for(var Je=-1,Ve=0,Ge=0;Ge<this._format.length;Ge++)this._format[Ge]===$e&&(Ve=Ge+1,-1===Je&&(Je=Ge));Je<0&&(Je=0),it(this.element,Je,Ve)}}),Nt=(St.cssProperties.registerPrefix("DateInput","k-input-"),St.cssProperties.registerValues("DateInput",[{prop:"rounded",values:St.cssProperties.roundedValues.concat([["full","full"]])}]),Dt.plugin(ft),function($e,Je,Ve,Ge){var Be=null,At=!0,Rt=!0,Pt=!0,$t=!0,Xn=!0,Nn=!0,He="",Kt="",On={},Fi=["","0","00","000","0000"];function Ci(Qn,ci,Oi){return(Oi=(ci=ci||2)-(Qn+="").length)?Fi[ci].substring(0,Oi)+Qn:Qn}var xi=/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|HH|H|hh|h|mm|m|fff|ff|f|tt|ss|s|zzz|zz|z|"[^"]*"|'[^']*'/g,Wn=null,Vt=null,qt=null,bn=!1,ii=function(Qn){var ci,Oi,Ai;switch(Qn){case"d":Ai=Pt?Be.getDate():On.day;break;case"dd":Ai=Pt?Ci(Be.getDate()):On.day;break;case"ddd":Ai=Pt&&Rt&&At?qt.namesAbbr[Be.getDay()]:On.weekday;break;case"dddd":Ai=Pt&&Rt&&At?qt.names[Be.getDay()]:On.weekday;break;case"M":Ai=Rt?Be.getMonth()+1:On.month;break;case"MM":Ai=Rt?Ci(Be.getMonth()+1):On.month;break;case"MMM":Ai=Rt?Wn.namesAbbr[Be.getMonth()]:On.month;break;case"MMMM":Ai=Rt?Wn.names[Be.getMonth()]:On.month;break;case"yy":Ai=At?Ci(Be.getFullYear()%100):On.year;break;case"yyyy":Ai=At?Ci(Be.getFullYear(),4):On.year;break;case"h":Ai=$t?Be.getHours()%12||12:On.hour;break;case"hh":Ai=$t?Ci(Be.getHours()%12||12):On.hour;break;case"H":Ai=$t?Be.getHours():On.hour;break;case"HH":Ai=$t?Ci(Be.getHours()):On.hour;break;case"m":Ai=Xn?Be.getMinutes():On.minute;break;case"mm":Ai=Xn?Ci(Be.getMinutes()):On.minute;break;case"s":Ai=Nn?Be.getSeconds():On.second;break;case"ss":Ai=Nn?Ci(Be.getSeconds()):On.second;break;case"f":Ai=Math.floor(Be.getMilliseconds()/100);break;case"ff":(Ai=Be.getMilliseconds())>99&&(Ai=Math.floor(Ai/10)),Ai=Ci(Ai);break;case"fff":Ai=Ci(Be.getMilliseconds(),3);break;case"tt":Ai=$t?Be.getHours()<12?Vt.AM[0]:Vt.PM[0]:On.dayperiod;break;case"zzz":Oi=(ci=Be.getTimezoneOffset())<0,Ai=Math.abs(ci/60).toString().split(".")[0],ci=Math.abs(ci)-60*Ai,Ai=(Oi?"+":"-")+Ci(Ai),Ai+=":"+Ci(ci);break;case"z":case"zz":Oi=(Ai=Be.getTimezoneOffset()/60)<0,Ai=Math.abs(Ai).toString().split(".")[0],Ai=(Oi?"+":"-")+("zz"===Qn?Ci(Ai):Ai)}if(Ai=Ai!==Ke?Ai:Qn.slice(1,Qn.length-1),bn){Ai=""+Ai;var Pn="";"ddd"==Qn&&(Qn="EEE"),"dddd"==Qn&&(Qn="EEEE");for(var qn=0;qn<Ai.length;qn++)Pn+=Qn[0];return Pn}return Ai};function Vi(Qn){return bn=Qn,ii}function Jn(Qn,ci){switch(Qn){case"y":At=ci;break;case"M":Rt=ci,ci||(Be.setMonth(0),He="");break;case"d":Pt=ci;break;case"H":case"h":$t=ci,ci||(Kt="");break;case"m":Xn=ci;break;case"s":Nn=ci;break;default:return}}if(this.setValue=function(Qn){Pt=Qn},this.getValue=function(){return Pt},this.modifyPart=function(Qn,ci){var Oi=new Date(Be&&Be.getTime?Be.getTime():Be);switch(Qn){case"y":Oi.setFullYear(Oi.getFullYear()+ci);break;case"M":var Ai=Oi.getMonth()+ci;Oi.setMonth(Ai),Oi.getMonth()%12!=(Ai+12)%12&&(Oi.setDate(1),Oi.setMonth(Ai));break;case"d":case"E":Oi.setDate(Oi.getDate()+ci);break;case"H":case"h":Oi.setHours(Oi.getHours()+ci);break;case"m":Oi.setMinutes(Oi.getMinutes()+ci);break;case"s":Oi.setSeconds(Oi.getSeconds()+ci);break;case"t":Oi.setHours((Oi.getHours()+12)%24)}Oi.getFullYear()>0&&(Jn(Qn,!0),Be=Oi)},this.parsePart=function(Qn,ci){if(!ci)return Jn(Qn,!1),!0;var Pn,Oi=new Date(Be&&Be.getTime?Be.getTime():Be),Ai=new Date(Oi.getFullYear(),Oi.getMonth()+1,0).getDate();switch(Qn){case"d":var qn=(Pt?10*Oi.getDate():0)+parseInt(ci,10);if(isNaN(qn))return;for(;qn>Ai;)qn=parseInt(qn.toString().slice(1),10);if(qn<1)Pt=!1;else{if(Oi.setDate(qn),Oi.getMonth()!==Be.getMonth())return;Pt=!0}break;case"M":var Ni=(Rt?10*(Oi.getMonth()+1):0)+parseInt(ci,10);if(isNaN(Ni)){var Ue=Vt.months.names;for(He+=ci.toLowerCase();He.length>0;){for(var Ye=0;Ye<Ue.length;Ye++)if(0===Ue[Ye].toLowerCase().indexOf(He))return Oi.setMonth(Ye),Rt=!0,Be=Oi,!0;He=He.substring(1,He.length)}return!1}for(;Ni>12;)Ni=parseInt(Ni.toString().slice(1),10);Ni<1?Rt=!1:(Oi.setMonth(Ni-1),Oi.getMonth()!==Ni-1&&(Oi.setDate(1),Oi.setMonth(Ni-1)),Rt=!0);break;case"y":var Me=(At?10*Oi.getFullYear():0)+parseInt(ci,10);if(isNaN(Me))return;for(;Me>9999;)Me=parseInt(Me.toString().slice(1),10);Me<1?At=!1:(Oi.setFullYear(Me),At=!0);break;case"h":if(Pn=($t?10*(Oi.getHours()%12||12):0)+parseInt(ci,10),isNaN(Pn))return;for(;Pn>12;)Pn=parseInt(Pn.toString().slice(1),10);Oi.setHours(12*Math.floor(Oi.getHours()/12)+Pn%12),$t=!0;break;case"H":if(Pn=($t?10*Oi.getHours():0)+parseInt(ci,10),isNaN(Pn))return;for(;Pn>23;)Pn=parseInt(Pn.toString().slice(1),10);Oi.setHours(Pn),$t=!0;break;case"m":var pe=(Xn?10*Oi.getMinutes():0)+parseInt(ci,10);if(isNaN(pe))return;for(;pe>59;)pe=parseInt(pe.toString().slice(1),10);Oi.setMinutes(pe),Xn=!0;break;case"s":var lt=(Nn?10*Oi.getSeconds():0)+parseInt(ci,10);if(isNaN(lt))return;for(;lt>59;)lt=parseInt(lt.toString().slice(1),10);Oi.setSeconds(lt),Nn=!0;break;case"t":if($t){for(Kt+=ci.toLowerCase();Kt.length>0;){if(0===Vt.AM[0].toLowerCase().indexOf(Kt)&&Oi.getHours()>=12||0===Vt.PM[0].toLowerCase().indexOf(Kt)&&Oi.getHours()<12)return Oi.setHours((Oi.getHours()+12)%24),Be=Oi,!0;Kt=Kt.substring(1,Kt.length)}return!1}}return Be=Oi,!0},this.toPair=function(Qn,ci,Oi){return Qn?(ci=St.getCulture(ci),qt=(Vt=ci.calendars.standard).days,Wn=Vt.months,On=Oi,[(Qn=Vt.patterns[Qn]||Qn).replace(xi,Vi(!1)),Qn.replace(xi,Vi(!0))]):["",""]},this.getDateObject=function(){return At&&Rt&&Pt&&$t&&Xn&&Nn?new Date(Be.getTime()):null},$e)Be=new Date($e.getTime());else{Be=new Date;for(var zt=this.toPair(Je,Ve,Ge)[1],mn=0;mn<zt.length;mn++)Jn(zt[mn],!1)}});return window.kendo}.apply(Q={},ur=[e]))&&(J=Q),void 0===(re=function(){var Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,St=ze.ui,it=ze.html,Dt=St.Widget,Hn=ze.parseDate,Ui=ze.keys,Co=ze.support,Sn=ze.template,Vn=ze._activeElement,Dn="<div />",ui=".kendoDatePicker",Ot="click"+ui,en=Co.mouseAndTouchPresent?ze.applyEventMap("up",ui.slice(1)):Ot,cn="open",Ht="close",ft="change",Nt="disabled",an="readonly",$e="k-focus",Je="k-selected",Ve="k-disabled",Be="mouseenter"+ui+" mouseleave"+ui,At="mousedown"+ui,Rt="navigate",Ae="aria-disabled",He="aria-readonly",Kt="aria-expanded",On="aria-hidden",Fi="aria-activedescendant",Ci=ze.calendar,xi=Ci.isInRange,Wn=Ci.restrictValue,Vt=Ci.isEqualDatePart,qt=Xe.extend,bn=Date;function ii(mn){var Qn=mn.parseFormats,ci=mn.format;Ci.normalize(mn),(Qn=Array.isArray(Qn)?Qn:[Qn]).length||Qn.push("yyyy-MM-dd"),-1===Xe.inArray(ci,Qn)&&Qn.splice(0,0,mn.format),mn.parseFormats=Qn}function Vi(mn){mn.preventDefault()}var Jn=function(mn){var ci,Qn=this,Oi=document.body,Ai=Xe(Dn).attr(On,"true").addClass("k-calendar-container");Qn.options=mn=mn||{},ci=mn.id,mn.omitPopup?Ai=mn.dateDiv:(Ai.appendTo(Oi),Qn.popup=new St.Popup(Ai,qt(mn.popup,mn,{name:"Popup",isRtl:ze.support.isRtl(mn.anchor)}))),ci&&(Ai.attr("id",ci+="_dateview"),Qn._dateViewID=ci),Qn.div=Ai,Qn.value(mn.value)},zt=(Jn.prototype={_calendar:function(){var Oi,mn=this,Qn=mn.calendar,ci=mn.options;Qn||(Oi=Xe(Dn).attr("id",ze.guid()).appendTo(ci.omitPopup?ci.dateDiv:mn.popup.element).on(At,Vi).on(Ot,"td:has(.k-link)",mn._click.bind(mn)),mn.calendar=Qn=new St.Calendar(Oi,{componentType:ci.componentType,size:ci.size,messages:ci.messages}),mn._setOptions(ci),Oi.addClass(ze.getValidCssClass("k-calendar-","size",ci.size)),Qn.navigate(mn._value||mn._current,ci.start),mn.value(mn._value))},_setOptions:function(mn){this.calendar.setOptions({focusOnNav:!1,change:mn.change,culture:mn.culture,dates:mn.dates,depth:mn.depth,footer:mn.footer,format:mn.format,max:mn.max,min:mn.min,month:mn.month,weekNumber:mn.weekNumber,start:mn.start,messages:mn.messages,disableDates:mn.disableDates})},setOptions:function(mn){var Qn=this.options,ci=mn.disableDates;ci&&(mn.disableDates=Ci.disabled(ci)),this.options=qt(Qn,mn,{change:Qn.change,close:Qn.close,open:Qn.open}),this.calendar&&this._setOptions(this.options)},destroy:function(){this.popup&&this.popup.destroy()},open:function(){var Qn,mn=this;mn._calendar(),Qn=mn.popup._hovered,mn.popup._hovered=!0,mn.popup.open(),setTimeout(function(){mn.popup._hovered=Qn},1)},close:function(){this.popup&&this.popup.close()},min:function(mn){this._option("min",mn)},max:function(mn){this._option("max",mn)},toggle:function(){this[this.popup.visible()?Ht:cn]()},move:function(mn){var Qn=this,ci=mn.keyCode,Oi=Qn.calendar,Ai=mn.ctrlKey&&ci==Ui.DOWN||ci==Ui.ENTER,Pn=!1;if(mn.altKey)ci==Ui.DOWN?(Qn.open(),mn.preventDefault(),Pn=!0):ci==Ui.UP&&(Qn.close(),mn.preventDefault(),Pn=!0);else if(Qn.popup&&Qn.popup.visible()){if(ci==Ui.ESC||Ai&&Oi._cell.hasClass(Je))return Qn.close(),mn.preventDefault(),!0;ci!=Ui.SPACEBAR&&(Qn._current=Oi._move(mn)),Pn=!0}return Pn},current:function(mn){this._current=mn,this.calendar&&this.calendar._focus(mn)},value:function(mn){var ci=this.calendar,Oi=this.options,Ai=Oi.disableDates;Ai&&Ai(mn)&&(mn=null),this._value=mn,this._current=new bn(+Wn(mn,Oi.min,Oi.max)),ci&&ci.value(mn)},_click:function(mn){-1!==mn.currentTarget.className.indexOf(Je)&&(this.calendar.trigger("change"),this.close())},_option:function(mn,Qn){var Oi=this.calendar;this.options[mn]=Qn,Oi&&Oi[mn](Qn)}},Jn.normalize=ii,ze.DateView=Jn,Dt.extend({init:function(mn,Qn){var Oi,Pn,ci=this;Dt.fn.init.call(ci,mn,Qn),mn=ci.element,(Qn=ci.options).disableDates=ze.calendar.disabled(Qn.disableDates),Qn.min=Hn(mn.attr("min"))||Hn(Qn.min),Qn.max=Hn(mn.attr("max"))||Hn(Qn.max),ii(Qn),ci._initialOptions=qt({},Qn),ci._wrapper(),ci.dateView=new Jn(qt({},Qn,{id:mn.attr("id"),anchor:ci.wrapper,change:function(){ci._change(this.value()),ci.close()},close:function(qn){ci.trigger(Ht)?qn.preventDefault():(mn.attr(Kt,!1),Pn.attr(On,!0),setTimeout(function(){mn.removeAttr("aria-activedescendant")}))},open:function(qn){var Ue,Ni=ci.options;ci.trigger(cn)?qn.preventDefault():(ci.element.val()!==ci._oldText&&(Ue=Hn(mn.val(),Ni.parseFormats,Ni.culture),ci.dateView[Ue?"current":"value"](Ue)),mn.attr(Kt,!0),Pn.attr(On,!1),ci._updateARIA(Ue))}})),Pn=ci.dateView.div,ci._icon();try{mn[0].setAttribute("type","text")}catch{mn[0].type="text"}mn.addClass("k-input-inner").attr({role:"combobox","aria-expanded":!1,"aria-haspopup":"grid","aria-controls":ci.dateView._dateViewID,autocomplete:"off"}),ci._reset(),ci._template(),mn.is("[disabled]")||Xe(ci.element).parents("fieldset").is(":disabled")?ci.enable(!1):ci.readonly(mn.is("[readonly]")),Oi=Hn(Qn.value||ci.element.val(),Qn.parseFormats,Qn.culture),ci._createDateInput(Qn),ci._old=ci._update(Oi||ci.element.val()),ci._oldText=mn.val(),ci._applyCssClasses(),ze.notify(ci)},events:[cn,Ht,ft],options:{name:"DatePicker",value:null,footer:"",format:"",culture:"",parseFormats:[],min:new Date(1900,0,1),max:new Date(2099,11,31),start:"month",depth:"month",animation:{},month:{},dates:[],disableDates:null,ARIATemplate:"Current focused #=data.valueType# is #=data.text#",dateInput:!1,weekNumber:!1,messages:{weekColumnHeader:""},componentType:"classic",size:"medium",fillMode:"solid",rounded:"medium"},setOptions:function(mn){var Qn=this,ci=Qn._value;Dt.fn.setOptions.call(Qn,mn),(mn=Qn.options).min=Hn(mn.min),mn.max=Hn(mn.max),ii(mn),Qn._dateIcon.off(ui),Qn._dateIcon.remove(),Qn.dateView.setOptions(mn),Qn._icon(),Qn._editable(mn),Qn._createDateInput(mn),Qn._dateInput||Qn.element.val(ze.toString(ci,mn.format,mn.culture)),ci&&Qn._updateARIA(ci)},_editable:function(mn){var Qn=this,ci=Qn._dateIcon.off(ui),Oi=Qn.element.off(ui),Ai=Qn.wrapper.off(ui),Pn=mn.readonly,qn=mn.disable;Pn||qn?(Ai.addClass(qn?Ve:"").removeClass(qn?"":Ve),Oi.attr(Nt,qn).attr(an,Pn).attr(Ae,qn).attr(He,Pn)):(Ai.removeClass(Ve).on(Be,Qn._toggleHover),Oi&&Oi.length&&(Oi[0].removeAttribute(Nt),Oi[0].removeAttribute(an)),Oi.attr(Ae,!1).attr(He,!1).on("keydown"+ui,Qn._keydown.bind(Qn)).on("focusout"+ui,Qn._blur.bind(Qn)).on("focus"+ui,function(){Qn.wrapper.addClass($e)}),ci.on(en,Qn._click.bind(Qn)).on(At,Vi))},readonly:function(mn){this._editable({readonly:mn===Ke||mn,disable:!1}),this._dateInput&&this._dateInput._editable({readonly:mn===Ke||mn,disable:!1})},enable:function(mn){this._editable({readonly:!1,disable:!(mn=mn===Ke||mn)}),this._dateInput&&this._dateInput._editable({readonly:!1,disable:!(mn=mn===Ke||mn)})},destroy:function(){var mn=this;Dt.fn.destroy.call(mn),mn.dateView.calendar&&mn._navigateCalendarHandler&&(mn.dateView.calendar.unbind(Rt,mn._navigateCalendarHandler),mn._navigateCalendarHandler=null),mn.dateView.destroy(),mn.element.off(ui),mn._dateIcon.off(ui),mn._form&&mn._form.off("reset",mn._resetHandler)},open:function(){this.dateView.open(),this._navigateCalendar()},close:function(){this.dateView.close()},min:function(mn){return this._option("min",mn)},max:function(mn){return this._option("max",mn)},value:function(mn){var Qn=this;if(mn===Ke)return Qn._value;Qn._old=Qn._update(mn),null===Qn._old&&(Qn._dateInput?Qn._dateInput.value(Qn._old):Qn.element.val("")),Qn._oldText=Qn.element.val()},_toggleHover:function(mn){Xe(mn.currentTarget).toggleClass("k-hover","mouseenter"===mn.type)},_blur:function(){var mn=this,Qn=mn.element.val();mn.close(),Qn!==mn._oldText&&(mn._change(Qn),Qn||mn.dateView.current(ze.calendar.getToday())),mn.wrapper.removeClass($e)},_click:function(mn){this.dateView.toggle(),this._navigateCalendar(),this._focusElement(mn.type)},_focusElement:function(mn){var Qn=this.element;(!Co.touch||Co.mouseAndTouchPresent&&!(mn||"").match(/touch/i))&&Qn[0]!==Vn()&&Qn.trigger("focus")},_change:function(mn){var Oi,Qn=this,ci=Qn.element.val();mn=Qn._update(mn);var Ai=(Oi=!ze.calendar.isEqualDate(Qn._old,mn))&&!Qn._typing,Pn=ci!==Qn.element.val();(Ai||Pn)&&Qn.element.trigger(ft),Oi&&(Qn._old=mn,Qn._oldText=Qn.element.val(),Qn.trigger(ft)),Qn._typing=!1},_keydown:function(mn){var Qn=this,ci=Qn.dateView,Oi=Qn.element.val(),Ai=!1;ci.popup.visible()||mn.keyCode!=Ui.ENTER||Oi===Qn._oldText?(Ai=ci.move(mn),Qn._updateARIA(ci._current),Ai?Qn._dateInput&&mn.stopImmediatePropagation&&mn.stopImmediatePropagation():Qn._typing=!0):Qn._change(Oi)},_icon:function(){var Oi,Qn=this.element,ci=this.options;(Oi=Qn.next("button.k-input-button"))[0]||(Oi=Xe(it.renderButton('<button aria-label="select" tabindex="-1" class="k-input-button k-button k-icon-button"></button>',{icon:"calendar",size:ci.size,fillMode:ci.fillMode,shape:"none",rounded:"none"})).insertAfter(Qn)),this._dateIcon=Oi.attr({role:"button"})},_setCalendarAttribute:function(){var mn=this;setTimeout(function(){mn.element.attr(Fi,mn.dateView.calendar._table.attr(Fi))})},_navigateCalendar:function(){var mn=this;mn._navigateCalendarHandler||(mn._navigateCalendarHandler=mn._setCalendarAttribute.bind(mn)),mn.dateView.calendar&&mn.dateView.calendar.unbind(Rt,mn._navigateCalendarHandler).bind(Rt,mn._navigateCalendarHandler)},_option:function(mn,Qn){var Oi=this.options;if(Qn===Ke)return Oi[mn];(Qn=Hn(Qn,Oi.parseFormats,Oi.culture))&&(Oi[mn]=new bn(+Qn),this.dateView[mn](Qn))},_update:function(mn){var Ue,Qn=this,ci=Qn.options,Oi=ci.min,Ai=ci.max,Pn=Qn._value,qn=Hn(mn,ci.parseFormats,ci.culture),Ni=null===qn&&null===Pn||qn instanceof Date&&Pn instanceof Date;return ci.disableDates(qn)&&(qn=null,!Qn._old&&!Qn.element.val()&&(mn=null)),+qn==+Pn&&Ni?((Ue=ze.toString(qn,ci.format,ci.culture))!==mn&&!(Qn._dateInput&&!qn)&&Qn.element.val(null===qn?mn:Ue),qn):(null!==qn&&Vt(qn,Oi)?qn=Wn(qn,Oi,Ai):xi(qn,Oi,Ai)||(qn=null),Qn._value=qn,Qn.dateView.value(qn),Qn._dateInput&&qn?Qn._dateInput.value(qn||mn):Qn.element.val(ze.toString(qn||mn,ci.format,ci.culture)),Qn._updateARIA(qn),qn)},_wrapper:function(){var ci,Qn=this.element;(ci=Qn.parents(".k-datepicker"))[0]||(ci=Qn.wrap("<span />").parent()),ci[0].style.cssText=Qn[0].style.cssText,Qn.css({height:Qn[0].style.height}),this.wrapper=ci.addClass("k-datepicker k-input").addClass(Qn[0].className).removeClass("input-validation-error")},_reset:function(){var mn=this,Qn=mn.element,ci=Qn.attr("form"),Oi=mn.options,Ai=Oi.disableDates,Pn=Oi.parseFormats.length?Oi.parseFormats:null,qn=mn._initialOptions.value,Ni=ci?Xe("#"+ci):Qn.closest("form"),Ue=Qn[0].defaultValue;qn&&Ai&&Ai(qn)&&(qn=null),(!Ue||!ze.parseDate(Ue,Pn,Oi.culture))&&qn&&Qn.attr("value",ze.toString(qn,Oi.format,Oi.culture)),Ni[0]&&(mn._resetHandler=function(){mn.value(qn||Qn[0].defaultValue),mn.max(mn._initialOptions.max),mn.min(mn._initialOptions.min)},mn._form=Ni.on("reset",mn._resetHandler))},_template:function(){this._ariaTemplate=Sn(this.options.ARIATemplate).bind(this)},_createDateInput:function(mn){this._dateInput&&(this._dateInput.destroy(),this._dateInput=null),mn.dateInput&&(this._dateInput=new St.DateInput(this.element,{culture:mn.culture,format:mn.format,size:mn.size,fillMode:mn.fillMode,rounded:mn.rounded,min:mn.min,max:mn.max}))},_updateARIA:function(mn){var Qn=this,ci=Qn.dateView.calendar;Qn.element&&Qn.element.length&&Qn.element[0].removeAttribute(Fi),ci&&Qn.element.attr(Fi,ci._updateAria(Qn._ariaTemplate,mn))}}));return ze.cssProperties.registerPrefix("DatePicker","k-input-"),ze.cssProperties.registerValues("DatePicker",[{prop:"rounded",values:ze.cssProperties.roundedValues.concat([["full","full"]])}]),St.plugin(zt),window.kendo}.apply(de={},ur=[X,A,J,F]))&&(re=de),void 0===(te=function(){var Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,St=ze.ui,it=ze.html,Dt=St.List,Hn=St.Select,Ui=ze.support,Co=ze._activeElement,Sn=ze.data.ObservableObject,Vn=ze.keys,Dn=".kendoDropDownList",kn=Dn+"FocusEvent",ui="disabled",Ot="readonly",en="change",cn="k-focus",Ht="k-disabled",ft="aria-disabled",Nt="aria-readonly",an="click"+Dn+" touchend"+Dn,$e="mouseenter"+Dn+" mouseleave"+Dn,Je="tabindex",Ve="filter",Ge="accept",Pt=Hn.extend({init:function(Ae,He){var Fi,Ci,Kt=this,On=He&&He.index;Kt.ns=Dn,He=Array.isArray(He)?{dataSource:He}:He,Hn.fn.init.call(Kt,Ae,He),He=Kt.options,Ae=Kt.element.on("focus"+Dn,Kt._focusHandler.bind(Kt)),Kt._focusInputHandler=Kt._focusInput.bind(Kt),Kt.optionLabel=Xe(),Kt._optionLabel(),Kt._inputTemplate(),Kt._reset(),Kt._prev="",Kt._word="",Kt._wrapper(),Kt._tabindex(),Kt.wrapper.data(Je,Kt.wrapper.attr(Je)),Kt._span(),Kt._popup(),Kt._mobile(),Kt._dataSource(),Kt._ignoreCase(),Kt._filterHeader(),Kt._aria(),Kt._enable(),Kt._attachFocusHandlers(),Kt._oldIndex=Kt.selectedIndex=-1,On!==Ke&&(He.index=On),Kt._initialIndex=He.index,Kt.requireValueMapper(Kt.options),Kt._initList(),Kt.listView.one("dataBound",Kt._attachAriaActiveDescendant.bind(Kt)),Kt._cascade(),Kt.one("set",function(Wn){!Wn.sender.listView.bound()&&Kt.hasOptionLabel()&&Kt._textAccessor(Kt._optionLabelText())}),He.autoBind?Kt.dataSource.fetch():-1===Kt.selectedIndex&&((Ci=He.text||"")||((Fi=He.optionLabel)&&0===He.index?Ci=Fi:Kt._isSelect&&(Ci=Ae.children(":selected").text())),Kt._textAccessor(Ci)),Xe(Kt.element).parents("fieldset").is(":disabled")&&Kt.enable(!1),Kt.listView.bind("click",function(Wn){Wn.preventDefault()}),ze.notify(Kt),Kt._applyCssClasses()},options:{name:"DropDownList",enabled:!0,autoBind:!0,index:0,text:null,value:null,delay:500,height:200,dataTextField:"",dataValueField:"",optionLabel:"",cascadeFrom:"",cascadeFromField:"",cascadeFromParentField:"",ignoreCase:!0,animation:{},filter:"none",minLength:1,enforceMinLength:!1,virtual:!1,template:null,valueTemplate:null,optionLabelTemplate:null,groupTemplate:"#:data#",fixedGroupTemplate:"#:data#",autoWidth:!1,popup:null,filterTitle:null,size:"medium",fillMode:"solid",rounded:"medium"},events:["open","close",en,"select","filtering","dataBinding","dataBound","cascade","set","kendoKeydown"],setOptions:function(Ae){Hn.fn.setOptions.call(this,Ae),this.listView.setOptions(this._listOptions(Ae)),this._optionLabel(),this._inputTemplate(),this._accessors(),this._filterHeader(),this._enable(),this._aria(),!this.value()&&this.hasOptionLabel()&&this.select(0)},destroy:function(){var Ae=this;Hn.fn.destroy.call(Ae),Ae.wrapper.off(Dn),Ae.wrapper.off(kn),Ae.element.off(Dn),Ae._arrow.off(),Ae._arrow=null,Ae._arrowIcon=null,Ae.optionLabel.off(),Ae.filterInput&&Ae.filterInput.off(kn)},open:function(){var Ae=this,He=!!Ae.dataSource.filter()&&Ae.dataSource.filter().filters.length>0,Kt=this.listView;Ae.popup.visible()||(Ae.listView.bound()&&Ae._state!==Ge?Ae._allowOpening()&&(Ae._focusFilter=!0,Ae.popup.one("activate",Ae._focusInputHandler),Ae.popup._hovered=!0,Ae.wrapper.attr("aria-activedescendant",Kt._optionID),Ae.popup.open(),Ae._resizeFilterInput(),Ae._focusItem()):(Ae._open=!0,Ae._state="rebind",Ae.filterInput&&(Ae.filterInput.val(""),Ae._prev=""),Ae.filterInput&&1!==Ae.options.minLength&&!He?(Ae.refresh(),Ae.popup.one("activate",Ae._focusInputHandler),Ae.wrapper.attr("aria-activedescendant",Kt._optionID),Ae.popup.open(),Ae._resizeFilterInput()):Ae._filterSource()))},close:function(){this._attachAriaActiveDescendant(),this.popup.close()},_attachAriaActiveDescendant:function(){var Ae=this.wrapper,He=Ae.find(".k-input-inner").attr("id");Ae.attr("aria-describedby",He)},_focusInput:function(){this._focusElement(this.filterInput)},_resizeFilterInput:function(){var Ae=this.filterInput,He=this._prevent;if(Ae){var Kt=this.filterInput[0]===Co(),On=ze.caret(this.filterInput[0])[0];this._prevent=!0,Ae.addClass("k-hidden"),Ae.closest(".k-list-filter").css("width",this.popup.element.css("width")),Ae.removeClass("k-hidden"),Kt&&(Ae.trigger("focus"),ze.caret(Ae[0],On)),this._prevent=He}},_allowOpening:function(){return this.hasOptionLabel()||this.filterInput||Hn.fn._allowOpening.call(this)},toggle:function(Ae){this._toggle(Ae,!0)},current:function(Ae){var He;if(Ae===Ke)return!(He=this.listView.focus())&&0===this.selectedIndex&&this.hasOptionLabel()?this.optionLabel:He;this._focus(Ae)},dataItem:function(Ae){var He=this,Kt=null;if(null===Ae)return Ae;if(Ae===Ke)Kt=He.listView.selectedDataItems()[0];else{if("number"!=typeof Ae){if(He.options.virtual)return He.dataSource.getByUid(Xe(Ae).data("uid"));Ae=Ae.hasClass("k-list-optionlabel")?-1:Xe(He.items()).index(Ae)}else He.hasOptionLabel()&&(Ae-=1);Kt=He.dataSource.flatView()[Ae]}return Kt||(Kt=He._optionLabelDataItem()),Kt},refresh:function(){this.listView.refresh()},text:function(Ae){var Kt,He=this,On=He.options.ignoreCase;if((Ae=null===Ae?"":Ae)===Ke)return He._textAccessor();"string"==typeof Ae?(Kt=On?Ae.toLowerCase():Ae,He._select(function(Fi){return Fi=He._text(Fi),On&&(Fi=(Fi+"").toLowerCase()),Fi===Kt}).done(function(){He._textAccessor(He.dataItem()||Ae)})):He._textAccessor(Ae)},_clearFilter:function(){Xe(this.filterInput).val(""),Hn.fn._clearFilter.call(this)},value:function(Ae){var He=this,Kt=He.listView,On=He.dataSource;return Ae===Ke?(Ae=He._accessor()||He.listView.value()[0])===Ke||null===Ae?"":Ae:(He.requireValueMapper(He.options,Ae),(Ae||!He.hasOptionLabel())&&(He._initialIndex=null),this.trigger("set",{value:Ae}),He._request&&He.options.cascadeFrom&&He.listView.bound()?(He._valueSetter&&On.unbind(en,He._valueSetter),He._valueSetter=function(){He.value(Ae)}.bind(He),void On.one(en,He._valueSetter)):(He._isFilterEnabled()&&Kt.bound()&&Kt.isFiltered()?He._clearFilter():He._fetchData(),void Kt.value(Ae).done(function(){He._old=He._valueBeforeCascade=He._accessor(),He._oldIndex=He.selectedIndex})))},hasOptionLabel:function(){return this.optionLabel&&!!this.optionLabel[0]},_optionLabel:function(){var Ae=this,He=Ae.options,Kt=He.optionLabel,On=He.optionLabelTemplate;if(!Kt)return Ae.optionLabel.off().remove(),void(Ae.optionLabel=Xe());On||(On="#:",On+="string"==typeof Kt?"data":ze.expr(He.dataTextField,"data"),On+="#"),"function"!=typeof On&&(On=ze.template(On)),Ae.optionLabelTemplate=On,Ae.hasOptionLabel()||(Ae.optionLabel=Xe('<div role="option" class="k-list-optionlabel"></div>').prependTo(Ae.list)),Ae.optionLabel.html(On(Kt)).off().on(an,Ae._click.bind(Ae)).on($e,Ae._toggleHover),Ae.angular("compile",function(){return{elements:Ae.optionLabel,data:[{dataItem:Ae._optionLabelDataItem()}]}})},_optionLabelText:function(){var Ae=this.options.optionLabel;return"string"==typeof Ae?Ae:this._text(Ae)},_optionLabelDataItem:function(){var He=this.options.optionLabel;return this.hasOptionLabel()?Xe.isPlainObject(He)?new Sn(He):this._assignInstance(this._optionLabelText(),""):Ke},_buildOptions:function(Ae){var He=this;if(He._isSelect){var Kt=He.listView.value()[0],On=He._optionLabelDataItem(),Fi=On&&He._value(On);(Kt===Ke||null===Kt)&&(Kt=""),On&&((Fi===Ke||null===Fi)&&(Fi=""),On='<option value="'+Fi+'">'+He._text(On)+"</option>"),He._options(Ae,On,Kt),Kt!==Dt.unifyType(He._accessor(),typeof Kt)&&(He._customOption=null,He._custom(Kt))}},_listBound:function(){var Fi,Ae=this,He=Ae._initialIndex,Kt=Ae._state===Ve,On=Ae.dataSource.flatView();Ae._presetValue=!1,Ae._renderFooter(),Ae._renderNoData(),Ae._toggleNoData(!On.length),Ae._resizePopup(!0),Ae.popup.position(),Ae._buildOptions(On),Kt||(Ae._open&&Ae.toggle(Ae._allowOpening()),Ae._open=!1,Ae._fetch||(On.length?(!Ae.listView.value().length&&He>-1&&null!==He&&Ae.select(He),Ae._initialIndex=null,(Fi=Ae.listView.selectedDataItems()[0])&&Ae.text()!==Ae._text(Fi)&&Ae._selectValue(Fi)):Ae._textAccessor()!==Ae._optionLabelText()&&(Ae.listView.value(""),Ae._selectValue(null),Ae._oldIndex=Ae.selectedIndex))),Ae._hideBusy(),Ae.trigger("dataBound")},_listChange:function(){this._selectValue(this.listView.selectedDataItems()[0]),(this._presetValue||this._old&&-1===this._oldIndex)&&(this._oldIndex=this.selectedIndex)},_filterPaste:function(){this._search()},_attachFocusHandlers:function(){var Ae=this;Ae.wrapper.on("focusin"+kn,Ae._focusinHandler.bind(Ae)).on("focusout"+kn,Ae._focusoutHandler.bind(Ae)),Ae.filterInput&&Ae.filterInput.on("focusin"+kn,Ae._focusinHandler.bind(Ae)).on("focusout"+kn,Ae._focusoutHandler.bind(Ae))},_focusHandler:function(){this.wrapper.trigger("focus")},_focusinHandler:function(){this.wrapper.addClass(cn),this._prevent=!1},_focusoutHandler:function(){var Ae=this,He=window.self!==window.top;Ae._prevent||(clearTimeout(Ae._typingTimeout),Ui.mobileOS.ios&&He?Ae._change():Ae._blur(),Ae.wrapper.removeClass(cn),Ae._prevent=!0,Ae._open=!1,Ae.element.trigger("blur"))},_wrapperMousedown:function(){this._prevent=!!this.filterInput},_wrapperClick:function(Ae){Ae.preventDefault(),this.popup.unbind("activate",this._focusInputHandler),this._focused=this.wrapper,this._prevent=!1,this._toggle()},_editable:function(Ae){var He=this,Kt=He.element,On=Ae.disable,Fi=Ae.readonly,Ci=He.wrapper.add(He.filterInput).off(Dn),xi=He.wrapper.off($e);Fi||On?On?(Ci.removeAttr(Je),xi.addClass(Ht)):xi.removeClass(Ht):(Kt.prop(ui,!1).prop(Ot,!1),xi.removeClass(Ht).on($e,He._toggleHover),Ci.attr(Je,Ci.data(Je)).attr(ft,!1).attr(Nt,!1).on("keydown"+Dn,He,He._keydown.bind(He)).on(ze.support.mousedown+Dn,He._wrapperMousedown.bind(He)).on("paste"+Dn,He._filterPaste.bind(He)),He.wrapper.on("click"+Dn,He._wrapperClick.bind(He)),He.filterInput?Ci.on("input"+Dn,He._search.bind(He)):Ci.on("keypress"+Dn,He._keypress.bind(He))),Kt.attr(ui,On).attr(Ot,Fi),Ci.attr(ft,On).attr(Nt,Fi)},_keydown:function(Ae){var Fi,Ci,He=this,Kt=Ae.keyCode,On=Ae.altKey,xi=He.popup.visible();if(He.filterInput&&(Fi=He.filterInput[0]===Co()),Kt===Vn.LEFT?(Kt=Vn.UP,Ci=!0):Kt===Vn.RIGHT&&(Kt=Vn.DOWN,Ci=!0),!Ci||!Fi){if(Ae.keyCode=Kt,(On&&Kt===Vn.UP||Kt===Vn.ESC)&&He._focusElement(He.wrapper),He._state===Ve&&Kt===Vn.ESC&&(He._clearFilter(),He._open=!1,He._state=Ge),Kt===Vn.ENTER&&He._typingTimeout&&He.filterInput&&xi)return void Ae.preventDefault();if(Kt===Vn.SPACEBAR&&!Fi&&(He.toggle(!xi),Ae.preventDefault()),!(Ci=He._move(Ae))){if(!xi||!He.filterInput){var Wn=He._focus();if(Kt===Vn.HOME?(Ci=!0,He._firstItem()):Kt===Vn.END&&(Ci=!0,He._lastItem()),Ci){if(He.trigger("select",{dataItem:He._getElementDataItem(He._focus()),item:He._focus()}))return void He._focus(Wn);He._select(He._focus(),!0).done(function(){xi||He._blur()}),Ae.preventDefault()}}!On&&!Ci&&He.filterInput&&He._search()}}},_matchText:function(Ae,He){return Ae!==Ke&&null!==Ae&&(Ae+="",this.options.ignoreCase&&(Ae=Ae.toLowerCase()),0===Ae.indexOf(He))},_shuffleData:function(Ae,He){var Kt=this._optionLabelDataItem();return Kt&&(Ae=[Kt].concat(Ae)),Ae.slice(He).concat(Ae.slice(0,He))},_selectNext:function(){var Ci,xi,Ae=this,He=Ae.dataSource.flatView(),Kt=He.length+(Ae.hasOptionLabel()?1:0),On=function Nn(Ae,He){for(var Kt=0;Kt<Ae.length;Kt++)if(Ae.charAt(Kt)!==He)return!1;return!0}(Ae._word,Ae._last),Fi=Ae.selectedIndex;Fi=-1===Fi?0:Xn(Fi+=On?1:0,Kt),He=He.toJSON?He.toJSON():He.slice(),He=Ae._shuffleData(He,Fi);for(var Wn=0;Wn<Kt&&(xi=Ae._text(He[Wn]),!On||!Ae._matchText(xi,Ae._last))&&!Ae._matchText(xi,Ae._word);Wn++);Wn!==Kt&&(Ci=Ae._focus(),Ae._select(Xn(Fi+Wn,Kt)).done(function(){var Vt=function(){Ae.popup.visible()||Ae._change()};Ae.trigger("select",{dataItem:Ae._getElementDataItem(Ae._focus()),item:Ae._focus()})?Ae._select(Ci).done(Vt):Vt()}))},_keypress:function(Ae){if(0!==Ae.which&&Ae.keyCode!==ze.keys.ENTER){var Kt=String.fromCharCode(Ae.charCode||Ae.keyCode);this.options.ignoreCase&&(Kt=Kt.toLowerCase())," "===Kt&&Ae.preventDefault(),this._word+=Kt,this._last=Kt,this._search()}},_popupOpen:function(){var Ae=this.popup;Ae.wrapper=ze.wrap(Ae.element),Ae.element.closest(".km-root")[0]&&(Ae.wrapper.addClass("km-popup km-widget"),this.wrapper.addClass("km-widget"))},_popup:function(){Hn.fn._popup.call(this),this.popup.one("open",this._popupOpen.bind(this))},_getElementDataItem:function(Ae){return Ae&&Ae[0]?Ae[0]===this.optionLabel[0]?this._optionLabelDataItem():this.listView.dataItemByIndex(this.listView.getElementIndex(Ae)):null},_click:function(Ae){var He=this,Kt=Ae.item||Xe(Ae.currentTarget);Ae.preventDefault(),He.trigger("select",{dataItem:He._getElementDataItem(Kt),item:Kt})?He.close():(He._userTriggered=!0,He._select(Kt).done(function(){He._blur(),He._focusElement(He.wrapper)}))},_focusElement:function(Ae){var He=Co(),On=this.filterInput;On&&On[0]===Ae[0]&&Ui.mobileOS&&(Ui.touch||Ui.MSPointers||Ui.pointers)||On&&((Ae===On?this.wrapper:On)[0]===He||this._focusFilter)&&(this._focusFilter=!1,this._prevent=!0,this._focused=Ae.trigger("focus"))},_searchByWord:function(Ae){if(Ae){var He=this;He.options.ignoreCase&&(Ae=Ae.toLowerCase()),He._select(function(On){return He._matchText(He._text(On),Ae)})}},_inputValue:function(){return this.text()},_search:function(){var Ae=this,He=Ae.dataSource;if(clearTimeout(Ae._typingTimeout),Ae._isFilterEnabled())Ae._typingTimeout=setTimeout(function(){var Kt=Ae.filterInput.val();Ae._prev!==Kt&&(Ae._prev=Kt,Ae.search(Kt),Ae._resizeFilterInput()),Ae._typingTimeout=null},Ae.options.delay);else{if(Ae._typingTimeout=setTimeout(function(){Ae._word=""},Ae.options.delay),!Ae.listView.bound())return void He.fetch().done(function(){Ae._selectNext()});Ae._selectNext()}},_get:function(Ae){var He,Kt,On,Fi="function"==typeof Ae,Ci=Fi?Xe():Xe(Ae);if(this.hasOptionLabel()&&("number"==typeof Ae?Ae>-1&&(Ae-=1):Ci.hasClass("k-list-optionlabel")&&(Ae=-1)),Fi){for(He=this.dataSource.flatView(),On=0;On<He.length;On++)if(Ae(He[On])){Ae=On,Kt=!0;break}Kt||(Ae=-1)}return Ae},_firstItem:function(){this.hasOptionLabel()?this._focus(this.optionLabel):this.listView.focusFirst()},_lastItem:function(){this._resetOptionLabel(),this.listView.focusLast()},_nextItem:function(){var Ae;return this.optionLabel.hasClass("k-focus")?(this._resetOptionLabel(),this.listView.focusFirst(),Ae=1):Ae=this.listView.focusNext(),Ae},_prevItem:function(){var Ae;if(!this.optionLabel.hasClass("k-focus"))return Ae=this.listView.focusPrev(),!this.listView.focus()&&!this.options.virtual&&this._focus(this.optionLabel),Ae},_focusItem:function(){var Ae=this.options,He=this.listView,Kt=He.focus(),On=He.select();(On=On[On.length-1])===Ke&&Ae.highlightFirst&&!Kt&&(On=0),On!==Ke?He.focus(On):!Ae.optionLabel||Ae.virtual&&"dataItem"===Ae.virtual.mapValueTo?He.scrollToIndex(0):(this._focus(this.optionLabel),this._select(this.optionLabel),this.listView.content.scrollTop(0))},_resetOptionLabel:function(Ae){this.optionLabel.removeClass("k-focus"+(Ae||"")).removeAttr("id")},_focus:function(Ae){var He=this.listView,Kt=this.optionLabel;if(Ae===Ke)return!(Ae=He.focus())&&Kt.hasClass("k-focus")&&(Ae=Kt),Ae;this._resetOptionLabel(),Ae=this._get(Ae),He.focus(Ae),-1===Ae&&(Kt.addClass("k-focus").attr("id",He._optionID),this.filterInput&&this.filterInput.removeAttr("aria-activedescendant").attr("aria-activedescendant",He._optionID))},_select:function(Ae,He){var Kt=this;return Ae=Kt._get(Ae),Kt.listView.select(Ae).done(function(){!He&&Kt._state===Ve&&(Kt._state=Ge),-1===Ae&&Kt._selectValue(null)})},_selectValue:function(Ae){var He=this,Kt=He.options.optionLabel,On=He.listView.select(),Fi="",Ci="";(On=On[On.length-1])===Ke&&(On=-1),this._resetOptionLabel(" k-selected"),Ae||0===Ae?(Ci=Ae,Fi=He._dataValue(Ae),Kt&&(On+=1)):Kt&&(He._focus(He.optionLabel.addClass("k-selected")),Ci=He._optionLabelText(),Fi="string"==typeof Kt?"":He._value(Kt),On=0),He.selectedIndex=On,null===Fi&&(Fi=""),He._textAccessor(Ci),He._accessor(Fi,On),He._triggerCascade()},_mobile:function(){var He=this.popup,Kt=Ui.mobileOS;He.element.parents(".km-root").eq(0).length&&Kt&&(He.options.animation.open.effects=Kt.android||Kt.meego?"fadeIn":Kt.ios||Kt.wp?"slideIn:up":He.options.animation.open.effects)},_filterHeader:function(){this.filterInput&&(this.filterInput.off(Dn).closest(".k-list-filter").remove(),this.filterInput=null),this._isFilterEnabled()&&(this.filterInput=Xe('<input class="k-input-inner" type="text" />').attr({placeholder:this.element.attr("placeholder"),title:this.options.filterTitle||this.element.attr("title"),role:"searchbox","aria-label":this.options.filterTitle,"aria-haspopup":"listbox","aria-autocomplete":"list"}),this.list.parent().prepend(Xe('<div class="k-list-filter"><span class="k-searchbox k-input k-input-md k-rounded-md k-input-solid" type="text" autocomplete="off"><span class="k-input-icon k-icon k-i-search"></span></span></div>')).find(".k-searchbox").append(this.filterInput))},_span:function(){var Ci,xi,Ae=this,He=Ae.wrapper,Kt="span.k-input-value-text",On=ze.guid(),Fi=Ae.options;(Ci=He.find(Kt))[0]||(xi=it.renderButton('<span role="button" class="k-input-button" aria-label="select"></span>',{icon:"arrow-s",size:Fi.size,fillMode:Fi.fillMode,shape:"none",rounded:"none"}),He.append('<span id="'+On+'" unselectable="on" class="k-input-inner"><span class="k-input-value-text"></span></span>').append(xi).append(Ae.element),Ci=He.find(Kt)),Ae.span=Ci,Ae._arrow=He.find(".k-input-button"),Ae._arrowIcon=Ae._arrow.find(".k-icon")},_wrapper:function(){var On,He=this.element,Kt=He[0];(On=He.parent()).is("span.k-picker")||((On=He.wrap("<span />").parent())[0].style.cssText=Kt.style.cssText,On[0].title=Kt.title),this._focused=this.wrapper=On.addClass("k-picker k-dropdownlist").addClass(Kt.className).removeClass("input-validation-error").css("display","").attr({accesskey:He.attr("accesskey"),unselectable:"on",role:"combobox","aria-expanded":!1}),He.hide().removeAttr("accesskey")},_clearSelection:function(Ae){this.select(Ae.value()?0:-1)},_openHandler:function(Ae){this._adjustListWidth(),this.trigger("open")?Ae.preventDefault():(this.wrapper.attr("aria-expanded",!0),this.ul.attr("aria-hidden",!1))},_closeHandler:function(Ae){this.trigger("close")?Ae.preventDefault():(this.wrapper.attr("aria-expanded",!1),this.ul.attr("aria-hidden",!0))},_inputTemplate:function(){var Ae=this,He=Ae.options.valueTemplate;if(He=He?ze.template(He):ze.template("#:this._text(data)#",{useWithBlock:!1}).bind(Ae),Ae.valueTemplate=He,Ae.hasOptionLabel()&&!Ae.options.optionLabelTemplate)try{Ae.valueTemplate(Ae._optionLabelDataItem())}catch{throw new Error("The `optionLabel` option is not valid due to missing fields. Define a custom optionLabel as shown here http://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist#configuration-optionLabel")}},_textAccessor:function(Ae){var He=null,Kt=this.valueTemplate,On=this._optionLabelText(),Fi=this.span;if(Ae===Ke)return Fi.text();Xe.isPlainObject(Ae)||Ae instanceof Sn?He=Ae:On&&On===Ae&&(He=this.options.optionLabel),He||(He=this._assignInstance(Ae,this._accessor())),this.hasOptionLabel()&&(He===On||this._text(He)===On)&&(Kt=this.optionLabelTemplate,"string"==typeof this.options.optionLabel&&!this.options.optionLabelTemplate&&(He=On));var Ci=function(){return{elements:Fi.get(),data:[{dataItem:He}]}};this.angular("cleanup",Ci);try{Fi.html(Kt(He))}catch{Fi.html("")}this.angular("compile",Ci)},_preselect:function(Ae,He){!Ae&&!He&&(He=this._optionLabelText()),this._accessor(Ae),this._textAccessor(He),this._old=this._accessor(),this._oldIndex=this.selectedIndex,this.listView.setValue(Ae),this._initialIndex=null,this._presetValue=!0},_assignInstance:function(Ae,He){var Kt=this.options.dataTextField,On={};return Kt?($t(On,Kt.split("."),Ae),$t(On,this.options.dataValueField.split("."),He),On=new Sn(On)):On=Ae,On}});function $t(Ae,He,Kt){for(var Ci,On=0,Fi=He.length-1;On<Fi;++On)(Ci=He[On])in Ae||(Ae[Ci]={}),Ae=Ae[Ci];Ae[He[Fi]]=Kt}function Xn(Ae,He){return Ae>=He&&(Ae-=He),Ae}return St.plugin(Pt),ze.cssProperties.registerPrefix("DropDownList","k-picker-"),ze.cssProperties.registerValues("DropDownList",[{prop:"rounded",values:ze.cssProperties.roundedValues.concat([["full","full"]])}]),window.kendo}.apply(j={},ur=[C,p,b,F]))&&(te=j),void 0===(H=function(){var Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,St=ze.ui,it=St.Widget,Dt=ze.isFunction,Hn=Xe.extend,Ui="horizontal",Co="vertical",Dn="resizeend",kn=it.extend({init:function(ui,Ot){var en=this;it.fn.init.call(en,ui,Ot),en.orientation=en.options.orientation.toLowerCase()!=Co?Ui:Co,en._positionMouse=en.orientation==Ui?"x":"y",en._position=en.orientation==Ui?"left":"top",en._sizingDom=en.orientation==Ui?"outerWidth":"outerHeight",en.draggable=new St.Draggable(Ot.draggableElement||ui,{distance:1,filter:Ot.handle,drag:en._resize.bind(en),dragcancel:en._cancel.bind(en),dragstart:en._start.bind(en),dragend:en._stop.bind(en)}),en.userEvents=en.draggable.userEvents},events:["resize",Dn,"start"],options:{name:"Resizable",orientation:Ui},resize:function(){},_max:function(ui){var Ot=this,en=Ot.hint?Ot.hint[Ot._sizingDom]():0,cn=Ot.options.max;return Dt(cn)?cn(ui):cn!==Ke?Ot._initialElementPosition+cn-en:cn},_min:function(ui){var en=this.options.min;return Dt(en)?en(ui):en!==Ke?this._initialElementPosition+en:en},_start:function(ui){var Ot=this,en=Ot.options.hint,cn=Xe(ui.currentTarget);Ot._initialElementPosition=cn.position()[Ot._position],Ot._initialMousePosition=ui[Ot._positionMouse].startLocation,en&&(Ot.hint=Dt(en)?Xe(en(cn)):en,Ot.hint.css({position:"absolute"}).css(Ot._position,Ot._initialElementPosition).appendTo(Ot.element)),Ot.trigger("start",ui),Ot._maxPosition=Ot._max(ui),Ot._minPosition=Ot._min(ui),Xe(document.body).css("cursor",cn.css("cursor"))},_resize:function(ui){var ft,Ot=this,en=Ot._maxPosition,cn=Ot._minPosition,Ht=Ot._initialElementPosition+(ui[Ot._positionMouse].location-Ot._initialMousePosition);ft=cn!==Ke?Math.max(cn,Ht):Ht,Ot.position=ft=en!==Ke?Math.min(en,ft):ft,Ot.hint&&Ot.hint.toggleClass(Ot.options.invalidClass||"",ft==en||ft==cn).css(Ot._position,ft),Ot.resizing=!0,Ot.trigger("resize",Hn(ui,{position:ft}))},_stop:function(ui){var Ot=this;Ot.hint&&Ot.hint.remove(),Ot.resizing=!1,Ot.trigger(Dn,Hn(ui,{position:Ot.position})),Xe(document.body).css("cursor","")},_cancel:function(ui){var Ot=this;Ot.hint&&(Ot.position=Ke,Ot.hint.css(Ot._position,Ot._initialElementPosition),Ot._stop(ui))},destroy:function(){it.fn.destroy.call(this),this.draggable&&this.draggable.destroy()},press:function(ui){if(ui){var Ot=ui.position();this.userEvents.press(Ot.left,Ot.top,ui[0]),this.targetPosition=Ot,this.target=ui}},move:function(ui){var en=this._position,cn=this.targetPosition,Ht=this.position;Ht===Ke&&(Ht=cn[en]),cn[en]=Ht+ui,this.userEvents.move(cn.left,cn.top)},end:function(){this.userEvents.end(),this.target=this.position=Ke}});return ze.ui.plugin(kn),window.kendo}.apply(z={},ur=[e,g]))&&(H=z),void 0===(q=function(){var Ot,Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,St=ze.ui.Widget,it=ze.ui.Popup.TabKeyTrap,Dt=ze.ui.Draggable,Hn=Xe.isPlainObject,Ui=ze._activeElement,Co=ze._outerWidth,Sn=ze._outerHeight,Vn=Xe.extend,Dn=Xe.each,kn=ze.template,ui="body",en=".kendoWindow",cn=".kendoWindowModal",Ht=".k-window",ft=".k-window-title",Nt=ft+"bar",an=".k-window-content",Je=".k-resize-handle",Ve=".k-overlay",Ge="k-content-frame",Be="k-i-loading",At="k-hover",Rt="k-focus",Pt="k-window-maximized",$t="k-display-inline-flex",Xn=":visible",Nn="hidden",Ae="cursor",He="open",Kt="activate",On="deactivate",Ci="refresh",Vt="resizeStart",bn="resizeEnd",ii="dragstart",Vi="dragend",Jn="restore",Qn="overflow",ci="original-overflow-rule",Oi="zIndex",Ai=".k-window-actions .k-i-window-minimize,.k-window-actions .k-i-window-maximize",Pn=".k-i-pin",qn=".k-i-unpin",Ni=Pn+","+qn,Ue=".k-window-titlebar .k-window-action",Ye=".k-window-titlebar .k-i-refresh",Me="WindowEventsHandled",pe=/^0[a-z]*$/i,lt=ze.isLocalUrl,yt={small:"k-window-sm",medium:"k-window-md",large:"k-window-lg"};function on(io){return typeof io<"u"}function zi(io,Wi){return parseInt(io.css(Wi),10)||0}function Kn(io,Wi,fo){return io&&isNaN(io)&&io.toString().indexOf("px")<0?io:Math.max(Math.min(parseInt(io,10),fo===1/0?fo:parseInt(fo,10)),Wi===-1/0?Wi:parseInt(Wi,10))}function ho(){return!this.type||this.type.toLowerCase().indexOf("script")>=0}function po(io){for(var Wi={top:io.offsetTop,left:io.offsetLeft},fo=io.offsetParent;fo;){Wi.top+=fo.offsetTop,Wi.left+=fo.offsetLeft;var cr=Xe(fo).css("overflowX"),Fr=Xe(fo).css("overflowY");("auto"===Fr||"scroll"===Fr)&&(Wi.top-=fo.scrollTop),("auto"===cr||"scroll"===cr)&&(Wi.left-=fo.scrollLeft),fo=fo.offsetParent}return Wi}var $i=St.extend({init:function(io,Wi){var cr,jr,fs,Ms,ks,ts,Xs,Ws,fo=this,Fr={},_a=Wi&&Wi.actions&&!Wi.actions.length;St.fn.init.call(fo,io,Wi),Ms=(Wi=fo.options).position,io=fo.element,ks=Wi.content,Xs=Xe(window),_a&&(Wi.actions=[]),fo.appendTo=Xe(Wi.appendTo),fo.containment=Wi.draggable.containment?Xe(Wi.draggable.containment).first():null,ks&&!Hn(ks)&&(ks=Wi.content={url:ks}),io.find("script").filter(ho).remove(),!io.parent().is(fo.appendTo)&&!fo.containment&&(Ms.top===Ke||Ms.left===Ke)&&(io.is(Xn)?Fr=io.offset():(jr=io.css("visibility"),fs=io.css("display"),io.css({visibility:Nn,display:""}),Fr=document.body.contains(io[0])?io.offset():{top:0,left:0},io.css({visibility:jr,display:fs})),Ms.top===Ke&&(Ms.top=Fr.top),Ms.left===Ke&&(Ms.left=Fr.left)),(!on(Wi.visible)||null===Wi.visible)&&(Wi.visible=io.is(Xn)),cr=fo.wrapper=io.closest(Ht),(!io.is(".k-window-content")||!cr[0])&&(io.addClass("k-window-content"),io.attr("tabindex",0),fo._createWindow(io,Wi),cr=fo.wrapper=io.closest(Ht),fo.title(fo.options.title),fo._dimensions()),fo.minTop=fo.minLeft=-1/0,fo.maxTop=fo.maxLeft=1/0,fo._position(),ks&&fo.refresh(ks),Wi.visible&&fo.toFront(null,!Wi.modal),ts=cr.children(an),Wi.visible&&Wi.modal&&fo._overlay(cr.is(Xn)).css({opacity:.5}),cr.on("mouseenter"+en,Ue,fo._buttonEnter.bind(fo)).on("mouseleave"+en,Ue,fo._buttonLeave.bind(fo)).on("click"+en,"> "+Ue,fo._windowActionHandler.bind(fo)).on("keydown"+en,fo,fo._keydown.bind(fo)).on("focus"+en,fo._focus.bind(fo)).on("blur"+en,fo._blur.bind(fo)),ts.on("keydown"+en,fo,fo._keydownContent.bind(fo)),ts.find("."+Ge)[0]&&!Xs.data(Me)&&(Xs.on("blur"+en,function(){var cs=Xe(document.activeElement).parent(an);cs.length&&ze.widgetInstance(cs)._focus()}),Xs.on("focus"+en,function(){Xe(an).not(".k-dialog-content").each(function(cs,Ps){ze.widgetInstance(Xe(Ps))._blur()})}),Xs.data(Me,!0)),this._resizable(),this._draggable(),Wi.pinned&&this.wrapper.is(":visible")&&fo.pin(),(Ws=io.attr("id"))&&cr.attr({role:"dialog","aria-labelledby":Ws+="_wnd_title"}).children(Nt).children(ft).attr("id",Ws),cr.add(cr.children(".k-resize-handle,"+Nt)).on(ze.support.mousedown+en,fo.toFront.bind(fo)),fo.touchScroller=ze.touchScroller(io),fo._resizeHandler=fo._onDocumentResize.bind(fo),fo._marker=ze.guid().substring(0,8),Xe(window).on("resize"+en+fo._marker,fo._resizeHandler),Wi.visible&&(fo.trigger(He),fo.trigger(Kt)),ze.notify(fo),this.options.modal&&(this._tabKeyTrap=new it(cr),this._tabKeyTrap.trap(),this._tabKeyTrap.shouldTrap=function(){return cr.data("isFront")})},_buttonEnter:function(io){Xe(io.currentTarget).addClass(At)},_buttonLeave:function(io){Xe(io.currentTarget).removeClass(At)},_focus:function(){this.wrapper.addClass(Rt)},_blur:function(){this.wrapper.removeClass(Rt)},_dimensions:function(){var io=this.wrapper,Wi=this.options,fo=Wi.width,cr=Wi.height,Fr=Wi.maxHeight,jr=Wi.size,fs=["minWidth","minHeight","maxWidth","maxHeight"],Ms="content-box"==io.css("box-sizing"),Ca=Ms?zi(io,"border-left-width")+zi(io,"border-right-width"):0,ks=Ms?zi(io,"border-top-width")+zi(io,"border-bottom-width"):0,ts=Ms?zi(io,"padding-top"):0;this.containment&&!this._isPinned&&(this._updateBoundaries(),Wi.maxHeight=Math.min(this.containment.height-(ks+ts),Fr),Wi.maxWidth=Math.min(this.containment.width-Ca,Wi.maxWidth));for(var na=0;na<fs.length;na++){var Xs=Wi[fs[na]]||"";Xs!=1/0&&io.css(fs[na],Xs)}Fr!=1/0&&this.element.css("maxHeight",Fr),io.outerWidth(fo?Kn(fo,Wi.minWidth,Wi.maxWidth):""),io.outerHeight(cr?Kn(cr,Wi.minHeight,Wi.maxHeight):""),Wi.visible||io.removeClass($t).hide(),jr&&yt[jr]&&io.addClass(yt[jr])},_position:function(){var fo,cr,io=this.wrapper,Wi=this.options.position;this._updateBoundaries(),this.containment&&(Wi.top=Wi.top||0,Wi.left=Wi.left||0,fo=Wi.top.toString().indexOf("%")>0?parseInt(this.containment.height*(parseFloat(Wi.top)/100),10):Wi.top,cr=Wi.left.toString().indexOf("%")>0?parseInt(this.containment.width*(parseFloat(Wi.left)/100),10):Wi.left,Wi.top=Kn(fo,this.minTop,this.maxTop),Wi.left=Kn(cr,this.minLeft,this.maxLeft)),Wi.top&&Wi.top.toString().indexOf("px")>0&&(Wi.top=Number(Wi.top.replace("px",""))),Wi.left&&Wi.left.toString().indexOf("px")>0&&(Wi.left=Number(Wi.left.replace("px",""))),0===Wi.top&&(Wi.top=Wi.top.toString()),0===Wi.left&&(Wi.left=Wi.left.toString()),io.css({top:Wi.top||"",left:Wi.left||""})},_updateBoundaries:function(){var io=this.containment;if(!io)return null;io.width=io.innerWidth(),io.height=io.innerHeight(),parseInt(io.width,10)>io[0].clientWidth&&(io.width-=ze.support.scrollbar()),parseInt(io.height,10)>io[0].clientHeight&&(io.height-=ze.support.scrollbar()),io.position=po(io[0]),this._isPinned?(this.minTop=this.minLeft=-1/0,this.maxTop=this.maxLeft=1/0):(this.minTop=io.scrollTop(),this.minLeft=io.scrollLeft(),this.maxLeft=this.minLeft+io.width-Co(this.wrapper,!0),this.maxTop=this.minTop+io.height-Sn(this.wrapper,!0))},_animationOptions:function(io){var Wi=this.options.animation;return Wi&&Wi[io]||{open:{effects:{}},close:{hide:!0,effects:{}}}[io]},_resize:function(){ze.resize(this.element.children())},_resizable:function(){var io=this.options.resizable,Wi=this.wrapper;this.resizing&&(Wi.off("dblclick"+en).children(Je).remove(),this.resizing.destroy(),this.resizing=null),io&&(Wi.on("dblclick"+en,Nt,function(fo){Xe(fo.target).closest(".k-window-action").length||this.toggleMaximization()}.bind(this)),Dn("n e s w se sw ne nw".split(" "),function(fo,cr){Wi.append(Ot.resizeHandle(cr))}),this.resizing=new ro(this)),Wi=null},_draggable:function(){var io=this.options.draggable;this.dragging&&(this.dragging.destroy(),this.dragging=null),io&&(this.dragging=new wo(this,io.dragHandle||Nt))},_actions:function(){var io=this.options,Wi=io.actions,fo=io.pinned,Fr=this.wrapper.children(Nt).find(".k-window-actions"),jr=["maximize","minimize"];Wi=Xe.map(Wi,function(fs){return fs=fo&&"pin"===fs.toLowerCase()?"unpin":fs,{name:jr.indexOf(fs.toLowerCase())>-1?"window-"+fs:fs}}),Fr.html(ze.render(Ot.action,Wi))},setOptions:function(io){var Wi=this,fo=Wi.options.size,cr=this.containment&&!Wi._isPinned?this.containment:Xe(document),Fr=JSON.parse(JSON.stringify(io));Vn(io.position,Wi.options.position),Vn(io.position,Fr.position),Wi._containerScrollTop=cr.scrollTop(),Wi._containerScrollLeft=cr.scrollLeft(),St.fn.setOptions.call(Wi,io);var jr=!1!==Wi.options.scrollable;if(Wi.restore(),typeof io.title<"u"&&Wi.title(io.title),Wi.wrapper.removeClass(yt[fo]),Wi._dimensions(),Wi._position(),Wi._resizable(),Wi._draggable(),Wi._actions(),typeof io.modal<"u"){var fs=!1!==Wi.options.visible;Wi._enableDocumentScrolling(),Wi._overlay(io.modal&&fs)}Wi.element.css(Qn,jr?"":"hidden")},events:[He,Kt,On,"close","minimize","maximize",Ci,Jn,Vt,"resize",bn,ii,Vi,"kendoKeydown","error"],options:{name:"Window",animation:{open:{effects:{zoom:{direction:"in"},fade:{direction:"in"}},duration:350},close:{effects:{zoom:{direction:"out",properties:{scale:.7}},fade:{direction:"out"}},duration:350,hide:!0}},title:"",actions:["Close"],autoFocus:!0,modal:!1,size:"auto",resizable:!0,draggable:!0,minWidth:90,minHeight:50,maxWidth:1/0,maxHeight:1/0,pinned:!1,scrollable:!0,position:{},content:null,visible:null,height:null,width:null,appendTo:"body",isMaximized:!1,isMinimized:!1},_closable:function(){return Xe.inArray("close",Xe.map(this.options.actions,function(io){return io.toLowerCase()}))>-1},_keydownContent:function(io){io.keyCode==ze.keys.ESC&&this._closable()&&(io.stopPropagation(),this._close(!1))},_keydown:function(io){var fs,Ms,na,Xs,_a,Ws,Wi=this,fo=Wi.options,cr=ze.keys,Fr=io.keyCode,jr=Wi.wrapper,ks=fo.isMaximized,ts=fo.isMinimized;Fr==cr.ESC&&Wi._closable()&&(io.stopPropagation(),Wi._close(!1)),io.target==io.currentTarget&&!Wi._closing&&(io.altKey&&82==Fr&&Wi.refresh(),io.altKey&&80==Fr&&(Wi.options.pinned?Wi.unpin():Wi.pin()),io.altKey&&Fr==cr.UP?ts?(Wi.restore(),Wi.wrapper.trigger("focus")):ks||(Wi.maximize(),Wi.wrapper.trigger("focus")):io.altKey&&Fr==cr.DOWN&&(ts||ks?ks&&(Wi.restore(),Wi.wrapper.trigger("focus")):(Wi.minimize(),Wi.wrapper.trigger("focus"))),fs=ze.getOffset(jr),Wi.containment&&!Wi._isPinned&&(fs=Wi.options.position),fo.draggable&&!io.ctrlKey&&!io.altKey&&!ks&&(Wi._updateBoundaries(),Fr==cr.UP?(fs.top=Kn(fs.top-10,Wi.minTop,Wi.maxTop),Ms=jr.css("top",fs.top)):Fr==cr.DOWN?(fs.top=Kn(fs.top+10,Wi.minTop,Wi.maxTop),Ms=jr.css("top",fs.top)):Fr==cr.LEFT?(fs.left=Kn(fs.left-10,Wi.minLeft,Wi.maxLeft),Ms=jr.css("left",fs.left)):Fr==cr.RIGHT&&(fs.left=Kn(fs.left+10,Wi.minLeft,Wi.maxLeft),Ms=jr.css("left",fs.left))),fo.resizable&&io.ctrlKey&&!ks&&!ts&&(Fr==cr.UP?(Ms=!0,Xs=jr.outerHeight()-10):Fr==cr.DOWN&&(Ms=!0,Xs=Wi.containment&&!Wi._isPinned?Math.min(jr.outerHeight()+10,Wi.containment.height-fs.top-zi(jr,"padding-top")-zi(jr,"borderBottomWidth")-zi(jr,"borderTopWidth")):jr.outerHeight()+10),Fr==cr.LEFT?(Ms=!0,na=jr.outerWidth()-10):Fr==cr.RIGHT&&(Ms=!0,na=Wi.containment&&!Wi._isPinned?Math.min(jr.outerWidth()+10,Wi.containment.width-fs.left-zi(jr,"borderLeftWidth")-zi(jr,"borderRightWidth")):jr.outerWidth()+10),Ms&&(_a=Kn(na,fo.minWidth,fo.maxWidth),Ws=Kn(Xs,fo.minHeight,fo.maxHeight),isNaN(_a)||(jr.outerWidth(_a),Wi.options.width=_a+"px"),isNaN(Ws)||(jr.outerHeight(Ws),Wi.options.height=Ws+"px"),Wi.resize())),Ms&&io.preventDefault())},_overlay:function(io){var Wi=this.containment?this.containment.children(Ve):this.appendTo.children(Ve),fo=this.wrapper,cr=io?"block":"none",Fr=parseInt(fo.css(Oi),10)-1;return Wi.length||(Wi=Xe("<div class='k-overlay' />")),Wi.insertBefore(fo[0]).css({zIndex:Fr,display:cr}),this.options.modal.preventScroll&&!this.containment&&this._stopDocumentScrolling(),Wi},_actionForIcon:function(io){return{"k-i-close":"_close","k-i-window-maximize":"maximize","k-i-window-minimize":"minimize","k-i-window-restore":"restore","k-i-refresh":"refresh","k-i-pin":"pin","k-i-unpin":"unpin"}[/\bk-i(-\w+)+\b/.exec(io[0].className)[0]]},_windowActionHandler:function(io){if(!this._closing){var Wi=Xe(io.target).closest(".k-window-action").find(".k-icon"),fo=this._actionForIcon(Wi);if(fo)return io.preventDefault(),this[fo](),!1}},_modals:function(){for(var fo,io=this,Wi=Xe(Ht+Xn),cr=[],Fr=0;Fr<Wi.length;Fr+=1)(fo=io._object(Xe(Wi[Fr])))&&fo.options&&fo.options.modal&&fo.options.visible&&fo.options.appendTo===io.options.appendTo&&(!fo.containment||io.containment&&fo.containment[0]===io.containment[0])&&cr.push(fo.wrapper[0]);return cr.sort(function(jr,fs){return jr.style.zIndex-fs.style.zIndex}),io=null,Xe(cr)},_object:function(io){var Wi=io.children(an);return ze.widgetInstance(Wi)||Ke},center:function(){var fs,Ms,io=this,Wi=io.options.position,fo=io.wrapper,cr=Xe(window),Fr=0,jr=0;return io.options.isMaximized||(io.options.pinned&&!io._isPinned&&io.pin(),io.options.pinned||(Fr=cr.scrollTop(),jr=cr.scrollLeft()),this.containment&&!io.options.pinned?(fs=this.minTop+(this.maxTop-this.minTop)/2,Ms=this.minLeft+(this.maxLeft-this.minLeft)/2):(io._scrollIsAppended=!0,Ms=jr+Math.max(0,(cr.width()-fo.outerWidth())/2),fs=Fr+Math.max(0,(cr.height()-fo.outerHeight()-zi(fo,"paddingTop"))/2)),fo.css({left:Ms,top:fs}),Wi.top=fs,Wi.left=Ms),io},title:function(io){var fo,cr=!0,Fr=this.wrapper,jr=Fr.children(Nt),fs=jr.children(ft);return arguments.length?(Xe.isPlainObject(io)?(fo=typeof io.text<"u"?io.text:"",cr=!1!==io.encoded):fo=io,!1===fo?(Fr.addClass("k-window-titleless"),Fr.css("padding-top",0),jr.remove()):jr.length?fs.html(cr?ze.htmlEncode(fo):fo):(Fr.prepend(Ot.titlebar({title:cr?ze.htmlEncode(fo):fo})),this._actions(),jr=Fr.children(Nt)),this.options.title=fo,this):fs.html()},content:function(io,Wi){var fo=this.wrapper.children(an),cr=fo.children(".km-scroll-container");return fo=cr[0]?cr:fo,on(io)?(this.angular("cleanup",function(){return{elements:fo.children()}}),ze.destroy(this.element.children()),fo.empty().html(io),this.angular("compile",function(){for(var Fr=[],jr=fo.length;--jr>=0;)Fr.push({dataItem:Wi});return{elements:fo.children(),data:Fr}}),this):fo.html()},open:function(){var jr,fs,io=this,Wi=io.wrapper,fo=io.options,cr=this._animationOptions("open"),Fr=Wi.children(an),Ca=this.containment&&!io._isPinned?this.containment:Xe(document);if(!io.trigger(He)){if(io._closing&&Wi.kendoStop(!0,!0),io._closing=!1,io.toFront(),fo.autoFocus&&io.wrapper.trigger("focus"),fo.visible=!0,fo.modal){if(fs=!!io._modals().length,(jr=io._overlay(fs)).kendoStop(!0,!0),cr.duration&&ze.effects.Fade&&!fs){var ks=ze.fx(jr).fadeIn();ks.duration(cr.duration||0),ks.endValue(.5),ks.play()}else jr.css("opacity",.5);jr.show(),Xe(window).on("focus"+cn,function(){Wi.data("isFront")&&!Xe(document.activeElement).closest(Wi).length&&io.wrapper.trigger("focus")})}Wi.is(Xn)||(Fr.css(Qn,Nn),io.wrapper.find(Ue).addClass("k-button-flat"),Wi.addClass($t).kendoStop().kendoAnimate({effects:cr.effects,duration:cr.duration,complete:this._activate.bind(this)}))}return fo.isMaximized&&(io._containerScrollTop=Ca.scrollTop(),io._containerScrollLeft=Ca.scrollLeft(),io._stopDocumentScrolling()),this.options.pinned&&!this._isPinned&&this.pin(),io},_activate:function(){var io=!1!==this.options.scrollable;this.options.autoFocus&&this.wrapper.trigger("focus"),this.element.css(Qn,io?"":"hidden"),ze.resize(this.element.children()),this.trigger(Kt)},_removeOverlay:function(io){var Wi=this._modals(),fo=this.options,cr=fo.modal&&!Wi.length,Fr=this._animationOptions("close");if(cr){if(!io&&Fr.duration&&ze.effects.Fade){var jr=ze.fx(fo.modal?this._overlay(!0):Xe(Ke)).fadeOut();jr.duration(Fr.duration||0),jr.startValue(.5),jr.play()}else this._overlay(!1).remove();fo.modal.preventScroll&&this._enableDocumentScrolling()}else Wi.length&&(this._object(Wi.last())._overlay(!0),fo.modal.preventScroll&&this._stopDocumentScrolling())},_close:function(io){var Ca,Wi=this,fo=Wi.wrapper,cr=Wi.options,Fr=this._animationOptions("open"),jr=this._animationOptions("close"),Ms=this.containment&&!Wi._isPinned?this.containment:Xe(document);Wi._closing||(Ca=Wi.trigger("close",{userTriggered:!io}),Wi._closing=!Ca,fo.is(Xn)&&!Ca&&(cr.visible=!1,Xe(Ht).each(function(ks,ts){var na=Xe(ts).children(an);ts!=fo&&na.find("> ."+Ge).length>0&&na.children(Ve).remove()}),this._removeOverlay(),Wi.wrapper.find(Ue).removeClass("k-button-flat"),fo.kendoStop().kendoAnimate({effects:jr.effects||Fr.effects,reverse:!0===jr.reverse,duration:jr.duration,complete:this._deactivate.bind(this)}),Xe(window).off(cn)),Wi.options.isMaximized&&(Wi._enableDocumentScrolling(),Wi._containerScrollTop&&Wi._containerScrollTop>0&&Ms.scrollTop(Wi._containerScrollTop),Wi._containerScrollLeft&&Wi._containerScrollLeft>0&&Ms.scrollLeft(Wi._containerScrollLeft)),Wi.options.iframe&&Wi.wrapper.trigger("blur"))},_deactivate:function(){var io=this;if(io.wrapper.removeClass($t).hide().css("opacity",""),io.trigger(On),io.options.modal){var Wi=io._object(io._modals().last());Wi&&Wi.toFront()}},close:function(){return this._close(!0),this},_actionable:function(io){return Xe(io).is(Ue+","+Ue+" .k-icon, :input, a, .k-input, .k-icon, [role='gridcell'], .k-input-value-text")},_shouldFocus:function(io){var Wi=Ui(),fo=this.wrapper;return this.options.autoFocus&&!Xe(Wi).is(fo)&&!this._actionable(io)&&(!fo.find(Wi).length||!fo.find(io).length)},toFront:function(io,Wi){var fo=this,cr=fo.wrapper,Fr=cr[0],jr=fo.containment&&!fo._isPinned,fs=this._animationOptions("open"),Ms=+cr.css(Oi),Ca=Ms,ks=io&&io.target||null;if(Xe(Ht).each(function(Xs,_a){var Ws=Xe(_a),cs=Ws.css(Oi),Ps=Ws.children(an);isNaN(cs)||(Ms=Math.max(+cs,Ms)),cr.data("isFront",_a==Fr),_a!=Fr&&Ps.find("."+Ge).length&&!Ps.find(Ve).length&&Ps.append(Ot.overlay)}),(!cr[0].style.zIndex||Ca<Ms)&&cr.css(Oi,Ms+2),fo.element.find("> .k-overlay").remove(),fo._shouldFocus(ks)){Wi||setTimeout(function(){fo.wrapper.focus()},fs?fs.duration:0);var ts=jr?fo.containment.scrollTop():Xe(window).scrollTop(),na=parseInt(cr.position().top,10);!fo.options.pinned&&na>0&&na<ts&&(ts>0?Xe(window).scrollTop(na):cr.css("top",ts))}return cr=null,fo},toggleMaximization:function(){return this._closing?this:this[this.options.isMaximized?"restore":"maximize"]()},restore:function(){var io=this,Wi=io.options,fo=Wi.minHeight,cr=io.restoreOptions,jr=io.containment&&!io._isPinned?io.containment:Xe(document);return!Wi.isMaximized&&!Wi.isMinimized||(fo&&fo!=1/0&&io.wrapper.css("min-height",fo),cr&&!Wi.isMaximized&&(cr.height=Kn(cr.height,io.options.minHeight,io.options.maxHeight),Wi.position.top+parseInt(cr.height,10)>io.maxTop&&(Wi.position.top=Kn(Wi.position.top,io.minTop,io.maxTop-parseInt(cr.height,10)),Vn(cr,{left:Wi.position.left,top:Wi.position.top}))),io.wrapper.css({position:Wi.pinned?"fixed":"absolute",left:cr.left,top:cr.top,width:cr.width,height:cr.height}).removeClass(Pt).find(".k-window-content,.k-resize-handle").show().end().find(".k-window-titlebar .k-i-window-restore").parent().remove().end().end().find(Ai).parent().show().end().end().find(Ni).parent().show(),Wi.isMaximized?io.wrapper.find(".k-i-window-maximize").parent().trigger("focus"):Wi.isMinimized&&io.wrapper.find(".k-i-window-minimize").parent().trigger("focus"),io.options.width=cr.width,io.options.height=cr.height,io.options.modal.preventScroll||io._enableDocumentScrolling(),io._containerScrollTop&&io._containerScrollTop>0&&jr.scrollTop(io._containerScrollTop),io._containerScrollLeft&&io._containerScrollLeft>0&&jr.scrollLeft(io._containerScrollLeft),Wi.isMaximized=Wi.isMinimized=!1,io.wrapper.removeAttr("aria-labelled-by"),io.resize(),io.trigger(Jn)),io},_sizingAction:function(io,Wi){var fo=this,cr=fo.wrapper,Fr=cr[0].style,jr=fo.options;return jr.isMaximized||jr.isMinimized||(fo.restoreOptions={width:Fr.width,height:Fr.height},cr.children(Je).hide().end().children(Nt).find(Ai).parent().hide().eq(0).before(Ot.action({name:"window-restore"})),Wi.call(fo),fo.wrapper.children(Nt).find(Ni).parent().toggle("maximize"!==io),fo.trigger(io),cr.find(".k-i-window-restore").parent().trigger("focus")),fo},maximize:function(){return this._sizingAction("maximize",function(){var io=this,Wi=io.wrapper,fo=this.containment&&!io._isPinned,cr=Wi.position(),Fr=Xe(document);Vn(io.restoreOptions,{left:cr.left+(fo?this.containment.scrollLeft():0),top:cr.top+(fo?this.containment.scrollTop():0)}),this._containerScrollTop=fo?this.containment.scrollTop():Fr.scrollTop(),this._containerScrollLeft=fo?this.containment.scrollLeft():Fr.scrollLeft(),io._stopDocumentScrolling(),Wi.css({top:fo?this.containment.scrollTop():0,left:fo?this.containment.scrollLeft():0,position:fo?"absolute":"fixed"}).addClass(Pt),io.options.isMaximized=!0,io._onDocumentResize()}),this},_stopDocumentScrolling:function(){var io=this,Wi=io.containment;if(Wi&&!io._isPinned)return io._storeOverflowRule(Wi),Wi.css(Qn,Nn),void io.wrapper.css({maxWidth:Wi.innerWidth(),maxHeight:Wi.innerHeight()});var fo=Xe("body");io._storeOverflowRule(fo),fo.css(Qn,Nn);var cr=Xe("html");io._storeOverflowRule(cr),cr.css(Qn,Nn)},_enableDocumentScrolling:function(){var io=this,Wi=io.containment;if(Wi&&!io._isPinned)return io._restoreOverflowRule(Wi),void io.wrapper.css({maxWidth:Wi.width,maxHeight:Wi.height});io._restoreOverflowRule(Xe(document.body)),io._restoreOverflowRule(Xe("html"))},_storeOverflowRule:function(io){if(!this._isOverflowStored(io)){var Wi=io.get(0).style.overflow;"string"==typeof Wi&&io.data(ci,Wi)}},_isOverflowStored:function(io){return"string"==typeof io.data(ci)},_restoreOverflowRule:function(io){var Wi=io.data(ci);null!==Wi&&Wi!==Ke?(io.css(Qn,Wi),io.removeData(ci)):io.css(Qn,"")},isMaximized:function(){return this.options.isMaximized},minimize:function(){return this._sizingAction("minimize",function(){this.wrapper.css({height:"",minHeight:""}),this.element.hide(),this.options.isMinimized=!0}),this.wrapper.attr("aria-labelled-by",this.element.attr("aria-labelled-by")),this._updateBoundaries(),this},isMinimized:function(){return this.options.isMinimized},pin:function(){var io=this,Wi=Xe(window),fo=io.wrapper,cr=io.options,Fr=cr.position,jr=this.containment?po(fo[0]).top+zi(this.containment,"borderTopWidth"):zi(fo,"top"),fs=this.containment?po(fo[0]).left+zi(this.containment,"borderLeftWidth"):zi(fo,"left");io.options.isMaximized||(Fr.top=jr,Fr.left=fs,io._scrollIsAppended&&(!this.containment||"fixed"!==this.containment.css("position"))&&(Fr.top-=Wi.scrollTop(),Fr.left-=Wi.scrollLeft(),io._scrollIsAppended=!1),fo.css(Vn(Fr,{position:"fixed"})),fo.children(Nt).find(Pn).addClass("k-i-unpin").removeClass("k-i-pin"),io._isPinned=!0,io.options.pinned=!0,this.containment&&(cr.maxWidth=cr.maxHeight=1/0,fo.css({maxWidth:"",maxHeight:""})))},unpin:function(){var io=this,Wi=Xe(window),fo=io.wrapper,cr=io.options,Fr=io.options.position,jr=io.containment,fs=parseInt(fo.css("top"),10)+Wi.scrollTop(),Ms=parseInt(fo.css("left"),10)+Wi.scrollLeft();io.options.isMaximized||(io._isPinned=!1,io._scrollIsAppended=!0,io.options.pinned=!1,jr&&(io._updateBoundaries(),cr.maxWidth=Math.min(jr.width,cr.maxWidth),cr.maxHeight=Math.min(jr.height-zi(fo,"padding-top"),cr.maxHeight),fo.css({maxWidth:cr.maxWidth,maxHeight:cr.maxHeight}),fs=fs<jr.position.top?io.minTop:fs>jr.position.top+jr.height?io.maxTop:fs+jr.scrollTop()-(jr.position.top+zi(jr,"border-top-width")),Ms=Ms<jr.position.left?io.minLeft:Ms>jr.position.left+jr.width?io.maxLeft:Ms+jr.scrollLeft()-(jr.position.left+zi(jr,"border-left-width"))),Fr.top=Kn(fs,io.minTop,io.maxTop),Fr.left=Kn(Ms,io.minLeft,io.maxLeft),fo.css(Vn(Fr,{position:""})),fo.children(Nt).find(qn).addClass("k-i-pin").removeClass("k-i-unpin"))},_onDocumentResize:function(){var jr,fs,io=this,Wi=io.wrapper,fo=Xe(window),cr=ze.support.zoomLevel(),Fr="content-box"==Wi.css("box-sizing");if(io.options.isMaximized){var Ms=Fr?zi(Wi,"border-left-width")+zi(Wi,"border-right-width"):0,Ca=Fr?zi(Wi,"border-top-width")+zi(Wi,"border-bottom-width"):0,ks=Fr?zi(Wi,"padding-top"):0;io.containment&&!io._isPinned?(jr=io.containment.innerWidth()-Ms,fs=io.containment.innerHeight()-(Ca+ks)):(jr=fo.width()/cr-Ms,fs=fo.height()/cr-(Ca+ks)),Wi.css({width:jr,height:fs}),io.options.width=jr,io.options.height=fs,io.resize()}},refresh:function(io){var Fr,jr,fs,Wi=this,fo=Wi.options,cr=Xe(Wi.element);return Hn(io)||(io={url:io}),io=Vn(fo.content,io),jr=on(fo.iframe)?fo.iframe:io.iframe,(fs=io.url)?(on(jr)||(jr=!lt(fs)),jr?((Fr=cr.find("."+Ge)[0])?Fr.src=fs||Fr.src:cr.html(Ot.contentFrame(Vn({},fo,{content:io}))),cr.find("."+Ge).off("load"+en).on("load"+en,this._triggerRefresh.bind(this))):Wi._ajaxRequest(io)):(io.template&&Wi.content(kn(io.template)({})),Wi.trigger(Ci)),cr.toggleClass("k-window-iframecontent",!!jr),Wi},_triggerRefresh:function(){this.trigger(Ci)},_ajaxComplete:function(){clearTimeout(this._loadingIconTimeout),this.wrapper.find(Ye).removeClass(Be)},_ajaxError:function(io,Wi){this.trigger("error",{status:Wi,xhr:io})},_ajaxSuccess:function(io){return function(Wi){var fo=Wi;io&&(fo=kn(io)(Wi||{})),this.content(fo,Wi),this.element.prop("scrollTop",0),this.trigger(Ci)}},_showLoading:function(){this.wrapper.find(Ye).addClass(Be)},_ajaxRequest:function(io){this._loadingIconTimeout=setTimeout(this._showLoading.bind(this),100),Xe.ajax(Vn({type:"GET",dataType:"html",cache:!1,error:this._ajaxError.bind(this),complete:this._ajaxComplete.bind(this),success:this._ajaxSuccess(io.template).bind(this)},io))},_destroy:function(){this.resizing&&this.resizing.destroy(),this.dragging&&this.dragging.destroy(),this.wrapper.off(en).children(an).off(en).end().find(".k-resize-handle,.k-window-titlebar").off(en),Xe(window).off("resize"+en+this._marker),Xe(window).off(cn),Xe(window).off(en),clearTimeout(this._loadingIconTimeout),St.fn.destroy.call(this),this.unbind(Ke),ze.destroy(this.wrapper)},destroy:function(){this._destroy(),this.options.modal&&this._removeOverlay(!0),this.wrapper.empty().remove(),this.wrapper=this.appendTo=this.element=Xe()},_createWindow:function(){var fo,cr,io=this.element,Wi=this.options,Fr=ze.support.isRtl(io);!1===Wi.scrollable&&io.css("overflow","hidden"),cr=Xe(Ot.wrapper(Wi)),fo=io.find("iframe:not(.k-content-frame)").map(function(){var jr=this.getAttribute("src");return this.src="",jr}),cr.toggleClass("k-rtl",Fr).attr("tabindex",0).append(io).find("iframe:not(.k-content-frame)").each(function(jr){this.src=fo[jr]}),this.containment?this.containment.prepend(cr):this.appendTo&&cr.appendTo(this.appendTo),cr.find(".k-window-title").css(Fr?"left":"right",Co(cr.find(".k-window-actions"))+10),io.css("visibility","").show(),io.find("[data-role=editor]").each(function(){var jr=Xe(this).data("kendoEditor");jr&&jr.refresh()}),cr=io=null}});function ro(io){var Wi=this;Wi.owner=io,Wi._preventDragging=!1,Wi._draggable=new Dt(io.wrapper,{filter:">"+Je,group:io.wrapper.id+"-resizing",dragstart:Wi.dragstart.bind(Wi),drag:Wi.drag.bind(Wi),dragend:Wi.dragend.bind(Wi)}),Wi._draggable.userEvents.bind("press",Wi.addOverlay.bind(Wi)),Wi._draggable.userEvents.bind("release",Wi.removeOverlay.bind(Wi))}function wo(io,Wi){var fo=this;fo.owner=io,fo._preventDragging=!1,fo._draggable=new Dt(io.wrapper,{filter:Wi,group:io.wrapper.id+"-moving",dragstart:fo.dragstart.bind(fo),drag:fo.drag.bind(fo),dragend:fo.dragend.bind(fo),dragcancel:fo.dragcancel.bind(fo)}),fo._draggable.userEvents.stopPropagation=!1}return Ot={wrapper:kn("<div class='k-widget k-window'></div>"),action:kn("<a role='button' href='\\#' class='k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-window-action' aria-label='#= name #'><span class='k-button-icon k-icon k-i-#= name.toLowerCase() #'></span></a>"),titlebar:kn("<div class='k-window-titlebar k-hstack'><span class='k-window-title'>#= title #</span><div class='k-window-actions k-hstack'></div></div>"),overlay:"<div class='k-overlay'></div>",contentFrame:kn("<iframe frameborder='0' title='#= title #' class='"+Ge+"' src='#= content.url #'>This page requires frames in order to show content</iframe>"),resizeHandle:kn("<div aria-hidden='true' class='k-resize-handle k-resize-#= data #'></div>")},ro.prototype={addOverlay:function(){this.owner.wrapper.append(Ot.overlay)},removeOverlay:function(){this.owner.wrapper.find(Ve).remove()},dragstart:function(io){var Wi=this,fo=Wi.owner,cr=fo.wrapper;if(Wi._preventDragging=fo.trigger(Vt),!Wi._preventDragging){Wi.elementPadding=parseInt(cr.css("padding-top"),10),Wi.initialPosition=ze.getOffset(cr,"position"),Wi.resizeDirection=io.currentTarget.prop("className").replace("k-resize-handle k-resize-",""),Wi.initialSize={width:cr.outerWidth(),height:cr.outerHeight()},fo._updateBoundaries(),Wi.containerOffset=fo.containment?fo.containment.position:ze.getOffset(fo.appendTo);var Fr=cr.offsetParent();if(Fr.is("html"))Wi.containerOffset.top=Wi.containerOffset.left=0;else{var jr=Fr.css("margin-top"),fs=Fr.css("margin-left");if(!pe.test(jr)||!pe.test(fs)){var Ca=po(cr[0]),ks=Ca.left-Wi.containerOffset.left-Wi.initialPosition.left,ts=Ca.top-Wi.containerOffset.top-Wi.initialPosition.top;Wi._relativeElMarginLeft=ks>1?ks:0,Wi._relativeElMarginTop=ts>1?ts:0,Wi.initialPosition.left+=Wi._relativeElMarginLeft,Wi.initialPosition.top+=Wi._relativeElMarginTop}}cr.children(Je).not(io.currentTarget).hide(),Xe(ui).css(Ae,io.currentTarget.css(Ae))}},drag:function(io){if(!this._preventDragging){var Ws,cs,Ps,Qi,Wi=this,fo=Wi.owner,cr=fo.wrapper,Fr=fo.options,jr=Fr.position,fs=Wi.resizeDirection,Ms=Wi.containerOffset,Ca=Wi.initialPosition,ks=Wi.initialSize,ts=fo.containment&&!fo._isPinned,na=ze.support.isRtl(fo.containment),Xs=ts&&na&&fo.containment.innerWidth()>fo.containment.width?ze.support.scrollbar():0,_a=ts?{top:fo.containment.scrollTop(),left:fo.containment.scrollLeft()}:{top:0,left:0},vo=Math.max(io.x.location,0),pi=Math.max(io.y.location,0);fs.indexOf("e")>=0?cr.outerWidth(Kn(Ws=fo.containment&&vo-ks.width>=fo.maxLeft-_a.left+Ms.left+Xs?fo.maxLeft+Xs-Ca.left+ks.width-_a.left:vo-Ca.left-Ms.left,Fr.minWidth,Fr.maxWidth)):fs.indexOf("w")>=0&&(Ws=Kn((Qi=Ca.left+ks.width+Ms.left)-vo,Fr.minWidth,Fr.maxWidth),jr.left=Qi-Ws-Ms.left-Xs-(Wi._relativeElMarginLeft||0)+_a.left,fo.containment&&jr.left<=fo.minLeft&&(jr.left=fo.minLeft,Ws=Kn(Qi-Xs-jr.left-Ms.left+_a.left,Fr.minWidth,Fr.maxWidth)),cr.css({left:jr.left,width:Ws}));var to=pi;fo.options.pinned&&(to-=Xe(window).scrollTop()),fs.indexOf("s")>=0?(cs=to-Ca.top-Wi.elementPadding-Ms.top,to-ks.height-Wi.elementPadding>=fo.maxTop+Ms.top-_a.top&&(cs=fo.maxTop-Ca.top+ks.height-_a.top),cr.outerHeight(Kn(cs,Fr.minHeight,Fr.maxHeight))):fs.indexOf("n")>=0&&(cs=Kn((Ps=Ca.top+ks.height+Ms.top)-to,Fr.minHeight,Fr.maxHeight),jr.top=Ps-cs-Ms.top-(Wi._relativeElMarginTop||0)+_a.top,jr.top<=fo.minTop&&fo.containment&&(jr.top=fo.minTop,cs=Kn(Ps-jr.top-Ms.top+_a.top,Fr.minHeight,Fr.maxHeight)),cr.css({top:jr.top,height:cs})),Ws&&(fo.options.width=Ws+"px"),cs&&(fo.options.height=cs+"px"),fo.resize()}},dragend:function(io){if(!this._preventDragging){var fo=this.owner,cr=fo.wrapper;return cr.children(Je).not(io.currentTarget).show(),Xe(ui).css(Ae,""),fo.touchScroller&&fo.touchScroller.reset(),27==io.keyCode&&cr.css(this.initialPosition).css(this.initialSize),fo.trigger(bn),!1}},destroy:function(){this._draggable&&this._draggable.destroy(),this._draggable=this.owner=null}},wo.prototype={dragstart:function(io){var Wi=this.owner,fo=Wi.options.draggable,cr=Wi.element,Fr=cr.find(".k-window-actions"),jr=ze.getOffset(Wi.appendTo);this._preventDragging=Wi.trigger(ii)||!fo,!this._preventDragging&&!Wi.isMaximized()&&(Wi.initialWindowPosition=ze.getOffset(Wi.wrapper,"position"),Wi.initialPointerPosition={left:Wi.options.position.left,top:Wi.options.position.top},Wi.startPosition={left:io.x.client-Wi.initialWindowPosition.left,top:io.y.client-Wi.initialWindowPosition.top},Wi._updateBoundaries(),Wi.containment||(Wi.minLeft=Fr.length>0?Co(Fr)+parseInt(Fr.css("right"),10)-Co(cr):20-Co(cr),Wi.minLeft-=jr.left,Wi.minTop=-jr.top),Xe(Ot.overlay).appendTo(Wi.wrapper).css({opacity:0}),Wi.wrapper.children(Je).hide(),Xe(ui).css(Ae,io.currentTarget.css(Ae)))},drag:function(io){var Fr,jr,Wi=this.owner,fo=Wi.options.position,cr=Wi.options.draggable.axis;this._preventDragging||Wi.isMaximized()||((!cr||"x"===cr.toLowerCase())&&(Fr=io.x.client-Wi.startPosition.left,Wi.containment&&!Wi._isPinned&&(Fr+=Wi.containment.scrollLeft()),fo.left=Kn(Fr,Wi.minLeft,Wi.maxLeft)),(!cr||"y"===cr.toLowerCase())&&(jr=io.y.client-Wi.startPosition.top,Wi.containment&&!Wi._isPinned&&(jr+=Wi.containment.scrollTop()),fo.top=Kn(jr,Wi.minTop,Wi.maxTop)),ze.support.transforms?Xe(Wi.wrapper).css("transform","translate("+(fo.left-Wi.initialPointerPosition.left)+"px, "+(fo.top-Wi.initialPointerPosition.top)+"px)"):Xe(Wi.wrapper).css(fo))},_finishDrag:function(){var io=this.owner;io.wrapper.children(Je).toggle(!io.options.isMinimized).end().find(Ve).remove(),Xe(ui).css(Ae,"")},dragcancel:function(io){this._preventDragging||(this._finishDrag(),io.currentTarget.closest(Ht).css(this.owner.initialWindowPosition))},dragend:function(){var io=this.owner;if(!this._preventDragging&&!io.isMaximized())return Xe(io.wrapper).css(io.options.position).css("transform",""),this._finishDrag(),io.trigger(Vi),!1},destroy:function(){this._draggable&&this._draggable.destroy(),this._draggable=this.owner=null}},ze.ui.plugin($i),window.kendo}.apply(se={},ur=[g,A]))&&(q=se),void 0===(ne=function(){var Xe=(window.kendo=window.kendo||{},kendo.Class),Ke=kendo.support,ze={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},St=Ke.browser,it=function(cn){var Ht=Object.keys(ze);Ht.push("transparent");var ft=new RegExp("^("+Ht.join("|")+")(\\W|$)","i");return it=function(Nt){return ft.exec(Nt)},ft.exec(cn)},Dt=Xe.extend({init:function(){},toHSV:function(){return this},toRGB:function(){return this},toHex:function(cn){return this.toBytes().toHex(cn)},toBytes:function(){return this},toCss:function(cn){return"#"+this.toHex(cn)},toCssRgba:function(){var cn=this.toBytes();return"rgba("+cn.r+", "+cn.g+", "+cn.b+", "+parseFloat(Number(this.a).toFixed(3))+")"},toDisplay:function(){return St.msie&&St.version<9?this.toCss():this.toCssRgba()},equals:function(cn){return cn===this||null!=cn&&this.toCssRgba()===ui(cn).toCssRgba()},diff:function(cn){if(null===cn)return NaN;var Ht=this.toBytes(),ft=cn.toBytes();return Math.sqrt(Math.pow(.3*(Ht.r-ft.r),2)+Math.pow(.59*(Ht.g-ft.g),2)+Math.pow(.11*(Ht.b-ft.b),2))},clone:function(){var cn=this.toBytes();return cn===this&&(cn=new Ui(cn.r,cn.g,cn.b,cn.a)),cn}}),Hn=Dt.extend({init:function(cn,Ht,ft,Nt){Dt.fn.init.call(this),this.r=cn,this.g=Ht,this.b=ft,this.a=Nt},toHSV:function(){var Ge,Be,Ht=this.r,ft=this.g,Nt=this.b,an=Math.min(Ht,ft,Nt),$e=Math.max(Ht,ft,Nt),Je=$e-an,Ve=$e;return 0===Je?new Sn(0,0,Ve,this.a):(0!==$e?(Be=Je/$e,Ge=Ht===$e?(ft-Nt)/Je:ft===$e?2+(Nt-Ht)/Je:4+(Ht-ft)/Je,(Ge*=60)<0&&(Ge+=360)):(Be=0,Ge=-1),new Sn(Ge,Be,Ve,this.a))},toHSL:function(){var Je,Ve,Ht=this.r,ft=this.g,Nt=this.b,an=Math.max(Ht,ft,Nt),$e=Math.min(Ht,ft,Nt),Ge=(an+$e)/2;if(an===$e)Je=Ve=0;else{var Be=an-$e;switch(Ve=Ge>.5?Be/(2-an-$e):Be/(an+$e),an){case Ht:Je=(ft-Nt)/Be+(ft<Nt?6:0);break;case ft:Je=(Nt-Ht)/Be+2;break;case Nt:Je=(Ht-ft)/Be+4}}return new Vn(60*Je,100*Ve,100*Ge,this.a)},toBytes:function(){return new Ui(255*this.r,255*this.g,255*this.b,this.a)}}),Ui=Hn.extend({init:function(cn,Ht,ft,Nt){Hn.fn.init.call(this,Math.round(cn),Math.round(Ht),Math.round(ft),Nt)},toRGB:function(){return new Hn(this.r/255,this.g/255,this.b/255,this.a)},toHSV:function(){return this.toRGB().toHSV()},toHSL:function(){return this.toRGB().toHSL()},toHex:function(cn){var Ht=Co(this.r,2)+Co(this.g,2)+Co(this.b,2);return cn&&cn.alpha&&(Ht+=Co(Math.round(255*this.a),2)),Ht},toBytes:function(){return this}});function Co(cn,Ht,ft){void 0===ft&&(ft="0");for(var Nt=cn.toString(16);Ht>Nt.length;)Nt=ft+Nt;return Nt}var Sn=Dt.extend({init:function(cn,Ht,ft,Nt){Dt.fn.init.call(this),this.h=cn,this.s=Ht,this.v=ft,this.a=Nt},toRGB:function(){var an,$e,Je,Ht=this.h,ft=this.s,Nt=this.v;if(0===ft)an=$e=Je=Nt;else{Ht/=60;var Ve=Math.floor(Ht),Ge=Ht-Ve,Be=Nt*(1-ft),At=Nt*(1-ft*Ge),Rt=Nt*(1-ft*(1-Ge));switch(Ve){case 0:an=Nt,$e=Rt,Je=Be;break;case 1:an=At,$e=Nt,Je=Be;break;case 2:an=Be,$e=Nt,Je=Rt;break;case 3:an=Be,$e=At,Je=Nt;break;case 4:an=Rt,$e=Be,Je=Nt;break;default:an=Nt,$e=Be,Je=At}}return new Hn(an,$e,Je,this.a)},toHSL:function(){return this.toRGB().toHSL()},toBytes:function(){return this.toRGB().toBytes()}}),Vn=Dt.extend({init:function(cn,Ht,ft,Nt){Dt.fn.init.call(this),this.h=cn,this.s=Ht,this.l=ft,this.a=Nt},toRGB:function(){var Nt,an,$e,cn=this.h/360,Ht=this.s/100,ft=this.l/100;if(0===Ht)Nt=an=$e=ft;else{var Je=ft<.5?ft*(1+Ht):ft+Ht-ft*Ht,Ve=2*ft-Je;Nt=Dn(Ve,Je,cn+1/3),an=Dn(Ve,Je,cn),$e=Dn(Ve,Je,cn-1/3)}return new Hn(Nt,an,$e,this.a)},toHSV:function(){return this.toRGB().toHSV()},toBytes:function(){return this.toRGB().toBytes()}});function Dn(cn,Ht,ft){var Nt=ft;return Nt<0&&(Nt+=1),Nt>1&&(Nt-=1),Nt<1/6?cn+6*(Ht-cn)*Nt:Nt<.5?Ht:Nt<2/3?cn+(Ht-cn)*(2/3-Nt)*6:cn}function kn(cn){return parseFloat(parseFloat(parseInt(cn,16)/255).toFixed(3))}function ui(cn,Ht){var ft,Nt;if(null==cn||"none"===cn)return null;if(cn instanceof Dt)return cn;var an=cn.toLowerCase();if(ft=it(an))return(an="transparent"===ft[1]?new Hn(1,1,1,0):ui(ze[ft[1]],Ht)).match=[ft[1]],an;if((ft=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(an))?Nt=new Ui(parseInt(ft[1],16),parseInt(ft[2],16),parseInt(ft[3],16),1):(ft=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(an))?Nt=new Ui(parseInt(ft[1]+ft[1],16),parseInt(ft[2]+ft[2],16),parseInt(ft[3]+ft[3],16),1):(ft=/^#?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(an))?Nt=new Ui(parseInt(ft[1]+ft[1],16),parseInt(ft[2]+ft[2],16),parseInt(ft[3]+ft[3],16),kn(ft[4]+ft[4])):(ft=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(an))?Nt=new Ui(parseInt(ft[1],16),parseInt(ft[2],16),parseInt(ft[3],16),kn(ft[4])):(ft=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(an))?Nt=new Ui(parseInt(ft[1],10),parseInt(ft[2],10),parseInt(ft[3],10),1):(ft=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(an))?Nt=new Ui(parseInt(ft[1],10),parseInt(ft[2],10),parseInt(ft[3],10),parseFloat(ft[4])):(ft=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(an))?Nt=new Hn(parseFloat(ft[1])/100,parseFloat(ft[2])/100,parseFloat(ft[3])/100,1):(ft=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(an))&&(Nt=new Hn(parseFloat(ft[1])/100,parseFloat(ft[2])/100,parseFloat(ft[3])/100,parseFloat(ft[4]))),Nt)Nt.match=ft;else if(!Ht)throw new Error("Cannot parse color: "+an);return Nt}var en=Xe.extend({init:function(cn){if(1===arguments.length)for(var ft=en.formats,Nt=this.resolveColor(cn),an=0;an<ft.length;an++){var Je=ft[an].process,Ve=ft[an].re.exec(Nt);if(Ve){var Ge=Je(Ve);this.r=Ge[0],this.g=Ge[1],this.b=Ge[2]}}else this.r=arguments[0],this.g=arguments[1],this.b=arguments[2];this.r=this.normalizeByte(this.r),this.g=this.normalizeByte(this.g),this.b=this.normalizeByte(this.b)},toHex:function(){var cn=this.padDigit,Ht=this.r.toString(16),ft=this.g.toString(16),Nt=this.b.toString(16);return"#"+cn(Ht)+cn(ft)+cn(Nt)},resolveColor:function(cn){var Ht=cn||"black";return"#"===Ht.charAt(0)&&(Ht=Ht.substr(1,6)),Ht=(Ht=Ht.replace(/ /g,"")).toLowerCase(),en.namedColors[Ht]||Ht},normalizeByte:function(cn){return cn<0||isNaN(cn)?0:cn>255?255:cn},padDigit:function(cn){return 1===cn.length?"0"+cn:cn},brightness:function(cn){var Ht=Math.round;return this.r=Ht(this.normalizeByte(this.r*cn)),this.g=Ht(this.normalizeByte(this.g*cn)),this.b=Ht(this.normalizeByte(this.b*cn)),this},percBrightness:function(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)},isDark:function(){return this.percBrightness()<180}});en.fromBytes=function(cn,Ht,ft,Nt){return new Ui(cn,Ht,ft,Nt??1)},en.fromRGB=function(cn,Ht,ft,Nt){return new Hn(cn,Ht,ft,Nt??1)},en.fromHSV=function(cn,Ht,ft,Nt){return new Sn(cn,Ht,ft,Nt??1)},en.fromHSL=function(cn,Ht,ft,Nt){return new Vn(cn,Ht,ft,Nt??1)},en.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(cn){return[parseInt(cn[1],10),parseInt(cn[2],10),parseInt(cn[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(cn){return[parseInt(cn[1],16),parseInt(cn[2],16),parseInt(cn[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(cn){return[parseInt(cn[1]+cn[1],16),parseInt(cn[2]+cn[2],16),parseInt(cn[3]+cn[3],16)]}}],en.namedColors=ze,kendo.deepExtend(kendo,{parseColor:ui,namedColors:ze,Color:en})}.apply(_e={},ur=[e]))&&(ne=_e),void 0===(ge=function(){var Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,St=ze.ui.Widget,it=ze.ui.Draggable,Dt=ze._outerWidth,Hn=ze._outerHeight,Ui=Xe.extend,Co=ze.format,Sn=ze.parseFloat,Vn=Array.isArray,Dn=Math,kn=ze.support,ui=kn.pointers,Ot=kn.msPointers,en="change",cn="slide",Ht=".slider",ft="touchstart"+Ht+" mousedown"+Ht,Nt=ui?"pointerdown"+Ht:Ot?"MSPointerDown"+Ht:ft,an="touchend"+Ht+" mouseup"+Ht,$e=ui?"pointerup":Ot?"MSPointerUp"+Ht:an,Je="moveSelection",Ve="keydown"+Ht,Ge="click"+Ht,Be="mouseover"+Ht,At="focus"+Ht,Rt="blur"+Ht,Pt=".k-draghandle",$t=".k-slider-track",Xn=".k-tick",Nn="k-selected",Ae="k-focus",He="k-disabled",Kt="disabled",Fi="tabindex",Ci=ze.getTouches,xi="aria-valuetext",Wn="aria-valuenow",Vt=St.extend({init:function(Ue,Ye){var Me=this;if(St.fn.init.call(Me,Ue,Ye),Me._isHorizontal="horizontal"==(Ye=Me.options).orientation,Me._isRtl=Me._isHorizontal&&ze.support.isRtl(Ue),Me._position=Me._isHorizontal?"left":"bottom",Me._sizeFn=Me._isHorizontal?"width":"height",Me._outerSize=Me._isHorizontal?Dt:Hn,Ye.tooltip.format=Ye.tooltip.enabled&&Ye.tooltip.format||"{0}",Ye.smallStep<=0)throw new Error("Kendo UI Slider smallStep must be a positive number.");Me._createHtml(),Me._trackDiv=Me.wrapper.find($t),Me._maxSelection=Me._trackDiv[Me._sizeFn](),Me._sliderItemsInit(),Me._reset(),Me._tabindex(Me.wrapper.find(Pt)),Me[Ye.enabled?"enable":"disable"]();var pe=ze.support.isRtl(Me.wrapper)?-1:1;Me._keyMap={37:Jn(-1*pe*Ye.smallStep),40:Jn(-Ye.smallStep),39:Jn(1*pe*Ye.smallStep),38:Jn(+Ye.smallStep),35:zt(Ye.max),36:zt(Ye.min),33:Jn(+Ye.largeStep),34:Jn(-Ye.largeStep)},Me._ariaLabel(Me.wrapper.find(Pt)),ze.notify(Me)},events:[en,cn],options:{enabled:!0,min:0,max:10,smallStep:1,largeStep:5,orientation:"horizontal",tickPlacement:"both",tooltip:{enabled:!0,format:"{0}"}},_distance:function(){return ci(this.options.max-this.options.min)},_resize:function(){this.wrapper.find(".k-slider-items").remove(),this._maxSelection=this._trackDiv[this._sizeFn](),this._sliderItemsInit(),this._refresh(),this.options.enabled&&this.enable(!0)},_sliderItemsInit:function(){var Ue=this,Ye=Ue.options,Me=(Ue._maxSelection-2)/((Ye.max-Ye.min)/Ye.smallStep),pe=Ue._calculateItemsWidth(Dn.floor(Pn(Ue._distance())/Pn(Ye.smallStep)));"none"!=Ye.tickPlacement&&Me>=2&&(Xe(this.element).parent().find(".k-slider-items").remove(),Ue._trackDiv.before(function ii(Ue,Ye){var lt,Me="<ul class='k-reset k-slider-items' role='presentation'>",pe=Dn.floor(ci(Ye/Ue.smallStep))+1;for(lt=0;lt<pe;lt++)Me+="<li class='k-tick'></li>";return Me+"</ul>"}(Ye,Ue._distance())),Ue._setItemsTitle()),Ue._calculateSteps(pe),"none"!=Ye.tickPlacement&&Me>=2&&Ye.largeStep>=Ye.smallStep&&(Ue._setItemsLargeTick(),Ue.wrapper.find(Xn).first().addClass("k-first"),Ue.wrapper.find(Xn).last().addClass("k-last"))},getSize:function(){return ze.dimensions(this.wrapper)},_setItemsTitle:function(){for(var Ye=this.options,Me=this.wrapper.find(Xn),pe=Ye.min,lt=Me.length,yt=0;yt<=lt;yt+=1)Xe(Me[yt]).attr("title",Co(Ye.tooltip.format,ci(pe))),pe+=Ye.smallStep},_setItemsLargeTick:function(){var lt,Ue=this,Ye=Ue.options,Me=Ue.wrapper.find(Xn),pe=0;if(Pn(Ye.largeStep)%Pn(Ye.smallStep)==0||Ue._distance()/Ye.largeStep>=3)for(!Ue._isHorizontal&&!Ue._isRtl&&(Me=Xe.makeArray(Me).reverse()),pe=0;pe<Me.length;pe++){lt=Xe(Me[pe]);var on=ci(Pn(Ue._values[pe]-this.options.min));on%Pn(Ye.smallStep)==0&&on%Pn(Ye.largeStep)==0&&(lt.addClass("k-tick-large").html("<span class='k-label'>"+lt.attr("title")+"</span>"),0!==pe&&pe!==Me.length-1&&lt.css("line-height",lt[Ue._sizeFn]()+"px"))}},_calculateItemsWidth:function(Ue){var zi,Kn,ho,Ye=this,Me=Ye.options,pe=parseFloat(Ye._trackDiv.css(Ye._sizeFn))+1,lt=Ye._distance(),yt=Pn(lt)/Pn(Me.smallStep),on=pe/Pn(lt);for(yt-Ue>0&&(pe-=Pn(lt)%Pn(Me.smallStep)*on),zi=pe/Ue,Kn=[],ho=0;ho<Ue-1;ho++)Kn[ho]=zi;return Kn[Ue-1]=Kn[Ue]=zi/2,Ye._roundWidths(Kn)},_roundWidths:function(Ue){var pe,Ye=0,Me=Ue.length;for(pe=0;pe<Me;pe++)Ye+=Ue[pe]-Dn.floor(Ue[pe]),Ue[pe]=Dn.floor(Ue[pe]);return Ye=Dn.round(Ye),this._addAdditionalSize(Ye,Ue)},_addAdditionalSize:function(Ue,Ye){if(0===Ue)return Ye;var pe,Me=parseFloat(Ye.length-1)/parseFloat(1==Ue?Ue:Ue-1);for(pe=0;pe<Ue;pe++)Ye[parseInt(Dn.round(Me*pe),10)]+=1;return Ye},_calculateSteps:function(Ue){var Kn,Ye=this,Me=Ye.options,pe=Me.min,lt=0,yt=Ye._distance(),on=Dn.ceil(Pn(yt)/Pn(Me.smallStep)),zi=1;if(on+=Pn(yt)/Pn(Me.smallStep)%1==0?1:0,Ue.splice(0,0,2*Ue[on-2]),Ue.splice(on-1,1,2*Ue.pop()),Ye._pixelSteps=[lt],Ye._values=[pe],0!==on){for(;zi<on;)Ye._pixelSteps[zi]=lt+=(Ue[zi-1]+Ue[zi])/2,Ye._values[zi]=ci(pe+=Me.smallStep),zi++;Kn=Pn(yt)%Pn(Me.smallStep)==0?on-1:on,Ye._pixelSteps[Kn]=Ye._maxSelection,Ye._values[Kn]=Me.max,Ye._isRtl&&(Ye._pixelSteps.reverse(),Ye._values.reverse())}},_getValueFromPosition:function(Ue,Ye){var zi,Me=this,pe=Me.options,lt=Dn.max(pe.smallStep*(Me._maxSelection/Me._distance()),0),yt=0,on=lt/2;if(Me._isHorizontal?(yt=Ue-Ye.startPoint,Me._isRtl&&(yt=Me._maxSelection-yt)):yt=Ye.startPoint-Ue,Me._maxSelection-(parseInt(Me._maxSelection%lt,10)-3)/2<yt)return pe.max;for(zi=0;zi<Me._pixelSteps.length;zi++)if(Dn.abs(Me._pixelSteps[zi]-yt)-1<=on)return ci(Me._values[zi])},_getFormattedValue:function(Ue,Ye){var yt,on,zi,pe="",lt=this.options.tooltip;return Vn(Ue)?(on=Ue[0],zi=Ue[1]):Ye&&Ye.type&&(on=Ye.selectionStart,zi=Ye.selectionEnd),Ye&&(yt=Ye.tooltipTemplate),!yt&&lt.template&&(yt=ze.template(lt.template)),Vn(Ue)||Ye&&Ye.type?pe=yt?yt({selectionStart:on,selectionEnd:zi}):(on=Co(lt.format,on))+" - "+(zi=Co(lt.format,zi)):(Ye&&(Ye.val=Ue),pe=yt?yt({value:Ue}):Co(lt.format,Ue)),pe},_getDraggableArea:function(){var Ue=this,Ye=ze.getOffset(Ue._trackDiv);return{startPoint:Ue._isHorizontal?Ye.left:Ye.top+Ue._maxSelection,endPoint:Ue._isHorizontal?Ye.left+Ue._maxSelection:Ye.top}},_createHtml:function(){var Ue=this,Ye=Ue.element,Me=Ue.options,pe=Ye.find("input");2==pe.length?(pe.eq(0).prop("value",mn(Me.selectionStart)),pe.eq(1).prop("value",mn(Me.selectionEnd))):Ye.prop("value",mn(Me.value)),Ue.wrapper=Ye.wrap(function qt(Ue,Ye,Me){var pe=Me?" k-slider-horizontal":" k-slider-vertical",lt=Ue.style?Ue.style:Ye.attr("style"),yt=Ye.attr("class")?" "+Ye.attr("class"):"",on="";return"bottomRight"==Ue.tickPlacement?on=" k-slider-bottomright":"topLeft"==Ue.tickPlacement&&(on=" k-slider-topleft"),"<div class='k-widget k-slider"+pe+yt+"'"+(lt=lt?" style='"+lt+"'":"")+"><div class='k-slider-track-wrap"+on+"'></div></div>"}(Me,Ye,Ue._isHorizontal)).hide().parents(".k-slider"),Me.showButtons&&Ue.wrapper.find(".k-slider-track-wrap").after(bn(Me,"increase",Ue._isHorizontal)).before(bn(Me,"decrease",Ue._isHorizontal)),Ye.before(function Vi(Ue,Ye,Me){var Kn,ho,po,pe=Ye.is("input")?1:2,lt=2==pe?Ue.leftDragHandleTitle:Ue.dragHandleTitle,yt=Ue.value,on=Ue.selectionStart,zi=Ue.selectionEnd;return 1===pe?null!==(Kn=Ye.val())&&Kn!==Ke&&"null"!==Kn&&(null===yt||yt===Ke)&&(yt=Kn):(ho=Ye.find("input").eq(0).val(),po=Ye.find("input").eq(1).val(),null!==ho&&ho!==Ke&&"null"!==ho&&(null===on||on===Ke)&&(on=ho),null!==po&&po!==Ke&&"null"!==po&&(null===zi||zi===Ke)&&(zi=po)),"<div class='k-slider-track'><div class='k-slider-selection'>\x3c!-- --\x3e</div><span tabindex='0' class='k-draghandle' title='"+lt+"' role='slider' "+(!1===Me?"aria-orientation='vertical' ":"")+"aria-valuemin='"+Ue.min+"' aria-valuemax='"+Ue.max+"' aria-valuenow='"+(pe>1?on||Ue.min:yt||Ue.min)+"'></span>"+(pe>1?"<span tabindex='0' class='k-draghandle' title='"+Ue.rightDragHandleTitle+"'role='slider' "+(!1===Me?"aria-orientation='vertical' ":"")+"aria-valuemin='"+Ue.min+"' aria-valuemax='"+Ue.max+"' aria-valuenow='"+(zi||Ue.max)+"'></span>":"")+"</div>"}(Me,Ye,Ue._isHorizontal))},_focus:function(Ue){var Ye=this,Me=Ue.target,pe=Ye.value(),lt=Ye._drag;lt||(Me==Ye.wrapper.find(Pt).eq(0)[0]?(lt=Ye._firstHandleDrag,Ye._activeHandle=0):(lt=Ye._lastHandleDrag,Ye._activeHandle=1),pe=pe[Ye._activeHandle]),Xe(Me).addClass(Ae+" "+Nn),lt&&(Ye._activeHandleDrag=lt,lt.selectionStart=Ye.options.selectionStart,lt.selectionEnd=Ye.options.selectionEnd,lt._updateTooltip(pe))},_focusWithMouse:function(Ue){Ue=Xe(Ue);var Ye=this,Me=Ue.is(Pt)?Ue.index():0;window.setTimeout(function(){Ye.wrapper.find(Pt)[2==Me?1:0].focus()},1),Ye._setTooltipTimeout()},_blur:function(Ue){var Me=this._activeHandleDrag;Xe(Ue.target).removeClass(Ae+" "+Nn),Me&&(Me._removeTooltip(),delete this._activeHandleDrag,delete this._activeHandle)},_setTooltipTimeout:function(){var Ue=this;Ue._tooltipTimeout=window.setTimeout(function(){var Ye=Ue._drag||Ue._activeHandleDrag;Ye&&Ye._removeTooltip()},300)},_clearTooltipTimeout:function(){window.clearTimeout(this._tooltipTimeout);var Ye=this._drag||this._activeHandleDrag;Ye&&Ye.tooltipDiv&&Ye.tooltipDiv.stop(!0,!1).css("opacity",1)},_reset:function(){var Ye=this.element,Me=Ye.attr("form"),pe=Me?Xe("#"+Me):Ye.closest("form");pe[0]&&(this._form=pe.on("reset",this._formResetHandler.bind(this)))},min:function(Ue){if(!Ue)return this.options.min;this.setOptions({min:Ue})},max:function(Ue){if(!Ue)return this.options.max;this.setOptions({max:Ue})},setOptions:function(Ue){St.fn.setOptions.call(this,Ue),this._sliderItemsInit(),this._refresh()},destroy:function(){this._form&&this._form.off("reset",this._formResetHandler),St.fn.destroy.call(this)}});function bn(Ue,Ye,Me){return"<a role='button' class='k-button k-button-md k-rounded-full k-button-solid k-button-solid-base k-icon-button k-button-"+Ye+"' title='"+Ue[Ye+"ButtonTitle"]+"' aria-label='"+Ue[Ye+"ButtonTitle"]+"'><span class='k-button-icon k-icon "+(Me?"increase"===Ye?"k-i-arrow-e":"k-i-arrow-w":"increase"==Ye?"k-i-arrow-n":"k-i-arrow-s")+"'></span></a>"}function Jn(Ue){return function(Ye){return Ye+Ue}}function zt(Ue){return function(){return Ue}}function mn(Ue){return(Ue+"").replace(".",ze.cultures.current.numberFormat["."])}function ci(Ue){var Ye,Me;return Ye=function Qn(Ue){var Ye=Ue.toString(),Me=0;return(Ye=Ye.split("."))[1]&&(Me=Ye[1].length),Me>10?10:Me}(Ue=parseFloat(Ue,10)),Me=Dn.pow(10,Ye||0),Dn.round(Ue*Me)/Me}function Oi(Ue,Ye){var Me=Sn(Ue.getAttribute(Ye));return null===Me&&(Me=Ke),Me}function Ai(Ue){return void 0!==Ue}function Pn(Ue){return 1e4*Ue}var qn=Vt.extend({init:function(Ue,Ye){var pe,Me=this;Ue.type="text",Ye=Ui({},{value:Oi(Ue,"value"),min:Oi(Ue,"min"),max:Oi(Ue,"max"),smallStep:Oi(Ue,"step")},Ye),Ue=Xe(Ue),Ye&&Ye.enabled===Ke&&(Ye.enabled=!Ue.is("[disabled]")),Vt.fn.init.call(Me,Ue,Ye),(!Ai((Ye=Me.options).value)||null===Ye.value)&&(Ye.value=Ye.min,Ue.prop("value",mn(Ye.min))),Ye.value=Dn.max(Dn.min(Ye.value,Ye.max),Ye.min),pe=Me.wrapper.find(Pt),Me._selection=new qn.Selection(pe,Me,Ye),Me._drag=new qn.Drag(pe,"",Me,Ye),Me._refreshAriaAttr(Ye.value)},options:{name:"Slider",showButtons:!0,increaseButtonTitle:"Increase",decreaseButtonTitle:"Decrease",dragHandleTitle:"drag",tooltip:{format:"{0:#,#.##}"},value:null},enable:function(Ue){var pe,lt,Ye=this,Me=Ye.options;if(Ye.disable(),!1!==Ue){if(Ye.wrapper.removeClass(He),Ye.wrapper.find("input").prop(Kt,!1),pe=function(on){var zi=Ci(on)[0];if(zi){var Kn=Ye._isHorizontal?zi.location.pageX:zi.location.pageY,ho=Ye._getDraggableArea(),po=Xe(on.target);if(po.hasClass("k-draghandle"))return void po.addClass(Ae+" "+Nn);Ye._update(Ye._getValueFromPosition(Kn,ho)),Ye._focusWithMouse(on.target),Ye._drag.dragstart(on),on.preventDefault()}},Ye.wrapper.find(Xn+", "+$t).on(Nt,pe).end().on(Nt,function(){Xe(document.documentElement).one("selectstart",ze.preventDefault)}).on($e,function(){Ye._drag._end()}),Ye.wrapper.find(Pt).attr(Fi,0).on(an,function(){Ye._setTooltipTimeout()}).on(Ge,function(on){Ye._focusWithMouse(on.target),on.preventDefault()}).on(At,Ye._focus.bind(Ye)).on(Rt,Ye._blur.bind(Ye)),lt=function(on){var zi=Ye._nextValueByIndex(Ye._valueIndex+1*on);Ye._setValueInRange(zi),Ye._drag._updateTooltip(zi)},Me.showButtons){var yt=function(on,zi){this._clearTooltipTimeout(),(1===on.which||kn.touch&&0===on.which)&&(lt(zi),this.timeout=setTimeout(function(){this.timer=setInterval(function(){lt(zi)},60)}.bind(this),200))}.bind(Ye);Ye.wrapper.find(".k-button").on(an,function(on){this._clearTimer(),Ye._focusWithMouse(on.target)}.bind(Ye)).on(Be,function(on){Xe(on.currentTarget).addClass("k-hover")}).on("mouseout"+Ht,function(on){Xe(on.currentTarget).removeClass("k-hover"),this._clearTimer()}.bind(Ye)).on(ft,function(on){var zi=Xe(on.target).closest(".k-button").is(".k-button-increase")?1:-1;yt(on,zi)}).on("click",ze.preventDefault)}Ye.wrapper.find(Pt).off(Ve,!1).on(Ve,this._keydown.bind(Ye)),Me.enabled=!0}},disable:function(){var Ue=this;Ue.wrapper.addClass(He),Xe(Ue.element).prop(Kt,Kt),Ue.wrapper.find(".k-button").off(ft).on(ft,function(Ye){Ye.preventDefault(),Xe(this).addClass("k-active")}).off(an).on(an,function(Ye){Ye.preventDefault(),Xe(this).removeClass("k-active")}).off("mouseleave"+Ht).on("mouseleave"+Ht,ze.preventDefault).off(Be).on(Be,ze.preventDefault),Ue.wrapper.find(Xn+", "+$t).off(Nt).off($e),Ue.wrapper.find(Pt).attr(Fi,-1).off(an).off(Ve).off(Ge).off(At).off(Rt),Ue.options.enabled=!1},_update:function(Ue){var Me=this.value()!=Ue;this.value(Ue),Me&&this.trigger(en,{value:this.options.value})},value:function(Ue){var Me=this.options;if(Ue=ci(Ue),isNaN(Ue))return Me.value;Ue>=Me.min&&Ue<=Me.max&&Me.value!=Ue&&(this.element.prop("value",mn(Ue)),Me.value=Ue,this._refreshAriaAttr(Ue),this._refresh())},_refresh:function(){this.trigger(Je,{value:this.options.value})},_refreshAriaAttr:function(Ue){var pe,Me=this._drag;pe=Me&&Me._tooltipDiv?Me._tooltipDiv.text():this._getFormattedValue(Ue,null),this.wrapper.find(Pt).attr(Wn,Ue).attr(xi,pe)},_clearTimer:function(){clearTimeout(this.timeout),clearInterval(this.timer)},_keydown:function(Ue){var Ye=this;Ue.keyCode in Ye._keyMap&&(Ye._clearTooltipTimeout(),Ye._setValueInRange(Ye._keyMap[Ue.keyCode](Ye.options.value)),Ye._drag._updateTooltip(Ye.value()),Ue.preventDefault())},_setValueInRange:function(Ue){var Me=this.options;Ue=ci(Ue),isNaN(Ue)?this._update(Me.min):(Ue=Dn.max(Dn.min(Ue,Me.max),Me.min),this._update(Ue))},_nextValueByIndex:function(Ue){var Ye=this._values.length;return this._isRtl&&(Ue=Ye-1-Ue),this._values[Dn.max(0,Dn.min(Ue,Ye-1))]},_formResetHandler:function(){var Ue=this,Ye=Ue.options.min;setTimeout(function(){var Me=Ue.element[0].value;Ue.value(""===Me||isNaN(Me)?Ye:Me)})},destroy:function(){Vt.fn.destroy.call(this),this.wrapper.off(Ht).find(".k-button").off(Ht).end().find(Pt).off(Ht).end().find(Xn+", "+$t).off(Ht).end(),this._drag.draggable.destroy(),this._drag._removeTooltip(!0)}}),Ni=(qn.Selection=function(Ue,Ye,Me){function pe(lt){var on=Ye._valueIndex=Dn.ceil(ci((lt-Me.min)/Me.smallStep)),zi=parseInt(Ye._pixelSteps[on],10),Kn=Ye._trackDiv.find(".k-slider-selection"),ho=Ye._isRtl?2:0;Kn[Ye._sizeFn](Ye._isRtl?Ye._maxSelection-zi:zi),Ue.css(Ye._position,zi-ho)}pe(Me.value),Ye.bind([cn,Je],function(lt){pe(parseFloat(lt.value,10))}),Ye.bind(en,function(lt){pe(parseFloat(lt.sender.value(),10))})},qn.Drag=function(Ue,Ye,Me,pe){var lt=this;lt.owner=Me,lt.options=pe,lt.element=Ue,lt.type=Ye,lt.draggable=new it(Ue,{distance:0,dragstart:lt._dragstart.bind(lt),drag:lt.drag.bind(lt),dragend:lt.dragend.bind(lt),dragcancel:lt.dragcancel.bind(lt)}),Ue.click(!1),Ue.on("dragstart",function(yt){yt.preventDefault()})},qn.Drag.prototype={dragstart:function(Ue){this.owner._activeDragHandle=this,this.draggable.userEvents.cancel(),this._dragstart(Ue),this.dragend()},_dragstart:function(Ue){var Ye=this,Me=Ye.owner,pe=Ye.options;pe.enabled?(this.owner._activeDragHandle=this,Me.element.off(Be),Me.wrapper.find("."+Ae).removeClass(Ae+" "+Nn),Ye.element.addClass(Ae+" "+Nn),Xe(document.documentElement).css("cursor","pointer"),Ye.draggableArea=Me._getDraggableArea(),Ye.step=Dn.max(pe.smallStep*(Me._maxSelection/Me._distance()),0),Ye.type?(Ye.selectionStart=pe.selectionStart,Ye.selectionEnd=pe.selectionEnd,Me._setZIndex(Ye.type)):Ye.oldVal=Ye.val=pe.value,Ye._removeTooltip(!0),Ye._createTooltip()):Ue.preventDefault()},_createTooltip:function(){var Ue=this,Ye=Ue.owner,Me=Ue.options.tooltip,pe="",lt=Xe(window);Me.enabled&&(Me.template&&(Ue.tooltipTemplate=ze.template(Me.template)),Xe(".k-slider-tooltip").remove(),Ue.tooltipDiv=Xe("<div class='k-tooltip k-slider-tooltip'>\x3c!-- --\x3e</div>").appendTo(document.body),pe=Ye._getFormattedValue(Ue.val||Ye.value(),Ue),Ue.type||(Ue.tooltipInnerDiv="<div class='k-callout k-callout-"+(Ye._isHorizontal?"s":"e")+"'>\x3c!-- --\x3e</div>",pe+=Ue.tooltipInnerDiv),Ue.tooltipDiv.html(pe),Ue._scrollOffset={top:lt.scrollTop(),left:ze.scrollLeft(lt)},Ue.moveTooltip())},drag:function(Ue){var zi,Ye=this,Me=Ye.owner,pe=Ue.x.location,lt=Ue.y.location,yt=Ye.draggableArea.startPoint,on=Ye.draggableArea.endPoint;Ue.preventDefault(),Ye.val=Me._isHorizontal?Ye.constrainValue(pe,yt,on,Me._isRtl?pe<on:pe>=on):Ye.constrainValue(lt,on,yt,lt<=on),Ye.oldVal!=Ye.val&&(Ye.oldVal=Ye.val,Ye.type?("firstHandle"==Ye.type?Ye.selectionStart=Ye.val<Ye.selectionEnd?Ye.val:Ye.selectionEnd=Ye.val:Ye.val>Ye.selectionStart?Ye.selectionEnd=Ye.val:Ye.selectionStart=Ye.selectionEnd=Ye.val,zi={values:[Ye.selectionStart,Ye.selectionEnd],value:[Ye.selectionStart,Ye.selectionEnd]}):zi={value:Ye.val},Me.trigger(cn,zi)),Ye._updateTooltip(Ye.val)},_updateTooltip:function(Ue){var Ye=this,lt="";Ye.options.tooltip.enabled&&(Ye.tooltipDiv||Ye._createTooltip(),lt=Ye.owner._getFormattedValue(ci(Ue),Ye),Ye.type||(lt+=Ye.tooltipInnerDiv),Ye.tooltipDiv.html(lt),Ye.moveTooltip())},dragcancel:function(){return this.owner._refresh(),Xe(document.documentElement).css("cursor",""),this._end()},dragend:function(){var Ue=this,Ye=Ue.owner;return Xe(document.documentElement).css("cursor",""),Ue.type?Ye._update(Ue.selectionStart,Ue.selectionEnd):(Ye._update(Ue.val),Ue.draggable.userEvents._disposeAll()),Ue.draggable.userEvents.cancel(),Ue._end()},_end:function(){var Ye=this.owner;return Ye._focusWithMouse(this.element),Ye.element.on(Be),!1},_removeTooltip:function(Ue){var Ye=this,Me=Ye.owner;Ye.tooltipDiv&&Me.options.tooltip.enabled&&Me.options.enabled&&(Ue?(Ye.tooltipDiv.remove(),Ye.tooltipDiv=null):Ye.tooltipDiv.fadeOut("slow",function(){Xe(this).remove(),Ye.tooltipDiv=null}))},moveTooltip:function(){var $i,ro,wo,io,Ue=this,Ye=Ue.owner,Me=0,pe=0,lt=Ue.element,yt=ze.getOffset(lt),zi=Xe(window),Kn=Ue.tooltipDiv.find(".k-callout"),ho=Dt(Ue.tooltipDiv),po=Hn(Ue.tooltipDiv);Ue.type?($i=Ye.wrapper.find(Pt),yt=ze.getOffset($i.eq(0)),ro=ze.getOffset($i.eq(1)),Ye._isHorizontal?(Me=ro.top,pe=yt.left+(ro.left-yt.left)/2):(Me=yt.top+(ro.top-yt.top)/2,pe=ro.left),io=Dt($i.eq(0))+16):(Me=yt.top,pe=yt.left,io=Dt(lt)+16),Ye._isHorizontal?(pe-=parseInt((ho-Ye._outerSize(lt))/2,10),Me-=po+8+(Kn.length?Kn.height():0)):(Me-=parseInt((po-Ye._outerSize(lt))/2,10),pe-=ho+8+(Kn.length?Kn.width():0)),Ye._isHorizontal?(Me+=wo=Ue._flip(Me,po,io,Hn(zi)+Ue._scrollOffset.top),pe+=Ue._fit(pe,ho,Dt(zi)+Ue._scrollOffset.left)):(wo=Ue._flip(pe,ho,io,Dt(zi)+Ue._scrollOffset.left),Me+=Ue._fit(Me,po,Hn(zi)+Ue._scrollOffset.top),pe+=wo),wo>0&&Kn&&(Kn.removeClass(),Kn.addClass("k-callout k-callout-"+(Ye._isHorizontal?"n":"w"))),Ue.tooltipDiv.css({top:Me,left:pe})},_fit:function(Ue,Ye,Me){var pe=0;return Ue+Ye>Me&&(pe=Me-(Ue+Ye)),Ue<0&&(pe=-Ue),pe},_flip:function(Ue,Ye,Me,pe){var lt=0;return Ue+Ye>pe&&(lt+=-(Me+Ye)),Ue+lt<0&&(lt+=Me+Ye),lt},constrainValue:function(Ue,Ye,Me,pe){return Ye<Ue&&Ue<Me?this.owner._getValueFromPosition(Ue,this.draggableArea):pe?this.options.max:this.options.min}},ze.ui.plugin(qn),Vt.extend({init:function(Ue,Ye){var Me=this,pe=Xe(Ue).find("input"),lt=pe.eq(0)[0],yt=pe.eq(1)[0];lt.type="text",yt.type="text",Ye&&Ye.showButtons&&(window.console&&window.console.warn("showbuttons option is not supported for the range slider, ignoring"),Ye.showButtons=!1),(Ye=Ui({},{selectionStart:Oi(lt,"value"),min:Oi(lt,"min"),max:Oi(lt,"max"),smallStep:Oi(lt,"step")},{selectionEnd:Oi(yt,"value"),min:Oi(yt,"min"),max:Oi(yt,"max"),smallStep:Oi(yt,"step")},Ye))&&Ye.enabled===Ke&&(Ye.enabled=!pe.is("[disabled]")),Vt.fn.init.call(Me,Ue,Ye),(!Ai((Ye=Me.options).selectionStart)||null===Ye.selectionStart)&&(Ye.selectionStart=Ye.min,pe.eq(0).prop("value",mn(Ye.min))),(!Ai(Ye.selectionEnd)||null===Ye.selectionEnd)&&(Ye.selectionEnd=Ye.max,pe.eq(1).prop("value",mn(Ye.max)));var on=Me.wrapper.find(Pt);this._selection=new Ni.Selection(on,Me,Ye),Me._firstHandleDrag=new qn.Drag(on.eq(0),"firstHandle",Me,Ye),Me._lastHandleDrag=new qn.Drag(on.eq(1),"lastHandle",Me,Ye),Me._refreshAriaAttr(Ye.selectionStart,Ye.selectionEnd)},options:{name:"RangeSlider",leftDragHandleTitle:"drag",rightDragHandleTitle:"drag",tooltip:{format:"{0:#,#.##}"},selectionStart:null,selectionEnd:null},enable:function(Ue){var pe,Ye=this,Me=Ye.options;Ye.disable(),!1!==Ue&&(Ye.wrapper.removeClass(He),Ye.wrapper.find("input").prop(Kt,!1),pe=function(lt){var yt=Ci(lt)[0];if(yt){var po,$i,ro,on=Ye._isHorizontal?yt.location.pageX:yt.location.pageY,zi=Ye._getDraggableArea(),Kn=Ye._getValueFromPosition(on,zi),ho=Xe(lt.target);if(ho.hasClass("k-draghandle"))return Ye.wrapper.find("."+Ae).removeClass(Ae+" "+Nn),void ho.addClass(Ae+" "+Nn);Kn<Me.selectionStart?(po=Kn,$i=Me.selectionEnd,ro=Ye._firstHandleDrag):Kn>Ye.selectionEnd?(po=Me.selectionStart,$i=Kn,ro=Ye._lastHandleDrag):Kn-Me.selectionStart<=Me.selectionEnd-Kn?(po=Kn,$i=Me.selectionEnd,ro=Ye._firstHandleDrag):(po=Me.selectionStart,$i=Kn,ro=Ye._lastHandleDrag),ro.dragstart(lt),Ye._setValueInRange(po,$i),Ye._focusWithMouse(ro.element)}},Ye.wrapper.find(Xn+", "+$t).on(Nt,pe).end().on(Nt,function(){Xe(document.documentElement).one("selectstart",ze.preventDefault)}).on($e,function(){Ye._activeDragHandle&&Ye._activeDragHandle._end()}),Ye.wrapper.find(Pt).attr(Fi,0).on(an,function(){Ye._setTooltipTimeout()}).on(Ge,function(lt){Ye._focusWithMouse(lt.target),lt.preventDefault()}).on(At,Ye._focus.bind(Ye)).on(Rt,Ye._blur.bind(Ye)),Ye.wrapper.find(Pt).off(Ve,ze.preventDefault).eq(0).on(Ve,function(lt){this._keydown(lt,"firstHandle")}.bind(Ye)).end().eq(1).on(Ve,function(lt){this._keydown(lt,"lastHandle")}.bind(Ye)),Ye.options.enabled=!0)},disable:function(){var Ue=this;Ue.wrapper.addClass(He),Ue.wrapper.find("input").prop(Kt,Kt),Ue.wrapper.find(Xn+", "+$t).off(Nt).off($e),Ue.wrapper.find(Pt).attr(Fi,-1).off(an).off(Ve).off(Ge).off(At).off(Rt),Ue.options.enabled=!1},_keydown:function(Ue,Ye){var yt,on,zi,Me=this,pe=Me.options.selectionStart,lt=Me.options.selectionEnd;Ue.keyCode in Me._keyMap&&(Me._clearTooltipTimeout(),"firstHandle"==Ye?(zi=Me._activeHandleDrag=Me._firstHandleDrag,(pe=Me._keyMap[Ue.keyCode](pe))>lt&&(lt=pe)):(zi=Me._activeHandleDrag=Me._lastHandleDrag,pe>(lt=Me._keyMap[Ue.keyCode](lt))&&(pe=lt)),Me._setValueInRange(ci(pe),ci(lt)),yt=Math.max(pe,Me.options.selectionStart),on=Math.min(lt,Me.options.selectionEnd),zi.selectionEnd=Math.max(on,Me.options.selectionStart),zi.selectionStart=Math.min(yt,Me.options.selectionEnd),zi._updateTooltip(Me.value()[Me._activeHandle]),Ue.preventDefault())},_update:function(Ue,Ye){var pe=this.value(),lt=pe[0]!=Ue||pe[1]!=Ye;this.value([Ue,Ye]),lt&&this.trigger(en,{values:[Ue,Ye],value:[Ue,Ye]})},value:function(Ue){return Ue&&Ue.length?this._value(Ue[0],Ue[1]):this._value()},_value:function(Ue,Ye){var pe=this.options,lt=pe.selectionStart,yt=pe.selectionEnd;if(isNaN(Ue)&&isNaN(Ye))return[lt,yt];Ue=ci(Ue),Ye=ci(Ye),Ue>=pe.min&&Ue<=pe.max&&Ye>=pe.min&&Ye<=pe.max&&Ue<=Ye&&(lt!=Ue||yt!=Ye)&&(this.element.find("input").eq(0).prop("value",mn(Ue)).end().eq(1).prop("value",mn(Ye)),pe.selectionStart=Ue,pe.selectionEnd=Ye,this._refresh(),this._refreshAriaAttr(Ue,Ye))},values:function(Ue,Ye){return Vn(Ue)?this._value(Ue[0],Ue[1]):this._value(Ue,Ye)},_refresh:function(){var Ye=this.options;this.trigger(Je,{values:[Ye.selectionStart,Ye.selectionEnd],value:[Ye.selectionStart,Ye.selectionEnd]}),Ye.selectionStart==Ye.max&&Ye.selectionEnd==Ye.max&&this._setZIndex("firstHandle")},_refreshAriaAttr:function(Ue,Ye){var yt,pe=this.wrapper.find(Pt);yt=this._getFormattedValue([Ue,Ye],this._activeHandleDrag),pe.eq(0).attr(Wn,Ue),pe.eq(1).attr(Wn,Ye),pe.attr(xi,yt)},_setValueInRange:function(Ue,Ye){var Me=this.options;Ue=Dn.max(Dn.min(Ue,Me.max),Me.min),Ye=Dn.max(Dn.min(Ye,Me.max),Me.min),Ue==Me.max&&Ye==Me.max&&this._setZIndex("firstHandle"),this._update(Dn.min(Ue,Ye),Dn.max(Ue,Ye))},_setZIndex:function(Ue){this.wrapper.find(Pt).each(function(Ye){Xe(this).css("z-index","firstHandle"==Ue?1-Ye:Ye)})},_formResetHandler:function(){var Ue=this,Ye=Ue.options;setTimeout(function(){var Me=Ue.element.find("input"),pe=Me[0].value,lt=Me[1].value;Ue.values(""===pe||isNaN(pe)?Ye.min:pe,""===lt||isNaN(lt)?Ye.max:lt)})},destroy:function(){Vt.fn.destroy.call(this),this.wrapper.off(Ht).find(Xn+", "+$t).off(Ht).end().find(Pt).off(Ht),this._firstHandleDrag.draggable.destroy(),this._lastHandleDrag.draggable.destroy()}}));return Ni.Selection=function(Ue,Ye,Me){function pe(yt){var zi=(yt=yt||[])[1]-Me.min,Kn=Dn.ceil(ci((yt[0]-Me.min)/Me.smallStep)),ho=Dn.ceil(ci(zi/Me.smallStep)),po=Ye._pixelSteps[Kn],$i=Ye._pixelSteps[ho],ro=Ye._isRtl?2:0;Ue.eq(0).css(Ye._position,po-ro).end().eq(1).css(Ye._position,$i-ro),function lt(yt,on){var zi,Kn,ho=Ye._trackDiv.find(".k-slider-selection");zi=Dn.abs(yt-on),ho[Ye._sizeFn](zi),Ye._isRtl?(Kn=Dn.max(yt,on),ho.css("right",Ye._maxSelection-Kn-1)):(Kn=Dn.min(yt,on),ho.css(Ye._position,Kn-1))}(po,$i)}pe(Ye.value()),Ye.bind([en,cn,Je],function(yt){pe(yt.values)})},ze.ui.plugin(Ni),window.kendo}.apply(Ce={},ur=[g]))&&(ge=Ce),void 0===(Te=function(){window;var Ke=void 0,ze=window.kendo,St=ze.ui.Widget,it=ze.ui,Co=St.extend({init:function(Sn,Vn){St.fn.init.call(this,Sn,Vn),this._content(),this._appearance(),ze.notify(this)},destroy:function(){St.fn.destroy.call(this)},options:{name:"Badge",cutoutBorder:!1,data:{},fillMode:"solid",icon:"",max:1/0,position:"inline",align:"",rounded:"medium",roundings:{small:"sm",medium:"md",large:"lg",full:"full"},sizes:{small:"sm",medium:"md",large:"lg"},size:"medium",template:null,text:"",themeColor:"secondary",visible:!0,_classNames:[]},_content:function(){var Sn=this,Vn=Sn.options.text,Dn=Sn.options.template,kn=Sn.options.data,ui=Sn.options.icon;if(null!==Dn)return Sn._text=Vn,Sn._template=ze.template(Dn).bind(Sn),void Sn.element.html(Sn._template(kn));""===ui?Sn.text(""===Vn?Sn.element.html():Vn):Sn.icon(ui)},_appearance:function(){var Sn=this;Sn._themeColor=Sn.options.themeColor,Sn._shape=Sn.options.shape,Sn._sizes=Sn.options.sizes,Sn._size=Sn.options.size,Sn._fillMode=Sn.options.fillMode,Sn._rounded=Sn.options.rounded,Sn._roundings=Sn.options.roundings,Sn._cutoutBorder=Sn.options.cutoutBorder,Sn._align=Sn.options.align,Sn._position=Sn.options.position,Sn._visible=Sn.options.visible,Sn._updateClassNames()},_updateClassNames:function(){var Sn=this,Vn=["k-badge"],Dn=Sn.options._classNames,kn=Sn._themeColor,ui=Sn._shape,Ot=Sn._sizes,en=Sn._size,cn=Ot[en]===Ke?en:Ot[en],Ht=Sn._fillMode,ft=Sn._rounded,Nt=Sn._roundings,an=Nt[ft]===Ke?ft:Nt[ft],$e=Sn._cutoutBorder,Je=Sn._align,Ve=Sn._position,Ge=Sn._visible;Sn.element.removeClass(function(Be,At){0===At.indexOf("k-")&&-1===Dn.indexOf(At)&&Sn.element.removeClass(At)}),"string"==typeof Ht&&""!==Ht&&Vn.push("k-badge-"+Ht),"string"==typeof kn&&""!==kn&&Vn.push("k-badge-"+Ht+"-"+kn),"string"==typeof en&&""!==en&&Vn.push("k-badge-"+cn),"string"==typeof ft&&""!==ft&&Vn.push("k-rounded-"+an),"string"==typeof ui&&""!==ui&&Vn.push("k-badge-"+ui),"boolean"==typeof $e&&!0===$e&&Vn.push("k-badge-border-cutout"),"string"==typeof Ve&&""!==Ve&&Vn.push("k-badge-"+Ve),"string"==typeof Ve&&""!==Ve&&"inline"!==Ve&&"string"==typeof Je&&2==Je.split(" ").length&&Vn.push("k-"+Je.replace(" ","-")),!1===Ge&&Vn.push("k-hidden"),Sn.element.addClass(Vn.join(" "))},setOptions:function(Sn){var Vn=this;Vn.element.removeClass(function(Dn,kn){kn.indexOf("k-")>=0&&Vn.element.removeClass(kn)}),St.fn.setOptions.call(Vn,Sn),Vn._content(),Vn._appearance()},text:function(Sn){var Vn=this,Dn=Vn.options.max;if(0===arguments.length||Sn===Ke)return Vn._text;Vn._text=Sn,!0!==Sn&&!1!==Sn&&null!==Sn?"string"!=typeof Sn?"number"!=typeof Sn?"object"==typeof Sn&&"toString"in Sn&&Vn.element.html(Sn.toString()):Vn.element.html(Sn>Dn?Dn+"+":Sn):Vn.element.html(Sn):Vn.element.html("")},icon:function(Sn){var Dn;return 0===arguments.length||Sn===Ke?this._icon:(this._icon=Sn,0===Sn.indexOf("<svg")?(Dn=ze.template("<span class='k-badge-icon k-svg-icon'>#= icon #</span>"),void this.element.html(Dn({icon:Sn}))):(Dn=ze.template("<span class='k-badge-icon k-icon k-i-#= icon #'></span>"),void this.element.html(Dn({icon:Sn}))))},themeColor:function(Sn){if(0===arguments.length||Sn===Ke)return this._themeColor;this._themeColor=Sn,this._updateClassNames()},rounded:function(Sn){if(0===arguments.length||Sn===Ke)return this._rounded;this._rounded=Sn,this._updateClassNames()},hide:function(){this._visible=!1,this._updateClassNames()},show:function(){this._visible=!0,this._updateClassNames()}});return it.plugin(Co),window.kendo}.apply(De={},ur=[e]))&&(Te=De),void 0===(fe=function(){var Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,St=ze.ui.Widget,it=ze.html,Dt=ze.ui,Hn=ze.keys,Ui="click",Co=ze.support.mousedown,Sn=ze.support.mouseup,Dn=".kendoButton",kn="disabled",Ot="k-focus",en="k-active",Ht=(ze.setDefaults("button",{icon:"",iconClass:"",spriteCssClass:"",imageUrl:"",badge:null}),St.extend({init:function(ft,Nt){var an=this;St.fn.init.call(an,ft,Nt),ft=an.wrapper=an.element,it.renderButton(ft,Xe.extend({},Nt=an.options)),ft.attr("role","button"),Nt.enable=Nt.enable&&Nt.enabled&&!ft.attr(kn),an.enable(Nt.enable),Nt.enable&&an._tabindex(),an._badge(),ft.on(Ui+Dn,an._click.bind(an)).on("focus"+Dn,an._focus.bind(an)).on("blur"+Dn,an._blur.bind(an)).on("keydown"+Dn,an._keydown.bind(an)).on("keyup"+Dn,an._removeActive.bind(an)).on(Co+Dn,an._addActive.bind(an)).on(Sn+Dn+" mouseout"+Dn,an._removeActive.bind(an)),ze.notify(an)},destroy:function(){this.wrapper.off(Dn),this.badge&&this.badge.destroy(),St.fn.destroy.call(this)},events:[Ui],options:{name:"Button",enable:!0,enabled:!0,icon:"",iconClass:"",spriteCssClass:"",imageUrl:"",badge:null,size:"medium",shape:"rectangle",rounded:"medium",fillMode:"solid",themeColor:"base"},_isNativeButton:function(){return"button"==this.element.prop("tagName").toLowerCase()},_click:function(ft){this.options.enable&&this.trigger(Ui,{event:ft})&&ft.preventDefault()},_focus:function(){this.options.enable&&this.element.addClass(Ot)},_blur:function(){var ft=this;ft.element.removeClass(Ot),setTimeout(function(){ft.element.removeClass(en)})},_keydown:function(ft){(ft.keyCode==Hn.ENTER||ft.keyCode==Hn.SPACEBAR)&&(this._addActive(),this._isNativeButton()||(ft.keyCode==Hn.SPACEBAR&&ft.preventDefault(),this._click(ft)))},_removeActive:function(){this.element.removeClass(en)},_addActive:function(){this.options.enable&&this.element.addClass(en)},enable:function(ft){var an=this.element;ft===Ke&&(ft=!0),this.options.enable=ft=!!ft,an.toggleClass("k-disabled",!ft).attr("aria-disabled",!ft).attr(kn,!ft),ft&&this._tabindex();try{an.trigger("blur")}catch{}},_badge:function(){var an,Nt=this.options.badge;null===Nt||Nt===Ke||(Nt.constructor!==Object&&(Nt={text:Nt}),(Nt.position===Ke||""===Nt.position)&&(Nt.position="edge",(Nt.align===Ke||""===Nt.align)&&(Nt.align="top end")),Nt._classNames=["k-button-badge"],this.element.addClass("k-badge-container"),an=Xe("<span />").appendTo(this.element),this.badge=new Dt.Badge(an,Nt))}}));return!1===Ht.fn.hasOwnProperty("defaults")&&Object.defineProperty(Ht.fn,"defaults",{get:function(){return ze.defaults.button}}),ze.cssProperties.registerPrefix("Button","k-button-"),ze.cssProperties.registerValues("Button",[{prop:"fillMode",values:ze.cssProperties.fillModeValues.concat(["link"])},{prop:"rounded",values:ze.cssProperties.roundedValues.concat([["full","full"]])}]),ze.ui.plugin(Ht),window.kendo}.apply(xe={},ur=[e,Te,F]))&&(fe=xe),void 0===(Oe=function(){var Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,St=ze.Observable,it=ze.data.ObservableObject,Dt=ze.data.ObservableArray,Hn={}.toString,Ui={},Co=ze.Class,Sn="value",kn="checked",Ot=!0,en="function",cn="change",Ht=document.createElement("a");try{delete Ht.test}catch{Ot=!1}var ft=St.extend({init:function(Vt,qt){var bn=this;St.fn.init.call(bn),bn.source=Vt[0],bn.parents=Vt,bn.path=qt,bn.dependencies={},bn.dependencies[qt]=!0,bn.observable=bn.source instanceof St,bn._access=function(ii){bn.dependencies[ii.field]=!0},bn.observable&&(bn._change=function(ii){bn.change(ii)},bn.source.bind(cn,bn._change))},_parents:function(){var Vt=this.parents,qt=this.get();if(qt&&"function"==typeof qt.parent){var bn=qt.parent();Xe.inArray(bn,Vt)<0&&(Vt=[bn].concat(Vt))}return Vt},change:function(Vt){var qt,bn,ii=Vt.field;if("this"===this.path)this.trigger(cn,Vt);else for(qt in this.dependencies)if(0===qt.indexOf(ii)&&(!(bn=qt.charAt(ii.length))||"."===bn||"["===bn)){this.trigger(cn,Vt);break}},start:function(Vt){Vt.bind("get",this._access)},stop:function(Vt){Vt.unbind("get",this._access)},get:function(){var Vt=this,qt=Vt.source,bn=0,ii=Vt.path,Vi=qt;if(!Vt.observable)return Vi;for(Vt.start(Vt.source),Vi=qt.get(ii);Vi===Ke&&qt;)(qt=Vt.parents[++bn])instanceof it&&(Vi=qt.get(ii));if(Vi===Ke)for(qt=Vt.source;Vi===Ke&&qt;)(qt=qt.parent())instanceof it&&(Vi=qt.get(ii));return"function"==typeof Vi&&((bn=ii.lastIndexOf("."))>0&&(qt=qt.get(ii.substring(0,bn))),Vt.start(qt),Vi=qt!==Vt.source?Vi.call(qt,Vt.source):Vi.call(qt),Vt.stop(qt)),qt&&qt!==Vt.source&&(Vt.currentSource=qt,qt.unbind(cn,Vt._change).bind(cn,Vt._change)),Vt.stop(Vt.source),Vi},set:function(Vt){var qt=this.currentSource||this.source,bn=ze.getter(this.path)(qt);"function"==typeof bn?qt!==this.source?bn.call(qt,this.source,Vt):bn.call(qt,Vt):qt.set(this.path,Vt)},destroy:function(){this.observable&&(this.source.unbind(cn,this._change),this.currentSource&&this.currentSource.unbind(cn,this._change)),this.unbind()}}),Nt=ft.extend({get:function(){var ii,Vt=this.source,qt=this.path,bn=0;for(ii=Vt.get(qt);!ii&&Vt;)(Vt=this.parents[++bn])instanceof it&&(ii=Vt.get(qt));if(ii)return ii.bind(Vt)}}),an=ft.extend({init:function(Vt,qt,bn){ft.fn.init.call(this,Vt,qt),this.template=bn},render:function(Vt){var qt;return this.start(this.source),qt=ze.render(this.template,Vt),this.stop(this.source),qt}}),$e=Co.extend({init:function(Vt,qt,bn){this.element=Vt,this.bindings=qt,this.options=bn},bind:function(Vt,qt){var bn=this;(Vt=qt?Vt[qt]:Vt).bind(cn,function(ii){bn.refresh(qt||ii)}),bn.refresh(qt)},destroy:function(){}}),Je=$e.extend({dataType:function(){return(this.element.getAttribute("data-"+ze.ns+"type")||this.element.type||"text").toLowerCase()},parsedValue:function(){return this._parseValue(this.element.value,this.dataType())},_parseValue:function(Vt,qt){return"date"==qt?Vt=ze.parseDate(Vt,"yyyy-MM-dd"):"datetime-local"==qt?Vt=ze.parseDate(Vt,["yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm"]):"number"==qt?Vt=ze.parseFloat(Vt):"boolean"==qt&&(Vt=Vt.toLowerCase(),Vt=null!==ze.parseFloat(Vt)?!!ze.parseFloat(Vt):"true"===Vt.toLowerCase()),Vt}});function Ve(Vt,qt,bn){return $e.extend({init:function(ii,Vi,Jn){var zt=this;$e.fn.init.call(zt,ii.element[0],Vi,Jn),zt.widget=ii,zt._dataBinding=zt.dataBinding.bind(zt),zt._dataBound=zt.dataBound.bind(zt),zt._itemChange=zt.itemChange.bind(zt)},itemChange:function(ii){Ae(ii.item[0],ii.data,this._ns(ii.ns),[ii.data].concat(this.bindings[Vt]._parents()))},dataBinding:function(ii){var Vi,Jn,mn=ii.removedItems||this.widget.items();for(Vi=0,Jn=mn.length;Vi<Jn;Vi++)On(mn[Vi],!1)},_ns:function(ii){var Vi=[ze.ui,ze.dataviz.ui,ze.mobile.ui];return Vi.splice(Xe.inArray(ii=ii||ze.ui,Vi),1),Vi.unshift(ii),ze.rolesFromNamespaces(Vi)},dataBound:function(ii){var Vi,Jn,ci,Oi,zt=this.widget,mn=ii.addedItems||zt.items(),Qn=zt[qt],Ai=ze.data.HierarchicalDataSource;if(!(Ai&&Qn instanceof Ai)&&mn.length)for(ci=ii.addedDataItems||Qn.flatView(),Oi=this.bindings[Vt]._parents(),Vi=0,Jn=ci.length;Vi<Jn;Vi++)mn[Vi]&&Ae(mn[Vi],ci[Vi],this._ns(ii.ns),[ci[Vi]].concat(Oi))},refresh:function(ii){var Jn,mn,Qn,Vi=this,zt=Vi.widget;(ii=ii||{}).action||(Vi.destroy(),zt.bind("dataBinding",Vi._dataBinding),zt.bind("dataBound",Vi._dataBound),zt.bind("itemChange",Vi._itemChange),Jn=Vi.bindings[Vt].get(),zt[qt]instanceof ze.data.DataSource&&zt[qt]!=Jn&&(Jn instanceof ze.data.DataSource?zt[bn](Jn):Jn&&Jn._dataSource?zt[bn](Jn._dataSource):(mn=ze.ui.Select&&zt instanceof ze.ui.Select,Qn=ze.ui.MultiSelect&&zt instanceof ze.ui.MultiSelect,ze.ui.DropDownTree&&zt instanceof ze.ui.DropDownTree?zt.treeview[qt].data(Jn):zt[qt].data(Jn),Vi.bindings.value&&(mn||Qn)&&zt.value(Wn(Vi.bindings.value.get(),zt.options.dataValueField)))))},destroy:function(){var ii=this.widget;ii.unbind("dataBinding",this._dataBinding),ii.unbind("dataBound",this._dataBound),ii.unbind("itemChange",this._itemChange)}})}Ui.attr=$e.extend({refresh:function(Vt){this.element.setAttribute(Vt,this.bindings.attr[Vt].get())}}),Ui.css=$e.extend({init:function(Vt,qt,bn){$e.fn.init.call(this,Vt,qt,bn),this.classes={}},refresh:function(Vt){var qt=Xe(this.element);(this.classes[Vt]=this.bindings.css[Vt].get())?qt.addClass(Vt):qt.removeClass(Vt)}}),Ui.style=$e.extend({refresh:function(Vt){this.element.style[Vt]=this.bindings.style[Vt].get()||""}}),Ui.enabled=$e.extend({refresh:function(){this.bindings.enabled.get()?this.element.removeAttribute("disabled"):this.element.setAttribute("disabled","disabled")}}),Ui.readonly=$e.extend({refresh:function(){this.bindings.readonly.get()?this.element.setAttribute("readonly","readonly"):this.element.removeAttribute("readonly")}}),Ui.disabled=$e.extend({refresh:function(){this.bindings.disabled.get()?this.element.setAttribute("disabled","disabled"):this.element.removeAttribute("disabled")}}),Ui.events=$e.extend({init:function(Vt,qt,bn){$e.fn.init.call(this,Vt,qt,bn),this.handlers={}},refresh:function(Vt){var qt=Xe(this.element),bn=this.bindings.events[Vt],ii=this.handlers[Vt];ii&&qt.off(Vt,ii),ii=this.handlers[Vt]=bn.get(),qt.on(Vt,bn.source,ii)},destroy:function(){var qt,Vt=Xe(this.element);for(qt in this.handlers)Vt.off(qt,this.handlers[qt])}}),Ui.text=$e.extend({refresh:function(){var Vt=this.bindings.text.get(),qt=this.element.getAttribute("data-"+ze.ns+"format")||"";null==Vt&&(Vt=""),Xe(this.element).text(ze.toString(Vt,qt))}}),Ui.visible=$e.extend({refresh:function(){this.element.style.display=this.bindings.visible.get()?"":"none"}}),Ui.invisible=$e.extend({refresh:function(){this.element.style.display=this.bindings.invisible.get()?"none":""}}),Ui.html=$e.extend({refresh:function(){this.element.innerHTML=this.bindings.html.get()}}),Ui.value=Je.extend({init:function(Vt,qt,bn){Je.fn.init.call(this,Vt,qt,bn),this._change=this.change.bind(this),this.eventName=bn.valueUpdate||cn,Xe(this.element).on(this.eventName,this._change),this._initChange=!1},change:function(){this._initChange=this.eventName!=cn,this.bindings[Sn].set(this.parsedValue()),this._initChange=!1},refresh:function(){if(!this._initChange){var Vt=this.bindings[Sn].get();null==Vt&&(Vt="");var qt=this.dataType();"date"==qt?Vt=ze.toString(Vt,"yyyy-MM-dd"):"datetime-local"==qt&&(Vt=ze.toString(Vt,"yyyy-MM-ddTHH:mm:ss")),this.element.value=Vt}this._initChange=!1},destroy:function(){Xe(this.element).off(this.eventName,this._change)}}),Ui.source=$e.extend({init:function(Vt,qt,bn){$e.fn.init.call(this,Vt,qt,bn);var ii=this.bindings.source.get();ii instanceof ze.data.DataSource&&!1!==bn.autoBind&&ii.fetch()},refresh:function(Vt){var qt=this,bn=qt.bindings.source.get();bn instanceof Dt||bn instanceof ze.data.DataSource?"add"==(Vt=Vt||{}).action?qt.add(Vt.index,Vt.items):"remove"==Vt.action?qt.remove(Vt.index,Vt.items):"itemchange"!=Vt.action&&qt.render():qt.render()},container:function(){var Vt=this.element;return"table"==Vt.nodeName.toLowerCase()&&(Vt.tBodies[0]||Vt.appendChild(document.createElement("tbody")),Vt=Vt.tBodies[0]),Vt},template:function(){var Vt=this.options,qt=Vt.template,bn=this.container().nodeName.toLowerCase();return qt||(qt="select"==bn?Vt.valueField||Vt.textField?ze.format('<option value="#:{0}#">#:{1}#</option>',Vt.valueField||Vt.textField,Vt.textField||Vt.valueField):"<option>#:data#</option>":"tbody"==bn?"<tr><td>#:data#</td></tr>":"ul"==bn||"ol"==bn?"<li>#:data#</li>":"#:data#",qt=ze.template(qt)),qt},add:function(Vt,qt){var ii,Vi,Jn,zt,bn=this.container(),mn=bn.cloneNode(!1),Qn=bn.children[Vt];if(Xe(mn).html(ze.render(this.template(),qt)),mn.children.length)for(ii=this.bindings.source._parents(),Vi=0,Jn=qt.length;Vi<Jn;Vi++)bn.insertBefore(zt=mn.children[0],Qn||null),Ae(zt,qt[Vi],this.options.roles,[qt[Vi]].concat(ii))},remove:function(Vt,qt){var bn,ii=this.container();for(bn=0;bn<qt.length;bn++){var Vi=ii.children[Vt];On(Vi,!0),Vi.parentNode==ii&&ii.removeChild(Vi)}},render:function(){var qt,bn,ii,Vt=this.bindings.source.get(),Vi=this.container(),Jn=this.template();if(null!=Vt)if(Vt instanceof ze.data.DataSource&&(Vt=Vt.view()),!(Vt instanceof Dt)&&"[object Array]"!==Hn.call(Vt)&&(Vt=[Vt]),this.bindings.template){if(Fi(Vi,!0),Xe(Vi).html(this.bindings.template.render(Vt)),Vi.children.length)for(qt=this.bindings.source._parents(),bn=0,ii=Vt.length;bn<ii;bn++)Ae(Vi.children[bn],Vt[bn],this.options.roles,[Vt[bn]].concat(qt))}else Xe(Vi).html(ze.render(Jn,Vt))}}),Ui.input={checked:Je.extend({init:function(Vt,qt,bn){Je.fn.init.call(this,Vt,qt,bn),this._change=this.change.bind(this),Xe(this.element).change(this._change)},change:function(){var Vt=this.element,qt=this.value();if("radio"==Vt.type)qt=this.parsedValue(),this.bindings[kn].set(qt);else if("checkbox"==Vt.type){var ii,bn=this.bindings[kn].get();if(bn instanceof Dt){if((qt=this.parsedValue())instanceof Date){for(var Vi=0;Vi<bn.length;Vi++)if(bn[Vi]instanceof Date&&+bn[Vi]==+qt){ii=Vi;break}}else ii=bn.indexOf(qt);ii>-1?bn.splice(ii,1):bn.push(qt)}else this.bindings[kn].set(qt)}},refresh:function(){var Vt=this.bindings[kn].get(),qt=Vt,bn=this.dataType(),ii=this.element;if("checkbox"==ii.type)if(qt instanceof Dt){var Vi=-1;if((Vt=this.parsedValue())instanceof Date){for(var Jn=0;Jn<qt.length;Jn++)if(qt[Jn]instanceof Date&&+qt[Jn]==+Vt){Vi=Jn;break}}else Vi=qt.indexOf(Vt);ii.checked=Vi>=0}else ii.checked=qt;else"radio"==ii.type&&("date"==bn?Vt=ze.toString(Vt,"yyyy-MM-dd"):"datetime-local"==bn&&(Vt=ze.toString(Vt,"yyyy-MM-ddTHH:mm:ss")),ii.checked=null!==Vt&&typeof Vt<"u"&&ii.value===Vt.toString())},value:function(){var Vt=this.element,qt=Vt.value;return"checkbox"==Vt.type&&(qt=Vt.checked),qt},destroy:function(){Xe(this.element).off(cn,this._change)}})},Ui.select={source:Ui.source.extend({refresh:function(Vt){var qt=this,bn=qt.bindings.source.get();if(bn instanceof Dt||bn instanceof ze.data.DataSource){if("add"==(Vt=Vt||{}).action)qt.add(Vt.index,Vt.items);else if("remove"==Vt.action)qt.remove(Vt.index,Vt.items);else if(("itemchange"==Vt.action||Vt.action===Ke)&&(qt.render(),qt.bindings.value&&qt.bindings.value)){var ii=Wn(qt.bindings.value.get(),Xe(qt.element).data("valueField"));null===ii?qt.element.selectedIndex=-1:qt.element.value=ii}}else qt.render()}}),value:Je.extend({init:function(Vt,qt,bn){Je.fn.init.call(this,Vt,qt,bn),this._change=this.change.bind(this),Xe(this.element).change(this._change)},parsedValue:function(){var bn,ii,Vi,Jn,Vt=this.dataType(),qt=[];for(Vi=0,Jn=this.element.options.length;Vi<Jn;Vi++)(ii=this.element.options[Vi]).selected&&qt.push(this._parseValue(bn=(bn=ii.attributes.value)&&bn.specified?ii.value:ii.text,Vt));return qt},change:function(){var bn,Jn,zt,mn,Qn,ci,Vt=[],qt=this.element,ii=this.options.valueField||this.options.textField,Vi=this.options.valuePrimitive;for(Qn=0,ci=qt.options.length;Qn<ci;Qn++)(Jn=qt.options[Qn]).selected&&(mn=(mn=Jn.attributes.value)&&mn.specified?Jn.value:Jn.text,Vt.push(ii?mn:this._parseValue(mn,this.dataType())));if(ii)for((bn=this.bindings.source.get())instanceof ze.data.DataSource&&(bn=bn.view()),zt=0;zt<Vt.length;zt++)for(Qn=0,ci=bn.length;Qn<ci;Qn++){var Oi=bn[Qn].get(ii);if(String(Oi)===Vt[zt]){Vt[zt]=bn[Qn];break}}(mn=this.bindings[Sn].get())instanceof Dt?mn.splice.apply(mn,[0,mn.length].concat(Vt)):this.bindings[Sn].set(Vi||!(mn instanceof it||null===mn||mn===Ke)&&ii?Vt[0].get(ii):Vt[0])},refresh:function(){var Vt,Qn,qt=this.element,bn=qt.options,ii=this.bindings[Sn].get(),Vi=ii,Jn=this.options.valueField||this.options.textField,mn=this.dataType();Vi instanceof Dt||(Vi=new Dt([ii])),qt.selectedIndex=-1;for(var ci=0;ci<Vi.length;ci++)for(ii=Vi[ci],Jn&&ii instanceof it&&(ii=ii.get(Jn)),"date"==mn?ii=ze.toString(Vi[ci],"yyyy-MM-dd"):"datetime-local"==mn&&(ii=ze.toString(Vi[ci],"yyyy-MM-ddTHH:mm:ss")),Vt=0;Vt<bn.length;Vt++)""===(Qn=bn[Vt].value)&&""!==ii&&(Qn=bn[Vt].text),null!=ii&&Qn==ii.toString()&&(bn[Vt].selected=!0)},destroy:function(){Xe(this.element).off(cn,this._change)}})},Ui.widget={events:$e.extend({init:function(Vt,qt,bn){$e.fn.init.call(this,Vt.element[0],qt,bn),this.widget=Vt,this.handlers={}},refresh:function(Vt){var qt=this.bindings.events[Vt],bn=this.handlers[Vt];bn&&this.widget.unbind(Vt,bn),bn=qt.get(),this.handlers[Vt]=function(ii){ii.data=qt.source,bn(ii),ii.data===qt.source&&delete ii.data},this.widget.bind(Vt,this.handlers[Vt])},destroy:function(){var Vt;for(Vt in this.handlers)this.widget.unbind(Vt,this.handlers[Vt])}}),checked:$e.extend({init:function(Vt,qt,bn){$e.fn.init.call(this,Vt.element[0],qt,bn),this.widget=Vt,this._change=this.change.bind(this),this.widget.bind(cn,this._change)},change:function(){this.bindings[kn].set(this.value())},refresh:function(){this.widget.check("radio"===this.element.type?this.bindings[kn].get().toString()===this.value():!0===this.bindings[kn].get())},value:function(){var Vt=this.element,qt=Vt.value;return("on"==qt||"off"==qt||"checkbox"==this.element.type)&&(qt=Vt.checked),qt},destroy:function(){this.widget.unbind(cn,this._change)}}),start:$e.extend({init:function(Vt,qt,bn){$e.fn.init.call(this,Vt.element[0],qt,bn),this._change=this.change.bind(this),this.widget=Vt,this.widget.bind(cn,this._change)},change:function(){this.bindings.start.set(this.widget.range().start)},refresh:function(){var qt=this.bindings.start.get();this.widget.range({start:qt,end:this.widget._range?this.widget._range.end:null})},destroy:function(){this.widget.unbind(cn,this._change)}}),end:$e.extend({init:function(Vt,qt,bn){$e.fn.init.call(this,Vt.element[0],qt,bn),this._change=this.change.bind(this),this.widget=Vt,this.widget.bind(cn,this._change)},change:function(){this.bindings.end.set(this.widget.range().end)},refresh:function(){var qt=this.bindings.end.get();this.widget.range({start:this.widget._range?this.widget._range.start:null,end:qt})},destroy:function(){this.widget.unbind(cn,this._change)}}),visible:$e.extend({init:function(Vt,qt,bn){$e.fn.init.call(this,Vt.element[0],qt,bn),this.widget=Vt},refresh:function(){var Vt=this.bindings.visible.get();this.widget.wrapper[0].style.display=Vt?"":"none"}}),invisible:$e.extend({init:function(Vt,qt,bn){$e.fn.init.call(this,Vt.element[0],qt,bn),this.widget=Vt},refresh:function(){var Vt=this.bindings.invisible.get();this.widget.wrapper[0].style.display=Vt?"none":""}}),floatingLabel:$e.extend({init:function(Vt,qt,bn){$e.fn.init.call(this,Vt.element[0],qt,bn),Vt.floatingLabel&&Vt.floatingLabel.refresh()}}),enabled:$e.extend({init:function(Vt,qt,bn){$e.fn.init.call(this,Vt.element[0],qt,bn),this.widget=Vt},refresh:function(){this.widget.enable&&this.widget.enable(this.bindings.enabled.get())}}),disabled:$e.extend({init:function(Vt,qt,bn){$e.fn.init.call(this,Vt.element[0],qt,bn),this.widget=Vt},refresh:function(){this.widget.enable&&this.widget.enable(!this.bindings.disabled.get())}}),source:Ve("source","dataSource","setDataSource"),value:$e.extend({init:function(Vt,qt,bn){$e.fn.init.call(this,Vt.element[0],qt,bn),this.widget=Vt,this._change=this.change.bind(this),this.widget.first(cn,this._change);var ii=this.bindings.value.get();this._valueIsObservableObject=!bn.valuePrimitive&&(null==ii||ii instanceof it),this._valueIsObservableArray=ii instanceof Dt,this._initChange=!1},_source:function(){var Vt;return this.widget.dataItem&&(Vt=this.widget.dataItem())&&Vt instanceof it?[Vt]:(this.bindings.source&&(Vt=this.bindings.source.get()),(!Vt||Vt instanceof ze.data.DataSource)&&(Vt=this.widget.dataSource.flatView()),Vt)},change:function(){var Vi,Jn,mn,Qn,ci,Oi,Ai,Vt=this.widget.value(),qt=this.options.dataValueField||this.options.dataTextField,bn="[object Array]"===Hn.call(Vt),ii=this._valueIsObservableObject,zt=[];if(this._initChange=!0,qt)if(""===Vt&&(ii||this.options.valuePrimitive))Vt=null;else{for(Ai=this._source(),bn&&(Jn=Vt.length,zt=Vt.slice(0)),ci=0,Oi=Ai.length;ci<Oi;ci++)if(Qn=(mn=Ai[ci]).get(qt),bn){for(Vi=0;Vi<Jn;Vi++)if(Qn==zt[Vi]){zt[Vi]=mn;break}}else if(Qn==Vt){Vt=ii?mn:Qn;break}zt[0]&&(Vt=this._valueIsObservableArray?zt:ii||!qt?zt[0]:zt[0].get(qt))}this.bindings.value.set(Vt),this._initChange=!1},refresh:function(){if(!this._initChange){var mn,Vt=this.widget,qt=Vt.options,bn=qt.dataTextField,ii=qt.dataValueField||bn,Vi=this.bindings.value.get(),Jn=qt.text||"",zt=0,Qn=[];if(Vi===Ke&&(Vi=null),ii)if(Vi instanceof Dt){for(mn=Vi.length;zt<mn;zt++)Qn[zt]=Vi[zt].get(ii);Vi=Qn}else Vi instanceof it&&(Jn=Vi.get(bn),Vi=Vi.get(ii));!1!==qt.autoBind||qt.cascadeFrom||!Vt.listView||Vt.listView.bound()?Vt.value(Vi):(bn===ii&&!Jn&&(Jn=Vi),Jn||!Vi&&0!==Vi||!qt.valuePrimitive?Vt._preselect(Vi,Jn):Vt.value(Vi))}this._initChange=!1},destroy:function(){this.widget.unbind(cn,this._change)}}),dropdowntree:{value:$e.extend({init:function(Vt,qt,bn){$e.fn.init.call(this,Vt.element[0],qt,bn),this.widget=Vt,this._change=this.change.bind(this),this.widget.first(cn,this._change),this._initChange=!1},change:function(){var Vt=this,qt=Vt.bindings[Sn].get(),bn=Vt.options.valuePrimitive,ii=Vt.widget.treeview.select(),Vi=Vt.widget._isMultipleSelection()?Vt.widget._getAllChecked():Vt.widget.treeview.dataItem(ii)||Vt.widget.value(),Jn=bn||!1===Vt.widget.options.autoBind?Vt.widget.value():Vi,zt=this.options.dataValueField||this.options.dataTextField;if(Jn=Jn.slice?Jn.slice(0):Jn,Vt._initChange=!0,qt instanceof Dt){for(var qn,Ni,Ue,mn=[],Qn=Jn.length,ci=0,Oi=0,Ai=qt[ci];Ai!==Ke;){for(Ue=!1,Oi=0;Oi<Qn;Oi++)if(bn?Jn[Oi]==Ai:(Ni=(Ni=Jn[Oi]).get?Ni.get(zt):Ni)==(Ai.get?Ai.get(zt):Ai)){Jn.splice(Oi,1),Qn-=1,Ue=!0;break}Ue?ci+=1:(mn.push(Ai),Ge(qt,ci,1),qn=ci),Ai=qt[ci]}Ge(qt,qt.length,0,Jn),mn.length&&qt.trigger("change",{action:"remove",items:mn,index:qn}),Jn.length&&qt.trigger("change",{action:"add",items:Jn,index:qt.length-1})}else Vt.bindings[Sn].set(Jn);Vt._initChange=!1},refresh:function(){if(!this._initChange){var zt,Qn,Vt=this.options,qt=this.widget,bn=Vt.dataValueField||Vt.dataTextField,ii=this.bindings.value.get(),Vi=ii,Jn=0,mn=[];if(bn)if(ii instanceof Dt){for(zt=ii.length;Jn<zt;Jn++)mn[Jn]=(Qn=ii[Jn]).get?Qn.get(bn):Qn;ii=mn}else ii instanceof it&&(ii=ii.get(bn));!1===Vt.autoBind&&!0!==Vt.valuePrimitive?qt._preselect(Vi,ii):qt.value(ii)}},destroy:function(){this.widget.unbind(cn,this._change)}})},gantt:{dependencies:Ve("dependencies","dependencies","setDependenciesDataSource")},multiselect:{value:$e.extend({init:function(Vt,qt,bn){$e.fn.init.call(this,Vt.element[0],qt,bn),this.widget=Vt,this._change=this.change.bind(this),this.widget.first(cn,this._change),this._initChange=!1},change:function(){var Vt=this,qt=Vt.bindings[Sn].get(),bn=Vt.options.valuePrimitive,ii=bn?Vt.widget.value():Vt.widget.dataItems(),Vi=this.options.dataValueField||this.options.dataTextField;if(ii=ii.slice(0),Vt._initChange=!0,qt instanceof Dt){for(var Ai,Pn,qn,Jn=[],zt=ii.length,mn=0,Qn=0,ci=qt[mn];ci!==Ke;){for(qn=!1,Qn=0;Qn<zt;Qn++)if(bn?ii[Qn]==ci:(Pn=(Pn=ii[Qn]).get?Pn.get(Vi):Pn)==(ci.get?ci.get(Vi):ci)){ii.splice(Qn,1),zt-=1,qn=!0;break}qn?mn+=1:(Jn.push(ci),Ge(qt,mn,1),Ai=mn),ci=qt[mn]}Ge(qt,qt.length,0,ii),Jn.length&&qt.trigger("change",{action:"remove",items:Jn,index:Ai}),ii.length&&qt.trigger("change",{action:"add",items:ii,index:qt.length-1})}else Vt.bindings[Sn].set(ii);Vt._initChange=!1},refresh:function(){if(!this._initChange){var zt,Qn,Vt=this.options,qt=this.widget,bn=Vt.dataValueField||Vt.dataTextField,ii=this.bindings.value.get(),Vi=ii,Jn=0,mn=[];if(ii===Ke&&(ii=null),bn)if(ii instanceof Dt){for(zt=ii.length;Jn<zt;Jn++)mn[Jn]=(Qn=ii[Jn]).get?Qn.get(bn):Qn;ii=mn}else ii instanceof it&&(ii=ii.get(bn));!1!==Vt.autoBind||!0===Vt.valuePrimitive||qt._isBound()?qt.value(ii):qt._preselect(Vi,ii)}},destroy:function(){this.widget.unbind(cn,this._change)}})},scheduler:{source:Ve("source","dataSource","setDataSource").extend({dataBound:function(Vt){var qt,bn,Jn,zt,ii=this.widget,Vi=Vt.addedItems||ii.items();if(Vi.length)for(Jn=Vt.addedDataItems||ii.dataItems(),zt=this.bindings.source._parents(),qt=0,bn=Jn.length;qt<bn;qt++)Ae(Vi[qt],Jn[qt],this._ns(Vt.ns),[Jn[qt]].concat(zt))}})},grid:{source:Ve("source","dataSource","setDataSource").extend({dataBound:function(Vt){var qt,bn,Jn,zt,ii=this.widget,Vi=Vt.addedItems||ii.items();if(Vi.length)for(zt=Vt.addedDataItems||ii.dataItems(),Jn=this.bindings.source._parents(),qt=0,bn=zt.length;qt<bn;qt++)Ae(Vi[qt],zt[qt],this._ns(Vt.ns),[zt[qt]].concat(Jn))}})},badge:{text:$e.extend({init:function(Vt,qt,bn){$e.fn.init.call(this,Vt.element[0],qt,bn),this.widget=Vt},refresh:function(){var Vt=this.bindings.text.get();null==Vt&&(Vt=""),this.widget.text(Vt)}})}};var Ge=function(Vt,qt,bn,ii){var Qn,Vi=(ii=ii||[]).length,Jn=Vt.length,zt=[].slice.call(Vt,qt+(bn=bn||0)),mn=zt.length;if(Vi){for(Vi=qt+Vi,Qn=0;qt<Vi;qt++)Vt[qt]=ii[Qn],Qn++;Vt.length=Vi}else if(bn)for(Vt.length=qt,bn+=qt;qt<bn;)delete Vt[--bn];if(mn){for(mn=qt+mn,Qn=0;qt<mn;qt++)Vt[qt]=zt[Qn],Qn++;Vt.length=mn}for(qt=Vt.length;qt<Jn;)delete Vt[qt],qt++},Be=Co.extend({init:function(Vt,qt){this.target=Vt,this.options=qt,this.toDestroy=[]},bind:function(Vt){var qt,bn,ii,Vi,Jn,zt,mn=this instanceof At,Qn=this.binders();for(qt in Vt)qt==Sn?bn=!0:"source"==qt?ii=!0:"events"!=qt||mn?qt==kn?Jn=!0:"css"==qt?zt=!0:this.applyBinding(qt,Vt,Qn):Vi=!0;ii&&this.applyBinding("source",Vt,Qn),bn&&this.applyBinding(Sn,Vt,Qn),Jn&&this.applyBinding(kn,Vt,Qn),Vi&&!mn&&this.applyBinding("events",Vt,Qn),zt&&!mn&&this.applyBinding("css",Vt,Qn),mn&&this.target&&this.target.floatingLabel&&this.applyBinding("floatingLabel",Vt,Qn)},binders:function(){return Ui[this.target.nodeName.toLowerCase()]||{}},applyBinding:function(Vt,qt,bn){var Jn,ii=bn[Vt]||Ui[Vt],Vi=this.toDestroy,zt=qt[Vt];if(ii)if(ii=new ii(this.target,qt,this.options),Vi.push(ii),zt instanceof ft)ii.bind(zt),Vi.push(zt);else for(Jn in zt)ii.bind(zt,Jn),Vi.push(zt[Jn]);else if("template"!==Vt)throw new Error("The "+Vt+" binding is not supported by the "+this.target.nodeName.toLowerCase()+" element")},destroy:function(){var Vt,qt,bn=this.toDestroy;for(Vt=0,qt=bn.length;Vt<qt;Vt++)bn[Vt].destroy()}}),At=Be.extend({binders:function(){return Ui.widget[this.target.options.name.toLowerCase()]||{}},applyBinding:function(Vt,qt,bn){var Jn,ii=bn[Vt]||Ui.widget[Vt],Vi=this.toDestroy,zt=qt[Vt];if(!ii)throw new Error("The "+Vt+" binding is not supported by the "+this.target.options.name+" widget");if(ii=new ii(this.target,qt,this.target.options),Vi.push(ii),zt instanceof ft)ii.bind(zt),Vi.push(zt);else for(Jn in zt)ii.bind(zt,Jn),Vi.push(zt[Jn])}}),Pt=/[A-Za-z0-9_\-]+:(\{([^}]*)\}|[^,}]+)/g,$t=/\s/g;function Xn(Vt){var bn,ii,Vi,Jn,zt,mn,Qn,qt={};for(bn=0,ii=(Qn=Vt.match(Pt)).length;bn<ii;bn++)Jn=(Vi=Qn[bn]).indexOf(":"),zt=Vi.substring(0,Jn),"{"==(mn=Vi.substring(Jn+1)).charAt(0)&&(mn=Xn(mn)),qt[zt]=mn;return qt}function Nn(Vt,qt,bn){var ii,Vi={};for(ii in Vt)Vi[ii]=new bn(qt,Vt[ii]);return Vi}function Ae(Vt,qt,bn,ii){if(Vt&&!Vt.getAttribute("data-"+ze.ns+"stop")){var Jn,ci,Ai,Vi=Vt.getAttribute("data-"+ze.ns+"role"),zt=Vt.getAttribute("data-"+ze.ns+"bind"),mn=[],Qn=!0,Oi={};ii=ii||[qt],(Vi||zt)&&Kt(Vt,!1),Vi&&(Ai=function Rt(Vt,qt){var bn=ze.initWidget(Vt,{},qt);if(bn)return new At(bn)}(Vt,bn)),zt&&(zt=Xn(zt.replace($t,"")),Ai||((Oi=ze.parseOptions(Vt,{textField:"",valueField:"",template:"",valueUpdate:cn,valuePrimitive:!1,autoBind:!0},qt)).roles=bn,Ai=new Be(Vt,Oi)),Ai.source=qt,ci=Nn(zt,ii,ft),Oi.template&&(ci.template=new an(ii,"",Oi.template)),ci.click&&(zt.events=zt.events||{},zt.events.click=zt.click,ci.click.destroy(),delete ci.click),ci.source&&(Qn=!1),zt.attr&&(ci.attr=Nn(zt.attr,ii,ft)),zt.style&&(ci.style=Nn(zt.style,ii,ft)),zt.events&&(ci.events=Nn(zt.events,ii,Nt)),zt.css&&(ci.css=Nn(zt.css,ii,ft)),Ai.bind(ci)),Ai&&(Vt.kendoBindingTarget=Ai);var Pn=Vt.children;if(Qn&&Pn&&!Vt.getAttribute("data-"+ze.ns+"stop")){for(Jn=0;Jn<Pn.length;Jn++)mn[Jn]=Pn[Jn];for(Jn=0;Jn<mn.length;Jn++)Ae(mn[Jn],qt,bn,ii)}}}function He(Vt,qt){var bn,ii,Vi,Jn=ze.rolesFromNamespaces([].slice.call(arguments,2));for(qt=ze.observable(qt),bn=0,ii=(Vt=Xe(Vt)).length;bn<ii;bn++)1===(Vi=Vt[bn]).nodeType&&Ae(Vi,qt,Jn)}function Kt(Vt,qt){var bn=Vt.kendoBindingTarget;if(bn&&(bn.destroy(),Ot?delete Vt.kendoBindingTarget:Vt.removeAttribute?Vt.removeAttribute("kendoBindingTarget"):Vt.kendoBindingTarget=null),qt){var ii=ze.widgetInstance(Xe(Vt));ii&&typeof ii.destroy===en&&ii.destroy()}}function On(Vt,qt){Kt(Vt,qt),Fi(Vt,qt)}function Fi(Vt,qt){var bn=Vt.children;if(bn)for(var ii=0,Vi=bn.length;ii<Vi;ii++)On(bn[ii],qt)}function Wn(Vt,qt){var Vi,Jn,bn=[],ii=0;if(!qt)return Vt;if(Vt instanceof Dt){for(Vi=Vt.length;ii<Vi;ii++)bn[ii]=(Jn=Vt[ii]).get?Jn.get(qt):Jn[qt];Vt=bn}else Vt instanceof it&&(Vt=Vt.get(qt));return Vt}return ze.unbind=function Ci(Vt){var qt,bn;for(qt=0,bn=(Vt=Xe(Vt)).length;qt<bn;qt++)On(Vt[qt],!1)},ze.bind=He,ze.data.binders=Ui,ze.data.Binder=$e,ze.notify=function xi(Vt,qt){var bn=Vt.element,ii=bn[0].kendoBindingTarget;ii&&He(bn,ii.source,qt)},ze.observable=function(Vt){return Vt instanceof it||(Vt=new it(Vt)),Vt},ze.observableHierarchy=function(Vt){var qt=ze.data.HierarchicalDataSource.create(Vt);return qt.fetch(),function bn(ii){var Vi,Jn;for(Vi=0;Vi<ii.length;Vi++)ii[Vi]._initChildren(),(Jn=ii[Vi].children).fetch(),ii[Vi].items=Jn.data(),bn(ii[Vi].items)}(qt.data()),qt._data._dataSource=qt,qt._data},window.kendo}.apply(Le={},ur=[e,d]))&&(Oe=Le),void 0===(Gt=function(){var Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,St=ze.ui.Widget,it=ze.ui,Dt=".kendoFloatingLabel",Ui="k-state-empty",Co="k-focus",Sn="k-disabled",Vn="k-no-click",Dn="k-readonly",kn=St.extend({init:function(ui,Ot){var en=this;St.fn.init.call(en,ui,Ot),Ot=Xe.extend(!0,{},Ot),en.refresh(),en._editable({readonly:en.options.widget.options.readonly!==Ke&&en.options.widget.options.readonly,disable:en.options.widget.options.enable!==Ke&&!en.options.widget.options.enable}),en.element.addClass("k-floating-label-container"),ze.notify(en)},options:{name:"FloatingLabel",widget:null,useReadOnlyClass:!1},readonly:function(ui){this._editable({readonly:ui===Ke||ui,disable:!1})},enable:function(ui){this._editable({readonly:!1,disable:!(ui=ui===Ke||ui)})},refresh:function(){var Ot=this.element;Ot.removeClass(Ui).removeClass(Co),this.options.widget.element.val()||Ot.addClass(Ui),document.activeElement===this.options.widget.element[0]&&Ot.addClass(Co)},destroy:function(){this.element.off(Dt),St.fn.destroy.call(this)},_editable:function(ui){var Ot=this,en=Ot.element,cn=ui.disable,Ht=ui.readonly;en.off(Dt),Ht||cn?en.toggleClass(Sn,cn).toggleClass(Ot.options.useReadOnlyClass?Dn:Vn,Ht):(en.removeClass(Sn).removeClass(Ot.options.useReadOnlyClass?Dn:Vn),en.on("focusin"+Dt,Ot.refresh.bind(Ot)),en.on("focusout"+Dt,Ot.refresh.bind(Ot)))}});return it.plugin(kn),window.kendo}.apply(Ut={},ur=[e]))&&(Gt=Ut),void 0===(An=function(){var Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,St=ze.ui.Widget,it=ze.ui,Dt=Xe.isPlainObject,Hn=".kendoTextBox",Co="disabled",Sn="readonly",Vn="k-input-inner",Dn="k-focus",ui="k-disabled",Ot="k-no-click",en="aria-disabled",cn=St.extend({init:function(Ht,ft){var Nt=this;St.fn.init.call(Nt,Ht,ft),ft=Xe.extend(!0,{},ft),Nt.options.value=ft.value||Nt.element.val(),Nt.options.readonly=ft.readonly!==Ke?ft.readonly:!!Nt.element.attr("readonly"),Nt.options.enable=ft.enable!==Ke?ft.enable:!Nt.element.attr("disabled"),Nt.options.placeholder=ft.placeholder||Nt.element.attr("placeholder"),Nt.value(Nt.options.value),Nt._wrapper(),Nt._label(),Nt._editable({readonly:Nt.options.readonly,disable:!Nt.options.enable}),Nt.element.addClass(Vn).attr("placeholder",Nt.options.placeholder).attr("autocomplete","off"),ze.notify(Nt),Nt._applyCssClasses()},events:["change"],options:{name:"TextBox",value:"",readonly:!1,enable:!0,placeholder:"",label:null,rounded:"medium",size:"medium",fillMode:"solid"},value:function(Ht){if(Ht===Ke)return this._value;this._value=Ht,this.element.val(Ht)},readonly:function(Ht){this._editable({readonly:Ht===Ke||Ht,disable:!1}),this.floatingLabel&&this.floatingLabel.readonly(Ht===Ke||Ht)},enable:function(Ht){this._editable({readonly:!1,disable:!(Ht=Ht===Ke||Ht)}),this.floatingLabel&&this.floatingLabel.enable(Ht=Ht===Ke||Ht)},focus:function(){this.element[0].focus()},destroy:function(){var Ht=this;Ht.floatingLabel&&Ht.floatingLabel.destroy(),Ht.element.off(Hn),Ht.element[0].style.width="",Ht.element.removeClass(Vn),St.fn.destroy.call(Ht)},setOptions:function(Ht){this.destroy(),this._inputLabel&&(this._inputLabel.remove(),this._inputLabel=null),this._floatingLabelContainer?(this.floatingLabel.destroy(),this.floatingLabel=null,this.element.unwrap(),this.element.unwrap(),this._floatingLabelContainer=null):this.element.unwrap(),ze.deepExtend(this.options,Ht),this.init(this.element,this.options)},_editable:function(Ht){var ft=this,Nt=ft.element,an=ft.wrapper,$e=Ht.disable,Je=Ht.readonly;Nt.off(Hn),Je||$e?(Nt.attr(Co,$e).attr(Sn,Je).attr(en,$e),an.toggleClass(ui,$e).toggleClass(Ot,Je)):(Nt.prop(Co,!1).prop(Sn,!1).attr(en,!1),an.removeClass(ui).removeClass(Ot),Nt.on("focusin"+Hn,ft._focusin.bind(ft)),Nt.on("focusout"+Hn,ft._focusout.bind(ft)),Nt.on("change"+Hn,ft._change.bind(ft)))},_label:function(){var $e,Je,Ht=this,ft=Ht.element,Nt=Ht.options,an=ft.attr("id");null!==Nt.label&&($e=!!Dt(Nt.label)&&Nt.label.floating,Je=Dt(Nt.label)?Nt.label.content:Nt.label,$e&&(Ht._floatingLabelContainer=Ht.wrapper.wrap("<span></span>").parent(),Ht.floatingLabel=new ze.ui.FloatingLabel(Ht._floatingLabelContainer,{widget:Ht})),ze.isFunction(Je)&&(Je=Je.call(Ht)),Je||(Je=""),an||(an=Nt.name+"_"+ze.guid(),ft.attr("id",an)),Ht._inputLabel=Xe("<label class='k-label k-input-label' for='"+an+"'>"+Je+"</label>'").insertBefore(Ht.wrapper))},_focusin:function(){this.wrapper.addClass(Dn)},_focusout:function(){this.wrapper.removeClass(Dn)},_change:function(Ht){var Nt=this.element.val();this._value=Nt,this.trigger("change",{value:Nt,originalEvent:Ht})},_wrapper:function(){var an,ft=this.element,Nt=ft[0];(an=ft.wrap("<span class='k-input k-textbox'></span>").parent())[0].style.cssText=Nt.style.cssText,Nt.style.width="100%",this.wrapper=an.addClass(Nt.className).removeClass("input-validation-error")}});return ze.cssProperties.registerPrefix("TextBox","k-input-"),ze.cssProperties.registerValues("TextBox",[{prop:"rounded",values:ze.cssProperties.roundedValues.concat([["full","full"]])}]),it.plugin(cn),window.kendo}.apply($n={},ur=[e,Gt]))&&(An=$n),void 0===(xn=function(){var Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,St=ze.caret,it=ze.keys,Dt=ze.html,Hn=ze.ui,Ui=Hn.Widget,Co=ze._activeElement,Sn=ze._extractFormat,Vn=ze.parseFloat,Dn=ze.support.placeholder,kn=ze.getCulture,ui="change",Ot="disabled",en="readonly",cn="k-input-inner",ft=".kendoNumericTextBox",$e="mouseenter"+ft+" mouseleave"+ft,Je="k-focus",Ve="k-hover",Ge="focus",Be=".",$t="k-selected",Xn="k-disabled",Nn="k-invalid",Ae="aria-disabled",He=/^(-)?(\d*)$/,Kt=null,On=Xe.isPlainObject,Fi=Xe.extend,Ci=Ui.extend({init:function(Vt,qt){var Vi,Jn,zt,mn,ci,bn=this,ii=qt&&qt.step!==Ke;Ui.fn.init.call(bn,Vt,qt),qt=bn.options,Vt=bn.element.on("focusout"+ft,bn._focusout.bind(bn)).attr("role","spinbutton"),qt.placeholder=qt.placeholder||Vt.attr("placeholder"),Vi=bn.min(Vt.attr("min")),Jn=bn.max(Vt.attr("max")),zt=bn._parse(Vt.attr("step")),qt.min===Kt&&Vi!==Kt&&(qt.min=Vi),qt.max===Kt&&Jn!==Kt&&(qt.max=Jn),!ii&&zt!==Kt&&(qt.step=zt),bn._initialOptions=Fi({},qt),ci=Vt.attr("type"),bn._reset(),bn._wrapper(),bn._arrows(),bn._validation(),bn._input(),ze.support.mobileOS?bn._text.on("touchend"+ft+" "+Ge+ft,function(){ze.support.browser.edge?bn._text.one(Ge+ft,function(){bn._focusin()}):bn._focusin(),bn.selectValue()}):bn._text.on(Ge+ft,bn._click.bind(bn)),Vt.attr("aria-valuemin",qt.min!==Kt?qt.min*qt.factor:qt.min).attr("aria-valuemax",qt.max!==Kt?qt.max*qt.factor:qt.max),qt.format=Sn(qt.format),(mn=qt.value)==Kt&&(mn="number"==ci?parseFloat(Vt.val()):Vt.val()),bn.value(mn),!qt.enable||Vt.is("[disabled]")||Xe(bn.element).parents("fieldset").is(":disabled")?bn.enable(!1):bn.readonly(Vt.is("[readonly]")),bn.angular("compile",function(){return{elements:bn._text.get()}}),bn._label(),bn._ariaLabel(bn._text),bn._applyCssClasses(),ze.notify(bn)},options:{name:"NumericTextBox",decimals:Kt,enable:!0,restrictDecimals:!1,min:Kt,max:Kt,value:Kt,step:1,round:!0,culture:"",format:"n",spinners:!0,placeholder:"",selectOnFocus:!1,factor:1,upArrowText:"Increase value",downArrowText:"Decrease value",label:null,size:"medium",fillMode:"solid",rounded:"medium"},events:[ui,"spin"],_editable:function(Vt){var qt=this,bn=qt.element,ii=Vt.disable,Vi=Vt.readonly,Jn=qt._text.add(bn),zt=qt.wrapper.off($e);qt._toggleText(!0),qt._upArrowEventHandler.unbind("press"),qt._downArrowEventHandler.unbind("press"),bn.off("keydown"+ft).off("keyup"+ft).off("input"+ft).off("paste"+ft),qt._inputLabel&&qt._inputLabel.off(ft),Vi||ii?(zt.addClass(ii?Xn:"").removeClass(ii?"":Xn),Jn.attr(Ot,ii).attr(en,Vi).attr(Ae,ii)):(zt.removeClass(Xn).on($e,qt._toggleHover),Jn.prop(Ot,!1).prop(en,!1).attr(Ae,!1),qt._upArrowEventHandler.bind("press",function(mn){mn.preventDefault(),qt._spin(1),qt._upArrow.addClass($t)}),qt._downArrowEventHandler.bind("press",function(mn){mn.preventDefault(),qt._spin(-1),qt._downArrow.addClass($t)}),qt.element.on("keydown"+ft,qt._keydown.bind(qt)).on("keyup"+ft,qt._keyup.bind(qt)).on("paste"+ft,qt._paste.bind(qt)).on("input"+ft,qt._inputHandler.bind(qt)),qt._inputLabel&&qt._inputLabel.on("click"+ft,qt.focus.bind(qt)))},readonly:function(Vt){this._editable({readonly:Vt===Ke||Vt,disable:!1}),this.floatingLabel&&this.floatingLabel.readonly(Vt===Ke||Vt)},enable:function(Vt){this._editable({readonly:!1,disable:!(Vt=Vt===Ke||Vt)}),this.floatingLabel&&this.floatingLabel.enable(Vt=Vt===Ke||Vt)},setOptions:function(Vt){var qt=this;Ui.fn.setOptions.call(qt,Vt),qt.wrapper.toggleClass("k-expand-padding",!qt.options.spinners),qt._text.prop("placeholder",qt.options.placeholder),qt._placeholder(qt.options.placeholder),qt.element.attr({"aria-valuemin":qt.options.min!==Kt?qt.options.min*qt.options.factor:qt.options.min,"aria-valuemax":qt.options.max!==Kt?qt.options.max*qt.options.factor:qt.options.max}),qt.options.format=Sn(qt.options.format),qt._upArrowEventHandler.destroy(),qt._downArrowEventHandler.destroy(),qt._arrowsWrap.remove(),qt._arrows(),qt._applyCssClasses(),Vt.value!==Ke&&qt.value(Vt.value)},destroy:function(){var Vt=this;Vt._inputLabel&&(Vt._inputLabel.off(ft),Vt.floatingLabel&&Vt.floatingLabel.destroy()),Vt.element.add(Vt._text).add(Vt._upArrow).add(Vt._downArrow).off(ft),Vt._upArrowEventHandler.destroy(),Vt._downArrowEventHandler.destroy(),Vt._form&&Vt._form.off("reset",Vt._resetHandler),Ui.fn.destroy.call(Vt)},min:function(Vt){return this._option("min",Vt)},max:function(Vt){return this._option("max",Vt)},step:function(Vt){return this._option("step",Vt)},value:function(Vt){var qt=this;if(Vt===Ke)return qt._value;(Vt=qt._parse(Vt))===qt._adjust(Vt)&&(qt._update(Vt),qt._old=qt._value)},focus:function(){this._focusin()},_adjust:function(Vt){var bn=this.options,ii=bn.min,Vi=bn.max;return Vt===Kt||(ii!==Kt&&Vt<ii?Vt=ii:Vi!==Kt&&Vt>Vi&&(Vt=Vi)),Vt},_arrows:function(){var qt,Vt=this,bn=function(){clearTimeout(Vt._spinning),qt.removeClass($t)},ii=Vt.options,Vi=ii.spinners;(qt=Vt.element.siblings(".k-icon-button"))[0]||(qt=Xe(xi("increase",ii.upArrowText,ii)+xi("decrease",ii.downArrowText,ii)).appendTo(Vt.wrapper),Vt._arrowsWrap=qt.wrapAll('<span class="k-input-spinner k-spin-button"/>').parent()),Vi||(qt.parent().toggle(Vi),Vt.wrapper.addClass("k-expand-padding")),Vt._upArrow=qt.eq(0),Vt._upArrowEventHandler=new ze.UserEvents(Vt._upArrow,{release:bn}),Vt._downArrow=qt.eq(1),Vt._downArrowEventHandler=new ze.UserEvents(Vt._downArrow,{release:bn})},_validation:function(){var qt=this.element;this._validationIcon=Xe("<span class='k-input-validation-icon k-icon k-i-warning k-hidden'></span>").insertAfter(qt)},_blur:function(){this._toggleText(!0),this._change(this.element.val())},_click:function(Vt){var qt=this;clearTimeout(qt._focusing),qt._focusing=setTimeout(function(){var mn,Qn,ci,bn=Vt.target,ii=St(bn)[0],Vi=bn.value.substring(0,ii),Jn=qt._format(qt.options.format),zt=Jn[","],Oi=0;zt&&(Qn=new RegExp("\\"+zt,"g"),ci=new RegExp("(-)?("+Jn.symbol+")?([\\d\\"+zt+"]+)(\\"+Jn[Be]+")?(\\d+)?")),ci&&(mn=ci.exec(Vi)),mn&&(Oi=mn[0].replace(Qn,"").length,-1!=Vi.indexOf("(")&&qt._value<0&&Oi++),qt._focusin(),St(qt.element[0],Oi),qt.selectValue()})},selectValue:function(){this.options.selectOnFocus&&this.element[0].select()},_getFactorValue:function(Vt){var bn=this.options.factor;return bn&&1!==bn&&null!==(Vt=ze.parseFloat(Vt))&&(Vt/=bn),Vt},_change:function(Vt){var qt=this;Vt=qt._getFactorValue(Vt),qt._update(Vt),qt._old!=(Vt=qt._value)&&(qt._old=Vt,qt._typing||qt.element.trigger(ui),qt.trigger(ui)),qt._typing=!1},_culture:function(Vt){return Vt||kn(this.options.culture)},_focusin:function(){this.wrapper.addClass(Je),this._toggleText(!1),this.element[0].focus()},_focusout:function(){clearTimeout(this._focusing),this.wrapper.removeClass(Je).removeClass(Ve),this._blur(),this._removeInvalidState()},_format:function(Vt,qt){var bn=this._culture(qt).numberFormat;return(Vt=Vt.toLowerCase()).indexOf("c")>-1?bn=bn.currency:Vt.indexOf("p")>-1&&(bn=bn.percent),bn},_input:function(){var zt,qt=this.options,bn=this.element.addClass(cn).show()[0],ii=bn.accessKey;(zt=this.wrapper.find(Be+cn).first()).length<2&&(zt=Xe('<input type="text"/>').attr(ze.attr("validate"),!1).insertBefore(bn));try{bn.setAttribute("type","text")}catch{bn.type="text"}zt[0].title=bn.title,zt[0].tabIndex=bn.tabIndex,zt[0].style.cssText=bn.style.cssText,zt.prop("placeholder",qt.placeholder),ii&&(zt.attr("accesskey",ii),bn.accessKey=""),this._text=zt.addClass(bn.className).attr({role:"spinbutton","aria-valuemin":qt.min!==Kt?qt.min*qt.factor:qt.min,"aria-valuemax":qt.max!==Kt?qt.max*qt.factor:qt.max,autocomplete:"off"})},_keydown:function(Vt){var qt=this,bn=Vt.keyCode;bn===it.NUMPAD_DOT&&(qt._numPadDot=!0),bn!=it.DOWN?bn!=it.UP?bn!=it.ENTER?(bn!=it.TAB&&(qt._typing=!0),qt._cachedCaret=St(qt.element)):qt._change(qt.element.val()):qt._step(1):qt._step(-1)},_keyup:function(){this._removeInvalidState()},_inputHandler:function(){var Vt=this.element,qt=Vt.val(),bn=this.options.min,ii=this._format(this.options.format),Vi=ii[Be],Jn=null!==bn&&bn>=0&&"-"===qt.charAt(0);this._numPadDot&&Vi!==Be&&(qt=qt.replace(Be,Vi),this.element.val(qt),this._numPadDot=!1),this._isPasted&&this._parse(qt)&&(qt=this._parse(qt).toString().replace(Be,ii[Be])),this._numericRegex(ii).test(qt)&&!Jn?this._oldText=qt:(this._blinkInvalidState(),this.element.val(this._oldText),this._cachedCaret&&(St(Vt,this._cachedCaret[0]),this._cachedCaret=null)),this._isPasted=!1},_blinkInvalidState:function(){var Vt=this;Vt._addInvalidState(),clearTimeout(Vt._invalidStateTimeout),Vt._invalidStateTimeout=setTimeout(Vt._removeInvalidState.bind(Vt),100)},_addInvalidState:function(){this.wrapper.addClass(Nn),this._validationIcon.removeClass("k-hidden")},_removeInvalidState:function(){this.wrapper.removeClass(Nn),this._validationIcon.addClass("k-hidden"),this._invalidStateTimeout=null},_numericRegex:function(Vt){var qt=this,bn=Vt[Be],ii=qt.options.decimals,Vi="*";return bn===Be&&(bn="\\"+bn),ii===Kt&&(ii=Vt.decimals),0===ii&&qt.options.restrictDecimals?He:(qt.options.restrictDecimals&&(Vi="{0,"+ii+"}"),qt._separator!==bn&&(qt._separator=bn,qt._floatRegExp=new RegExp("^(-)?(((\\d+("+bn+"\\d"+Vi+")?)|("+bn+"\\d"+Vi+")))?$")),qt._floatRegExp)},_paste:function(Vt){var qt=this,bn=Vt.target,ii=bn.value,Vi=qt._format(qt.options.format);qt._isPasted=!0,setTimeout(function(){var Jn=qt._parse(bn.value);Jn===Kt?qt._update(ii):(bn.value=Jn.toString().replace(Be,Vi[Be]),(qt._adjust(Jn)!==Jn||!qt._numericRegex(Vi).test(bn.value))&&(ii=qt._getFactorValue(bn.value),qt._update(ii)))})},_option:function(Vt,qt){var ii=this.element,Vi=this.options;if(qt===Ke)return Vi[Vt];((qt=this._parse(qt))||"step"!==Vt)&&(Vi[Vt]=qt,ii.add(this._text).attr("aria-value"+Vt,qt),ii.attr(Vt,qt))},_spin:function(Vt,qt){var bn=this;qt=qt||500,clearTimeout(bn._spinning),bn._spinning=setTimeout(function(){bn._spin(Vt,50)},qt),bn._step(Vt)},_step:function(Vt){var qt=this,bn=qt.element,ii=qt._value,Vi=qt._parse(bn.val())||0,Jn=qt.options.decimals||2;Co()!=bn[0]&&qt._focusin(),qt.options.factor&&Vi&&(Vi/=qt.options.factor),Vi=+(Vi+qt.options.step*Vt).toFixed(Jn),Vi=qt._adjust(Vi),qt._update(Vi),qt._typing=!1,ii!==Vi&&qt.trigger("spin")},_toggleHover:function(Vt){Xe(Vt.currentTarget).toggleClass(Ve,"mouseenter"===Vt.type)},_toggleText:function(Vt){this._text.toggle(Vt),Vt?this._text.removeAttr("aria-hidden"):this._text.attr("aria-hidden","true"),this.element.toggle(!Vt)},_parse:function(Vt,qt){return Vn(Vt,this._culture(qt),this.options.format)},_round:function(Vt,qt){return(this.options.round?ze._round:Wn)(Vt,qt)},_update:function(Vt){var Qn,ci,qt=this,bn=qt.options,ii=bn.factor,Vi=bn.format,Jn=bn.decimals,zt=qt._culture(),mn=qt._format(Vi,zt);Jn===Kt&&(Jn=mn.decimals),(ci=(Vt=qt._parse(Vt,zt))!==Kt)&&(Vt=parseFloat(qt._round(Vt,Jn),10)),qt._value=Vt=qt._adjust(Vt),qt._placeholder(ze.toString(Vt,Vi,zt)),ci?(ii&&(Vt=parseFloat(qt._round(Vt*ii,Jn),10)),-1!==(Vt=Vt.toString()).indexOf("e")&&(Vt=qt._round(+Vt,Jn)),Qn=Vt,Vt=Vt.replace(Be,mn[Be])):(Vt=null,Qn=null),qt.element.val(Vt),qt._oldText=Vt,qt.element.add(qt._text).attr("aria-valuenow",Qn)},_placeholder:function(Vt){var qt=this._text;qt.val(Vt),!Dn&&!Vt&&qt.val(this.options.placeholder),qt.attr("title",this.element.attr("title")||qt.val())},_label:function(){var Vi,Jn,Vt=this,qt=Vt.element,bn=Vt.options,ii=qt.attr("id");null!==bn.label&&(Vi=!!On(bn.label)&&bn.label.floating,Jn=On(bn.label)?bn.label.content:bn.label,Vi&&(Vt._floatingLabelContainer=Vt.wrapper.wrap("<span></span>").parent(),Vt.floatingLabel=new ze.ui.FloatingLabel(Vt._floatingLabelContainer,{widget:Vt})),ze.isFunction(Jn)&&(Jn=Jn.call(Vt)),Jn||(Jn=""),ii||(ii=bn.name+"_"+ze.guid(),qt.attr("id",ii)),Vt._inputLabel=Xe("<label class='k-label k-input-label' for='"+ii+"'>"+Jn+"</label>'").insertBefore(Vt.wrapper),Vt.element.attr("disabled")===Ke&&Vt.element.attr("readonly")===Ke&&Vt._inputLabel.on("click"+ft,Vt.focus.bind(Vt)))},_wrapper:function(){var ii,qt=this.element,bn=qt[0];(ii=qt.parents(".k-numerictextbox")).is("span.k-numerictextbox")||(ii=qt.hide().wrap("<span/>").parent()),ii[0].style.cssText=bn.style.cssText,bn.style.width="",this.wrapper=ii.addClass("k-numerictextbox k-input").addClass(bn.className).removeClass("input-validation-error").css("display","")},_reset:function(){var Vt=this,qt=Vt.element,bn=qt.attr("form"),ii=bn?Xe("#"+bn):qt.closest("form");ii[0]&&(Vt._resetHandler=function(){setTimeout(function(){Vt.value(qt[0].value),Vt.max(Vt._initialOptions.max),Vt.min(Vt._initialOptions.min)})},Vt._form=ii.on("reset",Vt._resetHandler))}});function xi(Vt,qt,bn){return Dt.renderButton('<button role="button" tabindex="-1" unselectable="on" class="k-spinner-'+("increase"===Vt?"increase":"decrease")+'" aria-label="'+qt+'" title="'+qt+'"></button>',Fi({},bn,{icon:"increase"===Vt?"arrow-n":"arrow-s",shape:null,rounded:null}))}function Wn(Vt,qt){var bn=parseFloat(Vt,10).toString().split(Be);return bn[1]&&(bn[1]=bn[1].substring(0,qt)),bn.join(Be)}return ze.cssProperties.registerPrefix("NumericTextBox","k-input-"),ze.cssProperties.registerValues("NumericTextBox",[{prop:"rounded",values:ze.cssProperties.roundedValues.concat([["full","full"]])}]),Hn.plugin(Ci),window.kendo}.apply(mt={},ur=[e,k,Gt,F]))&&(xn=mt),void 0===(ut=function(){var vn=window.kendo.jQuery,Ke=window.kendo,ze=Ke.ui,St=ze.Widget,it=Ke.parseColor,Dt=Ke.ui.Popup.TabKeyTrap,Hn=vn.extend,Ui=".kendoColorTools",Co="keydown"+Ui,Vn=St.extend({init:function(kn,ui){var Ot=this;St.fn.init.call(Ot,kn,ui),ui=Ot.options,(kn=Ot.element).is("input")?(Ot._initialValue(),Ot._preventDefaultLabelClick()):Ot._value=it(ui.value),Ot._tabIndex=kn.attr("tabIndex")||0,ui._standalone&&(Ot._triggerSelect=Ot._triggerChange)},options:{name:"ColorSelector",ARIATemplate:'Current selected color is #=data || "none"#',value:null,_standalone:!0},events:["change","select","forceSelect","cancel"],color:function(kn){return void 0!==kn&&(this._value=it(kn),this.element.is("input")&&this._updateInput(this._value),this._updateUI(this._value)),this._value},value:function(kn){return(kn=this.color(kn))&&(kn=this.options.opacity?kn.toCssRgba():kn.toCss()),kn||null},enable:function(kn){0===arguments.length&&(kn=!0),this.element.is("input")&&this.element.attr("disabled",!kn),this.wrapper.toggleClass("k-disabled",!kn),this._onEnable(kn)},_attachFocusEvents:function(){this.wrapper.on(Co,this._navKeydown.bind(this)).on("focusout"+Ui,this._navFocusout.bind(this))},_initialValue:function(){var Ot=this.options.value||this.element.attr("value");Ot&&(this._value=it(Ot,!0)),this.element.val(Ot)},_innerTabindex:function(kn){this.wrapper.find(".k-draghandle, .k-button, .k-input-inner").attr("tabindex",kn)},_isInputTypeColor:function(){var kn=this.element[0];return/^input$/i.test(kn.tagName)&&/^color$/i.test(kn.type)},_navFocusout:function(){var kn=this,ui=kn.wrapper[0];setTimeout(function(){ui.contains(document.activeElement)||kn._releaseInnerFocus()})},_navKeydown:function(kn){var ui=this.wrapper;kn.keyCode===Ke.keys.ENTER&&ui.attr("tabindex")?(kn.preventDefault(),this._trapInnerFocus()):kn.keyCode===Ke.keys.ESC&&void 0===ui.attr("tabindex")&&(this._releaseInnerFocus(),this.wrapper.trigger("focus"))},_releaseInnerFocus:function(){this._tabKeyTrap.removeTrap(),this.wrapper.attr("tabindex",this._tabIndex),this._innerTabindex(-1)},_select:function(kn,ui){var Ot=this._value;kn=this.color(kn),ui||(kn&&(!Ot||!kn.equals(Ot))||null===kn&&kn!==Ot?(this.element.trigger("change"),this.trigger("change",{value:this.value()})):this._standalone||this.trigger("cancel"))},_navigation:function(){var kn=this.value();kn&&kn.indexOf("rgba")>-1&&(kn=kn.replace("rgba","RGBA")),this.options._otOfPicker?(this._innerTabindex(-1),this._attachFocusEvents(),this._tabKeyTrap=new Dt(this.wrapper),this._ariaTemplate=Ke.template(this.options.ARIATemplate),this.wrapper.attr({"aria-label":this._ariaTemplate(kn||""),tabindex:this._tabIndex})):(this.wrapper.removeAttr("tabindex"),this.wrapper.removeAttr("aria-label"),this.wrapper.removeAttr("role"),this.wrapper.removeAttr("aria-keyshortcuts"))},_trapInnerFocus:function(){this._innerTabindex(0),this.wrapper.removeAttr("tabindex"),this.wrapper.find(".k-hsv-draghandle").trigger("focus"),this._tabKeyTrap.trap()},_triggerSelect:function(kn){Dn(this,"select",kn)},_triggerChange:function(kn){Dn(this,"change",kn)},destroy:function(){this.element&&this.element.off(Ui),this.wrapper&&(this.wrapper.off(Co),this.wrapper.off(Ui).find("*").off(Ui),this.wrapper=null),St.fn.destroy.call(this)},_preventDefaultLabelClick:function(){var kn=this.element,ui=kn.closest("label"),Ot=kn.attr("id");Ot&&(ui=ui.add('label[for="'+Ot+'"]')),ui.on("click",function(en){en.preventDefault()})},_updateUI:vn.noop,_updateInput:function(kn){var Ot,ui="";kn&&(ui=this._isInputTypeColor()||1==kn.a?kn.toCss():kn.toCssRgba(),this.element.val(ui)),this.options._otOfPicker&&(this._ariaTemplate||(this._ariaTemplate=Ke.template(this.options.ARIATemplate)),(Ot=this.value())&&Ot.indexOf("rgba")>-1&&(Ot=Ot.replace("rgba","RGBA")),this.wrapper.attr("aria-label",this._ariaTemplate(Ot||"")))},_selectOnHide:function(){return null},_cancel:function(){this.trigger("cancel")}});function Dn(kn,ui,Ot){((Ot=it(Ot))&&!Ot.equals(kn.color())||Ot!==kn.color())&&("change"==ui&&(kn._value=Ot,kn._updateInput(kn._value)),Ot&&1!=Ot.a?Ot=Ot.toCssRgba():Ot&&(Ot=Ot.toCss()),kn.trigger(ui,{value:Ot}))}return Hn(ze,{colorpicker:{ColorSelector:Vn}}),window.kendo}.apply(Wt={},ur=[e]))&&(ut=Wt),void 0===(dn=function(){var vn=window.kendo.jQuery,Xe=void 0,Ke=kendo.ui.colorpicker,ze=vn.extend,St=kendo.Color,it=kendo.parseColor;function Sn(an,$e){return function Co(an,$e){return(Math.max(an,$e)+.05)/(Math.min(an,$e)+.05)}(Vn(Dn(an,$e)),Vn(Dn($e,{r:0,g:0,b:0,a:1})))}function Vn(an){var $e=[an.r,an.g,an.b].map(function(Je){return(Je/=255)<=.03928?Je/12.92:Math.pow((Je+.055)/1.055,2.4)});return.2126*$e[0]+.7152*$e[1]+.0722*$e[2]}function Dn(an,$e){var Je=kn(an.r,0,255),Ve=kn(an.g,0,255),Ge=kn(an.b,0,255),Be=kn(an.a,0,1),At=kn($e.r,0,255),Rt=kn($e.g,0,255),Pt=kn($e.b,0,255);return{r:Math.round((1-Be)*At+Be*Je),g:Math.round((1-Be)*Rt+Be*Ve),b:Math.round((1-Be)*Pt+Be*Ge)}}function kn(an,$e,Je){return!function ui(an){return null!==an&&an!==Xe}(an)||isNaN(an)||an<=$e?$e:an>=Je?Je:an}function en(an,$e){if(0===an.length)return"";var Ve=an.reduce(function(Ge,Be,At,Rt){return 0===At?kendo.format("M {0},{1}",Be[0],Be[1]):kendo.format("{0} {1}",Ge,$e(Be,At,Rt))},"");return kendo.format('<path d="{0}" fill="none" stroke="white" stroke-width="1"/>',Ve)}function ft(an,$e){var Je=$e[0]-an[0],Ve=$e[1]-an[1];return{length:Math.sqrt(Math.pow(Je,2)+Math.pow(Ve,2)),angle:Math.atan2(Ve,Je)}}return ze(Ke,{contrastToolUtils:{getContrastFromTwoRGBAs:Sn,renderSvgCurveLine:function Ot(an,$e,Je){var Ve=function($t,Xn,Nn,Ae,He){var Kt=(Nn+Ae)/2,On=ze({},$e,{s:Xn/an.width,v:1-Kt/an.height}),Fi=Sn(it(function Nt(an){var $e=kn(an.h,0,359.9),Je=kn(an.s,0,1),Ve=kn(an.v,0,1),Ge=kn(an.a,0,1);return St.fromHSV($e,Je,Ve,Ge).toCssRgba()}(On)).toBytes(),it(Je).toBytes());return Nn+.5>Ae?Fi<$t+1&&Fi>$t-1?Kt:null:He(Fi,$t)?Ve($t,Xn,Nn,Ae-(Ae-Nn)/2,He):Ve($t,Xn,Nn+(Ae-Nn)/2,Ae,He)},Ge=function($t,Xn){return $t>Xn},Be=function($t,Xn){return $t<Xn},At=function($t,Xn,Nn){for(var Ae=[],He=0;He<=an.width;He+=an.width/Xn){var Kt=Ve($t,He,0,an.height,Nn?Be:Ge);null!==Kt&&Ae.push([He,Kt])}return Ae},Rt=function cn(an){return function($e,Je,Ve){var Ge=an(Ve[Je-1],Ve[Je-2],$e),Be=an($e,Ve[Je-1],Ve[Je+1],!0);return kendo.format("C {0},{1} {2},{3} {4},{5}",Ge[0],Ge[1],Be[0],Be[1],$e[0],$e[1])}}(function Ht(an){return function($e,Je,Ve,Ge){var Pt=an(Je||$e,Ve||$e),$t=Pt.angle+(Ge?Math.PI:0),Xn=.1*Pt.length;return[$e[0]+Math.cos($t)*Xn,$e[1]+Math.sin($t)*Xn]}}(ft));return'<svg xmlns="http://www.w3.org/2000/svg" style="position: absolute; overflow: visible; pointer-events: none; left: 0px; top: 0px; z-index: 3;" >'+(en(At(4.5,16,!1),Rt)+en(At(4.5,16,!0),Rt)+en(At(7,16,!1),Rt)+en(At(7,16,!0),Rt))+"</svg>"}}}),window.kendo}.apply(sn={},ur=[e]))&&(dn=sn),void 0===(fn=function(){var Xe=window.kendo.jQuery,ze=window.kendo,St=ze.ui,it=ze.Observable,Dt=ze.parseColor,Hn=Xe.extend,Ui=ze.Color,Co=ze.keys,Vn="#ffffff",Dn="#000000",ui="keydown.kendoColorTools",Ot=St.colorpicker.ColorSelector,en=St.colorpicker.contrastToolUtils;function cn(an){an.preventDefault()}var ft=it.extend({init:function(an,$e){var Je=this;Je.element=an,Je.options=$e,Je._viewModel=ze.observable({switchMode:Je.switchMode.bind(Je),keydown:Je.keydown.bind(Je),mode:function(Ve){return Ve===this.get("format")},format:$e.format,formats:$e.formats,rgb:null,hex:function(){return null!==this.get("rgb")&&this.get("rgb").toCss({alpha:$e.opacity})}}),Je._changeHandler=Je.change.bind(Je),Je._viewModel.bind("change",Je._changeHandler),Je._render(),Je.element.on(ui,Je.keydown.bind(Je)),it.fn.init.call(Je)},_template:ze.template('# if (options.formats && options.formats.length > 1) { #<div class="k-vstack"><button class="k-colorgradient-toggle-mode" data-#:ns#role="button" data-#:ns#icon="arrows-kpi" data data-#:ns#bind="click: switchMode" data-#:ns#fill-mode="flat" data-#:ns#size="#: options.size #" title="#: options.messages.toggleFormat #"></button></div># } ## if (options.formats && options.formats.indexOf("hex") >= 0) { #<div class="k-vstack k-flex-1" data-#:ns#bind="visible: mode(\'hex\')"><input type="text" data-#:ns#bind="value: hex" data-#:ns#role="textbox" data-#:ns#size="#: options.size #" tabindex="#:options.tabindex#"  aria-label="#: options.messages.hex #"/><label class="k-colorgradient-input-label">HEX</label></div># } ## if (options.formats && options.formats.indexOf("rgb") >= 0) { #<div  class="k-vstack" data-#:ns#bind="visible: mode(\'rgb\')"><input tabindex="#:options.tabindex#" data-#:ns#bind="value: rgb.r" data-#:ns#role="numerictextbox" data-#:ns#size="#: options.size #" data-#:ns#max="255" data-#:ns#min="0" data-#:ns#decimals="0" data-#:ns#spinners="false" data-#:ns#format="n0"  aria-label="#: options.messages.red #" /><label class="k-colorgradient-input-label">R</label></div><div  class="k-vstack" data-#:ns#bind="visible: mode(\'rgb\')"><input tabindex="#:options.tabindex#" data-#:ns#bind="value: rgb.g" data-#:ns#role="numerictextbox" data-#:ns#size="#: options.size #" data-#:ns#max="255" data-#:ns#min="0" data-#:ns#decimals="0" data-#:ns#spinners="false" data-#:ns#format="n0"  aria-label="#: options.messages.green #" /><label class="k-colorgradient-input-label">G</label></div><div  class="k-vstack" data-#:ns#bind="visible: mode(\'rgb\')"><input tabindex="#:options.tabindex#" data-#:ns#bind="value: rgb.b" data-#:ns#role="numerictextbox" data-#:ns#size="#: options.size #" data-#:ns#max="255" data-#:ns#min="0" data-#:ns#decimals="0" data-#:ns#spinners="false" data-#:ns#format="n0"  aria-label="#: options.messages.blue #"/><label class="k-colorgradient-input-label">B</label></div>#if(options.opacity){#<div  class="k-vstack" data-#:ns#bind="visible: mode(\'rgb\')"><input tabindex="#:options.tabindex#" data-#:ns#bind="value: rgb.a" data-#:ns#role="numerictextbox" data-#:ns#size="#: options.size #" data-#:ns#step="0.1" data-#:ns#max="1" data-#:ns#min="0" data-#:ns#decimals="1" data-#:ns#spinners="false" data-#:ns#format="n1"  aria-label="#: options.messages.alpha #" /><label class="k-colorgradient-input-label">A</label></div># } ## } #'),destroy:function(){var an=this;an._viewModel.unbind("change",an._changeHandler),ze.unbind(an.element),ze.destroy(an.element),an.element.off(ui),delete an._viewModel,delete an._changeHandler},change:function(an){var $e=this;an.field.indexOf("rgb")>=0?($e._color=$e._tryParseColor($e._viewModel.rgb.toCssRgba()),$e._viewModel.set("hex",$e._color.toCss({alpha:$e.options.opacity}))):"hex"===an.field&&($e._color=$e._tryParseColor(an.sender[an.field]),$e._viewModel.set("rgb",$e._color)),$e._preventChangeEvent||$e.trigger("change",{value:$e._color})},keydown:function(an){var Je=Xe(an.target).data("kendoTextBox");an.keyCode===Co.ENTER&&Xe(an.target).is("input")&&(Je&&Je._change&&Je._change(),this.trigger("change",{value:this._color}),this.trigger("select",{value:this._color}))},reset:function(){this._preventChangeEvent=!0,this._viewModel.set("rgb",Dt(Dn)),delete this._preventChangeEvent},switchMode:function(){var $e=this._viewModel,Ve=$e.formats.indexOf($e.format)+1;Ve=Ve>=$e.formats.length?0:Ve,this._preventChangeEvent=!0,this._viewModel.set("format",$e.formats[Ve]),delete this._preventChangeEvent},value:function(an){var $e=this;$e._color=an&&an.toBytes()||Dt(Dn),$e._preventChangeEvent=!0,$e._viewModel.set("rgb",$e._color),delete $e._preventChangeEvent},_render:function(){var an=this;an.element.append(an._template({ns:ze.ns,guid:ze.guid(),options:an.options})).parent(),ze.bind(an.element,an._viewModel),an.element.attr("data-"+ze.ns+"stop","stop")},_tryParseColor:function(an){try{an=Dt(an)||this._color}catch{an=this._color}return an}}),Nt=Ot.extend({init:function(an,$e){var Ve,Je=this;Ot.fn.init.call(Je,an,$e),($e=Je.options=ze.deepExtend({},Je.options,$e)).messages.previewInput&&($e.messages.hex=$e.messages.previewInput),$e.messages=$e.messages?Xe.extend(Je.options.messages,$e.messages):Je.options.messages,an=Je.element,Je._wrapper(),Je._sliders(),Je._hsvArea(),Ve=Je._value,Je._gradientInputs(),Je._updateUI(Ve),Je._navigation()},options:{name:"ColorGradient",opacity:!1,hsvDragARIATemplate:'Color well with two-dimensional slider for selecting saturation and value. Selected color is #=data || "none"#',input:!0,format:"hex",formats:["rgb","hex"],contrastTool:!1,size:"medium",messages:{contrastRatio:"Contrast ratio:",fail:"Fail",pass:"Pass",hex:"HEX",toggleFormat:"Toggle format",red:"Red channel",green:"Green channel",blue:"Blue channel",alpha:"Alpha channel"},_otOfPicker:!0},_template:ze.template('<div class="k-colorgradient-canvas k-hstack"><div class="k-hsv-rectangle"><div class="k-hsv-gradient"></div><div role="slider" aria-orientation="undefined" class="k-hsv-draghandle k-draghandle"></div></div><div class="k-hsv-controls k-hstack"><input class="k-hue-slider k-colorgradient-slider" /># if (opacity) { #<input class="k-alpha-slider k-colorgradient-slider" /># } #</div></div># if (input) { #<div class="k-colorgradient-inputs k-hstack"></div># } ## if (contrastTool) { #<div class="k-colorgradient-color-contrast k-vbox"></div># } #'),focus:function(){this._hsvHandle.focus()},setBackgroundColor:function(an){var $e=this;$e.options.contrastTool&&($e.options.contrastTool=Xe.isPlainObject($e.options.contrastTool)?Hn({},$e.options.contrastTool,{backgroundColor:an}):{backgroundColor:an},$e._updateColorContrast($e.color()||Dt(Vn)))},_getHSV:function(an,$e,Je,Ve){var Ge=this,Be=Ge._hsvRect,At=Be.width(),Rt=Be.height(),Pt=this._hsvHandle.position();return At&&Rt?(null==an&&(an=Ge._hueSlider.value()),null==$e&&($e=Pt.left/At),null==Je&&(Je=1-Pt.top/Rt),null==Ve&&(Ve=Ge._opacitySlider?Ge._opacitySlider.value()/100:1),Ui.fromHSV(an,$e,Je,Ve)):Ge.color()?Ge.color().toHSV():Dt(Dn)},_gradientInputs:function(){var an=this;an._colorgradientInputs.length&&(an._colorInput=new ft(an._colorgradientInputs,Hn({},an.options,{tabindex:0})),an._colorInput.bind("change",function(Je){an._updateUI(Je.value,!0)}),an._colorInput.bind("select",function(Je){var Ve=Dt(Je.value);an._select(Ve),an.trigger("forceSelect",{value:an.value()})}))},_hsvArea:function(){var an=this,Je=an.wrapper.find(".k-hsv-rectangle"),Ve=Je.find(".k-draghandle").attr("tabIndex",0).on(ui,function Ht(an,$e){return function(){return an.apply($e,arguments)}}(an._hsvKeydown,an)),Ge=this.value();function Be(At,Rt){var Pt=this.offset,$t=At-Pt.left,Xn=Rt-Pt.top,Nn=this.width,Ae=this.height;an._svChange(($t=$t<0?0:$t>Nn?Nn:$t)/Nn,1-(Xn=Xn<0?0:Xn>Ae?Ae:Xn)/Ae)}Ge&&Ge.indexOf("rgba")>-1&&(Ge=Ge.replace("rgba","RGBA")),this._hsvDragAriaTemplate||(this._hsvDragAriaTemplate=ze.template(this.options.hsvDragARIATemplate)),Ve.attr("aria-label",this._hsvDragAriaTemplate(Ge||"")),an._hsvEvents=new ze.UserEvents(Je,{global:!0,press:function(At){this.offset=ze.getOffset(Je),this.width=Je.width(),this.height=Je.height(),Ve.focus(),Be.call(this,At.x.location,At.y.location)},start:function(){Je.addClass("k-dragging"),Ve.focus()},move:function(At){At.preventDefault(),Be.call(this,At.x.location,At.y.location)},end:function(){Je.removeClass("k-dragging")}}),an._hsvRect=Je,an._hsvHandle=Ve},_hsvKeydown:function(an){var $e=this;function Je(Ge,Be){var At=$e._getHSV();At[Ge]+=Be*(an.shiftKey?.01:.05),At[Ge]<0&&(At[Ge]=0),At[Ge]>1&&(At[Ge]=1),$e._updateUI(At),cn(an)}function Ve(Ge){var Be=$e._getHSV();Be.h+=Ge*(an.shiftKey?1:5),Be.h<0&&(Be.h=0),Be.h>359&&(Be.h=359),$e._updateUI(Be),cn(an)}switch(an.keyCode){case Co.LEFT:an.ctrlKey?Ve(-1):Je("s",-1);break;case Co.RIGHT:an.ctrlKey?Ve(1):Je("s",1);break;case Co.UP:Je(an.ctrlKey&&$e._opacitySlider?"a":"v",1);break;case Co.DOWN:Je(an.ctrlKey&&$e._opacitySlider?"a":"v",-1);break;case Co.ENTER:$e._select($e._getHSV());break;case Co.F2:$e._colorInput.element.find("input").trigger("focus").select();break;case Co.ESC:$e._cancel()}},_onEnable:function(an){var $e=this.wrapper;this._hueSlider.enable(an),this._opacitySlider&&this._opacitySlider.enable(an),$e.find("input").attr("disabled",!an),this.options._standalone&&(an?$e.removeAttr("aria-disabled"):$e.attr("aria-disabled",!0))},_reset:function(){this._colorInput&&this._colorInput.reset(),this._resetHsv(),this._resetColorContrast()},_resetColorContrast:function(){var $e=this.options.contrastTool;this._contrastTool.length&&this._updateColorContrast(Dt($e.backgroundColor?$e.backgroundColor:Vn))},_resetHsv:function(){var $e=Dt(Dn);this._updateHsv($e)},_sliders:function(){var an=this,$e=an.wrapper,Je=$e.find(".k-hue-slider"),Ve=$e.find(".k-alpha-slider");function Ge(At){an._updateUI(an._getHSV(At.value,null,null,null))}function Be(At){an._updateUI(an._getHSV(null,null,null,At.value/100))}Je.attr("aria-label","hue"),an._hueSlider=Je.kendoSlider({min:0,max:360,tickPlacement:"none",showButtons:!1,orientation:"vertical",slide:Ge,change:Ge}).data("kendoSlider"),Ve.attr("aria-label","opacity"),an._opacitySlider=Ve.kendoSlider({min:0,max:100,tickPlacement:"none",showButtons:!1,orientation:"vertical",slide:Be,change:Be}).data("kendoSlider")},_svChange:function(an,$e){var Je=this._getHSV(null,an,$e,null);this._updateUI(Je)},_updateColorContrast:function(an){var $e=this,Je=$e.options.contrastTool,Ve=Dt(Je.backgroundColor?Je.backgroundColor:Vn),Ge=en.getContrastFromTwoRGBAs(Dt(an.toCssRgba()),Ve),Be=ze.template('<div class="k-contrast-ratio"><span class="k-contrast-ratio-text">#:messages.contrastRatio# #:kendo.toString(ratio, "n2")#</span><span class="k-contrast-validation k-text-success">#if (ratio > 4.5) {#<span class="k-icon k-i-check"></span>#}##if (ratio > 7) {#<span class="k-icon k-i-check"></span>#}#</span></div>'),At=ze.template('<div><span>#:level#: #:limit# </span>#if (ratio > limit) {#<span class="k-contrast-validation k-text-success">#:messages.pass# <span class="k-icon k-i-check"></span></span>#} else {#<span class="k-contrast-validation k-text-error">#:messages.fail# <span class="k-icon k-i-close"></span></span>#}#</div>'),Rt="";Rt+=Be({messages:$e.options.messages,ratio:Ge}),Rt+=At({messages:$e.options.messages,ratio:Ge,limit:4.5,level:"AA"}),Rt+=At({messages:$e.options.messages,ratio:Ge,limit:7,level:"AAA"}),$e._contrastTool.find(".k-contrast-ratio, div").remove(),$e._contrastTool.append(Rt),$e._updateContrastSvg(Ve)},_updateContrastSvg:function(an){var Be,Je=this._hsvRect,Ve="k-color-contrast-svg",Ge={width:Je.width(),height:Je.height()};!Ge.width||!Ge.height||(Be=Xe(en.renderSvgCurveLine(Ge,this._getHSV(),an)).addClass(Ve),Je.find("."+Ve).remove(),Je.append(Be))},_updateHsv:function(an){var $e=this,Je=$e._hsvRect;an=an.toHSV(),$e._hsvHandle.css({left:an.s*Je.width()+"px",top:(1-an.v)*Je.height()+"px"}),$e._hueElements.css("background-color",Ui.fromHSV(an.h,1,1,1).toCss()),$e._hueSlider.value(an.h),$e._opacitySlider&&($e._opacitySlider.wrapper.find(".k-slider-track").css("background","linear-gradient(to top, transparent, "+Ui.fromHSV(an.h,1,1,1).toCss()),$e._opacitySlider.value(100*an.a)),$e._updateHsvAria(an.s,an.v)},_updateHsvAria:function(an,$e){var Je=this.value();Je&&Je.indexOf("rgba")>-1&&(Je=Je.replace("rgba","RGBA")),this._hsvHandle.attr({"aria-label":this._hsvDragAriaTemplate(Je||""),"aria-valuenow":Math.round(100*an),"aria-valuetext":"saturation: "+Math.round(100*an)+"%, value: "+Math.round(100*$e)+"%"})},_updateUI:function(an,$e){var Je=this;an?(!$e&&Je._colorInput&&Je._colorInput.value(an),Je._triggerSelect(an),Je._updateHsv(an),Je._contrastTool.length&&Je._updateColorContrast(an)):Je._reset()},_wrapper:function(){var $e,an=this.options;($e=this.element.is("input")?this.element.addClass("k-hidden").wrap("<div>").parent():this.element).addClass("k-colorgradient").attr({role:"textbox","aria-keyshortcuts":"Enter"}).append(this._template(an)),this._hueElements=Xe(".k-hsv-rectangle, .k-alpha-slider .k-slider-track",$e),this._colorgradientInputs=Xe(".k-colorgradient-inputs",$e),this._contrastTool=Xe(".k-colorgradient-color-contrast",$e),this.wrapper=$e},destroy:function(){this._hsvEvents.destroy(),this._hueSlider.destroy(),this._opacitySlider&&this._opacitySlider.destroy(),this._colorInput&&this._colorInput.destroy(),this._hueSlider=this._opacitySlider=this._hsvRect=this._hsvHandle=this._hueElements=this._selectedColor=this._colorAsText=this._contrastTool=null,Ot.fn.destroy.call(this)}});return St.plugin(Nt),window.kendo}.apply(yi={},ur=[e,A,dn]))&&(fn=yi),void 0===(nn=function(){var vn=window.kendo.jQuery,Ke=window.kendo,ze=Ke.ui,St=Ke.parseColor,it=Ke.keys,Dt=".",Hn="background-color",Ui="k-selected",Co="k-focus",Sn="k-colorpalette-tile",kn=".kendoColorTools",ui="focus"+kn,Ot="click"+kn,en="keydown"+kn,cn="blur"+kn,Ht=ze.colorpicker.ColorSelector;function ft(Je){Je.preventDefault()}function Nt(Je,Ve){return function(){return Je.apply(Ve,arguments)}}var $e=Ht.extend({init:function(Je,Ve){var Ge=this;Ht.fn.init.call(Ge,Je,Ve),Ge._tabIndex=this.element.attr("tabindex")||0,Ge._wrapper(),Ge._selectedID=((Ve=Ge.options).ariaId||Ke.guid())+"_selected",Ge._ariaTemplate=Ke.template(Ge.options.ARIATemplate),Ge._value&&(Ge._updateUI(Ge._value),Ge.wrapper.find(Dt+Co).removeClass(Co)),Ge.wrapper.attr("aria-label",Ge._ariaTemplate(Ge.value()||"")),Ge._attachEvents()},focus:function(){this.wrapper&&!this.wrapper.is("[unselectable='on']")&&this.wrapper.trigger("focus")},options:{name:"ColorPalette",columns:10,tileSize:null,palette:"basic"},_attachEvents:function(){var Je=this;Je.wrapper.on(Ot,Dt+Sn,function(Ve){Je._select(Ve.currentTarget)}).on(en,Nt(Je._keydown,Je)).on(cn,function(){Je.wrapper.find(Dt+Sn).removeClass(Co)}).on(ui,Nt(Je._focus,Je))},_colors:function(){var Je=this.options,Ve=Je.palette||"basic";return"websafe"==Ve?(Ve="FFFFFF,FFCCFF,FF99FF,FF66FF,FF33FF,FF00FF,CCFFFF,CCCCFF,CC99FF,CC66FF,CC33FF,CC00FF,99FFFF,99CCFF,9999FF,9966FF,9933FF,9900FF,FFFFCC,FFCCCC,FF99CC,FF66CC,FF33CC,FF00CC,CCFFCC,CCCCCC,CC99CC,CC66CC,CC33CC,CC00CC,99FFCC,99CCCC,9999CC,9966CC,9933CC,9900CC,FFFF99,FFCC99,FF9999,FF6699,FF3399,FF0099,CCFF99,CCCC99,CC9999,CC6699,CC3399,CC0099,99FF99,99CC99,999999,996699,993399,990099,FFFF66,FFCC66,FF9966,FF6666,FF3366,FF0066,CCFF66,CCCC66,CC9966,CC6666,CC3366,CC0066,99FF66,99CC66,999966,996666,993366,990066,FFFF33,FFCC33,FF9933,FF6633,FF3333,FF0033,CCFF33,CCCC33,CC9933,CC6633,CC3333,CC0033,99FF33,99CC33,999933,996633,993333,990033,FFFF00,FFCC00,FF9900,FF6600,FF3300,FF0000,CCFF00,CCCC00,CC9900,CC6600,CC3300,CC0000,99FF00,99CC00,999900,996600,993300,990000,66FFFF,66CCFF,6699FF,6666FF,6633FF,6600FF,33FFFF,33CCFF,3399FF,3366FF,3333FF,3300FF,00FFFF,00CCFF,0099FF,0066FF,0033FF,0000FF,66FFCC,66CCCC,6699CC,6666CC,6633CC,6600CC,33FFCC,33CCCC,3399CC,3366CC,3333CC,3300CC,00FFCC,00CCCC,0099CC,0066CC,0033CC,0000CC,66FF99,66CC99,669999,666699,663399,660099,33FF99,33CC99,339999,336699,333399,330099,00FF99,00CC99,009999,006699,003399,000099,66FF66,66CC66,669966,666666,663366,660066,33FF66,33CC66,339966,336666,333366,330066,00FF66,00CC66,009966,006666,003366,000066,66FF33,66CC33,669933,666633,663333,660033,33FF33,33CC33,339933,336633,333333,330033,00FF33,00CC33,009933,006633,003333,000033,66FF00,66CC00,669900,666600,663300,660000,33FF00,33CC00,339900,336600,333300,330000,00FF00,00CC00,009900,006600,003300,000000",Je.columns=18):"basic"==Ve&&(Ve="000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7"),"string"==typeof Ve&&(Ve=Ve.split(",")),Array.isArray(Ve)&&(Ve=vn.map(Ve,function(Ge){return St(Ge)})),Ve},_current:function(Je){this.wrapper.find(Dt+Sn).removeClass(Co).removeAttr("id"),vn(Je).addClass(Co).attr("id",this._selectedID),this.wrapper.removeAttr("aria-activedescendant").attr("aria-activedescendant",this._selectedID)},_focus:function(){var Je=this.wrapper;0===Je.find("#"+this._selectedID).length&&this._current(Je.find(Dt+Sn).first())},_keydown:function(Je){var Ve,Pt,Be=this.wrapper.find(Dt+Sn),At=Be.filter(Dt+Co).get(0)||Be.filter(Dt+Ui).get(0),Rt=Je.keyCode;if(At&&(Pt=Array.prototype.indexOf.call(At.parentNode.children,At)),Rt==it.LEFT)Ve=At?At.previousSibling:Be[Be.length-1];else if(Rt==it.RIGHT)Ve=At?At.nextSibling:Be[0];else if(Rt==it.DOWN)Ve=At?At.parentNode.nextSibling?At.parentNode.nextSibling.children[Pt]:null:Be[0];else if(Rt==it.UP)Ve=At?At.parentNode.previousSibling?At.parentNode.previousSibling.children[Pt]:null:Be.get[Be.length-1];else if(Rt==it.ENTER){if(ft(Je),At)return this._select(At),void this.trigger("forceSelect",{value:this.value()})}else Rt==it.ESC&&this._cancel();Ve&&1!==Ve.nodeType&&(Ve=null),Ve&&(ft(Je),this._current(Ve))},_onEnable:function(Je){this.options._standalone&&(Je?(this.wrapper.attr("tabindex",this._tabIndex),this.wrapper.removeAttr("aria-disabled")):(this.wrapper.removeAttr("tabindex"),this.wrapper.attr("aria-disabled",!0)))},_select:function(Je){var Ge=this.wrapper.find(Dt+Sn);Je=vn(Je),Ht.fn._select.call(this,Je.css(Hn)),Ge.removeClass(Ui).removeAttr("aria-selected"),Je.addClass(Ui).attr("aria-selected",!0)},_template:Ke.template('<div class="k-colorpalette-table-wrap"><table class="k-colorpalette-table k-palette" role="presentation"><tr role="row"># for (var i = 0; i < colors.length; ++i) { ## var selected = colors[i].equals(value); ## if (i && i % columns == 0) { # </tr><tr role="row"> # } #<td role="gridcell" unselectable="on" style="background-color:#= colors[i].toCss() #"#= selected ? " aria-selected=true" : "" # #=(id && i === 0) ? "id=\\""+id+"\\" " : "" # class="k-colorpalette-tile#= selected ? " '+Ui+'" : "" #" aria-label="#= colors[i].toCss() #"></td># } #</tr></table></div>'),_tileSize:function(){var Ve,Ge,Je=this.options.tileSize;if(Je){if(/number|string/.test(typeof Je))Ve=Ge=parseFloat(Je);else{if("object"!=typeof Je)throw new Error("Unsupported value for the 'tileSize' argument");Ve=parseFloat(Je.width),Ge=parseFloat(Je.height)}this.wrapper.find(Dt+Sn).css({width:Ve,height:Ge})}},_updateUI:function(Je){var Ve=null,Ge=this.wrapper.find(Dt+Sn);this.wrapper.find(Dt+Sn).each(function(){var Be=St(vn(this).css(Hn));if(Be&&Be.equals(Je))return Ve=this,!1}),this._current(Ve),Ge.removeClass(Ui),Ve&&(vn(Ve).addClass(Ui),this.wrapper.attr("aria-label",this._ariaTemplate(this.value()||"")))},_wrapper:function(){var Ge,Je=this.options,Ve=this._colors();(Ge=this.element.is("input")?this.element.addClass("k-hidden").wrap("<div>").parent():this.element).addClass("k-colorpalette").attr("role","grid").append(vn(this._template({colors:Ve,columns:Je.columns,tileSize:Je.tileSize,value:this._value,id:Je.ariaId}))).attr("tabindex",this._tabIndex),this.wrapper=Ge,this._tileSize()}});return ze.plugin($e),window.kendo}.apply(Mi={},ur=[e]))&&(nn=Mi),void 0===(mi=function(){var vn=window.kendo.jQuery,Ke=window.kendo,ze=Ke.ui,St=Ke.html,it=Ke.Color,Dt=vn.extend,Hn="background-color",Co=".kendoColorTools",Sn="click"+Co,Vn="keydown"+Co,Dn=ze.colorpicker.ColorSelector,kn=Ke.keys,ui="k-no-color",Ot="k-selected",en=".k-color-preview-mask",cn="aria-pressed",Ht="aria-disabled",ft={gradient:ze.ColorGradient,palette:ze.ColorPalette},an=Dn.extend({init:function($e,Je){var Ve=this;Je&&!1===Je.autoupdate&&(Je._standalone=!1),Dn.fn.init.call(Ve,$e,Je),Je=Ve.options=Ke.deepExtend({},Ve.options,Je),$e=Ve.element,Ve._wrapper();var Ge=Ve.color();Ve._changeView(Je.view),Ve._setViewSize(),Ge?(Ve._updateUI(Ge),Ve._previousColor.children(en).css(Hn,Ge.toDisplay()),Ve._selectedColor.children(en).css(Hn,Ge.toDisplay())):(Ve._selectedColor.addClass(ui),Ve._previousColor.addClass(ui)),Ve._attachEvents(),Ve._navigation()},destroy:function(){var $e=this;Dn.fn.destroy.call(this),$e._view&&($e._view.destroy(),$e._viewsContainer.empty()),$e.element.off(Co),$e._selectedColor=$e._previousColor=$e._viewsContainer=$e._view=null},options:{name:"FlatColorPicker",opacity:!1,buttons:!1,input:!0,preview:!0,clearButton:!1,format:"hex",formats:["rgb","hex"],view:"gradient",views:["gradient","palette"],palette:null,autoupdate:!0,backgroundColor:null,columns:10,tileSize:24,messages:{apply:"Apply",cancel:"Cancel",noColor:"no color",clearColor:"Clear color",previewInput:null,contrastRatio:"Contrast ratio:",fail:"Fail",pass:"Pass",hex:"HEX",toggleFormat:"Toggle format",red:"Red",green:"Green",blue:"Blue",alpha:"Alpha",gradient:"Gradient view",palette:"Palette view"},size:"medium",_otOfPicker:!0},setBackgroundColor:function($e){this._view&&this._view.setBackgroundColor&&this._view.setBackgroundColor($e)},_attachEvents:function(){var $e=this;$e.wrapper.on(Vn,function Nt($e,Je){return function(){return $e.apply(Je,arguments)}}($e._keydown,$e)).on(Sn,".k-coloreditor-reset",function(){$e._clearColor=!0,$e._updateUI(null),$e._view.value(null)}).on(Sn,".k-coloreditor-apply",function(){$e._select($e._clearColor?null:$e._view.color())}).on(Sn,".k-coloreditor-cancel",function(){delete $e._clearColor,$e._updateUI($e.color()),$e._cancel()}).on(Sn,".k-button[data-view]",function(Je){var Ve=vn(Je.target).closest("[data-view]");Ve.is("."+Ot)||($e.wrapper.find(".k-button[data-view]").removeClass(Ot).attr(cn,!1),Ve.addClass(Ot).attr(cn,!0),$e._changeView(Ve.data("view")))})},_select:function($e){Dn.fn._select.call(this,$e),this._updatePreviousColor($e)},_updatePreviousColor:function($e){$e?(this._previousColor.removeClass(ui),this._previousColor.children(en).css(Hn,$e.toDisplay())):(this._previousColor.addClass(ui),this._previousColor.children(en).css(Hn,""))},_changeView:function($e){var Be,At,Je=this,Ve=vn.extend({},Je.options),Ge=ft[$e];Je._view&&Je._view._colorInput&&(Je.options.format=Je._view._colorInput._viewModel.format),Je.options.view=$e,delete Ve.name,delete Ve.change,delete Ve.select,delete Ve.cancel,delete Ve._standalone,Je._view&&(Be=Je._view.color(),Je._view.destroy(),Je._viewsContainer.empty()),Be&&(Be=Be.toHSV(),At=it.fromHSV(Je._cachedHue||0,Be.s,Be.v,Be.a),Je._cachedHue=Be.toHSV().h,Be=Be.equals(At)?At:Be),Ve._otOfPicker=!1,Ge&&(Je._view=new ft[$e](vn("<div></div>").appendTo(Je._viewsContainer),Ve),Je._view.value(Be),Je._view.bind("change",function(Rt){delete Je._clearColor,Je._updateUI(Rt.sender.color(),!0)}),Je._view.bind("forceSelect",function(Rt){delete Je._clearColor,Je._select(Rt.sender.color())}))},_onEnable:function($e){var Je=this;Je._view&&Je._view._onEnable($e),Je.options._standalone&&($e?Je.wrapper.removeAttr(Ht):Je.wrapper.attr(Ht,!0))},focus:function(){this._view&&this._view.focus()},_updateUI:function($e,Je){var Ve=this;$e&&$e.toDisplay?(Ve._selectedColor.removeClass(ui),Ve._selectedColor.children(en).css(Hn,$e.toDisplay())):(Ve._selectedColor.addClass(ui),Ve._selectedColor.children(en).css(Hn,"")),Ve._triggerSelect($e),Ve.options.autoupdate&&Ve._updatePreviousColor($e),Je||Ve._view.value($e)},_setViewSize:function(){var $e=this,Je=$e.wrapper[0],Ve=parseInt($e.options.tileSize.width||$e.options.tileSize,10),Ge=parseInt($e.options.tileSize.width||$e.options.tileSize,10);Je.style.setProperty("--kendo-color-preview-columns",$e.options.columns),Je.style.setProperty("--kendo-color-preview-width",Ve+"px"),Je.style.setProperty("--kendo-color-preview-height",Ge+"px")},_keydown:function($e){$e.keyCode==kn.ESC&&this._cancel()},_template:function(){var Je=this.options,Ve=Dt({},Je,{fillMode:"flat",themeColor:"base",rounded:"medium"});return Ke.template('<div class="k-coloreditor-header k-hstack"># if (views && views.length > 1) { #<div class="k-coloreditor-header-actions k-hstack"><div role="group" class="k-button-group k-button-group-flat">'+St.renderButton('<button aria-pressed="false" data-view="gradient" title="#:messages.gradient#"></button>',Dt({icon:"color-canvas"},Ve))+St.renderButton('<button aria-pressed="false" data-view="palette" title="#:messages.palette#"></button>',Dt({icon:"palette"},Ve))+'</div></div># } #<div class="k-spacer"></div><div class="k-coloreditor-header-actions k-hstack"># if (clearButton) { #'+St.renderButton('<button class="k-coloreditor-reset" title="#:messages.clearColor#"></button>',Dt({icon:"reset-color"},Ve))+'# } ## if (preview) { #<div class="k-coloreditor-preview k-vstack"><span class="k-coloreditor-preview-color k-color-preview"><span class="k-color-preview-mask"></span></span><span class="k-coloreditor-current-color k-color-preview"><span class="k-color-preview-mask"></span></span></div># } #</div></div><div class="k-coloreditor-views k-vstack"></div># if (buttons) { #<div class="k-coloreditor-footer k-actions k-hstack k-justify-content-end">'+St.renderButton('<button class="k-coloreditor-cancel" title="#:messages.cancel#">#: messages.cancel #</button>',Dt({},Ve,{fillMode:"solid"}))+St.renderButton('<button class="k-coloreditor-apply" title="#:messages.apply#">#: messages.apply #</button>',Dt({},Ve,{fillMode:"solid",themeColor:"primary"}))+"</div># } #")(Je)},_wrapper:function(){var Je,$e=this.options;(Je=this.element.is("input")?this.element.addClass("k-hidden").wrap("<div>").parent():this.element).addClass("k-flatcolorpicker k-coloreditor").attr({role:"textbox","aria-keyshortcuts":"Enter"}).append(this._template()),this._selectedColor=vn(".k-coloreditor-preview-color",Je),this._previousColor=vn(".k-coloreditor-current-color",Je),this._viewsContainer=vn(".k-coloreditor-views",Je),Je.find(".k-button[data-view="+$e.view+"]").addClass(Ot).attr(cn,!0),this.wrapper=Je}});return ze.plugin(an),window.kendo}.apply(Eo={},ur=[fn,nn,F]))&&(mi=Eo),void 0===(Ko=function(){var Xe=window.kendo.jQuery,ze=window.kendo,St=ze.ui,it=St.Widget,Dt=ze.Color,Hn=ze.parseColor,Ui=ze.keys,Vn=".kendoColorTools",Dn="click"+Vn,kn="keydown"+Vn,ui=St.colorpicker.ColorSelector,Ot=St.FlatColorPicker,en=it.extend({init:function(ft,Nt){var an=this;Nt&&Nt.palette&&!Nt.view&&(Nt.view="palette"),it.fn.init.call(an,ft,Nt),Nt=an.options=ze.deepExtend({},an.options,Nt);var $e=(ft=an.element).attr("value")||ft.val();$e=Hn($e||Nt.value,!0),an._value=Nt.value=$e;var Je=ze.html.renderButton('<button class="k-input-button" unselectable="on" aria-label="select" tabindex="-1"></button>',Xe.extend({},an.options,{icon:"arrow-s"})),Ve=an._inputWrapper=an.wrapper=Xe(an._template(Xe.extend({},an.options,{_buttonHtml:Je})));an._applyCssClasses(),ft.hide().after(Ve),ft.is("input")&&(ft.appendTo(Ve),an._preventDefaultLabelClick()),an._tabIndex=ft.attr("tabIndex")||0,an.enable(!ft.attr("disabled"));var Ge=ft.attr("accesskey");Ge&&(ft.attr("accesskey",null),Ve.attr("accesskey",Ge)),an.bind("activate",function(Be){Be.isDefaultPrevented()||an.toggle()}),an._updateUI($e)},destroy:function(){this.wrapper.off(Vn).find("*").off(Vn),this._popup&&(this._selector.destroy(),this._popup.destroy()),this._selector=this._popup=this.wrapper=null,it.fn.destroy.call(this)},enable:function(ft){var Nt=this,an=Nt.wrapper,$e=an.find(".k-input-button");0===arguments.length&&(ft=!0),Nt.element.attr("disabled",!ft),an.attr("aria-disabled",!ft),$e.off(Vn).on("mousedown"+Vn,cn),an.addClass("k-disabled").removeAttr("tabIndex").add("*",an).off(Vn),ft?an.removeClass("k-disabled").attr("tabIndex",Nt._tabIndex).on("mouseenter"+Vn,function(){an.addClass("k-hover")}).on("mouseleave"+Vn,function(){an.removeClass("k-hover")}).on("focus"+Vn,function(){an.addClass("k-focus")}).on("blur"+Vn,function(){an.removeClass("k-focus")}).on(kn,Ht(Nt._keydown,Nt)).on(Dn,".k-input-button",Ht(Nt.toggle,Nt)).on(Dn,".k-input-inner",function(){Nt.trigger("activate")}):Nt.close()},_template:ze.template('<span role="textbox" aria-haspopup="true" class="k-colorpicker k-picker k-icon-picker"><span  class="k-input-inner"><span class="k-value-icon k-color-preview #: toolIcon ? "k-icon-color-preview" : "" #"># if (toolIcon) { #<span class="k-color-preview-icon k-icon #= toolIcon #"></span># } #<span class="k-color-preview-mask"></span></span></span >#= _buttonHtml #</span>'),options:{name:"ColorPicker",closeOnSelect:!1,contrastTool:!1,palette:null,columns:10,toolIcon:null,value:null,messages:{apply:"Apply",cancel:"Cancel",noColor:"no color",clearColor:"Clear color",previewInput:null,contrastRatio:"Contrast ratio:",fail:"Fail",pass:"Pass",hex:"HEX",toggleFormat:"Toggle format",red:"Red",green:"Green",blue:"Blue",alpha:"Alpha",gradient:"Gradient view",palette:"Palette view"},opacity:!1,buttons:!0,preview:!0,clearButton:!1,input:!0,format:"hex",formats:["rgb","hex"],view:"gradient",views:["gradient","palette"],backgroundColor:null,ARIATemplate:'Current selected color is #=data || "none"#',size:"medium",rounded:"medium",fillMode:"solid"},events:["activate","change","select","open","close"],open:function(){this.element.prop("disabled")||this._getPopup().open()},close:function(){var ft=this._selector&&this._selector.options||{};ft._closing=!0,this._getPopup().close(),delete ft._closing},toggle:function(){this.element.prop("disabled")||this._getPopup().toggle()},setBackgroundColor:function(ft){var Nt=this,an=function(){Nt._selector.setBackgroundColor(ft)};Nt.options.contrastTool.backgroundColor=ft,Nt._selector&&Nt._popup&&Nt._popup.visible()?Nt._selector.setBackgroundColor(ft):Nt._popup&&(Nt._popup.unbind("activate",an),Nt._popup.bind("activate",an))},_noColorIcon:function(){return this.wrapper.find(".k-color-preview")},color:ui.fn.color,value:ui.fn.value,_select:ui.fn._select,_triggerSelect:ui.fn._triggerSelect,_isInputTypeColor:ui.fn._isInputTypeColor,_preventDefaultLabelClick:function(){var ft=this,Nt=ft.element,an=Nt.closest("label"),$e=Nt.attr("id");$e&&(an=an.add('label[for="'+$e+'"]')),an.on("click",function(Je){ft.open(),Je.preventDefault()})},_updateUI:function(ft,Nt){this._updateInput(ft),this._triggerSelect(ft),this.wrapper.find(".k-color-preview-mask").css("background-color",ft?ft.toDisplay():""),this._noColorIcon().toggleClass("k-no-color",!ft),this._selector&&!Nt&&this._selector.value(ft)},_updateInput:function(ft){var Nt="";ft&&(Nt=this._isInputTypeColor()||1==ft.a?ft.toCss():ft.toCssRgba(),this.element.val(Nt)),this._ariaTemplate||(this._ariaTemplate=ze.template(this.options.ARIATemplate)),this.wrapper.attr("aria-label",this._ariaTemplate(Nt))},_keydown:function(ft){var Nt=ft.keyCode;this._getPopup().visible()?(Nt==Ui.ESC?this._selector._cancel():this._selector._keydown(ft),cn(ft)):(Nt==Ui.ENTER||Nt==Ui.DOWN)&&(this.open(),cn(ft))},_getPopup:function(){var ft=this,Nt=ft._popup;if(!Nt){var $e,an=ft.options;$e=Ot,an.autoupdate=!0!==an.buttons,delete an.select,delete an.change,delete an.cancel,an._otOfPicker=!1;var Je=ze.guid(),Ve=Xe('<div id="'+Je+'" class="k-colorpicker-popup"></div>').appendTo(document.body),Ge=ft._selector=new $e(Xe("<div></div>").appendTo(Ve),an);ft.wrapper.attr("aria-owns",Je),ft._popup=Nt=Ve.kendoPopup({anchor:ft.wrapper,adjustSize:{width:5,height:0}}).data("kendoPopup"),Ge.bind({select:function(Be){ft._updateUI(Hn(Be.value),!0)},change:function(Be){ft.options.buttons?ft._select(Ge.color()):ft._updateUI(Hn(Be.value),!0),(ft.options.buttons||"palette"===ft._selector.options.view&&ft.options.closeOnSelect)&&ft.close()},cancel:function(){ft.close()}}),Nt.bind({close:function(Be){if(ft.trigger("close"))Be.preventDefault();else{ft.wrapper.removeClass("k-focus");var At=Ge.color();ft._select(ft.options.buttons?ft.color():At),(At=ft.color())&&At.h&&(ft._cachedHue=At.h),event&&event instanceof MouseEvent&&0===Xe(event.target).parents(".k-colorpicker-popup").length||setTimeout(function(){ft.wrapper&&!ft.wrapper.is("[unselectable='on']")&&ft.wrapper.trigger("focus")},0)}},open:function(Be){ft.trigger("open")?Be.preventDefault():ft.wrapper.addClass("k-focus")},activate:function(){var Be,At=ft.color();At&&(At=At.toHSV(),Be=Dt.fromHSV(ft._cachedHue||0,At.s,At.v,At.a),At=At.equals(Be)?Be:At),Ge.value(At),Ge.focus(),ft.wrapper.addClass("k-focus")}})}return Nt}});function cn(ft){ft.preventDefault()}function Ht(ft,Nt){return function(){return ft.apply(Nt,arguments)}}return St.plugin(en),ze.cssProperties.registerPrefix("ColorPicker","k-picker-"),ze.cssProperties.registerValues("ColorPicker",[{prop:"rounded",values:ze.cssProperties.roundedValues.concat([["full","full"]])}]),window.kendo}.apply(xo={},ur=[e,ne,A,ge,k,fe,Oe,An,xn,F,ut,mi]))&&(Ko=xo),void 0===(Bn=function(){var Xe=window.kendo.jQuery,ze=window.kendo,St=ze.ui,it=St.Widget,Dt="change",Hn="disabled",Ui="checked",Co=it.extend({init:function(Sn,Vn){var Dn=this;it.fn.init.call(Dn,Sn,Vn),Dn._wrapper(),Dn._initSettings(),Dn._attachEvents(),ze.notify(Dn,ze.ui)},events:[Dt],options:{name:"ToggleInputBase"},NS:".kendoToggleInputBase",RENDER_INPUT:Xe.noop,check:function(Sn){var Dn=this.element[0];if(void 0===Sn)return Dn.checked;Dn.checked!==Sn&&(this.options.checked=Dn.checked=Sn),Sn?this.element.attr(Ui,Ui):this.element.prop(Ui,!1)},destroy:function(){it.fn.destroy.call(this),this.wrapper.off(this.NS)},enable:function(Sn){var Vn=this.element;typeof Sn>"u"&&(Sn=!0),this.options.enabled=Sn,Sn?Vn.prop(Hn,!1):Vn.attr(Hn,Hn)},toggle:function(){this.check(!this.element[0].checked)},_attachEvents:function(){this.element.on(Dt+this.NS,this._change.bind(this))},_change:function(){this.trigger(Dt,{checked:this.element[0].checked})},_initSettings:function(){var Sn=this,Dn=Sn.options;null===Dn.checked&&(Dn.checked=Sn.element[0].checked),Sn.check(Dn.checked),Dn.enabled=Dn.enabled&&!Sn.element.attr(Hn),Sn.enable(Dn.enabled)},_wrapper:function(){var Sn=this;(0,Sn.RENDER_INPUT)(Sn.element,Xe.extend({},Sn.options)),Sn.element.removeClass("input-validation-error"),Sn.wrapper=Sn.element}});return St.plugin(Co),window.kendo}.apply(Xt={},ur=[e]))&&(Bn=Xt),void 0===(Ji=function(){var Xe=window.kendo.jQuery,ze=window.kendo,St=ze.html.HTMLBase,Hn=St.extend({init:function(Sn,Vn){St.fn.init.call(this,Sn,Vn),this._wrapper(),this._addClasses()},options:{label:null,labelPosition:"after",labelId:null,encoded:!0},_wrapper:function(){var Sn=this,Vn=Sn.element[0],Dn=Sn.options,kn=Vn.id;Sn.wrapper=Sn.element.addClass(Dn.inputClass).prop("type",Dn.type),!kn&&Dn.label&&(Vn.id=kn=ze.guid()),Dn.label&&(Sn.labelEl=Xe("<label for='"+kn+"' class='"+Dn.labelClass+"'>"),Dn.encoded?Sn.labelEl.text(Dn.label):Sn.labelEl.html(Dn.label),Dn.labelId&&Sn.labelEl.attr("id",Dn.labelId),Dn.optional&&Sn.labelEl.append("<span class='"+Dn.optionalClass+"'>"+Dn.optionalText+"</span>"),Sn.element[Dn.labelPosition](Sn.labelEl))},html:function(){var Sn=this,Vn="after"===Sn.options.labelPosition,Dn=St.fn.html.call(Sn);return Sn.labelEl?Vn?Dn+Sn.labelEl[0].outerHTML:Sn.labelEl[0].outerHTML+Dn:Dn}}),Ui=Hn.extend({init:function(Sn,Vn){Hn.fn.init.call(this,Sn,Vn),this._addClasses()},options:{name:"HTMLCheckBox",inputClass:"k-checkbox",labelClass:"k-checkbox-label",optionalClass:"k-label-optional",optionalText:"(Optional)",type:"checkbox",rounded:"medium",size:"medium",stylingOptions:["size","rounded"]}}),Co=Hn.extend({init:function(Sn,Vn){Hn.fn.init.call(this,Sn,Vn),this._addClasses()},options:{name:"HTMLRadioButton",inputClass:"k-radio",labelClass:"k-radio-label",optionalClass:"k-label-optional",optionalText:"(Optional)",type:"radio",size:"medium",stylingOptions:["size"]}});return Xe.extend(ze.html,{renderCheckBox:function(Sn,Vn){return(void 0===arguments[0]||Xe.isPlainObject(arguments[0]))&&(Vn=Sn,Sn=Xe("<input />")),new Ui(Sn,Vn).html()},renderRadioButton:function(Sn,Vn){return(void 0===arguments[0]||Xe.isPlainObject(arguments[0]))&&(Vn=Sn,Sn=Xe("<input />")),new Co(Sn,Vn).html()},HTMLInput:Hn,HTMLCheckBox:Ui,HTMLRadioButton:Co}),ze.cssProperties.registerPrefix("HTMLCheckBox","k-checkbox-"),ze.cssProperties.registerValues("HTMLCheckBox",[{prop:"rounded",values:ze.cssProperties.roundedValues.concat([["full","full"]])}]),ze.cssProperties.registerPrefix("HTMLRadioButton","k-radio-"),window.kendo}.apply(En={},ur=[L]))&&(Ji=En),void 0===(un=function(){window;var ze=window.kendo,St=ze.ui,Dt=St.ToggleInputBase.extend({options:{name:"CheckBox",checked:null,enabled:!0,encoded:!0,label:null,rounded:"medium",size:"medium"},RENDER_INPUT:ze.html.renderCheckBox,NS:".kendoCheckBox",value:function(Hn){return"string"==typeof Hn&&(Hn="true"===Hn),this.check.apply(this,[Hn])}});return ze.cssProperties.registerPrefix("CheckBox","k-checkbox-"),ze.cssProperties.registerValues("CheckBox",[{prop:"rounded",values:ze.cssProperties.roundedValues.concat([["full","full"]])}]),St.plugin(Dt),window.kendo}.apply(Ki={},ur=[Bn,Ji]))&&(un=Ki),void 0===(Fn=function(){var Xe=window.kendo.jQuery,ze=window.kendo,St=ze.ui.Widget,it=".kendoValidator",Dt="k-invalid-msg",Hn=new RegExp(Dt,"i"),Ui="k-invalid",Co="k-valid",Sn="k-validation-summary",Vn="k-text-error",Dn="k-messagebox k-messagebox-error",Ot="aria-invalid",cn=/^[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])?)*$/i,Ht=/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,ft=":input:not(:button,[type=submit],[type=reset],[disabled],[readonly])",Nt=":checkbox:not([disabled],[readonly])",an="[type=number],[type=range]",Je="name",Ge="novalidate",Be="validate",At="change",Rt="validateInput",Pt=function(Wn,Vt){return"string"==typeof Vt&&(Vt=new RegExp("^(?:"+Vt+")$")),Vt.test(Wn)},$t=function(Wn,Vt,qt){var bn=Wn.val();return!Wn.filter(Vt).length||""===bn||Pt(bn,qt)},Xn=function(Wn,Vt){return!!Wn.length&&null!=Wn[0].attributes[Vt]};function Ae(Wn){return Wn.replace(/&amp/g,"&amp;").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">")}function Kt(Wn){return Xe(Xe.parseHTML?Xe.parseHTML(Wn):Wn)}function On(Wn,Vt){for(var bn,qt=Xe(),Vi=0,Jn=Wn.length;Vi<Jn;Vi++)Hn.test((bn=Wn[Vi]).className)&&bn.getAttribute(ze.attr("for"))===Vt&&(qt=qt.add(bn));return qt}function Fi(Wn,Vt){return!(!Wn||"string"!=typeof Wn.nodeName||"LABEL"!==Wn.nodeName||"string"!=typeof Wn.getAttribute("for")||"string"!=typeof Vt.getAttribute("id")||Wn.getAttribute("for")!==Vt.getAttribute("id"))}ze.ui.validator||(ze.ui.validator={rules:{},messages:{},allowSubmit:Xe.noop,validateOnInit:Xe.noop});var xi=St.extend({init:function(Wn,Vt){var qt=this,bn=function Nn(Wn){var bn,Vt=ze.ui.validator.ruleResolvers||{},qt={};for(bn in Vt)Xe.extend(!0,qt,Vt[bn].resolve(Wn));return qt}(Wn),ii="["+ze.attr("validate")+"!=false]";(Vt=Vt||{}).rules=Xe.extend({},ze.ui.validator.rules,bn.rules,Vt.rules),Vt.messages=Xe.extend({},ze.ui.validator.messages,bn.messages,Vt.messages),St.fn.init.call(qt,Wn,Vt),qt._errorTemplate=ze.template(qt.options.errorTemplate),qt._summaryTemplate=ze.template(qt.options.validationSummary.template||'<ul>#for(var i = 0; i < errors.length; i += 1){#<li><a data-field="#=errors[i].field#" href="\\#">#= errors[i].message #</a></li># } #</ul>'),qt.element.is("form")&&qt.element.attr(Ge,Ge),qt._inputSelector=ft+ii,qt._checkboxSelector=Nt+ii,qt._errors={},qt._attachEvents(),qt._isValidated=!1,qt._validateOnInit()&&qt.validate()},events:[Be,At,Rt],options:{name:"Validator",errorTemplate:'<span class="k-form-error">#= message #</span>',messages:{required:"{0} is required",pattern:"{0} is not valid",min:"{0} should be greater than or equal to {1}",max:"{0} should be smaller than or equal to {1}",step:"{0} is not valid",email:"{0} is not valid email",url:"{0} is not valid URL",date:"{0} is not valid date",dateCompare:"End date should be greater than or equal to the start date",captcha:"The text you entered doesn't match the image."},rules:{required:function(Wn){var Vt=!Wn.attr("name")&&!Wn.is(":checked"),qt=Wn.attr("name"),bn=qt&&qt.indexOf("'")>-1?'"':"'",ii=Wn.attr("name")&&!this.element.find("input[name="+bn+Wn.attr("name")+bn+"]:checked").length,Vi=Wn.filter("[type=checkbox]").length&&(Vt||ii),Jn=Wn.filter("[type=radio]").length&&!this.element.find("input[name="+bn+Wn.attr("name")+bn+"]:checked").length,zt=Wn.val();return!(Xn(Wn,"required")&&(!zt||""===zt||0===zt.length||Vi||Jn))},pattern:function(Wn){return!Wn.filter("[type=text],[type=email],[type=url],[type=tel],[type=search],[type=password]").filter("[pattern]").length||""===Wn.val()||Pt(Wn.val(),Wn.attr("pattern"))},min:function(Wn){return!Wn.filter(an+",["+ze.attr("type")+"=number]").filter("[min]").length||""===Wn.val()||(parseFloat(Wn.attr("min"))||0)<=ze.parseFloat(Wn.val())},max:function(Wn){return!Wn.filter(an+",["+ze.attr("type")+"=number]").filter("[max]").length||""===Wn.val()||(parseFloat(Wn.attr("max"))||0)>=ze.parseFloat(Wn.val())},step:function(Wn){if(Wn.filter(an+",["+ze.attr("type")+"=number]").filter("[step]").length&&""!==Wn.val()){var Vi,Vt=parseFloat(Wn.attr("min"))||0,qt=parseFloat(Wn.attr("step"))||1,bn=parseFloat(Wn.val()),ii=function He(Wn){return(Wn=(Wn+"").split(".")).length>1?Wn[1].length:0}(qt);return ii?(Vi=Math.pow(10,ii),Math.floor((bn-Vt)*Vi)%(qt*Vi)/Math.pow(100,ii)==0):(bn-Vt)%qt==0}return!0},email:function(Wn){return $t(Wn,"[type=email],["+ze.attr("type")+"=email]",cn)},url:function(Wn){return $t(Wn,"[type=url],["+ze.attr("type")+"=url]",Ht)},date:function(Wn){return!Wn.filter("[type^=date],["+ze.attr("type")+"=date]").length||""===Wn.val()||null!==ze.parseDate(Wn.val(),Wn.attr(ze.attr("format")))},captcha:function(Wn){if(Wn.filter("["+ze.attr("role")+"=captcha]").length){var Vt=this,qt=ze.widgetInstance(Wn),bn=function(ii){return typeof ii<"u"&&null!==ii};if(!Wn.data("captcha_validating")&&!bn(qt.isValid())&&qt.getCaptchaId()&&(Wn.data("captcha_validating",!0),Vt._validating=!0,qt.validate().done(function(){Vt._validating=!1,Vt._checkElement(Wn)}).fail(function(ii){Vt._validating=!1,ii.error&&"handler_not_defined"===ii.error&&window.console.warn("Captcha's validationHandler is not defined! You should either define a proper validation endpoint or declare a callback function to ensure the required behavior.")})),bn(qt.isValid()))return Wn.removeData("captcha_validating"),qt.isValid()}return!0}},validateOnBlur:!0,validationSummary:!1},_allowSubmit:function(){return ze.ui.validator.allowSubmit(this.element,this.errors())},_validateOnInit:function(){return ze.ui.validator.validateOnInit(this.element)},destroy:function(){St.fn.destroy.call(this),this.element.off(it),this.validationSummary&&(this.validationSummary.off(it),this.validationSummary=null)},value:function(){return!!this._isValidated&&0===this.errors().length},_submit:function(Wn){return!(!this.validate()&&!this._allowSubmit()||this._validating)||(Wn.stopPropagation(),Wn.stopImmediatePropagation(),Wn.preventDefault(),!1)},_checkElement:function(Wn){var Vt=this.value();this.validateInput(Wn),this.value()!==Vt&&this.trigger(At)},_attachEvents:function(){var Wn=this;Wn.element.is("form")&&Wn.element.on("submit"+it,Wn._submit.bind(Wn)),Wn.options.validateOnBlur&&(Wn.element.is(ft)?(Wn.element.on("blur"+it,function(){Wn._checkElement(Wn.element)}),Wn.element.is(Nt)&&Wn.element.on("click"+it,function(){Wn._checkElement(Wn.element)})):(Wn.element.on("blur"+it,Wn._inputSelector,function(){Wn._checkElement(Xe(this))}),Wn.element.on("click"+it,Wn._checkboxSelector,function(){Wn._checkElement(Xe(this))})))},validate:function(){var Wn,Vt,bn,qt=!1,ii=this.value();if(this._errors={},this.element.is(ft))qt=this.validateInput(this.element);else{var Vi=!1;for(Vt=0,bn=(Wn=this.element.find(this._inputSelector)).length;Vt<bn;Vt++)this.validateInput(Wn.eq(Vt))||(Vi=!0);qt=!Vi}return this.options.validationSummary&&!ii&&this.showValidationSummary(),this.trigger(Be,{valid:qt,errors:this.errors()}),ii!==qt&&this.trigger(At),qt},validateInput:function(Wn){Wn=Xe(Wn),this._isValidated=!0;var Vi,Vt=this,qt=Vt._errorTemplate,bn=Vt._checkValidity(Wn),ii=bn.valid,Jn="."+Dt,zt=Wn.attr(Je)||"",mn=Vt._findMessageContainer(zt).add(Wn.next(Jn).filter(function(){var yt=Xe(this);return!yt.filter("["+ze.attr("for")+"]").length||yt.attr(ze.attr("for"))===zt})).addClass("k-hidden"),Qn=ii?"":Vt._extractMessage(Wn,bn.key),ci=ii?"":Kt(qt({message:Ae(Qn),field:zt})),Oi=!Wn.attr(Ot),Ai=Wn.is(".k-input-inner"),Pn=Wn.parent(".k-input");if(Wn.removeAttr(Ot),Wn.hasClass("k-hidden")&&(Vi=ze.widgetInstance(Wn.closest(".k-signature"))),ii||Wn.data("captcha_validating"))delete Vt._errors[zt];else{Vt._errors[zt]=Qn;var qn=mn.attr("id");if(Vt._decorateMessageContainer(ci,zt),qn&&ci.attr("id",qn),0!==mn.length)mn.replaceWith(ci);else{Vi=Vi||ze.widgetInstance(Wn);var Ni=Wn.parent().get(0),Ue=Wn.next().get(0),Ye=Wn.prev().get(0);!Vi&&Wn.is("[type=radio]")&&(Vi=ze.widgetInstance(Wn.closest(".k-radio-list"))),!Vi&&Wn.is("[type=checkbox]")&&(Vi=ze.widgetInstance(Wn.closest(".k-checkbox-list"))),Vi&&Vi.wrapper&&(Vi.element!==Vi.wrapper||"Signature"==Vi.options.name)?ci.insertAfter(Vi.wrapper):Ni&&"LABEL"===Ni.nodeName?ci.insertAfter(Ni):Ue&&Fi(Ue,Wn[0])?ci.insertAfter(Ue):Ye&&Fi(Ye,Wn[0])?ci.insertAfter(Wn):ci.insertAfter(Ai&&Pn.length?Pn:Wn)}ci.removeClass("k-hidden"),Wn.attr(Ot,!0)}if(Oi!==ii&&this.trigger(Rt,{valid:ii,input:Wn,error:Qn,field:zt}),(!(Vi=Vi&&"Signature"==Vi.options.name?Vi:ze.widgetInstance(Wn))||!(Vi._inputWrapper||Vi.wrapper))&&(Wn.toggleClass(Ui,!ii),Wn.toggleClass(Co,ii)),Vi){var Me=Vi._inputWrapper||Vi.wrapper,pe=Vi._inputLabel;Me&&(Me.toggleClass(Ui,!ii),Me.toggleClass(Co,ii)),pe&&pe.toggleClass(Vn,!ii)}if(Oi!==ii){var lt=ci?ci.attr("id"):mn.attr("id");Vt._associateMessageContainer(Wn,lt),this.options.validationSummary&&this.options.validateOnBlur&&this.showValidationSummary()}return ii},hideMessages:function(){var Vt="."+Dt,qt=this.element;this._disassociateMessageContainers(),qt.is(ft)?qt.next(Vt).addClass("k-hidden"):qt.find(Vt).addClass("k-hidden")},reset:function(){var Wn=this,Vt=Wn.element.find("."+Ui),qt=Wn.element.find("."+Vn);Wn._errors=[],Wn.hideMessages(),Wn.hideValidationSummary(),Vt.removeAttr(Ot),Vt.removeClass(Ui),qt.removeClass(Vn)},_findMessageContainer:function(Wn){for(var qt,Vt=ze.ui.validator.messageLocators,bn=Xe(),ii=0,Vi=this.element.length;ii<Vi;ii++)bn=bn.add(On(this.element[ii].getElementsByTagName("*"),Wn));for(qt in Vt)bn=bn.add(Vt[qt].locate(this.element,Wn));return bn},_decorateMessageContainer:function(Wn,Vt){var bn,qt=ze.ui.validator.messageLocators;for(bn in Wn.addClass(Dt).attr(ze.attr("for"),Vt||""),Wn.attr("id")||Wn.attr("id",Vt+"-error"),qt)qt[bn].decorate(Wn,Vt)},_extractMessage:function(Wn,Vt){var Vi,bn=this.options.messages[Vt],ii=Wn.attr(Je);return ze.ui.Validator.prototype.options.messages[Vt]||(Vi=ze.isFunction(bn)?bn(Wn):bn),bn=ze.isFunction(bn)?bn(Wn):bn,ze.format(Wn.attr(ze.attr(Vt+"-msg"))||Wn.attr("validationMessage")||Vi||bn||Wn.attr("title")||"",ii,Wn.attr(Vt)||Wn.attr(ze.attr(Vt)))},_checkValidity:function(Wn){var qt,Vt=this.options.rules;for(qt in Vt)if(!Vt[qt].call(this,Wn))return{valid:!1,key:qt};return{valid:!0}},errors:function(){var qt,Wn=[],Vt=this._errors;for(qt in Vt)Wn.push(Vt[qt]);return Wn},setOptions:function(Wn){Wn.validationSummary&&this.hideValidationSummary(),ze.deepExtend(this.options,Wn),this.destroy(),this.init(this.element,this.options),this._setEvents(this.options)},_getInputNames:function(){for(var Vt=this.element.find(this._inputSelector),qt=[],bn=0,ii=Vt.length;bn<ii;bn++){var Vi=Xe(Vt[bn]);Xn(Vi,Je)&&(-1===qt.indexOf(Vi.attr(Je))||0===Vi.closest(".k-checkbox-list").length&&0===Vi.closest(".k-radio-list").length)&&qt.push(Vi.attr(Je))}return qt},_associateMessageContainer:function(Wn,Vt){var qt=ze.getWidgetFocusableElement(Wn);!qt||!Vt||ze.toggleAttribute(qt,"aria-describedby",Vt)},_disassociateMessageContainers:function(){for(var qt,bn,Vt=this.element.find("."+Ui).addBack(),ii=0;ii<Vt.length;ii+=1)(qt=Xe(Vt[ii])).is("input")&&(bn=this._findMessageContainer(qt.attr(Je)).add(qt.next("."+Dt)).attr("id"),this._associateMessageContainer(qt,bn))},_errorsByName:function(){for(var Vt=this._getInputNames(),qt=[],bn=0;bn<Vt.length;bn+=1){var ii=Vt[bn];this._errors[ii]&&qt.push({field:ii,message:this._errors[ii]})}return qt},_renderSummary:function(){var ii,Vt=this.options.validationSummary,bn=this.element.prev();return(ii=Vt.container?Xe(Vt.container):bn&&bn.hasClass(Sn)?bn:Xe("<div />").insertBefore(this.element)).addClass([Sn,Dn].join(" ")),ii.attr("role","alert"),ii.on("click"+it,this._summaryClick.bind(this)),ii},_summaryClick:function(Wn){Wn.preventDefault();var ii,qt=Xe(Wn.target),bn=this.element.find("[name='"+qt.data("field")+"']");bn.length&&(ii=ze.getWidgetFocusableElement(bn))&&ii.trigger("focus")},showValidationSummary:function(){var bn,Wn=this,Vt=Wn.validationSummary,qt=Wn._errorsByName();Vt||(Vt=Wn.validationSummary=Wn._renderSummary()),bn=Kt(Wn._summaryTemplate({errors:qt})),Vt.html(bn),Vt.toggleClass("k-hidden",!qt.length)},hideValidationSummary:function(){var Vt=this.validationSummary;Vt&&Vt.addClass("k-hidden")}});return ze.ui.plugin(xi),window.kendo}.apply(oi={},ur=[e]))&&(Fn=oi),void 0===(It=function(){var Xe=window.kendo.jQuery,ze=window.kendo,St=ze.ui,it=St.Widget,Dt=Xe.extend,Hn=ze.isFunction,Ui=Xe.isPlainObject,Co=Xe.inArray,Dn=/("|\%|'|\[|\]|\$|\.|\,|\:|\;|\+|\*|\&|\!|\#|\(|\)|<|>|\=|\?|\@|\^|\{|\}|\~|\/|\||`)/g,Ot="equalSet",en=["url","email","number","date","boolean"];function cn(Pt){return(Pt=Pt??"").type||ze.type(Pt)||"string"}function ft(Pt){var He,Fi,$t=(Pt.model.fields||Pt.model)[Pt.field],Xn=cn($t),Nn=$t?$t.validation:{},Ae=$t?$t.attributes:{},Kt=ze.attr("type"),On=ze.attr("bind"),Ci={id:Pt.id||Pt.field,name:Pt.field,title:Pt.title?Pt.title:Pt.field};for(He in Nn){if(Fi=Nn[He],Co(He,en)>=0)Ci[Kt]=He;else if(!Hn(Fi)){var xi=ze.getCulture();if("number"==typeof Fi&&xi.name.length){var Wn=xi.numberFormat,Vt=Fi.toString().replace(".",Wn["."]);Ci[He]=Vt}else Ci[He]=Ui(Fi)?Fi.value||He:Fi}Ci[ze.attr(He+"-msg")]=Fi.message,Ci.autocomplete="off"}for(var qt in Ae)Ci[qt]=Ae[qt];return Co(Xn,en)>=0&&(Ci[Kt]=Xn),Ci[On]=("boolean"===Xn?"checked:":"value:")+Pt.field,Ci}function Nt(Pt,$t){var Xn=Pt.attr("id");return Xn&&($t.id=Xn,Pt.removeAttr("id")),$t}var Je=["AutoComplete","CheckBox","CheckBoxGroup","ColorGradient","ColorPicker","ColorPalette","ComboBox","DateInput","DatePicker","DateTimePicker","DropDownTree","Editor","FlatColorPicker","MaskedTextBox","MultiColumnComboBox","MultiSelect","NumericTextBox","RadioGroup","Rating","Slider","Switch","TimePicker","DropDownList","TextBox","TextArea","Captcha","Signature"],Ge={number:function(Pt,$t){var Xn=ft($t);Xn=Nt(Pt,Xn),Xe('<input type="number"/>').attr(Xn).appendTo(Pt)},date:function(Pt,$t){var Xn=ft($t);Xn=Nt(Pt,Xn),Xe('<input type="date"/>').attr(Xn).appendTo(Pt)},string:function(Pt,$t){var Xn=ft($t);Xn=Nt(Pt,Xn),Xe('<input type="text" />').attr(Xn).appendTo(Pt)},boolean:function(Pt,$t){var Xn=ft($t);Xn=Nt(Pt,Xn),Xe('<input type="checkbox" />').attr(Xn).appendTo(Pt)},values:function(Pt,$t){var Xn=ft($t),Nn=$t.values,Ae=Xe("<select />");for(var He in Xn=Nt(Pt,Xn),Nn)Xe('<option value="'+Nn[He].value+'">'+Nn[He].text+"</option>").appendTo(Ae);Ae.attr(Xn).appendTo(Pt)}};function Be(Pt,$t){var Nn,Ae,Xn=Pt&&Pt.validation||{};for(Nn in Xn)Ui(Ae=Xn[Nn])&&Ae.value&&(Ae=Ae.value),Hn(Ae)&&($t[Nn]=Ae)}function At(Pt,$t,Xn){Xn&&Xn.shouldRenderHidden&&(Pt.val(!0),$t.append(Xe("<input type='hidden' name='"+Xn.field+"' value='false' data-skip='true' data-validate='false'/>")))}var Rt=it.extend({init:function(Pt,$t){var Xn=this;$t.target&&($t.$angular=$t.target.options.$angular,$t.target.pane&&(Xn._isMobile=!0)),it.fn.init.call(Xn,Pt,$t),Xn._validateProxy=Xn._validate.bind(Xn),Xn.refresh()},events:["change"],options:{name:"Editable",editors:{hidden:function(Pt,$t){var Xn=ft($t);Xe('<input type="hidden"/>').attr(Xn).appendTo(Pt)},number:function(Pt,$t){var Xn=ft($t);Xe('<input type="text"/>').attr(Xn).appendTo(Pt).kendoNumericTextBox({format:$t.format}),Xe("<span "+ze.attr("for")+'="'+$t.field+'" class="k-invalid-msg k-hidden"/>').appendTo(Pt)},date:function(Pt,$t){var Xn=ft($t),Nn=$t.format;Nn&&(Nn=ze._extractFormat(Nn)),Xn[ze.attr("format")]=Nn,Xe('<input type="text"/>').attr(Xn).appendTo(Pt).kendoDatePicker({format:$t.format}),Xe("<span "+ze.attr("for")+'="'+$t.field+'" class="k-invalid-msg k-hidden"/>').appendTo(Pt)},string:function(Pt,$t){var Xn=ft($t);Xe('<input type="text"/>').attr(Xn).appendTo(Pt).kendoTextBox()},boolean:function(Pt,$t){var Xn=ft($t);At(Xe('<input type="checkbox" />').attr(Xn).kendoCheckBox().appendTo(Pt),Pt,$t)},values:function(Pt,$t){var Xn=ft($t),Nn=ze.stringify(function an(Pt){var $t,Xn,Nn,Kt;if(Pt&&Pt.length)for(Kt=[],$t=0,Xn=Pt.length;$t<Xn;$t++)Kt[$t]={text:(Nn=Pt[$t]).text||Nn.value||Nn,value:null==Nn.value?Nn.text||Nn:Nn.value};return Kt}($t.values));Xe("<select "+ze.attr("text-field")+'="text"'+ze.attr("value-field")+'="value"'+ze.attr("source")+"='"+(Nn&&Nn.replace(/\'/g,"&apos;"))+"'"+ze.attr("role")+'="dropdownlist"/>').attr(Xn).appendTo(Pt),Xe("<span "+ze.attr("for")+'="'+$t.field+'" class="k-invalid-msg  k-hidden"/>').appendTo(Pt)},kendoEditor:function(Pt,$t){var Xn=ft($t),Nn=$t.editor,Ae="kendo"+Nn,He=$t.editorOptions,Kt=function $e(Pt,$t){if(Pt.length)return"DropDownTree"===Pt&&$t&&$t.checkboxes||"MultiSelect"===Pt?"<select />":"RadioGroup"===Pt||"CheckBoxGroup"===Pt?"<ul />":"Signature"===Pt?"<div></div>":"Editor"===Pt||"TextArea"===Pt?"<textarea />":"<input />"}(Nn,He);At(Xe(Kt).attr(Xn).appendTo(Pt)[Ae](He),Pt,$t)}},mobileEditors:Ge,clearContainer:!0,validateOnBlur:!0,validationSummary:!1,errorTemplate:'<div class="k-tooltip k-tooltip-error k-validator-tooltip"><span class="k-tooltip-icon k-icon k-i-warning"></span><span class="k-tooltip-content">#= message #</span><span class="k-callout k-callout-n"></span></div>',skipFocus:!1},editor:function(Pt,$t){var Xn=this,Nn=Xn._isMobile?Ge:Xn.options.editors,Ae=Ui(Pt),He=Ae?Pt.field:Pt,Kt=Xn.options.model||{},Fi=Ae&&Pt.values?"values":cn($t),Ci=Ae&&"string"==typeof Pt.editor&&"hidden"===Pt.editor,xi=Ae&&!Ci&&Pt.editor,Wn=Ae&&-1!==Xe.inArray(Pt.editor,Je),Vt=xi?Pt.editor:Nn[Ci?"hidden":Fi],qt=Xn.element.find("["+ze.attr("container-for")+"="+He.replace(Dn,"\\$1")+"]");Vt=Vt||Nn.string,Wn?Vt=Nn.kendoEditor:xi&&"string"==typeof Pt.editor&&(Vt=function(bn){bn.append(Pt.editor)}),Vt(qt=qt.length?qt:Xn.element,Dt(!0,{},Ae?Pt:{field:He},{model:Kt}))},_validate:function(Pt){var Xn,$t=this,Nn=Pt.value,Ae=$t._validationEventInProgress,He={},Kt=ze.attr("bind"),On=Pt.field.replace(Dn,"\\$1"),Fi=new RegExp("(value|checked)\\s*:\\s*"+On+"\\s*(,|$)");He[Pt.field]=Pt.value,(Xn=Xe(":input["+Kt+'*="'+On+'"]',$t.element).filter("["+ze.attr("validate")+"!='false']").filter(function(){return Fi.test(Xe(this).attr(Kt))})).length>1&&(Xn=Xn.filter(function(){var Ci=Xe(this);return!Ci.is(":radio")||Ci.val()==Nn}));try{$t._validationEventInProgress=!0,(!$t.validatable.validateInput(Xn)||!Ae&&$t.trigger("change",{values:He}))&&Pt.preventDefault()}finally{$t._validationEventInProgress=!1}},end:function(){return this.validatable.validate()},destroy:function(){var Pt=this;Pt.angular("cleanup",function(){return{elements:Pt.element}}),it.fn.destroy.call(Pt),Pt.options.model.unbind("set",Pt._validateProxy),Pt.options.model.unbind(Ot,Pt._validateProxy),ze.unbind(Pt.element),Pt.validatable&&Pt.validatable.destroy(),ze.destroy(Pt.element),Pt.element.removeData("kendoValidator"),Pt.element.is("["+ze.attr("role")+"=editable]")&&Pt.element.removeAttr(ze.attr("role"))},refresh:function(){var $t,Xn,On,Fi,Ci,xi,Wn,Pt=this,Nn=Pt.options.fields||[],Ae=Pt.options.clearContainer?Pt.element.empty():Pt.element,He=Pt.options.model||{},Kt={};for(Array.isArray(Nn)||(Nn=[Nn]),$t=0,Xn=Nn.length;$t<Xn;$t++)Fi=Ui(On=Nn[$t]),Be(xi=(He.fields||He)[Ci=Fi?On.field:On],Kt),Pt.editor(On,xi);if(Pt.options.target&&Pt.angular("compile",function(){return{elements:Ae,data:Ae.map(function(){return{dataItem:He}})}}),!Xn)for(Ci in Wn=He.fields||He)Be(Wn[Ci],Kt);(function Ht(Pt){Pt.find(":input:not(:button, .k-combobox .k-input, .k-checkbox-list .k-checkbox, .k-radio-list .k-radio, ["+ze.attr("role")+"=listbox], ["+ze.attr("role")+"=upload], ["+ze.attr("skip")+"], [type=file])").each(function(){var $t=ze.attr("bind"),Xn=this.getAttribute($t)||"",Nn="checkbox"===this.type||"radio"===this.type?"checked:":"value:",Ae=this.getAttribute("name")===Rt.antiForgeryTokenName,He=this.name;-1===Xn.indexOf(Nn)&&He&&!Ae&&(Xn+=(Xn.length?",":"")+Nn+He,Xe(this).attr($t,Xn))})})(Ae),Pt.validatable&&Pt.validatable.destroy(),ze.bind(Ae,Pt.options.model),Pt.options.validateOnBlur&&(Pt.options.model.unbind("set",Pt._validateProxy).bind("set",Pt._validateProxy),Pt.options.model.unbind(Ot,Pt._validateProxy).bind(Ot,Pt._validateProxy)),Pt.validatable=new ze.ui.Validator(Ae,{validateOnBlur:Pt.options.validateOnBlur,validationSummary:Pt.options.validationSummary,errorTemplate:Pt.options.errorTemplate||void 0,rules:Kt}),Pt.options.skipFocus||Ae.find(":kendoFocusable").eq(0).trigger("focus")}});return Rt.antiForgeryTokenName="__RequestVerificationToken",St.plugin(Rt),window.kendo}.apply(Bt={},ur=[un,te,re,xn,Fn,Oe]))&&(It=Bt),void 0===(xt=function(){var Xe=window.kendo.jQuery,ze=window.kendo,St=ze.ui,it=St.Widget,Dt=ze.keys,Hn=ze.template,Ui=".k-i-arrow-end-left",Co=".k-i-arrow-end-right",Sn=".k-i-arrow-60-left",Vn=".k-i-arrow-60-right",Dn="k-pager-md k-pager-sm",kn=":kendoFocusable:not([tabindex='-1'])",ui="change",Ot=".kendoPager",Nt=Number.MAX_VALUE,an=!1,$e=ze.template('<a href="\\#" role="button" title="#=text#" aria-label="#=text#" class="k-link k-pager-nav #= wrapClassName #"><span class="k-icon #= className #"></span></a>');function Je(Nn){return Nn.template({idx:Nn.idx,text:Nn.text,ns:ze.ns,numeric:Nn.numeric,title:Nn.title||"",tabindex:Nn.navigatable?0:-1,navigatable:Nn.navigatable})}function Ve(Nn,Ae,He,Kt){return Nn({idx:Ae,text:He||Ae,selected:Kt||!1})}function Ge(Nn,Ae,He,Kt){return $e({className:Nn.substring(1),text:Ae,wrapClassName:He||"",id:Kt||""})}function Be(Nn,Ae,He,Kt){Nn.find(Ae).parent().attr(ze.attr("page"),He).attr("tabindex",Kt?-1:0).attr("aria-disabled",Kt).toggleClass("k-disabled",Kt)}function At(Nn,Ae){Be(Nn,Ui,1,Ae<=1)}function Rt(Nn,Ae){Be(Nn,Sn,Math.max(1,Ae-1),Ae<=1)}function Pt(Nn,Ae,He){Be(Nn,Vn,Math.min(He,Ae+1),Ae>=He)}function $t(Nn,Ae,He){Be(Nn,Co,He,Ae>=He)}var Xn=it.extend({init:function(Nn,Ae){var Kt,On,Fi,He=this;if(it.fn.init.call(He,Nn,Ae),He._createDataSource(Ae=He.options),He.linkTemplate=ze.template(He.options.linkTemplate),He.selectTemplate=ze.template(He.options.selectTemplate),He.numericSelectItemTemplate=ze.template(He.options.numericSelectItemTemplate),Kt=He.page(),On=He.totalPages(),He._refreshHandler=He.refresh.bind(He),He.dataSource.bind(ui,He._refreshHandler),He.downEvent=ze.applyEventMap("down",ze.guid()),an=ze.support.isRtl(Nn),Ae.navigatable&&(He._id=He.element.attr("id")||ze.guid()),He._template(),Ae.previousNext&&(He.element.find(Ui).length||(He.element.append(Ge(Ui,Ae.messages.first,"k-pager-first",He._id)),At(He.element,Kt)),He.element.find(Sn).length||(He.element.append(Ge(Sn,Ae.messages.previous,null,He._id)),Rt(He.element,Kt))),Ae.numeric&&(He._numericWrap||(He._numericWrap=He.element.find(".k-pager-numbers-wrap"),0===He._numericWrap.length&&(He._numericWrap=Xe("<div class='k-pager-numbers-wrap' />").appendTo(He.element))),He._numericSelect||(He._numericSelect=He._numericWrap.find(".k-dropdown"),0===He._numericSelect.length&&(He._numericSelect=Xe("<select aria-label='"+He.options.messages.numbersSelectLabel+"' class='k-dropdown k-picker k-dropdown-list' />").appendTo(He._numericWrap))),He.list||(He.list=He._numericWrap.find(".k-pager-numbers"),0===He.list.length&&(He.list=Xe('<ul class="k-pager-numbers" />').appendTo(He._numericWrap))),Ae.dataSource&&!Ae.dataSource.total()&&(He._numericSelect.empty().append("<option value='0' />"),He.list.empty().append(He.selectTemplate({text:0,tabindex:Ae.navigatalbe?0:-1,navigatable:Ae.navigatable,title:ze.format(Ae.messages.pageButtonLabel,0)})))),Ae.input&&(He.element.find(".k-pager-input").length||He.element.append('<span class="k-pager-input k-label">'+Ae.messages.page+'<span class="k-textbox k-input k-input-md k-rounded-md k-input-solid"><input class="k-input-inner" /></span>'+ze.format(Ae.messages.of,On)+"</span>"),He.element.on("keydown"+Ot,".k-pager-input input",He._keydown.bind(He))),Ae.previousNext&&(He.element.find(Vn).length||(He.element.append(Ge(Vn,Ae.messages.next,null,He._id)),Pt(He.element,Kt,On)),He.element.find(Co).length||(He.element.append(Ge(Co,Ae.messages.last,"k-pager-last",He._id)),$t(He.element,Kt,On))),Ae.pageSizes){if(!He.element.find(".k-pager-sizes").length){var xi=Xe.map(Ae.pageSizes.length?Ae.pageSizes:["all",5,10,20],function(Wn){return Wn.toLowerCase&&"all"===Wn.toLowerCase()?"<option value='all'>"+Ae.messages.allPages+"</option>":"<option>"+Wn+"</option>"});Xe('<span class="k-pager-sizes k-label"><select></select>'+Ae.messages.itemsPerPage+"</span>").appendTo(He.element).find("select").html(xi.join("")).end().appendTo(He.element)}He.element.find(".k-pager-sizes select").val(He.pageSize()),ze.ui.DropDownList&&He.element.find(".k-pager-sizes select").show().attr("aria-label",Ae.messages.pageSizeDropDownLabel).kendoDropDownList(),He.element.on(ui+Ot,".k-pager-sizes select",He._change.bind(He))}Ae.refresh&&(He.element.find(".k-pager-refresh").length||He.element.append('<a role="button" href="#" class="k-pager-refresh k-link" title="'+Ae.messages.refresh+'" aria-label="'+Ae.messages.refresh+'"><span class="k-icon k-i-reload"></span></a>'),He.element.on("click"+Ot,".k-pager-refresh",He._refreshClick.bind(He))),Ae.info&&(He.element.find(".k-pager-info").length||He.element.append('<span class="k-pager-info k-label" />')),He.element.on("click"+Ot,"a",He._click.bind(He)).on(ui+Ot,"select.k-dropdown",He._numericSelectChange.bind(He)).addClass("k-pager-wrap k-widget k-floatwrap"),Ae.autoBind&&He.refresh(),He._resizeHandler=He.resize.bind(He,!0),Xe(window).on("resize"+Ot,He._resizeHandler),(Fi=He._getWidthSizeClass(He.element.outerWidth()))&&He.element.addClass(Fi),He._navigatable(),ze.notify(He)},destroy:function(){var Nn=this;it.fn.destroy.call(Nn),Nn.element.off(Ot),Nn.dataSource.unbind(ui,Nn._refreshHandler),Nn._refreshHandler=null,Xe(window).off("resize"+Ot,this._resizeHandler),ze.destroy(Nn.element),Nn.element=Nn.list=null},events:[ui],options:{name:"Pager",ARIATemplate:"Page navigation, page #=page# of #=totalPages#",selectTemplate:'<li><span role="button" aria-current="page" tabindex="#=tabindex#" aria-label="#=title#" class="k-link k-selected">#=text#</span></li>',linkTemplate:'<li><a role="button" tabindex="#=tabindex#" href="\\#" class="k-link" data-#=ns#page="#=idx#" #if (title !== "") {# title="#=title#" #}#>#=text#</a></li>',numericSelectItemTemplate:'<option value="#= idx #" #if (selected) {# selected="selected" #}#>#= text #</option>',buttonCount:10,autoBind:!0,numeric:!0,info:!0,input:!1,previousNext:!0,pageSizes:!1,refresh:!1,responsive:!0,navigatable:!1,messages:{allPages:"All",display:"{0} - {1} of {2} items",empty:"No items to display",page:"Page",of:"of {0}",itemsPerPage:"items per page",pageButtonLabel:"Page {0}",pageSizeDropDownLabel:"Page sizes drop down",numbersSelectLabel:"Page select",first:"Go to the first page",previous:"Go to the previous page",next:"Go to the next page",last:"Go to the last page",refresh:"Refresh",morePages:"More pages"}},setDataSource:function(Nn){var Ae=this;Ae.dataSource.unbind(ui,Ae._refreshHandler),Ae.dataSource=Ae.options.dataSource=Nn,Nn.bind(ui,Ae._refreshHandler),Ae.options.autoBind&&Nn.fetch()},_aria:function(){this.element.attr({role:"application","aria-roledescription":"pager","aria-keyshortcuts":"Enter ArrowRight ArrowLeft"})},_resize:function(Nn){if(Nn.width){var Ae=this._getWidthSizeClass(Nn.width),He=this.element;Ae?He.hasClass(Ae)||(He.removeClass(Dn),He.addClass(Ae)):He.removeClass(Dn)}},_createDataSource:function(Nn){this.dataSource=ze.data.DataSource.create(Nn.dataSource)},refresh:function(Nn){var He,Kt,Fi,Ae=this,On=1,Ci=Ae.page(),xi="",Wn="",Vt=Ae.options,qt=Ae.pageSize(),bn=Ae._collapsedTotal(),ii=Ae.dataSource._isGroupPaged()?Ae.dataSource.groupsTotal(!0):Ae.dataSource.total(),Vi=Ae.totalPages(),Jn=Ae.linkTemplate,zt=Vt.navigatable,mn=Ae.numericSelectItemTemplate,Qn=Vt.buttonCount;if(!Nn||"itemchange"!=Nn.action){if(Vt.numeric){for(Ci>Qn&&(On=0==(Fi=Ci%Qn)?Ci-Qn+1:Ci-Fi+1),Kt=Math.min(On+Qn-1,Vi),On>1&&(xi+=Je({template:Jn,navigatable:zt,idx:On-1,text:"...",numeric:!1,title:Vt.messages.morePages}),Wn+=Ve(mn,On-1,Vt.messages.morePages)),He=On;He<=Kt;He++)xi+=Je({template:He==Ci?Ae.selectTemplate:Jn,navigatable:zt,idx:He,text:He,numeric:!0,title:ze.format(Vt.messages.pageButtonLabel,He)}),Wn+=Ve(mn,He,He,He==Ci);Kt<Vi&&(xi+=Je({template:Jn,navigatable:zt,idx:He,text:"...",numeric:mn,title:Vt.messages.morePages}),Wn+=Ve(mn,He,Vt.messages.morePages)),""===xi&&(xi=Ae.selectTemplate({text:0,tabindex:zt?0:-1,navigatable:zt,title:ze.format(Vt.messages.pageButtonLabel,0)}),Wn=Xe("<option value='0' />")),Ae.list.html(xi),Ae._numericSelect.html(Wn)}if(Vt.info&&(xi=ii>0?ze.format(Vt.messages.display,Ae.dataSource.options.endless?1:Math.min((Ci-1)*(Ae.dataSource.pageSize()||0)+1,bn),Math.min(Ci*qt,bn),ii):Vt.messages.empty,Ae.element.find(".k-pager-info").html(xi)),Vt.input&&Ae.element.find(".k-pager-input").html(Ae.options.messages.page+'<span class="k-textbox k-input k-input-md k-rounded-md k-input-solid"><input class="k-input-inner" aria-label="'+Ae.options.messages.page+" "+Ci+'"></span>'+ze.format(Vt.messages.of,Vi)).find("input").val(Ci).attr("disabled",ii<1).attr("aria-disabled",ii<1).toggleClass("k-disabled",ii<1),Vt.previousNext&&(At(Ae.element,Ci),Rt(Ae.element,Ci),Pt(Ae.element,Ci,Vi),$t(Ae.element,Ci,Vi)),Vt.pageSizes){var Ai=qt;Ae.element.find(".k-pager-sizes option[value='all']").length>0&&(qt===this.dataSource.total()||qt==Nt)&&(qt="all",Ai=Vt.messages.allPages),Ae.element.find(".k-pager-sizes select").val(qt).filter("["+ze.attr("role")+"=dropdownlist]").kendoDropDownList("value",qt).kendoDropDownList("text",Ai)}Ae._restoreFocus(On,Kt,Vi),Ae._excludeChildrenFromTab(),Ae._updateAria()}},_excludeChildrenFromTab:function(){var Nn=ze._activeElement();this.options.navigatable&&(Nn===this.element[0]||!Xe.contains(this.element[0],Nn))&&this.element.find(kn).attr("tabindex",-1)},_restoreFocus:function(Nn,Ae,He){var Kt=this;Kt.options.navigatable&&(Kt._focusSelected&&(Kt.element.find(".k-selected").trigger("focus"),Kt._focusSelected=null),null!==Kt._focusMore&&(Ae<He&&Kt._focusMore&&Kt.list.find("li").last().find("a").trigger("focus"),!Kt._focusMore&&Nn>1&&Kt.list.find("li").first().find("a").trigger("focus"),Kt._focusMore=null))},_restoreTabIndexes:function(){this.element.find("[tabindex='-1']:not(.k-disabled)").attr("tabindex",0)},_collapsedTotal:function(){return this.dataSource.total()},_keydown:function(Nn){if(Nn.keyCode===ze.keys.ENTER){var Ae=this.element.find(".k-pager-input").find("input"),He=parseInt(Ae.val(),10);(isNaN(He)||He<1||He>this.totalPages())&&(He=this.page()),Ae.val(He),this.page(He)}},_refreshClick:function(Nn){Nn.preventDefault(),this.dataSource.read()},_change:function(Nn){var Ae=Nn.currentTarget.value,He=parseInt(Ae,10),Kt=this.dataSource;isNaN(He)?"all"==(Ae+"").toLowerCase()&&(Kt._pageSize=void 0,Kt._take=void 0,Kt._skip=0,Kt.fetch()):Kt.pageSize(He)},_template:function(){this._ariaTemplate=Hn(this.options.ARIATemplate).bind(this)},_updateAria:function(){this.options.navigatable&&this.element.attr("aria-label",this._ariaTemplate({page:this.page(),totalPages:this.totalPages()}))},_navigatable:function(){var Nn=this;Nn.options.navigatable&&(Nn._aria(),Nn.element.attr("id",Nn._id),Nn._template(),Nn._updateAria(),Nn._tabindex(Nn.element),Nn.element.on("keydown"+Ot,Nn,Nn._keyDown.bind(Nn)),Nn.element.on("focusout"+Ot,function(){Nn.element.removeClass("k-focus")}),Nn.element.on("focusin"+Ot,function(He){Nn.element.addClass("k-focus"),He.target===Nn.element[0]?Nn.element.find(kn).attr("tabindex",-1):Nn.element.removeClass("k-focus")}))},_keyDown:function(Nn){var Kt,Fi,Ae=this,He=Xe(Nn.target),On=!1;He[0]===Ae.element[0]&&Nn.keyCode==Dt.ENTER&&(Ae._restoreTabIndexes(),Ae.element.find(kn).first().trigger("focus"),On=!0),He[0]!==Ae.element[0]&&Nn.keyCode==Dt.ESC&&(Ae.element.trigger("focus"),On=!0),He[0]===Ae.element[0]&&Nn.keyCode==Dt.HOME&&(Ae.page(1),On=!0),He[0]===Ae.element[0]&&Nn.keyCode==Dt.END&&(Ae.page(Ae.totalPages()),On=!0),He[0]===Ae.element[0]&&(Nn.keyCode==(an?Dt.LEFT:Dt.RIGHT)||Nn.keyCode==Dt.PAGEDOWN)&&(Ae.page(Ae.page()+1),On=!0),He[0]===Ae.element[0]&&(Nn.keyCode==(an?Dt.RIGHT:Dt.LEFT)||Nn.keyCode==Dt.PAGEUP)&&(Ae.page(Ae.page()-1||1),On=!0),He[0]!==Ae.element[0]&&Nn.keyCode==Dt.TAB&&(Fi=(Kt=Ae.element.find(kn)).index(He),Nn.shiftKey?Fi-1<0?Kt.last().trigger("focus"):Kt.eq(Fi-1).trigger("focus"):Fi+1<Kt.length?Kt.eq(Fi+1).trigger("focus"):Kt.first().trigger("focus"),On=!0),On&&(Nn.preventDefault(),Nn.stopPropagation())},_numericSelectChange:function(Nn){var Ae=Nn.currentTarget,Kt=parseInt(Ae.value,10);Ae.blur(),this.page(Kt)},_click:function(Nn){var Ae=Xe(Nn.currentTarget);Nn.preventDefault(),this.options.navigatable&&(Ae.attr("title")==this.options.messages.morePages?this._focusMore=Ae.parent().index():!Ae.hasClass("k-pager-refresh")&&!Ae.hasClass("k-pager-nav")&&(this._focusSelected=!0)),Ae.is(".k-disabled")||this.page(parseInt(Ae.attr(ze.attr("page")),10))},totalPages:function(){return Math.ceil((this.dataSource.total()||0)/(this.pageSize()||1))},pageSize:function(){return this.dataSource.pageSize()||this.dataSource.total()},page:function(Nn){if(!Nn)return this.dataSource.total()>0?this.dataSource.page():0;this.trigger("pageChange",{index:Nn})||(this.dataSource.page(Nn),this.trigger(ui,{index:Nn}))},_getWidthSizeClass:function(Nn){var He=Dn.split(" ");return this.options.responsive?Nn<=480?He[1]:Nn<=600?He[0]:null:null}});return St.plugin(Xn),window.kendo}.apply(wt={},ur=[d]))&&(xt=wt),void 0===(Mt=function(){var Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,St="change",Hn="dataBound",Ui="dataBinding",Co=ze.ui.Widget,Sn=ze.keys,kn="> *:not(.k-loading-mask)",ui="progress",en="k-focus",cn="k-selected",Ht="k-edit-item",ft="k-listview-pager",Nt="k-listview-item",Je="role",Ve="aria-label",Ge="aria-multiselectable",Be="aria-activedescendant",Nn="touchstart",Ae=".kendoListView",He=ze._activeElement,Kt=ze.ui.progress,On=ze.data.DataSource,Fi=ze.ui.DataBoundWidget.extend({init:function(Ci,xi){var Wn=this;xi=Array.isArray(xi)?{dataSource:xi}:xi,Co.fn.init.call(Wn,Ci,xi),xi=Wn.options,Wn.wrapper=Ci=Wn.element,Wn._itemId=Ci[0].id?Ci[0].id+"_lv_active":ze.guid()+"_lv_active",Wn._element(),Wn._layout(),Wn._dataSource(),Wn._setContentHeight(),Wn._templates(),Wn._navigatable(),Wn._selectable(),Wn._pageable(),Wn._crudHandlers(),Wn._scrollable(),Wn.options.autoBind&&Wn.dataSource.fetch(),ze.notify(Wn)},events:[St,"cancel",Ui,Hn,"edit","remove","save","kendoKeydown"],options:{name:"ListView",autoBind:!0,selectable:!1,navigatable:!1,pageable:!1,height:null,template:"",altTemplate:"",editTemplate:"",contentTemplate:"<div data-content='true' />",contentElement:"div",bordered:!0,borders:"",layout:"",flex:{direction:"row",wrap:"nowrap"},grid:{},scrollable:!1},setOptions:function(Ci){Co.fn.setOptions.call(this,Ci),this._layout(),this._templates(),this.selectable&&(this.selectable.destroy(),this.selectable=null),this._selectable()},_templates:function(){var Ci=this.options;this.template=ze.template(Ci.template||""),this.altTemplate=ze.template(Ci.altTemplate||Ci.template),this.editTemplate=ze.template(Ci.editTemplate||"")},_item:function(Ci){return this.content.children()[Ci]()},items:function(){return this.content.children(":not(.k-loading-mask)")},dataItem:function(Ci){var xi=ze.attr("uid"),Wn=Xe(Ci).closest("["+xi+"]").attr(xi);return this.dataSource.getByUid(Wn)},setDataSource:function(Ci){this.options.dataSource=Ci,this._dataSource(),this.options.autoBind&&Ci.fetch(),"endless"===this.options.scrollable&&this._bindScrollable()},_unbindDataSource:function(){this.dataSource.unbind(St,this._refreshHandler).unbind(ui,this._progressHandler).unbind("error",this._errorHandler)},_dataSource:function(){var Ci=this,xi=Ci.options.pageable,Wn=Ci.options.dataSource;Xe.isPlainObject(xi)&&xi.pageSize!==Ke&&(Wn.pageSize=xi.pageSize),Ci.dataSource&&Ci._refreshHandler?Ci._unbindDataSource():(Ci._refreshHandler=Ci.refresh.bind(Ci),Ci._progressHandler=Ci._progress.bind(Ci),Ci._errorHandler=Ci._error.bind(Ci)),Ci.dataSource=On.create(Wn).bind(St,Ci._refreshHandler).bind(ui,Ci._progressHandler).bind("error",Ci._errorHandler)},_progress:function(Ci){var xi=this.wrapper;Ci&&this.content.height()&&(xi=this.content),Kt(xi,Ci,{opacity:!0})},_error:function(){Kt(this.content,!1)},_element:function(){var Ci=this.options,xi=Ci.height;this.element.addClass("k-widget k-listview"),this.content=Ci.contentElement?Xe(document.createElement(Ci.contentElement)).appendTo(this.element):this.element,xi&&this.element.css("height",xi)},_layout:function(){var Ci=this,xi=Ci.options,Wn=xi.flex,Vt=xi.grid,bn=["k-widget","k-listview"],ii=Ci.content,Vi=["k-listview-content"];Ci.element.add(ii).removeClass(function(Jn,zt){if(zt.indexOf("k-")>=0)return!0}),!0===xi.bordered&&bn.push("k-listview-bordered"),"string"==typeof xi.borders&&""!==xi.borders&&bn.push("k-listview-borders-"+xi.borders),"string"==typeof xi.contentPadding&&""!==xi.contentPadding&&Vi.push("k-listview-content-padding-"+xi.contentPadding),"string"==typeof xi.layout&&""!==xi.layout&&Vi.push("k-d-"+xi.layout),"flex"===xi.layout&&"object"==typeof Wn&&("string"==typeof Wn.direction&&""!==Wn.direction&&Vi.push("k-flex-"+Wn.direction),"string"==typeof Wn.wrap&&""!==Wn.wrap&&Vi.push("k-flex-"+Wn.wrap)),"grid"===xi.layout&&"object"==typeof Vt&&("number"==typeof Vt.cols?ii.css("grid-template-columns","repeat("+Vt.cols+", 1fr)"):"string"==typeof Vt.cols&&ii.css("grid-template-columns",Vt.cols),"number"==typeof Vt.rows?ii.css("grid-template-rows","repeat("+Vt.rows+", "+(Vt.rowHeight!==Ke?Vt.rowHeight:"1fr")+")"):"string"==typeof Vt.rows&&ii.css("grid-template-rows",Vt.rows),("number"==typeof Vt.gutter||"string"==typeof Vt.gutter)&&ii.css("grid-gap",Vt.gutter)),Ci.element.addClass(bn.join(" ")),Ci.content.addClass(Vi.join(" "))},_setContentHeight:function(){var Wn;this.options.scrollable&&this.wrapper.is(":visible")&&(Wn=this.wrapper.innerHeight(),this.content.height(Wn))},refresh:function(Ci){var Vt,qt,bn,Vi,Jn,xi=this,Wn=xi.dataSource.view(),ii="",zt=xi.template,mn=xi.altTemplate,Qn=xi.options,ci=Qn.selectable||Qn.navigatable?"option":"listitem",Oi=He(),Ai=xi._endlessFetchInProgress,Pn=Ai?xi._skipRerenderItemsCount:0,qn=xi.options.scrollable;if("itemchange"!==(Ci=Ci||{}).action){if(!xi.trigger(Ui,{action:Ci.action||"rebind",items:Ci.items,index:Ci.index})){for(xi._angularItems("cleanup"),Ai||xi._destroyEditable(),Vi=Pn,Jn=Wn.length;Vi<Jn;Vi++)ii+=Vi%2?mn(Wn[Vi]):zt(Wn[Vi]);for(Ai?xi.content.append(ii):xi.content.html(ii),qt=xi.items().not(".k-loading-mask"),xi._ariaAttributes(Wn.length),Vi=Pn,Jn=Wn.length;Vi<Jn;Vi++)(bn=qt.eq(Vi)).addClass(Nt),bn.attr(ze.attr("uid"),Wn[Vi].uid).attr(Je,ci),xi.options.selectable&&bn.attr("aria-selected","false"),xi.options.pageable&&(bn.attr("aria-setsize",xi.dataSource.total()),bn.attr("aria-posinset",xi.dataSource.indexOf(xi.dataItem(bn))+1));xi.content[0]===Oi&&xi.options.navigatable&&(xi._focusNext?xi.current(xi.current().next()):qn||xi.current(qt.eq(0))),xi.element.attr(Be)&&0===xi.element.find("#"+xi.element.attr(Be)).length&&xi.element.removeAttr(Be),xi._setContentHeight(),xi._angularItems("compile"),xi._progress(!1),xi._endlessFetchInProgress=null,xi.trigger(Hn,{action:Ci.action||"rebind",items:Ci.items,index:Ci.index})}}else!xi._hasBindingTarget()&&!xi.editable&&(Vt=Ci.items[0],(bn=xi.items().filter("["+ze.attr("uid")+"="+Vt.uid+"]")).length>0&&(Vi=bn.index(),xi.angular("cleanup",function(){return{elements:[bn]}}),bn.replaceWith(zt(Vt)),(bn=xi.items().eq(Vi)).attr(ze.attr("uid"),Vt.uid),xi.angular("compile",function(){return{elements:[bn],data:[{dataItem:Vt}]}}),xi.trigger("itemChange",{item:bn,data:Vt})))},_ariaAttributes:function(Ci){var xi=this.element,Wn=this.options,Vt=Wn.selectable;0===Ci?(xi.removeAttr(Je),xi.removeAttr(Ge),xi.attr(Ve)&&(this._ariaLabelValue=xi.attr(Ve),xi.removeAttr(Ve))):(xi.attr(Je,Vt||Wn.navigatable?"listbox":"list"),Vt&&ze.ui.Selectable.parseOptions(Vt).multiple&&xi.attr(Ge,!0),this._ariaLabelValue&&xi.attr(Ve,this._ariaLabelValue))},_pageable:function(){var Vt,qt,Ci=this,xi=Ci.options.pageable,Wn=Ci.options.navigatable;xi&&((Vt=Ci.wrapper.find("."+ft)).length||(Vt=Xe("<div />").addClass(ft)),"top"===xi.position?Vt.addClass(ze.format("{0}-{1}",ft,xi.position)).prependTo(Ci.wrapper):Vt.appendTo(Ci.wrapper),Ci.pager&&Ci.pager.destroy(),"object"==typeof xi&&xi instanceof ze.ui.Pager?Ci.pager=xi:(Vt=xi.pagerId?Xe("#"+xi.pagerId):Vt,qt=Xe.extend({},xi,{dataSource:Ci.dataSource,navigatable:Wn,pagerId:null}),Ci.pager=new ze.ui.Pager(Vt,qt)))},_selectable:function(){var xi,Wn,Ci=this,Vt=Ci.options.selectable,qt=Ci.options.navigatable;Vt&&(xi=ze.ui.Selectable.parseOptions(Vt).multiple,Ci.selectable=new ze.ui.Selectable(Ci.element,{aria:!0,multiple:xi,filter:Ci.options.contentElement?".k-listview-content "+kn:kn,change:function(){Ci.trigger(St)}}),qt&&Ci.element.on("keydown"+Ae,function(bn){if(Xe(bn.target).is(Ci.element)&&bn.keyCode===Sn.SPACEBAR){if(Wn=Ci.current(),bn.target==bn.currentTarget&&bn.preventDefault(),xi)if(bn.ctrlKey){if(Wn&&Wn.hasClass(cn))return Wn.removeClass(cn),void Ci.trigger(St)}else Ci.selectable.clear();else Ci.selectable.clear();Ci.selectable.value(Wn),Ci.trigger(St)}}))},_scrollable:function(){var xi=this.options.scrollable;xi&&(this.content.css({"overflow-y":"scroll",position:"relative","-webkit-overflow-scrolling":"touch"}),"endless"===xi&&this._bindScrollable())},_bindScrollable:function(){var Ci=this,xi=Ci._endlessPageSize=Ci.dataSource.options.pageSize;Ci.content.off("scroll"+Ae).on("scroll"+Ae,function(){this.scrollTop+this.clientHeight-this.scrollHeight>=-15&&!Ci._endlessFetchInProgress&&Ci._endlessPageSize<Ci.dataSource.total()&&(Ci._skipRerenderItemsCount=Ci._endlessPageSize,Ci._endlessPageSize=Ci._skipRerenderItemsCount+xi,Ci.dataSource.options.endless=!0,Ci._endlessFetchInProgress=!0,Ci.dataSource.pageSize(Ci._endlessPageSize))})},current:function(Ci){var xi=this,Wn=xi.element,Vt=xi._current,qt=xi._itemId;if(Ci===Ke)return Vt;Vt&&Vt[0]&&(Vt[0].id===qt&&Vt.removeAttr("id"),Vt.removeClass(en),Wn.removeAttr(Be)),Ci&&Ci[0]&&(qt=Ci[0].id||qt,xi._scrollTo(Ci[0]),Wn.attr(Be,qt),Ci.addClass(en).attr("id",qt)),xi._current=Ci},_scrollTo:function(Ci){var Vt,Wn=this.content,qt=!1,bn="scroll";"auto"===Wn.css("overflow")||Wn.css("overflow")===bn||Wn.css("overflow-y")===bn?Vt=Wn[0]:(Vt=window,qt=!0);var ii=function(Vi,Jn){var zt=qt?Xe(Ci).offset()[Vi.toLowerCase()]:Ci["offset"+Vi],mn=Ci["client"+Jn],Qn=Xe(Vt)[bn+Vi](),ci=Xe(Vt)[Jn.toLowerCase()]();zt+mn>Qn+ci?Xe(Vt)[bn+Vi](zt+mn-ci):zt<Qn&&Xe(Vt)[bn+Vi](zt)};ii("Top","Height"),ii("Left","Width")},_navigatable:function(){var Ci=this,Wn=Ci.element,Vt=Ci.content;Ci.options.navigatable&&(Ci._tabindex(),Wn.on("focus"+Ae,function(){var bn=Ci._current;(!bn||!bn.is(":visible"))&&(bn=Ci._item("first")),Ci.current(bn)}).on("focusout"+Ae,function(){Ci._current&&Ci._current.removeClass(en)}).on("keydown"+Ae,Ci,function(bn){var Ai,ii=bn.keyCode,Vi=Ci.current(),Jn=Xe(bn.target),zt=!Jn.is(":button, textarea, a, a > .t-icon, input"),mn=Jn.is(":text, :password"),Qn=ze.preventDefault,ci=Vt.find("."+Ht),Oi=He(),Pn=Ci.options.scrollable;if(!(Jn.hasClass(ft)||!zt&&!mn&&ii!==Sn.ESC||mn&&ii!==Sn.ESC&&ii!==Sn.ENTER)&&((ii===Sn.UP||ii===Sn.LEFT)&&(Vi&&Vi[0]&&(Vi=Vi.prev()),Vi&&Vi[0]?Ci.current(Vi):Pn||Ci.current(Ci._item("last")),Qn(bn)),(ii===Sn.DOWN||ii===Sn.RIGHT)&&(Pn?"endless"!==Ci.options.scrollable||Vi.next().length?(Vi=Vi.next())&&Vi[0]&&Ci.current(Vi):(Ci.content[0].scrollTop=Ci.content[0].scrollHeight,Ci._focusNext=!0):(Vi=Vi.next(),Ci.current(Vi&&Vi[0]?Vi:Ci._item("first"))),Qn(bn)),ii===Sn.PAGEUP&&(Ci.current(null),Ci.dataSource.page(Ci.dataSource.page()-1),Qn(bn)),ii===Sn.PAGEDOWN&&(Ci.current(null),Ci.dataSource.page(Ci.dataSource.page()+1),Qn(bn)),ii===Sn.HOME&&(Ci.current(Ci._item("first")),Qn(bn)),ii===Sn.END&&(Ci.current(Ci._item("last")),Qn(bn)),ii===Sn.ENTER&&(0!==ci.length&&(zt||mn)?(Ai=Ci.items().index(ci),Oi&&Oi.blur(),Ci.save(),Ci.one("dataBound",function(){Ci.element.trigger("focus"),Ci.current(Ci.items().eq(Ai))})):""!==Ci.options.editTemplate&&Ci.edit(Vi)),ii===Sn.ESC)){if(0===(ci=Vt.find("."+Ht)).length)return;Ai=Ci.items().index(ci),Ci.cancel(),Ci.element.trigger("focus"),Ci.current(Ci.items().eq(Ai))}}),Wn.on("mousedown"+Ae+" "+Nn+Ae,Ci.options.contentElement?".k-listview-content "+kn:kn,function(bn){Ci.current(Xe(bn.currentTarget)),Xe(bn.target).is(":button, a, :input, a > .k-icon, textarea")||ze.focusElement(Wn)}.bind(Ci)))},clearSelection:function(){this.selectable.clear()},select:function(Ci){var Wn=this.selectable;return(Ci=Xe(Ci)).length?(Wn.options.multiple||(Wn.clear(),Ci=Ci.first()),void Wn.value(Ci)):Wn.value()},_destroyEditable:function(){this.editable&&(this.editable.destroy(),delete this.editable)},_modelFromElement:function(Ci){var xi=Ci.attr(ze.attr("uid"));return this.dataSource.getByUid(xi)},_closeEditable:function(){var qt,bn,ii,Ci=this,xi=Ci.editable,Wn=Ci.options,Vt=Wn.selectable||Wn.navigatable?"option":"listitem",Vi=Ci.template;return xi&&(xi.element.index()%2&&(Vi=Ci.altTemplate),Ci.angular("cleanup",function(){return{elements:[xi.element]}}),qt=Ci._modelFromElement(xi.element),Ci._destroyEditable(),ii=xi.element.index(),xi.element.replaceWith(Vi(qt)),(bn=Ci.items().eq(ii)).addClass(Nt),bn.attr(ze.attr("uid"),qt.uid),bn.attr(Je,Vt),Ci._hasBindingTarget()&&ze.bind(bn,qt),Ci.angular("compile",function(){return{elements:[bn],data:[{dataItem:qt}]}})),!0},edit:function(Ci){var Vt,bn,xi=this,Wn=xi._modelFromElement(Ci),qt=Wn.uid;xi.cancel(),bn=(Ci=xi.items().filter("["+ze.attr("uid")+"="+qt+"]")).index(),Ci.replaceWith(xi.editTemplate(Wn)),Vt=xi.items().eq(bn).addClass(Ht).attr(ze.attr("uid"),Wn.uid),xi.editable=Vt.kendoEditable({model:Wn,clearContainer:!1,errorTemplate:!1,target:xi}).data("kendoEditable"),xi.trigger("edit",{model:Wn,item:Vt})},save:function(){var Wn,Ci=this,xi=Ci.editable;if(xi){var Vt=xi.element;Wn=Ci._modelFromElement(Vt),xi.end()&&!Ci.trigger("save",{model:Wn,item:Vt})&&(Ci._closeEditable(),Ci.dataSource.sync())}},remove:function(Ci){var xi=this,Wn=xi.dataSource,Vt=xi._modelFromElement(Ci);xi.editable&&(Wn.cancelChanges(xi._modelFromElement(xi.editable.element)),xi._closeEditable()),xi.trigger("remove",{model:Vt,item:Ci})||(Ci.attr("id")===xi.element.attr(Be)&&xi.element.removeAttr(Be),Ci.hide(),Wn.remove(Vt),Wn.sync())},add:function(){var xi,Wn=this.dataSource,Vt=Wn.indexOf((Wn.view()||[])[0]);Vt<0&&(Vt=0),this.cancel(),xi=Wn.insert(Vt,{}),this.edit(this.element.find("[data-uid='"+xi.uid+"']"))},cancel:function(){var Ci=this,xi=Ci.dataSource;if(Ci.editable){var Wn=Ci.editable.element,Vt=Ci._modelFromElement(Wn);Ci.trigger("cancel",{model:Vt,container:Wn})||(xi.cancelChanges(Vt),Ci._closeEditable())}},_crudHandlers:function(){var Ci=this,xi=Nn+Ae,Wn="click"+Ae;Ci.content.on(xi+" "+Wn,".k-edit-button",function(Vt){Vt.preventDefault();var qt=Xe(this).closest("["+ze.attr("uid")+"]");setTimeout(function(){Ci.edit(qt)})}),Ci.content.on(xi+" "+Wn,".k-delete-button",function(Vt){Vt.preventDefault();var qt=Xe(this).closest("["+ze.attr("uid")+"]");setTimeout(function(){Ci.remove(qt)})}),Ci.content.on(Wn,".k-update-button",function(Vt){Ci.save(),Vt.preventDefault()}),Ci.content.on(Wn,".k-cancel-button",function(Vt){Ci.cancel(),Vt.preventDefault()})},destroy:function(){var Ci=this;Co.fn.destroy.call(Ci),Ci._unbindDataSource(),Ci._destroyEditable(),Ci.element.off(Ae),Ci.content.off(Ae),Ci._endlessFetchInProgress=Ci._endlessPageSize=Ci._skipRerenderItemsCount=Ci._focusNext=null,Ci.pager&&Ci.pager.destroy(),ze.destroy(Ci.element)}});return ze.ui.plugin(Fi),window.kendo}.apply(pt={},ur=[d,It,V,xt]))&&(Mt=pt),void 0===(Lt=function(){var Xe=window.kendo.jQuery,ze=window.kendo,St=ze.ui.Widget,it=ze.antiForgeryTokens,Dt=ze.logToConsole,Hn=/\.([^\.]+)$/,Ui=".kendoUpload",Co="select",Sn="upload",Vn="success",Dn="error",kn="complete",ui="cancel",en="pause",cn="resume",Ht="progress",ft="remove",Nt="validationErrors",an="invalidMaxFileSize",$e="invalidMinFileSize",Je="invalidFileExtension",Be="k-focus",At="tabindex",Pt=St.extend({init:function(Pn,qn){var Ni=this;St.fn.init.call(Ni,Pn,qn),Ni.name=Pn.name,Ni.multiple=Ni.options.multiple,Ni.directory=Ni.options.directory,Ni.localization=Ni.options.localization;var Ue=Ni.element;Ni.wrapper=Ue.closest(".k-upload"),0===Ni.wrapper.length&&(Ni.wrapper=Ni._wrapInput(Ue)),Ni._activeInput(Ue),Ni.toggle(Ni.options.enabled);var Ye=Ni._ns=Ui+"-"+ze.guid();Ue.closest("form").on("submit"+Ye,Ni._onParentFormSubmit.bind(Ni)).on("reset"+Ye,Ni._onParentFormReset.bind(Ni)),Ni._initUploadModule(),Ni._toggleDropZone(),Ni.wrapper.on("click",".k-upload-action",Ni._onFileAction.bind(Ni)).on("click",".k-clear-selected",Ni._onClearSelected.bind(Ni)).on("click",".k-upload-selected",Ni._onUploadSelected.bind(Ni)).on("keydown",Ni._onKeyDown.bind(Ni)).on("focusout",Ni._focusout.bind(Ni)),Ni.element.val()&&Ni._onInputChange({target:Ni.element})},events:[Co,Sn,Vn,Dn,kn,ui,"clear",Ht,ft,en,cn],options:{name:"Upload",enabled:!0,multiple:!0,directory:!1,showFileList:!0,template:"",files:[],async:{autoRetryAfter:0,bufferChunkSize:1e7,maxAutoRetries:1,removeVerb:"POST",autoUpload:!0,withCredentials:!0,accept:"*/*; q=0.5, application/json",useArrayBuffer:!1},localization:{select:"Select files...",cancel:"Cancel",retry:"Retry",remove:"Remove",pause:"Pause",resume:"Resume",clearSelectedFiles:"Clear",uploadSelectedFiles:"Upload",dropFilesHere:"Drop files here to upload",invalidFiles:"Invalid file(s). Please check file upload requirements.",statusUploading:"uploading",statusUploaded:"uploaded",statusWarning:"warning",statusFailed:"failed",headerStatusUploading:"Uploading...",headerStatusPaused:"Paused",headerStatusUploaded:"Done",uploadSuccess:"File(s) uploaded successfully.",uploadFail:"File(s) failed to upload.",invalidMaxFileSize:"File size too large.",invalidMinFileSize:"File size too small.",invalidFileExtension:"File type not allowed."},validation:{allowedExtensions:[],maxFileSize:0,minFileSize:0},dropZone:""},_initUploadModule:function(){var Pn=this,qn=Pn.options;if(qn.async.saveUrl){Pn._module=Pn._supportsFormData()?new Nn(Pn):new Xn(Pn),Pn._async=!0;var Ni=qn.files;Ni.length>0&&Pn._renderInitialFiles(Ni)}else Pn._module=new $t(Pn)},setOptions:function(Pn){var qn=this,Ni=qn.element;Xe(qn.options.dropZone).off(qn._ns),St.fn.setOptions.call(qn,Pn),qn.multiple=qn.options.multiple,qn.directory=qn.options.directory,Ni.attr("multiple",!!qn._supportsMultiple()&&qn.multiple),qn.directory&&(Ni.attr("webkitdirectory",qn.directory),Ni.attr("directory",qn.directory)),qn.toggle(qn.options.enabled),qn._initUploadModule(),qn._toggleDropZone()},enable:function(Pn){this.toggle(Pn=typeof Pn>"u"||Pn)},disable:function(){this.toggle(!1)},toggle:function(Pn){this.wrapper.toggleClass("k-disabled",Pn=typeof Pn>"u"?Pn:!Pn),this.element.prop("disabled",Pn)},focus:function(){this.element.trigger("focus")},destroy:function(){var Pn=this,qn=Xe(Pn.options.dropZone);Xe(document).add(Xe(".k-dropzone",Pn.wrapper)).add(Pn.wrapper.closest("form")).off(Pn._ns),qn.length>0&&qn.off(Pn._ns),Xe(Pn.element).off(Ui),St.fn.destroy.call(Pn)},pause:function(Pn){this._module.onPause({target:Xe(Pn,this.wrapper)});var qn=Pn.find(".k-i-pause-sm");qn.removeClass("k-i-pause-sm").addClass("k-i-play-sm").attr("title",this.localization.resume),Xe(qn).parent().attr("aria-label",this.localization.resume)},resume:function(Pn){this._module.onResume({target:Xe(Pn,this.wrapper)});var qn=Pn.find(".k-i-play-sm");qn.removeClass("k-i-play-sm").addClass("k-i-pause-sm").attr("title",this.localization.pause),Xe(qn).parent().attr("aria-label",this.localization.pause)},upload:function(){this._module.onSaveSelected()},getFiles:function(){for(var qn,Ni=[],Ue=this.wrapper.find(".k-file"),Ye=0;Ye<Ue.length;Ye++)if(qn=Xe(Ue[Ye]).data("fileNames"))for(var Me=0;Me<qn.length;Me++)Ni.push(qn[Me]);return Ni},clearAllFiles:function(){var Pn=this;Pn.wrapper.find(".k-file").each(function(Ni,Ue){Pn._removeFileByDomElement(Ue,!1)})},removeAllFiles:function(){var Pn=this;Pn.wrapper.find(".k-file").each(function(Ni,Ue){Pn._removeFileByDomElement(Ue,!0)})},removeFileByUid:function(Pn){this._removeFileByUid(Pn,!0)},clearFileByUid:function(Pn){this._removeFileByUid(Pn,!1)},_removeFileByUid:function(Pn,qn){var Ue;"string"==typeof Pn&&(Ue=Xe(".k-file["+ze.attr("uid")+'="'+Pn+'"]',this.wrapper)).length>0&&this._removeFileByDomElement(Ue,qn)},clearFile:function(Pn){this._removeFile(Pn,!1)},removeFile:function(Pn){this._removeFile(Pn,!0)},_removeFile:function(Pn,qn){var Ye,Ni=this,Ue=Ni.wrapper.find(".k-file");"function"==typeof Pn&&Ue.each(function(Me,pe){Ye=Xe(pe).data("fileNames"),Pn(Ye)&&Ni._removeFileByDomElement(pe,qn)})},_removeFileByDomElement:function(Pn,qn){var Ni=this,Ue={target:Xe(Pn,Ni.wrapper)};Ni.options.async.saveUrl?(Xe(Pn).hasClass("k-file-progress")?Ni._module.onCancel(Ue):Ni._module.onRemove(Ue,{},qn),0===Xe(".k-file",Ni.wrapper).length?Ni._hideHeaderUploadstatus():Ni._updateHeaderUploadStatus()):Ni._module.onRemove(Ue,{},qn)},_addInput:function(Pn){if(Pn[0].nodeType){var qn=this,Ni=Pn.clone().val("");Ni.insertAfter(qn.element).data("kendo"+qn.options.prefix+qn.options.name,qn),Xe(qn.element).hide().attr(At,"-1").removeAttr("id").off(Ui),qn._activeInput(Ni),qn.element.trigger("focus")}},_activeInput:function(Pn){var qn=this,Ni=qn.wrapper;qn.element=Pn,qn.directory&&(Pn.attr("webkitdirectory",qn.directory),Pn.attr("directory",qn.directory)),Pn.attr("multiple",!!qn._supportsMultiple()&&qn.multiple).attr("autocomplete","off").on("click"+Ui,function(Ue){Ni.hasClass("k-disabled")&&Ue.preventDefault()}).on("focus"+Ui,function(){Xe(this).parent().addClass(Be)}).on("blur"+Ui,function(){Xe(this).parent().removeClass(Be)}).on("change"+Ui,qn._onInputChange.bind(qn))},_adjustFocusState:function(Pn,qn){Pn.removeClass(Be),Pn.attr(At,-1),qn.addClass(Be),qn.attr(At,0)},_arrowKeyNavigation:function(Pn,qn,Ni){var Me,Ue=this,Ye=ze.keys;qn===Ye.DOWN?(Pn.preventDefault(),Pn.stopPropagation(),Me=Ue.wrapper.find(".k-upload-files .k-file").first(),Ni.length>0&&(Ni.hasClass("k-upload-action")&&(Ni.removeClass(Be),Ni=Ni.closest(".k-file")),Me=Ni.next()),Ue._adjustFocusState(Ni,Me),(!Me||0===Me.length)&&(Me=Ue.wrapper.find(".k-clear-selected"))):qn===Ye.UP?(Pn.preventDefault(),Pn.stopPropagation(),Me=Ue.wrapper.find(".k-upload-files .k-file:last"),Ni.length>0&&(Ni.hasClass("k-upload-action")&&(Ni.removeClass(Be),Ni=Ni.closest(".k-file")),Me=Ni.prev()),Ue._adjustFocusState(Ni,Me)):qn===Ye.RIGHT?(Ni.hasClass("k-upload-action")?(!(Me=Ni.next(".k-upload-action"))||0===Me.length)&&(Me=Ni.parent().find(".k-upload-action:first")):Ni.length>0&&(Me=Ni.find(".k-upload-action:first")),Me&&Me.length>0&&(Ni.removeClass(Be),Me.addClass(Be))):qn===Ye.LEFT&&(Ni.hasClass("k-upload-action")?(!(Me=Ni.prev(".k-upload-action"))||0===Me.length)&&(Me=Ni.parent().find(".k-upload-action:last")):Ni.length>0&&(Me=Ni.find(".k-upload-action:last")),Me&&Me.length>0&&(Ni.removeClass(Be),Me.addClass(Be))),(!Me||0===Me.length)&&(qn===Ye.UP||qn===Ye.DOWN)&&(Me=Ue.element),Me&&Me.length>0&&(Ue._preventFocusRemove=!0,Me.trigger("focus"))},_asyncCommandKeyNavigation:function(Pn,qn,Ni){var Ue=this,Ye=ze.keys,Me=Xe(qn,Ue.wrapper);if(Ue._retryClicked=!1,Pn===Ye.ESC&&qn.find(".k-i-cancel").length>0)Ue.trigger(ui,Ni),Ue._module.onCancel({target:Me}),Ue._checkAllComplete(),Ue._updateHeaderUploadStatus(),Ue._preventFocusRemove=!0,Ue.element.trigger("focus");else if(Pn===Ye.SPACEBAR)qn.find(".k-i-pause-sm").length>0?(Ue.trigger(en,Ni),Ue.pause(qn),Ue._updateHeaderUploadStatus()):qn.find(".k-i-play-sm").length>0&&(Ue.trigger(cn,Ni),Ue.resume(qn));else if(Pn===Ye.ENTER&&!qn.is(".k-file-progress, .k-file-success, .k-file-invalid")){if(Ue.options.async.chunkSize&&!Ue.options.async.concurrent&&Xe(".k-file-progress",Ue.wrapper).length>0)return;Xe(".k-i-warning",qn).remove(),Xe(".k-progressbar",qn).finish().show(),Ue._module.metaData[Me.data("uid")]||Ue._module.prepareChunk(Me),Ue._module.onRetry({target:Me}),Ue._retryClicked=!0}},_commandKeyNavigation:function(Pn,qn){var Ni=this,Ue=ze.keys,Ye=qn.data("fileNames"),Me=Ni._filesContainValidationErrors(Ye),pe={files:Ye,headers:{}};Pn===Ue.DELETE?Ni.trigger(ft,pe)||(Ni._module.onRemove({target:Xe(qn,Ni.wrapper)},pe,!Me),Ni._preventFocusRemove=!0,Ni.element.trigger("focus")):Pn===Ue.TAB?(qn.removeClass(Be),qn.attr(At,-1)):Ni.options.async.saveUrl&&Ni._asyncCommandKeyNavigation(Pn,qn,pe)},_focusout:function(){var Pn=this.wrapper.find(".k-upload-files .k-file."+Be);this._preventFocusRemove?this._preventFocusRemove=!1:(Pn.removeClass(Be),Pn.attr(At,-1))},_onKeyDown:function(Pn){var Ni=this.wrapper.find(".k-upload-files .k-file."+Be+",.k-upload-action."+Be),Ue=ze.keys,Ye=[Ue.DELETE,Ue.ESC,Ue.ENTER,Ue.SPACEBAR,Ue.TAB],Me=Pn.keyCode;Me===Ue.DOWN||Me===Ue.UP||Me===Ue.LEFT||Me===Ue.RIGHT?this._arrowKeyNavigation(Pn,Me,Ni):Ni.length>0&&Ni.hasClass("k-file")&&Ye.indexOf(Me)>-1&&!this.wrapper.hasClass("k-disabled")&&(Me===Ue.SPACEBAR&&(Pn.preventDefault(),Pn.stopPropagation()),this._commandKeyNavigation(Me,Ni))},_onInputChange:function(Pn){var qn=this,Ni=Xe(Pn.target),Ue=xi(qn._inputFiles(Ni),qn._isAsyncNonBatch());Wn(Ue,qn.options.validation),qn.trigger(Co,{files:Ue})?(qn._addInput(Ni),Ni.remove()):qn._module.onSelect({target:Ni},Ue)},_readDirectory:function(Pn){var qn=new Xe.Deferred,Ni=Pn.createReader(),Ue=[],Ye=function(){Ni.readEntries(function(Me){Me.length?(Ue=Ue.concat(Me),Ye()):qn.resolve(Ue)},qn.reject)};return Ye(),qn.promise()},_readFile:function(Pn){var qn=this,Ni=Pn.fullPath;Pn.file(function(Ue){Ue.relativePath=Ni.slice(1),qn.droppedFolderFiles.push(Ue),qn.droppedFolderCounter--,0===qn.droppedFolderCounter&&setTimeout(function(){0===qn.droppedFolderCounter&&qn.droppedFolderFiles.length&&(qn._proceedDroppedItems(qn.droppedFolderFiles),qn.droppedFolderFiles=[])},0)},function(){Dt("File error.")})},_traverseFileTree:function(Pn,qn){var Ni=this;qn||Ni.droppedFolderCounter--,this._readDirectory(Pn).then(function(Ue){Ni.droppedFolderCounter+=Ue.length;for(var Ye=0;Ye<Ue.length;Ye++)Ue[Ye].isFile?Ni._readFile(Ue[Ye]):Ue[Ye].isDirectory&&Ni._traverseFileTree(Ue[Ye])})},_onDrop:function(Pn){var Ye,qn=Pn.originalEvent.dataTransfer,Ni=this,Ue=qn.files;if(Qn(Pn),Ni.options.directoryDrop&&qn.items){Ye=qn.items.length,Ni.droppedFolderCounter=0,Ni.droppedFolderFiles=[];for(var Me=0;Me<Ye;Me++)if(qn.items[Me].webkitGetAsEntry){var pe=qn.items[Me].webkitGetAsEntry();pe.isDirectory?Ni._traverseFileTree(pe,!0):pe.isFile&&Ni.droppedFolderFiles.push(qn.files[Me])}else Ni._proceedDroppedItems(Ue)}else Ni._proceedDroppedItems(Ue)},_proceedDroppedItems:function(Pn){var qn=this,Ni=xi(Kt(Pn),qn._isAsyncNonBatch());Pn.length>0&&!qn.wrapper.hasClass("k-disabled")&&(!qn.multiple&&Ni.length>1&&Ni.splice(1,Ni.length-1),Wn(Ni,qn.options.validation),qn.trigger(Co,{files:Ni})||qn._module.onSelect({target:Xe(".k-dropzone",qn.wrapper)},Ni))},_filesContainValidationErrors:function(Pn){var qn=!1;return Xe(Pn).each(function(Ni,Ue){if(Ue[Nt]&&Ue[Nt].length>0)return qn=!0,!1}),qn},_isAsyncNonBatch:function(){return this._async&&!this.options.async.batch||!1},_renderInitialFiles:function(Pn){var Ni=0;for(Pn=xi(Pn,!0),Ni=0;Ni<Pn.length;Ni++){var Ue=Pn[Ni],Ye=this._enqueueFile(Ue.name,{fileNames:[Ue]});Ye.addClass("k-file-success").data("files",[Pn[Ni]]),this._supportsRemove()&&this._fileAction(Ye,ft)}},_prepareTemplateData:function(Pn,qn){var Ni=qn.fileNames,Ue={},Ye=0,Me=0;for(Me=0;Me<Ni.length;Me++)Ye+=Ni[Me].size;return Ue.name=Pn,Ue.size=Ye,Ue.files=qn.fileNames,Ue},_prepareDefaultSingleFileEntryTemplate:function(Pn){var Ni=Pn.fileNames[0],Ue=ii(Pn.fileNames),Ye=ze.getFileGroup(Ni.extension,!0),Me=Ni[Nt],pe="";return pe+=Me&&Me.length>0?"<li class='k-file k-file-invalid'><div class='k-progressbar k-hidden'><span class='k-progress'></span></div><span class='k-file-invalid-group-wrapper'><span class='k-file-group k-icon k-i-"+Ye+"'></span><span class='k-file-state'></span></span><span class='k-file-name-size-wrapper'><span class='k-file-name k-file-name-invalid' title='"+Ni.name+"'>"+Ni.name+"</span><span class='k-file-validation-message k-text-error'>"+this.localization[Me[0]]+"</span></span>":"<li class='k-file'><div class='k-progressbar k-hidden'><span class='k-progress'></span></div><span class='k-file-group-wrapper'><span class='k-file-group k-icon k-i-"+Ye+"'></span><span class='k-file-state'></span></span><span class='k-file-name-size-wrapper'><span class='k-file-name' title='"+Ni.name+"'>"+Ni.name+"</span><span class='k-file-size'>"+Ue+"</span></span>",Xe(pe+="<strong class='k-upload-status'></strong>")},_prepareDefaultMultipleFileEntriesTemplate:function(Pn){var pe,lt,Ni=Pn.fileNames,Ue=this._filesContainValidationErrors(Ni),Ye=ii(Ni),Me="";for(Me+=Ue?"<li class='k-file k-file-invalid'><div class='k-progressbar k-hidden'><span class='k-progress'></span></div><span class='k-multiple-files-invalid-group-wrapper'><span class='k-file-group k-icon k-i-files'></span>":"<li class='k-file'><div class='k-progressbar k-hidden'><span class='k-progress'></span></div><span class='k-multiple-files-group-wrapper'><span class='k-file-group k-icon k-i-files'></span>",Me+="<span class='k-file-state'></span></span>",Ni.sort(function(on,zi){return on[Nt]?-1:zi[Nt]?1:0}),Me+="<span class='k-multiple-files-wrapper'>",pe=0;pe<Ni.length;pe++){var yt=ii([lt=Ni[pe]]);Me+="<span class='k-file-name-size-wrapper'>",Me+=lt[Nt]&&lt[Nt].length>0?"<span class='k-file-name k-file-name-invalid' title='"+lt.name+"'>"+lt.name+"</span>":"<span class='k-file-name' title='"+lt.name+"'>"+lt.name+"</span>",Me+="<span class='k-file-size'>"+yt+"</span></span>"}return Me+=Ue?"<span class='k-file-validation-message k-text-error'>"+this.localization.invalidFiles+"</span>":"<span class='k-file-information'>Total: "+Ni.length+" files, "+Ye+"</span>",Xe(Me+="</span><strong class='k-upload-status'></strong>")},_enqueueFile:function(Pn,qn){var Ue,Ye,on,zi,Ni=this,Me=qn.fileNames[0].uid,pe=Xe(".k-upload-files",Ni.wrapper),yt=Ni.options.template;return 0===pe.length&&(pe=Xe("<ul class='k-upload-files k-reset'></ul>").appendTo(Ni.wrapper),Ni.options.showFileList||pe.hide(),Ni.wrapper.removeClass("k-upload-empty")),Ue=Xe(".k-file",pe),yt?(on=Ni._prepareTemplateData(Pn,qn),yt=ze.template(yt),(Ye=Xe("<li class='k-file'>"+yt(on)+"</li>")).find(".k-upload-action").addClass("k-button k-icon-button k-button-md k-rounded-md k-button-flat k-button-flat-base"),Ni.angular("compile",function(){return{elements:Ye,data:[on]}})):Ye=1===qn.fileNames.length?Ni._prepareDefaultSingleFileEntryTemplate(qn):Ni._prepareDefaultMultipleFileEntriesTemplate(qn),Ye.attr(ze.attr("uid"),Me).appendTo(pe).data(qn),Ni._async||Xe(".k-progress",Ye).width("100%"),!Ni.multiple&&Ue.length>0&&(zi={files:Ue.data("fileNames"),headers:{}},Ni.trigger(ft,zi)||Ni._module.onRemove({target:Xe(Ue,Ni.wrapper)},zi)),Ye},_removeFileEntry:function(Pn){var Ue,Ye,Me,Ni=Pn.closest(".k-upload-files");Pn.remove(),Ue=Xe(".k-file",Ni),Ye=Xe(".k-file-success, .k-file-error",Ni),Me=Xe(".k-file-invalid",Ni),(Ye.length===Ue.length||Me.length===Ue.length)&&this._hideActionButtons(),0===Ue.length?(Ni.remove(),this.wrapper.addClass("k-upload-empty"),this._hideHeaderUploadstatus()):this._updateHeaderUploadStatus()},_fileAction:function(Pn,qn,Ni){var Me,Ue={remove:"k-i-x",cancel:"k-i-cancel",retry:"k-i-retry",pause:"k-i-pause-sm"},Ye={remove:"k-i-close",cancel:"k-i-cancel",retry:"k-i-reload-sm",pause:"k-i-pause-sm"};Ue.hasOwnProperty(qn)&&(Ni||this._clearFileAction(Pn),this.options.template?(Me=Pn.find(".k-upload-action").first()).find(".k-icon").length?Me.next(".k-upload-action").length&&Me.next(".k-upload-action").addClass("k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-icon-button").append("<span class='k-button-icon k-icon "+Ye[qn]+" "+Ue[qn]+"' title='"+this.localization[qn]+"'aria-label='"+this.localization[qn]+"'></span>").show():Me.addClass("k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-icon-button").append("<span class='k-button-icon k-icon "+Ye[qn]+" "+Ue[qn]+"' title='"+this.localization[qn]+"'aria-label='"+this.localization[qn]+"'></span>").show():(Ni||Pn.find(".k-upload-status .k-upload-action").remove(),Pn.find(".k-upload-status").append(this._renderAction(Ue[qn],this.localization[qn],Ye[qn]))))},_fileState:function(Pn,qn){var Ni=this.localization,Ye={uploading:{text:Ni.statusUploading},uploaded:{text:Ni.statusUploaded},failed:{text:Ni.statusFailed}}[qn];Ye&&Xe("span.k-file-state",Pn).text(Ye.text)},_renderAction:function(Pn,qn,Ni){return""!==Pn?Xe("<button type='button' class='k-button k-icon-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-upload-action' aria-label='"+qn+"' tabindex='-1'><span class='k-button-icon k-icon "+Ni+" "+Pn+"' title='"+qn+"'></span></button>").on("focus",function(){Xe(this).addClass(Be)}).on("blur",function(){Xe(this).removeClass(Be)}):Xe("<button type='button' class='k-button k-button-md k-rounded-md k-button-solid k-button-solid-base'><span class=\"k-button-text\">"+qn+"</span></button>")},_clearFileAction:function(Pn){Xe(".k-upload-action",Pn).empty().hide()},_onFileAction:function(Pn){var qn=this;if(!qn.wrapper.hasClass("k-disabled")){var Ni=Xe(Pn.target).closest(".k-upload-action"),Ue=Ni.find(".k-icon"),Ye=Ni.closest(".k-file"),Me=Ye.data("fileNames"),pe=qn._filesContainValidationErrors(Me),lt={files:Me,headers:{}};qn._retryClicked=!1,Ue.hasClass("k-i-x")?qn.trigger(ft,lt)||(qn._module.onRemove({target:Xe(Ye,qn.wrapper)},lt,!pe),qn.element.trigger("focus")):Ue.hasClass("k-i-cancel")?(qn.trigger(ui,lt),qn._module.onCancel({target:Xe(Ye,qn.wrapper)}),qn._checkAllComplete(),qn._updateHeaderUploadStatus(),qn.element.trigger("focus")):Ue.hasClass("k-i-pause-sm")?(qn.trigger(en,lt),qn.pause(Ye),qn._updateHeaderUploadStatus()):Ue.hasClass("k-i-play-sm")?(qn.trigger(cn,lt),qn.resume(Ye)):Ue.hasClass("k-i-retry")&&(Xe(".k-i-warning",Ye).remove(),Xe(".k-progressbar",Ye).finish().show(),qn._module.onRetry({target:Xe(Ye,qn.wrapper)}),qn._retryClicked=!0),Ye.addClass(Be)}return!1},_onUploadSelected:function(){return this.wrapper.hasClass("k-disabled")||this._module.onSaveSelected(),!1},_onClearSelected:function(){return!this.wrapper.hasClass("k-disabled")&&!this.trigger("clear",{})&&this.clearAllFiles(),!1},_onFileProgress:function(Pn,qn){qn>100&&(qn=100),Xe(".k-progressbar",Pn.target).removeClass("k-hidden"),this.options.template||(0===Xe(".k-upload-pct",Pn.target).length&&Xe(".k-upload-status",Pn.target).prepend("<span class='k-upload-pct'></span>"),100!==qn?Xe(".k-upload-pct",Pn.target).text(qn+"%"):Xe(".k-upload-pct",Pn.target).remove()),Xe(".k-progress",Pn.target).width(qn+"%"),this.trigger(Ht,{files:Ai(Pn).data("fileNames"),percentComplete:qn})},_onUploadSuccess:function(Pn,qn,Ni){var Ue=this,Ye=Ai(Pn),Me=Ye.data("fileNames"),pe=Ye.find(".k-file-information"),lt=Ye.find(".k-file-size");Ue.trigger(Vn,{files:Ye.data("fileNames"),response:qn,operation:"upload",XMLHttpRequest:Ni})?Ue._setUploadErrorState(Ye):(Ue._fileState(Ye,"uploaded"),Ye.removeClass("k-file-progress").addClass("k-file-success"),pe.length>0?pe.addClass("k-hidden").after('<span class="k-file-validation-message k-text-success">'+Me.length+" "+Ue.localization.uploadSuccess+"</span>"):lt.length>0&&lt.addClass("k-hidden").after('<span class="k-file-validation-message k-text-success">'+Ue.localization.uploadSuccess+"</span>"),Ue._updateHeaderUploadStatus(),Ue._supportsRemove()?Ue._fileAction(Ye,ft):Ue._clearFileAction(Ye)),Ue._hideUploadProgress(Ye),Ue._checkAllComplete()},_onUploadError:function(Pn,qn){var Ni=this,Ue=Ni._module,Ye=Ai(Pn),Me=Ye.data("uid");Ni._setUploadErrorState(Ye),Ni.trigger(Dn,{operation:"upload",files:Ye.data("fileNames"),XMLHttpRequest:qn}),Dt("Server response: "+qn.responseText),Ni.options.async.chunkSize?Ue._decreasePosition&&Ue._decreasePosition(Me):Ni._hideUploadProgress(Ye),Ni._checkAllComplete(),this.options.async.autoRetryAfter&&this._autoRetryAfter(Ye)},_autoRetryAfter:function(Pn){var qn=this,Ni=this._module.retries;Ni&&(Ni[Pn.data("uid")]||(Ni[Pn.data("uid")]=1),Ni[Pn.data("uid")]<=this.options.async.maxAutoRetries&&(Ni[Pn.data("uid")]++,setTimeout(function(){qn._module.performUpload(Pn)},this.options.async.autoRetryAfter)))},_setUploadErrorState:function(Pn){var Ni,qn=this,Ue=Pn.data("fileNames"),Ye=Pn.find(".k-file-information"),Me=Pn.find(".k-file-size");qn._fileState(Pn,"failed"),Pn.removeClass("k-file-progress").addClass("k-file-error"),Ye.length>0?Ye.addClass("k-hidden").after('<span class="k-file-validation-message k-text-error">'+Ue.length+" "+qn.localization.uploadFail+"</span>"):Me.length>0&&Me.addClass("k-hidden").after('<span class="k-file-validation-message k-text-error">'+qn.localization.uploadFail+"</span>"),qn._updateUploadProgress(Pn),(Ni=Xe(".k-upload-pct",Pn)).length>0&&Ni.remove(),this._updateHeaderUploadStatus(),this._fileAction(Pn,"retry"),this._fileAction(Pn,ft,!0),qn._retryClicked&&Pn.trigger("focus")},_updateUploadProgress:function(Pn){var qn=this;if(qn.options.async.chunkSize){var Ni=Pn.data("uid");if(qn._module.metaData){var Ue=qn._module.metaData[Ni];if(Ue){var Ye=Ue.totalChunks?Math.round(Ue.chunkIndex/Ue.totalChunks*100):100;qn._onFileProgress({target:Xe(Pn,qn.wrapper)},Ye)}}}else Xe(".k-progress",Pn).width("100%")},_hideUploadProgress:function(Pn){Xe(".k-progressbar",Pn).delay(1e3).fadeOut(2e3,function(){Xe(this).find(".k-progress").css("width","0%")})},_showActionButtons:function(){var Pn=this,qn=Xe(".k-action-buttons",Pn.wrapper),Ni=Xe(".k-upload-selected",Pn.wrapper),Ue=Xe(".k-clear-selected",Pn.wrapper);0===Ni.length&&(Ni=Pn._renderAction("",this.localization.uploadSelectedFiles).addClass("k-upload-selected").addClass("k-button-solid-primary").removeClass("k-button-solid-base"),Ue=Pn._renderAction("",this.localization.clearSelectedFiles).addClass("k-clear-selected")),qn.length||(qn=Xe("<div />").addClass("k-action-buttons").append(Ue,Ni)),this.wrapper.append(qn)},_hideActionButtons:function(){Xe(".k-action-buttons",this.wrapper).remove()},_showHeaderUploadStatus:function(Pn){var qn=this,Ni=qn.localization,Ue=Xe(".k-dropzone",qn.wrapper),Ye=Xe(".k-upload-status-total",qn.wrapper);0!==Ye.length&&Ye.remove(),Xe(".k-dropzone-hint",qn.wrapper).addClass("k-hidden"),Ye='<strong class="k-upload-status k-upload-status-total"><span class="k-icon"></span></strong>',Pn?(Ye=Xe(Ye).append(Ni.headerStatusUploading)).find(".k-icon").addClass("k-i-upload"):(Ye=Xe(Ye).append(Ni.headerStatusUploaded)).find(".k-icon").addClass("k-i-warning"),Ue.length>0?Ue.append(Ye):Xe(".k-upload-button",qn.wrapper).after(Ye)},_updateHeaderUploadStatus:function(){var pe,lt,Pn=this,qn=Xe(".k-upload-status-total",this.wrapper),Ni=Xe(".k-file",Pn.wrapper).not(".k-file-success, .k-file-error, .k-file-invalid"),Ue=Xe(".k-file-invalid",Pn.wrapper),Ye=Xe(".k-file-error",Pn.wrapper),Me=Xe(".k-file",Pn.wrapper).find(".k-i-play-sm");!Me.length||Me.length!==Ni.length&&Pn.options.async.concurrent?(0===Ni.length||Ue.length>0||Ye.length>0)&&(pe=Xe(".k-file.k-file-error, .k-file.k-file-invalid",Pn.wrapper),qn=Xe(".k-upload-status-total",Pn.wrapper),lt=Xe(".k-icon",qn).removeClass().addClass("k-icon").addClass(0!==pe.length?"k-i-warning":"k-i-check"),qn.html(lt).append(Pn.localization.headerStatusUploaded)):(lt=Xe(".k-icon",qn).removeClass().addClass("k-icon").addClass("k-i-pause-sm"),qn.html(lt).append(Pn.localization.headerStatusPaused))},_hideHeaderUploadstatus:function(){var qn=this.options.dropZone;Xe(".k-upload-status-total",this.wrapper).remove(),""===qn&&Xe(".k-dropzone-hint",this.wrapper).removeClass("k-hidden")},_onParentFormSubmit:function(){var qn=this.element;if(typeof this._module.onAbort<"u"&&this._module.onAbort(),!qn.value){var Ni=Xe(qn);Ni.attr("disabled","disabled"),window.setTimeout(function(){Ni.prop("disabled",!1)},0)}},_onParentFormReset:function(){Xe(".k-upload-files",this.wrapper).remove()},_supportsFormData:function(){return typeof FormData<"u"},_supportsMultiple:function(){var Pn=this._userAgent().indexOf("Windows")>-1;return!(ze.support.browser.opera||ze.support.browser.safari&&Pn)},_supportsDrop:function(){var Pn=this._userAgent().toLowerCase();return!(!/chrome/.test(Pn)&&/safari/.test(Pn)&&/windows/.test(Pn))&&this._supportsFormData()&&this.options.async.saveUrl},_userAgent:function(){return navigator.userAgent},_setupDropZone:function(){var Pn=this,qn=Pn._ns,Ni=Xe(".k-dropzone",Pn.wrapper).on("dragenter"+qn,Qn).on("dragover"+qn,function(Ue){Ue.originalEvent&&(Ue.originalEvent.dataTransfer.dropEffect="copy"),Ue.preventDefault()}).on("drop"+qn,Pn._onDrop.bind(Pn));Ni.find(".k-dropzone-hint").length||Ni.append(Xe("<em class='k-dropzone-hint'>"+Pn.localization.dropFilesHere+"</em>")),ci(Ni,qn,function(){Ni.closest(".k-upload").hasClass("k-disabled")||Ni.addClass("k-dropzone-hovered")},function(){Ni.removeClass("k-dropzone-hovered")}),Pn._bindDocumentDragEventWrappers(Ni)},_setupCustomDropZone:function(){var Pn=this,qn=Xe(Pn.options.dropZone);Pn.wrapper.find(".k-dropzone-hint").length?Xe(".k-dropzone-hint",Pn.wrapper).addClass("k-hidden"):Xe(".k-dropzone",Pn.wrapper).append(Xe("<em class='k-dropzone-hint k-hidden'>"+Pn.localization.dropFilesHere+"</em>"));var Ni=Pn._ns;qn.on("dragenter"+Ni,Qn).on("dragover"+Ni,function(Ue){Ue.originalEvent&&(Ue.originalEvent.dataTransfer.dropEffect="copy"),Ue.preventDefault()}).on("drop"+Ni,Pn._onDrop.bind(Pn)),ci(qn,Ni,function(Ue){Pn.wrapper.hasClass("k-disabled")||(qn.removeClass("k-dropzone-hovered"),qn.addClass("k-dropzone-hovered"),Xe(Ue.target).addClass("k-dropzone-hovered"))},function(){qn.removeClass("k-dropzone-hovered"),qn.find(".k-dropzone-hovered").removeClass("k-dropzone-hovered")}),Pn._bindDocumentDragEventWrappers(qn)},_bindDocumentDragEventWrappers:function(Pn){var qn=this,Ni=qn._ns;ci(Xe(document),Ni,function(){qn.wrapper.hasClass("k-disabled")||(Pn.addClass("k-dropzone-active"),Pn.closest(".k-upload").removeClass("k-upload-empty"),Pn.find(".k-dropzone-hint").removeClass("k-hidden"))},function(){Pn.removeClass("k-dropzone-active"),Pn.find(".k-dropzone-hint").addClass("k-hidden"),0===Xe("li.k-file",Pn.closest(".k-upload")).length&&Pn.closest(".k-upload").addClass("k-upload-empty")})},_toggleDropZone:function(){var Pn=this,qn=Pn.options.dropZone;Pn._supportsDrop()&&(Xe(qn).off(Pn._ns),Xe(".k-dropzone",Pn.wrapper).off(Pn._ns),""!==qn?Pn._setupCustomDropZone():Pn._setupDropZone())},_supportsRemove:function(){return!!this.options.async.removeUrl},_submitRemove:function(Pn,qn,Ni,Ue){var Me=this.options.async.removeField||"fileNames",pe=Xe.extend(qn.data,it());pe[Me]=Pn,ra.ajax({type:this.options.async.removeVerb,dataType:"json",dataFilter:mn,url:this.options.async.removeUrl,traditional:!0,data:pe,headers:qn.headers,success:Ni,error:Ue,xhrFields:{withCredentials:this.options.async.withCredentials}})},_wrapInput:function(Pn){var Ni=this.options,Ue=!!Pn.attr("id")&&Xe("[for='"+Pn.attr("id")+"']").length>0;return Pn.wrap("<div class='k-widget k-upload'><div class='k-dropzone'><div class='k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-upload-button'></div></div></div>"),Ni.async.saveUrl?Pn.closest(".k-upload").addClass("k-upload-async"):Pn.closest(".k-upload").addClass("k-upload-sync"),Pn.closest(".k-upload").addClass("k-upload-empty"),Pn.closest(".k-button").append("<span>"+this.localization.select+"</span>"),!Ue&&!Pn.attr("aria-label")&&Pn.attr("aria-label",this.localization.select),Pn.closest(".k-upload")},_checkAllComplete:function(){0===Xe(".k-file.k-file-progress",this.wrapper).length&&this.trigger(kn)},_inputFiles:function(Pn){return He(Pn)}}),$t=function(Pn){this.name="syncUploadModule",this.element=Pn.wrapper,this.upload=Pn,this.element.closest("form").attr("enctype","multipart/form-data").attr("encoding","multipart/form-data")},Xn=($t.prototype={onSelect:function(Pn,qn){var Ni=this.upload,Ue=Xe(Pn.target),Ye=Ni._filesContainValidationErrors(qn);Ni._addInput(Ue);var Me={fileNames:qn};Ye?Ue.remove():Me.relatedInput=Ue;var pe=Ni._enqueueFile(Ae(Ue),Me);Ye&&Ni._hideUploadProgress(pe),Ni._fileAction(pe,ft)},onRemove:function(Pn){var qn=Ai(Pn),Ni=qn.data("relatedInput");Ni&&Ni.remove(),this.upload._removeFileEntry(qn)}},function(Pn){this.name="iframeUploadModule",this.element=Pn.wrapper,this.upload=Pn,this.iframes=[]}),Nn=(Pt._frameId=0,Xn.prototype={onSelect:function(Pn,qn){var Ni=this.upload,Ue=Xe(Pn.target),Ye=Ni._filesContainValidationErrors(qn),Me=this.prepareUpload(Ue,qn,Ye);Ni.options.async.autoUpload?Ye?(Ni._fileAction(Me,ft),Ni._showHeaderUploadStatus(!1)):this.performUpload(Me):(Ni._fileAction(Me,ft),Ye?Ni._updateHeaderUploadStatus():Ni._showActionButtons()),Ye&&Ni._hideUploadProgress(Me)},prepareUpload:function(Pn,qn,Ni){var pe,lt,yt,on,Ue=this.upload,Ye=Xe(Ue.element),Me=Ue.options.async.saveField||Pn.attr("name");return Ue._addInput(Pn),Pn.attr("name",Me),Ni?(Pn.remove(),lt={fileNames:qn}):(yt=this.createFrame(Ue.name+"_"+Pt._frameId++),this.registerFrame(yt),on=this.createForm(Ue.options.async.saveUrl,yt.attr("name")).append(Ye),lt={frame:yt,relatedInput:Ye,fileNames:qn}),pe=Ue._enqueueFile(Ae(Pn),lt),yt&&yt.data({form:on,file:pe}),pe},performUpload:function(Pn){var qn={files:Pn.data("fileNames")},Ni=Pn.data("frame"),Ue=this.upload,Ye=Pn.find(".k-file-validation-message"),Me=Pn.find(".k-file-information"),pe=Pn.find(".k-file-size");if(Ue.trigger(Sn,qn))Ue._removeFileEntry(Ni.data("file")),this.cleanupFrame(Ni),this.unregisterFrame(Ni);else{Ue._hideActionButtons(),Ue._showHeaderUploadStatus(!0),Ni.appendTo(document.body);var lt=Ni.data("form").attr("action",Ue.options.async.saveUrl).appendTo(document.body);for(var yt in qn.data=Xe.extend({},qn.data,it()),qn.data){var on=lt.find("input[name='"+yt+"']");0===on.length&&(on=Xe("<input>",{type:"hidden",name:yt}).prependTo(lt)),on.val(qn.data[yt])}Ue._fileAction(Pn,ui),Ue._fileState(Pn,"uploading"),Xe(Pn).removeClass("k-file-error").addClass("k-file-progress"),Ye.length>0&&Ye.remove(),Me.length>0?Me.removeClass("k-hidden"):pe.length>0&&pe.removeClass("k-hidden"),Ni.one("load",this.onIframeLoad.bind(this)),lt[0].submit()}},onSaveSelected:function(){var Pn=this,qn=Pn.upload;Xe(".k-file",this.element).each(function(){var Ni=Xe(this),Ue=Oi(Ni),Ye=qn._filesContainValidationErrors(Ni.data("fileNames"));!Ue&&!Ye&&Pn.performUpload(Ni)})},onIframeLoad:function(Pn){var Ni,qn=Xe(Pn.target);try{Ni=qn.contents().text()}catch(Ue){Ni="Error trying to get server response: "+Ue}this.processResponse(qn,Ni)},processResponse:function(Pn,qn){var Ni=Pn.data("file"),Ue=this,Ye={responseText:qn};zt(qn,function(Me){Xe.extend(Ye,{statusText:"OK",status:"200"}),Ue.upload._onFileProgress({target:Xe(Ni,Ue.upload.wrapper)},100),Ue.upload._onUploadSuccess({target:Xe(Ni,Ue.upload.wrapper)},Me,Ye),Ue.cleanupFrame(Pn),Ue.unregisterFrame(Pn)},function(){Xe.extend(Ye,{statusText:"error",status:"500"}),Ue.upload._onUploadError({target:Xe(Ni,Ue.upload.wrapper)},Ye)})},onCancel:function(Pn){var qn=Xe(Pn.target).data("frame");this.stopFrameSubmit(qn),this.cleanupFrame(qn),this.unregisterFrame(qn),this.upload._removeFileEntry(qn.data("file"))},onRetry:function(Pn){var qn=Ai(Pn);this.performUpload(qn)},onRemove:function(Pn,qn,Ni){var Ye=this.upload,Me=Ai(Pn),pe=Me.data("frame");pe?(this.unregisterFrame(pe),Ye._removeFileEntry(Me),this.cleanupFrame(pe)):Me.hasClass("k-file-success")?Jn(Me,Ye,qn,Ni):Ye._removeFileEntry(Me)},onAbort:function(){var Pn=this.element,qn=this;Xe.each(this.iframes,function(){Xe("input",this.data("form")).appendTo(Pn),qn.stopFrameSubmit(this[0]),this.data("form").remove(),this.remove()}),this.iframes=[]},createFrame:function(Pn){return Xe("<iframe name='"+Pn+"' id='"+Pn+"' style='display:none;' />")},createForm:function(Pn,qn){return Xe("<form enctype='multipart/form-data' method='POST' action='"+Pn+"' target='"+qn+"'/>")},stopFrameSubmit:function(Pn){typeof Pn.stop<"u"?Pn.stop():Pn.document&&Pn.document.execCommand("Stop")},registerFrame:function(Pn){this.iframes.push(Pn)},unregisterFrame:function(Pn){this.iframes=Xe.grep(this.iframes,function(qn){return qn.attr("name")!=Pn.attr("name")})},cleanupFrame:function(Pn){var qn=Pn.data("form");Pn.data("file").data("frame",null),setTimeout(function(){qn.remove(),Pn.remove()},1)}},function(Pn){this.name="formDataUploadModule",this.element=Pn.wrapper,this.upload=Pn,this.position={},this.metaData={},this.cancelled={},this.resume={},this.paused={},this.retries={}});function Ae(Pn){return Xe.map(He(Pn),function(qn){return qn.name}).join(", ")}function He(Pn){var qn=Pn[0];return qn.files?Kt(qn.files):[{name:Ci(qn.value),extension:Fi(qn.value),size:null}]}function Kt(Pn){return Xe.map(Pn,function(qn){return function On(Pn){var qn=Pn.name||Pn.fileName;return{name:ze.htmlEncode(qn),extension:Fi(qn),size:"number"==typeof Pn.size?Pn.size:Pn.fileSize,rawFile:Pn}}(qn)})}function Fi(Pn){var qn=Pn.match(Hn);return qn?qn[0]:""}function Ci(Pn){var qn=Pn.lastIndexOf("\\");return-1!=qn?Pn.substr(qn+1):Pn}function xi(Pn,qn){var Ni=ze.guid();return Xe.map(Pn,function(Ue){return Ue.uid=qn?ze.guid():Ni,Ue})}function Wn(Pn,qn){for(var Ni=function Vt(Pn){var qn=Xe.map(Pn,function(Ni){return("."===Ni.substring(0,1)?Ni:"."+Ni).toLowerCase()});return qn}(qn.allowedExtensions),Ue=qn.maxFileSize,Ye=qn.minFileSize,Me=0;Me<Pn.length;Me++)qt(Pn[Me],Ni),bn(Pn[Me],Ye,Ue)}function qt(Pn,qn){qn.length>0&&qn.indexOf(Pn.extension.toLowerCase())<0&&(Pn.validationErrors=Pn.validationErrors||[],-1===Xe.inArray(Je,Pn.validationErrors)&&Pn.validationErrors.push(Je))}function bn(Pn,qn,Ni){0!==qn&&Pn.size<qn&&(Pn.validationErrors=Pn.validationErrors||[],-1===Xe.inArray($e,Pn.validationErrors)&&Pn.validationErrors.push($e)),0!==Ni&&Pn.size>Ni&&(Pn.validationErrors=Pn.validationErrors||[],-1===Xe.inArray(an,Pn.validationErrors)&&Pn.validationErrors.push(an))}function ii(Pn){var qn=0;if("number"!=typeof Pn[0].size)return"";for(var Ni=0;Ni<Pn.length;Ni++)Pn[Ni].size&&(qn+=Pn[Ni].size);return(qn/=1024)<1024?qn.toFixed(2)+" KB":(qn/1024).toFixed(2)+" MB"}function Vi(Pn){return!Pn.multiple&&Xe(".k-file",Pn.wrapper).length>1}function Jn(Pn,qn,Ni,Ue){if(qn._supportsRemove()){var Ye=Pn.data("fileNames"),Me=Xe.map(Ye,function(pe){return pe.name});!1!==Ue?qn._submitRemove(Me,Ni,function(lt,yt,on){qn.trigger(Vn,{operation:"remove",files:Ye,response:lt,XMLHttpRequest:on})||qn._removeFileEntry(Pn)},function(lt){Vi(qn)&&qn._removeFileEntry(Pn),qn.trigger(Dn,{operation:"remove",files:Ye,XMLHttpRequest:lt}),Dt("Server response: "+lt.responseText)}):qn._removeFileEntry(Pn)}else(Vi(qn)||!Ue)&&qn._removeFileEntry(Pn)}function zt(Pn,qn,Ni){var Ue=!1,Ye="";try{Ye=JSON.parse(mn(Pn)),Ue=!0}catch{Ni()}Ue&&qn(Ye)}function mn(Pn){return(typeof Pn>"u"||""===Pn)&&(Pn="{}"),Pn}function Qn(Pn){Pn.originalEvent&&(Pn.originalEvent.dataTransfer.dropEffect="copy"),Pn.stopPropagation(),Pn.preventDefault()}function ci(Pn,qn,Ni,Ue){var Ye,Me;Pn.on("dragenter"+qn,function(pe){Ni(pe),Me=new Date,Ye||(Ye=setInterval(function(){new Date-Me>100&&(Ue(),clearInterval(Ye),Ye=null)},100))}).on("dragover"+qn,function(){Me=new Date})}function Oi(Pn){return Pn.is(".k-file-progress, .k-file-success, .k-file-error")}function Ai(Pn){return Xe(Pn.target).closest(".k-file")}return Nn.prototype={onSelect:function(Pn,qn){var pe,lt,Ni=this.upload,Ue=this,Ye=Xe(Pn.target),Me=this.prepareUpload(Ye,qn);Xe.each(Me,function(yt){pe=Ni._filesContainValidationErrors(Xe(this.data("fileNames"))),Ni.options.async.autoUpload?pe?(Ni._fileAction(this,ft),Ni._showHeaderUploadStatus(!1)):Ni.options.async.chunkSize?(Ue.prepareChunk(this),lt=this.prev(),(Ni.options.async.concurrent||0===yt&&!lt.length||0===yt&&lt.hasClass("k-file-success"))&&Ue.performUpload(this)):Ue.performUpload(this):(Ni._fileAction(this,ft),pe?Ni._updateHeaderUploadStatus():(Ni._showActionButtons(),this.addClass("k-toupload"))),pe&&Ni._hideUploadProgress(this)})},prepareUpload:function(Pn,qn){var Ni=this.enqueueFiles(qn);return Pn.is("input")&&(Xe.each(Ni,function(){Xe(this).data("relatedInput",Pn)}),Pn.data("relatedFileEntries",Ni),this.upload._addInput(Pn)),Ni},enqueueFiles:function(Pn){var Ni,Ue,Me,pe,qn=this.upload,Ye=Pn.length,lt=[];if(!0===qn.options.async.batch)Ni=Xe.map(Pn,function(yt){return yt.name}).join(", "),(qn.directory||qn.options.directoryDrop)&&Xe(Pn).each(function(){(this.rawFile.webkitRelativePath||this.rawFile.relativePath)&&(this.name=this.rawFile.webkitRelativePath||this.rawFile.relativePath)}),(pe=qn._enqueueFile(Ni,{fileNames:Pn})).data("files",Pn),lt.push(pe);else for(Ue=0;Ue<Ye;Ue++)Ni=(Me=Pn[Ue]).name,(qn.directory||qn.options.directoryDrop)&&(Me.rawFile.webkitRelativePath||Me.rawFile.relativePath)&&(Me.name=Me.rawFile.webkitRelativePath||Me.rawFile.relativePath),(pe=qn._enqueueFile(Ni,{fileNames:[Me]})).data("files",[Me]),lt.push(pe);return lt},performUpload:function(Pn){var Me,qn=this.upload,Ni=this.createFormData(),Ue=this.createXHR(),Ye={files:Pn.data("fileNames"),XMLHttpRequest:Ue},pe=Pn.find(".k-file-validation-message"),lt=Pn.find(".k-file-information"),yt=Pn.find(".k-file-size");if(qn.trigger(Sn,Ye))this.removeFileEntry(Pn);else{if(0===Pn.find(".k-i-cancel").length&&(qn.options.async.chunkSize&&qn._fileAction(Pn,en),qn._fileAction(Pn,ui,qn.options.async.chunkSize)),qn.wrapper.find(".k-toupload").length||qn._hideActionButtons(),qn._showHeaderUploadStatus(!0),Ye.formData)Ni=Ye.formData;else{for(var on in Ye.data=Xe.extend({},Ye.data,it()),Ye.data)Ni.append(on,Ye.data[on]);(Me=Pn.data("files"))&&this.populateFormData(Ni,Me)}qn._fileState(Pn,"uploading"),Xe(Pn).removeClass("k-file-error").addClass("k-file-progress"),pe.length>0&&pe.remove(),lt.length>0?lt.removeClass("k-hidden"):yt.length>0&&yt.removeClass("k-hidden"),qn.options.async.useArrayBuffer&&window.FileReader?this._readFile(qn.options.async.saveUrl,Ni,Pn,Ue):this.postFormData(qn.options.async.saveUrl,Ni,Pn,Ue)}},_readFile:function(Pn,qn,Ni,Ue){var Ye=this,Me=Ye.upload,pe=Ni.data("files")[0],lt=new FileReader;lt.onload=function(yt){try{Ye.fileArrayBuffer=Ye.fileArrayBuffer?Ye._appendBuffer(Ye.fileArrayBuffer,yt.target.result):yt.target.result}catch{return void Me._onUploadError({target:Xe(Ni,Me.wrapper)},Ue)}Ye.position[pe.uid]>pe.size?(Ye.postFormData(Me.options.async.saveUrl,Ye.fileArrayBuffer,Ni,Ue),Ye.fileArrayBuffer=null):Ye._readFile(Pn,qn,Ni,Ue)},lt.onerror=function(){Me._onUploadError({target:Xe(Ni,Me.wrapper)},Ue)},lt.readAsArrayBuffer(Ye._getCurrentChunk(pe.rawFile,pe.uid))},_appendBuffer:function(Pn,qn){var Ni=new Uint8Array(Pn.byteLength+qn.byteLength);return Ni.set(new Uint8Array(Pn),0),Ni.set(new Uint8Array(qn),Pn.byteLength),Ni.buffer},onSaveSelected:function(){var Pn=this,qn=Pn.upload;Xe(".k-toupload",this.element).filter(function(){var Ni=Xe(this),Ue=Oi(Ni),Ye=qn._filesContainValidationErrors(Ni.data("fileNames"));return!Ue&&!Ye}).each(function(Ni){var Ue=Xe(this),Ye=Ue.prev();Ue.removeClass("k-toupload"),qn.options.async.chunkSize?(Pn.prepareChunk(Ue),(qn.options.async.concurrent||0===Ni&&!Ye.length||0===Ni&&Ye.hasClass("k-file-success")||Ye.hasClass("k-file-error"))&&Pn.performUpload(Ue)):Pn.performUpload(Ue)})},onCancel:function(Pn){var qn=Ai(Pn);this.upload.options.async.chunkSize&&(this.cancelled[qn.data("uid")]=!0),this.stopUploadRequest(qn),this.removeFileEntry(qn)},onPause:function(Pn){var Ni=Ai(Pn).data("uid"),Ue=this.upload.options.async;Ue.chunkSize&&(this.retries[Ni]=Ue.maxAutoRetries+1,this.paused[Ni]=!0,this.resume[Ni]=!1)},onResume:function(Pn){var qn=Ai(Pn),Ni=qn.data("uid");this.upload.options.async.chunkSize&&(delete this.paused[Ni],this.resume[Ni]=!0,this.retries[qn.data("uid")]=1,this._increaseChunkIndex(Ni),this.performUpload(qn))},onRetry:function(Pn){var qn=Ai(Pn),Ni=this.upload.options.async;Ni.chunkSize&&(this.retries[qn.data("uid")]=Ni.maxAutoRetries+1,delete this.paused[qn.data("uid")]),this.performUpload(qn)},onRemove:function(Pn,qn,Ni){var Ye=this.upload,Me=Ai(Pn),pe=this.upload.options.async;pe.chunkSize&&(this.retries[Me.data("uid")]=pe.maxAutoRetries+1),Me.hasClass("k-file-success")?Jn(Me,Ye,qn,Ni):this.removeFileEntry(Me)},createXHR:function(){return new XMLHttpRequest},postFormData:function(Pn,qn,Ni,Ue){var Ye=this;Ni.data("request",Ue),Ue.addEventListener("load",function(pe){Ye.onRequestSuccess.call(Ye,pe,Ni)},!1),Ue.addEventListener(Dn,function(pe){Ye.onRequestError.call(Ye,pe,Ni)},!1),Ue.upload.addEventListener("progress",function(pe){Ye.onRequestProgress.call(Ye,pe,Ni)},!1),Ue.open("POST",Pn,!0),Ue.withCredentials=this.upload.options.async.withCredentials;var Me=this.upload.options.async.accept;Me&&Ue.setRequestHeader("Accept",Me),Ue.send(qn)},createFormData:function(){return new FormData},populateFormData:function(Pn,qn){var Ni,Ue,Me,Ye=qn.length,pe=this.upload;if(pe.options.async.chunkSize){Ni=this._getCurrentChunk(qn[0].rawFile,Me=qn[0].uid),Pn.append(pe.options.async.saveField||pe.name,Ni);var lt=JSON.stringify(this.metaData[Me]);Pn.append("metadata",lt)}else for(Ue=0;Ue<Ye;Ue++)Pn.append(pe.options.async.saveField||pe.name,qn[Ue].rawFile);return Pn},onRequestSuccess:function(Pn,qn){var Ni=Pn.target,Ue=this;function Ye(){Ue.upload._onUploadError({target:Xe(qn,Ue.upload.wrapper)},Ni)}Ni.status>=200&&Ni.status<=299?zt(Ni.responseText,function Me(pe){var lt=Ue.upload.options.async.batch,yt=Ue.upload.options.async.chunkSize,on=Ue.upload.options.async.concurrent,zi=pe.fileUid;Ue.paused[zi]||Ue.cancelled[zi]||(delete Ue.retries[zi],!yt||lt||pe.uploaded?!yt||lt||on||!qn.next().length||qn.next().hasClass("k-toupload")?(Ue.upload._onFileProgress({target:Xe(qn,Ue.upload.wrapper)},100),Ue.upload._onUploadSuccess({target:Xe(qn,Ue.upload.wrapper)},pe,Ni),Ue.cleanupFileEntry(qn)):(Ue.upload._onFileProgress({target:Xe(qn,Ue.upload.wrapper)},100),Ue._resetChunkIndex(zi),Ue.upload._onUploadSuccess({target:Xe(qn,Ue.upload.wrapper)},pe,Ni),Ue.performUpload(qn.next())):(Ue._increaseChunkIndex(zi),Ue.performUpload(qn)))},Ye):Ye()},onRequestError:function(Pn,qn){var Ni=Pn.target;this.upload._onUploadError({target:Xe(qn,this.upload.wrapper)},Ni)},cleanupFileEntry:function(Pn){var qn=Pn.data("relatedInput"),Ni=!0;qn&&(Xe.each(qn.data("relatedFileEntries")||[],function(){this.parent().length>0&&this[0]!=Pn[0]&&(Ni=Ni&&this.hasClass("k-file-success"))}),Ni&&qn.remove())},removeFileEntry:function(Pn){var qn=this.upload.options.async.chunkSize,Ni=this.upload.options.async.concurrent,Ue=this.upload.wrapper.find(".k-upload-selected").length>0;this.cleanupFileEntry(Pn),qn&&!Ni&&!Ue&&Pn.next().length&&this.performUpload(Pn.next()),this.upload._removeFileEntry(Pn)},onRequestProgress:function(Pn,qn){var Ye,Ni=Math.round(100*Pn.loaded/Pn.total),Ue=qn.data("uid");this.upload.options.async.chunkSize&&(Ni=(Ye=this.metaData[Ue])&&Ye.totalChunks?Math.round(Ye.chunkIndex/Ye.totalChunks*100):100),this.upload._onFileProgress({target:Xe(qn,this.upload.wrapper)},Ni)},stopUploadRequest:function(Pn){Pn.data("request")&&Pn.data("request").abort()},prepareChunk:function(Pn){var qn=Pn.data("files")[0],Ni=qn.rawFile,Ue=qn.uid,Ye=this.upload.options.async.chunkSize;this.position[Ue]=0,this.metaData[Ue]={chunkIndex:0,contentType:Ni.type,fileName:Ni.name,relativePath:qn.name,totalFileSize:Ni.size,totalChunks:Math.ceil(Ni.size/Ye),uploadUid:Ue}},_decreaseChunkIndex:function(Pn){this.metaData[Pn].chunkIndex--},_increaseChunkIndex:function(Pn){this.metaData[Pn].chunkIndex++},_resetChunkIndex:function(Pn){this.metaData[Pn].chunkIndex=0},_decreasePosition:function(Pn){this.position[Pn]-=this.upload.options.async.chunkSize},_getCurrentChunk:function(Pn,qn){var Ue,Ni=this.position[qn],Ye=this.upload.options.async,Me=Ye.chunkSize||Ye.bufferChunkSize;return this.position[qn]||(this.position[qn]=0),this.position[qn]+=Me,(Ue=this._getChunker(Pn))?Pn[Ue](Ni,this.position[qn]):Pn},_getChunker:function(Pn){return Pn.slice?"slice":Pn.mozSlice?"mozSlice":Pn.webkitSlice?"webkitSlice":null}},ze.ui.plugin(Pt),window.kendo}.apply(tt={},ur=[e]))&&(Lt=tt),void 0===(Ne=function(){var Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,St=ze.ui.Widget,it=Xe.extend,Dt=Xe.isPlainObject,Hn=".kendoBreadcrumb",Ui="aria-hidden",Sn="click",kn="keydown",Ot=".",en={widget:"k-widget k-breadcrumb",overlay:"k-breadcrumb-container",textbox:"k-input-inner",textboxWrapper:"k-textbox k-input k-input-md k-rounded-md k-input-solid",link:"k-breadcrumb-link",item:"k-breadcrumb-item",delimiter:"k-breadcrumb-delimiter-icon",rootItem:"k-breadcrumb-root-item",rootLink:"k-breadcrumb-root-link",overflowIcon:"k-breadcrumb-overflow-icon",focused:"k-focus",hidden:"k-hidden",inputWrapper:"k-breadcrumb-input-container"},cn=St.extend({init:function(Ht,ft){var Nt=this;St.fn.init.call(Nt,Ht,ft=ft||{}),Nt._wrapper(),ft.editable&&(Nt._editable(),Nt._tabindex()),Nt.wrapper.on(Sn+Hn,"a:not(.k-disabled)",Nt._click.bind(Nt)),ft.value||ft.bindToLocation||!ft.items?Nt._value():ft.items&&Nt.items(ft.items),Nt._resizeHandler=ze.onResize(function(){Nt.resize(!0)})},options:{editable:!1,navigational:!1,bindToLocation:!1,items:null,name:"Breadcrumb",gap:0,rootIcon:"home",delimiterIcon:"arrow-chevron-right",messages:{rootTitle:"Go to root"}},events:["change",Sn],destroy:function(){var Ht=this;St.fn.destroy.call(Ht),ze.unbindResize(Ht._resizeHandler),Ht.wrapper.add(Ht.wrapper.find("input")).add(Ht.wrapper.find("a")).off(Hn)},items:function(Ht){if(Ht===Ke)return this.options.items;this.options.items=Ht,this._segments=Ht,this.refresh()},_update:function(Ht){Ht!==this.value()&&(this._generateSegments(Ht),this.refresh(),this.trigger("change",{sender:this,value:Ht}))},_generateSegments:function(Ht){var $e,Je,ft=this,an=ft.options.items;if(Je=ft._split(Ht),an){ft._segments=[];for(var Ve=0;Ve<Je.length;Ve++)""!==($e=ft._path(an.slice(0,Ve+1)))&&Ht.indexOf($e)>-1&&an[Ve]&&an[Ve].text===Je[Ve]?ft._segments.push(an[Ve]):ft._segments.push(Je[Ve])}else ft.options.items=ft._segments=Je},_click:function(Ht){var ft=this,Nt=ft.options,an=Xe(Ht.target).closest(Ot+en.item),$e=an.prevAll().addBack(),Je=ft._getItems($e),Ve=ft._path(Je),Ge=ft._segments[an.index()];Nt.navigational||Ht.preventDefault(),ft.trigger(Sn,{sender:ft,originalEvent:Ht,isRoot:"rootitem"===Ge.type,item:Ge})||ft._update(Ve)},_getItems:function(Ht){var ft=this;return Xe.map(Ht,function(Nt){return ft._segments[Xe(Nt).index()]||Nt.innerText})},_edit:function(){var Ht=this,ft=Ht.input;Ht.oldValue=Ht.value(),Ht.inputWrapper.css("height",Ht.wrapper.height()),Ht.overlay.hide(),Ht.input.val(Ht.value()),Ht.input.attr(Ui,!1),Ht.inputWrapper.show(),setTimeout(function(){ft.select()})},_blur:function(Ht){var ft=this,Nt=ft.input,an=ft.inputWrapper,$e=ft.wrapper,Je=ft.overlay,Ve=Nt.val().replace(/\/{2,}/g,"/");Je.is(":visible")||(Ht&&(Ve=ft.oldValue),Nt.attr(Ui,!0),an.hide(),Je.show(),Nt.val(""),ft._update(Ve),$e.removeClass(en.focused))},_keydown:function(Ht){var ft=this,Nt=Ht.keyCode,$e=Nt===ze.keys.ESC;(Nt===ze.keys.ENTER||$e)&&(ft._blur($e),setTimeout(function(){ft.overlay.find("a").first().trigger("focus")}))},isNavigational:function(Ht){var ft=Ht.hasClass(en.textbox)||Ht.closest(Ot+en.item);return Ht[0]!==this.wrapper[0]&&ft&&!Ht.hasClass("k-breadcrumb-last-item")},_wrapperKeydown:function(Ht){var Nt=Xe(Ht.target),an=this.isNavigational(Nt);Ht.keyCode===ze.keys.ENTER&&!an&&this._edit()},_wrapperClick:function(Ht){var Nt=Xe(Ht.target);this.isNavigational(Nt)||this._edit()},_wrapperFocus:function(Ht){Xe(Ht.target).addClass(en.focused)},_wrapperBlur:function(Ht){Xe(Ht.target).removeClass(en.focused)},_wrapper:function(){var Ht=this,ft=this.element,Nt=ft.is("input"),an=Xe('<div class="'+en.inputWrapper+'"><span class="'+en.textboxWrapper+'"></span></div>');Ht.wrapper=Nt?ft.wrap(Xe("<nav />")).parent():ft,Nt?(Ht.element.wrap(an).addClass(en.textbox),Ht.inputWrapper=Ht.wrapper.find(Ot+en.inputWrapper).hide()):Ht.inputWrapper=Ht.wrapper.append(an).find(Ot+en.inputWrapper).hide(),Ht.wrapper.addClass(en.widget),Ht.wrapper.attr("aria-label","Breadcrumb"),Ht.overlay=Ht.wrapper.append(Xe("<ol />").addClass(en.overlay)).find(Ot+en.overlay)},_editable:function(){var Ht=this,Nt=Ht.element.is("input");Ht.input=Nt?Ht.element:Xe("<input />"),Ht.inputWrapper.find(Ot+en.textboxWrapper.split(" ")[0]).append(Ht.input),Ht.input.addClass(en.textbox).attr(Ui,!0),Ht.input.on("blur"+Hn,Ht._blur.bind(Ht,!1)).on(kn+Hn,Ht._keydown.bind(Ht)),Ht.wrapper.on("focus"+Hn,Ht._wrapperFocus.bind(Ht)).on("blur"+Hn,Ht._wrapperBlur.bind(Ht)).on(kn+Hn,Ht._wrapperKeydown.bind(Ht)).on(Sn+Hn,Ht._wrapperClick.bind(Ht))},_value:function(){var ft=this.options;this.value(ft.value?ft.value:ft.bindToLocation?window.location.href.replace(/http(s?):\/\//,"").replace(/\/$/,""):"")},_split:function(Ht){return Ht.split("/").filter(function(ft,Nt){return!(Nt>0&&""===ft)})},isRtl:function(){return ze.support.isRtl(this.wrapper)},refresh:function(){var Be,At,Rt,Pt,Ht=this,ft=Ht.options,Nt=ft.messages,an=Ht.options.delimiterIcon,$e="",Je="",Ve=""===Ht.value(),Ge=Ht._segments;for("arrow-chevron-right"==an&&Ht.isRtl()&&(an="arrow-chevron-left"),At=0,Rt=Ge.length;At<Rt;At++)Pt=At===Ge.length-1,(Be=Ge[At])!==Ke&&($e?Je+=Be.text||Be||"":Je="/","string"==typeof Be?Ht._segments.splice(At,1,Be={type:$e?"item":"rootitem",href:ft.navigational?Je:"#",text:Be,showIcon:!$e,showText:!!$e,icon:$e?"":ft.rootIcon,itemClass:$e?"":"k-breadcrumb-root-item",linkClass:$e?"":en.rootLink,delimiterIcon:an,renderDelimiter:!Pt&&!Ve,lastSegment:Pt,iconClass:""}):Dt(Be)&&(Be=it({},Be,{type:Be.type?Be.type.toLowerCase():"item"}),"rootitem"===(Be=it({},Be,{text:Be.text||"",title:Be.text||"",icon:Be.icon||("rootitem"===Be.type?ft.rootIcon:""),iconClass:Be.iconClass||"",lastSegment:Pt,renderDelimiter:!Pt&&Ge.length>1,href:ft.navigational?Be.href:"#",delimiterIcon:an,itemClass:Be.itemClass||"",linkClass:Be.linkClass||"",showIcon:Be.showIcon===Ke?"rootitem"===Be.type&&"item"!==Be.type:Be.showIcon,showText:Be.showText===Ke?"item"===Be.type&&"rootitem"!==Be.type:Be.showText})).type&&(Be.itemClass+=" k-breadcrumb-root-item",Be.linkClass+=" "+en.rootLink)),"rootitem"===Be.type&&""===Be.text&&(Be.title=Nt.rootTitle),Je+=Je.match(/\/$/)?"":"/",$e+=ze.template(this.itemTemplate)(Be));this.overlay.empty().append(Xe($e)),this.resize(!0)},itemTemplate:'<li class="k-breadcrumb-item #:itemClass# #if(lastSegment){#k-breadcrumb-last-item#}#"><a href="#:href#" class="#:linkClass# #if(type !== "rootitem"){# k-breadcrumb-link#}##if(showText && showIcon){# k-breadcrumb-icontext-link#}##if(showIcon && !showText){# k-breadcrumb-icon-link#}##if(lastSegment && type !== "rootitem"){# k-disabled#}#"#if(lastSegment){# aria-current="page"#}##if(lastSegment && type !== "rootitem"){# aria-disabled="true" #}#title="#:text || title#">#if(showIcon) {#<span class="#if(icon){#k-icon k-i-#:icon##}# #:iconClass#"></span>#}##if(showText) {##:text##}#</a>#if(renderDelimiter) {#<span class="k-breadcrumb-delimiter-icon k-icon k-i-#:delimiterIcon#" aria-hidden="true"></span>#}##if(type === "rootitem" && renderDelimiter) {#<span class="k-breadcrumb-delimiter-icon k-hidden k-icon k-i-#:delimiterIcon#" aria-hidden="true"></span>#}#</li>',_displayOverflowIcons:function(Ht){var Nt=this.wrapper.find(Ot+en.rootItem);Ht?Nt.find(Ot+en.delimiter).addClass(en.overflowIcon).removeClass(en.hidden):Nt.find(Ot+en.overflowIcon).removeClass(en.overflowIcon).last().addClass(en.hidden)},_shrinkItems:function(){var Je,Ht=this,ft=Ht.wrapper,Nt=Ht.overlay,an=Ht.overlay.find(Ot+en.item+":visible:not(.k-breadcrumb-root-item)"),$e=ft.width()-Ht.options.gap;if(1!=an.length)for(var Ve=0;Ve<an.length;Ve+=1)if(Je=Xe(an[Ve]),ze._outerWidth(Nt)>=$e){if(Ve==an.length-1)break;Je.hide(),Ht._displayOverflowIcons(!0)}},_showItem:function(Ht,ft,Nt){return!!(Ht.length&&Nt>ft+ze._outerWidth(Ht,!0))&&(Ht.show(),!0)},_stretchItems:function(){var Je,Ve,Ht=this,ft=Ht.wrapper,Nt=Ht.overlay,an=Ht.overlay.find(Ot+en.item+":hidden:not(.k-breadcrumb-root-item)"),$e=ft.width()-Ht.options.gap;an.length||Ht._displayOverflowIcons(!1);for(var Ge=an.length-1;Ge>=0&&(Je=Xe(an[Ge]),!((Ve=ze._outerWidth(Nt))>$e)&&this._showItem(Je,Ve,$e));Ge--);},_resize:function(){this._shrinkItems(),this._stretchItems()},getSize:function(){return ze.dimensions(this.wrapper)},value:function(Ht){return Ht!==Ke?(this._generateSegments(Ht),void this.refresh()):this._path(this._segments)},_path:function(Ht){return Xe.map(Ht,function(ft){var Nt=Dt(ft)?ft.text:ft;return"/"===Nt?"":Nt}).join("/")}});return ze.ui.plugin(cn),window.kendo}.apply(vt={},ur=[e]))&&(Ne=vt),void 0===(ln=function(){var Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,St=ze.ui.Widget,it=Xe.isPlainObject,Dt=Xe.extend,Hn=ze.support.placeholder,Ui=ze.isFunction,Co=/(^\/|\/$)/g,Sn="change",Dn="error",kn="click",ui=".kendoFileBrowser",Ot=".kendoSearchBox",en="name",Ht="type",ft={field:Ht,dir:"asc"},Nt=ze.template('<div class="k-listview-item k-listview-item-empty"><span class="k-file-preview"><span class="k-file-icon k-icon k-i-none"></span></span><span class="k-file-name">${text}</span></div>');function Je(Rt,Pt){return(Rt===Ke||!Rt.match(/\/$/))&&(Rt=(Rt||"")+"/"),Rt+Pt}function Ve(Rt){if(!Rt)return"";var Pt=" bytes";return Rt>=1073741824?(Pt=" GB",Rt/=1073741824):Rt>=1048576?(Pt=" MB",Rt/=1048576):Rt>=1024&&(Pt=" KB",Rt/=1024),Math.round(100*Rt)/100+Pt}Dt(!0,ze.data,{schemas:{filebrowser:{data:function(Rt){return Rt.items||Rt||[]},model:{id:"name",fields:{name:"name",size:"size",type:"type"}}}}}),Dt(!0,ze.data,{transports:{filebrowser:ze.data.RemoteTransport.extend({init:function(Rt){ze.data.RemoteTransport.fn.init.call(this,Xe.extend(!0,{},this.options,Rt))},_call:function(Rt,Pt){Pt.data=Xe.extend({},Pt.data,{path:this.options.path()}),Ui(this.options[Rt])?this.options[Rt].call(this,Pt):ze.data.RemoteTransport.fn[Rt].call(this,Pt)},read:function(Rt){this._call("read",Rt)},create:function(Rt){this._call("create",Rt)},destroy:function(Rt){this._call("destroy",Rt)},update:function(){},options:{read:{type:"POST"},update:{type:"POST"},create:{type:"POST"},destroy:{type:"POST"}}})}});var Be=St.extend({init:function(Rt,Pt){var $t=this;St.fn.init.call($t,Rt,Pt=Pt||{}),$t.element.addClass("k-filebrowser"),$t.element.on(kn+ui,".k-filebrowser-toolbar button:not(.k-disabled):has(.k-i-close)",$t._deleteClick.bind($t)).on(kn+ui,".k-filebrowser-toolbar button:not(.k-disabled):has(.k-i-folder-add)",$t._addClick.bind($t)).on("keydown"+ui,".k-listview-item.k-selected input",$t._directoryKeyDown.bind($t)).on("blur"+ui,".k-listview-item.k-selected input",$t._directoryBlur.bind($t)),$t._dataSource(),$t.refresh(),$t.path($t.options.path)},options:{name:"FileBrowser",messages:{uploadFile:"Upload",orderBy:"Arrange by",orderByName:"Name",orderBySize:"Size",directoryNotFound:"A directory with this name was not found.",emptyFolder:"Empty Folder",deleteFile:'Are you sure you want to delete "{0}"?',invalidFileType:'The selected file "{0}" is not valid. Supported file types are {1}.',overwriteFile:'A file with name "{0}" already exists in the current directory. Do you want to overwrite it?',dropFilesHere:"drop file here to upload",search:"Search"},transport:{},path:"/",fileTypes:"*.*"},events:[Dn,Sn,"apply"],destroy:function(){var Rt=this;St.fn.destroy.call(Rt),Rt.dataSource.unbind(Dn,Rt._errorHandler),Rt.element.add(Rt.list).add(Rt.toolbar).off(ui),ze.destroy(Rt.element)},value:function(){var $t,Pt=this._selectedItem(),Xn=this.options.transport.fileUrl;if(Pt&&"f"===Pt.get(Ht))return $t=Je(this.path(),Pt.get(en)).replace(Co,""),Xn&&($t=Ui(Xn)?Xn($t):ze.format(Xn,encodeURIComponent($t))),$t},_selectedItem:function(){var Pt=this.listView.select();if(Pt.length)return this.dataSource.getByUid(Pt.attr(ze.attr("uid")))},_toolbar:function(){var Rt=this,Pt=ze.template('<div class="k-widget k-filebrowser-toolbar k-toolbar k-floatwrap"># if (showCreate) { #<button type="button" class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-icon-button"><span class="k-i-button-icon k-icon k-i-folder-add"></span></button># } ## if (showUpload) { # <div class="k-widget k-upload"><div class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-upload-button"><span class="k-button-icon k-icon k-i-plus"></span><span class="k-button-text">#=messages.uploadFile#</span><input type="file" name="file" /></div></div># } ## if (showDelete) { #<button type="button" class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-icon-button k-disabled"><span class="k-button-icon k-icon k-i-close"></span></button># } #<div class="k-tiles-arrange"><label>#=messages.orderBy#: <select></select></label></div><span class="k-toolbar-spacer"></span><input data-role="searchbox" /></div>'),$t=Rt.options.messages,Xn=[{text:$t.orderByName,value:"name"},{text:$t.orderBySize,value:"size"}];Rt.toolbar=Xe(Pt({messages:$t,showUpload:Rt.options.transport.uploadUrl,showCreate:Rt.options.transport.create,showDelete:Rt.options.transport.destroy})).appendTo(Rt.element).find(".k-upload input").kendoUpload({multiple:!1,localization:{dropFilesHere:$t.dropFilesHere},async:{saveUrl:Rt.options.transport.uploadUrl,autoUpload:!0},upload:Rt._fileUpload.bind(Rt),error:function(Nn){Rt._error({xhr:Nn.XMLHttpRequest,status:"error"})}}).end(),Rt.upload=Rt.toolbar.find(".k-upload input").data("kendoUpload"),Rt.arrangeBy=Rt.toolbar.find(".k-tiles-arrange select").kendoDropDownList({dataSource:Xn,dataTextField:"text",dataValueField:"value",change:function(){Rt.orderBy(this.value())}}).data("kendoDropDownList"),Rt.searchBox=Rt.toolbar.find("input[data-role='searchbox']").kendoSearchBox({label:Rt.options.messages.search,change:function(){Rt.search(this.value())}}).data("kendoSearchBox"),Rt._attachDropzoneEvents()},_attachDropzoneEvents:function(){var Rt=this;Rt.options.transport.uploadUrl&&(function $e(Rt,Pt,$t){var Xn,Nn;Rt.on("dragenter"+ui,function(){Pt(),Nn=new Date,Xn||(Xn=setInterval(function(){new Date-Nn>100&&($t(),clearInterval(Xn),Xn=null)},100))}).on("dragover"+ui,function(){Nn=new Date})}(Xe(document.documentElement),Rt._dropEnter.bind(Rt),Rt._dropLeave.bind(Rt)),Rt._scrollHandler=Rt._positionDropzone.bind(Rt))},_dropEnter:function(){this._positionDropzone(),Xe(document).on("scroll"+ui,this._scrollHandler)},_dropLeave:function(){this._removeDropzone(),Xe(document).off("scroll"+ui,this._scrollHandler)},_positionDropzone:function(){var Pt=this.element,$t=Pt.offset();this.toolbar.find(".k-dropzone").addClass("k-filebrowser-dropzone").offset($t).css({width:Pt[0].clientWidth,height:Pt[0].clientHeight,lineHeight:Pt[0].clientHeight+"px"})},_removeDropzone:function(){this.toolbar.find(".k-dropzone").removeClass("k-filebrowser-dropzone").css({width:"",height:"",lineHeight:"",top:"",left:""})},_deleteClick:function(){var Pt=this.listView.select(),$t=ze.format(this.options.messages.deleteFile,Pt.find(".k-file-name").text());Pt.length&&this._showMessage($t,"confirm")&&this.listView.remove(Pt)},_addClick:function(){this.createDirectory()},_getFieldName:function(Rt){return function Ge(Rt,Pt){var $t=Rt[Pt];return it($t)?$t.from||$t.field||Pt:$t}(this.dataSource.reader.model.fields,Rt)},_fileUpload:function(Rt){var Fi,Pt=this,$t=Pt.options,Xn=$t.fileTypes,Nn=new RegExp(("("+Xn.split(",").join(")|(")+")").replace(/\*\./g,".*."),"i"),Ae=Rt.files[0].name,He=Rt.files[0].size,Kt=en;Nn.test(Ae)?(Rt.data={path:Pt.path()},(Fi=Pt._createFile(Ae,He))?Pt.upload.one("success",function(Ci){var xi=Pt._insertFileToList(Fi);xi._override&&(xi.set(Kt,Ci.response[Pt._getFieldName(Kt)]),xi.set("size",Ci.response[Pt._getFieldName("size")]),Pt.listView.dataSource.pushUpdate(xi)),Pt._tiles=Pt.listView.items().filter("["+ze.attr("type")+"=f]")}):Rt.preventDefault()):(Rt.preventDefault(),Pt._showMessage(ze.format($t.messages.invalidFileType,Ae,Xn)))},_findFile:function(Rt){var $t,Xn,He,Pt=this.dataSource.data(),Nn=Ht,Ae=en;for(Rt=Rt.toLowerCase(),$t=0,He=Pt.length;$t<He;$t++)if("f"===Pt[$t].get(Nn)&&Pt[$t].get(Ae).toLowerCase()===Rt){Xn=Pt[$t];break}return Xn},_createFile:function(Rt,Pt){var Xn={},Nn=Ht,Ae=this._findFile(Rt);return Ae?this._showMessage(ze.format(this.options.messages.overwriteFile,Rt),"confirm")?(Ae._override=!0,Ae):null:(Xn[Nn]="f",Xn[en]=Rt,Xn.size=Pt,Xn)},_insertFileToList:function(Rt){var Pt;if(Rt._override)return Rt;for(var $t=this.dataSource,Xn=$t.view(),Nn=0,Ae=Xn.length;Nn<Ae;Nn++)if("f"===Xn[Nn].get(Ht)){Pt=Nn;break}return $t.insert(++Pt,Rt)},createDirectory:function(){var Pt,$t,Rt=this,Xn=0,Nn=Ht,Ae=en,He=Rt.dataSource.data(),Kt=Rt._nameDirectory(),On=new Rt.dataSource.reader.model;for(Pt=0,$t=He.length;Pt<$t;Pt++)"d"===He[Pt].get(Nn)&&(Xn=Pt);On.set(Nn,"d"),On.set(Ae,Kt),Rt.listView.one("dataBound",function(){var Fi=Rt.listView.items().filter("["+ze.attr("uid")+"="+On.uid+"]");Fi.length&&this.edit(Fi),this.element.scrollTop(Fi.attr("offsetTop")-this.element[0].offsetHeight),setTimeout(function(){Rt.listView.element.find(".k-edit-item input").select()})}).one("save",function(Fi){var Ci=Fi.model.get(Ae);Fi.model.set(Ae,Ci?Rt._nameExists(Ci,On.uid)?Rt._nameDirectory():Ci:Kt)}),Rt.dataSource.insert(++Xn,On)},_directoryKeyDown:function(Rt){13==Rt.keyCode&&Rt.currentTarget.blur()},_directoryBlur:function(){this.listView.save()},_nameExists:function(Rt,Pt){var Ae,He,$t=this.dataSource.data(),Xn=Ht,Nn=en;for(Ae=0,He=$t.length;Ae<He;Ae++)if("d"===$t[Ae].get(Xn)&&$t[Ae].get(Nn).toLowerCase()===Rt.toLowerCase()&&$t[Ae].uid!==Pt)return!0;return!1},_nameDirectory:function(){var Ae,He,Kt,Rt="New folder",Pt=this.dataSource.data(),$t=[],Xn=Ht,Nn=en;for(He=0,Kt=Pt.length;He<Kt;He++)"d"===Pt[He].get(Xn)&&Pt[He].get(Nn).toLowerCase().indexOf(Rt.toLowerCase())>-1&&$t.push(Pt[He].get(Nn));if(Xe.inArray(Rt,$t)>-1){He=2;do{Ae=Rt+" ("+He+")",He++}while(Xe.inArray(Ae,$t)>-1);Rt=Ae}return Rt},orderBy:function(Rt){this.dataSource.sort([{field:Ht,dir:"asc"},{field:Rt,dir:"asc"}])},search:function(Rt){this.dataSource.filter({field:en,operator:"contains",value:Rt})},_content:function(){var Rt=this;Rt.list=Xe('<div class="k-filemanager-listview" />').appendTo(Rt.element).on("dblclick"+ui,".k-listview-item",Rt._dblClick.bind(Rt)),Rt.listView=new ze.ui.ListView(Rt.list,{layout:"flex",flex:{direction:"row",wrap:"wrap"},dataSource:Rt.dataSource,template:Rt._itemTmpl(),editTemplate:Rt._editTmpl(),selectable:!0,autoBind:!1,dataBinding:function(Pt){Rt.toolbar.find(".k-i-close").parent().addClass("k-disabled"),("remove"===Pt.action||"sync"===Pt.action)&&(Pt.preventDefault(),ze.ui.progress(Rt.listView.content,!1))},dataBound:function(){Rt.dataSource.view().length?Rt._tiles=this.items().filter("["+ze.attr("type")+"=f]"):this.content.append(Nt({text:Rt.options.messages.emptyFolder}))},change:Rt._listViewChange.bind(Rt)})},_dblClick:function(Rt){var Pt=this,$t=Xe(Rt.currentTarget);if($t.hasClass("k-edit-item")&&Pt._directoryBlur(),$t.filter("["+ze.attr("type")+"=d]").length){var Xn=Pt.dataSource.getByUid($t.attr(ze.attr("uid")));Xn&&(Pt.path(Je(Pt.path(),Xn.get(en))),Pt.breadcrumbs.value("/"+Pt.path()))}else $t.filter("["+ze.attr("type")+"=f]").length&&Pt.trigger("apply")},_listViewChange:function(){var Rt=this._selectedItem();Rt&&(this.toolbar.find(".k-i-close").parent().removeClass("k-disabled"),this.trigger(Sn,{selected:Rt}))},_dataSource:function(){var Rt=this,Pt=Rt.options,$t=Pt.transport,Xn=Dt({},ft),He={type:$t.type||"filebrowser",sort:[Xn,{field:en,dir:"asc"}]};it($t)&&($t.path=Rt.path.bind(Rt),He.transport=$t),it(Pt.schema)?He.schema=Pt.schema:$t.type&&it(ze.data.schemas[$t.type]),Rt.dataSource&&Rt._errorHandler?Rt.dataSource.unbind(Dn,Rt._errorHandler):Rt._errorHandler=Rt._error.bind(Rt),Rt.dataSource=ze.data.DataSource.create(He).bind(Dn,Rt._errorHandler)},_navigation:function(){var Rt=this,Pt=Xe('<div class="k-floatwrap"><nav></nav></div>').appendTo(this.element);Rt.breadcrumbs=Pt.find("nav").first().kendoBreadcrumb({editable:!0,gap:50,value:Rt.options.path||"/",change:function(){Rt.path(this.value())}}).data("kendoBreadcrumb")},_error:function(Rt){var $t,Pt=this;if(!Pt.trigger(Dn,Rt)){$t=Rt.xhr.status,"error"==Rt.status?"404"==$t?Pt._showMessage(Pt.options.messages.directoryNotFound):"0"!=$t&&Pt._showMessage("Error! The requested URL returned "+$t+" - "+Rt.xhr.statusText):"timeout"==$t&&Pt._showMessage("Error! Server timeout.");var Xn=Pt.dataSource;Xn.hasChanges()&&Xn.cancelChanges()}},_showMessage:function(Rt,Pt){return window[Pt||"alert"](Rt)},refresh:function(){this._navigation(),this._toolbar(),this._content()},_editTmpl:function(){var Rt='<div class="k-listview-item k-selected" '+ze.attr("uid")+'="#=uid#" ';return Rt+=ze.attr("type")+'="${'+Ht+'}">',Rt+='#if(type == "d") { #',Rt+='<div class="k-file-preview"><span class="k-file-icon k-icon k-i-folder"></span></div>',Rt+="#}else{#",Rt+='<div class="k-file-preview"><span class="k-file-icon k-icon k-i-loading"></span></div>',Rt+="#}#",Rt+='#if(type == "d") { #',Rt+='<span class="k-file-name"><span class="k-textbox k-input k-input-md k-rounded-md k-input-solid"><input class="k-input-inner" '+ze.attr("bind")+'="value:'+en+'"/></span></span>',Rt+="#}#",ze.template(Rt+="</div>").bind({sizeFormatter:Ve})},_itemTmpl:function(){var Rt='<div class="k-listview-item" '+ze.attr("uid")+'="#=uid#" ';return Rt+=ze.attr("type")+'="${'+Ht+'}">',Rt+='#if(type == "d") { #',Rt+='<div class="k-file-preview"><span class="k-file-icon k-icon k-i-folder"></span></div>',Rt+="#}else{#",Rt+='<div class="k-file-preview"><span class="k-file-icon k-icon k-i-file"></span></div>',Rt+="#}#",Rt+='<span class="k-file-name">${name}</span>',Rt+='#if(type == "f") { # <span class="k-file-size">${this.sizeFormatter(size)}</span> #}#',ze.template(Rt+="</div>").bind({sizeFormatter:Ve})},path:function(Rt){var $t=this._path||"";return Rt!==Ke?(this._path=Rt.replace(Co,"")+"/",void this.dataSource.read({path:this._path})):($t&&($t=$t.replace(Co,"")),"/"===$t||""===$t?"":$t+"/")}}),At=St.extend({init:function(Rt,Pt){var $t=this;St.fn.init.call($t,Rt,Pt=Pt||{}),Hn&&$t.element.attr("placeholder",$t.options.label),$t._wrapper(),$t.element.on("keydown"+Ot,$t._keydown.bind($t)).on("change"+Ot,$t._updateValue.bind($t)),$t.wrapper.on(kn+Ot,"a",$t._click.bind($t)),Hn||$t.element.on("focus"+Ot,$t._focus.bind($t)).on("blur"+Ot,$t._blur.bind($t))},options:{name:"SearchBox",label:"Search",value:""},events:[Sn],destroy:function(){this.wrapper.add(this.element).add(this.label).off(Ot),St.fn.destroy.call(this)},_keydown:function(Rt){13===Rt.keyCode&&this._updateValue()},_click:function(Rt){Rt.preventDefault(),this._updateValue()},_updateValue:function(){var Pt=this.element.val();Pt!==this.value()&&(this.value(Pt),this.trigger(Sn))},_blur:function(){this._updateValue(),this._toggleLabel()},_toggleLabel:function(){Hn||this.label.toggle(!this.element.val())},_focus:function(){this.label.hide()},_wrapper:function(){var Rt=this.element,Pt=Rt.parents(".k-search-wrap");Rt[0].style.width="",Rt.addClass("k-input-inner"),Pt.length||(Pt=Rt.wrap(Xe('<div class="k-widget k-search-wrap"><span class="k-textbox k-input k-input-md k-rounded-md k-input-solid"></span></div>')).parents(".k-search-wrap"),Hn||Xe('<label style="display:block">'+this.options.label+"</label>").insertBefore(Rt),Xe('<span class="k-input-suffix"><a href="#" class="k-icon k-i-zoom k-search"/></span>').appendTo(Pt.find(".k-textbox"))),this.wrapper=Pt,this.label=Pt.find(">label")},value:function(Rt){return Rt!==Ke?(this.options.value=Rt,this.element.val(Rt),void this._toggleLabel()):this.options.value}});return ze.ui.plugin(Be),ze.ui.plugin(At),window.kendo}.apply(jn={},ur=[Mt,te,Lt,Ne]))&&(ln=jn),void 0===(Pi=function(){var Xe=window.kendo.jQuery,ze=window.kendo,St=ze.ui.FileBrowser,it=Xe.isPlainObject,Dt=Xe.extend,Hn=ze.isFunction,Ui=/(^\/|\/$)/g,Sn=".kendoImageBrowser",Vn="name",kn="type",ui={field:kn,dir:"asc"},Ot=ze.template('<div class="k-listview-item k-listview-item-empty"><span class="k-file-preview"><span class="k-file-icon k-icon k-i-none"></span></span><span class="k-file-name">${text}</span></div>');function Ht(Nt){if(!Nt)return"";var an=" bytes";return Nt>=1073741824?(an=" GB",Nt/=1073741824):Nt>=1048576?(an=" MB",Nt/=1048576):Nt>=1024&&(an=" KB",Nt/=1024),Math.round(100*Nt)/100+an}Dt(!0,ze.data,{schemas:{imagebrowser:{data:function(Nt){return Nt.items||Nt||[]},model:{id:"name",fields:{name:"name",size:"size",type:"type"}}}}}),Dt(!0,ze.data,{transports:{imagebrowser:ze.data.RemoteTransport.extend({init:function(Nt){ze.data.RemoteTransport.fn.init.call(this,Xe.extend(!0,{},this.options,Nt))},_call:function(Nt,an){an.data=Xe.extend({},an.data,{path:this.options.path()}),Hn(this.options[Nt])?this.options[Nt].call(this,an):ze.data.RemoteTransport.fn[Nt].call(this,an)},read:function(Nt){this._call("read",Nt)},create:function(Nt){this._call("create",Nt)},destroy:function(Nt){this._call("destroy",Nt)},update:function(){},options:{read:{type:"POST"},update:{type:"POST"},create:{type:"POST"},destroy:{type:"POST"}}})}});var ft=St.extend({init:function(Nt,an){St.fn.init.call(this,Nt,an=an||{}),this.element.addClass("k-imagebrowser")},options:{name:"ImageBrowser",fileTypes:"*.png,*.gif,*.jpg,*.jpeg"},value:function(){var $e,an=this._selectedItem(),Je=this.options.transport.imageUrl;if(an&&"f"===an.get(kn))return $e=function cn(Nt,an){return(void 0===Nt||!Nt.match(/\/$/))&&(Nt=(Nt||"")+"/"),Nt+an}(this.path(),an.get(Vn)).replace(Ui,""),Je&&($e=Hn(Je)?Je($e):ze.format(Je,encodeURIComponent($e))),$e},_fileUpload:function(Nt){var Pt,an=this,$e=an.options,Je=$e.fileTypes,Ve=new RegExp(("("+Je.split(",").join(")|(")+")").replace(/\*\./g,".*."),"i"),Ge=Nt.files[0].name,Be=Nt.files[0].size,At=Vn;Ve.test(Ge)?(Nt.data={path:an.path()},(Pt=an._createFile(Ge,Be))?(Pt._uploading=!0,an.upload.one("error",function(){Pt=void 0}),an.upload.one("success",function($t){if(Pt){delete Pt._uploading;var Xn=an._insertFileToList(Pt);Xn.set(At,$t.response[an._getFieldName(At)]),Xn.set("size",$t.response[an._getFieldName("size")]),an._tiles=an.listView.items().filter("["+ze.attr("type")+"=f]"),an._scroll()}})):Nt.preventDefault()):(Nt.preventDefault(),an._showMessage(ze.format($e.messages.invalidFileType,Ge,Je)))},_content:function(){var Nt=this;Nt.list=Xe('<div class="k-filemanager-listview" />').appendTo(Nt.element).on("dblclick"+Sn,".k-listview-item",Nt._dblClick.bind(Nt)),Nt.listView=new ze.ui.ListView(Nt.list,{layout:"flex",flex:{direction:"row",wrap:"wrap"},dataSource:Nt.dataSource,template:Nt._itemTmpl(),editTemplate:Nt._editTmpl(),selectable:!0,autoBind:!1,dataBinding:function(an){Nt.toolbar.find(".k-i-close").parent().addClass("k-disabled"),("remove"===an.action||"sync"===an.action)&&(an.preventDefault(),ze.ui.progress(Nt.listView.content,!1))},dataBound:function(){Nt.dataSource.view().length?(Nt._tiles=this.items().filter("["+ze.attr("type")+"=f]"),Nt._scroll()):this.content.append(Ot({text:Nt.options.messages.emptyFolder}))},change:Nt._listViewChange.bind(Nt)}),Nt.listView.content.on("scroll"+Sn,Nt._scroll.bind(Nt))},_dataSource:function(){var Nt=this,an=Nt.options,$e=an.transport,Je=Dt({},ui),Be={type:$e.type||"imagebrowser",sort:[Je,{field:Vn,dir:"asc"}]};it($e)&&($e.path=Nt.path.bind(Nt),Be.transport=$e),it(an.schema)?Be.schema=an.schema:$e.type&&it(ze.data.schemas[$e.type]),Nt.dataSource&&Nt._errorHandler?Nt.dataSource.unbind("error",Nt._errorHandler):Nt._errorHandler=Nt._error.bind(Nt),Nt.dataSource=ze.data.DataSource.create(Be).bind("error",Nt._errorHandler)},_loadImage:function(Nt){var $e=Xe(Nt),Je=this.dataSource.getByUid($e.attr(ze.attr("uid"))),Ve=Je.get(Vn),Ge=this.options.transport.thumbnailUrl,Be=Xe("<img />",{alt:Ve}),At="?";Je._uploading||(Be.hide().on("load"+Sn,function(){Xe(this).prev().remove().end().addClass("k-image k-file-image").fadeIn()}),$e.find(".k-i-loading").after(Be),Hn(Ge)?Ge=Ge(this.path(),encodeURIComponent(Ve)):(Ge.indexOf("?")>=0&&(At="&"),Ge=Ge+At+"path="+encodeURIComponent(this.path()+Ve),Je._override&&(Ge+="&_="+(new Date).getTime(),delete Je._override)),Be.attr("src",Ge),Nt.loaded=!0)},_scroll:function(){var Nt=this;Nt.options.transport&&Nt.options.transport.thumbnailUrl&&(clearTimeout(Nt._timeout),Nt._timeout=setTimeout(function(){var an=ze._outerHeight(Nt.listView.content),$e=Nt.listView.content.scrollTop(),Je=$e+an;Nt._tiles.each(function(){var Ve=function en(Nt){return Nt.offsetTop-Xe(Nt).height()}(this),Ge=Ve+this.offsetHeight;if((Ve>=$e&&Ve<Je||Ge>=$e&&Ge<Je)&&Nt._loadImage(this),Ve>Je)return!1}),Nt._tiles=Nt._tiles.filter(function(){return!this.loaded})},250))},_itemTmpl:function(){var an='<div class="k-listview-item" '+ze.attr("uid")+'="#=uid#" ';return an+=ze.attr("type")+'="${'+kn+'}">',an+='#if(type == "d") { #',an+='<div class="k-file-preview"><span class="k-file-icon k-icon k-i-folder"></span></div>',an+="#}else{#",an+=this.options.transport&&this.options.transport.thumbnailUrl?'<div class="k-file-preview"><span class="k-file-icon k-icon k-i-loading"></span></div>':'<div class="k-file-preview"><span class="k-file-icon k-icon k-i-file"></span></div>',an+="#}#",an+='<span class="k-file-name">${name}</span>',an+='#if(type == "f") { # <span class="k-file-size">${this.sizeFormatter(size)}</span> #}#',ze.template(an+="</div>").bind({sizeFormatter:Ht})}});return ze.ui.plugin(ft),window.kendo}.apply(go={},ur=[ln]))&&(Pi=go),void 0===(si=function(){var Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,it=ze.keys,Dt=Xe.map,Hn=Xe.each,Ui=ze.trim,Co=Xe.extend,Sn=ze.isFunction,Vn=ze.template,Dn=ze._outerWidth,kn=ze._outerHeight,ui=ze.ui.Widget,Ot=/^(a|div)$/i,en=".kendoTabStrip",ft="prev",Nt="next",$e="k-link",At="k-image",Rt="k-first",Pt="select",$t="activate",Xn="k-tabstrip-content k-content",Nn="contentUrl",Ae="mouseenter",Kt="contentLoad",On="k-disabled",Fi="k-active",Ci="k-focus",xi="k-hover",Wn="k-tab-on-top",Vt=".k-item:not(."+On+")",qt=".k-item",bn=".k-tabstrip-items > "+Vt+":not(."+Fi+")",Vi="aria-hidden",Jn="aria-controls",zt="aria-disabled",mn="aria-selected",ci="aria-labelledby",Oi={content:Vn("<div class='k-tabstrip-content k-content' #= contentAttributes(data) # tabindex='0'>#= content(item) #</div>"),itemWrapper:Vn("<#= tag(item) # class='k-link' #= contentUrl(item) # #= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) #</#= tag(item) #>"),item:Vn("<li class='#= wrapperCssClass(group, item) #' role='tab' #=item.active ? \"aria-selected='true'\" : ''#>#= itemWrapper(data) #</li>"),image:Vn("<img class='k-image' alt='' src='#= imageUrl #' />"),sprite:Vn("<span class='k-sprite #= spriteCssClass #'></span>"),empty:Vn("")},Ai={wrapperCssClass:function(Ye,Me){var pe=["k-tabstrip-item","k-item"],lt=Me.index;return!1===Me.enabled&&pe.push("k-disabled"),0===lt&&pe.push("k-first"),lt==Ye.length-1&&pe.push("k-last"),pe.join(" ")},textAttributes:function(Ye){return Ye.url?" href='"+Ye.url+"'":""},text:function(Ye){return!1===Ye.encoded?Ye.text:ze.htmlEncode(Ye.text)},tag:function(Ye){return Ye.url?"a":"span"},contentAttributes:function(Ye){return!0!==Ye.active?" style='display:none' aria-hidden='true'":""},content:function(Ye){return Ye.content?Ye.content:Ye.contentUrl?"":"&nbsp;"},contentUrl:function(Ye){return Ye.contentUrl?ze.attr("content-url")+'="'+Ye.contentUrl+'"':""}};function Pn(Ye){Ye.children("img").addClass(At),Ye.children("a").addClass($e).children("img").addClass(At),Ye.filter("li[disabled]").addClass(On).attr(zt,"true").prop("disabled",!1),Ye.filter(":not([class*=k-state])").children("a").filter(":focus").parent().addClass(Fi+" "+Wn),Ye.attr("role","tab"),Ye.filter("."+Fi).attr(mn,!0),Ye.each(function(){var Me=Xe(this);Me.children("."+$e).length||Me.contents().filter(function(){return!(this.nodeName.match(Ot)||3==this.nodeType&&!Ui(this.nodeValue))}).wrapAll("<span UNSELECTABLE='on' class='k-link'/>")})}function qn(Ye){var Me=Ye.children(".k-item");Me.filter(".k-first:not(:first-child)").removeClass(Rt),Me.filter(".k-last:not(:last-child)").removeClass("k-last"),Me.filter(":first-child").addClass(Rt),Me.filter(":last-child").addClass("k-last")}function Ni(Ye,Me){return"<span class='k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-tabstrip-"+Ye+"' unselectable='on'><span class='k-button-icon k-icon "+Me+"'></span></span>"}var Ue=ui.extend({init:function(Ye,Me){var lt,pe=this;ui.fn.init.call(pe,Ye,Me),pe._animations(pe.options),pe._contentUrls=(Me=pe.options).contentUrls||[],pe._wrapper(),pe._isRtl=ze.support.isRtl(pe.wrapper),pe._tabindex(),pe._updateClasses(),pe._dataSource(),pe.tabGroup.attr("role","tablist"),Me.dataSource&&pe.dataSource.fetch(),pe._tabPosition(),pe._scrollable(),pe._processContentUrls(),pe._attachEvents(),pe.options.value&&(lt=pe.options.value),pe._initialActivate(),pe.value(lt),ze.notify(pe)},events:[Pt,$t,"show","error",Kt,"change","dataBinding","dataBound"],options:{name:"TabStrip",dataEncodedField:"",dataTextField:"",dataContentField:"",dataImageUrlField:"",dataUrlField:"",dataSpriteCssClass:"",dataContentUrlField:"",tabPosition:"top",animation:{open:{effects:"expand:vertical fadeIn",duration:200},close:{duration:200}},collapsible:!1,navigatable:!0,contentUrls:!1,scrollable:{distance:200}},setDataSource:function(Ye){this.options.dataSource=Ye,this._dataSource(),this.dataSource.fetch()},setOptions:function(Ye){var Me=this,pe=Me.options.animation;Me._animations(Ye),Ye.contentUrls&&(Me._contentUrls=Ye.contentUrls),Ye.animation=Co(!0,pe,Ye.animation),Ye.navigatable?Me.wrapper.on("keydown"+en,Me._keyDownProxy):Me.wrapper.off("keydown"+en,Me._keyDownProxy),ui.fn.setOptions.call(Me,Ye)},activateTab:function(Ye){if(!this.tabGroup.children("[data-animating]").length){Ye=this.tabGroup.find(Ye);var Me=this,pe=Me.options.animation,lt=pe.open,yt=Co({},pe.close),on=yt&&"effects"in yt,zi=Ye.parent().children(),Kn=zi.filter("."+Fi),ho=zi.index(Ye),po=lt&&"duration"in lt&&"effects"in lt;yt=Co(on?yt:Co({reverse:!0},lt),{hide:!0}),ze.size(lt.effects)?(Kn.kendoRemoveClass(Fi,{duration:yt.duration}),Ye.kendoRemoveClass(xi,{duration:yt.duration})):(Kn.removeClass(Fi),Ye.removeClass(xi));var $i=Me.contentAnimators;if(Me.inRequest&&(Me.xhr.abort(),Me.inRequest=!1),0===$i.length)return Me.tabGroup.find("."+Wn).removeClass(Wn),Ye.addClass(Wn).css("z-index"),Ye.addClass(Fi),Me._current(Ye),Me.trigger("change"),Me._scrollableModeActive&&Me._scrollTabsToItem(Ye),!1;var ro=$i.filter("."+Fi),wo=Me.contentHolder(ho),io=wo.closest(".k-content");if(Me.tabsHeight=kn(Me.tabGroup)+parseInt(Me.wrapper.css("border-top-width"),10)+parseInt(Me.wrapper.css("border-bottom-width"),10),0===wo.length)return ro.removeClass(Fi).attr(Vi,!0).kendoStop(!0,!0).kendoAnimate(yt),!1;Ye.attr("data-animating",!0);var Wi=!(!Ye.children("."+$e).data(Nn)&&!Me._contentUrls[ho])&&wo.is(":empty"),fo=function(){Kn.removeAttr(mn),Ye.attr(mn,!0),Me._current(Ye),io.addClass(Fi).removeAttr(Vi).kendoStop(!0,!0).kendoAnimate(Co({init:function(){Me.trigger("show",{item:Ye[0],contentElement:wo[0]}),ze.resize(wo)}},lt,{complete:function(){Ye.removeAttr("data-animating"),Me.trigger($t,{item:Ye[0],contentElement:wo[0]}),ze.resize(wo),po&&(ze.support.browser.msie||ze.support.browser.edge)&&wo.finish().animate({opacity:.9},"fast","linear",function(){wo.finish().animate({opacity:1},"fast","linear")})}}))},cr=function(){Wi?(Ye.removeAttr("data-animating"),Me.ajaxRequest(Ye,wo,function(){Ye.attr("data-animating",!0),fo(),Me.trigger("change")})):(fo(),Me.trigger("change")),Me._scrollableModeActive&&Me._scrollTabsToItem(Ye)},Fr=Me.element.css("min-height");return Me.element.css("min-height",Me.element.outerHeight()),ro.removeClass(Fi),Me.tabGroup.find("."+Wn).removeClass(Wn),Ye.addClass(Wn).css("z-index"),ze.size(lt.effects)?Ye.kendoAddClass(Fi,{duration:lt.duration}):Ye.addClass(Fi),ro.attr(Vi,!0),ro.length?ro.kendoStop(!0,!0).kendoAnimate(Co({complete:cr},yt)):cr(),Me.element.css("min-height",Fr),!0}},ajaxRequest:function(Ye,Me,pe,lt){Ye=this.tabGroup.find(Ye);var yt=this,on=Xe.ajaxSettings.xhr,zi=Ye.find("."+$e),ho=Ye.width()/2,po=!1,$i=Ye.find(".k-loading").removeClass("k-complete");$i[0]||($i=Xe("<span class='k-loading'/>").prependTo(Ye));var ro=2*ho-$i.width(),wo=function(){$i.animate({marginLeft:(parseInt($i.css("marginLeft"),10)||0)<ho?ro:0},500,wo)};ze.support.browser.msie&&ze.support.browser.version<10&&setTimeout(wo,40),lt=lt||zi.data(Nn)||yt._contentUrls[Ye.index()]||zi.attr("href"),yt.inRequest=!0;var io={type:"GET",cache:!1,url:lt,dataType:"html",data:{},xhr:function(){var Wi=this,fo=on(),cr=Wi.progressUpload?"progressUpload":!!Wi.progress&&"progress";return fo&&Xe.each([fo,fo.upload],function(){this.addEventListener&&this.addEventListener("progress",function(Fr){cr&&Wi[cr](Fr)},!1)}),Wi.noProgress=!(window.XMLHttpRequest&&"upload"in new XMLHttpRequest),fo},progress:function(Wi){if(Wi.lengthComputable){var fo=parseInt(Wi.loaded/Wi.total*100,10)+"%";$i.stop(!0).addClass("k-progress").css({width:fo,marginLeft:0})}},error:function(Wi,fo){yt.trigger("error",{xhr:Wi,status:fo})&&this.complete()},stopProgress:function(){clearInterval(po),$i.stop(!0).addClass("k-progress")[0].style.cssText=""},complete:function(Wi){yt.inRequest=!1,this.noProgress?setTimeout(this.stopProgress,500):this.stopProgress(),"abort"==Wi.statusText&&$i.remove()},success:function(Wi){$i.addClass("k-complete");try{var fo=this,cr=10;fo.noProgress&&($i.width(cr+"%"),po=setInterval(function(){fo.progress({lengthComputable:!0,loaded:Math.min(cr,100),total:100}),cr+=10},40)),yt.angular("cleanup",function(){return{elements:Me.get()}}),ze.destroy(Me),Me.html(Wi)}catch(jr){var Fr=window.console;Fr&&Fr.error&&Fr.error(jr.name+": "+jr.message+" in "+lt),this.error(this.xhr,"error")}pe&&pe.call(yt,Me),yt.angular("compile",function(){return{elements:Me.get()}}),yt.trigger(Kt,{item:Ye[0],contentElement:Me[0]})}};"object"==typeof lt&&(io=Xe.extend(!0,{},io,lt),Sn(io.url)&&(io.url=io.url())),yt.xhr=Xe.ajax(io)},append:function(Ye){var Me=this,pe=Me._create(Ye);return Hn(pe.tabs,function(lt){var yt=pe.contents[lt];Me.tabGroup.append(this),"bottom"==Me.options.tabPosition?Me.tabWrapper.before(yt):Me.wrapper.append(yt),Me.angular("compile",function(){return{elements:[yt]}})}),qn(Me.tabGroup),Me._updateContentElements(),Me.resize(!0),Me},contentElement:function(Ye){if(isNaN(Ye-0))return Ke;var Me=this.contentElements&&this.contentElements[0]&&!ze.kineticScrollNeeded?this.contentElements:this.contentAnimators,pe=Xe(this.tabGroup.children()[Ye]).attr(Jn);if(Me)for(var lt=0,yt=Me.length;lt<yt;lt++)if(Me.eq(lt).closest(".k-content")[0].id==pe)return Me[lt];return Ke},contentHolder:function(Ye){var Me=Xe(this.contentElement(Ye)),pe=Me.children(".km-scroll-container");return ze.support.touch&&pe[0]?pe:Me},deactivateTab:function(Ye){var pe=this.options.animation,lt=pe.open,yt=Co({},pe.close),on=yt&&"effects"in yt;Ye=this.tabGroup.find(Ye),yt=Co(on?yt:Co({reverse:!0},lt),{hide:!0}),ze.size(lt.effects)?Ye.kendoRemoveClass(Fi,{duration:lt.duration}):Ye.removeClass(Fi),Ye.removeAttr(mn),this.contentAnimators.filter("."+Fi).kendoStop(!0,!0).kendoAnimate(yt).removeClass(Fi).attr(Vi,!0)},destroy:function(){var Ye=this;ui.fn.destroy.call(Ye),Ye._refreshHandler&&Ye.dataSource.unbind("change",Ye._refreshHandler),Ye.wrapper.off(en),Ye.tabGroup.off(en),Ye._scrollableModeActive&&(Ye._scrollPrevButton.off().remove(),Ye._scrollNextButton.off().remove()),ze.destroy(Ye.wrapper)},disable:function(Ye){return this._toggleDisabled(Ye,!1),this},enable:function(Ye,Me){return this._toggleDisabled(Ye,!1!==Me),this},insertAfter:function(Ye,Me){Me=Xe(Ye).is(Xe(Me))?this.tabGroup.find(Me).prev():this.tabGroup.find(Me);var pe=this,lt=pe._create(Ye),yt=pe.element.find("[id='"+Me.attr(Jn)+"']");return Hn(lt.tabs,function(on){var zi=lt.contents[on],Kn=lt.newTabsCreated?pe._contentUrls.length-(lt.tabs.length-on):Xe(zi).index()-1;Me.after(this),yt.after(zi),pe._moveUrlItem(Kn,Xe(this).index()),pe.angular("compile",function(){return{elements:[zi]}})}),qn(pe.tabGroup),pe._updateContentElements(lt.newTabsCreated),pe.resize(!0),pe},insertBefore:function(Ye,Me){Me=Xe(Ye).is(Xe(Me))?this.tabGroup.find(Me).next():this.tabGroup.find(Me);var pe=this,lt=pe._create(Ye),yt=pe.element.find("[id='"+Me.attr(Jn)+"']");return Hn(lt.tabs,function(on){var zi=lt.contents[on],Kn=lt.newTabsCreated?pe._contentUrls.length-(lt.tabs.length-on):Xe(zi).index()-1;Me.before(this),yt.before(zi),pe._moveUrlItem(Kn,Xe(this).index()),pe.angular("compile",function(){return{elements:[zi]}})}),qn(pe.tabGroup),pe._updateContentElements(lt.newTabsCreated),pe.resize(!0),pe},items:function(){return this.tabGroup[0].children},refresh:function(Ye){var $i,wo,fo,Me=this,pe=Me.options,lt=ze.getter(pe.dataEncodedField),yt=ze.getter(pe.dataTextField),on=ze.getter(pe.dataContentField),zi=ze.getter(pe.dataContentUrlField),Kn=ze.getter(pe.dataImageUrlField),ho=ze.getter(pe.dataUrlField),po=ze.getter(pe.dataSpriteCssClass),ro=[],Wi=Me.dataSource.view();for((Ye=Ye||{}).action&&(Wi=Ye.items),$i=0,fo=Wi.length;$i<fo;$i++)wo={text:yt(Wi[$i])},pe.dataEncodedField&&(wo.encoded=lt(Wi[$i])),pe.dataContentField&&(wo.content=on(Wi[$i])),pe.dataContentUrlField&&(wo.contentUrl=zi(Wi[$i])),pe.dataUrlField&&(wo.url=ho(Wi[$i])),pe.dataImageUrlField&&(wo.imageUrl=Kn(Wi[$i])),pe.dataSpriteCssClass&&(wo.spriteCssClass=po(Wi[$i])),ro[$i]=wo;if("add"==Ye.action)Ye.index<Me.tabGroup.children().length?Me.insertBefore(ro,Me.tabGroup.children().eq(Ye.index)):Me.append(ro);else if("remove"==Ye.action)for($i=0;$i<Wi.length;$i++)Me.remove(Ye.index);else"itemchange"==Ye.action?($i=Me.dataSource.view().indexOf(Wi[0]),Ye.field===pe.dataTextField&&Me.tabGroup.children().eq($i).find(".k-link").text(Wi[0].get(Ye.field)),Ye.field===pe.dataUrlField&&(Me._contentUrls[$i]=Wi[0].get(Ye.field))):(Me.trigger("dataBinding"),Me.remove("li"),Me._contentUrls=[],Me.append(ro),Me.trigger("dataBound"))},reload:function(Ye){Ye=this.tabGroup.find(Ye);var Me=this,pe=Me._contentUrls;return Ye.each(function(){var lt=Xe(this),yt=lt.find("."+$e).data(Nn)||pe[lt.index()],on=Me.contentHolder(lt.index());yt&&Me.ajaxRequest(lt,on,null,yt)}),Me},remove:function(Ye){var lt,Me=this,pe=typeof Ye;return"string"===pe?Ye=Me.tabGroup.find(Ye):"number"===pe&&(Ye=Me.tabGroup.children().eq(Ye)),lt=Ye.map(function(){var yt=Xe(this).index(),on=Me.contentElement(yt);return ze.destroy(on),Me._removeUrlItem(yt),on}),Ye.remove(),lt.empty(),lt.remove(),Me._updateContentElements(),Me.resize(!0),Me},select:function(Ye){var Me=this;return 0===arguments.length?Me.tabGroup.children("li."+Fi):(isNaN(Ye)||(Ye=Me.tabGroup.children().get(Ye)),Ye=Me.tabGroup.find(Ye),Xe(Ye).each(function(pe,lt){!(lt=Xe(lt)).hasClass(Fi)&&!Me.trigger(Pt,{item:lt[0],contentElement:Me.contentHolder(lt.index())[0]})&&Me.activateTab(lt)}),Me)},value:function(Ye){var Me=this;if(Ye===Ke)return Me.select().text();Ye!=Me.value()&&Me.tabGroup.children().each(function(){ze.trim(Xe(this).text())==Ye&&Me.select(this)})},_active:function(){var Ye=this.tabGroup.children().filter("."+Fi);(Ye=Ye[0]?Ye:this._endItem("first"))[0]&&this._current(Ye)},_animations:function(Ye){Ye&&"animation"in Ye&&!Ye.animation&&(Ye.animation={open:{effects:{}},close:{effects:{}}})},_appendUrlItem:function(Ye){this._contentUrls.push(Ye)},_attachEvents:function(){var Ye=this,Me=Ye.options;Ye.wrapper.on(Ae+en+" mouseleave"+en,bn,Ye._toggleHover).on("focus"+en,Ye._active.bind(Ye)).on("blur"+en,function(){Ye._current(null)}),Ye._keyDownProxy=Ye._keydown.bind(Ye),Me.navigatable&&Ye.wrapper.on("keydown"+en,Ye._keyDownProxy),Ye.tabGroup.on("click"+en,".k-disabled .k-link",!1).on("click"+en," > "+Vt,Ye._itemClick.bind(Ye))},_click:function(Ye){var Kn,ho,Me=this,pe=Ye.find("."+$e),lt=pe.attr("href"),yt=Me.options.collapsible,on=Ye.index(),zi=Me.contentHolder(on),$i=Ye.parent().children().filter("."+Ci);if(Ye.closest(".k-widget")[0]==Me.wrapper[0]){if(Ye.is("."+On+(yt?"":",."+Fi)))return $i.removeClass(Ci),Me._focused=Ye,Ye.addClass(Ci),Me._current(Ye),Me._scrollableModeActive&&Me._scrollTabsToItem(Ye),!0;if(ho=pe.data(Nn)||Me._contentUrls[on]||lt&&("#"==lt.charAt(lt.length-1)||-1!=lt.indexOf("#"+Me.element[0].id+"-")),Kn=!lt||ho,Me.tabGroup.children("[data-animating]").length)return Kn;if(Me.trigger(Pt,{item:Ye[0],contentElement:zi[0]}))return!0;if(!1!==Kn)return yt&&Ye.is("."+Fi)?(Me.deactivateTab(Ye),!0):(Me.activateTab(Ye)&&(Kn=!0),Kn)}},_create:function(Ye){var pe,lt,yt,Me=this,on=!1;return Ye=Ye instanceof ze.data.ObservableArray?Ye.toJSON():Ye,Xe.isPlainObject(Ye)||Array.isArray(Ye)?(Ye=Array.isArray(Ye)?Ye:[Ye],on=!0,pe=Dt(Ye,function(zi,Kn){return Me._appendUrlItem(Ye[Kn].contentUrl||null),Xe(Ue.renderItem({group:Me.tabGroup,item:Co(zi,{index:Kn})}))}),lt=Dt(Ye,function(zi,Kn){if("string"==typeof zi.content||zi.contentUrl)return Xe(Ue.renderContent({item:Co(zi,{index:Kn})}))})):(pe="string"==typeof Ye&&"<"!=Ye[0]?Me.element.find(Ye):Xe(Ye),lt=Xe(),pe.each(function(){if(/k-tabstrip-items/.test(this.parentNode.className)){var zi=Me.element.find("[id='"+this.getAttribute(Jn)+"']");yt=zi}else yt=Xe("<div class='"+Xn+"'/>");lt=lt.add(yt)}),Pn(pe)),{tabs:pe,contents:lt,newTabsCreated:on}},_current:function(Ye){var pe=this._focused;if(Ye===Ke)return pe;pe&&pe.removeClass(Ci),Ye&&(Ye.hasClass(Fi)||Ye.addClass(Ci)),this._focused=Ye},_dataSource:function(){var Ye=this;Ye.dataSource&&Ye._refreshHandler?Ye.dataSource.unbind("change",Ye._refreshHandler):Ye._refreshHandler=Ye.refresh.bind(Ye),Ye.dataSource=ze.data.DataSource.create(Ye.options.dataSource).bind("change",Ye._refreshHandler)},_elementId:function(Ye,Me,pe){var lt=Ye.attr("id"),yt=this.element.attr("id"),on=ze.guid();if(!lt||lt.indexOf(yt+"-")>-1){var zi=(yt||on)+"-";return pe&&(zi+="tab-"),zi+(Me+1)}return lt},_endItem:function(Ye){return this.tabGroup.children(Vt)[Ye]()},_getItem:function(Ye){return this.tabGroup.children(qt)[Ye]()},_initialActivate:function(){var Me=this.tabGroup.children("li."+Fi),pe=this.contentHolder(Me.index());Me[0]&&pe.length>0&&0===pe[0].childNodes.length&&this.activateTab(Me.eq(0))},_item:function(Ye,Me){var pe;return pe=Me===ft?"last":"first",Ye?((Ye=Ye[Me]())[0]||(Ye=this.tabGroup.children(qt)[pe]()),Ye.hasClass(On)&&Ye.addClass(Ci),(Ye.hasClass(On)||Ye.hasClass(Fi))&&(this._focused=Ye),Ye):this._endItem(pe)},_itemClick:function(Ye){var pe=this.wrapper[0];if(pe!==document.activeElement)if(ze.support.browser.msie)try{pe.setActive()}catch{pe.focus()}else pe.focus();this._click(Xe(Ye.currentTarget))&&Ye.preventDefault()},_keydown:function(Ye){var zi,Me=this,pe=Ye.keyCode,lt=Me._current(),yt=Me._isRtl,on=/top|bottom/.test(Me.options.tabPosition);if(Ye.target==Ye.currentTarget&&lt){if(pe!==it.DOWN||on)if(pe!==it.UP||on)if(pe===it.RIGHT&&on)zi=yt?ft:Nt;else if(pe===it.LEFT&&on)zi=yt?Nt:ft;else if(pe==it.ENTER||pe==it.SPACEBAR)Me._click(lt),Ye.preventDefault();else{if(pe==it.HOME)return Me._click(Me._getItem("first")),void Ye.preventDefault();if(pe==it.END)return Me._click(Me._getItem("last")),void Ye.preventDefault()}else zi=ft;else zi=Nt;zi&&(Me._click(Me._item(lt,zi)),Ye.preventDefault())}},_moveUrlItem:function(Ye,Me){this._contentUrls.splice(Me,0,this._contentUrls.splice(Ye,1)[0])},_processContentUrls:function(){var Ye=this;Ye._contentUrls.length?Ye.tabGroup.children(".k-item").each(function(Me,pe){var lt=Ye._contentUrls[Me];"string"==typeof lt&&Xe(pe).find(">."+$e).data(Nn,lt)}):Ye._contentUrls.length=Ye.tabGroup.find("li.k-item").length},_removeUrlItem:function(Ye){this._contentUrls.splice(Ye,1)},_resize:function(){this._scrollable()},_scrollable:function(){var pe,lt,yt,on,Ye=this,Me=Ye.options;if(Ye._scrollableAllowed())if(Ye.wrapper.addClass("k-tabstrip-scrollable"),(lt=Ye.tabGroup[0].scrollWidth)>(pe=Ye.wrapper[0].offsetWidth)&&!Ye._scrollableModeActive){Ye._nowScrollingTabs=!1,Ye._isRtl=ze.support.isRtl(Ye.element);var zi=ze.support.touch?"touchstart":"mousedown",Kn=ze.support.touch?"touchend":"mouseup",ho=ze.support.browser,po=Ye._isRtl&&!ho.msie&&!ho.edge;Ye.tabWrapper.prepend(Ni("prev","k-i-arrow-60-left")),Ye.tabWrapper.append(Ni("next","k-i-arrow-60-right")),yt=Ye._scrollPrevButton=Ye.tabWrapper.children(".k-tabstrip-prev"),on=Ye._scrollNextButton=Ye.tabWrapper.children(".k-tabstrip-next"),yt.on(zi+en,function(){Ye._nowScrollingTabs=!0,Ye._scrollTabsByDelta(Me.scrollable.distance*(po?1:-1))}),on.on(zi+en,function(){Ye._nowScrollingTabs=!0,Ye._scrollTabsByDelta(Me.scrollable.distance*(po?-1:1))}),yt.add(on).on(Kn+en,function(){Ye._nowScrollingTabs=!1}),Ye._scrollableModeActive=!0,Ye._toggleScrollButtons()}else Ye._scrollableModeActive&&lt<=pe?(Ye._scrollableModeActive=!1,Ye.wrapper.removeClass("k-tabstrip-scrollable"),Ye._scrollPrevButton.off().remove(),Ye._scrollNextButton.off().remove()):Ye._scrollableModeActive?Ye._toggleScrollButtons():Ye.wrapper.removeClass("k-tabstrip-scrollable")},_scrollableAllowed:function(){var Ye=this.options;return Ye.scrollable&&!Ye.scrollable.distance&&(Ye.scrollable={distance:200}),Ye.scrollable&&!isNaN(Ye.scrollable.distance)&&("top"==Ye.tabPosition||"bottom"==Ye.tabPosition)},_scrollTabsToItem:function(Ye){var ho,Me=this,pe=Me.tabGroup,lt=ze.scrollLeft(pe),yt=Dn(Ye),on=Me._isRtl?Ye.position().left:Ye.position().left-pe.children().first().position().left,zi=pe[0].offsetWidth,Kn=ze.support.browser;Me._isRtl&&(Kn.mozilla||Kn.webkit&&Kn.version>=85)&&(lt*=-1),Me._isRtl?on<0?ho=lt+on-(zi-lt):on+yt>zi&&(ho=lt+on-yt):lt+zi<on+yt?ho=on+yt-zi:lt>on&&(ho=on),pe.finish().animate({scrollLeft:ho},"fast","linear",function(){Me._toggleScrollButtons()})},_scrollTabsByDelta:function(Ye){var Me=this,pe=Me.tabGroup,lt=ze.scrollLeft(pe),yt=ze.support.browser;Me._isRtl&&(yt.mozilla||yt.webkit&&yt.version>=85)&&(lt*=-1),pe.finish().animate({scrollLeft:lt+Ye},"fast","linear",function(){Me._nowScrollingTabs&&!ra.fx.off?Me._scrollTabsByDelta(Ye):Me._toggleScrollButtons()})},_tabPosition:function(){var Ye=this,Me=Ye.options.tabPosition;Ye.wrapper.addClass("k-floatwrap k-tabstrip-"+Me),"bottom"==Me&&Ye.tabWrapper.appendTo(Ye.wrapper),("left"===Me||"right"===Me)&&Ye.tabGroup.attr("aria-orientation","vertical"),Ye.resize(!0)},_toggleHover:function(Ye){Xe(Ye.currentTarget).toggleClass(xi,Ye.type==Ae)},_toggleDisabled:function(Ye,Me){(Ye=this.tabGroup.find(Ye)).each(function(){Xe(this).toggleClass(On,!Me).attr(zt,!Me)})},_toggleScrollButtons:function(){var Me=this.tabGroup,pe=ze.scrollLeft(Me);this._scrollPrevButton.toggleClass("k-disabled",0===pe),this._scrollNextButton.toggleClass("k-disabled",pe===Me[0].scrollWidth-Me[0].offsetWidth)},_updateClasses:function(){var Me,pe,lt,Ye=this,yt=/top|bottom/.test(Ye.options.tabPosition);Ye.wrapper.addClass("k-widget k-tabstrip"),Ye.tabGroup||(Ye.tabGroup=Ye.wrapper.children("ul"),Ye.tabGroup.wrap("<div />"),Ye.tabWrapper=Ye.tabGroup.parent()),Ye.tabGroup[0]||(Ye.tabGroup=Xe("<ul />").prependTo(Ye.wrapper),Ye.tabGroup.wrap("<div />"),Ye.tabWrapper=Ye.tabGroup.parent()),Ye.tabWrapper.addClass("k-tabstrip-items-wrapper"),Ye.tabWrapper.addClass(yt?"k-hstack":"k-vstack"),Ye.tabGroup.addClass("k-tabstrip-items k-reset"),(Me=Ye.tabGroup.find("li").addClass("k-tabstrip-item k-item")).length&&(lt=(pe=Me.filter("."+Fi).index())>=0?pe:Ke,Ye.tabGroup.contents().filter(function(){return 3==this.nodeType&&!Ui(this.nodeValue)}).remove()),pe>=0&&Me.eq(pe).addClass(Wn),Ye.contentElements=Ye.wrapper.children("div:not(.k-tabstrip-items-wrapper)"),Ye.contentElements.addClass(Xn).eq(lt).addClass(Fi).css({display:"block"}),Me.length&&(Pn(Me),qn(Ye.tabGroup),Ye._updateContentElements(!0))},_updateContentElements:function(Ye){var Me=this,pe=Me._contentUrls,lt=Me.tabGroup.children(".k-item"),yt=Me.wrapper.children("div:not(.k-tabstrip-items-wrapper)"),on=Me._elementId.bind(Me);yt.length&&lt.length>yt.length?yt.each(function(zi){var po,Kn=on(Xe(this),zi),ho=lt.filter("[aria-controls="+(Kn||0)+"]")[0];!ho&&Ye&&(ho=lt[zi]),ho&&(ho.setAttribute(Jn,Kn),po=ho.id=on(Xe(ho),zi,!0),this.setAttribute(ci,po)),this.setAttribute("id",Kn)}):lt.each(function(zi){var po,Kn=yt.eq(zi),ho=on(Kn,zi);this.setAttribute(Jn,ho),po=this.id=on(Xe(this),zi,!0),!Kn.length&&pe[zi]?Xe("<div class='"+Xn+"'/>").appendTo(Me.wrapper).attr("id",ho):(Kn.attr("id",ho),!Xe(this).children(".k-loading")[0]&&!pe[zi]&&Xe("<span class='k-loading k-complete'/>").prependTo(this)),Kn.attr("role","tabpanel"),Kn.attr("tabindex","0"),Kn.attr(ci,po),Kn.filter(":not(."+Fi+")").attr(Vi,!0)}),Me.contentElements=Me.contentAnimators=Me.wrapper.children("div:not(.k-tabstrip-items-wrapper)"),Me.tabsHeight=kn(Me.tabGroup)+parseInt(Me.wrapper.css("border-top-width"),10)+parseInt(Me.wrapper.css("border-bottom-width"),10),ze.kineticScrollNeeded&&ze.mobile.ui.Scroller&&(ze.touchScroller(Me.contentElements),Me.contentElements=Me.contentElements.children(".km-scroll-container"))},_wrapper:function(){this.wrapper=this.element.is("ul")?this.element.wrapAll("<div />").parent():this.element}});return Co(Ue,{renderItem:function(Ye){Ye=Co({tabStrip:{},group:{}},Ye);var Me=Oi.empty,pe=Ye.item;return Oi.item(Co(Ye,{image:pe.imageUrl?Oi.image:Me,sprite:pe.spriteCssClass?Oi.sprite:Me,itemWrapper:Oi.itemWrapper},Ai))},renderContent:function(Ye){return Oi.content(Co(Ye,Ai))}}),ze.ui.plugin(Ue),window.kendo}.apply(ot={},ur=[d]))&&(si=ot),void 0===(pn=function(){var vn=kendo,Xe=vn.Observable.extend({init:function(Ke){vn.Observable.fn.init.call(this,Ke),this.clear()},events:["undo","redo"],push:function(Ke){this.stack=this.stack.slice(0,this.currentCommandIndex+1),this.currentCommandIndex=this.stack.push(Ke)-1},undo:function(){if(this.canUndo()){var Ke=this.stack[this.currentCommandIndex--];Ke.undo(),this.trigger("undo",{command:Ke})}},redo:function(){if(this.canRedo()){var Ke=this.stack[++this.currentCommandIndex];Ke.redo(),this.trigger("redo",{command:Ke})}},clear:function(){this.stack=[],this.currentCommandIndex=-1},canUndo:function(){return this.currentCommandIndex>=0},canRedo:function(){return this.currentCommandIndex!=this.stack.length-1}});vn.deepExtend(vn,{util:{UndoRedoStack:Xe}})}.apply(_i={},ur=[e]))&&(pn=_i),void 0===(wi=function(){var vn=window.kendo.jQuery,Xe=void 0,Ke=window.kendo,ze=Ke.Class,St=Ke.ui.Widget,it=Ke.support.mobileOS,Dt=Ke.support.browser,Hn=vn.extend,Ui=Ke.deepExtend,Co=Ke.keys,Vn="select.k-select-overlay",Dn="k-placeholder",kn="placeholder",en=ze.extend({init:function(Be){this.options=Be},getHtml:function(){var Be=this.options;return Ke.template(Be.template,{useWithBlock:!1})(Be)}}),cn={editorWrapperTemplate:'<table cellspacing="0" cellpadding="0" class="k-widget k-editor" role="presentation"><tbody><tr role="presentation"><td class="k-editor-toolbar-wrap" role="presentation"><ul class="k-toolbar k-editor-toolbar" role="toolbar"></ul></td></tr><tr><td class="k-editable-area k-editor-content"></td></tr></tbody></table>',buttonTemplate:'# var iconCssClass = "k-icon k-i-" + kendo.toHyphens(data.cssClass.replace("k-", ""));## var dataPopup = data.popup ? "data-popup" : "";#<button type="button" tabindex="0" role="button" class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-tool" #= dataPopup # title="#= data.title #" aria-label="#= data.title #"><span class="#= iconCssClass #"></span><span class="k-tool-text k-button-text">#= data.title #</span></button>',iconTextButtonTemplate:'# var iconCssClass = "k-icon k-i-" + kendo.toHyphens(data.cssClass.replace("k-", ""));## var dataPopup = data.popup ? "data-popup" : "";#<button type="button" tabindex="0" role="button" class="k-i-import k-button k-button-md k-rounded-md k-button-solid k-button-solid-base" #= dataPopup # title="#= data.title #" aria-label="#= data.title #"><span class="k-button-icon #= iconCssClass #"></span><span class="k-button-text">#= data.title #</span></button>',tableWizardButtonTemplate:'# var iconCssClass = "k-icon k-i-" + kendo.toHyphens(data.cssClass.replace("k-", ""));## var dataPopup = data.popup ? "data-popup" : "";#<button type="button" tabindex="0" role="button" class="k-tool k-button k-button-md k-rounded-md k-button-solid k-button-solid-base" #= dataPopup # title="#= data.title #" aria-label="#= data.title #"><span class="#= iconCssClass #"></span><span class="k-tool-text">#= data.title #</span></button>',colorPickerTemplate:'<input class="k-colorpicker k-icon k-i-#= data.cssClass.replace("k-", "") #" />',comboBoxTemplate:'<select title="#= data.title #" aria-label="#= data.title #" class="#= data.cssClass #"></select>',dropDownListTemplate:'<span class="k-editor-dropdown"><select title="#= data.title #" aria-label="#= data.title #" class="#= data.cssClass #"></select></span>',separatorTemplate:'<span class="k-separator"></span>',overflowAnchorTemplate:'<button type="button" tabindex="0" role="button" class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-icon-button k-tool k-overflow-anchor" data-popup title="#= data.title #" aria-label="#= data.title #" aria-haspopup="true" aria-expanded="false"><span class="k-icon k-i-more-vertical k-button-icon"></span></button>',formatByName:function(Be,At){for(var Rt=0;Rt<At.length;Rt++)if(vn.inArray(Be,At[Rt].tags)>=0)return At[Rt]},getToolCssClass:function(Be){return{superscript:"sup-script",subscript:"sub-script",justifyLeft:"align-left",justifyCenter:"align-center",justifyRight:"align-right",justifyFull:"align-justify",insertUnorderedList:"list-unordered",insertOrderedList:"list-ordered",insertUpperRomanList:"list-roman-upper",insertLowerRomanList:"list-roman-lower",import:"import",indent:"indent-increase",outdent:"indent-decrease",createLink:"link-horizontal",unlink:"unlink-horizontal",insertImage:"image",insertFile:"file-add",viewHtml:"html",foreColor:"foreground-color",backColor:"paint",createTable:"table-insert",addColumnLeft:"table-column-insert-left",addColumnRight:"table-column-insert-right",addRowAbove:"table-row-insert-above",addRowBelow:"table-row-insert-below",deleteRow:"table-row-delete",deleteColumn:"table-column-delete",mergeCellsHorizontally:"cells-merge-horizontally",mergeCellsVertically:"cells-merge-vertically",splitCellHorizontally:"cell-split-horizontally",splitCellVertically:"cell-split-vertically",tableWizard:"table-properties",tableWizardInsert:"table-wizard",tableAlignLeft:"table-position-left",tableAlignCenter:"table-position-center",tableAlignRight:"table-position-right",cleanFormatting:"clear-css",copyFormat:"copy-format",applyFormat:"apply-format"}[Be]||Be},registerTool:function(Be,At){var Rt=At.options;Rt&&Rt.template&&(Rt.template.options.cssClass="k-"+cn.getToolCssClass(Be)),At.name||(At.options.name=Be,At.name=Be.toLowerCase()),an.defaultTools[Be]=At},registerFormat:function(Be,At){an.fn.options.formats[Be]=At},cacheComments:function(Be,At){for(var Rt in At)Be=Be.replace(At[Rt],"{"+Rt+"}");return Be},retrieveComments:function(Be,At){for(var Rt in At)Be=Be.replace("{"+Rt+"}",At[Rt]);return Be}},ft=typeof document.documentElement.contentEditable<"u",an=St.extend({init:function(Be,At){var Pt,Xn,Nn,Ae,He,Kt,Rt=this,$t=Ke.ui.editor,On=$t.Dom;if(ft){if(St.fn.init.call(Rt,Be,At),Rt.options=Ui({},Rt.options,At),Rt.options.tools=Rt.options.tools.slice(),Ae=On.name(Kt=(Be=Rt.element)[0]),this._registerHandler(Be.closest("form"),"submit",Rt.update.bind(Rt,Xe)),(Nn=Hn({},Rt.options)).editor=Rt,"textarea"==Ae?(Rt._wrapTextarea(),Xn=Rt.wrapper.find(".k-editor-toolbar"),Kt.id&&Xn.attr("aria-controls",Kt.id)):(Rt.element.attr("contenteditable",!0).addClass("k-widget k-editor k-editor-inline"),Nn.popup=!0,Xn=vn('<ul class="k-toolbar k-editor-toolbar" role="toolbar" />').insertBefore(Be)),Rt.toolbar=new $t.Toolbar(Xn[0],Nn),Rt.toolbar.bindTo(Rt),"textarea"==Ae&&setTimeout(function(){var Ci=Rt.wrapper[0].style.height,xi=parseInt(Ci,10),Wn=Rt.wrapper.height();Ci.indexOf("px")>0&&!isNaN(xi)&&Wn>xi&&Rt.wrapper.height(xi-(Wn-xi))}),Rt._resizable(),Rt._initializeContentElement(Rt),Rt.keyboard=new $t.Keyboard([new $t.BackspaceHandler(Rt),new $t.TypingHandler(Rt),new $t.SystemHandler(Rt),new $t.SelectAllHandler(Rt)]),Rt.clipboard=new $t.Clipboard(this),Rt.undoRedoStack=new Ke.util.UndoRedoStack,At&&At.value)Pt=At.value;else if(Rt.textarea){(Pt=Kt.value).replace(/\s/g,"").length||(Pt=Pt.replace(/\s/g,"")),Rt.options.encoded&&Kt.defaultValue&&Kt.defaultValue.trim().length&&(Pt=Kt.defaultValue);var Fi=$t.Serializer.htmlToDom(Pt,vn("<div></div>")[0],Rt.options.deserialization);He=On.getAllComments(Fi),Pt=(Pt=cn.cacheComments(Pt,He)).replace(/[\r\n\v\f\t ]+/gi," "),Pt=cn.retrieveComments(Pt,He)}else Pt=Kt.innerHTML;Rt.value(Pt||"\ufeff"),this._registerHandler(document,{mousedown:function(){Rt._endTyping()},mouseup:function(Ci){Rt._mouseup(Ci)}}),Rt._initializeImmutables(),"textarea"==Ae&&Rt._ariaLabel(Rt.wrapper.find("iframe")),Rt.toolbar.resize(),Ke.notify(Rt)}},setOptions:function(Be){St.fn.setOptions.call(this,Be),Be.tools&&this.toolbar.bindTo(this),this._initializePlaceholder()},_togglePlaceholder:function(Be){var Pt=vn(this.body),$t=this.options.placeholder;!this.textarea||!$t||(Pt.attr("aria-label",function(){return Be?$t:""}),Pt.toggleClass(Dn,Be))},_endTyping:function(){var Be=this.keyboard;try{Be.isTypingInProgress()&&(Be.endTyping(!0),this.saveSelection())}catch{}},_selectionChange:function(){this._selectionStarted=!1,this.saveSelection(),this.trigger("select",{})},_resizable:function(){var Be=this.options.resizable;if((vn.isPlainObject(Be)?Be.content===Xe||!0===Be.content:Be)&&this.textarea){var Rt=vn("<div class='k-resize-handle'><span class='k-icon k-i-arrow-45-down-right'></span></div>").insertAfter(this.textarea);this.wrapper.addClass("k-resizable"),this.wrapper.kendoResizable(Hn({},this.options.resizable,{draggableElement:Rt,start:function($t){var Xn=this.editor=vn($t.currentTarget).closest(".k-editor");this.initialSize=Xn.height(),Xn.find("td").last().append("<div class='k-overlay' />")},resize:function($t){var Nn=this.initialSize+$t.y.initialDelta;Nn=Math.min(this.options.max||1/0,Math.max(this.options.min||0,Nn)),this.editor.height(Nn)},resizeend:function(){this.editor.find(".k-overlay").remove(),this.editor=null}})),Ke.support.mobileOS.ios&&(this.wrapper.getKendoResizable().draggable.options.ignore=Vn)}},_initializeElementResizing:function(){var Be=this;Ke.ui.editor.ElementResizingFactory.current.create(Be),Be._showElementResizeHandlesProxy=Be._showElementResizeHandles.bind(Be),Be.bind("select",Be._showElementResizeHandlesProxy)},_destroyElementResizing:function(){var Be=this,At=Be.elementResizing;At&&(At.destroy(),Be.elementResizing=null),Be._showElementResizeHandlesProxy&&Be.unbind("select",Be._showElementResizeHandlesProxy)},_showElementResizeHandles:function(){var At=this.elementResizing;At&&At.element&&At.element.parentNode?At.showResizeHandles():At&&(!At.element||!At.element.parentNode)&&this._destroyElementResizing()},_initializeColumnResizing:function(){Ke.ui.editor.ColumnResizing.create(this)},_destroyColumnResizing:function(){this.columnResizing&&(this.columnResizing.destroy(),this.columnResizing=null)},_initializeRowResizing:function(){Ke.ui.editor.RowResizing.create(this)},_destroyRowResizing:function(){this.rowResizing&&(this.rowResizing.destroy(),this.rowResizing=null)},_wrapTextarea:function(){var At=this.element,Rt=At[0].style.width,Pt=At[0].style.height,Xn=vn(cn.editorWrapperTemplate).insertBefore(At),Nn=Xn.find(".k-editable-area");Xn.css({width:Rt,height:Pt}),At.attr("autocomplete","off").appendTo(Nn).addClass("k-content k-raw-content").css("display","none"),this.textarea=At,this.wrapper=Xn},_createContentElement:function(Be){var Rt,Pt,$t,On,At=this,Xn=At.textarea,Nn=At.options.domain,Ae=Nn||document.domain,He="";return Xn.hide(),Rt=vn("<iframe />",{title:At.options.messages.editAreaTitle,frameBorder:"0"})[0],vn(Rt).css("display","").addClass("k-content k-iframe").attr("tabindex",Xn[0].tabIndex).insertBefore(Xn),(Nn||Ae!=location.hostname)&&(Rt.src="javascript:document.write('"+(He='<script>document.domain="'+Ae+'"<\/script>')+"')"),Rt.src||(Rt.src=""),$t=(Pt=Rt.contentWindow||Rt).document||Rt.contentDocument,vn(Rt).one("load",function(){At.toolbar.decorateFrom($t.body)}),On=document.getElementsByTagName("html")[0].getAttribute("lang")||"en",$t.open(),$t.write("<!DOCTYPE html><html lang='"+On+"'><head><meta charset='utf-8' /><title>Kendo UI Editor content</title><style>html{padding:0;margin:0;height:100%;min-height:100%;cursor:text;}body{padding:0;margin:0;}body{box-sizing:border-box;font-size:12px;font-family:Verdana,Geneva,sans-serif;margin-top:-1px;padding:5px .4em 0;word-wrap: break-word;-webkit-nbsp-mode: space;-webkit-line-break: after-white-space;"+(Ke.support.isRtl(Xn)?"direction:rtl;":"")+(it.ios?"word-break:keep-all;":"")+(Dt.edge||Dt.chrome?"height:100%;":"")+"}h1{font-size:2em;margin:.67em 0}h2{font-size:1.5em}h3{font-size:1.16em}h4{font-size:1em}h5{font-size:.83em}h6{font-size:.7em}p{margin:0 0 1em;}.k-marker{display:none;}.k-paste-container,.Apple-style-span{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}ul,ol{padding-left:2.5em}span{-ms-high-contrast-adjust:none;}a{color:#00a}code{font-size:1.23em}telerik\\3Ascript{display: none;}.k-table{width:100%;border-spacing:0;margin: 0 0 1em;}.k-table td{min-width:1px;padding:.2em .3em;}.k-table,.k-table td{outline:0;border: 1px dotted #ccc;}.k-table th{outline:0;border: 1px dotted #999;}.k-table p{margin:0;padding:0;}.k-column-resize-handle-wrapper {position: absolute; height: 10px; width:10px; cursor: col-resize; z-index: 2;}.k-column-resize-handle {width: 100%; height: 100%;}.k-column-resize-handle > .k-column-resize-marker {width:2px; height:100%; margin:0 auto; background-color:#00b0ff; display:none; opacity:0.8;}.k-row-resize-handle-wrapper {position: absolute; cursor: row-resize; z-index:2; width: 10px; height: 10px;}.k-row-resize-handle {display: table; width: 100%; height: 100%;}.k-row-resize-marker-wrapper{display: table-cell; height:100%; width:100%; margin:0; padding:0; vertical-align: middle;}.k-row-resize-marker{margin: 0; padding:0; width:100%; height:2px; background-color: #00b0ff; opacity:0.8; display:none;}.k-element-resize-handle-wrapper {position: absolute; background-color: #fff; border: 1px solid #000; z-index: 100; width: 5px; height: 5px;}.k-element-resize-handle {width: 100%; height: 100%;}.k-element-resize-handle.k-resize-east{cursor:e-resize;}.k-element-resize-handle.k-resize-north{cursor:n-resize;}.k-element-resize-handle.k-resize-northeast{cursor:ne-resize;}.k-element-resize-handle.k-resize-northwest{cursor:nw-resize;}.k-element-resize-handle.k-resize-south{cursor:s-resize;}.k-element-resize-handle.k-resize-southeast{cursor:se-resize;}.k-element-resize-handle.k-resize-southwest{cursor:sw-resize;}.k-element-resize-handle.k-resize-west{cursor:w-resize;}.k-table.k-element-resizing{opacity:0.6;}.k-placeholder{color:grey}k\\:script{display:none;}</style>"+He+vn.map(Be,function(Fi){return"<link rel='stylesheet' href='"+Fi+"'>"}).join("")+"</head><body autocorrect='off' contenteditable='true'></body></html>"),$t.close(),Pt},_blur:function(){var Be=this.textarea,At=Be?Be.val():this._oldValue,Rt=this.options.encoded?this.encodedValue():this.value();this.update(),Be&&Be.trigger("blur"),Rt!=At&&(this.trigger("change"),Be&&Be.trigger("change"))},_spellCorrect:function(Be){var At,Rt=!1;this._registerHandler(Be.body,{contextmenu:function(){Be.one("select",function(){At=null}),Be._spellCorrectTimeout=setTimeout(function(){At=new Ke.ui.editor.RestorePoint(Be.getRange(),Be.body),Rt=!1},10)},input:function(){if(At){if(Ke.support.browser.mozilla&&!Rt)return void(Rt=!0);Ke.ui.editor._finishUpdate(Be,At)}}})},_registerHandler:function(Be,At,Rt){var Xn,Nn,$t=".kendoEditor";if(Be=vn(Be),this._handlers||(this._handlers=[]),Be.length)if(vn.isPlainObject(At))for(var Ae in At)At.hasOwnProperty(Ae)&&this._registerHandler(Be,Ae,At[Ae]);else for(Xn=Ke.applyEventMap(At).split(" "),Nn=0;Nn<Xn.length;Nn++)this._handlers.push({element:Be,type:Xn[Nn]+$t,handler:Rt}),Be.on(Xn[Nn]+$t,Rt)},_deregisterHandlers:function(){for(var Be=this._handlers,At=0;At<Be.length;At++){var Rt=Be[At];Rt.element.off(Rt.type,Rt.handler)}this._handlers=[]},_initializeContentElement:function(){var At,Rt,Pt,Be=this;if(Be.textarea){if(Be.window=Be._createContentElement(Be.options.stylesheets),!(At=Be.document=Be.window.contentDocument||Be.window.document).body){var $t=At.createElement("body");$t.setAttribute("contenteditable","true"),$t.setAttribute("autocorrect","off"),At.getElementsByTagName("html")[0].appendChild($t);var Xn=setInterval(function(){vn(Be.document).find("body").length>1&&(vn(Be.document).find("body").last().remove(),window.clearInterval(Xn))},10)}Be.body=At.body,Rt=Be.window,Pt=At,this._registerHandler(At,"mouseup",this._mouseup.bind(this))}else Be.window=window,At=Be.document=document,Be.body=Be.element[0],Rt=Be.body,Pt=Be.body,Be.toolbar.decorateFrom(Be.body);this._registerHandler(Rt,"blur",this._blur.bind(this)),Be._registerHandler(Pt,"down",Be._mousedown.bind(Be));try{At.execCommand("enableInlineTableEditing",null,!1)}catch{}Ke.support.touch&&this._registerHandler(At,{keydown:function(){Ke._activeElement()!=At.body&&Be.window.focus()}}),this._initializePlaceholder(),this._spellCorrect(Be),this._registerHandler(Be.document,{"mouseover dragenter":function(Nn){var Ae=vn(Be.body).height();vn(Be.body.parentElement).height()>Ae&&"html"===Nn.target.nodeName.toLowerCase()&&(Be._cachedHeight=""+Be.body.style.height,Be.body.style.height="100%")},"mouseout dragleave drop contextmenu":function(Nn){var Ae=function(){Be._cachedHeight!==Xe&&Nn.target===Be.body&&(Be.body.style.height=Be._cachedHeight,delete Be._cachedHeight)};"contextmenu"===Nn.type?setTimeout(function(){Ae()},10):Ae()}}),this._registerHandler(Be.body,{keydown:function(Nn){var Ae;if((Nn.keyCode===Co.BACKSPACE||Nn.keyCode===Co.DELETE)&&"true"!==Be.body.getAttribute("contenteditable"))return!1;if(Nn.keyCode===Co.F10)return setTimeout(Be.toolbar.focus.bind(Be.toolbar),100),Be.toolbar.preventPopupHide=!0,void Nn.preventDefault();if(Nn.keyCode==Co.LEFT||Nn.keyCode==Co.RIGHT){Ae=Be.getRange();var He=Nn.keyCode==Co.LEFT,Kt=Ae[He?"startContainer":"endContainer"],On=Ae[He?"startOffset":"endOffset"],Ci=On+(He?-1:1);3==Kt.nodeType&&"\ufeff"==Kt.nodeValue[He?Ci:On]&&(Ae.setStart(Kt,Ci),Ae.collapse(!0),Be.selectRange(Ae))}var Wn=Be.toolbar.tools,Vt=Be.keyboard.toolFromShortcut(Wn,Nn);if(Vt&&!(Vt?Wn[Vt].options:{}).keyPressCommand)return Nn.preventDefault(),/^(undo|redo)$/.test(Vt)||Be.keyboard.endTyping(!0),Be.trigger("keydown",Nn),Be.exec(Vt),Be._runPostContentKeyCommands(Nn),!1;Be.keyboard.clearTimeout(),Be.keyboard.keydown(Nn)},keypress:function(Nn){setTimeout(function(){Be._runPostContentKeyCommands(Nn),Be._showElementResizeHandles()},0)},keyup:function(Nn){(vn.inArray(Nn.keyCode,[Co.BACKSPACE,Co.TAB,Co.PAGEUP,Co.PAGEDOWN,Co.END,Co.HOME,Co.LEFT,Co.UP,Co.RIGHT,Co.DOWN,Co.INSERT,Co.DELETE])>-1||65==Nn.keyCode&&Nn.ctrlKey&&!Nn.altKey&&!Nn.shiftKey)&&(window.clearTimeout(this._refreshInterval),this._refreshInterval=window.setTimeout(function(){Be._selectionChange()},200)),Be.keyboard.keyup(Nn)},click:function(Nn){var He;"img"===Ke.ui.editor.Dom.name(Nn.target)&&((He=Be.createRange()).selectNode(Nn.target),Be.selectRange(He))},"cut copy paste drop dragover":function(Nn){Be.clipboard["on"+Nn.type](Nn)},focusin:function(){Be.body.hasAttribute("contenteditable")&&(vn(this).addClass("k-active"),Be.toolbar.show(),Be._togglePlaceholder(!1))},focusout:function(){setTimeout(function(){var Nn=Ke._activeElement(),Ae=Be.body,He=Be.toolbar;if(He.options.popup){var Kt=He.window.element.get(0);Kt&&!vn.contains(Kt,Nn)&&Kt!=Nn&&(He.preventPopupHide=!1)}Nn!=Ae&&!vn.contains(Ae,Nn)&&!He.focused()&&!He.preventPopupHide&&(vn(Ae).removeClass("k-active"),He.hide()),Be._togglePlaceholder(!Be.value().trim())},10)}}),Be._initializeColumnResizing(),Be._initializeRowResizing(),Be._initializeElementResizing()},_initializePlaceholder:function(){var Rt,Pt,Be=this,At=Be.options.placeholder;!Be.textarea||!At||(Rt="<style id='"+kn+"'>."+Dn+":before { content: '"+At+"'; }</style>",(Pt=vn(Be.document.head)).find("#"+kn).remove(),Pt.append(Rt),Be._togglePlaceholder(!Be.value().trim()))},_initializeImmutables:function(){this.options.immutables&&(this.immutables=new Ke.ui.editor.Immutables(this))},_mousedown:function(Be){var At=this;if(At._selectionStarted=!0,vn(At.body).parents(".k-window").length&&Be.stopPropagation(),!Dt.gecko){var Rt=vn(Be.target).closest("a[href]");(2==Be.which||1==Be.which&&Be.ctrlKey)&&Rt&&Rt.is("a[href]")&&window.open(Rt.attr("href"),"_new"),Be.target.tagName&&"html"===Be.target.tagName.toLowerCase()&&setTimeout(function(){At.body.focus()},0)}},_mouseup:function(Be){var At=this;Ke.support.mobileOS.ios&&Be&&vn(Be.target).is(Vn)||At._selectionStarted&&setTimeout(function(){At._selectionChange()},1)},_runPostContentKeyCommands:function(Be){for(var At=this.getRange(),Rt=this.keyboard.toolsFromShortcut(this.toolbar.tools,Be),Pt=0;Pt<Rt.length;Pt++){var $t=Rt[Pt],Xn=$t.options;Xn.keyPressCommand&&new Xn.command({range:At}).changesContent()&&(this.keyboard.endTyping(!0),this.exec($t.name))}},refresh:function(){var Be=this;if(Be.textarea){Be._destroyResizings();var At=Be.value();Be.textarea.val(At),Be.wrapper.find("iframe").remove(),Be._initializeContentElement(Be),Be.value(At)}},events:["select","change","execute","error","paste","keydown","keyup"],options:{name:"Editor",messages:{bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",superscript:"Superscript",subscript:"Subscript",justifyCenter:"Center text",justifyLeft:"Align text left",justifyRight:"Align text right",justifyFull:"Justify",insertUnorderedList:"Insert unordered list",insertOrderedList:"Insert ordered list",indent:"Indent",outdent:"Outdent",createLink:"Insert hyperlink",unlink:"Remove hyperlink",insertImage:"Insert image",insertFile:"Insert file",insertHtml:"Insert HTML",viewHtml:"View HTML",fontName:"Select font family",fontNameInherit:"(inherited font)",fontSize:"Select font size",fontSizeInherit:"(inherited size)",formatBlock:"Format",formatting:"Format",foreColor:"Color",backColor:"Background color",style:"Styles",emptyFolder:"Empty Folder",editAreaTitle:"Editable area. Press F10 for toolbar.",uploadFile:"Upload",overflowAnchor:"More tools",orderBy:"Arrange by:",orderBySize:"Size",orderByName:"Name",invalidFileType:'The selected file "{0}" is not valid. Supported file types are {1}.',deleteFile:'Are you sure you want to delete "{0}"?',overwriteFile:'A file with name "{0}" already exists in the current directory. Do you want to overwrite it?',directoryNotFound:"A directory with this name was not found.",imageWebAddress:"Web address",imageAltText:"Alternate text",imageWidth:"Width (px)",imageHeight:"Height (px)",fileWebAddress:"Web address",fileTitle:"Title",fileText:"Text",linkWebAddress:"Web address",linkText:"Text",linkToolTip:"ToolTip",linkOpenInNewWindow:"Open link in new window",dialogUpdate:"Update",dialogInsert:"Insert",dialogOk:"Ok",dialogCancel:"Cancel",cleanFormatting:"Clean formatting",createTable:"Create a table",createTableHint:"Create a {0} x {1} table",addColumnLeft:"Add column on the left",addColumnRight:"Add column on the right",addRowAbove:"Add row above",addRowBelow:"Add row below",deleteRow:"Delete row",deleteColumn:"Delete column",mergeCellsHorizontally:"Merge cells horizontally",mergeCellsVertically:"Merge cells vertically",splitCellHorizontally:"Split cells horizontally",splitCellVertically:"Split cells vertically",tableAlignLeft:"Table Align Left",tableAlignCenter:"Table Align Center",tableAlignRight:"Table Align Right",tableWizard:"Table Wizard",tableTab:"Table",cellTab:"Cell",accessibilityTab:"Accessibility",caption:"Caption",summary:"Summary",width:"Width",height:"Height",units:"Units",cellSpacing:"Cell Spacing",cellPadding:"Cell Padding",cellMargin:"Cell Margin",alignment:"Alignment",background:"Background",cssClass:"CSS Class",id:"ID",border:"Border",borderStyle:"Border Style",collapseBorders:"Collapse borders",wrapText:"Wrap text",associateCellsWithHeaders:"Associate headers",alignLeft:"Align Left",alignCenter:"Align Center",alignRight:"Align Right",alignLeftTop:"Align Left Top",alignCenterTop:"Align Center Top",alignRightTop:"Align Right Top",alignLeftMiddle:"Align Left Middle",alignCenterMiddle:"Align Center Middle",alignRightMiddle:"Align Right Middle",alignLeftBottom:"Align Left Bottom",alignCenterBottom:"Align Center Bottom",alignRightBottom:"Align Right Bottom",alignRemove:"Remove Alignment",columns:"Columns",rows:"Rows",selectAllCells:"Select All Cells",exportAs:"Export As",import:"Import",print:"Print",headerRows:"Header Rows",headerColumns:"Header Cols",tableSummaryPlaceholder:"Summary attribute is not HTML5 compatible.",associateNone:"None",associateScope:"Associate using 'scope' attribute",associateIds:"Associate using Ids",copyFormat:"Copy format",applyFormat:"Apply format",borderNone:"None",undo:"Undo",redo:"Redo"},placeholder:"",formats:{},encoded:!0,domain:null,resizable:!1,deserialization:{custom:null},serialization:{entities:!0,semantic:!0,scripts:!1,optimizeTags:!1,keepEOL:!1},pasteCleanup:{all:!1,css:!1,custom:null,keepNewLines:!1,msAllFormatting:!1,msConvertLists:!0,msTags:!0,none:!1,span:!1},stylesheets:[],dialogOptions:{modal:!0,resizable:!1,draggable:!0,animation:!1},imageBrowser:null,fileBrowser:null,fontName:[{text:"Arial",value:"Arial, Helvetica, sans-serif"},{text:"Courier New",value:'"Courier New", Courier, monospace'},{text:"Georgia",value:"Georgia, serif"},{text:"Impact",value:"Impact, Charcoal, sans-serif"},{text:"Lucida Console",value:'"Lucida Console", Monaco, monospace'},{text:"Tahoma",value:"Tahoma, Geneva, sans-serif"},{text:"Times New Roman",value:'"Times New Roman", Times, serif'},{text:"Trebuchet MS",value:'"Trebuchet MS", Helvetica, sans-serif'},{text:"Verdana",value:"Verdana, Geneva, sans-serif"}],fontSize:[{text:"1 (8pt)",value:"xx-small"},{text:"2 (10pt)",value:"x-small"},{text:"3 (12pt)",value:"small"},{text:"4 (14pt)",value:"medium"},{text:"5 (18pt)",value:"large"},{text:"6 (24pt)",value:"x-large"},{text:"7 (36pt)",value:"xx-large"}],formatBlock:[{text:"Paragraph",value:"p"},{text:"Quotation",value:"blockquote"},{text:"Heading 1",value:"h1"},{text:"Heading 2",value:"h2"},{text:"Heading 3",value:"h3"},{text:"Heading 4",value:"h4"},{text:"Heading 5",value:"h5"},{text:"Heading 6",value:"h6"}],tools:[].concat.call(["formatting"],["bold","italic","underline"],["undo","redo"],["justifyLeft","justifyCenter","justifyRight"],["copyFormat","applyFormat"],["insertUnorderedList","insertOrderedList"],["indent","outdent"],["createLink","unlink"],["insertImage"],["tableWizard","createTable","addColumnLeft","addColumnRight","addRowAbove","addRowBelow","deleteRow","deleteColumn","mergeCellsHorizontally","mergeCellsVertically","splitCellHorizontally","splitCellVertically","tableAlignLeft","tableAlignCenter","tableAlignRight"])},destroy:function(){St.fn.destroy.call(this),this._endTyping(!0),this._deregisterHandlers(),clearTimeout(this._spellCorrectTimeout),this._focusOutside(),this.toolbar.destroy(),this._destroyUploadWidget(),this._destroyResizings(),Ke.destroy(this.wrapper)},_destroyResizings:function(){var Be=this;Be._destroyElementResizing(),Ke.ui.editor.ElementResizingFactory.current.dispose(Be),Be._destroyRowResizing(),Ke.ui.editor.RowResizing.dispose(Be),Be._destroyColumnResizing(),Ke.ui.editor.ColumnResizing.dispose(Be)},_focusOutside:function(){Ke.support.browser.msie&&this.textarea&&vn("<input style='position:fixed;left:1px;top:1px;width:1px;height:1px;font-size:0;border:0;opacity:0' />").appendTo(document.body).trigger("focus").trigger("blur").remove()},_destroyUploadWidget:function(){this._uploadWidget&&(this._uploadWidget.destroy(),this._uploadWidget=null)},state:function(Be){var $t,Xn,At=an.defaultTools[Be],Rt=At&&(At.options.finder||At.finder),Pt=Ke.ui.editor.RangeUtils;return!!Rt&&($t=this.getRange(),!(Xn=Pt.textNodes($t)).length&&$t.collapsed&&(Xn=[$t.startContainer]),Rt.getFormat?Rt.getFormat(Xn):Rt.isFormatted(Xn))},value:function(Be){var At=this.body,Rt=Ke.ui.editor,Pt=this.options,$t=Rt.Serializer.domToXhtml(At,Pt.serialization);if(Be===Xe)return $t;Be!=$t&&(Rt.Serializer.htmlToDom(Be,At,Pt.deserialization),this.selectionRestorePoint=null,this.update(),this.toolbar.refreshTools())},saveSelection:function(Be){var At=(Be=Be||this.getRange()).commonAncestorContainer,Rt=this.body;(At==Rt||vn.contains(Rt,At))&&(this.selectionRestorePoint=new Ke.ui.editor.RestorePoint(Be,Rt))},_focusBody:function(){var $t,Be=this.body,At=this.wrapper&&this.wrapper.find("iframe")[0],Rt=this.document.documentElement,Pt=Ke._activeElement();!At&&Be.scrollHeight>Be.clientHeight?($t=Be.scrollTop,Be.focus(),Be.scrollTop=$t):Pt!=Be&&Pt!=At&&($t=Rt.scrollTop,Be.focus(),Rt.scrollTop=$t)},restoreSelection:function(){this._focusBody(),this.selectionRestorePoint&&this.selectRange(this.selectionRestorePoint.toRange())},focus:function(){this.restoreSelection()},update:function(Be){Be=Be||this.options.encoded?this.encodedValue():this.value(),this.textarea?(this.textarea.val(Be),this._togglePlaceholder(!Be.trim())):this._oldValue=Be},encodedValue:function(){return Ke.ui.editor.Dom.encode(this.value())},createRange:function(Be){return Ke.ui.editor.RangeUtils.createRange(Be||this.document)},getSelection:function(){return Ke.ui.editor.SelectionUtils.selectionFromDocument(this.document)},selectRange:function(Be){this._focusBody();var At=this.getSelection();At.removeAllRanges(),At.addRange(Be),this.saveSelection(Be)},getRange:function(){var Be=this.getSelection(),At=Be&&Be.rangeCount>0?Be.getRangeAt(0):this.createRange(),Rt=this.document;return At.startContainer==Rt&&At.endContainer==Rt&&!At.startOffset&&!At.endOffset&&(At.setStart(this.body,0),At.collapse(!0)),At},_containsRange:function(Be){var At=Ke.ui.editor.Dom,Rt=this.body;return Be&&At.isAncestorOrSelf(Rt,Be.startContainer)&&At.isAncestorOrSelf(Rt,Be.endContainer)},_deleteSavedRange:function(){"_range"in this&&delete this._range},selectedHtml:function(){return Ke.ui.editor.Serializer.domToXhtml(this.getRange().cloneContents())},paste:function(Be,At){this.focus();var Rt=new Ke.ui.editor.InsertHtmlCommand(vn.extend({range:this.getRange(),html:Be},At));Rt.editor=this,Rt.exec()},exec:function(Be,At){var $t,Xn,Rt=this,Pt=null;if(!Be)throw new Error("kendoEditor.exec(): `name` parameter cannot be empty");if("true"!==Rt.body.getAttribute("contenteditable")&&"print"!==Be&&"pdf"!==Be&&"exportAs"!==Be)return!1;if(Be=Be.toLowerCase(),Rt.keyboard.isTypingInProgress()||(Rt._focusBody(),Rt.selectRange(Rt._range||Rt.getRange())),!(Xn=Rt.toolbar.toolById(Be)))for(var Ae in an.defaultTools)if(Ae.toLowerCase()==Be){Xn=an.defaultTools[Ae];break}if(Xn){if($t=Rt.getRange(),Xn.command&&(Pt=Xn.command(Hn({range:$t,body:Rt.body,immutables:!!Rt.immutables},At))),Rt.trigger("execute",{name:Be,command:Pt}))return;if(/^(undo|redo)$/i.test(Be))Rt.undoRedoStack[Be]();else if(Pt&&(Rt.execCommand(Pt),Pt.async))return void(Pt.change=Rt._selectionChange.bind(Rt));Rt._selectionChange()}},execCommand:function(Be){Be.managesUndoRedo||this.undoRedoStack.push(Be),Be.editor=this,Be.exec()}}),$e=(an.defaultTools={},Ke.ui.plugin(an),ze.extend({init:function(Be){this.options=Be},initialize:function(Be,At){Be.attr({unselectable:"on",title:At.title,"aria-label":At.title})},command:function(Be){return new this.options.command(Be)},update:vn.noop})),Je=($e.exec=function(Be,At,Rt){Be.exec(At,{value:Rt})},$e.extend({command:vn.noop,update:function(Be,At,Rt){switch(this.options.name){case"undo":Be.attr("disabled",!Rt.canUndo());break;case"redo":Be.attr("disabled",!Rt.canRedo())}}})),Ve=(cn.registerTool("separator",new $e({template:new en({template:cn.separatorTemplate})})),cn.registerTool("undo",new Je({key:"Z",ctrl:!0,template:new en({template:cn.buttonTemplate,title:"Undo"})})),cn.registerTool("redo",new Je({key:"Y",ctrl:!0,template:new en({template:cn.buttonTemplate,title:"Redo"})})),"\ufeff"),Ge=Ve;(Dt.msie||Dt.edge)&&(Ge=Ve="&nbsp;"),Hn(Ke.ui,{editor:{ToolTemplate:en,EditorUtils:cn,Tool:$e,emptyElementContent:Ve,emptyTableCellContent:Ge}}),Ke.PDFMixin&&(Ke.PDFMixin.extend(an.prototype),an.prototype._drawPDF=function(){return Ke.drawing.drawDOM(this.body,this.options.pdf)},an.prototype.saveAsPDF=function(){var Be=new vn.Deferred,At=Be.promise();if(!this.trigger("pdfExport",{promise:At})){var Pt=this.options.pdf;return this._drawPDF(Be).then(function($t){return Ke.drawing.exportPDF($t,Pt)}).done(function($t){Ke.saveAs({dataURI:$t,fileName:Pt.fileName,proxyURL:Pt.proxyURL,proxyTarget:Pt.proxyTarget,forceProxy:Pt.forceProxy}),Be.resolve()}).fail(function($t){Be.reject($t)}),At}})}.apply(hi={},ur=[pn,O,te,q,Ko]))&&(wi=hi),void 0===(zn=function(){var vn=window.kendo.jQuery,Xe=window.kendo,Ke=vn.map,ze=vn.extend,St=Xe.support.browser,it="style",Hn="cssFloat",Ui="styleFloat",Sn="k-marker";function Vn(Ae){var Kt,On,He={};for(Kt=0,On=Ae.length;Kt<On;Kt++)He[Ae[Kt]]=!0;return He}var Dn=Vn("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed".split(",")),kn="p,div,h1,h2,h3,h4,h5,h6,address,applet,blockquote,button,center,dd,dir,dl,dt,fieldset,form,frameset,hr,iframe,isindex,map,menu,noframes,noscript,object,pre,script,table,tbody,td,tfoot,th,thead,tr,header,article,nav,footer,section,aside,main,figure,figcaption".split(","),ui=kn.concat(["ul","ol","li"]),Ot=Vn(ui),en=Vn("area,base,br,col,command,embed,hr,img,input,keygen,link,menuitem,meta,param,source,track,wbr".split(",")),cn="span,em,a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,strike,strong,sub,sup,textarea,tt,u,var,data,time,mark,ruby".split(","),Ht=Vn(cn),ft=Vn("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected".split(",")),Nt=["hgroup","ol","ul","dl","object","video","audio","table","colgroup","tbody","thead","tfoot","tr","select","optgroup"],an=function(Ae){1==Ae.nodeType&&Ae.normalize()};St.msie&&St.version>=8&&(an=function(Ae){if(1==Ae.nodeType&&Ae.firstChild){var He=Ae.firstChild,Kt=He;for(an(Kt);Kt=Kt.nextSibling;)an(Kt),3==Kt.nodeType&&3==He.nodeType&&(Kt.nodeValue=He.nodeValue+Kt.nodeValue,Nn.remove(He)),He=Kt}});var At,$e=/^\s+$/,Je=/^[\n\r\t]+$/,Ve=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,Ge=/\ufeff/g,Be=/^(\s+|\ufeff)$/,Rt="color,padding-left,padding-right,padding-top,padding-bottom,background-color,background-attachment,background-image,background-position,background-repeat,border-top-style,border-top-width,border-top-color,border-bottom-style,border-bottom-width,border-bottom-color,border-left-style,border-left-width,border-left-color,border-right-style,border-right-width,border-right-color,font-family,font-size,font-style,font-variant,font-weight,line-height".split(","),Pt=/[<>\&]/g,$t=/[\u00A0-\u2666<>\&]/g,Xn={34:"quot",38:"amp",39:"apos",60:"lt",62:"gt",160:"nbsp",161:"iexcl",162:"cent",163:"pound",164:"curren",165:"yen",166:"brvbar",167:"sect",168:"uml",169:"copy",170:"ordf",171:"laquo",172:"not",173:"shy",174:"reg",175:"macr",176:"deg",177:"plusmn",178:"sup2",179:"sup3",180:"acute",181:"micro",182:"para",183:"middot",184:"cedil",185:"sup1",186:"ordm",187:"raquo",188:"frac14",189:"frac12",190:"frac34",191:"iquest",192:"Agrave",193:"Aacute",194:"Acirc",195:"Atilde",196:"Auml",197:"Aring",198:"AElig",199:"Ccedil",200:"Egrave",201:"Eacute",202:"Ecirc",203:"Euml",204:"Igrave",205:"Iacute",206:"Icirc",207:"Iuml",208:"ETH",209:"Ntilde",210:"Ograve",211:"Oacute",212:"Ocirc",213:"Otilde",214:"Ouml",215:"times",216:"Oslash",217:"Ugrave",218:"Uacute",219:"Ucirc",220:"Uuml",221:"Yacute",222:"THORN",223:"szlig",224:"agrave",225:"aacute",226:"acirc",227:"atilde",228:"auml",229:"aring",230:"aelig",231:"ccedil",232:"egrave",233:"eacute",234:"ecirc",235:"euml",236:"igrave",237:"iacute",238:"icirc",239:"iuml",240:"eth",241:"ntilde",242:"ograve",243:"oacute",244:"ocirc",245:"otilde",246:"ouml",247:"divide",248:"oslash",249:"ugrave",250:"uacute",251:"ucirc",252:"uuml",253:"yacute",254:"thorn",255:"yuml",402:"fnof",913:"Alpha",914:"Beta",915:"Gamma",916:"Delta",917:"Epsilon",918:"Zeta",919:"Eta",920:"Theta",921:"Iota",922:"Kappa",923:"Lambda",924:"Mu",925:"Nu",926:"Xi",927:"Omicron",928:"Pi",929:"Rho",931:"Sigma",932:"Tau",933:"Upsilon",934:"Phi",935:"Chi",936:"Psi",937:"Omega",945:"alpha",946:"beta",947:"gamma",948:"delta",949:"epsilon",950:"zeta",951:"eta",952:"theta",953:"iota",954:"kappa",955:"lambda",956:"mu",957:"nu",958:"xi",959:"omicron",960:"pi",961:"rho",962:"sigmaf",963:"sigma",964:"tau",965:"upsilon",966:"phi",967:"chi",968:"psi",969:"omega",977:"thetasym",978:"upsih",982:"piv",8226:"bull",8230:"hellip",8242:"prime",8243:"Prime",8254:"oline",8260:"frasl",8472:"weierp",8465:"image",8476:"real",8482:"trade",8501:"alefsym",8592:"larr",8593:"uarr",8594:"rarr",8595:"darr",8596:"harr",8629:"crarr",8656:"lArr",8657:"uArr",8658:"rArr",8659:"dArr",8660:"hArr",8704:"forall",8706:"part",8707:"exist",8709:"empty",8711:"nabla",8712:"isin",8713:"notin",8715:"ni",8719:"prod",8721:"sum",8722:"minus",8727:"lowast",8730:"radic",8733:"prop",8734:"infin",8736:"ang",8743:"and",8744:"or",8745:"cap",8746:"cup",8747:"int",8756:"there4",8764:"sim",8773:"cong",8776:"asymp",8800:"ne",8801:"equiv",8804:"le",8805:"ge",8834:"sub",8835:"sup",8836:"nsub",8838:"sube",8839:"supe",8853:"oplus",8855:"otimes",8869:"perp",8901:"sdot",8968:"lceil",8969:"rceil",8970:"lfloor",8971:"rfloor",9001:"lang",9002:"rang",9674:"loz",9824:"spades",9827:"clubs",9829:"hearts",9830:"diams",338:"OElig",339:"oelig",352:"Scaron",353:"scaron",376:"Yuml",710:"circ",732:"tilde",8194:"ensp",8195:"emsp",8201:"thinsp",8204:"zwnj",8205:"zwj",8206:"lrm",8207:"rlm",8211:"ndash",8212:"mdash",8216:"lsquo",8217:"rsquo",8218:"sbquo",8220:"ldquo",8221:"rdquo",8222:"bdquo",8224:"dagger",8225:"Dagger",8240:"permil",8249:"lsaquo",8250:"rsaquo",8364:"euro"},Nn={block:Ot,inline:Ht,findNodeIndex:function(Ae,He){var Kt=0;if(!Ae)return-1;for(;Ae=Ae.previousSibling;)He&&3==Ae.nodeType||Kt++;return Kt},isDataNode:function(Ae){return Ae&&null!==Ae.nodeValue&&null!==Ae.data},isAncestorOf:function(Ae,He){try{return!Nn.isDataNode(Ae)&&(vn.contains(Ae,Nn.isDataNode(He)?He.parentNode:He)||He.parentNode==Ae)}catch{return!1}},isAncestorOrSelf:function(Ae,He){return Nn.isAncestorOf(Ae,He)||Ae==He},findClosestAncestor:function(Ae,He){if(Nn.isAncestorOf(Ae,He))for(;He&&He.parentNode!=Ae;)He=He.parentNode;return He},getAllComments:function(Ae){for(var He=[],Kt=document.createNodeIterator(Ae,NodeFilter.SHOW_COMMENT,function(){return NodeFilter.FILTER_ACCEPT},!1),On=Kt.nextNode();On;)He.push(On.nodeValue),On=Kt.nextNode();return He},getNodeLength:function(Ae){return Nn.isDataNode(Ae)?Ae.length:Ae.childNodes.length},splitDataNode:function(Ae,He){for(var Ci,Kt=Ae.cloneNode(!1),On="",Fi=Ae.nextSibling;Fi&&3==Fi.nodeType&&Fi.nodeValue;)On+=Fi.nodeValue,Ci=Fi,Fi=Fi.nextSibling,Nn.remove(Ci);Ae.deleteData(He,Ae.length),Kt.deleteData(0,He),Kt.nodeValue+=On,Nn.insertAfter(Kt,Ae)},attrEquals:function(Ae,He){for(var Kt in He){var On=Ae[Kt];if("float"==Kt&&(On=Ae[Xe.support.cssFloat?Hn:Ui]),"object"==typeof On){if(!Nn.attrEquals(On,He[Kt]))return!1}else if(On!=He[Kt])return!1}return!0},blockParentOrBody:function(Ae){return Nn.parentOfType(Ae,ui)||Ae.ownerDocument.body},blockParents:function(Ae){var Kt,On,He=[];for(Kt=0,On=Ae.length;Kt<On;Kt++){var Fi=Nn.parentOfType(Ae[Kt],Nn.blockElements);Fi&&vn.inArray(Fi,He)<0&&He.push(Fi)}return He},windowFromDocument:function(Ae){return Ae.defaultView||Ae.parentWindow},normalize:an,blockElements:ui,nonListBlockElements:kn,inlineElements:cn,empty:Dn,fillAttrs:ft,nodeTypes:{ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12},toHex:function(Ae){var He=Ve.exec(Ae);return He?"#"+Ke(He.slice(1),function(Kt){return(Kt=parseInt(Kt,10).toString(16)).length>1?Kt:"0"+Kt}).join(""):Ae},encode:function(Ae,He){return Ae.replace(!He||He.entities?$t:Pt,function(On){var Fi=On.charCodeAt(0),Ci=Xn[Fi];return Ci?"&"+Ci+";":On})},isBom:function(Ae){return Ae&&3===Ae.nodeType&&/^[\ufeff]+$/.test(Ae.nodeValue)},stripBom:function(Ae){return(Ae||"").replace(Ge,"")},stripBomNode:function(Ae){Nn.isBom(Ae)&&Ae.parentNode.removeChild(Ae)},insignificant:function(Ae){var He=Ae.attributes;return"k-marker"==Ae.className||Nn.is(Ae,"br")&&("k-br"==Ae.className||He._moz_dirty||He._moz_editor_bogus_node)||Nn.is(Ae,"span")&&"k-br"==Ae.className},tableCell:function(Ae){return Nn.is(Ae,"td")||Nn.is(Ae,"th")},significantNodes:function(Ae){return vn.grep(Ae,function(He){var Kt=Nn.name(He);return!("br"==Kt||Nn.insignificant(He)||Nn.emptyTextNode(He)||1==He.nodeType&&!Dn[Kt]&&Nn.emptyNode(He))})},emptyTextNode:function(Ae){return Ae&&3==Ae.nodeType&&Be.test(Ae.nodeValue)},emptyNode:function(Ae){return 1==Ae.nodeType&&!Nn.significantNodes(Ae.childNodes).length},name:function(Ae){return Ae.nodeName.toLowerCase()},significantChildNodes:function(Ae){return vn.grep(Ae.childNodes,function(He){return 3!=He.nodeType||!Nn.isWhitespace(He)})},lastTextNode:function(Ae){var He=null;if(3==Ae.nodeType)return Ae;for(var Kt=Ae.lastChild;Kt;Kt=Kt.previousSibling)if(He=Nn.lastTextNode(Kt))return He;return He},is:function(Ae,He){return Ae&&Nn.name(Ae)==He},isMarker:function(Ae){return Ae.className==Sn},isWhitespace:function(Ae){return $e.test(Ae.nodeValue)},allowsTextContent:function(Ae){var He=!0;return Nt.every(function(Kt){return!Nn.is(Ae,Kt)||(He=!1,!1)}),He},allWhitespaceContent:function(Ae){for(var He=Ae.firstChild;He&&Nn.isWhitespace(He);)He=He.nextSibling;return!He},isEmptyspace:function(Ae){return Je.test(Ae.nodeValue)},htmlIndentSpace:function(Ae){if(!Nn.isDataNode(Ae)||!Nn.isWhitespace(Ae))return!1;if(Je.test(Ae.nodeValue))return!0;var He=function(Wn,Vt){for(;Wn[Vt];)if(Nn.significantNodes([Wn=Wn[Vt]]).length>0)return Wn},Kt=Ae.parentNode,On=He(Ae,"previousSibling"),Fi=He(Ae,"nextSibling");if(Ge.test(Ae.nodeValue))return!(!On&&!Fi);if(vn(Kt).is("tr,tbody,thead,tfoot,table,ol,ul"))return!0;if(Nn.isBlock(Kt)||Nn.is(Kt,"body")){var Ci=On&&Nn.isBlock(On),xi=Fi&&Nn.isBlock(Fi);if(!Fi&&Ci||!On&&xi||Ci&&xi)return!0}return!1},isBlock:function(Ae){return Ot[Nn.name(Ae)]},isSelfClosing:function(Ae){return en[Nn.name(Ae)]},isEmpty:function(Ae){return Dn[Nn.name(Ae)]},isInline:function(Ae){return Ht[Nn.name(Ae)]},isBr:function(Ae){return"br"==Nn.name(Ae)},list:function(Ae){var He=Ae?Nn.name(Ae):"";return"ul"==He||"ol"==He||"dl"==He},scrollContainer:function(Ae){var He=Nn.windowFromDocument(Ae),Kt=(He.contentWindow||He).document||He.ownerDocument||He;return"BackCompat"==Kt.compatMode?Kt.body:Kt.scrollingElement||Kt.documentElement},scrollTo:function(Ae,He){var xi,Wn,Vt,qt,Kt=Ae.ownerDocument,Fi=Nn.windowFromDocument(Kt).innerHeight,Ci=Nn.scrollContainer(Kt);Nn.isDataNode(Ae)?He?(qt=Nn.create(Kt,"span",{innerHTML:"&#xfeff;"}),Nn.insertBefore(qt,Ae),xi=vn(qt)):xi=vn(Ae.parentNode):xi=vn(Ae),Wn=xi.offset().top,Vt=xi[0].offsetHeight,(He||!Vt)&&(Vt=parseInt(xi.css("line-height"),10)||Math.ceil(1.2*parseInt(xi.css("font-size"),10))||15),qt&&Nn.remove(qt),Vt+Wn>Ci.scrollTop+Fi&&(Ci.scrollTop=Vt+Wn-Fi)},persistScrollTop:function(Ae){At=Nn.scrollContainer(Ae).scrollTop},offset:function(Ae,He){for(var Kt={top:Ae.offsetTop,left:Ae.offsetLeft},On=Ae.offsetParent;On&&(!He||Nn.isAncestorOf(He,On));)Kt.top+=On.offsetTop,Kt.left+=On.offsetLeft,On=On.offsetParent;return Kt},restoreScrollTop:function(Ae){"number"==typeof At&&(Nn.scrollContainer(Ae).scrollTop=At,At=void 0)},insertAt:function(Ae,He,Kt){Ae.insertBefore(He,Ae.childNodes[Kt]||null)},insertBefore:function(Ae,He){return He.parentNode?He.parentNode.insertBefore(Ae,He):He},insertAfter:function(Ae,He){return He.parentNode.insertBefore(Ae,He.nextSibling)},remove:function(Ae){Ae.parentNode&&Ae.parentNode.removeChild(Ae)},removeChildren:function(Ae){for(;Ae.firstChild;)Ae.removeChild(Ae.firstChild)},removeTextSiblings:function(Ae){for(var He=Ae.parentNode;Ae.nextSibling&&3==Ae.nextSibling.nodeType;)He.removeChild(Ae.nextSibling);for(;Ae.previousSibling&&3==Ae.previousSibling.nodeType;)He.removeChild(Ae.previousSibling)},trim:function(Ae){for(var He=Ae.childNodes.length-1;He>=0;He--){var Kt=Ae.childNodes[He];Nn.isDataNode(Kt)?Nn.stripBom(Kt.nodeValue).length||Nn.remove(Kt):Kt.className!=Sn&&(Nn.trim(Kt),(!Nn.isEmpty(Kt)&&0===Kt.childNodes.length||Nn.isBlock(Kt)&&Nn.allWhitespaceContent(Kt))&&Nn.remove(Kt))}return Ae},closest:function(Ae,He){for("string"==typeof He&&(He=[He]);Ae&&He.indexOf(Nn.name(Ae))<0;)Ae=Ae.parentNode;return Ae},closestBy:function(Ae,He,Kt){for(;Ae&&!He(Ae);){if(Kt&&Kt(Ae))return null;Ae=Ae.parentNode}return Ae},sibling:function(Ae,He){do{Ae=Ae[He]}while(Ae&&1!=Ae.nodeType);return Ae},next:function(Ae){return Nn.sibling(Ae,"nextSibling")},prev:function(Ae){return Nn.sibling(Ae,"previousSibling")},parentOfType:function(Ae,He){do{Ae=Ae.parentNode}while(Ae&&!Nn.ofType(Ae,He));return Ae},ofType:function(Ae,He){return vn.inArray(Nn.name(Ae),He)>=0},changeTag:function(Ae,He,Kt){var Ci,xi,Wn,Vt,qt,On=Nn.create(Ae.ownerDocument,He),Fi=Ae.attributes;if(!Kt)for(Ci=0,xi=Fi.length;Ci<xi;Ci++)(qt=Fi[Ci]).specified&&(Vt=qt.nodeValue,"class"==(Wn=qt.nodeName)?On.className=Vt:Wn==it?On.style.cssText=Ae.style.cssText:On.setAttribute(Wn,Vt));for(;Ae.firstChild;)On.appendChild(Ae.firstChild);return Nn.insertBefore(On,Ae),Nn.remove(Ae),On},editableParent:function(Ae){for(;Ae&&(3==Ae.nodeType||"true"!==Ae.contentEditable);)Ae=Ae.parentNode;return Ae},wrap:function(Ae,He){return Nn.insertBefore(He,Ae),He.appendChild(Ae),He},unwrap:function(Ae){for(var He=Ae.parentNode;Ae.firstChild;)He.insertBefore(Ae.firstChild,Ae);He.removeChild(Ae)},wrapper:function(Ae){var He=Nn.closestBy(Ae,function(Kt){return Kt.parentNode&&Nn.significantNodes(Kt.parentNode.childNodes).length>1});return vn(He).is("body,.k-editor")?void 0:He},create:function(Ae,He,Kt){return Nn.attr(Ae.createElement(He),Kt)},createEmptyNode:function(Ae,He,Kt){var On=Nn.attr(Ae.createElement(He),Kt);return On.innerHTML="\ufeff",On},attr:function(Ae,He){for(var Kt in(He=ze({},He))&&it in He&&(Nn.style(Ae,He.style),delete He.style),He)null===He[Kt]?(Ae.removeAttribute(Kt),delete He[Kt]):"className"==Kt&&(Ae[Kt]=He[Kt]);return ze(Ae,He)},mergeAttributes:function(Ae,He,Kt){Ae.attributes.length&&vn.each(Ae.attributes,function(){"contenteditable"!==this.name&&(!Kt||this.name!==it)&&vn(He).attr(this.name,this.value),Kt&&this.name===it&&vn.each(Ae.style,function(){He.style[this]=Ae.style[this]})})},style:function(Ae,He){vn(Ae).css(He||{})},unstyle:function(Ae,He){for(var Kt in He)"float"==Kt&&(Kt=Xe.support.cssFloat?Hn:Ui),Ae.style[Kt]="";""===Ae.style.cssText&&Ae.removeAttribute(it)},inlineStyle:function(Ae,He,Kt){var Fi,On=vn(Nn.create(Ae.ownerDocument,He,Kt));return Ae.appendChild(On[0]),Fi=Ke(Rt,function(Ci){return St.msie&&"line-height"==Ci&&"1px"==On.css(Ci)?"line-height:1.5":Ci+":"+On.css(Ci)}).join(";"),On.remove(),Fi},getEffectiveBackground:function(Ae){var He=Ae.css("background-color")||"";return He.indexOf("rgba(0, 0, 0, 0")<0&&"transparent"!==He?He:"html"===Ae[0].tagName.toLowerCase()?"Window":Nn.getEffectiveBackground(Ae.parent())},innerText:function(Ae){var He=Ae.innerHTML;return(He=He.replace(/<!--(.|\s)*?-->/gi,"")).replace(/<\/?[^>]+?\/?>/gm,"")},removeClass:function(Ae,He){var Fi,Ci,Kt=" "+Ae.className+" ",On=He.split(" ");for(Fi=0,Ci=On.length;Fi<Ci;Fi++)Kt=Kt.replace(" "+On[Fi]+" "," ");(Kt=Xe.trim(Kt)).length?Ae.className=Kt:Ae.removeAttribute("class")},commonAncestor:function(){var Fi,Ci,xi,Wn,Vt,Ae=arguments.length,He=[],Kt=1/0,On=null;if(!Ae)return null;if(1==Ae)return arguments[0];for(Fi=0;Fi<Ae;Fi++){for(Ci=[],xi=arguments[Fi];xi;)Ci.push(xi),xi=xi.parentNode;He.push(Ci.reverse()),Kt=Math.min(Kt,Ci.length)}if(1==Ae)return He[0][0];for(Fi=0;Fi<Kt;Fi++){for(Wn=He[0][Fi],Vt=1;Vt<Ae;Vt++)if(Wn!=He[Vt][Fi])return On;On=Wn}return On},closestSplittableParent:function(Ae){var He;(He=1==Ae.length?Nn.parentOfType(Ae[0],["ul","ol"]):Nn.commonAncestor.apply(null,Ae))||(He=Nn.parentOfType(Ae[0],["p","td"])||Ae[0].ownerDocument.body),Nn.isInline(He)&&(He=Nn.blockParentOrBody(He));var Kt=Ke(Ae,Nn.editableParent),On=Nn.commonAncestor(Kt)[0];return vn.contains(He,On)&&(He=On),He},closestEditable:function(Ae,He){var Kt,On=Nn.editableParent(Ae);return((Kt=Nn.ofType(Ae,He)?Ae:Nn.parentOfType(Ae,He))&&On&&vn.contains(Kt,On)||!Kt&&On)&&(Kt=On),Kt},closestEditableOfType:function(Ae,He){var Kt=Nn.closestEditable(Ae,He);if(Kt&&Nn.ofType(Kt,He)&&!vn(Kt).is(".k-editor"))return Kt},filter:function(Ae,He,Kt){return Nn.filterBy(He,function(Fi){return Nn.name(Fi)==Ae},Kt)},filterBy:function(Ae,He,Kt){for(var xi,On=0,Fi=Ae.length,Ci=[];On<Fi;On++)((xi=He(Ae[On]))&&!Kt||!xi&&Kt)&&Ci.push(Ae[On]);return Ci},ensureTrailingBreaks:function(Ae){var He=vn(Ae).find("p,td,th"),Kt=He.length,On=0;if(Kt)for(;On<Kt;On++)Nn.ensureTrailingBreak(He[On]);else Nn.ensureTrailingBreak(Ae)},removeTrailingBreak:function(Ae){vn(Ae).find("br[type=_moz],.k-br").remove()},ensureTrailingBreak:function(Ae){Nn.removeTrailingBreak(Ae);var On,He=Ae.lastChild,Kt=He&&Nn.name(He);(!Kt||"br"!=Kt&&"img"!=Kt||"br"==Kt&&"k-br"!=He.className)&&((On=Ae.ownerDocument.createElement("br")).className="k-br",Ae.appendChild(On))},reMapTableColumns:function(Ae,He){Nn._mapColIndices(Ae,He)},clearTableMappings:function(Ae,He){vn(Ae).find("["+He+"]").removeAttr(He)},_mapColIndices:function(Ae,He){for(var Kt={},On=0;On<Ae.rows.length;On++)for(var Fi=Ae.rows[On].cells,Ci=0,xi=0;xi<Fi.length;xi++,Ci++){var Wn=Fi[xi];if(Wn.rowSpan>1&&this._mapColspan(Wn,On,Ci,Kt),Kt[On])for(;Kt[On][Ci];)Ci++;Wn.setAttribute(He,Ci),Wn.colSpan>1&&(Ci=Ci+Wn.colSpan-1)}},_mapColspan:function(Ae,He,Kt,On){for(var xi,Fi=Ae.rowSpan,Ci=Ae.colSpan,Wn=0;Wn<Ci;Wn++){xi=Kt+Wn;for(var Vt=He+1;Vt<He+Fi;Vt++){if(On[Vt]||(On[Vt]={},On[Vt].length=0),On[He])for(;On[He][xi];)xi++;On[Vt][xi]=!0,On[Vt].length++}}},associateWithIds:function(Ae){var Wn,Vt,Kt=0,On=Ae.rows,Fi=On.length,Ci=[],xi=[];if(Ae.tHead)Kt=(Wn=Ae.tHead.rows).length;else for(Kt=this._getNumberOfHeaderRows(Ae),Wn=[],Vt=0;Vt<Kt;Vt++)Wn.push(On[Vt]);for(Vt=0;Vt<Kt;Vt++)Ci.push([]);for(Vt=0;Vt<Fi;Vt++)xi.push([]);this._generateIdsForColumns(Ci,Wn),this._generateIdsForRows(Ci,xi,Kt,On),this._assignIds(Ci,xi,Kt,On)},_generateIdsForColumns:function(Ae,He){var Ci,xi,Wn,Vt,qt,bn,ii,Vi,Jn,zt,Kt=(new Date).getTime(),On=He?He.length:0;for(ii=0;ii<On;ii++)for(Ci=He[ii].cells,Wn=0,Vi=0;Vi<Ci.length;Vi++){for(Vt="table"+ii+Vi+ ++Kt,(xi=Ci[Vi]).setAttribute("id",Vt),qt=xi.getAttribute("colspan")||1,bn=xi.getAttribute("rowspan")||1;Ae[ii][Vi+Wn];)Wn+=1;for(Jn=0;Jn<bn;Jn++)for(zt=0;zt<qt;zt++)Ae[ii+Jn][Vi+Wn+zt]=Vt}},_generateIdsForRows:function(Ae,He,Kt,On){var Vt,qt,bn,ii,Vi,Jn,zt,mn,Qn,ci,Oi,Ai,Ci=(new Date).getTime(),xi=On.length,Pn=function(qn){Ai.push(qn[Oi])};for(zt=Kt;zt<xi;zt++)for(Vt=vn(On[zt].cells).filter("th"),bn=0,mn=0;mn<Vt.length;mn++){for(ii="table"+zt+mn+ ++Ci,(qt=Vt[mn]).setAttribute("id",ii),Vi=qt.getAttribute("colspan")||1,Jn=qt.getAttribute("rowspan")||1;He[zt][mn+bn];)bn+=1;for(Qn=0;Qn<Jn;Qn++)for(ci=0;ci<Vi;ci++)He[zt+Qn][mn+bn+ci]=ii;Oi=qt.getAttribute("col-index"),Ai=[],Ae.forEach(Pn),Ai=Ai.filter(this._onlyUnique),qt.setAttribute("headers",Ai.join(" ").trim())}},_assignIds:function(Ae,He,Kt,On){var Wn,Vt,qt,bn,ii,Vi,Ci=On.length,Jn=function(zt){Vi.push(zt[ii])};for(qt=Kt;qt<Ci;qt++)for(Wn=vn(On[qt].cells).filter("td"),bn=0;bn<Wn.length;bn++)ii=(Vt=Wn[bn]).getAttribute("col-index"),Vi=He[qt].slice(),Ae.forEach(Jn),Vi=Vi.filter(this._onlyUnique),Vt.setAttribute("headers",Vi.join(" ").trim())},_getNumberOfColumns:function(Ae){var Fi,Ci,He=vn(Ae).find("th, td"),Kt=0;for(Fi=0;Fi<He.length;Fi++)(Ci=Number(He[Fi].getAttribute("col-index"))+1)>Kt&&(Kt=Ci);return Kt},_getNumberOfHeaderColumns:function(Ae,He){var Fi,Ci,xi,Wn,Vt,Kt=Ae.rows,On=0;for(xi=He;xi<Kt.length;xi++)for(Ci=Kt[xi],Wn=0;Wn<Ci.cells.length;Wn++)this.is(Vt=Ci.cells[Wn],"th")&&(Fi=Number(Vt.getAttribute("col-index"))+1)>On&&(On=Fi);return On},_getNumberOfHeaderRows:function(Ae){var Fi,Ci,Wn,On=Ae.tHead&&Ae.tHead.rows?Ae.tHead.rows.length:0;if(0===On)for(Wn=(Ci=Ae.rows[0]).cells&&Ci.cells.length;Ci&&Wn&&this.is(Ci.cells[0],"th");){for(Fi=0;Fi<Wn;Fi++)this.is(Ci?Ci.cells[Fi]:null,"th")||(Ci=null);Ci&&(On+=1,Wn=(Ci=this.next(Ci))&&Ci.cells&&Ci.cells.length)}return On},_onlyUnique:function(Ae,He,Kt){return Kt.indexOf(Ae)===He}};Xe.ui.editor.Dom=Nn}.apply(Ei={},ur=[wi]))&&(zn=Ei),void 0===(li=function(){var vn=window.kendo.jQuery,Ke=window.kendo,ze=Ke.ui.editor,St=ze.Dom,it=vn.extend,Dt="xx-small,x-small,small,medium,large,x-large,xx-large".split(","),Hn=/"/g,Ui=/<br[^>]*>/i,Co=/^\d+(\.\d*)?(px)?$/i,Sn=/<p>(?:&nbsp;)?<\/p>/i,Vn=/(\*?[-#\/\*\\\w]+(?:\[[0-9a-z_-]+\])?)\s*:\s*((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/g,Dn=/^sizzle-\d+/i,kn=/^k-script-/i,ui=/\s*onerror\s*=\s*(?:'|")?([^'">\s]*)(?:'|")?/i,Ot='<br class="k-br">',en="<span class='k-br'>\ufeff</span>",cn=document.createElement("div"),Ht=(cn.innerHTML=" <hr>",3===cn.firstChild.nodeType),ft=(cn=null,Ke.isFunction),an={toEditableHtml:function($e){return($e||"").replace(/<!\[CDATA\[(.*)?\]\]>/g,"\x3c!--[CDATA[$1]]--\x3e").replace(/<(\/?)script([^>]*)>/gi,"<$1k:script$2>").replace(/<img([^>]*)>/gi,function(Je){return Je.replace(ui,"")}).replace(/(<\/?img[^>]*>)[\r\n\v\f\t ]+/gi,"$1").replace(/^<(table|blockquote)/i,Ot+"<$1").replace(/^[\s]*(&nbsp;|\u00a0)/i,"$1").replace(/<\/(table|blockquote)>$/i,"</$1>"+Ot)},_toEditableImmutables:function($e){for(var Je=ze.Immutables.immutable,Ve=St.emptyTextNode,Ge=$e.firstChild,Be=$e.lastChild;Ve(Ge);)Ge=Ge.nextSibling;for(;Ve(Be);)Be=Be.previousSibling;Ge&&Je(Ge)&&vn(en).prependTo($e),Be&&Je(Be)&&vn(en).appendTo($e)},_fillEmptyElements:function($e){vn($e).find("p,td").each(function(){var Je=vn(this);if(/^\s*$/g.test(Je.text())&&!Je.find("img,input").length){for(var Ve=this;Ve.children[0]&&3!=Ve.children[0].nodeType;)Ve=Ve.children[0];1==Ve.nodeType&&!St.empty[St.name(Ve)]&&(Ve.innerHTML=St.is(Ve,"td")?Ke.ui.editor.emptyTableCellContent:Ke.ui.editor.emptyElementContent)}})},_removeSystemElements:function($e){vn(".k-paste-container",$e).remove()},_resetOrderedLists:function($e){var Ve,Ge,Be,Je=$e.getElementsByTagName("ol");for(Ve=0;Ve<Je.length;Ve++)Be=(Ge=Je[Ve]).getAttribute("start"),Ge.setAttribute("start",1),Be?Ge.setAttribute("start",Be):Ge.removeAttribute(Be)},_preventScriptExecution:function($e){vn($e).find("*").each(function(){var Ve,Ge,Be,At,Je=this.attributes,Rt=[];for(Ge=0,Be=Je.length;Ge<Be;Ge++)At=(Ve=Je[Ge]).nodeName,Ve.specified&&/^on/i.test(At)&&(this.setAttribute("k-script-"+At,Ve.value),Rt.push(At));for(Ge=0,Be=Rt.length;Ge<Be;Ge++)this.removeAttribute(Rt[Ge])})},htmlToDom:function($e,Je,Ve){var Be=Ke.support.browser.msie,At=Ve||{},Rt=At.immutables;return $e=an.toEditableHtml($e),ft(At.custom)&&($e=At.custom($e)||$e),Je.innerHTML=$e,Rt&&Rt.deserialize(Je),Be&&(St.normalize(Je),an._resetOrderedLists(Je)),an._preventScriptExecution(Je),an._fillEmptyElements(Je),an._removeSystemElements(Je),an._toEditableImmutables(Je),vn("table",Je).addClass("k-table"),Je},domToXhtml:function($e,Je){var Ve=[],Ge=Je&&Je.immutables;function Be(Wn){return vn.grep(Wn,function(Vt){return"style"!=Vt.name})}function At(Wn,Vt){Ve.push("<"+Vt),Nn(Wn),Ve.push(">")}var Rt={iframe:{start:function(Wn){At(Wn,"iframe")},end:function(){Ve.push("</iframe>")}},"k:script":{start:function(Wn){At(Wn,"script")},end:function(){Ve.push("<\/script>")},skipEncoding:!0},span:{canOptimize:!0,semantic:!0,start:function(Wn){var Vt=Wn.style,bn=Be(Xn(Wn));bn.length&&(Ve.push("<span"),Nn(Wn,bn),Ve.push(">")),"underline"==Vt.textDecoration&&Ve.push("<u>");var ii=[];if(Vt.color&&ii.push('color="'+St.toHex(Vt.color)+'"'),Vt.fontFamily&&ii.push('face="'+Vt.fontFamily+'"'),Vt.fontSize){var Vi=vn.inArray(Vt.fontSize,Dt);ii.push('size="'+Vi+'"')}ii.length&&Ve.push("<font "+ii.join(" ")+">")},end:function(Wn){var Vt=Wn.style;(Vt.color||Vt.fontFamily||Vt.fontSize)&&Ve.push("</font>"),"underline"==Vt.textDecoration&&Ve.push("</u>"),Be(Xn(Wn)).length&&Ve.push("</span>")}},strong:{semantic:!0,start:function(Wn){At(Wn,"b")},end:function(){Ve.push("</b>")}},em:{semantic:!0,start:function(Wn){At(Wn,"i")},end:function(){Ve.push("</i>")}},b:{semantic:!1,start:function(Wn){At(Wn,"strong")},end:function(){Ve.push("</strong>")}},i:{semantic:!1,start:function(Wn){At(Wn,"em")},end:function(){Ve.push("</em>")}},u:{semantic:!1,start:function(Wn){Ve.push("<span");var Vt=Xn(Wn),qt=vn(Vt).filter(function(ii,Vi){return"style"==Vi.name})[0],bn={nodeName:"style",value:"text-decoration:underline;"};qt&&(bn.value=qt.value,/text-decoration/i.test(bn.value)||(bn.value="text-decoration:underline;"+bn.value),Vt.splice(vn.inArray(qt,Vt),1)),Vt.push(bn),Nn(Wn,Vt),Ve.push(">")},end:function(){Ve.push("</span>")}},font:{canOptimize:!0,semantic:!1,start:function(Wn){Ve.push('<span style="');var Vt=Wn.getAttribute("color"),qt=Dt[Wn.getAttribute("size")],bn=Wn.getAttribute("face");Vt&&(Ve.push("color:"),Ve.push(St.toHex(Vt)),Ve.push(";")),bn&&(Ve.push("font-family:"),Ve.push(bn),Ve.push(";")),qt&&(Ve.push("font-size:"),Ve.push(qt),Ve.push(";")),Ve.push('">')},end:function(){Ve.push("</span>")}}};function $t(Wn){var qt,Vt=function Pt(Wn){var bn,ii,Vi,Vt=Ke.trim,qt=Vt(Wn),Jn=[];for(Vn.lastIndex=0;bn=Vn.exec(qt);)ii=Vt(bn[1].toLowerCase()),Vi=Vt(bn[2]),"font-size-adjust"!=ii&&"font-stretch"!=ii&&(ii.indexOf("color")>=0?Vi=St.toHex(Vi):ii.indexOf("font")>=0?Vi=Vi.replace(Hn,"'"):/\burl\(/g.test(Vi)&&(Vi=Vi.replace(Hn,"")),Jn.push({property:ii,value:Vi}));return Jn}(Wn);for(qt=0;qt<Vt.length;qt++)Ve.push(Vt[qt].property),Ve.push(":"),Ve.push(Vt[qt].value),Ve.push(";")}function Xn(Wn){var bn,ii,Vi,Jn,zt,mn,Vt=[],qt=Wn.attributes;for(ii=0,Vi=qt.length;ii<Vi;ii++)zt=(bn=qt[ii]).value,mn=bn.specified,"value"==(Jn=bn.nodeName)&&"value"in Wn&&Wn.value||"type"==Jn&&"text"==zt?mn=!0:"class"==Jn&&!zt||Dn.test(Jn)||"complete"==Jn||"altHtml"==Jn||"start"==Jn&&St.is(Wn,"ul")||"start"==Jn&&St.is(Wn,"ol")&&"1"==zt||Jn.indexOf("_moz")>=0?mn=!1:kn.test(Jn)?mn=!!Je.scripts:"data-role"==Jn&&"resizable"==zt&&(St.is(Wn,"tr")||St.is(Wn,"td"))&&(mn=!1),mn&&Vt.push(bn);return Vt}function Nn(Wn,Vt){var qt,bn,ii,Vi,Jn;if(Vt=Vt||Xn(Wn),St.is(Wn,"img")){var zt=Wn.style.width,mn=Wn.style.height,Qn=vn(Wn);zt&&Co.test(zt)&&(Qn.attr("width",parseInt(zt,10)),St.unstyle(Wn,{width:void 0})),mn&&Co.test(mn)&&(Qn.attr("height",parseInt(mn,10)),St.unstyle(Wn,{height:void 0}))}if(Vt.length)for(qt=0,bn=Vt.length;qt<bn;qt++)Jn=(ii=Vt[qt]).value,("class"!=(Vi=ii.nodeName)||"k-table"!=Jn)&&(Vi=Vi.replace(kn,""),Ve.push(" "),Ve.push(Vi),Ve.push('="'),"style"==Vi?$t(Jn||Wn.style.cssText):Ve.push("src"==Vi||"href"==Vi?Ke.htmlEncode(Wn.getAttribute(Vi,2)):St.fillAttrs[Vi]?Vi:Jn),Ve.push('"'))}function Ae(Wn,Vt,qt){for(var bn=Wn.firstChild;bn;bn=bn.nextSibling)On(bn,Vt,qt)}function He(Wn){return Wn.nodeValue.replace(/\ufeff/g,"")}function On(Wn,Vt,qt){var ii,Vi,Jn,zt,mn,Qn,bn=Wn.nodeType;if(Ge&&ze.Immutables.immutable(Wn))Ve.push(Ge.serialize(Wn));else if(1==bn){if(ii=St.name(Wn),(Qn=vn(Wn)).hasClass("k-element-resize-handle-wrapper")||Qn.hasClass("k-column-resize-handle-wrapper")||Qn.hasClass("k-row-resize-handle-wrapper")||!ii||St.insignificant(Wn)||!Je.scripts&&("script"==ii||"k:script"==ii))return;if(Vi=Rt[ii]){if(Vi.canOptimize&&Je.optimizeTags&&function Fi(Wn){return 0===Wn.attributes.length}(Wn))return void Ae(Wn,!1,Vi.skipEncoding);if(typeof Vi.semantic>"u"||Je.semantic^Vi.semantic)return Vi.start(Wn),Ae(Wn,!1,Vi.skipEncoding),void Vi.end(Wn)}Ve.push("<"),Ve.push(ii),Nn(Wn),St.empty[ii]?Ve.push(" />"):(Ve.push(">"),Ae(Wn,Vt||St.is(Wn,"pre")),Ve.push("</"),Ve.push(ii),Ve.push(">"))}else if(3==bn){if(function Kt(Wn){if(St.isBom(Wn)){do{if(St.is(Wn=Wn.parentNode,"td")&&1===Wn.childNodes.length)return!0;if(1!==Wn.childNodes.length)return!1}while(!St.isBlock(Wn));return!0}return!1}(Wn))return void Ve.push("&nbsp;");zt=He(Wn),!Vt&&Ht&&(Jn=Wn.parentNode,(mn=Wn.previousSibling)||(mn=(St.isInline(Jn)?Jn:Wn).previousSibling),(!mn||""===mn.innerHTML||St.isBlock(mn))&&(zt=Je.keepEOL?zt.replace(/[\r\n\v\f\t ]+/," "):zt.replace(/^[\r\n\v\f\t ]+/,"")),zt=zt.replace(/ +/," ")),Ve.push(qt?zt:St.encode(zt,Je))}else 4==bn?(Ve.push("<![CDATA["),Ve.push(Wn.data),Ve.push("]]>")):8==bn&&(Wn.data.indexOf("[CDATA[")<0?(Ve.push("\x3c!--"),Ve.push(Wn.data),Ve.push("--\x3e")):(Ve.push("<!"),Ve.push(Wn.data),Ve.push(">")))}function xi(){Ke.isFunction(Je.custom)&&(Ve=Je.custom(Ve)||Ve)}return Rt.script=Rt["k:script"],typeof(Je=Je||{}).semantic>"u"&&(Je.semantic=!0),function Ci(Wn){var Vt=Wn.childNodes.length;return Vt&&3==Wn.firstChild.nodeType&&(1==Vt||2==Vt&&St.insignificant(Wn.lastChild))}($e)?(Ve=St.encode(He($e.firstChild).replace(/[\r\n\v\f\t ]+/," "),Je),xi(),Ve):(Ae($e),Ve=Ve.join(""),xi(),""===Ve.replace(Ui,"").replace(Sn,"")?"":Ve)}};it(ze,{Serializer:an})}.apply(Xi={},ur=[zn]))&&(li=Xi),void 0===(ki=function(){var vn=window.kendo.jQuery,Ke=window.kendo,ze=Ke.ui.DropDownList,St=Ke.ui.editor.Dom,it=ze.extend({init:function(Dt,Hn){var Ui=this;ze.fn.init.call(Ui,Dt,Hn),Ke.support.mobileOS.ios&&(this._initSelectOverlay(),this.bind("dataBound",this._initSelectOverlay.bind(this))),Ui.text(Ui.options.title),Ui.element.attr("title",Ui.options.title),Ui.wrapper.attr("title",Ui.options.title),Ui.bind("open",function(){if(Ui.options.autoSize){var Sn,Co=Ui.list;Co.css({whiteSpace:"nowrap",width:"auto"}),(Sn=Co.width())>0?Sn+=20:Sn=Ui._listWidth,Co.css("width",Sn+Ke.support.scrollbar()),Ui._listWidth=Sn}})},options:{name:"SelectBox",index:-1,size:"medium",fillMode:"solid",rounded:"medium"},_initSelectOverlay:function(){for(var Co,Dt=this,Hn=Dt.value(),Ui=this.dataSource.view(),Sn="",Vn=Ke.htmlEncode,Dn=0;Dn<Ui.length;Dn++)Sn+="<option value='"+Vn((Co=Ui[Dn]).value)+"'",Co.value==Hn&&(Sn+=" selected"),Sn+=">"+Vn(Co.text)+"</option>";var kn=vn("<select class='k-select-overlay'>"+Sn+"</select>"),ui=vn(this.element).closest(".k-dropdownlist");ui.next(".k-select-overlay").remove(),kn.insertAfter(ui),kn.on("change",function(){Dt.value(this.value),Dt.trigger("change")})},value:function(Dt){var Ui=ze.fn.value.call(this,Dt);if(void 0===Dt)return Ui;ze.fn.value.call(this)||this.text(this.options.title)},decorate:function(Dt){var Sn,kn,Ui=this.dataSource,Co=Ui.data();for(Dt&&this.list.css("background-color",St.getEffectiveBackground(vn(Dt))),Sn=0;Sn<Co.length;Sn++)kn=(kn=St.inlineStyle(Dt,Co[Sn].tag||"span",{className:Co[Sn].className})).replace(/"/g,"'"),Co[Sn].style=kn+";display:inline-block";Ui.trigger("change")}});Ke.ui.plugin(it),Ke.ui.editor.SelectBox=it,Ke.cssProperties.registerPrefix("SelectBox","k-picker-"),Ke.cssProperties.registerValues("SelectBox",[{prop:"rounded",values:Ke.cssProperties.roundedValues.concat([["full","full"]])}])}.apply(bo={},ur=[li]))&&(ki=bo),void 0===(jo=function(){var vn=window.kendo.jQuery,Xe=window.kendo,Ke=Xe.Class,ze=vn.extend,St=Xe.ui.editor,it=Xe.support.browser,Dt=St.Dom,Hn=Dt.findNodeIndex,Ui=Dt.isDataNode,Co=Dt.findClosestAncestor,Sn=Dt.getNodeLength,Vn=Dt.normalize,Dn={selectionFromWindow:function(Pt){if(Pt)return"getSelection"in Pt?Pt.getSelection():new Ht(Pt.document)},selectionFromRange:function(Pt){var $t=Rt.documentFromRange(Pt);return Dn.selectionFromDocument($t)},selectionFromDocument:function(Pt){return Dn.selectionFromWindow(Dt.windowFromDocument(Pt))}},kn=Ke.extend({init:function(Pt){vn.extend(this,{ownerDocument:Pt,startContainer:Pt,endContainer:Pt,commonAncestorContainer:Pt,startOffset:0,endOffset:0,collapsed:!0})},setStart:function(Pt,$t){this.startContainer=Pt,this.startOffset=$t,en(this),Ot(this,!0)},setEnd:function(Pt,$t){this.endContainer=Pt,this.endOffset=$t,en(this),Ot(this,!1)},setStartBefore:function(Pt){this.setStart(Pt.parentNode,Hn(Pt))},setStartAfter:function(Pt){this.setStart(Pt.parentNode,Hn(Pt)+1)},setEndBefore:function(Pt){this.setEnd(Pt.parentNode,Hn(Pt))},setEndAfter:function(Pt){this.setEnd(Pt.parentNode,Hn(Pt)+1)},selectNode:function(Pt){this.setStartBefore(Pt),this.setEndAfter(Pt)},selectNodeContents:function(Pt){this.setStart(Pt,0),this.setEnd(Pt,Pt[1===Pt.nodeType?"childNodes":"nodeValue"].length)},collapse:function(Pt){var $t=this;Pt?$t.setEnd($t.startContainer,$t.startOffset):$t.setStart($t.endContainer,$t.endOffset)},deleteContents:function(){var Pt=this,$t=Pt.cloneRange();Pt.startContainer!=Pt.commonAncestorContainer&&Pt.setStartAfter(Co(Pt.commonAncestorContainer,Pt.startContainer)),Pt.collapse(!0),function Xn(Nn){for(;Nn.next();)Nn.hasPartialSubtree()?Xn(Nn.getSubtreeIterator()):Nn.remove()}(new cn($t))},cloneContents:function(){var Pt=Rt.documentFromRange(this);return function $t(Xn){for(var Nn,Ae=Pt.createDocumentFragment();Nn=Xn.next();)Nn=Nn.cloneNode(!Xn.hasPartialSubtree()),Xn.hasPartialSubtree()&&Nn.appendChild($t(Xn.getSubtreeIterator())),Ae.appendChild(Nn);return Ae}(new cn(this))},extractContents:function(){var Pt=this,$t=Pt.cloneRange();Pt.startContainer!=Pt.commonAncestorContainer&&Pt.setStartAfter(Co(Pt.commonAncestorContainer,Pt.startContainer)),Pt.collapse(!0);var Xn=Rt.documentFromRange(Pt);return function Nn(Ae){for(var He,Kt=Xn.createDocumentFragment();He=Ae.next();)Ae.hasPartialSubtree()?(He=He.cloneNode(!1)).appendChild(Nn(Ae.getSubtreeIterator())):Ae.remove(Pt.originalRange),Kt.appendChild(He);return Kt}(new cn($t))},insertNode:function(Pt){var $t=this;Ui($t.startContainer)?($t.startOffset!=$t.startContainer.nodeValue.length&&Dt.splitDataNode($t.startContainer,$t.startOffset),Dt.insertAfter(Pt,$t.startContainer)):Dt.insertAt($t.startContainer,Pt,$t.startOffset),$t.setStart($t.startContainer,$t.startOffset)},cloneRange:function(){return vn.extend(new kn(this.ownerDocument),{startContainer:this.startContainer,endContainer:this.endContainer,commonAncestorContainer:this.commonAncestorContainer,startOffset:this.startOffset,endOffset:this.endOffset,collapsed:this.collapsed,originalRange:this})},toString:function(){var Pt=this.startContainer.nodeName,$t=this.endContainer.nodeName;return["#text"==Pt?this.startContainer.nodeValue:Pt,"(",this.startOffset,") : ","#text"==$t?this.endContainer.nodeValue:$t,"(",this.endOffset,")"].join("")}});function Ot(Pt,$t){(function Xn(Nn){try{return function ui(Pt,$t,Xn,Nn){if(Pt==$t)return Nn-Xn;for(var Ae=$t;Ae&&Ae.parentNode!=Pt;)Ae=Ae.parentNode;if(Ae)return Hn(Ae)-Xn;for(Ae=Pt;Ae&&Ae.parentNode!=$t;)Ae=Ae.parentNode;if(Ae)return Nn-Hn(Ae)-1;for(var He=Dt.commonAncestor(Pt,$t),Kt=Pt;Kt&&Kt.parentNode!=He;)Kt=Kt.parentNode;Kt||(Kt=He);for(var On=$t;On&&On.parentNode!=He;)On=On.parentNode;return On||(On=He),Kt==On?0:Hn(On)-Hn(Kt)}(Nn.startContainer,Nn.endContainer,Nn.startOffset,Nn.endOffset)<0}catch{return!0}})(Pt)&&($t?(Pt.commonAncestorContainer=Pt.endContainer=Pt.startContainer,Pt.endOffset=Pt.startOffset):(Pt.commonAncestorContainer=Pt.startContainer=Pt.endContainer,Pt.startOffset=Pt.endOffset),Pt.collapsed=!0)}function en(Pt){Pt.collapsed=Pt.startContainer==Pt.endContainer&&Pt.startOffset==Pt.endOffset;for(var $t=Pt.startContainer;$t&&$t!=Pt.endContainer&&!Dt.isAncestorOf($t,Pt.endContainer);)$t=$t.parentNode;Pt.commonAncestorContainer=$t}kn.fromNode=function(Pt){return new kn(Pt.ownerDocument)};var cn=Ke.extend({init:function(Pt){if(vn.extend(this,{range:Pt,_current:null,_next:null,_end:null}),!Pt.collapsed){var $t=Pt.commonAncestorContainer;this._next=Pt.startContainer!=$t||Ui(Pt.startContainer)?Co($t,Pt.startContainer):Pt.startContainer.childNodes[Pt.startOffset],this._end=Pt.endContainer!=$t||Ui(Pt.endContainer)?Co($t,Pt.endContainer).nextSibling:Pt.endContainer.childNodes[Pt.endOffset]}},hasNext:function(){return!!this._next},next:function(){var Pt=this,$t=Pt._current=Pt._next;return Pt._next=Pt._current&&Pt._current.nextSibling!=Pt._end?Pt._current.nextSibling:null,Ui(Pt._current)&&(Pt.range.endContainer==Pt._current&&($t=$t.cloneNode(!0)).deleteData(Pt.range.endOffset,$t.length-Pt.range.endOffset),Pt.range.startContainer==Pt._current&&($t=$t.cloneNode(!0)).deleteData(0,Pt.range.startOffset)),$t},traverse:function(Pt){for(var Xn,$t=this;$t._current=$t._next,$t._next=$t._current&&$t._current.nextSibling!=$t._end?$t._current.nextSibling:null,Xn=$t._current;)$t.hasPartialSubtree()?$t.getSubtreeIterator().traverse(Pt):Pt(Xn);return Xn},remove:function(Pt){var Ae,He,Kt,$t=this,Xn=$t.range.startContainer==$t._current,Nn=$t.range.endContainer==$t._current;if(Ui($t._current)&&(Xn||Nn))Kt=(He=Nn?$t.range.endOffset:$t._current.length)-(Ae=Xn?$t.range.startOffset:0),Pt&&(Xn||Nn)&&($t._current==Pt.startContainer&&Ae<=Pt.startOffset&&(Pt.startOffset-=Kt),$t._current==Pt.endContainer&&He<=Pt.endOffset&&(Pt.endOffset-=Kt)),$t._current.deleteData(Ae,Kt);else{var On=$t._current.parentNode;if(Pt&&($t.range.startContainer==On||$t.range.endContainer==On)){var Fi=Hn($t._current);On==Pt.startContainer&&Fi<=Pt.startOffset&&(Pt.startOffset-=1),On==Pt.endContainer&&Fi<Pt.endOffset&&(Pt.endOffset-=1)}Dt.remove($t._current)}},hasPartialSubtree:function(){return!Ui(this._current)&&(Dt.isAncestorOrSelf(this._current,this.range.startContainer)||Dt.isAncestorOrSelf(this._current,this.range.endContainer))},getSubtreeIterator:function(){return new cn(this.getSubRange())},getSubRange:function(){var Pt=this,$t=Pt.range.cloneRange();return $t.selectNodeContents(Pt._current),Dt.isAncestorOrSelf(Pt._current,Pt.range.startContainer)&&$t.setStart(Pt.range.startContainer,Pt.range.startOffset),Dt.isAncestorOrSelf(Pt._current,Pt.range.endContainer)&&$t.setEnd(Pt.range.endContainer,Pt.range.endOffset),$t}}),Ht=Ke.extend({init:function(Pt){this.ownerDocument=Pt,this.rangeCount=1},addRange:function(Pt){var $t=this.ownerDocument.body.createTextRange();Nt($t,Pt,!1),Nt($t,Pt,!0),$t.select()},removeAllRanges:function(){var Pt=this.ownerDocument.selection;"None"!=Pt.type&&Pt.empty()},getRangeAt:function(){var Pt,Ae,$t=new kn(this.ownerDocument),Xn=this.ownerDocument.selection;try{if(((Pt=Xn.createRange()).item?Pt.item(0):Pt.parentElement()).ownerDocument!=this.ownerDocument)return $t}catch{return $t}if("Control"==Xn.type)$t.selectNode(Pt.item(0));else{Ae=function ft(Pt){var $t=Pt.duplicate(),Xn=Pt.duplicate();return $t.collapse(!0),Xn.collapse(!1),Dt.commonAncestor(Pt.parentElement(),$t.parentElement(),Xn.parentElement())}(Pt),an(Pt,$t,Ae,!0),an(Pt,$t,Ae,!1),9==$t.startContainer.nodeType&&$t.setStart($t.endContainer,$t.startOffset),9==$t.endContainer.nodeType&&$t.setEnd($t.startContainer,$t.endOffset),0===Pt.compareEndPoints("StartToEnd",Pt)&&$t.collapse(!1);var He=$t.startContainer,Kt=$t.endContainer,On=this.ownerDocument.body;if(!($t.collapsed||0!==$t.startOffset||$t.endOffset!=Sn($t.endContainer)||He==Kt&&Ui(He)&&He.parentNode==On)){for(var Fi=!1,Ci=!1;0===Hn(He)&&He==He.parentNode.firstChild&&He!=On;)He=He.parentNode,Fi=!0;for(;Hn(Kt)==Sn(Kt.parentNode)-1&&Kt==Kt.parentNode.lastChild&&Kt!=On;)Kt=Kt.parentNode,Ci=!0;He==On&&Kt==On&&Fi&&Ci&&($t.setStart(He,0),$t.setEnd(Kt,Sn(On)))}}return $t}});function Nt(Pt,$t,Xn){var Wn,Nn=$t[Xn?"startContainer":"endContainer"],Ae=$t[Xn?"startOffset":"endOffset"],He=0,Kt=Ui(Nn),On=Kt?Nn:Nn.childNodes[Ae]||null,Fi=Kt?Nn.parentNode:Nn,Ci=$t.ownerDocument,xi=Ci.body.createTextRange();(3==Nn.nodeType||4==Nn.nodeType)&&(He=Ae),Fi||(Fi=Ci.body),"img"==Fi.nodeName.toLowerCase()?(xi.moveToElementText(Fi),xi.collapse(!1),Pt.setEndPoint(Xn?"StartToStart":"EndToStart",xi)):(Wn=Fi.insertBefore(Dt.create(Ci,"a"),On),xi.moveToElementText(Wn),Dt.remove(Wn),xi[Xn?"moveStart":"moveEnd"]("character",He),xi.collapse(!1),Pt.setEndPoint(Xn?"StartToStart":"EndToStart",xi))}function an(Pt,$t,Xn,Nn){var On,Fi,Ci,xi,Wn,Vt,qt,Ae=Dt.create($t.ownerDocument,"a"),He=Pt.duplicate(),Kt=Nn?"StartToStart":"StartToEnd",bn=!1;Ae.innerHTML="\ufeff",He.collapse(Nn),Fi=He.parentElement(),Dt.isAncestorOrSelf(Xn,Fi)||(Fi=Xn);do{bn?Fi.insertBefore(Ae,Ae.previousSibling):(Fi.appendChild(Ae),bn=!0),He.moveToElementText(Ae)}while((On=He.compareEndPoints(Kt,Pt))>0&&Ae.previousSibling);Ci=Ae.nextSibling,-1==On&&Ui(Ci)?(He.setEndPoint(Nn?"EndToStart":"EndToEnd",Pt),Dt.remove(Ae),Vt=[Ci,He.text.length]):(xi=!Nn&&Ae.previousSibling,Ui(Wn=Nn&&Ae.nextSibling)?Vt=[Wn,0]:Ui(xi)?Vt=[xi,xi.length]:(qt=Hn(Ae),Vt=Fi.nextSibling&&qt==Fi.childNodes.length-1?[Fi.nextSibling,0]:[Fi,qt]),Dt.remove(Ae)),$t[Nn?"setStart":"setEnd"].apply($t,Vt)}var $e=Ke.extend({init:function(Pt){this.enumerate=function(){var $t=[];return new cn(Pt).traverse(function Xn(Nn){if(Dt.is(Nn,"img")||3==Nn.nodeType&&(!Dt.isEmptyspace(Nn)||"\ufeff"==Nn.nodeValue))$t.push(Nn);else for(Nn=Nn.firstChild;Nn;)Xn(Nn),Nn=Nn.nextSibling}),$t}}}),Je=cn.extend({hasPartialSubtree:function(){var Pt=St.Immutables&&St.Immutables.immutable;return Pt&&!Pt(this._current)&&cn.fn.hasPartialSubtree.call(this)},getSubtreeIterator:function(){return new Je(this.getSubRange())}}),Ve=Ke.extend({init:function(Pt){this.enumerate=function(){var $t=[],Xn=St.Immutables&&St.Immutables.immutable;return new Je(Pt).traverse(function Nn(Ae){if(Xn&&!Xn(Ae))if(Dt.is(Ae,"img")||3==Ae.nodeType&&(!Dt.isEmptyspace(Ae)||"\ufeff"==Ae.nodeValue))$t.push(Ae);else for(Ae=Ae.firstChild;Ae;)Nn(Ae),Ae=Ae.nextSibling}),$t}}}),Ge=Ke.extend({init:function(Pt,$t,Xn){var Nn=this;Nn.range=Pt,Nn.rootNode=Rt.documentFromRange(Pt),Nn.body=$t||Nn.getEditable(Pt),"body"!=Dt.name(Nn.body)&&(Nn.rootNode=Nn.body),Nn.startContainer=Nn.nodeToPath(Pt.startContainer),Nn.endContainer=Nn.nodeToPath(Pt.endContainer),Nn.startOffset=Nn.offset(Pt.startContainer,Pt.startOffset),Nn.endOffset=Nn.offset(Pt.endContainer,Pt.endOffset),Nn.immutables=Xn&&Xn.immutables,Nn.immutables&&(Nn.serializedImmutables=St.Immutables.removeImmutables(Nn.body)),Nn.html=Nn.body.innerHTML,Nn.immutables&&!Nn.serializedImmutables.empty&&St.Immutables.restoreImmutables(Nn.body,Nn.serializedImmutables)},index:function(Pt){for(var $t=0,Xn=Pt.nodeType;Pt=Pt.previousSibling;){var Nn=Pt.nodeType;(3!=Nn||Xn!=Nn)&&$t++,Xn=Nn}return $t},getEditable:function(Pt){for(var $t=Pt.commonAncestorContainer;$t&&(3==$t.nodeType||$t.attributes&&(!$t.attributes.contentEditable||"false"==$t.attributes.contentEditable.nodeValue.toLowerCase()));)$t=$t.parentNode;return $t},restoreHtml:function(){var Pt=this;Dt.removeChildren(Pt.body),Pt.body.innerHTML=Pt.html,Pt.immutables&&!Pt.serializedImmutables.empty&&St.Immutables.restoreImmutables(Pt.body,Pt.serializedImmutables)},offset:function(Pt,$t){if(3==Pt.nodeType)for(;(Pt=Pt.previousSibling)&&3==Pt.nodeType;)$t+=Pt.nodeValue.length;return $t},nodeToPath:function(Pt){for(var $t=[];Pt!=this.rootNode;)$t.push(this.index(Pt)),Pt=Pt.parentNode;return $t},toRangePoint:function(Pt,$t,Xn,Nn){for(var Ae=this.rootNode,He=Xn.length,Kt=Nn;He--&&Ae;)Ae=Ae.childNodes[Xn[He]];for(;Ae&&3==Ae.nodeType&&Ae.nodeValue.length<Kt;)Kt-=Ae.nodeValue.length,Ae=Ae.nextSibling;Ae&&Kt>=0&&Pt[$t?"setStart":"setEnd"](Ae,Kt)},toRange:function(){var Pt=this,$t=Pt.range.cloneRange();return Pt.toRangePoint($t,!0,Pt.startContainer,Pt.startOffset),Pt.toRangePoint($t,!1,Pt.endContainer,Pt.endOffset),$t}}),Be=Ke.extend({init:function(){this.caret=null},addCaret:function(Pt){var Xn=this.caret=Dt.create(Rt.documentFromRange(Pt),"span",{className:"k-marker"});return Pt.insertNode(Xn),Dt.stripBomNode(Xn.previousSibling),Dt.stripBomNode(Xn.nextSibling),Pt.selectNode(Xn),Xn},removeCaret:function(Pt){var Xn=this.caret.previousSibling,Nn=0;Xn&&(Nn=Ui(Xn)?Xn.nodeValue.length:Hn(Xn));var Ae=this.caret.parentNode,He=Xn?Hn(Xn):0;Dt.remove(this.caret),Vn(Ae);var Kt=Ae.childNodes[He];if(Ui(Kt))Pt.setStart(Kt,Nn);else if(Kt){var On=Dt.lastTextNode(Kt);On?Pt.setStart(On,On.nodeValue.length):Pt[Xn?"setStartAfter":"setStartBefore"](Kt)}else!it.msie&&!Ae.innerHTML&&(Ae.innerHTML='<br _moz_dirty="" />'),Pt.selectNodeContents(Ae);Pt.collapse(!0)},add:function(Pt,$t){var Xn=this,Nn=Pt.collapsed&&!Rt.isExpandable(Pt),Ae=Rt.documentFromRange(Pt);$t&&Pt.collapsed&&(Xn.addCaret(Pt),Pt=Rt.expand(Pt));var He=Pt.cloneRange();if(He.collapse(!1),Xn.end=Dt.create(Ae,"span",{className:"k-marker"}),He.insertNode(Xn.end),(He=Pt.cloneRange()).collapse(!0),Xn.start=Xn.end.cloneNode(!0),He.insertNode(Xn.start),Xn._removeDeadMarkers(Xn.start,Xn.end),Nn){var Kt=Ae.createTextNode("\ufeff");Dt.insertAfter(Kt.cloneNode(),Xn.start),Dt.insertBefore(Kt,Xn.end)}return Vn(Pt.commonAncestorContainer),Pt.setStartBefore(Xn.start),Pt.setEndAfter(Xn.end),Pt},_removeDeadMarkers:function(Pt,$t){Pt.previousSibling&&"\ufeff"==Pt.previousSibling.nodeValue&&Dt.remove(Pt.previousSibling),$t.nextSibling&&"\ufeff"==$t.nextSibling.nodeValue&&Dt.remove($t.nextSibling)},_normalizedIndex:function(Pt){for(var $t=Hn(Pt),Xn=Pt;Xn.previousSibling;)3==Xn.nodeType&&3==Xn.previousSibling.nodeType&&$t--,Xn=Xn.previousSibling;return $t},remove:function(Pt){var $t=this,Xn=$t.start,Nn=$t.end;for(Vn(Pt.commonAncestorContainer);!Xn.nextSibling&&Xn.parentNode;)Xn=Xn.parentNode;for(;!Nn.previousSibling&&Nn.parentNode;)Nn=Nn.parentNode;var On=(Xn=Xn.nextSibling)===(Nn=Nn.previousSibling)&&Dt.isBom(Xn);On&&Xn.length>1&&(Xn.nodeValue=Xn.nodeValue.charAt(0));var Fi=On,Ci=!1;if(Xn==$t.end&&(Ci=!!$t.start.previousSibling,Xn=Nn=$t.start.previousSibling||$t.end.nextSibling,Fi=!0),Dt.remove($t.start),Dt.remove($t.end),!Xn||!Nn)return Pt.selectNodeContents(Pt.commonAncestorContainer),void Pt.collapse(!0);var xi=Fi?Ui(Xn)?Xn.nodeValue.length:Xn.childNodes.length:0,Wn=Ui(Nn)?Nn.nodeValue.length:Nn.childNodes.length;if(3==Xn.nodeType)for(;Xn.previousSibling&&3==Xn.previousSibling.nodeType;)xi+=(Xn=Xn.previousSibling).nodeValue.length;if(3==Nn.nodeType)for(;Nn.previousSibling&&3==Nn.previousSibling.nodeType;)Wn+=(Nn=Nn.previousSibling).nodeValue.length;var Vt=Xn.parentNode,qt=Nn.parentNode,bn=this._normalizedIndex(Xn),ii=this._normalizedIndex(Nn);Vn(Vt),3==Xn.nodeType&&(Xn=Vt.childNodes[bn]),Vn(qt),3==Nn.nodeType&&(Nn=qt.childNodes[ii]),Fi?(3==Xn.nodeType?Pt.setStart(Xn,xi):Pt[Ci?"setStartAfter":"setStartBefore"](Xn),Pt.collapse(!0)):(3==Xn.nodeType?Pt.setStart(Xn,xi):Pt.setStartBefore(Xn),3==Nn.nodeType?Pt.setEnd(Nn,Wn):Pt.setEndAfter(Nn)),$t.caret&&$t.removeCaret(Pt)}}),At=/[\u0009-\u000d]|\u0020|\u00a0|\ufeff|\.|,|;|:|!|\(|\)|\?/,Rt={nodes:function(Pt){var $t=Rt.textNodes(Pt);return $t.length||(Pt.selectNodeContents(Pt.commonAncestorContainer),($t=Rt.textNodes(Pt)).length||($t=Dt.significantChildNodes(Pt.commonAncestorContainer))),$t},textNodes:function(Pt){return new $e(Pt).enumerate().filter(function(Nn){return Dt.allowsTextContent(Nn.parentElement)})},editableTextNodes:function(Pt){var Xn=St.Immutables&&St.Immutables.immutableParent,Nn=[];return Xn&&!Xn(Pt.commonAncestorContainer)&&(Nn=new Ve(Pt).enumerate().filter(function(Ae){return Dt.allowsTextContent(Ae.parentElement)})),Nn},documentFromRange:function(Pt){var $t=Pt.startContainer;return 9==$t.nodeType?$t:$t.ownerDocument},createRange:function(Pt){return Pt.createRange()},selectRange:function(Pt){var $t=Rt.image(Pt);$t&&(Pt.setStartAfter($t),Pt.setEndAfter($t));var Xn=Dn.selectionFromRange(Pt);Xn.removeAllRanges(),Xn.addRange(Pt)},stringify:function(Pt){return Xe.format("{0}:{1} - {2}:{3}",Dt.name(Pt.startContainer),Pt.startOffset,Dt.name(Pt.endContainer),Pt.endOffset)},split:function(Pt,$t,Xn){function Nn(Ae){var He=Pt.cloneRange();He.collapse(Ae),He[Ae?"setStartBefore":"setEndAfter"]($t);var Kt=He.extractContents();Xn&&(Kt=Dt.trim(Kt)),Dt[Ae?"insertBefore":"insertAfter"](Kt,$t)}Nn(!0),Nn(!1)},mapAll:function(Pt,$t){var Xn=[];return new cn(Pt).traverse(function(Nn){var Ae=$t(Nn);Ae&&vn.inArray(Ae,Xn)<0&&Xn.push(Ae)}),Xn},getAll:function(Pt,$t){var Xn=$t;return"string"==typeof $t&&($t=function(Nn){return Dt.is(Nn,Xn)}),Rt.mapAll(Pt,function(Nn){if($t(Nn))return Nn})},getMarkers:function(Pt){return Rt.getAll(Pt,function($t){return"k-marker"==$t.className})},image:function(Pt){var $t=Rt.getAll(Pt,"img");if(1==$t.length)return $t[0]},isStartOf:function(Pt,$t){if(0!==Pt.startOffset)return!1;for(var Xn=Pt.cloneRange();0===Xn.startOffset&&Xn.startContainer!=$t;){for(var Nn=Dt.findNodeIndex(Xn.startContainer),Ae=Xn.startContainer.parentNode;Nn>0&&Ae[Nn-1]&&Dt.insignificant(Ae[Nn-1]);)Nn--;Xn.setStart(Ae,Nn)}return 0===Xn.startOffset&&Xn.startContainer==$t},isEndOf:function(Pt,$t){var Xn=Pt.cloneRange();Xn.collapse(!1);var Nn=Xn.startContainer;Dt.isDataNode(Nn)&&Xn.startOffset==Dt.getNodeLength(Nn)&&(Xn.setStart(Nn.parentNode,Dt.findNodeIndex(Nn)+1),Xn.collapse(!0)),Xn.setEnd($t,Dt.getNodeLength($t));var Ae=[];return new cn(Xn).traverse(function He(Kt){!Dt.insignificant(Kt)&&(!Dt.isDataNode(Kt)||!/^[\ufeff]*$/.test(Kt.nodeValue))&&Ae.push(Kt)}),!Ae.length},wrapSelectedElements:function(Pt){for(var $t=Dt.editableParent(Pt.startContainer),Xn=Dt.editableParent(Pt.endContainer);0===Pt.startOffset&&Pt.startContainer!=$t;)Pt.setStart(Pt.startContainer.parentNode,Dt.findNodeIndex(Pt.startContainer));function Nn(Ae,He){var Kt=Dt.getNodeLength(He);if(Ae==Kt)return!0;for(var On=Ae;On<Kt;On++)if(!Dt.insignificant(He.childNodes[On]))return!1;return!0}for(;Nn(Pt.endOffset,Pt.endContainer)&&Pt.endContainer!=Xn;)Pt.setEnd(Pt.endContainer.parentNode,Dt.findNodeIndex(Pt.endContainer)+1);return Pt},expand:function(Pt){var $t=Pt.cloneRange(),Xn=$t.startContainer.childNodes[0===$t.startOffset?0:$t.startOffset-1],Nn=$t.endContainer.childNodes[$t.endOffset];if(!Ui(Xn)||!Ui(Nn))return $t;var Ae=Xn.nodeValue,He=Nn.nodeValue;if(!Ae||!He)return $t;var Kt=Ae.split("").reverse().join("").search(At),On=He.search(At);return!Kt||!On||(On=-1==On?He.length:On,$t.setStart(Xn,Kt=-1==Kt?0:Ae.length-Kt),$t.setEnd(Nn,On)),$t},isExpandable:function(Pt){var $t=Pt.startContainer,Xn=Rt.documentFromRange(Pt);if($t==Xn||$t==Xn.body)return!1;var Nn=Pt.cloneRange(),Ae=$t.nodeValue;if(!Ae)return!1;var He=Ae.substring(0,Nn.startOffset),Kt=Ae.substring(Nn.startOffset),On=0,Fi=0;return He&&(On=He.split("").reverse().join("").search(At)),Kt&&(Fi=Kt.search(At)),On&&Fi}};ze(St,{SelectionUtils:Dn,W3CRange:kn,RangeIterator:cn,W3CSelection:Ht,RangeEnumerator:$e,RestorePoint:Ge,Marker:Be,RangeUtils:Rt})}.apply(wn={},ur=[ki]))&&(jo=wn),void 0===(Zi=function(){var vn=window.kendo.jQuery,Ke=window.kendo,St=Ke.ui.editor,it=St.Dom,Dt=Ke.template,Hn=St.RangeUtils,Ui=["ul","ol","tbody","thead","table"],Sn="k-immutable",Vn="["+Sn+"]",kn=function(Ve){return vn(Ve).is("body,.k-editor")},ui=function(Ve){return Ve.getAttribute&&"false"==Ve.getAttribute("contenteditable")},Ot=function(Ve){return it.closestBy(Ve,ui,kn)},cn=function(Ve){return!!Ot(Ve.commonAncestorContainer)||!(!Ot(Ve.startContainer)&&!Ot(Ve.endContainer)||0!==Hn.editableTextNodes(Ve).length)},Ht=function(Ve){for(var Ge="",At=Ve||10;At>0;--At)Ge+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.round(61*Math.random()));return Ge},$e=function(Ve){var Ge=Ve?Ve.options:void 0;Ge&&Ge.finder&&Ge.finder._initOptions({immutables:!0})},Je=Ke.Class.extend({init:function(Ve){this.editor=Ve,this.serializedImmutables={},this.options=vn.extend({},Ve&&Ve.options&&Ve.options.immutables);var Ge=Ve.toolbar.tools;$e(Ge.justifyLeft),$e(Ge.justifyCenter),$e(Ge.justifyRight),$e(Ge.justifyFull)},serialize:function(Ve){var Be,Ge=this._toHtml(Ve);return-1===Ge.indexOf(Sn)?(Be=this.randomId(),Ge=Ge.replace(/>/," "+Sn+'="'+Be+'">')):Be=Ge.match(/k-immutable\s*=\s*['"](.*)['"]/)[1],this.serializedImmutables[Be]=Ve,Ge},_toHtml:function(Ve){var At,Ge=this.options.serialization;switch(typeof Ge){case"string":return Dt(Ge)(Ve);case"function":return Ge(Ve);default:return"<"+(At=it.name(Ve))+"></"+At+">"}},deserialize:function(Ve){var Ge=this,Be=this.options.deserialization;vn(Vn,Ve).each(function(){var At=this.getAttribute(Sn),Rt=Ge.serializedImmutables[At];Ke.isFunction(Be)&&Be(this,Rt),vn(this).replaceWith(Rt)}),Ge.serializedImmutables={}},randomId:function(Ve){return Ht(Ve)},keydown:function(Ve,Ge){var Be=function(Ve){var Ge=Ke.keys;return Ve===Ge.BACKSPACE||Ve==Ge.DELETE}(Ve.keyCode);if(Be&&this._cancelDeleting(Ve,Ge)||!Be&&this._cancelTyping(Ve,Ge))return Ve.preventDefault(),!0},_cancelTyping:function(Ve,Ge){var At=this.editor.keyboard;return Ge.collapsed&&!At.typingInProgress&&At.isTypingKey(Ve)&&cn(Ge)},_cancelDeleting:function(Ve,Ge){var Be=Ke.keys,At=Ve.keyCode===Be.BACKSPACE,Rt=Ve.keyCode==Be.DELETE;if(!At&&!Rt)return!1;var Pt=!1;if(Ge.collapsed){if(cn(Ge))return!0;var $t=this.nextImmutable(Ge,Rt);if($t&&At){var Xn=it.closest(Ge.commonAncestorContainer,"li");if(Xn){var Nn=it.closest($t,"li");if(Nn&&Nn!==Xn)return Pt}}if($t&&!it.tableCell($t)){if(it.parentOfType($t,Ui)===it.parentOfType(Ge.commonAncestorContainer,Ui)){for(;$t&&1==$t.parentNode.childNodes.length;)$t=$t.parentNode;if(it.tableCell($t))return Pt;this._removeImmutable($t,Ge)}Pt=!0}}return Pt},nextImmutable:function(Ve,Ge){var Be=Ve.commonAncestorContainer;if(it.isBom(Be)||Ge&&Hn.isEndOf(Ve,Be)||!Ge&&Hn.isStartOf(Ve,Be)){var At=this._nextNode(Be,Ge);if(At&&it.isBlock(At)&&!Ot(At))for(;At&&At.children&&At.children[Ge?0:At.children.length-1];)At=At.children[Ge?0:At.children.length-1];return Ot(At)}},_removeImmutable:function(Ve,Ge){var Be=this.editor,At=new St.RestorePoint(Ge,Be.body);it.remove(Ve),St._finishUpdate(Be,At)},_nextNode:function(Ve,Ge){for(var Rt,Be=Ge?"nextSibling":"previousSibling",At=Ve;At&&!Rt;)(Rt=At[Be])&&it.isDataNode(Rt)&&/^\s|[\ufeff]$/.test(Rt.nodeValue)&&(Rt=(At=Rt)[Be]),Rt||(At=At.parentNode);return Rt}});Je.immutable=ui,Je.immutableParent=Ot,Je.expandImmutablesIn=function(Ve){var Ge=Ot(Ve.startContainer),Be=Ot(Ve.endContainer);(Ge||Be)&&(Ge&&Ve.setStartBefore(Ge),Be&&Ve.setEndAfter(Be))},Je.immutablesContext=cn,Je.toolsToBeUpdated=["bold","italic","underline","strikethrough","superscript","subscript","forecolor","backcolor","fontname","fontsize","createlink","unlink","autolink","addcolumnleft","addcolumnright","addrowabove","addrowbelow","deleterow","deletecolumn","mergecells","formatting","cleanformatting"],Je.removeImmutables=function(Ve){var Be,At,Rt,Ge={empty:!0};return vn(Ve).find("[contenteditable='false']").each(function(Pt,$t){Be=it.name($t),At=Ht(),Rt="<"+Be+" "+Sn+"='"+At+"'></"+Be+">",Ge[At]={node:$t,style:vn($t).attr("style")},Ge.empty=!1,vn($t).replaceWith(Rt)}),Ge},Je.restoreImmutables=function(Ve,Ge){var Be,At;vn(Ve).find(Vn).each(function(Rt,Pt){Be=Pt.getAttribute(Sn),At=Ge[Be],vn(Pt).replaceWith(At.node),At.style!=vn(At.node).attr("style")&&vn(At.node).removeAttr("style").attr("style",At.style)})},St.Immutables=Je}.apply(oo={},ur=[jo]))&&(Zi=oo),void 0===(Bi=function(){var vn=window.kendo.jQuery,Xe=window.kendo,Ke=Xe.Class,ze=Xe.ui.editor,St=ze.Dom,it=ze.RestorePoint,Dt=ze.Marker,Hn=vn.extend,Co=Ke.extend({init:function(Vn){this.options=Vn,this.restorePoint=new it(Vn.range,Vn.body,{immutables:Vn.immutables}),this.marker=new Dt,this.formatter=Vn.formatter},getRange:function(){return this.restorePoint.toRange()},lockRange:function(Vn){return this.marker.add(this.getRange(),Vn)},releaseRange:function(Vn){this.marker.remove(Vn),this.editor.selectRange(Vn)},undo:function(){var Vn=this.restorePoint;Vn.restoreHtml(),this.editor.selectRange(Vn.toRange())},redo:function(){this.exec()},createDialog:function(Vn,Dn){var kn=this.editor;return vn(Vn).appendTo(document.body).kendoWindow(Hn({},kn.options.dialogOptions,Dn)).closest(".k-window").toggleClass("k-rtl",Xe.support.isRtl(kn.wrapper)).end()},exec:function(){var Vn=this.lockRange(!0);this.formatter.editor=this.editor,this.formatter.toggle(Vn),this.releaseRange(Vn)},immutables:function(){return this.editor&&this.editor.options.immutables},expandImmutablesIn:function(Vn){this.immutables()&&(Xe.ui.editor.Immutables.expandImmutablesIn(Vn),this.restorePoint=new it(Vn,this.editor.body))}}),Sn=Ke.extend({init:function(Vn,Dn){this.body=Vn.body,this.startRestorePoint=Vn,this.endRestorePoint=Dn},redo:function(){St.removeChildren(this.body),this.body.innerHTML=this.endRestorePoint.html,this.editor.selectRange(this.endRestorePoint.toRange())},undo:function(){St.removeChildren(this.body),this.body.innerHTML=this.startRestorePoint.html,this.editor.selectRange(this.startRestorePoint.toRange())}});Hn(ze,{_finishUpdate:function Ui(Vn,Dn){var kn=Vn.selectionRestorePoint=new it(Vn.getRange(),Vn.body),ui=new Sn(Dn,kn);return ui.editor=Vn,Vn.undoRedoStack.push(ui),Vn.toolbar.refreshTools(),kn},Command:Co,GenericCommand:Sn})}.apply(Xo={},ur=[Zi]))&&(Bi=Xo),void 0===(Lo=function(){var vn=window.kendo.jQuery,Ke=window.kendo,ze=Ke.ui,St=ze.editor,it=ze.Widget,Dt=vn.extend,Hn=Ke.keys,Ui=".kendoEditor",Co=St.EditorUtils,Sn=St.ToolTemplate,Dn=Ke._outerWidth,kn=Ke._outerHeight,ui="overflowAnchor",Ot=".k-tool-group:visible .k-tool:not(.k-disabled):not([disabled]),.k-tool.k-overflow-anchor:visible,.k-tool-group:visible .k-colorpicker:not(input),.k-tool-group:visible .k-selectbox,.k-tool-group:visible .k-dropdownlist,.k-tool-group:visible .k-combobox .k-input-inner",en={"k-i-sup-script":"superscript","k-i-sub-script":"subscript","k-i-align-left":"justifyLeft","k-i-align-center":"justifyCenter","k-i-align-right":"justifyRight","k-i-align-justify":"justifyFull","k-i-list-unordered":"insertUnorderedList","k-i-list-ordered":"insertOrderedList","k-i-list-roman-upper":"insertUpperRomanList","k-i-list-roman-lower":"insertLowerRomanList","k-i-import":"import","k-i-indent-increase":"indent","k-i-indent-decrease":"outdent","k-i-link-horizontal":"createLink","k-i-unlink-horizontal":"unlink","k-i-image":"insertImage","k-i-file-add":"insertFile","k-i-html":"viewHtml","k-i-foreground-color":"foreColor","k-i-paint":"backColor","k-i-table-insert":"createTable","k-i-table-column-insert-left":"addColumnLeft","k-i-table-column-insert-right":"addColumnRight","k-i-table-row-insert-above":"addRowAbove","k-i-table-row-insert-below":"addRowBelow","k-i-table-row-delete":"deleteRow","k-i-table-column-delete":"deleteColumn","k-i-table-properties":"tableWizard","k-i-table-wizard":"tableWizardInsert","k-i-table-position-left":"tableAlignLeft","k-i-table-position-center":"tableAlignCenter","k-i-table-position-right":"tableAlignRight","k-i-clear-css":"cleanFormatting","k-i-cells-merge-horizontally":"mergeCellsHorizontally","k-i-cells-merge-vertically":"mergeCellsVertically","k-i-cell-split-horizontally":"splitCellHorizontally","k-i-cell-split-vertically":"splitCellVertically","k-i-copy-format":"copyFormat","k-i-apply-format":"applyFormat",".k-i-undo":"undo","k-i-redo":"redo"},cn=St.Tool.extend({initialize:function(ft,Nt){var an=Nt.editor.toolbar;ft.attr("aria-controls",Nt.editor.element.attr("id")).on("click",function(){this.overflowPopup.toggle()}.bind(an))},options:{name:ui},command:vn.noop,update:vn.noop,destroy:vn.noop}),Ht=(Co.registerTool(ui,new cn({key:"",ctrl:!0,template:new Sn({template:Co.overflowAnchorTemplate})})),it.extend({init:function(ft,Nt){var an=this;Nt=Dt({},Nt,{name:"EditorToolbar"}),it.fn.init.call(an,ft,Nt),Nt.popup&&an._initPopup(),Nt.resizable&&Nt.resizable.toolbar&&(an._resizeHandler=Ke.onResize(function(){an.resize(!0)}),an.element.addClass("k-toolbar-resizable"))},events:["execute"],groups:{basic:["bold","italic","underline","strikethrough"],undo:["undo","redo"],scripts:["subscript","superscript"],alignment:["justifyLeft","justifyCenter","justifyRight","justifyFull"],links:["insertImage","insertFile","createLink","unlink"],lists:["insertUnorderedList","insertOrderedList","insertUpperRomanList","insertLowerRomanList","indent","outdent"],tablesInsert:["createTable"],tablesAddDelete:["addColumnLeft","addColumnRight","addRowAbove","addRowBelow","deleteRow","deleteColumn"],tablesMerge:["mergeCellsHorizontally","mergeCellsVertically","splitCellHorizontally","splitCellVertically"],tablesPosition:["tableAlignLeft","tableAlignCenter","tableAlignRight"],advanced:["viewHtml","cleanFormatting","print","pdf","exportAs","import"],fonts:["fontName","fontSize"],colors:["foreColor","backColor"],formatPainter:["copyFormat","applyFormat"]},overflowFlaseTools:["formatting","fontName","fontSize","foreColor","backColor","insertHtml"],_initPopup:function(){var ft=this;this.window=vn(this.element).wrap("<div class='editorToolbarWindow' />").parent().prepend("<span class='k-editortoolbar-dragHandle'><span class='k-icon k-i-handler-drag'></span></span>").kendoWindow({title:!1,resizable:!1,draggable:{dragHandle:".k-editortoolbar-dragHandle"},animation:{open:{effects:"fade:in"},close:{effects:"fade:out"}},minHeight:42,visible:!1,autoFocus:!1,actions:[],dragend:function(){this._moved=!0}}).on("mousedown",function(Nt){vn(Nt.target).is(".k-icon")||(ft.preventPopupHide=!0)}).on("focusout",function(){ft.options.editor.element.focusout()}).data("kendoWindow")},_toggleOverflowStyles:function(ft,Nt){ft.find("> li").toggleClass("k-item",Nt).find(".k-tool:not(.k-disabled), .k-overflow-button").toggleClass("k-overflow-button",Nt)},_initOverflowPopup:function(ft){var Nt=this;Nt.overflowPopup=vn("<ul class='k-editor-overflow-popup k-overflow-container k-list-container'></ul>").appendTo("body").kendoPopup({anchor:ft,origin:Ke.support.isRtl(Nt.element)?"bottom left":"bottom right",position:Ke.support.isRtl(Nt.element)?"top left":"top right",copyAnchorStyles:!1,open:function($e){this.element.is(":empty")&&$e.preventDefault(),Nt._toggleOverflowStyles(this.element,!0),ft.attr("aria-expanded",!0)},close:function(){ft.attr("aria-expanded",!1)},activate:Nt.focusOverflowPopup.bind(Nt)}).data("kendoPopup")},items:function(){var an,ft=this.options.resizable&&this.options.resizable.toolbar;return an=this.element.children().find("> *, select"),ft&&(an=an.add(this.overflowPopup.element.children().find("> *"))),an},focused:function(){var ft=Ke._activeElement(),Nt=this.window,an=this.overflowPopup;return Nt&&vn(ft).closest(Nt.wrapper).length||an&&an.visible()},toolById:function(ft){var Nt,an=this.tools;for(Nt in an)if(Nt.toLowerCase()==ft)return an[Nt]},toolGroupFor:function(ft){var Nt,an=this.groups;if(this.isCustomTool(ft))return"custom";for(Nt in an)if(vn.inArray(ft,an[Nt])>=0)return Nt},bindTo:function(ft){var Nt=this,an=Nt.window;Nt._editor&&Nt._editor.unbind("select",Nt.resize.bind(Nt)),Nt._editor=ft,Nt.options.resizable&&Nt.options.resizable.toolbar&&ft.options.tools.push(ui),Nt.tools=Nt.expandTools(ft.options.tools),Nt.render(),Nt.element.find(".k-combobox .k-input-inner").on("keydown",function($e){var Je=vn(this).closest(".k-combobox").data("kendoComboBox"),Ve=$e.keyCode;Ve==Hn.RIGHT||Ve==Hn.LEFT?Je.close():Ve==Hn.DOWN&&(Je.dropDown.isOpened()||($e.stopImmediatePropagation(),Je.open()))}),Nt._attachEvents(),Nt.items().each(function(){var Je=Nt._toolName(this),Ve="moreVertical"!==Je?Nt.tools[Je]:Nt.tools.overflowAnchor,Ge=Ve&&Ve.options,Be=ft.options.messages,At=Ge&&Ge.tooltip||Be[Je],Rt=vn(this);if(Ve&&Ve.initialize){if("fontSize"==Je||"fontName"==Je){var Pt=Be[Je+"Inherit"];Rt.find("input").val(Pt).end().find("span.k-input-inner").text(Pt).end()}Ve.initialize(Rt,{title:Nt._appendShortcutSequence(At,Ve),editor:Nt._editor}),Rt.closest(".k-dropdownlist",Nt.element).addClass("k-editor-widget"),Rt.closest(".k-combobox",Nt.element).addClass("k-editor-widget"),Rt.closest(".k-colorpicker",Nt.element).next(".k-colorpicker").addClass("k-editor-widget")}}),ft.bind("select",Nt.resize.bind(Nt)),Nt.update(),an&&an.wrapper.css({top:"",left:"",width:""})},show:function(){var $e,Je,Ve,ft=this,Nt=ft.window,Ge=Ke.support.browser;Nt&&(Je=ft.options.editor.element,(!($e=Nt.wrapper).is(":visible")||!ft.window.options.visible)&&($e[0].style.width||$e.width(this._getWindowWidth()),Nt._moved||(Ve=Je.offset(),$e.css({top:Math.max(0,parseInt(Ve.top,10)-kn($e)-parseInt(ft.window.element.css("padding-bottom"),10)),left:Math.max(0,parseInt(Ve.left,10))})),(Ge.msie||Ge.edge)&&ft._overlaps(Je)?setTimeout(function(){Nt.open()},0):Nt.open()))},_getWindowWidth:function(){var Nt=this.window.wrapper;return Dn(this.options.editor.element)-parseInt(Nt.css("border-left-width"),10)-parseInt(Nt.css("border-right-width"),10)},_overlaps:function(ft){var Nt=this.window.wrapper,an=Nt.offset(),$e=an.left,Je=an.top,Ve=ft.offset(),Ge=Ve.left,Be=Ve.top;return!(Ge+ft.width()<$e||Ge>$e+Nt.width()||Be+ft.height()<Je||Be>Je+Nt.height())},hide:function(){this.window&&this.window.close()},focus:function(){var ft="tabIndex",Nt=this.element,an=this._editor.element.attr(ft);Nt.attr(ft,an||0).trigger("focus").find(Ot).first().trigger("focus"),!an&&0!==an&&Nt.removeAttr(ft)},focusOverflowPopup:function(){var ft="tabIndex",Nt=this.overflowPopup.element,an=this._editor.element.attr(ft);Nt.closest(".k-animation-container").addClass("k-overflow-wrapper"),Nt.attr(ft,an||0).find(Ot).first().trigger("focus"),!an&&0!==an&&Nt.removeAttr(ft)},_appendShortcutSequence:function(ft,Nt){if(!Nt.key)return ft;var an=ft+" (";return Nt.ctrl&&(an+="Ctrl + "),Nt.shift&&(an+="Shift + "),Nt.alt&&(an+="Alt + "),an+(Nt.key+")")},_nativeTools:["insertLineBreak","insertParagraph","redo","undo","autoLink"],tools:{},isCustomTool:function(ft){return!(ft in Ke.ui.Editor.defaultTools)},expandTools:function(ft){var Nt,an,Je,Be,$e=this._nativeTools,Ve=Ke.deepExtend({},Ke.ui.Editor.defaultTools),Ge={};for(an=0;an<ft.length;an++)Be=(Nt=ft[an]).name,vn.isPlainObject(Nt)?Be&&Ve[Be]?(Ge[Be]=Dt({},Ve[Be]),Dt(Ge[Be].options,Nt)):((Je=Dt({cssClass:"k-i-gear",type:"button",title:""},Nt)).name||(Je.name="custom"),Je.cssClass="k-"+Je.name,!Je.template&&"button"==Je.type&&(Je.template=St.EditorUtils.buttonTemplate,Je.title=Je.title||Je.tooltip),Ge[Be]={options:Je}):Ve[Nt]&&(Ge[Nt]=Ve[Nt]);for(an=0;an<$e.length;an++)Ge[$e[an]]||(Ge[$e[an]]=Ve[$e[an]]);return Ge},render:function(){var an,$e,Je,Ve,At,Rt,$t,Xn,Ci,xi,ft=this,Nt=ft.tools,Ge=ft._editor.element,Be=ft.element.empty(),Pt=ft._editor.options.tools,Nn=0,Ae=ft.options.resizable&&ft.options.resizable.toolbar,He=this.overflowFlaseTools;function On(){$t.children().length&&(Ae&&($t.data("position",Nn),Nn++),$t.appendTo(Be))}function Fi(Ci){Ci!==ui?($t=vn("<li class='k-tool-group' role='presentation' />")).data("overflow",-1===vn.inArray(Ci,He)):$t=vn("<li class='k-overflow-tools' />")}for(Be.empty(),Pt.length&&(Ve=Pt[0].name||Pt[0]),Fi(Ve),Xn=0;Xn<Pt.length;Xn++)!(an=Nt[Ve=Pt[Xn].name||Pt[Xn]]&&Nt[Ve].options)&&vn.isPlainObject(Ve)&&(an=Ve),$e=an&&an.template,"break"==Ve&&(On(),vn("<li class='k-row-break' role='presentation' />").appendTo(ft.element),Fi(Ve)),$e&&((At!=(Rt=ft.toolGroupFor(Ve))||Ve==ui)&&(On(),Fi(Ve),At=Rt),Ve==ui&&($e.options.title=ft.options.messages.overflowAnchor),xi=void 0,xi="",(Ci=$e).getHtml?xi=Ci.getHtml():(Ke.isFunction(Ci)||(Ci=Ke.template(Ci)),xi=Ci(an)),$e=Ke.trim(xi),Je=vn($e).appendTo($t),"custom"==Rt&&(On(),Fi(Ve)),an.exec&&Je.hasClass("k-tool")&&Je.on("click",an.exec.bind(Ge[0])));On(),vn(ft.element).children(":has(> .k-tool)").not(".k-overflow-tools").addClass("k-button-group"),ft.updateGroups(),Ae&&ft._initOverflowPopup(ft.element.find(".k-overflow-anchor")),ft.angular("compile",function(){return{elements:ft.element}})},updateGroups:function(){vn(this.element).children().not(".k-overflow-tools").each(function(){vn(this).children().removeClass("k-group-start k-group-end").first().addClass("k-group-start").end().last().addClass("k-group-end").end()})},decorateFrom:function(ft){this.items().filter(".k-decorated").each(function(){var Nt=vn(this).data("kendoSelectBox");Nt&&Nt.decorate(ft)})},destroy:function(){it.fn.destroy.call(this);var ft,Nt=this.tools;for(ft in Nt)Nt[ft].destroy&&Nt[ft].destroy();this.window&&this.window.destroy(),this._resizeHandler&&Ke.unbindResize(this._resizeHandler),this.overflowPopup&&this.overflowPopup.destroy()},_attachEvents:function(){var Nt=this.overflowPopup?this.overflowPopup.element:vn([]);this.attachToolsEvents(this.element.add(Nt))},attachToolsEvents:function(ft){var Nt=this,an="[role=button].k-tool",$e=an+":not(.k-disabled), [role=button].k-i-import:not(.k-disabled)",Je=an+".k-disabled",Be=[an,".k-dropdownlist",".k-colorpicker"].join(",");ft.off(Ui).on("mouseenter"+Ui,$e,function(){vn(this).addClass("k-hover")}).on("mouseleave"+Ui,$e,function(){vn(this).removeClass("k-hover")}).on("mousedown"+Ui,Be,function(At){At.preventDefault()}).on("keydown"+Ui,Ot,function(At){var Xn,Nn,Ae,Rt=this,Pt=Nt.options.resizable&&Nt.options.resizable.toolbar,$t=Ke.support.isRtl(Nt.element)?-1:1,He=At.keyCode;function Kt(On,Fi,Ci){var xi=Fi.find(Ot),Wn=xi.index(Rt)+On;return Ci&&(Wn=Math.max(0,Math.min(xi.length-1,Wn))),xi[Wn]}He==Hn.RIGHT||He==Hn.LEFT?Nn=vn(Rt).is(".k-dropdownlist")?vn(Rt):Kt(He==Hn.RIGHT?1*$t:-1*$t,Nt.element,!0):!Pt||He!=Hn.UP&&He!=Hn.DOWN?He==Hn.HOME?(Nn=Nt.element.find(Ot)[0],At.preventDefault()):He==Hn.END?(Nn=(Xn=Nt.element.find(Ot).filter(function(){return"hidden"!==vn(this).css("visibility")}))[Xn.length-1],At.preventDefault()):He==Hn.ESC?(Nt.overflowPopup&&Nt.overflowPopup.visible()&&Nt.overflowPopup.close(),Nn=Nt._editor):He==Hn.TAB&&!(At.ctrlKey||At.altKey)&&(Ae=Pt&&vn(Rt.parentElement).hasClass("k-overflow-tool-group")?Nt.overflowPopup.element:Nt.element,At.shiftKey?Nn=Kt(-1,Ae):(!(Nn=Kt(1,Ae))||"hidden"===vn(Nn).closest(".k-overflow-tools").css("visibility"))&&(Nn=Nt._editor)):Nn=Kt(He==Hn.DOWN?1:-1,Nt.overflowPopup.element,!0),Nn&&(At.preventDefault(),Nn.focus()),(He===Hn.ENTER||He===Hn.SPACEBAR)&&(vn(Rt).is("button")||vn(Rt).is("a"))&&!vn(Rt).attr("href")&&Nt._executeToolCommand(Rt,At)}).on("click"+Ui,$e,function(At){Nt._executeToolCommand(this,At)}).on("click"+Ui,Je,function(At){At.preventDefault()})},_executeToolCommand:function(ft,Nt){var $e=vn(ft);Nt.preventDefault(),Nt.stopPropagation(),$e.removeClass("k-hover"),$e.is("[data-popup]")||this._editor.exec(this._toolName(ft))},_toolName:function(ft){if(ft){var Nt=ft.className;/k-tool\b/i.test(Nt)&&(Nt=ft.firstChild.className);var an=vn.grep(Nt.split(" "),function(Je){return!/^k-(widget|tool|tool-icon|icon|state-hover|header|combobox|dropdown|selectbox|colorpicker)$/i.test(Je)});if(an[0]){var $e=an[0];return en[$e]&&($e=en[$e]),$e.indexOf("k-i-")>=0?Ke.toCamelCase($e.substring($e.indexOf("k-i-")+4)):$e.substring($e.lastIndexOf("-")+1)}return"custom"}},refreshTools:function(){var ft=this,Nt=ft._editor,an=Nt.getRange(),$e=St.RangeUtils.textNodes(an),Je=Nt.options.immutables,Ve=ft._immutablesContext(an);($e=St.Dom.filterBy($e,St.Dom.htmlIndentSpace,!0)).length||($e=[an.startContainer]),ft.items().each(function(){var Ge=ft.tools[ft._toolName(this)];if(Ge){var Be=vn(this);Ge.update&&Ge.update(Be,$e,Nt.undoRedoStack),Je&&ft._updateImmutablesState(Ge,Be,Ve)}}),this.update()},_immutablesContext:function(ft){if(this._editor.options.immutables)return ft.collapsed?St.Immutables.immutablesContext(ft):0===St.RangeUtils.editableTextNodes(ft).length},_updateImmutablesState:function(ft,Nt,an){var Je=Nt,Ve=ft.options.trackImmutables;if(void 0===Ve&&(Ve=vn.inArray(ft.name,St.Immutables.toolsToBeUpdated)>-1),Ve){var Ge=an?"none":"";if(!Nt.is(".k-tool")){var Be=Nt.data();for(var At in Be)if(At.match(/^kendo[A-Z][a-zA-Z]*/)){Je=Be[At].wrapper;break}}Je.css("display",Ge);var Pt=Je.closest("li");0===Pt.children(":visible").length&&Pt.css("display",Ge)}},update:function(){this.updateGroups()},_resize:function(ft){var Nt=ft.width,an=this.options.resizable&&this.options.resizable.toolbar,$e=this.overflowPopup,Je=this.options.editor.element,Ve=this.window;this.refreshTools(),an&&(Ve&&(Ve.wrapper.width(this._getWindowWidth()),Ve._moved||Ve.wrapper.css({left:Math.max(0,parseInt(Je.offset().left,10))})),$e.visible()&&$e.close(!0),this._refreshWidths(),this._shrink(Nt),this._stretch(Nt),this._toggleOverflowStyles(this.element,!1),this._toggleOverflowStyles(this.overflowPopup.element,!0),this.element.children("li.k-overflow-tools").css("visibility",$e.element.is(":empty")?"hidden":"visible"))},_refreshWidths:function(){this.element.children("li").each(function(ft,Nt){var an=vn(Nt);an.data("outerWidth",Dn(an,!0))})},_shrink:function(ft){var Nt,an;if(ft<this._groupsWidth())for(var $e=(an=this._visibleGroups().filter(":not(.k-overflow-tools)")).length-1;$e>=0&&(Nt=an.eq($e),!(ft>this._groupsWidth()));$e--)this._hideGroup(Nt)},_stretch:function(ft){var Nt,an;if(ft>this._groupsWidth()){an=this._hiddenGroups();for(var $e=0;$e<an.length&&(Nt=an.eq($e),!(ft<this._groupsWidth())&&this._showGroup(Nt,ft));$e++);}},_hiddenGroups:function(){var ft=this.overflowPopup,Nt=this.element.children("li.k-tool-group").filter(":hidden");return(Nt=Nt.add(ft.element.children("li"))).sort(function(an,$e){return vn(an).data("position")>vn($e).data("position")?1:-1}),Nt},_visibleGroups:function(){return this.element.children("li.k-tool-group, li.k-overflow-tools").filter(":visible")},_groupsWidth:function(){var ft=0;return this._visibleGroups().each(function(){ft+=vn(this).data("outerWidth")}),Math.ceil(ft)},_hideGroup:function(ft){if(ft.data("overflow")){var Nt=this.overflowPopup;ft.detach().prependTo(Nt.element).addClass("k-overflow-tool-group")}else ft.addClass("k-hidden")},_showGroup:function(ft,Nt){var an,$e,Je;return!!ft.hasClass("k-disabled")||(ft.hasClass("k-overflow-tool-group")?Je=ft.data("outerWidth"):(ft.removeClass("k-hidden"),Je=Dn(ft,!0),ft.addClass("k-hidden")),!!(ft.length&&Nt>this._groupsWidth()+Je)&&(ft.hasClass("k-overflow-tool-group")?(0===(an=ft.data("position"))?ft.detach().prependTo(this.element):($e=this.element.children().filter(function(Ve,Ge){return vn(Ge).data("position")===an-1}),ft.detach().insertAfter($e)),ft.removeClass("k-overflow-tool-group")):ft.removeClass("k-hidden"),!0))}}));vn.extend(St,{Toolbar:Ht})}.apply(or={},ur=[jo]))&&(Lo=or),void 0===(xr=function(){var vn=window.kendo.jQuery,Ke=window.kendo,ze=vn.extend,St=Ke.ui.editor,it=St.EditorUtils,Dt=St.Command,Hn=St.Tool,Ui=St.ToolTemplate,Co=St.Dom,Sn=Dt.extend({init:function(Vn){this.options=Vn,Dt.fn.init.call(this,Vn),this.attributes=null,this.async=!0},exec:function(){var cn,Ht,Vn=this,Dn=Vn.editor,kn=Dn.options,ui=Dn.options.messages,Ot=vn(Ke.template(Sn.template)(ui)).appendTo(document.body),en=".k-editor-textarea > textarea";function Nt(an){an.preventDefault(),Ot.data("kendoWindow").destroy(),Dn.immutables&&(Dn.immutables.serializedImmutables={}),Dn.focus()}kn.serialization.immutables=Dn.immutables,Ht=Co.getAllComments(Dn.body),cn=it.cacheComments(Dn.value(),Ht),cn=Sn.indent(cn),cn=it.retrieveComments(cn,Ht),kn.serialization.immutables=void 0,this.createDialog(Ot,{title:ui.viewHtml,width:600,height:400,resizable:!0,close:Nt,visible:!1}).find(en).val(cn).end().find(".k-dialog-update").on("click",function ft(an){kn.deserialization.immutables=Dn.immutables,Dn.value(Ot.find(en).val()),kn.deserialization.immutables=void 0,Nt(an),Vn.change&&Vn.change(),Dn.trigger("change")}).end().find(".k-dialog-close").on("click",Nt).end().data("kendoWindow").center().open(),Ot.find(en).trigger("focus")}});ze(Sn,{template:"<div class='k-editor-dialog k-popup-edit-form k-viewhtml-dialog'><span class='k-input k-textarea k-input-solid k-input-md k-rounded-md k-editor-textarea'><textarea class='k-input-inner !k-overflow-auto !k-resize-none'></textarea></span><div class='k-edit-buttons'><button class='k-dialog-update k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary'><span class='k-button-text'>#: dialogUpdate #</span></button><button class='k-dialog-close k-button k-button-md k-rounded-md k-button-solid k-button-solid-base'><span class='k-button-text'>#: dialogCancel #</span></button></div></div>",indent:function(Vn){return Vn.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/gi,"<$1$2>\n<li").replace(/<br \/>/gi,"<br />\n").replace(/\n$/,"")}}),St.EditorUtils.registerTool("viewHtml",new Hn({command:Ke.ui.editor.ViewHtmlCommand=Sn,template:new Ui({template:it.buttonTemplate,title:"View HTML"})}))}.apply(Nr={},ur=[Bi]))&&(xr=Nr),void 0===(as=function(){var vn=window.kendo.jQuery,Xe=window.kendo,Ke=vn.extend,ze=Xe.ui.editor,St=ze.Tool,it=ze.Command,Dt=ze.EditorUtils,Hn=it.extend({init:function(Co){Co.formatter=Co.formatter();var Sn=Co.formatter.finder;Sn&&Dt.formatByName("immutable",Sn.format)&&Sn._initOptions({immutables:Co.immutables}),it.fn.init.call(this,Co)}}),Ui=St.extend({init:function(Co){St.fn.init.call(this,Co)},command:function(Co){return new Hn(Ke(Co,{formatter:this.options.formatter}))},update:function(Co,Sn){var Vn=this.options.finder.isFormatted(Sn);Co.toggleClass("k-selected",Vn),Co.attr("aria-pressed",Vn)}});vn.extend(ze,{FormatCommand:Hn,FormatTool:Ui})}.apply(ji={},ur=[Bi]))&&(as=ji),void 0===(Fo=function(){var vn=window.kendo.jQuery,Xe=window.kendo,Ke=Xe.Class,ze=Xe.ui.editor,St=Xe.ui.Editor.fn.options.formats,it=ze.EditorUtils,Dt=ze.Tool,Hn=ze.ToolTemplate,Ui=ze.FormatTool,Co=ze.Dom,Sn=ze.RangeUtils,Vn=vn.extend,Dn=ze.EditorUtils.registerTool,kn=ze.EditorUtils.registerFormat,ui="mousedown.kendoEditor",en="k-marker",cn=Ke.extend({init:function(Ge){this.format=Ge},numberOfSiblings:function(Ge){var $t,Be=0,At=0,Rt=0,Pt=Ge.parentNode;for($t=Pt.firstChild;$t;$t=$t.nextSibling)$t!=Ge&&($t.className==en?Rt++:3==$t.nodeType?Be++:At++);return Rt>1&&Pt.firstChild.className==en&&Pt.lastChild.className==en?0:At+Be},findSuitable:function(Ge,Be){if(!Be&&this.numberOfSiblings(Ge)>0)return null;for(var At=Ge.parentNode,Rt=this.format[0].tags;!Co.ofType(At,Rt);){if(this.numberOfSiblings(At)>0)return null;At=At.parentNode}return At},findFormat:function(Ge){var Rt,Pt,$t,Xn,Nn,Be=this.format,At=Co.attrEquals;for(Rt=0,Pt=Be.length;Rt<Pt;Rt++){if(Xn=Be[Rt].tags,Nn=Be[Rt].attr,($t=Ge)&&Co.ofType($t,Xn)&&At($t,Nn))return $t;for(;$t;)if(($t=Co.parentOfType($t,Xn))&&At($t,Nn))return $t}return null},isFormatted:function(Ge){var Be,At;for(Be=0,At=Ge.length;Be<At;Be++)if(this.findFormat(Ge[Be]))return!0;return!1}}),Ht=Ke.extend({init:function(Ge,Be){this.finder=new cn(Ge),this.attributes=Vn({},Ge[0].attr,Be),this.tag=Ge[0].tags[0]},wrap:function(Ge){return Co.wrap(Ge,Co.create(Ge.ownerDocument,this.tag,this.attributes))},activate:function(Ge,Be){this.finder.isFormatted(Be)?(this.split(Ge),this.remove(Be)):this.apply(Be)},toggle:function(Ge){var At=(this.immutables()?Sn.editableTextNodes:Sn.textNodes)(Ge);At.length>0&&this.activate(Ge,At)},immutables:function(){return this.editor&&this.editor.options.immutables},apply:function(Ge){var At,Rt,$t,Be=[];if(Ge.length>1)for(At=0,Rt=Ge.length;At<Rt;At++)$t=this.format(Ge[At],!0),Be.push($t);else $t=this.format(Ge[0],!1);this.consolidate(Be)},format:function(Ge,Be){var At=this.finder.findSuitable(Ge),Rt=this.attributes,Pt=Rt&&Rt.style||{};if(At)Co.is(At,"font")&&(Pt.color&&At.removeAttribute("color"),Pt.fontName&&At.removeAttribute("face"),Pt.fontSize&&At.removeAttribute("size")),Co.attr(At,Rt);else{for(;!Co.isBlock(Ge.parentNode)&&1==Ge.parentNode.childNodes.length&&"true"!==Ge.parentNode.contentEditable&&Be;)Ge=Ge.parentNode;At=this.wrap(Ge)}return At},remove:function(Ge){var Be,At,Rt;for(Be=0,At=Ge.length;Be<At;Be++)(Rt=this.finder.findFormat(Ge[Be]))&&(this.attributes&&this.attributes.style?(Co.unstyle(Rt,this.attributes.style),!Rt.style.cssText&&!Rt.attributes.class&&Co.unwrap(Rt)):Co.unwrap(Rt))},split:function(Ge){var Rt,Pt,Be=Sn.textNodes(Ge),At=Be.length;if(At>0)for(Rt=0;Rt<At;Rt++)(Pt=this.finder.findFormat(Be[Rt]))&&Sn.split(Ge,Pt,!0)},consolidate:function(Ge){for(var Be,At;Ge.length>1;)if(Be=Ge.pop(),At=Ge[Ge.length-1],Be.previousSibling&&Be.previousSibling.className==en&&At.appendChild(Be.previousSibling),Be.tagName==At.tagName&&Be.previousSibling==At&&Be.style.cssText==At.style.cssText&&Be.className===At.className){for(;Be.firstChild;)At.appendChild(Be.firstChild);Co.remove(Be)}}}),ft=cn.extend({init:function(Ge,Be,At){this.format=Ge,this.greedyProperty=Be,this.fontAttr=At,cn.fn.init.call(this,Ge)},getInlineCssValue:function(Ge){var Rt,Pt,$t,Xn,Ae,He,Kt,On,Fi,Ci,xi,Be=Ge.attributes,At=Xe.trim;if(Be)for(Rt=0,Pt=Be.length;Rt<Pt;Rt++){if(Xn=($t=Be[Rt]).nodeName,$t.specified&&"style"==Xn)for(Kt=0,On=(Ae=At($t.nodeValue||Ge.style.cssText).split(";")).length;Kt<On;Kt++)if((He=Ae[Kt]).length){if(Ci=At((Fi=He.split(":"))[0].toLowerCase()),xi=At(Fi[1]),Ci!=this.greedyProperty)continue;return Ci.indexOf("color")>=0?Co.toHex(xi):xi}if(this.fontAttr&&$t.specified&&Xn==this.fontAttr)return xi=$t.nodeValue,(Ci=$t.nodeValue).indexOf("color")>=0?Co.toHex(xi):xi}},getFormatInner:function(Ge){var Rt,Pt,$t,At=vn(Co.isDataNode(Ge)?Ge.parentNode:Ge).parentsUntil("[contentEditable]").addBack().toArray().reverse();for(Rt=0,Pt=At.length;Rt<Pt;Rt++)if($t="className"==this.greedyProperty?At[Rt].className:this.getInlineCssValue(At[Rt]))return $t;return"inherit"},getFormat:function(Ge){var At,Rt,Be=this.getFormatInner(Ge[0]);for(At=1,Rt=Ge.length;At<Rt;At++)if(Be!=this.getFormatInner(Ge[At]))return"";return Be},isFormatted:function(Ge){return""!==this.getFormat(Ge)}}),Nt=Ht.extend({init:function(Ge,Be,At){Ht.fn.init.call(this,Ge,Be),this.values=Be,this.finder=new ft(Ge,At),At&&(this.greedyProperty=Xe.toCamelCase(At))},activate:function(Ge,Be){var At=this.greedyProperty,Rt="apply";this.split(Ge),At&&"inherit"==this.values.style[At]&&(Rt="remove"),this[Rt](Be)}}),an=Ui.extend({init:function(Ge){Ui.fn.init.call(this,Vn(Ge,{finder:new cn(Ge.format),formatter:function(){return new Ht(Ge.format)}}))}}),$e=Dt.extend({update:function(Ge,Be){var At=Ge.data(this.type);At.close(),At.value(this.finder.getFormat(Be))}}),Je=$e.extend({init:function(Ge){Dt.fn.init.call(this,Ge),this.type=Xe.support.browser.msie||Xe.support.touch?"kendoDropDownList":"kendoComboBox",this.format=[{tags:["span","font"]}],this.finder=new ft(this.format,Ge.cssAttr,Ge.fontAttr)},command:function(Ge){var Be=this.options,At=this.format,Rt={};return new ze.FormatCommand(Vn(Ge,{formatter:function(){return Rt[Be.domAttr]=Ge.value,new Nt(At,{style:Rt},Be.cssAttr)}}))},initialize:function(Ge,Be){var $t,Xn,At=Be.editor,Rt=this.options,Pt=Rt.name,Nn=[];Rt.defaultValue&&(Nn=[{text:At.options.messages[Rt.defaultValue[0].text],value:Rt.defaultValue[0].value}]),$t=Nn.concat(Rt.items?Rt.items:At.options[Pt]||[]),Ge.attr({title:Be.title}),Ge[this.type]({dataTextField:"text",dataValueField:"value",dataSource:$t,change:function(){At._range=Xn,Dt.exec(At,Pt,this.value())},close:function(){setTimeout(function(){At._deleteSavedRange()},0)},highlightFirst:!1}),Ge.closest(".k-combobox").removeClass("k-"+Pt).find("*").addBack().attr("unselectable","on");var Ae=Ge.data(this.type);Ae.value("inherit"),Ae.wrapper.on(ui,".k-select,.k-input-button,.k-input",function(){var He=At.getRange();Xn=At._containsRange(He)?He:Xn}).on("keydown.kendoEditor",function(He){He.keyCode===Xe.keys.ENTER&&(At._deleteSavedRange(),He.preventDefault())})}}),Ve=Dt.extend({init:function(Ge){Dt.fn.init.call(this,Ge),this.format=[{tags:["span","font"]}],this.finder=new ft(this.format,Ge.cssAttr)},options:{palette:"websafe",columns:18},update:function(){this._widget.close()},command:function(Ge){var Be=this.options,At=this.format,Rt={};return new ze.FormatCommand(Vn(Ge,{formatter:function(){return Rt[Be.domAttr]=Ge.value,new Nt(At,{style:Rt},Be.cssAttr)}}))},initialize:function(Ge,Be){var At=this,Rt=Be.editor,Pt=this.name,$t=Vn({},Ve.fn.options,this.options),Xn=$t.palette,Nn=$t.columns;(Ge=this._widget=new Xe.ui.ColorPicker(Ge,{closeOnSelect:!0,views:["palette"],preview:!1,input:!1,buttons:!1,toolIcon:"k-icon k-i-"+it.getToolCssClass($t.name),palette:Xn,columns:Nn,change:function(){var Ae=Ge.value();Xe.support.browser.msie&&At.storedRange&&At._inputFocused&&Rt.selectRange(At.storedRange),Ae&&Dt.exec(Rt,Pt,Ae),delete At.storedRange,delete At._inputFocused,Rt.focus()},open:function(Ae){var He=Ae.sender;At.storedRange=Rt.getRange(),He._popup.element.on(ui,function(Kt){vn(Kt.target).is("input.k-color-value")||Kt.preventDefault()}),He._popup.element.is("[unselectable='on']")||He._popup.element.attr({unselectable:"on"}).find("*:not(input)").attr("unselectable","on").end().find("input").on("focus",function(){At._inputFocused=!0}),setTimeout(function(){He._popup.element.find(".k-colorpalette").trigger("focus")})},close:function(Ae){Ae.sender._popup.element.off(ui),Xe.support.browser.msie&&At.storedRange&&At._inputFocused&&Rt.selectRange(At.storedRange)},activate:function(Ae){Ae.preventDefault(),"rgba(255, 255, 255, 0)"!==Ae.sender._value.toCssRgba()&&Ge.trigger("change")}})).wrapper.attr({title:Be.title,unselectable:"on"}).find("*:not(input)").attr("unselectable","on"),Ge.value("transparent")}});Vn(ze,{InlineFormatFinder:cn,InlineFormatter:Ht,DelayedExecutionTool:$e,GreedyInlineFormatFinder:ft,GreedyInlineFormatter:Nt,InlineFormatTool:an,FontTool:Je,ColorTool:Ve}),kn("bold",[{tags:["strong","b"]},{tags:["span"],attr:{style:{fontWeight:"bold"}}}]),Dn("bold",new an({key:"B",ctrl:!0,format:St.bold,template:new Hn({template:it.buttonTemplate,title:"Bold"})})),kn("italic",[{tags:["em","i"]},{tags:["span"],attr:{style:{fontStyle:"italic"}}}]),Dn("italic",new an({key:"I",ctrl:!0,format:St.italic,template:new Hn({template:it.buttonTemplate,title:"Italic"})})),kn("underline",[{tags:["span"],attr:{style:{textDecoration:"underline"}}},{tags:["u"]}]),Dn("underline",new an({key:"U",ctrl:!0,format:St.underline,template:new Hn({template:it.buttonTemplate,title:"Underline"})})),kn("strikethrough",[{tags:["del","strike"]},{tags:["span"],attr:{style:{textDecoration:"line-through"}}}]),Dn("strikethrough",new an({format:St.strikethrough,template:new Hn({template:it.buttonTemplate,title:"Strikethrough"})})),kn("superscript",[{tags:["sup"]}]),Dn("superscript",new an({format:St.superscript,template:new Hn({template:it.buttonTemplate,title:"Superscript"})})),kn("subscript",[{tags:["sub"]}]),Dn("subscript",new an({format:St.subscript,template:new Hn({template:it.buttonTemplate,title:"Subscript"})})),Dn("foreColor",new Ve({cssAttr:"color",fontAttr:"color",domAttr:"color",name:"foreColor",template:new Hn({template:it.colorPickerTemplate,title:"Color"})})),Dn("backColor",new Ve({cssAttr:"background-color",domAttr:"backgroundColor",name:"backColor",template:new Hn({template:it.colorPickerTemplate,title:"Background Color"})})),Dn("fontName",new Je({cssAttr:"font-family",fontAttr:"face",domAttr:"fontFamily",name:"fontName",defaultValue:[{text:"fontNameInherit",value:"inherit"}],template:new Hn({template:it.comboBoxTemplate,title:"Font Name"})})),Dn("fontSize",new Je({cssAttr:"font-size",fontAttr:"size",domAttr:"fontSize",name:"fontSize",defaultValue:[{text:"fontSizeInherit",value:"inherit"}],template:new Hn({template:it.comboBoxTemplate,title:"Font Size"})}))}.apply(rt={},ur=[as]))&&(Fo=rt),void 0===(ai=function(){var vn=window.kendo.jQuery,Ke=window.kendo,ze=Ke.Class,St=vn.extend,it=Ke.ui.editor,Dt=it.Dom,Hn=it.RangeUtils,Ui=it.EditorUtils,Co=it.Command,Sn=it.Tool,Vn=it.ToolTemplate,Dn=it.InlineFormatter,kn=it.InlineFormatFinder,ui=Hn.textNodes,Ot=Hn.editableTextNodes,en=it.EditorUtils.registerTool,cn=Ke.keys,Ht="http://",ft=/^\w*:\/\//,Nt=/[\w\/\$\-_\*\?]/i,an=ze.extend({findSuitable:function(He){return Dt.parentOfType(He,["a"])}}),$e=ze.extend({init:function(){this.finder=new an},apply:function(He,Kt){var Fi,Ci,xi,Wn,Vt,On=this.immutables?Ot(He):ui(He);if(Kt.innerText){Ci=Hn.documentFromRange(He),Fi=Hn.getMarkers(He),He.deleteContents(),Wn=Dt.create(Ci,"a",Kt),He.insertNode(Wn),"a"==Dt.name(Vt=Wn.parentNode)&&Dt.insertAfter(Wn,Vt),Dt.emptyNode(Vt)&&Dt.remove(Vt);for(var qt=Wn,bn=0;bn<Fi.length;bn++)Dt.insertAfter(Fi[bn],qt),qt=Fi[bn];Fi.length&&(Dt.insertBefore(Ci.createTextNode("\ufeff"),Fi[1]||Fi[0]),Dt.insertAfter(Ci.createTextNode("\ufeff"),Fi[1]||Fi[0]),He.setStartBefore(Fi[0]),He.setEndAfter(Fi[Fi.length-1]))}else(xi=new Dn([{tags:["a"]}],Kt)).finder=this.finder,xi.apply(On)}}),Je=Co.extend({init:function(He){var Kt=this;He.formatter={toggle:function(On){var Fi=Kt.immutables()?Ot(On):ui(On);new Dn([{tags:["a"]}]).remove(Fi)}},this.options=He,Co.fn.init.call(this,He)}}),Ve=Co.extend({init:function(He){this.options=He,Co.fn.init.call(this,He),this.formatter=new $e,He.url?this.exec=function(){this.formatter.immutables=void 0,this.formatter.apply(He.range,{href:He.url,innerText:He.text||He.url,target:He.target})}:(this.attributes=null,this.async=!0)},_dialogTemplate:function(){return Ke.template("<div class=\"k-editor-dialog k-popup-edit-form\"><div class=\"k-edit-form-container\"><div class='k-edit-label'><label for='k-editor-link-url'>#: messages.linkWebAddress #</label></div><div class='k-edit-field'><span class=\"k-textbox k-input k-input-md k-rounded-md k-input-solid\"><input type='text' class='k-input-inner' id='k-editor-link-url'></span></div><div class='k-edit-label k-editor-link-text-row'><label for='k-editor-link-text'>#: messages.linkText #</label></div><div class='k-edit-field k-editor-link-text-row'><span class=\"k-textbox k-input k-input-md k-rounded-md k-input-solid\"><input type='text' class='k-input-inner' id='k-editor-link-text'></span></div><div class='k-edit-label'><label for='k-editor-link-title'>#: messages.linkToolTip #</label></div><div class='k-edit-field'><span class=\"k-textbox k-input k-input-md k-rounded-md k-input-solid\"><input type='text' class='k-input-inner' id='k-editor-link-title'></span></div><div class='k-edit-label'></div><div class='k-edit-field'><input type='checkbox' class='k-checkbox k-checkbox-md k-rounded-md' id='k-editor-link-target'><label for='k-editor-link-target' class='k-checkbox-label'>#: messages.linkOpenInNewWindow #</label></div><div class='k-edit-buttons'><button class=\"k-dialog-insert k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary\"><span class=\"k-button-text\">#: messages.dialogInsert #</span></button><button class=\"k-dialog-close k-button k-button-md k-rounded-md k-button-solid k-button-solid-base\"><span class=\"k-button-text\">#: messages.dialogCancel #</span></button></div></div></div>")({messages:this.editor.options.messages})},exec:function(){var He=this.editor.options.messages;this._initialText="",this._range=this.lockRange(!0),this.formatter.immutables=this.immutables();var Kt=ui(this._range),On=Kt.length?this.formatter.finder.findSuitable(Kt[0]):null,Fi=Kt.length&&"img"==Dt.name(Kt[0]),Ci=this.createDialog(this._dialogTemplate(),{title:He.createLink,close:this._close.bind(this),visible:!1});On&&(this._range.selectNodeContents(On),Kt=ui(this._range)),this._initialText=this.linkText(Kt),Ci.find(".k-dialog-insert").on("click",this._apply.bind(this)).end().find(".k-dialog-close").on("click",this._close.bind(this)).end().find(".k-edit-field input").on("keydown",this._keydown.bind(this)).end().find("#k-editor-link-url").val(this.linkUrl(On)).end().find("#k-editor-link-text").val(this._initialText).end().find("#k-editor-link-title").val(On?On.title:"").end().find("#k-editor-link-target").attr("checked",!!On&&"_blank"==On.target).end().find(".k-editor-link-text-row").toggle(!Fi),this._dialog=Ci.data("kendoWindow").center().open(),vn("#k-editor-link-url",Ci).trigger("focus").select()},_keydown:function(He){var Kt=Ke.keys;He.keyCode==Kt.ENTER?this._apply(He):He.keyCode==Kt.ESC&&this._close(He)},_apply:function(He){var Fi,Ci,xi,Kt=this._dialog.element,On=vn("#k-editor-link-url",Kt).val(),Wn=vn("#k-editor-link-text",Kt);On&&On!=Ht&&(On.indexOf("@")>0&&!/^(\w+:)|(\/\/)/i.test(On)&&(On="mailto:"+On),this.attributes={href:On},(Fi=vn("#k-editor-link-title",Kt).val())&&(this.attributes.title=Fi),Wn.is(":visible")&&((Ci=Ke.trim(Wn.val()))||this._initialText?Ci&&Ci!==this._initialText&&(this.attributes.innerText=Dt.stripBom(Ci)):this.attributes.innerText=On),xi=vn("#k-editor-link-target",Kt).is(":checked"),this.attributes.target=xi?"_blank":null,this.formatter.apply(this._range,this.attributes)),this._close(He),this.change&&this.change()},_close:function(He){He.preventDefault(),this._dialog.destroy(),Dt.windowFromDocument(Hn.documentFromRange(this._range)).focus(),this.releaseRange(this._range)},linkUrl:function(He){return He?He.getAttribute("href",2):Ht},linkText:function(He){var On,Kt="";for(On=0;On<He.length;On++)Kt+=He[On].nodeValue;return Dt.stripBom(Kt||"")},redo:function(){var He=this.lockRange(!0);this.formatter.apply(He,this.attributes),this.releaseRange(He)}}),Ge=Co.extend({init:function(He){Co.fn.init.call(this,He),this.formatter=new $e},exec:function(){var He=this.detectLink();if(He){var Kt=this.getRange(),On=new Ke.ui.editor.Marker,Fi=Kt.cloneRange();Fi.setStart(He.start.node,He.start.offset),Fi.setEnd(He.end.node,He.end.offset),Kt=this.lockRange(),On.add(Fi),this.formatter.apply(Fi,{href:this._ensureWebProtocol(He.text)}),On.remove(Fi),this.releaseRange(Kt)}},detectLink:function(){var He=this.getRange(),Kt=He.startContainer,On=He.startOffset;!Kt.previousSibling&&(Dt.isBom(Kt)&&!Kt.nextSibling||!On&&Dt.isDataNode(Kt))&&(Kt=Kt.parentNode,On=0);var Ci=new Nn({node:Kt,offset:On,cancelAtNode:function(Wn){return Wn&&"a"===Dt.name(Wn)}});return new At(Ci).detectLink()},changesContent:function(){return!!this.detectLink()},_ensureWebProtocol:function(He){return this._hasProtocolPrefix(He)?He:this._prefixWithWebProtocol(He)},_hasProtocolPrefix:function(He){return ft.test(He)},_prefixWithWebProtocol:function(He){return Ht+He}}),Be=Sn.extend({init:function(He){this.options=He,this.finder=new kn([{tags:["a"]}]),Sn.fn.init.call(this,vn.extend(He,{command:Je}))},initialize:function(He,Kt){Sn.fn.initialize.call(this,He,Kt),He.addClass("k-disabled")},update:function(He,Kt){He.toggleClass("k-disabled",!this.finder.isFormatted(Kt)).removeClass("k-hover")}}),At=ze.extend({init:function(He){this.traverser=He,this.start=$t(),this.end=$t(),this.text=""},detectLink:function(){var He=this.traverser.node,Kt=this.traverser.offset;if(Dt.isDataNode(He)){var On=He.data.substring(0,Kt);if(/\s{2}$/.test(Dt.stripBom(On)))return}else if(0===Kt){var Fi=Dt.closestEditableOfType(He,Dt.blockElements);Fi&&Fi.previousSibling&&this.traverser.init({node:Fi.previousSibling})}if(this.traverser.traverse(this._detectEnd.bind(this)),!this.end.blank()&&(this.traverser=this.traverser.clone(this.end),this.traverser.traverse(this._detectStart.bind(this)),!this._isLinkDetected())){var Ci=this.traverser.extendOptions(this.start);new Ae(Ci).traverse(this._skipStartPuntuation.bind(this)),this._isLinkDetected()||(this.start=$t())}return this.start.blank()?null:{start:this.start,end:this.end,text:this.text}},_isLinkDetected:function(){return ft.test(this.text)||/^w{3}\./i.test(this.text)},_detectEnd:function(He,Kt){var On=Rt(He,Nt);if(On>-1)return this.end.node=Kt,this.end.offset=On+1,!1},_detectStart:function(He,Kt){var On=Rt(He,/\s/),Fi=On+1;if(this.text=He.substring(Fi)+this.text,this.start.node=Kt,this.start.offset=Fi,On>-1)return!1},_skipStartPuntuation:function(He,Kt,On){var Fi=function Pt(He,Kt){var On=Kt.exec(He);return On?On.index:-1}(He,/\w/),Ci=Fi;if(-1===Fi&&(Ci=He.length),this.text=this.text.substring(Ci),this.start.node=Kt,this.start.offset=Ci+(0|On),Fi>-1)return!1}});function Rt(He,Kt){for(var On=He.length;On--&&!Kt.test(He[On]););return On}var $t=function(){return{node:null,offset:null,blank:function(){return null===this.node&&null===this.offset}}},Xn=ze.extend({init:function(He){this.node=He.node,this.offset=void 0===He.offset?Dt.isDataNode(this.node)&&this.node.length||0:He.offset,this.cancelAtNode=He.cancelAtNode||this.cancelAtNode||vn.noop},traverse:function(He){He&&(this.cancel=!1,this._traverse(He,this.node,this.offset))},_traverse:function(He,Kt,On){if(Kt&&!this.cancel){if(3!==Kt.nodeType){var Ci=this.edgeNode(Kt);return this.cancel=this.cancel||this.cancelAtNode(Ci),this._traverse(He,Ci)}var Fi=Kt.data;void 0!==On&&(Fi=this.subText(Fi,On)),this.cancel=!1===He(Fi,Kt,On);var xi=this.next(Kt);if(!xi)for(var Wn=Kt.parentNode;!xi&&Dt.isInline(Wn);)xi=this.next(Wn),Wn=Wn.parentNode;this.cancel=this.cancel||this.cancelAtNode(xi),this._traverse(He,xi)}},extendOptions:function(He){return vn.extend({node:this.node,offset:this.offset,cancelAtNode:this.cancelAtNode},He||{})},edgeNode:function(He){},next:function(He){},subText:function(He,Kt){}}),Nn=Xn.extend({subText:function(He,Kt){return He.substring(0,Kt)},next:function(He){return He.previousSibling},edgeNode:function(He){return He.lastChild},clone:function(He){var Kt=this.extendOptions(He);return new Nn(Kt)}}),Ae=Xn.extend({subText:function(He,Kt){return He.substring(Kt)},next:function(He){return He.nextSibling},edgeNode:function(He){return He.firstChild},clone:function(He){var Kt=this.extendOptions(He);return new Ae(Kt)}});St(Ke.ui.editor,{LinkFormatFinder:an,LinkFormatter:$e,UnlinkCommand:Je,LinkCommand:Ve,AutoLinkCommand:Ge,UnlinkTool:Be,DomTextLinkDetection:At,LeftDomTextTraverser:Nn,RightDomTextTraverser:Ae}),en("createLink",new Sn({key:"K",ctrl:!0,command:Ve,template:new Vn({template:Ui.buttonTemplate,title:"Create Link"})})),en("unlink",new Be({key:"K",ctrl:!0,shift:!0,template:new Vn({template:Ui.buttonTemplate,title:"Remove Link"})})),en("autoLink",new Sn({key:[cn.ENTER,cn.SPACEBAR],keyPressCommand:!0,command:Ge}))}.apply(Gn={},ur=[Fo]))&&(ai=Gn),void 0===(Io=function(){var vn=window.kendo.jQuery,Xe=window.kendo,Ke=Xe.Class,ze=vn.extend,St=Xe.ui.editor,it=Xe.ui.Editor.fn.options.formats,Dt=St.Dom,Hn=St.ToolTemplate,Ui=St.FormatTool,Co=St.EditorUtils,Sn=Co.registerTool,Vn=Co.registerFormat,Dn=St.RangeUtils,kn=Ke.extend({init:function(Ht){this.format=Ht},contains:function(Ht,ft){var Nt,an,$e;for(Nt=0,an=ft.length;Nt<an;Nt++)if(!($e=ft[Nt])||!Dt.isAncestorOrSelf(Ht,$e))return!1;return!0},findSuitable:function(Ht){var an,$e,Je,ft=this.format,Nt=[];for(an=0,$e=Ht.length;an<$e;an++){for(var Ve=ft.length-1;Ve>=0&&!(Je=Dt.ofType(Ht[an],ft[Ve].tags)?Ht[an]:Dt.closestEditableOfType(Ht[an],ft[Ve].tags));Ve--);if(!Je||"true"===Je.contentEditable)return[];vn.inArray(Je,Nt)<0&&Nt.push(Je)}for(this._resolveListsItems(Nt),an=0,$e=Nt.length;an<$e;an++)if(this.contains(Nt[an],Nt))return[Nt[an]];return Nt},_resolveListsItems:function(Ht){var ft,Nt,an;for(ft=0;ft<Ht.length;ft++)an=(an=Dt.is(Nt=Ht[ft],"li")?Nt:Dt.wrapper(Nt))&&Dt.list(an)?an.children[0]:an,Dt.is(an,"li")&&(Nt=Ht[ft]=an)},findFormat:function(Ht,ft){var an,$e,Je,Ve,Ge,Nt=this.format,Be=Dt.editableParent(Ht),At=this.options&&this.options.immutables,Rt=St.Immutables;for(an=0,$e=Nt.length;an<$e;an++){if(Je=Ht,Ve=Nt[an].tags,Ge=Nt[an].attr,At&&Ve&&"immutable"==Ve[0]){var Pt=Rt.immutableParent(Je);if(Pt&&Dt.attrEquals(Pt,Ge))return Je}for(;Je&&Dt.isAncestorOf(Be,Je);){if(Dt.ofType(Je,Ve)&&Dt.attrEquals(Je,Ge))return Je;if(ft&&ft(Je))break;Je=Je.parentNode}}return null},getFormat:function(Ht){var $e,Je,ft=this,Nt=function(Ve){return ft.findFormat(Dt.isDataNode(Ve)?Ve.parentNode:Ve)},an=Nt(Ht[0]);if(!an)return"";for($e=1,Je=Ht.length;$e<Je;$e++)if(an!=Nt(Ht[$e]))return"";return an.nodeName.toLowerCase()},isFormatted:function(Ht,ft){for(var Nt=0,an=Ht.length;Nt<an;Nt++)if(!this.findFormat(Ht[Nt],ft))return!1;return!0}}),ui=Ke.extend({init:function(Ht,ft){this.format=Ht,this.values=ft,this.finder=new kn(Ht)},wrap:function(Ht,ft,Nt){var an=1==Nt.length?Dt.blockParentOrBody(Nt[0]):Dt.commonAncestor.apply(null,Nt);Dt.isInline(an)&&(an=Dt.blockParentOrBody(an));var Ge,Be,$e=Dt.significantChildNodes(an),Je=Dt.findNodeIndex($e[0]),Ve=Dt.create(an.ownerDocument,Ht,ft);for(Ge=0;Ge<$e.length;Ge++)Dt.isBlock(Be=$e[Ge])?(Dt.attr(Be,ft),Ve.childNodes.length&&(Dt.insertBefore(Ve,Be),Ve=Ve.cloneNode(!1)),Je=Dt.findNodeIndex(Be)+1):Ve.appendChild(Be);Ve.firstChild&&Dt.insertAt(an,Ve,Je)},apply:function(Ht){var ft,Nt=this.values;function an(Pt){return ze({},Pt&&Pt.attr,Nt)}this._handleImmutables(Ht,!0);var $e=Dt.filter("img",Ht),Ve=an(Co.formatByName("img",this.format));if(vn.each($e,function(){Dt.attr(this,Ve)}),$e.length!=Ht.length){var Ge=Dt.filter("img",Ht,!0),Be=this.finder.findSuitable(Ge);if(Be.length)for(var At=0,Rt=Be.length;At<Rt;At++)ft=Co.formatByName(Dt.name(Be[At]),this.format),Dt.attr(Be[At],an(ft));else this.wrap((ft=this.format[0]).tags[0],an(ft),Ge)}},_handleImmutables:function(Ht,ft){if(this.immutables()){var Nt=Co.formatByName("immutable",this.format);if(Nt)for(var an=St.Immutables,Je=Ht.length-1;Je>=0;Je--){var Ve=an.immutableParent(Ht[Je]);Ve&&(Ve!==Ht[Je+1]&&(ft?Dt.attr(Ve,Nt.attr):Dt.unstyle(Ve,Nt.attr.style)),Ht.splice(Je,1))}}},immutables:function(){return this.editor&&this.editor.options.immutables},remove:function(Ht){var ft,Nt,an,$e,Je;for(this._handleImmutables(Ht,!1),ft=0,Nt=Ht.length;ft<Nt;ft++)(an=this.finder.findFormat(Ht[ft]))&&(Je=Dt.name(an),($e=Co.formatByName(Je,this.format)).attr.style&&Dt.unstyle(an,$e.attr.style),$e.attr.className&&Dt.removeClass(an,$e.attr.className))},toggle:function(Ht){var Nt=Dt.filterBy(Dn.nodes(Ht),Dt.htmlIndentSpace,!0);this.finder.isFormatted(Nt)?this.remove(Nt):this.apply(Nt)}}),Ot=Ke.extend({init:function(Ht,ft){this.format=Ht,this.values=ft,this.finder=new kn(Ht)},apply:function(Ht){var $e,Je,Ge,Be,At,Rt,Pt,ft=this.format,Nt=Dt.blockParents(Ht),an=ft[0].tags[0];if(Nt.length)for($e=0,Je=Nt.length;$e<Je;$e++)Pt=Nt[$e],this.immutables()&&St.Immutables.immutableParent(Pt)||("li"==(Rt=Dt.name(Pt))?(Ge=new St.ListFormatter(Pt.parentNode.nodeName.toLowerCase(),an),(Be=this.editor.createRange()).selectNode(Nt[$e]),Ge.toggle(Be)):an&&("td"==Rt||Pt.attributes.contentEditable)?new ui(ft,this.values).apply(Pt.childNodes):(At=Dt.changeTag(Pt,an),Dt.attr(At,ft[0].attr)));else{var Xn=new ui(ft,this.values);Xn.editor=this.editor,Xn.apply(Ht)}},toggle:function(Ht){var ft=Dn.textNodes(Ht);ft.length||(Ht.selectNodeContents(Ht.commonAncestorContainer),(ft=Dn.textNodes(Ht)).length||(ft=Dt.significantChildNodes(Ht.commonAncestorContainer))),this.apply(ft)},immutables:function(){return this.editor&&this.editor.options.immutables}}),en=Ui.extend({init:function(Ht){Ui.fn.init.call(this,ze(Ht,{finder:new kn(Ht.format),formatter:function(){return new ui(Ht.format)}}))}}),cn=(ze(St,{BlockFormatFinder:kn,BlockFormatter:ui,GreedyBlockFormatter:Ot,BlockFormatTool:en}),["ul","ol","li"]);Vn("justifyLeft",[{tags:Dt.nonListBlockElements,attr:{style:{textAlign:"left"}}},{tags:["img"],attr:{style:{float:"left",display:"",marginLeft:"",marginRight:""}}},{tags:["immutable"],attr:{style:{float:"left",display:"",marginLeft:"",marginRight:""}}},{tags:cn,attr:{style:{textAlign:"left",listStylePosition:""}}}]),Sn("justifyLeft",new en({format:it.justifyLeft,template:new Hn({template:Co.buttonTemplate,title:"Justify Left"})})),Vn("justifyCenter",[{tags:Dt.nonListBlockElements,attr:{style:{textAlign:"center"}}},{tags:["img"],attr:{style:{display:"block",marginLeft:"auto",marginRight:"auto",float:""}}},{tags:["immutable"],attr:{style:{display:"block",marginLeft:"auto",marginRight:"auto",float:""}}},{tags:cn,attr:{style:{textAlign:"center",listStylePosition:"inside"}}}]),Sn("justifyCenter",new en({format:it.justifyCenter,template:new Hn({template:Co.buttonTemplate,title:"Justify Center"})})),Vn("justifyRight",[{tags:Dt.nonListBlockElements,attr:{style:{textAlign:"right"}}},{tags:["img"],attr:{style:{float:"right",display:"",marginLeft:"",marginRight:""}}},{tags:["immutable"],attr:{style:{float:"right",display:"",marginLeft:"",marginRight:""}}},{tags:cn,attr:{style:{textAlign:"right",listStylePosition:"inside"}}}]),Sn("justifyRight",new en({format:it.justifyRight,template:new Hn({template:Co.buttonTemplate,title:"Justify Right"})})),Vn("justifyFull",[{tags:Dt.nonListBlockElements,attr:{style:{textAlign:"justify"}}},{tags:["img"],attr:{style:{display:"block",marginLeft:"auto",marginRight:"auto",float:""}}},{tags:["immutable"],attr:{style:{display:"block",marginLeft:"auto",marginRight:"auto",float:""}}},{tags:cn,attr:{style:{textAlign:"justify",listStylePosition:""}}}]),Sn("justifyFull",new en({format:it.justifyFull,template:new Hn({template:Co.buttonTemplate,title:"Justify Full"})}))}.apply(wr={},ur=[as]))&&(Io=wr),void 0===(bs=function(){var vn=window.kendo.jQuery,Xe=window.kendo,Ke=Xe.Class,ze=vn.extend,St=Xe.ui.editor,it=St.Dom,Dt=St.RangeUtils,Hn=St.EditorUtils,Ui=St.Command,Co=St.ToolTemplate,Sn=St.FormatTool,Vn=St.BlockFormatFinder,Dn=Dt.textNodes,kn=St.EditorUtils.registerTool,ui=Vn.extend({init:function(Ht){this.tag=Ht.tag,this.attr=Ht.attr,this.altAttr=Ht.altAttr;var ft=this.tags=["ul"==this.tag?"ol":"ul",this.tag],Nt=[{tags:ft,attr:this.attr}];this.altAttr&&Nt.push({tags:ft,attr:this.altAttr}),Vn.fn.init.call(this,Nt)},matchesType:function(Ht){return it.attrEquals(Ht,this.attr)||this.altAttr&&it.attrEquals(Ht,this.altAttr)},isList:function(Ht){return it.list(Ht)},isFormatted:function(Ht){var Nt,an,ft=[];for(an=0;an<Ht.length;an++)(Nt=this.findFormat(Ht[an],this.isList))&&it.name(Nt)==this.tag&&this.matchesType(Nt)&&ft.push(Nt);if(ft.length<1||ft.length!=Ht.length)return!1;for(an=0;an<ft.length&&ft[an].parentNode==Nt.parentNode;an++)if(ft[an]!=Nt)return!1;return!0},findSuitable:function(Ht){var ft=this.findFormat(Ht[0],this.isList);return ft&&it.name(ft)==this.tag?ft:null}}),Ot=Ke.extend({init:function(Ht,ft){Ht=vn.isPlainObject(Ht)?Ht:{tag:Ht,attr:null},this.tag=Ht.tag,this.attr=Ht.attr,this.finder=new ui(Ht),this.unwrapTag=ft},isList:function(Ht){return it.list(Ht)},immutables:function(){return this.editor&&!!this.editor.options.immutables},wrap:function(Ht,ft){var an,$e,Nt=it.create(Ht.ownerDocument,"li"),Je=this.immutables()?St.Immutables.immutable:vn.noop;for(an=0;an<ft.length;an++)if(it.is($e=ft[an],"li"))Ht.appendChild($e);else if(this.isList($e))for(;$e.firstChild;)Ht.appendChild($e.firstChild);else if(it.is($e,"td")){for(;$e.firstChild;)Nt.appendChild($e.firstChild);Ht.appendChild(Nt),$e.appendChild(Ht),Ht=Ht.cloneNode(!1),Nt=Nt.cloneNode(!1)}else Nt.appendChild($e),it.isBlock($e)&&(Ht.appendChild(Nt),Je($e)||it.unwrap($e),Nt=Nt.cloneNode(!1));Nt.firstChild&&Ht.appendChild(Nt)},containsAny:function(Ht,ft){for(var Nt=0;Nt<ft.length;Nt++)if(it.isAncestorOrSelf(Ht,ft[Nt]))return!0;return!1},suitable:function(Ht,ft){if("k-marker"==Ht.className){var Nt=Ht.nextSibling;if(Nt&&it.isBlock(Nt)||(Nt=Ht.previousSibling)&&it.isBlock(Nt))return!1}return this.containsAny(Ht,ft)||it.isInline(Ht)||3==Ht.nodeType},_parentLists:function(Ht){var ft=it.closestEditable(Ht);return vn(Ht).parentsUntil(ft,"ul,ol")},split:function(Ht){var Nt,an,$e,ft=Dn(Ht);if(ft.length){Nt=it.parentOfType(ft[0],["li"]),an=it.parentOfType(ft[ft.length-1],["li"]),Ht.setStartBefore(Nt),Ht.setEndAfter(an);for(var Je=0,Ve=ft.length;Je<Ve;Je++){var Ge=this.finder.findFormat(ft[Je]);Ge&&($e=this._parentLists(Ge),Dt.split(Ht,$e.length?$e.last()[0]:Ge,!0))}}},merge:function(Ht,ft){for(var an,Nt=ft.previousSibling;Nt&&("k-marker"==Nt.className||3==Nt.nodeType&&it.isWhitespace(Nt));)Nt=Nt.previousSibling;if(Nt&&it.name(Nt)==Ht&&this.finder.matchesType(Nt)){for(;ft.firstChild;)Nt.appendChild(ft.firstChild);it.remove(ft),ft=Nt}for(an=ft.nextSibling;an&&("k-marker"==an.className||3==an.nodeType&&it.isWhitespace(an));)an=an.nextSibling;if(an&&it.name(an)==Ht&&this.finder.matchesType(an)){for(;ft.lastChild;)an.insertBefore(ft.lastChild,an.firstChild);it.remove(ft)}},breakable:function(Ht){return Ht!=Ht.ownerDocument.body&&!/table|tbody|thead|tr|td/.test(it.name(Ht))&&!Ht.attributes.contentEditable},findSuitableNode:function(Ht){var $e,Nt=this.finder,an=this.tag;return($e=Nt.findSuitable(Ht))||($e=(Nt=new ui({tag:"ul"==an?"ol":"ul"})).findSuitable(Ht)),$e||($e=($e=(Nt=new ui({tag:an})).findSuitable(Ht))&&this.finder.matchesType($e)?null:$e),$e},applyOnSection:function(Ht,ft){var Ge,Nt=this.tag,an=this.attr,$e=it.closestSplittableParent(ft),Je=[],Ve=this.findSuitableNode(ft);function Be(){Je.push(this)}/table|tbody|thead/.test(it.name($e))?Ge=vn.map(ft,function($t){return it.parentOfType($t,["td"])}):(Ge=it.significantChildNodes($e),vn.grep(Ge,it.isBlock).length&&(Ge=vn.grep(Ge,function($t){return this.containsAny($t,ft)}.bind(this))),Ge.length||(Ge=ft));for(var At=0;At<Ge.length;At++){var Rt=Ge[At];(!Ve||!it.isAncestorOrSelf(Ve,Rt))&&this.suitable(Rt,ft)&&(Ve&&this.isList(Rt)?(vn.each(Rt.children,Be),it.remove(Rt)):Je.push(Rt))}for(Je.length==Ge.length&&this.breakable($e)&&(Je=[$e]),Ve||(Ve=it.create($e.ownerDocument,Nt,an),it.isBlock(Je[0])&&it.mergeAttributes(Je[0],Ve),it.insertBefore(Ve,Je[0])),this.wrap(Ve,Je);it.isBom(Ve.nextSibling);)it.remove(Ve.nextSibling);this.finder.matchesType(Ve)||(Ve.removeAttribute("type"),Ve.style.listStyleType="",it.mergeAttributes(it.create($e.ownerDocument,Nt,an),Ve,!0)),Ve&&""===Ve.getAttribute("type")&&Ve.removeAttribute("type"),it.is(Ve,Nt)||it.changeTag(Ve,Nt),this.merge(Nt,Ve)},apply:function(Ht){var an,$e,Je,Ve,ft=0,Nt=[],Ge=Ht.length,Be=this.immutables()?St.Immutables.immutableParent:vn.noop;function At(){an&&Nt.push({section:an,nodes:$e})}for(ft=0;ft<Ge;ft++)Ve=Be(Ht[ft])||Ht[ft],Je=it.closestEditable(Ve,["td","th","body"]),an&&Je==an?$e.push(Ve):(At(),$e=[Ve],an=Je);for(At(),ft=0;ft<Nt.length;ft++)this.applyOnSection(Nt[ft].section,Nt[ft].nodes)},unwrap:function(Ht){var an,$e,Je,Ve,ft=Ht.ownerDocument.createDocumentFragment(),Nt=this.unwrapTag;for($e=Ht.firstChild;$e;$e=$e.nextSibling){for(Je=it.create(Ht.ownerDocument,Nt||"p");$e.firstChild;)it.isBlock(Ve=$e.firstChild)?(Je.firstChild&&(ft.appendChild(Je),Je=it.create(Ht.ownerDocument,Nt||"p")),ft.appendChild(Ve)):Je.appendChild(Ve);Je.firstChild&&ft.appendChild(Je)}(an=this._parentLists(Ht))[0]?(it.insertAfter(ft,an.last()[0]),an.last().remove()):it.insertAfter(ft,Ht),it.remove(Ht)},remove:function(Ht){for(var ft,Nt=0,an=Ht.length;Nt<an;Nt++)(ft=this.finder.findFormat(Ht[Nt]))&&this.unwrap(ft)},toggle:function(Ht){var Nt=Dn(Ht),an=Ht.commonAncestorContainer;if(!Nt.length&&(Ht.selectNodeContents(an),!(Nt=Dn(Ht)).length)){var $e=an.ownerDocument.createTextNode("");Ht.startContainer.appendChild($e),Nt=[$e],Ht.selectNode($e.parentNode)}Nt=it.filterBy(Nt,it.htmlIndentSpace,!0),this.finder.isFormatted(Nt)?(this.split(Ht),this.remove(Nt)):this.apply(Nt)}}),en=Ui.extend({init:function(Ht){Ht.formatter=new Ot({tag:Ht.tag,attr:Ht.attr}),Ui.fn.init.call(this,Ht)}}),cn=Sn.extend({init:function(Ht){this.options=Ht,Sn.fn.init.call(this,ze(Ht,{finder:new ui(Ht)}))},command:function(Ht){return new en(ze(Ht,{tag:this.options.tag,attr:this.options.attr}))}});ze(St,{ListFormatFinder:ui,ListFormatter:Ot,ListCommand:en,ListTool:cn}),kn("insertUnorderedList",new cn({tag:"ul",attr:{style:{listStyleType:""},type:""},template:new Co({template:Hn.buttonTemplate,title:"Insert unordered list"})})),kn("insertOrderedList",new cn({tag:"ol",attr:{style:{listStyleType:""},type:""},template:new Co({template:Hn.buttonTemplate,title:"Insert ordered list"})})),kn("insertUpperRomanList",new cn({tag:"ol",attr:{style:{listStyleType:"upper-roman"}},altAttr:{type:"I"},template:new Co({template:Hn.buttonTemplate,title:"Insert upper roman list"})})),kn("insertLowerRomanList",new cn({tag:"ol",attr:{style:{listStyleType:"lower-roman"}},altAttr:{type:"i"},template:new Co({template:Hn.buttonTemplate,title:"Insert lower roman list"})}))}.apply(ba={},ur=[Io]))&&(bs=ba),void 0===(ms=function(){var vn=window.kendo.jQuery,Xe=window.kendo,Ke=Xe.ui.editor,ze=Ke.Tool,St=Ke.ToolTemplate,it=Ke.DelayedExecutionTool,Dt=Ke.Command,Hn=Ke.Dom,Ui=Ke.EditorUtils,Co=Ke.RangeUtils,Sn=Ui.registerTool,Vn=it.extend({init:function(ui){ze.fn.init.call(this,Xe.deepExtend({},this.options,ui)),this.type="kendoSelectBox",this.finder={getFormat:function(){return""}}},options:{items:[{text:"Paragraph",value:"p"},{text:"Quotation",value:"blockquote"},{text:"Heading 1",value:"h1"},{text:"Heading 2",value:"h2"},{text:"Heading 3",value:"h3"},{text:"Heading 4",value:"h4"},{text:"Heading 5",value:"h5"},{text:"Heading 6",value:"h6"}],width:110},toFormattingItem:function(ui){var Ot=ui.value;if(!Ot||ui.tag||ui.className)return ui;var en=Ot.indexOf(".");return 0===en?ui.className=Ot.substring(1):-1==en?ui.tag=Ot:(ui.tag=Ot.substring(0,en),ui.className=Ot.substring(en+1)),ui},command:function(ui){var Ot=this,en=ui.value;return en=this.toFormattingItem(en),new Ke.FormatCommand({range:ui.range,formatter:function(){var cn,Ht=(en.tag||en.context||"span").split(","),ft=[{tags:Ht,attr:{className:en.className||""}}];return(cn=vn.inArray(Ht[0],Hn.inlineElements)>=0?new Ke.GreedyInlineFormatter(ft):new Ke.GreedyBlockFormatter(ft)).editor=Ot.editor,cn}})},initialize:function(ui,Ot){var Nt,en=Ot.editor,cn=this.options,Ht=cn.name,ft=this;ft.editor=en,ui.width(cn.width),Nt=ui.kendoSelectBox({autoWidth:!0,dataTextField:"text",dataValueField:"value",dataSource:cn.items||en.options[Ht],title:en.options.messages[Ht],autoSize:!0,change:function(){var an=this.dataItem();an&&ze.exec(en,Ht,an.toJSON())},dataBound:function(){var an,$e=this.dataSource.data();for(an=0;an<$e.length;an++)$e[an]=ft.toFormattingItem($e[an])},highlightFirst:!1,template:Xe.template('<span unselectable="on" style="display:block;#=(data.style||"")#">#:data.text#</span>')}).data("kendoSelectBox"),ui.attr("title",Ot.title),Nt.wrapper.attr("title",Ot.title),ui.addClass("k-decorated").closest(".k-dropdownlist, .k-combobox").removeClass("k-"+Ht).find("*").addBack().attr("unselectable","on")},getFormattingValue:function(ui,Ot){for(var en=0;en<ui.length;en++){var cn=ui[en],Nt=(cn.tag||cn.context||"")+(cn.className?"."+cn.className:"");if(vn(Ot[0]).closest(Nt)[0]){if(1==Ot.length)return cn.value;for(var $e=1;$e<Ot.length&&vn(Ot[$e]).closest(Nt)[0];$e++)if($e==Ot.length-1)return cn.value}}return""},update:function(ui,Ot){var en=vn(ui).data(this.type);if(en){var ft,Nt,cn=en.dataSource,Ht=cn.data(),an=Hn.commonAncestor.apply(null,Ot);if(an==Hn.closestEditable(an)||this._ancestor!=an){for(this._ancestor=an,ft=0;ft<Ht.length;ft++)Ht[ft].visible=!(Nt=Ht[ft].context)||!!vn(an).closest(Nt).length;cn.filter([{field:"visible",operator:"eq",value:!0}]),it.fn.update.call(this,ui,Ot),en.value(this.getFormattingValue(cn.view(),Ot)),en.wrapper.toggleClass("k-disabled",!cn.view().length)}}},destroy:function(){this._ancestor=null}}),Dn=Dt.extend({exec:function(){var ui=this.lockRange(!0);this.tagsToClean=this.options.remove||"strong,em,span,sup,sub,del,b,i,u,font".split(","),Co.wrapSelectedElements(ui);for(var Ot=Co.mapAll(ui,function(Ht){return Ht}),en=Ot.length-1;en>=0;en--){var cn=Ot[en];this.immutableParent(cn)||this.clean(cn)}this.releaseRange(ui)},clean:function(ui){if(ui&&!Hn.isMarker(ui)){var Ot=Hn.name(ui);if("ul"==Ot||"ol"==Ot){var en=new Ke.ListFormatter(Ot),cn=ui.previousSibling,Ht=ui.nextSibling;for(en.unwrap(ui);cn&&cn!=Ht;cn=cn.nextSibling)this.clean(cn)}else if("blockquote"==Ot)Hn.changeTag(ui,"p");else if(1!=ui.nodeType||Hn.insignificant(ui))!function kn(ui){var Ot=Hn.closestEditableOfType(ui,["li"]);if(Ot){var en=new Ke.ListFormatter(Hn.name(Ot.parentNode)),cn=Xe.ui.editor.W3CRange.fromNode(ui);cn.selectNode(Ot),en.toggle(cn)}}(ui);else{for(var ft=ui.childNodes.length-1;ft>=0;ft--)this.clean(ui.childNodes[ft]);ui.removeAttribute("style"),ui.removeAttribute("class")}vn.inArray(Ot,this.tagsToClean)>-1&&Hn.unwrap(ui)}},immutableParent:function(ui){return this.immutables()&&Ke.Immutables.immutableParent(ui)}});vn.extend(Ke,{FormattingTool:Vn,CleanFormatCommand:Dn}),Sn("formatting",new Vn({template:new St({template:Ui.dropDownListTemplate,title:"Format"})})),Sn("cleanFormatting",new ze({command:Dn,template:new St({template:Ui.buttonTemplate,title:"Clean formatting"})}))}.apply(Oa={},ur=[Fo]))&&(ms=Oa),void 0===(Ea=function(){var vn=window.kendo.jQuery,Ke=window.kendo,ze=vn.extend,St=Ke.ui.editor,it=St.EditorUtils,Dt=St.Dom,Hn=it.registerTool,Ui=St.ToolTemplate,Co=St.RangeUtils,Sn=St.Command,Vn=Ke.keys,Dn="#k-editor-image-url",kn="#k-editor-image-title",ui="#k-editor-image-width",Ot="#k-editor-image-height",en=Sn.extend({init:function(cn){Sn.fn.init.call(this,cn),this.async=!0,this.attributes={}},insertImage:function(cn,Ht){var ft=this.attributes,Nt=Co.documentFromRange(Ht);if(ft.src&&"http://"!=ft.src){var an=function(){setTimeout(function(){ft.width||cn.removeAttribute("width"),ft.height||cn.removeAttribute("height"),cn.removeAttribute("complete")})};if(!cn)return(cn=Dt.create(Nt,"img",ft)).onload=cn.onerror=an,Ht.deleteContents(),Ht.insertNode(cn),cn.nextSibling||Dt.insertAfter(Nt.createTextNode("\ufeff"),cn),an(),Ht.setStartAfter(cn),Ht.setEndAfter(cn),Co.selectRange(Ht),!0;cn.onload=cn.onerror=an,Dt.attr(cn,ft),an()}return!1},_dialogTemplate:function(cn){return Ke.template('<div class="k-editor-dialog k-popup-edit-form"><div class="k-edit-form-container"><div class="k-edit-form-content"># if (showBrowser) { #<div class="k-filebrowser k-imagebrowser"></div># } #<div class=\'k-edit-label\'><label for="k-editor-image-url">#: messages.imageWebAddress #</label></div><div class=\'k-edit-field\'><span class="k-textbox k-input k-input-md k-rounded-md k-input-solid"><input type="text" class="k-input-inner" id="k-editor-image-url"></span></div><div class=\'k-edit-label\'><label for="k-editor-image-title">#: messages.imageAltText #</label></div><div class=\'k-edit-field\'><span class="k-textbox k-input k-input-md k-rounded-md k-input-solid"><input type="text" class="k-input-inner" id="k-editor-image-title"></span></div><div class=\'k-edit-label\'><label for="k-editor-image-width">#: messages.imageWidth #</label></div><div class=\'k-edit-field\'><span class="k-textbox k-input k-input-md k-rounded-md k-input-solid"><input type="text" class="k-input-inner" id="k-editor-image-width"></span></div><div class=\'k-edit-label\'><label for="k-editor-image-height">#: messages.imageHeight #</label></div><div class=\'k-edit-field\'><span class="k-textbox k-input k-input-md k-rounded-md k-input-solid"><input type="text" class="k-input-inner" id="k-editor-image-height"></span></div></div><div class="k-edit-buttons"><button class="k-dialog-insert k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary"><span class="k-button-text">#: messages.dialogInsert #</span></button><button class="k-dialog-close k-button k-button-md k-rounded-md k-button-solid k-button-solid-base"><span class="k-button-text">#: messages.dialogCancel #</span></button></div></div></div>')({messages:this.editor.options.messages,showBrowser:cn})},redo:function(){var Ht=this.lockRange();this.insertImage(Co.image(Ht),Ht)||this.releaseRange(Ht)},exec:function(){var Je,cn=this,Ht=cn.lockRange(),ft=!1,Nt=Co.image(Ht),an=Nt&&Nt.getAttribute("width")||"",$e=Nt&&Nt.getAttribute("height")||"",Ve=Ke.support.browser.msie,Ge=cn.editor.options,At=Ge.imageBrowser,Rt=!!(Ke.ui.ImageBrowser&&At&&At.transport&&void 0!==At.transport.read),Pt={title:Ge.messages.insertImage,visible:!1,resizable:Rt};function $t(Kt){var On=Je.element,Fi=parseInt(On.find(ui).val(),10),Ci=parseInt(On.find(Ot).val(),10);cn.attributes={src:On.find(Dn).val().replace(/ /g,"%20"),alt:On.find(kn).val()},cn.attributes.width=null,cn.attributes.height=null,!isNaN(Fi)&&Fi>0&&(cn.attributes.width=Fi),!isNaN(Ci)&&Ci>0&&(cn.attributes.height=Ci),ft=cn.insertImage(Nt,Ht),Xn(Kt),cn.change&&cn.change()}function Xn(Kt){Kt.preventDefault(),Je.destroy(),Dt.windowFromDocument(Co.documentFromRange(Ht)).focus(),ft||cn.releaseRange(Ht)}this.expandImmutablesIn(Ht),Pt.close=Xn,Rt&&(Pt.width=750);var Ae=(Je=this.createDialog(cn._dialogTemplate(Rt),Pt).toggleClass("k-filebrowser-dialog",Rt).find(".k-dialog-insert").on("click",$t).end().find(".k-dialog-close").on("click",Xn).end().find(".k-edit-field input").on("keydown",function Nn(Kt){Kt.keyCode==Vn.ENTER?$t(Kt):Kt.keyCode==Vn.ESC&&Xn(Kt)}).end().find(Dn).val(Nt?Nt.getAttribute("src",2):"http://").end().find(kn).val(Nt?Nt.alt:"").end().find(ui).val(an).end().find(Ot).val($e).end().data("kendoWindow")).element;if(Rt&&(this._imageBrowser=new Ke.ui.ImageBrowser(Ae.find(".k-imagebrowser"),ze({},At)),this._imageBrowser.bind("change",function(Kt){"f"===Kt.selected.get("type")&&Ae.find(Dn).val(this.value())}),this._imageBrowser.bind("apply",$t)),Ve){var He=Ae.closest(".k-window").height();Ae.css("max-height",He)}Je.center().open(),Ae.find(Dn).trigger("focus").select()}});Hn("insertImage",new St.Tool({command:Ke.ui.editor.ImageCommand=en,template:new Ui({template:it.buttonTemplate,title:"Insert Image"})}))}.apply(Sa={},ur=[Pi,Bi]))&&(Ea=Sa),void 0===(tr=function(){var vn=window.kendo.jQuery,Ke=window.kendo,ze=vn.extend,St=Ke.ui.editor,it=St.EditorUtils,Hn=St.Tool,Ui=it.registerTool,Co=St.ToolTemplate,Sn='<div contenteditable="false" class="k-loading-mask" style="width: 100%; height: 100%; position: absolute; top: 0px; left: 0px;"><div class="k-loading-image"></div><div class="k-loading-color"></div></div>',Vn=St.Command.extend({exec:function(){(this.editor._uploadWidget||this._initializeUploadWidget()).element.click()},_initializeUploadWidget:function(){var Dn=this,kn=Dn.editor,ui=kn.options.import,Ot=vn('<input id="editorImport" name="files" type="file" />').kendoUpload({success:Dn._onUploadSuccess.bind(Dn),progress:Dn._onUploadProgress.bind(Dn),select:Dn._onUploadSelect.bind(Dn),error:Dn._onUploadError.bind(Dn),complete:Dn._onUploadComplete.bind(Dn),showFileList:!1,multiple:!1,async:{saveUrl:ui.proxyURL,autoUpload:!0,saveField:"file"},validation:{allowedExtensions:ui.allowedExtensions,maxFileSize:ui.maxFileSize}}).getKendoUpload();return kn._uploadWidget=Ot,Ot},_onUploadComplete:function(Dn){this._trigger("complete",Dn),Dn.sender.clearAllFiles(),this._removeLoadingOverlay()},_onUploadSuccess:function(Dn){this.editor.value(Dn.response.html.replace(/<\/?body>/gi,"")),this._trigger("success",Dn)},_onUploadProgress:function(Dn){this._trigger("progress",Dn)},_onUploadSelect:function(Dn){this._trigger("select",Dn),Dn.files[0].validationErrors||this._initLoadingOverlay()},_onUploadError:function(Dn){this._trigger("error",Dn)},_trigger:function(Dn,kn){var ui=this.editor,Ot=ui.options.import;"function"==typeof Ot[Dn]&&Ot[Dn].call(ui,kn)},_initLoadingOverlay:function(){var Dn=this.editor.body;St.Dom.is(Dn,"body")?this._iframeWrapper=this._container=this.editor.wrapper.find("iframe").parent().css({position:"relative"}).append(Sn):this._container=vn(Dn).append(Sn),Ke.ui.progress(this._container,!0)},_removeLoadingOverlay:function(){Ke.ui.progress(this._container,!1),vn(this._iframeWrapper).css({position:""}),delete this._container,delete this._iframeWrapper}});ze(St,{ImportCommand:Vn}),Ui("import",new Hn({command:Vn,template:new Co({template:it.iconTextButtonTemplate,title:"Import"})}))}.apply(Mr={},ur=[wi]))&&(tr=Mr),void 0===(Li=function(){var vn=window.kendo.jQuery,Ke=window.kendo.ui.editor,ze=Ke.Command,St=Ke.GenericCommand,it=Ke.EditorUtils,Dt=it.registerTool,Hn=Ke.Tool,Ui=Ke.ToolTemplate,Co=Ke.RestorePoint,Sn=vn.extend,Vn=ze.extend({init:function(kn){ze.fn.init.call(this,kn),this.managesUndoRedo=!0},exec:function(){var kn=this.editor,ui=this.options,Ot=ui.range,en=kn.body,cn=new Co(Ot,en),Ht=ui.html||ui.value||"";kn.selectRange(Ot),kn.clipboard.paste(Ht,ui),ui.postProcess&&ui.postProcess(kn,kn.getRange());var ft=new St(cn,new Co(kn.getRange(),en));ft.editor=kn,kn.undoRedoStack.push(ft),kn.focus()}}),Dn=Hn.extend({initialize:function(kn,ui){var Ot=ui.editor,en=this.options;this._selectBox=new Ke.SelectBox(kn,{dataSource:en.items?en.items:Ot.options.insertHtml,dataTextField:"text",dataValueField:"value",change:function(){Hn.exec(Ot,"insertHtml",this.value())},title:Ot.options.messages.insertHtml,highlightFirst:!1}),kn.attr("title",ui.title),this._selectBox.wrapper.attr("title",ui.title)},command:function(kn){return new Vn(kn)},update:function(kn){var ui=kn.data("kendoSelectBox")||kn.find("select").data("kendoSelectBox");ui.close(),ui.value(ui.options.title)}});Sn(Ke,{InsertHtmlCommand:Vn,InsertHtmlTool:Dn}),Dt("insertHtml",new Dn({template:new Ui({template:it.dropDownListTemplate,title:"Insert HTML",initialValue:"Insert HTML"})}))}.apply(Ao={},ur=[Bi]))&&(Li=Ao),void 0===(ao=function(){var vn=window.kendo.jQuery,Ke=window.kendo,ze=vn.extend,St=Ke.ui.editor,it=St.EditorUtils,Dt=St.Command,Hn=St.Tool,Ui=it.registerTool,Co=St.ToolTemplate,Vn=Dt.extend({init:function(kn){this.options=kn,Dt.fn.init.call(this,kn),this.attributes=null,this.exportType=kn.exportType},exec:function(){var ui=this.lockRange(!0);this.postToProxy(),this.releaseRange(ui)},postToProxy:function(){this.generateForm().appendTo("body").submit().remove()},generateForm:function(){var ui=this.editor.options.exportAs,Ot=vn("<form>").attr({action:ui&&ui.proxyURL||"",method:"POST"});return Ot.append([this.valueInput(),this.exportTypeInput(),this.fileNameInput()]),Ot},valueInput:function(){var kn=this.editor;return vn("<input>").attr({value:kn.encodedValue(),name:"value",type:"hidden"})},exportTypeInput:function(){return vn("<input>").attr({value:this.exportType,name:"exportType",type:"hidden"})},fileNameInput:function(){var kn=this.editor,ui=kn.options.exportAs,Ot=ui&&ui.fileName||kn.element.attr("id")||"editor";return vn("<input>").attr({value:Ot,name:"fileName",type:"hidden"})}}),Dn=Hn.extend({init:function(kn){Hn.fn.init.call(this,Ke.deepExtend({},this.options,kn)),this.type="kendoSelectBox"},options:{items:[{text:"Docx",value:"docx"},{text:"Rtf",value:"rtf"},{text:"Pdf",value:"pdf"},{text:"Html",value:"html"},{text:"Plain Text",value:"txt"}],width:140},command:function(kn){return new St.ExportAsCommand({range:kn.range,exportType:kn.value.exportType})},initialize:function(kn,ui){var $e,en=ui.editor,cn=this.options,Ht=cn.name,ft=this.changeHandler.bind(this),Nt=cn.items||en.options[Ht],an=en.options.messages[Ht];Nt.unshift({text:an,value:""}),this.editor=en,kn.width(cn.width),$e=kn.kendoSelectBox({dataTextField:"text",dataValueField:"value",dataSource:Nt,autoSize:!0,change:ft,open:function(Je){var Ve=Je.sender;Ve.items()[0].style.display="none",Ve.unbind("open")},highlightFirst:!1,template:Ke.template('<span unselectable="on" style="display:block;#=(data.style||"")#">#:data.text#</span>'),valueTemplate:'<span class="k-editor-export"><span class="k-icon k-i-export"></span><span class="k-export-tool-text">'+an+"</span></span>"}).data("kendoSelectBox"),kn.attr("title",ui.title),$e.wrapper.attr("title",ui.title),kn.addClass("k-decorated").closest(".k-dropdownlist").removeClass("k-"+Ht).find("*").addBack().attr("unselectable","on")},changeHandler:function(kn){var ui=kn.sender,Ot=ui.dataItem();this._exec(Ot&&Ot.value),ui.value("")},_exec:function(kn){kn&&Hn.exec(this.editor,this.options.name,{exportType:kn})},destroy:function(){this._ancestor=null}});ze(St,{ExportAsTool:Dn,ExportAsCommand:Vn}),Ui("exportAs",new Dn({template:new Co({template:it.dropDownListTemplate,title:"Export As"})}))}.apply(Go={},ur=[wi]))&&(ao=Go),void 0===(pr=function(){var vn=window.kendo.jQuery,Ke=window.kendo,St=vn.extend,it=Ke.ui.editor,Dt=it.Dom,Hn=it.EditorUtils,Ui=Hn.registerTool,Co=it.Command,Sn=it.Tool,Vn=it.ToolTemplate,Dn=it.RangeUtils,kn=Dt.blockElements,ui=it.BlockFormatFinder,Ot=it.BlockFormatter;function en(an,$e){var Ve="rtl"==vn(an).css("direction")?"Right":"Left",Ge="td"!=Dt.name(an)?"margin"+Ve:"padding"+Ve;if(void 0===$e)return an.style[Ge]||0;$e>0?an.style[Ge]=$e+"px":(an.style[Ge]="",an.style.cssText||an.removeAttribute("style"))}var cn=Ke.Class.extend({init:function(){this.finder=new ui([{tags:Dt.blockElements}])},apply:function(an){an=Dt.filterBy(an,Dt.htmlIndentSpace,!0);var Ve,Ge,Be,At,Rt,$e=this.finder.findSuitable(an),Je=[];if(($e=this.mapImmutables($e)).length){for(Ve=0,Ge=$e.length;Ve<Ge;Ve++)Dt.is($e[Ve],"li")?vn($e[Ve]).index()?vn.inArray($e[Ve].parentNode,Je)<0&&Je.push($e[Ve]):Je.push($e[Ve].parentNode):Je.push($e[Ve]);for(;Je.length;)if(Be=Je.shift(),Dt.is(Be,"li")){At=Be.parentNode;var Pt=(Rt=vn(Be).prev("li")).find("ul,ol").last(),$t=vn(Be).children("ul,ol")[0];if($t&&Rt[0])Pt[0]?(Pt.append(Be),Pt.append(vn($t).children()),Dt.remove($t)):(Rt.append($t),$t.insertBefore(Be,$t.firstChild));else for(($t=Rt.children("ul,ol")[0])||($t=Dt.create(Be.ownerDocument,Dt.name(At),this.getListTypeAttr(At)),Rt.append($t));Be&&Be.parentNode==At;)$t.appendChild(Be),Be=Je.shift()}else{var Xn=parseInt(en(Be),10)+30;en(Be,Xn);for(var Nn=0;Nn<Je.length;Nn++)vn.contains(Be,Je[Nn])&&Je.splice(Nn,1)}}else new Ot([{tags:["p"]}],{style:{marginLeft:30}}).apply(an)},getListTypeAttr:function(an){var $e=an.getAttribute("type");return $e?{type:$e}:{style:{listStyleType:an.style.listStyleType}}},mapImmutables:function(an){if(this.immutables){var $e=[];return vn.map(an,function(Je){var Ve=it.Immutables.immutableParent(Je);if(Ve){if(-1!==vn.inArray(Ve,$e))return null;$e.push(Ve)}return Ve||Je})}return an},remove:function(an){an=Dt.filterBy(an,Dt.htmlIndentSpace,!0);var Je,Ve,Ge,Be,At,Rt,Pt,$t,$e=this.finder.findSuitable(an);for(Ve=0,Ge=($e=this.mapImmutables($e)).length;Ve<Ge;Ve++){if((Pt=vn($e[Ve])).is("li")){if((At=(Be=Pt.parent()).parent()).is("li,ul,ol")&&!en(Be[0])){if(Je&&vn.contains(Je,At[0]))continue;(Rt=Pt.nextAll("li")).length&&vn(Be[0].cloneNode(!1)).appendTo(Pt).append(Rt),At.is("li")?Pt.insertAfter(At):Pt.appendTo(At),Be.children("li").length||Be.remove();continue}if(Je==Be[0])continue;Je=Be[0]}else Je=$e[Ve];$t=parseInt(en(Je),10)-30,en(Je,$t)}}}),Ht=Co.extend({init:function(an){an.formatter={toggle:function(Je){var Ve=new cn;Ve.immutables=this.editor&&this.editor.options.immutables,Ve.apply(Dn.nodes(Je))}.bind(this)},Co.fn.init.call(this,an)}}),ft=Co.extend({init:function(an){an.formatter={toggle:function(Je){var Ve=new cn;Ve.immutables=this.editor&&this.editor.options.immutables,Ve.remove(Dn.nodes(Je))}.bind(this)},Co.fn.init.call(this,an)}}),Nt=Sn.extend({init:function(an){Sn.fn.init.call(this,an),this.finder=new ui([{tags:kn}])},initialize:function(an,$e){Sn.fn.initialize.call(this,an,$e),vn.extend(this.options,{immutables:$e.editor&&$e.editor.options.immutables}),an.addClass("k-disabled")},update:function(an,$e){var Ve,Ge,Be,At,Rt,Pt,Je=this.finder.findSuitable($e);for(Be=0,At=Je.length;Be<At;Be++)if(Rt=Je[Be],this.options.immutables&&(Pt=it.Immutables.immutableParent(Rt))&&(Rt=Pt),(Ve=en(Rt))||(Ge=vn(Rt).parents("ul,ol").length,Ve=Dt.is(Rt,"li")&&(Ge>1||en(Rt.parentNode))||Dt.ofType(Rt,["ul","ol"])&&Ge>0),Ve)return void an.removeClass("k-disabled");an.addClass("k-disabled").removeClass("k-hover")}});St(it,{IndentFormatter:cn,IndentCommand:Ht,OutdentCommand:ft,OutdentTool:Nt}),Ui("indent",new Sn({command:Ht,template:new Vn({template:Hn.buttonTemplate,title:"Indent"})})),Ui("outdent",new Nt({command:ft,template:new Vn({template:Hn.buttonTemplate,title:"Outdent"})}))}.apply(Rr={},ur=[Io]))&&(pr=Rr),void 0===(br=function(){var vn=window.kendo.jQuery,Xe=window.kendo,Ke=vn.extend,ze=Xe.ui.editor,St=ze.Dom,it=ze.Command,Dt=ze.Tool,Hn=ze.BlockFormatter,Ui=St.normalize,Co=ze.RangeUtils,Sn=ze.EditorUtils.registerTool,Vn=it.extend({init:function(kn){this.options=kn,it.fn.init.call(this,kn)},_insertMarker:function(kn,ui){var en,Ot=St.create(kn,"a");return Ot.className="k-marker",ui.insertNode(Ot),Ot.parentNode||((en=ui.commonAncestorContainer).innerHTML="",en.appendChild(Ot)),Ui(Ot.parentNode),Ot},_moveFocus:function(kn,ui){if(St.isEmpty(ui))kn.setStartBefore(ui);else{kn.selectNodeContents(ui);var Ot=Co.textNodes(kn)[0];if(!Ot){for(;ui.childNodes.length&&!St.is(ui.firstChild,"br");)ui=ui.firstChild;Ot=ui}if(St.isEmpty(Ot))kn.setStartBefore(Ot);else{St.emptyNode(Ot)&&(Ot.innerHTML="\ufeff");var en=Ot.firstChild||Ot;St.isDataNode(en)?kn.setStart(en,0):kn.setStartBefore(en)}}},shouldTrim:function(kn){var ui="p,h1,h2,h3,h4,h5,h6".split(","),Ot=St.parentOfType(kn.startContainer,ui),en=St.parentOfType(kn.endContainer,ui);return Ot&&!en||!Ot&&en},_blankAfter:function(kn){for(;kn&&(St.isMarker(kn)||""===St.stripBom(kn.nodeValue));)kn=kn.nextSibling;return!kn},exec:function(){var Ot,en,cn,ft,Nt,an,$e,Je,Ve,Ge,kn=this.getRange(),ui=Co.documentFromRange(kn),Ht=ze.emptyElementContent;if(this.expandImmutablesIn(kn),Ge=this.shouldTrim(kn),kn.deleteContents(),Nt=this._insertMarker(ui,kn),St.stripBomNode(Nt.previousSibling),St.stripBomNode(Nt.nextSibling),an=St.closestEditableOfType(Nt,["li"]),$e=St.closestEditableOfType(Nt,"h1,h2,h3,h4,h5,h6".split(",")),Je=St.is(Nt.parentNode,"table")&&Nt.parentNode,an){if(St.emptyNode(an)){ft=St.create(ui,"p"),St.next(an)&&((Ve=kn.cloneRange()).selectNode(an),Co.split(Ve,an.parentNode));var Be=vn("br",an);1==Be.length&&Be.remove();var Rt=an.parentNode.children.length,Pt=Rt>1&&1==an.childNodes.length&&an.children[0];St.insertAfter(ft,an.parentNode),St.remove(1==Rt?an.parentNode:an),Pt&&Pt!==Nt?(ft.appendChild(Pt),ft.appendChild(Nt)):ft.innerHTML=Ht,cn=ft}}else $e&&this._blankAfter(Nt)?(ft=this._insertParagraphAfter($e),St.remove(Nt),cn=ft):Je&&(ft=this._insertParagraphAfter(Je),St.remove(Nt),cn=ft);cn||(an||$e||new Hn([{tags:["p"]}]).apply([Nt]),kn.selectNode(Nt),Ot=St.parentOfType(Nt,[an?"li":$e?St.name($e):"p"]),Co.split(kn,Ot,Ge),St.is(en=Ot.previousSibling,"li")&&en.firstChild&&!St.is(en.firstChild,"br")&&(en=en.firstChild),cn=Ot.nextSibling,this.clean(en,{links:!0}),this.clean(cn,{links:!0}),St.is(cn,"li")&&cn.firstChild&&!St.is(cn.firstChild,"br")&&(cn=cn.firstChild),St.remove(Ot),Ui(en)),Ui(cn),this._moveFocus(kn,cn),kn.collapse(!0),St.scrollTo(cn,!0),Co.selectRange(kn)},_insertParagraphAfter:function(kn){var ui=this.getRange(),Ot=Co.documentFromRange(ui),en=ze.emptyElementContent,cn=St.create(Ot,"p");return St.insertAfter(cn,kn),cn.innerHTML=en,cn},clean:function(kn,ui){var Ot=kn;if(kn.firstChild&&St.is(kn.firstChild,"br")&&St.remove(kn.firstChild),St.isDataNode(kn)&&!kn.nodeValue&&(kn=kn.parentNode),kn){for(var en=!1;kn.firstChild&&1==kn.firstChild.nodeType;)en=en||St.significantNodes(kn.childNodes).length>1,kn=kn.firstChild;if(!St.isEmpty(kn)&&"k-br"!=kn.className&&/^\s*$/.test(kn.innerHTML)&&!en&&(vn(Ot).find(".k-br").remove(),kn.innerHTML=ze.emptyElementContent),ui&&ui.links)for(;kn!=Ot;){if(St.is(kn,"a")&&St.emptyNode(kn)){St.unwrap(kn);break}kn=kn.parentNode}}}}),Dn=it.extend({init:function(kn){this.options=kn,it.fn.init.call(this,kn)},exec:function(){var kn=this.getRange();this.expandImmutablesIn(kn);var en,Nt,ui=St.create(Co.documentFromRange(kn),"br"),Ot=kn.startContainer,cn=Xe.support.browser,Ht=cn.msie&&cn.version<11,ft=St.is(Ot,"table")&&Ot;kn.deleteContents(),ft?St.insertAfter(ui,ft):(Nt=vn(Ot).closest(".k-br"),kn.insertNode(ui),Nt.length&&St.unwrap(Nt[0])),Ui(ui.parentNode),!Ht&&(!ui.nextSibling||St.isWhitespace(ui.nextSibling))&&(ui.nextSibling&&St.isWhitespace(ui.nextSibling)&&vn(ui.nextSibling).remove(),(en=ui.cloneNode(!0)).className="k-br",St.insertAfter(en,ui)),kn.setStartAfter(ui),kn.collapse(!0),St.scrollTo(ui.nextSibling||ui,!0),Co.selectRange(kn)}});Ke(ze,{ParagraphCommand:Vn,NewLineCommand:Dn}),Sn("insertLineBreak",new Dt({key:13,shift:!0,command:Dn})),Sn("insertParagraph",new Dt({key:13,command:Vn}))}.apply(Ti={},ur=[Io]))&&(br=Ti),void 0===(mr=function(){var vn=window.kendo.jQuery,Ke=window.kendo,ze=vn.extend,St=Ke.ui.editor,it=St.EditorUtils,Dt=St.Dom,Hn=it.registerTool,Ui=St.ToolTemplate,Co=St.RangeUtils,Sn=St.Command,Vn=St.LinkFormatter,Dn=Co.textNodes,kn=Ke.keys,ui="#k-editor-file-url",Ot="#k-editor-file-text",en="#k-editor-file-title",cn=Sn.extend({init:function(Ht){Sn.fn.init.call(this,Ht),this.formatter=new Vn,this.async=!0,this.attributes={}},insertFile:function(Ht,ft){var Nt=this.attributes,an=Co.documentFromRange(ft);if(Nt.href&&"http://"!=Nt.href){if(!Ht)return(Ht=Dt.create(an,"a",{href:Nt.href})).innerHTML=Nt.innerHTML,Ht.title=Nt.title,ft.deleteContents(),ft.insertNode(Ht),Ht.nextSibling||Dt.insertAfter(an.createTextNode("\ufeff"),Ht),ft.setStartAfter(Ht),ft.setEndAfter(Ht),Co.selectRange(ft),!0;Dt.attr(Ht,Nt)}return!1},_dialogTemplate:function(Ht){return Ke.template('<div class="k-editor-dialog k-popup-edit-form"><div class="k-edit-form-container"><div class="k-edit-form-content"># if (showBrowser) { #<div class="k-filebrowser"></div># } #<div class=\'k-edit-label\'><label for="k-editor-file-url">#: messages.fileWebAddress #</label></div><div class=\'k-edit-field\'><span class="k-textbox k-input k-input-md k-rounded-md k-input-solid"><input type="text" class="k-input-inner" id="k-editor-file-url"></span></div><div class=\'k-edit-label\'><label for="k-editor-file-text">#: messages.fileText #</label></div><div class=\'k-edit-field\'><span class="k-textbox k-input k-input-md k-rounded-md k-input-solid"><input type="text" class="k-input-inner" id="k-editor-file-text"></span></div><div class=\'k-edit-label\'><label for="k-editor-file-title">#: messages.fileTitle #</label></div><div class=\'k-edit-field\'><span class="k-textbox k-input k-input-md k-rounded-md k-input-solid"><input type="text" class="k-input-inner" id="k-editor-file-title"></span></div></div><div class="k-edit-buttons"><button class="k-dialog-insert k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary"><span class="k-button-text">#: messages.dialogInsert #</span></button><button class="k-dialog-close k-button k-button-md k-rounded-md k-button-solid k-button-solid-base"><span class="k-button-text">#: messages.dialogCancel #</span></button></div></div></div>')({messages:this.editor.options.messages,showBrowser:Ht})},redo:function(){var ft=this.lockRange();this.formatter.apply(ft,this.attributes),this.releaseRange(ft)},exec:function(){var Je,Ht=this,ft=Ht.lockRange(),Nt=Dn(ft),an=!1,$e=Nt.length?this.formatter.finder.findSuitable(Nt[0]):null,Ve=Ke.support.browser.msie,Ge=Ht.editor.options,At=Ge.fileBrowser,Rt=!!(Ke.ui.FileBrowser&&At&&At.transport&&void 0!==At.transport.read),Pt={title:Ge.messages.insertFile,visible:!1,resizable:Rt};function $t(Kt){var On=Je.element,Fi=On.find(ui).val().replace(/ /g,"%20"),Ci=On.find(Ot).val(),xi=On.find(en).val();Ht.attributes={href:Fi,innerHTML:""!==Ci?Ci:Fi,title:xi},an=Ht.insertFile($e,ft),Xn(Kt),Ht.change&&Ht.change()}function Xn(Kt){Kt.preventDefault(),Je.destroy(),Dt.windowFromDocument(Co.documentFromRange(ft)).focus(),an||Ht.releaseRange(ft)}this.expandImmutablesIn(ft),Pt.close=Xn,Rt&&(Pt.width=750);var Ae=(Je=this.createDialog(Ht._dialogTemplate(Rt),Pt).toggleClass("k-filebrowser-dialog",Rt).find(".k-dialog-insert").on("click",$t).end().find(".k-dialog-close").on("click",Xn).end().find(".k-edit-field input").on("keydown",function Nn(Kt){Kt.keyCode==kn.ENTER?$t(Kt):Kt.keyCode==kn.ESC&&Xn(Kt)}).end().find(ui).val($e?$e.getAttribute("href",2):"http://").end().find(Ot).val($e?$e.innerText:"").end().find(en).val($e?$e.title:"").end().data("kendoWindow")).element;if(Rt&&(Ht._fileBrowser=new Ke.ui.FileBrowser(Ae.find(".k-filebrowser"),ze({},At)),Ht._fileBrowser.bind("change",function(Kt){"f"===Kt.selected.get("type")&&Ae.find(ui).val(this.value())}),Ht._fileBrowser.bind("apply",$t)),Ve){var He=Ae.closest(".k-window").height();Ae.css("max-height",He)}Je.center().open(),Ae.find(ui).trigger("focus").select()}});Hn("insertFile",new St.Tool({command:Ke.ui.editor.FileCommand=cn,template:new Ui({template:it.buttonTemplate,title:"Insert File"})}))}.apply(ri={},ur=[ln,ai]))&&(mr=ri),void 0===(mo=function(){var vn=window.kendo.jQuery,Ke=window.kendo,ze=vn.extend,St=Ke.ui.editor,it=St.Dom,Dt=St.EditorUtils,Hn=St.RangeUtils,Ui=St.Command,Co="kendoEditor",Sn="k-active",Vn="k-selected",Dn="scope",kn="row",ui="col",Ot="rowgroup",en="colgroup",cn="colspan",Ht="rowspan",ft="table",Nt="thead",$e="tr",Je="td",Ve="th",Ge=St.Tool,Be=St.ToolTemplate,At=St.InsertHtmlCommand,Pt=St.BlockFormatTool,$t=St.FormatCommand,Xn=St.EditorUtils.registerTool,Nn=St.EditorUtils.registerFormat,Ae=Ke.ui.Editor.fn.options.formats,He=Ke.getTouches,Kt=Ke.template,Fi=new(0,St.BlockFormatFinder)([{tags:[ft]}]),Ci=At.extend({init:function(Ai){var Pn=vn.extend({postProcess:this.postProcess,skipCleaners:!0},Ai||{});At.fn.init.call(this,Pn)},_tableHtml:function(Ai,Pn){Ai=Ai||1,Pn=Pn||1;var qn=Kt("<td style='width:#=width#%;'>#=content#</td>")({width:100/Pn,content:St.emptyTableCellContent}),Ni=100/Ai;return"<table class='k-table' data-last>"+new Array(Ai+1).join("<tr style='height:"+Ni+"%;'>"+new Array(Pn+1).join(qn)+"</tr>")+"</table>"},postProcess:function(Ai,Pn){var qn=vn("table[data-last]",Ai.document).removeAttr("data-last");Pn.setStart(qn.find(Je)[0],0),Pn.collapse(!0),Ai.selectRange(Pn)},exec:function(){var Ai=this.options;Ai.html=this._tableHtml(Ai.rows,Ai.columns),At.fn.exec.call(this)}}),xi=Ge.extend({initialize:function(Ai,Pn){Ge.fn.initialize.call(this,Ai,Pn);var qn=vn(this.options.popupTemplate).appendTo("body").kendoPopup({anchor:Ai,copyAnchorStyles:!1,open:this._open.bind(this),activate:this._activate.bind(this),close:this._close.bind(this)}).data("kendoPopup");Ai.on("click",this._toggle.bind(this)).on("keydown",this._keydown.bind(this));var Ni=this._editor=Pn.editor;this._popup=qn;var Ue=new St.TableWizardTool({template:new Be({template:Dt.tableWizardButtonTemplate,title:Ni.options.messages.tableWizard}),command:St.TableWizardCommand,insertNewTable:!0});Xn("tableWizardInsert",Ue);var Ye=vn("<div>"+Ue.options.template.getHtml()+"</div>");Ye.appendTo(qn.element),Ni.toolbar&&Ni.toolbar.attachToolsEvents(Ye)},popup:function(){return this._popup},_activate:vn.noop,_open:function(){this._popup.options.anchor.addClass(Sn)},_close:function(){this._popup.options.anchor.removeClass(Sn)},_keydown:function(Ai){var qn=Ke.keys,Ni=Ai.keyCode;Ni==qn.DOWN&&Ai.altKey||Ni==qn.ENTER||Ni==qn.SPACEBAR?this._popup.open():Ni==qn.ESC&&this._popup.close()},_toggle:function(Ai){vn(Ai.target).closest(".k-tool").hasClass("k-disabled")||this.popup().toggle()},update:function(Ai){var Pn=this.popup();Pn.wrapper&&"block"==Pn.wrapper.css("display")&&Pn.close(),Ai.removeClass("k-hover")},destroy:function(){this._popup.destroy()}}),Wn=xi.extend({init:function(Ai){this.cols=8,this.rows=6,xi.fn.init.call(this,vn.extend(Ai,{command:Ci,popupTemplate:"<div class='k-ct-popup'><div>"+new Array(this.cols*this.rows+1).join("<span class='k-ct-cell k-disabled'></span>")+"</div><div class='k-status'></div></div>"}))},_activate:function(){var yt,on,Ai=this,Pn=Ai._popup.element,qn=Pn.find(".k-ct-cell"),Ni=qn.eq(0),Ue=qn.eq(qn.length-1),Ye=Ke.getOffset(Ni),Me=Ke.getOffset(Ue),pe=Ai.cols,lt=Ai.rows;function zi(Kn){var ho=vn(window);return{row:Math.floor((Kn.clientY+ho.scrollTop()-Ye.top)/on)+1,col:Math.floor((Kn.clientX+ho.scrollLeft()-Ye.left)/yt)+1}}Pn.find("*").addBack().attr("unselectable","on"),Me.left+=Ue[0].offsetWidth,Me.top+=Ue[0].offsetHeight,yt=(Me.left-Ye.left)/pe,on=(Me.top-Ye.top)/lt,Pn.autoApplyNS(Co).on("mousemove",".k-ct-cell",function(Kn){Ai._setTableSize(zi(Kn))}).on("mouseleave",".k-ct-cell",function(){Ai._setTableSize()}).on("down",".k-ct-cell",function(Kn){Kn.preventDefault();var ho=He(Kn)[0];Ai._exec(zi(ho.location))})},_valid:function(Ai){return Ai&&Ai.row>0&&Ai.col>0&&Ai.row<=this.rows&&Ai.col<=this.cols},_exec:function(Ai){this._valid(Ai)&&(this._editor.exec("createTable",{rows:Ai.row,columns:Ai.col}),this._popup.close())},_setTableSize:function(Ai){var Pn=this._popup.element,qn=Pn.find(".k-status"),Ni=Pn.find(".k-ct-cell"),Ue=this.cols,Ye=this._editor.options.messages;this._valid(Ai)?(qn.text(Ke.format(Ye.createTableHint,Ai.row,Ai.col)),Ni.each(function(Me){vn(this).toggleClass(Vn,Me%Ue<Ai.col&&Me/Ue<Ai.row)})):(qn.text(Ye.createTable),Ni.removeClass(Vn))},_keydown:function(Ai){var Pn=this._popup.visible();if(xi.fn._keydown.call(this,Ai),this._popup.visible()){var yt,qn=Ke.keys,Ni=Ai.keyCode,Ue=this._popup.element.find(".k-ct-cell"),Ye=Math.max(Ue.filter(".k-selected").last().index(),0),Me=Math.floor(Ye/this.cols),pe=Ye%this.cols,lt=!1;Ni!=qn.DOWN||Ai.altKey?Ni==qn.UP?(lt=!0,Me--):Ni==qn.RIGHT?(lt=!0,pe++):Ni==qn.LEFT?(lt=!0,pe--):Ni==qn.TAB&&(yt=this._popup.element.find(".k-button")).length>0&&(lt=!0,yt.trigger("focus")):(lt=!0,Me++);var on={row:Math.max(1,Math.min(this.rows,Me+1)),col:Math.max(1,Math.min(this.cols,pe+1))};Ni==qn.ENTER&&Pn?this._exec(on):this._setTableSize(on),lt&&(Ai.preventDefault(),Ai.stopImmediatePropagation())}},_open:function(){var Ai=this._editor.options.messages;xi.fn._open.call(this),this.popup().element.find(".k-status").text(Ai.createTable).end().find(".k-ct-cell").removeClass(Vn)},_close:function(){xi.fn._close.call(this),this.popup().element.off("."+Co)}}),Vt=Ui.extend({undo:function(){var Ai=this.restorePoint;Ai.restoreHtml(),vn(this.editor.body).find(".k-element-resize-handle-wrapper").each(function(Pn,qn){qn.remove()}),this.editor.selectRange(Ai.toRange())},_clearColIndexAttr:function(Ai){it.clearTableMappings(Ai,"col-index")},_mapColIndices:function(Ai){it.reMapTableColumns(Ai,"col-index")},_findRowSpanCell:function(Ai,Pn,qn){for(var Ue,Ye=Pn;Ye>=0;Ye--)if((Ue=vn(Ai.rows[Ye]).find("[col-index="+qn+"]")).length)return Ue},_resetElementResizing:function(Ai){Ai._destroyResizings(),Ai._initializeColumnResizing(),Ai._initializeRowResizing(),Ai._initializeElementResizing()},_findNextTdInRow:function(Ai,Pn){for(var Ue,qn=Ai.find("td:last-child"),Ni=parseInt(qn.attr("col-index"),10)+qn.prop("colSpan")-1,Ye=Pn;Ye<=Ni;Ye++)if((Ue=Ai.find("[col-index="+Ye+"]")).length)return Ue},_adjustColgroups:function(Ai,Pn){for(var Me,pe,lt,qn=Pn.getElementsByTagName(ui),Ni=Pn.getElementsByTagName(en),Ue=Ai.cells,Ye=Ue.length;qn.length>0;)qn[0].remove();for(;Ni.length>0;)Ni[0].remove();for(Me=Ye-1;Me>=0;Me--)(lt=Ue[Me]).getAttribute(Dn)===en?((pe=it.createEmptyNode(this.editor.document,en)).setAttribute("span",lt.getAttribute(cn)),Pn.prepend(pe)):Pn.prepend(it.createEmptyNode(this.editor.document,ui))},_associateHeaderIds:function(Ai){it.clearTableMappings(Ai,"col-index"),it.reMapTableColumns(Ai,"col-index"),vn(Ai).find("th, td").removeAttr("id headers"),it.associateWithIds(Ai)},_getNumberOfColumns:function(Ai){return it._getNumberOfColumns(Ai,"td, th")}}),qt=Vt.extend({exec:function(){var Ue,Ye,Me,pe,lt,on,Ai=this.lockRange(!0),Pn=it.closest(Ai.endContainer,[Je,Ve]),qn=it.closest(Pn,ft),Ni=this.options.position||"after";if(!qn||this.immutables()&&St.Immutables.immutableParent(Pn))this.releaseRange(Ai);else{this._mapColIndices(qn),lt=it.findNodeIndex(Ye=Pn.parentNode,!0),Pn.rowSpan>1&&"after"===Ni&&(Ye=qn.rows[lt+Pn.rowSpan-1]),Ue=this._getNumberOfColumns(qn),pe=Ye.cloneNode(!0),vn(pe).empty();for(var zi=0;zi<Ue;zi+=Me.prop("colSpan"))(Me=vn(Ye).find("[col-index="+zi+"]")).length?Me.prop("rowSpan")>1&&"after"===Ni&&Me?Me.attr(Ht,Me.prop("rowSpan")+1):this._appendCell(pe,Me):(lt=it.findNodeIndex(Ye,!0),(Me=this._findRowSpanCell(Ye.parentElement,lt,zi)).closest($e).index()+Me.prop("rowSpan")-1===lt&&"after"===Ni?this._appendCell(pe,Me):Me.attr(Ht,Me.prop("rowSpan")+1)),(on=vn(pe).find("[col-index="+zi+"]")).attr(Dn)===Ot&&!on.attr(Ht)&&on.attr(Dn,kn);"before"==Ni?it.insertBefore(pe,Ye):it.insertAfter(pe,Ye),vn(qn).find("[headers]").length>0&&this._associateHeaderIds(qn),this._clearColIndexAttr(qn),this.releaseRange(Ai),this._resetElementResizing(this.editor)}},_appendCell:function(Ai,Pn){var qn;(qn=Pn.clone()).html(St.emptyTableCellContent),qn.removeAttr(Ht),qn.appendTo(Ai)}}),bn=Vt.extend({exec:function(){var Ye,Me,lt,yt,Ai=this.lockRange(!0),Pn=it.closest(Ai.endContainer,[Je,Ve]),qn=it.closest(Pn,ft),Ni=qn.getElementsByTagName(ui),Ue=qn.getElementsByTagName(en),pe=qn&&qn.rows,on=this.options.position||"after";if(!Pn||this.immutables()&&St.Immutables.immutableParent(Pn))this.releaseRange(Ai);else{for(this._mapColIndices(qn),Ye=parseInt(Pn.getAttribute("col-index"),10),Pn.colSpan>1&&"after"===on&&(Pn.setAttribute("col-index",Ye+Pn.colSpan-1),Ye=Ye+Pn.colSpan-1),Me=0;Me<pe.length;Me++)(lt=this._processForColSpan(pe[Me],Ye,on,Pn))&&((yt=lt.cloneNode()).innerHTML=St.emptyTableCellContent,yt.removeAttribute(cn),yt.getAttribute(Dn)&&yt.getAttribute(Dn)===en&&yt.setAttribute(Dn,ui),"before"==on?it.insertBefore(yt,lt):it.insertAfter(yt,lt),this._resizeCells(yt,lt));(Ni.length>0||Ue.length>0)&&this._adjustColgroups(pe[0],qn),vn(qn).find("[headers]").length>0&&this._associateHeaderIds(qn),this._clearColIndexAttr(qn),this.releaseRange(Ai),this._resetElementResizing(this.editor)}},_processForColSpan:function(Ai,Pn,qn,Ni){var Ue,Ye,Me=Pn-1;if((Ue=vn(Ai).find("[col-index="+Pn+"]")[0])&&Ue.colSpan>1&&"after"===qn&&Ue!==Ni)Ue.colSpan+=1;else{if(Ue)return Ue;for(;Me>=0&&!((Ue=vn(Ai).find("[col-index="+Me+"]")[0])&&Ue.colSpan>1);Me--);if(Ue){if((Ye=parseInt(Ue.getAttribute("col-index"),10)+Ue.colSpan-1)===Pn&&"after"===qn)return Ue;Pn<=Ye&&Ue.setAttribute(cn,Ue.colSpan+1)}}},_resizeCells:function(Ai,Pn){var Ni,Ue,Ye,qn=Ai.style.width;qn&&(Ni=parseFloat(qn),Ue=qn.slice(Ni.toString().length),Ai.style.width=Ye=Ni/2+Ue,Pn.style.width=Ye)}}),ii=Vt.extend({exec:function(){var lt,Ai=this.lockRange(),Pn=Hn.mapAll(Ai,function(zi){return vn(zi).closest($e)[0]}),qn=it.closest(Ai.endContainer,[Je,Ve]),Ni=Pn[0],Ue=qn?qn.rowSpan:1,Ye=vn(Pn[0]).index(),Me=it.closest(Ni,ft),pe=Ni.parentElement;if(!Me||this.immutables()&&St.Immutables.immutableParent(Ni))this.releaseRange(Ai);else{for(var yt=0;yt<Ue;yt++)Pn.indexOf(pe.rows[Ye+yt])<0&&Pn.push(pe.rows[Ye+yt]);if(Me.rows.length<=Pn.length)(!(lt=it.next(Me))||it.insignificant(lt))&&(lt=it.prev(Me)),lt&&lt.rows&&(lt=lt.rows[0].cells[0]),it.remove(Me),this._resetElementResizing(this.editor);else if(pe.rows.length<=Pn.length)(lt=pe.nextSibling)||(lt=pe.previousSibling),it.remove(pe);else{this._mapColIndices(Me);for(var on=0;on<Pn.length;on++)it.removeTextSiblings(Ni=Pn[on]),lt=it.next(Ni)||it.prev(Ni),this._focusElement(Ai,lt=lt.cells[0]),lt=null,this._handleRowSpanCells(Me,Ni),it.remove(Ni);this._clearColIndexAttr(Me)}vn(Me).find("[headers]").length>0?this._associateHeaderIds(Me):it.is(pe,Nt)&&vn(Me).find("[scope]").length>0&&this._adjustColgroups(pe.rows[0],Me),lt&&this._focusElement(Ai,lt),this._resetElementResizing(this.editor)}},_focusElement:function(Ai,Pn){Ai.setStart(Pn,0),Ai.collapse(!0),this.editor.selectRange(Ai)},_handleRowSpanCells:function(Ai,Pn){var qn,Ni,Ue,Ye,Me=it.findNodeIndex(Pn,!0),pe=Ai.rows[0],lt=pe.cells[pe.cells.length-1],yt=parseInt(lt.getAttribute("col-index"),10)+lt.colSpan-1;for(qn=0;qn<=yt;qn+=Ni.prop("colSpan"))(Ni=vn(Pn).find("[col-index="+qn+"]")).length&&Ni.prop("rowSpan")>1&&((Ue=vn(Ye=Ai.rows[Me+1]).find("[col-index="+(qn+1)+"]")).length?Ue.before(Ni):vn(Ye).append(Ni),this._reduceRowSpan(Ni)),Ni.length||(Ni=this._findRowSpanCell(Pn.parentElement,Me,qn),this._reduceRowSpan(Ni))},_reduceRowSpan:function(Ai){var Pn=Ai.prop("rowSpan")-1;Pn<=1?(Ai.removeAttr(Ht),Ai.attr(Dn)===Ot&&Ai.attr(Dn,kn)):Ai.attr(Ht,Pn)}}),Vi=Vt.extend({exec:function(){var lt,yt,on,zi,Ai=this.lockRange(),Pn=it.closest(Ai.endContainer,[Je,Ve]),qn=it.closest(Pn,ft),Ni=qn&&qn.rows,Ue=it.findNodeIndex(Pn,!0),Ye=Ni&&Ni[0].cells.length,Me=qn.getElementsByTagName(ui),pe=qn.getElementsByTagName(en);if(!Pn||this.immutables()&&St.Immutables.immutableParent(Pn))this.releaseRange(Ai);else{if(1==Ye||Pn.colSpan==Ye)(!(lt=it.next(qn))||it.insignificant(lt))&&(lt=it.prev(qn)),lt&&lt.rows&&(lt=lt.rows[0].cells[0]),it.remove(qn),this._resetElementResizing(this.editor);else{for(it.removeTextSiblings(Pn),lt=it.next(Pn)||it.prev(Pn),this._mapColIndices(qn),Ue=parseInt(Pn.getAttribute("col-index"),10),zi=0;zi<Pn.colSpan;zi++)for(yt=0;yt<Ni.length;yt+=on.prop("rowSpan")||1)(on=vn(Ni[yt]).find("[col-index="+(Ue+zi)+"]")).length&&on.prop("colSpan")<=1?on.remove():this._handleColSpanCells(Ni[yt],Ue+zi);this._clearColIndexAttr(qn)}(Me.length>0||pe.length>0)&&this._adjustColgroups(Ni[0],qn),vn(qn).find("[headers]").length>0&&this._associateHeaderIds(qn),lt&&(Ai.setStart(lt,0),Ai.collapse(!0),this.editor.selectRange(Ai)),this._resetElementResizing(this.editor)}},_handleColSpanCells:function(Ai,Pn){var qn=vn(Ai).find("[col-index="+Pn+"]");if(qn.length&&qn.prop("colSpan")>1){var Ni=qn.clone(!0);return qn.after(Ni),this._reduceColSpan(Ni),Ni.attr("col-index",parseInt(qn.attr("col-index"),10)+1),void qn.remove()}for(var Ue=Pn;Ue>=0;Ue--)if((qn=vn(Ai).find("[col-index="+Ue+"]")).length)return this._reduceColSpan(qn),void qn.attr("col-index",parseInt(qn.attr("col-index"),10)+1)},_reduceColSpan:function(Ai){var Pn=Ai.prop("colSpan")-1;Pn<=1?(Ai.removeAttr(cn),Ai.attr(Dn)===en&&Ai.attr(Dn,ui)):Ai.attr(cn,Pn)}}),Jn=Vt.extend({exec:function(){var qn,Ni,Ue,Ye,Me,Ai=this.lockRange(),Pn=it.closest(Ai.endContainer,[Je,Ve]);if(Pn){if(qn=it.closest(Pn,ft),Ni=Pn.parentNode,Ue=it.findNodeIndex(Pn,!0),!this.immutables()||!St.Immutables.immutableParent(Pn))return this._mapColIndices(qn),Ue=parseInt(vn(Pn).attr("col-index"),10),(Ye=vn(Ni).find("[col-index="+(Ue+1+this._getColspan(Pn)-1)+"]").get(0))&&Ye.rowSpan===Pn.rowSpan&&Pn.tagName===Ye.tagName?(Me=this._getColspan(Pn)+this._getColspan(Ye),vn(Pn).prop(cn,Me).append(it.emptyNode(Ye)?"":"<br/>"+Ye.innerHTML),vn(Pn).width(Pn.offsetWidth),vn(Ye).remove(),Pn.getAttribute(Dn)===ui&&Pn.setAttribute(Dn,en),Pn.getAttribute(Dn)===en&&this._adjustColgroups(Ni,qn),vn(qn).find("[headers]").length>0&&this._associateHeaderIds(qn),this._clearColIndexAttr(qn),this.releaseRange(Ai),void this._resetElementResizing(this.editor)):(this._clearColIndexAttr(qn),void this.releaseRange(Ai));this.releaseRange(Ai)}else this.releaseRange(Ai)},_getColspan:function(Ai){return parseInt(Ai.getAttribute(cn),10)||1}}),zt=Vt.extend({exec:function(){var qn,Ni,Ue,Ye,Me,pe,lt,Ai=this.lockRange(),Pn=it.closest(Ai.endContainer,[Je,Ve]);if(Pn)if(qn=it.closest(Pn,$e),Ni=it.closest(Pn,[Nt,"tbody"]),Ue=it.closest(Pn,ft),Ye=it.findNodeIndex(Pn,!0),(Me=it.findNodeIndex(qn,!0))+1!==Ni.rows.length){if(pe=Ni.rows[Me+this._getRowspan(Pn)],!this.immutables()||!St.Immutables.immutableParent(Pn))return this._mapColIndices(Ue),Ye=vn(Pn).attr("col-index"),(lt=vn(pe).find("[col-index="+Ye+"]").get(0))&&lt.colSpan===Pn.colSpan&&Pn.tagName===lt.tagName?(vn(Pn).prop(Ht,this._getRowspan(Pn)+this._getRowspan(lt)).append(it.emptyNode(lt)?"":"<br/>"+lt.innerHTML),Pn.getAttribute(Dn)===kn&&Pn.setAttribute(Dn,Ot),vn(lt).remove(),vn(Ue).find("[headers]").length>0&&this._associateHeaderIds(Ue),this._clearColIndexAttr(Ue),void this.releaseRange(Ai)):(this._clearColIndexAttr(Ue),void this.releaseRange(Ai));this.releaseRange(Ai)}else this.releaseRange(Ai);else this.releaseRange(Ai)},_getRowspan:function(Ai){return parseInt(Ai.getAttribute(Ht),10)||1}}),mn=Vt.extend({exec:function(){var Ai=this.lockRange(),Pn=this.options.type,qn="row"===Pn?cn:Ht,Ni=it.closest(Ai.endContainer,[Je,Ve]),Ue=it.closest(Ni,[Nt,"tbody"]),Ye=it.closest(Ni,ft),Me=it.createEmptyNode(this.editor.document,Ni.nodeName.toLowerCase());!Ni||this.immutables()&&St.Immutables.immutableParent(Ni)||(this._mapColIndices(Ye),"row"===Pn&&vn(Ni).is("["+qn+"]")?this._splitCellHorizontally(Ni,Ue,qn,Me):"column"===Pn&&vn(Ni).is("["+qn+"]")&&this._splitCellVertically(Ni,Ue,qn,Me),vn(Ni).prop(qn.toLowerCase())<=1&&vn(Ni).removeAttr(qn),vn(Ye).find("[headers]").length>0&&this._associateHeaderIds(Ye),this._clearColIndexAttr(Ye)),this.releaseRange(Ai)},_getRowspanValue:function(Ai){return parseInt(Ai.getAttribute(Ht),10)},_getColspanValue:function(Ai){return parseInt(Ai.getAttribute(cn),10)},_splitCellHorizontally:function(Ai,Pn,qn,Ni){var Ue=Ai.rowSpan,Ye=Ai.colSpan,Me=vn(Ni),pe=Math.floor(Ye/2);pe>1&&Me.attr(cn,pe),Ue>1&&Me.attr(Ht,Ue),vn(Ai).prop(qn,Ye-pe).after(Me),vn(Ai).width(Ai.offsetWidth),Me.width(Me[0].offsetWidth),Ai.hasAttribute(Dn)&&(Ai.getAttribute(Dn)===en?(Me.attr(Dn,ui),(!Ai.getAttribute(cn)||"1"===Ai.getAttribute(cn))&&Ai.setAttribute(Dn,ui),this._adjustColgroups(Ai.parentNode,Pn.parentNode)):Me.attr(Dn,Ai.getAttribute(Dn)))},_splitCellVertically:function(Ai,Pn,qn,Ni){var Ue=it.closest(Ai,$e),Ye=parseInt(vn(Ai).attr("col-index"),10),Me=it.findNodeIndex(Ue,!0),pe=Ai.rowSpan,lt=Ai.colSpan,yt=Math.floor(pe/2),on=vn(Pn).find($e).eq(Me+pe-yt),zi=this._findNextTdInRow(on,Ye+lt),Kn=vn(Ni);yt>1&&Kn.attr(Ht,yt),lt>1&&Kn.attr(cn,lt),zi&&zi.length?zi.before(Kn):on.append(Kn),vn(Ai).prop(qn,pe-yt),Ai.hasAttribute(Dn)&&(Ai.getAttribute(Dn)===Ot?(Kn.attr(Dn,kn),(!Ai.getAttribute(Ht)||"1"===Ai.getAttribute(Ht))&&Ai.setAttribute(Dn,kn)):Kn.attr(Dn,Ai.getAttribute(Dn)))}}),Qn=Ge.extend({command:function(Ai){var Pn={row:{insert:qt,delete:ii,merge:Jn,split:mn},column:{insert:bn,delete:Vi,merge:zt,split:mn}};return(Ai=ze(Ai,this.options)).action=Ai.action||"insert",new Pn[Ai.type][Ai.action](Ai)},initialize:function(Ai,Pn){Ge.fn.initialize.call(this,Ai,Pn),Ai.addClass("k-disabled"),Ai.attr("disabled","disabled")},update:function(Ai,Pn){1==!Fi.isFormatted(Pn)?(Ai.parent().addClass("k-hidden k-disabled"),Ai.attr("disabled","disabled"),Ai.addClass("k-disabled")):(Ai.parent().removeClass("k-hidden k-disabled"),Ai.prop("disabled",!1),Ai.removeClass("k-disabled"))}}),ci=$t.extend({exec:function(){var Pn=this.editor;$t.fn.exec.call(this),Pn.elementResizing&&Pn.elementResizing._showResizeHandles()}}),Oi=Pt.extend({initialize:function(Ai,Pn){Pt.fn.initialize.call(this,Ai,Pn),Ai.addClass("k-disabled"),Ai.attr("disabled","disabled")},update:function(Ai,Pn){var qn=!Fi.isFormatted(Pn),Ni=this.options.finder.isFormatted(Pn,this.isTable);!0===qn?(Ai.parent().addClass("k-hidden k-disabled"),Ai.attr("disabled","disabled"),Ai.addClass("k-disabled")):(Ai.parent().removeClass("k-hidden k-disabled"),Ai.prop("disabled",!1),Ai.removeClass("k-disabled")),Ai.toggleClass("k-selected",Ni),Ai.attr("aria-pressed",Ni)},command:function(Ai){return new ci(ze(Ai,{formatter:this.options.formatter}))},isTable:function(Ai){return it.is(Ai,"table")}});ze(Ke.ui.editor,{PopupTool:xi,TableCommand:Ci,InsertTableTool:Wn,TableFormatTool:Oi,TableFormatCommand:ci,TableModificationTool:Qn,InsertRowCommand:qt,InsertColumnCommand:bn,DeleteRowCommand:ii,DeleteColumnCommand:Vi,MergeCellsHorizontallyCommand:Jn,MergeCellsVerticallyCommand:zt,SplitCellCommand:mn}),Xn("createTable",new Wn({template:new Be({template:Dt.buttonTemplate,popup:!0,title:"Create table"})})),Xn("addColumnLeft",new Qn({type:"column",position:"before",template:new Be({template:Dt.buttonTemplate,title:"Add column on the left"})})),Xn("addColumnRight",new Qn({type:"column",template:new Be({template:Dt.buttonTemplate,title:"Add column on the right"})})),Xn("addRowAbove",new Qn({type:"row",position:"before",template:new Be({template:Dt.buttonTemplate,title:"Add row above"})})),Xn("addRowBelow",new Qn({type:"row",template:new Be({template:Dt.buttonTemplate,title:"Add row below"})})),Xn("deleteRow",new Qn({type:"row",action:"delete",template:new Be({template:Dt.buttonTemplate,title:"Delete row"})})),Xn("deleteColumn",new Qn({type:"column",action:"delete",template:new Be({template:Dt.buttonTemplate,title:"Delete column"})})),Xn("mergeCellsHorizontally",new Qn({type:"row",action:"merge",template:new Be({template:Dt.buttonTemplate,title:"Merge Cell Right"})})),Xn("mergeCellsVertically",new Qn({type:"column",action:"merge",template:new Be({template:Dt.buttonTemplate,title:"Merge Cell Down"})})),Xn("splitCellHorizontally",new Qn({type:"row",action:"split",template:new Be({template:Dt.buttonTemplate,title:"Split Cell"})})),Xn("splitCellVertically",new Qn({type:"column",action:"split",template:new Be({template:Dt.buttonTemplate,title:"Split Cell"})})),Nn("tableAlignLeft",[{tags:["table"],attr:{style:{marginLeft:"",marginRight:"auto"}}},{tags:["table"],attr:{align:"left"}}]),Xn("tableAlignLeft",new Oi({format:Ae.tableAlignLeft,template:new Be({template:Dt.buttonTemplate,title:"Table Align Left"})})),Nn("tableAlignCenter",[{tags:["table"],attr:{style:{marginLeft:"auto",marginRight:"auto"}}},{tags:["table"],attr:{align:"center"}}]),Xn("tableAlignCenter",new Oi({format:Ae.tableAlignCenter,template:new Be({template:Dt.buttonTemplate,title:"Table Align Center"})})),Nn("tableAlignRight",[{tags:["table"],attr:{style:{marginLeft:"auto",marginRight:""}}},{tags:["table"],attr:{align:"right"}}]),Xn("tableAlignRight",new Oi({format:Ae.tableAlignRight,template:new Be({template:Dt.buttonTemplate,title:"Table Align Left"})}))}.apply(Ii={},ur=[Io,Li]))&&(mo=Ii),void 0===(yo=function(){var vn=window.kendo.jQuery,Xe=window.kendo,Ke=Xe.Class,ze=Xe.ui.editor,St=ze.RangeUtils,it=ze.Dom,Dt=ze.RestorePoint,Hn=ze.Marker,Ui=Xe.support.browser,Co=vn.extend,Sn=Ke.extend({init:function(Ve){this.editor=Ve;var Ge=Ve.options.pasteCleanup;this.cleaners=[new Dn(Ge),new kn(Ge),new ui(Ge),new Ot(Ge),new cn(Ge),new Ht(Ge),new $e(Ge),new Je(Ge)]},htmlToFragment:function(Ve){var Be=this.editor.document,At=it.create(Be,"div"),Rt=Be.createDocumentFragment();for(At.innerHTML=Ve;At.firstChild;)Rt.appendChild(At.firstChild);return Rt},isBlock:function(Ve){return/<(div|p|ul|ol|table|h[1-6])/i.test(Ve)},_startModification:function(){var Ve,Ge,Be=this.editor;if(!this._inProgress)return this._inProgress=!0,Ve=Be.getRange(),Ge=new Dt(Ve,Be.body),it.persistScrollTop(Be.document),{range:Ve,restorePoint:Ge}},_endModification:function(Ve){ze._finishUpdate(this.editor,Ve.restorePoint),this.editor._selectionChange(),this._inProgress=!1},_contentModification:function(Ve,Ge){var Be=this,At=Be.editor,Rt=Be._startModification();Rt&&(Ve.call(Be,At,Rt.range),setTimeout(function(){Ge.call(Be,At,Rt.range),Be._endModification(Rt)}))},_removeBomNodes:function(Ve){for(var Ge=St.textNodes(Ve),Be=0;Be<Ge.length;Be++)Ge[Be].nodeValue=it.stripBom(Ge[Be].nodeValue)||Ge[Be].nodeValue},_onBeforeCopy:function(Ve){var Ge=new Hn;Ge.add(Ve),this._removeBomNodes(Ve),Ge.remove(Ve),this.editor.selectRange(Ve)},oncopy:function(){this._onBeforeCopy(this.editor.getRange())},oncut:function(){this._onBeforeCopy(this.editor.getRange()),this._contentModification(vn.noop,vn.noop)},_fileToDataURL:function(Ve){var Ge=vn.Deferred(),Be=new FileReader;return!(Ve instanceof window.File)&&Ve.getAsFile&&(Ve=Ve.getAsFile()),Be.onload=Ge.resolve.bind(Ge),Be.readAsDataURL(Ve),Ge.promise()},_triggerPaste:function(Ve,Ge){var Be={html:Ve||""};Be.html=Be.html.replace(/\ufeff/g,""),this.editor.trigger("paste",Be),this.paste(Be.html,Ge||{})},_handleImagePaste:function(Ve){if("FileReader"in window&&!(Ui.msie&&Ui.version>10)){var Ge=Ve.clipboardData||Ve.originalEvent.clipboardData||window.clipboardData||{};return this._insertImages(Ge.items||Ge.files)}},_insertImages:function(Ve){if(Ve){var Ge=vn.grep(Ve,function(Rt){return/^image\//i.test(Rt.type)});if(!vn.grep(Ve,function(Rt){return/^text\/html/i.test(Rt.type)}).length&&Ge.length){var At=this._startModification();if(At)return vn.when.apply(vn,vn.map(Ge,this._fileToDataURL)).done(function(){var Rt=Array.prototype.slice.call(arguments),Pt=vn.map(Rt,function($t){return'<img src="'+$t.target.result+'" />'}).join("");this._triggerPaste(Pt),this._endModification(At)}.bind(this)),!0}}},onpaste:function(Ve){if("false"!==this.editor.body.contentEditable){if(this._handleImagePaste(Ve))return void Ve.preventDefault();this.expandImmutablesIn(),this._contentModification(function(Be,At){var Rt=it.create(Be.document,"div",{className:"k-paste-container",innerHTML:"\ufeff"}),Pt=Xe.support.browser,$t=Be.body;if(this._decoreateClipboardNode(Rt,$t),$t.appendChild(Rt),Pt.webkit&&this._moveToCaretPosition(Rt,At),Pt.msie&&Pt.version<11){Ve.preventDefault();var Xn=Be.createRange();Xn.selectNodeContents(Rt),Be.selectRange(Xn);var Nn=Be.document.body.createTextRange();Nn.moveToElementText(Rt),vn($t).off("paste"),Nn.execCommand("Paste"),vn($t).on("paste",this.onpaste.bind(this))}else{var Ae=Be.createRange();Ae.selectNodeContents(Rt),Be.selectRange(Ae)}At.deleteContents()},function(Be,At){var Pt,Rt="";Be.selectRange(At),(Pt=vn(Be.body).children(".k-paste-container")).each(function(){var $t=this.lastChild;$t&&it.is($t,"br")&&it.remove($t),Rt+=this.innerHTML}),Pt.remove(),this._triggerPaste(Rt,{clean:!0})})}},ondragover:function(Ve){(Ui.msie||Ui.edge)&&(Ve.stopPropagation(),Ve.preventDefault())},ondrop:function(Ve){if("FileReader"in window){var Ge=(Ve.originalEvent||Ve).dataTransfer||{};this._insertImages(Ge.items||Ge.files)&&Ve.preventDefault()}},_decoreateClipboardNode:function(Ve,Ge){if((Ui.msie||Ui.webkit)&&((Ve=vn(Ve)).css({borderWidth:"0px",width:"0px",height:"0px",overflow:"hidden",margin:"0",padding:"0"}),Ui.msie)){var Be=vn(Ge.ownerDocument.documentElement);Ve.css({fontVariant:"normal",fontWeight:"normal",lineSpacing:"normal",lineHeight:"normal",textDecoration:"none"});var At=Be.css("color");At&&Ve.css("color",At);var Rt=Be.css("fontFamily");Rt&&Ve.css("fontFamily",Rt);var Pt=Be.css("fontSize");Pt&&Ve.css("fontSize",Pt)}},_moveToCaretPosition:function(Ve,Ge){var At=this.editor.body,Rt=it.offset(Ve,At),Pt=this._caretOffset(Ge,At),Nn="translate("+(Pt.left-Rt.left)+"px,"+(Pt.top-Rt.top)+"px)";vn(Ve).css({"-webkit-transform":Nn,transform:Nn})},_caretOffset:function(Ve,Ge){var Pt,Be=this.editor,At=it.create(Be.document,"span",{innerHTML:"\ufeff"}),Rt=Ve.startContainer;if(Ve.collapsed){var $t=it.isDataNode(Rt);$t&&(it.isBom(Rt)||0===Ve.startOffset)?it.insertBefore(At,Rt):$t&&Ve.startOffset===Rt.length?it.insertAfter(At,Rt):(Ve.insertNode(At),Pt=!0)}else it.insertBefore(At,Rt=Rt===Ge?Rt.childNodes[Ve.startOffset]:Rt);var Xn=it.offset(At,Ge),Nn=At.previousSibling,Ae=At.nextSibling;if(it.remove(At),Pt&&it.isDataNode(Nn)&&it.isDataNode(Ae)&&!it.isBom(Nn)&&!it.isBom(Ae)){var He=Nn.length;Ae.data=Nn.data+Ae.data,Ve.setStart(Ae,He),it.remove(Nn),Ve.collapse(!0),Be.selectRange(Ve)}return Xn},expandImmutablesIn:function(Ve){var Ge=this.editor;if(Ge&&Ge.options.immutables){var Be=Ge.body;if(Ve=Ve||Ge.getRange(),Xe.ui.editor.Immutables.expandImmutablesIn(Ve),Ve.startContainer===Be&&0===Ve.startOffset){var Rt=Be.ownerDocument.createTextNode("\ufeff");Be.insertBefore(Rt,Be.childNodes[0]),Ve.setStartBefore(Rt)}Ge.selectRange(Ve)}},splittableParent:function(Ve,Ge){var Be,At;if(Ve)return it.closestEditableOfType(Ge,["p","ul","ol"])||Ge.parentNode;if(At=Ge.ownerDocument.body,it.isInline(Be=Ge.parentNode))for(;Be.parentNode!=At&&!it.isBlock(Be.parentNode);)Be=Be.parentNode;return Be},paste:function(Ve,Ge){var At,Rt,Pt,Be=this.editor;if(this.expandImmutablesIn(),!(Ge=Co({clean:!1,split:!0},Ge)).skipCleaners)for(At=0,Rt=this.cleaners.length;At<Rt;At++)this.cleaners[At].applicable(Ve)&&(Ve=this.cleaners[At].clean(Ve));Ge.clean&&(Ve=(Ve=Ve.replace(/(<br>(\s|&nbsp;)*)+(<\/?(div|p|li|col|t))/gi,"$3")).replace(/<(a|span)[^>]*><\/\1>/gi,"")),Ve=(Ve=Ve.replace(/<(a|span|font)([^>]*)> <\/\1>/gi,"<$1$2>&nbsp;</$1>")).replace(/^<li/i,"<ul><li").replace(/li>$/g,"li></ul>");var $t=this.isBlock(Ve);Be.focus();var Xn=Be.getRange();Xn.deleteContents(),Xn.startContainer==Be.document&&Xn.selectNodeContents(Be.body);var Nn=new Hn,Ae=Nn.addCaret(Xn),He=this.splittableParent($t,Ae),Kt=!1,On=He!=Be.body&&!it.is(He,"td");Ge.split&&On&&($t||it.isInline(He))&&(Xn.selectNode(Ae),St.split(Xn,He,!0),Kt=!0);var Fi=this.htmlToFragment(Ve);if(Fi.firstChild&&"k-paste-container"===Fi.firstChild.className){var Ci=[];for(At=0,Rt=Fi.childNodes.length;At<Rt;At++)Ci.push(Fi.childNodes[At].innerHTML);Fi=this.htmlToFragment(Ci.join("<br />"))}if(vn(Pt=Fi.childNodes).filter("table").addClass("k-table").end().find("table").addClass("k-table"),vn(Pt).each(function(ii,Vi){it.isBlock(Vi)&&!it.isSelfClosing(Vi)&&""===Vi.innerHTML&&Vi.appendChild(Be.document.createTextNode("\ufeff"))}),Xn.insertNode(Fi),He=this.splittableParent($t,Ae),Kt){for(;Ae.parentNode!=He;)it.unwrap(Ae.parentNode);it.unwrap(Ae.parentNode)}it.normalize(Xn.commonAncestorContainer),Ae.style.display="inline",it.restoreScrollTop(Be.document),it.scrollTo(Ae),Nn.removeCaret(Xn);var xi=Xn.commonAncestorContainer.parentNode;(Xn.collapsed&&"tbody"==it.name(xi)||Xn.collapsed&&"thead"==it.name(xi))&&(Xn.setStartAfter(vn(xi).closest("table")[0]),Xn.collapse(!0));var Wn=vn(Xn.commonAncestorContainer.parentNode).closest("table");if(Wn.get(0)){for(var Vt=Wn.parent().contents(),qt=Vt.length-1,bn=Vt.get(qt);null!==bn.nodeValue&&(" "===bn.nodeValue||""===bn.nodeValue);)bn=Vt.get(qt-=1);bn===Wn.get(0)&&!Wn.parents("table").length&&it.insertAfter(it.createEmptyNode(Be.document,"p"),Wn[0])}Be.selectRange(Xn)}}),Vn=Ke.extend({init:function(Ve){this.options=Ve||{},this.replacements=[]},clean:function(Ve,Ge){var Rt,Pt,At=Ge||this.replacements;for(Rt=0,Pt=At.length;Rt<Pt;Rt+=2)Ve=Ve.replace(At[Rt],At[Rt+1]);return Ve}}),Dn=Vn.extend({init:function(Ve){Vn.fn.init.call(this,Ve),this.replacements=[/<(\/?)script([^>]*)>/i,"<$1telerik:script$2>"]},applicable:function(Ve){return!this.options.none&&/<script[^>]*>/i.test(Ve)}}),kn=Vn.extend({init:function(Ve){Vn.fn.init.call(this,Ve),this.replacements=[/<span\s+class="Apple-tab-span"[^>]*>\s*<\/span>/gi," ",/\t/gi," ",/&nbsp;&nbsp; &nbsp;/gi," "]},applicable:function(Ve){return/&nbsp;&nbsp; &nbsp;|class="?Apple-tab-span/i.test(Ve)}}),ui=Vn.extend({init:function(Ve){Vn.fn.init.call(this,Ve),this.junkReplacements=[/<\?xml[^>]*>/gi,"",/<!--(.|\n)*?-->/g,"",/&quot;/g,"'",/<o:p>&nbsp;<\/o:p>/gi,"&nbsp;",/<\/?(meta|link|style|o:|v:|x:)[^>]*>((?:.|\n)*?<\/(meta|link|style|o:|v:|x:)[^>]*>)?/gi,"",/<\/o>/g,""],this.replacements=this.junkReplacements.concat([/(?:<br>&nbsp;[\s\r\n]+|<br>)*(<\/?(h[1-6]|hr|p|div|table|tbody|thead|tfoot|th|tr|td|li|ol|ul|caption|address|pre|form|blockquote|dl|dt|dd|dir|fieldset)[^>]*>)(?:<br>&nbsp;[\s\r\n]+|<br>)*/g,"$1",/<br><br>/g,"<BR><BR>",/<br>\n/g,"<br/>",/<br>(?!\n)/g," ",/<table([^>]*)>(\s|&nbsp;)+<t/gi,"<table$1><t",/<tr[^>]*>(\s|&nbsp;)*<\/tr>/gi,"",/<tbody[^>]*>(\s|&nbsp;)*<\/tbody>/gi,"",/<table[^>]*>(\s|&nbsp;)*<\/table>/gi,"",/<BR><BR>/g,"<br>",/^\s*(&nbsp;)+/gi,"",/(&nbsp;|<br[^>]*>)+\s*$/gi,"",/mso-[^;"]*;?/gi,"",/<(\/?)b(\s[^>]*)?>/gi,"<$1strong$2>",/<(\/?)font(\s[^>]*)?>/gi,this.convertFontMatch,/<(\/?)i(\s[^>]*)?>/gi,"<$1em$2>",/style=(["|'])\s*\1/g,"",/(<br[^>]*>)?\n/g,function(Ge,Be){return Be?Ge:" "}])},convertFontMatch:function(Ve,Ge,Be){var Rt=/face=['"]([^'"]+)['"]/i.exec(Be),Pt=Be&&Rt&&Rt[1];return Ge?"</span>":Pt?'<span style="font-family:'+Pt+'">':"<span>"},applicable:function(Ve){return/class="?Mso/i.test(Ve)||/style="[^"]*mso-/i.test(Ve)||/urn:schemas-microsoft-com:office/.test(Ve)},stripEmptyAnchors:function(Ve){return Ve.replace(/<a([^>]*)>\s*<\/a>/gi,function(Ge,Be){return!Be||Be.indexOf("href")<0?"":Ge})},listType:function(Ve,Ge){var Rt,Be=Ve.innerHTML,At=it.innerText(Ve),Pt=Be.match(/^(?:<span [^>]*texhtml[^>]*>)?<span [^>]*(?:Symbol|Wingdings)[^>]*>([^<]+)/i),$t=Pt&&Pt[1],Xn=/^[a-z\d]/i.test($t),Nn=function(Ae){return Ae.replace(/^(?:&nbsp;|[\u00a0\n\r\s])+/,"")};return Pt&&(Rt=!0),Be=Be.replace(/<\/?\w+[^>]*>/g,"").replace(/&nbsp;/g,"\xa0"),!Rt&&/^[\u2022\u00b7\u00a7\u00d8o]\u00a0+/.test(Be)||Rt&&/^.\u00a0+/.test(Be)||$t&&!Xn&&Ge?{tag:"ul",style:this._guessUnorderedListStyle(Nn(At))}:/^\s*\w+[\.\)][\u00a0 ]{2,}/.test(Be)?{tag:"ol",style:this._guessOrderedListStyle(Nn(At))}:void 0},_convertToLi:function(Ve){var Ge;return 1==Ve.childNodes.length?(Ge=Ve.firstChild.nodeType===it.nodeTypes.TEXT_NODE?it.innerText(Ve):Ve.firstChild.innerHTML.replace(/^\w+[\.\)](&nbsp;)+ /,""),Ge=this._checkForBullet(Ge)):Ge=this._getHtmlNoBullet(Ve),it.remove(Ve),it.create(document,"li",{innerHTML:Ge})},_checkForBullet:function(Ve){var Ge=it.create(document,"p",{innerHTML:Ve});return/^\s*\w+[\.\)]\s+/.test(Ge.innerText)?this._getHtmlNoBullet(Ge):Ve},_getHtmlNoBullet:function(Ve){var Be=it.name(Ve);return it.remove(Ve.firstChild),3==Ve.firstChild.nodeType&&/^[ivxlcdm]+\.$/i.test(Ve.firstChild.nodeValue)&&it.remove(Ve.firstChild),/^(&nbsp;|\s)+$/i.test(Ve.firstChild.innerHTML)&&it.remove(Ve.firstChild),"p"!=Be?"<"+Be+">"+Ve.innerHTML+"</"+Be+">":Ve.innerHTML},_guessUnorderedListStyle:function(Ve){return/^[\u2022\u00b7\u00FC\u00D8\u002dv-]/.test(Ve)?null:/^o/.test(Ve)?"circle":"square"},_guessOrderedListStyle:function(Ve){var Ge=null;return/^\d/.test(Ve)||(Ge=(/^[a-z]/.test(Ve)?"lower-":"upper-")+(/^[ivxlcdm]/i.test(Ve)?"roman":"alpha")),Ge},extractListLevels:function(Ve){return Ve.replace(/style=['"]?[^'"]*?mso-list:\s?[a-zA-Z]+(\d+)\s[a-zA-Z]+(\d+)\s(\w+)/gi,function(Be,At,Rt){return Xe.format('data-list="{0}" data-level="{1}" {2}',At,Rt,Be)})},_createList:function(Ve,Ge){return it.create(document,Ve,{style:{listStyleType:Ge}})},lists:function(Ve){var At,Pt,$t,Xn,Nn,Ae,He,Kt,On,Fi,Ci,xi,Wn,Ge=vn(Ve).find(it.blockElements.join(",")),Be=-1,Rt={},Vt=["p","h1","h2","h3","h4","h5","h6"];for(Kt=0;Kt<Ge.length;Kt++){var bn=(Wn=vn(On=Ge[Kt]).data()).list;if(At=it.name(On),!vn(On).parents("table").length){var ii=this.listType(On,Wn);if(!(Fi=ii&&ii.tag)||Vt.indexOf(At)<0){On.innerHTML?Pt&&!Ae&&Pt.appendChild(On):it.remove(On);continue}if(!Ui.msie){var Vi=Fi+bn;Rt[Ci=Wn.level||parseFloat(On.style.marginLeft||0)]||(Rt[Ci]={}),(!$t||$t<0)&&($t=Ci,Xn=bn,Nn=vn(Ve).find("[data-list='"+Xn+"']").last()[0],He=this._createList(Fi,ii.style),it.insertBefore(He,On),Be=Ci,Rt[Ci][Vi]=He),Ae=Nn===On,xi=Rt[Ci][Vi],(Ci>Be||!xi)&&(xi=this._createList(Fi,ii.style),Rt[Ci][Vi]=xi,Pt.appendChild(xi)),Pt=this._convertToLi(On),xi.appendChild(Pt),Ae?$t=Be=-1:Be=Ci}}}},removeAttributes:function(Ve){for(var $t,Ge=Ve.attributes,Be=Ge.length,At=[],Pt=function(Ae){(function(Ae){return["border","background","padding"].filter(function(Kt){return 0===Ae.trim().indexOf(Kt)}).length>0})(Ae)&&At.push(Ae.trim())};Be--;)"colspan"!=it.name(Ge[Be])&&("style"===($t=Ge[Be]).name&&("TD"===Ve.nodeName||"TH"===Ve.nodeName)&&$t.value.split(";").forEach(Pt),Ve.removeAttributeNode(Ge[Be]));At.length>0&&Ve.setAttribute("style",At.join(";"))},createColGroup:function(Ve){var Ge=Ve.cells,Be=vn(Ve).closest("table"),At=Be.children("colgroup");Ge.length<2||(At.length&&(Ge=At.children(),At[0].parentNode.removeChild(At[0])),(At=vn(vn.map(Ge,function(Rt){var Pt=Rt.width;return Pt&&0!==parseInt(Pt,10)?Xe.format('<col style="width:{0}px;"/>',Pt):"<col />"}).join(""))).is("colgroup")||(At=vn("<colgroup/>").append(At)),At.prependTo(Be))},convertHeaders:function(Ve){var Be,Ge=Ve.cells,At=vn.map(Ge,function(Rt){var Pt=vn(Rt).children("p").children("strong")[0];if(Pt&&"strong"==it.name(Pt))return Pt});if(At.length==Ge.length){for(Be=0;Be<At.length;Be++)it.unwrap(At[Be]);for(vn(Ve).closest("table").find("colgroup").after("<thead></thead>").end().find("thead").append(Ve),Be=0;Be<Ge.length;Be++)it.changeTag(Ge[Be],"th")}},removeParagraphs:function(Ve){var Ge,Be,At,Pt;for(Ge=0;Ge<Ve.length;Ge++)for(this.removeAttributes(Ve[Ge]),Be=0,At=(Pt=vn(Ve[Ge]).children("p")).length;Be<At;Be++)Be<At-1&&it.insertAfter(it.create(document,"br"),Pt[Be]),it.unwrap(Pt[Be])},removeTextNodes:function(Ve){var Ge,Be,At,Rt,Pt;for(Ge=0;Ge<Ve.length;Ge++)for(At=(Pt=Ve[Ge]).childNodes,Be=0;Be<At.length;Be++)(Rt=At[Be]).nodeType===it.nodeTypes.TEXT_NODE&&Pt.removeChild(Rt)},tables:function(Ve){var At,Rt,Pt,$t,Xn,Ge=vn(Ve).find("table"),Be=this;for($t=0;$t<Ge.length;$t++){for(Pt=Rt=(At=Ge[$t].rows)[0],Xn=1;Xn<At.length;Xn++)At[Xn].cells.length>Pt.cells.length&&(Pt=At[Xn]);Be.createColGroup(Pt),Be.convertHeaders(Rt),Be.removeAttributes(Ge[$t]),Be.removeParagraphs(Ge.eq($t).find("td,th")),Be.removeTextNodes(Ge.eq($t).find("tr"))}},headers:function(Ve){for(var Ge=vn(Ve).find("p.MsoTitle"),Be=0;Be<Ge.length;Be++)it.changeTag(Ge[Be],"h1")},removeFormatting:function(Ve){vn(Ve).find("*").each(function(){vn(this).css({fontSize:"",fontFamily:""}),!this.getAttribute("style")&&!this.style.cssText&&this.removeAttribute("style")})},clean:function(Ve){var Be,Ge=this,At=this.options;return At.none?(Ve=Vn.fn.clean.call(Ge,Ve,this.junkReplacements),Ve=Ge.stripEmptyAnchors(Ve)):(Ve=At.msConvertLists?this.extractListLevels(Ve):Ve,Ve=Vn.fn.clean.call(Ge,Ve),Ve=Ge.stripEmptyAnchors(Ve),Be=it.create(document,"div",{innerHTML:Ve}),Ge.headers(Be),At.msConvertLists&&Ge.lists(Be),Ge.tables(Be),At.msAllFormatting&&Ge.removeFormatting(Be),Ve=Be.innerHTML.replace(/(<[^>]*)\s+class="?[^"\s>]*"?/gi,"$1")),Ve}}),Ot=Vn.extend({init:function(Ve){Vn.fn.init.call(this,Ve),this.replacements=[/\s+class="Apple-style-span[^"]*"/gi,"",/<(div|p|h[1-6])\s+style="[^"]*"/gi,"<$1",/^<div>(.*)<\/div>$/,"$1"]},applicable:function(Ve){return/class="?Apple-style-span|style="[^"]*-webkit-nbsp-mode/i.test(Ve)}}),en=Vn.extend({clean:function(Ve){var Ge=it.create(document,"div",{innerHTML:Ve});return(Ge=this.cleanDom(Ge)).innerHTML},cleanDom:function(Ve){return Ve}}),cn=en.extend({cleanDom:function(Ve){var Ge=this.collectTags();return vn(Ve).find(Ge).each(function(){it.unwrap(this)}),Ve},collectTags:function(){if(this.options.span)return"span"},applicable:function(){return this.options.span}}),Ht=en.extend({cleanDom:function(Ve){var Ge=this.collectAttr();return vn(Ve).find("["+Ge.join("],[")+"]").removeAttr(Ge.join(" ")),Ve},collectAttr:function(){return this.options.css?["class","style"]:[]},applicable:function(){return this.options.css}}),ft=function(){this.text="",this.add=function(Ve){this.text+=Ve}},Nt=Ke.extend({init:function(Ve){this.separators=Ve||{text:" ",line:"<br/>"},this.lines=[],this.inlineBlockText=[],this.resetLine()},appendText:function(Ve){3===Ve.nodeType&&(Ve=Ve.nodeValue),this.textContainer.add(Ve)},appendInlineBlockText:function(Ve){this.inlineBlockText.push(Ve)},flashInlineBlockText:function(){this.inlineBlockText.length&&(this.appendText(this.inlineBlockText.join(" ")),this.inlineBlockText=[])},endLine:function(){this.flashInlineBlockText(),this.resetLine()},html:function(){var Ve=this.separators,Ge="",Be=this.lines;this.flashInlineBlockText();for(var At=0,Rt=Be.length,Pt=Rt-1;At<Rt;At++){for(var $t=Be[At],Xn=0,Nn=$t.length,Ae=Nn-1;Xn<Nn;Xn++)Ge+=$t[Xn].text,Xn!==Ae&&(Ge+=Ve.text);At!==Pt&&(Ge+=Ve.line)}return Ge},resetLine:function(){this.textContainer=new ft,this.line=[],this.line.push(this.textContainer),this.lines.push(this.line)}}),an=Ke.extend({init:function(Ve){this.callback=Ve},enumerate:function(Ve){if(Ve){var Ge=this.callback(Ve),Be=Ve.firstChild;!Ge&&Be&&this.enumerate(Be),this.enumerate(Ve.nextSibling)}}}),$e=Vn.extend({init:function(Ve){Vn.fn.init.call(this,Ve),this.hasText=!1,this.enumerator=new an(this.buildText.bind(this))},clean:function(Ve){var Ge=it.create(document,"div",{innerHTML:Ve});return this.cleanDom(Ge)},cleanDom:function(Ve){return this.separators=this.getDefaultSeparators(),this.htmlLines=new Nt(this.separators),this.enumerator.enumerate(Ve.firstChild),this.hasText=!1,this.htmlLines.html()},buildText:function(Ve){if(it.isDataNode(Ve)){if(it.isEmptyspace(Ve))return;this.htmlLines.appendText(Ve.nodeValue.replace("\n",this.separators.line)),this.hasText=!0}else{if(it.isBlock(Ve)&&this.hasText)return(this.actions[it.name(Ve)]||this.actions.block)(this,Ve);it.isBr(Ve)&&this.htmlLines.appendText(this.separators.line)}},applicable:function(){var Ve=this.options;return Ve.all||Ve.keepNewLines},getDefaultSeparators:function(){return this.options.all?{text:" ",line:" "}:{text:" ",line:"<br/>"}},actions:{ul:vn.noop,ol:vn.noop,table:vn.noop,thead:vn.noop,tbody:vn.noop,td:function(Ve,Ge){var At=new $e({all:!0}).cleanDom(Ge);return Ve.htmlLines.appendInlineBlockText(At),!0},block:function(Ve){Ve.htmlLines.endLine()}}}),Je=Vn.extend({clean:function(Ve){return this.options.custom(Ve)},applicable:function(){return"function"==typeof this.options.custom}});Co(ze,{Clipboard:Sn,Cleaner:Vn,ScriptCleaner:Dn,TabCleaner:kn,MSWordFormatCleaner:ui,WebkitFormatCleaner:Ot,HtmlTagsCleaner:cn,HtmlAttrCleaner:Ht,HtmlContentCleaner:$e,HtmlTextLines:Nt,CustomCleaner:Je})}.apply(lr={},ur=[Bi]))&&(yo=lr),void 0===(Yr=function(){var vn=window.kendo.jQuery,Xe=window.kendo,Ke=Xe.Class,ze=Xe.ui.editor,St=ze.RangeUtils,it=ze.Dom,Dt=ze.RestorePoint,Hn=ze.Marker,Ui=Xe.support.browser,Co="<span  class='k-br'>\ufeff</span>",Sn=vn.extend,Vn=it.nodeTypes,Dn="previousSibling";function ui(Ge,Be,At){for(var Rt=Ge?Ge[Be]:null;Rt&&!At(Rt);)Rt=Rt[Be];return Rt}var Ot="td,th,caption",en="table,tbody,thead,tfoot,tr",cn=en+","+Ot,Ht=function(Ge){return!Ge.collapsed&&vn(Ge.commonAncestorContainer).is(en)},ft=Ke.extend({remove:function(Ge){var At=new Hn;At.add(Ge,!1);var Rt=St.getAll(Ge,function(Kt){return vn(Kt).is(cn)}),Pt=St.documentFromRange(Ge),$t=At.start,Xn=At.end,Nn=Ot.split(","),Ae=it.parentOfType($t,Nn),He=it.parentOfType(Xn,Nn);this._removeContent($t,Ae,!0),this._removeContent(Xn,He,!1),vn(Rt).each(function(Kt,On){((On=vn(On)).is(Ot)?On:On.find(Ot)).each(function(Fi,Ci){Ci.innerHTML="&#65279;"})}),Ae&&!$t.previousSibling&&it.insertBefore(Pt.createTextNode("\ufeff"),$t),He&&!Xn.nextSibling&&it.insertAfter(Pt.createTextNode("\ufeff"),Xn),Ae?Ge.setStartBefore($t):Rt[0]&&(Ae=(Ae=vn(Rt[0])).is(Ot)?Ae:Ae.find(Ot).first()).length&&Ge.setStart(Ae.get(0),0),Ge.collapse(!0),it.remove($t),it.remove(Xn)},_removeContent:function(Ge,Be,At){if(Be){var Pt,Rt=At?"nextSibling":"previousSibling",$t=function(Xn){for(;Xn&&!Xn[Rt];)Xn=Xn.parentNode;return Xn&&vn.contains(Be,Xn)?Xn[Rt]:null};for(Ge=$t(Ge);Ge;)Pt=$t(Ge),it.remove(Ge),Ge=Pt}}}),Nt=Ke.extend({init:function(Ge){this.editor=Ge},keydown:function(Ge){var Be=this,At=Be.editor,Rt=At.keyboard,Pt=Rt.isTypingKey(Ge),$t=Sn(vn.Event(),Ge);if(Be.editor.trigger("keydown",$t),$t.isDefaultPrevented())return Ge.preventDefault(),!0;if(!$t.isDefaultPrevented()&&Pt&&!Rt.isTypingInProgress()){var Xn=At.getRange(),Nn=At.body;return Be.startRestorePoint=new Dt(Xn,Nn),Ht(Xn)&&(new ft(At).remove(Xn),At.selectRange(Xn)),Ui.webkit&&!Xn.collapsed&&function kn(Ge,Be){return Be.startContainer===Ge&&Be.endContainer===Ge&&0===Be.startOffset&&Be.endOffset==Ge.childNodes.length}(Nn,Xn)&&(Nn.innerHTML=""),At.immutables&&ze.Immutables.immutablesContext(Xn)&&new ze.BackspaceHandler(At).deleteSelection(Xn),Rt.startTyping(function(){Be._removeBomSpan(),Be.endRestorePoint=ze._finishUpdate(At,Be.startRestorePoint)}),!0}return!1},keyup:function(Ge){var Be=this.editor.keyboard;return this.editor.trigger("keyup",Ge),!!Be.isTypingInProgress()&&(Be.endTyping(),!0)},_removeBomSpan:function(){var Ge=this.editor.getRange().commonAncestorContainer;it.emptyNode(Ge)||(3===Ge.nodeType&&(Ge=Ge.parentNode),it.insignificant(Ge)&&(Ge.textContent=it.stripBom(Ge.textContent),it.unwrap(Ge)))}}),an=Ke.extend({init:function(Ge){this.editor=Ge},_addCaret:function(Ge){var Be=it.create(this.editor.document,"a");return!Xe.support.browser.chrome&&Ge.firstChild&&Ge.firstChild.nodeType===Vn.ELEMENT_NODE&&(Ge=Ge.firstChild),it.insertAt(Ge,Be,0),it.stripBomNode(Be.previousSibling),it.stripBomNode(Be.nextSibling),Be},_restoreCaret:function(Ge){var Be=this.editor.createRange();!Ge.nextSibling&&it.isDataNode(Ge.previousSibling)?Be.setStart(Ge.previousSibling,Ge.previousSibling.length):Be.setStartAfter(Ge),Be.collapse(!0),this.editor.selectRange(Be),it.remove(Ge)},_handleDelete:function(Ge){var At=it.closestEditableOfType(Ge.endContainer,it.blockElements);if(At&&ze.RangeUtils.isEndOf(Ge,At)){var Rt=it.next(At);if(!Rt||"p"!=it.name(Rt))return!1;var Pt=it.significantChildNodes(Rt)[0];Pt=Pt&&it.isInline(Pt)?Pt:Rt;var $t=this._addCaret(Pt);return this._merge(At,Rt),this._restoreCaret($t),!0}return!1},_cleanBomBefore:function(Ge){for(var Be=Ge.startOffset,At=Ge.startContainer,Rt=At.nodeValue,Pt=0;Be-Pt>=0&&"\ufeff"==Rt[Be-Pt-1];)Pt++;Pt>0&&(At.deleteData(Be-Pt,Pt),Ge.setStart(At,Math.max(0,Be-Pt)),Ge.collapse(!0),this.editor.selectRange(Ge))},_handleBackspace:function(Ge){var $t,Be=Ge.startContainer,At=it.closestEditableOfType(Be,["li"]),Rt=it.closestEditableOfType(Be,"p,h1,h2,h3,h4,h5,h6".split(",")),Pt=this.editor;if(it.isDataNode(Be)){if(Ge.collapsed&&/^\s[\ufeff]+$/.test(Be.nodeValue))return Ge.setStart(Be,0),Ge.setEnd(Be,Be.length),Pt.selectRange(Ge),!1;this._cleanBomBefore(Ge)}$t=ui(Rt,Dn,function(ii){return!it.htmlIndentSpace(ii)}),Ge.collapsed&&Ge.startOffset!==Ge.endOffset&&Ge.startOffset<0&&(Ge.startOffset=0,Ge.endOffset=0,Pt.selectRange(Ge));var Xn=At&&ze.RangeUtils.isStartOf(Ge,At),Nn=At&&vn(At).index(),Ae=Xn&&Nn>0;if(Ae&&(Rt=At,$t=it.prev(At)),Rt&&$t&&it.is($t,"table")&&ze.RangeUtils.isStartOf(Ge,Rt))return""===Rt.innerText&&(Rt.innerHTML="\ufeff"),!0;if(ze.RangeUtils.isStartOf(Ge,Rt)&&parseInt(Rt.style.marginLeft,10)>0)return Pt.exec("outdent"),!0;if(Rt&&$t&&ze.RangeUtils.isStartOf(Ge,Rt)||Ae){var He=it.significantChildNodes(Rt)[0];He=He&&it.isInline(He)?He:Rt;var Kt=this._addCaret(He);return this._merge($t,Rt),this._restoreCaret(Kt),!0}if(Xn&&0===Nn){var On=At.firstChild;On||(At.innerHTML=ze.emptyElementContent,On=At.firstChild);var Fi=new ze.ListFormatter(it.name(At.parentNode),"p");return Ge.selectNodeContents(At),Fi.toggle(Ge),it.insignificant(On)?Ge.setStartBefore(On):Ge.setStart(On,0),Pt.selectRange(Ge),!0}var Ci=Be.childNodes[Ge.startOffset-1],xi=Ge,Wn=Ci&&it.closestEditableOfType(Ci,["a"]),Vt=ui(Ci||Be,Dn,function(ii){return!it.isDataNode(ii)||!it.isBom(ii)&&ii.length>0});if((Wn||(0===Ge.startOffset||Ci)&&it.is(Vt,"a"))&&(Wn=Wn||Vt,(xi=Pt.createRange()).setStart(Wn,Wn.childNodes.length),xi.collapse(!0)),(Wn=Wn||it.closestEditableOfType(Ci||xi.startContainer,["a"]))&&ze.RangeUtils.isEndOf(xi,Wn)){var bn=new ze.UnlinkCommand({range:xi,body:Pt.body,immutables:!!Pt.immutables});Pt.execCommand(bn),Pt._selectionChange()}return!1},_handleSelection:function(Ge){var $t,Be=Ge.commonAncestorContainer,At=it.closest(Be,"table"),Rt=ze.emptyElementContent,Pt=this.editor;if(Ht(Ge))return new ft(Pt).remove(Ge),Pt.selectRange(Ge),!0;var Nn=new Hn;Nn.add(Ge,!1),Ge.commonAncestorContainer===Pt.body&&this._surroundFullyContent(Nn,Ge),Pt.immutables&&this._handleImmutables(Nn),this._surroundFullySelectedAnchor(Nn,Ge),Ge.setStartAfter(Nn.start),Ge.setEndBefore(Nn.end);var Ae=Ge.startContainer,He=Ge.endContainer;return Ge.deleteContents(),"li"===He.tagName.toLocaleLowerCase()&&it.emptyNode(He)&&(Ge.selectNode(He),Ge.deleteContents()),At&&""===vn(At).text()&&(Ge.selectNode(At),Ge.deleteContents()),"p"===it.name(Be=Ge.commonAncestorContainer)&&""===Be.innerHTML&&(Be.innerHTML=Rt,Ge.setStart(Be,0)),this._join(Ae,He),it.insertAfter(Pt.document.createTextNode("\ufeff"),Nn.start),Nn.remove(Ge),"tr"==it.name(Ae=Ge.startContainer)&&(Ae=Ae.childNodes[Math.max(0,Ge.startOffset-1)],Ge.setStart(Ae,it.getNodeLength(Ae))),Ge.collapse(!0),Pt.selectRange(Ge),$t=Ae.parentElement||Ae.parentNode,it.isDataNode(Ae)&&!it.emptyNode($t)&&this._cleanBomBefore(Ge),!0},_handleImmutables:function(Ge){var Be=ze.Immutables.immutableParent,At=Be(Ge.start),Rt=Be(Ge.start);At&&it.insertBefore(Ge.start,At),Rt&&it.insertAfter(Ge.end,Rt),At&&it.remove(At),Rt&&Rt.parentNode&&it.remove(Rt)},_surroundFullyContent:function(Ge,Be){var At=Be.commonAncestorContainer.children;this._moveMarker(Ge,Be,At[0],At[At.length-1])},_surroundFullySelectedAnchor:function(Ge,Be){var Rt=vn(Ge.start).closest("a").get(0),$t=vn(Ge.end).closest("a").get(0);this._moveMarker(Ge,Be,Rt,$t)},_moveMarker:function(Ge,Be,At,Rt){var Pt=Ge.start,$t=Ge.end;At&&St.isStartOf(Be,At)&&it.insertBefore(Pt,At),Rt&&St.isEndOf(Be,Rt)&&it.insertAfter($t,Rt)},_root:function(Ge){for(;Ge&&"body"!=it.name(Ge)&&Ge.parentNode&&"body"!=it.name(Ge.parentNode);)Ge=Ge.parentNode;return Ge},_join:function(Ge,Be){(Ge=this._root(Ge))!=(Be=this._root(Be))&&it.is(Be,"p")&&this._merge(Ge,Be)},_merge:function(Ge,Be){for(it.removeTrailingBreak(Ge);Ge&&Be.firstChild;)1==Ge.nodeType?(Ge=it.list(Ge)?Ge.children[Ge.children.length-1]:Ge)&&Ge.appendChild(Be.firstChild):Ge.nodeType===Vn.TEXT_NODE?this._mergeWithTextNode(Ge,Be.firstChild):Ge.parentNode.appendChild(Be.firstChild);it.remove(Be)},_mergeWithTextNode:function(Ge,Be){Ge&&Ge.nodeType===Vn.TEXT_NODE&&(Ge.nextSibling&&this._isCaret(Ge.nextSibling)?it.insertAfter(Be,Ge.nextSibling):it.insertAfter(Be,Ge))},_isCaret:function(Ge){return vn(Ge).is("a")},keydown:function(Ge){var Be,At,Rt=this.editor,Pt=Rt.getRange(),$t=Ge.keyCode,Xn=Xe.keys,Nn=$t===Xn.BACKSPACE,Ae=$t==Xn.DELETE;Rt.immutables&&Rt.immutables.keydown(Ge,Pt)||(!Nn&&!Ae||Pt.collapsed?Nn?Be="_handleBackspace":Ae&&(Be="_handleDelete"):Be="_handleSelection",Be&&(At=new Dt(Pt,Rt.body),this[Be](Pt)&&(Ge.preventDefault(),ze._finishUpdate(Rt,At))))},deleteSelection:function(Ge){this._handleSelection(Ge)},keyup:vn.noop}),$e=Ke.extend({init:function(Ge){this.editor=Ge,this.systemCommandIsInProgress=!1},createUndoCommand:function(){this.startRestorePoint=this.endRestorePoint=ze._finishUpdate(this.editor,this.startRestorePoint)},changed:function(){return!!this.startRestorePoint&&this.startRestorePoint.html!=this.editor.body.innerHTML},keydown:function(Ge){var Be=this,At=Be.editor,Rt=At.keyboard;return Rt.isModifierKey(Ge)?(Rt.isTypingInProgress()&&Rt.endTyping(!0),Be.startRestorePoint=new Dt(At.getRange(),At.body),!0):!!Rt.isSystem(Ge)&&(Be.systemCommandIsInProgress=!0,Be.changed()&&(Be.systemCommandIsInProgress=!1,Be.createUndoCommand()),!0)},keyup:function(){return!(!this.systemCommandIsInProgress||!this.changed()||(this.systemCommandIsInProgress=!1,this.createUndoCommand(),0))}}),Je=Ke.extend({init:function(Ge){this.editor=Ge},keydown:function(Ge){!Ui.webkit||Ge.isDefaultPrevented()||!Ge.ctrlKey||65!=Ge.keyCode||Ge.altKey||Ge.shiftKey||(this.editor.options.immutables&&this._toSelectableImmutables(),this._selectEditorBody())},_selectEditorBody:function(){var Ge=this.editor,Be=Ge.getRange();Be.selectNodeContents(Ge.body),setTimeout(function(){Ge.selectRange(Be)})},_toSelectableImmutables:function(){for(var Be=this.editor.body,At=ze.Immutables.immutable,Rt=it.emptyTextNode,Pt=Be.firstChild,$t=Be.lastChild;Rt(Pt);)Pt=Pt.nextSibling;for(;Rt($t);)$t=$t.previousSibling;Pt&&At(Pt)&&vn(Co).prependTo(Be),$t&&At($t)&&vn(Co).appendTo(Be)},keyup:vn.noop}),Ve=Ke.extend({init:function(Ge){this.handlers=Ge,this.typingInProgress=!1},isCharacter:function(Ge){return Ge>=48&&Ge<=90||Ge>=96&&Ge<=111||Ge>=186&&Ge<=192||Ge>=219&&Ge<=222||229==Ge},toolFromShortcut:function(Ge,Be){var Rt,Pt,At=String.fromCharCode(Be.keyCode),$t=this._getShortcutModifier(Be,navigator.platform);for(Rt in Ge)if(((Pt=vn.extend({ctrl:!1,alt:!1,shift:!1},Ge[Rt].options)).key==At||Pt.key==Be.keyCode)&&Pt.ctrl==$t&&Pt.alt==Be.altKey&&Pt.shift==Be.shiftKey)return Rt},_getShortcutModifier:function(Ge,Be){return Be.toUpperCase().indexOf("MAC")>=0?Ge.metaKey:Ge.ctrlKey},toolsFromShortcut:function(Ge,Be){var Rt,Pt,At=String.fromCharCode(Be.keyCode),Xn=[],Nn=function(Ae){return Ae==At||Ae==Be.keyCode||Ae==Be.charCode};for(Rt in Ge)Pt=vn.extend({ctrl:!1,alt:!1,shift:!1},Ge[Rt].options),(Array.isArray(Pt.key)?vn.grep(Pt.key,Nn).length>0:Nn(Pt.key))&&Pt.ctrl==Be.ctrlKey&&Pt.alt==Be.altKey&&Pt.shift==Be.shiftKey&&Xn.push(Ge[Rt]);return Xn},isTypingKey:function(Ge){var Be=Ge.keyCode;return this.isCharacter(Be)&&!Ge.ctrlKey&&!Ge.altKey||32==Be||13==Be||8==Be||46==Be&&!Ge.shiftKey&&!Ge.ctrlKey&&!Ge.altKey},isModifierKey:function(Ge){var Be=Ge.keyCode;return 17==Be&&!Ge.shiftKey&&!Ge.altKey||16==Be&&!Ge.ctrlKey&&!Ge.altKey||18==Be&&!Ge.ctrlKey&&!Ge.shiftKey},isSystem:function(Ge){return 46==Ge.keyCode&&Ge.ctrlKey&&!Ge.altKey&&!Ge.shiftKey},startTyping:function(Ge){this.onEndTyping=Ge,this.typingInProgress=!0},stopTyping:function(){this.typingInProgress&&this.onEndTyping&&this.onEndTyping(),this.typingInProgress=!1},endTyping:function(Ge){var Be=this;Be.clearTimeout(),Ge?Be.stopTyping():Be.timeout=window.setTimeout(Be.stopTyping.bind(Be),1e3)},isTypingInProgress:function(){return this.typingInProgress},clearTimeout:function(){window.clearTimeout(this.timeout)},notify:function(Ge,Be){var At,Rt=this.handlers;for(At=0;At<Rt.length&&!Rt[At][Be](Ge);At++);},keydown:function(Ge){this.notify(Ge,"keydown")},keyup:function(Ge){this.notify(Ge,"keyup")}});Sn(ze,{TypingHandler:Nt,SystemHandler:$e,BackspaceHandler:an,SelectAllHandler:Je,Keyboard:Ve})}.apply(Gs={},ur=[Bi]))&&(Yr=Gs),void 0===(fi=function(){var vn=window.kendo.jQuery,Ke=window.kendo.ui.editor,ze=Ke.Command,St=Ke.EditorUtils,it=St.registerTool,Dt=Ke.Tool,Hn=Ke.ToolTemplate,Ui=vn.extend,Co=ze.extend({init:function(Sn){this.async=!0,ze.fn.init.call(this,Sn)},exec:function(){var Sn=this,Vn=Sn.lockRange(!0),Dn=Sn.editor;Dn._destroyResizings(),Dn.saveAsPDF().then(function(){Sn.releaseRange(Vn),Dn._initializeColumnResizing(),Dn._initializeRowResizing(),Dn._initializeElementResizing()})}});Ui(Ke,{ExportPdfCommand:Co}),it("pdf",new Dt({command:Co,template:new Hn({template:St.buttonTemplate,title:"Export PDF"})}))}.apply(Ho={},ur=[Bi]))&&(fi=Ho),void 0===(_t=function(){var vn=window.kendo.jQuery,Xe=window.kendo,Ke=Xe.ui.editor,ze=Ke.Command,St=Ke.EditorUtils,it=St.registerTool,Dt=Ke.Tool,Hn=Ke.ToolTemplate,Ui=vn.extend,Co=ze.extend({init:function(Sn){ze.fn.init.call(this,Sn),this.managesUndoRedo=!0},exec:function(){var Sn=this.editor;Xe.support.browser.msie?Sn.document.execCommand("print",!1,null):Sn.window.print&&Sn.window.print()}});Ui(Ke,{PrintCommand:Co}),it("print",new Dt({command:Co,template:new Hn({template:St.buttonTemplate,title:"Print"})}))}.apply(Zn={},ur=[Bi]))&&(_t=Zn),void 0===(qo=function(){var vn=window.kendo.jQuery,Ke=window.kendo.ui.editor,ze=Ke.Tool,St=Ke.Command,it=Ke.ToolTemplate,Dt=Ke.EditorUtils,Hn=Ke.Dom,Ui=Ke.RangeUtils,Co=Dt.registerTool,Sn=St.extend({init:function(ui){St.fn.init.call(this,ui)},exec:function(){var ui=this.lockRange(!0);this.inlineStyles=[],this.blockStyles=[],this.collectStyles(ui),this.editor.inlineStyles=this.inlineStyles,this.editor.blockStyles=this.blockStyles,this.releaseRange(ui)},collectStyles:function(ui){var en,Ot=Ui.nodes(ui);for(en=1===Ot.length?Ot[0].parentNode:ui.startContainer;en&&!Hn.is(en,"body")&&"editor"!==en.getAttribute("data-role");)Hn.isBlock(en)?(this.populateStyles(en,"blockStyles"),en=Hn.is(en,"li")?en.parentNode:null):(this.populateStyles(en,"inlineStyles"),en=en.parentNode)},populateStyles:function(ui,Ot){var Nt,an,$e,Je,en=ui.style,cn=ui.attributes,Ht={tags:[ui.tagName],attr:{style:{}}};for(Je=0;en&&Je<en.length;Je++)Ht.attr.style[Nt=en[Je]]=en[Nt];for(Je=0;cn&&Je<cn.length;Je++)$e=cn[Je].nodeValue,"style"!==(an=cn[Je].nodeName)&&("class"===an?Ht.attr.className=$e:Ht.attr[an]=$e);this[Ot].push(Ht)}}),Vn=St.extend({init:function(ui){St.fn.init.call(this,ui)},exec:function(){var ft,ui=this.lockRange(!0),Ot=Ui.getMarkers(ui),en=this.editor,cn=en.inlineStyles,Ht=en.blockStyles;(!cn||0===cn.length)&&(!Ht||0===Ht.length)||(3===Ot.length&&(this.marker.removeCaret(ui),this.marker.caret=null),this.removeEmptyElementsFromRange(ui),ft=Ui.nodes(ui),this.cleanInlineParents(ft),Hn.normalize(ui.commonAncestorContainer),2===Ot.length?(ui.setStartAfter(Ot[0]),ui.setEndBefore(Ot[1])):(ui.setStartBefore(ft[0]),ui.setEndAfter(ft[0])),(ft=Ui.nodes(ui))&&Ht&&Ht.length&&this.applyBlockStyles(ft,Ht),ft&&cn&&cn.length&&this.applyInlineStyles(ft,cn),this.releaseRange(ui))},removeEmptyElementsFromRange:function(ui){var en,cn;if((en=Ui.getAll(ui,function(Ht){return Hn.isInline(Ht)&&!Ht.firstChild&&!Hn.isMarker(Ht)}))&&en.length>0)for(cn=0;cn<en.length;cn++)en[cn].parentNode.removeChild(en[cn])},cleanInlineParents:function(ui){var Ot,en,cn,Ht,ft,Nt,an;for(Ot=0;Ot<ui.length;Ot++)if(cn=(en=ui[Ot]).parentNode,!this.immutableParent(en))for(;cn&&Hn.isInline(cn);){for(Ht=cn.childNodes,ft=0;ft<Ht.length;ft++)!Hn.isMarker(Nt=Ht[ft])&&Nt!==en&&((an=cn.cloneNode(!0)).innerHTML="",Hn.wrap(Nt,an));Hn.unwrap(cn),cn=en.parentNode}},applyBlockStyles:function(ui,Ot){var ft,Nt,an,$e,Je,Ve,Ge,Be,At,Rt,Pt,$t,Nn,Ae,en=Ot[0].tags[0],cn=Ot[0].attr,Ht=this.editor.document;for(ft=0,Nt=ui.length;ft<Nt;ft++)if(!Hn.isWhitespace(an=ui[ft])&&!this.immutableParent(an))if("BODY"!==(Je=Hn.blockParentOrBody(an)).tagName&&Je.tagName!==en){if("LI"!==Je.tagName&&"TD"!==Je.tagName&&"TH"!==Je.tagName){for(Ge=[],Be=[],At=an.previousSibling,Rt=an.nextSibling;At;)Hn.isMarker(At)||Ge.push(At),At=At.previousSibling;if(Ge.length)for((Pt=Je.cloneNode(!0)).innerHTML="",Hn.insertBefore(Pt,Ge[0]),Nn=0;Nn<Ge.length;Nn++)Hn.insertAt(Pt,Ge[Nn],0);for(;Rt;)Hn.isMarker(Rt)||Be.push(Rt),Rt=Rt.nextSibling;if(Be.length)for(($t=Je.cloneNode(!0)).innerHTML="",Hn.insertBefore($t,Be[0]),Nn=0;Nn<Be.length;Nn++)$t.appendChild(Be[Nn]);Hn.unwrap(Je)}$e=Hn.create(Ht,en,cn),Hn.wrap(an,$e)}else Je.tagName===en&&Hn.attr(Je,cn);if(Je&&2===Ot.length&&"LI"!==Je.tagName&&"LI"===en){for(Ae=[];Hn.is($e,"li");)Ae.push($e),$e=Hn.prev($e);for(Ve=Hn.create(Ht,Ot[1].tags[0],Ot[1].attr),Hn.insertBefore(Ve,Ae[Ae.length-1]),Ve.appendChild(Ae[0]),ft=1,Nt=Ae.length;ft<Nt;ft++)Hn.insertBefore(Ae[ft],Ve.firstChild)}else Je&&2===Ot.length&&"LI"!==Je.tagName&&(Ve=Hn.create(Ht,Ot[1].tags[0],Ot[1].attr),Hn.wrap($e,Ve))},applyInlineStyles:function(ui,Ot){var cn,Ht,ft,Nt,an,$e,en=this.editor.document;for(Nt=0;Nt<Ot.length;Nt++)Ht=Hn.create(en,(cn=Ot[Nt]).tags[0],cn.attr),ft&&Ht.appendChild(ft),ft=Ht;if(ft)for(Nt=0;Nt<ui.length;Nt++)if(!Hn.isWhitespace($e=ui[Nt])&&!this.immutableParent($e)){for(an=ft.cloneNode(!0),Hn.insertBefore(an,$e);an.children&&an.children.length;)an=an.children[0];an.appendChild($e)}},immutables:function(){return this.editor&&this.editor.options.immutables},immutableParent:function(ui){return this.immutables()&&Ke.Immutables.immutableParent(ui)}}),Dn=ze.extend({init:function(ui){ze.fn.init.call(this,ui)},command:function(ui){return new Sn(ui)}}),kn=ze.extend({init:function(ui){ze.fn.init.call(this,ui)},command:function(ui){return new Vn(ui)}});vn.extend(Ke,{CopyFormatCommand:Sn,ApplyFormatCommand:Vn,CopyFormatTool:Dn,ApplyFormatTool:kn}),Co("copyFormat",new Dn({template:new it({template:Dt.buttonTemplate,title:"Copy format"})})),Co("applyFormat",new kn({template:new it({template:Dt.buttonTemplate,title:"Apply format"})}))}.apply(Cr={},ur=[Bi]))&&(qo=Cr),void 0===(kr=function(){var vn=window.kendo,Ke=window,ze=Ke.Math,St=ze.min,it=ze.max,Dt=Ke.parseFloat,Hn=vn.jQuery,Dn=/(\d+)(\.?)(\d*)%/,kn=/(\d+)(\.?)(\d*)px/;function ft(Je){return"string"==typeof Je&&Dn.test(Je)}(0,Hn.extend)(vn.ui.editor,{ResizingUtils:{constrain:function en(Je){var Ge=Je.min,Be=Je.max;return it(St(Dt(Je.value),Dt(Be)),Dt(Ge))},getScrollBarWidth:function cn(Je){return Je&&!Hn(Je).is("body")&&Je.scrollHeight>Je.clientHeight?vn.support.scrollbar():0},calculatePercentageRatio:function Ht(Je,Ve){return ft(Je)?Dt(Je):Dt(Je)/Ve*100},inPercentages:ft,inPixels:function Nt(Je){return"string"==typeof Je&&kn.test(Je)},toPercentages:function an(Je){return Dt(Je)+"%"},toPixels:function $e(Je){return Dt(Je)+"px"}}})}.apply(xs={},ur=[wi]))&&(kr=xs),void 0===(Us=function(){var vn=window.kendo,Ke=vn.jQuery,ze=Ke.extend,St=Ke.noop,it=vn.ui.editor,Dt=vn.Class,Hn="keydown",Sn="mouseleave",Dn="mouseup",en="table",cn=Dt.extend({init:function(ft,Nt){var an=this;an.options=ze({},an.options,Nt),an.options.tags=Array.isArray(an.options.tags)?an.options.tags:[an.options.tags],Ke(ft).is(en)&&(an.element=ft,an._attachEventHandlers())},destroy:function(){var ft=this,Nt=ft.options.eventNamespace;ft.element&&(Ke(ft.element).off(Nt),ft.element=null),Ke(ft.options.rootElement).off(Hn+Nt),ft._destroyResizeHandle()},options:{tags:[],min:0,rootElement:null,eventNamespace:"",rtl:!1,handle:{dataAttribute:"",height:0,width:0,classNames:{},template:""}},_attachEventHandlers:function(){var Nt=this.options;Ke(this.element).on("mousemove"+Nt.eventNamespace,Nt.tags.join(","),this.detectElementBorderHovering.bind(this))},resizingInProgress:function(){var Nt=this._resizable;return!!Nt&&!!Nt.resizing},resize:St,detectElementBorderHovering:function(ft){var Nt=this,$e=Nt.options.handle,Je=Ke(ft.currentTarget),Ve=Nt.resizeHandle,Ge=$e.dataAttribute;Nt.resizingInProgress()||(!Je.is(":last-child")&&Nt.elementBorderHovered(Je,ft)?Ve?Ve.data(Ge)&&Ve.data(Ge)!==Je[0]&&Nt.showResizeHandle(Je,ft):Nt.showResizeHandle(Je,ft):Ve&&Nt._destroyResizeHandle())},elementBorderHovered:St,showResizeHandle:function(ft,Nt){var an=this;0===Nt.buttons&&(an._initResizeHandle(),an.setResizeHandlePosition(ft),an.setResizeHandleDimensions(),an.setResizeHandleDataAttributes(ft[0]),an._attachResizeHandleEventHandlers(),an._initResizable(ft),an._hideResizeMarker(),an.resizeHandle.show())},_initResizeHandle:function(){var Nt=this.options;this._destroyResizeHandle(),this.resizeHandle=Ke(Nt.handle.template).appendTo(Nt.rootElement)},setResizeHandlePosition:St,setResizeHandleDimensions:St,setResizeHandleDataAttributes:function(ft){this.resizeHandle.data(this.options.handle.dataAttribute,ft)},_attachResizeHandleEventHandlers:function(){var Nt=this.options,an=Nt.eventNamespace,$e=Nt.handle.classNames.marker,Je=this.resizeHandle;this.resizeHandle.on("mousedown"+an,function(){Je.find("."+$e).show()}).on(Dn+an,function(){Je.find("."+$e).hide()})},_hideResizeMarker:function(){this.resizeHandle.find("."+this.options.handle.classNames.marker).hide()},_destroyResizeHandle:function(){var ft=this;ft.resizeHandle&&(ft._destroyResizable(),ft.resizeHandle.off(ft.options.eventNamespace).remove(),ft.resizeHandle=null)},_initResizable:function(ft){var Nt=this;Nt.resizeHandle&&(Nt._destroyResizable(),Nt._resizable=new vn.ui.Resizable(ft,{draggableElement:Nt.resizeHandle[0],start:Nt.onResizeStart.bind(Nt),resize:Nt.onResize.bind(Nt),resizeend:Nt.onResizeEnd.bind(Nt)}))},_destroyResizable:function(){this._resizable&&(this._resizable.destroy(),this._resizable=null)},onResizeStart:function(){this._disableKeyboard()},onResize:function(ft){this.setResizeHandleDragPosition(ft)},setResizeHandleDragPosition:St,onResizeEnd:function(ft){this.resize(ft),this._destroyResizeHandle(),this._enableKeyboard()},_enableKeyboard:function(){var ft=this.options;Ke(ft.rootElement).off(Hn+ft.eventNamespace)},_disableKeyboard:function(){var ft=this.options;Ke(ft.rootElement).on(Hn+ft.eventNamespace,function(Nt){Nt.preventDefault()})},_forceResizing:function(ft){var Nt=this._resizable;Nt&&Nt.userEvents&&Nt.userEvents._end(ft)}}),Ht=Dt.extend({create:function(ft,Nt){var an=this,$e=Nt.name,Je=Nt.eventNamespace;Ke(ft.body).on("mouseenter"+Je,en,function(Ve){var Ge=Ve.currentTarget,Be=ft[$e];Ve.stopPropagation(),Be?Be.element!==Ge&&!Be.resizingInProgress()&&(an._destroyResizing(ft,Nt),an._initResizing(ft,Ge,Nt)):an._initResizing(ft,Ge,Nt)}).on(Sn+Je,en,function(Ve){var Ge,Be=ft[$e];Ve.stopPropagation(),Be&&!Be.resizingInProgress()&&!Be.resizeHandle&&(Ge=Ke(Be.element).parents(en)[0])&&(an._destroyResizing(ft,Nt),an._initResizing(ft,Ge,Nt))}).on(Sn+Je,function(){var Ve=ft[$e];Ve&&!Ve.resizingInProgress()&&an._destroyResizing(ft,Nt)}).on(Dn+Je,function(Ve){var Be,Ge=ft[$e];Ge&&Ge.resizingInProgress()&&(Be=Ke(Ve.target).parents(en)[0])&&(Ge._forceResizing(Ve),an._destroyResizing(ft,Nt),an._initResizing(ft,Be,Nt))})},dispose:function(ft,Nt){Ke(ft.body).off(Nt.eventNamespace)},_initResizing:function(ft,Nt,an){ft[an.name]=new(0,an.type)(Nt,{rtl:vn.support.isRtl(ft.element),rootElement:ft.body})},_destroyResizing:function(ft,Nt){var an=Nt.name;ft[an]&&(ft[an].destroy(),ft[an]=null)}});Ht.current=new Ht,cn.create=function(ft,Nt){Ht.current.create(ft,Nt)},cn.dispose=function(ft,Nt){Ht.current.dispose(ft,Nt)},ze(it,{TableElementResizing:cn})}.apply(Ts={},ur=[wi,H,kr]))&&(Us=Ts),void 0===(Ss=function(){var vn=window.kendo,St=window.Math.abs,it=vn.jQuery,Dt=it.extend,Hn=vn.ui.editor,Ui=Hn.Dom,Co=Hn.TableElementResizing,Sn=Hn.ResizingUtils,Vn=Sn.constrain,Dn=Sn.calculatePercentageRatio,kn=Sn.getScrollBarWidth,ui=Sn.inPercentages,Ot=Sn.toPercentages,en=Sn.toPixels,cn=vn._outerWidth,Ht=".kendoEditorColumnResizing",ft="k-column-resize-handle",Nt="k-column-resize-marker",an="body",$e="tbody",Je="thead",At="col-index",Pt="width",$t=Co.extend({options:{tags:["td","th"],min:20,rootElement:null,eventNamespace:Ht,rtl:!1,handle:{dataAttribute:"column",width:10,height:0,classNames:{handle:ft,marker:Nt},template:'<div class="k-column-resize-handle-wrapper" unselectable="on" contenteditable="false"><div class="'+ft+'"><div class="'+Nt+'"></div></div></div>'}},elementBorderHovered:function(Xn,Nn){var He=this.options,Kt=He.handle.width,On=Xn.offset().left+(He.rtl?0:cn(Xn)),Fi=Nn.clientX+it(Xn[0].ownerDocument).scrollLeft();return Fi>On-Kt&&Fi<On+Kt},setResizeHandlePosition:function(Xn){var Ae=it(this.element.tHead||this.element.tBodies[0]),He=this.options,Kt=He.rtl,On=He.handle.width,Fi=it(He.rootElement),Ci=Fi.is(an)?0:Fi.scrollTop(),xi=Fi.is(an)?0:vn.scrollLeft(Fi),Wn=Kt?0:cn(Xn),Vt=Kt?kn(Fi[0]):0,qt=Xn.offset().left-(Fi.offset().left+parseFloat(Fi.css("borderLeftWidth")))-parseFloat(Xn.css("marginLeft")),bn=Ae.offset().top-(Fi.offset().top+parseFloat(Fi.css("borderTopWidth")))-parseFloat(Ae.css("marginTop")),ii=vn.support.browser;Kt&&(ii.mozilla||ii.webkit&&ii.version>=85)&&(xi*=-1),this.resizeHandle.css({top:bn+Ci,left:qt+Wn+(xi-Vt)-On/2,position:"absolute"})},setResizeHandleDimensions:function(){var Nn=it(this.element).children(Je),Ae=it(this.element).children($e),He=Nn.length>0?Nn.height()+Ae.height():Ae.height();this.resizeHandle.css({width:this.options.handle.width,height:He})},setResizeHandleDragPosition:function(Xn){var Ae=it(it(Xn.currentTarget).data(this.options.handle.dataAttribute)),He=this.options,Kt=it(He.rootElement),On=He.handle?He.handle.width:0,Fi=He.min,Ci=He.rtl,xi=cn(Ae),Wn=Ae.offset().left-(Kt.offset().left+parseFloat(Kt.css("borderLeftWidth")))-parseFloat(Ae.css("marginLeft")),Vt=cn(Ae.next()),qt=it(this.resizeHandle),bn=Kt.is(an)?0:vn.scrollLeft(Kt),ii=Ci?kn(Kt[0]):0,Vi=qt.offset().left-(Kt.offset().left+parseFloat(Kt.css("borderLeftWidth")))-parseFloat(qt.css("marginLeft")),Jn=vn.support.browser;Ci&&(Jn.mozilla||Jn.webkit&&Jn.version>=85)&&(bn*=-1);var zt=Vn({value:Vi+(bn-ii)+Xn.x.delta,min:Wn+(bn-ii)-(Ci?Vt:0)+Fi,max:Wn+xi+(bn-ii)+(Ci?0:Vt)-On-Fi});qt.css({left:zt})},resize:function(Xn){var Ci,xi,Wn,Vt,qt,Nn=this,Ae=it(it(Xn.currentTarget).data(Nn.options.handle.dataAttribute)),He=Nn.options,On=He.min,Fi=(He.rtl?-1:1)*Xn.x.initialDelta;Ui.reMapTableColumns(Nn.element,At),Vt=parseInt(Ae.attr(At),10),Ae.prop("colSpan")>1&&(Ae=it(Nn.element).find("["+At+"="+(Vt+Ae.prop("colSpan")-1)+"]").eq(0),Vt=parseInt(Ae.attr(At),10)),qt=it(Nn.element).find("["+At+"="+(Vt+1)+"]:not([colspan])"),Nn._setTableComputedWidth(),Nn._setColumnsComputedWidth(),Wn=cn(Ae),xi=cn(qt),Ci=Vn({value:Wn+Fi,min:On,max:Wn+xi-On}),Nn._resizeColumn(Ae[0],Ci),Nn._resizeTopAndBottomColumns(Ae[0],Ci),Nn._resizeAdjacentColumns(parseInt(Ae.attr(At),10),xi,Wn,Wn-Ci),Ui.clearTableMappings(Nn.element,At)},_setTableComputedWidth:function(){var Xn=this.element;""===Xn.style[Pt]&&(Xn.style[Pt]=en(cn(it(Xn))))},_setColumnsComputedWidth:function(){var Fi,Nn=it(this.element.tHead||this.element.tBodies[0]),Ae=cn(Nn),He=Nn.children("tr").children("td"),Kt=He.length,On=He.map(function(){return cn(it(this))});for(Fi=0;Fi<Kt;Fi++)He[Fi].style[Pt]=ui(He[Fi].style[Pt])?Ot(Dn(On[Fi],Ae)):en(On[Fi])},_resizeTopAndBottomColumns:function(Xn,Nn){var Fi,He=it(Xn).attr(At),Kt=it(this.element).children($e+","+Je).children("tr").children(this.options.tags.join(",")).filter(function(){return it(this).attr(At)===He&&this!==Xn}),On=Kt.length;for(Fi=0;Fi<On;Fi++)this._resizeColumn(Kt[Fi],Nn)},_resizeColumn:function(Xn,Nn){var Ae=it(this.element.tHead||this.element.tBodies[0]);Xn.style[Pt]=ui(Xn.style[Pt])?Ot(Dn(Nn,cn(Ae))):en(Nn)},_resizeAdjacentColumns:function(Xn,Nn,Ae,He){var Ci,On=it(this.element).children($e+","+Je).children("tr").children(this.options.tags.join(",")).filter(function(){return parseInt(it(this).attr(At),10)===Xn+1}),Fi=On.length;for(Ci=0;Ci<Fi;Ci++)this._resizeAdjacentColumn(On[Ci],Nn,Ae,He)},_resizeAdjacentColumn:function(Xn,Nn,Ae,He){var Fi,On=this.options.min;Fi=Vn({value:Nn+He,min:On,max:St(Ae+Nn-On)}),this._resizeColumn(Xn,Fi)}});$t.create=function(Xn){Co.create(Xn,{name:"columnResizing",type:$t,eventNamespace:Ht})},$t.dispose=function(Xn){Co.dispose(Xn,{eventNamespace:Ht})},Dt(Hn,{ColumnResizing:$t})}.apply(Ua={},ur=[wi,kr,Us,zn]))&&(Ss=Ua),void 0===($o=function(){var vn=window.kendo,ze=window.Math.abs,St=vn.jQuery,it=St.extend,Dt=vn.ui.editor,Hn=Dt.TableElementResizing,Ui=Dt.ResizingUtils,Co=Ui.getScrollBarWidth,Sn=Ui.constrain,Vn=Ui.calculatePercentageRatio,Dn=Ui.inPercentages,kn=Ui.toPercentages,ui=Ui.toPixels,Ot=vn._outerHeight,en=".kendoEditorRowResizing",cn="k-row-resize-handle",ft="k-row-resize-marker",Nt="body",$e="tbody",Je="thead",Ge="height",Be=Hn.extend({options:{tags:["tr"],min:20,rootElement:null,eventNamespace:en,rtl:!1,handle:{dataAttribute:"row",width:0,height:10,classNames:{handle:cn,marker:ft},template:'<div class="k-row-resize-handle-wrapper" unselectable="on" contenteditable="false"><div class="'+cn+'"><div class="k-row-resize-marker-wrapper"><div class="'+ft+'"></div></div></div></div>'}},elementBorderHovered:function(At,Rt){var $t=this.options.handle[Ge],Xn=At.offset().top+Ot(At),Nn=Rt.clientY+St(At[0].ownerDocument).scrollTop();return Nn>Xn-$t&&Nn<Xn+$t},setResizeHandlePosition:function(At){var Pt=this.options,$t=Pt.handle[Ge],Xn=St(Pt.rootElement),Nn=Xn.is(Nt)?0:Xn.scrollTop(),Ae=Xn.is(Nt)?0:vn.scrollLeft(Xn),He=Pt.rtl?Co(Xn[0]):0,Kt=At.offset().left-(Xn.offset().left+parseFloat(Xn.css("borderLeftWidth")))-parseFloat(At.css("marginLeft")),On=At.offset().top-(Xn.offset().top+parseFloat(Xn.css("borderTopWidth")))-parseFloat(At.css("marginTop")),Fi=vn.support.browser;Pt.rtl&&(Fi.mozilla||Fi.webkit&&Fi.version>=85)&&(Ae*=-1),this.resizeHandle.css({top:On+Ot(At)+Nn-$t/2,left:Kt+(Ae-He),position:"absolute"})},setResizeHandleDimensions:function(){var Rt=St(this.element.tHead||this.element.tBodies[0]);this.resizeHandle.css({width:Rt.width(),height:this.options.handle[Ge]})},setResizeHandleDragPosition:function(At){var Pt=this.options,$t=Pt.min,Xn=St(this.element).children(Je),Nn=St(this.element).children($e),Ae=Xn.length>0?Xn:Nn,He=St(this.resizeHandle),Kt=St(At.currentTarget).data(Pt.handle.dataAttribute),On=St(Kt),Fi=St(Pt.rootElement),Ci=Fi.is(Nt)?0:Fi.scrollTop(),xi=Ae.offset().top-(Fi.offset().top+parseFloat(Fi.css("borderTopWidth")))-parseFloat(Ae.css("marginTop")),Wn=On.offset().top-(Fi.offset().top+parseFloat(Fi.css("borderTopWidth")))-parseFloat(On.css("marginTop")),Vt=He.offset().top-(Math.max(0,Fi.offset().top)+parseFloat(Fi.css("borderTopWidth")))-parseFloat(He.css("marginTop")),qt=Sn({value:Vt+Ci+At.y.delta,min:Wn+Ci+$t,max:xi+Ot(Xn)+Ot(Nn)+Ci-Pt.handle[Ge]-$t});He.css({top:qt})},resize:function(At){var Rt=this,Pt=Rt.options,$t=St(At.currentTarget).data(Pt.handle.dataAttribute),Xn=Ot(St($t)),Nn=St(Rt.element),Ae=Ot(Nn),He=Nn.children(Je),Kt=He.length>0?He.height():0,Fi=Nn.children($e).height(),Ci=$t.style[Ge],xi=Sn({value:Xn+At.y.initialDelta,min:Pt.min,max:ze(Kt+Fi-Pt.min)});Rt._setRowsHeightInPixels(),$t.style[Ge]=ui(xi),Rt._setTableHeight(Ae+(xi-Xn)),Dn(Ci)&&Rt._setRowsHeightInPercentages()},_setRowsHeightInPixels:function(){var Xn,Rt=St(this.element).children($e+","+Je).children("tr"),Pt=Rt.length,$t=Rt.map(function(){return Ot(St(this))});for(Xn=0;Xn<Pt;Xn++)Rt[Xn].style[Ge]=ui($t[Xn])},_setRowsHeightInPercentages:function(){var Kt,Rt=St(this.element).children(Je),Pt=Rt.length>0?Rt.height():0,Xn=St(this.element).children($e).height(),Nn=St(this.element).children(Je+","+$e).children("tr"),Ae=Nn.length,He=Nn.map(function(){return Ot(St(this))});for(Kt=0;Kt<Ae;Kt++)Nn[Kt].style[Ge]=kn(Vn(He[Kt],Pt+Xn))},_setTableHeight:function(At){var Rt=this.element;Rt.style[Ge]=Dn(Rt.style[Ge])?kn(Vn(At,St(Rt).parent().height())):ui(At)}});Be.create=function(At){Hn.create(At,{name:"rowResizing",type:Be,eventNamespace:en})},Be.dispose=function(At){Hn.dispose(At,{eventNamespace:en})},it(Dt,{RowResizing:Be})}.apply(Ar={},ur=[wi,kr,Us]))&&($o=Ar),void 0===(No=function(){var vn=window.kendo,Ke=vn.jQuery,ze=Ke.extend,St=Ke.noop,it=vn.ui.editor,Dt=vn.Class,Hn=vn.ui.Draggable,Ui=vn.Observable,Co=it.ResizingUtils.getScrollBarWidth,Sn=vn._outerWidth,Vn=vn._outerHeight,Dn=".kendoEditorElementResizeHandle",kn="k-element-resize-handle",ui="dragStart",en="dragEnd",cn="halfInside",Ht="mouseover",ft="mouseout",Ve="northeast",Ge="northwest",At="southeast",Rt="southwest",Xn=Ui.extend({init:function(Ue){var Ye=this;Ui.fn.init.call(Ye),Ye.options=ze({},Ye.options,Ue),Ye.element=Ke(Ye.options.template).appendTo(Ye.options.appendTo)[0],Ye._attachEventHandlers(),Ye._addStyles(),Ye._initDraggable(),Ye._initPositioningStrategy(),Ye._initDraggingStrategy(),Ke(Ye.element).data("table",Ye.options.resizableElement)},destroy:function(){Ke(this.element).off(Dn).remove(),this.element=null,this._destroyDraggable(),this.unbind()},options:{appendTo:null,direction:At,resizableElement:null,rtl:!1,template:"<div class='k-element-resize-handle-wrapper' unselectable='on' contenteditable='false'><div class='"+kn+"'></div></div>"},events:[ui,"drag",en,Ht,ft],show:function(){this._setPosition()},_setPosition:function(){var Ye=this._positioningStrategy.getPosition();Ke(this.element).css({top:Ye.top,left:Ye.left,position:"absolute"})},_attachEventHandlers:function(){var Ue=this;Ke(Ue.element).on(Ht+Dn,Ue._onMouseOver.bind(Ue)).on(ft+Dn,Ue._onMouseOut.bind(Ue))},_onMouseOver:function(){this.trigger(Ht)},_onMouseOut:function(){this.trigger(ft)},_addStyles:function(){Ke(this.element).children("."+kn).addClass("k-resize-"+this.options.direction)},_initPositioningStrategy:function(){var Ye=this.options;this._positioningStrategy=He.create({name:Ye.direction,handle:this.element,resizableElement:Ye.resizableElement,rootElement:Ye.rootElement,rtl:Ye.rtl})},_initDraggable:function(){var Ue=this,Ye=Ue.element;Ue._draggable||!Ye||(Ue._draggable=new Hn(Ye,{dragstart:Ue._onDragStart.bind(Ue),drag:Ue._onDrag.bind(Ue),dragend:Ue._onDragEnd.bind(Ue)}))},_onDragStart:function(){this.trigger(ui)},_onDrag:function(Ue){this.trigger("drag",this._draggingStrategy.adjustDragDelta({deltaX:Ue.x.delta,deltaY:Ue.y.delta,initialDeltaX:Ue.x.initialDelta,initialDeltaY:Ue.y.initialDelta}))},_onDragEnd:function(){this.trigger(en)},_destroyDraggable:function(){this._draggable&&(this._draggable.destroy(),this._draggable=null)},_initDraggingStrategy:function(){this._draggingStrategy=ii.create({name:this.options.direction})}}),Nn=Dt.extend({init:function(){this._items=[]},register:function(Ue,Ye){this._items.push({name:Ue,type:Ye})},create:function(Ue){var lt,yt,on,Ye=this._items,Me=Ye.length,pe=Ue.name?Ue.name.toLowerCase():"";for(on=0;on<Me;on++)if((yt=Ye[on]).name.toLowerCase()===pe){lt=yt;break}if(lt)return new lt.type(Ue)}}),Ae=Nn.extend({}),He=(Ae.current=new Ae,Dt.extend({init:function(Ue){this.options=ze({},this.options,Ue)},options:{handle:null,offset:cn,resizableElement:null,rootElement:null,rtl:!1},getPosition:function(){var Ye=this.calculatePosition(),Me=this.applyHandleOffset(Ye);return this.applyScrollOffset(Me)},calculatePosition:St,applyHandleOffset:function(Ue){var Ye=this.options,Me=Ke(Ye.handle);return Ye.offset===cn?{top:Ue.top-Vn(Me)/2,left:Ue.left-Sn(Me)/2}:Ue},applyScrollOffset:function(Ue){var yt,Ye=this.options,Me=Ke(Ye.rootElement),pe=Ye.rtl?Co(Me[0]):0,lt=vn.support.browser;return Me.is("body")?Ue:(yt=vn.scrollLeft(Me)||0,Ye.rtl&&(lt.mozilla||lt.webkit&&lt.version>=85)&&(yt*=-1),{top:Ue.top+(Me.scrollTop()||0),left:Ue.left+yt-pe})}})),Kt=(He.create=function(Ue){return Ae.current.create(Ue)},He.extend({calculatePosition:function(){var Ue=Ke(this.options.resizableElement),Ye=Ue.position(),Me=parseInt(Ue.css("marginLeft"),10);return{top:Ye.top+Vn(Ue)/2,left:Ye.left+Sn(Ue)+Me}}})),On=(Ae.current.register("east",Kt),He.extend({calculatePosition:function(){var Ue=Ke(this.options.resizableElement),Ye=Ue.position(),Me=parseInt(Ue.css("marginLeft"),10);return{top:Ye.top,left:Ye.left+Sn(Ue)/2+Me}}})),Fi=(Ae.current.register("north",On),He.extend({calculatePosition:function(){var Ue=Ke(this.options.resizableElement),Ye=Ue.position(),Me=parseInt(Ue.css("marginLeft"),10);return{top:Ye.top,left:Ye.left+Sn(Ue)+Me}}})),Ci=(Ae.current.register(Ve,Fi),He.extend({calculatePosition:function(){var Ue=Ke(this.options.resizableElement),Ye=Ue.position(),Me=parseInt(Ue.css("marginLeft"),10);return{top:Ye.top,left:Ye.left+Me}}})),xi=(Ae.current.register(Ge,Ci),He.extend({calculatePosition:function(){var Ue=Ke(this.options.resizableElement),Ye=Ue.position(),Me=parseInt(Ue.css("marginLeft"),10);return{top:Ye.top+Vn(Ue),left:Ye.left+Sn(Ue)/2+Me}}})),Wn=(Ae.current.register("south",xi),He.extend({calculatePosition:function(){var Ue=Ke(this.options.resizableElement),Ye=Ue.position(),Me=parseInt(Ue.css("marginLeft"),10);return{top:Ye.top+Vn(Ue),left:Ye.left+Sn(Ue)+Me}}})),Vt=(Ae.current.register(At,Wn),He.extend({calculatePosition:function(){var Ue=Ke(this.options.resizableElement),Ye=Ue.position(),Me=parseInt(Ue.css("marginLeft"),10);return{top:Ye.top+Vn(Ue),left:Ye.left+Me}}})),qt=(Ae.current.register(Rt,Vt),He.extend({calculatePosition:function(){var Ue=Ke(this.options.resizableElement),Ye=Ue.position(),Me=parseInt(Ue.css("marginLeft"),10);return{top:Ye.top+Vn(Ue)/2,left:Ye.left+Me}}})),bn=(Ae.current.register("west",qt),Nn.extend({})),ii=(bn.current=new bn,Dt.extend({init:function(Ue){this.options=ze({},this.options,Ue)},options:{deltaX:{adjustment:null,modifier:null},deltaY:{adjustment:null,modifier:null}},adjustDragDelta:function(Ue){var Ye=this.options,Me=Ye.deltaX.adjustment*Ye.deltaX.modifier,pe=Ye.deltaY.adjustment*Ye.deltaY.modifier;return{deltaX:Ue.deltaX*Me,deltaY:Ue.deltaY*pe,initialDeltaX:Ue.initialDeltaX*Me,initialDeltaY:Ue.initialDeltaY*pe}}})),Vi=(ii.create=function(Ue){return bn.current.create(Ue)},ii.extend({options:{deltaX:{adjustment:1,modifier:1},deltaY:{adjustment:0,modifier:0}}})),Jn=Vi.extend({options:{deltaX:{modifier:1}}}),zt=(bn.current.register("east",Jn),Vi.extend({options:{deltaX:{modifier:-1}}})),mn=(bn.current.register("west",zt),ii.extend({options:{deltaX:{adjustment:0,modifier:0},deltaY:{adjustment:1,modifier:1}}})),Qn=mn.extend({options:{deltaY:{modifier:-1}}}),ci=(bn.current.register("north",Qn),mn.extend({options:{deltaY:{modifier:1}}})),Oi=(bn.current.register("south",ci),ii.extend({options:{deltaX:{adjustment:1,modifier:1},deltaY:{adjustment:1,modifier:1}}})),Ai=Oi.extend({options:{deltaX:{modifier:1},deltaY:{modifier:-1}}}),Pn=(bn.current.register(Ve,Ai),Oi.extend({options:{deltaX:{modifier:-1},deltaY:{modifier:-1}}})),qn=(bn.current.register(Ge,Pn),Oi.extend({options:{deltaX:{modifier:1},deltaY:{modifier:1}}})),Ni=(bn.current.register(At,qn),Oi.extend({options:{deltaX:{modifier:-1},deltaY:{modifier:1}}}));bn.current.register(Rt,Ni),ze(it,{ElementResizeHandle:Xn})}.apply(qr={},ur=[wi,g,kr]))&&(No=qr),void 0===(js=function(){var vn=window.kendo,ze=window.Math,St=ze.min,it=ze.max,Dt=vn.jQuery,Hn=Dt.contains,Ui=Dt.extend,Co=vn.support.browser,Sn=vn.ui.editor,Vn=vn.Class,Dn=Sn.ElementResizeHandle,kn=Sn.ResizingUtils,ui=kn.calculatePercentageRatio,Ot=kn.constrain,en=kn.inPercentages,cn=kn.inPixels,Ht=kn.toPercentages,ft=kn.toPixels,Nt=vn._outerWidth,an=vn._outerHeight,$e=Sn.RangeUtils,Je=".kendoEditorElementResizing",Ve="k-element-resize-handle-wrapper",Be="k-element-resizing",At="dragStart",Pt="dragEnd",$t="keydown",Xn="mousedown",On="tbody",Fi="thead",Wn=["TABLE","IMG"],qt="width",bn="height";function Pn(Me){return typeof Me>"u"}var qn=Vn.extend({init:function(Me,pe){this.options=Ui({},this.options,pe),this.handles=[],Wn.indexOf(Me.nodeName)>=0&&(this.element=Me)},destroy:function(){Dt(this.element).off(Je),this.element=null,Dt(this.options.rootElement).off($t+Je),this._destroyResizeHandles()},options:{appendHandlesTo:null,rtl:!1,rootElement:null,minWidth:10,minHeight:10,handles:[{direction:"northwest"},{direction:"north"},{direction:"northeast"},{direction:"east"},{direction:"southeast"},{direction:"south"},{direction:"southwest"},{direction:"west"}]},resize:function(Me){var lt=Ui({},{deltaX:0,deltaY:0,initialDeltaX:0,initialDeltaY:0},Me);this._resizeWidth(lt.deltaX,lt.initialDeltaX),this._resizeHeight(lt.deltaY,lt.initialDeltaY),this.showResizeHandles()},_resizeWidth:function(){return!1},_resizeHeight:function(){return!1},_getMaxDimensionValue:function(Me){var lt=Dt(this.element),yt=Me.toLowerCase(),on=this.options.rtl?-1:1,zi=Dt(this.element).parent(),Kn=zi[0],ho=zi[yt](),po=on*(Me===qt?vn.scrollLeft(zi):zi.scrollTop());return Kn&&Kn===lt.closest("td")[0]&&""===Kn.style[yt]&&!en(this.element.style[yt])?1/0:ho+po},showResizeHandles:function(){this._initResizeHandles(),this._showResizeHandles()},_initResizeHandles:function(){var zi,Me=this,pe=Me.handles,lt=Me.options,yt=Me.options.handles,on=yt.length;if(!(pe&&pe.length>0)){for(zi=0;zi<on;zi++)Me.handles.push(new Dn(Ui({appendTo:lt.appendHandlesTo,resizableElement:Me.element,rootElement:lt.rootElement,rtl:lt.rtl},yt[zi])));Me._bindToResizeHandlesEvents()}},_destroyResizeHandles:function(){for(var pe=this.handles?this.handles.length:0,lt=0;lt<pe;lt++)this.handles[lt].destroy();this.handles=[]},_showResizeHandles:function(){var yt,lt=(this.handles||[]).length;for(yt=0;yt<lt;yt++)this.handles[yt].show()},_bindToResizeHandlesEvents:function(){return!1},_onResizeHandleDragStart:function(){var pe=Dt(this.element);pe.addClass(Be),this._initialElementHeight=an(pe),this._initialElementWidth=Nt(pe),this._disableKeyboard()},_onResizeHandleDrag:function(Me){this.resize(Me)},_onResizeHandleDragEnd:function(){Dt(this.element).removeClass(Be),this._enableKeyboard()},_enableKeyboard:function(){Dt(this.options.rootElement).off($t+Je)},_disableKeyboard:function(){Dt(this.options.rootElement).on($t+Je,function(Me){Me.preventDefault()})}}),Ni=qn.extend({_bindToResizeHandlesEvents:function(){var yt,on,Me=this,pe=Me.handles||[],lt=pe.length;for(yt=0;yt<lt;yt++)(on=pe[yt]).bind(At,Me._onResizeHandleDragStart.bind(Me)),on.bind("drag",Me._onResizeHandleDrag.bind(Me)),on.bind(Pt,Me._onResizeHandleDragEnd.bind(Me))},_hasRowsInPixels:function(){for(var pe=Dt(this.element).children(Fi+","+On).children("tr"),lt=0;lt<pe.length;lt++)if(""===pe[lt].style.height||cn(pe[lt].style.height))return!0;return!1},_resizeWidth:function(Me,pe){var po,$i,ro,wo,lt=this,yt=Dt(lt.element),on=yt[0].style[qt],zi=Nt(yt),Kn=yt.parent().width(),ho=lt._getMaxDimensionValue(qt);0!==Me&&(Pn(lt._initialElementWidth)&&(lt._initialElementWidth=zi),wo=Ot({value:lt._initialElementWidth+pe,min:lt.options.minWidth,max:ho}),en(on)?(zi+Me>Kn?($i=it(wo,Kn),ro=St(wo,Kn)):($i=St(wo,Kn),ro=it(wo,Kn)),po=Ht(ui($i,ro))):po=ft(wo),lt._setColumnsWidth(),yt[0].style[qt]=po)},_resizeHeight:function(Me,pe){var $i,ro,wo,io,lt=this,yt=Dt(lt.element),on=yt[0].style[bn],zi=an(yt),ho=yt.parent().height(),po=lt._getMaxDimensionValue(bn),Wi=lt.options.minHeight,fo=lt._hasRowsInPixels();0!==Me&&(Pn(lt._initialElementHeight)&&(lt._initialElementHeight=zi),io=Ot({value:lt._initialElementHeight+pe,min:Wi,max:po}),fo&&Me<0&&lt._setRowsHeightInPercentages(),en(on)?(zi+Me>ho?(ro=it(io,ho),wo=St(io,ho)):(ro=St(io,ho),wo=it(io,ho)),$i=Ht(ui(ro,wo))):$i=ft(io),yt[0].style[bn]=$i,fo&&Me<0&&lt._setRowsHeightInPixels())},_setColumnsWidth:function(){var Kn,pe=Dt(this.element),lt=pe.parent()[0],yt=pe.closest("td"),on=yt.closest("tr").children(),zi=on.length;if(function ho(po){var $i=po.style.width;return""!==$i?!!en($i):!!Dt(po).hasClass("k-table")}(pe[0])&&lt===yt[0]&&""===lt.style[qt])for(Kn=0;Kn<zi;Kn++)on[Kn].style[qt]=ft(Dt(on[Kn]).width())},_setRowsHeightInPercentages:function(){var po,pe=Dt(this.element).children(Fi),lt=pe.length>0?pe.height():0,on=Dt(this.element).children(On).height(),zi=Dt(this.element).children(Fi+","+On).children("tr"),Kn=zi.length,ho=zi.map(function(){return an(Dt(this))});for(po=0;po<Kn;po++)zi[po].style[bn]=Ht(ui(ho[po],lt+on))},_setRowsHeightInPixels:function(){var on,pe=Dt(this.element).children(Fi+","+On).children("tr"),lt=pe.length,yt=pe.map(function(){return an(Dt(this))});for(on=0;on<lt;on++)pe[on].style[bn]=ft(yt[on])}}),Ue=qn.extend({_bindToResizeHandlesEvents:function(){var yt,on,Me=this,pe=Me.handles||[],lt=pe.length;for(yt=0;yt<lt;yt++)(on=pe[yt]).bind(At,Me._onResizeHandleDragStart.bind(Me)),on.bind("drag","north"===on.options.direction||"south"===on.options.direction?Me._onResizeHandleDragVertical.bind(Me):"east"===on.options.direction||"west"===on.options.direction?Me._onResizeHandleDragHorizontal.bind(Me):Me._onResizeHandleDragLocked.bind(Me)),on.bind(Pt,Me._onResizeHandleDragEnd.bind(Me))},_getDeltas:function(Me){return Ui({},{deltaX:0,deltaY:0,initialDeltaX:0,initialDeltaY:0},Me)},_onResizeHandleDragVertical:function(Me){var pe=this._getDeltas(Me);this._resizeHeight(pe.deltaY,pe.initialDeltaY),this.showResizeHandles()},_onResizeHandleDragHorizontal:function(Me){var pe=this._getDeltas(Me);this._resizeWidth(pe.deltaX,pe.initialDeltaX),this.showResizeHandles()},_onResizeHandleDragLocked:function(Me){var on,pe=Math.min(Math.abs(Me.initialDeltaX),Math.abs(Me.initialDeltaY)),lt=this._initialElementWidth,yt=this._initialElementHeight;pe===Me.initialDeltaX||pe===-1*Me.initialDeltaX?(Me.initialDeltaY=Me.initialDeltaX*yt/lt,Me.deltaY=Me.deltaX):(pe===Me.initialDeltaY||pe===-1*Me.initialDeltaY)&&(Me.initialDeltaX=Me.initialDeltaY*lt/yt,Me.deltaX=Me.deltaY),on=this._getDeltas(Me),this._resizeWidth(on.deltaX,on.initialDeltaX),this._resizeHeight(on.deltaY,on.initialDeltaY),this.showResizeHandles()},_resizeWidth:function(Me,pe){var zi,Kn,lt=this,yt=Dt(lt.element),on=Nt(yt);0!==Me&&(Pn(lt._initialElementWidth)&&(lt._initialElementWidth=on),Kn=Ot({value:lt._initialElementWidth+pe,min:lt.options.minWidth,max:lt._getMaxDimensionValue(qt)}),zi=ft(Kn),yt[0].style[qt]=zi,yt.attr(qt,Math.floor(Kn)))},_resizeHeight:function(Me,pe){var zi,Kn,lt=this,yt=Dt(lt.element),on=an(yt);0!==Me&&(Pn(lt._initialElementHeight)&&(lt._initialElementHeight=on),Kn=Ot({value:lt._initialElementHeight+pe,min:lt.options.minHeight,max:Number.MAX_SAFE_INTEGER}),zi=ft(Kn),yt[0].style[bn]=zi,yt.attr(bn,Math.floor(Kn)))}}),Ye=Vn.extend({create:function(Me){var pe=this;Dt(Me.body).on("dragstart"+Je,function(){var lt=$e.nodes(Me.getRange()),yt=!1;lt.forEach(function(on){"IMG"===on.nodeName&&(yt=!0)}),yt&&lt.length>1&&Me.elementResizing._destroyResizeHandles()}).on("drop"+Je,function(){setTimeout(function(){var lt=$e.image(Me.getRange());lt&&(Me.elementResizing._destroyResizeHandles(),Me.elementResizing.element=lt,Me.elementResizing.showResizeHandles())})}).on(Xn+Je,"table,img",function(lt){var yt=lt.target,on=lt.currentTarget,zi=Me.elementResizing,Kn=zi?zi.element:null;if(zi){if(Kn&&on!==Kn){if(Hn(on,Kn)&&Kn!==yt&&Hn(Kn,yt))return;Kn!==yt&&(Me._destroyElementResizing(),pe._initResizing(Me,on))}}else pe._initResizing(Me,on);Me._showElementResizeHandles()}).on(Xn+Je,function(lt){var yt=Me.elementResizing,on=yt?yt.element:null,zi=lt.target,Kn=Dt(zi).hasClass(Ve)||Dt(zi).parents("."+Ve).length>0;yt&&on!==zi&&!Hn(on,zi)&&!Kn&&Me._destroyElementResizing()})},dispose:function(Me){Dt(Me.body).off(Je)},_initResizing:function(Me,pe){Co.msie||(Dt(pe).is("table")?Me.elementResizing=Me.tableResizing=new Ni(pe,{appendHandlesTo:Me.body,rtl:vn.support.isRtl(Me.element),rootElement:Me.body}):Dt(pe).is("img")&&(Me.elementResizing=new Ue(pe,{appendHandlesTo:Me.body,rtl:vn.support.isRtl(Me.element),rootElement:Me.body})),Me._showElementResizeHandlesProxy&&(Me.unbind("select",Me._showElementResizeHandlesProxy),Me.bind("select",Me._showElementResizeHandlesProxy)))}});Ye.current=new Ye,Ui(Sn,{TableResizing:Ni,ImageResizing:Ue,ElementResizing:qn,ElementResizingFactory:Ye})}.apply(Ds={},ur=[wi,No,kr]))&&(js=Ds),void 0===(Zr=function(){var vn=window.kendo.jQuery,Xe=void 0,Ke=window.kendo,ze=Ke.ui.editor,St=ze.EditorUtils,it=ze.RangeUtils,Dt=ze.Dom,Hn=St.registerTool,Ui=ze.ToolTemplate,Co=ze.Command,Sn=new ze.BlockFormatFinder([{tags:["table"]}]),Vn=new ze.BlockFormatFinder([{tags:["td","th"]}]),Dn=/([a-z]+|%)$/i,en="scope",cn="col-index",Ht="th",Je=Co.extend({exec:function(){var Be=this,At=Be.editor,Rt=Be.range=Be.lockRange(),Pt=Be._sourceTable=Be.options.insertNewTable?Xe:Be._selectedTable(Rt),$t=Be._selectedTableCells=Pt?Be._selectedCells(Rt):Xe,Xn={visible:!1,messages:At.options.messages,closeCallback:Be.onDialogClose.bind(Be),table:Be.parseTable(Pt,$t),dialogOptions:At.options.dialogOptions,isRtl:Ke.support.isRtl(At.wrapper)};new ze.TableWizardDialog(Xn).open()},onDialogClose:function(Be){var At=this;At.releaseRange(At.range),Be&&(At.options.insertNewTable?At.insertTable(At.createNewTable(Be)):At.updateTable(Be,At._sourceTable,At._selectedTableCells))},releaseRange:function(Be){Dt.windowFromDocument(this.editor.document).focus(),Co.fn.releaseRange.call(this,Be)},insertTable:function(Be){var At=this.range;At.insertNode(Be),At.collapse(!0),this.editor.selectRange(At),this._ensureFocusableAfterTable(Be)},_ensureFocusableAfterTable:function(Be){for(var At=vn(Be).parent().contents(),Rt=At.length-1,Pt=At.get(Rt);null!==Pt.nodeValue&&(" "===Pt.nodeValue||""===Pt.nodeValue);)Pt=At.get(Rt-=1);Pt===Be&&Dt.insertAfter(Dt.createEmptyNode(this.editor.document,"p"),Be)},updateTable:function(Be,At,Rt){for(var Kt,On,Pt=this,$t=vn(At.rows).toArray(),Xn=Be.tableProperties,Nn=Xn.rows,Ae=At.tHead,He=Pt._lastInCollection;Rt.length>1;)Rt.pop();Kt=Rt.length?He(Rt).parentNode:He($t),Pt._deleteTableRows($t,$t.length-Nn),$t.length<Nn&&Pt._addRows(Kt,Nn,$t),Dt.reMapTableColumns(At,cn),Pt._updateColumns($t,Xn.columns,Rt,Kt),Pt._updateTableProperties(At,Xn),On=Be.cellProperties,Rt[0]&&Dt.attr(Rt[0],{id:On.id||null}),(On.selectAllCells?vn($t).children():vn(Rt)).each(function(Fi,Ci){Pt._updateCellProperties(Ci,On)}),Pt._updateCaption(At,Xn),Ae?Pt._updateHeadersWithThead(At,Be):Pt._updateHeadersNoThead(At,Be),Pt._updateHeaderAssociates(At,Xn),Dt.clearTableMappings(At,cn)},_isHeadingRow:function(Be){return Dt.is(Be.cells[0],Ht)&&Dt.is(Be.parentNode,"thead")},_isHeadingCell:function(Be){return Dt.is(Be,Ht)},cellsWithHeadersAssociated:function(Be){var At=vn(Be.rows).children(),Rt=[],Pt=function(Xn){return Rt.indexOf(Xn)>-1};return At.each(function(Xn,Nn){Nn.id&&Dt.is(Nn,Ht)&&Rt.push(Nn.id)}),!!At.filter(function(Xn,Nn){var He,Ae=Nn.getAttribute("headers");return!!(Ae&&!Dt.is(Nn,Ht)&&(He=Ae.split(" "),He&&He.length>0))&&He.some(Pt)}).length},_insertCells:function(Be,At,Rt){Rt=isNaN(Rt)?-1:Rt;for(var Pt=0;Pt<Be;Pt++)At.insertCell(Rt).innerHTML="&nbsp;"},_deleteTableRows:function(Be,At){for(var Pt,$t,Rt=0;Rt<At;Rt++)($t=(Pt=Be.pop()).parentNode).removeChild(Pt),$t.rows.length||Dt.remove($t)},createNewTable:function(Be){var Nn,At=this,Pt=Be.tableProperties,$t=Dt.create(At.editor.document,"table"),Xn=0;At._updateTableProperties($t,Pt),At._updateCaption($t,Pt),Pt.headerRows&&Pt.headerRows>0&&(Nn=$t.createTHead(),At._createTableRows(Be,Nn,Xn,!0),Xn+=Pt.headerRows);var Ae=$t.createTBody();return At._createTableRows(Be,Ae,Xn,!1),Dt.reMapTableColumns($t,cn),"ids"===Pt.cellsWithHeaders?Dt.associateWithIds($t):"scope"===Pt.cellsWithHeaders&&At._addScopes($t,Pt.headerRows,Pt.headerColumns),Dt.clearTableMappings($t,cn),$t},_createTableRows:function(Be,At,Rt,Pt){for(var Ci,Xn=Be.tableProperties,Nn=Be.cellProperties,Ae=Xn.columns,He=Pt?Xn.headerRows:Xn.rows,Kt=Nn.selectAllCells,On=Xn.headerColumns,Fi=Rt;Fi<He;Fi++){Ci=At.insertRow();for(var Wn,xi=0;xi<Ae;xi++)Wn=Pt||On>xi?document.createElement(Ht):document.createElement("td"),Ci.appendChild(Wn),Wn.innerHTML="&nbsp;",0===Fi&&0===xi&&Nn.id&&(Wn.id=Nn.id),this._updateCellProperties(Wn,Kt||0===Fi&&0===xi?Nn:{})}},_addRows:function(Be,At,Rt){for(var He,$t=vn(Be).index(),Xn=Be.cells.length,Nn=At-Rt.length,Ae=Be.parentNode;Nn;)He=Ae.insertRow($t+1),this._insertCells(Xn-He.cells.length,He),Nn--},_updateColumns:function(Be,At,Rt,Pt){var $t=this,Xn=$t._lastInCollection,Nn=Xn(Be[0].cells),Ae=Number(Nn.getAttribute(cn))+Nn.colSpan;if(Ae>At&&vn(Be).each(function(Kt,On){for(var Fi=Xn(On.cells),Ci=Number(Fi.getAttribute(cn))+Fi.colSpan;Ci>At;)Fi.colSpan&&Fi.colSpan>1?Fi.colSpan-=1:On.deleteCell(-1),Fi=Xn(On.cells),Ci=Number(Fi.getAttribute(cn))+Fi.colSpan}),Ae<At){var He=vn(Xn(Rt)||Xn(Pt.cells)).index();vn(Be).each(function(Kt,On){var Fi=Xn(On.cells);$t._insertCells(At-Number(Fi.getAttribute(cn))-Fi.colSpan,On,He+1)})}},_updateTableProperties:function(Be,At){var Rt=this._getStylesData(At);Dt.attr(Be,{cellSpacing:At.cellSpacing||null,cellPadding:At.cellPadding||null,className:At.className||null,id:At.id||null,summary:At.summary||null,style:Rt||null}),vn(Be).addClass("k-table")},_updateCellProperties:function(Be,At){var Rt=this._getStylesData(At);Rt.padding=At.cellPadding||null,Rt.margin=At.cellMargin||null,Dt.attr(Be,{style:Rt||null,className:At.className||null})},_updateCaption:function(Be,At){if(Be.caption&&!At.captionContent)Be.deleteCaption();else if(At.captionContent){var Rt=Be.createCaption();Rt.innerHTML=At.captionContent;var Pt=this._getAlignmentData(At.captionAlignment);Dt.attr(Rt,{style:{textAlign:Pt.textAlign,verticalAlign:Pt.verticalAlign}})}},_updateHeadersNoThead:function(Be,At){var Nn,Ae,He,Kt,Pt=At.tableProperties,$t=Be.rows;for(He=0;He<$t.length;He++)for(Nn=$t[He].cells,Kt=0;Kt<Nn.length;Kt++)!this._isHeadingCell(Ae=Nn[Kt])&&(He<Pt.headerRows||Pt.headerColumns>Ae.getAttribute(cn))?Dt.changeTag(Ae,Ht,!1):this._isHeadingCell(Ae)&&He>=Pt.headerRows&&Pt.headerColumns<=Ae.getAttribute(cn)&&Dt.changeTag(Ae,"td",!1)},_updateHeadersWithThead:function(Be,At){var Ae,He,Kt,Pt=At.tableProperties,$t=Be.tHead,Xn=0,Nn=Be.tBodies[0];if(Nn||(Nn=Be.createTBody()),Pt.headerRows&&Pt.headerRows>0){for($t||($t=Be.createTHead());$t.rows.length<Pt.headerRows;)$t.appendChild(Nn.rows[0]);for(;$t.rows.length>Pt.headerRows;)Nn.appendChild($t.rows[0]);this._swapToHeaderCells($t)}else if($t){for(;$t.rows.length>0;)Nn.appendChild($t.rows[$t.rows.length-1]);Be.deleteTHead()}for(;Nn.rows.length>Xn;){for(Ae=Nn.rows[Xn],Kt=0;Kt<Ae.cells.length;Kt++)this._isHeadingCell(He=Ae.cells[Kt])&&Pt.headerColumns<=He.getAttribute(cn)?Dt.changeTag(He,"td",!1):!this._isHeadingCell(He)&&Pt.headerColumns>He.getAttribute(cn)&&Dt.changeTag(He,Ht,!1);Xn+=1}},_updateHeaderAssociates:function(Be,At){var Rt=this;"ids"===At.cellsWithHeaders?(Rt.cellsWithHeadersAssociated(Be)||Rt._removeScopes(Be),Dt.associateWithIds(Be)):"scope"===At.cellsWithHeaders?(Rt.cellsWithHeadersAssociated(Be)&&Rt._removeAssociates(Be),Rt._addScopes(Be,At.headerRows,At.headerColumns)):Rt.cellsWithHeadersAssociated(Be)?Rt._removeAssociates(Be):Rt._removeScopes(Be)},_addScopes:function(Be,At,Rt){var $t,Xn,Nn,Ae,Pt=Be.rows;for($t=0;$t<Pt.length;$t++)for(Nn=Pt[$t],Xn=0;Xn<Nn.cells.length;Xn++)Ae=Nn.cells[Xn],$t<At?Ae.setAttribute(en,"col"):Ae.getAttribute(cn)<Rt&&Ae.setAttribute(en,"row")},_removeScopes:function(Be){vn(Be).find(Ht).removeAttr(en),vn(Be).find("col").remove(),vn(Be).find("colgroup").remove()},_removeAssociates:function(Be){vn(Be).find("th, td").removeAttr("id headers")},_swapToHeaderCells:function(Be){vn(Be).find("td").each(function(Pt,$t){Dt.changeTag($t,Ht,!1)})},_getStylesData:function(Be){var At=this._getAlignmentData(Be.alignment);return{width:Be.width?Be.width+Be.widthUnit:null,height:Be.height?Be.height+Be.heightUnit:null,textAlign:At.textAlign,verticalAlign:At.verticalAlign,backgroundColor:Be.bgColor||"",borderWidth:Be.borderWidth,borderStyle:Be.borderStyle,borderColor:Be.borderColor||"",borderCollapse:Be.collapseBorders?"collapse":null,whiteSpace:"wrapText"in Be?Be.wrapText?"":"nowrap":null}},_getAlignmentData:function(Be){var At="",Rt=At;if(Be)if(-1!=Be.indexOf(" ")){var Pt=Be.split(" ");At=Pt[0],Rt=Pt[1]}else At=Be;return{textAlign:At,verticalAlign:Rt}},parseTable:function(Be,At){if(!Be)return{tableProperties:{},selectedCells:[]};var Rt=this,Pt=Be.style,$t=Be.rows,Xn=Be.caption,Nn=vn(Xn?Xn.cloneNode(!0):Xe);Nn.find(".k-marker").remove();var Ae=Be.className;Ae=(Ae=(Ae=Ae.replace(/^k-table\s|\sk-table$/,"")).replace(/\sk-table\s/," ")).replace(/^k-table$/,"");var Fi,He=Rt._getAlignment(Be,!0),Kt=Xn?Rt._getAlignment(Xn):Xe,On=Dt._getNumberOfHeaderRows(Be);Fi=Rt.cellsWithHeadersAssociated(Be)?"ids":vn(Be).find("th[scope]").length>0?"scope":"none",Dt.reMapTableColumns(Be,cn);var Ci=Dt._getNumberOfColumns(Be),xi=Dt._getNumberOfHeaderColumns(Be,On);Dt.clearTableMappings(Be,cn);var Wn={tableProperties:{width:Pt.width||Be.width?parseFloat(Pt.width||Be.width):null,height:Pt.height||Be.height?parseFloat(Pt.height||Be.height):null,columns:Ci,rows:$t.length,widthUnit:Rt._getUnit(Pt.width),heightUnit:Rt._getUnit(Pt.height),cellSpacing:Be.cellSpacing,cellPadding:Be.cellPadding,alignment:He.textAlign,bgColor:Pt.backgroundColor||Be.bgColor,className:Ae,id:Be.id,borderWidth:Pt.borderWidth||Be.border,borderColor:Pt.borderColor,borderStyle:Pt.borderStyle||"",collapseBorders:!!Pt.borderCollapse,summary:Be.summary,captionContent:Xn?Nn.html():"",captionAlignment:Xn&&Kt.textAlign?Kt.textAlign+" "+Kt.verticalAlign:"",headerRows:On,headerColumns:xi,cellsWithHeaders:Fi},selectedCells:[]};return Wn.rows=Rt.parseTableRows($t,At,Wn),Wn},parseTableRows:function(Be,At,Rt){for(var Nn,Ae,He,Kt,$t=[],On=0;On<Be.length;On++){Ae=Be[On].cells,$t.push(Nn={cells:[]});for(var Fi=0;Fi<Ae.length;Fi++)Kt=this.parseCell(He=Ae[Fi]),-1!=vn.inArray(He,At)&&Rt.selectedCells.push(Kt),Nn.cells.push(Kt)}return $t},parseCell:function(Be){var Rt=Be.style,Pt=this._getAlignment(Be);return Pt=Pt.textAlign?Pt.textAlign+" "+Pt.verticalAlign:"",{width:Rt.width||Be.width?parseFloat(Rt.width||Be.width):null,height:Rt.height||Be.height?parseFloat(Rt.height||Be.height):null,widthUnit:this._getUnit(Rt.width),heightUnit:this._getUnit(Rt.height),cellMargin:Rt.margin,cellPadding:Rt.padding,alignment:Pt,bgColor:Rt.backgroundColor||Be.bgColor,className:Be.className,id:Be.id,borderWidth:Rt.borderWidth||Be.border,borderColor:Rt.borderColor,borderStyle:Rt.borderStyle,wrapText:"nowrap"!=Rt.whiteSpace}},_getAlignment:function(Be,At){var Rt=Be.style,Pt=Rt.textAlign||Be.align||"";if(At)return{textAlign:Pt};var $t=Rt.verticalAlign||Be.vAlign||"";return Pt&&$t?{textAlign:Pt,verticalAlign:$t}:!Pt&&$t?{textAlign:"left",verticalAlign:$t}:Pt&&!$t?{textAlign:Pt,verticalAlign:"top"}:{textAlign:"",verticalAlign:""}},_getUnit:function(Be){var At=(Be||"").match(Dn);return At?At[0]:"px"},_selectedTable:function(Be){var At=Dt.filterBy(it.nodes(Be),Dt.htmlIndentSpace,!0);return Sn.findSuitable(At)[0]},_selectedCells:function(Be){var At=Dt.filterBy(it.nodes(Be),Dt.htmlIndentSpace,!0);return Vn.findSuitable(At)},_lastInCollection:function(Be){return Be[Be.length-1]}}),Ve=ze.Tool.extend({command:function(Be){return Be.insertNewTable=this.options.insertNewTable,new Je(Be)}}),Ge=Ve.extend({update:function(Be,At){1==!Sn.isFormatted(At)?(Be.parent().addClass("k-hidden k-disabled"),Be.attr("disabled","disabled"),Be.addClass("k-disabled")):(Be.parent().removeClass("k-hidden k-disabled"),Be.prop("disabled",!1),Be.removeClass("k-disabled"))}});Ke.ui.editor.TableWizardTool=Ve,Hn("tableWizard",new Ge({command:Ke.ui.editor.TableWizardCommand=Je,insertNewTable:!1,template:new Ui({template:St.buttonTemplate,title:"Table Wizard"})}))}.apply(ls={},ur=[mo]))&&(Zr=ls),void 0===(Hs=function(){var vn=window.kendo.jQuery,Ke=window.kendo,ze={format:"0",min:0},St=["px","em"],it=["solid","dotted","dashed","double","groove","ridge","inset","outset","initial","inherit","none","hidden"],Hn={dataSource:[{className:"k-icon k-i-table-align-middle-left",value:"left"},{className:"k-icon k-i-table-align-middle-center",value:"center"},{className:"k-icon k-i-table-align-middle-right",value:"right"},{className:"k-icon k-i-align-remove",value:""}],dataTextField:"className",dataValueField:"value",template:"<span class='#: className #' title='#: tooltip #'></span>",valueTemplate:"<span class='k-align-group #: className #' title='#: tooltip #'></span>"},Ui={dataSource:[{className:"k-icon k-i-table-align-top-left",value:"left top"},{className:"k-icon k-i-table-align-top-center",value:"center top"},{className:"k-icon k-i-table-align-top-right",value:"right top"},{className:"k-icon k-i-table-align-middle-left",value:"left middle"},{className:"k-icon k-i-table-align-middle-center",value:"center middle"},{className:"k-icon k-i-table-align-middle-right",value:"right middle"},{className:"k-icon k-i-table-align-bottom-left",value:"left bottom"},{className:"k-icon k-i-table-align-bottom-center",value:"center bottom"},{className:"k-icon k-i-table-align-bottom-right",value:"right bottom"},{className:"k-icon k-i-align-remove",value:""}],dataTextField:"className",dataValueField:"value",template:"<span class='#: className #' title='#: tooltip #'></span>",valueTemplate:"<span class='k-align-group #: className #' title='#: tooltip #'></span>"},Co={dataSource:[{className:"k-icon k-i-table-align-top-left",value:"left top"},{className:"k-icon k-i-table-align-top-center",value:"center top"},{className:"k-icon k-i-table-align-top-right",value:"right top"},{className:"k-icon k-i-table-align-bottom-left",value:"left bottom"},{className:"k-icon k-i-table-align-bottom-center",value:"center bottom"},{className:"k-icon k-i-table-align-bottom-right",value:"right bottom"},{className:"k-icon k-i-align-remove",value:""}],dataTextField:"className",dataValueField:"value",template:"<span class='#: className #' title='#: tooltip #'></span>",valueTemplate:"<span class='k-align-group #: className #' title='#: tooltip #'></span>"},Vn=Ke.Class.extend({init:function(Dn){this.options=Dn},open:function(){var en,Dn=this,kn=Dn.options,ui=kn.dialogOptions,Ot=kn.table,cn=kn.messages,Ht=Ke.support.browser.msie;function ft(Ve){Ve.preventDefault(),Dn.destroy(),en.destroy()}function an(Ve){ft(Ve),kn.closeCallback()}ui.close=an,ui.title=cn.tableWizard,ui.visible=kn.visible;var $e=(en=vn(Dn._dialogTemplate(cn)).appendTo(document.body).kendoWindow(ui).closest(".k-window").toggleClass("k-rtl",kn.isRtl).end().find(".k-dialog-ok").on("click",function Nt(Ve){Dn.collectDialogValues(Ot),ft(Ve),Dn.change&&Dn.change(),kn.closeCallback(Ot)}).end().find(".k-dialog-close").on("click",an).end().data("kendoWindow")).element;if(Dn._initTabStripComponent($e),Dn._initTableViewComponents($e,Ot),Dn._initCellViewComponents($e,Ot),Dn._initAccessibilityViewComponents($e,Ot),en.center(),en.open(),Ht){var Je=$e.closest(".k-window").height();$e.css("max-height",Je)}},_initTabStripComponent:function(Dn){(this.components={}).tabStrip=Dn.find("#k-table-wizard-tabs").kendoTabStrip({animation:!1}).data("kendoTabStrip")},collectDialogValues:function(){var kn=this.options.table;this._collectTableViewValues(kn),this._collectCellViewValues(kn),this._collectAccessibilityViewValues(kn)},_collectTableViewValues:function(Dn){var kn=this.components.tableView,ui=Dn.tableProperties;ui.width=kn.width.value(),ui.widthUnit=kn.widthUnit.value(),ui.height=kn.height.value(),ui.columns=kn.columns.value(),ui.rows=kn.rows.value(),ui.heightUnit=kn.heightUnit.value(),ui.cellSpacing=kn.cellSpacing.value(),ui.cellPadding=kn.cellPadding.value(),ui.alignment=kn.alignment.value(),ui.bgColor=kn.bgColor.value(),ui.className=kn.className.value,ui.id=kn.id.value,ui.borderWidth=kn.borderWidth.value(),ui.borderColor=kn.borderColor.value(),ui.borderStyle=kn.borderStyle.value(),ui.collapseBorders=kn.collapseBorders.checked},_collectCellViewValues:function(Dn){var kn=Dn.cellProperties={},ui=this.components.cellView;kn.selectAllCells=ui.selectAllCells.checked,kn.width=ui.width.value(),kn.widthUnit=ui.widthUnit.value(),kn.height=ui.height.value(),kn.heightUnit=ui.heightUnit.value(),kn.cellMargin=ui.cellMargin.value(),kn.cellPadding=ui.cellPadding.value(),kn.alignment=ui.alignment.value(),kn.bgColor=ui.bgColor.value(),kn.className=ui.className.value,kn.id=ui.id.value,kn.borderWidth=ui.borderWidth.value(),kn.borderColor=ui.borderColor.value(),kn.borderStyle=ui.borderStyle.value(),kn.wrapText=ui.wrapText.checked,kn.width||(kn.selectAllCells=!0,kn.width=100/Dn.tableProperties.columns,kn.widthUnit="%")},_collectAccessibilityViewValues:function(Dn){var kn=Dn.tableProperties,ui=this.components.accessibilityView;kn.captionContent=ui.captionContent.value,kn.captionAlignment=ui.captionAlignment.value(),kn.summary=ui.summary.value,kn.cellsWithHeaders=ui.cellsWithHeaders.value(),kn.headerRows=ui.headerRows.value(),kn.headerColumns=ui.headerColumns.value()},_addUnit:function(Dn,kn){kn&&-1==vn.inArray(kn,Dn)&&Dn.push(kn)},_initTableViewComponents:function(Dn,kn){var ui=this,en=ui.components.tableView={},cn=kn.tableProperties=kn.tableProperties||{};cn.borderStyle=cn.borderStyle||"",ui._addUnit(St,cn.widthUnit),ui._addUnit(St,cn.heightUnit),ui._initNumericTextbox(Dn.find("#k-editor-table-width"),"width",cn,en),ui._initNumericTextbox(Dn.find("#k-editor-table-height"),"height",cn,en),ui._initNumericTextbox(Dn.find("#k-editor-table-columns"),"columns",cn,en,{min:1,value:4,change:function(Nt){var $e=ui.components.accessibilityView.headerColumns,Je=$e.value(),Ve=Nt.sender.value();Ve<Je&&$e.value(Ve),$e.max(Ve)}}),ui._initNumericTextbox(Dn.find("#k-editor-table-rows"),"rows",cn,en,{min:1,value:4,change:function(Nt){var $e=ui.components.accessibilityView.headerRows,Je=$e.value(),Ve=Nt.sender.value();Ve<Je&&$e.value(Ve),$e.max(Ve)}}),ui._initDropDownList(Dn.find("#k-editor-table-width-type"),"widthUnit",cn,en,St),ui._initDropDownList(Dn.find("#k-editor-table-height-type"),"heightUnit",cn,en,St),ui._initNumericTextbox(Dn.find("#k-editor-table-cell-spacing"),"cellSpacing",cn,en),ui._initNumericTextbox(Dn.find("#k-editor-table-cell-padding"),"cellPadding",cn,en),ui._initTableAlignmentDropDown(Dn.find("#k-editor-table-alignment"),cn),ui._initColorPicker(Dn.find("#k-editor-table-bg"),"bgColor",cn,en),ui._initInput(Dn.find("#k-editor-css-class"),"className",cn,en),ui._initInput(Dn.find("#k-editor-id"),"id",cn,en),ui._initNumericTextbox(Dn.find("#k-editor-border-width"),"borderWidth",cn,en),ui._initColorPicker(Dn.find("#k-editor-border-color"),"borderColor",cn,en),ui._initBorderStyleDropDown(Dn.find("#k-editor-border-style"),"borderStyle",cn,en,it),ui._initCheckbox(Dn.find("#k-editor-collapse-borders"),"collapseBorders",cn,en)},_initCellViewComponents:function(Dn,kn){var Ot=this.components.cellView={};kn.selectedCells=kn.selectedCells=kn.selectedCells||[];var en=kn.selectedCells[0]||{borderStyle:"",wrapText:!0};this._addUnit(St,en.widthUnit),this._addUnit(St,en.heightUnit),this._initCheckbox(Dn.find("#k-editor-selectAllCells"),"selectAllCells",kn.tableProperties,Ot),this._initNumericTextbox(Dn.find("#k-editor-cell-width"),"width",en,Ot),this._initNumericTextbox(Dn.find("#k-editor-cell-height"),"height",en,Ot),this._initDropDownList(Dn.find("#k-editor-cell-width-type"),"widthUnit",en,Ot,St),this._initDropDownList(Dn.find("#k-editor-cell-height-type"),"heightUnit",en,Ot,St),this._initNumericTextbox(Dn.find("#k-editor-table-cell-margin"),"cellMargin",en,Ot),this._initNumericTextbox(Dn.find("#k-editor-table-cells-padding"),"cellPadding",en,Ot),this._initCellAlignmentDropDown(Dn.find("#k-editor-cell-alignment"),en),this._initColorPicker(Dn.find("#k-editor-cell-bg"),"bgColor",en,Ot),this._initInput(Dn.find("#k-editor-cell-css-class"),"className",en,Ot),this._initInput(Dn.find("#k-editor-cell-id"),"id",en,Ot),this._initNumericTextbox(Dn.find("#k-editor-cell-border-width"),"borderWidth",en,Ot),this._initColorPicker(Dn.find("#k-editor-cell-border-color"),"borderColor",en,Ot),this._initBorderStyleDropDown(Dn.find("#k-editor-cell-border-style"),"borderStyle",en,Ot,it),this._initCheckbox(Dn.find("#k-editor-wrap-text"),"wrapText",en,Ot)},_initAccessibilityViewComponents:function(Dn,kn){var Ot=this.components.accessibilityView={},en=kn.tableProperties;this._initInput(Dn.find("#k-editor-table-caption"),"captionContent",en,Ot),this._initAccessibilityAlignmentDropDown(Dn.find("#k-editor-accessibility-alignment"),en),this._initInput(Dn.find("#k-editor-accessibility-summary"),"summary",en,Ot),this._initAssociationDropDown(Dn.find("#k-editor-cells-headers"),"cellsWithHeaders",{valuePrimitive:!0},en,Ot),this._initNumericTextbox(Dn.find("#k-editor-table-header-rows"),"headerRows",en,Ot,{max:en.rows||4}),this._initNumericTextbox(Dn.find("#k-editor-table-header-columns"),"headerColumns",en,Ot,{max:en.columns||4})},_initNumericTextbox:function(Dn,kn,ui,Ot,en){var cn=Ot[kn]=Dn.kendoNumericTextBox(en?vn.extend({},ze,en):ze).data("kendoNumericTextBox");kn in ui&&cn.value(parseInt(ui[kn],10))},_initDropDownList:function(Dn,kn,ui,Ot,en){var cn=Ot[kn]=Dn.kendoDropDownList({dataSource:en}).data("kendoDropDownList");this._setComponentValue(cn,ui,kn)},_initBorderStyleDropDown:function(Dn,kn,ui,Ot,en){var cn=Ot[kn]=Dn.kendoDropDownList({dataSource:en,optionLabel:this.options.messages.borderNone}).data("kendoDropDownList");this._setComponentValue(cn,ui,kn)},_initTableAlignmentDropDown:function(Dn,kn){var ui=this.options.messages,Ot=this.components.tableView,en=Hn.dataSource;en[0].tooltip=ui.alignLeft,en[1].tooltip=ui.alignCenter,en[2].tooltip=ui.alignRight,en[3].tooltip=ui.alignRemove,this._initAlignmentDropDown(Dn,Hn,"alignment",kn,Ot)},_initCellAlignmentDropDown:function(Dn,kn){var ui=this.options.messages,Ot=this.components.cellView,en=Ui.dataSource;en[0].tooltip=ui.alignLeftTop,en[1].tooltip=ui.alignCenterTop,en[2].tooltip=ui.alignRightTop,en[3].tooltip=ui.alignLeftMiddle,en[4].tooltip=ui.alignCenterMiddle,en[5].tooltip=ui.alignRightMiddle,en[6].tooltip=ui.alignLeftBottom,en[7].tooltip=ui.alignCenterBottom,en[8].tooltip=ui.alignRightBottom,en[9].tooltip=ui.alignRemove,this._initAlignmentDropDown(Dn,Ui,"alignment",kn,Ot)},_initAccessibilityAlignmentDropDown:function(Dn,kn){var ui=this.options.messages,Ot=this.components.accessibilityView,en=Co.dataSource;en[0].tooltip=ui.alignLeftTop,en[1].tooltip=ui.alignCenterTop,en[2].tooltip=ui.alignRightTop,en[3].tooltip=ui.alignLeftBottom,en[4].tooltip=ui.alignCenterBottom,en[5].tooltip=ui.alignRightBottom,en[6].tooltip=ui.alignRemove,this._initAlignmentDropDown(Dn,Co,"captionAlignment",kn,Ot)},_initAlignmentDropDown:function(Dn,kn,ui,Ot,en){var cn=en[ui]=Dn.kendoDropDownList(kn).data("kendoDropDownList");cn.list.addClass("k-align").css("width","110px"),this._setComponentValue(cn,Ot,ui)},_initAssociationDropDown:function(Dn,kn,ui,Ot,en){var cn=en[kn]=Dn.kendoDropDownList(ui).data("kendoDropDownList");this._setComponentValue(cn,Ot,kn)},_setComponentValue:function(Dn,kn,ui){ui in kn&&Dn.value(kn[ui])},_initColorPicker:function(Dn,kn,ui,Ot){var en=Ot[kn]=Dn.kendoColorPicker({buttons:!1,clearButton:!0}).data("kendoColorPicker");ui[kn]&&en.value(ui[kn])},_initInput:function(Dn,kn,ui,Ot){var en=Ot[kn]=Dn.get(0);kn in ui&&(en.value=ui[kn])},_initCheckbox:function(Dn,kn,ui,Ot){var en=Ot[kn]=Dn.get(0);kn in ui&&(en.checked=ui[kn])},destroy:function(){this._destroyComponents(this.components.tableView),this._destroyComponents(this.components.cellView),this._destroyComponents(this.components.accessibilityView),this._destroyComponents(this.components),delete this.components},_destroyComponents:function(Dn){for(var kn in Dn)Dn[kn].destroy&&Dn[kn].destroy(),delete Dn[kn]},_dialogTemplate:function(Dn){return Ke.template('<div class="k-editor-dialog k-editor-table-wizard-dialog k-action-window k-popup-edit-form"><div class="k-edit-form-container"><div id="k-table-wizard-tabs" class="k-root-tabs"><ul><li class="k-active">#= messages.tableTab #</li><li>#= messages.cellTab #</li><li>#= messages.accessibilityTab #</li></ul><div id="k-table-properties"><div class="k-edit-label"><label for="k-editor-table-width">#= messages.width #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-table-width" /><input id="k-editor-table-width-type" aria-label="#= messages.units #" /></div><div class="k-edit-label"><label for="k-editor-table-height">#= messages.height #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-table-height" /><input id="k-editor-table-height-type" aria-label="#= messages.units #" /></div><div class="k-edit-label"><label for="k-editor-table-columns">#= messages.columns #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-table-columns" /></div><div class="k-edit-label"><label for="k-editor-table-rows">#= messages.rows #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-table-rows" /></div><div class="k-edit-label"><label for="k-editor-table-cell-spacing">#= messages.cellSpacing #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-table-cell-spacing" /></div><div class="k-edit-label"><label for="k-editor-table-cell-padding">#= messages.cellPadding #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-table-cell-padding" /></div><div class="k-edit-label"><label for="k-editor-table-alignment">#= messages.alignment #</label></div><div class="k-edit-field"><input id="k-editor-table-alignment" class="k-align" /></div><div class="k-edit-label"><label for="k-editor-table-bg">#= messages.background #</label></div><div class="k-edit-field"><input id="k-editor-table-bg" /></div><div class="k-edit-label"><label for="k-editor-css-class">#= messages.cssClass #</label></div><div class="k-edit-field"><span class="k-textbox k-input k-input-md k-rounded-md k-input-solid"><input id="k-editor-css-class" class="k-input-inner" type="text" /></span></div><div class="k-edit-label"><label for="k-editor-id">#= messages.id #</label></div><div class="k-edit-field"><span class="k-textbox k-input k-input-md k-rounded-md k-input-solid"><input id="k-editor-id" class="k-input-inner" type="text" /></span></div><div class="k-edit-label"><label for="k-editor-border-width">#= messages.border #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-border-width" /><input id="k-editor-border-color" /></div><div class="k-edit-label"><label for="k-editor-border-style">#= messages.borderStyle #</label></div><div class="k-edit-field"><input id="k-editor-border-style" /></div><div class="k-edit-label">&nbsp;</div><div class="k-edit-field"><input id="k-editor-collapse-borders" type="checkbox" class="k-checkbox k-checkbox-md k-rounded-md" /><label for="k-editor-collapse-borders" class="k-checkbox-label">#= messages.collapseBorders #</label></div></div><div id="k-cell-properties"><div class="k-edit-field"><input id="k-editor-selectAllCells" type="checkbox" class="k-checkbox k-checkbox-md k-rounded-md" /><label for="k-editor-selectAllCells" class="k-checkbox-label">#= messages.selectAllCells #</label></div><div class="k-edit-label"><label for="k-editor-cell-width">#= messages.width #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-cell-width" /><input id="k-editor-cell-width-type" aria-label="#= messages.units #" /></div><div class="k-edit-label"><label for="k-editor-cell-height">#= messages.height #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-cell-height" /><input id="k-editor-cell-height-type" aria-label="#= messages.units #" /></div><div class="k-edit-label"><label for="k-editor-table-cell-margin">#= messages.cellMargin #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-table-cell-margin" /></div><div class="k-edit-label"><label for="k-editor-table-cells-padding">#= messages.cellPadding #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-table-cells-padding" /></div><div class="k-edit-label"><label for="k-editor-cell-alignment">#= messages.alignment #</label></div><div class="k-edit-field"><input id="k-editor-cell-alignment" class="k-align" /></div><div class="k-edit-label"><label for="k-editor-cell-bg">#= messages.background #</label></div><div class="k-edit-field"><input id="k-editor-cell-bg" /></div><div class="k-edit-label"><label for="k-editor-cell-css-class">#= messages.cssClass #</label></div><div class="k-edit-field"><span class="k-textbox k-input k-input-md k-rounded-md k-input-solid"><input id="k-editor-cell-css-class" class="k-input-inner" type="text" /></span></div><div class="k-edit-label"><label for="k-editor-cell-id">#= messages.id #</label></div><div class="k-edit-field"><span class="k-textbox k-input k-input-md k-rounded-md k-input-solid"><input id="k-editor-cell-id" class="k-input-inner" type="text" /></span></div><div class="k-edit-label"><label for="k-editor-cell-border-width">#= messages.border #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-cell-border-width" /><input id="k-editor-cell-border-color" /></div><div class="k-edit-label"><label for="k-editor-cell-border-style">#= messages.borderStyle #</label></div><div class="k-edit-field"><input id="k-editor-cell-border-style" /></div><div class="k-edit-label">&nbsp;</div><div class="k-edit-field"><input id="k-editor-wrap-text" type="checkbox" class="k-checkbox k-checkbox-md k-rounded-md" /><label for="k-editor-wrap-text" class="k-checkbox-label">#= messages.wrapText #</label></div></div><div id="k-accessibility-properties"><div class="k-edit-label"><label for="k-editor-table-header-rows">#= messages.headerRows #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-table-header-rows" /></div><div class="k-edit-label"><label for="k-editor-table-header-columns">#= messages.headerColumns #</label></div><div class="k-edit-field"><input type="numeric" id="k-editor-table-header-columns" /></div><div class="k-edit-label"><label for="k-editor-table-caption">#= messages.caption #</label></div><div class="k-edit-field"><span class="k-textbox k-input k-input-md k-rounded-md k-input-solid"><input id="k-editor-table-caption" class="k-input-inner" type="text"/></span></div><div class="k-edit-label"><label for="k-editor-accessibility-alignment">#= messages.alignment #</label></div><div class="k-edit-field"><input id="k-editor-accessibility-alignment" class="k-align" /></div><div class="k-edit-label"><label for="k-editor-accessibility-summary">#= messages.summary #</label></div><div class="k-edit-field"><span class="k-input k-textarea k-input-solid k-input-md k-rounded-md"><textarea id="k-editor-accessibility-summary" rows="5" class="k-input-inner k-editor-accessibility-summary" placeholder="#= messages.tableSummaryPlaceholder #"></textarea></span></div><div class="k-edit-label"><label for="k-editor-cells-headers">#= messages.associateCellsWithHeaders #</label></div><div class="k-edit-field"><select id="k-editor-cells-headers"><option value="none">#= messages.associateNone #</option><option value="scope">#= messages.associateScope #</option><option value="ids">#= messages.associateIds #</option></select></div></div></div><div class="k-edit-buttons"><button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary k-dialog-ok"><span class="k-button-text">#= messages.dialogOk #</span></button><button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-dialog-close"><span class="k-button-text">#= messages.dialogCancel #</span></button></div></div></div>')({messages:Dn})}});Ke.ui.editor.TableWizardDialog=Vn}.apply(Js={},ur=[Zr,si]))&&(Hs=Js),void 0===(Wa=function(){return window.kendo}.apply(ll={},ur=[O,te,H,q,Ko,Pi,xn,pn,wi,zn,li,jo,Bi,ki,Lo,Zi,xr,ai,bs,ms,Ea,tr,Li,ao,pr,br,as,Fo,Io,mr,mo,yo,Yr,fi,_t,qo,Ss,$o,js,No,Zr,Hs]))&&(Wa=ll),void 0===(Za=function(){var Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,St=ze.ui,it=ze._activeElement,Dt=ze.support.touch&&ze.support.mobileOS,Hn=Array.isArray,Ui=ze.data.HierarchicalDataSource,Co="mousedown",Sn="click",kn=Xe.extend,ui=Xe.each,Ot=ze.template,en=ze.keys,cn=St.Widget,Ht=/^(ul|a|div)$/i,ft=".kendoMenu",an="open",$e="k-menu",Je="k-link k-menu-link",Ve=".k-link",Ge=".k-menu-expand-arrow-icon",Be="k-last",At="close",Rt="timer",Pt="k-first",$t="k-image",Xn="select",Nn="zIndex",Ae="activate",He="deactivate",Kt="touchstart"+ft+" MSPointerDown"+ft+" pointerdown"+ft,On=ze.support.pointers,Fi=ze.support.msPointers,Ci=Fi||On,xi="change",Vt=ze.support.touch?"touchstart":"",qt=On?"pointerover":Fi?"MSPointerOver":"mouseenter",bn=On?"pointerout":Fi?"MSPointerOut":"mouseleave",ii="DOMMouseScroll"+ft+" mousewheel"+ft,Vi=ze.support.resize+ft,ci="group",Oi="groupparent",Ai=Xe(document.documentElement),Pn="kendoPopup",qn="k-hover",Ni="k-focus",Ue="k-disabled",Me=".k-menu",pe=".k-menu-group",lt=".k-animation-container",yt=pe+","+lt,on=":not(.k-list) > .k-item:not([role='treeitem'])",Kn=".k-item",ho=".k-item:not(.k-disabled)",$i=":not(.k-item.k-separator)",wo=".k-menu-scroll-button",io={2:1,touch:1},fo="dataBound",cr="aria-expanded",Fr="role",jr={text:"dataTextField",url:"dataUrlField",spriteCssClass:"dataSpriteCssClassField",imageUrl:"dataImageUrlField",imageAttr:"dataImageAttrField",content:"dataContentField"},fs={wrapperCssClass:function(eo,To){var Qo="k-item k-menu-item",Dr=To.index;return!1===To.enabled&&(Qo+=" k-disabled"),eo.firstLevel&&0===Dr&&(Qo+=" k-first"),Dr==eo.length-1&&(Qo+=" k-last"),To.cssClass&&(Qo+=" "+To.cssClass),To.attr&&To.attr.hasOwnProperty("class")&&(Qo+=" "+To.attr.class),To.selected&&(Qo+=" k-selected"),Qo},itemCssAttributes:function(eo){var To="",Qo=eo.attr||{};for(var Dr in Qo)Qo.hasOwnProperty(Dr)&&"class"!==Dr&&(To+=Dr+'="'+Qo[Dr]+'" ');return To},imageCssAttributes:function(eo){var To="",Qo=eo&&eo.toJSON?eo.toJSON():{};for(var Dr in Qo.class?Qo.class+=" "+$t:Qo.class=$t,Qo)Qo.hasOwnProperty(Dr)&&(To+=Dr+'="'+Qo[Dr]+'" ');return To},contentCssAttributes:function(eo){var To="",Qo=eo.contentAttr||{},Dr="k-content k-group k-menu-group k-menu-group-md";for(var _s in Qo.class?Qo.class+=" "+Dr:Qo.class=Dr,Qo)Qo.hasOwnProperty(_s)&&(To+=_s+'="'+Qo[_s]+'" ');return To},textClass:function(){return Je},arrowClass:function(eo,To){return"k-menu-expand-arrow-icon k-icon"+(To.horizontal?" k-i-arrow-s":" k-i-arrow-e")},groupAttributes:function(eo){return!0!==eo.expanded?" style='display:none'":""},groupCssClass:function(){return"k-group k-menu-group k-menu-group-md"},content:function(eo){return eo.content?eo.content:"&nbsp;"}};function ks(eo,To){try{return Xe.contains(eo,To)}catch{return!1}}function ts(eo){(eo=Xe(eo)).attr(ze.attr("omit-wrap"))||(eo.addClass("k-item k-menu-item").children("img").addClass($t),eo.children("a").addClass(Je).children("img").addClass($t),eo.filter(":not([disabled])"),eo.filter(".k-separator").removeClass("k-menu-item").addClass("k-menu-separator").empty().append("&nbsp;"),eo.filter("li[disabled]").addClass(Ue).prop("disabled",!1).attr("aria-disabled",!0),eo.filter("[role]").length||eo.attr(Fr,"menuitem"),eo.children(Ve).length||eo.contents().filter(function(){return!(this.nodeName.match(Ht)||3===this.nodeType&&!ze.trim(this.nodeValue))}).wrapAll("<span class='"+Je+"'></span>").filter(function(Qo,Dr){return 3===Dr.nodeType}).wrap("<span class='k-menu-link-text'></span>"),na(eo),_a(eo))}function na(eo){(eo=Xe(eo)).find("> .k-link > .k-menu-expand-arrow > [class*=k-i-arrow]:not(.k-sprite)").parent().remove(),eo.filter(":has(.k-menu-group)").children(".k-link:not(:has([class*=k-i-arrow]:not(.k-sprite)))").each(function(){var To=Xe(this),Qo=function Xs(eo){var Qo=eo.parent().parent(),Dr=ze.support.isRtl(Qo);return Qo.hasClass($e+"-horizontal")?"k-i-arrow-s":Dr?"k-i-arrow-w":"k-i-arrow-e"}(To);To.append("<span class='k-menu-expand-arrow'><span class='k-menu-expand-arrow-icon k-icon "+Qo+"'></span></span>")})}function _a(eo){(eo=Xe(eo)).filter(".k-first:not(:first-child)").removeClass(Pt),eo.filter(".k-last:not(:last-child)").removeClass(Be),eo.filter(":first-child").addClass(Pt),eo.filter(":last-child").addClass(Be)}function Ws(eo){if(eo&&eo.length)for(var To in eo){var Qo=eo.eq(To);Qo.find("ul").length?Qo.attr("aria-haspopup",!0):Qo.removeAttr("aria-haspopup")}}function cs(eo){if(!eo.hasClass($e))return eo.parentsUntil("."+$e,"li")}function Ps(eo,To){var Qo=function vo(eo){var To=eo.select;return To&&(0,ze.isFunction)(To)?To:null}(To);Qo&&function Qi(eo,To){Xe(eo).children(".k-link").data({selectHandler:To})}(eo,Qo),To.items&&Xe(eo).children("ul").children("li").each(function(Dr){Ps(this,To.items[Dr])})}function pi(eo){return eo?"li[data-groupparent='"+eo+"']":"li[data-groupparent]"}function to(eo){var To=eo?"[data-group='"+eo+"']":"[data-group]";return"ul"+To+",div"+To}function Ro(eo,To){var Qo=eo.find(pi()),Dr=[];return Qo.each(function(_s,ia){for(var Ia=(ia=Xe(ia)).data(Oi),ar=eo;Ia;)(ar=To.find(to(Ia)+":visible")).length&&Dr.push(ar),Ia=(ia=ar.find(pi())).data(Oi)}),Dr}function Sr(eo,To){var Qo=eo.data(ci);return Qo?To.find(pi(Qo)):Xe([])}function rs(eo,To){var Qo=eo.data(Oi);return Qo?To.children(lt).children(to(Qo)):Xe([])}function la(eo,To){for(var Qo=0,Dr=eo.parentNode;Dr&&!isNaN(Dr[To]);)Qo+=Dr[To],Dr=Dr.parentNode;return Qo}function Da(eo){return Ci&&eo.originalEvent&&eo.originalEvent.pointerType in io}function nl(eo){eo.contents().filter(function(){return"LI"!=this.nodeName}).remove()}var il=ze.ui.DataBoundWidget.extend({init:function(eo,To){var Qo=this;cn.fn.init.call(Qo,eo,To),eo=Qo.wrapper=Qo.element,To=Qo.options,Qo._accessors(),Qo._templates(),Qo._dataSource(),Qo._updateClasses(),Qo._animations(To),Qo.nextItemZIndex=100,Qo._tabindex(),Qo._initOverflow(To),Qo._attachMenuEventsHandlers(),To.openOnClick&&(Qo.clicked=!1),eo.attr(Fr,"menubar"),eo[0].id&&(Qo._ariaId=ze.format("{0}_mn_active",eo[0].id)),ze.notify(Qo)},events:[an,At,Ae,He,Xn,fo],options:{name:"Menu",animation:{open:{duration:200},close:{duration:100}},orientation:"horizontal",direction:"default",openOnClick:!1,closeOnClick:!0,hoverDelay:100,scrollable:!1,popupCollision:Ke},_initData:function(){var eo=this;eo.dataSource&&(eo.angular("cleanup",function(){return{elements:eo.element.children()}}),eo.element.empty(),eo.append(eo.dataSource.view(),eo.element),eo.angular("compile",function(){return{elements:eo.element.children()}}))},_attachMenuEventsHandlers:function(){var eo=this,To=eo.element,Qo=eo.options,Dr=eo._overflowWrapper();eo._checkActiveProxy=eo._checkActiveElement.bind(eo),(Dr||To).on(Kt,Kn,eo._focusHandler.bind(eo)).on(Sn+ft,".k-item.k-disabled",!1).on(Sn+ft,Kn,eo._click.bind(eo)).on(Kt+" "+Co+ft,".k-content",eo._preventClose.bind(eo)).on(qt+ft,ho,eo._mouseenter.bind(eo)).on(bn+ft,ho,eo._mouseleave.bind(eo)).on(Co+ft,ho,eo._mousedown.bind(eo)).on(Vt+ft+" "+qt+ft+" "+bn+ft+" "+Co+ft+" "+Sn+ft,".k-item:not(.k-disabled) > .k-link",eo._toggleHover.bind(eo)),To.on("keydown"+ft,eo._keydown.bind(eo)).on("focus"+ft,eo._focus.bind(eo)).on("focus"+ft,".k-content",eo._focus.bind(eo)).on("blur"+ft,eo._removeHoverItem.bind(eo)).on("blur"+ft,"[tabindex]",eo._checkActiveProxy),Dr&&Dr.on(bn+ft,yt,eo._mouseleavePopup.bind(eo)).on(qt+ft,yt,eo._mouseenterPopup.bind(eo)),Qo.openOnClick&&(eo._documentClickHandler=eo._documentClick.bind(eo),Xe(document).on("click",eo._documentClickHandler))},_detachMenuEventsHandlers:function(){var To=this._overflowWrapper();To&&To.off(ft),this.element.off(ft),this._documentClickHandler&&Xe(document).off("click",this._documentClickHandler)},_initOverflow:function(eo){var Dr,_s,To=this,Qo="horizontal"==eo.orientation;if(eo.scrollable){To._openedPopups={},To._scrollWrapper=To.element.wrap("<div class='k-menu-scroll-wrapper k-"+eo.orientation+"'></div>").parent(),Qo&&nl(To.element),Dr=Xe(To.templates.scrollButton({direction:Qo?"left":"up"})),_s=Xe(To.templates.scrollButton({direction:Qo?"right":"down"})),Dr.add(_s).appendTo(To._scrollWrapper),To._initScrolling(To.element,Dr,_s,Qo);var ia=To.element.outerWidth(),Ia=To.element[0].style.width;Ia="auto"===Ia?"":Ia,Qo&&Xe(window).on(Vi,function(){setTimeout(function(){To._setOverflowWrapperWidth(ia,Ia),To._toggleScrollButtons(To.element,Dr,_s,Qo)},300)}),To._setOverflowWrapperWidth(ia,Ia),To._toggleScrollButtons(To.element,Dr,_s,Qo)}},_overflowWrapper:function(){return this._scrollWrapper||this._popupsWrapper},_setOverflowWrapperWidth:function(eo,To){var Qo=this,Dr=Qo._scrollWrapper.css("width");Qo._scrollWrapper.css({width:""});var _s=Qo._scrollWrapper.outerWidth();Qo._scrollWrapper.css({width:Dr});var ia=Qo.element.outerWidth(),Ia=Qo.element[0].offsetWidth-Qo.element[0].clientWidth;if(ia!=_s&&_s>0){var ar=To?Math.min(eo,_s):_s;Qo.element.width(ar-Ia),Qo._scrollWrapper.width(ar)}},_reinitOverflow:function(eo){var To=this;(eo.scrollable&&!To.options.scrollable||!eo.scrollable&&To.options.scrollable||eo.scrollable&&To.options.scrollable&&eo.scrollable.distance!=To.options.scrollable.distance||eo.orientation!=To.options.orientation)&&(To._detachMenuEventsHandlers(),To._destroyOverflow(),To._initOverflow(eo),To._attachMenuEventsHandlers())},_destroyOverflow:function(){var eo=this,To=eo._overflowWrapper();To&&(To.off(ft),To.find(wo).off(ft).remove(),To.children(lt).each(function(Qo,Dr){var _s=Xe(Dr).children(pe);_s.off(ii);var ia=Sr(_s,To);ia.length&&ia.append(Dr)}),To.find(pi()).removeAttr("data-groupparent"),To.find(to()).removeAttr("data-group"),eo.element.off(ii),Xe(window).off(Vi),To.contents().unwrap(),eo._scrollWrapper=eo._popupsWrapper=eo._openedPopups=Ke)},_initScrolling:function(eo,To,Qo,Dr){var _s=this,ia=_s.options.scrollable,Ia=_s.isNumeric(ia.distance)?ia.distance:50,ar=Ia/2,_l="+="+Ia,Ya="-="+2*Ia,pa="+="+2*Ia,rl=!1,Nl=!1,nd=function(We){var Ft=Dr?{scrollLeft:We}:{scrollTop:We};eo.finish().animate(Ft,"fast","linear",function(){rl&&nd(We)}),_s._toggleScrollButtons(eo,To,Qo,Dr)},Ct=function(We){!rl&&!Nl&&(nd(We.data.direction),rl=!0)},rn=function(We){var Ft=Dr?{scrollLeft:We.data.direction}:{scrollTop:We.data.direction};Nl=function Ka(eo){return Dt&&/touch/i.test(eo.originalEvent.type||"")}(We)||Da(We),eo.stop().animate(Ft,"fast","linear",function(){Nl?(_s._toggleScrollButtons(eo,To,Qo,Dr),rl=!0):Xe(We.currentTarget).trigger(qt)}),rl=!1,We.stopPropagation(),We.preventDefault()};To.on(qt+ft,{direction:"-="+Ia},Ct).on(ze.eventMap.down+ft,{direction:Ya},rn),Qo.on(qt+ft,{direction:_l},Ct).on(ze.eventMap.down+ft,{direction:pa},rn),To.add(Qo).on(bn+ft,function(){eo.stop(),rl=!1,_s._toggleScrollButtons(eo,To,Qo,Dr)}),eo.on(ii,function(We){if(!We.ctrlKey&&!We.shiftKey&&!We.altKey){var Ft=function Ys(eo){var To=0;return eo.wheelDelta&&(To=(To=-eo.wheelDelta/120)>0?Math.ceil(To):Math.floor(To)),eo.detail&&(To=Math.round(eo.detail/3)),To}(We.originalEvent),Qt=(Ft>0?"+=":"-=")+Math.abs(Ft)*ar,gi=Dr?{scrollLeft:Qt}:{scrollTop:Qt};_s._closeChildPopups(eo),eo.finish().animate(gi,"fast","linear",function(){_s._toggleScrollButtons(eo,To,Qo,Dr)}),We.preventDefault()}})},isNumeric:function(eo){return!isNaN(parseFloat(eo))&&isFinite(eo)},_toggleScrollButtons:function(eo,To,Qo,Dr){var _s=Dr?ze.scrollLeft(eo):eo.scrollTop(),ia=Dr?"scrollWidth":"scrollHeight",Ia=Dr?"offsetWidth":"offsetHeight";To.toggle(0!==_s),Qo.toggle(_s<eo[0][ia]-eo[0][Ia]-1)},setOptions:function(eo){var To=this.options.animation;this._animations(eo),eo.animation=kn(!0,To,eo.animation),"dataSource"in eo&&this._dataSource(eo),this._updateClasses(),this._reinitOverflow(eo),cn.fn.setOptions.call(this,eo)},destroy:function(){cn.fn.destroy.call(this),this._detachMenuEventsHandlers(),this._destroyOverflow(),ze.destroy(this.element)},enable:function(eo,To){return this._toggleDisabled(eo,!1!==To),this},disable:function(eo){return this._toggleDisabled(eo,!1),this},attemptGetItem:function(eo){var To=this.element.find(eo=eo||this.element),Qo=this._overflowWrapper();return To.length||eo===this.element?To:Qo?Qo.find(eo):Xe()},append:function(eo,To){To=this.attemptGetItem(To);var Qo=this._insert(eo,To,To.length?this._childPopupElement(To):null);return ui(Qo.items,function(Dr){Qo.group.append(this),na(this),Ps(this,eo[Dr]||eo)}),na(To),_a(Qo.group.find(".k-first, .k-last").add(Qo.items)),Ws(cs(Qo.group)),this},insertBefore:function(eo,To){To=this.attemptGetItem(To);var Qo=this._insert(eo,To,To.parent());return ui(Qo.items,function(Dr){To.before(this),na(this),_a(this),Ps(this,eo[Dr]||eo)}),_a(To),this},insertAfter:function(eo,To){To=this.attemptGetItem(To);var Qo=this._insert(eo,To,To.parent());return ui(Qo.items,function(Dr){To.after(this),na(this),_a(this),Ps(this,eo[Dr]||eo)}),_a(To),this},_insert:function(eo,To,Qo){var _s,ia,Dr=this;(!To||!To.length)&&(Qo=Dr.element);var Ia=Xe.isPlainObject(eo)||eo instanceof ze.data.ObservableObject,ar={firstLevel:Qo.hasClass($e),horizontal:Qo.hasClass($e+"-horizontal"),expanded:!0,length:Qo.children().length};return To&&!Qo.length&&(Qo=Xe(Dr.renderGroup({group:ar,options:Dr.options})).appendTo(To)),Ia||Hn(eo)||eo instanceof ze.data.ObservableArray?_s=Xe(Xe.map(Ia?[eo]:eo,function(wa,_l){return"string"==typeof wa?Xe(wa).get():Xe(Dr.renderItem({group:ar,item:kn(wa,{index:_l})})).get()})):(ia=(_s="string"==typeof eo&&"<"!=eo.charAt(0)?Dr.element.find(eo):Xe(eo)).find("> ul").addClass("k-menu-group k-menu-group-md").attr(Fr,"menu"),(_s=_s.filter("li")).add(ia.find("> li")).each(function(){ts(this)})),{items:_s,group:Qo}},remove:function(eo){var Qo=(eo=this.attemptGetItem(eo)).parentsUntil(this.element,on),Dr=eo.parent("ul:not(.k-menu)");if(eo.remove(),Dr&&!Dr.children(on).length){var _s=cs(Dr),ia=Dr.parent(lt);ia.length?ia.remove():Dr.remove(),Ws(_s)}return Qo.length&&(na(Qo=Qo.eq(0)),_a(Qo)),this},_openAfterLoad:function(eo,To){var Qo=this;To.loaded()?(Qo.open(eo),Qo._loading=!1):To.one(xi,function(){eo.find(Ge).removeClass("k-i-loading"),Qo._loading&&(Qo.open(eo),Qo._loading=!1)})},open:function(eo){var To=this,Qo=To.options,Dr="horizontal"==Qo.orientation,_s=Qo.direction,ia=ze.support.isRtl(To.wrapper),Ia=To._overflowWrapper();eo=(Ia||To.element).find(eo);var ar=To.dataSource&&To.dataSource.getByUid(eo.data(ze.ns+"uid"));if(ar&&ar.hasChildren&&!ar.loaded()&&!To._loading)return To._loading=!0,eo.find(Ge).addClass("k-i-loading"),ar.load(),void To._openAfterLoad(eo,ar);/^(top|bottom|default)$/.test(_s)&&(_s=ia?Dr?(_s+" left").replace("default","bottom"):"left":Dr?(_s+" right").replace("default","bottom"):"right");var wa=">.k-popup:visible,>.k-animation-container>.k-popup:visible",_l=function(){Xe(this).data(Pn)&&To.close(Xe(this).closest("li.k-item"),!0)};return eo.siblings().find(wa).each(_l),Ia&&eo.find(wa).each(_l),To.options.openOnClick&&(To.clicked=!0),eo.each(function(){var Ya=Xe(this);clearTimeout(Ya.data(Rt)),Ya.data(Rt,setTimeout(function(){var rl,Nl,pa=Ya.find("> .k-menu-group, > .k-animation-container > .k-menu-group").filter(":hidden").first();if(!pa[0]&&Ia&&(pa=(Nl=To._getPopup(Ya))&&Nl.element),!pa.is(":visible")&&pa[0]&&!1===To._triggerEvent({item:Ya[0],type:an})){if(!pa.find(".k-menu-group")[0]&&pa.children(".k-item").length>1){var nd=Xe(window).height();pa.css({maxHeight:nd-(ze._outerHeight(pa)-pa.height())-ze.getShadows(pa).bottom,overflow:"auto"})}else pa.css({maxHeight:"",overflow:""});Ya.data(Nn,Ya.css(Nn));var rn=To.nextItemZIndex++;Ya.css(Nn,rn),To.options.scrollable&&Ya.parent().siblings(wo).css({zIndex:++rn}),rl=pa.data(Pn);var We=Ya.parent().hasClass($e),Ft=We&&Dr,ct=function Ca(eo,To,Qo){eo=eo.split(" ")[!To+0]||eo;var Dr={origin:["bottom",Qo?"right":"left"],position:["top",Qo?"right":"left"]};return/left|right/.test(eo)?(Dr.origin=["top",eo],Dr.position[1]=ze.directions[eo].reverse):(Dr.origin[0]=eo,Dr.position[0]=ze.directions[eo].reverse),Dr.origin=Dr.origin.join(" "),Dr.position=Dr.position.join(" "),Dr}(_s,We,ia),Qt=Qo.animation.open.effects,gi=Qt!==Ke?Qt:"slideIn:"+function Ms(eo,To){return(eo=eo.split(" ")[!To+0]||eo).replace("top","up").replace("bottom","down")}(_s,We);rl?((rl=pa.data(Pn)).options.origin=ct.origin,rl.options.position=ct.position,rl.options.animation.open.effects=gi):(rl=pa.kendoPopup({activate:function(){To._triggerEvent({item:this.wrapper.parent(),type:Ae})},deactivate:function(Do){To._closing=!1,Do.sender.element.removeData("targetTransform").css({opacity:""}),To._triggerEvent({item:this.wrapper.parent(),type:He})},origin:ct.origin,position:ct.position,collision:Qo.popupCollision!==Ke?Qo.popupCollision:Ft?"fit":"fit flip",anchor:Ya,appendTo:Ia||Ya,animation:{open:kn(!0,{effects:gi},Qo.animation.open),close:Qo.animation.close},open:To._popupOpen.bind(To),close:function(Do){To._closing=Do.sender.element;var Po=Do.sender.wrapper.parent();if(Ia){var Or=Do.sender.element.data(ci);Or&&(Po=(Ia||To.element).find(pi(Or))),Do.sender.wrapper.children(wo).hide()}To._triggerEvent({item:Po[0],type:At})?Do.preventDefault():(Po.css(Nn,Po.data(Nn)),Po.removeData(Nn),To.options.scrollable&&Po.parent().siblings(wo).css({zIndex:""}),(Dt||Ci||ze.support.mouseAndTouchPresent)&&(Po.removeClass(qn),To._removeHoverItem()))}}).data(Pn),pa.closest(lt).removeAttr(Fr)),pa.removeAttr("aria-hidden"),Ya.attr(cr,!0),To._configurePopupOverflow(rl,Ya),rl._hovered=!0,rl.open(),To._initPopupScrolling(rl)}},To.options.hoverDelay))}),To},_configurePopupOverflow:function(eo,To){if(this.options.scrollable&&(this._wrapPopupElement(eo),!To.attr("data-groupparent"))){var Dr=(new Date).getTime();To.attr("data-groupparent",Dr),eo.element.attr("data-group",Dr)}},_wrapPopupElement:function(eo){eo.element.parent().is(lt)||(eo.wrapper=ze.wrap(eo.element,eo.options.autosize).css({overflow:"hidden",display:"block",position:"absolute"}))},_initPopupScrolling:function(eo,To,Qo){this.options.scrollable&&eo.element[0].scrollHeight>eo.element[0].offsetHeight&&this._initPopupScrollButtons(eo,To,Qo)},_initPopupScrollButtons:function(eo,To,Qo){var Dr=this,_s=eo.wrapper.children(wo),ia=Dr.options.animation;setTimeout(function(){if(!_s.length){var ar=Xe(Dr.templates.scrollButton({direction:To?"left":"up"})),wa=Xe(Dr.templates.scrollButton({direction:To?"right":"down"}));_s=ar.add(wa).appendTo(eo.wrapper),Dr._initScrolling(eo.element,ar,wa,To),Qo||_s.on(qt+ft,function(){var _l=Dr._overflowWrapper();Xe(Ro(eo.element,_l)).each(function(Ya,pa){var rl=_l.find(pi(pa.data(ci)));Dr.close(rl)})}).on(bn+ft,function(){setTimeout(function(){Xe.isEmptyObject(Dr._openedPopups)&&Dr._closeParentPopups(eo.element)},30)})}Dr._toggleScrollButtons(eo.element,_s.first(),_s.last(),To)},(ia&&ia.open&&ia.open.duration||0)+30)},_popupOpen:function(eo){this._keyTriggered||eo.sender.element.children("."+Ni).removeClass(Ni),this.options.scrollable&&this._setPopupHeight(eo.sender)},_setPopupHeight:function(eo,To){var Qo=eo.element,Dr=Qo.add(Qo.parent(lt));Dr.height(Qo.hasClass($e)&&this._initialHeight||"");var _s=eo._location(To),ia=Xe(window).height(),Ia=_s.height,ar=To?0:Math.max(_s.top,0),wa=To?0:la(this._overflowWrapper()[0],"scrollTop"),_l=window.innerHeight-ia,Ya=ia-ze.getShadows(Qo).bottom+_l;if(!(Ya+wa>Ia+ar)){var rl=Math.min(Ya,Ya-ar+wa);Dr.css({overflow:"hidden",height:rl+"px"})}},close:function(eo,To){var Qo=this,Dr=Qo._overflowWrapper(),_s=Dr||Qo.element;return(eo=_s.find(eo)).length||(eo=_s.find(">.k-item")),eo.each(function(){var ar=Xe(this);ar.attr(cr,!1),!To&&Qo._isRootItem(ar)&&(Qo.clicked=!1),clearTimeout(ar.data(Rt)),ar.data(Rt,setTimeout(function(){var wa=Qo._getPopup(ar);if(wa&&(function(ar){var wa=ar.data(Oi);return!Dr||!wa||!Qo._openedPopups[wa.toString()]}(ar)||Qo._forceClose)){if(!Qo._forceClose&&function(ar){var wa=!1;return Xe.isEmptyObject(Qo._openedPopups)||Xe(Ro(ar,Dr)).each(function(_l,Ya){return!(wa=!!Qo._openedPopups[Ya.data(ci).toString()])}),wa}(wa.element))return;wa.close(),wa.element.attr("aria-hidden",!0),Dr&&Qo._forceClose&&eo.last().is(ar[0])&&delete Qo._forceClose}},Qo.options.hoverDelay))}),Qo},_getPopup:function(eo){var Qo=eo.find(".k-menu-group:not(.k-list-container):not(.k-calendar-container):visible").first().data(Pn),Dr=this._overflowWrapper();if(!Qo&&Dr){var _s=eo.data(Oi);_s&&(Qo=Dr.find(to(_s)).data(Pn))}return Qo},_toggleDisabled:function(eo,To){this.element.find(eo).each(function(){Xe(this).toggleClass(Ue,!To).attr("aria-disabled",!To)})},_toggleHover:function(eo){var To=Xe(ze.eventTarget(eo)||eo.target).closest(on),Qo=eo.type==qt||-1!==Co.indexOf(eo.type);To.siblings().removeClass(qn),To.parents("li."+Ue).length||To.toggleClass(qn,Qo||"mousedown"==eo.type||"pointerover"==eo.type||eo.type==Vt),this._removeHoverItem()},_preventClose:function(){this.options.closeOnClick||(this._closurePrevented=!0)},_checkActiveElement:function(eo){var To=this,Qo=Xe(eo?eo.currentTarget:this._hoverItem()),Dr=To._findRootParent(Qo)[0];this._closurePrevented||setTimeout(function(){(!document.hasFocus()||!ks(Dr,ze._activeElement())&&eo&&!ks(Dr,eo.currentTarget))&&To.close(Dr)},0),this._closurePrevented=!1},_removeHoverItem:function(){var eo=this._hoverItem();eo&&eo.hasClass(Ni)&&(eo.removeClass(Ni),this._oldHoverItem=null)},_updateClasses:function(){var Qo,eo=this.element;eo.removeClass("k-menu-horizontal k-menu-vertical"),eo.addClass("k-widget k-reset k-menu-init "+$e).addClass($e+"-"+this.options.orientation),eo.attr("aria-orientation","vertical"===this.options.orientation?"vertical":"horizontal"),eo.find("li > ul").filter(function(){return!ze.support.matchesSelector.call(this,".k-menu-init div ul")}).addClass("k-group k-menu-group k-menu-group-md").attr(Fr,"menu").hide().attr("aria-hidden",eo.is(":visible")).parent("li").attr("aria-haspopup","true").end().find("li > div").addClass("k-content").attr("tabindex","-1"),eo.find("li[aria-haspopup]").attr(cr,!1),Qo=eo.find("> li,.k-menu-group > li"),eo.removeClass("k-menu-init"),Qo.each(function(){ts(this)})},_mouseenter:function(eo){var To=this,Qo=Xe(eo.currentTarget),Dr=To._itemHasChildren(Qo),_s=Qo.data(Oi)||Qo.parent().data(ci),ia=Da(eo),Ia=!1;_s&&(To._openedPopups[_s.toString()]=!0),To._closing&&(Ia=!!To._closing.find(Qo).length),!(Ia||eo.delegateTarget!=Qo.parents(Me)[0]&&eo.delegateTarget!=Qo.parents(".k-menu-scroll-wrapper,.k-popups-wrapper")[0])&&(To._keyTriggered=!1,!(To.options.openOnClick.rootMenuItems&&To._isRootItem(Qo.closest(on))||To.options.openOnClick.subMenuItems&&!To._isRootItem(Qo.closest(on)))&&((!1===To.options.openOnClick||!1===To.options.openOnClick.rootMenuItems&&To._isRootItem(Qo.closest(on))||!1===To.options.openOnClick.subMenuItems&&!To._isRootItem(Qo.closest(on))||To.clicked)&&!Dt&&!(ia&&To._isRootItem(Qo.closest(on)))&&!ks(eo.currentTarget,eo.relatedTarget)&&Dr&&To.open(Qo),(!0===To.options.openOnClick&&To.clicked||Dt)&&Qo.siblings().each(function(ar,wa){To.close(wa,!0)})))},_mousedown:function(eo){var To=this,Qo=Xe(eo.currentTarget);(To.options.openOnClick.subMenuItems&&!To._isRootItem(Qo)||Dt)&&Qo.siblings().each(function(Dr,_s){To.close(_s,!0)})},_mouseleave:function(eo){var To=this,Qo=Xe(eo.currentTarget),Dr=Qo.data(Oi),_s=Qo.children(lt).length||Qo.children(pe).length||Dr,ia=Xe(window);if(Dr&&delete To._openedPopups[Dr.toString()],!Qo.parentsUntil(lt,".k-list-container,.k-calendar-container")[0])return!1!==To.options.openOnClick&&(To.options.openOnClick.rootMenuItems||!To._isRootItem(Qo))&&(To.options.openOnClick.subMenuItems||To._isRootItem(Qo))||Dt||Da(eo)||ks(eo.currentTarget,eo.relatedTarget||eo.target)||!_s||ks(eo.currentTarget,ze._activeElement())?void((ze.support.browser.msie&&!eo.toElement&&!eo.relatedTarget&&!Da(eo)||eo.clientX<0||eo.clientY<0||eo.clientY>ia.height()||eo.clientX>ia.width())&&To.close(Qo)):(To.close(Qo,!0),void(To._loading=!1));eo.stopImmediatePropagation()},_mouseenterPopup:function(eo){var Qo=Xe(eo.currentTarget);if(!Qo.parent().is(lt)){var Dr=(Qo=Qo.children("ul")).data(ci);Dr&&(this._openedPopups[Dr.toString()]=!0)}},_mouseleavePopup:function(eo){var Qo=Xe(eo.currentTarget);!Da(eo)&&Qo.is(lt)&&this._closePopups(Qo.children("ul"))},_closePopups:function(eo){var To=this,Qo=To._overflowWrapper(),Dr=eo.data(ci);if(Dr){delete To._openedPopups[Dr.toString()];var _s=Qo.find(pi(Dr));setTimeout(function(){if(To.options.openOnClick)To._closeChildPopups(eo);else if(Xe.isEmptyObject(To._openedPopups)){var ia=To._innerPopup(eo);To._closeParentPopups(ia)}else To.close(_s,!0)},0)}},_closeChildPopups:function(eo){var To=this,Qo=To._overflowWrapper();Xe(Ro(eo,Qo)).each(function(){var Dr=Qo.find(pi(this.data(ci)));To.close(Dr,!0)})},_innerPopup:function(eo){var Qo=Ro(eo,this._overflowWrapper());return Qo[Qo.length-1]||eo},_closeParentPopups:function(eo){var Qo=this._overflowWrapper(),Dr=eo.data(ci),_s=Qo.find(pi(Dr));for(Dr=_s.parent().data(ci),this.close(_s,!0);Dr&&!this._openedPopups[Dr]&&!_s.parent().is(Me);)_s=Qo.find(pi(Dr)),this.close(_s,!0),Dr=_s.parent().data(ci)},_click:function(eo){var Qo,rl,Nl,Qt,To=this,Dr=To.options,_s=Xe(ze.eventTarget(eo)),ia=_s[0],Ia=_s[0]?_s[0].nodeName.toUpperCase():"",ar="INPUT"==Ia||"SELECT"==Ia||"BUTTON"==Ia||"LABEL"==Ia,wa=_s.closest(Ve),_l=_s.closest(on),Ya=_l[0],pa=wa.attr("href"),nd=_s.attr("href"),Ct=Xe("<a href='#' />").attr("href"),rn=!!pa&&pa!==Ct,We=rn&&!!pa.match(/^#/),Ft=!!nd&&nd!==Ct,ct=To._overflowWrapper();if(!ia||ia.parentNode&&Ya){for(Xe(_s).hasClass("k-menu-expand-arrow-icon")&&(this._lastClickedElement=Ya);ia&&ia.parentNode!=Ya;)ia=ia.parentNode;if(!Xe(ia).is("div:not(.k-animation-container,.k-list-container)")){if(_l.hasClass(Ue))return void eo.preventDefault();if(!eo.handled&&To._triggerSelect(_s,Ya)&&!ar&&eo.preventDefault(),eo.handled=!0,rl=_l.children(yt),ct){var gi=_l.data(Oi);gi&&(rl=ct.find(to(gi)))}if(Nl=rl.is(":visible"),Qt=Dr.openOnClick&&Nl&&To._isRootItem(_l),Dr.closeOnClick&&(!rn||We)&&(!rl.length||Qt)){_l.removeClass(qn).css("height"),To._oldHoverItem=To._findRootParent(_l);var Do=To._parentsUntil(wa,To.element,on);return To._forceClose=!!ct,To.close(Do),To.clicked=!1,void(-1!="MSPointerUp".indexOf(eo.type)&&eo.preventDefault())}rn&&eo.enterKey&&wa[0].click(),(To._isRootItem(_l)&&!1!==Dr.openOnClick||Dr.openOnClick.subMenuItems||ze.support.touch||Da(eo)&&To._isRootItem(_l.closest(on)))&&(!rn&&!ar&&!Ft&&eo.preventDefault(),To.clicked=!0,Qo=rl.is(":visible")?At:an,(Dr.closeOnClick||Qo!=At)&&To[Qo](_l))}}},_parentsUntil:function(eo,To,Qo){var Dr=this._overflowWrapper();if(Dr){var _s=function Os(eo,To){var Qo=[],Dr=function(ar){for(;ar.parentNode&&!To.is(ar.parentNode);)Qo.push(ar.parentNode),ar=ar.parentNode},_s=eo[0]||eo;Dr(_s);for(var ia=Qo[Qo.length-1];Xe(ia).is(lt)&&(_s=Sr(Xe(ia).children("ul"),To)[0]);)Qo.push(_s),Dr(_s),ia=Qo[Qo.length-1];return Qo}(eo,Dr),ia=[];return Xe(_s).each(function(){var Ia=Xe(this);if(Ia.is(To))return!1;Ia.is(Qo)&&ia.push(this)}),Xe(ia)}return eo.parentsUntil(To,Qo)},_triggerSelect:function(eo,To){var Dr,Qo=(eo=eo.is(".k-link")?eo:eo.closest(".k-link")).data("selectHandler");Qo&&(Dr=this._getEventData(eo),Qo.call(this,Dr));var _s=Dr&&Dr.isDefaultPrevented(),ia=this._triggerEvent({item:To,type:Xn});return _s||ia},_getEventData:function(eo){return{sender:this,target:eo,_defaultPrevented:!1,preventDefault:function(){this._defaultPrevented=!0},isDefaultPrevented:function(){return this._defaultPrevented}}},_documentClick:function(eo){var To=this,Qo=Xe(eo.target).hasClass("k-menu-expand-arrow-icon")?To._lastClickedElement:eo.target;ks((To._overflowWrapper()||To.element)[0],Qo)?To._lastClickedElement=Ke:To.clicked=!1},_focus:function(eo){var To=this,Qo=eo.target,Dr=To._hoverItem(),_s=it();if(Qo!=To.wrapper[0]&&!Xe(Qo).is(":kendoFocusable"))return eo.stopPropagation(),Xe(Qo).closest(".k-content").closest(".k-menu-group").closest(".k-item").addClass(Ni),void To.wrapper.trigger("focus");_s===eo.currentTarget&&(Dr.length?To._moveHover([],Dr):To._oldHoverItem||To._moveHover([],To.wrapper.children().first()))},_keydown:function(eo){var _s,ia,Ia,To=this,Qo=eo.keyCode,Dr=To._oldHoverItem,ar=ze.support.isRtl(To.wrapper);if(eo.target==eo.currentTarget||Qo==en.ESC){if(Dr||(Dr=To._oldHoverItem=To._hoverItem()),ia=To._itemBelongsToVertival(Dr),Ia=To._itemHasChildren(Dr),To._keyTriggered=!0,Qo==en.RIGHT)_s=To[ar?"_itemLeft":"_itemRight"](Dr,ia,Ia);else if(Qo==en.LEFT)_s=To[ar?"_itemRight":"_itemLeft"](Dr,ia,Ia);else if(Qo==en.DOWN)_s=To._itemDown(Dr,ia,Ia);else if(Qo==en.UP)_s=To._itemUp(Dr,ia,Ia);else if(Qo==en.HOME)To._moveHover(Dr,Dr.parent().children().first()),eo.preventDefault();else if(Qo==en.END)To._moveHover(Dr,Dr.parent().children().last()),eo.preventDefault();else if(Qo==en.ESC)_s=To._itemEsc(Dr,ia);else if(Qo==en.ENTER||Qo==en.SPACEBAR)(_s=Dr.children(".k-link")).length>0&&(To._click({target:_s[0],preventDefault:function(){},enterKey:!0}),Ia&&!Dr.hasClass(Ue)?(To.open(Dr),To._moveHover(Dr,To._childPopupElement(Dr).children().first())):Dr.is("li")&&"menuitemcheckbox"===Dr.attr("role")?Dr.find(".k-checkbox").attr("checked",!0):To._moveHoverToRoot(Dr,To._findRootParent(Dr)));else if(Qo==en.TAB)return _s=To._findRootParent(Dr),To._moveHover(Dr,_s),void To._checkActiveElement();_s&&_s[0]&&(eo.preventDefault(),eo.stopPropagation())}},_hoverItem:function(){return this.wrapper.find(".k-item.k-hover,.k-item.k-focus").filter(":visible")},_itemBelongsToVertival:function(eo){var To=this.wrapper.hasClass("k-menu-vertical");return eo.length&&eo.parent().hasClass("k-menu-group")||To},_itemHasChildren:function(eo){return!!(eo&&eo.length&&eo[0].nodeType)&&(eo.children(".k-menu-group, div.k-animation-container").length>0||!!eo.data(Oi)&&!!this._overflowWrapper().children(to(eo.data(Oi))))},_moveHover:function(eo,To){var Qo=this,Dr=Qo._ariaId;eo.length&&To.length&&eo.removeClass(Ni),To.length&&(To[0].id&&(Dr=To[0].id),To.addClass(Ni),Qo._oldHoverItem=To,Dr&&(Qo.element.removeAttr("aria-activedescendant"),Xe("#"+Dr).removeAttr("id"),To.attr("id",Dr),Qo.element.attr("aria-activedescendant",Dr)),Qo._scrollToItem(To))},_moveHoverToRoot:function(eo,To){this._moveHover(eo,To)},_findRootParent:function(eo){return this._isRootItem(eo)?eo:this._parentsUntil(eo,Me,"li.k-item").last()},_isRootItem:function(eo){return eo.parent().hasClass($e)},_itemRight:function(eo,To,Qo){var _s,ia,Ia,Dr=this;if(To){if(Qo&&!eo.hasClass(Ue))Dr.open(eo),_s=Dr._childPopupElement(eo).children().first();else if("horizontal"==Dr.options.orientation){if(ia=Dr._findRootParent(eo),Ia=Dr._overflowWrapper()){var ar=rs(ia,Ia);Dr._closeChildPopups(ar)}Dr.close(ia),_s=ia.nextAll(Kn+$i).eq(0)}}else(_s=eo.nextAll(Kn+$i).eq(0)).length||(_s=eo.prevAll(Kn+$i).last()),Dr.close(eo);return _s&&!_s.length?_s=Dr.wrapper.children(".k-item").first():_s||(_s=[]),Dr._moveHover(eo,_s),_s},_itemLeft:function(eo,To){var Dr,_s,Qo=this;return To?(Dr=eo.parent().closest(".k-item"),_s=Qo._overflowWrapper(),!Dr.length&&_s&&(Dr=Sr(eo.parent(),_s)),Qo.close(Dr),Qo._isRootItem(Dr)&&"horizontal"==Qo.options.orientation&&(Dr=Dr.prevAll(Kn+$i).eq(0))):((Dr=eo.prevAll(Kn+$i).eq(0)).length||(Dr=eo.nextAll(Kn+$i).last()),Qo.close(eo)),Dr.length||(Dr=Qo.wrapper.children(".k-item").last()),Qo._moveHover(eo,Dr),Dr},_itemDown:function(eo,To,Qo){var _s;if(To)_s=eo.nextAll(Kn+$i).eq(0);else{if(!Qo||eo.hasClass(Ue))return;this.open(eo),_s=this._childPopupElement(eo).children().first()}return!_s.length&&eo.length?_s=eo.parent().children().first():eo.length||(_s=this.wrapper.children(".k-item").first()),this._moveHover(eo,_s),_s},_itemUp:function(eo,To){var Dr;if(To)return!(Dr=eo.prevAll(Kn+$i).eq(0)).length&&eo.length?Dr=eo.parent().children().last():eo.length||(Dr=this.wrapper.children(".k-item").last()),this._moveHover(eo,Dr),Dr},_scrollToItem:function(eo){var To=this;if(To.options.scrollable&&eo&&eo.length){var rl,Qo=eo.parent(),Dr=!!Qo.hasClass($e)&&"horizontal"==To.options.orientation,_s=Dr?"scrollLeft":"scrollTop",ia=Dr?ze._outerWidth:ze._outerHeight,Ia=Qo[_s](),ar=ia(eo),wa=eo[0][Dr?"offsetLeft":"offsetTop"],_l=ia(Qo),Ya=Qo.siblings(wo),pa=Ya.length?ia(Ya.first()):0;if(Ia+_l<wa+ar+pa?rl=wa+ar-_l+pa:Ia>wa-pa&&(rl=wa-pa),!isNaN(rl)){var Nl={};Nl[_s]=rl,Qo.finish().animate(Nl,"fast","linear",function(){To._toggleScrollButtons(Qo,Ya.first(),Ya.last(),Dr)})}}},_itemEsc:function(eo,To){var Dr,_s;return To?(0===(Dr=eo.parent().closest(".k-item")).length&&(_s=eo.closest(".k-group").data("group"),Dr=this.wrapper.find(".k-item[data-groupparent='"+_s+"']")),this.close(Dr),this._moveHover(eo,Dr),Dr):eo},_childPopupElement:function(eo){var To=eo.find(".k-menu-group"),Qo=this._overflowWrapper();return!To.length&&Qo&&(To=rs(eo,Qo)),To},_triggerEvent:function(eo){return this.trigger(eo.type,{type:eo.type,item:eo.item})},_focusHandler:function(eo){var To=this,Qo=Xe(ze.eventTarget(eo)).closest(on);Qo.hasClass(Ue)||setTimeout(function(){To._moveHover([],Qo),Qo.children(".k-content")[0]&&Qo.parent().closest(".k-item").removeClass(Ni)},200)},_animations:function(eo){eo&&"animation"in eo&&!eo.animation&&(eo.animation={open:{effects:{}},close:{hide:!0,effects:{}}})},_dataSource:function(eo){var To=this,Qo=eo?eo.dataSource:To.options.dataSource;Qo&&(Qo=Hn(Qo)?{data:Qo}:Qo,To._unbindDataSource(),Qo.fields||(Qo.fields=[{field:"uid"},{field:"text"},{field:"url"},{field:"cssClass"},{field:"spriteCssClass"},{field:"imageUrl"},{field:"imageAttr"},{field:"attr"},{field:"contentAttr"},{field:"content"},{field:"encoded"},{field:"items"},{field:"select"}]),To.dataSource=Ui.create(Qo),To._bindDataSource(),To.dataSource.fetch())},_bindDataSource:function(){this._refreshHandler=this.refresh.bind(this),this._errorHandler=this._error.bind(this),this.dataSource.bind(xi,this._refreshHandler),this.dataSource.bind("error",this._errorHandler)},_unbindDataSource:function(){var eo=this.dataSource;eo&&(eo.unbind(xi,this._refreshHandler),eo.unbind("error",this._errorHandler))},_error:function(){},findByUid:function(eo){return(this._overflowWrapper()||this.element).find("["+ze.attr("uid")+"="+eo+"]")},refresh:function(eo){var To=this,Qo=eo.node,Dr=eo.action,_s=Qo?To.findByUid(Qo.uid):To.element,ia=eo.items,Ia=eo.index,ar=To._updateItem.bind(To),wa=To._removeItem.bind(To);"add"==Dr?To._appendItems(ia,Ia,_s):"remove"==Dr?ia.forEach(wa):"itemchange"==Dr?ia.forEach(ar):"itemloaded"===Dr?To.append(eo.items,_s):this._initData(),this.trigger(fo,{item:_s,dataItem:Qo})},_appendItems:function(eo,To,Qo){var _s=Qo.find(Kn).eq(To);_s.length?this.insertBefore(eo,_s):this.append(eo,Qo)},_removeItem:function(eo){var Qo=this.findByUid(eo.uid);this.remove(Qo)},_updateItem:function(eo){var To=this,Qo=To.findByUid(eo.uid),Dr=Qo.next(),_s=eo.parentNode();To.remove(Qo),Dr.length?To.insertBefore(eo,Dr):To.append(eo,_s&&To.findByUid(_s.uid))},_accessors:function(){var Qo,Dr,_s,To=this.options,ia=this.element;for(Qo in jr)Dr=To[jr[Qo]],_s=ia.attr(ze.attr(Qo+"-field")),!Dr&&_s&&(Dr=_s),Dr||(Dr=Qo),Hn(Dr)||(Dr=[Dr]),To[jr[Qo]]=Dr},_fieldAccessor:function(eo){var To=this.options[jr[eo]]||[],Qo=To.length,Dr="(function(item) {";return 0===Qo?Dr+="return item['"+eo+"'];":(Dr+="var levels = ["+Xe.map(To,function(_s){return"function(d){ return "+ze.expr(_s)+"}"}).join(",")+"];",Dr+="if(item.level){return levels[Math.min(item.level(), "+Qo+"-1)](item);}else",Dr+="{return levels["+Qo+"-1](item)}"),Dr+"})"},_templates:function(){var To=this.options,Qo=this._fieldAccessor.bind(this);To.template&&"string"==typeof To.template?To.template=Ot(To.template):To.template||(To.template=Ot("<span class='k-menu-link-text'># var text = "+Qo("text")+"(data.item); ## if (typeof data.item.encoded != 'undefined' && data.item.encoded === false) {##= text ## } else { ##: text ## } #</span>")),this.templates={content:Ot("#var contentHtml = "+Qo("content")+"(item);#<div #= contentCssAttributes(item.toJSON ? item.toJSON() : item) # tabindex='-1'>#= contentHtml || '' #</div>"),group:Ot("<ul class='#= groupCssClass(group) #'#= groupAttributes(group) # role='menu' aria-hidden='true'>#= renderItems(data) #</ul>"),itemWrapper:Ot("# var url = "+Qo("url")+"(item); ## var imageUrl = "+Qo("imageUrl")+"(item); ## var imgAttributes = "+Qo("imageAttr")+"(item);## var tag = url ? 'a' : 'span' #<#= tag # class='#= textClass(item) #' #if(url){#href='#= url #'#}#># if (imageUrl) { #<img #= imageCssAttributes(imgAttributes) #  alt='' src='#= imageUrl #' /># } ##= sprite(item) ##= data.menu.options.template(data) ##= arrow(data) #</#= tag #>"),item:Ot("#var contentHtml = "+Qo("content")+"(item);#<li class='#= wrapperCssClass(group, item) #' #= itemCssAttributes(item.toJSON ? item.toJSON() : item) # role='menuitem'  #=item.items ? \"aria-haspopup='true'\": \"\"##=item.enabled === false ? \"aria-disabled='true'\" : ''#"+ze.attr("uid")+"='#= item.uid #' # if(item.items && item.items.length > 0) { # # if(item.expanded) { #  aria-expanded='true'# } else { # aria-expanded='false'# } ## } #>#= itemWrapper(data) ##if (item.hasChildren || item.items) { ##= subGroup({ items: item.items, menu: menu, group: { expanded: item.expanded } }) ## } else if (item.content || item.contentUrl || contentHtml) { ##= renderContent(data) ## } #</li>"),scrollButton:Ot("<span class='k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-icon-button k-menu-scroll-button k-scroll-#= direction #' unselectable='on'><span class='k-button-icon k-icon k-i-arrow-60-#= direction #'></span></span>"),arrow:Ot("<span class='k-menu-expand-arrow'><span class='#= arrowClass(item, group) #'></span></span>"),sprite:Ot("# var spriteCssClass = "+Qo("spriteCssClass")+"(data); if(spriteCssClass) {#<span class='k-sprite #= spriteCssClass #'></span>#}#"),empty:Ot("")}},renderItem:function(eo){var To=this,Dr=(eo=kn({menu:To,group:{}},eo)).item;return To.templates.item(kn(eo,{sprite:To.templates.sprite,itemWrapper:To.templates.itemWrapper,renderContent:To.renderContent,arrow:Dr.items||Dr.content||Dr[To.options.dataContentField[0]]?To.templates.arrow:To.templates.empty,subGroup:To.renderGroup},fs))},renderGroup:function(eo){return(this.templates||eo.menu.templates).group(kn({renderItems:function(Dr){for(var _s="",ia=0,Ia=Dr.items,ar=Ia?Ia.length:0,wa=kn({length:ar},Dr.group);ia<ar;ia++)_s+=Dr.menu.renderItem(kn(Dr,{group:wa,item:kn({index:ia},Ia[ia])}));return _s}},eo,fs))},renderContent:function(eo){return eo.menu.templates.content(kn(eo,fs))}}),xl=il.extend({init:function(eo,To){var Qo=this;il.fn.init.call(Qo,eo,To),Qo.element.attr(Fr,"menu"),Qo._marker=ze.guid().substring(0,8),Qo.target=Xe(Qo.options.target),Qo._popup(),Qo._wire()},_initOverflow:function(eo){var To=this;eo.scrollable&&!To._overflowWrapper()&&(To._openedPopups={},To._popupsWrapper=(To.element.parent().is(lt)?To.element.parent():To.element).wrap("<div class='k-popups-wrapper "+eo.orientation+"'></div>").parent(),"horizontal"==To.options.orientation&&nl(To.element),eo.appendTo&&(eo.appendTo=Xe(eo.appendTo),eo.appendTo.append(To._popupsWrapper)),To._initialHeight=To.element[0].style.height,To._initialWidth=To.element[0].style.width)},options:{name:"ContextMenu",filter:null,showOn:"contextmenu",orientation:"vertical",alignToAnchor:!1,copyAnchorStyles:!0,target:"body"},events:[an,At,Ae,He,Xn],setOptions:function(eo){var To=this;il.fn.setOptions.call(To,eo),To.target.off(To.showOn+ft+To._marker,To._showProxy),To.userEvents&&To.userEvents.destroy(),To.target=Xe(To.options.target),eo.orientation&&To.popup.wrapper[0]&&To.popup.element.unwrap(),To._wire(),il.fn.setOptions.call(this,eo)},destroy:function(){var eo=this;eo.target.off(eo.options.showOn+ft+eo._marker),Ai.off(ze.support.mousedown+ft+eo._marker,eo._closeProxy),eo.userEvents&&eo.userEvents.destroy(),il.fn.destroy.call(eo)},open:function(eo,To){var Qo=this;if(eo=Xe(eo)[0],ks(Qo.element[0],Xe(eo)[0])||Qo._itemHasChildren(Xe(eo)))il.fn.open.call(Qo,eo);else if(!1===Qo._triggerEvent({item:Qo.element,type:an})){if(Qo.popup.visible()&&Qo.options.filter&&(Qo.popup.close(!0),Qo.popup.element.kendoStop(!0)),To!==Ke){var Dr=Qo._overflowWrapper();if(Dr){var _s=Dr.offset();eo-=_s.left,To-=_s.top}Qo.popup.wrapper.hide(),Qo._configurePopupScrolling(eo,To),Qo.popup.open(eo,To)}else Qo.popup.options.anchor=eo||Qo.popup.anchor||Qo.target,Qo.popup.element.kendoStop(!0),Qo._configurePopupScrolling(),Qo.popup.open();Ai.off(Qo.popup.downEvent,Qo.popup._mousedownProxy),Ai.on(ze.support.mousedown+ft+Qo._marker,Qo._closeProxy),Qo.element.trigger("focus")}return Qo},_configurePopupScrolling:function(eo,To){var Qo=this,Dr=Qo.popup,_s="horizontal"==Qo.options.orientation;Qo.options.scrollable&&(Qo._wrapPopupElement(Dr),Dr.element.parent().css({position:"",height:""}),Dr.element.css({visibility:"hidden",display:"",position:""}),_s?Qo._setPopupWidth(Dr,isNaN(eo)?Ke:{isFixed:!0,x:eo,y:To}):Qo._setPopupHeight(Dr,isNaN(eo)?Ke:{isFixed:!0,x:eo,y:To}),Dr.element.css({visibility:"",display:"none",position:"absolute"}),Qo._initPopupScrollButtons(Dr,_s,!0),Dr.element.siblings(wo).hide())},_setPopupWidth:function(eo,To){var Qo=eo.element,Dr=Qo.add(Qo.parent(lt));Dr.width(this._initialWidth||"");var _s=eo._location(To),ia=Xe(window).width(),Ia=_s.width,ar=Math.max(_s.left,0),wa=To?0:la(this._overflowWrapper()[0],"scrollLeft"),_l=ze.getShadows(Qo),Ya=ia-_l.left-_l.right;Ya+wa>Ia+ar||Dr.css({overflow:"hidden",width:Ya-ar+wa+"px"})},close:function(){var eo=this;ks(eo.element[0],Xe(arguments[0])[0])||eo._itemHasChildren(arguments[0])?il.fn.close.call(eo,arguments[0]):eo.popup.visible()&&!1===eo._triggerEvent({item:eo.element,type:At})&&(eo._removeHoverItem(),eo.element.find("#"+eo._ariaId).removeAttr("id"),eo.popup.close(),Ai.off(ze.support.mousedown+ft+eo._marker,eo._closeProxy),eo.unbind(Xn,eo._closeTimeoutProxy),eo.popup.options.anchor.focus())},_showHandler:function(eo){var Qo,To=eo,Dr=this,_s=Dr.options,ia=Xe(ze.support.mobileOS?To.target:To.currentTarget);eo.event&&((To=eo.event).pageX=eo.x.location,To.pageY=eo.y.location),!ks(Dr.element[0],eo.relatedTarget||eo.target)&&(Dr._eventOrigin=To,To.preventDefault(),To.stopImmediatePropagation(),Dr.element.find("."+Ni).removeClass(Ni),(_s.filter&&ia.is(_s.filter)||!_s.filter)&&(_s.alignToAnchor?(Dr.popup.options.anchor=To.currentTarget,Dr.open(To.currentTarget)):(Dr.popup.options.anchor=To.currentTarget,Dr._targetChild?(Qo=Dr.target.offset(),Dr.open(To.pageX-Qo.left,To.pageY-Qo.top)):Dr.open(To.pageX,To.pageY))))},_closeHandler:function(eo){var To=this,Qo=Xe(eo.relatedTarget||eo.target),Dr=Qo.closest(To.target.selector)[0]==To.target[0],_s=Qo.closest(Kn),ia=To._itemHasChildren(_s),Ia=To._overflowWrapper(),ar=ks(To.element[0],Qo[0])||Ia&&ks(Ia[0],Qo[0]);To._eventOrigin=eo;var wa=3!==eo.which;To.popup.visible()&&(wa&&Dr||!Dr)&&(To.options.closeOnClick&&!ia&&ar||!ar)&&(ar?(this.unbind(Xn,this._closeTimeoutProxy),To.bind(Xn,To._closeTimeoutProxy)):To.close())},_wire:function(){var eo=this,To=eo.options,Qo=eo.target;eo._preventProxy=null,eo._showProxy=eo._showHandler.bind(eo),eo._closeProxy=eo._closeHandler.bind(eo),eo._closeTimeoutProxy=eo.close.bind(eo),Qo[0]&&(ze.support.mobileOS&&"contextmenu"==To.showOn&&(eo.userEvents=new ze.UserEvents(Qo,{filter:To.filter,allowSelection:!1}),eo._preventProxy=function(){return!1},eo.userEvents.bind("hold",eo._showProxy)),To.filter?Qo.on(To.showOn+ft+eo._marker,To.filter,eo._preventProxy||eo._showProxy):Qo.on(To.showOn+ft+eo._marker,eo._preventProxy||eo._showProxy))},_triggerEvent:function(eo){var Qo=Xe(this.popup.options.anchor)[0],Dr=this._eventOrigin;return this._eventOrigin=Ke,this.trigger(eo.type,kn({type:eo.type,item:eo.item||this.element[0],target:Qo},Dr?{event:Dr}:{}))},_popup:function(){var eo=this,To=eo._overflowWrapper();eo._triggerProxy=eo._triggerEvent.bind(eo),eo.popup=eo.element.addClass("k-context-menu").kendoPopup({autosize:"horizontal"===eo.options.orientation,anchor:eo.target||"body",copyAnchorStyles:eo.options.copyAnchorStyles,collision:eo.options.popupCollision||"fit",animation:eo.options.animation,activate:eo._triggerProxy,deactivate:eo._triggerProxy,appendTo:To||eo.options.appendTo,close:To?function(Qo){Xe(Ro(Qo.sender.element,To)).each(function(Dr,_s){var ia=_s.data(Pn);ia&&ia.close(!0)})}:Xe.noop}).data(Pn),eo._targetChild=ks(eo.target[0],eo.popup.element[0])},_moveHoverToRoot:function(eo,To){this._moveHover(eo,To),this.close()},_focus:function(eo){var To=this._oldHoverItem=this._hoverItem()||[];il.fn._focus.call(this,eo),it()===eo.currentTarget&&this._moveHover(To,this.wrapper.children().first())}});return St.plugin(il),St.plugin(xl),window.kendo}.apply(sl={},ur=[A,d]))&&(Za=sl),void 0===(Jt=function(){var Xe=window.kendo.jQuery,ze=window.kendo,St=ze.html.HTMLBase,Dt=St.extend({init:function(Hn,Ui){St.fn.init.call(this,Hn,Ui),this._wrapper()},options:{name:"HTMLChip",size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base",attr:{},icon:"",iconAttr:{},removable:!1,removableAttr:{},removeIcon:"x-circle",content:"",text:"",stylingOptions:["size","rounded","fillMode","themeColor"]},_wrapper:function(){var Hn=this,Ui=Hn.options;Hn.wrapper=Hn.element.wrap("<span class='k-chip'></span>").parent().attr(Ui.attr),Hn._addClasses(),Ui.icon&&Hn.wrapper.prepend(Xe("<span class='k-chip-icon k-icon k-i-"+Ui.icon+"'></span>").attr(Ui.iconAttr)),Hn.element.addClass("k-chip-content"),Ui.text&&Hn.element.html('<span class="k-chip-label">'+Ui.text+"</span>"),Ui.removable&&Hn.wrapper.append(Xe("<span class='k-chip-action k-chip-remove-action'><span class='k-icon k-i-"+Ui.removeIcon+"'></span></span>").attr(Ui.removableAttr))}});return Xe.extend(ze.html,{renderChip:function(Hn,Ui){return(!Hn||Xe.isPlainObject(Hn))&&(Ui=Hn,Hn=Xe("<span></span>")),new Dt(Hn,Ui).html()},HTMLChip:Dt}),ze.cssProperties.registerPrefix("HTMLChip","k-chip-"),window.kendo}.apply(Tt={},ur=[L]))&&(Jt=Tt),void 0===(ht=function(){var Xe=window.kendo.jQuery,ze=window.kendo,St=ze.html.HTMLBase,Dt=St.extend({init:function(Hn,Ui){St.fn.init.call(this,Hn,Ui),this.wrapper=this.element.addClass("k-chip-list"),this._addClasses()},options:{name:"HTMLChipList",size:"medium",stylingOptions:["size"]}});return Xe.extend(ze.html,{renderChipList:function(Hn,Ui){return(void 0===arguments[0]||Xe.isPlainObject(arguments[0]))&&(Ui=Hn,Hn=Xe("<div></div>")),new Dt(Hn,Ui).html()},HTMLChipList:Dt}),ze.cssProperties.registerPrefix("HTMLChipList","k-chip-list-"),window.kendo}.apply(yn={},ur=[L]))&&(ht=yn),void 0===(vi=function(){var Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,St=ze.ui,it=St.List,Dt=ze.html,Hn=Xe.extend({A:65},ze.keys),Ui=ze._activeElement,Co=ze.data.ObservableArray,Sn="id",Vn=".k-chip",Dn="accept",kn="filter",ui="rebind",Ot="open",en="close",cn="change",ft="select",Nt="deselect",an="aria-disabled",$e="aria-readonly",Je="aria-expanded",Ve="aria-hidden",Ge="aria-activedescendant",Be="aria-busy",At="k-focus",Rt="k-selected",Pt="k-hidden",$t="k-hover",Xn="k-disabled",Nn="k-no-click",Ae="disabled",He="readonly",On=".kendoMultiSelect",Fi="click"+On,Ci="keydown"+On,xi="mouseenter"+On,Wn="mouseleave"+On,Vt=xi+" "+Wn,qt=/"/g,bn=Array.isArray,ii=["font-family","font-size","font-stretch","font-style","font-weight","letter-spacing","text-transform","line-height"],Vi=it.extend({init:function(zt,mn){var ci,Qn=this;Qn.ns=On,it.fn.init.call(Qn,zt,mn),Qn._optionsMap={},Qn._customOptions={},Qn._wrapper(),Qn._tagList(),Qn._input(),Qn._textContainer(),Qn._loader(),Qn._clearButton(),Qn._arrowButton(),Qn._tabindex(Qn.input),zt=Qn.element.attr("multiple","multiple").hide(),(mn=Qn.options).placeholder||(mn.placeholder=zt.data("placeholder")),(ci=zt.attr(Sn))||(ci=ze.guid()),ci&&(Qn._tagID=ci+"_tag_active",Qn.tagList.attr(Sn,ci+="_taglist")),Qn._initialOpen=!0,Qn._aria(),Qn._dataSource(),Qn._ignoreCase(),Qn._popup(),Qn._tagTemplate(),Qn.requireValueMapper(Qn.options),Qn._initList(),Qn._reset(),Qn._enable(),Qn._placeholder(),mn.autoBind?Qn.dataSource.fetch():mn.value&&Qn._preselect(mn.value),Xe(Qn.element).parents("fieldset").is(":disabled")&&Qn.enable(!1),ze.notify(Qn),Qn._toggleCloseVisibility(),Qn._applyCssClasses()},options:{name:"MultiSelect",tagMode:"multiple",enabled:!0,autoBind:!0,autoClose:!0,highlightFirst:!0,dataTextField:"",dataValueField:"",filter:"startswith",ignoreCase:!0,minLength:1,messages:{singleTag:"item(s) selected",clear:"clear",deleteTag:"delete",noData:"No data found.",downArrow:"select"},enforceMinLength:!1,delay:100,value:null,maxSelectedItems:null,placeholder:"",height:200,animation:{},virtual:!1,itemTemplate:"",tagTemplate:"",groupTemplate:"#:data#",fixedGroupTemplate:"#:data#",clearButton:!0,autoWidth:!1,popup:null,size:"medium",fillMode:"solid",rounded:"medium"},events:[Ot,en,cn,ft,Nt,"filtering","dataBinding","dataBound"],setDataSource:function(zt){this.options.dataSource=zt,this._state="",this._dataSource(),this.persistTagList=!1,this.listView.setDataSource(this.dataSource),this.options.autoBind&&this.dataSource.fetch()},setOptions:function(zt){var mn=this._listOptions(zt);it.fn.setOptions.call(this,zt),this.listView.setOptions(mn),this._accessors(),this._aria(),this._tagTemplate(),this._placeholder(),this._clearButton(),this._arrowButton()},currentTag:function(zt){var mn=this;if(zt===Ke)return mn._currentTag;mn._currentTag&&(mn._currentTag.removeClass(At).removeAttr(Sn),mn._currentTag.find(".k-chip-action").attr(Ve,!0),mn.input.removeAttr(Ge)),zt&&(zt.addClass(At).attr(Sn,mn._tagID),zt.find(".k-chip-action").removeAttr(Ve),mn.input.attr(Ge,mn._tagID)),mn._currentTag=zt},dataItems:function(){return this.listView.selectedDataItems()},destroy:function(){var zt=this,mn=zt.ns;clearTimeout(zt._busy),clearTimeout(zt._typingTimeout),zt.wrapper.off(mn),zt.tagList.off(mn),zt.input.off(mn),zt._clear.off(mn),it.fn.destroy.call(zt)},_aria:function(){var zt=this,mn=zt.ul[0].id,Qn="none"===this.options.filter?"none":"list",ci=zt.tagList.attr(Sn);zt.input.attr({role:"combobox","aria-expanded":!1,"aria-controls":mn,"aria-autocomplete":Qn,"aria-describedby":ci}),zt._ariaLabel(zt._focused)},_activateItem:function(){this.popup.visible()&&it.fn._activateItem.call(this),this.currentTag(null)},_listOptions:function(zt){var Qn=it.fn._listOptions.call(this,Xe.extend(zt,{selectedItemChange:this._selectedItemChange.bind(this),selectable:"multiple"})),Oi=Qn.itemTemplate||this.options.itemTemplate||this.options.template||Qn.template;return Oi||(Oi="#:"+ze.expr(Qn.dataTextField,"data")+"#"),Qn.template=Oi,Qn},_setListValue:function(){it.fn._setListValue.call(this,this._initialValues.slice(0))},_listChange:function(zt){var mn=this.dataSource.flatView(),Qn=this._optionsMap,ci=this._value;this._state===ui&&(this._state="");for(var Oi=0;Oi<zt.added.length;Oi++)if(Qn[ci(zt.added[Oi].dataItem)]===Ke){this._render(mn);break}this._selectValue(zt.added,zt.removed)},_selectedItemChange:function(zt){var Qn,ci,mn=zt.items;for(ci=0;ci<mn.length;ci++)Qn=mn[ci],this.tagList.children(Vn).eq(Qn.index).children("span").first().html(this.tagTextTemplate(Qn.item))},_wrapperMousedown:function(zt){var mn=this,Qn="input"!==zt.target.nodeName.toLowerCase(),ci=Xe(zt.target),Oi=ci.closest(".k-multiselect-toggle-button, .k-chip").children(".k-i-arrow-s")[0],Ai=ci.closest(".k-i-x, .k-i-x-circle")[0];Qn&&!(Ai&&ze.support.mobileOS)&&zt.cancelable&&zt.preventDefault(),Ai||(Oi&&mn.popup.visible()?mn.toggle(!1):(mn.input[0]!==Ui()&&Qn&&mn.input.trigger("focus"),1===mn.options.minLength&&!mn.popup.visible()&&mn.open()))},_inputFocus:function(){this._placeholder(!1,!0),this.wrapper.addClass(At)},_inputFocusout:function(){var zt=this;clearTimeout(zt._typingTimeout),zt.wrapper.removeClass(At),zt._placeholder(!zt.listView.selectedDataItems()[0],!0),zt.close(),zt._state===kn&&(zt._state=Dn,zt.listView.skipUpdate(!0)),zt.listView.bound()&&zt.listView.isFiltered()&&(zt.persistTagList=!0,zt._clearFilter()),zt.element.trigger("blur")},_removeTag:function(zt,mn){var Ye,Qn=this,ci=Qn._state,Oi=zt.index(),Ai=Qn.listView,Pn=Ai.value()[Oi],qn=Qn.listView.selectedDataItems()[Oi],Ni=Qn._customOptions[Pn],Ue=Ai.element[0].children;if(Qn.trigger(Nt,{dataItem:qn,item:zt}))Qn._close();else{Ni===Ke&&(ci===Dn||ci===kn)&&(Ni=Qn._optionsMap[Pn]);var pe=function(){Qn.currentTag(null),mn&&Qn._change(),Qn._close()};Ni===Ke&&Ai.select().length?(Qn.persistTagList=!1,Ai.select(Ai.select()[Oi]).done(pe)):((Ye=Qn.element[0].children[Ni])&&(Ye.selected=!1),Ai.removeAt(Oi),Ai._removedAddedIndexes&&Ai._removedAddedIndexes.splice(Oi,1),Ue[Ni]&&Ue[Ni].classList.remove("k-selected"),"single"!==Qn.options.tagMode?zt.remove():Qn._updateTagListHTML(),pe())}},_tagListClick:function(zt){zt.preventDefault(),zt.stopPropagation();var mn=Xe(zt.currentTarget);mn.is(".k-i-x-circle")&&this._removeTag(mn.closest(Vn),!0)},_clearValue:function(){var zt=this;"single"===zt.options.tagMode?zt._clearSingleTagValue():zt.tagList.children(Vn).each(function(mn,Qn){zt._removeTag(Xe(Qn),!1)}),zt.input.val(""),zt._search(),zt._change(),zt.focus(),zt._hideClear(),zt._state===kn&&(zt._state=Dn)},_clearSingleTagValue:function(){for(var zt=this,mn=zt.dataItems(),Qn=zt.tagList.children(Vn),ci=zt.persistTagList,Oi=0;Oi<mn.length;Oi+=1)if(zt.trigger(Nt,{dataItem:mn[Oi],item:Qn.first()}))return void zt._close();ci&&(zt.persistTagList=!1),zt.listView.value([]),zt.persistTagList=ci},_focusHandler:function(){var zt=this.input,mn=Ui();zt[0]===mn||this.input.trigger("focus")},_editable:function(zt){var mn=this,Qn=zt.disable,ci=zt.readonly,Oi=mn.wrapper.off(On),Ai=mn.tagList.off(On),Pn=mn.input.off(On);ci||Qn?(Oi.toggleClass(Xn,Qn).toggleClass(Nn,ci),Pn.attr(Ae,Qn).attr(He,ci).attr(an,Qn).attr($e,ci),mn.element.prop(Ae,Qn)):(Oi.removeClass(Xn).removeClass(Nn).on(Vt,mn._toggleHover).on("mousedown"+On+" touchend"+On,mn._wrapperMousedown.bind(mn)).on(Fi,mn._focusHandler.bind(mn)),mn.input.on(Ci,mn._keydown.bind(mn)).on("paste"+On,mn._search.bind(mn)).on("input"+On,mn._search.bind(mn)).on("focus"+On,mn._inputFocus.bind(mn)).on("focusout"+On,mn._inputFocusout.bind(mn)),mn._clear.on(Fi+" touchend"+On,mn._clearValue.bind(mn)),Pn.prop(Ae,!1).prop(He,!1).attr(an,!1).attr($e,!1),mn.element.prop(Ae,!1),Ai.on(xi,Vn,function(){Xe(this).addClass($t)}).on(Wn,Vn,function(){Xe(this).removeClass($t)}).on(Fi+" touchend"+On,".k-chip .k-icon",mn._tagListClick.bind(mn)))},_close:function(){this.options.autoClose?this.close():this.popup.position()},_filterSource:function(zt,mn){mn||(mn=this._retrieveData),this._retrieveData=!1,it.fn._filterSource.call(this,zt,mn)},close:function(){this._activeItem=null,this.input.removeAttr(Ge),this.popup.close()},open:function(){var ci,zt=this,mn=zt.input.val().toLowerCase(),Qn=zt.listView.dataSource.filter();Qn&&Qn.filters.length>0&&(ci=(Qn.filters[0].value||"").toString().toLowerCase()),zt._request&&(zt._retrieveData=!1),zt._retrieveData||!zt.listView.bound()||zt._state===Dn&&mn!==ci?(zt._open=!0,zt._state=ui,zt.listView.skipUpdate(!0),zt.persistTagList=!(zt._initialOpen&&!zt.listView.bound()),zt._filterSource(),zt._focusItem()):zt._allowOpening()&&(zt._initialOpen&&!zt.options.autoBind&&!zt.options.virtual&&zt.options.value&&!Xe.isPlainObject(zt.options.value[0])&&zt.value(zt.value()||zt._initialValues),zt.popup._hovered=!0,zt._initialOpen=!1,zt.popup.open(),zt._focusItem())},toggle:function(zt){this[(zt=zt!==Ke?zt:!this.popup.visible())?Ot:en]()},refresh:function(){this.listView.refresh()},_listBound:function(){var zt=this,mn=zt.dataSource.flatView();zt._render(mn),zt._renderFooter(),zt._renderNoData(),zt._toggleNoData(!mn.length),zt._resizePopup(),zt._open&&(zt._open=!1,zt.toggle(zt._allowOpening())),zt.popup.position(),zt._updateItemFocus(),zt._touchScroller&&zt._touchScroller.reset(),zt._hideBusy(),zt.trigger("dataBound")},_updateItemFocus:function(){var zt=this,mn=zt.dataSource.flatView(),Qn=zt.listView.skip();mn.length&&(Qn===Ke||0===Qn)&&(zt.options.highlightFirst?zt.listView.focusFirst():zt.listView.focus(-1))},_inputValue:function(){var mn=this.input.val();return this.options.placeholder===mn&&(mn=""),mn},value:function(zt){var mn=this,Qn=mn.listView,ci=Qn.value().slice(),Oi=mn.options.maxSelectedItems,Ai=Qn.bound()&&Qn.isFiltered();if(zt===Ke)return ci;mn.persistTagList=!1,mn.requireValueMapper(mn.options,zt),zt=mn._normalizeValues(zt),null!==Oi&&zt.length>Oi&&(zt=zt.slice(0,Oi)),Ai&&mn._clearFilter(),Qn.value(zt),mn._old=mn._valueBeforeCascade=zt.slice(),Ai||mn._fetchData(),mn._toggleCloseVisibility()},_preselect:function(zt,mn){var Qn=this;!bn(zt)&&!(zt instanceof ze.data.ObservableArray)&&(zt=[zt]),(Xe.isPlainObject(zt[0])||zt[0]instanceof ze.data.ObservableObject||!Qn.options.dataValueField)&&(Qn.dataSource.data(zt),Qn.value(mn||Qn._initialValues),Qn._retrieveData=!0)},_setOption:function(zt,mn){var Qn=this.element[0].children[this._optionsMap[zt]];Qn&&(Qn.selected=mn)},_fetchData:function(){var zt=this,mn=!!zt.dataSource.view().length;0===zt.listView.value().length||zt._request||(zt._retrieveData||!zt._fetch&&!mn)&&(zt._fetch=!0,zt._retrieveData=!1,zt.dataSource.read().done(function(){zt._fetch=!1}))},_isBound:function(){return this.listView.bound()&&!this._retrieveData},_dataSource:function(){var zt=this,mn=zt.element,Qn=zt.options,ci=Qn.dataSource||{};(ci=bn(ci)?{data:ci}:ci).select=mn,ci.fields=[{field:Qn.dataTextField},{field:Qn.dataValueField}],zt.dataSource&&zt._refreshHandler?zt._unbindDataSource():(zt._progressHandler=zt._showBusy.bind(zt),zt._errorHandler=zt._hideBusy.bind(zt)),zt.dataSource=ze.data.DataSource.create(ci).bind("progress",zt._progressHandler).bind("error",zt._errorHandler)},_reset:function(){var zt=this,mn=zt.element,Qn=mn.attr("form"),ci=Qn?Xe("#"+Qn):mn.closest("form");ci[0]&&(zt._resetHandler=function(){setTimeout(function(){zt.value(zt._initialValues),zt._placeholder()})},zt._form=ci.on("reset",zt._resetHandler))},_initValue:function(){var zt=this.options.value||this.element.val();this._old=this._initialValues=this._normalizeValues(zt)},_normalizeValues:function(zt){var mn=this;return null===zt?zt=[]:zt&&Xe.isPlainObject(zt)?zt=[mn._value(zt)]:zt&&Xe.isPlainObject(zt[0])?zt=Xe.map(zt,function(Qn){return mn._value(Qn)}):bn(zt)||zt instanceof Co?bn(zt)&&(zt=zt.slice()):zt=[zt],zt},_change:function(){var zt=this,mn=zt.value();(function Jn(zt,mn){var Qn;if(null===zt&&null!==mn||null!==zt&&null===mn||(Qn=zt.length)!==mn.length)return!1;for(;Qn--;)if(zt[Qn]!==mn[Qn])return!1;return!0})(mn,zt._old)||(zt._old=mn.slice(),zt.trigger(cn),zt.element.trigger(cn)),zt.popup.position(),zt._toggleCloseVisibility()},_click:function(zt){var mn=this,Qn=zt.item;zt.preventDefault(),mn._select(Qn).done(function(){mn._activeItem=Qn,mn._change(),mn._close()})},_getActiveItem:function(){return this._activeItem||Xe(this.listView.items()[this._getSelectedIndices().length-1])||this.listView.focus()},_getSelectedIndices:function(){return this.listView._selectedIndices||this.listView._selectedIndexes},_keydown:function(zt){var Ue,mn=this,Qn=zt.keyCode,ci=mn._currentTag,Oi=mn.listView,Ai=mn.input.val(),Pn=ze.support.isRtl(mn.wrapper),qn=mn.popup.visible(),Ni=0;if(Qn!==Hn.ENTER&&(this._multipleSelection=!1),Qn===Hn.DOWN){if(zt.preventDefault(),!qn)return mn.open(),void(Oi.focus()||Oi.focusFirst());Oi.focus()?(!mn._activeItem&&zt.shiftKey&&(mn._activeItem=Oi.focus(),Ni=-1),Ue=Oi.getElementIndex(mn._getActiveItem().first()),Oi.focusNext(),Oi.focus()?zt.shiftKey&&!mn.options.virtual&&(this._multipleSelection=!0,mn._selectRange(Ue,Oi.getElementIndex(Oi.focus().first())+Ni)):Oi.focusLast()):Oi.focusFirst()}else if(Qn===Hn.UP)qn&&(!mn._activeItem&&zt.shiftKey&&(mn._activeItem=Oi.focus(),Ni=1),Ue=Oi.getElementIndex(mn._getActiveItem().first()),Oi.focusPrev(),Oi.focus()?zt.shiftKey&&!mn.options.virtual&&(this._multipleSelection=!0,mn._selectRange(Ue,Oi.getElementIndex(Oi.focus().first())+Ni)):mn.close()),zt.preventDefault();else if(Qn===Hn.LEFT&&!Pn||Qn===Hn.RIGHT&&Pn)Ai||(ci=ci?ci.prev(Vn):mn.tagList.children(Vn).last())[0]&&mn.currentTag(ci);else if(Qn===Hn.RIGHT&&!Pn||Qn===Hn.LEFT&&Pn)!Ai&&ci&&(ci=ci.next(Vn),mn.currentTag(ci[0]?ci:null));else if(zt.ctrlKey&&!zt.altKey&&Qn===Hn.A&&qn&&!mn.options.virtual)this._multipleSelection=!0,this._getSelectedIndices().length===Oi.items().length&&(mn._activeItem=null),Oi.items().length&&mn._selectRange(0,Oi.items().length-1);else if(Qn===Hn.ENTER&&qn){if(!Oi.focus())return;if(zt.preventDefault(),this._multipleSelection&&(this._multipleSelection=!1,Oi.focus().hasClass(Rt)))return void mn._close();mn._select(Oi.focus()).done(function(){mn._change(),mn._close()})}else if(Qn===Hn.SPACEBAR&&zt.ctrlKey&&qn)mn._activeItem&&Oi.focus()&&Oi.focus()[0]===mn._activeItem[0]&&(mn._activeItem=null),Xe(Oi.focus()).hasClass(Rt)||(mn._activeItem=Oi.focus()),mn._select(Oi.focus()).done(function(){mn._change()}),zt.preventDefault();else if(Qn===Hn.SPACEBAR&&zt.shiftKey&&qn&&!mn.options.virtual){var Ye=Oi.getElementIndex(mn._getActiveItem()),Me=Oi.getElementIndex(Oi.focus());Ye!==Ke&&Me!==Ke&&mn._selectRange(Ye,Me),zt.preventDefault()}else if(Qn===Hn.ESC)qn?zt.preventDefault():(mn.tagList.children(Vn).each(function(lt,yt){mn._removeTag(Xe(yt),!1)}),mn._change()),mn.close();else if(Qn===Hn.HOME)qn?Oi.focus()?(zt.ctrlKey&&zt.shiftKey&&!mn.options.virtual&&mn._selectRange(Oi.getElementIndex(Oi.focus()[0]),0),Oi.focusFirst()):mn.close():Ai||(ci=mn.tagList.children(Vn).first()[0])&&mn.currentTag(Xe(ci));else if(Qn===Hn.END)qn?Oi.focus()?(zt.ctrlKey&&zt.shiftKey&&!mn.options.virtual&&mn._selectRange(Oi.getElementIndex(Oi.focus()[0]),Oi.element.children().length-1),Oi.focusLast()):mn.close():Ai||(ci=mn.tagList.children(Vn).last()[0])&&mn.currentTag(Xe(ci));else if(Qn!==Hn.DELETE&&Qn!==Hn.BACKSPACE||Ai)!mn.popup.visible()||Qn!==Hn.PAGEDOWN&&Qn!==Hn.PAGEUP?(clearTimeout(mn._typingTimeout),mn._search()):(zt.preventDefault(),Oi.scrollWith((Qn===Hn.PAGEDOWN?1:-1)*Oi.screenHeight()));else{if(mn._state=Dn,"single"===mn.options.tagMode)return mn._clearSingleTagValue(),mn._change(),void mn._close();Qn===Hn.BACKSPACE&&!ci&&(ci=mn.tagList.children(Vn).last()),ci&&ci[0]&&mn._removeTag(ci,!0)}},_hideBusy:function(){var zt=this;clearTimeout(zt._busy),zt.input.attr(Be,!1),zt._loading.addClass(Pt),zt._request=!1,zt._busy=null,zt._toggleCloseVisibility()},_showBusyHandler:function(){this.input.attr(Be,!0),this._loading.removeClass(Pt),this._hideClear()},_showBusy:function(){var zt=this;zt._request=!0,!zt._busy&&(zt._busy=setTimeout(zt._showBusyHandler.bind(zt),100))},_placeholder:function(zt,mn){var Qn=this,ci=Qn.input,Oi=Ui(),Ai=Qn.options.placeholder,Pn=ci.val(),qn=ci[0]===Oi,Ni=Pn.length;(!qn||Qn.options.autoClose||Pn===Ai)&&(Ni=0,Pn=""),zt===Ke&&(zt=!1,ci[0]!==Oi&&(zt=!Qn.listView.selectedDataItems()[0])),Qn._prev=Pn,ci.toggleClass("k-readonly",zt).val(zt?Ai:Pn),qn&&!mn&&ze.caret(ci[0],Ni,Ni)},_option:function(zt,mn,Qn){var ci="<option";return zt!==Ke&&(-1!==(zt+="").indexOf('"')&&(zt=zt.replace(qt,"&quot;")),ci+=' value="'+zt+'"'),Qn&&(ci+=" selected"),ci+=">",mn!==Ke&&(ci+=ze.htmlEncode(mn)),ci+"</option>"},_render:function(zt){var Oi,Pn,qn,Ni,mn=this.listView.selectedDataItems(),Qn=this.listView.value(),ci=zt.length,Ai="";Qn.length!==mn.length&&(mn=this._buildSelectedItems(Qn));var Ue={},Ye={};for(Ni=0;Ni<ci;Ni++)qn=this._value(Pn=zt[Ni]),-1!==(Oi=this._selectedItemIndex(qn,mn))&&mn.splice(Oi,1),Ye[qn]=Ni,Ai+=this._option(qn,this._text(Pn),-1!==Oi);if(mn.length)for(Ni=0;Ni<mn.length;Ni++)Ue[qn=this._value(Pn=mn[Ni])]=ci,Ye[qn]=ci,ci+=1,Ai+=this._option(qn,this._text(Pn),!0);this._customOptions=Ue,this._optionsMap=Ye,this.element.html(Ai)},_buildSelectedItems:function(zt){for(var Oi,mn=this.options.dataValueField,Qn=this.options.dataTextField,ci=[],Ai=0;Ai<zt.length;Ai++)(Oi={})[mn]=zt[Ai],Oi[Qn]=zt[Ai],ci.push(Oi);return ci},_selectedItemIndex:function(zt,mn){for(var Qn=this._value,ci=0;ci<mn.length;ci++)if(zt===Qn(mn[ci]))return ci;return-1},_search:function(){var zt=this;clearTimeout(zt._typingTimeout),zt._typingTimeout=setTimeout(function(){var mn=zt._inputValue();zt._prev!==mn&&(zt._prev=mn,zt.search(mn),zt._toggleCloseVisibility())},zt.options.delay)},_toggleCloseVisibility:function(){this.value().length||this.input.val()&&this.input.val()!==this.options.placeholder?this._showClear():this._hideClear()},_allowOpening:function(){return this._allowSelection()&&it.fn._allowOpening.call(this)},_allowSelection:function(){var zt=this.options.maxSelectedItems;return null===zt||zt>this.listView.value().length},_angularTagItems:function(zt){var mn=this;mn.angular(zt,function(){return{elements:mn.tagList[0].children,data:Xe.map(mn.dataItems(),function(Qn){return{dataItem:Qn}})}})},updatePersistTagList:function(zt,mn){this.persistTagList.added&&this.persistTagList.added.length===mn.length&&this.persistTagList.removed&&this.persistTagList.removed.length===zt.length?this.persistTagList=!1:(this.listView._removedAddedIndexes=this._old.slice(),this.persistTagList={added:zt,removed:mn})},_selectValue:function(zt,mn){var Pn,qn,Ni,Qn=this,ci=Qn.dataSource.total(),Oi=Qn.tagList,Ai=Qn._value;if(this.persistTagList)this.updatePersistTagList(zt,mn);else{if(Qn._angularTagItems("cleanup"),"multiple"===Qn.options.tagMode){for(Ni=mn.length-1;Ni>-1;Ni--)Pn=mn[Ni],Oi.children(Vn).length&&(Oi[0].removeChild(Oi[0].children[Pn.position]),Qn._setOption(Ai(Pn.dataItem),!1));for(Ni=0;Ni<zt.length;Ni++)Qn.input.before(Qn.tagTemplate((qn=zt[Ni]).dataItem)),Qn._setOption(Ai(qn.dataItem),!0)}else{for((!Qn._maxTotal||Qn._maxTotal<ci)&&(Qn._maxTotal=ci),this._updateTagListHTML(),Ni=mn.length-1;Ni>-1;Ni--)Qn._setOption(Ai(mn[Ni].dataItem),!1);for(Ni=0;Ni<zt.length;Ni++)Qn._setOption(Ai(zt[Ni].dataItem),!0)}Qn._angularTagItems("compile"),Qn._placeholder()}},_updateTagListHTML:function(){var zt=this,mn=zt.value(),Qn=zt.dataSource.total();zt.tagList.children(Vn).each(function(Oi,Ai){Xe(Ai).remove()}),mn.length&&zt.input.before(zt.tagTemplate({values:mn,dataItems:zt.dataItems(),maxTotal:zt._maxTotal,currentTotal:Qn}))},_select:function(zt){var mn=Xe.Deferred().resolve();if(!zt)return mn;var Qn=this,ci=Qn.listView,Oi=ci.dataItemByIndex(ci.getElementIndex(zt)),Ai=zt.hasClass("k-selected");return Qn._state===ui&&(Qn._state=""),Qn._allowSelection()||Ai?Qn.trigger(Ai?Nt:ft,{dataItem:Oi,item:zt})?(Qn._close(),mn):(Qn.persistTagList=!1,ci.select(zt).done(function(){Qn._placeholder(),Qn._state===kn&&(Qn._state=Dn,ci.skipUpdate(!0))})):mn},_selectRange:function(zt,mn){var qn,Qn=this,ci=this.listView,Oi=this.options.maxSelectedItems,Ai=this._getSelectedIndices().slice(),Pn=[],Ni=function(Ye){ci.select(Ye).done(function(){Ye.forEach(function(Me){var pe=ci.dataItemByIndex(Me),lt=ci.element.children()[Me],yt=Xe(lt).hasClass("k-selected");Qn.trigger(yt?ft:Nt,{dataItem:pe,item:Xe(lt)})}),Qn._change()})};if(Ai.length-1==mn-zt)return Ni(Ai);if(zt<mn)for(qn=zt;qn<=mn;qn++)Pn.push(qn);else for(qn=zt;qn>=mn;qn--)Pn.push(qn);for(null!==Oi&&Pn.length>Oi&&(Pn=Pn.slice(0,Oi)),qn=0;qn<Pn.length;qn++){var Ue=Pn[qn];-1==this._getSelectedIndices().indexOf(Ue)?Ai.push(Ue):Ai.splice(Ai.indexOf(Ue),1)}return Ai.length?(Qn.persistTagList=!1,Ni(Ai)):void 0},_input:function(){var zt=this,mn=zt.element,Qn=mn[0].accessKey,ci=zt.tagList.children("input.k-input-inner");ci[0]||(ci=Xe('<input class="k-input-inner" />').appendTo(zt.tagList)),mn.removeAttr("accesskey"),zt._focused=zt.input=ci.attr({autocomplete:"off",title:mn[0].title}),Qn&&zt._focused.attr("accesskey",Qn)},_tagList:function(){var mn=this.options,Qn=this.wrapper.children(".k-input-values");Qn[0]||(Qn=Xe(Dt.renderChipList('<div unselectable="on" class="k-input-values k-selection-multiple" />',Xe.extend({},mn))).appendTo(this.wrapper)),this.tagList=Qn},_tagTemplate:function(){var Pn,zt=this,mn=zt.options,Qn=mn.tagTemplate,Oi="multiple"===mn.tagMode,Ai=mn.messages.singleTag;zt.element[0].length&&!mn.dataSource&&(mn.dataTextField=mn.dataTextField||"text",mn.dataValueField=mn.dataValueField||"value"),Pn=Oi?ze.template("#:"+ze.expr(mn.dataTextField,"data")+"#",{useWithBlock:!1}):ze.template("#:values.length# "+Ai),zt.tagTextTemplate=Qn=Qn?ze.template(Qn):Pn,zt.tagTemplate=function(qn){return Dt.renderChip('<span unselectable="on"></span>',Xe.extend({},mn,{fillMode:"solid",rounded:"medium",themeColor:"base",text:Qn(qn),attr:{unselectable:"on"},removable:Oi,removableAttr:{unselectable:"on","aria-hidden":!0,"aria-label":zt.options.messages.deleteTag,title:zt.options.messages.deleteTag},icon:Oi?"":"arrow-s",iconAttr:{unselectable:"on","aria-hidden":!0,"aria-label":"open"}}))}},_loader:function(){this._loading=Xe('<span class="k-icon k-i-loading k-input-loading-icon '+Pt+'"></span>').insertAfter(this.tagList)},_clearButton:function(){it.fn._clearButton.call(this),this.options.clearButton&&(this._clear.insertAfter(this.tagList),this.wrapper.addClass("k-multiselect-clearable"))},_arrowButton:function(){var mn=Xe(Dt.renderButton('<button type="button" aria-label="'+this.options.messages.downArrow+'" class="k-input-button k-multiselect-toggle-button"></button>',Xe.extend({},this.options,{icon:"arrow-s"})));this._arrow&&(this._arrow.remove(),this._arrow=null),this.options.downArrow&&(this._arrow=mn.attr({tabIndex:-1}),this._arrow.appendTo(this.wrapper))},_textContainer:function(){var zt=ze.getComputedStyles(this.input[0],ii);zt.position="absolute",zt.visibility="hidden",zt.top=-3333,zt.left=-3333,this._span=Xe("<span/>").css(zt).appendTo(this.wrapper)},_wrapper:function(){var mn=this.element,Qn=mn.parent("span.k-multiselect");Qn[0]||((Qn=mn.wrap('<span class="k-multiselect k-input" unselectable="on" />').parent())[0].style.cssText=mn[0].style.cssText),this.wrapper=Qn.addClass(mn[0].className).removeClass("input-validation-error").css("display","")},_closeHandler:function(zt){this.trigger(en)?zt.preventDefault():(this.input.attr(Je,!1),this.ul.attr(Ve,!0))},_openHandler:function(zt){this._adjustListWidth(),this.trigger(Ot)?zt.preventDefault():(this.input.attr(Je,!0),this.ul.attr(Ve,!1))}});return St.plugin(Vi),ze.cssProperties.registerPrefix("MultiSelect","k-input-"),ze.cssProperties.registerValues("MultiSelect",[{prop:"rounded",values:ze.cssProperties.roundedValues.concat([["full","full"]])}]),window.kendo}.apply(Yi={},ur=[C,p,b,Jt,ht,F]))&&(vi=Yi),void 0===(co=function(){var Me,Xe=window.kendo.jQuery,Ke=void 0,ze=window.kendo,St=ze.ui,it=ze.keys,Dt=Xe.extend,Hn=Xe.each,Ui=Array.isArray,Co=ze.template,Sn=St.Widget,Vn=ze.data.HierarchicalDataSource,Dn=/^(ul|a|div)$/i,kn=".kendoPanelBar",Ot="href",en="k-last",cn="k-link",Ht="."+cn,ft="error",Nt=".k-item",$e=".k-group:visible",Je="k-image",Ve="k-first",Ge="change",Be="expand",Rt="click",Pt="k-content",$t="activate",Xn="collapse",Nn="dataBound",Ae="mouseenter",Kt="contentLoad",Fi="k-active",Ci="> .k-panel",xi="> .k-content",Vt="k-focus",qt="k-disabled",bn="k-selected",ii="."+bn,Vi="k-highlight",Jn=Nt+":not(.k-disabled)",zt="> "+Jn+" > "+Ht+", .k-panel > "+Jn+" > "+Ht,mn=Nt+".k-disabled > .k-link",Qn="> li > "+ii+", .k-panel > li > "+ii,ci="aria-disabled",Oi="aria-expanded",Ai="aria-hidden",Pn="aria-selected",qn=":visible",Ye={text:"dataTextField",url:"dataUrlField",spriteCssClass:"dataSpriteCssClassField",imageUrl:"dataImageUrlField"},pe={aria:function(Kn){var ho="";return(Kn.items||Kn.content||Kn.contentUrl||Kn.expanded)&&(ho+=Oi+"='"+(Kn.expanded?"true":"false")+"' "),!1===Kn.enabled&&(ho+=ci+"='true'"),ho},wrapperCssClass:function(Kn,ho){var po="k-item",$i=ho.index;return po+=Kn.firstLevel?" k-panelbar-header":" k-panelbar-item",!1===ho.enabled?po+=" "+qt:!0===ho.expanded&&(po+=" "+Fi),0===$i&&(po+=" k-first"),$i==Kn.length-1&&(po+=" k-last"),ho.cssClass&&(po+=" "+ho.cssClass),ho.level&&(po+=" k-level-"+ho.level()),po},textClass:function(Kn){var ho=cn;return Kn.selected&&(ho+=" "+bn),ho},textAttributes:function(Kn){return Kn?" href='"+Kn+"'":""},arrowClass:function(Kn){return"k-icon"+(Kn.expanded?" k-panelbar-toggle k-panelbar-collapse k-i-arrow-chevron-up":" k-panelbar-toggle k-panelbar-expand k-i-arrow-chevron-down")},text:function(Kn){return!1===Kn.encoded?Kn.text:ze.htmlEncode(Kn.text)},groupAttributes:function(Kn){return!0!==Kn.expanded?" style='display:none'":""},ariaHidden:function(Kn){return!0!==Kn.expanded},groupCssClass:function(){return"k-panelbar-group k-group k-panel"},contentAttributes:function(Kn){return!0!==Kn.item.expanded?" style='display:none'":""},content:function(Kn){return Kn.content?Kn.content:Kn.contentUrl?"":"&nbsp;"},contentUrl:function(Kn){return Kn.contentUrl?'href="'+Kn.contentUrl+'"':""}};function lt(Kn){(Kn=Xe(Kn)).filter(".k-first:not(:first-child)").removeClass(Ve),Kn.filter(".k-last:not(:last-child)").removeClass(en),Kn.filter(":first-child").addClass(Ve),Kn.filter(":last-child").addClass(en)}function yt(Kn){(Kn=Xe(Kn)).addClass("k-level-"+Kn.parentsUntil(".k-panelbar","ul").length)}Me=function(Kn){return Kn.children("span").children(".k-icon")};var zi=ze.ui.DataBoundWidget.extend({init:function(Kn,ho){var $i,ro,po=this;Ui(ho)&&(ho={dataSource:ho}),ro=ho&&!!ho.dataSource,Sn.fn.init.call(po,Kn,ho),Kn=po.wrapper=po.element.addClass("k-panelbar"),ho=po.options,Kn[0].id&&(po._itemId=Kn[0].id+"_pb_active"),po._tabindex(),po._accessors(),po._dataSource(),po._templates(),po._initData(ro),po._updateClasses(),po._animations(ho),Kn.on(Rt+kn,zt,po._click.bind(po)).on(Ae+kn+" mouseleave"+kn,zt,po._toggleHover).on(Rt+kn,mn,!1).on(Rt+kn,".k-request-retry",po._retryRequest.bind(po)).on("keydown"+kn,po._keydown.bind(po)).on("focus"+kn,function(){var wo=po.select();po._current(wo[0]?wo:po._first())}).on("blur"+kn,function(){po._current(null)}).attr("role","tree"),($i=Kn.find("li."+Fi+" > ."+Pt))[0]&&po.expand($i.parent(),!1),ho.dataSource||po._angularCompile(),ze.notify(po)},events:[Be,Xn,"select",$t,Ge,ft,Nn,Kt],options:{name:"PanelBar",dataSource:{},animation:{expand:{effects:"expand:vertical",duration:200},collapse:{duration:200}},messages:{loading:"Loading...",requestFailed:"Request failed.",retry:"Retry"},autoBind:!0,loadOnDemand:!0,expandMode:"multiple",template:"",dataTextField:null},_angularCompile:function(){var Kn=this;Kn.angular("compile",function(){return{elements:Kn.element.children("li"),data:[{dataItem:Kn.options.$angular}]}})},_angularCompileElements:function(Kn,ho){this.angular("compile",function(){return{elements:Kn,data:Xe.map(ho,function($i){return[{dataItem:$i}]})}})},_angularCleanup:function(){var Kn=this;Kn.angular("cleanup",function(){return{elements:Kn.element.children("li")}})},destroy:function(){Sn.fn.destroy.call(this),this.element.off(kn),this._angularCleanup(),ze.destroy(this.element)},_initData:function(Kn){Kn&&(this.element.empty(),this.options.autoBind&&(this._progress(!0),this.dataSource.fetch()))},_templates:function(){var ho=this.options,po=this._fieldAccessor.bind(this);ho.template&&"string"==typeof ho.template?ho.template=Co(ho.template):ho.template||(ho.template=Co("# var text = "+po("text")+"(data.item); ## if (typeof data.item.encoded != 'undefined' && data.item.encoded === false) {#<span class='k-panelbar-item-text'>#= text #</span># } else { #<span class='k-panelbar-item-text'>#: text #</span># } #")),this.templates={content:Co("<div class='k-panelbar-content k-content'#= contentAttributes(data) #>#= content(item) #</div>"),group:Co("<ul role='group' aria-hidden='#= ariaHidden(group) #' class='#= groupCssClass(group) #'#= groupAttributes(group) #>#= renderItems(data) #</ul>"),itemWrapper:Co("# var url = "+po("url")+"(item); ## var imageUrl = "+po("imageUrl")+"(item); ## var spriteCssClass = "+po("spriteCssClass")+"(item); ## var contentUrl = contentUrl(item); ## var tag = url||contentUrl ? 'a' : 'span'; #<#= tag # class='#= textClass(item) #' #= contentUrl ##= textAttributes(url) #># if (imageUrl) { #<img class='k-panelbar-item-icon k-image' alt='' src='#= imageUrl #' /># } ## if (spriteCssClass) { #<span class='k-sprite #= spriteCssClass #'></span># } ##= data.panelBar.options.template(data) ##= arrow(data) #</#= tag #>"),item:Co("<li role='treeitem' #=aria(item)#class='#= wrapperCssClass(group, item) #'"+ze.attr("uid")+"='#= item.uid #'>#= itemWrapper(data) ## if (item.items && item.items.length > 0) { ##= subGroup({ items: item.items, panelBar: panelBar, group: { expanded: item.expanded } }) ## } else if (item.content || item.contentUrl) { ##= renderContent(data) ## } #</li>"),loading:Co("<li class='k-item'><span class='k-icon k-i-loading'></span> #: data.messages.loading #</li>"),retry:Co("<li class='k-item'>#: data.messages.requestFailed # <button class='k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-request-retry'><span class='k-button-text'>#: data.messages.retry #</span></button></li>"),arrow:Co("<span class='#= arrowClass(item) #'></span>"),empty:Co("")}},setOptions:function(Kn){var ho=this.options.animation;this._animations(Kn),Kn.animation=Dt(!0,ho,Kn.animation),"dataSource"in Kn&&this.setDataSource(Kn.dataSource),Sn.fn.setOptions.call(this,Kn)},expand:function(Kn,ho){var po=this,$i={};if(Kn=this.element.find(Kn),!po._animating||!Kn.find("ul").is(":visible"))return po._animating=!0,ho=!1!==ho,Kn.each(function(ro,wo){wo=Xe(wo);var io=Kn.children(".k-group,.k-content");io.length||(io=po._addGroupElement(Kn));var Wi=io.add(wo.find(xi));if(!wo.hasClass(qt)&&Wi.length>0){if("single"==po.options.expandMode&&po._collapseAllExpanded(wo))return po;Kn.find("."+Vi).removeClass(Vi),wo.addClass(Vi),ho||($i=po.options.animation,po.options.animation={expand:{effects:{}},collapse:{hide:!0,effects:{}}}),po._triggerEvent(Be,wo)||po._toggleItem(wo,!1,!1),ho||(po.options.animation=$i)}}),po;po.one("complete",function(){setTimeout(function(){po.expand(Kn)})})},collapse:function(Kn,ho){var po=this,$i={};return po._animating=!0,ho=!1!==ho,(Kn=po.element.find(Kn)).each(function(ro,wo){var io=(wo=Xe(wo)).find(Ci).add(wo.find(xi));!wo.hasClass(qt)&&io.is(qn)&&(wo.removeClass(Vi),ho||($i=po.options.animation,po.options.animation={expand:{effects:{}},collapse:{hide:!0,effects:{}}}),po._triggerEvent(Xn,wo)||po._toggleItem(wo,!0),ho||(po.options.animation=$i))}),po},updateArrow:function(Kn){var ho=this;(Kn=Xe(Kn)).children(Ht).children(".k-panelbar-collapse, .k-panelbar-expand").remove(),Kn.filter(function(){var po=ho.dataItem(this);return po?po.hasChildren||po.content||po.contentUrl:Xe(this).find(".k-panel").length>0||Xe(this).find(".k-content").length>0}).children(".k-link:not(:has([class*=k-i-arrow]))").each(function(){var po=Xe(this),$i=po.parent();po.append("<span class='k-icon "+($i.hasClass(Fi)?" k-panelbar-toggle k-panelbar-collapse k-i-arrow-chevron-up":" k-panelbar-toggle k-panelbar-expand k-i-arrow-chevron-down")+"'/>")})},_accessors:function(){var po,$i,ro,ho=this.options,wo=this.element;for(po in Ye)$i=ho[Ye[po]],ro=wo.attr(ze.attr(po+"-field")),!$i&&ro&&($i=ro),$i||($i=po),Ui($i)||($i=[$i]),ho[Ye[po]]=$i},_progress:function(Kn,ho){var po=this.element,$i=this.templates.loading({messages:this.options.messages});1==arguments.length?(ho=Kn)?po.html($i):po.empty():Me(Kn).toggleClass("k-i-loading",ho).removeClass("k-i-refresh")},_refreshRoot:function(Kn){var ho=this,$i={firstLevel:!0,expanded:!0,length:ho.element.children().length};this.element.empty();var ro=Xe.map(Kn,function(Wi,fo){return"string"==typeof Wi?Xe(Wi):(Wi.items=[],Xe(ho.renderItem({group:$i,item:Dt(Wi,{index:fo})})))});this.element.append(ro);for(var wo=this.element.children(".k-item"),io=0;io<Kn.length;io++)this.trigger("itemChange",{item:wo.eq(io).find(".k-link").first(),data:Kn[io],ns:St});this._angularCompileElements(ro,Kn)},_refreshChildren:function(Kn,ho){var po,$i,ro;ho.children(".k-group").empty();var wo=Kn.children.data();if(wo.length)for(this.append(Kn.children,ho),this.options.loadOnDemand&&this._toggleGroup(ho.children(".k-group"),!1),$i=ho.children(".k-group").children("li"),po=0;po<$i.length;po++)ro=$i.eq(po),this.trigger("itemChange",{item:ro.find(".k-link").first(),data:this.dataItem(ro),ns:St});else(function on(Kn){var ho=Kn,po=Kn.children("ul"),$i=ho.children(".k-link").children(".k-icon");Kn.hasClass("k-panelbar")||(!$i.length&&po.length?$i=Xe("<span class='k-icon' />").appendTo(ho):(!po.length||!po.children().length)&&($i.remove(),po.remove()))})(ho),$i=ho.children(".k-group").children("li"),this._angularCompileElements($i,wo)},findByUid:function(Kn){for(var $i,ho=this.element.find(".k-item"),po=ze.attr("uid"),ro=0;ro<ho.length;ro++)if(ho[ro].getAttribute(po)==Kn){$i=ho[ro];break}return Xe($i)},refresh:function(Kn){var po=Kn.node,$i=Kn.action,ro=Kn.items,wo=this.wrapper,io=this.options.loadOnDemand;if(Kn.field)return ro[0]&&ro[0].level?this._updateItems(ro,Kn.field):void 0;if(po&&(wo=this.findByUid(po.uid),this._progress(wo,!1)),"add"==$i?this._appendItems(Kn.index,ro,wo):"remove"==$i?this.remove(this.findByUid(ro[0].uid)):"itemchange"==$i?this._updateItems(ro):"itemloaded"==$i?this._refreshChildren(po,wo):this._refreshRoot(ro),"remove"!=$i)for(var Wi=0;Wi<ro.length;Wi++)if(!io||ro[Wi].expanded){var fo=ro[Wi];this._hasChildItems(fo)&&fo.load()}this.trigger(Nn,{node:po?wo:Ke})},_error:function(Kn){var ho=Kn.node&&this.findByUid(Kn.node.uid),po=this.templates.retry({messages:this.options.messages});ho?(this._progress(ho,!1),this._expanded(ho,!1),Me(ho).addClass("k-i-refresh"),Kn.node.loaded(!1)):(this._progress(!1),this.element.html(po))},_retryRequest:function(Kn){Kn.preventDefault(),this.dataSource.fetch()},items:function(){return this.element.find(".k-item > span:first-child")},setDataSource:function(Kn){this.options.dataSource=Kn,this._dataSource(),this.options.autoBind&&(this._progress(!0),this.dataSource.fetch())},_bindDataSource:function(){this._refreshHandler=this.refresh.bind(this),this._errorHandler=this._error.bind(this),this.dataSource.bind(Ge,this._refreshHandler),this.dataSource.bind(ft,this._errorHandler)},_unbindDataSource:function(){var Kn=this.dataSource;Kn&&(Kn.unbind(Ge,this._refreshHandler),Kn.unbind(ft,this._errorHandler))},_fieldAccessor:function(Kn){var ho=this.options[Ye[Kn]]||[],po=ho.length,$i="(function(item) {";return 0===po?$i+="return item['"+Kn+"'];":($i+="var levels = ["+Xe.map(ho,function(ro){return"function(d){ return "+ze.expr(ro)+"}"}).join(",")+"];",$i+="if(item.level){return levels[Math.min(item.level(), "+po+"-1)](item);}else",$i+="{return levels["+po+"-1](item)}"),$i+"})"},_dataSource:function(){var po=this.options.dataSource;po&&(po=Ui(po)?{data:po}:po,this._unbindDataSource(),po.fields||(po.fields=[{field:"text"},{field:"url"},{field:"spriteCssClass"},{field:"imageUrl"}]),this.dataSource=Vn.create(po),this._bindDataSource())},_appendItems:function(Kn,ho,po){var ro,wo,$i=this;po.hasClass("k-panelbar")?(ro=po.children("li"),wo=po):((wo=po.children(".k-group")).length||(wo=$i._addGroupElement(po)),ro=wo.children("li"));var io={firstLevel:po.hasClass("k-panelbar"),expanded:!0,length:ro.length},Wi=Xe.map(ho,function(cr,Fr){return Xe("string"==typeof cr?cr:$i.renderItem({group:io,item:Dt(cr,{index:Fr})}))});void 0===Kn&&(Kn=ro.length);for(var fo=0;fo<Wi.length;fo++)0===ro.length||0===Kn?wo.append(Wi[fo]):Wi[fo].insertAfter(ro[Kn-1]);$i._angularCompileElements(Wi,ho),$i.dataItem(po)&&($i.dataItem(po).hasChildren=!0,$i.updateArrow(po))},_updateItems:function(Kn,ho){var $i,ro,wo,io,po=this,Wi={panelBar:po.options,item:io,group:{}},fo="expanded"!=ho;if("selected"==ho)if(Kn[0][ho]){var cr=po.findByUid(Kn[0].uid);cr.hasClass(qt)||po.select(cr,!0)}else po.clearSelection();else{var Fr=Xe.map(Kn,function(jr){return po.findByUid(jr.uid)});for(fo&&po.angular("cleanup",function(){return{elements:Fr}}),$i=0;$i<Kn.length;$i++)Wi.item=io=Kn[$i],Wi.panelBar=po,ro=(wo=Fr[$i]).parent(),fo&&(Wi.group={firstLevel:ro.hasClass("k-panelbar"),expanded:wo.parent().hasClass(Fi),length:wo.children().length},wo.children(".k-link").remove(),wo.prepend(po.templates.itemWrapper(Dt(Wi,{arrow:io.hasChildren||io.content||io.contentUrl?po.templates.arrow:po.templates.empty},pe)))),"expanded"==ho?po._toggleItem(wo,!io[ho],!io[ho]||"true"):"enabled"==ho&&(po.enable(wo,io[ho]),io[ho]||io.selected&&io.set("selected",!1)),wo.length&&this.trigger("itemChange",{item:wo.find(".k-link").first(),data:io,ns:St});fo&&po.angular("compile",function(){return{elements:Fr,data:Xe.map(Kn,function(jr){return[{dataItem:jr}]})}})}},_toggleDisabled:function(Kn,ho){(Kn=this.element.find(Kn)).toggleClass(qt,!ho).attr(ci,!ho)},dataItem:function(Kn){var ho=Xe(Kn).closest(Nt).attr(ze.attr("uid")),po=this.dataSource;return po&&po.getByUid(ho)},select:function(Kn,ho){var po=this;return Kn===Ke?po.element.find(Qn).parent():((Kn=po.element.find(Kn)).length?Kn.each(function(){var $i=Xe(this),ro=$i.children(Ht);if($i.hasClass(qt))return po;po._updateSelected(ro,ho)}):this._updateSelected(Kn),po)},clearSelection:function(){this.select(Xe())},enable:function(Kn,ho){return this._toggleDisabled(Kn,!1!==ho),this},disable:function(Kn){return this._toggleDisabled(Kn,!1),this},append:function(Kn,ho){ho=this.element.find(ho);var po=this._insert(Kn,ho,ho.length?ho.find(Ci):null);return Hn(po.items,function(){po.group.append(this),lt(this),yt(this)}),this.updateArrow(ho),lt(po.group.find(".k-first, .k-last")),po.group.height("auto"),this},insertBefore:function(Kn,ho){ho=this.element.find(ho);var po=this._insert(Kn,ho,ho.parent());return Hn(po.items,function(){ho.before(this),lt(this),yt(this)}),lt(ho),po.group.height("auto"),this},insertAfter:function(Kn,ho){ho=this.element.find(ho);var po=this._insert(Kn,ho,ho.parent());return Hn(po.items,function(){ho.after(this),lt(this),yt(this)}),lt(ho),po.group.height("auto"),this},remove:function(Kn){var po=(Kn=this.element.find(Kn)).parentsUntil(this.element,Nt),$i=Kn.parent("ul");return Kn.remove(),$i&&!$i.hasClass("k-panelbar")&&!$i.children(Nt).length&&$i.remove(),po.length&&(po=po.eq(0),this.updateArrow(po),lt(po)),this},reload:function(Kn){var ho=this;(Kn=ho.element.find(Kn)).each(function(){var po=Xe(this);ho._ajaxRequest(po,po.children("."+Pt),!po.is(qn))})},_first:function(){return this.element.children(Jn).first()},_last:function(){var Kn=this.element.children(Jn).last(),ho=Kn.children($e);return ho[0]?ho.children(Jn).last():Kn},_current:function(Kn){var ho=this,po=ho._focused,$i=ho._itemId;if(Kn===Ke)return po;ho.element.removeAttr("aria-activedescendant"),po&&po.length&&(po[0].id===$i&&po.removeAttr("id"),po.children(Ht).removeClass(Vt)),Xe(Kn).length&&(Kn.attr("id",$i=Kn[0].id||$i).children(Ht).addClass(Vt),ho.element.attr("aria-activedescendant",$i)),ho._focused=Kn},_keydown:function(Kn){var ho=this,po=Kn.keyCode,$i=ho._current();Kn.target==Kn.currentTarget&&(po==it.DOWN||po==it.RIGHT?(ho._current(ho._nextItem($i)),Kn.preventDefault()):po==it.UP||po==it.LEFT?(ho._current(ho._prevItem($i)),Kn.preventDefault()):po==it.ENTER||po==it.SPACEBAR?(ho._click(Kn),Kn.preventDefault()):po==it.HOME?(ho._current(ho._first()),Kn.preventDefault()):po==it.END&&(ho._current(ho._last()),Kn.preventDefault()))},_nextItem:function(Kn){if(!Kn)return this._first();var ho=Kn.children($e),po=Kn.nextAll(":visible").first();return ho[0]&&(po=ho.children("."+Ve)),po[0]||(po=Kn.parent($e).parent(Nt).next()),po[0]||(po=this._first()),po},_prevItem:function(Kn){if(!Kn)return this._last();var po,ho=Kn.prevAll(":visible").first();if(ho[0])for(po=ho;po[0];)(po=po.children($e).children("."+en))[0]&&(ho=po);else(ho=Kn.parent($e).parent(Nt))[0]||(ho=this._last());return ho},_insert:function(Kn,ho,po){var ro,Wi,$i=this,wo=Xe.isPlainObject(Kn),io=ho&&ho[0];if(io||(po=$i.element),Wi={firstLevel:po.hasClass("k-panelbar"),expanded:Xe(ho).hasClass(Fi),length:po.children().length},io&&!po.length&&(po=Xe($i.renderGroup({group:Wi,options:$i.options})).appendTo(ho)),wo||Array.isArray(Kn)||Kn instanceof Vn){if(Kn instanceof Vn&&(Kn=Kn.data()),ro=Xe.map(wo?[Kn]:Kn,function(cr,Fr){return Xe("string"==typeof cr?cr:$i.renderItem({group:Wi,item:Dt(cr,{index:Fr})}))}),io){var fo=$i.dataItem(ho);fo?(fo.hasChildren=!0,ho.attr(Oi,fo.expanded).not("."+Fi).children("ul").attr(Ai,!fo.expanded)):ho.attr(Oi,!1)}}else ro="string"==typeof Kn&&"<"!=Kn.charAt(0)?$i.element.find(Kn):Xe(Kn),$i._updateItemsClasses(ro);return Kn.length||(Kn=[Kn]),$i._angularCompileElements(ro,Kn),{items:ro,group:po}},_toggleHover:function(Kn){var ho=Xe(Kn.currentTarget);ho.parents("li."+qt).length||ho.toggleClass("k-hover",Kn.type==Ae)},_updateClasses:function(){var ho,po,$i,ro,wo,Kn=this;ro=(ho=Kn.element.find("li > ul").not(function(){return Xe(this).parentsUntil(".k-panelbar","div").length}).addClass("k-panelbar-group k-group k-panel").attr("role","group")).parent(),$i=(wo=Kn.dataItem(ro))&&wo.expanded||!1,ho.parent().not("["+Oi+"]").attr(Oi,$i).not("."+Fi).children("ul").attr(Ai,!$i).hide(),po=Kn.element.add(ho).children(),Kn._updateItemsClasses(po),Kn.updateArrow(po),lt(po)},_updateItemsClasses:function(Kn){for(var ho=Kn.length,po=0;po<ho;po++)this._updateItemClasses(Kn[po],po)},_updateItemClasses:function(Kn,ho){var io,Wi,po=this._selected,$i=this.options.contentUrls,ro=$i&&$i[ho],wo=this.element[0];Kn=Xe(Kn).addClass("k-item").attr("role","treeitem"),ze.support.browser.msie&&Kn.css("list-style-position","inside").css("list-style-position",""),Kn.children("img").addClass(Je),(Wi=Kn.children("a").addClass(cn))[0]&&(Wi.attr("href",ro),Wi.children("img").addClass(Je)),Kn.filter("li[disabled]").addClass("k-disabled").attr(ci,!0).prop("disabled",!1),Kn.children("div").addClass(Pt+" k-panelbar-content").attr(Ai,!0).hide().parent().attr(Oi,!1),(Wi=Kn.children(ii))[0]&&(po&&po.removeAttr(Pn).children(ii).removeClass(bn),Wi.addClass(bn),this._selected=Kn.attr(Pn,!0)),Kn.children(Ht)[0]||(io="<span class='k-link'><span class='k-panelbar-item-text'></span></span>",$i&&$i[ho]&&Kn[0].parentNode==wo&&(io='<a class="k-link" href="'+$i[ho]+'"></a>'),Kn.contents().filter(function(){return!(this.nodeName.match(Dn)||3==this.nodeType&&!ze.trim(this.nodeValue.trim))}).wrapAll(io)),Kn.parent(".k-panelbar")[0]?Kn.addClass("k-panelbar-header"):Kn.addClass("k-panelbar-item"),/k\-level\-\d+/i.test(Kn.attr("class"))||Kn.addClass("k-level-"+Kn.parentsUntil(this.element,"ul").length)},_click:function(Kn){var ro,wo,io,ho=this,po=Kn.type==Rt?Xe(Kn.target):ho._current().children(Ht),$i=ho.element;if(!po.parents("li."+qt).length&&po.closest(".k-panelbar")[0]==$i[0]&&(!po.is(":kendoFocusable")||po.hasClass(cn))){var fo=po.closest(Ht),cr=fo.closest(Nt);ho._updateSelected(fo);var Fr=cr.children(".k-group,.k-content"),jr=this.dataItem(cr);if(!Fr.length&&(ho.options.loadOnDemand&&jr&&jr.hasChildren||this._hasChildItems(cr)||cr.content||cr.contentUrl)&&(Fr=ho._addGroupElement(cr)),wo=cr.find(Ci).add(cr.find(xi)),ro=!((!(io=fo.attr(Ot))||"#"!=io.charAt(io.length-1)&&-1==io.indexOf("#"+ho.element[0].id+"-"))&&!wo.length),wo.data("animating")&&ro)return void Kn.preventDefault();if(ho._triggerEvent("select",cr)&&(ro=!0),!1!==ro){if("single"==ho.options.expandMode&&ho._collapseAllExpanded(cr)&&ro)return void Kn.preventDefault();if(wo.length){var fs=wo.is(qn);ho._triggerEvent(fs?Xn:Be,cr)||(ro=ho._toggleItem(cr,fs))}ro&&Kn.preventDefault()}}},_hasChildItems:function(Kn){return Kn.items&&Kn.items.length>0||Kn.hasChildren},_toggleItem:function(Kn,ho,po){var Wi,fo,ro=Kn.find(Ci),io=Kn.find(Ht).attr(Ot),cr=this.dataItem(Kn),Fr=!ho,jr=cr&&cr.loaded();return cr&&!po&&cr.expanded!==Fr?(cr.set("expanded",Fr),Wi=cr.hasChildren||!!cr.content||!!cr.contentUrl):(!cr||po&&"true"!==po||jr||cr.content||cr.contentUrl?ro.length?(this._toggleGroup(ro,ho),Wi=!0):(fo=Kn.children("."+Pt)).length&&(Wi=!0,fo.is(":empty")&&io!==Ke?this._ajaxRequest(Kn,fo,ho):this._toggleGroup(fo,ho)):(this.options.loadOnDemand&&this._progress(Kn,!0),Kn.children(".k-group,.k-content").remove(),Wi=cr.hasChildren,cr.load()),Wi)},_toggleGroup:function(Kn,ho){var po=this,$i=po.options.animation,ro=$i.expand,wo=$i.collapse&&"effects"in $i.collapse,io=Dt({},$i.expand,$i.collapse);wo||(io=Dt(io,{reverse:!0})),Kn.is(qn)==ho?(Kn.attr(Ai,!!ho),Kn.parent().attr(Oi,!ho).toggleClass(Fi,!ho).find("> .k-link > .k-panelbar-collapse,> .k-link > .k-panelbar-expand").toggleClass("k-i-arrow-chevron-up",!ho).toggleClass("k-panelbar-collapse",!ho).toggleClass("k-i-arrow-chevron-down",ho).toggleClass("k-panelbar-expand",ho),ho?(ro=Dt(io,{hide:!0})).complete=function(){po._animationCallback()}:ro=Dt({complete:function(Wi){po._triggerEvent($t,Wi.closest(Nt)),po._animationCallback()}},ro),Kn.toggle(0).kendoStop(!0,!0).kendoAnimate(ro)):po._animating=!1},_animationCallback:function(){this.trigger("complete"),this._animating=!1},_addGroupElement:function(Kn){var ho=Xe('<ul role="group" aria-hidden="true" class="k-panelbar-group k-group k-panel" style="display:none"></ul>');return Kn.append(ho),ho},_collapseAllExpanded:function(Kn){var po,ho=this,$i=!1,ro=Kn.find(Ci).add(Kn.find(xi));return ro.is(qn)&&($i=!0),ro.is(qn)||0===ro.length||((po=Kn.siblings()).find(Ci).add(po.find(xi)).filter(function(){return Xe(this).is(qn)}).each(function(wo,io){io=Xe(io),($i=ho._triggerEvent(Xn,io.closest(Nt)))||ho._toggleGroup(io,!0)}),ho.one("complete",function(){setTimeout(function(){po.each(function(wo,io){var Wi=ho.dataItem(io);Wi&&Wi.set("expanded",!1)})})})),$i},_ajaxRequest:function(Kn,ho,po){var $i=this,ro=Kn.find(".k-panelbar-collapse, .k-panelbar-expand"),wo=Kn.find(Ht),io=setTimeout(function(){ro.addClass("k-i-loading")},100),fo=wo.attr(Ot);Xe.ajax({type:"GET",cache:!1,url:fo,dataType:"html",data:{},error:function(cr,Fr){ro.removeClass("k-i-loading"),$i.trigger(ft,{xhr:cr,status:Fr})&&this.complete()},complete:function(){clearTimeout(io),ro.removeClass("k-i-loading")},success:function(cr){function Fr(){return{elements:ho.get()}}try{$i.angular("cleanup",Fr),ho.html(cr),$i.angular("compile",Fr)}catch(fs){var jr=window.console;jr&&jr.error&&jr.error(fs.name+": "+fs.message+" in "+fo),this.error(this.xhr,"error")}$i._toggleGroup(ho,po),$i.trigger(Kt,{item:Kn[0],contentElement:ho[0]})}})},_triggerEvent:function(Kn,ho){return this.trigger(Kn,{item:ho[0]})},_updateSelected:function(Kn,ho){var po=this,$i=po.element,ro=Kn.parent(Nt),wo=po._selected,io=po.dataItem(ro);wo&&wo.removeAttr(Pn),po._selected=ro.attr(Pn,!0),$i.find(Qn).removeClass(bn),$i.find("> ."+Vi+", .k-panel > ."+Vi).removeClass(Vi),Kn.addClass(bn),Kn.parentsUntil($i,Nt).filter(":has(.k-link)").addClass(Vi),po._current(ro[0]?ro:null),io&&io.set("selected",!0),ho||po.trigger(Ge)},_animations:function(Kn){Kn&&"animation"in Kn&&!Kn.animation&&(Kn.animation={expand:{effects:{}},collapse:{hide:!0,effects:{}}})},renderItem:function(Kn){var ho=this;Kn=Dt({panelBar:ho,group:{}},Kn);var po=ho.templates.empty,$i=Kn.item;return ho.templates.item(Dt(Kn,{itemWrapper:ho.templates.itemWrapper,renderContent:ho.renderContent,arrow:ho._hasChildItems($i)||$i.content||$i.contentUrl?ho.templates.arrow:po,subGroup:!Kn.loadOnDemand||$i.expanded?ho.renderGroup:po},pe))},renderGroup:function(Kn){return(this.templates||Kn.panelBar.templates).group(Dt({renderItems:function($i){for(var ro="",wo=0,io=$i.items,Wi=io?io.length:0,fo=Dt({length:Wi},$i.group);wo<Wi;wo++)ro+=$i.panelBar.renderItem(Dt($i,{group:fo,item:Dt({index:wo},io[wo])}));return ro}},Kn,pe))},renderContent:function(Kn){return Kn.panelBar.templates.content(Dt(Kn,pe))}});return ze.ui.plugin(zi),window.kendo}.apply(sr={},ur=[d]))&&(co=sr),void 0===(yr=function(){var Xe=window.kendo.jQuery,ze=window.kendo,St=ze.ui,it=ze.keys,Dt=Xe.extend,Hn=St.Widget,Ui=/^\d+(\.\d+)?px$/i,Co=/^\d+(\.\d+)?%$/i,Sn=".kendoSplitter",Vn="expand",Dn="collapse",kn="contentLoad",en="layoutChange",cn="horizontal",Ht="vertical",an="pane",Je="k-focus",Ve="k-"+an,Ge="."+Ve;function He(bn){return Co.test(bn)}function Kt(bn){return Ui.test(bn)||/^\d+$/.test(bn)}function On(bn){return!He(bn)&&!Kt(bn)}function Fi(bn,ii){var Vi=parseInt(bn,10);return He(bn)&&(Vi=Math.floor(Vi*ii/100)),Vi}function Ci(bn,ii){return function(Vi,Jn){var zt=this.element.find(Vi).data(an);if(1==arguments.length)return zt[bn];zt[bn]=Jn,ii&&this.element.data("kendo"+this.options.name).resize(!0)}}var xi=Hn.extend({init:function(bn,ii){var Jn,Vi=this;Hn.fn.init.call(Vi,bn,ii),Vi.wrapper=Vi.element,Vi.options.orientation&&(Jn=Vi.options.orientation.toLowerCase()!=Ht),Vi.orientation=Jn?cn:Ht,Vi._dimension=Jn?"width":"height",Vi._keys={decrease:Jn?it.LEFT:it.UP,increase:Jn?it.RIGHT:it.DOWN},Vi._resizeStep=10,Vi._marker=ze.guid().substring(0,8),Vi._initPanes(),Vi.resizing=new qt(Vi),Vi.element.triggerHandler("init"+Sn)},events:[Vn,Dn,kn,"error","resize",en],_addOverlays:function(){this._panes().append("<div class='k-splitter-overlay k-overlay' />")},_removeOverlays:function(){this._panes().children(".k-splitter-overlay").remove()},_attachEvents:function(){var bn=this;bn.element.children(".k-splitbar-draggable-"+bn.options.orientation).on("keydown"+Sn,bn._keydown.bind(bn)).on("mousedown"+Sn,function(Vi){Vi.currentTarget.focus()}).on("focus"+Sn,function(Vi){Xe(Vi.currentTarget).addClass(Je)}).on("blur"+Sn,function(Vi){Xe(Vi.currentTarget).removeClass(Je),bn.resizing&&bn.resizing.end()}).on("mouseenter"+Sn,function(){Xe(this).addClass("k-splitbar-"+bn.orientation+"-hover")}).on("mouseleave"+Sn,function(){Xe(this).removeClass("k-splitbar-"+bn.orientation+"-hover")}).on("mousedown"+Sn,bn._addOverlays.bind(bn)).end().children(".k-splitbar").on("dblclick"+Sn,bn._togglePane.bind(bn)).children(".k-collapse-next, .k-collapse-prev").on("click"+Sn,bn._arrowClick(Dn)).end().children(".k-expand-next, .k-expand-prev").on("click"+Sn,bn._arrowClick(Vn)).end().end(),Xe(window).on("resize"+Sn+bn._marker,bn.resize.bind(bn,!1)),Xe(document).on("mouseup"+Sn+bn._marker,bn._removeOverlays.bind(bn))},_detachEvents:function(){this.element.children(".k-splitbar-draggable-"+this.orientation).off(Sn).end().children(".k-splitbar").off("dblclick"+Sn).children(".k-collapse-next, .k-collapse-prev, .k-expand-next, .k-expand-prev").off(Sn),Xe(window).off(Sn+this._marker),Xe(document).off(Sn+this._marker)},options:{name:"Splitter",orientation:cn,panes:[]},destroy:function(){Hn.fn.destroy.call(this),this._detachEvents(),this.resizing&&this.resizing.destroy(),ze.destroy(this.element),this.wrapper=this.element=null},_keydown:function(bn){var Oi,ii=this,Vi=bn.keyCode,Jn=ii.resizing,zt=Xe(bn.currentTarget),mn=ii._keys,ci=Vi===mn.decrease;Vi===mn.increase||ci?(bn.ctrlKey?(Oi=zt[ci?"next":"prev"](),Jn&&Jn.isResizing()&&Jn.end(),Oi[ii._dimension]()?ii._triggerAction(Dn,zt[ci?"prev":"next"]()):ii._triggerAction(Vn,Oi)):Jn&&Jn.move((ci?-1:1)*ii._resizeStep,zt),bn.preventDefault()):Vi===it.HOME?(Oi=zt.prev(),ii.collapse(Oi),bn.preventDefault()):Vi===it.END?(Oi=zt.prev(),ii.expand(Oi),bn.preventDefault()):Vi===it.ENTER&&Jn&&(Jn.end(),bn.preventDefault())},_initPanes:function(){var bn=this.options.panes||[],ii=this;this.element.addClass("k-widget").addClass("k-splitter").children().each(function(Vi,Jn){"script"!=Jn.nodeName.toLowerCase()&&ii._initPane(Jn,bn[Vi])}),this.resize()},_initPane:function(bn,ii){(bn=Xe(bn).attr("role","group").addClass(Ve)).data(an,ii||{}).toggleClass("k-scrollable",!ii||!1!==ii.scrollable),this.ajaxRequest(bn)},ajaxRequest:function(bn,ii,Vi){var zt,Jn=this;zt=(bn=Jn.element.find(bn)).data(an),(ii=ii||zt.contentUrl)&&(bn.append("<span class='k-icon k-i-loading k-pane-loading' />"),ze.isLocalUrl(ii)?ra.ajax({url:ii,data:Vi||{},type:"GET",dataType:"html",success:function(mn){Jn.angular("cleanup",function(){return{elements:bn.get()}}),bn.html(mn),Jn.angular("compile",function(){return{elements:bn.get()}}),Jn.trigger(kn,{pane:bn[0]})},error:function(mn,Qn){Jn.trigger("error",{pane:bn[0],status:Qn,xhr:mn})}}):bn.removeClass("k-scrollable").html("<iframe src='"+ii+"' frameborder='0' class='k-content-frame'>This page requires frames in order to show content</iframe>"))},_triggerAction:function(bn,ii){var Vi=ii.data(an);Vi.collapsible&&(Vi.collapsed&&bn==Vn||!Vi.collapsed&&bn==Dn)&&!this.trigger(bn,{pane:ii[0]})&&this[bn](ii[0])},_togglePane:function(bn){var Jn,ii=this,Vi=Xe(bn.target);Vi.closest(".k-splitter")[0]==ii.element[0]&&1===(Jn=Vi.children(".k-icon:not(.k-resize-handle)")).length&&(Jn.is(".k-collapse-prev")?ii._triggerAction(Dn,Vi.prev()):Jn.is(".k-collapse-next")?ii._triggerAction(Dn,Vi.next()):Jn.is(".k-expand-prev")?ii._triggerAction(Vn,Vi.prev()):Jn.is(".k-expand-next")&&ii._triggerAction(Vn,Vi.next()))},_arrowClick:function(bn){var ii=this;return function(Vi){var zt,Jn=Xe(Vi.target);Jn.closest(".k-splitter")[0]==ii.element[0]&&(zt=Jn.is(".k-"+bn+"-prev")?Jn.parent().prev():Jn.parent().next(),ii._triggerAction(bn,zt))}},_updateSplitBar:function(bn,ii,Vi,Jn){var zt=function(Ni,Ue){return Ue?"<div class='k-icon "+Ni+"'></div>":""},mn=this.orientation,Qn=!1!==ii.resizable&&!1!==Vi.resizable,ci=ii.collapsible,Oi=ii.collapsed,Ai=Vi.collapsible,Pn=Vi.collapsed,qn=Jn.attr("id");qn||(qn=ze.guid(),Jn.attr("id",qn)),bn.addClass("k-splitbar k-splitbar-"+mn).attr("role","separator").attr("aria-valuemin","0").attr("aria-valuemax","100").attr("aria-controls",qn).removeClass("k-splitbar-"+mn+"-hover").toggleClass("k-splitbar-draggable-"+mn,Qn&&!Oi&&!Pn).toggleClass("k-splitbar-static-"+mn,!Qn&&!ci&&!Ai).html(zt("k-collapse-prev k-i-arrow-60-up",ci&&!Oi&&!Pn&&mn==Ht)+zt("k-collapse-prev k-i-arrow-60-left",ci&&!Oi&&!Pn&&mn==cn)+zt("k-expand-prev k-i-arrow-60-down",ci&&Oi&&!Pn&&mn==Ht)+zt("k-expand-prev k-i-arrow-60-right",ci&&Oi&&!Pn&&mn==cn)+zt("k-resize-handle k-i-hbar",Qn&&mn==Ht)+zt("k-resize-handle k-i-vbar",Qn&&mn==cn)+zt("k-collapse-next k-i-arrow-60-down",Ai&&!Pn&&!Oi&&mn==Ht)+zt("k-collapse-next k-i-arrow-60-right",Ai&&!Pn&&!Oi&&mn==cn)+zt("k-expand-next k-i-arrow-60-up",Ai&&Pn&&!Oi&&mn==Ht)+zt("k-expand-next k-i-arrow-60-left",Ai&&Pn&&!Oi&&mn==cn)),ii.labelId?bn.attr("aria-labelledby",ii.labelId):ii.label&&bn.attr("aria-label",ii.label),mn==cn&&bn.attr("aria-orientation",Ht),!Qn&&!ci&&!Ai&&bn.removeAttr("tabindex")},_updateSplitBars:function(){var bn=this;this.element.children(".k-splitbar").each(function(){var ii=Xe(this),Vi=ii.prevAll(Ge).first(),Jn=Vi.data(an),zt=ii.nextAll(Ge).first().data(an);zt&&bn._updateSplitBar(ii,Jn,zt,Vi)})},_removeSplitBars:function(){this.element.children(".k-splitbar").remove()},_panes:function(){return this.element?this.element.children(Ge):Xe()},_resetAriaValueNow:function(bn,ii){var Vi,zt;for(Vi=0;Vi<bn.length;Vi++)zt=Math.round(ii[Vi]/(ii[Vi]+ii[Vi+1]||1)*100),bn[Vi].setAttribute("aria-valuenow",zt)},_resize:function(){var bn=this,ii=bn.element,Vi=ii.children(Ge),Jn=bn.orientation==cn,zt=ii.children(".k-splitbar"),mn=zt.length,Qn=Jn?"width":"height",ci=ii[Qn](),Oi=[];bn.wrapper.addClass("k-splitter-resizing"),0===mn?(Vi.slice(0,mn=Vi.length-1).after("<div tabindex='0' class='k-splitbar' data-marker='"+bn._marker+"' />"),bn._updateSplitBars(),zt=ii.children(".k-splitbar")):bn._updateSplitBars(),zt.each(function(){ci-=this[Jn?"offsetWidth":"offsetHeight"]});var Ai=0,qn=Xe();Vi.css({position:"absolute",top:0})[Qn](function(){var Kn,on=Xe(this),zi=on.data(an)||{};if(on.removeClass("k-collapsed"),zi.collapsed)Kn=zi.collapsedSize?Fi(zi.collapsedSize,ci):0,on.css("overflow","hidden").addClass("k-collapsed");else{if(On(zi.size))return qn=qn.add(this),void Oi.push(!1);Kn=Fi(zi.size,ci)}return Ai+=Kn,Oi.push(Kn),Kn}),ci-=Ai;var Ni=qn.length,Ue=Math.floor(ci/Ni);qn.slice(0,Ni-1).css(Qn,Ue).end().eq(Ni-1).css(Qn,ci-(Ni-1)*Ue),Oi.forEach(function(on,zi){!1===on&&(Oi[zi]=Ue)}),bn._resetAriaValueNow(zt,Oi);var Ye=0,Me=Jn?"height":"width",pe=Jn?"left":"top",lt=Jn?"offsetWidth":"offsetHeight";if(0===Ni){var yt=Vi.filter(function(){return!(Xe(this).data(an)||{}).collapsed}).last();yt[Qn](ci+yt[0][lt])}ii.children().css(Me,ii[Me]()).each(function(on,zi){"script"!=zi.tagName.toLowerCase()&&(zi.style[pe]=Math.floor(Ye)+"px",Ye+=zi[lt])}),bn._detachEvents(),bn._attachEvents(),bn.wrapper.removeClass("k-splitter-resizing"),ze.resize(Vi),bn.trigger(en)},toggle:function(bn,ii){var Jn;Jn=(bn=this.element.find(bn)).data(an),(ii||Jn.collapsible)&&(1==arguments.length&&(ii=void 0!==Jn.collapsed&&Jn.collapsed),Jn.collapsed=!ii,bn.css("overflow",Jn.collapsed?"hidden":""),this.resize(!0))},collapse:function(bn){this.toggle(bn,!1)},expand:function(bn){this.toggle(bn,!0)},_addPane:function(bn,ii,Vi){return Vi.length&&(this.options.panes.splice(ii,0,bn),this._initPane(Vi,bn),this._removeSplitBars(),this.resize(!0)),Vi},append:function(bn){bn=bn||{};var Vi=Xe("<div />").appendTo(this.element);return this._addPane(bn,this.options.panes.length,Vi)},insertBefore:function(bn,ii){ii=Xe(ii),bn=bn||{};var Jn=this.wrapper.children(".k-pane").index(ii),zt=Xe("<div />").insertBefore(Xe(ii));return this._addPane(bn,Jn,zt)},insertAfter:function(bn,ii){ii=Xe(ii),bn=bn||{};var Jn=this.wrapper.children(".k-pane").index(ii),zt=Xe("<div />").insertAfter(Xe(ii));return this._addPane(bn,Jn+1,zt)},remove:function(bn){var ii=this;return(bn=ii.wrapper.find(bn)).length&&(ze.destroy(bn),bn.each(function(Vi,Jn){ii.options.panes.splice(ii.wrapper.children(".k-pane").index(Jn),1),Xe(Jn).remove()}),ii._removeSplitBars(),ii.options.panes.length&&ii.resize(!0)),ii},size:Ci("size",!0),min:Ci("min"),max:Ci("max")}),Wn=(St.plugin(xi),{sizingProperty:"height",sizingDomProperty:"offsetHeight",alternateSizingProperty:"width",positioningProperty:"top",mousePositioningProperty:"pageY"}),Vt={sizingProperty:"width",sizingDomProperty:"offsetWidth",alternateSizingProperty:"height",positioningProperty:"left",mousePositioningProperty:"pageX"};function qt(bn){var ii=this,Vi=bn.orientation;ii.owner=bn,ii._element=bn.element,ii.orientation=Vi,Dt(ii,Vi===cn?Vt:Wn),ii._resizable=new ze.ui.Resizable(bn.element,{orientation:Vi,handle:".k-splitbar-draggable-"+Vi+"[data-marker="+bn._marker+"]",hint:ii._createHint.bind(ii),start:ii._start.bind(ii),max:ii._max.bind(ii),min:ii._min.bind(ii),invalidClass:"k-restricted-size-"+Vi,resizeend:ii._stop.bind(ii)})}return qt.prototype={press:function(bn){this._resizable.press(bn)},move:function(bn,ii){this.pressed||(this.press(ii),this.pressed=!0),this._resizable.target||this._resizable.press(ii),this._resizable.move(bn)},end:function(){this._resizable.end(),this.pressed=!1},destroy:function(){this._resizable.destroy(),this._resizable=this._element=this.owner=null},isResizing:function(){return this._resizable.resizing},_createHint:function(bn){return Xe("<div class='k-ghost-splitbar k-ghost-splitbar-"+this.orientation+"' />").css(this.alternateSizingProperty,bn[this.alternateSizingProperty]())},_start:function(bn){var ii=this,Vi=Xe(bn.currentTarget),Jn=Vi.prev(),zt=Vi.next(),mn=Jn.data(an),Qn=zt.data(an),ci=parseInt(Jn[0].style[ii.positioningProperty],10),Oi=parseInt(zt[0].style[ii.positioningProperty],10)+zt[0][ii.sizingDomProperty]-Vi[0][ii.sizingDomProperty],Ai=parseInt(ii._element.css(ii.sizingProperty),10),Pn=function(Me){var pe=parseInt(Me,10);return(Kt(Me)?pe:Ai*pe/100)||0},qn=Pn(mn.min),Ni=Pn(mn.max)||Oi-ci,Ue=Pn(Qn.min),Ye=Pn(Qn.max)||Oi-ci;ii.previousPane=Jn,ii.nextPane=zt,ii._maxPosition=Math.min(Oi-Ue,ci+Ni),ii._minPosition=Math.max(ci+qn,Oi-Ye)},_max:function(){return this._maxPosition},_min:function(){return this._minPosition},_stop:function(bn){var ii=this,Vi=Xe(bn.currentTarget),Jn=ii.owner;if(Jn._panes().children(".k-splitter-overlay").remove(),bn.keyCode!==ze.keys.ESC){var zt=bn.position,mn=Vi.prev(),Qn=Vi.next(),ci=mn.data(an),Oi=Qn.data(an),Ai=zt-parseInt(mn[0].style[ii.positioningProperty],10),Pn=parseInt(Qn[0].style[ii.positioningProperty],10)+Qn[0][ii.sizingDomProperty]-zt-Vi[0][ii.sizingDomProperty],qn=ii._element.children(Ge).filter(function(){return On(Xe(this).data(an).size)}).length;(!On(ci.size)||qn>1)&&(On(ci.size)&&qn--,ci.size=Ai+"px"),(!On(Oi.size)||qn>1)&&(Oi.size=Pn+"px"),Jn.resize(!0)}return!1}},window.kendo}.apply(Ur={},ur=[H]))&&(yr=Ur),void 0===(ss=function(){var Xe=window.kendo.jQuery,ze=window.kendo,St=ze.ui.Widget,it=ze.ui.Popup,Dt=ze.isFunction,Hn=Xe.isPlainObject,Ui=Xe.extend,Co=Xe(document),Sn=ze.isLocalUrl,Vn="_tb_active",Dn="aria-describedby",en="contentLoad",cn="requestStart",Ht="k-content-frame",Nt=ze.template("<iframe frameborder='0' class='"+Ht+"' src='#= content.url #'>This page requires frames in order to show content</iframe>"),an=".kendoTooltip",$e={bottom:{origin:"bottom center",position:"top center"},top:{origin:"top center",position:"bottom center"},left:{origin:"center left",position:"center right",collision:"fit flip"},right:{origin:"center right",position:"center left",collision:"fit flip"},center:{position:"center center",origin:"center center"}},Je={top:"bottom",bottom:"top",left:"right",right:"left",center:"center"},Ve={bottom:"n",top:"s",left:"e",right:"w",center:"n"},Ge={horizontal:{offset:"top",size:"outerHeight"},vertical:{offset:"left",size:"outerWidth"}};function At(Ae){for(;Ae.length&&!Rt(Ae);)Ae=Ae.parent()}function Rt(Ae){var He=Ae.data(ze.ns+"title");if(He)return Ae.attr("title",He),Ae.removeData(ze.ns+"title"),!0}function Pt(Ae){var He=Ae.attr("title");if(He)return Ae.data(ze.ns+"title",He),Ae.attr("title",""),!0}function $t(Ae){for(;Ae.length&&!Ae.is("body")&&!Pt(Ae);)Ae=Ae.parent()}var Xn=St.extend({init:function(Ae,He){var On,Kt=this;St.fn.init.call(Kt,Ae,He),On=Kt.options.position.match(/left|right/)?"horizontal":"vertical",Kt.dimensions=Ge[On],ze.support.touch&&this._isShownOnMouseEnter()&&Kt.element.on(ze.support.mousedown+an,Kt.options.filter,Kt._showOn.bind(Kt)),Kt.element.on(Kt.options.showOn+an,Kt.options.filter,Kt._showOn.bind(Kt))},options:{name:"TooltipBase",filter:"",offset:0,showAfter:100,hideAfter:100,callout:!0,position:"bottom",showOn:"mouseenter",animation:{open:{effects:"fade:in",duration:0},close:{duration:40,hide:!0}}},destroy:function(){var Ae=this.popup;Ae&&(Ae.element.off(an),Ae.destroy()),clearTimeout(this.timeout),St.fn.destroy.call(this)},hide:function(){this.popup&&this.popup.close()},show:function(Ae){this._saveTitle(Ae=Ae||this.element),this._show(Ae)},target:function(){return this.popup?this.popup.options.anchor:null},_showOn:function(Ae){var He=this,Kt=Xe(Ae.currentTarget);He._isShownOnClick()&&!He._isShownOnMouseEnter()?He._show(Kt):He._isShownOnFocus()?(He._saveTitle(Kt),He._show(Kt)):(clearTimeout(He.timeout),He.timeout=setTimeout(function(){He._show(Kt)},He.options.showAfter))},_isShownOnFocus:function(){return this.options.showOn&&this.options.showOn.match(/focus/)},_isShownOnMouseEnter:function(){return this.options.showOn&&this.options.showOn.match(/mouseenter/)},_isShownOnClick:function(){return this.options.showOn&&this.options.showOn.match(/click/)},_positionCallout:function(){var Ae=this,He=Ae.options.position,Kt=Ae.dimensions,On=Kt.offset,Fi=Ae.popup,Ci=Fi.options.anchor,xi=Xe(Ci).offset(),Wn=Xe(Fi.element).offset(),Vt=Ve[Fi.flipped?Je[He]:He],qt=xi[On]-Wn[On]+Xe(Ci)[Kt.size]()/2;Ae._offset(He,Ae.options.offset),Ae.arrow.removeClass("k-callout-n k-callout-s k-callout-w k-callout-e").addClass("k-callout-"+Vt).css(On,qt)},_offset:function(Ae,He,Kt){var Fi="top"==Ae||"left"==Ae,Ci=this.popup.flipped,xi=Fi&&Ci||!Fi&&!Ci?1:-1,Wn=Fi?"margin-"+Ae:"margin-"+Je[Ae],Vt=(Kt||ze._outerWidth(this.arrow))/2+He;this.popup.wrapper.css(Wn,Vt*xi+"px")},_addDescribedBy:function(){var He=this.popup.options.anchor,Kt=He[0].id||this.element[0].id||ze.guid(),On=[];He.attr(Dn)&&On.push(He.attr(Dn)),Kt&&(On.push(Kt+Vn),He.attr(Dn,On.join(" ")),this.popup.element.attr("id",Kt+Vn))},_removeDescribedBy:function(Ae){var On,Fi,Ci,He=this.popup.element.attr("id"),Kt=Ae.attr(Dn);Kt&&((On=Kt.split(" "))&&On.length>0&&(Fi=On.filter(function(xi){return xi!==He})),Fi&&Fi.length>0?(Ci=Fi.join(" "),Ae.attr(Dn,Ci)):Ae.removeAttr(Dn))},_openPopup:function(){this.popup&&(this.popup._hovered=!0,this.popup.open())}}),Nn=(ze.ui.plugin(Xn),Xn.extend({init:function(Ae,He){var On,Kt=this;Xn.fn.init.call(Kt,Ae,He),On=Kt.options.position.match(/left|right/)?"horizontal":"vertical",Kt.dimensions=Ge[On],Kt._documentKeyDownHandler=Kt._documentKeyDown.bind(Kt),(this._isShownOnMouseEnter()||this._isShownOnClick())&&Kt.element.on("mouseenter"+an,Kt.options.filter,Kt._mouseenter.bind(Kt)),this.options.autoHide&&this._isShownOnMouseEnter()&&Kt.element.on("mouseleave"+an,Kt.options.filter,Kt._mouseleave.bind(Kt)),this.options.autoHide&&this._isShownOnFocus()&&Kt.element.on("blur"+an,Kt.options.filter,Kt._blur.bind(Kt)),ze.support.touch&&Kt.element.on(ze.support.mousedown+an,Kt.options.filter,Kt._mouseenter.bind(Kt))},options:{name:"Tooltip",filter:"",content:function(Ae){return Ae.target.data(ze.ns+"title")},showAfter:100,callout:!0,offset:0,position:"bottom",showOn:"mouseenter",autoHide:!0,width:null,height:null,animation:{open:{effects:"fade:in",duration:0},close:{duration:40,hide:!0}}},events:["show","hide",en,"error",cn],_mouseenter:function(Ae){$t(Xe(Ae.currentTarget))},_saveTitle:function(Ae){$t(Ae)},_appendContent:function(Ae){var Ci,He=this,Kt=He.options.content,On=He.content,Fi=He.options.iframe;Hn(Kt)&&Kt.url?("iframe"in He.options||(Fi=!Sn(Kt.url)),He.trigger(cn,{options:Kt,target:Ae}),Fi?(On.hide(),(Ci=On.find("."+Ht)[0])?Ci.src=Kt.url||Ci.src:On.html(Nt({content:Kt})),On.find("."+Ht).off("load"+an).on("load"+an,function(){He.trigger(en),On.show()})):(On.empty(),ze.ui.progress(On,!0),He._ajaxRequest(Kt))):Kt&&Dt(Kt)?(Kt=Kt({sender:this,target:Ae}),On.html(Kt||"")):On.html(Kt),He.angular("compile",function(){return{elements:On}})},_ajaxRequest:function(Ae){var He=this;ra.ajax(Ui({type:"GET",dataType:"html",cache:!1,error:function(On,Fi){ze.ui.progress(He.content,!1),He.trigger("error",{status:Fi,xhr:On})},success:function(On){ze.ui.progress(He.content,!1),He.content.html(On),ze._outerHeight(He.popup.element)>ze._outerHeight(He.popup.wrapper)&&(He.popup.wrapper.css("height",ze._outerHeight(He.popup.element)+"px"),He.popup.position(),He._positionCallout()),He.trigger(en)}.bind(He)},Ae))},_documentKeyDown:function(Ae){Ae.keyCode===ze.keys.ESC&&this.hide()},refresh:function(){var He=this.popup;He&&He.options.anchor&&this._appendContent(He.options.anchor)},_show:function(Ae){var He=this,Kt=He.target();He.popup||He._initPopup(),Kt&&Kt[0]!=Ae[0]&&(He.popup.close(),He.popup.element.kendoStop(!0,!0)),(!Kt||Kt[0]!=Ae[0])&&(He._appendContent(Ae),He.popup.options.anchor=Ae),He.popup.one("deactivate",function(){At(Ae),He._removeDescribedBy(Ae),this.element.removeAttr("id").attr("aria-hidden",!0),Co.off("keydown"+an,He._documentKeyDownHandler)}),He._openPopup()},_initPopup:function(){var Ae=this,He=Ae.options,Kt=Xe(ze.template('<div role="tooltip" class="k-widget k-tooltip#if (!autoHide) {# k-tooltip-closable#}#"><div class="k-tooltip-content"></div>#if (!autoHide) {# <div class="k-tooltip-button"><a href="\\#" class="k-icon k-i-close" title="Close"></a></div> #}##if (callout){ #<div class="k-callout k-callout-#=dir#"></div>#}#</div>')({callout:He.callout&&"center"!==He.position,dir:Ve[He.position],autoHide:He.autoHide}));Ae.popup=new it(Kt,Ui({autosize:!0,activate:function(){Ae._addDescribedBy(),He.callout?Ae._positionCallout():Ae._offset(Ae.options.position,Ae.options.offset),this.element.removeAttr("aria-hidden"),Co.on("keydown"+an,Ae._documentKeyDownHandler),Ae.trigger("show"),Ae.popup._hovered=void 0},close:function(){Ae.trigger("hide")},copyAnchorStyles:!1,animation:He.animation},$e[He.position])),Kt.css({width:He.width,height:He.height}),Ae.content=Kt.find(".k-tooltip-content"),Ae.arrow=Kt.find(".k-callout"),He.autoHide&&this._isShownOnMouseEnter()?Kt.on("mouseleave"+an,Ae._mouseleave.bind(Ae)):Kt.on("click"+an,".k-tooltip-button",Ae._closeButtonClick.bind(Ae))},_closeButtonClick:function(Ae){Ae.preventDefault(),this.hide()},_mouseleave:function(Ae){var He=this;clearTimeout(He.timeout),He.timeout=setTimeout(function(){He._closePopup(Ae.currentTarget)},He.options.hideAfter)},_blur:function(Ae){this._closePopup(Ae.currentTarget)},_closePopup:function(Ae){this.popup&&!this.popup._hovered?this.popup.close():At(Xe(Ae))},destroy:function(){this.element.off(an),Co.off("keydown"+an,this._documentKeyDownHandler),Xn.fn.destroy.call(this)}}));return ze.ui.plugin(Nn),window.kendo}.apply(gs={},ur=[e,A,x]))&&(ss=gs),void 0===(Pr=function(){var Xe=window.kendo.jQuery,ze=window.kendo,St=ze.ui,it=Xe.extend,Dt="visibility",Hn="k-hover";return St.HierarchicalDragAndDrop=ze.Class.extend({init:function(Sn,Vn){this.element=Sn,this.hovered=Sn,this.options=it({dragstart:Xe.noop,drag:Xe.noop,drop:Xe.noop,dragend:Xe.noop},Vn),this._draggable=new St.Draggable(Sn,{ignore:"input,a:not(.k-in),textarea,.k-multiselect-wrap,select,button,a.k-button>.k-icon,button.k-button>.k-icon,span.k-icon.k-i-arrow-60-right,span.k-icon.k-i-arrow-45-down-right",filter:Vn.filter,autoScroll:Vn.autoScroll,cursorOffset:{left:10,top:ze.support.mobileOS?-40/ze.support.zoomLevel():10},hint:this._hint.bind(this),dragstart:this.dragstart.bind(this),dragcancel:this.dragcancel.bind(this),drag:this.drag.bind(this),dragend:this.dragend.bind(this),$angular:Vn.$angular,holdToDrag:Vn.holdToDrag})},_hint:function(Sn){return"<div class='k-drag-clue'><span class='k-icon k-drag-status'></span>"+this.options.hintText(Sn)+"</div>"},_removeTouchHover:function(){ze.support.touch&&this.hovered&&(this.hovered.find("."+Hn).removeClass(Hn),this.hovered=!1)},_hintStatus:function(Sn){var Vn=this._draggable.hint.find(".k-drag-status")[0];if(!Sn)return ze.trim(Vn.className.replace(/(p|k)-(icon|drag-status)/g,""));Vn.className="k-icon k-drag-status "+Sn},dragstart:function(Sn){this.source=Sn.currentTarget.closest(this.options.itemSelector),this.options.dragstart(this.source)&&Sn.preventDefault(),this.dropHint=this.options.reorderable?Xe("<div class='k-drop-hint k-drop-hint-h'><div class='k-drop-hint-start'></div><div class='k-drop-hint-line'></div></div>").css(Dt,"hidden").appendTo(this.element):Xe()},drag:function(Sn){var Ot,en,cn,Ht,ft,Nt,an,$e,Je,Ve,Ge,Vn=this.options,Dn=this.source,kn=this.dropTarget=Xe(ze.eventTarget(Sn)),ui=kn.closest(Vn.allowedContainers);ui.length?Dn[0]==kn[0]||Vn.contains(Dn[0],kn[0])?Ge="k-i-cancel":(Ge="k-i-insert-middle",(Ot=(Je=Vn.itemFromTarget(kn)).item).length?(this._removeTouchHover(),en=ze._outerHeight(Ot),Ht=Je.content,Vn.reorderable?(ft=en/(Ht.length>0?4:2),cn=ze.getOffset(Ot).top,Nt=Sn.y.location<cn+ft,an=cn+en-ft<Sn.y.location,$e=Ht.length&&!Nt&&!an):($e=!0,Nt=!1,an=!1),this.hovered=!!$e&&ui,this.dropHint.css(Dt,$e?"hidden":"visible"),this._lastHover&&this._lastHover[0]!=Ht[0]&&this._lastHover.removeClass(Hn),this._lastHover=Ht.toggleClass(Hn,$e),$e?Ge="k-i-plus":((Ve=Ot.position()).top+=Nt?0:en,this.dropHint.css(Ve)[Nt?"prependTo":"appendTo"](Vn.dropHintContainer(Ot)),Nt&&Je.first&&(Ge="k-i-insert-up"),an&&Je.last&&(Ge="k-i-insert-down"))):kn[0]!=this.dropHint[0]&&(this._lastHover&&this._lastHover.removeClass(Hn),Ge=Xe.contains(this.element[0],ui[0])?"k-i-cancel":"k-i-plus")):(Ge="k-i-cancel",this._removeTouchHover()),this.options.drag({originalEvent:Sn.originalEvent,source:Dn,target:kn,pageY:Sn.y.location,pageX:Sn.x.location,status:Ge.substring(2),setStatus:function(Be){Ge=Be}}),0!==Ge.indexOf("k-i-insert")&&this.dropHint.css(Dt,"hidden"),this._hintStatus(Ge)},dragcancel:function(){this.dropHint.remove()},dragend:function(Sn){var kn,en,cn,Vn="over",Dn=this.source,ui=this.dropHint,Ot=this.dropTarget;"visible"==ui.css(Dt)?(Vn=this.options.dropPositionFrom(ui),kn=ui.closest(this.options.itemSelector)):Ot&&((kn=Ot.closest(this.options.itemSelector)).length||(kn=Ot.closest(this.options.allowedContainers))),en={originalEvent:Sn.originalEvent,source:Dn[0],destination:kn[0],valid:"k-i-cancel"!=this._hintStatus(),setValid:function(Ht){this.valid=Ht},dropTarget:Ot[0],position:Vn},cn=this.options.drop(en),ui.remove(),this._removeTouchHover(),this._lastHover&&this._lastHover.removeClass(Hn),en.valid&&!cn?(this._draggable.dropped=!0,this.options.dragend({originalEvent:Sn.originalEvent,source:Dn,destination:kn,position:Vn})):this._draggable.dropped=en.valid},destroy:function(){this._lastHover=this.hovered=null,this._draggable.destroy()}}),window.kendo}.apply(ys={},ur=[d,g]))&&(Pr=ys),void 0===(da=function(){var ii,Vi,Jn,zt,mn,Xe=window.kendo.jQuery,ze=window.kendo,St=ze.ui,Dt=Xe.extend,Hn=ze.template,Ui=Array.isArray,Co=St.Widget,Sn=ze.data.HierarchicalDataSource,Vn=ze.keys,Dn=".kendoTreeView",kn=".kendoTreeViewTemp",ui="select",en="navigate",Ht="change",Nt="checked",an="indeterminate",Je="dragstart",Be="dragend",At="dataBound",Rt="itemsLoaded",Pt="loadCompleted",$t="requestEnd",Xn="click",Ae="undefined",He="k-hover",Kt="k-treeview",Fi=".k-item",Ci="string",xi="aria-checked",Wn="aria-selected",Vt="aria-disabled",qt="aria-expanded",bn="k-disabled",Qn={text:"dataTextField",url:"dataUrlField",spriteCssClass:"dataSpriteCssClassField",imageUrl:"dataImageUrlField"},Oi=function(Me){return"object"==typeof HTMLElement?Me instanceof HTMLElement:Me&&"object"==typeof Me&&1===Me.nodeType&&typeof Me.nodeName===Ci};function Ai(Me){return function(pe){var lt=pe.children(".k-animation-container");return lt.length||(lt=pe),lt.children(Me)}}function Pn(Me){return ze.template(Me,{useWithBlock:!1})}function qn(Me){return Me.find(".k-checkbox-wrapper:first input[type=checkbox]")}function Ni(Me){return function(pe,lt){var on,yt=(lt=lt.closest(Fi)).parent();return yt.parent().is("li")&&(on=yt.parent()),this._dataSourceMove(pe,yt,on,function(zi,Kn){var ho=this.dataItem(lt),po=ho&&lt.parent().children().length!==ho.parent().length?ho.parent().indexOf(ho):lt.index();return this._insert(zi.data(),Kn,po+Me)})}}function Ye(Me){var pe=Me.children("div"),lt=Me.children("ul"),yt=pe.find(".k-treeview-toggle > .k-icon"),on=Me.children("input[type=checkbox]"),zi=pe.children(".k-in");Me.hasClass("k-treeview")||(pe.length||(pe=Xe("<div />").prependTo(Me)),!yt.length&&lt.length?yt=Xe("<span class='k-treeview-toggle'><span class='k-icon' /></span>").prependTo(pe):(!lt.length||!lt.children().length)&&(yt.parent().remove(),lt.remove()),on.length&&Xe("<span class='k-checkbox-wrapper' />").appendTo(pe).append(on),zi.length||((zi=Me.children("a").eq(0).addClass("k-in k-link")).length||(zi=Xe("<span class='k-treeview-leaf k-in' />")),zi.appendTo(pe),pe.length&&function Ue(Me,pe){for(var lt;Me&&"ul"!=Me.nodeName.toLowerCase();)lt=Me,Me=Me.nextSibling,3==lt.nodeType&&(lt.nodeValue=ze.trim(lt.nodeValue)),mn.test(lt.className)?pe.insertBefore(lt,pe.firstChild):pe.appendChild(lt)}(pe[0].nextSibling,zi[0])))}return Vi=Ai(".k-group"),Jn=Ai(".k-group,.k-content"),zt=function(Me){return Me.children("div").find(".k-treeview-toggle > .k-icon")},mn=/k-sprite/,ii=ze.ui.DataBoundWidget.extend({init:function(Me,pe){var yt,zi,lt=this,on=pe&&!!pe.dataSource;Ui(pe)&&(pe={dataSource:pe}),pe&&typeof pe.loadOnDemand==Ae&&Ui(pe.dataSource)&&(pe.loadOnDemand=!1),Co.prototype.init.call(lt,Me,pe),Me=lt.element,pe=lt.options,lt._dataSourceUids={},zi=Me.is("ul")&&Me||Me.hasClass(Kt)&&Me.children("ul"),(yt=!on&&zi.length)&&(pe.dataSource.list=zi),lt._animation(),lt._accessors(),lt._templates(),Me.hasClass(Kt)?(lt.wrapper=Me,lt.root=Me.children("ul").eq(0)):(lt._wrapper(),zi&&(lt.root=Me,lt._group(lt.wrapper))),lt._applyCssClasses(),lt._tabindex(),lt.wrapper.attr("role","tree"),lt.wrapper.find(">ul").attr("role","none"),lt._dataSource(yt),lt._attachEvents(),lt._dragging(),yt?lt._syncHtmlAndDataSource():pe.autoBind&&(lt._progress(!0),lt.dataSource.fetch(this._attemptLoadCompleted.bind(this))),pe.checkboxes&&pe.checkboxes.checkChildren&&lt.updateIndeterminate(),lt._ariaId=lt.element[0].id?ze.format("{0}_tv_active",lt.element[0].id):ze.guid()+"_tv_active",ze.notify(lt)},_attachEvents:function(){var Me=this,pe=".k-in:not(.k-selected,.k-disabled)",lt="mouseenter";Me._clickHandler=Me._click.bind(Me),Me.wrapper.on(lt+Dn,".k-in.k-selected",function(yt){yt.preventDefault()}).on(lt+Dn,pe,function(){Xe(this).addClass(He)}).on("mouseleave"+Dn,pe,function(){Xe(this).removeClass(He)}).on(Xn+Dn,pe,Me._clickHandler).on("dblclick"+Dn,".k-in:not(.k-disabled)",Me._toggleButtonClick.bind(Me)).on(Xn+Dn,".k-i-expand,.k-i-collapse",Me._toggleButtonClick.bind(Me)).on("keydown"+Dn,Me,Me._keydown.bind(Me)).on("keypress"+Dn,Me._keypress.bind(Me)).on("focus"+Dn,Me._focus.bind(Me)).on("blur"+Dn,Me._blur.bind(Me)).on("mousedown"+Dn,".k-in,.k-checkbox-wrapper :checkbox,.k-i-expand,.k-i-collapse",Me._mousedown.bind(Me)).on("change"+Dn,".k-checkbox-wrapper :checkbox",Me._checkboxChange.bind(Me)).on("click"+Dn,".k-request-retry",Me._retryRequest.bind(Me)).on("click"+Dn,".k-link.k-disabled",function(yt){yt.preventDefault()}).on("click"+Dn,function(yt){var on=Xe(yt.target);!on.is(":kendoFocusable")&&!on.find("input,select,textarea,button,object").is(":kendoFocusable")&&Me.focus()})},_syncHtmlAndDataSource:function(Me,pe){Me=Me||this.root;var ho,po,$i,ro,wo,lt=(pe=pe||this.dataSource).view(),yt=ze.attr("uid"),on=ze.attr("expanded"),zi=this.options.checkboxes,Kn=Me.children("li");for(ho=0;ho<Kn.length;ho++)ro=($i=lt[ho]).uid,(po=Kn.eq(ho)).attr("role","treeitem").attr(yt,ro).attr(Wn,po.hasClass("k-selected")),$i.expanded="true"===po.attr(on),zi&&(wo=qn(po),$i.checked=wo.prop(Nt),wo.attr("id","_"+ro),wo.next(".k-checkbox-label").attr("for","_"+ro)),this._syncHtmlAndDataSource(po.children("ul"),$i.children)},_animation:function(){var Me=this.options,pe=Me.animation,lt=pe.collapse&&"effects"in pe.collapse,yt=Dt({},pe.expand,pe.collapse);lt||(yt=Dt(yt,{reverse:!0})),!1===pe&&(pe={expand:{effects:{}},collapse:{hide:!0,effects:{}}}),pe.collapse=Dt(yt,{hide:!0}),Me.animation=pe},_dragging:function(){var Me=this.options.dragAndDrop,pe=this.dragging;if(Me&&!pe){var lt=this;this.dragging=new St.HierarchicalDragAndDrop(this.element,{reorderable:!0,$angular:this.options.$angular,autoScroll:this.options.autoScroll,filter:"div:not(.k-disabled) .k-in",allowedContainers:".k-treeview",itemSelector:".k-treeview .k-item",hintText:this._hintText.bind(this),contains:function(yt,on){return Xe.contains(yt,on)},dropHintContainer:function(yt){return yt},itemFromTarget:function(yt){var on=yt.closest(".k-treeview-top,.k-treeview-mid,.k-treeview-bot");return{item:on,content:yt.closest(".k-in"),first:on.hasClass("k-treeview-top"),last:on.hasClass("k-treeview-bot")}},dropPositionFrom:function(yt){return yt.prevAll(".k-in").length>0?"after":"before"},dragstart:function(yt){return lt.trigger(Je,{sourceNode:yt[0]})},drag:function(yt){lt.trigger("drag",{originalEvent:yt.originalEvent,sourceNode:yt.source[0],dropTarget:yt.target[0],pageY:yt.pageY,pageX:yt.pageX,statusClass:yt.status,setStatusClass:yt.setStatus})},drop:function(yt){var zi=Xe(yt.dropTarget).closest("a");return zi&&zi.attr("href")&&lt._tempPreventNavigation(zi),lt.trigger("drop",{originalEvent:yt.originalEvent,sourceNode:yt.source,destinationNode:yt.destination,valid:yt.valid,setValid:function(Kn){this.valid=Kn,yt.setValid(Kn)},dropTarget:yt.dropTarget,dropPosition:yt.position})},dragend:function(yt){var on=yt.source,zi=yt.destination,Kn=yt.position;function ho(po){lt.options.checkboxes&&lt.options.checkboxes.checkChildren&&lt.updateIndeterminate(),lt.current(po),lt.element.focus(),lt.trigger(Be,{originalEvent:yt.originalEvent,sourceNode:po&&po[0],destinationNode:zi[0],dropPosition:Kn})}"over"==Kn?lt.append(on,zi,ho):("before"==Kn?on=lt.insertBefore(on,zi):"after"==Kn&&(on=lt.insertAfter(on,zi)),ho(on))}})}else!Me&&pe&&(pe.destroy(),this.dragging=null)},_tempPreventNavigation:function(Me){Me.on(Xn+Dn+kn,function(pe){pe.preventDefault(),Me.off(Xn+Dn+kn)})},_hintText:function(Me){return this.templates.dragClue({item:this.dataItem(Me),treeview:this.options})},_templates:function(){var Me=this,pe=Me.options,lt=Me._fieldAccessor.bind(Me);pe.template&&typeof pe.template==Ci?pe.template=Hn(pe.template):pe.template||(pe.template=Pn("# var text = "+lt("text")+"(data.item); ## if (typeof data.item.encoded != 'undefined' && data.item.encoded === false) {#<span class='k-treeview-leaf-text'>#= text #</span># } else { #<span class='k-treeview-leaf-text'>#: text #</span># } #")),Me._checkboxes(),Me.templates={setAttributes:function(yt){var on="",zi=yt.attr||{};for(var Kn in zi)zi.hasOwnProperty(Kn)&&"class"!==Kn&&(on+=Kn+'="'+zi[Kn]+'" ');return on},wrapperCssClass:function(yt,on){var zi="k-item k-treeview-item",Kn=on.index;return yt.firstLevel&&0===Kn&&(zi+=" k-first"),Kn==yt.length-1&&(zi+=" k-last"),zi},cssClass:function(yt,on){var zi="",Kn=on.index,ho=yt.length-1;return yt.firstLevel&&0===Kn&&(zi+="k-treeview-top "),zi+(0===Kn&&Kn!=ho?"k-treeview-top":Kn==ho?"k-treeview-bot":"k-treeview-mid")},textClass:function(yt,on){var zi="k-treeview-leaf k-in";return on&&(zi+=" k-link"),!1===yt.enabled&&(zi+=" k-disabled"),!0===yt.selected&&(zi+=" k-selected"),zi},toggleButtonClass:function(yt){return"k-icon"+(!0!==yt.expanded?" k-i-expand":" k-i-collapse")},groupAttributes:function(yt){var on="";return yt.firstLevel||(on="role='group'"),on+(!0!==yt.expanded?" style='display:none'":"")},groupCssClass:function(yt){var on="k-group k-treeview-group";return yt.firstLevel&&(on+=" k-treeview-lines"),on},dragClue:Pn("#= data.treeview.template(data) #"),group:Pn("<ul class='#= data.r.groupCssClass(data.group) #'#= data.r.groupAttributes(data.group) #>#= data.renderItems(data) #</ul>"),itemContent:Pn("# var imageUrl = "+lt("imageUrl")+"(data.item); ## var spriteCssClass = "+lt("spriteCssClass")+"(data.item); ## if (imageUrl) { #<img class='k-image' alt='' src='#= imageUrl #'># } ## if (spriteCssClass) { #<span class='k-sprite #= spriteCssClass #'></span># } ##= data.treeview.template(data) #"),itemElement:Pn("# var item = data.item, r = data.r; ## var url = "+lt("url")+"(item); #<div class='#= r.cssClass(data.group, item) #'># if (item.hasChildren) { #<span class='k-treeview-toggle'><span class='#= r.toggleButtonClass(item) #'></span></span># } ## if (data.treeview.checkboxes) { #<span class='k-checkbox-wrapper' role='presentation'>#= data.treeview.checkboxes.template(data) #</span># } ## var tag = url ? 'a' : 'span'; ## var textAttr = url ? ' href=\\'' + url + '\\'' : ''; #<#=tag# class='#= r.textClass(item, !!url) #'#= textAttr #>#= r.itemContent(data) #</#=tag#></div>"),item:Pn("# var item = data.item, r = data.r; #<li role='treeitem' class='#= r.wrapperCssClass(data.group, item) #'"+ze.attr("uid")+'=\'#= item.uid #\' #= r.setAttributes(item.toJSON ? item.toJSON() : item) # # if (data.treeview.checkboxes) { #aria-checked=\'#= item.checked ? "true" : "false" #\' # } #aria-selected=\'#= item.selected ? "true" : "false" #\' #=item.enabled === false ? "aria-disabled=\'true\'" : \'\'#aria-expanded=\'#= item.expanded ? "true" : "false" #\' data-expanded=\'#= item.expanded ? "true" : "false" #\' >#= r.itemElement(data) #</li>'),loading:Pn("<div class='k-icon k-i-loading'></div> #: data.messages.loading #"),retry:Pn("#: data.messages.requestFailed # <button class='k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-request-retry'><span class='k-button-text'>#: data.messages.retry #</span></button>")}},items:function(){return this.element.find(".k-item > div:first-child")},setDataSource:function(Me){var pe=this.options;pe.dataSource=Me,this._dataSourceUids={},this._dataSource(),pe.checkboxes&&pe.checkboxes.checkChildren&&this.dataSource.one("change",this.updateIndeterminate.bind(this,null)),this.options.autoBind&&this.dataSource.fetch(this._attemptLoadCompleted.bind(this))},_bindDataSource:function(){var Me=this;Me._refreshHandler=Me.refresh.bind(Me),Me._errorHandler=Me._error.bind(Me),Me._loadCompletedHandler=Me._loadCompleted.bind(Me),Me._requestEndHandler=Me._dsRequestEnd.bind(Me),Me._loadedNodes=[],Me.dataSource.bind(Ht,Me._refreshHandler),Me.dataSource.bind("error",Me._errorHandler),Me.dataSource.bind(Rt,Me._loadCompletedHandler),Me.dataSource.bind($t,Me._requestEndHandler)},_dsRequestEnd:function(Me){var pe=this;setTimeout(function(){"read"===Me.type&&!pe._loadCompletedFired&&pe._attemptLoadCompleted()})},_loadCompleted:function(Me){var pe=this;pe._loadedNodes=pe._loadedNodes.concat(Me.nodes),!pe.dataSource.loading()&&!1===pe.options.loadOnDemand&&(pe.trigger(Pt,{nodes:pe._loadedNodes}),pe._loadedNodes=[])},_attemptLoadCompleted:function(){var lt,yt,pe=this.dataSource.view();if(!1===this.options.loadOnDemand){for(yt=0;yt<pe.length;yt++)if((lt=pe[yt]).hasChildren&&(!lt.children||!lt.children.data()||0===lt.children.data().length))return;this._loadCompletedFired=!0,this.trigger(Pt,{nodes:[]})}},_unbindDataSource:function(){var Me=this.dataSource;Me&&(Me.unbind(Ht,this._refreshHandler),Me.unbind("error",this._errorHandler),Me.unbind(Rt,this._loadCompletedHandler),Me.unbind($t,this._requestEndHandler))},_dataSource:function(Me){var yt=this.options.dataSource;yt=Ui(yt)?{data:yt}:yt,this._unbindDataSource(),yt.fields||(yt.fields=[{field:"text"},{field:"url"},{field:"spriteCssClass"},{field:"imageUrl"}]),this.dataSource=yt=Sn.create(yt),Me&&(yt.fetch(),function on(zi){for(var Kn=0;Kn<zi.length;Kn++)zi[Kn]._initChildren(),zi[Kn].children.fetch(),on(zi[Kn].children.view())}(yt.view())),this._bindDataSource()},events:[Je,"drag","drop",Be,At,Pt,"expand","collapse",ui,Ht,en,"check","kendoKeydown"],options:{name:"TreeView",dataSource:{},animation:{expand:{effects:"expand:vertical",duration:200},collapse:{duration:100}},messages:{loading:"Loading...",requestFailed:"Request failed.",retry:"Retry"},dragAndDrop:!1,checkboxes:!1,autoBind:!0,autoScroll:!1,loadOnDemand:!0,template:"",dataTextField:null,size:"medium"},_accessors:function(){var lt,yt,on,pe=this.options,zi=this.element;for(lt in Qn)yt=pe[Qn[lt]],on=zi.attr(ze.attr(lt+"-field")),!yt&&on&&(yt=on),yt||(yt=lt),Ui(yt)||(yt=[yt]),pe[Qn[lt]]=yt},_fieldAccessor:function(Me){var pe=this.options[Qn[Me]],lt=pe.length,yt="(function(item) {";return 0===lt?yt+="return item['"+Me+"'];":(yt+="var levels = ["+Xe.map(pe,function(on){return"function(d){ return "+ze.expr(on)+"}"}).join(",")+"];",yt+="return levels[Math.min(item.level(), "+lt+"-1)](item)"),yt+"})"},setOptions:function(Me){Co.fn.setOptions.call(this,Me),this._animation(),this._dragging(),this._templates()},_trigger:function(Me,pe){return this.trigger(Me,{node:pe.closest(Fi)[0]})},_setChecked:function(Me,pe){if(Me&&ze.isFunction(Me.view))for(var lt=0,yt=Me.view();lt<yt.length;lt++)!1!==yt[lt].enabled&&this._setCheckedValue(yt[lt],pe),yt[lt].children&&this._setChecked(yt[lt].children,pe)},_setCheckedValue:function(Me,pe){Me[Nt]=pe},_setIndeterminate:function(Me){var lt,yt,zi,pe=Vi(Me),on=!0;if(pe.length){if(!(yt=(lt=qn(pe.children())).length))return;if(yt>1){for(zi=1;zi<yt;zi++)if(lt[zi].checked!=lt[zi-1].checked||lt[zi].indeterminate||lt[zi-1].indeterminate){on=!1;break}}else on=!lt[0].indeterminate;return Me.attr(xi,on?lt[0].checked:"mixed"),qn(Me).data(an,!on).prop(an,!on).prop(Nt,on&&lt[0].checked)}},updateIndeterminate:function(Me){var lt,yt,on,pe=Vi(Me=Me||this.wrapper).children();if(pe.length){for(lt=0;lt<pe.length;lt++)this.updateIndeterminate(pe.eq(lt));if(Me.is(".k-treeview"))return;yt=this._setIndeterminate(Me),on=this.dataItem(Me),yt&&yt.prop(Nt)?on.checked=!0:on&&delete on.checked}},_bubbleIndeterminate:function(Me,pe){if(Me.length){pe||this.updateIndeterminate(Me);var yt,lt=this.parent(Me);lt.length&&(this._setIndeterminate(lt),yt=lt.children("div").find(".k-checkbox-wrapper input[type=checkbox]"),this._skip=!0,!1===yt.prop(an)?this.dataItem(lt).set(Nt,yt.prop(Nt)):this.dataItem(lt).set(Nt,!1),this._skip=!1,this._bubbleIndeterminate(lt,!0))}},_checkboxChange:function(Me){var lt=Xe(Me.target),yt=lt.prop(Nt),on=lt.closest(Fi),zi=this.dataItem(on);this._preventChange||(zi.checked!=yt&&(zi.set(Nt,yt),on.attr(xi,yt),this._trigger("check",on)),lt.is(":focus")&&(this._trigger(en,on),this.focus()))},_toggleButtonClick:function(Me){var pe=Xe(Me.currentTarget).closest(Fi);pe.is("[aria-disabled='true']")||this.toggle(pe)},_mousedown:function(Me){var pe=this,lt=Xe(Me.currentTarget),yt=Xe(Me.currentTarget).closest(Fi),on=ze.support.browser;yt.is("[aria-disabled='true']")||((on.msie||on.edge)&&lt.is(":checkbox")&&(lt.prop(an)?(pe._preventChange=!1,lt.prop(Nt,!lt.prop(Nt)),lt.trigger(Ht),lt.on(Xn+Dn,function(zi){zi.preventDefault()}),pe._preventChange=!0):(lt.off(Xn+Dn),pe._preventChange=!1)),pe._clickTarget=yt,pe.current(yt))},_focusable:function(Me){return Me&&Me.length&&Me.is(":visible")&&!Me.find(".k-in").first().hasClass(bn)},_focus:function(){var Me=this.select(),pe=this._clickTarget;ze.support.touch||(pe&&pe.length&&(Me=pe),this._focusable(Me)||(Me=this.current()),this._focusable(Me)||(Me=this._nextVisible(Xe())),this.current(Me))},focus:function(){var zi,Me=this.wrapper,pe=Me[0],lt=[],yt=[],on=document.documentElement;do{(pe=pe.parentNode).scrollHeight>pe.clientHeight&&(lt.push(pe),yt.push(pe.scrollTop))}while(pe!=on);for(ze.focusElement(Me),zi=0;zi<lt.length;zi++)lt[zi].scrollTop=yt[zi]},_blur:function(){this.current().find(".k-in").first().removeClass("k-focus")},_enabled:function(Me){return!Me.children("div").children(".k-in").hasClass(bn)},parent:function(Me){var yt,on,pe=/\bk-treeview\b(?!-)/,lt=/\bk-item\b/;typeof Me==Ci&&(Me=this.element.find(Me)),Oi(Me)||(Me=Me[0]),on=lt.test(Me.className);do{lt.test((Me=Me.parentNode).className)&&(on?yt=Me:on=!0)}while(!pe.test(Me.className)&&!yt);return Xe(yt)},_nextVisible:function(Me){var yt,pe=this,lt=pe._expanded(Me);return Me.length&&Me.is(":visible")?lt&&(yt=Vi(Me).children().first()).length||(yt=function on(zi){for(;zi.length&&!zi.next().length;)zi=pe.parent(zi);return zi.next().length?zi.next():zi}(Me)):yt=pe.root.children().eq(0),yt},_previousVisible:function(Me){var lt,yt;if(!Me.length||Me.prev().length)for(yt=Me.length?Me.prev():this.root.children().last();this._expanded(yt)&&(lt=Vi(yt).children().last()).length;)yt=lt;else yt=this.parent(Me)||Me;return yt},_keydown:function(Me){var yt,pe=this,lt=Me.keyCode,on=pe.current(),zi=pe._expanded(on),Kn=on.find(".k-checkbox-wrapper").first().find(":checkbox"),ho=ze.support.isRtl(pe.element);Me.target==Me.currentTarget&&(!ho&&lt==Vn.RIGHT||ho&&lt==Vn.LEFT?zi?yt=pe._nextVisible(on):on.find(".k-in").first().hasClass(bn)||pe.expand(on):!ho&&lt==Vn.LEFT||ho&&lt==Vn.RIGHT?zi&&!on.find(".k-in").first().hasClass(bn)?pe.collapse(on):(yt=pe.parent(on),pe._enabled(yt)||(yt=void 0)):lt==Vn.DOWN?yt=pe._nextVisible(on):lt==Vn.UP?yt=pe._previousVisible(on):lt==Vn.HOME?yt=pe._nextVisible(Xe()):lt==Vn.END?yt=pe._previousVisible(Xe()):lt!=Vn.ENTER||on.find(".k-in").first().hasClass(bn)?lt==Vn.SPACEBAR&&Kn.length&&(on.find(".k-in").first().hasClass(bn)||(Kn.prop(Nt,!Kn.prop(Nt)).data(an,!1).prop(an,!1),pe._checkboxChange({target:Kn})),yt=on):on.find(".k-in").first().hasClass("k-selected")||pe._trigger(ui,on)||pe.select(on),yt&&(Me.preventDefault(),on[0]!=yt[0]&&(pe._trigger(en,yt),pe.current(yt))))},_keypress:function(Me){var on,pe=this,yt=pe.current().get(0),zi=Me.key;1===zi.length&&(pe._match||(pe._match=""),pe._match+=zi,clearTimeout(pe._matchTimer),pe._matchTimer=setTimeout(function(){pe._match=""},300),(on=yt&&pe._matchNextByText(Array.prototype.indexOf.call(pe.element.find(".k-item"),yt),pe._match)).length||(on=pe._matchNextByText(-1,pe._match)),on.get(0)&&on.get(0)!==yt&&(pe._trigger(en,on),pe.current(on)))},_matchNextByText:function(Me,pe){return this.element.find(".k-in").filter(function(on,zi){return on>Me&&Xe(zi).is(":visible")&&0===Xe(zi).text().toLowerCase().indexOf(pe)}).eq(0).closest(Fi)},_click:function(Me){var lt=Xe(Me.currentTarget),yt=Jn(lt.closest(Fi)),on=lt.attr("href");(on?"#"==on||on.indexOf("#"+this.element.id+"-")>=0:yt.length&&!yt.children().length)&&Me.preventDefault(),!lt.hasClass(".k-selected")&&!this._trigger(ui,lt)&&this.select(lt)},_wrapper:function(){var lt,yt,pe=this.element;pe.is("ul")?(lt=pe.wrap("<div />").parent(),yt=pe):yt=(lt=pe).children("ul").eq(0),this.wrapper=lt.addClass("k-treeview"),this.root=yt},_getSelectedNode:function(){return this.element.find(".k-selected").closest(Fi)},_group:function(Me){var lt=Me.hasClass(Kt),yt={firstLevel:lt,expanded:lt||this._expanded(Me)},on=Me.children("ul");on.addClass(this.templates.groupCssClass(yt)).css("display",yt.expanded?"":"none"),lt||on.attr("role","group"),this._nodes(on,yt)},_nodes:function(Me,pe){var on,lt=this,yt=Me.children("li");pe=Dt({length:yt.length},pe),yt.each(function(zi,Kn){Kn=Xe(Kn),on={index:zi,expanded:lt._expanded(Kn)},Ye(Kn),lt._updateNodeClasses(Kn,pe,on),lt._group(Kn)})},_checkboxes:function(){var lt,yt,Me=this.options,pe=Me.checkboxes;pe&&(yt="<input id='_#= item.uid #' aria-hidden='true' type='checkbox' tabindex='-1'",pe.name&&(yt+=" name='"+pe.name+"'"),lt=(lt=ze.html.renderCheckBox(Xe(yt+=" />"),Xe.extend({},Me,{rounded:"medium"}))).replace(/(<input[^/>]*)/,"$1 #= (item.enabled === false) ? 'disabled' : '' # #= item.checked ? 'checked' : '' #"),typeof(pe=Dt({template:lt},Me.checkboxes)).template==Ci&&(pe.template=Hn(pe.template)),Me.checkboxes=pe)},_updateNodeClasses:function(Me,pe,lt){var yt=Me.children("div"),on=Me.children("ul"),zi=this.templates;if(!Me.hasClass("k-treeview")){(lt=lt||{}).expanded=typeof lt.expanded!=Ae?lt.expanded:this._expanded(Me),lt.index=typeof lt.index!=Ae?lt.index:Me.index(),lt.enabled=typeof lt.enabled!=Ae?lt.enabled:!yt.children(".k-in").hasClass("k-disabled"),(pe=pe||{}).firstLevel=typeof pe.firstLevel!=Ae?pe.firstLevel:Me.parent().parent().hasClass(Kt),pe.length=typeof pe.length!=Ae?pe.length:Me.parent().children().length,Me.removeClass("k-first k-last").addClass(zi.wrapperCssClass(pe,lt)),yt.removeClass("k-treeview-top k-treeview-mid k-treeview-bot").addClass(zi.cssClass(pe,lt));var Kn=yt.children(".k-in"),ho=Kn[0]&&"a"==Kn[0].nodeName.toLowerCase();Kn.removeClass("k-in k-link k-disabled").addClass(zi.textClass(lt,ho)),(on.length||"true"==Me.attr("data-hasChildren"))&&(yt.find(".k-treeview-toggle > .k-icon").removeClass("k-i-expand k-i-collapse").addClass(zi.toggleButtonClass(lt)),on.addClass("k-group k-treeview-group"))}},_processNodes:function(Me,pe){for(var yt=this.element.find(Me),on=0;on<yt.length;on++)pe.call(this,on,Xe(yt[on]).closest(Fi))},dataItem:function(Me){var pe=Xe(Me).closest(Fi).attr(ze.attr("uid")),lt=this.dataSource;return lt&&lt.getByUid(pe)},_dataItem:function(Me){var pe=Xe(Me).closest(Fi).attr(ze.attr("uid"));return this.dataSource&&this._dataSourceUids[pe]},_insertNode:function(Me,pe,lt,yt,on){var po,ro,wo,io,fo,cr,zi=this,Kn=Vi(lt),ho=Kn.children().length+1,$i={firstLevel:lt.hasClass(Kt),expanded:!on,length:ho},Wi="",Fr=function(jr,fs){jr.appendTo(fs)};for(wo=0;wo<Me.length;wo++)(io=Me[wo]).index=pe+wo,Wi+=zi._renderItem({group:$i,item:io});if((ro=Xe(Wi)).length){for(zi.angular("compile",function(){return{elements:ro.get(),data:Me.map(function(jr){return{dataItem:jr}})}}),Kn.length||(Kn=Xe(zi._renderGroup({group:$i})).appendTo(lt)),yt(ro,Kn),lt.hasClass("k-item")&&(Ye(lt),zi._updateNodeClasses(lt,$i,{expanded:!on})),fo=ro.prev().first(),cr=ro.next().last(),zi._updateNodeClasses(fo,{},{expanded:"true"==fo.attr(ze.attr("expanded"))}),zi._updateNodeClasses(cr,{},{expanded:"true"==cr.attr(ze.attr("expanded"))}),wo=0;wo<Me.length;wo++)(io=Me[wo]).hasChildren&&(po=io.children.data()).length&&zi._insertNode(po,io.index,ro.eq(wo),Fr,!io.expanded);return ro}},_updateNodes:function(Me,pe){var yt,on,zi,Kn,ho,po,lt=this,$i={treeview:lt.options,item:Kn},ro="expanded"!=pe&&"checked"!=pe;function wo(Wi,fo){Wi.is(".k-group")&&Wi.find(".k-item:not([aria-disabled])").attr(xi,fo),Wi.find(".k-checkbox-wrapper input[type=checkbox]:not([disabled])").prop(Nt,fo).data(an,!1).prop(an,!1)}if("selected"==pe)(on=lt.findByUid((Kn=Me[0]).uid).find(".k-in").first()).removeClass("k-hover").toggleClass("k-selected",Kn[pe]).end(),Kn[pe]&&lt.current(on),on.attr(Wn,!!Kn[pe]);else{var io=Xe.map(Me,function(Wi){return lt.findByUid(Wi.uid).children("div")});for(ro&&lt.angular("cleanup",function(){return{elements:io}}),yt=0;yt<Me.length;yt++)$i.item=Kn=Me[yt],on=(zi=io[yt]).parent(),ro&&(ze.unbind&&ze.unbind(zi),zi.children(".k-in").html(lt.templates.itemContent($i))),pe==Nt?(wo(zi,ho=Kn[pe]),on.attr(xi,ho),lt.options.checkboxes.checkChildren&&(wo(on.children(".k-group"),ho),lt._setChecked(Kn.children,ho),lt._bubbleIndeterminate(on))):"expanded"==pe?lt._toggle(on,Kn,Kn[pe]):"enabled"==pe&&(on.find(".k-checkbox-wrapper input[type=checkbox]").prop("disabled",!Kn[pe]),po=!Jn(on).is(":visible"),on.removeAttr(Vt),Kn[pe]||(Kn.selected&&Kn.set("selected",!1),Kn.expanded&&Kn.set("expanded",!1),po=!0,on.attr(Wn,!1).attr(Vt,!0)),lt._updateNodeClasses(on,{},{enabled:Kn[pe],expanded:!po})),zi.length&&this.trigger("itemChange",{item:zi,data:Kn,ns:St});ro&&lt.angular("compile",function(){return{elements:io,data:Xe.map(Me,function(Wi){return[{dataItem:Wi}]})}})}},_appendItems:function(Me,pe,lt){var on=Vi(lt).children(),zi=!this._expanded(lt);if(this.element===lt){var Kn=this.dataSource.data(),ho=this.dataSource.view();Me=(ho.length<Kn.length?ho:Kn).indexOf(pe[0])}else pe.length&&(Me=pe[0].parent().indexOf(pe[0]));typeof Me==Ae&&(Me=on.length),this._insertNode(pe,Me,lt,function($i,ro){Me>=on.length?$i.appendTo(ro):$i.insertBefore(on.eq(Me))},zi),zi||(this._updateNodeClasses(lt,{},{expanded:!zi}),Vi(lt).css("display","block"))},_refreshChildren:function(Me,pe,lt){var yt,on,zi,Kn=this.options,ho=Kn.loadOnDemand,po=Kn.checkboxes&&Kn.checkboxes.checkChildren;if(Vi(Me).empty(),pe.length)for(this._appendItems(lt,pe,Me),on=Vi(Me).children(),ho&&po&&this._bubbleIndeterminate(on.last()),yt=0;yt<on.length;yt++)zi=on.eq(yt),this.trigger("itemChange",{item:zi.children("div"),data:pe[yt],ns:St});else Ye(Me)},_refreshRoot:function(Me){var pe=this._renderGroup({items:Me,group:{firstLevel:!0,expanded:!0}});if(this.root.length&&this.root[0].parentElement){this._angularItems("cleanup");var lt=Xe(pe);this.root.attr("class",lt.attr("class")).html(lt.html())}else this.root=this.wrapper.html(pe).children("ul");for(var yt=this.root.children(".k-item"),on=0;on<Me.length;on++)this.trigger("itemChange",{item:yt.eq(on),data:Me[on],ns:St});this._angularItems("compile")},refresh:function(Me){var po,pe=Me.node,lt=Me.action,yt=Me.items,on=this.wrapper,zi=this.options,Kn=zi.loadOnDemand,ho=zi.checkboxes&&zi.checkboxes.checkChildren;if(!this._skip){for(po=0;po<yt.length;po++)this._dataSourceUids[yt[po].uid]=yt[po];if(Me.field)return yt[0]&&yt[0].level?this._updateNodes(yt,Me.field):void 0;if(pe&&(on=this.findByUid(pe.uid),this._progress(on,!1)),ho&&"remove"!=lt){var $i=!1;for(po=0;po<yt.length;po++)if("checked"in yt[po]){$i=!0;break}if(!$i&&pe&&pe.checked)for(po=0;po<yt.length;po++)yt[po].checked=!0}if("add"==lt?this._appendItems(Me.index,yt,on):"remove"==lt?this._remove(this.findByUid(yt[0].uid),!1):"itemchange"==lt?this._updateNodes(yt):"itemloaded"==lt?this._refreshChildren(on,yt,Me.index):(this._refreshRoot(yt),this.element.attr("aria-busy",!1)),"remove"!=lt)for(po=0;po<yt.length;po++)(!Kn||yt[po].expanded||yt[po]._loaded)&&yt[po].load();this.wrapper.find(">ul").attr("role","none"),this._ariaItems(this.wrapper.find(">.k-group>.k-item"),1),this.trigger(At,{node:pe?on:void 0}),this.dataSource.filter()&&this.options.checkboxes.checkChildren&&this.updateIndeterminate(on)}},_ariaItems:function(Me,pe){var lt=this;Me.attr({"aria-setsize":Me.length,"aria-level":pe}),Me.each(function(yt,on){var zi=Xe(on).find(">.k-group>.k-item");zi.length>0&&lt._ariaItems(zi,pe+1)})},_error:function(Me){var pe=Me.node&&this.findByUid(Me.node.uid),lt=this.templates.retry({messages:this.options.messages});pe?(this._progress(pe,!1),this._expanded(pe,!1),zt(pe).addClass("k-i-reload"),Me.node.loaded(!1)):(this._progress(!1),this.dataSource.data([]),this.element.html(lt))},_retryRequest:function(Me){Me.preventDefault(),this.dataSource.fetch(this._attemptLoadCompleted.bind(this))},expand:function(Me){this._processNodes(Me,function(pe,lt){this.toggle(lt,!0)})},collapse:function(Me){this._processNodes(Me,function(pe,lt){this.toggle(lt,!1)})},enable:function(Me,pe){"boolean"==typeof Me?(pe=Me,Me=this.items()):pe=2!=arguments.length||!!pe,this._processNodes(Me,function(lt,yt){this.dataItem(yt).set("enabled",pe)})},current:function(Me){var pe=this,lt=pe._current,yt=pe.element;return arguments.length>0&&Me&&Me.length?(lt&&lt.find(".k-in").first().removeClass("k-focus"),(lt=pe._current=Xe(Me,yt).closest(Fi)).find(".k-in").first().addClass("k-focus"),void pe._updateActiveDescendant()):(lt||(lt=pe._nextVisible(Xe())),lt)},_updateActiveDescendant:function(){var Me=this._current,pe=Me[0].id||this._ariaId,lt=this.element.find("#"+this._ariaId);lt.length>0&&lt.removeAttr("id"),this.wrapper.removeAttr("aria-activedescendant"),Me.attr("id",pe),this.wrapper.attr("aria-activedescendant",pe)},select:function(Me){var pe=this,lt=pe.element;if(!arguments.length)return lt.find(".k-selected").closest(Fi);Me=Xe(Me,lt).closest(Fi),lt.find(".k-selected").each(function(){var yt=pe.dataItem(this);yt?(yt.set("selected",!1),delete yt.selected):Xe(this).removeClass("k-selected")}),Me.length&&(pe.dataItem(Me).set("selected",!0),pe._clickTarget=Me),pe.trigger(Ht)},_toggle:function(Me,pe,lt){var Kn,yt=this.options,on=Jn(Me),zi=lt?"expand":"collapse";on.data("animating")||(Kn=pe&&pe.loaded(),lt&&!Kn?(yt.loadOnDemand&&this._progress(Me,!0),on.remove(),pe.load()):(this._updateNodeClasses(Me,{},{expanded:lt}),lt||on.css("height",on.height()).css("height"),on.kendoStop(!0,!0).kendoAnimate(Dt({reset:!0},yt.animation[zi],{complete:function(){lt&&on.css("height","")}}))))},toggle:function(Me,pe){Me=Xe(Me),zt(Me).is(".k-i-expand, .k-i-collapse")&&(1==arguments.length&&(pe=!this._expanded(Me)),this._expanded(Me,pe))},destroy:function(){var Me=this;Co.fn.destroy.call(Me),Me.wrapper.off(Dn),Me.wrapper.find(".k-checkbox-wrapper :checkbox").off(Dn),Me._clickHandler=null,Me._unbindDataSource(),Me.dragging&&Me.dragging.destroy(),Me._dataSourceUids={},ze.destroy(Me.element),Me.root=Me.wrapper=Me.element=null},_expanded:function(Me,pe,lt){var on,yt=ze.attr("expanded"),zi=pe,Kn=zi?"expand":"collapse";if(1==arguments.length)return on=this._dataItem(Me),"true"===Me.attr(yt)||on&&on.expanded;on=this.dataItem(Me),!Jn(Me).data("animating")&&(lt||!this._trigger(Kn,Me))&&(zi?(Me.attr(yt,"true"),Me.attr(qt,"true")):(Me.removeAttr(yt),Me.attr(qt,"false")),on&&(on.set("expanded",zi),zi=on.expanded))},_progress:function(Me,pe){var lt=this.element,yt=this.templates.loading({messages:this.options.messages});1==arguments.length?((pe=Me)?lt.html(yt):lt.empty(),lt.attr("aria-busy",pe)):(zt(Me).toggleClass("k-i-loading",pe).removeClass("k-i-reload"),Me.attr("aria-busy",pe))},text:function(Me,pe){var lt=this.dataItem(Me),yt=this.options[Qn.text],on=lt.level(),Kn=yt[Math.min(on,yt.length-1)];if(!pe)return lt[Kn];lt.set(Kn,pe)},_objectOrSelf:function(Me){return Xe(Me).closest("[data-role=treeview]").data("kendoTreeView")||this},_dataSourceMove:function(Me,pe,lt,yt){var on,zi=this._objectOrSelf(lt||pe),Kn=zi.dataSource,ho=Xe.Deferred().resolve().promise();return lt&&lt[0]!=zi.element[0]&&((on=zi.dataItem(lt)).loaded()||(zi._progress(lt,!0),ho=on.load()),lt!=this.root&&(!(Kn=on.children)||!(Kn instanceof Sn))&&(on._initChildren(),on.loaded(!0),Kn=on.children)),Me=this._toObservableData(Me),yt.call(zi,Kn,Me,ho)},_toObservableData:function(Me){var lt,yt,pe=Me;return(function(Me){return Me instanceof ze.jQuery||window.jQuery&&Me instanceof window.jQuery}(Me)||Oi(Me))&&(lt=this._objectOrSelf(Me).dataSource,yt=Xe(Me).attr(ze.attr("uid")),(pe=lt.getByUid(yt))&&(pe=lt.remove(pe))),pe},_insert:function(Me,pe,lt){pe instanceof ze.data.ObservableArray?pe=pe.toJSON():Ui(pe)||(pe=[pe]);var yt=Me.parent();return yt&&yt._initChildren&&(yt.hasChildren=!0,yt._initChildren()),Me.splice.apply(Me,[lt,0].concat(pe)),this.findByUid(Me[lt].uid)},insertAfter:Ni(1),insertBefore:Ni(0),append:function(Me,pe,lt){var yt=this.root;if(!(pe&&Me instanceof ra&&pe[0]===Me[0]))return(pe=pe&&pe.length?pe:null)&&(yt=Vi(pe)),this._dataSourceMove(Me,yt,pe,function(on,zi,Kn){var ho,po=this;return Kn.done(function(){ho=function $i(){pe&&po._expanded(pe,!0,!0);var ro=on.data(),wo=Math.max(ro.length,0);return po._insert(ro,zi,wo)}(),(lt=lt||Xe.noop)(ho)}),ho||null})},_remove:function(Me,pe){var yt,on,zi,lt=this;return(Me=Xe(Me,lt.element)).attr("id")===lt.element.attr("aria-activedescendant")&&lt.element.removeAttr("aria-activedescendant"),this.angular("cleanup",function(){return{elements:Me.get()}}),yt=Me.parent().parent(),on=Me.prev(),zi=Me.next(),Me[pe?"detach":"remove"](),yt.hasClass("k-item")&&(Ye(yt),lt._updateNodeClasses(yt)),lt._updateNodeClasses(on),lt._updateNodeClasses(zi),Me},remove:function(Me){var pe=this.dataItem(Me);pe&&this.dataSource.remove(pe)},detach:function(Me){return this._remove(Me,!0)},findByText:function(Me){return Xe(this.element).find(".k-in").filter(function(pe,lt){return Xe(lt).text()==Me}).closest(Fi)},findByUid:function(Me){for(var yt,pe=this.element.find(".k-item"),lt=ze.attr("uid"),on=0;on<pe.length;on++)if(pe[on].getAttribute(lt)==Me){yt=pe[on];break}return Xe(yt)},expandPath:function(Me,pe){var lt=this,yt=Me.slice(0),on=pe||Xe.noop;function Kn(ho){var wo,po=Xe.Deferred(),$i=lt.dataSource.get(ho),ro=ze.attr("expanded");return $i?(wo=lt.findByUid($i.uid),$i.loaded()?($i.set("expanded",!0),wo.attr(ro,!0),wo.attr(qt,!0),po.resolve()):(lt._progress(wo,!0),$i.load().then(function(){$i.set("expanded",!0),wo.attr(ro,!0),wo.attr(qt,!0),po.resolve()}))):po.resolve(),po.promise()}Kn(yt[0]).then(function zi(){yt.shift(),yt.length?Kn(yt[0]).then(zi):on.call(lt)})},_parentIds:function(Me){for(var pe=Me&&Me.parentNode(),lt=[];pe&&pe.parentNode;)lt.unshift(pe.id),pe=pe.parentNode();return lt},expandTo:function(Me){Me instanceof ze.data.Node||(Me=this.dataSource.get(Me));var pe=this._parentIds(Me);this.expandPath(pe)},_renderItem:function(Me){return Me.group||(Me.group={}),Me.treeview=this.options,Me.r=this.templates,this.templates.item(Me)},_renderGroup:function(Me){var pe=this;return Me.renderItems=function(lt){var yt="",on=0,zi=lt.items,Kn=zi?zi.length:0,ho=lt.group;for(ho.length=Kn;on<Kn;on++)lt.group=ho,lt.item=zi[on],lt.item.index=on,yt+=pe._renderItem(lt);return yt},Me.r=pe.templates,pe.templates.group(Me)}}),ze.cssProperties.registerPrefix("TreeView","k-treeview-"),St.plugin(ii),window.kendo}.apply(Va={},ur=[d,Pr,Ji]))&&(da=Va),void 0===(ga=function(){window;var ze=window.kendo,St=ze.ui.Widget,it=Math.abs,Hn=St.extend({init:function(Ui,Co){var Sn=this;function Vn(kn){return function(ui){Sn._triggerTouch(kn,ui)}}function Dn(kn){return function(ui){Sn.trigger(kn,{touches:ui.touches,distance:ui.distance,center:ui.center,event:ui.event})}}St.fn.init.call(Sn,Ui,Co),Co=Sn.options,Sn.wrapper=Ui=Sn.element,Sn.events=new ze.UserEvents(Ui,{filter:Co.filter,surface:Co.surface,minHold:Co.minHold,multiTouch:Co.multiTouch,allowSelection:!0,fastTap:Co.fastTap,press:Vn("touchstart"),hold:Vn("hold"),tap:Sn._tap.bind(Sn),gesturestart:Dn("gesturestart"),gesturechange:Dn("gesturechange"),gestureend:Dn("gestureend")}),Co.enableSwipe?(Sn.events.bind("start",Sn._swipestart.bind(Sn)),Sn.events.bind("move",Sn._swipemove.bind(Sn))):(Sn.events.bind("start",Sn._dragstart.bind(Sn)),Sn.events.bind("move",Vn("drag")),Sn.events.bind("end",Vn("dragend"))),ze.notify(Sn)},events:["touchstart","dragstart","drag","dragend","tap","doubletap","hold","swipe","gesturestart","gesturechange","gestureend"],options:{name:"Touch",surface:null,global:!1,fastTap:!1,filter:null,multiTouch:!1,enableSwipe:!1,minXDelta:30,maxYDelta:20,maxDuration:1e3,minHold:800,doubleTapTimeout:800},cancel:function(){this.events.cancel()},destroy:function(){St.fn.destroy.call(this),this.events.destroy()},_triggerTouch:function(Ui,Co){this.trigger(Ui,{touch:Co.touch,event:Co.event})&&Co.preventDefault()},_tap:function(Ui){var Co=this,Sn=Co.lastTap,Vn=Ui.touch;Sn&&Vn.endTime-Sn.endTime<Co.options.doubleTapTimeout&&ze.touchDelta(Vn,Sn).distance<20?(Co._triggerTouch("doubletap",Ui),Co.lastTap=null):(Co._triggerTouch("tap",Ui),Co.lastTap=Vn)},_dragstart:function(Ui){this._triggerTouch("dragstart",Ui)},_swipestart:function(Ui){2*it(Ui.x.velocity)>=it(Ui.y.velocity)&&Ui.sender.capture()},_swipemove:function(Ui){var Sn=this.options,Vn=Ui.touch,Dn=Ui.event.timeStamp-Vn.startTime,kn=Vn.x.initialDelta>0?"right":"left";it(Vn.x.initialDelta)>=Sn.minXDelta&&it(Vn.y.initialDelta)<Sn.maxYDelta&&Dn<Sn.maxDuration&&(this.trigger("swipe",{direction:kn,touch:Ui.touch}),Vn.cancel())}});return ze.ui.plugin(Hn),window.kendo}.apply(al={},ur=[e,k]))&&(ga=al),void 0!==(La=function(){return window.kendo}.apply(y,ur=[O,re,Wa,Mt,Za,vi,co,yr,ge,ss,da,q,ga]))&&(he.exports=La)},84676:(he,y,i)=>{"use strict";i.d(y,{V:()=>u,N:()=>d});var e=i(96814),o=(i(4212),i(78461)),a=i(65879);const l=["container"];var u=function(){function s(){}return s.prototype.ngOnInit=function(){this.reportViewerID=this.id||"reportViewer1",this.keepClientAlive=void 0===this.keepClientAlive||this.keepClientAlive},s.prototype.ngAfterViewInit=function(){this.viewerObject=new o.ReportViewer(this.container.nativeElement,{id:this.reportViewerID,serviceUrl:this.serviceUrl,reportServer:this.reportServer,trvTemplateUrl:this.templateUrl,initialPageAreaImageUrl:this.initialPageAreaImageUrl,reportSource:this.reportSource,sendEmail:this.sendEmail,scale:this.scale,scaleMode:this.scaleMode,viewMode:this.viewMode,pageMode:this.pageMode,parameters:this.parameters,persistSession:this.persistSession,parameterEditors:this.parameterEditors,authenticationToken:this.authenticationToken,ready:this.ready,printMode:this.printMode,selector:this.selector,disabledButtonClass:this.disabledButtonClass,checkedButtonClass:this.checkedButtonClass,exportBegin:this.exportBegin,exportEnd:this.exportEnd,printBegin:this.printBegin,printEnd:this.printEnd,renderingBegin:this.renderingBegin,renderingEnd:this.renderingEnd,sendEmailBegin:this.sendEmailBegin,sendEmailEnd:this.sendEmailEnd,updateUi:this.updateUi,pageReady:this.pageReady,error:this.error,interactiveActionExecuting:this.interactiveActionExecuting,interactiveActionEnter:this.interactiveActionEnter,interactiveActionLeave:this.interactiveActionLeave,viewerToolTipOpening:this.viewerToolTipOpening,enableAccessibility:this.enableAccessibility,searchMetadataOnDemand:this.searchMetadataOnDemand,parametersAreaVisible:this.parametersAreaVisible,documentMapVisible:this.documentMapVisible,documentMapAreaPosition:this.documentMapAreaPosition,parametersAreaPosition:this.parametersAreaPosition,keepClientAlive:this.keepClientAlive}),this.commands=this.viewerObject.commands},s.prototype.ngOnDestroy=function(){this.viewerObject.dispose()},s.prototype.refreshReport=function(){return this.viewerObject.refreshReport()},s.prototype.getReportSource=function(){return this.viewerObject.reportSource()},s.prototype.setReportSource=function(A){return this.viewerObject.reportSource(A)},s.prototype.getViewMode=function(){return this.viewerObject.viewMode()},s.prototype.setViewMode=function(A){return this.viewerObject.viewMode(A)},s.prototype.getScale=function(){return this.viewerObject.scale()},s.prototype.setScale=function(A){return this.viewerObject.scale(A)},s.prototype.pageCount=function(){return this.viewerObject.pageCount()},s.prototype.currentPage=function(){return this.viewerObject.currentPage()},s.prototype.setAuthenticationToken=function(A){return this.viewerObject.authenticationToken(A)},s.prototype.getAccessibilityKeyMap=function(){return this.viewerObject.accessibilityKeyMap()},s.prototype.setAccessibilityKeyMap=function(A){return this.viewerObject.accessibilityKeyMap(A)},s.prototype.bind=function(A,_){this.viewerObject.bind(A,_)},s.prototype.unbind=function(A,_){this.viewerObject.unbind(A,_)},s.prototype.unbindAll=function(A){this.viewerObject.unbind(A)},s.prototype.getPageMode=function(){return this.viewerObject.pageMode()},s.prototype.setPageMode=function(A){return this.viewerObject.pageMode(A)},s.prototype.clearReportSource=function(){return this.viewerObject.clearReportSource()},s.prototype.dispose=function(){this.viewerObject.dispose()},s.prototype.getReportParameters=function(){return this.viewerObject.getReportParameters()},s.\u0275fac=function(_){return new(_||s)},s.\u0275cmp=a.Xpm({type:s,selectors:[["tr-viewer"]],viewQuery:function(_,C){if(1&_&&a.Gf(l,5),2&_){let R;a.iGM(R=a.CRH())&&(C.container=R.first)}},inputs:{id:"id",serviceUrl:"serviceUrl",reportServer:"reportServer",templateUrl:"templateUrl",initialPageAreaImageUrl:"initialPageAreaImageUrl",reportSource:"reportSource",sendEmail:"sendEmail",parameters:"parameters",scale:"scale",scaleMode:"scaleMode",viewMode:"viewMode",pageMode:"pageMode",persistSession:"persistSession",parameterEditors:"parameterEditors",authenticationToken:"authenticationToken",printMode:"printMode",selector:"selector",disabledButtonClass:"disabledButtonClass",checkedButtonClass:"checkedButtonClass",enableAccessibility:"enableAccessibility",searchMetadataOnDemand:"searchMetadataOnDemand",parametersAreaVisible:"parametersAreaVisible",documentMapVisible:"documentMapVisible",ready:"ready",error:"error",parametersAreaPosition:"parametersAreaPosition",documentMapAreaPosition:"documentMapAreaPosition",exportBegin:"exportBegin",exportEnd:"exportEnd",sendEmailBegin:"sendEmailBegin",sendEmailEnd:"sendEmailEnd",pageReady:"pageReady",printBegin:"printBegin",printEnd:"printEnd",renderingBegin:"renderingBegin",renderingEnd:"renderingEnd",updateUi:"updateUi",interactiveActionExecuting:"interactiveActionExecuting",interactiveActionEnter:"interactiveActionEnter",interactiveActionLeave:"interactiveActionLeave",viewerToolTipOpening:"viewerToolTipOpening",keepClientAlive:"keepClientAlive",containerStyle:"containerStyle"},decls:3,vars:2,consts:[[3,"ngStyle"],["container",""]],template:function(_,C){1&_&&(a.TgZ(0,"div",0,1),a._uU(2,"Loading Report Viewer..."),a.qZA()),2&_&&(a.Q6J("ngStyle",C.containerStyle),a.uIk("id",C.reportViewerID))},dependencies:[e.PC],encapsulation:2}),s}(),d=function(){function s(){}return s.\u0275fac=function(_){return new(_||s)},s.\u0275mod=a.oAB({type:s}),s.\u0275inj=a.cJS({imports:[[e.ez]]}),s}()},54357:(he,y,i)=>{"use strict";function o(Ot){return"string"==typeof Ot}i.d(y,{p6:()=>ll,sG:()=>it,BB:()=>kn});const l=/\{(\d+)}?\}/g;class u{constructor({name:en,message:cn}){if(!en||!cn)throw new Error("{ name: string, message: string } object is required!");this.name=en,this.message=cn}formatMessage(...en){const cn=d(en),Ht=this.message.replace(l,function(ft,Nt){return cn[parseInt(Nt,10)]});return`${this.name}: ${Ht}`}error(...en){return new Error(this.formatMessage(en))}}const d=function(Ot){return Ot.reduce((en,cn)=>en.concat(cn),[])},A=(Ot={NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."},Object.keys(Ot).reduce(function(cn,Ht){return cn[Ht]=new u({name:Ht,message:Ot[Ht]}),cn},{}));var Ot;const R={en:{name:"en",identity:{version:{_number:"$Revision: 12418 $",_cldrVersion:"29"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"\xd7",perMille:"\u2030",infinity:"\u221e",nan:"NaN",timeSeparator:":"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"\u20ac","symbol-alt-narrow":"\u20ac"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},day:{wide:"day",short:"day",narrow:"day"},weekday:{wide:"day of the week"},dayperiod:{wide:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},millisecond:{wide:"millisecond",short:"ms",narrow:"ms"},zone:{wide:"time zone"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};function x(Ot){let en;return en=o(Ot)?f(Ot):Ot,en}function f(Ot){if(R[Ot])return R[Ot];if(R.supplemental.likelySubtags){const cn=Ot.split("-"),Ht=cn[0],ft=cn.slice(1),Nt=function C(Ot,en){const cn=R.supplemental.likelySubtags;for(let Ht=0;Ht<en.length;Ht++){let ft=cn[Ot+"-"+en[Ht]];if(ft)return ft}if(cn[Ot])return cn[Ot]}(Ht,ft),an=Nt?function _(Ot,en){const cn=Ot.split("-"),Ht=cn[0],ft=cn[1],Nt=cn[2];return R[Ot]||-1!==en.indexOf(Nt)&&R[Ht+"-"+Nt]||-1!==en.indexOf(ft)&&R[Ht+"-"+ft]||R[Ht]}(Nt,ft):null;if(an)return an}throw A.NoLocale.error(Ot)}function de(Ot){if(Ot.territory)return Ot.territory;const cn=Ot.identity;let Ht;return Ht=cn&&cn.territory?cn.territory:function re(Ot,en){const cn=R.supplemental.likelySubtags;let Ht=Ot.split("-");if(cn){const Nt=cn[Ot]||cn[Ht[0]];Nt&&(Ht=Nt.split("-"))}if(en)for(let Nt=Ht.length-1;Nt>=1;Nt--){const an=Ht[Nt];(an===en.variant||an===en.script)&&Ht.splice(Nt,1)}const ft=Ht.length;if(ft>1)return Ht[ft-1].toUpperCase()}(Ot.name,cn),Ot.territory=Ht,Ht}const q="decimal",se="currency",ne="accounting",_e="percent",ge="scientific",Ce="$",Te="%",De="n",fe=";",xe=",",Oe=".",Le="",Gt="en";function mt(Ot){const en=Ot.split("-"),cn=parseInt(en[0],10),Ht=parseInt(en[1],10)-1,ft=parseInt(en[2],10);return new Date(cn,Ht,ft)}const{NoCurrency:ut,NoCurrencyDisplay:Wt,NoSupplementalCurrency:dn,NoCurrencyRegion:sn,NoValidCurrency:fn}=A,yi=2,nn="symbol",Mi="XXX",mi={"001":"USD",150:"EUR"};const Ki=["sun","mon","tue","wed","thu","fri","sat"],Fn="001",{NoWeekData:oi,NoFirstDay:It}=A;function pt(Ot){return 1/Ot==-1/0}function Lt(Ot,en={}){return en.currency||(en.currency=function un(Ot,en){const cn=x(Ot),Ht=cn.numbers;if(!Ht.localeCurrency){const ft=function En(Ot,en=!0){if(mi[Ot])return mi[Ot];const cn=R.supplemental.currencyData;if(!cn){if(en)throw dn.error();return}const Ht=cn.region[Ot];if(Ht)return function xo(Ot){let en,cn,Ht,ft;for(let Nt=0;Nt<Ot.length;Nt++){const an=Ot[Nt],$e=Object.keys(an)[0],Je=an[$e];if($e!==Mi&&"false"!==Je._tender&&Je._from)if(Je._to){if(!Ht){const Ve=mt(Je._from),Ge=mt(Je._to);(!cn||cn.to<Ge||cn.from<Ve)&&(en=$e,cn={from:Ve,to:Ge})}}else{const Ve=mt(Je._from);(!ft||ft<Ve)&&(Ht=$e,ft=Ve)}}return Ht||en}(Ht);if(en)throw sn.error(Ot)}(de(cn),en);if(!ft&&en)throw fn.error(cn.name);Ht.localeCurrency=ft}return Ht.localeCurrency}(Ot,!0)),function Xt(Ot,en){const{value:cn,currency:Ht,currencyDisplay:ft=nn}=en;if("code"===ft)return Ht;const Nt=function Eo(Ot,en,cn){const ft=x(Ot).numbers.currencies;if(!ft){if(cn)throw ut.error();return}const Nt=ft[en];if(Nt)return Nt;if(cn)throw Wt.error()}(Ot,Ht,!0);let an;return an=ft===nn?Nt["symbol-alt-narrow"]||Nt[nn]:void 0===typeof cn||1!==cn?Nt["displayName-count-other"]:Nt["displayName-count-one"],an}(Ot,en)}function tt(Ot,en,cn,Ht,ft){const Nt=ft.numbers.symbols,an=Ot.indexOf(Nt.decimal),$e=Ht.groupSize.slice();let Je=$e.shift(),Ve=-1!==an?an:cn+1,Ge=Ot.substring(en,Ve),Be=Ot;const At=Ge.length;if(At>=Je){let Rt=At,Pt=[];for(;Rt>-1;){let $t=Ge.substring(Rt-Je,Rt);$t&&Pt.push($t),Rt-=Je;let Xn=$e.shift();if(Je=void 0!==Xn?Xn:Je,0===Je){$t=Ge.substring(0,Rt),$t&&Pt.push($t);break}}Ge=Pt.reverse().join(Nt.group),Be=Ot.substring(0,en)+Ge+Ot.substring(Ve)}return Be}function Ne(Ot){return Ot===se||Ot===ne}function vt(Ot,en=2,cn=!1){const Ht=en-String(Ot).length;let ft=Ot;if(Ht>0){const Nt=new Array(Ht+1).join("0");ft=cn?Ot+Nt:Nt+Ot}return ft}const ln=20;function jn(Ot,en){let cn=Ot,Ht=en||0;return cn=cn.toString().split("e"),cn=Math.round(+(cn[0]+"e"+(cn[1]?Number(cn[1])+Ht:Ht))),cn=cn.toString().split("e"),cn=+(cn[0]+"e"+(cn[1]?Number(cn[1])-Ht:-Ht)),cn.toFixed(Math.min(Ht,ln))}const Pi=3,go=0,si=/0+$/;function wi(Ot,en,cn){const Ht=cn.numbers.symbols,{style:ft}=en,Nt=Ne(ft);if(ft===ge)return(void 0!==en.minimumFractionDigits?Ot.toExponential(en.minimumFractionDigits):Ot.toExponential()).replace(Oe,Ht.decimal);let $e,an=Ot;Nt&&(en.value=an,$e=Lt(cn,en)),ft===_e&&(an*=100,$e=Ht.percentSign);const{minimumFractionDigits:Je,maximumFractionDigits:Ve}=function ot(Ot){let{minimumFractionDigits:en,maximumFractionDigits:cn,style:Ht}=Ot;const ft=Ne(Ht);let Nt;return ft&&(Nt=function Ji(Ot){let en=yi,cn=yi;const Ht=((R.supplemental.currencyData||{}).fractions||{})[Ot];return Ht&&Ht._digits&&(cn=en=parseInt(Ht._digits,10)),{minimumFractionDigits:en,maximumFractionDigits:cn}}(Ot.currency)),void 0===en&&(en=ft?Nt.minimumFractionDigits:0),void 0===cn&&(cn=Ht===_e?Math.max(en,go):ft?Math.max(en,Nt.maximumFractionDigits):Math.max(en,Pi)),{minimumFractionDigits:en,maximumFractionDigits:cn}}(en);an=jn(an,Ve);const Ge=an<0,Be=pt(Ot),At=an.split(Oe);let Rt=At[0],Pt=vt(At[1]?At[1].replace(si,Le):Le,Je,!0);Ge&&(Rt=Rt.substring(1)),en.minimumIntegerDigits&&(Rt=vt(Rt,en.minimumIntegerDigits));let Xn,$t=!1!==en.useGrouping?tt(Rt,0,Rt.length,en,cn):Rt;if(Pt&&($t+=Ht.decimal+Pt),Nt&&"name"===en.currencyDisplay)Xn=function _i(Ot,en){const cn=Ot.numbers.currency;let Ht=1!==en?cn["unitPattern-count-other"]:cn["unitPattern-count-one"];return en<0&&(Ht=Ht.replace(De,`-${De}`)),Ht}(cn,Ot);else{const Ae=en.patterns;Xn=Ge||Be?Ae[1]||"-"+Ae[0]:Ae[0]}return Xn!==De||Ge?function pn(Ot,en,cn){let Ht=Le;for(let ft=0,Nt=en.length;ft<Nt;ft++){let an=en.charAt(ft);Ht+=an===De?Ot:an===Ce||an===Te?cn:an}return Ht}($t,Xn,$e):$t}const hi=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,zn="__??__",ki="#",bo="0",jo=/(\.(?:[0-9]*[1-9])?)0+$/g,wn=/\.$/,Zi=/\,/g;function xr(Ot,en,cn){let Ht;return Ht=-1===Ot&&-1!==en?en:-1!==Ot&&-1===en?Ot:cn?Math.min(Ot,en):Math.max(Ot,en),Ht}function rt(Ot,en,cn){const Ht={negative:Ot<0,number:Math.abs(Ot),negativeZero:pt(Ot),format:en};return function Lo(Ot){let{number:en,format:cn}=Ot;if(cn=cn.split(fe),(Ot.negative||Ot.negativeZero)&&cn[1])cn=cn[1],Ot.hasNegativeFormat=!0;else if(0===en){const Ht=cn[2];cn=Ht||cn[0],Ht&&function Xo(Ot){return-1===Ot.indexOf(ki)&&-1===Ot.indexOf(bo)}(Ht)&&(Ot.constant=Ht)}else cn=cn[0];Ot.format=cn}(Ht),Ht.constant?Ht.constant:(function li(Ot){let en=Ot.format;if(en.indexOf("'")>-1||en.indexOf('"')>-1||en.indexOf("\\")>-1){const cn=Ot.literals=[];Ot.format=en.replace(hi,function(Ht){const ft=Ht.charAt(0).replace("\\",Le),Nt=Ht.slice(1).replace(ft,Le);return cn.push(Nt),zn})}}(Ht),function Ei(Ot,en){const cn=Ot.format;-1!==cn.indexOf(Te)&&(Ot.style=_e,Ot.symbol=en.numbers.symbols.percentSign,Ot.number*=100),-1!==cn.indexOf(Ce)&&(Ot.style=se,Ot.symbol=Lt(en))}(Ht,cn),function or(Ot){Ot.hasGroup=Ot.format.indexOf(xe)>-1,Ot.hasGroup&&(Ot.format=Ot.format.replace(Zi,Le))}(Ht),function Bi(Ot){let{number:en,format:cn}=Ot,Ht=cn.indexOf(Oe);if(-1!==Ht){const ft=cn.lastIndexOf(bo)-Ht,Nt=cn.lastIndexOf(ki)-Ht,an=ft>-1,$e=Nt>-1;let Je=en.toString().split("e");Je=Je[1]?jn(en,Math.abs(Je[1])):Je[0],Je=Je.split(Oe)[1]||Le;let Ve=Je.length,Ge=-1;an||$e?an&&ft>Nt?Ve=ft:Nt>ft&&($e&&Ve>Nt?Ve=Nt:an&&Ve<ft&&(Ve=ft),Ge=an?ft:0):(Ot.format=cn.substring(0,Ht)+cn.substring(Ht+1),Ht=-1,Ve=0),Ve>-1&&(en=jn(en,Ve),Ge>-1&&(en=function oo(Ot,en){let cn;return cn=0===en?jo:new RegExp(`(\\.[0-9]{${en}}[1-9]*)0+$`,"g"),Ot.replace(cn,"$1").replace(wn,Le)}(en,Ge)))}else en=jn(en);Ot.negative&&-1*en>=0&&!Ot.negativeZero&&(Ot.negative=!1),Ot.number=en,Ot.decimalIndex=Ht}(Ht),function Nr(Ot){const en=Ot.format;let cn=en.indexOf(ki),Ht=en.indexOf(bo),ft=xr(cn,Ht,!0);cn=en.lastIndexOf(ki),Ht=en.lastIndexOf(bo);let Nt=xr(cn,Ht);ft===en.length&&(Nt=ft),Ot.start=ft,Ot.end=Nt,Ot.lastZeroIndex=Ht}(Ht),function Fo(Ot,en){let cn=Ot.number;return-1!==Ot.start&&(cn=function ji(Ot,en){const{start:cn,end:Ht,negative:ft,negativeZero:Nt,format:an,decimalIndex:$e,lastZeroIndex:Je,hasNegativeFormat:Ve,hasGroup:Ge}=Ot;let Be=Ot.number;const At=Be.toString().split(Oe),Rt=an.length,Pt=At[0],$t=At[1]||Le,Xn=Pt.length;let Nn=Le;Be=an.substring(0,cn),(ft||Nt)&&!Ve&&(Be+="-");for(let Ae=cn;Ae<Rt;Ae++){let He=an.charAt(Ae);if(-1===$e){if(Ht-Ae<Xn){Be+=Pt;break}}else if(-1!==Je&&Je<Ae&&(Nn=Le),$e-Ae<=Xn&&$e-Ae>-1&&(Be+=Pt,Ae=$e),$e===Ae){Be+=($t?en.numbers.symbols.decimal:Le)+$t,Ae+=Ht-$e+1;continue}He===bo?(Be+=He,Nn=He):He===ki&&(Be+=Nn)}return Ge&&(Be=tt(Be,cn+(ft&&!Ve?1:0),Math.max(Ht,Xn+cn),en.numbers.decimal,en)),Ht>=cn&&(Be+=an.substring(Ht+1)),Be}(Ot,en),cn=function as(Ot,en,cn){let Ht=Ot;if(en===se||en===_e){Ht=Le;for(let ft=0,Nt=Ot.length;ft<Nt;ft++){let an=Ot.charAt(ft);Ht+=an===Ce||an===Te?cn:an}}return Ht}(cn,Ot.style,Ot.symbol),cn=function Xi(Ot,en){let cn=Ot;if(en){const Ht=en.length;for(let ft=0;ft<Ht;ft++)cn=cn.replace(zn,en[ft])}return cn}(cn,Ot.literals)),cn}(Ht,cn))}const ai=/^(n|c|p|e|a)(\d*)$/i;const tr=/\{(\d+)}/g;function Mr(Ot){const en=arguments;return Ot.replace(tr,(cn,Ht)=>en[parseInt(Ht,10)+1])}const Li=120,Ao=20,ao=[2,1,5,3,4],Ti={[(-2).toString()]:8,[(-1).toString()]:6,[2..toString()]:6,[1..toString()]:3},mr={numeric:1,"2-digit":2,short:3,long:4,narrow:5},ri=/[hHmsSzZoOvVxX]/,Ii=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function mo(Ot){return Ot.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],yo={e:"c",E:"c",M:"L",Q:"q"},lr={},Yr={};function Gs(Ot){return lr[Ot]||(lr[Ot]=new RegExp(Ot+"+")),lr[Ot]}function fi(Ot){const en=[];let cn=Ot.charAt(0),Ht=cn;for(let ft=1;ft<Ot.length;ft++){let Nt=Ot.charAt(ft);Nt===Ht?cn+=Nt:(en.push(cn),cn=Ht=Nt)}return en.push(cn),en}function Ho(Ot,en){const cn=Ot.length;let ft,Nt,Ht=-Number.MAX_VALUE;for(let an in en){const $e=[];let Je=an.replace("v","z"),Ve=0;for(let Ge=0;Ge<cn;Ge++){const Be=Ot[Ge];let Rt=(Gs(Be[0]).exec(Je)||[])[0];if(Rt){if(Je=Je.replace(Rt,Le),Rt.length!==Be.length){let Pt=Math.max(Math.min(ao[Rt.length]-ao[Be.length],2),-2);Ve-=Ti[Pt]}}else Ve-=Li;if($e.push(Rt),Ve<Ht)break}Je.length&&(Ve-=fi(Je).length*Ao),Ve>Ht&&(Ht=Ve,ft=$e,Nt=en[an])}Nt=Nt.replace("v","z");for(let an=0;an<cn;an++){const $e=ft[an];if($e&&$e!==Ot[an]){const Je=ft[an][0];Nt=Nt.replace(Gs(Je),Ot[an]),yo[Je]&&(Nt=Nt.replace(Gs(yo[Je]),Ot[an]))}}return Nt}function Cr(Ot,en){const cn=en.calendar;let Ht;if(o(Ot))Ht=cn.patterns[Ot]?cn.patterns[Ot]:Ot;else if(Ot){if(Ot.pattern)return Ot.pattern;let ft=Ot.skeleton;ft||(Ot.datetime?Ht=Mr(cn.dateTimeFormats[Ot.datetime],cn.timeFormats[Ot.datetime],cn.dateFormats[Ot.datetime]):Ot.date?Ht=cn.dateFormats[Ot.date]:Ot.time?Ht=cn.timeFormats[Ot.time]:ft=function qo(Ot){let en=[];for(let cn=0;cn<Ii.length;cn++){let Ht=Ii[cn],Nt=Ot[Ht.key];if(Nt){let an=Ht.specifier||Ht.getSpecifier(Ot);en.push(an.repeat(mr[Nt]))}}return en.join(Le)}(Ot)),ft&&(Ht=function Zn(Ot,en){const cn=en.calendar.dateTimeFormats.availableFormats;if(cn[Ot])return cn[Ot];if(Yr[en.name]&&Yr[en.name][Ot])return Yr[en.name][Ot];const Ht=Ot.search(ri);let ft;if(Ht>0){const Nt=Ot.substr(0,Ht),an=Ot.substr(Ht);ft=Mr(en.calendar.dateTimeFormats.short,cn[an]||Ho(fi(an),cn),cn[Nt]||Ho(fi(Nt),cn))}else ft=Ho(fi(Ot),cn);return function _t(Ot,en,cn){Yr[cn]||(Yr[cn]={}),Yr[cn][Ot]=en}(Ot,ft,en.name),ft}(ft,en))}return Ht||(Ht=cn.patterns.d),Ht}function kr(Ot){let en;return Ot<=3?en="abbreviated":4===Ot?en="wide":5===Ot?en="narrow":6===Ot&&(en="short"),en}function xs(Ot,en,cn,Ht,ft){return function xn(Ot,en){const{type:cn,nameType:Ht,standAlone:ft,lower:Nt}=en,an=x(Ot),Je=(Nt?"lower-":Le)+Ht,Ve=an.calendar[cn][ft?"stand-alone":"format"];let Ge=Ve[Je];return!Ge&&Nt&&(Ge=Ve[Je]=function $n(Ot){return Array.isArray(Ot)?function Ut(Ot){const en=[];for(let cn=0;cn<Ot.length;cn++)en.push(Ot[cn].toLowerCase());return en}(Ot):function An(Ot){const en={};for(let cn in Ot)en[cn]=Ot[cn].toLowerCase();return en}(Ot)}(Ve[Ht])),Ge}(Ot,{type:en,nameType:kr(cn),standAlone:Ht,lower:ft})}function Us(Ot){return"function"==typeof Ot}function Ts(Ot){return!!Ot&&Us(Ot.getTime)&&Us(Ot.getMonth)}const js=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function Zr(Ot,en,cn,Ht){return en<=2?vt(Ot+1,en):xs(cn,"months",en,Ht)[Ot]}function ls(Ot,en,cn,Ht){const ft=Math.floor(Ot.getMonth()/3);return en<3?ft+1:xs(cn,"quarters",en,Ht)[ft]}function Hs(Ot,en,cn){const{shortHours:Ht,optionalMinutes:ft,separator:Nt,localizedName:an,zZeroOffset:$e}=cn,Je=Ot.getTimezoneOffset()/60;if(0===Je&&$e)return"Z";const Ve=Je<=0?"+":"-",Ge=Math.abs(Je).toString().split("."),Be=Ge[1]||0;let At=Ve+(Ht?Ge[0]:vt(Ge[0],2));return(Be||!ft)&&(At+=(Nt?":":Le)+vt(Be,2)),an&&(At=Mr(0===Je?en.calendar.gmtZeroFormat:en.calendar.gmtFormat,At)),At}function Js(Ot,en,cn,Ht){let ft;return ft=en<3?function Ds(Ot,en,cn){const Ht=function Bt(Ot){const en=x(Ot);if(!isNaN(en.firstDay))return en.firstDay;const cn=R.supplemental.weekData;if(!cn)throw oi.error();const Ht=cn.firstDay[de(en)]||cn.firstDay[Fn];if(!Ht)throw It.error();return en.firstDay=Ki.indexOf(Ht),en.firstDay}(cn);let ft;return ft=Ot<Ht?7-Ht+Ot:Ot-Ht,ft+1}(Ot.getDay(),0,cn):xs(cn,"days",en,Ht)[Ot.getDay()],ft}const Wa={};function ll(Ot,en,cn=Gt){if(!Ts(Ot))return Ot??Le;const Ht=f(cn);return Cr(en,Ht).replace(js,function(Nt){let $e,an=Nt.length;return $e=Nt.includes("'")||Nt.includes('"')?Nt.slice(1,an-1):Wa[Nt[0]](Ot,an,Ht),$e})}function Za(Ot,en,cn){const Ht=Ot.getTimezoneOffset(),ft=new Date(Ot.getTime()+6e4*(en-cn)),Nt=ft.getTimezoneOffset();return new Date(ft.getTime()+6e4*(Nt-Ht))}Wa.d=function(Ot,en){return vt(Ot.getDate(),en)},Wa.E=function(Ot,en,cn){return xs(cn,"days",en)[Ot.getDay()]},Wa.M=function(Ot,en,cn){return Zr(Ot.getMonth(),en,cn,!1)},Wa.L=function(Ot,en,cn){return Zr(Ot.getMonth(),en,cn,!0)},Wa.y=function(Ot,en){let cn=Ot.getFullYear();return 2===en&&(cn%=100),vt(cn,en)},Wa.h=function(Ot,en){return vt(Ot.getHours()%12||12,en)},Wa.H=function(Ot,en){return vt(Ot.getHours(),en)},Wa.k=function(Ot,en){return vt(Ot.getHours()||24,en)},Wa.K=function(Ot,en){return vt(Ot.getHours()%12,en)},Wa.m=function(Ot,en){return vt(Ot.getMinutes(),en)},Wa.s=function(Ot,en){return vt(Ot.getSeconds(),en)},Wa.S=function(Ot,en){const cn=Ot.getMilliseconds();let Ht;return Ht=0!==cn?vt(String(cn/1e3).split(".")[1].substr(0,en),en,!0):vt(Le,en),Ht},Wa.a=function(Ot,en,cn){return xs(cn,"dayPeriods",en)[Ot.getHours()<12?"am":"pm"]},Wa.z=function(Ot,en,cn){return Hs(Ot,cn,{shortHours:en<4,optionalMinutes:en<4,separator:!0,localizedName:!0})},Wa.Z=function(Ot,en,cn){return Hs(Ot,cn,{separator:en>3,localizedName:4===en,zZeroOffset:5===en})},Wa.x=function(Ot,en,cn){return Hs(Ot,cn,{optionalMinutes:1===en,separator:3===en||5===en})},Wa.X=function(Ot,en,cn){return Hs(Ot,cn,{optionalMinutes:1===en,separator:3===en||5===en,zZeroOffset:!0})},Wa.G=function(Ot,en,cn){let Ht=Ot.getFullYear()>=0?1:0;return xs(cn,"eras",en)[Ht]},Wa.e=Js,Wa.c=function(Ot,en,cn){return Js(Ot,en,cn,!0)},Wa.q=function(Ot,en,cn){return ls(Ot,en,cn,!0)},Wa.Q=ls;const Jt=/([+|\-]\d{1,2})(:?)(\d{2})?/,Tt=/^\/Date\((.*?)\)\/$/,ht=/[+-]\d*/,yn={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},vi=/\d+/,co=/^ */,sr=/ *$/,yr=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],Ur=["G","g","F","Y","y","M","m","D","d","y","T","t"];function gs(Ot,en,cn){return!(Ot>=en&&Ot<=cn)}function Pr(Ot,en){let{format:cn,idx:Ht}=en,ft=0;for(;cn[Ht]===Ot;)ft++,Ht++;return ft>0&&(Ht-=1),en.idx=Ht,ft}function ys(Ot,en){let cn=Ot?yn[Ot]||new RegExp("^\\d{1,"+Ot+"}"):vi,Ht=en.value.substr(en.valueIdx,Ot).match(cn);return Ht?(Ht=Ht[0],en.valueIdx+=Ht.length,parseInt(Ht,10)):null}function da(Ot,en,cn){let Nt,an,Ve,Ht=0,ft=Ot.length,$e=0,Je=0;for(;Ht<ft;Ht++)Nt=Ot[Ht],an=Nt.length,Ve=en.value.substr(en.valueIdx,an),cn&&(Ve=Ve.toLowerCase()),Ve===Nt&&an>$e&&($e=an,Je=Ht);return $e?(en.valueIdx+=$e,Je+1):null}function Va(Ot){let en=!1;return Ot.value.charAt(Ot.valueIdx)===Ot.format[Ot.idx]&&(Ot.valueIdx++,en=!0),en}function al(Ot,en,cn){const{shortHours:Ht,noSeparator:ft,optionalMinutes:Nt,localizedName:an,zLiteral:$e}=cn;if(Ot.UTC=!0,$e&&"Z"===Ot.value.charAt(Ot.valueIdx))return Ot.valueIdx++,!1;if(an&&!da(function ga(Ot){const{gmtFormat:en,gmtZeroFormat:cn}=Ot;if(!en)throw A.NoGMTInfo.error();return[en.replace("{0}",Le).toLowerCase(),cn.replace("{0}",Le).toLowerCase()]}(en.calendar),Ot,!0))return!0;const Je=Jt.exec(Ot.value.substr(Ot.valueIdx,6));if(!Je)return!an;const Ve=Je[1],Ge=Je[3],Be=parseInt(Ve,10),At=Je[2];let Rt=parseInt(Ge,10);if(isNaN(Be)||!Ht&&3!==Ve.length||!Nt&&isNaN(Rt)||ft&&At||(isNaN(Rt)&&(Rt=null),gs(Be,-12,13)||Rt&&gs(Rt,0,59)))return!0;Ot.valueIdx+=Je[0].length,Ot.hoursOffset=Be,Ot.minutesOffset=Rt}function ur(Ot,en,cn){const Ht=Pr(Ot,en),ft=xs(cn,"months",Ht,"L"===Ot,!0),Nt=Ht<3?ys(2,en):da(ft,en,!0);if(null===Nt||gs(Nt,1,12))return!0;en.month=Nt-1}function La(Ot,en,cn){const Ht=Pr(Ot,en),ft=xs(cn,"days",Ht,"c"===Ot,!0);let Nt=Ht<3?ys(1,en):da(ft,en,!0);if(!Nt&&0!==Nt||gs(Nt,1,7))return!0}const ra={};function vn(Ot,en){return`${co.exec(en)[0]}${Ot}${sr.exec(en)[0]}`}function Xe(Ot,en,cn){let Ht=Cr(en,cn).split(Le);const ft={format:Ht,idx:0,value:vn(Ot,en),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},Nt=Ht.length;let an=!1;for(;ft.idx<Nt;ft.idx++){let $e=Ht[ft.idx];if(an)"'"===$e&&(an=!1),Va(ft);else if(ra[$e]){if(ra[$e](ft,cn))return null}else if("'"===$e)an=!0,Va(ft);else if(!Va(ft))return null}return ft.valueIdx<Ot.length?null:function Ls(Ot){let{year:en,month:cn,day:Ht,hours:ft,minutes:Nt,seconds:an,milliseconds:$e,pmHour:Je,UTC:Ve,hoursOffset:Ge,minutesOffset:Be}=Ot;const At=null!==ft||null!==Nt||an||null,Rt=new Date;let Pt;return null===en&&null===cn&&null===Ht&&At?(en=Rt.getFullYear(),cn=Rt.getMonth(),Ht=Rt.getDate()):(null===en&&(en=Rt.getFullYear()),null===Ht&&(Ht=1)),Je&&ft<12&&(ft+=12),Ve?(Ge&&(ft+=-Ge),Be&&(Nt+=-Be*(Ge<0?-1:1)),Pt=new Date(Date.UTC(en,cn,Ht,ft,Nt,an,$e))):(Pt=new Date(en,cn,Ht,ft,Nt,an,$e),function sl(Ot,en){!en&&23===Ot.getHours()&&Ot.setHours(Ot.getHours()+2)}(Pt,ft)),en<100&&Pt.setFullYear(en),Pt.getDate()!==Ht&&void 0===Ve?null:Pt}(ft)||null}function it(Ot,en,cn=Gt){if(!Ot)return null;if(Ts(Ot))return Ot;let Ht=String(Ot).trim(),ft=function ze(Ot){if(Ot&&0===Ot.indexOf("/D")){let en=Tt.exec(Ot);if(en){en=en[1];let cn=ht.exec(en.substring(1));return en=new Date(parseInt(en,10)),cn&&(cn=function Ke(Ot){const en="-"===Ot.substr(0,1)?-1:1;let cn=Ot.substring(1);return cn=60*parseInt(cn.substr(0,2),10)+parseInt(cn.substring(2),10),en*cn}(cn[0]),en=Za(en,en.getTimezoneOffset(),0),en=Za(en,0,-1*cn)),en}}}(Ht);if(ft)return ft;const Nt=f(cn);let an=en||function St(Ot){const en=[],cn=Ot.patterns,Ht=Ur.length;for(let ft=0;ft<Ht;ft++)en.push(cn[Ur[ft]]);return en.concat(yr)}(Nt.calendar);an=Array.isArray(an)?an:[an];const $e=an.length;for(let Je=0;Je<$e;Je++)if(ft=Xe(Ht,an[Je],Nt),ft)return ft;return ft}function kn(Ot,en,cn){if(en){if(Ts(Ot))return ll(Ot,en,cn);if(function Vn(Ot){return"number"==typeof Ot}(Ot))return function wr(Ot,en=De,cn=Gt){if(null==Ot)return Le;if(!isFinite(Ot))return String(Ot);const Ht=f(cn),ft=function Io(Ot){let en;return en=o(Ot)?function Gn(Ot){const en=ai.exec(Ot);if(en){const cn={style:q};let Ht=en[1].toLowerCase();return"c"===Ht?cn.style=se:"a"===Ht?cn.style=ne:"p"===Ht?cn.style=_e:"e"===Ht&&(cn.style=ge),en[2]&&(cn.minimumFractionDigits=cn.maximumFractionDigits=parseInt(en[2],10)),cn}}(Ot):Ot,en}(en);let Nt;return Nt=ft?wi(Ot,Object.assign({},Ht.numbers[ft.style||q],ft),Ht):rt(Ot,en,Ht),Nt}(Ot,en,cn)}return Ot??Le}ra.d=function(Ot){Pr("d",Ot);const en=ys(2,Ot);if(null===en||gs(en,1,31))return!0;null===Ot.day&&(Ot.day=en)},ra.E=function(Ot,en){if(null===da(xs(en,"days",Pr("E",Ot),!1,!0),Ot,!0))return!0},ra.M=function(Ot,en){return ur("M",Ot,en)},ra.L=function(Ot,en){return ur("L",Ot,en)},ra.y=function(Ot){const en=Pr("y",Ot);let cn=ys(1===en?void 0:en,Ot);if(null===cn)return!0;if(2===en){const Ht=(new Date).getFullYear();cn=Ht-Ht%100+cn,cn>2029&&(cn-=100)}Ot.year=cn},ra.h=function(Ot){Pr("h",Ot);let en=ys(2,Ot);if(12===en&&(en=0),null===en||gs(en,0,11))return!0;Ot.hours=en},ra.K=function(Ot){Pr("K",Ot);let en=ys(2,Ot);if(null===en||gs(en,0,11))return!0;Ot.hours=en},ra.a=function(Ot,en){let Ht=xs(en,"dayPeriods",Pr("a",Ot),!1,!0);const ft=da([Ht.pm],Ot,!0);if(!ft&&!da([Ht.am],Ot,!0))return!0;Ot.pmHour=ft},ra.H=function(Ot){Pr("H",Ot);const en=ys(2,Ot);if(null===en||gs(en,0,23))return!0;Ot.hours=en},ra.k=function(Ot){Pr("k",Ot);let en=ys(2,Ot);if(null===en||gs(en,1,24))return!0;Ot.hours=24===en?0:en},ra.m=function(Ot){Pr("m",Ot);const en=ys(2,Ot);if(null===en||gs(en,0,59))return!0;Ot.minutes=en},ra.s=function(Ot){Pr("s",Ot);const en=ys(2,Ot);if(null===en||gs(en,0,59))return!0;Ot.seconds=en},ra.S=function(Ot){const en=Pr("S",Ot),cn=Ot.value.substr(Ot.valueIdx,en);let Ht=null;if(isNaN(parseInt(cn,10))||(Ht=parseFloat("0."+cn,10),Ht=jn(Ht,3),Ht*=1e3,Ot.valueIdx+=en),null===Ht||gs(Ht,0,999))return!0;Ot.milliseconds=Ht},ra.z=function(Ot,en){const Ht=Pr("z",Ot)<4,ft=al(Ot,en,{shortHours:Ht,optionalMinutes:Ht,localizedName:!0});if(ft)return ft},ra.Z=function(Ot,en){const cn=Pr("Z",Ot),Ht=al(Ot,en,{noSeparator:cn<4,zLiteral:5===cn,localizedName:4===cn});if(Ht)return Ht},ra.x=function(Ot,en){const cn=Pr("x",Ot),Ht=al(Ot,en,{noSeparator:3!==cn&&5!==cn,optionalMinutes:1===cn});if(Ht)return Ht},ra.X=function(Ot,en){const cn=Pr("X",Ot),Ht=al(Ot,en,{noSeparator:3!==cn&&5!==cn,optionalMinutes:1===cn,zLiteral:!0});if(Ht)return Ht},ra.G=function(Ot,en){const Ht=xs(en,"eras",Pr("G",Ot),!1,!0);if(null===da([Ht[0],Ht[1]],Ot,!0))return!0},ra.e=function(Ot,en){return La("e",Ot,en)},ra.c=function(Ot,en){return La("c",Ot,en)}},55503:(he,y,i)=>{"use strict";i.r(y),i.d(y,{cancelAnimationFrame:()=>o,requestAnimationFrame:()=>n});var e=["webkit","moz","ms","o"],n=function(){for(var a=0,l=e.length;a<l&&!window.requestAnimationFrame;++a)window.requestAnimationFrame=window[e[a]+"RequestAnimationFrame"];if(!window.requestAnimationFrame){var u=0;window.requestAnimationFrame=function(d){var s=(new Date).getTime(),A=Math.max(0,16-s-u),_=window.setTimeout(function(){return d(s+A)},A);return u=s+A,_}}return window.requestAnimationFrame.bind(window)}(),o=function(){for(var a=0,l=e.length;a<l&&!window.cancelAnimationFrame;++a)window.cancelAnimationFrame=window[e[a]+"CancelAnimationFrame"]||window[e[a]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(u){window.clearTimeout(u)}),window.cancelAnimationFrame.bind(window)}()},98310:(he,y,i)=>{he.exports="function"==typeof Array.from?Array.from:i(28961)},28961:he=>{var y,e,n,l;he.exports=(y=function(u){return"function"==typeof u},e=Math.pow(2,53)-1,n=function(u){var d=function(u){var d=Number(u);return isNaN(d)?0:0!==d&&isFinite(d)?(d>0?1:-1)*Math.floor(Math.abs(d)):d}(u);return Math.min(Math.max(d,0),e)},l=function(u){var d=u.next();return!d.done&&d},function(d){"use strict";var _,s=this,A=arguments.length>1?arguments[1]:void 0;if(typeof A<"u"){if(!y(A))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(_=arguments[2])}var C,R,x=function(u,d){if(null!=u&&null!=d){var s=u[d];if(null==s)return;if(!y(s))throw new TypeError(s+" is not a function");return s}}(d,function(u){if(null!=u){if(["string","number","boolean","symbol"].indexOf(typeof u)>-1)return Symbol.iterator;if(typeof Symbol<"u"&&"iterator"in Symbol&&Symbol.iterator in u)return Symbol.iterator;if("@@iterator"in u)return"@@iterator"}}(d));if(void 0!==x){C=y(s)?Object(new s):[];var k,w,f=x.call(d);if(null==f)throw new TypeError("Array.from requires an array-like or iterable object");for(R=0;;){if(!(k=l(f)))return C.length=R,C;w=k.value,C[R]=A?A.call(_,w,R):w,R++}}else{var g=Object(d);if(null==d)throw new TypeError("Array.from requires an array-like object - not null or undefined");var p,M=n(g.length);for(C=y(s)?Object(new s(M)):new Array(M),R=0;R<M;)p=g[R],C[R]=A?A.call(_,p,R):p,R++;C.length=M}return C})},71028:function(he){he.exports=function(){"use strict";return function y(i){var e=document,n=i.container||e.createElement("div");n.id=n.id||"autocomplete-"+k();var C,x,o=n.style,a=i.debounceWaitMs||0,l=i.preventSubmit||!1,u=i.disableAutoSelect||!1,d=[],s="",A=2,_=i.showOnFocus,R=0;if(void 0!==i.minLength&&(A=i.minLength),!i.input)throw new Error("input undefined");var f=i.input;function k(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}function g(){x&&window.clearTimeout(x)}function p(){return!!n.parentNode}function E(){R++,d=[],s="",C=void 0,f.setAttribute("aria-activedescendant",""),f.setAttribute("aria-expanded","false"),function w(){var re=n.parentNode;re&&re.removeChild(n)}()}function I(){for(;n.firstChild;)n.removeChild(n.firstChild);f.setAttribute("aria-activedescendant","");var re=function(z,q,se){var ne=e.createElement("div");return ne.textContent=z.label||"",ne};i.render&&(re=i.render);var de=function(z,q){var se=e.createElement("div");return se.textContent=z,se};i.renderGroup&&(de=i.renderGroup);var te=e.createDocumentFragment(),j="#9?$";if(d.forEach(function(z,q){if(z.group&&z.group!==j){j=z.group;var se=de(z.group,s);se&&(se.className+=" group",te.appendChild(se))}var ne=re(z,s,q);ne&&(ne.id=n.id+"_"+q,ne.setAttribute("role","option"),ne.addEventListener("click",function(_e){i.onSelect(z,f),E(),_e.preventDefault(),_e.stopPropagation()}),z===C&&(ne.className+=" selected",ne.setAttribute("aria-selected","true"),f.setAttribute("aria-activedescendant",ne.id)),te.appendChild(ne))}),n.appendChild(te),d.length<1){if(!i.emptyMsg)return void E();var H=e.createElement("div");H.id=n.id+"_"+k(),H.className="empty",H.textContent=i.emptyMsg,n.appendChild(H),f.setAttribute("aria-activedescendant",H.id)}(function M(){n.parentNode||e.body.appendChild(n)})(),function b(){if(p()){f.setAttribute("aria-expanded","true"),o.height="auto",o.width=f.offsetWidth+"px";var de,re=0;te(),te(),i.customize&&de&&i.customize(f,de,n,re)}function te(){var j=e.documentElement,H=j.clientTop||e.body.clientTop||0,z=j.clientLeft||e.body.clientLeft||0,q=window.pageYOffset||j.scrollTop,se=window.pageXOffset||j.scrollLeft,ne=(de=f.getBoundingClientRect()).top+f.offsetHeight+q-H,_e=de.left+se-z;o.top=ne+"px",o.left=_e+"px",(re=window.innerHeight-(de.top+f.offsetHeight))<0&&(re=0),o.top=ne+"px",o.bottom="",o.left=_e+"px",o.maxHeight=re+"px"}}(),function O(){var re=n.getElementsByClassName("selected");if(re.length>0){var de=re[0],te=de.previousElementSibling;if(te&&-1!==te.className.indexOf("group")&&!te.previousElementSibling&&(de=te),de.offsetTop<n.scrollTop)n.scrollTop=de.offsetTop;else{var j=de.offsetTop+de.offsetHeight,H=n.scrollTop+n.offsetHeight;j>H&&(n.scrollTop+=j-H)}}}()}function L(){p()&&I()}function D(){L()}function F(re){re.target!==n?L():re.preventDefault()}function P(re){for(var de=re.which||re.keyCode||0,j=0,H=i.keysToIgnore||[38,13,27,39,37,16,17,18,20,91,9];j<H.length;j++)if(de===H[j])return;de>=112&&de<=123&&!i.keysToIgnore||40===de&&p()||me(0)}function K(re){var de=re.which||re.keyCode||0;if(38===de||40===de||27===de){var te=p();if(27===de)E();else{if(!te||d.length<1)return;38===de?function U(){if(d.length<1)C=void 0;else if(C===d[0])C=d[d.length-1];else for(var re=d.length-1;re>0;re--)if(C===d[re]||1===re){C=d[re-1];break}}():function V(){if(d.length<1&&(C=void 0),C&&C!==d[d.length-1]){for(var re=0;re<d.length-1;re++)if(C===d[re]){C=d[re+1];break}}else C=d[0]}(),I()}return re.preventDefault(),void(te&&re.stopPropagation())}13===de&&(C&&(i.onSelect(C,f),E()),l&&re.preventDefault())}function X(){_&&me(1)}function me(re){var de=++R,te=f.value,j=f.selectionStart||0;te.length>=A||1===re?(g(),x=window.setTimeout(function(){i.fetch(te,function(H){R===de&&H&&(s=te,C=(d=H).length<1||u?void 0:d[0],I())},re,j)},0===re?a:0)):E()}function J(){setTimeout(function(){e.activeElement!==f&&E()},200)}return n.className="autocomplete "+(i.className||""),n.setAttribute("role","listbox"),f.setAttribute("role","combobox"),f.setAttribute("aria-expanded","false"),f.setAttribute("aria-autocomplete","list"),f.setAttribute("aria-controls",n.id),f.setAttribute("aria-owns",n.id),f.setAttribute("aria-activedescendant",""),f.setAttribute("aria-haspopup","listbox"),o.position="absolute",n.addEventListener("mousedown",function(re){re.stopPropagation(),re.preventDefault()}),n.addEventListener("focus",function(){return f.focus()}),f.addEventListener("keydown",K),f.addEventListener("keyup",P),f.addEventListener("blur",J),f.addEventListener("focus",X),window.addEventListener("resize",D),e.addEventListener("scroll",F,!0),{destroy:function Q(){f.removeEventListener("focus",X),f.removeEventListener("keydown",K),f.removeEventListener("keyup",P),f.removeEventListener("blur",J),window.removeEventListener("resize",D),e.removeEventListener("scroll",F,!0),f.removeAttribute("role"),f.removeAttribute("aria-expanded"),f.removeAttribute("aria-autocomplete"),f.removeAttribute("aria-controls"),f.removeAttribute("aria-activedescendant"),f.removeAttribute("aria-owns"),f.removeAttribute("aria-haspopup"),g(),E()}}}}()},26841:(he,y)=>{y.defaults={},y.set=function(i,e,n){var o=n||{},a=y.defaults,l=o.expires||a.expires,u=o.domain||a.domain,d=void 0!==o.path?o.path:void 0!==a.path?a.path:"/",s=void 0!==o.secure?o.secure:a.secure,A=void 0!==o.httponly?o.httponly:a.httponly,_=void 0!==o.samesite?o.samesite:a.samesite,C=l?new Date("number"==typeof l?(new Date).getTime()+864e5*l:l):0;document.cookie=i.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+e.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(C&&C.getTime()>=0?";expires="+C.toUTCString():"")+(u?";domain="+u:"")+(d?";path="+d:"")+(s?";secure":"")+(A?";httponly":"")+(_?";samesite="+_:"")},y.get=function(i){for(var e=document.cookie.split(";");e.length;){var n=e.pop(),o=n.indexOf("=");if(o=o<0?n.length:o,decodeURIComponent(n.slice(0,o).replace(/^\s+/,""))===i)return decodeURIComponent(n.slice(o+1))}return null},y.erase=function(i,e){y.set(i,"",{expires:-1,domain:e&&e.domain,path:e&&e.path,secure:0,httponly:0})},y.all=function(){for(var i={},e=document.cookie.split(";");e.length;){var n=e.pop(),o=n.indexOf("=");o=o<0?n.length:o,i[decodeURIComponent(n.slice(0,o).replace(/^\s+/,""))]=decodeURIComponent(n.slice(o+1))}return i}},93874:function(he){he.exports=function(){"use strict";var i=function y(n,o){return n(o={exports:{}},o.exports),o.exports}(function(n,o){n.exports=function(a){var l=function(F,P){return F+P&4294967295},u=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function d(F,P,O,U,V,K){return P=l(l(P,F),l(U,K)),l(P<<V|P>>>32-V,O)}function s(F,P,O,U,V,K,X){return d(P&O|~P&U,F,P,V,K,X)}function A(F,P,O,U,V,K,X){return d(P&U|O&~U,F,P,V,K,X)}function _(F,P,O,U,V,K,X){return d(P^O^U,F,P,V,K,X)}function C(F,P,O,U,V,K,X){return d(O^(P|~U),F,P,V,K,X)}function R(F,P){var O=F[0],U=F[1],V=F[2],K=F[3];O=s(O,U,V,K,P[0],7,-680876936),K=s(K,O,U,V,P[1],12,-389564586),V=s(V,K,O,U,P[2],17,606105819),U=s(U,V,K,O,P[3],22,-1044525330),O=s(O,U,V,K,P[4],7,-176418897),K=s(K,O,U,V,P[5],12,1200080426),V=s(V,K,O,U,P[6],17,-1473231341),U=s(U,V,K,O,P[7],22,-45705983),O=s(O,U,V,K,P[8],7,1770035416),K=s(K,O,U,V,P[9],12,-1958414417),V=s(V,K,O,U,P[10],17,-42063),U=s(U,V,K,O,P[11],22,-1990404162),O=s(O,U,V,K,P[12],7,1804603682),K=s(K,O,U,V,P[13],12,-40341101),V=s(V,K,O,U,P[14],17,-1502002290),O=A(O,U=s(U,V,K,O,P[15],22,1236535329),V,K,P[1],5,-165796510),K=A(K,O,U,V,P[6],9,-1069501632),V=A(V,K,O,U,P[11],14,643717713),U=A(U,V,K,O,P[0],20,-373897302),O=A(O,U,V,K,P[5],5,-701558691),K=A(K,O,U,V,P[10],9,38016083),V=A(V,K,O,U,P[15],14,-660478335),U=A(U,V,K,O,P[4],20,-405537848),O=A(O,U,V,K,P[9],5,568446438),K=A(K,O,U,V,P[14],9,-1019803690),V=A(V,K,O,U,P[3],14,-187363961),U=A(U,V,K,O,P[8],20,1163531501),O=A(O,U,V,K,P[13],5,-1444681467),K=A(K,O,U,V,P[2],9,-51403784),V=A(V,K,O,U,P[7],14,1735328473),O=_(O,U=A(U,V,K,O,P[12],20,-1926607734),V,K,P[5],4,-378558),K=_(K,O,U,V,P[8],11,-2022574463),V=_(V,K,O,U,P[11],16,1839030562),U=_(U,V,K,O,P[14],23,-35309556),O=_(O,U,V,K,P[1],4,-1530992060),K=_(K,O,U,V,P[4],11,1272893353),V=_(V,K,O,U,P[7],16,-155497632),U=_(U,V,K,O,P[10],23,-1094730640),O=_(O,U,V,K,P[13],4,681279174),K=_(K,O,U,V,P[0],11,-358537222),V=_(V,K,O,U,P[3],16,-722521979),U=_(U,V,K,O,P[6],23,76029189),O=_(O,U,V,K,P[9],4,-640364487),K=_(K,O,U,V,P[12],11,-421815835),V=_(V,K,O,U,P[15],16,530742520),O=C(O,U=_(U,V,K,O,P[2],23,-995338651),V,K,P[0],6,-198630844),K=C(K,O,U,V,P[7],10,1126891415),V=C(V,K,O,U,P[14],15,-1416354905),U=C(U,V,K,O,P[5],21,-57434055),O=C(O,U,V,K,P[12],6,1700485571),K=C(K,O,U,V,P[3],10,-1894986606),V=C(V,K,O,U,P[10],15,-1051523),U=C(U,V,K,O,P[1],21,-2054922799),O=C(O,U,V,K,P[8],6,1873313359),K=C(K,O,U,V,P[15],10,-30611744),V=C(V,K,O,U,P[6],15,-1560198380),U=C(U,V,K,O,P[13],21,1309151649),O=C(O,U,V,K,P[4],6,-145523070),K=C(K,O,U,V,P[11],10,-1120210379),V=C(V,K,O,U,P[2],15,718787259),U=C(U,V,K,O,P[9],21,-343485551),F[0]=l(O,F[0]),F[1]=l(U,F[1]),F[2]=l(V,F[2]),F[3]=l(K,F[3])}function x(F){var O,P=[];for(O=0;O<64;O+=4)P[O>>2]=F.charCodeAt(O)+(F.charCodeAt(O+1)<<8)+(F.charCodeAt(O+2)<<16)+(F.charCodeAt(O+3)<<24);return P}function f(F){var O,P=[];for(O=0;O<64;O+=4)P[O>>2]=F[O]+(F[O+1]<<8)+(F[O+2]<<16)+(F[O+3]<<24);return P}function k(F){var U,V,K,X,me,J,P=F.length,O=[1732584193,-271733879,-1732584194,271733878];for(U=64;U<=P;U+=64)R(O,x(F.substring(U-64,U)));for(V=(F=F.substring(U-64)).length,K=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],U=0;U<V;U+=1)K[U>>2]|=F.charCodeAt(U)<<(U%4<<3);if(K[U>>2]|=128<<(U%4<<3),U>55)for(R(O,K),U=0;U<16;U+=1)K[U]=0;return X=(X=8*P).toString(16).match(/(.*?)(.{0,8})$/),me=parseInt(X[2],16),J=parseInt(X[1],16)||0,K[14]=me,K[15]=J,R(O,K),O}function g(F){var O,P="";for(O=0;O<4;O+=1)P+=u[F>>8*O+4&15]+u[F>>8*O&15];return P}function M(F){var P;for(P=0;P<F.length;P+=1)F[P]=g(F[P]);return F.join("")}function p(F){return/[\u0080-\uFFFF]/.test(F)&&(F=unescape(encodeURIComponent(F))),F}function L(F){var U,P=[],O=F.length;for(U=0;U<O-1;U+=2)P.push(parseInt(F.substr(U,2),16));return String.fromCharCode.apply(String,P)}function D(){this.reset()}return"5d41402abc4b2a76b9719d911017c592"!==M(k("hello"))&&(l=function(F,P){var O=(65535&F)+(65535&P);return(F>>16)+(P>>16)+(O>>16)<<16|65535&O}),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function F(P,O){return(P=0|P||0)<0?Math.max(P+O,0):Math.min(P,O)}ArrayBuffer.prototype.slice=function(P,O){var X,me,J,Q,U=this.byteLength,V=F(P,U),K=U;return undefined!==O&&(K=F(O,U)),V>K?new ArrayBuffer(0):(X=K-V,me=new ArrayBuffer(X),J=new Uint8Array(me),Q=new Uint8Array(this,V,X),J.set(Q),me)}}(),D.prototype.append=function(F){return this.appendBinary(p(F)),this},D.prototype.appendBinary=function(F){this._buff+=F,this._length+=F.length;var O,P=this._buff.length;for(O=64;O<=P;O+=64)R(this._hash,x(this._buff.substring(O-64,O)));return this._buff=this._buff.substring(O-64),this},D.prototype.end=function(F){var U,K,P=this._buff,O=P.length,V=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(U=0;U<O;U+=1)V[U>>2]|=P.charCodeAt(U)<<(U%4<<3);return this._finish(V,O),K=M(this._hash),F&&(K=L(K)),this.reset(),K},D.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},D.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},D.prototype.setState=function(F){return this._buff=F.buff,this._length=F.length,this._hash=F.hash,this},D.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},D.prototype._finish=function(F,P){var U,V,K,O=P;if(F[O>>2]|=128<<(O%4<<3),O>55)for(R(this._hash,F),O=0;O<16;O+=1)F[O]=0;U=(U=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),V=parseInt(U[2],16),K=parseInt(U[1],16)||0,F[14]=V,F[15]=K,R(this._hash,F)},D.hash=function(F,P){return D.hashBinary(p(F),P)},D.hashBinary=function(F,P){var U=M(k(F));return P?L(U):U},(D.ArrayBuffer=function(){this.reset()}).prototype.append=function(F){var U,P=function I(F,P,O){var U=new Uint8Array(F.byteLength+P.byteLength);return U.set(new Uint8Array(F)),U.set(new Uint8Array(P),F.byteLength),O?U:U.buffer}(this._buff.buffer,F,!0),O=P.length;for(this._length+=F.byteLength,U=64;U<=O;U+=64)R(this._hash,f(P.subarray(U-64,U)));return this._buff=U-64<O?new Uint8Array(P.buffer.slice(U-64)):new Uint8Array(0),this},D.ArrayBuffer.prototype.end=function(F){var V,K,P=this._buff,O=P.length,U=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(V=0;V<O;V+=1)U[V>>2]|=P[V]<<(V%4<<3);return this._finish(U,O),K=M(this._hash),F&&(K=L(K)),this.reset(),K},D.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},D.ArrayBuffer.prototype.getState=function(){var F=D.prototype.getState.call(this);return F.buff=function b(F){return String.fromCharCode.apply(null,new Uint8Array(F))}(F.buff),F},D.ArrayBuffer.prototype.setState=function(F){return F.buff=function E(F,P){var K,O=F.length,U=new ArrayBuffer(O),V=new Uint8Array(U);for(K=0;K<O;K+=1)V[K]=F.charCodeAt(K);return P?V:U}(F.buff,!0),D.prototype.setState.call(this,F)},D.ArrayBuffer.prototype.destroy=D.prototype.destroy,D.ArrayBuffer.prototype._finish=D.prototype._finish,D.ArrayBuffer.hash=function(F,P){var U=M(function w(F){var U,V,K,X,me,J,P=F.length,O=[1732584193,-271733879,-1732584194,271733878];for(U=64;U<=P;U+=64)R(O,f(F.subarray(U-64,U)));for(V=(F=U-64<P?F.subarray(U-64):new Uint8Array(0)).length,K=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],U=0;U<V;U+=1)K[U>>2]|=F[U]<<(U%4<<3);if(K[U>>2]|=128<<(U%4<<3),U>55)for(R(O,K),U=0;U<16;U+=1)K[U]=0;return X=(X=8*P).toString(16).match(/(.*?)(.{0,8})$/),me=parseInt(X[2],16),J=parseInt(X[1],16)||0,K[14]=me,K[15]=J,R(O,K),O}(new Uint8Array(F)));return P?L(U):U},D}()});return class e{md5(o,a,l){this.aborted=!1,this.progress=0;let u=0;const d=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,s=2097152,A=Math.ceil(o.size/s),_=new i.ArrayBuffer,C=new FileReader;function R(){const x=u*s;C.readAsArrayBuffer(d.call(o,x,x+s>=o.size?o.size:x+s))}R(),C.onloadend=x=>{_.append(x.target.result),u++,this.progress=u/A,l&&"function"==typeof l&&l(this.progress),this.aborted?a("aborted"):u<A?R():a(null,_.end())}}abort(){this.aborted=!0}}}()},6182:(he,y,i)=>{"use strict";i.r(y),i.d(y,{compare:()=>o,compareVersions:()=>e,satisfies:()=>a,validate:()=>n});const e=(k,w)=>{const g=u(k),M=u(w),p=g.pop(),E=M.pop(),b=C(g,M);return 0!==b?b:p&&E?C(p.split("."),E.split(".")):p||E?p?-1:1:0},n=k=>"string"==typeof k&&/^[v\d]/.test(k)&&l.test(k),o=(k,w,g)=>{f(g);const M=e(k,w);return R[g].includes(M)},a=(k,w)=>{const g=w.match(/^([<>=~^]+)/),M=g?g[1]:"=";if("^"!==M&&"~"!==M)return o(k,w,M);const[p,E,b,,I]=u(k),[L,D,F,,P]=u(w),O=[p,E,b],U=[L,D??"x",F??"x"];if(P&&(!I||0!==C(O,U)||-1===C(I.split("."),P.split("."))))return!1;const V=U.findIndex(X=>"0"!==X)+1,K="~"===M?2:V>1?V:1;return!(0!==C(O.slice(0,K),U.slice(0,K))||-1===C(O.slice(K),U.slice(K)))},l=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,u=k=>{if("string"!=typeof k)throw new TypeError("Invalid argument expected string");const w=k.match(l);if(!w)throw new Error(`Invalid argument not valid semver ('${k}' received)`);return w.shift(),w},d=k=>"*"===k||"x"===k||"X"===k,s=k=>{const w=parseInt(k,10);return isNaN(w)?k:w},_=(k,w)=>{if(d(k)||d(w))return 0;const[g,M]=((k,w)=>typeof k!=typeof w?[String(k),String(w)]:[k,w])(s(k),s(w));return g>M?1:g<M?-1:0},C=(k,w)=>{for(let g=0;g<Math.max(k.length,w.length);g++){const M=_(k[g]||"0",w[g]||"0");if(0!==M)return M}return 0},R={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},x=Object.keys(R),f=k=>{if("string"!=typeof k)throw new TypeError("Invalid operator type, expected string but got "+typeof k);if(-1===x.indexOf(k))throw new Error(`Invalid operator, expected one of ${x.join("|")}`)}},23492:(he,y,i)=>{"use strict";var e=i(31443);he.exports=function n(o,a){var l=e.boolean((a=a||{}).allowUpdate,!0);return function(d){if(d=d||window.event,o.target=d.target||d.srcElement||d.originalTarget,o.element=this,o.type=d.type,l(d)){if(d.targetTouches)o.x=d.targetTouches[0].clientX,o.y=d.targetTouches[0].clientY,o.pageX=d.targetTouches[0].pageX,o.pageY=d.targetTouches[0].pageY,o.screenX=d.targetTouches[0].screenX,o.screenY=d.targetTouches[0].screenY;else{if(null===d.pageX&&null!==d.clientX){var s=d.target&&d.target.ownerDocument||document,A=s.documentElement,_=s.body;o.pageX=d.clientX+(A&&A.scrollLeft||_&&_.scrollLeft||0)-(A&&A.clientLeft||_&&_.clientLeft||0),o.pageY=d.clientY+(A&&A.scrollTop||_&&_.scrollTop||0)-(A&&A.clientTop||_&&_.clientTop||0)}else o.pageX=d.pageX,o.pageY=d.pageY;o.x=d.clientX,o.y=d.clientY,o.screenX=d.screenX,o.screenY=d.screenY}o.clientX=o.x,o.clientY=o.y}}}},18042:function(he,y,i){var e;he.exports=(e=i(10012),i(85506),i(92873),i(12066),i(13270),function(){var n=e,a=n.lib.BlockCipher,l=n.algo,u=[],d=[],s=[],A=[],_=[],C=[],R=[],x=[],f=[],k=[];!function(){for(var M=[],p=0;p<256;p++)M[p]=p<128?p<<1:p<<1^283;var E=0,b=0;for(p=0;p<256;p++){var I=b^b<<1^b<<2^b<<3^b<<4;u[E]=I=I>>>8^255&I^99,d[I]=E;var P,L=M[E],D=M[L],F=M[D];s[E]=(P=257*M[I]^16843008*I)<<24|P>>>8,A[E]=P<<16|P>>>16,_[E]=P<<8|P>>>24,C[E]=P,R[I]=(P=16843009*F^65537*D^257*L^16843008*E)<<24|P>>>8,x[I]=P<<16|P>>>16,f[I]=P<<8|P>>>24,k[I]=P,E?(E=L^M[M[M[F^L]]],b^=M[M[b]]):E=b=1}}();var w=[0,1,2,4,8,16,32,64,128,27,54],g=l.AES=a.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var p=this._keyPriorReset=this._key,E=p.words,b=p.sigBytes/4,L=4*((this._nRounds=b+6)+1),D=this._keySchedule=[],F=0;F<L;F++)F<b?D[F]=E[F]:(M=D[F-1],F%b?b>6&&F%b==4&&(M=u[M>>>24]<<24|u[M>>>16&255]<<16|u[M>>>8&255]<<8|u[255&M]):(M=u[(M=M<<8|M>>>24)>>>24]<<24|u[M>>>16&255]<<16|u[M>>>8&255]<<8|u[255&M],M^=w[F/b|0]<<24),D[F]=D[F-b]^M);for(var P=this._invKeySchedule=[],O=0;O<L;O++){if(F=L-O,O%4)var M=D[F];else M=D[F-4];P[O]=O<4||F<=4?M:R[u[M>>>24]]^x[u[M>>>16&255]]^f[u[M>>>8&255]]^k[u[255&M]]}}},encryptBlock:function(M,p){this._doCryptBlock(M,p,this._keySchedule,s,A,_,C,u)},decryptBlock:function(M,p){var E=M[p+1];M[p+1]=M[p+3],M[p+3]=E,this._doCryptBlock(M,p,this._invKeySchedule,R,x,f,k,d),E=M[p+1],M[p+1]=M[p+3],M[p+3]=E},_doCryptBlock:function(M,p,E,b,I,L,D,F){for(var P=this._nRounds,O=M[p]^E[0],U=M[p+1]^E[1],V=M[p+2]^E[2],K=M[p+3]^E[3],X=4,me=1;me<P;me++){var J=b[O>>>24]^I[U>>>16&255]^L[V>>>8&255]^D[255&K]^E[X++],Q=b[U>>>24]^I[V>>>16&255]^L[K>>>8&255]^D[255&O]^E[X++],re=b[V>>>24]^I[K>>>16&255]^L[O>>>8&255]^D[255&U]^E[X++],de=b[K>>>24]^I[O>>>16&255]^L[U>>>8&255]^D[255&V]^E[X++];O=J,U=Q,V=re,K=de}J=(F[O>>>24]<<24|F[U>>>16&255]<<16|F[V>>>8&255]<<8|F[255&K])^E[X++],Q=(F[U>>>24]<<24|F[V>>>16&255]<<16|F[K>>>8&255]<<8|F[255&O])^E[X++],re=(F[V>>>24]<<24|F[K>>>16&255]<<16|F[O>>>8&255]<<8|F[255&U])^E[X++],de=(F[K>>>24]<<24|F[O>>>16&255]<<16|F[U>>>8&255]<<8|F[255&V])^E[X++],M[p]=J,M[p+1]=Q,M[p+2]=re,M[p+3]=de},keySize:8});n.AES=a._createHelper(g)}(),e.AES)},69172:function(he,y,i){var e;he.exports=(e=i(10012),i(85506),i(92873),i(12066),i(13270),function(){var n=e,a=n.lib.BlockCipher;const u=16,d=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var A={pbox:[],sbox:[]};function _(k,w){let b=k.sbox[0][w>>24&255]+k.sbox[1][w>>16&255];return b^=k.sbox[2][w>>8&255],b+=k.sbox[3][255&w],b}function C(k,w,g){let E,M=w,p=g;for(let b=0;b<u;++b)M^=k.pbox[b],p=_(k,M)^p,E=M,M=p,p=E;return E=M,M=p,p=E,p^=k.pbox[u],M^=k.pbox[u+1],{left:M,right:p}}var f=n.algo.Blowfish=a.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var k=this._keyPriorReset=this._key;!function x(k,w,g){for(let I=0;I<4;I++){k.sbox[I]=[];for(let L=0;L<256;L++)k.sbox[I][L]=s[I][L]}let M=0;for(let I=0;I<u+2;I++)k.pbox[I]=d[I]^w[M],M++,M>=g&&(M=0);let p=0,E=0,b=0;for(let I=0;I<u+2;I+=2)b=C(k,p,E),p=b.left,E=b.right,k.pbox[I]=p,k.pbox[I+1]=E;for(let I=0;I<4;I++)for(let L=0;L<256;L+=2)b=C(k,p,E),p=b.left,E=b.right,k.sbox[I][L]=p,k.sbox[I][L+1]=E;return!0}(A,k.words,k.sigBytes/4)}},encryptBlock:function(k,w){var g=C(A,k[w],k[w+1]);k[w]=g.left,k[w+1]=g.right},decryptBlock:function(k,w){var g=function R(k,w,g){let E,M=w,p=g;for(let b=u+1;b>1;--b)M^=k.pbox[b],p=_(k,M)^p,E=M,M=p,p=E;return E=M,M=p,p=E,p^=k.pbox[1],M^=k.pbox[0],{left:M,right:p}}(A,k[w],k[w+1]);k[w]=g.left,k[w+1]=g.right},blockSize:2,keySize:4,ivSize:2});n.Blowfish=a._createHelper(f)}(),e.Blowfish)},13270:function(he,y,i){var o,a,l,u,d,s,_,R,x,k,w,g,p,b,L,D,P,O,e;he.exports=(e=i(10012),i(12066),void(e.lib.Cipher||(o=e,a=o.lib,l=a.Base,u=a.WordArray,d=a.BufferedBlockAlgorithm,s=o.enc,_=s.Base64,R=o.algo.EvpKDF,x=a.Cipher=d.extend({cfg:l.extend(),createEncryptor:function(U,V){return this.create(this._ENC_XFORM_MODE,U,V)},createDecryptor:function(U,V){return this.create(this._DEC_XFORM_MODE,U,V)},init:function(U,V,K){this.cfg=this.cfg.extend(K),this._xformMode=U,this._key=V,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(U){return this._append(U),this._process()},finalize:function(U){return U&&this._append(U),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function U(V){return"string"==typeof V?O:D}return function(V){return{encrypt:function(K,X,me){return U(X).encrypt(V,K,X,me)},decrypt:function(K,X,me){return U(X).decrypt(V,K,X,me)}}}}()}),a.StreamCipher=x.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),k=o.mode={},w=a.BlockCipherMode=l.extend({createEncryptor:function(U,V){return this.Encryptor.create(U,V)},createDecryptor:function(U,V){return this.Decryptor.create(U,V)},init:function(U,V){this._cipher=U,this._iv=V}}),g=k.CBC=function(){var U=w.extend();function V(K,X,me){var J,Q=this._iv;Q?(J=Q,this._iv=undefined):J=this._prevBlock;for(var re=0;re<me;re++)K[X+re]^=J[re]}return U.Encryptor=U.extend({processBlock:function(K,X){var me=this._cipher,J=me.blockSize;V.call(this,K,X,J),me.encryptBlock(K,X),this._prevBlock=K.slice(X,X+J)}}),U.Decryptor=U.extend({processBlock:function(K,X){var me=this._cipher,J=me.blockSize,Q=K.slice(X,X+J);me.decryptBlock(K,X),V.call(this,K,X,J),this._prevBlock=Q}}),U}(),p=(o.pad={}).Pkcs7={pad:function(U,V){for(var K=4*V,X=K-U.sigBytes%K,me=X<<24|X<<16|X<<8|X,J=[],Q=0;Q<X;Q+=4)J.push(me);var re=u.create(J,X);U.concat(re)},unpad:function(U){U.sigBytes-=255&U.words[U.sigBytes-1>>>2]}},a.BlockCipher=x.extend({cfg:x.cfg.extend({mode:g,padding:p}),reset:function(){var U;x.reset.call(this);var V=this.cfg,K=V.iv,X=V.mode;this._xformMode==this._ENC_XFORM_MODE?U=X.createEncryptor:(U=X.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==U?this._mode.init(this,K&&K.words):(this._mode=U.call(X,this,K&&K.words),this._mode.__creator=U)},_doProcessBlock:function(U,V){this._mode.processBlock(U,V)},_doFinalize:function(){var U,V=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(V.pad(this._data,this.blockSize),U=this._process(!0)):(U=this._process(!0),V.unpad(U)),U},blockSize:4}),b=a.CipherParams=l.extend({init:function(U){this.mixIn(U)},toString:function(U){return(U||this.formatter).stringify(this)}}),L=(o.format={}).OpenSSL={stringify:function(U){var K=U.ciphertext,X=U.salt;return(X?u.create([1398893684,1701076831]).concat(X).concat(K):K).toString(_)},parse:function(U){var V,K=_.parse(U),X=K.words;return 1398893684==X[0]&&1701076831==X[1]&&(V=u.create(X.slice(2,4)),X.splice(0,4),K.sigBytes-=16),b.create({ciphertext:K,salt:V})}},D=a.SerializableCipher=l.extend({cfg:l.extend({format:L}),encrypt:function(U,V,K,X){X=this.cfg.extend(X);var me=U.createEncryptor(K,X),J=me.finalize(V),Q=me.cfg;return b.create({ciphertext:J,key:K,iv:Q.iv,algorithm:U,mode:Q.mode,padding:Q.padding,blockSize:U.blockSize,formatter:X.format})},decrypt:function(U,V,K,X){return X=this.cfg.extend(X),V=this._parse(V,X.format),U.createDecryptor(K,X).finalize(V.ciphertext)},_parse:function(U,V){return"string"==typeof U?V.parse(U,this):U}}),P=(o.kdf={}).OpenSSL={execute:function(U,V,K,X,me){if(X||(X=u.random(8)),me)var J=R.create({keySize:V+K,hasher:me}).compute(U,X);else J=R.create({keySize:V+K}).compute(U,X);var Q=u.create(J.words.slice(V),4*K);return J.sigBytes=4*V,b.create({key:J,iv:Q,salt:X})}},O=a.PasswordBasedCipher=D.extend({cfg:D.cfg.extend({kdf:P}),encrypt:function(U,V,K,X){var me=(X=this.cfg.extend(X)).kdf.execute(K,U.keySize,U.ivSize,X.salt,X.hasher);X.iv=me.iv;var J=D.encrypt.call(this,U,V,me.key,X);return J.mixIn(me),J},decrypt:function(U,V,K,X){X=this.cfg.extend(X),V=this._parse(V,X.format);var me=X.kdf.execute(K,U.keySize,U.ivSize,V.salt,X.hasher);return X.iv=me.iv,D.decrypt.call(this,U,V,me.key,X)}}))))},10012:function(he,y,i){var e;he.exports=(e=e||function(n,o){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof global<"u"&&global.crypto&&(a=global.crypto),!a)try{a=i(42480)}catch{}var l=function(){if(a){if("function"==typeof a.getRandomValues)try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if("function"==typeof a.randomBytes)try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||function(){function M(){}return function(p){var E;return M.prototype=p,E=new M,M.prototype=null,E}}(),d={},s=d.lib={},A=s.Base={extend:function(M){var p=u(this);return M&&p.mixIn(M),(!p.hasOwnProperty("init")||this.init===p.init)&&(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var M=this.extend();return M.init.apply(M,arguments),M},init:function(){},mixIn:function(M){for(var p in M)M.hasOwnProperty(p)&&(this[p]=M[p]);M.hasOwnProperty("toString")&&(this.toString=M.toString)},clone:function(){return this.init.prototype.extend(this)}},_=s.WordArray=A.extend({init:function(M,p){M=this.words=M||[],this.sigBytes=null!=p?p:4*M.length},toString:function(M){return(M||R).stringify(this)},concat:function(M){var p=this.words,E=M.words,b=this.sigBytes,I=M.sigBytes;if(this.clamp(),b%4)for(var L=0;L<I;L++)p[b+L>>>2]|=(E[L>>>2]>>>24-L%4*8&255)<<24-(b+L)%4*8;else for(var F=0;F<I;F+=4)p[b+F>>>2]=E[F>>>2];return this.sigBytes+=I,this},clamp:function(){var M=this.words,p=this.sigBytes;M[p>>>2]&=4294967295<<32-p%4*8,M.length=n.ceil(p/4)},clone:function(){var M=A.clone.call(this);return M.words=this.words.slice(0),M},random:function(M){for(var p=[],E=0;E<M;E+=4)p.push(l());return new _.init(p,M)}}),C=d.enc={},R=C.Hex={stringify:function(M){for(var p=M.words,E=M.sigBytes,b=[],I=0;I<E;I++){var L=p[I>>>2]>>>24-I%4*8&255;b.push((L>>>4).toString(16)),b.push((15&L).toString(16))}return b.join("")},parse:function(M){for(var p=M.length,E=[],b=0;b<p;b+=2)E[b>>>3]|=parseInt(M.substr(b,2),16)<<24-b%8*4;return new _.init(E,p/2)}},x=C.Latin1={stringify:function(M){for(var p=M.words,E=M.sigBytes,b=[],I=0;I<E;I++)b.push(String.fromCharCode(p[I>>>2]>>>24-I%4*8&255));return b.join("")},parse:function(M){for(var p=M.length,E=[],b=0;b<p;b++)E[b>>>2]|=(255&M.charCodeAt(b))<<24-b%4*8;return new _.init(E,p)}},f=C.Utf8={stringify:function(M){try{return decodeURIComponent(escape(x.stringify(M)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(M){return x.parse(unescape(encodeURIComponent(M)))}},k=s.BufferedBlockAlgorithm=A.extend({reset:function(){this._data=new _.init,this._nDataBytes=0},_append:function(M){"string"==typeof M&&(M=f.parse(M)),this._data.concat(M),this._nDataBytes+=M.sigBytes},_process:function(M){var p,E=this._data,b=E.words,I=E.sigBytes,L=this.blockSize,F=I/(4*L),P=(F=M?n.ceil(F):n.max((0|F)-this._minBufferSize,0))*L,O=n.min(4*P,I);if(P){for(var U=0;U<P;U+=L)this._doProcessBlock(b,U);p=b.splice(0,P),E.sigBytes-=O}return new _.init(p,O)},clone:function(){var M=A.clone.call(this);return M._data=this._data.clone(),M},_minBufferSize:0}),g=(s.Hasher=k.extend({cfg:A.extend(),init:function(M){this.cfg=this.cfg.extend(M),this.reset()},reset:function(){k.reset.call(this),this._doReset()},update:function(M){return this._append(M),this._process(),this},finalize:function(M){return M&&this._append(M),this._doFinalize()},blockSize:16,_createHelper:function(M){return function(p,E){return new M.init(E).finalize(p)}},_createHmacHelper:function(M){return function(p,E){return new g.HMAC.init(M,E).finalize(p)}}}),d.algo={});return d}(Math),e)},85506:function(he,y,i){var e,a;he.exports=(e=i(10012),a=e.lib.WordArray,e.enc.Base64={stringify:function(s){var A=s.words,_=s.sigBytes,C=this._map;s.clamp();for(var R=[],x=0;x<_;x+=3)for(var g=(A[x>>>2]>>>24-x%4*8&255)<<16|(A[x+1>>>2]>>>24-(x+1)%4*8&255)<<8|A[x+2>>>2]>>>24-(x+2)%4*8&255,M=0;M<4&&x+.75*M<_;M++)R.push(C.charAt(g>>>6*(3-M)&63));var p=C.charAt(64);if(p)for(;R.length%4;)R.push(p);return R.join("")},parse:function(s){var A=s.length,_=this._map,C=this._reverseMap;if(!C){C=this._reverseMap=[];for(var R=0;R<_.length;R++)C[_.charCodeAt(R)]=R}var x=_.charAt(64);if(x){var f=s.indexOf(x);-1!==f&&(A=f)}return function d(s,A,_){for(var C=[],R=0,x=0;x<A;x++)if(x%4){var f=_[s.charCodeAt(x-1)]<<x%4*2,k=_[s.charCodeAt(x)]>>>6-x%4*2;C[R>>>2]|=(f|k)<<24-R%4*8,R++}return a.create(C,R)}(s,A,C)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},e.enc.Base64)},57523:function(he,y,i){var e,a;he.exports=(e=i(10012),a=e.lib.WordArray,e.enc.Base64url={stringify:function(s,A){void 0===A&&(A=!0);var _=s.words,C=s.sigBytes,R=A?this._safe_map:this._map;s.clamp();for(var x=[],f=0;f<C;f+=3)for(var M=(_[f>>>2]>>>24-f%4*8&255)<<16|(_[f+1>>>2]>>>24-(f+1)%4*8&255)<<8|_[f+2>>>2]>>>24-(f+2)%4*8&255,p=0;p<4&&f+.75*p<C;p++)x.push(R.charAt(M>>>6*(3-p)&63));var E=R.charAt(64);if(E)for(;x.length%4;)x.push(E);return x.join("")},parse:function(s,A){void 0===A&&(A=!0);var _=s.length,C=A?this._safe_map:this._map,R=this._reverseMap;if(!R){R=this._reverseMap=[];for(var x=0;x<C.length;x++)R[C.charCodeAt(x)]=x}var f=C.charAt(64);if(f){var k=s.indexOf(f);-1!==k&&(_=k)}return function d(s,A,_){for(var C=[],R=0,x=0;x<A;x++)if(x%4){var f=_[s.charCodeAt(x-1)]<<x%4*2,k=_[s.charCodeAt(x)]>>>6-x%4*2;C[R>>>2]|=(f|k)<<24-R%4*8,R++}return a.create(C,R)}(s,_,R)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},e.enc.Base64url)},72454:function(he,y,i){var e;he.exports=(e=i(10012),function(){var a=e.lib.WordArray,l=e.enc;function d(s){return s<<8&4278255360|s>>>8&16711935}l.Utf16=l.Utf16BE={stringify:function(s){for(var A=s.words,_=s.sigBytes,C=[],R=0;R<_;R+=2)C.push(String.fromCharCode(A[R>>>2]>>>16-R%4*8&65535));return C.join("")},parse:function(s){for(var A=s.length,_=[],C=0;C<A;C++)_[C>>>1]|=s.charCodeAt(C)<<16-C%2*16;return a.create(_,2*A)}},l.Utf16LE={stringify:function(s){for(var A=s.words,_=s.sigBytes,C=[],R=0;R<_;R+=2){var x=d(A[R>>>2]>>>16-R%4*8&65535);C.push(String.fromCharCode(x))}return C.join("")},parse:function(s){for(var A=s.length,_=[],C=0;C<A;C++)_[C>>>1]|=d(s.charCodeAt(C)<<16-C%2*16);return a.create(_,2*A)}}}(),e.enc.Utf16)},12066:function(he,y,i){var n,o,a,l,u,s,e;he.exports=(e=i(10012),i(84446),i(990),l=(o=(n=e).lib).WordArray,s=(u=n.algo).EvpKDF=(a=o.Base).extend({cfg:a.extend({keySize:4,hasher:u.MD5,iterations:1}),init:function(A){this.cfg=this.cfg.extend(A)},compute:function(A,_){for(var C,R=this.cfg,x=R.hasher.create(),f=l.create(),k=f.words,w=R.keySize,g=R.iterations;k.length<w;){C&&x.update(C),C=x.update(A).finalize(_),x.reset();for(var M=1;M<g;M++)C=x.finalize(C),x.reset();f.concat(C)}return f.sigBytes=4*w,f}}),n.EvpKDF=function(A,_,C){return s.create(C).compute(A,_)},e.EvpKDF)},12826:function(he,y,i){var e,l,d;he.exports=(e=i(10012),i(13270),l=e.lib.CipherParams,d=e.enc.Hex,e.format.Hex={stringify:function(_){return _.ciphertext.toString(d)},parse:function(_){var C=d.parse(_);return l.create({ciphertext:C})}},e.format.Hex)},990:function(he,y,i){var e,u;he.exports=(e=i(10012),u=e.enc.Utf8,void(e.algo.HMAC=e.lib.Base.extend({init:function(A,_){A=this._hasher=new A.init,"string"==typeof _&&(_=u.parse(_));var C=A.blockSize,R=4*C;_.sigBytes>R&&(_=A.finalize(_)),_.clamp();for(var x=this._oKey=_.clone(),f=this._iKey=_.clone(),k=x.words,w=f.words,g=0;g<C;g++)k[g]^=1549556828,w[g]^=909522486;x.sigBytes=f.sigBytes=R,this.reset()},reset:function(){var A=this._hasher;A.reset(),A.update(this._iKey)},update:function(A){return this._hasher.update(A),this},finalize:function(A){var _=this._hasher,C=_.finalize(A);return _.reset(),_.finalize(this._oKey.clone().concat(C))}})))},77874:function(he,y,i){var e;he.exports=(e=i(10012),i(31802),i(74037),i(72454),i(85506),i(57523),i(92873),i(84446),i(32078),i(69811),i(24870),i(72913),i(26545),i(35558),i(990),i(53538),i(12066),i(13270),i(25228),i(43392),i(53584),i(42015),i(35594),i(77237),i(88501),i(14004),i(53297),i(42738),i(12826),i(18042),i(75769),i(41195),i(24969),i(77848),i(69172),e)},74037:function(he,y,i){var e;he.exports=(e=i(10012),function(){if("function"==typeof ArrayBuffer){var a=e.lib.WordArray,l=a.init,u=a.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var s=d.byteLength,A=[],_=0;_<s;_++)A[_>>>2]|=d[_]<<24-_%4*8;l.call(this,A,s)}else l.apply(this,arguments)};u.prototype=a}}(),e.lib.WordArray)},92873:function(he,y,i){var e;he.exports=(e=i(10012),function(n){var o=e,a=o.lib,l=a.WordArray,u=a.Hasher,d=o.algo,s=[];!function(){for(var f=0;f<64;f++)s[f]=4294967296*n.abs(n.sin(f+1))|0}();var A=d.MD5=u.extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(f,k){for(var w=0;w<16;w++){var g=k+w,M=f[g];f[g]=16711935&(M<<8|M>>>24)|4278255360&(M<<24|M>>>8)}var p=this._hash.words,E=f[k+0],b=f[k+1],I=f[k+2],L=f[k+3],D=f[k+4],F=f[k+5],P=f[k+6],O=f[k+7],U=f[k+8],V=f[k+9],K=f[k+10],X=f[k+11],me=f[k+12],J=f[k+13],Q=f[k+14],re=f[k+15],de=p[0],te=p[1],j=p[2],H=p[3];de=_(de,te,j,H,E,7,s[0]),H=_(H,de,te,j,b,12,s[1]),j=_(j,H,de,te,I,17,s[2]),te=_(te,j,H,de,L,22,s[3]),de=_(de,te,j,H,D,7,s[4]),H=_(H,de,te,j,F,12,s[5]),j=_(j,H,de,te,P,17,s[6]),te=_(te,j,H,de,O,22,s[7]),de=_(de,te,j,H,U,7,s[8]),H=_(H,de,te,j,V,12,s[9]),j=_(j,H,de,te,K,17,s[10]),te=_(te,j,H,de,X,22,s[11]),de=_(de,te,j,H,me,7,s[12]),H=_(H,de,te,j,J,12,s[13]),j=_(j,H,de,te,Q,17,s[14]),de=C(de,te=_(te,j,H,de,re,22,s[15]),j,H,b,5,s[16]),H=C(H,de,te,j,P,9,s[17]),j=C(j,H,de,te,X,14,s[18]),te=C(te,j,H,de,E,20,s[19]),de=C(de,te,j,H,F,5,s[20]),H=C(H,de,te,j,K,9,s[21]),j=C(j,H,de,te,re,14,s[22]),te=C(te,j,H,de,D,20,s[23]),de=C(de,te,j,H,V,5,s[24]),H=C(H,de,te,j,Q,9,s[25]),j=C(j,H,de,te,L,14,s[26]),te=C(te,j,H,de,U,20,s[27]),de=C(de,te,j,H,J,5,s[28]),H=C(H,de,te,j,I,9,s[29]),j=C(j,H,de,te,O,14,s[30]),de=R(de,te=C(te,j,H,de,me,20,s[31]),j,H,F,4,s[32]),H=R(H,de,te,j,U,11,s[33]),j=R(j,H,de,te,X,16,s[34]),te=R(te,j,H,de,Q,23,s[35]),de=R(de,te,j,H,b,4,s[36]),H=R(H,de,te,j,D,11,s[37]),j=R(j,H,de,te,O,16,s[38]),te=R(te,j,H,de,K,23,s[39]),de=R(de,te,j,H,J,4,s[40]),H=R(H,de,te,j,E,11,s[41]),j=R(j,H,de,te,L,16,s[42]),te=R(te,j,H,de,P,23,s[43]),de=R(de,te,j,H,V,4,s[44]),H=R(H,de,te,j,me,11,s[45]),j=R(j,H,de,te,re,16,s[46]),de=x(de,te=R(te,j,H,de,I,23,s[47]),j,H,E,6,s[48]),H=x(H,de,te,j,O,10,s[49]),j=x(j,H,de,te,Q,15,s[50]),te=x(te,j,H,de,F,21,s[51]),de=x(de,te,j,H,me,6,s[52]),H=x(H,de,te,j,L,10,s[53]),j=x(j,H,de,te,K,15,s[54]),te=x(te,j,H,de,b,21,s[55]),de=x(de,te,j,H,U,6,s[56]),H=x(H,de,te,j,re,10,s[57]),j=x(j,H,de,te,P,15,s[58]),te=x(te,j,H,de,J,21,s[59]),de=x(de,te,j,H,D,6,s[60]),H=x(H,de,te,j,X,10,s[61]),j=x(j,H,de,te,I,15,s[62]),te=x(te,j,H,de,V,21,s[63]),p[0]=p[0]+de|0,p[1]=p[1]+te|0,p[2]=p[2]+j|0,p[3]=p[3]+H|0},_doFinalize:function(){var f=this._data,k=f.words,w=8*this._nDataBytes,g=8*f.sigBytes;k[g>>>5]|=128<<24-g%32;var M=n.floor(w/4294967296),p=w;k[15+(g+64>>>9<<4)]=16711935&(M<<8|M>>>24)|4278255360&(M<<24|M>>>8),k[14+(g+64>>>9<<4)]=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),f.sigBytes=4*(k.length+1),this._process();for(var E=this._hash,b=E.words,I=0;I<4;I++){var L=b[I];b[I]=16711935&(L<<8|L>>>24)|4278255360&(L<<24|L>>>8)}return E},clone:function(){var f=u.clone.call(this);return f._hash=this._hash.clone(),f}});function _(f,k,w,g,M,p,E){var b=f+(k&w|~k&g)+M+E;return(b<<p|b>>>32-p)+k}function C(f,k,w,g,M,p,E){var b=f+(k&g|w&~g)+M+E;return(b<<p|b>>>32-p)+k}function R(f,k,w,g,M,p,E){var b=f+(k^w^g)+M+E;return(b<<p|b>>>32-p)+k}function x(f,k,w,g,M,p,E){var b=f+(w^(k|~g))+M+E;return(b<<p|b>>>32-p)+k}o.MD5=u._createHelper(A),o.HmacMD5=u._createHmacHelper(A)}(Math),e.MD5)},25228:function(he,y,i){var e;he.exports=(e=i(10012),i(13270),e.mode.CFB=function(){var n=e.lib.BlockCipherMode.extend();function o(a,l,u,d){var s,A=this._iv;A?(s=A.slice(0),this._iv=void 0):s=this._prevBlock,d.encryptBlock(s,0);for(var _=0;_<u;_++)a[l+_]^=s[_]}return n.Encryptor=n.extend({processBlock:function(a,l){var u=this._cipher,d=u.blockSize;o.call(this,a,l,d,u),this._prevBlock=a.slice(l,l+d)}}),n.Decryptor=n.extend({processBlock:function(a,l){var u=this._cipher,d=u.blockSize,s=a.slice(l,l+d);o.call(this,a,l,d,u),this._prevBlock=s}}),n}(),e.mode.CFB)},53584:function(he,y,i){var e;he.exports=(e=i(10012),i(13270),e.mode.CTRGladman=function(){var n=e.lib.BlockCipherMode.extend();function o(u){if(255==(u>>24&255)){var d=u>>16&255,s=u>>8&255,A=255&u;255===d?(d=0,255===s?(s=0,255===A?A=0:++A):++s):++d,u=0,u+=d<<16,u+=s<<8,u+=A}else u+=1<<24;return u}var l=n.Encryptor=n.extend({processBlock:function(u,d){var s=this._cipher,A=s.blockSize,_=this._iv,C=this._counter;_&&(C=this._counter=_.slice(0),this._iv=void 0),function a(u){return 0===(u[0]=o(u[0]))&&(u[1]=o(u[1])),u}(C);var R=C.slice(0);s.encryptBlock(R,0);for(var x=0;x<A;x++)u[d+x]^=R[x]}});return n.Decryptor=l,n}(),e.mode.CTRGladman)},43392:function(he,y,i){var n,o,e;he.exports=(e=i(10012),i(13270),e.mode.CTR=(o=(n=e.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(a,l){var u=this._cipher,d=u.blockSize,s=this._iv,A=this._counter;s&&(A=this._counter=s.slice(0),this._iv=void 0);var _=A.slice(0);u.encryptBlock(_,0),A[d-1]=A[d-1]+1|0;for(var C=0;C<d;C++)a[l+C]^=_[C]}}),n.Decryptor=o,n),e.mode.CTR)},35594:function(he,y,i){var n,e;he.exports=(e=i(10012),i(13270),e.mode.ECB=((n=e.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(o,a){this._cipher.encryptBlock(o,a)}}),n.Decryptor=n.extend({processBlock:function(o,a){this._cipher.decryptBlock(o,a)}}),n),e.mode.ECB)},42015:function(he,y,i){var n,o,e;he.exports=(e=i(10012),i(13270),e.mode.OFB=(o=(n=e.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(a,l){var u=this._cipher,d=u.blockSize,s=this._iv,A=this._keystream;s&&(A=this._keystream=s.slice(0),this._iv=void 0),u.encryptBlock(A,0);for(var _=0;_<d;_++)a[l+_]^=A[_]}}),n.Decryptor=o,n),e.mode.OFB)},77237:function(he,y,i){var e;he.exports=(e=i(10012),i(13270),e.pad.AnsiX923={pad:function(n,o){var a=n.sigBytes,l=4*o,u=l-a%l,d=a+u-1;n.clamp(),n.words[d>>>2]|=u<<24-d%4*8,n.sigBytes+=u},unpad:function(n){n.sigBytes-=255&n.words[n.sigBytes-1>>>2]}},e.pad.Ansix923)},88501:function(he,y,i){var e;he.exports=(e=i(10012),i(13270),e.pad.Iso10126={pad:function(n,o){var a=4*o,l=a-n.sigBytes%a;n.concat(e.lib.WordArray.random(l-1)).concat(e.lib.WordArray.create([l<<24],1))},unpad:function(n){n.sigBytes-=255&n.words[n.sigBytes-1>>>2]}},e.pad.Iso10126)},14004:function(he,y,i){var e;he.exports=(e=i(10012),i(13270),e.pad.Iso97971={pad:function(n,o){n.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(n,o)},unpad:function(n){e.pad.ZeroPadding.unpad(n),n.sigBytes--}},e.pad.Iso97971)},42738:function(he,y,i){var e;he.exports=(e=i(10012),i(13270),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding)},53297:function(he,y,i){var e;he.exports=(e=i(10012),i(13270),e.pad.ZeroPadding={pad:function(n,o){var a=4*o;n.clamp(),n.sigBytes+=a-(n.sigBytes%a||a)},unpad:function(n){var o=n.words,a=n.sigBytes-1;for(a=n.sigBytes-1;a>=0;a--)if(o[a>>>2]>>>24-a%4*8&255){n.sigBytes=a+1;break}}},e.pad.ZeroPadding)},53538:function(he,y,i){var n,o,a,l,u,s,A,e;he.exports=(e=i(10012),i(32078),i(990),l=(o=(n=e).lib).WordArray,s=(u=n.algo).HMAC,A=u.PBKDF2=(a=o.Base).extend({cfg:a.extend({keySize:4,hasher:u.SHA256,iterations:25e4}),init:function(_){this.cfg=this.cfg.extend(_)},compute:function(_,C){for(var R=this.cfg,x=s.create(R.hasher,_),f=l.create(),k=l.create([1]),w=f.words,g=k.words,M=R.keySize,p=R.iterations;w.length<M;){var E=x.update(C).finalize(k);x.reset();for(var b=E.words,I=b.length,L=E,D=1;D<p;D++){L=x.finalize(L),x.reset();for(var F=L.words,P=0;P<I;P++)b[P]^=F[P]}f.concat(E),g[0]++}return f.sigBytes=4*M,f}}),n.PBKDF2=function(_,C,R){return A.create(R).compute(_,C)},e.PBKDF2)},77848:function(he,y,i){var e;he.exports=(e=i(10012),i(85506),i(92873),i(12066),i(13270),function(){var n=e,a=n.lib.StreamCipher,u=[],d=[],s=[],A=n.algo.RabbitLegacy=a.extend({_doReset:function(){var C=this._key.words,R=this.cfg.iv,x=this._X=[C[0],C[3]<<16|C[2]>>>16,C[1],C[0]<<16|C[3]>>>16,C[2],C[1]<<16|C[0]>>>16,C[3],C[2]<<16|C[1]>>>16],f=this._C=[C[2]<<16|C[2]>>>16,4294901760&C[0]|65535&C[1],C[3]<<16|C[3]>>>16,4294901760&C[1]|65535&C[2],C[0]<<16|C[0]>>>16,4294901760&C[2]|65535&C[3],C[1]<<16|C[1]>>>16,4294901760&C[3]|65535&C[0]];this._b=0;for(var k=0;k<4;k++)_.call(this);for(k=0;k<8;k++)f[k]^=x[k+4&7];if(R){var w=R.words,g=w[0],M=w[1],p=16711935&(g<<8|g>>>24)|4278255360&(g<<24|g>>>8),E=16711935&(M<<8|M>>>24)|4278255360&(M<<24|M>>>8),b=p>>>16|4294901760&E,I=E<<16|65535&p;for(f[0]^=p,f[1]^=b,f[2]^=E,f[3]^=I,f[4]^=p,f[5]^=b,f[6]^=E,f[7]^=I,k=0;k<4;k++)_.call(this)}},_doProcessBlock:function(C,R){var x=this._X;_.call(this),u[0]=x[0]^x[5]>>>16^x[3]<<16,u[1]=x[2]^x[7]>>>16^x[5]<<16,u[2]=x[4]^x[1]>>>16^x[7]<<16,u[3]=x[6]^x[3]>>>16^x[1]<<16;for(var f=0;f<4;f++)u[f]=16711935&(u[f]<<8|u[f]>>>24)|4278255360&(u[f]<<24|u[f]>>>8),C[R+f]^=u[f]},blockSize:4,ivSize:2});function _(){for(var C=this._X,R=this._C,x=0;x<8;x++)d[x]=R[x];for(R[0]=R[0]+1295307597+this._b|0,R[1]=R[1]+3545052371+(R[0]>>>0<d[0]>>>0?1:0)|0,R[2]=R[2]+886263092+(R[1]>>>0<d[1]>>>0?1:0)|0,R[3]=R[3]+1295307597+(R[2]>>>0<d[2]>>>0?1:0)|0,R[4]=R[4]+3545052371+(R[3]>>>0<d[3]>>>0?1:0)|0,R[5]=R[5]+886263092+(R[4]>>>0<d[4]>>>0?1:0)|0,R[6]=R[6]+1295307597+(R[5]>>>0<d[5]>>>0?1:0)|0,R[7]=R[7]+3545052371+(R[6]>>>0<d[6]>>>0?1:0)|0,this._b=R[7]>>>0<d[7]>>>0?1:0,x=0;x<8;x++){var f=C[x]+R[x],k=65535&f,w=f>>>16;s[x]=((k*k>>>17)+k*w>>>15)+w*w^((4294901760&f)*f|0)+((65535&f)*f|0)}C[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,C[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,C[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,C[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,C[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,C[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,C[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,C[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}n.RabbitLegacy=a._createHelper(A)}(),e.RabbitLegacy)},24969:function(he,y,i){var e;he.exports=(e=i(10012),i(85506),i(92873),i(12066),i(13270),function(){var n=e,a=n.lib.StreamCipher,u=[],d=[],s=[],A=n.algo.Rabbit=a.extend({_doReset:function(){for(var C=this._key.words,R=this.cfg.iv,x=0;x<4;x++)C[x]=16711935&(C[x]<<8|C[x]>>>24)|4278255360&(C[x]<<24|C[x]>>>8);var f=this._X=[C[0],C[3]<<16|C[2]>>>16,C[1],C[0]<<16|C[3]>>>16,C[2],C[1]<<16|C[0]>>>16,C[3],C[2]<<16|C[1]>>>16],k=this._C=[C[2]<<16|C[2]>>>16,4294901760&C[0]|65535&C[1],C[3]<<16|C[3]>>>16,4294901760&C[1]|65535&C[2],C[0]<<16|C[0]>>>16,4294901760&C[2]|65535&C[3],C[1]<<16|C[1]>>>16,4294901760&C[3]|65535&C[0]];for(this._b=0,x=0;x<4;x++)_.call(this);for(x=0;x<8;x++)k[x]^=f[x+4&7];if(R){var w=R.words,g=w[0],M=w[1],p=16711935&(g<<8|g>>>24)|4278255360&(g<<24|g>>>8),E=16711935&(M<<8|M>>>24)|4278255360&(M<<24|M>>>8),b=p>>>16|4294901760&E,I=E<<16|65535&p;for(k[0]^=p,k[1]^=b,k[2]^=E,k[3]^=I,k[4]^=p,k[5]^=b,k[6]^=E,k[7]^=I,x=0;x<4;x++)_.call(this)}},_doProcessBlock:function(C,R){var x=this._X;_.call(this),u[0]=x[0]^x[5]>>>16^x[3]<<16,u[1]=x[2]^x[7]>>>16^x[5]<<16,u[2]=x[4]^x[1]>>>16^x[7]<<16,u[3]=x[6]^x[3]>>>16^x[1]<<16;for(var f=0;f<4;f++)u[f]=16711935&(u[f]<<8|u[f]>>>24)|4278255360&(u[f]<<24|u[f]>>>8),C[R+f]^=u[f]},blockSize:4,ivSize:2});function _(){for(var C=this._X,R=this._C,x=0;x<8;x++)d[x]=R[x];for(R[0]=R[0]+1295307597+this._b|0,R[1]=R[1]+3545052371+(R[0]>>>0<d[0]>>>0?1:0)|0,R[2]=R[2]+886263092+(R[1]>>>0<d[1]>>>0?1:0)|0,R[3]=R[3]+1295307597+(R[2]>>>0<d[2]>>>0?1:0)|0,R[4]=R[4]+3545052371+(R[3]>>>0<d[3]>>>0?1:0)|0,R[5]=R[5]+886263092+(R[4]>>>0<d[4]>>>0?1:0)|0,R[6]=R[6]+1295307597+(R[5]>>>0<d[5]>>>0?1:0)|0,R[7]=R[7]+3545052371+(R[6]>>>0<d[6]>>>0?1:0)|0,this._b=R[7]>>>0<d[7]>>>0?1:0,x=0;x<8;x++){var f=C[x]+R[x],k=65535&f,w=f>>>16;s[x]=((k*k>>>17)+k*w>>>15)+w*w^((4294901760&f)*f|0)+((65535&f)*f|0)}C[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,C[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,C[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,C[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,C[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,C[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,C[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,C[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}n.Rabbit=a._createHelper(A)}(),e.Rabbit)},41195:function(he,y,i){var e;he.exports=(e=i(10012),i(85506),i(92873),i(12066),i(13270),function(){var n=e,a=n.lib.StreamCipher,l=n.algo,u=l.RC4=a.extend({_doReset:function(){for(var A=this._key,_=A.words,C=A.sigBytes,R=this._S=[],x=0;x<256;x++)R[x]=x;x=0;for(var f=0;x<256;x++){var k=x%C,g=R[x];R[x]=R[f=(f+R[x]+(_[k>>>2]>>>24-k%4*8&255))%256],R[f]=g}this._i=this._j=0},_doProcessBlock:function(A,_){A[_]^=d.call(this)},keySize:8,ivSize:0});function d(){for(var A=this._S,_=this._i,C=this._j,R=0,x=0;x<4;x++){var f=A[_=(_+1)%256];A[_]=A[C=(C+A[_])%256],A[C]=f,R|=A[(A[_]+A[C])%256]<<24-8*x}return this._i=_,this._j=C,R}n.RC4=a._createHelper(u);var s=l.RC4Drop=u.extend({cfg:u.cfg.extend({drop:192}),_doReset:function(){u._doReset.call(this);for(var A=this.cfg.drop;A>0;A--)d.call(this)}});n.RC4Drop=a._createHelper(s)}(),e.RC4)},35558:function(he,y,i){var e;he.exports=(e=i(10012),function(n){var o=e,a=o.lib,l=a.WordArray,u=a.Hasher,d=o.algo,s=l.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),A=l.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),_=l.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),C=l.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),R=l.create([0,1518500249,1859775393,2400959708,2840853838]),x=l.create([1352829926,1548603684,1836072691,2053994217,0]),f=d.RIPEMD160=u.extend({_doReset:function(){this._hash=l.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(b,I){for(var L=0;L<16;L++){var D=I+L,F=b[D];b[D]=16711935&(F<<8|F>>>24)|4278255360&(F<<24|F>>>8)}var J,Q,re,de,te,j,H,z,q,se,ne,P=this._hash.words,O=R.words,U=x.words,V=s.words,K=A.words,X=_.words,me=C.words;for(j=J=P[0],H=Q=P[1],z=re=P[2],q=de=P[3],se=te=P[4],L=0;L<80;L+=1)ne=J+b[I+V[L]]|0,ne+=L<16?k(Q,re,de)+O[0]:L<32?w(Q,re,de)+O[1]:L<48?g(Q,re,de)+O[2]:L<64?M(Q,re,de)+O[3]:p(Q,re,de)+O[4],ne=(ne=E(ne|=0,X[L]))+te|0,J=te,te=de,de=E(re,10),re=Q,Q=ne,ne=j+b[I+K[L]]|0,ne+=L<16?p(H,z,q)+U[0]:L<32?M(H,z,q)+U[1]:L<48?g(H,z,q)+U[2]:L<64?w(H,z,q)+U[3]:k(H,z,q)+U[4],ne=(ne=E(ne|=0,me[L]))+se|0,j=se,se=q,q=E(z,10),z=H,H=ne;ne=P[1]+re+q|0,P[1]=P[2]+de+se|0,P[2]=P[3]+te+j|0,P[3]=P[4]+J+H|0,P[4]=P[0]+Q+z|0,P[0]=ne},_doFinalize:function(){var b=this._data,I=b.words,L=8*this._nDataBytes,D=8*b.sigBytes;I[D>>>5]|=128<<24-D%32,I[14+(D+64>>>9<<4)]=16711935&(L<<8|L>>>24)|4278255360&(L<<24|L>>>8),b.sigBytes=4*(I.length+1),this._process();for(var F=this._hash,P=F.words,O=0;O<5;O++){var U=P[O];P[O]=16711935&(U<<8|U>>>24)|4278255360&(U<<24|U>>>8)}return F},clone:function(){var b=u.clone.call(this);return b._hash=this._hash.clone(),b}});function k(b,I,L){return b^I^L}function w(b,I,L){return b&I|~b&L}function g(b,I,L){return(b|~I)^L}function M(b,I,L){return b&L|I&~L}function p(b,I,L){return b^(I|~L)}function E(b,I){return b<<I|b>>>32-I}o.RIPEMD160=u._createHelper(f),o.HmacRIPEMD160=u._createHmacHelper(f)}(Math),e.RIPEMD160)},84446:function(he,y,i){var n,o,a,l,d,s,e;he.exports=(e=i(10012),a=(o=(n=e).lib).WordArray,d=[],s=n.algo.SHA1=(l=o.Hasher).extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(A,_){for(var C=this._hash.words,R=C[0],x=C[1],f=C[2],k=C[3],w=C[4],g=0;g<80;g++){if(g<16)d[g]=0|A[_+g];else{var M=d[g-3]^d[g-8]^d[g-14]^d[g-16];d[g]=M<<1|M>>>31}var p=(R<<5|R>>>27)+w+d[g];p+=g<20?1518500249+(x&f|~x&k):g<40?1859775393+(x^f^k):g<60?(x&f|x&k|f&k)-1894007588:(x^f^k)-899497514,w=k,k=f,f=x<<30|x>>>2,x=R,R=p}C[0]=C[0]+R|0,C[1]=C[1]+x|0,C[2]=C[2]+f|0,C[3]=C[3]+k|0,C[4]=C[4]+w|0},_doFinalize:function(){var A=this._data,_=A.words,C=8*this._nDataBytes,R=8*A.sigBytes;return _[R>>>5]|=128<<24-R%32,_[14+(R+64>>>9<<4)]=Math.floor(C/4294967296),_[15+(R+64>>>9<<4)]=C,A.sigBytes=4*_.length,this._process(),this._hash},clone:function(){var A=l.clone.call(this);return A._hash=this._hash.clone(),A}}),n.SHA1=l._createHelper(s),n.HmacSHA1=l._createHmacHelper(s),e.SHA1)},69811:function(he,y,i){var n,a,l,u,d,e;he.exports=(e=i(10012),i(32078),a=(n=e).lib.WordArray,d=(l=n.algo).SHA224=(u=l.SHA256).extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var s=u._doFinalize.call(this);return s.sigBytes-=4,s}}),n.SHA224=u._createHelper(d),n.HmacSHA224=u._createHmacHelper(d),e.SHA224)},32078:function(he,y,i){var e;he.exports=(e=i(10012),function(n){var o=e,a=o.lib,l=a.WordArray,u=a.Hasher,d=o.algo,s=[],A=[];!function(){function R(w){for(var g=n.sqrt(w),M=2;M<=g;M++)if(!(w%M))return!1;return!0}function x(w){return 4294967296*(w-(0|w))|0}for(var f=2,k=0;k<64;)R(f)&&(k<8&&(s[k]=x(n.pow(f,.5))),A[k]=x(n.pow(f,1/3)),k++),f++}();var _=[],C=d.SHA256=u.extend({_doReset:function(){this._hash=new l.init(s.slice(0))},_doProcessBlock:function(R,x){for(var f=this._hash.words,k=f[0],w=f[1],g=f[2],M=f[3],p=f[4],E=f[5],b=f[6],I=f[7],L=0;L<64;L++){if(L<16)_[L]=0|R[x+L];else{var D=_[L-15],P=_[L-2];_[L]=((D<<25|D>>>7)^(D<<14|D>>>18)^D>>>3)+_[L-7]+((P<<15|P>>>17)^(P<<13|P>>>19)^P>>>10)+_[L-16]}var V=k&w^k&g^w&g,me=I+((p<<26|p>>>6)^(p<<21|p>>>11)^(p<<7|p>>>25))+(p&E^~p&b)+A[L]+_[L];I=b,b=E,E=p,p=M+me|0,M=g,g=w,w=k,k=me+(((k<<30|k>>>2)^(k<<19|k>>>13)^(k<<10|k>>>22))+V)|0}f[0]=f[0]+k|0,f[1]=f[1]+w|0,f[2]=f[2]+g|0,f[3]=f[3]+M|0,f[4]=f[4]+p|0,f[5]=f[5]+E|0,f[6]=f[6]+b|0,f[7]=f[7]+I|0},_doFinalize:function(){var R=this._data,x=R.words,f=8*this._nDataBytes,k=8*R.sigBytes;return x[k>>>5]|=128<<24-k%32,x[14+(k+64>>>9<<4)]=n.floor(f/4294967296),x[15+(k+64>>>9<<4)]=f,R.sigBytes=4*x.length,this._process(),this._hash},clone:function(){var R=u.clone.call(this);return R._hash=this._hash.clone(),R}});o.SHA256=u._createHelper(C),o.HmacSHA256=u._createHmacHelper(C)}(Math),e.SHA256)},26545:function(he,y,i){var e;he.exports=(e=i(10012),i(31802),function(n){var o=e,a=o.lib,l=a.WordArray,u=a.Hasher,s=o.x64.Word,A=o.algo,_=[],C=[],R=[];!function(){for(var k=1,w=0,g=0;g<24;g++){_[k+5*w]=(g+1)*(g+2)/2%64;var p=(2*k+3*w)%5;k=w%5,w=p}for(k=0;k<5;k++)for(w=0;w<5;w++)C[k+5*w]=w+(2*k+3*w)%5*5;for(var E=1,b=0;b<24;b++){for(var I=0,L=0,D=0;D<7;D++){if(1&E){var F=(1<<D)-1;F<32?L^=1<<F:I^=1<<F-32}128&E?E=E<<1^113:E<<=1}R[b]=s.create(I,L)}}();var x=[];!function(){for(var k=0;k<25;k++)x[k]=s.create()}();var f=A.SHA3=u.extend({cfg:u.cfg.extend({outputLength:512}),_doReset:function(){for(var k=this._state=[],w=0;w<25;w++)k[w]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(k,w){for(var g=this._state,M=this.blockSize/2,p=0;p<M;p++){var E=k[w+2*p],b=k[w+2*p+1];E=16711935&(E<<8|E>>>24)|4278255360&(E<<24|E>>>8),(I=g[p]).high^=b=16711935&(b<<8|b>>>24)|4278255360&(b<<24|b>>>8),I.low^=E}for(var L=0;L<24;L++){for(var D=0;D<5;D++){for(var F=0,P=0,O=0;O<5;O++)F^=(I=g[D+5*O]).high,P^=I.low;var U=x[D];U.high=F,U.low=P}for(D=0;D<5;D++){var V=x[(D+4)%5],K=x[(D+1)%5],X=K.high,me=K.low;for(F=V.high^(X<<1|me>>>31),P=V.low^(me<<1|X>>>31),O=0;O<5;O++)(I=g[D+5*O]).high^=F,I.low^=P}for(var J=1;J<25;J++){var Q=(I=g[J]).high,re=I.low,de=_[J];de<32?(F=Q<<de|re>>>32-de,P=re<<de|Q>>>32-de):(F=re<<de-32|Q>>>64-de,P=Q<<de-32|re>>>64-de);var te=x[C[J]];te.high=F,te.low=P}var j=x[0],H=g[0];for(j.high=H.high,j.low=H.low,D=0;D<5;D++)for(O=0;O<5;O++){var z=x[J=D+5*O],q=x[(D+1)%5+5*O],se=x[(D+2)%5+5*O];(I=g[J]).high=z.high^~q.high&se.high,I.low=z.low^~q.low&se.low}var I,ne=R[L];(I=g[0]).high^=ne.high,I.low^=ne.low}},_doFinalize:function(){var k=this._data,w=k.words,M=8*k.sigBytes,p=32*this.blockSize;w[M>>>5]|=1<<24-M%32,w[(n.ceil((M+1)/p)*p>>>5)-1]|=128,k.sigBytes=4*w.length,this._process();for(var E=this._state,b=this.cfg.outputLength/8,I=b/8,L=[],D=0;D<I;D++){var F=E[D],P=F.high,O=F.low;P=16711935&(P<<8|P>>>24)|4278255360&(P<<24|P>>>8),L.push(O=16711935&(O<<8|O>>>24)|4278255360&(O<<24|O>>>8)),L.push(P)}return new l.init(L,b)},clone:function(){for(var k=u.clone.call(this),w=k._state=this._state.slice(0),g=0;g<25;g++)w[g]=w[g].clone();return k}});o.SHA3=u._createHelper(f),o.HmacSHA3=u._createHmacHelper(f)}(Math),e.SHA3)},72913:function(he,y,i){var n,o,a,l,u,d,s,e;he.exports=(e=i(10012),i(31802),i(24870),a=(o=(n=e).x64).Word,l=o.WordArray,s=(u=n.algo).SHA384=(d=u.SHA512).extend({_doReset:function(){this._hash=new l.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var A=d._doFinalize.call(this);return A.sigBytes-=16,A}}),n.SHA384=d._createHelper(s),n.HmacSHA384=d._createHmacHelper(s),e.SHA384)},24870:function(he,y,i){var e;he.exports=(e=i(10012),i(31802),function(){var n=e,a=n.lib.Hasher,l=n.x64,u=l.Word,d=l.WordArray,s=n.algo;function A(){return u.create.apply(u,arguments)}var _=[A(1116352408,3609767458),A(1899447441,602891725),A(3049323471,3964484399),A(3921009573,2173295548),A(961987163,4081628472),A(1508970993,3053834265),A(2453635748,2937671579),A(2870763221,3664609560),A(3624381080,2734883394),A(310598401,1164996542),A(607225278,1323610764),A(1426881987,3590304994),A(1925078388,4068182383),A(2162078206,991336113),A(2614888103,633803317),A(3248222580,3479774868),A(3835390401,2666613458),A(4022224774,944711139),A(264347078,2341262773),A(604807628,2007800933),A(770255983,1495990901),A(1249150122,1856431235),A(1555081692,3175218132),A(1996064986,2198950837),A(2554220882,3999719339),A(2821834349,766784016),A(2952996808,2566594879),A(3210313671,3203337956),A(3336571891,1034457026),A(3584528711,2466948901),A(113926993,3758326383),A(338241895,168717936),A(666307205,1188179964),A(773529912,1546045734),A(1294757372,1522805485),A(1396182291,2643833823),A(1695183700,2343527390),A(1986661051,1014477480),A(2177026350,1206759142),A(2456956037,344077627),A(2730485921,1290863460),A(2820302411,3158454273),A(3259730800,3505952657),A(3345764771,106217008),A(3516065817,3606008344),A(3600352804,1432725776),A(4094571909,1467031594),A(275423344,851169720),A(430227734,3100823752),A(506948616,1363258195),A(659060556,3750685593),A(883997877,3785050280),A(958139571,3318307427),A(1322822218,3812723403),A(1537002063,2003034995),A(1747873779,3602036899),A(1955562222,1575990012),A(2024104815,1125592928),A(2227730452,2716904306),A(2361852424,442776044),A(2428436474,593698344),A(2756734187,3733110249),A(3204031479,2999351573),A(3329325298,3815920427),A(3391569614,3928383900),A(3515267271,566280711),A(3940187606,3454069534),A(4118630271,4000239992),A(116418474,1914138554),A(174292421,2731055270),A(289380356,3203993006),A(460393269,320620315),A(685471733,587496836),A(852142971,1086792851),A(1017036298,365543100),A(1126000580,2618297676),A(1288033470,3409855158),A(1501505948,4234509866),A(1607167915,987167468),A(1816402316,1246189591)],C=[];!function(){for(var x=0;x<80;x++)C[x]=A()}();var R=s.SHA512=a.extend({_doReset:function(){this._hash=new d.init([new u.init(1779033703,4089235720),new u.init(3144134277,2227873595),new u.init(1013904242,4271175723),new u.init(2773480762,1595750129),new u.init(1359893119,2917565137),new u.init(2600822924,725511199),new u.init(528734635,4215389547),new u.init(1541459225,327033209)])},_doProcessBlock:function(x,f){for(var k=this._hash.words,w=k[0],g=k[1],M=k[2],p=k[3],E=k[4],b=k[5],I=k[6],L=k[7],D=w.high,F=w.low,P=g.high,O=g.low,U=M.high,V=M.low,K=p.high,X=p.low,me=E.high,J=E.low,Q=b.high,re=b.low,de=I.high,te=I.low,j=L.high,H=L.low,z=D,q=F,se=P,ne=O,_e=U,ge=V,Ce=K,Te=X,De=me,fe=J,xe=Q,Oe=re,Le=de,Gt=te,Ut=j,An=H,$n=0;$n<80;$n++){var xn,mt,ut=C[$n];if($n<16)mt=ut.high=0|x[f+2*$n],xn=ut.low=0|x[f+2*$n+1];else{var Wt=C[$n-15],dn=Wt.high,sn=Wt.low,yi=(sn>>>1|dn<<31)^(sn>>>8|dn<<24)^(sn>>>7|dn<<25),nn=C[$n-2],Mi=nn.high,mi=nn.low,Ko=(mi>>>19|Mi<<13)^(mi<<3|Mi>>>29)^(mi>>>6|Mi<<26),xo=C[$n-7],Ji=C[$n-16],un=Ji.low;ut.high=mt=(mt=(mt=((dn>>>1|sn<<31)^(dn>>>8|sn<<24)^dn>>>7)+xo.high+((xn=yi+xo.low)>>>0<yi>>>0?1:0))+((Mi>>>19|mi<<13)^(Mi<<3|mi>>>29)^Mi>>>6)+((xn+=Ko)>>>0<Ko>>>0?1:0))+Ji.high+((xn+=un)>>>0<un>>>0?1:0),ut.low=xn}var Ne,Ki=De&xe^~De&Le,Fn=fe&Oe^~fe&Gt,oi=z&se^z&_e^se&_e,xt=(q>>>28|z<<4)^(q<<30|z>>>2)^(q<<25|z>>>7),pt=_[$n],tt=pt.low,vt=Ut+((De>>>14|fe<<18)^(De>>>18|fe<<14)^(De<<23|fe>>>9))+((Ne=An+((fe>>>14|De<<18)^(fe>>>18|De<<14)^(fe<<23|De>>>9)))>>>0<An>>>0?1:0),ln=xt+(q&ne^q&ge^ne&ge);Ut=Le,An=Gt,Le=xe,Gt=Oe,xe=De,Oe=fe,De=Ce+(vt=(vt=(vt=vt+Ki+((Ne+=Fn)>>>0<Fn>>>0?1:0))+pt.high+((Ne+=tt)>>>0<tt>>>0?1:0))+mt+((Ne+=xn)>>>0<xn>>>0?1:0))+((fe=Te+Ne|0)>>>0<Te>>>0?1:0)|0,Ce=_e,Te=ge,_e=se,ge=ne,se=z,ne=q,z=vt+(((z>>>28|q<<4)^(z<<30|q>>>2)^(z<<25|q>>>7))+oi+(ln>>>0<xt>>>0?1:0))+((q=Ne+ln|0)>>>0<Ne>>>0?1:0)|0}F=w.low=F+q,w.high=D+z+(F>>>0<q>>>0?1:0),O=g.low=O+ne,g.high=P+se+(O>>>0<ne>>>0?1:0),V=M.low=V+ge,M.high=U+_e+(V>>>0<ge>>>0?1:0),X=p.low=X+Te,p.high=K+Ce+(X>>>0<Te>>>0?1:0),J=E.low=J+fe,E.high=me+De+(J>>>0<fe>>>0?1:0),re=b.low=re+Oe,b.high=Q+xe+(re>>>0<Oe>>>0?1:0),te=I.low=te+Gt,I.high=de+Le+(te>>>0<Gt>>>0?1:0),H=L.low=H+An,L.high=j+Ut+(H>>>0<An>>>0?1:0)},_doFinalize:function(){var x=this._data,f=x.words,k=8*this._nDataBytes,w=8*x.sigBytes;return f[w>>>5]|=128<<24-w%32,f[30+(w+128>>>10<<5)]=Math.floor(k/4294967296),f[31+(w+128>>>10<<5)]=k,x.sigBytes=4*f.length,this._process(),this._hash.toX32()},clone:function(){var x=a.clone.call(this);return x._hash=this._hash.clone(),x},blockSize:32});n.SHA512=a._createHelper(R),n.HmacSHA512=a._createHmacHelper(R)}(),e.SHA512)},75769:function(he,y,i){var e;he.exports=(e=i(10012),i(85506),i(92873),i(12066),i(13270),function(){var n=e,o=n.lib,a=o.WordArray,l=o.BlockCipher,u=n.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],A=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],_=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],C=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],R=u.DES=l.extend({_doReset:function(){for(var g=this._key.words,M=[],p=0;p<56;p++){var E=d[p]-1;M[p]=g[E>>>5]>>>31-E%32&1}for(var b=this._subKeys=[],I=0;I<16;I++){var L=b[I]=[],D=A[I];for(p=0;p<24;p++)L[p/6|0]|=M[(s[p]-1+D)%28]<<31-p%6,L[4+(p/6|0)]|=M[28+(s[p+24]-1+D)%28]<<31-p%6;for(L[0]=L[0]<<1|L[0]>>>31,p=1;p<7;p++)L[p]=L[p]>>>4*(p-1)+3;L[7]=L[7]<<5|L[7]>>>27}var F=this._invSubKeys=[];for(p=0;p<16;p++)F[p]=b[15-p]},encryptBlock:function(w,g){this._doCryptBlock(w,g,this._subKeys)},decryptBlock:function(w,g){this._doCryptBlock(w,g,this._invSubKeys)},_doCryptBlock:function(w,g,M){this._lBlock=w[g],this._rBlock=w[g+1],x.call(this,4,252645135),x.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),x.call(this,1,1431655765);for(var p=0;p<16;p++){for(var E=M[p],b=this._lBlock,I=this._rBlock,L=0,D=0;D<8;D++)L|=_[D][((I^E[D])&C[D])>>>0];this._lBlock=I,this._rBlock=b^L}var F=this._lBlock;this._lBlock=this._rBlock,this._rBlock=F,x.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),x.call(this,16,65535),x.call(this,4,252645135),w[g]=this._lBlock,w[g+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function x(w,g){var M=(this._lBlock>>>w^this._rBlock)&g;this._rBlock^=M,this._lBlock^=M<<w}function f(w,g){var M=(this._rBlock>>>w^this._lBlock)&g;this._lBlock^=M,this._rBlock^=M<<w}n.DES=l._createHelper(R);var k=u.TripleDES=l.extend({_doReset:function(){var g=this._key.words;if(2!==g.length&&4!==g.length&&g.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var M=g.slice(0,2),p=g.length<4?g.slice(0,2):g.slice(2,4),E=g.length<6?g.slice(0,2):g.slice(4,6);this._des1=R.createEncryptor(a.create(M)),this._des2=R.createEncryptor(a.create(p)),this._des3=R.createEncryptor(a.create(E))},encryptBlock:function(w,g){this._des1.encryptBlock(w,g),this._des2.decryptBlock(w,g),this._des3.encryptBlock(w,g)},decryptBlock:function(w,g){this._des3.decryptBlock(w,g),this._des2.encryptBlock(w,g),this._des1.decryptBlock(w,g)},keySize:6,ivSize:2,blockSize:2});n.TripleDES=l._createHelper(k)}(),e.TripleDES)},31802:function(he,y,i){var a,l,u,d,e;he.exports=(e=i(10012),l=(a=e.lib).Base,u=a.WordArray,(d=e.x64={}).Word=l.extend({init:function(_,C){this.high=_,this.low=C}}),d.WordArray=l.extend({init:function(_,C){_=this.words=_||[],this.sigBytes=null!=C?C:8*_.length},toX32:function(){for(var _=this.words,C=_.length,R=[],x=0;x<C;x++){var f=_[x];R.push(f.high),R.push(f.low)}return u.create(R,this.sigBytes)},clone:function(){for(var _=l.clone.call(this),C=_.words=this.words.slice(0),R=C.length,x=0;x<R;x++)C[x]=C[x].clone();return _}}),e)},33667:()=>{!function(){if(!(typeof window>"u"))try{var he=new window.CustomEvent("test",{cancelable:!0});if(he.preventDefault(),!0!==he.defaultPrevented)throw new Error("Could not prevent default")}catch{var y=function(e,n){var o,a;return(n=n||{}).bubbles=!!n.bubbles,n.cancelable=!!n.cancelable,(o=document.createEvent("CustomEvent")).initCustomEvent(e,n.bubbles,n.cancelable,n.detail),a=o.preventDefault,o.preventDefault=function(){a.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch{this.defaultPrevented=!0}},o};y.prototype=window.Event.prototype,window.CustomEvent=y}}()},44672:(he,y,i)=>{"use strict";var n=i(31443),o=i(55503),a=i(1480),l=i(23881),u=function e(_){return _&&"object"==typeof _&&"default"in _?_.default:_}(i(12404));function d(_,C){void 0===C&&(C={});var R=this,x=4,f=!1;this.margin=C.margin||-1,this.scrollWhenOutside=C.scrollWhenOutside||!1;var k={},w=l.createPointCB(k),g=u(),M=!1;window.addEventListener("mousemove",w,!1),window.addEventListener("touchmove",w,!1),isNaN(C.maxSpeed)||(x=C.maxSpeed),this.autoScroll=n.boolean(C.autoScroll),this.syncMove=n.boolean(C.syncMove,!1),this.destroy=function(te){window.removeEventListener("mousemove",w,!1),window.removeEventListener("touchmove",w,!1),window.removeEventListener("mousedown",F,!1),window.removeEventListener("touchstart",F,!1),window.removeEventListener("mouseup",P,!1),window.removeEventListener("touchend",P,!1),window.removeEventListener("pointerup",P,!1),window.removeEventListener("mouseleave",U,!1),window.removeEventListener("mousemove",X,!1),window.removeEventListener("touchmove",X,!1),window.removeEventListener("scroll",D,!0),_=[],te&&O()},this.add=function(){for(var te=[],j=arguments.length;j--;)te[j]=arguments[j];return a.addElements.apply(void 0,[_].concat(te)),this},this.remove=function(){for(var te=[],j=arguments.length;j--;)te[j]=arguments[j];return a.removeElements.apply(void 0,[_].concat(te))};var E,te,p=null;"[object Array]"!==Object.prototype.toString.call(_)&&(_=[_]),te=_,_=[],te.forEach(function(j){j===window?p=window:R.add(j)}),Object.defineProperties(this,{down:{get:function(){return M}},maxSpeed:{get:function(){return x}},point:{get:function(){return k}},scrolling:{get:function(){return f}}});var L,I=null;function D(te){for(var j=0;j<_.length;j++)if(_[j]===te.target){f=!0;break}f&&o.requestAnimationFrame(function(){return f=!1})}function F(){M=!0}function P(){M=!1,O()}function O(){o.cancelAnimationFrame(L),o.cancelAnimationFrame(E)}function U(){M=!1}function K(){for(var te=null,j=0;j<_.length;j++)A(k,_[j])&&(te=_[j]);return te}function X(te){if(R.autoScroll()&&!te.dispatched){var j=te.target,H=document.body;I&&!A(k,I)&&(R.scrollWhenOutside||(I=null)),j&&j.parentNode===H?j=K():(j=function V(te){if(!te)return null;if(I===te||a.hasElement(_,te))return te;for(;te=te.parentNode;)if(a.hasElement(_,te))return te;return null}(j),j||(j=K())),j&&j!==I&&(I=j),p&&(o.cancelAnimationFrame(E),E=o.requestAnimationFrame(me)),I&&(o.cancelAnimationFrame(L),L=o.requestAnimationFrame(J))}}function me(){Q(p),o.cancelAnimationFrame(E),E=o.requestAnimationFrame(me)}function J(){I&&(Q(I),o.cancelAnimationFrame(L),L=o.requestAnimationFrame(J))}function Q(te){var H,z,j=l.getClientRect(te);H=k.x<j.left+R.margin?Math.floor(Math.max(-1,(k.x-j.left)/R.margin-1)*R.maxSpeed):k.x>j.right-R.margin?Math.ceil(Math.min(1,(k.x-j.right)/R.margin+1)*R.maxSpeed):0,z=k.y<j.top+R.margin?Math.floor(Math.max(-1,(k.y-j.top)/R.margin-1)*R.maxSpeed):k.y>j.bottom-R.margin?Math.ceil(Math.min(1,(k.y-j.bottom)/R.margin+1)*R.maxSpeed):0,R.syncMove()&&g.dispatch(te,{pageX:k.pageX+H,pageY:k.pageY+z,clientX:k.x+H,clientY:k.y+z}),setTimeout(function(){z&&function re(te,j){te===window?window.scrollTo(te.pageXOffset,te.pageYOffset+j):te.scrollTop+=j}(te,z),H&&function de(te,j){te===window?window.scrollTo(te.pageXOffset+j,te.pageYOffset):te.scrollLeft+=j}(te,H)})}window.addEventListener("mousedown",F,!1),window.addEventListener("touchstart",F,!1),window.addEventListener("mouseup",P,!1),window.addEventListener("touchend",P,!1),window.addEventListener("pointerup",P,!1),window.addEventListener("mousemove",X,!1),window.addEventListener("touchmove",X,!1),window.addEventListener("mouseleave",U,!1),window.addEventListener("scroll",D,!0)}function A(_,C,R){return R?_.y>R.top&&_.y<R.bottom&&_.x>R.left&&_.x<R.right:l.pointInside(_,C)}he.exports=function s(_,C){return new d(_,C)}},12404:he=>{"use strict";var u,y=void 0;"function"!=typeof Object.create?(u=function(){},y=function(d,s){if(d!==Object(d)&&null!==d)throw TypeError("Argument must be an object, or null");u.prototype=d||{};var A=new u;return u.prototype=null,void 0!==s&&Object.defineProperties(A,s),null===d&&(A.__proto__=null),A}):y=Object.create;var i=y,e=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function o(l,u){u=u||{};for(var d=i(l),s=0;s<e.length;s++)void 0!==u[e[s]]&&(d[e[s]]=u[e[s]]);return d}function a(l,u){console.log("data ",u),l.data=u||{},l.dispatched="mousemove"}he.exports=function n(l){var u={screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,button:0,buttons:1,relatedTarget:null,region:null};function d(_){for(var C=0;C<e.length;C++)u[e[C]]=_[e[C]]}return void 0!==l&&l.addEventListener("mousemove",d),{destroy:function A(){l&&l.removeEventListener("mousemove",d,!1),u=null},dispatch:MouseEvent?function(C,R,x){var f=new MouseEvent("mousemove",o(u,R));return a(f,x),C.dispatchEvent(f)}:"function"==typeof document.createEvent?function(C,R,x){var f=o(u,R),k=document.createEvent("MouseEvents");return k.initMouseEvent("mousemove",!0,!0,window,0,f.screenX,f.screenY,f.clientX,f.clientY,f.ctrlKey,f.altKey,f.shiftKey,f.metaKey,f.button,f.relatedTarget),a(k,x),C.dispatchEvent(k)}:"function"==typeof document.createEventObject?function(C,R,x){var f=document.createEventObject(),k=o(u,R);for(var w in k)f[w]=k[w];return a(f,x),C.dispatchEvent(f)}:void 0}}},23881:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var n=function e(u){return u&&"object"==typeof u&&"default"in u?u.default:u}(i(23492));function a(u){if(u===window)return function o(){var u={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},u);var d={};return Object.defineProperties(d,u),d}();try{var d=u.getBoundingClientRect();return void 0===d.x&&(d.x=d.left,d.y=d.top),d}catch{throw new TypeError("Can't call getBoundingClientRect on "+u)}}y.createPointCB=n,y.getClientRect=a,y.pointInside=function l(u,d){var s=a(d);return u.y>s.top&&u.y<s.bottom&&u.x>s.left&&u.x<s.right}},1480:(he,y,i)=>{"use strict";function e(g){return g&&"object"==typeof g&&"default"in g?g.default:g}Object.defineProperty(y,"__esModule",{value:!0});var n=e(i(98310)),o=e(i(71402)),a=e(i(58294)),l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol?"symbol":typeof g},u=function(g){return null!=g&&"object"===(typeof g>"u"?"undefined":l(g))&&1===g.nodeType&&"object"===l(g.style)&&"object"===l(g.ownerDocument)};function d(g){if("string"==typeof g)try{return document.querySelector(g)}catch(M){throw M}else if(a(g))return g}function A(g,M){if(M=w(M,!0),!u(M))return-1;for(var p=0;p<g.length;p++)if(g[p]===M)return p;return-1}function _(g,M){return-1!==A(g,M)}function C(g){if(!g)return[];try{return"string"==typeof g?n(document.querySelectorAll(g)):o(g)?g.map(w):typeof g.length>"u"?[w(g)]:n(g,w)}catch(M){throw new Error(M)}}function w(g,M){if("string"==typeof g)try{return document.querySelector(g)}catch(p){throw p}if(!u(g)&&!M)throw new TypeError(g+" is not a DOM element.");return g}y.indexOfElement=A,y.hasElement=_,y.domListOf=C,y.concatElementLists=function R(){for(var g=[],M=arguments.length;M--;)g[M]=arguments[M];return g.reduce(function(p,E){return E.length?p:p.concat(C(E))},[])},y.addElements=function f(g){for(var M=[],p=arguments.length-1;p-- >0;)M[p]=arguments[p+1];return function x(g,M){for(var p=0;p<M.length;p++)_(g,M[p])||g.push(M[p]);return M}(g,M=M.map(w))},y.removeElements=function k(g){for(var M=[],p=arguments.length-1;p-- >0;)M[p]=arguments[p+1];return M.map(w).reduce(function(E,b){var I=A(g,b);return-1!==I?E.concat(g.splice(I,1)):E},[])},y.resolveElement=w,y.select=d,y.selectAll=function s(g){return"string"==typeof g?Array.prototype.slice.apply(document.querySelectorAll(g)):o(g)?g.map(d):"length"in g?n(g).map(d):void 0}},70896:function(he){
/*! @license DOMPurify 2.5.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.6/LICENSE */
he.exports=function(){"use strict";function y(dn){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(sn){return typeof sn}:function(sn){return sn&&"function"==typeof Symbol&&sn.constructor===Symbol&&sn!==Symbol.prototype?"symbol":typeof sn})(dn)}function i(dn,sn){return(i=Object.setPrototypeOf||function(yi,nn){return yi.__proto__=nn,yi})(dn,sn)}function n(dn,sn,fn){return(n=function e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(nn,Mi,mi){var Eo=[null];Eo.push.apply(Eo,Mi);var xo=new(Function.bind.apply(nn,Eo));return mi&&i(xo,mi.prototype),xo}).apply(null,arguments)}function o(dn){return function a(dn){if(Array.isArray(dn))return d(dn)}(dn)||function l(dn){if(typeof Symbol<"u"&&null!=dn[Symbol.iterator]||null!=dn["@@iterator"])return Array.from(dn)}(dn)||function u(dn,sn){if(dn){if("string"==typeof dn)return d(dn,sn);var fn=Object.prototype.toString.call(dn).slice(8,-1);if("Object"===fn&&dn.constructor&&(fn=dn.constructor.name),"Map"===fn||"Set"===fn)return Array.from(dn);if("Arguments"===fn||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(fn))return d(dn,sn)}}(dn)||function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(dn,sn){(null==sn||sn>dn.length)&&(sn=dn.length);for(var fn=0,yi=new Array(sn);fn<sn;fn++)yi[fn]=dn[fn];return yi}var A=Object.hasOwnProperty,_=Object.setPrototypeOf,C=Object.isFrozen,R=Object.getPrototypeOf,x=Object.getOwnPropertyDescriptor,f=Object.freeze,k=Object.seal,w=Object.create,g=typeof Reflect<"u"&&Reflect,M=g.apply,p=g.construct;M||(M=function(sn,fn,yi){return sn.apply(fn,yi)}),f||(f=function(sn){return sn}),k||(k=function(sn){return sn}),p||(p=function(sn,fn){return n(sn,o(fn))});var E=X(Array.prototype.forEach),b=X(Array.prototype.pop),I=X(Array.prototype.push),L=X(String.prototype.toLowerCase),D=X(String.prototype.toString),F=X(String.prototype.match),P=X(String.prototype.replace),O=X(String.prototype.indexOf),U=X(String.prototype.trim),V=X(RegExp.prototype.test),K=function me(dn){return function(){for(var sn=arguments.length,fn=new Array(sn),yi=0;yi<sn;yi++)fn[yi]=arguments[yi];return p(dn,fn)}}(TypeError);function X(dn){return function(sn){for(var fn=arguments.length,yi=new Array(fn>1?fn-1:0),nn=1;nn<fn;nn++)yi[nn-1]=arguments[nn];return M(dn,sn,yi)}}function J(dn,sn,fn){var yi;fn=null!==(yi=fn)&&void 0!==yi?yi:L,_&&_(dn,null);for(var nn=sn.length;nn--;){var Mi=sn[nn];if("string"==typeof Mi){var mi=fn(Mi);mi!==Mi&&(C(sn)||(sn[nn]=mi),Mi=mi)}dn[Mi]=!0}return dn}function Q(dn){var fn,sn=w(null);for(fn in dn)!0===M(A,dn,[fn])&&(sn[fn]=dn[fn]);return sn}function re(dn,sn){for(;null!==dn;){var fn=x(dn,sn);if(fn){if(fn.get)return X(fn.get);if("function"==typeof fn.value)return X(fn.value)}dn=R(dn)}return function yi(nn){return console.warn("fallback value for",nn),null}}var de=f(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),te=f(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),j=f(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),H=f(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),z=f(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),q=f(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),se=f(["#text"]),ne=f(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),_e=f(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ge=f(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ce=f(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Te=k(/\{\{[\w\W]*|[\w\W]*\}\}/gm),De=k(/<%[\w\W]*|[\w\W]*%>/gm),fe=k(/\${[\w\W]*}/gm),xe=k(/^data-[\-\w.\u00B7-\uFFFF]/),Oe=k(/^aria-[\-\w]+$/),Le=k(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Gt=k(/^(?:\w+script|data):/i),Ut=k(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),An=k(/^html$/i),$n=k(/^[a-z][.\w]*(-[.\w]+)+$/i);return function ut(){var dn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:typeof window>"u"?null:window,sn=function(Zr){return ut(Zr)};if(sn.version="2.5.6",sn.removed=[],!dn||!dn.document||9!==dn.document.nodeType)return sn.isSupported=!1,sn;var fn=dn.document,yi=dn.document,nn=dn.DocumentFragment,Mi=dn.HTMLTemplateElement,mi=dn.Node,Eo=dn.Element,Ko=dn.NodeFilter,xo=dn.NamedNodeMap,Bn=void 0===xo?dn.NamedNodeMap||dn.MozNamedAttrMap:xo,Xt=dn.HTMLFormElement,Ji=dn.DOMParser,En=dn.trustedTypes,un=Eo.prototype,Ki=re(un,"cloneNode"),Fn=re(un,"nextSibling"),oi=re(un,"childNodes"),It=re(un,"parentNode");if("function"==typeof Mi){var Bt=yi.createElement("template");Bt.content&&Bt.content.ownerDocument&&(yi=Bt.content.ownerDocument)}var xt=function(sn,fn){if("object"!==y(sn)||"function"!=typeof sn.createPolicy)return null;var yi=null,nn="data-tt-policy-suffix";fn.currentScript&&fn.currentScript.hasAttribute(nn)&&(yi=fn.currentScript.getAttribute(nn));var Mi="dompurify"+(yi?"#"+yi:"");try{return sn.createPolicy(Mi,{createHTML:function(Eo){return Eo},createScriptURL:function(Eo){return Eo}})}catch{return console.warn("TrustedTypes policy "+Mi+" could not be created."),null}}(En,fn),wt=xt?xt.createHTML(""):"",pt=yi.implementation,Lt=yi.createNodeIterator,tt=yi.createDocumentFragment,Ne=yi.getElementsByTagName,vt=fn.importNode,ln={};try{ln=Q(yi).documentMode?yi.documentMode:{}}catch{}var jn={};sn.isSupported="function"==typeof It&&pt&&void 0!==pt.createHTMLDocument&&9!==ln;var Ti,mo,Pi=Te,go=De,si=fe,ot=xe,pn=Oe,_i=Gt,wi=Ut,hi=$n,zn=Le,Ei=null,li=J({},[].concat(o(de),o(te),o(j),o(z),o(se))),Xi=null,ki=J({},[].concat(o(ne),o(_e),o(ge),o(Ce))),bo=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),jo=null,wn=null,Zi=!0,oo=!0,Bi=!1,Xo=!0,Lo=!1,or=!0,xr=!1,Nr=!1,as=!1,ji=!1,Fo=!1,rt=!1,ai=!0,Gn=!1,wr=!0,bs=!1,ba={},ms=null,Oa=J({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ea=null,Sa=J({},["audio","video","img","source","image","track"]),tr=null,Mr=J({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Li="http://www.w3.org/1998/Math/MathML",Ao="http://www.w3.org/2000/svg",ao="http://www.w3.org/1999/xhtml",Go=ao,pr=!1,Rr=null,br=J({},[Li,Ao,ao],D),mr=["application/xhtml+xml","text/html"],Ii=null,yo=yi.createElement("form"),lr=function(Zr){return Zr instanceof RegExp||Zr instanceof Function},Yr=function(Zr){Ii&&Ii===Zr||((!Zr||"object"!==y(Zr))&&(Zr={}),Zr=Q(Zr),Ti=Ti=-1===mr.indexOf(Zr.PARSER_MEDIA_TYPE)?"text/html":Zr.PARSER_MEDIA_TYPE,mo="application/xhtml+xml"===Ti?D:L,Ei="ALLOWED_TAGS"in Zr?J({},Zr.ALLOWED_TAGS,mo):li,Xi="ALLOWED_ATTR"in Zr?J({},Zr.ALLOWED_ATTR,mo):ki,Rr="ALLOWED_NAMESPACES"in Zr?J({},Zr.ALLOWED_NAMESPACES,D):br,tr="ADD_URI_SAFE_ATTR"in Zr?J(Q(Mr),Zr.ADD_URI_SAFE_ATTR,mo):Mr,Ea="ADD_DATA_URI_TAGS"in Zr?J(Q(Sa),Zr.ADD_DATA_URI_TAGS,mo):Sa,ms="FORBID_CONTENTS"in Zr?J({},Zr.FORBID_CONTENTS,mo):Oa,jo="FORBID_TAGS"in Zr?J({},Zr.FORBID_TAGS,mo):{},wn="FORBID_ATTR"in Zr?J({},Zr.FORBID_ATTR,mo):{},ba="USE_PROFILES"in Zr&&Zr.USE_PROFILES,Zi=!1!==Zr.ALLOW_ARIA_ATTR,oo=!1!==Zr.ALLOW_DATA_ATTR,Bi=Zr.ALLOW_UNKNOWN_PROTOCOLS||!1,Xo=!1!==Zr.ALLOW_SELF_CLOSE_IN_ATTR,Lo=Zr.SAFE_FOR_TEMPLATES||!1,or=!1!==Zr.SAFE_FOR_XML,xr=Zr.WHOLE_DOCUMENT||!1,ji=Zr.RETURN_DOM||!1,Fo=Zr.RETURN_DOM_FRAGMENT||!1,rt=Zr.RETURN_TRUSTED_TYPE||!1,as=Zr.FORCE_BODY||!1,ai=!1!==Zr.SANITIZE_DOM,Gn=Zr.SANITIZE_NAMED_PROPS||!1,wr=!1!==Zr.KEEP_CONTENT,bs=Zr.IN_PLACE||!1,zn=Zr.ALLOWED_URI_REGEXP||zn,Go=Zr.NAMESPACE||ao,bo=Zr.CUSTOM_ELEMENT_HANDLING||{},Zr.CUSTOM_ELEMENT_HANDLING&&lr(Zr.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(bo.tagNameCheck=Zr.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Zr.CUSTOM_ELEMENT_HANDLING&&lr(Zr.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(bo.attributeNameCheck=Zr.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Zr.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof Zr.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(bo.allowCustomizedBuiltInElements=Zr.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Lo&&(oo=!1),Fo&&(ji=!0),ba&&(Ei=J({},o(se)),Xi=[],!0===ba.html&&(J(Ei,de),J(Xi,ne)),!0===ba.svg&&(J(Ei,te),J(Xi,_e),J(Xi,Ce)),!0===ba.svgFilters&&(J(Ei,j),J(Xi,_e),J(Xi,Ce)),!0===ba.mathMl&&(J(Ei,z),J(Xi,ge),J(Xi,Ce))),Zr.ADD_TAGS&&(Ei===li&&(Ei=Q(Ei)),J(Ei,Zr.ADD_TAGS,mo)),Zr.ADD_ATTR&&(Xi===ki&&(Xi=Q(Xi)),J(Xi,Zr.ADD_ATTR,mo)),Zr.ADD_URI_SAFE_ATTR&&J(tr,Zr.ADD_URI_SAFE_ATTR,mo),Zr.FORBID_CONTENTS&&(ms===Oa&&(ms=Q(ms)),J(ms,Zr.FORBID_CONTENTS,mo)),wr&&(Ei["#text"]=!0),xr&&J(Ei,["html","head","body"]),Ei.table&&(J(Ei,["tbody"]),delete jo.tbody),f&&f(Zr),Ii=Zr)},Gs=J({},["mi","mo","mn","ms","mtext"]),fi=J({},["foreignobject","annotation-xml"]),Ho=J({},["title","style","font","a","script"]),_t=J({},te);J(_t,j),J(_t,H);var Zn=J({},z);J(Zn,q);var Cr=function(Zr){I(sn.removed,{element:Zr});try{Zr.parentNode.removeChild(Zr)}catch{try{Zr.outerHTML=wt}catch{Zr.remove()}}},kr=function(Zr,ls){try{I(sn.removed,{attribute:ls.getAttributeNode(Zr),from:ls})}catch{I(sn.removed,{attribute:null,from:ls})}if(ls.removeAttribute(Zr),"is"===Zr&&!Xi[Zr])if(ji||Fo)try{Cr(ls)}catch{}else try{ls.setAttribute(Zr,"")}catch{}},xs=function(Zr){var ls,Hs;if(as)Zr="<remove></remove>"+Zr;else{var Js=F(Zr,/^[\r\n\t ]+/);Hs=Js&&Js[0]}"application/xhtml+xml"===Ti&&Go===ao&&(Zr='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Zr+"</body></html>");var Wa=xt?xt.createHTML(Zr):Zr;if(Go===ao)try{ls=(new Ji).parseFromString(Wa,Ti)}catch{}if(!ls||!ls.documentElement){ls=pt.createDocument(Go,"template",null);try{ls.documentElement.innerHTML=pr?wt:Wa}catch{}}var ll=ls.body||ls.documentElement;return Zr&&Hs&&ll.insertBefore(yi.createTextNode(Hs),ll.childNodes[0]||null),Go===ao?Ne.call(ls,xr?"html":"body")[0]:xr?ls.documentElement:ll},Us=function(Zr){return Lt.call(Zr.ownerDocument||Zr,Zr,Ko.SHOW_ELEMENT|Ko.SHOW_COMMENT|Ko.SHOW_TEXT|Ko.SHOW_PROCESSING_INSTRUCTION|Ko.SHOW_CDATA_SECTION,null,!1)},Ts=function(Zr){return Zr instanceof Xt&&("string"!=typeof Zr.nodeName||"string"!=typeof Zr.textContent||"function"!=typeof Zr.removeChild||!(Zr.attributes instanceof Bn)||"function"!=typeof Zr.removeAttribute||"function"!=typeof Zr.setAttribute||"string"!=typeof Zr.namespaceURI||"function"!=typeof Zr.insertBefore||"function"!=typeof Zr.hasChildNodes)},Ss=function(Zr){return"object"===y(mi)?Zr instanceof mi:Zr&&"object"===y(Zr)&&"number"==typeof Zr.nodeType&&"string"==typeof Zr.nodeName},Ua=function(Zr,ls,Hs){jn[Zr]&&E(jn[Zr],function(Js){Js.call(sn,ls,Hs,Ii)})},$o=function(Zr){var ls;if(Ua("beforeSanitizeElements",Zr,null),Ts(Zr)||V(/[\u0080-\uFFFF]/,Zr.nodeName))return Cr(Zr),!0;var Hs=mo(Zr.nodeName);if(Ua("uponSanitizeElement",Zr,{tagName:Hs,allowedTags:Ei}),Zr.hasChildNodes()&&!Ss(Zr.firstElementChild)&&(!Ss(Zr.content)||!Ss(Zr.content.firstElementChild))&&V(/<[/\w]/g,Zr.innerHTML)&&V(/<[/\w]/g,Zr.textContent)||"select"===Hs&&V(/<template/i,Zr.innerHTML)||7===Zr.nodeType||or&&8===Zr.nodeType&&V(/<[/\w]/g,Zr.data))return Cr(Zr),!0;if(!Ei[Hs]||jo[Hs]){if(!jo[Hs]&&No(Hs)&&(bo.tagNameCheck instanceof RegExp&&V(bo.tagNameCheck,Hs)||bo.tagNameCheck instanceof Function&&bo.tagNameCheck(Hs)))return!1;if(wr&&!ms[Hs]){var Js=It(Zr)||Zr.parentNode,Wa=oi(Zr)||Zr.childNodes;if(Wa&&Js)for(var Za=Wa.length-1;Za>=0;--Za){var sl=Ki(Wa[Za],!0);sl.__removalCount=(Zr.__removalCount||0)+1,Js.insertBefore(sl,Fn(Zr))}}return Cr(Zr),!0}return Zr instanceof Eo&&!function(Zr){var ls=It(Zr);(!ls||!ls.tagName)&&(ls={namespaceURI:Go,tagName:"template"});var Hs=L(Zr.tagName),Js=L(ls.tagName);return!!Rr[Zr.namespaceURI]&&(Zr.namespaceURI===Ao?ls.namespaceURI===ao?"svg"===Hs:ls.namespaceURI===Li?"svg"===Hs&&("annotation-xml"===Js||Gs[Js]):!!_t[Hs]:Zr.namespaceURI===Li?ls.namespaceURI===ao?"math"===Hs:ls.namespaceURI===Ao?"math"===Hs&&fi[Js]:!!Zn[Hs]:Zr.namespaceURI===ao?!(ls.namespaceURI===Ao&&!fi[Js]||ls.namespaceURI===Li&&!Gs[Js])&&!Zn[Hs]&&(Ho[Hs]||!_t[Hs]):!("application/xhtml+xml"!==Ti||!Rr[Zr.namespaceURI]))}(Zr)||("noscript"===Hs||"noembed"===Hs||"noframes"===Hs)&&V(/<\/no(script|embed|frames)/i,Zr.innerHTML)?(Cr(Zr),!0):(Lo&&3===Zr.nodeType&&(ls=P(ls=Zr.textContent,Pi," "),ls=P(ls,go," "),ls=P(ls,si," "),Zr.textContent!==ls&&(I(sn.removed,{element:Zr.cloneNode()}),Zr.textContent=ls)),Ua("afterSanitizeElements",Zr,null),!1)},Ar=function(Zr,ls,Hs){if(ai&&("id"===ls||"name"===ls)&&(Hs in yi||Hs in yo))return!1;if((!oo||wn[ls]||!V(ot,ls))&&(!Zi||!V(pn,ls)))if(!Xi[ls]||wn[ls]){if(!(No(Zr)&&(bo.tagNameCheck instanceof RegExp&&V(bo.tagNameCheck,Zr)||bo.tagNameCheck instanceof Function&&bo.tagNameCheck(Zr))&&(bo.attributeNameCheck instanceof RegExp&&V(bo.attributeNameCheck,ls)||bo.attributeNameCheck instanceof Function&&bo.attributeNameCheck(ls))||"is"===ls&&bo.allowCustomizedBuiltInElements&&(bo.tagNameCheck instanceof RegExp&&V(bo.tagNameCheck,Hs)||bo.tagNameCheck instanceof Function&&bo.tagNameCheck(Hs))))return!1}else if(!tr[ls]&&!V(zn,P(Hs,wi,""))&&("src"!==ls&&"xlink:href"!==ls&&"href"!==ls||"script"===Zr||0!==O(Hs,"data:")||!Ea[Zr])&&(!Bi||V(_i,P(Hs,wi,"")))&&Hs)return!1;return!0},No=function(Zr){return"annotation-xml"!==Zr&&F(Zr,hi)},qr=function(Zr){var ls,Hs,Js,Wa;Ua("beforeSanitizeAttributes",Zr,null);var ll=Zr.attributes;if(ll){var Za={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Xi};for(Wa=ll.length;Wa--;){var Jt=(ls=ll[Wa]).name,Tt=ls.namespaceURI;if(Hs="value"===Jt?ls.value:U(ls.value),Js=mo(Jt),Za.attrName=Js,Za.attrValue=Hs,Za.keepAttr=!0,Za.forceKeepAttr=void 0,Ua("uponSanitizeAttribute",Zr,Za),Hs=Za.attrValue,or&&V(/((--!?|])>)|<\/(style|title)/i,Hs))kr(Jt,Zr);else if(!Za.forceKeepAttr&&(kr(Jt,Zr),Za.keepAttr)){if(!Xo&&V(/\/>/i,Hs)){kr(Jt,Zr);continue}Lo&&(Hs=P(Hs,Pi," "),Hs=P(Hs,go," "),Hs=P(Hs,si," "));var ht=mo(Zr.nodeName);if(Ar(ht,Js,Hs)){if(Gn&&("id"===Js||"name"===Js)&&(kr(Jt,Zr),Hs="user-content-"+Hs),xt&&"object"===y(En)&&"function"==typeof En.getAttributeType&&!Tt)switch(En.getAttributeType(ht,Js)){case"TrustedHTML":Hs=xt.createHTML(Hs);break;case"TrustedScriptURL":Hs=xt.createScriptURL(Hs)}try{Tt?Zr.setAttributeNS(Tt,Jt,Hs):Zr.setAttribute(Jt,Hs),Ts(Zr)?Cr(Zr):b(sn.removed)}catch{}}}}Ua("afterSanitizeAttributes",Zr,null)}},js=function Ds(Zr){var ls,Hs=Us(Zr);for(Ua("beforeSanitizeShadowDOM",Zr,null);ls=Hs.nextNode();)Ua("uponSanitizeShadowNode",ls,null),!$o(ls)&&(ls.content instanceof nn&&Ds(ls.content),qr(ls));Ua("afterSanitizeShadowDOM",Zr,null)};return sn.sanitize=function(Ds){var ls,Hs,Js,Wa,ll,Zr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((pr=!Ds)&&(Ds="\x3c!--\x3e"),"string"!=typeof Ds&&!Ss(Ds)){if("function"!=typeof Ds.toString)throw K("toString is not a function");if("string"!=typeof(Ds=Ds.toString()))throw K("dirty is not a string, aborting")}if(!sn.isSupported){if("object"===y(dn.toStaticHTML)||"function"==typeof dn.toStaticHTML){if("string"==typeof Ds)return dn.toStaticHTML(Ds);if(Ss(Ds))return dn.toStaticHTML(Ds.outerHTML)}return Ds}if(Nr||Yr(Zr),sn.removed=[],"string"==typeof Ds&&(bs=!1),bs){if(Ds.nodeName){var Za=mo(Ds.nodeName);if(!Ei[Za]||jo[Za])throw K("root node is forbidden and cannot be sanitized in-place")}}else if(Ds instanceof mi)1===(Hs=(ls=xs("\x3c!----\x3e")).ownerDocument.importNode(Ds,!0)).nodeType&&"BODY"===Hs.nodeName||"HTML"===Hs.nodeName?ls=Hs:ls.appendChild(Hs);else{if(!ji&&!Lo&&!xr&&-1===Ds.indexOf("<"))return xt&&rt?xt.createHTML(Ds):Ds;if(!(ls=xs(Ds)))return ji?null:rt?wt:""}ls&&as&&Cr(ls.firstChild);for(var sl=Us(bs?Ds:ls);Js=sl.nextNode();)3===Js.nodeType&&Js===Wa||$o(Js)||(Js.content instanceof nn&&js(Js.content),qr(Js),Wa=Js);if(Wa=null,bs)return Ds;if(ji){if(Fo)for(ll=tt.call(ls.ownerDocument);ls.firstChild;)ll.appendChild(ls.firstChild);else ll=ls;return(Xi.shadowroot||Xi.shadowrootmod)&&(ll=vt.call(fn,ll,!0)),ll}var Jt=xr?ls.outerHTML:ls.innerHTML;return xr&&Ei["!doctype"]&&ls.ownerDocument&&ls.ownerDocument.doctype&&ls.ownerDocument.doctype.name&&V(An,ls.ownerDocument.doctype.name)&&(Jt="<!DOCTYPE "+ls.ownerDocument.doctype.name+">\n"+Jt),Lo&&(Jt=P(Jt,Pi," "),Jt=P(Jt,go," "),Jt=P(Jt,si," ")),xt&&rt?xt.createHTML(Jt):Jt},sn.setConfig=function(Ds){Yr(Ds),Nr=!0},sn.clearConfig=function(){Ii=null,Nr=!1},sn.isValidAttribute=function(Ds,Zr,ls){Ii||Yr({});var Hs=mo(Ds),Js=mo(Zr);return Ar(Hs,Js,ls)},sn.addHook=function(Ds,Zr){"function"==typeof Zr&&(jn[Ds]=jn[Ds]||[],I(jn[Ds],Zr))},sn.removeHook=function(Ds){if(jn[Ds])return b(jn[Ds])},sn.removeHooks=function(Ds){jn[Ds]&&(jn[Ds]=[])},sn.removeAllHooks=function(){jn={}},sn}()}()},38107:function(he,y){var i,n;void 0!==(n="function"==typeof(i=function(){return function o(a,l,u){var w,g,d=window,s="application/octet-stream",A=u||s,_=a,C=!l&&!u&&_,R=document.createElement("a"),x=function(D){return String(D)},f=d.Blob||d.MozBlob||d.WebKitBlob||x,k=l||"download";if(f=f.call?f.bind(d):Blob,"true"===String(this)&&(A=(_=[_,A])[0],_=_[1]),C&&C.length<2048&&(k=C.split("/").pop().split("?")[0],R.href=C,-1!==R.href.indexOf(C))){var M=new XMLHttpRequest;return M.open("GET",C,!0),M.responseType="blob",M.onload=function(D){o(D.target.response,k,s)},setTimeout(function(){M.send()},0),M}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(_)){if(!(_.length>2096103.424&&f!==x))return navigator.msSaveBlob?navigator.msSaveBlob(I(_),k):L(_);A=(_=I(_)).type||s}else if(/([\x80-\xff])/.test(_)){for(var p=0,E=new Uint8Array(_.length),b=E.length;p<b;++p)E[p]=_.charCodeAt(p);_=new f([E],{type:A})}function I(D){for(var F=D.split(/[:;,]/),P=F[1],U=("base64"==F[2]?atob:decodeURIComponent)(F.pop()),V=U.length,K=0,X=new Uint8Array(V);K<V;++K)X[K]=U.charCodeAt(K);return new f([X],{type:P})}function L(D,F){if("download"in R)return R.href=D,R.setAttribute("download",k),R.className="download-js-link",R.innerHTML="downloading...",R.style.display="none",document.body.appendChild(R),setTimeout(function(){R.click(),document.body.removeChild(R),!0===F&&setTimeout(function(){d.URL.revokeObjectURL(R.href)},250)},66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(D)&&(D="data:"+D.replace(/^data:([\w\/\-\+]+)/,s)),window.open(D)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=D),!0;var P=document.createElement("iframe");document.body.appendChild(P),!F&&/^data:/.test(D)&&(D="data:"+D.replace(/^data:([\w\/\-\+]+)/,s)),P.src=D,setTimeout(function(){document.body.removeChild(P)},333)}if(w=_ instanceof f?_:new f([_],{type:A}),navigator.msSaveBlob)return navigator.msSaveBlob(w,k);if(d.URL)L(d.URL.createObjectURL(w),!0);else{if("string"==typeof w||w.constructor===x)try{return L("data:"+A+";base64,"+d.btoa(w))}catch{return L("data:"+A+","+encodeURIComponent(w))}(g=new FileReader).onload=function(D){L(this.result)},g.readAsDataURL(w)}return!0}})?i.apply(y,[]):i)&&(he.exports=n)},6875:he=>{he.exports=function n(o,a,l){function u(A,_){if(!a[A]){if(!o[A]){if(d)return d(A,!0);var R=new Error("Cannot find module '"+A+"'");throw R.code="MODULE_NOT_FOUND",R}var x=a[A]={exports:{}};o[A][0].call(x.exports,function(f){return u(o[A][1][f]||f)},x,x.exports,n,o,a,l)}return a[A].exports}for(var d=void 0,s=0;s<l.length;s++)u(l[s]);return u}({1:[function(n,o,a){"use strict";var l={},u="(?:^|\\s)",d="(?:\\s|$)";function s(C){var R=l[C];return R?R.lastIndex=0:l[C]=R=new RegExp(u+C+d,"g"),R}o.exports={add:function A(C,R){var x=C.className;x.length?s(R).test(x)||(C.className+=" "+R):C.className=R},rm:function _(C,R){C.className=C.className.replace(s(R)," ").trim()}}},{}],2:[function(n,o,a){(function(l){"use strict";var u=n("contra/emitter"),d=n("crossvent"),s=n("./classes"),A=document,_=A.documentElement;function R(O,U,V,K){l.navigator.pointerEnabled?d[U](O,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[V],K):l.navigator.msPointerEnabled?d[U](O,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[V],K):(d[U](O,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[V],K),d[U](O,V,K))}function x(O){if(void 0!==O.touches)return O.touches.length;if(void 0!==O.which&&0!==O.which)return O.which;if(void 0!==O.buttons)return O.buttons;var U=O.button;return void 0!==U?1&U?1:2&U?3:4&U?2:0:void 0}function k(O,U){return typeof l[U]<"u"?l[U]:_.clientHeight?_[O]:A.body[O]}function w(O,U,V){var X,K=(O=O||{}).className||"";return O.className+=" gu-hide",X=A.elementFromPoint(U,V),O.className=K,X}function g(){return!1}function M(){return!0}function p(O){return O.width||O.right-O.left}function E(O){return O.height||O.bottom-O.top}function b(O){return O.parentNode===A?null:O.parentNode}function I(O){return"INPUT"===O.tagName||"TEXTAREA"===O.tagName||"SELECT"===O.tagName||L(O)}function L(O){return!(!O||"false"===O.contentEditable)&&("true"===O.contentEditable||L(b(O)))}function D(O){return O.nextElementSibling||function U(){var V=O;do{V=V.nextSibling}while(V&&1!==V.nodeType);return V}()}function P(O,U){var V=function F(O){return O.targetTouches&&O.targetTouches.length?O.targetTouches[0]:O.changedTouches&&O.changedTouches.length?O.changedTouches[0]:O}(U),K={pageX:"clientX",pageY:"clientY"};return O in K&&!(O in V)&&K[O]in V&&(O=K[O]),V[O]}o.exports=function C(O,U){1===arguments.length&&!1===Array.isArray(O)&&(U=O,O=[]);var K,X,me,J,Q,re,de,te,j,H,z,se,q=null,ne=U||{};void 0===ne.moves&&(ne.moves=M),void 0===ne.accepts&&(ne.accepts=M),void 0===ne.invalid&&(ne.invalid=function xn(){return!1}),void 0===ne.containers&&(ne.containers=O||[]),void 0===ne.isContainer&&(ne.isContainer=g),void 0===ne.copy&&(ne.copy=!1),void 0===ne.copySortSource&&(ne.copySortSource=!1),void 0===ne.revertOnSpill&&(ne.revertOnSpill=!1),void 0===ne.removeOnSpill&&(ne.removeOnSpill=!1),void 0===ne.direction&&(ne.direction="vertical"),void 0===ne.ignoreInputTextSelection&&(ne.ignoreInputTextSelection=!0),void 0===ne.mirrorContainer&&(ne.mirrorContainer=A.body);var _e=u({containers:ne.containers,start:function An(un){var Ki=Gt(un);Ki&&$n(Ki)},end:mt,cancel:fn,remove:sn,destroy:function fe(){Ce(!0),Wt({})},canMove:function Ut(un){return!!Gt(un)},dragging:!1});return!0===ne.removeOnSpill&&_e.on("over",function Eo(un){s.rm(un,"gu-hide")}).on("out",function Ko(un){_e.dragging&&s.add(un,"gu-hide")}),Ce(),_e;function ge(un){return-1!==_e.containers.indexOf(un)||ne.isContainer(un)}function Ce(un){var Ki=un?"remove":"add";R(_,Ki,"mousedown",Oe),R(_,Ki,"mouseup",Wt)}function Te(un){R(_,un?"remove":"add","mousemove",Le)}function De(un){var Ki=un?"remove":"add";d[Ki](_,"selectstart",xe),d[Ki](_,"click",xe)}function xe(un){se&&un.preventDefault()}function Oe(un){if(re=un.clientX,de=un.clientY,1===x(un)&&!un.metaKey&&!un.ctrlKey){var Fn=un.target,oi=Gt(Fn);oi&&(se=oi,Te(),"mousedown"===un.type&&(I(Fn)?Fn.focus():un.preventDefault()))}}function Le(un){if(se){if(0===x(un))return void Wt({});if(!(void 0!==un.clientX&&Math.abs(un.clientX-re)<=(ne.slideFactorX||0)&&void 0!==un.clientY&&Math.abs(un.clientY-de)<=(ne.slideFactorY||0))){if(ne.ignoreInputTextSelection){var Ki=P("clientX",un)||0,Fn=P("clientY",un)||0;if(I(A.elementFromPoint(Ki,Fn)))return}var It=se;Te(!0),De(),mt(),$n(It);var Bt=function f(O){var U=O.getBoundingClientRect();return{left:U.left+k("scrollLeft","pageXOffset"),top:U.top+k("scrollTop","pageYOffset")}}(me);J=P("pageX",un)-Bt.left,Q=P("pageY",un)-Bt.top,s.add(H||me,"gu-transit"),function xo(){if(!K){var un=me.getBoundingClientRect();(K=me.cloneNode(!0)).style.width=p(un)+"px",K.style.height=E(un)+"px",s.rm(K,"gu-transit"),s.add(K,"gu-mirror"),ne.mirrorContainer.appendChild(K),R(_,"add","mousemove",mi),s.add(ne.mirrorContainer,"gu-unselectable"),_e.emit("cloned",K,me,"mirror")}}(),mi(un)}}}function Gt(un){if(!(_e.dragging&&K||ge(un))){for(var Ki=un;b(un)&&!1===ge(b(un));)if(ne.invalid(un,Ki)||!(un=b(un)))return;var Fn=b(un);if(Fn&&!ne.invalid(un,Ki)&&ne.moves(un,Fn,Ki,D(un)))return{item:un,source:Fn}}}function $n(un){(function En(un,Ki){return"boolean"==typeof ne.copy?ne.copy:ne.copy(un,Ki)})(un.item,un.source)&&(H=un.item.cloneNode(!0),_e.emit("cloned",H,un.item,"copy")),X=un.source,me=un.item,te=j=D(un.item),_e.dragging=!0,_e.emit("drag",me,X)}function mt(){if(_e.dragging){var un=H||me;dn(un,b(un))}}function ut(){se=!1,Te(!0),De(!0)}function Wt(un){if(ut(),_e.dragging){var Ki=H||me,Fn=P("clientX",un)||0,oi=P("clientY",un)||0,Bt=Mi(w(K,Fn,oi),Fn,oi);Bt&&(H&&ne.copySortSource||!H||Bt!==X)?dn(Ki,Bt):ne.removeOnSpill?sn():fn()}}function dn(un,Ki){var Fn=b(un);H&&ne.copySortSource&&Ki===X&&Fn.removeChild(me),nn(Ki)?_e.emit("cancel",un,X,X):_e.emit("drop",un,Ki,X,j),yi()}function sn(){if(_e.dragging){var un=H||me,Ki=b(un);Ki&&Ki.removeChild(un),_e.emit(H?"cancel":"remove",un,Ki,X),yi()}}function fn(un){if(_e.dragging){var Ki=arguments.length>0?un:ne.revertOnSpill,Fn=H||me,oi=b(Fn),It=nn(oi);!1===It&&Ki&&(H?oi&&oi.removeChild(H):X.insertBefore(Fn,te)),It||Ki?_e.emit("cancel",Fn,X,X):_e.emit("drop",Fn,oi,X,j),yi()}}function yi(){var un=H||me;ut(),function Bn(){K&&(s.rm(ne.mirrorContainer,"gu-unselectable"),R(_,"remove","mousemove",mi),b(K).removeChild(K),K=null)}(),un&&s.rm(un,"gu-transit"),z&&clearTimeout(z),_e.dragging=!1,q&&_e.emit("out",un,q,X),_e.emit("dragend",un),X=me=H=te=j=z=q=null}function nn(un,Ki){var Fn;return Fn=void 0!==Ki?Ki:K?j:D(H||me),un===X&&Fn===te}function Mi(un,Ki,Fn){for(var oi=un;oi&&!It();)oi=b(oi);return oi;function It(){if(!1===ge(oi))return!1;var xt=Xt(oi,un),wt=Ji(oi,xt,Ki,Fn);return!!nn(oi,wt)||ne.accepts(me,oi,X,wt)}}function mi(un){if(K){un.preventDefault();var Ki=P("clientX",un)||0,Fn=P("clientY",un)||0,It=Fn-Q;K.style.left=Ki-J+"px",K.style.top=It+"px";var Bt=H||me,xt=w(K,Ki,Fn),wt=Mi(xt,Ki,Fn),Mt=null!==wt&&wt!==q;(Mt||null===wt)&&(function ln(){q&&Ne("out")}(),q=wt,function vt(){Mt&&Ne("over")}());var pt=b(Bt);if(wt!==X||!H||ne.copySortSource){var Lt,tt=Xt(wt,xt);if(null!==tt)Lt=Ji(wt,tt,Ki,Fn);else{if(!0!==ne.revertOnSpill||H)return void(H&&pt&&pt.removeChild(Bt));Lt=te,wt=X}(null===Lt&&Mt||Lt!==Bt&&Lt!==D(Bt))&&(j=Lt,wt.insertBefore(Bt,Lt),_e.emit("shadow",Bt,wt,X))}else pt&&pt.removeChild(Bt)}function Ne(jn){_e.emit(jn,Bt,q,X)}}function Xt(un,Ki){for(var Fn=Ki;Fn!==un&&b(Fn)!==un;)Fn=b(Fn);return Fn===_?null:Fn}function Ji(un,Ki,Fn,oi){var It="horizontal"===ne.direction;return Ki!==un?function wt(){var pt=Ki.getBoundingClientRect();return function Mt(pt){return pt?D(Ki):Ki}(It?Fn>pt.left+p(pt)/2:oi>pt.top+E(pt)/2)}():function xt(){var Lt,tt,Ne,pt=un.children.length;for(Lt=0;Lt<pt;Lt++)if(Ne=(tt=un.children[Lt]).getBoundingClientRect(),It&&Ne.left+Ne.width/2>Fn||!It&&Ne.top+Ne.height/2>oi)return tt;return null}()}}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{"./classes":1,"contra/emitter":5,crossvent:6}],3:[function(n,o,a){o.exports=function(u,d){return Array.prototype.slice.call(u,d)}},{}],4:[function(n,o,a){"use strict";var l=n("ticky");o.exports=function(d,s,A){d&&l(function(){d.apply(A||null,s||[])})}},{ticky:10}],5:[function(n,o,a){"use strict";var l=n("atoa"),u=n("./debounce");o.exports=function(s,A){var _=A||{},C={};return void 0===s&&(s={}),s.on=function(R,x){return C[R]?C[R].push(x):C[R]=[x],s},s.once=function(R,x){return x._once=!0,s.on(R,x),s},s.off=function(R,x){var f=arguments.length;if(1===f)delete C[R];else if(0===f)C={};else{var k=C[R];if(!k)return s;k.splice(k.indexOf(x),1)}return s},s.emit=function(){var R=l(arguments);return s.emitterSnapshot(R.shift()).apply(this,R)},s.emitterSnapshot=function(R){var x=(C[R]||[]).slice(0);return function(){var f=l(arguments),k=this||s;if("error"===R&&!1!==_.throws&&!x.length)throw 1===f.length?f[0]:f;return x.forEach(function(g){_.async?u(g,f,k):g.apply(k,f),g._once&&s.off(R,g)}),s}},s}},{"./debounce":4,atoa:3}],6:[function(n,o,a){(function(l){"use strict";var u=n("custom-event"),d=n("./eventmap"),s=l.document,A=function R(b,I,L,D){return b.addEventListener(I,L,D)},_=function f(b,I,L,D){return b.removeEventListener(I,L,D)},C=[];function p(b,I,L){var D=function E(b,I,L){var D,F;for(D=0;D<C.length;D++)if((F=C[D]).element===b&&F.type===I&&F.fn===L)return D}(b,I,L);if(D){var F=C[D].wrapper;return C.splice(D,1),F}}l.addEventListener||(A=function x(b,I,L){return b.attachEvent("on"+I,function M(b,I,L){var D=p(b,I,L)||function g(b,I,L){return function(F){var P=F||l.event;P.target=P.target||P.srcElement,P.preventDefault=P.preventDefault||function(){P.returnValue=!1},P.stopPropagation=P.stopPropagation||function(){P.cancelBubble=!0},P.which=P.which||P.keyCode,L.call(b,P)}}(b,0,L);return C.push({wrapper:D,element:b,type:I,fn:L}),D}(b,I,L))},_=function k(b,I,L){var D=p(b,I,L);if(D)return b.detachEvent("on"+I,D)}),o.exports={add:A,remove:_,fabricate:function w(b,I,L){var D=-1===d.indexOf(I)?function P(){return new u(I,{detail:L})}():function F(){var O;return s.createEvent?(O=s.createEvent("Event")).initEvent(I,!0,!0):s.createEventObject&&(O=s.createEventObject()),O}();b.dispatchEvent?b.dispatchEvent(D):b.fireEvent("on"+I,D)}}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{"./eventmap":7,"custom-event":8}],7:[function(n,o,a){(function(l){"use strict";var u=[],d="",s=/^on/;for(d in l)s.test(d)&&u.push(d.slice(2));o.exports=u}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],8:[function(n,o,a){(function(l){var u=l.CustomEvent;o.exports=function d(){try{var s=new u("cat",{detail:{foo:"bar"}});return"cat"===s.type&&"bar"===s.detail.foo}catch{}return!1}()?u:typeof document<"u"&&"function"==typeof document.createEvent?function(A,_){var C=document.createEvent("CustomEvent");return _?C.initCustomEvent(A,_.bubbles,_.cancelable,_.detail):C.initCustomEvent(A,!1,!1,void 0),C}:function(A,_){var C=document.createEventObject();return C.type=A,_?(C.bubbles=!!_.bubbles,C.cancelable=!!_.cancelable,C.detail=_.detail):(C.bubbles=!1,C.cancelable=!1,C.detail=void 0),C}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],9:[function(n,o,a){var u,d,l=o.exports={};function s(){throw new Error("setTimeout has not been defined")}function A(){throw new Error("clearTimeout has not been defined")}function _(E){if(u===setTimeout)return setTimeout(E,0);if((u===s||!u)&&setTimeout)return u=setTimeout,setTimeout(E,0);try{return u(E,0)}catch{try{return u.call(null,E,0)}catch{return u.call(this,E,0)}}}!function(){try{u="function"==typeof setTimeout?setTimeout:s}catch{u=s}try{d="function"==typeof clearTimeout?clearTimeout:A}catch{d=A}}();var f,R=[],x=!1,k=-1;function w(){!x||!f||(x=!1,f.length?R=f.concat(R):k=-1,R.length&&g())}function g(){if(!x){var E=_(w);x=!0;for(var b=R.length;b;){for(f=R,R=[];++k<b;)f&&f[k].run();k=-1,b=R.length}f=null,x=!1,function C(E){if(d===clearTimeout)return clearTimeout(E);if((d===A||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(E);try{return d(E)}catch{try{return d.call(null,E)}catch{return d.call(this,E)}}}(E)}}function M(E,b){this.fun=E,this.array=b}function p(){}l.nextTick=function(E){var b=new Array(arguments.length-1);if(arguments.length>1)for(var I=1;I<arguments.length;I++)b[I-1]=arguments[I];R.push(new M(E,b)),1===R.length&&!x&&_(g)},M.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=p,l.addListener=p,l.once=p,l.off=p,l.removeListener=p,l.removeAllListeners=p,l.emit=p,l.prependListener=p,l.prependOnceListener=p,l.listeners=function(E){return[]},l.binding=function(E){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(E){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},{}],10:[function(n,o,a){(function(l){o.exports="function"==typeof l?function(s){l(s)}:function(s){setTimeout(s,0)}}).call(this,n("timers").setImmediate)},{timers:11}],11:[function(n,o,a){(function(l,u){var d=n("process/browser.js").nextTick,s=Function.prototype.apply,A=Array.prototype.slice,_={},C=0;function R(x,f){this._id=x,this._clearFn=f}a.setTimeout=function(){return new R(s.call(setTimeout,window,arguments),clearTimeout)},a.setInterval=function(){return new R(s.call(setInterval,window,arguments),clearInterval)},a.clearTimeout=a.clearInterval=function(x){x.close()},R.prototype.unref=R.prototype.ref=function(){},R.prototype.close=function(){this._clearFn.call(window,this._id)},a.enroll=function(x,f){clearTimeout(x._idleTimeoutId),x._idleTimeout=f},a.unenroll=function(x){clearTimeout(x._idleTimeoutId),x._idleTimeout=-1},a._unrefActive=a.active=function(x){clearTimeout(x._idleTimeoutId);var f=x._idleTimeout;f>=0&&(x._idleTimeoutId=setTimeout(function(){x._onTimeout&&x._onTimeout()},f))},a.setImmediate="function"==typeof l?l:function(x){var f=C++,k=!(arguments.length<2)&&A.call(arguments,1);return _[f]=!0,d(function(){_[f]&&(k?x.apply(null,k):x.call(null),a.clearImmediate(f))}),f},a.clearImmediate="function"==typeof u?u:function(x){delete _[x]}}).call(this,n("timers").setImmediate,n("timers").clearImmediate)},{"process/browser.js":9,timers:11}]},{},[2])(2)},81472:he=>{"use strict";var y=Object.prototype.hasOwnProperty,i="~";function e(){}function n(u,d,s){this.fn=u,this.context=d,this.once=s||!1}function o(u,d,s,A,_){if("function"!=typeof s)throw new TypeError("The listener must be a function");var C=new n(s,A||u,_),R=i?i+d:d;return u._events[R]?u._events[R].fn?u._events[R]=[u._events[R],C]:u._events[R].push(C):(u._events[R]=C,u._eventsCount++),u}function a(u,d){0==--u._eventsCount?u._events=new e:delete u._events[d]}function l(){this._events=new e,this._eventsCount=0}Object.create&&(e.prototype=Object.create(null),(new e).__proto__||(i=!1)),l.prototype.eventNames=function(){var s,A,d=[];if(0===this._eventsCount)return d;for(A in s=this._events)y.call(s,A)&&d.push(i?A.slice(1):A);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(s)):d},l.prototype.listeners=function(d){var A=this._events[i?i+d:d];if(!A)return[];if(A.fn)return[A.fn];for(var _=0,C=A.length,R=new Array(C);_<C;_++)R[_]=A[_].fn;return R},l.prototype.listenerCount=function(d){var A=this._events[i?i+d:d];return A?A.fn?1:A.length:0},l.prototype.emit=function(d,s,A,_,C,R){var x=i?i+d:d;if(!this._events[x])return!1;var w,g,f=this._events[x],k=arguments.length;if(f.fn){switch(f.once&&this.removeListener(d,f.fn,void 0,!0),k){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,s),!0;case 3:return f.fn.call(f.context,s,A),!0;case 4:return f.fn.call(f.context,s,A,_),!0;case 5:return f.fn.call(f.context,s,A,_,C),!0;case 6:return f.fn.call(f.context,s,A,_,C,R),!0}for(g=1,w=new Array(k-1);g<k;g++)w[g-1]=arguments[g];f.fn.apply(f.context,w)}else{var p,M=f.length;for(g=0;g<M;g++)switch(f[g].once&&this.removeListener(d,f[g].fn,void 0,!0),k){case 1:f[g].fn.call(f[g].context);break;case 2:f[g].fn.call(f[g].context,s);break;case 3:f[g].fn.call(f[g].context,s,A);break;case 4:f[g].fn.call(f[g].context,s,A,_);break;default:if(!w)for(p=1,w=new Array(k-1);p<k;p++)w[p-1]=arguments[p];f[g].fn.apply(f[g].context,w)}}return!0},l.prototype.on=function(d,s,A){return o(this,d,s,A,!1)},l.prototype.once=function(d,s,A){return o(this,d,s,A,!0)},l.prototype.removeListener=function(d,s,A,_){var C=i?i+d:d;if(!this._events[C])return this;if(!s)return a(this,C),this;var R=this._events[C];if(R.fn)R.fn===s&&(!_||R.once)&&(!A||R.context===A)&&a(this,C);else{for(var x=0,f=[],k=R.length;x<k;x++)(R[x].fn!==s||_&&!R[x].once||A&&R[x].context!==A)&&f.push(R[x]);f.length?this._events[C]=1===f.length?f[0]:f:a(this,C)}return this},l.prototype.removeAllListeners=function(d){var s;return d?this._events[s=i?i+d:d]&&a(this,s):(this._events=new e,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=i,l.EventEmitter=l,he.exports=l},7191:function(he,y,i){var e;!function(n){"use strict";function o(a){var d,l=a&&a.Promise||n.Promise,u=a&&a.XMLHttpRequest||n.XMLHttpRequest;return d=Object.create(n,{fetch:{value:void 0,writable:!0}}),function(s){var A=typeof d<"u"&&d||typeof self<"u"&&self||typeof A<"u"&&A,__searchParams="URLSearchParams"in A,__iterable="Symbol"in A&&"iterator"in Symbol,__blob="FileReader"in A&&"Blob"in A&&function(){try{return new Blob,!0}catch{return!1}}(),__formData="FormData"in A,__arrayBuffer="ArrayBuffer"in A;if(__arrayBuffer)var R=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],x=ArrayBuffer.isView||function(J){return J&&R.indexOf(Object.prototype.toString.call(J))>-1};function f(J){if("string"!=typeof J&&(J=String(J)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(J)||""===J)throw new TypeError("Invalid character in header field name");return J.toLowerCase()}function k(J){return"string"!=typeof J&&(J=String(J)),J}function w(J){var Q={next:function(){var re=J.shift();return{done:void 0===re,value:re}}};return __iterable&&(Q[Symbol.iterator]=function(){return Q}),Q}function g(J){this.map={},J instanceof g?J.forEach(function(Q,re){this.append(re,Q)},this):Array.isArray(J)?J.forEach(function(Q){this.append(Q[0],Q[1])},this):J&&Object.getOwnPropertyNames(J).forEach(function(Q){this.append(Q,J[Q])},this)}function M(J){if(J.bodyUsed)return l.reject(new TypeError("Already read"));J.bodyUsed=!0}function p(J){return new l(function(Q,re){J.onload=function(){Q(J.result)},J.onerror=function(){re(J.error)}})}function E(J){var Q=new FileReader,re=p(Q);return Q.readAsArrayBuffer(J),re}function L(J){if(J.slice)return J.slice(0);var Q=new Uint8Array(J.byteLength);return Q.set(new Uint8Array(J)),Q.buffer}function D(){return this.bodyUsed=!1,this._initBody=function(J){this.bodyUsed=this.bodyUsed,this._bodyInit=J,J?"string"==typeof J?this._bodyText=J:__blob&&Blob.prototype.isPrototypeOf(J)?this._bodyBlob=J:__formData&&FormData.prototype.isPrototypeOf(J)?this._bodyFormData=J:__searchParams&&URLSearchParams.prototype.isPrototypeOf(J)?this._bodyText=J.toString():__arrayBuffer&&__blob&&function C(J){return J&&DataView.prototype.isPrototypeOf(J)}(J)?(this._bodyArrayBuffer=L(J.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):__arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(J)||x(J))?this._bodyArrayBuffer=L(J):this._bodyText=J=Object.prototype.toString.call(J):this._bodyText="",this.headers.get("content-type")||("string"==typeof J?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):__searchParams&&URLSearchParams.prototype.isPrototypeOf(J)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},__blob&&(this.blob=function(){var J=M(this);if(J)return J;if(this._bodyBlob)return l.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return l.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return l.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?M(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?l.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):l.resolve(this._bodyArrayBuffer)):this.blob().then(E)}),this.text=function(){var J=M(this);if(J)return J;if(this._bodyBlob)return function b(J){var Q=new FileReader,re=p(Q);return Q.readAsText(J),re}(this._bodyBlob);if(this._bodyArrayBuffer)return l.resolve(function I(J){for(var Q=new Uint8Array(J),re=new Array(Q.length),de=0;de<Q.length;de++)re[de]=String.fromCharCode(Q[de]);return re.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return l.resolve(this._bodyText)},__formData&&(this.formData=function(){return this.text().then(U)}),this.json=function(){return this.text().then(JSON.parse)},this}g.prototype.append=function(J,Q){J=f(J),Q=k(Q);var re=this.map[J];this.map[J]=re?re+", "+Q:Q},g.prototype.delete=function(J){delete this.map[f(J)]},g.prototype.get=function(J){return J=f(J),this.has(J)?this.map[J]:null},g.prototype.has=function(J){return this.map.hasOwnProperty(f(J))},g.prototype.set=function(J,Q){this.map[f(J)]=k(Q)},g.prototype.forEach=function(J,Q){for(var re in this.map)this.map.hasOwnProperty(re)&&J.call(Q,this.map[re],re,this)},g.prototype.keys=function(){var J=[];return this.forEach(function(Q,re){J.push(re)}),w(J)},g.prototype.values=function(){var J=[];return this.forEach(function(Q){J.push(Q)}),w(J)},g.prototype.entries=function(){var J=[];return this.forEach(function(Q,re){J.push([re,Q])}),w(J)},__iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);var F=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(J,Q){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var re=(Q=Q||{}).body;if(J instanceof O){if(J.bodyUsed)throw new TypeError("Already read");this.url=J.url,this.credentials=J.credentials,Q.headers||(this.headers=new g(J.headers)),this.method=J.method,this.mode=J.mode,this.signal=J.signal,!re&&null!=J._bodyInit&&(re=J._bodyInit,J.bodyUsed=!0)}else this.url=String(J);if(this.credentials=Q.credentials||this.credentials||"same-origin",(Q.headers||!this.headers)&&(this.headers=new g(Q.headers)),this.method=function P(J){var Q=J.toUpperCase();return F.indexOf(Q)>-1?Q:J}(Q.method||this.method||"GET"),this.mode=Q.mode||this.mode||null,this.signal=Q.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&re)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(re),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==Q.cache&&"no-cache"!==Q.cache)){var de=/([?&])_=[^&]*/;de.test(this.url)?this.url=this.url.replace(de,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function U(J){var Q=new FormData;return J.trim().split("&").forEach(function(re){if(re){var de=re.split("="),te=de.shift().replace(/\+/g," "),j=de.join("=").replace(/\+/g," ");Q.append(decodeURIComponent(te),decodeURIComponent(j))}}),Q}function V(J){var Q=new g;return J.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(de){return 0===de.indexOf("\n")?de.substr(1,de.length):de}).forEach(function(de){var te=de.split(":"),j=te.shift().trim();if(j){var H=te.join(":").trim();Q.append(j,H)}}),Q}function K(J,Q){if(!(this instanceof K))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Q||(Q={}),this.type="default",this.status=void 0===Q.status?200:Q.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in Q?Q.statusText:"",this.headers=new g(Q.headers),this.url=Q.url||"",this._initBody(J)}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})},D.call(O.prototype),D.call(K.prototype),K.prototype.clone=function(){return new K(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},K.error=function(){var J=new K(null,{status:0,statusText:""});return J.type="error",J};var X=[301,302,303,307,308];K.redirect=function(J,Q){if(-1===X.indexOf(Q))throw new RangeError("Invalid status code");return new K(null,{status:Q,headers:{location:J}})},s.DOMException=A.DOMException;try{new s.DOMException}catch{s.DOMException=function(Q,re){this.message=Q,this.name=re;var de=Error(Q);this.stack=de.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function me(J,Q){return new l(function(re,de){var te=new O(J,Q);if(te.signal&&te.signal.aborted)return de(new s.DOMException("Aborted","AbortError"));var j=new u;function H(){j.abort()}j.onload=function(){var q={status:j.status,statusText:j.statusText,headers:V(j.getAllResponseHeaders()||"")};q.url="responseURL"in j?j.responseURL:q.headers.get("X-Request-URL");var se="response"in j?j.response:j.responseText;setTimeout(function(){re(new K(se,q))},0)},j.onerror=function(){setTimeout(function(){de(new TypeError("Network request failed"))},0)},j.ontimeout=function(){setTimeout(function(){de(new TypeError("Network request failed"))},0)},j.onabort=function(){setTimeout(function(){de(new s.DOMException("Aborted","AbortError"))},0)},j.open(te.method,function z(q){try{return""===q&&A.location.href?A.location.href:q}catch{return q}}(te.url),!0),"include"===te.credentials?j.withCredentials=!0:"omit"===te.credentials&&(j.withCredentials=!1),"responseType"in j&&(__blob?j.responseType="blob":__arrayBuffer&&te.headers.get("Content-Type")&&-1!==te.headers.get("Content-Type").indexOf("application/octet-stream")&&(j.responseType="arraybuffer")),!Q||"object"!=typeof Q.headers||Q.headers instanceof g?te.headers.forEach(function(q,se){j.setRequestHeader(se,q)}):Object.getOwnPropertyNames(Q.headers).forEach(function(q){j.setRequestHeader(q,k(Q.headers[q]))}),te.signal&&(te.signal.addEventListener("abort",H),j.onreadystatechange=function(){4===j.readyState&&te.signal.removeEventListener("abort",H)}),j.send(typeof te._bodyInit>"u"?null:te._bodyInit)})}me.polyfill=!0,A.fetch||(A.fetch=me,A.Headers=g,A.Request=O,A.Response=K),s.Headers=g,s.Request=O,s.Response=K,s.fetch=me,Object.defineProperty(s,"__esModule",{value:!0})}(y),{fetch:d.fetch,Headers:d.Headers,Request:d.Request,Response:d.Response,DOMException:d.DOMException}}void 0!==(e=function(){return o}.call(y,i,y,he))&&(he.exports=e)}(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:this)},10217:function(he,y){var i,n;void 0!==(n="function"==typeof(i=function(){"use strict";function a(_,C,R){var x=new XMLHttpRequest;x.open("GET",_),x.responseType="blob",x.onload=function(){A(x.response,C,R)},x.onerror=function(){console.error("could not download file")},x.send()}function l(_){var C=new XMLHttpRequest;C.open("HEAD",_,!1);try{C.send()}catch{}return 200<=C.status&&299>=C.status}function u(_){try{_.dispatchEvent(new MouseEvent("click"))}catch{var C=document.createEvent("MouseEvents");C.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),_.dispatchEvent(C)}}var d="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,s=d.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),A=d.saveAs||("object"!=typeof window||window!==d?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(_,C,R){var x=d.URL||d.webkitURL,f=document.createElement("a");f.download=C=C||_.name||"download",f.rel="noopener","string"==typeof _?(f.href=_,f.origin===location.origin?u(f):l(f.href)?a(_,C,R):u(f,f.target="_blank")):(f.href=x.createObjectURL(_),setTimeout(function(){x.revokeObjectURL(f.href)},4e4),setTimeout(function(){u(f)},0))}:"msSaveOrOpenBlob"in navigator?function(_,C,R){if(C=C||_.name||"download","string"!=typeof _)navigator.msSaveOrOpenBlob(function o(_,C){return typeof C>"u"?C={autoBom:!1}:"object"!=typeof C&&(console.warn("Deprecated: Expected third argument to be a object"),C={autoBom:!C}),C.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(_.type)?new Blob(["\ufeff",_],{type:_.type}):_}(_,R),C);else if(l(_))a(_,C,R);else{var x=document.createElement("a");x.href=_,x.target="_blank",setTimeout(function(){u(x)})}}:function(_,C,R,x){if((x=x||open("","_blank"))&&(x.document.title=x.document.body.innerText="downloading..."),"string"==typeof _)return a(_,C,R);var f="application/octet-stream"===_.type,k=/constructor/i.test(d.HTMLElement)||d.safari,w=/CriOS\/[\d]+/.test(navigator.userAgent);if((w||f&&k||s)&&typeof FileReader<"u"){var g=new FileReader;g.onloadend=function(){var E=g.result;E=w?E:E.replace(/^data:[^;]*;/,"data:attachment/file;"),x?x.location.href=E:location=E,x=null},g.readAsDataURL(_)}else{var M=d.URL||d.webkitURL,p=M.createObjectURL(_);x?x.location=p:location.href=p,x=null,setTimeout(function(){M.revokeObjectURL(p)},4e4)}});d.saveAs=A.saveAs=A,he.exports=A})?i.apply(y,[]):i)&&(he.exports=n)},26723:(he,y,i)=>{"use strict";function e(A){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_){return typeof _}:function(_){return _&&"function"==typeof Symbol&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(A)}function o(A,_){for(var C=0;C<_.length;C++){var R=_[C];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(A,l(R.key),R)}}function l(A){var _=function u(A,_){if("object"!==e(A)||null===A)return A;var C=A[Symbol.toPrimitive];if(void 0!==C){var R=C.call(A,_||"default");if("object"!==e(R))return R;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===_?String:Number)(A)}(A,"string");return"symbol"===e(_)?_:String(_)}i(40739),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288),y.default=function(){function A(_){(function n(A,_){if(!(A instanceof _))throw new TypeError("Cannot call a class as a function")})(this,A),this.baseUrl=_||"https://cdn.form.io",this.overrides={},this.libs={ace:"1.4.12",bootstrap:"4.6.2",ckeditor:"19.0.0",flatpickr:"4.6.8","flatpickr-formio":"4.6.13-formio.3","font-awesome":"4.7.0",grid:"latest","moment-timezone":"latest",quill:"2.0.0-dev.3","shortcut-buttons-flatpickr":"0.4.0",uswds:"2.4.8",core:""},this.updateUrls()}return function a(A,_,C){_&&o(A.prototype,_),C&&o(A,C),Object.defineProperty(A,"prototype",{writable:!1})}(A,[{key:"getVersion",value:function(C){return this.libs[C]}},{key:"setVersion",value:function(C,R){this.libs[C]=R,this.updateUrls()}},{key:"setBaseUrl",value:function(C){this.baseUrl=C,this.updateUrls()}},{key:"setOverrideUrl",value:function(C,R){this.overrides[C]=R,this.updateUrls()}},{key:"removeOverride",value:function(C){delete this.overrides[C],this.updateUrls()}},{key:"removeOverrides",value:function(){this.overrides={},this.updateUrls()}},{key:"buildUrl",value:function(C,R,x){return"latest"===x||""===x?"".concat(C,"/").concat(R):"".concat(C,"/").concat(R,"/").concat(x)}},{key:"updateUrls",value:function(){for(var C in this.libs)this[C]=this.buildUrl(C in this.overrides?this.overrides[C]:this.baseUrl,C,this.libs[C])}}]),A}()},92935:(he,y,i)=>{"use strict";i(40739),i(84254),i(752),i(21694),i(76265),i(51090),i(81919),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(60429),i(34338),i(49693),i(60228),i(47522),i(98742),i(63975),i(30024),i(63945),i(6203),i(50886),i(52003),i(64043),i(97195),i(57267),i(76801),i(43843),i(89730),i(69373),i(59903),i(59749),i(86544),i(79288);var e=_(i(79821)),n=i(55798),o=function A(M,p){if(!p&&M&&M.__esModule)return M;if(null===M||"object"!==C(M)&&"function"!=typeof M)return{default:M};var E=s(p);if(E&&E.has(M))return E.get(M);var b={},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in M)if("default"!==L&&Object.prototype.hasOwnProperty.call(M,L)){var D=I?Object.getOwnPropertyDescriptor(M,L):null;D&&(D.get||D.set)?Object.defineProperty(b,L,D):b[L]=M[L]}return b.default=M,E&&E.set(M,b),b}(i(12866)),a=_(i(91881)),l=_(i(6990)),u=_(i(16676)),d=_(i(61712));function s(M){if("function"!=typeof WeakMap)return null;var p=new WeakMap,E=new WeakMap;return(s=function(I){return I?E:p})(M)}function _(M){return M&&M.__esModule?M:{default:M}}function C(M){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(p){return typeof p}:function(p){return p&&"function"==typeof Symbol&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(M)}function x(M,p){for(var E=0;E<p.length;E++){var b=p[E];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(M,k(b.key),b)}}function k(M){var p=function w(M,p){if("object"!==C(M)||null===M)return M;var E=M[Symbol.toPrimitive];if(void 0!==E){var b=E.call(M,p||"default");if("object"!==C(b))return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===p?String:Number)(M)}(M,"string");return"symbol"===C(p)?p:String(p)}y.default=function(){function M(p){(function R(M,p){if(!(M instanceof p))throw new TypeError("Cannot call a class as a function")})(this,M),this.options=Object.assign({language:"en",highlightErrors:!0,componentErrorClass:"formio-error-wrapper",componentWarningClass:"formio-warning-wrapper",row:"",namespace:"formio"},p||{}),this.id=o.getRandomComponentId(),this.eventHandlers=[],this.i18next=this.options.i18next||a.default,this.events=p&&p.events?p.events:new e.default,this.defaultMask=null,this.helplinks="false"!==this.options.helplinks&&(this.options.helplinks||"https://help.form.io")}return function f(M,p,E){p&&x(M.prototype,p),E&&x(M,E),Object.defineProperty(M,"prototype",{writable:!1})}(M,[{key:"on",value:function(E,b,I){var L=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.events){var D="".concat(this.options.namespace,".").concat(E);return b.id=this.id,b.key=this.key,b.internal=I,this.events[L?"once":"on"](D,b)}}},{key:"once",value:function(E,b,I){return this.on(E,b,I,!0)}},{key:"onAny",value:function(E){if(this.events)return this.events.onAny(E)}},{key:"offAny",value:function(E){if(this.events)return this.events.offAny(E)}},{key:"off",value:function(E,b){var I=this;if(this.events){var L="".concat(this.options.namespace,".").concat(E);this.events.listeners(L).forEach(function(D){!D||D.id!==I.id||b&&b!==D||I.events.off(L,D)})}}},{key:"emit",value:function(E){if(this.events){for(var b,I=arguments.length,L=new Array(I>1?I-1:0),D=1;D<I;D++)L[D-1]=arguments[D];(b=this.events).emit.apply(b,["".concat(this.options.namespace,".").concat(E)].concat(L))}}},{key:"hasEventHandler",value:function(E){var b=this;if(!this.events)return!1;var I="".concat(this.options.namespace,".").concat(E);return this.events.listeners(I).some(function(L){return!!L&&(L.id===b.id||L.key===b.key)})}},{key:"addEventListener",value:function(E,b,I,L){if(E)return L||this.eventHandlers.push({id:this.id,obj:E,type:b,func:I}),"addEventListener"in E?E.addEventListener(b,I,!1):"attachEvent"in E&&E.attachEvent("on".concat(b),I),this}},{key:"removeEventListener",value:function(E,b){var I=this,L=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,D=[];if(E)return this.eventHandlers.forEach(function(F,P){F.id===I.id&&E.removeEventListener&&F.type===b&&(!L||F.func===L)&&(E.removeEventListener(b,F.func),D.push(P))}),D.length&&l.default.pullAt(this.eventHandlers,D),this}},{key:"removeEventListeners",value:function(){var E=this;this.eventHandlers.forEach(function(b){E.id===b.id&&b.type&&b.obj&&b.obj.removeEventListener&&b.obj.removeEventListener(b.type,b.func)}),this.eventHandlers=[]}},{key:"removeAllEvents",value:function(E){var b=this;l.default.each(this.events._events,function(I,L){l.default.each(I,function(D){D&&b.id===D.id&&(E||D.internal)&&b.events.off(L,D)})})}},{key:"destroy",value:function(){this.removeEventListeners(),this.removeAllEvents()}},{key:"appendTo",value:function(E,b){return b?.appendChild(E),this}},{key:"prependTo",value:function(E,b){if(b)if(b.firstChild)try{b.insertBefore(E,b.firstChild)}catch(I){console.warn(I),b.appendChild(E)}else b.appendChild(E);return this}},{key:"removeChildFrom",value:function(E,b){if(b&&b.contains(E))try{b.removeChild(E)}catch(I){console.warn(I)}return this}},{key:"ce",value:function(E,b){var I=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,L=document.createElement(E);return b&&this.attr(L,b),this.appendChild(L,I),L}},{key:"appendChild",value:function(E,b){var I=this;return Array.isArray(b)?b.forEach(function(L){return I.appendChild(E,L)}):b instanceof HTMLElement||b instanceof Text?E.appendChild(b):b&&E.appendChild(this.text(b.toString())),this}},{key:"maskPlaceholder",value:function(E){var b=this;return E.map(function(I){return I instanceof RegExp?b.placeholderChar:I}).join("")}},{key:"placeholderChar",get:function(){var E;return(null===(E=this.component)||void 0===E?void 0:E.inputMaskPlaceholderChar)||"_"}},{key:"setInputMask",value:function(E,b,I){if(E&&b){var L=o.getInputMask(b,this.placeholderChar);this.defaultMask=L;try{E.mask&&E.mask.destroy(),E.mask=(0,d.default)({inputElement:E,mask:L,placeholderChar:this.placeholderChar,shadowRoot:this.root?this.root.shadowRoot:null})}catch(D){console.warn(D)}L.numeric&&E.setAttribute("pattern","\\d*"),I&&E.setAttribute("placeholder",this.maskPlaceholder(L))}}},{key:"t",value:function(E){for(var b,I=arguments.length,L=new Array(I>1?I-1:0),D=1;D<I;D++)L[D-1]=arguments[D];return(b=this.i18next).t.apply(b,[E].concat(L))}},{key:"text",value:function(E){return document.createTextNode(this.t(E))}},{key:"attr",value:function(E,b){var I=this;E&&l.default.each(b,function(L,D){typeof L<"u"&&(0===D.indexOf("on")?I.addEventListener(E,D.substr(2).toLowerCase(),L):E.setAttribute(D,L))})}},{key:"hasClass",value:function(E,b){return!!E&&(b=" ".concat(b," ")," ".concat(E.className," ").replace(/[\n\t\r]/g," ").indexOf(b)>-1)}},{key:"addClass",value:function(E,b){if(!(E&&E instanceof HTMLElement))return this;var I=E.getAttribute("class");return null!=I&&I.includes(b)||E.setAttribute("class","".concat(I," ").concat(b)),this}},{key:"removeClass",value:function(E,b){if(!(E&&b&&E instanceof HTMLElement))return this;var I=E.getAttribute("class");return I&&(I=I.replace(new RegExp(" ".concat(b),"g"),""),E.setAttribute("class",I)),this}},{key:"empty",value:function(E){if(E)for(;E.firstChild;)E.removeChild(E.firstChild)}},{key:"evalContext",value:function(E){var b;return Object.assign({_:l.default,utils:o,util:o,user:n.GlobalFormio.getUser(),moment:u.default,instance:this,self:this,token:n.GlobalFormio.getToken({decode:!0}),config:this.root&&this.root.form&&this.root.form.config?this.root.form.config:null!==(b=this.options)&&void 0!==b&&b.formConfig?this.options.formConfig:{}},E,l.default.get(this.root,"options.evalContext",{}))}},{key:"interpolate",value:function(E,b){var I=this,L=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return"function"!=typeof E&&(this.component.content||this.component.html)&&!o.Evaluator.templateSettings.interpolate.test(E)&&(E=o.translateHTMLTemplate(String(E),function(D){return I.t(D)})),o.interpolate(E,this.evalContext(b),L)}},{key:"evaluate",value:function(E,b,I,L){return o.evaluate(E,this.evalContext(b),I,L)}},{key:"hook",value:function(){var E=arguments[0];if(this.options&&this.options.hooks&&this.options.hooks[E])return this.options.hooks[E].apply(this,Array.prototype.slice.call(arguments,1));var b="function"==typeof arguments[arguments.length-1]?arguments[arguments.length-1]:null;return b?b(null,arguments[1]):arguments[1]}}]),M}()},79821:(he,y,i)=>{"use strict";i(40739),i(5399),i(41517),i(88052),i(32349),i(81919),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(51090),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var e=i(81472),n=function a(I,L){if(!L&&I&&I.__esModule)return I;if(null===I||"object"!==l(I)&&"function"!=typeof I)return{default:I};var D=o(L);if(D&&D.has(I))return D.get(I);var F={},P=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in I)if("default"!==O&&Object.prototype.hasOwnProperty.call(I,O)){var U=P?Object.getOwnPropertyDescriptor(I,O):null;U&&(U.get||U.set)?Object.defineProperty(F,O,U):F[O]=I[O]}return F.default=I,D&&D.set(I,F),F}(i(12866));function o(I){if("function"!=typeof WeakMap)return null;var L=new WeakMap,D=new WeakMap;return(o=function(P){return P?D:L})(I)}function l(I){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(L){return typeof L}:function(L){return L&&"function"==typeof Symbol&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L})(I)}function u(I,L){for(var D=0;D<L.length;D++){var F=L[D];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(I,p(F.key),F)}}function _(I,L){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(F,P){return F.__proto__=P,F})(I,L)}function x(I){if(void 0===I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function k(){return k=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(L,D,F){var P=function w(I,L){for(;!Object.prototype.hasOwnProperty.call(I,L)&&null!==(I=g(I)););return I}(L,D);if(P){var O=Object.getOwnPropertyDescriptor(P,D);return O.get?O.get.call(arguments.length<3?L:F):O.value}},k.apply(this,arguments)}function g(I){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(D){return D.__proto__||Object.getPrototypeOf(D)})(I)}function M(I,L,D){return(L=p(L))in I?Object.defineProperty(I,L,{value:D,enumerable:!0,configurable:!0,writable:!0}):I[L]=D,I}function p(I){var L=function E(I,L){if("object"!==l(I)||null===I)return I;var D=I[Symbol.toPrimitive];if(void 0!==D){var F=D.call(I,L||"default");if("object"!==l(F))return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===L?String:Number)(I)}(I,"string");return"symbol"===l(L)?L:String(L)}y.default=function(I){!function A(I,L){if("function"!=typeof L&&null!==L)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(L&&L.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),Object.defineProperty(I,"prototype",{writable:!1}),L&&_(I,L)}(D,I);var L=function C(I){var L=function f(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var P,F=g(I);if(L){var O=g(this).constructor;P=Reflect.construct(F,arguments,O)}else P=F.apply(this,arguments);return function R(I,L){if(L&&("object"===l(L)||"function"==typeof L))return L;if(void 0!==L)throw new TypeError("Derived constructors may only return object or undefined");return x(I)}(this,P)}}(D);function D(){var F,P,O,U=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function s(I,L){if(!(I instanceof L))throw new TypeError("Cannot call a class as a function")}(this,D);var V=U.loadLimit,K=void 0===V?1e3:V,X=U.eventsSafeInterval,me=void 0===X?300:X;M(x(O=L.call(this)),"onAny",function(re){O.on("any",re)}),M(x(O),"offAny",function(re){O.off("any",re)});var Q=n.observeOverload(function(){console.warn("There were more than ".concat(K," events emitted in ").concat(me," ms. It might be caused by events' infinite loop"),O.id)},{limit:K,delay:me});return O.emit=function(){for(var re,de,te=arguments.length,j=new Array(te),H=0;H<te;H++)j[H]=arguments[H];(re=k((F=x(O),g(D.prototype)),"emit",F)).call.apply(re,[F].concat(j)),(de=k((P=x(O),g(D.prototype)),"emit",P)).call.apply(de,[P,"any"].concat(j)),Q()},O}return function d(I,L,D){return L&&u(I.prototype,L),D&&u(I,D),Object.defineProperty(I,"prototype",{writable:!1}),I}(D)}(e.EventEmitter)},20833:(he,y,i)=>{"use strict";function e(F){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(P){return typeof P}:function(P){return P&&"function"==typeof Symbol&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P})(F)}i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(752),i(21694),i(51090),i(76265),i(81919),i(84254),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(60429),i(30024),i(60228),i(63945),i(34338),i(96869),i(5399),i(41517),i(88052);var n=_(i(92935)),o=i(55798),a=_(i(75428)),l=_(i(93736)),u=function A(F,P){if(!P&&F&&F.__esModule)return F;if(null===F||"object"!==e(F)&&"function"!=typeof F)return{default:F};var O=s(P);if(O&&O.has(F))return O.get(F);var U={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var K in F)if("default"!==K&&Object.prototype.hasOwnProperty.call(F,K)){var X=V?Object.getOwnPropertyDescriptor(F,K):null;X&&(X.get||X.set)?Object.defineProperty(U,K,X):U[K]=F[K]}return U.default=F,O&&O.set(F,U),U}(i(12866)),d=_(i(73808));function s(F){if("function"!=typeof WeakMap)return null;var P=new WeakMap,O=new WeakMap;return(s=function(V){return V?O:P})(F)}function _(F){return F&&F.__esModule?F:{default:F}}function C(F,P,O){return(C=I()?Reflect.construct.bind():function(V,K,X){var me=[null];me.push.apply(me,K);var Q=new(Function.bind.apply(V,me));return X&&M(Q,X.prototype),Q}).apply(null,arguments)}function x(F,P){for(var O=0;O<P.length;O++){var U=P[O];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(F,k(U.key),U)}}function k(F){var P=function w(F,P){if("object"!==e(F)||null===F)return F;var O=F[Symbol.toPrimitive];if(void 0!==O){var U=O.call(F,P||"default");if("object"!==e(U))return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===P?String:Number)(F)}(F,"string");return"symbol"===e(P)?P:String(P)}function M(F,P){return(M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(U,V){return U.__proto__=V,U})(F,P)}function I(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function L(F){return(L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(O){return O.__proto__||Object.getPrototypeOf(O)})(F)}var D=function(F){!function g(F,P){if("function"!=typeof P&&null!==P)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(P&&P.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),Object.defineProperty(F,"prototype",{writable:!1}),P&&M(F,P)}(O,F);var P=function p(F){var P=I();return function(){var V,U=L(F);if(P){var K=L(this).constructor;V=Reflect.construct(U,arguments,K)}else V=U.apply(this,arguments);return function E(F,P){if(P&&("object"===e(P)||"function"==typeof P))return P;if(void 0!==P)throw new TypeError("Derived constructors may only return object or undefined");return function b(F){if(void 0===F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}(F)}(this,V)}}(O);function O(){var U;!function R(F,P){if(!(F instanceof P))throw new TypeError("Cannot call a class as a function")}(this,O);var V=(arguments.length<=0?void 0:arguments[0])instanceof HTMLElement?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1];return o.GlobalFormio.options&&o.GlobalFormio.options.form&&(V=Object.assign(V,o.GlobalFormio.options.form)),(U=P.call(this,V)).options.useSessionToken&&o.GlobalFormio.useSessionToken(U.options),U.ready=new d.default(function(K,X){U.readyResolve=K,U.readyReject=X}),U.instance=null,(arguments.length<=0?void 0:arguments[0])instanceof HTMLElement?(U.element=arguments.length<=0?void 0:arguments[0],U.options=(arguments.length<=2?void 0:arguments[2])||{},U.options.events=U.events,U.setForm(arguments.length<=1?void 0:arguments[1]).then(function(){return U.readyResolve(U.instance)}).catch(U.readyReject)):arguments.length<=0||!arguments[0]?(U.element=null,U.options={},U.options.events=U.events):(U.element=null,U.options=(arguments.length<=1?void 0:arguments[1])||{},U.options.events=U.events,U.setForm(arguments.length<=0?void 0:arguments[0]).then(function(){return U.readyResolve(U.instance)}).catch(U.readyReject)),U.display="",U}return function f(F,P,O){P&&x(F.prototype,P),O&&x(F,O),Object.defineProperty(F,"prototype",{writable:!1})}(O,[{key:"create",value:function(V){return this.options&&(this.options.flatten||"flat"===this.options.renderMode)&&(V="form"),this.display=V,a.default.displays[V]?new a.default.displays[V](this.element,this.options):new a.default.displays.webform(this.element,this.options)}},{key:"form",get:function(){return this._form},set:function(V){return this.setForm(V)}},{key:"errorForm",value:function(V){return{components:[{label:"HTML",tag:"div",className:"error error-message alert alert-danger ui red message",attrs:[{attr:"role",value:"alert"}],key:"errorMessage",type:"htmlelement",input:!1,content:"string"==typeof V?V:V.message}]}}},{key:"setForm",value:function(V){var X,K=this;if("string"==typeof(V=V||this.form)){var J,me=new o.GlobalFormio(V);X=this.getSubmission(me,this.options).catch(function(Q){J=Q}).then(function(Q){return me.loadForm().catch(function(re){J=re}).then(function(re){if(J&&(re=K.errorForm(J)),K.instance=K.instance||K.create(re.display),K.instance.url=V,K.instance.nosubmit=!1,K._form=K.instance.form=re,Q&&(K.instance.submission=Q),J)throw J;return K.instance})})}else this.instance=this.instance||this.create(V.display),this._form=this.instance.form=V,X=this.instance.ready;return X.then(function(){return K.element=K.instance.element,K.instance})}},{key:"getSubmission",value:function(V,K){return V.submissionId?V.loadSubmission(null,K):d.default.resolve()}},{key:"setDisplay",value:function(V){return this.display===V&&this.instance?d.default.resolve(this.instance):(this.form.display=V,this.instance.destroy(),this.instance=this.create(V),this.setForm(this.form))}},{key:"empty",value:function(){if(this.element)for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}},{key:"sanitize",value:function(V,K){return!1!==this.options.sanitize||K?u.sanitize(V,this.options):V}},{key:"setContent",value:function(V,K,X){return V instanceof HTMLElement&&(V.innerHTML=this.sanitize(K,X),!0)}},{key:"build",value:function(){var V=this;return this.instance?this.element?(this.setContent(this.element,(l.default[this.options&&this.options.template?this.options.template:"bootstrap"].loader||l.default.bootstrap.loader).form),this.render().then(function(me){return V.setContent(V.element,me),V.attach(V.element).then(function(){return V.instance})}).then(function(me){return V.emit("build",me),me})):d.default.reject("No DOM element for form."):d.default.reject("Form not ready. Use form.ready promise")}},{key:"render",value:function(){var V=this;return this.instance?d.default.resolve(this.instance.render()).then(function(K){return V.emit("render",K),K}):d.default.reject("Form not ready. Use form.ready promise")}},{key:"attach",value:function(V){var K=this;return this.instance?(this.element=V,this.instance.attach(this.element).then(function(X){return K.emit("attach",X),X})):d.default.reject("Form not ready. Use form.ready promise")}}],[{key:"embed",value:function(V){var K=this;return new d.default(function(X){(!V||!V.src)&&X();var me=K.id||"formio-".concat(Math.random().toString(36).substring(7)),J=V.class||"formio-form-wrapper",Q=V.styles?'<link rel="stylesheet" href="'.concat(V.styles,'">'):"";Q+='<div id="'.concat(me,'" class="').concat(J,'"></div>'),document.write(Q);var re=0,de=setInterval(function(){re++;var te=document.getElementById(me);(te||re>10)&&(X(new O(te,V.src).ready),clearInterval(de))},10)})}}]),O}(n.default);y.default=D,o.GlobalFormio.embedForm=function(F){return D.embed(F)},o.GlobalFormio.createForm=function(){for(var F=arguments.length,P=new Array(F),O=0;O<F;O++)P[O]=arguments[O];return C(D,P).ready},o.GlobalFormio.Form=D},6951:(he,y,i)=>{"use strict";i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(60429),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var e=i(55798),n=a(i(85136));function a(b){return b&&b.__esModule?b:{default:b}}function l(b,I,L){return(l=k()?Reflect.construct.bind():function(F,P,O){var U=[null];U.push.apply(U,P);var K=new(Function.bind.apply(F,U));return O&&C(K,O.prototype),K}).apply(null,arguments)}function u(b){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(I){return typeof I}:function(I){return I&&"function"==typeof Symbol&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I})(b)}function s(b,I){for(var L=0;L<I.length;L++){var D=I[L];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(b,M(D.key),D)}}function C(b,I){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,F){return D.__proto__=F,D})(b,I)}function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function w(b){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(L){return L.__proto__||Object.getPrototypeOf(L)})(b)}function M(b){var I=function p(b,I){if("object"!==u(b)||null===b)return b;var L=b[Symbol.toPrimitive];if(void 0!==L){var D=L.call(b,I||"default");if("object"!==u(D))return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===I?String:Number)(b)}(b,"string");return"symbol"===u(I)?I:String(I)}var E=function(b){!function _(b,I){if("function"!=typeof I&&null!==I)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(I&&I.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),I&&C(b,I)}(L,b);var I=function R(b){var I=k();return function(){var F,D=w(b);if(I){var P=w(this).constructor;F=Reflect.construct(D,arguments,P)}else F=D.apply(this,arguments);return function x(b,I){if(I&&("object"===u(I)||"function"==typeof I))return I;if(void 0!==I)throw new TypeError("Derived constructors may only return object or undefined");return function f(b){if(void 0===b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}(b)}(this,F)}}(L);function L(D,F,P){return function d(b,I){if(!(b instanceof I))throw new TypeError("Cannot call a class as a function")}(this,L),P=P||{},I.call(this,D,F=F||{},Object.assign(P,L.options,e.GlobalFormio.options&&e.GlobalFormio.options.builder?e.GlobalFormio.options.builder:{}))}return function A(b,I,L){I&&s(b.prototype,I),L&&s(b,L),Object.defineProperty(b,"prototype",{writable:!1})}(L,[{key:"create",value:function(F){return n.default.builders[F]?new n.default.builders[F](this.element,this.options):new n.default.builders.webform(this.element,this.options)}}]),L}(a(i(20833)).default);y.default=E,function g(b,I,L){(I=M(I))in b?Object.defineProperty(b,I,{value:L,enumerable:!0,configurable:!0,writable:!0}):b[I]=L}(E,"options",{}),e.GlobalFormio.builder=function(){for(var b=arguments.length,I=new Array(b),L=0;L<b;L++)I[L]=arguments[L];return l(E,I).ready},e.GlobalFormio.FormBuilder=E},55798:(he,y,i)=>{"use strict";i(69373),i(59903),i(40739),i(89730),i(34284),i(77049),Object.defineProperty(y,"__esModule",{value:!0}),y.default=y.GlobalFormio=void 0,i(63975),i(64043),i(22462),i(61514),i(97195),i(34338),i(52003),i(63945),i(57267),i(6203),i(76801),i(43843),i(32320),i(60429),i(49693),i(60228),i(47522),i(79288),i(38077),i(65137),i(50886),i(278),i(30024),i(96869),i(59749),i(86544),i(84254),i(752),i(21694),i(76265);var e=x(i(73808)),n=x(i(7191)),o=x(i(79821)),a=x(i(26841)),l=x(i(21761)),u=x(i(71541)),d=x(i(55440)),s=x(i(54451)),A=x(i(5433)),_=i(12866),C=x(i(96726));i(56281);var R=x(i(26723));function x(j){return j&&j.__esModule?j:{default:j}}function k(j,H){return function E(j){if(Array.isArray(j))return j}(j)||function p(j,H){var z=null==j?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(null!=z){var q,se,ne,_e,ge=[],Ce=!0,Te=!1;try{if(ne=(z=z.call(j)).next,0===H){if(Object(z)!==z)return;Ce=!1}else for(;!(Ce=(q=ne.call(z)).done)&&(ge.push(q.value),ge.length!==H);Ce=!0);}catch(De){Te=!0,se=De}finally{try{if(!Ce&&null!=z.return&&(_e=z.return(),Object(_e)!==_e))return}finally{if(Te)throw se}}return ge}}(j,H)||g(j,H)||function w(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(j,H){if(j){if("string"==typeof j)return M(j,H);var z=Object.prototype.toString.call(j).slice(8,-1);if("Object"===z&&j.constructor&&(z=j.constructor.name),"Map"===z||"Set"===z)return Array.from(j);if("Arguments"===z||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return M(j,H)}}function M(j,H){(null==H||H>j.length)&&(H=j.length);for(var z=0,q=new Array(H);z<H;z++)q[z]=j[z];return q}function I(j,H){for(var z=0;z<H.length;z++){var q=H[z];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(j,F(q.key),q)}}function F(j){var H=function P(j,H){if("object"!==O(j)||null===j)return j;var z=j[Symbol.toPrimitive];if(void 0!==z){var q=z.call(j,H||"default");if("object"!==O(q))return q;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===H?String:Number)(j)}(j,"string");return"symbol"===O(H)?H:String(H)}function O(j){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(H){return typeof H}:function(H){return H&&"function"==typeof Symbol&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H})(j)}var U=(0,n.default)({Promise:e.default}),V=U.fetch,K=U.Headers,me=function(H){return null==H},J=function(H){return H&&"object"===O(H)};function Q(j){var H=(0,s.default)(j);return Array.isArray(j)&&(H.skip=j.skip,H.limit=j.limit,H.serverCount=j.serverCount),H}var re=function(){function j(H){var z=this,q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function b(j,H){if(!(j instanceof H))throw new TypeError("Cannot call a class as a function")}(this,j),!(this instanceof j))return new j(H);if(this.base="",this.projectsUrl="",this.projectUrl="",this.projectId="",this.roleUrl="",this.rolesUrl="",this.roleId="",this.formUrl="",this.formsUrl="",this.formId="",this.submissionsUrl="",this.submissionUrl="",this.submissionId="",this.actionsUrl="",this.actionId="",this.actionUrl="",this.vsUrl="",this.vId="",this.vUrl="",this.query="",this.path=H,this.options=q,q.useSessionToken&&j.useSessionToken(q),q.hasOwnProperty("base")?this.base=q.base:j.baseUrl?this.base=j.baseUrl:typeof window<"u"&&(this.base=window.location.href.match(/http[s]?:\/\/api./)[0]),!H)return this.projectUrl=j.projectUrl||"".concat(this.base,"/project"),this.projectsUrl="".concat(this.base,"/project"),this.projectId=!1,void(this.query="");q.hasOwnProperty("project")&&(this.projectUrl=q.project);var se=this.projectUrl||j.projectUrl,ne=/(^|\/)(project)($|\/[^/]+)/,_e=-1!==H.search(ne);se&&this.base===se&&!_e&&(this.noProject=!0,this.projectUrl=this.base),0!==H.indexOf("http")&&0!==H.indexOf("//")&&(H=this.base+H);var ge=this.getUrlParts(H),Ce=[],Te=ge[1]+ge[2],De=(H=ge.length>3?ge[3]:"").split("?");De.length>1&&(H=De[0],this.query="?".concat(De[1]));var fe=function(sn,fn){z["".concat(sn,"sUrl")]="".concat(fn,"/").concat(sn);var yi=new RegExp("/".concat(sn,"/([^/]+)"));return-1!==H.search(yi)&&(Ce=H.match(yi),z["".concat(sn,"Url")]=Ce?fn+Ce[0]:"",z["".concat(sn,"Id")]=Ce.length>1?Ce[1]:"",fn+=Ce[0]),fn},xe=function dn(sn,fn,yi){for(var nn in sn)if(sn.hasOwnProperty(nn)){var Mi=sn[nn];if(Array.isArray(Mi))dn(Mi,fn,!0);else{var mi=fe(Mi,fn);fn=yi?fn:mi}}};if(!this.projectUrl||this.projectUrl===this.base)if(this.projectUrl||_e||"Subdirectories"!==j.pathType)this.projectUrl=Te;else{var Oe="^".concat(Te.replace(/\//g,"\\/"),".[^/]+"),Le=se.match(new RegExp(Oe));this.projectUrl=Le?Le[0]:Te}var Gt=!1;if(j.pathType&&(Gt="Subdomains"!==j.pathType),!this.noProject){if(_e)xe(["project"],Te),H=H.replace(ne,"");else if(Te===this.base){if(ge.length>3&&H.split("/").length>1){var Ut=H.match(/.json/),An=H.split("/");Ut?this.projectUrl=Te:(An.shift(),this.projectId=An.shift(),H="/".concat(An.join("/")),this.projectUrl="".concat(Te,"/").concat(this.projectId))}}else ge.length>2&&(ge[2].split(".").length>2||Te.includes("localhost"))&&!Gt&&(this.projectUrl=Te,this.projectId=ge[2].split(".")[0]);this.projectsUrl=this.projectsUrl||"".concat(this.base,"/project")}if(xe(["role"],this.projectUrl),/(^|\/)(form)($|\/)/.test(H))xe(["form",["submission","action","v"]],this.projectUrl);else{var $n=new RegExp("/(submission|action|v)($|/.*)"),xn=H.match($n);this.pathType=xn&&xn.length>1?xn[1]:"",H=(H=H.replace($n,"")).replace(/\/$/,""),this.formsUrl="".concat(this.projectUrl,"/form"),this.formUrl=H?this.projectUrl+H:"",this.formId=H.replace(/^\/+|\/+$/g,"");var mt=["submission","action","v"];for(var ut in mt)if(mt.hasOwnProperty(ut)){var Wt=mt[ut];this["".concat(Wt,"sUrl")]="".concat(this.projectUrl+H,"/").concat(Wt),this.pathType===Wt&&xn.length>2&&xn[2]&&(this["".concat(Wt,"Id")]=xn[2].replace(/^\/+|\/+$/g,""),this["".concat(Wt,"Url")]=this.projectUrl+H+xn[0])}}j.projectUrlSet||(j.projectUrl=this.projectUrl)}return function L(j,H,z){H&&I(j.prototype,H),z&&I(j,z),Object.defineProperty(j,"prototype",{writable:!1})}(j,[{key:"delete",value:function(z,q){var se="".concat(z,"Id"),ne="".concat(z,"Url");return this[se]?(j.cache={},this.makeRequest(z,this[ne],"delete",null,q)):e.default.reject("Nothing to delete")}},{key:"index",value:function(z,q,se){var ne="".concat(z,"Url");return(q=q||"")&&J(q)&&(q="?".concat(j.serialize(q.params))),this.makeRequest(z,this[ne]+q,"get",null,se)}},{key:"save",value:function(z,q,se){var ne="".concat(z,"Id"),_e="".concat(z,"Url"),ge=this[ne]||q._id?"put":"post",Ce=this[ne]?this[_e]:this["".concat(z,"sUrl")];return!this[ne]&&q._id&&"put"===ge&&!Ce.includes(q._id)&&(Ce+="/".concat(q._id)),j.cache={},this.makeRequest(z,Ce+this.query,ge,q,se)}},{key:"load",value:function(z,q,se){var ne="".concat(z,"Id"),_e="".concat(z,"Url");if(q&&J(q)&&(q=j.serialize(q.params)),q=q?this.query?"".concat(this.query,"&").concat(q):"?".concat(q):this.query,!this[ne])return e.default.reject("Missing ".concat(ne));var ge=this[_e]+q;return"form"===z&&!isNaN(parseInt(this.vId))&&0!==parseInt(this.vId)&&(ge+=ge.match(/\?/)?"&":"?",ge+="formRevision=".concat(this.vId)),this.makeRequest(z,ge,"get",null,se)}},{key:"makeRequest",value:function(){for(var z=arguments.length,q=new Array(z),se=0;se<z;se++)q[se]=arguments[se];return j.makeRequest.apply(j,[this].concat(q))}},{key:"loadProject",value:function(z,q){return this.load("project",z,q)}},{key:"saveProject",value:function(z,q){return this.save("project",z,q)}},{key:"deleteProject",value:function(z){return this.delete("project",z)}},{key:"loadRole",value:function(z){return this.load("role",null,z)}},{key:"saveRole",value:function(z,q){return this.save("role",z,q)}},{key:"deleteRole",value:function(z){return this.delete("role",z)}},{key:"loadRoles",value:function(z){return this.index("roles",null,z)}},{key:"loadForm",value:function(z,q){var se=this;return this.load("form",z,q).then(function(ne){return!ne.revisions||isNaN(parseInt(se.vId))||"current"===ne.revisions&&se.submissionId||ne._vid==se.vId||ne.revisionId===se.vId?ne:(z&&J(z)&&(z=j.serialize(z.params)),z=z?se.query?"".concat(se.query,"&").concat(z):"?".concat(z):se.query,se.makeRequest("form",se.vUrl+z,"get",null,q).then(function(_e){return ne._vid=_e._vid,ne.components=_e.components,ne.settings=_e.settings,ne.revisionId=_e.revisionId,Object.assign({},ne)}).catch(function(){return Object.assign({},ne)}))})}},{key:"saveForm",value:function(z,q){return this.save("form",z,q)}},{key:"deleteForm",value:function(z){return this.delete("form",z)}},{key:"loadForms",value:function(z,q){return this.index("forms",z,q)}},{key:"loadSubmission",value:function(z,q){var se=this;return this.load("submission",z,q).then(function(ne){return se.vId=ne._frid||ne._fvid,se.vUrl="".concat(se.formUrl,"/v/").concat(se.vId),ne})}},{key:"saveSubmission",value:function(z,q){return isNaN(parseInt(this.vId))||(z._fvid=this.vId),this.save("submission",z,q)}},{key:"deleteSubmission",value:function(z){return this.delete("submission",z)}},{key:"loadSubmissions",value:function(z,q){return this.index("submissions",z,q)}},{key:"loadAction",value:function(z,q){return this.load("action",z,q)}},{key:"saveAction",value:function(z,q){return this.save("action",z,q)}},{key:"deleteAction",value:function(z){return this.delete("action",z)}},{key:"loadActions",value:function(z,q){return this.index("actions",z,q)}},{key:"availableActions",value:function(){return this.makeRequest("availableActions","".concat(this.formUrl,"/actions"))}},{key:"actionInfo",value:function(z){return this.makeRequest("actionInfo","".concat(this.formUrl,"/actions/").concat(z))}},{key:"isObjectId",value:function(z){return new RegExp("^[0-9a-fA-F]{24}$").test(z)}},{key:"getProjectId",value:function(){return this.projectId?this.isObjectId(this.projectId)?e.default.resolve(this.projectId):this.loadProject().then(function(z){return z._id}):e.default.resolve("")}},{key:"getFormId",value:function(){return this.formId?this.isObjectId(this.formId)?e.default.resolve(this.formId):this.loadForm().then(function(z){return z._id}):e.default.resolve("")}},{key:"currentUser",value:function(z){return j.currentUser(this,z)}},{key:"accessInfo",value:function(){return j.accessInfo(this)}},{key:"oauthLogoutURI",value:function(z,q){return j.oauthLogoutURI(z,Object.assign({formio:this},this.options,q))}},{key:"getToken",value:function(z){return j.getToken(Object.assign({formio:this},this.options,z))}},{key:"setToken",value:function(z,q){return j.setToken(z,Object.assign({formio:this},this.options,q))}},{key:"getTempToken",value:function(z,q,se){return j.getToken(se)?this.makeRequest("tempToken","".concat(j.authUrl||this.projectUrl,"/token"),"GET",null,{ignoreCache:!0,header:new K({"x-expire":z,"x-allow":q})}):e.default.reject("You must be authenticated to generate a temporary auth token.")}},{key:"getDownloadUrl",value:function(z){var q=this;if(!this.submissionId)return e.default.resolve("");if(!z)return this.loadForm().then(function(ge){return ge?q.getDownloadUrl(ge):""});var se="/project/".concat(z.project);se+="/form/".concat(z._id),se+="/submission/".concat(this.submissionId);var _e=this.base+(se+=z.submissionRevisions&&z.settings.changeLog?"/download/changelog":"/download");return new e.default(function(ge,Ce){q.getTempToken(3600,"GET:".concat(se)).then(function(Te){_e+="?token=".concat(Te.key),ge(_e)},function(){ge(_e)}).catch(Ce)})}},{key:"uploadFile",value:function(z,q,se,ne,_e,ge,Ce,Te,De,fe,xe,Oe){var Le=this,Gt={provider:z,method:"upload",file:q,fileName:se,dir:ne};Te=Te||"file";var Ut=j.pluginWait("preRequest",Gt).then(function(){return j.pluginGet("fileRequest",Gt).then(function(An){if(z&&me(An)){var $n=l.default.getProvider("storage",z);if($n){var xn=new $n(Le);return xe&&xe(),xn.uploadFile(q,se,ne,_e,ge,Ce,Te,De,fe,Oe)}throw"Storage provider not found"}return An||{url:""}})});return j.pluginAlter("wrapFileRequestPromise",Ut,Gt)}},{key:"downloadFile",value:function(z,q){var se=this,ne={method:"download",file:z},_e=j.pluginWait("preRequest",ne).then(function(){return j.pluginGet("fileRequest",ne).then(function(ge){if(z.storage&&me(ge)){var Ce=l.default.getProvider("storage",z.storage);if(Ce)return new Ce(se).downloadFile(z,q);throw"Storage provider not found"}return ge||{url:""}})});return j.pluginAlter("wrapFileRequestPromise",_e,ne)}},{key:"deleteFile",value:function(z,q){var se=this,ne={method:"delete",file:z},_e=j.pluginWait("preRequest",ne).then(function(){return j.pluginGet("fileRequest",ne).then(function(ge){if(z.storage&&me(ge)){var Ce=l.default.getProvider("storage",z.storage);if(Ce)return new Ce(se).deleteFile(z,q);throw"Storage provider not found"}return ge||{url:""}})});return j.pluginAlter("wrapFileRequestPromise",_e,ne)}},{key:"userPermissions",value:function(z,q,se){return e.default.all([void 0!==q?e.default.resolve(q):this.loadForm(),void 0!==z?e.default.resolve(z):this.currentUser(),void 0===se&&this.submissionId?this.loadSubmission():e.default.resolve(se),this.accessInfo()]).then(function(ne){var _e=ne.shift(),ge=ne.shift()||{_id:!1,roles:[]},Ce=ne.shift(),Te=ne.shift(),De={create:"create",read:"read",update:"edit",delete:"delete"},fe={user:ge,form:_e,access:Te,create:!1,read:!1,edit:!1,delete:!1};for(var xe in Te.roles)if(Te.roles.hasOwnProperty(xe)){var Oe=Te.roles[xe];if(Oe.default&&!1===ge._id)ge.roles.push(Oe._id);else if(Oe.admin&&-1!==ge.roles.indexOf(Oe._id))return fe.create=!0,fe.read=!0,fe.delete=!0,fe.edit=!0,fe}if(_e&&_e.submissionAccess)for(var Le=0;Le<_e.submissionAccess.length;Le++){var Gt=_e.submissionAccess[Le],An=k(Gt.type.split("_"),2),$n=An[0],xn=An[1];["create","read","update","delete"].includes($n)&&(0,u.default)(Gt.roles,ge.roles).length&&(fe[De[$n]]="all"===xn||!Ce||ge._id===Ce.owner)}return Ce&&(0,_.eachComponent)(_e.components,function(mt,ut){if(mt&&mt.defaultPermission){var Wt=(0,d.default)(Ce.data,ut);(Array.isArray(Wt)?Wt:[Wt]).forEach(function(sn){sn&&sn._id&&ge.roles.indexOf(sn._id)>-1&&("read"===mt.defaultPermission&&(fe[De.read]=!0),"create"===mt.defaultPermission&&(fe[De.create]=!0,fe[De.read]=!0),"write"===mt.defaultPermission&&(fe[De.create]=!0,fe[De.read]=!0,fe[De.update]=!0),"admin"===mt.defaultPermission&&(fe[De.create]=!0,fe[De.read]=!0,fe[De.update]=!0,fe[De.delete]=!0))})}}),fe})}},{key:"canSubmit",value:function(){var z=this;return this.userPermissions().then(function(q){return!q.create&&j.getUser()?z.userPermissions(null).then(function(se){return!!se.create&&(j.setUser(null),!0)}):q.create})}},{key:"getUrlParts",value:function(z){return j.getUrlParts(z,this)}}],[{key:"useSessionToken",value:function(z){var q="".concat(z.namespace||j.namespace||"formio","Token"),se=localStorage.getItem(q);se&&(localStorage.removeItem(q),sessionStorage.setItem(q,se));var ne="".concat(z.namespace||j.namespace||"formio","User"),_e=localStorage.getItem(ne);_e&&(localStorage.removeItem(ne),sessionStorage.setItem(ne,_e)),localStorage.setItem("useSessionToken",!0)}},{key:"loadProjects",value:function(z,q){return J(z=z||"")&&(z="?".concat(j.serialize(z.params))),j.makeStaticRequest("".concat(j.baseUrl,"/project").concat(z),"GET",null,q)}},{key:"getUrlParts",value:function(z,q){var se=q&&q.base?q.base:j.baseUrl,ne="^(http[s]?:\\/\\/)";return se&&0===z.indexOf(se)?ne+="(".concat(se.replace(/^http[s]?:\/\//,""),")"):ne+="([^/]+)",ne+="($|\\/.*)",z.match(new RegExp(ne))}},{key:"serialize",value:function(z,q){var Ce,se=[];for(var _e in z)z.hasOwnProperty(_e)&&se.push("".concat(encodeURIComponent(_e),"=").concat(encodeURIComponent((Ce=z[_e],q?q(Ce):Ce))));return se.join("&")}},{key:"getRequestArgs",value:function(z,q,se,ne,_e,ge){ne=(ne||"GET").toUpperCase(),(!ge||!J(ge))&&(ge={});var Ce={url:se,method:ne,data:_e||null,opts:ge};return q&&(Ce.type=q),z&&(Ce.formio=z),Ce}},{key:"makeStaticRequest",value:function(z,q,se,ne){var _e=j.getRequestArgs(null,"",z,q,se,ne),ge=j.pluginWait("preRequest",_e).then(function(){return j.pluginGet("staticRequest",_e).then(function(Ce){return me(Ce)?j.request(_e.url,_e.method,_e.data,_e.opts.header,_e.opts):Ce})});return j.pluginAlter("wrapStaticRequestPromise",ge,_e)}},{key:"makeRequest",value:function(z,q,se,ne,_e,ge){if(!z)return j.makeStaticRequest(se,ne,_e,ge);var Ce=j.getRequestArgs(z,q,se,ne,_e,ge);Ce.opts=Ce.opts||{},Ce.opts.formio=z,Ce.opts.headers||(Ce.opts.headers={}),Ce.opts.headers=(0,A.default)(Ce.opts.headers,{Accept:"application/json","Content-type":"application/json"});var Te=j.pluginWait("preRequest",Ce).then(function(){return j.pluginGet("request",Ce).then(function(De){return me(De)?j.request(Ce.url,Ce.method,Ce.data,Ce.opts.header,Ce.opts):De})});return j.pluginAlter("wrapRequestPromise",Te,Ce)}},{key:"request",value:function(z,q,se,ne,_e){if(!z)return e.default.reject("No url provided");var ge=j;q=(q||"GET").toUpperCase(),O(_e)===O(!0)&&(_e={ignoreCache:_e}),(!_e||!J(_e))&&(_e={});var Ce=btoa(encodeURI(z));if(!_e.ignoreCache&&"GET"===q&&ge.cache.hasOwnProperty(Ce))return e.default.resolve(Q(ge.cache[Ce]));var Te=ne||new K(_e.headers||{Accept:"application/json","Content-type":"application/json"}),De=ge.getToken(_e);De&&!_e.noToken&&Te.append("x-jwt-token",De);var fe={};Te.forEach(function(Gt,Ut){fe[Ut]=Gt});var xe={method:q,headers:fe,mode:"cors"};se&&(xe.body=JSON.stringify(se)),((xe=ge.pluginAlter("requestOptions",xe,z)).namespace||ge.namespace)&&(_e.namespace=xe.namespace||ge.namespace);var Oe=xe.headers["x-jwt-token"];return ge.pluginAlter("wrapFetchRequestPromise",ge.fetch(z,xe),{url:z,method:q,data:se,opts:_e}).then(function(Gt){if(!(Gt=ge.pluginAlter("requestResponse",Gt,ge,se)).ok){if(440===Gt.status)ge.setToken(null,_e),ge.events.emit("formio.sessionExpired",Gt.body);else if(401===Gt.status)ge.events.emit("formio.unauthorized",Gt.body);else if(416===Gt.status)ge.events.emit("formio.rangeIsNotSatisfiable",Gt.body);else if(504===Gt.status)return e.default.reject(new Error("Network request failed"));return(Gt.headers.get("content-type").includes("application/json")?Gt.json():Gt.text()).then(function(xn){return e.default.reject(xn)})}var Ut=Gt.headers.get("x-jwt-token"),An=!1;return"GET"===q&&!Oe&&Ut&&!_e.external&&!z.includes("token=")&&!z.includes("x-jwt-token=")&&(console.warn("Token was introduced in request."),An=!0),Gt.status>=200&&Gt.status<300&&Ut&&""!==Ut&&!An&&ge.setToken(Ut,_e),204===Gt.status?{}:(Gt.headers.get("content-type").includes("application/json")?Gt.json():Gt.text()).then(function(xn){var mt=Gt.headers.get("content-range");if(mt&&J(xn)){if("*"!==(mt=mt.split("/"))[0]){var ut=mt[0].split("-");xn.skip=Number(ut[0]),xn.limit=ut[1]-ut[0]+1}xn.serverCount="*"===mt[1]?mt[1]:Number(mt[1])}if(!_e.getHeaders)return xn;var Wt={};return Gt.headers.forEach(function(dn,sn){Wt[sn]=dn}),{result:xn,headers:Wt}})}).then(function(Gt){return _e.getHeaders?Gt:("GET"===q&&(ge.cache[Ce]=Gt),Q(Gt))}).catch(function(Gt){return"Bad Token"===Gt&&(ge.setToken(null,_e),ge.events.emit("formio.badToken",Gt)),Gt.message&&((Gt=new Error("Could not connect to API server (".concat(Gt.message,"): ").concat(z))).networkError=!0),"GET"===q&&delete ge.cache[Ce],e.default.reject(Gt)})}},{key:"token",get:function(){return j.tokens||(j.tokens={}),j.tokens.formioToken||""},set:function(z){j.tokens||(j.tokens={}),j.tokens.formioToken=z||""}},{key:"setToken",value:function(){var z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",q=arguments.length>1?arguments[1]:void 0;z=z||"";var se="".concat((q="string"==typeof q?{namespace:q}:q||{}).namespace||j.namespace||"formio","Token");j.tokens||(j.tokens={});var ne=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!z){q.fromUser||(q.fromToken=!0,j.setUser(null,q));try{ne.removeItem(se)}catch{a.default.erase(se,{path:"/"})}return j.tokens[se]=z,e.default.resolve(null)}if(j.tokens[se]!==z){j.tokens[se]=z;try{ne.setItem(se,z)}catch{a.default.set(se,z,{path:"/"})}}return this.currentUserResolved?j.currentUser(q.formio,q):e.default.resolve(null)}},{key:"getToken",value:function(z){var q="".concat((z="string"==typeof z?{namespace:z}:z||{}).namespace||j.namespace||"formio","Token"),se=z.decode?"".concat(q,"Decoded"):q;if(j.tokens||(j.tokens={}),j.tokens[se])return j.tokens[se];try{var ne=localStorage.getItem("useSessionToken")?sessionStorage.getItem(q):localStorage.getItem(q);return j.tokens[q]=ne||"",z.decode?j.tokens[se]=j.tokens[q]?(0,C.default)(j.tokens[q]):{}:j.tokens[q]}catch{return j.tokens[q]=a.default.get(q)}}},{key:"oauthLogoutURI",value:function(z,q){var se="".concat((q="string"==typeof q?{namespace:q}:q||{}).namespace||j.namespace||"formio","LogoutAuthUrl");return localStorage.setItem(se,z),j.tokens[se]}},{key:"setUser",value:function(z){var q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},se="".concat(q.namespace||j.namespace||"formio","User"),ne=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!z){q.fromToken||(q.fromUser=!0,j.setToken(null,q)),j.events.emit("formio.user",null);try{return ne.removeItem(se)}catch{return a.default.erase(se,{path:"/"})}}try{ne.setItem(se,JSON.stringify(z))}catch{a.default.set(se,JSON.stringify(z),{path:"/"})}j.events.emit("formio.user",z)}},{key:"getUser",value:function(z){var q="".concat((z=z||{}).namespace||j.namespace||"formio","User");try{return JSON.parse((localStorage.getItem("useSessionToken")?sessionStorage:localStorage).getItem(q)||null)}catch{return JSON.parse(a.default.get(q))}}},{key:"setBaseUrl",value:function(z){j.baseUrl=z,j.projectUrlSet||(j.projectUrl=z)}},{key:"getBaseUrl",value:function(){return j.baseUrl}},{key:"setApiUrl",value:function(z){return j.setBaseUrl(z)}},{key:"getApiUrl",value:function(){return j.getBaseUrl()}},{key:"setAppUrl",value:function(z){console.warn("Formio.setAppUrl() is deprecated. Use Formio.setProjectUrl instead."),j.projectUrl=z,j.projectUrlSet=!0}},{key:"setProjectUrl",value:function(z){j.projectUrl=z,j.projectUrlSet=!0}},{key:"setAuthUrl",value:function(z){j.authUrl=z}},{key:"getAppUrl",value:function(){return console.warn("Formio.getAppUrl() is deprecated. Use Formio.getProjectUrl instead."),j.projectUrl}},{key:"getProjectUrl",value:function(){return j.projectUrl}},{key:"clearCache",value:function(){j.cache={}}},{key:"noop",value:function(){}},{key:"identity",value:function(z){return z}},{key:"deregisterPlugin",value:function(z){return j.plugins.length!==(j.plugins=j.plugins.filter(function(se){return se!==z&&se.__name!==z||((se.deregister||j.noop).call(z,j),!1)})).length}},{key:"registerPlugin",value:function(z,q){var se=j;se.plugins.push(z),se.plugins.sort(function(ne,_e){return(_e.priority||0)-(ne.priority||0)}),z.__name=q,(z.init||se.noop).call(z,se)}},{key:"getPlugin",value:function(z){var se,q=function f(j,H){var z=typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(!z){if(Array.isArray(j)||(z=g(j))||H&&j&&"number"==typeof j.length){z&&(j=z);var q=0,se=function(){};return{s:se,n:function(){return q>=j.length?{done:!0}:{done:!1,value:j[q++]}},e:function(Te){throw Te},f:se}}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 ge,ne=!0,_e=!1;return{s:function(){z=z.call(j)},n:function(){var Te=z.next();return ne=Te.done,Te},e:function(Te){_e=!0,ge=Te},f:function(){try{!ne&&null!=z.return&&z.return()}finally{if(_e)throw ge}}}}(j.plugins);try{for(q.s();!(se=q.n()).done;){var ne=se.value;if(ne.__name===z)return ne}}catch(_e){q.e(_e)}finally{q.f()}return null}},{key:"pluginWait",value:function(z){for(var q=arguments.length,se=new Array(q>1?q-1:0),ne=1;ne<q;ne++)se[ne-1]=arguments[ne];return e.default.all(j.plugins.map(function(_e){var ge;return(ge=_e[z]||j.noop).call.apply(ge,[_e].concat(se))}))}},{key:"pluginGet",value:function(z){for(var q=arguments.length,se=new Array(q>1?q-1:0),ne=1;ne<q;ne++)se[ne-1]=arguments[ne];return function ge(Ce){var Te,De=j.plugins[Ce];return De?e.default.resolve((Te=De[z]||j.noop).call.apply(Te,[De].concat(se))).then(function(fe){return me(fe)?ge(Ce+1):fe}):e.default.resolve(null)}(0)}},{key:"pluginAlter",value:function(z,q){for(var se=arguments.length,ne=new Array(se>2?se-2:0),_e=2;_e<se;_e++)ne[_e-2]=arguments[_e];return j.plugins.reduce(function(ge,Ce){return(Ce[z]||j.identity).apply(void 0,[ge].concat(ne))},q)}},{key:"accessInfo",value:function(z){return j.makeRequest(z,"accessInfo","".concat(z?z.projectUrl:j.projectUrl,"/access"))}},{key:"projectRoles",value:function(z){return j.makeRequest(z,"projectRoles","".concat(z?z.projectUrl:j.projectUrl,"/role"))}},{key:"currentUser",value:function(z,q){var se=this,ne=j.authUrl;ne||(ne=z?z.projectUrl:j.projectUrl||j.baseUrl),ne+="/current";var _e=j.getUser(q);if(_e)return j.pluginAlter("wrapStaticRequestPromise",e.default.resolve(_e),{url:ne,method:"GET",options:q});var ge=j.getToken(q);return q&&q.external||ge?(this.currentUserResolved=!1,j.makeRequest(z,"currentUser",ne,"GET",null,q).then(function(Ce){return se.currentUserResolved=!0,j.setUser(Ce,q),Ce})):j.pluginAlter("wrapStaticRequestPromise",e.default.resolve(null),{url:ne,method:"GET",options:q})}},{key:"logout",value:function(z,q){(q=q||{}).formio=z;var ne=function(){j.setToken(null,q),j.setUser(null,q),j.clearCache(),localStorage.removeItem("useSessionToken")};return j.makeRequest(z,"logout","".concat(j.authUrl?j.authUrl:z?z.projectUrl:j.baseUrl,"/logout")).then(function(_e){return ne(),_e}).catch(function(_e){throw ne(),_e})}},{key:"pageQuery",value:function(){var z={paths:[]},q=location.hash.substr(1).replace(/\?/g,"&").split("&"),se=[];return location.search.substr(1).split("&").forEach(function(ne){(se=ne.split("=")).length>1&&(z[se[0]]=se[1]&&decodeURIComponent(se[1]))}),q.forEach(function(ne){(se=ne.split("=")).length>1?z[se[0]]=se[1]&&decodeURIComponent(se[1]):0===ne.indexOf("/")&&(z.paths=ne.substr(1).split("/"))}),z}},{key:"oAuthCurrentUser",value:function(z,q){return j.currentUser(z,{external:!0,headers:{Authorization:"Bearer ".concat(q)}})}},{key:"samlInit",value:function(z){z=z||{};var q=j.pageQuery();if(q.saml){j.setUser(null);var se=j.setToken(q.saml),ne=window.location.toString();return ne=ne.substring(0,ne.indexOf("?")),window.location.hash&&(ne+=window.location.hash),window.history.replaceState({},document.title,ne),se}return z.relay||(z.relay=window.location.href),window.location.href="".concat(j.authUrl||j.projectUrl,"/saml/sso?relay=").concat(encodeURI(z.relay)),!1}},{key:"oktaInit",value:function(z){if(z=z||{},void 0!==(typeof OktaAuth>"u"?"undefined":O(OktaAuth))&&(z.OktaAuth=OktaAuth),void 0===O(z.OktaAuth)){var q="Cannot find OktaAuth. Please include the Okta JavaScript SDK within your application. See https://developer.okta.com/code/javascript/okta_auth_sdk for an example.";return console.warn(q),e.default.reject(q)}return new e.default(function(se,ne){var _e=z.OktaAuth;delete z.OktaAuth;var ge=new _e(z);ge.tokenManager.get("accessToken").then(function(Ce){Ce?se(j.oAuthCurrentUser(z.formio,Ce.accessToken)):location.hash?ge.token.parseFromUrl().then(function(Te){ge.tokenManager.add("accessToken",Te),se(j.oAuthCurrentUser(z.formio,Te.accessToken))}).catch(function(Te){console.warn(Te),ne(Te)}):(ge.token.getWithRedirect({responseType:"token",scopes:z.scopes}),se(!1))}).catch(function(Ce){ne(Ce)})})}},{key:"ssoInit",value:function(z,q){switch(z){case"saml":return j.samlInit(q);case"okta":return j.oktaInit(q);default:return console.warn("Unknown SSO type"),e.default.reject("Unknown SSO type")}}},{key:"requireLibrary",value:function(z,q,se,ne,_e){if(!j.libraries.hasOwnProperty(z)){(j.libraries[z]={}).ready=new e.default(function(fe,xe){j.libraries[z].resolve=fe,j.libraries[z].reject=xe});var ge="".concat(z,"Callback");!ne&&!window[ge]&&(window[ge]=function(){return j.libraries[z].resolve()});var Ce=(0,d.default)(window,q);if(Ce)j.libraries[z].resolve(Ce);else if((se=Array.isArray(se)?se:[se]).forEach(function(fe){var xe={},Oe="";switch("string"==typeof fe&&(fe={type:"script",src:fe}),fe.type){case"script":Oe="script",xe={src:fe.src,type:"text/javascript",defer:!0,async:!0,referrerpolicy:"origin"};break;case"styles":Oe="link",xe={href:fe.src,rel:"stylesheet"}}var Le=document.createElement(Oe);if(Le.setAttribute)for(var Gt in xe)Le.setAttribute(Gt,xe[Gt]);_e&&Le.addEventListener("load",function(){j.libraries[z].loaded=!0,_e(j.libraries[z].ready)});var An=document.head;An&&An.appendChild(Le)}),ne)var Te=setInterval(function(){var fe=(0,d.default)(window,q);fe&&(clearInterval(Te),j.libraries[z].resolve(fe))},200)}var De=j.libraries[z];return _e&&De.loaded?_e(De.ready):De.ready}},{key:"libraryReady",value:function(z){return j.libraries.hasOwnProperty(z)&&j.libraries[z].ready?j.libraries[z].ready:e.default.reject("".concat(z," library was not required."))}},{key:"addToGlobal",value:function(z){"object"===O(z)&&!z.Formio&&(z.Formio=j)}},{key:"setPathType",value:function(z){"string"==typeof z&&(j.pathType=z)}},{key:"getPathType",value:function(){return j.pathType}},{key:"rulesEntities",get:function(){return{ValueSources:j.ValueSources,Conjunctions:j.Conjunctions,Operators:j.Operators,Transformers:j.Transformers,QuickRules:j.QuickRules,Rules:j.Rules}}},{key:"GlobalFormio",get:function(){return typeof global<"u"&&global.Formio?global.Formio:typeof window<"u"&&window.Formio?window.Formio:j}}]),j}();(function D(j,H,z){(H=F(H))in j?Object.defineProperty(j,H,{value:z,enumerable:!0,configurable:!0,writable:!0}):j[H]=z})(re,"currentUserResolved",!0),re.libraries={},re.Promise=e.default,re.fetch=V,re.Headers=K,re.baseUrl="https://api.form.io",re.projectUrl=re.baseUrl,re.authUrl="",re.projectUrlSet=!1,re.plugins=[],re.cache={},re.Providers=l.default,re.version="4.17.1",re.pathType="",re.events=new o.default,re.cdn=new R.default,(re.version||"").includes("rc")&&re.cdn.setBaseUrl("https://cdn.test-form.io"),typeof global<"u"&&re.addToGlobal(global),typeof window<"u"&&re.addToGlobal(window),y.GlobalFormio=re.GlobalFormio,y.default=re},36893:(he,y,i)=>{"use strict";function e(F){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(P){return typeof P}:function(P){return P&&"function"==typeof Symbol&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P})(F)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(69358),i(38077),i(49693),i(47522),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(60228),i(73964),i(25728),i(6203),i(34284),i(28436),i(5399),i(41517),i(88052);var n=u(i(73808)),o=i(55798),a=u(i(27903)),l=i(12866);function u(F){return F&&F.__esModule?F:{default:F}}function d(F,P){var O=Object.keys(F);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(F);P&&(U=U.filter(function(V){return Object.getOwnPropertyDescriptor(F,V).enumerable})),O.push.apply(O,U)}return O}function A(F,P,O){return(P=x(P))in F?Object.defineProperty(F,P,{value:O,enumerable:!0,configurable:!0,writable:!0}):F[P]=O,F}function C(F,P){for(var O=0;O<P.length;O++){var U=P[O];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(F,x(U.key),U)}}function x(F){var P=function f(F,P){if("object"!==e(F)||null===F)return F;var O=F[Symbol.toPrimitive];if(void 0!==O){var U=O.call(F,P||"default");if("object"!==e(U))return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===P?String:Number)(F)}(F,"string");return"symbol"===e(P)?P:String(P)}function k(){return k=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(P,O,U){var V=function w(F,P){for(;!Object.prototype.hasOwnProperty.call(F,P)&&null!==(F=L(F)););return F}(P,O);if(V){var K=Object.getOwnPropertyDescriptor(V,O);return K.get?K.get.call(arguments.length<3?P:U):K.value}},k.apply(this,arguments)}function M(F,P){return(M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(U,V){return U.__proto__=V,U})(F,P)}function L(F){return(L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(O){return O.__proto__||Object.getPrototypeOf(O)})(F)}y.default=function(F){!function g(F,P){if("function"!=typeof P&&null!==P)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(P&&P.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),Object.defineProperty(F,"prototype",{writable:!1}),P&&M(F,P)}(O,F);var P=function p(F){var P=function I(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var V,U=L(F);if(P){var K=L(this).constructor;V=Reflect.construct(U,arguments,K)}else V=U.apply(this,arguments);return function E(F,P){if(P&&("object"===e(P)||"function"==typeof P))return P;if(void 0!==P)throw new TypeError("Derived constructors may only return object or undefined");return function b(F){if(void 0===F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}(F)}(this,V)}}(O);function O(U,V){var K;return function _(F,P){if(!(F instanceof P))throw new TypeError("Cannot call a class as a function")}(this,O),V.display="pdf",(K=P.call(this,U,V)).components=[],K}return function R(F,P,O){P&&C(F.prototype,P),O&&C(F,O),Object.defineProperty(F,"prototype",{writable:!1})}(O,[{key:"init",value:function(){var V=this;k(L(O.prototype),"init",this).call(this),this.on("iframe-submission",function(K){return V.setValue(K,{fromIframe:!0})},!0),this.on("iframe-change",function(K){return V.setValue(K,{fromIframe:!0})},!0),this.on("iframe-getIframePositions",function(K){var X=document.getElementById("iframe-".concat(K.formId));if(X){var me=X.getBoundingClientRect();V.postMessage({name:"iframePositions",data:{formId:K.formId,iframe:{top:me.top},scrollY:window.scrollY||window.pageYOffset}})}}),this.on("iframe-ready",function(){return V.iframeReadyResolve()},!0)}},{key:"render",value:function(){return this.submitButton=this.addComponent({disabled:this.form.disableWizardSubmit,input:!0,type:"button",action:"submit",internal:!0,label:"Submit",key:"submit",ref:"button",hidden:this.isSubmitButtonHidden()}),this.renderTemplate("pdf",{submitButton:this.submitButton.render(),classes:"formio-form-pdf",children:this.renderComponents()})}},{key:"redraw",value:function(){return this.postMessage({name:"redraw"}),this.builderMode?n.default.resolve():k(L(O.prototype),"redraw",this).call(this)}},{key:"rebuild",value:function(){return this.builderMode&&this.component.components?(this.destroyComponents(),this.addComponents(),n.default.resolve()):(this.postMessage({name:"redraw"}),k(L(O.prototype),"rebuild",this).call(this))}},{key:"attachComponents",value:function(V,K,X){return V=this.hook("attachComponents",V,K=K||this.components,X=X||this.component.components,this),Promise.resolve()}},{key:"attach",value:function(V){var K=this;return k(L(O.prototype),"attach",this).call(this,V).then(function(){K.loadRefs(V,{button:"single",buttonMessageContainer:"single",buttonMessage:"single",zoomIn:"single",zoomOut:"single",iframeContainer:"single"}),K.submitButton.refs=function s(F){for(var P=1;P<arguments.length;P++){var O=null!=arguments[P]?arguments[P]:{};P%2?d(Object(O),!0).forEach(function(U){A(F,U,O[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(O)):d(Object(O)).forEach(function(U){Object.defineProperty(F,U,Object.getOwnPropertyDescriptor(O,U))})}return F}({},K.refs),K.submitButton.attachButton(),K.iframeReady=new n.default(function(J,Q){K.iframeReadyResolve=J,K.iframeReadyReject=Q}),K.iframeElement=K.ce("iframe",{src:K.getSrc(),id:"iframe-".concat(K.id),seamless:!0,class:"formio-iframe"}),K.iframeElement.formioContainer=K.component.components,K.iframeElement.formioComponent=K,K.empty(K.refs.iframeContainer),K.appendChild(K.refs.iframeContainer,K.iframeElement),K.form.base=o.GlobalFormio.getBaseUrl(),K.form.projectUrl=o.GlobalFormio.getProjectUrl(),K.postMessage({name:"form",data:K.form});var X=K.components.find(function(J){return J.element===K.refs.button});X&&K.refs.button.classList.toggle("hidden",!X.visible),K.addEventListener(K.refs.zoomIn,"click",function(J){J.preventDefault(),K.postMessage({name:"zoomIn"})}),K.addEventListener(K.refs.zoomOut,"click",function(J){J.preventDefault(),K.postMessage({name:"zoomOut"})});var me=(0,l.fastCloneDeep)(K.form);K.formio&&(me.projectUrl=K.formio.projectUrl,me.url=K.formio.formUrl,me.base=K.formio.base,K.postMessage({name:"token",data:K.formio.getToken()})),K.emit("attach")})}},{key:"getSubmission",value:function(){var V=this;return new n.default(function(K){V.once("iframe-submission",K),V.postMessage({name:"getSubmission"})})}},{key:"submitForm",value:function(){var V=this,K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.postMessage({name:"getErrors"}),this.getSubmission().then(function(){return k(L(O.prototype),"submitForm",V).call(V,K)})}},{key:"getSrc",value:function(){if(!this._form||!this._form.settings||!this._form.settings.pdf)return"";var V="".concat(this._form.settings.pdf.src,".html"),K=["id=".concat(this.id)];return(this.options.showCheckboxBackground||this._form.settings.showCheckboxBackground)&&K.push("checkboxbackground=1"),this.options.readOnly&&K.push("readonly=1"),this.options.zoom&&K.push("zoom=".concat(this.options.zoom)),this.builderMode&&K.push("builder=1"),K.length&&(V+="?".concat(K.join("&"))),V}},{key:"setForm",value:function(V){var K=this,X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k(L(O.prototype),"setForm",this).call(this,V,X).then(function(){K.formio&&(V.projectUrl=K.formio.projectUrl,V.url=K.formio.formUrl,V.base=K.formio.base,K.postMessage({name:"token",data:K.formio.getToken()})),K.postMessage({name:"form",data:K.form})})}},{key:"setValue",value:function(V){var K=this,X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},me=k(L(O.prototype),"setValue",this).call(this,V,X);return(!X||!X.fromIframe)&&this.once("iframe-ready",function(){me&&K.postMessage({name:"submission",data:V})}),me}},{key:"postMessage",value:function(V){var K=this;this.iframeReady&&(V.type||(V.type="iframe-data"),this.iframeReady.then(function(){K.iframeElement&&K.iframeElement.contentWindow&&("form"!==V.name||!K.iframeFormSetUp)&&(K.iframeElement.contentWindow.postMessage(JSON.stringify(V),"*"),K.iframeFormSetUp="form"===V.name)}))}},{key:"focusOnComponent",value:function(V){this.postMessage({name:"focusErroredField",data:V})}},{key:"clear",value:function(){}},{key:"showErrors",value:function(V,K){var X,me=document.getElementById("submit-error"),J=this.t("submitError"),Q=(null===(X=this.refs.buttonMessage)||void 0===X?void 0:X.textContent.trim())===J;if(!me&&this.errors.length&&!Q){var re=this.ce("p",{class:"help-block"});this.setContent(re,J),re.addEventListener("click",function(){window.scrollTo(0,0)});var de=this.ce("div",{id:"submit-error",class:"has-error"});this.appendTo(re,de),this.appendTo(de,this.element)}!this.errors.length&&me&&me.remove(),k(L(O.prototype),"showErrors",this).call(this,V,K)}},{key:"isSubmitButtonHidden",value:function(){var V=!1;return(0,l.eachComponent)(this.component.components,function(K){"button"===K.type&&("submit"===K.action||!K.action)&&(V=K.hidden||!1)}),V}}]),O}(a.default),typeof window<"u"&&window.addEventListener("message",function(F){var P=null;try{P=JSON.parse(F.data)}catch{P=null}P&&P.name&&P.formId&&o.GlobalFormio.forms.hasOwnProperty(P.formId)&&o.GlobalFormio.forms[P.formId].emit("iframe-".concat(P.name),P.data)})},50145:(he,y,i)=>{"use strict";function e(me){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(J){return typeof J}:function(J){return J&&"function"==typeof Symbol&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J})(me)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(63975),i(84254),i(77049),i(89730),i(34284),i(64043),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(50886),i(34338),i(752),i(60228),i(21694),i(76265),i(78730),i(79307),i(76801),i(43843),i(41517),i(49693),i(47522),i(78832),i(5399),i(88052);var n=_(i(6990)),o=_(i(73808)),a=i(55798),l=_(i(6037)),u=i(12866),d=i(18646),s=_(i(24845)),A=_(i(36893));function _(me){return me&&me.__esModule?me:{default:me}}function C(me){return function k(me){if(Array.isArray(me))return w(me)}(me)||function f(me){if(typeof Symbol<"u"&&null!=me[Symbol.iterator]||null!=me["@@iterator"])return Array.from(me)}(me)||function x(me,J){if(me){if("string"==typeof me)return w(me,J);var Q=Object.prototype.toString.call(me).slice(8,-1);if("Object"===Q&&me.constructor&&(Q=me.constructor.name),"Map"===Q||"Set"===Q)return Array.from(me);if("Arguments"===Q||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q))return w(me,J)}}(me)||function R(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(me,J){(null==J||J>me.length)&&(J=me.length);for(var Q=0,re=new Array(J);Q<J;Q++)re[Q]=me[Q];return re}function M(me,J){for(var Q=0;Q<J.length;Q++){var re=J[Q];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(me,E(re.key),re)}}function E(me){var J=function b(me,J){if("object"!==e(me)||null===me)return me;var Q=me[Symbol.toPrimitive];if(void 0!==Q){var re=Q.call(me,J||"default");if("object"!==e(re))return re;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===J?String:Number)(me)}(me,"string");return"symbol"===e(J)?J:String(J)}function I(){return I=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(J,Q,re){var de=function L(me,J){for(;!Object.prototype.hasOwnProperty.call(me,J)&&null!==(me=K(me)););return me}(J,Q);if(de){var te=Object.getOwnPropertyDescriptor(de,Q);return te.get?te.get.call(arguments.length<3?J:re):te.value}},I.apply(this,arguments)}function F(me,J){return(F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(re,de){return re.__proto__=de,re})(me,J)}function O(me,J){if(J&&("object"===e(J)||"function"==typeof J))return J;if(void 0!==J)throw new TypeError("Derived constructors may only return object or undefined");return function U(me){if(void 0===me)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me}(me)}function K(me){return(K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Q){return Q.__proto__||Object.getPrototypeOf(Q)})(me)}y.default=function(me){!function D(me,J){if("function"!=typeof J&&null!==J)throw new TypeError("Super expression must either be null or a function");me.prototype=Object.create(J&&J.prototype,{constructor:{value:me,writable:!0,configurable:!0}}),Object.defineProperty(me,"prototype",{writable:!1}),J&&F(me,J)}(Q,me);var J=function P(me){var J=function V(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var de,re=K(me);if(J){var te=K(this).constructor;de=Reflect.construct(re,arguments,te)}else de=re.apply(this,arguments);return O(this,de)}}(Q);function Q(){var re,de,te;return function g(me,J){if(!(me instanceof J))throw new TypeError("Cannot call a class as a function")}(this,Q),arguments[0]instanceof HTMLElement||arguments[1]?(de=arguments[0],te=arguments[1]):te=arguments[0],te.skipInit=!0,te.display="pdf",(re=de?J.call(this,de,te):J.call(this,te)).dragDropEnabled=!1,O(re)}return function p(me,J,Q){J&&M(me.prototype,J),Q&&M(me,Q),Object.defineProperty(me,"prototype",{writable:!1})}(Q,[{key:"defaultGroups",get:function(){return{pdf:{title:"PDF Fields",weight:0,default:!0,components:{textfield:!0,number:!0,password:!0,email:!0,phoneNumber:!0,currency:!0,checkbox:!0,signature:!0,select:!0,textarea:!0,datetime:!0,file:!0,htmlelement:!0,signrequestsignature:!0}},basic:!1,advanced:!1,layout:!1,data:!1,premium:!1,resource:!1}}},{key:"hasPDF",get:function(){return n.default.has(this.webform.form,"settings.pdf")}},{key:"projectUrl",get:function(){return this.options.projectUrl||a.GlobalFormio.getProjectUrl()}},{key:"init",value:function(){this.options.attachMode="builder",this.webform=this.webform||this.createForm(this.options),this.webform.init()}},{key:"render",value:function(){var de=this;return this.renderTemplate("pdfBuilder",{sidebar:this.renderTemplate("builderSidebar",{scrollEnabled:this.sideBarScroll,groupOrder:this.groupOrder,groupId:"builder-sidebar-".concat(this.id),groups:this.groupOrder.map(function(j){return de.renderTemplate("builderSidebarGroup",{group:de.groups[j],groupKey:j,groupId:"builder-sidebar-".concat(de.id),subgroups:de.groups[j].subgroups.map(function(H){return de.renderTemplate("builderSidebarGroup",{group:H,groupKey:H.key,groupId:"group-container-".concat(j),subgroups:[]})})})})}),form:this.hasPDF?this.webform.render():this.renderTemplate("pdfBuilderUpload",{})})}},{key:"attach",value:function(de){var te=this;if(!this.hasPDF){if(this.loadRefs(de,{fileDrop:"single",fileBrowse:"single",hiddenFileInputElement:"single",uploadError:"single",uploadProgress:"single",uploadProgressWrapper:"single",dragDropText:"single"}),this.addEventListener(this.refs["pdf-upload-button"],"click",function(H){H.preventDefault()}),this.projectUrl?this.setUploadError():this.setUploadError('Form options.projectUrl not set. Please set the "projectUrl" property of the options for this form or use Formio.setProjectUrl(). This setting is necessary to upload a pdf background.'),this.refs.fileDrop){var j=this;this.addEventListener(this.refs.fileDrop,"dragover",function(H){this.className="fileSelector fileDragOver",H.preventDefault()}),this.addEventListener(this.refs.fileDrop,"dragleave",function(H){this.className="fileSelector",H.preventDefault()}),this.addEventListener(this.refs.fileDrop,"drop",function(H){return this.className="fileSelector",H.preventDefault(),j.upload(H.dataTransfer.files[0]),!1})}return this.refs.fileBrowse&&this.refs.hiddenFileInputElement&&(this.addEventListener(this.refs.fileBrowse,"click",function(H){H.preventDefault(),"function"==typeof te.refs.hiddenFileInputElement.trigger?te.refs.hiddenFileInputElement.trigger("click"):te.refs.hiddenFileInputElement.click()}),this.addEventListener(this.refs.hiddenFileInputElement,"change",function(){te.refs.hiddenFileInputElement.value&&(te.upload(te.refs.hiddenFileInputElement.files[0]),te.refs.hiddenFileInputElement.value="")})),o.default.resolve()}return I(K(Q.prototype),"attach",this).call(this,de).then(function(){return te.loadRefs(te.element,{iframeDropzone:"single","sidebar-container":"multiple",sidebar:"single"}),te.afterAttach(),te.element})}},{key:"afterAttach",value:function(){var de=this;this.on("saveComponent",function(j){de.webform.postMessage({name:"updateElement",data:j})}),this.on("removeComponent",function(j){de.webform.postMessage({name:"removeElement",data:j})}),this.initIframeEvents(),this.updateDropzoneDimensions();var te=this.refs.sidebar;te&&(this.addClass(te,"disabled"),this.webform.on("iframe-ready",function(){de.pdfLoaded=!0,de.updateDragAndDrop(),de.removeClass(te,"disabled")},!0))}},{key:"upload",value:function(de){var te=this,j=new a.GlobalFormio(this.projectUrl);this.refs.dragDropText&&(this.refs.dragDropText.style.display="none"),this.refs.uploadProgressWrapper&&(this.refs.uploadProgressWrapper.style.display="inherit"),j.uploadFile("url",de,de,"",function(H){if(te.refs.uploadProgress){var z=Math.floor(H.loaded/H.total*100);te.refs.uploadProgress.style.width="".concat(z,"%"),te.refs.uploadProgress.innerHTML=z>98?te.t("Converting PDF. Please wait."):"".concat(te.t("Uploading")," ").concat(z,"%")}},"".concat(this.projectUrl,"/upload"),{},"file").then(function(H){var z,q=!1;if(null!==(z=H.data.formfields)&&void 0!==z&&z.components&&H.data.formfields.components.length){var se,ne,_e,ge="submit"===(null===(se=te.webform.form.components[0])||void 0===se?void 0:se.key),Ce="page1"===(null===(ne=te.webform.form.components[0])||void 0===ne?void 0:ne.key)&&0===(null===(_e=te.webform.form.components[0])||void 0===_e?void 0:_e.components.length);(ge||Ce||0===te.webform.form.components.length)&&(q=!0,te.webform.form.components=H.data.formfields.components)}te.refs.dragDropText&&(te.refs.dragDropText.style.display="inherit"),te.refs.uploadProgressWrapper&&(te.refs.uploadProgressWrapper.style.display="none"),n.default.set(te.webform.form,"settings.pdf",{id:H.data.file,src:H.data.filesServer?"".concat(H.data.filesServer).concat(H.data.path):"".concat(new URL(te.projectUrl).origin,"/pdf-proxy").concat(H.data.path),nonFillableConversionUsed:q&&H.data.formfields.nonFillableConversionUsed}),te.emit("pdfUploaded",H.data),te.redraw()}).catch(function(H){return te.setUploadError(H)})}},{key:"setUploadError",value:function(de){this.refs.uploadError&&(this.refs.uploadError.style.display=de?"":"none",this.refs.uploadError.innerHTML=de)}},{key:"createForm",value:function(de){var te=this;return de.skipInit=!1,de.hideLoader=!0,this.webform=new A.default(this.element,de),this.webform.on("attach",function(){te.refs.iframeDropzone&&!C(te.refs.form.children).includes(te.refs.iframeDropzone)&&te.prependTo(te.refs.iframeDropzone,te.refs.form)}),this.webform}},{key:"destroy",value:function(de){I(K(Q.prototype),"destroy",this).call(this,de),this.webform.destroy(de)}},{key:"getParentContainer",value:function(de){var te=[],j=null;return(0,d.eachComponent)(this.webform._form.components,function(H,z,q){if(H.id===de.component.id)return te=q,j=H,!0},!0),{formioComponent:de.parent,formioContainer:te,originalComponent:j}}},{key:"initIframeEvents",value:function(){var de=this;this.webform.off("iframe-elementUpdate"),this.webform.off("iframe-componentUpdate"),this.webform.off("iframe-componentClick"),this.webform.on("iframe-elementUpdate",function(te){var j=de.webform.getComponentById(te.id);return j&&j.component&&(j.component.overlay={page:te.page,left:te.left,top:te.top,height:te.height,width:te.width},!de.options.noNewEdit&&!j.component.noNewEdit&&de.editComponent(j.component,de.getParentContainer(j),!0),de.emit("updateComponent",j.component)),j}),this.webform.on("iframe-componentUpdate",function(te){var j=de.webform.getComponentById(te.id);return j&&j.component&&(j.component.overlay={page:te.overlay.page,left:te.overlay.left,top:te.overlay.top,height:te.overlay.height,width:te.overlay.width},de.emit("updateComponent",j.component),de.emit("change",de.form)),j}),this.webform.on("iframe-componentClick",function(te){var j=de.webform.getComponentById(te.id);j&&de.editComponent(j.component,de.getParentContainer(j))},!0)}},{key:"initDropzoneEvents",value:function(){this.refs.iframeDropzone&&(this.removeEventListener(this.refs.iframeDropzone,"dragover"),this.removeEventListener(this.refs.iframeDropzone,"drop"),this.addEventListener(this.refs.iframeDropzone,"dragover",function(de){return de.preventDefault(),!1}),this.addEventListener(this.refs.iframeDropzone,"drop",this.onDropzoneDrop.bind(this)))}},{key:"updateDragAndDrop",value:function(){this.pdfLoaded&&(this.initDropzoneEvents(),this.prepSidebarComponentsForDrag())}},{key:"prepSidebarComponentsForDrag",value:function(){var de=this;this.refs["sidebar-container"]&&this.refs["sidebar-container"].forEach(function(te){C(te.children).forEach(function(j){j.draggable=!0,j.setAttribute("draggable",!0),de.removeEventListener(j,"dragstart"),de.removeEventListener(j,"dragend"),de.addEventListener(j,"dragstart",de.onDragStart.bind(de),!0),de.addEventListener(j,"dragend",de.onDragEnd.bind(de),!0),de.addEventListener(j,"drag",function(H){H.target.style.cursor="none"})})})}},{key:"updateDropzoneDimensions",value:function(){if(this.refs.iframeDropzone){var de=(0,u.getElementRect)(this.webform.refs.iframeContainer);this.refs.iframeDropzone.style.height=de&&de.height?"".concat(de.height,"px"):"1000px",this.refs.iframeDropzone.style.width=de&&de.width?"".concat(de.width,"px"):"100%"}}},{key:"onDragStart",value:function(de){var te=de.offsetX,H=de.offsetY,z=void 0===H?0:H;this.itemOffsetX=void 0===te?0:te,this.itemOffsetY=z,de.dataTransfer.setData("text",""),this.updateDropzoneDimensions(),this.addClass(this.refs.iframeDropzone,"enabled"),this.dropEmitted=!1}},{key:"onDropzoneDrop",value:function(de){return this.dropEmitted=!0,this.dropEvent=de,de.preventDefault(),!1}},{key:"onDragEnd",value:function(de){var te=this.webform.refs.iframeContainer.getBoundingClientRect(),j=this.dropEvent?this.dropEvent.layerX:null,H=this.dropEvent?this.dropEvent.layerY:null;if(this.removeClass(this.refs.iframeDropzone,"enabled"),!this.dropEvent){if(!(!this.dropEmitted&&((0,u.getBrowserInfo)().chrome||(0,u.getBrowserInfo)().edge)&&"macOS"===globalThis.navigator.userAgentData.platform&&te.left<de.clientX&&te.top<de.clientY))return;this.dropEvent=de,this.dropEvent.dataTransfer.effectAllowed="all",this.dropEmitted=!0}var se=de.target,ne=se.getAttribute("data-type"),_e=se.getAttribute("data-key"),ge=se.getAttribute("data-group"),Ce=(0,u.fastCloneDeep)(this.schemas[ne]);if(_e&&ge){var Te=this.getComponentInfo(_e,ge);n.default.merge(Ce,Te)}s.default.uniquify([this.webform._form],Ce),this.webform._form.components.push(Ce),Ce.overlay={top:H?H-this.itemOffsetY+20:de.clientY-te.top-2*(this.itemOffsetY-20),left:j?j-this.itemOffsetX:de.clientX-te.left-2*this.itemOffsetX,width:100,height:20},this.webform.addComponent(Ce,{},null,!0),this.webform.postMessage({name:"addElement",data:Ce}),this.emit("addComponent",Ce,this.webform,Ce.key,this.webform.component.components.length,!this.options.noNewEdit&&!Ce.noNewEdit),this.dropEvent=null,de.target.style.cursor="default"}},{key:"highlightInvalidComponents",value:function(){var de=this,te=this.findRepeatablePaths();n.default.isEqual(this.repeatablePaths,te)||((0,d.eachComponent)(this.webform.getComponents(),function(j,H){de.repeatablePaths.includes(H)&&de.webform.postMessage({name:"updateElement",data:j.component})}),this.repeatablePaths=te),te.length&&(0,d.eachComponent)(this.webform.getComponents(),function(j,H){de.repeatablePaths.includes(H)&&de.webform.postMessage({name:"showBuilderErrors",data:{compId:j.component.id,errorMessage:"API Key is not unique: ".concat(j.key)}})})}}]),Q}(l.default)},27903:(he,y,i)=>{"use strict";i(40739),i(5399),i(88052),i(30050),i(51013),i(32349),i(81919),i(69358),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(41517),i(97195),i(64043),i(60429),i(96869),i(63975),i(49693),i(60228),i(47522),i(34338),i(38077),i(32320),i(76801),i(43843),i(50886),i(34284),i(69373),i(59903),i(59749),i(86544),i(79288);var e=x(i(6990)),n=x(i(16676)),o=x(i(6182)),a=x(i(79821)),l=x(i(91881)),u=x(i(15684)),d=i(55798),s=x(i(73808)),A=x(i(14231)),_=x(i(52488)),C=i(12866),R=i(18646);function x(re){return re&&re.__esModule?re:{default:re}}function f(re){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(de){return typeof de}:function(de){return de&&"function"==typeof Symbol&&de.constructor===Symbol&&de!==Symbol.prototype?"symbol":typeof de})(re)}function k(re,de){var te=Object.keys(re);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(re);de&&(j=j.filter(function(H){return Object.getOwnPropertyDescriptor(re,H).enumerable})),te.push.apply(te,j)}return te}function w(re){for(var de=1;de<arguments.length;de++){var te=null!=arguments[de]?arguments[de]:{};de%2?k(Object(te),!0).forEach(function(j){V(re,j,te[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(re,Object.getOwnPropertyDescriptors(te)):k(Object(te)).forEach(function(j){Object.defineProperty(re,j,Object.getOwnPropertyDescriptor(te,j))})}return re}function M(re,de){for(var te=0;te<de.length;te++){var j=de[te];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(re,K(j.key),j)}}function E(){return E=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(de,te,j){var H=function b(re,de){for(;!Object.prototype.hasOwnProperty.call(re,de)&&null!==(re=U(re)););return re}(de,te);if(H){var z=Object.getOwnPropertyDescriptor(H,te);return z.get?z.get.call(arguments.length<3?de:j):z.value}},E.apply(this,arguments)}function L(re,de){return(L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(j,H){return j.__proto__=H,j})(re,de)}function P(re){if(void 0===re)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return re}function U(re){return(U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(te){return te.__proto__||Object.getPrototypeOf(te)})(re)}function V(re,de,te){return(de=K(de))in re?Object.defineProperty(re,de,{value:te,enumerable:!0,configurable:!0,writable:!0}):re[de]=te,re}function K(re){var de=function X(re,de){if("object"!==f(re)||null===re)return re;var te=re[Symbol.toPrimitive];if(void 0!==te){var j=te.call(re,de||"default");if("object"!==f(j))return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===de?String:Number)(re)}(re,"string");return"symbol"===f(de)?de:String(de)}function me(re){return"fontawesome"===re?"fa":re||""}d.GlobalFormio.forms={},d.GlobalFormio.registerComponent=A.default.setComponent;var Q=function(re){!function I(re,de){if("function"!=typeof de&&null!==de)throw new TypeError("Super expression must either be null or a function");re.prototype=Object.create(de&&de.prototype,{constructor:{value:re,writable:!0,configurable:!0}}),Object.defineProperty(re,"prototype",{writable:!1}),de&&L(re,de)}(te,re);var de=function D(re){var de=function O(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var H,j=U(re);if(de){var z=U(this).constructor;H=Reflect.construct(j,arguments,z)}else H=j.apply(this,arguments);return function F(re,de){if(de&&("object"===f(de)||"function"==typeof de))return de;if(void 0!==de)throw new TypeError("Derived constructors may only return object or undefined");return P(re)}(this,H)}}(te);function te(){var j,H,z;!function g(re,de){if(!(re instanceof de))throw new TypeError("Cannot call a class as a function")}(this,te),arguments[0]instanceof HTMLElement||arguments[1]?(H=arguments[0],z=arguments[1]):z=arguments[0],j=de.call(this,null,function J(re){return(re=e.default.defaults(re,{submitOnEnter:!1,iconset:me(re&&re.icons?re.icons:d.GlobalFormio.icons),i18next:l.default,saveDraft:!1,alwaysDirty:!1,saveDraftThrottle:5e3,display:"form",cdnUrl:d.GlobalFormio.cdn.baseUrl})).events||(re.events=new a.default),re}(z)),V(P(j),"executeShortcuts",function(ne){if(j.keyboardCatchableElement(ne.target)){var ge=ne.ctrlKey||ne.metaKey,Ce=ne.keyCode,Te="";65<=Ce&&Ce<=90?Te=String.fromCharCode(Ce):13===Ce?Te="Enter":27===Ce&&(Te="Esc"),e.default.each(j.shortcuts,function(De){De.ctrl&&!ge||De.shortcut===Te&&(De.element.click(),ne.preventDefault())})}}),j.element=H,d.GlobalFormio.forms[j.id]=P(j),j.options.baseUrl&&d.GlobalFormio.setBaseUrl(j.options.baseUrl);var q=u.default;if(z&&z.i18n&&!z.i18nReady&&(z.i18n.resources?q=z.i18n:e.default.each(z.i18n,function(ne,_e){"options"===_e?e.default.merge(q,ne):q.resources[_e]?e.default.assign(q.resources[_e].translation,ne):q.resources[_e]={translation:e.default.assign((0,C.fastCloneDeep)(u.default.resources.en.translation),ne)}}),z.i18n=q,z.i18nReady=!0),j.options.i18n=z&&z.i18n?z.i18n:q,j.options.language&&(j.options.i18n.lng=j.options.language),j.type="form",j._src="",j._loading=!1,j._form={},j.draftEnabled=!1,j.savingDraft=!0,j.triggerSaveDraft=j.options.saveDraftThrottle?e.default.throttle(j.saveDraft.bind(P(j)),j.options.saveDraftThrottle):j.saveDraft.bind(P(j)),j.customErrors=[],j.nosubmit=!1,j.submitted=!1,j.submitting=!1,j.formio=null,j.loader=null,j.alert=null,j.onSubmission=null,j.submissionSet=!1,j.formReady=new s.default(function(ne,_e){j.formReadyResolve=ne,j.formReadyReject=_e}),j.submissionReady=new s.default(function(ne,_e){j.submissionReadyResolve=ne,j.submissionReadyReject=_e}),j.shortcuts=[],j.localize().then(function(){j.language=j.options.language}),j.options.saveDraft&&!j.options.skipDraftRestore){var se=d.GlobalFormio.getUser();se&&!j.submissionSet&&j.restoreDraft(se._id)}return j.component.clearOnHide=!1,j.root=P(j),j.localRoot=P(j),j}return function p(re,de,te){de&&M(re.prototype,de),te&&M(re,te),Object.defineProperty(re,"prototype",{writable:!1})}(te,[{key:"language",get:function(){return this.options.language},set:function(H){var z=this;if(this.options.language=H,this.i18next.language!==H)try{this.i18next.changeLanguage(H,function(q){q||(z.rebuild(),z.emit("languageChanged"))})}catch{return}}},{key:"emptyValue",get:function(){return null}},{key:"componentContext",value:function(){return this._data}},{key:"componentComponents",get:function(){return this.form.components}},{key:"shadowRoot",get:function(){return this.options.shadowRoot}},{key:"addLanguage",value:function(H,z){var q=arguments.length>2&&void 0!==arguments[2]&&arguments[2],se=e.default.assign((0,C.fastCloneDeep)(u.default.resources.en.translation),z);this.i18next.addResourceBundle(H,"translation",se,!0,!0),q&&(this.language=H)}},{key:"localize",value:function(){var H=this;return this.i18next.initialized?s.default.resolve(this.i18next):(this.i18next.initialized=!0,new s.default(function(z,q){try{H.i18next.init(w(w({},H.options.i18n),{compatibilityJSON:"v3"}),function(se){if(H.options.language=H.i18next.language.split(";")[0],se)return q(se);z(H.i18next)})}catch(se){return q(se)}}))}},{key:"keyboardCatchableElement",value:function(H){return"TEXTAREA"!==H.nodeName&&("INPUT"!==H.nodeName||-1===["text","email","password"].indexOf(H.type))}},{key:"addShortcut",value:function(H,z){if(z&&/^([A-Z]|Enter|Esc)$/i.test(z))if("Enter"===(z=e.default.capitalize(z))||"Esc"===z){if("BUTTON"!==H.tagName)return;this.shortcuts.push({shortcut:z,element:H})}else this.shortcuts.push({ctrl:!0,shortcut:z,element:H})}},{key:"removeShortcut",value:function(H,z){!z||!/^([A-Z]|Enter|Esc)$/i.test(z)||e.default.remove(this.shortcuts,{shortcut:z,element:H})}},{key:"src",get:function(){return this._src},set:function(H){this.setSrc(H)}},{key:"loadSubmission",value:function(){var H=this;return this.loadingSubmission=!0,this.formio.submissionId?this.onSubmission=this.formio.loadSubmission().then(function(z){return H.setSubmission(z)},function(z){return H.submissionReadyReject(z)}).catch(function(z){return H.submissionReadyReject(z)}):this.submissionReadyResolve(),this.submissionReady}},{key:"setSrc",value:function(H,z){var q=this;return this.setUrl(H,z)?(this.nosubmit=!1,this.formio.loadForm({params:{live:1}}).then(function(se){var ne=q.setForm(se);return q.loadSubmission(),ne}).catch(function(se){console.warn(se),q.formReadyReject(se)})):s.default.resolve()}},{key:"url",get:function(){return this._src},set:function(H){this.setUrl(H)}},{key:"setUrl",value:function(H,z){return!(!H||"string"!=typeof H||H===this._src||(this._src=H,this.nosubmit=!0,this.formio=this.options.formio=new d.GlobalFormio(H,z),"form"===this.type&&(this.options.src=H),0))}},{key:"ready",get:function(){var H=this;return this.formReady.then(function(){return E(U(te.prototype),"ready",H).then(function(){return!H.loadingSubmission||H.submissionReady})})}},{key:"loading",get:function(){return this._loading},set:function(H){if(this._loading!==H){if(this._loading=H,!this.loader&&H){this.loader=this.ce("div",{class:"loader-wrapper"});var z=this.ce("div",{class:"loader text-center"});this.loader.appendChild(z)}if(this.loader)try{H?this.prependTo(this.loader,this.wrapper):this.removeChildFrom(this.loader,this.wrapper)}catch{}}}},{key:"setForm",value:function(H,z){var q,se=this,ne=this._form&&(null===(q=this._form.components)||void 0===q?void 0:q.length);try{var _e,ge;if(ne&&JSON.stringify(this._form)===JSON.stringify(H)||(this._form=null!=z&&z.keepAsReference?H:e.default.cloneDeep(H),this.onSetForm&&this.onSetForm(e.default.cloneDeep(this._form),H),null!==(_e=this.parent)&&void 0!==_e&&null!==(ge=_e.component)&&void 0!==ge&&ge.modalEdit))return s.default.resolve()}catch(De){return console.warn(De),s.default.resolve()}if(H&&H.settings&&H.settings.components&&(this.options.components=H.settings.components),H&&H.properties&&(this.options.properties=H.properties),"schema"in H&&(0,o.default)(H.schema,"1.x")>0&&this.ready.then(function(){se.setAlert("alert alert-danger","Form schema is for a newer version, please upgrade your renderer. Some functionality may not work.")}),H&&H.module){var Ce=null;if("string"==typeof H.module)try{Ce=this.evaluate("return ".concat(H.module))}catch(De){console.warn(De)}else Ce=H.module;Ce&&(d.GlobalFormio.use(Ce),Ce.options&&Ce.options.form&&(this.options=Object.assign(this.options,Ce.options.form)))}return this.initialized=!1,(this.rebuild()||s.default.resolve()).then(function(){return se.emit("formLoad",H),se.triggerRecaptcha(),setTimeout(function(){se.onChange(z),se.formReadyResolve()},0),se.formReady})}},{key:"form",get:function(){return this._form||(this._form={components:[]}),this._form},set:function(H){this.setForm(H)}},{key:"submission",get:function(){return this.getValue()},set:function(H){this.setSubmission(H)}},{key:"setSubmission",value:function(H){var z=this,q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return q=w(w({},q),{},{fromSubmission:!e.default.has(q,"fromSubmission")||q.fromSubmission}),this.onSubmission=this.formReady.then(function(se){return se&&(q=w(w({},q),se)),z.submissionSet=!0,z.triggerChange(q),z.emit("beforeSetSubmission",H),z.setValue(H,q),z.submissionReadyResolve(H)},function(se){return z.submissionReadyReject(se)}).catch(function(se){return z.submissionReadyReject(se)})}},{key:"saveDraft",value:function(){var H=this;if(this.draftEnabled){if(!this.formio)return void console.warn(this.t("saveDraftInstanceError"));if(!d.GlobalFormio.getUser())return void console.warn(this.t("saveDraftAuthError"));var z=(0,C.fastCloneDeep)(this.submission);z.state="draft",this.savingDraft||(this.emit("saveDraftBegin"),this.savingDraft=!0,this.formio.saveSubmission(z).then(function(q){H.submission._id=q._id,H.savingDraft=!1,H.emit("saveDraft",q)}))}}},{key:"restoreDraft",value:function(H){var z=this;this.formio?(this.savingDraft=!0,this.formio.loadSubmissions({params:{state:"draft",owner:H}}).then(function(q){if(q.length>0&&!z.options.skipDraftRestore){var se=(0,C.fastCloneDeep)(q[0]);return z.setSubmission(se).then(function(){z.draftEnabled=!0,z.savingDraft=!1,z.emit("restoreDraft",se)})}z.draftEnabled=!0,z.savingDraft=!1,z.emit("restoreDraft",null)})):console.warn(this.t("restoreDraftInstanceError"))}},{key:"schema",get:function(){var H=(0,C.fastCloneDeep)(e.default.omit(this._form,["components"]));return H.components=[],this.eachComponent(function(z){return H.components.push(z.schema)}),H}},{key:"mergeData",value:function(H,z){e.default.mergeWith(H,z,function(q,se){if(Array.isArray(q)&&Array.isArray(se)&&q.length!==se.length)return se})}},{key:"setValue",value:function(H){var z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(!H||!H.data)&&(H={data:{}}),this._submission.metadata=H.metadata||{},this.editing=!!H._id,!this.options.submissionTimezone&&H.metadata&&H.metadata.timezone&&(this.options.submissionTimezone=H.metadata.timezone);var q=E(U(te.prototype),"setValue",this).call(this,H.data,z);return z.sanitize||this.mergeData(this.data,H.data),H.data=this.data,this._submission=H,q}},{key:"getValue",value:function(){return this._submission.data||(this._submission.data={}),this.viewOnly||(this._submission.data=this.data),this._submission}},{key:"init",value:function(){var H=this;return this._submission=this._submission||{data:{}},this.components&&this.components.length&&(this.destroyComponents(),this.components=[]),this.component?this.component.components=this.form?this.form.components:[]:this.component=this.form,this.component.type="form",this.component.input=!1,this.addComponents(),this.on("submitButton",function(z){H.submit(!1,z).catch(function(q){return!1!==q&&console.log(q)})},!0),this.on("checkValidity",function(z){return H.checkValidity(z,!0,z)},!0),this.on("requestUrl",function(z){return H.submitUrl(z.url,z.headers)},!0),this.on("resetForm",function(){return H.resetValue()},!0),this.on("deleteSubmission",function(){return H.deleteSubmission()},!0),this.on("refreshData",function(){return H.updateValue()},!0),this.executeFormController(),this.formReady}},{key:"executeFormController",value:function(){var H=this;if(!this.form||!this.form.controller||(!this.visible||this.component.hidden)&&this.component.clearOnHide&&!this.rootPristine)return!1;this.formReady.then(function(){H.evaluate(H.form.controller,{components:H.components,instance:H})})}},{key:"destroy",value:function(){var H=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.off("submitButton"),this.off("checkValidity"),this.off("requestUrl"),this.off("resetForm"),this.off("deleteSubmission"),this.off("refreshData"),H&&(this.emit("formDelete",this.id),delete d.GlobalFormio.forms[this.id]),E(U(te.prototype),"destroy",this).call(this)}},{key:"build",value:function(H){var z=this;return H||this.element?this.ready.then(function(){H=H||z.element,E(U(te.prototype),"build",z).call(z,H)}):this.ready}},{key:"getClassName",value:function(){var H="formio-form";return this.options.readOnly&&(H+=" formio-read-only"),H}},{key:"render",value:function(){return E(U(te.prototype),"render",this).call(this,this.renderTemplate("webform",{classes:this.getClassName(),children:this.renderComponents()}),this.builderMode?"builder":"form",!0)}},{key:"redraw",value:function(){return this.element?(this.clear(),this.setContent(this.element,this.render()),this.attach(this.element)):s.default.resolve()}},{key:"attach",value:function(H){var z=this;this.element=H,this.loadRefs(H,{webform:"single"});var q=this.attachComponents(this.refs.webform);return this.addEventListener(document,"keydown",this.executeShortcuts),this.currentForm=this,this.hook("attachWebform",H,this),q.then(function(){return z.emit("render",z.element),z.setValue(z._submission,{noUpdateEvent:!0})})}},{key:"hasRequiredFields",value:function(){var H=!1;return(0,R.eachComponent)(this.form.components,function(z){if(z.validate.required)return H=!0,!0},!0),H}},{key:"resetValue",value:function(){e.default.each(this.getComponents(),function(H){return H.resetValue()}),this.setPristine(!0),this.onChange()}},{key:"setAlert",value:function(H,z,q){var se=this;if(H||!this.submitted)if(this.options.noAlerts)z||this.emit("error",!1);else{if(this.alert)try{this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach(function(ge){se.removeEventListener(ge,"click"),se.removeEventListener(ge,"keypress")}),this.removeChild(this.alert),this.alert=null}catch{}if(z){var ne={class:q&&q.classes||"alert alert-".concat(H),id:"error-list-".concat(this.id)},_e={message:z instanceof HTMLElement?z.outerHTML:z,attrs:ne,type:H};this.alert=(0,C.convertStringToHTMLElement)(this.renderTemplate("alert",_e),"#".concat(ne.id))}this.alert&&(this.loadRefs(this.alert,{errorRef:"multiple"}),this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach(function(ge){se.addEventListener(ge,"click",function(Ce){se.focusOnComponent(Ce.currentTarget.dataset.componentKey)}),se.addEventListener(ge,"keydown",function(Ce){13===Ce.keyCode&&(Ce.preventDefault(),se.focusOnComponent(Ce.currentTarget.dataset.componentKey))})}),this.prepend(this.alert))}else this.alert&&(this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach(function(ge){se.removeEventListener(ge,"click"),se.removeEventListener(ge,"keypress")}),this.removeChild(this.alert),this.alert=null)}},{key:"focusOnComponent",value:function(H){if(H){var z=this.getComponent(H);z&&z.focus()}}},{key:"showErrors",value:function(H,z,q){var se=this;this.loading=!1;var ne=this.errors;if(H?Array.isArray(H)?ne=ne.concat(H):ne.push(H):ne=E(U(te.prototype),"errors",this),(ne=(ne=ne.concat(this.customErrors)).concat(this.serverErrors||[])).length){ne.forEach(function(Ce){var Te=Ce.components,De=void 0===Te?[]:Te;Ce.component&&De.push(Ce.component),Ce.path&&De.push(Ce.path),De.forEach(function(fe){var xe=se._parentPath+(0,C.getStringFromComponentPath)(fe),Oe=se.getComponent(fe,e.default.identity,xe);Ce.fromServer&&(Oe.serverErrors?Oe.serverErrors.push(Ce):Oe.serverErrors=[Ce]),e.default.compact(Array.isArray(Oe)?Oe:[Oe]).forEach(function(Gt){return Gt.setCustomValidity(Ce.message,!0)})})});var _e=[];ne.forEach(function(Ce){if(Ce){var Te=function(Oe,Le){var Gt=!e.default.isUndefined(Le)&&Ce.messages&&Ce.messages[Le],Ut=Gt&&Gt.formattedKeyOrPath||Gt.path||Ce.component&&Ce.component.key||Ce.fromServer&&Ce.path,An=Ut?(0,C.getStringFromComponentPath)(Ut):"";return An=se._parentPath+An,"string"!=typeof Ce&&!Ce.formattedKeyOrPath&&(Ce.formattedKeyOrPath=An),{message:(0,C.unescapeHTML)(Oe),keyOrPath:An}};if(Ce.messages=e.default.uniqBy(Ce.messages,function(xe){return xe.message}),Ce.messages&&Ce.messages.length){var De=Ce.component;Ce.messages.forEach(function(xe,Oe){var Le=xe.message,Gt=xe.context,An=null!=Gt&&Gt.hasLabel||xe.fromServer?se.t("alertMessage",{message:se.t(Le)}):se.t("alertMessageWithLabel",{label:se.t(De.label),message:se.t(Le)});_e.push(Te(An,Oe))})}else if(Ce){var fe=e.default.isObject(Ce)?se.t("alertMessage",{message:se.t(Ce.message||"")}):se.t("alertMessage",{message:se.t(Ce)});_e.push(Te(fe))}}});var ge=this.renderTemplate("errorsList",{errors:_e});return this.root.setAlert("danger",ge),z&&this.emit("error",ne),ne}this.setAlert(!1)}},{key:"onSubmit",value:function(H,z){var q;return this.loading=!1,this.submitting=!1,this.setPristine(!0),this.setValue((0,C.fastCloneDeep)(H),{noValidate:!0,noCheck:!0}),this.setAlert("success","<p>".concat(this.t("complete"),"</p>")),this.draftEnabled&&null!==(q=this.triggerSaveDraft)&&void 0!==q&&q.cancel&&this.triggerSaveDraft.cancel(),this.emit("submit",H,z),z&&this.emit("submitDone",H),H}},{key:"normalizeError",value:function(H){return H&&("object"===f(H)&&"details"in H&&(H=H.details),"string"==typeof H&&(H={message:H})),H}},{key:"onSubmissionError",value:function(H){return H=this.normalizeError(H),this.submitting=!1,this.setPristine(!1),this.emit("submitError",H),H&&H.silent?(this.emit("change",{isValid:!0},{silent:!0}),!1):(z=this.submitted?this.showErrors():this.showErrors(H,!0),this.root&&this.root.alert&&this.scrollIntoView(this.root.alert),z);var z}},{key:"onChange",value:function(H,z,q,se){H=H||{};var ne=!1;z&&z.component&&(this.customErrors=this.customErrors.filter(function(ge){return ge.component&&ge.component!==z.component.key})),E(U(te.prototype),"onChange",this).call(this,H,!0);var _e=e.default.clone(this.submission);H.changed=_e.changed=z,H.changes=se,q&&this.pristine&&(this.pristine=!1),_e.isValid=this.checkData(_e.data,H),this.loading=!1,this.submitted&&this.showErrors(),q&&this.options.saveDraft&&this.triggerSaveDraft(),(!H||!H.noEmit)&&(this.emit("change",_e,H,q),ne=!0),ne&&!this.initialized&&(this.emit("initialized"),this.initialized=!0)}},{key:"checkData",value:function(H){var z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},q=E(U(te.prototype),"checkData",this).call(this,H,z);return(e.default.isEmpty(z)||z.noValidate)&&this.submitted&&this.showErrors(),q}},{key:"deleteSubmission",value:function(){var H=this;return this.formio.deleteSubmission().then(function(){H.emit("submissionDeleted",H.submission),H.resetValue()})}},{key:"cancel",value:function(H){return this.hook("beforeCancel",!0)&&(H||confirm(this.t("confirmCancel")))?(this.resetValue(),!0):(this.emit("cancelSubmit"),!1)}},{key:"setMetadata",value:function(H){H.metadata=H.metadata||{},e.default.defaults(H.metadata,{timezone:e.default.get(this,"_submission.metadata.timezone",(0,C.currentTimezone)()),offset:parseInt(e.default.get(this,"_submission.metadata.offset",(0,n.default)().utcOffset()),10),origin:document.location.origin,referrer:document.referrer,browserName:navigator.appName,userAgent:navigator.userAgent,pathName:window.location.pathname,onLine:navigator.onLine})}},{key:"submitForm",value:function(){var H=this,z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.clearServerErrors(),new s.default(function(q,se){if(H.options.readOnly)return q({submission:H.submission,saved:!1});var ne=(0,C.fastCloneDeep)(H.submission||{});H.setMetadata(ne),ne.state=z.state||"submitted";var _e="draft"===ne.state;H.hook("beforeSubmit",w(w({},ne),{},{component:z.component}),function(ge,Ce){return ge?se(ge):(ne._vnote=Ce&&Ce._vnote?Ce._vnote:"",_e||ne.data?_e||H.checkValidity(ne.data,!0)?(H.everyComponent(function(Te){"client-only"===Te.component.persistent&&e.default.unset(ne.data,Te.path)}),void H.hook("customValidation",w(w({},ne),{},{component:z.component}),function(Te){if(Te)return"string"==typeof Te&&(Te={message:Te}),Te=Array.isArray(Te)?Te:[Te],H.customErrors=Te,se();if(H.loading=!0,H._form&&H._form.action){var De=ne.data._id&&H._form.action.includes(ne.data._id)?"PUT":"POST";return d.GlobalFormio.makeStaticRequest(H._form.action,De,ne,H.formio?H.formio.options:{}).then(function(Oe){return q({submission:Oe,saved:!0})}).catch(function(Oe){return H.setServerErrors(Oe),se(Oe)})}var fe=H.formio;if(H.nosubmit||!fe)return q({submission:ne,saved:!1});fe[fe.actionUrl?"saveAction":"saveSubmission"](ne).then(function(Oe){return q({submission:Oe,saved:!0})}).catch(function(Oe){return H.setServerErrors(Oe),se(Oe)})})):se():se("Invalid Submission"))})})}},{key:"setServerErrors",value:function(H){H.details?this.serverErrors=H.details.filter(function(z){return z.level?"error"===z.level:z}).map(function(z){return z.fromServer=!0,z}):"string"==typeof H&&(this.serverErrors=[{fromServer:!0,level:"error",message:H}])}},{key:"executeSubmit",value:function(H){var z=this;return this.submitted=!0,this.submitting=!0,this.submitForm(H).then(function(q){return z.onSubmit(q.submission,q.saved)}).then(function(q){return z.submissionInProcess=!1,q}).catch(function(q){return z.submissionInProcess=!1,s.default.reject(z.onSubmissionError(q))})}},{key:"clearServerErrors",value:function(){var H,z=this;null===(H=this.serverErrors)||void 0===H||H.forEach(function(q){if(q.path){var se=(0,C.getArrayFromComponentPath)(q.path),ne=z.getComponent(se,e.default.identity,q.formattedKeyOrPath);ne&&(ne.serverErrors=[])}}),this.serverErrors=[]}},{key:"submit",value:function(H,z){var q=this;return this.submissionInProcess=!0,H?this.executeSubmit(z):this.beforeSubmit(z).then(function(){return q.executeSubmit(z)})}},{key:"submitUrl",value:function(H,z){var q=this;if(!H)return console.warn("Missing URL argument");var se=this.submission||{},ne=H,_e={method:"POST",headers:{}};if(z&&z.length>0&&z.map(function(ge){""!==ge.header&&""!==ge.value&&(_e.headers[ge.header]=q.interpolate(ge.value,se))}),!ne||!_e)return this.emit("error","You should add a URL to this button."),this.setAlert("warning","You should add a URL to this button."),console.warn("You should add a URL to this button.");d.GlobalFormio.makeStaticRequest(ne,_e.method,se,{headers:_e.headers}).then(function(){q.emit("requestDone"),q.setAlert("success","<p> Success </p>")}).catch(function(ge){q.showErrors("".concat(ge.statusText?ge.statusText:""," ").concat(ge.status?ge.status:ge)),q.emit("error","".concat(ge.statusText?ge.statusText:""," ").concat(ge.status?ge.status:ge)),console.error("".concat(ge.statusText?ge.statusText:""," ").concat(ge.status?ge.status:ge)),q.setAlert("danger","<p> ".concat(ge.statusText?ge.statusText:""," ").concat(ge.status?ge.status:ge," </p>"))})}},{key:"triggerRecaptcha",value:function(){if(this&&this.components){var H=(0,C.searchComponents)(this.components,{"component.type":"recaptcha","component.eventType":"formLoad"});H.length>0&&H[0].verify("".concat(this.form.name?this.form.name:"form","Load"))}}},{key:"nosubmit",get:function(){return this._nosubmit||!1},set:function(H){this._nosubmit=!!H,this.emit("nosubmit",this._nosubmit)}},{key:"conditions",get:function(){var H,z;return null!==(H=null===(z=this.schema.settings)||void 0===z?void 0:z.conditions)&&void 0!==H?H:[]}},{key:"variables",get:function(){var H,z;return null!==(H=null===(z=this.schema.settings)||void 0===z?void 0:z.variables)&&void 0!==H?H:[]}}]),te}(_.default);y.default=Q,Q.setBaseUrl=d.GlobalFormio.setBaseUrl,Q.setApiUrl=d.GlobalFormio.setApiUrl,Q.setAppUrl=d.GlobalFormio.setAppUrl},6037:(he,y,i)=>{"use strict";i(40739),i(5399),i(88052),i(30050),i(51013),i(32349),i(81919),i(99474),i(35082),i(84254),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(50886),i(65137),i(38077),i(60228),i(64043),i(57267),i(76801),i(43843),i(34284),i(41517),i(69358),i(97195),i(63975),i(34338),i(49693),i(47522),i(89730),i(22462),i(6203),i(77049),i(21694),i(25728),i(39772),i(98742),i(62506),i(752),i(56646),i(76265),i(268),i(25847),i(69373),i(59903),i(59749),i(86544),i(79288);var e=R(i(27903)),n=R(i(1681)),o=R(i(65850)),a=R(i(73808)),l=R(i(14231)),u=i(55798),d=i(12866),s=i(18646),A=R(i(24845)),_=R(i(6990)),C=R(i(44672));function R(z){return z&&z.__esModule?z:{default:z}}function x(z){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q})(z)}function f(z){return function M(z){if(Array.isArray(z))return p(z)}(z)||function g(z){if(typeof Symbol<"u"&&null!=z[Symbol.iterator]||null!=z["@@iterator"])return Array.from(z)}(z)||function w(z,q){if(z){if("string"==typeof z)return p(z,q);var se=Object.prototype.toString.call(z).slice(8,-1);if("Object"===se&&z.constructor&&(se=z.constructor.name),"Map"===se||"Set"===se)return Array.from(z);if("Arguments"===se||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(se))return p(z,q)}}(z)||function k(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(z,q){(null==q||q>z.length)&&(q=z.length);for(var se=0,ne=new Array(q);se<q;se++)ne[se]=z[se];return ne}function E(z,q){var se=Object.keys(z);if(Object.getOwnPropertySymbols){var ne=Object.getOwnPropertySymbols(z);q&&(ne=ne.filter(function(_e){return Object.getOwnPropertyDescriptor(z,_e).enumerable})),se.push.apply(se,ne)}return se}function b(z){for(var q=1;q<arguments.length;q++){var se=null!=arguments[q]?arguments[q]:{};q%2?E(Object(se),!0).forEach(function(ne){Q(z,ne,se[ne])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(se)):E(Object(se)).forEach(function(ne){Object.defineProperty(z,ne,Object.getOwnPropertyDescriptor(se,ne))})}return z}function L(z,q){for(var se=0;se<q.length;se++){var ne=q[se];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(z,re(ne.key),ne)}}function F(){return F=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(q,se,ne){var _e=function P(z,q){for(;!Object.prototype.hasOwnProperty.call(z,q)&&null!==(z=J(z)););return z}(q,se);if(_e){var ge=Object.getOwnPropertyDescriptor(_e,se);return ge.get?ge.get.call(arguments.length<3?q:ne):ge.value}},F.apply(this,arguments)}function U(z,q){return(U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ne,_e){return ne.__proto__=_e,ne})(z,q)}function X(z){if(void 0===z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}function J(z){return(J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(se){return se.__proto__||Object.getPrototypeOf(se)})(z)}function Q(z,q,se){return(q=re(q))in z?Object.defineProperty(z,q,{value:se,enumerable:!0,configurable:!0,writable:!0}):z[q]=se,z}function re(z){var q=function de(z,q){if("object"!==x(z)||null===z)return z;var se=z[Symbol.toPrimitive];if(void 0!==se){var ne=se.call(z,q||"default");if("object"!==x(ne))return ne;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===q?String:Number)(z)}(z,"string");return"symbol"===x(q)?q:String(q)}i(86919);var j,te=u.GlobalFormio.Templates;te||(te=i(80193).default),typeof window<"u"&&(j=i(6875)),y.default=function(z){!function O(z,q){if("function"!=typeof q&&null!==q)throw new TypeError("Super expression must either be null or a function");z.prototype=Object.create(q&&q.prototype,{constructor:{value:z,writable:!0,configurable:!0}}),Object.defineProperty(z,"prototype",{writable:!1}),q&&U(z,q)}(se,z);var q=function V(z){var q=function me(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var _e,ne=J(z);if(q){var ge=J(this).constructor;_e=Reflect.construct(ne,arguments,ge)}else _e=ne.apply(this,arguments);return function K(z,q){if(q&&("object"===x(q)||"function"==typeof q))return q;if(void 0!==q)throw new TypeError("Derived constructors may only return object or undefined");return X(z)}(this,_e)}}(se);function se(){var ne,_e,ge;!function I(z,q){if(!(z instanceof q))throw new TypeError("Cannot call a class as a function")}(this,se),arguments[0]instanceof HTMLElement||arguments[1]?(_e=arguments[0],ge=arguments[1]):ge=arguments[0],ge.skipInit=!1,ge.display=ge.display||"form",Q(X(ne=q.call(this,null,ge)),"moveHandler",function(Wt){(38===Wt.keyCode||40===Wt.keyCode||13===Wt.keyCode)&&(Wt.stopPropagation(),Wt.preventDefault()),38===Wt.keyCode&&ne.updateComponentPlacement(!0),40===Wt.keyCode&&ne.updateComponentPlacement(!1),13===Wt.keyCode&&ne.stopMoving(ne.selectedComponent)}),ne.element=_e,ne.builderHeight=0,ne.schemas={},ne.repeatablePaths=[],ne.sideBarScroll=_.default.get(ne.options,"sideBarScroll",!0),ne.sideBarScrollOffset=_.default.get(ne.options,"sideBarScrollOffset",0),ne.dragDropEnabled=!0,ne.builder=_.default.defaultsDeep({},ne.options.builder,ne.defaultGroups),_.default.each(ne.defaultGroups,function(Wt,dn){!1===Wt&&(ne.builder[dn]=!1)}),ne.groups={},ne.groupOrder=[];var Ce=function(dn){ne.builder[dn]&&(ne.builder[dn].key=dn,ne.groups[dn]=ne.builder[dn],ne.groups[dn].components=ne.groups[dn].components||{},ne.groups[dn].componentOrder=ne.groups[dn].componentOrder||[],ne.groups[dn].subgroups=Object.keys(ne.groups[dn].groups||{}).map(function(sn){return ne.groups[dn].groups[sn].componentOrder=Object.keys(ne.groups[dn].groups[sn].components).map(function(fn){return fn}),ne.groups[dn].groups[sn]}),ne.groupOrder.push(ne.groups[dn]))};for(var Te in ne.builder)Ce(Te);for(var De in ne.groupOrder=ne.groupOrder.filter(function(Wt){return Wt&&!Wt.ignore}).sort(function(Wt,dn){return Wt.weight-dn.weight}).map(function(Wt){return Wt.key}),l.default.components){var fe=l.default.components[De];if(fe.builderInfo&&fe.builderInfo.schema){ne.schemas[De]=fe.builderInfo.schema,fe.type=De;var xe=fe.builderInfo;xe.key=fe.type,ne.addBuilderComponentInfo(xe)}}for(var Oe in ne.groups){var Le=ne.groups[Oe];for(var Gt in Le.components){var Ut="resource"===Oe?"component-".concat(Gt):Gt,An=Le.components[Ut];!0===An&&l.default.components[Gt]&&l.default.components[Gt].builderInfo&&(An=l.default.components[Gt].builderInfo),An&&An.schema?(ne.schemas[Gt]=An.schema,Le.components[Ut]=An,Le.components[Ut].key=Gt):delete Le.components[Ut]}ne.orderComponents(Le)}ne.options.hooks=ne.options.hooks||{},ne.options.hooks.renderComponent=function(Wt,dn){var sn,fn=dn.component,yi=dn.self;return"form"!==yi.type||yi.key?ne.options.disabled&&ne.options.disabled.includes(yi.key)||yi.parent.noDragDrop?Wt:ne.renderTemplate("builderComponent",{html:Wt,disableBuilderActions:null==yi||null===(sn=yi.component)||void 0===sn?void 0:sn.disableBuilderActions,childComponent:fn}):ne.hook("renderComponentFormTemplate",Wt.replace("formio-component-form",""))},ne.options.hooks.renderComponents=function(Wt,dn){var sn=dn.components,fn=dn.self;return"datagrid"===fn.type&&sn.length>0||fn.noDragDrop?Wt:((!sn||!sn.length&&!sn.nodrop||"form"===fn.type&&sn.length<=1&&(0===sn.length||"button"===sn[0].type))&&(Wt=ne.renderTemplate("builderPlaceholder",{position:0})+Wt),ne.renderTemplate("builderComponents",{key:fn.key,type:fn.type,html:Wt}))},ne.options.hooks.renderInput=function(Wt,dn){var sn=dn.self;return"hidden"===sn.type?Wt+sn.name:Wt},ne.options.hooks.renderLoading=function(Wt,dn){var sn=dn.self;return"form"===sn.type&&sn.key?sn.name:Wt},ne.options.hooks.attachComponents=function(Wt,dn,sn,fn){if(Wt){if(fn.noDragDrop)return Wt;var yi=Wt.querySelector('[ref="'.concat(fn.component.key,'-container"]'))||Wt;return yi.formioContainer=sn,yi.formioComponent=fn,ne.dragula&&ne.allowDrop(Wt)&&ne.dragula.containers.push(yi),("datagrid"===fn.type||"datamap"===fn.type)&&dn.length>0?Wt:Wt.children[0]}},ne.options.hooks.attachDatagrid=function(Wt,dn){dn.loadRefs(Wt,Q({},"".concat(dn.key,"-container"),"single"));var sn=dn.refs["".concat(dn.key,"-container")];sn&&dn.attachComponents(sn.parentNode,[],dn.component.components)},ne.options.hooks.attachComponent=ne.attachComponent.bind(X(ne));var $n={params:{type:"resource",limit:1e6,select:"_id,title,name,components"}};ne.options&&ne.options.resourceTag?$n.params.tags=[ne.options.resourceTag]:(!ne.options||!ne.options.hasOwnProperty("resourceTag"))&&($n.params.tags=["builder"]);var xn=new u.GlobalFormio(u.GlobalFormio.projectUrl),mt=ne.options.builder&&!1===ne.options.builder.resource;if(xn.loadProject().then(function(Wt){if(Wt&&(_.default.get(Wt,"settings.addConfigToForms",!1)||_.default.get(Wt,"addConfigToForms",!1))){var dn=Wt.config||{};ne.options.formConfig=dn;var sn="webform._form.config",fn=_.default.get(X(ne),sn);ne.webform&&!fn&&_.default.set(X(ne),sn,dn)}}).catch(function(Wt){console.warn("Could not load project settings: ".concat(Wt.message||Wt))}),!xn.noProject&&!mt){var ut=ne.options.builder&&ne.options.builder.resource;xn.loadForms($n).then(function(Wt){Wt.length&&(ne.builder.resource={title:ut?ut.title:"Existing Resource Fields",key:"resource",weight:ut?ut.weight:50,subgroups:[],components:[],componentOrder:[]},ne.groups.resource={title:ut?ut.title:"Existing Resource Fields",key:"resource",weight:ut?ut.weight:50,subgroups:[],components:[],componentOrder:[]},ne.groupOrder.includes("resource")||ne.groupOrder.push("resource"),ne.addExistingResourceFields(Wt))})}return ne.options.attachMode="builder",ne.webform=ne.webform||ne.createForm(ne.options),ne.pathComponentsMapping={},ne.arrayDataComponentPaths=[],ne.nestedDataComponents=[],ne.arrayDataComponents=[],ne}return function D(z,q,se){q&&L(z.prototype,q),se&&L(z,se),Object.defineProperty(z,"prototype",{writable:!1})}(se,[{key:"allowDrop",value:function(){return!0}},{key:"addExistingResourceFields",value:function(_e){var ge=this;_.default.each(_e,function(Ce,Te){var De="resource-".concat(Ce.name),fe={key:De,title:Ce.title,components:[],componentOrder:[],default:0===Te};(0,s.eachComponent)(Ce.components,function(xe){if("button"!==xe.type&&(!ge.options||!ge.options.resourceFilter||xe.tags&&-1!==xe.tags.indexOf(ge.options.resourceFilter))){var Oe=xe.label;!Oe&&xe.key&&(Oe=_.default.upperFirst(xe.key)),fe.componentOrder.push("component-".concat(xe.key)),fe.components["component-".concat(xe.key)]=_.default.merge((0,d.fastCloneDeep)(l.default.components[xe.type]?l.default.components[xe.type].builderInfo:l.default.components.unknown.builderInfo),{key:xe.key,title:Oe,group:"resource",subgroup:De},{schema:b(b({},xe),{},{label:xe.label,key:xe.key,lockKey:!0,source:ge.options.noSource?void 0:Ce._id,isNew:!0})})}},!0),ge.groups.resource.subgroups.push(fe)}),this.triggerRedraw()}},{key:"attachTooltip",value:function(_e,ge){return(0,o.default)(_e,{allowHTML:!0,trigger:"mouseenter focus",placement:"top",delay:[200,0],zIndex:1e4,content:ge})}},{key:"attachComponent",value:function(_e,ge){var Ce=this;if(!(ge instanceof se)){if(_e.formioComponent=ge,ge.loadRefs(_e,{removeComponent:"single",editComponent:"single",moveComponent:"single",copyComponent:"single",pasteComponent:"single",editJson:"single"}),ge.refs.copyComponent&&(this.attachTooltip(ge.refs.copyComponent,this.t("Copy")),ge.addEventListener(ge.refs.copyComponent,"click",function(){return Ce.copyComponent(ge)})),ge.refs.pasteComponent){var Te=this.attachTooltip(ge.refs.pasteComponent,this.t("Paste below"));ge.addEventListener(ge.refs.pasteComponent,"click",function(){Te.hide(),Ce.pasteComponent(ge)})}ge.refs.moveComponent&&(this.attachTooltip(ge.refs.moveComponent,this.t("Move")),this.keyboardActionsEnabled&&ge.addEventListener(ge.refs.moveComponent,"click",function(){Ce.moveComponent(ge)}));var De=this.getParentElement(_e);return ge.refs.editComponent&&(this.attachTooltip(ge.refs.editComponent,this.t("Edit")),ge.addEventListener(ge.refs.editComponent,"click",function(){return Ce.editComponent(ge.schema,De,!1,!1,ge.component,{inDataGrid:ge.isInDataGrid})})),ge.refs.editJson&&(this.attachTooltip(ge.refs.editJson,this.t("Edit JSON")),ge.addEventListener(ge.refs.editJson,"click",function(){return Ce.editComponent(ge.schema,De,!1,!0,ge.component)})),ge.refs.removeComponent&&(this.attachTooltip(ge.refs.removeComponent,this.t("Remove")),ge.addEventListener(ge.refs.removeComponent,"click",function(){return Ce.removeComponent(ge.schema,De,ge.component)})),_e}}},{key:"createForm",value:function(_e){return this.webform=new e.default(this.element,_e),this.element&&(this.loadRefs(this.element,{form:"single"}),this.refs.form&&(this.webform.element=this.refs.form)),this.webform}},{key:"ready",get:function(){return this.webform.ready}},{key:"defaultGroups",get:function(){return{basic:{title:"Basic",weight:0,default:!0},advanced:{title:"Advanced",weight:10},layout:{title:"Layout",weight:20},data:{title:"Data",weight:30},premium:{title:"Premium",weight:40}}}},{key:"redraw",value:function(){return e.default.prototype.redraw.call(this)}},{key:"form",get:function(){return this.webform.form},set:function(_e){this.setForm(_e)}},{key:"schema",get:function(){return this.webform.schema}},{key:"container",get:function(){return this.webform.form.components}},{key:"findNamespaceRoot",value:function(_e){var ge=(0,d.getArrayFromComponentPath)(_e.path),Ce=this.webform.getComponent(ge);Ce=Array.isArray(Ce)?Ce[0]:Ce;var Te=this.recurseNamespace(Ce);if(!Te||this.form.key===Te)return this.form.components;var De=_e.component;if(Te===_e.key)return[].concat(f(De.components),[De]);var fe=(0,s.getComponent)(this.form.components,Te,!0);return fe?fe.components:Ce.components}},{key:"recurseNamespace",value:function(_e){return _e?["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(_e.type)||_e.tree||_e.arrayTree?_e.key:this.recurseNamespace(_e.parent):null}},{key:"render",value:function(){var _e=this;return this.renderTemplate("builder",{sidebar:this.renderTemplate("builderSidebar",{scrollEnabled:this.sideBarScroll,groupOrder:this.groupOrder,groupId:"builder-sidebar-".concat(this.id),groups:this.groupOrder.map(function(ge){return _e.renderTemplate("builderSidebarGroup",{group:_e.groups[ge],groupKey:ge,groupId:"builder-sidebar-".concat(_e.id),subgroups:_e.groups[ge].subgroups.map(function(Ce){return _e.renderTemplate("builderSidebarGroup",{group:Ce,groupKey:Ce.key,groupId:"group-container-".concat(ge),subgroups:[]})}),keyboardActionsEnabled:_e.keyboardActionsEnabled})})}),form:this.webform.render()})}},{key:"attach",value:function(_e){var ge=this;return this.on("change",function(Ce){ge.populateRecaptchaSettings(Ce)}),F(J(se.prototype),"attach",this).call(this,_e).then(function(){ge.loadRefs(_e,{form:"single",sidebar:"single","sidebar-search":"single","sidebar-groups":"single",container:"multiple","sidebar-anchor":"multiple","sidebar-group":"multiple","sidebar-container":"multiple","sidebar-component":"multiple"}),ge.sideBarScroll&&te.current.handleBuilderSidebarScroll&&te.current.handleBuilderSidebarScroll.call(ge,ge),typeof window<"u"&&window.sessionStorage&&window.sessionStorage.getItem("formio.clipboard")&&ge.addClass(ge.refs.form,"builder-paste-mode"),(0,d.bootstrapVersion)(ge.options)||(ge.refs["sidebar-group"].forEach(function(De){De.style.display="true"===De.getAttribute("data-default")?"inherit":"none"}),ge.refs["sidebar-anchor"].forEach(function(De,fe){ge.addEventListener(De,"click",function(){var xe=De.getAttribute("data-parent").slice(17),Oe=De.getAttribute("data-target").slice(7);ge.refs["sidebar-group"].forEach(function(Le,Gt){var Ut="true"===Le.getAttribute("data-default"),An=Le.getAttribute("id").slice(6),$n=Le.getAttribute("data-parent").slice(17);Le.style.display=Ut&&$n===Oe||An===xe||Gt===fe?"inherit":"none"})},!0)})),ge.keyboardActionsEnabled&&ge.refs["sidebar-component"].forEach(function(De){ge.addEventListener(De,"keydown",function(fe){13===fe.keyCode&&ge.addNewComponent(De)})}),ge.addEventListener(ge.refs["sidebar-search"],"input",_.default.debounce(function(De){ge.searchFields(De.target.value)},300)),ge.dragDropEnabled&&ge.initDragula();var Te=ge.dragula;if(ge.refs.form)return(0,C.default)([window],{margin:20,maxSpeed:6,scrollWhenOutside:!0,autoScroll:function(){return this.down&&Te?.dragging}}),ge.webform.attach(ge.refs.form)})}},{key:"searchFields",value:function(){var Ut,An,_e=this,Ce=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),Te=this.refs.sidebar,De=this.refs["sidebar-groups"];if(Te&&De){var fe=function(Ut){var An=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",$n=_.default.toPlainObject(Ut),xn=$n.subgroups,mt=void 0===xn?[]:xn,ut=$n.components,Wt=[];for(var dn in ut){var sn=ut[dn].title.toLowerCase().match(An),fn=ut[dn].key.toLowerCase().match(An);(sn||fn)&&Wt.push(ut[dn])}return _e.orderComponents($n,Wt),An&&($n.default=!0),$n.componentOrder.length||mt.length?$n:null},Oe=function(Ut,An){return _.default.clone(Ut).map(function(xn){return fe(xn,An)}).filter(function(xn){return!_.default.isNull(xn)})};De.innerHTML=(Ut=this.groupOrder,An=Ce,_.default.cloneDeep(Ut).filter(function(xn){return fe(_e.groups[xn],An)})).map(function(Gt){return _e.renderTemplate("builderSidebarGroup",function(Ut){return{group:fe(_e.groups[Ut],Ce),groupKey:Ut,groupId:Te.id||De.id,subgroups:Oe(_e.groups[Ut].subgroups,Ce).map(function(An){return _e.renderTemplate("builderSidebarGroup",{group:An,groupKey:An.key,groupId:"group-container-".concat(Ut),subgroups:[]})})}}(Gt))}).join(""),this.loadRefs(this.element,{"sidebar-groups":"single","sidebar-anchor":"multiple","sidebar-group":"multiple","sidebar-container":"multiple"}),this.updateDragAndDrop(),""===Ce&&this.triggerRedraw()}}},{key:"orderComponents",value:function(_e,ge){var Ce=ge||_e.components,Te=0===_e.key.indexOf("resource-");Ce&&(_e.componentOrder=Object.keys(Ce).map(function(De){return Ce[De]}).filter(function(De){return De&&!De.ignore&&!De.ignoreForForm}).sort(function(De,fe){return De.weight-fe.weight}).map(function(De){return Te?"component-".concat(De.key):De.key}))}},{key:"updateDragAndDrop",value:function(){if(this.dragDropEnabled&&this.initDragula(),this.refs.form)return this.webform.attach(this.refs.form)}},{key:"initDragula",value:function(){var _e=this,ge=this.options;this.dragula&&this.dragula.destroy();var Ce=Array.prototype.slice.call(this.refs["sidebar-container"]).filter(function(Te){return"group-container-resource"!==Te.id});j&&(this.dragula=j(Ce,{moves:function(De){var fe=!0;return Array.from(De.classList).filter(function(Oe){return 0===Oe.indexOf("formio-component-")}).forEach(function(Oe){var Le=Oe.slice(17);ge.disabled&&ge.disabled.includes(Le)&&(fe=!1)}),De.classList.contains("no-drag")&&(fe=!1),fe},copy:function(De){return De.classList.contains("drag-copy")},accepts:function(De,fe){return!De.contains(fe)&&!fe.classList.contains("no-drop")}}).on("drop",function(Te,De,fe,xe){return _e.onDrop(Te,De,fe,xe)}))}},{key:"detach",value:function(){this.dragula&&this.dragula.destroy(),this.dragula=null,this.sideBarScroll&&te.current.clearBuilderSidebarScroll&&te.current.clearBuilderSidebarScroll.call(this,this),F(J(se.prototype),"detach",this).call(this)}},{key:"getComponentInfo",value:function(_e,ge){var Ce;if(ge&&"resource"===ge.slice(0,ge.indexOf("-"))){var De=_.default.find(this.groups.resource.subgroups,{key:ge});De&&De.components.hasOwnProperty("component-".concat(_e))&&(Ce=(0,d.fastCloneDeep)(De.components["component-".concat(_e)].schema))}else if(this.schemas.hasOwnProperty(_e))Ce=(0,d.fastCloneDeep)(this.schemas[_e]);else if(this.groups.hasOwnProperty(ge)){var fe=this.groups[ge].components;fe.hasOwnProperty(_e)&&(Ce=(0,d.fastCloneDeep)(fe[_e].schema))}else if("searchFields"===ge)for(var xe=this.groups.resource.subgroups,Oe=0;Oe<xe.length;Oe++){var Le=xe[Oe];if(Le.components.hasOwnProperty("component-".concat(_e))){Ce=(0,d.fastCloneDeep)(Le.components["component-".concat(_e)].schema);break}}return Ce&&(Ce.key=this.generateKey(Ce)),Ce}},{key:"getComponentsPath",value:function(_e,ge){var Ce="components",Te=0,De=0,fe=0,xe=0;switch(ge.type){case"table":De=_.default.findIndex(ge.rows,function(Oe){return Oe.some(function(Le){return Le.components.some(function(Gt){return Gt.key===_e.key})})}),fe=_.default.findIndex(ge.rows[De],function(Oe){return Oe.components.some(function(Le){return Le.key===_e.key})}),Ce="rows[".concat(De,"][").concat(fe,"].components");break;case"columns":Te=_.default.findIndex(ge.columns,function(Oe){return Oe.components.some(function(Le){return Le.key===_e.key})}),Ce="columns[".concat(Te,"].components");break;case"tabs":xe=_.default.findIndex(ge.components,function(Oe){return Oe.components.some(function(Le){return Le.key===_e.key})}),Ce="components[".concat(xe,"].components")}return Ce}},{key:"onDrop",value:function(_e,ge,Ce,Te){var De,fe=this;if(ge&&!_e.contains(ge)){var Gt,Ut,An,$n,xe=_e.getAttribute("data-key"),Oe=_e.getAttribute("data-type"),Le=_e.getAttribute("data-group");if(xe&&Le?(!(Gt=this.getComponentInfo(xe,Le))&&Oe&&(Gt=this.getComponentInfo(Oe,Le)),Ut=!0):Ce.formioContainer&&-1!==($n=_.default.findIndex(Ce.formioContainer,{key:_e.formioComponent.component.key}))&&(Gt=(Gt=Ce.formioContainer.splice(_.default.findIndex(Ce.formioContainer,{key:_e.formioComponent.component.key}),1))[0]),Gt){var xn="resource"===Le?"component-".concat(xe):xe,mt=(null===(De=this.groups[Le])||void 0===De?void 0:De.components[xn])||{};if(mt.disableSiblings){var ut=!1;if((0,s.eachComponent)(this.webform.components,function(fn){fn.type!==mt.schema.type||(ut=!0)},!0),ut)return this.webform.redraw(),void this.webform.setAlert("danger","You cannot add more than one ".concat(mt.key," component to one page."))}ge!==Ce&&A.default.uniquify(this.findNamespaceRoot(ge.formioComponent),Gt);var sn,Wt=ge.formioComponent;return ge.formioContainer&&(Te?-1!==($n=Te.getAttribute("data-noattach")?Te.getAttribute("data-position"):-1===($n=_.default.findIndex(ge.formioContainer,{key:_.default.get(Te,"formioComponent.component.key")}))?0:$n)&&ge.formioContainer.splice($n,0,Gt):ge.formioContainer.push(Gt),An=this.getComponentsPath(Gt,Wt.component),-1===($n=_.default.findIndex(_.default.get(Wt.schema,An),{key:Gt.key}))&&($n=0)),Wt&&Wt.addChildComponent&&Wt.addChildComponent(Gt,_e,ge,Ce,Te),Ut&&!this.options.noNewEdit&&!Gt.noNewEdit&&this.editComponent(Gt,ge,Ut,null,null,{inDataGrid:"datagrid"===Wt.type}),ge!==Ce?Ce.formioContainer&&Ce.contains(ge)?sn=Ce.formioComponent.rebuild():(ge.contains(Ce)||Ce.formioContainer&&(sn=Ce.formioComponent.rebuild()),sn=ge.formioComponent.rebuild()):sn=ge.formioComponent.rebuild(),sn||(sn=a.default.resolve()),sn.then(function(){fe.emit("addComponent",Gt,Wt,An,$n,Ut&&!fe.options.noNewEdit&&!Gt.noNewEdit),(!Ut||fe.options.noNewEdit||Gt.noNewEdit)&&fe.emit("change",fe.form)})}}}},{key:"setForm",value:function(_e){var ge,Ce=this;if(_e.components||(_e.components=[]),_e&&_e.properties&&(this.options.properties=_e.properties),this.keyboardActionsEnabled=_.default.get(this.options,"keyboardBuilder",!1)||(null===(ge=this.options.properties)||void 0===ge?void 0:ge.keyboardBuilder),!this.options.noDefaultSubmitButton&&!_e.components.length&&_e.components.push({type:"button",label:"Submit",key:"submit",size:"md",block:!1,action:"submit",disableOnInvalid:!0,theme:"primary"}),this.webform){var De=!this.webform.form.components||_e.components.length!==this.webform.form.components.length;return this.webform.setForm(_e,{keepAsReference:!0}).then(function(){return Ce.refs.form&&(Ce.builderHeight=Ce.refs.form.offsetHeight),De?Ce.rebuild().then(function(){return Ce.form}):Ce.form})}return a.default.resolve(_e)}},{key:"populateRecaptchaSettings",value:function(_e){var ge=!1;this.form.components&&((0,s.eachComponent)(_e.components,function(Ce){if(!ge&&"recaptcha"===Ce.type)return ge=!0,!1}),ge?_.default.set(_e,"settings.recaptcha.isEnabled",!0):_.default.get(_e,"settings.recaptcha.isEnabled")&&_.default.set(_e,"settings.recaptcha.isEnabled",!1))}},{key:"removeComponent",value:function(_e,ge,Ce){var Te=this;if(ge){var De=!0,fe=!_e.skipRemoveConfirm&&(Array.isArray(_e.components)&&_e.components.length||Array.isArray(_e.rows)&&_e.rows.length||Array.isArray(_e.columns)&&_e.columns.length);(this.options.alwaysConfirmComponentRemoval||fe)&&(De=window.confirm(this.t(fe?"Removing this component will also remove all of its children. Are you sure you want to do this?":"Are you sure you want to remove this component?"))),Ce||(Ce=ge.formioContainer.find(function(Ut){return Ut.id===_e.id}));var Oe=ge.formioContainer?ge.formioContainer.indexOf(Ce):0;if(De&&-1!==Oe){var Le=this.getComponentsPath(_e,ge.formioComponent.component);ge.formioContainer?ge.formioContainer.splice(Oe,1):ge.formioComponent&&ge.formioComponent.removeChildComponent&&ge.formioComponent.removeChildComponent(_e),(ge.formioComponent.rebuild()||a.default.resolve()).then(function(){Te.emit("removeComponent",_e,ge.formioComponent.schema,Le,Oe),Te.emit("change",Te.form)})}return De}}},{key:"replaceDoubleQuotes",value:function(_e){if(_e)return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).forEach(function(Ce){_e[Ce]&&(_e[Ce]=_e[Ce].replace(/"/g,"'"))}),_e}},{key:"updateComponent",value:function(_e,ge){var Ce=this;if(this.preview){this.preview.form={components:[_.default.omit(b({},_e),["hidden","conditional","calculateValue","logic","autofocus","customConditional"])],config:this.options.formConfig||{}};var Te=["label","tooltip"];this.preview.form.components.forEach(function(mt){return Ce.replaceDoubleQuotes(mt,Te)});var De=this.componentEdit.querySelector('[ref="preview"]');De&&(this.setContent(De,this.preview.render()),this.preview.attach(De))}var fe=(0,s.getComponent)(this.editForm.components,"defaultValue",!0);if(fe&&"hidden"!==_e.type)if(ge&&(ge.component&&"defaultValue"===ge.component.key||ge.instance&&fe.hasComponent&&fe.hasComponent(ge.instance))){var $n=ge.instance._data.key,xn=(0,d.getArrayFromComponentPath)(ge.instance.path);xn.shift(),xn.length&&(xn.unshift(_e.key),$n=(0,d.getStringFromComponentPath)(xn)),_.default.set(this.preview._data,$n,ge.value),_.default.set(this.webform._data,$n,ge.value)}else{_.default.assign(fe.component,_.default.omit(b({},_e),["key","label","placeholder","tooltip","hidden","autofocus","validate","disabled","defaultValue","customDefaultValue","calculateValue","conditional","customConditional","id"]));var Oe=fe.parent,Le=-1,Gt=-1;if(Oe.tabs.some(function(mt,ut){mt.some(function(Wt,dn){return Wt.id===fe.id&&(Le=ut,Gt=dn,!0)})}),-1!==Le&&-1!==Gt&&ge&&!_.default.isNil(ge.value)){var Ut=Oe.tabs[Le][Gt+1];Oe.removeComponent(fe);var An=Oe.addComponent(fe.component,fe.data,Ut);_.default.pull(An.validators,"required"),Oe.tabs[Le].splice(Gt,1,An),An.checkValidity=function(){return!0},An.build(fe.element)}}this.emit("updateComponent",_e)}},{key:"findRepeatablePaths",value:function(){var _e=[],ge=new Map;return(0,s.eachComponent)(this.form.components,function(Ce,Te){Ce.key&&(ge.has(Ce.key)?ge.get(Ce.key).includes(Te)?_e.push(Te):ge.set(Ce.key,[].concat(f(ge.get(Ce.key)),[Te])):ge.set(Ce.key,[Te]))},!0),_e}},{key:"highlightInvalidComponents",value:function(){var _e=this.findRepeatablePaths(),ge=!1;this.webform.everyComponent(function(Ce){var Te,De;_e.includes(Ce.path)?(Ce.setCustomValidity("API Key is not unique: ".concat(Ce.key)),ge=!0):null!==(Te=Ce.error)&&void 0!==Te&&null!==(De=Te.message)&&void 0!==De&&De.startsWith("API Key is not unique")&&Ce.setCustomValidity("")}),this.emit("builderFormValidityChange",ge)}},{key:"saveComponent",value:function(_e,ge,Ce,Te){var De=this;this.editForm.detach();var fe=ge?ge.formioContainer:this.container,xe=ge?ge.formioComponent:this;this.dialog.close();var Oe=fe?this.getComponentsPath(_e,xe.component):"";Te||(Te=ge.formioContainer.find(function(Wt){return Wt.id===_e.id}));var Le=fe?fe.indexOf(Te):0;if(-1!==Le){var Gt=this.editForm.submission.data;this.replaceDoubleQuotes(Gt=Gt.componentJson||Gt,["label","tooltip"]),this.hook("beforeSaveComponentSettings",Gt);var An=null;xe.getComponents().forEach(function(Wt){Wt.component.key===Te.key&&(An=Wt)});var $n=An.component,xn=An.schema,mt=this.isParentSaveChildMethod(ge.formioComponent);return fe&&!mt?(fe[Le]=Gt,An&&(An.component=Gt)):mt&&ge.formioComponent.saveChildComponent(Gt),(xe.rebuild()||a.default.resolve()).then(function(){De.emitSaveComponentEvent(fe?fe[Le]:An?An.schema:[],$n,xe.schema,Oe,Le,Ce,xn),De.emit("change",De.form),De.highlightInvalidComponents(),De.isComponentCreated&&(De.moveComponent(ge.formioComponent.components[0]),De.isComponentCreated=!1)})}return this.highlightInvalidComponents(),a.default.resolve()}},{key:"emitSaveComponentEvent",value:function(_e,ge,Ce,Te,De,fe,xe){this.emit("saveComponent",_e,ge,Ce,Te,De,fe,xe)}},{key:"attachEditComponentControls",value:function(_e,ge,Ce,Te,De){var fe=this;this.componentEdit.querySelectorAll('[ref="cancelButton"]').forEach(function(Ut){fe.editForm.addEventListener(Ut,"click",function(An){An.preventDefault(),fe.editForm.detach(),fe.emit("cancelComponent",_e),fe.dialog.close(),fe.highlightInvalidComponents()})}),this.componentEdit.querySelectorAll('[ref="removeButton"]').forEach(function(Ut){fe.editForm.addEventListener(Ut,"click",function(An){An.preventDefault(),fe.saved=!0,fe.editForm.detach(),fe.removeComponent(_e,ge,Te),fe.dialog.close(),fe.highlightInvalidComponents()})}),this.componentEdit.querySelectorAll('[ref="saveButton"]').forEach(function(Ut){fe.editForm.addEventListener(Ut,"click",function(An){if(An.preventDefault(),!fe.editForm.checkValidity(fe.editForm.data,!0,fe.editForm.data))return fe.editForm.setPristine(!1),fe.editForm.showErrors(),!1;fe.saved=!0,fe.saveComponent(_e,ge,Ce,Te)})}),this.componentEdit.querySelectorAll('[ref="previewButton"]').forEach(function(Ut){fe.editForm.addEventListener(Ut,"click",function(An){An.preventDefault(),fe.showPreview=!fe.showPreview,fe.editForm.detach(),fe.setContent(fe.componentEdit,fe.renderTemplate("builderEditForm",{componentInfo:De.builderInfo,editForm:fe.editForm.render(),preview:!!fe.preview&&fe.preview.render(),showPreview:fe.showPreview,helplinks:fe.helplinks})),fe.editForm.attach(fe.componentEdit.querySelector('[ref="editForm"]')),fe.attachEditComponentControls(_e,ge,Ce,Te,De)})})}},{key:"editComponent",value:function(_e,ge,Ce,Te,De){var fe,xe=this,Oe=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(_e.key){this.saved=!1;var Le=(0,d.fastCloneDeep)(_e),Gt=l.default.components[Le.type],Ut=void 0===Gt;Te=Te||Ut,Gt=Ut?l.default.components.unknown:Gt,this.dialog&&(this.dialog.close(),this.highlightInvalidComponents());var An=_.default.clone(_.default.get(this,"options.editForm",{}));this.editForm&&this.editForm.destroy();var $n=_.default.get(this.options,"editForm.".concat(Le.type),{});An.editForm=this.form,An.editComponent=_e,An.flags=Oe,this.hook("editComponentParentInstance",An,ge),this.editForm=new e.default(b(b({},_.default.omit(this.options,["hooks","builder","events","attachMode","skipInit"])),{},{language:this.options.language},An)),this.hook("editFormProperties",ge),this.editForm.form=Te&&!Ut?{components:[{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"componentJson",label:"Component JSON",tooltip:"Edit the JSON for this component."},{type:"checkbox",key:"showFullSchema",label:"Full Schema"}]}:Gt.editForm(_.default.cloneDeep($n));var xn={inFormBuilder:!0};this.hook("instanceOptionsPreview",xn);var mt=new Gt(Le,xn),ut=this.hook("builderComponentSchema",_e,mt);this.editForm.submission=Te?{data:{componentJson:ut,showFullSchema:this.options.showFullJsonSchema}}:{data:mt.component},this.preview&&this.preview.destroy(),(!Gt.builderInfo.hasOwnProperty("preview")||Gt.builderInfo.preview)&&(this.preview=new e.default(_.default.omit(b(b({},this.options),{},{preview:!0}),["hooks","builder","events","attachMode","calculateValue"])),this.hook("previewFormSettitngs",ut,Te)),this.showPreview=null===(fe=Gt.builderInfo.showPreview)||void 0===fe||fe,this.componentEdit=this.ce("div",{class:"component-edit-container"}),this.setContent(this.componentEdit,this.renderTemplate("builderEditForm",{componentInfo:Gt.builderInfo,editForm:this.editForm.render(),preview:!!this.preview&&this.preview.render(),showPreview:this.showPreview,helplinks:this.helplinks})),this.dialog=this.createModal(this.componentEdit,_.default.get(this.options,"dialogAttr",{})),this.editForm.attach(this.componentEdit.querySelector('[ref="editForm"]')),this.hook("editFormWrapper"),this.updateComponent(Le),this.editForm.on("change",function(dn){if(dn.changed){if(dn.changed.component&&"showFullSchema"===dn.changed.component.key){var sn=dn.changed.value;return void(xe.editForm.submission={data:{componentJson:sn?mt.component:_e,showFullSchema:sn}})}(dn.changed.component&&"key"===dn.changed.component.key||Te)&&(Le.keyModified=!0);var fn=!1;if(dn.changed.instance?fn=["label","title"].includes(dn.changed.instance.path):dn.changed.component&&(fn=["label","title"].includes(dn.changed.component.key)),fn&&Ce&&(dn.data.keyModified||xe.editForm.everyComponent(function(nn){if("key"===nn.key&&"tabs"===nn.parent.component.key)return nn.setValue(xe.updateComponentKey(dn.data)),!1}),xe.form)){var yi=xe.findNamespaceRoot(ge.formioComponent);yi=yi.filter(function(nn){return An.editComponent.id!==nn.id}),A.default.uniquify(yi,dn.data)}xe.updateComponent(dn.data.componentJson||dn.data,dn.changed)}}),this.attachEditComponentControls(_e,ge,Ce,De,Gt),this.addEventListener(this.dialog,"close",function dn(){xe.editForm.destroy(!0),xe.preview&&(xe.preview.destroy(!0),xe.preview=null),Ce&&!xe.saved&&(xe.removeComponent(_e,ge,De),xe.highlightInvalidComponents()),xe.removeEventListener(xe.dialog,"close",dn),xe.dialog=null}),this.emit("editComponent",_e)}}},{key:"updateComponentKey",value:function(_e){return _.default.camelCase(_e.title||_e.label||_e.placeholder||_e.type).replace(/^[0-9]*/,"")}},{key:"moveComponent",value:function(_e){var ge;this.selectedComponent&&(null===(ge=this.selectedComponent.element)||void 0===ge||ge.classList.remove("builder-component-selected"),this.removeEventListener(document,"keydown")),_e.element.focus(),_e.element.classList.add("builder-component-selected"),this.selectedComponent=_e,this.addEventListener(document,"keydown",this.moveHandler.bind(this))}},{key:"updateComponentPlacement",value:function(_e){var Ce,Te,ge=this.selectedComponent,De=_e?-1:1;if(ge){var fe=ge.element,xe=_e?fe.previousElementSibling:fe.nextElementSibling,Oe=fe.parentNode,Le=Oe.formioContainer.length;if(Le&&Le<=1)return;Oe.formioContainer&&-1!==(Ce=_.default.findIndex(Oe.formioContainer,{key:fe.formioComponent.component.key}))&&(Te=(Te=Oe.formioContainer.splice(_.default.findIndex(Oe.formioContainer,{key:fe.formioComponent.component.key}),1))[0],Oe.removeChild(fe));var Gt=Oe.formioComponent.components.length;if(-1===(Ce=-1===Ce?0:Ce+De))Oe.formioContainer.push(Te),Oe.appendChild(fe);else if(Ce===Gt){Ce=_.default.findIndex(Oe.formioComponent.components,{key:Oe.formioContainer[0].key});var An=Oe.formioComponent.components[Ce].element;Oe.formioContainer.splice(0,0,Te),Oe.insertBefore(fe,An)}else-1!==Ce&&(Oe.formioContainer.splice(Ce,0,Te),Oe.insertBefore(fe,_e?xe:xe.nextElementSibling));fe.focus()}}},{key:"stopMoving",value:function(_e){var ge=_e.element.parentNode;this.removeEventListener(document,"keydown"),ge.formioComponent.rebuild(),this.selectedComponent=null}},{key:"addNewComponent",value:function(_e){var ge,Oe,Ce=this,Te=document.querySelector(".formio-builder-form"),De=_e.getAttribute("data-key"),fe=_e.getAttribute("data-group");De&&fe&&(Oe=this.getComponentInfo(De,fe)),!this.options.noNewEdit&&!Oe.noNewEdit&&(A.default.uniquify(this.findNamespaceRoot(Te.formioComponent),Oe),this.editComponent(Oe,Te,!0,null,null)),(null===(ge=Te.formioComponent.components[0])||void 0===ge?void 0:ge.element)?Te.formioContainer.splice(0,0,Oe):Te.formioContainer.push(Oe),Te.formioComponent.rebuild().then(function(){Ce.isComponentCreated=!0})}},{key:"copyComponent",value:function(_e){if(!window.sessionStorage)return console.warn("Session storage is not supported in this browser.");this.addClass(this.refs.form,"builder-paste-mode"),window.sessionStorage.setItem("formio.clipboard",JSON.stringify(_e.schema))}},{key:"pasteComponent",value:function(_e){if(!window.sessionStorage)return console.warn("Session storage is not supported in this browser.");if(this.removeClass(this.refs.form,"builder-paste-mode"),window.sessionStorage){var ge=window.sessionStorage.getItem("formio.clipboard");if(ge){var Ce=JSON.parse(ge),Te=this.getParentElement(_e.element);if(Te){A.default.uniquify(this.findNamespaceRoot(Te.formioComponent),Ce);var De="",fe=0,xe=this.isParentSaveChildMethod(Te.formioComponent);Te.formioContainer&&!xe?(fe=Te.formioContainer.indexOf(_e.component),De=this.getComponentsPath(Ce,Te.formioComponent.component),Te.formioContainer.splice(fe+1,0,Ce)):xe&&Te.formioComponent.saveChildComponent(Ce,!1),Te.formioComponent.rebuild(),this.emitSaveComponentEvent(Ce,Ce,Te.formioComponent.component,De,fe+1,!0,Ce)}this.emit("change",this.form)}}}},{key:"isParentSaveChildMethod",value:function(_e){return!(!_e||!_e.saveChildComponent)}},{key:"getParentElement",value:function(_e){var ge=_e;do{ge=ge.parentNode}while(ge&&!ge.formioComponent);return ge}},{key:"addBuilderComponentInfo",value:function(_e){if(_e&&_e.group&&this.groups[_e.group]){_e=_.default.clone(_e);var ge=this.groups[_e.group];return ge.components.hasOwnProperty(_e.key)||(ge.components[_e.key]=_e),_e}}},{key:"init",value:function(){return this.webform&&this.webform.init(),F(J(se.prototype),"init",this).call(this)}},{key:"clear",value:function(){this.webform.initialized&&this.webform.clear()}},{key:"destroy",value:function(_e){this.webform.initialized&&this.webform.destroy(_e),F(J(se.prototype),"destroy",this).call(this,_e)}},{key:"addBuilderGroup",value:function(_e,ge){this.groups[_e]?this.updateBuilderGroup(_e,ge):(this.groups[_e]=ge,this.groupOrder.push(_e),this.triggerRedraw())}},{key:"updateBuilderGroup",value:function(_e,ge){this.groups[_e]&&(this.groups[_e]=ge,this.triggerRedraw())}},{key:"generateKey",value:function(_e){return _e.key||_.default.camelCase(_e.title||_e.label||_e.placeholder||_e.type)}}]),se}(n.default)},78739:(he,y,i)=>{"use strict";function e(de){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(te){return typeof te}:function(te){return te&&"function"==typeof Symbol&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te})(de)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(99474),i(35082),i(63975),i(84254),i(752),i(21694),i(76265),i(77049),i(89730),i(64043),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(38077),i(60228),i(76801),i(43843),i(49693),i(47522),i(25728),i(34284),i(50886),i(69358),i(34338),i(41517),i(39772),i(32320),i(278),i(5399),i(88052);var n=d(i(73808)),o=d(i(6990)),a=d(i(27903)),l=i(55798),u=i(12866);function d(de){return de&&de.__esModule?de:{default:de}}function R(de){return function w(de){if(Array.isArray(de))return g(de)}(de)||function k(de){if(typeof Symbol<"u"&&null!=de[Symbol.iterator]||null!=de["@@iterator"])return Array.from(de)}(de)||f(de)||function x(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(de,te){if(de){if("string"==typeof de)return g(de,te);var j=Object.prototype.toString.call(de).slice(8,-1);if("Object"===j&&de.constructor&&(j=de.constructor.name),"Map"===j||"Set"===j)return Array.from(de);if("Arguments"===j||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j))return g(de,te)}}function g(de,te){(null==te||te>de.length)&&(te=de.length);for(var j=0,H=new Array(te);j<te;j++)H[j]=de[j];return H}function M(de,te){var j=Object.keys(de);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(de);te&&(H=H.filter(function(z){return Object.getOwnPropertyDescriptor(de,z).enumerable})),j.push.apply(j,H)}return j}function p(de){for(var te=1;te<arguments.length;te++){var j=null!=arguments[te]?arguments[te]:{};te%2?M(Object(j),!0).forEach(function(H){E(de,H,j[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(de,Object.getOwnPropertyDescriptors(j)):M(Object(j)).forEach(function(H){Object.defineProperty(de,H,Object.getOwnPropertyDescriptor(j,H))})}return de}function E(de,te,j){return(te=D(te))in de?Object.defineProperty(de,te,{value:j,enumerable:!0,configurable:!0,writable:!0}):de[te]=j,de}function I(de,te){for(var j=0;j<te.length;j++){var H=te[j];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(de,D(H.key),H)}}function D(de){var te=function F(de,te){if("object"!==e(de)||null===de)return de;var j=de[Symbol.toPrimitive];if(void 0!==j){var H=j.call(de,te||"default");if("object"!==e(H))return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===te?String:Number)(de)}(de,"string");return"symbol"===e(te)?te:String(te)}function P(){return P=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(te,j,H){var z=function O(de,te){for(;!Object.prototype.hasOwnProperty.call(de,te)&&null!==(de=Q(de)););return de}(te,j);if(z){var q=Object.getOwnPropertyDescriptor(z,j);return q.get?q.get.call(arguments.length<3?te:H):q.value}},P.apply(this,arguments)}function V(de,te){return(V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,z){return H.__proto__=z,H})(de,te)}function Q(de){return(Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(j){return j.__proto__||Object.getPrototypeOf(j)})(de)}var re=function(de){!function U(de,te){if("function"!=typeof te&&null!==te)throw new TypeError("Super expression must either be null or a function");de.prototype=Object.create(te&&te.prototype,{constructor:{value:de,writable:!0,configurable:!0}}),Object.defineProperty(de,"prototype",{writable:!1}),te&&V(de,te)}(j,de);var te=function K(de){var te=function J(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var z,H=Q(de);if(te){var q=Q(this).constructor;z=Reflect.construct(H,arguments,q)}else z=H.apply(this,arguments);return function X(de,te){if(te&&("object"===e(te)||"function"==typeof te))return te;if(void 0!==te)throw new TypeError("Derived constructors may only return object or undefined");return function me(de){if(void 0===de)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de}(de)}(this,z)}}(j);function j(){var H,z,q;return function b(de,te){if(!(de instanceof te))throw new TypeError("Cannot call a class as a function")}(this,j),arguments[0]instanceof HTMLElement||arguments[1]?(z=arguments[0],q=arguments[1]||{}):q=arguments[0]||{},q.display="wizard",(H=te.call(this,z,q)).pages=[],H.prefixComps=[],H.suffixComps=[],H.components=[],H.originalComponents=[],H.page=0,H.currentPanel=null,H.currentPanels=null,H.currentNextPage=0,H._seenPages=[0],H.subWizards=[],H.allPages=[],H.lastPromise=n.default.resolve(),H.enabledIndex=0,H.editMode=!1,H.originalOptions=o.default.cloneDeep(H.options),H}return function L(de,te,j){te&&I(de.prototype,te),j&&I(de,j),Object.defineProperty(de,"prototype",{writable:!1})}(j,[{key:"isLastPage",value:function(){var z=this.getNextPage();return o.default.isNumber(z)?-1===z:o.default.isNull(z)}},{key:"getPages",value:function(){var z=this,se=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).all;return(this.hasExtraPages?this.components:this.pages).filter(void 0!==se&&se?o.default.identity:function(Ce,Te){return z._seenPages.includes(Te)})}},{key:"hasExtraPages",get:function(){return!o.default.isEmpty(this.subWizards)}},{key:"data",get:function(){return P(Q(j.prototype),"data",this)},set:function(z){var q=this;this._data=z,o.default.each(this.getPages({all:!0}),function(se){se.data=q.componentContext(se)})}},{key:"localData",get:function(){var z,q;return(null===(z=this.pages[this.page])||void 0===z||null===(q=z.root)||void 0===q?void 0:q.submission.data)||this.submission.data}},{key:"checkConditions",value:function(z,q,se){var ne=P(Q(j.prototype),"checkConditions",this).call(this,z,q,se);return this.establishPages(z),ne}},{key:"getComponents",value:function(){return this.submitting?this.getPages({all:this.isLastPage()}):P(Q(j.prototype),"getComponents",this).call(this)}},{key:"resetValue",value:function(){this.getPages({all:!0}).forEach(function(z){return z.resetValue()}),this.setPristine(!0)}},{key:"init",value:function(){var z,se,ne,q=this;this.options.buttonSettings=o.default.defaults(this.options.buttonSettings,{showPrevious:!0,showNext:!0,showSubmit:!0,showCancel:!this.options.readOnly}),this.isSecondInit||(this.isClickableDefined=null===(se=this.options)||void 0===se||null===(ne=se.breadcrumbSettings)||void 0===ne?void 0:ne.hasOwnProperty("clickable"),this.isSecondInit=!0),this.options.breadcrumbSettings=o.default.defaults(this.options.breadcrumbSettings,{clickable:!0}),this.options.allowPrevious=this.options.allowPrevious||!1,this.page=0;var _e=P(Q(j.prototype),"init",this).call(this);return this.setComponentSchema(),null!==(z=this.pages)&&void 0!==z&&z[this.page]&&(this.component=this.pages[this.page].component),this.on("subWizardsUpdated",function(ge){var Ce=q.subWizards.find(function(Te){var De;return ge?.id&&(null===(De=Te.subForm)||void 0===De?void 0:De.id)===ge?.id});q.subWizards.length&&Ce&&(Ce.subForm.setValue(ge._submission,{},!0),q.establishPages(),q.redraw())}),_e}},{key:"wizardKey",get:function(){return"wizard-".concat(this.id)}},{key:"wizard",get:function(){return this.form},set:function(z){this.setForm(z)}},{key:"buttons",get:function(){var z=this,q={};return[{name:"cancel",method:"cancel"},{name:"previous",method:"prevPage"},{name:"next",method:"nextPage"},{name:"submit",method:"submit"}].forEach(function(se){z.hasButton(se.name)&&(q[se.name]=se)}),q}},{key:"buttonOrder",get:function(){var z,q,se;return null!==(z=null===(q=this.options.properties)||void 0===q||null===(se=q.wizardButtonOrder)||void 0===se?void 0:se.toLowerCase().split(", "))&&void 0!==z?z:["cancel","previous","next","submit"]}},{key:"renderContext",get:function(){var z,q;return{disableWizardSubmit:this.form.disableWizardSubmit,wizardKey:this.wizardKey,isBreadcrumbClickable:this.isBreadcrumbClickable(),isSubForm:!!this.parent&&"wizard"===!(null!==(z=this.root)&&void 0!==z&&null!==(q=z.component)&&void 0!==q&&q.type),panels:this.allPages.length?this.allPages.map(function(se){return se.component}):this.pages.map(function(se){return se.component}),buttons:this.buttons,currentPage:this.page,buttonOrder:this.buttonOrder}}},{key:"prepareNavigationSettings",value:function(z){var q=this.currentPanel;return q&&q.buttonSettings&&Object.keys(q.buttonSettings).forEach(function(){Object.keys(z.buttons).forEach(function(se){(typeof q.buttonSettings[se]<"u"&&!q.buttonSettings[se]||z.isSubForm)&&(z.buttons[se]=null)})}),this.renderTemplate("wizardNav",z)}},{key:"prepareHeaderSettings",value:function(z,q){return this.currentPanel&&"none"===this.currentPanel.breadcrumb||z.isSubForm?null:this.renderTemplate(q,z)}},{key:"render",value:function(){var z=this,q=this.renderContext;this.component.key&&q.panels.map(function(Ce){Ce.key===z.component.key&&(z.currentPanel=Ce,q.wizardPageTooltip=z.getFormattedTooltip(Ce.tooltip))});var se=this.prepareNavigationSettings(q),ne="wizardHeader".concat(o.default.get(this.form,"settings.wizardHeaderType","")),_e=o.default.get(this.form,"settings.wizardHeaderLocation","left"),ge=this.prepareHeaderSettings(q,ne);return this.renderTemplate("wizard",p(p({},q),{},{className:P(Q(j.prototype),"getClassName",this).call(this),wizardHeader:ge,wizardHeaderType:ne,wizardHeaderLocation:_e,wizardNav:se,components:this.renderComponents([].concat(R(this.prefixComps),R(this.currentPage.components),R(this.suffixComps)))}),this.builderMode?"builder":"form")}},{key:"redrawNavigation",value:function(){if(this.element){var q,z=this.element.querySelector("#".concat(this.wizardKey,"-nav"));z&&(this.detachNav(),z.outerHTML=this.renderTemplate("wizardNav",this.renderContext),z=this.element.querySelector("#".concat(this.wizardKey,"-nav")),this.loadRefs(z,(E(q={},"".concat(this.wizardKey,"-cancel"),"single"),E(q,"".concat(this.wizardKey,"-previous"),"single"),E(q,"".concat(this.wizardKey,"-next"),"single"),E(q,"".concat(this.wizardKey,"-submit"),"single"),q)),this.attachNav())}}},{key:"redrawHeader",value:function(){if(this.element){var q,z=this.element.querySelector("#".concat(this.wizardKey,"-header"));z&&(this.detachHeader(),z.outerHTML=this.renderTemplate("wizardHeader".concat(o.default.get(this.form,"settings.wizardHeaderType","")),this.renderContext),z=this.element.querySelector("#".concat(this.wizardKey,"-header")),this.loadRefs(z,(E(q={},"".concat(this.wizardKey,"-link"),"multiple"),E(q,"".concat(this.wizardKey,"-tooltip"),"multiple"),q)),this.attachHeader())}}},{key:"attach",value:function(z){var q,ne,se=this;this.element=z,this.loadRefs(z,(E(q={},this.wizardKey,"single"),E(q,"".concat(this.wizardKey,"-header"),"single"),E(q,"".concat(this.wizardKey,"-cancel"),"single"),E(q,"".concat(this.wizardKey,"-previous"),"single"),E(q,"".concat(this.wizardKey,"-next"),"single"),E(q,"".concat(this.wizardKey,"-submit"),"single"),E(q,"".concat(this.wizardKey,"-link"),"multiple"),E(q,"".concat(this.wizardKey,"-tooltip"),"multiple"),q)),!this.options.readOnly&&!this.editMode||this.enabledIndex||(this.enabledIndex=(null===(ne=this.pages)||void 0===ne?void 0:ne.length)-1),this.hook("attachWebform",z,this);var _e=this.attachComponents(this.refs[this.wizardKey],[].concat(R(this.prefixComps),R(this.currentPage.components),R(this.suffixComps)));return this.attachNav(),this.attachHeader(),_e.then(function(){se.emit("render",{component:se.currentPage,page:se.page}),se.component.scrollToTop&&se.scrollPageToTop()})}},{key:"scrollPageToTop",value:function(){var z,q=null!==(z=this.refs["".concat(this.wizardKey,"-header")])&&void 0!==z?z:this.refs[this.wizardKey];q&&("scrollIntoView"in q?q.scrollIntoView(!0):this.scrollIntoView(q))}},{key:"isBreadcrumbClickable",value:function(){var z=this,q=null;return this.pages.map(function(se){o.default.isEqual(z.currentPage.component,se.component)&&(q=se)}),this.isClickableDefined?this.options.breadcrumbSettings.clickable:o.default.get(q,"component.breadcrumbClickable",!0)}},{key:"isAllowPrevious",value:function(){var z=this,q=null;return this.pages.map(function(se){o.default.isEqual(z.currentPage.component,se.component)&&(q=se)}),o.default.get(q.component,"allowPrevious",this.options.allowPrevious)}},{key:"handleNaviageteOnEnter",value:function(z){if(13===z.keyCode){var q=new CustomEvent("click"),se=this.refs["".concat(this.wizardKey,"-").concat(this.buttons.next.name)];se&&se.dispatchEvent(q)}}},{key:"handleSaveOnEnter",value:function(z){if(13===z.keyCode){var q=new CustomEvent("click"),se=this.refs["".concat(this.wizardKey,"-").concat(this.buttons.submit.name)];se&&se.dispatchEvent(q)}}},{key:"attachNav",value:function(){var z=this;this.component.navigateOnEnter&&this.addEventListener(document,"keyup",this.handleNaviageteOnEnter.bind(this)),this.component.saveOnEnter&&this.addEventListener(document,"keyup",this.handleSaveOnEnter.bind(this)),o.default.each(this.buttons,function(q){var se=z.refs["".concat(z.wizardKey,"-").concat(q.name)];z.addEventListener(se,"click",function(ne){ne.preventDefault(),se.setAttribute("disabled","disabled"),z.setLoading(se,!0),z[q.method]().then(function(){se.removeAttribute("disabled"),z.setLoading(se,!1)}).catch(function(){se.removeAttribute("disabled"),z.setLoading(se,!1)})})})}},{key:"emitWizardPageSelected",value:function(z){this.emit("wizardPageSelected",this.pages[z],z)}},{key:"attachHeader",value:function(){var se,z=this,q=this.isAllowPrevious();this.attachTooltips(this.refs["".concat(this.wizardKey,"-tooltip")],this.currentPanel.tooltip),(this.isBreadcrumbClickable()||q)&&(null===(se=this.refs["".concat(this.wizardKey,"-link")])||void 0===se||se.forEach(function(ne,_e){(!q||_e<=z.enabledIndex)&&z.addEventListener(ne,"click",function(ge){return z.emit("wizardNavigationClicked",z.pages[_e]),ge.preventDefault(),z.setPage(_e).then(function(){z.emitWizardPageSelected(_e)})})}))}},{key:"detachNav",value:function(){var z=this;this.component.navigateOnEnter&&this.removeEventListener(document,"keyup",this.handleNaviageteOnEnter.bind(this)),this.component.saveOnEnter&&this.removeEventListener(document,"keyup",this.handleSaveOnEnter.bind(this)),o.default.each(this.buttons,function(q){z.removeEventListener(z.refs["".concat(z.wizardKey,"-").concat(q.name)],"click")})}},{key:"detachHeader",value:function(){var z=this;this.refs["".concat(this.wizardKey,"-link")]&&this.refs["".concat(this.wizardKey,"-link")].forEach(function(q){z.removeEventListener(q,"click")})}},{key:"transformPages",value:function(){var z=this,q=[],se=this.getSortedComponents(this),ne=[];this.allPages=[];var _e=function ge(Ce,Te){var De=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],fe=[],xe=["datagrid","editgrid","dynamicWizard"],Oe=null!=Ce&&Ce.subForm?z.getSortedComponents(Ce.subForm):Ce?.components||[],Gt=Oe.filter(function(xn){return xn._visible}).filter(function(xn){return!xe.includes(xn.component.type)&&("form"!==xn.type||xn.isNestedWizard)}),Ut=Oe.filter(function(xn){var mt;return"wizard"!==(null===(mt=xn.subForm)||void 0===mt?void 0:mt._form.display)}),An=!1;if((0,u.eachComponent)(Gt,function(xn){if(xn&&xn.component&&("panel"===xn.component.type&&null!=xn&&xn.parent.wizard&&!ge(xn,Te,!1)&&(De&&(z.setRootPanelId(xn),fe.push(xn)),An=!0),xn.isNestedWizard&&xn.subForm)){var mt=ge(xn,fe,De);An||(An=mt)}},!0),"panel"===Ce.component.type&&(!An&&De&&(z.setRootPanelId(Ce),Te.push(Ce)),An&&Ut.length)){var $n=o.default.clone(Ce);$n.components=Ut,z.setRootPanelId($n),ne.push($n)}return De&&(Te.push.apply(Te,R(ne).concat(fe)),ne=[]),An};se.forEach(function(ge){ge.visible&&_e(ge,q)},[]),this.localRoot&&this.id===this.localRoot.id&&q.forEach(function(ge,Ce){ge.eachComponent(function(Te){Te.page=Ce})}),this.allPages=q}},{key:"getSortedComponents",value:function(z){var q=z.components,se=z.originalComponents,ne=[],_e=[];return q&&q.length&&q.map(function(ge){"panel"===ge.component.type&&(_e[ge.component.key||ge.component.title]=ge)}),se?.forEach(function(ge){ge.key||(ge.key=ge.title),_e[ge.key]&&ne.push(_e[ge.key])}),ne}},{key:"findRootPanel",value:function(z){var q;return null!==(q=z.parent)&&void 0!==q&&q.parent?this.findRootPanel(z.parent):z}},{key:"setRootPanelId",value:function(z){var q;if(!z.rootPanelId||z.rootPanelId===z.id){var se=null!==(q=z.parent)&&void 0!==q&&q.parent?this.findRootPanel(z.parent):z;z.rootPanelId=se.id}}},{key:"establishPages",value:function(){var z=this,q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.data;this.pages=[],this.prefixComps=[],this.suffixComps=[];var se=[],ne={},_e=p(p({},o.default.clone(this.options)),this.parent?{root:this}:{});return this.components&&this.components.length&&this.components.forEach(function(ge){"panel"===ge.component.type&&(ne[ge.component.key||ge.component.title]=ge)}),this.originalComponents&&this.originalComponents.forEach(function(ge){if("panel"===ge.type){ge.key||(ge.key=ge.title);var Ce=ne[ge.key],Te=z.shouldForceShow(ge),De=z.shouldForceHide(ge),fe=Ce?Ce.visible:(0,u.checkCondition)(ge,q,q,z.component,z)&&!ge.hidden;Te?fe=!0:De&&(fe=!1),fe&&(se.push(ge),Ce&&z.pages.push(Ce)),!Ce&&fe&&((Ce=z.createComponent(ge,_e)).visible=fe,z.pages.push(Ce),Ce.eachComponent(function(xe){xe.page=z.pages.length-1}))}else"button"!==ge.type&&(z.pages.length?z.suffixComps.push(z.createComponent(ge,_e)):z.prefixComps.push(z.createComponent(ge,_e)))}),this.pages.length&&this.emit("pagesChanged"),this.transformPages(),this.allPages&&this.allPages.length&&this.updatePages(),se}},{key:"updatePages",value:function(){this.pages=this.allPages}},{key:"addComponents",value:function(){this.establishPages()}},{key:"setPage",value:function(z){var q=this;if(z===this.page)return n.default.resolve();if(z>=0&&z<this.pages.length){this.page=z,this.pageFieldLogic(z),this.getNextPage();var se=z;if(this.hasExtraPages){var ne=this.pages[z],_e=this.components[z];(!_e||ne?.id!==_e.id)&&(se=this.components.findIndex(function(ge){var Ce,Te;return ge.id===(null===(Ce=q.pages)||void 0===Ce||null===(Te=Ce[se])||void 0===Te?void 0:Te.rootPanelId)}))}return this._seenPages.includes(se)||(this._seenPages=this._seenPages.concat(se)),this.redraw().then(function(){q.checkData(q.submission.data)}),n.default.resolve()}return this.pages.length?n.default.reject("Page not found"):(this.redraw(),n.default.resolve())}},{key:"pageFieldLogic",value:function(z){var q;null!==(q=this.pages)&&void 0!==q&&q[z]&&(this.component=this.pages[z].component,this.originalComponent=(0,u.fastCloneDeep)(this.component),this.fieldLogic(this.data),this.disabled=this.shouldDisabled)}},{key:"currentPage",get:function(){return this.pages&&this.pages.length>=this.page?this.pages[this.page]:{components:[]}}},{key:"getNextPage",value:function(){var z;if(null!==(z=this.pages)&&void 0!==z&&z[this.page]){var se=this.pages[this.page].component;if(se){var ne=this.pages.length>this.page+1&&!this.showAllErrors?this.page+1:-1;if(se.nextPage){var _e=this.evaluate(se.nextPage,{next:ne,data:this.submission.data,page:ne,form:se},"next");if(null===_e)return this.currentNextPage=null,null;var ge=parseInt(_e,10);return!isNaN(parseInt(ge,10))&&isFinite(ge)?(this.currentNextPage=ge,ge):(this.currentNextPage=this.getPageIndexByKey(_e),this.currentNextPage)}return this.currentNextPage=ne,ne}this.currentNextPage=null}return null}},{key:"getPreviousPage",value:function(){return this.page-1}},{key:"beforeSubmit",value:function(){var z=this.getPages();return n.default.all(z.map(function(q){return q.options.beforeSubmit=!0,q.beforeSubmit()}))}},{key:"beforePage",value:function(z){var q=this;return new n.default(function(se,ne){q.hook(z?"beforeNext":"beforePrev",q.currentPage,q.submission,function(_e){_e&&(q.showErrors(_e,!0),ne(_e));var ge=q.currentPage;ge?ge.beforePage(z).then(se).catch(ne):se()})})}},{key:"emitNextPage",value:function(){this.emit("nextPage",{page:this.page,submission:this.submission})}},{key:"nextPage",value:function(){var z=this;return this.options.readOnly?this.beforePage(!0).then(function(){return z.setPage(z.getNextPage()).then(function(){z.emitNextPage()})}):this.checkValidity(this.localData,!0,this.localData,!0)?(this.checkData(this.submission.data),this.beforePage(!0).then(function(){return z.setPage(z.getNextPage()).then(function(){!(z.options.readOnly||z.editMode)&&z.enabledIndex<z.page&&(z.enabledIndex=z.page,z.redraw()),z.emitNextPage()})})):(this.currentPage.components.forEach(function(q){return q.setPristine(!1)}),this.scrollIntoView(this.element),n.default.reject(this.showErrors([],!0)))}},{key:"emitPrevPage",value:function(){this.emit("prevPage",{page:this.page,submission:this.submission})}},{key:"prevPage",value:function(){var z=this;return this.beforePage().then(function(){return z.setPage(z.getPreviousPage()).then(function(){z.emitPrevPage()})})}},{key:"cancel",value:function(z){var q=this;return this.options.readOnly?n.default.resolve():P(Q(j.prototype),"cancel",this).call(this,z)?(this.setPristine(!0),this.setPage(0).then(function(){return q.enabledIndex&&(q.enabledIndex=0),q.onChange(),q.redraw(),q.page})):n.default.resolve()}},{key:"getPageIndexByKey",value:function(z){var q=this.page;return this.pages.forEach(function(se,ne){if(se.component.key===z)return q=ne,!1}),q}},{key:"schema",get:function(){return this.wizard}},{key:"setComponentSchema",value:function(){var z=this,q={};if(this.originalComponents=[],this.component.components.map(function(ne){"panel"===ne.type&&(ne.key=(0,u.uniqueKey)(q,ne.key||"panel"),q[ne.key]=!0,z.wizard.full?(z.options.show=z.options.show||{},z.options.show[ne.key]=!0):z.wizard.hasOwnProperty("full")&&!o.default.isEqual(z.originalOptions.show,z.options.show)&&(z.options.show=p({},z.originalOptions.show||{}))),z.originalComponents.push(o.default.clone(ne))}),!Object.keys(q).length){var se={type:"panel",title:"Page 1",label:"Page 1",key:"page1",components:this.component.components};this.component.components=[se],this.originalComponents.push(o.default.clone(se))}}},{key:"setForm",value:function(z,q){if(z)return P(Q(j.prototype),"setForm",this).call(this,z,q)}},{key:"onSetForm",value:function(z,q){this.component.components=(this._parentPath?q.components:z.components)||[],this.setComponentSchema()}},{key:"setEditMode",value:function(z){!this.editMode&&z._id&&!this.options.readOnly&&(this.editMode=!0,this.redraw())}},{key:"setValue",value:function(z){var q=this,se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ne=arguments.length>2?arguments[2]:void 0;this._submission=z,(se&&se.fromSubmission&&(this.options.readOnly||this.editMode)&&!this.isHtmlRenderMode()||se&&se.fromSubmission&&(this.prefixComps.length||this.suffixComps.length)&&z._id||this.options.server&&(this.prefixComps.length||this.suffixComps.length))&&(this._data=z.data),ne||this.establishPages(z.data);var _e=this.getPages({all:!0}).reduce(function(ge,Ce){return q.setNestedValue(Ce,z.data,se,ge)||ge},!1);return _e&&this.pageFieldLogic(this.page),this.setEditMode(z),_e}},{key:"isClickable",value:function(z,q){return this.page!==q&&(0,u.firstNonNil)([o.default.get(z,"breadcrumbClickable"),this.options.breadcrumbSettings.clickable])}},{key:"hasButton",value:function(z){var q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getNextPage(),se=o.default.get(this.currentPage,"component.buttonSettings",{}),ne=se.previous,_e=void 0===ne?this.options.buttonSettings.showPrevious:ne,ge=se.cancel,Ce=void 0===ge?this.options.buttonSettings.showCancel:ge,Te=se.submit,De=void 0===Te?this.options.buttonSettings.showSubmit:Te,fe=se.next,xe=void 0===fe?this.options.buttonSettings.showNext:fe;switch(z){case"previous":return _e&&this.getPreviousPage()>-1;case"next":return xe&&null!==q&&-1!==q;case"cancel":return Ce&&!this.options.readOnly;case"submit":return De&&!this.options.readOnly&&(null===q||this.page===this.pages.length-1);default:return!0}}},{key:"pageId",value:function(z){return z.key?"".concat(z.key,"-").concat(z.title):z.components&&z.components.length>0?this.pageId(z.components[0]):z.title}},{key:"onChange",value:function(z,q,se,ne){var _e=this;P(Q(j.prototype),"onChange",this).call(this,z,q,se,ne),this.alert&&!this.submitted&&(this.checkValidity(this.localData,!1,this.localData,!0),this.showErrors([],!0,!0));var ge,Ce,De,fe,Te=this.currentNextPage;this.hasExtraPages?(ge=this.pages.map(function(xe){return xe.component.key}),this.establishPages(),Ce=this.pages.map(function(xe){return xe.component.key})):(ge=this.currentPanels||this.pages.map(function(xe){return xe.component.key}),Ce=this.establishPages().map(function(xe){return xe.key}),this.currentPanels=Ce,null!==(De=this.currentPanel)&&void 0!==De&&De.key&&null!==(fe=this.currentPanels)&&void 0!==fe&&fe.length&&this.setPage(this.currentPanels.findIndex(function(xe){return xe===_e.currentPanel.key}))),(!o.default.isEqual(Ce,ge)||z&&z.fromSubmission)&&this.redrawHeader(),Te!==this.getNextPage()&&this.redrawNavigation(),this.options.readOnly&&(this.prefixComps.length||this.suffixComps.length)&&this.redraw()}},{key:"redraw",value:function(){var z,q;return null!==(z=this.parent)&&void 0!==z&&null!==(q=z.component)&&void 0!==q&&q.modalEdit?this.parent.redraw():P(Q(j.prototype),"redraw",this).call(this)}},{key:"checkValidity",value:function(z,q,se,ne){return this.checkCondition(se,z)?(!ne||this.isLastPage()?this.getComponents():this.currentPage.components).reduce(function(ge,Ce){return Ce.checkValidity(z,q,se)&&ge},!0):(this.setCustomValidity(""),!0)}},{key:"errors",get:function(){return this.isLastPage()?P(Q(j.prototype),"errors",this):this.currentPage.errors}},{key:"focusOnComponent",value:function(z){var q=this,se=0,ge=function s(de,te){return function C(de){if(Array.isArray(de))return de}(de)||function _(de,te){var j=null==de?null:typeof Symbol<"u"&&de[Symbol.iterator]||de["@@iterator"];if(null!=j){var H,z,q,se,ne=[],_e=!0,ge=!1;try{if(q=(j=j.call(de)).next,0===te){if(Object(j)!==j)return;_e=!1}else for(;!(_e=(H=q.call(j)).done)&&(ne.push(H.value),ne.length!==te);_e=!0);}catch(Ce){ge=!0,z=Ce}finally{try{if(!_e&&null!=j.return&&(se=j.return(),Object(se)!==se))return}finally{if(ge)throw z}}return ne}}(de,te)||f(de,te)||function A(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.pages.filter(function(Ce,Te){var De=!1;return Ce.getComponent(z,function(fe){fe.path===z&&(se=Te,De=!0)}),De}),1)[0];return ge&&ge!==this.currentPage?this.setPage(se).then(function(){q.checkValidity(q.submission.data,!0,q.submission.data),q.showErrors(),P(Q(j.prototype),"focusOnComponent",q).call(q,z)}):P(Q(j.prototype),"focusOnComponent",this).call(this,z)}}]),j}(a.default);y.default=re,re.setBaseUrl=l.GlobalFormio.setBaseUrl,re.setApiUrl=l.GlobalFormio.setApiUrl,re.setAppUrl=l.GlobalFormio.setAppUrl},385:(he,y,i)=>{"use strict";function e(D){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(F){return typeof F}:function(F){return F&&"function"==typeof Symbol&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F})(D)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(50886),i(76801),i(43843),i(97195),i(39772),i(65137),i(38077),i(60228),i(69358),i(63975),i(49693),i(47522),i(41517),i(62506),i(25728),i(5399),i(88052);var I,n=d(i(6037)),o=d(i(27903)),a=d(i(24845)),l=d(i(6990)),u=i(12866);function d(D){return D&&D.__esModule?D:{default:D}}function A(D,F){for(var P=0;P<F.length;P++){var O=F[P];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(D,C(O.key),O)}}function C(D){var F=function R(D,F){if("object"!==e(D)||null===D)return D;var P=D[Symbol.toPrimitive];if(void 0!==P){var O=P.call(D,F||"default");if("object"!==e(O))return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===F?String:Number)(D)}(D,"string");return"symbol"===e(F)?F:String(F)}function x(){return x=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(F,P,O){var U=function f(D,F){for(;!Object.prototype.hasOwnProperty.call(D,F)&&null!==(D=b(D)););return D}(F,P);if(U){var V=Object.getOwnPropertyDescriptor(U,P);return V.get?V.get.call(arguments.length<3?F:O):V.value}},x.apply(this,arguments)}function w(D,F){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(O,U){return O.__proto__=U,O})(D,F)}function b(D){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(P){return P.__proto__||Object.getPrototypeOf(P)})(D)}typeof window<"u"&&(I=i(6875)),y.default=function(D){!function k(D,F){if("function"!=typeof F&&null!==F)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(F&&F.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),F&&w(D,F)}(P,D);var F=function g(D){var F=function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var U,O=b(D);if(F){var V=b(this).constructor;U=Reflect.construct(O,arguments,V)}else U=O.apply(this,arguments);return function M(D,F){if(F&&("object"===e(F)||"function"==typeof F))return F;if(void 0!==F)throw new TypeError("Derived constructors may only return object or undefined");return function p(D){if(void 0===D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}(D)}(this,U)}}(P);function P(){var O,U,V;!function s(D,F){if(!(D instanceof F))throw new TypeError("Cannot call a class as a function")}(this,P),arguments[0]instanceof HTMLElement||arguments[1]?(U=arguments[0],V=arguments[1]):V=arguments[0],V.skipInit=!1,V.display="wizard",(O=F.call(this,U,V))._form={components:[O.getPageConfig(1)]},O.page=0;var K=function(re){O.groups[re]&&O.groups[re].components&&(O.groups[re].componentOrder=Object.keys(O.groups[re].components).map(function(de){return O.groups[re].components[de]}).filter(function(de){return de&&!de.ignore}).sort(function(de,te){return de.weight-te.weight}).map(function(de){return de.key}))};for(var X in O.groups)K(X);var me=O.options.hooks.renderComponents;O.options.hooks.renderComponents=function(Q,re){var te=re.self;return"form"!==te.type||te.root?me(Q,{components:re.components,self:te}):Q};var J=O.options.hooks.attachComponents;return O.options.hooks.attachComponents=function(Q,re,de,te){return"form"!==te.type||te.root?J(Q,re,de,te):Q},O.on("saveComponent",function(Q,re){var de=O.webform.components.map(function(j){return j.component});if(O._form.components.includes(re))O._form.components[O._form.components.indexOf(re)]=Q,O.rebuild();else if(de.includes(re))O._form.components.push(Q),O.rebuild();else{var te=O._form.components.findIndex(function(j){return re.key===j.key});-1!==te&&(O._form.components[te]=Q,O.rebuild())}},!0),O}return function _(D,F,P){F&&A(D.prototype,F),P&&A(D,P),Object.defineProperty(D,"prototype",{writable:!1})}(P,[{key:"removeComponent",value:function(U,V,K){var X=x(b(P.prototype),"removeComponent",this).call(this,U,V,K);if(X&&"panel"===U.type){var me=this.pages.findIndex(function(Q){return Q.key===U.key}),J=this._form.components.findIndex(function(Q){return Q.key===U.key});-1!==me&&this.removePage(me,J)}return X}},{key:"allowDrop",value:function(U){return!(this.webform&&this.webform.refs&&this.webform.refs.webform===U)}},{key:"pages",get:function(){return l.default.filter(this._form.components,{type:"panel"})}},{key:"currentPage",get:function(){var U=this.pages;return U&&U.length>=this.page?U[this.page]:null}},{key:"form",get:function(){return this._form},set:function(U){if(this._form=U,(!this._form.components||!Array.isArray(this._form.components))&&(this._form.components=[]),0===this.pages.length){var V=this._form.components.filter(function(K){return"button"!==K.type});this._form.components=[this.getPageConfig(1,V)]}this.rebuild()}},{key:"schema",get:function(){l.default.assign(this.currentPage,this.webform._form.components[0]);var U=new o.default(this.options);return U.setForm(this._form,{noEmit:!0}),U.schema}},{key:"render",value:function(){var U=this;return this.renderTemplate("builderWizard",{sidebar:this.renderTemplate("builderSidebar",{scrollEnabled:this.sideBarScroll,groupOrder:this.groupOrder,groupId:"builder-sidebar-".concat(this.id),groups:this.groupOrder.map(function(V){return U.renderTemplate("builderSidebarGroup",{group:U.groups[V],groupKey:V,groupId:"builder-sidebar-".concat(U.id),subgroups:U.groups[V].subgroups.map(function(K){return U.renderTemplate("builderSidebarGroup",{group:K,groupKey:K.key,groupId:"group-container-".concat(V),subgroups:[]})})})})}),pages:this.pages,form:this.webform.render()})}},{key:"attach",value:function(U){var V=this;return this.loadRefs(U,{addPage:"multiple",gotoPage:"multiple"}),this.refs.gotoPage.forEach(function(K,X){K.parentNode.dragInfo={index:X}}),I&&(this.navigationDragula=I([this.element.querySelector(".wizard-pages")],{moves:function(X){return!X.classList.contains("wizard-add-page")},accepts:function(X,me,J,Q){return!!Q}}).on("drop",this.onReorder.bind(this))),this.refs.addPage.forEach(function(K){V.addEventListener(K,"click",function(X){X.preventDefault(),V.addPage()})}),this.refs.gotoPage.forEach(function(K,X){V.addEventListener(K,"click",function(me){me.preventDefault(),V.setPage(X)})}),x(b(P.prototype),"attach",this).call(this,U)}},{key:"detach",value:function(){this.navigationDragula&&this.navigationDragula.destroy(),this.navigationDragula=null,x(b(P.prototype),"detach",this).call(this)}},{key:"rebuild",value:function(){var U,V=this.currentPage;return this.webform.setForm({display:"form",type:"form",components:V?[V]:[],controller:(null===(U=this._form)||void 0===U?void 0:U.controller)||""},{keepAsReference:!0}),this.redraw()}},{key:"addPage",value:function(U){var V=U&&U.schema?(0,u.fastCloneDeep)(U.schema):this.getPageConfig(this.pages.length+1);return a.default.uniquify(this._form.components,V),this._form.components.push(V),this.emitSaveComponentEvent(V,V,this._form,"components",this._form.components.length-1,!0,V),this.emit("change",this._form),this.rebuild()}},{key:"removePage",value:function(U,V){return this._form.components.splice(V,1),this.emit("change",this._form),U===this.pages.length?0===U?(this._form.components.push(this.getPageConfig(1)),this.rebuild()):this.setPage(U-1):this.rebuild()}},{key:"onReorder",value:function(U,V,K,X){var me=this,J=X?.classList.contains("wizard-add-page");if(U.dragInfo&&(!X||X.dragInfo||J)){var Q=U.dragInfo.index,re=X&&X.dragInfo?X.dragInfo.index:this.pages.length,de=re>Q,te=(0,u.fastCloneDeep)(this._form.components);return te.splice(re,0,this._form.components[Q]),te.splice(de?Q:Q+1,1),this._form.components=(0,u.fastCloneDeep)(te),this.rebuild().then(function(){me.emit("change",me._form)})}console.warn("There is no Drag Info available for either dragged or sibling element")}},{key:"setPage",value:function(U){if(U!==this.page)return this.page=U,this.rebuild()}},{key:"getPageConfig",value:function(U){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{title:"Page ".concat(U),label:"Page ".concat(U),type:"panel",key:"page".concat(U),components:V}}},{key:"pasteComponent",value:function(U){if(!(U instanceof P)){if(!this._form.components.find(function(V){return l.default.isEqual(U.component,V)}))return x(b(P.prototype),"pasteComponent",this).call(this,U);this.addPage(U)}}}]),P}(n.default)},55802:(he,y,i)=>{"use strict";function e(p){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(E){return typeof E}:function(E){return E&&"function"==typeof Symbol&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(p)}i(60228),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(5399),i(41517),i(88052);var n=l(i(92935)),o=l(i(73808)),a=l(i(6990));function l(p){return p&&p.__esModule?p:{default:p}}function d(p,E){for(var b=0;b<E.length;b++){var I=E[b];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(p,A(I.key),I)}}function A(p){var E=function _(p,E){if("object"!==e(p)||null===p)return p;var b=p[Symbol.toPrimitive];if(void 0!==b){var I=b.call(p,E||"default");if("object"!==e(I))return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===E?String:Number)(p)}(p,"string");return"symbol"===e(E)?E:String(E)}function R(p,E){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,L){return I.__proto__=L,I})(p,E)}function g(p){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)})(p)}y.default=function(p){!function C(p,E){if("function"!=typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(E&&E.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),Object.defineProperty(p,"prototype",{writable:!1}),E&&R(p,E)}(b,p);var E=function x(p){var E=function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var L,I=g(p);if(E){var D=g(this).constructor;L=Reflect.construct(I,arguments,D)}else L=I.apply(this,arguments);return function f(p,E){if(E&&("object"===e(E)||"function"==typeof E))return E;if(void 0!==E)throw new TypeError("Derived constructors may only return object or undefined");return function k(p){if(void 0===p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(p)}(this,L)}}(b);function b(I,L){var D;return function u(p,E){if(!(p instanceof E))throw new TypeError("Cannot call a class as a function")}(this,b),(D=E.call(this,I)).namespace="formio.plugin",D.component=L||{},D.settings=a.default.merge({},D.defaultSettings,I||{}),D}return function s(p,E,b){E&&d(p.prototype,E),b&&d(p,b),Object.defineProperty(p,"prototype",{writable:!1})}(b,[{key:"defaultSettings",get:function(){return b.info.defaultSettings}},{key:"element",get:function(){return this._element}},{key:"attach",value:function(L){return this._element=L,o.default.resolve()}},{key:"destroy",value:function(){}}],[{key:"info",get:function(){return{supportedComponents:[],name:"formioAddon",components:[],label:"Formio Addon",defaultSettings:{}}}}]),b}(n.default)},96300:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(35720)),o=[{label:"Strength Levels",reorder:!1,addAnotherPosition:"bottom",layoutFixed:!1,enableRowGroups:!1,initEmpty:!1,tableView:!1,defaultValue:[{}],key:"levels",type:"editgrid",input:!0,components:[{label:"Name",tableView:!0,validate:{required:!0},key:"name",type:"textfield",input:!0},{label:"Max Entropy",description:"Specifies the top boundary of the password's entropy(strength) which belongs to this level.\nCommon entropy values are:\n<ul>\n  <li>&lt; 28 bits = Very Weak;</li>\n  <li>28 - 35 bits = Weak; should keep out most people;</li>\n  <li>36 - 59 bits = Reasonable; fairly secure passwords for network and company passwords;</li>\n  <li>60 - 127 bits = Strong; can be good for guarding financial information;</li>\n  <li>&gt; 128 bits = Very Strong; often overkill;</li>\n</ul>\n",mask:!1,spellcheck:!0,tableView:!1,delimiter:!1,requireDecimal:!1,inputFormat:"plain",validate:{required:!0,min:1,max:128},key:"maxEntropy",type:"number",input:!0},{label:"Style",tooltip:"Specifies the background color style using bootstrap classes",tableView:!0,data:{values:[{label:"Danger",value:"danger"},{label:"Warning",value:"warning"},{label:"Info",value:"info"},{label:"Success",value:"success"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"style",type:"select",indexeddb:{filter:{}},input:!0},{label:"Color",placeholder:"#0079c0",tooltip:"Specifies a color of the indicator element",tableView:!0,key:"color",type:"textfield",input:!0}]},{label:"Update On",tableView:!0,data:{values:[{label:"Strength Level Change",value:"levelChange"},{label:"Entropy Change",value:"entropyChange"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"updateOn",type:"select",indexeddb:{filter:{}},input:!0},{label:"Rules",reorder:!1,addAnotherPosition:"bottom",layoutFixed:!1,enableRowGroups:!1,initEmpty:!1,tableView:!1,defaultValue:[{}],key:"rulesSettings",type:"datagrid",input:!0,components:[{label:"Name",tableView:!0,data:{values:[{label:"Length",value:"length"},{label:"Lower Case",value:"lowerCase"},{label:"Upper Case",value:"upperCase"},{label:"Numeric",value:"numeric"},{label:"Symbols",value:"symbols"}]},selectThreshold:.3,validate:{required:!0,onlyAvailableItems:!1},key:"name",type:"select",indexeddb:{filter:{}},input:!0},{label:"Error Message",tableView:!0,key:"errorMessage",type:"textfield",input:!0},{label:"Required",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1}]},{label:"Custom Rules",tableView:!1,rowDrafts:!1,key:"customRules",type:"editgrid",input:!0,components:[{label:"Name",tableView:!0,validate:{required:!0},key:"name",type:"textfield",input:!0},e.default.javaScriptValue("Check","check","",1100,'<p><h4>Example:</h4><pre>valid = !value.includes(data.email) ? true : "Password should not be variation of the email";</pre></p>',"","",!0),{label:"Increase Characters Pool Size",description:"Set this to amount of characters that may be used in the password if there is a specific group of characters is used.\nE.g., if your validation checks if there is any numeric symbol in the password, then you should set it to 10 (there are 10 possible numbers).\n",mask:!1,spellcheck:!0,tableView:!1,delimiter:!1,requireDecimal:!1,inputFormat:"plain",key:"increaseCharactersPoolSize",type:"number",input:!0},{label:"Required",tooltip:"Check if this check is required to proceed",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1}]},e.default.javaScriptValue("Is Valid","isValid","",1100,"<p><h4>Example:</h4><pre>valid = entropy > maxEntropy / 2 ;</pre></p>","","<tr><th>entropy</th><td>Current entropy bits of the password.</td></tr><tr><th>level</th><td>Current strength level of the password.</td></tr>",!0),{label:"Required",description:"Check this if you don't want to allow submitting password which does not correspond to the minimal strength requirements.",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1},{label:"Black List",tooltip:"Add words to search in the password. If there are some words from that list were found, the entropy of the password will be recalculated.\n",tableView:!0,multiple:!0,key:"blackList",type:"textfield",input:!0},e.default.javaScriptValue("Custom Blacklisted Words","customBlackListedWords","",1100,"<p><h4>Example:</h4><pre>values = [ data.name, data.dataOfBirth, data.favoriteColor ];</pre></p>","","",!0),{label:"Disable Blacklisted Words",tooltip:"Check if you want to disable submitting passwords containing words form the clack list",tableView:!1,key:"disableBlacklistedWords",type:"checkbox",input:!0,defaultValue:!1},{label:"Location",hideLabel:!1,tableView:!1,key:"location",type:"container",input:!0,components:[{label:"Insert",tooltip:"Specifies where the indicator will be inserted: before or aftre an element",tableView:!0,data:{values:[{label:"Before",value:"before"},{label:"After",value:"after"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"insert",type:"select",indexeddb:{filter:{}},input:!0},{label:"Selector",placeholder:"[ref='element']",description:"Specifies the selector of the element which will be used as a reference to insert the indicator template",tableView:!0,key:"selector",type:"textfield",input:!0}]},{label:"Template",editor:"ace",tableView:!0,key:"template",type:"textarea",input:!0,as:"html"}];y.default=o},39225:(he,y,i)=>{"use strict";function e(O){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(U){return typeof U}:function(U){return U&&"function"==typeof Symbol&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U})(O)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(63975),i(84254),i(752),i(21694),i(76265),i(77049),i(89730),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(65137),i(64043),i(34284),i(68813),i(57267),i(41517),i(52003),i(63945),i(49693),i(60228),i(47522),i(34338),i(6203),i(5399),i(88052);var n=l(i(6990)),o=l(i(55802)),a=l(i(96300));function l(O){return O&&O.__esModule?O:{default:O}}function u(O){return function _(O){if(Array.isArray(O))return C(O)}(O)||function A(O){if(typeof Symbol<"u"&&null!=O[Symbol.iterator]||null!=O["@@iterator"])return Array.from(O)}(O)||function s(O,U){if(O){if("string"==typeof O)return C(O,U);var V=Object.prototype.toString.call(O).slice(8,-1);if("Object"===V&&O.constructor&&(V=O.constructor.name),"Map"===V||"Set"===V)return Array.from(O);if("Arguments"===V||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V))return C(O,U)}}(O)||function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(O,U){(null==U||U>O.length)&&(U=O.length);for(var V=0,K=new Array(U);V<U;V++)K[V]=O[V];return K}function x(O,U){for(var V=0;V<U.length;V++){var K=U[V];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(O,k(K.key),K)}}function k(O){var U=function w(O,U){if("object"!==e(O)||null===O)return O;var V=O[Symbol.toPrimitive];if(void 0!==V){var K=V.call(O,U||"default");if("object"!==e(K))return K;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===U?String:Number)(O)}(O,"string");return"symbol"===e(U)?U:String(U)}function g(){return g=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(U,V,K){var X=function M(O,U){for(;!Object.prototype.hasOwnProperty.call(O,U)&&null!==(O=F(O)););return O}(U,V);if(X){var me=Object.getOwnPropertyDescriptor(X,V);return me.get?me.get.call(arguments.length<3?U:K):me.value}},g.apply(this,arguments)}function E(O,U){return(E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,X){return K.__proto__=X,K})(O,U)}function F(O){return(F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(V){return V.__proto__||Object.getPrototypeOf(V)})(O)}y.default=function(O){!function p(O,U){if("function"!=typeof U&&null!==U)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(U&&U.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),Object.defineProperty(O,"prototype",{writable:!1}),U&&E(O,U)}(V,O);var U=function b(O){var U=function D(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var X,K=F(O);if(U){var me=F(this).constructor;X=Reflect.construct(K,arguments,me)}else X=K.apply(this,arguments);return function I(O,U){if(U&&("object"===e(U)||"function"==typeof U))return U;if(void 0!==U)throw new TypeError("Derived constructors may only return object or undefined");return function L(O){if(void 0===O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}(O)}(this,X)}}(V);function V(K,X){var me;return function R(O,U){if(!(O instanceof U))throw new TypeError("Cannot call a class as a function")}(this,V),(me=U.call(this,K,X))._entropy=0,me.levels=u(me.settings.levels||me.defaultSettings.levels),me.levels.sort(function(J,Q){return J.maxEntropy-Q.maxEntropy}),me.level=me.levels[0],me.maxEntropy=me.levels[me.levels.length-1].maxEntropy,me}return function f(O,U,V){U&&x(O.prototype,U),V&&x(O,V),Object.defineProperty(O,"prototype",{writable:!1})}(V,[{key:"defaultSettings",get:function(){return V.info.defaultSettings}},{key:"rules",get:function(){var X=this;return{length:{check:function(J,Q){var re=Q.minLength||X.component.component.validate.minLength||6;return!(J.length<re)||"Value must be longer than ".concat(re," characters")}},upperCase:{check:function(J){return!!/[A-Z]/g.test(J)||"Value must contain uppercased alphabetical characters"},increaseCharactersPoolSize:26},numeric:{check:function(J){return!!/[0-9]/g.test(J)||"Value must contain numeric characters"},increaseCharactersPoolSize:10},lowerCase:{check:function(J){return!!/[a-z]/g.test(J)||"Value must contain lowercased alphabetical characters"},increaseCharactersPoolSize:26},symbols:{check:function(J){return!!/[ `!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?~]/.test(J)||"Value must contain symbols"},increaseCharactersPoolSize:32}}}},{key:"charactersPoolLength",get:function(){return this._charactersPoolLength},set:function(X){this._charactersPoolLength=X}},{key:"level",get:function(){return this._level||this.getLevel()},set:function(X){this._level=X}},{key:"entropy",get:function(){return this._entropy},set:function(X){var me=this.getLevel(),J="entropyChange"===this.settings.updateOn&&this._entropy!==X;this._entropy=X,this.level=this.getLevel(),("levelChange"===this.settings.updateOn&&me.name!==this.level.name||J)&&this.updateView()}},{key:"dictionarySize",get:function(){return this.settings.dictionarySize||171476}},{key:"template",get:function(){return this.settings.template}},{key:"tooltip",get:function(){var X,me;return(null===(X=this.level)||void 0===X?void 0:X.tooltip)||"".concat(null===(me=this.level)||void 0===me?void 0:me.name," strongness")}},{key:"rulesSettings",get:function(){return this.settings.rulesSettings||[]}},{key:"customRules",get:function(){return this.settings.customRules||[]}},{key:"log2",value:function(X){return"function"==typeof Math.log2?Math.log2(X):Math.log(X)*Math.LOG2E}},{key:"calculatePasswordEntropy",value:function(X,me){return X&&me?this.log2(Math.pow(me,X)):0}},{key:"calculatePasswordEntropyWords",value:function(X){return this.dictionarySize?this.log2(this.dictionarySize)*X:0}},{key:"render",value:function(){var X=this.component.interpolate(this.template,{entropy:this.entropy,maxEntropy:this.maxEntropy,level:this.level,levelName:this.level.name.replace(" ","-").toLowerCase(),levels:this.levels,readOnly:this.component.options.readOnly,pristine:this.component.pristine,t:this.t.bind(this),tooltip:this.tooltip});return this.component.sanitize(X)}},{key:"checkBlackList",value:function(X){var me=u(this.settings.blackList),J=this.settings.customBlacklistedWords;J&&"string"==typeof J&&(J=this.evaluate(J,this.component.evalContext({value:X}),"values"))&&J.length&&me.push.apply(me,u(J));for(var Q=X,re=[],de=0;de<me.length;de++){var te=me[de],j=new RegExp("".concat(te),"gi");if(j.test(X)&&(re.push(te),Q=Q.replace(j,"")),Q.length<3)break}if(re.length){var H=Q.length?this.performChecks(Q):0,q=this.calculatePasswordEntropy(Q.length,H.charactersPoolSize);return{entropy:this.calculatePasswordEntropyWords(re.length)+q,blacklistedWords:re}}return!0}},{key:"isValid",value:function(){var X=this.settings.isValid;return X&&"string"==typeof X?this.evaluate(X,this.component.evalContext({entropy:this.entropy,level:this.level}),"valid"):this.entropy>=Math.round(this.maxEntropy/2)}},{key:"handleRuleCheckResult",value:function(X,me,J,Q){if(!0!==X)Q.push({validation:me.name,message:J,level:me.required?"error":"warning"});else if(me.increaseCharactersPoolSize)return me.increaseCharactersPoolSize;return 0}},{key:"performChecks",value:function(X){var me=this,J=[],Q=0;return this.rulesSettings.forEach(function(re){if(me.rules[re.name]){var de=n.default.merge({},me.rules[re.name],re),te=de.check(X,re.options||{});Q+=me.handleRuleCheckResult(te,de,re.message||te,J)}}),this.customRules.forEach(function(re){if(re.check&&"string"==typeof re.check){var de=me.evaluate(re.check,me.component.evalContext({value:X}),"valid"),te="string"==typeof de?de:"Password does not meet ".concat(re.name," validation");Q+=me.handleRuleCheckResult(de,re,te,J)}}),{charactersPoolSize:Q,errors:J}}},{key:"checkValidity",value:function(X){var me,J=X.length,Q=this.performChecks(X),re=Q.charactersPoolSize;this.errors=Q.errors;var te=this.calculatePasswordEntropy(J,re),j=null!==(me=this.settings.blackList)&&void 0!==me&&me.length||this.settings.customBlacklistedWords?this.checkBlackList(X):null;return j&&!0!==j?(this.handleBlackListCheckResult(j),this.entropy=Math.min(te,j.entropy)):this.entropy=te,this.isValid()||this.errors.push({message:"Password is not strong enough",level:this.settings.required?"error":"warning"}),!this.errors.length}},{key:"handleBlackListCheckResult",value:function(X){var me=X.blacklistedWords,J=this.settings.disableBlacklistedWords,Q="Password ".concat(J?"must":"should"," not include common words: ").concat(me.join(", "));this.handleRuleCheckResult(!1,{name:"blacklist",required:J},Q,this.errors)}},{key:"attach",value:function(X){var me=this;g(F(V.prototype),"attach",this).call(this,X);var J=this.component.ce("div",{ref:"passwordStrengthIndicator"});this.insertContainer(X,J)||this.component.append(J),this._element=J,this.component.on("redraw",function(){return me.updateView()}),this.component.on("componentError",function(){return me.updateView()}),this.updateView()}},{key:"insertContainer",value:function(X,me){var J,Q;if(!X||!me)return!1;var te,re=null===(J=this.settings.location)||void 0===J?void 0:J.insert,de=null===(Q=this.settings.location)||void 0===Q?void 0:Q.selector;if(de&&(te=X.querySelector(de)),!te)return console.warn("No elements found using selector: ".concat(de)),!1;var j=te.parentNode;switch(re){case"after":return!!j&&(j.insertBefore(me,te.nextSibling||null),!0);case"before":return!!j&&(j.insertBefore(me,te),!0);default:return console.warn("Unknown insert option: ".concat(re)),!1}}},{key:"destroy",value:function(){g(F(V.prototype),"destroy",this).call(this)}},{key:"getLevel",value:function(){var X=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.entropy,me=this.levels[0],J=me.maxEntropy;if(X<=me.maxEntropy)return me;if(X>=this.maxEntropy)return this.levels[this.levels.length-1];for(var Q=1;Q<this.levels.length;Q++){var re=this.levels[Q];if(X>J&&X<=re.maxEntropy)return re;J=re.maxEntropy}return me}},{key:"updateView",value:function(){if(this.element){var X=this.render();this.element.innerHTML=X}}}],[{key:"info",get:function(){return{supportedComponents:["password"],name:"passwordStrength",components:a.default,label:"Password Strength",defaultSettings:{rulesSettings:[{name:"length",required:!1,message:"Value should be longer"},{name:"upperCase",required:!1,message:"Value should have uppercase letters"},{name:"numeric",required:!1,message:"Value should have numeric symbols"},{name:"lowerCase",required:!1,message:"Value should be have lowercase letters"},{name:"symbols",required:!1,message:"Value should have symbols"}],updateOn:"levelChange",required:!0,levels:[{name:"Low",maxEntropy:28,style:"danger"},{name:"Medium",maxEntropy:45,style:"warning"},{name:"High",maxEntropy:59,style:"info"},{name:"Very High",maxEntropy:85,style:"success"}],blackList:[],template:"\n          <div class=\"formio-security-indicator\">\n            {% if (!ctx.readOnly && !ctx.pristine) { %}\n              <div\n                title=\"{{ctx.t(ctx.tooltip)}}\"\n                class=\"security-{{ctx.levelName}} {{ ctx.level.style ? 'bg-' + ctx.level.style : ''}}\"\n                style=\"{{ctx.level.color ? 'background-color: ' + ctx.level.color + ';' : ''}}\"\n              ></div>\n            {% } %}\n          </div>\n        ",location:{insert:"after",selector:'[ref="element"]'}}}}}]),V}(o.default)},65096:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.editForms=y.default=void 0,i(50886),i(34284);var e=function n(l){return l&&l.__esModule?l:{default:l}}(i(39225)),o=[e.default.info].map(function(l){var d=l.name;return{type:"form",key:"settings",display:"form",input:!0,components:l.components,defaultValue:{data:l.defaultSettings},customConditional:function(_){return _.row.name.value===d}}});y.editForms=o,y.default={passwordStrength:e.default}},17288:(he,y,i)=>{"use strict";i(40739),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var e=l(i(6990)),n=l(i(50145)),o=l(i(6037)),a=l(i(385));function l(f){return f&&f.__esModule?f:{default:f}}function u(f){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"==typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(f)}function s(f,k){for(var w=0;w<k.length;w++){var g=k[w];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,C(g.key),g)}}function C(f){var k=function R(f,k){if("object"!==u(f)||null===f)return f;var w=f[Symbol.toPrimitive];if(void 0!==w){var g=w.call(f,k||"default");if("object"!==u(g))return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===k?String:Number)(f)}(f,"string");return"symbol"===u(k)?k:String(k)}var x=function(){function f(){!function d(f,k){if(!(f instanceof k))throw new TypeError("Cannot call a class as a function")}(this,f)}return function A(f,k,w){k&&s(f.prototype,k),w&&s(f,w),Object.defineProperty(f,"prototype",{writable:!1})}(f,null,[{key:"addBuilder",value:function(w,g){f.builders[w]=g}},{key:"addBuilders",value:function(w){f.builders=e.default.merge(f.builders,w)}},{key:"getBuilder",value:function(w){return f.builders[w]}},{key:"getBuilders",value:function(){return f.builders}}]),f}();y.default=x,function _(f,k,w){(k=C(k))in f?Object.defineProperty(f,k,{value:w,enumerable:!0,configurable:!0,writable:!0}):f[k]=w}(x,"builders",{pdf:n.default,webform:o.default,wizard:a.default})},85136:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(17288));y.default=e.default},14231:(he,y,i)=>{"use strict";i(40739),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(63975),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var e=l(i(1681)),n=l(i(35720)),o=l(i(38653)),a=l(i(6990));function l(f){return f&&f.__esModule?f:{default:f}}function u(f){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"==typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(f)}function s(f,k){for(var w=0;w<k.length;w++){var g=k[w];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,C(g.key),g)}}function _(f,k,w){return(k=C(k))in f?Object.defineProperty(f,k,{value:w,enumerable:!0,configurable:!0,writable:!0}):f[k]=w,f}function C(f){var k=function R(f,k){if("object"!==u(f)||null===f)return f;var w=f[Symbol.toPrimitive];if(void 0!==w){var g=w.call(f,k||"default");if("object"!==u(g))return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===k?String:Number)(f)}(f,"string");return"symbol"===u(k)?k:String(k)}var x=function(){function f(){!function d(f,k){if(!(f instanceof k))throw new TypeError("Cannot call a class as a function")}(this,f)}return function A(f,k,w){k&&s(f.prototype,k),w&&s(f,w),Object.defineProperty(f,"prototype",{writable:!1})}(f,null,[{key:"EditFormUtils",get:function(){return f._editFormUtils},set:function(w){f._editFormUtils=w}},{key:"baseEditForm",get:function(){return f._baseEditForm},set:function(w){f._baseEditForm=w}},{key:"recalculateComponents",value:function(){window&&window.Formio&&window.Formio.AllComponents&&f.setComponents(window.Formio.AllComponents)}},{key:"components",get:function(){return f._components||(f._components={}),f._components}},{key:"setComponents",value:function(w){w.base&&(w.base.tableView=function(g,M){return f.create(M.component,M.options||{},M.data||{},!0).getView(g)}),a.default.assign(f.components,w)}},{key:"addComponent",value:function(w,g){return f.setComponent(w,g)}},{key:"setComponent",value:function(w,g){f.components[w]=g}},{key:"create",value:function(w,g,M){return w.type&&f.components.hasOwnProperty(w.type)?new f.components[w.type](w,g,M):w.arrayTree?new f.components.datagrid(w,g,M):w.tree?new f.components.nesteddata(w,g,M):Array.isArray(w.components)?new f.components.nested(w,g,M):g&&g.server?new f.components.hidden(w,g,M):new e.default(w,g,M)}}]),f}();y.default=x,_(x,"_editFormUtils",n.default),_(x,"_baseEditForm",o.default)},52520:(he,y,i)=>{"use strict";i(40739),i(69358),i(38077),i(81919),i(49693),i(47522),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(41517),i(34338),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var e=function o(f){return f&&f.__esModule?f:{default:f}}(i(6990)),n=i(12866);function a(f){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"==typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(f)}function l(f,k){var w=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);k&&(g=g.filter(function(M){return Object.getOwnPropertyDescriptor(f,M).enumerable})),w.push.apply(w,g)}return w}function u(f){for(var k=1;k<arguments.length;k++){var w=null!=arguments[k]?arguments[k]:{};k%2?l(Object(w),!0).forEach(function(g){d(f,g,w[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(w)):l(Object(w)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(w,g))})}return f}function d(f,k,w){return(k=C(k))in f?Object.defineProperty(f,k,{value:w,enumerable:!0,configurable:!0,writable:!0}):f[k]=w,f}function A(f,k){for(var w=0;w<k.length;w++){var g=k[w];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,C(g.key),g)}}function C(f){var k=function R(f,k){if("object"!==a(f)||null===f)return f;var w=f[Symbol.toPrimitive];if(void 0!==w){var g=w.call(f,k||"default");if("object"!==a(g))return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===k?String:Number)(f)}(f,"string");return"symbol"===a(k)?k:String(k)}y.default=function(){function f(k,w,g,M){(function s(f,k){if(!(f instanceof k))throw new TypeError("Cannot call a class as a function")})(this,f),this.isOpened=g,this.component=k,this.element=w,this.currentValue=(0,n.fastCloneDeep)(M??this.component.getValue()),this.dataLoaded=!1,this.init()}return function _(f,k,w){k&&A(f.prototype,k),w&&A(f,w),Object.defineProperty(f,"prototype",{writable:!1})}(f,[{key:"refs",get:function(){return this.component.refs}},{key:"init",value:function(){var w=this;this.openModalListener=this.openModalHandler.bind(this),this.showDialogListener=function(g){w.isValueChanged()&&!w.component.disabled?w.showDialog():w.closeModalHandler(g)},this.closeModalListener=this.closeModalHandler.bind(this),this.saveModalListener=this.saveModalValueHandler.bind(this),this.closeDialogListener=this.closeDialog.bind(this),this.saveDialogListener=this.saveDialog.bind(this),this.loadRefs()}},{key:"setValue",value:function(w){this.dataLoaded&&this.currentValue===w||(this.currentValue=(0,n.fastCloneDeep)(w),this.dataLoaded=!0,this.updateView())}},{key:"setOpenModalElement",value:function(w){var g;null!==(g=this.component)&&void 0!==g&&g.visible&&(this.openModalTemplate=w,this.component.setContent(this.refs.openModalWrapper,w),this.loadRefs(),this.setEventListeners(),this.isOpened&&(this.refs.modalWrapper.classList.add("formio-dialog-disabled-animation"),this.openModal()))}},{key:"templateRefs",get:function(){return{modalOverlay:"single",modalContents:"single",modalClose:"single",openModalWrapper:"single",openModal:"single",modalSave:"single",modalWrapper:"single"}}},{key:"loadRefs",value:function(){this.component.loadRefs(this.element,this.templateRefs)}},{key:"removeEventListeners",value:function(){this.component.removeEventListener(this.refs.openModal,"click",this.openModalListener),this.component.removeEventListener(this.refs.modalOverlay,"click",this.refs.modalSave?this.showDialogListener:this.saveModalListener),this.component.removeEventListener(this.refs.modalClose,"click",this.showDialogListener),this.component.removeEventListener(this.refs.modalSave,"click",this.saveModalListener)}},{key:"setEventListeners",value:function(){this.removeEventListeners(),this.component.addEventListener(this.refs.openModal,"click",this.openModalListener),this.component.addEventListener(this.refs.modalOverlay,"click",this.refs.modalSave?this.showDialogListener:this.saveModalListener),this.component.addEventListener(this.refs.modalClose,"click",this.showDialogListener),this.component.addEventListener(this.refs.modalSave,"click",this.saveModalListener)}},{key:"isValueChanged",value:function(){var w=this.component.getValue(),g=this.currentValue;return w&&w.data&&w.metadata&&(w=this.component.getValue().data,g=this.currentValue.data),!e.default.isEqual((0,n.fastCloneDeep)(w),g)}},{key:"setOpenEventListener",value:function(){var w;this.component.removeEventListener(this.refs.openModal,"click",this.openModalListener),this.component.loadRefs(null!==(w=this.refs.openModalWrapper)&&void 0!==w?w:this.element,{openModal:"single"}),this.component.addEventListener(this.refs.openModal,"click",this.openModalListener)}},{key:"openModalHandler",value:function(w){w.preventDefault(),this.openModal()}},{key:"positionOverElement",value:function(){var M=this.element.getBoundingClientRect().top-this.refs.modalContents.getBoundingClientRect().height-10;this.refs.modalWrapper.style.paddingTop="".concat(M=M>0?M:10,"px")}},{key:"openModal",value:function(){this.isOpened=!0,this.refs.modalWrapper.classList.remove("component-rendering-hidden"),"signature"===this.component.component.type&&this.positionOverElement()}},{key:"updateView",value:function(){var w=e.default.isEqual(this.currentValue,this.component.defaultValue)?this.openModalTemplate:this.component.getModalPreviewTemplate();this.component.setContent(this.refs.openModalWrapper,w),this.setOpenEventListener()}},{key:"closeModal",value:function(){this.refs.modalWrapper.classList.remove("formio-dialog-disabled-animation"),this.refs.modalWrapper.classList.add("component-rendering-hidden"),this.isOpened=!1,this.updateView()}},{key:"closeModalHandler",value:function(w){w.preventDefault(),this.component.disabled||this.component.setValue(e.default.cloneDeep(this.currentValue),{resetValue:!0}),this.closeModal()}},{key:"showDialog",value:function(){this.dialogElement=this.component.ce("div");var w='\n      <h3 ref="dialogHeader">'.concat(this.component.t("Do you want to clear changes?"),'</h3>\n      <div style="display:flex; justify-content: flex-end;">\n        <button ref="dialogCancelButton" class="btn btn-secondary">').concat(this.component.t("Cancel"),'</button>\n        <button ref="dialogYesButton" class="btn btn-danger">').concat(this.component.t("Yes, delete it"),"</button>\n      </div>\n    ");this.dialogElement.innerHTML=w,this.dialogElement.refs={},this.component.loadRefs.call(this.dialogElement,this.dialogElement,{dialogHeader:"single",dialogCancelButton:"single",dialogYesButton:"single"}),this.dialog=this.component.createModal(this.dialogElement),this.component.addEventListener(this.dialogElement.refs.dialogYesButton,"click",this.saveDialogListener),this.component.addEventListener(this.dialogElement.refs.dialogCancelButton,"click",this.closeDialogListener)}},{key:"closeDialog",value:function(w){w.preventDefault(),this.dialog.close(),this.component.removeEventListener(this.dialogElement.refs.dialogYesButton,"click",this.saveDialogListener),this.component.removeEventListener(this.dialogElement.refs.dialogCancelButton,"click",this.closeDialogListener)}},{key:"saveDialog",value:function(w){this.closeDialog(w),this.closeModalHandler(w)}},{key:"saveModalValueHandler",value:function(w){var g;w.preventDefault(),this.currentValue=(0,n.fastCloneDeep)(null!==(g=this.component.dataValue)&&void 0!==g?g:this.component.getValue()),this.closeModal()}}],[{key:"render",value:function(w,g,M){var p=w.renderTemplate("component",g,M);return w.renderTemplate("componentModal",u(u({},g),{},{children:p}))}}]),f}()},38653:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function C(){for(var R=arguments.length,x=new Array(R),f=0;f<R;f++)x[f]=arguments[f];var k=e.default.cloneDeep([{type:"tabs",key:"tabs",components:[{label:"Display",key:"display",weight:0,components:l.default},{label:"Data",key:"data",weight:10,components:o.default},{label:"Validation",key:"validation",weight:20,components:d.default},{label:"API",key:"api",weight:30,components:a.default},{label:"Conditional",key:"conditional",weight:40,components:n.default},{label:"Logic",key:"logic",weight:50,components:u.default},{label:"Layout",key:"layout",weight:60,components:s.default}]}]).concat(x.map(function(w){return{type:"tabs",key:"tabs",components:e.default.cloneDeep(w)}}));return{components:e.default.unionWith(k,A.default.unifyComponents).concat({type:"hidden",key:"type"})}},i(34338),i(50886);var e=_(i(6990)),n=_(i(27859)),o=_(i(72483)),a=_(i(27379)),l=_(i(36784)),u=_(i(63305)),d=_(i(99779)),s=_(i(74218)),A=_(i(35720));function _(R){return R&&R.__esModule?R:{default:R}}},1681:(he,y,i)=>{"use strict";function e(Ce){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Te){return typeof Te}:function(Te){return Te&&"function"==typeof Symbol&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te})(Ce)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(76265),i(69358),i(99474),i(35082),i(51090),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(60429),i(34284),i(25847),i(41517),i(49693),i(60228),i(47522),i(97195),i(34338),i(76801),i(43843),i(63975),i(64043),i(57267),i(268),i(6203),i(30024),i(63945),i(50886),i(62506),i(278),i(32320),i(38320),i(38077),i(77049),i(21694),i(98742),i(89730),i(5399),i(88052),i(96869);var n=i(61712),o=M(i(73808)),a=M(i(65850)),l=M(i(6990)),u=M(i(34491)),d=i(55798),s=function g(Ce,Te){if(!Te&&Ce&&Ce.__esModule)return Ce;if(null===Ce||"object"!==e(Ce)&&"function"!=typeof Ce)return{default:Ce};var De=w(Te);if(De&&De.has(Ce))return De.get(Ce);var fe={},xe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Oe in Ce)if("default"!==Oe&&Object.prototype.hasOwnProperty.call(Ce,Oe)){var Le=xe?Object.getOwnPropertyDescriptor(Ce,Oe):null;Le&&(Le.get||Le.set)?Object.defineProperty(fe,Oe,Le):fe[Oe]=Ce[Oe]}return fe.default=Ce,De&&De.set(Ce,fe),fe}(i(12866)),A=M(i(70342)),_=M(i(92935)),C=M(i(52520)),R=M(i(27081)),x=M(i(65096)),f=i(52919),k=M(i(26499));function w(Ce){if("function"!=typeof WeakMap)return null;var Te=new WeakMap,De=new WeakMap;return(w=function(xe){return xe?De:Te})(Ce)}function M(Ce){return Ce&&Ce.__esModule?Ce:{default:Ce}}function p(Ce,Te){var De=Object.keys(Ce);if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(Ce);Te&&(fe=fe.filter(function(xe){return Object.getOwnPropertyDescriptor(Ce,xe).enumerable})),De.push.apply(De,fe)}return De}function E(Ce){for(var Te=1;Te<arguments.length;Te++){var De=null!=arguments[Te]?arguments[Te]:{};Te%2?p(Object(De),!0).forEach(function(fe){b(Ce,fe,De[fe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ce,Object.getOwnPropertyDescriptors(De)):p(Object(De)).forEach(function(fe){Object.defineProperty(Ce,fe,Object.getOwnPropertyDescriptor(De,fe))})}return Ce}function b(Ce,Te,De){return(Te=me(Te))in Ce?Object.defineProperty(Ce,Te,{value:De,enumerable:!0,configurable:!0,writable:!0}):Ce[Te]=De,Ce}function I(Ce,Te){var De=typeof Symbol<"u"&&Ce[Symbol.iterator]||Ce["@@iterator"];if(!De){if(Array.isArray(Ce)||(De=F(Ce))||Te&&Ce&&"number"==typeof Ce.length){De&&(Ce=De);var fe=0,xe=function(){};return{s:xe,n:function(){return fe>=Ce.length?{done:!0}:{done:!1,value:Ce[fe++]}},e:function(An){throw An},f:xe}}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 Gt,Oe=!0,Le=!1;return{s:function(){De=De.call(Ce)},n:function(){var An=De.next();return Oe=An.done,An},e:function(An){Le=!0,Gt=An},f:function(){try{!Oe&&null!=De.return&&De.return()}finally{if(Le)throw Gt}}}}function L(Ce){return function O(Ce){if(Array.isArray(Ce))return U(Ce)}(Ce)||function P(Ce){if(typeof Symbol<"u"&&null!=Ce[Symbol.iterator]||null!=Ce["@@iterator"])return Array.from(Ce)}(Ce)||F(Ce)||function D(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(Ce,Te){if(Ce){if("string"==typeof Ce)return U(Ce,Te);var De=Object.prototype.toString.call(Ce).slice(8,-1);if("Object"===De&&Ce.constructor&&(De=Ce.constructor.name),"Map"===De||"Set"===De)return Array.from(Ce);if("Arguments"===De||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(De))return U(Ce,Te)}}function U(Ce,Te){(null==Te||Te>Ce.length)&&(Te=Ce.length);for(var De=0,fe=new Array(Te);De<Te;De++)fe[De]=Ce[De];return fe}function K(Ce,Te){for(var De=0;De<Te.length;De++){var fe=Te[De];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(Ce,me(fe.key),fe)}}function me(Ce){var Te=function J(Ce,Te){if("object"!==e(Ce)||null===Ce)return Ce;var De=Ce[Symbol.toPrimitive];if(void 0!==De){var fe=De.call(Ce,Te||"default");if("object"!==e(fe))return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Te?String:Number)(Ce)}(Ce,"string");return"symbol"===e(Te)?Te:String(Te)}function Q(){return Q=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(Te,De,fe){var xe=function re(Ce,Te){for(;!Object.prototype.hasOwnProperty.call(Ce,Te)&&null!==(Ce=se(Ce)););return Ce}(Te,De);if(xe){var Oe=Object.getOwnPropertyDescriptor(xe,De);return Oe.get?Oe.get.call(arguments.length<3?Te:fe):Oe.value}},Q.apply(this,arguments)}function te(Ce,Te){return(te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(fe,xe){return fe.__proto__=xe,fe})(Ce,Te)}function z(Ce){if(void 0===Ce)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ce}function se(Ce){return(se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(De){return De.__proto__||Object.getPrototypeOf(De)})(Ce)}var ne=s.getBrowserInfo().ie,_e=d.GlobalFormio.Templates;_e||(_e=i(80193).default);var ge=function(Ce){!function de(Ce,Te){if("function"!=typeof Te&&null!==Te)throw new TypeError("Super expression must either be null or a function");Ce.prototype=Object.create(Te&&Te.prototype,{constructor:{value:Ce,writable:!0,configurable:!0}}),Object.defineProperty(Ce,"prototype",{writable:!1}),Te&&te(Ce,Te)}(De,Ce);var Te=function j(Ce){var Te=function q(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var xe,fe=se(Ce);if(Te){var Oe=se(this).constructor;xe=Reflect.construct(fe,arguments,Oe)}else xe=fe.apply(this,arguments);return function H(Ce,Te){if(Te&&("object"===e(Te)||"function"==typeof Te))return Te;if(void 0!==Te)throw new TypeError("Derived constructors may only return object or undefined");return z(Ce)}(this,xe)}}(De);function De(fe,xe,Oe){var Le;(function V(Ce,Te){if(!(Ce instanceof Te))throw new TypeError("Cannot call a class as a function")})(this,De),Le=Te.call(this,Object.assign({renderMode:"form",attachMode:"full",noDefaults:!1},xe||{})),fe&&fe.id&&(Le.id=fe.id),Le._hasCondition=null,Le.refs={},fe&&Le.options.components&&Le.options.components[fe.type]&&l.default.merge(fe,Le.options.components[fe.type]),Le.validator=A.default,Le.path="",Le.component=Le.mergeSchema(fe||{}),Le.component.id=Le.id,Le.afterComponentAssign(),Le.originalComponent=(0,s.fastCloneDeep)(Le.component),Le.attached=!1,Le.rendered=!1,Le._data=Oe||{},Le.error="",Le.tooltip="",Le.row=Le.options.row,Le._disabled=!!(0,s.boolValue)(Le.component.disabled)&&Le.component.disabled,Le.root=Le.options.root,Le.localRoot=Le.options.localRoot,Le.pristine=!0,Le.parent=Le.options.parent,Le.options.name=Le.options.name||"data",Le.validators=["required","minLength","maxLength","minWords","maxWords","custom","pattern","json","mask"],Le._path="",Le._parentPath=Le.options.parentPath||"",Le.resetCaches(),Le._parentVisible=!Le.options.hasOwnProperty("parentVisible")||Le.options.parentVisible,Le._visible=Le._parentVisible&&Le.conditionallyVisible(null,Oe),Le._parentDisabled=!1;var Gt=[],Ut=null,An=[],$n=l.default.debounce(function(){var xn;Le.root&&(Le.root.changing=!1),An=[];for(var mt=arguments.length,ut=new Array(mt),Wt=0;Wt<mt;Wt++)ut[Wt]=arguments[Wt];!ut[1]&&Ut&&(ut[1]=Ut),l.default.isEmpty(ut[0])&&Ut&&(ut[0]=Ut.flags),Ut=null,ut[3]=Gt;var dn=(xn=Le).onChange.apply(xn,ut);return Gt=[],dn},100);return Le.triggerChange=function(){for(var xn=arguments.length,mt=new Array(xn),ut=0;ut<xn;ut++)mt[ut]=arguments[ut];return mt[1]&&Gt.push(Ut=mt[1]),Le.root&&(Le.root.changing=!0),mt.length&&(An=mt),$n.apply(void 0,L(An))},Le.triggerRedraw=l.default.debounce(Le.redraw.bind(z(Le)),100),Le.tooltips=[],Le.addons=[],Le.invalid=!1,Le.component&&(Le.type=Le.component.type,Le.allowData&&Le.key&&(Le.options.name+="[".concat(Le.key,"]"),(Le.visible||!Le.component.clearOnHide)&&(Le.hasValue()?Le.dataValue=Le.dataValue:Le.shouldAddDefaultValue&&(Le.dataValue=Le.defaultValue))),Le.info=Le.elementInfo()),Le.hook("component"),Le.options.skipInit||Le.init(),Le}return function X(Ce,Te,De){Te&&K(Ce.prototype,Te),De&&K(Ce,De),Object.defineProperty(Ce,"prototype",{writable:!1})}(De,[{key:"data",get:function(){return this._data},set:function(xe){this._data=xe}},{key:"mergeSchema",value:function(){return l.default.defaultsDeep(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},this.defaultSchema)}},{key:"ready",get:function(){return o.default.resolve(this)}},{key:"isPDFReadOnlyMode",get:function(){return this.parent&&this.parent.form&&"pdf"===this.parent.form.display&&this.options.readOnly}},{key:"labelInfo",get:function(){var xe={};xe.hidden=this.labelIsHidden(),xe.className="",xe.labelPosition=this.component.labelPosition,xe.tooltipClass="".concat(this.iconClass("question-sign")," text-muted");var Oe=this.isPDFReadOnlyMode;return this.hasInput&&this.component.validate&&(0,s.boolValue)(this.component.validate.required)&&!Oe&&(xe.className+=" field-required"),xe.hidden&&(xe.className+=" control-label--hidden"),this.info.attr.id&&(xe.for=this.info.attr.id),xe}},{key:"init",value:function(){var xe,Oe=this;this.disabled=this.shouldDisabled,this._visible=this.conditionallyVisible(null,null),null!==(xe=this.component.addons)&&void 0!==xe&&xe.length&&this.component.addons.forEach(function(Le){return Oe.createAddon(Le)})}},{key:"afterComponentAssign",value:function(){}},{key:"createAddon",value:function(xe){var Oe,Le=xe.name;if(Le){var Gt=(null===(Oe=xe.settings)||void 0===Oe?void 0:Oe.data)||{},Ut=x.default[Le.value],An=null;if(Ut){var $n=Ut.info.supportedComponents;null!=$n&&$n.length&&-1===$n.indexOf(this.component.type)?console.warn("Addon ".concat(Le.label," does not support component of type ").concat(this.component.type,".")):(An=new Ut(Gt,this),this.addons.push(An))}return An}}},{key:"destroy",value:function(){Q(se(De.prototype),"destroy",this).call(this),this.detach(),this.addons.forEach(function(xe){return xe.destroy()})}},{key:"shouldDisabled",get:function(){return this.options.readOnly||this.component.disabled||this.options.hasOwnProperty("disabled")&&this.options.disabled[this.key]}},{key:"isInputComponent",get:function(){return!this.component.hasOwnProperty("input")||this.component.input}},{key:"allowData",get:function(){return this.hasInput}},{key:"hasInput",get:function(){return this.isInputComponent||this.refs.input&&this.refs.input.length}},{key:"defaultSchema",get:function(){return De.schema()}},{key:"key",get:function(){return l.default.get(this.component,"key","")}},{key:"parentVisible",get:function(){return this._parentVisible},set:function(xe){this._parentVisible=xe}},{key:"parentDisabled",get:function(){return this._parentDisabled},set:function(xe){this._parentDisabled=xe}},{key:"shouldForceVisibility",value:function(xe,Oe){return!!this.options[Oe]&&(xe||(xe=this.component),l.default.isArray(this.options[Oe])?this.options[Oe].includes(xe.key):this.options[Oe][xe.key])}},{key:"shouldForceHide",value:function(xe){return this.shouldForceVisibility(xe,"hide")}},{key:"shouldForceShow",value:function(xe){return this.shouldForceVisibility(xe,"show")}},{key:"visible",get:function(){return!!(this.builderMode||this.previewMode||this.options.showHiddenFields)||!this.shouldForceHide()&&(!!this.shouldForceShow()||this._visible&&this._parentVisible)},set:function(xe){if(this._visible!==xe){if(xe&&this.shouldForceHide()||!xe&&this.shouldForceShow())return;this._visible=xe,this.clearOnHide(),this.redraw()}}},{key:"currentForm",get:function(){return this._currentForm},set:function(xe){this._currentForm=xe}},{key:"fullMode",get:function(){return"full"===this.options.attachMode}},{key:"builderMode",get:function(){return"builder"===this.options.attachMode}},{key:"calculatedPath",get:function(){return console.error("component.calculatedPath was deprecated, use component.path instead."),this.path}},{key:"labelPosition",get:function(){return this.component.labelPosition}},{key:"labelWidth",get:function(){var xe=this.component.labelWidth;return xe>=0?xe:30}},{key:"labelMargin",get:function(){var xe=this.component.labelMargin;return xe>=0?xe:3}},{key:"isAdvancedLabel",get:function(){return["left-left","left-right","right-left","right-right"].includes(this.labelPosition)}},{key:"labelPositions",get:function(){return this.labelPosition.split("-")}},{key:"skipInEmail",get:function(){return!1}},{key:"rightDirection",value:function(xe){return!this.options.condensedMode&&"right"===xe}},{key:"getLabelInfo",value:function(){var xe=arguments.length>0&&void 0!==arguments[0]&&arguments[0],Oe=this.rightDirection(this.labelPositions[0]),Le="left"===this.labelPositions[0]||xe,Gt=this.rightDirection(this.labelPositions[1]),Ut="";if(this.component.hideLabel){var An=this.labelWidth+this.labelMargin;Ut=Oe?"margin-right: ".concat(An,"%"):"",Ut=Le?"margin-left: ".concat(An,"%"):""}return{isRightPosition:Oe,isRightAlign:Gt,labelStyles:"\n      flex: ".concat(this.labelWidth,";\n      ").concat(Oe?"margin-left":"margin-right",": ").concat(this.labelMargin,"%;\n    "),contentStyles:"\n      flex: ".concat(100-this.labelWidth-this.labelMargin,";\n      ").concat(Ut,";\n      ").concat(this.component.hideLabel?"max-width: ".concat(100-this.labelWidth-this.labelMargin):"",";\n    ")}}},{key:"getModifiedSchema",value:function(xe,Oe,Le){var Gt=this,Ut={};return Oe?(l.default.each(xe,function(An,$n){if(!l.default.isArray(An)&&l.default.isObject(An)&&Oe.hasOwnProperty($n)){var xn=Gt.getModifiedSchema(An,Oe[$n],!0);l.default.isEmpty(xn)||(Ut[$n]=xn)}else l.default.isArray(An)?0!==An.length&&!l.default.isEqual(An,Oe[$n])&&(Ut[$n]=An):(!Le&&"type"===$n||!Le&&"key"===$n||!Le&&"label"===$n||!Le&&"input"===$n||!Le&&"tableView"===$n||""!==An&&!Oe.hasOwnProperty($n)||""!==An&&An!==Oe[$n]||Oe[$n]&&An!==Oe[$n])&&(Ut[$n]=An)}),Ut):xe}},{key:"schema",get:function(){return(0,s.fastCloneDeep)(this.getModifiedSchema(l.default.omit(this.component,"id"),this.defaultSchema))}},{key:"isInDataGrid",get:function(){return this.inDataGrid}},{key:"t",value:function(xe){var Oe,Le=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!xe)return"";if(xe in k.default&&Le._userInput)return xe;Le.data=this.rootValue,Le.row=this.data,Le.component=this.component;for(var Gt=arguments.length,Ut=new Array(Gt>2?Gt-2:0),An=2;An<Gt;An++)Ut[An-2]=arguments[An];return(Oe=Q(se(De.prototype),"t",this)).call.apply(Oe,[this,xe,Le].concat(Ut))}},{key:"labelIsHidden",value:function(){return!this.component.label||(!this.isInDataGrid&&this.component.hideLabel||this.isInDataGrid&&!this.component.dataGridLabel||this.options.inputsOnly)&&!this.builderMode}},{key:"transform",value:function(xe,Oe){var Le=this.options.template?_e.templates[this.options.template]:_e.current;return Le.hasOwnProperty("transform")?Le.transform(xe,Oe):function(Gt,Ut){return Ut}}},{key:"getTemplate",value:function(xe,Oe){Oe=Array.isArray(Oe)?Oe:[Oe],xe=Array.isArray(xe)?xe:[xe],Oe.includes("form")||Oe.push("form");var Le=null;if(this.options.templates&&(Le=this.checkTemplate(this.options.templates,xe,Oe)))return Le;if(Le=this.checkTemplate(this.options.template?_e.templates[this.options.template]:_e.current,xe,Oe))return Le;var Ut=xe[xe.length-1],An=_e.defaultTemplates[Ut];return An?this.checkTemplateMode(An,Oe)||An.form:"Unknown template: ".concat(Ut)}},{key:"checkTemplate",value:function(xe,Oe,Le){var Ut,Gt=I(Oe);try{for(Gt.s();!(Ut=Gt.n()).done;){var $n=xe[Ut.value];if($n){var xn=this.checkTemplateMode($n,Le);if(xn)return xn}}}catch(mt){Gt.e(mt)}finally{Gt.f()}return null}},{key:"checkTemplateMode",value:function(xe,Oe){var Gt,Le=I(Oe);try{for(Le.s();!(Gt=Le.n()).done;){var An=xe[Gt.value];if(An)return An}}catch($n){Le.e($n)}finally{Le.f()}return null}},{key:"getFormattedAttribute",value:function(xe){return xe?this.t(xe,{_userInput:!0}).replace(/"/g,"&quot;"):""}},{key:"getFormattedTooltip",value:function(xe){var Oe=this.interpolate(xe||"").replace(/(?:\r\n|\r|\n)/g,"<br />");return this.getFormattedAttribute(Oe)}},{key:"isHtmlRenderMode",value:function(){return"html"===this.options.renderMode}},{key:"renderTemplate",value:function(xe){var Oe=this,Le=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ut=(arguments.length>2?arguments[2]:void 0)||this.options.renderMode||"form";Le.component=this.component,Le.self=this,Le.options=this.options,Le.readOnly=this.options.readOnly,Le.iconClass=this.iconClass.bind(this),Le.size=this.size.bind(this),Le.t=this.t.bind(this),Le.transform=this.transform.bind(this),Le.id=Le.id||this.id,Le.key=Le.key||this.key,Le.value=Le.value||this.dataValue,Le.disabled=this.disabled,Le.builder=this.builderMode,Le.render=function(){return console.warn("Form.io 'render' template function is deprecated.\n      If you need to render template (template A) inside of another template (template B),\n      pass pre-compiled template A (use this.renderTemplate('template_A_name') as template context variable for template B"),Oe.renderTemplate.apply(Oe,arguments)},Le.label=Le.labelInfo||this.labelInfo,Le.tooltip=this.getFormattedTooltip(this.component.tooltip);var An=["".concat(xe,"-").concat(this.component.type,"-").concat(this.key),"".concat(xe,"-").concat(this.component.type),"".concat(xe,"-").concat(this.key),"".concat(xe)];return this.hook("render".concat(xe.charAt(0).toUpperCase()+xe.substring(1,xe.length)),this.interpolate(this.getTemplate(An,Ut),Le),Le,Ut)}},{key:"sanitize",value:function(xe,Oe,Le){var Gt;return!this.shouldSanitizeValue&&!Oe||this.options.pdf&&!Oe?xe:s.sanitize(xe,{sanitizeConfig:l.default.merge((null===(Gt=this.options)||void 0===Gt?void 0:Gt.sanitizeConfig)||{},Le||{})})}},{key:"renderString",value:function(xe,Oe){return xe?this.interpolate(xe,Oe):""}},{key:"performInputMapping",value:function(xe){return xe}},{key:"widget",get:function(){var xe,Oe=this.component.widget;return Oe&&null!==(xe=this.root)&&void 0!==xe&&xe.shadowRoot&&(Oe.shadowRoot=this.root.shadowRoot),Oe&&R.default[Oe.type]?new R.default[Oe.type](Oe,this.component,this):null}},{key:"getBrowserLanguage",value:function(){var Le,xe=window.navigator,Oe=["language","browserLanguage","systemLanguage","userLanguage"];if(Array.isArray(xe.languages))for(var Gt=0;Gt<xe.languages.length;Gt++)if((Le=xe.languages[Gt])&&Le.length)return Le.split(";")[0];for(var Ut=0;Ut<Oe.length;Ut++)if((Le=xe[Oe[Ut]])&&Le.length)return Le.split(";")[0];return null}},{key:"beforePage",value:function(){return o.default.resolve(!0)}},{key:"beforeNext",value:function(){return this.beforePage(!0)}},{key:"beforeSubmit",value:function(){return o.default.resolve(!0)}},{key:"submissionTimezone",get:function(){return this.options.submissionTimezone=this.options.submissionTimezone||l.default.get(this.root,"options.submissionTimezone"),this.options.submissionTimezone}},{key:"timezone",get:function(){return this.getTimezone(this.component)}},{key:"getTimezone",value:function(xe){if(xe.timezone)return xe.timezone;if("utc"===xe.displayInTimezone)return"UTC";var Oe=this.submissionTimezone;return Oe&&("submission"===xe.displayInTimezone||(this.options.pdf||this.options.server)&&"viewer"===xe.displayInTimezone)?Oe:(0,s.currentTimezone)()}},{key:"loadRefs",value:function(xe,Oe){for(var Le in Oe){var Gt=Oe[Le],Ut="string"==typeof Gt,An=Ut&&Gt.includes("scope")?':scope > [ref="'.concat(Le,'"]'):'[ref="'.concat(Le,'"]');this.refs[Le]=Ut&&Gt.startsWith("single")?xe.querySelector(An):xe.querySelectorAll(An)}}},{key:"setOpenModalElement",value:function(xe){this.componentModal.setOpenModalElement(xe||this.getModalPreviewTemplate())}},{key:"getModalPreviewTemplate",value:function(){var xe,Gt,Oe="password"===this.component.type?this.dataValue.replace(/./g,"\u2022"):this.dataValue,Le=this.error?{level:"error",message:this.error.message}:"";return this.hasInput&&null!==(xe=this.component.validate)&&void 0!==xe&&xe.required&&!this.isPDFReadOnlyMode&&(Gt={className:"field-required"}),this.renderTemplate("modalPreview",{previewText:this.getValueAsString(Oe,{modalPreview:!0})||this.t("Click to set value"),messages:Le&&this.renderTemplate("message",Le),labelInfo:Gt})}},{key:"build",value:function(xe){return this.empty(xe=xe||this.element),this.setContent(xe,this.render()),this.attach(xe)}},{key:"hasModalSaveButton",get:function(){return!0}},{key:"render",value:function(){var xe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unknown component: ".concat(this.component.type),Oe=arguments.length>1&&void 0!==arguments[1]&&arguments[1],Le=this.visible;return this.rendered=!0,this.builderMode||this.previewMode||!this.component.modalEdit?this.renderTemplate("component",{visible:Le,id:this.id,classes:this.className,styles:this.customStyle,children:xe},Oe):C.default.render(this,{visible:Le,showSaveButton:this.hasModalSaveButton,id:this.id,classes:this.className,styles:this.customStyle,children:xe},Oe)}},{key:"attachTooltips",value:function(xe){var Oe=this;xe?.forEach(function(Le,Gt){if(Le){var Ut=Le.getAttribute("data-tooltip"),An=Le.getAttribute("data-title"),$n=Oe.interpolate(An||Ut).replace(/(?:\r\n|\r|\n)/g,"<br />");Oe.tooltips[Gt]=(0,a.default)(Le,{allowHTML:!0,trigger:"mouseenter click focus",placement:"right",zIndex:1e4,interactive:!0,content:Oe.t($n,{_userInput:!0})})}})}},{key:"createComponentModal",value:function(xe,Oe,Le){return new C.default(this,xe,Oe,Le)}},{key:"attach",value:function(xe){if(!this.builderMode&&!this.previewMode&&this.component.modalEdit){var Oe=!!this.componentModal&&this.componentModal.isOpened,Gt=this.componentModal&&Oe?this.componentModal.openModalTemplate:null;this.componentModal=this.createComponentModal(xe,Oe,Oe?this.componentModal.currentValue:this.dataValue),this.setOpenModalElement(Gt)}this.attached=!0,this.element=xe,xe.component=this,this.element.id&&(this.id=this.element.id,this.component.id=this.id),this.loadRefs(xe,{messageContainer:"single",tooltip:"multiple"}),this.attachTooltips(this.refs.tooltip),this.attachLogic(),this.autofocus(),this.hook("attachComponent",xe,this);var Ut=this.component.type;return Ut&&this.hook("attach".concat(Ut.charAt(0).toUpperCase()+Ut.substring(1,Ut.length)),xe,this),this.restoreFocus(),this.addons.forEach(function(An){return An.attach(xe)}),o.default.resolve()}},{key:"restoreFocus",value:function(){var xe,Oe,Gt;(null===(xe=this.root)||void 0===xe||null===(Oe=xe.focusedComponent)||void 0===Oe?void 0:Oe.path)===this.path&&(this.loadRefs(this.element,{input:"multiple"}),this.focus(null===(Gt=this.root.currentSelection)||void 0===Gt?void 0:Gt.index),this.restoreCaretPosition())}},{key:"addShortcut",value:function(xe,Oe){!xe||!this.root||this.root===this||(Oe||(Oe=this.component.shortcut),this.root.addShortcut(xe,Oe))}},{key:"removeShortcut",value:function(xe,Oe){!xe||this.root===this||(Oe||(Oe=this.component.shortcut),this.root.removeShortcut(xe,Oe))}},{key:"detach",value:function(){this.refs={},this.removeEventListeners(),this.detachLogic(),this.tooltip&&this.tooltip.destroy()}},{key:"checkRefresh",value:function(xe,Oe,Le){var Gt=l.default.get(Oe,"instance.path",!1);Gt&&this.path===Gt||("data"===xe?this.refresh(this.data,Oe,Le):Gt&&(0,s.getComponentPath)(Oe.instance)===xe&&Oe&&Oe.instance&&this.inContext(Oe.instance)&&this.refresh(Oe.value,Oe,Le))}},{key:"checkRefreshOn",value:function(xe){var Oe=this,Le=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(xe=xe||[],!Le.noRefresh){!xe.length&&Le.changed&&(xe=[Le.changed]);var Gt=Le.fromBlur?this.component.refreshOnBlur:this.component.refreshOn||this.component.redrawOn;Gt&&(Array.isArray(Gt)?Gt.forEach(function(Ut){return xe.forEach(function(An){return Oe.checkRefresh(Ut,An,Le)})}):xe.forEach(function(Ut){return Oe.checkRefresh(Gt,Ut,Le)}))}}},{key:"refresh",value:function(xe){this.refreshOnChanged=!this.hasOwnProperty("refreshOnValue")||!l.default.isEqual(xe,this.refreshOnValue),this.refreshOnValue=(0,s.fastCloneDeep)(xe),this.refreshOnChanged&&(this.component.clearOnRefresh&&this.setValue(null),this.triggerRedraw())}},{key:"inContext",value:function(xe){if(xe.data===this.data)return!0;for(var Oe=this.parent;Oe;){if(Oe.data===xe.data)return!0;Oe=Oe.parent}return!1}},{key:"viewOnly",get:function(){return this.options.readOnly&&this.options.viewAsHtml}},{key:"createViewOnlyElement",value:function(){return this.element=this.ce("dl",{id:this.id}),this.element&&(this.element.component=this),this.element}},{key:"defaultViewOnlyValue",get:function(){return"-"}},{key:"getWidgetValueAsString",value:function(xe,Oe){var Le=this;if(!(xe&&this.refs.input&&this.refs.input[0]&&this.refs.input[0].widget))return this.widget&&xe?this.widget.getValueAsString(xe):xe;if(Array.isArray(xe)){var Ut=[];return xe.forEach(function($n,xn){var mt=Le.refs.input[xn]&&Le.refs.input[xn].widget;mt&&Ut.push(mt.getValueAsString($n,Oe))}),Ut}return this.refs.input[0].widget.getValueAsString(xe,Oe)}},{key:"getValueAsString",value:function(xe,Oe){if(!xe)return"";if(xe=this.getWidgetValueAsString(xe,Oe),Array.isArray(xe))return xe.join(", ");if(l.default.isPlainObject(xe))return JSON.stringify(xe);if(null==xe)return"";var Le=xe.toString();return this.sanitize(Le)}},{key:"getView",value:function(xe,Oe){return this.component.protected?"--- PROTECTED ---":this.getValueAsString(xe,Oe)}},{key:"updateItems",value:function(){this.restoreValue(),this.onChange.apply(this,arguments)}},{key:"itemValue",value:function(xe){var Oe=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(l.default.isObject(xe)&&!l.default.isArray(xe)){if(this.valueProperty)return l.default.get(xe,this.valueProperty);if(Oe)return xe.value}return xe}},{key:"itemValueForHTMLMode",value:function(xe){var Oe=this;return Array.isArray(xe)?xe.map(function(Gt){return Array.isArray(Gt)?Oe.itemValueForHTMLMode(Gt):Oe.itemValue(Gt)}).join(", "):this.itemValue(xe)}},{key:"createModal",value:function(xe,Oe,Le){var Gt=this,Ut=this.ce("div",Oe||{});this.setContent(Ut,this.renderTemplate("dialog")),Ut.refs={},this.loadRefs.call(Ut,Ut,{dialogOverlay:"single",dialogContents:"single",dialogClose:"single"}),Ut.refs.dialogContents.appendChild(xe),document.body.appendChild(Ut),document.body.classList.add("modal-open"),Ut.close=function(){document.body.classList.remove("modal-open"),Ut.dispatchEvent(new CustomEvent("close"))},this.addEventListener(Ut,"close",function(){return Gt.removeChildFrom(Ut,document.body)});var An=function(mt){mt.preventDefault(),Ut.close()},$n=function(mt){Le?Le().then(function(){return An(mt)}).catch(function(){}):An(mt)};return this.addEventListener(Ut.refs.dialogOverlay,"click",$n),this.addEventListener(Ut.refs.dialogClose,"click",$n),Ut}},{key:"optimizeRedraw",get:function(){return!(!this.options.optimizeRedraw||!this.element||this.visible||(this.addClass(this.element,"formio-removed"),0))}},{key:"className",get:function(){var xe=this.hasInput?"".concat(this.transform("class","form-group")," has-feedback "):"";return xe+="formio-component formio-component-".concat(this.component.type," "),this.key&&"form"!==this.key&&(xe+="formio-component-".concat(this.key," ")),this.component.multiple&&(xe+="formio-component-multiple "),this.component.customClass&&(xe+=this.component.customClass),this.hasInput&&this.component.validate&&(0,s.boolValue)(this.component.validate.required)&&(xe+=" required"),this.labelIsHidden()&&(xe+=" formio-component-label-hidden"),this.visible||(xe+=" formio-hidden"),xe}},{key:"customStyle",get:function(){var xe="";return l.default.each(this.component.style,function(Oe,Le){""!==Oe&&(xe+="".concat(Le,":").concat(Oe,";"))}),xe}},{key:"isMobile",get:function(){return(0,u.default)()}},{key:"getElement",value:function(){return this.element}},{key:"evalContext",value:function(xe){return Q(se(De.prototype),"evalContext",this).call(this,Object.assign({component:this.component,row:this.data,rowIndex:this.rowIndex,data:this.rootValue,iconClass:this.iconClass.bind(this),t:this.t.bind(this),submission:this.root?this.root._submission:{data:this.rootValue},form:this.root?this.root._form:{},options:this.options},xe))}},{key:"setPristine",value:function(xe){this.pristine=xe}},{key:"isPristine",get:function(){return this.pristine}},{key:"setDirty",value:function(xe){this.dirty=xe}},{key:"isDirty",get:function(){return this.dirty}},{key:"removeValue",value:function(xe){this.splice(xe),this.redraw(),this.restoreValue(),this.triggerRootChange()}},{key:"iconClass",value:function(xe,Oe){var Le=this.options.iconset||_e.current.defaultIconset||"fa";return _e.current.hasOwnProperty("iconClass")?_e.current.iconClass(Le,xe,Oe):"fa"===this.options.iconset?_e.defaultTemplates.iconClass(Le,xe,Oe):xe}},{key:"size",value:function(xe){return _e.current.hasOwnProperty("size")?_e.current.size(xe):xe}},{key:"name",get:function(){return this.t(this.component.label||this.component.placeholder||this.key,{_userInput:!0})}},{key:"errorLabel",get:function(){return this.t(this.component.errorLabel||this.component.label||this.component.placeholder||this.key)}},{key:"errorMessage",value:function(xe){return this.component.errors&&this.component.errors[xe]?this.component.errors[xe]:xe}},{key:"setContent",value:function(xe,Oe,Le,Gt){return xe instanceof HTMLElement&&(xe.innerHTML=this.sanitize(Oe,Le,Gt),!0)}},{key:"restoreCaretPosition",value:function(){var xe,Oe;if(null!==(xe=this.root)&&void 0!==xe&&xe.currentSelection&&null!==(Oe=this.refs.input)&&void 0!==Oe&&Oe.length){var Le=this.root.currentSelection,Gt=Le.selection,An=this.refs.input[Le.index],$n=/text|search|password|tel|url/i.test(An.type||"");if(An){var xn;$n&&(xn=An).setSelectionRange.apply(xn,L(Gt))}else{var mt,ut=(null===(mt=(An=this.refs.input[this.refs.input.length]).value)||void 0===mt?void 0:mt.length)||0;$n&&An.setSelectionRange(ut,ut)}}}},{key:"redraw",value:function(){if(!this.element||!this.element.parentNode||this.optimizeRedraw)return o.default.resolve();this.detach(),this.emit("redraw");var xe=this.element.parentNode,Oe=Array.prototype.indexOf.call(xe.children,this.element);return this.element.outerHTML=this.sanitize(this.render()),this.element=xe.children[Oe],this.attach(this.element)}},{key:"rebuild",value:function(){return this.destroy(),this.init(),this.visible=this.conditionallyVisible(null,null),this.redraw()}},{key:"removeEventListeners",value:function(){Q(se(De.prototype),"removeEventListeners",this).call(this),this.tooltips.forEach(function(xe){return xe.destroy()}),this.tooltips=[]}},{key:"hasClass",value:function(xe,Oe){if(xe)return Q(se(De.prototype),"hasClass",this).call(this,xe,this.transform("class",Oe))}},{key:"addClass",value:function(xe,Oe){if(xe)return Q(se(De.prototype),"addClass",this).call(this,xe,this.transform("class",Oe))}},{key:"removeClass",value:function(xe,Oe){if(xe)return Q(se(De.prototype),"removeClass",this).call(this,xe,this.transform("class",Oe))}},{key:"hasCondition",value:function(){return null!==this._hasCondition||(this._hasCondition=s.hasCondition(this.component)),this._hasCondition}},{key:"conditionallyVisible",value:function(xe,Oe){return xe=xe||this.rootValue,Oe=Oe||this.data,this.builderMode||this.previewMode||!this.hasCondition()?!this.component.hidden:this.checkCondition(Oe,xe=xe||(this.root?this.root.data:{}))}},{key:"checkCondition",value:function(xe,Oe){return s.checkCondition(this.component,xe||this.data,Oe||this.rootValue,this.root?this.root._form:{},this)}},{key:"checkComponentConditions",value:function(xe,Oe,Le){xe=xe||this.rootValue,Oe=Oe||{},Le=Le||this.data,!this.builderMode&!this.previewMode&&this.fieldLogic(xe,Le)&&this.redraw();var Gt=this.conditionallyVisible(xe,Le);return this.visible!==Gt&&(this.visible=Gt),Gt}},{key:"checkConditions",value:function(xe,Oe,Le){return this.checkComponentConditions(xe=xe||this.rootValue,Oe=Oe||{},Le=Le||this.data)}},{key:"logic",get:function(){return this.component.logic||[]}},{key:"fieldLogic",value:function(xe,Oe){var Le=this;xe=xe||this.rootValue,Oe=Oe||this.data;var Gt=this.logic;if(0!==Gt.length){var Ut=(0,s.fastCloneDeep)(this.originalComponent),An=Gt.reduce(function(xn,mt){var ut=s.checkTrigger(Ut,mt.trigger,Oe,xe,Le.root?Le.root._form:{},Le);return!!ut&&Le.applyActions(Ut,mt.actions,ut,Oe,xe)||xn},!1);if(!l.default.isEqual(this.component,Ut)){this.component=Ut,An=!0;var $n=this.shouldDisabled;this.disabled!==$n&&(this.disabled=$n)}return An}}},{key:"isIE",value:function(){if(typeof window>"u")return!1;var xe=window.navigator.userAgent,Oe=xe.indexOf("MSIE ");if(Oe>0)return parseInt(xe.substring(Oe+5,xe.indexOf(".",Oe)),10);if(xe.indexOf("Trident/")>0){var Gt=xe.indexOf("rv:");return parseInt(xe.substring(Gt+3,xe.indexOf(".",Gt)),10)}var Ut=xe.indexOf("Edge/");return Ut>0&&parseInt(xe.substring(Ut+5,xe.indexOf(".",Ut)),10)}},{key:"defineActionValue",value:function(xe,Oe){return this.evaluate(xe.value,Oe,"value")}},{key:"applyActions",value:function(xe,Oe,Le,Gt,Ut){var An=this;return Ut=Ut||this.rootValue,Gt=Gt||this.data,Oe.reduce(function($n,xn){switch(xn.type){case"property":s.setActionProperty(xe,xn,Le,Gt,Ut,An);var mt=xn.property.value;l.default.isEqual(l.default.get(An.component,mt),l.default.get(xe,mt))||($n=!0);break;case"value":var ut=An.getValue(),Wt=An.defineActionValue(xn,{value:l.default.clone(ut),data:Ut,row:Gt,component:xe,result:Le});!l.default.isEqual(ut,Wt)&&(!An.component.clearOnHide||An.visible)&&(An.setValue(Wt),An.viewOnly&&(An.dataValue=Wt),$n=!0);break;case"mergeComponentSchema":var dn=An.evaluate(xn.schemaDefinition,{value:l.default.clone(An.getValue()),data:Ut,row:Gt,component:xe,result:Le},"schema");l.default.assign(xe,dn),l.default.isEqual(An.component,xe)||($n=!0);break;case"customAction":var sn=An.getValue(),fn=An.evaluate(xn.customAction,{value:l.default.clone(sn),data:Ut,row:Gt,input:sn,component:xe,result:Le},"value");!l.default.isEqual(sn,fn)&&(!An.component.clearOnHide||An.visible)&&(An.setValue(fn),An.viewOnly&&(An.dataValue=fn),$n=!0)}return $n},!1)}},{key:"addInputError",value:function(xe,Oe,Le){this.addMessages(xe),this.setErrorClasses(Le,Oe,!!xe)}},{key:"removeInputError",value:function(xe){this.setErrorClasses(xe,!0,!1)}},{key:"addMessages",value:function(xe){var Oe=this;xe&&("string"==typeof xe&&(xe={messages:xe,level:"error"}),Array.isArray(xe)||(xe=[xe]),xe=l.default.uniqBy(xe,function(Le){return Le.message}),this.refs.messageContainer&&this.setContent(this.refs.messageContainer,xe.map(function(Le){return Le.message&&"string"==typeof Le.message&&(Le.message=Le.message.replaceAll("<","&lt;").replaceAll(">","&gt;")),Oe.renderTemplate("message",Le)}).join("")))}},{key:"setErrorClasses",value:function(xe,Oe,Le,Gt){var Ut=this,An=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.element;this.clearErrorClasses(),xe.forEach(function($n){Ut.setElementInvalid(Ut.performInputMapping($n),!1)}),this.setInputWidgetErrorClasses(xe,Le),Le&&(xe.forEach(function($n){Ut.setElementInvalid(Ut.performInputMapping($n),!0)}),this.addClass(An,Oe&&this.options.highlightErrors?this.options.componentErrorClass:"has-error")),Gt&&this.addClass(An,"has-message")}},{key:"setElementInvalid",value:function(xe,Oe){xe&&(Oe?this.addClass(xe,"is-invalid"):this.removeClass(xe,"is-invalid"),xe.setAttribute("aria-invalid",Oe?"true":"false"))}},{key:"clearOnHide",value:function(){(!this.rootPristine||this.options.server||(0,s.isInsideScopingComponent)(this))&&!1!==this.component.clearOnHide&&!this.options.readOnly&&!this.options.showHiddenFields&&(this.visible?!this.hasValue()&&this.shouldAddDefaultValue&&this.setValue(this.defaultValue,{noUpdateEvent:!0}):this.deleteValue())}},{key:"triggerRootChange",value:function(){var xe;if(this.options.onChange)(xe=this.options).onChange.apply(xe,arguments);else if(this.root){var Oe;(Oe=this.root).triggerChange.apply(Oe,arguments)}}},{key:"onChange",value:function(xe,Oe){(xe=xe||{}).modified&&(xe.noPristineChangeOnModified||(this.pristine=!1),this.addClass(this.getElement(),"formio-modified")),"blur"===this.component.validateOn&&!this.errors.length&&(xe.noValidate=!0),this.component.onChange&&this.evaluate(this.component.onChange,{flags:xe});var Le={instance:this,component:this.component,value:this.dataValue,flags:xe};this.emit("componentChange",Le);var Gt=!1;return xe.modified&&(Gt=!0,delete xe.modified),Oe||this.triggerRootChange(xe,Le,Gt),Le}},{key:"wysiwygDefault",get:function(){return{quill:{theme:"snow",placeholder:this.t(this.component.placeholder,{_userInput:!0}),modules:{toolbar:[[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{font:[]}],["bold","italic","underline","strike",{script:"sub"},{script:"super"},"clean"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["blockquote","code-block"],["link","image","video","formula","source"]]}},ace:{theme:"ace/theme/xcode",maxLines:12,minLines:12,tabSize:2,mode:"ace/mode/javascript",placeholder:this.t(this.component.placeholder,{_userInput:!0})},ckeditor:{image:{toolbar:["imageTextAlternative","|","imageStyle:full","imageStyle:alignLeft","imageStyle:alignCenter","imageStyle:alignRight"],styles:["full","alignLeft","alignCenter","alignRight"]},extraPlugins:[]},default:{}}}},{key:"addCKE",value:function(xe,Oe,Le){return(Oe=l.default.isEmpty(Oe)?{}:Oe).base64Upload=!this.component.isUploadEnabled,Oe.mediaEmbed={previewsInData:!0},Oe=l.default.merge(this.wysiwygDefault.ckeditor,l.default.get(this.options,"editors.ckeditor.settings",{}),Oe),this.component.isUploadEnabled&&Oe.extraPlugins.push((0,f.getFormioUploadAdapterPlugin)(this.fileService,this)),d.GlobalFormio.requireLibrary("ckeditor",ne?"CKEDITOR":"ClassicEditor",l.default.get(this.options,"editors.ckeditor.src","".concat(d.GlobalFormio.cdn.ckeditor,"/ckeditor.js")),!0).then(function(){if(!xe.parentNode)return o.default.reject();if(ne){var Gt=CKEDITOR.replace(xe);return Gt.on("change",function(){return Le(Gt.getData())}),o.default.resolve(Gt)}return ClassicEditor.create(xe,Oe).then(function(Ut){return Ut.model.document.on("change",function(){return Le(Ut.data.get())}),Ut})})}},{key:"addQuill",value:function(xe,Oe,Le){var Gt=this;return Oe=l.default.isEmpty(Oe)?this.wysiwygDefault.quill:Oe,Oe=E(E({},Oe=l.default.merge(this.wysiwygDefault.quill,l.default.get(this.options,"editors.quill.settings",{}),Oe)),{},{modules:E({table:!0},Oe.modules)}),d.GlobalFormio.requireLibrary("quill-css-".concat(Oe.theme),"Quill",[{type:"styles",src:"".concat(d.GlobalFormio.cdn.quill,"/quill.").concat(Oe.theme,".css")}],!0),d.GlobalFormio.requireLibrary("quill","Quill",l.default.get(this.options,"editors.quill.src","".concat(d.GlobalFormio.cdn.quill,"/quill.min.js")),!0).then(function(){return d.GlobalFormio.requireLibrary("quill-table","Quill","".concat(d.GlobalFormio.cdn.baseUrl,"/quill/quill-table.js"),!0).then(function(){if(!xe.parentNode)return o.default.reject();Gt.quill=new Quill(xe,ne?E(E({},Oe),{},{modules:{}}):Oe);var Ut=document.createElement("textarea");Ut.setAttribute("class","quill-source-code"),Gt.quill.addContainer("ql-custom").appendChild(Ut);var An=xe.parentNode.querySelector(".ql-source");An&&Gt.addEventListener(An,"click",function(mt){mt.preventDefault(),"inherit"===Ut.style.display&&Gt.quill.setContents(Gt.quill.clipboard.convert({html:Ut.value})),Ut.style.display="none"===Ut.style.display?"inherit":"none"}),Gt.addEventListener(xe,"click",function(){return Gt.quill.focus()});for(var $n=document.querySelectorAll(".ql-formats > button"),xn=0;xn<$n.length;xn++)$n[xn].setAttribute("tabindex","-1");return Gt.quill.on("text-change",function(){Ut.value=Gt.quill.root.innerHTML,Le(Ut)}),Gt.quill})})}},{key:"shouldSanitizeValue",get:function(){var xe;return!1!==(null===(xe=this.options)||void 0===xe?void 0:xe.sanitize)}},{key:"addAce",value:function(xe,Oe,Le){if(!Oe||"snow"===Oe.theme){var Gt=Oe?Oe.mode:"";Oe={},Gt&&(Oe.mode=Gt)}return Oe=l.default.merge(this.wysiwygDefault.ace,l.default.get(this.options,"editors.ace.settings",{}),Oe||{}),d.GlobalFormio.requireLibrary("ace","ace",l.default.get(this.options,"editors.ace.src","".concat(d.GlobalFormio.cdn.ace,"/ace.js")),!0).then(function(Ut){return(Ut=Ut.edit(xe)).removeAllListeners("change"),Ut.setOptions(Oe),Ut.getSession().setMode(Oe.mode),Ut.on("change",function(){return Le(Ut.getValue())}),Oe.isUseWorkerDisabled&&Ut.session.setUseWorker(!1),Ut})}},{key:"tree",get:function(){return this.component.tree||!1}},{key:"emptyValue",get:function(){return null}},{key:"hasValue",value:function(xe){return!l.default.isUndefined(l.default.get(xe||this.data,this.key))}},{key:"rootValue",get:function(){return this.root?this.root.data:this.data}},{key:"rootPristine",get:function(){return l.default.get(this,"root.pristine",!1)}},{key:"dataValue",get:function(){if(!this.key||!this.visible&&this.component.clearOnHide&&!this.rootPristine)return this.emptyValue;if(!this.hasValue()&&this.shouldAddDefaultValue){var xe=this.component.multiple?[]:this.emptyValue;return this.rootPristine||(this.dataValue=xe),xe}return l.default.get(this._data,this.key)},set:function(xe){if(this.allowData&&this.key&&(this.visible||!this.component.clearOnHide||this.rootPristine)){if(null!=xe&&(xe=this.hook("setDataValue",xe,this.key,this._data)),null==xe)return void this.unset();l.default.set(this._data,this.key,xe)}}},{key:"splice",value:function(xe){var Oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.hasValue()){var Le=this.dataValue||[];l.default.isArray(Le)&&Le.hasOwnProperty(xe)&&(Le.splice(xe,1),this.dataValue=Le,this.triggerChange(Oe))}}},{key:"unset",value:function(){l.default.unset(this._data,this.key)}},{key:"deleteValue",value:function(){this.setValue(null,{noUpdateEvent:!0,noDefault:!0}),this.unset()}},{key:"getCustomDefaultValue",value:function(xe){return this.component.customDefaultValue&&!this.options.preview&&(xe=this.evaluate(this.component.customDefaultValue,{value:""},"value")),xe}},{key:"shouldAddDefaultValue",get:function(){return!this.options.noDefaults||this.component.defaultValue&&!this.isEmpty(this.component.defaultValue)||this.component.customDefaultValue}},{key:"defaultValue",get:function(){var xe=this,Oe=this.emptyValue;this.component.defaultValue&&(Oe=this.component.defaultValue),Oe=this.getCustomDefaultValue(Oe);var Le=function(Ut){return"string"==typeof Ut?(Ut=(0,n.conformToMask)(Ut,xe.defaultMask,{placeholderChar:xe.placeholderChar}).conformedValue,s.matchInputMask(Ut,xe.defaultMask)||(Ut="")):Ut="",Ut};return this.defaultMask&&(Oe=Array.isArray(Oe)?Oe.map(Le):Le(Oe)),l.default.cloneDeep(Oe)}},{key:"getValue",value:function(){if(!this.hasInput||this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var xe=[];for(var Oe in this.refs.input)if(this.refs.input.hasOwnProperty(Oe)){if(!this.component.multiple)return this.getValueAt(Oe);xe.push(this.getValueAt(Oe))}return 0!==xe.length||this.component.multiple?xe:""}},{key:"getValueAt",value:function(xe){var Oe=this.performInputMapping(this.refs.input[xe]);return Oe?Oe.value:void 0}},{key:"setValue",value:function(xe){var Oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Le=this.updateValue(xe,Oe);if(xe=this.dataValue,!this.hasInput)return Le;var Gt=Array.isArray(xe),Ut=this.refs.fileLink||this.refs.input;if(Gt&&Array.isArray(this.defaultValue)&&this.refs.hasOwnProperty("input")&&Ut&&Ut.length!==xe.length&&this.visible&&this.redraw(),this.isHtmlRenderMode()&&Oe&&Oe.fromSubmission&&Le)return this.redraw(),Le;for(var An in this.refs.input)this.refs.input.hasOwnProperty(An)&&this.setValueAt(An,Gt?xe[An]:xe,Oe);return Le}},{key:"setValueAt",value:function(xe,Oe){!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).noDefault&&null==Oe&&!this.component.multiple&&(Oe=this.defaultValue);var Gt=this.performInputMapping(this.refs.input[xe]),Ut=this.refs.valueMaskInput;null!=Ut&&Ut.mask&&Ut.mask.textMaskInputElement.update(Oe),Gt.mask?Gt.mask.textMaskInputElement.update(Oe):Gt.widget&&Gt.widget.setValue?Gt.widget.setValue(Oe):Gt.value=Oe}},{key:"hasSetValue",get:function(){return this.hasValue()&&!this.isEmpty(this.dataValue)}},{key:"setDefaultValue",value:function(){this.defaultValue&&this.shouldAddDefaultValue&&this.setValue(this.component.multiple&&!this.dataValue.length?[]:this.defaultValue,{noUpdateEvent:!0})}},{key:"restoreValue",value:function(){this.hasSetValue?this.setValue(this.dataValue,{noUpdateEvent:!0}):this.setDefaultValue()}},{key:"normalizeValue",value:function(xe){return this.component.multiple&&!Array.isArray(xe)&&(xe=xe?[xe]:[]),xe}},{key:"updateComponentValue",value:function(xe){var Oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Le=Oe.resetValue||null!=xe?xe:this.getValue();Le=this.normalizeValue(Le,Oe);var Gt=this.dataValue,Ut=void 0!==Le&&this.hasChanged(Le,Gt);return Ut&&(this.dataValue=Le,this.updateOnChange(Oe,Ut=this.dataValue!==Gt)),this.componentModal&&Oe&&Oe.fromSubmission&&this.componentModal.setValue(xe),Ut}},{key:"updateValue",value:function(){return this.updateComponentValue.apply(this,arguments)}},{key:"getIcon",value:function(xe,Oe,Le){var Gt=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"icon";return this.renderTemplate("icon",{className:this.iconClass(xe),ref:Gt,styles:Le,content:Oe})}},{key:"resetValue",value:function(){this.unset(),this.setValue(this.emptyValue,{noUpdateEvent:!0,noValidate:!0,resetValue:!0})}},{key:"hasChanged",value:function(xe,Oe){return!(null==xe&&(null==Oe||this.isEmpty(Oe))||(null==xe||!this.allowData||this.hasValue())&&l.default.isEqual(xe,Oe))}},{key:"updateOnChange",value:function(){var xe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!(xe.noUpdateEvent||!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||(this.triggerChange(xe),0))}},{key:"convertNumberOrBoolToString",value:function(xe){return"number"==typeof xe||"boolean"==typeof xe?xe.toString():xe}},{key:"doValueCalculation",value:function(xe,Oe,Le){var Gt;return this.evaluate(this.component.calculateValue,{value:xe,data:Oe,row:Le||this.data,submission:(null===(Gt=this.root)||void 0===Gt?void 0:Gt._submission)||{data:this.rootValue}},"value")}},{key:"calculateComponentValue",value:function(xe,Oe,Le){if(l.default.isUndefined(l.default.get(this,"root.data")))return!1;var Ut=!this.visible&&this.component.clearOnHide,An=l.default.get(this.component,"allowCalculateOverride",!1);if(this.options.readOnly&&!this.options.pdf&&!this.component.calculateValue||!this.component.calculateValue&&!this.component.calculateValueVariable||Ut||this.options.server&&!this.component.calculateServer||Oe.dataSourceInitialLoading&&An)return!1;var $n=this.dataValue,xn=this.doValueCalculation($n,xe,Le,Oe);if(this.options.readOnly&&$n&&!xn)return!1;l.default.isNil(xn)&&(xn=this.emptyValue);var mt=!l.default.isEqual($n,xn);if(An){var ut=Oe.fromSubmission&&!0===this.component.persistent;if(this.isEmpty($n))this.calculationLocked=!1;else if(this.calculationLocked||ut)return this.calculationLocked=!0,!1;var Wt=void 0===this.calculatedValue;Wt&&(this.calculatedValue=null);var dn=this.normalizeValue(this.convertNumberOrBoolToString(xn)),sn=this.normalizeValue(this.convertNumberOrBoolToString(this.calculatedValue)),fn=this.normalizeValue(this.convertNumberOrBoolToString($n)),yi=!l.default.isEqual(sn,dn),nn=!l.default.isEqual(fn,sn);if(yi&&nn&&!Wt||sn&&nn&&!yi||Oe.isReordered||!yi)return!1;if(ut)return this.calculatedValue=xn,!1;if(Wt&&!this.isEmpty($n)&&mt&&yi)return!0}return this.calculatedValue=xn,!!mt&&(Oe.noPristineChangeOnModified||(this.pristine=!1),Oe.triggeredComponentId=this.id,this.setValue(xn,Oe))}},{key:"calculateValue",value:function(xe,Oe,Le){return this.calculateComponentValue(xe=xe||this.rootValue,Oe=Oe||{},Le=Le||this.data)}},{key:"label",get:function(){return this.component.label},set:function(xe){this.component.label=xe,this.labelElement&&(this.labelElement.innerText=xe)}},{key:"getRoot",value:function(){return this.root}},{key:"invalidMessage",value:function(xe,Oe,Le,Gt){return Le||this.checkCondition(Gt,xe)?this.invalid?this.invalid:!this.hasInput||!Oe&&this.pristine?"":l.default.map(A.default.checkComponent(this,xe),"message").join("\n\n"):""}},{key:"isValid",value:function(xe,Oe){return!this.invalidMessage(xe,Oe)}},{key:"setComponentValidity",value:function(xe,Oe,Le){var Gt=!!xe.filter(function(Ut){return"error"===Ut.level&&!Ut.fromServer}).length;return!xe.length||Le&&!this.error||this.isEmpty(this.defaultValue)&&!Oe&&this.pristine?Le||this.setCustomValidity(""):this.setCustomValidity(xe,Oe),!Gt}},{key:"checkComponentValidity",value:function(xe,Oe,Le){var Gt,Ut=this,An=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},$n=An.async,xn=void 0!==$n&&$n,mt=An.silentCheck,ut=void 0!==mt&&mt;if(this.shouldSkipValidation(xe=xe||this.rootValue,Oe,Le=Le||this.data))return this.setCustomValidity(""),!xn||o.default.resolve(!0);var Wt=A.default.checkComponent(this,xe,Le,!0,xn),dn=Wt;return null!==(Gt=this.serverErrors)&&void 0!==Gt&&Gt.length&&(dn=Wt.concat(this.serverErrors)),xn?dn.then(function(sn){return Ut.setComponentValidity(sn,Oe,ut)}):this.setComponentValidity(dn,Oe,ut)}},{key:"checkValidity",value:function(xe,Oe,Le,Gt){var Ut=this.checkComponentValidity(xe=xe||this.rootValue,Oe,Le=Le||this.data,{silentCheck:Gt});return this.checkModal(),Ut}},{key:"checkAsyncValidity",value:function(xe,Oe,Le,Gt){return o.default.resolve(this.checkComponentValidity(xe,Oe,Le,{async:!0,silentCheck:Gt}))}},{key:"checkData",value:function(xe,Oe,Le){if(xe=xe||this.rootValue,Oe=Oe||{},Le=Le||this.data,this.resetCaches(),Oe.fromBlur||this.checkRefreshOn(Oe.changes,Oe),Oe.noCheck)return!0;if(this.checkComponentConditions(xe,Oe,Le),this.id!==Oe.triggeredComponentId&&this.calculateComponentValue(xe,Oe,Le),Oe.noValidate&&!Oe.validateOnInit&&!Oe.fromIframe)return Oe.fromSubmission&&this.rootPristine&&this.pristine&&this.error&&Oe.changed&&this.checkComponentValidity(xe,!!this.options.alwaysDirty,Le,!0),!0;var Gt=!1;if((this.options.alwaysDirty||Oe.dirty)&&(Gt=!0),Oe.fromSubmission&&this.hasValue(xe)&&(Gt=!0),this.setDirty(Gt),"blur"===this.component.validateOn&&Oe.fromSubmission)return!0;var Ut=this.checkComponentValidity(xe,Gt,Le,Oe);return this.checkModal(),Ut}},{key:"checkModal",value:function(){var xe=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],Oe=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!this.component.modalEdit||!this.componentModal||(Oe&&!xe?this.setErrorClasses([this.refs.openModal],Oe,!xe,!!this.errors.length,this.refs.openModalWrapper):this.clearErrorClasses(this.refs.openModalWrapper))}},{key:"validationValue",get:function(){return this.dataValue}},{key:"isEmpty",value:function(){var xe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue,Oe=!(!l.default.isArray(xe)||1!==xe.length)&&l.default.isEqual(xe[0],this.emptyValue);return null==xe||0===xe.length||l.default.isEqual(xe,this.emptyValue)||Oe}},{key:"isEqual",value:function(xe){var Oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.dataValue;return this.isEmpty(xe)&&this.isEmpty(Oe)||l.default.isEqual(xe,Oe)}},{key:"validateMultiple",value:function(){return!0}},{key:"errors",get:function(){return this.error?[this.error]:[]}},{key:"clearErrorClasses",value:function(){var xe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.element;this.removeClass(xe,this.options.componentErrorClass),this.removeClass(xe,"alert alert-danger"),this.removeClass(xe,"has-error"),this.removeClass(xe,"has-message")}},{key:"setInputWidgetErrorClasses",value:function(xe,Oe){!this.isInputComponent||!this.component.widget||null==xe||!xe.length||xe.forEach(function(Le){null!=Le&&Le.widget&&Le.widget.setErrorClasses&&Le.widget.setErrorClasses(Oe)})}},{key:"addFocusBlurEvents",value:function(xe){var Oe=this;this.addEventListener(xe,"focus",function(){Oe.root.focusedComponent!==Oe?(Oe.root.pendingBlur&&Oe.root.pendingBlur(),Oe.root.focusedComponent=Oe,Oe.emit("focus",Oe)):Oe.root.focusedComponent===Oe&&Oe.root.pendingBlur&&(Oe.root.pendingBlur.cancel(),Oe.root.pendingBlur=null)}),this.addEventListener(xe,"blur",function(){Oe.root.pendingBlur=s.delay(function(){Oe.emit("blur",Oe),"blur"===Oe.component.validateOn&&Oe.root.triggerChange({fromBlur:!0},{instance:Oe,component:Oe.component,value:Oe.dataValue,flags:{fromBlur:!0}}),Oe.root.focusedComponent=null,Oe.root.pendingBlur=null})})}},{key:"setCustomValidity",value:function(xe,Oe,Le){var Gt=this,Ut=this.isInputComponent?this.refs.input||[]:null;"string"==typeof xe&&xe&&(xe={level:"error",message:xe}),Array.isArray(xe)||(xe=xe?[xe]:[]);var An=!!xe.filter(function(mt){return"error"===mt.level}).length,$n=Ut;if(this.component.multiple){var xn=Array.from(Ut);xn.forEach(function(mt){Gt.setElementInvalid(Gt.performInputMapping(mt),!1)}),this.setInputWidgetErrorClasses(xn,!1),$n=xn.filter(function(mt){var ut,Wt;return null===(ut=(Wt=xe).some)||void 0===ut?void 0:ut.call(Wt,function(dn){var sn;return(null==dn||null===(sn=dn.context)||void 0===sn?void 0:sn.input)===mt})})}xe.length?(this.refs.messageContainer&&this.empty(this.refs.messageContainer),this.error={component:this.component,message:xe[0].message,messages:xe,external:!!Le},this.emit("componentError",this.error),this.addMessages(xe,Oe,$n),$n&&this.setErrorClasses($n,Oe,An,!!xe.length)):(!this.error||this.error&&this.error.external===!!Le)&&(this.refs.messageContainer&&this.empty(this.refs.messageContainer),this.refs.modalMessageContainer&&this.empty(this.refs.modalMessageContainer),this.error=null,$n&&this.setErrorClasses($n,Oe,An,!!xe.length),this.clearErrorClasses())}},{key:"isValueHidden",value:function(){return!(this.component.protected&&this.root.editing||!this.root||!this.root.hasOwnProperty("editing")||!this.root||!this.root.editing)&&(this.component.protected||!this.component.persistent||"client-only"===this.component.persistent)}},{key:"shouldSkipValidation",value:function(xe,Oe,Le){var Gt=this;return[function(){return Gt.component.validate.custom&&!Gt.dataValue&&!Gt.component.validate.required},function(){return Gt.options.readOnly},function(){return!Gt.hasInput},function(){return Gt.isValueHidden()},function(){return!Gt.visible},function(){return!Gt.checkCondition(Le,xe)}].some(function(An){return An()})}},{key:"whenReady",value:function(){return console.warn("The whenReady() method has been deprecated. Please use the dataReady property instead."),this.dataReady}},{key:"dataReady",get:function(){return o.default.resolve()}},{key:"asString",value:function(xe){return xe=xe||this.getValue(),(Array.isArray(xe)?xe:[xe]).map(l.default.toString).join(", ")}},{key:"disabled",get:function(){return this._disabled||this.parentDisabled},set:function(xe){this._disabled=xe}},{key:"setDisabled",value:function(xe,Oe){xe&&(xe.disabled=Oe,Oe?xe.setAttribute("disabled","disabled"):xe.removeAttribute("disabled"))}},{key:"setLoading",value:function(xe,Oe){!xe||xe.loading===Oe||(xe.loading=Oe,!xe.loader&&Oe&&(xe.loader=this.ce("i",{class:"".concat(this.iconClass("refresh",!0)," button-icon-right")})),xe.loader&&(Oe?this.appendTo(xe.loader,xe):this.removeChildFrom(xe.loader,xe)))}},{key:"selectOptions",value:function(xe,Oe,Le,Gt){var Ut=this;l.default.each(Le,function(An){var $n={value:An.value};void 0!==Gt&&An.value===Gt&&($n.selected="selected");var xn=Ut.ce("option",$n);xn.appendChild(Ut.text(An.label)),xe.appendChild(xn)})}},{key:"setSelectValue",value:function(xe,Oe){var Le=xe.querySelectorAll("option");l.default.each(Le,function(Gt){Gt.value===Oe?Gt.setAttribute("selected","selected"):Gt.removeAttribute("selected")}),xe.onchange&&xe.onchange(),xe.onselect&&xe.onselect()}},{key:"getRelativePath",value:function(xe){var Oe=".".concat(this.key),Le=this.isInputComponent?this.path:this.path.slice(0).replace(Oe,"");return xe.replace(Le,"")}},{key:"clear",value:function(){this.detach(),this.empty(this.getElement())}},{key:"append",value:function(xe){this.appendTo(xe,this.element)}},{key:"prepend",value:function(xe){this.prependTo(xe,this.element)}},{key:"removeChild",value:function(xe){this.removeChildFrom(xe,this.element)}},{key:"detachLogic",value:function(){var xe=this;this.logic.forEach(function(Oe){if("event"===Oe.trigger.type){var Le=xe.interpolate(Oe.trigger.event);xe.off(Le)}})}},{key:"attachLogic",value:function(){var xe=this;this.builderMode||this.logic.forEach(function(Oe){if("event"===Oe.trigger.type){var Le=xe.interpolate(Oe.trigger.event);xe.on(Le,function(){for(var Gt=(0,s.fastCloneDeep)(xe.originalComponent),Ut=arguments.length,An=new Array(Ut),$n=0;$n<Ut;$n++)An[$n]=arguments[$n];if(xe.applyActions(Gt,Oe.actions,An)&&!l.default.isEqual(xe.component,Gt)){xe.component=Gt;var xn=xe.conditionallyVisible(null,null),mt=xe.shouldDisabled;xe.visible!==xn&&(xe.visible=xn),xe.disabled!==mt&&(xe.disabled=mt),xe.redraw()}},!0)}})}},{key:"elementInfo",value:function(){var xe={name:this.options.name,type:this.component.inputType||"text",class:"form-control",lang:this.options.language};return this.component.placeholder&&(xe.placeholder=this.t(this.component.placeholder,{_userInput:!0})),this.component.tabindex&&(xe.tabindex=this.component.tabindex),this.disabled&&(xe.disabled="disabled"),l.default.defaults(xe,this.component.attributes),{type:"input",component:this.component,changeEvent:"change",attr:xe}}},{key:"autofocus",value:function(){var xe=this;this.component.autofocus&&!this.builderMode&&!this.options.preview&&this.on("render",function(){return xe.focus()},!0)}},{key:"scrollIntoView",value:function(){var xe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.element;if(xe){var Oe=xe.getBoundingClientRect();window.scrollTo(Oe.left+window.scrollX,Oe.top+window.scrollY)}}},{key:"focus",value:function(xe){var Oe;if("beforeFocus"in this.parent&&this.parent.beforeFocus(this),null!==(Oe=this.refs.input)&&void 0!==Oe&&Oe.length){var Le,Gt="number"==typeof xe&&this.refs.input[xe]?this.refs.input[xe]:this.refs.input[this.refs.input.length-1];if("calendar"===(null===(Le=this.component.widget)||void 0===Le?void 0:Le.type)){var Ut=Gt.nextSibling;Ut&&Ut.focus()}else Gt.focus()}this.refs.openModal&&this.refs.openModal.focus(),this.parent.refs.openModal&&this.parent.refs.openModal.focus()}},{key:"fileService",get:function(){if(this.options.fileService)return this.options.fileService;if(this.options.formio)return this.options.formio;if(this.root&&this.root.formio)return this.root.formio;var xe=new d.GlobalFormio;return this.root&&this.root._form&&this.root._form._id&&(xe.formUrl="".concat(xe.projectUrl,"/form/").concat(this.root._form._id)),xe}},{key:"resetCaches",value:function(){}},{key:"previewMode",get:function(){return!1}}],[{key:"schema",value:function(){for(var xe=arguments.length,Oe=new Array(xe),Le=0;Le<xe;Le++)Oe[Le]=arguments[Le];return l.default.merge.apply(l.default,[{input:!0,key:"",placeholder:"",prefix:"",customClass:"",suffix:"",multiple:!1,defaultValue:null,protected:!1,unique:!1,persistent:!0,hidden:!1,clearOnHide:!0,refreshOn:"",redrawOn:"",tableView:!1,modalEdit:!1,label:"",dataGridLabel:!1,labelPosition:"top",description:"",errorLabel:"",tooltip:"",hideLabel:!1,tabindex:"",disabled:!1,autofocus:!1,dbIndex:!1,customDefaultValue:"",calculateValue:"",calculateServer:!1,widget:null,attributes:{},validateOn:"change",validate:{required:!1,custom:"",customPrivate:!1,strictDateValidation:!1,multiple:!1,unique:!1},conditional:{show:null,when:null,eq:""},overlay:{style:"",left:"",top:"",width:"",height:""},allowCalculateOverride:!1,encrypted:!1,showCharCount:!1,showWordCount:!1,properties:{},allowMultipleMasks:!1,addons:[]}].concat(Oe))}},{key:"Validator",get:function(){return A.default}},{key:"tableView",value:function(xe,Oe){}},{key:"serverConditionSettings",get:function(){return{operators:["isEqual","isNotEqual","isEmpty","isNotEmpty"],valueComponent:function(){return{type:"textfield"}}}}}]),De}(_.default);y.default=ge,ge.externalLibraries={},ge.requireLibrary=function(Ce,Te,De,fe){if(!ge.externalLibraries.hasOwnProperty(Ce)){ge.externalLibraries[Ce]={},ge.externalLibraries[Ce].ready=new o.default(function(Le,Gt){ge.externalLibraries[Ce].resolve=Le,ge.externalLibraries[Ce].reject=Gt});var xe="".concat(Ce,"Callback");!fe&&!window[xe]&&(window[xe]=function(){this.resolve()}.bind(ge.externalLibraries[Ce]));var Oe=l.default.get(window,Te);Oe?ge.externalLibraries[Ce].resolve(Oe):((De=Array.isArray(De)?De:[De]).forEach(function(Le){var Gt={},Ut="";switch("string"==typeof Le&&(Le={type:"script",src:Le}),Le.type){case"script":Ut="script",Gt={src:Le.src,type:"text/javascript",defer:!0,async:!0};break;case"styles":Ut="link",Gt={href:Le.src,rel:"stylesheet"}}var An=document.createElement(Ut);for(var $n in Gt)An.setAttribute($n,Gt[$n]);document.getElementsByTagName("head")[0].appendChild(An)}),fe&&setTimeout(function Le(){var Gt=l.default.get(window,Te);Gt?ge.externalLibraries[Ce].resolve(Gt):setTimeout(Le,200)},200))}return ge.externalLibraries[Ce].ready},ge.libraryReady=function(Ce){return ge.externalLibraries.hasOwnProperty(Ce)&&ge.externalLibraries[Ce].ready?ge.externalLibraries[Ce].ready:o.default.reject("".concat(Ce," library was not required."))}},27379:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{weight:0,type:"textfield",input:!0,key:"key",label:"Property Name",tooltip:"The name of this field in the API endpoint.",validate:{pattern:"(\\w|\\w[\\w-.]*\\w)",patternMessage:"The property name must only contain alphanumeric characters, underscores, dots and dashes and should not be ended by dash or dot.",required:!0}},{weight:100,type:"tags",input:!0,label:"Field Tags",storeas:"array",tooltip:"Tag the field for use in custom logic.",key:"tags"},{weight:200,type:"datamap",label:"Custom Properties",tooltip:"This allows you to configure any custom properties for this component.",key:"properties",valueComponent:{type:"textfield",key:"value",label:"Value",placeholder:"Value",input:!0}}]},27859:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function o(l){return l&&l.__esModule?l:{default:l}}(i(35720)),n=i(12866),a=[{type:"panel",title:"Simple",key:"simple-conditional",theme:"default",weight:105,components:[{type:"select",input:!0,label:"This component should Display:",key:"conditional.show",dataSrc:"values",data:{values:[{label:"True",value:"true"},{label:"False",value:"false"}]}},{type:"select",input:!0,label:"When the form component:",key:"conditional.when",dataSrc:"custom",valueProperty:"value",data:{custom:function(u){return(0,n.getContextComponents)(u)}}},{type:"textfield",input:!0,label:"Has the value:",key:"conditional.eq"}]},e.default.javaScriptValue("Advanced Conditions","customConditional","conditional.json",110,"<p>You must assign the <strong>show</strong> variable a boolean result.</p><p><strong>Note: Advanced Conditional logic will override the results of the Simple Conditional logic.</strong></p><h5>Example</h5><pre>show = !!data.showMe;</pre>",'<p><a href="http://formio.github.io/formio.js/app/examples/conditions.html" target="_blank" rel="noopener noreferrer">Click here for an example</a></p>')];y.default=a},72483:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(35720)),o=[{weight:0,type:"checkbox",label:"Multiple Values",tooltip:"Allows multiple values to be entered for this field.",key:"multiple",input:!0},{type:"textfield",label:"Default Value",key:"defaultValue",weight:5,placeholder:"Default Value",tooltip:"The Default Value will be the value for this field, before user interaction. Having a default value will override the placeholder text.",input:!0},{weight:30,type:"radio",label:"Persistent",tooltip:"A persistent field will be stored in database when the form is submitted.",key:"persistent",input:!0,inline:!0,defaultValue:!0,values:[{label:"None",value:!1},{label:"Server",value:!0},{label:"Client",value:"client-only"}]},{weight:150,type:"checkbox",label:"Protected",tooltip:"A protected field will not be returned when queried via API.",key:"protected",input:!0},{type:"checkbox",input:!0,weight:200,key:"dbIndex",label:"Database Index",tooltip:"Set this field as an index within the database. Increases performance for submission queries."},{weight:400,type:"checkbox",label:"Encrypted",tooltip:"Encrypt this field on the server. This is two way encryption which is not suitable for passwords.",key:"encrypted",input:!0,logic:[{name:"disabled",trigger:{type:"javascript",javascript:"result = !instance.root.options.sac;"},actions:[{name:"disabled",type:"property",property:{label:"Disabled",value:"disabled",type:"boolean"},state:!0}]},{name:"disabledToolTip",trigger:{type:"javascript",javascript:"result = !instance.root.options.sac;"},actions:[{name:"addDisabledTooltip",type:"property",property:{label:"Tooltip",value:"tooltip",type:"string"},text:"Only available with Security Module. Contact sales@form.io for more information."}]}]},{type:"select",input:!0,key:"redrawOn",label:"Redraw On",weight:600,tooltip:"Redraw this component if another component changes. This is useful if interpolating parts of the component like the label.",dataSrc:"custom",valueProperty:"value",data:{custom:function(l){var u=[];return u.push({label:"Any Change",value:"data"}),l.utils.eachComponent(l.instance.options.editForm.components,function(d,s){d.key!==l.data.key&&u.push({label:d.label||d.key,value:s})}),u}},conditional:{json:{"!":[{var:"data.dataSrc"}]}}},{weight:700,type:"checkbox",label:"Clear Value When Hidden",key:"clearOnHide",defaultValue:!0,tooltip:"When a field is hidden, clear the value.",input:!0},e.default.javaScriptValue("Custom Default Value","customDefaultValue","customDefaultValue",1e3,'<p><h4>Example:</h4><pre>value = data.firstName + " " + data.lastName;</pre></p>','<p><h4>Example:</h4><pre>{"cat": [{"var": "data.firstName"}, " ", {"var": "data.lastName"}]}</pre>'),e.default.javaScriptValue("Calculated Value","calculateValue","calculateValue",1100,"<p><h4>Example:</h4><pre>value = data.a + data.b + data.c;</pre></p>",'<p><h4>Example:</h4><pre>{"+": [{"var": "data.a"}, {"var": "data.b"}, {"var": "data.c"}]}</pre><p><a href="http://formio.github.io/formio.js/app/examples/calculated.html" target="_blank" rel="noopener noreferrer">Click here for an example</a></p>',"<tr><th>token</th><td>The decoded JWT token for the authenticated user.</td></tr>"),{type:"checkbox",input:!0,weight:1100,key:"calculateServer",label:"Calculate Value on server",tooltip:"Checking this will run the calculation on the server. This is useful if you wish to override the values submitted with the calculations performed on the server."},{type:"checkbox",input:!0,weight:1200,key:"allowCalculateOverride",label:"Allow Manual Override of Calculated Value",tooltip:"When checked, this will allow the user to manually override the calculated value."}];y.default=o},36784:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(25847),y.default=[{weight:0,type:"textfield",input:!0,key:"label",label:"Label",placeholder:"Field Label",tooltip:"The label for this field that will appear next to it.",validate:{required:!0},autofocus:!0},{type:"select",input:!0,key:"labelPosition",label:"Label Position",tooltip:"Position for the label for this field.",weight:20,defaultValue:"top",dataSrc:"values",data:{values:[{label:"Top",value:"top"},{label:"Left (Left-aligned)",value:"left-left"},{label:"Left (Right-aligned)",value:"left-right"},{label:"Right (Left-aligned)",value:"right-left"},{label:"Right (Right-aligned)",value:"right-right"},{label:"Bottom",value:"bottom"}]}},{type:"number",input:!0,key:"labelWidth",label:"Label Width",tooltip:"The width of label on line in percentages.",clearOnHide:!1,weight:30,placeholder:"30",suffix:"%",validate:{min:0,max:100},conditional:{json:{and:[{"!==":[{var:"data.labelPosition"},"top"]},{"!==":[{var:"data.labelPosition"},"bottom"]}]}}},{type:"number",input:!0,key:"labelMargin",label:"Label Margin",tooltip:"The width of label margin on line in percentages.",clearOnHide:!1,weight:30,placeholder:"3",suffix:"%",validate:{min:0,max:100},conditional:{json:{and:[{"!==":[{var:"data.labelPosition"},"top"]},{"!==":[{var:"data.labelPosition"},"bottom"]}]}}},{weight:100,type:"textfield",input:!0,key:"placeholder",label:"Placeholder",placeholder:"Placeholder",tooltip:"The placeholder text that will appear when this field is empty."},{weight:200,type:"textarea",input:!0,key:"description",label:"Description",placeholder:"Description for this field.",tooltip:"The description is text that will appear below the input field.",editor:"ace",as:"html",wysiwyg:{minLines:3,isUseWorkerDisabled:!0}},{weight:300,type:"textarea",input:!0,key:"tooltip",label:"Tooltip",placeholder:"To add a tooltip to this field, enter text here.",tooltip:"Adds a tooltip to the side of this field.",editor:"ace",as:"html",wysiwyg:{minLines:3,isUseWorkerDisabled:!0}},{weight:500,type:"textfield",input:!0,key:"customClass",label:"Custom CSS Class",placeholder:"Custom CSS Class",tooltip:"Custom CSS class to add to this component."},{weight:600,type:"textfield",input:!0,key:"tabindex",label:"Tab Index",placeholder:"0",tooltip:"Sets the tabindex attribute of this component to override the tab order of the form. See the <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex'>MDN documentation</a> on tabindex for more information."},{weight:1100,type:"checkbox",label:"Hidden",tooltip:"A hidden field is still a part of the form, but is hidden from view.",key:"hidden",input:!0},{weight:1200,type:"checkbox",label:"Hide Label",tooltip:"Hide the label (title, if no label) of this component. This allows you to show the label in the form builder, but not when it is rendered.",key:"hideLabel",input:!0},{weight:1350,type:"checkbox",label:"Initial Focus",tooltip:"Make this field the initially focused element on this form.",key:"autofocus",input:!0},{weight:1370,type:"checkbox",label:"Show Label in DataGrid",tooltip:"Show the label inside each row when in a Datagrid.",key:"dataGridLabel",input:!0,customConditional:function(o){var a,l;return null===(a=o.instance.options)||void 0===a||null===(l=a.flags)||void 0===l?void 0:l.inDataGrid}},{weight:1400,type:"checkbox",label:"Disabled",tooltip:"Disable the form input.",key:"disabled",input:!0},{weight:1500,type:"checkbox",label:"Table View",tooltip:"Shows this value within the table view of the submissions.",key:"tableView",input:!0},{weight:1600,type:"checkbox",label:"Modal Edit",tooltip:"Opens up a modal to edit the value of this component.",key:"modalEdit",input:!0}]},74218:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{label:"HTML Attributes",type:"datamap",input:!0,key:"attributes",keyLabel:"Attribute Name",valueComponent:{type:"textfield",key:"value",label:"Attribute Value",input:!0},tooltip:"Provide a map of HTML attributes for component's input element (attributes provided by other component settings or other attributes generated by form.io take precedence over attributes in this grid)",addAnother:"Add Attribute"},{type:"panel",legend:"PDF Overlay",title:"PDF Overlay",key:"overlay",tooltip:"The settings inside apply only to the PDF forms.",weight:2e3,collapsible:!0,collapsed:!0,components:[{type:"textfield",input:!0,key:"overlay.style",label:"Style",placeholder:"",tooltip:"Custom styles that should be applied to this component when rendered in PDF."},{type:"textfield",input:!0,key:"overlay.page",label:"Page",placeholder:"",tooltip:"The PDF page to place this component."},{type:"textfield",input:!0,key:"overlay.left",label:"Left",placeholder:"",tooltip:"The left margin within a page to place this component."},{type:"textfield",input:!0,key:"overlay.top",label:"Top",placeholder:"",tooltip:"The top margin within a page to place this component."},{type:"textfield",input:!0,key:"overlay.width",label:"Width",placeholder:"",tooltip:"The width of the component (in pixels)."},{type:"textfield",input:!0,key:"overlay.height",label:"Height",placeholder:"",tooltip:"The height of the component (in pixels)."}]}]},63305:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(60429);var e=function o(l){return l&&l.__esModule?l:{default:l}}(i(35720)),n=i(12866),a=[{weight:0,input:!0,label:"Advanced Logic",key:"logic",templates:{header:'<div class="row"> \n  <div class="col-sm-6">\n    <strong>{{ value.length }} {{ ctx.t("Advanced Logic Configured") }}</strong>\n  </div>\n</div>',row:'<div class="row"> \n  <div class="col-sm-6">\n    <div>{{ row.name }} </div>\n  </div>\n  <div class="col-sm-2"> \n    <div class="btn-group pull-right"> \n      <button class="btn btn-default editRow">{{ ctx.t("Edit") }}</button> \n      <button class="btn btn-danger removeRow">{{ ctx.t("Delete") }}</button> \n    </div> \n  </div> \n</div>',footer:""},type:"editgrid",addAnother:"Add Logic",saveRow:"Save Logic",components:[{weight:0,input:!0,inputType:"text",label:"Logic Name",key:"name",validate:{required:!0},type:"textfield"},{weight:10,key:"triggerPanel",input:!1,title:"Trigger",tableView:!1,components:[{weight:0,input:!0,tableView:!1,components:[{weight:0,input:!0,label:"Type",key:"type",tableView:!1,data:{values:[{value:"simple",label:"Simple"},{value:"javascript",label:"Javascript"},{value:"json",label:"JSON Logic"},{value:"event",label:"Event"}]},dataSrc:"values",template:"<span>{{ item.label }}</span>",type:"select"},{weight:10,label:"",key:"simple",type:"container",tableView:!1,customConditional:function(u){return"simple"===u.row.type},components:[{input:!0,key:"show",label:"Show",type:"hidden",tableView:!1,calculateValue:function(){return!0}},{type:"select",input:!0,label:"When the form component:",key:"when",dataSrc:"custom",valueProperty:"value",tableView:!1,data:{custom:function(u){return(0,n.getContextComponents)(u)}}},{type:"textfield",input:!0,label:"Has the value:",key:"eq",tableView:!1}]},{weight:10,type:"textarea",key:"javascript",rows:5,editor:"ace",as:"javascript",input:!0,tableView:!1,placeholder:"result = (data['mykey'] > 1);",description:'"row", "data", and "component" variables are available. Return "result".',customConditional:function(u){return"javascript"===u.row.type}},{weight:10,type:"textarea",key:"json",rows:5,editor:"ace",label:"JSON Logic",as:"json",input:!0,tableView:!1,placeholder:"{ ... }",description:'"row", "data", "component" and "_" variables are available. Return the result to be passed to the action if truthy.',customConditional:function(u){return"json"===u.row.type}},{weight:10,type:"textfield",key:"event",label:"Event Name",placeholder:"event",description:"The event that will trigger this logic. You can trigger events externally or via a button.",tableView:!1,customConditional:function(u){return"event"===u.row.type}}],key:"trigger",type:"container"}],type:"panel"},{weight:20,input:!0,label:"Actions",key:"actions",tableView:!1,templates:{header:'<div class="row"> \n  <div class="col-sm-6"><strong>{{ value.length }} {{ ctx.t("actions") }}</strong></div>\n</div>',row:'<div class="row"> \n  <div class="col-sm-6">\n    <div>{{ row.name }} </div>\n  </div>\n  <div class="col-sm-2"> \n    <div class="btn-group pull-right"> \n      <button class="btn btn-default editRow">{{ ctx.t("Edit") }}</button> \n      <button class="btn btn-danger removeRow">{{ ctx.t("Delete") }}</button> \n    </div> \n  </div> \n</div>',footer:""},type:"editgrid",addAnother:"Add Action",saveRow:"Save Action",components:[{weight:0,title:"Action",input:!1,key:"actionPanel",type:"panel",components:[{weight:0,input:!0,inputType:"text",label:"Action Name",key:"name",validate:{required:!0},type:"textfield"},{weight:10,input:!0,label:"Type",key:"type",data:{values:[{value:"property",label:"Property"},{value:"value",label:"Value"},{label:"Merge Component Schema",value:"mergeComponentSchema"},{label:"Custom Action",value:"customAction"}]},dataSrc:"values",template:"<span>{{ item.label }}</span>",type:"select"},{weight:20,type:"select",template:"<span>{{ item.label }}</span>",dataSrc:"json",tableView:!1,data:{json:[{label:"Hidden",value:"hidden",type:"boolean"},{label:"Required",value:"validate.required",type:"boolean"},{label:"Disabled",value:"disabled",type:"boolean"},{label:"Label",value:"label",type:"string"},{label:"Title",value:"title",type:"string"},{label:"Prefix",value:"prefix",type:"string"},{label:"Suffix",value:"suffix",type:"string"},{label:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"Input Mask",value:"inputMask",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"}]},key:"property",label:"Component Property",input:!0,customConditional:function(u){return"property"===u.row.type}},{weight:30,input:!0,label:"Set State",key:"state",tableView:!1,data:{values:[{label:"True",value:"true"},{label:"False",value:"false"}]},dataSrc:"values",template:"<span>{{ item.label }}</span>",type:"select",customConditional:function(u){var d=u.row;return"property"===d.type&&d.hasOwnProperty("property")&&"boolean"===d.property.type}},{weight:30,type:"textfield",key:"text",label:"Text",inputType:"text",input:!0,tableView:!1,description:'Can use templating with {{ data.myfield }}. "data", "row", "component" and "result" variables are available.',customConditional:function(u){var d=u.row;return"property"===d.type&&d.hasOwnProperty("property")&&"string"===d.property.type&&!d.property.component}},{weight:20,input:!0,label:"Value (Javascript)",key:"value",editor:"ace",as:"javascript",rows:5,placeholder:"value = data.myfield;",type:"textarea",tableView:!1,description:'"row", "data", "component", and "result" variables are available. Return the value.',customConditional:function(u){return"value"===u.row.type}},{weight:20,input:!0,label:"Schema Defenition",key:"schemaDefinition",editor:"ace",as:"javascript",rows:5,placeholder:"schema = { label: 'Updated' };",type:"textarea",tableView:!1,description:'"row", "data", "component", and "result" variables are available. Return the schema.',customConditional:function(u){return"mergeComponentSchema"===u.row.type}},Object.assign(e.default.logicVariablesTable("<tr><th>input</th><td>The value that was input into this component</td></tr>"),{customConditional:function(u){return"customAction"===u.row.type}}),{weight:20,input:!0,label:"Custom Action (Javascript)",key:"customAction",editor:"ace",rows:5,placeholder:"value = data.myfield;",type:"textarea",tableView:!1,customConditional:function(u){return"customAction"===u.row.type}}]}]}]}];y.default=a},99779:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(35720)),n=o(i(22851));function o(l){return l&&l.__esModule?l:{default:l}}var a=[{weight:10,type:"checkbox",label:"Required",tooltip:"A required field must be filled in before the form can be submitted.",key:"validate.required",input:!0},{weight:100,type:"checkbox",label:"Unique",tooltip:"Makes sure the data submitted for this field is unique, and has not been submitted before.",key:"unique",input:!0},{weight:0,type:"select",key:"validateOn",defaultValue:"change",input:!0,label:"Validate On",tooltip:"Determines when this component should trigger front-end validation.",dataSrc:"values",data:{values:[{label:"Change",value:"change"},{label:"Blur",value:"blur"}]}},{weight:190,type:"textfield",input:!0,key:"errorLabel",label:"Error Label",placeholder:"Error Label",tooltip:"The label for this field when an error occurs."},{weight:200,key:"validate.customMessage",label:"Custom Error Message",placeholder:"Custom Error Message",type:"textfield",tooltip:"Error message displayed if any error occurred.",input:!0},{type:"panel",title:"Custom Validation",collapsible:!0,collapsed:!0,style:{"margin-bottom":"10px"},key:"custom-validation-js",weight:300,customConditional:function(){return!n.default.noeval||n.default.protectedEval},components:[e.default.logicVariablesTable("<tr><th>input</th><td>The value that was input into this component</td></tr>"),{type:"textarea",key:"validate.custom",rows:5,editor:"ace",hideLabel:!0,as:"javascript",input:!0},{type:"htmlelement",tag:"div",content:"\n          <small>\n            <p>Enter custom validation code.</p>\n            <p>You must assign the <strong>valid</strong> variable as either <strong>true</strong> or an error message if validation fails.</p>\n            <h5>Example:</h5>\n            <pre>valid = (input === 'Joe') ? true : 'Your name must be \"Joe\"';</pre>\n          </small>"},{type:"well",components:[{weight:100,type:"checkbox",label:"Secret Validation",tooltip:"Check this if you wish to perform the validation ONLY on the server side. This keeps your validation logic private and secret.",description:"Check this if you wish to perform the validation ONLY on the server side. This keeps your validation logic private and secret.",key:"validate.customPrivate",input:!0}]}]},{type:"panel",title:"JSONLogic Validation",collapsible:!0,collapsed:!0,key:"json-validation-json",weight:400,components:[{type:"htmlelement",tag:"div",content:'<p>Execute custom logic using <a href="http://jsonlogic.com/" target="_blank" rel="noopener noreferrer">JSONLogic</a>.</p><h5>Example:</h5><pre>'+JSON.stringify({if:[{"===":[{var:"input"},"Bob"]},!0,"Your name must be 'Bob'!"]},null,2)+"</pre>"},{type:"textarea",key:"validate.json",hideLabel:!0,rows:5,editor:"ace",as:"json",input:!0}]},{type:"panel",title:"Custom Errors",collapsible:!0,collapsed:!0,key:"errors",weight:400,components:[{type:"textarea",key:"errors",hideLabel:!0,rows:5,editor:"ace",as:"json",input:!0},{type:"htmlelement",tag:"div",content:'\n          <p>This allows you to set different custom error messages for different errors\n          (in contrast to \u201cCustom Error Message\u201d, which only allows you to set one\n          error message for all errors). E.g.</p>\n\n<pre>{\n  "required": "{<span/>{ field }} is required. Try again.",\n  "maxLength": "{<span/>{ field }} is too long. Try again."\n}</pre>\n\n          <p>You can set the following keys (among others):</p>\n          <ul>\n            <li>r<span/>equired</li>\n            <li>m<span/>in</li>\n            <li>m<span/>ax</li>\n            <li>m<span/>inLength</li>\n            <li>m<span/>axLength</li>\n            <li>m<span/>inWords</li>\n            <li>m<span/>axWords</li>\n            <li>i<span/>nvalid_email</li>\n            <li>i<span/>nvalid_date</li>\n            <li>i<span/>nvalid_day</li>\n            <li>i<span/>nvalid_regex</li>\n            <li>m<span/>ask</li>\n            <li>p<span/>attern</li>\n            <li>c<span/>ustom</li>\n          </ul>\n\n          <p>Depending on the error message some of the following template variables can be used in the script:</p>\n          <ul>\n           <li><code>{<span/>{ f<span/>ield }}</code> is replaced with the label of the field.</li>\n           <li><code>{<span/>{ m<span/>in }}</code></li>\n           <li><code>{<span/>{ m<span/>ax }}</code></li>\n           <li><code>{<span/>{ l<span/>ength }}</code></li>\n           <li><code>{<span/>{ p<span/>attern }}</code></li>\n           <li><code>{<span/>{ m<span/>inDate }}</code></li>\n           <li><code>{<span/>{ m<span/>axDate }}</code></li>\n           <li><code>{<span/>{ m<span/>inYear }}</code></li>\n           <li><code>{<span/>{ m<span/>axYear }}</code></li>\n           <li><code>{<span/>{ r<span/>egex }}</code></li>\n          </ul>\n        '}]}];y.default=a},35720:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(38077),i(60228),i(62506);var e=o(i(6990)),n=o(i(22851));function o(u){return u&&u.__esModule?u:{default:u}}var a={sortAndFilterComponents:function(d){return e.default.filter(e.default.sortBy(d,"weight"),function(s){return!s.ignore})},unifyComponents:function(d,s){return d.key&&s.key?!d.skipMerge&&!s.skipMerge&&d.key===s.key&&(e.default.each(d,function(A,_){(d.overrideEditForm||!s.hasOwnProperty(_))&&(s[_]=A)}),e.default.each(s,function(A,_){(s.overrideEditForm||!d.hasOwnProperty(_))&&(d[_]=A)}),d.components&&(s.components=a.sortAndFilterComponents(e.default.unionWith(d.components,s.components,a.unifyComponents))),!0):e.default.isEqual(d,s)},logicVariablesTable:function(d){return{type:"htmlelement",tag:"div",content:'<p>The following variables are available in all scripts.</p><table class="table table-bordered table-condensed table-striped">'+(d=d||"")+'<tr><th>form</th><td>The complete form JSON object</td></tr><tr><th>submission</th><td>The complete submission object.</td></tr><tr><th>data</th><td>The complete submission data object.</td></tr><tr><th>row</th><td>Contextual "row" data, used within DataGrid, EditGrid, and Container components</td></tr><tr><th>component</th><td>The current component JSON</td></tr><tr><th>instance</th><td>The current component instance.</td></tr><tr><th>value</th><td>The current value of the component.</td></tr><tr><th>moment</th><td>The moment.js library for date manipulation.</td></tr><tr><th>_</th><td>An instance of <a href="https://lodash.com/docs/" target="_blank" rel="noopener noreferrer">Lodash</a>.</td></tr><tr><th>utils</th><td>An instance of the <a href="http://formio.github.io/formio.js/docs/identifiers.html#utils" target="_blank" rel="noopener noreferrer">FormioUtils</a> object.</td></tr><tr><th>util</th><td>An alias for "utils".</td></tr></table><br/>'}},javaScriptValue:function(d,s,A,_,C,R){var f=arguments.length>7?arguments[7]:void 0,k=[this.logicVariablesTable(arguments.length>6&&void 0!==arguments[6]?arguments[6]:""),{type:"panel",title:"JavaScript",collapsible:!0,collapsed:!1,style:{"margin-bottom":"10px"},key:"".concat(s,"-js"),customConditional:function(){return!n.default.noeval||n.default.protectedEval},components:[{type:"textarea",key:s,rows:5,editor:"ace",hideLabel:!0,as:"javascript",input:!0},{type:"htmlelement",tag:"div",content:"<p>Enter custom javascript code.</p>".concat(C)}]},{type:"panel",title:"JSONLogic",collapsible:!0,collapsed:!0,key:"".concat(s,"-json"),components:[{type:"htmlelement",tag:"div",content:'<p>Execute custom logic using <a href="http://jsonlogic.com/" target="_blank" rel="noopener noreferrer">JSONLogic</a>.</p><p>Full <a href="https://lodash.com/docs" target="_blank" rel="noopener noreferrer">Lodash</a> support is provided using an "_" before each operation, such as <code>{"_sum": {var: "data.a"}}</code></p>'+R},{type:"textarea",key:A,rows:5,editor:"ace",hideLabel:!0,as:"json",input:!0}]}];return f&&k.splice(2,1),{type:"panel",title:d,theme:"default",collapsible:!0,collapsed:!0,key:"".concat(s,"Panel"),weight:_,components:k}}};y.default=a},84984:(he,y,i)=>{"use strict";function e(I){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(L){return typeof L}:function(L){return L&&"function"==typeof Symbol&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L})(I)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(69358),i(38077),i(49693),i(47522),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(5399),i(41517),i(88052);var n=function o(I){return I&&I.__esModule?I:{default:I}}(i(1681));function a(I,L){var D=Object.keys(I);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(I);L&&(F=F.filter(function(P){return Object.getOwnPropertyDescriptor(I,P).enumerable})),D.push.apply(D,F)}return D}function l(I){for(var L=1;L<arguments.length;L++){var D=null!=arguments[L]?arguments[L]:{};L%2?a(Object(D),!0).forEach(function(F){u(I,F,D[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(D)):a(Object(D)).forEach(function(F){Object.defineProperty(I,F,Object.getOwnPropertyDescriptor(D,F))})}return I}function u(I,L,D){return(L=_(L))in I?Object.defineProperty(I,L,{value:D,enumerable:!0,configurable:!0,writable:!0}):I[L]=D,I}function s(I,L){for(var D=0;D<L.length;D++){var F=L[D];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(I,_(F.key),F)}}function _(I){var L=function C(I,L){if("object"!==e(I)||null===I)return I;var D=I[Symbol.toPrimitive];if(void 0!==D){var F=D.call(I,L||"default");if("object"!==e(F))return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===L?String:Number)(I)}(I,"string");return"symbol"===e(L)?L:String(L)}function R(){return R=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(L,D,F){var P=function x(I,L){for(;!Object.prototype.hasOwnProperty.call(I,L)&&null!==(I=E(I)););return I}(L,D);if(P){var O=Object.getOwnPropertyDescriptor(P,D);return O.get?O.get.call(arguments.length<3?L:F):O.value}},R.apply(this,arguments)}function k(I,L){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(F,P){return F.__proto__=P,F})(I,L)}function E(I){return(E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(D){return D.__proto__||Object.getPrototypeOf(D)})(I)}y.default=function(I){!function f(I,L){if("function"!=typeof L&&null!==L)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(L&&L.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),Object.defineProperty(I,"prototype",{writable:!1}),L&&k(I,L)}(D,I);var L=function w(I){var L=function p(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var P,F=E(I);if(L){var O=E(this).constructor;P=Reflect.construct(F,arguments,O)}else P=F.apply(this,arguments);return function g(I,L){if(L&&("object"===e(L)||"function"==typeof L))return L;if(void 0!==L)throw new TypeError("Derived constructors may only return object or undefined");return function M(I){if(void 0===I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(I)}(this,P)}}(D);function D(){return function d(I,L){if(!(I instanceof L))throw new TypeError("Cannot call a class as a function")}(this,D),L.apply(this,arguments)}return function A(I,L,D){L&&s(I.prototype,L),D&&s(I,D),Object.defineProperty(I,"prototype",{writable:!1})}(D,[{key:"render",value:function(P){return this.noField?R(E(D.prototype),"render",this).call(this,P):this.isAdvancedLabel||this.options.condensedMode?R(E(D.prototype),"render",this).call(this,this.renderTemplate("field",l(l({},this.getLabelInfo(this.options.condensedMode)),{},{labelMarkup:this.renderTemplate("label"),element:P}),"align")):R(E(D.prototype),"render",this).call(this,this.renderTemplate("field",{labelMarkup:this.renderTemplate("label"),element:P}))}}]),D}(n.default)},85943:(he,y,i)=>{"use strict";function e(L){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(D){return typeof D}:function(D){return D&&"function"==typeof Symbol&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D})(L)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(41517),i(34284),i(50886),i(25728),i(60228),i(64043),i(9873),i(28436),i(57267),i(34338),i(5399),i(88052);var n=d(i(8374)),o=i(12866),a=d(i(27081)),l=d(i(73808)),u=d(i(6990));function d(L){return L&&L.__esModule?L:{default:L}}function A(L,D){for(var F=0;F<D.length;F++){var P=D[F];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(L,C(P.key),P)}}function C(L){var D=function R(L,D){if("object"!==e(L)||null===L)return L;var F=L[Symbol.toPrimitive];if(void 0!==F){var P=F.call(L,D||"default");if("object"!==e(P))return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===D?String:Number)(L)}(L,"string");return"symbol"===e(D)?D:String(D)}function x(){return x=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(D,F,P){var O=function f(L,D){for(;!Object.prototype.hasOwnProperty.call(L,D)&&null!==(L=b(L)););return L}(D,F);if(O){var U=Object.getOwnPropertyDescriptor(O,F);return U.get?U.get.call(arguments.length<3?D:P):U.value}},x.apply(this,arguments)}function w(L,D){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,O){return P.__proto__=O,P})(L,D)}function p(L){if(void 0===L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function b(L){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)})(L)}y.default=function(L){!function k(L,D){if("function"!=typeof D&&null!==D)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(D&&D.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),D&&w(L,D)}(F,L);var D=function g(L){var D=function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var O,P=b(L);if(D){var U=b(this).constructor;O=Reflect.construct(P,arguments,U)}else O=P.apply(this,arguments);return function M(L,D){if(D&&("object"===e(D)||"function"==typeof D))return D;if(void 0!==D)throw new TypeError("Derived constructors may only return object or undefined");return p(L)}(this,O)}}(F);function F(P,O,U){var V;return function s(L,D){if(!(L instanceof D))throw new TypeError("Cannot call a class as a function")}(this,F),(V=D.call(this,P,O,U)).triggerUpdateValueAt=u.default.debounce(V.updateValueAt.bind(p(V)),100),V}return function _(L,D,F){D&&A(L.prototype,D),F&&A(L,F),Object.defineProperty(L,"prototype",{writable:!1})}(F,[{key:"inputInfo",get:function(){var O={name:this.options.name,type:this.component.inputType||"text",class:"form-control",lang:this.options.language};return("builder"===this.options.attachMode||this.options.building||u.default.get(this.root,"form.settings.disableAutocomplete"))&&(O.autocomplete=this.autocompleteDisableAttrName),this.component.inputMode&&(O.inputmode=this.component.inputMode),this.component.placeholder&&(O.placeholder=this.getFormattedAttribute(this.component.placeholder)),this.component.tabindex&&(O.tabindex=this.component.tabindex),this.disabled&&(O.disabled="disabled"),this.component.autocomplete&&(O.autocomplete=this.component.autocomplete),u.default.defaults(O,this.component.attributes),{id:this.key,type:"input",changeEvent:"input",content:"",attr:O}}},{key:"autocompleteDisableAttrName",get:function(){return"off"}},{key:"maskOptions",get:function(){return u.default.map(this.component.inputMasks,function(O){return{label:O.label,value:O.label}})}},{key:"isMultipleMasksField",get:function(){return this.component.allowMultipleMasks&&!!this.component.inputMasks&&!!this.component.inputMasks.length}},{key:"getMaskByName",value:function(O){var U=u.default.find(this.component.inputMasks,function(V){return V.label===O});return U?U.mask:void 0}},{key:"setInputMask",value:function(O,U){var V=U||this.component.displayMask||this.component.inputMask;return x(b(F.prototype),"setInputMask",this).call(this,O,V,!this.component.placeholder)}},{key:"getMaskOptions",value:function(){return this.component.inputMasks.map(function(O){return{label:O.label,value:O.label}})}},{key:"getWordCount",value:function(O){return O?O.trim().split(/\s+/).length:0}},{key:"remainingWords",get:function(){return u.default.parseInt(u.default.get(this.component,"validate.maxWords"),10)-this.getWordCount(this.dataValue)}},{key:"prefix",get:function(){return this.component.prefix}},{key:"suffix",get:function(){if(this.component.widget&&"calendar"===this.component.widget.type){var O=this.renderTemplate("icon",{ref:"icon",className:this.iconClass(this.component.enableDate||this.component.widget.enableDate?"calendar":"clock-o"),styles:"",content:""}).trim();if(this.component.prefix!==O)return(0,o.convertStringToHTMLElement)(O,'[ref="icon"]')}return this.component.suffix}},{key:"renderElement",value:function(O,U){O&&"string"==typeof O&&(O=O.replace(/"/g,"&quot;"));var V=this.inputInfo;V.attr=V.attr||{},V.attr.value=this.getValueAsString(this.formatValue(this.parseValue(O))).replace(/"/g,"&quot;");var K=this.component.inputMask,X=this.component.displayMask,me=K&&X&&K!==X;return this.isMultipleMasksField&&(V.attr.class+=" formio-multiple-mask-input"),this.isMultipleMasksField?this.renderTemplate("multipleMasksInput",{input:V,value:O,index:U,selectOptions:this.getMaskOptions()||[]},this.isHtmlRenderMode()?"html":null):this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:V,value:this.formatValue(this.parseValue(O)),hasValueMaskInput:me,index:U},this.isHtmlRenderMode()?"html":null)}},{key:"setCounter",value:function(O,U,V,K){if(K){var X=K-V;X>0?this.removeClass(U,"text-danger"):this.addClass(U,"text-danger"),this.setContent(U,this.t("{{ remaining }} ".concat(O," remaining."),{remaining:X}))}else this.setContent(U,this.t("{{ count }} ".concat(O),{count:V}))}},{key:"updateValueAt",value:function(O,U,V){if(U=U||{},u.default.get(this.component,"showWordCount",!1)&&this.refs.wordcount&&this.refs.wordcount[V]){var K=u.default.parseInt(u.default.get(this.component,"validate.maxWords",0),10);this.setCounter(this.t("words"),this.refs.wordcount[V],this.getWordCount(O),K)}if(u.default.get(this.component,"showCharCount",!1)&&this.refs.charcount&&this.refs.charcount[V]){var X=u.default.parseInt(u.default.get(this.component,"validate.maxLength",0),10);this.setCounter(this.t("characters"),this.refs.charcount[V],O.length,X)}}},{key:"getValueAt",value:function(O){var U=this.performInputMapping(this.refs.input[O]);return U&&U.widget?U.widget.getValue():U?U.value:void 0}},{key:"updateValue",value:function(O,U,V){U=U||{};var K=x(b(F.prototype),"updateValue",this).call(this,O,U);return this.triggerUpdateValueAt(this.dataValue,U,V),K}},{key:"parseValue",value:function(O){return O}},{key:"formatValue",value:function(O){return O}},{key:"attach",value:function(O){return this.loadRefs(O,{charcount:"multiple",wordcount:"multiple",prefix:"multiple",suffix:"multiple"}),x(b(F.prototype),"attach",this).call(this,O)}},{key:"getWidget",value:function(O){return O=O||0,this.refs.input&&this.refs.input[O]?this.refs.input[O].widget:null}},{key:"attachElement",value:function(O,U){var V=this;x(b(F.prototype),"attachElement",this).call(this,O,U),O.widget&&O.widget.destroy();var K=l.default.resolve();return O.widget=this.createWidget(U),O.widget&&(K=O.widget.attach(O),this.refs.prefix&&this.refs.prefix[U]&&O.widget.addPrefix(this.refs.prefix[U]),this.refs.suffix&&this.refs.suffix[U]&&O.widget.addSuffix(this.refs.suffix[U])),this.addFocusBlurEvents(O),this.options.submitOnEnter&&this.addEventListener(O,"keypress",function(X){13===(X.keyCode||X.which)&&(X.preventDefault(),X.stopPropagation(),V.emit("submitButton"))}),K}},{key:"createWidget",value:function(O){var U,V=this;if(!this.component.widget)return null;var X,K="string"==typeof this.component.widget?{type:this.component.widget}:this.component.widget;if(null!==(U=this.root)&&void 0!==U&&U.shadowRoot&&(K.shadowRoot=null===(X=this.root)||void 0===X?void 0:X.shadowRoot),!a.default.hasOwnProperty(K.type))return null;var me=new a.default[K.type](K,this.component,this,O);return me.on("update",function(){return V.updateValue(V.getValue(),{modified:!0},O)},!0),me.on("redraw",function(){return V.redraw()},!0),me}},{key:"detach",value:function(){if(x(b(F.prototype),"detach",this).call(this),this.refs&&this.refs.input)for(var O=0;O<=this.refs.input.length;O++){var U=this.getWidget(O);U&&U.destroy()}this.refs.input=[]}}],[{key:"schema",value:function(){for(var O=arguments.length,U=new Array(O),V=0;V<O;V++)U[V]=arguments[V];return n.default.schema.apply(n.default,[{widget:{type:"input"}}].concat(U))}}]),F}(n.default)},91130:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function a(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return e.default.baseEditForm.apply(e.default,[[{key:"data",components:n.default}]].concat(u))},i(34338);var e=o(i(14231)),n=o(i(57838));function o(l){return l&&l.__esModule?l:{default:l}}},92355:(he,y,i)=>{"use strict";function e(E){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(E)}i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(21694),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(278),i(60228),i(55791),i(64043),i(22462),i(49693),i(47522),i(30024),i(63945),i(57267),i(752),i(76265),i(268),i(38077),i(34338),i(5399),i(41517),i(88052);var n=u(i(84984)),o=i(55798),a=u(i(6990)),l=u(i(73808));function u(E){return E&&E.__esModule?E:{default:E}}function s(E,b){for(var I=0;I<b.length;I++){var L=b[I];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(E,_(L.key),L)}}function _(E){var b=function C(E,b){if("object"!==e(E)||null===E)return E;var I=E[Symbol.toPrimitive];if(void 0!==I){var L=I.call(E,b||"default");if("object"!==e(L))return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(E)}(E,"string");return"symbol"===e(b)?b:String(b)}function x(E,b){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,D){return L.__proto__=D,L})(E,b)}function M(E){return(M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(I){return I.__proto__||Object.getPrototypeOf(I)})(E)}y.default=function(E){!function R(E,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(b&&b.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),Object.defineProperty(E,"prototype",{writable:!1}),b&&x(E,b)}(I,E);var b=function f(E){var b=function g(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var D,L=M(E);if(b){var F=M(this).constructor;D=Reflect.construct(L,arguments,F)}else D=L.apply(this,arguments);return function k(E,b){if(b&&("object"===e(b)||"function"==typeof b))return b;if(void 0!==b)throw new TypeError("Derived constructors may only return object or undefined");return function w(E){if(void 0===E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}(E)}(this,D)}}(I);function I(){return function d(E,b){if(!(E instanceof b))throw new TypeError("Cannot call a class as a function")}(this,I),b.apply(this,arguments)}return function A(E,b,I){b&&s(E.prototype,b),I&&s(E,I),Object.defineProperty(E,"prototype",{writable:!1})}(I,[{key:"isSelectURL",get:function(){return"url"===this.component.dataSrc}},{key:"selectData",get:function(){var D=a.default.get(this.root,"submission.metadata.selectData",{});return a.default.get(D,this.path)}},{key:"shouldLoad",get:function(){if(this.loadingError)return!1;if(!this.options.readOnly)return!0;if(this.templateKeys&&this.templateKeys.length){var D=this.dataValue,F=this.selectData;return this.templateKeys.reduce(function(P,O){var U=a.default.has(D,O)||(a.default.isArray(F)?F.every(function(V){return a.default.has(V,O)}):a.default.has(F,O));return P||!U},!1)}return!0}},{key:"getTemplateKeys",value:function(){var D=this;if(this.templateKeys=[],this.options.readOnly&&this.component.template){var F=this.component.template.match(/({{\s*(.*?)\s*}})/g);F&&F.forEach(function(P){var O=P.match(/{{\s*item\.(.*?)\s*}}/);O&&O.length>1&&D.templateKeys.push(O[1])})}}},{key:"requestHeaders",get:function(){var D=this,F=new o.GlobalFormio.Headers;if(this.component.data&&this.component.data.headers)try{a.default.each(this.component.data.headers,function(P){P.key&&F.set(P.key,D.interpolate(P.value))})}catch(P){console.warn(P.message)}return F}},{key:"setItems",value:function(){}},{key:"updateCustomItems",value:function(){}},{key:"loadItems",value:function(){}},{key:"getOptionTemplate",value:function(D,F,P){if(!this.component.template)return D.label;var O={noeval:!0,data:{}},U=this.sanitize(this.component.template?this.interpolate(this.component.template,{item:D},O):D.label,this.shouldSanitizeValue),V=this.component.reference&&null!=F&&F._id?F._id.toString():F;return V&&!a.default.isObject(V)&&O.data.item&&(this.templateData[V]=O.data.item),a.default.isNumber(P)&&(this.templateData[P]=O.data.item),U}},{key:"itemTemplate",value:function(D,F,P){if(a.default.isEmpty(D))return"";var O=this.sanitize(this.getOptionTemplate(D,F,P),this.shouldSanitizeValue);if(O){var U,V=O.replace(/<\/?[^>]+(>|$)/g,""),K=null===(U=this.i18next)||void 0===U?void 0:U.translator;return!V||K&&!this.t(V,{_userInput:!0})?void 0:K?O.replace(V,this.t(V,{_userInput:!0})):V}return this.sanitize(JSON.stringify(D),this.shouldSanitizeValue)}},{key:"handleLoadingError",value:function(D){this.loading=!1,D.networkError&&(this.networkError=!0),this.itemsLoadedResolve(),this.emit("componentError",{component:this.component,message:D.toString()}),console.warn("Unable to load resources for ".concat(this.key))}},{key:"updateItems",value:function(D,F){var P=this;if(!this.component.data)return console.warn("Select component ".concat(this.key," does not have data configuration.")),void this.itemsLoadedResolve();if(this.visible)switch(this.component.dataSrc){case"values":this.setItems(this.component.data.values);break;case"json":this.setItems(this.component.data.json);break;case"custom":this.updateCustomItems(F);break;case"resource":if(!this.component.data.resource||!F&&!this.active)return void this.itemsLoadedResolve();var O=this.options.formio?this.options.formio.formsUrl:"".concat(o.GlobalFormio.getProjectUrl(),"/form");if(O+="/".concat(this.component.data.resource,"/submission"),F||this.additionalResourcesAvailable||!this.serverCount)try{this.loadItems(O,D,this.requestHeaders)}catch{console.warn("Unable to load resources for ".concat(this.key))}else this.setItems(this.downloadedResources);break;case"url":if(!F&&!this.active&&!this.calculatedValue&&"select"===this.component.type)return void this.itemsLoadedResolve();var V,K,U=this.component.data.url;if(U.startsWith("/")){var X=U.startsWith("/project")?o.GlobalFormio.getBaseUrl():o.GlobalFormio.getProjectUrl()||o.GlobalFormio.getBaseUrl();U=X+U}this.component.data.method?K="POST"===(V=this.component.data.method).toUpperCase()?this.component.data.body:null:V="GET",this.loadItems(U,D,this.requestHeaders,this.component.authenticate?{}:{noToken:!0},V,K);break;case"indexeddb":if(typeof window>"u")return;if(window.indexedDB||window.alert("Your browser doesn't support current version of indexedDB"),this.component.indexeddb&&this.component.indexeddb.database&&this.component.indexeddb.table){var J=window.indexedDB.open(this.component.indexeddb.database);J.onupgradeneeded=function(Q){if(P.component.customOptions){var re=Q.target.result;re.createObjectStore(P.component.indexeddb.table,{keyPath:"myKey",autoIncrement:!0}).transaction.oncomplete=function(){var te=re.transaction(P.component.indexeddb.table,"readwrite");P.component.customOptions.forEach(function(j){te.objectStore(P.component.indexeddb.table).put(j)})}}},J.onerror=function(){window.alert(J.errorCode)},J.onsuccess=function(Q){var te=Q.target.result.transaction(P.component.indexeddb.table,"readwrite").objectStore(P.component.indexeddb.table);new l.default(function(j){var H=[];te.getAll().onsuccess=function(z){z.target.result.forEach(function(q){H.push(q)}),j(H)}}).then(function(j){a.default.isEmpty(P.component.indexeddb.filter)||(j=a.default.filter(j,P.component.indexeddb.filter)),P.setItems(j)})}}}else this.itemsLoadedResolve()}}],[{key:"schema",value:function(){for(var D=arguments.length,F=new Array(D),P=0;P<D;P++)F[P]=arguments[P];return n.default.schema.apply(n.default,[{dataSrc:"values",authenticate:!1,ignoreCache:!1,template:"<span>{{ item.label }}</span>",validate:{onlyAvailableItems:!1}}].concat(F))}}]),I}(n.default)},57838:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{type:"select",input:!0,weight:0,tooltip:"The source to use for the select data. Values lets you provide your own values and labels. JSON lets you provide raw JSON data. URL lets you provide a URL to retrieve the JSON data from.",key:"dataSrc",defaultValue:"values",label:"Data Source Type",dataSrc:"values"},{type:"textfield",input:!0,key:"data.url",weight:10,label:"Data Source URL",placeholder:"Data Source URL",tooltip:"A URL that returns a JSON array to use as the data source.",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"datagrid",input:!0,label:"Request Headers",key:"data.headers",tooltip:"Set any headers that should be sent along with the request to the url. This is useful for authentication.",weight:11,components:[{label:"Key",key:"key",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}],conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"textfield",input:!0,label:"Value Property",key:"valueProperty",skipMerge:!0,clearOnHide:!1,weight:13,description:"The selected item's property to save.",tooltip:"The property of each item in the data source to use as the select value. If not specified, the item itself will be used.",conditional:{json:{in:[{var:"data.dataSrc"},["json","url","custom"]]}}},{type:"textarea",input:!0,key:"template",label:"Item Template",editor:"ace",as:"html",rows:3,weight:18,tooltip:"The HTML template for the result data items.",allowCalculateOverride:!0,calculateValue:function(o){return!o.data.template&&o.instance&&o.instance._currentForm.options.editComponent?o.instance._currentForm.options.editComponent.template:o.data.template}},{type:"checkbox",input:!0,weight:26,key:"authenticate",label:"Formio Authenticate",tooltip:"Check this if you would like to use Formio Authentication with the request.",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"checkbox",input:!0,weight:29,key:"ignoreCache",label:"Disables Storing Request Result in the Cache",tooltip:"Check it if you don't want the requests and its results to be stored in the cache. By default, it is stored and if the Select tries to make the request to the same URL with the same paremetrs, the cached data will be returned. It allows to increase performance, but if the remote source's data is changing quite often and you always need to keep it up-to-date, uncheck this option.",conditional:{json:{or:[{"===":[{var:"data.dataSrc"},"url"]},{"===":[{var:"data.dataSrc"},"resource"]}]}}}]},8374:(he,y,i)=>{"use strict";function e(D){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(F){return typeof F}:function(F){return F&&"function"==typeof Symbol&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F})(D)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(45247),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(63975),i(6203),i(50886),i(41517),i(49693),i(60228),i(47522),i(96869),i(25728),i(34338),i(5399),i(88052);var n=l(i(84984)),o=l(i(73808)),a=l(i(6990));function l(D){return D&&D.__esModule?D:{default:D}}function d(D,F){for(var P=0;P<F.length;P++){var O=F[P];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(D,R(O.key),O)}}function A(D,F,P,O){return A=typeof Reflect<"u"&&Reflect.set?Reflect.set:function(V,K,X,me){var Q,J=k(V,K);if(J){if((Q=Object.getOwnPropertyDescriptor(J,K)).set)return Q.set.call(me,X),!0;if(!Q.writable)return!1}if(Q=Object.getOwnPropertyDescriptor(me,K)){if(!Q.writable)return!1;Q.value=X,Object.defineProperty(me,K,Q)}else!function C(D,F,P){(F=R(F))in D?Object.defineProperty(D,F,{value:P,enumerable:!0,configurable:!0,writable:!0}):D[F]=P}(me,K,X);return!0},A(D,F,P,O)}function R(D){var F=function x(D,F){if("object"!==e(D)||null===D)return D;var P=D[Symbol.toPrimitive];if(void 0!==P){var O=P.call(D,F||"default");if("object"!==e(O))return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===F?String:Number)(D)}(D,"string");return"symbol"===e(F)?F:String(F)}function f(){return f=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(F,P,O){var U=k(F,P);if(U){var V=Object.getOwnPropertyDescriptor(U,P);return V.get?V.get.call(arguments.length<3?F:O):V.value}},f.apply(this,arguments)}function k(D,F){for(;!Object.prototype.hasOwnProperty.call(D,F)&&null!==(D=I(D)););return D}function g(D,F){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(O,U){return O.__proto__=U,O})(D,F)}function I(D){return(I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(P){return P.__proto__||Object.getPrototypeOf(P)})(D)}y.default=function(D){!function w(D,F){if("function"!=typeof F&&null!==F)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(F&&F.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),F&&g(D,F)}(P,D);var F=function M(D){var F=function b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var U,O=I(D);if(F){var V=I(this).constructor;U=Reflect.construct(O,arguments,V)}else U=O.apply(this,arguments);return function p(D,F){if(F&&("object"===e(F)||"function"==typeof F))return F;if(void 0!==F)throw new TypeError("Derived constructors may only return object or undefined");return function E(D){if(void 0===D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}(D)}(this,U)}}(P);function P(){return function u(D,F){if(!(D instanceof F))throw new TypeError("Cannot call a class as a function")}(this,P),F.apply(this,arguments)}return function s(D,F,P){F&&d(D.prototype,F),P&&d(D,P),Object.defineProperty(D,"prototype",{writable:!1})}(P,[{key:"dataValue",get:function(){var U=f(I(P.prototype),"dataValue",this);return!U&&this.component.multiple?[]:U},set:function(U){!function _(D,F,P,O,U){if(!A(D,F,P,O||D)&&U)throw new Error("failed to set property")}(I(P.prototype),"dataValue",U,this,!0)}},{key:"defaultValue",get:function(){var U=f(I(P.prototype),"defaultValue",this);return this.component.multiple&&(U=a.default.isArray(U)?U.length?U:[f(I(P.prototype),"emptyValue",this)]:[U]),U}},{key:"addAnother",get:function(){return this.t(this.component.addAnother||"Add Another")}},{key:"useWrapper",value:function(){return this.component.hasOwnProperty("multiple")&&this.component.multiple}},{key:"render",value:function(){if(!this.useWrapper())return f(I(P.prototype),"render",this).call(this,'<div ref="element">\n          '.concat(this.renderElement("hidden"!==this.component.type?this.dataValue:""),"\n        </div>"));var U=this.dataValue;return Array.isArray(U)||(U=U?[U]:[]),f(I(P.prototype),"render",this).call(this,this.renderTemplate("multiValueTable",{rows:U.map(this.renderRow.bind(this)).join(""),disabled:this.disabled,addAnother:this.addAnother}))}},{key:"renderElement",value:function(){return""}},{key:"renderRow",value:function(U,V){return this.renderTemplate("multiValueRow",{index:V,disabled:this.disabled,element:"".concat(this.renderElement(U,V))})}},{key:"attach",value:function(U){var V=this,K=f(I(P.prototype),"attach",this).call(this,U);this.loadRefs(U,{addButton:"multiple",input:"multiple",removeRow:"multiple",mask:"multiple",select:"multiple"});var X=[];return this.refs.input.forEach(function(me,J){X.push(V.attachElement.call(V,me,J))}),this.component.multiple?(this.refs.removeRow.forEach(function(me,J){V.addEventListener(me,"click",function(Q){Q.preventDefault(),V.removeValue(J)})}),this.refs.addButton.forEach(function(me){V.addEventListener(me,"click",function(J){J.preventDefault(),V.addValue()})}),K.then(function(){return o.default.all(X)})):o.default.all(X)}},{key:"detach",value:function(){this.refs.input&&this.refs.input.length&&this.refs.input.forEach(function(U){U.mask&&U.mask.destroy(),U.widget&&U.widget.destroy()}),this.refs.mask&&this.refs.mask.length&&this.refs.mask.forEach(function(U){U.mask&&U.mask.destroy()}),f(I(P.prototype),"detach",this).call(this)}},{key:"attachElement",value:function(U,V){var K=this;if(this.addEventListener(U,this.inputInfo.changeEvent,function(){var me=a.default.get(K.component,"case","mixed");if("mixed"!==me){var J=U.selectionStart,Q=U.selectionEnd;"uppercase"===me&&U.value&&(U.value=U.value.toUpperCase()),"lowercase"===me&&U.value&&(U.value=U.value.toLowerCase()),U.selectionStart&&U.selectionEnd&&(U.selectionStart=J,U.selectionEnd=Q)}try{K.saveCaretPosition(U,V)}catch(re){console.warn("An error occurred while trying to save caret position",re)}if(!U.mask)return K.updateValue(null,{modified:"hidden"!==K.component.type},V);setTimeout(function(){return K.updateValue(null,{modified:"hidden"!==K.component.type},V)},1)}),!this.attachMultiMask(V)){var X=function(){K.setInputMask(U);var J=K.component.inputMask,Q=K.component.displayMask;J&&Q&&Q!==J&&K.refs.valueMaskInput&&K.setInputMask(K.refs.valueMaskInput,J)};"blur"===this.inputInfo.changeEvent?this.addEventListener(U,this.inputInfo.changeEvent,function(){X(),K.dataValue=K.refs.input[0].value,document.querySelector('[name="data[submit]"]'),K.checkComponentValidity()&&K.updateComponentValue(K.refs.input[0].value)}):X()}}},{key:"saveCaretPosition",value:function(U,V){var K,X;(null===(K=this.root)||void 0===K||null===(X=K.focusedComponent)||void 0===X?void 0:X.path)===this.path&&(this.root.currentSelection={selection:[U.selectionStart,U.selectionEnd],index:V})}},{key:"onSelectMaskHandler",value:function(U){this.updateMask(U.target.maskInput,this.getMaskPattern(U.target.value))}},{key:"getMaskPattern",value:function(U){if(this.multiMasks||(this.multiMasks={}),this.multiMasks[U])return this.multiMasks[U];var V=this.component.inputMasks.find(function(K){return K.label===U});return this.multiMasks[U]=V?V.mask:this.component.inputMasks[0].mask,this.multiMasks[U]}},{key:"attachMultiMask",value:function(U){if(!(this.isMultipleMasksField&&this.component.inputMasks.length&&this.refs.input.length))return!1;var V=this.refs.select[U];return V.onchange=this.onSelectMaskHandler.bind(this),V.maskInput=this.refs.mask[U],this.setInputMask(V.maskInput,this.component.inputMasks[0].mask),!0}},{key:"updateMask",value:function(U,V){V&&(this.setInputMask(U,V,!this.component.placeholder),this.updateValue())}},{key:"addNewValue",value:function(U){void 0===U&&(U=this.component.defaultValue?this.component.defaultValue:this.emptyValue,Array.isArray(U)&&0===U.length&&(U=this.emptyValue));var V=this.dataValue||[];Array.isArray(V)||(V=[V]),Array.isArray(U)?V=V.concat(U):V.push(U),this.dataValue=V}},{key:"addValue",value:function(){this.addNewValue(),this.redraw(),this.checkConditions(),this.isEmpty(this.dataValue)||this.restoreValue(),this.root&&this.root.onChange()}}]),P}(n.default)},90700:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function o(){for(var a=arguments.length,l=new Array(a),u=0;u<a;u++)l[u]=arguments[u];return e.default.baseEditForm.apply(e.default,[[{key:"data",ignore:!0},{key:"validation",ignore:!0}]].concat(l))},i(34338);var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(14231))},60211:(he,y,i)=>{"use strict";function e(P){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(O){return typeof O}:function(O){return O&&"function"==typeof Symbol&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O})(P)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(45247),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(50886),i(49693),i(60228),i(47522),i(76801),i(43843),i(21552),i(79288),i(34338),i(39772),i(62506),i(89730),i(278),i(55791),i(38077),i(5399),i(41517),i(88052);var n=d(i(6990)),o=d(i(84984)),a=d(i(14231)),l=d(i(73808)),u=i(12866);function d(P){return P&&P.__esModule?P:{default:P}}function A(P,O){for(var U=0;U<O.length;U++){var V=O[U];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(P,f(V.key),V)}}function C(P,O,U,V){return(C=typeof Reflect<"u"&&Reflect.set?Reflect.set:function(X,me,J,Q){var de,re=g(X,me);if(re){if((de=Object.getOwnPropertyDescriptor(re,me)).set)return de.set.call(Q,J),!0;if(!de.writable)return!1}if(de=Object.getOwnPropertyDescriptor(Q,me)){if(!de.writable)return!1;de.value=J,Object.defineProperty(Q,me,de)}else x(Q,me,J);return!0})(P,O,U,V)}function R(P,O,U,V,K){if(!C(P,O,U,V||P)&&K)throw new Error("failed to set property");return U}function x(P,O,U){return(O=f(O))in P?Object.defineProperty(P,O,{value:U,enumerable:!0,configurable:!0,writable:!0}):P[O]=U,P}function f(P){var O=function k(P,O){if("object"!==e(P)||null===P)return P;var U=P[Symbol.toPrimitive];if(void 0!==U){var V=U.call(P,O||"default");if("object"!==e(V))return V;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===O?String:Number)(P)}(P,"string");return"symbol"===e(O)?O:String(O)}function w(){return w=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(O,U,V){var K=g(O,U);if(K){var X=Object.getOwnPropertyDescriptor(K,U);return X.get?X.get.call(arguments.length<3?O:V):X.value}},w.apply(this,arguments)}function g(P,O){for(;!Object.prototype.hasOwnProperty.call(P,O)&&null!==(P=D(P)););return P}function p(P,O){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,K){return V.__proto__=K,V})(P,O)}function D(P){return(D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(U){return U.__proto__||Object.getPrototypeOf(U)})(P)}y.default=function(P){!function M(P,O){if("function"!=typeof O&&null!==O)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(O&&O.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),Object.defineProperty(P,"prototype",{writable:!1}),O&&p(P,O)}(U,P);var O=function E(P){var O=function L(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var K,V=D(P);if(O){var X=D(this).constructor;K=Reflect.construct(V,arguments,X)}else K=V.apply(this,arguments);return function b(P,O){if(O&&("object"===e(O)||"function"==typeof O))return O;if(void 0!==O)throw new TypeError("Derived constructors may only return object or undefined");return function I(P){if(void 0===P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}(P)}(this,K)}}(U);function U(V,K,X){var me;return function s(P,O){if(!(P instanceof O))throw new TypeError("Cannot call a class as a function")}(this,U),(me=O.call(this,V,K,X)).type="components",me._collapsed=!!me.component.collapsed,me}return function _(P,O,U){O&&A(P.prototype,O),U&&A(P,U),Object.defineProperty(P,"prototype",{writable:!1})}(U,[{key:"defaultSchema",get:function(){return U.schema()}},{key:"schema",get:function(){var K=w(D(U.prototype),"schema",this),X=n.default.uniqBy(this.getComponents(),"component.key");return K.components=n.default.map(X,"schema"),K}},{key:"collapsed",get:function(){return this._collapsed},set:function(K){this._collapsed=K,this.collapse(K)}},{key:"collapse",value:function(K){var X=this.redraw();return K||this.checkValidity(this.data,!this.pristine,null,this.pristine),X}},{key:"visible",get:function(){return w(D(U.prototype),"visible",this)},set:function(K){var X=this._visible!==K;this._visible=K;var me=this.visible,J=this.shouldForceShow(),Q=this.shouldForceHide();this.components.forEach(function(re){re.parentVisible=me;var de=re.conditionallyVisible();J||de?re.visible=!0:(Q||!me||!de)&&(re.visible=!1),re.visible||(re.error="")}),X&&(this.clearOnHide(),this.redraw())}},{key:"parentVisible",get:function(){return w(D(U.prototype),"parentVisible",this)},set:function(K){var X=this;R(D(U.prototype),"parentVisible",K,this,!0),this.components.forEach(function(me){return me.parentVisible=X.visible})}},{key:"disabled",get:function(){return w(D(U.prototype),"disabled",this)},set:function(K){R(D(U.prototype),"disabled",K,this,!0),this.components.forEach(function(X){return X.parentDisabled=K})}},{key:"parentDisabled",get:function(){return w(D(U.prototype),"parentDisabled",this)},set:function(K){var X=this;R(D(U.prototype),"parentDisabled",K,this,!0),this.components.forEach(function(me){me.parentDisabled=X.disabled})}},{key:"ready",get:function(){return l.default.all(this.getComponents().map(function(K){return K.ready}))}},{key:"currentForm",get:function(){return w(D(U.prototype),"currentForm",this)},set:function(K){R(D(U.prototype),"currentForm",K,this,!0),this.getComponents().forEach(function(X){X.currentForm=K})}},{key:"rowIndex",get:function(){return this._rowIndex},set:function(K){this._rowIndex=K,this.eachComponent(function(X){X.rowIndex=K})}},{key:"componentContext",value:function(){return this._data}},{key:"data",get:function(){return this._data},set:function(K){var X=this;this._data=K,this.eachComponent(function(me){me.data=X.componentContext(me)})}},{key:"getComponents",value:function(){return this.components||[]}},{key:"everyComponent",value:function(K,X){var me=this.getComponents();n.default.each(me,function(J,Q){if(!1===K(J,me,Q)||"function"==typeof J.everyComponent&&!1===J.everyComponent(K,X))return!1})}},{key:"hasComponent",value:function(K){var X=!1;return this.everyComponent(function(me){if(me===K)return X=!0,!1}),X}},{key:"flattenComponents",value:function(){var K={};return this.everyComponent(function(X){K[X.component.flattenAs||X.key]=X}),K}},{key:"eachComponent",value:function(K){n.default.each(this.getComponents(),function(X,me){if(!1===K(X,me))return!1})}},{key:"getComponent",value:function(K,X,me){me=me||(0,u.getStringFromComponentPath)(K),K=(0,u.getArrayFromComponentPath)(K);var J=me,Q=n.default.clone(K),re=Q.shift(),de=Q,te=null,j=null;return n.default.isNumber(re)&&(re=de.shift()),n.default.isString(re)&&(this.everyComponent(function(H,z){var q=!H.hasInput||!H.path||J.includes(H.path);if(H.component.key===re&&(j=H,q))return te=H,de.length>0&&"getComponent"in H?te=H.getComponent(de,X,me):X&&X(H,z),!1}),te||(te=j)),te}},{key:"getComponentById",value:function(K,X){var me=null;return this.everyComponent(function(J,Q){if(J.id===K)return me=J,X&&X(J,Q),!1}),me}},{key:"calculateComponentPath",value:function(K){var X="";if(K.component.key){for(var me=this;me&&!me.allowData&&me.parent;)me=me.parent;var J=K.row?"[".concat(Number.parseInt(K.row),"]"):"";return X=me.path?"".concat(me.path).concat(J,"."):"",(X+=K._parentPath&&K.component.shouldIncludeSubFormPath?K._parentPath:"")+K.component.key}}},{key:"createComponent",value:function(K,X,me,J,Q){var re;if(K){me=me||this.data,(X=X||this.options).parent=this,X.parentVisible=this.visible,X.root=(null===(re=X)||void 0===re?void 0:re.root)||this.root||this,X.localRoot=this.localRoot,X.skipInit=!0,"pdf"===X.display&&this.builderMode||(K.id=(0,u.getRandomComponentId)()),!this.isInputComponent&&this.component.shouldIncludeSubFormPath&&(K.shouldIncludeSubFormPath=!0);var de=a.default.create(K,X,me,!0),te=this.calculateComponentPath(de);if(te&&(de.path=te),de.init(),K.internal)return de;if(J){var j=n.default.findIndex(this.components,{id:J.id});-1!==j?this.components.splice(j,0,de):this.components.push(de)}else if(Q){var H=n.default.findIndex(this.components,{id:Q.id});-1!==H?this.components[H]=de:this.components.push(de)}else this.components.push(de);return de}}},{key:"getContainer",value:function(){return this.element}},{key:"componentComponents",get:function(){return this.component.components||[]}},{key:"nestedKey",get:function(){return"nested-".concat(this.key)}},{key:"templateName",get:function(){return"container"}},{key:"init",value:function(){return this.components=this.components||[],this.addComponents(),w(D(U.prototype),"init",this).call(this)}},{key:"addComponents",value:function(K,X){var me=this;K=K||this.data,(X=X||this.options).components?this.components=X.components:(this.hook("addComponents",this.componentComponents,this)||[]).forEach(function(Q){return me.addComponent(Q,K)})}},{key:"addComponent",value:function(K,X,me,J){return X=X||this.data,this.options.parentPath&&(K.shouldIncludeSubFormPath=!0),K=this.hook("addComponent",K,X,me,J),this.createComponent(K,this.options,X,me||null)}},{key:"beforeFocus",value:function(){this.parent&&"beforeFocus"in this.parent&&this.parent.beforeFocus(this)}},{key:"render",value:function(K){return w(D(U.prototype),"render",this).call(this,K||this.renderTemplate(this.templateName,{children:this.visible?this.renderComponents():"",nestedKey:this.nestedKey,collapsed:!this.options.pdf&&this.collapsed}))}},{key:"renderComponents",value:function(K){var X=(K=K||this.getComponents()).map(function(me){return me.render()});return this.renderTemplate("components",{children:X,components:K})}},{key:"attach",value:function(K){var X=this,me=w(D(U.prototype),"attach",this).call(this,K);this.loadRefs(K,x({header:"single",collapsed:this.collapsed},this.nestedKey,"single"));var J=l.default.resolve();return this.refs[this.nestedKey]&&(J=this.attachComponents(this.refs[this.nestedKey])),this.visible||this.attachComponentsLogic(),this.component.collapsible&&this.refs.header&&(this.addEventListener(this.refs.header,"click",function(){X.collapsed=!X.collapsed}),this.addEventListener(this.refs.header,"keydown",function(Q){(13===Q.keyCode||32===Q.keyCode)&&(Q.preventDefault(),X.collapsed=!X.collapsed)})),l.default.all([me,J])}},{key:"attachComponentsLogic",value:function(K){n.default.each(K=K||this.components,function(X){X.attachLogic(),n.default.isFunction(X.attachComponentsLogic)&&X.attachComponentsLogic()})}},{key:"attachComponents",value:function(K,X,me){if(!(K=this.hook("attachComponents",K,X=X||this.components,me=me||this.component.components,this)))return new l.default(function(){});var J=0,Q=[];return Array.prototype.slice.call(K.children).forEach(function(re){!re.getAttribute("data-noattach")&&X[J]&&(Q.push(X[J].attach(re)),J++)}),l.default.all(Q)}},{key:"removeComponent",value:function(K,X){X=X||this.components,K.destroy(),n.default.remove(X,{id:K.id})}},{key:"removeComponentByKey",value:function(K,X){var me=this;if(!this.getComponent(K,function(Q,re){me.removeComponent(Q,re),X&&X(Q,re)}))return X&&X(null),null}},{key:"removeComponentById",value:function(K,X){var me=this;if(!this.getComponentById(K,function(Q,re){me.removeComponent(Q,re),X&&X(Q,re)}))return X&&X(null),null}},{key:"updateValue",value:function(K){var X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.components.reduce(function(me,J){return J.updateValue(null,X)||me},w(D(U.prototype),"updateValue",this).call(this,K,X))}},{key:"shouldSkipValidation",value:function(K,X,me){return!this.component.input||w(D(U.prototype),"shouldSkipValidation",this).call(this,K,X,me)}},{key:"checkData",value:function(K,X,me,J){if(this.builderMode)return!0;K=K||this.rootValue,X=X||{},me=me||this.data;var Q=(J=J&&n.default.isArray(J)?J:this.getComponents()).reduce(function(re,de){return de.checkData(K,X,me)&&re},w(D(U.prototype),"checkData",this).call(this,K,X,me));return this.checkModal(Q,this.isDirty),Q}},{key:"checkConditions",value:function(K,X,me){var J=w(D(U.prototype),"checkConditions",this).call(this,K,X,me);return this.getComponents().forEach(function(Q){return Q.checkConditions(K,X,Q.data)}),J}},{key:"clearOnHide",value:function(K){w(D(U.prototype),"clearOnHide",this).call(this,K),this.component.clearOnHide&&(this.allowData&&!this.hasValue()&&(this.dataValue=this.defaultValue),this.hasValue()&&this.restoreComponentsContext()),this.getComponents().forEach(function(X){return X.clearOnHide(K)})}},{key:"restoreComponentsContext",value:function(){var K=this;this.getComponents().forEach(function(X){return X.data=K.dataValue})}},{key:"beforePage",value:function(K){return l.default.all(this.getComponents().map(function(X){return X.beforePage(K)}))}},{key:"beforeSubmit",value:function(){return l.default.all(this.getComponents().map(function(K){return K.beforeSubmit()}))}},{key:"calculateValue",value:function(K,X,me){return!!this.conditionallyVisible()&&this.getComponents().reduce(function(J,Q){return Q.calculateValue(K,X,me)||J},w(D(U.prototype),"calculateValue",this).call(this,K,X,me))}},{key:"isLastPage",value:function(){return this.pages.length-1===this.page}},{key:"isValid",value:function(K,X){return this.getComponents().reduce(function(me,J){return J.isValid(K,X)&&me},w(D(U.prototype),"isValid",this).call(this,K,X))}},{key:"checkChildComponentsValidity",value:function(K,X,me,J,Q){return this.getComponents().reduce(function(re,de){return de.checkValidity(K,X,me,J)&&re},Q)}},{key:"checkValidity",value:function(K,X,me,J){if(!this.checkCondition(me,K))return this.setCustomValidity(""),!0;var Q=this.checkChildComponentsValidity(K,X,me,J,w(D(U.prototype),"checkValidity",this).call(this,K,X,me,J));return this.checkModal(Q,X),Q}},{key:"checkAsyncValidity",value:function(K,X,me,J){var Q=this;return this.ready.then(function(){var re=[w(D(U.prototype),"checkAsyncValidity",Q).call(Q,K,X,me,J)];return Q.eachComponent(function(de){return re.push(de.checkAsyncValidity(K,X,me,J))}),l.default.all(re).then(function(de){return de.reduce(function(te,j){return te&&j},!0)})})}},{key:"setPristine",value:function(K){w(D(U.prototype),"setPristine",this).call(this,K),this.getComponents().forEach(function(X){return X.setPristine(K)})}},{key:"isPristine",get:function(){return this.pristine&&this.getComponents().every(function(K){return K.isPristine})}},{key:"isDirty",get:function(){return this.dirty&&this.getComponents().every(function(K){return K.isDirty})}},{key:"detach",value:function(){this.components.forEach(function(K){K.detach()}),w(D(U.prototype),"detach",this).call(this)}},{key:"clear",value:function(){this.components.forEach(function(K){K.clear()}),w(D(U.prototype),"clear",this).call(this)}},{key:"destroy",value:function(){this.destroyComponents(),w(D(U.prototype),"destroy",this).call(this)}},{key:"destroyComponents",value:function(){var K=this;this.getComponents().slice().forEach(function(me){return K.removeComponent(me,K.components)}),this.components=[]}},{key:"errors",get:function(){var K=this.error?[this.error]:[];return this.getComponents().reduce(function(X,me){return X.concat(me.errors||[])},K).filter(function(X){return"hidden"!==X.level})}},{key:"getValue",value:function(){return this.data}},{key:"resetValue",value:function(){w(D(U.prototype),"resetValue",this).call(this),this.getComponents().forEach(function(K){return K.resetValue()}),this.setPristine(!0)}},{key:"dataReady",get:function(){return l.default.all(this.getComponents().map(function(K){return K.dataReady}))}},{key:"setNestedValue",value:function(K,X){var me=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return K._data=this.componentContext(K),"button"!==K.type&&("components"===K.type?K.tree&&K.hasValue(X)?K.setValue(n.default.get(X,K.key),me):K.setValue(X,me):X&&K.hasValue(X)?K.setValue(n.default.get(X,K.key),me):this.rootPristine&&!K.visible||!K.shouldAddDefaultValue?void 0:(me.noValidate=!me.dirty,me.resetValue=!0,K.setValue(K.defaultValue,me)))}},{key:"setValue",value:function(K){var X=this,me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!K&&(K.submitAsDraft&&!K.submit&&(me.noValidate=!0),this.getComponents().reduce(function(J,Q){return X.setNestedValue(Q,K,me,J)||J},!1))}},{key:"lazyLoad",get:function(){var K;return null!==(K=this.component.lazyLoad)&&void 0!==K&&K}}],[{key:"schema",value:function(){for(var K=arguments.length,X=new Array(K),me=0;me<K;me++)X[me]=arguments[me];return o.default.schema.apply(o.default,[{tree:!1,lazyLoad:!1}].concat(X))}}]),U}(o.default)},26023:(he,y,i)=>{"use strict";function e(b){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(I){return typeof I}:function(I){return I&&"function"==typeof Symbol&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I})(b)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(278),i(60228),i(63975),i(34338),i(49693),i(47522),i(5399),i(41517),i(88052);var n=l(i(6990)),o=l(i(1681)),a=l(i(52488));function l(b){return b&&b.__esModule?b:{default:b}}function d(b,I){for(var L=0;L<I.length;L++){var D=I[L];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(b,A(D.key),D)}}function A(b){var I=function _(b,I){if("object"!==e(b)||null===b)return b;var L=b[Symbol.toPrimitive];if(void 0!==L){var D=L.call(b,I||"default");if("object"!==e(D))return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===I?String:Number)(b)}(b,"string");return"symbol"===e(I)?I:String(I)}function C(){return C=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(I,L,D){var F=function R(b,I){for(;!Object.prototype.hasOwnProperty.call(b,I)&&null!==(b=p(b)););return b}(I,L);if(F){var P=Object.getOwnPropertyDescriptor(F,L);return P.get?P.get.call(arguments.length<3?I:D):P.value}},C.apply(this,arguments)}function f(b,I){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,F){return D.__proto__=F,D})(b,I)}function p(b){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(L){return L.__proto__||Object.getPrototypeOf(L)})(b)}y.default=function(b){!function x(b,I){if("function"!=typeof I&&null!==I)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(I&&I.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),I&&f(b,I)}(L,b);var I=function k(b){var I=function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var F,D=p(b);if(I){var P=p(this).constructor;F=Reflect.construct(D,arguments,P)}else F=D.apply(this,arguments);return function w(b,I){if(I&&("object"===e(I)||"function"==typeof I))return I;if(void 0!==I)throw new TypeError("Derived constructors may only return object or undefined");return function g(b){if(void 0===b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}(b)}(this,F)}}(L);function L(){return function u(b,I){if(!(b instanceof I))throw new TypeError("Cannot call a class as a function")}(this,L),I.apply(this,arguments)}return function s(b,I,L){I&&d(b.prototype,I),L&&d(b,L),Object.defineProperty(b,"prototype",{writable:!1})}(L,[{key:"componentContext",value:function(F){return this.iteratableRows[F.rowIndex].data}},{key:"iteratableRows",get:function(){throw new Error("Getter #iteratableRows() is not implemented")}},{key:"rowIndex",get:function(){return C(p(L.prototype),"rowIndex",this)},set:function(F){this._rowIndex=F}},{key:"init",value:function(){C(p(L.prototype),"init",this).call(this),this.prevHasAddButton=this.hasAddButton()}},{key:"checkAddButtonChanged",value:function(){var F=this.hasAddButton();F!==this.prevHasAddButton&&(this.prevHasAddButton=F,this.redraw())}},{key:"checkData",value:function(F,P,O){return F=F||this.rootValue,P=P||{},O=O||this.data,this.checkAddButtonChanged(),this.checkRows("checkData",F,P,o.default.prototype.checkData.call(this,F,P,O))}},{key:"checkRows",value:function(F,P,O,U,V){var K=this;return this.iteratableRows.reduce(function(X,me,J){return(null!=O&&O.rowIndex&&O?.rowIndex!==J||K.checkRow(F,P,O,me.data,me.components,V))&&X},U)}},{key:"checkRow",value:function(F,P,O,U,V,K){null!=O&&O.isolateRow&&(K=!0,O.noRefresh=!0);var X=n.default.reduce(V,function(me,J){return J[F](P,O,U,K)&&me},!0);return null!=O&&O.noRefresh&&delete O.noRefresh,X}},{key:"hasAddButton",value:function(){var F=n.default.get(this.component,"validate.maxLength"),P=n.default.get(this.component,"conditionalAddButton");return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&!this.options.preview&&(!F||this.iteratableRows.length<F)&&(!P||this.evaluate(P,{value:this.dataValue},"show"))}},{key:"getComponent",value:function(F,P,O){var U=(F=Array.isArray(F)?F:[F]).shift(),V=F,K=[],X=null,me=null,J=null;return n.default.isNumber(U)&&(J=U,U=V.shift()),n.default.isString(U)&&(this.everyComponent(function(Q,re){Q.component.key===U&&(X=Q,V.length>0&&"getComponent"in Q?me=Q.getComponent(V,P,O):P&&P(Q,re),K=null!==J?me:K.concat(me||X))},J),(!K||0===K.length)&&X&&(K=null!==J?X:[X])),K}},{key:"everyComponent",value:function(F,P,O){var U;if(n.default.isObject(P)&&(O=P,P=null),null===(U=O)||void 0===U||!U.email){var V=this.getComponents(P);n.default.each(V,function(K,X){if(!1===F(K,V,X)||"function"==typeof K.everyComponent&&!1===K.everyComponent(F,O))return!1})}}},{key:"getValueAsString",value:function(F,P){if(null!=P&&P.email){var O,U='\n        <table border="1" style="width:100%">\n          <thead>\n            <tr>\n      ';return null===(O=this.component.components)||void 0===O||O.forEach(function(V){U+='<th style="padding: 5px 10px;">'.concat(V.label||V.key,"</th>")}),U+="\n          </tr>\n        </thead>\n        <tbody>\n      ",this.iteratableRows.forEach(function(V){U+="<tr>",n.default.each(V.components,function(X){U+='<td style="padding:5px 10px;">',X.isInputComponent&&X.visible&&!X.skipInEmail&&(U+=X.getView(X.dataValue,P)),U+="</td>"}),U+="</tr>"}),U+="\n          </tbody>\n        </table>\n      "}return F&&F.length?C(p(L.prototype),"getValueAsString",this).call(this,F,P):""}},{key:"getComponents",value:function(F){return void 0!==F?this.iteratableRows[F]?this.iteratableRows[F].components:[]:C(p(L.prototype),"getComponents",this).call(this)}}],[{key:"schema",value:function(){for(var F=arguments.length,P=new Array(F),O=0;O<F;O++)P[O]=arguments[O];return a.default.schema.apply(a.default,[{disableAddingRemovingRows:!1}].concat(P))}}]),L}(a.default)},52488:(he,y,i)=>{"use strict";function e(D){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(F){return typeof F}:function(F){return F&&"function"==typeof Symbol&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F})(D)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(69358),i(38077),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(52003),i(64043),i(63945),i(49693),i(60228),i(47522),i(57267),i(5399),i(41517),i(88052);var n=l(i(1681)),o=l(i(60211)),a=l(i(6990));function l(D){return D&&D.__esModule?D:{default:D}}function u(D,F){var P=Object.keys(D);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(D);F&&(O=O.filter(function(U){return Object.getOwnPropertyDescriptor(D,U).enumerable})),P.push.apply(P,O)}return P}function d(D){for(var F=1;F<arguments.length;F++){var P=null!=arguments[F]?arguments[F]:{};F%2?u(Object(P),!0).forEach(function(O){s(D,O,P[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(P)):u(Object(P)).forEach(function(O){Object.defineProperty(D,O,Object.getOwnPropertyDescriptor(P,O))})}return D}function s(D,F,P){return(F=R(F))in D?Object.defineProperty(D,F,{value:P,enumerable:!0,configurable:!0,writable:!0}):D[F]=P,D}function _(D,F){for(var P=0;P<F.length;P++){var O=F[P];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(D,R(O.key),O)}}function R(D){var F=function x(D,F){if("object"!==e(D)||null===D)return D;var P=D[Symbol.toPrimitive];if(void 0!==P){var O=P.call(D,F||"default");if("object"!==e(O))return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===F?String:Number)(D)}(D,"string");return"symbol"===e(F)?F:String(F)}function f(){return f=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(F,P,O){var U=function k(D,F){for(;!Object.prototype.hasOwnProperty.call(D,F)&&null!==(D=I(D)););return D}(F,P);if(U){var V=Object.getOwnPropertyDescriptor(U,P);return V.get?V.get.call(arguments.length<3?F:O):V.value}},f.apply(this,arguments)}function g(D,F){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(O,U){return O.__proto__=U,O})(D,F)}function I(D){return(I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(P){return P.__proto__||Object.getPrototypeOf(P)})(D)}y.default=function(D){!function w(D,F){if("function"!=typeof F&&null!==F)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(F&&F.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),F&&g(D,F)}(P,D);var F=function M(D){var F=function b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var U,O=I(D);if(F){var V=I(this).constructor;U=Reflect.construct(O,arguments,V)}else U=O.apply(this,arguments);return function p(D,F){if(F&&("object"===e(F)||"function"==typeof F))return F;if(void 0!==F)throw new TypeError("Derived constructors may only return object or undefined");return function E(D){if(void 0===D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}(D)}(this,U)}}(P);function P(){return function A(D,F){if(!(D instanceof F))throw new TypeError("Cannot call a class as a function")}(this,P),F.apply(this,arguments)}return function C(D,F,P){F&&_(D.prototype,F),P&&_(D,P),Object.defineProperty(D,"prototype",{writable:!1})}(P,[{key:"hasChanged",value:function(U,V){return null!=U&&!this.hasValue()||!a.default.isEqual(U,V)}},{key:"allowData",get:function(){return!0}},{key:"emptyValue",get:function(){return{}}},{key:"componentContext",value:function(){return this.dataValue}},{key:"getValueAsString",value:function(U,V){if(null!=V&&V.email){var K='\n        <table border="1" style="width:100%">\n          <tbody>\n      ';return this.everyComponent(function(X){X.isInputComponent&&X.visible&&!X.skipInEmail&&(K+='\n            <tr>\n              <th style="padding: 5px 10px;">'.concat(X.label,'</th>\n              <td style="width:100%;padding:5px 10px;">').concat(X.getView(X.dataValue,V),"</td>\n            </tr>\n          "))},d(d({},V),{},{fromRoot:!0})),K+="\n          </tbody>\n        </table>\n      "}return a.default.isEmpty(U)?"":null!=V&&V.modalPreview?(delete V.modalPreview,this.getDataValueAsTable(U,V)):"[Complex Data]"}},{key:"getDataValueAsTable",value:function(U,V){var K='\n      <table border="1" style="width:100%">\n        <tbody>\n    ',X=new RegExp("<(.*?)>");return this.components.forEach(function(me){if(me.isInputComponent&&me.visible&&!me.skipInEmail){var J=me.getView(me.dataValue,V);K+='\n          <tr>\n            <th style="padding: 5px 10px;">'.concat(me.label,'</th>\n            <td style="width:100%;padding:5px 10px;">').concat(me.component&&"html"===me.component.inputFormat&&X.test(J)?J:'<input type="text" value="'.concat(J.replace(/"/g,"&quot;"),'" readonly/>'),"</td>\n          </tr>\n        ")}},d(d({},V),{},{fromRoot:!0})),K+="\n        </tbody>\n      </table>\n    "}},{key:"everyComponent",value:function(U,V){if(null!=V&&V.email){if(!V.fromRoot)return;delete V.fromRoot}return f(I(P.prototype),"everyComponent",this).call(this,U,V)}},{key:"getValue",value:function(){return this.dataValue}},{key:"updateValue",value:function(U){return n.default.prototype.updateValue.call(this,U,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},{key:"setValue",value:function(U){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},K=!1,X=this.hasValue();return X&&a.default.isEmpty(this.dataValue)&&(V.noValidate=!0),(!U||!a.default.isObject(U)||!X)&&(K=!0,this.dataValue=this.defaultValue),K=f(I(P.prototype),"setValue",this).call(this,U,V)||K,this.updateOnChange(V,K),K}}]),P}(o.default)},92002:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function u(){for(var d=arguments.length,s=new Array(d),A=0;A<d;A++)s[A]=arguments[A];return e.default.baseEditForm.apply(e.default,[[{key:"data",components:n.default},{key:"display",components:o.default},{label:"Provider",key:"provider",weight:15,components:a.default}]].concat(s))},i(34338);var e=l(i(14231)),n=l(i(14474)),o=l(i(12884)),a=l(i(22318));function l(d){return d&&d.__esModule?d:{default:d}}},56110:(he,y,i)=>{"use strict";function e(q){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(se){return typeof se}:function(se){return se&&"function"==typeof Symbol&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se})(q)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(69358),i(99474),i(35082),i(63975),i(84254),i(752),i(21694),i(76265),i(77049),i(89730),Object.defineProperty(y,"__esModule",{value:!0}),y.default=y.AddressComponentMode=void 0,i(50886),i(34284),i(49693),i(60228),i(47522),i(6203),i(41517),i(34338),i(64043),i(61514),i(38077),i(5399),i(88052);var n=A(i(71028)),o=A(i(6990)),a=i(55798),l=i(15475),u=A(i(84984)),d=A(i(60211)),s=A(i(52952));function A(q){return q&&q.__esModule?q:{default:q}}function _(q,se){return function x(q){if(Array.isArray(q))return q}(q)||function R(q,se){var ne=null==q?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(null!=ne){var _e,ge,Ce,Te,De=[],fe=!0,xe=!1;try{if(Ce=(ne=ne.call(q)).next,0===se){if(Object(ne)!==ne)return;fe=!1}else for(;!(fe=(_e=Ce.call(ne)).done)&&(De.push(_e.value),De.length!==se);fe=!0);}catch(Oe){xe=!0,ge=Oe}finally{try{if(!fe&&null!=ne.return&&(Te=ne.return(),Object(Te)!==Te))return}finally{if(xe)throw ge}}return De}}(q,se)||w(q,se)||function C(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(q,se){if(q){if("string"==typeof q)return p(q,se);var ne=Object.prototype.toString.call(q).slice(8,-1);if("Object"===ne&&q.constructor&&(ne=q.constructor.name),"Map"===ne||"Set"===ne)return Array.from(q);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return p(q,se)}}function p(q,se){(null==se||se>q.length)&&(se=q.length);for(var ne=0,_e=new Array(se);ne<se;ne++)_e[ne]=q[ne];return _e}function E(q,se){var ne=Object.keys(q);if(Object.getOwnPropertySymbols){var _e=Object.getOwnPropertySymbols(q);se&&(_e=_e.filter(function(ge){return Object.getOwnPropertyDescriptor(q,ge).enumerable})),ne.push.apply(ne,_e)}return ne}function b(q){for(var se=1;se<arguments.length;se++){var ne=null!=arguments[se]?arguments[se]:{};se%2?E(Object(ne),!0).forEach(function(_e){I(q,_e,ne[_e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(ne)):E(Object(ne)).forEach(function(_e){Object.defineProperty(q,_e,Object.getOwnPropertyDescriptor(ne,_e))})}return q}function I(q,se,ne){return(se=P(se))in q?Object.defineProperty(q,se,{value:ne,enumerable:!0,configurable:!0,writable:!0}):q[se]=ne,q}function D(q,se){for(var ne=0;ne<se.length;ne++){var _e=se[ne];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(q,P(_e.key),_e)}}function P(q){var se=function O(q,se){if("object"!==e(q)||null===q)return q;var ne=q[Symbol.toPrimitive];if(void 0!==ne){var _e=ne.call(q,se||"default");if("object"!==e(_e))return _e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===se?String:Number)(q)}(q,"string");return"symbol"===e(se)?se:String(se)}function U(){return U=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(se,ne,_e){var ge=function V(q,se){for(;!Object.prototype.hasOwnProperty.call(q,se)&&null!==(q=de(q)););return q}(se,ne);if(ge){var Ce=Object.getOwnPropertyDescriptor(ge,ne);return Ce.get?Ce.get.call(arguments.length<3?se:_e):Ce.value}},U.apply(this,arguments)}function X(q,se){return(X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(_e,ge){return _e.__proto__=ge,_e})(q,se)}function de(q){return(de=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ne){return ne.__proto__||Object.getPrototypeOf(ne)})(q)}var te={Autocomplete:"autocomplete",Manual:"manual"};y.AddressComponentMode=te;var j="address-autocomplete-remove-value-icon--hidden",H="show = _.get(instance, 'parent.manualMode', false);";y.default=function(q){!function K(q,se){if("function"!=typeof se&&null!==se)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(se&&se.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),se&&X(q,se)}(ne,q);var se=function me(q){var se=function re(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var ge,_e=de(q);if(se){var Ce=de(this).constructor;ge=Reflect.construct(_e,arguments,Ce)}else ge=_e.apply(this,arguments);return function J(q,se){if(se&&("object"===e(se)||"function"==typeof se))return se;if(void 0!==se)throw new TypeError("Derived constructors may only return object or undefined");return function Q(q){if(void 0===q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q}(q)}(this,ge)}}(ne);function ne(){return function L(q,se){if(!(q instanceof se))throw new TypeError("Cannot call a class as a function")}(this,ne),se.apply(this,arguments)}return function F(q,se,ne){se&&D(q.prototype,se),ne&&D(q,ne),Object.defineProperty(q,"prototype",{writable:!1})}(ne,[{key:"mergeSchema",value:function(){var ge=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Ce=this.defaultSchema;return ge.components&&(Ce=o.default.omit(Ce,"components")),o.default.defaultsDeep(ge,Ce)}},{key:"init",value:function(){if(this.components=this.components||[],(this.builderMode||this.manualModeEnabled)&&d.default.prototype.addComponents.call(this,this.manualMode?this.address:{}),u.default.prototype.init.call(this),!this.builderMode)if(this.component.provider){var ge=this.component;this.provider=this.initializeProvider(ge.provider,ge.providerOptions)}else if(this.component.map){this.component.provider=l.GoogleAddressProvider.name,this.component.providerOptions=this.component.providerOptions||{};var De=this.component,fe=De.map,xe=De.provider,Oe=De.providerOptions,Le=fe.key,Gt=fe.region;Le&&o.default.set(Oe,"params.key",Le),Gt&&o.default.set(Oe,"params.region",Gt),this.provider=this.initializeProvider(xe,Oe)}}},{key:"initializeProvider",value:function(ge){var Ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Te=this.interpolate(Ce.url);return new(a.GlobalFormio.Providers.getProvider("address",ge))(b(b({},Ce),{},{url:Te}))}},{key:"emptyValue",get:function(){return this.manualModeEnabled?{mode:te.Autocomplete,address:{}}:{}}},{key:"mode",get:function(){var ge,Ce;return this.manualModeEnabled&&null!==(ge=null===(Ce=this.dataValue)||void 0===Ce?void 0:Ce.mode)&&void 0!==ge?ge:te.Autocomplete},set:function(ge){this.manualModeEnabled&&(this.dataValue.mode=ge)}},{key:"autocompleteMode",get:function(){return this.mode===te.Autocomplete}},{key:"manualMode",get:function(){return this.mode===te.Manual}},{key:"manualModeEnabled",get:function(){return!this.isMultiple&&!!this.component.enableManualMode}},{key:"restoreComponentsContext",value:function(){var ge=this;this.getComponents().forEach(function(Ce){Ce.data=ge.address,Ce.setValue(Ce.dataValue,{noUpdateEvent:!0})})}},{key:"isMultiple",get:function(){return!!this.component.multiple}},{key:"address",get:function(){return this.isMultiple?o.default.isArray(this.dataValue)?this.dataValue:[this.dataValue]:this.manualModeEnabled&&this.dataValue?this.dataValue.address:this.dataValue},set:function(ge){this.manualModeEnabled&&!this.isMultiple?this.dataValue.address=ge:this.dataValue=ge}},{key:"defaultValue",get:function(){var ge=U(de(ne.prototype),"defaultValue",this);return this.isMultiple&&(ge=o.default.isArray(ge)?ge:[ge]),ge}},{key:"defaultSchema",get:function(){return ne.schema()}},{key:"isValueInLegacyFormat",value:function(ge){return ge&&!ge.mode}},{key:"normalizeValue",value:function(ge){return this.manualModeEnabled&&this.isValueInLegacyFormat(ge)?{mode:te.Autocomplete,address:ge}:ge}},{key:"setValue",value:function(ge){var Ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Te=u.default.prototype.setValue.call(this,ge,Ce);return this.manualMode&&this.restoreComponentsContext(),(Te||!o.default.isEmpty(ge)&&Ce.fromSubmission)&&this.redraw(),Te}},{key:"modeSwitcher",get:function(){return this.refs&&this.refs[ne.modeSwitcherRef]||null}},{key:"removeValueIcon",get:function(){return this.refs&&this.refs[ne.removeValueIconRef]||null}},{key:"searchInput",get:function(){return this.refs&&this.refs[ne.searchInputRef]||null}},{key:"addRowButton",get:function(){return this.refs&&this.refs[ne.addRowButtonRef]||null}},{key:"removeRowButton",get:function(){return this.refs&&this.refs[ne.removeRowButtonRef]||null}},{key:"searchInputAttributes",get:function(){var ge={name:this.options.name,type:"text",class:"form-control",lang:this.options.language,tabindex:this.component.tabindex||0};return this.component.placeholder&&(ge.placeholder=this.t(this.component.placeholder)),this.disabled&&(ge.disabled="disabled"),o.default.defaults(ge,this.component.attributes),ge}},{key:"templateName",get:function(){return"address"}},{key:"gridTemplateName",get:function(){return"multiValueTable"}},{key:"rowTemplateName",get:function(){return"multiValueRow"}},{key:"hasChildren",get:function(){return!this.isMultiple&&(this.builderMode||this.manualModeEnabled)}},{key:"addAnother",get:function(){return this.t(this.component.addAnother||"Add Another")}},{key:"renderElement",value:function(ge){return this.renderTemplate(this.templateName,{children:this.hasChildren?this.renderComponents():"",nestedKey:this.nestedKey,inputAttributes:this.searchInputAttributes,ref:{modeSwitcher:ne.modeSwitcherRef,removeValueIcon:ne.removeValueIconRef,searchInput:ne.searchInputRef},displayValue:this.getDisplayValue(ge),mode:{autocomplete:this.autocompleteMode,manual:this.manualMode}})}},{key:"renderRow",value:function(ge,Ce){return this.renderTemplate(this.rowTemplateName,{index:Ce,disabled:this.disabled,element:"".concat(this.renderElement(ge,Ce))})}},{key:"renderGrid",value:function(){return this.renderTemplate(this.gridTemplateName,{rows:this.address.map(this.renderRow.bind(this)).join(""),disabled:this.disabled,addAnother:this.addAnother})}},{key:"render",value:function(){return this.isMultiple?U(de(ne.prototype),"render",this).call(this,this.renderGrid()):U(de(ne.prototype),"render",this).call(this,this.renderElement())}},{key:"onSelectAddress",value:function(ge,Ce,Te){this.isMultiple?(this.address[Te]=ge,this.address=function f(q){return function M(q){if(Array.isArray(q))return p(q)}(q)||function g(q){if(typeof Symbol<"u"&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||w(q)||function k(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.address)):this.address=ge,this.triggerChange({modified:!0}),Ce&&(Ce.value=this.getDisplayValue(this.isMultiple?this.address[Te]:this.address)),this.updateRemoveIcon(Te)}},{key:"addRow",value:function(){this.address=this.address.concat(this.emptyValue),U(de(ne.prototype),"redraw",this).call(this)}},{key:"attach",value:function(ge){var Ce,Te=this,De=(this.builderMode||this.manualMode?U(de(ne.prototype),"attach",this):u.default.prototype.attach).call(this,ge);if(!this.builderMode&&!this.provider&&this.component.provider){var fe=this.component;this.provider=this.initializeProvider(fe.provider,fe.providerOptions)}return this.loadRefs(ge,(I(Ce={},ne.addRowButtonRef,"single"),I(Ce,ne.modeSwitcherRef,"single"),I(Ce,ne.removeRowButtonRef,"multiple"),I(Ce,ne.removeValueIconRef,"multiple"),I(Ce,ne.searchInputRef,"multiple"),Ce)),this.searchInput.forEach(function(Le,Gt){!Te.builderMode&&Le&&Te.provider&&("google"===Te.component.provider?Te.provider.attachAutocomplete(Le,Gt,Te.onSelectAddress.bind(Te)):(0,n.default)({input:Le,debounceWaitMs:300,fetch:function(An,$n){Te.provider.search(An).then($n)},render:function(An){var $n=Te.ce("div");return $n.textContent=Te.getDisplayValue(An),$n},onSelect:function(An){Te.onSelectAddress(An,Le,Gt)}}),Te.addEventListener(Le,"blur",function(){Le&&Le.value&&(Le.value=Te.getDisplayValue(Te.isMultiple?Te.address[Gt]:Te.address))}),Te.addEventListener(Le,"keyup",function(){Le&&(Le.value||Te.clearAddress(Le,Gt))}))}),this.addRowButton&&this.addEventListener(this.addRowButton,"click",function(Le){Le.preventDefault(),Te.addRow()}),this.removeRowButton.forEach(function(Le,Gt){Te.addEventListener(Le,"click",function(Ut){Ut.preventDefault(),Te.removeValue(Gt)})}),this.modeSwitcher&&this.addEventListener(this.modeSwitcher,"change",function(){Te.modeSwitcher&&(Te.dataValue=Te.emptyValue,Te.mode=Te.modeSwitcher.checked?te.Manual:te.Autocomplete,Te.builderMode||(Te.manualMode&&Te.restoreComponentsContext(),Te.triggerChange({modified:!0})),Te.redraw())}),this.builderMode||(this.removeValueIcon.forEach(function(Le,Gt){Te.updateRemoveIcon(Gt);var Ut=function(){var $n,xn=null===($n=Te.searchInput)||void 0===$n?void 0:$n[Gt];Te.clearAddress(xn,Gt),xn&&xn.focus()};Te.addEventListener(Le,"click",Ut),Te.addEventListener(Le,"keydown",function(An){"Enter"===An.key&&Ut()})}),o.default.each(this.refs.searchInput||[],function(Le){return Te.addFocusBlurEvents(Le)})),De}},{key:"addChildComponent",value:function(ge){ge.customConditional=H}},{key:"redraw",value:function(){var ge=this,Ce=this.modeSwitcher&&document.activeElement===this.modeSwitcher;return U(de(ne.prototype),"redraw",this).call(this).then(function(Te){return Ce&&ge.modeSwitcher&&ge.modeSwitcher.focus(),Te})}},{key:"clearAddress",value:function(ge,Ce){var Te;this.isEmpty()||this.triggerChange(),null!==(Te=this.address)&&void 0!==Te&&Te[Ce]?this.address[Ce]=this.emptyValue:this.address=this.emptyValue,ge&&(ge.value=""),this.updateRemoveIcon(Ce)}},{key:"getDisplayValue",value:function(){return this.provider&&!this.manualMode?this.provider.getDisplayValue(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.address):""}},{key:"validateMultiple",value:function(){return this.isMultiple}},{key:"updateRemoveIcon",value:function(ge){var Ce,Te=null===(Ce=this.removeValueIcon)||void 0===Ce?void 0:Ce[ge];Te&&(this.isEmpty(this.isMultiple?this.address[ge]:this.address)||this.disabled?this.addClass(Te,j):this.removeClass(Te,j))}},{key:"getValueAsString",value:function(ge,Ce){if(!ge)return"";var Te=this.normalizeValue(ge),De=this.manualModeEnabled?Te:{address:Te,mode:te.Autocomplete},fe=De.address,Oe=De.mode===te.Manual;return this.provider&&!Oe?this.getDisplayValue(fe):Oe?this.component.manualModeViewString?this.interpolate(this.component.manualModeViewString,{address:fe,data:this.data,component:this.component}):this.getComponents().filter(function(Le){return Le.hasValue(fe)}).map(function(Le){return[Le,o.default.get(fe,Le.key)]}).filter(function(Le){var Gt=_(Le,2);return!Gt[0].isEmpty(Gt[1])}).map(function(Le){var Gt=_(Le,2);return Gt[0].getValueAsString(Gt[1],Ce)}).join(", "):U(de(ne.prototype),"getValueAsString",this).call(this,fe,Ce)}},{key:"focus",value:function(){this.searchInput&&this.searchInput[0]&&this.searchInput[0].focus()}}],[{key:"schema",value:function(){for(var ge=arguments.length,Ce=new Array(ge),Te=0;Te<ge;Te++)Ce[Te]=arguments[Te];return s.default.schema.apply(s.default,[{type:"address",label:"Address",key:"address",switchToManualModeLabel:"Can't find address? Switch to manual mode.",provider:"",providerOptions:{},manualModeViewString:"",hideLabel:!1,disableClearIcon:!1,enableManualMode:!1,components:[{label:"Address 1",tableView:!1,key:"address1",type:"textfield",input:!0,customConditional:H},{label:"Address 2",tableView:!1,key:"address2",type:"textfield",input:!0,customConditional:H},{label:"City",tableView:!1,key:"city",type:"textfield",input:!0,customConditional:H},{label:"State",tableView:!1,key:"state",type:"textfield",input:!0,customConditional:H},{label:"Country",tableView:!1,key:"country",type:"textfield",input:!0,customConditional:H},{label:"Zip Code",tableView:!1,key:"zip",type:"textfield",input:!0,customConditional:H}]}].concat(Ce))}},{key:"builderInfo",get:function(){return{title:"Address",group:"advanced",icon:"home",documentation:"/userguide/form-building/advanced-components#address",weight:35,schema:ne.schema()}}},{key:"modeSwitcherRef",get:function(){return"modeSwitcher"}},{key:"removeValueIconRef",get:function(){return"removeValueIcon"}},{key:"searchInputRef",get:function(){return"searchInput"}},{key:"addRowButtonRef",get:function(){return"addButton"}},{key:"removeRowButtonRef",get:function(){return"removeRow"}}]),ne}(s.default)},14474:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"multiple",customConditional:function(o){return!o.data.enableManualMode}},{type:"address",label:"Default Value",key:"defaultValue",weight:5,placeholder:"Default Value",tooltip:"The Default Value will be the value for this field, before user interaction. Having a default value will override the placeholder text.",input:!0,customDefaultValue:function(o){return o.instance.manualModeEnabled?{mode:"autocomplete",address:{}}:{}}}]},12884:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{weight:20,type:"checkbox",input:!0,key:"enableManualMode",label:"Enable Manual Mode",tooltip:"Should Manual Mode be enabled for that component or not.",customConditional:function(o){return!o.data.multiple}},{weight:30,type:"textfield",input:!0,key:"switchToManualModeLabel",label:"Switch To Manual Mode Label",placeholder:"Switch To Manual Mode Label",tooltip:"The label for the checkbox used to switch to manual mode.",validate:{required:!0},customConditional:function(o){return!!o.data.enableManualMode}},{weight:40,type:"checkbox",input:!0,key:"disableClearIcon",label:"Disable Clear Icon",tooltip:"Clear Icon allows easily clear component's value."},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:function(o){return o.data.multiple}}]},22318:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(50886),i(65137),i(752),i(60228),i(76265),i(34284);var e=function o(l){return l&&l.__esModule?l:{default:l}}(i(6990)),n=i(55798);y.default=[{type:"select",input:!0,key:"provider",label:"Provider",placeholder:"Select your address search provider",weight:0,tooltip:"Which address search service should be used.",valueProperty:"value",dataSrc:"custom",data:{custom:function(){return e.default.values(n.GlobalFormio.Providers.getProviders("address")).sort().map(function(u){return{label:u.displayName,value:u.name}})}},validate:{required:!0}},{type:"textfield",input:!0,key:"providerOptions.params['subscription-key']",label:"Subscription Key",placeholder:"Enter Subscription Key",weight:10,tooltip:"Use your Azure Maps subscription key here.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"azure"]}}},{type:"textfield",input:!0,key:"providerOptions.url",label:"Url",placeholder:"Enter Url",weight:10,tooltip:"Url to the service which should be used to search addresses for autocomplete.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.queryProperty",label:"Query Property",defaultValue:"query",placeholder:"Enter Query Property",weight:20,tooltip:"Which query param should be used to pass as a search string. Default is `query`.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.responseProperty",label:"Response Property",placeholder:"Enter Response Property",weight:30,tooltip:"The property within the response data, where iterable addresses reside. For example: results.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.displayValueProperty",label:"Display Value Property",placeholder:"Display Value Property",weight:40,tooltip:"The property of each address in the response to use as the display value.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textarea",input:!0,key:"providerOptions.params",label:"Params",placeholder:"{ ... }",weight:50,rows:5,editor:"ace",as:"json",tooltip:"Additional query params can be specified here in a way of JSON object.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.params.key",label:"API Key",placeholder:"Enter API Key",weight:10,tooltip:"Use your Google API key here.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"google"]}}},{type:"textarea",input:!0,key:"providerOptions.params.autocompleteOptions",label:"Provider options",placeholder:"Enter provider options as JSON object",defaultValue:{},weight:60,rows:5,as:"json",editor:"ace",tooltip:"Specify Google Maps Autocomplete options used for address searching as JSON object. Follow the <a href ='https://developers.google.com/maps/documentation/javascript/places-autocomplete' target='_blank'>link</a> for available options",conditional:{json:{"===":[{var:"data.provider"},"google"]}}},{type:"textarea",input:!0,key:"manualModeViewString",label:"Manual Mode View String",placeholder:"Enter Manual Mode View String",description:'"address" variable references component value, "data" - submission data and "component" - address component schema.',weight:60,rows:5,editor:"ace",tooltip:"Specify template which should be when quering view string for the component value entered in manual mode. This string is used in table view, CSV export and email rendering. When left blank combined value of all components joined with comma will be used."}]},54712:(he,y,i)=>{"use strict";i(40739),i(69358),i(38077),i(81919),i(99474),i(35082),i(63975),i(84254),i(752),i(21694),i(76265),i(77049),i(89730),i(34284),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(41517),i(49693),i(60228),i(47522),i(34338),i(36585),i(64043),i(57267),i(69373),i(59903),i(59749),i(86544),i(79288);var e=function o(D){return D&&D.__esModule?D:{default:D}}(i(6990)),n=i(12866);function a(D){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(F){return typeof F}:function(F){return F&&"function"==typeof Symbol&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F})(D)}function A(D){return function x(D){if(Array.isArray(D))return f(D)}(D)||function R(D){if(typeof Symbol<"u"&&null!=D[Symbol.iterator]||null!=D["@@iterator"])return Array.from(D)}(D)||C(D)||function _(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(D,F){if(D){if("string"==typeof D)return f(D,F);var P=Object.prototype.toString.call(D).slice(8,-1);if("Object"===P&&D.constructor&&(P=D.constructor.name),"Map"===P||"Set"===P)return Array.from(D);if("Arguments"===P||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return f(D,F)}}function f(D,F){(null==F||F>D.length)&&(F=D.length);for(var P=0,O=new Array(F);P<F;P++)O[P]=D[P];return O}function k(D,F){var P=Object.keys(D);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(D);F&&(O=O.filter(function(U){return Object.getOwnPropertyDescriptor(D,U).enumerable})),P.push.apply(P,O)}return P}function w(D){for(var F=1;F<arguments.length;F++){var P=null!=arguments[F]?arguments[F]:{};F%2?k(Object(P),!0).forEach(function(O){g(D,O,P[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(P)):k(Object(P)).forEach(function(O){Object.defineProperty(D,O,Object.getOwnPropertyDescriptor(P,O))})}return D}function g(D,F,P){return(F=b(F))in D?Object.defineProperty(D,F,{value:P,enumerable:!0,configurable:!0,writable:!0}):D[F]=P,D}function p(D,F){for(var P=0;P<F.length;P++){var O=F[P];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(D,b(O.key),O)}}function b(D){var F=function I(D,F){if("object"!==a(D)||null===D)return D;var P=D[Symbol.toPrimitive];if(void 0!==P){var O=P.call(D,F||"default");if("object"!==a(O))return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===F?String:Number)(D)}(D,"string");return"symbol"===a(F)?F:String(F)}y.default=function(){function D(F,P){(function M(D,F){if(!(D instanceof F))throw new TypeError("Cannot call a class as a function")})(this,D),this.container=F,this.alert=null,this.parentComponent=P,this.refs={},this.loadRefs=this.parentComponent.loadRefs.bind(this)}return function E(D,F,P){F&&p(D.prototype,F),P&&p(D,P),Object.defineProperty(D,"prototype",{writable:!1})}(D,[{key:"refsNames",get:function(){return{messageRef:"multiple"}}},{key:"alertTypes",get:function(){return{error:"danger",success:"success",info:"info",warning:"warning"}}},{key:"showErrors",value:function(){var P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],O=arguments.length>1&&void 0!==arguments[1]&&arguments[1],U=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};P=e.default.isArray(P)?P:[P];var V=this.createMessagesList("error",P);return this.showAlert("error",V,U),O&&this.parentComponent.emit("error",P),P}},{key:"showMessage",value:function(P,O){var U=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},V=P;V instanceof HTMLElement?V.setAttribute("ref","messageRef"):V=this.parentComponent.ce("p",{ref:"messageRef"}),this.showAlert(O,V,U)}},{key:"createMessagesList",value:function(P){if("error"===P){for(var O=arguments.length,U=new Array(O>1?O-1:0),V=1;V<O;V++)U[V-1]=arguments[V];return this.createErrorList.apply(this,U)}}},{key:"createErrorList",value:function(P){var O=this,U=this.parentComponent.ce("p");this.parentComponent.setContent(U,this.parentComponent.t("error"));var V=this.parentComponent.ce("ul"),K=document.createDocumentFragment();return P.forEach(function(X){return O.appendErrorToList(X,V)}),U.appendChild(V),K.appendChild(U),K}},{key:"showAlert",value:function(P,O){var U=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},K=U.customEvents;this.setAlert(P,O,{customClasses:U.customClasses}),this.alert&&(this.attach({customEvents:K}),this.parentComponent.prependTo(this.alert,this.container))}},{key:"setAlert",value:function(P,O){var U=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},V=this.alertTypes[P];if(this.alert&&this.clear(),O){var K=U.id,X=void 0===K?"".concat(P,"-list-").concat(this.parentComponent.id):K,me=U.customClasses,J=void 0===me?"alert alert-".concat(V):me;this.alert=this.parentComponent.ce("div",{id:X,class:J}),O instanceof HTMLElement?this.parentComponent.appendTo(O,this.alert):this.parentComponent.setContent(this.alert,O)}}},{key:"attach",value:function(P){var O,U,K,V=this,X=P.customEvents,me=void 0===X?{}:X;this.eventListenersKeys=[],this.loadRefs(this.alert,this.refsNames);var J=(null===(O=me.click)||void 0===O?void 0:O.listeners)||[],Q=(null===(U=me.keypress)||void 0===U?void 0:U.listeners)||[];me=w(w({},me),{},{click:[].concat(A(J),[function(re){V.focusOnComponent(re.currentTarget.dataset.componentKey)}]),keypress:[].concat(A(Q),[function(re){V.focusOnComponent(re.currentTarget.dataset.componentKey)}])}),null!==(K=this.refs.messageRef)&&void 0!==K&&K.length&&this.refs.messageRef.forEach(function(re){Object.entries(me).forEach(function(de){var te=function l(D,F){return function s(D){if(Array.isArray(D))return D}(D)||function d(D,F){var P=null==D?null:typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(null!=P){var O,U,V,K,X=[],me=!0,J=!1;try{if(V=(P=P.call(D)).next,0===F){if(Object(P)!==P)return;me=!1}else for(;!(me=(O=V.call(P)).done)&&(X.push(O.value),X.length!==F);me=!0);}catch(Q){J=!0,U=Q}finally{try{if(!me&&null!=P.return&&(K=P.return(),Object(K)!==K))return}finally{if(J)throw U}}return X}}(D,F)||C(D,F)||function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(de,2),j=te[0];te[1].forEach(function(z){return V.parentComponent.addEventListener(re,j,z)}),V.eventListenersKeys.push(j)})})}},{key:"clear",value:function(){var P=this;try{var O;null!==(O=this.refs.messageRef)&&void 0!==O&&O.length&&this.refs.messageRef.forEach(function(U){P.eventListenersKeys.forEach(function(V){return P.parentComponent.removeEventListener(U,V)})}),this.refs={},this.parentComponent.removeChildFrom(this.alert,this.container),this.alert=null}catch{}}},{key:"focusOnComponent",value:function(P){if(P){var O,U=this.parentComponent._parentPath?P.replace(this.parentComponent._parentPath,""):P,V=null===(O=this.parentComponent.root)||void 0===O?void 0:O.getComponent(U,null,P);V&&e.default.isFunction(V.focus)&&V.focus()}}},{key:"createMessage",value:function(P,O,U,V,K){if("error"===P)return this.createErrorMessage(O,U,V,K)}},{key:"createErrorMessage",value:function(P,O,U,V){var K,X,me={style:"cursor: pointer",ref:"messageRef",tabIndex:0,"aria-label":"".concat(O,". Click to navigate to the field with following error.")},J=this.parentComponent.ce("li",me);this.parentComponent.setContent(J,O);var Q=!e.default.isUndefined(U)&&(null==V||null===(K=V.messages)||void 0===K?void 0:K[U]),re=Q?.path||(null==V||null===(X=V.component)||void 0===X?void 0:X.key);if(re){var de=(0,n.getStringFromComponentPath)(re);J.dataset.componentKey=de}this.parentComponent.appendTo(J,P)}},{key:"appendErrorToList",value:function(P,O){var U,V=this;if(null!=P&&null!==(U=P.messages)&&void 0!==U&&U.length)P.messages.forEach(function(X,me){V.createMessage("error",O,X.message,me,P)});else if(P){var K=e.default.isObject(P)?P.message||"":P;this.createMessage("error",O,K)}}}]),D}()},86919:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=_e(i(19969)),n=_e(i(92002)),o=_e(i(45499)),a=_e(i(8888)),l=_e(i(93666)),u=_e(i(38653)),d=_e(i(47111)),s=_e(i(91389)),A=_e(i(52110)),_=_e(i(6890)),C=_e(i(22648)),R=_e(i(53694)),x=_e(i(73329)),f=_e(i(34757)),k=_e(i(24667)),w=_e(i(33211)),g=_e(i(85626)),M=_e(i(6214)),p=_e(i(91130)),E=_e(i(7125)),b=_e(i(47136)),I=_e(i(90700)),L=_e(i(78674)),D=_e(i(86874)),F=_e(i(58660)),P=_e(i(18682)),O=_e(i(78208)),U=_e(i(83037)),V=_e(i(57577)),K=_e(i(20976)),X=_e(i(59984)),me=_e(i(899)),J=_e(i(5666)),Q=_e(i(86224)),re=_e(i(23746)),de=_e(i(428)),te=_e(i(47537)),j=_e(i(33062)),H=_e(i(135)),z=_e(i(96733)),q=_e(i(22471)),se=_e(i(62493)),ne=_e(i(57707));function _e(Ce){return Ce&&Ce.__esModule?Ce:{default:Ce}}e.default.address.editForm=n.default,e.default.button.editForm=o.default,e.default.checkbox.editForm=a.default,e.default.columns.editForm=l.default,e.default.component.editForm=u.default,e.default.container.editForm=d.default,e.default.content.editForm=s.default,e.default.currency.editForm=A.default,e.default.datagrid.editForm=_.default,e.default.datamap.editForm=C.default,e.default.datetime.editForm=R.default,e.default.day.editForm=x.default,e.default.editgrid.editForm=f.default,e.default.email.editForm=k.default,e.default.fieldset.editForm=w.default,e.default.file.editForm=g.default,e.default.form.editForm=M.default,e.default.list.editForm=p.default,e.default.hidden.editForm=E.default,e.default.htmlelement.editForm=b.default,e.default.nested.editForm=I.default,e.default.number.editForm=L.default,e.default.panel.editForm=D.default,e.default.password.editForm=F.default,e.default.phoneNumber.editForm=P.default,e.default.radio.editForm=O.default,e.default.recaptcha.editForm=U.default,e.default.resource.editForm=V.default,e.default.select.editForm=X.default,e.default.selectboxes.editForm=K.default,e.default.signature.editForm=me.default,e.default.survey.editForm=J.default,e.default.table.editForm=Q.default,e.default.tabs.editForm=re.default,e.default.tags.editForm=de.default,e.default.textarea.editForm=te.default,e.default.textfield.editForm=j.default,e.default.time.editForm=H.default,e.default.tree.editForm=z.default,e.default.unknown.editForm=q.default,e.default.url.editForm=se.default,e.default.well.editForm=ne.default,y.default=e.default},45499:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function a(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return e.default.baseEditForm.apply(e.default,[[{key:"display",components:n.default},{key:"data",ignore:!0},{key:"validation",ignore:!0}]].concat(u))},i(34338);var e=o(i(14231)),n=o(i(54717));function o(l){return l&&l.__esModule?l:{default:l}}},78940:(he,y,i)=>{"use strict";function e(L){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(D){return typeof D}:function(D){return D&&"function"==typeof Symbol&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D})(L)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(76801),i(97195),i(62506),i(41517),i(64043),i(57267),i(52003),i(63945),i(61514),i(34338),i(6203),i(50886),i(69358),i(96869),i(278),i(60228),i(34284),i(38077),i(5399),i(88052);var n=d(i(6990)),o=d(i(73808)),a=d(i(84984)),l=d(i(85943)),u=i(12866);function d(L){return L&&L.__esModule?L:{default:L}}function A(L,D){for(var F=0;F<D.length;F++){var P=D[F];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(L,C(P.key),P)}}function C(L){var D=function R(L,D){if("object"!==e(L)||null===L)return L;var F=L[Symbol.toPrimitive];if(void 0!==F){var P=F.call(L,D||"default");if("object"!==e(P))return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===D?String:Number)(L)}(L,"string");return"symbol"===e(D)?D:String(D)}function x(){return x=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(D,F,P){var O=function f(L,D){for(;!Object.prototype.hasOwnProperty.call(L,D)&&null!==(L=b(L)););return L}(D,F);if(O){var U=Object.getOwnPropertyDescriptor(O,F);return U.get?U.get.call(arguments.length<3?D:P):U.value}},x.apply(this,arguments)}function w(L,D){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,O){return P.__proto__=O,P})(L,D)}function b(L){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)})(L)}y.default=function(L){!function k(L,D){if("function"!=typeof D&&null!==D)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(D&&D.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),D&&w(L,D)}(F,L);var D=function g(L){var D=function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var O,P=b(L);if(D){var U=b(this).constructor;O=Reflect.construct(P,arguments,U)}else O=P.apply(this,arguments);return function M(L,D){if(D&&("object"===e(D)||"function"==typeof D))return D;if(void 0!==D)throw new TypeError("Derived constructors may only return object or undefined");return function p(L){if(void 0===L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}(L)}(this,O)}}(F);function F(P,O,U){var V;return function s(L,D){if(!(L instanceof D))throw new TypeError("Cannot call a class as a function")}(this,F),(V=D.call(this,P,O,U)).filesUploading=[],V}return function _(L,D,F){D&&A(L.prototype,D),F&&A(L,F),Object.defineProperty(L,"prototype",{writable:!1})}(F,[{key:"defaultSchema",get:function(){return F.schema()}},{key:"inputInfo",get:function(){var O=x(b(F.prototype),"elementInfo",this).call(this);return O.type="button",O.attr.type=["submit","saveState"].includes(this.component.action)?"submit":"button",this.component.theme=this.component.theme||"default",O.attr.class="btn btn-".concat(this.component.theme),this.component.size&&(O.attr.class+=" btn-".concat(this.component.size)),this.component.block&&(O.attr.class+=" btn-block"),this.component.customClass&&(O.attr.class+=" ".concat(this.component.customClass)),O.content=this.t(this.component.label,{_userInput:!0}),O}},{key:"labelInfo",get:function(){return{hidden:!0}}},{key:"loading",set:function(O){this.setLoading(this.refs.button,O)}},{key:"skipInEmail",get:function(){return!0}},{key:"createLabel",value:function(){}},{key:"createInput",value:function(O){return this.refs.button=x(b(F.prototype),"createInput",this).call(this,O),this.refs.button}},{key:"emptyValue",get:function(){return!1}},{key:"getValue",value:function(){return this.dataValue}},{key:"clicked",get:function(){return this.dataValue}},{key:"defaultValue",get:function(){return!1}},{key:"className",get:function(){return x(b(F.prototype),"className",this)+" ".concat(this.transform("class","form-group"))}},{key:"oauthConfig",get:function(){return n.default.has(this,"root.form.config.oauth")&&this.component.oauthProvider?this.root.form.config.oauth[this.component.oauthProvider]:!!this.component.oauth&&this.component.oauth}},{key:"render",value:function(){return(this.viewOnly||this.options.hideButtons)&&(this._visible=!1),x(b(F.prototype),"render",this).call(this,this.renderTemplate("button",{component:this.component,input:this.inputInfo}))}},{key:"attachButton",value:function(){var O=this;this.addShortcut(this.refs.button);var U=null,V=null;if("submit"===this.component.action&&(this.on("submitButton",function(){O.disabled=!0},!0),this.on("cancelSubmit",function(){O.disabled=!1},!0),this.on("submitDone",function(me){var J=n.default.isString(me)?me:O.t("complete");O.loading=!1,O.disabled=!1,O.addClass(O.refs.button,"btn-success submit-success"),O.removeClass(O.refs.button,"btn-danger submit-fail"),O.addClass(O.refs.buttonMessageContainer,"has-success"),O.removeClass(O.refs.buttonMessageContainer,"has-error"),O.setContent(O.refs.buttonMessage,J)},!0),this.on("submitError",function(me){var J=n.default.isString(me)?O.t(me):O.t(O.errorMessage("submitError"));O.loading=!1,O.disabled=!1,O.hasError=!0,O.removeClass(O.refs.button,"btn-success submit-success"),O.addClass(O.refs.button,"btn-danger submit-fail"),O.removeClass(O.refs.buttonMessageContainer,"has-success"),O.addClass(O.refs.buttonMessageContainer,"has-error"),O.setContent(O.refs.buttonMessage,J)},!0),this.on("fileUploadingStart",function(me){O.filesUploading.push(me),O.disabled=!0,O.setDisabled(O.refs.button,O.disabled)},!0),this.on("fileUploadingEnd",function(me){var J=O.filesUploading.indexOf(me);-1!==J&&O.filesUploading.splice(J,1),O.disabled=!!O.shouldDisabled,O.setDisabled(O.refs.button,O.disabled)},!0),U=function(J,Q){O.removeClass(O.refs.button,"btn-success submit-success"),Q&&(O.removeClass(O.refs.button,"btn-danger submit-fail"),O.hasError&&(O.hasError=!1,O.setContent(O.refs.buttonMessage,""),O.removeClass(O.refs.buttonMessageContainer,"has-success"),O.removeClass(O.refs.buttonMessageContainer,"has-error")))},V=function(){O.hasError=!0,O.removeClass(O.refs.button,"btn-success submit-success"),O.addClass(O.refs.button,"btn-danger submit-fail"),O.removeClass(O.refs.buttonMessageContainer,"has-success"),O.addClass(O.refs.buttonMessageContainer,"has-error"),O.setContent(O.refs.buttonMessage,O.t(O.errorMessage("submitError")))}),"url"===this.component.action&&(this.on("requestButton",function(){O.disabled=!0},!0),this.on("requestDone",function(){O.loading=!1,O.disabled=!1},!0)),this.on("change",function(me,J){var Q=me.isValid,re=J&&J.silent;J&&J.noValidate&&(O.component.disableOnInvalid||O.hasError)&&(Q=J.rootValidity||!O.root||O.root.checkValidity(O.root.data,null,null,!0),J.rootValidity=Q),O.isDisabledOnInvalid=O.component.disableOnInvalid&&(re||!Q),O.disabled=O.shouldDisabled,O.setDisabled(O.refs.button,O.disabled),U&&U(me,Q)},!0),this.on("error",function(){O.loading=!1,O.disabled=!1,V&&V()},!0),this.component.saveOnEnter&&this.root.addEventListener(this.root.element,"keyup",function(me){13===me.keyCode&&O.onClick.call(O,me)}),this.addEventListener(this.refs.button,"click",this.onClick.bind(this)),this.addEventListener(this.refs.buttonMessageContainer,"click",function(){O.refs.buttonMessageContainer.classList.contains("has-error")&&O.root&&O.root.alert&&O.scrollIntoView(O.root.alert)}),this.disabled=this.shouldDisabled,this.setDisabled(this.refs.button,this.disabled),"oauth"===this.component.action&&this.oauthConfig&&!this.oauthConfig.error){var X=function K(me){me=me.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var Q=new RegExp("[\\?&]".concat(me,"=([^&#]*)")).exec(location.search);return Q&&decodeURIComponent(Q[1].replace(/\+/g," "))}("iss");X&&0===this.oauthConfig.authURI.indexOf(X)&&this.openOauth(this.oauthConfig)}}},{key:"shouldDisabled",get:function(){var O;return x(b(F.prototype),"shouldDisabled",this)||!(null===(O=this.filesUploading)||void 0===O||!O.length)||this.isDisabledOnInvalid}},{key:"attach",value:function(O){this.loadRefs(O,{button:"single",buttonMessageContainer:"single",buttonMessage:"single"});var U=x(b(F.prototype),"attach",this).call(this,O);return this.attachButton(),U}},{key:"detach",value:function(O){O&&this.refs.button&&this.removeShortcut(this.refs.button),x(b(F.prototype),"detach",this).call(this)}},{key:"onClick",value:function(O){if(this.triggerReCaptcha(),!this.disabled&&"builder"!==this.options.attachMode)switch(this.dataValue=!0,"submit"!==this.component.action&&this.component.showValidations&&this.emit("checkValidity",this.data),this.component.action){case"saveState":case"submit":O.preventDefault(),O.stopPropagation(),this.loading=!0,this.emit("submitButton",{state:this.component.state||"submitted",component:this.component,instance:this});break;case"event":this.emit(this.interpolate(this.component.event),this.data),this.events.emit(this.interpolate(this.component.event),this.data),this.emit("customEvent",{type:this.interpolate(this.component.event),component:this.component,data:this.data,event:O});break;case"custom":var U=this.getRoot(),V={},K={};(0,u.eachComponent)(U.components,function(X,me){var J=X.component||X;V[me]=J,K[J.key]=J},!0),this.evaluate(this.component.custom,{form:U,flattened:V,components:K}),this.triggerChange();break;case"url":this.loading=!0,this.emit("requestButton",{component:this.component,instance:this}),this.emit("requestUrl",{url:this.interpolate(this.component.url),headers:this.component.headers});break;case"reset":this.emit("resetForm");break;case"delete":this.emit("deleteSubmission");break;case"oauth":if(this.root===this)return void console.warn("You must add the OAuth button to a form for it to function properly");if(!this.oauthConfig){this.root.setAlert("danger","OAuth not configured. You must configure oauth for your project before it will work.");break}if(this.oauthConfig.error){this.root.setAlert("danger","The Following Error Has Occured ".concat(this.oauthConfig.error));break}this.openOauth(this.oauthConfig)}}},{key:"openOauth",value:function(O){var U=this;if(this.root.formio){var V={response_type:"code",client_id:O.clientId,redirect_uri:O.redirectURI||window.location.origin||"".concat(window.location.protocol,"//").concat(window.location.host),state:O.state,scope:O.scope},K=V.redirect_uri;O.display&&(V.display=O.display),V=Object.keys(V).map(function(re){return"".concat(re,"=").concat(encodeURIComponent(V[re]))}).join("&");var X=-1!==O.authURI.indexOf("?")?"&":"?",me="".concat(O.authURI).concat(X).concat(V),J=window.open(me,O.provider,"width=1020,height=618"),Q=setInterval(function(){try{var de=window.location.host;if(J&&!J.closed&&J.location.host===de){J.close();var te=J.location.search.substr(1).split("&").reduce(function(z,q){var se=q.split("=");return z[se[0]]=se[1],z},{});if(te.error)return alert(te.error_description||te.error),void U.root.setAlert("danger",te.error_description||te.error);if(O.state!==te.state)return void U.root.setAlert("danger","OAuth state does not match. Please try logging in again.");var j=o.default.resolve();if(n.default.has(U,"root.form.config.oauth")&&U.root.form.config.oauth[U.component.oauthProvider])te.provider=O.provider,te.redirectURI=K,te.triggeredBy=U.oauthComponentPath,j=U.root.formio.makeRequest("oauth","".concat(U.root.formio.projectUrl,"/oauth2"),"POST",te);else{var H={data:{},oauth:{}};H.oauth[O.provider]=te,H.oauth[O.provider].redirectURI=K,O.logoutURI&&U.root.formio.oauthLogoutURI(O.logoutURI),H.oauth[O.provider].triggeredBy=U.oauthComponentPath,j=U.root.formio.saveSubmission(H)}j.then(function(z){U.root.onSubmit(z,!0)}).catch(function(z){U.root.onSubmissionError(z)})}}catch(z){"SecurityError"!==z.name&&("Error"!==z.name||"Permission denied"!==z.message)&&U.root.setAlert("danger",z.message||z)}(!J||J.closed||void 0===J.closed)&&clearInterval(Q)},100)}else console.warn("You must attach a Form API url to your form in order to use OAuth buttons.")}},{key:"oauthComponentPath",get:function(){var O=(0,u.getArrayFromComponentPath)(this.path);return n.default.chain(O).filter(function(U){return!n.default.isNumber(U)}).join(".").value()}},{key:"focus",value:function(){this.refs.button&&this.refs.button.focus()}},{key:"triggerReCaptcha",value:function(){var U,O=this;this.root&&(this.root.everyComponent(function(V){"recaptcha"===V.component.type&&"buttonClick"===V.component.eventType&&V.component.buttonKey===O.component.key&&(U=V)}),U&&U.verify("".concat(this.component.key,"Click")))}}],[{key:"schema",value:function(){for(var O=arguments.length,U=new Array(O),V=0;V<O;V++)U[V]=arguments[V];return l.default.schema.apply(l.default,[{type:"button",label:"Submit",key:"submit",size:"md",leftIcon:"",rightIcon:"",block:!1,action:"submit",persistent:!1,disableOnInvalid:!1,theme:"primary",dataGridLabel:!0}].concat(U))}},{key:"builderInfo",get:function(){return{title:"Button",group:"basic",icon:"stop",documentation:"/userguide/form-building/form-components#button",weight:110,schema:F.schema()}}}]),F}(a.default)},54717:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(25847);var e=o(i(24845)),n=o(i(6990));function o(l){return l&&l.__esModule?l:{default:l}}y.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"hideLabel",customConditional:function(u){var d,s;return null===(d=u.instance.options)||void 0===d||null===(s=d.flags)||void 0===s?void 0:s.inDataGrid}},{key:"dataGridLabel",ignore:!0},{type:"select",key:"action",label:"Action",input:!0,dataSrc:"values",weight:110,tooltip:"This is the action to be performed by this button.",data:{values:[{label:"Submit",value:"submit"},{label:"Save in state",value:"saveState"},{label:"Event",value:"event"},{label:"Custom",value:"custom"},{label:"Reset",value:"reset"},{label:"OAuth",value:"oauth"},{label:"POST to URL",value:"url"}]}},{type:"select",key:"oauthProvider",label:"OAuth Provider",input:!0,dataSrc:"values",weight:111,tooltip:"The oauth provider to use to log in (8.x server only).",data:{values:[{label:"OpenID",value:"openid"},{label:"Github",value:"github"},{label:"Google",value:"google"}]},conditional:{json:{"===":[{var:"data.action"},"oauth"]}}},{type:"textfield",label:"Save in state",key:"state",weight:112,tooltip:'The state you wish to save the submission under when this button is pressed. Example "draft" would save the submission in Draft Mode.',placeholder:"submitted",input:!0,conditional:{json:{"===":[{var:"data.action"},"saveState"]}}},{type:"checkbox",input:!0,inputType:"checkbox",key:"saveOnEnter",label:"Save On Enter",weight:113,tooltip:"Use the Enter key to submit form.",conditional:{json:{"===":[{var:"data.action"},"submit"]}}},{type:"checkbox",input:!0,inputType:"checkbox",key:"showValidations",label:"Show Validations",weight:115,tooltip:"When the button is pressed, show any validation errors on the form.",conditional:{json:{"!==":[{var:"data.action"},"submit"]}}},{type:"textfield",label:"Button Event",key:"event",input:!0,weight:120,tooltip:"The event to fire when the button is clicked.",conditional:{json:{"===":[{var:"data.action"},"event"]}}},{type:"textfield",inputType:"url",key:"url",input:!0,weight:120,label:"Button URL",tooltip:"The URL where the submission will be sent.",placeholder:"https://example.form.io",conditional:{json:{"===":[{var:"data.action"},"url"]}}},{type:"datagrid",key:"headers",input:!0,weight:130,label:"Headers",addAnother:"Add Header",tooltip:"Headers Properties and Values for your request",components:[{key:"header",label:"Header",input:!0,type:"textfield"},{key:"value",label:"Value",input:!0,type:"textfield"}],conditional:{json:{"===":[{var:"data.action"},"url"]}}},{type:"textarea",key:"custom",label:"Button Custom Logic",tooltip:"The custom logic to evaluate when the button is clicked.",rows:5,editor:"ace",input:!0,weight:120,placeholder:"data['mykey'] = data['anotherKey'];",conditional:{json:{"===":[{var:"data.action"},"custom"]}}},{type:"select",key:"theme",label:"Theme",input:!0,tooltip:"The color theme of this button.",dataSrc:"values",weight:140,data:{values:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Danger",value:"danger"},{label:"Warning",value:"warning"}]}},{type:"select",key:"size",label:"Size",input:!0,tooltip:"The size of this button.",dataSrc:"values",weight:150,data:{values:[{label:"Small",value:"sm"},{label:"Medium",value:"md"},{label:"Large",value:"lg"}]}},{type:"textfield",key:"leftIcon",label:"Left Icon",input:!0,placeholder:"Enter icon classes",tooltip:"This is the full icon class string to show the icon. Example: 'fa fa-plus'",weight:160},{type:"textfield",key:"rightIcon",label:"Right Icon",input:!0,placeholder:"Enter icon classes",tooltip:"This is the full icon class string to show the icon. Example: 'fa fa-plus'",weight:170},{type:"select",input:!0,weight:180,label:"Shortcut",key:"shortcut",tooltip:"Shortcut for this component.",dataSrc:"custom",valueProperty:"value",customDefaultValue:function(){return""},template:"{{ item.label }}",data:{custom:function(u){return e.default.getAvailableShortcuts(n.default.get(u,"instance.options.editForm",{}),n.default.get(u,"instance.options.editComponent",{}))}}},{type:"checkbox",key:"block",label:"Block Button",input:!0,weight:155,tooltip:"This control should span the full width of the bounding container."},{type:"checkbox",key:"disableOnInvalid",label:"Disable on Form Invalid",tooltip:"This will disable this field if the form is invalid.",input:!0,weight:620}]},8888:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function u(){for(var d=arguments.length,s=new Array(d),A=0;A<d;A++)s[A]=arguments[A];return e.default.baseEditForm.apply(e.default,[[{key:"data",components:n.default},{key:"display",components:o.default},{key:"validation",components:a.default}]].concat(s))},i(34338);var e=l(i(14231)),n=l(i(5782)),o=l(i(3401)),a=l(i(57979));function l(d){return d&&d.__esModule?d:{default:d}}},50523:(he,y,i)=>{"use strict";function e(L){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(D){return typeof D}:function(D){return D&&"function"==typeof Symbol&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D})(L)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(69358),i(38077),i(49693),i(47522),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34284),i(30024),i(60228),i(63945),i(64043),i(57267),i(34338),i(5399),i(41517),i(88052);var n=a(i(6990)),o=a(i(84984));function a(L){return L&&L.__esModule?L:{default:L}}function l(L,D){var F=Object.keys(L);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(L);D&&(P=P.filter(function(O){return Object.getOwnPropertyDescriptor(L,O).enumerable})),F.push.apply(F,P)}return F}function u(L){for(var D=1;D<arguments.length;D++){var F=null!=arguments[D]?arguments[D]:{};D%2?l(Object(F),!0).forEach(function(P){d(L,P,F[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(F)):l(Object(F)).forEach(function(P){Object.defineProperty(L,P,Object.getOwnPropertyDescriptor(F,P))})}return L}function d(L,D,F){return(D=C(D))in L?Object.defineProperty(L,D,{value:F,enumerable:!0,configurable:!0,writable:!0}):L[D]=F,L}function A(L,D){for(var F=0;F<D.length;F++){var P=D[F];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(L,C(P.key),P)}}function C(L){var D=function R(L,D){if("object"!==e(L)||null===L)return L;var F=L[Symbol.toPrimitive];if(void 0!==F){var P=F.call(L,D||"default");if("object"!==e(P))return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===D?String:Number)(L)}(L,"string");return"symbol"===e(D)?D:String(D)}function x(){return x=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(D,F,P){var O=function f(L,D){for(;!Object.prototype.hasOwnProperty.call(L,D)&&null!==(L=b(L)););return L}(D,F);if(O){var U=Object.getOwnPropertyDescriptor(O,F);return U.get?U.get.call(arguments.length<3?D:P):U.value}},x.apply(this,arguments)}function w(L,D){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,O){return P.__proto__=O,P})(L,D)}function b(L){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)})(L)}y.default=function(L){!function k(L,D){if("function"!=typeof D&&null!==D)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(D&&D.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),D&&w(L,D)}(F,L);var D=function g(L){var D=function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var O,P=b(L);if(D){var U=b(this).constructor;O=Reflect.construct(P,arguments,U)}else O=P.apply(this,arguments);return function M(L,D){if(D&&("object"===e(D)||"function"==typeof D))return D;if(void 0!==D)throw new TypeError("Derived constructors may only return object or undefined");return function p(L){if(void 0===L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}(L)}(this,O)}}(F);function F(){return function s(L,D){if(!(L instanceof D))throw new TypeError("Cannot call a class as a function")}(this,F),D.apply(this,arguments)}return function _(L,D,F){D&&A(L.prototype,D),F&&A(L,F),Object.defineProperty(L,"prototype",{writable:!1})}(F,[{key:"defaultSchema",get:function(){return F.schema()}},{key:"defaultValue",get:function(){var O=this.component.name,U=x(b(F.prototype),"defaultValue",this);return O?this.component[O]||this.emptyValue:"true"===(U||this.component.defaultValue||!1).toString()}},{key:"labelClass",get:function(){var O="";return this.isInputComponent&&!this.options.inputsOnly&&this.component.validate&&this.component.validate.required&&(O+=" field-required"),"".concat(O)}},{key:"hasSetValue",get:function(){return this.hasValue()}},{key:"inputInfo",get:function(){var O=x(b(F.prototype),"elementInfo",this).call(this);return O.type="input",O.changeEvent="click",O.attr.type=this.component.inputType||"checkbox",O.attr.class="form-check-input",this.component.name&&(O.attr.name="data[".concat(this.component.name,"]")),O.attr.value=this.component.value?this.component.value:0,O.label=this.t(this.component.label,{_userInput:!0}),O.labelClass=this.labelClass,O}},{key:"labelInfo",get:function(){return{hidden:!0}}},{key:"render",value:function(){return x(b(F.prototype),"render",this).call(this,this.renderTemplate("checkbox",{input:this.inputInfo,checked:this.checked,tooltip:this.interpolate(this.t(this.component.tooltip)||"",{_userInput:!0}).replace(/(?:\r\n|\r|\n)/g,"<br />")}))}},{key:"attach",value:function(O){var U=this;return this.loadRefs(O,{input:"multiple"}),this.input=this.refs.input[0],this.refs.input&&(this.addEventListener(this.input,this.inputInfo.changeEvent,function(){return U.updateValue(null,{modified:!0})}),this.addShortcut(this.input)),x(b(F.prototype),"attach",this).call(this,O)}},{key:"detach",value:function(O){O&&this.input&&this.removeShortcut(this.input),x(b(F.prototype),"detach",this).call(this)}},{key:"emptyValue",get:function(){return"radio"===this.component.inputType&&null}},{key:"isEmpty",value:function(){var O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return x(b(F.prototype),"isEmpty",this).call(this,O)||!1===O}},{key:"key",get:function(){return this.component.name?this.component.name:x(b(F.prototype),"key",this)}},{key:"getValueAt",value:function(O){return this.component.name?this.refs.input[O].checked?this.component.value:"":!!this.refs.input[O].checked}},{key:"getValue",value:function(){var O=x(b(F.prototype),"getValue",this).call(this);return this.component.name?this.setCheckedState(O||this.dataValue):""===O?this.dataValue:!!O}},{key:"checked",get:function(){return this.component.name?this.dataValue===this.component.value:!!this.dataValue}},{key:"setCheckedState",value:function(O){if(this.input)return this.component.name?(this.input.value=O===this.component.value?this.component.value:0,this.input.checked=O===this.component.value?1:0):"on"===O?(this.input.value=1,this.input.checked=1):"off"===O?(this.input.value=0,this.input.checked=0):O?(this.input.value=1,this.input.checked=1):(this.input.value=0,this.input.checked=0),this.input.checked?this.input.setAttribute("checked",!0):this.input.removeAttribute("checked"),O}},{key:"setValue",value:function(O){var U=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0!==this.setCheckedState(O)||!this.input&&void 0!==O&&(this.visible||this.conditionallyVisible()||!this.component.clearOnHide)){var V=this.updateValue(O,U);return this.isHtmlRenderMode()&&U&&U.fromSubmission&&V&&this.redraw(),V}return!1}},{key:"getValueAsString",value:function(O){var U=this.component,X=U.name?n.default.isEqual(O,U.value):O;return n.default.isUndefined(O)&&this.inDataTable?"":this.t(X?"Yes":"No")}},{key:"updateValue",value:function(O,U){this.component.name&&U.modified&&this.dataValue===this.component.value&&(this.input.checked=0,this.input.value=0,this.dataValue="",this.updateOnChange(U,!0));var V=x(b(F.prototype),"updateValue",this).call(this,O,U);return V&&this.input&&(this.input.checked?this.input.setAttribute("checked","true"):this.input.removeAttribute("checked")),V}}],[{key:"schema",value:function(){for(var O=arguments.length,U=new Array(O),V=0;V<O;V++)U[V]=arguments[V];return o.default.schema.apply(o.default,[{type:"checkbox",inputType:"checkbox",label:"Checkbox",key:"checkbox",dataGridLabel:!0,labelPosition:"right",value:"",name:""}].concat(U))}},{key:"builderInfo",get:function(){return{title:"Checkbox",group:"basic",icon:"check-square",documentation:"/userguide/form-building/form-components#check-box",weight:50,schema:F.schema()}}},{key:"serverConditionSettings",get:function(){return u(u({},x(b(F),"serverConditionSettings",this)),{},{operators:["isEqual"],valueComponent:function(){return{valueType:"boolean",data:{values:[{label:"Checked",value:"true"},{label:"Not Checked",value:"false"}]},type:"select"}}})}}]),F}(o.default)},5782:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"multiple",ignore:!0}]},3401:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(24845)),n=o(i(6990));function o(l){return l&&l.__esModule?l:{default:l}}y.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{type:"select",input:!0,weight:350,label:"Shortcut",key:"shortcut",tooltip:"Shortcut for this component.",dataSrc:"custom",valueProperty:"value",customDefaultValue:function(){return""},template:"{{ item.label }}",data:{custom:function(u){return e.default.getAvailableShortcuts(n.default.get(u,"instance.options.editForm",{}),n.default.get(u,"instance.options.editComponent",{}))}}},{type:"select",input:!0,key:"inputType",label:"Input Type",tooltip:"This is the input type used for this checkbox.",dataSrc:"values",weight:410,data:{values:[{label:"Checkbox",value:"checkbox"},{label:"Radio",value:"radio"}]}},{type:"textfield",input:!0,key:"name",label:"Radio Key",tooltip:"The key used to trigger the radio button toggle.",weight:420,conditional:{json:{"===":[{var:"data.inputType"},"radio"]}}},{type:"textfield",input:!0,label:"Radio Value",key:"value",tooltip:"The value used with this radio button.",weight:430,conditional:{json:{"===":[{var:"data.inputType"},"radio"]}}}]},57979:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"validateOn",ignore:!0},{key:"unique",ignore:!0}]},93666:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function a(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return e.default.apply(void 0,[[{key:"display",components:n.default}]].concat(u))},i(34338);var e=o(i(90700)),n=o(i(6672));function o(l){return l&&l.__esModule?l:{default:l}}},6123:(he,y,i)=>{"use strict";function e(O){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(U){return typeof U}:function(U){return U&&"function"==typeof Symbol&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U})(O)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),i(77049),i(89730),i(34284),i(64043),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(50886),i(63975),i(55791),i(60228),i(278),i(49693),i(47522),i(34338),i(5399),i(41517),i(88052);var n=a(i(6990)),o=a(i(60211));function a(O){return O&&O.__esModule?O:{default:O}}function l(O){return function A(O){if(Array.isArray(O))return _(O)}(O)||function s(O){if(typeof Symbol<"u"&&null!=O[Symbol.iterator]||null!=O["@@iterator"])return Array.from(O)}(O)||function d(O,U){if(O){if("string"==typeof O)return _(O,U);var V=Object.prototype.toString.call(O).slice(8,-1);if("Object"===V&&O.constructor&&(V=O.constructor.name),"Map"===V||"Set"===V)return Array.from(O);if("Arguments"===V||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V))return _(O,U)}}(O)||function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(O,U){(null==U||U>O.length)&&(U=O.length);for(var V=0,K=new Array(U);V<U;V++)K[V]=O[V];return K}function x(O,U){for(var V=0;V<U.length;V++){var K=U[V];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(O,k(K.key),K)}}function k(O){var U=function w(O,U){if("object"!==e(O)||null===O)return O;var V=O[Symbol.toPrimitive];if(void 0!==V){var K=V.call(O,U||"default");if("object"!==e(K))return K;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===U?String:Number)(O)}(O,"string");return"symbol"===e(U)?U:String(U)}function g(){return g=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(U,V,K){var X=function M(O,U){for(;!Object.prototype.hasOwnProperty.call(O,U)&&null!==(O=F(O)););return O}(U,V);if(X){var me=Object.getOwnPropertyDescriptor(X,V);return me.get?me.get.call(arguments.length<3?U:K):me.value}},g.apply(this,arguments)}function E(O,U){return(E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,X){return K.__proto__=X,K})(O,U)}function F(O){return(F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(V){return V.__proto__||Object.getPrototypeOf(V)})(O)}y.default=function(O){!function p(O,U){if("function"!=typeof U&&null!==U)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(U&&U.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),Object.defineProperty(O,"prototype",{writable:!1}),U&&E(O,U)}(V,O);var U=function b(O){var U=function D(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var X,K=F(O);if(U){var me=F(this).constructor;X=Reflect.construct(K,arguments,me)}else X=K.apply(this,arguments);return function I(O,U){if(U&&("object"===e(U)||"function"==typeof U))return U;if(void 0!==U)throw new TypeError("Derived constructors may only return object or undefined");return function L(O){if(void 0===O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}(O)}(this,X)}}(V);function V(K,X,me){var J;return function R(O,U){if(!(O instanceof U))throw new TypeError("Cannot call a class as a function")}(this,V),(J=U.call(this,K,X,me)).rows=[],J}return function f(O,U,V){U&&x(O.prototype,U),V&&x(O,V),Object.defineProperty(O,"prototype",{writable:!1})}(V,[{key:"schema",get:function(){var X,me=this,J=n.default.omit(g(F(V.prototype),"schema",this),["components"]);return null===(X=J.columns)||void 0===X||X.map(function(Q,re){Q.components.map(function(de,te){var j=n.default.clone(de);j.internal=!0;var H=me.createComponent(j);delete H.component.internal,J.columns[re].components[te]=H.schema})}),J}},{key:"defaultSchema",get:function(){return V.schema()}},{key:"className",get:function(){return"row ".concat(g(F(V.prototype),"className",this))}},{key:"columnKey",get:function(){return"column-".concat(this.id)}},{key:"init",value:function(){var X=this;g(F(V.prototype),"init",this).call(this),this.columns=[],n.default.each(this.component.columns,function(me,J){X.columns[J]=[],me.size||(me.size="md"),me.currentWidth=me.width||0,Array.isArray(me.components)||(me.components=[]),n.default.each(me.components,function(Q){var re=X.createComponent(Q);re.column=J,X.columns[J].push(re)})}),this.component.autoAdjust&&"pdf"!==this.options.display&&this.justify(),this.rows=this.groupByRow()}},{key:"labelIsHidden",value:function(){return!0}},{key:"render",value:function(){var X=this;return g(F(V.prototype),"render",this).call(this,this.renderTemplate("columns",{columnKey:this.columnKey,columnComponents:this.columns.map(function(me){return X.renderComponents(me)})}))}},{key:"justifyColumn",value:function(X,me){var J=n.default.every(X,function(te){return!te.visible}),Q=this.component.columns[me],re=J&&X.length?0:Q.width,de=!n.default.isEqual(re,Q.currentWidth);return Q.currentWidth=re,de}},{key:"justify",value:function(){var X=this;return this.columns.reduce(function(me,J,Q){return X.justifyColumn(J,Q)||me},!1)}},{key:"attach",value:function(X){var me=this;this.loadRefs(X,function C(O,U,V){return(U=k(U))in O?Object.defineProperty(O,U,{value:V,enumerable:!0,configurable:!0,writable:!0}):O[U]=V,O}({},this.columnKey,"multiple"));var J=g(F(V.prototype),"attach",this).call(this,X);return this.refs[this.columnKey]&&this.refs[this.columnKey].forEach(function(Q,re){return me.attachComponents(Q,me.columns[re],me.component.columns[re].components)}),J}},{key:"gridSize",get:function(){return 12}},{key:"groupByRow",value:function(){var X=this,J=function(de){return de.component.width},Q=n.default.reduce(this.components,function(re,de){var te=[].concat(l(re.stack),[de]);return n.default.sumBy(te,J)<=X.gridSize?(re.stack=te,re):(re.rows=[].concat(l(re.rows),[re.stack]),re.stack=[de],re)},{stack:[],rows:[]});return n.default.concat(Q.rows,[Q.stack])}},{key:"checkData",value:function(X,me,J,Q){var re=g(F(V.prototype),"checkData",this).call(this,X,me,J,Q);return this.component.autoAdjust&&"pdf"!==this.options.display&&this.justify()&&this.redraw(),re}},{key:"detach",value:function(X){g(F(V.prototype),"detach",this).call(this,X)}},{key:"destroy",value:function(){g(F(V.prototype),"destroy",this).call(this),this.columns=[]}}],[{key:"schema",value:function(){for(var X=arguments.length,me=new Array(X),J=0;J<X;J++)me[J]=arguments[J];return o.default.schema.apply(o.default,[{label:"Columns",key:"columns",type:"columns",columns:[{components:[],width:6,offset:0,push:0,pull:0,size:"md"},{components:[],width:6,offset:0,push:0,pull:0,size:"md"}],clearOnHide:!1,input:!1,tableView:!1,persistent:!1,autoAdjust:!1}].concat(me))}},{key:"builderInfo",get:function(){return{title:"Columns",icon:"columns",group:"layout",documentation:"/userguide/form-building/layout-components#columns",showPreview:!1,weight:10,schema:V.schema()}}}]),V}(o.default)},6672:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"autofocus",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{weight:150,type:"datagrid",input:!0,key:"columns",label:"Column Properties",addAnother:"Add Column",tooltip:"The width, offset, push, and pull settings for each column.",reorder:!0,components:[{type:"hidden",key:"components",defaultValue:[]},{type:"select",key:"size",defaultValue:"md",label:"Size",data:{values:[{label:"xs",value:"xs"},{label:"sm",value:"sm"},{label:"md",value:"md"},{label:"lg",value:"lg"},{label:"xl",value:"xl"}]}},{type:"number",key:"width",defaultValue:6,label:"Width"},{type:"number",key:"offset",defaultValue:0,label:"Offset"},{type:"number",key:"push",defaultValue:0,label:"Push"},{type:"number",key:"pull",defaultValue:0,label:"Pull"}]},{weight:160,type:"checkbox",label:"Auto adjust columns",tooltip:"Will automatically adjust columns based on if nested components are hidden.",key:"autoAdjust",input:!0}]},47111:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function l(){for(var u=arguments.length,d=new Array(u),s=0;s<u;s++)d[s]=arguments[s];return e.default.baseEditForm.apply(e.default,[[{key:"display",components:n.default},{key:"data",components:o.default}]].concat(d))},i(34338);var e=a(i(14231)),n=a(i(81534)),o=a(i(20374));function a(u){return u&&u.__esModule?u:{default:u}}},52952:(he,y,i)=>{"use strict";function e(L){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(D){return typeof D}:function(D){return D&&"function"==typeof Symbol&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D})(L)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(278),i(60228),i(49693),i(47522),i(5399),i(41517),i(88052);var n=d(i(6990)),o=i(12866),a=d(i(1681)),l=d(i(84984)),u=d(i(52488));function d(L){return L&&L.__esModule?L:{default:L}}function A(L,D){for(var F=0;F<D.length;F++){var P=D[F];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(L,C(P.key),P)}}function C(L){var D=function R(L,D){if("object"!==e(L)||null===L)return L;var F=L[Symbol.toPrimitive];if(void 0!==F){var P=F.call(L,D||"default");if("object"!==e(P))return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===D?String:Number)(L)}(L,"string");return"symbol"===e(D)?D:String(D)}function x(){return x=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(D,F,P){var O=function f(L,D){for(;!Object.prototype.hasOwnProperty.call(L,D)&&null!==(L=b(L)););return L}(D,F);if(O){var U=Object.getOwnPropertyDescriptor(O,F);return U.get?U.get.call(arguments.length<3?D:P):U.value}},x.apply(this,arguments)}function w(L,D){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,O){return P.__proto__=O,P})(L,D)}function b(L){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)})(L)}y.default=function(L){!function k(L,D){if("function"!=typeof D&&null!==D)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(D&&D.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),D&&w(L,D)}(F,L);var D=function g(L){var D=function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var O,P=b(L);if(D){var U=b(this).constructor;O=Reflect.construct(P,arguments,U)}else O=P.apply(this,arguments);return function M(L,D){if(D&&("object"===e(D)||"function"==typeof D))return D;if(void 0!==D)throw new TypeError("Derived constructors may only return object or undefined");return function p(L){if(void 0===L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}(L)}(this,O)}}(F);function F(){var P;!function s(L,D){if(!(L instanceof D))throw new TypeError("Cannot call a class as a function")}(this,F);for(var O=arguments.length,U=new Array(O),V=0;V<O;V++)U[V]=arguments[V];return(P=D.call.apply(D,[this].concat(U))).type="container",P}return function _(L,D,F){D&&A(L.prototype,D),F&&A(L,F),Object.defineProperty(L,"prototype",{writable:!1})}(F,[{key:"addComponents",value:function(O,U){return x(b(F.prototype),"addComponents",this).call(this,this.dataValue,U)}},{key:"defaultSchema",get:function(){return F.schema()}},{key:"emptyValue",get:function(){return{}}},{key:"templateName",get:function(){return"container"}},{key:"componentContext",value:function(){return this.dataValue}},{key:"checkData",value:function(O,U,V,K){var X=this;return O=O||this.rootValue,U=U||{},V=V||this.data,(K=K&&n.default.isArray(K)?K:this.getComponents()).reduce(function(me,J){return J.checkData(O,U,X.dataValue)&&me},a.default.prototype.checkData.call(this,O,U,V))}},{key:"checkChildComponentsValidity",value:function(O,U,V,K,X){return x(b(F.prototype),"checkChildComponentsValidity",this).call(this,O,U,this.dataValue,K,X)}},{key:"focus",value:function(){var O=(0,o.getFocusableElements)(this.element);O&&O[0]&&O[0].focus()}},{key:"checkConditions",value:function(O,U,V){var K=this,X=l.default.prototype.checkConditions.call(this,O,U,V);return this.getComponents().forEach(function(me){return me.checkConditions(O,U,K.dataValue)}),X}}],[{key:"schema",value:function(){for(var O=arguments.length,U=new Array(O),V=0;V<O;V++)U[V]=arguments[V];return u.default.schema.apply(u.default,[{label:"Container",type:"container",key:"container",clearOnHide:!0,input:!0,tree:!0,hideLabel:!0,components:[]}].concat(U))}},{key:"builderInfo",get:function(){return{title:"Container",icon:"folder-open",group:"data",documentation:"/userguide/form-building/data-components#container",showPreview:!1,weight:10,schema:F.schema()}}}]),F}(u.default)},20374:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"multiple",ignore:!0},{key:"allowCalculateOverride",ignore:!0},{key:"defaultValue",ignore:!0}]},81534:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tabindex",ignore:!0}]},91389:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function l(){for(var u=arguments.length,d=new Array(u),s=0;s<u;s++)d[s]=arguments[s];var A=e.default.baseEditForm.apply(e.default,[[{key:"display",components:n.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"logic",components:o.default}]].concat(d));return A.components=[{weight:0,type:"textarea",editor:"ckeditor",label:"Content",hideLabel:!0,input:!0,key:"html",as:"html",rows:3,tooltip:"The HTML template for the result data items."}].concat(A.components),A},i(34338);var e=a(i(14231)),n=a(i(38642)),o=a(i(12582));function a(u){return u&&u.__esModule?u:{default:u}}},91317:(he,y,i)=>{"use strict";function e(b){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(I){return typeof I}:function(I){return I&&"function"==typeof Symbol&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I})(b)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(5399),i(41517),i(88052);var n=l(i(1681)),o=l(i(6990)),a=l(i(73808));function l(b){return b&&b.__esModule?b:{default:b}}function d(b,I){for(var L=0;L<I.length;L++){var D=I[L];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(b,A(D.key),D)}}function A(b){var I=function _(b,I){if("object"!==e(b)||null===b)return b;var L=b[Symbol.toPrimitive];if(void 0!==L){var D=L.call(b,I||"default");if("object"!==e(D))return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===I?String:Number)(b)}(b,"string");return"symbol"===e(I)?I:String(I)}function C(){return C=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(I,L,D){var F=function R(b,I){for(;!Object.prototype.hasOwnProperty.call(b,I)&&null!==(b=p(b)););return b}(I,L);if(F){var P=Object.getOwnPropertyDescriptor(F,L);return P.get?P.get.call(arguments.length<3?I:D):P.value}},C.apply(this,arguments)}function f(b,I){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,F){return D.__proto__=F,D})(b,I)}function p(b){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(L){return L.__proto__||Object.getPrototypeOf(L)})(b)}y.default=function(b){!function x(b,I){if("function"!=typeof I&&null!==I)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(I&&I.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),I&&f(b,I)}(L,b);var I=function k(b){var I=function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var F,D=p(b);if(I){var P=p(this).constructor;F=Reflect.construct(D,arguments,P)}else F=D.apply(this,arguments);return function w(b,I){if(I&&("object"===e(I)||"function"==typeof I))return I;if(void 0!==I)throw new TypeError("Derived constructors may only return object or undefined");return function g(b){if(void 0===b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}(b)}(this,F)}}(L);function L(){return function u(b,I){if(!(b instanceof I))throw new TypeError("Cannot call a class as a function")}(this,L),I.apply(this,arguments)}return function s(b,I,L){I&&d(b.prototype,I),L&&d(b,L),Object.defineProperty(b,"prototype",{writable:!1})}(L,[{key:"defaultSchema",get:function(){return L.schema()}},{key:"content",get:function(){if(this.builderMode)return this.component.html||"Content";var F=o.default.get(this.root,"submission",{});return this.component.html?this.interpolate(this.component.html,{metadata:F.metadata||{},submission:F,data:this.rootValue,row:this.data}):""}},{key:"render",value:function(){return C(p(L.prototype),"render",this).call(this,this.renderTemplate("html",{tag:"div",attrs:[],content:this.content}))}},{key:"dataReady",get:function(){var F;return(null===(F=this.root)||void 0===F?void 0:F.submissionReady)||a.default.resolve()}},{key:"attach",value:function(F){var P=this;return this.loadRefs(F,{html:"single"}),this.dataReady.then(function(){P.refs.html&&P.setContent(P.refs.html,P.content)}),this.component.refreshOnChange&&this.on("change",function(){P.refs.html&&P.setContent(P.refs.html,P.content)},!0),C(p(L.prototype),"attach",this).call(this,F)}},{key:"emptyValue",get:function(){return""}}],[{key:"schema",value:function(){for(var F=arguments.length,P=new Array(F),O=0;O<F;O++)P[O]=arguments[O];return n.default.schema.apply(n.default,[{label:"Content",type:"content",key:"content",input:!1,html:""}].concat(P))}},{key:"builderInfo",get:function(){return{title:"Content",group:"layout",icon:"html5",preview:!1,documentation:"/userguide/form-building/layout-components#content",weight:5,schema:L.schema()}}}]),L}(n.default)},38642:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"disabled",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0},{weight:700,type:"checkbox",label:"Refresh On Change",tooltip:"Rerender the field whenever a value on the form changes.",key:"refreshOnChange",input:!0}]},12582:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"logic",components:[{key:"actions",components:[{key:"actionPanel",components:[{data:{json:[{label:"Hidden",value:"hidden",type:"boolean"},{label:"Required",value:"validate.required",type:"boolean"},{label:"Disabled",value:"disabled",type:"boolean"},{label:"Label",value:"label",type:"string"},{label:"Title",value:"title",type:"string"},{label:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"},{label:"Content",value:"html",type:"string",component:"content"}]},key:"property"},{type:"textarea",editor:"ace",rows:10,as:"html",label:"Content",tooltip:"The content of this HTML element.",defaultValue:'<div class="well">Content</div>',key:"content",weight:30,input:!0,customConditional:function(o){return"property"===o.row.type&&o.row.hasOwnProperty("property")&&"string"===o.row.property.type&&"content"===o.row.property.component}}]}]}]}]},52110:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function l(){for(var u=arguments.length,d=new Array(u),s=0;s<u;s++)d[s]=arguments[s];return e.default.apply(void 0,[[{key:"display",components:n.default},{key:"data",components:o.default},{key:"validation",components:[{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0},{key:"validate.pattern",ignore:!0}]}]].concat(d))},i(34338);var e=a(i(33062)),n=a(i(36329)),o=a(i(85683));function a(u){return u&&u.__esModule?u:{default:u}}},33858:(he,y,i)=>{"use strict";function e(J){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Q){return typeof Q}:function(Q){return Q&&"function"==typeof Symbol&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q})(J)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(84254),i(752),i(21694),i(76265),i(89730),i(34284),i(77049),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(96869),i(76801),i(43843),i(64043),i(57267),i(9873),i(34338),i(6203),i(63975),i(50886),i(45993),i(79288),i(5399),i(41517),i(88052);var n=i(61635),o=i(61712),a=d(i(6990)),l=i(12866),u=d(i(89407));function d(J){return J&&J.__esModule?J:{default:J}}function f(J,Q){if(J){if("string"==typeof J)return k(J,Q);var re=Object.prototype.toString.call(J).slice(8,-1);if("Object"===re&&J.constructor&&(re=J.constructor.name),"Map"===re||"Set"===re)return Array.from(J);if("Arguments"===re||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(re))return k(J,Q)}}function k(J,Q){(null==Q||Q>J.length)&&(Q=J.length);for(var re=0,de=new Array(Q);re<Q;re++)de[re]=J[re];return de}function p(J,Q){for(var re=0;re<Q.length;re++){var de=Q[re];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(J,b(de.key),de)}}function b(J){var Q=function I(J,Q){if("object"!==e(J)||null===J)return J;var re=J[Symbol.toPrimitive];if(void 0!==re){var de=re.call(J,Q||"default");if("object"!==e(de))return de;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Q?String:Number)(J)}(J,"string");return"symbol"===e(Q)?Q:String(Q)}function L(){return L=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(Q,re,de){var te=function D(J,Q){for(;!Object.prototype.hasOwnProperty.call(J,Q)&&null!==(J=X(J)););return J}(Q,re);if(te){var j=Object.getOwnPropertyDescriptor(te,re);return j.get?j.get.call(arguments.length<3?Q:de):j.value}},L.apply(this,arguments)}function P(J,Q){return(P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(de,te){return de.__proto__=te,de})(J,Q)}function X(J){return(X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(re){return re.__proto__||Object.getPrototypeOf(re)})(J)}y.default=function(J){!function F(J,Q){if("function"!=typeof Q&&null!==Q)throw new TypeError("Super expression must either be null or a function");J.prototype=Object.create(Q&&Q.prototype,{constructor:{value:J,writable:!0,configurable:!0}}),Object.defineProperty(J,"prototype",{writable:!1}),Q&&P(J,Q)}(re,J);var Q=function O(J){var Q=function K(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var te,de=X(J);if(Q){var j=X(this).constructor;te=Reflect.construct(de,arguments,j)}else te=de.apply(this,arguments);return function U(J,Q){if(Q&&("object"===e(Q)||"function"==typeof Q))return Q;if(void 0!==Q)throw new TypeError("Derived constructors may only return object or undefined");return function V(J){if(void 0===J)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return J}(J)}(this,te)}}(re);function re(de,te,j){return function M(J,Q){if(!(J instanceof Q))throw new TypeError("Cannot call a class as a function")}(this,re),de&&!de.hasOwnProperty("delimiter")&&(de.delimiter=!0),Q.call(this,de,te,j)}return function E(J,Q,re){Q&&p(J.prototype,Q),re&&p(J,re),Object.defineProperty(J,"prototype",{writable:!1})}(re,[{key:"createNumberMask",value:function(){var te=a.default.get(this.component,"decimalLimit",2),j=(0,l.getCurrencyAffixes)({currency:this.component.currency,decimalLimit:te,decimalSeparator:this.decimalSeparator,lang:this.options.language});return this.currencyPrefix=this.options.prefix||j.prefix,this.currencySuffix=this.options.suffix||j.suffix,(0,n.createNumberMask)({prefix:this.currencyPrefix,suffix:this.currencySuffix,thousandsSeparatorSymbol:a.default.get(this.component,"thousandsSeparator",this.delimiter),decimalSymbol:a.default.get(this.component,"decimalSymbol",this.decimalSeparator),decimalLimit:te,allowNegative:a.default.get(this.component,"allowNegative",!0),allowDecimal:this.isDecimalAllowed()})}},{key:"isDecimalAllowed",value:function(){return a.default.get(this.component,"allowDecimal",!0)}},{key:"setInputMask",value:function(te){var j=(0,l.getCurrencyAffixes)({currency:this.component.currency,decimalSeparator:this.decimalSeparator,lang:this.options.language}),H="".concat(j.prefix,"[0-9");H+=this.decimalSeparator||"",H+=this.delimiter||"",te.setAttribute("pattern",H+="]*"),te.mask=(0,o.maskInput)({inputElement:te,mask:this.numberMask||"",pipe:function(q){return"$0._"===q&&setTimeout(function(){var se=te.value.length-1;te.setSelectionRange(se,se)}),q},shadowRoot:this.root?this.root.shadowRoot:null})}},{key:"defaultSchema",get:function(){return re.schema()}},{key:"parseNumber",value:function(te){return L(X(re.prototype),"parseNumber",this).call(this,this.stripPrefixSuffix(te))}},{key:"parseValue",value:function(te){return L(X(re.prototype),"parseValue",this).call(this,this.stripPrefixSuffix(te))}},{key:"addZerosAndFormatValue",value:function(te){if(te||0===te){var H,j=a.default.get(this.component,"decimalLimit",2),z="",q=[],ne=!!this.currencyPrefix&&te.includes(this.currencyPrefix),_e=!!this.currencySuffix&&te.includes(this.currencySuffix),ge=te.includes("-")||!1;if((te=this.stripPrefixSuffix(ge?te.replace("-",""):te)).includes(this.decimalSeparator)){var Te=function R(J,Q){return function g(J){if(Array.isArray(J))return J}(J)||function w(J,Q){var re=null==J?null:typeof Symbol<"u"&&J[Symbol.iterator]||J["@@iterator"];if(null!=re){var de,te,j,H,z=[],q=!0,se=!1;try{if(j=(re=re.call(J)).next,0===Q){if(Object(re)!==re)return;q=!1}else for(;!(q=(de=j.call(re)).done)&&(z.push(de.value),z.length!==Q);q=!0);}catch(ne){se=!0,te=ne}finally{try{if(!q&&null!=re.return&&(H=re.return(),Object(H)!==H))return}finally{if(se)throw te}}return z}}(J,Q)||f(J,Q)||function x(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(te.split(this.decimalSeparator),2);H=Te[0],q=function s(J){return function C(J){if(Array.isArray(J))return k(J)}(J)||function _(J){if(typeof Symbol<"u"&&null!=J[Symbol.iterator]||null!=J["@@iterator"])return Array.from(J)}(J)||f(J)||function A(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((z=Te[1]).split(""))}else H=te;if(z.length<j)for(;q.length<j;)q.push("0");var De="".concat(ge?"-":"").concat(ne?this.currencyPrefix:"").concat(H).concat(this.decimalSeparator).concat(q.join("")).concat(_e?this.currencySuffix:"");return L(X(re.prototype),"formatValue",this).call(this,De)}}},{key:"getValueAsString",value:function(te,j){var H=this,z=L(X(re.prototype),"getValueAsString",this).call(this,te,j);return te||"0"==te?Array.isArray(te)?te.map(function(q){return H.addZerosAndFormatValue(L(X(re.prototype),"getValueAsString",H).call(H,q,j))}).join(", "):this.addZerosAndFormatValue(z):z}},{key:"formatValue",value:function(te){return te||"0"===te?this.addZerosAndFormatValue(te):L(X(re.prototype),"formatValue",this).call(this,te)}},{key:"stripPrefixSuffix",value:function(te){if("string"==typeof te)try{var j=!!this.currencyPrefix&&te.includes(this.currencyPrefix),H=!!this.currencySuffix&&te.includes(this.currencySuffix),z=te.includes(this.delimiter),q=te.includes(this.decimalSeparator);this.currencyPrefix&&(te=te.replace(this.currencyPrefix,"")),this.currencySuffix&&(te=te.replace(this.currencySuffix,"")),(j||H)&&!z&&!q&&(Number.isNaN(+te)||!te)&&(te="0")}catch{}return te}},{key:"addFocusBlurEvents",value:function(te){var j=this;L(X(re.prototype),"addFocusBlurEvents",this).call(this,te),this.addEventListener(te,"focus",function(){te.defaultValue===te.value&&te.setSelectionRange(0,te.defaultValue.length)}),this.addEventListener(te,"blur",function(){te.value=j.getValueAsString(j.addZerosAndFormatValue(j.parseValue(te.value)))})}}],[{key:"schema",value:function(){for(var te=arguments.length,j=new Array(te),H=0;H<te;H++)j[H]=arguments[H];return u.default.schema.apply(u.default,[{type:"currency",label:"Currency",key:"currency"}].concat(j))}},{key:"builderInfo",get:function(){return{title:"Currency",group:"advanced",icon:"usd",documentation:"/userguide/form-building/advanced-components#currency",weight:70,schema:re.schema()}}}]),re}(u.default)},85683:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{type:"select",input:!0,weight:50,key:"currency",label:"Currency",tooltip:"The currency to use in currency formatting. Possible values are (ISO-4217) currency codes.",defaultValue:"USD",dataSrc:"values",data:{values:[{label:"US Dollar (USD)",value:"USD"},{label:"Euro (EUR)",value:"EUR"},{label:"Pound Sterling (GBP)",value:"GBP"},{label:"Australian Dollar (AUD)",value:"AUD"},{label:"Afghani (AFN)",value:"AFN"},{label:"Lek (ALL)",value:"ALL"},{label:"Algerian Dinar (DZD)",value:"DZD"},{label:"Kwanza (AOA)",value:"AOA"},{label:"East Caribbean Dollar (XCD)",value:"XCD"},{label:"Argentine Peso (ARS)",value:"ARS"},{label:"Armenian Dram (AMD)",value:"AMD"},{label:"Aruban Florin (AWG)",value:"AWG"},{label:"Azerbaijan Manat (AZN)",value:"AZN"},{label:"Bahamian Dollar (BSD)",value:"BSD"},{label:"Bahraini Dinar (BHD)",value:"BHD"},{label:"Taka (BDT)",value:"BDT"},{label:"Barbados Dollar (BBD)",value:"BBD"},{label:"Belarusian Ruble (BYN)",value:"BYN"},{label:"Belize Dollar (BZD)",value:"BZD"},{label:"CFA Franc BCEAO (XOF)",value:"XOF"},{label:"Bermudian Dollar (BMD)",value:"BMD"},{label:"Indian Rupee (INR)",value:"INR"},{label:"Ngultrum (BTN)",value:"BTN"},{label:"Boliviano (BOB)",value:"BOB"},{label:"Mvdol (BOV)",value:"BOV"},{label:"Convertible Mark (BAM)",value:"BAM"},{label:"Pula (BWP)",value:"BWP"},{label:"Norwegian Krone (NOK)",value:"NOK"},{label:"Brazilian Real (BRL)",value:"BRL"},{label:"Brunei Dollar (BND)",value:"BND"},{label:"Bulgarian Lev (BGN)",value:"BGN"},{label:"Burundi Franc (BIF)",value:"BIF"},{label:"Cabo Verde Escudo (CVE)",value:"CVE"},{label:"Riel (KHR)",value:"KHR"},{label:"CFA Franc BEAC (XAF)",value:"XAF"},{label:"Canadian Dollar (CAD)",value:"CAD"},{label:"Cayman Islands Dollar (KYD)",value:"KYD"},{label:"Chilean Peso (CLP)",value:"CLP"},{label:"Unidad de Fomento (CLF)",value:"CLF"},{label:"Yuan Renminbi (CNY)",value:"CNY"},{label:"Colombian Peso (COP)",value:"COP"},{label:"Unidad de Valor Real (COU)",value:"COU"},{label:"Comorian Franc (KMF)",value:"KMF"},{label:"Congolese Franc (CDF)",value:"CDF"},{label:"New Zealand Dollar (NZD)",value:"NZD"},{label:"Costa Rican Colon (CRC)",value:"CRC"},{label:"Kuna (HRK)",value:"HRK"},{label:"Cuban Peso (CUP)",value:"CUP"},{label:"Peso Convertible (CUC)",value:"CUC"},{label:"Netherlands Antillean Guilder (ANG)",value:"ANG"},{label:"Czech Koruna (CZK)",value:"CZK"},{label:"Danish Krone (DKK)",value:"DKK"},{label:"Djibouti Franc (DJF)",value:"DJF"},{label:"Dominican Peso (DOP)",value:"DOP"},{label:"Egyptian Pound (EGP)",value:"EGP"},{label:"El Salvador Colon (SVC)",value:"SVC"},{label:"Nakfa (ERN)",value:"ERN"},{label:"Ethiopian Birr (ETB)",value:"ETB"},{label:"Falkland Islands Pound (FKP)",value:"FKP"},{label:"Fiji Dollar (FJD)",value:"FJD"},{label:"CFP Franc (XPF)",value:"XPF"},{label:"Dalasi (GMD)",value:"GMD"},{label:"Lari (GEL)",value:"GEL"},{label:"Ghana Cedi (GHS)",value:"GHS"},{label:"Gibraltar Pound (GIP)",value:"GIP"},{label:"Quetzal (GTQ)",value:"GTQ"},{label:"Guinean Franc (GNF)",value:"GNF"},{label:"Guyana Dollar (GYD)",value:"GYD"},{label:"Gourde (HTG)",value:"HTG"},{label:"Lempira (HNL)",value:"HNL"},{label:"Hong Kong Dollar (HKD)",value:"HKD"},{label:"Forint (HUF)",value:"HUF"},{label:"Iceland Krona (ISK)",value:"ISK"},{label:"Indian Rupee (INR)",value:"INR"},{label:"Rupiah (IDR)",value:"IDR"},{label:"SDR (Special Drawing Right) (XDR)",value:"XDR"},{label:"Iranian Rial (IRR)",value:"IRR"},{label:"Iraqi Dinar (IQD)",value:"IQD"},{label:"New Israeli Sheqel (ILS)",value:"ILS"},{label:"Jamaican Dollar (JMD)",value:"JMD"},{label:"Yen (JPY)",value:"JPY"},{label:"Jordanian Dinar (JOD)",value:"JOD"},{label:"Tenge (KZT)",value:"KZT"},{label:"Kenyan Shilling (KES)",value:"KES"},{label:"North Korean Won (KPW)",value:"KPW"},{label:"Won (KRW)",value:"KRW"},{label:"Kuwaiti Dinar (KWD)",value:"KWD"},{label:"Som (KGS)",value:"KGS"},{label:"Lao Kip (LAK)",value:"LAK"},{label:"Lebanese Pound (LBP)",value:"LBP"},{label:"Loti (LSL)",value:"LSL"},{label:"Rand (ZAR)",value:"ZAR"},{label:"Liberian Dollar (LRD)",value:"LRD"},{label:"Libyan Dinar (LYD)",value:"LYD"},{label:"Swiss Franc (CHF)",value:"CHF"},{label:"Pataca (MOP)",value:"MOP"},{label:"Denar (MKD)",value:"MKD"},{label:"Malagasy Ariary (MGA)",value:"MGA"},{label:"Malawi Kwacha (MWK)",value:"MWK"},{label:"Malaysian Ringgit (MYR)",value:"MYR"},{label:"Rufiyaa (MVR)",value:"MVR"},{label:"Ouguiya (MRU)",value:"MRU"},{label:"Mauritius Rupee (MUR)",value:"MUR"},{label:"ADB Unit of Account (XUA)",value:"XUA"},{label:"Mexican Peso (MXN)",value:"MXN"},{label:"Mexican Unidad de Inversion (UDI) (MXV)",value:"MXV"},{label:"Moldovan Leu (MDL)",value:"MDL"},{label:"Tugrik (MNT)",value:"MNT"},{label:"Moroccan Dirham (MAD)",value:"MAD"},{label:"Mozambique Metical (MZN)",value:"MZN"},{label:"Kyat (MMK)",value:"MMK"},{label:"Namibia Dollar (NAD)",value:"NAD"},{label:"Nepalese Rupee (NPR)",value:"NPR"},{label:"Cordoba Oro (NIO)",value:"NIO"},{label:"Naira (NGN)",value:"NGN"},{label:"Rial Omani (OMR)",value:"OMR"},{label:"Pakistan Rupee (PKR)",value:"PKR"},{label:"Balboa (PAB)",value:"PAB"},{label:"Kina (PGK)",value:"PGK"},{label:"Guarani (PYG)",value:"PYG"},{label:"Sol (PEN)",value:"PEN"},{label:"Philippine Peso (PHP)",value:"PHP"},{label:"Zloty (PLN)",value:"PLN"},{label:"Qatari Rial (QAR)",value:"QAR"},{label:"Romanian Leu (RON)",value:"RON"},{label:"Russian Ruble (RUB)",value:"RUB"},{label:"Rwanda Franc (RWF)",value:"RWF"},{label:"Saint Helena Pound (SHP)",value:"SHP"},{label:"Tala (WST)",value:"WST"},{label:"Dobra (STN)",value:"STN"},{label:"Saudi Riyal (SAR)",value:"SAR"},{label:"Serbian Dinar (RSD)",value:"RSD"},{label:"Seychelles Rupee (SCR)",value:"SCR"},{label:"Leone (SLL)",value:"SLL"},{label:"Singapore Dollar (SGD)",value:"SGD"},{label:"Sucre (XSU)",value:"XSU"},{label:"Solomon Islands Dollar (SBD)",value:"SBD"},{label:"Somali Shilling (SOS)",value:"SOS"},{label:"South Sudanese Pound (SSP)",value:"SSP"},{label:"Sri Lanka Rupee (LKR)",value:"LKR"},{label:"Sudanese Pound (SDG)",value:"SDG"},{label:"Surinam Dollar (SRD)",value:"SRD"},{label:"Lilangeni (SZL)",value:"SZL"},{label:"Swedish Krona (SEK)",value:"SEK"},{label:"WIR Euro (CHE)",value:"CHE"},{label:"WIR Franc (CHW)",value:"CHW"},{label:"Syrian Pound (SYP)",value:"SYP"},{label:"New Taiwan Dollar (TWD)",value:"TWD"},{label:"Somoni (TJS)",value:"TJS"},{label:"Tanzanian Shilling (TZS)",value:"TZS"},{label:"Baht (THB)",value:"THB"},{label:"Pa\u2019anga (TOP)",value:"TOP"},{label:"Trinidad and Tobago Dollar (TTD)",value:"TTD"},{label:"Tunisian Dinar (TND)",value:"TND"},{label:"Turkish Lira (TRY)",value:"TRY"},{label:"Turkmenistan New Manat (TMT)",value:"TMT"},{label:"Uganda Shilling (UGX)",value:"UGX"},{label:"Hryvnia (UAH)",value:"UAH"},{label:"UAE Dirham (AED)",value:"AED"},{label:"US Dollar (Next day) (USN)",value:"USN"},{label:"Peso Uruguayo (UYU)",value:"UYU"},{label:"Uruguay Peso en Unidades Indexadas (UYI)",value:"UYI"},{label:"Unidad Previsional (UYW)",value:"UYW"},{label:"Uzbekistan Sum (UZS)",value:"UZS"},{label:"Vatu (VUV)",value:"VUV"},{label:"Bol\xedvar Soberano (VES)",value:"VES"},{label:"Dong (VND)",value:"VND"},{label:"Yemeni Rial (YER)",value:"YER"},{label:"Zambian Kwacha (ZMW)",value:"ZMW"},{label:"Zimbabwe Dollar (ZWL),",value:"ZWL"}]}}]},36329:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0},{type:"textfield",input:!0,weight:310,key:"prefix",label:"prefix",tooltip:"Specify the prefix symbol after the component (e.g.: USD, EUR)"},{type:"textfield",input:!0,weight:320,key:"suffix",label:"suffix",tooltip:"Specify the suffix symbol after the component (e.g.: USD, EUR)."}]},6890:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function u(){for(var d=arguments.length,s=new Array(d),A=0;A<d;A++)s[A]=arguments[A];return e.default.baseEditForm.apply(e.default,[[{key:"display",components:o.default},{key:"data",components:n.default},{key:"validation",components:a.default}]].concat(s))},i(34338);var e=l(i(14231)),n=l(i(53060)),o=l(i(60435)),a=l(i(92060));function l(d){return d&&d.__esModule?d:{default:d}}},8125:(he,y,i)=>{"use strict";i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(45247),i(84254),i(752),i(21694),i(76265),i(77049),i(99474),i(35082),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(63975),i(50886),i(278),i(60228),i(89730),i(76801),i(30024),i(63945),i(38077),i(49693),i(47522),i(41517),i(86466),i(62506),i(25728),i(69358),i(34284),i(64043),i(57267),i(32320),i(39772),i(36585),i(5399),i(88052);var de,e=a(i(6990)),n=a(i(26023)),o=i(12866);function a(j){return j&&j.__esModule?j:{default:j}}function u(j,H){var z=Object.keys(j);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(j);H&&(q=q.filter(function(se){return Object.getOwnPropertyDescriptor(j,se).enumerable})),z.push.apply(z,q)}return z}function d(j){for(var H=1;H<arguments.length;H++){var z=null!=arguments[H]?arguments[H]:{};H%2?u(Object(z),!0).forEach(function(q){D(j,q,z[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(z)):u(Object(z)).forEach(function(q){Object.defineProperty(j,q,Object.getOwnPropertyDescriptor(z,q))})}return j}function s(j,H){return C(j)||function _(j,H){var z=null==j?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(null!=z){var q,se,ne,_e,ge=[],Ce=!0,Te=!1;try{if(ne=(z=z.call(j)).next,0===H){if(Object(z)!==z)return;Ce=!1}else for(;!(Ce=(q=ne.call(z)).done)&&(ge.push(q.value),ge.length!==H);Ce=!0);}catch(De){Te=!0,se=De}finally{try{if(!Ce&&null!=z.return&&(_e=z.return(),Object(_e)!==_e))return}finally{if(Te)throw se}}return ge}}(j,H)||k(j,H)||A()}function A(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function C(j){if(Array.isArray(j))return j}function R(j){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(H){return typeof H}:function(H){return H&&"function"==typeof Symbol&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H})(j)}function x(j){return function g(j){if(Array.isArray(j))return M(j)}(j)||w(j)||k(j)||function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(j,H){if(j){if("string"==typeof j)return M(j,H);var z=Object.prototype.toString.call(j).slice(8,-1);if("Object"===z&&j.constructor&&(z=j.constructor.name),"Map"===z||"Set"===z)return Array.from(j);if("Arguments"===z||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return M(j,H)}}function w(j){if(typeof Symbol<"u"&&null!=j[Symbol.iterator]||null!=j["@@iterator"])return Array.from(j)}function M(j,H){(null==H||H>j.length)&&(H=j.length);for(var z=0,q=new Array(H);z<H;z++)q[z]=j[z];return q}function E(j,H){for(var z=0;z<H.length;z++){var q=H[z];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(j,F(q.key),q)}}function I(j,H,z,q){return(I=typeof Reflect<"u"&&Reflect.set?Reflect.set:function(ne,_e,ge,Ce){var De,Te=U(ne,_e);if(Te){if((De=Object.getOwnPropertyDescriptor(Te,_e)).set)return De.set.call(Ce,ge),!0;if(!De.writable)return!1}if(De=Object.getOwnPropertyDescriptor(Ce,_e)){if(!De.writable)return!1;De.value=ge,Object.defineProperty(Ce,_e,De)}else D(Ce,_e,ge);return!0})(j,H,z,q)}function L(j,H,z,q,se){if(!I(j,H,z,q||j)&&se)throw new Error("failed to set property");return z}function D(j,H,z){return(H=F(H))in j?Object.defineProperty(j,H,{value:z,enumerable:!0,configurable:!0,writable:!0}):j[H]=z,j}function F(j){var H=function P(j,H){if("object"!==R(j)||null===j)return j;var z=j[Symbol.toPrimitive];if(void 0!==z){var q=z.call(j,H||"default");if("object"!==R(q))return q;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===H?String:Number)(j)}(j,"string");return"symbol"===R(H)?H:String(H)}function O(){return O=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(H,z,q){var se=U(H,z);if(se){var ne=Object.getOwnPropertyDescriptor(se,z);return ne.get?ne.get.call(arguments.length<3?H:q):ne.value}},O.apply(this,arguments)}function U(j,H){for(;!Object.prototype.hasOwnProperty.call(j,H)&&null!==(j=re(j)););return j}function K(j,H){return(K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(q,se){return q.__proto__=se,q})(j,H)}function re(j){return(re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(z){return z.__proto__||Object.getPrototypeOf(z)})(j)}typeof window<"u"&&(de=i(6875)),y.default=function(j){!function V(j,H){if("function"!=typeof H&&null!==H)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(H&&H.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),Object.defineProperty(j,"prototype",{writable:!1}),H&&K(j,H)}(z,j);var H=function X(j){var H=function Q(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var se,q=re(j);if(H){var ne=re(this).constructor;se=Reflect.construct(q,arguments,ne)}else se=q.apply(this,arguments);return function me(j,H){if(H&&("object"===R(H)||"function"==typeof H))return H;if(void 0!==H)throw new TypeError("Derived constructors may only return object or undefined");return function J(j){if(void 0===j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}(j)}(this,se)}}(z);function z(){var q;!function p(j,H){if(!(j instanceof H))throw new TypeError("Cannot call a class as a function")}(this,z);for(var se=arguments.length,ne=new Array(se),_e=0;_e<se;_e++)ne[_e]=arguments[_e];return(q=H.call.apply(H,[this].concat(ne))).type="datagrid",q.tabIndex=0,q}return function b(j,H,z){H&&E(j.prototype,H),z&&E(j,z),Object.defineProperty(j,"prototype",{writable:!1})}(z,[{key:"init",value:function(){this.components=this.components||[],this.rows=[],this.columns=x(this.component.components),(this.initRows||!e.default.isEqual(this.dataValue,this.emptyValue))&&this.createRows(!0),this.visibleColumns={},this.prevHasAddButton=this.hasAddButton(),this.checkColumns()}},{key:"dataValue",get:function(){var se=O(re(z.prototype),"dataValue",this);return se&&Array.isArray(se)?se:this.emptyValue},set:function(se){L(re(z.prototype),"dataValue",se,this,!0)}},{key:"defaultSchema",get:function(){return z.schema()}},{key:"initEmpty",get:function(){return this.component.initEmpty||this.component.noFirstRow}},{key:"initRows",get:function(){return this.builderMode||"defaultValue"===this.path||!this.initEmpty}},{key:"emptyValue",get:function(){return this.initEmpty?[]:[{}]}},{key:"addAnotherPosition",get:function(){return e.default.get(this.component,"addAnotherPosition","bottom")}},{key:"minLength",get:function(){return this.hasRowGroups()?e.default.sum(this.getGroupSizes()):e.default.get(this.component,"validate.minLength",0)}},{key:"defaultValue",get:function(){var se=this.builderMode,ne=this.initEmpty;if(se||ne&&!this.dataValue.length)return ne&&!se?[]:[{}];for(var ge,_e=O(re(z.prototype),"defaultValue",this),Ce=(ge=Array.isArray(_e)?_e:_e&&"object"===R(_e)?[_e]:this.emptyValue).length;Ce<this.minLength;Ce++)ge.push({});return ge}},{key:"disabled",get:function(){return O(re(z.prototype),"disabled",this)},set:function(se){L(re(z.prototype),"disabled",se,this,!0),e.default.each(this.refs["".concat(this.datagridKey,"-addRow")],function(ne){ne.disabled=se}),e.default.each(this.refs["".concat(this.datagridKey,"-removeRow")],function(ne){ne.disabled=se})}},{key:"datagridKey",get:function(){return"datagrid-".concat(this.key)}},{key:"allowReorder",get:function(){return!this.options.readOnly&&e.default.get(this.component,"reorder",!1)}},{key:"iteratableRows",get:function(){var se=this;return this.rows.map(function(ne,_e){return{components:ne,data:se.dataValue[_e]}})}},{key:"getRowChunks",value:function(se,ne){var _e=se.reduce(function(Te,De){var fe=s(Te,2),xe=fe[0],Le=xe+De;return[Le,[].concat(x(fe[1]),[[xe,Le]])]},[0,[]]);return s(_e,2)[1].map(function(Te){return e.default.slice.apply(e.default,[ne].concat(x(Te)))})}},{key:"getGroups",value:function(){var se=e.default.get(this.component,"rowGroups",[]),_e=e.default.map(se,"numberOfRows").slice(0,-1).reduce(function(ge,Ce){return ge.concat(ge[ge.length-1]+Ce)},[0]);return se.reduce(function(ge,Ce,Te){return d(d({},ge),{},D({},_e[Te],Ce))},{})}},{key:"getGroupSizes",value:function(){return e.default.map(e.default.get(this.component,"rowGroups",[]),"numberOfRows")}},{key:"hasRowGroups",value:function(){return e.default.get(this,"component.enableRowGroups",!1)&&!this.builderMode}},{key:"totalRowsNumber",value:function(se){return e.default.sum(e.default.map(se,"numberOfRows"))}},{key:"setStaticValue",value:function(se){this.dataValue=e.default.range(se).map(function(){return{}})}},{key:"hasExtraColumn",value:function(){return this.hasRemoveButtons()||this.canAddColumn}},{key:"hasRemoveButtons",value:function(){return!this.builderMode&&!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&this.dataValue.length>e.default.get(this.component,"validate.minLength",0)}},{key:"hasTopSubmit",value:function(){return this.hasAddButton()&&["top","both"].includes(this.addAnotherPosition)}},{key:"hasBottomSubmit",value:function(){return this.hasAddButton()&&["bottom","both"].includes(this.addAnotherPosition)}},{key:"canAddColumn",get:function(){return this.builderMode}},{key:"render",value:function(){var se=this.getColumns(),ne=0,_e=this.hasRemoveButtons();this.component.reorder&&ne++,_e&&ne++,this.canAddColumn&&ne++;var ge=Math.floor(12/(se.length+ne));return O(re(z.prototype),"render",this).call(this,this.renderTemplate("datagrid",{rows:this.getRows(),columns:se,groups:this.hasRowGroups()?this.getGroups():[],visibleColumns:this.visibleColumns,hasToggle:e.default.get(this,"component.groupToggle",!1),hasHeader:this.hasHeader(),hasExtraColumn:this.hasExtraColumn(),hasAddButton:this.hasAddButton(),hasRemoveButtons:_e,hasTopSubmit:this.hasTopSubmit(),hasBottomSubmit:this.hasBottomSubmit(),hasGroups:this.hasRowGroups(),numColumns:se.length+(this.hasExtraColumn()?1:0),datagridKey:this.datagridKey,allowReorder:this.allowReorder,builder:this.builderMode,canAddColumn:this.canAddColumn,tabIndex:this.tabIndex,placeholder:this.renderTemplate("builderPlaceholder",{position:this.componentComponents.length}),colWidth:ge.toString()}))}},{key:"getRows",value:function(){return this.rows.map(function(se){var ne={};return e.default.each(se,function(_e,ge){ne[ge]=_e.render()}),ne})}},{key:"getColumns",value:function(){var se=this;return this.columns.filter(function(ne){return!se.visibleColumns.hasOwnProperty(ne.key)||se.visibleColumns[ne.key]})}},{key:"hasHeader",value:function(){return this.component.components.reduce(function(se,ne){return se||(ne.label||ne.title)&&!ne.hideLabel},!1)}},{key:"loadRefs",value:function(se,ne){if(O(re(z.prototype),"loadRefs",this).call(this,se,ne),"single"===ne.messageContainer){var _e=e.default.last(se.querySelectorAll("[ref=messageContainer]"));this.refs.messageContainer=_e||this.refs.messageContainer}}},{key:"attach",value:function(se){var ne,_e=this;this.loadRefs(se,(D(ne={},"".concat(this.datagridKey,"-row"),"multiple"),D(ne,"".concat(this.datagridKey,"-tbody"),"single"),D(ne,"".concat(this.datagridKey,"-addRow"),"multiple"),D(ne,"".concat(this.datagridKey,"-removeRow"),"multiple"),D(ne,"".concat(this.datagridKey,"-group-header"),"multiple"),D(ne,this.datagridKey,"multiple"),D(ne,"messageContainer","single"),ne)),this.allowReorder&&(this.refs["".concat(this.datagridKey,"-row")].forEach(function(Te,De){Te.dragInfo={index:De}}),de&&(this.dragula=de([this.refs["".concat(this.datagridKey,"-tbody")]],{moves:function(De,fe,xe){var Oe=xe.getAttribute("data-key");if(fe.getAttribute("data-key")===Oe)return xe.classList.contains("formio-drag-button")}}).on("drop",this.onReorder.bind(this)),this.dragula.on("cloned",function(Te,De){Te&&Te.children&&De&&De.children&&e.default.each(De.children,function(fe,xe){var Oe=getComputedStyle(fe,null);if(""!==Oe.cssText)Te.children[xe].style.cssText=Oe.cssText;else{var Le=Object.values(Oe).reduce(function(Gt,Ut){return"".concat(Gt).concat(Ut,":").concat(Oe.getPropertyValue(Ut),";")},"");Te.children[xe].style.cssText=Le}})}))),this.refs["".concat(this.datagridKey,"-addRow")].forEach(function(Te){_e.addEventListener(Te,"click",_e.addRow.bind(_e))}),this.refs["".concat(this.datagridKey,"-removeRow")].forEach(function(Te,De){_e.addEventListener(Te,"click",_e.removeRow.bind(_e,De))}),this.hasRowGroups()&&(this.refs.chunks=this.getRowChunks(this.getGroupSizes(),this.refs["".concat(this.datagridKey,"-row")]),this.refs["".concat(this.datagridKey,"-group-header")].forEach(function(Te,De){_e.addEventListener(Te,"click",function(){return _e.toggleGroup(Te,De)})}));var ge=this.getColumns(),Ce=ge.length;return this.rows.forEach(function(Te,De){var fe=0;ge.forEach(function(xe){_e.attachComponents(_e.refs[_e.datagridKey][De*Ce+fe],[_e.rows[De][xe.key]],_e.getComponentsContainer()),fe++})}),O(re(z.prototype),"attach",this).call(this,se)}},{key:"getComponentsContainer",value:function(){return this.component.components}},{key:"onReorder",value:function(se,ne,_e,ge){if(!se.dragInfo||ge&&!ge.dragInfo)console.warn("There is no Drag Info available for either dragged or sibling element");else{var Ce=se.dragInfo.index,Te=ge?ge.dragInfo.index:this.dataValue.length,De=Te>Ce,fe=(0,o.fastCloneDeep)(this.dataValue);fe.splice(Te,0,fe[Ce]),fe.splice(De?Ce:Ce+1,1),this.setValue(fe,{isReordered:!0}),this.rebuild()}}},{key:"focusOnNewRowElement",value:function(se){Object.keys(se).find(function(ne){var _e=se[ne].element;if(_e){var ge=(0,o.getFocusableElements)(_e);if(ge&&ge[0])return ge[0].focus(),!0}return!1})}},{key:"addRow",value:function(){var se=this,ne=this.rows.length;this.dataValue.length===ne&&this.dataValue.push({});var _e,ge=this.dataValue,Ce=this.defaultValue;this.initEmpty&&Ce[ne]?ge[ne]=_e=Ce[ne]:_e=ge[ne],this.rows[ne]=this.createRowComponents(_e,ne),this.emit("dataGridAddRow",{component:this.component,row:_e}),this.checkConditions(),this.triggerChange(),this.redraw().then(function(){se.focusOnNewRowElement(se.rows[ne])})}},{key:"updateComponentsRowIndex",value:function(se,ne){var _e=this;se.forEach(function(ge,Ce){var Te;if(null!==(Te=ge.options)&&void 0!==Te&&Te.name){var De="[".concat(_e.key,"][").concat(ne,"]");ge.options.name=ge.options.name.replace("[".concat(_e.key,"][").concat(ge.rowIndex,"]"),De)}ge.rowIndex=ne,ge.row="".concat(ne,"-").concat(Ce),ge.path=_e.calculateComponentPath(ge)})}},{key:"updateRowsComponents",value:function(se){var ne=this;this.rows.slice(se).forEach(function(_e,ge){ne.updateComponentsRowIndex(Object.values(_e),se+ge)})}},{key:"removeRow",value:function(se){this.splice(se,{isReordered:!0}),this.emit("dataGridDeleteRow",{index:se});var _e=s(this.rows.splice(se,1),1);this.removeRowComponents(_e[0]),this.updateRowsComponents(se),this.setValue(this.dataValue,{isReordered:!0}),this.redraw()}},{key:"removeRowComponents",value:function(se){var ne=this;e.default.each(se,function(_e){return ne.removeComponent(_e)})}},{key:"getRowValues",value:function(){return this.dataValue}},{key:"setRowComponentsData",value:function(se,ne){e.default.each(this.rows[se],function(_e){_e.data=ne})}},{key:"createRows",value:function(se,ne){var _e=this,ge=!1,Ce=this.getRowValues();Ce.forEach(function(fe,xe){!ne&&_e.rows[xe]?_e.setRowComponentsData(xe,fe):(_e.rows[xe]&&_e.removeRowComponents(_e.rows[xe]),_e.rows[xe]=_e.createRowComponents(fe,xe),ge=!0)});var Te=this.rows.splice(Ce.length),De=!!Te.length;return De&&Te.forEach(function(fe){return _e.removeRowComponents(fe)}),!se&&(ge||De)&&this.redraw(),ge}},{key:"createRowComponents",value:function(se,ne){var _e=this,ge={};return this.tabIndex=0,this.component.components.map(function(Ce,Te){var fe,De=e.default.clone(_e.options);De.name+="[".concat(ne,"]"),De.row="".concat(ne,"-").concat(Te),_e.builderMode?(Ce.id=Ce.id+ne,fe=Ce):fe=d(d({},Ce),{},{id:Ce.id+ne});var xe=_e.createComponent(fe,De,se);xe.parentDisabled=!!_e.disabled,xe.rowIndex=ne,xe.inDataGrid=!0,fe.tabindex&&parseInt(fe.tabindex)>_e.tabIndex&&(_e.tabIndex=parseInt(fe.tabindex)),ge[Ce.key]=xe}),ge}},{key:"checkValidity",value:function(se,ne,_e,ge){if(!this.checkCondition(_e=_e||this.data,se=se||this.rootValue))return this.setCustomValidity(""),!0;if(!this.checkComponentValidity(se,ne,_e,{silentCheck:ge}))return!1;var Ce=this.checkRows("checkValidity",se,ne,!0,ge);return this.checkModal(Ce,ne),Ce}},{key:"checkColumns",value:function(se){var ne=this,_e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};se=se||this.rootValue;var ge=!1;if(!this.rows||!this.rows.length)return{rebuild:!1,show:!1};if(this.builderMode)return{rebuild:!1,show:!0};var Ce={},Te=!1,De=this.dataValue;this.rows.forEach(function(xe,Oe){e.default.each(xe,function(Le,Gt){if(Le&&"function"==typeof Le.checkConditions){var Ut=void 0===Ce[Gt];if(Ce[Gt]=!!Ce[Gt]||Le.checkConditions(se,_e,De[Oe])&&"hidden"!==Le.type,Le.component.logic&&Ut){var An=e.default.findIndex(ne.columns,["key",Gt]);e.default.isEqual(ne.columns[An],Le.component)||(Te=!0,ne.columns[An]=Le.component)}}})});var fe=!e.default.isEqual(Ce,this.visibleColumns)||Te;return e.default.each(Ce,function(xe){ge|=xe}),this.visibleColumns=Ce,{rebuild:fe,show:ge}}},{key:"checkComponentConditions",value:function(se,ne,_e){var ge=this.visible;if(!O(re(z.prototype),"checkComponentConditions",this).call(this,se,ne,_e))return!1;var Ce=this.checkColumns(se,ne),Te=Ce.rebuild,De=Ce.show;return(Te||!ge)&&this.createRows(!1,Te),De}},{key:"setValue",value:function(se){var ne=this,_e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!se)return this.dataValue=this.defaultValue,this.createRows(),!1;Array.isArray(se)||("object"===R(se)?se=[se]:(this.createRows(),se=[{}])),se&&!se.length&&!this.initEmpty&&se.push({});var ge=_e.fromSubmission&&!e.default.isEqual(se,this.emptyValue),Ce=this.hasChanged(se,this.dataValue);return this.dataValue=se,(this.initRows||ge)&&!this.createRows()&&Ce&&this.redraw(),this.componentModal&&ge&&this.componentModal.setValue(se),this.rows.forEach(function(Te,De){se.length<=De||e.default.each(Te,function(fe){fe.rowIndex=De,ne.setNestedValue(fe,se[De],_e)})}),this.updateOnChange(_e,Ce),Ce}},{key:"restoreComponentsContext",value:function(){var se=this;this.rows.forEach(function(ne,_e){return e.default.forIn(ne,function(ge){return ge.data=se.dataValue[_e]})})}},{key:"getComponent",value:function(se,ne){var ge=function l(j){return C(j)||w(j)||k(j)||A()}(se=Array.isArray(se)?se:[se]),Ce=ge[0],Te=ge.slice(1),De=[];if(e.default.isNumber(Ce)&&Te.length){var fe=Te.pop();return(De=this.rows[Ce][fe])||Object.entries(this.rows[Ce]).forEach(function(xe){var Le=s(xe,2)[1];if("getComponent"in Le){var Gt=Le.getComponent([fe],ne);Gt&&(De=Gt)}}),De&&e.default.isFunction(ne)&&ne(De,this.getComponents()),Te.length&&"getComponent"in De?De.getComponent(Te,ne):De}return e.default.isString(Ce)?(this.everyComponent(function(xe,Oe){if(xe.component.key===Ce){var Le=xe;Te.length>0&&"getComponent"in xe?Le=xe.getComponent(Te,ne):ne&&ne(xe,Oe),De=De.concat(Le)}}),De.length>0?De:null):De}},{key:"toggleGroup",value:function(se,ne){se.classList.toggle("collapsed"),e.default.each(this.refs.chunks[ne],function(_e){_e.classList.toggle("hidden")})}}],[{key:"schema",value:function(){for(var se=arguments.length,ne=new Array(se),_e=0;_e<se;_e++)ne[_e]=arguments[_e];return n.default.schema.apply(n.default,[{label:"Data Grid",key:"dataGrid",type:"datagrid",clearOnHide:!0,input:!0,tree:!0,components:[]}].concat(ne))}},{key:"builderInfo",get:function(){return{title:"Data Grid",icon:"th",group:"data",documentation:"/userguide/form-building/data-components#data-grid",showPreview:!1,weight:30,schema:z.schema()}}}]),z}(n.default)},53060:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"multiple",ignore:!0}]},60435:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"placeholder",ignore:!0},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:405,input:!0,clearOnHide:!1,customConditional:function(o){return!o.data.enableRowGroups},calculateValue:function(o){return!!o.data.enableRowGroups||o.data.disableAddingRemovingRows}},{weight:406,type:"textarea",input:!0,key:"conditionalAddButton",label:"Conditional Add Button",placeholder:"show = ...",tooltip:"Specify condition when Add Button should be displayed.",editor:"ace",as:"javascript",wysiwyg:{minLines:3}},{type:"checkbox",label:"Allow Reorder",key:"reorder",weight:407,input:!0},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:function(o){return!o.data.disableAddingRemovingRows}},{type:"select",label:"Add Another Position",key:"addAnotherPosition",dataSrc:"values",tooltip:"Position for Add Another button with respect to Data Grid Array.",defaultValue:"bottom",input:!0,data:{values:[{label:"Top",value:"top"},{label:"Bottom",value:"bottom"},{label:"Both",value:"both"}]},weight:411,customConditional:function(o){return!o.data.disableAddingRemovingRows}},{type:"checkbox",label:"Equal column width",key:"layoutFixed",weight:430,input:!0},{key:"enableRowGroups",type:"checkbox",label:"Enable Row Groups",weight:440,input:!0},{label:"Groups",disableAddingRemovingRows:!1,defaultOpen:!1,addAnother:"",addAnotherPosition:"bottom",mask:!1,tableView:!0,alwaysEnabled:!1,type:"datagrid",input:!0,key:"rowGroups",reorder:!0,components:[{label:"Label",allowMultipleMasks:!1,showWordCount:!1,showCharCount:!1,tableView:!0,alwaysEnabled:!1,type:"textfield",input:!0,key:"label",widget:{type:""},row:"0-0"},{label:"Number of Rows",mask:!1,tableView:!0,alwaysEnabled:!1,type:"number",input:!0,key:"numberOfRows",row:"0-1"}],weight:441,conditional:{json:{var:"data.enableRowGroups"}}},{label:"Hide Group on Header Click",type:"checkbox",input:!0,key:"groupToggle",weight:442,conditional:{json:{var:"data.enableRowGroups"}}},{label:"Initialize Empty",type:"checkbox",input:!0,key:"initEmpty",tooltip:"The DataGrid will have no visible rows when initialized.",weight:450}]},92060:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{ignore:!0,key:"unique"},{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"textfield",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"textfield",tooltip:"The maximum length requirement this field must meet.",input:!0}]},22648:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function l(){for(var u=arguments.length,d=new Array(u),s=0;s<u;s++)d[s]=arguments[s];return e.default.baseEditForm.apply(e.default,[[{key:"display",components:o.default},{key:"data",components:n.default}]].concat(d))},i(34338);var e=a(i(14231)),n=a(i(80168)),o=a(i(79992));function a(u){return u&&u.__esModule?u:{default:u}}},52120:(he,y,i)=>{"use strict";i(32349),i(81919),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(45247),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(63975),i(50886),i(69358),i(25728),i(60228),i(60429),i(278),i(34338),i(49693),i(47522),i(34284),i(62506),i(5399),i(41517),i(88052);var e=u(i(1681)),n=u(i(8125)),o=u(i(6990)),a=u(i(81472)),l=i(12866);function u(P){return P&&P.__esModule?P:{default:P}}function d(P){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(O){return typeof O}:function(O){return O&&"function"==typeof Symbol&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O})(P)}function A(P,O){for(var U=0;U<O.length;U++){var V=O[U];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(P,f(V.key),V)}}function C(P,O,U,V){return(C=typeof Reflect<"u"&&Reflect.set?Reflect.set:function(X,me,J,Q){var de,re=L(X,me);if(re){if((de=Object.getOwnPropertyDescriptor(re,me)).set)return de.set.call(Q,J),!0;if(!de.writable)return!1}if(de=Object.getOwnPropertyDescriptor(Q,me)){if(!de.writable)return!1;de.value=J,Object.defineProperty(Q,me,de)}else x(Q,me,J);return!0})(P,O,U,V)}function x(P,O,U){return(O=f(O))in P?Object.defineProperty(P,O,{value:U,enumerable:!0,configurable:!0,writable:!0}):P[O]=U,P}function f(P){var O=function k(P,O){if("object"!==d(P)||null===P)return P;var U=P[Symbol.toPrimitive];if(void 0!==U){var V=U.call(P,O||"default");if("object"!==d(V))return V;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===O?String:Number)(P)}(P,"string");return"symbol"===d(O)?O:String(O)}function g(P,O){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,K){return V.__proto__=K,V})(P,O)}function I(){return I=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(O,U,V){var K=L(O,U);if(K){var X=Object.getOwnPropertyDescriptor(K,U);return X.get?X.get.call(arguments.length<3?O:V):X.value}},I.apply(this,arguments)}function L(P,O){for(;!Object.prototype.hasOwnProperty.call(P,O)&&null!==(P=D(P)););return P}function D(P){return(D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(U){return U.__proto__||Object.getPrototypeOf(U)})(P)}y.default=function(P){!function w(P,O){if("function"!=typeof O&&null!==O)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(O&&O.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),Object.defineProperty(P,"prototype",{writable:!1}),O&&g(P,O)}(U,P);var O=function M(P){var O=function b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var K,V=D(P);if(O){var X=D(this).constructor;K=Reflect.construct(V,arguments,X)}else K=V.apply(this,arguments);return function p(P,O){if(O&&("object"===d(O)||"function"==typeof O))return O;if(void 0!==O)throw new TypeError("Derived constructors may only return object or undefined");return function E(P){if(void 0===P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}(P)}(this,K)}}(U);function U(V,K,X){var me;return function s(P,O){if(!(P instanceof O))throw new TypeError("Cannot call a class as a function")}(this,U),(me=O.call(this,V,K,X)).type="datamap",me}return function _(P,O,U){O&&A(P.prototype,O),U&&A(P,U),Object.defineProperty(P,"prototype",{writable:!1})}(U,[{key:"schema",get:function(){var K=I(D(U.prototype),"schema",this);return this.components&&this.components.length>0&&(K.valueComponent=this.components[this.components.length-1].schema),o.default.omit(K,"components")}},{key:"init",value:function(){this.components=[],this.rows=[],this.createRows(),this.visibleColumns=x({key:!0},this.valueKey,!0),this.component.valueComponent.hideLabel=!0}},{key:"defaultSchema",get:function(){return U.schema()}},{key:"emptyValue",get:function(){return{}}},{key:"dataValue",get:function(){return!this.key||!this.visible&&this.component.clearOnHide?this.emptyValue:(!this.hasValue()&&this.shouldAddDefaultValue&&(this.dataValue=this.emptyValue),o.default.get(this.data,this.key))},set:function(K){!function R(P,O,U,V,K){if(!C(P,O,U,V||P)&&K)throw new Error("failed to set property")}(D(U.prototype),"dataValue",K,this,!0)}},{key:"defaultValue",get:function(){var K=I(D(U.prototype),"defaultValue",this);return Array.isArray(K)?K[0]:this.emptyValue}},{key:"keySchema",get:function(){return{type:"textfield",input:!0,hideLabel:!0,label:this.component.keyLabel||"Key",key:"__key",disableBuilderActions:!0}}},{key:"valueKey",get:function(){return this.component.valueComponent.key}},{key:"getRowValues",value:function(){var K=this.dataValue;return this.builderMode?[K]:o.default.isEmpty(K)?[]:Object.keys(K).map(function(){return K})}},{key:"getComponentsContainer",value:function(){return this.builderMode?this.getComponents().map(function(K){return K.component}):I(D(U.prototype),"getComponentsContainer",this).call(this)}},{key:"iteratableRows",get:function(){return this.rows.map(function(K){return Object.keys(K).map(function(X){return{components:K[X],data:K[X].dataValue}})})}},{key:"componentContext",value:function(K){return this.iteratableRows[K.row].find(function(X){return X.components.key===K.key}).data}},{key:"hasHeader",value:function(){return!0}},{key:"hasRemoveButtons",value:function(){return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode}},{key:"getColumns",value:function(){var K=Object.assign({},this.keySchema),X=Object.assign({},this.component.valueComponent);return K.hideLabel=!1,X.hideLabel=!1,this.component.keyBeforeValue?[K,X]:[X,K]}},{key:"getRowKey",value:function(K){var X=Object.keys(this.dataValue);return X[K]||(X[K]=(0,l.uniqueKey)(this.dataValue,this.defaultRowKey)),X[K]}},{key:"defaultRowKey",get:function(){return"key"}},{key:"setRowComponentsData",value:function(K,X){o.default.each(this.rows[K],function(me){me.data="__key"===me.key?{__key:Object.keys(X)[K]}:X})}},{key:"getValueAsString",value:function(K,X){var me=this;if(null!=X&&X.email&&this.visible&&!this.skipInEmail&&o.default.isObject(K)){var J='\n        <table border="1" style="width:100%">\n          <tbody>\n      ';return(J=Object.keys(K).reduce(function(Q,re){return Q+'\n          <tr>\n            <th style="padding: 5px 10px;">'.concat(re,'</th>\n            <td style="width:100%;padding:5px 10px;">').concat(me.getView(K[re],X),"</td>\n          </tr>\n        ")},J))+"\n          </tbody>\n        </table>\n      "}return o.default.isEmpty(K)?"":null!=X&&X.modalPreview?(delete X.modalPreview,this.getDataValueAsTable(K,X)):"object"===d(K)?"[Complex Data]":K}},{key:"getDataValueAsTable",value:function(K,X){var me=this,J='\n      <table border="1" style="width:100%">\n        <tbody>\n    ';return this.visible&&o.default.isObject(K)&&Object.keys(K).forEach(function(Q){J+='\n          <tr>\n            <th style="padding: 5px 10px;">'.concat(Q,'</th>\n            <td style="width:100%;padding:5px 10px;">').concat(me.getView(K[Q],X),"</td>\n          </tr>\n        ")}),J+="\n        </tbody>\n      </table>\n    "}},{key:"createRowComponents",value:function(K,X){var me=this,J=this.builderMode?this.valueKey:this.getRowKey(X),Q=o.default.clone(this.options);Q.events=new a.default,Q.name+="[".concat(X,"]"),Q.row="".concat(X);var re={};re.__key=this.createComponent(this.keySchema,Q,{__key:this.builderMode?this.defaultRowKey:J}),re.__key.on("componentChange",function(j){var H=me.dataValue,z=(0,l.uniqueKey)(H,j.value);H[z]=H[J],delete H[J];var q=re[me.valueKey];q.component.key=z,q.path=me.calculateComponentPath(q),J=z});var de=o.default.clone(this.component.valueComponent);de.key=J;var te=this.options;return te.row=Q.row,re[this.valueKey]=this.createComponent(de,te,this.dataValue),re}},{key:"canAddColumn",get:function(){return!1}},{key:"addChildComponent",value:function(K){this.component.valueComponent=K}},{key:"saveChildComponent",value:function(K){K.key!==this.keySchema.key&&(this.component.valueComponent=K)}},{key:"removeChildComponent",value:function(){var K=U.schema();this.component.valueComponent=K.valueComponent}},{key:"addRow",value:function(){var K=this.rows.length;this.rows[K]=this.createRowComponents(this.dataValue,K),this.redraw(),this.triggerChange()}},{key:"removeRow",value:function(K){var X=Object.keys(this.dataValue);X[K]&&delete this.dataValue[X[K]],this.rows.splice(K,1),this.redraw(),this.triggerChange()}},{key:"setValue",value:function(K){var X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},me=this.hasChanged(K,this.dataValue);return this.dataValue=K,this.createRows(),this.updateOnChange(X,me),me}},{key:"checkColumns",value:function(){return{rebuild:!1,show:!0}}}],[{key:"schema",value:function(){for(var K=arguments.length,X=new Array(K),me=0;me<K;me++)X[me]=arguments[me];return e.default.schema.apply(e.default,[{label:"Data Map",key:"dataMap",type:"datamap",clearOnHide:!0,addAnother:"Add Another",disableAddingRemovingRows:!1,keyBeforeValue:!0,valueComponent:{type:"textfield",key:"value",label:"Value",input:!0},input:!0,validate:{maxLength:0,minLength:0}}].concat(X))}},{key:"builderInfo",get:function(){return{title:"Data Map",icon:"th-list",group:"data",documentation:"/userguide/form-building/data-components#data-map",showPreview:!1,weight:20,schema:U.schema()}}}]),U}(n.default)},80168:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0}]},79992:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"placeholder",ignore:!0},{key:"tabindex",ignore:!0},{type:"textfield",label:"Label for Key column",key:"keyLabel",tooltip:"Provide a label text for Key column (otherwise 'Key' will be used)",weight:404,input:!0},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:405,input:!0},{type:"checkbox",label:"Show key column before value",key:"keyBeforeValue",tooltip:"Check if you would like to show the Key before the Value column.",weight:406,input:!0},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:function(o){return!o.data.disableAddingRemovingRows}}]},53694:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function s(){for(var A=arguments.length,_=new Array(A),C=0;C<A;C++)_[C]=arguments[C];return e.default.baseEditForm.apply(e.default,[[{key:"display",components:a.default},{label:"Date",key:"date",weight:1,components:o.default},{label:"Time",key:"time",weight:2,components:l.default},{key:"data",components:n.default},{key:"validation",components:u.default}]].concat(_))},i(34338);var e=d(i(14231)),n=d(i(23366)),o=d(i(85876)),a=d(i(41382)),l=d(i(35054)),u=d(i(14443));function d(A){return A&&A.__esModule?A:{default:A}}},48429:(he,y,i)=>{"use strict";function e(F){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(P){return typeof P}:function(P){return P&&"function"==typeof Symbol&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P})(F)}i(32349),i(81919),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(69358),i(38077),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(64043),i(57267),i(65007),i(30024),i(60228),i(63945),i(49693),i(47522),i(22462),i(28436),i(34338),i(5399),i(41517),i(88052);var n=u(i(6990)),o=u(i(16676)),a=u(i(14255)),l=u(i(85943));function u(F){return F&&F.__esModule?F:{default:F}}function d(F,P){var O=Object.keys(F);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(F);P&&(U=U.filter(function(V){return Object.getOwnPropertyDescriptor(F,V).enumerable})),O.push.apply(O,U)}return O}function s(F){for(var P=1;P<arguments.length;P++){var O=null!=arguments[P]?arguments[P]:{};P%2?d(Object(O),!0).forEach(function(U){A(F,U,O[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(O)):d(Object(O)).forEach(function(U){Object.defineProperty(F,U,Object.getOwnPropertyDescriptor(O,U))})}return F}function A(F,P,O){return(P=x(P))in F?Object.defineProperty(F,P,{value:O,enumerable:!0,configurable:!0,writable:!0}):F[P]=O,F}function C(F,P){for(var O=0;O<P.length;O++){var U=P[O];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(F,x(U.key),U)}}function x(F){var P=function f(F,P){if("object"!==e(F)||null===F)return F;var O=F[Symbol.toPrimitive];if(void 0!==O){var U=O.call(F,P||"default");if("object"!==e(U))return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===P?String:Number)(F)}(F,"string");return"symbol"===e(P)?P:String(P)}function w(F,P){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(U,V){return U.__proto__=V,U})(F,P)}function b(){return b=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(P,O,U){var V=function I(F,P){for(;!Object.prototype.hasOwnProperty.call(F,P)&&null!==(F=L(F)););return F}(P,O);if(V){var K=Object.getOwnPropertyDescriptor(V,O);return K.get?K.get.call(arguments.length<3?P:U):K.value}},b.apply(this,arguments)}function L(F){return(L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(O){return O.__proto__||Object.getPrototypeOf(O)})(F)}y.default=function(F){!function k(F,P){if("function"!=typeof P&&null!==P)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(P&&P.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),Object.defineProperty(F,"prototype",{writable:!1}),P&&w(F,P)}(O,F);var P=function g(F){var P=function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var V,U=L(F);if(P){var K=L(this).constructor;V=Reflect.construct(U,arguments,K)}else V=U.apply(this,arguments);return function M(F,P){if(P&&("object"===e(P)||"function"==typeof P))return P;if(void 0!==P)throw new TypeError("Derived constructors may only return object or undefined");return function p(F){if(void 0===F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}(F)}(this,V)}}(O);function O(U,V,K){var X;!function _(F,P){if(!(F instanceof P))throw new TypeError("Cannot call a class as a function")}(this,O);var me=(X=P.call(this,U,V,K)).component.timezone||X.options.timezone,J=!n.default.get(X.component,"timePicker.showMeridian",!0);X.component.enableDate?X.component.enableDate&&!/[yMd]/.test(X.component.format)&&X.builderMode&&(X.component.format="yyyy-MM-dd ".concat(X.component.format)):X.component.format=X.component.format.replace(/yyyy-MM-dd /g,""),X.component.format=X.component.enableTime?X.component.enableTime&&!/[mhH]/.test(X.component.format)&&X.builderMode?"".concat(X.component.format," hh:mm a"):J?X.component.format.replace(/hh:mm a$/g,"HH:mm"):X.component.format.replace(/HH:mm$/g,"hh:mm a"):X.component.format.replace(/ hh:mm a$/g,"");var Q=X.component.customOptions||{};if("string"==typeof Q)try{Q=JSON.parse(Q)}catch(re){console.warn(re.message),Q={}}return X.component.widget=s({type:"calendar",timezone:me,displayInTimezone:n.default.get(X.component,"displayInTimezone","viewer"),locale:X.options.language,useLocaleSettings:n.default.get(X.component,"useLocaleSettings",!1),allowInput:n.default.get(X.component,"allowInput",!0),mode:"single",enableTime:n.default.get(X.component,"enableTime",!0),noCalendar:!n.default.get(X.component,"enableDate",!0),format:X.component.format,hourIncrement:n.default.get(X.component,"timePicker.hourStep",1),minuteIncrement:n.default.get(X.component,"timePicker.minuteStep",5),time_24hr:J,readOnly:X.options.readOnly,minDate:n.default.get(X.component,"datePicker.minDate"),disabledDates:n.default.get(X.component,"datePicker.disable"),disableWeekends:n.default.get(X.component,"datePicker.disableWeekends"),disableWeekdays:n.default.get(X.component,"datePicker.disableWeekdays"),disableFunction:n.default.get(X.component,"datePicker.disableFunction"),maxDate:n.default.get(X.component,"datePicker.maxDate")},Q),X.validators.push("date"),X}return function R(F,P,O){P&&C(F.prototype,P),O&&C(F,O),Object.defineProperty(F,"prototype",{writable:!1})}(O,[{key:"defaultSchema",get:function(){return O.schema()}},{key:"defaultValue",get:function(){var V=b(L(O.prototype),"defaultValue",this);return!V&&this.component.defaultDate&&(V=(V=a.default.getDateSetting(this.component.defaultDate))?V.toISOString():""),V}},{key:"emptyValue",get:function(){return""}},{key:"momentFormat",get:function(){return a.default.convertFormatToMoment(this.component.format)}},{key:"isEmpty",value:function(){var V=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return!(!V||"Invalid Date"!==V.toString())||b(L(O.prototype),"isEmpty",this).call(this,V)}},{key:"formatValue",value:function(V){var K=o.default.utc(V).toISOString();return"Invalid date"===K?V:K}},{key:"isEqual",value:function(V){var K=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.dataValue;return this.isEmpty(V)&&this.isEmpty(K)||o.default.utc(V).format(this.momentFormat)===o.default.utc(K).format(this.momentFormat)}},{key:"createWrapper",value:function(){return!1}},{key:"checkValidity",value:function(V,K,X){return this.refs.input&&this.refs.input.forEach(function(me){me.widget&&me.widget.enteredDate&&(K=!0)}),b(L(O.prototype),"checkValidity",this).call(this,V,K,X)}},{key:"getValueAsString",value:function(V){var K=a.default.convertFormatToMoment(this.component.format);K+=K.match(/z$/)?"":" z";var X=this.timezone;return V&&!this.attached&&X?n.default.trim(a.default.momentDate(V,K,X).format(K)):V&&n.default.trim((0,o.default)(V).format(K))||""}}],[{key:"schema",value:function(){for(var V=arguments.length,K=new Array(V),X=0;X<V;X++)K[X]=arguments[X];return l.default.schema.apply(l.default,[{type:"datetime",label:"Date / Time",key:"dateTime",format:"yyyy-MM-dd hh:mm a",useLocaleSettings:!1,allowInput:!0,enableDate:!0,enableTime:!0,defaultValue:"",defaultDate:"",displayInTimezone:"viewer",timezone:"",datepickerMode:"day",datePicker:{showWeeks:!0,startingDay:0,initDate:"",minMode:"day",maxMode:"year",yearRows:4,yearColumns:5,minDate:null,maxDate:null},timePicker:{hourStep:1,minuteStep:1,showMeridian:!0,readonlyInput:!1,mousewheel:!0,arrowkeys:!0},customOptions:{}}].concat(K))}},{key:"builderInfo",get:function(){return{title:"Date / Time",group:"advanced",icon:"calendar",documentation:"/userguide/form-building/advanced-components#date-and-time",weight:40,schema:O.schema()}}},{key:"serverConditionSettings",get:function(){return s(s({},b(L(O),"serverConditionSettings",this)),{},{operators:["isDateEqual","isNotDateEqual","isEmpty","isNotEmpty","dateLessThan","dateGreaterThan","dateLessThanOrEqual","dateGreaterThanOrEqual"],valueComponent:function(K){return s(s({},K),{},{type:"datetime"})}})}}]),O}(l.default)},23366:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{type:"textfield",input:!0,key:"defaultDate",label:"Default Date",placeholder:"moment()",tooltip:"You can use Moment.js functions to set the default value to a specific date. For example: \n \n moment().subtract(10, 'days')",weight:6},{type:"textarea",as:"json",editor:"ace",weight:28,input:!0,key:"customOptions",label:"Flatpickr options",tooltip:"A raw JSON object to use as options for the Date / Time component (Flatpickr).",defaultValue:{}}]},85876:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(22851));function o(l){return l&&l.__esModule?l:{default:l}}var a=[{type:"checkbox",input:!0,key:"enableDate",label:"Enable Date Input",weight:0,tooltip:"Enables date input for this field."},{type:"tags",input:!0,key:"datePicker.disable",label:"Disable specific dates or dates by range",placeholder:"(yyyy-MM-dd) or (yyyy-MM-dd - yyyy-MM-dd)",tooltip:"Add dates that you want to blacklist. For example: \n \n 2025-02-21",validate:{custom:"if (_.isEmpty(input)) {\n  return true;\n}\nconst dates = _.isArray(input) ?\ninput : input.split(component.delimeter);\nconst isValid = _.every(dates, (data) => \n  !!data.match(/\\d{4}-\\d{2}-\\d{2}/g));\nvalid = isValid || 'Invalid date';"},weight:21},{type:"panel",title:"Custom Disabled Dates",collapsible:!0,collapsed:!0,style:{"margin-bottom":"10px"},key:"panel-disable-function",customConditional:function(){return!e.default.noeval||e.default.protectedEval},components:[o(i(35720)).default.logicVariablesTable("<tr><th>date</th><td>The date object.</td></tr>"),{type:"textarea",input:!0,editor:"ace",key:"datePicker.disableFunction",label:"Disabling dates by a function",description:'For more information check out the <a href="https://flatpickr.js.org/examples/#disabling-dates" target="_blank" rel="noopener noreferrer">Docs</a>',weight:22},{type:"htmlelement",tag:"div",content:"<h4>Example</h4><pre>// Disable all weekends<br>date.getDay() === 0 || date.getDay() === 6</pre>\n          "}]},{type:"checkbox",input:!0,key:"datePicker.disableWeekends",label:"Disable weekends",tooltip:"Check to disable weekends",weight:23},{type:"checkbox",input:!0,key:"datePicker.disableWeekdays",label:"Disable weekdays",tooltip:"Check to disable weekdays",weight:23}];y.default=a},41382:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{type:"select",input:!0,key:"displayInTimezone",label:"Display in Timezone",tooltip:"This will display the captured date time in the select timezone.",weight:30,defaultValue:"viewer",dataSrc:"values",data:{values:[{label:"of Viewer",value:"viewer"},{label:"of Submission",value:"submission"},{label:"of Location",value:"location"},{label:"UTC",value:"utc"}]}},{type:"select",input:!0,key:"timezone",label:"Select Timezone",tooltip:"Select the timezone you wish to display this Date",weight:31,lazyLoad:!0,defaultValue:"",valueProperty:"name",dataSrc:"url",data:{url:"{{options.cdnUrl}}/timezones.json"},template:"<span>{{ item.label }}</span>",conditional:{json:{"===":[{var:"data.displayInTimezone"},"location"]}}},{type:"checkbox",input:!0,key:"useLocaleSettings",label:"Use Locale Settings",tooltip:"Use locale settings to display date and time.",weight:51},{type:"checkbox",input:!0,key:"allowInput",label:"Allow Manual Input",tooltip:"Check this if you would like to allow the user to manually enter in the date.",weight:51},{type:"textfield",input:!0,key:"format",label:"Format",placeholder:"Format",description:'Use formats provided by <a href="https://github.com/angular-ui/bootstrap/tree/master/src/dateparser/docs#uibdateparsers-format-codes" target="_blank" rel="noopener noreferrer">DateParser Codes</a>',tooltip:"The date format for displaying the datetime value.",weight:52},{type:"editgrid",input:!0,key:"shortcutButtons",label:"Shortcut Buttons",description:"You can specify few buttons which will be shown above the calendar. Use Label to specify the name of the button and onClick to specify which date/time will be set when user clicks the button. E.g, date = new Date()",templates:{header:'<div class="row">\n  <div class="col-sm-3">Label</div>\n  <div class="col-sm-6">onClick</div>\n</div>',row:'<div class="row">\n      <div class="col-sm-3">\n        {{ flattenedComponents.label.getView(row.label) }}\n      </div>\n      <div class="col-sm-6">\n        {{ flattenedComponents.onClick.getView(row.onClick) }}\n      </div>\n      {% if (!instance.disabled) { %}\n        <div class="col-sm-3">\n          <div class="btn-group pull-right">\n            <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass("edit") }}"></i></button>\n            {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n              <button class="btn btn-danger btn-sm removeRow"><i class="{{ iconClass("trash") }}"></i></button>\n            {% } %}\n          </div>\n        </div>\n      {% } %}\n    </div>'},components:[{label:"Label",key:"label",type:"textfield",input:!0,validate:{required:!0}},{label:"onClick",key:"onClick",type:"textarea",editor:"ace",input:!0,validate:{required:!0}}],defaultValue:[]}]},35054:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{type:"checkbox",input:!0,key:"enableTime",label:"Enable Time Input",tooltip:"Enables time input for this field.",weight:0},{type:"number",input:!0,key:"timePicker.hourStep",label:"Hour Step Size",tooltip:"The number of hours to increment/decrement in the time picker.",weight:10},{type:"number",input:!0,key:"timePicker.minuteStep",label:"Minute Step Size",tooltip:"The number of minutes to increment/decrement in the time picker.",weight:20},{type:"checkbox",input:!0,key:"timePicker.showMeridian",label:"12 Hour Time (AM/PM)",tooltip:"Display time in 12 hour time with AM/PM.",weight:30}]},14443:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(97195),y.default=[{type:"checkbox",input:!0,key:"enableMinDateInput",label:"Use Input to add moment.js for minDate",persistent:!1,weight:10,tooltip:"Enables to use input for moment functions instead of calendar."},{type:"datetime",input:!0,key:"datePicker.minDate",label:"Use calendar to set minDate",skipMerge:!0,weight:10,tooltip:"Enables to use calendar to set date.",customConditional:function(o){var a=o.data,l=o.component;return!(l.datePicker&&l.datePicker.minDate&&-1!==l.datePicker.minDate.indexOf("moment")||a.enableMinDateInput)}},{type:"textfield",input:!0,enableTime:!1,key:"datePicker.minDate",skipMerge:!0,label:"Minimum Date",weight:10,tooltip:"The minimum date that can be picked. You can also use Moment.js functions. For example: \n \n moment().subtract(10, 'days')",customConditional:function(o){var a=o.data,l=o.component;return!(!l.datePicker||!l.datePicker.minDate||-1===l.datePicker.minDate.indexOf("moment"))||a.enableMinDateInput}},{type:"checkbox",input:!0,key:"enableMaxDateInput",label:"Use Input to add moment.js for maxDate",persistent:!1,weight:20,tooltip:"Enables to use input for moment functions instead of calendar."},{type:"datetime",input:!0,key:"datePicker.maxDate",skipMerge:!0,label:"Use calendar to set maxDate",weight:20,tooltip:"Enables to use calendar to set date.",customConditional:function(o){var a=o.data,l=o.component;return!(l.datePicker&&l.datePicker.maxDate&&-1!==l.datePicker.maxDate.indexOf("moment")||a.enableMaxDateInput)}},{type:"textfield",input:!0,enableTime:!1,key:"datePicker.maxDate",skipMerge:!0,label:"Maximum Date",tooltip:"The maximum date that can be picked. You can also use Moment.js functions. For example: \n \n moment().add(10, 'days')",weight:20,customConditional:function(o){var a=o.data,l=o.component;return!(!l.datePicker||!l.datePicker.maxDate||-1===l.datePicker.maxDate.indexOf("moment"))||a.enableMaxDateInput}}]},73329:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function A(){for(var _=arguments.length,C=new Array(_),R=0;R<_;R++)C[R]=arguments[R];return e.default.baseEditForm.apply(e.default,[[{key:"display",components:o.default},{key:"data",components:n.default},{key:"validation",components:a.default},{key:"day",label:"Day",weight:3,components:l.default},{key:"month",label:"Month",weight:3,components:u.default},{key:"year",label:"Year",weight:3,components:d.default}]].concat(C))},i(34338);var e=s(i(14231)),n=s(i(233)),o=s(i(57411)),a=s(i(86672)),l=s(i(15555)),u=s(i(40766)),d=s(i(92195));function s(_){return _&&_.__esModule?_:{default:_}}},26487:(he,y,i)=>{"use strict";function e(J){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Q){return typeof Q}:function(Q){return Q&&"function"==typeof Symbol&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q})(J)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(45247),i(63975),i(84254),i(752),i(21694),i(76265),i(89730),i(34284),i(77049),i(69358),i(38077),i(99474),i(35082),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(65007),i(34338),i(30024),i(60228),i(63945),i(278),i(49693),i(47522),i(32320),i(64043),i(6203),i(50886),i(8472),i(5399),i(41517),i(88052);var n=u(i(6990)),o=u(i(16676)),a=u(i(84984)),l=i(12866);function u(J){return J&&J.__esModule?J:{default:J}}function d(J,Q){var re=Object.keys(J);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(J);Q&&(de=de.filter(function(te){return Object.getOwnPropertyDescriptor(J,te).enumerable})),re.push.apply(re,de)}return re}function s(J){for(var Q=1;Q<arguments.length;Q++){var re=null!=arguments[Q]?arguments[Q]:{};Q%2?d(Object(re),!0).forEach(function(de){E(J,de,re[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(J,Object.getOwnPropertyDescriptors(re)):d(Object(re)).forEach(function(de){Object.defineProperty(J,de,Object.getOwnPropertyDescriptor(re,de))})}return J}function A(J,Q){return function f(J){if(Array.isArray(J))return J}(J)||function x(J,Q){var re=null==J?null:typeof Symbol<"u"&&J[Symbol.iterator]||J["@@iterator"];if(null!=re){var de,te,j,H,z=[],q=!0,se=!1;try{if(j=(re=re.call(J)).next,0===Q){if(Object(re)!==re)return;q=!1}else for(;!(q=(de=j.call(re)).done)&&(z.push(de.value),z.length!==Q);q=!0);}catch(ne){se=!0,te=ne}finally{try{if(!q&&null!=re.return&&(H=re.return(),Object(H)!==H))return}finally{if(se)throw te}}return z}}(J,Q)||function C(J,Q){if(J){if("string"==typeof J)return R(J,Q);var re=Object.prototype.toString.call(J).slice(8,-1);if("Object"===re&&J.constructor&&(re=J.constructor.name),"Map"===re||"Set"===re)return Array.from(J);if("Arguments"===re||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(re))return R(J,Q)}}(J,Q)||function _(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(J,Q){(null==Q||Q>J.length)&&(Q=J.length);for(var re=0,de=new Array(Q);re<Q;re++)de[re]=J[re];return de}function w(J,Q){for(var re=0;re<Q.length;re++){var de=Q[re];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(J,b(de.key),de)}}function M(J,Q,re,de){return(M=typeof Reflect<"u"&&Reflect.set?Reflect.set:function(j,H,z,q){var ne,se=D(j,H);if(se){if((ne=Object.getOwnPropertyDescriptor(se,H)).set)return ne.set.call(q,z),!0;if(!ne.writable)return!1}if(ne=Object.getOwnPropertyDescriptor(q,H)){if(!ne.writable)return!1;ne.value=z,Object.defineProperty(q,H,ne)}else E(q,H,z);return!0})(J,Q,re,de)}function E(J,Q,re){return(Q=b(Q))in J?Object.defineProperty(J,Q,{value:re,enumerable:!0,configurable:!0,writable:!0}):J[Q]=re,J}function b(J){var Q=function I(J,Q){if("object"!==e(J)||null===J)return J;var re=J[Symbol.toPrimitive];if(void 0!==re){var de=re.call(J,Q||"default");if("object"!==e(de))return de;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Q?String:Number)(J)}(J,"string");return"symbol"===e(Q)?Q:String(Q)}function L(){return L=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(Q,re,de){var te=D(Q,re);if(te){var j=Object.getOwnPropertyDescriptor(te,re);return j.get?j.get.call(arguments.length<3?Q:de):j.value}},L.apply(this,arguments)}function D(J,Q){for(;!Object.prototype.hasOwnProperty.call(J,Q)&&null!==(J=X(J)););return J}function P(J,Q){return(P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(de,te){return de.__proto__=te,de})(J,Q)}function X(J){return(X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(re){return re.__proto__||Object.getPrototypeOf(re)})(J)}y.default=function(J){!function F(J,Q){if("function"!=typeof Q&&null!==Q)throw new TypeError("Super expression must either be null or a function");J.prototype=Object.create(Q&&Q.prototype,{constructor:{value:J,writable:!0,configurable:!0}}),Object.defineProperty(J,"prototype",{writable:!1}),Q&&P(J,Q)}(re,J);var Q=function O(J){var Q=function K(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var te,de=X(J);if(Q){var j=X(this).constructor;te=Reflect.construct(de,arguments,j)}else te=de.apply(this,arguments);return function U(J,Q){if(Q&&("object"===e(Q)||"function"==typeof Q))return Q;if(void 0!==Q)throw new TypeError("Derived constructors may only return object or undefined");return function V(J){if(void 0===J)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return J}(J)}(this,te)}}(re);function re(de,te,j){return function k(J,Q){if(!(J instanceof Q))throw new TypeError("Cannot call a class as a function")}(this,re),de.maxDate&&(de.maxDate=(0,o.default)(de.maxDate,"YYYY-MM-DD").toISOString()),de.minDate&&(de.minDate=(0,o.default)(de.minDate,"YYYY-MM-DD").toISOString()),Q.call(this,de,te,j)}return function g(J,Q,re){Q&&w(J.prototype,Q),re&&w(J,re),Object.defineProperty(J,"prototype",{writable:!1})}(re,[{key:"emptyValue",get:function(){return"00/00/0000"}},{key:"valueMask",get:function(){return/^\d{2}\/\d{2}\/\d{4}$/}},{key:"dayRequired",get:function(){return this.showDay&&n.default.get(this.component,"fields.day.required",!1)}},{key:"showDay",get:function(){return!n.default.get(this.component,"fields.day.hide",!1)}},{key:"monthRequired",get:function(){return this.showMonth&&n.default.get(this.component,"fields.month.required",!1)}},{key:"showMonth",get:function(){return!n.default.get(this.component,"fields.month.hide",!1)}},{key:"yearRequired",get:function(){return this.showYear&&n.default.get(this.component,"fields.year.required",!1)}},{key:"showYear",get:function(){return!n.default.get(this.component,"fields.year.hide",!1)}},{key:"defaultSchema",get:function(){return re.schema()}},{key:"shouldDisabled",get:function(){return L(X(re.prototype),"shouldDisabled",this)||this.parentDisabled}},{key:"inputInfo",get:function(){var te=L(X(re.prototype),"elementInfo",this).call(this);return te.type="input",te.attr.type="hidden",te.changeEvent="input",te}},{key:"inputDefinition",value:function(te){var j,H;return"day"===te&&(j=1,H=31),"month"===te&&(j=1,H=12),"year"===te&&(j=n.default.get(this.component,"fields.year.minYear",1900)||1900,H=n.default.get(this.component,"fields.year.maxYear",2030)||1900),{type:"input",ref:te,attr:{id:"".concat(this.component.key,"-").concat(te),class:"form-control ".concat(this.transform("class","formio-day-component-".concat(te))),type:"select"===this.component.fields[te].type?"select":"number",placeholder:this.component.fields[te].placeholder,step:1,min:j,max:H}}}},{key:"selectDefinition",value:function(te){return{multiple:!1,ref:te,widget:"html5",attr:{id:"".concat(this.component.key,"-").concat(te),class:"form-control",name:te,lang:this.options.language}}}},{key:"days",get:function(){if(this._days)return this._days;this._days=[{value:"",label:n.default.get(this.component,"fields.day.placeholder","")}];for(var te=1;te<=31;te++)this._days.push({value:te,label:te.toString()});return this._days}},{key:"months",get:function(){return this._months||(this._months=[{value:"",label:n.default.get(this.component,"fields.month.placeholder")||(this.hideInputLabels?this.t("Month"):"")},{value:1,label:"January"},{value:2,label:"February"},{value:3,label:"March"},{value:4,label:"April"},{value:5,label:"May"},{value:6,label:"June"},{value:7,label:"July"},{value:8,label:"August"},{value:9,label:"September"},{value:10,label:"October"},{value:11,label:"November"},{value:12,label:"December"}]),this._months}},{key:"years",get:function(){if(this._years)return this._years;this._years=[{value:"",label:n.default.get(this.component,"fields.year.placeholder","")}];for(var te=n.default.get(this.component,"fields.year.minYear",1900)||1900,j=n.default.get(this.component,"fields.year.maxYear",2030)||2030,H=te;H<=j;H++)this._years.push({value:H,label:H.toString()});return this._years}},{key:"setErrorClasses",value:function(te,j,H){L(X(re.prototype),"setErrorClasses",this).call(this,te,j,H),L(X(re.prototype),"setErrorClasses",this).call(this,[this.refs.day,this.refs.month,this.refs.year],j,H)}},{key:"removeInputError",value:function(te){L(X(re.prototype),"removeInputError",this).call(this,[this.refs.day,this.refs.month,this.refs.year]),L(X(re.prototype),"removeInputError",this).call(this,te)}},{key:"init",value:function(){L(X(re.prototype),"init",this).call(this),this.validators=this.validators.concat(["day","maxDate","minDate","minYear","maxYear"]);var te=this.component.fields.year.minYear;this.component.maxYear=this.component.fields.year.maxYear,this.component.minYear=te;var H=(0,l.getLocaleDateFormatInfo)(this.options.language);this.dayFirst=this.component.useLocaleSettings?H.dayFirst:this.component.dayFirst}},{key:"render",value:function(){return this.isHtmlRenderMode()?L(X(re.prototype),"render",this).call(this,this.renderTemplate("input")):L(X(re.prototype),"render",this).call(this,this.renderTemplate("day",{dayFirst:this.dayFirst,showDay:this.showDay,showMonth:this.showMonth,showYear:this.showYear,day:this.renderField("day"),month:this.renderField("month"),year:this.renderField("year")}))}},{key:"renderField",value:function(te){var j=this;return"select"===this.component.fields[te].type?this.renderTemplate("select",{input:this.selectDefinition(te),selectOptions:this["".concat(te,"s")].reduce(function(H,z){return H+j.renderTemplate("selectOption",{option:z,selected:!1,attrs:{}})},"")}):this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:this.inputDefinition(te)})}},{key:"attach",value:function(te){var j=this;this.loadRefs(te,{day:"single",month:"single",year:"single",input:"multiple"});var H=L(X(re.prototype),"attach",this).call(this,te);return this.shouldDisabled?(this.setDisabled(this.refs.day,!0),this.setDisabled(this.refs.month,!0),this.setDisabled(this.refs.year,!0),this.refs.input&&this.refs.input.forEach(function(z){return j.setDisabled(z,!0)})):(this.addEventListener(this.refs.day,"input",function(){return j.updateValue(null,{modified:!0})}),this.addEventListener(this.refs.month,"input",function(){var z=j.refs.year?parseInt(new Date(j.refs.year.value,j.refs.month.value,0).getDate(),10):"",q=j.getFieldValue("day");!j.component.fields.day.hide&&z&&(j.refs.day.max=z),z&&q>z&&(j.refs.day.value=j.refs.day.max),j.updateValue(null,{modified:!0})}),this.addEventListener(this.refs.year,"input",function(){return j.updateValue(null,{modified:!0})}),this.addEventListener(this.refs.input,this.info.changeEvent,function(){return j.updateValue(null,{modified:!0})})),this.setValue(this.dataValue),this.disabled=this.shouldDisabled,H}},{key:"validateRequired",value:function(te,j){var H=this.parts;return!(this.dayRequired&&!H.day||this.monthRequired&&!H.month||this.yearRequired&&!H.year||(0,l.boolValue)(te)&&this.isEmpty(j))}},{key:"disabled",set:function(te){(function p(J,Q,re,de,te){if(!M(J,Q,re,de||J)&&te)throw new Error("failed to set property")})(X(re.prototype),"disabled",te,this,!0),this.refs.year&&this.refs.month&&this.refs.day&&(te?(this.refs.year.setAttribute("disabled","disabled"),this.refs.month.setAttribute("disabled","disabled"),this.refs.day.setAttribute("disabled","disabled")):(this.refs.year.removeAttribute("disabled"),this.refs.month.removeAttribute("disabled"),this.refs.day.removeAttribute("disabled")))}},{key:"normalizeValue",value:function(te){if(!te||this.valueMask.test(te))return te;var j=[],H=te.split("/"),q=A(this.component.dayFirst?[0,1,2]:[1,0,2],3),se=q[0],ne=q[1],_e=q[2],ge=this.component.defaultValue?this.component.defaultValue.split("/"):"",Ce=function(De,fe){return j.push(De?H.shift():fe)};return this.dayFirst&&Ce(this.showDay,ge?ge[se]:"00"),Ce(this.showMonth,ge?ge[ne]:"00"),this.dayFirst||Ce(this.showDay,ge?ge[se]:"00"),Ce(this.showYear,ge?ge[_e]:"0000"),j.join("/")}},{key:"setValueAt",value:function(te,j){if(!j||"Invalid date"===j)return null;var z,H=j.split("/");this.component.dayFirst&&(z=H.shift());var q=H.shift();this.component.dayFirst||(z=H.shift());var se=H.shift();this.refs.day&&this.showDay&&(this.refs.day.value="00"===z?"":parseInt(z,10)),this.refs.month&&this.showMonth&&(this.refs.month.value="00"===q?"":parseInt(q,10)),this.refs.year&&this.showYear&&(this.refs.year.value="0000"===se?"":parseInt(se,10))}},{key:"getFieldValue",value:function(te){var j=this.dataValue?this.dataValue.split("/"):[],H=0;switch(te){case"month":H=j[this.dayFirst?1:0];break;case"day":H=j[this.dayFirst?0:1];break;case"year":H=j[2]}return H=parseInt(H,10),!n.default.isNaN(H)&&n.default.isNumber(H)?H:0}},{key:"parts",get:function(){return{day:this.getFieldValue("day"),month:this.getFieldValue("month"),year:this.getFieldValue("year")}}},{key:"format",get:function(){var te="";return this.component.dayFirst&&this.showDay&&(te+="D/"),this.showMonth&&(te+="M/"),!this.component.dayFirst&&this.showDay&&(te+="D/"),this.showYear?te+="YYYY":te.length?te.substring(0,te.length-1):te}},{key:"getDate",value:function(te){var H,z,q,j=[],ne=A(this.component.dayFirst?[0,1,2]:[1,0,2],3),_e=ne[0],ge=ne[1],Ce=ne[2],Te=te||this.component.defaultValue;return Te&&(j=Te.split("/").map(function(fe){return parseInt(fe,10)})),this.showDay&&this.refs.day&&(H=parseInt(this.refs.day.value,10)),(void 0===H||n.default.isNaN(H))&&(H=j[_e]&&!n.default.isNaN(j[_e])?j[_e]:0),this.showMonth&&this.refs.month&&(z=parseInt(this.refs.month.value,10)),(void 0===z||n.default.isNaN(z))&&(z=j[ge]&&!n.default.isNaN(j[ge])?j[ge]:0),this.showYear&&this.refs.year&&(q=parseInt(this.refs.year.value)),(void 0===q||n.default.isNaN(q))&&(q=j[Ce]&&!n.default.isNaN(j[Ce])?j[Ce]:0),H||z||q?(H=this.showDay?H.toString().padStart(2,0):"",z=this.showMonth?z.toString().padStart(2,0):"",q=this.showYear?q.toString().padStart(4,0):"",this.component.dayFirst?"".concat(H).concat(this.showDay&&this.showMonth||this.showDay&&this.showYear?"/":"").concat(z).concat(this.showMonth&&this.showYear?"/":"").concat(q):"".concat(z).concat(this.showDay&&this.showMonth||this.showMonth&&this.showYear?"/":"").concat(H).concat(this.showDay&&this.showYear?"/":"").concat(q)):null}},{key:"date",get:function(){return this.getDate()}},{key:"validationValue",get:function(){return this.dataValue}},{key:"getValue",value:function(){return L(X(re.prototype),"getValue",this).call(this)||this.dataValue}},{key:"getValueAt",value:function(te){var j=this.date||this.emptyValue;return j?(this.refs.input[te].value=j,this.refs.input[te].value):(this.refs.input[te].value="",null)}},{key:"getValueAsString",value:function(te){return this.getDate(te)||""}},{key:"focus",value:function(){var te;if(this.dayFirst&&this.showDay||!this.dayFirst&&!this.showMonth&&this.showDay)null===(te=this.refs.day)||void 0===te||te.focus();else if(this.dayFirst&&!this.showDay&&this.showMonth||!this.dayFirst&&this.showMonth){var j;null===(j=this.refs.month)||void 0===j||j.focus()}else if(!this.showDay&&!this.showDay&&this.showYear){var H;null===(H=this.refs.year)||void 0===H||H.focus()}}},{key:"isPartialDay",value:function(te){if(!te)return!1;var H=A(this.component.dayFirst?[0,1,2]:[1,0,2],3),z=H[0],q=H[1],se=H[2],ne=te.split("/");return"00"===ne[z]||"00"===ne[q]||"0000"===ne[se]}},{key:"getValidationFormat",value:function(){return this.dayFirst?"DD-MM-YYYY":"MM-DD-YYYY"}}],[{key:"schema",value:function(){for(var te=arguments.length,j=new Array(te),H=0;H<te;H++)j[H]=arguments[H];return a.default.schema.apply(a.default,[{type:"day",label:"Day",key:"day",fields:{day:{type:"number",placeholder:"",required:!1},month:{type:"select",placeholder:"",required:!1},year:{type:"number",placeholder:"",required:!1}},dayFirst:!1}].concat(j))}},{key:"builderInfo",get:function(){return{title:"Day",group:"advanced",icon:"calendar",documentation:"/userguide/form-building/advanced-components#day",weight:50,schema:re.schema()}}},{key:"serverConditionSettings",get:function(){return s(s({},L(X(re),"serverConditionSettings",this)),{},{operators:["isDateEqual","isNotDateEqual","isEmpty","isNotEmpty","dateLessThan","dateGreaterThan","dateLessThanOrEqual","dateGreaterThanOrEqual"]})}}]),re}(a.default)},233:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"multiple",ignore:!0}]},15555:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{wieght:200,type:"select",datasrc:"values",key:"fields.day.type",label:"Type",data:{values:[{label:"Number",value:"number"},{label:"Select",value:"select"}]}},{weight:210,type:"textfield",input:!0,key:"fields.day.placeholder",label:"Placeholder",placeholder:"Day Placeholder",tooltip:"The placeholder text that will appear when Day field is empty."},{weight:215,type:"checkbox",label:"Hidden",tooltip:"Hide the Day part of the component.",key:"fields.day.hide",input:!0},{weight:214,type:"checkbox",label:"Day First",tooltip:"Display the Day field before the Month field.",key:"dayFirst",input:!0}]},57411:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"labelPosition",ignore:!0},{weight:15,type:"checkbox",label:"Hide Input Labels",tooltip:"Hide the labels of component inputs. This allows you to show the labels in the form builder, but not when it is rendered.",key:"hideInputLabels",input:!0},{type:"select",input:!0,key:"inputsLabelPosition",label:"Inputs Label Position",tooltip:"Position for the labels for inputs for this field.",weight:40,defaultValue:"top",dataSrc:"values",data:{values:[{label:"Top",value:"top"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Bottom",value:"bottom"}]}},{key:"placeholder",ignore:!0},{weight:213,type:"checkbox",label:"Use Locale Settings",tooltip:"Use locale settings to display day.",key:"useLocaleSettings",input:!0}]},40766:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{wieght:200,type:"select",datasrc:"values",key:"fields.month.type",label:"Type of input",data:{values:[{label:"Number",value:"number"},{label:"Select",value:"select"}]}},{weight:210,type:"textfield",input:!0,key:"fields.month.placeholder",label:"Placeholder",placeholder:"Month Placeholder",tooltip:"The placeholder text that will appear when Month field is empty."},{weight:215,type:"checkbox",label:"Hidden",tooltip:"Hide the Month part of the component.",key:"fields.month.hide",input:!0}]},86672:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"validate.required",ignore:!0},{key:"validate.unique",ignore:!0},{weight:0,type:"checkbox",label:"Require Day",tooltip:"A required field must be filled in before the form can be submitted.",key:"fields.day.required",input:!0},{weight:10,type:"checkbox",label:"Require Month",tooltip:"A required field must be filled in before the form can be submitted.",key:"fields.month.required",input:!0},{weight:20,type:"checkbox",label:"Require Year",tooltip:"A required field must be filled in before the form can be submitted.",key:"fields.year.required",input:!0},{weight:40,type:"textfield",label:"Minimum Day",placeholder:"yyyy-MM-dd",tooltip:"A minimum date that can be set. You can also use Moment.js functions. For example: \n \n moment().subtract(10, 'days')",key:"minDate",input:!0},{weight:30,type:"textfield",label:"Maximum Day",placeholder:"yyyy-MM-dd",tooltip:"A maximum day that can be set. You can also use Moment.js functions. For example: \n \n moment().add(10, 'days')",key:"maxDate",input:!0}]},92195:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{wieght:200,type:"select",datasrc:"values",key:"fields.year.type",label:"Type of input",data:{values:[{label:"Number",value:"number"},{label:"Select",value:"select"}]}},{weight:203,type:"number",input:!0,key:"fields.year.minYear",label:"Minimum Year",placeholder:"1900",tooltip:"The minimum year that can be entered."},{weight:204,type:"number",input:!0,key:"fields.year.maxYear",label:"Maximum Year",placeholder:"2030",tooltip:"The maximum year that can be entered."},{weight:210,type:"textfield",input:!0,key:"fields.year.placeholder",label:"Placeholder",placeholder:"Year Placeholder",tooltip:"The placeholder text that will appear when Year field is empty."},{weight:215,type:"checkbox",label:"Hidden",tooltip:"Hide the Year part of the component.",key:"fields.year.hide",input:!0}]},34757:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function d(){for(var s=arguments.length,A=new Array(s),_=0;_<s;_++)A[_]=arguments[_];return e.default.baseEditForm.apply(e.default,[[{label:"Templates",key:"templates",weight:5,components:a.default},{key:"display",components:o.default},{key:"data",components:n.default},{key:"validation",components:l.default}]].concat(A))},i(34338);var e=u(i(14231)),n=u(i(4597)),o=u(i(95381)),a=u(i(61373)),l=u(i(99788));function u(s){return s&&s.__esModule?s:{default:s}}},26570:(he,y,i)=>{"use strict";i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(40739),i(45247),i(30050),i(51013),i(84254),i(752),i(76265),i(99474),i(35082),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(49693),i(60228),i(47522),i(63975),i(50886),i(98742),i(76801),i(43843),i(38077),i(41517),i(77049),i(21694),i(69358),i(60429),i(52003),i(64043),i(63945),i(57267),i(278),i(89730),i(62506),i(34284),i(30024),i(5399),i(88052);var e=s(i(6990)),n=s(i(73808)),o=s(i(26023)),a=s(i(1681)),l=s(i(54712)),u=i(12866),d=s(i(83284));function s(te){return te&&te.__esModule?te:{default:te}}function A(te){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(j){return typeof j}:function(j){return j&&"function"==typeof Symbol&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j})(te)}function _(te,j){var H=Object.keys(te);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(te);j&&(z=z.filter(function(q){return Object.getOwnPropertyDescriptor(te,q).enumerable})),H.push.apply(H,z)}return H}function C(te){for(var j=1;j<arguments.length;j++){var H=null!=arguments[j]?arguments[j]:{};j%2?_(Object(H),!0).forEach(function(z){V(te,z,H[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(te,Object.getOwnPropertyDescriptors(H)):_(Object(H)).forEach(function(z){Object.defineProperty(te,z,Object.getOwnPropertyDescriptor(H,z))})}return te}function R(te){return function w(te){if(Array.isArray(te))return g(te)}(te)||function k(te){if(typeof Symbol<"u"&&null!=te[Symbol.iterator]||null!=te["@@iterator"])return Array.from(te)}(te)||function f(te,j){if(te){if("string"==typeof te)return g(te,j);var H=Object.prototype.toString.call(te).slice(8,-1);if("Object"===H&&te.constructor&&(H=te.constructor.name),"Map"===H||"Set"===H)return Array.from(te);if("Arguments"===H||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return g(te,j)}}(te)||function x(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(te,j){(null==j||j>te.length)&&(j=te.length);for(var H=0,z=new Array(j);H<j;H++)z[H]=te[H];return z}function p(te,j){for(var H=0;H<j.length;H++){var z=j[H];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(te,K(z.key),z)}}function I(te,j){return(I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(z,q){return z.__proto__=q,z})(te,j)}function O(te,j,H,z){return(O=typeof Reflect<"u"&&Reflect.set?Reflect.set:function(se,ne,_e,ge){var Te,Ce=J(se,ne);if(Ce){if((Te=Object.getOwnPropertyDescriptor(Ce,ne)).set)return Te.set.call(ge,_e),!0;if(!Te.writable)return!1}if(Te=Object.getOwnPropertyDescriptor(ge,ne)){if(!Te.writable)return!1;Te.value=_e,Object.defineProperty(ge,ne,Te)}else V(ge,ne,_e);return!0})(te,j,H,z)}function V(te,j,H){return(j=K(j))in te?Object.defineProperty(te,j,{value:H,enumerable:!0,configurable:!0,writable:!0}):te[j]=H,te}function K(te){var j=function X(te,j){if("object"!==A(te)||null===te)return te;var H=te[Symbol.toPrimitive];if(void 0!==H){var z=H.call(te,j||"default");if("object"!==A(z))return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===j?String:Number)(te)}(te,"string");return"symbol"===A(j)?j:String(j)}function me(){return me=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(j,H,z){var q=J(j,H);if(q){var se=Object.getOwnPropertyDescriptor(q,H);return se.get?se.get.call(arguments.length<3?j:z):se.value}},me.apply(this,arguments)}function J(te,j){for(;!Object.prototype.hasOwnProperty.call(te,j)&&null!==(te=Q(te)););return te}function Q(te){return(Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(H){return H.__proto__||Object.getPrototypeOf(H)})(te)}var re={New:"new",Editing:"editing",Saved:"saved",Viewing:"viewing",Removed:"removed",Draft:"draft"},de=function(te){!function b(te,j){if("function"!=typeof j&&null!==j)throw new TypeError("Super expression must either be null or a function");te.prototype=Object.create(j&&j.prototype,{constructor:{value:te,writable:!0,configurable:!0}}),Object.defineProperty(te,"prototype",{writable:!1}),j&&I(te,j)}(H,te);var j=function L(te){var j=function P(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var q,z=Q(te);if(j){var se=Q(this).constructor;q=Reflect.construct(z,arguments,se)}else q=z.apply(this,arguments);return function D(te,j){if(j&&("object"===A(j)||"function"==typeof j))return j;if(void 0!==j)throw new TypeError("Derived constructors may only return object or undefined");return function F(te){if(void 0===te)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return te}(te)}(this,q)}}(H);function H(){var z;!function M(te,j){if(!(te instanceof j))throw new TypeError("Cannot call a class as a function")}(this,H);for(var q=arguments.length,se=new Array(q),ne=0;ne<q;ne++)se[ne]=arguments[ne];return(z=j.call.apply(j,[this].concat(se))).type="editgrid",z}return function E(te,j,H){j&&p(te.prototype,j),H&&p(te,H),Object.defineProperty(te,"prototype",{writable:!1})}(H,[{key:"defaultDialogTemplate",get:function(){return'\n    <h3 ref="dialogHeader">'.concat(this.t("Do you want to clear data?"),'</h3>\n    <div style="display:flex; justify-content: flex-end;">\n      <button ref="dialogCancelButton" class="btn btn-secondary" aria-label="').concat(this.t("Cancel"),'">').concat(this.t("Cancel"),'</button>\n      <button ref="dialogYesButton" class="btn btn-danger" aria-label="').concat(this.t("Yes, delete it"),'">').concat(this.t("Yes, delete it"),"</button>\n    </div>\n  ")}},{key:"defaultRowTemplate",get:function(){return this.displayAsTable?H.defaultTableRowTemplate:H.defaultRowTemplate}},{key:"defaultHeaderTemplate",get:function(){return this.displayAsTable?H.defaultTableHeaderTemplate:H.defaultHeaderTemplate}},{key:"rowTemplate",get:function(){return u.Evaluator.noeval?this.displayAsTable?d.default.tableRow:d.default.row:e.default.get(this.component,this.displayAsTable?"templates.tableRow":"templates.row",this.defaultRowTemplate)}},{key:"headerTemplate",get:function(){return u.Evaluator.noeval?this.displayAsTable?d.default.tableHeader:d.default.header:e.default.get(this.component,this.displayAsTable?"templates.tableHeader":"templates.header",this.defaultHeaderTemplate)}},{key:"hasScopedChildren",get:function(){return!this.inlineEditMode}},{key:"defaultSchema",get:function(){return H.schema()}},{key:"emptyValue",get:function(){return[]}},{key:"editgridKey",get:function(){return"editgrid-".concat(this.key)}},{key:"rowRef",get:function(){return"".concat(this.editgridKey,"-row")}},{key:"rowElements",get:function(){return this.refs[this.rowRef]}},{key:"rowRefs",get:function(){return this.refs["editgrid-".concat(this.component.key,"-row")]}},{key:"addRowRef",get:function(){return"".concat(this.editgridKey,"-addRow")}},{key:"addRowElements",get:function(){return this.refs[this.addRowRef]}},{key:"saveRowRef",get:function(){return"".concat(this.editgridKey,"-saveRow")}},{key:"saveRowElements",get:function(){return this.refs[this.saveRowRef]}},{key:"cancelRowRef",get:function(){return"".concat(this.editgridKey,"-cancelRow")}},{key:"cancelRowElements",get:function(){return this.refs[this.cancelRowRef]}},{key:"inlineEditMode",get:function(){return this.component.inlineEdit}},{key:"saveEditMode",get:function(){return!this.inlineEditMode}},{key:"minLength",get:function(){return this.builderMode?0:e.default.get(this.component,"validate.minLength",0)}},{key:"data",get:function(){return this._data},set:function(q){this._data=q;var se=this.dataValue;(this.editRows||[]).forEach(function(ne,_e){!se[_e]&&ne.state!==re.New&&(se[_e]={});var ge=se[_e]||{};ne.data=ge,ne.components.forEach(function(Ce){Ce.data=ge})})}},{key:"dataValue",get:function(){return me(Q(H.prototype),"dataValue",this)||[]},set:function(q){!function U(te,j,H,z,q){if(!O(te,j,H,z||te)&&q)throw new Error("failed to set property")}(Q(H.prototype),"dataValue",q,this,!0)}},{key:"displayAsTable",get:function(){return this.component.displayAsTable}},{key:"iteratableRows",get:function(){return this.editRows}},{key:"defaultValue",get:function(){var q=me(Q(H.prototype),"defaultValue",this),se=Array.isArray(q)?q:[];return e.default.times(this.minLength-se.length,function(){return se.push({})}),se}},{key:"hasRemoveButtons",value:function(){return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&this.dataValue.length>e.default.get(this.component,"validate.minLength",0)}},{key:"init",value:function(){var q=this;if(this.builderMode)return this.editRows=[],me(Q(H.prototype),"init",this).call(this);this.components=this.components||[];var se=this.dataValue;!se.length&&this.component.openWhenEmpty?(this.editRows=[],this.createRow({},0)):this.editRows=se.map(function(ge,Ce){return{components:q.lazyLoad?[]:q.createRowComponents(ge,Ce),data:ge,state:re.Saved,backup:null,error:null,rowIndex:Ce}}),this.prevHasAddButton=this.hasAddButton(),this.checkData(),this.setVariableTypeComponents(),this.variableTypeComponentsIndexes.length&&e.default.each(this.editRows||[],function(ge,Ce){return q.checkRowVariableTypeComponents(ge,Ce)})}},{key:"checkRowVariableTypeComponents",value:function(q,se){var ne=q.components;e.default.some(this.variableTypeComponentsIndexes,function(_e){var ge=ne[_e];return ge.type!==ge.component.type})&&(q.components=this.createRowComponents(q.data,se,!0))}},{key:"setVariableTypeComponents",value:function(){var q=this;this.variableTypeComponentsIndexes=[],e.default.each(this.component.components,function(se,ne){se.typeChangeEnabled&&q.variableTypeComponentsIndexes.push(ne)})}},{key:"isOpen",value:function(q){return[re.New,re.Editing,re.Viewing].includes(q.state)}},{key:"isComponentVisibleInSomeRow",value:function(q){var se=this,ne=this.editRows,_e=[re.Saved,re.Editing,re.Draft],ge=ne.filter(function(Oe){return e.default.includes(_e,Oe.state)});this.visibleInHeader=this.visibleInHeader||[];var Ce=function(Le,Gt){Gt||e.default.remove(se.visibleInHeader,function(Ut){return Ut===Le.key}),Gt&&!e.default.includes(se.visibleInHeader,Le.key)&&se.visibleInHeader.push(Le.key)};if(e.default.isEmpty(ne)){var De,Te=this.createRowComponents({},0);(0,u.eachComponent)(Te,function(Oe){Oe.component.key===q.key&&(De=Oe),Oe.checkConditions()});var fe=!De||De.visible;return R(this.components).forEach(function(Oe){return se.removeComponent(Oe,se.components)}),Ce(q,fe),fe}var xe=e.default.get(this.component,"openWhenEmpty")&&1===ne.length&&ne[0].state===re.New;return e.default.isEmpty(ne)||!e.default.isEmpty(ge)||xe?e.default.some(xe?ne:ge,function(Oe,Le){var Ut;if(Oe.state===re.Editing)Ut=e.default.includes(se.visibleInHeader,q.key);else{var $n=se.flattenComponents(Le)[q.key];Ce(q,Ut=!$n||$n.visible)}return Ut}):e.default.includes(this.visibleInHeader,q.key)}},{key:"render",value:function(q){var se=this;if(this.builderMode)return me(Q(H.prototype),"render",this).call(this);var ne=this.dataValue,_e=this.headerTemplate,ge=this.t.bind(this),Ce=this.displayAsTable?"editgridTable":"editgrid";return me(Q(H.prototype),"render",this).call(this,q||this.renderTemplate(Ce,{ref:{row:this.rowRef,addRow:this.addRowRef,saveRow:this.saveRowRef,cancelRow:this.cancelRowRef},header:this.renderString(_e,{displayValue:function(De){return se.displayComponentValue(De,!0)},components:this.component.components,value:ne,t:ge}),footer:this.renderString(e.default.get(this.component,"templates.footer"),{components:this.component.components,value:ne,t:ge}),rows:this.editRows.map(this.renderRow.bind(this)),openRows:this.editRows.map(function(Te){return se.isOpen(Te)}),errors:this.editRows.map(function(Te){return Te.error}),hasAddButton:this.hasAddButton(),hasRemoveButtons:this.hasRemoveButtons()}))}},{key:"renderComponents",value:function(q){var se=(q=q||this.getComponents()).map(function(_e){return _e.render()});return this.renderTemplate(this.displayAsTable&&this.prevHasAddButton?"tableComponents":"components",{children:se,components:q})}},{key:"attach",value:function(q){var se,ne=this;if(this.builderMode)return me(Q(H.prototype),"attach",this).call(this,q);this.loadRefs(q,(V(se={},this.addRowRef,"multiple"),V(se,this.saveRowRef,"multiple"),V(se,this.cancelRowRef,"multiple"),V(se,this.rowRef,"multiple"),se)),this.addRowElements.forEach(function(Ce){ne.addEventListener(Ce,"click",function(){return ne.addRow()})});var _e=0;this.rowElements.forEach(function(Ce,Te){var De=ne.editRows[Te];null!=De&&De.isRowSelected&&Ce.classList.add("selected"),ne.isOpen(De)?(ne.attachComponents(Ce,De.components),ne.addEventListener(ne.saveRowElements[_e],"click",function(){return ne.saveRow(Te,!0)}),ne.addEventListener(ne.cancelRowElements[_e],"click",function(){return ne.cancelRow(Te)}),_e++):[{className:"removeRow",event:"click",action:function(){return ne.removeRow(Te,!0)}},{className:"editRow",event:"click",action:function(){ne.editRow(Te).then(function(){var xe;ne.component.rowDrafts&&(ne.validateRow(De,!1),ne.component.modal&&De.errors&&De.errors.length&&(null===(xe=ne.root)||void 0===xe?void 0:xe.submitted)&&(ne.alert.showErrors(De.errors,!1),De.alerts=!0))})}},{className:"row",event:"click",action:function(){Ce.classList.toggle("selected");var xe="editGridSelectRow";Array.from(Ce.classList).includes("selected")?De.isRowSelected=!0:(delete De.isRowSelected,xe="editGridUnSelectRow"),ne.emit(xe,{component:ne.component,data:ne.dataValue[Te]})}}].forEach(function(fe){var Oe=fe.event,Le=fe.action,Gt=Ce.getElementsByClassName(fe.className);Array.prototype.forEach.call(Gt,function(Ut){ne.options.readOnly&&e.default.intersection(Ut.classList,["editRow","removeRow"]).length?Ut.style.display="none":ne.addEventListener(Ut,Oe,Le)})})}),_e?this.addClass(this.refs.component,"formio-component-".concat(this.component.type,"-row-open")):this.removeClass(this.refs.component,"formio-component-".concat(this.component.type,"-row-open"));var ge=me(Q(H.prototype),"attach",this).call(this,q);return this.loadRefs(q,{messageContainer:"single-scope"}),ge}},{key:"flattenRowDataValue",value:function(q){var se=this,ne={};return Object.keys(q).forEach(function(_e){e.default.isObject(q[_e])&&!e.default.isNil(q[_e])?Object.assign(ne,se.flattenRowDataValue(q[_e])):ne[_e]=q[_e]}),ne}},{key:"isComponentVisibleInRow",value:function(q,se){var ne=se[q.key];return!ne||ne.visible}},{key:"displayComponentValue",value:function(q,se){return!!(q.hasOwnProperty("tableView")&&!q.tableView||!se?e.default.includes(this.visibleInHeader,q.key):this.isComponentVisibleInSomeRow(q))}},{key:"renderRow",value:function(q,se){var ne=this,_e=this.dataValue;if(this.isOpen(q))return this.renderComponents(q.components);var ge=this.flattenComponents(se);return this.renderString(this.rowTemplate,{row:_e[se]||{},data:this.data,rowIndex:se,components:this.component.components,flattenedComponents:ge,displayValue:function(De){return ne.displayComponentValue(De)},isVisibleInRow:function(De){return ne.isComponentVisibleInRow(De,ge)},getView:function(De,fe){var xe,Oe,Le=ge[De.key],Gt=Le?Le.getView(fe||Le.dataValue):"",Ut=new RegExp("<(.*?)>");return"string"!=typeof Gt||!Gt.length||null!==(xe=Le.component)&&void 0!==xe&&xe.template||!Ut.test(Gt)||"html"===(null===(Oe=Le.component)||void 0===Oe?void 0:Oe.inputFormat)?Gt:'<input type="text" value="'.concat(Gt.replace(/"/g,"&quot;"),'" readonly/>')},state:this.editRows[se].state,t:this.t.bind(this)})}},{key:"eachComponent",value:function(q,se){e.default.each(this.getComponents(se),function(ne,_e){if(!1===q(ne,_e))return!1})}},{key:"restoreComponentsContext",value:function(){var q=this;this.getComponents().forEach(function(se){var ne,ge=null===(ne=q.editRows[se.rowIndex])||void 0===ne?void 0:ne.data;se.data=q.dataValue[se.rowIndex]||ge})}},{key:"flattenComponents",value:function(q){var se={};return this.everyComponent(function(ne){se[ne.component.flattenAs||ne.key]=ne},q),se}},{key:"getComponents",value:function(q){return this.editRows=this.editRows||[],this.builderMode?me(Q(H.prototype),"getComponents",this).call(this):e.default.isNumber(q)?this.editRows[q].components||[]:this.editRows.reduce(function(se,ne){return se.concat(ne.components||[])},[])}},{key:"destroyComponents",value:function(q){var se=this;if(this.builderMode)return me(Q(H.prototype),"destroyComponents",this).call(this);this.getComponents(q).slice().forEach(function(_e){return se.removeComponent(_e,se.components)})}},{key:"createRow",value:function(q,se){var ne={components:this.createRowComponents(q,se),data:q,state:re.New,backup:null,error:null,rowIndex:se};return this.editRows.push(ne),this.inlineEditMode&&this.dataValue.push(q),ne}},{key:"addRow",value:function(){if(!this.options.readOnly){var se=this.editRows.length,ne=this.createRow({},se);return this.inlineEditMode&&this.triggerChange(),this.emit("editGridAddRow",{component:this.component,row:ne}),this.checkRow("checkData",null,{},ne.data,ne.components),this.component.modal?this.addRowModal(se):this.redraw(),ne}}},{key:"addRowModal",value:function(q){var se=this,ne=this.ce("div"),_e=this.editRows[q];_e.willBeSaved=!1;var ge=_e.components;ne.innerHTML=this.renderComponents(ge);var Ce=this.component.modal?this.createModal(ne,{},function(){return se.showDialog(q)}):void 0;return Ce.classList.add("editgrid-row-modal-".concat(this.id)),_e.dialog=Ce,this.alert&&(this.alert.clear(),this.alert=null),this.alert=new l.default(Ce.refs.dialogContents,this),this.addEventListener(Ce,"close",function(){_e.willBeSaved||(se.editRows[q]&&se.editRows[q].state!==re.New&&se.editRows[q].components.forEach(function(Te){Te.setPristine(!0)}),se.cancelRow(q)),se.alert&&(se.alert.clear(),se.alert=null),delete _e.confirmationDialog,delete _e.dialog}),Ce.refs.dialogContents.appendChild(this.ce("button",{class:"btn btn-primary",onClick:function(){se.component.rowDrafts||_e.components.forEach(function(De){return De.setPristine(!1)}),se.validateRow(_e,!0)||se.component.rowDrafts?(_e.willBeSaved=!0,Ce.close(),se.saveRow(q,!0)):(se.alert.showErrors(_e.errors,!1),_e.alerts=!0)}},this.component.saveRow||"Save")),this.attachComponents(ne,ge)}},{key:"showDialog",value:function(q){var se=this.editRows[q];if(e.default.isEqual(se.backup,se.data))return n.default.resolve();var ne=this.ce("div",{ref:"confirmationDialog"});ne.innerHTML=this.component.dialogTemplate||this.defaultDialogTemplate,ne.refs={},this.loadRefs.call(ne,ne,{dialogHeader:"single",dialogCancelButton:"single",dialogYesButton:"single"});var ge=this.createModal(ne);ge.classList.add("editgrid-row-modal-confirmation-".concat(this.id));var Te,Ce=function(xe){xe.preventDefault(),ge.close()},De=new n.default(function(fe,xe){Te={resolve:fe,reject:xe}});return this.addEventListener(ne.refs.dialogYesButton,"click",function(fe){Ce(fe),Te.resolve()}),this.addEventListener(ne.refs.dialogCancelButton,"click",function(fe){Ce(fe),Te.reject()}),se.confirmationDialog=ge,De}},{key:"editRow",value:function(q){var se=this.editRows[q];if(!se||se.state===re.Editing||se.state===re.New)return n.default.resolve();se.prevState=se.state,se.state=this.options.readOnly?re.Viewing:re.Editing,this.lazyLoad&&0===se.components.length&&(se.components=this.createRowComponents(se.data,q));var _e=(0,u.fastCloneDeep)(se.data);return this.inlineEditMode?se.backup=_e:(se.backup=(0,u.fastCloneDeep)(se.data),se.data=_e,this.restoreRowContext(se)),this.component.modal?this.addRowModal(q):this.redraw()}},{key:"clearErrors",value:function(q){var se=this.editRows[q];se&&Array.isArray(se.components)&&se.components.forEach(function(ne){ne.setPristine(!0),ne.setCustomValidity("")})}},{key:"cancelRow",value:function(q){if(!this.options.readOnly){var se=this.editRows[q];switch(se.state){case re.New:se.state=re.Removed,this.clearErrors(q),this.destroyComponents(q),this.inlineEditMode&&this.splice(q),this.editRows.splice(q,1),this.openWhenEmpty();break;case re.Editing:se.state=se.prevState,this.inlineEditMode&&(this.dataValue[q]=se.backup),se.data=se.backup,se.backup=null,this.restoreRowContext(se),this.clearErrors(q)}this.emit("editGridCancelRow",{instance:this,component:this.component,editRow:se}),this.checkValidity(null,!0),this.redraw(),this.component.rowDrafts&&this.checkValidity(this.data,!1)}}},{key:"saveRow",value:function(q,se){var ne=this,_e=this.editRows[q];if(!this.options.readOnly){this.component.rowDrafts||_e.components.forEach(function(xe){return xe.setPristine(!1)});var ge=this.validateRow(_e,!0);if(!this.component.rowDrafts&&!ge)return!1;if(this.saveEditMode){var Ce,Te,De=this.dataValue;switch(null!==(Ce=this.root)&&void 0!==Ce&&null!==(Te=Ce.focusedComponent)&&void 0!==Te&&Te.component.typeChangeEnabled&&(this.root.focusedComponent=null),_e.state){case re.New:var fe=De.length;De.push(_e.data),_e.components.forEach(function(xe){return xe.rowIndex=fe}),q!==fe&&(this.editRows.splice(q,1),this.editRows.splice(fe,0,_e));break;case re.Editing:De[q]=_e.data}}return _e.state=this.component.rowDrafts&&!ge?re.Draft:re.Saved,_e.backup=null,this.updateValue(),this.emit("editGridSaveRow",{component:this.component,row:_e.data,instance:this}),this.triggerChange({modified:se,noPristineChangeOnModified:se&&this.component.rowDrafts,isolateRow:!0}),this.component.rowDrafts&&_e.components.forEach(function(xe){return xe.setPristine(ne.pristine)}),this.checkValidity(null,!0),this.redraw(),_e.alerts&&(_e.alerts=!1),!0}}},{key:"beforeFocus",value:function(q){"beforeFocus"in this.parent&&this.parent.beforeFocus(this);var se=this.getRelativePath(q.path),ne=(0,u.getArrayFromComponentPath)(se),_e=ne[0],ge=ne[0];this.editRows.forEach(function(Ce,Te){Ce.rowIndex===_e&&(ge=Te)}),e.default.isNumber(ge)&&this.editRow(ge)}},{key:"updateComponentsRowIndex",value:function(q,se){q.forEach(function(ne,_e){ne.rowIndex=se,ne.row="".concat(se,"-").concat(_e)})}},{key:"updateRowsComponents",value:function(q){var se=this;this.editRows.slice(q).forEach(function(ne,_e){se.updateComponentsRowIndex(ne.components,q+_e)})}},{key:"baseRemoveRow",value:function(q){var se=this.editRows[q];return se.state=re.Removed,this.destroyComponents(q),se}},{key:"removeRow",value:function(q,se){this.options.readOnly||(this.clearErrors(q),this.baseRemoveRow(q),this.splice(q),this.emit("editGridDeleteRow",{index:q}),this.editRows.splice(q,1),this.openWhenEmpty(),this.updateRowsComponents(q),this.updateValue(),this.triggerChange({modified:se,noPristineChangeOnModified:se&&this.component.rowDrafts,isolateRow:!0}),this.checkValidity(null,!0),this.checkData(),this.redraw())}},{key:"createRowComponents",value:function(q,se,ne){var _e=this,ge=e.default.get(this.editRows,"[".concat(se,"].components"),null);return this.component.components.map(function(Ce,Te){if(ne&&ge&&_e.variableTypeComponentsIndexes.length){var De,fe=ge[Te];if(!e.default.includes(_e.variableTypeComponentsIndexes,Te)||fe?.type===(null==fe||null===(De=fe.component)||void 0===De?void 0:De.type))return fe;Ce=fe.component}var Oe=e.default.clone(Ce),Le=e.default.clone(_e.options);Le.name+="[".concat(se,"]"),Le.row="".concat(se,"-").concat(Te),Le.onChange=function(){var Ut,An,$n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},xn=arguments.length>1?arguments[1]:void 0,mt=arguments.length>2?arguments[2]:void 0;if(null!==(Ut=xn.instance.root)&&void 0!==Ut&&Ut.id&&(null===(An=_e.root)||void 0===An?void 0:An.id)!==xn.instance.root.id?xn.instance.root.triggerChange($n,xn,mt):_e.component.modal||_e.triggerRootChange($n,xn,mt),!_e.inlineEditMode){var ut=_e.editRows[se];if(null!=ut&&ut.alerts)_e.checkData(null,C(C({},$n),{},{changed:xn,rowIndex:se}),_e.data);else if(ut){var Wt=_e.component.rowDrafts&&!_e.shouldValidateDraft(ut);_e.checkRow("checkData",null,C(C({},$n),{},{changed:xn,silentCheck:Wt}),ut.data,ut.components,Wt)}_e.variableTypeComponentsIndexes.length&&(_e.checkRowVariableTypeComponents(ut,se),_e.redraw())}};var Gt=_e.createComponent(e.default.assign({},Oe,{row:Le.row}),Le,q,null,ne&&ge?ge[Te]:null);return Gt.rowIndex=se,Gt.inEditGrid=!0,Gt})}},{key:"hasOpenRows",value:function(){var q=this;return this.editRows.some(function(se){return q.isOpen(se)})}},{key:"shouldValidateDraft",value:function(q){var se,ne;return q.state===re.Draft&&!this.pristine&&!(null!==(se=this.root)&&void 0!==se&&se.pristine)&&!this.hasOpenRows()||(null===(ne=this.root)||void 0===ne?void 0:ne.submitted)}},{key:"shouldValidateRow",value:function(q,se){return this.shouldValidateDraft(q)||q.state===re.Editing||q.alerts||se}},{key:"validateRow",value:function(q,se,ne){var ge,_e=this,Ce=!0,Te=R(this.errors);return this.shouldValidateRow(q,se)&&q.components.forEach(function(De){var fe=_e.component.rowDrafts&&!_e.shouldValidateDraft(q)||ne;Ce&=De.checkValidity(null,se,null,fe)}),this.component.validate&&this.component.validate.row&&("true"!==(Ce=this.evaluate(this.component.validate.row,{valid:Ce,row:q.data},"valid",!0)).toString()?(q.error=Ce,Ce=!1):q.error=null,null===Ce&&(Ce="Invalid row validation for ".concat(this.key))),q.errors=Ce?null:this.errors.filter(function(De){return!Te.includes(De)}),(!this.component.rowDrafts||null!==(ge=this.root)&&void 0!==ge&&ge.submitted)&&this.showRowErrorAlerts(q,!!Ce),!!Ce}},{key:"showRowErrorAlerts",value:function(q,se){var ne;q.alerts&&this.alert&&(null!==(ne=q.errors)&&void 0!==ne&&ne.length&&!se?(this.alert.showErrors(q.errors,!1),q.alerts=!0):this.alert.clear())}},{key:"checkValidity",value:function(q,se,ne,_e){return this.checkCondition(ne=ne||this.data,q=q||this.rootValue)?this.checkComponentValidity(q,se,ne,{silentCheck:_e}):(this.setCustomValidity(""),!0)}},{key:"checkComponentValidity",value:function(q,se,ne){var ge,Ce,_e=this,Te=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},De=Te.silentCheck,fe=this.errors.length,xe=me(Q(H.prototype),"checkComponentValidity",this).call(this,q,se,ne,Te);if(!xe&&!this.alert&&!this.hasOpenRows())return!1;if(this.shouldSkipValidation(q,se,ne))return!0;var Gt,Oe=!0,Le=!1;if(this.editRows.forEach(function(An,$n){var xn=_e.validateRow(An,se,De);if(Oe&=xn,_e.rowRefs){var mt=_e.rowRefs[$n];if(mt){var ut=mt.querySelector(".editgrid-row-error");xn||!ut||_e.component.rowDrafts&&!_e.shouldValidateDraft(An)?ut&&(ut.textContent=""):(_e.addClass(ut,"help-block"),ut.textContent=_e.t(_e.errorMessage("invalidRowError")))}}Le|=se&&_e.isOpen(An)}),!Oe)return!De&&(!this.component.rowDrafts||null!==(Gt=this.root)&&void 0!==Gt&&Gt.submitted)&&(this.setCustomValidity(this.t(this.errorMessage("invalidRowsError")),se),this.removeClass(this.element,"has-error")),!1;if(Le&&this.saveEditMode)return this.setCustomValidity(this.t(this.errorMessage("unsavedRowsError")),se),!1;var Ut=this.invalid||this.invalidMessage(q,se);return(null===(ge=this.errors)||void 0===ge?void 0:ge.length)!==fe&&null!==(Ce=this.root)&&void 0!==Ce&&Ce.submitted&&!Ut?(this.setCustomValidity(Ut,se),this.root.showErrors()):this.setCustomValidity(Ut,se),xe}},{key:"changeState",value:function(q,se){q||se.resetValue&&this.component.modalEdit?this.rebuild():this.redraw()}},{key:"setValue",value:function(q){var se=this,ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(q||(q=this.defaultValue),!Array.isArray(q)){if("object"!==A(q))return!1;q=[q]}var _e=this.hasChanged(q,this.dataValue);ne.noValidate=!_e,this.parent&&this.parent.checkComponentConditions(),this.dataValue=q,this.dataValue.forEach(function(Ce,Te){var De=se.editRows[Te];De?(De.data=Ce,se.restoreRowContext(De,ne),De.state=re.Saved,De.backup=null,De.error=null):se.editRows[Te]={components:se.lazyLoad?[]:se.createRowComponents(Ce,Te),data:Ce,state:re.Saved,backup:null,error:null}});var ge=this.dataValue.length;return this.editRows[ge]&&this.editRows[ge].state===re.New&&(ge+=1),this.editRows.slice(ge).forEach(function(Ce,Te){return se.baseRemoveRow(ge+Te)}),this.editRows=this.editRows.slice(0,ge),this.openWhenEmpty(),this.updateOnChange(ne,_e),this.checkData(),this.changeState(_e,ne),_e}},{key:"openWhenEmpty",value:function(){this.editRows.length||this.dataValue.length||!this.component.openWhenEmpty||this.builderMode||this.createRow({},0)}},{key:"restoreRowContext",value:function(q){var se=this,ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};q.components.forEach(function(_e){_e.data=q.data,se.setNestedValue(_e,q.data,ne)})}},{key:"emptyRows",value:function(){var q=this;this.editRows.forEach(function(se,ne){return q.destroyComponents(ne)}),this.editRows=[]}},{key:"resetValue",value:function(){me(Q(H.prototype),"resetValue",this).call(this),this.emptyRows()}}],[{key:"schema",value:function(){for(var q=arguments.length,se=new Array(q),ne=0;ne<q;ne++)se[ne]=arguments[ne];return o.default.schema.apply(o.default,[{type:"editgrid",label:"Edit Grid",key:"editGrid",clearOnHide:!0,input:!0,tree:!0,removeRow:"Cancel",defaultOpen:!1,openWhenEmpty:!1,modal:!1,components:[],inlineEdit:!1,templates:{header:H.defaultHeaderTemplate,row:H.defaultRowTemplate,tableHeader:H.defaultTableHeaderTemplate,tableRow:H.defaultTableRowTemplate,footer:""}}].concat(se))}},{key:"builderInfo",get:function(){return{title:"Edit Grid",icon:"tasks",group:"data",documentation:"/userguide/form-building/data-components#edit-grid",showPreview:!1,weight:30,schema:H.schema()}}},{key:"defaultHeaderTemplate",get:function(){return'<div class="row">\n      {% util.eachComponent(components, function(component) { %}\n        {% if (displayValue(component)) { %}\n          <div class="col-sm-2">{{ t(component.label) }}</div>\n        {% } %}\n      {% }) %}\n    </div>'}},{key:"defaultTableHeaderTemplate",get:function(){return'\n      <tr>\n        {% util.eachComponent(components, function(component) { %}\n          {% if (!component.hasOwnProperty(\'tableView\') || component.tableView) { %}\n            <td class="editgrid-table-column">{{ component.label }}</td>\n          {% } %}\n        {% }) %}\n        {% if (!instance.options.readOnly && !instance.disabled) { %}\n          <td class="editgrid-table-column">Actions</td>\n        {% } %}\n      </tr>\n    '}},{key:"defaultRowTemplate",get:function(){return'<div class="row">\n      {% util.eachComponent(components, function(component) { %}\n        {% if (displayValue(component)) { %}\n          <div class="col-sm-2">\n            {{ isVisibleInRow(component) ? getView(component, row[component.key]) : \'\'}}\n          </div>\n        {% } %}\n      {% }) %}\n      {% if (!instance.options.readOnly && !instance.disabled) { %}\n        <div class="col-sm-2">\n          <div class="btn-group pull-right">\n            <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass(\'edit\') }}"></i></button>\n            {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n              <button class="btn btn-danger btn-sm removeRow"><i class="{{ iconClass(\'trash\') }}"></i></button>\n            {% } %}\n          </div>\n        </div>\n      {% } %}\n    </div>'}},{key:"defaultTableRowTemplate",get:function(){return'\n      {% util.eachComponent(components, function(component) { %}\n          {% if (!component.hasOwnProperty(\'tableView\') || component.tableView) { %}\n            <td class="editgrid-table-column">\n              {{ getView(component, row[component.key]) }}\n            </td>\n          {% } %}\n        {% }) %}\n        {% if (!instance.options.readOnly && !instance.disabled) { %}\n          <td class="editgrid-table-column">\n            <div class="btn-group">\n              <button class="btn btn-default btn-light btn-sm editRow" aria-label="{{ t(\'Edit row\') }}"><i class="{{ iconClass(\'edit\') }}"></i></button>\n              {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n              <button class="btn btn-danger btn-sm removeRow" aria-label="{{ t(\'Remove row\') }}"><i class="{{ iconClass(\'trash\') }}"></i></button>\n              {% } %}\n            </div>\n          </td>\n        {% } %}\n    '}}]),H}(o.default);y.default=de,de.prototype.hasChanged=a.default.prototype.hasChanged},4597:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{type:"checkbox",input:!0,weight:105,key:"inlineEdit",label:"Inline Editing",tooltip:"Check this if you would like your changes within 'edit' mode to be committed directly to the submission object as that row is being changed"},{key:"defaultValue",ignore:!0},{key:"multiple",ignore:!0}]},95381:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(22851));y.default=[{key:"placeholder",ignore:!0},{type:"checkbox",label:"Open First Row when Empty",key:"openWhenEmpty",tooltip:"Check this if you would like to open up the first row when the EditGrid is empty",weight:1e3,input:!0,conditional:{json:{"!==":[{var:"data.modal"},!0]}}},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:1001,input:!0,clearOnHide:!1,calculateValue:"value = data.disableAddingRemovingRows;"},{type:"checkbox",label:"Display EditGrid as Table",key:"displayAsTable",tooltip:"use Table Template",weight:1002,input:!1,customConditional:function(){return!e.default.noeval}},{weight:1010,type:"textarea",input:!0,key:"conditionalAddButton",label:"Conditional Add Button",placeholder:"show = ...",tooltip:"Specify condition when Add Button should be displayed.",editor:"ace",as:"javascript",wysiwyg:{minLines:3}}]},61373:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(22851));y.default=[{type:"textarea",label:"Header Template",key:"templates.header",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render the header of the Edit grid.",customConditional:function(l){return(!e.default.noeval||e.default.protectedEval)&&!l.data.displayAsTable}},{type:"textarea",label:"Table Header Template",key:"templates.tableHeader",rows:6,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render the header of the Edit grid.",customConditional:function(l){return(!e.default.noeval||e.default.protectedEval)&&l.data.displayAsTable}},{type:"textarea",label:"Row Template",key:"templates.row",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Three available variables. "row" is an object of one row\'s data, "components" is the array of components in the grid and "state" is current row\'s state (can be "draft" or "saved"). To add click events, add the classes "editRow" and "removeRow" to elements.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render each row of the Edit grid.",customConditional:function(l){return(!e.default.noeval||e.default.protectedEval)&&!l.data.displayAsTable}},{type:"textarea",label:"Table Row Template",key:"templates.tableRow",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Three available variables. "row" is an object of one row\'s data, "components" is the array of components in the grid and "state" is current row\'s state (can be "draft" or "saved"). To add click events, add the classes "editRow" and "removeRow" to elements.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render each row of the Edit grid.",customConditional:function(l){return(!e.default.noeval||e.default.protectedEval)&&l.data.displayAsTable}},{type:"textarea",label:"Footer Template",key:"templates.footer",rows:5,editor:"ace",as:"handlebars",input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render the footer of the Edit grid.",customConditional:function(){return!e.default.noeval||e.default.protectedEval}},{type:"textfield",input:!0,key:"rowClass",label:"Row CSS Class",placeholder:"Row CSS Class",tooltip:"CSS class to add to the edit row wrapper."},{type:"textfield",input:!0,key:"addAnother",label:"Add Another Text",placeholder:"Add Another",tooltip:"Set the text of the Add Another button."},{weight:70,type:"checkbox",label:"Display as Modal",tooltip:"Display a modal to add or edit entries in the table",key:"modal",input:!0},{type:"textfield",input:!0,key:"saveRow",label:"Save Row Text",placeholder:"Save",tooltip:"Set the text of the Save Row button."},{type:"textfield",input:!0,key:"removeRow",label:"Remove Row Text",placeholder:"Remove",tooltip:"Set the text of the remove Row button."}]},99788:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{ignore:!0,key:"unique"},{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"number",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"number",tooltip:"The maximum length requirement this field must meet.",input:!0},{type:"checkbox",input:!0,weight:105,key:"rowDrafts",label:"Enable Row Drafts",tooltip:"Allow save rows even if their data is invalid. Errors will occur when try to submit with invalid rows."}]},42485:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="row">\n  ',i.util.eachComponent(i.components,function(l){n+="\n    ",(!l.hasOwnProperty("tableView")||l.tableView)&&(n+='\n      <div class="col-sm-2">'+(null==(e=i.t(l.label))?"":e)+"</div>\n    "),n+="\n  "}),n+="\n</div>\n"}},83284:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(91307)),n=o(i(42485));function o(l){return l&&l.__esModule?l:{default:l}}y.default={row:e.default,header:n.default}},91307:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="row">\n  ',i.util.eachComponent(i.components,function(l){n+="\n    ",(!l.hasOwnProperty("tableView")||l.tableView)&&(n+='\n      <div class="col-sm-2">\n        '+(null==(e=i.getView(l,i.row[l.key]))?"":e)+"\n      </div>\n    "),n+="\n  "}),n+="\n  ",i.self.options.readOnly||(n+='\n    <div class="col-sm-2">\n      <div class="btn-group pull-right">\n        <button class="btn btn-default btn-light btn-sm editRow"><i class="'+(null==(e=i.iconClass("edit"))?"":e)+'"></i></button>\n        <button class="btn btn-danger btn-sm removeRow"><i class="'+(null==(e=i.iconClass("trash"))?"":e)+'"></i></button>\n      </div>\n    </div>\n  '),n+="\n</div>\n"}},24667:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function l(){for(var u=arguments.length,d=new Array(u),s=0;s<u;s++)d[s]=arguments[s];return e.default.apply(void 0,[[{key:"display",components:n.default},{key:"validation",components:o.default}]].concat(d))},i(34338);var e=a(i(33062)),n=a(i(93543)),o=a(i(18096));function a(u){return u&&u.__esModule?u:{default:u}}},84764:(he,y,i)=>{"use strict";function e(p){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(E){return typeof E}:function(E){return E&&"function"==typeof Symbol&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(p)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(63975),i(50886),i(34338),i(5399),i(41517),i(88052);var n=function o(p){return p&&p.__esModule?p:{default:p}}(i(96368));function l(p,E){for(var b=0;b<E.length;b++){var I=E[b];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(p,d(I.key),I)}}function d(p){var E=function s(p,E){if("object"!==e(p)||null===p)return p;var b=p[Symbol.toPrimitive];if(void 0!==b){var I=b.call(p,E||"default");if("object"!==e(I))return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===E?String:Number)(p)}(p,"string");return"symbol"===e(E)?E:String(E)}function A(){return A=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(E,b,I){var L=function _(p,E){for(;!Object.prototype.hasOwnProperty.call(p,E)&&null!==(p=g(p)););return p}(E,b);if(L){var D=Object.getOwnPropertyDescriptor(L,b);return D.get?D.get.call(arguments.length<3?E:I):D.value}},A.apply(this,arguments)}function R(p,E){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,L){return I.__proto__=L,I})(p,E)}function g(p){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)})(p)}y.default=function(p){!function C(p,E){if("function"!=typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(E&&E.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),Object.defineProperty(p,"prototype",{writable:!1}),E&&R(p,E)}(b,p);var E=function x(p){var E=function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var L,I=g(p);if(E){var D=g(this).constructor;L=Reflect.construct(I,arguments,D)}else L=I.apply(this,arguments);return function f(p,E){if(E&&("object"===e(E)||"function"==typeof E))return E;if(void 0!==E)throw new TypeError("Derived constructors may only return object or undefined");return function k(p){if(void 0===p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(p)}(this,L)}}(b);function b(){return function a(p,E){if(!(p instanceof E))throw new TypeError("Cannot call a class as a function")}(this,b),E.apply(this,arguments)}return function u(p,E,b){E&&l(p.prototype,E),b&&l(p,b),Object.defineProperty(p,"prototype",{writable:!1})}(b,[{key:"init",value:function(){A(g(b.prototype),"init",this).call(this),this.validators.push("email")}},{key:"defaultSchema",get:function(){return b.schema()}},{key:"inputInfo",get:function(){var L=A(g(b.prototype),"inputInfo",this);return L.attr.type=this.component.mask?"password":"email",L}},{key:"normalizeValue",value:function(L){var D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return L=A(g(b.prototype),"normalizeValue",this).call(this,L,D),this.options.server&&L&&(L=Array.isArray(L)?L.map(function(F){return F.toLowerCase()}):L.toLowerCase()),L}}],[{key:"schema",value:function(){for(var L=arguments.length,D=new Array(L),F=0;F<L;F++)D[F]=arguments[F];return n.default.schema.apply(n.default,[{type:"email",label:"Email",key:"email",inputType:"email",kickbox:{enabled:!1}}].concat(D))}},{key:"builderInfo",get:function(){return{title:"Email",group:"advanced",icon:"at",documentation:"/userguide/form-building/advanced-components#email",weight:10,schema:b.schema()}}}]),b}(n.default)},93543:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},18096:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0},{type:"panel",label:"Kickbox",title:"Kickbox",weight:102,key:"kickbox",components:[{type:"checkbox",label:"Enable",tooltip:"Enable Kickbox validation for this email field.",description:"Validate this email using the Kickbox email validation service.",key:"kickbox.enabled"}]}]},33211:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function a(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return e.default.apply(void 0,[[{key:"display",components:n.default}]].concat(u))},i(34338);var e=o(i(90700)),n=o(i(4684));function o(l){return l&&l.__esModule?l:{default:l}}},91940:(he,y,i)=>{"use strict";function e(p){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(E){return typeof E}:function(E){return E&&"function"==typeof Symbol&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(p)}i(60228),i(32349),i(81919),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(5399),i(41517),i(88052);var n=function o(p){return p&&p.__esModule?p:{default:p}}(i(60211));function l(p,E){for(var b=0;b<E.length;b++){var I=E[b];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(p,d(I.key),I)}}function d(p){var E=function s(p,E){if("object"!==e(p)||null===p)return p;var b=p[Symbol.toPrimitive];if(void 0!==b){var I=b.call(p,E||"default");if("object"!==e(I))return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===E?String:Number)(p)}(p,"string");return"symbol"===e(E)?E:String(E)}function _(p,E){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,L){return I.__proto__=L,I})(p,E)}function k(){return k=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(E,b,I){var L=function w(p,E){for(;!Object.prototype.hasOwnProperty.call(p,E)&&null!==(p=g(p)););return p}(E,b);if(L){var D=Object.getOwnPropertyDescriptor(L,b);return D.get?D.get.call(arguments.length<3?E:I):D.value}},k.apply(this,arguments)}function g(p){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)})(p)}y.default=function(p){!function A(p,E){if("function"!=typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(E&&E.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),Object.defineProperty(p,"prototype",{writable:!1}),E&&_(p,E)}(b,p);var E=function C(p){var E=function f(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var L,I=g(p);if(E){var D=g(this).constructor;L=Reflect.construct(I,arguments,D)}else L=I.apply(this,arguments);return function R(p,E){if(E&&("object"===e(E)||"function"==typeof E))return E;if(void 0!==E)throw new TypeError("Derived constructors may only return object or undefined");return function x(p){if(void 0===p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(p)}(this,L)}}(b);function b(){var I;!function a(p,E){if(!(p instanceof E))throw new TypeError("Cannot call a class as a function")}(this,b);for(var L=arguments.length,D=new Array(L),F=0;F<L;F++)D[F]=arguments[F];return(I=E.call.apply(E,[this].concat(D))).noField=!0,I}return function u(p,E,b){E&&l(p.prototype,E),b&&l(p,b),Object.defineProperty(p,"prototype",{writable:!1})}(b,[{key:"defaultSchema",get:function(){return b.schema()}},{key:"className",get:function(){return"".concat(this.transform("class","form-group")," ").concat(k(g(b.prototype),"className",this))}},{key:"templateName",get:function(){return"fieldset"}}],[{key:"schema",value:function(){for(var L=arguments.length,D=new Array(L),F=0;F<L;F++)D[F]=arguments[F];return n.default.schema.apply(n.default,[{label:"Field Set",key:"fieldSet",type:"fieldset",legend:"",components:[],input:!1,persistent:!1}].concat(D))}},{key:"builderInfo",get:function(){return{title:"Field Set",icon:"th-large",group:"layout",documentation:"/userguide/form-building/layout-components#field-set",showPreview:!1,weight:20,schema:b.schema()}}}]),b}(n.default)},4684:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0},{key:"label",hidden:!0,calculateValue:function(o){return o.data.legend}},{weight:1,type:"textfield",input:!0,key:"legend",label:"Legend",placeholder:"Legend",tooltip:"The legend for this Fieldset."}]},85626:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function d(){for(var s=arguments.length,A=new Array(s),_=0;_<s;_++)A[_]=arguments[_];return e.default.baseEditForm.apply(e.default,[[{key:"display",components:o.default},{key:"data",components:n.default},{label:"File",key:"file",weight:5,components:a.default},{key:"validation",components:l.default}]].concat(A))},i(34338);var e=u(i(14231)),n=u(i(79195)),o=u(i(87615)),a=u(i(44699)),l=u(i(9642));function u(s){return s&&s.__esModule?s:{default:s}}},34222:(he,y,i)=>{"use strict";function e(Q){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(re){return typeof re}:function(re){return re&&"function"==typeof Symbol&&re.constructor===Symbol&&re!==Symbol.prototype?"symbol":typeof re})(Q)}i(5399),i(41517),i(88052),i(30050),i(51013),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(69358),i(38077),i(99474),i(35082),i(84254),i(21694),i(76265),i(58373),i(66793),i(7629),i(77509),i(93374),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(40739),i(96869),i(752),i(99211),i(60228),i(28607),i(36664),i(55980),i(79943),i(96089),i(18539),i(48690),i(45385),i(85552),i(31803),i(91565),i(67987),i(49365),i(80677),i(18118),i(41165),i(71522),i(79976),i(4797),i(7300),i(93356),i(62533),i(99724),i(99901),i(6203),i(50886),i(63975),i(49693),i(47522),i(32320),i(34284),i(42227),i(30024),i(28436),i(76801),i(43843),i(62506),i(25728),i(34338),i(97389),i(64043),i(57267),i(268),i(52003),i(63945),i(61514),i(80939),i(278),i(89730),i(38320),i(73964),i(98742),i(39772),i(97195);var n=A(i(84984)),o=i(12866),a=A(i(38107)),l=A(i(6990)),u=A(i(73808)),d=A(i(66469)),s=A(i(93874));function A(Q){return Q&&Q.__esModule?Q:{default:Q}}function _(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
_=function(){return Q};var Q={},re=Object.prototype,de=re.hasOwnProperty,te=Object.defineProperty||function(sn,fn,yi){sn[fn]=yi.value},j="function"==typeof Symbol?Symbol:{},H=j.iterator||"@@iterator",z=j.asyncIterator||"@@asyncIterator",q=j.toStringTag||"@@toStringTag";function se(sn,fn,yi){return Object.defineProperty(sn,fn,{value:yi,enumerable:!0,configurable:!0,writable:!0}),sn[fn]}try{se({},"")}catch{se=function(yi,nn,Mi){return yi[nn]=Mi}}function ne(sn,fn,yi,nn){var mi=Object.create((fn&&fn.prototype instanceof Ce?fn:Ce).prototype),Eo=new ut(nn||[]);return te(mi,"_invoke",{value:An(sn,yi,Eo)}),mi}function _e(sn,fn,yi){try{return{type:"normal",arg:sn.call(fn,yi)}}catch(nn){return{type:"throw",arg:nn}}}Q.wrap=ne;var ge={};function Ce(){}function Te(){}function De(){}var fe={};se(fe,H,function(){return this});var xe=Object.getPrototypeOf,Oe=xe&&xe(xe(Wt([])));Oe&&Oe!==re&&de.call(Oe,H)&&(fe=Oe);var Le=De.prototype=Ce.prototype=Object.create(fe);function Gt(sn){["next","throw","return"].forEach(function(fn){se(sn,fn,function(yi){return this._invoke(fn,yi)})})}function Ut(sn,fn){function yi(Mi,mi,Eo,Ko){var xo=_e(sn[Mi],sn,mi);if("throw"!==xo.type){var Bn=xo.arg,Xt=Bn.value;return Xt&&"object"==e(Xt)&&de.call(Xt,"__await")?fn.resolve(Xt.__await).then(function(Ji){yi("next",Ji,Eo,Ko)},function(Ji){yi("throw",Ji,Eo,Ko)}):fn.resolve(Xt).then(function(Ji){Bn.value=Ji,Eo(Bn)},function(Ji){return yi("throw",Ji,Eo,Ko)})}Ko(xo.arg)}var nn;te(this,"_invoke",{value:function(mi,Eo){function Ko(){return new fn(function(xo,Bn){yi(mi,Eo,xo,Bn)})}return nn=nn?nn.then(Ko,Ko):Ko()}})}function An(sn,fn,yi){var nn="suspendedStart";return function(Mi,mi){if("executing"===nn)throw new Error("Generator is already running");if("completed"===nn){if("throw"===Mi)throw mi;return{value:void 0,done:!0}}for(yi.method=Mi,yi.arg=mi;;){var Eo=yi.delegate;if(Eo){var Ko=$n(Eo,yi);if(Ko){if(Ko===ge)continue;return Ko}}if("next"===yi.method)yi.sent=yi._sent=yi.arg;else if("throw"===yi.method){if("suspendedStart"===nn)throw nn="completed",yi.arg;yi.dispatchException(yi.arg)}else"return"===yi.method&&yi.abrupt("return",yi.arg);nn="executing";var xo=_e(sn,fn,yi);if("normal"===xo.type){if(nn=yi.done?"completed":"suspendedYield",xo.arg===ge)continue;return{value:xo.arg,done:yi.done}}"throw"===xo.type&&(nn="completed",yi.method="throw",yi.arg=xo.arg)}}}function $n(sn,fn){var yi=fn.method,nn=sn.iterator[yi];if(void 0===nn)return fn.delegate=null,"throw"===yi&&sn.iterator.return&&(fn.method="return",fn.arg=void 0,$n(sn,fn),"throw"===fn.method)||"return"!==yi&&(fn.method="throw",fn.arg=new TypeError("The iterator does not provide a '"+yi+"' method")),ge;var Mi=_e(nn,sn.iterator,fn.arg);if("throw"===Mi.type)return fn.method="throw",fn.arg=Mi.arg,fn.delegate=null,ge;var mi=Mi.arg;return mi?mi.done?(fn[sn.resultName]=mi.value,fn.next=sn.nextLoc,"return"!==fn.method&&(fn.method="next",fn.arg=void 0),fn.delegate=null,ge):mi:(fn.method="throw",fn.arg=new TypeError("iterator result is not an object"),fn.delegate=null,ge)}function xn(sn){var fn={tryLoc:sn[0]};1 in sn&&(fn.catchLoc=sn[1]),2 in sn&&(fn.finallyLoc=sn[2],fn.afterLoc=sn[3]),this.tryEntries.push(fn)}function mt(sn){var fn=sn.completion||{};fn.type="normal",delete fn.arg,sn.completion=fn}function ut(sn){this.tryEntries=[{tryLoc:"root"}],sn.forEach(xn,this),this.reset(!0)}function Wt(sn){if(sn){var fn=sn[H];if(fn)return fn.call(sn);if("function"==typeof sn.next)return sn;if(!isNaN(sn.length)){var yi=-1,nn=function Mi(){for(;++yi<sn.length;)if(de.call(sn,yi))return Mi.value=sn[yi],Mi.done=!1,Mi;return Mi.value=void 0,Mi.done=!0,Mi};return nn.next=nn}}return{next:dn}}function dn(){return{value:void 0,done:!0}}return Te.prototype=De,te(Le,"constructor",{value:De,configurable:!0}),te(De,"constructor",{value:Te,configurable:!0}),Te.displayName=se(De,q,"GeneratorFunction"),Q.isGeneratorFunction=function(sn){var fn="function"==typeof sn&&sn.constructor;return!!fn&&(fn===Te||"GeneratorFunction"===(fn.displayName||fn.name))},Q.mark=function(sn){return Object.setPrototypeOf?Object.setPrototypeOf(sn,De):(sn.__proto__=De,se(sn,q,"GeneratorFunction")),sn.prototype=Object.create(Le),sn},Q.awrap=function(sn){return{__await:sn}},Gt(Ut.prototype),se(Ut.prototype,z,function(){return this}),Q.AsyncIterator=Ut,Q.async=function(sn,fn,yi,nn,Mi){void 0===Mi&&(Mi=Promise);var mi=new Ut(ne(sn,fn,yi,nn),Mi);return Q.isGeneratorFunction(fn)?mi:mi.next().then(function(Eo){return Eo.done?Eo.value:mi.next()})},Gt(Le),se(Le,q,"Generator"),se(Le,H,function(){return this}),se(Le,"toString",function(){return"[object Generator]"}),Q.keys=function(sn){var fn=Object(sn),yi=[];for(var nn in fn)yi.push(nn);return yi.reverse(),function Mi(){for(;yi.length;){var mi=yi.pop();if(mi in fn)return Mi.value=mi,Mi.done=!1,Mi}return Mi.done=!0,Mi}},Q.values=Wt,ut.prototype={constructor:ut,reset:function(fn){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(mt),!fn)for(var yi in this)"t"===yi.charAt(0)&&de.call(this,yi)&&!isNaN(+yi.slice(1))&&(this[yi]=void 0)},stop:function(){this.done=!0;var fn=this.tryEntries[0].completion;if("throw"===fn.type)throw fn.arg;return this.rval},dispatchException:function(fn){if(this.done)throw fn;var yi=this;function nn(Bn,Xt){return Eo.type="throw",Eo.arg=fn,yi.next=Bn,Xt&&(yi.method="next",yi.arg=void 0),!!Xt}for(var Mi=this.tryEntries.length-1;Mi>=0;--Mi){var mi=this.tryEntries[Mi],Eo=mi.completion;if("root"===mi.tryLoc)return nn("end");if(mi.tryLoc<=this.prev){var Ko=de.call(mi,"catchLoc"),xo=de.call(mi,"finallyLoc");if(Ko&&xo){if(this.prev<mi.catchLoc)return nn(mi.catchLoc,!0);if(this.prev<mi.finallyLoc)return nn(mi.finallyLoc)}else if(Ko){if(this.prev<mi.catchLoc)return nn(mi.catchLoc,!0)}else{if(!xo)throw new Error("try statement without catch or finally");if(this.prev<mi.finallyLoc)return nn(mi.finallyLoc)}}}},abrupt:function(fn,yi){for(var nn=this.tryEntries.length-1;nn>=0;--nn){var Mi=this.tryEntries[nn];if(Mi.tryLoc<=this.prev&&de.call(Mi,"finallyLoc")&&this.prev<Mi.finallyLoc){var mi=Mi;break}}mi&&("break"===fn||"continue"===fn)&&mi.tryLoc<=yi&&yi<=mi.finallyLoc&&(mi=null);var Eo=mi?mi.completion:{};return Eo.type=fn,Eo.arg=yi,mi?(this.method="next",this.next=mi.finallyLoc,ge):this.complete(Eo)},complete:function(fn,yi){if("throw"===fn.type)throw fn.arg;return"break"===fn.type||"continue"===fn.type?this.next=fn.arg:"return"===fn.type?(this.rval=this.arg=fn.arg,this.method="return",this.next="end"):"normal"===fn.type&&yi&&(this.next=yi),ge},finish:function(fn){for(var yi=this.tryEntries.length-1;yi>=0;--yi){var nn=this.tryEntries[yi];if(nn.finallyLoc===fn)return this.complete(nn.completion,nn.afterLoc),mt(nn),ge}},catch:function(fn){for(var yi=this.tryEntries.length-1;yi>=0;--yi){var nn=this.tryEntries[yi];if(nn.tryLoc===fn){var Mi=nn.completion;if("throw"===Mi.type){var mi=Mi.arg;mt(nn)}return mi}}throw new Error("illegal catch attempt")},delegateYield:function(fn,yi,nn){return this.delegate={iterator:Wt(fn),resultName:yi,nextLoc:nn},"next"===this.method&&(this.arg=void 0),ge}},Q}function C(Q,re,de,te,j,H,z){try{var q=Q[H](z),se=q.value}catch(ne){return void de(ne)}q.done?re(se):Promise.resolve(se).then(te,j)}function x(Q,re){var de=Object.keys(Q);if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(Q);re&&(te=te.filter(function(j){return Object.getOwnPropertyDescriptor(Q,j).enumerable})),de.push.apply(de,te)}return de}function f(Q){for(var re=1;re<arguments.length;re++){var de=null!=arguments[re]?arguments[re]:{};re%2?x(Object(de),!0).forEach(function(te){k(Q,te,de[te])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Q,Object.getOwnPropertyDescriptors(de)):x(Object(de)).forEach(function(te){Object.defineProperty(Q,te,Object.getOwnPropertyDescriptor(de,te))})}return Q}function k(Q,re,de){return(re=p(re))in Q?Object.defineProperty(Q,re,{value:de,enumerable:!0,configurable:!0,writable:!0}):Q[re]=de,Q}function g(Q,re){for(var de=0;de<re.length;de++){var te=re[de];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(Q,p(te.key),te)}}function p(Q){var re=function E(Q,re){if("object"!==e(Q)||null===Q)return Q;var de=Q[Symbol.toPrimitive];if(void 0!==de){var te=de.call(Q,re||"default");if("object"!==e(te))return te;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===re?String:Number)(Q)}(Q,"string");return"symbol"===e(re)?re:String(re)}function b(){return b=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(re,de,te){var j=function I(Q,re){for(;!Object.prototype.hasOwnProperty.call(Q,re)&&null!==(Q=V(Q)););return Q}(re,de);if(j){var H=Object.getOwnPropertyDescriptor(j,de);return H.get?H.get.call(arguments.length<3?re:te):H.value}},b.apply(this,arguments)}function D(Q,re){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(te,j){return te.__proto__=j,te})(Q,re)}function V(Q){return(V=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(de){return de.__proto__||Object.getPrototypeOf(de)})(Q)}var K,me,X=navigator.camera||K;typeof window<"u"?me=window.HTMLCanvasElement:typeof global<"u"&&(me=global.HTMLCanvasElement),me&&!me.prototype.toBlob&&Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(re,de,te){var j=this;setTimeout(function(){for(var H=atob(j.toDataURL(de,te).split(",")[1]),z=H.length,q=new Uint8Array(z),se=0;se<z;se++)q[se]=H.charCodeAt(se);re(new Blob([q],{type:de||"image/png"}))})}}),y.default=function(Q){!function L(Q,re){if("function"!=typeof re&&null!==re)throw new TypeError("Super expression must either be null or a function");Q.prototype=Object.create(re&&re.prototype,{constructor:{value:Q,writable:!0,configurable:!0}}),Object.defineProperty(Q,"prototype",{writable:!1}),re&&D(Q,re)}(de,Q);var re=function F(Q){var re=function U(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var j,te=V(Q);if(re){var H=V(this).constructor;j=Reflect.construct(te,arguments,H)}else j=te.apply(this,arguments);return function P(Q,re){if(re&&("object"===e(re)||"function"==typeof re))return re;if(void 0!==re)throw new TypeError("Derived constructors may only return object or undefined");return function O(Q){if(void 0===Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q}(Q)}(this,j)}}(de);function de(){return function w(Q,re){if(!(Q instanceof re))throw new TypeError("Cannot call a class as a function")}(this,de),re.apply(this,arguments)}return function M(Q,re,de){re&&g(Q.prototype,re),de&&g(Q,de),Object.defineProperty(Q,"prototype",{writable:!1})}(de,[{key:"init",value:function(){b(V(de.prototype),"init",this).call(this),X=navigator.camera||K;var j=typeof FileReader<"u",H=typeof window<"u"&&!!window.FormData,z=!!(typeof window<"u"&&window.XMLHttpRequest)&&"upload"in new XMLHttpRequest;this.support={filereader:j,formdata:H,hasWarning:!j||!H||!z,progress:z},this.cameraMode=!1,this.statuses=[],this.fileDropHidden=!1}},{key:"dataReady",get:function(){return this.filesReady||u.default.resolve()}},{key:"defaultSchema",get:function(){return de.schema()}},{key:"loadImage",value:function(j){return this.component.privateDownload&&(j.private=!0),this.fileService.downloadFile(j).then(function(H){return H.url})}},{key:"emptyValue",get:function(){return[]}},{key:"getValueAsString",value:function(j){return l.default.isArray(j)?l.default.map(j,"originalName").join(", "):l.default.get(j,"originalName","")}},{key:"getValue",value:function(){return this.dataValue}},{key:"defaultValue",get:function(){var j=b(V(de.prototype),"defaultValue",this);return Array.isArray(j)?j:[]}},{key:"hasTypes",get:function(){return this.component.fileTypes&&Array.isArray(this.component.fileTypes)&&0!==this.component.fileTypes.length&&(""!==this.component.fileTypes[0].label||""!==this.component.fileTypes[0].value)}},{key:"fileDropHidden",get:function(){return this._fileBrowseHidden},set:function(j){"boolean"!=typeof j||this.component.multiple||(this._fileBrowseHidden=j)}},{key:"render",value:function(){return b(V(de.prototype),"render",this).call(this,this.renderTemplate("file",{fileSize:this.fileSize,files:this.dataValue||[],statuses:this.statuses,disabled:this.disabled,support:this.support,fileDropHidden:this.fileDropHidden}))}},{key:"getVideoStream",value:function(j){return navigator.mediaDevices.getUserMedia({video:f({width:{min:640,ideal:1920},height:{min:360,ideal:1080},aspectRatio:{ideal:16/9}},j),audio:!1})}},{key:"stopVideoStream",value:function(j){j.getVideoTracks().forEach(function(H){return H.stop()})}},{key:"getFrame",value:function(j){return new u.default(function(H){var z=document.createElement("canvas");z.height=j.videoHeight,z.width=j.videoWidth,z.getContext("2d").drawImage(j,0,0),z.toBlob(H)})}},{key:"startVideo",value:function(){var j=this;this.getVideoStream().then(function(H){j.videoStream=H;var z=j.refs.videoPlayer;if(!z)return console.warn("Video player not found in template."),j.cameraMode=!1,void j.redraw();z.srcObject=H;var q=parseInt(j.component.webcamSize)||320;z.setAttribute("width",q),z.play()}).catch(function(H){console.error(H),j.cameraMode=!1,j.redraw()})}},{key:"stopVideo",value:function(){this.videoStream&&(this.stopVideoStream(this.videoStream),this.videoStream=null)}},{key:"takePicture",value:function(){var j=this,H=this.refs.videoPlayer;if(!H)return console.warn("Video player not found in template."),this.cameraMode=!1,void this.redraw();this.getFrame(H).then(function(z){z.name="photo-".concat(Date.now(),".png"),j.upload([z]),j.cameraMode=!1,j.redraw()})}},{key:"browseFiles",value:function(){var j=this,H=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new u.default(function(z){var q=j.ce("input",f({type:"file",style:"height: 0; width: 0; visibility: hidden;",tabindex:"-1"},H));document.body.appendChild(q),q.addEventListener("change",function(){z(q.files),document.body.removeChild(q)},!0),"function"==typeof q.trigger?q.trigger("click"):q.click()})}},{key:"cameraMode",get:function(){return this._cameraMode},set:function(j){this._cameraMode=j,j?this.startVideo():this.stopVideo()}},{key:"useWebViewCamera",get:function(){return this.imageUpload&&X}},{key:"imageUpload",get:function(){return!!this.component.image}},{key:"browseOptions",get:function(){var j={};if(this.component.multiple&&(j.multiple=!0),!this.isMobile.any){var H=this.component.filePattern.trim()||"",z="image/*";j.accept=!this.imageUpload||H&&"*"!==H?this.imageUpload&&!H.includes(z)?"".concat(z,",").concat(H):H:z}return j}},{key:"deleteFile",value:function(j){var H=this.component.options,z=void 0===H?{}:H;if(j&&["url","indexeddb"].includes(this.component.storage)){var q=this.fileService;if(q&&"function"==typeof q.deleteFile)q.deleteFile(j,z);else{var se=this.options.formio||this.root&&this.root.formio;se&&se.makeRequest("",j.url,"delete")}}}},{key:"attach",value:function(j){var H=this;this.loadRefs(j,{fileDrop:"single",fileBrowse:"single",galleryButton:"single",cameraButton:"single",takePictureButton:"single",toggleCameraMode:"single",videoPlayer:"single",fileLink:"multiple",removeLink:"multiple",fileStatusRemove:"multiple",fileImage:"multiple",fileType:"multiple",fileProcessingLoader:"single"}),this.refs.input=[];var z=b(V(de.prototype),"attach",this).call(this,j);if(this.refs.fileDrop){this.statuses.length||this.refs.fileDrop.removeAttribute("hidden");var q=this;this.addEventListener(this.refs.fileDrop,"dragover",function(_e){this.className="fileSelector fileDragOver",_e.preventDefault()}),this.addEventListener(this.refs.fileDrop,"dragleave",function(_e){this.className="fileSelector",_e.preventDefault()}),this.addEventListener(this.refs.fileDrop,"drop",function(_e){this.className="fileSelector",_e.preventDefault(),q.upload(_e.dataTransfer.files)})}if(this.refs.fileBrowse&&this.addEventListener(this.refs.fileBrowse,"click",function(_e){_e.preventDefault(),H.browseFiles(H.browseOptions).then(function(ge){H.upload(ge)})}),this.refs.fileLink.forEach(function(_e,ge){H.addEventListener(_e,"click",function(Ce){Ce.preventDefault(),H.getFile(H.dataValue[ge])})}),this.refs.removeLink.forEach(function(_e,ge){H.addEventListener(_e,"click",function(Ce){H.deleteFile(H.dataValue[ge]),Ce.preventDefault(),H.splice(ge),H.redraw()})}),this.refs.fileStatusRemove.forEach(function(_e,ge){H.addEventListener(_e,"click",function(Ce){Ce.preventDefault(),H.abortUpload&&H.abortUpload(),H.statuses.splice(ge,1),H.redraw()})}),this.refs.galleryButton&&X&&this.addEventListener(this.refs.galleryButton,"click",function(_e){_e.preventDefault(),X.getPicture(function(ge){window.resolveLocalFileSystemURL(ge,function(Ce){Ce.file(function(Te){var De=new FileReader;De.onloadend=function(fe){var xe=new Blob([new Uint8Array(fe.target.result)],{type:Te.type});xe.name=Te.name,H.upload([xe])},De.readAsArrayBuffer(Te)})})},function(ge){console.error(ge)},{sourceType:X.PictureSourceType.PHOTOLIBRARY})}),this.refs.cameraButton&&X&&this.addEventListener(this.refs.cameraButton,"click",function(_e){_e.preventDefault(),X.getPicture(function(ge){window.resolveLocalFileSystemURL(ge,function(Ce){Ce.file(function(Te){var De=new FileReader;De.onloadend=function(fe){var xe=new Blob([new Uint8Array(fe.target.result)],{type:Te.type});xe.name=Te.name,H.upload([xe])},De.readAsArrayBuffer(Te)})})},function(ge){console.error(ge)},{sourceType:X.PictureSourceType.CAMERA,encodingType:X.EncodingType.PNG,mediaType:X.MediaType.PICTURE,saveToPhotoAlbum:!0,correctOrientation:!1})}),this.refs.takePictureButton&&this.addEventListener(this.refs.takePictureButton,"click",function(_e){_e.preventDefault(),H.takePicture()}),this.refs.toggleCameraMode&&this.addEventListener(this.refs.toggleCameraMode,"click",function(_e){_e.preventDefault(),H.cameraMode=!H.cameraMode,H.redraw()}),this.refs.fileType.forEach(function(_e,ge){H.dataValue[ge].fileType=H.dataValue[ge].fileType||H.component.fileTypes[0].label,H.addEventListener(_e,"change",function(Ce){Ce.preventDefault();var Te=H.component.fileTypes.find(function(De){return De.value===Ce.target.value});H.dataValue[ge].fileType=Te.label})}),this.fileService){var ne=[];this.filesReady=new u.default(function(_e,ge){H.filesReadyResolve=_e,H.filesReadyReject=ge}),this.refs.fileImage.forEach(function(_e,ge){ne.push(H.loadImage(H.dataValue[ge]).then(function(Ce){return _e.src=Ce}))}),ne.length?u.default.all(ne).then(function(){H.filesReadyResolve()}).catch(function(){return H.filesReadyReject()}):this.filesReadyResolve()}return z}},{key:"fileSize",value:function(j,H,z,q,se){return"".concat((H=Math,z=H.log,se=z(j)/z(1024)|0,j/H.pow(1024,se)).toFixed(2)," ").concat(se?"".concat("kMGTPEZY"[--se],"B"):"Bytes")}},{key:"globStringToRegex",value:function(j){var H="",z=[];if((j=j.replace(/\s/g,"")).length>2&&"/"===j[0]&&"/"===j[j.length-1])H=j.substring(1,j.length-1);else{var q=j.split(",");if(q.length>1)for(var se=0;se<q.length;se++){var ne=this.globStringToRegex(q[se]);ne.regexp?(H+="(".concat(ne.regexp,")"),se<q.length-1&&(H+="|")):z=z.concat(ne.excludes)}else j.startsWith("!")?z.push("^((?!".concat(this.globStringToRegex(j.substring(1)).regexp,").)*$")):(j.startsWith(".")&&(j="*".concat(j)),H=(H="^".concat(j.replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g"),"\\$&"),"$")).replace(/\\\*/g,".*").replace(/\\\?/g,"."))}return{regexp:H,excludes:z}}},{key:"translateScalars",value:function(j){if("string"==typeof j){if(j.search(/kb/i)===j.length-2)return parseFloat(1024*j.substring(0,j.length-2));if(j.search(/mb/i)===j.length-2)return parseFloat(1024*j.substring(0,j.length-2)*1024);if(j.search(/gb/i)===j.length-2)return parseFloat(1024*j.substring(0,j.length-2)*1024*1024);if(j.search(/b/i)===j.length-1||j.search(/s/i)===j.length-1)return parseFloat(j.substring(0,j.length-1));if(j.search(/m/i)===j.length-1)return parseFloat(60*j.substring(0,j.length-1));if(j.search(/h/i)===j.length-1)return parseFloat(3600*j.substring(0,j.length-1))}return j}},{key:"validatePattern",value:function(j,H){if(!H)return!0;var z=this.globStringToRegex(H),q=!0;if(z.regexp&&z.regexp.length){var se=new RegExp(z.regexp,"i");q=!l.default.isNil(j.type)&&se.test(j.type)||!l.default.isNil(j.name)&&se.test(j.name)}return z.excludes.reduce(function(ne,_e){var ge=new RegExp(_e,"i");return ne&&(l.default.isNil(j.type)||!ge.test(j.type))&&(l.default.isNil(j.name)||!ge.test(j.name))},q)}},{key:"validateMinSize",value:function(j,H){return j.size+.1>=this.translateScalars(H)}},{key:"validateMaxSize",value:function(j,H){return j.size-.1<=this.translateScalars(H)}},{key:"upload",value:function(j){var H=this;this.component.multiple||(this.statuses.length&&(this.statuses=[]),j=Array.prototype.slice.call(j,0,1)),this.component.storage&&j&&j.length&&(this.fileDropHidden=!0,Array.prototype.forEach.call(j,function(){var z=function R(Q){return function(){var re=this,de=arguments;return new Promise(function(te,j){var H=Q.apply(re,de);function z(se){C(H,te,j,z,q,"next",se)}function q(se){C(H,te,j,z,q,"throw",se)}z(void 0)})}}(_().mark(function q(se){var ne,_e,ge,Ce,Te,De,fe,xe,Oe,Le,Gt,Ut,An,$n,xn,mt,ut,Wt,dn,sn,fn,yi;return _().wrap(function(Mi){for(;;)switch(Mi.prev=Mi.next){case 0:if(ne=(0,o.uniqueName)(se.name,H.component.fileNameTemplate,H.evalContext()),_e=se.name?se.name.replaceAll("<","&lt;").replaceAll(">","&gt;"):se.name,ge={originalName:_e,name:ne,size:se.size,status:"info",message:H.t("Processing file. Please wait..."),hash:""},"true"!==H.root.form.submissionRevisions){Mi.next=12;break}return H.statuses.push(ge),H.redraw(),Ce=new s.default,Mi.next=9,new Promise(function(mi,Eo){H.emit("fileUploadingStart"),Ce.md5(se,function(Ko,xo){return Ko?Eo(Ko):mi(xo)})});case 9:Te=Mi.sent,H.emit("fileUploadingEnd"),ge.hash=Te;case 12:if(H.filesUploading||(H.filesUploading=[]),De=H.filesUploading.some(function(mi){return mi===se.name}),H.filesUploading.push(se.name),fe=H.dataValue.some(function(mi){return mi.originalName===se.name}),xe=H.statuses.findIndex(function(mi){return mi.originalName===se.name&&"error"===mi.status}),(fe||De)&&(ge.status="error",ge.message=H.t("File with the same name is already ".concat(De?"being ":"","uploaded"))),-1!==xe&&(H.statuses.splice(xe,1),H.redraw()),H.component.filePattern&&!H.validatePattern(se,H.component.filePattern)&&(ge.status="error",ge.message=H.t("File is the wrong type; it must be {{ pattern }}",{pattern:H.component.filePattern})),H.component.fileMinSize&&!H.validateMinSize(se,H.component.fileMinSize)&&(ge.status="error",ge.message=H.t("File is too small; it must be at least {{ size }}",{size:H.component.fileMinSize})),H.component.fileMaxSize&&!H.validateMaxSize(se,H.component.fileMaxSize)&&(ge.status="error",ge.message=H.t("File is too big; it must be at most {{ size }}",{size:H.component.fileMaxSize})),Oe=H.interpolate(H.component.dir||""),(Le=H.fileService)||(ge.status="error",ge.message=H.t("File Service not provided.")),"true"!==H.root.form.submissionRevisions&&(H.statuses.push(ge),H.redraw()),"error"===ge.status){Mi.next=60;break}if(H.component.privateDownload&&(se.private=!0),Ut=(Gt=H.component).storage,$n=void 0===(An=Gt.options)?{}:An,xn=H.interpolate(H.component.url,{file:ge}),mt=null,ut=null,H.root.everyComponent(function(mi){var Eo,Ko;(null!==(Eo=mi.component)&&void 0!==Eo&&Eo.submissionAccess||null!==(Ko=mi.component)&&void 0!==Ko&&Ko.defaultPermission)&&(ut=mi.component.submissionAccess?mi.component.submissionAccess:[{type:mi.component.defaultPermission,roles:[]}]).forEach(function(xo){mt=["admin","write","create"].includes(xo.type)?mi.component.key:null})}),Wt=H.component.fileKey||"file",dn=mt?H.currentForm.submission.data[mt]._id:null,sn=null,!H.root.options.fileProcessor){Mi.next=55;break}return Mi.prev=37,H.refs.fileProcessingLoader&&(H.refs.fileProcessingLoader.style.display="block"),fn=(0,d.default)(H.fileService,H.root.options.fileProcessor),Mi.next=42,fn(se,H.component.properties);case 42:sn=Mi.sent,Mi.next=52;break;case 45:return Mi.prev=45,Mi.t0=Mi.catch(37),ge.status="error",ge.message=H.t("File processing has been failed."),H.fileDropHidden=!1,H.redraw(),Mi.abrupt("return");case 52:return Mi.prev=52,H.refs.fileProcessingLoader&&(H.refs.fileProcessingLoader.style.display="none"),Mi.finish(52);case 55:ge.message=H.t("Starting upload."),H.redraw(),yi=Le.uploadFile(Ut,sn||se,ne,Oe,function(mi){ge.status="progress",ge.progress=parseInt(100*mi.loaded/mi.total),delete ge.message,H.redraw()},xn,$n,Wt,ut,dn,function(){H.emit("fileUploadingStart",yi)},function(mi){return H.abortUpload=mi}).then(function(mi){var Eo=H.statuses.indexOf(ge);-1!==Eo&&H.statuses.splice(Eo,1),mi.originalName=_e,mi.hash=ge.hash,H.hasValue()||(H.dataValue=[]),H.dataValue.push(mi),l.default.pull(H.filesUploading,mi.originalName),H.fileDropHidden=!1,H.redraw(),H.triggerChange(),H.emit("fileUploadingEnd",yi)}).catch(function(mi){ge.status="error",ge.message="string"==typeof mi?mi:mi.toString(),delete ge.progress,H.fileDropHidden=!1,l.default.pull(H.filesUploading,se.name),H.redraw(),H.emit("fileUploadingEnd",yi)}),Mi.next=61;break;case 60:H.filesUploading.splice(H.filesUploading.indexOf(se.name),1);case 61:case"end":return Mi.stop()}},q,null,[[37,45,52,55]])}));return function(q){return z.apply(this,arguments)}}()))}},{key:"getFile",value:function(j){var H=this.component.options,z=void 0===H?{}:H,q=this.fileService;if(!q)return alert("File Service not provided");this.component.privateDownload&&(j.private=!0),q.downloadFile(j,z).then(function(se){se&&(["base64","indexeddb"].includes(se.storage)?(0,a.default)(se.url,se.originalName||se.name,se.type):window.open(se.url,"_blank"))}).catch(function(se){alert(se)})}},{key:"focus",value:function(){"beforeFocus"in this.parent&&this.parent.beforeFocus(this),this.refs.fileBrowse&&this.refs.fileBrowse.focus()}},{key:"destroy",value:function(){this.stopVideo(),b(V(de.prototype),"destroy",this).call(this)}}],[{key:"schema",value:function(){for(var j=arguments.length,H=new Array(j),z=0;z<j;z++)H[z]=arguments[z];return n.default.schema.apply(n.default,[{type:"file",label:"Upload",key:"file",image:!1,privateDownload:!1,imageSize:"200",filePattern:"*",fileMinSize:"0KB",fileMaxSize:"1GB",uploadOnly:!1}].concat(H))}},{key:"builderInfo",get:function(){return{title:"File",group:"premium",icon:"file",documentation:"/userguide/form-building/premium-components#file",weight:100,schema:de.schema()}}},{key:"serverConditionSettings",get:function(){return f(f({},b(V(de),"serverConditionSettings",this)),{},{operators:["isEmpty","isNotEmpty"]})}}]),de}(n.default)},79195:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"defaultValue",ignore:!0}]},87615:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"placeholder",ignore:!0}]},44699:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(50886);var e=i(55798),n=function o(l){return l&&l.__esModule?l:{default:l}}(i(6990));y.default=[{type:"select",input:!0,key:"storage",label:"Storage",placeholder:"Select your file storage provider",weight:0,tooltip:"Which storage to save the files in.",valueProperty:"value",dataSrc:"custom",data:{custom:function(){return n.default.map(e.GlobalFormio.Providers.getProviders("storage"),function(u,d){return{label:u.title,value:d}})}}},{type:"textfield",input:!0,key:"url",label:"Url",weight:10,placeholder:"Enter the url to post the files to.",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#server-side' target='_blank'>https://github.com/danialfarid/ng-file-upload#server-side</a> for how to set up the server.",conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"options.indexeddb",label:"Database",weight:10,placeholder:"Enter the indexeddb database name",conditional:{json:{in:[{var:"data.storage"},["indexeddb"]]}}},{type:"textfield",input:!0,label:"Table",key:"options.indexeddbTable",weight:10,placeholder:"Enter the name for indexeddb table",conditional:{json:{in:[{var:"data.storage"},["indexeddb"]]}}},{type:"textarea",key:"options",label:"Custom request options",tooltip:"Pass your custom xhr options(optional)",rows:5,editor:"ace",input:!0,weight:15,placeholder:'{\n      "withCredentials": true,\n      "headers": {\n        "Authorization": "Basic <key>"\n      }\n    }',conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"fileKey",label:"File form-data key",weight:17,placeholder:"Enter the key name of a file for form data.",tooltip:"Key name that you would like to modify for the file while calling API request.",conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"dir",label:"Directory",placeholder:"(optional) Enter a directory for the files",tooltip:"This will place all the files uploaded in this field in the directory",weight:20,conditional:{json:{"!==":[{var:"data.storage"},"googledrive"]}}},{type:"textfield",input:!0,key:"dir",label:"Folder ID",placeholder:"(optional) Enter an ID of the folder for the files",tooltip:"This will place all the files uploaded in this field in the folder",weight:20,conditional:{json:{"===":[{var:"data.storage"},"googledrive"]}}},{type:"textfield",input:!0,key:"fileNameTemplate",label:"File Name Template",placeholder:'(optional) { {name} }-{ {guid} }"',tooltip:"Specify template for name of uploaded file(s). Regular template variables are available (`data`, `component`, `user`, `value`, `moment` etc.), also `fileName`, `guid` variables are available. `guid` part must be present, if not found in template, will be added at the end.",weight:25},{type:"checkbox",input:!0,key:"image",label:"Display as image(s)",tooltip:"Instead of a list of linked files, images will be rendered in the view.",weight:30},{type:"checkbox",input:!0,key:"uploadOnly",label:"Upload Only",tooltip:"When this is checked, will only allow you to upload file(s) and consequently the download, in this component, will be unavailable.",weight:33},{type:"checkbox",input:!0,key:"privateDownload",label:"Private Download",tooltip:"When this is checked, the file download will send a POST request to the download URL with the x-jwt-token header. This will allow your endpoint to create a Private download system.",weight:31,conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"imageSize",label:"Image Size",placeholder:"100",tooltip:"The image size for previewing images.",weight:40,conditional:{json:{"==":[{var:"data.image"},!0]}}},{type:"checkbox",input:!0,key:"webcam",label:"Enable web camera",tooltip:"This will allow using an attached camera to directly take a picture instead of uploading an existing file.",weight:32},{type:"textfield",input:!0,key:"webcamSize",label:"Webcam Width",placeholder:"320",tooltip:"The webcam size for taking pictures.",weight:38,conditional:{json:{"==":[{var:"data.webcam"},!0]}}},{type:"datagrid",input:!0,label:"File Types",key:"fileTypes",tooltip:"Specify file types to classify the uploads. This is useful if you allow multiple types of uploads but want to allow the user to specify which type of file each is.",weight:11,components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}]},{type:"textfield",input:!0,key:"filePattern",label:"File Pattern",placeholder:".jpg,video/*,application/pdf",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#full-reference' target='_blank'>https://github.com/danialfarid/ng-file-upload#full-reference</a> for how to specify file patterns.",weight:50},{type:"textfield",input:!0,key:"fileMinSize",label:"File Minimum Size",placeholder:"1MB",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#full-reference' target='_blank'>https://github.com/danialfarid/ng-file-upload#full-reference</a> for how to specify file sizes.",weight:60},{type:"textfield",input:!0,key:"fileMaxSize",label:"File Maximum Size",placeholder:"10MB",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#full-reference' target='_blank'>https://github.com/danialfarid/ng-file-upload#full-reference</a> for how to specify file sizes.",weight:70}]},9642:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"unique",ignore:!0},{key:"validateOn",ignore:!0}]},6214:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function u(){for(var d=arguments.length,s=new Array(d),A=0;A<d;A++)s[A]=arguments[A];return e.default.apply(void 0,[[{key:"display",components:n.default},{label:"Form",key:"form",weight:10,components:o.default},{label:"Data",key:"data",weight:10,components:a.default}]].concat(s))},i(34338);var e=l(i(90700)),n=l(i(49924)),o=l(i(14743)),a=l(i(1343));function l(d){return d&&d.__esModule?d:{default:d}}},81877:(he,y,i)=>{"use strict";function e(P){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(O){return typeof O}:function(O){return O&&"function"==typeof Symbol&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O})(P)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(64043),i(57267),i(21552),i(79288),i(69358),i(49693),i(60228),i(47522),i(63975),i(39772),i(5399),i(41517),i(88052);var n=_(i(6990)),o=_(i(1681)),a=_(i(52520)),l=_(i(81472)),u=_(i(73808)),d=i(12866),s=i(55798),A=_(i(20833));function _(P){return P&&P.__esModule?P:{default:P}}function R(P,O){for(var U=0;U<O.length;U++){var V=O[U];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(P,f(V.key),V)}}function f(P){var O=function k(P,O){if("object"!==e(P)||null===P)return P;var U=P[Symbol.toPrimitive];if(void 0!==U){var V=U.call(P,O||"default");if("object"!==e(V))return V;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===O?String:Number)(P)}(P,"string");return"symbol"===e(O)?O:String(O)}function w(){return w=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(O,U,V){var K=function g(P,O){for(;!Object.prototype.hasOwnProperty.call(P,O)&&null!==(P=D(P)););return P}(O,U);if(K){var X=Object.getOwnPropertyDescriptor(K,U);return X.get?X.get.call(arguments.length<3?O:V):X.value}},w.apply(this,arguments)}function p(P,O){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,K){return V.__proto__=K,V})(P,O)}function D(P){return(D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(U){return U.__proto__||Object.getPrototypeOf(U)})(P)}y.default=function(P){!function M(P,O){if("function"!=typeof O&&null!==O)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(O&&O.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),Object.defineProperty(P,"prototype",{writable:!1}),O&&p(P,O)}(U,P);var O=function E(P){var O=function L(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var K,V=D(P);if(O){var X=D(this).constructor;K=Reflect.construct(V,arguments,X)}else K=V.apply(this,arguments);return function b(P,O){if(O&&("object"===e(O)||"function"==typeof O))return O;if(void 0!==O)throw new TypeError("Derived constructors may only return object or undefined");return function I(P){if(void 0===P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}(P)}(this,K)}}(U);function U(){return function C(P,O){if(!(P instanceof O))throw new TypeError("Cannot call a class as a function")}(this,U),O.apply(this,arguments)}return function x(P,O,U){O&&R(P.prototype,O),U&&R(P,U),Object.defineProperty(P,"prototype",{writable:!1})}(U,[{key:"init",value:function(){if(w(D(U.prototype),"init",this).call(this),this.formObj={display:this.component.display,settings:this.component.settings,components:this.component.components},this.valueChanged=!1,this.subForm=null,this.formSrc="",this.component.src&&(this.formSrc=this.component.src),!this.component.src&&!this.options.formio&&(this.component.form||this.component.path)&&(this.component.project?(this.formSrc=s.GlobalFormio.getBaseUrl(),(0,d.isMongoId)(this.component.project)&&(this.formSrc+="/project"),this.formSrc+="/".concat(this.component.project),this.options.project=this.formSrc):(this.formSrc=s.GlobalFormio.getProjectUrl(),this.options.project=this.formSrc),this.component.form?(0,d.isMongoId)(this.component.form)?this.formSrc+="/form/".concat(this.component.form):this.formSrc+="/".concat(this.component.form):this.component.path&&(this.formSrc+="/".concat(this.component.path))),!this.formSrc&&this.options.formio){var K=this.options.formio.formsUrl;if(this.component.form&&(0,d.isMongoId)(this.component.form))this.formSrc="".concat(K,"/").concat(this.component.form);else{var X=this.component.path||this.component.form;this.formSrc="".concat(K.replace(/\/form$/,""),"/").concat(X)}}return this.builderMode&&this.component.hasOwnProperty("formRevision")&&(this.component.revision=this.component.formRevision,delete this.component.formRevision),(this.component.revision||0===this.component.revision||this.component.formRevision||0===this.component.formRevision||this.component.revisionId)&&this.setFormRevision(this.component.revisionId||this.component.revision||this.component.formRevision),this.createSubForm()}},{key:"dataReady",get:function(){return this.subFormReady||u.default.resolve()}},{key:"defaultValue",get:function(){return this.subForm?w(D(U.prototype),"defaultValue",this):null}},{key:"defaultSchema",get:function(){return U.schema()}},{key:"emptyValue",get:function(){return{data:{}}}},{key:"ready",get:function(){return this.subFormReady||u.default.resolve()}},{key:"useOriginalRevision",get:function(){var K,X;return(null===(K=this.component)||void 0===K?void 0:K.useOriginalRevision)&&!(null===(X=this.formObj)||void 0===X||!X.revisions)}},{key:"setFormRevision",value:function(K){this.formSrc=this.formSrc.replace(/\/v\/[0-9a-z]+/,"");var X=Number.parseInt(K);isNaN(X)?this.subFormRevision=void 0:(this.subFormRevision=K,this.formSrc+="/v/".concat(K))}},{key:"getComponent",value:function(K,X){"data"===(K=(0,d.getArrayFromComponentPath)(K))[0]&&K.shift();var me="".concat(this.path,".data.").concat((0,d.getStringFromComponentPath)(K));if(this.subForm)return this.subForm.getComponent(K,X,me)}},{key:"getSubOptions",value:function(){var K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return K.parentPath="".concat(this.path,".data."),K.events=this.createEmitter(),n.default.set(K,"buttonSettings.showSubmit",!1),this.options&&(this.options.base&&(K.base=this.options.base),this.options.project&&(K.project=this.options.project),(this.options.readOnly||this.component.disabled)&&(K.readOnly=this.options.readOnly||this.component.disabled),this.options.breadcrumbSettings&&(K.breadcrumbSettings=this.options.breadcrumbSettings),this.options.buttonSettings&&(K.buttonSettings=n.default.clone(this.options.buttonSettings)),this.options.viewAsHtml&&(K.viewAsHtml=this.options.viewAsHtml),this.options.language&&(K.language=this.options.language),this.options.template&&(K.template=this.options.template),this.options.templates&&(K.templates=this.options.templates),this.options.renderMode&&(K.renderMode=this.options.renderMode),this.options.attachMode&&(K.attachMode=this.options.attachMode),this.options.iconset&&(K.iconset=this.options.iconset),this.options.fileService&&(K.fileService=this.options.fileService),this.options.onChange&&(K.onChange=this.options.onChange),this.options.preview&&(K.preview=this.options.preview)),K}},{key:"render",value:function(){if(this.builderMode)return w(D(U.prototype),"render",this).call(this,this.component.label||"Nested form");var K=this.subForm?this.subForm.render():this.renderTemplate("loading");return w(D(U.prototype),"render",this).call(this,K)}},{key:"asString",value:function(K){return this.getValueAsString(K)}},{key:"getValueAsString",value:function(K){return K?!K.data&&K._id?K._id:K.data&&Object.keys(K.data).length?"[Complex Data]":"No data provided":"No data provided"}},{key:"attach",value:function(K){var X=this;return this.builderMode?w(D(U.prototype),"attach",this).call(this,K):w(D(U.prototype),"attach",this).call(this,K).then(function(){return X.isSubFormLazyLoad()&&!X.hasLoadedForm&&!X.subFormLoading&&X.createSubForm(!0),X.subFormReady.then(function(){if(X.empty(K),X.options.builder)X.setContent(K,X.ce("div",{class:"text-muted text-center p-2"},X.text(X.formObj.title)));else{if(X.setContent(K,X.render()),X.subForm&&(X.isNestedWizard&&(K=X.root.element),X.subForm.attach(K),X.valueChanged=X.hasSetValue,X.valueChanged||"submitted"===X.dataValue.state?X.restoreValue():X.setDefaultValue()),!X.builderMode&&X.component.modalEdit){var me=!!X.componentModal&&X.componentModal.isOpened;X.componentModal=new a.default(X,K,me,me?X.componentModal.currentValue:X.dataValue),X.setOpenModalElement()}X.calculateValue()}})})}},{key:"detach",value:function(){this.subForm&&this.subForm.detach(),w(D(U.prototype),"detach",this).call(this)}},{key:"currentForm",get:function(){return this._currentForm},set:function(K){var X=this;this._currentForm=K,this.subForm&&this.subForm.getComponents().forEach(function(me){me.currentForm=X})}},{key:"hasLoadedForm",get:function(){return this.formObj&&this.formObj.components&&Array.isArray(this.formObj.components)&&this.formObj.components.length}},{key:"isRevisionChanged",get:function(){return n.default.isNumber(this.subFormRevision)&&n.default.isNumber(this.formObj._vid)&&this.formObj._vid!==this.subFormRevision}},{key:"destroy",value:function(){this.subForm&&(this.subForm.destroy(),this.subForm=null,this.subFormReady=null),w(D(U.prototype),"destroy",this).call(this)}},{key:"redraw",value:function(){return this.subForm&&(this.subForm.form=this.formObj,this.setSubFormDisabled(this.subForm)),w(D(U.prototype),"redraw",this).call(this)}},{key:"everyComponent",value:function(){var K;this.subForm&&(K=this.subForm).everyComponent.apply(K,arguments)}},{key:"setSubFormDisabled",value:function(K){K.disabled=this.disabled}},{key:"updateSubWizards",value:function(K){var X,me,J=this;if(this.isNestedWizard&&null!==(X=this.root)&&void 0!==X&&X.subWizards&&"wizard"===(null==K||null===(me=K._form)||void 0===me?void 0:me.display)){var Q=this.root.subWizards.findIndex(function(re){return re.component.form===J.component.form});-1!==Q?this.root.subWizards[Q]=this:this.root.subWizards.push(this),this.emit("subWizardsUpdated",K)}}},{key:"createSubForm",value:function(K){var X=this;return this.subFormReady=this.loadSubForm(K).then(function(me){if(me)return(0,d.eachComponent)(me.components,function(J){X.hideSubmitButton(J)}),X.subForm&&X.subForm.destroy(),new A.default(me,X.getSubOptions()).ready.then(function(J){return X.subForm=J,X.subForm.currentForm=X,X.subForm.parent=X,X.subForm.parentVisible=X.visible,X.subForm.on("change",function(){X.subForm&&(X.dataValue=X.subForm.getValue(),X.triggerChange({noEmit:!0}))}),X.subForm.url=X.formSrc,X.subForm.nosubmit=!0,X.subForm.root=X.root,X.subForm.localRoot=X.isNestedWizard?X.localRoot:X.subForm,X.restoreValue(),X.valueChanged=X.hasSetValue,X.onChange(),X.subForm})}).then(function(me){return X.updateSubWizards(me),me}),this.subFormReady}},{key:"hideSubmitButton",value:function(K){"button"===K.type&&("submit"===K.action||!K.action)&&(K.hidden=!0)}},{key:"loadSubForm",value:function(K){var X,me=this;return this.builderMode||this.isHidden()||this.isSubFormLazyLoad()&&!K?u.default.resolve():!this.hasLoadedForm||this.isRevisionChanged||this.options.pdf&&null!==(X=this.component)&&void 0!==X&&X.useOriginalRevision&&n.default.isNull(this.subForm)&&!this.subFormLoading?this.formSrc?(this.subFormLoading=!0,new s.GlobalFormio(this.formSrc).loadForm({params:{live:1}}).then(function(J){return me.formObj=J,me.options.pdf&&me.component.useOriginalRevision&&(me.formObj.display="form"),me.subFormLoading=!1,J}).catch(function(J){return console.log(J),null})):u.default.resolve():(this.root&&this.root.form&&this.root.form.config&&!this.formObj.config&&(this.formObj.config=this.root.form.config),u.default.resolve(this.formObj))}},{key:"subFormData",get:function(){var K;return(null===(K=this.dataValue)||void 0===K?void 0:K.data)||{}}},{key:"checkComponentValidity",value:function(K,X,me,J){return J=J||{},this.subForm?this.subForm.checkValidity(this.subFormData,X,null,J.silentCheck||!1):w(D(U.prototype),"checkComponentValidity",this).call(this,K,X,me,J)}},{key:"checkComponentConditions",value:function(K,X,me){var J=this,Q=w(D(U.prototype),"checkComponentConditions",this).call(this,K,X,me);return Q&&(this.subForm?this.subForm.checkConditions(this.subFormData):(this.subFormReady&&this.subFormReady.then(function(){if(J.subForm)return J.subForm.checkConditions(J.subFormData)}),Q))}},{key:"calculateValue",value:function(K,X,me){return this.subForm?this.subForm.calculateValue(this.subFormData,X):w(D(U.prototype),"calculateValue",this).call(this,K,X,me)}},{key:"setPristine",value:function(K){w(D(U.prototype),"setPristine",this).call(this,K),this.subForm&&this.subForm.setPristine(K)}},{key:"shouldSubmit",get:function(){return this.subFormReady&&(!this.component.hasOwnProperty("reference")||this.component.reference)&&!this.isHidden()}},{key:"getSubFormData",value:function(){return"pdf"===n.default.get(this.subForm,"form.display")?this.subForm.getSubmission():u.default.resolve(this.dataValue)}},{key:"submitSubForm",value:function(K){var X=this;return this.shouldSubmit?this.subFormReady.then(function(){return X.subForm?(X.subForm.nosubmit=!1,X.subForm.submitForm().then(function(me){return X.subForm.loading=!1,X.subForm.showAllErrors=!1,X.dataValue=me.submission,X.dataValue}).catch(function(me){return X.subForm.showAllErrors=!0,K?(X.subForm.onSubmissionError(me),u.default.reject(me)):{}})):X.dataValue}):this.getSubFormData()}},{key:"beforePage",value:function(K){var X=this;return K?this.submitSubForm(!0).then(function(){return w(D(U.prototype),"beforePage",X).call(X,K)}):w(D(U.prototype),"beforePage",this).call(this,K)}},{key:"beforeSubmit",value:function(){var K,X=this,me=this.dataValue;return!(me&&me._id&&me.form)||null!==(K=this.subForm)&&void 0!==K&&K.wizard?this.submitSubForm(!1).then(function(){return X.dataValue}).then(function(){return w(D(U.prototype),"beforeSubmit",X).call(X)}):(this.dataValue=me,u.default.resolve(this.dataValue))}},{key:"isSubFormLazyLoad",value:function(){var K,X;return"wizard"===(null===(K=this.root)||void 0===K||null===(X=K._form)||void 0===X?void 0:X.display)&&this.component.lazyLoad}},{key:"isHidden",value:function(){return!this.visible||!w(D(U.prototype),"checkConditions",this).call(this,this.rootValue)}},{key:"setValue",value:function(K){var X=this,me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},J=w(D(U.prototype),"setValue",this).call(this,K,me);if(this.valueChanged=!0,this.subForm){var Q,re=K._frid?"_frid":"_vid";this.useOriginalRevision&&(n.default.isNumber(K[re])||n.default.isNumber(K._fvid))&&n.default.isNumber(null===(Q=this.subForm.form)||void 0===Q?void 0:Q[re])&&K._fvid!==this.subForm.form[re]?(this.setFormRevision(K._frid||K._fvid),this.createSubForm().then(function(){X.attach(X.element)})):this.setSubFormValue(K,me)}return J}},{key:"setSubFormValue",value:function(K,X){if(K&&K._id&&this.subForm.formio&&n.default.isEmpty(K.data)){var J=K.form||this.formObj.form||this.component.form,Q="".concat(this.subForm.formio.formsUrl,"/").concat(J,"/submission/").concat(K._id);this.subForm.setUrl(Q,this.options),this.subForm.loadSubmission()}else this.subForm.setValue(K,X)}},{key:"isEmpty",value:function(){var K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return null===K||n.default.isEqual(K,this.emptyValue)||this.areAllComponentsEmpty(K.data)&&!K._id}},{key:"areAllComponentsEmpty",value:function(K){var X=!0;return this.subForm?this.subForm.everyComponent(function(me){var J=n.default.get(K,me.key);X&=me.isEmpty(J)}):X=!1,X}},{key:"getValue",value:function(){return this.subForm?this.subForm.getValue():this.dataValue}},{key:"errors",get:function(){var K=w(D(U.prototype),"errors",this);return this.subForm&&(K=K.concat(this.subForm.errors)),K}},{key:"updateSubFormVisibility",value:function(){this.subForm&&(this.subForm.parentVisible=this.visible)}},{key:"isNestedWizard",get:function(){var K,X,me,J,Q;return"wizard"===(null===(K=this.subForm)||void 0===K||null===(X=K._form)||void 0===X?void 0:X.display)&&"wizard"===(null===(me=this.parent)||void 0===me||null===(J=me.parent)||void 0===J||null===(Q=J._form)||void 0===Q?void 0:Q.display)}},{key:"visible",get:function(){return w(D(U.prototype),"visible",this)},set:function(K){var X=this,me=this.isNestedWizard;if(this._visible!==K){if(this._visible=K,!this.subForm&&K)return this.createSubForm(),this.subFormReady.then(function(){X.updateSubFormVisibility(),X.clearOnHide()}),void this.redraw();this.updateSubFormVisibility(),this.clearOnHide(),me?this.rebuild():this.redraw()}!K&&me&&this.root.redraw()}},{key:"parentVisible",get:function(){return w(D(U.prototype),"parentVisible",this)},set:function(K){var X=this;if(this._parentVisible!==K){if(this._parentVisible=K,this.clearOnHide(),!this.subForm&&K)return this.createSubForm(),this.subFormReady.then(function(){X.updateSubFormVisibility()}),void this.redraw();this.updateSubFormVisibility(),this.redraw()}}},{key:"isInternalEvent",value:function(K){switch(K){case"focus":case"blur":case"componentChange":case"componentError":case"error":case"formLoad":case"languageChanged":case"render":case"checkValidity":case"initialized":case"submit":case"submitButton":case"nosubmit":case"updateComponent":case"submitDone":case"submissionDeleted":case"requestDone":case"nextPage":case"prevPage":case"wizardNavigationClicked":case"updateWizardNav":case"restoreDraft":case"saveDraft":case"saveComponent":case"pdfUploaded":return!0;default:return!1}}},{key:"createEmitter",value:function(){var K=new l.default,X=K.emit,me=this;return K.emit=function(J){for(var Q=J.replace("".concat(me.options.namespace,"."),""),re=arguments.length,de=new Array(re>1?re-1:0),te=1;te<re;te++)de[te-1]=arguments[te];X.call.apply(X,[this,J].concat(de)),me.isInternalEvent(Q)||me.emit.apply(me,[Q].concat(de))},K}},{key:"deleteValue",value:function(){w(D(U.prototype),"setValue",this).call(this,null,{noUpdateEvent:!0,noDefault:!0}),this.unset()}}],[{key:"schema",value:function(){for(var K=arguments.length,X=new Array(K),me=0;me<K;me++)X[me]=arguments[me];return o.default.schema.apply(o.default,[{label:"Form",type:"form",key:"form",src:"",reference:!0,form:"",path:"",tableView:!0}].concat(X))}},{key:"builderInfo",get:function(){return{title:"Nested Form",icon:"wpforms",group:"premium",documentation:"/userguide/form-building/premium-components#nested-form",weight:110,schema:U.schema()}}}]),U}(o.default)},1343:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(35720)),o=[e.default.javaScriptValue("Custom Default Value","customDefaultValue","customDefaultValue",120,'<p><h4>Example:</h4><pre>value = data.firstName + " " + data.lastName;</pre></p>','<p><h4>Example:</h4><pre>{"cat": [{"var": "data.firstName"}, " ", {"var": "data.lastName"}]}</pre>'),e.default.javaScriptValue("Calculated Value","calculateValue","calculateValue",130,"<p><h4>Example:</h4><pre>value = data.a + data.b + data.c;</pre></p>",'<p><h4>Example:</h4><pre>{"+": [{"var": "data.a"}, {"var": "data.b"}, {"var": "data.c"}]}</pre><p><a href="http://formio.github.io/formio.js/app/examples/calculated.html" target="_blank" rel="noopener noreferrer">Click here for an example</a></p>'),{weight:140,type:"checkbox",label:"Clear Value When Hidden",key:"clearOnHide",defaultValue:!0,tooltip:"When a field is hidden, clear the value.",input:!0}];y.default=o},49924:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabIndex",ignore:!0},{key:"autofocus",ignore:!0}]},14743:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(25728),i(60228),y.default=[{type:"select",input:!0,dataSrc:"url",data:{url:"/form?limit=1000000&select=_id,title,display"},searchField:"title__regex",template:"<span>{{ item.title }}</span>",valueProperty:"_id",authenticate:!0,label:"Form",key:"form",weight:10,lazyLoad:!1,tooltip:"The form to load within this form component.",validate:{required:!0}},{label:"Lazy Load",inputType:"checkbox",defaultValue:!0,clearOnHide:!0,errorLabel:"",key:"lazyLoad",type:"checkbox",tooltip:"if it is checked, the subform is loaded after navigation to the page with this component within the wizard.",input:!0,customConditional:function(o){var a,l,u,d,s=o.instance,A=o.data,_=null===(a=s.root)||void 0===a||null===(l=a.getComponent("form"))||void 0===l?void 0:l.defaultDownloadedResources.find(function(R){return R._id===A.form}),C="wizard";return(null===(u=s.options)||void 0===u||null===(d=u.editForm)||void 0===d?void 0:d.display)===C&&_&&_.display!==C}},{type:"select",input:!0,dataSrc:"url",data:{url:"/form/{{ data.form }}/v"},searchField:"title__regex",template:"<span>{{ item._vid }}</span>",valueProperty:"_id",authenticate:!0,label:"Form Revision",key:"revision",weight:10,lazyLoad:!0,tooltip:"You can lock the nested form to a specific revision by choosing the revision number here.",customConditional:"show = !!data.form"},{type:"checkbox",input:!0,weight:19,key:"useOriginalRevision",label:"Use Original Revision while Submissions Viewing",tooltip:"Using this option will make form load the original revision (the one which was used to make a submission) when viewing a submission."},{type:"checkbox",input:!0,weight:20,key:"reference",label:"Save as reference",tooltip:"Using this option will save this field as a reference and link its value to the value of the origin record."}]},7125:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function l(){for(var u=arguments.length,d=new Array(u),s=0;s<u;s++)d[s]=arguments[s];return e.default.baseEditForm.apply(e.default,[[{key:"display",components:n.default},{key:"data",components:o.default},{key:"validation",ignore:!0},{key:"conditional",ignore:!0}]].concat(d))},i(34338);var e=a(i(14231)),n=a(i(69480)),o=a(i(35851));function a(u){return u&&u.__esModule?u:{default:u}}},96765:(he,y,i)=>{"use strict";function e(p){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(E){return typeof E}:function(E){return E&&"function"==typeof Symbol&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(p)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(5399),i(41517),i(88052);var n=function o(p){return p&&p.__esModule?p:{default:p}}(i(85943));function l(p,E){for(var b=0;b<E.length;b++){var I=E[b];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(p,d(I.key),I)}}function d(p){var E=function s(p,E){if("object"!==e(p)||null===p)return p;var b=p[Symbol.toPrimitive];if(void 0!==b){var I=b.call(p,E||"default");if("object"!==e(I))return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===E?String:Number)(p)}(p,"string");return"symbol"===e(E)?E:String(E)}function A(){return A=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(E,b,I){var L=function _(p,E){for(;!Object.prototype.hasOwnProperty.call(p,E)&&null!==(p=g(p)););return p}(E,b);if(L){var D=Object.getOwnPropertyDescriptor(L,b);return D.get?D.get.call(arguments.length<3?E:I):D.value}},A.apply(this,arguments)}function R(p,E){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,L){return I.__proto__=L,I})(p,E)}function g(p){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)})(p)}y.default=function(p){!function C(p,E){if("function"!=typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(E&&E.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),Object.defineProperty(p,"prototype",{writable:!1}),E&&R(p,E)}(b,p);var E=function x(p){var E=function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var L,I=g(p);if(E){var D=g(this).constructor;L=Reflect.construct(I,arguments,D)}else L=I.apply(this,arguments);return function f(p,E){if(E&&("object"===e(E)||"function"==typeof E))return E;if(void 0!==E)throw new TypeError("Derived constructors may only return object or undefined");return function k(p){if(void 0===p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(p)}(this,L)}}(b);function b(){return function a(p,E){if(!(p instanceof E))throw new TypeError("Cannot call a class as a function")}(this,b),E.apply(this,arguments)}return function u(p,E,b){E&&l(p.prototype,E),b&&l(p,b),Object.defineProperty(p,"prototype",{writable:!1})}(b,[{key:"defaultSchema",get:function(){return b.schema()}},{key:"inputInfo",get:function(){var L=A(g(b.prototype),"elementInfo",this).call(this);return L.type="input",L.attr.type="hidden",L.changeEvent="change",L}},{key:"skipInEmail",get:function(){return!0}},{key:"validateMultiple",value:function(){return!1}},{key:"labelIsHidden",value:function(){return!0}},{key:"emptyValue",get:function(){return""}},{key:"setValue",value:function(L){return this.updateValue(L,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},{key:"getValue",value:function(){return this.dataValue}}],[{key:"schema",value:function(){for(var L=arguments.length,D=new Array(L),F=0;F<L;F++)D[F]=arguments[F];return n.default.schema.apply(n.default,[{type:"hidden",tableView:!1,inputType:"hidden"}].concat(D))}},{key:"builderInfo",get:function(){return{title:"Hidden",group:"data",icon:"user-secret",weight:0,documentation:"/userguide/form-building/data-components#hidden",showPreview:!1,schema:b.schema()}}}]),b}(n.default)},35851:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"multiple",ignore:!0},{key:"clearOnHide",ignore:!0},{key:"allowCalculateOverride",ignore:!0}]},69480:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"tabindex",ignore:!0},{key:"hidden",ignore:!0},{key:"tableView",ignore:!0},{key:"disabled",ignore:!0}]},47136:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function l(){for(var u=arguments.length,d=new Array(u),s=0;s<u;s++)d[s]=arguments[s];return e.default.baseEditForm.apply(e.default,[[{key:"display",components:n.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"logic",components:o.default}]].concat(d))},i(34338);var e=a(i(14231)),n=a(i(21747)),o=a(i(13187));function a(u){return u&&u.__esModule?u:{default:u}}},18456:(he,y,i)=>{"use strict";function e(E){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(E)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(28436),i(64043),i(57267),i(50886),i(34338),i(5399),i(41517),i(88052);var n=a(i(1681)),o=a(i(6990));function a(E){return E&&E.__esModule?E:{default:E}}function u(E,b){for(var I=0;I<b.length;I++){var L=b[I];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(E,s(L.key),L)}}function s(E){var b=function A(E,b){if("object"!==e(E)||null===E)return E;var I=E[Symbol.toPrimitive];if(void 0!==I){var L=I.call(E,b||"default");if("object"!==e(L))return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(E)}(E,"string");return"symbol"===e(b)?b:String(b)}function _(){return _=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(b,I,L){var D=function C(E,b){for(;!Object.prototype.hasOwnProperty.call(E,b)&&null!==(E=M(E)););return E}(b,I);if(D){var F=Object.getOwnPropertyDescriptor(D,I);return F.get?F.get.call(arguments.length<3?b:L):F.value}},_.apply(this,arguments)}function x(E,b){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,D){return L.__proto__=D,L})(E,b)}function M(E){return(M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(I){return I.__proto__||Object.getPrototypeOf(I)})(E)}y.default=function(E){!function R(E,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(b&&b.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),Object.defineProperty(E,"prototype",{writable:!1}),b&&x(E,b)}(I,E);var b=function f(E){var b=function g(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var D,L=M(E);if(b){var F=M(this).constructor;D=Reflect.construct(L,arguments,F)}else D=L.apply(this,arguments);return function k(E,b){if(b&&("object"===e(b)||"function"==typeof b))return b;if(void 0!==b)throw new TypeError("Derived constructors may only return object or undefined");return function w(E){if(void 0===E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}(E)}(this,D)}}(I);function I(){return function l(E,b){if(!(E instanceof b))throw new TypeError("Cannot call a class as a function")}(this,I),b.apply(this,arguments)}return function d(E,b,I){b&&u(E.prototype,b),I&&u(E,I),Object.defineProperty(E,"prototype",{writable:!1})}(I,[{key:"defaultSchema",get:function(){return I.schema()}},{key:"content",get:function(){if(this.builderMode)return this.component.content;if("select"===this.component.content.replace(/(<(\/?[^>]+)>)/g,"").trim())return" ".concat(this.component.content," ");var D=o.default.get(this.root,"submission",{}),F=this.component.content?this.interpolate(this.component.content,{metadata:D.metadata||{},submission:D,data:this.rootValue,row:this.data}):"";return this.sanitize(F,this.shouldSanitizeValue)}},{key:"singleTags",get:function(){return["br","img","hr"]}},{key:"checkRefreshOn",value:function(D){_(M(I.prototype),"checkRefreshOn",this).call(this,D),!this.builderMode&&this.component.refreshOnChange&&this.element&&!o.default.isUndefined(D)&&(o.default.isBoolean(D)&&D||!o.default.isEmpty(D))&&this.conditionallyVisible(this.data,this.row)&&this.setContent(this.element,this.renderContent())}},{key:"renderContent",value:function(){var D=this,F=o.default.get(this.root,"submission",{});return this.renderTemplate("html",{component:this.component,tag:this.component.tag,attrs:(this.component.attrs||[]).map(function(P){return{attr:P.attr,value:D.interpolate(P.value,{metadata:F.metadata||{},submission:F,data:D.rootValue,row:D.data})}}),content:this.content,singleTags:this.singleTags})}},{key:"render",value:function(){return _(M(I.prototype),"render",this).call(this,this.renderContent())}},{key:"attach",value:function(D){return this.loadRefs(D,{html:"single"}),_(M(I.prototype),"attach",this).call(this,D)}}],[{key:"schema",value:function(){for(var D=arguments.length,F=new Array(D),P=0;P<D;P++)F[P]=arguments[P];return n.default.schema.apply(n.default,[{label:"HTML",type:"htmlelement",tag:"p",attrs:[],content:"",input:!1,persistent:!1}].concat(F))}},{key:"builderInfo",get:function(){return{title:"HTML Element",group:"layout",icon:"code",weight:0,documentation:"/userguide/form-building/layout-components#html-element",showPreview:!1,schema:I.schema()}}}]),I}(n.default)},21747:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"disabled",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0},{type:"textfield",input:!0,key:"tag",weight:50,label:"HTML Tag",placeholder:"HTML Element Tag",tooltip:"The tag of this HTML element."},{type:"textfield",input:!0,key:"className",weight:60,label:"CSS Class",placeholder:"CSS Class",tooltip:"The CSS class for this HTML element."},{type:"datagrid",input:!0,label:"Attributes",key:"attrs",tooltip:"The attributes for this HTML element. Only safe attributes are allowed, such as src, href, and title.",weight:70,components:[{label:"Attribute",key:"attr",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}]},{type:"textarea",input:!0,editor:"ace",rows:10,as:"html",label:"Content",tooltip:"The content of this HTML element.",defaultValue:'<div class="well">Content</div>',key:"content",weight:80},{weight:85,type:"checkbox",label:"Refresh On Change",tooltip:"Rerender the field whenever a value on the form changes.",key:"refreshOnChange",input:!0}]},13187:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"logic",components:[{key:"actions",components:[{key:"actionPanel",components:[{data:{json:[{label:"Hidden",value:"hidden",type:"boolean"},{label:"Required",value:"validate.required",type:"boolean"},{label:"Disabled",value:"disabled",type:"boolean"},{label:"Label",value:"label",type:"string"},{label:"Title",value:"title",type:"string"},{label:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"},{label:"Content",value:"content",type:"string",component:"content"}]},key:"property"},{type:"textarea",editor:"ace",rows:10,as:"html",label:"Content",tooltip:"The content of this HTML element.",defaultValue:'<div class="well">Content</div>',key:"content",weight:30,input:!0,customConditional:function(o){return"property"===o.row.type&&o.row.hasOwnProperty("property")&&"string"===o.row.property.type&&"content"===o.row.property.component}}]}]}]}]},19969:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=fe(i(56110)),n=fe(i(78940)),o=fe(i(50523)),a=fe(i(6123)),l=fe(i(1681)),u=fe(i(52520)),d=fe(i(52952)),s=fe(i(91317)),A=fe(i(33858)),_=fe(i(8125)),C=fe(i(52120)),R=fe(i(48429)),x=fe(i(26487)),f=fe(i(26570)),k=fe(i(84764)),w=fe(i(91940)),g=fe(i(34222)),M=fe(i(81877)),p=fe(i(96765)),E=fe(i(85943)),b=fe(i(8374)),I=fe(i(84984)),L=fe(i(92355)),D=fe(i(18456)),F=fe(i(60211)),P=fe(i(52488)),O=fe(i(26023)),U=fe(i(89407)),V=fe(i(30686)),K=fe(i(38112)),X=fe(i(29772)),me=fe(i(29310)),J=fe(i(56818)),Q=fe(i(26412)),re=fe(i(88803)),de=fe(i(5681)),te=fe(i(5866)),j=fe(i(80188)),H=fe(i(16083)),z=fe(i(9954)),q=fe(i(37501)),se=fe(i(37087)),ne=fe(i(96368)),_e=fe(i(41297)),ge=fe(i(48455)),Ce=fe(i(6909)),Te=fe(i(22500)),De=fe(i(21246));function fe(Oe){return Oe&&Oe.__esModule?Oe:{default:Oe}}y.default={address:e.default,base:l.default,component:l.default,componentmodal:u.default,button:n.default,checkbox:o.default,columns:a.default,container:d.default,content:s.default,currency:A.default,datagrid:_.default,datamap:C.default,datetime:R.default,day:x.default,editgrid:f.default,email:k.default,input:E.default,field:I.default,multivalue:b.default,list:L.default,fieldset:w.default,file:g.default,form:M.default,hidden:p.default,htmlelement:D.default,nested:F.default,nesteddata:P.default,nestedarray:O.default,number:U.default,panel:V.default,password:K.default,phoneNumber:X.default,radio:me.default,recaptcha:J.default,resource:Q.default,select:de.default,selectboxes:re.default,signature:te.default,survey:j.default,table:H.default,tabs:z.default,tags:q.default,textarea:se.default,textfield:ne.default,time:_e.default,tree:ge.default,unknown:Ce.default,url:Te.default,well:De.default}},78674:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function u(){for(var d=arguments.length,s=new Array(d),A=0;A<d;A++)s[A]=arguments[A];return e.default.apply(void 0,[[{key:"display",components:n.default},{key:"data",components:o.default},{key:"validation",components:a.default}]].concat(s))},i(34338);var e=l(i(33062)),n=l(i(73818)),o=l(i(14698)),a=l(i(99550));function l(d){return d&&d.__esModule?d:{default:d}}},89407:(he,y,i)=>{"use strict";function e(P){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(O){return typeof O}:function(O){return O&&"function"==typeof Symbol&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O})(P)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(69358),i(38077),i(49693),i(47522),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(64043),i(57267),i(6203),i(9873),i(32320),i(80939),i(76801),i(43843),i(59588),i(30024),i(60228),i(63945),i(63975),i(50886),i(5399),i(41517),i(88052);var n=i(61635),o=i(61712),a=d(i(6990)),l=i(12866),u=d(i(85943));function d(P){return P&&P.__esModule?P:{default:P}}function s(P,O){var U=Object.keys(P);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(P);O&&(V=V.filter(function(K){return Object.getOwnPropertyDescriptor(P,K).enumerable})),U.push.apply(U,V)}return U}function A(P){for(var O=1;O<arguments.length;O++){var U=null!=arguments[O]?arguments[O]:{};O%2?s(Object(U),!0).forEach(function(V){_(P,V,U[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(U)):s(Object(U)).forEach(function(V){Object.defineProperty(P,V,Object.getOwnPropertyDescriptor(U,V))})}return P}function _(P,O,U){return(O=f(O))in P?Object.defineProperty(P,O,{value:U,enumerable:!0,configurable:!0,writable:!0}):P[O]=U,P}function R(P,O){for(var U=0;U<O.length;U++){var V=O[U];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(P,f(V.key),V)}}function f(P){var O=function k(P,O){if("object"!==e(P)||null===P)return P;var U=P[Symbol.toPrimitive];if(void 0!==U){var V=U.call(P,O||"default");if("object"!==e(V))return V;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===O?String:Number)(P)}(P,"string");return"symbol"===e(O)?O:String(O)}function w(){return w=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(O,U,V){var K=function g(P,O){for(;!Object.prototype.hasOwnProperty.call(P,O)&&null!==(P=D(P)););return P}(O,U);if(K){var X=Object.getOwnPropertyDescriptor(K,U);return X.get?X.get.call(arguments.length<3?O:V):X.value}},w.apply(this,arguments)}function p(P,O){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,K){return V.__proto__=K,V})(P,O)}function D(P){return(D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(U){return U.__proto__||Object.getPrototypeOf(U)})(P)}y.default=function(P){!function M(P,O){if("function"!=typeof O&&null!==O)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(O&&O.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),Object.defineProperty(P,"prototype",{writable:!1}),O&&p(P,O)}(U,P);var O=function E(P){var O=function L(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var K,V=D(P);if(O){var X=D(this).constructor;K=Reflect.construct(V,arguments,X)}else K=V.apply(this,arguments);return function b(P,O){if(O&&("object"===e(O)||"function"==typeof O))return O;if(void 0!==O)throw new TypeError("Derived constructors may only return object or undefined");return function I(P){if(void 0===P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}(P)}(this,K)}}(U);function U(){var V,K;!function C(P,O){if(!(P instanceof O))throw new TypeError("Cannot call a class as a function")}(this,U);for(var X=arguments.length,me=new Array(X),J=0;J<X;J++)me[J]=arguments[J];(K=O.call.apply(O,[this].concat(me))).validators=K.validators.concat(["min","max"]);var re,Q=(0,l.getNumberSeparators)(K.options.language||navigator.language);K.decimalSeparator=K.options.decimalSeparator=K.options.decimalSeparator||(null===(V=K.options.properties)||void 0===V?void 0:V.decimalSeparator)||Q.decimalSeparator,K.component.delimiter?(K.options.hasOwnProperty("thousandsSeparator")&&console.warn("Property 'thousandsSeparator' is deprecated. Please use i18n to specify delimiter."),K.delimiter=(null===(re=K.options.properties)||void 0===re?void 0:re.thousandsSeparator)||K.options.thousandsSeparator||Q.delimiter):K.delimiter="";var de=a.default.get(K.component,"requireDecimal",!1);if(K.decimalLimit=(0,l.getNumberDecimalLimit)(K.component,de?2:20),a.default.has(K.options,"languageOverride.".concat(K.options.language))){var te=a.default.get(K.options,"languageOverride.".concat(K.options.language));K.decimalSeparator=te.decimalSeparator,K.delimiter=te.delimiter}return K.numberMask=K.createNumberMask(),K}return function x(P,O,U){O&&R(P.prototype,O),U&&R(P,U),Object.defineProperty(P,"prototype",{writable:!1})}(U,[{key:"createNumberMask",value:function(){return(0,n.createNumberMask)({prefix:"",suffix:"",requireDecimal:a.default.get(this.component,"requireDecimal",!1),thousandsSeparatorSymbol:a.default.get(this.component,"thousandsSeparator",this.delimiter),decimalSymbol:a.default.get(this.component,"decimalSymbol",this.decimalSeparator),decimalLimit:a.default.get(this.component,"decimalLimit",this.decimalLimit),allowNegative:a.default.get(this.component,"allowNegative",!0),allowDecimal:this.isDecimalAllowed()})}},{key:"defaultSchema",get:function(){return U.schema()}},{key:"defaultValue",get:function(){var K=w(D(U.prototype),"defaultValue",this);return!K&&0===this.component.defaultValue&&(K=this.component.defaultValue),!this.component.multiple&&a.default.isArray(K)&&(K=K[0]||0===K[0]?K[0]:null),K}},{key:"isDecimalAllowed",value:function(){return a.default.get(this.component,"allowDecimal",!(this.component.validate&&this.component.validate.integer))}},{key:"parseNumber",value:function(K){return K=K.split(this.delimiter).join("").replace(this.decimalSeparator,"."),this.component.validate&&this.component.validate.integer?parseInt(K,10):parseFloat(K)}},{key:"setInputMask",value:function(K){var X="[0-9";X+=this.decimalSeparator||"",X+=this.delimiter||"",K.setAttribute("pattern",X+="]*"),K.mask=(0,o.maskInput)({inputElement:K,mask:this.numberMask,shadowRoot:this.root?this.root.shadowRoot:null})}},{key:"inputInfo",get:function(){var K=w(D(U.prototype),"inputInfo",this);return K.attr.type=this.component.mask?"password":"text",K.attr.inputmode=this.isDecimalAllowed()?"decimal":"numeric",K.changeEvent="input",K}},{key:"getValueAt",value:function(K){if(!this.refs.input.length||!this.refs.input[K])return null;var X=this.refs.input[K].value;return X&&"-_"!==X?this.parseNumber(X):null}},{key:"setValueAt",value:function(K,X){var me=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return w(D(U.prototype),"setValueAt",this).call(this,K,this.formatValue(this.parseValue(X)),me)}},{key:"parseValue",value:function(K){"string"==typeof K&&(K=K.split(this.delimiter).join("").replace(this.decimalSeparator,"."));var X=parseFloat(K);return a.default.isNaN(X)?null:String(X).replace(".",this.decimalSeparator)}},{key:"formatValue",value:function(K){return this.component.requireDecimal&&K&&!K.includes(this.decimalSeparator)?"".concat(K).concat(this.decimalSeparator).concat(a.default.repeat("0",this.decimalLimit)):this.component.requireDecimal&&K&&K.includes(this.decimalSeparator)?"".concat(K).concat(a.default.repeat("0",this.decimalLimit-K.split(this.decimalSeparator)[1].length)):K}},{key:"focus",value:function(){var K=this.refs.input[0];K&&(w(D(U.prototype),"focus",this).call(this),K.setSelectionRange(0,K.value.length))}},{key:"getMaskedValue",value:function(K){return(K=null===K?"0":K.toString()).includes(".")&&"."!==this.decimalSeparator&&(K=K.replace(".",this.decimalSeparator)),(0,o.conformToMask)(this.formatValue(K),this.numberMask).conformedValue}},{key:"getValueAsString",value:function(K,X){var me=this;return K||0===K?(K=this.getWidgetValueAsString(K,X),Array.isArray(K)?K.map(function(J){return me.getMaskedValue(J)}).join(", "):this.getMaskedValue(K)):""}},{key:"addFocusBlurEvents",value:function(K){var X=this;w(D(U.prototype),"addFocusBlurEvents",this).call(this,K),this.addEventListener(K,"blur",function(){K.value=X.getValueAsString(X.formatValue(X.parseValue(K.value)))})}}],[{key:"schema",value:function(){for(var K=arguments.length,X=new Array(K),me=0;me<K;me++)X[me]=arguments[me];return u.default.schema.apply(u.default,[{type:"number",label:"Number",key:"number",validate:{min:"",max:"",step:"any",integer:""}}].concat(X))}},{key:"builderInfo",get:function(){return{title:"Number",icon:"hashtag",group:"basic",documentation:"/userguide/form-building/form-components#number",weight:30,schema:U.schema()}}},{key:"serverConditionSettings",get:function(){return{operators:["isEqual","isNotEqual","isEmpty","isNotEmpty","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual"],valueComponent:function(X){return A(A({},X),{},{type:"number"})}}}}]),U}(u.default)},14698:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{type:"checkbox",input:!0,weight:70,key:"delimiter",label:"Use Thousands Separator",tooltip:"Separate thousands by local delimiter."},{type:"number",input:!0,weight:80,key:"decimalLimit",label:"Decimal Places",tooltip:"The maximum number of decimal places."},{type:"checkbox",input:!0,weight:90,key:"requireDecimal",label:"Require Decimal",tooltip:"Always show decimals, even if trailing zeros."},{key:"case",ignore:!0}]},73818:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"spellcheck",ignore:!0},{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},99550:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"unique",ignore:!0},{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0},{key:"validate.pattern",ignore:!0},{type:"number",label:"Minimum Value",key:"validate.min",input:!0,placeholder:"Minimum Value",tooltip:"The minimum value this field must have before the form can be submitted.",weight:150},{type:"number",label:"Maximum Value",key:"validate.max",input:!0,placeholder:"Maximum Value",tooltip:"The maximum value this field can have before the form can be submitted.",weight:160}]},86874:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function l(){for(var u=arguments.length,d=new Array(u),s=0;s<u;s++)d[s]=arguments[s];return e.default.apply(void 0,[[{key:"display",components:n.default},{key:"conditional",components:o.default}]].concat(d))},i(34338);var e=a(i(90700)),n=a(i(21144)),o=a(i(21064));function a(u){return u&&u.__esModule?u:{default:u}}},30686:(he,y,i)=>{"use strict";function e(b){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(I){return typeof I}:function(I){return I&&"function"==typeof Symbol&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I})(b)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(64043),i(57267),i(5399),i(41517),i(88052);var n=l(i(60211)),o=i(12866),a=l(i(81877));function l(b){return b&&b.__esModule?b:{default:b}}function d(b,I){for(var L=0;L<I.length;L++){var D=I[L];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(b,A(D.key),D)}}function A(b){var I=function _(b,I){if("object"!==e(b)||null===b)return b;var L=b[Symbol.toPrimitive];if(void 0!==L){var D=L.call(b,I||"default");if("object"!==e(D))return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===I?String:Number)(b)}(b,"string");return"symbol"===e(I)?I:String(I)}function C(){return C=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(I,L,D){var F=function R(b,I){for(;!Object.prototype.hasOwnProperty.call(b,I)&&null!==(b=p(b)););return b}(I,L);if(F){var P=Object.getOwnPropertyDescriptor(F,L);return P.get?P.get.call(arguments.length<3?I:D):P.value}},C.apply(this,arguments)}function f(b,I){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,F){return D.__proto__=F,D})(b,I)}function g(b){if(void 0===b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function p(b){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(L){return L.__proto__||Object.getPrototypeOf(L)})(b)}y.default=function(b){!function x(b,I){if("function"!=typeof I&&null!==I)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(I&&I.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),I&&f(b,I)}(L,b);var I=function k(b){var I=function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var F,D=p(b);if(I){var P=p(this).constructor;F=Reflect.construct(D,arguments,P)}else F=D.apply(this,arguments);return function w(b,I){if(I&&("object"===e(I)||"function"==typeof I))return I;if(void 0!==I)throw new TypeError("Derived constructors may only return object or undefined");return g(b)}(this,F)}}(L);function L(){var D;!function u(b,I){if(!(b instanceof I))throw new TypeError("Cannot call a class as a function")}(this,L);for(var F=arguments.length,P=new Array(F),O=0;O<F;O++)P[O]=arguments[O];return(D=I.call.apply(I,[this].concat(P))).noField=!0,D.on("componentError",function(){(0,o.hasInvalidComponent)(g(D))&&D.collapsed&&(D.collapsed=!1)}),D}return function s(b,I,L){I&&d(b.prototype,I),L&&d(b,L),Object.defineProperty(b,"prototype",{writable:!1})}(L,[{key:"defaultSchema",get:function(){return L.schema()}},{key:"templateName",get:function(){return"panel"}},{key:"getComponent",value:function(F,P,O){var U;return(null===(U=this.root)||void 0===U?void 0:U.parent)instanceof a.default&&(F=F.replace(this._parentPath,"")),C(p(L.prototype),"getComponent",this).call(this,F,P,O)}}],[{key:"schema",value:function(){for(var F=arguments.length,P=new Array(F),O=0;O<F;O++)P[O]=arguments[O];return n.default.schema.apply(n.default,[{label:"Panel",type:"panel",key:"panel",title:"Panel",theme:"default",breadcrumb:"default",components:[],clearOnHide:!1,input:!1,tableView:!1,persistent:!1}].concat(P))}},{key:"builderInfo",get:function(){return{title:"Panel",icon:"list-alt",group:"layout",documentation:"/userguide/form-building/layout-components#panel",weight:30,schema:L.schema()}}}]),L}(n.default)},21064:(he,y,i)=>{"use strict";i(40739),i(69358),i(38077),i(81919),i(49693),i(47522),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(98742),i(60228),i(69373),i(59903),i(59749),i(86544),i(79288);var e=u(i(35720)),n=u(i(99391)),o=u(i(88791)),a=u(i(14996)),l=u(i(74614));function u(E){return E&&E.__esModule?E:{default:E}}function d(E){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(E)}function s(E,b){var I=Object.keys(E);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(E);b&&(L=L.filter(function(D){return Object.getOwnPropertyDescriptor(E,D).enumerable})),I.push.apply(I,L)}return I}function A(E){for(var b=1;b<arguments.length;b++){var I=null!=arguments[b]?arguments[b]:{};b%2?s(Object(I),!0).forEach(function(L){_(E,L,I[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(I)):s(Object(I)).forEach(function(L){Object.defineProperty(E,L,Object.getOwnPropertyDescriptor(I,L))})}return E}function _(E,b,I){return b=function C(E){var b=function R(E,b){if("object"!==d(E)||null===E)return E;var I=E[Symbol.toPrimitive];if(void 0!==I){var L=I.call(E,b||"default");if("object"!==d(L))return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(E)}(E,"string");return"symbol"===d(b)?b:String(b)}(b),b in E?Object.defineProperty(E,b,{value:I,enumerable:!0,configurable:!0,writable:!0}):E[b]=I,E}var p=[A(A({},e.default.javaScriptValue("Advanced Next Page","nextPage","nextPage",110,"\n  <p>You must assign the <strong>next</strong> variable with the API key of the next page.</p>\n  <p>The global variable <strong>data</strong> is provided, and allows you to access the data of any form component, by using its API key.</p>\n  <p>Also <strong>moment</strong> library is available, and allows you to manipulate dates in a convenient way.</p>\n  <h5>Example</h5><pre>next = data.addComment ? 'page3' : 'page4';</pre>\n","\n  <p>Submission data is available as JsonLogic variables, with the same api key as your components.</p>\n")),{},{customConditional:function(b){var I=!1;if("wizard"===b.instance.options.editForm.display){var L=b.instance.options.editForm.components,D=b.instance.options.editComponent;L&&D&&(I=L.some(function(F){var P=(0,a.default)((0,l.default)(F),(0,l.default)(D))||[];return P.push("components"),(0,n.default)((0,o.default)(F,P),(0,o.default)(D,P))}))}return I}})];y.default=p},21144:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(98742),i(60228);var e=l(i(99391)),n=l(i(88791)),o=l(i(14996)),a=l(i(74614));function l(d){return d&&d.__esModule?d:{default:d}}y.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0},{key:"label",hidden:!0,calculateValue:function(s){return s.data.title}},{key:"tabindex",hidden:!0},{weight:1,type:"textfield",input:!0,placeholder:"Panel Title",label:"Title",key:"title",tooltip:"The title text that appears in the header of this panel."},{weight:20,type:"textarea",input:!0,key:"tooltip",label:"Tooltip",placeholder:"To add a tooltip to this field, enter text here.",tooltip:"Adds a tooltip to the side of this field."},{weight:30,type:"select",input:!0,label:"Theme",key:"theme",dataSrc:"values",data:{values:[{label:"Default",value:"default"},{label:"Primary",value:"primary"},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Danger",value:"danger"},{label:"Warning",value:"warning"}]}},{weight:40,type:"fieldset",input:!1,components:[{type:"select",input:!0,label:"Breadcrumb Type",key:"breadcrumb",dataSrc:"values",data:{values:[{label:"Default",value:"default"},{label:"Condensed",value:"condensed"},{label:"Hidden",value:"none"}]}},{input:!0,type:"checkbox",label:"Allow click on Breadcrumb",key:"breadcrumbClickable",defaultValue:!0,conditional:{json:{"!==":[{var:"data.breadcrumb"},"none"]}}},{input:!0,type:"checkbox",label:"Allow Previous",key:"allowPrevious",defaultValue:!1,tooltip:"Determines if the breadcrumb bar is clickable or not for visited tabs.",conditional:{json:{"===":[{var:"data.breadcrumbClickable"},!1]}}},{weight:50,label:"Panel Navigation Buttons",optionsLabelPosition:"right",values:[{label:"Previous",value:"previous"},{label:"Cancel",value:"cancel"},{label:"Next",value:"next"}],inline:!0,type:"selectboxes",key:"buttonSettings",input:!0,inputType:"checkbox",defaultValue:{previous:!0,cancel:!0,next:!0}},{weight:55,label:"Navigate Wizard on Enter",type:"checkbox",key:"navigateOnEnter",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Use the Enter key to go forward through pages."},{weight:56,label:"Save on Enter",type:"checkbox",key:"saveOnEnter",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Use the Enter key to submit form on last page."},{weight:60,label:"Scroll up on page opening",type:"checkbox",key:"scrollToTop",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Scroll to the top of the wizard page when user navigates to it"}],customConditional:function(s){var A=!1;if("wizard"===s.instance.options.editForm.display){var _=s.instance.options.editForm.components,C=s.instance.options.editComponent;_&&C&&(A=_.some(function(R){var x=(0,o.default)((0,a.default)(R),(0,a.default)(C))||[];return x.push("components"),(0,e.default)((0,n.default)(R,x),(0,n.default)(C,x))}))}return A}},{weight:650,type:"checkbox",label:"Collapsible",tooltip:"If checked, this will turn this Panel into a collapsible panel.",key:"collapsible",input:!0},{weight:651,type:"checkbox",label:"Initially Collapsed",tooltip:"Determines the initial collapsed state of this Panel.",key:"collapsed",input:!0,conditional:{json:{"===":[{var:"data.collapsible"},!0]}}}]},58660:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function u(){for(var d=arguments.length,s=new Array(d),A=0;A<d;A++)s[A]=arguments[A];return e.default.apply(void 0,[[{key:"data",components:o.default},{key:"display",components:n.default},{key:"validation",components:a.default}]].concat(s))},i(34338);var e=l(i(33062)),n=l(i(56578)),o=l(i(89827)),a=l(i(64321));function l(d){return d&&d.__esModule?d:{default:d}}},38112:(he,y,i)=>{"use strict";function e(E){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(E)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(5399),i(41517),i(88052);var n=a(i(96368)),o=a(i(6990));function a(E){return E&&E.__esModule?E:{default:E}}function u(E,b){for(var I=0;I<b.length;I++){var L=b[I];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(E,s(L.key),L)}}function s(E){var b=function A(E,b){if("object"!==e(E)||null===E)return E;var I=E[Symbol.toPrimitive];if(void 0!==I){var L=I.call(E,b||"default");if("object"!==e(L))return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(E)}(E,"string");return"symbol"===e(b)?b:String(b)}function _(){return _=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(b,I,L){var D=function C(E,b){for(;!Object.prototype.hasOwnProperty.call(E,b)&&null!==(E=M(E)););return E}(b,I);if(D){var F=Object.getOwnPropertyDescriptor(D,I);return F.get?F.get.call(arguments.length<3?b:L):F.value}},_.apply(this,arguments)}function x(E,b){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,D){return L.__proto__=D,L})(E,b)}function M(E){return(M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(I){return I.__proto__||Object.getPrototypeOf(I)})(E)}y.default=function(E){!function R(E,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(b&&b.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),Object.defineProperty(E,"prototype",{writable:!1}),b&&x(E,b)}(I,E);var b=function f(E){var b=function g(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var D,L=M(E);if(b){var F=M(this).constructor;D=Reflect.construct(L,arguments,F)}else D=L.apply(this,arguments);return function k(E,b){if(b&&("object"===e(b)||"function"==typeof b))return b;if(void 0!==b)throw new TypeError("Derived constructors may only return object or undefined");return function w(E){if(void 0===E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}(E)}(this,D)}}(I);function I(){return function l(E,b){if(!(E instanceof b))throw new TypeError("Cannot call a class as a function")}(this,I),b.apply(this,arguments)}return function d(E,b,I){b&&u(E.prototype,b),I&&u(E,I),Object.defineProperty(E,"prototype",{writable:!1})}(I,[{key:"defaultSchema",get:function(){return o.default.omit(I.schema(),["protected","tableView"])}},{key:"inputInfo",get:function(){var D=_(M(I.prototype),"inputInfo",this);return D.attr.type="password",D}},{key:"autocompleteDisableAttrName",get:function(){return"new-password"}}],[{key:"schema",value:function(){for(var D=arguments.length,F=new Array(D),P=0;P<D;P++)F[P]=arguments[P];return n.default.schema.apply(n.default,[{type:"password",label:"Password",key:"password",protected:!0,tableView:!1}].concat(F))}},{key:"builderInfo",get:function(){return{title:"Password",icon:"asterisk",group:"basic",documentation:"/userguide/form-building/form-components#password",weight:40,schema:I.schema()}}}]),I}(n.default)},89827:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"inputFormat",ignore:!0},{key:"persistent",ignore:!0},{key:"protected",ignore:!0},{key:"dbIndex",ignore:!0},{key:"encrypted",ignore:!0},{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0},{key:"customDefaultValuePanel",ignore:!0},{key:"calculateValuePanel",ignore:!0},{key:"passwordInfo",weight:0,type:"htmlelement",tag:"div",className:"alert alert-info",content:"Password fields are automatically encrypted using 1-way salted bcrypt hashes. These hashes are also protected and not returned in the API."}]},56578:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{ignore:!0,key:"mask"},{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0}]},64321:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"unique",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},18682:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function a(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return e.default.apply(void 0,[[{key:"display",components:[{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},{key:"validation",components:n.default}]].concat(u))},i(34338);var e=o(i(33062)),n=o(i(32001));function o(l){return l&&l.__esModule?l:{default:l}}},29772:(he,y,i)=>{"use strict";function e(g){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M})(g)}i(60228),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(5399),i(41517),i(88052);var n=function o(g){return g&&g.__esModule?g:{default:g}}(i(96368));function l(g,M){for(var p=0;p<M.length;p++){var E=M[p];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(g,d(E.key),E)}}function d(g){var M=function s(g,M){if("object"!==e(g)||null===g)return g;var p=g[Symbol.toPrimitive];if(void 0!==p){var E=p.call(g,M||"default");if("object"!==e(E))return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===M?String:Number)(g)}(g,"string");return"symbol"===e(M)?M:String(M)}function _(g,M){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,b){return E.__proto__=b,E})(g,M)}function k(g){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)})(g)}y.default=function(g){!function A(g,M){if("function"!=typeof M&&null!==M)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(M&&M.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),M&&_(g,M)}(p,g);var M=function C(g){var M=function f(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var b,E=k(g);if(M){var I=k(this).constructor;b=Reflect.construct(E,arguments,I)}else b=E.apply(this,arguments);return function R(g,M){if(M&&("object"===e(M)||"function"==typeof M))return M;if(void 0!==M)throw new TypeError("Derived constructors may only return object or undefined");return function x(g){if(void 0===g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}(g)}(this,b)}}(p);function p(){return function a(g,M){if(!(g instanceof M))throw new TypeError("Cannot call a class as a function")}(this,p),M.apply(this,arguments)}return function u(g,M,p){M&&l(g.prototype,M),p&&l(g,p),Object.defineProperty(g,"prototype",{writable:!1})}(p,[{key:"defaultSchema",get:function(){return p.schema()}}],[{key:"schema",value:function(){for(var b=arguments.length,I=new Array(b),L=0;L<b;L++)I[L]=arguments[L];return n.default.schema.apply(n.default,[{type:"phoneNumber",label:"Phone Number",key:"phoneNumber",inputType:"tel",inputMask:"(999) 999-9999",inputMode:"decimal",displayMask:""}].concat(I))}},{key:"builderInfo",get:function(){return{title:"Phone Number",group:"advanced",icon:"phone-square",weight:30,documentation:"/userguide/form-building/advanced-components#phone-number",schema:p.schema()}}}]),p}(n.default)},32001:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0},{key:"validate.pattern",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},78208:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function u(){for(var d=arguments.length,s=new Array(d),A=0;A<d;A++)s[A]=arguments[A];return e.default.apply(void 0,[[{key:"display",components:o.default},{key:"data",components:n.default},{key:"validation",components:a.default}]].concat(s))},i(34338);var e=l(i(91130)),n=l(i(21171)),o=l(i(304)),a=l(i(77628));function l(d){return d&&d.__esModule?d:{default:d}}},29310:(he,y,i)=>{"use strict";function e(V){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(K){return typeof K}:function(K){return K&&"function"==typeof Symbol&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K})(V)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(63975),i(84254),i(21694),i(77049),i(89730),i(64043),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34284),i(34338),i(752),i(60228),i(76265),i(49693),i(47522),i(30024),i(63945),i(98742),i(39772),i(25728),i(80939),i(5399),i(41517),i(88052);var n=d(i(6990)),o=d(i(92355)),a=d(i(73808)),l=i(55798),u=i(12866);function d(V){return V&&V.__esModule?V:{default:V}}function x(V,K){(null==K||K>V.length)&&(K=V.length);for(var X=0,me=new Array(K);X<K;X++)me[X]=V[X];return me}function k(V,K){for(var X=0;X<K.length;X++){var me=K[X];me.enumerable=me.enumerable||!1,me.configurable=!0,"value"in me&&(me.writable=!0),Object.defineProperty(V,g(me.key),me)}}function g(V){var K=function M(V,K){if("object"!==e(V)||null===V)return V;var X=V[Symbol.toPrimitive];if(void 0!==X){var me=X.call(V,K||"default");if("object"!==e(me))return me;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===K?String:Number)(V)}(V,"string");return"symbol"===e(K)?K:String(K)}function p(){return p=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(K,X,me){var J=function E(V,K){for(;!Object.prototype.hasOwnProperty.call(V,K)&&null!==(V=O(V)););return V}(K,X);if(J){var Q=Object.getOwnPropertyDescriptor(J,X);return Q.get?Q.get.call(arguments.length<3?K:me):Q.value}},p.apply(this,arguments)}function I(V,K){return(I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(me,J){return me.__proto__=J,me})(V,K)}function O(V){return(O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(X){return X.__proto__||Object.getPrototypeOf(X)})(V)}y.default=function(V){!function b(V,K){if("function"!=typeof K&&null!==K)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(K&&K.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),Object.defineProperty(V,"prototype",{writable:!1}),K&&I(V,K)}(X,V);var K=function L(V){var K=function P(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var J,me=O(V);if(K){var Q=O(this).constructor;J=Reflect.construct(me,arguments,Q)}else J=me.apply(this,arguments);return function D(V,K){if(K&&("object"===e(K)||"function"==typeof K))return K;if(void 0!==K)throw new TypeError("Derived constructors may only return object or undefined");return function F(V){if(void 0===V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V}(V)}(this,J)}}(X);function X(me,J,Q){var re;return function f(V,K){if(!(V instanceof K))throw new TypeError("Cannot call a class as a function")}(this,X),(re=K.call(this,me,J,Q)).previousValue=re.dataValue||null,re}return function w(V,K,X){K&&k(V.prototype,K),X&&k(V,X),Object.defineProperty(V,"prototype",{writable:!1})}(X,[{key:"defaultSchema",get:function(){return X.schema()}},{key:"defaultValue",get:function(){var J=p(O(X.prototype),"defaultValue",this);return!J&&!1===this.component.defaultValue&&(J=this.component.defaultValue),J}},{key:"inputInfo",get:function(){var J,Q=p(O(X.prototype),"elementInfo",this).call(this);return Q.type="input",Q.changeEvent="click",Q.attr.class="form-check-input",Q.attr.name=Q.attr.name+="[".concat(null===(J=this.root)||void 0===J?void 0:J.id,"-").concat(this.id,"]"),Q}},{key:"emptyValue",get:function(){return""}},{key:"isRadio",get:function(){return"radio"===this.component.inputType}},{key:"optionSelectedClass",get:function(){return"radio-selected"}},{key:"listData",get:function(){var J=n.default.get(this.root,"submission.metadata.listData",{});return n.default.get(J,this.path)}},{key:"init",value:function(){var J=this;p(O(X.prototype),"init",this).call(this),this.templateData={},this.validators=this.validators.concat(["select","onlyAvailableItems","availableValueProperty"]);var Q=[],re=n.default.debounce(function(){Q=[];for(var de=arguments.length,te=new Array(de),j=0;j<de;j++)te[j]=arguments[j];return J.updateItems.apply(J,te)},100);this.triggerUpdate=function(){"function"==typeof J.itemsLoadedResolve&&J.itemsLoadedResolve(),J.itemsLoaded=new a.default(function(H){J.itemsLoadedResolve=H});for(var de=arguments.length,te=new Array(de),j=0;j<de;j++)te[j]=arguments[j];return te.length&&(Q=te),re.apply(void 0,function s(V){return function R(V){if(Array.isArray(V))return x(V)}(V)||function C(V){if(typeof Symbol<"u"&&null!=V[Symbol.iterator]||null!=V["@@iterator"])return Array.from(V)}(V)||function _(V,K){if(V){if("string"==typeof V)return x(V,K);var X=Object.prototype.toString.call(V).slice(8,-1);if("Object"===X&&V.constructor&&(X=V.constructor.name),"Map"===X||"Set"===X)return Array.from(V);if("Arguments"===X||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X))return x(V,K)}}(V)||function A(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Q))},this.itemsLoaded=new a.default(function(de){J.itemsLoadedResolve=de}),this.optionsLoaded=!1,this.loadedOptions=[],this.getTemplateKeys()}},{key:"render",value:function(){return p(O(X.prototype),"render",this).call(this,this.renderTemplate("radio",{input:this.inputInfo,inline:this.component.inline,values:"values"===this.component.dataSrc?this.component.values:this.loadedOptions,value:this.dataValue,row:this.row}))}},{key:"attach",value:function(J){var Q=this;return this.loadRefs(J,{input:"multiple",wrapper:"multiple"}),this.refs.input.forEach(function(re,de){if(Q.addEventListener(re,Q.inputInfo.changeEvent,function(){Q.updateValue(null,{modified:!0})}),Q.component.values[de]&&Q.addShortcut(re,Q.component.values[de].shortcut),Q.isRadio){var te=Q.dataValue;n.default.isString(Q.dataValue)||(te=n.default.toString(Q.dataValue)),re.checked=Q.isSelectURL&&n.default.isObject(Q.loadedOptions[de].value)?n.default.isEqual(Q.loadedOptions[de].value,Q.dataValue):te===re.value&&(re.value||"url"!==Q.component.dataSrc),Q.addEventListener(re,"keyup",function(j){" "===j.key&&te===re.value&&(j.preventDefault(),Q.updateValue(null,{modified:!0}))})}}),this.triggerUpdate(),this.setSelectedClasses(),p(O(X.prototype),"attach",this).call(this,J)}},{key:"detach",value:function(J){var Q=this;J&&this.refs.input&&this.refs.input.forEach(function(re,de){Q.component.values[de]&&Q.removeShortcut(re,Q.component.values[de].shortcut)}),p(O(X.prototype),"detach",this).call(this)}},{key:"getValue",value:function(){var J=this;if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var Q=this.dataValue;return this.refs.input.forEach(function(re,de){re.checked&&(Q=J.isSelectURL&&n.default.isObject(J.loadedOptions[de].value)?J.loadedOptions[de].value:re.value)}),Q}},{key:"validateValueProperty",value:function(){var J=this;return"values"===this.component.dataSrc||!n.default.some(this.refs.wrapper,function(Q,re){return J.refs.input[re].checked&&J.loadedOptions[re].invalid})}},{key:"validateValueAvailability",value:function(J,Q){var re=this;if(!(0,u.boolValue)(J)||!Q)return!0;var de=this.component.values;return!!de&&-1!==de.findIndex(function(te){return re.normalizeValue(te.value)===Q})}},{key:"getValueAsString",value:function(J){if(n.default.isObject(J)?J=JSON.stringify(J):n.default.isString(J)||(J=n.default.toString(J)),"values"!==this.component.dataSrc)return J;var Q=n.default.find(this.component.values,function(re){return re.value===J});return n.default.get(Q,"label","")}},{key:"setValueAt",value:function(J,Q){this.refs.input&&this.refs.input[J]&&null!=Q&&(this.refs.input[J].checked=this.refs.input[J].value===Q.toString())}},{key:"loadItems",value:function(J,Q,re,de,te,j){var H=this;if(!this.optionsLoaded){if(!this.shouldLoad&&this.listData)return void this.loadItemsFromMetadata();"GET"===(te=te||"GET").toUpperCase()&&(j=null),de.ignoreCache=this.component.ignoreCache,de.header=re,this.loading=!0,l.GlobalFormio.makeRequest(this.options.formio,"select",J,te,j,de).then(function(z){H.loading=!1,H.error=null,H.setItems(z),H.optionsLoaded=!0,H.redraw()}).catch(function(z){H.handleLoadingError(z)})}}},{key:"loadItemsFromMetadata",value:function(){var J=this;this.listData.forEach(function(Q,re){J.loadedOptions[re]={label:J.itemTemplate(Q)},n.default.isEqual(Q,J.selectData||n.default.pick(J.dataValue,n.default.keys(Q)))&&(J.loadedOptions[re].value=J.dataValue)}),this.optionsLoaded=!0,this.redraw()}},{key:"setItems",value:function(J){var Q=this,re=[];if(J?.forEach(function(te,j){Q.loadedOptions[j]={value:Q.component.valueProperty?te[Q.component.valueProperty]:te,label:Q.component.valueProperty?Q.itemTemplate(te,te[Q.component.valueProperty]):Q.itemTemplate(te,te,j)},re.push(Q.templateData[Q.component.valueProperty?te[Q.component.valueProperty]:j]),(Q.component.valueProperty||!Q.isRadio)&&(n.default.isUndefined(te[Q.component.valueProperty])||!Q.isRadio&&n.default.isObject(te[Q.component.valueProperty])||!Q.isRadio&&n.default.isBoolean(te[Q.component.valueProperty]))&&(Q.loadedOptions[j].invalid=!0)}),this.isSelectURL){var de=this.root.submission;de.metadata||(de.metadata={}),de.metadata.listData||(de.metadata.listData={}),n.default.set(de.metadata.listData,this.path,re)}}},{key:"setSelectedClasses",value:function(){var J=this;if(this.refs.wrapper){var Q=this.dataValue;this.refs.wrapper.forEach(function(re,de){var te=J.refs.input[de];("checkbox"===te.type?Q[te.value]:te.value.toString()===Q.toString())?(J.addClass(re,J.optionSelectedClass),te.setAttribute("checked","true")):(J.removeClass(re,J.optionSelectedClass),te.removeAttribute("checked"))})}}},{key:"updateValue",value:function(J,Q){var re=p(O(X.prototype),"updateValue",this).call(this,J,Q);return re&&this.setSelectedClasses(),Q&&Q.modified&&this.isRadio?(this.currentValue=this.dataValue,Q&&Q.modified&&!Q.noUpdateEvent&&this.previousValue===this.currentValue&&(this.resetValue(),this.triggerChange(Q),this.setSelectedClasses()),this.previousValue=this.dataValue,re):(re&&(this.previousValue=this.dataValue),re)}},{key:"normalizeValue",value:function(J){if(J===this.emptyValue)return J;if(!isNaN(parseFloat(J))&&isFinite(J)&&(J=+J),"true"===J&&(J=!0),"false"===J&&(J=!1),this.isSelectURL&&this.templateData&&this.templateData[J]){var Q=this.root.submission;Q.metadata.selectData||(Q.metadata.selectData={}),n.default.set(Q.metadata.selectData,this.path,this.templateData[J])}return p(O(X.prototype),"normalizeValue",this).call(this,J)}}],[{key:"schema",value:function(){for(var J=arguments.length,Q=new Array(J),re=0;re<J;re++)Q[re]=arguments[re];return o.default.schema.apply(o.default,[{type:"radio",inputType:"radio",label:"Radio",key:"radio",values:[{label:"",value:""}],data:{url:""},fieldSet:!1}].concat(Q))}},{key:"builderInfo",get:function(){return{title:"Radio",group:"basic",icon:"dot-circle-o",weight:80,documentation:"/userguide/form-building/form-components#radio",schema:X.schema()}}}]),X}(o.default)},21171:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(25847),i(752),i(60228),i(76265);var e=o(i(24845)),n=o(i(6990));function o(l){return l&&l.__esModule?l:{default:l}}y.default=[{key:"multiple",ignore:!0},{key:"dataSrc",data:{values:[{label:"Values",value:"values"},{label:"URL",value:"url"}]},validate:{required:!0},onChange:function(u){u&&u.flags&&u.flags&&u.flags.modified&&(u.data.values=[{label:"",value:""}])}},{type:"datagrid",input:!0,label:"Values",key:"values",tooltip:"The radio button values that can be picked for this field. Values are text submitted with the form data. Labels are text that appears next to the radio buttons on the form.",weight:10,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:"value = _.camelCase(row.label);",validate:{required:!0}},{type:"select",input:!0,weight:180,label:"Shortcut",key:"shortcut",tooltip:"The shortcut key for this option.",dataSrc:"custom",valueProperty:"value",customDefaultValue:function(){return""},template:"{{ item.label }}",data:{custom:function(u){return e.default.getAvailableShortcuts(n.default.get(u,"instance.options.editForm",{}),n.default.get(u,"instance.options.editComponent",{}))}}}],conditional:{json:{"===":[{var:"data.dataSrc"},"values"]}}},{key:"template",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}}]},304:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"placeholder",ignore:!0},{type:"select",input:!0,label:"Options Label Position",key:"optionsLabelPosition",tooltip:"Position for the label for options for this field.",dataSrc:"values",weight:32,defaultValue:"right",data:{values:[{label:"Top",value:"top"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Bottom",value:"bottom"}]}},{type:"checkbox",input:!0,key:"inline",label:"Inline Layout",tooltip:"Displays the checkboxes/radios horizontally.",weight:650}]},77628:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"validateOn",ignore:!0},{key:"unique",ignore:!0},{weight:52,type:"checkbox",label:"Allow only available values",tooltip:"Check this if you would like to perform a validation check to ensure the selected value is an available option.",key:"validate.onlyAvailableItems",input:!0}]},83037:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function a(){return e.default.baseEditForm([{key:"display",components:n.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"conditional",ignore:!0},{key:"logic",ignore:!0}])};var e=o(i(14231)),n=o(i(61889));function o(l){return l&&l.__esModule?l:{default:l}}},56818:(he,y,i)=>{"use strict";function e(P){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(O){return typeof O}:function(O){return O&&"function"==typeof Symbol&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O})(P)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(69358),i(38077),i(49693),i(47522),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34284),i(34338),i(5399),i(41517),i(88052);var n=d(i(1681)),o=i(55798),a=d(i(55440)),l=d(i(64430)),u=d(i(73808));function d(P){return P&&P.__esModule?P:{default:P}}function s(P,O){var U=Object.keys(P);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(P);O&&(V=V.filter(function(K){return Object.getOwnPropertyDescriptor(P,K).enumerable})),U.push.apply(U,V)}return U}function A(P){for(var O=1;O<arguments.length;O++){var U=null!=arguments[O]?arguments[O]:{};O%2?s(Object(U),!0).forEach(function(V){_(P,V,U[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(U)):s(Object(U)).forEach(function(V){Object.defineProperty(P,V,Object.getOwnPropertyDescriptor(U,V))})}return P}function _(P,O,U){return(O=f(O))in P?Object.defineProperty(P,O,{value:U,enumerable:!0,configurable:!0,writable:!0}):P[O]=U,P}function R(P,O){for(var U=0;U<O.length;U++){var V=O[U];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(P,f(V.key),V)}}function f(P){var O=function k(P,O){if("object"!==e(P)||null===P)return P;var U=P[Symbol.toPrimitive];if(void 0!==U){var V=U.call(P,O||"default");if("object"!==e(V))return V;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===O?String:Number)(P)}(P,"string");return"symbol"===e(O)?O:String(O)}function w(){return w=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(O,U,V){var K=function g(P,O){for(;!Object.prototype.hasOwnProperty.call(P,O)&&null!==(P=D(P)););return P}(O,U);if(K){var X=Object.getOwnPropertyDescriptor(K,U);return X.get?X.get.call(arguments.length<3?O:V):X.value}},w.apply(this,arguments)}function p(P,O){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,K){return V.__proto__=K,V})(P,O)}function D(P){return(D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(U){return U.__proto__||Object.getPrototypeOf(U)})(P)}y.default=function(P){!function M(P,O){if("function"!=typeof O&&null!==O)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(O&&O.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),Object.defineProperty(P,"prototype",{writable:!1}),O&&p(P,O)}(U,P);var O=function E(P){var O=function L(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var K,V=D(P);if(O){var X=D(this).constructor;K=Reflect.construct(V,arguments,X)}else K=V.apply(this,arguments);return function b(P,O){if(O&&("object"===e(O)||"function"==typeof O))return O;if(void 0!==O)throw new TypeError("Derived constructors may only return object or undefined");return function I(P){if(void 0===P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}(P)}(this,K)}}(U);function U(){return function C(P,O){if(!(P instanceof O))throw new TypeError("Cannot call a class as a function")}(this,U),O.apply(this,arguments)}return function x(P,O,U){O&&R(P.prototype,O),U&&R(P,U),Object.defineProperty(P,"prototype",{writable:!1})}(U,[{key:"render",value:function(){return this.recaptchaResult=null,this.builderMode?w(D(U.prototype),"render",this).call(this,"reCAPTCHA"):w(D(U.prototype),"render",this).call(this,"",!0)}},{key:"createInput",value:function(){if(this.builderMode)this.append(this.text(this.name));else{var K=(0,a.default)(this.root.form,"settings.recaptcha.siteKey");if(K){var X="https://www.google.com/recaptcha/api.js?render=".concat(K);this.recaptchaApiReady=o.GlobalFormio.requireLibrary("googleRecaptcha","grecaptcha",X,!0)}else console.warn("There is no Site Key specified in settings in form JSON")}}},{key:"createLabel",value:function(){}},{key:"verify",value:function(K){var X=this,me=(0,a.default)(this.root.form,"settings.recaptcha.siteKey");if(me){if(!this.recaptchaApiReady){var J="https://www.google.com/recaptcha/api.js?render=".concat((0,a.default)(this.root.form,"settings.recaptcha.siteKey"));this.recaptchaApiReady=o.GlobalFormio.requireLibrary("googleRecaptcha","grecaptcha",J,!0)}this.recaptchaApiReady&&(this.recaptchaVerifiedPromise=new u.default(function(Q,re){X.recaptchaApiReady.then(function(){X.isLoading||(X.isLoading=!0,grecaptcha.ready((0,l.default)(function(){grecaptcha.execute(me,{action:K}).then(function(de){return X.sendVerificationRequest(de).then(function(te){var j=te.verificationResult,H=te.token;return X.recaptchaResult=A(A({},j),{},{token:H}),X.updateValue(X.recaptchaResult),Q(j)})}).catch(function(){X.isLoading=!1})},1e3)))}).catch(function(){return re()})}).then(function(){X.isLoading=!1}))}else console.warn("There is no Site Key specified in settings in form JSON")}},{key:"beforeSubmit",value:function(){var K=this;return this.recaptchaVerifiedPromise?this.recaptchaVerifiedPromise.then(function(){return w(D(U.prototype),"beforeSubmit",K).call(K)}):w(D(U.prototype),"beforeSubmit",this).call(this)}},{key:"sendVerificationRequest",value:function(K){return o.GlobalFormio.makeStaticRequest("".concat(o.GlobalFormio.projectUrl,"/recaptcha?recaptchaToken=").concat(K)).then(function(X){return{verificationResult:X,token:K}})}},{key:"checkComponentValidity",value:function(K,X,me){var J=this,Q=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};K=K||this.rootValue,me=me||this.data;var re=Q.async;if(void 0===re||!re)return w(D(U.prototype),"checkComponentValidity",this).call(this,K,X,me,Q);var te=me[this.component.key];return te&&te.token?te.success?this.hook("validateReCaptcha",te.token,function(){return u.default.resolve(!0)}).then(function(j){return j}).catch(function(j){return J.setCustomValidity(j.message||j),!1}):(this.setCustomValidity("ReCAPTCHA: Token validation error"),u.default.resolve(!1)):(this.setCustomValidity("ReCAPTCHA: Token is not specified in submission"),u.default.resolve(!1))}},{key:"normalizeValue",value:function(K){return this.recaptchaResult?this.recaptchaResult:K}}],[{key:"schema",value:function(){for(var K=arguments.length,X=new Array(K),me=0;me<K;me++)X[me]=arguments[me];return n.default.schema.apply(n.default,[{type:"recaptcha",key:"recaptcha",label:"reCAPTCHA"}].concat(X))}},{key:"builderInfo",get:function(){return{title:"reCAPTCHA",group:"premium",icon:"refresh",documentation:"/userguide/form-building/premium-components#recaptcha",weight:40,schema:U.schema()}}}]),U}(n.default)},61889:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=i(12866);y.default=[{key:"eventType",label:"Type of event",tooltip:"Specify type of event that this reCAPTCHA would react to",type:"radio",values:[{label:"Form Load",value:"formLoad"},{label:"Button Click",value:"buttonClick"}],weight:650},{type:"select",input:!0,label:"Button Key",key:"buttonKey",dataSrc:"custom",valueProperty:"value",tooltip:"Specify key of button on this form that this reCAPTCHA should react to",weight:660,customConditional:function(a){return"buttonClick"===a.data.eventType},data:{custom:function(a){return(0,e.getContextButtons)(a)}}},{key:"label",ignore:!0},{key:"hideLabel",ignore:!0},{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"errorLabel",ignore:!0},{key:"customClass",ignore:!0},{key:"tabindex",ignore:!0},{key:"multiple",ignore:!0},{key:"clearOnHide",ignore:!0},{key:"hidden",ignore:!0},{key:"mask",ignore:!0},{key:"dataGridLabel",ignore:!0},{key:"disabled",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0}]},57577:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function a(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return e.default.baseEditForm.apply(e.default,[[{key:"display",components:n.default}]].concat(u))},i(34338);var e=o(i(14231)),n=o(i(60129));function o(l){return l&&l.__esModule?l:{default:l}}},26412:(he,y,i)=>{"use strict";function e(p){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(E){return typeof E}:function(E){return E&&"function"==typeof Symbol&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(p)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(5399),i(41517),i(88052);var n=function o(p){return p&&p.__esModule?p:{default:p}}(i(5681));function l(p,E){for(var b=0;b<E.length;b++){var I=E[b];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(p,d(I.key),I)}}function d(p){var E=function s(p,E){if("object"!==e(p)||null===p)return p;var b=p[Symbol.toPrimitive];if(void 0!==b){var I=b.call(p,E||"default");if("object"!==e(I))return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===E?String:Number)(p)}(p,"string");return"symbol"===e(E)?E:String(E)}function A(){return A=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(E,b,I){var L=function _(p,E){for(;!Object.prototype.hasOwnProperty.call(p,E)&&null!==(p=g(p)););return p}(E,b);if(L){var D=Object.getOwnPropertyDescriptor(L,b);return D.get?D.get.call(arguments.length<3?E:I):D.value}},A.apply(this,arguments)}function R(p,E){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,L){return I.__proto__=L,I})(p,E)}function g(p){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)})(p)}y.default=function(p){!function C(p,E){if("function"!=typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(E&&E.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),Object.defineProperty(p,"prototype",{writable:!1}),E&&R(p,E)}(b,p);var E=function x(p){var E=function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var L,I=g(p);if(E){var D=g(this).constructor;L=Reflect.construct(I,arguments,D)}else L=I.apply(this,arguments);return function f(p,E){if(E&&("object"===e(E)||"function"==typeof E))return E;if(void 0!==E)throw new TypeError("Derived constructors may only return object or undefined");return function k(p){if(void 0===p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(p)}(this,L)}}(b);function b(){return function a(p,E){if(!(p instanceof E))throw new TypeError("Cannot call a class as a function")}(this,b),E.apply(this,arguments)}return function u(p,E,b){E&&l(p.prototype,E),b&&l(p,b),Object.defineProperty(p,"prototype",{writable:!1})}(b,[{key:"init",value:function(){A(g(b.prototype),"init",this).call(this),this.component.dataSrc="resource",this.component.data={resource:this.component.resource}}},{key:"defaultSchema",get:function(){return b.schema()}}],[{key:"schema",value:function(){for(var L=arguments.length,D=new Array(L),F=0;F<L;F++)D[F]=arguments[F];return n.default.schema.apply(n.default,[{type:"resource",label:"Resource",key:"resource",dataSrc:"resource",resource:"",project:"",template:"<span>{{ item.data }}</span>"}].concat(D))}},{key:"builderInfo",get:function(){return{title:"Resource",icon:"files-o",weight:90,documentation:"/userguide/form-building/form-components#resource",schema:b.schema()}}}]),b}(n.default)},60129:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"resourceInfo",weight:-10,type:"htmlelement",tag:"div",className:"alert alert-danger",content:"This component has been deprecated and will be removed in a future version of Formio.js."},{type:"select",input:!0,dataSrc:"url",data:{url:"/form?type=resource&limit=1000000&select=_id,title"},authenticate:!0,template:"<span>{{ item.title }}</span>",valueProperty:"_id",label:"Resource",key:"resource",weight:50,tooltip:"The resource to be used with this field."},{type:"tags",input:!0,key:"selectFields",label:"Select Fields",tooltip:"The properties on the resource to return as part of the options. If left blank, all properties will be returned.",placeholder:"Enter the fields to select.",weight:51},{type:"tags",input:!0,key:"searchFields",label:"Search Fields",tooltip:"A list of search filters based on the fields of the resource. See the <a target='_blank' href='https://github.com/travist/resourcejs#filtering-the-results'>Resource.js documentation</a> for the format of these filters.",placeholder:"The fields to query on the server",weight:52},{type:"textfield",input:!0,key:"filter",label:"Filter Query",weight:53,description:"The filter query for results.",tooltip:"Use this to provide additional filtering using query parameters."},{type:"textfield",input:!0,key:"sort",label:"Sort Query",weight:53,description:"The sort query for results",tooltip:"Use this to provide additional sorting using query parameters"},{type:"textarea",input:!0,key:"template",label:"Item Template",editor:"ace",as:"html",rows:3,weight:53,tooltip:"The HTML template for the result data items."},{type:"checkbox",input:!0,weight:54,key:"addResource",label:"Add Resource",tooltip:"Allows to create a new resource while entering a submission.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",label:"Add Resource Label",key:"addResourceLabel",tooltip:"Set the text of the Add Resource button.",placeholder:"Add Resource",weight:55,input:!0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!!":{var:"data.addResource"}}]}}}]},59984:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function u(){for(var d=arguments.length,s=new Array(d),A=0;A<d;A++)s[A]=arguments[A];return e.default.apply(void 0,[[{key:"display",components:o.default},{key:"data",components:n.default},{key:"validation",components:a.default}]].concat(s))},i(34338);var e=l(i(91130)),n=l(i(89634)),o=l(i(65682)),a=l(i(78534));function l(d){return d&&d.__esModule?d:{default:d}}},5681:(he,y,i)=>{"use strict";i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(45247),i(84254),i(21694),i(77049),i(89730),i(34284),i(99474),i(35082),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(25728),i(60228),i(30024),i(63945),i(63975),i(50886),i(64043),i(81386),i(28436),i(6203),i(32320),i(2918),i(65137),i(76801),i(43843),i(38077),i(60429),i(278),i(41517),i(69358),i(49693),i(47522),i(79288),i(45993),i(82243),i(39772),i(57267),i(752),i(76265),i(98742),i(5399),i(88052);var Q,e=d(i(6990)),n=i(55798),o=d(i(92355)),a=d(i(20833)),l=d(i(73808)),u=i(12866);function d(de){return de&&de.__esModule?de:{default:de}}function s(de){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(te){return typeof te}:function(te){return te&&"function"==typeof Symbol&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te})(de)}function A(de,te){var j=Object.keys(de);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(de);te&&(H=H.filter(function(z){return Object.getOwnPropertyDescriptor(de,z).enumerable})),j.push.apply(j,H)}return j}function _(de){for(var te=1;te<arguments.length;te++){var j=null!=arguments[te]?arguments[te]:{};te%2?A(Object(j),!0).forEach(function(H){I(de,H,j[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(de,Object.getOwnPropertyDescriptors(j)):A(Object(j)).forEach(function(H){Object.defineProperty(de,H,Object.getOwnPropertyDescriptor(j,H))})}return de}function C(de){return function k(de){if(Array.isArray(de))return w(de)}(de)||function f(de){if(typeof Symbol<"u"&&null!=de[Symbol.iterator]||null!=de["@@iterator"])return Array.from(de)}(de)||function x(de,te){if(de){if("string"==typeof de)return w(de,te);var j=Object.prototype.toString.call(de).slice(8,-1);if("Object"===j&&de.constructor&&(j=de.constructor.name),"Map"===j||"Set"===j)return Array.from(de);if("Arguments"===j||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j))return w(de,te)}}(de)||function R(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(de,te){(null==te||te>de.length)&&(te=de.length);for(var j=0,H=new Array(te);j<te;j++)H[j]=de[j];return H}function M(de,te){for(var j=0;j<te.length;j++){var H=te[j];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(de,L(H.key),H)}}function E(de,te,j,H){return(E=typeof Reflect<"u"&&Reflect.set?Reflect.set:function(q,se,ne,_e){var Ce,ge=P(q,se);if(ge){if((Ce=Object.getOwnPropertyDescriptor(ge,se)).set)return Ce.set.call(_e,ne),!0;if(!Ce.writable)return!1}if(Ce=Object.getOwnPropertyDescriptor(_e,se)){if(!Ce.writable)return!1;Ce.value=ne,Object.defineProperty(_e,se,Ce)}else I(_e,se,ne);return!0})(de,te,j,H)}function b(de,te,j,H,z){if(!E(de,te,j,H||de)&&z)throw new Error("failed to set property");return j}function I(de,te,j){return(te=L(te))in de?Object.defineProperty(de,te,{value:j,enumerable:!0,configurable:!0,writable:!0}):de[te]=j,de}function L(de){var te=function D(de,te){if("object"!==s(de)||null===de)return de;var j=de[Symbol.toPrimitive];if(void 0!==j){var H=j.call(de,te||"default");if("object"!==s(H))return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===te?String:Number)(de)}(de,"string");return"symbol"===s(te)?te:String(te)}function F(){return F=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(te,j,H){var z=P(te,j);if(z){var q=Object.getOwnPropertyDescriptor(z,j);return q.get?q.get.call(arguments.length<3?te:H):q.value}},F.apply(this,arguments)}function P(de,te){for(;!Object.prototype.hasOwnProperty.call(de,te)&&null!==(de=J(de)););return de}function U(de,te){return(U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,z){return H.__proto__=z,H})(de,te)}function J(de){return(J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(j){return j.__proto__||Object.getPrototypeOf(j)})(de)}typeof window<"u"&&(Q=i(32574).ZP),y.default=function(de){!function O(de,te){if("function"!=typeof te&&null!==te)throw new TypeError("Super expression must either be null or a function");de.prototype=Object.create(te&&te.prototype,{constructor:{value:de,writable:!0,configurable:!0}}),Object.defineProperty(de,"prototype",{writable:!1}),te&&U(de,te)}(j,de);var te=function V(de){var te=function me(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var z,H=J(de);if(te){var q=J(this).constructor;z=Reflect.construct(H,arguments,q)}else z=H.apply(this,arguments);return function K(de,te){if(te&&("object"===s(te)||"function"==typeof te))return te;if(void 0!==te)throw new TypeError("Derived constructors may only return object or undefined");return function X(de){if(void 0===de)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de}(de)}(this,z)}}(j);function j(){return function g(de,te){if(!(de instanceof te))throw new TypeError("Cannot call a class as a function")}(this,j),te.apply(this,arguments)}return function p(de,te,j){te&&M(de.prototype,te),j&&M(de,j),Object.defineProperty(de,"prototype",{writable:!1})}(j,[{key:"init",value:function(){var z=this;F(J(j.prototype),"init",this).call(this),this.templateData={},this.validators=this.validators.concat(["select","onlyAvailableItems"]);var q=[],se=e.default.debounce(function(){q=[];for(var ne=arguments.length,_e=new Array(ne),ge=0;ge<ne;ge++)_e[ge]=arguments[ge];return z.updateItems.apply(z,_e)},100);this.triggerUpdate=function(){"function"==typeof z.itemsLoadedResolve&&z.itemsLoadedResolve(),z.itemsLoaded=new l.default(function(Ce){z.itemsLoadedResolve=Ce});for(var ne=arguments.length,_e=new Array(ne),ge=0;ge<ne;ge++)_e[ge]=arguments[ge];return _e.length&&(q=_e),se.apply(void 0,C(q))},this.selectOptions=[],this.itemsFromUrl&&(this.isFromSearch=!1,this.searchServerCount=null,this.defaultServerCount=null,this.isScrollLoading=!1,this.searchDownloadedResources=[],this.defaultDownloadedResources=[]),this.activated=!1,this.itemsLoaded=new l.default(function(ne){z.itemsLoadedResolve=ne}),this.isHtmlRenderMode()&&this.activate(),this.getTemplateKeys()}},{key:"dataReady",get:function(){return this.root&&this.root.submissionSet&&!this.attached?l.default.resolve():this.itemsLoaded}},{key:"defaultSchema",get:function(){return j.schema()}},{key:"emptyValue",get:function(){if(this.component.multiple)return[];if("json"===this.component.dataSrc&&this.component.data.json){var q,z=this.component.data.json[0];return(q=this.valueProperty?e.default.get(z,this.valueProperty):z)&&"string"==typeof q?"":{}}return this.valueProperty?"":{}}},{key:"valueProperty",get:function(){return this.component.valueProperty?this.component.valueProperty:"values"===this.component.dataSrc?"value":""}},{key:"inputInfo",get:function(){var z=F(J(j.prototype),"elementInfo",this).call(this);return z.type="select",z.changeEvent="change",z}},{key:"isSelectResource",get:function(){return"resource"===this.component.dataSrc}},{key:"itemsFromUrl",get:function(){return this.isSelectResource||this.isSelectURL}},{key:"isInfiniteScrollProvided",get:function(){return this.itemsFromUrl}},{key:"shouldDisabled",get:function(){return F(J(j.prototype),"shouldDisabled",this)||this.parentDisabled}},{key:"shouldInitialLoad",get:function(){return!("html5"===this.component.widget&&this.isEntireObjectDisplay()&&this.component.searchField&&this.dataValue)&&F(J(j.prototype),"shouldLoad",this)}},{key:"isEntireObjectDisplay",value:function(){return"resource"===this.component.dataSrc&&"data"===this.valueProperty}},{key:"selectValueAndLabel",value:function(z){var q=this.getOptionValue(this.isEntireObjectDisplay()&&!this.itemValue(z)?z:this.itemValue(z));return{value:q,label:this.itemTemplate(this.isEntireObjectDisplay()&&!e.default.isObject(z.data)?{data:z}:z,q)}}},{key:"itemTemplate",value:function(z,q){var se=this;if(!e.default.isNumber(z)&&e.default.isEmpty(z))return"";if(this.options.readOnly&&this.component.readOnlyValue)return this.itemValue(z);if(z&&!this.component.template){var ne=z.label||z,_e="string"==typeof ne?this.t(ne,{_userInput:!0}):ne;return this.sanitize(_e,this.shouldSanitizeValue)}if(this.component.multiple&&e.default.isArray(this.dataValue)?this.dataValue.find(function(De){return q===De}):this.dataValue===q){var ge=this.selectData;if(ge){var Ce=this.component.reference&&null!=q&&q._id?q._id.toString():q;(!this.templateData||!this.templateData[Ce])&&this.getOptionTemplate(z,q),this.component.multiple?ge[Ce]&&(z=ge[Ce]):z=ge}}if("string"==typeof z||"number"==typeof z)return this.sanitize(this.t(z,{_userInput:!0}),this.shouldSanitizeValue);if(Array.isArray(z))return z.map(function(De){return"string"==typeof De||"number"==typeof De?se.sanitize(se.t(De,{_userInput:!0}),se.shouldSanitizeValue):De});if(z.data){var Te=/item\.data\.\w*/g.test(this.component.template);z.data=this.isEntireObjectDisplay()&&e.default.isObject(z.data)&&!Te?JSON.stringify(z.data):z.data}return F(J(j.prototype),"itemTemplate",this).call(this,z,q)}},{key:"addOption",value:function(z,q){var se=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ne=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,u.getRandomComponentId)();if(!e.default.isNil(q)){var _e=this.component.idPath?this.component.idPath.split(".").reduceRight(function(De,fe){return I({},fe,De)},ne):{},ge=_({value:this.getOptionValue(z),label:q},_e);if((!this.component.uniqueOptions||!this.selectOptions.find(function(De){return e.default.isEqual(De.value,ge.value)}))&&(z&&this.selectOptions.push(ge),this.refs.selectContainer&&"html5"===this.component.widget)){ge.value&&e.default.isObject(ge.value)&&e.default.isEmpty(ge.value)&&(ge.value="");var Te=document.createElement("div");Te.innerHTML=this.sanitize(this.renderTemplate("selectOption",{selected:e.default.isEqual(this.getOptionValue(this.dataValue),ge.value),option:ge,attrs:se,id:ne,useId:(""===this.valueProperty||this.isEntireObjectDisplay())&&e.default.isObject(z)&&ne}),this.shouldSanitizeValue).trim(),ge.element=Te.firstChild,this.refs.selectContainer.appendChild(ge.element)}}}},{key:"addValueOptions",value:function(z){var q=this;z=z||[];var se=!1,ne=this.dataValue;if(this.options.pdf&&!z.length&&"url"===this.component.dataSrc&&this.valueProperty&&(ne=Array.isArray(ne)?ne.map(function(ge){return e.default.set({},q.valueProperty,ge)}):e.default.set({},this.valueProperty,ne)),!this.selectOptions.length){var _e=Array.isArray(ne)&&this.component.multiple?ne:[ne];!(se=this.addCurrentChoices(_e,z))&&!this.component.multiple&&this.addPlaceholder()}return se}},{key:"disableInfiniteScroll",value:function(){this.downloadedResources&&(this.downloadedResources.serverCount=this.downloadedResources.length,this.serverCount=this.downloadedResources.length)}},{key:"setItems",value:function(z,q){var ne,_e,Ce,se=this;if("string"==typeof z)try{z=JSON.parse(z)}catch(Gt){console.warn(Gt.message),z=[]}if(this.component.onSetItems&&"function"==typeof this.component.onSetItems){var ge=this.component.onSetItems(this,z);ge&&(z=ge)}if(!this.choices&&this.refs.selectContainer&&this.empty(this.refs.selectContainer),this.component.selectValues&&(z=e.default.get(z,this.component.selectValues,z)||[]),this.itemsFromUrl){var De=(Ce=!!this.isSelectURL&&e.default.isEqual(z,this.downloadedResources))&&this.downloadedResources&&this.downloadedResources.length===z.length;this.component.limit>z.length?this.disableInfiniteScroll():De?this.selectOptions=[]:this.serverCount=z.serverCount}if(this.isScrollLoading&&z)Ce||(this.downloadedResources=this.downloadedResources?this.downloadedResources.concat(z):z),this.downloadedResources.serverCount=z.serverCount||this.downloadedResources.serverCount;else if(this.downloadedResources=z||[],this.selectOptions=[],!e.default.isEmpty(this.dataValue)&&this.component.idPath){var fe=e.default.get(this.dataValue,this.component.idPath,null),xe=!e.default.isNil(fe)&&z.find(function(Gt){return e.default.get(Gt,se.component.idPath)===fe});xe&&this.setValue(xe)}if(q||this.addValueOptions(z),"html5"===this.component.widget&&!this.component.placeholder&&this.addOption(null,""),e.default.each(z,function(Gt,Ut){if(!(se.root&&se.root.options.editForm&&se.root.options.editForm._id&&se.root.options.editForm._id===Gt._id)){var An=se.selectValueAndLabel(Gt);se.addOption(An.value,An.label,{},e.default.get(Gt,se.component.idPath,String(Ut)))}}),this.choices&&this.choices.setChoices(this.selectOptions,"value","label",!0),this.isScrollLoading=!1,this.loading=!1,!q||!(null===(ne=this.choices)||void 0===ne||null===(_e=ne.input)||void 0===_e?void 0:_e.isFocussed))if(!this.isEmpty()||this.isRemoveButtonPressed)this.setValue(this.dataValue,{noUpdateEvent:!0});else if(this.shouldAddDefaultValue&&!this.options.readOnly){var Le=this.defaultValue;this.isEmpty(Le)||this.setValue(Le)}this.itemsLoadedResolve()}},{key:"getSingleItemValueForHTMLMode",value:function(z){var q,se=null===(q=this.selectOptions)||void 0===q?void 0:q.find(function(ne){return e.default.isEqual(ne.value,z)});return se&&se.label||z}},{key:"itemValueForHTMLMode",value:function(z){var q=this;return this.isHtmlRenderMode()?Array.isArray(z)?z.map(function(ne){return Array.isArray(ne)?q.itemValueForHTMLMode(ne):q.getSingleItemValueForHTMLMode(ne)}).join(", "):this.getSingleItemValueForHTMLMode(z):F(J(j.prototype),"itemValueForHTMLMode",this).call(this,z)}},{key:"defaultValue",get:function(){var z=F(J(j.prototype),"defaultValue",this);return!z&&(!1===this.component.defaultValue||0===this.component.defaultValue)&&(z=this.component.defaultValue),z}},{key:"loadingError",get:function(){return!this.component.refreshOn&&!this.component.refreshOnBlur&&this.networkError}},{key:"loadItems",value:function(z,q,se,ne,_e,ge){var Ce=this;if(ne=ne||{},!this.shouldLoad||!this.itemsFromUrl&&this.options.readOnly)return this.isScrollLoading=!1,this.loading=!1,void this.itemsLoadedResolve();var Te=parseInt(this.component.minSearch,10);if(this.component.searchField&&Te>0&&(!q||q.length<Te))return this.setItems([]);"GET"===(_e=_e||"GET").toUpperCase()&&(ge=null);var De=this.component.limit||100,fe=this.isScrollLoading?this.selectOptions.length:0,xe=this.component.disableLimit?{}:{limit:De,skip:fe};if(z=this.interpolate(z,{formioBase:n.GlobalFormio.getBaseUrl(),search:q,limit:De,skip:fe,page:Math.abs(Math.floor(fe/De))}),this.component.searchField&&q){var Oe=Array.isArray(q)?q.join(","):"object"===s(q)?JSON.stringify(q):q;xe[this.component.searchField]=this.component.searchField.endsWith("__regex")?e.default.escapeRegExp(Oe):Oe}this.component.selectFields&&(xe.select=this.component.selectFields),this.component.sort&&(xe.sort=this.component.sort),e.default.isEmpty(xe)||(z+=(z.includes("?")?"&":"?")+n.GlobalFormio.serialize(xe,function(Le){return Ce.interpolate(Le)})),this.component.filter&&(z+=(z.includes("?")?"&":"?")+this.interpolate(this.component.filter)),ne.ignoreCache=this.component.ignoreCache,ne.header=se,this.loading=!0,n.GlobalFormio.makeRequest(this.options.formio,"select",z,_e,ge,ne).then(function(Le){Ce.loading=!1,Ce.error=null,Ce.setItems(Le,!!q)}).catch(function(Le){Ce.itemsFromUrl&&(Ce.setItems([]),Ce.disableInfiniteScroll()),Ce.isScrollLoading=!1,Ce.handleLoadingError(Le)})}},{key:"handleLoadingError",value:function(z){this.loading=!1,z.networkError&&(this.networkError=!0),this.itemsLoadedResolve(),this.emit("componentError",{component:this.component,message:z.toString()}),console.warn("Unable to load resources for ".concat(this.key))}},{key:"requestHeaders",get:function(){var z=this,q=new n.GlobalFormio.Headers;if(this.component.data&&this.component.data.headers)try{e.default.each(this.component.data.headers,function(se){se.key&&q.set(se.key,z.interpolate(se.value))})}catch(se){console.warn(se.message)}return q}},{key:"getCustomItems",value:function(){var z=this.evaluate(this.component.data.custom,{values:[]},"values");return this.asyncValues=(0,u.isPromise)(z),z}},{key:"asyncCustomValues",value:function(){return e.default.isBoolean(this.asyncValues)||this.getCustomItems(),this.asyncValues}},{key:"updateCustomItems",value:function(z){var q=this;if(this.asyncCustomValues()){if(!z&&!this.active)return void this.itemsLoadedResolve();this.loading=!0,this.getCustomItems().then(function(se){q.loading=!1,q.setItems(se||[])}).catch(function(se){q.handleLoadingError(se)})}else this.setItems(this.getCustomItems()||[])}},{key:"isEmpty",value:function(){var z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return F(J(j.prototype),"isEmpty",this).call(this,z)||void 0===z}},{key:"refresh",value:function(z,q){var se=q.instance;this.component.clearOnRefresh&&se&&!se.pristine&&this.setValue(this.emptyValue),this.updateItems(null,!0)}},{key:"additionalResourcesAvailable",get:function(){return e.default.isNil(this.serverCount)||this.serverCount>this.downloadedResources.length}},{key:"serverCount",get:function(){return this.isFromSearch?this.searchServerCount:this.defaultServerCount},set:function(z){this.isFromSearch?this.searchServerCount=z:this.defaultServerCount=z}},{key:"downloadedResources",get:function(){return this.isFromSearch?this.searchDownloadedResources:this.defaultDownloadedResources},set:function(z){this.isFromSearch?this.searchDownloadedResources=z:this.defaultDownloadedResources=z}},{key:"addPlaceholder",value:function(){this.component.placeholder&&this.addOption("",this.component.placeholder,{placeholder:!0})}},{key:"activate",value:function(){(this.loading||!this.active)&&this.setLoadingItem(),!this.active&&(this.activated=!0,this.triggerUpdate())}},{key:"setLoadingItem",value:function(){this.choices?arguments.length>0&&void 0!==arguments[0]&&arguments[0]?this.choices.setChoices([{value:"".concat(this.id,"-loading"),label:"Loading...",disabled:!0}],"value","label"):this.choices.setChoices([{value:"",label:'<i class="'.concat(this.iconClass("refresh"),'" style="font-size:1.3em;"></i>'),disabled:!0}],"value","label",!0):("url"===this.component.dataSrc||"resource"===this.component.dataSrc)&&this.addOption("",this.t("loading..."))}},{key:"active",get:function(){return!this.component.lazyLoad||this.activated}},{key:"render",value:function(){var z=this.inputInfo;return z.attr=z.attr||{},z.multiple=this.component.multiple,F(J(j.prototype),"render",this).call(this,this.wrapElement(this.renderTemplate("select",{input:z,selectOptions:"",index:null})))}},{key:"wrapElement",value:function(z){return this.component.addResource&&!this.options.readOnly?this.renderTemplate("resourceAdd",{element:z}):z}},{key:"choicesOptions",value:function(){var z=!this.component.hasOwnProperty("searchEnabled")||this.component.searchEnabled,q=this.t(this.component.placeholder,{_userInput:!0}),se=this.component.customOptions||{};if("string"==typeof se)try{se=JSON.parse(se)}catch(_e){console.warn(_e.message),se={}}var ne={maxPatternLength:1e3,distance:1e3};return _({removeItemButton:!this.component.disabled&&e.default.get(this.component,"removeItemButton",!0),itemSelectText:"",classNames:{containerOuter:"choices form-group formio-choices",containerInner:this.transform("class","form-control ui fluid selection dropdown")},addItemText:!1,allowHTML:!0,placeholder:!!this.component.placeholder,placeholderValue:q,noResultsText:this.t("No results found"),noChoicesText:this.t("No choices to choose from"),searchPlaceholderValue:this.t("Type to search"),shouldSort:!1,position:this.component.dropdown||"auto",searchEnabled:z,searchChoices:!this.component.searchField,searchFields:e.default.get(this,"component.searchFields",["label"]),shadowRoot:this.root?this.root.shadowRoot:null,fuseOptions:this.component.useExactSearch?_({tokenize:!0,matchAllTokens:!0},ne):Object.assign({},e.default.get(this,"component.fuseOptions",{}),_({include:"score",threshold:e.default.get(this,"component.selectThreshold",.3)},ne)),valueComparer:e.default.isEqual,resetScrollPosition:!1},se)}},{key:"attach",value:function(z){var se,ne,_e,q=this,ge=F(J(j.prototype),"attach",this).call(this,z);this.loadRefs(z,{selectContainer:"single",addResource:"single",autocompleteInput:"single"});var Ce=this.refs.autocompleteInput;Ce&&this.addEventListener(Ce,"change",function(Le){q.setValue(Le.target.value)});var Te=this.refs.selectContainer;if(Te){if(this.addEventListener(Te,this.inputInfo.changeEvent,function(){return q.updateValue(null,{modified:!0})}),this.attachRefreshOnBlur(),"html5"===this.component.widget)return this.addFocusBlurEvents(Te),this.triggerUpdate(null,!0),this.visible&&this.setItems(this.selectOptions||[]),this.focusableElement=Te,this.addEventListener(Te,"focus",function(){return q.update()}),void this.addEventListener(Te,"keydown",function(Le){["Backspace","Delete"].includes(Le.key)&&q.setValue(q.emptyValue)});var De=Te.tabIndex;this.addPlaceholder(),Te.setAttribute("dir",this.i18next.dir()),null!==(se=this.choices)&&void 0!==se&&null!==(ne=se.containerOuter)&&void 0!==ne&&null!==(_e=ne.element)&&void 0!==_e&&_e.parentNode&&this.choices.destroy();var fe=this.choicesOptions();return Q&&(this.choices=new Q(Te,fe),this.selectOptions&&this.selectOptions.length&&this.choices.setChoices(this.selectOptions,"value","label",!0),this.component.multiple?this.focusableElement=this.choices.input.element:(this.focusableElement=this.choices.containerInner.element,this.choices.containerOuter.element.setAttribute("tabIndex","-1"),this.addEventListener(this.choices.containerOuter.element,"focus",function(){return q.focusableElement.focus()})),this.addFocusBlurEvents(this.focusableElement),this.itemsFromUrl&&!this.component.noRefreshOnScroll&&(this.scrollList=this.choices.choiceList.element,this.addEventListener(this.scrollList,"scroll",function(){return q.onScroll()})),fe.removeItemButton&&this.addEventListener(Te,"removeItem",function(){q.isRemoveButtonPressed=!0})),this.focusableElement.setAttribute("tabIndex",De),this.component.searchField&&(this.choices&&this.choices.input&&this.choices.input.element&&this.addEventListener(this.choices.input.element,"input",function(Le){q.isFromSearch=!!Le.target.value,Le.target.value?(q.serverCount=null,q.downloadedResources=[]):q.triggerUpdate()}),this.addEventListener(Te,"choice",function(){q.component.multiple&&"resource"===q.component.dataSrc&&q.isFromSearch&&q.triggerUpdate(),q.isFromSearch=!1}),this.addEventListener(Te,"search",e.default.debounce(function(Gt){q.triggerUpdate(Gt.detail.value)},this.component.searchField&&(this.isSelectResource||this.isSelectURL)?1e3*(0===this.component.searchDebounce?0:this.component.searchDebounce||this.defaultSchema.searchDebounce):0)),this.addEventListener(Te,"stopSearch",function(){return q.triggerUpdate()}),this.addEventListener(Te,"hideDropdown",function(){q.choices&&q.choices.input&&q.choices.input.element&&(q.choices.input.element.value=""),q.updateItems(null,!0)})),this.addEventListener(Te,"showDropdown",function(){return q.update()}),this.choices&&fe.placeholderValue&&this.choices._isSelectOneElement&&(this.addPlaceholderItem(fe.placeholderValue),this.addEventListener(Te,"removeItem",function(){q.addPlaceholderItem(fe.placeholderValue)})),this.addValueOptions(),this.setChoicesValue(this.dataValue),this.isSelectResource&&this.refs.addResource&&this.addEventListener(this.refs.addResource,"click",function(Le){Le.preventDefault();var Gt=q.ce("div"),Ut=q.createModal(Gt),An=e.default.get(q.root,"formio.projectUrl",n.GlobalFormio.getProjectUrl()),$n="".concat(An,"/form/").concat(q.component.data.resource);new a.default(Gt,$n,{}).ready.then(function(xn){xn.on("submit",function(mt){var ut=q.valueProperty?e.default.get(mt,q.valueProperty):mt;q.component.multiple&&(ut=[].concat(C(q.dataValue),[ut])),q.setValue(ut),q.triggerUpdate(),Ut.close()})})}),this.disabled=this.shouldDisabled,this.triggerUpdate(),ge}}},{key:"isLoadingAvailable",get:function(){return!this.isScrollLoading&&this.additionalResourcesAvailable}},{key:"onScroll",value:function(){this.isLoadingAvailable&&(this.isScrollLoading=!0,this.setLoadingItem(!0),this.triggerUpdate(this.choices.input.element.value))}},{key:"attachRefreshOnBlur",value:function(){var z=this;this.component.refreshOnBlur&&this.on("blur",function(q){z.checkRefreshOn([{instance:q,value:q.dataValue}],{fromBlur:!0})})}},{key:"addPlaceholderItem",value:function(z){this.choices._store.activeItems.length||this.choices._addItem({value:z,label:z,choiceId:0,groupId:-1,customProperties:null,placeholder:!0,keyCode:null})}},{key:"update",value:function(){"custom"===this.component.dataSrc&&this.updateCustomItems(),this.activate()}},{key:"disabled",get:function(){return F(J(j.prototype),"disabled",this)},set:function(z){b(J(j.prototype),"disabled",z,this,!0),this.choices&&(z?(this.setDisabled(this.choices.containerInner.element,!0),this.focusableElement.removeAttribute("tabIndex"),this.choices.disable()):(this.setDisabled(this.choices.containerInner.element,!1),this.focusableElement.setAttribute("tabIndex",this.component.tabindex||0),this.choices.enable()))}},{key:"visible",get:function(){return F(J(j.prototype),"visible",this)},set:function(z){z&&!this._visible!=!z&&this.triggerUpdate(),b(J(j.prototype),"visible",z,this,!0)}},{key:"addCurrentChoices",value:function(z,q,se){var ne=this;if(!z)return!1;var _e=[],ge=z.reduce(function(Ce,Te){if(!Te||e.default.isEmpty(Te))return Ce;var De=!1,fe=q===ne.selectOptions;return q&&q.length&&e.default.each(q,function(xe){if(xe._id&&Te._id&&xe._id===Te._id)return De=!0,!1;var Oe=se?xe.value:ne.itemValue(xe,fe);return!(De|=e.default.isEqual(Oe,Te))}),De?De||Ce:(_e.push(ne.selectValueAndLabel(Te)),!0)},!1);return _e.length&&(this.choices&&this.choices.setChoices(_e,"value","label"),_e.map(function(Ce){ne.addOption(Ce.value,Ce.label)})),ge}},{key:"getValueAsString",value:function(z){return this.component.multiple&&Array.isArray(z)?z.map(this.asString.bind(this)).join(", "):this.asString(z)}},{key:"getValue",value:function(){if(this.viewOnly||this.loading||!this.component.lazyLoad&&!this.selectOptions.length||!this.element)return this.dataValue;var z=this.emptyValue;if(this.choices)z=this.choices.getValue(!0),!this.component.multiple&&this.component.placeholder&&z===this.t(this.component.placeholder,{_userInput:!0})&&(z=this.emptyValue);else if(this.refs.selectContainer){if(z=this.refs.selectContainer.value,""===this.valueProperty||this.isEntireObjectDisplay()){if(""===z)return{};var q=this.selectOptions[z]||this.selectOptions.find(function(se){return se.id===z});q&&e.default.isObject(q.value)&&(z=q.value)}}else z=this.dataValue;return null==z&&(z=""),z}},{key:"redraw",value:function(){var z=F(J(j.prototype),"redraw",this).call(this);return this.triggerUpdate(),z}},{key:"normalizeSingleValue",value:function(z,q){var se=this;if(!e.default.isNil(z)){var ne=e.default.isObject(z);if(ne&&0===Object.keys(z).length)return z;if(q){var _e,ge=this.component.reference&&null!=z&&z._id?z._id.toString():z;if(ge&&(!ne||this.component.reference)&&this.templateData&&this.templateData[ge]&&null!==(_e=this.root)&&void 0!==_e&&_e.submission){var Te=this.root.submission;Te.metadata||(Te.metadata={}),Te.metadata.selectData||(Te.metadata.selectData={});var De=this.templateData[ge];if(this.component.multiple){De={};var fe=this.dataValue;fe&&e.default.isArray(fe)&&fe.length&&fe.forEach(function(Le){var Gt=se.component.reference?Le._id.toString():Le;De[Gt]=se.templateData[Gt]})}e.default.set(Te.metadata.selectData,this.path,De)}}var xe=this.component.dataType||"auto",Oe={value:z,number:function(){var Gt=Number(this.value),Ut=z.toString()===Gt.toString();return!Number.isNaN(Gt)&&Number.isFinite(Gt)&&""!==z&&Ut&&(this.value=Gt),this},boolean:function(){return e.default.isString(this.value)&&("true"===this.value.toLowerCase()||"false"===this.value.toLowerCase())&&(this.value="true"===this.value.toLowerCase()),this},string:function(){return this.value=String(this.value),this},object:function(){return this},auto:function(){return this.value=e.default.isObject(this.value)?this.object().value:this.string().number().boolean().value,this}};try{return Oe[xe]().value}catch(Le){return console.warn("Failed to normalize value",Le),z}}}},{key:"normalizeValue",value:function(z){var q=this;return this.component.multiple&&Array.isArray(z)?z.map(function(se){return q.normalizeSingleValue(se,!0)}):F(J(j.prototype),"normalizeValue",this).call(this,this.normalizeSingleValue(z,!0))}},{key:"setValue",value:function(z){var q=this,se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ne=this.dataValue;if("html5"===this.component.widget&&(e.default.isEqual(z,ne)||e.default.isEqual(ne,{})&&e.default.isEqual(se,{}))&&!se.fromSubmission)return!1;var _e=this.updateValue(z,se);z=this.dataValue;var ge=!this.isEmpty(ne),Ce=!this.isEmpty(z);return this.component.multiple&&Array.isArray(z)?z=z.map(function(De){return"boolean"==typeof De||"number"==typeof De?De.toString():De}):("boolean"==typeof z||"number"==typeof z)&&(z=z.toString()),this.isHtmlRenderMode()&&se&&se.fromSubmission&&_e?(this.itemsLoaded.then(function(){q.redraw()}),_e):this.loading?_e:this.isInitApiCallNeeded(Ce)?(this.loading=!0,this.lazyLoadInit=!0,this.triggerUpdate(e.default.get(z.data||z,this.component.searchField||this.component.valueProperty,z),!0),_e):(this.itemsLoaded.then(function(){q.addValueOptions(),q.setChoicesValue(z,ge,se)}),_e)}},{key:"isInitApiCallNeeded",value:function(z){return this.component.lazyLoad&&!this.lazyLoadInit&&!this.active&&!this.selectOptions.length&&z&&this.shouldInitialLoad&&this.visible&&(this.component.searchField||this.component.valueProperty)}},{key:"setChoicesValue",value:function(z,q){var se=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ne=!this.isEmpty(z)||se.fromSubmission;if(q=void 0===q||q,this.choices)if(ne){this.choices.removeActiveItems();var _e=Array.isArray(z)&&this.component.multiple?z:[z];this.addCurrentChoices(_e,this.selectOptions,!0)||this.choices.setChoices(this.selectOptions,"value","label",!0),this.choices.setChoiceByValue(_e)}else(q||se.resetValue)&&this.choices.removeActiveItems();else if(ne){var ge=Array.isArray(z)?z:[z];if(!e.default.isEqual(this.dataValue,this.defaultValue)&&this.selectOptions.length<2||this.selectData&&se.fromSubmission){var Ce=this.selectValueAndLabel(this.dataValue);this.addOption(Ce.value,Ce.label)}e.default.each(this.selectOptions,function(fe){e.default.each(ge,function(xe){if(""===fe.value&&(fe.value={}),e.default.isEqual(xe,fe.value)&&fe.element)return fe.element.selected=!0,fe.element.setAttribute("selected","selected"),!1})})}else e.default.each(this.selectOptions,function(fe){fe.element&&(fe.element.selected=!1,fe.element.removeAttribute("selected"))})}},{key:"itemsLoaded",get:function(){return this._itemsLoaded||l.default.resolve()},set:function(z){this._itemsLoaded=z}},{key:"validateValueAvailability",value:function(z,q){var se=this;if(!(0,u.boolValue)(z)||!q)return!0;var ne=this.getOptionsValues();return!!ne&&(e.default.isObject(q)?-1!==ne.findIndex(function(ge){return function(Ce){var Te=se.normalizeSingleValue(Ce,!0);if(!e.default.isObject(Te))return!1;try{return JSON.stringify(Te)===JSON.stringify(q)}catch(De){return console.warn.error("Error while comparing items",De),!1}}(ge)}):-1!==ne.findIndex(function(ge){return se.normalizeSingleValue(ge)===q}))}},{key:"getOptionValue",value:function(z){return e.default.isObject(z)&&this.isEntireObjectDisplay()?this.normalizeSingleValue(z):e.default.isObject(z)&&(this.valueProperty||"resource"!==this.component.key)?z:e.default.isObject(z)&&!this.valueProperty?this.interpolate(this.component.template,{item:z}).replace(/<\/?[^>]+(>|$)/g,""):e.default.isNull(z)?this.emptyValue:String(this.normalizeSingleValue(z))}},{key:"getOptionsValues",value:function(){var z=this,q=[];switch(this.component.dataSrc){case"values":q=this.component.data.values;break;case"json":q=this.component.data.json;break;case"custom":q=this.getCustomItems()}if("string"==typeof q)try{q=JSON.parse(q)}catch(se){console.warn(se.message),q=[]}if(Array.isArray(q))return q.map(function(se){return z.getOptionValue(z.itemValue(se))})}},{key:"deleteValue",value:function(){this.setValue("",{noUpdateEvent:!0}),this.unset()}},{key:"validateMultiple",value:function(){return!1}},{key:"isBooleanOrNumber",value:function(z){return"number"==typeof z||"boolean"==typeof z}},{key:"getNormalizedValues",value:function(){var z=this;if(this.component&&this.component.data&&this.component.data.values)return this.component.data.values.map(function(q){return{label:q.label,value:String(z.normalizeSingleValue(q.value))}})}},{key:"asString",value:function(z){var q,Oe,se=this,ne=function(Oe,Le){return Le?(Array.isArray(Oe)?Oe.forEach(function(Gt){return Gt[Le]=Gt[Le].toString()}):Oe[Le]=Oe[Le].toString(),Oe):(se.isBooleanOrNumber(Oe)&&(Oe=Oe.toString()),Array.isArray(Oe)&&Oe.some(function(Gt){return se.isBooleanOrNumber(Gt)})&&(Oe=Oe.map(function(Gt){se.isBooleanOrNumber(Gt)&&(Gt=Gt.toString())})),Oe)};if(z=ne(z=null!==(q=z)&&void 0!==q?q:this.getValue()),["values","custom"].includes(this.component.dataSrc)&&!this.asyncCustomValues()){var _e,ge="values"===this.component.dataSrc?{items:ne(this.getNormalizedValues(),"value"),valueProperty:"value"}:{items:ne(this.getCustomItems(),this.valueProperty),valueProperty:this.valueProperty},Ce=ge.items,Te=ge.valueProperty;z=this.component.multiple&&Array.isArray(z)?e.default.filter(Ce,function(xe){return z.includes(xe.value)}):Te?null!==(Oe=e.default.find(Ce,[Te,z]),_e=e.default.isEqual(Oe,(se.defaultSchema.data.values||[])[0])?"-":Oe)&&void 0!==_e?_e:{value:z,label:z}:z}if(e.default.isString(z))return z;if(Array.isArray(z)){var fe=[];return z.forEach(function(xe){return fe.push(se.itemTemplate(xe))}),"resource"===this.component.dataSrc&&fe.length>0?fe.join(", "):fe.length>0?fe.join("<br />"):"-"}return this.isEntireObjectDisplay()&&e.default.isObject(z)?JSON.stringify(z):e.default.isNil(z)?"-":this.itemTemplate(z)}},{key:"detach",value:function(){var z,q;F(J(j.prototype),"detach",this).call(this),this.off("blur"),this.choices&&(null!==(z=this.choices.containerOuter)&&void 0!==z&&null!==(q=z.element)&&void 0!==q&&q.parentNode&&this.choices.destroy(),this.choices=null)}},{key:"focus",value:function(){this.focusableElement&&(F(J(j.prototype),"focus",this).call(this),this.focusableElement.focus())}},{key:"setErrorClasses",value:function(z,q,se,ne){var _e=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.element;F(J(j.prototype),"setErrorClasses",this).call(this,z,q,se,ne,_e),this.choices?F(J(j.prototype),"setErrorClasses",this).call(this,[this.choices.containerInner.element],q,se,ne,_e):F(J(j.prototype),"setErrorClasses",this).call(this,[this.refs.selectContainer],q,se,ne,_e)}}],[{key:"schema",value:function(){for(var z=arguments.length,q=new Array(z),se=0;se<z;se++)q[se]=arguments[se];return o.default.schema.apply(o.default,[{type:"select",label:"Select",key:"select",idPath:"id",data:{values:[{label:"",value:""}],json:"",url:"",resource:"",custom:""},clearOnRefresh:!1,limit:100,valueProperty:"",lazyLoad:!0,filter:"",searchEnabled:!0,searchDebounce:.3,searchField:"",minSearch:0,readOnlyValue:!1,selectFields:"",selectThreshold:.3,uniqueOptions:!1,tableView:!0,fuseOptions:{include:"score",threshold:.3},indexeddb:{filter:{}},customOptions:{},useExactSearch:!1}].concat(q))}},{key:"builderInfo",get:function(){return{title:"Select",group:"basic",icon:"th-list",weight:70,documentation:"/userguide/form-building/form-components#select",schema:j.schema()}}},{key:"serverConditionSettings",get:function(){return _(_({},F(J(j),"serverConditionSettings",this)),{},{valueComponent:function(q){return _(_({},q),{},{type:"select"})}})}}]),j}(o.default)},89634:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(25847);var e=i(12866);y.default=[{key:"dataSrc",data:{values:[{label:"Values",value:"values"},{label:"URL",value:"url"},{label:"Resource",value:"resource"},{label:"Custom",value:"custom"},{label:"Raw JSON",value:"json"}]}},{type:"textfield",weight:10,input:!0,key:"indexeddb.database",label:"Database name",tooltip:"The name of the indexeddb database.",conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textfield",input:!0,key:"indexeddb.table",label:"Table name",weight:16,tooltip:"The name of table in the indexeddb database.",conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textarea",as:"json",editor:"ace",weight:18,input:!0,key:"indexeddb.filter",label:"Row Filter",tooltip:"Filter table items that match the object.",defaultValue:{},conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"data.json",label:"Data Source Raw JSON",tooltip:"A valid JSON array to use as a data source.",description:'<div>Example: <pre>["apple", "banana", "orange"].</pre></div> <div>Example 2: <pre>[{"name": "John", "email": "john.doe@test.com"}, {"name": "Jane", "email": "jane.doe@test.com"}].</pre></div>',conditional:{json:{"===":[{var:"data.dataSrc"},"json"]}}},{type:"checkbox",input:!0,label:"Lazy Load Data",key:"lazyLoad",tooltip:"When set, this will not fire off the request to the URL until this control is within focus. This can improve performance if you have many Select dropdowns on your form where the API's will only fire when the control is activated.",weight:11,conditional:{json:{and:[{in:[{var:"data.dataSrc"},["resource","url"]]},{"!==":[{var:"data.widget"},"html5"]}]}}},{type:"datagrid",input:!0,label:"Data Source Values",key:"data.values",tooltip:"Values to use as the data source. Labels are shown in the select field. Values are the corresponding values saved with the submission.",weight:10,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:"value = _.camelCase(row.label);"}],conditional:{json:{"===":[{var:"data.dataSrc"},"values"]}}},{type:"select",input:!0,dataSrc:"url",data:{url:"/form?type=resource&limit=1000000&select=_id,title"},authenticate:!0,template:"<span>{{ item.title }}</span>",valueProperty:"_id",clearOnHide:!1,label:"Resource",key:"data.resource",lazyLoad:!1,weight:10,tooltip:"The resource to be used with this field.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",input:!0,label:"Data Path",key:"selectValues",weight:12,description:"The object path to the iterable items.",tooltip:"The property within the source data, where iterable items reside. For example: results.items or results[0].items",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"select",input:!0,label:"Value Property",key:"valueProperty",skipMerge:!0,clearOnHide:!0,tooltip:"The field to use as the value.",weight:11,refreshOn:"data.resource",template:"<span>{{ item.label }}</span>",valueProperty:"key",dataSrc:"url",lazyLoad:!1,onSetItems:function(a,l){var u="resource"===l.type?[{label:"{Entire Object}",key:"data"}]:[];return(0,e.eachComponent)(l.components,function(d,s){d.input&&u.push({label:d.label||d.key,key:"data.".concat(s)})}),u},onChange:function(a){if(a&&a.flags&&a.flags.modified){var l=a.instance.data.valueProperty,d="<span>{{ item.".concat(l||"data"," }}</span>"),s=l?"".concat(l,"__regex"):"";a.instance.root.getComponent("template").setValue(d),a.instance.root.getComponent("searchField").setValue(s)}},data:{url:"/form/{{ data.data.resource }}"},conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!==":[{var:"data.reference"},!0]},{var:"data.data.resource"}]}}},{type:"select",input:!0,label:"Storage Type",key:"dataType",clearOnHide:!0,tooltip:"The type to store the data. If you select something other than autotype, it will force it to that type.",weight:12,template:"<span>{{ item.label }}</span>",dataSrc:"values",data:{values:[{label:"Autotype",value:"auto"},{label:"String",value:"string"},{label:"Number",value:"number"},{label:"Boolean",value:"boolean"},{label:"Object",value:"object"}]}},{type:"textfield",input:!0,key:"idPath",weight:12,label:"ID Path",placeholder:"id",tooltip:"Path to the select option id."},{type:"textfield",input:!0,label:"Select Fields",key:"selectFields",tooltip:"The properties on the resource to return as part of the options. Separate property names by commas. If left blank, all properties will be returned.",placeholder:"Comma separated list of fields to select.",weight:14,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"===":[{var:"data.valueProperty"},""]}]}}},{type:"checkbox",input:!0,key:"disableLimit",label:"Disable limiting response",tooltip:"When enabled the request will not include the limit and skip options in the query string",weight:15,conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"textfield",input:!0,key:"searchField",label:"Search Query Name",weight:16,description:"Name of URL query parameter",tooltip:"The name of the search querystring parameter used when sending a request to filter results with. The server at the URL must handle this query parameter.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"searchDebounce",label:"Search request delay",weight:16,description:"The delay (in seconds) before the search request is sent.",tooltip:"The delay in seconds before the search request is sent, measured from the last character input in the search field.",validate:{min:0,customMessage:"",json:"",max:1},delimiter:!1,requireDecimal:!1,encrypted:!1,defaultValue:.3,conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"minSearch",weight:17,label:"Minimum Search Length",tooltip:"The minimum amount of characters they must type before a search is made.",defaultValue:0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"url"]},{"!=":[{var:"data.searchField"},""]}]}}},{type:"textfield",input:!0,key:"filter",label:"Filter Query",weight:18,description:"The filter query for results.",tooltip:"Use this to provide additional filtering using query parameters.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"textfield",input:!0,key:"sort",label:"Sort Query",weight:18,description:"The sort query for results",tooltip:"Use this to provide additional sorting using query parameters",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"limit",label:"Limit",weight:18,description:"Maximum number of items to view per page of results.",tooltip:"Use this to limit the number of items to request or view.",clearOnHide:!1,conditional:{json:{and:[{in:[{var:"data.dataSrc"},["url","resource"]]},{"!==":[{var:"data.disableLimit"},!0]}]}}},{type:"textarea",input:!0,key:"data.custom",label:"Custom Values",editor:"ace",rows:10,weight:14,placeholder:"values = data['mykey'] or values = Promise.resolve(['myValue'])",tooltip:"Write custom code to return the value options or a promise with value options. The form data object is available.",conditional:{json:{"===":[{var:"data.dataSrc"},"custom"]}}},{type:"select",input:!0,key:"refreshOn",label:"Refresh Options On",weight:19,tooltip:"Refresh data when another field changes.",dataSrc:"custom",valueProperty:"value",data:{custom:function(a){var l=[];return l.push({label:"Any Change",value:"data"}),a.utils.eachComponent(a.instance.options.editForm.components,function(u,d){u.key!==a.data.key&&l.push({label:u.label||u.key,value:d})}),l}},conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values","custom"]]}}},{type:"select",input:!0,key:"refreshOnBlur",label:"Refresh Options On Blur",weight:19,tooltip:"Refresh data when another field is blured.",dataSrc:"custom",valueProperty:"value",data:{custom:function(a){var l=[];return l.push({label:"Any Change",value:"data"}),a.utils.eachComponent(a.instance.options.editForm.components,function(u,d){u.key!==a.data.key&&l.push({label:u.label||u.key,value:d})}),l}},conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values"]]}}},{type:"checkbox",input:!0,weight:20,key:"clearOnRefresh",label:"Clear Value On Refresh Options",defaultValue:!1,tooltip:"When the Refresh On field is changed, clear this components value.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values","custom"]]}}},{type:"checkbox",input:!0,weight:21,key:"searchEnabled",label:"Enable Static Search",defaultValue:!0,tooltip:"When checked, the select dropdown will allow for searching within the static list of items provided."},{type:"checkbox",input:!0,weight:21,key:"noRefreshOnScroll",label:"Disable Options Refresh When Scrolling",defaultValue:!1,tooltip:"When checked, the select with search input won't perform new api requests when scrolling through the list of options.",conditional:{json:{and:[{in:[{var:"data.dataSrc"},["url","resource"]]},{"===":[{var:"data.searchEnabled"},!0]}]}}},{label:"Search Threshold",mask:!1,tableView:!0,alwaysEnabled:!1,type:"number",input:!0,key:"selectThreshold",validate:{min:0,customMessage:"",json:"",max:1},delimiter:!1,requireDecimal:!1,encrypted:!1,defaultValue:.3,weight:22,tooltip:"At what point does the match algorithm give up. A threshold of 0.0 requires a perfect match, a threshold of 1.0 would match anything."},{type:"checkbox",input:!0,weight:23,key:"addResource",label:"Add Resource",tooltip:"Allows to create a new resource while entering a submission.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",label:"Add Resource Label",key:"addResourceLabel",tooltip:"Set the text of the Add Resource button.",placeholder:"Add Resource",weight:24,input:!0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!!":{var:"data.addResource"}}]}}},{type:"checkbox",input:!0,weight:25,key:"reference",label:"Save as reference",tooltip:"Using this option will save this field as a reference and link its value to the value of the origin record.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"checkbox",input:!0,weight:27,key:"readOnlyValue",label:"Read Only Value",tooltip:"Check this if you would like to show just the value when in Read Only mode."},{type:"textarea",as:"json",editor:"ace",weight:28,input:!0,key:"customOptions",label:"Choices.js options",tooltip:"A raw JSON object to use as options for the Select component (Choices JS).",defaultValue:{}},{type:"checkbox",input:!0,weight:29,key:"useExactSearch",label:"Use exact search",tooltip:"Disables search algorithm threshold."}]},65682:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{type:"select",input:!0,weight:20,tooltip:"Select the type of widget you'd like to use.",key:"widget",defaultValue:"choicesjs",label:"Widget Type",dataSrc:"values",data:{values:[{label:"ChoicesJS",value:"choicesjs"},{label:"HTML 5",value:"html5"}]}},{weight:1230,type:"checkbox",label:"Unique Options",tooltip:"Display only unique dropdown options.",key:"uniqueOptions",input:!0}]},78534:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{weight:50,type:"checkbox",label:"Perform server validation of remote value",tooltip:"Check this if you would like for the server to perform a validation check to ensure the selected value is an available option. This requires a Search query to ensure a record is found.",key:"validate.select",input:!0,conditional:{json:{var:"data.searchField"}}},{weight:52,type:"checkbox",label:"Allow only available values",tooltip:"Check this if you would like to perform a validation check to ensure the selected value is an available option (only for synchronous values).",key:"validate.onlyAvailableItems",input:!0,conditional:{json:{in:[{var:"data.dataSrc"},["values","json","custom"]]}}}]},20976:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function a(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return e.default.apply(void 0,[[{key:"data",components:[{key:"dataType",ignore:!0}]},{key:"validation",components:n.default}]].concat(u))},i(34338);var e=o(i(78208)),n=o(i(88637));function o(l){return l&&l.__esModule?l:{default:l}}},88803:(he,y,i)=>{"use strict";i(32349),i(81919),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(21694),i(99474),i(35082),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(34284),i(278),i(60228),i(752),i(76265),i(63975),i(55791),i(49693),i(47522),i(6203),i(50886),i(38077),i(69358),i(30024),i(63945),i(25728),i(39772),i(5399),i(41517),i(88052);var e=o(i(6990)),n=o(i(29310));function o(L){return L&&L.__esModule?L:{default:L}}function a(L,D){var F=Object.keys(L);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(L);D&&(P=P.filter(function(O){return Object.getOwnPropertyDescriptor(L,O).enumerable})),F.push.apply(F,P)}return F}function l(L){for(var D=1;D<arguments.length;D++){var F=null!=arguments[D]?arguments[D]:{};D%2?a(Object(F),!0).forEach(function(P){u(L,P,F[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(F)):a(Object(F)).forEach(function(P){Object.defineProperty(L,P,Object.getOwnPropertyDescriptor(F,P))})}return L}function u(L,D,F){return(D=C(D))in L?Object.defineProperty(L,D,{value:F,enumerable:!0,configurable:!0,writable:!0}):L[D]=F,L}function d(L){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(D){return typeof D}:function(D){return D&&"function"==typeof Symbol&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D})(L)}function A(L,D){for(var F=0;F<D.length;F++){var P=D[F];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(L,C(P.key),P)}}function C(L){var D=function R(L,D){if("object"!==d(L)||null===L)return L;var F=L[Symbol.toPrimitive];if(void 0!==F){var P=F.call(L,D||"default");if("object"!==d(P))return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===D?String:Number)(L)}(L,"string");return"symbol"===d(D)?D:String(D)}function f(L,D){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,O){return P.__proto__=O,P})(L,D)}function p(){return p=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(D,F,P){var O=function E(L,D){for(;!Object.prototype.hasOwnProperty.call(L,D)&&null!==(L=b(L)););return L}(D,F);if(O){var U=Object.getOwnPropertyDescriptor(O,F);return U.get?U.get.call(arguments.length<3?D:P):U.value}},p.apply(this,arguments)}function b(L){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)})(L)}y.default=function(L){!function x(L,D){if("function"!=typeof D&&null!==D)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(D&&D.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),D&&f(L,D)}(F,L);var D=function k(L){var D=function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var O,P=b(L);if(D){var U=b(this).constructor;O=Reflect.construct(P,arguments,U)}else O=P.apply(this,arguments);return function w(L,D){if(D&&("object"===d(D)||"function"==typeof D))return D;if(void 0!==D)throw new TypeError("Derived constructors may only return object or undefined");return function g(L){if(void 0===L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}(L)}(this,O)}}(F);function F(){var P;!function s(L,D){if(!(L instanceof D))throw new TypeError("Cannot call a class as a function")}(this,F);for(var O=arguments.length,U=new Array(O),V=0;V<O;V++)U[V]=arguments[V];return(P=D.call.apply(D,[this].concat(U))).validators=P.validators.concat("minSelectedCount","maxSelectedCount","availableValueProperty"),P}return function _(L,D,F){D&&A(L.prototype,D),F&&A(L,F),Object.defineProperty(L,"prototype",{writable:!1})}(F,[{key:"init",value:function(){p(b(F.prototype),"init",this).call(this),this.component.inputType="checkbox"}},{key:"defaultSchema",get:function(){return F.schema()}},{key:"inputInfo",get:function(){var O=p(b(F.prototype),"elementInfo",this).call(this);return O.attr.name+="[]",O.attr.type="checkbox",O.attr.class="form-check-input",O}},{key:"emptyValue",get:function(){return this.component.values.reduce(function(O,U){return U.value&&(O[U.value]=!1),O},{})}},{key:"defaultValue",get:function(){var O=this.emptyValue;return e.default.isEmpty(this.component.defaultValue)||(O=this.component.defaultValue),this.component.customDefaultValue&&!this.options.preview&&(O=this.evaluate(this.component.customDefaultValue,{value:""},"value")),O}},{key:"isEmpty",value:function(){var O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue,U=!0;for(var V in O)if(O.hasOwnProperty(V)&&O[V]){U=!1;break}return U}},{key:"getValue",value:function(){if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var O={};return e.default.each(this.refs.input,function(U){O[U.value]=!!U.checked}),O}},{key:"normalizeValue",value:function(O){var U=this;"object"!==d(O=O||{})&&(O="string"==typeof O?u({},O,!0):{}),Array.isArray(O)&&e.default.each(O,function(me){O[me]=!0});var V=e.default.keys(e.default.pickBy(O,function(me){return me}));if(this.isSelectURL&&this.templateData&&e.default.every(V,function(me){return U.templateData[me]})){var K=this.root.submission;K.metadata.selectData||(K.metadata.selectData={});var X=[];V.forEach(function(me){return X.push(U.templateData[me])}),e.default.set(K.metadata.selectData,this.path,X)}return O}},{key:"setValue",value:function(O){var V=this.updateValue(O,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return O=this.dataValue,this.isHtmlRenderMode()?V&&this.redraw():e.default.each(this.refs.input,function(K){e.default.isUndefined(O[K.value])&&(O[K.value]=!1),K.checked=!!O[K.value]}),V}},{key:"getValueAsString",value:function(O){return O?this.isSelectURL?(0,e.default)(O).pickBy(function(U){return U}).keys().join(", "):(0,e.default)(this.component.values||[]).filter(function(U){return O[U.value]}).map("label").join(", "):""}},{key:"setSelectedClasses",value:function(){var O=this;if(this.refs.wrapper){var U=this.dataValue,V=Object.keys(U);this.refs.wrapper.forEach(function(K,X){var me=V[X],J=O.refs.input[X];J?.value.toString()!==me&&(me=V.find(function(re){return J?.value.toString()===re}));var Q=U[me];Q&&me||O.isSelectURL&&!O.shouldLoad&&O.listData&&-1!==e.default.findIndex(O.selectData,O.listData[X])?(O.addClass(K,O.optionSelectedClass),J.setAttribute("checked","true")):!Q&&me&&(O.removeClass(K,O.optionSelectedClass),J.removeAttribute("checked"))})}}},{key:"setInputsDisabled",value:function(O,U){this.refs.input&&this.refs.input.forEach(function(V){(U&&!V.checked||!U)&&(V.disabled=O)})}},{key:"checkComponentValidity",value:function(O,U,V,K){var X=this,me=this.component.validate.minSelectedCount,J=this.component.validate.maxSelectedCount,Q=this.isValid(O,U);if((J||me)&&!this.shouldSkipValidation(O,U,V)){var re=Object.keys(this.validationValue).reduce(function(j,H){return X.validationValue[H]&&j++,j},0);if(J&&re>=J?this.setInputsDisabled(!0,!0):J&&!this.shouldDisabled&&this.setInputsDisabled(!1),!Q&&J&&re>J){var de=this.t(this.component.maxSelectedCountMessage||"You can only select up to {{maxCount}} items.",{maxCount:J});return this.setCustomValidity(de,U),!1}if(!Q&&me&&re<me){this.setInputsDisabled(!1);var te=this.t(this.component.minSelectedCountMessage||"You must select at least {{minCount}} items.",{minCount:me});return this.setCustomValidity(te,U),!1}}return p(b(F.prototype),"checkComponentValidity",this).call(this,O,U,V,K)}}],[{key:"schema",value:function(){for(var O=arguments.length,U=new Array(O),V=0;V<O;V++)U[V]=arguments[V];return n.default.schema.apply(n.default,[{type:"selectboxes",label:"Select Boxes",key:"selectBoxes",inline:!1}].concat(U))}},{key:"builderInfo",get:function(){return{title:"Select Boxes",group:"basic",icon:"plus-square",weight:60,documentation:"/userguide/form-building/form-components#select-box",schema:F.schema()}}},{key:"serverConditionSettings",get:function(){return l(l({},p(b(F),"serverConditionSettings",this)),{},{valueComponent:function(U){return{type:"select",dataSrc:"custom",valueProperty:"value",valueType:"string",data:{custom:"values = ".concat(U&&U.values?JSON.stringify(U.values):[])}}}})}}]),F}(n.default)},88637:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{type:"number",input:!0,key:"validate.minSelectedCount",label:"Minimum checked number",tooltip:"Minimum checkboxes required before form can be submitted.",weight:250},{type:"number",input:!0,key:"validate.maxSelectedCount",label:"Maximum checked number",tooltip:"Maximum checkboxes possible before form can be submitted.",weight:250},{type:"textfield",input:!0,key:"minSelectedCountMessage",label:"Minimum checked error message",tooltip:"Error message displayed if minimum number of items not checked.",weight:250},{type:"textfield",input:!0,key:"maxSelectedCountMessage",label:"Maximum checked error message",tooltip:"Error message displayed if maximum number of items checked.",weight:250}]},899:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function u(){for(var d=arguments.length,s=new Array(d),A=0;A<d;A++)s[A]=arguments[A];return e.default.baseEditForm.apply(e.default,[[{key:"display",components:o.default},{key:"data",components:n.default},{key:"validation",components:a.default}]].concat(s))},i(34338);var e=l(i(14231)),n=l(i(67640)),o=l(i(38806)),a=l(i(5557));function l(d){return d&&d.__esModule?d:{default:d}}},5866:(he,y,i)=>{"use strict";function e(F){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(P){return typeof P}:function(P){return P&&"function"==typeof Symbol&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P})(F)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(69358),i(38077),i(49693),i(47522),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(96869),i(41517),i(34338),i(5399),i(88052);var n=u(i(53445)),o=u(i(78213)),a=u(i(85943)),l=u(i(6990));function u(F){return F&&F.__esModule?F:{default:F}}function d(F,P){var O=Object.keys(F);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(F);P&&(U=U.filter(function(V){return Object.getOwnPropertyDescriptor(F,V).enumerable})),O.push.apply(O,U)}return O}function s(F){for(var P=1;P<arguments.length;P++){var O=null!=arguments[P]?arguments[P]:{};P%2?d(Object(O),!0).forEach(function(U){A(F,U,O[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(O)):d(Object(O)).forEach(function(U){Object.defineProperty(F,U,Object.getOwnPropertyDescriptor(O,U))})}return F}function A(F,P,O){return(P=x(P))in F?Object.defineProperty(F,P,{value:O,enumerable:!0,configurable:!0,writable:!0}):F[P]=O,F}function C(F,P){for(var O=0;O<P.length;O++){var U=P[O];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(F,x(U.key),U)}}function x(F){var P=function f(F,P){if("object"!==e(F)||null===F)return F;var O=F[Symbol.toPrimitive];if(void 0!==O){var U=O.call(F,P||"default");if("object"!==e(U))return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===P?String:Number)(F)}(F,"string");return"symbol"===e(P)?P:String(P)}function k(){return k=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(P,O,U){var V=function w(F,P){for(;!Object.prototype.hasOwnProperty.call(F,P)&&null!==(F=L(F)););return F}(P,O);if(V){var K=Object.getOwnPropertyDescriptor(V,O);return K.get?K.get.call(arguments.length<3?P:U):K.value}},k.apply(this,arguments)}function M(F,P){return(M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(U,V){return U.__proto__=V,U})(F,P)}function L(F){return(L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(O){return O.__proto__||Object.getPrototypeOf(O)})(F)}y.default=function(F){!function g(F,P){if("function"!=typeof P&&null!==P)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(P&&P.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),Object.defineProperty(F,"prototype",{writable:!1}),P&&M(F,P)}(O,F);var P=function p(F){var P=function I(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var V,U=L(F);if(P){var K=L(this).constructor;V=Reflect.construct(U,arguments,K)}else V=U.apply(this,arguments);return function E(F,P){if(P&&("object"===e(P)||"function"==typeof P))return P;if(void 0!==P)throw new TypeError("Derived constructors may only return object or undefined");return function b(F){if(void 0===F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}(F)}(this,V)}}(O);function O(){return function _(F,P){if(!(F instanceof P))throw new TypeError("Cannot call a class as a function")}(this,O),P.apply(this,arguments)}return function R(F,P,O){P&&C(F.prototype,P),O&&C(F,O),Object.defineProperty(F,"prototype",{writable:!1})}(O,[{key:"init",value:function(){var V,K,X,me,J;k(L(O.prototype),"init",this).call(this),this.currentWidth=0,this.scale=1,this.component.width||(this.component.width="100%"),this.component.height||(this.component.height="200px"),this.component.keepOverlayRatio&&"pdf"===(null===(V=this.options)||void 0===V?void 0:V.display)&&null!==(K=this.component.overlay)&&void 0!==K&&K.width&&null!==(X=this.component.overlay)&&void 0!==X&&X.height&&(this.ratio=(null===(me=this.component.overlay)||void 0===me?void 0:me.width)/(null===(J=this.component.overlay)||void 0===J?void 0:J.height),this.component.width="100%",this.component.height="auto")}},{key:"emptyValue",get:function(){return""}},{key:"defaultSchema",get:function(){return O.schema()}},{key:"inputInfo",get:function(){var V=k(L(O.prototype),"inputInfo",this);return V.type="input",V.attr.type="hidden",V}},{key:"className",get:function(){return"".concat(k(L(O.prototype),"className",this)," signature-pad")}},{key:"labelIsHidden",value:function(){return this.component.hideLabel}},{key:"setValue",value:function(V){var K=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},X=k(L(O.prototype),"setValue",this).call(this,V,K);return this.refs.signatureImage&&(this.options.readOnly||this.disabled)&&(this.refs.signatureImage.setAttribute("src",V),this.showCanvas(!1)),this.signaturePad&&(V?X&&this.triggerChange():this.signaturePad.clear()),this.signaturePad&&this.dataValue&&this.signaturePad.isEmpty()&&this.setDataToSigaturePad(),X}},{key:"showCanvas",value:function(V){V?(this.refs.canvas&&(this.refs.canvas.style.display="inherit"),this.refs.signatureImage&&(this.refs.signatureImage.style.display="none")):(this.refs.canvas&&(this.refs.canvas.style.display="none"),this.refs.signatureImage&&(this.refs.signatureImage.style.display="inherit",this.refs.signatureImage.style.maxHeight="100%"))}},{key:"onDisabled",value:function(){this.showCanvas(!k(L(O.prototype),"disabled",this)),this.signaturePad&&(k(L(O.prototype),"disabled",this)?(this.signaturePad.off(),this.refs.refresh&&this.refs.refresh.classList.add("disabled"),this.refs.signatureImage&&this.dataValue&&this.refs.signatureImage.setAttribute("src",this.dataValue)):(this.signaturePad.on(),this.refs.refresh&&this.refs.refresh.classList.remove("disabled")))}},{key:"checkSize",value:function(V,K){if(this.refs.padBody&&(V||this.refs.padBody&&this.refs.padBody.offsetWidth!==this.currentWidth)){this.scale=V?K:this.scale,this.currentWidth=this.refs.padBody.offsetWidth;var X=this.currentWidth*this.scale,me=this.ratio?X/this.ratio:this.refs.padBody.offsetHeight*this.scale,J=this.ratio?me:this.refs.padBody.offsetHeight*this.scale;this.refs.canvas.width=X,this.refs.canvas.height=me>J?J:me,this.refs.canvas.style.maxWidth="".concat(this.currentWidth*this.scale,"px"),this.refs.canvas.style.maxHeight="".concat(J,"px");var Q=this.refs.canvas.getContext("2d");Q.setTransform(1,0,0,1,0,0),Q.scale(1/this.scale,1/this.scale),Q.fillStyle=this.signaturePad.backgroundColor,Q.fillRect(0,0,this.refs.canvas.width,this.refs.canvas.height),this.signaturePad.clear(),this.dataValue&&this.setDataToSigaturePad(),this.showCanvas(!0)}}},{key:"renderElement",value:function(V,K){return this.renderTemplate("signature",{element:k(L(O.prototype),"renderElement",this).call(this,V,K),required:l.default.get(this.component,"validate.required",!1)})}},{key:"hasModalSaveButton",get:function(){return!1}},{key:"getModalPreviewTemplate",value:function(){return this.renderTemplate("modalPreview",{previewText:this.dataValue?"<img src=".concat(this.dataValue," ref='openModal' style=\"width: 100%;height: 100%;\" />"):this.t("Click to Sign")})}},{key:"attach",value:function(V){var K=this;this.loadRefs(V,{canvas:"single",refresh:"single",padBody:"single",signatureImage:"single"});var X=k(L(O.prototype),"attach",this).call(this,V);return this.refs.refresh&&this.options.readOnly&&this.refs.refresh.classList.add("disabled"),this.refs.canvas&&(this.signaturePad=new n.default(this.refs.canvas,{minWidth:this.component.minWidth,maxWidth:this.component.maxWidth,penColor:this.component.penColor,backgroundColor:this.component.backgroundColor}),this.signaturePad.addEventListener("endStroke",function(){return K.setValue(K.signaturePad.toDataURL())}),this.refs.signatureImage.setAttribute("src",this.signaturePad.toDataURL()),this.onDisabled(),this.refs.padBody&&(this.refs.padBody.style.maxWidth||(this.refs.padBody.style.maxWidth="100%"),!this.builderMode&&!this.options.preview&&(this.observer=new o.default(function(){K.checkSize()}),this.observer.observe(this.refs.padBody)),this.addEventListener(window,"resize",l.default.debounce(function(){return K.checkSize()},10)),setTimeout(function me(){this.refs.padBody&&this.refs.padBody.offsetWidth?this.checkSize():setTimeout(me.bind(this),20)}.bind(this),20))),this.addEventListener(this.refs.refresh,"click",function(me){me.preventDefault(),K.showCanvas(!0),K.signaturePad.clear(),K.setValue(K.defaultValue)}),this.setValue(this.dataValue),X}},{key:"detach",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.signaturePad&&this.signaturePad.off(),this.signaturePad=null,this.currentWidth=0,k(L(O.prototype),"detach",this).call(this)}},{key:"getValueAsString",value:function(V){return l.default.isUndefined(V)&&this.inDataTable?"":V?"Yes":"No"}},{key:"focus",value:function(){this.refs.padBody.focus()}},{key:"setDataToSigaturePad",value:function(){this.signaturePad.fromDataURL(this.dataValue,{ratio:1,width:this.refs.canvas.width,height:this.refs.canvas.height})}}],[{key:"schema",value:function(){for(var V=arguments.length,K=new Array(V),X=0;X<V;X++)K[X]=arguments[X];return a.default.schema.apply(a.default,[{type:"signature",label:"Signature",key:"signature",footer:"Sign above",width:"100%",height:"150px",penColor:"black",backgroundColor:"rgb(245,245,235)",minWidth:"0.5",maxWidth:"2.5",keepOverlayRatio:!0}].concat(K))}},{key:"builderInfo",get:function(){return{title:"Signature",group:"advanced",icon:"pencil",weight:120,documentation:"/developers/integrations/esign/esign-integrations#signature-component",schema:O.schema()}}},{key:"serverConditionSettings",get:function(){return s(s({},k(L(O),"serverConditionSettings",this)),{},{operators:["isEmpty","isNotEmpty"]})}}]),O}(a.default)},67640:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0},{key:"dbIndex",ignore:!0}]},38806:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{type:"textfield",input:!0,key:"footer",label:"Footer Label",tooltip:"The footer text that appears below the signature area.",placeholder:"Footer Label",weight:10},{type:"textfield",input:!0,key:"width",label:"Width",tooltip:"The width of the signature area.",placeholder:"Width",conditional:{json:{"!":[{var:"data.keepOverlayRatio"}]}},weight:50},{type:"textfield",input:!0,key:"height",label:"Height",tooltip:"The height of the signature area.",placeholder:"Height",conditional:{json:{"!":[{var:"data.keepOverlayRatio"}]}},weight:51},{weight:52,type:"checkbox",label:"Keep Overlay Aspect Ratio",tooltip:"If checked, the field will have the same aspect ratio as its preview.",key:"keepOverlayRatio",customConditional:function(o){var a,l=o.options;return"pdf"===(null==l||null===(a=l.editForm)||void 0===a?void 0:a.display)},input:!0},{type:"textfield",input:!0,key:"backgroundColor",label:"Background Color",tooltip:"The background color of the signature area.",placeholder:"Background Color",weight:52},{type:"textfield",input:!0,key:"penColor",label:"Pen Color",tooltip:"The ink color for the signature area.",placeholder:"Pen Color",weight:53},{key:"placeholder",ignore:!0},{key:"autofocus",ignore:!0}]},5557:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"unique",ignore:!0},{key:"validateOn",ignore:!0}]},5666:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function u(){for(var d=arguments.length,s=new Array(d),A=0;A<d;A++)s[A]=arguments[A];return e.default.baseEditForm.apply(e.default,[[{key:"display",components:o.default},{key:"data",components:n.default},{key:"validation",components:a.default}]].concat(s))},i(34338);var e=l(i(14231)),n=l(i(90642)),o=l(i(36482)),a=l(i(14974));function l(d){return d&&d.__esModule?d:{default:d}}},80188:(he,y,i)=>{"use strict";function e(P){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(O){return typeof O}:function(O){return O&&"function"==typeof Symbol&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O})(P)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(45247),i(69358),i(38077),i(99474),i(35082),i(84254),i(21694),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(49693),i(60228),i(47522),i(34284),i(98742),i(752),i(76265),i(278),i(34338),i(25728),i(5399),i(41517),i(88052);var n=l(i(6990)),o=l(i(84984)),a=i(12866);function l(P){return P&&P.__esModule?P:{default:P}}function u(P,O){var U=Object.keys(P);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(P);O&&(V=V.filter(function(K){return Object.getOwnPropertyDescriptor(P,K).enumerable})),U.push.apply(U,V)}return U}function d(P){for(var O=1;O<arguments.length;O++){var U=null!=arguments[O]?arguments[O]:{};O%2?u(Object(U),!0).forEach(function(V){x(P,V,U[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(U)):u(Object(U)).forEach(function(V){Object.defineProperty(P,V,Object.getOwnPropertyDescriptor(U,V))})}return P}function A(P,O){for(var U=0;U<O.length;U++){var V=O[U];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(P,f(V.key),V)}}function C(P,O,U,V){return(C=typeof Reflect<"u"&&Reflect.set?Reflect.set:function(X,me,J,Q){var de,re=g(X,me);if(re){if((de=Object.getOwnPropertyDescriptor(re,me)).set)return de.set.call(Q,J),!0;if(!de.writable)return!1}if(de=Object.getOwnPropertyDescriptor(Q,me)){if(!de.writable)return!1;de.value=J,Object.defineProperty(Q,me,de)}else x(Q,me,J);return!0})(P,O,U,V)}function x(P,O,U){return(O=f(O))in P?Object.defineProperty(P,O,{value:U,enumerable:!0,configurable:!0,writable:!0}):P[O]=U,P}function f(P){var O=function k(P,O){if("object"!==e(P)||null===P)return P;var U=P[Symbol.toPrimitive];if(void 0!==U){var V=U.call(P,O||"default");if("object"!==e(V))return V;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===O?String:Number)(P)}(P,"string");return"symbol"===e(O)?O:String(O)}function w(){return w=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(O,U,V){var K=g(O,U);if(K){var X=Object.getOwnPropertyDescriptor(K,U);return X.get?X.get.call(arguments.length<3?O:V):X.value}},w.apply(this,arguments)}function g(P,O){for(;!Object.prototype.hasOwnProperty.call(P,O)&&null!==(P=D(P)););return P}function p(P,O){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,K){return V.__proto__=K,V})(P,O)}function D(P){return(D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(U){return U.__proto__||Object.getPrototypeOf(U)})(P)}y.default=function(P){!function M(P,O){if("function"!=typeof O&&null!==O)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(O&&O.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),Object.defineProperty(P,"prototype",{writable:!1}),O&&p(P,O)}(U,P);var O=function E(P){var O=function L(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var K,V=D(P);if(O){var X=D(this).constructor;K=Reflect.construct(V,arguments,X)}else K=V.apply(this,arguments);return function b(P,O){if(O&&("object"===e(O)||"function"==typeof O))return O;if(void 0!==O)throw new TypeError("Derived constructors may only return object or undefined");return function I(P){if(void 0===P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}(P)}(this,K)}}(U);function U(){return function s(P,O){if(!(P instanceof O))throw new TypeError("Cannot call a class as a function")}(this,U),O.apply(this,arguments)}return function _(P,O,U){O&&A(P.prototype,O),U&&A(P,U),Object.defineProperty(P,"prototype",{writable:!1})}(U,[{key:"defaultSchema",get:function(){return U.schema()}},{key:"render",value:function(){return w(D(U.prototype),"render",this).call(this,this.renderTemplate("survey"))}},{key:"attach",value:function(K){var X=this;this.loadRefs(K,{input:"multiple"});var me=w(D(U.prototype),"attach",this).call(this,K);return this.refs.input.forEach(function(J){X.disabled?J.setAttribute("disabled","disabled"):X.addEventListener(J,"change",function(){return X.updateValue(null,{modified:!0})})}),this.setValue(this.dataValue),me}},{key:"setValue",value:function(K){var X=this,me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!K)return!1;n.default.each(this.component.questions,function(Q){n.default.each(X.refs.input,function(re){re.name===X.getInputName(Q)&&(re.checked=re.value===K[Q.value])})});var J=this.updateValue(K,me);return J&&this.isHtmlRenderMode()&&this.redraw(),J}},{key:"emptyValue",get:function(){return{}}},{key:"defaultValue",get:function(){var K=w(D(U.prototype),"defaultValue",this);if(K&&!n.default.isObject(K)&&this.component.values.some(function(me){return me.value===K})){var X={};return this.component.questions.forEach(function(me){X[me.value]=K}),X}return K}},{key:"getValue",value:function(){var K=this;if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var X={};return n.default.each(this.component.questions,function(me){n.default.each(K.refs.input,function(J){if(J.checked&&J.name===K.getInputName(me))return X[me.value]=J.value,!1})}),X}},{key:"disabled",get:function(){return w(D(U.prototype),"disabled",this)},set:function(K){(function R(P,O,U,V,K){if(!C(P,O,U,V||P)&&K)throw new Error("failed to set property")})(D(U.prototype),"disabled",K,this,!0),n.default.each(this.refs.input,function(X){X.disabled=!0})}},{key:"validateRequired",value:function(K,X){return!(0,a.boolValue)(K)||this.component.questions.reduce(function(me,J){return me&&!!X[J.value]},!0)}},{key:"getInputName",value:function(K){return"".concat(this.options.name,"[").concat(K.value,"]")}},{key:"getValueAsString",value:function(K,X){var me=this;if(null!=X&&X.email){var J='\n        <table border="1" style="width:100%">\n          <thead>\n            <tr>\n              <th>Question</th>\n              <th>Value</th>\n            </tr>\n          </thead>\n          <tbody>\n      ';return n.default.forIn(K,function(Q,re){var de=n.default.find(me.component.questions,["value",re]),te=n.default.find(me.component.values,["value",Q]);!de||!te||(J+='\n            <tr>\n              <td style="text-align:center;padding: 5px 10px;">'.concat(de.label,'</td>\n              <td style="text-align:center;padding: 5px 10px;">').concat(te.label,"</td>\n            </tr>\n          "))}),J+="</tbody></table>"}return w(D(U.prototype),"getValueAsString",this).call(this,K,X)}}],[{key:"schema",value:function(){for(var K=arguments.length,X=new Array(K),me=0;me<K;me++)X[me]=arguments[me];return o.default.schema.apply(o.default,[{type:"survey",label:"Survey",key:"survey",questions:[],values:[]}].concat(X))}},{key:"builderInfo",get:function(){return{title:"Survey",group:"advanced",icon:"list",weight:110,documentation:"/userguide/form-building/advanced-components#survey",schema:U.schema()}}},{key:"serverConditionSettings",get:function(){return d(d({},w(D(U),"serverConditionSettings",this)),{},{operators:["isEmpty","isNotEmpty"]})}}]),U}(o.default)},90642:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"multiple",ignore:!0},{type:"datagrid",input:!0,label:"Questions",key:"questions",tooltip:"The questions you would like to ask in this survey question.",weight:0,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}},{label:"Tooltip",key:"tooltip",input:!0,type:"textfield"}]},{type:"datagrid",input:!0,label:"Values",key:"values",tooltip:"The values that can be selected per question. Example: 'Satisfied', 'Very Satisfied', etc.",weight:1,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}},{label:"Tooltip",key:"tooltip",input:!0,type:"textfield"}]}]},36482:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"placeholder",ignore:!0}]},14974:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"validateOn",ignore:!0}]},86224:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function a(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return e.default.apply(void 0,[[{key:"display",components:n.default}]].concat(u))},i(34338);var e=o(i(90700)),n=o(i(17258));function o(l){return l&&l.__esModule?l:{default:l}}},16083:(he,y,i)=>{"use strict";function e(D){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(F){return typeof F}:function(F){return F&&"function"==typeof Symbol&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F})(D)}i(32349),i(81919),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(69358),i(38077),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(30024),i(60228),i(63945),i(89730),i(50886),i(278),i(49693),i(47522),i(5399),i(41517),i(88052);var n=l(i(6990)),o=l(i(24845)),a=l(i(60211));function l(D){return D&&D.__esModule?D:{default:D}}function u(D,F){var P=Object.keys(D);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(D);F&&(O=O.filter(function(U){return Object.getOwnPropertyDescriptor(D,U).enumerable})),P.push.apply(P,O)}return P}function d(D){for(var F=1;F<arguments.length;F++){var P=null!=arguments[F]?arguments[F]:{};F%2?u(Object(P),!0).forEach(function(O){s(D,O,P[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(P)):u(Object(P)).forEach(function(O){Object.defineProperty(D,O,Object.getOwnPropertyDescriptor(P,O))})}return D}function s(D,F,P){return(F=R(F))in D?Object.defineProperty(D,F,{value:P,enumerable:!0,configurable:!0,writable:!0}):D[F]=P,D}function _(D,F){for(var P=0;P<F.length;P++){var O=F[P];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(D,R(O.key),O)}}function R(D){var F=function x(D,F){if("object"!==e(D)||null===D)return D;var P=D[Symbol.toPrimitive];if(void 0!==P){var O=P.call(D,F||"default");if("object"!==e(O))return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===F?String:Number)(D)}(D,"string");return"symbol"===e(F)?F:String(F)}function k(D,F){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(O,U){return O.__proto__=U,O})(D,F)}function E(){return E=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(F,P,O){var U=function b(D,F){for(;!Object.prototype.hasOwnProperty.call(D,F)&&null!==(D=I(D)););return D}(F,P);if(U){var V=Object.getOwnPropertyDescriptor(U,P);return V.get?V.get.call(arguments.length<3?F:O):V.value}},E.apply(this,arguments)}function I(D){return(I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(P){return P.__proto__||Object.getPrototypeOf(P)})(D)}y.default=function(D){!function f(D,F){if("function"!=typeof F&&null!==F)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(F&&F.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),F&&k(D,F)}(P,D);var F=function w(D){var F=function p(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var U,O=I(D);if(F){var V=I(this).constructor;U=Reflect.construct(O,arguments,V)}else U=O.apply(this,arguments);return function g(D,F){if(F&&("object"===e(F)||"function"==typeof F))return F;if(void 0!==F)throw new TypeError("Derived constructors may only return object or undefined");return function M(D){if(void 0===D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}(D)}(this,U)}}(P);function P(){var O;!function A(D,F){if(!(D instanceof F))throw new TypeError("Cannot call a class as a function")}(this,P);for(var U=arguments.length,V=new Array(U),K=0;K<U;K++)V[K]=arguments[K];return(O=F.call.apply(F,[this].concat(V))).noField=!0,O}return function C(D,F,P){F&&_(D.prototype,F),P&&_(D,P),Object.defineProperty(D,"prototype",{writable:!1})}(P,[{key:"defaultSchema",get:function(){return P.schema()}},{key:"schema",get:function(){var U=this,V=n.default.omit(E(I(P.prototype),"schema",this),"components");return V.rows=[],this.eachComponent(function(K){(!V.rows||!V.rows.length)&&(V.rows=P.emptyTable(U.component.numRows,U.component.numCols)),V.rows[K.tableRow]||(V.rows[K.tableRow]=[]),V.rows[K.tableRow][K.tableColumn]||(V.rows[K.tableRow][K.column]={components:[]}),V.rows[K.tableRow][K.tableColumn].components.push(K.schema)}),V.rows.length||(V.rows=P.emptyTable(this.component.numRows,this.component.numCols)),V}},{key:"className",get:function(){var U="table-responsive ".concat(E(I(P.prototype),"className",this));return this.component.bordered||(U+=" no-top-border-table"),U}},{key:"cellClassName",get:function(){var U="";return this.component.cellAlignment&&(U="cell-align-".concat(this.component.cellAlignment)),U}},{key:"tableKey",get:function(){return"table-".concat(this.key)}},{key:"colWidth",get:function(){var U=this.component.numCols;return U&&"number"==typeof U?Math.floor(12/U).toString():""}},{key:"init",value:function(){var U=this;E(I(P.prototype),"init",this).call(this);for(var V=0;V<this.component.numRows;V++){this.component.rows[V]=this.component.rows[V]||[];for(var K=0;K<this.component.numCols;K++)this.component.rows[V][K]=this.component.rows[V][K]||{components:[]};this.component.rows[V]=this.component.rows[V].slice(0,this.component.numCols)}this.component.rows=this.component.rows.slice(0,this.component.numRows);var X=[];this.table=[],n.default.each(this.component.rows,function(me,J){U.table[J]=[],n.default.each(me,function(Q,re){U.table[J][re]=[],U.component.cloneRows&&(Q.components.length?X[re]=Q:X[re]&&(Q.components=n.default.cloneDeep(X[re].components),o.default.uniquify(U.root._form.components,Q))),n.default.each(Q.components,function(de){var te;U.builderMode?(de.id=de.id+J,te=de):te=d(d({},de),{},{id:de.id+J});var j=U.createComponent(te);j.tableRow=J,j.tableColumn=re,U.table[J][re].push(j)})})})}},{key:"render",value:function(){var U=this;return E(I(P.prototype),"render",this).call(this,this.renderTemplate("table",{cellClassName:this.cellClassName,tableKey:this.tableKey,colWidth:this.colWidth,tableComponents:this.table.map(function(V){return V.map(function(K){return U.renderComponents(K)})})}))}},{key:"attach",value:function(U){var V=this,K=this.table.reduce(function(me,J,Q){return me["".concat(V.tableKey,"-").concat(Q)]="multiple",me},{});this.loadRefs(U,K);var X=E(I(P.prototype),"attach",this).call(this,U);return this.table.forEach(function(me,J){me.forEach(function(Q,re){V.attachComponents(V.refs["".concat(V.tableKey,"-").concat(J)][re],V.table[J][re],V.component.rows[J][re].components)})}),X}},{key:"destroy",value:function(U){E(I(P.prototype),"destroy",this).call(this,U),delete this.table}}],[{key:"emptyTable",value:function(U,V){for(var K=[],X=0;X<U;X++){for(var me=[],J=0;J<V;J++)me.push({components:[]});K.push(me)}return K}},{key:"schema",value:function(){for(var U=arguments.length,V=new Array(U),K=0;K<U;K++)V[K]=arguments[K];return a.default.schema.apply(a.default,[{label:"Table",type:"table",input:!1,key:"table",numRows:3,numCols:3,rows:P.emptyTable(3,3),header:[],caption:"",cloneRows:!1,striped:!1,bordered:!1,hover:!1,condensed:!1,persistent:!1}].concat(V))}},{key:"builderInfo",get:function(){return{title:"Table",group:"layout",icon:"table",weight:40,documentation:"/userguide/form-building/layout-components#table",showPreview:!1,schema:P.schema()}}}]),P}(a.default)},17258:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{type:"number",label:"Number of Rows",key:"numRows",input:!0,weight:1,placeholder:"Number of Rows",tooltip:"Enter the number or rows that should be displayed by this table."},{type:"number",label:"Number of Columns",key:"numCols",input:!0,weight:2,placeholder:"Number of Columns",tooltip:"Enter the number or columns that should be displayed by this table."},{type:"checkbox",label:"Clone Row Components",key:"cloneRows",input:!0,weight:3,tooltip:"Check this if you would like to 'clone' the first row of components to all additional empty rows of the table."},{type:"select",label:"Cell Alignment",key:"cellAlignment",input:!0,tooltip:"Horizontal alignment for cells of the table.",dataSrc:"values",data:{values:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}]},defaultValue:"left",weight:3},{type:"checkbox",label:"Striped",key:"striped",tooltip:"This will stripe the table if checked.",input:!0,weight:701},{type:"checkbox",label:"Bordered",key:"bordered",input:!0,tooltip:"This will border the table if checked.",weight:702},{type:"checkbox",label:"Hover",key:"hover",input:!0,tooltip:"Highlight a row on hover.",weight:703},{type:"checkbox",label:"Condensed",key:"condensed",input:!0,tooltip:"Condense the size of the table.",weight:704}]},23746:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function a(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return e.default.apply(void 0,[[{key:"display",components:n.default}]].concat(u))},i(34338);var e=o(i(90700)),n=o(i(66335));function o(l){return l&&l.__esModule?l:{default:l}}},9954:(he,y,i)=>{"use strict";function e(O){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(U){return typeof U}:function(U){return U&&"function"==typeof Symbol&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U})(O)}i(32349),i(81919),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),i(77049),i(89730),i(34284),i(64043),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(50886),i(49693),i(60228),i(41517),i(47522),i(39772),i(98742),i(63975),i(278),i(38077),i(76801),i(43843),i(5399),i(88052);var n=a(i(6990)),o=a(i(60211));function a(O){return O&&O.__esModule?O:{default:O}}function l(O){return function A(O){if(Array.isArray(O))return _(O)}(O)||function s(O){if(typeof Symbol<"u"&&null!=O[Symbol.iterator]||null!=O["@@iterator"])return Array.from(O)}(O)||function d(O,U){if(O){if("string"==typeof O)return _(O,U);var V=Object.prototype.toString.call(O).slice(8,-1);if("Object"===V&&O.constructor&&(V=O.constructor.name),"Map"===V||"Set"===V)return Array.from(O);if("Arguments"===V||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V))return _(O,U)}}(O)||function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(O,U){(null==U||U>O.length)&&(U=O.length);for(var V=0,K=new Array(U);V<U;V++)K[V]=O[V];return K}function C(O,U,V){return(U=k(U))in O?Object.defineProperty(O,U,{value:V,enumerable:!0,configurable:!0,writable:!0}):O[U]=V,O}function x(O,U){for(var V=0;V<U.length;V++){var K=U[V];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(O,k(K.key),K)}}function k(O){var U=function w(O,U){if("object"!==e(O)||null===O)return O;var V=O[Symbol.toPrimitive];if(void 0!==V){var K=V.call(O,U||"default");if("object"!==e(K))return K;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===U?String:Number)(O)}(O,"string");return"symbol"===e(U)?U:String(U)}function M(O,U){return(M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,X){return K.__proto__=X,K})(O,U)}function L(){return L=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(U,V,K){var X=function D(O,U){for(;!Object.prototype.hasOwnProperty.call(O,U)&&null!==(O=F(O)););return O}(U,V);if(X){var me=Object.getOwnPropertyDescriptor(X,V);return me.get?me.get.call(arguments.length<3?U:K):me.value}},L.apply(this,arguments)}function F(O){return(F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(V){return V.__proto__||Object.getPrototypeOf(V)})(O)}y.default=function(O){!function g(O,U){if("function"!=typeof U&&null!==U)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(U&&U.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),Object.defineProperty(O,"prototype",{writable:!1}),U&&M(O,U)}(V,O);var U=function p(O){var U=function I(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var X,K=F(O);if(U){var me=F(this).constructor;X=Reflect.construct(K,arguments,me)}else X=K.apply(this,arguments);return function E(O,U){if(U&&("object"===e(U)||"function"==typeof U))return U;if(void 0!==U)throw new TypeError("Derived constructors may only return object or undefined");return function b(O){if(void 0===O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}(O)}(this,X)}}(V);function V(){var K;!function R(O,U){if(!(O instanceof U))throw new TypeError("Cannot call a class as a function")}(this,V);for(var X=arguments.length,me=new Array(X),J=0;J<X;J++)me[J]=arguments[J];return(K=U.call.apply(U,[this].concat(me))).currentTab=0,K.noField=!0,K}return function f(O,U,V){U&&x(O.prototype,U),V&&x(O,V),Object.defineProperty(O,"prototype",{writable:!1})}(V,[{key:"defaultSchema",get:function(){return V.schema()}},{key:"schema",get:function(){var X=this,me=L(F(V.prototype),"schema",this),J=n.default.cloneDeep(this.component.components);return me.components=J.map(function(Q,re){return Q.components=X.tabs[re].map(function(de){return de.schema}),Q}),me}},{key:"tabKey",get:function(){return"tab-".concat(this.key)}},{key:"tabLikey",get:function(){return"tabLi-".concat(this.key)}},{key:"tabLinkKey",get:function(){return"tabLink-".concat(this.key)}},{key:"init",value:function(){var X=this;this.components=[],this.tabs=[],n.default.each(this.component.components,function(me,J){X.tabs[J]=[],me.components=me.components||[],n.default.each(me.components,function(Q){var re=X.createComponent(Q);re.tab=J,X.tabs[J].push(re)})})}},{key:"render",value:function(){var X=this;return L(F(V.prototype),"render",this).call(this,this.renderTemplate("tab",{tabKey:this.tabKey,tabLikey:this.tabLikey,tabLinkKey:this.tabLinkKey,currentTab:this.currentTab,tabComponents:this.tabs.map(function(me){return X.renderComponents(me)})},this.options.flatten||this.options.pdf?"flat":null))}},{key:"attach",value:function(X){var me,J=this;this.loadRefs(X,(C(me={},this.tabLinkKey,"multiple"),C(me,this.tabKey,"multiple"),C(me,this.tabLikey,"multiple"),me)),["change","error"].forEach(function(re){return J.on(re,J.handleTabsValidation.bind(J))});var Q=L(F(V.prototype),"attach",this).call(this,X);return this.refs[this.tabLinkKey].forEach(function(re,de){J.addEventListener(re,"click",function(te){te.preventDefault(),J.setTab(de)})}),this.refs[this.tabKey].forEach(function(re,de){J.attachComponents(re,J.tabs[de],J.component.components[de].components)}),Q}},{key:"detach",value:function(X){L(F(V.prototype),"detach",this).call(this,X)}},{key:"setTab",value:function(X){var me=this;!this.tabs||!this.tabs[X]||!this.refs[this.tabKey]||!this.refs[this.tabKey][X]||(this.currentTab=X,n.default.each(this.refs[this.tabKey],function(J){me.removeClass(J,"formio-tab-panel-active"),J.style.display="none"}),this.addClass(this.refs[this.tabKey][X],"formio-tab-panel-active"),this.refs[this.tabKey][X].style.display="block",n.default.each(this.refs[this.tabLinkKey],function(J,Q){me.refs[me.tabLinkKey][Q]&&me.removeClass(J,"formio-tab-link-active"),me.refs[me.tabLikey][Q]&&me.removeClass(me.refs[me.tabLikey][Q],"formio-tab-link-container-active")}),this.refs[this.tabLikey][X]&&this.addClass(this.refs[this.tabLikey][X],"formio-tab-link-container-active"),this.refs[this.tabLinkKey][X]&&this.addClass(this.refs[this.tabLinkKey][X],"formio-tab-link-active"),this.triggerChange())}},{key:"beforeFocus",value:function(X){"beforeFocus"in this.parent&&this.parent.beforeFocus(this);var me=this.tabs.findIndex(function(J){return J.some(function(Q){return Q===X})});-1!==me&&this.currentTab!==me&&this.setTab(me)}},{key:"setErrorClasses",value:function(X,me,J,Q){var re=this,de=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.element;this.component.modalEdit&&L(F(V.prototype),"setErrorClasses",this).call(this,X,me,J,Q,de),X.forEach(function(te){re.addClass(te,"is-invalid"),"openModal"!==te.getAttribute("ref")&&re.addClass(te,re.options.highlightErrors?"tab-error":"has-error")})}},{key:"clearErrorClasses",value:function(X){var me=this;if(!this.options.server&&this.rendered){if(this.component.modalEdit){var J=Array.isArray(X)||X instanceof NodeList?this.element:X;L(F(V.prototype),"clearErrorClasses",this).call(this,J)}(X=Array.isArray(X)||X instanceof NodeList?X:[X]).forEach(function(Q){me.removeClass(Q,"is-invalid"),me.removeClass(Q,"tab-error"),me.removeClass(Q,"has-error")})}}},{key:"handleTabsValidation",value:function(){if(this.refs[this.tabLinkKey]&&this.refs[this.tabLinkKey].length&&this.tabs.length){this.clearErrorClasses(this.refs[this.tabLinkKey]);var X=this.tabs.reduce(function(J,Q,re){return Q.some(function(te){return!!te.error})?[].concat(l(J),[re]):J},[]);if(X.length){var me=l(this.refs[this.tabLinkKey]).filter(function(J,Q){return X.includes(Q)});this.setErrorClasses(me)}}}}],[{key:"schema",value:function(){for(var X=arguments.length,me=new Array(X),J=0;J<X;J++)me[J]=arguments[J];return o.default.schema.apply(o.default,[{label:"Tabs",type:"tabs",input:!1,key:"tabs",persistent:!1,tableView:!1,components:[{label:"Tab 1",key:"tab1",components:[]}],verticalLayout:!1}].concat(me))}},{key:"builderInfo",get:function(){return{title:"Tabs",group:"layout",icon:"folder-o",weight:50,documentation:"/userguide/form-building/layout-components#tabs",showPreview:!1,schema:V.schema()}}}]),V}(o.default)},66335:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{key:"components",type:"datagrid",input:!0,label:"Tabs",weight:50,reorder:!0,components:[{type:"textfield",input:!0,key:"label",label:"Label"},{type:"textfield",input:!0,key:"key",label:"Key",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}}]},{weight:1100,type:"checkbox",label:"Vertical Layout",tooltip:"Make this field display in vertical orientation.",key:"verticalLayout",input:!0}]},428:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function a(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return e.default.baseEditForm.apply(e.default,[[{key:"data",components:n.default}]].concat(u))},i(34338);var e=o(i(14231)),n=o(i(60527));function o(l){return l&&l.__esModule?l:{default:l}}},37501:(he,y,i)=>{"use strict";function e(X){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(me){return typeof me}:function(me){return me&&"function"==typeof Symbol&&me.constructor===Symbol&&me!==Symbol.prototype?"symbol":typeof me})(X)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(45247),i(69358),i(49693),i(47522),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),i(77049),i(89730),i(34284),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(98742),i(60228),i(28436),i(63975),i(6203),i(38077),i(64043),i(9873),i(50886),i(30024),i(63945),i(34338),i(5399),i(41517),i(88052);var V,n=function o(X){return X&&X.__esModule?X:{default:X}}(i(85943));function a(X){return function s(X){if(Array.isArray(X))return A(X)}(X)||function d(X){if(typeof Symbol<"u"&&null!=X[Symbol.iterator]||null!=X["@@iterator"])return Array.from(X)}(X)||function u(X,me){if(X){if("string"==typeof X)return A(X,me);var J=Object.prototype.toString.call(X).slice(8,-1);if("Object"===J&&X.constructor&&(J=X.constructor.name),"Map"===J||"Set"===J)return Array.from(X);if("Arguments"===J||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return A(X,me)}}(X)||function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(X,me){(null==me||me>X.length)&&(me=X.length);for(var J=0,Q=new Array(me);J<me;J++)Q[J]=X[J];return Q}function _(X,me){var J=Object.keys(X);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(X);me&&(Q=Q.filter(function(re){return Object.getOwnPropertyDescriptor(X,re).enumerable})),J.push.apply(J,Q)}return J}function C(X){for(var me=1;me<arguments.length;me++){var J=null!=arguments[me]?arguments[me]:{};me%2?_(Object(J),!0).forEach(function(Q){g(X,Q,J[Q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(J)):_(Object(J)).forEach(function(Q){Object.defineProperty(X,Q,Object.getOwnPropertyDescriptor(J,Q))})}return X}function x(X,me){for(var J=0;J<me.length;J++){var Q=me[J];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(X,M(Q.key),Q)}}function k(X,me,J,Q){return(k=typeof Reflect<"u"&&Reflect.set?Reflect.set:function(de,te,j,H){var q,z=b(de,te);if(z){if((q=Object.getOwnPropertyDescriptor(z,te)).set)return q.set.call(H,j),!0;if(!q.writable)return!1}if(q=Object.getOwnPropertyDescriptor(H,te)){if(!q.writable)return!1;q.value=j,Object.defineProperty(H,te,q)}else g(H,te,j);return!0})(X,me,J,Q)}function g(X,me,J){return(me=M(me))in X?Object.defineProperty(X,me,{value:J,enumerable:!0,configurable:!0,writable:!0}):X[me]=J,X}function M(X){var me=function p(X,me){if("object"!==e(X)||null===X)return X;var J=X[Symbol.toPrimitive];if(void 0!==J){var Q=J.call(X,me||"default");if("object"!==e(Q))return Q;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===me?String:Number)(X)}(X,"string");return"symbol"===e(me)?me:String(me)}function E(){return E=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(me,J,Q){var re=b(me,J);if(re){var de=Object.getOwnPropertyDescriptor(re,J);return de.get?de.get.call(arguments.length<3?me:Q):de.value}},E.apply(this,arguments)}function b(X,me){for(;!Object.prototype.hasOwnProperty.call(X,me)&&null!==(X=U(X)););return X}function L(X,me){return(L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Q,re){return Q.__proto__=re,Q})(X,me)}function U(X){return(U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)})(X)}typeof window<"u"&&(V=i(4414)),y.default=function(X){!function I(X,me){if("function"!=typeof me&&null!==me)throw new TypeError("Super expression must either be null or a function");X.prototype=Object.create(me&&me.prototype,{constructor:{value:X,writable:!0,configurable:!0}}),Object.defineProperty(X,"prototype",{writable:!1}),me&&L(X,me)}(J,X);var me=function D(X){var me=function O(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var re,Q=U(X);if(me){var de=U(this).constructor;re=Reflect.construct(Q,arguments,de)}else re=Q.apply(this,arguments);return function F(X,me){if(me&&("object"===e(me)||"function"==typeof me))return me;if(void 0!==me)throw new TypeError("Derived constructors may only return object or undefined");return function P(X){if(void 0===X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X}(X)}(this,re)}}(J);function J(){return function R(X,me){if(!(X instanceof me))throw new TypeError("Cannot call a class as a function")}(this,J),me.apply(this,arguments)}return function f(X,me,J){me&&x(X.prototype,me),J&&x(X,J),Object.defineProperty(X,"prototype",{writable:!1})}(J,[{key:"init",value:function(){E(U(J.prototype),"init",this).call(this)}},{key:"emptyValue",get:function(){return"string"===this.component.storeas?"":[]}},{key:"defaultSchema",get:function(){return J.schema()}},{key:"inputInfo",get:function(){var re=E(U(J.prototype),"inputInfo",this);return re.type="input",re.attr.type="text",re.changeEvent="change",re}},{key:"delimiter",get:function(){return this.component.delimeter||","}},{key:"attachElement",value:function(re,de){var te=this;if(E(U(J.prototype),"attachElement",this).call(this,re,de),re&&(re.setAttribute("dir",this.i18next.dir()),this.choices&&this.choices.destroy(),V)){var j=!!this.component.placeholder;this.choices=new V(re,{delimiter:this.delimiter,editItems:!0,allowHTML:!0,maxItemCount:this.component.maxTags,removeItemButton:!0,duplicateItemsAllowed:!1,shadowRoot:this.root?this.root.shadowRoot:null,placeholder:j,placeholderValue:j?this.t(this.component.placeholder,{_userInput:!0}):null}),this.choices.itemList.element.tabIndex=re.tabIndex,this.addEventListener(this.choices.input.element,"blur",function(){var H=te.choices.input.value,z=te.component.maxTags,q=te.choices.getValue(!0).length,se=te.choices.getValue(!0).some(function(ne){return ne.trim()===H.trim()});H&&(z&&q===z?(te.choices.addItems=!1,te.choices.clearInput()):se?te.choices.clearInput():(te.choices.setValue([H]),te.choices.clearInput(),te.choices.hideDropdown(!0),te.updateValue(null,{modified:!0})))})}}},{key:"detach",value:function(){E(U(J.prototype),"detach",this).call(this),this.choices&&(this.choices.destroy(),this.choices=null)}},{key:"normalizeValue",value:function(re){return"string"===this.component.storeas&&Array.isArray(re)?re.join(this.delimiter):"array"===this.component.storeas&&"string"==typeof re?re.split(this.delimiter).filter(function(de){return de}):re}},{key:"setValue",value:function(re){var de=this,te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},j=E(U(J.prototype),"setValue",this).call(this,re,te);if(this.choices){var H=this.dataValue;if(this.choices.removeActiveItems(),H){"string"==typeof H&&(H=H.split(this.delimiter).filter(function(q){return q}));var z=Array.isArray(H)?H:[H];this.choices.setValue(z.map(function(q){return de.sanitize(q,de.shouldSanitizeValue)}))}}return j}},{key:"disabled",get:function(){return E(U(J.prototype),"disabled",this)},set:function(re){(function w(X,me,J,Q,re){if(!k(X,me,J,Q||X)&&re)throw new Error("failed to set property")})(U(J.prototype),"disabled",re,this,!0),this.choices&&(re?this.choices.disable():this.choices.enable())}},{key:"focus",value:function(){this.refs.input&&this.refs.input.length&&this.refs.input[0].parentNode.lastChild.focus()}},{key:"getValueAsString",value:function(re){if(!re)return"";if(Array.isArray(re))return re.join("".concat(this.delimiter||","," "));var de=re.toString();return this.sanitize(de,this.shouldSanitizeValue)}}],[{key:"schema",value:function(){for(var re=arguments.length,de=new Array(re),te=0;te<re;te++)de[te]=arguments[te];return n.default.schema.apply(n.default,[{type:"tags",label:"Tags",key:"tags",delimeter:",",storeas:"string",maxTags:0}].concat(de))}},{key:"builderInfo",get:function(){return{title:"Tags",icon:"tags",group:"advanced",documentation:"/userguide/form-building/advanced-components#tags",weight:30,schema:J.schema()}}},{key:"serverConditionSettings",get:function(){return C(C({},E(U(J),"serverConditionSettings",this)),{},{operators:[].concat(a(E(U(J),"serverConditionSettings",this).operators),["includes","notIncludes"])})}}]),J}(n.default)},60527:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"multiple",ignore:!0},{weight:20,type:"textfield",input:!0,key:"delimeter",label:"Delimiter",tooltip:"What is used to separate the tags.</a>"},{weight:22,type:"number",input:!0,key:"maxTags",label:"Max Tags",defaultValue:0,tooltip:"The maximum amount of tags that can be added. 0 for infinity."},{weight:24,type:"select",input:!0,key:"storeas",label:"Store As",dataSrc:"values",data:{values:[{label:"String (CSV)",value:"string"},{label:"Array of Tags",value:"array"}]}}]},47537:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function l(){for(var u=arguments.length,d=new Array(u),s=0;s<u;s++)d[s]=arguments[s];return e.default.apply(void 0,[[{key:"display",components:n.default},{key:"validation",components:o.default}]].concat(d))},i(34338);var e=a(i(33062)),n=a(i(59782)),o=a(i(81766));function a(u){return u&&u.__esModule?u:{default:u}}},37087:(he,y,i)=>{"use strict";function e(I){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(L){return typeof L}:function(L){return L&&"function"==typeof Symbol&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L})(I)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(63975),i(34338),i(32320),i(34284),i(50886),i(49693),i(60228),i(80939),i(52003),i(64043),i(63945),i(57267),i(47522),i(5399),i(41517),i(88052);var n=u(i(96368)),o=u(i(6990)),a=u(i(73808)),l=i(12866);function u(I){return I&&I.__esModule?I:{default:I}}function s(I,L){for(var D=0;D<L.length;D++){var F=L[D];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(I,_(F.key),F)}}function _(I){var L=function C(I,L){if("object"!==e(I)||null===I)return I;var D=I[Symbol.toPrimitive];if(void 0!==D){var F=D.call(I,L||"default");if("object"!==e(F))return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===L?String:Number)(I)}(I,"string");return"symbol"===e(L)?L:String(L)}function R(){return R=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(L,D,F){var P=function x(I,L){for(;!Object.prototype.hasOwnProperty.call(I,L)&&null!==(I=E(I)););return I}(L,D);if(P){var O=Object.getOwnPropertyDescriptor(P,D);return O.get?O.get.call(arguments.length<3?L:F):O.value}},R.apply(this,arguments)}function k(I,L){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(F,P){return F.__proto__=P,F})(I,L)}function E(I){return(E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(D){return D.__proto__||Object.getPrototypeOf(D)})(I)}y.default=function(I){!function f(I,L){if("function"!=typeof L&&null!==L)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(L&&L.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),Object.defineProperty(I,"prototype",{writable:!1}),L&&k(I,L)}(D,I);var L=function w(I){var L=function p(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var P,F=E(I);if(L){var O=E(this).constructor;P=Reflect.construct(F,arguments,O)}else P=F.apply(this,arguments);return function g(I,L){if(L&&("object"===e(L)||"function"==typeof L))return L;if(void 0!==L)throw new TypeError("Derived constructors may only return object or undefined");return function M(I){if(void 0===I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(I)}(this,P)}}(D);function D(){return function d(I,L){if(!(I instanceof L))throw new TypeError("Cannot call a class as a function")}(this,D),L.apply(this,arguments)}return function A(I,L,D){L&&s(I.prototype,L),D&&s(I,D),Object.defineProperty(I,"prototype",{writable:!1})}(D,[{key:"init",value:function(){R(E(D.prototype),"init",this).call(this),this.editors=[],this.editorsReady=[],this.updateSizes=[],this.options.submitOnEnter=!1}},{key:"defaultSchema",get:function(){return D.schema()}},{key:"inputInfo",get:function(){var P=R(E(D.prototype),"inputInfo",this);return P.type=this.component.wysiwyg?"div":"textarea",this.component.rows&&(P.attr.rows=this.component.rows),P}},{key:"validateMultiple",value:function(){return!this.isJsonValue}},{key:"renderElement",value:function(P,O){var U=this.inputInfo;if(U.attr=U.attr||{},U.content=P,(this.options.readOnly||this.disabled)&&!this.isHtmlRenderMode()){var V=this.info.attr.style||"",K='<div ref="input" class="formio-editor-read-only-content" '.concat(V?"style='".concat(V,"'"):"","></div>");return this.renderTemplate("well",{children:K,nestedKey:this.key,value:P})}return this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:U,value:P,index:O})}},{key:"autoExpand",get:function(){return this.component.autoExpand}},{key:"updateEditorValue",value:function(P,O){O=this.getConvertedValue(this.trimBlanks(O));var U=this.dataValue;if(this.component.multiple&&Array.isArray(U)){var V=o.default.clone(U);V[P]=O,O=V}!o.default.isEqual(O,U)&&(!o.default.isEmpty(O)||!o.default.isEmpty(U))&&this.updateValue(O,{modified:!this.autoModified},P),this.autoModified=!1}},{key:"attachElement",value:function(P,O){var U=this;if(this.autoExpand&&(this.isPlain||this.options.readOnly||this.options.htmlView)&&"TEXTAREA"===P.nodeName&&this.addAutoExpanding(P,O),this.options.readOnly)return P;this.component.wysiwyg&&!this.component.editor&&(this.component.editor="ckeditor");var V=o.default.isEmpty(this.component.wysiwyg)?this.wysiwygDefault[this.component.editor]||this.wysiwygDefault.default:this.component.wysiwyg;return this.editorsReady[O]=new a.default(function(K){switch(U.component.editor){case"ace":V||(V={}),V.mode=U.component.as?"ace/mode/".concat(U.component.as):"ace/mode/javascript",U.addAce(P,V,function(X){return U.updateEditorValue(O,X)}).then(function(X){U.editors[O]=X;var me=U.dataValue;return me=U.component.multiple&&Array.isArray(me)?me[O]:me,X.setValue(U.setConvertedValue(me,O)),K(X),X}).catch(function(X){return console.warn(X)});break;case"quill":(V.hasOwnProperty("toolbarGroups")||V.hasOwnProperty("toolbar"))&&(console.warn("The WYSIWYG settings are configured for CKEditor. For this renderer, you will need to use configurations for the Quill Editor. See https://quilljs.com/docs/configuration for more information."),V=U.wysiwygDefault.quill),U.addQuill(P,V,function(){return U.updateEditorValue(O,U.editors[O].root.innerHTML)}).then(function(X){if(U.editors[O]=X,U.component.isUploadEnabled){var me=U;X.getModule("uploader").options.handler=function(){for(var Q,re=arguments.length,de=new Array(re),te=0;te<re;te++)de[te]=arguments[te];(Q=me.imageHandler).call.apply(Q,[me,this].concat(de))}}X.root.spellcheck=U.component.spellcheck,(U.options.readOnly||U.disabled)&&X.disable();var J=U.dataValue;return J=U.component.multiple&&Array.isArray(J)?J[O]:J,X.setContents(X.clipboard.convert({html:U.setConvertedValue(J,O)})),K(X),X}).catch(function(X){return console.warn(X)});break;case"ckeditor":(V=V||{}).rows=U.component.rows,U.addCKE(P,V,function(X){return U.updateEditorValue(O,X)}).then(function(X){U.editors[O]=X;var me=U.dataValue;me=U.component.multiple&&Array.isArray(me)?me[O]:me;var J=U.setConvertedValue(me,O),Q=U.options.readOnly||U.disabled;if((0,l.getBrowserInfo)().ie)X.on("instanceReady",function(){X.setReadOnly(Q),X.setData(J)});else{var re=parseInt(U.component.rows,10);o.default.isFinite(re)&&o.default.has(X,"ui.view.editable.editableElement")&&(X.ui.view.editable.editableElement.style.height="".concat(31*re+14,"px")),X.isReadOnly=Q,X.data.set(J)}return K(X),X});break;default:R(E(D.prototype),"attachElement",U).call(U,P,O)}}),P}},{key:"attach",value:function(P){var O=R(E(D.prototype),"attach",this).call(this,P);return this.restoreValue(),O}},{key:"imageHandler",value:function(P,O,U){var V=this,K=P.quill;if(U&&U.length){K.enable(!1);var te,X=this.component,J=X.uploadUrl,Q=X.uploadOptions,re=X.uploadDir,de=X.fileKey;this.fileService.uploadFile(X.uploadStorage,U[0],(0,l.uniqueName)(U[0].name),re||"",null,J,Q,de).then(function(j){return te=j,V.fileService.downloadFile(j)}).then(function(j){K.enable(!0);var H=Quill.import("delta");K.updateContents((new H).retain(O.index).delete(O.length).insert({image:j.url},{alt:JSON.stringify(te)}),Quill.sources.USER)}).catch(function(j){console.warn("Quill image upload failed"),console.warn(j),K.enable(!0)})}else console.warn("No files selected")}},{key:"isPlain",get:function(){return!this.component.wysiwyg&&!this.component.editor}},{key:"htmlView",get:function(){return this.options.readOnly&&(this.component.editor||this.component.wysiwyg)}},{key:"setValueAt",value:function(P,O){var me,U=this,V=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};R(E(D.prototype),"setValueAt",this).call(this,P,O,V),this.editorsReady[P]&&this.editorsReady[P].then((me=o.default.clone(V),function(J){if(!me.skipWysiwyg)switch(U.autoModified=!0,U.component.editor){case"ace":J.setValue(U.setConvertedValue(O,P));break;case"quill":if(U.component.isUploadEnabled)U.setAsyncConvertedValue(O).then(function(de){var te=J.clipboard.convert({html:de});J.setContents(te)});else{var Q=U.setConvertedValue(O,P),re=J.clipboard.convert({html:Q});J.setContents(re)}break;case"ckeditor":J.data.set(U.setConvertedValue(O,P))}}))}},{key:"setValue",value:function(P){var O=this,U=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isPlain||this.options.readOnly||this.disabled?(P=this.component.multiple&&Array.isArray(P)?P.map(function(V,K){return O.setConvertedValue(V,K)}):this.setConvertedValue(P),R(E(D.prototype),"setValue",this).call(this,P,U)):(U.skipWysiwyg=(""!==P||!U.resetValue)&&o.default.isEqual(P,this.getValue()),R(E(D.prototype),"setValue",this).call(this,P,U))}},{key:"setContent",value:function(P,O,U){R(E(D.prototype),"setContent",this).call(this,P,O,U,{addAttr:["allow","allowfullscreen","frameborder","scrolling"],addTags:["iframe"]})}},{key:"setReadOnlyValue",value:function(P,O){O=O||0,(this.options.readOnly||this.disabled)&&this.refs.input&&this.refs.input[O]&&("plain"===this.component.inputFormat?this.refs.input[O].innerText=this.interpolate(P,{},{noeval:!0}):this.setContent(this.refs.input[O],this.interpolate(P,{},{noeval:!0}),this.shouldSanitizeValue))}},{key:"isJsonValue",get:function(){return this.component.as&&"json"===this.component.as}},{key:"setConvertedValue",value:function(P,O){if(this.isJsonValue&&!o.default.isNil(P))try{P=JSON.stringify(P,null,2)}catch(U){console.warn(U)}return o.default.isString(P)||(P=""),this.setReadOnlyValue(P,O),P}},{key:"setAsyncConvertedValue",value:function(P){if(this.isJsonValue&&P)try{P=JSON.stringify(P,null,2)}catch(V){console.warn(V)}o.default.isString(P)||(P="");var O=(new DOMParser).parseFromString(P,"text/html"),U=O.getElementsByTagName("img");return U.length?this.setImagesUrl(U).then(function(){return P=O.getElementsByTagName("body")[0].innerHTML}):a.default.resolve(P)}},{key:"setImagesUrl",value:function(P){var O=this;return a.default.all(o.default.map(P,function(U){var V;try{V=JSON.parse(U.getAttribute("alt"))}catch(K){console.warn(K)}return O.fileService.downloadFile(V).then(function(K){U.setAttribute("src",K.url)})}))}},{key:"addAutoExpanding",value:function(P,O){var U=null,V=null,K=function(de){var te=P.style.width;P.style.width="0px",P.style.width=te,P.style.overflowY=de},me=function(){0!==P.scrollHeight&&function(de,te){for(var j=[];de&&de.parentNode&&de.parentNode instanceof Element;)de.parentNode.scrollTop&&j.push({node:de.parentNode,scrollTop:de.parentNode.scrollTop}),de=de.parentNode;P.style.height="",P.style.height="".concat(P.scrollHeight+U,"px"),j.forEach(function(H){H.node.scrollTop=H.scrollTop})}(P)},J=o.default.debounce(function(){me();var re=Math.round(parseFloat(P.style.height)),de=window.getComputedStyle(P,null),te=P.offsetHeight;te<re&&"hidden"===de.overflowY?K("scroll"):"hidden"!==de.overflowY&&K("hidden"),me(),V!==(te=P.offsetHeight)&&(V=te,J())},200),Q=window.getComputedStyle(P,null);P.style.resize="none",U=parseFloat(Q.borderTopWidth)+parseFloat(Q.borderBottomWidth)||0,window&&this.addEventListener(window,"resize",J),this.addEventListener(P,"input",J),this.on("initialized",J),this.updateSizes[O]=J,J()}},{key:"trimBlanks",value:function(P){if(!P||this.isPlain)return P;var O=function(V){var K="<p>&nbsp;</p>",X="<p><br></p>",me="<p><br>&nbsp;</p>",J=new RegExp("^".concat(K,"|").concat(K,"$|^").concat(X,"|").concat(X,"$|^").concat(me,"|").concat(me,"$"),"g");return"string"==typeof V?V.replace(J,""):V};return Array.isArray(P)?P.forEach(function(U,V){P[V]=O(U)}):P=O(P),P}},{key:"onChange",value:function(P,O){var U=R(E(D.prototype),"onChange",this).call(this,P,O);return this.updateSizes.forEach(function(V){return V()}),U}},{key:"hasChanged",value:function(P,O){return R(E(D.prototype),"hasChanged",this).call(this,this.trimBlanks(P),this.trimBlanks(O))}},{key:"isEmpty",value:function(){var P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return R(E(D.prototype),"isEmpty",this).call(this,this.trimBlanks(P))}},{key:"defaultValue",get:function(){var P=R(E(D.prototype),"defaultValue",this);return"quill"===this.component.editor&&!P&&(P="<p><br></p>"),P}},{key:"getConvertedValue",value:function(P){if(this.isJsonValue&&P)try{P=JSON.parse(P)}catch{}return P}},{key:"detach",value:function(){var P=this;this.editors.forEach(function(O){O.destroy&&O.destroy()}),this.editors=[],this.editorsReady=[],this.updateSizes.forEach(function(O){return P.removeEventListener(window,"resize",O)}),this.updateSizes=[],R(E(D.prototype),"detach",this).call(this)}},{key:"getValue",value:function(){return this.isPlain?this.getConvertedValue(R(E(D.prototype),"getValue",this).call(this)):this.dataValue}},{key:"focus",value:function(){var P=this;switch(R(E(D.prototype),"focus",this).call(this),this.component.editor){case"ckeditor":var O;null===(O=this.editorsReady[0])||void 0===O||O.then(function(){var K,X;null!==(K=P.editors[0].editing)&&void 0!==K&&null!==(X=K.view)&&void 0!==X&&X.focus&&P.editors[0].editing.view.focus(),P.element.scrollIntoView()}).catch(function(K){console.warn("An editor did not initialize properly when trying to focus:",K)});break;case"ace":var U;null===(U=this.editorsReady[0])||void 0===U||U.then(function(){P.editors[0].focus(),P.element.scrollIntoView()}).catch(function(K){console.warn("An editor did not initialize properly when trying to focus:",K)});break;case"quill":var V;null===(V=this.editorsReady[0])||void 0===V||V.then(function(){P.editors[0].focus()}).catch(function(K){console.warn("An editor did not initialize properly when trying to focus:",K)})}}}],[{key:"schema",value:function(){for(var P=arguments.length,O=new Array(P),U=0;U<P;U++)O[U]=arguments[U];return n.default.schema.apply(n.default,[{type:"textarea",label:"Text Area",key:"textArea",rows:3,wysiwyg:!1,editor:"",fixedSize:!0,inputFormat:"html",validate:{minWords:"",maxWords:""}}].concat(O))}},{key:"builderInfo",get:function(){return{title:"Text Area",group:"basic",icon:"font",documentation:"/userguide/form-building/form-components#text-area",weight:20,schema:D.schema()}}}]),D}(n.default)},59782:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(50886);var e=function o(l){return l&&l.__esModule?l:{default:l}}(i(6990)),n=i(55798);y.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"mask",ignore:!0},{type:"number",input:!0,key:"rows",label:"Rows",weight:210,tooltip:"This allows control over how many rows are visible in the text area.",placeholder:"Enter the amount of rows"},{weight:1350,type:"checkbox",input:!0,key:"spellcheck",defaultValue:!0,label:"Allow Spellcheck"},{type:"select",input:!0,key:"editor",label:"Editor",tooltip:"Select the type of WYSIWYG editor to use for this text area.",dataSrc:"values",data:{values:[{label:"None",value:""},{label:"ACE",value:"ace"},{label:"CKEditor",value:"ckeditor"},{label:"Quill",value:"quill"}]},weight:415},{type:"checkbox",input:!0,key:"autoExpand",label:"Auto Expand",tooltip:"This will make the TextArea auto expand it's height as the user is typing into the area.",weight:415,conditional:{json:{"==":[{var:"data.editor"},""]}}},{type:"checkbox",input:!0,key:"isUploadEnabled",label:"Enable Image Upload",weight:415.1,conditional:{json:{or:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.editor"},"ckeditor"]}]}}},{type:"select",input:!0,key:"uploadStorage",label:"Image Upload Storage",placeholder:"Select your file storage provider",weight:415.2,tooltip:"Which storage to save the files in.",valueProperty:"value",dataSrc:"custom",data:{custom:function(){return e.default.map(n.GlobalFormio.Providers.getProviders("storage"),function(u,d){return{label:u.title,value:d}})}},conditional:{json:{"===":[{var:"data.isUploadEnabled"},!0]}}},{type:"textfield",input:!0,key:"uploadUrl",label:"Image Upload Url",weight:415.3,placeholder:"Enter the url to post the files to.",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#server-side' target='_blank'>https://github.com/danialfarid/ng-file-upload#server-side</a> for how to set up the server.",conditional:{json:{"===":[{var:"data.uploadStorage"},"url"]}}},{type:"textarea",key:"uploadOptions",label:"Image Upload Custom request options",tooltip:"Pass your custom xhr options(optional)",rows:5,editor:"ace",input:!0,weight:415.4,placeholder:'{\n      "withCredentials": true\n    }',conditional:{json:{"===":[{var:"data.uploadStorage"},"url"]}}},{type:"textfield",input:!0,key:"uploadDir",label:"Image Upload Directory",placeholder:"(optional) Enter a directory for the files",tooltip:"This will place all the files uploaded in this field in the directory",weight:415.5,conditional:{json:{"===":[{var:"data.isUploadEnabled"},!0]}}},{type:"textfield",key:"fileKey",input:!0,label:"File form-data Key",tooltip:"Key name that you would like to modify for the file while calling API request.",rows:5,weight:415.6,placeholder:"Enter the key name of a file for form data.",conditional:{json:{and:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.isUploadEnabled"},!0]},{"===":[{var:"data.uploadStorage"},"url"]}]}}},{type:"select",input:!0,key:"as",label:"Save As",dataSrc:"values",tooltip:"This setting determines how the value should be entered and stored in the database.",clearOnHide:!0,data:{values:[{label:"String",value:"string"},{label:"JSON",value:"json"},{label:"HTML",value:"html"}]},conditional:{json:{or:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.editor"},"ace"]}]}},weight:416},{type:"textarea",input:!0,editor:"ace",rows:10,as:"json",label:"Editor Settings",tooltip:"Enter the WYSIWYG editor JSON configuration.",key:"wysiwyg",customDefaultValue:function(u,d,s,A,_){return _?_.wysiwygDefault:""},conditional:{json:{or:[{"===":[{var:"data.editor"},"ace"]},{"===":[{var:"data.editor"},"ckeditor"]},{"===":[{var:"data.editor"},"quill"]}]}},weight:417}]},81766:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{weight:125,key:"validate.minWords",label:"Minimum Word Length",placeholder:"Minimum Word Length",type:"number",tooltip:"The minimum amount of words that can be added to this field.",input:!0},{weight:126,key:"validate.maxWords",label:"Maximum Word Length",placeholder:"Maximum Word Length",type:"number",tooltip:"The maximum amount of words that can be added to this field.",input:!0}]},33062:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function u(){for(var d=arguments.length,s=new Array(d),A=0;A<d;A++)s[A]=arguments[A];return e.default.baseEditForm.apply(e.default,[[{key:"display",components:o.default},{key:"data",components:n.default},{key:"validation",components:a.default}]].concat(s))},i(34338);var e=l(i(14231)),n=l(i(15946)),o=l(i(31764)),a=l(i(43945));function l(d){return d&&d.__esModule?d:{default:d}}},96368:(he,y,i)=>{"use strict";i(32349),i(81919),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(69358),i(38077),i(49693),i(47522),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),i(77049),i(89730),i(34284),i(51090),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(63975),i(50886),i(64043),i(57267),i(38320),i(28436),i(30024),i(60228),i(63945),i(34338),i(5399),i(41517),i(88052);var e=d(i(85943)),n=i(61712),o=function u(J,Q){if(!Q&&J&&J.__esModule)return J;if(null===J||"object"!==f(J)&&"function"!=typeof J)return{default:J};var re=l(Q);if(re&&re.has(J))return re.get(J);var de={},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in J)if("default"!==j&&Object.prototype.hasOwnProperty.call(J,j)){var H=te?Object.getOwnPropertyDescriptor(J,j):null;H&&(H.get||H.set)?Object.defineProperty(de,j,H):de[j]=J[j]}return de.default=J,re&&re.set(J,de),de}(i(12866)),a=d(i(73808));function l(J){if("function"!=typeof WeakMap)return null;var Q=new WeakMap,re=new WeakMap;return(l=function(te){return te?re:Q})(J)}function d(J){return J&&J.__esModule?J:{default:J}}function s(J){return function R(J){if(Array.isArray(J))return x(J)}(J)||function C(J){if(typeof Symbol<"u"&&null!=J[Symbol.iterator]||null!=J["@@iterator"])return Array.from(J)}(J)||function _(J,Q){if(J){if("string"==typeof J)return x(J,Q);var re=Object.prototype.toString.call(J).slice(8,-1);if("Object"===re&&J.constructor&&(re=J.constructor.name),"Map"===re||"Set"===re)return Array.from(J);if("Arguments"===re||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(re))return x(J,Q)}}(J)||function A(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(J,Q){(null==Q||Q>J.length)&&(Q=J.length);for(var re=0,de=new Array(Q);re<Q;re++)de[re]=J[re];return de}function f(J){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Q){return typeof Q}:function(Q){return Q&&"function"==typeof Symbol&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q})(J)}function k(J,Q){var re=Object.keys(J);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(J);Q&&(de=de.filter(function(te){return Object.getOwnPropertyDescriptor(J,te).enumerable})),re.push.apply(re,de)}return re}function w(J){for(var Q=1;Q<arguments.length;Q++){var re=null!=arguments[Q]?arguments[Q]:{};Q%2?k(Object(re),!0).forEach(function(de){g(J,de,re[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(J,Object.getOwnPropertyDescriptors(re)):k(Object(re)).forEach(function(de){Object.defineProperty(J,de,Object.getOwnPropertyDescriptor(re,de))})}return J}function g(J,Q,re){return(Q=b(Q))in J?Object.defineProperty(J,Q,{value:re,enumerable:!0,configurable:!0,writable:!0}):J[Q]=re,J}function p(J,Q){for(var re=0;re<Q.length;re++){var de=Q[re];de.enumerable=de.enumerable||!1,de.configurable=!0,"value"in de&&(de.writable=!0),Object.defineProperty(J,b(de.key),de)}}function b(J){var Q=function I(J,Q){if("object"!==f(J)||null===J)return J;var re=J[Symbol.toPrimitive];if(void 0!==re){var de=re.call(J,Q||"default");if("object"!==f(de))return de;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Q?String:Number)(J)}(J,"string");return"symbol"===f(Q)?Q:String(Q)}function D(J,Q){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(de,te){return de.__proto__=te,de})(J,Q)}function V(){return V=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(Q,re,de){var te=function K(J,Q){for(;!Object.prototype.hasOwnProperty.call(J,Q)&&null!==(J=X(J)););return J}(Q,re);if(te){var j=Object.getOwnPropertyDescriptor(te,re);return j.get?j.get.call(arguments.length<3?Q:de):j.value}},V.apply(this,arguments)}function X(J){return(X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(re){return re.__proto__||Object.getPrototypeOf(re)})(J)}y.default=function(J){!function L(J,Q){if("function"!=typeof Q&&null!==Q)throw new TypeError("Super expression must either be null or a function");J.prototype=Object.create(Q&&Q.prototype,{constructor:{value:J,writable:!0,configurable:!0}}),Object.defineProperty(J,"prototype",{writable:!1}),Q&&D(J,Q)}(re,J);var Q=function F(J){var Q=function U(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var te,de=X(J);if(Q){var j=X(this).constructor;te=Reflect.construct(de,arguments,j)}else te=de.apply(this,arguments);return function P(J,Q){if(Q&&("object"===f(Q)||"function"==typeof Q))return Q;if(void 0!==Q)throw new TypeError("Derived constructors may only return object or undefined");return function O(J){if(void 0===J)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return J}(J)}(this,te)}}(re);function re(de,te,j){var H,z,q,se;!function M(J,Q){if(!(J instanceof Q))throw new TypeError("Cannot call a class as a function")}(this,re);var ne=(null===(H=(se=Q.call(this,de,te,j)).component.widget)||void 0===H?void 0:H.timezone)||se.options.timezone,_e=(null===(z=se.component.widget)||void 0===z?void 0:z.displayInTimezone)||"viewer";return"calendar"===(null===(q=se.component.widget)||void 0===q?void 0:q.type)&&(se.component.widget=w(w({},se.component.widget),{},{readOnly:se.options.readOnly,timezone:ne,displayInTimezone:_e,locale:se.component.widget.locale||se.options.language,saveAs:"text"})),se}return function E(J,Q,re){Q&&p(J.prototype,Q),re&&p(J,re),Object.defineProperty(J,"prototype",{writable:!1})}(re,[{key:"defaultSchema",get:function(){return re.schema()}},{key:"inputInfo",get:function(){var te=V(X(re.prototype),"inputInfo",this);return te.type="input",this.component.hasOwnProperty("spellcheck")&&(te.attr.spellcheck=this.component.spellcheck),te.attr.type=this.component.mask||"password"===this.component.inputType?"password":"text",te.changeEvent="blur"===this.component.applyMaskOn?"blur":"input",te}},{key:"emptyValue",get:function(){return""}},{key:"attach",value:function(te){return this.loadRefs(te,{valueMaskInput:"single"}),V(X(re.prototype),"attach",this).call(this,te)}},{key:"maskValue",value:function(te){var j=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((!te||"object"!==f(te))&&(te={value:te,maskName:this.component.inputMasks[0].label}),!te.value){var H=j.noDefault?this.emptyValue:this.defaultValue;te.value=Array.isArray(H)?H[0]:H}return te}},{key:"normalizeValue",value:function(te){var j=this,H=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isMultipleMasksField?Array.isArray(te)?V(X(re.prototype),"normalizeValue",this).call(this,te.map(function(z){return j.maskValue(z,H)})):V(X(re.prototype),"normalizeValue",this).call(this,this.maskValue(te,H)):V(X(re.prototype),"normalizeValue",this).call(this,te)}},{key:"setValueAt",value:function(te,j){var H=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.isMultipleMasksField)return V(X(re.prototype),"setValueAt",this).call(this,te,j,H);var z=(j=this.maskValue(j,H)).value||"",q=this.refs.mask?this.refs.mask[te]:null,se=this.refs.select?this.refs.select[te]:null,ne=this.getMaskPattern(j.maskName);if(!(q&&se&&ne))return V(X(re.prototype),"setValueAt",this).call(this,te,z,H);var _e=this.placeholderChar;q.value=(0,n.conformToMask)(z,o.getInputMask(ne),{placeholderChar:_e}).conformedValue,se.value=j.maskName}},{key:"unmaskValue",value:function(te){var H=o.getInputMask(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.component.displayMask,this.placeholderChar);return o.unmaskValue(te,H,this.placeholderChar)}},{key:"getValueAt",value:function(te){if(!this.isMultipleMasksField){var j,se,H=V(X(re.prototype),"getValueAt",this).call(this,te),z=this.component.inputMask,q=this.component.displayMask;return z&&!q||q===z?H:q&&!z?this.unmaskValue(H,q):null!==(j=this.refs.valueMaskInput)&&void 0!==j&&j.mask?(this.refs.valueMaskInput.mask.textMaskInputElement.update(H),null===(se=this.refs.valueMaskInput)||void 0===se?void 0:se.value):H}var ne=this.refs.mask?this.refs.mask[te]:null,_e=this.refs.select?this.refs.select[te]:null;return{value:ne?ne.value:void 0,maskName:_e?_e.value:void 0}}},{key:"getValueAsString",value:function(te,j){return te&&"plain"===this.component.inputFormat&&/<[^<>]+>/g.test(te)&&(te=te.replaceAll("<","&lt;").replaceAll(">","&gt;")),V(X(re.prototype),"getValueAsString",this).call(this,te,j)}},{key:"isHtmlRenderMode",value:function(){return V(X(re.prototype),"isHtmlRenderMode",this).call(this)||(this.options.readOnly||this.disabled)&&"html"===this.component.inputFormat&&"textfield"===this.type}},{key:"isEmpty",value:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return this.isMultipleMasksField?V(X(re.prototype),"isEmpty",this).call(this,te)||(this.component.multiple?0===te.length:!te.maskName||!te.value):V(X(re.prototype),"isEmpty",this).call(this,(te||"").toString().trim())}},{key:"truncateMultipleSpaces",value:function(te){return te&&te.trim().replace(/\s{2,}/g," ")}},{key:"validationValue",get:function(){var te=V(X(re.prototype),"validationValue",this);return te&&this.component.truncateMultipleSpaces?this.truncateMultipleSpaces(te):te}},{key:"beforeSubmit",value:function(){var te=this,j=this.dataValue;return this.component.truncateMultipleSpaces&&j?(j=this.truncateMultipleSpaces(j),this.dataValue=j,a.default.resolve(j).then(function(){return V(X(re.prototype),"beforeSubmit",te).call(te)})):a.default.resolve(j)}}],[{key:"schema",value:function(){for(var te=arguments.length,j=new Array(te),H=0;H<te;H++)j[H]=arguments[H];return e.default.schema.apply(e.default,[{label:"Text Field",key:"textField",type:"textfield",mask:!1,inputType:"text",inputFormat:"plain",inputMask:"",displayMask:"",tableView:!0,spellcheck:!0,truncateMultipleSpaces:!1,validate:{minLength:"",maxLength:"",pattern:""}}].concat(j))}},{key:"builderInfo",get:function(){return{title:"Text Field",icon:"terminal",group:"basic",documentation:"/userguide/form-building/form-components#text-field",weight:0,schema:re.schema()}}},{key:"serverConditionSettings",get:function(){return w(w({},V(X(re),"serverConditionSettings",this)),{},{operators:[].concat(s(V(X(re),"serverConditionSettings",this).operators),["includes","notIncludes","endsWith","startsWith"])})}}]),re}(e.default)},15946:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{type:"select",label:"Input Format",key:"inputFormat",weight:105,placeholder:"Input Format",tooltip:"Force the output of this field to be sanitized in a specific format.",template:"<span>{{ item.label }}</span>",data:{values:[{value:"plain",label:"Plain"},{value:"html",label:"HTML"},{value:"raw",label:"Raw (Insecure)"}]},defaultValue:"plain",input:!0},{weight:200,type:"radio",label:"Text Case",key:"case",tooltip:"When data is entered, you can change the case of the value.",input:!0,values:[{value:"mixed",label:"Mixed (Allow upper and lower case)"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"}]},{weight:205,type:"checkbox",input:!0,key:"truncateMultipleSpaces",label:"Truncate Multiple Spaces"}]},31764:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(27081)),n=o(i(6990));function o(l){return l&&l.__esModule?l:{default:l}}y.default=[{weight:400,type:"select",input:!0,key:"widget.type",label:"Widget",placeholder:"Select a widget",tooltip:"The widget is the display UI used to input the value of the field.",defaultValue:"input",onChange:function(u){u.data.widget=n.default.pick(u.data.widget,"type")},dataSrc:"values",data:{values:[{label:"Input Field",value:"input"},{label:"Calendar Picker",value:"calendar"}]},conditional:{json:{"===":[{var:"data.type"},"textfield"]}}},{weight:405,type:"textarea",key:"widget",label:"Widget Settings",refreshOn:"wiget.type",clearOnHide:!1,calculateValue:function(u){var d=u.instance.calculatedValue,s=u.data.widget.type;if(n.default.isEmpty(n.default.omit(u.data.widget,"type"))||n.default.isEmpty(n.default.omit(d,"type"))){if(d&&!d.type)return u.data.widget;var A=u.instance._currentForm.options.editComponent.widget;if(A&&!n.default.isEmpty(n.default.omit(A,"type"))&&s===A.type)return n.default.omit(A,"language");if(s)return n.default.omit(e.default[s].defaultSettings,"language")}return u.data.widget},input:!0,rows:5,editor:"ace",as:"json",conditional:{json:{"!==":[{var:"data.widget.type"},"input"]}}},{weight:410,type:"textfield",input:!0,key:"inputMask",label:"Input Mask",tooltip:"An input mask helps the user with input by ensuring a predefined format.<br><br>9: numeric<br>a: alphabetical<br>*: alphanumeric<br><br>Example telephone mask: (999) 999-9999<br><br>See the <a target='_blank' href='https://github.com/RobinHerbots/jquery.inputmask'>jquery.inputmask documentation</a> for more information.</a>",customConditional:function(u){return!u.data.allowMultipleMasks}},{weight:410,type:"textfield",input:!0,key:"displayMask",label:"Display Mask",tooltip:"A display mask helps to display the input in a readable way, this won't affect the  value which will be saved (to affect both view and saved value, delete Display Mask and use Input Mask).<br><br>9: numeric<br>a: alphabetical<br>*: alphanumeric<br><br>Example telephone mask: (999) 999-9999<br><br>See the <a target='_blank' href='https://github.com/RobinHerbots/jquery.inputmask'>jquery.inputmask documentation</a> for more information.</a>",customConditional:function(u){return!u.data.allowMultipleMasks}},{weight:410,type:"select",input:!0,key:"applyMaskOn",label:"Apply Mask On",tooltip:"Select the type of applying mask.",defaultValue:"change",dataSrc:"values",data:{values:[{label:"Change",value:"change"},{label:"Blur",value:"blur"}]},customConditional:function(u){return!u.data.allowMultipleMasks}},{weight:411,type:"textfield",input:!0,key:"inputMaskPlaceholderChar",label:"Input Mask Placeholder Char",tooltip:"You can specify a char which will be used as a placeholder in the field. <br>E.g., \u02cd<br>Make note that placeholder char will be replaced by a space if it is used inside the mask",validation:{maxLength:1},customConditional:function(u){return u.data.inputMask||u.data.displayMask}},{weight:413,type:"checkbox",input:!0,key:"allowMultipleMasks",label:"Allow Multiple Masks"},{weight:1350,type:"checkbox",input:!0,key:"spellcheck",defaultValue:!0,label:"Allow Spellcheck"},{weight:417,type:"datagrid",input:!0,key:"inputMasks",label:"Input Masks",customConditional:function(u){return!0===u.data.allowMultipleMasks},reorder:!0,components:[{type:"textfield",key:"label",label:"Label",input:!0},{type:"textfield",key:"mask",label:"Mask",input:!0}]},{weight:320,type:"textfield",input:!0,key:"prefix",label:"Prefix"},{weight:330,type:"textfield",input:!0,key:"suffix",label:"Suffix"},{weight:700,type:"textfield",input:!0,key:"autocomplete",label:"Autocomplete",placeholder:"on",tooltip:"Indicates whether input elements can by default have their values automatically completed by the browser. See the <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete'>MDN documentation</a> on autocomplete for more information."},{weight:1300,type:"checkbox",label:"Hide Input",tooltip:"Hide the input in the browser. This does not encrypt on the server. Do not use for passwords.",key:"mask",input:!0},{weight:1200,type:"checkbox",label:"Show Word Counter",tooltip:"Show a live count of the number of words.",key:"showWordCount",input:!0},{weight:1201,type:"checkbox",label:"Show Character Counter",tooltip:"Show a live count of the number of characters.",key:"showCharCount",input:!0}]},43945:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"number",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"number",tooltip:"The maximum length requirement this field must meet.",input:!0},{weight:125,key:"validate.minWords",label:"Minimum Word Length",placeholder:"Minimum Word Length",type:"number",tooltip:"The minimum amount of words that can be added to this field.",input:!0},{weight:126,key:"validate.maxWords",label:"Maximum Word Length",placeholder:"Maximum Word Length",type:"number",tooltip:"The maximum amount of words that can be added to this field.",input:!0},{weight:130,key:"validate.pattern",label:"Regular Expression Pattern",placeholder:"Regular Expression Pattern",type:"textfield",tooltip:"The regular expression pattern test that the field value must pass before the form can be submitted.",input:!0}]},135:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function l(){for(var u=arguments.length,d=new Array(u),s=0;s<u;s++)d[s]=arguments[s];return e.default.apply(void 0,[[{key:"data",components:n.default},{key:"display",components:o.default}]].concat(d))},i(34338);var e=a(i(38653)),n=a(i(78442)),o=a(i(25834));function a(u){return u&&u.__esModule?u:{default:u}}},41297:(he,y,i)=>{"use strict";function e(X){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(me){return typeof me}:function(me){return me&&"function"==typeof Symbol&&me.constructor===Symbol&&me!==Symbol.prototype?"symbol":typeof me})(X)}i(60228),i(32349),i(81919),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),i(77049),i(34284),i(69358),i(38077),i(49693),i(47522),i(99474),i(35082),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(63975),i(50886),i(76801),i(43843),i(34338),i(89730),i(64043),i(57267),i(5399),i(41517),i(88052);var n=l(i(16676)),o=l(i(96368)),a=i(12866);function l(X){return X&&X.__esModule?X:{default:X}}function u(X,me){var J=Object.keys(X);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(X);me&&(Q=Q.filter(function(re){return Object.getOwnPropertyDescriptor(X,re).enumerable})),J.push.apply(J,Q)}return J}function d(X){for(var me=1;me<arguments.length;me++){var J=null!=arguments[me]?arguments[me]:{};me%2?u(Object(J),!0).forEach(function(Q){s(X,Q,J[Q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(J)):u(Object(J)).forEach(function(Q){Object.defineProperty(X,Q,Object.getOwnPropertyDescriptor(J,Q))})}return X}function s(X,me,J){return(me=M(me))in X?Object.defineProperty(X,me,{value:J,enumerable:!0,configurable:!0,writable:!0}):X[me]=J,X}function A(X){return function x(X){if(Array.isArray(X))return f(X)}(X)||function R(X){if(typeof Symbol<"u"&&null!=X[Symbol.iterator]||null!=X["@@iterator"])return Array.from(X)}(X)||function C(X,me){if(X){if("string"==typeof X)return f(X,me);var J=Object.prototype.toString.call(X).slice(8,-1);if("Object"===J&&X.constructor&&(J=X.constructor.name),"Map"===J||"Set"===J)return Array.from(X);if("Arguments"===J||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return f(X,me)}}(X)||function _(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(X,me){(null==me||me>X.length)&&(me=X.length);for(var J=0,Q=new Array(me);J<me;J++)Q[J]=X[J];return Q}function w(X,me){for(var J=0;J<me.length;J++){var Q=me[J];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(X,M(Q.key),Q)}}function M(X){var me=function p(X,me){if("object"!==e(X)||null===X)return X;var J=X[Symbol.toPrimitive];if(void 0!==J){var Q=J.call(X,me||"default");if("object"!==e(Q))return Q;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===me?String:Number)(X)}(X,"string");return"symbol"===e(me)?me:String(me)}function b(X,me){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Q,re){return Q.__proto__=re,Q})(X,me)}function P(){return P=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(me,J,Q){var re=function O(X,me){for(;!Object.prototype.hasOwnProperty.call(X,me)&&null!==(X=U(X)););return X}(me,J);if(re){var de=Object.getOwnPropertyDescriptor(re,J);return de.get?de.get.call(arguments.length<3?me:Q):de.value}},P.apply(this,arguments)}function U(X){return(U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)})(X)}var V="HH:mm:ss";y.default=function(X){!function E(X,me){if("function"!=typeof me&&null!==me)throw new TypeError("Super expression must either be null or a function");X.prototype=Object.create(me&&me.prototype,{constructor:{value:X,writable:!0,configurable:!0}}),Object.defineProperty(X,"prototype",{writable:!1}),me&&b(X,me)}(J,X);var me=function I(X){var me=function F(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var re,Q=U(X);if(me){var de=U(this).constructor;re=Reflect.construct(Q,arguments,de)}else re=Q.apply(this,arguments);return function L(X,me){if(me&&("object"===e(me)||"function"==typeof me))return me;if(void 0!==me)throw new TypeError("Derived constructors may only return object or undefined");return function D(X){if(void 0===X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X}(X)}(this,re)}}(J);function J(Q,re,de){var te;(function k(X,me){if(!(X instanceof me))throw new TypeError("Cannot call a class as a function")})(this,J),te=me.call(this,Q,re,de);var j=(0,a.getBrowserInfo)(),H=j.edge,z=j.version;return te.component.inputMask=te.getInputMaskFromFormat(te.component.format),te.component.inputType=H&&z<=18?"text":te.component.inputType||"time",te.rawData=te.component.multiple?[]:te.emptyValue,te}return function g(X,me,J){me&&w(X.prototype,me),J&&w(X,J),Object.defineProperty(X,"prototype",{writable:!1})}(J,[{key:"init",value:function(){P(U(J.prototype),"init",this).call(this),"text"===this.component.inputType&&this.validators.push("time")}},{key:"dataFormat",get:function(){return this.component.dataFormat||V}},{key:"defaultSchema",get:function(){return J.schema()}},{key:"defaultValue",get:function(){var re=this,de=P(U(J.prototype),"defaultValue",this);return this.component.multiple&&Array.isArray(de)?de=de.map(function(te){return te&&re.getStringAsValue(te)}):de&&(de=this.getStringAsValue(de)),de}},{key:"validationValue",get:function(){return Array.isArray(this.rawData)&&!this.rawData.length||!this.rawData?this.dataValue:this.rawData}},{key:"inputInfo",get:function(){var re=P(U(J.prototype),"inputInfo",this);return re.attr.type=this.component.inputType,re}},{key:"skipMaskValidation",get:function(){return!0}},{key:"isNotCompleteInput",value:function(re){return re.includes("_")}},{key:"removeValue",value:function(re){this.rawData=Array.isArray(this.rawData)?[].concat(A(this.rawData.slice(0,re)),A(this.rawData.slice(re+1))):this.emptyValue,P(U(J.prototype),"removeValue",this).call(this,re)}},{key:"resetRawData",value:function(re){re?this.setRawValue(this.emptyValue,re):this.rawData=[]}},{key:"setRawValue",value:function(re,de){Array.isArray(this.rawData)?this.rawData[de]=re:this.rawData=re}},{key:"getRawValue",value:function(re){return re&&Array.isArray(this.rawData)?this.rawData[re]||this.emptyValue:this.rawData}},{key:"getValueAt",value:function(re){if(!this.refs.input.length||!this.refs.input[re])return this.emptyValue;var de=this.refs.input[re].value;return de?(this.setRawValue(de,re),this.getStringAsValue(de)):(this.resetRawData(re),this.emptyValue)}},{key:"setValueAt",value:function(re,de){this.setRawValue(de&&this.getValueAsString(de),re),this.refs.input[re].value=this.getRawValue(re)}},{key:"getStringAsValue",value:function(re){return re&&(0,n.default)(re,this.component.format).format(this.component.dataFormat)}},{key:"getValueAsString",value:function(re){return re&&(0,n.default)(re,this.component.dataFormat).format(this.component.format)||""}},{key:"getInputMaskFromFormat",value:function(re){return"LT"===re?"99:99 AA":"LTS"===re?"99:99:99 AA":re.replace(/[hHmMsSk]/g,"9").replace(/[aA]/,"AA")}},{key:"addFocusBlurEvents",value:function(re){var de=this;P(U(J.prototype),"addFocusBlurEvents",this).call(this,re),this.addEventListener(re,"blur",function(){re.value=de.getValueAsString(re.value)})}}],[{key:"schema",value:function(){for(var re=arguments.length,de=new Array(re),te=0;te<re;te++)de[te]=arguments[te];return o.default.schema.apply(o.default,[{type:"time",label:"Time",key:"time",inputType:"time",format:"HH:mm",dataFormat:V}].concat(de))}},{key:"serverConditionSettings",get:function(){return d(d({},P(U(J),"serverConditionSettings",this)),{},{valueComponent:function(de){return d(d({},de),{},{type:"time"})}})}},{key:"builderInfo",get:function(){return{title:"Time",icon:"clock-o",group:"advanced",documentation:"/userguide/form-building/advanced-components#time-1",weight:55,schema:J.schema()}}}]),J}(o.default)},78442:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{type:"textfield",input:!0,key:"dataFormat",label:"Data Format",placeholder:"HH:mm:ss",tooltip:"The moment.js format for saving the value of this field.",weight:25}]},25834:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{type:"select",input:!0,weight:40,tooltip:"Select the type of widget you'd like to use.",key:"inputType",defaultValue:"time",label:"Input Type",dataSrc:"values",data:{values:[{label:"HTML5 Time Input",value:"time"},{label:"Text Input with Mask",value:"text"}]}},{type:"textfield",input:!0,key:"format",label:"Format",placeholder:"Format",tooltip:"The moment.js format for showing the value of this field.",weight:50,defaultValue:"HH:mm",conditional:{json:{"===":[{var:"data.inputType"},"text"]}}},{key:"placeholder",ignore:!0}]},92143:(he,y,i)=>{"use strict";i(40739),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(50886),i(38077),i(60228),i(98742),i(63975),i(34338),i(49693),i(47522),i(278),i(69373),i(59903),i(59749),i(86544),i(79288);var e=function n(_){return _&&_.__esModule?_:{default:_}}(i(6990));function o(_){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(C){return typeof C}:function(C){return C&&"function"==typeof Symbol&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C})(_)}function l(_,C){for(var R=0;R<C.length;R++){var x=C[R];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,d(x.key),x)}}function d(_){var C=function s(_,C){if("object"!==o(_)||null===_)return _;var R=_[Symbol.toPrimitive];if(void 0!==R){var x=R.call(_,C||"default");if("object"!==o(x))return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===C?String:Number)(_)}(_,"string");return"symbol"===o(C)?C:String(C)}y.default=function(){function _(C){var R=this,x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=x.data,k=void 0===f?{}:f,w=x.children,g=void 0===w?[]:w,M=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},p=M.checkNode,E=M.createComponents,b=M.isNew,I=void 0===b||b,L=M.removeComponents,D=M.parentPath,F=void 0===D?"":D;(function a(_,C){if(!(_ instanceof C))throw new TypeError("Cannot call a class as a function")})(this,_),this.parent=C,this.previousData={},this.persistentData=e.default.cloneDeep(k),this.new=I,this.createComponents=E,this.checkNode=p,this.removeComponents=L,this.revertAvailable=!1,this.editing=!1,this.collapsed=!1,this.components=[],this.children=[],this.parentPath=F,this.resetData(),this.children=g.map(function(P,O){return new _(R,P,{checkNode:p,createComponents:E,isNew:!1,removeComponents:L,parentPath:R.getChildrenPath(O)})})}return function u(_,C,R){C&&l(_.prototype,C),R&&l(_,R),Object.defineProperty(_,"prototype",{writable:!1})}(_,[{key:"value",get:function(){return this.new?null:{data:e.default.cloneDeep(this.persistentData),children:this.children.filter(function(R){return!R.new}).map(function(R){return R.value})}}},{key:"isRoot",get:function(){return null===this.parent}},{key:"changing",get:function(){return this.new||this.editing}},{key:"hasChangingChildren",get:function(){return this.changin||this.children.some(function(R){return R.hasChangingChildren})}},{key:"hasData",get:function(){return!e.default.isEmpty(this.persistentData)}},{key:"hasChildren",get:function(){return Array.isArray(this.children)&&this.children.length>0}},{key:"getChildrenPath",value:function(R){return this.parentPath?"".concat(this.parentPath,".children[").concat(R,"]"):""}},{key:"eachChild",value:function(R){return R(this),this.children.forEach(function(x){return x.eachChild(R)}),this}},{key:"getComponents",value:function(){return this.children.reduce(function(R,x){return R.concat(x.getComponents())},this.components)}},{key:"validateNode",value:function(){var R=this,x=!0;return this.getComponents().forEach(function(f){f.setPristine(!1),x&=f.checkValidity(null,!1,R.persistentData)}),x}},{key:"addChild",value:function(){if(this.new)return null;var R=new _(this,{},{checkNode:this.checkNode,createComponents:this.createComponents,isNew:!0,removeComponents:this.removeComponents,parentPath:this.getChildrenPath(this.children.length)});return this.children=this.children.concat(R),R}},{key:"removeChild",value:function(R){return this.new||(this.children=this.children.filter(function(x){return x!==R})),this}},{key:"edit",value:function(){return this.new?this:(this.editing=!0,this.resetData())}},{key:"save",value:function(){var R=this.validateNode();return this.changing&&R&&(this.new?this.new=!1:(this.editing=!1,this.revertAvailable=!0),this.commitData()),R}},{key:"cancel",value:function(){return this.new?this.remove():this.editing&&(this.editing=!1,this.resetData()),this}},{key:"remove",value:function(){return this.parent.removeChild(this),this.parent=null,this.clearComponents(),this}},{key:"revert",value:function(){return this.revertAvailable?(this.data=this.previousData,this.commitData()):this}},{key:"commitData",value:function(){return this.previousData=this.persistentData,this.persistentData=e.default.cloneDeep(this.data),this.clearComponents(),this}},{key:"resetData",value:function(){return this.data=e.default.cloneDeep(this.persistentData),this.updateComponentsContext(),this}},{key:"updateComponentsContext",value:function(){return this.changing?this.instantiateComponents():this.clearComponents(),this}},{key:"instantiateComponents",value:function(){var R=this;this.components=this.createComponents(this.data,this),this.components.forEach(function(x){if(R.parentPath){var f=R.calculateComponentPath(x);x.path=f}}),this.checkNode(this)}},{key:"clearComponents",value:function(){this.removeComponents(this.components),this.components=[]}},{key:"calculateComponentPath",value:function(R){var x="";return R.component.key&&(x="".concat(this.parentPath,".data.").concat(R.component.key)),x}}]),_}()},96733:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function l(){for(var u=arguments.length,d=new Array(u),s=0;s<u;s++)d[s]=arguments[s];return e.default.apply(void 0,[[{key:"display",components:o.default},{key:"data",components:n.default}]].concat(d))},i(34338);var e=a(i(38653)),n=a(i(83330)),o=a(i(4621));function a(u){return u&&u.__esModule?u:{default:u}}},48455:(he,y,i)=>{"use strict";function e(V){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(K){return typeof K}:function(K){return K&&"function"==typeof Symbol&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K})(V)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(45247),i(69358),i(38077),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(49693),i(60228),i(47522),i(50886),i(278),i(41517),i(5399),i(88052);var n=s(i(6990)),o=s(i(1681)),a=s(i(14231)),l=s(i(52488)),u=s(i(92143)),d=s(i(73808));function s(V){return V&&V.__esModule?V:{default:V}}function A(V,K){var X=Object.keys(V);if(Object.getOwnPropertySymbols){var me=Object.getOwnPropertySymbols(V);K&&(me=me.filter(function(J){return Object.getOwnPropertyDescriptor(V,J).enumerable})),X.push.apply(X,me)}return X}function _(V){for(var K=1;K<arguments.length;K++){var X=null!=arguments[K]?arguments[K]:{};K%2?A(Object(X),!0).forEach(function(me){w(V,me,X[me])}):Object.getOwnPropertyDescriptors?Object.defineProperties(V,Object.getOwnPropertyDescriptors(X)):A(Object(X)).forEach(function(me){Object.defineProperty(V,me,Object.getOwnPropertyDescriptor(X,me))})}return V}function R(V,K){for(var X=0;X<K.length;X++){var me=K[X];me.enumerable=me.enumerable||!1,me.configurable=!0,"value"in me&&(me.writable=!0),Object.defineProperty(V,g(me.key),me)}}function f(V,K,X,me){return(f=typeof Reflect<"u"&&Reflect.set?Reflect.set:function(Q,re,de,te){var H,j=E(Q,re);if(j){if((H=Object.getOwnPropertyDescriptor(j,re)).set)return H.set.call(te,de),!0;if(!H.writable)return!1}if(H=Object.getOwnPropertyDescriptor(te,re)){if(!H.writable)return!1;H.value=de,Object.defineProperty(te,re,H)}else w(te,re,de);return!0})(V,K,X,me)}function w(V,K,X){return(K=g(K))in V?Object.defineProperty(V,K,{value:X,enumerable:!0,configurable:!0,writable:!0}):V[K]=X,V}function g(V){var K=function M(V,K){if("object"!==e(V)||null===V)return V;var X=V[Symbol.toPrimitive];if(void 0!==X){var me=X.call(V,K||"default");if("object"!==e(me))return me;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===K?String:Number)(V)}(V,"string");return"symbol"===e(K)?K:String(K)}function p(){return p=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(K,X,me){var J=E(K,X);if(J){var Q=Object.getOwnPropertyDescriptor(J,X);return Q.get?Q.get.call(arguments.length<3?K:me):Q.value}},p.apply(this,arguments)}function E(V,K){for(;!Object.prototype.hasOwnProperty.call(V,K)&&null!==(V=O(V)););return V}function I(V,K){return(I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(me,J){return me.__proto__=J,me})(V,K)}function O(V){return(O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(X){return X.__proto__||Object.getPrototypeOf(X)})(V)}var U=function(V){!function b(V,K){if("function"!=typeof K&&null!==K)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(K&&K.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),Object.defineProperty(V,"prototype",{writable:!1}),K&&I(V,K)}(X,V);var K=function L(V){var K=function P(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var J,me=O(V);if(K){var Q=O(this).constructor;J=Reflect.construct(me,arguments,Q)}else J=me.apply(this,arguments);return function D(V,K){if(K&&("object"===e(K)||"function"==typeof K))return K;if(void 0!==K)throw new TypeError("Derived constructors may only return object or undefined");return function F(V){if(void 0===V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V}(V)}(this,J)}}(X);function X(){var me;!function C(V,K){if(!(V instanceof K))throw new TypeError("Cannot call a class as a function")}(this,X);for(var J=arguments.length,Q=new Array(J),re=0;re<J;re++)Q[re]=arguments[re];return(me=K.call.apply(K,[this].concat(Q))).type="tree",me}return function x(V,K,X){K&&R(V.prototype,K),X&&R(V,X),Object.defineProperty(V,"prototype",{writable:!1})}(X,[{key:"emptyValue",get:function(){return{}}},{key:"viewComponents",get:function(){return this.viewComponentsInstantiated||(this.viewComponentsInstantiated=!0,this._viewComponents=this.createComponents({})),this._viewComponents}},{key:"init",value:function(){if(this.builderMode)return p(O(X.prototype),"init",this).call(this);this.components=[],this.componentOptions=_(_({},this.options),{},{parent:this,root:this.root||this}),this.disabled=this.shouldDisabled,this.setRoot(),this.viewComponentsInstantiated=!1,this._viewComponents=[]}},{key:"disabled",get:function(){return p(O(X.prototype),"disabled",this)},set:function(J){(function k(V,K,X,me,J){if(!f(V,K,X,me||V)&&J)throw new Error("failed to set property")})(O(X.prototype),"disabled",J,this,!0),this.viewComponents.forEach(function(Q){return Q.parentDisabled=J})}},{key:"isDefaultValueComponent",get:function(){return!!this.options.editComponent&&!!this.options.editForm&&"defaultValue"===this.component.key}},{key:"destroy",value:function(){p(O(X.prototype),"destroy",this).call(this),this.builderMode||this.removeComponents(this._viewComponents)}},{key:"createComponents",value:function(J,Q){var re=this,de=this.componentComponents.map(function(te){var j=a.default.create(te,re.componentOptions,J);return j.init(),j.parentDisabled=re.disabled,j});return Q&&this.checkNode(this.data,Q),de}},{key:"removeComponents",value:function(J){return J.map(function(Q){return Q.destroy()})}},{key:"render",value:function(){return this.builderMode?p(O(X.prototype),"render",this).call(this):p(O(X.prototype),"render",this).call(this,this.renderTree(this.treeRoot))}},{key:"renderTree",value:function(){var J=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Q=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],re=J.hasChildren&&!J.collapsed?this.renderChildNodes(J.children,!Q):[],de=J.changing?this.renderEdit(J):this.renderView(J);return this.renderTemplate("tree",{odd:Q,childNodes:re,content:de,node:J})}},{key:"renderChildNodes",value:function(){var J=this,re=arguments.length>1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(de){return J.renderTree(de,re)})}},{key:"renderEdit",value:function(){var J=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.renderTemplate("treeEdit",{children:this.renderComponents(J.components),node:J})}},{key:"renderView",value:function(){var J=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.renderTemplate("treeView",{values:this.viewComponents.map(function(Q){return Q.data=J.data,Q.checkComponentConditions(J.data),Q.getView(Q.dataValue)}),nodeData:J.data,node:J})}},{key:"attach",value:function(J){return this.builderMode?p(O(X.prototype),"attach",this).call(this,J):(this.loadRefs(J,{root:"single"}),d.default.all([p(O(X.prototype),"attach",this).call(this,J),this.attachNode(this.refs.root,this.treeRoot)]))}},{key:"attachNode",value:function(J,Q){if(!J)return d.default.resolve();var re=d.default.resolve(),de=d.default.resolve();return Q.refs=n.default.reduce(J.children,function(te,j){return j.hasAttribute("ref")?_(_({},te),{},w({},j.getAttribute("ref"),j)):te},{}),Q.refs.content&&(this.attachActions(Q),re=this.attachComponents(Q)),Q.refs.childNodes&&(de=this.attachChildren(Q)),d.default.all([re,de])}},{key:"attachActions",value:function(J){var Q,re=this;J.editing||this.loadRefs.call(J,J.refs.content,{addChild:"single",editNode:"single",removeNode:"single",revertNode:"single",toggleNode:"single"}),this.loadRefs.call(J,(null===(Q=J.refs.content.children[0])||void 0===Q?void 0:Q.children[1])||J.refs.content,{cancelNode:"single",saveNode:"single"}),J.refs.addChild&&this.addEventListener(J.refs.addChild,"click",function(){re.addChild(J)}),J.refs.cancelNode&&this.addEventListener(J.refs.cancelNode,"click",function(){re.cancelNode(J)}),J.refs.editNode&&this.addEventListener(J.refs.editNode,"click",function(){re.editNode(J)}),J.refs.removeNode&&this.addEventListener(J.refs.removeNode,"click",function(){re.removeNode(J)}),J.refs.revertNode&&this.addEventListener(J.refs.revertNode,"click",function(){re.revertNode(J)}),J.refs.saveNode&&this.addEventListener(J.refs.saveNode,"click",function(){re.saveNode(J)}),J.refs.toggleNode&&this.addEventListener(J.refs.toggleNode,"click",function(){re.toggleNode(J)})}},{key:"attachComponents",value:function(J){if(this.builderMode){for(var Q,re=arguments.length,de=new Array(re>1?re-1:0),te=1;te<re;te++)de[te-1]=arguments[te];return(Q=p(O(X.prototype),"attachComponents",this)).call.apply(Q,[this,J].concat(de))}return this.loadRefs.call(J,J.refs.content,{nodeEdit:"single"}),J.refs.nodeEdit?p(O(X.prototype),"attachComponents",this).call(this,J.refs.nodeEdit,J.components):d.default.resolve()}},{key:"attachChildren",value:function(J){var Q=this;return d.default.all(n.default.map(J.refs.childNodes.children,function(de,te){return Q.attachNode(de,J.children[te])}))}},{key:"setValue",value:function(J){var re=this.updateValue(J,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return this.setRoot(),re}},{key:"addChild",value:function(J){var Q=this;this.options.readOnly||J.new||this.hook("tree.addChild",{parent:J,component:this},function(){var re=J.addChild();return Q.redraw(),re})}},{key:"cancelNode",value:function(J){var Q=this;this.options.readOnly||this.hook("tree.cancelNode",{node:J,component:this},function(){return J.isRoot?J.persistentData&&!n.default.isEmpty(J.persistentData)?(J.cancel(),Q.redraw()):Q.removeRoot():(J.cancel(),Q.redraw()),J})}},{key:"editNode",value:function(J){var Q=this;this.options.readOnly||J.new||this.hook("tree.editNode",{node:J,component:this},function(){return J.edit(),Q.redraw(),J})}},{key:"removeNode",value:function(J){var Q=this;this.options.readOnly||J.new||this.hook("tree.removeNode",{node:J,component:this},function(){return J.isRoot?Q.removeRoot():(J.remove(),Q.updateTree()),J})}},{key:"revertNode",value:function(J){var Q=this;this.options.readOnly||!J.revertAvailable||this.hook("tree.revertNode",{node:J,component:this},function(){return J.revert(),Q.updateTree(),J})}},{key:"saveNode",value:function(J){var Q=this;this.options.readOnly||this.hook("tree.saveNode",{node:J,component:this},function(){return J.save()&&Q.updateTree(),J})}},{key:"toggleNode",value:function(J){var Q=this;this.hook("tree.toggleNode",{node:J,component:this},function(){return J.collapsed=!J.collapsed,Q.redraw(),J})}},{key:"removeRoot",value:function(){this.options.readOnly||(this.dataValue=this.defaultValue,this.setRoot(),this.redraw())}},{key:"setRoot",value:function(){var J=this.getValue();this.treeRoot=new u.default(null,J,{isNew:!!this.builderMode||!J.data,createComponents:this.createComponents.bind(this),checkNode:this.checkNode.bind(this,this.data),removeComponents:this.removeComponents,parentPath:this.isDefaultValueComponent?this.path||this.component.key:null}),this.hook("tree.setRoot",{root:this.treeRoot,component:this}),this.redraw()}},{key:"getValue",value:function(){return this.dataValue||{}}},{key:"updateTree",value:function(){this.updateValue(this.treeRoot.value),this.redraw()}},{key:"checkData",value:function(J,Q,re){return this.checkNode(J,this.treeRoot,Q,re)}},{key:"checkNode",value:function(J,Q,re,de){var te=this;return Q.children.reduce(function(j,H){return te.checkNode(J,H,re,de)&&j},p(O(X.prototype),"checkData",this).call(this,J,re,Q.data,Q.components)&&!Q.editing&&!Q.new)}},{key:"getComponents",value:function(){return this.treeRoot&&(this.isDefaultValueComponent||!this.isDefaultValueComponent&&!this.builderMode)?this.treeRoot.getComponents():p(O(X.prototype),"getComponents",this).call(this)}}],[{key:"schema",value:function(){for(var J=arguments.length,Q=new Array(J),re=0;re<J;re++)Q[re]=arguments[re];return l.default.schema.apply(l.default,[{label:"Tree",key:"tree",type:"tree",clearOnHide:!0,input:!0,tree:!0,components:[],multiple:!1}].concat(Q))}},{key:"builderInfo",get:function(){return{title:"Tree",icon:"indent",weight:40,documentation:"/userguide/form-building/data-components#tree",showPreview:!1,schema:X.schema()}}}]),X}(l.default);y.default=U,U.prototype.hasChanged=o.default.prototype.hasChanged},83330:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"multiple",ignore:!0}]},4621:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"treeInfo",weight:-10,type:"htmlelement",tag:"div",className:"alert alert-danger",content:"This component has been deprecated and will be removed in a future version of Formio.js."}]},22471:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function o(){return{components:[{type:"tabs",key:"tabs",components:[{label:"Custom",key:"display",weight:0,components:e.default}]}]}};var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(87884))},6909:(he,y,i)=>{"use strict";function e(g){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M})(g)}i(60228),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(5399),i(41517),i(88052);var n=function o(g){return g&&g.__esModule?g:{default:g}}(i(1681));function l(g,M){for(var p=0;p<M.length;p++){var E=M[p];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(g,d(E.key),E)}}function d(g){var M=function s(g,M){if("object"!==e(g)||null===g)return g;var p=g[Symbol.toPrimitive];if(void 0!==p){var E=p.call(g,M||"default");if("object"!==e(E))return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===M?String:Number)(g)}(g,"string");return"symbol"===e(M)?M:String(M)}function _(g,M){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,b){return E.__proto__=b,E})(g,M)}function k(g){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)})(g)}y.default=function(g){!function A(g,M){if("function"!=typeof M&&null!==M)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(M&&M.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),M&&_(g,M)}(p,g);var M=function C(g){var M=function f(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var b,E=k(g);if(M){var I=k(this).constructor;b=Reflect.construct(E,arguments,I)}else b=E.apply(this,arguments);return function R(g,M){if(M&&("object"===e(M)||"function"==typeof M))return M;if(void 0!==M)throw new TypeError("Derived constructors may only return object or undefined");return function x(g){if(void 0===g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}(g)}(this,b)}}(p);function p(){return function a(g,M){if(!(g instanceof M))throw new TypeError("Cannot call a class as a function")}(this,p),M.apply(this,arguments)}return function u(g,M,p){M&&l(g.prototype,M),p&&l(g,p),Object.defineProperty(g,"prototype",{writable:!1})}(p,[{key:"defaultSchema",get:function(){return p.schema()}}],[{key:"schema",value:function(){return{type:"custom",key:"custom",protected:!1,persistent:!0}}},{key:"builderInfo",get:function(){return{title:"Custom",icon:"cubes",group:"premium",documentation:"/userguide/form-building/premium-components#custom",weight:120,schema:p.schema()}}}]),p}(n.default)},87884:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"customComponentDescription",label:"Custom component description",input:!1,tag:"p",content:'Custom components can be used to render special fields or widgets inside your app. For information on how to display in an app, see <a href="http://help.form.io/userguide/#custom" target="_blank" rel="noopener noreferrer">custom component documentation</a>.',type:"htmlelement",weight:5},{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"componentJson",label:"Custom Element JSON",tooltip:"Enter the JSON for this custom element."}]},62493:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function u(){for(var d=arguments.length,s=new Array(d),A=0;A<d;A++)s[A]=arguments[A];return e.default.apply(void 0,[[{key:"display",components:n.default},{key:"data",components:o.default},{key:"validation",components:a.default}]].concat(s))},i(34338);var e=l(i(33062)),n=l(i(16242)),o=l(i(39935)),a=l(i(30915));function l(d){return d&&d.__esModule?d:{default:d}}},22500:(he,y,i)=>{"use strict";function e(p){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(E){return typeof E}:function(E){return E&&"function"==typeof Symbol&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(p)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(5399),i(41517),i(88052);var n=function o(p){return p&&p.__esModule?p:{default:p}}(i(96368));function l(p,E){for(var b=0;b<E.length;b++){var I=E[b];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(p,d(I.key),I)}}function d(p){var E=function s(p,E){if("object"!==e(p)||null===p)return p;var b=p[Symbol.toPrimitive];if(void 0!==b){var I=b.call(p,E||"default");if("object"!==e(I))return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===E?String:Number)(p)}(p,"string");return"symbol"===e(E)?E:String(E)}function A(){return A=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(E,b,I){var L=function _(p,E){for(;!Object.prototype.hasOwnProperty.call(p,E)&&null!==(p=g(p)););return p}(E,b);if(L){var D=Object.getOwnPropertyDescriptor(L,b);return D.get?D.get.call(arguments.length<3?E:I):D.value}},A.apply(this,arguments)}function R(p,E){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,L){return I.__proto__=L,I})(p,E)}function g(p){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)})(p)}y.default=function(p){!function C(p,E){if("function"!=typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(E&&E.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),Object.defineProperty(p,"prototype",{writable:!1}),E&&R(p,E)}(b,p);var E=function x(p){var E=function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var L,I=g(p);if(E){var D=g(this).constructor;L=Reflect.construct(I,arguments,D)}else L=I.apply(this,arguments);return function f(p,E){if(E&&("object"===e(E)||"function"==typeof E))return E;if(void 0!==E)throw new TypeError("Derived constructors may only return object or undefined");return function k(p){if(void 0===p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(p)}(this,L)}}(b);function b(I,L,D){var F;return function a(p,E){if(!(p instanceof E))throw new TypeError("Cannot call a class as a function")}(this,b),(F=E.call(this,I,L,D)).validators.push("url"),F}return function u(p,E,b){E&&l(p.prototype,E),b&&l(p,b),Object.defineProperty(p,"prototype",{writable:!1})}(b,[{key:"defaultSchema",get:function(){return b.schema()}},{key:"elementInfo",value:function(){var L=A(g(b.prototype),"elementInfo",this).call(this);return L.attr.type=this.component.mask?"password":"url",L}}],[{key:"schema",value:function(){for(var L=arguments.length,D=new Array(L),F=0;F<L;F++)D[F]=arguments[F];return n.default.schema.apply(n.default,[{type:"url",label:"Url",key:"url",inputType:"url"}].concat(D))}},{key:"builderInfo",get:function(){return{title:"Url",group:"advanced",icon:"link",documentation:"/userguide/form-building/advanced-components#url",weight:20,schema:b.schema()}}}]),b}(n.default)},39935:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"case",ignore:!0}]},16242:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},30915:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},57707:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=function a(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return e.default.apply(void 0,[[{key:"display",components:n.default}]].concat(u))},i(34338);var e=o(i(90700)),n=o(i(80360));function o(l){return l&&l.__esModule?l:{default:l}}},21246:(he,y,i)=>{"use strict";function e(g){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M})(g)}i(60228),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(5399),i(41517),i(88052);var n=function o(g){return g&&g.__esModule?g:{default:g}}(i(60211));function l(g,M){for(var p=0;p<M.length;p++){var E=M[p];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(g,d(E.key),E)}}function d(g){var M=function s(g,M){if("object"!==e(g)||null===g)return g;var p=g[Symbol.toPrimitive];if(void 0!==p){var E=p.call(g,M||"default");if("object"!==e(E))return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===M?String:Number)(g)}(g,"string");return"symbol"===e(M)?M:String(M)}function _(g,M){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,b){return E.__proto__=b,E})(g,M)}function k(g){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)})(g)}y.default=function(g){!function A(g,M){if("function"!=typeof M&&null!==M)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(M&&M.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),M&&_(g,M)}(p,g);var M=function C(g){var M=function f(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var b,E=k(g);if(M){var I=k(this).constructor;b=Reflect.construct(E,arguments,I)}else b=E.apply(this,arguments);return function R(g,M){if(M&&("object"===e(M)||"function"==typeof M))return M;if(void 0!==M)throw new TypeError("Derived constructors may only return object or undefined");return function x(g){if(void 0===g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}(g)}(this,b)}}(p);function p(){var E;!function a(g,M){if(!(g instanceof M))throw new TypeError("Cannot call a class as a function")}(this,p);for(var b=arguments.length,I=new Array(b),L=0;L<b;L++)I[L]=arguments[L];return(E=M.call.apply(M,[this].concat(I))).noField=!0,E}return function u(g,M,p){M&&l(g.prototype,M),p&&l(g,p),Object.defineProperty(g,"prototype",{writable:!1})}(p,[{key:"defaultSchema",get:function(){return p.schema()}},{key:"className",get:function(){return"".concat(this.component.customClass)}},{key:"templateName",get:function(){return"well"}}],[{key:"schema",value:function(){for(var b=arguments.length,I=new Array(b),L=0;L<b;L++)I[L]=arguments[L];return n.default.schema.apply(n.default,[{type:"well",key:"well",input:!1,persistent:!1,components:[]}].concat(I))}},{key:"builderInfo",get:function(){return{title:"Well",icon:"square-o",group:"layout",documentation:"/userguide/form-building/layout-components#well",showPreview:!1,weight:60,schema:p.schema()}}}]),p}(n.default)},80360:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0}]},82449:(he,y,i)=>{"use strict";i(40739),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var e=l(i(6990)),n=l(i(36893)),o=l(i(27903)),a=l(i(78739));function l(f){return f&&f.__esModule?f:{default:f}}function u(f){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"==typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(f)}function s(f,k){for(var w=0;w<k.length;w++){var g=k[w];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,C(g.key),g)}}function C(f){var k=function R(f,k){if("object"!==u(f)||null===f)return f;var w=f[Symbol.toPrimitive];if(void 0!==w){var g=w.call(f,k||"default");if("object"!==u(g))return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===k?String:Number)(f)}(f,"string");return"symbol"===u(k)?k:String(k)}var x=function(){function f(){!function d(f,k){if(!(f instanceof k))throw new TypeError("Cannot call a class as a function")}(this,f)}return function A(f,k,w){k&&s(f.prototype,k),w&&s(f,w),Object.defineProperty(f,"prototype",{writable:!1})}(f,null,[{key:"addDisplay",value:function(w,g){f.displays[w]=g}},{key:"addDisplays",value:function(w){f.displays=e.default.merge(f.displays,w)}},{key:"getDisplay",value:function(w){return f.displays[w]}},{key:"getDisplays",value:function(){return f.displays}}]),f}();y.default=x,function _(f,k,w){(k=C(k))in f?Object.defineProperty(f,k,{value:w,enumerable:!0,configurable:!0,writable:!0}):f[k]=w}(x,"displays",{pdf:n.default,webform:o.default,wizard:a.default})},75428:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(82449));y.default=e.default},10961:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),Object.defineProperty(y,"Builders",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(y,"Components",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(y,"Conjunctions",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(y,"Displays",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(y,"Form",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(y,"Formio",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(y,"Operators",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(y,"Providers",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(y,"QuickRules",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(y,"Rules",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(y,"Templates",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(y,"Transformers",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(y,"Utils",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(y,"ValueSources",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(y,"Widgets",{enumerable:!0,get:function(){return k.default}}),i(69358),i(49693),i(60228),i(47522),i(63975),i(59749),i(86544),i(84254),i(752),i(21694),i(76265);var e=p(i(6990)),n=p(i(55798)),o=p(i(19969)),a=p(i(17288)),l=p(i(14231)),u=p(i(82449)),d=p(i(80193)),s=p(i(21761)),A=p(i(87808)),_=p(i(4298)),C=p(i(94162)),R=p(i(53642)),x=p(i(66951)),f=p(i(57192)),k=p(i(27081)),w=p(i(20833)),g=p(i(14255)),M=p(i(22851));function p(I){return I&&I.__esModule?I:{default:I}}function E(I){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(L){return typeof L}:function(L){return L&&"function"==typeof Symbol&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L})(I)}n.default.loadModules=function(){var I=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"".concat(n.default.getApiUrl(),"/externalModules.js"),L=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"externalModules";n.default.requireLibrary(L,L,I,!0).then(function(D){n.default.use(D)})},n.default.Components=l.default,n.default.Templates=d.default,n.default.Builders=a.default,n.default.Utils=g.default,n.default.Form=w.default,n.default.Displays=u.default,n.default.Providers=s.default,n.default.Rules=A.default,n.default.Widgets=k.default,n.default.Evaluator=M.default,n.default.Conjunctions=_.default,n.default.Operators=C.default,n.default.QuickRules=R.default,n.default.Transformers=x.default,n.default.ValueSources=f.default,n.default.AllComponents=o.default,n.default.Formio=n.default,n.default.Components.setComponents(o.default);var b=function(L){if("object"===E(L))for(var D=0,F=Object.keys(L);D<F.length;D++){var P=F[D],O=L.framework||n.default.Templates.framework||"bootstrap";switch(P){case"options":n.default.options=e.default.merge(n.default.options,L.options);break;case"templates":for(var U=0,V=Object.keys(L.templates);U<V.length;U++){var K=V[U];n.default.Templates.extendTemplate(K,L.templates[K])}L.templates[O]&&(n.default.Templates.current=L.templates[O]);break;case"components":n.default.Components.setComponents(L.components);break;case"framework":n.default.Templates.framework=L.framework;break;case"fetch":for(var X=0,me=Object.keys(L.fetch);X<me.length;X++){var J=me[X];n.default.registerPlugin(L.fetch[J],J)}break;case"providers":for(var Q=0,re=Object.keys(L.providers);Q<re.length;Q++){var de=re[Q];n.default.Providers.addProviders(de,L.providers[de])}break;case"displays":n.default.Displays.addDisplays(L.displays);break;case"builders":n.default.Builders.addBuilders(L.builders);break;case"rules":n.default.Rules.addRules(L.rules);break;case"evaluator":n.default.Evaluator.registerEvaluator(L.evaluator);break;case"conjunctions":n.default.Conjunctions.addConjunctions(L.conjunctions);break;case"operators":n.default.Operators.addOperators(L.operators);break;case"quickRules":n.default.QuickRules.addQuickRules(L.quickRules);break;case"transformers":n.default.Transformers.addTransformers(L.transformers);break;case"valueSources":n.default.ValueSources.addValueSources(L.valueSources);break;default:console.log("Unknown plugin option",P)}}};n.default.use=function(){for(var I=arguments.length,L=new Array(I),D=0;D<I;D++)L[D]=arguments[D];L.forEach(function(F){Array.isArray(F)?F.forEach(function(P){return b(P)}):b(F)})}},15684:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function o(l){return l&&l.__esModule?l:{default:l}}(i(26499)),a={lng:"en",nsSeparator:"::",keySeparator:".|.",pluralSeparator:"._.",contextSeparator:"._.",resources:{en:{translation:(0,i(12866).fastCloneDeep)(e.default)}}};y.default=a},46517:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"z8",{enumerable:!0,get:function(){return n.Components}}),Object.defineProperty(y,"l0",{enumerable:!0,get:function(){return n.Form}}),Object.defineProperty(y,"r8",{enumerable:!0,get:function(){return n.Formio}});var n=i(10961);i(6951)},7729:(he,y,i)=>{"use strict";function e(n){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(n)}i(59749),i(86544),i(84254),i(752),i(21694),i(76265),i(40739),i(33994),i(47409),i(64043),i(34284),i(9873),i(57267),i(30024),i(60228),i(63945),i(6203),typeof window<"u"&&typeof window.document<"u"&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(n){var o=this;do{if(o.matches(n))return o;o=o.parentElement||o.parentNode}while(null!==o&&1===o.nodeType);return null})),function(n,o){if(!(typeof document>"u")){"defineProperty"in Object&&function(){try{return Object.defineProperty({},"test",{value:42}),!0}catch{return!1}}()||(l=Object.defineProperty,u=Object.prototype.hasOwnProperty.call(Object.prototype,"__defineGetter__"),d="Getters & setters cannot be defined on this javascript engine",s="A property cannot both have accessors and be writable or have a value",Object.defineProperty=function(_,C,R){if(l&&(_===window||_===document||_===Element.prototype||_ instanceof Element))return l(_,C,R);if(null===_||!(_ instanceof Object||"object"===e(_)))throw new TypeError("Object.defineProperty called on non-object");if(!(R instanceof Object))throw new TypeError("Property description must be an object");var x=String(C),f="value"in R||"writable"in R,k="get"in R&&e(R.get),w="set"in R&&e(R.set);if(k){if("function"!==k)throw new TypeError("Getter must be a function");if(!u)throw new TypeError(d);if(f)throw new TypeError(s);Object.__defineGetter__.call(_,x,R.get)}else _[x]=R.value;if(w){if("function"!==w)throw new TypeError("Setter must be a function");if(!u)throw new TypeError(d);if(f)throw new TypeError(s);Object.__defineSetter__.call(_,x,R.set)}return"value"in R&&(_[x]=R.value),_});var a=function(){var l=!0,u=function(A,_,C,R){Object.defineProperty?Object.defineProperty(A,_,{configurable:!1===l||!!R,get:C}):A.__defineGetter__(_,C)};try{u({},"support")}catch{l=!1}return function(A,_){var C=this,R=[],x={},f=0,k=0,w=function(E){u(C,E,function(){return M(),R[E]},!1)},g=function(){if(f>=k)for(;k<f;++k)w(k)},M=function(){var E,b,I=arguments,L=/\s+/;if(I.length)for(b=0;b<I.length;++b)if(L.test(I[b]))throw(E=new SyntaxError('String "'+I[b]+'" contains an invalid character')).code=5,E.name="InvalidCharacterError",E;for(""===(R="object"===e(A[_])?(""+A[_].baseVal).replace(/^\s+|\s+$/g,"").split(L):(""+A[_]).replace(/^\s+|\s+$/g,"").split(L))[0]&&(R=[]),x={},b=0;b<R.length;++b)x[R[b]]=!0;f=R.length,g()};return M(),u(C,"length",function(){return M(),f}),C.toLocaleString=C.toString=function(){return M(),R.join(" ")},C.item=function(p){return M(),R[p]},C.contains=function(p){return M(),!!x[p]},C.add=function(){M.apply(C,p=arguments);for(var p,E,b=0,I=p.length;b<I;++b)x[E=p[b]]||(R.push(E),x[E]=!0);f!==R.length&&(f=R.length>>>0,"object"===e(A[_])?A[_].baseVal=R.join(" "):A[_]=R.join(" "),g())},C.remove=function(){M.apply(C,p=arguments);for(var p,E={},b=0,I=[];b<p.length;++b)E[p[b]]=!0,delete x[p[b]];for(b=0;b<R.length;++b)E[R[b]]||I.push(R[b]);R=I,f=I.length>>>0,"object"===e(A[_])?A[_].baseVal=R.join(" "):A[_]=R.join(" "),g()},C.toggle=function(p,E){return M.apply(C,[p]),o!==E?E?(C.add(p),!0):(C.remove(p),!1):x[p]?(C.remove(p),!1):(C.add(p),!0)},C}}();"DOMTokenList"in n&&function(l){return!("classList"in l)||!l.classList.toggle("x",!1)&&!l.className}(document.createElement("x"))||function(l){(!("DOMTokenList"in l&&l.DOMTokenList)||document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg")&&!(document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList))&&(l.DOMTokenList=a),function(){var d=document.createElement("span");"classList"in d&&(d.classList.toggle("x",!1),d.classList.contains("x")&&(d.classList.constructor.prototype.toggle=function(A){var _=arguments[1];if(_===o){var C=!this.contains(A);return this[C?"add":"remove"](A),C}return this[(_=!!_)?"add":"remove"](A),_}))}(),function(){var d=document.createElement("span");if("classList"in d&&(d.classList.add("a","b"),!d.classList.contains("b"))){var s=d.classList.constructor.prototype.add;d.classList.constructor.prototype.add=function(){for(var A=arguments,_=arguments.length,C=0;C<_;C++)s.call(this,A[C])}}}(),function(){var d=document.createElement("span");if("classList"in d&&(d.classList.add("a"),d.classList.add("b"),d.classList.remove("a","b"),d.classList.contains("b"))){var s=d.classList.constructor.prototype.remove;d.classList.constructor.prototype.remove=function(){for(var A=arguments,_=arguments.length,C=0;C<_;C++)s.call(this,A[C])}}}()}(n)}var l,u,d,s}("object"===(typeof window>"u"?"undefined":e(window))&&window||"object"===(typeof self>"u"?"undefined":e(self))&&self||"object"===(typeof global>"u"?"undefined":e(global))&&global||{})},56281:(he,y,i)=>{"use strict";i(33667),i(7729)},20315:(he,y,i)=>{"use strict";i(40739),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var e=l(i(6990)),n=l(i(44772)),o=l(i(22237)),a=l(i(87215));function l(f){return f&&f.__esModule?f:{default:f}}function u(f){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"==typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(f)}function s(f,k){for(var w=0;w<k.length;w++){var g=k[w];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,C(g.key),g)}}function C(f){var k=function R(f,k){if("object"!==u(f)||null===f)return f;var w=f[Symbol.toPrimitive];if(void 0!==w){var g=w.call(f,k||"default");if("object"!==u(g))return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===k?String:Number)(f)}(f,"string");return"symbol"===u(k)?k:String(k)}var x=function(){function f(){!function d(f,k){if(!(f instanceof k))throw new TypeError("Cannot call a class as a function")}(this,f)}return function A(f,k,w){k&&s(f.prototype,k),w&&s(f,w),Object.defineProperty(f,"prototype",{writable:!1})}(f,null,[{key:"addProvider",value:function(w,g,M){(f.providers[w]=f.providers[w]||{})[g]=M}},{key:"addProviders",value:function(w,g){f.providers[w]=e.default.merge(f.providers[w],g)}},{key:"getProvider",value:function(w,g){if(f.providers[w]&&f.providers[w][g])return f.providers[w][g]}},{key:"getProviders",value:function(w){if(f.providers[w])return f.providers[w]}}]),f}();y.default=x,function _(f,k,w){(k=C(k))in f?Object.defineProperty(f,k,{value:w,enumerable:!0,configurable:!0,writable:!0}):f[k]=w}(x,"providers",{address:n.default,auth:o.default,storage:a.default})},91200:(he,y,i)=>{"use strict";i(40739),i(63975),i(84254),i(752),i(21694),i(76265),i(89730),i(34284),i(77049),i(64043),Object.defineProperty(y,"__esModule",{value:!0}),y.AddressProvider=void 0,i(6203),i(50886),i(34338),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var e=function o(g){return g&&g.__esModule?g:{default:g}}(i(6990)),n=i(55798);function a(g){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M})(g)}function s(g,M){(null==M||M>g.length)&&(M=g.length);for(var p=0,E=new Array(M);p<M;p++)E[p]=g[p];return E}function R(g,M){for(var p=0;p<M.length;p++){var E=M[p];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(g,f(E.key),E)}}function f(g){var M=function k(g,M){if("object"!==a(g)||null===g)return g;var p=g[Symbol.toPrimitive];if(void 0!==p){var E=p.call(g,M||"default");if("object"!==a(E))return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===M?String:Number)(g)}(g,"string");return"symbol"===a(M)?M:String(M)}y.AddressProvider=function(){function g(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(function C(g,M){if(!(g instanceof M))throw new TypeError("Cannot call a class as a function")})(this,g),this.beforeMergeOptions(M),this.options=e.default.merge({},this.defaultOptions,M)}return function x(g,M,p){M&&R(g.prototype,M),p&&R(g,p),Object.defineProperty(g,"prototype",{writable:!1})}(g,[{key:"beforeMergeOptions",value:function(){}},{key:"defaultOptions",get:function(){return{}}},{key:"queryProperty",get:function(){return"query"}},{key:"responseProperty",get:function(){return null}},{key:"displayValueProperty",get:function(){return null}},{key:"serialize",value:function(p){return e.default.toPairs(p).map(function(E){var b=function l(g,M){return function _(g){if(Array.isArray(g))return g}(g)||function A(g,M){var p=null==g?null:typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(null!=p){var E,b,I,L,D=[],F=!0,P=!1;try{if(I=(p=p.call(g)).next,0===M){if(Object(p)!==p)return;F=!1}else for(;!(F=(E=I.call(p)).done)&&(D.push(E.value),D.length!==M);F=!0);}catch(O){P=!0,b=O}finally{try{if(!F&&null!=p.return&&(L=p.return(),Object(L)!==L))return}finally{if(P)throw b}}return D}}(g,M)||function d(g,M){if(g){if("string"==typeof g)return s(g,M);var p=Object.prototype.toString.call(g).slice(8,-1);if("Object"===p&&g.constructor&&(p=g.constructor.name),"Map"===p||"Set"===p)return Array.from(g);if("Arguments"===p||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return s(g,M)}}(g,M)||function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(E,2),L=b[1];return"".concat(encodeURIComponent(b[0]),"=").concat(encodeURIComponent(L))}).join("&")}},{key:"getRequestOptions",value:function(){return e.default.merge({},this.options,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}},{key:"getRequestUrl",value:function(){throw new Error("Method AddressProvider#getRequestUrl(options) is abstract.")}},{key:"makeRequest",value:function(){return n.GlobalFormio.makeStaticRequest(this.getRequestUrl(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),"GET",null,{noToken:!0})}},{key:"search",value:function(p){var E=this,I=this.getRequestOptions(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return(I.params=I.params||{})[this.queryProperty]=p,this.makeRequest(I).then(function(D){return E.responseProperty?e.default.get(D,E.responseProperty,[]):D})}},{key:"getDisplayValue",value:function(p){return this.displayValueProperty?e.default.get(p,this.displayValueProperty,""):String(p)}}],[{key:"name",get:function(){return"address"}},{key:"displayName",get:function(){return"Address"}}]),g}()},43838:(he,y,i)=>{"use strict";function e(w){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(w)}i(60228),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.AzureAddressProvider=void 0,i(5399),i(41517),i(88052);var n=i(91200);function a(w,g){for(var M=0;M<g.length;M++){var p=g[M];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,u(p.key),p)}}function u(w){var g=function d(w,g){if("object"!==e(w)||null===w)return w;var M=w[Symbol.toPrimitive];if(void 0!==M){var p=M.call(w,g||"default");if("object"!==e(p))return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===g?String:Number)(w)}(w,"string");return"symbol"===e(g)?g:String(g)}function A(w,g){return(A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,E){return p.__proto__=E,p})(w,g)}function f(w){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)})(w)}y.AzureAddressProvider=function(w){!function s(w,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),g&&A(w,g)}(M,w);var g=function _(w){var g=function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var E,p=f(w);if(g){var b=f(this).constructor;E=Reflect.construct(p,arguments,b)}else E=p.apply(this,arguments);return function C(w,g){if(g&&("object"===e(g)||"function"==typeof g))return g;if(void 0!==g)throw new TypeError("Derived constructors may only return object or undefined");return function R(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(w)}(this,E)}}(M);function M(){return function o(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}(this,M),g.apply(this,arguments)}return function l(w,g,M){g&&a(w.prototype,g),M&&a(w,M),Object.defineProperty(w,"prototype",{writable:!1})}(M,[{key:"defaultOptions",get:function(){return{params:{"api-version":"1.0",typeahead:"true"}}}},{key:"responseProperty",get:function(){return"results"}},{key:"displayValueProperty",get:function(){return"address.freeformAddress"}},{key:"getRequestUrl",value:function(){return"https://atlas.microsoft.com/search/address/json?".concat(this.serialize((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).params))}}],[{key:"name",get:function(){return"azure"}},{key:"displayName",get:function(){return"Azure Maps"}}]),M}(n.AddressProvider)},97843:(he,y,i)=>{"use strict";function e(M){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(p){return typeof p}:function(p){return p&&"function"==typeof Symbol&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(M)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.CustomAddressProvider=void 0,i(34338),i(5399),i(41517),i(88052);var n=i(91200);function a(M,p){for(var E=0;E<p.length;E++){var b=p[E];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(M,u(b.key),b)}}function u(M){var p=function d(M,p){if("object"!==e(M)||null===M)return M;var E=M[Symbol.toPrimitive];if(void 0!==E){var b=E.call(M,p||"default");if("object"!==e(b))return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===p?String:Number)(M)}(M,"string");return"symbol"===e(p)?p:String(p)}function s(){return s=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(p,E,b){var I=function A(M,p){for(;!Object.prototype.hasOwnProperty.call(M,p)&&null!==(M=w(M)););return M}(p,E);if(I){var L=Object.getOwnPropertyDescriptor(I,E);return L.get?L.get.call(arguments.length<3?p:b):L.value}},s.apply(this,arguments)}function C(M,p){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,I){return b.__proto__=I,b})(M,p)}function w(M){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)})(M)}y.CustomAddressProvider=function(M){!function _(M,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(p&&p.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),p&&C(M,p)}(E,M);var p=function R(M){var p=function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var I,b=w(M);if(p){var L=w(this).constructor;I=Reflect.construct(b,arguments,L)}else I=b.apply(this,arguments);return function x(M,p){if(p&&("object"===e(p)||"function"==typeof p))return p;if(void 0!==p)throw new TypeError("Derived constructors may only return object or undefined");return function f(M){if(void 0===M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(M)}(this,I)}}(E);function E(){return function o(M,p){if(!(M instanceof p))throw new TypeError("Cannot call a class as a function")}(this,E),p.apply(this,arguments)}return function l(M,p,E){p&&a(M.prototype,p),E&&a(M,E),Object.defineProperty(M,"prototype",{writable:!1})}(E,[{key:"queryProperty",get:function(){return this.options.queryProperty||s(w(E.prototype),"queryProperty",this)}},{key:"responseProperty",get:function(){return this.options.responseProperty||s(w(E.prototype),"responseProperty",this)}},{key:"displayValueProperty",get:function(){return this.options.displayValueProperty||s(w(E.prototype),"displayValueProperty",this)}},{key:"getRequestUrl",value:function(){var I=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},L=I.params;return"".concat(I.url,"?").concat(this.serialize(L))}}],[{key:"name",get:function(){return"custom"}},{key:"displayName",get:function(){return"Custom"}}]),E}(n.AddressProvider)},15475:(he,y,i)=>{"use strict";function e(E){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(E)}i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.GoogleAddressProvider=void 0,i(28436),i(49693),i(60228),i(47522),i(98742),i(5399),i(41517),i(88052);var n=i(55798),o=u(i(6990)),a=i(91200),l=u(i(73808));function u(E){return E&&E.__esModule?E:{default:E}}function s(E,b){for(var I=0;I<b.length;I++){var L=b[I];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(E,_(L.key),L)}}function _(E){var b=function C(E,b){if("object"!==e(E)||null===E)return E;var I=E[Symbol.toPrimitive];if(void 0!==I){var L=I.call(E,b||"default");if("object"!==e(L))return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(E)}(E,"string");return"symbol"===e(b)?b:String(b)}function x(E,b){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,D){return L.__proto__=D,L})(E,b)}function M(E){return(M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(I){return I.__proto__||Object.getPrototypeOf(I)})(E)}y.GoogleAddressProvider=function(E){!function R(E,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(b&&b.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),Object.defineProperty(E,"prototype",{writable:!1}),b&&x(E,b)}(I,E);var b=function f(E){var b=function g(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var D,L=M(E);if(b){var F=M(this).constructor;D=Reflect.construct(L,arguments,F)}else D=L.apply(this,arguments);return function k(E,b){if(b&&("object"===e(b)||"function"==typeof b))return b;if(void 0!==b)throw new TypeError("Derived constructors may only return object or undefined");return function w(E){if(void 0===E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}(E)}(this,D)}}(I);function I(){var L,D,F=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(function d(E,b){if(!(E instanceof b))throw new TypeError("Cannot call a class as a function")})(this,I),(D=b.call(this,F)).setAutocompleteOptions();var P="https://maps.googleapis.com/maps/api/js?v=quarterly&libraries=places&callback=googleMapsCallback";return null!==(L=F.params)&&void 0!==L&&L.key&&(P+="&key=".concat(F.params.key)),n.GlobalFormio.requireLibrary(D.getLibraryName(),"google.maps.places",P),D}return function A(E,b,I){b&&s(E.prototype,b),I&&s(E,I),Object.defineProperty(E,"prototype",{writable:!1})}(I,[{key:"displayValueProperty",get:function(){return"formattedPlace"}},{key:"alternativeDisplayValueProperty",get:function(){return"formatted_address"}},{key:"autocompleteOptions",get:function(){return this._autocompleteOptions},set:function(D){this._autocompleteOptions=D}},{key:"setAutocompleteOptions",value:function(){var D=o.default.get(this.options,"params.autocompleteOptions",{});o.default.isObject(D)||(D={}),this.addRequiredProviderOptions(D),this.autocompleteOptions=D}},{key:"beforeMergeOptions",value:function(D){this.convertRegionToAutocompleteOption(D)}},{key:"getLibraryName",value:function(){return"googleMaps"}},{key:"convertRegionToAutocompleteOption",value:function(D){var F=D,P=o.default.get(F,"params.region","");if(P&&!o.default.has(D,"params.autocompleteOptions")){var O={UK:"GB"};O[P=P.toUpperCase().trim()]&&(P=O[P]),o.default.set(F,"params.autocompleteOptions.componentRestrictions.country",[P])}}},{key:"getRequiredAddressProperties",value:function(){return["address_components","formatted_address","geometry","place_id","plus_code","types"]}},{key:"addRequiredProviderOptions",value:function(D){var F=this.getRequiredAddressProperties();o.default.isArray(D.fields)&&D.fields.length>0&&D.fields.forEach(function(P){F.some(function(O){return P===O})||F.push(P)}),D.fields=F}},{key:"filterPlace",value:function(D){D=D||{};var F={};return this.autocompleteOptions&&this.autocompleteOptions.fields.forEach(function(P){D[P]&&(F[P]=D[P])}),F}},{key:"attachAutocomplete",value:function(D,F,P){var O=this;n.GlobalFormio.libraryReady(this.getLibraryName()).then(function(){var U=new google.maps.places.Autocomplete(D,O.autocompleteOptions);U.addListener("place_changed",function(){var V=O.filterPlace(U.getPlace());V.formattedPlace=o.default.get(U,"gm_accessors_.place.se.formattedPrediction",V[O.alternativeDisplayValueProperty]),P(V,D,F)})})}},{key:"search",value:function(){return l.default.resolve()}},{key:"makeRequest",value:function(){return l.default.resolve()}},{key:"getDisplayValue",value:function(D){var F=o.default.has(D,this.displayValueProperty)?this.displayValueProperty:this.alternativeDisplayValueProperty;return o.default.get(D,F,"")}}],[{key:"name",get:function(){return"google"}},{key:"displayName",get:function(){return"Google Maps"}}]),I}(a.AddressProvider)},79670:(he,y,i)=>{"use strict";function e(w){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(w)}i(60228),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.NominatimAddressProvider=void 0,i(5399),i(41517),i(88052);var n=i(91200);function a(w,g){for(var M=0;M<g.length;M++){var p=g[M];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,u(p.key),p)}}function u(w){var g=function d(w,g){if("object"!==e(w)||null===w)return w;var M=w[Symbol.toPrimitive];if(void 0!==M){var p=M.call(w,g||"default");if("object"!==e(p))return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===g?String:Number)(w)}(w,"string");return"symbol"===e(g)?g:String(g)}function A(w,g){return(A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,E){return p.__proto__=E,p})(w,g)}function f(w){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)})(w)}y.NominatimAddressProvider=function(w){!function s(w,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),g&&A(w,g)}(M,w);var g=function _(w){var g=function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var E,p=f(w);if(g){var b=f(this).constructor;E=Reflect.construct(p,arguments,b)}else E=p.apply(this,arguments);return function C(w,g){if(g&&("object"===e(g)||"function"==typeof g))return g;if(void 0!==g)throw new TypeError("Derived constructors may only return object or undefined");return function R(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(w)}(this,E)}}(M);function M(){return function o(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}(this,M),g.apply(this,arguments)}return function l(w,g,M){g&&a(w.prototype,g),M&&a(w,M),Object.defineProperty(w,"prototype",{writable:!1})}(M,[{key:"defaultOptions",get:function(){return{params:{addressdetails:"1",format:"json"}}}},{key:"queryProperty",get:function(){return"q"}},{key:"displayValueProperty",get:function(){return"display_name"}},{key:"getRequestUrl",value:function(){return"https://nominatim.openstreetmap.org/search?".concat(this.serialize((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).params))}}],[{key:"name",get:function(){return"nominatim"}},{key:"displayName",get:function(){return"OpenStreetMap Nominatim"}}]),M}(n.AddressProvider)},44772:(he,y,i)=>{"use strict";function e(C){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(C)}i(69373),i(59903),i(59749),i(86544),i(60228),i(79288),i(40739),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34284);var u,n=i(43838),o=i(97843),a=i(15475),l=i(79670);function d(C,R,x){return R=function s(C){var R=function A(C,R){if("object"!==e(C)||null===C)return C;var x=C[Symbol.toPrimitive];if(void 0!==x){var f=x.call(C,R||"default");if("object"!==e(f))return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===R?String:Number)(C)}(C,"string");return"symbol"===e(R)?R:String(R)}(R),R in C?Object.defineProperty(C,R,{value:x,enumerable:!0,configurable:!0,writable:!0}):C[R]=x,C}var _=(d(u={},n.AzureAddressProvider.name,n.AzureAddressProvider),d(u,o.CustomAddressProvider.name,o.CustomAddressProvider),d(u,a.GoogleAddressProvider.name,a.GoogleAddressProvider),d(u,l.NominatimAddressProvider.name,l.NominatimAddressProvider),u);y.default=_},22237:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default={}},21761:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(20315));y.default=e.default},66469:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34284);var e=function n(l){return l&&l.__esModule?l:{default:l}}(i(73808));y.default=function(u,d){return function(s,A){return new e.default(function(_,C){var R=new XMLHttpRequest;R.onerror=function(k){k.networkError=!0,C(k)},R.onabort=function(k){k.networkError=!0,C(k)},R.onload=function(){if(R.status>=200&&R.status<300){var k=R.getResponseHeader("Content-Type")||s.type;_(new File([R.response],s.name,{type:k}))}else C(R.response||"Unable to process file")},R.onabort=C,R.open("POST",d.url);var x=u.getToken();x&&R.setRequestHeader("x-jwt-token",x),R.responseType="arraybuffer";var f=new FormData;f.append("file",s),f.append("processorOptions",JSON.stringify(d.options||{})),f.append("options",JSON.stringify(A||{})),R.send(f)})}}},16732:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(28436),i(34284);var e=function n(l){return l&&l.__esModule?l:{default:l}}(i(75395)),o=function(u){return{uploadFile:function(s,A,_,C,R,x,f,k,w,g){return e.default.upload(u,"azure",function(M,p){return M.openAndSetHeaders("PUT",p.url),M.setRequestHeader("Content-Type",s.type),M.setRequestHeader("x-ms-blob-type","BlockBlob"),s},s,A,_,C,k,w,g).then(function(){return{storage:"azure",name:e.default.path([_,A]),size:s.size,type:s.type,groupPermissions:k,groupId:w}})},downloadFile:function(s){return u.makeRequest("file","".concat(u.formUrl,"/storage/azure?name=").concat(e.default.trim(s.name)),"GET")}}};o.title="Azure File Services",y.default=o},76682:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(l){return l&&l.__esModule?l:{default:l}}(i(73808)),o=function(){return{title:"Base64",name:"base64",uploadFile:function(d,s){var A=this,_=new FileReader;return new e.default(function(C,R){_.onload=function(x){C({storage:"base64",name:s,url:x.target.result,size:d.size,type:d.type})},_.onerror=function(){return R(A)},_.readAsDataURL(d)})},downloadFile:function(d){return e.default.resolve(d)}}};o.title="Base64",y.default=o},24027:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338);var e=function o(u){return u&&u.__esModule?u:{default:u}}(i(73808)),n=i(75395),a=function(d){return{uploadFile:function(A,_,C,R,x,f,k,w,g,M){return new e.default(function(p,E){var b=new XMLHttpRequest;"function"==typeof R&&(b.upload.onprogress=R),"function"==typeof M&&M(function(){return b.abort()});var I=new FormData;I.append("name",_),I.append("dir",C),I.append("file",A),b.onerror=function(D){D.networkError=!0,E(D)},b.onload=function(){if(b.status>=200&&b.status<300){var D=JSON.parse(b.response);D.storage="googledrive",D.size=A.size,D.type=A.type,D.groupId=g,D.groupPermissions=w,p(D)}else E(b.response||"Unable to upload file")},b.onabort=E,b.open("POST","".concat(d.formUrl,"/storage/gdrive")),(0,n.setXhrHeaders)(d,b);var L=d.getToken();L&&b.setRequestHeader("x-jwt-token",L),b.send(I)})},downloadFile:function(A){var _=d.getToken();return A.url="".concat(d.formUrl,"/storage/gdrive?fileId=").concat(A.id,"&fileName=").concat(A.originalName).concat(_?"&x-jwt-token=".concat(_):""),e.default.resolve(A)}}};a.title="Google Drive",y.default=a},87215:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=d(i(76682)),n=d(i(50021)),o=d(i(16732)),a=d(i(53549)),l=d(i(78715)),u=d(i(24027));function d(A){return A&&A.__esModule?A:{default:A}}y.default={base64:e.default,s3:n.default,url:a.default,azure:o.default,indexeddb:l.default,googledrive:u.default}},78715:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34284);var e=i(20093),n=function o(u){return u&&u.__esModule?u:{default:u}}(i(73808)),a=function(){return{title:"indexedDB",name:"indexeddb",uploadFile:function(s,A,_,C,R,x){var f=this;if("indexedDB"in window)return new n.default(function(k){var w=indexedDB.open(x.indexeddb,3);w.onsuccess=function(g){k(g.target.result)},w.onupgradeneeded=function(g){g.target.result.createObjectStore(x.indexeddbTable)}}).then(function(k){var w=new FileReader;return new n.default(function(g,M){w.onload=function(){var p=new Blob([s],{type:s.type}),E=(0,e.v4)(p),b={id:E,data:p,name:s.name,size:s.size,type:s.type,url:R},I=k.transaction([x.indexeddbTable],"readwrite");I.objectStore(x.indexeddbTable).put(b,E).onerror=function(D){console.log("error storing data"),console.error(D)},I.oncomplete=function(){g({storage:"indexeddb",name:s.name,size:s.size,type:s.type,url:R,id:E})}},w.onerror=function(){return M(f)},w.readAsDataURL(s)})});console.log("This browser doesn't support IndexedDB")},downloadFile:function(s,A){var _=this;return new n.default(function(C){indexedDB.open(A.indexeddb,3).onsuccess=function(x){C(x.target.result)}}).then(function(C){return new n.default(function(R,x){var f=C.transaction([A.indexeddbTable],"readonly"),k=f.objectStore(A.indexeddbTable).get(s.id);k.onsuccess=function(){f.oncomplete=function(){var w=k.result,g=new File([k.result.data],s.name,{type:k.result.type}),M=new FileReader;M.onload=function(p){w.url=p.target.result,w.storage=s.storage,R(w)},M.onerror=function(){return x(_)},M.readAsDataURL(g)}},k.onerror=function(){return x(_)}})})},deleteFile:function(s,A){var _=this;return new n.default(function(C){indexedDB.open(A.indexeddb,3).onsuccess=function(x){C(x.target.result)}}).then(function(C){return new n.default(function(R,x){var f=C.transaction([A.indexeddbTable],"readwrite"),k=f.objectStore(A.indexeddbTable).delete(s.id);k.onsuccess=function(){f.oncomplete=function(){R(k.result)}},k.onerror=function(){return x(_)}})})}}};a.title="IndexedDB",y.default=a},50021:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(28436);var e=o(i(73808)),n=o(i(75395));function o(u){return u&&u.__esModule?u:{default:u}}var a=function(d){return{uploadFile:function(A,_,C,R,x,f,k,w,g,M){return n.default.upload(d,"s3",function(p,E){if(E.data.fileName=_,E.data.key=n.default.path([E.data.key,C,_]),E.signed)return p.openAndSetHeaders("PUT",E.signed),p.setRequestHeader("Content-Type",A.type),A;var b=new FormData;for(var I in E.data)b.append(I,E.data[I]);return b.append("file",A),p.openAndSetHeaders("POST",E.url),b},A,_,C,R,w,g,M).then(function(p){return{storage:"s3",name:_,bucket:p.bucket,key:p.data.key,url:n.default.path([p.url,p.data.key]),acl:p.data.acl,size:A.size,type:A.type}})},downloadFile:function(A){return"public-read"!==A.acl?d.makeRequest("file","".concat(d.formUrl,"/storage/s3?bucket=").concat(n.default.trim(A.bucket),"&key=").concat(n.default.trim(A.key)),"GET"):e.default.resolve(A)}}};a.title="S3",y.default=a},52919:(he,y,i)=>{"use strict";i(40739),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.getFormioUploadAdapterPlugin=void 0,i(34284),i(60228),i(73964),i(36409),i(34338),i(69373),i(59903),i(59749),i(86544),i(79288);var e=i(12866),n=function o(R){return R&&R.__esModule?R:{default:R}}(i(73808));function a(R){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(x){return typeof x}:function(x){return x&&"function"==typeof Symbol&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x})(R)}function u(R,x){for(var f=0;f<x.length;f++){var k=x[f];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(R,s(k.key),k)}}function s(R){var x=function A(R,x){if("object"!==a(R)||null===R)return R;var f=R[Symbol.toPrimitive];if(void 0!==f){var k=f.call(R,x||"default");if("object"!==a(k))return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===x?String:Number)(R)}(R,"string");return"symbol"===a(x)?x:String(x)}var _=function(){function R(x,f,k){(function l(R,x){if(!(R instanceof x))throw new TypeError("Cannot call a class as a function")})(this,R),this.loader=x,this.fileService=f,this.component=k}return function d(R,x,f){x&&u(R.prototype,x),f&&u(R,f),Object.defineProperty(R,"prototype",{writable:!1})}(R,[{key:"upload",value:function(){var f=this;return this.loader.file.then(function(k){return new n.default(function(w,g){var M,p=f.component.component,b=p.uploadUrl,I=p.uploadOptions,L=p.uploadDir,D=p.fileKey,F=[p.uploadStorage,k,(0,e.uniqueName)(k.name),L||"",function(O){return f.onUploadProgress(O)},b,I,D,null,null],P=(M=f.fileService).uploadFile.apply(M,F.concat([function(){return f.component.emit("fileUploadingStart",P)}])).then(function(O){return f.fileService.downloadFile(O)}).then(function(O){return w({default:O.url})}).catch(function(O){console.warn("An Error occured while uploading file",O),g(O)}).finally(function(){f.component.emit("fileUploadingEnd",P)})})})}},{key:"abort",value:function(){}},{key:"onUploadProgress",value:function(f){f.lengthComputable&&(this.loader.uploadTotal=f.total,this.loader.uploaded=f.loaded)}}]),R}();y.getFormioUploadAdapterPlugin=function(x,f){return function(k){k.plugins.get("FileRepository").createUploadAdapter=function(w){return new _(w,x,f)}}}},53549:(he,y,i)=>{"use strict";function e(A){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_){return typeof _}:function(_){return _&&"function"==typeof Symbol&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(A)}i(69373),i(59903),i(59749),i(86544),i(60228),i(79288),i(40739),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),i(97195),i(34284);var n=function o(A){return A&&A.__esModule?A:{default:A}}(i(73808));function a(A,_,C){return _=function l(A){var _=function u(A,_){if("object"!==e(A)||null===A)return A;var C=A[Symbol.toPrimitive];if(void 0!==C){var R=C.call(A,_||"default");if("object"!==e(R))return R;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===_?String:Number)(A)}(A,"string");return"symbol"===e(_)?_:String(_)}(_),_ in A?Object.defineProperty(A,_,{value:C,enumerable:!0,configurable:!0,writable:!0}):A[_]=C,A}var d=function(_){var C=function(x,f,k,w,g,M,p){return new n.default(function(E,b){var I=new XMLHttpRequest,L="string"==typeof w,D=new FormData;if("function"==typeof M&&(I.upload.onprogress=M),"function"==typeof p&&p(function(){return I.abort()}),!L)for(var F in w)D.append(F,w[F]);I.onload=function(){if(I.status>=200&&I.status<300){var J={};try{J=(J="string"==typeof I.response?JSON.parse(I.response):{})&&J.data?J.data:J}catch{J={}}var Q=J.hasOwnProperty("url")?J.url:"".concat(I.responseURL,"/").concat(f);Q&&"/"===Q[0]&&(Q="".concat(x).concat(Q)),E({url:Q,data:J})}else b(I.response||"Unable to upload file")},I.onerror=function(){return b(I)},I.onabort=function(){return b(I)};var P=x+(x.indexOf("?")>-1?"&":"?");for(var O in k)P+="".concat(O,"=").concat(k[O],"&");"&"===P[P.length-1]&&(P=P.substr(0,P.length-1)),I.open("POST",P),L&&I.setRequestHeader("Content-Type","application/json");var U=_.getToken();if(U&&I.setRequestHeader("x-jwt-token",U),g){var V="string"==typeof g?JSON.parse(g):g;for(var K in V)if("headers"===K){var X=V.headers;for(var me in X)I.setRequestHeader(me,X[me])}else I[K]=V[K]}I.send(L?w:D)})};return{title:"Url",name:"url",uploadFile:function(x,f,k,w,g,M,p,E,b,I){var L=function(F){var P;return C(g,f,{baseUrl:encodeURIComponent(_.projectUrl),project:F?F.project:"",form:F?F._id:""},(P={},a(P,p,x),a(P,"name",f),a(P,"dir",k),P),M,w,I).then(function(O){return O.data=O.data||{},O.data.baseUrl=_.projectUrl,O.data.project=F?F.project:"",O.data.form=F?F._id:"",{storage:"url",name:f,url:O.url,size:x.size,type:x.type,data:O.data}})};return x.private&&_.formId?_.loadForm().then(function(D){return L(D)}):L()},deleteFile:function(x){return new n.default(function(f,k){var w=new XMLHttpRequest;w.open("DELETE",x.url,!0),w.onload=function(){w.status>=200&&w.status<300?f("File deleted"):k(w.response||"Unable to delete file")},w.send(null)})},downloadFile:function(x){return x.private?(_.submissionId&&x.data&&(x.data.submission=_.submissionId),C(x.url,x.name,{},JSON.stringify(x)).then(function(f){return f.data})):n.default.resolve(x)}}};d.title="Url",y.default=d},75395:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.setXhrHeaders=y.default=void 0,i(6203),i(50886),i(38077),i(60228),i(28436),i(34338);var e=o(i(73808)),n=o(i(96771));function o(d){return d&&d.__esModule?d:{default:d}}var a=function(s,A){var _=s.options.headers;if(_){var C={"Content-Disposition":!0,Authorization:!0};for(var R in _)C[R]&&A.setRequestHeader(R,_[R])}};y.setXhrHeaders=a;var l={trim:function(s){return(0,n.default)(s,"/")},path:function(s){return s.filter(function(A){return!!A}).map(l.trim).join("/")},upload:function(s,A,_,C,R,x,f,k,w,g){return new e.default(function(M,p){var E=new XMLHttpRequest;E.onerror=function(I){I.networkError=!0,p(I)},E.onabort=p,E.onload=function(){if(E.status>=200&&E.status<300){var I=JSON.parse(E.response),L=new XMLHttpRequest;"function"==typeof f&&(L.upload.onprogress=f),"function"==typeof g&&g(function(){return L.abort()}),L.openAndSetHeaders=function(){L.open.apply(L,arguments),a(s,L)},L.onerror=function(D){D.networkError=!0,p(D)},L.onabort=function(D){D.networkError=!0,p(D)},L.onload=function(){L.status>=200&&L.status<300?M(I):p(L.response||"Unable to upload file")},L.onabort=p,L.send(_(L,I))}else p(E.response||"Unable to sign file")},E.open("POST","".concat(s.formUrl,"/storage/").concat(A)),E.setRequestHeader("Accept","application/json"),E.setRequestHeader("Content-Type","application/json; charset=UTF-8");var b=s.getToken();b&&E.setRequestHeader("x-jwt-token",b),E.send(JSON.stringify({name:l.path([x,R]),size:C.size,type:C.type,groupPermissions:k,groupId:w}))})}};y.default=l},80193:(he,y,i)=>{"use strict";i(40739),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var e=o(i(93736)),n=o(i(6990));function o(C){return C&&C.__esModule?C:{default:C}}function a(C){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(C)}function u(C,R){for(var x=0;x<R.length;x++){var f=R[x];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(C,s(f.key),f)}}function s(C){var R=function A(C,R){if("object"!==a(C)||null===C)return C;var x=C[Symbol.toPrimitive];if(void 0!==x){var f=x.call(C,R||"default");if("object"!==a(f))return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===R?String:Number)(C)}(C,"string");return"symbol"===a(R)?R:String(R)}y.default=function(){function C(){!function l(C,R){if(!(C instanceof R))throw new TypeError("Cannot call a class as a function")}(this,C)}return function d(C,R,x){R&&u(C.prototype,R),x&&u(C,x),Object.defineProperty(C,"prototype",{writable:!1})}(C,null,[{key:"templates",get:function(){return C._templates||(C._templates=e.default),C._templates}},{key:"addTemplate",value:function(x,f){C.templates[x]=f}},{key:"extendTemplate",value:function(x,f){C.templates[x]=n.default.merge({},C.templates[x],f)}},{key:"setTemplate",value:function(x,f){C.addTemplate(x,f)}},{key:"current",get:function(){return C._current?C._current:C.defaultTemplates},set:function(x){C._current=n.default.merge({},C.current,x)}},{key:"defaultTemplates",get:function(){return C.templates.bootstrap}},{key:"framework",get:function(){return C._framework},set:function(x){C.templates.hasOwnProperty(x)&&(C._framework=x,C._current=C.templates[x])}}]),C}()},46017:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="card form-builder-panel" ref="group-panel-'+(null==(e=i.groupKey)?"":e)+'">\n  <div class="card-header form-builder-group-header" id="heading-'+(null==(e=i.groupKey)?"":e)+'">\n    <h5 class="mb-0 mt-0 d-grid">\n      <button\n        class="btn builder-group-button"\n        type="button"\n        data-toggle="collapse"\n        data-target="#group-'+(null==(e=i.groupKey)?"":e)+'"\n        data-parent="#'+(null==(e=i.groupId)?"":e)+'"\n        aria-expanded="'+(null==(e=i.group.default)?"":e)+'"\n        aria-controls="group-'+(null==(e=i.groupKey)?"":e)+'"\n        ref="sidebar-anchor"\n      >\n        '+(null==(e=i.t(i.group.title,{_userInput:!0}))?"":e)+'\n      </button>\n    </h5>\n  </div>\n  <div\n    id="group-'+(null==(e=i.groupKey)?"":e)+'"\n    class="collapse '+(null==(e=i.group.default?" show":"")?"":e)+'"\n    data-parent="#'+(null==(e=i.groupId)?"":e)+'"\n    data-default="'+(null==(e=i.group.default)?"":e)+'"\n    aria-labelledby="heading-'+(null==(e=i.groupKey)?"":e)+'"\n    ref="sidebar-group"\n  >\n    <div id="group-container-'+(null==(e=i.groupKey)?"":e)+'" class="d-grid gap-1 no-drop p-2 w-100" ref="sidebar-container">\n      ',i.group.componentOrder.length||i.subgroups.length?(n+="\n        ",!i.group.componentOrder||i.group.componentOrder.forEach(function(l){n+='\n          <span\n            data-group="'+(null==(e=i.groupKey)?"":e)+'"\n            data-key="'+(null==(e=i.group.components[l].key)?"":e)+'"\n            data-type="'+(null==(e=i.group.components[l].schema.type)?"":e)+'"\n            class="btn btn-primary btn-sm formcomponent drag-copy m-0"\n          >\n            ',i.group.components[l].icon&&(n+='\n              <i class="'+(null==(e=i.iconClass(i.group.components[l].icon))?"":e)+'" style="margin-right: 5px;"></i>\n            '),n+="\n            "+(null==(e=i.t(i.group.components[l].title,{_userInput:!0}))?"":e)+"\n          </span>\n        "}),n+="\n        "+(null==(e=i.subgroups.join(""))?"":e)+"\n      "):n+="\n        <div>"+(null==(e=i.t("No Matches Found"))?"":e)+"</div>\n      ",n+="\n    </div>\n  </div>\n</div>\n"}},30972:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(46017));y.default={form:e.default}},33101:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div id="'+(null==(e=i.groupId)?"":e)+'" class="accordion builder-sidebar'+(null==(e=i.scrollEnabled?" builder-sidebar_scroll":"")?"":e)+'" ref="sidebar" role="tablist">\n  <input class="form-control builder-sidebar_search" type="search" ref="sidebar-search" placeholder="Search field(s)" />\n    ',i.groups.forEach(function(l){n+="\n      "+(null==(e=l)?"":e)+"\n    "}),n+="\n</div>\n"}},88859:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(33101));y.default={form:e.default}},8507:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="formio builder row formbuilder">\n  <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n    '+(null==(e=i.sidebar)?"":e)+'\n  </div>\n  <div class="col-xs-8 col-sm-9 col-md-10 formarea">\n    <ol class="breadcrumb wizard-pages">\n      ',i.pages.forEach(function(l,u){n+='\n      <li>\n        <span title="'+(null==(e=l.title)?"":e)+'" class="me-2 badge ',n+=u===i.self.page?"bg-primary":"bg-info",n+=' wizard-page-label" ref="gotoPage">'+(null==(e=l.title)?"":e)+"</span>\n      </li>\n      "}),n+='\n      <li class="wizard-add-page">\n        <span title="'+(null==(e=i.t("Create Page"))?"":e)+'" class="me-2 badge bg-success wizard-page-label" ref="addPage">\n          <i class="'+(null==(e=i.iconClass("plus"))?"":e)+'"></i> '+(null==(e=i.t("Page"))?"":e)+'\n        </span>\n      </li>\n    </ol>\n    <div ref="form">\n      '+(null==(e=i.form)?"":e)+"\n    </div>\n  </div>\n</div>\n"}},55875:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(8507));y.default={form:e.default}},83685:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="formio-component-modal-wrapper formio-component-modal-wrapper-'+(null==(e=i.component.type)?"":e)+'" ref="componentModalWrapper">\n  <div ref="openModalWrapper"></div>\n  <div class="formio-dialog formio-dialog-theme-default component-rendering-hidden" ref="modalWrapper">\n    <div class="formio-dialog-overlay" ref="modalOverlay"></div>\n    <div class="formio-dialog-content" aria-labelledby="ml-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'" ',i.self.isIE()||(n+=' role="dialog" '),n+=' ref="modalContents">\n      <label class="visually-hidden" id="ml-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'">'+(null==(e=i.t(i.component.label))?"":e)+(null==(e=i.self.isIE()?", dialog":"")?"":e)+"</label>\n      ",n+=i.options.vpat?'\n      <button class="formio-dialog-close float-end" title="Close" aria-label="Close button. Click to get back to the form" ref="modalCloseButton"></button>\n      ':'\n      <button class="formio-dialog-close float-end btn btn-secondary btn-sm" aria-label="Close button. Click to get back to the form" ref="modalClose"></button>\n      ',n+='\n      <div ref="modalContents">\n        ',i.visible&&(n+="\n        "+(null==(e=i.children)?"":e)+"\n        "),n+='\n        <div class="formio-dialog-buttons">\n          ',i.options.vpat&&(n+='\n          <button class="btn btn-secondary formio-dialog-button" aria-label="Cancel button. Click to cancel the changes and get back to the form." ref="modalClose">'+(null==(e=i.t("Cancel"))?"":e)+"</button>\n          "),n+'\n          <button class="btn btn-success formio-dialog-button" ref="modalSave" aria-label="Save button. Click to save the changes and get back to the form.">'+(null==(e=i.t("Save"))?"":e)+'</button>\n        </div>\n      </div>\n    </div>\n    <span class="visually-hidden" ref="modalLiveRegion" aria-live="assertive"></span>\n  </div>\n</div>\n'}},69716:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(83685));y.default={form:e.default}},75234:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default={"form-group":"formio-form-group"}},84065:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<table class="table datagrid-table table-bordered\n    '+(null==(e=i.component.striped?"table-striped":"")?"":e)+"\n    "+(null==(e=i.component.hover?"table-hover":"")?"":e)+"\n    "+(null==(e=i.component.condensed?"table-sm":"")?"":e)+'\n    " ',i.component.layoutFixed&&(n+='style="table-layout: fixed;"'),n+=">\n  ",i.hasHeader&&(n+="\n  <thead>\n    <tr>\n      ",i.component.reorder&&(n+="<th></th>"),n+="\n      ",i.columns.forEach(function(l){n+='\n        <th class="'+(null==(e=l.validate&&l.validate.required?"field-required":"")?"":e)+'">\n          '+(null==(e=l.hideLabel?"":i.t(l.label||l.title,{_userInput:!0}))?"":e)+"\n          ",l.tooltip&&(n+=' <i ref="tooltip" tabindex="0" data-title="'+(null==(e=l.tooltip)?"":e)+'" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=l.tooltip)?"":e)+'"></i>'),n+="\n        </th>\n      "}),n+="\n      ",i.hasExtraColumn&&(n+='\n      <th>\n        <span class="visually-hidden">'+(null==(e=i.t("Add/Remove"))?"":e)+"</span>\n        ",!i.builder&&i.hasAddButton&&i.hasTopSubmit&&(n+='\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(e=i.datagridKey)?"":e)+'-addRow" tabindex="'+(null==(e=i.tabIndex)?"":e)+'">\n          <i class="'+(null==(e=i.iconClass("plus"))?"":e)+'"></i>'+(null==(e=i.t(i.component.addAnother||"Add Another",{_userInput:!0}))?"":e)+"\n        </button>\n        "),n+="\n      </th>\n      "),n+="\n    </tr>\n  </thead>\n  "),n+='\n  <tbody ref="'+(null==(e=i.datagridKey)?"":e)+'-tbody" data-key="'+(null==(e=i.datagridKey)?"":e)+'">\n    ',i.rows.forEach(function(l,u){n+="\n    ",i.hasGroups&&i.groups[u]&&(n+='\n    <tr ref="'+(null==(e=i.datagridKey)?"":e)+'-group-header" class="datagrid-group-header'+(null==(e=i.hasToggle?" clickable":"")?"":e)+'">\n      <td\n        ref="'+(null==(e=i.datagridKey)?"":e)+'-group-label"\n        colspan="'+(null==(e=i.numColumns)?"":e)+'"\n        class="datagrid-group-label">'+(null==(e=i.groups[u].label)?"":e)+"</td>\n    </tr>\n    "),n+='\n    <tr ref="'+(null==(e=i.datagridKey)?"":e)+'-row">\n      ',i.component.reorder&&(n+='\n        <td>\n          <button type="button" class="formio-drag-button btn btn-default fa fa-bars" data-key="'+(null==(e=i.datagridKey)?"":e)+'"></button>\n        </td>\n      '),n+="\n      ",i.columns.forEach(function(d){n+='\n        <td ref="'+(null==(e=i.datagridKey)?"":e)+'" ',d.key&&d.overlay&&d.overlay.width&&(n+=' style="width: '+(null==(e=d.overlay.width+"px")?"":e)+'"'),n+=" >\n          "+(null==(e=l[d.key])?"":e)+"\n        </td>\n      "}),n+="\n      ",i.hasExtraColumn&&(n+="\n        ",i.hasRemoveButtons&&(n+='\n        <td>\n          <button type="button" class="btn btn-secondary formio-button-remove-row" ref="'+(null==(e=i.datagridKey)?"":e)+'-removeRow" tabindex="'+(null==(e=i.tabIndex)?"":e)+'" aria-label="'+(null==(e=i.t("remove"))?"":e)+'">\n            <i class="'+(null==(e=i.iconClass("remove-circle"))?"":e)+'"></i>\n          </button>\n        </td>\n        '),n+="\n        ",i.canAddColumn&&(n+='\n        <td ref="'+(null==(e=i.key)?"":e)+'-container">\n          '+(null==(e=i.placeholder)?"":e)+"\n        </td>\n        "),n+="\n      "),n+="\n    </tr>\n    "}),n+="\n  </tbody>\n  ",!i.builder&&i.hasAddButton&&i.hasBottomSubmit&&(n+='\n  <tfoot>\n    <tr>\n      <td colspan="'+(null==(e=i.component.layoutFixed?i.numColumns:i.numColumns+1)?"":e)+'">\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(e=i.datagridKey)?"":e)+'-addRow" tabindex="'+(null==(e=i.tabIndex)?"":e)+'">\n          <i class="'+(null==(e=i.iconClass("plus"))?"":e)+'"></i> '+(null==(e=i.t(i.component.addAnother||"Add Another",{_userInput:!0}))?"":e)+"\n        </button>\n      </td>\n    </tr>\n  </tfoot>\n  "),n+="\n</table>\n"}},92487:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(84065));y.default={form:e.default}},94233:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){return'<div class="formio-dialog formio-dialog-theme-default component-settings">\n  <div class="formio-dialog-overlay" ref="dialogOverlay"></div>\n  <div class="formio-dialog-content" ref="dialogContents" role="dialog">\n    <div ref="dialogContents"></div>\n    <button class="formio-dialog-close float-end btn-sm" aria-label="Close modal window." ref="dialogClose"></button>\n  </div>\n</div>\n'}},50604:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(94233));y.default={form:e.default}},91500:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return i.options.vpat&&(n+='\n  <span tabindex="-1" class="visually-hidden" id="invisible-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"></span>\n'),n+="\n",i.self.imageUpload?(n+="\n  <div>\n    ",i.files.forEach(function(l){n+='\n      <div>\n        <span>\n          <img ref="fileImage" src="" alt="'+(null==(e=l.originalName||l.name)?"":e)+'" style="width:'+(null==(e=i.component.imageSize)?"":e)+'px">\n          ',i.disabled||(n+='\n            <i tabindex="0" class="'+(null==(e=i.iconClass("remove"))?"":e)+'" ref="removeLink"></i>\n          '),n+="\n        </span>\n      </div>\n    "}),n+="\n  </div>\n"):(n+="\n  ",i.options.vpat&&(n+="\n    <div>"+(null==(e=i.component.filePattern&&"*"!==i.component.filePattern?i.t("Allowed file types: ")+i.component.filePattern:"Any file types are allowed")?"":e)+"</div>\n  "),n+='\n  <ul class="list-group list-group-striped">\n    <li class="list-group-item list-group-header hidden-xs hidden-sm">\n      <div class="row">\n        ',i.disabled||(n+='\n          <div class="col-md-1"></div>\n        '),n+='\n        <div class="col-md-',n+=i.self.hasTypes?"7":"9",n+='"><strong>'+(null==(e=i.t("File Name"))?"":e)+'</strong></div>\n        <div class="col-md-2"><strong>'+(null==(e=i.t("Size"))?"":e)+"</strong></div>\n        ",i.self.hasTypes&&(n+='\n          <div class="col-md-2"><strong>'+(null==(e=i.t("Type"))?"":e)+"</strong></div>\n        "),n+="\n      </div>\n    </li>\n    ",i.files.forEach(function(l){n+='\n      <li class="list-group-item">\n        <div class="row">\n          ',i.disabled||(n+='\n            <div class="col-md-1"><i tabindex="0" class="'+(null==(e=i.iconClass("remove"))?"":e)+'" ref="removeLink"></i></div>\n          '),n+='\n          <div class="col-md-',n+=i.self.hasTypes?"7":"9",n+='">\n            ',n+=i.component.uploadOnly?"\n              "+(null==(e=l.originalName||l.name)?"":e)+"\n            ":'\n              <a href="'+(null==(e=l.url||"#")?"":e)+'" target="_blank" ref="fileLink">\n                <span class="visually-hidden">'+(null==(e=i.t("Press to open "))?"":e)+"</span>"+(null==(e=l.originalName||l.name)?"":e)+"\n              </a>\n            ",n+='\n          </div>\n          <div class="col-md-2">'+(null==(e=i.fileSize(l.size))?"":e)+"</div>\n          ",i.self.hasTypes&&!i.disabled&&(n+='\n            <div class="col-md-2">\n              <select class="file-type" ref="fileType">\n                ',i.component.fileTypes.map(function(u){n+='\n                  <option class="test" value="'+(null==(e=u.value)?"":e)+'" ',u.label===l.fileType&&(n+='selected="selected"'),n+=">"+(null==(e=i.t(u.label))?"":e)+"</option>\n                "}),n+="\n              </select>\n            </div>\n          "),n+="\n          ",i.self.hasTypes&&i.disabled&&(n+='\n          <div class="col-md-2">'+(null==(e=l.fileType)?"":e)+"</div>\n          "),n+="\n        </div>\n      </li>\n    "}),n+="\n  </ul>\n"),n+="\n",!i.disabled&&(i.component.multiple||!i.files.length)&&(n+="\n  ",i.self.useWebViewCamera?n+='\n    <div class="fileSelector">\n      <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(e=i.t("Gallery"))?"":e)+'</button>\n      <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(e=i.t("Camera"))?"":e)+"</button>\n    </div>\n  ":i.self.cameraMode?n+='\n    <div class="video-container">\n      <video class="video" autoplay="true" ref="videoPlayer" tabindex="-1"></video>\n    </div>\n    <button class="btn btn-primary" ref="takePictureButton"><i class="fa fa-camera"></i> '+(null==(e=i.t("Take Picture"))?"":e)+'</button>\n    <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(e=i.t("Switch to file upload"))?"":e)+"</button>\n  ":(n+='\n    <div class="fileSelector" ref="fileDrop" '+(null==(e=i.fileDropHidden?"hidden":"")?"":e)+'>\n      <i class="'+(null==(e=i.iconClass("cloud-upload"))?"":e)+'"></i> '+(null==(e=i.t("Drop files to attach,"))?"":e)+"\n        ",i.self.imageUpload&&i.component.webcam&&(n+='\n          <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(e=i.t("use camera"))?"":e)+"</a>\n        "),n+="\n        "+(null==(e=i.t("or"))?"":e)+'\n        <a href="#" ref="fileBrowse" class="browse">\n          '+(null==(e=i.t("browse"))?"":e)+'\n          <span class="visually-hidden">\n            '+(null==(e=i.t("Browse to attach file for "+i.component.label+". "+(i.component.description?i.component.description+". ":"")+(i.component.filePattern&&"*"!==i.component.filePattern?i.t("Allowed file types: ")+i.component.filePattern:"Any file types are allowed")))?"":e)+'\n          </span>\n        </a>\n      <div ref="fileProcessingLoader" class="loader-wrapper">\n        <div class="loader text-center"></div>\n      </div>\n    </div>\n  '),n+="\n"),n+="\n",i.statuses.forEach(function(l){n+='\n  <div class="file '+(null==(e="error"===i.statuses.status?" has-error":"")?"":e)+'">\n    <div class="row">\n      <div class="fileName col-form-label col-sm-10">'+(null==(e=l.originalName)?"":e)+'\n        <i class="'+(null==(e=i.iconClass("remove"))?"":e)+'" ref="fileStatusRemove">\n          <span class="visually-hidden">'+(null==(e=i.t("Remove button. Press to remove "+l.originalName||0))?"":e)+'</span>\n          <span class="visually-hidden">'+(null==(e=l.message?l.message.replace(";","."):"")?"":e)+'</span>\n        </i>\n      </div>\n      <div class="fileSize col-form-label col-sm-2 text-end">'+(null==(e=i.fileSize(l.size))?"":e)+'</div>\n    </div>\n    <div class="row">\n      <div class="col-sm-12">\n        ',n+="progress"===l.status?'\n          <div class="progress">\n            <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(e=l.progress)?"":e)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(e=l.progress)?"":e)+'%">\n              <span class="visually-hidden">'+(null==(e=l.progress)?"":e)+"% "+(null==(e=i.t("Complete"))?"":e)+"</span>\n            </div>\n          </div>\n        ":"error"===l.status?'\n          <div class="alert alert-danger bg-'+(null==(e=l.status)?"":e)+'">'+(null==(e=i.t(l.message))?"":e)+"</div>\n        ":'\n          <div class="bg-'+(null==(e=l.status)?"":e)+'">'+(null==(e=i.t(l.message))?"":e)+"</div>\n        ",n+="\n      </div>\n    </div>\n  </div>\n"}),n+="\n",(!i.component.storage||i.support.hasWarning)&&(n+='\n  <div class="alert alert-warning">\n    ',i.component.storage||(n+="\n      <p>"+(null==(e=i.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":e)+"</p>\n    "),n+="\n    ",i.support.filereader||(n+="\n      <p>"+(null==(e=i.t("File API & FileReader API not supported."))?"":e)+"</p>\n    "),n+="\n    ",i.support.formdata||(n+="\n      <p>"+(null==(e=i.t("XHR2's FormData is not supported."))?"":e)+"</p>\n    "),n+="\n    ",i.support.progress||(n+="\n      <p>"+(null==(e=i.t("XHR2's upload progress isn't supported."))?"":e)+"</p>\n    "),n+="\n  </div>\n"),n+="\n"}},70090:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(91500));y.default={form:e.default}},79674:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(30024),i(60228),i(63945);var e=f(i(88859)),n=f(i(30972)),o=f(i(55875)),a=f(i(69716)),l=f(i(92487)),u=f(i(50604)),d=f(i(70090)),s=f(i(88934)),A=f(i(52662)),_=f(i(67017)),C=f(i(1822)),R=f(i(15196)),x=f(i(75234));function f(w){return w&&w.__esModule?w:{default:w}}y.default={transform:function(g,M){return M&&"class"===g&&this.cssClasses.hasOwnProperty(M.toString())?this.cssClasses[M.toString()]:M},builderSidebar:e.default,builderSidebarGroup:n.default,builderWizard:o.default,componentModal:a.default,datagrid:l.default,dialog:u.default,file:d.default,input:s.default,label:A.default,modalPreview:_.default,radio:C.default,table:R.default,cssClasses:x.default}},52219:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";if((i.prefix||i.suffix)&&(n+='\n<div class="input-group">\n  '),n+="\n  ",i.prefix&&(n+='\n    <div class="input-group-text" ref="prefix">\n      ',i.prefix instanceof HTMLElement?n+="\n        "+(null==(e=i.t(i.prefix.outerHTML,{_userInput:!0}))?"":e)+"\n      ":n+="\n        "+(null==(e=i.t(i.prefix,{_userInput:!0}))?"":e)+"\n      ",n+="\n    </div>\n  "),n+="\n  ",!i.component.editor&&!i.component.wysiwyg){for(var l in n+="\n    <"+(null==(e=i.input.type)?"":e)+'\n      ref="'+(null==(e=i.input.ref?i.input.ref:"input")?"":e)+'"\n      ',i.input.attr)n+="\n        "+(null==(e=l)?"":e)+'="'+(null==(e=i.input.attr[l])?"":e)+'"\n      ';n+='\n      id="'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n      aria-labelledby="l-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+" ",i.component.description&&(n+="d-"+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)),n+='"\n      aria-required="'+(null==(e="input"!==i.input.ref&&i.input.ref?i.component.fields&&i.component.fields[i.input.ref]&&i.component.fields[i.input.ref].required||!1:i.component.validate.required)?"":e)+'"\n    >'+(null==(e=i.input.content)?"":e)+"</"+(null==(e=i.input.type)?"":e)+">\n    ",i.hasValueMaskInput&&(n+='\n      <input ref="valueMaskInput" />\n    '),n+="\n"}return n+="\n",(i.component.editor||i.component.wysiwyg)&&(n+='\n  <div ref="input"></div>\n'),n+="\n","datetime"===i.component.type&&(n+='\n<span aria-live="assertive" id="'+(null==(e=i.instance.id)?"":e)+'-liveRegion" class="visually-hidden" ref="liveRegion"></span>\n'),n+="\n",i.suffix&&(n+='\n  <div class="input-group-text" ref="suffix">\n    ',i.suffix instanceof HTMLElement?n+="\n      "+(null==(e=i.t(i.suffix.outerHTML,{_userInput:!0}))?"":e)+"\n    ":n+="\n      "+(null==(e=i.t(i.suffix,{_userInput:!0}))?"":e)+"\n    ",n+="\n  </div>\n"),n+="\n",(i.prefix||i.suffix)&&(n+="\n  </div>\n"),n+="\n",(i.component.showCharCount||i.component.showWordCount)&&(n+='\n<div class="form-text {{ctx.component.description ? float-end : text-end">\n  ',i.component.showCharCount&&(n+='\n  <span class="text-muted" ref="charcount" aria-live="polite"></span>\n  '),n+="\n  ",i.component.showWordCount&&(n+='\n  <span class="text-muted" ref="wordcount" aria-live="polite"></span>\n  '),n+="\n</div>\n"),n+"\n"}},44623:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div ref="value">',(n+=i.value?null==(e=i.value)?"":e:"-")+"</div>\n"}},88934:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(52219)),n=o(i(44623));function o(l){return l&&l.__esModule?l:{default:l}}y.default={form:e.default,html:n.default}},56156:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<label\n  ref="label"\n  class="col-form-label '+(null==(e=i.label.className)?"":e)+'"\n  for="'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n  id="l-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n>\n  '+(null==(e=i.t(i.component.label,{_userInput:!0}))?"":e)+"\n  ",("number"===i.component.type||"phoneNumber"===i.component.type||"currency"===i.component.type)&&(n+='\n    <span class="visually-hidden">, '+(null==(e=i.t("numeric only"))?"":e)+",</span>\n  "),n+="\n  ",i.component.tooltip&&(n+='\n    <i ref="tooltip" tabindex="0" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=i.component.tooltip)?"":e)+'"></i>\n  '),n+"\n</label>\n"}},52662:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(56156));y.default={form:e.default}},53726:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<label id="l-'+(null==(e=i.component.key)?"":e)+'" class="control-label '+(null==(e=i.label.className)?"":e)+'">\n  '+(null==(e=i.t(i.component.label,{_userInput:!0}))?"":e)+'<span ref="modalLabelValue" class="visually-hidden">. '+(null==(e="signature"===i.component.type?i.self.getValueAsString(i.previewText):i.previewText)?"":e)+'</span>\n</label><br>\n<span class="visually-hidden" ref="modalPreviewLiveRegion" aria-live="assertive"></span>\n<button\n  lang="en"\n  class="btn btn-light btn-md open-modal-button form-control '+(null==(e=i.openModalBtnClasses||"")?"":e)+'"\n  ref="openModal"\n  aria-labelledby="l-'+(null==(e=i.component.key)?"":e)+'"\n>\n  '+(null==(e=i.previewText)?"":e)+'\n</button>\n<div class="formio-errors invalid-feedback">\n  '+(null==(e=i.messages)?"":e)+"\n</div>\n"}},67017:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(53726));y.default={form:e.default}},96212:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div\n  class="form-radio radio"\n  ref="radioGroup"\n  role="'+(null==(e="selectboxes"===i.component.type?"group":"radiogroup")?"":e)+'"\n  aria-required="'+(null==(e=i.input.component.validate.required)?"":e)+'"\n  aria-labelledby="l-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n  ',i.component.description&&(n+='\n    aria-describedby="d-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n  '),n+="\n>\n  ",i.values.forEach(function(l){for(var u in n+='\n  <div class="'+(null==(e=i.input.attr.type)?"":e)+" "+(null==(e=i.component.optionsLabelPosition&&"right"!==i.component.optionsLabelPosition?ps-0:"")?"":e)+" form-check"+(null==(e=i.inline?"-inline":"")?"":e)+'" ref="wrapper">\n    <label class="form-check-label label-position-'+(null==(e=i.component.optionsLabelPosition)?"":e)+'" for="'+(null==(e=i.instance.root&&i.instance.root.id)?"":e)+"-"+(null==(e=i.id)?"":e)+"-"+(null==(e=i.row)?"":e)+"-"+(null==(e=l.value)?"":e)+'">\n      ',("left"===i.component.optionsLabelPosition||"top"===i.component.optionsLabelPosition)&&(n+="\n      <span>"+(null==(e=i.t(l.label,{_userInput:!0}))?"":e)+"</span>\n      "),n+="\n      <"+(null==(e=i.input.type)?"":e)+'\n        ref="input"\n        ',i.input.attr)n+="\n        "+(null==(e=u)?"":e)+'="'+(null==(e=i.input.attr[u])?"":e)+'"\n        ';n+='\n        value="'+(null==(e=l.value)?"":e)+'"\n        ',i.value&&(i.value===l.value||"object"==typeof i.value&&i.value.hasOwnProperty(l.value)&&i.value[l.value])&&(n+="\n          checked=true\n        "),n+="\n        ",l.disabled&&(n+="\n          disabled=true\n        "),n+='\n        id="'+(null==(e=i.instance.root&&i.instance.root.id)?"":e)+"-"+(null==(e=i.id)?"":e)+"-"+(null==(e=i.row)?"":e)+"-"+(null==(e=l.value)?"":e)+'"\n        role="'+(null==(e="selectboxes"===i.component.type?"checkbox":"radio")?"":e)+'"\n      >\n      ',(!i.component.optionsLabelPosition||"right"===i.component.optionsLabelPosition||"bottom"===i.component.optionsLabelPosition)&&(n+="\n      <span>"+(null==(e=i.t(l.label,{_userInput:!0}))?"":e)+"</span>\n      "),n+="\n    </label>\n  </div>\n  "}),n+="\n</div>\n"}},1822:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(96212));y.default={form:e.default}},57370:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<table class="table\n    '+(null==(e=i.component.striped?"table-striped":"")?"":e)+"\n    "+(null==(e=i.component.bordered?"table-bordered":"")?"":e)+"\n    "+(null==(e=i.component.hover?"table-hover":"")?"":e)+"\n    "+(null==(e=i.component.condensed?"table-sm":"")?"":e)+'\n  ">\n  <caption class="visually-hidden">'+(null==(e=i.t(i.component.label))?"":e)+"</caption>\n  ",i.component.header&&i.component.header.length>0&&(n+="\n  <thead>\n    <tr>\n      ",i.component.header.forEach(function(l){n+="\n      <th>"+(null==(e=i.t(l))?"":e)+"</th>\n      "}),n+="\n    </tr>\n  </thead>\n  "),n+="\n  <tbody>\n    ",i.tableComponents.forEach(function(l,u){n+='\n    <tr ref="row-'+(null==(e=i.id)?"":e)+'">\n      ',l.forEach(function(d,s){n+='\n      <td ref="'+(null==(e=i.tableKey)?"":e)+"-"+(null==(e=u)?"":e)+'"',i.cellClassName&&(n+=' class="'+(null==(e=i.cellClassName)?"":e)+'"'),n+=">"+(null==(e=d)?"":e)+"</td>\n      "}),n+="\n    </tr>\n    "}),n+="\n  </tbody>\n</table>\n"}},15196:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(57370));y.default={form:e.default}},82535:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";if(i.mode.autocomplete){for(var l in n+='\n  <div class="address-autocomplete-container">\n    <input\n      ref="'+(null==(e=i.ref.searchInput)?"":e)+'"\n      ',i.inputAttributes)n+="\n        "+(null==(e=l)?"":e)+'="'+(null==(e=i.inputAttributes[l])?"":e)+'"\n      ';n+='\n      value="'+(null==(e=i.displayValue)?"":e)+'"\n      autocomplete="off"\n      aria-label="'+(null==(e=i.t("autocomplete"))?"":e)+'"\n    >\n    ',i.component.disableClearIcon||(n+='\n      <i\n        class="address-autocomplete-remove-value-icon fa fa-times"\n        tabindex="'+(null==(e=i.inputAttributes.tabindex)?"":e)+'"\n        ref="'+(null==(e=i.ref.removeValueIcon)?"":e)+'"\n      ></i>\n    '),n+="\n  </div>\n"}return n+="\n",i.self.manualModeEnabled&&(n+='\n  <div class="form-check checkbox">\n    <label class="form-check-label">\n      <input\n        ref="'+(null==(e=i.ref.modeSwitcher)?"":e)+'"\n        type="checkbox"\n        class="form-check-input"\n        tabindex="'+(null==(e=i.inputAttributes.tabindex)?"":e)+'"\n        ',i.mode.manual&&(n+="checked=true"),n+="\n        ",i.disabled&&(n+="disabled=true"),n+="\n      >\n      <span>"+(null==(e=i.component.switchToManualModeLabel)?"":e)+"</span>\n    </label>\n  </div>\n"),n+="\n",i.self.manualMode&&(n+='\n  <div ref="'+(null==(e=i.nestedKey)?"":e)+'">\n    '+(null==(e=i.children)?"":e)+"\n  </div>\n"),n+"\n"}},83993:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div ref="value">',(n+=i.displayValue?null==(e=i.displayValue)?"":e:"-")+"</div>\n"}},53405:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(82535)),n=o(i(83993));function o(l){return l&&l.__esModule?l:{default:l}}y.default={form:e.default,html:n.default}},8132:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";for(var l in n+="<div\n  ",i.attrs)n+="\n    "+(null==(e=l)?"":e)+'="'+(null==(e=i.attrs[l])?"":e)+'"\n  ';return n+="\n>\n  "+(null==(e=i.message)?"":e)+"\n  ",i.options.vpat&&(n+='\n    <span class="sr-only" id="hotkey-i-'+(null==(e=i.form._id)?"":e)+'">'+(null==(e=i.t("errorListHotkey"))?"":e)+"</span>\n  "),n+"\n</div>\n"}},93346:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(8132));y.default={form:e.default}},53279:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="builder-component" ref="dragComponent" tabindex="-1">\n  ',i.disableBuilderActions||(n+='\n    <div class="component-btn-group" data-noattach="true">\n      <div\n        role="button"\n        aria-label="Remove button. Click to remove component from the form"\n        tabindex="-1"\n        class="btn btn-xxs btn-danger component-settings-button component-settings-button-remove"\n        ref="removeComponent"\n      >\n        <i class="'+(null==(e=i.iconClass("remove"))?"":e)+'"></i>\n      </div>\n      <div\n        role="button"\n        aria-label="Copy button. Click to copy component"\n        tabindex="-1"\n        class="btn btn-xxs btn-default component-settings-button component-settings-button-copy"\n        ref="copyComponent"\n      >\n        <i class="'+(null==(e=i.iconClass("copy"))?"":e)+'"></i>\n      </div>\n      <div\n        role="button"\n        aria-label="Paste below button. Click to paste component below the current component"\n        tabindex="-1"\n        class="btn btn-xxs btn-default component-settings-button component-settings-button-paste"\n        ref="pasteComponent"\n      >\n        <i class="'+(null==(e=i.iconClass("save"))?"":e)+'"></i>\n      </div>\n      <div\n        role="button"\n        aria-label="Edit json button. Click to edit json of the current component"\n        tabindex="-1"\n        class="btn btn-xxs btn-default component-settings-button component-settings-button-edit-json" \n        ref="editJson"\n      >\n        <i class="'+(null==(e=i.iconClass("wrench"))?"":e)+'"></i>\n      </div>\n      <div\n        role="button"\n        aria-label="Move button"\n        tabindex="-1"\n        class="btn btn-xxs btn-default component-settings-button component-settings-button-move"\n        ref="moveComponent"\n      >\n        <i class="'+(null==(e=i.iconClass("move"))?"":e)+'"></i>\n      </div>\n      <div\n        role="button"\n        aria-label="Edit button. Click to open component settings modal window"\n        tabindex="-1"\n        class="btn btn-xxs btn-secondary component-settings-button component-settings-button-edit"\n        ref="editComponent"\n      >\n        <i class="'+(null==(e=i.iconClass("cog"))?"":e)+'"></i>\n      </div>\n    </div>\n  '),n+"\n  "+(null==(e=i.html)?"":e)+"\n</div>\n"}},4158:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(53279));y.default={form:e.default}},21202:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="builder-components drag-container formio-builder-'+(null==(e=i.type)?"":e)+'" ref="'+(null==(e=i.key)?"":e)+'-container">\n  '+(null==(e=i.html)?"":e)+"\n</div>\n"}},2250:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(21202));y.default={form:e.default}},50381:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="row">\n  <div class="col col-sm-6">\n    <p class="lead">'+(null==(e=i.t(i.componentInfo.title,{_userInput:!0}))?"":e)+" "+(null==(e=i.t("Component"))?"":e)+"</p>\n  </div>\n  ",i.helplinks&&(n+='\n  <div class="col col-sm-6">\n    <div class="float-right" style="margin-right: 20px; margin-top: 10px">\n      <a href="'+(null==(e=i.t(i.helplinks+i.componentInfo.documentation))?"":e)+'" target="_blank" rel="noopener noreferrer">\n        <i class="'+(null==(e=i.iconClass("new-window"))?"":e)+'"></i> '+(null==(e=i.t("Help"))?"":e)+"\n      </a>\n    </div>\n  </div>\n  "),n+='\n</div>\n<div class="row">\n  <div class="col component-edit-tabs ',n+=i.preview?"col-sm-6":"col-sm-12",n+='">\n    <div ref="editForm">\n        '+(null==(e=i.editForm)?"":e)+"\n    </div>\n    ",i.preview||(n+='\n    <div style="margin-top: 10px;">\n      <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(e=i.t("Save"))?"":e)+'</button>\n      <button class="btn btn-secondary" style="margin-right: 10px;" ref="cancelButton">'+(null==(e=i.t("Cancel"))?"":e)+'</button>\n      <button class="btn btn-danger" ref="removeButton">'+(null==(e=i.t("Remove"))?"":e)+"</button>\n    </div>\n    "),n+="\n  </div>\n  ",i.preview&&(n+='\n  <div class="col col-sm-6">\n    <div class="card panel preview-panel">\n      <div class="card-header">\n        <h4 class="card-title mb-0">'+(null==(e=i.t("Preview"))?"":e)+'</h4>\n      </div>\n      <div class="card-body">\n        <div class="component-preview" ref="preview">\n          '+(null==(e=i.preview)?"":e)+"\n        </div>\n      </div>\n    </div>\n    ",i.componentInfo.help&&(n+='\n    <div class="card card-body bg-light formio-settings-help">\n      '+(null==(e=i.t(i.componentInfo.help))?"":e)+"\n    </div>\n    "),n+='\n    <div style="margin-top: 10px;">\n      <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(e=i.t("Save"))?"":e)+'</button>\n      <button class="btn btn-secondary" style="margin-right: 10px;" ref="cancelButton">'+(null==(e=i.t("Cancel"))?"":e)+'</button>\n      <button class="btn btn-danger" ref="removeButton">'+(null==(e=i.t("Remove"))?"":e)+"</button>\n    </div>\n  </div>\n  "),n+"\n</div>\n"}},4690:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(50381));y.default={form:e.default}},76182:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div\n  class="drag-and-drop-alert alert alert-info no-drag"\n  style="text-align:center;"\n  role="alert"\n  data-noattach="true"\n  data-position="'+(null==(e=i.position)?"":e)+'"\n>\n  '+(null==(e=i.t("Drag and Drop a form component"))?"":e)+"\n</div>\n"}},72537:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(76182));y.default={form:e.default}},6060:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="card form-builder-panel" ref="group-panel-'+(null==(e=i.groupKey)?"":e)+'">\n  <div class="card-header form-builder-group-header" id="heading-'+(null==(e=i.groupKey)?"":e)+'">\n    <h5 class="mb-0 mt-0">\n      <button\n        class="btn btn-block builder-group-button"\n        type="button"\n        data-toggle="collapse"\n        data-target="#group-'+(null==(e=i.groupKey)?"":e)+'"\n        data-parent="#'+(null==(e=i.groupId)?"":e)+'"\n        aria-expanded="'+(null==(e=i.group.default)?"":e)+'"\n        aria-controls="group-'+(null==(e=i.groupKey)?"":e)+'"\n        ref="sidebar-anchor"\n      >\n        '+(null==(e=i.t(i.group.title,{_userInput:!0}))?"":e)+'\n      </button>\n    </h5>\n  </div>\n  <div\n    id="group-'+(null==(e=i.groupKey)?"":e)+'"\n    class="collapse '+(null==(e=i.group.default?" show":"")?"":e)+'"\n    data-parent="#'+(null==(e=i.groupId)?"":e)+'"\n    data-default="'+(null==(e=i.group.default)?"":e)+'"\n    aria-labelledby="heading-'+(null==(e=i.groupKey)?"":e)+'"\n    ref="sidebar-group"\n  >\n    <div id="group-container-'+(null==(e=i.groupKey)?"":e)+'" class="card-body no-drop p-2" ref="sidebar-container">\n      ',i.group.componentOrder.length||i.subgroups.length?(n+="\n        ",!i.group.componentOrder||i.group.componentOrder.forEach(function(l){n+='\n          <span\n            ref="sidebar-component"\n            data-group="'+(null==(e=i.groupKey)?"":e)+'"\n            data-key="'+(null==(e=i.group.components[l].key)?"":e)+'"\n            data-type="'+(null==(e=i.group.components[l].schema.type)?"":e)+'"\n            class="btn btn-primary btn-sm btn-block formcomponent drag-copy"\n            tabindex="'+(null==(e=i.keyboardActionsEnabled?0:-1)?"":e)+'"\n          >\n            ',i.group.components[l].icon&&(n+='\n              <i class="'+(null==(e=i.iconClass(i.group.components[l].icon))?"":e)+'" style="margin-right: 5px;"></i>\n            '),n+="\n            "+(null==(e=i.t(i.group.components[l].title,{_userInput:!0}))?"":e)+"\n          </span>\n        "}),n+="\n        "+(null==(e=i.subgroups.join(""))?"":e)+"\n      "):n+="\n        <div>"+(null==(e=i.t("No Matches Found"))?"":e)+"</div>\n      ",n+="\n    </div>\n  </div>\n</div>\n"}},86684:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(6060));y.default={form:e.default}},3124:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div id="'+(null==(e=i.groupId)?"":e)+'" class="accordion builder-sidebar'+(null==(e=i.scrollEnabled?" builder-sidebar_scroll":"")?"":e)+'" ref="sidebar">\n  <input class="form-control builder-sidebar_search" type="search" ref="sidebar-search" placeholder="'+(null==(e=i.t("Search field(s)"))?"":e)+'" />\n  <div ref="sidebar-groups">\n    ',i.groups.forEach(function(l){n+="\n      "+(null==(e=l)?"":e)+"\n    "}),n+="\n  </div>\n</div>\n"}},92011:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(3124));y.default={form:e.default}},3617:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="formio builder row formbuilder">\n  <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n    '+(null==(e=i.sidebar)?"":e)+'\n  </div>\n  <div class="col-xs-8 col-sm-9 col-md-10 formarea">\n    <ol class="breadcrumb wizard-pages">\n        ',i.pages.forEach(function(l,u){n+='\n          <li id="'+(null==(e=l.key)?"":e)+'">\n            <span title="'+(null==(e=l.title)?"":e)+'" class="mr-2 badge ',n+=u===i.self.page?"badge-primary":"badge-info",n+=' wizard-page-label" ref="gotoPage">'+(null==(e=l.title)?"":e)+"</span>\n          </li>\n        "}),n+='\n          <li class="wizard-add-page">\n            <span title="'+(null==(e=i.t("Create Page"))?"":e)+'" class="mr-2 badge badge-success wizard-page-label" ref="addPage">\n              <i class="'+(null==(e=i.iconClass("plus"))?"":e)+'"></i> '+(null==(e=i.t("Page"))?"":e)+'\n            </span>\n          </li>\n      </ol>\n    <div ref="form">\n      '+(null==(e=i.form)?"":e)+"\n    </div>\n  </div>\n</div>\n"}},86560:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(3617));y.default={form:e.default}},61194:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="formio builder row formbuilder">\n  <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n    '+(null==(e=i.sidebar)?"":e)+'\n  </div>\n  <div class="col-xs-8 col-sm-9 col-md-10 formarea" ref="form">\n    '+(null==(e=i.form)?"":e)+"\n  </div>\n</div>\n"}},6034:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(61194));y.default={form:e.default}},19353:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";for(var l in n+="<"+(null==(e=i.input.type)?"":e)+'\n  ref="button"\n  ',i.input.attr)n+="\n  "+(null==(e=l)?"":e)+'="'+(null==(e=i.input.attr[l])?"":e)+'"\n  ';return n+="\n  ",i.component.description&&(n+='\n    aria-describedby="d-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n  '),n+="\n>\n",i.component.leftIcon&&(n+='<span class="'+(null==(e=i.component.leftIcon)?"":e)+'"></span>&nbsp;'),n+="\n"+(null==(e=i.input.content)?"":e)+"\n",i.component.tooltip&&(n+='\n  <i ref="tooltip" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=i.component.tooltip)?"":e)+'"></i>\n'),n+="\n",i.component.rightIcon&&(n+='&nbsp;<span class="'+(null==(e=i.component.rightIcon)?"":e)+'"></span>'),n+"\n</"+(null==(e=i.input.type)?"":e)+'>\n<div ref="buttonMessageContainer">\n  <span class="help-block" ref="buttonMessage"></span>\n</div>\n'}},55227:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){return"\n"}},16913:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(19353)),n=o(i(55227));function o(l){return l&&l.__esModule?l:{default:l}}y.default={form:e.default,html:n.default}},64083:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";for(var l in n+='<div class="form-check checkbox">\n  <label class="'+(null==(e=i.input.labelClass)?"":e)+' form-check-label">\n    <'+(null==(e=i.input.type)?"":e)+'\n      ref="input"\n      ',i.input.attr)n+="\n      "+(null==(e=l)?"":e)+'="'+(null==(e=i.input.attr[l])?"":e)+'"\n      ';return n+="\n      ",i.checked&&(n+="checked=true"),n+='\n      aria-required="'+(null==(e=i.component.validate.required)?"":e)+'"\n      ',i.component.description&&(n+='\n      aria-describedby="d-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n      '),n+="\n      >\n    ",i.self.labelIsHidden()||(n+="<span>"+(null==(e=i.input.label)?"":e)+"</span>"),n+="\n    "+(null==(e=i.input.content)?"":e)+"\n    </"+(null==(e=i.input.type)?"":e)+">\n  </label>\n  ",i.component.tooltip&&(n+='\n    <i ref="tooltip" tabindex="0" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=i.component.tooltip)?"":e)+'"></i>\n  '),n+"\n</div>\n"}},4424:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<label class="'+(null==(e=i.input.labelClass)?"":e)+'">\n    '+(null==(e=i.input.content)?"":e)+"\n    ",i.self.labelIsHidden()||(n+="<span>"+(null==(e=i.input.label)?"":e)+"</span>"),n+='\n</label>\n<div ref="value">',(n+=i.checked?"True":"False")+"</div>\n"}},96661:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(64083)),n=o(i(4424));function o(l){return l&&l.__esModule?l:{default:l}}y.default={form:e.default,html:n.default}},46929:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return i.component.columns.forEach(function(l,u){n+='\n<div class="\n    col-'+(null==(e=l.size)?"":e)+"-"+(null==(e=l.currentWidth)?"":e)+"\n    col-"+(null==(e=l.size)?"":e)+"-offset-"+(null==(e=l.offset)?"":e)+"\n    col-"+(null==(e=l.size)?"":e)+"-push-"+(null==(e=l.push)?"":e)+"\n    col-"+(null==(e=l.size)?"":e)+"-pull-"+(null==(e=l.pull)?"":e)+'\n  " ref="'+(null==(e=i.columnKey)?"":e)+'">\n  '+(null==(e=i.columnComponents[u])?"":e)+"\n</div>\n"}),n+="\n"}},10219:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(46929));y.default={form:e.default}},51472:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="formio-component-modal-wrapper formio-component-modal-wrapper-'+(null==(e=i.component.type)?"":e)+'" ref="componentModalWrapper">\n  <div ref="openModalWrapper"></div>\n  <div class="formio-dialog formio-dialog-theme-default component-rendering-hidden" ref="modalWrapper">\n    <div class="formio-dialog-overlay" ref="modalOverlay"></div>\n    <div class="formio-dialog-content" aria-labelledby="ml-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'" ',i.self.isIE()||(n+=' role="dialog" '),n+=' ref="modalContents">\n      <label class="sr-only" id="ml-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'">'+(null==(e=i.t(i.component.label))?"":e)+(null==(e=i.self.isIE()?", dialog":"")?"":e)+"</label>\n      ",n+=i.options.vpat?'\n      <button class="formio-dialog-close float-right" title="Close" aria-label="Close button. Click to get back to the form" ref="modalCloseButton"></button>\n      ':'\n      <button class="formio-dialog-close float-right btn btn-secondary btn-sm" aria-label="Close button. Click to get back to the form" ref="modalClose"></button>\n      ',n+='\n      <div ref="modalContents">\n        ',i.visible&&(n+="\n        "+(null==(e=i.children)?"":e)+"\n        "),n+='\n        <div class="formio-dialog-buttons">\n          ',i.options.vpat&&(n+='\n          <button class="btn btn-secondary formio-dialog-button" aria-label="Cancel button. Click to cancel the changes and get back to the form." ref="modalClose">'+(null==(e=i.t("Cancel"))?"":e)+"</button>\n          "),n+'\n          <button class="btn btn-success formio-dialog-button" ref="modalSave" aria-label="Save button. Click to save the changes and get back to the form.">'+(null==(e=i.t("Save"))?"":e)+'</button>\n        </div>\n      </div>\n    </div>\n    <span class="sr-only" ref="modalLiveRegion" aria-live="assertive"></span>\n  </div>\n</div>\n'}},29627:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(51472));y.default={form:e.default}},38328:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div id="'+(null==(e=i.id)?"":e)+'" class="'+(null==(e=i.classes)?"":e)+'"',i.styles&&(n+=' styles="'+(null==(e=i.styles)?"":e)+'"'),n+=' ref="component">\n  ',i.visible&&(n+="\n  "+(null==(e=i.children)?"":e)+'\n  <div ref="messageContainer" class="formio-errors invalid-feedback"></div>\n  '),n+"\n</div>\n"}},66646:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(38328));y.default={form:e.default}},78420:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+((null==(e=i.children.join(""))?"":e)+"\n")}},69341:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(78420));y.default={form:e.default}},5918:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div ref="'+(null==(e=i.nestedKey)?"":e)+'">\n  '+(null==(e=i.children)?"":e)+"\n</div>\n"}},84383:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(5918));y.default={form:e.default}},2718:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default={"border-default":"","formio-tab-panel-active":"active","formio-tab-link-active":"active","formio-tab-link-container-active":"active","formio-form-error":"formio-error-wrapper has-message","formio-form-alert":"alert alert-danger","formio-label-error":"","formio-input-error":"","formio-alert-danger":"alert alert-danger","formio-alert-success":"alert alert-success","formio-alert-warning":"alert alert-warning","formio-modal-cancel-button":"btn btn-danger formio-dialog-button","formio-modal-confirm-button":"btn btn-primary formio-dialog-button"}},79841:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<table class="table datagrid-table table-bordered\n    '+(null==(e=i.component.striped?"table-striped":"")?"":e)+"\n    "+(null==(e=i.component.hover?"table-hover":"")?"":e)+"\n    "+(null==(e=i.component.condensed?"table-sm":"")?"":e)+'\n    " ',i.component.layoutFixed&&(n+='style="table-layout: fixed;"'),n+=">\n  ",i.hasHeader&&(n+="\n  <thead>\n    <tr>\n      ",i.component.reorder&&(n+="<th></th>"),n+="\n      ",i.columns.forEach(function(l){n+='\n        <th class="'+(null==(e=l.validate&&l.validate.required?"field-required":"")?"":e)+'">\n          '+(null==(e=l.hideLabel?"":i.t(l.label||l.title,{_userInput:!0}))?"":e)+"\n          ",l.tooltip&&(n+=' <i ref="tooltip" tabindex="0" data-title="'+(null==(e=l.tooltip)?"":e)+'" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=l.tooltip)?"":e)+'"></i>'),n+="\n        </th>\n      "}),n+="\n      ",i.hasExtraColumn&&(n+='\n      <th>\n        <span class="sr-only">'+(null==(e=i.t("Add/Remove"))?"":e)+"</span>\n        ",!i.builder&&i.hasAddButton&&i.hasTopSubmit&&(n+='\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(e=i.datagridKey)?"":e)+'-addRow" tabindex="'+(null==(e=i.tabIndex)?"":e)+'">\n          <i class="'+(null==(e=i.iconClass("plus"))?"":e)+'"></i>'+(null==(e=i.t(i.component.addAnother||"Add Another",{_userInput:!0}))?"":e)+"\n        </button>\n        "),n+="\n      </th>\n      "),n+="\n    </tr>\n  </thead>\n  "),n+='\n  <tbody ref="'+(null==(e=i.datagridKey)?"":e)+'-tbody" data-key="'+(null==(e=i.datagridKey)?"":e)+'">\n    ',i.rows.forEach(function(l,u){n+="\n    ",i.hasGroups&&i.groups[u]&&(n+='\n    <tr ref="'+(null==(e=i.datagridKey)?"":e)+'-group-header" class="datagrid-group-header'+(null==(e=i.hasToggle?" clickable":"")?"":e)+'">\n      <td\n        ref="'+(null==(e=i.datagridKey)?"":e)+'-group-label"\n        colspan="'+(null==(e=i.numColumns)?"":e)+'"\n        class="datagrid-group-label">'+(null==(e=i.groups[u].label)?"":e)+"</td>\n    </tr>\n    "),n+='\n    <tr ref="'+(null==(e=i.datagridKey)?"":e)+'-row">\n      ',i.component.reorder&&(n+='\n        <td class="col-md-1">\n          <button type="button" class="formio-drag-button btn btn-default fa fa-bars" data-key="'+(null==(e=i.datagridKey)?"":e)+'"></button>\n        </td>\n      '),n+="\n      ",i.columns.forEach(function(d){n+='\n        <td ref="'+(null==(e=i.datagridKey)?"":e)+'" ',d.key&&d.overlay&&d.overlay.width&&(n+=' style="width: '+(null==(e=d.overlay.width+"px")?"":e)+'"'),n+=" >\n          "+(null==(e=l[d.key])?"":e)+"\n        </td>\n      "}),n+="\n      ",i.hasExtraColumn&&(n+="\n        ",i.hasRemoveButtons&&(n+='\n        <td class="col-md-1">\n          <button type="button" class="btn btn-secondary formio-button-remove-row" ref="'+(null==(e=i.datagridKey)?"":e)+'-removeRow" tabindex="'+(null==(e=i.tabIndex)?"":e)+'" aria-label="'+(null==(e=i.t("remove"))?"":e)+'">\n            <i class="'+(null==(e=i.iconClass("remove-circle"))?"":e)+'"></i>\n          </button>\n        </td>\n        '),n+="\n        ",i.canAddColumn&&(n+='\n        <td ref="'+(null==(e=i.key)?"":e)+'-container" class="col-md-3">\n          '+(null==(e=i.placeholder)?"":e)+"\n        </td>\n        "),n+="\n      "),n+="\n    </tr>\n    "}),n+="\n  </tbody>\n  ",!i.builder&&i.hasAddButton&&i.hasBottomSubmit&&(n+='\n  <tfoot>\n    <tr>\n      <td colspan="'+(null==(e=i.component.layoutFixed?i.numColumns:i.numColumns+1)?"":e)+'">\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(e=i.datagridKey)?"":e)+'-addRow" tabindex="'+(null==(e=i.tabIndex)?"":e)+'">\n          <i class="'+(null==(e=i.iconClass("plus"))?"":e)+'"></i> '+(null==(e=i.t(i.component.addAnother||"Add Another",{_userInput:!0}))?"":e)+"\n        </button>\n      </td>\n    </tr>\n  </tfoot>\n  "),n+="\n</table>\n"}},71152:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<table class="table datagrid-table table-bordered\n    '+(null==(e=i.component.striped?"table-striped":"")?"":e)+"\n    "+(null==(e=i.component.hover?"table-hover":"")?"":e)+"\n    "+(null==(e=i.component.condensed?"table-sm":"")?"":e)+'\n    ">\n  ',i.hasHeader&&(n+="\n  <thead>\n    <tr>\n      ",i.columns.forEach(function(l){n+='\n        <th class="'+(null==(e=l.validate&&l.validate.required?"field-required":"")?"":e)+'">\n          '+(null==(e=l.hideLabel?"":i.t(l.label||l.title,{_userInput:!0}))?"":e)+"\n          ",l.tooltip&&(n+=' <i ref="tooltip" tabindex="0" data-title="'+(null==(e=l.tooltip)?"":e)+'" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=l.tooltip)?"":e)+'"></i>'),n+="\n        </th>\n      "}),n+="\n    </tr>\n  </thead>\n  "),n+="\n  <tbody>\n    ",i.rows.forEach(function(l){n+="\n    <tr>\n      ",i.columns.forEach(function(u){n+='\n        <td ref="'+(null==(e=i.datagridKey)?"":e)+'">\n          '+(null==(e=l[u.key])?"":e)+"\n        </td>\n      "}),n+="\n    </tr>\n    "}),n+="\n  </tbody>\n</table>\n"}},66064:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(79841)),n=o(i(71152));function o(l){return l&&l.__esModule?l:{default:l}}y.default={form:e.default,html:n.default}},27497:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="row" role="group"\n  ',n+=i.component.hideLabel?'\n  aria-label="'+(null==(e=i.component.label)?"":e)+'"\n  ':'\n  aria-labelledby="l-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n  ',n+="\n  ",i.component.description&&(n+='\n  aria-describedby="d-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n  '),n+="\n  >\n  ",i.dayFirst&&i.showDay&&(n+='\n  <div class="col col-xs-3">\n    ',i.component.hideInputLabels||(n+='\n    <label for="'+(null==(e=i.component.key)?"":e)+'-day" class="',i.component.fields.day.required&&(n+="field-required"),n+='">'+(null==(e=i.t("Day"))?"":e)+"</label>\n    "),n+="\n    <div>"+(null==(e=i.day)?"":e)+"</div>\n  </div>\n  "),n+="\n  ",i.showMonth&&(n+='\n  <div class="col col-xs-4">\n    ',i.component.hideInputLabels||(n+='\n    <label for="'+(null==(e=i.component.key)?"":e)+'-month" class="',i.component.fields.month.required&&(n+="field-required"),n+='">'+(null==(e=i.t("Month"))?"":e)+"</label>\n    "),n+="\n    <div>"+(null==(e=i.month)?"":e)+"</div>\n  </div>\n  "),n+="\n  ",!i.dayFirst&&i.showDay&&(n+='\n  <div class="col col-xs-3">\n    ',i.component.hideInputLabels||(n+='\n    <label for="'+(null==(e=i.component.key)?"":e)+'-day" class="',i.component.fields.day.required&&(n+="field-required"),n+='">'+(null==(e=i.t("Day"))?"":e)+"</label>\n    "),n+="\n    <div>"+(null==(e=i.day)?"":e)+"</div>\n  </div>\n  "),n+="\n  ",i.showYear&&(n+='\n  <div class="col col-xs-5">\n    ',i.component.hideInputLabels||(n+='\n    <label for="'+(null==(e=i.component.key)?"":e)+'-year" class="',i.component.fields.year.required&&(n+="field-required"),n+='">'+(null==(e=i.t("Year"))?"":e)+"</label>\n    "),n+="\n    <div>"+(null==(e=i.year)?"":e)+"</div>\n  </div>\n  "),n+'\n</div>\n<input name="ctx.data[day]" type="hidden" class="form-control" lang="en" value="" ref="input">\n'}},86398:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(27497));y.default={form:e.default}},48135:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){return'<div class="formio-dialog formio-dialog-theme-default component-settings">\n  <div class="formio-dialog-overlay" ref="dialogOverlay"></div>\n  <div class="formio-dialog-content" ref="dialogContents" role="dialog">\n    <div ref="dialogContents"></div>\n    <button class="formio-dialog-close float-right btn-sm" aria-label="Close modal window." ref="dialogClose"></button>\n  </div>\n</div>\n'}},65557:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(48135));y.default={form:e.default}},61580:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="editgrid-table-container">\n  <div class="table-responsive">\n    <table class="table\n      '+(null==(e=i.component.striped?"table-striped":"")?"":e)+"\n      "+(null==(e=i.component.bordered?"table-bordered":"")?"":e)+"\n      "+(null==(e=i.component.hover?"table-hover":"")?"":e)+"\n      "+(null==(e=i.component.condensed?"table-sm":"")?"":e)+'\n    ">\n      ',i.header&&(n+='\n      <thead class="editgrid-table-head">\n        '+(null==(e=i.header)?"":e)+"\n      </thead>\n      "),n+='\n      <tbody class="editgrid-table-body">\n        ',i.rows.forEach(function(l,u){n+='\n        <tr ref="'+(null==(e=i.ref.row)?"":e)+'">\n          '+(null==(e=l)?"":e)+"\n          ",i.openRows[u]&&!i.readOnly&&(n+='\n            <td class="editgrid-table-column">\n              <div class="editgrid-actions">\n                <button class="btn btn-primary" ref="'+(null==(e=i.ref.saveRow)?"":e)+'">'+(null==(e=i.t(i.component.saveRow||"Save",{_userInput:!0}))?"":e)+"</button>\n                ",i.component.removeRow&&(n+='\n                <button class="btn btn-danger" ref="'+(null==(e=i.ref.cancelRow)?"":e)+'">'+(null==(e=i.t(i.component.removeRow||"Cancel",{_userInput:!0}))?"":e)+"</button>\n                "),n+="\n              </div>\n            </td>\n          "),n+="\n          ",i.errors[u]&&(n+='\n          <td class="editgrid-table-column">\n            <div class="has-error">\n              <div class="editgrid-row-error help-block">\n                '+(null==(e=i.errors[u])?"":e)+"\n              </div>\n            </div>\n          </td>\n          "),n+="\n        </tr>\n        "}),n+="\n      </tbody>\n      ",i.footer&&(n+="\n      <tfoot>\n        <tr>\n          "+(null==(e=i.footer)?"":e)+"\n        </tr>\n      <tfoot>\n      "),n+="\n    </table>\n  </div>\n</div>\n",!i.readOnly&&i.hasAddButton&&(n+='\n<button class="btn btn-primary" ref="'+(null==(e=i.ref.addRow)?"":e)+'">\n  <i class="'+(null==(e=i.iconClass("plus"))?"":e)+'"></i>\n  '+(null==(e=i.t(i.component.addAnother||"Add Another",{_userInput:!0}))?"":e)+"\n</button>\n"),n+="\n"}},46678:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="editgrid-table-container">\n  <div class="table-responsive">\n    <table class="table\n      '+(null==(e=i.component.striped?"table-striped":"")?"":e)+"\n      "+(null==(e=i.component.bordered?"table-bordered":"")?"":e)+"\n      "+(null==(e=i.component.hover?"table-hover":"")?"":e)+"\n      "+(null==(e=i.component.condensed?"table-sm":"")?"":e)+'\n    ">\n      ',i.header&&(n+='\n      <thead class="editgrid-table-head">\n        '+(null==(e=i.header)?"":e)+"\n      </thead>\n      "),n+='\n      <tbody class="editgrid-table-body">\n        ',i.rows.forEach(function(l,u){n+='\n        <tr ref="'+(null==(e=i.ref.row)?"":e)+'">\n          '+(null==(e=l)?"":e)+"\n          ",i.openRows[u]&&!i.readOnly&&(n+='\n          <td class="editgrid-table-column">\n            <div class="editgrid-actions">\n              <button class="btn btn-primary" ref="'+(null==(e=i.ref.saveRow)?"":e)+'">'+(null==(e=i.t(i.component.saveRow||"Save",{_userInput:!0}))?"":e)+"</button>\n              ",i.component.removeRow&&(n+='\n              <button class="btn btn-danger" ref="'+(null==(e=i.ref.cancelRow)?"":e)+'">'+(null==(e=i.t(i.component.removeRow||"Cancel",{_userInput:!0}))?"":e)+"</button>\n              "),n+="\n            </div>\n          </td>\n          "),n+="\n          ",i.errors[u]&&(n+='\n          <td class="editgrid-table-column">\n            <div class="has-error">\n              <div class="editgrid-row-error help-block">\n                '+(null==(e=i.errors[u])?"":e)+"\n              </div>\n            </div>\n          </td>\n          "),n+="\n        </tr>\n        "}),n+="\n      </tbody>\n      ",i.footer&&(n+="\n      <tfoot>\n        <tr>\n          "+(null==(e=i.footer)?"":e)+"\n         </tr>\n      <tfoot>\n      "),n+="\n    </table>\n  </div>\n</div>\n"}},46885:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(61580)),n=o(i(46678));function o(l){return l&&l.__esModule?l:{default:l}}y.default={form:e.default,html:n.default}},85719:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<ul class="editgrid-listgroup list-group\n    '+(null==(e=i.component.striped?"table-striped":"")?"":e)+"\n    "+(null==(e=i.component.bordered?"table-bordered":"")?"":e)+"\n    "+(null==(e=i.component.hover?"table-hover":"")?"":e)+"\n    "+(null==(e=i.component.condensed?"table-sm":"")?"":e)+'\n    ">\n  ',i.header&&(n+='\n  <li class="list-group-item list-group-header">\n    '+(null==(e=i.header)?"":e)+"\n  </li>\n  "),n+="\n  ",i.rows.forEach(function(l,u){n+='\n  <li class="list-group-item" ref="'+(null==(e=i.ref.row)?"":e)+'">\n    '+(null==(e=l)?"":e)+"\n    ",i.openRows[u]&&!i.readOnly&&(n+='\n    <div class="editgrid-actions">\n      <button class="btn btn-primary" ref="'+(null==(e=i.ref.saveRow)?"":e)+'">'+(null==(e=i.t(i.component.saveRow||"Save",{_userInput:!0}))?"":e)+"</button>\n      ",i.component.removeRow&&(n+='\n      <button class="btn btn-danger" ref="'+(null==(e=i.ref.cancelRow)?"":e)+'">'+(null==(e=i.t(i.component.removeRow||"Cancel",{_userInput:!0}))?"":e)+"</button>\n      "),n+="\n    </div>\n    "),n+='\n    <div class="has-error">\n      <div class="editgrid-row-error">\n        '+(null==(e=i.errors[u])?"":e)+"\n      </div>\n    </div>\n  </li>\n  "}),n+="\n  ",i.footer&&(n+='\n  <li class="list-group-item list-group-footer">\n    '+(null==(e=i.footer)?"":e)+"\n  </li>\n  "),n+="\n</ul>\n",!i.readOnly&&i.hasAddButton&&(n+='\n<button class="btn btn-primary" ref="'+(null==(e=i.ref.addRow)?"":e)+'">\n  <i class="'+(null==(e=i.iconClass("plus"))?"":e)+'"></i> '+(null==(e=i.t(i.component.addAnother||"Add Another",{_userInput:!0}))?"":e)+"\n</button>\n"),n+="\n"}},21155:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<ul class="editgrid-listgroup list-group\n    '+(null==(e=i.component.striped?"table-striped":"")?"":e)+"\n    "+(null==(e=i.component.bordered?"table-bordered":"")?"":e)+"\n    "+(null==(e=i.component.hover?"table-hover":"")?"":e)+"\n    "+(null==(e=i.component.condensed?"table-sm":"")?"":e)+'\n    ">\n  ',i.header&&(n+='\n  <li class="list-group-item list-group-header">\n    '+(null==(e=i.header)?"":e)+"\n  </li>\n  "),n+="\n  ",i.rows.forEach(function(l,u){n+='\n  <li class="list-group-item" ref="'+(null==(e=i.ref.row)?"":e)+'">\n    '+(null==(e=l)?"":e)+"\n    ",i.openRows[u]&&!i.readOnly&&(n+='\n    <div class="editgrid-actions">\n      <button class="btn btn-primary" ref="'+(null==(e=i.ref.saveRow)?"":e)+'">'+(null==(e=i.t(i.component.saveRow||"Save",{_userInput:!0}))?"":e)+"</button>\n      ",i.component.removeRow&&(n+='\n      <button class="btn btn-danger" ref="'+(null==(e=i.ref.cancelRow)?"":e)+'">'+(null==(e=i.t(i.component.removeRow||"Cancel",{_userInput:!0}))?"":e)+"</button>\n      "),n+="\n    </div>\n    "),n+='\n    <div class="has-error">\n      <div class="editgrid-row-error help-block">\n        '+(null==(e=i.errors[u])?"":e)+"\n      </div>\n    </div>\n  </li>\n  "}),n+="\n  ",i.footer&&(n+='\n  <li class="list-group-item list-group-footer">\n    '+(null==(e=i.footer)?"":e)+"\n  </li>\n  "),n+="\n</ul>\n"}},43252:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(85719)),n=o(i(21155));function o(l){return l&&l.__esModule?l:{default:l}}y.default={form:e.default,html:n.default}},14969:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+="<p>"+(null==(e=i.t("error"))?"":e)+"\n  ",i.options.vpat&&(n+='\n  <span ref="errorTooltip" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+'" tabindex="0"></span>\n  '),n+="\n</p>\n<ul>\n  ",i.errors.forEach(function(l){n+='\n  <li>\n    <span\n      data-component-key = "'+(null==(e=l.keyOrPath)?"":e)+'"\n      ref = "errorRef"\n      tabIndex = "0"\n      role="link"\n    >\n      '+(null==(e=l.message)?"":e)+"\n    </span>\n  </li>\n  "}),n+="\n</ul>\n"}},35996:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(14969));y.default={form:e.default}},75070:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="field-wrapper\n  '+(null==(e=i.isRightPosition?"field-wrapper--reverse":"")?"":e)+'">\n  ',i.label.hidden||(n+='\n    <div class="field-label\n      '+(null==(e=i.isRightAlign?"field-label--right":"")?"":e)+'"\n      style="'+(null==(e=i.labelStyles)?"":e)+'">\n    '+(null==(e=i.labelMarkup)?"":e)+"\n    </div>\n  "),n+="\n\n  ",i.label.hidden&&i.label.className&&i.component.validate.required&&(n+='\n    <div class="field-label\n      '+(null==(e=i.isRightAlign?"field-label--right":"")?"":e)+'"\n      style="'+(null==(e=i.labelStyles)?"":e)+'">\n      <label class="'+(null==(e=i.label.className)?"":e)+'"></label>\n    </div>\n  '),n+='\n\n  <div class="field-content" style="'+(null==(e=i.contentStyles)?"":e)+'">\n    '+(null==(e=i.element)?"":e)+"\n  </div>\n</div>\n\n",i.component.description&&(n+='\n  <div class="form-text text-muted">'+(null==(e=i.t(i.component.description,{_userInput:!0}))?"":e)+"</div>\n"),n+"\n"}},65693:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return!i.label.hidden&&"bottom"!==i.label.labelPosition&&(n+="\n  "+(null==(e=i.labelMarkup)?"":e)+"\n"),n+="\n\n",i.label.hidden&&i.label.className&&i.component.validate.required&&(n+='\n  <label class="'+(null==(e=i.label.className)?"":e)+'"></label>\n'),n+="\n\n"+(null==(e=i.element)?"":e)+"\n\n",!i.label.hidden&&"bottom"===i.label.labelPosition&&(n+="\n  "+(null==(e=i.labelMarkup)?"":e)+"\n"),n+="\n",i.component.description&&(n+='\n  <div id="d-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'" class="form-text text-muted">'+(null==(e=i.t(i.component.description,{_userInput:!0}))?"":e)+"</div>\n"),n+"\n"}},5506:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(65693)),n=o(i(75070));function o(l){return l&&l.__esModule?l:{default:l}}y.default={form:e.default,align:n.default}},54467:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+="<fieldset>\n  ",i.component.legend&&(n+='\n  <legend ref="header" class="'+(null==(e=i.component.collapsible?"formio-clickable":"")?"":e)+'">\n    '+(null==(e=i.t(i.component.legend,{_userInput:!0}))?"":e)+"\n    ",i.component.tooltip&&(n+='\n      <i ref="tooltip" tabindex="0" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=i.component.tooltip)?"":e)+'"></i>\n    '),n+="\n  </legend>\n  "),n+="\n  ",i.collapsed||(n+='\n  <div class="fieldset-body" ref="'+(null==(e=i.nestedKey)?"":e)+'">\n    '+(null==(e=i.children)?"":e)+"\n  </div>\n  "),n+"\n</fieldset>\n"}},17032:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(54467));y.default={form:e.default}},8128:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return i.options.vpat&&(n+='\n  <span tabindex="-1" class="sr-only" id="invisible-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"></span>\n'),n+="\n",i.self.imageUpload?(n+="\n  <div>\n    ",i.files.forEach(function(l){n+='\n      <div>\n        <span>\n          <img ref="fileImage" src="" alt="'+(null==(e=l.originalName||l.name)?"":e)+'" style="width:'+(null==(e=i.component.imageSize)?"":e)+'px">\n          ',i.disabled||(n+='\n            <i tabindex="0" class="'+(null==(e=i.iconClass("remove"))?"":e)+'" ref="removeLink"></i>\n          '),n+="\n        </span>\n      </div>\n    "}),n+="\n  </div>\n"):(n+="\n  ",i.options.vpat&&(n+="\n    <div>"+(null==(e=i.component.filePattern&&"*"!==i.component.filePattern?i.t("Allowed file types: ")+i.component.filePattern:"Any file types are allowed")?"":e)+"</div>\n  "),n+='\n  <ul class="list-group list-group-striped">\n    <li class="list-group-item list-group-header hidden-xs hidden-sm">\n      <div class="row">\n        ',i.disabled||(n+='\n          <div class="col-md-1"></div>\n        '),n+='\n        <div class="col-md-',n+=i.self.hasTypes?"7":"9",n+='"><strong>'+(null==(e=i.t("File Name"))?"":e)+'</strong></div>\n        <div class="col-md-2"><strong>'+(null==(e=i.t("Size"))?"":e)+"</strong></div>\n        ",i.self.hasTypes&&(n+='\n          <div class="col-md-2"><strong>'+(null==(e=i.t("Type"))?"":e)+"</strong></div>\n        "),n+="\n      </div>\n    </li>\n    ",i.files.forEach(function(l){n+='\n      <li class="list-group-item">\n        <div class="row">\n          ',i.disabled||(n+='\n            <div class="col-md-1"><i tabindex="0" class="'+(null==(e=i.iconClass("remove"))?"":e)+'" ref="removeLink"></i></div>\n          '),n+='\n          <div class="col-md-',n+=i.self.hasTypes?"7":"9",n+='">\n            ',n+=i.component.uploadOnly?"\n              "+(null==(e=l.originalName||l.name)?"":e)+"\n            ":'\n              <a href="'+(null==(e=l.url||"#")?"":e)+'" target="_blank" ref="fileLink">\n                <span class="sr-only">'+(null==(e=i.t("Press to open "))?"":e)+"</span>"+(null==(e=l.originalName||l.name)?"":e)+"\n              </a>\n            ",n+='\n          </div>\n          <div class="col-md-2">'+(null==(e=i.fileSize(l.size))?"":e)+"</div>\n          ",i.self.hasTypes&&!i.disabled&&(n+='\n            <div class="col-md-2">\n              <select class="file-type" ref="fileType">\n                ',i.component.fileTypes.map(function(u){n+='\n                  <option class="test" value="'+(null==(e=u.value)?"":e)+'" ',u.label===l.fileType&&(n+='selected="selected"'),n+=">"+(null==(e=i.t(u.label))?"":e)+"</option>\n                "}),n+="\n              </select>\n            </div>\n          "),n+="\n          ",i.self.hasTypes&&i.disabled&&(n+='\n          <div class="col-md-2">'+(null==(e=l.fileType)?"":e)+"</div>\n          "),n+="\n        </div>\n      </li>\n    "}),n+="\n  </ul>\n"),n+="\n",!i.disabled&&(i.component.multiple||!i.files.length)&&(n+="\n  ",i.self.useWebViewCamera?n+='\n    <div class="fileSelector">\n      <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(e=i.t("Gallery"))?"":e)+'</button>\n      <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(e=i.t("Camera"))?"":e)+"</button>\n    </div>\n  ":i.self.cameraMode?n+='\n    <div class="video-container">\n      <video class="video" autoplay="true" ref="videoPlayer" tabindex="-1"></video>\n    </div>\n    <button class="btn btn-primary" ref="takePictureButton"><i class="fa fa-camera"></i> '+(null==(e=i.t("Take Picture"))?"":e)+'</button>\n    <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(e=i.t("Switch to file upload"))?"":e)+"</button>\n  ":(n+='\n    <div class="fileSelector" ref="fileDrop" '+(null==(e=i.fileDropHidden?"hidden":"")?"":e)+'>\n      <i class="'+(null==(e=i.iconClass("cloud-upload"))?"":e)+'"></i> '+(null==(e=i.t("Drop files to attach,"))?"":e)+"\n        ",i.self.imageUpload&&i.component.webcam&&(n+='\n          <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(e=i.t("use camera"))?"":e)+"</a>\n        "),n+="\n        "+(null==(e=i.t("or"))?"":e)+'\n        <a href="#" ref="fileBrowse" class="browse">\n          '+(null==(e=i.t("browse"))?"":e)+'\n          <span class="sr-only">\n            '+(null==(e=i.t("Browse to attach file for "+i.component.label+". "+(i.component.description?i.component.description+". ":"")+(i.component.filePattern&&"*"!==i.component.filePattern?i.t("Allowed file types: ")+i.component.filePattern:"Any file types are allowed")))?"":e)+'\n          </span>\n        </a>\n      <div ref="fileProcessingLoader" class="loader-wrapper">\n        <div class="loader text-center"></div>\n      </div>\n    </div>\n  '),n+="\n"),n+="\n",i.statuses.forEach(function(l){n+='\n  <div class="file '+(null==(e="error"===i.statuses.status?" has-error":"")?"":e)+'">\n    <div class="row">\n      <div class="fileName col-form-label col-sm-10">'+(null==(e=l.originalName)?"":e)+'\n        <i class="'+(null==(e=i.iconClass("remove"))?"":e)+'" ref="fileStatusRemove">\n          <span class="sr-only">'+(null==(e=i.t("Remove button. Press to remove "+l.originalName||0))?"":e)+'</span>\n          <span class="sr-only">'+(null==(e=l.message?l.message.replace(";","."):"")?"":e)+'</span>\n        </i>\n      </div>\n      <div class="fileSize col-form-label col-sm-2 text-right">'+(null==(e=i.fileSize(l.size))?"":e)+'</div>\n    </div>\n    <div class="row">\n      <div class="col-sm-12">\n        ',n+="progress"===l.status?'\n          <div class="progress">\n            <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(e=l.progress)?"":e)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(e=l.progress)?"":e)+'%">\n              <span class="sr-only">'+(null==(e=l.progress)?"":e)+"% "+(null==(e=i.t("Complete"))?"":e)+"</span>\n            </div>\n          </div>\n        ":"error"===l.status?'\n          <div class="alert alert-danger bg-'+(null==(e=l.status)?"":e)+'">'+(null==(e=i.t(l.message))?"":e)+"</div>\n        ":'\n          <div class="bg-'+(null==(e=l.status)?"":e)+'">'+(null==(e=i.t(l.message))?"":e)+"</div>\n        ",n+="\n      </div>\n    </div>\n  </div>\n"}),n+="\n",(!i.component.storage||i.support.hasWarning)&&(n+='\n  <div class="alert alert-warning">\n    ',i.component.storage||(n+="\n      <p>"+(null==(e=i.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":e)+"</p>\n    "),n+="\n    ",i.support.filereader||(n+="\n      <p>"+(null==(e=i.t("File API & FileReader API not supported."))?"":e)+"</p>\n    "),n+="\n    ",i.support.formdata||(n+="\n      <p>"+(null==(e=i.t("XHR2's FormData is not supported."))?"":e)+"</p>\n    "),n+="\n    ",i.support.progress||(n+="\n      <p>"+(null==(e=i.t("XHR2's upload progress isn't supported."))?"":e)+"</p>\n    "),n+="\n  </div>\n"),n+="\n"}},47274:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(8128));y.default={form:e.default}},66775:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+="<"+(null==(e=i.tag)?"":e)+' class="formio-component-htmlelement '+(null==(e=i.component.className)?"":e)+'" ref="html"\n  ',i.attrs.forEach(function(l){n+="\n    "+(null==(e=l.attr)?"":e)+'="'+(null==(e=l.value)?"":e)+'"\n  '}),n+="\n>"+(null==(e=i.t(i.content))?"":e),(!i.singleTags||-1===i.singleTags.indexOf(i.tag))&&(n+="</"+(null==(e=i.tag)?"":e)+">"),n+="\n"}},28005:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(66775));y.default={form:e.default}},39850:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(34338),y.default=function(o,a,l){if("fa"===o)switch(a){case"save":a="download";break;case"zoom-in":a="search-plus";break;case"zoom-out":a="search-minus";break;case"question-sign":a="question-circle";break;case"remove-circle":a="times-circle-o";break;case"new-window":a="window-restore";break;case"move":a="arrows";break;case"time":a="clock-o"}return l?"".concat(o," ").concat(o,"-").concat(a," ").concat(o,"-spin"):"".concat(o," ").concat(o,"-").concat(a)}},30151:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<i ref="'+(null==(e=i.ref)?"":e)+'" class="'+(null==(e=i.className)?"":e)+'" style="'+(null==(e=i.styles)?"":e)+'">'+(null==(e=i.content)?"":e)+"</i>\n"}},71211:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(30151));y.default={form:e.default}},32844:(he,y,i)=>{"use strict";i(40739),i(69358),i(38077),i(81919),i(49693),i(47522),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(30024),i(60228),i(63945),i(69373),i(59903),i(59749),i(86544),i(79288);var e=nn(i(53405)),n=nn(i(6034)),o=nn(i(4158)),a=nn(i(2250)),l=nn(i(4690)),u=nn(i(72537)),d=nn(i(92011)),s=nn(i(86684)),A=nn(i(86560)),_=nn(i(16913)),C=nn(i(96661)),R=nn(i(10219)),x=nn(i(66646)),f=nn(i(29627)),k=nn(i(69341)),w=nn(i(48021)),g=nn(i(84383)),M=nn(i(66064)),p=nn(i(86398)),E=nn(i(65557)),b=nn(i(43252)),I=nn(i(46885)),L=nn(i(5506)),D=nn(i(17032)),F=nn(i(47274)),P=nn(i(28005)),O=nn(i(71211)),U=nn(i(39850)),V=nn(i(99003)),K=nn(i(62677)),X=nn(i(43086)),me=nn(i(29190)),J=nn(i(80745)),Q=nn(i(53866)),re=nn(i(3693)),de=nn(i(71210)),te=nn(i(68098)),j=nn(i(2850)),H=nn(i(41487)),z=nn(i(11756)),q=nn(i(99755)),se=nn(i(51805)),ne=nn(i(51557)),_e=nn(i(89520)),ge=nn(i(81689)),Ce=nn(i(55735)),Te=nn(i(8660)),De=nn(i(98703)),fe=nn(i(19477)),xe=nn(i(19494)),Oe=nn(i(94829)),Le=nn(i(49203)),Gt=nn(i(29204)),Ut=nn(i(36216)),An=nn(i(76867)),$n=nn(i(19277)),xn=nn(i(54852)),mt=nn(i(62507)),ut=nn(i(65350)),Wt=nn(i(31274)),dn=nn(i(28231)),sn=nn(i(2718)),fn=nn(i(35996)),yi=nn(i(93346));function nn(Ji){return Ji&&Ji.__esModule?Ji:{default:Ji}}function Mi(Ji){return(Mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(En){return typeof En}:function(En){return En&&"function"==typeof Symbol&&En.constructor===Symbol&&En!==Symbol.prototype?"symbol":typeof En})(Ji)}function mi(Ji,En){var un=Object.keys(Ji);if(Object.getOwnPropertySymbols){var Ki=Object.getOwnPropertySymbols(Ji);En&&(Ki=Ki.filter(function(Fn){return Object.getOwnPropertyDescriptor(Ji,Fn).enumerable})),un.push.apply(un,Ki)}return un}function Eo(Ji){for(var En=1;En<arguments.length;En++){var un=null!=arguments[En]?arguments[En]:{};En%2?mi(Object(un),!0).forEach(function(Ki){Ko(Ji,Ki,un[Ki])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ji,Object.getOwnPropertyDescriptors(un)):mi(Object(un)).forEach(function(Ki){Object.defineProperty(Ji,Ki,Object.getOwnPropertyDescriptor(un,Ki))})}return Ji}function Ko(Ji,En,un){return En=function xo(Ji){var En=function Bn(Ji,En){if("object"!==Mi(Ji)||null===Ji)return Ji;var un=Ji[Symbol.toPrimitive];if(void 0!==un){var Ki=un.call(Ji,En||"default");if("object"!==Mi(Ki))return Ki;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===En?String:Number)(Ji)}(Ji,"string");return"symbol"===Mi(En)?En:String(En)}(En),En in Ji?Object.defineProperty(Ji,En,{value:un,enumerable:!0,configurable:!0,writable:!0}):Ji[En]=un,Ji}var Xt=Eo(Eo({transform:function(En,un){return un&&"class"===En&&this.cssClasses.hasOwnProperty(un.toString())?this.cssClasses[un.toString()]:un},defaultIconset:"fa",iconClass:U.default,cssClasses:sn.default,address:e.default,builder:n.default,builderComponent:o.default,builderComponents:a.default,builderEditForm:l.default,builderPlaceholder:u.default,builderSidebar:d.default,builderSidebarGroup:s.default,builderWizard:A.default,button:_.default,checkbox:C.default,columns:R.default,component:x.default,componentModal:f.default,components:k.default,tableComponents:w.default,container:g.default,datagrid:M.default,day:p.default,dialog:E.default,editgrid:b.default,editgridTable:I.default,field:L.default,fieldset:D.default,file:F.default,html:P.default,icon:O.default,input:V.default,label:K.default,loader:X.default,loading:me.default,map:J.default,message:Q.default,modaledit:de.default,modaldialog:re.default,modalPreview:te.default,multipleMasksInput:j.default,multiValueRow:H.default,multiValueTable:z.default,panel:q.default,pdf:se.default,pdfBuilder:ne.default,pdfBuilderUpload:_e.default,radio:ge.default,resourceAdd:Ce.default,select:Te.default,selectOption:De.default,signature:fe.default,survey:xe.default,tab:Oe.default,table:Le.default,tree:Gt.default},Ut.default),{},{webform:An.default,well:$n.default,wizard:xn.default,wizardHeader:mt.default,wizardHeaderClassic:ut.default,wizardHeaderVertical:Wt.default,wizardNav:dn.default,errorsList:fn.default,alert:yi.default});y.default=Xt},90655:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";if((i.prefix||i.suffix)&&(n+='\n<div class="input-group">\n  '),n+="\n  ",i.prefix&&(n+='\n    <div class="input-group-prepend" ref="prefix">\n      <span class="input-group-text">\n        ',i.prefix instanceof HTMLElement?n+="\n          "+(null==(e=i.t(i.prefix.outerHTML,{_userInput:!0}))?"":e)+"\n        ":n+="\n          "+(null==(e=i.t(i.prefix,{_userInput:!0}))?"":e)+"\n        ",n+="\n      </span>\n    </div>\n  "),n+="\n  ",!i.component.editor&&!i.component.wysiwyg){for(var l in n+="\n    <"+(null==(e=i.input.type)?"":e)+'\n      ref="'+(null==(e=i.input.ref?i.input.ref:"input")?"":e)+'"\n      ',i.input.attr)n+="\n        "+(null==(e=l)?"":e)+'="'+(null==(e=i.input.attr[l])?"":e)+'"\n      ';n+='\n      id="'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n      aria-labelledby="l-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+" ",i.component.description&&(n+="d-"+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)),n+='"\n      aria-required="'+(null==(e="input"!==i.input.ref&&i.input.ref?i.component.fields&&i.component.fields[i.input.ref]&&i.component.fields[i.input.ref].required||!1:i.component.validate.required)?"":e)+'"\n    >'+(null==(e=i.input.content)?"":e)+"</"+(null==(e=i.input.type)?"":e)+">\n    ",i.hasValueMaskInput&&(n+='\n      <input ref="valueMaskInput" />\n    '),n+="\n"}return n+="\n",(i.component.editor||i.component.wysiwyg)&&(n+='\n  <div ref="input"></div>\n'),n+="\n","datetime"===i.component.type&&(n+='\n<span aria-live="assertive" id="'+(null==(e=i.instance.id)?"":e)+'-liveRegion" class="sr-only" ref="liveRegion"></span>\n'),n+="\n",i.suffix&&(n+='\n  <div class="input-group-append" ref="suffix">\n    <span class="input-group-text">\n      ',i.suffix instanceof HTMLElement?n+="\n        "+(null==(e=i.t(i.suffix.outerHTML,{_userInput:!0}))?"":e)+"\n      ":n+="\n        "+(null==(e=i.t(i.suffix,{_userInput:!0}))?"":e)+"\n      ",n+="\n    </span>\n  </div>\n"),n+="\n",(i.prefix||i.suffix)&&(n+="\n  </div>\n"),n+="\n",(i.component.showCharCount||i.component.showWordCount)&&(n+='\n<div class="form-text '+(null==(e=i.component.description?"pull-right":"text-right")?"":e)+'">\n  ',i.component.showCharCount&&(n+='\n  <span class="text-muted" ref="charcount" aria-live="polite"></span>\n  '),n+="\n  ",i.component.showWordCount&&(n+='\n  <span class="text-muted" ref="wordcount" aria-live="polite"></span>\n  '),n+="\n</div>\n"),n+"\n"}},12371:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div ref="value">',(n+=i.value?null==(e=i.value)?"":e:"-")+"</div>\n"}},99003:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(90655)),n=o(i(12371));function o(l){return l&&l.__esModule?l:{default:l}}y.default={form:e.default,html:n.default}},60074:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<label\n  ref="label"\n  class="col-form-label '+(null==(e=i.label.className)?"":e)+'"\n  for="'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n  id="l-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n>\n  '+(null==(e=i.t(i.component.label,{_userInput:!0}))?"":e)+"\n  ",("number"===i.component.type||"phoneNumber"===i.component.type||"currency"===i.component.type)&&(n+='\n    <span class="sr-only">, '+(null==(e=i.t("numeric only"))?"":e)+",</span>\n  "),n+="\n  ",i.component.tooltip&&(n+='\n    <i ref="tooltip" tabindex="0" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=i.component.tooltip)?"":e)+'"></i>\n  '),n+"\n</label>\n"}},62677:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(60074));y.default={form:e.default}},15390:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){return'<div class="formio-loader">\n  <div class="loader-wrapper">\n    <div class="loader text-center"></div>\n  </div> \n</div>\n'}},43086:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(15390));y.default={form:e.default}},46855:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){return"Loading...\n"}},29190:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(46855));y.default={form:e.default}},76511:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div id="'+(null==(e=i.mapId)?"":e)+'" style="min-height: 300px; height: calc(100vh - 600px);" ref="gmapElement"></div>\n'}},80745:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(76511));y.default={form:e.default}},35733:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div id="e-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.key)?"":e)+'" class="form-text '+(null==(e=i.level||"error")?"":e)+'">'+(null==(e=i.message)?"":e)+"</div>\n"}},53866:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(35733));y.default={form:e.default}},29179:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<label id="l-'+(null==(e=i.component.key)?"":e)+'" class="control-label '+(null==(e=i.label.className)?"":e)+'">\n  '+(null==(e=i.t(i.component.label,{_userInput:!0}))?"":e)+'<span ref="modalLabelValue" class="sr-only">. '+(null==(e="signature"===i.component.type?i.self.getValueAsString(i.previewText):i.previewText)?"":e)+'</span>\n</label><br>\n<span class="sr-only" ref="modalPreviewLiveRegion" aria-live="assertive"></span>\n<button\n  lang="en"\n  class="btn btn-light btn-md open-modal-button form-control '+(null==(e=i.openModalBtnClasses||"")?"":e)+'"\n  ref="openModal"\n  aria-labelledby="l-'+(null==(e=i.component.key)?"":e)+'"\n>\n  '+(null==(e=i.previewText)?"":e)+'\n</button>\n<div class="formio-errors invalid-feedback">\n  '+(null==(e=i.messages)?"":e)+"\n</div>\n"}},68098:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(29179));y.default={form:e.default}},89610:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="formio-dialog formio-dialog-theme-default formio-modaledit-dialog">\n  <div ref="overlay" class="formio-dialog-overlay"></div>\n  <div ref="content" class="formio-modaledit-content">\n    <button\n      ref="close"\n      type="button"\n      role="button"\n      class="btn btn-primary btn-xs formio-modaledit-close">\n      '+(null==(e=i.t("Close"))?"":e)+'\n    </button>\n    <div ref="inner" class="reset-margins"></div>\n  </div>\n</div>\n'}},3693:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(89610));y.default={form:e.default}},82718:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div ref="container" class="formio-modaledit-view-container">\n  <button\n    ref="edit"\n    type="button"\n    role="button"\n    class="btn btn-xxs btn-warning formio-modaledit-edit">\n    <i class="'+(null==(e=i.iconClass("edit"))?"":e)+'"></i>\n  </button>\n  <div ref="input" class="modaledit-view-inner reset-margins">'+(null==(e=i.content)?"":e)+"</div>\n</div>\n"}},71210:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(82718));y.default={form:e.default}},88521:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<tr ref="row">\n  <td>\n    '+(null==(e=i.element)?"":e)+"\n  </td>\n  ",i.disabled||(n+='\n  <td>\n    <button type="button" class="btn btn-secondary" ref="removeRow">\n      <i class="'+(null==(e=i.iconClass("remove-circle"))?"":e)+'"></i>\n    </button>\n  </td>\n  '),n+"\n</tr>\n"}},41487:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(88521));y.default={form:e.default}},91246:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<table class="table table-bordered">\n  <tbody>\n  '+(null==(e=i.rows)?"":e)+"\n  ",i.disabled||(n+='\n  <tr>\n    <td colspan="2">\n      <button class="btn btn-primary formio-button-add-another" ref="addButton"><i class="'+(null==(e=i.iconClass("plus"))?"":e)+'"></i> '+(null==(e=i.t(i.addAnother,{_userInput:!0}))?"":e)+"</button>\n    </td>\n  </tr>\n  "),n+"\n  </tbody>\n</table>\n"}},11756:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(91246));y.default={form:e.default}},79812:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";for(var l in n+='<div\n  class="input-group formio-multiple-mask-container"\n  ref="'+(null==(e=i.input.ref?i.input.ref:"input")?"":e)+'"\n>\n  <select\n    class="form-control formio-multiple-mask-select"\n    id="'+(null==(e=i.key)?"":e)+'-mask"\n    ref="select"\n    ',i.input.attr.disabled&&(n+="disabled"),n+=">\n    ",i.selectOptions.forEach(function(u){n+='\n    <option value="'+(null==(e=u.value)?"":e)+'">'+(null==(e=u.label)?"":e)+"</option>\n    "}),n+='\n  </select>\n  <input\n    ref="mask"\n    ',i.input.attr)n+="\n    "+(null==(e=l)?"":e)+'="'+(null==(e=i.input.attr[l])?"":e)+'"\n    ';return n+="\n  >\n</div>\n"}},2850:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(79812));y.default={form:e.default}},32871:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="mb-2 card border">\n  ',(!i.component.hideLabel||i.builder||i.component.collapsible||i.component.tooltip)&&(n+='\n  <div class="card-header '+(null==(e=i.transform("class","bg-"+i.component.theme))?"":e)+'"\n    ',i.component.collapsible&&(n+='\n    tabindex="0"\n    '),n+='\n    role="button"\n    aria-expanded="'+(null==(e=!i.component.collapsible||!i.collapsed)?"":e)+'"\n    aria-controls="'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n    ref="header"\n  >\n    <span class="mb-0 card-title ',i.component.theme&&"default"!==i.component.theme&&(n+="text-light"),n+='">\n      ',i.component.collapsible&&(n+='\n        <i class="formio-collapse-icon '+(null==(e=i.iconClass(i.collapsed?"plus-square-o":"minus-square-o"))?"":e)+' text-muted" data-title="Collapse Panel"></i>\n      '),n+="\n      ",(!i.component.hideLabel||i.builder)&&(n+="\n      "+(null==(e=i.t(i.component.title,{_userInput:!0}))?"":e)+"\n      "),n+="\n      ",i.component.tooltip&&(n+='\n        <i ref="tooltip" tabindex="0" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=i.component.tooltip)?"":e)+'"></i>\n      '),n+="\n    </span>\n  </div>\n  "),n+="\n  ",(!i.collapsed||i.builder)&&(n+='\n  <div class="card-body" ref="'+(null==(e=i.nestedKey)?"":e)+'" id="'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'">\n    '+(null==(e=i.children)?"":e)+"\n  </div>\n  "),n+"\n</div>\n"}},99755:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(32871));y.default={form:e.default}},36417:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="pdf-upload formio-component-file">\n  <h3 class="label">'+(null==(e=i.t("Upload a PDF File"))?"":e)+'</h3>\n  <input type="file" style="opacity: 0; position: absolute;" tabindex="-1" accept=".pdf" ref="hiddenFileInputElement">\n  <div class="fileSelector" ref="fileDrop">\n    <span ref="dragDropText">\n      <i class="'+(null==(e=i.iconClass("cloud-upload"))?"":e)+'"></i>'+(null==(e=i.t("Drop pdf to start, or"))?"":e)+' <a href="#" ref="fileBrowse" class="browse">'+(null==(e=i.t("browse"))?"":e)+'</a>\n    </span>\n    <div class="progress pdf-progress" ref="uploadProgressWrapper" style="display:none;">\n      <div class="progress-bar" ref="uploadProgress" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>\n    </div>\n  </div>\n  <div class="alert alert-danger" ref="uploadError">\n\n  </div>\n</div>\n\n'}},89520:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(36417));y.default={form:e.default}},44673:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="formio builder row formbuilder">\n  <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n    '+(null==(e=i.sidebar)?"":e)+'\n  </div>\n  <div class="col-xs-8 col-sm-9 col-md-10 formarea" ref="form">\n\t  <div class="formio-drop-zone" ref="iframeDropzone"></div>\n    '+(null==(e=i.form)?"":e)+"\n  </div>\n</div>\n"}},51557:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(44673));y.default={form:e.default}},3366:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="'+(null==(e=i.classes)?"":e)+'" ref="webform">\n\t<span data-noattach="true" ref="zoomIn" style="position:absolute;right:10px;top:10px;cursor:pointer;" class="btn btn-default btn-secondary no-disable">\n\t\t<i class="'+(null==(e=i.iconClass("zoom-in"))?"":e)+'"></i>\n\t</span>\n\t<span data-noattach="true" ref="zoomOut" style="position:absolute;right:10px;top:60px;cursor:pointer;" class="btn btn-default btn-secondary no-disable">\n\t\t<i class="'+(null==(e=i.iconClass("zoom-out"))?"":e)+'"></i>\n\t</span>\n  <div data-noattach="true" ref="iframeContainer"></div>\n  '+(null==(e=i.submitButton)?"":e)+"\n</div>\n"}},51805:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(3366));y.default={form:e.default}},6067:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div\n  class="form-radio radio"\n  ref="radioGroup"\n  role="'+(null==(e="selectboxes"===i.component.type?"group":"radiogroup")?"":e)+'"\n  aria-required="'+(null==(e=i.input.component.validate.required)?"":e)+'"\n  aria-labelledby="l-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n  ',i.component.description&&(n+='\n    aria-describedby="d-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n  '),n+="\n>\n  ",i.values.forEach(function(l,u){for(var d in n+='\n  <div class="'+(null==(e=i.input.attr.type)?"":e)+" "+(null==(e=i.component.optionsLabelPosition&&"right"!==i.component.optionsLabelPosition?"pl-0":"")?"":e)+" form-check"+(null==(e=i.inline?"-inline":"")?"":e)+'" ref="wrapper">\n    <label class="form-check-label label-position-'+(null==(e=i.component.optionsLabelPosition)?"":e)+'" for="'+(null==(e=i.instance.root&&i.instance.root.id)?"":e)+"-"+(null==(e=i.id)?"":e)+"-"+(null==(e=i.row)?"":e)+"-"+(null==(e="object"==typeof l.value?l.value+"-"+u:l.value)?"":e)+'">\n      ',("left"===i.component.optionsLabelPosition||"top"===i.component.optionsLabelPosition)&&(n+="\n      <span>"+(null==(e=i.t(l.label,{_userInput:!0}))?"":e)+"</span>\n      "),n+="\n      <"+(null==(e=i.input.type)?"":e)+'\n        ref="input"\n        ',i.input.attr)n+="\n        "+(null==(e=d)?"":e)+'="'+(null==(e=i.input.attr[d])?"":e)+'"\n        ';n+='\n        value="'+(null==(e=l.value)?"":e)+'"\n        ',i.value&&(i.value===l.value||"object"==typeof i.value&&i.value.hasOwnProperty(l.value)&&i.value[l.value])&&(n+="\n          checked=true\n        "),n+="\n        ",l.disabled&&(n+="\n          disabled=true\n        "),n+='\n        id="'+(null==(e=i.instance.root&&i.instance.root.id)?"":e)+"-"+(null==(e=i.id)?"":e)+"-"+(null==(e=i.row)?"":e)+"-"+(null==(e="object"==typeof l.value?l.value+"-"+u:l.value)?"":e)+'"\n        role="'+(null==(e="selectboxes"===i.component.type?"checkbox":"radio")?"":e)+'"\n      >\n      ',(!i.component.optionsLabelPosition||"right"===i.component.optionsLabelPosition||"bottom"===i.component.optionsLabelPosition)&&(n+="\n      <span>"+(null==(e=i.t(l.label,{_userInput:!0}))?"":e)+"</span>\n      "),n+="\n    </label>\n  </div>\n  "}),n+="\n</div>\n"}},92419:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return(n+='<div ref="value">\n  ')+"\n  "+(null==(e=i.values.filter(function(u){return i.value===u.value||"object"==typeof i.value&&i.value.hasOwnProperty(u.value)&&i.value[u.value]}).map(function(u){return i.t(u.label,{_userInput:!0})}).join(", "))?"":e)+"\n  </div>\n"}},81689:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(6067)),n=o(i(92419));function o(l){return l&&l.__esModule?l:{default:l}}y.default={form:e.default,html:n.default}},10169:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<table class="table table-bordered">\n  <tbody>\n    <tr>\n      <td>\n        '+(null==(e=i.element)?"":e)+'\n      </td>\n    </tr>\n    <tr>\n      <td colspan="2">\n        <button class="btn btn-primary formio-button-add-resource" ref="addResource">\n          <i class="'+(null==(e=i.iconClass("plus"))?"":e)+'"></i>\n          '+(null==(e=i.t(i.component.addResourceLabel||"Add Resource",{_userInput:!0}))?"":e)+"\n        </button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n"}},55735:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(10169));y.default={form:e.default}},47992:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";for(var l in n+="<option "+(null==(e=i.selected?'selected="selected"':"")?"":e)+"\n  value='"+(null==(e=i.useId?i.id:i.option.value)?"":e)+"'\n  ",i.attrs)n+="\n  "+(null==(e=l)?"":e)+'="'+(null==(e=i.attrs[l])?"":e)+'"\n  ';return n+"\n  >\n  "+(null==(e=i.t(i.option.label,{_userInput:!0}))?"":e)+"\n</option>\n"}},10418:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return i.selected&&(n+=null==(e=i.t(i.option.label,{_userInput:!0}))?"":e),n+"\n"}},98703:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(47992)),n=o(i(10418));function o(l){return l&&l.__esModule?l:{default:l}}y.default={form:e.default,html:n.default}},80576:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";for(var l in n+='<select\n  ref="'+(null==(e=i.input.ref?i.input.ref:"selectContainer")?"":e)+'"\n  '+(null==(e=i.input.multiple?"multiple":"")?"":e)+"\n  ",i.input.attr)n+="\n  "+(null==(e=l)?"":e)+'="'+(null==(e=i.input.attr[l])?"":e)+'"\n  ';return n+="\n  ",i.input.attr.id||(n+='\n  id="'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n  '),n+="\n  ",i.component.description&&(n+='\n  aria-describedby="d-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'"\n  '),n+='\n  aria-required="'+(null==(e="selectContainer"!==i.input.ref&&i.input.ref?i.component.fields[i.input.ref].required:i.input.component.validate.required)?"":e)+'"\n>'+(null==(e=i.selectOptions)?"":e)+'</select>\n<input type="text"\n       class="formio-select-autocomplete-input"\n       ref="autocompleteInput"\n       ',i.input.attr.autocomplete&&(n+='\n       autocomplete="'+(null==(e=i.input.attr.autocomplete)?"":e)+'"\n       '),n+'\n       tabindex="-1"\n       aria-label="'+(null==(e=i.t("autocomplete"))?"":e)+'"\n/>\n'}},3072:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div ref="value">',(n+=i.value?null==(e=i.self.itemValueForHTMLMode(i.value))?"":e:"-")+"</div>\n"}},8660:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(80576)),n=o(i(3072));function o(l){return l&&l.__esModule?l:{default:l}}y.default={form:e.default,html:n.default}},93590:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+=(null==(e=i.element)?"":e)+'\n<div\n  class="signature-pad-body"\n  style="width: '+(null==(e=i.component.width)?"":e)+";height: "+(null==(e=i.component.height)?"":e)+';padding:0;margin:0;"\n  tabindex="'+(null==(e=i.component.tabindex||0)?"":e)+'"\n  ref="padBody"\n>\n  <a class="btn btn-sm btn-light signature-pad-refresh" ref="refresh">\n    <i class="'+(null==(e=i.iconClass("refresh"))?"":e)+'"></i>\n  </a>\n  <canvas class="signature-pad-canvas" style="display: none;" height="'+(null==(e=i.component.height)?"":e)+'" ref="canvas"></canvas>\n  ',i.required&&(n+='\n  <span class="form-control-feedback text-danger">\n    <i class="'+(null==(e=i.iconClass("asterisk"))?"":e)+'"></i>\n  </span>\n  '),n+='\n  <img style="width: 100%;display: inherit;" ref="signatureImage">\n</div>\n',i.component.footer&&(n+='\n  <div class="signature-pad-footer">\n    '+(null==(e=i.t(i.component.footer,{_userInput:!0}))?"":e)+"\n  </div>\n"),n+"\n"}},58292:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){return'<img style="width: 100%;" ref="signatureImage">\n'}},19477:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(93590)),n=o(i(58292));function o(l){return l&&l.__esModule?l:{default:l}}y.default={form:e.default,html:n.default}},1078:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<table class="table table-striped table-bordered" aria-labelledby="l-'+(null==(e=i.instance.id)?"":e)+"-"+(null==(e=i.component.key)?"":e)+'">\n  <thead>\n    <tr>\n      <th></th>\n      ',i.component.values.forEach(function(l){n+='\n      <th style="text-align: center;">\n        '+(null==(e=i.t(l.label,{_userInput:!0}))?"":e)+"\n        ",l.tooltip&&(n+='\n          <i ref="tooltip" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=l.tooltip)?"":e)+'"></i>\n        '),n+="\n      </th>\n      "}),n+="\n    </tr>\n  </thead>\n  <tbody>\n    ",i.component.questions.forEach(function(l){n+="\n    <tr>\n      <td>\n        "+(null==(e=i.t(l.label))?"":e)+"\n        ",l.tooltip&&(n+='\n          <i ref="tooltip" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=l.tooltip)?"":e)+'"></i>\n        '),n+="\n      </td>\n      ",i.component.values.forEach(function(u){n+='\n      <td style="text-align: center;">\n        <input type="radio" name="'+(null==(e=i.self.getInputName(l))?"":e)+'" value="'+(null==(e=u.value)?"":e)+'" id="'+(null==(e=i.key)?"":e)+"-"+(null==(e=l.value)?"":e)+"-"+(null==(e=u.value)?"":e)+'" ref="input">\n      </td>\n      '}),n+="\n    </tr>\n    "}),n+="\n  </tbody>\n</table>\n"}},96948:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<table class="table table-striped table-bordered">\n  <tbody>\n    ',i.component.questions.forEach(function(l){n+="\n    <tr>\n      <th>"+(null==(e=i.t(l.label))?"":e)+"</th>\n      <td>\n      ",i.component.values.forEach(function(u){n+="\n        ",i.value&&i.value.hasOwnProperty(l.value)&&i.value[l.value]===u.value&&(n+="\n          "+(null==(e=i.t(u.label))?"":e)+"\n        "),n+="\n      "}),n+="\n      </td>\n    </tr>\n    "}),n+="\n  </tbody>\n</table>\n"}},19494:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(1078)),n=o(i(96948));function o(l){return l&&l.__esModule?l:{default:l}}y.default={form:e.default,html:n.default}},24459:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return i.component.components.forEach(function(l,u){n+='\n  <div class="mb-2 card border">\n    <div class="card-header bg-default">\n      <h4 class="mb-0 card-title">'+(null==(e=i.t(l.label,{_userInput:!0}))?"":e)+'</h4>\n    </div>\n    <div\n      class="card-body"\n      ref="'+(null==(e=i.tabKey)?"":e)+'"\n    >\n      '+(null==(e=i.tabComponents[u])?"":e)+"\n    </div>\n  </div>\n"}),n+="\n"}},34457:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="card'+(null==(e=i.component.verticalLayout?" card-vertical":"")?"":e)+'">\n  <div class="card-header">\n    <ul class="nav nav-tabs card-header-tabs'+(null==(e=i.component.verticalLayout?" nav-tabs-vertical":"")?"":e)+'" role="tablist">\n      ',i.component.components.forEach(function(l,u){n+='\n      <li class="nav-item'+(null==(e=i.currentTab===u?" active":"")?"":e)+'" role="tab" ref="'+(null==(e=i.tabLikey)?"":e)+'">\n        <a\n                class="nav-link'+(null==(e=i.currentTab===u?" active":"")?"":e)+(null==(e=i.component.verticalLayout?" nav-link-vertical":"")?"":e)+'"\n                href="#'+(null==(e=l.key)?"":e)+'"\n                ref="'+(null==(e=i.tabLinkKey)?"":e)+'"\n        >\n          '+(null==(e=i.t(l.label,{_userInput:!0}))?"":e)+"\n        </a>\n      </li>\n      "}),n+="\n    </ul>\n  </div>\n  ",i.component.components.forEach(function(l,u){n+='\n  <div\n    role="tabpanel"\n    class="card-body tab-pane'+(null==(e=i.currentTab===u?" active":"")?"":e)+'"\n    style="display: '+(null==(e=i.currentTab===u?"block":"none")?"":e)+'"\n    ref="'+(null==(e=i.tabKey)?"":e)+'"\n  >\n    '+(null==(e=i.tabComponents[u])?"":e)+"\n  </div>\n  "}),n+="\n</div>\n"}},94829:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(24459)),n=o(i(34457));function o(l){return l&&l.__esModule?l:{default:l}}y.default={flat:e.default,form:n.default}},1974:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return i.children.forEach(function(l){n+='\n  <td class="editgrid-table-column">\n    '+(null==(e=l)?"":e)+"\n  </td>\n"}),n+="\n"}},48021:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(1974));y.default={form:e.default}},19070:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<table class="table\n    '+(null==(e=i.component.striped?"table-striped":"")?"":e)+"\n    "+(null==(e=i.component.bordered?"table-bordered":"")?"":e)+"\n    "+(null==(e=i.component.hover?"table-hover":"")?"":e)+"\n    "+(null==(e=i.component.condensed?"table-sm":"")?"":e)+'\n  ">\n  <caption class="sr-only">'+(null==(e=i.t(i.component.label))?"":e)+"</caption>\n  ",i.component.header&&i.component.header.length>0&&(n+="\n  <thead>\n    <tr>\n      ",i.component.header.forEach(function(l){n+="\n      <th>"+(null==(e=i.t(l))?"":e)+"</th>\n      "}),n+="\n    </tr>\n  </thead>\n  "),n+="\n  <tbody>\n    ",i.tableComponents.forEach(function(l,u){n+='\n    <tr ref="row-'+(null==(e=i.id)?"":e)+'">\n      ',l.forEach(function(d,s){n+='\n      <td ref="'+(null==(e=i.tableKey)?"":e)+"-"+(null==(e=u)?"":e)+'"',i.cellClassName&&(n+=' class="'+(null==(e=i.cellClassName)?"":e)+'"'),n+=">"+(null==(e=d)?"":e)+"</td>\n      "}),n+="\n    </tr>\n    "}),n+="\n  </tbody>\n</table>\n"}},49203:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(19070));y.default={form:e.default}},80315:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+=i.node.isRoot?'\n  <div ref="root" class="list-group-item">\n':'\n  <li ref="node" class="list-group-item col-sm-12 tree__level tree__level_'+(null==(e=i.odd?"odd":"even")?"":e)+'">\n',n+="\n  ",i.content&&(n+='\n    <div ref="content" class="tree__node-content">\n      '+(null==(e=i.content)?"":e)+"\n    </div>\n  "),n+="\n  ",i.childNodes&&i.childNodes.length&&(n+='\n    <ul ref="childNodes" class="tree__node-children list-group row">\n      '+(null==(e=i.childNodes.join(""))?"":e)+"\n    </ul>\n  "),n+="\n",(n+=i.node.isRoot?"\n  </div>\n":"\n  </li>\n")+"\n"}},29204:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(80315));y.default={form:e.default}},2983:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="node-edit">\n  <div ref="nodeEdit">'+(null==(e=i.children)?"":e)+"</div>\n  ",i.readOnly||(n+='\n    <div class="node-actions">\n      <button ref="saveNode" class="btn btn-primary saveNode">'+(null==(e=i.t("Save"))?"":e)+'</button>\n      <button ref="cancelNode" class="btn btn-danger cancelNode">'+(null==(e=i.t("Cancel"))?"":e)+"</button>\n    </div>\n  "),n+"\n</div>\n"}},36216:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(2983)),n=o(i(50412));function o(l){return l&&l.__esModule?l:{default:l}}y.default={treeView:{form:n.default},treeEdit:{form:e.default}}},50412:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="row">\n  ',i.values.forEach(function(l){n+='\n    <div class="col-sm-2">\n      '+(null==(e=l)?"":e)+"\n    </div>\n  "}),n+='\n  <div class="col-sm-3">\n    <div class="btn-group pull-right">\n      ',i.node.hasChildren&&(n+='\n        <button ref="toggleNode" class="btn btn-default btn-sm toggleNode">'+(null==(e=i.t(i.node.collapsed?"Expand":"Collapse"))?"":e)+"</button>\n      "),n+="\n      ",i.readOnly||(n+='\n        <button ref="addChild" class="btn btn-default btn-sm addChild">'+(null==(e=i.t("Add"))?"":e)+'</button>\n        <button ref="editNode" class="btn btn-default btn-sm editNode">'+(null==(e=i.t("Edit"))?"":e)+'</button>\n        <button ref="removeNode" class="btn btn-danger btn-sm removeNode">'+(null==(e=i.t("Delete"))?"":e)+"</button>\n        ",i.node.revertAvailable&&(n+='\n          <button ref="revertNode" class="btn btn-danger btn-sm revertNode">'+(null==(e=i.t("Revert"))?"":e)+"</button>\n        "),n+="\n      "),n+="\n    </div>\n  </div>\n</div>\n"}},65902:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="text-muted text-center p-2">'+(null==(e=i.t(i.component.title,{_userInput:!0}))?"":e)+"</div>\n"}},62822:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="'+(null==(e=i.classes)?"":e)+'" ref="webform" novalidate>'+(null==(e=i.children)?"":e)+"</div>\n"}},76867:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(62822)),n=o(i(65902));function o(l){return l&&l.__esModule?l:{default:l}}y.default={form:e.default,builder:n.default}},47242:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="card card-body bg-light mb-3">\n  <div ref="'+(null==(e=i.nestedKey)?"":e)+'">\n    '+(null==(e=i.children)?"":e)+"\n  </div>\n</div>\n"}},19277:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(47242));y.default={form:e.default}},35835:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<nav aria-label="navigation" id="'+(null==(e=i.wizardKey)?"":e)+'-header">\n  <div class="classic-pagination row justify-content-center" style="border-bottom:0;">\n    ',i.panels.forEach(function(l,u){n+='\n      <div class="classic-pagination-page col-xs-12 col-sm-6 col-md-3\n          '+(null==(e=i.currentPage<u?" disabled":"")?"":e)+"\n          "+(null==(e=i.currentPage===u?" active":"")?"":e)+"\n          "+(null==(e=i.currentPage>u?" complete":"")?"":e)+'">\n        <div class="text-center classic-pagination-title">'+(null==(e=i.t(l.title,{_userInput:!0}))?"":e)+"</div>\n        ",i.panels.length>1&&(n+='\n          <div class="progress"><div class="progress-bar"></div></div>\n        '),n+=' \n        <span ref="'+(null==(e=i.wizardKey)?"":e)+'-link" class="classic-pagination-dot"></span>\n      </div>\n    '}),n+="\n  </div>\n</nav>\n"}},65350:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(35835));y.default={form:e.default}},82711:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<nav aria-label="navigation" id="'+(null==(e=i.wizardKey)?"":e)+'-header">\n  <ul class="pagination flex-column">\n    ',i.panels.forEach(function(l,u){n+='\n    <li class="col-xs-12 page-item'+(null==(e=i.currentPage===u?" active":"")?"":e)+'" style="cursor: pointer;">\n      <span class="page-link" ref="'+(null==(e=i.wizardKey)?"":e)+'-link" style="margin-left: 0px;">\n        '+(null==(e=i.t(l.title,{_userInput:!0}))?"":e)+"\n        ",l.tooltip&&i.currentPage===u&&(n+='\n        <i ref="'+(null==(e=i.wizardKey)?"":e)+'-tooltip" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=l.tooltip)?"":e)+'"></i>\n        '),n+="\n      </span>\n    </li>\n    "}),n+="\n  </ul>\n</nav>\n"}},31274:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(82711));y.default={form:e.default}},35768:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<nav aria-label="Wizard navigation" id="'+(null==(e=i.wizardKey)?"":e)+'-header" ref="'+(null==(e=i.wizardKey)?"":e)+'-header">\n  <ul class="pagination" role="tablist">\n    ',i.panels.forEach(function(l,u){n+='\n    <li class="page-item'+(null==(e=i.currentPage===u?" active":"")?"":e)+'" style="cursor: pointer;">\n      <button tabindex="0" data-index="'+(null==(e=u)?"":e)+'" role="tab" class="page-link" ref="'+(null==(e=i.wizardKey)?"":e)+'-link">\n        '+(null==(e=i.t(l.title,{_userInput:!0}))?"":e)+"\n        ",l.tooltip&&i.currentPage===u&&(n+='\n        <i ref="'+(null==(e=i.wizardKey)?"":e)+'-tooltip" class="'+(null==(e=i.iconClass("question-sign"))?"":e)+' text-muted" data-tooltip="'+(null==(e=l.tooltip)?"":e)+'"></i>\n        '),n+="\n      </button>\n    </li>\n    "}),n+="\n  </ul>\n</nav>\n"}},62507:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(35768));y.default={form:e.default}},76476:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<ul class="formio-wizard-nav-container list-inline" id="'+(null==(e=i.wizardKey)?"":e)+'-nav">\n  ',i.buttonOrder.forEach(function(l){n+="\n    ","cancel"===l&&i.buttons.cancel&&(n+='\n    <li>\n      <button class="btn btn-secondary btn-wizard-nav-cancel" ref="'+(null==(e=i.wizardKey)?"":e)+'-cancel" aria-label="'+(null==(e=i.t("cancelButtonAriaLabel"))?"":e)+'">'+(null==(e=i.t("cancel"))?"":e)+"</button>\n    </li>\n    "),n+="\n    ","previous"===l&&i.buttons.previous&&(n+='\n    <li>\n      <button class="btn btn-primary btn-wizard-nav-previous" ref="'+(null==(e=i.wizardKey)?"":e)+'-previous" aria-label="'+(null==(e=i.t("previousButtonAriaLabel"))?"":e)+'">'+(null==(e=i.t("previous"))?"":e)+"</button>\n    </li>\n    "),n+="\n    ","next"===l&&i.buttons.next&&(n+='\n    <li>\n      <button class="btn btn-primary btn-wizard-nav-next" ref="'+(null==(e=i.wizardKey)?"":e)+'-next" aria-label="'+(null==(e=i.t("nextButtonAriaLabel"))?"":e)+'">'+(null==(e=i.t("next"))?"":e)+"</button>\n    </li>\n    "),n+="\n    ","submit"===l&&i.buttons.submit&&(n+="\n    <li>\n      ",n+=i.disableWizardSubmit?'\n      <button disabled class="btn btn-primary btn-wizard-nav-submit" ref="'+(null==(e=i.wizardKey)?"":e)+'-submit" aria-label="'+(null==(e=i.t("submit"))?"":e)+' button. Click to submit the form">'+(null==(e=i.t("submit"))?"":e)+"</button>\n      ":'\n      <button class="btn btn-primary btn-wizard-nav-submit" ref="'+(null==(e=i.wizardKey)?"":e)+'-submit" aria-label="'+(null==(e=i.t("submit"))?"":e)+' button. Click to submit the form">'+(null==(e=i.t("submit"))?"":e)+"</button>\n      ",n+="\n    </li>\n    "),n+="\n  "}),n+="\n</ul>\n"}},28231:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(a){return a&&a.__esModule?a:{default:a}}(i(76476));y.default={form:e.default}},50884:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e;return""+'<div class="text-muted text-center p-2">'+(null==(e=i.t(i.component.title,{_userInput:!0}))?"":e)+"</div>\n"}},8694:(he,y)=>{Object.defineProperty(y,"__esModule",{value:!0}),y.default=function(i){var e,n="";return n+='<div class="'+(null==(e=i.className)?"":e)+'">\n    <div style="position: relative;">\n        ',"wizardHeaderVertical"===i.wizardHeaderType?(n+='\n        <div class="row">\n            ',"right"!==i.wizardHeaderLocation&&(n+='\n            <div class="col-sm-2">\n                '+(null==(e=i.wizardHeader)?"":e)+"\n            </div>\n            "),n+='\n            <div class="wizard-page col-sm-10" ref="'+(null==(e=i.wizardKey)?"":e)+'">\n                '+(null==(e=i.components)?"":e)+"\n            </div>\n            ","right"===i.wizardHeaderLocation&&(n+='\n            <div class="col-sm-2">\n                '+(null==(e=i.wizardHeader)?"":e)+"\n            </div>\n            "),n+='\n        </div>\n        <div class="col-sm-offset-2 col-sm-10 '+(null==(e="right"===i.wizardHeaderLocation?"col-sm-offset-0 col-md-offset-0":"")?"":e)+'">\n            '+(null==(e=i.wizardNav)?"":e)+"\n        </div>\n        "):n+="\n        "+(null==(e=i.wizardHeader)?"":e)+'\n        <div class="wizard-page" ref="'+(null==(e=i.wizardKey)?"":e)+'">\n            '+(null==(e=i.components)?"":e)+"\n        </div>\n        "+(null==(e=i.wizardNav)?"":e)+"\n        ",n+"\n    </div>\n</div>\n"}},54852:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(8694)),n=o(i(50884));function o(l){return l&&l.__esModule?l:{default:l}}y.default={form:e.default,builder:n.default}},93736:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=l(i(32844)),n=l(i(79674)),o=l(i(10040)),a=l(i(8071));function l(d){return d&&d.__esModule?d:{default:d}}y.default={bootstrap:e.default,bootstrap3:o.default.templates.bootstrap3,bootstrap5:n.default,semantic:a.default.templates.semantic}},26499:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default={unsavedRowsError:"Please save all rows before proceeding.",invalidRowsError:"Please correct invalid rows before proceeding.",invalidRowError:"Invalid row. Please correct it or delete.",alertMessageWithLabel:"{{label}}: {{message}}",alertMessage:"{{message}}",complete:"Submission Complete",error:"Please fix the following errors before submitting.",errorListHotkey:"Press Ctrl + Alt + X to go back to the error list.",errorsListNavigationMessage:"Click to navigate to the field with following error.",submitError:"Please check the form and correct all errors before submitting.",required:"{{field}} is required",unique:"{{field}} must be unique",array:"{{field}} must be an array",array_nonempty:"{{field}} must be a non-empty array",nonarray:"{{field}} must not be an array",select:"{{field}} contains an invalid selection",pattern:"{{field}} does not match the pattern {{pattern}}",minLength:"{{field}} must have at least {{length}} characters.",maxLength:"{{field}} must have no more than {{length}} characters.",minWords:"{{field}} must have at least {{length}} words.",maxWords:"{{field}} must have no more than {{length}} words.",min:"{{field}} cannot be less than {{min}}.",max:"{{field}} cannot be greater than {{max}}.",maxDate:"{{field}} should not contain date after {{- maxDate}}",minDate:"{{field}} should not contain date before {{- minDate}}",maxYear:"{{field}} should not contain year greater than {{maxYear}}",minYear:"{{field}} should not contain year less than {{minYear}}",invalid_email:"{{field}} must be a valid email.",invalid_url:"{{field}} must be a valid url.",invalid_regex:"{{field}} does not match the pattern {{regex}}.",invalid_date:"{{field}} is not a valid date.",invalid_day:"{{field}} is not a valid day.",mask:"{{field}} does not match the mask.",valueIsNotAvailable:"{{ field }} is an invalid value.",stripe:"{{stripe}}",month:"Month",day:"Day",year:"Year",january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December",next:"Next",previous:"Previous",cancel:"Cancel",submit:"Submit Form",confirmCancel:"Are you sure you want to cancel?",saveDraftInstanceError:"Cannot save draft because there is no formio instance.",saveDraftAuthError:"Cannot save draft unless a user is authenticated.",restoreDraftInstanceError:"Cannot restore draft because there is no formio instance.",time:"Invalid time",cancelButtonAriaLabel:"Cancel button. Click to reset the form",previousButtonAriaLabel:"Previous button. Click to go back to the previous tab",nextButtonAriaLabel:"Next button. Click to go to the next tab",submitButtonAriaLabel:"Submit Form button. Click to submit the form"}},32574:(he,y,i)=>{"use strict";function n(L){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(D){return typeof D}:function(D){return D&&"function"==typeof Symbol&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D})(L)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),y.ZP=void 0,i(34338),i(41517),i(96869),i(64043),i(5399),i(88052);var o=function a(L){return L&&L.__esModule?L:{default:L}}(i(4414));function l(L,D,F){return(D=A(D))in L?Object.defineProperty(L,D,{value:F,enumerable:!0,configurable:!0,writable:!0}):L[D]=F,L}function d(L,D){for(var F=0;F<D.length;F++){var P=D[F];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(L,A(P.key),P)}}function A(L){var D=function _(L,D){if("object"!==n(L)||null===L)return L;var F=L[Symbol.toPrimitive];if(void 0!==F){var P=F.call(L,D||"default");if("object"!==n(P))return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===D?String:Number)(L)}(L,"string");return"symbol"===n(D)?D:String(D)}function C(){return C=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(D,F,P){var O=function R(L,D){for(;!Object.prototype.hasOwnProperty.call(L,D)&&null!==(L=p(L)););return L}(D,F);if(O){var U=Object.getOwnPropertyDescriptor(O,F);return U.get?U.get.call(arguments.length<3?D:P):U.value}},C.apply(this,arguments)}function f(L,D){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,O){return P.__proto__=O,P})(L,D)}function g(L){if(void 0===L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function p(L){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)})(L)}o.default.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var L=this.passedElement.placeholderOption;return!!L&&L.text}var D=this.config,P=D.placeholderValue,O=this.passedElement.element.dataset;if(D.placeholder){if(P)return P;if(O.placeholder)return O.placeholder}return!1};var E_BACK_KEY=46,E_DELETE_KEY=8,E_TAB_KEY=9,E_ENTER_KEY=13,E_A_KEY=65,E_ESC_KEY=27,E_UP_KEY=38,E_DOWN_KEY=40,E_PAGE_UP_KEY=33,E_PAGE_DOWN_KEY=34;y.ZP=function(L){!function x(L,D){if("function"!=typeof D&&null!==D)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(D&&D.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),D&&f(L,D)}(F,L);var D=function k(L){var D=function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var O,P=p(L);if(D){var U=p(this).constructor;O=Reflect.construct(P,arguments,U)}else O=P.apply(this,arguments);return function w(L,D){if(D&&("object"===n(D)||"function"==typeof D))return D;if(void 0!==D)throw new TypeError("Derived constructors may only return object or undefined");return g(L)}(this,O)}}(F);function F(){var P;!function u(L,D){if(!(L instanceof D))throw new TypeError("Cannot call a class as a function")}(this,F);for(var O=arguments.length,U=new Array(O),V=0;V<O;V++)U[V]=arguments[V];return(P=D.call.apply(D,[this].concat(U)))._onTabKey=P._onTabKey.bind(g(P)),P.isDirectionUsing=!1,P.shouldOpenDropDown=!0,P}return function s(L,D,F){D&&d(L.prototype,D),F&&d(L,F),Object.defineProperty(L,"prototype",{writable:!1})}(F,[{key:"_onTouchEnd",value:function(O){var U=(O||O.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(U)&&((U===this.containerOuter.element||U===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&(this.input.focus(),this.showDropdown())),O.stopPropagation()),this._wasTap=!0}},{key:"_handleButtonAction",value:function(O,U){if(!this._isSelectOneElement)return C(p(F.prototype),"_handleButtonAction",this).call(this,O,U);!O||!U||!this.config.removeItems||!this.config.removeItemButton||C(p(F.prototype),"_handleButtonAction",this).call(this,O,U)}},{key:"_onEnterKey",value:function(O){"choices__button"===O.event.target.className&&(this.shouldOpenDropDown=!1),C(p(F.prototype),"_onEnterKey",this).call(this,O)}},{key:"_onDirectionKey",value:function(){for(var O,U=this,V=arguments.length,K=new Array(V),X=0;X<V;X++)K[X]=arguments[X];var me;if(!this._isSelectOneElement)return(me=C(p(F.prototype),"_onDirectionKey",this)).call.apply(me,[this].concat(K));this.isDirectionUsing=!0,(O=C(p(F.prototype),"_onDirectionKey",this)).call.apply(O,[this].concat(K)),this.onSelectValue.apply(this,K),clearTimeout(this.timeout),this.timeout=setTimeout(function(){U.isDirectionUsing=!1},250)}},{key:"_onTabKey",value:function(O){O.hasActiveDropdown&&this._selectHighlightedChoice(O.activeItems)}},{key:"_selectHighlightedChoice",value:function(O){var U=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));U&&this._handleChoiceAction(O,U),event.preventDefault()}},{key:"_onKeyDown",value:function(O){var U;if(!this._isSelectOneElement)return C(p(F.prototype),"_onKeyDown",this).call(this,O);var V=O.target,K=O.keyCode,X=O.ctrlKey,me=O.metaKey;if(V===this.input.element||this.containerOuter.element.contains(V)){var J=this._store.activeItems,Q=this.input.isFocussed,re=this.dropdown.isActive,de=this.itemList.hasChildren,te=String.fromCharCode(K),j=E_BACK_KEY,H=E_DELETE_KEY,z=E_TAB_KEY,q=E_ENTER_KEY,se=E_A_KEY,ne=E_ESC_KEY,_e=E_UP_KEY,ge=E_DOWN_KEY,Ce=E_PAGE_UP_KEY,Te=E_PAGE_DOWN_KEY,De=X||me;if(!re&&!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(te)){var fe=this.input.element.value;this.input.element.value=fe?"".concat(fe).concat(te):te,this.showDropdown()}var xe=(l(U={},se,this._onAKey),l(U,z,this._onTabKey),l(U,q,this._onEnterKey),l(U,ne,this._onEscapeKey),l(U,_e,this._onDirectionKey),l(U,Ce,this._onDirectionKey),l(U,ge,this._onDirectionKey),l(U,Te,this._onDirectionKey),l(U,H,this._onDeleteKey),l(U,j,this._onDeleteKey),U);xe[K]&&xe[K]({event:O,target:V,keyCode:K,metaKey:me,activeItems:J,hasFocusedInput:Q,hasActiveDropdown:re,hasItems:de,hasCtrlDownKeyPressed:De})}}},{key:"onSelectValue",value:function(O){var U=O.event;O.hasActiveDropdown?this._selectHighlightedChoice(O.activeItems):this._isSelectOneElement&&(this.showDropdown(),U.preventDefault())}},{key:"showDropdown",value:function(){var O;if(this.shouldOpenDropDown){for(var U=arguments.length,V=new Array(U),K=0;K<U;K++)V[K]=arguments[K];(O=C(p(F.prototype),"showDropdown",this)).call.apply(O,[this].concat(V))}else this.shouldOpenDropDown=!0}},{key:"hideDropdown",value:function(){var O;if(!this.isDirectionUsing){for(var U=arguments.length,V=new Array(U),K=0;K<U;K++)V[K]=arguments[K];(O=C(p(F.prototype),"hideDropdown",this)).call.apply(O,[this].concat(V))}}},{key:"_onBlur",value:function(){var O;if(!this._isScrollingOnIe){for(var U=arguments.length,V=new Array(U),K=0;K<U;K++)V[K]=arguments[K];(O=C(p(F.prototype),"_onBlur",this)).call.apply(O,[this].concat(V))}}}]),F}(o.default)},22851:(he,y,i)=>{"use strict";i(77049),i(89730),i(34284),i(5399),i(41517),i(30050),i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(752),i(60228),i(76265),i(34338),i(64043),i(57267),i(50886),i(28436),i(38077),i(63975),i(49693),i(47522),i(69358),i(59749),i(86544),i(84254),i(21694);var e=o(i(6990)),n=o(i(22150));function o(w){return w&&w.__esModule?w:{default:w}}function a(w,g,M){return(a=function l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}()?Reflect.construct.bind():function(E,b,I){var L=[null];L.push.apply(L,b);var F=new(Function.bind.apply(E,L));return I&&u(F,I.prototype),F}).apply(null,arguments)}function u(w,g){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,E){return p.__proto__=E,p})(w,g)}function d(w){return function C(w){if(Array.isArray(w))return R(w)}(w)||function _(w){if(typeof Symbol<"u"&&null!=w[Symbol.iterator]||null!=w["@@iterator"])return Array.from(w)}(w)||function A(w,g){if(w){if("string"==typeof w)return R(w,g);var M=Object.prototype.toString.call(w).slice(8,-1);if("Object"===M&&w.constructor&&(M=w.constructor.name),"Map"===M||"Set"===M)return Array.from(w);if("Arguments"===M||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return R(w,g)}}(w)||function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(w,g){(null==g||g>w.length)&&(g=w.length);for(var M=0,p=new Array(g);M<g;M++)p[M]=w[M];return p}function x(w){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(w)}var f={noeval:!1,protectedEval:!1,cache:{},templateSettings:{evaluate:/\{%([\s\S]+?)%\}/g,interpolate:/\{\{([\s\S]+?)\}\}/g,escape:/\{\{\{([\s\S]+?)\}\}\}/g},evaluator:function(g){for(var M=arguments.length,p=new Array(M>1?M-1:0),E=1;E<M;E++)p[E-1]=arguments[E];return f.noeval?(console.warn("No evaluations allowed for this renderer."),e.default.noop):("object"===x(p[0])&&(p=e.default.keys(p[0])),a(Function,d(p).concat([g])))},template:function(g,M){if(M=M||(0,n.default)(g),f.cache[M])return f.cache[M];try{return g=g.replace(/ctx\./g,""),f.cache[M]=e.default.template(g,f.templateSettings)}catch(p){console.warn("Error while processing template",p,g)}},interpolate:function(g,M,p){var b,E=e.default.isObject(p)?p:{noeval:p};if("function"==typeof g)try{return g(M)}catch(I){return console.warn("Error interpolating template",I,M),I.message}if(g=String(g),f.noeval||E.noeval)return g.replace(/({{\s*(.*?)\s*}})/g,function(I,L,D){for(var F=D.split("||").map(function(V){return V.trim()}),P="",O="",U=0;U<F.length&&!(P=e.default.get(M,O=F[U]));U++);return E.data&&e.default.set(E.data,O,P),P});if("function"==typeof(b=f.template(g)))try{return M.component&&M.component.filter===g&&!M.options.building&&(M.data=e.default.mapValues(M.data,function(I){return e.default.isString(I)?encodeURIComponent(I):I})),b(M)}catch(I){return console.warn("Error interpolating template",I,g,M),I.message}return b},evaluate:function(g,M){return Array.isArray(M)?g.apply(void 0,d(M)):g(M)},registerEvaluator:function(w){Object.keys(w).forEach(function(g){f[g]=w[g]})}};y.default=f},24845:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(76801),i(50886),i(752),i(60228),i(76265),i(49693),i(47522),i(34338);var e=function o(l){return l&&l.__esModule?l:{default:l}}(i(6990)),n=i(12866);y.default={uniquify:function(u,d){var s=!1,A={};return(0,n.eachComponent)(u,function(_){if(A[_.key]=!0,["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(_.type)||_.tree||_.arrayTree)return!0},!0),(0,n.eachComponent)([d],function(_){if(_.key){var C=(0,n.uniqueKey)(A,_.key);if(C!==_.key&&(_.key=C,s=!0),A[C]=!0,["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(_.type)||_.tree||_.arrayTree)return!0}},!0),s},additionalShortcuts:{button:["Enter","Esc"]},getAlphaShortcuts:function(){return e.default.range("A".charCodeAt(),"Z".charCodeAt()+1).map(function(u){return String.fromCharCode(u)})},getAdditionalShortcuts:function(u){return this.additionalShortcuts[u]||[]},getBindedShortcuts:function(u,d){var s=[];return(0,n.eachComponent)(u,function(A){A!==d&&(A.shortcut&&s.push(A.shortcut),A.values&&A.values.forEach(function(_){_.shortcut&&s.push(_.shortcut)}))},!0),s},getAvailableShortcuts:function(u,d){return d?[""].concat(e.default.difference(this.getAlphaShortcuts().concat(this.getAdditionalShortcuts(d.type)),this.getBindedShortcuts(u.components,d))).map(function(s){return{label:s,value:s}}):[]}}},81587:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.CALENDAR_ERROR_MESSAGES=void 0,y.checkInvalidDate=function d(s,A,_,C){var R=(0,e.default)(s,A,!0),x=R.isValid();if(!x){var f=s.match(/[^a-z0-9_]/gi),k=new RegExp(f.join("|"),"gi"),w=s.replace(/_*/gi,"").split(k),g=A[1]?A[1].split(k):A[0].split(k),M=n.default.findIndex(g,function(U,V){return 1===U.length&&V===g.length-1});if(w[n.default.findIndex(g,function(U){return U.match(/yyyy/gi)})]/1e3<1)return l(a.INVALID,!1);if(w[0].length===g[0].length){var E=w.map(function(U,V){var K=U;return U||V!==M?U||(K="01"):K="AM",f[V]&&(K="".concat(K).concat(f[V])),K}),b=(0,e.default)(E.join(""),A,!0);if(b.isValid()){var I=u(b,A[0],C,_);return I.result?l(a.INCOMPLETE,!1):l(I.message,I.result)}return l(a.INVALID,!1)}return l(a.INVALID,!1)}if(x&&-1===s.indexOf("_")){var F=u(R,A[0],C,_);if(!F.result)return l(F.message,F.result)}return l("",!0)},y.lessOrGreater=u,i(64043),i(22462),i(52003),i(63945),i(6203),i(9873),i(57267),i(39772),i(50886),i(34338),i(97195);var e=o(i(16676)),n=o(i(6990));function o(s){return s&&s.__esModule?s:{default:s}}var a={INVALID:"You entered the Invalid Date",INCOMPLETE:"You entered an incomplete date.",greater:function(A,_){return"The entered date is greater than ".concat(A.format(_))},less:function(A,_){return"The entered date is less than ".concat(A.format(_))}};function l(s,A){return{message:s,result:A}}function u(s,A,_,C){var R="",x=!0;if(_&&s.isValid()){var f=(0,e.default)(_,A);s>f&&(R=a.greater(f,A),x=!1)}if(C&&s.isValid()){var k=(0,e.default)(C,A);s<k&&(R=a.less(k,A),x=!1)}return{message:R,result:x}}y.CALENDAR_ERROR_MESSAGES=a},39962:(he,y,i)=>{"use strict";i(40739),i(69358),i(38077),i(81919),i(49693),i(47522),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(98742),i(60228),i(69373),i(59903),i(59749),i(86544),i(79288);var e=function n(x){return x&&x.__esModule?x:{default:x}}(i(6990));function o(x){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"==typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(x)}function a(x,f){var k=Object.keys(x);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(x);f&&(w=w.filter(function(g){return Object.getOwnPropertyDescriptor(x,g).enumerable})),k.push.apply(k,w)}return k}function l(x){for(var f=1;f<arguments.length;f++){var k=null!=arguments[f]?arguments[f]:{};f%2?a(Object(k),!0).forEach(function(w){u(x,w,k[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(k)):a(Object(k)).forEach(function(w){Object.defineProperty(x,w,Object.getOwnPropertyDescriptor(k,w))})}return x}function u(x,f,k){return(f=_(f))in x?Object.defineProperty(x,f,{value:k,enumerable:!0,configurable:!0,writable:!0}):x[f]=k,x}function s(x,f){for(var k=0;k<f.length;k++){var w=f[k];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(x,_(w.key),w)}}function _(x){var f=function C(x,f){if("object"!==o(x)||null===x)return x;var k=x[Symbol.toPrimitive];if(void 0!==k){var w=k.call(x,f||"default");if("object"!==o(w))return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===f?String:Number)(x)}(x,"string");return"symbol"===o(f)?f:String(f)}y.default=function(){function x(){!function d(x,f){if(!(x instanceof f))throw new TypeError("Cannot call a class as a function")}(this,x)}return function A(x,f,k){f&&s(x.prototype,f),k&&s(x,k),Object.defineProperty(x,"prototype",{writable:!1})}(x,[{key:"execute",value:function(k){return!0}},{key:"getResult",value:function(){var k=this,w=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},g=w.value;return e.default.isArray(g)?e.default.some(g,function(M){return k.execute(l(l({},w),{},{value:M}))}):this.execute(w)}}],[{key:"operatorKey",get:function(){return""}},{key:"displayedName",get:function(){return""}},{key:"requireValue",get:function(){return!0}}]),x}()},26941:(he,y,i)=>{"use strict";function e(b){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(I){return typeof I}:function(I){return I&&"function"==typeof Symbol&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I})(b)}i(60228),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(69358),i(38077),i(81919),i(49693),i(47522),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(5399),i(41517),i(88052);var n=a(i(39962)),o=a(i(16676));function a(b){return b&&b.__esModule?b:{default:b}}function l(b,I){var L=Object.keys(b);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(b);I&&(D=D.filter(function(F){return Object.getOwnPropertyDescriptor(b,F).enumerable})),L.push.apply(L,D)}return L}function u(b){for(var I=1;I<arguments.length;I++){var L=null!=arguments[I]?arguments[I]:{};I%2?l(Object(L),!0).forEach(function(D){d(b,D,L[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(L)):l(Object(L)).forEach(function(D){Object.defineProperty(b,D,Object.getOwnPropertyDescriptor(L,D))})}return b}function d(b,I,L){return(I=C(I))in b?Object.defineProperty(b,I,{value:L,enumerable:!0,configurable:!0,writable:!0}):b[I]=L,b}function A(b,I){for(var L=0;L<I.length;L++){var D=I[L];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(b,C(D.key),D)}}function C(b){var I=function R(b,I){if("object"!==e(b)||null===b)return b;var L=b[Symbol.toPrimitive];if(void 0!==L){var D=L.call(b,I||"default");if("object"!==e(D))return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===I?String:Number)(b)}(b,"string");return"symbol"===e(I)?I:String(I)}function f(b,I){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,F){return D.__proto__=F,D})(b,I)}function p(b){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(L){return L.__proto__||Object.getPrototypeOf(L)})(b)}y.default=function(b){!function x(b,I){if("function"!=typeof I&&null!==I)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(I&&I.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),I&&f(b,I)}(L,b);var I=function k(b){var I=function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var F,D=p(b);if(I){var P=p(this).constructor;F=Reflect.construct(D,arguments,P)}else F=D.apply(this,arguments);return function w(b,I){if(I&&("object"===e(I)||"function"==typeof I))return I;if(void 0!==I)throw new TypeError("Derived constructors may only return object or undefined");return function g(b){if(void 0===b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}(b)}(this,F)}}(L);function L(){return function s(b,I){if(!(b instanceof I))throw new TypeError("Cannot call a class as a function")}(this,L),I.apply(this,arguments)}return function _(b,I,L){I&&A(b.prototype,I),L&&A(b,L),Object.defineProperty(b,"prototype",{writable:!1})}(L,[{key:"getFormattedDates",value:function(F){var P=F.value,O=F.comparedValue,U=F.conditionTriggerComponent,V=U?U.getValidationFormat:null;return{date:V?(0,o.default)(P,U.getValidationFormat()):(0,o.default)(P),comparedDate:V?(0,o.default)(O,U.getValidationFormat()):(0,o.default)(O)}}},{key:"execute",value:function(F){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"isAfter",O=F.value,U=F.instance;if(!O)return!1;var K=null;if(U&&U.root&&(K=U.root.getComponent(F.conditionComponentPath)),K&&K.isPartialDay&&K.isPartialDay(O))return!1;var X=this.getFormattedDates(u(u({},F),{},{conditionTriggerComponent:K}));return X.date[P](X.comparedDate)}}],[{key:"operatorKey",get:function(){return"dateGreaterThan"}},{key:"displayedName",get:function(){return"Greater Than"}}]),L}(n.default)},28975:(he,y,i)=>{"use strict";function e(p){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(E){return typeof E}:function(E){return E&&"function"==typeof Symbol&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(p)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(5399),i(41517),i(88052);var n=function o(p){return p&&p.__esModule?p:{default:p}}(i(26941));function l(p,E){for(var b=0;b<E.length;b++){var I=E[b];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(p,d(I.key),I)}}function d(p){var E=function s(p,E){if("object"!==e(p)||null===p)return p;var b=p[Symbol.toPrimitive];if(void 0!==b){var I=b.call(p,E||"default");if("object"!==e(I))return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===E?String:Number)(p)}(p,"string");return"symbol"===e(E)?E:String(E)}function A(){return A=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(E,b,I){var L=function _(p,E){for(;!Object.prototype.hasOwnProperty.call(p,E)&&null!==(p=g(p)););return p}(E,b);if(L){var D=Object.getOwnPropertyDescriptor(L,b);return D.get?D.get.call(arguments.length<3?E:I):D.value}},A.apply(this,arguments)}function R(p,E){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,L){return I.__proto__=L,I})(p,E)}function g(p){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)})(p)}y.default=function(p){!function C(p,E){if("function"!=typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(E&&E.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),Object.defineProperty(p,"prototype",{writable:!1}),E&&R(p,E)}(b,p);var E=function x(p){var E=function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var L,I=g(p);if(E){var D=g(this).constructor;L=Reflect.construct(I,arguments,D)}else L=I.apply(this,arguments);return function f(p,E){if(E&&("object"===e(E)||"function"==typeof E))return E;if(void 0!==E)throw new TypeError("Derived constructors may only return object or undefined");return function k(p){if(void 0===p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(p)}(this,L)}}(b);function b(){return function a(p,E){if(!(p instanceof E))throw new TypeError("Cannot call a class as a function")}(this,b),E.apply(this,arguments)}return function u(p,E,b){E&&l(p.prototype,E),b&&l(p,b),Object.defineProperty(p,"prototype",{writable:!1})}(b,[{key:"execute",value:function(L){return A(g(b.prototype),"execute",this).call(this,L,"isSameOrAfter")}}],[{key:"operatorKey",get:function(){return"dateGreaterThanOrEqual"}},{key:"displayedName",get:function(){return"Greater Than Or Equal To"}}]),b}(n.default)},81086:(he,y,i)=>{"use strict";function e(p){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(E){return typeof E}:function(E){return E&&"function"==typeof Symbol&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(p)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(5399),i(41517),i(88052);var n=function o(p){return p&&p.__esModule?p:{default:p}}(i(26941));function l(p,E){for(var b=0;b<E.length;b++){var I=E[b];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(p,d(I.key),I)}}function d(p){var E=function s(p,E){if("object"!==e(p)||null===p)return p;var b=p[Symbol.toPrimitive];if(void 0!==b){var I=b.call(p,E||"default");if("object"!==e(I))return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===E?String:Number)(p)}(p,"string");return"symbol"===e(E)?E:String(E)}function A(){return A=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(E,b,I){var L=function _(p,E){for(;!Object.prototype.hasOwnProperty.call(p,E)&&null!==(p=g(p)););return p}(E,b);if(L){var D=Object.getOwnPropertyDescriptor(L,b);return D.get?D.get.call(arguments.length<3?E:I):D.value}},A.apply(this,arguments)}function R(p,E){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,L){return I.__proto__=L,I})(p,E)}function g(p){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)})(p)}y.default=function(p){!function C(p,E){if("function"!=typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(E&&E.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),Object.defineProperty(p,"prototype",{writable:!1}),E&&R(p,E)}(b,p);var E=function x(p){var E=function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var L,I=g(p);if(E){var D=g(this).constructor;L=Reflect.construct(I,arguments,D)}else L=I.apply(this,arguments);return function f(p,E){if(E&&("object"===e(E)||"function"==typeof E))return E;if(void 0!==E)throw new TypeError("Derived constructors may only return object or undefined");return function k(p){if(void 0===p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(p)}(this,L)}}(b);function b(){return function a(p,E){if(!(p instanceof E))throw new TypeError("Cannot call a class as a function")}(this,b),E.apply(this,arguments)}return function u(p,E,b){E&&l(p.prototype,E),b&&l(p,b),Object.defineProperty(p,"prototype",{writable:!1})}(b,[{key:"execute",value:function(L){return A(g(b.prototype),"execute",this).call(this,L,"isBefore")}}],[{key:"operatorKey",get:function(){return"dateLessThan"}},{key:"displayedName",get:function(){return"Less Than"}}]),b}(n.default)},72303:(he,y,i)=>{"use strict";function e(p){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(E){return typeof E}:function(E){return E&&"function"==typeof Symbol&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(p)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(5399),i(41517),i(88052);var n=function o(p){return p&&p.__esModule?p:{default:p}}(i(26941));function l(p,E){for(var b=0;b<E.length;b++){var I=E[b];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(p,d(I.key),I)}}function d(p){var E=function s(p,E){if("object"!==e(p)||null===p)return p;var b=p[Symbol.toPrimitive];if(void 0!==b){var I=b.call(p,E||"default");if("object"!==e(I))return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===E?String:Number)(p)}(p,"string");return"symbol"===e(E)?E:String(E)}function A(){return A=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(E,b,I){var L=function _(p,E){for(;!Object.prototype.hasOwnProperty.call(p,E)&&null!==(p=g(p)););return p}(E,b);if(L){var D=Object.getOwnPropertyDescriptor(L,b);return D.get?D.get.call(arguments.length<3?E:I):D.value}},A.apply(this,arguments)}function R(p,E){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,L){return I.__proto__=L,I})(p,E)}function g(p){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)})(p)}y.default=function(p){!function C(p,E){if("function"!=typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(E&&E.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),Object.defineProperty(p,"prototype",{writable:!1}),E&&R(p,E)}(b,p);var E=function x(p){var E=function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var L,I=g(p);if(E){var D=g(this).constructor;L=Reflect.construct(I,arguments,D)}else L=I.apply(this,arguments);return function f(p,E){if(E&&("object"===e(E)||"function"==typeof E))return E;if(void 0!==E)throw new TypeError("Derived constructors may only return object or undefined");return function k(p){if(void 0===p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(p)}(this,L)}}(b);function b(){return function a(p,E){if(!(p instanceof E))throw new TypeError("Cannot call a class as a function")}(this,b),E.apply(this,arguments)}return function u(p,E,b){E&&l(p.prototype,E),b&&l(p,b),Object.defineProperty(p,"prototype",{writable:!1})}(b,[{key:"execute",value:function(L){return A(g(b.prototype),"execute",this).call(this,L,"isSameOrBefore")}}],[{key:"operatorKey",get:function(){return"dateLessThanOrEqual"}},{key:"displayedName",get:function(){return"Less Than Or Equal To"}}]),b}(n.default)},98283:(he,y,i)=>{"use strict";function e(M){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(p){return typeof p}:function(p){return p&&"function"==typeof Symbol&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(M)}i(60228),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(2918),i(5399),i(41517),i(88052);var n=a(i(39962)),o=a(i(6990));function a(M){return M&&M.__esModule?M:{default:M}}function u(M,p){for(var E=0;E<p.length;E++){var b=p[E];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(M,s(b.key),b)}}function s(M){var p=function A(M,p){if("object"!==e(M)||null===M)return M;var E=M[Symbol.toPrimitive];if(void 0!==E){var b=E.call(M,p||"default");if("object"!==e(b))return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===p?String:Number)(M)}(M,"string");return"symbol"===e(p)?p:String(p)}function C(M,p){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,I){return b.__proto__=I,b})(M,p)}function w(M){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)})(M)}y.default=function(M){!function _(M,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(p&&p.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),p&&C(M,p)}(E,M);var p=function R(M){var p=function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var I,b=w(M);if(p){var L=w(this).constructor;I=Reflect.construct(b,arguments,L)}else I=b.apply(this,arguments);return function x(M,p){if(p&&("object"===e(p)||"function"==typeof p))return p;if(void 0!==p)throw new TypeError("Derived constructors may only return object or undefined");return function f(M){if(void 0===M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(M)}(this,I)}}(E);function E(){return function l(M,p){if(!(M instanceof p))throw new TypeError("Cannot call a class as a function")}(this,E),p.apply(this,arguments)}return function d(M,p,E){p&&u(M.prototype,p),E&&u(M,E),Object.defineProperty(M,"prototype",{writable:!1})}(E,[{key:"execute",value:function(I){return o.default.endsWith(I.value,I.comparedValue)}}],[{key:"operatorKey",get:function(){return"endsWith"}},{key:"displayedName",get:function(){return"Ends With"}}]),E}(n.default)},46096:(he,y,i)=>{"use strict";function e(M){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(p){return typeof p}:function(p){return p&&"function"==typeof Symbol&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(M)}i(60228),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(5399),i(41517),i(88052);var n=a(i(39962)),o=a(i(6990));function a(M){return M&&M.__esModule?M:{default:M}}function u(M,p){for(var E=0;E<p.length;E++){var b=p[E];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(M,s(b.key),b)}}function s(M){var p=function A(M,p){if("object"!==e(M)||null===M)return M;var E=M[Symbol.toPrimitive];if(void 0!==E){var b=E.call(M,p||"default");if("object"!==e(b))return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===p?String:Number)(M)}(M,"string");return"symbol"===e(p)?p:String(p)}function C(M,p){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,I){return b.__proto__=I,b})(M,p)}function w(M){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)})(M)}y.default=function(M){!function _(M,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(p&&p.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),p&&C(M,p)}(E,M);var p=function R(M){var p=function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var I,b=w(M);if(p){var L=w(this).constructor;I=Reflect.construct(b,arguments,L)}else I=b.apply(this,arguments);return function x(M,p){if(p&&("object"===e(p)||"function"==typeof p))return p;if(void 0!==p)throw new TypeError("Derived constructors may only return object or undefined");return function f(M){if(void 0===M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(M)}(this,I)}}(E);function E(){return function l(M,p){if(!(M instanceof p))throw new TypeError("Cannot call a class as a function")}(this,E),p.apply(this,arguments)}return function d(M,p,E){p&&u(M.prototype,p),E&&u(M,E),Object.defineProperty(M,"prototype",{writable:!1})}(E,[{key:"execute",value:function(I){var L=I.value,D=I.comparedValue;return o.default.isNumber(L)&&L>D}}],[{key:"operatorKey",get:function(){return"greaterThan"}},{key:"displayedName",get:function(){return"Greater Than"}}]),E}(n.default)},96166:(he,y,i)=>{"use strict";function e(M){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(p){return typeof p}:function(p){return p&&"function"==typeof Symbol&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(M)}i(60228),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(5399),i(41517),i(88052);var n=a(i(39962)),o=a(i(6990));function a(M){return M&&M.__esModule?M:{default:M}}function u(M,p){for(var E=0;E<p.length;E++){var b=p[E];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(M,s(b.key),b)}}function s(M){var p=function A(M,p){if("object"!==e(M)||null===M)return M;var E=M[Symbol.toPrimitive];if(void 0!==E){var b=E.call(M,p||"default");if("object"!==e(b))return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===p?String:Number)(M)}(M,"string");return"symbol"===e(p)?p:String(p)}function C(M,p){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,I){return b.__proto__=I,b})(M,p)}function w(M){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)})(M)}y.default=function(M){!function _(M,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(p&&p.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),p&&C(M,p)}(E,M);var p=function R(M){var p=function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var I,b=w(M);if(p){var L=w(this).constructor;I=Reflect.construct(b,arguments,L)}else I=b.apply(this,arguments);return function x(M,p){if(p&&("object"===e(p)||"function"==typeof p))return p;if(void 0!==p)throw new TypeError("Derived constructors may only return object or undefined");return function f(M){if(void 0===M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(M)}(this,I)}}(E);function E(){return function l(M,p){if(!(M instanceof p))throw new TypeError("Cannot call a class as a function")}(this,E),p.apply(this,arguments)}return function d(M,p,E){p&&u(M.prototype,p),E&&u(M,E),Object.defineProperty(M,"prototype",{writable:!1})}(E,[{key:"execute",value:function(I){var L=I.value,D=I.comparedValue;return o.default.isNumber(L)&&(L>D||o.default.isEqual(L,D))}}],[{key:"operatorKey",get:function(){return"greaterThanOrEqual"}},{key:"displayedName",get:function(){return"Greater Than Or Equal To"}}]),E}(n.default)},91801:(he,y,i)=>{"use strict";function e(M){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(p){return typeof p}:function(p){return p&&"function"==typeof Symbol&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(M)}i(60228),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(76801),i(43843),i(5399),i(41517),i(88052);var n=a(i(39962)),o=a(i(6990));function a(M){return M&&M.__esModule?M:{default:M}}function u(M,p){for(var E=0;E<p.length;E++){var b=p[E];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(M,s(b.key),b)}}function s(M){var p=function A(M,p){if("object"!==e(M)||null===M)return M;var E=M[Symbol.toPrimitive];if(void 0!==E){var b=E.call(M,p||"default");if("object"!==e(b))return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===p?String:Number)(M)}(M,"string");return"symbol"===e(p)?p:String(p)}function C(M,p){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,I){return b.__proto__=I,b})(M,p)}function w(M){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)})(M)}y.default=function(M){!function _(M,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(p&&p.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),p&&C(M,p)}(E,M);var p=function R(M){var p=function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var I,b=w(M);if(p){var L=w(this).constructor;I=Reflect.construct(b,arguments,L)}else I=b.apply(this,arguments);return function x(M,p){if(p&&("object"===e(p)||"function"==typeof p))return p;if(void 0!==p)throw new TypeError("Derived constructors may only return object or undefined");return function f(M){if(void 0===M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(M)}(this,I)}}(E);function E(){return function l(M,p){if(!(M instanceof p))throw new TypeError("Cannot call a class as a function")}(this,E),p.apply(this,arguments)}return function d(M,p,E){p&&u(M.prototype,p),E&&u(M,E),Object.defineProperty(M,"prototype",{writable:!1})}(E,[{key:"execute",value:function(I){return o.default.includes(I.value,I.comparedValue)}}],[{key:"operatorKey",get:function(){return"includes"}},{key:"displayedName",get:function(){return"Includes"}}]),E}(n.default)},23062:(he,y,i)=>{"use strict";function e(p){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(E){return typeof E}:function(E){return E&&"function"==typeof Symbol&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(p)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(5399),i(41517),i(88052);var n=function o(p){return p&&p.__esModule?p:{default:p}}(i(26941));function l(p,E){for(var b=0;b<E.length;b++){var I=E[b];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(p,d(I.key),I)}}function d(p){var E=function s(p,E){if("object"!==e(p)||null===p)return p;var b=p[Symbol.toPrimitive];if(void 0!==b){var I=b.call(p,E||"default");if("object"!==e(I))return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===E?String:Number)(p)}(p,"string");return"symbol"===e(E)?E:String(E)}function A(){return A=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(E,b,I){var L=function _(p,E){for(;!Object.prototype.hasOwnProperty.call(p,E)&&null!==(p=g(p)););return p}(E,b);if(L){var D=Object.getOwnPropertyDescriptor(L,b);return D.get?D.get.call(arguments.length<3?E:I):D.value}},A.apply(this,arguments)}function R(p,E){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,L){return I.__proto__=L,I})(p,E)}function g(p){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)})(p)}y.default=function(p){!function C(p,E){if("function"!=typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(E&&E.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),Object.defineProperty(p,"prototype",{writable:!1}),E&&R(p,E)}(b,p);var E=function x(p){var E=function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var L,I=g(p);if(E){var D=g(this).constructor;L=Reflect.construct(I,arguments,D)}else L=I.apply(this,arguments);return function f(p,E){if(E&&("object"===e(E)||"function"==typeof E))return E;if(void 0!==E)throw new TypeError("Derived constructors may only return object or undefined");return function k(p){if(void 0===p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(p)}(this,L)}}(b);function b(){return function a(p,E){if(!(p instanceof E))throw new TypeError("Cannot call a class as a function")}(this,b),E.apply(this,arguments)}return function u(p,E,b){E&&l(p.prototype,E),b&&l(p,b),Object.defineProperty(p,"prototype",{writable:!1})}(b,[{key:"execute",value:function(L){return A(g(b.prototype),"execute",this).call(this,L,"isSame")}}],[{key:"operatorKey",get:function(){return"isDateEqual"}},{key:"displayedName",get:function(){return"Is Equal To"}}]),b}(n.default)},6537:(he,y,i)=>{"use strict";function e(M){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(p){return typeof p}:function(p){return p&&"function"==typeof Symbol&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(M)}i(60228),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(5399),i(41517),i(88052);var n=a(i(39962)),o=a(i(6990));function a(M){return M&&M.__esModule?M:{default:M}}function u(M,p){for(var E=0;E<p.length;E++){var b=p[E];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(M,s(b.key),b)}}function s(M){var p=function A(M,p){if("object"!==e(M)||null===M)return M;var E=M[Symbol.toPrimitive];if(void 0!==E){var b=E.call(M,p||"default");if("object"!==e(b))return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===p?String:Number)(M)}(M,"string");return"symbol"===e(p)?p:String(p)}function C(M,p){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,I){return b.__proto__=I,b})(M,p)}function w(M){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)})(M)}y.default=function(M){!function _(M,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(p&&p.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),p&&C(M,p)}(E,M);var p=function R(M){var p=function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var I,b=w(M);if(p){var L=w(this).constructor;I=Reflect.construct(b,arguments,L)}else I=b.apply(this,arguments);return function x(M,p){if(p&&("object"===e(p)||"function"==typeof p))return p;if(void 0!==p)throw new TypeError("Derived constructors may only return object or undefined");return function f(M){if(void 0===M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(M)}(this,I)}}(E);function E(){return function l(M,p){if(!(M instanceof p))throw new TypeError("Cannot call a class as a function")}(this,E),p.apply(this,arguments)}return function d(M,p,E){p&&u(M.prototype,p),E&&u(M,E),Object.defineProperty(M,"prototype",{writable:!1})}(E,[{key:"execute",value:function(I){var D=I.instance,F=I.conditionComponentPath,P=o.default.isEmpty(I.value);if(D&&D.root){var O=D.root.getComponent(F);return O?O.isEmpty():P}return P}},{key:"getResult",value:function(I){return this.execute(I)}}],[{key:"operatorKey",get:function(){return"isEmpty"}},{key:"displayedName",get:function(){return"Is Empty"}},{key:"requireValue",get:function(){return!1}}]),E}(n.default)},3043:(he,y,i)=>{"use strict";i(60228),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(5399),i(41517),i(88052);var e=o(i(39962)),n=o(i(6990));function o(M){return M&&M.__esModule?M:{default:M}}function a(M){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(p){return typeof p}:function(p){return p&&"function"==typeof Symbol&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(M)}function u(M,p){for(var E=0;E<p.length;E++){var b=p[E];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(M,s(b.key),b)}}function s(M){var p=function A(M,p){if("object"!==a(M)||null===M)return M;var E=M[Symbol.toPrimitive];if(void 0!==E){var b=E.call(M,p||"default");if("object"!==a(b))return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===p?String:Number)(M)}(M,"string");return"symbol"===a(p)?p:String(p)}function C(M,p){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,I){return b.__proto__=I,b})(M,p)}function w(M){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)})(M)}y.default=function(M){!function _(M,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(p&&p.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),p&&C(M,p)}(E,M);var p=function R(M){var p=function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var I,b=w(M);if(p){var L=w(this).constructor;I=Reflect.construct(b,arguments,L)}else I=b.apply(this,arguments);return function x(M,p){if(p&&("object"===a(p)||"function"==typeof p))return p;if(void 0!==p)throw new TypeError("Derived constructors may only return object or undefined");return function f(M){if(void 0===M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(M)}(this,I)}}(E);function E(){return function l(M,p){if(!(M instanceof p))throw new TypeError("Cannot call a class as a function")}(this,E),p.apply(this,arguments)}return function d(M,p,E){p&&u(M.prototype,p),E&&u(M,E),Object.defineProperty(M,"prototype",{writable:!1})}(E,[{key:"execute",value:function(I){var L=I.value,D=I.comparedValue;if(L&&D&&a(L)!==a(D)&&n.default.isString(D))try{D=JSON.parse(D)}catch{}return n.default.isObject(L)&&D&&n.default.isString(D)?L[D]:n.default.isEqual(L,D)}}],[{key:"operatorKey",get:function(){return"isEqual"}},{key:"displayedName",get:function(){return"Is Equal To"}}]),E}(e.default)},95061:(he,y,i)=>{"use strict";function e(p){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(E){return typeof E}:function(E){return E&&"function"==typeof Symbol&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(p)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(5399),i(41517),i(88052);var n=function o(p){return p&&p.__esModule?p:{default:p}}(i(26941));function l(p,E){for(var b=0;b<E.length;b++){var I=E[b];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(p,d(I.key),I)}}function d(p){var E=function s(p,E){if("object"!==e(p)||null===p)return p;var b=p[Symbol.toPrimitive];if(void 0!==b){var I=b.call(p,E||"default");if("object"!==e(I))return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===E?String:Number)(p)}(p,"string");return"symbol"===e(E)?E:String(E)}function A(){return A=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(E,b,I){var L=function _(p,E){for(;!Object.prototype.hasOwnProperty.call(p,E)&&null!==(p=g(p)););return p}(E,b);if(L){var D=Object.getOwnPropertyDescriptor(L,b);return D.get?D.get.call(arguments.length<3?E:I):D.value}},A.apply(this,arguments)}function R(p,E){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,L){return I.__proto__=L,I})(p,E)}function g(p){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)})(p)}y.default=function(p){!function C(p,E){if("function"!=typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(E&&E.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),Object.defineProperty(p,"prototype",{writable:!1}),E&&R(p,E)}(b,p);var E=function x(p){var E=function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var L,I=g(p);if(E){var D=g(this).constructor;L=Reflect.construct(I,arguments,D)}else L=I.apply(this,arguments);return function f(p,E){if(E&&("object"===e(E)||"function"==typeof E))return E;if(void 0!==E)throw new TypeError("Derived constructors may only return object or undefined");return function k(p){if(void 0===p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(p)}(this,L)}}(b);function b(){return function a(p,E){if(!(p instanceof E))throw new TypeError("Cannot call a class as a function")}(this,b),E.apply(this,arguments)}return function u(p,E,b){E&&l(p.prototype,E),b&&l(p,b),Object.defineProperty(p,"prototype",{writable:!1})}(b,[{key:"execute",value:function(L){return!A(g(b.prototype),"execute",this).call(this,L,"isSame")}}],[{key:"operatorKey",get:function(){return"isNotDateEqual"}},{key:"displayedName",get:function(){return"Is Not Equal To"}}]),b}(n.default)},4234:(he,y,i)=>{"use strict";function e(p){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(E){return typeof E}:function(E){return E&&"function"==typeof Symbol&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(p)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(5399),i(41517),i(88052);var n=function o(p){return p&&p.__esModule?p:{default:p}}(i(6537));function l(p,E){for(var b=0;b<E.length;b++){var I=E[b];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(p,d(I.key),I)}}function d(p){var E=function s(p,E){if("object"!==e(p)||null===p)return p;var b=p[Symbol.toPrimitive];if(void 0!==b){var I=b.call(p,E||"default");if("object"!==e(I))return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===E?String:Number)(p)}(p,"string");return"symbol"===e(E)?E:String(E)}function A(){return A=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(E,b,I){var L=function _(p,E){for(;!Object.prototype.hasOwnProperty.call(p,E)&&null!==(p=g(p)););return p}(E,b);if(L){var D=Object.getOwnPropertyDescriptor(L,b);return D.get?D.get.call(arguments.length<3?E:I):D.value}},A.apply(this,arguments)}function R(p,E){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,L){return I.__proto__=L,I})(p,E)}function g(p){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)})(p)}y.default=function(p){!function C(p,E){if("function"!=typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(E&&E.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),Object.defineProperty(p,"prototype",{writable:!1}),E&&R(p,E)}(b,p);var E=function x(p){var E=function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var L,I=g(p);if(E){var D=g(this).constructor;L=Reflect.construct(I,arguments,D)}else L=I.apply(this,arguments);return function f(p,E){if(E&&("object"===e(E)||"function"==typeof E))return E;if(void 0!==E)throw new TypeError("Derived constructors may only return object or undefined");return function k(p){if(void 0===p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(p)}(this,L)}}(b);function b(){return function a(p,E){if(!(p instanceof E))throw new TypeError("Cannot call a class as a function")}(this,b),E.apply(this,arguments)}return function u(p,E,b){E&&l(p.prototype,E),b&&l(p,b),Object.defineProperty(p,"prototype",{writable:!1})}(b,[{key:"getResult",value:function(L){return!A(g(b.prototype),"getResult",this).call(this,L)}}],[{key:"operatorKey",get:function(){return"isNotEmpty"}},{key:"displayedName",get:function(){return"Is Not Empty"}}]),b}(n.default)},49469:(he,y,i)=>{"use strict";function e(M){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(p){return typeof p}:function(p){return p&&"function"==typeof Symbol&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(M)}i(60228),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(5399),i(41517),i(88052);var n=a(i(39962)),o=a(i(6990));function a(M){return M&&M.__esModule?M:{default:M}}function u(M,p){for(var E=0;E<p.length;E++){var b=p[E];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(M,s(b.key),b)}}function s(M){var p=function A(M,p){if("object"!==e(M)||null===M)return M;var E=M[Symbol.toPrimitive];if(void 0!==E){var b=E.call(M,p||"default");if("object"!==e(b))return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===p?String:Number)(M)}(M,"string");return"symbol"===e(p)?p:String(p)}function C(M,p){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,I){return b.__proto__=I,b})(M,p)}function w(M){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)})(M)}y.default=function(M){!function _(M,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(p&&p.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),p&&C(M,p)}(E,M);var p=function R(M){var p=function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var I,b=w(M);if(p){var L=w(this).constructor;I=Reflect.construct(b,arguments,L)}else I=b.apply(this,arguments);return function x(M,p){if(p&&("object"===e(p)||"function"==typeof p))return p;if(void 0!==p)throw new TypeError("Derived constructors may only return object or undefined");return function f(M){if(void 0===M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(M)}(this,I)}}(E);function E(){return function l(M,p){if(!(M instanceof p))throw new TypeError("Cannot call a class as a function")}(this,E),p.apply(this,arguments)}return function d(M,p,E){p&&u(M.prototype,p),E&&u(M,E),Object.defineProperty(M,"prototype",{writable:!1})}(E,[{key:"execute",value:function(I){return!o.default.isEqual(I.value,I.comparedValue)}}],[{key:"operatorKey",get:function(){return"isNotEqual"}},{key:"displayedName",get:function(){return"Is Not Equal To"}}]),E}(n.default)},44977:(he,y,i)=>{"use strict";function e(M){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(p){return typeof p}:function(p){return p&&"function"==typeof Symbol&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(M)}i(60228),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(5399),i(41517),i(88052);var n=a(i(39962)),o=a(i(6990));function a(M){return M&&M.__esModule?M:{default:M}}function u(M,p){for(var E=0;E<p.length;E++){var b=p[E];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(M,s(b.key),b)}}function s(M){var p=function A(M,p){if("object"!==e(M)||null===M)return M;var E=M[Symbol.toPrimitive];if(void 0!==E){var b=E.call(M,p||"default");if("object"!==e(b))return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===p?String:Number)(M)}(M,"string");return"symbol"===e(p)?p:String(p)}function C(M,p){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,I){return b.__proto__=I,b})(M,p)}function w(M){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)})(M)}y.default=function(M){!function _(M,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(p&&p.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),p&&C(M,p)}(E,M);var p=function R(M){var p=function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var I,b=w(M);if(p){var L=w(this).constructor;I=Reflect.construct(b,arguments,L)}else I=b.apply(this,arguments);return function x(M,p){if(p&&("object"===e(p)||"function"==typeof p))return p;if(void 0!==p)throw new TypeError("Derived constructors may only return object or undefined");return function f(M){if(void 0===M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(M)}(this,I)}}(E);function E(){return function l(M,p){if(!(M instanceof p))throw new TypeError("Cannot call a class as a function")}(this,E),p.apply(this,arguments)}return function d(M,p,E){p&&u(M.prototype,p),E&&u(M,E),Object.defineProperty(M,"prototype",{writable:!1})}(E,[{key:"execute",value:function(I){var L=I.value,D=I.comparedValue;return o.default.isNumber(L)&&L<D}}],[{key:"operatorKey",get:function(){return"lessThan"}},{key:"displayedName",get:function(){return"Less Than"}}]),E}(n.default)},96063:(he,y,i)=>{"use strict";function e(M){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(p){return typeof p}:function(p){return p&&"function"==typeof Symbol&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(M)}i(60228),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(5399),i(41517),i(88052);var n=a(i(39962)),o=a(i(6990));function a(M){return M&&M.__esModule?M:{default:M}}function u(M,p){for(var E=0;E<p.length;E++){var b=p[E];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(M,s(b.key),b)}}function s(M){var p=function A(M,p){if("object"!==e(M)||null===M)return M;var E=M[Symbol.toPrimitive];if(void 0!==E){var b=E.call(M,p||"default");if("object"!==e(b))return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===p?String:Number)(M)}(M,"string");return"symbol"===e(p)?p:String(p)}function C(M,p){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,I){return b.__proto__=I,b})(M,p)}function w(M){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)})(M)}y.default=function(M){!function _(M,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(p&&p.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),p&&C(M,p)}(E,M);var p=function R(M){var p=function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var I,b=w(M);if(p){var L=w(this).constructor;I=Reflect.construct(b,arguments,L)}else I=b.apply(this,arguments);return function x(M,p){if(p&&("object"===e(p)||"function"==typeof p))return p;if(void 0!==p)throw new TypeError("Derived constructors may only return object or undefined");return function f(M){if(void 0===M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(M)}(this,I)}}(E);function E(){return function l(M,p){if(!(M instanceof p))throw new TypeError("Cannot call a class as a function")}(this,E),p.apply(this,arguments)}return function d(M,p,E){p&&u(M.prototype,p),E&&u(M,E),Object.defineProperty(M,"prototype",{writable:!1})}(E,[{key:"execute",value:function(I){var L=I.value,D=I.comparedValue;return o.default.isNumber(L)&&(L<D||o.default.isEqual(L,D))}}],[{key:"operatorKey",get:function(){return"lessThanOrEqual"}},{key:"displayedName",get:function(){return"Less Than Or Equal To"}}]),E}(n.default)},67706:(he,y,i)=>{"use strict";function e(p){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(E){return typeof E}:function(E){return E&&"function"==typeof Symbol&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(p)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(5399),i(41517),i(88052);var n=function o(p){return p&&p.__esModule?p:{default:p}}(i(91801));function l(p,E){for(var b=0;b<E.length;b++){var I=E[b];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(p,d(I.key),I)}}function d(p){var E=function s(p,E){if("object"!==e(p)||null===p)return p;var b=p[Symbol.toPrimitive];if(void 0!==b){var I=b.call(p,E||"default");if("object"!==e(I))return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===E?String:Number)(p)}(p,"string");return"symbol"===e(E)?E:String(E)}function A(){return A=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(E,b,I){var L=function _(p,E){for(;!Object.prototype.hasOwnProperty.call(p,E)&&null!==(p=g(p)););return p}(E,b);if(L){var D=Object.getOwnPropertyDescriptor(L,b);return D.get?D.get.call(arguments.length<3?E:I):D.value}},A.apply(this,arguments)}function R(p,E){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,L){return I.__proto__=L,I})(p,E)}function g(p){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)})(p)}y.default=function(p){!function C(p,E){if("function"!=typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(E&&E.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),Object.defineProperty(p,"prototype",{writable:!1}),E&&R(p,E)}(b,p);var E=function x(p){var E=function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var L,I=g(p);if(E){var D=g(this).constructor;L=Reflect.construct(I,arguments,D)}else L=I.apply(this,arguments);return function f(p,E){if(E&&("object"===e(E)||"function"==typeof E))return E;if(void 0!==E)throw new TypeError("Derived constructors may only return object or undefined");return function k(p){if(void 0===p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(p)}(this,L)}}(b);function b(){return function a(p,E){if(!(p instanceof E))throw new TypeError("Cannot call a class as a function")}(this,b),E.apply(this,arguments)}return function u(p,E,b){E&&l(p.prototype,E),b&&l(p,b),Object.defineProperty(p,"prototype",{writable:!1})}(b,[{key:"execute",value:function(L){return!A(g(b.prototype),"execute",this).call(this,L)}}],[{key:"operatorKey",get:function(){return"notIncludes"}},{key:"displayedName",get:function(){return"Not Includes"}}]),b}(n.default)},64199:(he,y,i)=>{"use strict";function e(M){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(p){return typeof p}:function(p){return p&&"function"==typeof Symbol&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(M)}i(60228),i(30050),i(51013),i(40739),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(268),i(5399),i(41517),i(88052);var n=a(i(39962)),o=a(i(6990));function a(M){return M&&M.__esModule?M:{default:M}}function u(M,p){for(var E=0;E<p.length;E++){var b=p[E];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(M,s(b.key),b)}}function s(M){var p=function A(M,p){if("object"!==e(M)||null===M)return M;var E=M[Symbol.toPrimitive];if(void 0!==E){var b=E.call(M,p||"default");if("object"!==e(b))return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===p?String:Number)(M)}(M,"string");return"symbol"===e(p)?p:String(p)}function C(M,p){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,I){return b.__proto__=I,b})(M,p)}function w(M){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)})(M)}y.default=function(M){!function _(M,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(p&&p.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),p&&C(M,p)}(E,M);var p=function R(M){var p=function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var I,b=w(M);if(p){var L=w(this).constructor;I=Reflect.construct(b,arguments,L)}else I=b.apply(this,arguments);return function x(M,p){if(p&&("object"===e(p)||"function"==typeof p))return p;if(void 0!==p)throw new TypeError("Derived constructors may only return object or undefined");return function f(M){if(void 0===M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(M)}(this,I)}}(E);function E(){return function l(M,p){if(!(M instanceof p))throw new TypeError("Cannot call a class as a function")}(this,E),p.apply(this,arguments)}return function d(M,p,E){p&&u(M.prototype,p),E&&u(M,E),Object.defineProperty(M,"prototype",{writable:!1})}(E,[{key:"execute",value:function(I){return o.default.startsWith(I.value,I.comparedValue)}}],[{key:"operatorKey",get:function(){return"startsWith"}},{key:"displayedName",get:function(){return"Starts With"}}]),E}(n.default)},18735:(he,y,i)=>{"use strict";i(40739),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var p,e=E(i(49469)),n=E(i(6537)),o=E(i(4234)),a=E(i(44977)),l=E(i(46096)),u=E(i(3043)),d=E(i(26941)),s=E(i(81086)),A=E(i(91801)),_=E(i(64199)),C=E(i(67706)),R=E(i(98283)),x=E(i(28975)),f=E(i(72303)),k=E(i(96063)),w=E(i(96166)),g=E(i(23062)),M=E(i(95061));function E(O){return O&&O.__esModule?O:{default:O}}function b(O){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(U){return typeof U}:function(U){return U&&"function"==typeof Symbol&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U})(O)}function I(O,U,V){return U=function L(O){var U=function D(O,U){if("object"!==b(O)||null===O)return O;var V=O[Symbol.toPrimitive];if(void 0!==V){var K=V.call(O,U||"default");if("object"!==b(K))return K;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===U?String:Number)(O)}(O,"string");return"symbol"===b(U)?U:String(U)}(U),U in O?Object.defineProperty(O,U,{value:V,enumerable:!0,configurable:!0,writable:!0}):O[U]=V,O}var F=(I(p={},"".concat(e.default.operatorKey),e.default),I(p,"".concat(u.default.operatorKey),u.default),I(p,"".concat(n.default.operatorKey),n.default),I(p,"".concat(o.default.operatorKey),o.default),I(p,"".concat(a.default.operatorKey),a.default),I(p,"".concat(l.default.operatorKey),l.default),I(p,"".concat(d.default.operatorKey),d.default),I(p,"".concat(s.default.operatorKey),s.default),I(p,"".concat(A.default.operatorKey),A.default),I(p,"".concat(_.default.operatorKey),_.default),I(p,"".concat(R.default.operatorKey),R.default),I(p,"".concat(C.default.operatorKey),C.default),I(p,"".concat(x.default.operatorKey),x.default),I(p,"".concat(f.default.operatorKey),f.default),I(p,"".concat(k.default.operatorKey),k.default),I(p,"".concat(w.default.operatorKey),w.default),I(p,"".concat(g.default.operatorKey),g.default),I(p,"".concat(M.default.operatorKey),M.default),p);y.default=F},18646:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.applyFormChanges=function F(J,Q){var re=[];return Q.forEach(function(de){var te=!1;switch(de.op){case"add":var j=de.component;I(J.components,de.container,null,function(H){de.container||(H=J),I(J.components,de.key,null,function(q,se){j=q,L(J.components,se)}),te=!0,(0,e.default)(H,de.path).splice(de.index,0,j)});break;case"remove":I(J.components,de.key,null,function(H,z){te=!0,(0,e.default)(J.components,z).key!==H.key&&z.pop(),L(J.components,z)});break;case"edit":I(J.components,de.key,null,function(H,z){te=!0;try{var q=(0,e.default)(J.components,z),se=(0,x.applyPatch)(H,de.patches).newDocument;q.key!==se.key&&z.pop(),(0,n.default)(J.components,z,se)}catch{re.push(de)}})}te||re.push(de)}),{form:J,failed:re}},y.eachComponent=g,y.escapeRegExCharacters=function K(J){return J.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},y.findComponent=I,y.findComponents=function b(J,Q){return console.warn("formio.js/utils findComponents is deprecated. Use searchComponents instead."),E(J,Q)},y.flattenComponents=function P(J,Q){var re={};return g(J,function(de,te){re[te]=de},Q),re},y.formatAsCurrency=function V(J){var Q=U(J);if((0,d.default)(Q))return"";var re=(0,_.default)(Q,2).toString().split(".");return re[0]=(0,C.default)(Array.from(re[0]).reverse(),3).reverse().map(function(de){return de.reverse().join("")}).join(","),re[1]=(0,R.default)(re[1],2,"0"),re.join(".")},y.generateFormChange=function D(J,Q){var re;switch(J){case"add":re={op:"add",key:Q.component.key,container:Q.parent.key,path:Q.path,index:Q.index,component:Q.component};break;case"edit":(re={op:"edit",key:Q.originalComponent.key,patches:(0,x.compare)(Q.originalComponent,Q.component)}).patches.length||(re=null);break;case"remove":re={op:"remove",key:Q.component.key}}return re},y.getComponent=function p(J,Q,re){var de;return g(J,function(te,j){if(j===Q||te.path===Q)return de=te,!0},re),de},y.getStrings=function me(J){var Q=["label","title","legend","tooltip","description","placeholder","prefix","suffix","errorLabel","content","html"],re=[];return g(J.components,function(de){Q.forEach(function(j){de.hasOwnProperty(j)&&de[j]&&re.push({key:de.key,type:de.type,property:j,string:de[j]})}),(!de.dataSrc||"values"===de.dataSrc)&&de.hasOwnProperty("values")&&Array.isArray(de.values)&&de.values.length&&de.values.forEach(function(j,H){re.push({key:de.key,property:"value[".concat(H,"].label"),string:de.values[H].label})}),"day"===de.type&&(["day","month","year","Day","Month","Year","january","february","march","april","may","june","july","august","september","october","november","december"].forEach(function(j){re.push({key:de.key,property:"day",string:j})}),de.fields.day.placeholder&&re.push({key:de.key,property:"fields.day.placeholder",string:de.fields.day.placeholder}),de.fields.month.placeholder&&re.push({key:de.key,property:"fields.month.placeholder",string:de.fields.month.placeholder}),de.fields.year.placeholder&&re.push({key:de.key,property:"fields.year.placeholder",string:de.fields.year.placeholder})),"editgrid"===de.type&&de.addAnother&&re.push({key:de.key,property:"addAnother",string:de.addAnother||"Add Another"}),"select"===de.type&&["loading...","Type to search"].forEach(function(j){re.push({key:de.key,property:"select",string:j})})},!0),re},y.getValue=function X(J,Q){return function de(te){if((0,A.default)(te)){if((0,o.default)(te,Q))return f.default.get(te,Q);var j=null;return(0,l.default)(te,function(H){var z=de(H);if(!(0,s.default)(z))return j=z,!1}),j}return null}(J.data)},y.hasCondition=function O(J){return!!(J.customConditional||J.conditional&&(J.conditional.when||f.default.some(J.conditional.conditions||[],function(Q){return Q.component&&Q.operator})||J.conditional.json||J.conditional.condition))},y.isLayoutComponent=function w(J){return!!(J.columns&&Array.isArray(J.columns)||J.rows&&Array.isArray(J.rows)||J.components&&Array.isArray(J.components))},y.matchComponent=M,y.parseFloatExt=U,y.removeComponent=L,y.searchComponents=E,i(63975),i(49693),i(60228),i(47522),i(34338),i(97195),i(76801),i(89730),i(62506),i(98742),i(80939),i(64043),i(57267),i(30024),i(63945),i(6203),i(50886),i(93374),i(77049),i(21694),i(752),i(76265);var e=k(i(55440)),n=k(i(17939)),o=k(i(58669)),a=k(i(8734)),l=k(i(18679)),u=k(i(12164)),d=k(i(79253)),s=k(i(33018)),A=k(i(28168)),_=k(i(93241)),C=k(i(62871)),R=k(i(38236)),x=i(24487),f=k(i(6990));function k(J){return J&&J.__esModule?J:{default:J}}function g(J,Q,re,de,te,j){if(J){if(de=de||"",j){if(J.noRecurse)return void delete J.noRecurse;J.noRecurse=!0}J.forEach(function(H){if(H){var z=H.columns&&Array.isArray(H.columns),q=H.rows&&Array.isArray(H.rows),se=H.components&&Array.isArray(H.components),ne=!1,_e=H.key?de?"".concat(de,".").concat(H.key):H.key:"";te&&(H.parent=(0,a.default)(te),delete H.parent.components,delete H.parent.componentMap,delete H.parent.columns,delete H.parent.rows);var Ce=z||q||se&&!H.input||["htmlelement","content"].indexOf(H.type)>-1;(re||H.tree||!Ce)&&(ne=Q(H,_e,J));var Te=function(){return H.key&&!["panel","table","well","columns","fieldset","tabs","form"].includes(H.type)&&(["datagrid","container","editgrid","address","dynamicWizard","datatable","tagpad"].includes(H.type)||H.tree)?_e:H.key&&"form"===H.type?"".concat(_e,".data"):de};ne||(z?H.columns.forEach(function(De){return g(De.components,Q,re,Te(),te?H:null)},!0):q?H.rows.forEach(function(De){Array.isArray(De)&&De.forEach(function(fe){return g(fe.components,Q,re,Te(),te?H:null)},!0)}):se&&g(H.components,Q,re,Te(),te?H:null,!0))}}),J.noRecurse&&delete J.noRecurse}}function M(J,Q){if((0,u.default)(Q))return J.key===Q||J.path===Q;var re=!1;return(0,l.default)(Q,function(de,te){if(!(re=(0,e.default)(J,te)===de))return!1}),re}function E(J,Q){var re=[];return g(J,function(de){M(de,Q)&&re.push(de)},!0),re}function I(J,Q,re,de){if(J){if(re=re||[],!Q)return de(J);J.forEach(function(te,j){var H=re.slice();H.push(j),te&&(te.hasOwnProperty("columns")&&Array.isArray(te.columns)&&(H.push("columns"),te.columns.forEach(function(z,q){var se=H.slice();se.push(q),se.push("components"),I(z.components,Q,se,de)})),te.hasOwnProperty("rows")&&Array.isArray(te.rows)&&(H.push("rows"),te.rows.forEach(function(z,q){var se=H.slice();se.push(q),z.forEach(function(ne,_e){var ge=se.slice();ge.push(_e),ge.push("components"),I(ne.components,Q,ge,de)})})),te.hasOwnProperty("components")&&Array.isArray(te.components)&&(H.push("components"),I(te.components,Q,H,de)),te.key===Q&&de(te,H,J))})}}function L(J,Q){var re=Q.pop();0!==Q.length&&(J=(0,e.default)(J,Q)),J.splice(re,1)}function U(J){return parseFloat((0,u.default)(J)?J.replace(/[^\de.+-]/gi,""):J)}},14255:(he,y,i)=>{"use strict";i(51090),i(40739),i(81919),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(59749),i(86544),i(60228),i(84254),i(752),i(21694),i(76265);var e=function o(u,d){if(!d&&u&&u.__esModule)return u;if(null===u||"object"!==a(u)&&"function"!=typeof u)return{default:u};var s=n(d);if(s&&s.has(u))return s.get(u);var A={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in u)if("default"!==C&&Object.prototype.hasOwnProperty.call(u,C)){var R=_?Object.getOwnPropertyDescriptor(u,C):null;R&&(R.get||R.set)?Object.defineProperty(A,C,R):A[C]=u[C]}return A.default=u,s&&s.set(u,A),A}(i(12866));function n(u){if("function"!=typeof WeakMap)return null;var d=new WeakMap,s=new WeakMap;return(n=function(_){return _?s:d})(u)}function a(u){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(d){return typeof d}:function(d){return d&&"function"==typeof Symbol&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(u)}"object"===(typeof global>"u"?"undefined":a(global))&&(global.FormioUtils=e),y.default=e},72933:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.lodashOperators=void 0,y.lodashOperators=["chunk","compact","concat","difference","differenceBy","differenceWith","drop","dropRight","dropRightWhile","dropWhile","findIndex","findLastIndex","first","flatten","flattenDeep","flattenDepth","fromPairs","head","indexOf","initial","intersection","intersectionBy","intersectionWith","join","last","lastIndexOf","nth","slice","sortedIndex","sortedIndexBy","sortedIndexOf","sortedLastIndex","sortedLastIndexBy","sortedLastIndexOf","sortedUniq","sortedUniqBy","tail","take","takeRight","takeRightWhile","takeWhile","union","unionBy","unionWith","uniq","uniqBy","uniqWith","unzip","unzipWith","without","xor","xorBy","xorWith","zip","zipObject","zipObjectDeep","zipWith","countBy","every","filter","find","findLast","flatMap","flatMapDeep","flatMapDepth","groupBy","includes","invokeMap","keyBy","map","orderBy","partition","reduce","reduceRight","reject","sample","sampleSize","shuffle","size","some","sortBy","now","flip","negate","overArgs","partial","partialRight","rearg","rest","spread","castArray","clone","cloneDeep","cloneDeepWith","cloneDeep","conformsTo","eq","gt","gte","isArguments","isArray","isArrayBuffer","isArrayLike","isArrayLikeObject","isBoolean","isBuffer","isDate","isElement","isEmpty","isEqual","isEqualWith","isError","isFinite","isFunction","isInteger","isLength","isMap","isMatch","isMatchWith","isNaN","isNative","isNil","isNull","isNumber","isObject","isObjectLike","isPlainObject","isRegExp","isSafeInteger","isSet","isString","isSymbol","isTypedArray","isUndefined","isWeakMap","isWeakSet","lt","lte","toArray","toFinite","toInteger","toLength","toNumber","toPlainObject","toSafeInteger","toString","add","ceil","divide","floor","max","maxBy","mean","meanBy","min","minBy","multiply","round","subtract","sum","sumBy","clamp","inRange","random","at","entries","entriesIn","findKey","findLastKey","functions","functionsIn","get","has","hasIn","invert","invertBy","invoke","keys","keysIn","mapKeys","mapValues","omit","omitBy","pick","pickBy","result","toPairs","toPairsIn","transform","values","valuesIn","camelCase","capitalize","deburr","endsWith","escape","escapeRegExp","kebabCase","lowerCase","lowerFirst","pad","padEnd","padStart","parseInt","repeat","replace","snakeCase","split","startCase","startsWith","toLower","toUpper","trim","trimEnd","trimStart","truncate","unescape","upperCase","upperFirst","words","cond","conforms","constant","defaultTo","flow","flowRight","identity","iteratee","matches","matchesProperty","method","methodOf","nthArg","over","overEvery","overSome","property","propertyOf","range","rangeRight","stubArray","stubFalse","stubObject","stubString","stubTrue","times","toPath","uniqueId"]},12866:(he,y,i)=>{"use strict";i(59749),i(86544),i(84254),i(21694),i(77049),i(40739),i(69358),Object.defineProperty(y,"__esModule",{value:!0});var e={evaluate:!0,getRandomComponentId:!0,getPropertyValue:!0,getElementRect:!0,boolValue:!0,isMongoId:!0,checkCalculated:!0,checkSimpleConditional:!0,getComponentActualValue:!0,checkCustomConditional:!0,checkJsonConditional:!0,checkCondition:!0,checkTrigger:!0,setActionProperty:!0,unescapeHTML:!0,convertStringToHTMLElement:!0,uniqueName:!0,guid:!0,getDateSetting:!0,isValidDate:!0,currentTimezone:!0,offsetDate:!0,zonesLoaded:!0,shouldLoadZones:!0,loadZones:!0,momentDate:!0,formatDate:!0,formatOffset:!0,getLocaleDateFormatInfo:!0,convertFormatToFlatpickr:!0,convertFormatToMoment:!0,convertFormatToMask:!0,getInputMask:!0,unmaskValue:!0,matchInputMask:!0,getNumberSeparators:!0,getNumberDecimalLimit:!0,getCurrencyAffixes:!0,fieldData:!0,delay:!0,iterateKey:!0,uniqueKey:!0,bootstrapVersion:!0,unfold:!0,firstNonNil:!0,withSwitch:!0,observeOverload:!0,getContextComponents:!0,getContextButtons:!0,translateHTMLTemplate:!0,sanitize:!0,fastCloneDeep:!0,interpolate:!0,isInputComponent:!0,getArrayFromComponentPath:!0,hasInvalidComponent:!0,getStringFromComponentPath:!0,round:!0,getIEBrowserVersion:!0,getBrowserInfo:!0,getComponentPathWithoutIndicies:!0,getComponentPath:!0,getDataParentComponent:!0,isPromise:!0,isInsideScopingComponent:!0,getFocusableElements:!0,_:!0,jsonLogic:!0,moment:!0,Evaluator:!0,ConditionOperators:!0};Object.defineProperty(y,"ConditionOperators",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(y,"Evaluator",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(y,"_",{enumerable:!0,get:function(){return n.default}}),y.boolValue=function V(ot){return n.default.isBoolean(ot)?ot:n.default.isString(ot)?"true"===ot.toLowerCase():!!ot},y.bootstrapVersion=function Eo(ot){return ot.bootstrap?ot.bootstrap:"function"==typeof $&&"function"==typeof $().collapse?parseInt($.fn.collapse.Constructor.VERSION.split(".")[0],10):0},y.checkCalculated=function X(ot,pn,_i){ot.calculateValue&&n.default.set(_i,ot.key,F(ot.calculateValue,{value:void 0,data:pn?pn.data:_i,row:_i,util:this,component:ot},"value"))},y.checkCondition=function te(ot,pn,_i,wi,hi){var zn=ot.customConditional,Ei=ot.conditional;return zn?Q(0,zn,pn,_i,wi,"show",!0,hi):Ei&&(Ei.when||n.default.some(Ei.conditions||[],function(li){return li.component&&li.operator}))?me(ot,Ei,pn=de(ot,pn,hi),_i,hi):!Ei||!Ei.json||re(ot,Ei.json,pn,_i,wi,!0)},y.checkCustomConditional=Q,y.checkJsonConditional=re,y.checkSimpleConditional=me,y.checkTrigger=function j(ot,pn,_i,wi,hi,zn){if(!pn[pn.type])return!1;switch(pn.type){case"simple":return _i=de(ot,_i,zn,pn.simple),me(ot,pn.simple,_i,wi,zn);case"javascript":return Q(0,pn.javascript,_i,wi,hi,"result",!1,zn);case"json":return re(ot,pn.json,_i,wi,hi,!1)}return!1},y.convertFormatToFlatpickr=function An(ot){return ot.replace(/Z/g,"").replace(/y/g,"Y").replace("YYYY","Y").replace("YY","y").replace("MMMM","F").replace(/M/g,"n").replace("nnn","M").replace("nn","m").replace(/d/g,"j").replace(/jj/g,"d").replace("EEEE","l").replace("EEE","D").replace("HH","H").replace("hh","G").replace("mm","i").replace("ss","S").replace(/a/g,"K")},y.convertFormatToMask=function xn(ot){return ot.replace(/M{4}/g,"MM").replace(/M{3}/g,"***").replace(/e/g,"Q").replace(/[ydhmsHMG]/g,"9").replace(/a/g,"AA")},y.convertFormatToMoment=$n,y.convertStringToHTMLElement=function q(ot,pn){return(new window.DOMParser).parseFromString(ot,"text/html").body.querySelector(pn)},y.currentTimezone=Ce,y.delay=function nn(ot){for(var pn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,_i=arguments.length,wi=new Array(_i>2?_i-2:0),hi=2;hi<_i;hi++)wi[hi-2]=arguments[hi];var zn=setTimeout.apply(void 0,[ot,pn].concat(wi));function Ei(){clearTimeout(zn)}function li(){return Ei(),ot.apply(void 0,wi)}return li.timer=zn,li.cancel=Ei,li},y.evaluate=F,y.fastCloneDeep=function Bt(ot){return ot&&JSON.parse(JSON.stringify(ot))},y.fieldData=function yi(ot,pn){if(!ot)return"";if(!pn||!pn.key)return ot;if(pn.key.includes(".")){for(var _i=ot,wi=pn.key.split("."),hi="",zn=0;zn<wi.length;zn++){if(hi=wi[zn],_i.hasOwnProperty("_id")&&(_i=_i.data),!_i.hasOwnProperty(hi))return;hi===wi[wi.length-1]&&pn.multiple&&!Array.isArray(_i[hi])&&(_i[hi]=[_i[hi]]),_i=_i[hi]}return _i}return pn.multiple&&!Array.isArray(ot[pn.key])&&(ot[pn.key]=[ot[pn.key]]),"checkbox"===pn.type&&"radio"===pn.inputType?ot[pn.name]===pn.value:ot[pn.key]},y.firstNonNil=void 0,y.formatDate=function Le(ot,pn,_i,wi,hi){var zn=(0,l.default)(pn,hi||void 0);if(wi===Ce())return _i.match(/\s(z$|z\s)/)?(xe(ot),l.default.zonesLoaded?zn.tz(wi).format($n(_i)):zn.format($n(_i.replace(/\s(z$|z\s)/,"")))):zn.format($n(_i));if("UTC"===wi){var Ei=Te(zn.toDate(),"UTC");return"".concat((0,l.default)(Ei.date).format($n(_i))," UTC")}return xe(ot),l.default.zonesLoaded&&wi?zn.tz(wi).format("".concat($n(_i)," z")):zn.format($n(_i))},y.formatOffset=function Gt(ot,pn,_i,wi,hi){if(hi===Ce())return pn(_i,wi);if("UTC"===hi)return"".concat(pn(Te(_i,"UTC").date,wi)," UTC");if(xe(ot),l.default.zonesLoaded){var zn=Te(_i,hi);return"".concat(pn(zn.date,wi)," ").concat(zn.abbr)}return pn(_i,wi)},y.getArrayFromComponentPath=function wt(ot){return ot&&n.default.isString(ot)?ot.replace(/[[\]]/g,".").replace(/\.\./g,".").replace(/(^\.)|(\.$)/g,"").split(".").map(function(pn){return n.default.defaultTo(n.default.toNumber(pn),pn)}):n.default.isArray(ot)?ot:[ot]},y.getBrowserInfo=Ne,y.getComponentActualValue=J,y.getComponentPath=ln,y.getComponentPathWithoutIndicies=function vt(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\[\d+\]/,"")},y.getContextButtons=function En(ot){var pn=[];return ot.utils.eachComponent(ot.instance.options.editForm.components,function(_i){"button"===_i.type&&pn.push({label:"".concat(_i.key," (").concat(_i.label,")"),value:_i.key})}),pn},y.getContextComponents=function Ji(ot,pn){var _i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],wi=[];return ot.utils.eachComponent(ot.instance.options.editForm.components,function(hi,zn){hi.key!==ot.data.key&&(!pn||!hi.tree)&&!n.default.includes(_i,hi.type)&&wi.push({label:"".concat(hi.label||hi.key," (").concat(zn,")"),value:zn})}),wi},y.getCurrencyAffixes=function fn(ot){var pn=ot.currency,_i=void 0===pn?"USD":pn,wi=ot.decimalLimit,hi=ot.decimalSeparator,zn=ot.lang,Ei="(.*)?".concat(100..toLocaleString(zn));wi&&(Ei+="".concat("."===hi?"\\.":hi).concat((0).toLocaleString(zn),"{").concat(wi,"}")),Ei+="(.*)?";var li=100..toLocaleString(zn,{style:"currency",currency:_i,useGrouping:!0,maximumFractionDigits:wi||0,minimumFractionDigits:wi||0}).replace(".",hi).match(new RegExp(Ei));return{prefix:li?.[1]||"",suffix:li?.[2]||""}},y.getDataParentComponent=jn,y.getDateSetting=function _e(ot){if(n.default.isNil(ot)||n.default.isNaN(ot)||""===ot)return null;if(ot instanceof Date)return ot;if("function"==typeof ot.toDate)return ot.isValid()?ot.toDate():null;var pn="string"!=typeof ot||-1===ot.indexOf("moment(")?(0,l.default)(ot):null;if(pn&&pn.isValid())return pn.toDate();pn=null;try{var _i=C.default.evaluator("return ".concat(ot,";"),"moment")(l.default);"string"==typeof _i?pn=(0,l.default)(_i):"function"==typeof _i.toDate?pn=(0,l.default)(_i.toDate().toUTCString()):_i instanceof Date&&(pn=(0,l.default)(_i))}catch{return null}return pn&&pn.isValid()?pn.toDate():null},y.getElementRect=function U(ot){var pn=window.getComputedStyle(ot,null);return{x:O(pn,"left"),y:O(pn,"top"),width:O(pn,"width"),height:O(pn,"height")}},y.getFocusableElements=function si(ot){return ot.querySelectorAll("button:not([disabled]), input:not([disabled]), select:not([disabled]),\n    textarea:not([disabled]), button:not([disabled]), [href]")},y.getIEBrowserVersion=function tt(){var ot=Ne();return ot.ie?ot.version:null},y.getInputMask=function mt(ot,pn){if(ot instanceof Array)return ot;var _i=[];_i.numeric=!0;for(var wi=0;wi<ot.length;wi++)switch(ot[wi]){case"9":_i.push(/\d/);break;case"A":_i.numeric=!1,_i.push(/[a-zA-Z]/);break;case"a":_i.numeric=!1,_i.push(/[a-z]/);break;case"*":_i.numeric=!1,_i.push(/[a-zA-Z0-9]/);break;case pn:_i.numeric=!1,_i.push(" ");break;default:_i.numeric=!1,_i.push(ot[wi])}return _i},y.getLocaleDateFormatInfo=function Ut(ot){var pn={},hi=new Date(2017,11,21).toLocaleDateString(ot);return pn.dayFirst=hi.slice(0,2)===21..toString(),pn},y.getNumberDecimalLimit=function sn(ot,pn){if(n.default.has(ot,"decimalLimit"))return n.default.get(ot,"decimalLimit");var _i=pn||20,wi=n.default.get(ot,"validate.step","any");if("any"!==wi){var hi=wi.toString().split(".");hi.length>1&&(_i=hi[1].length)}return _i},y.getNumberSeparators=function dn(){var _i=12345.6789.toLocaleString(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en").match(/..(.)...(.)../);return _i?{delimiter:_i.length>1?_i[1]:",",decimalSeparator:_i.length>2?_i[2]:"."}:{delimiter:",",decimalSeparator:"."}},y.getPropertyValue=O,y.getRandomComponentId=function P(){return"e".concat(Math.random().toString(36).substring(7))},y.getStringFromComponentPath=function pt(ot){if(!n.default.isArray(ot))return ot;var pn="";return ot.forEach(function(_i,wi){n.default.isNumber(_i)?pn+="[".concat(_i,"]"):pn+=0===wi?_i:".".concat(_i)}),pn},y.guid=ne,y.hasInvalidComponent=function Mt(ot){return ot.getComponents().some(function(pn){return n.default.isArray(pn.components)?Mt(pn):pn.error})},y.interpolate=void 0,y.isInputComponent=function xt(ot){if(!1===ot.input||!0===ot.input)return ot.input;switch(ot.type){case"htmlelement":case"content":case"columns":case"fieldset":case"panel":case"table":case"tabs":case"well":case"button":return!1;default:return!0}},y.isInsideScopingComponent=function go(ot){if(arguments.length>1&&void 0!==arguments[1]&&!arguments[1]&&null!=ot&&ot.hasScopedChildren)return!0;var _i=jn(ot);return!(null==_i||!_i.hasScopedChildren)||!(null==_i||!_i.parent)&&go(_i.parent,!1)},y.isMongoId=function K(ot){return ot.toString().match(/^[0-9a-fA-F]{24}$/)},y.isPromise=function Pi(ot){return ot&&ot.then&&"function"==typeof ot.then&&"[object Promise]"===Object.prototype.toString.call(ot)},y.isValidDate=function ge(ot){return n.default.isDate(ot)&&!n.default.isNaN(ot.getDate())},y.iterateKey=Mi,Object.defineProperty(y,"jsonLogic",{enumerable:!0,get:function(){return a.default}}),y.loadZones=xe,y.matchInputMask=function Wt(ot,pn){if(!pn)return!0;if(ot.length>pn.length)return!1;for(var _i=0;_i<pn.length;_i++){var wi=ot[_i]||"",hi=pn[_i];if(!(n.default.isRegExp(hi)&&hi.test(wi)||hi===wi))return!1}return!0},Object.defineProperty(y,"moment",{enumerable:!0,get:function(){return l.default}}),y.momentDate=function Oe(ot,pn,_i){var wi=(0,l.default)(ot);return _i?("UTC"===_i&&(_i="Etc/UTC"),(_i!==Ce()||pn&&pn.match(/\s(z$|z\s)/))&&l.default.zonesLoaded?wi.tz(_i):wi):wi},y.observeOverload=function Xt(ot){var pn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},_i=pn.limit,wi=void 0===_i?50:_i,hi=pn.delay,zn=void 0===hi?500:hi,Ei=0,li=0,Xi=function(){return Ei=0};return function(){if(0!==li&&(clearTimeout(li),li=0),li=setTimeout(Xi,zn),(Ei+=1)>=wi)return clearTimeout(li),Xi(),ot()}},y.offsetDate=Te,y.round=function Lt(ot,pn){return n.default.isNumber(ot)?ot.toFixed(pn):ot},y.sanitize=function It(ot,pn){if("function"!=typeof A.default.sanitize)return ot;var _i={ADD_ATTR:["ref","target"],USE_PROFILES:{html:!0}};return pn.sanitizeConfig&&Array.isArray(pn.sanitizeConfig.addAttr)&&pn.sanitizeConfig.addAttr.length>0&&pn.sanitizeConfig.addAttr.forEach(function(wi){_i.ADD_ATTR.push(wi)}),pn.sanitizeConfig&&Array.isArray(pn.sanitizeConfig.addTags)&&pn.sanitizeConfig.addTags.length>0&&(_i.ADD_TAGS=pn.sanitizeConfig.addTags),pn.sanitizeConfig&&Array.isArray(pn.sanitizeConfig.allowedTags)&&pn.sanitizeConfig.allowedTags.length>0&&(_i.ALLOWED_TAGS=pn.sanitizeConfig.allowedTags),pn.sanitizeConfig&&Array.isArray(pn.sanitizeConfig.allowedAttrs)&&pn.sanitizeConfig.allowedAttrs.length>0&&(_i.ALLOWED_ATTR=pn.sanitizeConfig.allowedAttrs),pn.sanitizeConfig&&pn.sanitizeConfig.allowedUriRegex&&(_i.ALLOWED_URI_REGEXP=pn.sanitizeConfig.allowedUriRegex),pn.sanitizeConfig&&Array.isArray(pn.sanitizeConfig.addUriSafeAttr)&&pn.sanitizeConfig.addUriSafeAttr.length>0&&(_i.ADD_URI_SAFE_ATTR=pn.sanitizeConfig.addUriSafeAttr),A.default.sanitize(ot,_i)},y.setActionProperty=function H(ot,pn,_i,wi,hi,zn){var Ei=pn.property.value;switch(pn.property.type){case"boolean":var li=n.default.get(ot,Ei,!1).toString(),Xi=pn.state.toString();li!==Xi&&n.default.set(ot,Ei,"true"===Xi);break;case"string":var ki={data:hi,row:wi,component:ot,result:_i},bo=pn.property.component?pn[pn.property.component]:pn.text,jo=n.default.get(ot,Ei,""),wn=zn&&zn.interpolate?zn.interpolate(bo,ki):C.default.interpolate(bo,ki);wn!==jo&&n.default.set(ot,Ei,wn)}return ot},y.shouldLoadZones=fe,y.translateHTMLTemplate=function oi(ot,pn){if(!/<[^>]*>/.test(ot))return pn(ot);var wi=document.createElement("div");return wi.innerHTML=ot,wi.innerText&&wi.children.length?(Fn(wi,pn),wi.innerHTML):ot},y.unescapeHTML=function z(ot){return typeof window>"u"||!("DOMParser"in window)?ot:(new window.DOMParser).parseFromString(ot,"text/html").documentElement.textContent},y.unfold=Ko,y.uniqueKey=function mi(ot,pn){for(var _i=pn;ot.hasOwnProperty(_i);)_i=Mi(_i);return _i},y.uniqueName=function se(ot,pn,_i){(pn=pn||"{{fileName}}-{{guid}}").includes("{{guid}}")||(pn="".concat(pn,"-{{guid}}"));var wi=ot.split("."),hi=wi.slice(0,wi.length-1).join("."),zn=wi.length>1?".".concat(n.default.last(wi)):"";return hi=hi.substr(0,100),_i=Object.assign(_i||{},{fileName:hi,guid:ne()}),"".concat(C.default.interpolate(pn,_i)).concat(zn).replace(/[^0-9a-zA-Z.\-_ ]/g,"-")},y.unmaskValue=function ut(ot,pn,_i){if(!pn||!ot||ot.length>pn.length)return ot;for(var wi=ot.split(""),hi=0;hi<pn.length;hi++){var zn=ot[hi]||"",Ei=pn[hi];!n.default.isRegExp(Ei)&&zn===Ei&&(wi[hi]="")}return wi.join("").replace(_i,"")},y.withSwitch=function Bn(ot,pn){var _i=ot,wi=pn;return[function hi(){return _i},function zn(){var Ei=_i;_i=wi,wi=Ei}]},y.zonesLoaded=function De(){return l.default.zonesLoaded},i(49693),i(60228),i(47522),i(65007),i(64043),i(57267),i(97195),i(752),i(76265),i(30024),i(63945),i(80939),i(22462),i(63975),i(76801),i(43843),i(50886),i(98742),i(55791),i(34338),i(268),i(6203),i(89730),i(60429),i(34284),i(52003),i(96869),i(79288),i(32320),i(25728),i(28436),i(97389);var n=x(i(6990)),o=x(i(7191)),a=x(i(50426)),l=x(i(78094)),u=x(i(81562)),d=i(72933),s=x(i(73808)),A=x(i(70896)),_=i(18646);Object.keys(_).forEach(function(ot){"default"===ot||"__esModule"===ot||Object.prototype.hasOwnProperty.call(e,ot)||ot in y&&y[ot]===_[ot]||Object.defineProperty(y,ot,{enumerable:!0,get:function(){return _[ot]}})});var C=x(i(22851)),R=x(i(18735));function x(ot){return ot&&ot.__esModule?ot:{default:ot}}function p(ot,pn){(null==pn||pn>ot.length)&&(pn=ot.length);for(var _i=0,wi=new Array(pn);_i<pn;_i++)wi[_i]=ot[_i];return wi}function E(ot){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(pn){return typeof pn}:function(pn){return pn&&"function"==typeof Symbol&&pn.constructor===Symbol&&pn!==Symbol.prototype?"symbol":typeof pn})(ot)}y.interpolate=C.default.interpolate;var L=(0,o.default)({Promise:s.default}).fetch;function F(ot,pn,_i,wi){var hi=null,zn=pn.component?pn.component:{key:"unknown"};!pn.form&&pn.instance&&(pn.form=n.default.get(pn.instance,"root._form",{}));var Ei=zn.key;if("string"==typeof ot){_i&&(ot+=";return ".concat(_i)),wi&&(ot=ot.replace(/({{\s+(.*)\s+}})/,function(li,Xi,ki){return 0===ki.indexOf("data.")?n.default.get(pn.data,ki.replace("data.","")):0===ki.indexOf("row.")?n.default.get(pn.row,ki.replace("row.","")):n.default.get(pn.data,ki)}));try{ot=C.default.evaluator(ot,pn),pn=n.default.values(pn)}catch(li){console.warn("An error occured within the custom function for ".concat(Ei),li),hi=null,ot=!1}}if("function"==typeof ot)try{hi=C.default.evaluate(ot,pn)}catch(li){hi=null,console.warn("An error occured within custom function for ".concat(Ei),li)}else if("object"===E(ot))try{hi=a.default.apply(ot,pn)}catch(li){hi=null,console.warn("An error occured within custom function for ".concat(Ei),li)}else ot&&console.warn("Unknown function type for ".concat(Ei));return hi}function O(ot,pn){var _i=ot.getPropertyValue(pn);return _i=_i?_i.replace(/[^0-9.]/g,""):"0",parseFloat(_i)}function me(ot,pn,_i,wi,hi){if(pn.when){var zn=J(pn.when,wi,_i),Ei=String(pn.eq),li=String(pn.show);return n.default.isObject(zn)&&n.default.has(zn,pn.eq)?String(zn[pn.eq])===li:Array.isArray(zn)&&zn.map(String).includes(Ei)?"true"===li:String(zn)===Ei==("true"===li)}var Xi=pn.conditions,ki=void 0===Xi?[]:Xi,bo=pn.conjunction,jo=void 0===bo?"all":bo,wn=pn.show,Zi=void 0===wn||wn;if(!ki.length)return!0;var oo=n.default.map(ki,function(Xo){var Lo=Xo.value,or=Xo.operator,xr=Xo.component;if(!xr)return!0;var Nr=J(xr,wi,_i),as=R.default[or];return!as||(new as).getResult({value:Nr,comparedValue:Lo,instance:hi,component:ot,conditionComponentPath:xr})}),Bi=!1;return Bi="any"===jo?n.default.some(oo,function(Xo){return!!Xo}):n.default.every(oo,function(Xo){return!!Xo}),Zi?Bi:!Bi}function J(ot,pn,_i){var wi=null;return _i&&(wi=(0,_.getValue)({data:_i},ot)),pn&&n.default.isNil(wi)&&(wi=(0,_.getValue)({data:pn},ot)),(n.default.isNil(wi)||n.default.isObject(wi)&&n.default.isEmpty(wi))&&(wi=""),wi}function Q(ot,pn,_i,wi,hi,zn,Ei,li){"string"==typeof pn&&(pn="var ".concat(zn," = true; ").concat(pn,"; return ").concat(zn,";"));var Xi=li&&li.evaluate?li.evaluate(pn,{row:_i,data:wi,form:hi}):F(pn,{row:_i,data:wi,form:hi});return null===Xi?Ei:Xi}function re(ot,pn,_i,wi,hi,zn){try{return a.default.apply(pn,{data:wi,row:_i,form:hi,_:n.default})}catch(Ei){return console.warn("An error occurred in jsonLogic advanced condition for ".concat(ot.key),Ei),zn}}function de(ot,pn,_i,wi){var hi,zn=wi||ot.conditional;_i||function D(ot){ot.path=ln(ot);var pn=jn(ot);pn&&"object"===E(pn)&&(pn.path=ln(pn))}(_i=n.default.cloneDeep(ot));var Ei=jn(_i),li=Ei?ln(Ei):null,Xi=zn.when||!zn.conditions?null===(hi=zn.when)||void 0===hi?void 0:hi.startsWith(li):n.default.some(zn.conditions,function(bo){return bo.component.startsWith(li)});if(Ei&&Xi){var ki={};n.default.set(ki,li,pn),pn=ki}return pn}function ne(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(ot){var pn=16*Math.random()|0;return("x"===ot?pn:3&pn|8).toString(16)})}function Ce(){return l.default.currentTimezone||(l.default.currentTimezone=u.default.determine().name()),l.default.currentTimezone}function Te(ot,pn){if("UTC"===pn)return{date:new Date(ot.getTime()+6e4*ot.getTimezoneOffset()),abbr:"UTC"};var _i=(0,l.default)(ot).tz(pn);return{date:new Date(ot.getTime()+6e4*(_i.utcOffset()+ot.getTimezoneOffset())),abbr:_i.format("z")}}function fe(ot){return!(ot===Ce()||"UTC"===ot)}function xe(ot,pn){return pn&&!fe(pn)?new s.default(n.default.noop):l.default.zonesPromise?l.default.zonesPromise:l.default.zonesPromise=L(ot).then(function(_i){return _i.json().then(function(wi){if(l.default.tz.load(wi),l.default.zonesLoaded=!0,document&&document.createEvent&&document.body&&document.body.dispatchEvent){var hi=document.createEvent("Event");hi.initEvent("zonesLoaded",!0,!0),document.body.dispatchEvent(hi)}})})}function $n(ot){return ot.replace(/y/g,"Y").replace(/d/g,"D").replace(/E/g,"d").replace(/a/g,"A").replace(/U/g,"X")}function Mi(ot){return ot.match(/(\d+)$/)?ot.replace(/(\d+)$/,function(pn){return Number(pn)+1}):"".concat(ot,"1")}function Ko(ot){return"function"==typeof ot?ot():ot}d.lodashOperators.forEach(function(ot){return a.default.add_operation("_".concat(ot),n.default[ot])}),a.default.add_operation("getDate",function(ot){return(0,l.default)(ot).toISOString()}),a.default.add_operation("relativeMinDate",function(ot){return(0,l.default)().subtract(ot,"days").toISOString()}),a.default.add_operation("relativeMaxDate",function(ot){return(0,l.default)().add(ot,"days").toISOString()});var xo=n.default.flow([n.default.partialRight(n.default.map,Ko),n.default.partialRight(n.default.find,function(ot){return!n.default.isUndefined(ot)})]);y.firstNonNil=xo;var un=["#text","A","B","EM","I","SMALL","STRONG","SUB","SUP","INS","DEL","MARK","CODE"];function Ki(ot,pn){if(!ot.innerText)return ot.innerHTML;var _i=ot.innerText.replace(C.default.templateSettings.interpolate,"").replace(/\s\s+/g," ").trim(),wi=pn(_i);if(_i!==wi){var hi=ot.innerHTML.match(/<a[^>]*>(.*?)<\/a>/g);if(hi&&hi.length){if(1===hi.length&&hi[0].length===ot.innerHTML.length)return ot.innerHTML.replace(_i,wi);var zn=hi.map(function(Ei){var li=document.createElement("a");return li.innerHTML=Ei,Ki(li,pn)});return"".concat(wi," (").concat(zn.join(", "),")")}return ot.innerText.replace(_i,wi)}return ot.innerHTML}function Fn(ot,pn){var _i=ot.children.length&&function f(ot){return function M(ot){if(Array.isArray(ot))return p(ot)}(ot)||function g(ot){if(typeof Symbol<"u"&&null!=ot[Symbol.iterator]||null!=ot["@@iterator"])return Array.from(ot)}(ot)||function w(ot,pn){if(ot){if("string"==typeof ot)return p(ot,pn);var _i=Object.prototype.toString.call(ot).slice(8,-1);if("Object"===_i&&ot.constructor&&(_i=ot.constructor.name),"Map"===_i||"Set"===_i)return Array.from(ot);if("Arguments"===_i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_i))return p(ot,pn)}}(ot)||function k(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(ot.children),wi=_i&&_i.every(function(hi){return 0===hi.children.length&&un.some(function(zn){return hi.nodeName===zn})});!_i||wi?ot.innerHTML=Ki(ot,pn):_i.forEach(function(hi){return Fn(hi,pn)})}function Ne(){var ot={};if(typeof window>"u")return ot;var pn=window.navigator.userAgent.toLowerCase(),_i=/(edge|edg)\/([\w.]+)/.exec(pn)||/(opr)[/]([\w.]+)/.exec(pn)||/(yabrowser)[ /]([\w.]+)/.exec(pn)||/(chrome)[ /]([\w.]+)/.exec(pn)||/(iemobile)[/]([\w.]+)/.exec(pn)||/(version)(applewebkit)[ /]([\w.]+).*(safari)[ /]([\w.]+)/.exec(pn)||/(webkit)[ /]([\w.]+).*(version)[ /]([\w.]+).*(safari)[ /]([\w.]+)/.exec(pn)||/(webkit)[ /]([\w.]+)/.exec(pn)||/(opera)(?:.*version|)[ /]([\w.]+)/.exec(pn)||/(msie) ([\w.]+)/.exec(pn)||pn.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(pn)||pn.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(pn)||[],wi={browser:_i[5]||_i[3]||_i[1]||"",version:_i[4]||_i[2]||"0"};return wi.browser&&(ot[wi.browser]=!0,ot.version=parseInt(wi.version,10)),(ot.chrome||ot.opr||ot.safari||ot.edg||ot.yabrowser)&&(ot.isWebkit=!0),(ot.rv||ot.iemobile)&&(ot.ie=!0),ot.edg&&(ot.edge=!0),ot.opr&&(ot.opera=!0),ot}function ln(ot){var pn,_i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return ot&&ot.key&&"wizard"!==(null==ot||null===(pn=ot._form)||void 0===pn?void 0:pn.display)?(_i=ot.isInputComponent||!0===ot.input?"".concat(ot.key).concat(_i?".":"").concat(_i):_i,ln(ot.parent,_i)):_i}function jn(ot){if(ot){var pn=ot.parent;return pn&&(pn.isInputComponent||pn.input)?pn:jn(pn)}}},87808:(he,y,i)=>{"use strict";i(40739),i(69358),i(38077),i(81919),i(49693),i(47522),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var e=function n(x){return x&&x.__esModule?x:{default:x}}(i(35427));function o(x){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"==typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(x)}function a(x,f){var k=Object.keys(x);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(x);f&&(w=w.filter(function(g){return Object.getOwnPropertyDescriptor(x,g).enumerable})),k.push.apply(k,w)}return k}function l(x){for(var f=1;f<arguments.length;f++){var k=null!=arguments[f]?arguments[f]:{};f%2?a(Object(k),!0).forEach(function(w){A(x,w,k[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(k)):a(Object(k)).forEach(function(w){Object.defineProperty(x,w,Object.getOwnPropertyDescriptor(k,w))})}return x}function d(x,f){for(var k=0;k<f.length;k++){var w=f[k];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(x,_(w.key),w)}}function A(x,f,k){return(f=_(f))in x?Object.defineProperty(x,f,{value:k,enumerable:!0,configurable:!0,writable:!0}):x[f]=k,x}function _(x){var f=function C(x,f){if("object"!==o(x)||null===x)return x;var k=x[Symbol.toPrimitive];if(void 0!==k){var w=k.call(x,f||"default");if("object"!==o(w))return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===f?String:Number)(x)}(x,"string");return"symbol"===o(f)?f:String(f)}var R=function(){function x(){!function u(x,f){if(!(x instanceof f))throw new TypeError("Cannot call a class as a function")}(this,x)}return function s(x,f,k){f&&d(x.prototype,f),k&&d(x,k),Object.defineProperty(x,"prototype",{writable:!1})}(x,null,[{key:"addRule",value:function(k,w){x.rules[k]=w}},{key:"addRules",value:function(k){x.rules=l(l({},x.rules),k)}},{key:"getRule",value:function(k){return x.rules[k]}},{key:"getRules",value:function(){return x.rules}}]),x}();y.default=R,A(R,"rules",e.default)},70342:(he,y,i)=>{"use strict";i(40739),i(84254),i(752),i(21694),i(76265),i(89730),i(34284),i(77049),Object.defineProperty(y,"__esModule",{value:!0}),y.default=y.ValidationChecker=void 0,i(98742),i(60228),i(64043),i(9873),i(278),i(34338),i(52003),i(63945),i(30024),i(63975),i(38077),i(76801),i(43843),i(6203),i(50886),i(80939),i(45993),i(79288),i(69358),i(32320),i(28436),i(22462),i(57267),i(49693),i(47522),i(86466),i(69373),i(59903),i(59749),i(86544);var e=s(i(6990)),n=i(12866),o=s(i(16676)),a=s(i(73808)),l=s(i(7191)),u=i(81587),d=s(i(87808));function s(X){return X&&X.__esModule?X:{default:X}}function A(X){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(me){return typeof me}:function(me){return me&&"function"==typeof Symbol&&me.constructor===Symbol&&me!==Symbol.prototype?"symbol":typeof me})(X)}function _(X){return function x(X){if(Array.isArray(X))return g(X)}(X)||function R(X){if(typeof Symbol<"u"&&null!=X[Symbol.iterator]||null!=X["@@iterator"])return Array.from(X)}(X)||w(X)||function C(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(X,me){if(X){if("string"==typeof X)return g(X,me);var J=Object.prototype.toString.call(X).slice(8,-1);if("Object"===J&&X.constructor&&(J=X.constructor.name),"Map"===J||"Set"===J)return Array.from(X);if("Arguments"===J||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return g(X,me)}}function g(X,me){(null==me||me>X.length)&&(me=X.length);for(var J=0,Q=new Array(me);J<me;J++)Q[J]=X[J];return Q}function b(X,me){for(var J=0;J<me.length;J++){var Q=me[J];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(X,L(Q.key),Q)}}function L(X){var me=function D(X,me){if("object"!==A(X)||null===X)return X;var J=X[Symbol.toPrimitive];if(void 0!==J){var Q=J.call(X,me||"default");if("object"!==A(Q))return Q;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===me?String:Number)(X)}(X,"string");return"symbol"===A(me)?me:String(me)}var F=(0,l.default)({Promise:a.default}),P=F.fetch,O=F.Headers,U=F.Request,V=function(){function X(){var me=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(function E(X,me){if(!(X instanceof me))throw new TypeError("Cannot call a class as a function")})(this,X),this.config=e.default.defaults(me,X.config),this.validators={required:{key:"validate.required",method:"validateRequired",hasLabel:!0,message:function(Q){return Q.t(Q.errorMessage("required"),{field:Q.errorLabel,data:Q.data})},check:function(Q,re,de){if(!(0,n.boolValue)(re)||Q.isValueHidden())return!0;var te=Q.validators.some(function(j){return"calendar"===j});return!de&&te&&Q.widget.enteredDate?!this.validators.calendar.check.call(this,Q,re,de):!Q.isEmpty(de)}},onlyAvailableItems:{key:"validate.onlyAvailableItems",method:"validateValueAvailability",hasLabel:!0,message:function(Q){return Q.t(Q.errorMessage("valueIsNotAvailable"),{field:Q.errorLabel,data:Q.data})},check:function(Q,re){return!(0,n.boolValue)(re)}},unique:{key:"validate.unique",hasLabel:!0,message:function(Q){return Q.t(Q.errorMessage("unique"),{field:Q.errorLabel,data:Q.data})},check:function(Q,re,de){var te=this;return!((0,n.boolValue)(re)&&de&&(!e.default.isObjectLike(de)||!e.default.isEmpty(de))&&this.config.db)||new a.default(function(j){var ge,H=te.config.form,z=te.config.submission,q="data.".concat(Q.path),se=function(De,fe,xe){var Oe=xe.split(/\[\d+\]?./),Gt=xe;if(Oe.length>1){Gt=Oe.shift();var Ut={};e.default.reduce(Oe,function(An,$n,xn){var mt=xn===Oe.length-1,ut=e.default.get(Ut,An,Ut),Wt="$elemMatch['".concat($n,"']");return e.default.set(ut,Wt,mt?De:{}),An?"".concat(An,".").concat(Wt):Wt},""),fe[Gt]=Ut}else fe[Gt]=De},ne={form:H._id},_e={};e.default.isString(de)?Q.component.dbIndex?se(de,ne,q):"email"===Q.component.type||"textfield"===Q.component.type&&"[A-Za-z0-9]+"===(null===(ge=Q.component.validate)||void 0===ge?void 0:ge.pattern)?(se(de,ne,q),_e={collation:{locale:"en",strength:2}}):se({$regex:new RegExp("^".concat((0,n.escapeRegExCharacters)(de),"$")),$options:"i"},ne,q):e.default.isPlainObject(de)&&de.address&&de.address.address_components&&de.address.place_id?se({$regex:new RegExp("^".concat((0,n.escapeRegExCharacters)(de.address.place_id),"$")),$options:"i"},ne,"".concat(q,".address.place_id")):e.default.isArray(de)?se({$all:de},ne,q):(e.default.isObject(de)||e.default.isNumber(de))&&se({$eq:de},ne,q),ne.deleted={$eq:null},ne.state="submitted";var Ce=function(De,fe){return De?j(!1):fe?z._id&&fe._id.toString()===z._id?void j(!0):(Q.conflictId=fe._id.toString(),j(!1)):j(!0)};te.config.db.findOne(ne,null,_e,function(Te,De){if(!Te||!_e.collation)return Ce(Te,De);delete ne[q],se({$regex:new RegExp("^".concat((0,n.escapeRegExCharacters)(de),"$")),$options:"i"},ne,q),te.config.db.findOne(ne,Ce)})}).catch(function(){return!1})}},multiple:{key:"validate.multiple",hasLabel:!0,message:function(Q){var re=(0,n.boolValue)(Q.component.multiple)||Array.isArray(Q.emptyValue);return Q.t(Q.errorMessage(re?Q.component.validate.required?"array_nonempty":"array":"nonarray"),{field:Q.errorLabel,data:Q.data})},check:function(Q,re,de){if(!Q.validateMultiple())return!0;var te=(0,n.boolValue)(re),j=Array.isArray(Q.emptyValue),H=Array.isArray(de),z=Q.component.validate.required;return te?H?!z||!!de.length:!!e.default.isNil(de)&&!z:j||!H}},select:{key:"validate.select",hasLabel:!0,message:function(Q){return Q.t(Q.errorMessage("select"),{field:Q.errorLabel,data:Q.data})},check:function(Q,re,de,te,j,H,z){if(!(0,n.boolValue)(re)||!de||e.default.isEmpty(de)||!z)return!0;var q=Q.component,se={url:re,method:"GET",qs:{},json:!0,headers:{}};if(e.default.isBoolean(se.url)){if(se.url=!!se.url,!se.url||"url"!==q.dataSrc||!q.data.url||!q.searchField)return!0;se.url=q.data.url,se.qs[q.searchField]=de,q.filter&&(se.url+=(se.url.includes("?")?"&":"?")+q.filter),q.selectFields&&(se.qs.select=q.selectFields)}return!se.url||(se.url=(0,n.interpolate)(se.url,{data:Q.data}),se.url+=(se.url.includes("?")?"&":"?")+e.default.chain(se.qs).map(function(ne,_e){return"".concat(encodeURIComponent(_e),"=").concat(encodeURIComponent(ne))}).join("&").value(),q.data&&q.data.headers&&e.default.each(q.data.headers,function(ne){ne.key&&(se.headers[ne.key]=ne.value)}),q.authenticate&&this.config.token&&(se.headers["x-jwt-token"]=this.config.token),P(new U(se.url,{headers:new O(se.headers)})).then(function(ne){return!!ne.ok&&ne.json()}).then(function(ne){return ne&&ne.length}).catch(function(){return!1}))}},min:{key:"validate.min",hasLabel:!0,message:function(Q,re){return Q.t(Q.errorMessage("min"),{field:Q.errorLabel,min:parseFloat(re),data:Q.data})},check:function(Q,re,de){var te=parseFloat(re),j=parseFloat(de);return!(!Number.isNaN(te)&&!Number.isNaN(j))||j>=te}},max:{key:"validate.max",hasLabel:!0,message:function(Q,re){return Q.t(Q.errorMessage("max"),{field:Q.errorLabel,max:parseFloat(re),data:Q.data})},check:function(Q,re,de){var te=parseFloat(re),j=parseFloat(de);return!(!Number.isNaN(te)&&!Number.isNaN(j))||j<=te}},minSelectedCount:{key:"validate.minSelectedCount",message:function(Q,re){return Q.component.minSelectedCountMessage?Q.component.minSelectedCountMessage:Q.t(Q.errorMessage("minSelectedCount"),{minCount:parseFloat(re),data:Q.data})},check:function(Q,re,de){var te=parseFloat(re);if(!te)return!0;var j=Object.keys(de).reduce(function(H,z){return de[z]&&H++,H},0);return!j||j>=te}},maxSelectedCount:{key:"validate.maxSelectedCount",message:function(Q,re){return Q.component.maxSelectedCountMessage?Q.component.maxSelectedCountMessage:Q.t(Q.errorMessage("maxSelectedCount"),{minCount:parseFloat(re),data:Q.data})},check:function(Q,re,de){var te=parseFloat(re);return!te||Object.keys(de).reduce(function(H,z){return de[z]&&H++,H},0)<=te}},minLength:{key:"validate.minLength",hasLabel:!0,message:function(Q,re){return Q.t(Q.errorMessage("minLength"),{field:Q.errorLabel,length:re,data:Q.data})},check:function(Q,re,de){var te=parseInt(re,10);return!(de&&te&&"string"==typeof de&&!Q.isEmpty(de))||de.length>=te}},maxLength:{key:"validate.maxLength",hasLabel:!0,message:function(Q,re){return Q.t(Q.errorMessage("maxLength"),{field:Q.errorLabel,length:re,data:Q.data})},check:function(Q,re,de){var te=parseInt(re,10);return!te||"string"!=typeof de||de.length<=te}},maxWords:{key:"validate.maxWords",hasLabel:!0,message:function(Q,re){return Q.t(Q.errorMessage("maxWords"),{field:Q.errorLabel,length:re,data:Q.data})},check:function(Q,re,de){var te=parseInt(re,10);return!te||"string"!=typeof de||de.trim().split(/\s+/).length<=te}},minWords:{key:"validate.minWords",hasLabel:!0,message:function(Q,re){return Q.t(Q.errorMessage("minWords"),{field:Q.errorLabel,length:re,data:Q.data})},check:function(Q,re,de){var te=parseInt(re,10);return!te||!de||"string"!=typeof de||de.trim().split(/\s+/).length>=te}},email:{hasLabel:!0,message:function(Q){return Q.t(Q.errorMessage("invalid_email"),{field:Q.errorLabel,data:Q.data})},check:function(Q,re,de){return!de||/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(de)}},url:{hasLabel:!0,message:function(Q){return Q.t(Q.errorMessage("invalid_url"),{field:Q.errorLabel,data:Q.data})},check:function(Q,re,de){return!de||/^(?:(?:(?:https?|ftp):)?\/\/)?(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(de)&&!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(de)}},date:{hasLabel:!0,message:function(Q){return Q.t(Q.errorMessage("invalid_date"),{field:Q.errorLabel,data:Q.data})},check:function(Q,re,de){return!de||"Invalid date"!==de&&"Invalid Date"!==de&&("string"==typeof de&&(de=new Date(de)),de instanceof Date&&"Invalid Date"!==de.toString())}},day:{hasLabel:!0,message:function(Q){return Q.t(Q.errorMessage("invalid_day"),{field:Q.errorLabel,data:Q.data})},check:function(Q,re,de){if(!de)return!0;var j=function f(X,me){return function p(X){if(Array.isArray(X))return X}(X)||function M(X,me){var J=null==X?null:typeof Symbol<"u"&&X[Symbol.iterator]||X["@@iterator"];if(null!=J){var Q,re,de,te,j=[],H=!0,z=!1;try{if(de=(J=J.call(X)).next,0===me){if(Object(J)!==J)return;H=!1}else for(;!(H=(Q=de.call(J)).done)&&(j.push(Q.value),j.length!==me);H=!0);}catch(q){z=!0,re=q}finally{try{if(!H&&null!=J.return&&(te=J.return(),Object(te)!==te))return}finally{if(z)throw re}}return j}}(X,me)||w(X,me)||function k(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Q.dayFirst?[0,1,2]:[1,0,2],3),H=j[0],z=j[1],q=j[2],se=de.split("/").map(function(fe){return parseInt(fe,10)}),ne=se[H],_e=se[z],ge=se[q],Ce=function De(fe,xe){switch(fe){case 1:case 3:case 5:case 7:case 8:case 10:case 12:default:return 31;case 4:case 6:case 9:case 11:return 30;case 2:return function Te(fe){return!(fe%400&&(!(fe%100)||fe%4))}(xe)?29:28}}(_e,ge);return!(ne<0||ne>Ce||_e<0||_e>12||ge<0||ge>9999)}},pattern:{key:"validate.pattern",hasLabel:!0,message:function(Q,re){return Q.t(e.default.get(Q,"component.validate.patternMessage",Q.errorMessage("pattern")),{field:Q.errorLabel,pattern:re,data:Q.data})},check:function(Q,re,de){return!!Q.isEmpty(de)||(!re||new RegExp("^".concat(re,"$")).test(de))}},json:{key:"validate.json",check:function(Q,re,de,te,j,H){if(!re)return!0;var z=Q.evaluate(re,{data:te,row:H,rowIndex:j,input:de});return null===z||z}},mask:{key:"inputMask",hasLabel:!0,message:function(Q){return Q.t(Q.errorMessage("mask"),{field:Q.errorLabel,data:Q.data})},check:function(Q,re,de){var te;if(Q.isMultipleMasksField){var H=Q.getMaskByName(de?de.maskName:void 0);H&&(te=H),de=de&&de.value}else te=re;return te=te?(0,n.getInputMask)(te):null,!(de&&te&&!Q.skipMaskValidation)||(te=te.map(function(z){return z===Q.placeholderChar?" ":z}),(0,n.matchInputMask)(de,te))}},custom:{key:"validate.custom",message:function(Q){return Q.t(Q.errorMessage("custom"),{field:Q.errorLabel,data:Q.data})},check:function(Q,re,de,te,j,H){if(!re)return!0;var z=Q.evaluate(re,{valid:!0,data:te,rowIndex:j,row:H,input:de},"valid",!0);return null===z||z}},maxDate:{key:"maxDate",hasLabel:!0,message:function(Q,re){var de=(0,n.getDateSetting)(re);return Q.t(Q.errorMessage("maxDate"),{field:Q.errorLabel,maxDate:(0,o.default)(de).format(Q.format)})},check:function(Q,re,de){if(Q.isPartialDay&&Q.isPartialDay(de))return!0;var te=Q.getValidationFormat?(0,o.default)(de,Q.getValidationFormat()):(0,o.default)(de),j=(0,n.getDateSetting)(re);return!!e.default.isNull(j)||(j.setHours(0,0,0,0),te.isBefore(j)||te.isSame(j))}},minDate:{key:"minDate",hasLabel:!0,message:function(Q,re){var de=(0,n.getDateSetting)(re);return Q.t(Q.errorMessage("minDate"),{field:Q.errorLabel,minDate:(0,o.default)(de).format(Q.format)})},check:function(Q,re,de){if(Q.isPartialDay&&Q.isPartialDay(de))return!0;var te=Q.getValidationFormat?(0,o.default)(de,Q.getValidationFormat()):(0,o.default)(de),j=(0,n.getDateSetting)(re);return!!e.default.isNull(j)||(j.setHours(0,0,0,0),te.isAfter(j)||te.isSame(j))}},minYear:{key:"minYear",hasLabel:!0,message:function(Q,re){return Q.t(Q.errorMessage("minYear"),{field:Q.errorLabel,minYear:re})},check:function(Q,re,de){var te=re,j=/\d{4}$/.exec(de);return j=j?j[0]:null,!+te||!+j||+j>=+te}},maxYear:{key:"maxYear",hasLabel:!0,message:function(Q,re){return Q.t(Q.errorMessage("maxYear"),{field:Q.errorLabel,maxYear:re})},check:function(Q,re,de){var te=re,j=/\d{4}$/.exec(de);return j=j?j[0]:null,!+te||!+j||+j<=+te}},calendar:{key:"validate.calendar",messageText:"",hasLabel:!0,message:function(Q){return Q.t(Q.errorMessage(this.validators.calendar.messageText),{field:Q.errorLabel,maxDate:(0,o.default)(Q.dataValue).format(Q.format)})},check:function(Q,re,de,te,j){this.validators.calendar.messageText="";var H=Q.getWidget(j);if(!H)return!0;var z=H.settings,q=H.enteredDate,se=z.minDate,ne=z.maxDate,ge=[(0,n.convertFormatToMoment)(z.format)];if(ge[0].match(/M{3,}/g)&&ge.push(ge[0].replace(/M{3,}/g,"MM")),!de&&q){var Ce=(0,u.checkInvalidDate)(q,ge,se,ne),De=Ce.result;if(!De)return this.validators.calendar.messageText=Ce.message,De}return de&&q?(0,o.default)(de).format()!==(0,o.default)(q,ge,!0).format()&&q.match(/_/gi)?(this.validators.calendar.messageText=u.CALENDAR_ERROR_MESSAGES.INCOMPLETE,!1):(H.enteredDate="",!0):void 0}},time:{key:"validate.time",messageText:"Invalid time",hasLabel:!0,message:function(Q){return Q.t(Q.errorMessage(this.validators.time.messageText),{field:Q.errorLabel})},check:function(Q,re,de){return!!Q.isEmpty(de)||(0,o.default)(de,Q.component.format).isValid()}},availableValueProperty:{key:"validate.availableValueProperty",method:"validateValueProperty",messageText:"Invalid Value Property",hasLabel:!0,message:function(Q){return Q.t(Q.errorMessage(this.validators.availableValueProperty.messageText),{field:Q.errorLabel})},check:function(Q,re,de){return!("url"===Q.component.dataSrc&&(e.default.isUndefined(de)||e.default.isObject(de)))}}}}return function I(X,me,J){me&&b(X.prototype,me),J&&b(X,J),Object.defineProperty(X,"prototype",{writable:!1})}(X,[{key:"checkValidator",value:function(J,Q,re,de,te,j,H,z){var se,q=this;se=Q.method&&"function"==typeof J[Q.method]?J[Q.method](re,de,te,j,H,z):Q.check.call(this,J,re,de,te,j,H,z);var ne=function(ge){return"string"==typeof ge?ge:!ge&&Q.message?Q.message.call(q,J,re,j,H):""};return z?a.default.resolve(se).then(ne):ne(se)}},{key:"validate",value:function(J,Q,re,de,te,j,H,z,q){if(!z)return!1;var se=this.validators[Q],ne=e.default.get(q||J.component,se.key,null),_e=this.checkValidator(J,se,ne,re,de,te,j,H),ge=function(Te){if(Te){var De,fe={message:(0,n.unescapeHTML)(e.default.get(Te,"message",Te)),level:"warning"===e.default.get(Te,"level")?"warning":"error",path:(0,n.getArrayFromComponentPath)(J.path||""),context:{validator:Q,hasLabel:se.hasLabel,setting:ne,key:J.key,label:J.label,value:re,index:te,input:null===(De=J.refs.input)||void 0===De?void 0:De[te]}};return"unique"===Q&&J.conflictId&&(fe.conflictId=J.conflictId),fe}return!1};return H?a.default.resolve(_e).then(ge):ge(_e)}},{key:"checkComponent",value:function(J,Q,re){var de,te=this,j=arguments.length>3&&void 0!==arguments[3]&&arguments[3],H=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(typeof process<"u"&&"node"===e.default.get(process,"release.name")&&!e.default.defaultTo(J.component.persistent,!0)||!1===J.component.validate)return H?a.default.resolve([]):[];Q=Q||J.rootValue,re=re||J.data;var q=J.component.multiple&&Array.isArray(J.validationValue)?J.validationValue:[J.validationValue],se=J.conditionallyVisible(),ne=[];null!=J&&null!==(de=J.addons)&&void 0!==de&&de.length&&q.forEach(function(Gt){J.addons.forEach(function(Ut){Ut.checkValidity(Gt)||ne.push.apply(ne,_(Ut.errors||[]))})});var _e=e.default.get(J,"component.validations"),ge=[];if(_e&&Array.isArray(_e)&&_e.length){var Ce=e.default.chain(_e).groupBy(function(Gt){return Gt.mode}).value();if(J.calculateCondition){j=!0;var Te=e.default.chain(Ce.ui).filter("active").groupBy(function(Gt){return Gt.group||null}).value(),De=Te.null||[];delete Te.null,De.forEach(function(Gt){var An=Gt.message,$n=Gt.severity;J.calculateCondition(Gt.condition)||ge.push({level:$n||"error",message:J.t(An),componentInstance:J})}),e.default.forEach(Te,function(Gt){e.default.forEach(Gt,function(Ut){var $n=Ut.message,xn=Ut.severity;if(!J.calculateCondition(Ut.condition))return ge.push({level:xn||"error",message:J.t($n),componentInstance:J}),!1})})}else ge=this.checkValidations(J,_e,Q,re,q,H);J.validators.includes("custom")&&Ce.js&&e.default.each(Ce.js,function(Gt){ge.push(e.default.map(q,function(Ut,An){return te.validate(J,"custom",Ut,Q,An,re,H,se,Gt)}))}),J.validators.includes("json")&&Ce.json&&e.default.each(Ce.json,function(Gt){ge.push(e.default.map(q,function(Ut,An){return te.validate(J,"json",Ut,Q,An,re,H,se,Gt)}))})}var fe=e.default.get(J,"component.validate.custom"),xe=e.default.get(J,"component.validate.customMessage"),Oe=(0,e.default)(J.validators).chain().map(function(Gt){return te.validators.hasOwnProperty(Gt)?"required"!==Gt||q.length?e.default.map(q,function(Ut,An){return te.validate(J,Gt,Ut,Q,An,re,H,se)}):[te.validate(J,Gt,null,Q,0,re,H,se)]:{message:'Validator for "'.concat(Gt,'" is not defined'),level:"warning",context:{validator:Gt,key:J.key,label:J.label}}}).flatten().value();J.component.validate=J.component.validate||{},J.component.validate.unique=J.component.unique,Oe.push(this.validate(J,"unique",J.validationValue,Q,0,Q,H,se)),J.component.validate.multiple=J.component.multiple,Oe.push(this.validate(J,"multiple",J.validationValue,Q,0,Q,H,se)),Oe.push.apply(Oe,ne),Oe.push.apply(Oe,_(ge));var Le=function(Ut){return Ut=(0,e.default)(Ut).chain().flatten().compact().value(),(xe||fe)&&e.default.each(Ut,function(An){An.message=J.t(xe||An.message,{field:J.errorLabel,data:Q,row:re,error:An}),An.context.hasLabel=!1}),j?Ut:e.default.reject(Ut,function(An){return"warning"===An.level})};return H?a.default.all(Oe).then(Le):Le(Oe)}},{key:"checkValidations",value:function(J,Q,re,de,te,j){var H=this,se=Q.map(function(ne){return H.checkRule(J,ne,re,de,te,j)}).reduce(function(ne,_e){return _e?[].concat(_(ne),_(_e)):ne},[]).filter(function(ne){return ne}).reduce(function(ne,_e){return ne[_e.context.validator]=_e,ne},{});return Object.values(se)}},{key:"checkRule",value:function(J,Q,re,de,te,j){var H=d.default.getRule(Q.rule),z=[];if(H){var q=new H(J,Q.settings,this.config);te.map(function(se,ne){var _e=q.check(se,re,de,j);!0!==_e&&z.push({level:Q.level||"error",message:J.t(Q.message||q.defaultMessage,{settings:Q.settings,field:J.errorLabel,data:re,row:de,error:_e}),context:{key:J.key,index:ne,label:J.label,validator:Q.rule}})})}return 0!==z.length&&z}},{key:"check",get:function(){return this.checkComponent}},{key:"get",value:function(){e.default.get.call(this,arguments)}},{key:"each",value:function(){e.default.each.call(this,arguments)}},{key:"has",value:function(){e.default.has.call(this,arguments)}}]),X}();y.ValidationChecker=V,V.config={db:null,token:null,form:null,submission:null};var K=new V;y.default=K},4298:(he,y,i)=>{"use strict";function e(C){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(C)}function n(C,R){var x=Object.keys(C);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(C);R&&(f=f.filter(function(k){return Object.getOwnPropertyDescriptor(C,k).enumerable})),x.push.apply(x,f)}return x}function o(C){for(var R=1;R<arguments.length;R++){var x=null!=arguments[R]?arguments[R]:{};R%2?n(Object(x),!0).forEach(function(f){d(C,f,x[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(x)):n(Object(x)).forEach(function(f){Object.defineProperty(C,f,Object.getOwnPropertyDescriptor(x,f))})}return C}function l(C,R){for(var x=0;x<R.length;x++){var f=R[x];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(C,s(f.key),f)}}function d(C,R,x){return(R=s(R))in C?Object.defineProperty(C,R,{value:x,enumerable:!0,configurable:!0,writable:!0}):C[R]=x,C}function s(C){var R=function A(C,R){if("object"!==e(C)||null===C)return C;var x=C[Symbol.toPrimitive];if(void 0!==x){var f=x.call(C,R||"default");if("object"!==e(f))return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===R?String:Number)(C)}(C,"string");return"symbol"===e(R)?R:String(R)}i(40739),i(69358),i(38077),i(81919),i(49693),i(47522),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var _=function(){function C(){!function a(C,R){if(!(C instanceof R))throw new TypeError("Cannot call a class as a function")}(this,C)}return function u(C,R,x){R&&l(C.prototype,R),x&&l(C,x),Object.defineProperty(C,"prototype",{writable:!1})}(C,null,[{key:"addConjunction",value:function(x,f){C.conjunctions[x]=f}},{key:"addConjunctions",value:function(x){C.conjunctions=o(o({},C.conjunctions),x)}},{key:"getConjunction",value:function(x){return C.conjunctions[x]}},{key:"getConjunctions",value:function(){return C.conjunctions}}]),C}();y.default=_,d(_,"conjunctions",{})},94162:(he,y,i)=>{"use strict";function e(C){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(C)}function n(C,R){var x=Object.keys(C);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(C);R&&(f=f.filter(function(k){return Object.getOwnPropertyDescriptor(C,k).enumerable})),x.push.apply(x,f)}return x}function o(C){for(var R=1;R<arguments.length;R++){var x=null!=arguments[R]?arguments[R]:{};R%2?n(Object(x),!0).forEach(function(f){d(C,f,x[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(x)):n(Object(x)).forEach(function(f){Object.defineProperty(C,f,Object.getOwnPropertyDescriptor(x,f))})}return C}function l(C,R){for(var x=0;x<R.length;x++){var f=R[x];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(C,s(f.key),f)}}function d(C,R,x){return(R=s(R))in C?Object.defineProperty(C,R,{value:x,enumerable:!0,configurable:!0,writable:!0}):C[R]=x,C}function s(C){var R=function A(C,R){if("object"!==e(C)||null===C)return C;var x=C[Symbol.toPrimitive];if(void 0!==x){var f=x.call(C,R||"default");if("object"!==e(f))return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===R?String:Number)(C)}(C,"string");return"symbol"===e(R)?R:String(R)}i(40739),i(69358),i(38077),i(81919),i(49693),i(47522),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var _=function(){function C(){!function a(C,R){if(!(C instanceof R))throw new TypeError("Cannot call a class as a function")}(this,C)}return function u(C,R,x){R&&l(C.prototype,R),x&&l(C,x),Object.defineProperty(C,"prototype",{writable:!1})}(C,null,[{key:"addOperator",value:function(x,f){C.operators[x]=f}},{key:"addOperators",value:function(x){C.operators=o(o({},C.operators),x)}},{key:"getOperator",value:function(x){return C.operators[x]}},{key:"getOperators",value:function(){return C.operators}}]),C}();y.default=_,d(_,"operators",{})},53642:(he,y,i)=>{"use strict";function e(C){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(C)}function n(C,R){var x=Object.keys(C);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(C);R&&(f=f.filter(function(k){return Object.getOwnPropertyDescriptor(C,k).enumerable})),x.push.apply(x,f)}return x}function o(C){for(var R=1;R<arguments.length;R++){var x=null!=arguments[R]?arguments[R]:{};R%2?n(Object(x),!0).forEach(function(f){d(C,f,x[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(x)):n(Object(x)).forEach(function(f){Object.defineProperty(C,f,Object.getOwnPropertyDescriptor(x,f))})}return C}function l(C,R){for(var x=0;x<R.length;x++){var f=R[x];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(C,s(f.key),f)}}function d(C,R,x){return(R=s(R))in C?Object.defineProperty(C,R,{value:x,enumerable:!0,configurable:!0,writable:!0}):C[R]=x,C}function s(C){var R=function A(C,R){if("object"!==e(C)||null===C)return C;var x=C[Symbol.toPrimitive];if(void 0!==x){var f=x.call(C,R||"default");if("object"!==e(f))return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===R?String:Number)(C)}(C,"string");return"symbol"===e(R)?R:String(R)}i(40739),i(69358),i(38077),i(81919),i(49693),i(47522),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var _=function(){function C(){!function a(C,R){if(!(C instanceof R))throw new TypeError("Cannot call a class as a function")}(this,C)}return function u(C,R,x){R&&l(C.prototype,R),x&&l(C,x),Object.defineProperty(C,"prototype",{writable:!1})}(C,null,[{key:"addQuickRule",value:function(x,f){C.quickRules[x]=f}},{key:"addQuickRules",value:function(x){C.quickRules=o(o({},C.quickRules),x)}},{key:"getQuickRule",value:function(x){return C.quickRules[x]}},{key:"getQuickRules",value:function(){return C.quickRules}}]),C}();y.default=_,d(_,"quickRules",{})},53254:(he,y,i)=>{"use strict";function e(w){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(w)}function o(w,g){for(var M=0;M<g.length;M++){var p=g[M];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,x(p.key),p)}}function u(w,g){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,E){return p.__proto__=E,p})(w,g)}function A(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function C(w){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)})(w)}function x(w){var g=function f(w,g){if("object"!==e(w)||null===w)return w;var M=w[Symbol.toPrimitive];if(void 0!==M){var p=M.call(w,g||"default");if("object"!==e(p))return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===g?String:Number)(w)}(w,"string");return"symbol"===e(g)?g:String(g)}i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(34338),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var k=i(13806);he.exports=function(w){!function l(w,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),g&&u(w,g)}(M,w);var g=function d(w){var g=function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var E,p=C(w);if(g){var b=C(this).constructor;E=Reflect.construct(p,arguments,b)}else E=p.apply(this,arguments);return function s(w,g){if(g&&("object"===e(g)||"function"==typeof g))return g;if(void 0!==g)throw new TypeError("Derived constructors may only return object or undefined");return A(w)}(this,E)}}(M);function M(){var p;!function n(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}(this,M);for(var E=arguments.length,b=new Array(E),I=0;I<E;I++)b[I]=arguments[I];return function R(w,g,M){(g=x(g))in w?Object.defineProperty(w,g,{value:M,enumerable:!0,configurable:!0,writable:!0}):w[g]=M}(A(p=g.call.apply(g,[this].concat(b))),"defaultMessage","{{error}}"),p}return function a(w,g,M){g&&o(w.prototype,g),M&&o(w,M),Object.defineProperty(w,"prototype",{writable:!1})}(M,[{key:"check",value:function(E,b,I,L){var D=this.settings.custom;if(!D)return!0;var F=this.component.evaluate(D,{valid:!0,data:b,row:I,rowIndex:L,input:E},"valid",!0);return null===F||F}}]),M}(k)},19526:(he,y,i)=>{"use strict";function e(w){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(w)}function o(w,g){for(var M=0;M<g.length;M++){var p=g[M];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,x(p.key),p)}}function u(w,g){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,E){return p.__proto__=E,p})(w,g)}function A(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function C(w){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)})(w)}function x(w){var g=function f(w,g){if("object"!==e(w)||null===w)return w;var M=w[Symbol.toPrimitive];if(void 0!==M){var p=M.call(w,g||"default");if("object"!==e(p))return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===g?String:Number)(w)}(w,"string");return"symbol"===e(g)?g:String(g)}i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(34338),i(30024),i(60228),i(63945),i(69373),i(59903),i(59749),i(86544),i(79288);var k=i(13806);he.exports=function(w){!function l(w,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),g&&u(w,g)}(M,w);var g=function d(w){var g=function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var E,p=C(w);if(g){var b=C(this).constructor;E=Reflect.construct(p,arguments,b)}else E=p.apply(this,arguments);return function s(w,g){if(g&&("object"===e(g)||"function"==typeof g))return g;if(void 0!==g)throw new TypeError("Derived constructors may only return object or undefined");return A(w)}(this,E)}}(M);function M(){var p;!function n(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}(this,M);for(var E=arguments.length,b=new Array(E),I=0;I<E;I++)b[I]=arguments[I];return function R(w,g,M){(g=x(g))in w?Object.defineProperty(w,g,{value:M,enumerable:!0,configurable:!0,writable:!0}):w[g]=M}(A(p=g.call.apply(g,[this].concat(b))),"defaultMessage","{{field}} is not a valid date."),p}return function a(w,g,M){g&&o(w.prototype,g),M&&o(w,M),Object.defineProperty(w,"prototype",{writable:!1})}(M,[{key:"check",value:function(E){return!E||"Invalid date"!==E&&"Invalid Date"!==E&&("string"==typeof E&&(E=new Date(E)),E instanceof Date&&"Invalid Date"!==E.toString())}}]),M}(k)},59630:(he,y,i)=>{"use strict";function e(I){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(L){return typeof L}:function(L){return L&&"function"==typeof Symbol&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L})(I)}function l(I,L){(null==L||L>I.length)&&(L=I.length);for(var D=0,F=new Array(L);D<L;D++)F[D]=I[D];return F}function A(I,L){for(var D=0;D<L.length;D++){var F=L[D];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(I,p(F.key),F)}}function R(I,L){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(F,P){return F.__proto__=P,F})(I,L)}function k(I){if(void 0===I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function g(I){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(D){return D.__proto__||Object.getPrototypeOf(D)})(I)}function p(I){var L=function E(I,L){if("object"!==e(I)||null===I)return I;var D=I[Symbol.toPrimitive];if(void 0!==D){var F=D.call(I,L||"default");if("object"!==e(F))return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===L?String:Number)(I)}(I,"string");return"symbol"===e(L)?L:String(L)}i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(63975),i(84254),i(752),i(21694),i(76265),i(89730),i(34284),i(77049),i(64043),i(34338),i(50886),i(32320),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var b=i(13806);he.exports=function(I){!function C(I,L){if("function"!=typeof L&&null!==L)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(L&&L.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),Object.defineProperty(I,"prototype",{writable:!1}),L&&R(I,L)}(D,I);var L=function x(I){var L=function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var P,F=g(I);if(L){var O=g(this).constructor;P=Reflect.construct(F,arguments,O)}else P=F.apply(this,arguments);return function f(I,L){if(L&&("object"===e(L)||"function"==typeof L))return L;if(void 0!==L)throw new TypeError("Derived constructors may only return object or undefined");return k(I)}(this,P)}}(D);function D(){var F;!function s(I,L){if(!(I instanceof L))throw new TypeError("Cannot call a class as a function")}(this,D);for(var P=arguments.length,O=new Array(P),U=0;U<P;U++)O[U]=arguments[U];return function M(I,L,D){(L=p(L))in I?Object.defineProperty(I,L,{value:D,enumerable:!0,configurable:!0,writable:!0}):I[L]=D}(k(F=L.call.apply(L,[this].concat(O))),"defaultMessage","{{field}} is not a valid day."),F}return function _(I,L,D){L&&A(I.prototype,L),D&&A(I,D),Object.defineProperty(I,"prototype",{writable:!1})}(D,[{key:"check",value:function(P){if(!P)return!0;if("string"!=typeof P)return!1;var U=function n(I,L){return function d(I){if(Array.isArray(I))return I}(I)||function u(I,L){var D=null==I?null:typeof Symbol<"u"&&I[Symbol.iterator]||I["@@iterator"];if(null!=D){var F,P,O,U,V=[],K=!0,X=!1;try{if(O=(D=D.call(I)).next,0===L){if(Object(D)!==D)return;K=!1}else for(;!(K=(F=O.call(D)).done)&&(V.push(F.value),V.length!==L);K=!0);}catch(me){X=!0,P=me}finally{try{if(!K&&null!=D.return&&(U=D.return(),Object(U)!==U))return}finally{if(X)throw P}}return V}}(I,L)||function a(I,L){if(I){if("string"==typeof I)return l(I,L);var D=Object.prototype.toString.call(I).slice(8,-1);if("Object"===D&&I.constructor&&(D=I.constructor.name),"Map"===D||"Set"===D)return Array.from(I);if("Arguments"===D||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return l(I,L)}}(I,L)||function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.component.dayFirst?[0,1,2]:[1,0,2],3),V=U[0],K=U[1],X=U[2],me=P.split("/").map(function(H){return parseInt(H,10)}),J=me[V],Q=me[K],re=me[X],de=function j(H,z){switch(H){case 1:case 3:case 5:case 7:case 8:case 10:case 12:default:return 31;case 4:case 6:case 9:case 11:return 30;case 2:return function te(H){return!(H%400&&(!(H%100)||H%4))}(z)?29:28}}(Q,re);return!(isNaN(J)||J<0||J>de||isNaN(Q)||Q<0||Q>12||isNaN(re)||re<0||re>9999)}}]),D}(b)},48367:(he,y,i)=>{"use strict";function e(w){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(w)}function o(w,g){for(var M=0;M<g.length;M++){var p=g[M];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,x(p.key),p)}}function u(w,g){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,E){return p.__proto__=E,p})(w,g)}function A(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function C(w){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)})(w)}function x(w){var g=function f(w,g){if("object"!==e(w)||null===w)return w;var M=w[Symbol.toPrimitive];if(void 0!==M){var p=M.call(w,g||"default");if("object"!==e(p))return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===g?String:Number)(w)}(w,"string");return"symbol"===e(g)?g:String(g)}i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(34338),i(64043),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var k=i(13806);he.exports=function(w){!function l(w,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),g&&u(w,g)}(M,w);var g=function d(w){var g=function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var E,p=C(w);if(g){var b=C(this).constructor;E=Reflect.construct(p,arguments,b)}else E=p.apply(this,arguments);return function s(w,g){if(g&&("object"===e(g)||"function"==typeof g))return g;if(void 0!==g)throw new TypeError("Derived constructors may only return object or undefined");return A(w)}(this,E)}}(M);function M(){var p;!function n(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}(this,M);for(var E=arguments.length,b=new Array(E),I=0;I<E;I++)b[I]=arguments[I];return function R(w,g,M){(g=x(g))in w?Object.defineProperty(w,g,{value:M,enumerable:!0,configurable:!0,writable:!0}):w[g]=M}(A(p=g.call.apply(g,[this].concat(b))),"defaultMessage","{{field}} must be a valid email."),p}return function a(w,g,M){g&&o(w.prototype,g),M&&o(w,M),Object.defineProperty(w,"prototype",{writable:!1})}(M,[{key:"check",value:function(E){return!E||/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(E)}}]),M}(k)},152:(he,y,i)=>{"use strict";function e(w){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(w)}function o(w,g){for(var M=0;M<g.length;M++){var p=g[M];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,x(p.key),p)}}function u(w,g){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,E){return p.__proto__=E,p})(w,g)}function A(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function C(w){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)})(w)}function x(w){var g=function f(w,g){if("object"!==e(w)||null===w)return w;var M=w[Symbol.toPrimitive];if(void 0!==M){var p=M.call(w,g||"default");if("object"!==e(p))return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===g?String:Number)(w)}(w,"string");return"symbol"===e(g)?g:String(g)}i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(34338),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var k=i(13806);he.exports=function(w){!function l(w,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),g&&u(w,g)}(M,w);var g=function d(w){var g=function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var E,p=C(w);if(g){var b=C(this).constructor;E=Reflect.construct(p,arguments,b)}else E=p.apply(this,arguments);return function s(w,g){if(g&&("object"===e(g)||"function"==typeof g))return g;if(void 0!==g)throw new TypeError("Derived constructors may only return object or undefined");return A(w)}(this,E)}}(M);function M(){var p;!function n(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}(this,M);for(var E=arguments.length,b=new Array(E),I=0;I<E;I++)b[I]=arguments[I];return function R(w,g,M){(g=x(g))in w?Object.defineProperty(w,g,{value:M,enumerable:!0,configurable:!0,writable:!0}):w[g]=M}(A(p=g.call.apply(g,[this].concat(b))),"defaultMessage","{{error}}"),p}return function a(w,g,M){g&&o(w.prototype,g),M&&o(w,M),Object.defineProperty(w,"prototype",{writable:!1})}(M,[{key:"check",value:function(E,b,I,L){var D=this.settings.json;if(!D)return!0;var F=this.component.evaluate(D,{data:b,row:I,rowIndex:L,input:E});return null===F||F}}]),M}(k)},27475:(he,y,i)=>{"use strict";i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(34338),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var e=i(12866);function n(g){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M})(g)}function a(g,M){for(var p=0;p<M.length;p++){var E=M[p];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(g,f(E.key),E)}}function d(g,M){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,b){return E.__proto__=b,E})(g,M)}function _(g){if(void 0===g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function R(g){return(R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)})(g)}function f(g){var M=function k(g,M){if("object"!==n(g)||null===g)return g;var p=g[Symbol.toPrimitive];if(void 0!==p){var E=p.call(g,M||"default");if("object"!==n(E))return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===M?String:Number)(g)}(g,"string");return"symbol"===n(M)?M:String(M)}var w=i(13806);he.exports=function(g){!function u(g,M){if("function"!=typeof M&&null!==M)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(M&&M.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),M&&d(g,M)}(p,g);var M=function s(g){var M=function C(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var b,E=R(g);if(M){var I=R(this).constructor;b=Reflect.construct(E,arguments,I)}else b=E.apply(this,arguments);return function A(g,M){if(M&&("object"===n(M)||"function"==typeof M))return M;if(void 0!==M)throw new TypeError("Derived constructors may only return object or undefined");return _(g)}(this,b)}}(p);function p(){var E;!function o(g,M){if(!(g instanceof M))throw new TypeError("Cannot call a class as a function")}(this,p);for(var b=arguments.length,I=new Array(b),L=0;L<b;L++)I[L]=arguments[L];return function x(g,M,p){(M=f(M))in g?Object.defineProperty(g,M,{value:p,enumerable:!0,configurable:!0,writable:!0}):g[M]=p}(_(E=M.call.apply(M,[this].concat(I))),"defaultMessage","{{field}} does not match the mask."),E}return function l(g,M,p){M&&a(g.prototype,M),p&&a(g,p),Object.defineProperty(g,"prototype",{writable:!1})}(p,[{key:"check",value:function(b){var I;if(this.component.isMultipleMasksField){var D=this.component.getMaskByName(b?b.maskName:void 0);D&&(I=(0,e.getInputMask)(D)),b=b&&b.value}else I=(0,e.getInputMask)(this.settings.mask);return!b||!I||(0,e.matchInputMask)(b,I)}}]),p}(w)},56862:(he,y,i)=>{"use strict";function e(w){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(w)}function o(w,g){for(var M=0;M<g.length;M++){var p=g[M];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,x(p.key),p)}}function u(w,g){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,E){return p.__proto__=E,p})(w,g)}function A(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function C(w){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)})(w)}function x(w){var g=function f(w,g){if("object"!==e(w)||null===w)return w;var M=w[Symbol.toPrimitive];if(void 0!==M){var p=M.call(w,g||"default");if("object"!==e(p))return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===g?String:Number)(w)}(w,"string");return"symbol"===e(g)?g:String(g)}i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(34338),i(80939),i(45993),i(79288),i(69373),i(59903),i(59749),i(86544),i(60228);var k=i(13806);he.exports=function(w){!function l(w,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),g&&u(w,g)}(M,w);var g=function d(w){var g=function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var E,p=C(w);if(g){var b=C(this).constructor;E=Reflect.construct(p,arguments,b)}else E=p.apply(this,arguments);return function s(w,g){if(g&&("object"===e(g)||"function"==typeof g))return g;if(void 0!==g)throw new TypeError("Derived constructors may only return object or undefined");return A(w)}(this,E)}}(M);function M(){var p;!function n(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}(this,M);for(var E=arguments.length,b=new Array(E),I=0;I<E;I++)b[I]=arguments[I];return function R(w,g,M){(g=x(g))in w?Object.defineProperty(w,g,{value:M,enumerable:!0,configurable:!0,writable:!0}):w[g]=M}(A(p=g.call.apply(g,[this].concat(b))),"defaultMessage","{{field}} cannot be greater than {{settings.limit}}."),p}return function a(w,g,M){g&&o(w.prototype,g),M&&o(w,M),Object.defineProperty(w,"prototype",{writable:!1})}(M,[{key:"check",value:function(E){var b=parseFloat(this.settings.limit),I=parseFloat(E);return!(!Number.isNaN(b)&&!Number.isNaN(I))||I<=b}}]),M}(k)},78989:(he,y,i)=>{"use strict";i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(34338),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var e=i(12866),n=a(i(16676)),o=a(i(6990));function a(E){return E&&E.__esModule?E:{default:E}}function l(E){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(E)}function d(E,b){for(var I=0;I<b.length;I++){var L=b[I];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(E,g(L.key),L)}}function _(E,b){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,D){return L.__proto__=D,L})(E,b)}function x(E){if(void 0===E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function k(E){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(I){return I.__proto__||Object.getPrototypeOf(I)})(E)}function g(E){var b=function M(E,b){if("object"!==l(E)||null===E)return E;var I=E[Symbol.toPrimitive];if(void 0!==I){var L=I.call(E,b||"default");if("object"!==l(L))return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(E)}(E,"string");return"symbol"===l(b)?b:String(b)}var p=i(13806);he.exports=function(E){!function A(E,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(b&&b.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),Object.defineProperty(E,"prototype",{writable:!1}),b&&_(E,b)}(I,E);var b=function C(E){var b=function f(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var D,L=k(E);if(b){var F=k(this).constructor;D=Reflect.construct(L,arguments,F)}else D=L.apply(this,arguments);return function R(E,b){if(b&&("object"===l(b)||"function"==typeof b))return b;if(void 0!==b)throw new TypeError("Derived constructors may only return object or undefined");return x(E)}(this,D)}}(I);function I(){var L;!function u(E,b){if(!(E instanceof b))throw new TypeError("Cannot call a class as a function")}(this,I);for(var D=arguments.length,F=new Array(D),P=0;P<D;P++)F[P]=arguments[P];return function w(E,b,I){(b=g(b))in E?Object.defineProperty(E,b,{value:I,enumerable:!0,configurable:!0,writable:!0}):E[b]=I}(x(L=b.call.apply(b,[this].concat(F))),"defaultMessage","{{field}} should not contain date after {{settings.dateLimit}}"),L}return function s(E,b,I){b&&d(E.prototype,b),I&&d(E,I),Object.defineProperty(E,"prototype",{writable:!1})}(I,[{key:"check",value:function(D){if(!D||D===this.settings.dateLimit)return!0;var F=(0,n.default)(D),P=(0,e.getDateSetting)(this.settings.dateLimit);return!!o.default.isNull(P)||(P.setHours(0,0,0,0),F.isBefore(P)||F.isSame(P))}}]),I}(p)},59612:(he,y,i)=>{"use strict";function e(w){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(w)}function o(w,g){for(var M=0;M<g.length;M++){var p=g[M];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,x(p.key),p)}}function u(w,g){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,E){return p.__proto__=E,p})(w,g)}function A(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function C(w){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)})(w)}function x(w){var g=function f(w,g){if("object"!==e(w)||null===w)return w;var M=w[Symbol.toPrimitive];if(void 0!==M){var p=M.call(w,g||"default");if("object"!==e(p))return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===g?String:Number)(w)}(w,"string");return"symbol"===e(g)?g:String(g)}i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(34338),i(32320),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var k=i(13806);he.exports=function(w){!function l(w,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),g&&u(w,g)}(M,w);var g=function d(w){var g=function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var E,p=C(w);if(g){var b=C(this).constructor;E=Reflect.construct(p,arguments,b)}else E=p.apply(this,arguments);return function s(w,g){if(g&&("object"===e(g)||"function"==typeof g))return g;if(void 0!==g)throw new TypeError("Derived constructors may only return object or undefined");return A(w)}(this,E)}}(M);function M(){var p;!function n(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}(this,M);for(var E=arguments.length,b=new Array(E),I=0;I<E;I++)b[I]=arguments[I];return function R(w,g,M){(g=x(g))in w?Object.defineProperty(w,g,{value:M,enumerable:!0,configurable:!0,writable:!0}):w[g]=M}(A(p=g.call.apply(g,[this].concat(b))),"defaultMessage","{{field}} must have no more than {{- settings.length}} characters."),p}return function a(w,g,M){g&&o(w.prototype,g),M&&o(w,M),Object.defineProperty(w,"prototype",{writable:!1})}(M,[{key:"check",value:function(E){var b=parseInt(this.settings.length,10);return!(E&&b&&E.hasOwnProperty("length"))||E.length<=b}}]),M}(k)},22776:(he,y,i)=>{"use strict";function e(w){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(w)}function o(w,g){for(var M=0;M<g.length;M++){var p=g[M];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,x(p.key),p)}}function u(w,g){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,E){return p.__proto__=E,p})(w,g)}function A(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function C(w){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)})(w)}function x(w){var g=function f(w,g){if("object"!==e(w)||null===w)return w;var M=w[Symbol.toPrimitive];if(void 0!==M){var p=M.call(w,g||"default");if("object"!==e(p))return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===g?String:Number)(w)}(w,"string");return"symbol"===e(g)?g:String(g)}i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(34338),i(32320),i(64043),i(9873),i(28436),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var k=i(13806);he.exports=function(w){!function l(w,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),g&&u(w,g)}(M,w);var g=function d(w){var g=function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var E,p=C(w);if(g){var b=C(this).constructor;E=Reflect.construct(p,arguments,b)}else E=p.apply(this,arguments);return function s(w,g){if(g&&("object"===e(g)||"function"==typeof g))return g;if(void 0!==g)throw new TypeError("Derived constructors may only return object or undefined");return A(w)}(this,E)}}(M);function M(){var p;!function n(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}(this,M);for(var E=arguments.length,b=new Array(E),I=0;I<E;I++)b[I]=arguments[I];return function R(w,g,M){(g=x(g))in w?Object.defineProperty(w,g,{value:M,enumerable:!0,configurable:!0,writable:!0}):w[g]=M}(A(p=g.call.apply(g,[this].concat(b))),"defaultMessage","{{field}} must have no more than {{- settings.length}} words."),p}return function a(w,g,M){g&&o(w.prototype,g),M&&o(w,M),Object.defineProperty(w,"prototype",{writable:!1})}(M,[{key:"check",value:function(E){var b=parseInt(this.settings.length,10);return!b||"string"!=typeof E||E.trim().split(/\s+/).length<=b}}]),M}(k)},81645:(he,y,i)=>{"use strict";function e(w){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(w)}function o(w,g){for(var M=0;M<g.length;M++){var p=g[M];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,x(p.key),p)}}function u(w,g){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,E){return p.__proto__=E,p})(w,g)}function A(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function C(w){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)})(w)}function x(w){var g=function f(w,g){if("object"!==e(w)||null===w)return w;var M=w[Symbol.toPrimitive];if(void 0!==M){var p=M.call(w,g||"default");if("object"!==e(p))return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===g?String:Number)(w)}(w,"string");return"symbol"===e(g)?g:String(g)}i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(34338),i(64043),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var k=i(13806);he.exports=function(w){!function l(w,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),g&&u(w,g)}(M,w);var g=function d(w){var g=function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var E,p=C(w);if(g){var b=C(this).constructor;E=Reflect.construct(p,arguments,b)}else E=p.apply(this,arguments);return function s(w,g){if(g&&("object"===e(g)||"function"==typeof g))return g;if(void 0!==g)throw new TypeError("Derived constructors may only return object or undefined");return A(w)}(this,E)}}(M);function M(){var p;!function n(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}(this,M);for(var E=arguments.length,b=new Array(E),I=0;I<E;I++)b[I]=arguments[I];return function R(w,g,M){(g=x(g))in w?Object.defineProperty(w,g,{value:M,enumerable:!0,configurable:!0,writable:!0}):w[g]=M}(A(p=g.call.apply(g,[this].concat(b))),"defaultMessage","{{field}} should not contain year greater than {{maxYear}}"),p}return function a(w,g,M){g&&o(w.prototype,g),M&&o(w,M),Object.defineProperty(w,"prototype",{writable:!1})}(M,[{key:"check",value:function(E){var b=this.settings,I=/\d{4}$/.exec(E);return I=I?I[0]:null,!+b||!+I||+I<=+b}}]),M}(k)},42445:(he,y,i)=>{"use strict";function e(w){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(w)}function o(w,g){for(var M=0;M<g.length;M++){var p=g[M];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,x(p.key),p)}}function u(w,g){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,E){return p.__proto__=E,p})(w,g)}function A(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function C(w){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)})(w)}function x(w){var g=function f(w,g){if("object"!==e(w)||null===w)return w;var M=w[Symbol.toPrimitive];if(void 0!==M){var p=M.call(w,g||"default");if("object"!==e(p))return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===g?String:Number)(w)}(w,"string");return"symbol"===e(g)?g:String(g)}i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(34338),i(80939),i(45993),i(79288),i(69373),i(59903),i(59749),i(86544),i(60228);var k=i(13806);he.exports=function(w){!function l(w,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),g&&u(w,g)}(M,w);var g=function d(w){var g=function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var E,p=C(w);if(g){var b=C(this).constructor;E=Reflect.construct(p,arguments,b)}else E=p.apply(this,arguments);return function s(w,g){if(g&&("object"===e(g)||"function"==typeof g))return g;if(void 0!==g)throw new TypeError("Derived constructors may only return object or undefined");return A(w)}(this,E)}}(M);function M(){var p;!function n(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}(this,M);for(var E=arguments.length,b=new Array(E),I=0;I<E;I++)b[I]=arguments[I];return function R(w,g,M){(g=x(g))in w?Object.defineProperty(w,g,{value:M,enumerable:!0,configurable:!0,writable:!0}):w[g]=M}(A(p=g.call.apply(g,[this].concat(b))),"defaultMessage","{{field}} cannot be less than {{settings.limit}}."),p}return function a(w,g,M){g&&o(w.prototype,g),M&&o(w,M),Object.defineProperty(w,"prototype",{writable:!1})}(M,[{key:"check",value:function(E){var b=parseFloat(this.settings.limit),I=parseFloat(E);return!(!Number.isNaN(b)&&!Number.isNaN(I))||I>=b}}]),M}(k)},45443:(he,y,i)=>{"use strict";i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(34338),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var e=i(12866),n=a(i(16676)),o=a(i(6990));function a(E){return E&&E.__esModule?E:{default:E}}function l(E){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(E)}function d(E,b){for(var I=0;I<b.length;I++){var L=b[I];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(E,g(L.key),L)}}function _(E,b){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,D){return L.__proto__=D,L})(E,b)}function x(E){if(void 0===E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function k(E){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(I){return I.__proto__||Object.getPrototypeOf(I)})(E)}function g(E){var b=function M(E,b){if("object"!==l(E)||null===E)return E;var I=E[Symbol.toPrimitive];if(void 0!==I){var L=I.call(E,b||"default");if("object"!==l(L))return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(E)}(E,"string");return"symbol"===l(b)?b:String(b)}var p=i(13806);he.exports=function(E){!function A(E,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(b&&b.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),Object.defineProperty(E,"prototype",{writable:!1}),b&&_(E,b)}(I,E);var b=function C(E){var b=function f(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var D,L=k(E);if(b){var F=k(this).constructor;D=Reflect.construct(L,arguments,F)}else D=L.apply(this,arguments);return function R(E,b){if(b&&("object"===l(b)||"function"==typeof b))return b;if(void 0!==b)throw new TypeError("Derived constructors may only return object or undefined");return x(E)}(this,D)}}(I);function I(){var L;!function u(E,b){if(!(E instanceof b))throw new TypeError("Cannot call a class as a function")}(this,I);for(var D=arguments.length,F=new Array(D),P=0;P<D;P++)F[P]=arguments[P];return function w(E,b,I){(b=g(b))in E?Object.defineProperty(E,b,{value:I,enumerable:!0,configurable:!0,writable:!0}):E[b]=I}(x(L=b.call.apply(b,[this].concat(F))),"defaultMessage","{{field}} should not contain date before {{settings.dateLimit}}"),L}return function s(E,b,I){b&&d(E.prototype,b),I&&d(E,I),Object.defineProperty(E,"prototype",{writable:!1})}(I,[{key:"check",value:function(D){if(!D)return!0;var F=(0,n.default)(D),P=(0,e.getDateSetting)(this.settings.dateLimit);return!!o.default.isNull(P)||(P.setHours(0,0,0,0),F.isAfter(P)||F.isSame(P))}}]),I}(p)},26223:(he,y,i)=>{"use strict";function e(w){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(w)}function o(w,g){for(var M=0;M<g.length;M++){var p=g[M];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,x(p.key),p)}}function u(w,g){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,E){return p.__proto__=E,p})(w,g)}function A(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function C(w){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)})(w)}function x(w){var g=function f(w,g){if("object"!==e(w)||null===w)return w;var M=w[Symbol.toPrimitive];if(void 0!==M){var p=M.call(w,g||"default");if("object"!==e(p))return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===g?String:Number)(w)}(w,"string");return"symbol"===e(g)?g:String(g)}i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(34338),i(32320),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var k=i(13806);he.exports=function(w){!function l(w,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),g&&u(w,g)}(M,w);var g=function d(w){var g=function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var E,p=C(w);if(g){var b=C(this).constructor;E=Reflect.construct(p,arguments,b)}else E=p.apply(this,arguments);return function s(w,g){if(g&&("object"===e(g)||"function"==typeof g))return g;if(void 0!==g)throw new TypeError("Derived constructors may only return object or undefined");return A(w)}(this,E)}}(M);function M(){var p;!function n(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}(this,M);for(var E=arguments.length,b=new Array(E),I=0;I<E;I++)b[I]=arguments[I];return function R(w,g,M){(g=x(g))in w?Object.defineProperty(w,g,{value:M,enumerable:!0,configurable:!0,writable:!0}):w[g]=M}(A(p=g.call.apply(g,[this].concat(b))),"defaultMessage","{{field}} must have no more than {{- settings.length}} characters."),p}return function a(w,g,M){g&&o(w.prototype,g),M&&o(w,M),Object.defineProperty(w,"prototype",{writable:!1})}(M,[{key:"check",value:function(E){var b=parseInt(this.settings.length,10);return!(b&&E&&E.hasOwnProperty("length")&&!this.component.isEmpty(E))||E.length>=b}}]),M}(k)},75544:(he,y,i)=>{"use strict";function e(w){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(w)}function o(w,g){for(var M=0;M<g.length;M++){var p=g[M];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,x(p.key),p)}}function u(w,g){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,E){return p.__proto__=E,p})(w,g)}function A(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function C(w){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)})(w)}function x(w){var g=function f(w,g){if("object"!==e(w)||null===w)return w;var M=w[Symbol.toPrimitive];if(void 0!==M){var p=M.call(w,g||"default");if("object"!==e(p))return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===g?String:Number)(w)}(w,"string");return"symbol"===e(g)?g:String(g)}i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(34338),i(32320),i(64043),i(9873),i(28436),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var k=i(13806);he.exports=function(w){!function l(w,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),g&&u(w,g)}(M,w);var g=function d(w){var g=function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var E,p=C(w);if(g){var b=C(this).constructor;E=Reflect.construct(p,arguments,b)}else E=p.apply(this,arguments);return function s(w,g){if(g&&("object"===e(g)||"function"==typeof g))return g;if(void 0!==g)throw new TypeError("Derived constructors may only return object or undefined");return A(w)}(this,E)}}(M);function M(){var p;!function n(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}(this,M);for(var E=arguments.length,b=new Array(E),I=0;I<E;I++)b[I]=arguments[I];return function R(w,g,M){(g=x(g))in w?Object.defineProperty(w,g,{value:M,enumerable:!0,configurable:!0,writable:!0}):w[g]=M}(A(p=g.call.apply(g,[this].concat(b))),"defaultMessage","{{field}} must have at least {{- settings.length}} words."),p}return function a(w,g,M){g&&o(w.prototype,g),M&&o(w,M),Object.defineProperty(w,"prototype",{writable:!1})}(M,[{key:"check",value:function(E){var b=parseInt(this.settings.length,10);return!b||!E||"string"!=typeof E||E.trim().split(/\s+/).length>=b}}]),M}(k)},54119:(he,y,i)=>{"use strict";function e(w){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(w)}function o(w,g){for(var M=0;M<g.length;M++){var p=g[M];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,x(p.key),p)}}function u(w,g){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,E){return p.__proto__=E,p})(w,g)}function A(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function C(w){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)})(w)}function x(w){var g=function f(w,g){if("object"!==e(w)||null===w)return w;var M=w[Symbol.toPrimitive];if(void 0!==M){var p=M.call(w,g||"default");if("object"!==e(p))return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===g?String:Number)(w)}(w,"string");return"symbol"===e(g)?g:String(g)}i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(34338),i(64043),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var k=i(13806);he.exports=function(w){!function l(w,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),g&&u(w,g)}(M,w);var g=function d(w){var g=function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var E,p=C(w);if(g){var b=C(this).constructor;E=Reflect.construct(p,arguments,b)}else E=p.apply(this,arguments);return function s(w,g){if(g&&("object"===e(g)||"function"==typeof g))return g;if(void 0!==g)throw new TypeError("Derived constructors may only return object or undefined");return A(w)}(this,E)}}(M);function M(){var p;!function n(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}(this,M);for(var E=arguments.length,b=new Array(E),I=0;I<E;I++)b[I]=arguments[I];return function R(w,g,M){(g=x(g))in w?Object.defineProperty(w,g,{value:M,enumerable:!0,configurable:!0,writable:!0}):w[g]=M}(A(p=g.call.apply(g,[this].concat(b))),"defaultMessage","{{field}} should not contain year less than {{minYear}}"),p}return function a(w,g,M){g&&o(w.prototype,g),M&&o(w,M),Object.defineProperty(w,"prototype",{writable:!1})}(M,[{key:"check",value:function(E){var b=this.settings,I=/\d{4}$/.exec(E);return I=I?I[0]:null,!+b||!+I||+I>=+b}}]),M}(k)},83837:(he,y,i)=>{"use strict";function e(w){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(w)}function o(w,g){for(var M=0;M<g.length;M++){var p=g[M];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,x(p.key),p)}}function u(w,g){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,E){return p.__proto__=E,p})(w,g)}function A(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function C(w){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)})(w)}function x(w){var g=function f(w,g){if("object"!==e(w)||null===w)return w;var M=w[Symbol.toPrimitive];if(void 0!==M){var p=M.call(w,g||"default");if("object"!==e(p))return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===g?String:Number)(w)}(w,"string");return"symbol"===e(g)?g:String(g)}i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(34338),i(64043),i(52003),i(63945),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var k=i(13806);he.exports=function(w){!function l(w,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),g&&u(w,g)}(M,w);var g=function d(w){var g=function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var E,p=C(w);if(g){var b=C(this).constructor;E=Reflect.construct(p,arguments,b)}else E=p.apply(this,arguments);return function s(w,g){if(g&&("object"===e(g)||"function"==typeof g))return g;if(void 0!==g)throw new TypeError("Derived constructors may only return object or undefined");return A(w)}(this,E)}}(M);function M(){var p;!function n(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}(this,M);for(var E=arguments.length,b=new Array(E),I=0;I<E;I++)b[I]=arguments[I];return function R(w,g,M){(g=x(g))in w?Object.defineProperty(w,g,{value:M,enumerable:!0,configurable:!0,writable:!0}):w[g]=M}(A(p=g.call.apply(g,[this].concat(b))),"defaultMessage","{{field}} does not match the pattern {{settings.pattern}}"),p}return function a(w,g,M){g&&o(w.prototype,g),M&&o(w,M),Object.defineProperty(w,"prototype",{writable:!1})}(M,[{key:"check",value:function(E){var b=this.settings.pattern;return!b||new RegExp("^".concat(b,"$")).test(E)}}]),M}(k)},83789:(he,y,i)=>{"use strict";function e(w){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(w)}function o(w,g){for(var M=0;M<g.length;M++){var p=g[M];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,x(p.key),p)}}function u(w,g){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,E){return p.__proto__=E,p})(w,g)}function A(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function C(w){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)})(w)}function x(w){var g=function f(w,g){if("object"!==e(w)||null===w)return w;var M=w[Symbol.toPrimitive];if(void 0!==M){var p=M.call(w,g||"default");if("object"!==e(p))return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===g?String:Number)(w)}(w,"string");return"symbol"===e(g)?g:String(g)}i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(34338),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var k=i(13806);he.exports=function(w){!function l(w,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),g&&u(w,g)}(M,w);var g=function d(w){var g=function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var E,p=C(w);if(g){var b=C(this).constructor;E=Reflect.construct(p,arguments,b)}else E=p.apply(this,arguments);return function s(w,g){if(g&&("object"===e(g)||"function"==typeof g))return g;if(void 0!==g)throw new TypeError("Derived constructors may only return object or undefined");return A(w)}(this,E)}}(M);function M(){var p;!function n(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}(this,M);for(var E=arguments.length,b=new Array(E),I=0;I<E;I++)b[I]=arguments[I];return function R(w,g,M){(g=x(g))in w?Object.defineProperty(w,g,{value:M,enumerable:!0,configurable:!0,writable:!0}):w[g]=M}(A(p=g.call.apply(g,[this].concat(b))),"defaultMessage","{{field}} is required"),p}return function a(w,g,M){g&&o(w.prototype,g),M&&o(w,M),Object.defineProperty(w,"prototype",{writable:!1})}(M,[{key:"check",value:function(E){return!this.component.isValueHidden()&&!this.component.isEmpty(E)}}]),M}(k)},13806:(he,y,i)=>{"use strict";function e(d){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(s){return typeof s}:function(s){return s&&"function"==typeof Symbol&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(d)}function o(d,s){for(var A=0;A<s.length;A++){var _=s[A];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(d,l(_.key),_)}}function l(d){var s=function u(d,s){if("object"!==e(d)||null===d)return d;var A=d[Symbol.toPrimitive];if(void 0!==A){var _=A.call(d,s||"default");if("object"!==e(_))return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(d)}(d,"string");return"symbol"===e(s)?s:String(s)}i(40739),i(84254),i(752),i(21694),i(76265),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288),he.exports=function(){function d(s,A,_){(function n(d,s){if(!(d instanceof s))throw new TypeError("Cannot call a class as a function")})(this,d),this.component=s,this.settings=A,this.config=_}return function a(d,s,A){s&&o(d.prototype,s),A&&o(d,A),Object.defineProperty(d,"prototype",{writable:!1})}(d,[{key:"check",value:function(){}}]),d}()},25073:(he,y,i)=>{"use strict";i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(34338),i(38077),i(60228),i(76801),i(43843),i(6203),i(50886),i(69373),i(59903),i(59749),i(86544),i(79288);var e=i(12866),n=l(i(73808)),o=l(i(7191)),a=l(i(6990));function l(F){return F&&F.__esModule?F:{default:F}}function u(F){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(P){return typeof P}:function(P){return P&&"function"==typeof Symbol&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P})(F)}function s(F,P){for(var O=0;O<P.length;O++){var U=P[O];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(F,M(U.key),U)}}function C(F,P){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(U,V){return U.__proto__=V,U})(F,P)}function f(F){if(void 0===F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function w(F){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(O){return O.__proto__||Object.getPrototypeOf(O)})(F)}function M(F){var P=function p(F,P){if("object"!==u(F)||null===F)return F;var O=F[Symbol.toPrimitive];if(void 0!==O){var U=O.call(F,P||"default");if("object"!==u(U))return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===P?String:Number)(F)}(F,"string");return"symbol"===u(P)?P:String(P)}var E=(0,o.default)({Promise:n.default}),b=E.fetch,I=E.Headers,L=E.Request,D=i(13806);he.exports=function(F){!function _(F,P){if("function"!=typeof P&&null!==P)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(P&&P.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),Object.defineProperty(F,"prototype",{writable:!1}),P&&C(F,P)}(O,F);var P=function R(F){var P=function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var V,U=w(F);if(P){var K=w(this).constructor;V=Reflect.construct(U,arguments,K)}else V=U.apply(this,arguments);return function x(F,P){if(P&&("object"===u(P)||"function"==typeof P))return P;if(void 0!==P)throw new TypeError("Derived constructors may only return object or undefined");return f(F)}(this,V)}}(O);function O(){var U;!function d(F,P){if(!(F instanceof P))throw new TypeError("Cannot call a class as a function")}(this,O);for(var V=arguments.length,K=new Array(V),X=0;X<V;X++)K[X]=arguments[X];return function g(F,P,O){(P=M(P))in F?Object.defineProperty(F,P,{value:O,enumerable:!0,configurable:!0,writable:!0}):F[P]=O}(f(U=P.call.apply(P,[this].concat(K))),"defaultMessage","{{field}} contains an invalid selection"),U}return function A(F,P,O){P&&s(F.prototype,P),O&&s(F,O),Object.defineProperty(F,"prototype",{writable:!1})}(O,[{key:"check",value:function(V,K,X,me){if(!V||a.default.isEmpty(V)||!me)return!0;var J=this.component.component,Q={url:this.settings.url,method:"GET",qs:{},json:!0,headers:{}};if(a.default.isBoolean(Q.url)){if(Q.url=!!Q.url,!Q.url||"url"!==J.dataSrc||!J.data.url||!J.searchField)return!0;Q.url=J.data.url,Q.qs[J.searchField]=V,J.filter&&(Q.url+=(Q.url.includes("?")?"&":"?")+J.filter),J.selectFields&&(Q.qs.select=J.selectFields)}return!Q.url||(Q.url=(0,e.interpolate)(Q.url,{data:this.component.data}),Q.url+=(Q.url.includes("?")?"&":"?")+a.default.chain(Q.qs).map(function(re,de){return"".concat(encodeURIComponent(de),"=").concat(encodeURIComponent(re))}).join("&").value(),J.data&&J.data.headers&&a.default.each(J.data.headers,function(re){re.key&&(Q.headers[re.key]=re.value)}),J.authenticate&&this.config.token&&(Q.headers["x-jwt-token"]=this.config.token),b(new L(Q.url,{headers:new I(Q.headers)})).then(function(re){return!!re.ok&&re.json()}).then(function(re){return re&&re.length}).catch(function(){return!1}))}}]),O}(D)},69784:(he,y,i)=>{"use strict";i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(34338),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var e=function n(M){return M&&M.__esModule?M:{default:M}}(i(16676));function o(M){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(p){return typeof p}:function(p){return p&&"function"==typeof Symbol&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(M)}function l(M,p){for(var E=0;E<p.length;E++){var b=p[E];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(M,k(b.key),b)}}function s(M,p){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,I){return b.__proto__=I,b})(M,p)}function C(M){if(void 0===M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function x(M){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)})(M)}function k(M){var p=function w(M,p){if("object"!==o(M)||null===M)return M;var E=M[Symbol.toPrimitive];if(void 0!==E){var b=E.call(M,p||"default");if("object"!==o(b))return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===p?String:Number)(M)}(M,"string");return"symbol"===o(p)?p:String(p)}var g=i(13806);he.exports=function(M){!function d(M,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(p&&p.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),p&&s(M,p)}(E,M);var p=function A(M){var p=function R(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var I,b=x(M);if(p){var L=x(this).constructor;I=Reflect.construct(b,arguments,L)}else I=b.apply(this,arguments);return function _(M,p){if(p&&("object"===o(p)||"function"==typeof p))return p;if(void 0!==p)throw new TypeError("Derived constructors may only return object or undefined");return C(M)}(this,I)}}(E);function E(){var b;!function a(M,p){if(!(M instanceof p))throw new TypeError("Cannot call a class as a function")}(this,E);for(var I=arguments.length,L=new Array(I),D=0;D<I;D++)L[D]=arguments[D];return function f(M,p,E){(p=k(p))in M?Object.defineProperty(M,p,{value:E,enumerable:!0,configurable:!0,writable:!0}):M[p]=E}(C(b=p.call.apply(p,[this].concat(L))),"defaultMessage","{{field}} must contain valid time"),b}return function u(M,p,E){p&&l(M.prototype,p),E&&l(M,E),Object.defineProperty(M,"prototype",{writable:!1})}(E,[{key:"check",value:function(I){return!!this.component.isEmpty(I)||(0,e.default)(I,this.component.component.format).isValid()}}]),E}(g)},11581:(he,y,i)=>{"use strict";i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(34338),i(52003),i(64043),i(63945),i(30024),i(60228),i(69373),i(59903),i(59749),i(86544),i(79288);var e=i(12866),n=a(i(6990)),o=a(i(73808));function a(E){return E&&E.__esModule?E:{default:E}}function l(E){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(E)}function d(E,b){for(var I=0;I<b.length;I++){var L=b[I];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(E,g(L.key),L)}}function _(E,b){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,D){return L.__proto__=D,L})(E,b)}function x(E){if(void 0===E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function k(E){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(I){return I.__proto__||Object.getPrototypeOf(I)})(E)}function g(E){var b=function M(E,b){if("object"!==l(E)||null===E)return E;var I=E[Symbol.toPrimitive];if(void 0!==I){var L=I.call(E,b||"default");if("object"!==l(L))return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(E)}(E,"string");return"symbol"===l(b)?b:String(b)}var p=i(13806);he.exports=function(E){!function A(E,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(b&&b.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),Object.defineProperty(E,"prototype",{writable:!1}),b&&_(E,b)}(I,E);var b=function C(E){var b=function f(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var D,L=k(E);if(b){var F=k(this).constructor;D=Reflect.construct(L,arguments,F)}else D=L.apply(this,arguments);return function R(E,b){if(b&&("object"===l(b)||"function"==typeof b))return b;if(void 0!==b)throw new TypeError("Derived constructors may only return object or undefined");return x(E)}(this,D)}}(I);function I(){var L;!function u(E,b){if(!(E instanceof b))throw new TypeError("Cannot call a class as a function")}(this,I);for(var D=arguments.length,F=new Array(D),P=0;P<D;P++)F[P]=arguments[P];return function w(E,b,I){(b=g(b))in E?Object.defineProperty(E,b,{value:I,enumerable:!0,configurable:!0,writable:!0}):E[b]=I}(x(L=b.call.apply(b,[this].concat(F))),"defaultMessage","{{field}} must be unique"),L}return function s(E,b,I){b&&d(E.prototype,b),I&&d(E,I),Object.defineProperty(E,"prototype",{writable:!1})}(I,[{key:"check",value:function(D){var F=this;return!(!(!D||n.default.isObjectLike(D)&&n.default.isEmpty(D))&&this.config.db)||new o.default(function(P){var O=F.config.form,U=F.config.submission,V="data.".concat(F.component.path),K={form:O._id};n.default.isString(D)?K[V]={$regex:new RegExp("^".concat((0,e.escapeRegExCharacters)(D),"$")),$options:"i"}:n.default.isPlainObject(D)&&D.address&&D.address.address_components&&D.address.place_id?K["".concat(V,".address.place_id")]={$regex:new RegExp("^".concat((0,e.escapeRegExCharacters)(D.address.place_id),"$")),$options:"i"}:n.default.isArray(D)?K[V]={$all:D}:(n.default.isObject(D)||n.default.isNumber(D))&&(K[V]={$eq:D}),K.deleted={$eq:null},F.config.db.findOne(K,function(X,me){return P(!X&&(!me||U._id&&me._id.toString()===U._id))})}).catch(function(){return!1})}}]),I}(p)},15459:(he,y,i)=>{"use strict";function e(w){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(w)}function o(w,g){for(var M=0;M<g.length;M++){var p=g[M];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,x(p.key),p)}}function u(w,g){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,E){return p.__proto__=E,p})(w,g)}function A(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function C(w){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(M){return M.__proto__||Object.getPrototypeOf(M)})(w)}function x(w){var g=function f(w,g){if("object"!==e(w)||null===w)return w;var M=w[Symbol.toPrimitive];if(void 0!==M){var p=M.call(w,g||"default");if("object"!==e(p))return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===g?String:Number)(w)}(w,"string");return"symbol"===e(g)?g:String(g)}i(40739),i(5399),i(41517),i(88052),i(30050),i(51013),i(84254),i(752),i(21694),i(76265),i(34338),i(64043),i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var k=i(13806);he.exports=function(w){!function l(w,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),g&&u(w,g)}(M,w);var g=function d(w){var g=function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var E,p=C(w);if(g){var b=C(this).constructor;E=Reflect.construct(p,arguments,b)}else E=p.apply(this,arguments);return function s(w,g){if(g&&("object"===e(g)||"function"==typeof g))return g;if(void 0!==g)throw new TypeError("Derived constructors may only return object or undefined");return A(w)}(this,E)}}(M);function M(){var p;!function n(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}(this,M);for(var E=arguments.length,b=new Array(E),I=0;I<E;I++)b[I]=arguments[I];return function R(w,g,M){(g=x(g))in w?Object.defineProperty(w,g,{value:M,enumerable:!0,configurable:!0,writable:!0}):w[g]=M}(A(p=g.call.apply(g,[this].concat(b))),"defaultMessage","{{field}} must be a valid url."),p}return function a(w,g,M){g&&o(w.prototype,g),M&&o(w,M),Object.defineProperty(w,"prototype",{writable:!1})}(M,[{key:"check",value:function(E){return!E||/^(?:(?:(?:https?|ftp):)?\/\/)?(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(E)&&!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(E)}}]),M}(k)},35427:(he,y,i)=>{"use strict";var e=i(53254),n=i(19526),o=i(59630),a=i(48367),l=i(152),u=i(27475),d=i(56862),s=i(78989),A=i(59612),_=i(22776),C=i(42445),R=i(45443),x=i(26223),f=i(75544),k=i(83837),w=i(83789),g=i(25073),M=i(11581),p=i(15459),E=i(54119),b=i(81645),I=i(69784);he.exports={custom:e,date:n,day:o,email:a,json:l,mask:u,max:d,maxDate:s,maxLength:A,maxWords:_,min:C,minDate:R,minLength:x,minWords:f,pattern:k,required:w,select:g,unique:M,url:p,minYear:E,maxYear:b,time:I}},66951:(he,y,i)=>{"use strict";function e(C){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(C)}function n(C,R){var x=Object.keys(C);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(C);R&&(f=f.filter(function(k){return Object.getOwnPropertyDescriptor(C,k).enumerable})),x.push.apply(x,f)}return x}function o(C){for(var R=1;R<arguments.length;R++){var x=null!=arguments[R]?arguments[R]:{};R%2?n(Object(x),!0).forEach(function(f){d(C,f,x[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(x)):n(Object(x)).forEach(function(f){Object.defineProperty(C,f,Object.getOwnPropertyDescriptor(x,f))})}return C}function l(C,R){for(var x=0;x<R.length;x++){var f=R[x];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(C,s(f.key),f)}}function d(C,R,x){return(R=s(R))in C?Object.defineProperty(C,R,{value:x,enumerable:!0,configurable:!0,writable:!0}):C[R]=x,C}function s(C){var R=function A(C,R){if("object"!==e(C)||null===C)return C;var x=C[Symbol.toPrimitive];if(void 0!==x){var f=x.call(C,R||"default");if("object"!==e(f))return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===R?String:Number)(C)}(C,"string");return"symbol"===e(R)?R:String(R)}i(40739),i(69358),i(38077),i(81919),i(49693),i(47522),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var _=function(){function C(){!function a(C,R){if(!(C instanceof R))throw new TypeError("Cannot call a class as a function")}(this,C)}return function u(C,R,x){R&&l(C.prototype,R),x&&l(C,x),Object.defineProperty(C,"prototype",{writable:!1})}(C,null,[{key:"addTransformer",value:function(x,f){C.transformers[x]=f}},{key:"addTransformers",value:function(x){C.transformers=o(o({},C.transformers),x)}},{key:"getTransformer",value:function(x){return C.transformers[x]}},{key:"getTransformers",value:function(){return C.transformers}}]),C}();y.default=_,d(_,"transformers",{})},57192:(he,y,i)=>{"use strict";function e(C){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(C)}function n(C,R){var x=Object.keys(C);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(C);R&&(f=f.filter(function(k){return Object.getOwnPropertyDescriptor(C,k).enumerable})),x.push.apply(x,f)}return x}function o(C){for(var R=1;R<arguments.length;R++){var x=null!=arguments[R]?arguments[R]:{};R%2?n(Object(x),!0).forEach(function(f){d(C,f,x[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(x)):n(Object(x)).forEach(function(f){Object.defineProperty(C,f,Object.getOwnPropertyDescriptor(x,f))})}return C}function l(C,R){for(var x=0;x<R.length;x++){var f=R[x];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(C,s(f.key),f)}}function d(C,R,x){return(R=s(R))in C?Object.defineProperty(C,R,{value:x,enumerable:!0,configurable:!0,writable:!0}):C[R]=x,C}function s(C){var R=function A(C,R){if("object"!==e(C)||null===C)return C;var x=C[Symbol.toPrimitive];if(void 0!==x){var f=x.call(C,R||"default");if("object"!==e(f))return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===R?String:Number)(C)}(C,"string");return"symbol"===e(R)?R:String(R)}i(40739),i(69358),i(38077),i(81919),i(49693),i(47522),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(69373),i(59903),i(59749),i(86544),i(60228),i(79288);var _=function(){function C(){!function a(C,R){if(!(C instanceof R))throw new TypeError("Cannot call a class as a function")}(this,C)}return function u(C,R,x){R&&l(C.prototype,R),x&&l(C,x),Object.defineProperty(C,"prototype",{writable:!1})}(C,null,[{key:"addValueSource",value:function(x,f){C.valueSources[x]=f}},{key:"addValueSources",value:function(x){C.valueSources=o(o({},C.valueSources),x)}},{key:"getValueSource",value:function(x){return C.valueSources[x]}},{key:"getValueSources",value:function(){return C.valueSources}}]),C}();y.default=_,d(_,"valueSources",{})},5199:(he,y,i)=>{"use strict";function e(X){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(me){return typeof me}:function(me){return me&&"function"==typeof Symbol&&me.constructor===Symbol&&me!==Symbol.prototype?"symbol":typeof me})(X)}i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(45247),i(69358),i(49693),i(47522),i(99474),i(35082),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(64043),i(57267),i(42227),i(30024),i(38077),i(60228),i(34338),i(96869),i(50886),i(22462),i(98742),i(76801),i(43843),i(25728),i(63975),i(63945),i(41517),i(5399),i(88052);var n=i(55798),o=d(i(46687)),a=i(12866),l=d(i(16676)),u=d(i(6990));function d(X){return X&&X.__esModule?X:{default:X}}function s(X,me){var J=Object.keys(X);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(X);me&&(Q=Q.filter(function(re){return Object.getOwnPropertyDescriptor(X,re).enumerable})),J.push.apply(J,Q)}return J}function A(X){for(var me=1;me<arguments.length;me++){var J=null!=arguments[me]?arguments[me]:{};me%2?s(Object(J),!0).forEach(function(Q){k(X,Q,J[Q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(J)):s(Object(J)).forEach(function(Q){Object.defineProperty(X,Q,Object.getOwnPropertyDescriptor(J,Q))})}return X}function C(X,me){for(var J=0;J<me.length;J++){var Q=me[J];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(X,w(Q.key),Q)}}function x(X,me,J,Q){return(x=typeof Reflect<"u"&&Reflect.set?Reflect.set:function(de,te,j,H){var q,z=p(de,te);if(z){if((q=Object.getOwnPropertyDescriptor(z,te)).set)return q.set.call(H,j),!0;if(!q.writable)return!1}if(q=Object.getOwnPropertyDescriptor(H,te)){if(!q.writable)return!1;q.value=j,Object.defineProperty(H,te,q)}else k(H,te,j);return!0})(X,me,J,Q)}function k(X,me,J){return(me=w(me))in X?Object.defineProperty(X,me,{value:J,enumerable:!0,configurable:!0,writable:!0}):X[me]=J,X}function w(X){var me=function g(X,me){if("object"!==e(X)||null===X)return X;var J=X[Symbol.toPrimitive];if(void 0!==J){var Q=J.call(X,me||"default");if("object"!==e(Q))return Q;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===me?String:Number)(X)}(X,"string");return"symbol"===e(me)?me:String(me)}function M(){return M=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(me,J,Q){var re=p(me,J);if(re){var de=Object.getOwnPropertyDescriptor(re,J);return de.get?de.get.call(arguments.length<3?me:Q):de.value}},M.apply(this,arguments)}function p(X,me){for(;!Object.prototype.hasOwnProperty.call(X,me)&&null!==(X=P(X)););return X}function b(X,me){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Q,re){return Q.__proto__=re,Q})(X,me)}function P(X){return(P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)})(X)}var O="yyyy-MM-dd hh:mm a",U="yyyy-MM-ddTHH:mm:ssZ",V=(0,a.getBrowserInfo)().ie;y.default=function(X){!function E(X,me){if("function"!=typeof me&&null!==me)throw new TypeError("Super expression must either be null or a function");X.prototype=Object.create(me&&me.prototype,{constructor:{value:X,writable:!0,configurable:!0}}),Object.defineProperty(X,"prototype",{writable:!1}),me&&b(X,me)}(J,X);var me=function I(X){var me=function F(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var re,Q=P(X);if(me){var de=P(this).constructor;re=Reflect.construct(Q,arguments,de)}else re=Q.apply(this,arguments);return function L(X,me){if(me&&("object"===e(me)||"function"==typeof me))return me;if(void 0!==me)throw new TypeError("Derived constructors may only return object or undefined");return function D(X){if(void 0===X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X}(X)}(this,re)}}(J);function J(Q,re,de,te){var j;return function _(X,me){if(!(X instanceof me))throw new TypeError("Cannot call a class as a function")}(this,J),(j=me.call(this,Q,re,de,te)).settings.noCalendar&&(j.settings.format=j.settings.format.replace(/yyyy-MM-dd /g,"")),j.settings.enableTime?j.settings.time_24hr&&(j.settings.format=j.settings.format.replace(/hh:mm a$/g,"HH:mm")):j.settings.format=j.settings.format.replace(/ hh:mm a$/g,""),j.zoneLoading=!1,j.timezonesUrl="".concat(n.GlobalFormio.cdn["moment-timezone"],"/data/packed/latest.json"),j}return function R(X,me,J){me&&C(X.prototype,me),J&&C(X,J),Object.defineProperty(X,"prototype",{writable:!1})}(J,[{key:"loadZones",value:function(){var re=this,de=this.timezone;return!!this.zoneLoading||!((0,a.zonesLoaded)()||!(0,a.shouldLoadZones)(de))&&(this.zoneLoading=!0,(0,a.loadZones)(this.timezonesUrl,de).then(function(){re.zoneLoading=!1,re.emit("redraw")}),!0)}},{key:"attach",value:function(re){var te,de=this,j=M(P(J.prototype),"attach",this).call(this,re),H=(0,a.getLocaleDateFormatInfo)(this.settings.language);this.defaultFormat={date:H.dayFirst?"d/m/Y ":"m/d/Y ",time:"G:i K"},this.closedOn=0,this.valueFormat="date"===this.settings.saveAs?U:this.settings.dateFormat||U,this.valueMomentFormat=(0,a.convertFormatToMoment)(this.valueFormat);var z=this.settings.readOnly;return this.settings.minDate=z?null:(0,a.getDateSetting)(this.settings.minDate),this.settings.maxDate=z?null:(0,a.getDateSetting)(this.settings.maxDate),this.settings.disable=this.disabledDates,this.settings.disableWeekends&&this.settings.disable.push(this.disableWeekends),this.settings.disableWeekdays&&this.settings.disable.push(this.disableWeekdays),this.settings.disableFunction&&this.settings.disable.push(this.disableFunction),this.settings.wasDefaultValueChanged=!1,this.settings.defaultValue="",this.settings.manualInputValue="",this.settings.isManuallyOverriddenValue=!1,this.settings.currentValue="",this.settings.altFormat=(0,a.convertFormatToFlatpickr)(this.settings.format),this.settings.dateFormat=(0,a.convertFormatToFlatpickr)(this.settings.dateFormat),this.settings.position="auto center",this.settings.onChange=function(){de.settings.allowInput&&(de.settings.isManuallyOverriddenValue&&de.settings.enableTime?de.calendar._input.value=de.settings.manualInputValue:de.settings.manualInputValue="",de.settings.isManuallyOverriddenValue=!1),de.emit("update")},this.settings.onOpen=function(){return de.hook("onCalendarOpen")},this.settings.onClose=function(){de.hook("onCalendarClose"),de.closedOn=Date.now(),de.settings.allowInput&&de.settings.enableTime&&(de.calendar._input.value=de.settings.manualInputValue||de.calendar._input.value,de.settings.isManuallyOverriddenValue=!1,de.emit("update")),de.settings.wasDefaultValueChanged&&(de.calendar._input.value=de.settings.defaultValue,de.settings.wasDefaultValueChanged=!1),de.calendar&&de.emit("blur")},n.GlobalFormio.requireLibrary("flatpickr-css","flatpickr",[{type:"styles",src:"".concat(n.GlobalFormio.cdn["flatpickr-formio"],"/flatpickr.min.css")}],!0),this.component.shortcutButtons&&(this.component.shortcutButtons=this.component.shortcutButtons.filter(function(q){return q.label&&q.onClick})),null!==(te=this.component.shortcutButtons)&&void 0!==te&&te.length&&n.GlobalFormio.requireLibrary("shortcut-buttons-flatpickr-css","ShortcutButtonsPlugin",[{type:"styles",src:"".concat(n.GlobalFormio.cdn["shortcut-buttons-flatpickr"],"/themes/light.min.css")}],!0),j.then(function(){var q;if(null!==(q=de.component.shortcutButtons)&&void 0!==q&&q.length)return n.GlobalFormio.requireLibrary("shortcut-buttons-flatpickr","ShortcutButtonsPlugin","".concat(n.GlobalFormio.cdn["shortcut-buttons-flatpickr"],"/shortcut-buttons-flatpickr.min.js"),!0)}).then(function(q){return n.GlobalFormio.requireLibrary("flatpickr","flatpickr","".concat(n.GlobalFormio.cdn["flatpickr-formio"],"/flatpickr.min.js"),!0).then(function(se){var ne;if(null!==(ne=de.component.shortcutButtons)&&void 0!==ne&&ne.length&&q&&de.initShortcutButtonsPlugin(q),de.settings.formatDate=de.getFlatpickrFormatDate(se),de._input){var _e=de.settings.locale;if(_e&&_e.length>=2&&"en"!==_e)return n.GlobalFormio.requireLibrary("flatpickr-".concat(_e),"flatpickr-".concat(_e),"".concat(n.GlobalFormio.cdn["flatpickr-formio"],"/l10n/flatpickr-").concat(_e,".js"),!0).then(function(){return de.initFlatpickr(se)});de.initFlatpickr(se)}})}).catch(function(q){console.warn(q)})}},{key:"disableWeekends",get:function(){return function(re){return 0===re.getDay()||6===re.getDay()}}},{key:"disableWeekdays",get:function(){var re=this;return function(de){return!re.disableWeekends(de)}}},{key:"disableFunction",get:function(){var re=this;return function(de){return re.evaluate("return ".concat(re.settings.disableFunction),{date:de})}}},{key:"timezone",get:function(){return this.componentInstance.getTimezone(this.settings)}},{key:"defaultSettings",get:function(){return J.defaultSettings}},{key:"addSuffix",value:function(re){var de=this;return this.addEventListener(re,"click",function(){setTimeout(function(){de.calendar&&(!de.calendar.isOpen&&Date.now()-de.closedOn>200?de.calendar.open():de.calendar.isOpen&&de.calendar.close())},0)}),re}},{key:"disabled",set:function(re){(function f(X,me,J,Q,re){if(!x(X,me,J,Q||X)&&re)throw new Error("failed to set property")})(P(J.prototype),"disabled",re,this,!0),this.calendar&&(re?this.calendar._input.setAttribute("disabled","disabled"):this.calendar._input.removeAttribute("disabled"),this.calendar.close(),this.calendar.redraw())}},{key:"input",get:function(){return this.calendar?this.calendar.altInput:null}},{key:"disabledDates",get:function(){return this.settings.disabledDates?this.settings.disabledDates.split(",").map(function(de){var te=/\d{4}-\d{2}-\d{2}/g,j=de.match(te);if(j&&j.length)return 1===j.length?de.match(te)[0]:{from:de.match(te)[0],to:de.match(te)[1]}}):[]}},{key:"localeFormat",get:function(){var re="";return this.settings.enableDate&&(re+=this.defaultFormat.date),this.settings.enableTime&&(re+=this.defaultFormat.time),re}},{key:"dateTimeFormat",get:function(){return this.settings.useLocaleSettings?this.localeFormat:(0,a.convertFormatToFlatpickr)(this.dateFormat)}},{key:"dateFormat",get:function(){return u.default.get(this.settings,"format",O)}},{key:"getDateValue",value:function(re,de,te){return te?(0,a.momentDate)(re,this.valueFormat,this.timezone).format((0,a.convertFormatToMoment)(de)):(0,l.default)(re).format((0,a.convertFormatToMoment)(de))}},{key:"getValue",value:function(){if(!this.calendar)return M(P(J.prototype),"getValue",this).call(this);var re=this.calendar.selectedDates;return re&&re.length?re[0]instanceof Date?this.getDateValue(re[0],this.valueFormat,"date"===this.settings.saveAs):"Invalid Date":M(P(J.prototype),"getValue",this).call(this)}},{key:"isValueISO8601",value:function(re){return re&&"string"==typeof re&&re.match(/-[0-9]{2}T[0-9]{2}:/)}},{key:"setValue",value:function(re){var de="text"===this.settings.saveAs;if(!this.calendar)return re=re&&(0,a.formatDate)(this.timezonesUrl,re,(0,a.convertFormatToMoment)(this.settings.format),this.timezone,(0,a.convertFormatToMoment)(this.valueMomentFormat)),M(P(J.prototype),"setValue",this).call(this,re);var te=this.loadZones();re?de||!this.settings.readOnly||te?this.isValueISO8601(re)?this.calendar.setDate(re,!1):this.calendar.setDate((0,l.default)(re,this.valueMomentFormat).toDate(),!1):this.calendar.setDate((0,a.momentDate)(re,this.valueFormat,this.timezone).format(),!1):this.calendar.clear(!1)}},{key:"getValueAsString",value:function(re,de){var te=de||this.dateFormat,j=this.calendar?this.valueFormat:this.settings.dateFormat;return"text"===this.settings.saveAs&&this.componentInstance.parent&&!this.settings.readOnly?(0,l.default)(re,(0,a.convertFormatToMoment)(j)).format((0,a.convertFormatToMoment)(j)):(0,a.formatDate)(this.timezonesUrl,re,te,this.timezone,(0,a.convertFormatToMoment)(j))}},{key:"setErrorClasses",value:function(re){this.input&&(re?(this.addClass(this.input,"is-invalid"),this.input.setAttribute("aria-invalid","true")):(this.removeClass(this.input,"is-invalid"),this.input.setAttribute("aria-invalid","false")))}},{key:"validationValue",value:function(re){return"string"==typeof re?new Date(re):re.map(function(de){return new Date(de)})}},{key:"isCalendarElement",value:function(re){var de,te,j,H,z;return!(re&&(null===(de=this.calendar)||void 0===de||null===(te=de.config)||void 0===te||null===(j=te.appendTo)||void 0===j||!j.contains(re)))||(null===(H=this.calendar)||void 0===H||null===(z=H.calendarContainer)||void 0===z?void 0:z.contains(re))}},{key:"initFlatpickr",value:function(re){var de=this;if(this.calendar=new re(this._input,A(A({},this.settings),{},{disableMobile:!0})),this.calendar.altInput.addEventListener("input",function(H){de.settings.allowInput&&de.settings.currentValue!==H.target.value&&(de.settings.manualInputValue=H.target.value,de.settings.isManuallyOverriddenValue=!0,de.settings.currentValue=H.target.value),""===H.target.value&&de.calendar.selectedDates.length>0?(de.settings.wasDefaultValueChanged=!0,de.settings.defaultValue=H.target.value,de.calendar.clear()):de.settings.wasDefaultValueChanged=!1}),!this.settings.readOnly&&!u.default.some(["MMMM"],function(H){return u.default.includes(de.settings.format,H)})&&this.setInputMask(this.calendar._input,(0,a.convertFormatToMask)(this.settings.format)),V){var j=this.calendar._handlers.find(function(H){return"blur"===H.event&&H.element===de.calendar._input});this.calendar._input.removeEventListener("blur",j.handler),this.addEventListener(this.calendar._input,"blur",function(H){var z=de.settings.shadowRoot?de.settings.shadowRoot.activeElement:document.activeElement;H.target===de.calendar._input&&!de.isCalendarElement(H.relatedTarget?H.relatedTarget:z)&&de.calendar.setDate(de.calendar._input.value,!0,H.target===de.calendar.altInput?de.calendar.config.altFormat:de.calendar.config.dateFormat)})}this.addEventListener(this.calendar._input,"blur",function(H){var z=de.settings.shadowRoot?de.settings.shadowRoot.activeElement:document.activeElement,q=H.relatedTarget?H.relatedTarget:z;if(V&&!q||de.isCalendarElement(q)){if(!de.calendar.input.value&&de.calendar.config.noCalendar){var _e,ge,Ce,Te,De=(0,l.default)({hour:null===(_e=de.calendar)||void 0===_e||null===(ge=_e.config)||void 0===ge?void 0:ge.defaultHour,minute:null===(Ce=de.calendar)||void 0===Ce||null===(Te=Ce.config)||void 0===Te?void 0:Te.defaultMinute}).toDate();de.calendar.setDate(De,!0,de.settings.format)}}else{var ne=de.calendar.input.value&&(0,l.default)(de.calendar.input.value,(0,a.convertFormatToMoment)(de.valueFormat)).toDate();de.calendar.setDate(ne,!0,de.settings.altFormat)}}),this.addEventListener(this.calendar.altInput,"keydown",function(H){13===H.keyCode&&de.calendar.isOpen&&(de.calendar.close(),H.stopPropagation())}),this.setValue(this.componentValue)}},{key:"initShortcutButtonsPlugin",value:function(re){var de=this;this.settings.plugins=[re({button:this.component.shortcutButtons.map(function(te){return{label:te.label,attributes:te.attribute}}),onClick:function(j){var z=de.evaluate(de.component.shortcutButtons[j].onClick,{date:new Date},"date");de.calendar.setDate(z,!0)}})]}},{key:"componentValue",get:function(){var re=this.componentInstance.dataValue;return Array.isArray(re)&&(re=re[this.valueIndex]),re}},{key:"getFlatpickrFormatDate",value:function(re){var de=this;return function(te,j){return de.settings.readOnly&&j===de.settings.altFormat?de.loadZones()?re.formatDate(te,j):new Date(de.getValue()).toString()===te.toString()?(0,a.formatOffset)(de.timezonesUrl,re.formatDate.bind(re),new Date(de.componentValue),j,de.timezone):(0,a.formatOffset)(de.timezonesUrl,re.formatDate.bind(re),te,j,de.timezone):re.formatDate(te,j)}}},{key:"destroy",value:function(){M(P(J.prototype),"destroy",this).call(this),this.calendar&&this.calendar.destroy()}}],[{key:"defaultSettings",get:function(){return{type:"calendar",altInput:!0,allowInput:!0,clickOpens:!0,enableDate:!0,enableTime:!0,mode:"single",noCalendar:!1,format:O,dateFormat:U,useLocaleSettings:!1,language:"us-en",hourIncrement:1,minuteIncrement:5,time_24hr:!1,saveAs:"date",displayInTimezone:"",timezone:"",disable:[],minDate:"",maxDate:""}}}]),J}(o.default)},46687:(he,y,i)=>{"use strict";function e(b){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(I){return typeof I}:function(I){return I&&"function"==typeof Symbol&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I})(b)}i(60228),i(30050),i(51013),i(40739),i(32349),i(81919),i(69373),i(59903),i(59749),i(86544),i(79288),i(84254),i(752),i(21694),i(76265),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,i(60429),i(41517),i(5399),i(88052);var n=l(i(6990)),o=l(i(92935)),a=l(i(73808));function l(b){return b&&b.__esModule?b:{default:b}}function d(b,I){for(var L=0;L<I.length;L++){var D=I[L];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(b,A(D.key),D)}}function A(b){var I=function _(b,I){if("object"!==e(b)||null===b)return b;var L=b[Symbol.toPrimitive];if(void 0!==L){var D=L.call(b,I||"default");if("object"!==e(D))return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===I?String:Number)(b)}(b,"string");return"symbol"===e(I)?I:String(I)}function C(){return C=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(I,L,D){var F=function R(b,I){for(;!Object.prototype.hasOwnProperty.call(b,I)&&null!==(b=p(b)););return b}(I,L);if(F){var P=Object.getOwnPropertyDescriptor(F,L);return P.get?P.get.call(arguments.length<3?I:D):P.value}},C.apply(this,arguments)}function f(b,I){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,F){return D.__proto__=F,D})(b,I)}function p(b){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(L){return L.__proto__||Object.getPrototypeOf(L)})(b)}y.default=function(b){!function x(b,I){if("function"!=typeof I&&null!==I)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(I&&I.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),I&&f(b,I)}(L,b);var I=function k(b){var I=function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var F,D=p(b);if(I){var P=p(this).constructor;F=Reflect.construct(D,arguments,P)}else F=D.apply(this,arguments);return function w(b,I){if(I&&("object"===e(I)||"function"==typeof I))return I;if(void 0!==I)throw new TypeError("Derived constructors may only return object or undefined");return function g(b){if(void 0===b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}(b)}(this,F)}}(L);function L(D,F,P,O){var U;return function u(b,I){if(!(b instanceof I))throw new TypeError("Cannot call a class as a function")}(this,L),(U=I.call(this,D)).valueIndex=O||0,U.componentInstance=P,U.namespace="formio.widget",U.component=F||{},U.settings=n.default.merge({},U.defaultSettings,D||{}),U}return function s(b,I,L){I&&d(b.prototype,I),L&&d(b,L),Object.defineProperty(b,"prototype",{writable:!1})}(L,[{key:"attach",value:function(F){return this._input=F,a.default.resolve()}},{key:"defaultSettings",get:function(){return{}}},{key:"disabled",set:function(F){F?this._input.setAttribute("disabled","disabled"):this._input.removeAttribute("disabled")}},{key:"input",get:function(){return this._input}},{key:"getValue",value:function(){return this._input.value}},{key:"getValueAsString",value:function(F){return F}},{key:"validationValue",value:function(F){return F}},{key:"addPrefix",value:function(){return null}},{key:"addSuffix",value:function(){return null}},{key:"setValue",value:function(F){this._input.value=F}},{key:"evalContext",value:function(F){return C(p(L.prototype),"evalContext",this).call(this,Object.assign({component:this.component,row:this.componentInstance.data,rowIndex:this.componentInstance.rowIndex,data:this.componentInstance.rootValue,value:this.componentInstance.dataValue,t:this.t.bind(this),submission:this.componentInstance.root?this.componentInstance.root._submission:{data:this.componentInstance.rootValue},form:this.componentInstance.root?this.componentInstance.root._form:{},options:this.options},F))}}],[{key:"defaultSettings",get:function(){return{type:"input"}}}]),L}(o.default)},27081:(he,y,i)=>{"use strict";i(40739),Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(46687)),n=o(i(5199));function o(l){return l&&l.__esModule?l:{default:l}}y.default={input:e.default,calendar:n.default}},57271:(he,y,i)=>{var e;
/*! Hammer.JS - v2.0.7 - 2016-04-22
        * http://hammerjs.github.io/
        *
        * Copyright (c) 2016 Jorik Tangelder;
        * Licensed under the MIT license */!function(n,o,a,l){"use strict";var w,u=["","webkit","Moz","MS","ms","o"],d=o.createElement("div"),s="function",A=Math.round,_=Math.abs,C=Date.now;function R(ao,Go,pr){return setTimeout(E(ao,pr),Go)}function x(ao,Go,pr){return!!Array.isArray(ao)&&(f(ao,pr[Go],pr),!0)}function f(ao,Go,pr){var Rr;if(ao)if(ao.forEach)ao.forEach(Go,pr);else if(ao.length!==l)for(Rr=0;Rr<ao.length;)Go.call(pr,ao[Rr],Rr,ao),Rr++;else for(Rr in ao)ao.hasOwnProperty(Rr)&&Go.call(pr,ao[Rr],Rr,ao)}function k(ao,Go,pr){var Rr="DEPRECATED METHOD: "+Go+"\n"+pr+" AT \n";return function(){var br=new Error("get-stack-trace"),Ti=br&&br.stack?br.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",mr=n.console&&(n.console.warn||n.console.log);return mr&&mr.call(n.console,Rr,Ti),ao.apply(this,arguments)}}w="function"!=typeof Object.assign?function(Go){if(Go===l||null===Go)throw new TypeError("Cannot convert undefined or null to object");for(var pr=Object(Go),Rr=1;Rr<arguments.length;Rr++){var br=arguments[Rr];if(br!==l&&null!==br)for(var Ti in br)br.hasOwnProperty(Ti)&&(pr[Ti]=br[Ti])}return pr}:Object.assign;var g=k(function(Go,pr,Rr){for(var br=Object.keys(pr),Ti=0;Ti<br.length;)(!Rr||Rr&&Go[br[Ti]]===l)&&(Go[br[Ti]]=pr[br[Ti]]),Ti++;return Go},"extend","Use `assign`."),M=k(function(Go,pr){return g(Go,pr,!0)},"merge","Use `assign`.");function p(ao,Go,pr){var br,Rr=Go.prototype;(br=ao.prototype=Object.create(Rr)).constructor=ao,br._super=Rr,pr&&w(br,pr)}function E(ao,Go){return function(){return ao.apply(Go,arguments)}}function b(ao,Go){return typeof ao==s?ao.apply(Go&&Go[0]||l,Go):ao}function I(ao,Go){return ao===l?Go:ao}function L(ao,Go,pr){f(O(Go),function(Rr){ao.addEventListener(Rr,pr,!1)})}function D(ao,Go,pr){f(O(Go),function(Rr){ao.removeEventListener(Rr,pr,!1)})}function F(ao,Go){for(;ao;){if(ao==Go)return!0;ao=ao.parentNode}return!1}function P(ao,Go){return ao.indexOf(Go)>-1}function O(ao){return ao.trim().split(/\s+/g)}function U(ao,Go,pr){if(ao.indexOf&&!pr)return ao.indexOf(Go);for(var Rr=0;Rr<ao.length;){if(pr&&ao[Rr][pr]==Go||!pr&&ao[Rr]===Go)return Rr;Rr++}return-1}function V(ao){return Array.prototype.slice.call(ao,0)}function K(ao,Go,pr){for(var Rr=[],br=[],Ti=0;Ti<ao.length;){var mr=Go?ao[Ti][Go]:ao[Ti];U(br,mr)<0&&Rr.push(ao[Ti]),br[Ti]=mr,Ti++}return pr&&(Rr=Go?Rr.sort(function(mo,Ii){return mo[Go]>Ii[Go]}):Rr.sort()),Rr}function X(ao,Go){for(var pr,Rr,br=Go[0].toUpperCase()+Go.slice(1),Ti=0;Ti<u.length;){if((Rr=(pr=u[Ti])?pr+br:Go)in ao)return Rr;Ti++}return l}var me=1;function Q(ao){var Go=ao.ownerDocument||ao;return Go.defaultView||Go.parentWindow||n}var de="ontouchstart"in n,te=X(n,"PointerEvent")!==l,j=de&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),H="touch",q="mouse",ne=25,_e=1,Ce=4,Te=8,De=1,fe=2,xe=4,Oe=8,Le=16,Gt=fe|xe,Ut=Oe|Le,An=Gt|Ut,$n=["x","y"],xn=["clientX","clientY"];function mt(ao,Go){var pr=this;this.manager=ao,this.callback=Go,this.element=ao.element,this.target=ao.options.inputTarget,this.domHandler=function(Rr){b(ao.options.enable,[ao])&&pr.handler(Rr)},this.init()}function Wt(ao,Go,pr){var Rr=pr.pointers.length,br=pr.changedPointers.length,Ti=Go&_e&&Rr-br==0,mr=Go&(Ce|Te)&&Rr-br==0;pr.isFirst=!!Ti,pr.isFinal=!!mr,Ti&&(ao.session={}),pr.eventType=Go,function dn(ao,Go){var pr=ao.session,Rr=Go.pointers,br=Rr.length;pr.firstInput||(pr.firstInput=yi(Go)),br>1&&!pr.firstMultiple?pr.firstMultiple=yi(Go):1===br&&(pr.firstMultiple=!1);var Ti=pr.firstInput,mr=pr.firstMultiple,ri=mr?mr.center:Ti.center,mo=Go.center=nn(Rr);Go.timeStamp=C(),Go.deltaTime=Go.timeStamp-Ti.timeStamp,Go.angle=Ko(ri,mo),Go.distance=Eo(ri,mo),function sn(ao,Go){var pr=Go.center,Rr=ao.offsetDelta||{},br=ao.prevDelta||{},Ti=ao.prevInput||{};(Go.eventType===_e||Ti.eventType===Ce)&&(br=ao.prevDelta={x:Ti.deltaX||0,y:Ti.deltaY||0},Rr=ao.offsetDelta={x:pr.x,y:pr.y}),Go.deltaX=br.x+(pr.x-Rr.x),Go.deltaY=br.y+(pr.y-Rr.y)}(pr,Go),Go.offsetDirection=mi(Go.deltaX,Go.deltaY);var Ii=Mi(Go.deltaTime,Go.deltaX,Go.deltaY);Go.overallVelocityX=Ii.x,Go.overallVelocityY=Ii.y,Go.overallVelocity=_(Ii.x)>_(Ii.y)?Ii.x:Ii.y,Go.scale=mr?function Bn(ao,Go){return Eo(Go[0],Go[1],xn)/Eo(ao[0],ao[1],xn)}(mr.pointers,Rr):1,Go.rotation=mr?function xo(ao,Go){return Ko(Go[1],Go[0],xn)+Ko(ao[1],ao[0],xn)}(mr.pointers,Rr):0,Go.maxPointers=pr.prevInput?Go.pointers.length>pr.prevInput.maxPointers?Go.pointers.length:pr.prevInput.maxPointers:Go.pointers.length,function fn(ao,Go){var br,Ti,mr,ri,pr=ao.lastInterval||Go,Rr=Go.timeStamp-pr.timeStamp;if(Go.eventType!=Te&&(Rr>ne||pr.velocity===l)){var mo=Go.deltaX-pr.deltaX,Ii=Go.deltaY-pr.deltaY,yo=Mi(Rr,mo,Ii);Ti=yo.x,mr=yo.y,br=_(yo.x)>_(yo.y)?yo.x:yo.y,ri=mi(mo,Ii),ao.lastInterval=Go}else br=pr.velocity,Ti=pr.velocityX,mr=pr.velocityY,ri=pr.direction;Go.velocity=br,Go.velocityX=Ti,Go.velocityY=mr,Go.direction=ri}(pr,Go);var yo=ao.element;F(Go.srcEvent.target,yo)&&(yo=Go.srcEvent.target),Go.target=yo}(ao,pr),ao.emit("hammer.input",pr),ao.recognize(pr),ao.session.prevInput=pr}function yi(ao){for(var Go=[],pr=0;pr<ao.pointers.length;)Go[pr]={clientX:A(ao.pointers[pr].clientX),clientY:A(ao.pointers[pr].clientY)},pr++;return{timeStamp:C(),pointers:Go,center:nn(Go),deltaX:ao.deltaX,deltaY:ao.deltaY}}function nn(ao){var Go=ao.length;if(1===Go)return{x:A(ao[0].clientX),y:A(ao[0].clientY)};for(var pr=0,Rr=0,br=0;br<Go;)pr+=ao[br].clientX,Rr+=ao[br].clientY,br++;return{x:A(pr/Go),y:A(Rr/Go)}}function Mi(ao,Go,pr){return{x:Go/ao||0,y:pr/ao||0}}function mi(ao,Go){return ao===Go?De:_(ao)>=_(Go)?ao<0?fe:xe:Go<0?Oe:Le}function Eo(ao,Go,pr){pr||(pr=$n);var Rr=Go[pr[0]]-ao[pr[0]],br=Go[pr[1]]-ao[pr[1]];return Math.sqrt(Rr*Rr+br*br)}function Ko(ao,Go,pr){return pr||(pr=$n),180*Math.atan2(Go[pr[1]]-ao[pr[1]],Go[pr[0]]-ao[pr[0]])/Math.PI}mt.prototype={handler:function(){},init:function(){this.evEl&&L(this.element,this.evEl,this.domHandler),this.evTarget&&L(this.target,this.evTarget,this.domHandler),this.evWin&&L(Q(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&D(this.element,this.evEl,this.domHandler),this.evTarget&&D(this.target,this.evTarget,this.domHandler),this.evWin&&D(Q(this.element),this.evWin,this.domHandler)}};var Xt={mousedown:_e,mousemove:2,mouseup:Ce},Ji="mousedown",En="mousemove mouseup";function un(){this.evEl=Ji,this.evWin=En,this.pressed=!1,mt.apply(this,arguments)}p(un,mt,{handler:function(Go){var pr=Xt[Go.type];pr&_e&&0===Go.button&&(this.pressed=!0),2&pr&&1!==Go.which&&(pr=Ce),this.pressed&&(pr&Ce&&(this.pressed=!1),this.callback(this.manager,pr,{pointers:[Go],changedPointers:[Go],pointerType:q,srcEvent:Go}))}});var Ki={pointerdown:_e,pointermove:2,pointerup:Ce,pointercancel:Te,pointerout:Te},Fn={2:H,3:"pen",4:q,5:"kinect"},oi="pointerdown",It="pointermove pointerup pointercancel";function Bt(){this.evEl=oi,this.evWin=It,mt.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}n.MSPointerEvent&&!n.PointerEvent&&(oi="MSPointerDown",It="MSPointerMove MSPointerUp MSPointerCancel"),p(Bt,mt,{handler:function(Go){var pr=this.store,Rr=!1,br=Go.type.toLowerCase().replace("ms",""),Ti=Ki[br],mr=Fn[Go.pointerType]||Go.pointerType,ri=mr==H,mo=U(pr,Go.pointerId,"pointerId");Ti&_e&&(0===Go.button||ri)?mo<0&&(pr.push(Go),mo=pr.length-1):Ti&(Ce|Te)&&(Rr=!0),!(mo<0)&&(pr[mo]=Go,this.callback(this.manager,Ti,{pointers:pr,changedPointers:[Go],pointerType:mr,srcEvent:Go}),Rr&&pr.splice(mo,1))}});var xt={touchstart:_e,touchmove:2,touchend:Ce,touchcancel:Te};function pt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,mt.apply(this,arguments)}function Lt(ao,Go){var pr=V(ao.touches),Rr=V(ao.changedTouches);return Go&(Ce|Te)&&(pr=K(pr.concat(Rr),"identifier",!0)),[pr,Rr]}p(pt,mt,{handler:function(Go){var pr=xt[Go.type];if(pr===_e&&(this.started=!0),this.started){var Rr=Lt.call(this,Go,pr);pr&(Ce|Te)&&Rr[0].length-Rr[1].length==0&&(this.started=!1),this.callback(this.manager,pr,{pointers:Rr[0],changedPointers:Rr[1],pointerType:H,srcEvent:Go})}}});var tt={touchstart:_e,touchmove:2,touchend:Ce,touchcancel:Te},Ne="touchstart touchmove touchend touchcancel";function vt(){this.evTarget=Ne,this.targetIds={},mt.apply(this,arguments)}function ln(ao,Go){var pr=V(ao.touches),Rr=this.targetIds;if(Go&(2|_e)&&1===pr.length)return Rr[pr[0].identifier]=!0,[pr,pr];var br,Ti,mr=V(ao.changedTouches),ri=[],mo=this.target;if(Ti=pr.filter(function(Ii){return F(Ii.target,mo)}),Go===_e)for(br=0;br<Ti.length;)Rr[Ti[br].identifier]=!0,br++;for(br=0;br<mr.length;)Rr[mr[br].identifier]&&ri.push(mr[br]),Go&(Ce|Te)&&delete Rr[mr[br].identifier],br++;return ri.length?[K(Ti.concat(ri),"identifier",!0),ri]:void 0}p(vt,mt,{handler:function(Go){var pr=tt[Go.type],Rr=ln.call(this,Go,pr);Rr&&this.callback(this.manager,pr,{pointers:Rr[0],changedPointers:Rr[1],pointerType:H,srcEvent:Go})}});var jn=2500;function go(){mt.apply(this,arguments);var ao=E(this.handler,this);this.touch=new vt(this.manager,ao),this.mouse=new un(this.manager,ao),this.primaryTouch=null,this.lastTouches=[]}function si(ao,Go){ao&_e?(this.primaryTouch=Go.changedPointers[0].identifier,ot.call(this,Go)):ao&(Ce|Te)&&ot.call(this,Go)}function ot(ao){var Go=ao.changedPointers[0];if(Go.identifier===this.primaryTouch){var pr={x:Go.clientX,y:Go.clientY};this.lastTouches.push(pr);var Rr=this.lastTouches;setTimeout(function(){var Ti=Rr.indexOf(pr);Ti>-1&&Rr.splice(Ti,1)},jn)}}function pn(ao){for(var Go=ao.srcEvent.clientX,pr=ao.srcEvent.clientY,Rr=0;Rr<this.lastTouches.length;Rr++){var br=this.lastTouches[Rr],Ti=Math.abs(Go-br.x),mr=Math.abs(pr-br.y);if(Ti<=25&&mr<=25)return!0}return!1}p(go,mt,{handler:function(Go,pr,Rr){var Ti=Rr.pointerType==q;if(!(Ti&&Rr.sourceCapabilities&&Rr.sourceCapabilities.firesTouchEvents)){if(Rr.pointerType==H)si.call(this,pr,Rr);else if(Ti&&pn.call(this,Rr))return;this.callback(Go,pr,Rr)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var _i=X(d.style,"touchAction"),wi=_i!==l,hi="compute",Ei="manipulation",li="none",Xi="pan-x",ki="pan-y",bo=function Zi(){if(!wi)return!1;var ao={},Go=n.CSS&&n.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(pr){ao[pr]=!Go||n.CSS.supports("touch-action",pr)}),ao}();function jo(ao,Go){this.manager=ao,this.set(Go)}jo.prototype={set:function(ao){ao==hi&&(ao=this.compute()),wi&&this.manager.element.style&&bo[ao]&&(this.manager.element.style[_i]=ao),this.actions=ao.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var ao=[];return f(this.manager.recognizers,function(Go){b(Go.options.enable,[Go])&&(ao=ao.concat(Go.getTouchAction()))}),function wn(ao){if(P(ao,li))return li;var Go=P(ao,Xi),pr=P(ao,ki);return Go&&pr?li:Go||pr?Go?Xi:ki:P(ao,Ei)?Ei:"auto"}(ao.join(" "))},preventDefaults:function(ao){var Go=ao.srcEvent,pr=ao.offsetDirection;if(!this.manager.session.prevented){var Rr=this.actions,br=P(Rr,li)&&!bo[li],Ti=P(Rr,ki)&&!bo[ki],mr=P(Rr,Xi)&&!bo[Xi];if(br&&1===ao.pointers.length&&ao.distance<2&&ao.deltaTime<250)return;return mr&&Ti||!(br||Ti&&pr&Gt||mr&&pr&Ut)?void 0:this.preventSrc(Go)}Go.preventDefault()},preventSrc:function(ao){this.manager.session.prevented=!0,ao.preventDefault()}};var oo=1;function as(ao){this.options=w({},this.defaults,ao||{}),this.id=function J(){return me++}(),this.manager=null,this.options.enable=I(this.options.enable,!0),this.state=oo,this.simultaneous={},this.requireFail=[]}function ji(ao){return 16&ao?"cancel":8&ao?"end":4&ao?"move":2&ao?"start":""}function Fo(ao){return ao==Le?"down":ao==Oe?"up":ao==fe?"left":ao==xe?"right":""}function rt(ao,Go){var pr=Go.manager;return pr?pr.get(ao):ao}function ai(){as.apply(this,arguments)}function Gn(){ai.apply(this,arguments),this.pX=null,this.pY=null}function Io(){ai.apply(this,arguments)}function wr(){as.apply(this,arguments),this._timer=null,this._input=null}function bs(){ai.apply(this,arguments)}function ba(){ai.apply(this,arguments)}function ms(){as.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Oa(ao,Go){return(Go=Go||{}).recognizers=I(Go.recognizers,Oa.defaults.preset),new tr(ao,Go)}function tr(ao,Go){this.options=w({},Oa.defaults,Go||{}),this.options.inputTarget=this.options.inputTarget||ao,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=ao,this.input=function ut(ao){return new(ao.options.inputClass||(te?Bt:j?vt:de?go:un))(ao,Wt)}(this),this.touchAction=new jo(this,this.options.touchAction),Mr(this,!0),f(this.options.recognizers,function(pr){var Rr=this.add(new pr[0](pr[1]));pr[2]&&Rr.recognizeWith(pr[2]),pr[3]&&Rr.requireFailure(pr[3])},this)}function Mr(ao,Go){var Rr,pr=ao.element;pr.style&&(f(ao.options.cssProps,function(br,Ti){Rr=X(pr.style,Ti),Go?(ao.oldCssProps[Rr]=pr.style[Rr],pr.style[Rr]=br):pr.style[Rr]=ao.oldCssProps[Rr]||""}),Go||(ao.oldCssProps={}))}as.prototype={defaults:{},set:function(ao){return w(this.options,ao),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(ao){if(x(ao,"recognizeWith",this))return this;var Go=this.simultaneous;return Go[(ao=rt(ao,this)).id]||(Go[ao.id]=ao,ao.recognizeWith(this)),this},dropRecognizeWith:function(ao){return x(ao,"dropRecognizeWith",this)||(ao=rt(ao,this),delete this.simultaneous[ao.id]),this},requireFailure:function(ao){if(x(ao,"requireFailure",this))return this;var Go=this.requireFail;return-1===U(Go,ao=rt(ao,this))&&(Go.push(ao),ao.requireFailure(this)),this},dropRequireFailure:function(ao){if(x(ao,"dropRequireFailure",this))return this;ao=rt(ao,this);var Go=U(this.requireFail,ao);return Go>-1&&this.requireFail.splice(Go,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(ao){return!!this.simultaneous[ao.id]},emit:function(ao){var Go=this,pr=this.state;function Rr(br){Go.manager.emit(br,ao)}pr<8&&Rr(Go.options.event+ji(pr)),Rr(Go.options.event),ao.additionalEvent&&Rr(ao.additionalEvent),pr>=8&&Rr(Go.options.event+ji(pr))},tryEmit:function(ao){if(this.canEmit())return this.emit(ao);this.state=32},canEmit:function(){for(var ao=0;ao<this.requireFail.length;){if(!(this.requireFail[ao].state&(32|oo)))return!1;ao++}return!0},recognize:function(ao){var Go=w({},ao);if(!b(this.options.enable,[this,Go]))return this.reset(),void(this.state=32);56&this.state&&(this.state=oo),this.state=this.process(Go),30&this.state&&this.tryEmit(Go)},process:function(ao){},getTouchAction:function(){},reset:function(){}},p(ai,as,{defaults:{pointers:1},attrTest:function(ao){var Go=this.options.pointers;return 0===Go||ao.pointers.length===Go},process:function(ao){var Go=this.state,pr=ao.eventType,Rr=6&Go,br=this.attrTest(ao);return Rr&&(pr&Te||!br)?16|Go:Rr||br?pr&Ce?8|Go:2&Go?4|Go:2:32}}),p(Gn,ai,{defaults:{event:"pan",threshold:10,pointers:1,direction:An},getTouchAction:function(){var ao=this.options.direction,Go=[];return ao&Gt&&Go.push(ki),ao&Ut&&Go.push(Xi),Go},directionTest:function(ao){var Go=this.options,pr=!0,Rr=ao.distance,br=ao.direction,Ti=ao.deltaX,mr=ao.deltaY;return br&Go.direction||(Go.direction&Gt?(br=0===Ti?De:Ti<0?fe:xe,pr=Ti!=this.pX,Rr=Math.abs(ao.deltaX)):(br=0===mr?De:mr<0?Oe:Le,pr=mr!=this.pY,Rr=Math.abs(ao.deltaY))),ao.direction=br,pr&&Rr>Go.threshold&&br&Go.direction},attrTest:function(ao){return ai.prototype.attrTest.call(this,ao)&&(2&this.state||!(2&this.state)&&this.directionTest(ao))},emit:function(ao){this.pX=ao.deltaX,this.pY=ao.deltaY;var Go=Fo(ao.direction);Go&&(ao.additionalEvent=this.options.event+Go),this._super.emit.call(this,ao)}}),p(Io,ai,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[li]},attrTest:function(ao){return this._super.attrTest.call(this,ao)&&(Math.abs(ao.scale-1)>this.options.threshold||2&this.state)},emit:function(ao){1!==ao.scale&&(ao.additionalEvent=this.options.event+(ao.scale<1?"in":"out")),this._super.emit.call(this,ao)}}),p(wr,as,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(ao){var Go=this.options,pr=ao.pointers.length===Go.pointers,Rr=ao.distance<Go.threshold,br=ao.deltaTime>Go.time;if(this._input=ao,!Rr||!pr||ao.eventType&(Ce|Te)&&!br)this.reset();else if(ao.eventType&_e)this.reset(),this._timer=R(function(){this.state=8,this.tryEmit()},Go.time,this);else if(ao.eventType&Ce)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(ao){8===this.state&&(ao&&ao.eventType&Ce?this.manager.emit(this.options.event+"up",ao):(this._input.timeStamp=C(),this.manager.emit(this.options.event,this._input)))}}),p(bs,ai,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[li]},attrTest:function(ao){return this._super.attrTest.call(this,ao)&&(Math.abs(ao.rotation)>this.options.threshold||2&this.state)}}),p(ba,ai,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Gt|Ut,pointers:1},getTouchAction:function(){return Gn.prototype.getTouchAction.call(this)},attrTest:function(ao){var pr,Go=this.options.direction;return Go&(Gt|Ut)?pr=ao.overallVelocity:Go&Gt?pr=ao.overallVelocityX:Go&Ut&&(pr=ao.overallVelocityY),this._super.attrTest.call(this,ao)&&Go&ao.offsetDirection&&ao.distance>this.options.threshold&&ao.maxPointers==this.options.pointers&&_(pr)>this.options.velocity&&ao.eventType&Ce},emit:function(ao){var Go=Fo(ao.offsetDirection);Go&&this.manager.emit(this.options.event+Go,ao),this.manager.emit(this.options.event,ao)}}),p(ms,as,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ei]},process:function(ao){var Go=this.options,pr=ao.pointers.length===Go.pointers,Rr=ao.distance<Go.threshold,br=ao.deltaTime<Go.time;if(this.reset(),ao.eventType&_e&&0===this.count)return this.failTimeout();if(Rr&&br&&pr){if(ao.eventType!=Ce)return this.failTimeout();var Ti=!this.pTime||ao.timeStamp-this.pTime<Go.interval,mr=!this.pCenter||Eo(this.pCenter,ao.center)<Go.posThreshold;if(this.pTime=ao.timeStamp,this.pCenter=ao.center,mr&&Ti?this.count+=1:this.count=1,this._input=ao,0==this.count%Go.taps)return this.hasRequireFailures()?(this._timer=R(function(){this.state=8,this.tryEmit()},Go.interval,this),2):8}return 32},failTimeout:function(){return this._timer=R(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Oa.VERSION="2.0.7",Oa.defaults={domEvents:!1,touchAction:hi,enable:!0,inputTarget:null,inputClass:null,preset:[[bs,{enable:!1}],[Io,{enable:!1},["rotate"]],[ba,{direction:Gt}],[Gn,{direction:Gt},["swipe"]],[ms],[ms,{event:"doubletap",taps:2},["tap"]],[wr]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},tr.prototype={set:function(ao){return w(this.options,ao),ao.touchAction&&this.touchAction.update(),ao.inputTarget&&(this.input.destroy(),this.input.target=ao.inputTarget,this.input.init()),this},stop:function(ao){this.session.stopped=ao?2:1},recognize:function(ao){var Go=this.session;if(!Go.stopped){this.touchAction.preventDefaults(ao);var pr,Rr=this.recognizers,br=Go.curRecognizer;(!br||br&&8&br.state)&&(br=Go.curRecognizer=null);for(var Ti=0;Ti<Rr.length;)pr=Rr[Ti],2===Go.stopped||br&&pr!=br&&!pr.canRecognizeWith(br)?pr.reset():pr.recognize(ao),!br&&14&pr.state&&(br=Go.curRecognizer=pr),Ti++}},get:function(ao){if(ao instanceof as)return ao;for(var Go=this.recognizers,pr=0;pr<Go.length;pr++)if(Go[pr].options.event==ao)return Go[pr];return null},add:function(ao){if(x(ao,"add",this))return this;var Go=this.get(ao.options.event);return Go&&this.remove(Go),this.recognizers.push(ao),ao.manager=this,this.touchAction.update(),ao},remove:function(ao){if(x(ao,"remove",this))return this;if(ao=this.get(ao)){var Go=this.recognizers,pr=U(Go,ao);-1!==pr&&(Go.splice(pr,1),this.touchAction.update())}return this},on:function(ao,Go){if(ao!==l&&Go!==l){var pr=this.handlers;return f(O(ao),function(Rr){pr[Rr]=pr[Rr]||[],pr[Rr].push(Go)}),this}},off:function(ao,Go){if(ao!==l){var pr=this.handlers;return f(O(ao),function(Rr){Go?pr[Rr]&&pr[Rr].splice(U(pr[Rr],Go),1):delete pr[Rr]}),this}},emit:function(ao,Go){this.options.domEvents&&function Li(ao,Go){var pr=o.createEvent("Event");pr.initEvent(ao,!0,!0),pr.gesture=Go,Go.target.dispatchEvent(pr)}(ao,Go);var pr=this.handlers[ao]&&this.handlers[ao].slice();if(pr&&pr.length){Go.type=ao,Go.preventDefault=function(){Go.srcEvent.preventDefault()};for(var Rr=0;Rr<pr.length;)pr[Rr](Go),Rr++}},destroy:function(){this.element&&Mr(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},w(Oa,{INPUT_START:_e,INPUT_MOVE:2,INPUT_END:Ce,INPUT_CANCEL:Te,STATE_POSSIBLE:oo,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:De,DIRECTION_LEFT:fe,DIRECTION_RIGHT:xe,DIRECTION_UP:Oe,DIRECTION_DOWN:Le,DIRECTION_HORIZONTAL:Gt,DIRECTION_VERTICAL:Ut,DIRECTION_ALL:An,Manager:tr,Input:mt,TouchAction:jo,TouchInput:vt,MouseInput:un,PointerEventInput:Bt,TouchMouseInput:go,SingleTouchInput:pt,Recognizer:as,AttrRecognizer:ai,Tap:ms,Pan:Gn,Swipe:ba,Pinch:Io,Rotate:bs,Press:wr,on:L,off:D,each:f,merge:M,extend:g,assign:w,inherit:p,bindFn:E,prefixed:X}),(typeof n<"u"?n:typeof self<"u"?self:{}).Hammer=Oa,(e=function(){return Oa}.call(y,i,y,he))!==l&&(he.exports=e)}(window,document)},91881:(he,y,i)=>{"use strict";var e=i(18698),n=i(56690),o=i(89728),a=i(66115),l=i(61655),u=i(94993),d=i(44968),s=i(38416),A=i(51589);function _(tt){return tt&&"object"==typeof tt&&"default"in tt?tt:{default:tt}}var C=_(e),R=_(n),x=_(o),f=_(a),k=_(l),w=_(u),g=_(d),M=_(s),p=_(A);function E(tt,Ne){var vt=Object.keys(tt);if(Object.getOwnPropertySymbols){var ln=Object.getOwnPropertySymbols(tt);Ne&&(ln=ln.filter(function(jn){return Object.getOwnPropertyDescriptor(tt,jn).enumerable})),vt.push.apply(vt,ln)}return vt}function b(tt){for(var Ne=1;Ne<arguments.length;Ne++){var vt=null!=arguments[Ne]?arguments[Ne]:{};Ne%2?E(Object(vt),!0).forEach(function(ln){M.default(tt,ln,vt[ln])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(vt)):E(Object(vt)).forEach(function(ln){Object.defineProperty(tt,ln,Object.getOwnPropertyDescriptor(vt,ln))})}return tt}var I={type:"logger",log:function(Ne){this.output("log",Ne)},warn:function(Ne){this.output("warn",Ne)},error:function(Ne){this.output("error",Ne)},output:function(Ne,vt){console&&console[Ne]&&console[Ne].apply(console,vt)}},D=new(function(){function tt(Ne){var vt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};R.default(this,tt),this.init(Ne,vt)}return x.default(tt,[{key:"init",value:function(vt){var ln=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=ln.prefix||"i18next:",this.logger=vt||I,this.options=ln,this.debug=ln.debug}},{key:"setDebug",value:function(vt){this.debug=vt}},{key:"log",value:function(){for(var vt=arguments.length,ln=new Array(vt),jn=0;jn<vt;jn++)ln[jn]=arguments[jn];return this.forward(ln,"log","",!0)}},{key:"warn",value:function(){for(var vt=arguments.length,ln=new Array(vt),jn=0;jn<vt;jn++)ln[jn]=arguments[jn];return this.forward(ln,"warn","",!0)}},{key:"error",value:function(){for(var vt=arguments.length,ln=new Array(vt),jn=0;jn<vt;jn++)ln[jn]=arguments[jn];return this.forward(ln,"error","")}},{key:"deprecate",value:function(){for(var vt=arguments.length,ln=new Array(vt),jn=0;jn<vt;jn++)ln[jn]=arguments[jn];return this.forward(ln,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(vt,ln,jn,Pi){return Pi&&!this.debug?null:("string"==typeof vt[0]&&(vt[0]="".concat(jn).concat(this.prefix," ").concat(vt[0])),this.logger[ln](vt))}},{key:"create",value:function(vt){return new tt(this.logger,b(b({},{prefix:"".concat(this.prefix,":").concat(vt,":")}),this.options))}},{key:"clone",value:function(vt){return(vt=vt||this.options).prefix=vt.prefix||this.prefix,new tt(this.logger,vt)}}]),tt}()),F=function(){function tt(){R.default(this,tt),this.observers={}}return x.default(tt,[{key:"on",value:function(vt,ln){var jn=this;return vt.split(" ").forEach(function(Pi){jn.observers[Pi]=jn.observers[Pi]||[],jn.observers[Pi].push(ln)}),this}},{key:"off",value:function(vt,ln){if(this.observers[vt]){if(!ln)return void delete this.observers[vt];this.observers[vt]=this.observers[vt].filter(function(jn){return jn!==ln})}}},{key:"emit",value:function(vt){for(var ln=arguments.length,jn=new Array(ln>1?ln-1:0),Pi=1;Pi<ln;Pi++)jn[Pi-1]=arguments[Pi];this.observers[vt]&&[].concat(this.observers[vt]).forEach(function(ot){ot.apply(void 0,jn)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(ot){ot.apply(ot,[vt].concat(jn))})}}]),tt}();function P(){var tt,Ne,vt=new Promise(function(ln,jn){tt=ln,Ne=jn});return vt.resolve=tt,vt.reject=Ne,vt}function O(tt){return null==tt?"":""+tt}function V(tt,Ne,vt){function ln(si){return si&&si.indexOf("###")>-1?si.replace(/###/g,"."):si}function jn(){return!tt||"string"==typeof tt}for(var Pi="string"!=typeof Ne?[].concat(Ne):Ne.split(".");Pi.length>1;){if(jn())return{};var go=ln(Pi.shift());!tt[go]&&vt&&(tt[go]=new vt),tt=Object.prototype.hasOwnProperty.call(tt,go)?tt[go]:{}}return jn()?{}:{obj:tt,k:ln(Pi.shift())}}function K(tt,Ne,vt){var ln=V(tt,Ne,Object);ln.obj[ln.k]=vt}function me(tt,Ne){var vt=V(tt,Ne),ln=vt.obj;if(ln)return ln[vt.k]}function J(tt,Ne,vt){var ln=me(tt,vt);return void 0!==ln?ln:me(Ne,vt)}function Q(tt,Ne,vt){for(var ln in Ne)"__proto__"!==ln&&"constructor"!==ln&&(ln in tt?"string"==typeof tt[ln]||tt[ln]instanceof String||"string"==typeof Ne[ln]||Ne[ln]instanceof String?vt&&(tt[ln]=Ne[ln]):Q(tt[ln],Ne[ln],vt):tt[ln]=Ne[ln]);return tt}function re(tt){return tt.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var de={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function te(tt){return"string"==typeof tt?tt.replace(/[&<>"'\/]/g,function(Ne){return de[Ne]}):tt}var j=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,H=[" ",",","?","!",";"];function q(tt,Ne){var vt=Object.keys(tt);if(Object.getOwnPropertySymbols){var ln=Object.getOwnPropertySymbols(tt);Ne&&(ln=ln.filter(function(jn){return Object.getOwnPropertyDescriptor(tt,jn).enumerable})),vt.push.apply(vt,ln)}return vt}function se(tt){for(var Ne=1;Ne<arguments.length;Ne++){var vt=null!=arguments[Ne]?arguments[Ne]:{};Ne%2?q(Object(vt),!0).forEach(function(ln){M.default(tt,ln,vt[ln])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(vt)):q(Object(vt)).forEach(function(ln){Object.defineProperty(tt,ln,Object.getOwnPropertyDescriptor(vt,ln))})}return tt}function ge(tt,Ne){var vt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(tt){if(tt[Ne])return tt[Ne];for(var ln=Ne.split(vt),jn=tt,Pi=0;Pi<ln.length;++Pi){if(!jn||"string"==typeof jn[ln[Pi]]&&Pi+1<ln.length)return;if(void 0===jn[ln[Pi]]){for(var go=2,si=ln.slice(Pi,Pi+go).join(vt),ot=jn[si];void 0===ot&&ln.length>Pi+go;)go++,ot=jn[si=ln.slice(Pi,Pi+go).join(vt)];if(void 0===ot)return;if(null===ot)return null;if(Ne.endsWith(si)){if("string"==typeof ot)return ot;if(si&&"string"==typeof ot[si])return ot[si]}var pn=ln.slice(Pi+go).join(vt);return pn?ge(ot,pn,vt):void 0}jn=jn[ln[Pi]]}return jn}}var Ce=function(tt){k.default(vt,tt);var Ne=function ne(tt){var Ne=function _e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var jn,ln=g.default(tt);if(Ne){var Pi=g.default(this).constructor;jn=Reflect.construct(ln,arguments,Pi)}else jn=ln.apply(this,arguments);return w.default(this,jn)}}(vt);function vt(ln){var jn,Pi=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return R.default(this,vt),jn=Ne.call(this),j&&F.call(f.default(jn)),jn.data=ln||{},jn.options=Pi,void 0===jn.options.keySeparator&&(jn.options.keySeparator="."),void 0===jn.options.ignoreJSONStructure&&(jn.options.ignoreJSONStructure=!0),jn}return x.default(vt,[{key:"addNamespaces",value:function(jn){this.options.ns.indexOf(jn)<0&&this.options.ns.push(jn)}},{key:"removeNamespaces",value:function(jn){var Pi=this.options.ns.indexOf(jn);Pi>-1&&this.options.ns.splice(Pi,1)}},{key:"getResource",value:function(jn,Pi,go){var si=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},ot=void 0!==si.keySeparator?si.keySeparator:this.options.keySeparator,pn=void 0!==si.ignoreJSONStructure?si.ignoreJSONStructure:this.options.ignoreJSONStructure,_i=[jn,Pi];go&&"string"!=typeof go&&(_i=_i.concat(go)),go&&"string"==typeof go&&(_i=_i.concat(ot?go.split(ot):go)),jn.indexOf(".")>-1&&(_i=jn.split("."));var wi=me(this.data,_i);return wi||!pn||"string"!=typeof go?wi:ge(this.data&&this.data[jn]&&this.data[jn][Pi],go,ot)}},{key:"addResource",value:function(jn,Pi,go,si){var ot=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},pn=this.options.keySeparator;void 0===pn&&(pn=".");var _i=[jn,Pi];go&&(_i=_i.concat(pn?go.split(pn):go)),jn.indexOf(".")>-1&&(si=Pi,Pi=(_i=jn.split("."))[1]),this.addNamespaces(Pi),K(this.data,_i,si),ot.silent||this.emit("added",jn,Pi,go,si)}},{key:"addResources",value:function(jn,Pi,go){var si=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var ot in go)("string"==typeof go[ot]||"[object Array]"===Object.prototype.toString.apply(go[ot]))&&this.addResource(jn,Pi,ot,go[ot],{silent:!0});si.silent||this.emit("added",jn,Pi,go)}},{key:"addResourceBundle",value:function(jn,Pi,go,si,ot){var pn=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},_i=[jn,Pi];jn.indexOf(".")>-1&&(si=go,go=Pi,Pi=(_i=jn.split("."))[1]),this.addNamespaces(Pi);var wi=me(this.data,_i)||{};si?Q(wi,go,ot):wi=se(se({},wi),go),K(this.data,_i,wi),pn.silent||this.emit("added",jn,Pi,go)}},{key:"removeResourceBundle",value:function(jn,Pi){this.hasResourceBundle(jn,Pi)&&delete this.data[jn][Pi],this.removeNamespaces(Pi),this.emit("removed",jn,Pi)}},{key:"hasResourceBundle",value:function(jn,Pi){return void 0!==this.getResource(jn,Pi)}},{key:"getResourceBundle",value:function(jn,Pi){return Pi||(Pi=this.options.defaultNS),"v1"===this.options.compatibilityAPI?se(se({},{}),this.getResource(jn,Pi)):this.getResource(jn,Pi)}},{key:"getDataByLanguage",value:function(jn){return this.data[jn]}},{key:"hasLanguageSomeTranslations",value:function(jn){var Pi=this.getDataByLanguage(jn);return!!(Pi&&Object.keys(Pi)||[]).find(function(si){return Pi[si]&&Object.keys(Pi[si]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),vt}(F),Te={processors:{},addPostProcessor:function(Ne){this.processors[Ne.name]=Ne},handle:function(Ne,vt,ln,jn,Pi){var go=this;return Ne.forEach(function(si){go.processors[si]&&(vt=go.processors[si].process(vt,ln,jn,Pi))}),vt}};function De(tt,Ne){var vt=Object.keys(tt);if(Object.getOwnPropertySymbols){var ln=Object.getOwnPropertySymbols(tt);Ne&&(ln=ln.filter(function(jn){return Object.getOwnPropertyDescriptor(tt,jn).enumerable})),vt.push.apply(vt,ln)}return vt}function fe(tt){for(var Ne=1;Ne<arguments.length;Ne++){var vt=null!=arguments[Ne]?arguments[Ne]:{};Ne%2?De(Object(vt),!0).forEach(function(ln){M.default(tt,ln,vt[ln])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(vt)):De(Object(vt)).forEach(function(ln){Object.defineProperty(tt,ln,Object.getOwnPropertyDescriptor(vt,ln))})}return tt}var Le={},Gt=function(tt){k.default(vt,tt);var Ne=function xe(tt){var Ne=function Oe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var jn,ln=g.default(tt);if(Ne){var Pi=g.default(this).constructor;jn=Reflect.construct(ln,arguments,Pi)}else jn=ln.apply(this,arguments);return w.default(this,jn)}}(vt);function vt(ln){var jn,Pi=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return R.default(this,vt),jn=Ne.call(this),j&&F.call(f.default(jn)),function U(tt,Ne,vt){tt.forEach(function(ln){Ne[ln]&&(vt[ln]=Ne[ln])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],ln,f.default(jn)),jn.options=Pi,void 0===jn.options.keySeparator&&(jn.options.keySeparator="."),jn.logger=D.create("translator"),jn}return x.default(vt,[{key:"changeLanguage",value:function(jn){jn&&(this.language=jn)}},{key:"exists",value:function(jn){if(null==jn)return!1;var go=this.resolve(jn,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}});return go&&void 0!==go.res}},{key:"extractFromKey",value:function(jn,Pi){var go=void 0!==Pi.nsSeparator?Pi.nsSeparator:this.options.nsSeparator;void 0===go&&(go=":");var si=void 0!==Pi.keySeparator?Pi.keySeparator:this.options.keySeparator,ot=Pi.ns||this.options.defaultNS||[],pn=go&&jn.indexOf(go)>-1,_i=!(this.options.userDefinedKeySeparator||Pi.keySeparator||this.options.userDefinedNsSeparator||Pi.nsSeparator||function z(tt,Ne,vt){Ne=Ne||"",vt=vt||"";var ln=H.filter(function(si){return Ne.indexOf(si)<0&&vt.indexOf(si)<0});if(0===ln.length)return!0;var jn=new RegExp("(".concat(ln.map(function(si){return"?"===si?"\\?":si}).join("|"),")")),Pi=!jn.test(tt);if(!Pi){var go=tt.indexOf(vt);go>0&&!jn.test(tt.substring(0,go))&&(Pi=!0)}return Pi}(jn,go,si));if(pn&&!_i){var wi=jn.match(this.interpolator.nestingRegexp);if(wi&&wi.length>0)return{key:jn,namespaces:ot};var hi=jn.split(go);(go!==si||go===si&&this.options.ns.indexOf(hi[0])>-1)&&(ot=hi.shift()),jn=hi.join(si)}return"string"==typeof ot&&(ot=[ot]),{key:jn,namespaces:ot}}},{key:"translate",value:function(jn,Pi,go){var si=this;if("object"!==C.default(Pi)&&this.options.overloadTranslationOptionHandler&&(Pi=this.options.overloadTranslationOptionHandler(arguments)),Pi||(Pi={}),null==jn)return"";Array.isArray(jn)||(jn=[String(jn)]);var ot=void 0!==Pi.returnDetails?Pi.returnDetails:this.options.returnDetails,pn=void 0!==Pi.keySeparator?Pi.keySeparator:this.options.keySeparator,_i=this.extractFromKey(jn[jn.length-1],Pi),wi=_i.key,hi=_i.namespaces,zn=hi[hi.length-1],Ei=Pi.lng||this.language,li=Pi.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(Ei&&"cimode"===Ei.toLowerCase()){if(li){var Xi=Pi.nsSeparator||this.options.nsSeparator;return ot?{res:"".concat(zn).concat(Xi).concat(wi),usedKey:wi,exactUsedKey:wi,usedLng:Ei,usedNS:zn}:"".concat(zn).concat(Xi).concat(wi)}return ot?{res:wi,usedKey:wi,exactUsedKey:wi,usedLng:Ei,usedNS:zn}:wi}var ki=this.resolve(jn,Pi),bo=ki&&ki.res,jo=ki&&ki.usedKey||wi,wn=ki&&ki.exactUsedKey||wi,Zi=Object.prototype.toString.apply(bo),Bi=void 0!==Pi.joinArrays?Pi.joinArrays:this.options.joinArrays,Xo=!this.i18nFormat||this.i18nFormat.handleAsObject;if(Xo&&bo&&"string"!=typeof bo&&"boolean"!=typeof bo&&"number"!=typeof bo&&["[object Number]","[object Function]","[object RegExp]"].indexOf(Zi)<0&&("string"!=typeof Bi||"[object Array]"!==Zi)){if(!Pi.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var or=this.options.returnedObjectHandler?this.options.returnedObjectHandler(jo,bo,fe(fe({},Pi),{},{ns:hi})):"key '".concat(wi," (").concat(this.language,")' returned an object instead of string.");return ot?(ki.res=or,ki):or}if(pn){var xr="[object Array]"===Zi,Nr=xr?[]:{},as=xr?wn:jo;for(var ji in bo)if(Object.prototype.hasOwnProperty.call(bo,ji)){var Fo="".concat(as).concat(pn).concat(ji);Nr[ji]=this.translate(Fo,fe(fe({},Pi),{joinArrays:!1,ns:hi})),Nr[ji]===Fo&&(Nr[ji]=bo[ji])}bo=Nr}}else if(Xo&&"string"==typeof Bi&&"[object Array]"===Zi)(bo=bo.join(Bi))&&(bo=this.extendTranslation(bo,jn,Pi,go));else{var rt=!1,ai=!1,Gn=void 0!==Pi.count&&"string"!=typeof Pi.count,Io=vt.hasDefaultValue(Pi),wr=Gn?this.pluralResolver.getSuffix(Ei,Pi.count,Pi):"",bs=Pi["defaultValue".concat(wr)]||Pi.defaultValue;!this.isValidLookup(bo)&&Io&&(rt=!0,bo=bs),this.isValidLookup(bo)||(ai=!0,bo=wi);var ms=(Pi.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ai?void 0:bo,Oa=Io&&bs!==bo&&this.options.updateMissing;if(ai||rt||Oa){if(this.logger.log(Oa?"updateKey":"missingKey",Ei,zn,wi,Oa?bs:bo),pn){var Ea=this.resolve(wi,fe(fe({},Pi),{},{keySeparator:!1}));Ea&&Ea.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Sa=[],tr=this.languageUtils.getFallbackCodes(this.options.fallbackLng,Pi.lng||this.language);if("fallback"===this.options.saveMissingTo&&tr&&tr[0])for(var Mr=0;Mr<tr.length;Mr++)Sa.push(tr[Mr]);else"all"===this.options.saveMissingTo?Sa=this.languageUtils.toResolveHierarchy(Pi.lng||this.language):Sa.push(Pi.lng||this.language);var Li=function(ao,Go,pr){var Rr=Io&&pr!==bo?pr:ms;si.options.missingKeyHandler?si.options.missingKeyHandler(ao,zn,Go,Rr,Oa,Pi):si.backendConnector&&si.backendConnector.saveMissing&&si.backendConnector.saveMissing(ao,zn,Go,Rr,Oa,Pi),si.emit("missingKey",ao,zn,Go,bo)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Gn?Sa.forEach(function(Ao){si.pluralResolver.getSuffixes(Ao,Pi).forEach(function(ao){Li([Ao],wi+ao,Pi["defaultValue".concat(ao)]||bs)})}):Li(Sa,wi,bs))}bo=this.extendTranslation(bo,jn,Pi,ki,go),ai&&bo===wi&&this.options.appendNamespaceToMissingKey&&(bo="".concat(zn,":").concat(wi)),(ai||rt)&&this.options.parseMissingKeyHandler&&(bo="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(zn,":").concat(wi):wi,rt?bo:void 0):this.options.parseMissingKeyHandler(bo))}return ot?(ki.res=bo,ki):bo}},{key:"extendTranslation",value:function(jn,Pi,go,si,ot){var pn=this;if(this.i18nFormat&&this.i18nFormat.parse)jn=this.i18nFormat.parse(jn,fe(fe({},this.options.interpolation.defaultVariables),go),si.usedLng,si.usedNS,si.usedKey,{resolved:si});else if(!go.skipInterpolation){go.interpolation&&this.interpolator.init(fe(fe({},go),{interpolation:fe(fe({},this.options.interpolation),go.interpolation)}));var wi,_i="string"==typeof jn&&(go&&go.interpolation&&void 0!==go.interpolation.skipOnVariables?go.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(_i){var hi=jn.match(this.interpolator.nestingRegexp);wi=hi&&hi.length}var zn=go.replace&&"string"!=typeof go.replace?go.replace:go;if(this.options.interpolation.defaultVariables&&(zn=fe(fe({},this.options.interpolation.defaultVariables),zn)),jn=this.interpolator.interpolate(jn,zn,go.lng||this.language,go),_i){var Ei=jn.match(this.interpolator.nestingRegexp);wi<(Ei&&Ei.length)&&(go.nest=!1)}!1!==go.nest&&(jn=this.interpolator.nest(jn,function(){for(var bo=arguments.length,jo=new Array(bo),wn=0;wn<bo;wn++)jo[wn]=arguments[wn];return ot&&ot[0]===jo[0]&&!go.context?(pn.logger.warn("It seems you are nesting recursively key: ".concat(jo[0]," in key: ").concat(Pi[0])),null):pn.translate.apply(pn,jo.concat([Pi]))},go)),go.interpolation&&this.interpolator.reset()}var Xi=go.postProcess||this.options.postProcess,ki="string"==typeof Xi?[Xi]:Xi;return null!=jn&&ki&&ki.length&&!1!==go.applyPostProcessor&&(jn=Te.handle(ki,jn,Pi,this.options&&this.options.postProcessPassResolved?fe({i18nResolved:si},go):go,this)),jn}},{key:"resolve",value:function(jn){var si,ot,pn,_i,wi,Pi=this,go=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof jn&&(jn=[jn]),jn.forEach(function(hi){if(!Pi.isValidLookup(si)){var zn=Pi.extractFromKey(hi,go),Ei=zn.key;ot=Ei;var li=zn.namespaces;Pi.options.fallbackNS&&(li=li.concat(Pi.options.fallbackNS));var Xi=void 0!==go.count&&"string"!=typeof go.count,ki=Xi&&!go.ordinal&&0===go.count&&Pi.pluralResolver.shouldUseIntlApi(),bo=void 0!==go.context&&("string"==typeof go.context||"number"==typeof go.context)&&""!==go.context,jo=go.lngs?go.lngs:Pi.languageUtils.toResolveHierarchy(go.lng||Pi.language,go.fallbackLng);li.forEach(function(wn){Pi.isValidLookup(si)||(wi=wn,!Le["".concat(jo[0],"-").concat(wn)]&&Pi.utils&&Pi.utils.hasLoadedNamespace&&!Pi.utils.hasLoadedNamespace(wi)&&(Le["".concat(jo[0],"-").concat(wn)]=!0,Pi.logger.warn('key "'.concat(ot,'" for languages "').concat(jo.join(", "),'" won\'t get resolved as namespace "').concat(wi,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),jo.forEach(function(Zi){if(!Pi.isValidLookup(si)){_i=Zi;var or,oo=[Ei];if(Pi.i18nFormat&&Pi.i18nFormat.addLookupKeys)Pi.i18nFormat.addLookupKeys(oo,Ei,Zi,wn,go);else{var Bi;Xi&&(Bi=Pi.pluralResolver.getSuffix(Zi,go.count,go));var Xo="".concat(Pi.options.pluralSeparator,"zero");if(Xi&&(oo.push(Ei+Bi),ki&&oo.push(Ei+Xo)),bo){var Lo="".concat(Ei).concat(Pi.options.contextSeparator).concat(go.context);oo.push(Lo),Xi&&(oo.push(Lo+Bi),ki&&oo.push(Lo+Xo))}}for(;or=oo.pop();)Pi.isValidLookup(si)||(pn=or,si=Pi.getResource(Zi,wn,or,go))}}))})}}),{res:si,usedKey:ot,exactUsedKey:pn,usedLng:_i,usedNS:wi}}},{key:"isValidLookup",value:function(jn){return!(void 0===jn||!this.options.returnNull&&null===jn||!this.options.returnEmptyString&&""===jn)}},{key:"getResource",value:function(jn,Pi,go){var si=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(jn,Pi,go,si):this.resourceStore.getResource(jn,Pi,go,si)}}],[{key:"hasDefaultValue",value:function(jn){for(var go in jn)if(Object.prototype.hasOwnProperty.call(jn,go)&&"defaultValue"===go.substring(0,12)&&void 0!==jn[go])return!0;return!1}}]),vt}(F);function Ut(tt){return tt.charAt(0).toUpperCase()+tt.slice(1)}var An=function(){function tt(Ne){R.default(this,tt),this.options=Ne,this.supportedLngs=this.options.supportedLngs||!1,this.logger=D.create("languageUtils")}return x.default(tt,[{key:"getScriptPartFromCode",value:function(vt){if(!vt||vt.indexOf("-")<0)return null;var ln=vt.split("-");return 2===ln.length||(ln.pop(),"x"===ln[ln.length-1].toLowerCase())?null:this.formatLanguageCode(ln.join("-"))}},{key:"getLanguagePartFromCode",value:function(vt){if(!vt||vt.indexOf("-")<0)return vt;var ln=vt.split("-");return this.formatLanguageCode(ln[0])}},{key:"formatLanguageCode",value:function(vt){if("string"==typeof vt&&vt.indexOf("-")>-1){var ln=["hans","hant","latn","cyrl","cans","mong","arab"],jn=vt.split("-");return this.options.lowerCaseLng?jn=jn.map(function(Pi){return Pi.toLowerCase()}):2===jn.length?(jn[0]=jn[0].toLowerCase(),jn[1]=jn[1].toUpperCase(),ln.indexOf(jn[1].toLowerCase())>-1&&(jn[1]=Ut(jn[1].toLowerCase()))):3===jn.length&&(jn[0]=jn[0].toLowerCase(),2===jn[1].length&&(jn[1]=jn[1].toUpperCase()),"sgn"!==jn[0]&&2===jn[2].length&&(jn[2]=jn[2].toUpperCase()),ln.indexOf(jn[1].toLowerCase())>-1&&(jn[1]=Ut(jn[1].toLowerCase())),ln.indexOf(jn[2].toLowerCase())>-1&&(jn[2]=Ut(jn[2].toLowerCase()))),jn.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?vt.toLowerCase():vt}},{key:"isSupportedCode",value:function(vt){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(vt=this.getLanguagePartFromCode(vt)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(vt)>-1}},{key:"getBestMatchFromCodes",value:function(vt){var jn,ln=this;return vt?(vt.forEach(function(Pi){if(!jn){var go=ln.formatLanguageCode(Pi);(!ln.options.supportedLngs||ln.isSupportedCode(go))&&(jn=go)}}),!jn&&this.options.supportedLngs&&vt.forEach(function(Pi){if(!jn){var go=ln.getLanguagePartFromCode(Pi);if(ln.isSupportedCode(go))return jn=go;jn=ln.options.supportedLngs.find(function(si){return si===go?si:si.indexOf("-")<0&&go.indexOf("-")<0||0!==si.indexOf(go)?void 0:si})}}),jn||(jn=this.getFallbackCodes(this.options.fallbackLng)[0]),jn):null}},{key:"getFallbackCodes",value:function(vt,ln){if(!vt)return[];if("function"==typeof vt&&(vt=vt(ln)),"string"==typeof vt&&(vt=[vt]),"[object Array]"===Object.prototype.toString.apply(vt))return vt;if(!ln)return vt.default||[];var jn=vt[ln];return jn||(jn=vt[this.getScriptPartFromCode(ln)]),jn||(jn=vt[this.formatLanguageCode(ln)]),jn||(jn=vt[this.getLanguagePartFromCode(ln)]),jn||(jn=vt.default),jn||[]}},{key:"toResolveHierarchy",value:function(vt,ln){var jn=this,Pi=this.getFallbackCodes(ln||this.options.fallbackLng||[],vt),go=[],si=function(pn){pn&&(jn.isSupportedCode(pn)?go.push(pn):jn.logger.warn("rejecting language code not found in supportedLngs: ".concat(pn)))};return"string"==typeof vt&&vt.indexOf("-")>-1?("languageOnly"!==this.options.load&&si(this.formatLanguageCode(vt)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&si(this.getScriptPartFromCode(vt)),"currentOnly"!==this.options.load&&si(this.getLanguagePartFromCode(vt))):"string"==typeof vt&&si(this.formatLanguageCode(vt)),Pi.forEach(function(ot){go.indexOf(ot)<0&&si(jn.formatLanguageCode(ot))}),go}}]),tt}(),$n=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],xn={1:function(Ne){return+(Ne>1)},2:function(Ne){return+(1!=Ne)},3:function(Ne){return 0},4:function(Ne){return Ne%10==1&&Ne%100!=11?0:Ne%10>=2&&Ne%10<=4&&(Ne%100<10||Ne%100>=20)?1:2},5:function(Ne){return 0==Ne?0:1==Ne?1:2==Ne?2:Ne%100>=3&&Ne%100<=10?3:Ne%100>=11?4:5},6:function(Ne){return 1==Ne?0:Ne>=2&&Ne<=4?1:2},7:function(Ne){return 1==Ne?0:Ne%10>=2&&Ne%10<=4&&(Ne%100<10||Ne%100>=20)?1:2},8:function(Ne){return 1==Ne?0:2==Ne?1:8!=Ne&&11!=Ne?2:3},9:function(Ne){return+(Ne>=2)},10:function(Ne){return 1==Ne?0:2==Ne?1:Ne<7?2:Ne<11?3:4},11:function(Ne){return 1==Ne||11==Ne?0:2==Ne||12==Ne?1:Ne>2&&Ne<20?2:3},12:function(Ne){return+(Ne%10!=1||Ne%100==11)},13:function(Ne){return+(0!==Ne)},14:function(Ne){return 1==Ne?0:2==Ne?1:3==Ne?2:3},15:function(Ne){return Ne%10==1&&Ne%100!=11?0:Ne%10>=2&&(Ne%100<10||Ne%100>=20)?1:2},16:function(Ne){return Ne%10==1&&Ne%100!=11?0:0!==Ne?1:2},17:function(Ne){return 1==Ne||Ne%10==1&&Ne%100!=11?0:1},18:function(Ne){return 0==Ne?0:1==Ne?1:2},19:function(Ne){return 1==Ne?0:0==Ne||Ne%100>1&&Ne%100<11?1:Ne%100>10&&Ne%100<20?2:3},20:function(Ne){return 1==Ne?0:0==Ne||Ne%100>0&&Ne%100<20?1:2},21:function(Ne){return Ne%100==1?1:Ne%100==2?2:Ne%100==3||Ne%100==4?3:0},22:function(Ne){return 1==Ne?0:2==Ne?1:(Ne<0||Ne>10)&&Ne%10==0?2:3}},mt=["v1","v2","v3"],ut={zero:0,one:1,two:2,few:3,many:4,other:5},dn=function(){function tt(Ne){var vt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};R.default(this,tt),this.languageUtils=Ne,this.options=vt,this.logger=D.create("pluralResolver"),(!this.options.compatibilityJSON||"v4"===this.options.compatibilityJSON)&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function Wt(){var tt={};return $n.forEach(function(Ne){Ne.lngs.forEach(function(vt){tt[vt]={numbers:Ne.nr,plurals:xn[Ne.fc]}})}),tt}()}return x.default(tt,[{key:"addRule",value:function(vt,ln){this.rules[vt]=ln}},{key:"getRule",value:function(vt){var ln=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(vt,{type:ln.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[vt]||this.rules[this.languageUtils.getLanguagePartFromCode(vt)]}},{key:"needsPlural",value:function(vt){var jn=this.getRule(vt,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return this.shouldUseIntlApi()?jn&&jn.resolvedOptions().pluralCategories.length>1:jn&&jn.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(vt,ln){return this.getSuffixes(vt,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).map(function(Pi){return"".concat(ln).concat(Pi)})}},{key:"getSuffixes",value:function(vt){var ln=this,jn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Pi=this.getRule(vt,jn);return Pi?this.shouldUseIntlApi()?Pi.resolvedOptions().pluralCategories.sort(function(go,si){return ut[go]-ut[si]}).map(function(go){return"".concat(ln.options.prepend).concat(go)}):Pi.numbers.map(function(go){return ln.getSuffix(vt,go,jn)}):[]}},{key:"getSuffix",value:function(vt,ln){var Pi=this.getRule(vt,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});return Pi?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(Pi.select(ln)):this.getSuffixRetroCompatible(Pi,ln):(this.logger.warn("no plural rule found for: ".concat(vt)),"")}},{key:"getSuffixRetroCompatible",value:function(vt,ln){var jn=this,Pi=vt.plurals(vt.noAbs?ln:Math.abs(ln)),go=vt.numbers[Pi];this.options.simplifyPluralSuffix&&2===vt.numbers.length&&1===vt.numbers[0]&&(2===go?go="plural":1===go&&(go=""));var si=function(){return jn.options.prepend&&go.toString()?jn.options.prepend+go.toString():go.toString()};return"v1"===this.options.compatibilityJSON?1===go?"":"number"==typeof go?"_plural_".concat(go.toString()):si():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===vt.numbers.length&&1===vt.numbers[0]?si():this.options.prepend&&Pi.toString()?this.options.prepend+Pi.toString():Pi.toString()}},{key:"shouldUseIntlApi",value:function(){return!mt.includes(this.options.compatibilityJSON)}}]),tt}();function sn(tt,Ne){var vt=Object.keys(tt);if(Object.getOwnPropertySymbols){var ln=Object.getOwnPropertySymbols(tt);Ne&&(ln=ln.filter(function(jn){return Object.getOwnPropertyDescriptor(tt,jn).enumerable})),vt.push.apply(vt,ln)}return vt}function fn(tt){for(var Ne=1;Ne<arguments.length;Ne++){var vt=null!=arguments[Ne]?arguments[Ne]:{};Ne%2?sn(Object(vt),!0).forEach(function(ln){M.default(tt,ln,vt[ln])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(vt)):sn(Object(vt)).forEach(function(ln){Object.defineProperty(tt,ln,Object.getOwnPropertyDescriptor(vt,ln))})}return tt}var yi=function(){function tt(){var Ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};R.default(this,tt),this.logger=D.create("interpolator"),this.options=Ne,this.format=Ne.interpolation&&Ne.interpolation.format||function(vt){return vt},this.init(Ne)}return x.default(tt,[{key:"init",value:function(){var vt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};vt.interpolation||(vt.interpolation={escapeValue:!0});var ln=vt.interpolation;this.escape=void 0!==ln.escape?ln.escape:te,this.escapeValue=void 0===ln.escapeValue||ln.escapeValue,this.useRawValueToEscape=void 0!==ln.useRawValueToEscape&&ln.useRawValueToEscape,this.prefix=ln.prefix?re(ln.prefix):ln.prefixEscaped||"{{",this.suffix=ln.suffix?re(ln.suffix):ln.suffixEscaped||"}}",this.formatSeparator=ln.formatSeparator?ln.formatSeparator:ln.formatSeparator||",",this.unescapePrefix=ln.unescapeSuffix?"":ln.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":ln.unescapeSuffix||"",this.nestingPrefix=ln.nestingPrefix?re(ln.nestingPrefix):ln.nestingPrefixEscaped||re("$t("),this.nestingSuffix=ln.nestingSuffix?re(ln.nestingSuffix):ln.nestingSuffixEscaped||re(")"),this.nestingOptionsSeparator=ln.nestingOptionsSeparator?ln.nestingOptionsSeparator:ln.nestingOptionsSeparator||",",this.maxReplaces=ln.maxReplaces?ln.maxReplaces:1e3,this.alwaysFormat=void 0!==ln.alwaysFormat&&ln.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var vt="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(vt,"g");var ln="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(ln,"g");var jn="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(jn,"g")}},{key:"interpolate",value:function(vt,ln,jn,Pi){var si,ot,pn,go=this,_i=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function wi(Xi){return Xi.replace(/\$/g,"$$$$")}var hi=function(ki){if(ki.indexOf(go.formatSeparator)<0){var bo=J(ln,_i,ki);return go.alwaysFormat?go.format(bo,void 0,jn,fn(fn(fn({},Pi),ln),{},{interpolationkey:ki})):bo}var jo=ki.split(go.formatSeparator),wn=jo.shift().trim(),Zi=jo.join(go.formatSeparator).trim();return go.format(J(ln,_i,wn),Zi,jn,fn(fn(fn({},Pi),ln),{},{interpolationkey:wn}))};this.resetRegExp();var zn=Pi&&Pi.missingInterpolationHandler||this.options.missingInterpolationHandler,Ei=Pi&&Pi.interpolation&&void 0!==Pi.interpolation.skipOnVariables?Pi.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(ki){return wi(ki)}},{regex:this.regexp,safeValue:function(ki){return wi(go.escapeValue?go.escape(ki):ki)}}].forEach(function(Xi){for(pn=0;si=Xi.regex.exec(vt);){var ki=si[1].trim();if(void 0===(ot=hi(ki)))if("function"==typeof zn){var bo=zn(vt,si,Pi);ot="string"==typeof bo?bo:""}else if(Pi&&Object.prototype.hasOwnProperty.call(Pi,ki))ot="";else{if(Ei){ot=si[0];continue}go.logger.warn("missed to pass in variable ".concat(ki," for interpolating ").concat(vt)),ot=""}else"string"!=typeof ot&&!go.useRawValueToEscape&&(ot=O(ot));var jo=Xi.safeValue(ot);if(vt=vt.replace(si[0],jo),Ei?(Xi.regex.lastIndex+=ot.length,Xi.regex.lastIndex-=si[0].length):Xi.regex.lastIndex=0,++pn>=go.maxReplaces)break}}),vt}},{key:"nest",value:function(vt,ln){var go,si,ot,jn=this,Pi=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function pn(zn,Ei){var li=this.nestingOptionsSeparator;if(zn.indexOf(li)<0)return zn;var Xi=zn.split(new RegExp("".concat(li,"[ ]*{"))),ki="{".concat(Xi[1]);zn=Xi[0];var bo=(ki=this.interpolate(ki,ot)).match(/'/g),jo=ki.match(/"/g);(bo&&bo.length%2==0&&!jo||jo.length%2!=0)&&(ki=ki.replace(/'/g,'"'));try{ot=JSON.parse(ki),Ei&&(ot=fn(fn({},Ei),ot))}catch(wn){return this.logger.warn("failed parsing options string in nesting for key ".concat(zn),wn),"".concat(zn).concat(li).concat(ki)}return delete ot.defaultValue,zn}for(;go=this.nestingRegexp.exec(vt);){var _i=[];(ot=(ot=fn({},Pi)).replace&&"string"!=typeof ot.replace?ot.replace:ot).applyPostProcessor=!1,delete ot.defaultValue;var wi=!1;if(-1!==go[0].indexOf(this.formatSeparator)&&!/{.*}/.test(go[1])){var hi=go[1].split(this.formatSeparator).map(function(zn){return zn.trim()});go[1]=hi.shift(),_i=hi,wi=!0}if((si=ln(pn.call(this,go[1].trim(),ot),ot))&&go[0]===vt&&"string"!=typeof si)return si;"string"!=typeof si&&(si=O(si)),si||(this.logger.warn("missed to resolve ".concat(go[1]," for nesting ").concat(vt)),si=""),wi&&(si=_i.reduce(function(zn,Ei){return jn.format(zn,Ei,Pi.lng,fn(fn({},Pi),{},{interpolationkey:go[1].trim()}))},si.trim())),vt=vt.replace(go[0],si),this.regexp.lastIndex=0}return vt}}]),tt}();function nn(tt,Ne){var vt=Object.keys(tt);if(Object.getOwnPropertySymbols){var ln=Object.getOwnPropertySymbols(tt);Ne&&(ln=ln.filter(function(jn){return Object.getOwnPropertyDescriptor(tt,jn).enumerable})),vt.push.apply(vt,ln)}return vt}function Mi(tt){for(var Ne=1;Ne<arguments.length;Ne++){var vt=null!=arguments[Ne]?arguments[Ne]:{};Ne%2?nn(Object(vt),!0).forEach(function(ln){M.default(tt,ln,vt[ln])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(vt)):nn(Object(vt)).forEach(function(ln){Object.defineProperty(tt,ln,Object.getOwnPropertyDescriptor(vt,ln))})}return tt}function Eo(tt){var Ne={};return function(ln,jn,Pi){var go=jn+JSON.stringify(Pi),si=Ne[go];return si||(si=tt(jn,Pi),Ne[go]=si),si(ln)}}var Ko=function(){function tt(){var Ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};R.default(this,tt),this.logger=D.create("formatter"),this.options=Ne,this.formats={number:Eo(function(vt,ln){var jn=new Intl.NumberFormat(vt,Mi({},ln));return function(Pi){return jn.format(Pi)}}),currency:Eo(function(vt,ln){var jn=new Intl.NumberFormat(vt,Mi(Mi({},ln),{},{style:"currency"}));return function(Pi){return jn.format(Pi)}}),datetime:Eo(function(vt,ln){var jn=new Intl.DateTimeFormat(vt,Mi({},ln));return function(Pi){return jn.format(Pi)}}),relativetime:Eo(function(vt,ln){var jn=new Intl.RelativeTimeFormat(vt,Mi({},ln));return function(Pi){return jn.format(Pi,ln.range||"day")}}),list:Eo(function(vt,ln){var jn=new Intl.ListFormat(vt,Mi({},ln));return function(Pi){return jn.format(Pi)}})},this.init(Ne)}return x.default(tt,[{key:"init",value:function(vt){var jn=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=jn.formatSeparator?jn.formatSeparator:jn.formatSeparator||","}},{key:"add",value:function(vt,ln){this.formats[vt.toLowerCase().trim()]=ln}},{key:"addCached",value:function(vt,ln){this.formats[vt.toLowerCase().trim()]=Eo(ln)}},{key:"format",value:function(vt,ln,jn){var Pi=this,go=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},ot=ln.split(this.formatSeparator).reduce(function(pn,_i){var wi=function mi(tt){var Ne=tt.toLowerCase().trim(),vt={};if(tt.indexOf("(")>-1){var ln=tt.split("(");Ne=ln[0].toLowerCase().trim();var jn=ln[1].substring(0,ln[1].length-1);"currency"===Ne&&jn.indexOf(":")<0?vt.currency||(vt.currency=jn.trim()):"relativetime"===Ne&&jn.indexOf(":")<0?vt.range||(vt.range=jn.trim()):jn.split(";").forEach(function(go){if(go){var si=go.split(":"),ot=p.default(si),pn=ot[0],wi=ot.slice(1).join(":").trim().replace(/^'+|'+$/g,"");vt[pn.trim()]||(vt[pn.trim()]=wi),"false"===wi&&(vt[pn.trim()]=!1),"true"===wi&&(vt[pn.trim()]=!0),isNaN(wi)||(vt[pn.trim()]=parseInt(wi,10))}})}return{formatName:Ne,formatOptions:vt}}(_i),hi=wi.formatName,zn=wi.formatOptions;if(Pi.formats[hi]){var Ei=pn;try{var li=go&&go.formatParams&&go.formatParams[go.interpolationkey]||{};Ei=Pi.formats[hi](pn,li.locale||li.lng||go.locale||go.lng||jn,Mi(Mi(Mi({},zn),go),li))}catch(ki){Pi.logger.warn(ki)}return Ei}return Pi.logger.warn("there was no format function for ".concat(hi)),pn},vt);return ot}}]),tt}();function xo(tt,Ne){var vt=Object.keys(tt);if(Object.getOwnPropertySymbols){var ln=Object.getOwnPropertySymbols(tt);Ne&&(ln=ln.filter(function(jn){return Object.getOwnPropertyDescriptor(tt,jn).enumerable})),vt.push.apply(vt,ln)}return vt}function Bn(tt){for(var Ne=1;Ne<arguments.length;Ne++){var vt=null!=arguments[Ne]?arguments[Ne]:{};Ne%2?xo(Object(vt),!0).forEach(function(ln){M.default(tt,ln,vt[ln])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(vt)):xo(Object(vt)).forEach(function(ln){Object.defineProperty(tt,ln,Object.getOwnPropertyDescriptor(vt,ln))})}return tt}var un=function(tt){k.default(vt,tt);var Ne=function Xt(tt){var Ne=function Ji(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var jn,ln=g.default(tt);if(Ne){var Pi=g.default(this).constructor;jn=Reflect.construct(ln,arguments,Pi)}else jn=ln.apply(this,arguments);return w.default(this,jn)}}(vt);function vt(ln,jn,Pi){var go,si=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return R.default(this,vt),go=Ne.call(this),j&&F.call(f.default(go)),go.backend=ln,go.store=jn,go.services=Pi,go.languageUtils=Pi.languageUtils,go.options=si,go.logger=D.create("backendConnector"),go.waitingReads=[],go.maxParallelReads=si.maxParallelReads||10,go.readingCalls=0,go.maxRetries=si.maxRetries>=0?si.maxRetries:5,go.retryTimeout=si.retryTimeout>=1?si.retryTimeout:350,go.state={},go.queue=[],go.backend&&go.backend.init&&go.backend.init(Pi,si.backend,si),go}return x.default(vt,[{key:"queueLoad",value:function(jn,Pi,go,si){var ot=this,pn={},_i={},wi={},hi={};return jn.forEach(function(zn){var Ei=!0;Pi.forEach(function(li){var Xi="".concat(zn,"|").concat(li);!go.reload&&ot.store.hasResourceBundle(zn,li)?ot.state[Xi]=2:ot.state[Xi]<0||(1===ot.state[Xi]?void 0===_i[Xi]&&(_i[Xi]=!0):(ot.state[Xi]=1,Ei=!1,void 0===_i[Xi]&&(_i[Xi]=!0),void 0===pn[Xi]&&(pn[Xi]=!0),void 0===hi[li]&&(hi[li]=!0)))}),Ei||(wi[zn]=!0)}),(Object.keys(pn).length||Object.keys(_i).length)&&this.queue.push({pending:_i,pendingCount:Object.keys(_i).length,loaded:{},errors:[],callback:si}),{toLoad:Object.keys(pn),pending:Object.keys(_i),toLoadLanguages:Object.keys(wi),toLoadNamespaces:Object.keys(hi)}}},{key:"loaded",value:function(jn,Pi,go){var si=jn.split("|"),ot=si[0],pn=si[1];Pi&&this.emit("failedLoading",ot,pn,Pi),go&&this.store.addResourceBundle(ot,pn,go),this.state[jn]=Pi?-1:2;var _i={};this.queue.forEach(function(wi){(function X(tt,Ne,vt,ln){var jn=V(tt,Ne,Object),Pi=jn.obj,go=jn.k;Pi[go]=Pi[go]||[],ln&&(Pi[go]=Pi[go].concat(vt)),ln||Pi[go].push(vt)})(wi.loaded,[ot],pn),function En(tt,Ne){void 0!==tt.pending[Ne]&&(delete tt.pending[Ne],tt.pendingCount--)}(wi,jn),Pi&&wi.errors.push(Pi),0===wi.pendingCount&&!wi.done&&(Object.keys(wi.loaded).forEach(function(hi){_i[hi]||(_i[hi]={});var zn=wi.loaded[hi];zn.length&&zn.forEach(function(Ei){void 0===_i[hi][Ei]&&(_i[hi][Ei]=!0)})}),wi.done=!0,wi.errors.length?wi.callback(wi.errors):wi.callback())}),this.emit("loaded",_i),this.queue=this.queue.filter(function(wi){return!wi.done})}},{key:"read",value:function(jn,Pi,go){var si=this,ot=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,pn=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,_i=arguments.length>5?arguments[5]:void 0;if(!jn.length)return _i(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:jn,ns:Pi,fcName:go,tried:ot,wait:pn,callback:_i});else{this.readingCalls++;var wi=function(li,Xi){if(si.readingCalls--,si.waitingReads.length>0){var ki=si.waitingReads.shift();si.read(ki.lng,ki.ns,ki.fcName,ki.tried,ki.wait,ki.callback)}li&&Xi&&ot<si.maxRetries?setTimeout(function(){si.read.call(si,jn,Pi,go,ot+1,2*pn,_i)},pn):_i(li,Xi)},hi=this.backend[go].bind(this.backend);if(2!==hi.length)return hi(jn,Pi,wi);try{var zn=hi(jn,Pi);zn&&"function"==typeof zn.then?zn.then(function(Ei){return wi(null,Ei)}).catch(wi):wi(null,zn)}catch(Ei){wi(Ei)}}}},{key:"prepareLoading",value:function(jn,Pi){var go=this,si=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ot=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),ot&&ot();"string"==typeof jn&&(jn=this.languageUtils.toResolveHierarchy(jn)),"string"==typeof Pi&&(Pi=[Pi]);var pn=this.queueLoad(jn,Pi,si,ot);if(!pn.toLoad.length)return pn.pending.length||ot(),null;pn.toLoad.forEach(function(_i){go.loadOne(_i)})}},{key:"load",value:function(jn,Pi,go){this.prepareLoading(jn,Pi,{},go)}},{key:"reload",value:function(jn,Pi,go){this.prepareLoading(jn,Pi,{reload:!0},go)}},{key:"loadOne",value:function(jn){var Pi=this,go=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",si=jn.split("|"),ot=si[0],pn=si[1];this.read(ot,pn,"read",void 0,void 0,function(_i,wi){_i&&Pi.logger.warn("".concat(go,"loading namespace ").concat(pn," for language ").concat(ot," failed"),_i),!_i&&wi&&Pi.logger.log("".concat(go,"loaded namespace ").concat(pn," for language ").concat(ot),wi),Pi.loaded(jn,_i,wi)})}},{key:"saveMissing",value:function(jn,Pi,go,si,ot){var pn=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},_i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(Pi))this.logger.warn('did not save key "'.concat(go,'" as the namespace "').concat(Pi,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=go&&""!==go){if(this.backend&&this.backend.create){var wi=Bn(Bn({},pn),{},{isUpdate:ot}),hi=this.backend.create.bind(this.backend);if(hi.length<6)try{var zn;(zn=5===hi.length?hi(jn,Pi,go,si,wi):hi(jn,Pi,go,si))&&"function"==typeof zn.then?zn.then(function(Ei){return _i(null,Ei)}).catch(_i):_i(null,zn)}catch(Ei){_i(Ei)}else hi(jn,Pi,go,si,_i,wi)}!jn||!jn[0]||this.store.addResource(jn[0],Pi,go,si)}}}]),vt}(F);function Ki(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(Ne){var vt={};if("object"===C.default(Ne[1])&&(vt=Ne[1]),"string"==typeof Ne[1]&&(vt.defaultValue=Ne[1]),"string"==typeof Ne[2]&&(vt.tDescription=Ne[2]),"object"===C.default(Ne[2])||"object"===C.default(Ne[3])){var ln=Ne[3]||Ne[2];Object.keys(ln).forEach(function(jn){vt[jn]=ln[jn]})}return vt},interpolation:{escapeValue:!0,format:function(Ne,vt,ln,jn){return Ne},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Fn(tt){return"string"==typeof tt.ns&&(tt.ns=[tt.ns]),"string"==typeof tt.fallbackLng&&(tt.fallbackLng=[tt.fallbackLng]),"string"==typeof tt.fallbackNS&&(tt.fallbackNS=[tt.fallbackNS]),tt.supportedLngs&&tt.supportedLngs.indexOf("cimode")<0&&(tt.supportedLngs=tt.supportedLngs.concat(["cimode"])),tt}function oi(tt,Ne){var vt=Object.keys(tt);if(Object.getOwnPropertySymbols){var ln=Object.getOwnPropertySymbols(tt);Ne&&(ln=ln.filter(function(jn){return Object.getOwnPropertyDescriptor(tt,jn).enumerable})),vt.push.apply(vt,ln)}return vt}function It(tt){for(var Ne=1;Ne<arguments.length;Ne++){var vt=null!=arguments[Ne]?arguments[Ne]:{};Ne%2?oi(Object(vt),!0).forEach(function(ln){M.default(tt,ln,vt[ln])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(vt)):oi(Object(vt)).forEach(function(ln){Object.defineProperty(tt,ln,Object.getOwnPropertyDescriptor(vt,ln))})}return tt}function wt(){}var pt=function(tt){k.default(vt,tt);var Ne=function Bt(tt){var Ne=function xt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var jn,ln=g.default(tt);if(Ne){var Pi=g.default(this).constructor;jn=Reflect.construct(ln,arguments,Pi)}else jn=ln.apply(this,arguments);return w.default(this,jn)}}(vt);function vt(){var ln,jn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Pi=arguments.length>1?arguments[1]:void 0;if(R.default(this,vt),ln=Ne.call(this),j&&F.call(f.default(ln)),ln.options=Fn(jn),ln.services={},ln.logger=D,ln.modules={external:[]},function Mt(tt){Object.getOwnPropertyNames(Object.getPrototypeOf(tt)).forEach(function(vt){"function"==typeof tt[vt]&&(tt[vt]=tt[vt].bind(tt))})}(f.default(ln)),Pi&&!ln.isInitialized&&!jn.isClone){if(!ln.options.initImmediate)return ln.init(jn,Pi),w.default(ln,f.default(ln));setTimeout(function(){ln.init(jn,Pi)},0)}return ln}return x.default(vt,[{key:"init",value:function(){var jn=this,Pi=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},go=arguments.length>1?arguments[1]:void 0;"function"==typeof Pi&&(go=Pi,Pi={}),!Pi.defaultNS&&!1!==Pi.defaultNS&&Pi.ns&&("string"==typeof Pi.ns?Pi.defaultNS=Pi.ns:Pi.ns.indexOf("translation")<0&&(Pi.defaultNS=Pi.ns[0]));var si=Ki();function ot(ki){return ki?"function"==typeof ki?new ki:ki:null}if(this.options=It(It(It({},si),this.options),Fn(Pi)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=It(It({},si.interpolation),this.options.interpolation)),void 0!==Pi.keySeparator&&(this.options.userDefinedKeySeparator=Pi.keySeparator),void 0!==Pi.nsSeparator&&(this.options.userDefinedNsSeparator=Pi.nsSeparator),!this.options.isClone){var pn;D.init(this.modules.logger?ot(this.modules.logger):null,this.options),this.modules.formatter?pn=this.modules.formatter:typeof Intl<"u"&&(pn=Ko);var _i=new An(this.options);this.store=new Ce(this.options.resources,this.options);var wi=this.services;wi.logger=D,wi.resourceStore=this.store,wi.languageUtils=_i,wi.pluralResolver=new dn(_i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),pn&&(!this.options.interpolation.format||this.options.interpolation.format===si.interpolation.format)&&(wi.formatter=ot(pn),wi.formatter.init(wi,this.options),this.options.interpolation.format=wi.formatter.format.bind(wi.formatter)),wi.interpolator=new yi(this.options),wi.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},wi.backendConnector=new un(ot(this.modules.backend),wi.resourceStore,wi,this.options),wi.backendConnector.on("*",function(ki){for(var bo=arguments.length,jo=new Array(bo>1?bo-1:0),wn=1;wn<bo;wn++)jo[wn-1]=arguments[wn];jn.emit.apply(jn,[ki].concat(jo))}),this.modules.languageDetector&&(wi.languageDetector=ot(this.modules.languageDetector),wi.languageDetector.init&&wi.languageDetector.init(wi,this.options.detection,this.options)),this.modules.i18nFormat&&(wi.i18nFormat=ot(this.modules.i18nFormat),wi.i18nFormat.init&&wi.i18nFormat.init(this)),this.translator=new Gt(this.services,this.options),this.translator.on("*",function(ki){for(var bo=arguments.length,jo=new Array(bo>1?bo-1:0),wn=1;wn<bo;wn++)jo[wn-1]=arguments[wn];jn.emit.apply(jn,[ki].concat(jo))}),this.modules.external.forEach(function(ki){ki.init&&ki.init(jn)})}if(this.format=this.options.interpolation.format,go||(go=wt),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var hi=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);hi.length>0&&"dev"!==hi[0]&&(this.options.lng=hi[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(ki){jn[ki]=function(){var bo;return(bo=jn.store)[ki].apply(bo,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(ki){jn[ki]=function(){var bo;return(bo=jn.store)[ki].apply(bo,arguments),jn}});var li=P(),Xi=function(){var bo=function(wn,Zi){jn.isInitialized&&!jn.initializedStoreOnce&&jn.logger.warn("init: i18next is already initialized. You should call init just once!"),jn.isInitialized=!0,jn.options.isClone||jn.logger.log("initialized",jn.options),jn.emit("initialized",jn.options),li.resolve(Zi),go(wn,Zi)};if(jn.languages&&"v1"!==jn.options.compatibilityAPI&&!jn.isInitialized)return bo(null,jn.t.bind(jn));jn.changeLanguage(jn.options.lng,bo)};return this.options.resources||!this.options.initImmediate?Xi():setTimeout(Xi,0),li}},{key:"loadResources",value:function(jn){var Pi=this,si=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wt,ot="string"==typeof jn?jn:this.language;if("function"==typeof jn&&(si=jn),!this.options.resources||this.options.partialBundledLanguages){if(ot&&"cimode"===ot.toLowerCase())return si();var pn=[],_i=function(zn){zn&&Pi.services.languageUtils.toResolveHierarchy(zn).forEach(function(li){pn.indexOf(li)<0&&pn.push(li)})};ot?_i(ot):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(hi){return _i(hi)}),this.options.preload&&this.options.preload.forEach(function(hi){return _i(hi)}),this.services.backendConnector.load(pn,this.options.ns,function(hi){!hi&&!Pi.resolvedLanguage&&Pi.language&&Pi.setResolvedLanguage(Pi.language),si(hi)})}else si(null)}},{key:"reloadResources",value:function(jn,Pi,go){var si=P();return jn||(jn=this.languages),Pi||(Pi=this.options.ns),go||(go=wt),this.services.backendConnector.reload(jn,Pi,function(ot){si.resolve(),go(ot)}),si}},{key:"use",value:function(jn){if(!jn)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!jn.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===jn.type&&(this.modules.backend=jn),("logger"===jn.type||jn.log&&jn.warn&&jn.error)&&(this.modules.logger=jn),"languageDetector"===jn.type&&(this.modules.languageDetector=jn),"i18nFormat"===jn.type&&(this.modules.i18nFormat=jn),"postProcessor"===jn.type&&Te.addPostProcessor(jn),"formatter"===jn.type&&(this.modules.formatter=jn),"3rdParty"===jn.type&&this.modules.external.push(jn),this}},{key:"setResolvedLanguage",value:function(jn){if(jn&&this.languages&&!(["cimode","dev"].indexOf(jn)>-1))for(var Pi=0;Pi<this.languages.length;Pi++){var go=this.languages[Pi];if(!(["cimode","dev"].indexOf(go)>-1)&&this.store.hasLanguageSomeTranslations(go)){this.resolvedLanguage=go;break}}}},{key:"changeLanguage",value:function(jn,Pi){var go=this;this.isLanguageChangingTo=jn;var si=P();this.emit("languageChanging",jn);var ot=function(hi){go.language=hi,go.languages=go.services.languageUtils.toResolveHierarchy(hi),go.resolvedLanguage=void 0,go.setResolvedLanguage(hi)},_i=function(hi){!jn&&!hi&&go.services.languageDetector&&(hi=[]);var zn="string"==typeof hi?hi:go.services.languageUtils.getBestMatchFromCodes(hi);zn&&(go.language||ot(zn),go.translator.language||go.translator.changeLanguage(zn),go.services.languageDetector&&go.services.languageDetector.cacheUserLanguage&&go.services.languageDetector.cacheUserLanguage(zn)),go.loadResources(zn,function(Ei){!function(hi,zn){zn?(ot(zn),go.translator.changeLanguage(zn),go.isLanguageChangingTo=void 0,go.emit("languageChanged",zn),go.logger.log("languageChanged",zn)):go.isLanguageChangingTo=void 0,si.resolve(function(){return go.t.apply(go,arguments)}),Pi&&Pi(hi,function(){return go.t.apply(go,arguments)})}(Ei,zn)})};return jn||!this.services.languageDetector||this.services.languageDetector.async?!jn&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(_i):this.services.languageDetector.detect(_i):_i(jn):_i(this.services.languageDetector.detect()),si}},{key:"getFixedT",value:function(jn,Pi,go){var si=this,ot=function pn(_i,wi){var hi;if("object"!==C.default(wi)){for(var zn=arguments.length,Ei=new Array(zn>2?zn-2:0),li=2;li<zn;li++)Ei[li-2]=arguments[li];hi=si.options.overloadTranslationOptionHandler([_i,wi].concat(Ei))}else hi=It({},wi);hi.lng=hi.lng||pn.lng,hi.lngs=hi.lngs||pn.lngs,hi.ns=hi.ns||pn.ns,hi.keyPrefix=hi.keyPrefix||go||pn.keyPrefix;var ki,Xi=si.options.keySeparator||".";return ki=hi.keyPrefix&&Array.isArray(_i)?_i.map(function(bo){return"".concat(hi.keyPrefix).concat(Xi).concat(bo)}):hi.keyPrefix?"".concat(hi.keyPrefix).concat(Xi).concat(_i):_i,si.t(ki,hi)};return"string"==typeof jn?ot.lng=jn:ot.lngs=jn,ot.ns=Pi,ot.keyPrefix=go,ot}},{key:"t",value:function(){var jn;return this.translator&&(jn=this.translator).translate.apply(jn,arguments)}},{key:"exists",value:function(){var jn;return this.translator&&(jn=this.translator).exists.apply(jn,arguments)}},{key:"setDefaultNamespace",value:function(jn){this.options.defaultNS=jn}},{key:"hasLoadedNamespace",value:function(jn){var Pi=this,go=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var si=this.resolvedLanguage||this.languages[0],ot=!!this.options&&this.options.fallbackLng,pn=this.languages[this.languages.length-1];if("cimode"===si.toLowerCase())return!0;var _i=function(zn,Ei){var li=Pi.services.backendConnector.state["".concat(zn,"|").concat(Ei)];return-1===li||2===li};if(go.precheck){var wi=go.precheck(this,_i);if(void 0!==wi)return wi}return!!(this.hasResourceBundle(si,jn)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||_i(si,jn)&&(!ot||_i(pn,jn)))}},{key:"loadNamespaces",value:function(jn,Pi){var go=this,si=P();return this.options.ns?("string"==typeof jn&&(jn=[jn]),jn.forEach(function(ot){go.options.ns.indexOf(ot)<0&&go.options.ns.push(ot)}),this.loadResources(function(ot){si.resolve(),Pi&&Pi(ot)}),si):(Pi&&Pi(),Promise.resolve())}},{key:"loadLanguages",value:function(jn,Pi){var go=P();"string"==typeof jn&&(jn=[jn]);var si=this.options.preload||[],ot=jn.filter(function(pn){return si.indexOf(pn)<0});return ot.length?(this.options.preload=si.concat(ot),this.loadResources(function(pn){go.resolve(),Pi&&Pi(pn)}),go):(Pi&&Pi(),Promise.resolve())}},{key:"dir",value:function(jn){if(jn||(jn=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!jn)return"rtl";var go=this.services&&this.services.languageUtils||new An(Ki());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(go.getLanguagePartFromCode(jn))>-1||jn.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var jn=this,Pi=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},go=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wt,si=It(It(It({},this.options),Pi),{isClone:!0}),ot=new vt(si);return(void 0!==Pi.debug||void 0!==Pi.prefix)&&(ot.logger=ot.logger.clone(Pi)),["store","services","language"].forEach(function(_i){ot[_i]=jn[_i]}),ot.services=It({},this.services),ot.services.utils={hasLoadedNamespace:ot.hasLoadedNamespace.bind(ot)},ot.translator=new Gt(ot.services,ot.options),ot.translator.on("*",function(_i){for(var wi=arguments.length,hi=new Array(wi>1?wi-1:0),zn=1;zn<wi;zn++)hi[zn-1]=arguments[zn];ot.emit.apply(ot,[_i].concat(hi))}),ot.init(si,go),ot.translator.options=ot.options,ot.translator.backendConnector.services.utils={hasLoadedNamespace:ot.hasLoadedNamespace.bind(ot)},ot}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),vt}(F);M.default(pt,"createInstance",function(){return new pt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)});var Lt=pt.createInstance();Lt.createInstance=pt.createInstance,he.exports=Lt},71402:he=>{var i=Object.prototype.toString;he.exports=Array.isArray||function(e){return!!e&&"[object Array]"==i.call(e)}},58294:(he,y,i)=>{"use strict";i.r(y),i.d(y,{default:()=>n});var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol?"symbol":typeof o};function n(o){return null!=o&&"object"===(typeof o>"u"?"undefined":e(o))&&1===o.nodeType&&"object"===e(o.style)&&"object"===e(o.ownerDocument)}},34491:(he,y,i)=>{"use strict";i.r(y),i.d(y,{default:()=>M});var e=/iPhone/i,n=/iPod/i,o=/iPad/i,a=/\biOS-universal(?:.+)Mac\b/i,l=/\bAndroid(?:.+)Mobile\b/i,u=/Android/i,d=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,s=/Silk/i,A=/Windows Phone/i,_=/\bWindows(?:.+)ARM\b/i,C=/BlackBerry/i,R=/BB10/i,x=/Opera Mini/i,f=/\b(CriOS|Chrome)(?:.+)Mobile/i,k=/Mobile(?:.+)Firefox\b/i,w=function(p){return typeof p<"u"&&"MacIntel"===p.platform&&"number"==typeof p.maxTouchPoints&&p.maxTouchPoints>1&&typeof MSStream>"u"};function M(p){var E={userAgent:"",platform:"",maxTouchPoints:0};!p&&typeof navigator<"u"?E={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:"string"==typeof p?E.userAgent=p:p&&p.userAgent&&(E={userAgent:p.userAgent,platform:p.platform,maxTouchPoints:p.maxTouchPoints||0});var b=E.userAgent,I=b.split("[FBAN");typeof I[1]<"u"&&(b=I[0]),typeof(I=b.split("Twitter"))[1]<"u"&&(b=I[0]);var L=function g(p){return function(E){return E.test(p)}}(b),D={apple:{phone:L(e)&&!L(A),ipod:L(n),tablet:!L(e)&&(L(o)||w(E))&&!L(A),universal:L(a),device:(L(e)||L(n)||L(o)||L(a)||w(E))&&!L(A)},amazon:{phone:L(d),tablet:!L(d)&&L(s),device:L(d)||L(s)},android:{phone:!L(A)&&L(d)||!L(A)&&L(l),tablet:!L(A)&&!L(d)&&!L(l)&&(L(s)||L(u)),device:!L(A)&&(L(d)||L(s)||L(l)||L(u))||L(/\bokhttp\b/i)},windows:{phone:L(A),tablet:L(_),device:L(A)||L(_)},other:{blackberry:L(C),blackberry10:L(R),opera:L(x),firefox:L(k),chrome:L(f),device:L(C)||L(R)||L(x)||L(k)||L(f)},any:!1,phone:!1,tablet:!1};return D.any=D.apple.device||D.android.device||D.windows.device||D.other.device,D.phone=D.apple.phone||D.android.phone||D.windows.phone,D.tablet=D.apple.tablet||D.android.tablet||D.windows.tablet,D}},82276:function(he,y){var e;
/*!
        * jQuery JavaScript Library v3.7.1
        * https://jquery.com/
        *
        * Copyright OpenJS Foundation and other contributors
        * Released under the MIT license
        * https://jquery.org/license
        *
        * Date: 2023-08-28T13:37Z
        */!function(n,o){"use strict";"object"==typeof he.exports?he.exports=n.document?o(n,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return o(a)}:o(n)}(typeof window<"u"?window:this,function(n,o){"use strict";var a=[],l=Object.getPrototypeOf,u=a.slice,d=a.flat?function(Jt){return a.flat.call(Jt)}:function(Jt){return a.concat.apply([],Jt)},s=a.push,A=a.indexOf,_={},C=_.toString,R=_.hasOwnProperty,x=R.toString,f=x.call(Object),k={},w=function(Tt){return"function"==typeof Tt&&"number"!=typeof Tt.nodeType&&"function"!=typeof Tt.item},g=function(Tt){return null!=Tt&&Tt===Tt.window},M=n.document,p={type:!0,src:!0,nonce:!0,noModule:!0};function E(Jt,Tt,ht){var yn,vi,Yi=(ht=ht||M).createElement("script");if(Yi.text=Jt,Tt)for(yn in p)(vi=Tt[yn]||Tt.getAttribute&&Tt.getAttribute(yn))&&Yi.setAttribute(yn,vi);ht.head.appendChild(Yi).parentNode.removeChild(Yi)}function b(Jt){return null==Jt?Jt+"":"object"==typeof Jt||"function"==typeof Jt?_[C.call(Jt)]||"object":typeof Jt}var I="3.7.1",L=/HTML$/i,D=function(Jt,Tt){return new D.fn.init(Jt,Tt)};function F(Jt){var Tt=!!Jt&&"length"in Jt&&Jt.length,ht=b(Jt);return!w(Jt)&&!g(Jt)&&("array"===ht||0===Tt||"number"==typeof Tt&&Tt>0&&Tt-1 in Jt)}function P(Jt,Tt){return Jt.nodeName&&Jt.nodeName.toLowerCase()===Tt.toLowerCase()}D.fn=D.prototype={jquery:I,constructor:D,length:0,toArray:function(){return u.call(this)},get:function(Jt){return null==Jt?u.call(this):Jt<0?this[Jt+this.length]:this[Jt]},pushStack:function(Jt){var Tt=D.merge(this.constructor(),Jt);return Tt.prevObject=this,Tt},each:function(Jt){return D.each(this,Jt)},map:function(Jt){return this.pushStack(D.map(this,function(Tt,ht){return Jt.call(Tt,ht,Tt)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(D.grep(this,function(Jt,Tt){return(Tt+1)%2}))},odd:function(){return this.pushStack(D.grep(this,function(Jt,Tt){return Tt%2}))},eq:function(Jt){var Tt=this.length,ht=+Jt+(Jt<0?Tt:0);return this.pushStack(ht>=0&&ht<Tt?[this[ht]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:a.sort,splice:a.splice},D.extend=D.fn.extend=function(){var Jt,Tt,ht,yn,vi,Yi,co=arguments[0]||{},sr=1,yr=arguments.length,Ur=!1;for("boolean"==typeof co&&(Ur=co,co=arguments[sr]||{},sr++),"object"!=typeof co&&!w(co)&&(co={}),sr===yr&&(co=this,sr--);sr<yr;sr++)if(null!=(Jt=arguments[sr]))for(Tt in Jt)yn=Jt[Tt],"__proto__"!==Tt&&co!==yn&&(Ur&&yn&&(D.isPlainObject(yn)||(vi=Array.isArray(yn)))?(ht=co[Tt],Yi=vi&&!Array.isArray(ht)?[]:vi||D.isPlainObject(ht)?ht:{},vi=!1,co[Tt]=D.extend(Ur,Yi,yn)):void 0!==yn&&(co[Tt]=yn));return co},D.extend({expando:"jQuery"+(I+Math.random()).replace(/\D/g,""),isReady:!0,error:function(Jt){throw new Error(Jt)},noop:function(){},isPlainObject:function(Jt){var Tt,ht;return!(!Jt||"[object Object]"!==C.call(Jt)||(Tt=l(Jt))&&("function"!=typeof(ht=R.call(Tt,"constructor")&&Tt.constructor)||x.call(ht)!==f))},isEmptyObject:function(Jt){var Tt;for(Tt in Jt)return!1;return!0},globalEval:function(Jt,Tt,ht){E(Jt,{nonce:Tt&&Tt.nonce},ht)},each:function(Jt,Tt){var ht,yn=0;if(F(Jt))for(ht=Jt.length;yn<ht&&!1!==Tt.call(Jt[yn],yn,Jt[yn]);yn++);else for(yn in Jt)if(!1===Tt.call(Jt[yn],yn,Jt[yn]))break;return Jt},text:function(Jt){var Tt,ht="",yn=0,vi=Jt.nodeType;if(!vi)for(;Tt=Jt[yn++];)ht+=D.text(Tt);return 1===vi||11===vi?Jt.textContent:9===vi?Jt.documentElement.textContent:3===vi||4===vi?Jt.nodeValue:ht},makeArray:function(Jt,Tt){var ht=Tt||[];return null!=Jt&&(F(Object(Jt))?D.merge(ht,"string"==typeof Jt?[Jt]:Jt):s.call(ht,Jt)),ht},inArray:function(Jt,Tt,ht){return null==Tt?-1:A.call(Tt,Jt,ht)},isXMLDoc:function(Jt){var ht=Jt&&(Jt.ownerDocument||Jt).documentElement;return!L.test(Jt&&Jt.namespaceURI||ht&&ht.nodeName||"HTML")},merge:function(Jt,Tt){for(var ht=+Tt.length,yn=0,vi=Jt.length;yn<ht;yn++)Jt[vi++]=Tt[yn];return Jt.length=vi,Jt},grep:function(Jt,Tt,ht){for(var vi=[],Yi=0,co=Jt.length,sr=!ht;Yi<co;Yi++)!Tt(Jt[Yi],Yi)!==sr&&vi.push(Jt[Yi]);return vi},map:function(Jt,Tt,ht){var yn,vi,Yi=0,co=[];if(F(Jt))for(yn=Jt.length;Yi<yn;Yi++)null!=(vi=Tt(Jt[Yi],Yi,ht))&&co.push(vi);else for(Yi in Jt)null!=(vi=Tt(Jt[Yi],Yi,ht))&&co.push(vi);return d(co)},guid:1,support:k}),"function"==typeof Symbol&&(D.fn[Symbol.iterator]=a[Symbol.iterator]),D.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(Jt,Tt){_["[object "+Tt+"]"]=Tt.toLowerCase()});var O=a.pop,U=a.sort,V=a.splice,K="[\\x20\\t\\r\\n\\f]",X=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g");D.contains=function(Jt,Tt){var ht=Tt&&Tt.parentNode;return Jt===ht||!(!ht||1!==ht.nodeType||!(Jt.contains?Jt.contains(ht):Jt.compareDocumentPosition&&16&Jt.compareDocumentPosition(ht)))};var me=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function J(Jt,Tt){return Tt?"\0"===Jt?"\ufffd":Jt.slice(0,-1)+"\\"+Jt.charCodeAt(Jt.length-1).toString(16)+" ":"\\"+Jt}D.escapeSelector=function(Jt){return(Jt+"").replace(me,J)};var Q=M,re=s;!function(){var Jt,Tt,ht,yn,vi,co,sr,yr,Ur,ss,Yi=re,gs=D.expando,Pr=0,ys=0,da=Ht(),Va=Ht(),ga=Ht(),al=Ht(),ur=function(xi,Wn){return xi===Wn&&(vi=!0),0},La="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ra="(?:\\\\[\\da-fA-F]{1,6}"+K+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Ls="\\["+K+"*("+ra+")(?:"+K+"*([*^$|!~]?=)"+K+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ra+"))|)"+K+"*\\]",vn=":("+ra+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Ls+")*)|.*)\\)|)",Xe=new RegExp(K+"+","g"),Ke=new RegExp("^"+K+"*,"+K+"*"),ze=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),St=new RegExp(K+"|>"),it=new RegExp(vn),Dt=new RegExp("^"+ra+"$"),Hn={ID:new RegExp("^#("+ra+")"),CLASS:new RegExp("^\\.("+ra+")"),TAG:new RegExp("^("+ra+"|[*])"),ATTR:new RegExp("^"+Ls),PSEUDO:new RegExp("^"+vn),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+La+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},Ui=/^(?:input|select|textarea|button)$/i,Co=/^h\d$/i,Sn=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Vn=/[+~]/,Dn=new RegExp("\\\\[\\da-fA-F]{1,6}"+K+"?|\\\\([^\\r\\n\\f])","g"),kn=function(xi,Wn){var Vt="0x"+xi.slice(1)-65536;return Wn||(Vt<0?String.fromCharCode(Vt+65536):String.fromCharCode(Vt>>10|55296,1023&Vt|56320))},ui=function(){Be()},Ot=$t(function(xi){return!0===xi.disabled&&P(xi,"fieldset")},{dir:"parentNode",next:"legend"});try{Yi.apply(a=u.call(Q.childNodes),Q.childNodes)}catch{Yi={apply:function(Wn,Vt){re.apply(Wn,u.call(Vt))},call:function(Wn){re.apply(Wn,u.call(arguments,1))}}}function cn(xi,Wn,Vt,qt){var bn,ii,Vi,Jn,zt,mn,Qn,ci=Wn&&Wn.ownerDocument,Oi=Wn?Wn.nodeType:9;if(Vt=Vt||[],"string"!=typeof xi||!xi||1!==Oi&&9!==Oi&&11!==Oi)return Vt;if(!qt&&(Be(Wn),Wn=Wn||co,yr)){if(11!==Oi&&(zt=Sn.exec(xi)))if(bn=zt[1]){if(9===Oi){if(!(Vi=Wn.getElementById(bn)))return Vt;if(Vi.id===bn)return Yi.call(Vt,Vi),Vt}else if(ci&&(Vi=ci.getElementById(bn))&&cn.contains(Wn,Vi)&&Vi.id===bn)return Yi.call(Vt,Vi),Vt}else{if(zt[2])return Yi.apply(Vt,Wn.getElementsByTagName(xi)),Vt;if((bn=zt[3])&&Wn.getElementsByClassName)return Yi.apply(Vt,Wn.getElementsByClassName(bn)),Vt}if(!(al[xi+" "]||Ur&&Ur.test(xi))){if(Qn=xi,ci=Wn,1===Oi&&(St.test(xi)||ze.test(xi))){for(((ci=Vn.test(xi)&&Ge(Wn.parentNode)||Wn)!=Wn||!k.scope)&&((Jn=Wn.getAttribute("id"))?Jn=D.escapeSelector(Jn):Wn.setAttribute("id",Jn=gs)),ii=(mn=Rt(xi)).length;ii--;)mn[ii]=(Jn?"#"+Jn:":scope")+" "+Pt(mn[ii]);Qn=mn.join(",")}try{return Yi.apply(Vt,ci.querySelectorAll(Qn)),Vt}catch{al(xi,!0)}finally{Jn===gs&&Wn.removeAttribute("id")}}}return Ci(xi.replace(X,"$1"),Wn,Vt,qt)}function Ht(){var xi=[];return function Wn(Vt,qt){return xi.push(Vt+" ")>Tt.cacheLength&&delete Wn[xi.shift()],Wn[Vt+" "]=qt}}function ft(xi){return xi[gs]=!0,xi}function Nt(xi){var Wn=co.createElement("fieldset");try{return!!xi(Wn)}catch{return!1}finally{Wn.parentNode&&Wn.parentNode.removeChild(Wn),Wn=null}}function an(xi){return function(Wn){return P(Wn,"input")&&Wn.type===xi}}function $e(xi){return function(Wn){return(P(Wn,"input")||P(Wn,"button"))&&Wn.type===xi}}function Je(xi){return function(Wn){return"form"in Wn?Wn.parentNode&&!1===Wn.disabled?"label"in Wn?"label"in Wn.parentNode?Wn.parentNode.disabled===xi:Wn.disabled===xi:Wn.isDisabled===xi||Wn.isDisabled!==!xi&&Ot(Wn)===xi:Wn.disabled===xi:"label"in Wn&&Wn.disabled===xi}}function Ve(xi){return ft(function(Wn){return Wn=+Wn,ft(function(Vt,qt){for(var bn,ii=xi([],Vt.length,Wn),Vi=ii.length;Vi--;)Vt[bn=ii[Vi]]&&(Vt[bn]=!(qt[bn]=Vt[bn]))})})}function Ge(xi){return xi&&typeof xi.getElementsByTagName<"u"&&xi}function Be(xi){var Wn,Vt=xi?xi.ownerDocument||xi:Q;return Vt==co||9!==Vt.nodeType||!Vt.documentElement||(sr=(co=Vt).documentElement,yr=!D.isXMLDoc(co),ss=sr.matches||sr.webkitMatchesSelector||sr.msMatchesSelector,sr.msMatchesSelector&&Q!=co&&(Wn=co.defaultView)&&Wn.top!==Wn&&Wn.addEventListener("unload",ui),k.getById=Nt(function(qt){return sr.appendChild(qt).id=D.expando,!co.getElementsByName||!co.getElementsByName(D.expando).length}),k.disconnectedMatch=Nt(function(qt){return ss.call(qt,"*")}),k.scope=Nt(function(){return co.querySelectorAll(":scope")}),k.cssHas=Nt(function(){try{return co.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),k.getById?(Tt.filter.ID=function(qt){var bn=qt.replace(Dn,kn);return function(ii){return ii.getAttribute("id")===bn}},Tt.find.ID=function(qt,bn){if(typeof bn.getElementById<"u"&&yr){var ii=bn.getElementById(qt);return ii?[ii]:[]}}):(Tt.filter.ID=function(qt){var bn=qt.replace(Dn,kn);return function(ii){var Vi=typeof ii.getAttributeNode<"u"&&ii.getAttributeNode("id");return Vi&&Vi.value===bn}},Tt.find.ID=function(qt,bn){if(typeof bn.getElementById<"u"&&yr){var ii,Vi,Jn,zt=bn.getElementById(qt);if(zt){if((ii=zt.getAttributeNode("id"))&&ii.value===qt)return[zt];for(Jn=bn.getElementsByName(qt),Vi=0;zt=Jn[Vi++];)if((ii=zt.getAttributeNode("id"))&&ii.value===qt)return[zt]}return[]}}),Tt.find.TAG=function(qt,bn){return typeof bn.getElementsByTagName<"u"?bn.getElementsByTagName(qt):bn.querySelectorAll(qt)},Tt.find.CLASS=function(qt,bn){if(typeof bn.getElementsByClassName<"u"&&yr)return bn.getElementsByClassName(qt)},Ur=[],Nt(function(qt){var bn;sr.appendChild(qt).innerHTML="<a id='"+gs+"' href='' disabled='disabled'></a><select id='"+gs+"-\r\\' disabled='disabled'><option selected=''></option></select>",qt.querySelectorAll("[selected]").length||Ur.push("\\["+K+"*(?:value|"+La+")"),qt.querySelectorAll("[id~="+gs+"-]").length||Ur.push("~="),qt.querySelectorAll("a#"+gs+"+*").length||Ur.push(".#.+[+~]"),qt.querySelectorAll(":checked").length||Ur.push(":checked"),(bn=co.createElement("input")).setAttribute("type","hidden"),qt.appendChild(bn).setAttribute("name","D"),sr.appendChild(qt).disabled=!0,2!==qt.querySelectorAll(":disabled").length&&Ur.push(":enabled",":disabled"),(bn=co.createElement("input")).setAttribute("name",""),qt.appendChild(bn),qt.querySelectorAll("[name='']").length||Ur.push("\\["+K+"*name"+K+"*="+K+"*(?:''|\"\")")}),k.cssHas||Ur.push(":has"),Ur=Ur.length&&new RegExp(Ur.join("|")),ur=function(qt,bn){if(qt===bn)return vi=!0,0;var ii=!qt.compareDocumentPosition-!bn.compareDocumentPosition;return ii||(1&(ii=(qt.ownerDocument||qt)==(bn.ownerDocument||bn)?qt.compareDocumentPosition(bn):1)||!k.sortDetached&&bn.compareDocumentPosition(qt)===ii?qt===co||qt.ownerDocument==Q&&cn.contains(Q,qt)?-1:bn===co||bn.ownerDocument==Q&&cn.contains(Q,bn)?1:yn?A.call(yn,qt)-A.call(yn,bn):0:4&ii?-1:1)}),co}for(Jt in cn.matches=function(xi,Wn){return cn(xi,null,null,Wn)},cn.matchesSelector=function(xi,Wn){if(Be(xi),yr&&!al[Wn+" "]&&(!Ur||!Ur.test(Wn)))try{var Vt=ss.call(xi,Wn);if(Vt||k.disconnectedMatch||xi.document&&11!==xi.document.nodeType)return Vt}catch{al(Wn,!0)}return cn(Wn,co,null,[xi]).length>0},cn.contains=function(xi,Wn){return(xi.ownerDocument||xi)!=co&&Be(xi),D.contains(xi,Wn)},cn.attr=function(xi,Wn){(xi.ownerDocument||xi)!=co&&Be(xi);var Vt=Tt.attrHandle[Wn.toLowerCase()],qt=Vt&&R.call(Tt.attrHandle,Wn.toLowerCase())?Vt(xi,Wn,!yr):void 0;return void 0!==qt?qt:xi.getAttribute(Wn)},cn.error=function(xi){throw new Error("Syntax error, unrecognized expression: "+xi)},D.uniqueSort=function(xi){var Wn,Vt=[],qt=0,bn=0;if(vi=!k.sortStable,yn=!k.sortStable&&u.call(xi,0),U.call(xi,ur),vi){for(;Wn=xi[bn++];)Wn===xi[bn]&&(qt=Vt.push(bn));for(;qt--;)V.call(xi,Vt[qt],1)}return yn=null,xi},D.fn.uniqueSort=function(){return this.pushStack(D.uniqueSort(u.apply(this)))},(Tt=D.expr={cacheLength:50,createPseudo:ft,match:Hn,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(xi){return xi[1]=xi[1].replace(Dn,kn),xi[3]=(xi[3]||xi[4]||xi[5]||"").replace(Dn,kn),"~="===xi[2]&&(xi[3]=" "+xi[3]+" "),xi.slice(0,4)},CHILD:function(xi){return xi[1]=xi[1].toLowerCase(),"nth"===xi[1].slice(0,3)?(xi[3]||cn.error(xi[0]),xi[4]=+(xi[4]?xi[5]+(xi[6]||1):2*("even"===xi[3]||"odd"===xi[3])),xi[5]=+(xi[7]+xi[8]||"odd"===xi[3])):xi[3]&&cn.error(xi[0]),xi},PSEUDO:function(xi){var Wn,Vt=!xi[6]&&xi[2];return Hn.CHILD.test(xi[0])?null:(xi[3]?xi[2]=xi[4]||xi[5]||"":Vt&&it.test(Vt)&&(Wn=Rt(Vt,!0))&&(Wn=Vt.indexOf(")",Vt.length-Wn)-Vt.length)&&(xi[0]=xi[0].slice(0,Wn),xi[2]=Vt.slice(0,Wn)),xi.slice(0,3))}},filter:{TAG:function(xi){var Wn=xi.replace(Dn,kn).toLowerCase();return"*"===xi?function(){return!0}:function(Vt){return P(Vt,Wn)}},CLASS:function(xi){var Wn=da[xi+" "];return Wn||(Wn=new RegExp("(^|"+K+")"+xi+"("+K+"|$)"))&&da(xi,function(Vt){return Wn.test("string"==typeof Vt.className&&Vt.className||typeof Vt.getAttribute<"u"&&Vt.getAttribute("class")||"")})},ATTR:function(xi,Wn,Vt){return function(qt){var bn=cn.attr(qt,xi);return null==bn?"!="===Wn:!Wn||(bn+="","="===Wn?bn===Vt:"!="===Wn?bn!==Vt:"^="===Wn?Vt&&0===bn.indexOf(Vt):"*="===Wn?Vt&&bn.indexOf(Vt)>-1:"$="===Wn?Vt&&bn.slice(-Vt.length)===Vt:"~="===Wn?(" "+bn.replace(Xe," ")+" ").indexOf(Vt)>-1:"|="===Wn&&(bn===Vt||bn.slice(0,Vt.length+1)===Vt+"-"))}},CHILD:function(xi,Wn,Vt,qt,bn){var ii="nth"!==xi.slice(0,3),Vi="last"!==xi.slice(-4),Jn="of-type"===Wn;return 1===qt&&0===bn?function(zt){return!!zt.parentNode}:function(zt,mn,Qn){var ci,Oi,Ai,Pn,qn,Ni=ii!==Vi?"nextSibling":"previousSibling",Ue=zt.parentNode,Ye=Jn&&zt.nodeName.toLowerCase(),Me=!Qn&&!Jn,pe=!1;if(Ue){if(ii){for(;Ni;){for(Ai=zt;Ai=Ai[Ni];)if(Jn?P(Ai,Ye):1===Ai.nodeType)return!1;qn=Ni="only"===xi&&!qn&&"nextSibling"}return!0}if(qn=[Vi?Ue.firstChild:Ue.lastChild],Vi&&Me){for(pe=(Pn=(ci=(Oi=Ue[gs]||(Ue[gs]={}))[xi]||[])[0]===Pr&&ci[1])&&ci[2],Ai=Pn&&Ue.childNodes[Pn];Ai=++Pn&&Ai&&Ai[Ni]||(pe=Pn=0)||qn.pop();)if(1===Ai.nodeType&&++pe&&Ai===zt){Oi[xi]=[Pr,Pn,pe];break}}else if(Me&&(pe=Pn=(ci=(Oi=zt[gs]||(zt[gs]={}))[xi]||[])[0]===Pr&&ci[1]),!1===pe)for(;(Ai=++Pn&&Ai&&Ai[Ni]||(pe=Pn=0)||qn.pop())&&(!(Jn?P(Ai,Ye):1===Ai.nodeType)||!++pe||(Me&&((Oi=Ai[gs]||(Ai[gs]={}))[xi]=[Pr,pe]),Ai!==zt)););return(pe-=bn)===qt||pe%qt==0&&pe/qt>=0}}},PSEUDO:function(xi,Wn){var Vt,qt=Tt.pseudos[xi]||Tt.setFilters[xi.toLowerCase()]||cn.error("unsupported pseudo: "+xi);return qt[gs]?qt(Wn):qt.length>1?(Vt=[xi,xi,"",Wn],Tt.setFilters.hasOwnProperty(xi.toLowerCase())?ft(function(bn,ii){for(var Vi,Jn=qt(bn,Wn),zt=Jn.length;zt--;)bn[Vi=A.call(bn,Jn[zt])]=!(ii[Vi]=Jn[zt])}):function(bn){return qt(bn,0,Vt)}):qt}},pseudos:{not:ft(function(xi){var Wn=[],Vt=[],qt=Fi(xi.replace(X,"$1"));return qt[gs]?ft(function(bn,ii,Vi,Jn){for(var zt,mn=qt(bn,null,Jn,[]),Qn=bn.length;Qn--;)(zt=mn[Qn])&&(bn[Qn]=!(ii[Qn]=zt))}):function(bn,ii,Vi){return Wn[0]=bn,qt(Wn,null,Vi,Vt),Wn[0]=null,!Vt.pop()}}),has:ft(function(xi){return function(Wn){return cn(xi,Wn).length>0}}),contains:ft(function(xi){return xi=xi.replace(Dn,kn),function(Wn){return(Wn.textContent||D.text(Wn)).indexOf(xi)>-1}}),lang:ft(function(xi){return Dt.test(xi||"")||cn.error("unsupported lang: "+xi),xi=xi.replace(Dn,kn).toLowerCase(),function(Wn){var Vt;do{if(Vt=yr?Wn.lang:Wn.getAttribute("xml:lang")||Wn.getAttribute("lang"))return(Vt=Vt.toLowerCase())===xi||0===Vt.indexOf(xi+"-")}while((Wn=Wn.parentNode)&&1===Wn.nodeType);return!1}}),target:function(xi){var Wn=n.location&&n.location.hash;return Wn&&Wn.slice(1)===xi.id},root:function(xi){return xi===sr},focus:function(xi){return xi===function en(){try{return co.activeElement}catch{}}()&&co.hasFocus()&&!!(xi.type||xi.href||~xi.tabIndex)},enabled:Je(!1),disabled:Je(!0),checked:function(xi){return P(xi,"input")&&!!xi.checked||P(xi,"option")&&!!xi.selected},selected:function(xi){return!0===xi.selected},empty:function(xi){for(xi=xi.firstChild;xi;xi=xi.nextSibling)if(xi.nodeType<6)return!1;return!0},parent:function(xi){return!Tt.pseudos.empty(xi)},header:function(xi){return Co.test(xi.nodeName)},input:function(xi){return Ui.test(xi.nodeName)},button:function(xi){return P(xi,"input")&&"button"===xi.type||P(xi,"button")},text:function(xi){var Wn;return P(xi,"input")&&"text"===xi.type&&(null==(Wn=xi.getAttribute("type"))||"text"===Wn.toLowerCase())},first:Ve(function(){return[0]}),last:Ve(function(xi,Wn){return[Wn-1]}),eq:Ve(function(xi,Wn,Vt){return[Vt<0?Vt+Wn:Vt]}),even:Ve(function(xi,Wn){for(var Vt=0;Vt<Wn;Vt+=2)xi.push(Vt);return xi}),odd:Ve(function(xi,Wn){for(var Vt=1;Vt<Wn;Vt+=2)xi.push(Vt);return xi}),lt:Ve(function(xi,Wn,Vt){var qt;for(qt=Vt<0?Vt+Wn:Vt>Wn?Wn:Vt;--qt>=0;)xi.push(qt);return xi}),gt:Ve(function(xi,Wn,Vt){for(var qt=Vt<0?Vt+Wn:Vt;++qt<Wn;)xi.push(qt);return xi})}}).pseudos.nth=Tt.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})Tt.pseudos[Jt]=an(Jt);for(Jt in{submit:!0,reset:!0})Tt.pseudos[Jt]=$e(Jt);function At(){}function Rt(xi,Wn){var Vt,qt,bn,ii,Vi,Jn,zt,mn=Va[xi+" "];if(mn)return Wn?0:mn.slice(0);for(Vi=xi,Jn=[],zt=Tt.preFilter;Vi;){for(ii in(!Vt||(qt=Ke.exec(Vi)))&&(qt&&(Vi=Vi.slice(qt[0].length)||Vi),Jn.push(bn=[])),Vt=!1,(qt=ze.exec(Vi))&&(Vt=qt.shift(),bn.push({value:Vt,type:qt[0].replace(X," ")}),Vi=Vi.slice(Vt.length)),Tt.filter)(qt=Hn[ii].exec(Vi))&&(!zt[ii]||(qt=zt[ii](qt)))&&(Vt=qt.shift(),bn.push({value:Vt,type:ii,matches:qt}),Vi=Vi.slice(Vt.length));if(!Vt)break}return Wn?Vi.length:Vi?cn.error(xi):Va(xi,Jn).slice(0)}function Pt(xi){for(var Wn=0,Vt=xi.length,qt="";Wn<Vt;Wn++)qt+=xi[Wn].value;return qt}function $t(xi,Wn,Vt){var qt=Wn.dir,bn=Wn.next,ii=bn||qt,Vi=Vt&&"parentNode"===ii,Jn=ys++;return Wn.first?function(zt,mn,Qn){for(;zt=zt[qt];)if(1===zt.nodeType||Vi)return xi(zt,mn,Qn);return!1}:function(zt,mn,Qn){var ci,Oi,Ai=[Pr,Jn];if(Qn){for(;zt=zt[qt];)if((1===zt.nodeType||Vi)&&xi(zt,mn,Qn))return!0}else for(;zt=zt[qt];)if(1===zt.nodeType||Vi)if(Oi=zt[gs]||(zt[gs]={}),bn&&P(zt,bn))zt=zt[qt]||zt;else{if((ci=Oi[ii])&&ci[0]===Pr&&ci[1]===Jn)return Ai[2]=ci[2];if(Oi[ii]=Ai,Ai[2]=xi(zt,mn,Qn))return!0}return!1}}function Xn(xi){return xi.length>1?function(Wn,Vt,qt){for(var bn=xi.length;bn--;)if(!xi[bn](Wn,Vt,qt))return!1;return!0}:xi[0]}function Ae(xi,Wn,Vt,qt,bn){for(var ii,Vi=[],Jn=0,zt=xi.length,mn=null!=Wn;Jn<zt;Jn++)(ii=xi[Jn])&&(!Vt||Vt(ii,qt,bn))&&(Vi.push(ii),mn&&Wn.push(Jn));return Vi}function He(xi,Wn,Vt,qt,bn,ii){return qt&&!qt[gs]&&(qt=He(qt)),bn&&!bn[gs]&&(bn=He(bn,ii)),ft(function(Vi,Jn,zt,mn){var Qn,ci,Oi,Ai,Pn=[],qn=[],Ni=Jn.length,Ue=Vi||function Nn(xi,Wn,Vt){for(var qt=0,bn=Wn.length;qt<bn;qt++)cn(xi,Wn[qt],Vt);return Vt}(Wn||"*",zt.nodeType?[zt]:zt,[]),Ye=!xi||!Vi&&Wn?Ue:Ae(Ue,Pn,xi,zt,mn);if(Vt?Vt(Ye,Ai=bn||(Vi?xi:Ni||qt)?[]:Jn,zt,mn):Ai=Ye,qt)for(Qn=Ae(Ai,qn),qt(Qn,[],zt,mn),ci=Qn.length;ci--;)(Oi=Qn[ci])&&(Ai[qn[ci]]=!(Ye[qn[ci]]=Oi));if(Vi){if(bn||xi){if(bn){for(Qn=[],ci=Ai.length;ci--;)(Oi=Ai[ci])&&Qn.push(Ye[ci]=Oi);bn(null,Ai=[],Qn,mn)}for(ci=Ai.length;ci--;)(Oi=Ai[ci])&&(Qn=bn?A.call(Vi,Oi):Pn[ci])>-1&&(Vi[Qn]=!(Jn[Qn]=Oi))}}else Ai=Ae(Ai===Jn?Ai.splice(Ni,Ai.length):Ai),bn?bn(null,Jn,Ai,mn):Yi.apply(Jn,Ai)})}function Kt(xi){for(var Wn,Vt,qt,bn=xi.length,ii=Tt.relative[xi[0].type],Vi=ii||Tt.relative[" "],Jn=ii?1:0,zt=$t(function(ci){return ci===Wn},Vi,!0),mn=$t(function(ci){return A.call(Wn,ci)>-1},Vi,!0),Qn=[function(ci,Oi,Ai){var Pn=!ii&&(Ai||Oi!=ht)||((Wn=Oi).nodeType?zt(ci,Oi,Ai):mn(ci,Oi,Ai));return Wn=null,Pn}];Jn<bn;Jn++)if(Vt=Tt.relative[xi[Jn].type])Qn=[$t(Xn(Qn),Vt)];else{if((Vt=Tt.filter[xi[Jn].type].apply(null,xi[Jn].matches))[gs]){for(qt=++Jn;qt<bn&&!Tt.relative[xi[qt].type];qt++);return He(Jn>1&&Xn(Qn),Jn>1&&Pt(xi.slice(0,Jn-1).concat({value:" "===xi[Jn-2].type?"*":""})).replace(X,"$1"),Vt,Jn<qt&&Kt(xi.slice(Jn,qt)),qt<bn&&Kt(xi=xi.slice(qt)),qt<bn&&Pt(xi))}Qn.push(Vt)}return Xn(Qn)}function Fi(xi,Wn){var Vt,qt=[],bn=[],ii=ga[xi+" "];if(!ii){for(Wn||(Wn=Rt(xi)),Vt=Wn.length;Vt--;)(ii=Kt(Wn[Vt]))[gs]?qt.push(ii):bn.push(ii);ii=ga(xi,function On(xi,Wn){var Vt=Wn.length>0,qt=xi.length>0,bn=function(ii,Vi,Jn,zt,mn){var Qn,ci,Oi,Ai=0,Pn="0",qn=ii&&[],Ni=[],Ue=ht,Ye=ii||qt&&Tt.find.TAG("*",mn),Me=Pr+=null==Ue?1:Math.random()||.1,pe=Ye.length;for(mn&&(ht=Vi==co||Vi||mn);Pn!==pe&&null!=(Qn=Ye[Pn]);Pn++){if(qt&&Qn){for(ci=0,!Vi&&Qn.ownerDocument!=co&&(Be(Qn),Jn=!yr);Oi=xi[ci++];)if(Oi(Qn,Vi||co,Jn)){Yi.call(zt,Qn);break}mn&&(Pr=Me)}Vt&&((Qn=!Oi&&Qn)&&Ai--,ii&&qn.push(Qn))}if(Ai+=Pn,Vt&&Pn!==Ai){for(ci=0;Oi=Wn[ci++];)Oi(qn,Ni,Vi,Jn);if(ii){if(Ai>0)for(;Pn--;)qn[Pn]||Ni[Pn]||(Ni[Pn]=O.call(zt));Ni=Ae(Ni)}Yi.apply(zt,Ni),mn&&!ii&&Ni.length>0&&Ai+Wn.length>1&&D.uniqueSort(zt)}return mn&&(Pr=Me,ht=Ue),qn};return Vt?ft(bn):bn}(bn,qt)),ii.selector=xi}return ii}function Ci(xi,Wn,Vt,qt){var bn,ii,Vi,Jn,zt,mn="function"==typeof xi&&xi,Qn=!qt&&Rt(xi=mn.selector||xi);if(Vt=Vt||[],1===Qn.length){if((ii=Qn[0]=Qn[0].slice(0)).length>2&&"ID"===(Vi=ii[0]).type&&9===Wn.nodeType&&yr&&Tt.relative[ii[1].type]){if(!(Wn=(Tt.find.ID(Vi.matches[0].replace(Dn,kn),Wn)||[])[0]))return Vt;mn&&(Wn=Wn.parentNode),xi=xi.slice(ii.shift().value.length)}for(bn=Hn.needsContext.test(xi)?0:ii.length;bn--&&!Tt.relative[Jn=(Vi=ii[bn]).type];)if((zt=Tt.find[Jn])&&(qt=zt(Vi.matches[0].replace(Dn,kn),Vn.test(ii[0].type)&&Ge(Wn.parentNode)||Wn))){if(ii.splice(bn,1),!(xi=qt.length&&Pt(ii)))return Yi.apply(Vt,qt),Vt;break}}return(mn||Fi(xi,Qn))(qt,Wn,!yr,Vt,!Wn||Vn.test(xi)&&Ge(Wn.parentNode)||Wn),Vt}At.prototype=Tt.filters=Tt.pseudos,Tt.setFilters=new At,k.sortStable=gs.split("").sort(ur).join("")===gs,Be(),k.sortDetached=Nt(function(xi){return 1&xi.compareDocumentPosition(co.createElement("fieldset"))}),D.find=cn,D.expr[":"]=D.expr.pseudos,D.unique=D.uniqueSort,cn.compile=Fi,cn.select=Ci,cn.setDocument=Be,cn.tokenize=Rt,cn.escape=D.escapeSelector,cn.getText=D.text,cn.isXML=D.isXMLDoc,cn.selectors=D.expr,cn.support=D.support,cn.uniqueSort=D.uniqueSort}();var de=function(Jt,Tt,ht){for(var yn=[],vi=void 0!==ht;(Jt=Jt[Tt])&&9!==Jt.nodeType;)if(1===Jt.nodeType){if(vi&&D(Jt).is(ht))break;yn.push(Jt)}return yn},te=function(Jt,Tt){for(var ht=[];Jt;Jt=Jt.nextSibling)1===Jt.nodeType&&Jt!==Tt&&ht.push(Jt);return ht},j=D.expr.match.needsContext,H=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function z(Jt,Tt,ht){return w(Tt)?D.grep(Jt,function(yn,vi){return!!Tt.call(yn,vi,yn)!==ht}):Tt.nodeType?D.grep(Jt,function(yn){return yn===Tt!==ht}):"string"!=typeof Tt?D.grep(Jt,function(yn){return A.call(Tt,yn)>-1!==ht}):D.filter(Tt,Jt,ht)}D.filter=function(Jt,Tt,ht){var yn=Tt[0];return ht&&(Jt=":not("+Jt+")"),1===Tt.length&&1===yn.nodeType?D.find.matchesSelector(yn,Jt)?[yn]:[]:D.find.matches(Jt,D.grep(Tt,function(vi){return 1===vi.nodeType}))},D.fn.extend({find:function(Jt){var Tt,ht,yn=this.length,vi=this;if("string"!=typeof Jt)return this.pushStack(D(Jt).filter(function(){for(Tt=0;Tt<yn;Tt++)if(D.contains(vi[Tt],this))return!0}));for(ht=this.pushStack([]),Tt=0;Tt<yn;Tt++)D.find(Jt,vi[Tt],ht);return yn>1?D.uniqueSort(ht):ht},filter:function(Jt){return this.pushStack(z(this,Jt||[],!1))},not:function(Jt){return this.pushStack(z(this,Jt||[],!0))},is:function(Jt){return!!z(this,"string"==typeof Jt&&j.test(Jt)?D(Jt):Jt||[],!1).length}});var q,se=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ne=D.fn.init=function(Jt,Tt,ht){var yn,vi;if(!Jt)return this;if(ht=ht||q,"string"==typeof Jt){if(!(yn="<"===Jt[0]&&">"===Jt[Jt.length-1]&&Jt.length>=3?[null,Jt,null]:se.exec(Jt))||!yn[1]&&Tt)return!Tt||Tt.jquery?(Tt||ht).find(Jt):this.constructor(Tt).find(Jt);if(yn[1]){if(D.merge(this,D.parseHTML(yn[1],(Tt=Tt instanceof D?Tt[0]:Tt)&&Tt.nodeType?Tt.ownerDocument||Tt:M,!0)),H.test(yn[1])&&D.isPlainObject(Tt))for(yn in Tt)w(this[yn])?this[yn](Tt[yn]):this.attr(yn,Tt[yn]);return this}return(vi=M.getElementById(yn[2]))&&(this[0]=vi,this.length=1),this}return Jt.nodeType?(this[0]=Jt,this.length=1,this):w(Jt)?void 0!==ht.ready?ht.ready(Jt):Jt(D):D.makeArray(Jt,this)};ne.prototype=D.fn,q=D(M);var _e=/^(?:parents|prev(?:Until|All))/,ge={children:!0,contents:!0,next:!0,prev:!0};function Ce(Jt,Tt){for(;(Jt=Jt[Tt])&&1!==Jt.nodeType;);return Jt}D.fn.extend({has:function(Jt){var Tt=D(Jt,this),ht=Tt.length;return this.filter(function(){for(var yn=0;yn<ht;yn++)if(D.contains(this,Tt[yn]))return!0})},closest:function(Jt,Tt){var ht,yn=0,vi=this.length,Yi=[],co="string"!=typeof Jt&&D(Jt);if(!j.test(Jt))for(;yn<vi;yn++)for(ht=this[yn];ht&&ht!==Tt;ht=ht.parentNode)if(ht.nodeType<11&&(co?co.index(ht)>-1:1===ht.nodeType&&D.find.matchesSelector(ht,Jt))){Yi.push(ht);break}return this.pushStack(Yi.length>1?D.uniqueSort(Yi):Yi)},index:function(Jt){return Jt?"string"==typeof Jt?A.call(D(Jt),this[0]):A.call(this,Jt.jquery?Jt[0]:Jt):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(Jt,Tt){return this.pushStack(D.uniqueSort(D.merge(this.get(),D(Jt,Tt))))},addBack:function(Jt){return this.add(null==Jt?this.prevObject:this.prevObject.filter(Jt))}}),D.each({parent:function(Jt){var Tt=Jt.parentNode;return Tt&&11!==Tt.nodeType?Tt:null},parents:function(Jt){return de(Jt,"parentNode")},parentsUntil:function(Jt,Tt,ht){return de(Jt,"parentNode",ht)},next:function(Jt){return Ce(Jt,"nextSibling")},prev:function(Jt){return Ce(Jt,"previousSibling")},nextAll:function(Jt){return de(Jt,"nextSibling")},prevAll:function(Jt){return de(Jt,"previousSibling")},nextUntil:function(Jt,Tt,ht){return de(Jt,"nextSibling",ht)},prevUntil:function(Jt,Tt,ht){return de(Jt,"previousSibling",ht)},siblings:function(Jt){return te((Jt.parentNode||{}).firstChild,Jt)},children:function(Jt){return te(Jt.firstChild)},contents:function(Jt){return null!=Jt.contentDocument&&l(Jt.contentDocument)?Jt.contentDocument:(P(Jt,"template")&&(Jt=Jt.content||Jt),D.merge([],Jt.childNodes))}},function(Jt,Tt){D.fn[Jt]=function(ht,yn){var vi=D.map(this,Tt,ht);return"Until"!==Jt.slice(-5)&&(yn=ht),yn&&"string"==typeof yn&&(vi=D.filter(yn,vi)),this.length>1&&(ge[Jt]||D.uniqueSort(vi),_e.test(Jt)&&vi.reverse()),this.pushStack(vi)}});var Te=/[^\x20\t\r\n\f]+/g;function fe(Jt){return Jt}function xe(Jt){throw Jt}function Oe(Jt,Tt,ht,yn){var vi;try{Jt&&w(vi=Jt.promise)?vi.call(Jt).done(Tt).fail(ht):Jt&&w(vi=Jt.then)?vi.call(Jt,Tt,ht):Tt.apply(void 0,[Jt].slice(yn))}catch(Yi){ht.apply(void 0,[Yi])}}D.Callbacks=function(Jt){Jt="string"==typeof Jt?function De(Jt){var Tt={};return D.each(Jt.match(Te)||[],function(ht,yn){Tt[yn]=!0}),Tt}(Jt):D.extend({},Jt);var Tt,ht,yn,vi,Yi=[],co=[],sr=-1,yr=function(){for(vi=vi||Jt.once,yn=Tt=!0;co.length;sr=-1)for(ht=co.shift();++sr<Yi.length;)!1===Yi[sr].apply(ht[0],ht[1])&&Jt.stopOnFalse&&(sr=Yi.length,ht=!1);Jt.memory||(ht=!1),Tt=!1,vi&&(Yi=ht?[]:"")},Ur={add:function(){return Yi&&(ht&&!Tt&&(sr=Yi.length-1,co.push(ht)),function ss(gs){D.each(gs,function(Pr,ys){w(ys)?(!Jt.unique||!Ur.has(ys))&&Yi.push(ys):ys&&ys.length&&"string"!==b(ys)&&ss(ys)})}(arguments),ht&&!Tt&&yr()),this},remove:function(){return D.each(arguments,function(ss,gs){for(var Pr;(Pr=D.inArray(gs,Yi,Pr))>-1;)Yi.splice(Pr,1),Pr<=sr&&sr--}),this},has:function(ss){return ss?D.inArray(ss,Yi)>-1:Yi.length>0},empty:function(){return Yi&&(Yi=[]),this},disable:function(){return vi=co=[],Yi=ht="",this},disabled:function(){return!Yi},lock:function(){return vi=co=[],!ht&&!Tt&&(Yi=ht=""),this},locked:function(){return!!vi},fireWith:function(ss,gs){return vi||(gs=[ss,(gs=gs||[]).slice?gs.slice():gs],co.push(gs),Tt||yr()),this},fire:function(){return Ur.fireWith(this,arguments),this},fired:function(){return!!yn}};return Ur},D.extend({Deferred:function(Jt){var Tt=[["notify","progress",D.Callbacks("memory"),D.Callbacks("memory"),2],["resolve","done",D.Callbacks("once memory"),D.Callbacks("once memory"),0,"resolved"],["reject","fail",D.Callbacks("once memory"),D.Callbacks("once memory"),1,"rejected"]],ht="pending",yn={state:function(){return ht},always:function(){return vi.done(arguments).fail(arguments),this},catch:function(Yi){return yn.then(null,Yi)},pipe:function(){var Yi=arguments;return D.Deferred(function(co){D.each(Tt,function(sr,yr){var Ur=w(Yi[yr[4]])&&Yi[yr[4]];vi[yr[1]](function(){var ss=Ur&&Ur.apply(this,arguments);ss&&w(ss.promise)?ss.promise().progress(co.notify).done(co.resolve).fail(co.reject):co[yr[0]+"With"](this,Ur?[ss]:arguments)})}),Yi=null}).promise()},then:function(Yi,co,sr){var yr=0;function Ur(ss,gs,Pr,ys){return function(){var da=this,Va=arguments,ga=function(){var ur,La;if(!(ss<yr)){if((ur=Pr.apply(da,Va))===gs.promise())throw new TypeError("Thenable self-resolution");w(La=ur&&("object"==typeof ur||"function"==typeof ur)&&ur.then)?ys?La.call(ur,Ur(yr,gs,fe,ys),Ur(yr,gs,xe,ys)):(yr++,La.call(ur,Ur(yr,gs,fe,ys),Ur(yr,gs,xe,ys),Ur(yr,gs,fe,gs.notifyWith))):(Pr!==fe&&(da=void 0,Va=[ur]),(ys||gs.resolveWith)(da,Va))}},al=ys?ga:function(){try{ga()}catch(ur){D.Deferred.exceptionHook&&D.Deferred.exceptionHook(ur,al.error),ss+1>=yr&&(Pr!==xe&&(da=void 0,Va=[ur]),gs.rejectWith(da,Va))}};ss?al():(D.Deferred.getErrorHook?al.error=D.Deferred.getErrorHook():D.Deferred.getStackHook&&(al.error=D.Deferred.getStackHook()),n.setTimeout(al))}}return D.Deferred(function(ss){Tt[0][3].add(Ur(0,ss,w(sr)?sr:fe,ss.notifyWith)),Tt[1][3].add(Ur(0,ss,w(Yi)?Yi:fe)),Tt[2][3].add(Ur(0,ss,w(co)?co:xe))}).promise()},promise:function(Yi){return null!=Yi?D.extend(Yi,yn):yn}},vi={};return D.each(Tt,function(Yi,co){var sr=co[2],yr=co[5];yn[co[1]]=sr.add,yr&&sr.add(function(){ht=yr},Tt[3-Yi][2].disable,Tt[3-Yi][3].disable,Tt[0][2].lock,Tt[0][3].lock),sr.add(co[3].fire),vi[co[0]]=function(){return vi[co[0]+"With"](this===vi?void 0:this,arguments),this},vi[co[0]+"With"]=sr.fireWith}),yn.promise(vi),Jt&&Jt.call(vi,vi),vi},when:function(Jt){var Tt=arguments.length,ht=Tt,yn=Array(ht),vi=u.call(arguments),Yi=D.Deferred(),co=function(sr){return function(yr){yn[sr]=this,vi[sr]=arguments.length>1?u.call(arguments):yr,--Tt||Yi.resolveWith(yn,vi)}};if(Tt<=1&&(Oe(Jt,Yi.done(co(ht)).resolve,Yi.reject,!Tt),"pending"===Yi.state()||w(vi[ht]&&vi[ht].then)))return Yi.then();for(;ht--;)Oe(vi[ht],co(ht),Yi.reject);return Yi.promise()}});var Le=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;D.Deferred.exceptionHook=function(Jt,Tt){n.console&&n.console.warn&&Jt&&Le.test(Jt.name)&&n.console.warn("jQuery.Deferred exception: "+Jt.message,Jt.stack,Tt)},D.readyException=function(Jt){n.setTimeout(function(){throw Jt})};var Gt=D.Deferred();function Ut(){M.removeEventListener("DOMContentLoaded",Ut),n.removeEventListener("load",Ut),D.ready()}D.fn.ready=function(Jt){return Gt.then(Jt).catch(function(Tt){D.readyException(Tt)}),this},D.extend({isReady:!1,readyWait:1,ready:function(Jt){(!0===Jt?--D.readyWait:D.isReady)||(D.isReady=!0,!(!0!==Jt&&--D.readyWait>0)&&Gt.resolveWith(M,[D]))}}),D.ready.then=Gt.then,"complete"===M.readyState||"loading"!==M.readyState&&!M.documentElement.doScroll?n.setTimeout(D.ready):(M.addEventListener("DOMContentLoaded",Ut),n.addEventListener("load",Ut));var An=function(Jt,Tt,ht,yn,vi,Yi,co){var sr=0,yr=Jt.length,Ur=null==ht;if("object"===b(ht))for(sr in vi=!0,ht)An(Jt,Tt,sr,ht[sr],!0,Yi,co);else if(void 0!==yn&&(vi=!0,w(yn)||(co=!0),Ur&&(co?(Tt.call(Jt,yn),Tt=null):(Ur=Tt,Tt=function(ss,gs,Pr){return Ur.call(D(ss),Pr)})),Tt))for(;sr<yr;sr++)Tt(Jt[sr],ht,co?yn:yn.call(Jt[sr],sr,Tt(Jt[sr],ht)));return vi?Jt:Ur?Tt.call(Jt):yr?Tt(Jt[0],ht):Yi},$n=/^-ms-/,xn=/-([a-z])/g;function mt(Jt,Tt){return Tt.toUpperCase()}function ut(Jt){return Jt.replace($n,"ms-").replace(xn,mt)}var Wt=function(Jt){return 1===Jt.nodeType||9===Jt.nodeType||!+Jt.nodeType};function dn(){this.expando=D.expando+dn.uid++}dn.uid=1,dn.prototype={cache:function(Jt){var Tt=Jt[this.expando];return Tt||(Tt={},Wt(Jt)&&(Jt.nodeType?Jt[this.expando]=Tt:Object.defineProperty(Jt,this.expando,{value:Tt,configurable:!0}))),Tt},set:function(Jt,Tt,ht){var yn,vi=this.cache(Jt);if("string"==typeof Tt)vi[ut(Tt)]=ht;else for(yn in Tt)vi[ut(yn)]=Tt[yn];return vi},get:function(Jt,Tt){return void 0===Tt?this.cache(Jt):Jt[this.expando]&&Jt[this.expando][ut(Tt)]},access:function(Jt,Tt,ht){return void 0===Tt||Tt&&"string"==typeof Tt&&void 0===ht?this.get(Jt,Tt):(this.set(Jt,Tt,ht),void 0!==ht?ht:Tt)},remove:function(Jt,Tt){var ht,yn=Jt[this.expando];if(void 0!==yn){if(void 0!==Tt)for((ht=(Tt=Array.isArray(Tt)?Tt.map(ut):(Tt=ut(Tt))in yn?[Tt]:Tt.match(Te)||[]).length);ht--;)delete yn[Tt[ht]];(void 0===Tt||D.isEmptyObject(yn))&&(Jt.nodeType?Jt[this.expando]=void 0:delete Jt[this.expando])}},hasData:function(Jt){var Tt=Jt[this.expando];return void 0!==Tt&&!D.isEmptyObject(Tt)}};var sn=new dn,fn=new dn,yi=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,nn=/[A-Z]/g;function mi(Jt,Tt,ht){var yn;if(void 0===ht&&1===Jt.nodeType)if(yn="data-"+Tt.replace(nn,"-$&").toLowerCase(),"string"==typeof(ht=Jt.getAttribute(yn))){try{ht=function Mi(Jt){return"true"===Jt||"false"!==Jt&&("null"===Jt?null:Jt===+Jt+""?+Jt:yi.test(Jt)?JSON.parse(Jt):Jt)}(ht)}catch{}fn.set(Jt,Tt,ht)}else ht=void 0;return ht}D.extend({hasData:function(Jt){return fn.hasData(Jt)||sn.hasData(Jt)},data:function(Jt,Tt,ht){return fn.access(Jt,Tt,ht)},removeData:function(Jt,Tt){fn.remove(Jt,Tt)},_data:function(Jt,Tt,ht){return sn.access(Jt,Tt,ht)},_removeData:function(Jt,Tt){sn.remove(Jt,Tt)}}),D.fn.extend({data:function(Jt,Tt){var ht,yn,vi,Yi=this[0],co=Yi&&Yi.attributes;if(void 0===Jt){if(this.length&&(vi=fn.get(Yi),1===Yi.nodeType&&!sn.get(Yi,"hasDataAttrs"))){for(ht=co.length;ht--;)co[ht]&&0===(yn=co[ht].name).indexOf("data-")&&(yn=ut(yn.slice(5)),mi(Yi,yn,vi[yn]));sn.set(Yi,"hasDataAttrs",!0)}return vi}return"object"==typeof Jt?this.each(function(){fn.set(this,Jt)}):An(this,function(sr){var yr;if(Yi&&void 0===sr)return void 0!==(yr=fn.get(Yi,Jt))||void 0!==(yr=mi(Yi,Jt))?yr:void 0;this.each(function(){fn.set(this,Jt,sr)})},null,Tt,arguments.length>1,null,!0)},removeData:function(Jt){return this.each(function(){fn.remove(this,Jt)})}}),D.extend({queue:function(Jt,Tt,ht){var yn;if(Jt)return yn=sn.get(Jt,Tt=(Tt||"fx")+"queue"),ht&&(!yn||Array.isArray(ht)?yn=sn.access(Jt,Tt,D.makeArray(ht)):yn.push(ht)),yn||[]},dequeue:function(Jt,Tt){var ht=D.queue(Jt,Tt=Tt||"fx"),yn=ht.length,vi=ht.shift(),Yi=D._queueHooks(Jt,Tt);"inprogress"===vi&&(vi=ht.shift(),yn--),vi&&("fx"===Tt&&ht.unshift("inprogress"),delete Yi.stop,vi.call(Jt,function(){D.dequeue(Jt,Tt)},Yi)),!yn&&Yi&&Yi.empty.fire()},_queueHooks:function(Jt,Tt){var ht=Tt+"queueHooks";return sn.get(Jt,ht)||sn.access(Jt,ht,{empty:D.Callbacks("once memory").add(function(){sn.remove(Jt,[Tt+"queue",ht])})})}}),D.fn.extend({queue:function(Jt,Tt){var ht=2;return"string"!=typeof Jt&&(Tt=Jt,Jt="fx",ht--),arguments.length<ht?D.queue(this[0],Jt):void 0===Tt?this:this.each(function(){var yn=D.queue(this,Jt,Tt);D._queueHooks(this,Jt),"fx"===Jt&&"inprogress"!==yn[0]&&D.dequeue(this,Jt)})},dequeue:function(Jt){return this.each(function(){D.dequeue(this,Jt)})},clearQueue:function(Jt){return this.queue(Jt||"fx",[])},promise:function(Jt,Tt){var ht,yn=1,vi=D.Deferred(),Yi=this,co=this.length,sr=function(){--yn||vi.resolveWith(Yi,[Yi])};for("string"!=typeof Jt&&(Tt=Jt,Jt=void 0),Jt=Jt||"fx";co--;)(ht=sn.get(Yi[co],Jt+"queueHooks"))&&ht.empty&&(yn++,ht.empty.add(sr));return sr(),vi.promise(Tt)}});var Eo=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ko=new RegExp("^(?:([+-])=|)("+Eo+")([a-z%]*)$","i"),xo=["Top","Right","Bottom","Left"],Bn=M.documentElement,Xt=function(Jt){return D.contains(Jt.ownerDocument,Jt)},Ji={composed:!0};Bn.getRootNode&&(Xt=function(Jt){return D.contains(Jt.ownerDocument,Jt)||Jt.getRootNode(Ji)===Jt.ownerDocument});var En=function(Jt,Tt){return"none"===(Jt=Tt||Jt).style.display||""===Jt.style.display&&Xt(Jt)&&"none"===D.css(Jt,"display")};function un(Jt,Tt,ht,yn){var vi,Yi,co=20,sr=yn?function(){return yn.cur()}:function(){return D.css(Jt,Tt,"")},yr=sr(),Ur=ht&&ht[3]||(D.cssNumber[Tt]?"":"px"),ss=Jt.nodeType&&(D.cssNumber[Tt]||"px"!==Ur&&+yr)&&Ko.exec(D.css(Jt,Tt));if(ss&&ss[3]!==Ur){for(Ur=Ur||ss[3],ss=+(yr/=2)||1;co--;)D.style(Jt,Tt,ss+Ur),(1-Yi)*(1-(Yi=sr()/yr||.5))<=0&&(co=0),ss/=Yi;D.style(Jt,Tt,(ss*=2)+Ur),ht=ht||[]}return ht&&(ss=+ss||+yr||0,vi=ht[1]?ss+(ht[1]+1)*ht[2]:+ht[2],yn&&(yn.unit=Ur,yn.start=ss,yn.end=vi)),vi}var Ki={};function Fn(Jt){var Tt,ht=Jt.ownerDocument,yn=Jt.nodeName,vi=Ki[yn];return vi||(Tt=ht.body.appendChild(ht.createElement(yn)),vi=D.css(Tt,"display"),Tt.parentNode.removeChild(Tt),"none"===vi&&(vi="block"),Ki[yn]=vi,vi)}function oi(Jt,Tt){for(var ht,yn,vi=[],Yi=0,co=Jt.length;Yi<co;Yi++)(yn=Jt[Yi]).style&&(ht=yn.style.display,Tt?("none"===ht&&(vi[Yi]=sn.get(yn,"display")||null,vi[Yi]||(yn.style.display="")),""===yn.style.display&&En(yn)&&(vi[Yi]=Fn(yn))):"none"!==ht&&(vi[Yi]="none",sn.set(yn,"display",ht)));for(Yi=0;Yi<co;Yi++)null!=vi[Yi]&&(Jt[Yi].style.display=vi[Yi]);return Jt}D.fn.extend({show:function(){return oi(this,!0)},hide:function(){return oi(this)},toggle:function(Jt){return"boolean"==typeof Jt?Jt?this.show():this.hide():this.each(function(){En(this)?D(this).show():D(this).hide()})}});var Tt,ht,It=/^(?:checkbox|radio)$/i,Bt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,xt=/^$|^module$|\/(?:java|ecma)script/i;Tt=M.createDocumentFragment().appendChild(M.createElement("div")),(ht=M.createElement("input")).setAttribute("type","radio"),ht.setAttribute("checked","checked"),ht.setAttribute("name","t"),Tt.appendChild(ht),k.checkClone=Tt.cloneNode(!0).cloneNode(!0).lastChild.checked,Tt.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!Tt.cloneNode(!0).lastChild.defaultValue,Tt.innerHTML="<option></option>",k.option=!!Tt.lastChild;var wt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Mt(Jt,Tt){var ht;return ht=typeof Jt.getElementsByTagName<"u"?Jt.getElementsByTagName(Tt||"*"):typeof Jt.querySelectorAll<"u"?Jt.querySelectorAll(Tt||"*"):[],void 0===Tt||Tt&&P(Jt,Tt)?D.merge([Jt],ht):ht}function pt(Jt,Tt){for(var ht=0,yn=Jt.length;ht<yn;ht++)sn.set(Jt[ht],"globalEval",!Tt||sn.get(Tt[ht],"globalEval"))}wt.tbody=wt.tfoot=wt.colgroup=wt.caption=wt.thead,wt.th=wt.td,k.option||(wt.optgroup=wt.option=[1,"<select multiple='multiple'>","</select>"]);var Lt=/<|&#?\w+;/;function tt(Jt,Tt,ht,yn,vi){for(var Yi,co,sr,yr,Ur,ss,gs=Tt.createDocumentFragment(),Pr=[],ys=0,da=Jt.length;ys<da;ys++)if((Yi=Jt[ys])||0===Yi)if("object"===b(Yi))D.merge(Pr,Yi.nodeType?[Yi]:Yi);else if(Lt.test(Yi)){for(co=co||gs.appendChild(Tt.createElement("div")),sr=(Bt.exec(Yi)||["",""])[1].toLowerCase(),co.innerHTML=(yr=wt[sr]||wt._default)[1]+D.htmlPrefilter(Yi)+yr[2],ss=yr[0];ss--;)co=co.lastChild;D.merge(Pr,co.childNodes),(co=gs.firstChild).textContent=""}else Pr.push(Tt.createTextNode(Yi));for(gs.textContent="",ys=0;Yi=Pr[ys++];)if(yn&&D.inArray(Yi,yn)>-1)vi&&vi.push(Yi);else if(Ur=Xt(Yi),co=Mt(gs.appendChild(Yi),"script"),Ur&&pt(co),ht)for(ss=0;Yi=co[ss++];)xt.test(Yi.type||"")&&ht.push(Yi);return gs}var Ne=/^([^.]*)(?:\.(.+)|)/;function vt(){return!0}function ln(){return!1}function jn(Jt,Tt,ht,yn,vi,Yi){var co,sr;if("object"==typeof Tt){for(sr in"string"!=typeof ht&&(yn=yn||ht,ht=void 0),Tt)jn(Jt,sr,ht,yn,Tt[sr],Yi);return Jt}if(null==yn&&null==vi?(vi=ht,yn=ht=void 0):null==vi&&("string"==typeof ht?(vi=yn,yn=void 0):(vi=yn,yn=ht,ht=void 0)),!1===vi)vi=ln;else if(!vi)return Jt;return 1===Yi&&(co=vi,vi=function(yr){return D().off(yr),co.apply(this,arguments)},vi.guid=co.guid||(co.guid=D.guid++)),Jt.each(function(){D.event.add(this,Tt,vi,yn,ht)})}function Pi(Jt,Tt,ht){ht?(sn.set(Jt,Tt,!1),D.event.add(Jt,Tt,{namespace:!1,handler:function(yn){var vi,Yi=sn.get(this,Tt);if(1&yn.isTrigger&&this[Tt]){if(Yi)(D.event.special[Tt]||{}).delegateType&&yn.stopPropagation();else if(Yi=u.call(arguments),sn.set(this,Tt,Yi),this[Tt](),vi=sn.get(this,Tt),sn.set(this,Tt,!1),Yi!==vi)return yn.stopImmediatePropagation(),yn.preventDefault(),vi}else Yi&&(sn.set(this,Tt,D.event.trigger(Yi[0],Yi.slice(1),this)),yn.stopPropagation(),yn.isImmediatePropagationStopped=vt)}})):void 0===sn.get(Jt,Tt)&&D.event.add(Jt,Tt,vt)}D.event={global:{},add:function(Jt,Tt,ht,yn,vi){var Yi,co,sr,yr,Ur,ss,gs,Pr,ys,da,Va,ga=sn.get(Jt);if(Wt(Jt))for(ht.handler&&(ht=(Yi=ht).handler,vi=Yi.selector),vi&&D.find.matchesSelector(Bn,vi),ht.guid||(ht.guid=D.guid++),(yr=ga.events)||(yr=ga.events=Object.create(null)),(co=ga.handle)||(co=ga.handle=function(al){return typeof D<"u"&&D.event.triggered!==al.type?D.event.dispatch.apply(Jt,arguments):void 0}),Ur=(Tt=(Tt||"").match(Te)||[""]).length;Ur--;)ys=Va=(sr=Ne.exec(Tt[Ur])||[])[1],da=(sr[2]||"").split(".").sort(),ys&&(gs=D.event.special[ys]||{},gs=D.event.special[ys=(vi?gs.delegateType:gs.bindType)||ys]||{},ss=D.extend({type:ys,origType:Va,data:yn,handler:ht,guid:ht.guid,selector:vi,needsContext:vi&&D.expr.match.needsContext.test(vi),namespace:da.join(".")},Yi),(Pr=yr[ys])||((Pr=yr[ys]=[]).delegateCount=0,(!gs.setup||!1===gs.setup.call(Jt,yn,da,co))&&Jt.addEventListener&&Jt.addEventListener(ys,co)),gs.add&&(gs.add.call(Jt,ss),ss.handler.guid||(ss.handler.guid=ht.guid)),vi?Pr.splice(Pr.delegateCount++,0,ss):Pr.push(ss),D.event.global[ys]=!0)},remove:function(Jt,Tt,ht,yn,vi){var Yi,co,sr,yr,Ur,ss,gs,Pr,ys,da,Va,ga=sn.hasData(Jt)&&sn.get(Jt);if(ga&&(yr=ga.events)){for(Ur=(Tt=(Tt||"").match(Te)||[""]).length;Ur--;)if(ys=Va=(sr=Ne.exec(Tt[Ur])||[])[1],da=(sr[2]||"").split(".").sort(),ys){for(gs=D.event.special[ys]||{},Pr=yr[ys=(yn?gs.delegateType:gs.bindType)||ys]||[],sr=sr[2]&&new RegExp("(^|\\.)"+da.join("\\.(?:.*\\.|)")+"(\\.|$)"),co=Yi=Pr.length;Yi--;)ss=Pr[Yi],(vi||Va===ss.origType)&&(!ht||ht.guid===ss.guid)&&(!sr||sr.test(ss.namespace))&&(!yn||yn===ss.selector||"**"===yn&&ss.selector)&&(Pr.splice(Yi,1),ss.selector&&Pr.delegateCount--,gs.remove&&gs.remove.call(Jt,ss));co&&!Pr.length&&((!gs.teardown||!1===gs.teardown.call(Jt,da,ga.handle))&&D.removeEvent(Jt,ys,ga.handle),delete yr[ys])}else for(ys in yr)D.event.remove(Jt,ys+Tt[Ur],ht,yn,!0);D.isEmptyObject(yr)&&sn.remove(Jt,"handle events")}},dispatch:function(Jt){var Tt,ht,yn,vi,Yi,co,sr=new Array(arguments.length),yr=D.event.fix(Jt),Ur=(sn.get(this,"events")||Object.create(null))[yr.type]||[],ss=D.event.special[yr.type]||{};for(sr[0]=yr,Tt=1;Tt<arguments.length;Tt++)sr[Tt]=arguments[Tt];if(yr.delegateTarget=this,!ss.preDispatch||!1!==ss.preDispatch.call(this,yr)){for(co=D.event.handlers.call(this,yr,Ur),Tt=0;(vi=co[Tt++])&&!yr.isPropagationStopped();)for(yr.currentTarget=vi.elem,ht=0;(Yi=vi.handlers[ht++])&&!yr.isImmediatePropagationStopped();)(!yr.rnamespace||!1===Yi.namespace||yr.rnamespace.test(Yi.namespace))&&(yr.handleObj=Yi,yr.data=Yi.data,void 0!==(yn=((D.event.special[Yi.origType]||{}).handle||Yi.handler).apply(vi.elem,sr))&&!1===(yr.result=yn)&&(yr.preventDefault(),yr.stopPropagation()));return ss.postDispatch&&ss.postDispatch.call(this,yr),yr.result}},handlers:function(Jt,Tt){var ht,yn,vi,Yi,co,sr=[],yr=Tt.delegateCount,Ur=Jt.target;if(yr&&Ur.nodeType&&!("click"===Jt.type&&Jt.button>=1))for(;Ur!==this;Ur=Ur.parentNode||this)if(1===Ur.nodeType&&("click"!==Jt.type||!0!==Ur.disabled)){for(Yi=[],co={},ht=0;ht<yr;ht++)void 0===co[vi=(yn=Tt[ht]).selector+" "]&&(co[vi]=yn.needsContext?D(vi,this).index(Ur)>-1:D.find(vi,this,null,[Ur]).length),co[vi]&&Yi.push(yn);Yi.length&&sr.push({elem:Ur,handlers:Yi})}return Ur=this,yr<Tt.length&&sr.push({elem:Ur,handlers:Tt.slice(yr)}),sr},addProp:function(Jt,Tt){Object.defineProperty(D.Event.prototype,Jt,{enumerable:!0,configurable:!0,get:w(Tt)?function(){if(this.originalEvent)return Tt(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[Jt]},set:function(ht){Object.defineProperty(this,Jt,{enumerable:!0,configurable:!0,writable:!0,value:ht})}})},fix:function(Jt){return Jt[D.expando]?Jt:new D.Event(Jt)},special:{load:{noBubble:!0},click:{setup:function(Jt){var Tt=this||Jt;return It.test(Tt.type)&&Tt.click&&P(Tt,"input")&&Pi(Tt,"click",!0),!1},trigger:function(Jt){var Tt=this||Jt;return It.test(Tt.type)&&Tt.click&&P(Tt,"input")&&Pi(Tt,"click"),!0},_default:function(Jt){var Tt=Jt.target;return It.test(Tt.type)&&Tt.click&&P(Tt,"input")&&sn.get(Tt,"click")||P(Tt,"a")}},beforeunload:{postDispatch:function(Jt){void 0!==Jt.result&&Jt.originalEvent&&(Jt.originalEvent.returnValue=Jt.result)}}}},D.removeEvent=function(Jt,Tt,ht){Jt.removeEventListener&&Jt.removeEventListener(Tt,ht)},D.Event=function(Jt,Tt){if(!(this instanceof D.Event))return new D.Event(Jt,Tt);Jt&&Jt.type?(this.originalEvent=Jt,this.type=Jt.type,this.isDefaultPrevented=Jt.defaultPrevented||void 0===Jt.defaultPrevented&&!1===Jt.returnValue?vt:ln,this.target=Jt.target&&3===Jt.target.nodeType?Jt.target.parentNode:Jt.target,this.currentTarget=Jt.currentTarget,this.relatedTarget=Jt.relatedTarget):this.type=Jt,Tt&&D.extend(this,Tt),this.timeStamp=Jt&&Jt.timeStamp||Date.now(),this[D.expando]=!0},D.Event.prototype={constructor:D.Event,isDefaultPrevented:ln,isPropagationStopped:ln,isImmediatePropagationStopped:ln,isSimulated:!1,preventDefault:function(){var Jt=this.originalEvent;this.isDefaultPrevented=vt,Jt&&!this.isSimulated&&Jt.preventDefault()},stopPropagation:function(){var Jt=this.originalEvent;this.isPropagationStopped=vt,Jt&&!this.isSimulated&&Jt.stopPropagation()},stopImmediatePropagation:function(){var Jt=this.originalEvent;this.isImmediatePropagationStopped=vt,Jt&&!this.isSimulated&&Jt.stopImmediatePropagation(),this.stopPropagation()}},D.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},D.event.addProp),D.each({focus:"focusin",blur:"focusout"},function(Jt,Tt){function ht(yn){if(M.documentMode){var vi=sn.get(this,"handle"),Yi=D.event.fix(yn);Yi.type="focusin"===yn.type?"focus":"blur",Yi.isSimulated=!0,vi(yn),Yi.target===Yi.currentTarget&&vi(Yi)}else D.event.simulate(Tt,yn.target,D.event.fix(yn))}D.event.special[Jt]={setup:function(){var yn;if(Pi(this,Jt,!0),!M.documentMode)return!1;(yn=sn.get(this,Tt))||this.addEventListener(Tt,ht),sn.set(this,Tt,(yn||0)+1)},trigger:function(){return Pi(this,Jt),!0},teardown:function(){var yn;if(!M.documentMode)return!1;(yn=sn.get(this,Tt)-1)?sn.set(this,Tt,yn):(this.removeEventListener(Tt,ht),sn.remove(this,Tt))},_default:function(yn){return sn.get(yn.target,Jt)},delegateType:Tt},D.event.special[Tt]={setup:function(){var yn=this.ownerDocument||this.document||this,vi=M.documentMode?this:yn,Yi=sn.get(vi,Tt);Yi||(M.documentMode?this.addEventListener(Tt,ht):yn.addEventListener(Jt,ht,!0)),sn.set(vi,Tt,(Yi||0)+1)},teardown:function(){var yn=this.ownerDocument||this.document||this,vi=M.documentMode?this:yn,Yi=sn.get(vi,Tt)-1;Yi?sn.set(vi,Tt,Yi):(M.documentMode?this.removeEventListener(Tt,ht):yn.removeEventListener(Jt,ht,!0),sn.remove(vi,Tt))}}}),D.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(Jt,Tt){D.event.special[Jt]={delegateType:Tt,bindType:Tt,handle:function(ht){var yn,Yi=ht.relatedTarget,co=ht.handleObj;return(!Yi||Yi!==this&&!D.contains(this,Yi))&&(ht.type=co.origType,yn=co.handler.apply(this,arguments),ht.type=Tt),yn}}}),D.fn.extend({on:function(Jt,Tt,ht,yn){return jn(this,Jt,Tt,ht,yn)},one:function(Jt,Tt,ht,yn){return jn(this,Jt,Tt,ht,yn,1)},off:function(Jt,Tt,ht){var yn,vi;if(Jt&&Jt.preventDefault&&Jt.handleObj)return yn=Jt.handleObj,D(Jt.delegateTarget).off(yn.namespace?yn.origType+"."+yn.namespace:yn.origType,yn.selector,yn.handler),this;if("object"==typeof Jt){for(vi in Jt)this.off(vi,Tt,Jt[vi]);return this}return(!1===Tt||"function"==typeof Tt)&&(ht=Tt,Tt=void 0),!1===ht&&(ht=ln),this.each(function(){D.event.remove(this,Jt,ht,Tt)})}});var go=/<script|<style|<link/i,si=/checked\s*(?:[^=]|=\s*.checked.)/i,ot=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function pn(Jt,Tt){return P(Jt,"table")&&P(11!==Tt.nodeType?Tt:Tt.firstChild,"tr")&&D(Jt).children("tbody")[0]||Jt}function _i(Jt){return Jt.type=(null!==Jt.getAttribute("type"))+"/"+Jt.type,Jt}function wi(Jt){return"true/"===(Jt.type||"").slice(0,5)?Jt.type=Jt.type.slice(5):Jt.removeAttribute("type"),Jt}function hi(Jt,Tt){var ht,yn,vi,co,sr,yr;if(1===Tt.nodeType){if(sn.hasData(Jt)&&(yr=sn.get(Jt).events))for(vi in sn.remove(Tt,"handle events"),yr)for(ht=0,yn=yr[vi].length;ht<yn;ht++)D.event.add(Tt,vi,yr[vi][ht]);fn.hasData(Jt)&&(co=fn.access(Jt),sr=D.extend({},co),fn.set(Tt,sr))}}function zn(Jt,Tt){var ht=Tt.nodeName.toLowerCase();"input"===ht&&It.test(Jt.type)?Tt.checked=Jt.checked:("input"===ht||"textarea"===ht)&&(Tt.defaultValue=Jt.defaultValue)}function Ei(Jt,Tt,ht,yn){Tt=d(Tt);var vi,Yi,co,sr,yr,Ur,ss=0,gs=Jt.length,Pr=gs-1,ys=Tt[0],da=w(ys);if(da||gs>1&&"string"==typeof ys&&!k.checkClone&&si.test(ys))return Jt.each(function(Va){var ga=Jt.eq(Va);da&&(Tt[0]=ys.call(this,Va,ga.html())),Ei(ga,Tt,ht,yn)});if(gs&&(Yi=(vi=tt(Tt,Jt[0].ownerDocument,!1,Jt,yn)).firstChild,1===vi.childNodes.length&&(vi=Yi),Yi||yn)){for(sr=(co=D.map(Mt(vi,"script"),_i)).length;ss<gs;ss++)yr=vi,ss!==Pr&&(yr=D.clone(yr,!0,!0),sr&&D.merge(co,Mt(yr,"script"))),ht.call(Jt[ss],yr,ss);if(sr)for(Ur=co[co.length-1].ownerDocument,D.map(co,wi),ss=0;ss<sr;ss++)xt.test((yr=co[ss]).type||"")&&!sn.access(yr,"globalEval")&&D.contains(Ur,yr)&&(yr.src&&"module"!==(yr.type||"").toLowerCase()?D._evalUrl&&!yr.noModule&&D._evalUrl(yr.src,{nonce:yr.nonce||yr.getAttribute("nonce")},Ur):E(yr.textContent.replace(ot,""),yr,Ur))}return Jt}function li(Jt,Tt,ht){for(var yn,vi=Tt?D.filter(Tt,Jt):Jt,Yi=0;null!=(yn=vi[Yi]);Yi++)!ht&&1===yn.nodeType&&D.cleanData(Mt(yn)),yn.parentNode&&(ht&&Xt(yn)&&pt(Mt(yn,"script")),yn.parentNode.removeChild(yn));return Jt}D.extend({htmlPrefilter:function(Jt){return Jt},clone:function(Jt,Tt,ht){var yn,vi,Yi,co,sr=Jt.cloneNode(!0),yr=Xt(Jt);if(!(k.noCloneChecked||1!==Jt.nodeType&&11!==Jt.nodeType||D.isXMLDoc(Jt)))for(co=Mt(sr),yn=0,vi=(Yi=Mt(Jt)).length;yn<vi;yn++)zn(Yi[yn],co[yn]);if(Tt)if(ht)for(Yi=Yi||Mt(Jt),co=co||Mt(sr),yn=0,vi=Yi.length;yn<vi;yn++)hi(Yi[yn],co[yn]);else hi(Jt,sr);return(co=Mt(sr,"script")).length>0&&pt(co,!yr&&Mt(Jt,"script")),sr},cleanData:function(Jt){for(var Tt,ht,yn,vi=D.event.special,Yi=0;void 0!==(ht=Jt[Yi]);Yi++)if(Wt(ht)){if(Tt=ht[sn.expando]){if(Tt.events)for(yn in Tt.events)vi[yn]?D.event.remove(ht,yn):D.removeEvent(ht,yn,Tt.handle);ht[sn.expando]=void 0}ht[fn.expando]&&(ht[fn.expando]=void 0)}}}),D.fn.extend({detach:function(Jt){return li(this,Jt,!0)},remove:function(Jt){return li(this,Jt)},text:function(Jt){return An(this,function(Tt){return void 0===Tt?D.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=Tt)})},null,Jt,arguments.length)},append:function(){return Ei(this,arguments,function(Jt){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||pn(this,Jt).appendChild(Jt)})},prepend:function(){return Ei(this,arguments,function(Jt){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var Tt=pn(this,Jt);Tt.insertBefore(Jt,Tt.firstChild)}})},before:function(){return Ei(this,arguments,function(Jt){this.parentNode&&this.parentNode.insertBefore(Jt,this)})},after:function(){return Ei(this,arguments,function(Jt){this.parentNode&&this.parentNode.insertBefore(Jt,this.nextSibling)})},empty:function(){for(var Jt,Tt=0;null!=(Jt=this[Tt]);Tt++)1===Jt.nodeType&&(D.cleanData(Mt(Jt,!1)),Jt.textContent="");return this},clone:function(Jt,Tt){return Jt=Jt??!1,Tt=Tt??Jt,this.map(function(){return D.clone(this,Jt,Tt)})},html:function(Jt){return An(this,function(Tt){var ht=this[0]||{},yn=0,vi=this.length;if(void 0===Tt&&1===ht.nodeType)return ht.innerHTML;if("string"==typeof Tt&&!go.test(Tt)&&!wt[(Bt.exec(Tt)||["",""])[1].toLowerCase()]){Tt=D.htmlPrefilter(Tt);try{for(;yn<vi;yn++)1===(ht=this[yn]||{}).nodeType&&(D.cleanData(Mt(ht,!1)),ht.innerHTML=Tt);ht=0}catch{}}ht&&this.empty().append(Tt)},null,Jt,arguments.length)},replaceWith:function(){var Jt=[];return Ei(this,arguments,function(Tt){var ht=this.parentNode;D.inArray(this,Jt)<0&&(D.cleanData(Mt(this)),ht&&ht.replaceChild(Tt,this))},Jt)}}),D.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(Jt,Tt){D.fn[Jt]=function(ht){for(var yn,vi=[],Yi=D(ht),co=Yi.length-1,sr=0;sr<=co;sr++)yn=sr===co?this:this.clone(!0),D(Yi[sr])[Tt](yn),s.apply(vi,yn.get());return this.pushStack(vi)}});var Xi=new RegExp("^("+Eo+")(?!px)[a-z%]+$","i"),ki=/^--/,bo=function(Jt){var Tt=Jt.ownerDocument.defaultView;return(!Tt||!Tt.opener)&&(Tt=n),Tt.getComputedStyle(Jt)},jo=function(Jt,Tt,ht){var yn,vi,Yi={};for(vi in Tt)Yi[vi]=Jt.style[vi],Jt.style[vi]=Tt[vi];for(vi in yn=ht.call(Jt),Tt)Jt.style[vi]=Yi[vi];return yn},wn=new RegExp(xo.join("|"),"i");function Zi(Jt,Tt,ht){var yn,vi,Yi,co,sr=ki.test(Tt),yr=Jt.style;return(ht=ht||bo(Jt))&&(co=ht.getPropertyValue(Tt)||ht[Tt],sr&&co&&(co=co.replace(X,"$1")||void 0),""===co&&!Xt(Jt)&&(co=D.style(Jt,Tt)),!k.pixelBoxStyles()&&Xi.test(co)&&wn.test(Tt)&&(yn=yr.width,vi=yr.minWidth,Yi=yr.maxWidth,yr.minWidth=yr.maxWidth=yr.width=co,co=ht.width,yr.width=yn,yr.minWidth=vi,yr.maxWidth=Yi)),void 0!==co?co+"":co}function oo(Jt,Tt){return{get:function(){if(!Jt())return(this.get=Tt).apply(this,arguments);delete this.get}}}!function(){function Jt(){if(Ur){yr.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Ur.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Bn.appendChild(yr).appendChild(Ur);var ss=n.getComputedStyle(Ur);ht="1%"!==ss.top,sr=12===Tt(ss.marginLeft),Ur.style.right="60%",Yi=36===Tt(ss.right),yn=36===Tt(ss.width),Ur.style.position="absolute",vi=12===Tt(Ur.offsetWidth/3),Bn.removeChild(yr),Ur=null}}function Tt(ss){return Math.round(parseFloat(ss))}var ht,yn,vi,Yi,co,sr,yr=M.createElement("div"),Ur=M.createElement("div");Ur.style&&(Ur.style.backgroundClip="content-box",Ur.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===Ur.style.backgroundClip,D.extend(k,{boxSizingReliable:function(){return Jt(),yn},pixelBoxStyles:function(){return Jt(),Yi},pixelPosition:function(){return Jt(),ht},reliableMarginLeft:function(){return Jt(),sr},scrollboxSize:function(){return Jt(),vi},reliableTrDimensions:function(){var ss,gs,Pr,ys;return null==co&&(ss=M.createElement("table"),gs=M.createElement("tr"),Pr=M.createElement("div"),ss.style.cssText="position:absolute;left:-11111px;border-collapse:separate",gs.style.cssText="box-sizing:content-box;border:1px solid",gs.style.height="1px",Pr.style.height="9px",Pr.style.display="block",Bn.appendChild(ss).appendChild(gs).appendChild(Pr),ys=n.getComputedStyle(gs),co=parseInt(ys.height,10)+parseInt(ys.borderTopWidth,10)+parseInt(ys.borderBottomWidth,10)===gs.offsetHeight,Bn.removeChild(ss)),co}}))}();var Bi=["Webkit","Moz","ms"],Xo=M.createElement("div").style,Lo={};function xr(Jt){return D.cssProps[Jt]||Lo[Jt]||(Jt in Xo?Jt:Lo[Jt]=function or(Jt){for(var Tt=Jt[0].toUpperCase()+Jt.slice(1),ht=Bi.length;ht--;)if((Jt=Bi[ht]+Tt)in Xo)return Jt}(Jt)||Jt)}var Nr=/^(none|table(?!-c[ea]).+)/,as={position:"absolute",visibility:"hidden",display:"block"},ji={letterSpacing:"0",fontWeight:"400"};function Fo(Jt,Tt,ht){var yn=Ko.exec(Tt);return yn?Math.max(0,yn[2]-(ht||0))+(yn[3]||"px"):Tt}function rt(Jt,Tt,ht,yn,vi,Yi){var co="width"===Tt?1:0,sr=0,yr=0,Ur=0;if(ht===(yn?"border":"content"))return 0;for(;co<4;co+=2)"margin"===ht&&(Ur+=D.css(Jt,ht+xo[co],!0,vi)),yn?("content"===ht&&(yr-=D.css(Jt,"padding"+xo[co],!0,vi)),"margin"!==ht&&(yr-=D.css(Jt,"border"+xo[co]+"Width",!0,vi))):(yr+=D.css(Jt,"padding"+xo[co],!0,vi),"padding"!==ht?yr+=D.css(Jt,"border"+xo[co]+"Width",!0,vi):sr+=D.css(Jt,"border"+xo[co]+"Width",!0,vi));return!yn&&Yi>=0&&(yr+=Math.max(0,Math.ceil(Jt["offset"+Tt[0].toUpperCase()+Tt.slice(1)]-Yi-yr-sr-.5))||0),yr+Ur}function ai(Jt,Tt,ht){var yn=bo(Jt),Yi=(!k.boxSizingReliable()||ht)&&"border-box"===D.css(Jt,"boxSizing",!1,yn),co=Yi,sr=Zi(Jt,Tt,yn),yr="offset"+Tt[0].toUpperCase()+Tt.slice(1);if(Xi.test(sr)){if(!ht)return sr;sr="auto"}return(!k.boxSizingReliable()&&Yi||!k.reliableTrDimensions()&&P(Jt,"tr")||"auto"===sr||!parseFloat(sr)&&"inline"===D.css(Jt,"display",!1,yn))&&Jt.getClientRects().length&&(Yi="border-box"===D.css(Jt,"boxSizing",!1,yn),(co=yr in Jt)&&(sr=Jt[yr])),(sr=parseFloat(sr)||0)+rt(Jt,Tt,ht||(Yi?"border":"content"),co,yn,sr)+"px"}function Gn(Jt,Tt,ht,yn,vi){return new Gn.prototype.init(Jt,Tt,ht,yn,vi)}D.extend({cssHooks:{opacity:{get:function(Jt,Tt){if(Tt){var ht=Zi(Jt,"opacity");return""===ht?"1":ht}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(Jt,Tt,ht,yn){if(Jt&&3!==Jt.nodeType&&8!==Jt.nodeType&&Jt.style){var vi,Yi,co,sr=ut(Tt),yr=ki.test(Tt),Ur=Jt.style;if(yr||(Tt=xr(sr)),co=D.cssHooks[Tt]||D.cssHooks[sr],void 0===ht)return co&&"get"in co&&void 0!==(vi=co.get(Jt,!1,yn))?vi:Ur[Tt];if("string"==(Yi=typeof ht)&&(vi=Ko.exec(ht))&&vi[1]&&(ht=un(Jt,Tt,vi),Yi="number"),null==ht||ht!=ht)return;"number"===Yi&&!yr&&(ht+=vi&&vi[3]||(D.cssNumber[sr]?"":"px")),!k.clearCloneStyle&&""===ht&&0===Tt.indexOf("background")&&(Ur[Tt]="inherit"),(!co||!("set"in co)||void 0!==(ht=co.set(Jt,ht,yn)))&&(yr?Ur.setProperty(Tt,ht):Ur[Tt]=ht)}},css:function(Jt,Tt,ht,yn){var vi,Yi,co,sr=ut(Tt);return ki.test(Tt)||(Tt=xr(sr)),(co=D.cssHooks[Tt]||D.cssHooks[sr])&&"get"in co&&(vi=co.get(Jt,!0,ht)),void 0===vi&&(vi=Zi(Jt,Tt,yn)),"normal"===vi&&Tt in ji&&(vi=ji[Tt]),""===ht||ht?(Yi=parseFloat(vi),!0===ht||isFinite(Yi)?Yi||0:vi):vi}}),D.each(["height","width"],function(Jt,Tt){D.cssHooks[Tt]={get:function(ht,yn,vi){if(yn)return!Nr.test(D.css(ht,"display"))||ht.getClientRects().length&&ht.getBoundingClientRect().width?ai(ht,Tt,vi):jo(ht,as,function(){return ai(ht,Tt,vi)})},set:function(ht,yn,vi){var Yi,co=bo(ht),sr=!k.scrollboxSize()&&"absolute"===co.position,Ur=(sr||vi)&&"border-box"===D.css(ht,"boxSizing",!1,co),ss=vi?rt(ht,Tt,vi,Ur,co):0;return Ur&&sr&&(ss-=Math.ceil(ht["offset"+Tt[0].toUpperCase()+Tt.slice(1)]-parseFloat(co[Tt])-rt(ht,Tt,"border",!1,co)-.5)),ss&&(Yi=Ko.exec(yn))&&"px"!==(Yi[3]||"px")&&(ht.style[Tt]=yn,yn=D.css(ht,Tt)),Fo(0,yn,ss)}}}),D.cssHooks.marginLeft=oo(k.reliableMarginLeft,function(Jt,Tt){if(Tt)return(parseFloat(Zi(Jt,"marginLeft"))||Jt.getBoundingClientRect().left-jo(Jt,{marginLeft:0},function(){return Jt.getBoundingClientRect().left}))+"px"}),D.each({margin:"",padding:"",border:"Width"},function(Jt,Tt){D.cssHooks[Jt+Tt]={expand:function(ht){for(var yn=0,vi={},Yi="string"==typeof ht?ht.split(" "):[ht];yn<4;yn++)vi[Jt+xo[yn]+Tt]=Yi[yn]||Yi[yn-2]||Yi[0];return vi}},"margin"!==Jt&&(D.cssHooks[Jt+Tt].set=Fo)}),D.fn.extend({css:function(Jt,Tt){return An(this,function(ht,yn,vi){var Yi,co,sr={},yr=0;if(Array.isArray(yn)){for(Yi=bo(ht),co=yn.length;yr<co;yr++)sr[yn[yr]]=D.css(ht,yn[yr],!1,Yi);return sr}return void 0!==vi?D.style(ht,yn,vi):D.css(ht,yn)},Jt,Tt,arguments.length>1)}}),D.Tween=Gn,Gn.prototype={constructor:Gn,init:function(Jt,Tt,ht,yn,vi,Yi){this.elem=Jt,this.prop=ht,this.easing=vi||D.easing._default,this.options=Tt,this.start=this.now=this.cur(),this.end=yn,this.unit=Yi||(D.cssNumber[ht]?"":"px")},cur:function(){var Jt=Gn.propHooks[this.prop];return Jt&&Jt.get?Jt.get(this):Gn.propHooks._default.get(this)},run:function(Jt){var Tt,ht=Gn.propHooks[this.prop];return this.pos=Tt=this.options.duration?D.easing[this.easing](Jt,this.options.duration*Jt,0,1,this.options.duration):Jt,this.now=(this.end-this.start)*Tt+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),ht&&ht.set?ht.set(this):Gn.propHooks._default.set(this),this}},Gn.prototype.init.prototype=Gn.prototype,Gn.propHooks={_default:{get:function(Jt){var Tt;return 1!==Jt.elem.nodeType||null!=Jt.elem[Jt.prop]&&null==Jt.elem.style[Jt.prop]?Jt.elem[Jt.prop]:(Tt=D.css(Jt.elem,Jt.prop,""))&&"auto"!==Tt?Tt:0},set:function(Jt){D.fx.step[Jt.prop]?D.fx.step[Jt.prop](Jt):1!==Jt.elem.nodeType||!D.cssHooks[Jt.prop]&&null==Jt.elem.style[xr(Jt.prop)]?Jt.elem[Jt.prop]=Jt.now:D.style(Jt.elem,Jt.prop,Jt.now+Jt.unit)}}},Gn.propHooks.scrollTop=Gn.propHooks.scrollLeft={set:function(Jt){Jt.elem.nodeType&&Jt.elem.parentNode&&(Jt.elem[Jt.prop]=Jt.now)}},D.easing={linear:function(Jt){return Jt},swing:function(Jt){return.5-Math.cos(Jt*Math.PI)/2},_default:"swing"},D.fx=Gn.prototype.init,D.fx.step={};var Io,wr,bs=/^(?:toggle|show|hide)$/,ba=/queueHooks$/;function ms(){wr&&(!1===M.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ms):n.setTimeout(ms,D.fx.interval),D.fx.tick())}function Oa(){return n.setTimeout(function(){Io=void 0}),Io=Date.now()}function Ea(Jt,Tt){var ht,yn=0,vi={height:Jt};for(Tt=Tt?1:0;yn<4;yn+=2-Tt)vi["margin"+(ht=xo[yn])]=vi["padding"+ht]=Jt;return Tt&&(vi.opacity=vi.width=Jt),vi}function Sa(Jt,Tt,ht){for(var yn,vi=(Li.tweeners[Tt]||[]).concat(Li.tweeners["*"]),Yi=0,co=vi.length;Yi<co;Yi++)if(yn=vi[Yi].call(ht,Tt,Jt))return yn}function Li(Jt,Tt,ht){var yn,vi,Yi=0,co=Li.prefilters.length,sr=D.Deferred().always(function(){delete yr.elem}),yr=function(){if(vi)return!1;for(var gs=Io||Oa(),Pr=Math.max(0,Ur.startTime+Ur.duration-gs),da=1-(Pr/Ur.duration||0),Va=0,ga=Ur.tweens.length;Va<ga;Va++)Ur.tweens[Va].run(da);return sr.notifyWith(Jt,[Ur,da,Pr]),da<1&&ga?Pr:(ga||sr.notifyWith(Jt,[Ur,1,0]),sr.resolveWith(Jt,[Ur]),!1)},Ur=sr.promise({elem:Jt,props:D.extend({},Tt),opts:D.extend(!0,{specialEasing:{},easing:D.easing._default},ht),originalProperties:Tt,originalOptions:ht,startTime:Io||Oa(),duration:ht.duration,tweens:[],createTween:function(gs,Pr){var ys=D.Tween(Jt,Ur.opts,gs,Pr,Ur.opts.specialEasing[gs]||Ur.opts.easing);return Ur.tweens.push(ys),ys},stop:function(gs){var Pr=0,ys=gs?Ur.tweens.length:0;if(vi)return this;for(vi=!0;Pr<ys;Pr++)Ur.tweens[Pr].run(1);return gs?(sr.notifyWith(Jt,[Ur,1,0]),sr.resolveWith(Jt,[Ur,gs])):sr.rejectWith(Jt,[Ur,gs]),this}}),ss=Ur.props;for(function Mr(Jt,Tt){var ht,yn,vi,Yi,co;for(ht in Jt)if(vi=Tt[yn=ut(ht)],Yi=Jt[ht],Array.isArray(Yi)&&(vi=Yi[1],Yi=Jt[ht]=Yi[0]),ht!==yn&&(Jt[yn]=Yi,delete Jt[ht]),(co=D.cssHooks[yn])&&"expand"in co)for(ht in Yi=co.expand(Yi),delete Jt[yn],Yi)ht in Jt||(Jt[ht]=Yi[ht],Tt[ht]=vi);else Tt[yn]=vi}(ss,Ur.opts.specialEasing);Yi<co;Yi++)if(yn=Li.prefilters[Yi].call(Ur,Jt,ss,Ur.opts))return w(yn.stop)&&(D._queueHooks(Ur.elem,Ur.opts.queue).stop=yn.stop.bind(yn)),yn;return D.map(ss,Sa,Ur),w(Ur.opts.start)&&Ur.opts.start.call(Jt,Ur),Ur.progress(Ur.opts.progress).done(Ur.opts.done,Ur.opts.complete).fail(Ur.opts.fail).always(Ur.opts.always),D.fx.timer(D.extend(yr,{elem:Jt,anim:Ur,queue:Ur.opts.queue})),Ur}D.Animation=D.extend(Li,{tweeners:{"*":[function(Jt,Tt){var ht=this.createTween(Jt,Tt);return un(ht.elem,Jt,Ko.exec(Tt),ht),ht}]},tweener:function(Jt,Tt){w(Jt)?(Tt=Jt,Jt=["*"]):Jt=Jt.match(Te);for(var ht,yn=0,vi=Jt.length;yn<vi;yn++)(Li.tweeners[ht=Jt[yn]]=Li.tweeners[ht]||[]).unshift(Tt)},prefilters:[function tr(Jt,Tt,ht){var yn,vi,Yi,co,sr,yr,Ur,ss,gs="width"in Tt||"height"in Tt,Pr=this,ys={},da=Jt.style,Va=Jt.nodeType&&En(Jt),ga=sn.get(Jt,"fxshow");for(yn in ht.queue||(null==(co=D._queueHooks(Jt,"fx")).unqueued&&(co.unqueued=0,sr=co.empty.fire,co.empty.fire=function(){co.unqueued||sr()}),co.unqueued++,Pr.always(function(){Pr.always(function(){co.unqueued--,D.queue(Jt,"fx").length||co.empty.fire()})})),Tt)if(bs.test(vi=Tt[yn])){if(delete Tt[yn],Yi=Yi||"toggle"===vi,vi===(Va?"hide":"show")){if("show"!==vi||!ga||void 0===ga[yn])continue;Va=!0}ys[yn]=ga&&ga[yn]||D.style(Jt,yn)}if((yr=!D.isEmptyObject(Tt))||!D.isEmptyObject(ys))for(yn in gs&&1===Jt.nodeType&&(ht.overflow=[da.overflow,da.overflowX,da.overflowY],null==(Ur=ga&&ga.display)&&(Ur=sn.get(Jt,"display")),"none"===(ss=D.css(Jt,"display"))&&(Ur?ss=Ur:(oi([Jt],!0),Ur=Jt.style.display||Ur,ss=D.css(Jt,"display"),oi([Jt]))),("inline"===ss||"inline-block"===ss&&null!=Ur)&&"none"===D.css(Jt,"float")&&(yr||(Pr.done(function(){da.display=Ur}),null==Ur&&(Ur="none"===(ss=da.display)?"":ss)),da.display="inline-block")),ht.overflow&&(da.overflow="hidden",Pr.always(function(){da.overflow=ht.overflow[0],da.overflowX=ht.overflow[1],da.overflowY=ht.overflow[2]})),yr=!1,ys)yr||(ga?"hidden"in ga&&(Va=ga.hidden):ga=sn.access(Jt,"fxshow",{display:Ur}),Yi&&(ga.hidden=!Va),Va&&oi([Jt],!0),Pr.done(function(){for(yn in Va||oi([Jt]),sn.remove(Jt,"fxshow"),ys)D.style(Jt,yn,ys[yn])})),yr=Sa(Va?ga[yn]:0,yn,Pr),yn in ga||(ga[yn]=yr.start,Va&&(yr.end=yr.start,yr.start=0))}],prefilter:function(Jt,Tt){Tt?Li.prefilters.unshift(Jt):Li.prefilters.push(Jt)}}),D.speed=function(Jt,Tt,ht){var yn=Jt&&"object"==typeof Jt?D.extend({},Jt):{complete:ht||!ht&&Tt||w(Jt)&&Jt,duration:Jt,easing:ht&&Tt||Tt&&!w(Tt)&&Tt};return D.fx.off?yn.duration=0:"number"!=typeof yn.duration&&(yn.duration=yn.duration in D.fx.speeds?D.fx.speeds[yn.duration]:D.fx.speeds._default),(null==yn.queue||!0===yn.queue)&&(yn.queue="fx"),yn.old=yn.complete,yn.complete=function(){w(yn.old)&&yn.old.call(this),yn.queue&&D.dequeue(this,yn.queue)},yn},D.fn.extend({fadeTo:function(Jt,Tt,ht,yn){return this.filter(En).css("opacity",0).show().end().animate({opacity:Tt},Jt,ht,yn)},animate:function(Jt,Tt,ht,yn){var vi=D.isEmptyObject(Jt),Yi=D.speed(Tt,ht,yn),co=function(){var sr=Li(this,D.extend({},Jt),Yi);(vi||sn.get(this,"finish"))&&sr.stop(!0)};return co.finish=co,vi||!1===Yi.queue?this.each(co):this.queue(Yi.queue,co)},stop:function(Jt,Tt,ht){var yn=function(vi){var Yi=vi.stop;delete vi.stop,Yi(ht)};return"string"!=typeof Jt&&(ht=Tt,Tt=Jt,Jt=void 0),Tt&&this.queue(Jt||"fx",[]),this.each(function(){var vi=!0,Yi=null!=Jt&&Jt+"queueHooks",co=D.timers,sr=sn.get(this);if(Yi)sr[Yi]&&sr[Yi].stop&&yn(sr[Yi]);else for(Yi in sr)sr[Yi]&&sr[Yi].stop&&ba.test(Yi)&&yn(sr[Yi]);for(Yi=co.length;Yi--;)co[Yi].elem===this&&(null==Jt||co[Yi].queue===Jt)&&(co[Yi].anim.stop(ht),vi=!1,co.splice(Yi,1));(vi||!ht)&&D.dequeue(this,Jt)})},finish:function(Jt){return!1!==Jt&&(Jt=Jt||"fx"),this.each(function(){var Tt,ht=sn.get(this),yn=ht[Jt+"queue"],vi=ht[Jt+"queueHooks"],Yi=D.timers,co=yn?yn.length:0;for(ht.finish=!0,D.queue(this,Jt,[]),vi&&vi.stop&&vi.stop.call(this,!0),Tt=Yi.length;Tt--;)Yi[Tt].elem===this&&Yi[Tt].queue===Jt&&(Yi[Tt].anim.stop(!0),Yi.splice(Tt,1));for(Tt=0;Tt<co;Tt++)yn[Tt]&&yn[Tt].finish&&yn[Tt].finish.call(this);delete ht.finish})}}),D.each(["toggle","show","hide"],function(Jt,Tt){var ht=D.fn[Tt];D.fn[Tt]=function(yn,vi,Yi){return null==yn||"boolean"==typeof yn?ht.apply(this,arguments):this.animate(Ea(Tt,!0),yn,vi,Yi)}}),D.each({slideDown:Ea("show"),slideUp:Ea("hide"),slideToggle:Ea("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(Jt,Tt){D.fn[Jt]=function(ht,yn,vi){return this.animate(Tt,ht,yn,vi)}}),D.timers=[],D.fx.tick=function(){var Jt,Tt=0,ht=D.timers;for(Io=Date.now();Tt<ht.length;Tt++)!(Jt=ht[Tt])()&&ht[Tt]===Jt&&ht.splice(Tt--,1);ht.length||D.fx.stop(),Io=void 0},D.fx.timer=function(Jt){D.timers.push(Jt),D.fx.start()},D.fx.interval=13,D.fx.start=function(){wr||(wr=!0,ms())},D.fx.stop=function(){wr=null},D.fx.speeds={slow:600,fast:200,_default:400},D.fn.delay=function(Jt,Tt){return Jt=D.fx&&D.fx.speeds[Jt]||Jt,this.queue(Tt=Tt||"fx",function(ht,yn){var vi=n.setTimeout(ht,Jt);yn.stop=function(){n.clearTimeout(vi)}})},function(){var Jt=M.createElement("input"),ht=M.createElement("select").appendChild(M.createElement("option"));Jt.type="checkbox",k.checkOn=""!==Jt.value,k.optSelected=ht.selected,(Jt=M.createElement("input")).value="t",Jt.type="radio",k.radioValue="t"===Jt.value}();var Ao,ao=D.expr.attrHandle;D.fn.extend({attr:function(Jt,Tt){return An(this,D.attr,Jt,Tt,arguments.length>1)},removeAttr:function(Jt){return this.each(function(){D.removeAttr(this,Jt)})}}),D.extend({attr:function(Jt,Tt,ht){var yn,vi,Yi=Jt.nodeType;if(3!==Yi&&8!==Yi&&2!==Yi)return typeof Jt.getAttribute>"u"?D.prop(Jt,Tt,ht):((1!==Yi||!D.isXMLDoc(Jt))&&(vi=D.attrHooks[Tt.toLowerCase()]||(D.expr.match.bool.test(Tt)?Ao:void 0)),void 0!==ht?null===ht?void D.removeAttr(Jt,Tt):vi&&"set"in vi&&void 0!==(yn=vi.set(Jt,ht,Tt))?yn:(Jt.setAttribute(Tt,ht+""),ht):vi&&"get"in vi&&null!==(yn=vi.get(Jt,Tt))?yn:(yn=D.find.attr(Jt,Tt))??void 0)},attrHooks:{type:{set:function(Jt,Tt){if(!k.radioValue&&"radio"===Tt&&P(Jt,"input")){var ht=Jt.value;return Jt.setAttribute("type",Tt),ht&&(Jt.value=ht),Tt}}}},removeAttr:function(Jt,Tt){var ht,yn=0,vi=Tt&&Tt.match(Te);if(vi&&1===Jt.nodeType)for(;ht=vi[yn++];)Jt.removeAttribute(ht)}}),Ao={set:function(Jt,Tt,ht){return!1===Tt?D.removeAttr(Jt,ht):Jt.setAttribute(ht,ht),ht}},D.each(D.expr.match.bool.source.match(/\w+/g),function(Jt,Tt){var ht=ao[Tt]||D.find.attr;ao[Tt]=function(yn,vi,Yi){var co,sr,yr=vi.toLowerCase();return Yi||(sr=ao[yr],ao[yr]=co,co=null!=ht(yn,vi,Yi)?yr:null,ao[yr]=sr),co}});var Go=/^(?:input|select|textarea|button)$/i,pr=/^(?:a|area)$/i;function Rr(Jt){return(Jt.match(Te)||[]).join(" ")}function br(Jt){return Jt.getAttribute&&Jt.getAttribute("class")||""}function Ti(Jt){return Array.isArray(Jt)?Jt:"string"==typeof Jt&&Jt.match(Te)||[]}D.fn.extend({prop:function(Jt,Tt){return An(this,D.prop,Jt,Tt,arguments.length>1)},removeProp:function(Jt){return this.each(function(){delete this[D.propFix[Jt]||Jt]})}}),D.extend({prop:function(Jt,Tt,ht){var yn,vi,Yi=Jt.nodeType;if(3!==Yi&&8!==Yi&&2!==Yi)return(1!==Yi||!D.isXMLDoc(Jt))&&(vi=D.propHooks[Tt=D.propFix[Tt]||Tt]),void 0!==ht?vi&&"set"in vi&&void 0!==(yn=vi.set(Jt,ht,Tt))?yn:Jt[Tt]=ht:vi&&"get"in vi&&null!==(yn=vi.get(Jt,Tt))?yn:Jt[Tt]},propHooks:{tabIndex:{get:function(Jt){var Tt=D.find.attr(Jt,"tabindex");return Tt?parseInt(Tt,10):Go.test(Jt.nodeName)||pr.test(Jt.nodeName)&&Jt.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),k.optSelected||(D.propHooks.selected={get:function(Jt){return null},set:function(Jt){}}),D.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){D.propFix[this.toLowerCase()]=this}),D.fn.extend({addClass:function(Jt){var Tt,ht,yn,vi,Yi,co;return w(Jt)?this.each(function(sr){D(this).addClass(Jt.call(this,sr,br(this)))}):(Tt=Ti(Jt)).length?this.each(function(){if(yn=br(this),ht=1===this.nodeType&&" "+Rr(yn)+" "){for(Yi=0;Yi<Tt.length;Yi++)ht.indexOf(" "+(vi=Tt[Yi])+" ")<0&&(ht+=vi+" ");co=Rr(ht),yn!==co&&this.setAttribute("class",co)}}):this},removeClass:function(Jt){var Tt,ht,yn,vi,Yi,co;return w(Jt)?this.each(function(sr){D(this).removeClass(Jt.call(this,sr,br(this)))}):arguments.length?(Tt=Ti(Jt)).length?this.each(function(){if(yn=br(this),ht=1===this.nodeType&&" "+Rr(yn)+" "){for(Yi=0;Yi<Tt.length;Yi++)for(vi=Tt[Yi];ht.indexOf(" "+vi+" ")>-1;)ht=ht.replace(" "+vi+" "," ");co=Rr(ht),yn!==co&&this.setAttribute("class",co)}}):this:this.attr("class","")},toggleClass:function(Jt,Tt){var ht,yn,vi,Yi,co=typeof Jt,sr="string"===co||Array.isArray(Jt);return w(Jt)?this.each(function(yr){D(this).toggleClass(Jt.call(this,yr,br(this),Tt),Tt)}):"boolean"==typeof Tt&&sr?Tt?this.addClass(Jt):this.removeClass(Jt):(ht=Ti(Jt),this.each(function(){if(sr)for(Yi=D(this),vi=0;vi<ht.length;vi++)Yi.hasClass(yn=ht[vi])?Yi.removeClass(yn):Yi.addClass(yn);else(void 0===Jt||"boolean"===co)&&((yn=br(this))&&sn.set(this,"__className__",yn),this.setAttribute&&this.setAttribute("class",yn||!1===Jt?"":sn.get(this,"__className__")||""))}))},hasClass:function(Jt){var Tt,ht,yn=0;for(Tt=" "+Jt+" ";ht=this[yn++];)if(1===ht.nodeType&&(" "+Rr(br(ht))+" ").indexOf(Tt)>-1)return!0;return!1}});var mr=/\r/g;D.fn.extend({val:function(Jt){var Tt,ht,yn,vi=this[0];return arguments.length?(yn=w(Jt),this.each(function(Yi){var co;1===this.nodeType&&(null==(co=yn?Jt.call(this,Yi,D(this).val()):Jt)?co="":"number"==typeof co?co+="":Array.isArray(co)&&(co=D.map(co,function(sr){return null==sr?"":sr+""})),(!(Tt=D.valHooks[this.type]||D.valHooks[this.nodeName.toLowerCase()])||!("set"in Tt)||void 0===Tt.set(this,co,"value"))&&(this.value=co))})):vi?(Tt=D.valHooks[vi.type]||D.valHooks[vi.nodeName.toLowerCase()])&&"get"in Tt&&void 0!==(ht=Tt.get(vi,"value"))?ht:"string"==typeof(ht=vi.value)?ht.replace(mr,""):ht??"":void 0}}),D.extend({valHooks:{option:{get:function(Jt){return D.find.attr(Jt,"value")??Rr(D.text(Jt))}},select:{get:function(Jt){var Tt,ht,yn,vi=Jt.options,Yi=Jt.selectedIndex,co="select-one"===Jt.type,sr=co?null:[],yr=co?Yi+1:vi.length;for(yn=Yi<0?yr:co?Yi:0;yn<yr;yn++)if(((ht=vi[yn]).selected||yn===Yi)&&!ht.disabled&&(!ht.parentNode.disabled||!P(ht.parentNode,"optgroup"))){if(Tt=D(ht).val(),co)return Tt;sr.push(Tt)}return sr},set:function(Jt,Tt){for(var ht,yn,vi=Jt.options,Yi=D.makeArray(Tt),co=vi.length;co--;)((yn=vi[co]).selected=D.inArray(D.valHooks.option.get(yn),Yi)>-1)&&(ht=!0);return ht||(Jt.selectedIndex=-1),Yi}}}}),D.each(["radio","checkbox"],function(){D.valHooks[this]={set:function(Jt,Tt){if(Array.isArray(Tt))return Jt.checked=D.inArray(D(Jt).val(),Tt)>-1}},k.checkOn||(D.valHooks[this].get=function(Jt){return null===Jt.getAttribute("value")?"on":Jt.value})});var ri=n.location,mo={guid:Date.now()},Ii=/\?/;D.parseXML=function(Jt){var Tt,ht;if(!Jt||"string"!=typeof Jt)return null;try{Tt=(new n.DOMParser).parseFromString(Jt,"text/xml")}catch{}return ht=Tt&&Tt.getElementsByTagName("parsererror")[0],(!Tt||ht)&&D.error("Invalid XML: "+(ht?D.map(ht.childNodes,function(yn){return yn.textContent}).join("\n"):Jt)),Tt};var yo=/^(?:focusinfocus|focusoutblur)$/,lr=function(Jt){Jt.stopPropagation()};D.extend(D.event,{trigger:function(Jt,Tt,ht,yn){var vi,Yi,co,sr,yr,Ur,ss,gs,Pr=[ht||M],ys=R.call(Jt,"type")?Jt.type:Jt,da=R.call(Jt,"namespace")?Jt.namespace.split("."):[];if(Yi=gs=co=ht=ht||M,3!==ht.nodeType&&8!==ht.nodeType&&!yo.test(ys+D.event.triggered)&&(ys.indexOf(".")>-1&&(da=ys.split("."),ys=da.shift(),da.sort()),yr=ys.indexOf(":")<0&&"on"+ys,(Jt=Jt[D.expando]?Jt:new D.Event(ys,"object"==typeof Jt&&Jt)).isTrigger=yn?2:3,Jt.namespace=da.join("."),Jt.rnamespace=Jt.namespace?new RegExp("(^|\\.)"+da.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,Jt.result=void 0,Jt.target||(Jt.target=ht),Tt=null==Tt?[Jt]:D.makeArray(Tt,[Jt]),ss=D.event.special[ys]||{},yn||!ss.trigger||!1!==ss.trigger.apply(ht,Tt))){if(!yn&&!ss.noBubble&&!g(ht)){for(yo.test((sr=ss.delegateType||ys)+ys)||(Yi=Yi.parentNode);Yi;Yi=Yi.parentNode)Pr.push(Yi),co=Yi;co===(ht.ownerDocument||M)&&Pr.push(co.defaultView||co.parentWindow||n)}for(vi=0;(Yi=Pr[vi++])&&!Jt.isPropagationStopped();)gs=Yi,Jt.type=vi>1?sr:ss.bindType||ys,(Ur=(sn.get(Yi,"events")||Object.create(null))[Jt.type]&&sn.get(Yi,"handle"))&&Ur.apply(Yi,Tt),(Ur=yr&&Yi[yr])&&Ur.apply&&Wt(Yi)&&(Jt.result=Ur.apply(Yi,Tt),!1===Jt.result&&Jt.preventDefault());return Jt.type=ys,!yn&&!Jt.isDefaultPrevented()&&(!ss._default||!1===ss._default.apply(Pr.pop(),Tt))&&Wt(ht)&&yr&&w(ht[ys])&&!g(ht)&&((co=ht[yr])&&(ht[yr]=null),D.event.triggered=ys,Jt.isPropagationStopped()&&gs.addEventListener(ys,lr),ht[ys](),Jt.isPropagationStopped()&&gs.removeEventListener(ys,lr),D.event.triggered=void 0,co&&(ht[yr]=co)),Jt.result}},simulate:function(Jt,Tt,ht){var yn=D.extend(new D.Event,ht,{type:Jt,isSimulated:!0});D.event.trigger(yn,null,Tt)}}),D.fn.extend({trigger:function(Jt,Tt){return this.each(function(){D.event.trigger(Jt,Tt,this)})},triggerHandler:function(Jt,Tt){var ht=this[0];if(ht)return D.event.trigger(Jt,Tt,ht,!0)}});var Yr=/\[\]$/,Gs=/\r?\n/g,fi=/^(?:submit|button|image|reset|file)$/i,Ho=/^(?:input|select|textarea|keygen)/i;function _t(Jt,Tt,ht,yn){var vi;if(Array.isArray(Tt))D.each(Tt,function(Yi,co){ht||Yr.test(Jt)?yn(Jt,co):_t(Jt+"["+("object"==typeof co&&null!=co?Yi:"")+"]",co,ht,yn)});else if(ht||"object"!==b(Tt))yn(Jt,Tt);else for(vi in Tt)_t(Jt+"["+vi+"]",Tt[vi],ht,yn)}D.param=function(Jt,Tt){var ht,yn=[],vi=function(Yi,co){var sr=w(co)?co():co;yn[yn.length]=encodeURIComponent(Yi)+"="+encodeURIComponent(sr??"")};if(null==Jt)return"";if(Array.isArray(Jt)||Jt.jquery&&!D.isPlainObject(Jt))D.each(Jt,function(){vi(this.name,this.value)});else for(ht in Jt)_t(ht,Jt[ht],Tt,vi);return yn.join("&")},D.fn.extend({serialize:function(){return D.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var Jt=D.prop(this,"elements");return Jt?D.makeArray(Jt):this}).filter(function(){var Jt=this.type;return this.name&&!D(this).is(":disabled")&&Ho.test(this.nodeName)&&!fi.test(Jt)&&(this.checked||!It.test(Jt))}).map(function(Jt,Tt){var ht=D(this).val();return null==ht?null:Array.isArray(ht)?D.map(ht,function(yn){return{name:Tt.name,value:yn.replace(Gs,"\r\n")}}):{name:Tt.name,value:ht.replace(Gs,"\r\n")}}).get()}});var Zn=/%20/g,qo=/#.*$/,Cr=/([?&])_=[^&]*/,kr=/^(.*?):[ \t]*([^\r\n]*)$/gm,Us=/^(?:GET|HEAD)$/,Ts=/^\/\//,Ss={},Ua={},$o="*/".concat("*"),Ar=M.createElement("a");function No(Jt){return function(Tt,ht){"string"!=typeof Tt&&(ht=Tt,Tt="*");var yn,vi=0,Yi=Tt.toLowerCase().match(Te)||[];if(w(ht))for(;yn=Yi[vi++];)"+"===yn[0]?(yn=yn.slice(1)||"*",(Jt[yn]=Jt[yn]||[]).unshift(ht)):(Jt[yn]=Jt[yn]||[]).push(ht)}}function qr(Jt,Tt,ht,yn){var vi={},Yi=Jt===Ua;function co(sr){var yr;return vi[sr]=!0,D.each(Jt[sr]||[],function(Ur,ss){var gs=ss(Tt,ht,yn);return"string"!=typeof gs||Yi||vi[gs]?Yi?!(yr=gs):void 0:(Tt.dataTypes.unshift(gs),co(gs),!1)}),yr}return co(Tt.dataTypes[0])||!vi["*"]&&co("*")}function js(Jt,Tt){var ht,yn,vi=D.ajaxSettings.flatOptions||{};for(ht in Tt)void 0!==Tt[ht]&&((vi[ht]?Jt:yn||(yn={}))[ht]=Tt[ht]);return yn&&D.extend(!0,Jt,yn),Jt}Ar.href=ri.href,D.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ri.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ri.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$o,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":D.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(Jt,Tt){return Tt?js(js(Jt,D.ajaxSettings),Tt):js(D.ajaxSettings,Jt)},ajaxPrefilter:No(Ss),ajaxTransport:No(Ua),ajax:function(Jt,Tt){"object"==typeof Jt&&(Tt=Jt,Jt=void 0);var ht,yn,vi,Yi,co,sr,yr,Ur,ss,gs,Pr=D.ajaxSetup({},Tt=Tt||{}),ys=Pr.context||Pr,da=Pr.context&&(ys.nodeType||ys.jquery)?D(ys):D.event,Va=D.Deferred(),ga=D.Callbacks("once memory"),al=Pr.statusCode||{},ur={},La={},ra="canceled",Ls={readyState:0,getResponseHeader:function(Xe){var Ke;if(yr){if(!Yi)for(Yi={};Ke=kr.exec(vi);)Yi[Ke[1].toLowerCase()+" "]=(Yi[Ke[1].toLowerCase()+" "]||[]).concat(Ke[2]);Ke=Yi[Xe.toLowerCase()+" "]}return null==Ke?null:Ke.join(", ")},getAllResponseHeaders:function(){return yr?vi:null},setRequestHeader:function(Xe,Ke){return null==yr&&(Xe=La[Xe.toLowerCase()]=La[Xe.toLowerCase()]||Xe,ur[Xe]=Ke),this},overrideMimeType:function(Xe){return null==yr&&(Pr.mimeType=Xe),this},statusCode:function(Xe){var Ke;if(Xe)if(yr)Ls.always(Xe[Ls.status]);else for(Ke in Xe)al[Ke]=[al[Ke],Xe[Ke]];return this},abort:function(Xe){var Ke=Xe||ra;return ht&&ht.abort(Ke),vn(0,Ke),this}};if(Va.promise(Ls),Pr.url=((Jt||Pr.url||ri.href)+"").replace(Ts,ri.protocol+"//"),Pr.type=Tt.method||Tt.type||Pr.method||Pr.type,Pr.dataTypes=(Pr.dataType||"*").toLowerCase().match(Te)||[""],null==Pr.crossDomain){sr=M.createElement("a");try{sr.href=Pr.url,sr.href=sr.href,Pr.crossDomain=Ar.protocol+"//"+Ar.host!=sr.protocol+"//"+sr.host}catch{Pr.crossDomain=!0}}if(Pr.data&&Pr.processData&&"string"!=typeof Pr.data&&(Pr.data=D.param(Pr.data,Pr.traditional)),qr(Ss,Pr,Tt,Ls),yr)return Ls;for(ss in(Ur=D.event&&Pr.global)&&0==D.active++&&D.event.trigger("ajaxStart"),Pr.type=Pr.type.toUpperCase(),Pr.hasContent=!Us.test(Pr.type),yn=Pr.url.replace(qo,""),Pr.hasContent?Pr.data&&Pr.processData&&0===(Pr.contentType||"").indexOf("application/x-www-form-urlencoded")&&(Pr.data=Pr.data.replace(Zn,"+")):(gs=Pr.url.slice(yn.length),Pr.data&&(Pr.processData||"string"==typeof Pr.data)&&(yn+=(Ii.test(yn)?"&":"?")+Pr.data,delete Pr.data),!1===Pr.cache&&(yn=yn.replace(Cr,"$1"),gs=(Ii.test(yn)?"&":"?")+"_="+mo.guid+++gs),Pr.url=yn+gs),Pr.ifModified&&(D.lastModified[yn]&&Ls.setRequestHeader("If-Modified-Since",D.lastModified[yn]),D.etag[yn]&&Ls.setRequestHeader("If-None-Match",D.etag[yn])),(Pr.data&&Pr.hasContent&&!1!==Pr.contentType||Tt.contentType)&&Ls.setRequestHeader("Content-Type",Pr.contentType),Ls.setRequestHeader("Accept",Pr.dataTypes[0]&&Pr.accepts[Pr.dataTypes[0]]?Pr.accepts[Pr.dataTypes[0]]+("*"!==Pr.dataTypes[0]?", "+$o+"; q=0.01":""):Pr.accepts["*"]),Pr.headers)Ls.setRequestHeader(ss,Pr.headers[ss]);if(Pr.beforeSend&&(!1===Pr.beforeSend.call(ys,Ls,Pr)||yr))return Ls.abort();if(ra="abort",ga.add(Pr.complete),Ls.done(Pr.success),Ls.fail(Pr.error),ht=qr(Ua,Pr,Tt,Ls)){if(Ls.readyState=1,Ur&&da.trigger("ajaxSend",[Ls,Pr]),yr)return Ls;Pr.async&&Pr.timeout>0&&(co=n.setTimeout(function(){Ls.abort("timeout")},Pr.timeout));try{yr=!1,ht.send(ur,vn)}catch(Xe){if(yr)throw Xe;vn(-1,Xe)}}else vn(-1,"No Transport");function vn(Xe,Ke,ze,St){var it,Dt,Hn,Ui,Co,Sn=Ke;yr||(yr=!0,co&&n.clearTimeout(co),ht=void 0,vi=St||"",Ls.readyState=Xe>0?4:0,it=Xe>=200&&Xe<300||304===Xe,ze&&(Ui=function Ds(Jt,Tt,ht){for(var yn,vi,Yi,co,sr=Jt.contents,yr=Jt.dataTypes;"*"===yr[0];)yr.shift(),void 0===yn&&(yn=Jt.mimeType||Tt.getResponseHeader("Content-Type"));if(yn)for(vi in sr)if(sr[vi]&&sr[vi].test(yn)){yr.unshift(vi);break}if(yr[0]in ht)Yi=yr[0];else{for(vi in ht){if(!yr[0]||Jt.converters[vi+" "+yr[0]]){Yi=vi;break}co||(co=vi)}Yi=Yi||co}if(Yi)return Yi!==yr[0]&&yr.unshift(Yi),ht[Yi]}(Pr,Ls,ze)),!it&&D.inArray("script",Pr.dataTypes)>-1&&D.inArray("json",Pr.dataTypes)<0&&(Pr.converters["text script"]=function(){}),Ui=function Zr(Jt,Tt,ht,yn){var vi,Yi,co,sr,yr,Ur={},ss=Jt.dataTypes.slice();if(ss[1])for(co in Jt.converters)Ur[co.toLowerCase()]=Jt.converters[co];for(Yi=ss.shift();Yi;)if(Jt.responseFields[Yi]&&(ht[Jt.responseFields[Yi]]=Tt),!yr&&yn&&Jt.dataFilter&&(Tt=Jt.dataFilter(Tt,Jt.dataType)),yr=Yi,Yi=ss.shift())if("*"===Yi)Yi=yr;else if("*"!==yr&&yr!==Yi){if(!(co=Ur[yr+" "+Yi]||Ur["* "+Yi]))for(vi in Ur)if((sr=vi.split(" "))[1]===Yi&&(co=Ur[yr+" "+sr[0]]||Ur["* "+sr[0]])){!0===co?co=Ur[vi]:!0!==Ur[vi]&&(Yi=sr[0],ss.unshift(sr[1]));break}if(!0!==co)if(co&&Jt.throws)Tt=co(Tt);else try{Tt=co(Tt)}catch(gs){return{state:"parsererror",error:co?gs:"No conversion from "+yr+" to "+Yi}}}return{state:"success",data:Tt}}(Pr,Ui,Ls,it),it?(Pr.ifModified&&((Co=Ls.getResponseHeader("Last-Modified"))&&(D.lastModified[yn]=Co),(Co=Ls.getResponseHeader("etag"))&&(D.etag[yn]=Co)),204===Xe||"HEAD"===Pr.type?Sn="nocontent":304===Xe?Sn="notmodified":(Sn=Ui.state,Dt=Ui.data,it=!(Hn=Ui.error))):(Hn=Sn,(Xe||!Sn)&&(Sn="error",Xe<0&&(Xe=0))),Ls.status=Xe,Ls.statusText=(Ke||Sn)+"",it?Va.resolveWith(ys,[Dt,Sn,Ls]):Va.rejectWith(ys,[Ls,Sn,Hn]),Ls.statusCode(al),al=void 0,Ur&&da.trigger(it?"ajaxSuccess":"ajaxError",[Ls,Pr,it?Dt:Hn]),ga.fireWith(ys,[Ls,Sn]),Ur&&(da.trigger("ajaxComplete",[Ls,Pr]),--D.active||D.event.trigger("ajaxStop")))}return Ls},getJSON:function(Jt,Tt,ht){return D.get(Jt,Tt,ht,"json")},getScript:function(Jt,Tt){return D.get(Jt,void 0,Tt,"script")}}),D.each(["get","post"],function(Jt,Tt){D[Tt]=function(ht,yn,vi,Yi){return w(yn)&&(Yi=Yi||vi,vi=yn,yn=void 0),D.ajax(D.extend({url:ht,type:Tt,dataType:Yi,data:yn,success:vi},D.isPlainObject(ht)&&ht))}}),D.ajaxPrefilter(function(Jt){var Tt;for(Tt in Jt.headers)"content-type"===Tt.toLowerCase()&&(Jt.contentType=Jt.headers[Tt]||"")}),D._evalUrl=function(Jt,Tt,ht){return D.ajax({url:Jt,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(yn){D.globalEval(yn,Tt,ht)}})},D.fn.extend({wrapAll:function(Jt){var Tt;return this[0]&&(w(Jt)&&(Jt=Jt.call(this[0])),Tt=D(Jt,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&Tt.insertBefore(this[0]),Tt.map(function(){for(var ht=this;ht.firstElementChild;)ht=ht.firstElementChild;return ht}).append(this)),this},wrapInner:function(Jt){return w(Jt)?this.each(function(Tt){D(this).wrapInner(Jt.call(this,Tt))}):this.each(function(){var Tt=D(this),ht=Tt.contents();ht.length?ht.wrapAll(Jt):Tt.append(Jt)})},wrap:function(Jt){var Tt=w(Jt);return this.each(function(ht){D(this).wrapAll(Tt?Jt.call(this,ht):Jt)})},unwrap:function(Jt){return this.parent(Jt).not("body").each(function(){D(this).replaceWith(this.childNodes)}),this}}),D.expr.pseudos.hidden=function(Jt){return!D.expr.pseudos.visible(Jt)},D.expr.pseudos.visible=function(Jt){return!!(Jt.offsetWidth||Jt.offsetHeight||Jt.getClientRects().length)},D.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch{}};var ls={0:200,1223:204},Hs=D.ajaxSettings.xhr();k.cors=!!Hs&&"withCredentials"in Hs,k.ajax=Hs=!!Hs,D.ajaxTransport(function(Jt){var Tt,ht;if(k.cors||Hs&&!Jt.crossDomain)return{send:function(yn,vi){var Yi,co=Jt.xhr();if(co.open(Jt.type,Jt.url,Jt.async,Jt.username,Jt.password),Jt.xhrFields)for(Yi in Jt.xhrFields)co[Yi]=Jt.xhrFields[Yi];for(Yi in Jt.mimeType&&co.overrideMimeType&&co.overrideMimeType(Jt.mimeType),!Jt.crossDomain&&!yn["X-Requested-With"]&&(yn["X-Requested-With"]="XMLHttpRequest"),yn)co.setRequestHeader(Yi,yn[Yi]);Tt=function(sr){return function(){Tt&&(Tt=ht=co.onload=co.onerror=co.onabort=co.ontimeout=co.onreadystatechange=null,"abort"===sr?co.abort():"error"===sr?"number"!=typeof co.status?vi(0,"error"):vi(co.status,co.statusText):vi(ls[co.status]||co.status,co.statusText,"text"!==(co.responseType||"text")||"string"!=typeof co.responseText?{binary:co.response}:{text:co.responseText},co.getAllResponseHeaders()))}},co.onload=Tt(),ht=co.onerror=co.ontimeout=Tt("error"),void 0!==co.onabort?co.onabort=ht:co.onreadystatechange=function(){4===co.readyState&&n.setTimeout(function(){Tt&&ht()})},Tt=Tt("abort");try{co.send(Jt.hasContent&&Jt.data||null)}catch(sr){if(Tt)throw sr}},abort:function(){Tt&&Tt()}}}),D.ajaxPrefilter(function(Jt){Jt.crossDomain&&(Jt.contents.script=!1)}),D.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(Jt){return D.globalEval(Jt),Jt}}}),D.ajaxPrefilter("script",function(Jt){void 0===Jt.cache&&(Jt.cache=!1),Jt.crossDomain&&(Jt.type="GET")}),D.ajaxTransport("script",function(Jt){var Tt,ht;if(Jt.crossDomain||Jt.scriptAttrs)return{send:function(yn,vi){Tt=D("<script>").attr(Jt.scriptAttrs||{}).prop({charset:Jt.scriptCharset,src:Jt.url}).on("load error",ht=function(Yi){Tt.remove(),ht=null,Yi&&vi("error"===Yi.type?404:200,Yi.type)}),M.head.appendChild(Tt[0])},abort:function(){ht&&ht()}}});var Jt,Js=[],Wa=/(=)\?(?=&|$)|\?\?/;D.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var Jt=Js.pop()||D.expando+"_"+mo.guid++;return this[Jt]=!0,Jt}}),D.ajaxPrefilter("json jsonp",function(Jt,Tt,ht){var yn,vi,Yi,co=!1!==Jt.jsonp&&(Wa.test(Jt.url)?"url":"string"==typeof Jt.data&&0===(Jt.contentType||"").indexOf("application/x-www-form-urlencoded")&&Wa.test(Jt.data)&&"data");if(co||"jsonp"===Jt.dataTypes[0])return yn=Jt.jsonpCallback=w(Jt.jsonpCallback)?Jt.jsonpCallback():Jt.jsonpCallback,co?Jt[co]=Jt[co].replace(Wa,"$1"+yn):!1!==Jt.jsonp&&(Jt.url+=(Ii.test(Jt.url)?"&":"?")+Jt.jsonp+"="+yn),Jt.converters["script json"]=function(){return Yi||D.error(yn+" was not called"),Yi[0]},Jt.dataTypes[0]="json",vi=n[yn],n[yn]=function(){Yi=arguments},ht.always(function(){void 0===vi?D(n).removeProp(yn):n[yn]=vi,Jt[yn]&&(Jt.jsonpCallback=Tt.jsonpCallback,Js.push(yn)),Yi&&w(vi)&&vi(Yi[0]),Yi=vi=void 0}),"script"}),k.createHTMLDocument=((Jt=M.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),D.parseHTML=function(Jt,Tt,ht){return"string"!=typeof Jt?[]:("boolean"==typeof Tt&&(ht=Tt,Tt=!1),Tt||(k.createHTMLDocument?((yn=(Tt=M.implementation.createHTMLDocument("")).createElement("base")).href=M.location.href,Tt.head.appendChild(yn)):Tt=M),Yi=!ht&&[],(vi=H.exec(Jt))?[Tt.createElement(vi[1])]:(vi=tt([Jt],Tt,Yi),Yi&&Yi.length&&D(Yi).remove(),D.merge([],vi.childNodes)));var yn,vi,Yi},D.fn.load=function(Jt,Tt,ht){var yn,vi,Yi,co=this,sr=Jt.indexOf(" ");return sr>-1&&(yn=Rr(Jt.slice(sr)),Jt=Jt.slice(0,sr)),w(Tt)?(ht=Tt,Tt=void 0):Tt&&"object"==typeof Tt&&(vi="POST"),co.length>0&&D.ajax({url:Jt,type:vi||"GET",dataType:"html",data:Tt}).done(function(yr){Yi=arguments,co.html(yn?D("<div>").append(D.parseHTML(yr)).find(yn):yr)}).always(ht&&function(yr,Ur){co.each(function(){ht.apply(this,Yi||[yr.responseText,Ur,yr])})}),this},D.expr.pseudos.animated=function(Jt){return D.grep(D.timers,function(Tt){return Jt===Tt.elem}).length},D.offset={setOffset:function(Jt,Tt,ht){var yn,vi,Yi,co,sr,yr,ss=D.css(Jt,"position"),gs=D(Jt),Pr={};"static"===ss&&(Jt.style.position="relative"),sr=gs.offset(),Yi=D.css(Jt,"top"),yr=D.css(Jt,"left"),("absolute"===ss||"fixed"===ss)&&(Yi+yr).indexOf("auto")>-1?(co=(yn=gs.position()).top,vi=yn.left):(co=parseFloat(Yi)||0,vi=parseFloat(yr)||0),w(Tt)&&(Tt=Tt.call(Jt,ht,D.extend({},sr))),null!=Tt.top&&(Pr.top=Tt.top-sr.top+co),null!=Tt.left&&(Pr.left=Tt.left-sr.left+vi),"using"in Tt?Tt.using.call(Jt,Pr):gs.css(Pr)}},D.fn.extend({offset:function(Jt){if(arguments.length)return void 0===Jt?this:this.each(function(vi){D.offset.setOffset(this,Jt,vi)});var Tt,ht,yn=this[0];return yn?yn.getClientRects().length?{top:(Tt=yn.getBoundingClientRect()).top+(ht=yn.ownerDocument.defaultView).pageYOffset,left:Tt.left+ht.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var Jt,Tt,ht,yn=this[0],vi={top:0,left:0};if("fixed"===D.css(yn,"position"))Tt=yn.getBoundingClientRect();else{for(Tt=this.offset(),ht=yn.ownerDocument,Jt=yn.offsetParent||ht.documentElement;Jt&&(Jt===ht.body||Jt===ht.documentElement)&&"static"===D.css(Jt,"position");)Jt=Jt.parentNode;Jt&&Jt!==yn&&1===Jt.nodeType&&((vi=D(Jt).offset()).top+=D.css(Jt,"borderTopWidth",!0),vi.left+=D.css(Jt,"borderLeftWidth",!0))}return{top:Tt.top-vi.top-D.css(yn,"marginTop",!0),left:Tt.left-vi.left-D.css(yn,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var Jt=this.offsetParent;Jt&&"static"===D.css(Jt,"position");)Jt=Jt.offsetParent;return Jt||Bn})}}),D.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(Jt,Tt){var ht="pageYOffset"===Tt;D.fn[Jt]=function(yn){return An(this,function(vi,Yi,co){var sr;if(g(vi)?sr=vi:9===vi.nodeType&&(sr=vi.defaultView),void 0===co)return sr?sr[Tt]:vi[Yi];sr?sr.scrollTo(ht?sr.pageXOffset:co,ht?co:sr.pageYOffset):vi[Yi]=co},Jt,yn,arguments.length)}}),D.each(["top","left"],function(Jt,Tt){D.cssHooks[Tt]=oo(k.pixelPosition,function(ht,yn){if(yn)return yn=Zi(ht,Tt),Xi.test(yn)?D(ht).position()[Tt]+"px":yn})}),D.each({Height:"height",Width:"width"},function(Jt,Tt){D.each({padding:"inner"+Jt,content:Tt,"":"outer"+Jt},function(ht,yn){D.fn[yn]=function(vi,Yi){var co=arguments.length&&(ht||"boolean"!=typeof vi),sr=ht||(!0===vi||!0===Yi?"margin":"border");return An(this,function(yr,Ur,ss){var gs;return g(yr)?0===yn.indexOf("outer")?yr["inner"+Jt]:yr.document.documentElement["client"+Jt]:9===yr.nodeType?(gs=yr.documentElement,Math.max(yr.body["scroll"+Jt],gs["scroll"+Jt],yr.body["offset"+Jt],gs["offset"+Jt],gs["client"+Jt])):void 0===ss?D.css(yr,Ur,sr):D.style(yr,Ur,ss,sr)},Tt,co?vi:void 0,co)}})}),D.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(Jt,Tt){D.fn[Tt]=function(ht){return this.on(Tt,ht)}}),D.fn.extend({bind:function(Jt,Tt,ht){return this.on(Jt,null,Tt,ht)},unbind:function(Jt,Tt){return this.off(Jt,null,Tt)},delegate:function(Jt,Tt,ht,yn){return this.on(Tt,Jt,ht,yn)},undelegate:function(Jt,Tt,ht){return 1===arguments.length?this.off(Jt,"**"):this.off(Tt,Jt||"**",ht)},hover:function(Jt,Tt){return this.on("mouseenter",Jt).on("mouseleave",Tt||Jt)}}),D.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(Jt,Tt){D.fn[Tt]=function(ht,yn){return arguments.length>0?this.on(Tt,null,ht,yn):this.trigger(Tt)}});var ll=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;D.proxy=function(Jt,Tt){var ht,yn,vi;if("string"==typeof Tt&&(ht=Jt[Tt],Tt=Jt,Jt=ht),w(Jt))return yn=u.call(arguments,2),vi=function(){return Jt.apply(Tt||this,yn.concat(u.call(arguments)))},vi.guid=Jt.guid=Jt.guid||D.guid++,vi},D.holdReady=function(Jt){Jt?D.readyWait++:D.ready(!0)},D.isArray=Array.isArray,D.parseJSON=JSON.parse,D.nodeName=P,D.isFunction=w,D.isWindow=g,D.camelCase=ut,D.type=b,D.now=Date.now,D.isNumeric=function(Jt){var Tt=D.type(Jt);return("number"===Tt||"string"===Tt)&&!isNaN(Jt-parseFloat(Jt))},D.trim=function(Jt){return null==Jt?"":(Jt+"").replace(ll,"$1")},void 0!==(e=function(){return D}.apply(y,[]))&&(he.exports=e);var Za=n.jQuery,sl=n.$;return D.noConflict=function(Jt){return n.$===D&&(n.$=sl),Jt&&n.jQuery===D&&(n.jQuery=Za),D},typeof o>"u"&&(n.jQuery=n.$=D),D})},50426:function(he,y,i){var e,n;e=function(){"use strict";Array.isArray||(Array.isArray=function(u){return"[object Array]"===Object.prototype.toString.call(u)});var a={},l={"==":function(u,d){return u==d},"===":function(u,d){return u===d},"!=":function(u,d){return u!=d},"!==":function(u,d){return u!==d},">":function(u,d){return u>d},">=":function(u,d){return u>=d},"<":function(u,d,s){return void 0===s?u<d:u<d&&d<s},"<=":function(u,d,s){return void 0===s?u<=d:u<=d&&d<=s},"!!":function(u){return a.truthy(u)},"!":function(u){return!a.truthy(u)},"%":function(u,d){return u%d},log:function(u){return console.log(u),u},in:function(u,d){return!(!d||typeof d.indexOf>"u")&&-1!==d.indexOf(u)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(u,d,s){if(s<0){var A=String(u).substr(d);return A.substr(0,A.length+s)}return String(u).substr(d,s)},"+":function(){return Array.prototype.reduce.call(arguments,function(u,d){return parseFloat(u,10)+parseFloat(d,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(u,d){return parseFloat(u,10)*parseFloat(d,10)})},"-":function(u,d){return void 0===d?-u:u-d},"/":function(u,d){return u/d},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(u,d){return u.concat(d)},[])},var:function(u,d){var s=void 0===d?null:d,A=this;if(typeof u>"u"||""===u||null===u)return A;for(var _=String(u).split("."),C=0;C<_.length;C++)if(null==A||void 0===(A=A[_[C]]))return s;return A},missing:function(){for(var u=[],d=Array.isArray(arguments[0])?arguments[0]:arguments,s=0;s<d.length;s++){var A=d[s],_=a.apply({var:A},this);(null===_||""===_)&&u.push(A)}return u},missing_some:function(u,d){var s=a.apply({missing:d},this);return d.length-s.length>=u?[]:s}};return a.is_logic=function(u){return"object"==typeof u&&null!==u&&!Array.isArray(u)&&1===Object.keys(u).length},a.truthy=function(u){return!(Array.isArray(u)&&0===u.length||!u)},a.get_operator=function(u){return Object.keys(u)[0]},a.get_values=function(u){return u[a.get_operator(u)]},a.apply=function(u,d){if(Array.isArray(u))return u.map(function(g){return a.apply(g,d)});if(!a.is_logic(u))return u;var _,C,R,x,f,s=a.get_operator(u),A=u[s];if(Array.isArray(A)||(A=[A]),"if"===s||"?:"==s){for(_=0;_<A.length-1;_+=2)if(a.truthy(a.apply(A[_],d)))return a.apply(A[_+1],d);return A.length===_+1?a.apply(A[_],d):null}if("and"===s){for(_=0;_<A.length;_+=1)if(C=a.apply(A[_],d),!a.truthy(C))return C;return C}if("or"===s){for(_=0;_<A.length;_+=1)if(C=a.apply(A[_],d),a.truthy(C))return C;return C}if("filter"===s)return x=a.apply(A[0],d),R=A[1],Array.isArray(x)?x.filter(function(g){return a.truthy(a.apply(R,g))}):[];if("map"===s)return x=a.apply(A[0],d),R=A[1],Array.isArray(x)?x.map(function(g){return a.apply(R,g)}):[];if("reduce"===s)return x=a.apply(A[0],d),R=A[1],f=typeof A[2]<"u"?a.apply(A[2],d):null,Array.isArray(x)?x.reduce(function(g,M){return a.apply(R,{current:M,accumulator:g})},f):f;if("all"===s){if(x=a.apply(A[0],d),R=A[1],!Array.isArray(x)||!x.length)return!1;for(_=0;_<x.length;_+=1)if(!a.truthy(a.apply(R,x[_])))return!1;return!0}if("none"===s){if(x=a.apply(A[0],d),R=A[1],!Array.isArray(x)||!x.length)return!0;for(_=0;_<x.length;_+=1)if(a.truthy(a.apply(R,x[_])))return!1;return!0}if("some"===s){if(x=a.apply(A[0],d),R=A[1],!Array.isArray(x)||!x.length)return!1;for(_=0;_<x.length;_+=1)if(a.truthy(a.apply(R,x[_])))return!0;return!1}if(A=A.map(function(g){return a.apply(g,d)}),l.hasOwnProperty(s)&&"function"==typeof l[s])return l[s].apply(d,A);if(s.indexOf(".")>0){var k=String(s).split("."),w=l;for(_=0;_<k.length;_++){if(!w.hasOwnProperty(k[_]))throw new Error("Unrecognized operation "+s+" (failed at "+k.slice(0,_+1).join(".")+")");w=w[k[_]]}return w.apply(d,A)}throw new Error("Unrecognized operation "+s)},a.uses_data=function(u){var d=[];if(a.is_logic(u)){var s=a.get_operator(u),A=u[s];Array.isArray(A)||(A=[A]),"var"===s?d.push(A[0]):A.forEach(function(_){d.push.apply(d,a.uses_data(_))})}return function o(u){for(var d=[],s=0,A=u.length;s<A;s++)-1===d.indexOf(u[s])&&d.push(u[s]);return d}(d)},a.add_operation=function(u,d){l[u]=d},a.rm_operation=function(u){delete l[u]},a.rule_like=function(u,d){if(d===u||"@"===d)return!0;if("number"===d)return"number"==typeof u;if("string"===d)return"string"==typeof u;if("array"===d)return Array.isArray(u)&&!a.is_logic(u);if(a.is_logic(d)){if(a.is_logic(u)){var s=a.get_operator(d),A=a.get_operator(u);if("@"===s||s===A)return a.rule_like(a.get_values(u,!1),a.get_values(d,!1))}return!1}if(Array.isArray(d)){if(Array.isArray(u)){if(d.length!==u.length)return!1;for(var _=0;_<d.length;_+=1)if(!a.rule_like(u[_],d[_]))return!1;return!0}return!1}return!1},a},void 0!==(n=e.call(y,i,y,he))&&(he.exports=n)},81562:(he,y,i)=>{var n,a;(a=function(){"use strict";var u={DAY:864e5,HOUR:36e5,MINUTE:6e4,SECOND:1e3,BASELINE_YEAR:2014,MAX_SCORE:864e6,AMBIGUITIES:{"America/Denver":["America/Mazatlan"],"America/Chicago":["America/Mexico_City"],"America/Asuncion":["America/Campo_Grande","America/Santiago"],"America/Montevideo":["America/Sao_Paulo","America/Santiago"],"Asia/Beirut":["Asia/Amman","Asia/Jerusalem","Europe/Helsinki","Asia/Damascus","Africa/Cairo","Asia/Gaza","Europe/Minsk","Africa/Windhoek"],"Pacific/Auckland":["Pacific/Fiji"],"America/Los_Angeles":["America/Santa_Isabel"],"America/New_York":["America/Havana"],"America/Halifax":["America/Goose_Bay"],"America/Godthab":["America/Miquelon"],"Asia/Dubai":["Asia/Yerevan"],"Asia/Jakarta":["Asia/Krasnoyarsk"],"Asia/Shanghai":["Asia/Irkutsk","Australia/Perth"],"Australia/Sydney":["Australia/Lord_Howe"],"Asia/Tokyo":["Asia/Yakutsk"],"Asia/Dhaka":["Asia/Omsk"],"Asia/Baku":["Asia/Yerevan"],"Australia/Brisbane":["Asia/Vladivostok"],"Pacific/Noumea":["Asia/Vladivostok"],"Pacific/Majuro":["Asia/Kamchatka","Pacific/Fiji"],"Pacific/Tongatapu":["Pacific/Apia"],"Asia/Baghdad":["Europe/Minsk","Europe/Moscow"],"Asia/Karachi":["Asia/Yekaterinburg"],"Africa/Johannesburg":["Asia/Gaza","Africa/Cairo"]}},d=function(g){var M=-g.getTimezoneOffset();return null!==M?M:0},s=function(){for(var g=[],M=0;M<=11;M++)for(var p=1;p<=28;p++){var E=d(new Date(u.BASELINE_YEAR,M,p));g?g&&g[g.length-1]!==E&&g.push(E):g.push()}return g},C=function(g){for(var M=new Date(g,0,1,0,0,1,0).getTime(),p=new Date(g,12,31,23,59,59).getTime(),E=M,b=new Date(E).getTimezoneOffset(),I=null,L=null;E<p-864e5;){var D=new Date(E),F=D.getTimezoneOffset();F!==b&&(F<b&&(I=D),F>b&&(L=D),b=F),E+=864e5}return!(!I||!L)&&{s:R(I).getTime(),e:R(L).getTime()}},R=function g(M,p,E){typeof p>"u"&&(p=u.DAY,E=u.HOUR);for(var b=new Date(M.getTime()-p).getTime(),I=M.getTime()+p,L=new Date(b).getTimezoneOffset(),D=b,F=null;D<I-E;){var P=new Date(D);if(P.getTimezoneOffset()!==L){F=P;break}D+=E}return p===u.DAY?g(F,u.HOUR,u.MINUTE):p===u.HOUR?g(F,u.MINUTE,u.SECOND):F};return{determine:function(g){var M=!1,p=function(){var g=0,M=s();return M.length>1&&(g=M[0]-M[1]),M.length>3?M[0]+",1,weird":g<0?M[0]+",1":g>0?M[1]+",1,s":M[0]+",0"}();return(g||typeof g>"u")&&(M=function(){var g,M;if(Intl&&typeof Intl<"u"&&typeof Intl.DateTimeFormat<"u"&&typeof(g=Intl.DateTimeFormat())<"u"&&typeof g.resolvedOptions<"u")return(M=g.resolvedOptions().timeZone)&&(M.indexOf("/")>-1||"UTC"===M)?M:void 0}()),M||typeof u.AMBIGUITIES[M=a.olson.timezones[p]]<"u"&&(M=function(g){var E=function(){for(var I=[],L=0;L<a.olson.dst_rules.years.length;L++){var D=C(a.olson.dst_rules.years[L]);I.push(D)}return I}();return function(I){for(var L=0;L<I.length;L++)if(!1!==I[L])return!0;return!1}(E)?function(g,M){for(var p=function(V){for(var K=0,X=0;X<g.length;X++)if(V.rules[X]&&g[X]){if(!(g[X].s>=V.rules[X].s&&g[X].e<=V.rules[X].e)){K="N/A";break}if(K=0,K+=Math.abs(g[X].s-V.rules[X].s),(K+=Math.abs(V.rules[X].e-g[X].e))>u.MAX_SCORE){K="N/A";break}}return function(g,M,p,E){if("N/A"!==p)return p;if("Asia/Beirut"===M){if("Africa/Cairo"===E.name&&13983768e5===g[6].s&&14116788e5===g[6].e||"Asia/Jerusalem"===E.name&&13959648e5===g[6].s&&14118588e5===g[6].e)return 0}else if("America/Santiago"===M){if("America/Asuncion"===E.name&&14124816e5===g[6].s&&1397358e6===g[6].e||"America/Campo_Grande"===E.name&&14136912e5===g[6].s&&13925196e5===g[6].e)return 0}else if("America/Montevideo"===M){if("America/Sao_Paulo"===E.name&&14136876e5===g[6].s&&1392516e6===g[6].e)return 0}else if("Pacific/Auckland"===M&&"Pacific/Fiji"===E.name&&14142456e5===g[6].s&&13961016e5===g[6].e)return 0;return p}(g,M,K,V)},E={},b=a.olson.dst_rules.zones,I=b.length,L=u.AMBIGUITIES[M],D=0;D<I;D++){var F=b[D],P=p(b[D]);"N/A"!==P&&(E[F.name]=P)}for(var O in E)if(E.hasOwnProperty(O))for(var U=0;U<L.length;U++)if(L[U]===O)return O;return M}(E,g):g}(M)),{name:function(){return M},using_intl:g||typeof g>"u",needle:p,offsets:s()}}}}()).olson=a.olson||{},a.olson.timezones={"-720,0":"Etc/GMT+12","-660,0":"Pacific/Pago_Pago","-660,1,s":"Pacific/Apia","-600,1":"America/Adak","-600,0":"Pacific/Honolulu","-570,0":"Pacific/Marquesas","-540,0":"Pacific/Gambier","-540,1":"America/Anchorage","-480,1":"America/Los_Angeles","-480,0":"Pacific/Pitcairn","-420,0":"America/Phoenix","-420,1":"America/Denver","-360,0":"America/Guatemala","-360,1":"America/Chicago","-360,1,s":"Pacific/Easter","-300,0":"America/Bogota","-300,1":"America/New_York","-270,0":"America/Caracas","-240,1":"America/Halifax","-240,0":"America/Santo_Domingo","-240,1,s":"America/Asuncion","-210,1":"America/St_Johns","-180,1":"America/Godthab","-180,0":"America/Buenos_Aires","-180,1,s":"America/Montevideo","-120,0":"America/Noronha","-120,1":"America/Noronha","-60,1":"Atlantic/Azores","-60,0":"Atlantic/Cape_Verde","0,0":"UTC","0,1":"Europe/London","0,1,weird":"Africa/Casablanca","60,1":"Europe/Berlin","60,0":"Africa/Lagos","60,1,weird":"Africa/Casablanca","120,1":"Asia/Beirut","120,1,weird":"Africa/Cairo","120,0":"Africa/Johannesburg","180,0":"Asia/Baghdad","180,1":"Europe/Moscow","210,1":"Asia/Tehran","240,0":"Asia/Dubai","240,1":"Asia/Baku","270,0":"Asia/Kabul","300,1":"Asia/Yekaterinburg","300,0":"Asia/Karachi","330,0":"Asia/Calcutta","345,0":"Asia/Katmandu","360,0":"Asia/Dhaka","360,1":"Asia/Omsk","390,0":"Asia/Rangoon","420,1":"Asia/Krasnoyarsk","420,0":"Asia/Jakarta","480,0":"Asia/Shanghai","480,1":"Asia/Irkutsk","525,0":"Australia/Eucla","525,1,s":"Australia/Eucla","540,1":"Asia/Yakutsk","540,0":"Asia/Tokyo","570,0":"Australia/Darwin","570,1,s":"Australia/Adelaide","600,0":"Australia/Brisbane","600,1":"Asia/Vladivostok","600,1,s":"Australia/Sydney","630,1,s":"Australia/Lord_Howe","660,1":"Asia/Kamchatka","660,0":"Pacific/Noumea","690,0":"Pacific/Norfolk","720,1,s":"Pacific/Auckland","720,0":"Pacific/Majuro","765,1,s":"Pacific/Chatham","780,0":"Pacific/Tongatapu","780,1,s":"Pacific/Apia","840,0":"Pacific/Kiritimati"},a.olson.dst_rules={years:[2008,2009,2010,2011,2012,2013,2014],zones:[{name:"Africa/Cairo",rules:[{e:12199572e5,s:12090744e5},{e:1250802e6,s:1240524e6},{e:12858804e5,s:12840696e5},!1,!1,!1,{e:14116788e5,s:1406844e6}]},{name:"America/Asuncion",rules:[{e:12050316e5,s:12243888e5},{e:12364812e5,s:12558384e5},{e:12709548e5,s:12860784e5},{e:13024044e5,s:1317528e6},{e:1333854e6,s:13495824e5},{e:1364094e6,s:1381032e6},{e:13955436e5,s:14124816e5}]},{name:"America/Campo_Grande",rules:[{e:12032172e5,s:12243888e5},{e:12346668e5,s:12558384e5},{e:12667212e5,s:1287288e6},{e:12981708e5,s:13187376e5},{e:13302252e5,s:1350792e6},{e:136107e7,s:13822416e5},{e:13925196e5,s:14136912e5}]},{name:"America/Goose_Bay",rules:[{e:122559486e4,s:120503526e4},{e:125704446e4,s:123648486e4},{e:128909886e4,s:126853926e4},{e:13205556e5,s:129998886e4},{e:13520052e5,s:13314456e5},{e:13834548e5,s:13628952e5},{e:14149044e5,s:13943448e5}]},{name:"America/Havana",rules:[{e:12249972e5,s:12056436e5},{e:12564468e5,s:12364884e5},{e:12885012e5,s:12685428e5},{e:13211604e5,s:13005972e5},{e:13520052e5,s:13332564e5},{e:13834548e5,s:13628916e5},{e:14149044e5,s:13943412e5}]},{name:"America/Mazatlan",rules:[{e:1225008e6,s:12074724e5},{e:12564576e5,s:1238922e6},{e:1288512e6,s:12703716e5},{e:13199616e5,s:13018212e5},{e:13514112e5,s:13332708e5},{e:13828608e5,s:13653252e5},{e:14143104e5,s:13967748e5}]},{name:"America/Mexico_City",rules:[{e:12250044e5,s:12074688e5},{e:1256454e6,s:12389184e5},{e:12885084e5,s:1270368e6},{e:1319958e6,s:13018176e5},{e:13514076e5,s:13332672e5},{e:13828572e5,s:13653216e5},{e:14143068e5,s:13967712e5}]},{name:"America/Miquelon",rules:[{e:12255984e5,s:12050388e5},{e:1257048e6,s:12364884e5},{e:12891024e5,s:12685428e5},{e:1320552e6,s:12999924e5},{e:13520016e5,s:1331442e6},{e:13834512e5,s:13628916e5},{e:14149008e5,s:13943412e5}]},{name:"America/Santa_Isabel",rules:[{e:12250116e5,s:1207476e6},{e:12564612e5,s:12389256e5},{e:12891204e5,s:12685608e5},{e:132057e7,s:13000104e5},{e:13520196e5,s:133146e7},{e:13834692e5,s:13629096e5},{e:14149188e5,s:13943592e5}]},{name:"America/Santiago",rules:[{e:1206846e6,s:1223784e6},{e:1237086e6,s:12552336e5},{e:127035e7,s:12866832e5},{e:13048236e5,s:13138992e5},{e:13356684e5,s:13465584e5},{e:1367118e6,s:13786128e5},{e:13985676e5,s:14100624e5}]},{name:"America/Sao_Paulo",rules:[{e:12032136e5,s:12243852e5},{e:12346632e5,s:12558348e5},{e:12667176e5,s:12872844e5},{e:12981672e5,s:1318734e6},{e:13302216e5,s:13507884e5},{e:13610664e5,s:1382238e6},{e:1392516e6,s:14136876e5}]},{name:"Asia/Amman",rules:[{e:1225404e6,s:12066552e5},{e:12568536e5,s:12381048e5},{e:12883032e5,s:12695544e5},{e:13197528e5,s:13016088e5},!1,!1,{e:14147064e5,s:13959576e5}]},{name:"Asia/Damascus",rules:[{e:12254868e5,s:120726e7},{e:125685e7,s:12381048e5},{e:12882996e5,s:12701592e5},{e:13197492e5,s:13016088e5},{e:13511988e5,s:13330584e5},{e:13826484e5,s:1364508e6},{e:14147028e5,s:13959576e5}]},{name:"Asia/Dubai",rules:[!1,!1,!1,!1,!1,!1,!1]},{name:"Asia/Gaza",rules:[{e:12199572e5,s:12066552e5},{e:12520152e5,s:12381048e5},{e:1281474e6,s:126964086e4},{e:1312146e6,s:130160886e4},{e:13481784e5,s:13330584e5},{e:13802292e5,s:1364508e6},{e:1414098e6,s:13959576e5}]},{name:"Asia/Irkutsk",rules:[{e:12249576e5,s:12068136e5},{e:12564072e5,s:12382632e5},{e:12884616e5,s:12697128e5},!1,!1,!1,!1]},{name:"Asia/Jerusalem",rules:[{e:12231612e5,s:12066624e5},{e:1254006e6,s:1238112e6},{e:1284246e6,s:12695616e5},{e:131751e7,s:1301616e6},{e:13483548e5,s:13330656e5},{e:13828284e5,s:13645152e5},{e:1414278e6,s:13959648e5}]},{name:"Asia/Kamchatka",rules:[{e:12249432e5,s:12067992e5},{e:12563928e5,s:12382488e5},{e:12884508e5,s:12696984e5},!1,!1,!1,!1]},{name:"Asia/Krasnoyarsk",rules:[{e:12249612e5,s:12068172e5},{e:12564108e5,s:12382668e5},{e:12884652e5,s:12697164e5},!1,!1,!1,!1]},{name:"Asia/Omsk",rules:[{e:12249648e5,s:12068208e5},{e:12564144e5,s:12382704e5},{e:12884688e5,s:126972e7},!1,!1,!1,!1]},{name:"Asia/Vladivostok",rules:[{e:12249504e5,s:12068064e5},{e:12564e8,s:1238256e6},{e:12884544e5,s:12697056e5},!1,!1,!1,!1]},{name:"Asia/Yakutsk",rules:[{e:1224954e6,s:120681e7},{e:12564036e5,s:12382596e5},{e:1288458e6,s:12697092e5},!1,!1,!1,!1]},{name:"Asia/Yekaterinburg",rules:[{e:12249684e5,s:12068244e5},{e:1256418e6,s:1238274e6},{e:12884724e5,s:12697236e5},!1,!1,!1,!1]},{name:"Asia/Yerevan",rules:[{e:1224972e6,s:1206828e6},{e:12564216e5,s:12382776e5},{e:1288476e6,s:12697272e5},{e:13199256e5,s:13011768e5},!1,!1,!1]},{name:"Australia/Lord_Howe",rules:[{e:12074076e5,s:12231342e5},{e:12388572e5,s:12545838e5},{e:12703068e5,s:12860334e5},{e:13017564e5,s:1317483e6},{e:1333206e6,s:13495374e5},{e:13652604e5,s:1380987e6},{e:139671e7,s:14124366e5}]},{name:"Australia/Perth",rules:[{e:12068136e5,s:12249576e5},!1,!1,!1,!1,!1,!1]},{name:"Europe/Helsinki",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Europe/Minsk",rules:[{e:12249792e5,s:12068352e5},{e:12564288e5,s:12382848e5},{e:12884832e5,s:12697344e5},!1,!1,!1,!1]},{name:"Europe/Moscow",rules:[{e:12249756e5,s:12068316e5},{e:12564252e5,s:12382812e5},{e:12884796e5,s:12697308e5},!1,!1,!1,!1]},{name:"Pacific/Apia",rules:[!1,!1,!1,{e:13017528e5,s:13168728e5},{e:13332024e5,s:13489272e5},{e:13652568e5,s:13803768e5},{e:13967064e5,s:14118264e5}]},{name:"Pacific/Fiji",rules:[!1,!1,{e:12696984e5,s:12878424e5},{e:13271544e5,s:1319292e6},{e:1358604e6,s:13507416e5},{e:139005e7,s:1382796e6},{e:14215032e5,s:14148504e5}]},{name:"Europe/London",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Africa/Windhoek",rules:[{e:12207492e5,s:120744e7},{e:12521988e5,s:12388896e5},{e:12836484e5,s:12703392e5},{e:1315098e6,s:13017888e5},{e:13465476e5,s:13332384e5},{e:13779972e5,s:13652928e5},{e:14100516e5,s:13967424e5}]}]},typeof he.exports<"u"?he.exports=a:null!==i.amdD&&null!=i.amdO?void 0!==(n=function(){return a}.apply(y,[]))&&(he.exports=n):window.jstz=a},96726:(he,y,i)=>{"use strict";function e(d){this.message=d}i.r(y),i.d(y,{InvalidTokenError:()=>a,default:()=>u}),(e.prototype=new Error).name="InvalidCharacterError";var n=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(d){var s=String(d).replace(/=+$/,"");if(s.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var A,_,C=0,R=0,x="";_=s.charAt(R++);~_&&(A=C%4?64*A+_:_,C++%4)?x+=String.fromCharCode(255&A>>(-2*C&6)):0)_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(_);return x};function a(d){this.message=d}(a.prototype=new Error).name="InvalidTokenError";const u=function l(d,s){if("string"!=typeof d)throw new a("Invalid token specified");var A=!0===(s=s||{}).header?0:1;try{return JSON.parse(function o(d){var s=d.replace(/-/g,"+").replace(/_/g,"/");switch(s.length%4){case 0:break;case 2:s+="==";break;case 3:s+="=";break;default:throw"Illegal base64url string!"}try{return decodeURIComponent(n(s).replace(/(.)/g,function(_,C){var R=C.charCodeAt(0).toString(16).toUpperCase();return R.length<2&&(R="0"+R),"%"+R}))}catch{return n(s)}}(d.split(".")[A]))}catch(_){throw new a("Invalid token specified: "+_.message)}}},36506:(he,y,i)=>{var o=i(98745)(i(98492),"DataView");he.exports=o},19618:(he,y,i)=>{var e=i(35602),n=i(81499),o=i(52990),a=i(70480),l=i(4469);function u(d){var s=-1,A=null==d?0:d.length;for(this.clear();++s<A;){var _=d[s];this.set(_[0],_[1])}}u.prototype.clear=e,u.prototype.delete=n,u.prototype.get=o,u.prototype.has=a,u.prototype.set=l,he.exports=u},3597:(he,y,i)=>{var e=i(39365),n=i(89343),o=i(34779),a=i(51509),l=i(27137);function u(d){var s=-1,A=null==d?0:d.length;for(this.clear();++s<A;){var _=d[s];this.set(_[0],_[1])}}u.prototype.clear=e,u.prototype.delete=n,u.prototype.get=o,u.prototype.has=a,u.prototype.set=l,he.exports=u},21136:(he,y,i)=>{var o=i(98745)(i(98492),"Map");he.exports=o},21811:(he,y,i)=>{var e=i(17285),n=i(45419),o=i(47253),a=i(81115),l=i(76648);function u(d){var s=-1,A=null==d?0:d.length;for(this.clear();++s<A;){var _=d[s];this.set(_[0],_[1])}}u.prototype.clear=e,u.prototype.delete=n,u.prototype.get=o,u.prototype.has=a,u.prototype.set=l,he.exports=u},70641:(he,y,i)=>{var o=i(98745)(i(98492),"Promise");he.exports=o},91732:(he,y,i)=>{var o=i(98745)(i(98492),"Set");he.exports=o},15960:(he,y,i)=>{var e=i(21811),n=i(76151),o=i(12154);function a(l){var u=-1,d=null==l?0:l.length;for(this.__data__=new e;++u<d;)this.add(l[u])}a.prototype.add=a.prototype.push=n,a.prototype.has=o,he.exports=a},31339:(he,y,i)=>{var e=i(3597),n=i(9488),o=i(15943),a=i(55456),l=i(74793),u=i(68689);function d(s){var A=this.__data__=new e(s);this.size=A.size}d.prototype.clear=n,d.prototype.delete=o,d.prototype.get=a,d.prototype.has=l,d.prototype.set=u,he.exports=d},61763:(he,y,i)=>{var e=i(98492);he.exports=e.Symbol},82760:(he,y,i)=>{var e=i(98492);he.exports=e.Uint8Array},26413:(he,y,i)=>{var o=i(98745)(i(98492),"WeakMap");he.exports=o},57910:he=>{he.exports=function y(i,e,n){switch(n.length){case 0:return i.call(e);case 1:return i.call(e,n[0]);case 2:return i.call(e,n[0],n[1]);case 3:return i.call(e,n[0],n[1],n[2])}return i.apply(e,n)}},57772:he=>{he.exports=function y(i,e){for(var n=-1,o=null==i?0:i.length;++n<o&&!1!==e(i[n],n,i););return i}},92134:he=>{he.exports=function y(i,e){for(var n=-1,o=null==i?0:i.length,a=0,l=[];++n<o;){var u=i[n];e(u,n,i)&&(l[a++]=u)}return l}},94362:(he,y,i)=>{var e=i(29568);he.exports=function n(o,a){return!(null==o||!o.length)&&e(o,a,0)>-1}},6736:he=>{he.exports=function y(i,e,n){for(var o=-1,a=null==i?0:i.length;++o<a;)if(n(e,i[o]))return!0;return!1}},31384:(he,y,i)=>{var e=i(5025),n=i(31955),o=i(65246),a=i(57525),l=i(65188),u=i(74868),s=Object.prototype.hasOwnProperty;he.exports=function A(_,C){var R=o(_),x=!R&&n(_),f=!R&&!x&&a(_),k=!R&&!x&&!f&&u(_),w=R||x||f||k,g=w?e(_.length,String):[],M=g.length;for(var p in _)(C||s.call(_,p))&&(!w||!("length"==p||f&&("offset"==p||"parent"==p)||k&&("buffer"==p||"byteLength"==p||"byteOffset"==p)||l(p,M)))&&g.push(p);return g}},73880:he=>{he.exports=function y(i,e){for(var n=-1,o=null==i?0:i.length,a=Array(o);++n<o;)a[n]=e(i[n],n,i);return a}},17853:he=>{he.exports=function y(i,e){for(var n=-1,o=e.length,a=i.length;++n<o;)i[a+n]=e[n];return i}},25916:he=>{he.exports=function y(i,e){for(var n=-1,o=null==i?0:i.length;++n<o;)if(e(i[n],n,i))return!0;return!1}},6181:(he,y,i)=>{var n=i(3400)("length");he.exports=n},45880:he=>{he.exports=function y(i){return i.split("")}},89553:(he,y,i)=>{var e=i(71741),n=i(37826),a=Object.prototype.hasOwnProperty;he.exports=function l(u,d,s){var A=u[d];(!a.call(u,d)||!n(A,s)||void 0===s&&!(d in u))&&e(u,d,s)}},14056:(he,y,i)=>{var e=i(37826);he.exports=function n(o,a){for(var l=o.length;l--;)if(e(o[l][0],a))return l;return-1}},16234:(he,y,i)=>{var e=i(35931),n=i(74614);he.exports=function o(a,l){return a&&e(l,n(l),a)}},4431:(he,y,i)=>{var e=i(35931),n=i(85602);he.exports=function o(a,l){return a&&e(l,n(l),a)}},71741:(he,y,i)=>{var e=i(89383);he.exports=function n(o,a,l){"__proto__"==a&&e?e(o,a,{configurable:!0,enumerable:!0,value:l,writable:!0}):o[a]=l}},61320:(he,y,i)=>{var e=i(31339),n=i(57772),o=i(89553),a=i(16234),l=i(4431),u=i(86002),d=i(84231),s=i(79385),A=i(24354),_=i(6131),C=i(2442),R=i(62472),x=i(39431),f=i(20514),k=i(99225),w=i(65246),g=i(57525),M=i(10990),p=i(49794),E=i(28611),b=i(74614),I=i(85602),P="[object Arguments]",X="[object Function]",re="[object Object]",Le={};Le[P]=Le["[object Array]"]=Le["[object ArrayBuffer]"]=Le["[object DataView]"]=Le["[object Boolean]"]=Le["[object Date]"]=Le["[object Float32Array]"]=Le["[object Float64Array]"]=Le["[object Int8Array]"]=Le["[object Int16Array]"]=Le["[object Int32Array]"]=Le["[object Map]"]=Le["[object Number]"]=Le[re]=Le["[object RegExp]"]=Le["[object Set]"]=Le["[object String]"]=Le["[object Symbol]"]=Le["[object Uint8Array]"]=Le["[object Uint8ClampedArray]"]=Le["[object Uint16Array]"]=Le["[object Uint32Array]"]=!0,Le["[object Error]"]=Le[X]=Le["[object WeakMap]"]=!1,he.exports=function Gt(Ut,An,$n,xn,mt,ut){var Wt,dn=1&An,sn=2&An,fn=4&An;if($n&&(Wt=mt?$n(Ut,xn,mt,ut):$n(Ut)),void 0!==Wt)return Wt;if(!p(Ut))return Ut;var yi=w(Ut);if(yi){if(Wt=x(Ut),!dn)return d(Ut,Wt)}else{var nn=R(Ut),Mi=nn==X||"[object GeneratorFunction]"==nn;if(g(Ut))return u(Ut,dn);if(nn==re||nn==P||Mi&&!mt){if(Wt=sn||Mi?{}:k(Ut),!dn)return sn?A(Ut,l(Wt,Ut)):s(Ut,a(Wt,Ut))}else{if(!Le[nn])return mt?Ut:{};Wt=f(Ut,nn,dn)}}ut||(ut=new e);var mi=ut.get(Ut);if(mi)return mi;ut.set(Ut,Wt),E(Ut)?Ut.forEach(function(xo){Wt.add(Gt(xo,An,$n,xo,Ut,ut))}):M(Ut)&&Ut.forEach(function(xo,Bn){Wt.set(Bn,Gt(xo,An,$n,Bn,Ut,ut))});var Ko=yi?void 0:(fn?sn?C:_:sn?I:b)(Ut);return n(Ko||Ut,function(xo,Bn){Ko&&(xo=Ut[Bn=xo]),o(Wt,Bn,Gt(xo,An,$n,Bn,Ut,ut))}),Wt}},31391:(he,y,i)=>{var e=i(49794),n=Object.create,o=function(){function a(){}return function(l){if(!e(l))return{};if(n)return n(l);a.prototype=l;var u=new a;return a.prototype=void 0,u}}();he.exports=o},57491:(he,y,i)=>{var e=i(15960),n=i(94362),o=i(6736),a=i(73880),l=i(35249),u=i(64795);he.exports=function s(A,_,C,R){var x=-1,f=n,k=!0,w=A.length,g=[],M=_.length;if(!w)return g;C&&(_=a(_,l(C))),R?(f=o,k=!1):_.length>=200&&(f=u,k=!1,_=new e(_));e:for(;++x<w;){var p=A[x],E=null==C?p:C(p);if(p=R||0!==p?p:0,k&&E==E){for(var b=M;b--;)if(_[b]===E)continue e;g.push(p)}else f(_,E,R)||g.push(p)}return g}},84051:he=>{he.exports=function y(i,e,n,o){for(var a=i.length,l=n+(o?1:-1);o?l--:++l<a;)if(e(i[l],l,i))return l;return-1}},1883:(he,y,i)=>{var e=i(17853),n=i(42241);he.exports=function o(a,l,u,d,s){var A=-1,_=a.length;for(u||(u=n),s||(s=[]);++A<_;){var C=a[A];l>0&&u(C)?l>1?o(C,l-1,u,d,s):e(s,C):d||(s[s.length]=C)}return s}},16483:(he,y,i)=>{var n=i(62086)();he.exports=n},17794:(he,y,i)=>{var e=i(16483),n=i(74614);he.exports=function o(a,l){return a&&e(a,l,n)}},82202:(he,y,i)=>{var e=i(44826),n=i(38916);he.exports=function o(a,l){for(var u=0,d=(l=e(l,a)).length;null!=a&&u<d;)a=a[n(l[u++])];return u&&u==d?a:void 0}},37427:(he,y,i)=>{var e=i(17853),n=i(65246);he.exports=function o(a,l,u){var d=l(a);return n(a)?d:e(d,u(a))}},24590:(he,y,i)=>{var e=i(61763),n=i(95933),o=i(79243),u=e?e.toStringTag:void 0;he.exports=function d(s){return null==s?void 0===s?"[object Undefined]":"[object Null]":u&&u in Object(s)?n(s):o(s)}},94493:he=>{var i=Object.prototype.hasOwnProperty;he.exports=function e(n,o){return null!=n&&i.call(n,o)}},29568:(he,y,i)=>{var e=i(84051),n=i(91817),o=i(62528);he.exports=function a(l,u,d){return u==u?o(l,u,d):e(l,n,d)}},36635:(he,y,i)=>{var e=i(15960),n=i(94362),o=i(6736),a=i(73880),l=i(35249),u=i(64795),d=Math.min;he.exports=function s(A,_,C){for(var R=C?o:n,x=A[0].length,f=A.length,k=f,w=Array(f),g=1/0,M=[];k--;){var p=A[k];k&&_&&(p=a(p,l(_))),g=d(p.length,g),w[k]=!C&&(_||x>=120&&p.length>=120)?new e(k&&p):void 0}p=A[0];var E=-1,b=w[0];e:for(;++E<x&&M.length<g;){var I=p[E],L=_?_(I):I;if(I=C||0!==I?I:0,!(b?u(b,L):R(M,L,C))){for(k=f;--k;){var D=w[k];if(!(D?u(D,L):R(A[k],L,C)))continue e}b&&b.push(L),M.push(I)}}return M}},53022:(he,y,i)=>{var e=i(24590),n=i(53714);he.exports=function a(l){return n(l)&&"[object Arguments]"==e(l)}},97108:(he,y,i)=>{var e=i(97946),n=i(53714);he.exports=function o(a,l,u,d,s){return a===l||(null==a||null==l||!n(a)&&!n(l)?a!=a&&l!=l:e(a,l,u,d,o,s))}},97946:(he,y,i)=>{var e=i(31339),n=i(17469),o=i(81642),a=i(99462),l=i(62472),u=i(65246),d=i(57525),s=i(74868),_="[object Arguments]",C="[object Array]",R="[object Object]",f=Object.prototype.hasOwnProperty;he.exports=function k(w,g,M,p,E,b){var I=u(w),L=u(g),D=I?C:l(w),F=L?C:l(g),P=(D=D==_?R:D)==R,O=(F=F==_?R:F)==R,U=D==F;if(U&&d(w)){if(!d(g))return!1;I=!0,P=!1}if(U&&!P)return b||(b=new e),I||s(w)?n(w,g,M,p,E,b):o(w,g,D,M,p,E,b);if(!(1&M)){var V=P&&f.call(w,"__wrapped__"),K=O&&f.call(g,"__wrapped__");if(V||K){var X=V?w.value():w,me=K?g.value():g;return b||(b=new e),E(X,me,M,p,b)}}return!!U&&(b||(b=new e),a(w,g,M,p,E,b))}},78562:(he,y,i)=>{var e=i(62472),n=i(53714);he.exports=function a(l){return n(l)&&"[object Map]"==e(l)}},91817:he=>{he.exports=function y(i){return i!=i}},41082:(he,y,i)=>{var e=i(66861),n=i(9950),o=i(49794),a=i(37075),u=/^\[object .+?Constructor\]$/,C=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");he.exports=function R(x){return!(!o(x)||n(x))&&(e(x)?C:u).test(a(x))}},61202:(he,y,i)=>{var e=i(62472),n=i(53714);he.exports=function a(l){return n(l)&&"[object Set]"==e(l)}},38902:(he,y,i)=>{var e=i(24590),n=i(7765),o=i(53714),U={};U["[object Float32Array]"]=U["[object Float64Array]"]=U["[object Int8Array]"]=U["[object Int16Array]"]=U["[object Int32Array]"]=U["[object Uint8Array]"]=U["[object Uint8ClampedArray]"]=U["[object Uint16Array]"]=U["[object Uint32Array]"]=!0,U["[object Arguments]"]=U["[object Array]"]=U["[object ArrayBuffer]"]=U["[object Boolean]"]=U["[object DataView]"]=U["[object Date]"]=U["[object Error]"]=U["[object Function]"]=U["[object Map]"]=U["[object Number]"]=U["[object Object]"]=U["[object RegExp]"]=U["[object Set]"]=U["[object String]"]=U["[object WeakMap]"]=!1,he.exports=function V(K){return o(K)&&n(K.length)&&!!U[e(K)]}},190:(he,y,i)=>{var e=i(26587),n=i(10366),a=Object.prototype.hasOwnProperty;he.exports=function l(u){if(!e(u))return n(u);var d=[];for(var s in Object(u))a.call(u,s)&&"constructor"!=s&&d.push(s);return d}},7673:(he,y,i)=>{var e=i(49794),n=i(26587),o=i(18981),l=Object.prototype.hasOwnProperty;he.exports=function u(d){if(!e(d))return o(d);var s=n(d),A=[];for(var _ in d)"constructor"==_&&(s||!l.call(d,_))||A.push(_);return A}},3400:he=>{he.exports=function y(i){return function(e){return e?.[i]}}},18359:he=>{var i=Math.floor;he.exports=function e(n,o){var a="";if(!n||o<1||o>9007199254740991)return a;do{o%2&&(a+=n),(o=i(o/2))&&(n+=n)}while(o);return a}},78951:(he,y,i)=>{var e=i(65657),n=i(92394),o=i(36814);he.exports=function a(l,u){return o(n(l,u,e),l+"")}},19478:(he,y,i)=>{var e=i(89553),n=i(44826),o=i(65188),a=i(49794),l=i(38916);he.exports=function u(d,s,A,_){if(!a(d))return d;for(var C=-1,R=(s=n(s,d)).length,x=R-1,f=d;null!=f&&++C<R;){var k=l(s[C]),w=A;if("__proto__"===k||"constructor"===k||"prototype"===k)return d;if(C!=x){var g=f[k];void 0===(w=_?_(g,k,f):void 0)&&(w=a(g)?g:o(s[C+1])?[]:{})}e(f,k,w),f=f[k]}return d}},58235:(he,y,i)=>{var e=i(51075),n=i(89383),o=i(65657);he.exports=n?function(l,u){return n(l,"toString",{configurable:!0,enumerable:!1,value:e(u),writable:!0})}:o},52037:he=>{he.exports=function y(i,e,n){var o=-1,a=i.length;e<0&&(e=-e>a?0:a+e),(n=n>a?a:n)<0&&(n+=a),a=e>n?0:n-e>>>0,e>>>=0;for(var l=Array(a);++o<a;)l[o]=i[o+e];return l}},5025:he=>{he.exports=function y(i,e){for(var n=-1,o=Array(i);++n<i;)o[n]=e(n);return o}},97002:(he,y,i)=>{var e=i(61763),n=i(73880),o=i(65246),a=i(23423),u=e?e.prototype:void 0,d=u?u.toString:void 0;he.exports=function s(A){if("string"==typeof A)return A;if(o(A))return n(A,s)+"";if(a(A))return d?d.call(A):"";var _=A+"";return"0"==_&&1/A==-1/0?"-0":_}},99484:(he,y,i)=>{var e=i(71781),n=/^\s+/;he.exports=function o(a){return a&&a.slice(0,e(a)+1).replace(n,"")}},35249:he=>{he.exports=function y(i){return function(e){return i(e)}}},4205:(he,y,i)=>{var e=i(44826),n=i(92819),o=i(89247),a=i(38916);he.exports=function l(u,d){return d=e(d,u),null==(u=o(u,d))||delete u[a(n(d))]}},64795:he=>{he.exports=function y(i,e){return i.has(e)}},6579:(he,y,i)=>{var e=i(13471);he.exports=function n(o){return e(o)?o:[]}},84655:(he,y,i)=>{var e=i(65657);he.exports=function n(o){return"function"==typeof o?o:e}},44826:(he,y,i)=>{var e=i(65246),n=i(86300),o=i(61410),a=i(12674);he.exports=function l(u,d){return e(u)?u:n(u,d)?[u]:o(a(u))}},43073:(he,y,i)=>{var e=i(52037);he.exports=function n(o,a,l){var u=o.length;return l=void 0===l?u:l,!a&&l>=u?o:e(o,a,l)}},7898:(he,y,i)=>{var e=i(29568);he.exports=function n(o,a){for(var l=o.length;l--&&e(a,o[l],0)>-1;);return l}},2672:(he,y,i)=>{var e=i(29568);he.exports=function n(o,a){for(var l=-1,u=o.length;++l<u&&e(a,o[l],0)>-1;);return l}},72355:(he,y,i)=>{var e=i(82760);he.exports=function n(o){var a=new o.constructor(o.byteLength);return new e(a).set(new e(o)),a}},86002:(he,y,i)=>{he=i.nmd(he);var e=i(98492),n=y&&!y.nodeType&&y,o=n&&he&&!he.nodeType&&he,l=o&&o.exports===n?e.Buffer:void 0,u=l?l.allocUnsafe:void 0;he.exports=function d(s,A){if(A)return s.slice();var _=s.length,C=u?u(_):new s.constructor(_);return s.copy(C),C}},26693:(he,y,i)=>{var e=i(72355);he.exports=function n(o,a){var l=a?e(o.buffer):o.buffer;return new o.constructor(l,o.byteOffset,o.byteLength)}},80497:he=>{var y=/\w*$/;he.exports=function i(e){var n=new e.constructor(e.source,y.exec(e));return n.lastIndex=e.lastIndex,n}},43330:(he,y,i)=>{var e=i(61763),n=e?e.prototype:void 0,o=n?n.valueOf:void 0;he.exports=function a(l){return o?Object(o.call(l)):{}}},72501:(he,y,i)=>{var e=i(72355);he.exports=function n(o,a){var l=a?e(o.buffer):o.buffer;return new o.constructor(l,o.byteOffset,o.length)}},84231:he=>{he.exports=function y(i,e){var n=-1,o=i.length;for(e||(e=Array(o));++n<o;)e[n]=i[n];return e}},35931:(he,y,i)=>{var e=i(89553),n=i(71741);he.exports=function o(a,l,u,d){var s=!u;u||(u={});for(var A=-1,_=l.length;++A<_;){var C=l[A],R=d?d(u[C],a[C],C,u,a):void 0;void 0===R&&(R=a[C]),s?n(u,C,R):e(u,C,R)}return u}},79385:(he,y,i)=>{var e=i(35931),n=i(20771);he.exports=function o(a,l){return e(a,n(a),l)}},24354:(he,y,i)=>{var e=i(35931),n=i(20708);he.exports=function o(a,l){return e(a,n(a),l)}},56189:(he,y,i)=>{var e=i(98492);he.exports=e["__core-js_shared__"]},62086:he=>{he.exports=function y(i){return function(e,n,o){for(var a=-1,l=Object(e),u=o(e),d=u.length;d--;){var s=u[i?d:++a];if(!1===n(l[s],s,l))break}return e}}},93790:(he,y,i)=>{var e=i(18359),n=i(97002),o=i(43073),a=i(63687),l=i(7339),u=i(67573),d=Math.ceil;he.exports=function s(A,_){var C=(_=void 0===_?" ":n(_)).length;if(C<2)return C?e(_,A):_;var R=e(_,d(A/l(_)));return a(_)?o(u(R),0,A).join(""):R.slice(0,A)}},85786:(he,y,i)=>{var e=i(98492),n=i(90481),o=i(94282),a=i(12674),l=e.isFinite,u=Math.min;he.exports=function d(s){var A=Math[s];return function(_,C){if(_=o(_),(C=null==C?0:u(n(C),292))&&l(_)){var R=(a(_)+"e").split("e"),x=A(R[0]+"e"+(+R[1]+C));return+((R=(a(x)+"e").split("e"))[0]+"e"+(+R[1]-C))}return A(_)}}},1038:(he,y,i)=>{var e=i(28168);he.exports=function n(o){return e(o)?void 0:o}},89383:(he,y,i)=>{var e=i(98745),n=function(){try{var o=e(Object,"defineProperty");return o({},"",{}),o}catch{}}();he.exports=n},17469:(he,y,i)=>{var e=i(15960),n=i(25916),o=i(64795);he.exports=function u(d,s,A,_,C,R){var x=1&A,f=d.length,k=s.length;if(f!=k&&!(x&&k>f))return!1;var w=R.get(d),g=R.get(s);if(w&&g)return w==s&&g==d;var M=-1,p=!0,E=2&A?new e:void 0;for(R.set(d,s),R.set(s,d);++M<f;){var b=d[M],I=s[M];if(_)var L=x?_(I,b,M,s,d,R):_(b,I,M,d,s,R);if(void 0!==L){if(L)continue;p=!1;break}if(E){if(!n(s,function(D,F){if(!o(E,F)&&(b===D||C(b,D,A,_,R)))return E.push(F)})){p=!1;break}}else if(b!==I&&!C(b,I,A,_,R)){p=!1;break}}return R.delete(d),R.delete(s),p}},81642:(he,y,i)=>{var e=i(61763),n=i(82760),o=i(37826),a=i(17469),l=i(71575),u=i(28e3),E=e?e.prototype:void 0,b=E?E.valueOf:void 0;he.exports=function I(L,D,F,P,O,U,V){switch(F){case"[object DataView]":if(L.byteLength!=D.byteLength||L.byteOffset!=D.byteOffset)return!1;L=L.buffer,D=D.buffer;case"[object ArrayBuffer]":return!(L.byteLength!=D.byteLength||!U(new n(L),new n(D)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+L,+D);case"[object Error]":return L.name==D.name&&L.message==D.message;case"[object RegExp]":case"[object String]":return L==D+"";case"[object Map]":var K=l;case"[object Set]":if(K||(K=u),L.size!=D.size&&!(1&P))return!1;var me=V.get(L);if(me)return me==D;P|=2,V.set(L,D);var J=a(K(L),K(D),P,O,U,V);return V.delete(L),J;case"[object Symbol]":if(b)return b.call(L)==b.call(D)}return!1}},99462:(he,y,i)=>{var e=i(6131),a=Object.prototype.hasOwnProperty;he.exports=function l(u,d,s,A,_,C){var R=1&s,x=e(u),f=x.length;if(f!=e(d).length&&!R)return!1;for(var g=f;g--;){var M=x[g];if(!(R?M in d:a.call(d,M)))return!1}var p=C.get(u),E=C.get(d);if(p&&E)return p==d&&E==u;var b=!0;C.set(u,d),C.set(d,u);for(var I=R;++g<f;){var L=u[M=x[g]],D=d[M];if(A)var F=R?A(D,L,M,d,u,C):A(L,D,M,u,d,C);if(!(void 0===F?L===D||_(L,D,s,A,C):F)){b=!1;break}I||(I="constructor"==M)}if(b&&!I){var P=u.constructor,O=d.constructor;P!=O&&"constructor"in u&&"constructor"in d&&!("function"==typeof P&&P instanceof P&&"function"==typeof O&&O instanceof O)&&(b=!1)}return C.delete(u),C.delete(d),b}},46801:(he,y,i)=>{var e=i(9336),n=i(92394),o=i(36814);he.exports=function a(l){return o(n(l,void 0,e),l+"")}},40248:he=>{var y="object"==typeof global&&global&&global.Object===Object&&global;he.exports=y},6131:(he,y,i)=>{var e=i(37427),n=i(20771),o=i(74614);he.exports=function a(l){return e(l,o,n)}},2442:(he,y,i)=>{var e=i(37427),n=i(20708),o=i(85602);he.exports=function a(l){return e(l,o,n)}},4113:(he,y,i)=>{var e=i(29);he.exports=function n(o,a){var l=o.__data__;return e(a)?l["string"==typeof a?"string":"hash"]:l.map}},98745:(he,y,i)=>{var e=i(41082),n=i(11015);he.exports=function o(a,l){var u=n(a,l);return e(u)?u:void 0}},16186:(he,y,i)=>{var n=i(33106)(Object.getPrototypeOf,Object);he.exports=n},95933:(he,y,i)=>{var e=i(61763),n=Object.prototype,o=n.hasOwnProperty,a=n.toString,l=e?e.toStringTag:void 0;he.exports=function u(d){var s=o.call(d,l),A=d[l];try{d[l]=void 0;var _=!0}catch{}var C=a.call(d);return _&&(s?d[l]=A:delete d[l]),C}},20771:(he,y,i)=>{var e=i(92134),n=i(81315),a=Object.prototype.propertyIsEnumerable,l=Object.getOwnPropertySymbols;he.exports=l?function(d){return null==d?[]:(d=Object(d),e(l(d),function(s){return a.call(d,s)}))}:n},20708:(he,y,i)=>{var e=i(17853),n=i(16186),o=i(20771),a=i(81315);he.exports=Object.getOwnPropertySymbols?function(d){for(var s=[];d;)e(s,o(d)),d=n(d);return s}:a},62472:(he,y,i)=>{var e=i(36506),n=i(21136),o=i(70641),a=i(91732),l=i(26413),u=i(24590),d=i(37075),s="[object Map]",_="[object Promise]",C="[object Set]",R="[object WeakMap]",x="[object DataView]",f=d(e),k=d(n),w=d(o),g=d(a),M=d(l),p=u;(e&&p(new e(new ArrayBuffer(1)))!=x||n&&p(new n)!=s||o&&p(o.resolve())!=_||a&&p(new a)!=C||l&&p(new l)!=R)&&(p=function(E){var b=u(E),I="[object Object]"==b?E.constructor:void 0,L=I?d(I):"";if(L)switch(L){case f:return x;case k:return s;case w:return _;case g:return C;case M:return R}return b}),he.exports=p},11015:he=>{he.exports=function y(i,e){return i?.[e]}},44583:(he,y,i)=>{var e=i(44826),n=i(31955),o=i(65246),a=i(65188),l=i(7765),u=i(38916);he.exports=function d(s,A,_){for(var C=-1,R=(A=e(A,s)).length,x=!1;++C<R;){var f=u(A[C]);if(!(x=null!=s&&_(s,f)))break;s=s[f]}return x||++C!=R?x:!!(R=null==s?0:s.length)&&l(R)&&a(f,R)&&(o(s)||n(s))}},63687:he=>{var u=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");he.exports=function d(s){return u.test(s)}},35602:(he,y,i)=>{var e=i(10893);he.exports=function n(){this.__data__=e?e(null):{},this.size=0}},81499:he=>{he.exports=function y(i){var e=this.has(i)&&delete this.__data__[i];return this.size-=e?1:0,e}},52990:(he,y,i)=>{var e=i(10893),a=Object.prototype.hasOwnProperty;he.exports=function l(u){var d=this.__data__;if(e){var s=d[u];return"__lodash_hash_undefined__"===s?void 0:s}return a.call(d,u)?d[u]:void 0}},70480:(he,y,i)=>{var e=i(10893),o=Object.prototype.hasOwnProperty;he.exports=function a(l){var u=this.__data__;return e?void 0!==u[l]:o.call(u,l)}},4469:(he,y,i)=>{var e=i(10893);he.exports=function o(a,l){var u=this.__data__;return this.size+=this.has(a)?0:1,u[a]=e&&void 0===l?"__lodash_hash_undefined__":l,this}},39431:he=>{var i=Object.prototype.hasOwnProperty;he.exports=function e(n){var o=n.length,a=new n.constructor(o);return o&&"string"==typeof n[0]&&i.call(n,"index")&&(a.index=n.index,a.input=n.input),a}},20514:(he,y,i)=>{var e=i(72355),n=i(26693),o=i(80497),a=i(43330),l=i(72501);he.exports=function F(P,O,U){var V=P.constructor;switch(O){case"[object ArrayBuffer]":return e(P);case"[object Boolean]":case"[object Date]":return new V(+P);case"[object DataView]":return n(P,U);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 l(P,U);case"[object Map]":case"[object Set]":return new V;case"[object Number]":case"[object String]":return new V(P);case"[object RegExp]":return o(P);case"[object Symbol]":return a(P)}}},99225:(he,y,i)=>{var e=i(31391),n=i(16186),o=i(26587);he.exports=function a(l){return"function"!=typeof l.constructor||o(l)?{}:e(n(l))}},42241:(he,y,i)=>{var e=i(61763),n=i(31955),o=i(65246),a=e?e.isConcatSpreadable:void 0;he.exports=function l(u){return o(u)||n(u)||!!(a&&u&&u[a])}},65188:he=>{var i=/^(?:0|[1-9]\d*)$/;he.exports=function e(n,o){var a=typeof n;return!!(o=o??9007199254740991)&&("number"==a||"symbol"!=a&&i.test(n))&&n>-1&&n%1==0&&n<o}},33817:(he,y,i)=>{var e=i(37826),n=i(32447),o=i(65188),a=i(49794);he.exports=function l(u,d,s){if(!a(s))return!1;var A=typeof d;return!!("number"==A?n(s)&&o(d,s.length):"string"==A&&d in s)&&e(s[d],u)}},86300:(he,y,i)=>{var e=i(65246),n=i(23423),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;he.exports=function l(u,d){if(e(u))return!1;var s=typeof u;return!("number"!=s&&"symbol"!=s&&"boolean"!=s&&null!=u&&!n(u))||a.test(u)||!o.test(u)||null!=d&&u in Object(d)}},29:he=>{he.exports=function y(i){var e=typeof i;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==i:null===i}},9950:(he,y,i)=>{var a,e=i(56189),n=(a=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";he.exports=function o(a){return!!n&&n in a}},26587:he=>{var y=Object.prototype;he.exports=function i(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||y)}},39365:he=>{he.exports=function y(){this.__data__=[],this.size=0}},89343:(he,y,i)=>{var e=i(14056),o=Array.prototype.splice;he.exports=function a(l){var u=this.__data__,d=e(u,l);return!(d<0||(d==u.length-1?u.pop():o.call(u,d,1),--this.size,0))}},34779:(he,y,i)=>{var e=i(14056);he.exports=function n(o){var a=this.__data__,l=e(a,o);return l<0?void 0:a[l][1]}},51509:(he,y,i)=>{var e=i(14056);he.exports=function n(o){return e(this.__data__,o)>-1}},27137:(he,y,i)=>{var e=i(14056);he.exports=function n(o,a){var l=this.__data__,u=e(l,o);return u<0?(++this.size,l.push([o,a])):l[u][1]=a,this}},17285:(he,y,i)=>{var e=i(19618),n=i(3597),o=i(21136);he.exports=function a(){this.size=0,this.__data__={hash:new e,map:new(o||n),string:new e}}},45419:(he,y,i)=>{var e=i(4113);he.exports=function n(o){var a=e(this,o).delete(o);return this.size-=a?1:0,a}},47253:(he,y,i)=>{var e=i(4113);he.exports=function n(o){return e(this,o).get(o)}},81115:(he,y,i)=>{var e=i(4113);he.exports=function n(o){return e(this,o).has(o)}},76648:(he,y,i)=>{var e=i(4113);he.exports=function n(o,a){var l=e(this,o),u=l.size;return l.set(o,a),this.size+=l.size==u?0:1,this}},71575:he=>{he.exports=function y(i){var e=-1,n=Array(i.size);return i.forEach(function(o,a){n[++e]=[a,o]}),n}},37371:(he,y,i)=>{var e=i(87659);he.exports=function o(a){var l=e(a,function(d){return 500===u.size&&u.clear(),d}),u=l.cache;return l}},10893:(he,y,i)=>{var n=i(98745)(Object,"create");he.exports=n},10366:(he,y,i)=>{var n=i(33106)(Object.keys,Object);he.exports=n},18981:he=>{he.exports=function y(i){var e=[];if(null!=i)for(var n in Object(i))e.push(n);return e}},68849:(he,y,i)=>{he=i.nmd(he);var e=i(40248),n=y&&!y.nodeType&&y,o=n&&he&&!he.nodeType&&he,l=o&&o.exports===n&&e.process,u=function(){try{return o&&o.require&&o.require("util").types||l&&l.binding&&l.binding("util")}catch{}}();he.exports=u},79243:he=>{var i=Object.prototype.toString;he.exports=function e(n){return i.call(n)}},33106:he=>{he.exports=function y(i,e){return function(n){return i(e(n))}}},92394:(he,y,i)=>{var e=i(57910),n=Math.max;he.exports=function o(a,l,u){return l=n(void 0===l?a.length-1:l,0),function(){for(var d=arguments,s=-1,A=n(d.length-l,0),_=Array(A);++s<A;)_[s]=d[l+s];s=-1;for(var C=Array(l+1);++s<l;)C[s]=d[s];return C[l]=u(_),e(a,this,C)}}},89247:(he,y,i)=>{var e=i(82202),n=i(52037);he.exports=function o(a,l){return l.length<2?a:e(a,n(l,0,-1))}},98492:(he,y,i)=>{var e=i(40248),n="object"==typeof self&&self&&self.Object===Object&&self,o=e||n||Function("return this")();he.exports=o},76151:he=>{he.exports=function i(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},12154:he=>{he.exports=function y(i){return this.__data__.has(i)}},28e3:he=>{he.exports=function y(i){var e=-1,n=Array(i.size);return i.forEach(function(o){n[++e]=o}),n}},36814:(he,y,i)=>{var e=i(58235),o=i(59531)(e);he.exports=o},59531:he=>{var e=Date.now;he.exports=function n(o){var a=0,l=0;return function(){var u=e(),d=16-(u-l);if(l=u,d>0){if(++a>=800)return arguments[0]}else a=0;return o.apply(void 0,arguments)}}},9488:(he,y,i)=>{var e=i(3597);he.exports=function n(){this.__data__=new e,this.size=0}},15943:he=>{he.exports=function y(i){var e=this.__data__,n=e.delete(i);return this.size=e.size,n}},55456:he=>{he.exports=function y(i){return this.__data__.get(i)}},74793:he=>{he.exports=function y(i){return this.__data__.has(i)}},68689:(he,y,i)=>{var e=i(3597),n=i(21136),o=i(21811);he.exports=function l(u,d){var s=this.__data__;if(s instanceof e){var A=s.__data__;if(!n||A.length<199)return A.push([u,d]),this.size=++s.size,this;s=this.__data__=new o(A)}return s.set(u,d),this.size=s.size,this}},62528:he=>{he.exports=function y(i,e,n){for(var o=n-1,a=i.length;++o<a;)if(i[o]===e)return o;return-1}},7339:(he,y,i)=>{var e=i(6181),n=i(63687),o=i(89164);he.exports=function a(l){return n(l)?o(l):e(l)}},67573:(he,y,i)=>{var e=i(45880),n=i(63687),o=i(93840);he.exports=function a(l){return n(l)?o(l):e(l)}},61410:(he,y,i)=>{var e=i(37371),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=e(function(l){var u=[];return 46===l.charCodeAt(0)&&u.push(""),l.replace(n,function(d,s,A,_){u.push(A?_.replace(o,"$1"):s||d)}),u});he.exports=a},38916:(he,y,i)=>{var e=i(23423);he.exports=function o(a){if("string"==typeof a||e(a))return a;var l=a+"";return"0"==l&&1/a==-1/0?"-0":l}},37075:he=>{var i=Function.prototype.toString;he.exports=function e(n){if(null!=n){try{return i.call(n)}catch{}try{return n+""}catch{}}return""}},71781:he=>{var y=/\s/;he.exports=function i(e){for(var n=e.length;n--&&y.test(e.charAt(n)););return n}},89164:he=>{var y="\\ud800-\\udfff",l="["+y+"]",u="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",d="\\ud83c[\\udffb-\\udfff]",A="[^"+y+"]",_="(?:\\ud83c[\\udde6-\\uddff]){2}",C="[\\ud800-\\udbff][\\udc00-\\udfff]",x="(?:"+u+"|"+d+")?",f="[\\ufe0e\\ufe0f]?",w=f+x+"(?:\\u200d(?:"+[A,_,C].join("|")+")"+f+x+")*",g="(?:"+[A+u+"?",u,_,C,l].join("|")+")",M=RegExp(d+"(?="+d+")|"+g+w,"g");he.exports=function p(E){for(var b=M.lastIndex=0;M.test(E);)++b;return b}},93840:he=>{var y="\\ud800-\\udfff",l="["+y+"]",u="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",d="\\ud83c[\\udffb-\\udfff]",A="[^"+y+"]",_="(?:\\ud83c[\\udde6-\\uddff]){2}",C="[\\ud800-\\udbff][\\udc00-\\udfff]",x="(?:"+u+"|"+d+")?",f="[\\ufe0e\\ufe0f]?",w=f+x+"(?:\\u200d(?:"+[A,_,C].join("|")+")"+f+x+")*",g="(?:"+[A+u+"?",u,_,C,l].join("|")+")",M=RegExp(d+"(?="+d+")|"+g+w,"g");he.exports=function p(E){return E.match(M)||[]}},62871:(he,y,i)=>{var e=i(52037),n=i(33817),o=i(90481),a=Math.ceil,l=Math.max;he.exports=function u(d,s,A){s=(A?n(d,s,A):void 0===s)?1:l(o(s),0);var _=null==d?0:d.length;if(!_||s<1)return[];for(var C=0,R=0,x=Array(a(_/s));C<_;)x[R++]=e(d,C,C+=s);return x}},8734:(he,y,i)=>{var e=i(61320);he.exports=function o(a){return e(a,4)}},54451:(he,y,i)=>{var e=i(61320);he.exports=function a(l){return e(l,5)}},51075:he=>{he.exports=function y(i){return function(){return i}}},64430:(he,y,i)=>{var e=i(49794),n=i(55533),o=i(94282),l=Math.max,u=Math.min;he.exports=function d(s,A,_){var C,R,x,f,k,w,g=0,M=!1,p=!1,E=!0;if("function"!=typeof s)throw new TypeError("Expected a function");function b(K){var X=C,me=R;return C=R=void 0,g=K,f=s.apply(me,X)}function D(K){var X=K-w;return void 0===w||X>=A||X<0||p&&K-g>=x}function F(){var K=n();if(D(K))return P(K);k=setTimeout(F,function L(K){var J=A-(K-w);return p?u(J,x-(K-g)):J}(K))}function P(K){return k=void 0,E&&C?b(K):(C=R=void 0,f)}function V(){var K=n(),X=D(K);if(C=arguments,R=this,w=K,X){if(void 0===k)return function I(K){return g=K,k=setTimeout(F,A),M?b(K):f}(w);if(p)return clearTimeout(k),k=setTimeout(F,A),b(w)}return void 0===k&&(k=setTimeout(F,A)),f}return A=o(A)||0,e(_)&&(M=!!_.leading,x=(p="maxWait"in _)?l(o(_.maxWait)||0,A):x,E="trailing"in _?!!_.trailing:E),V.cancel=function O(){void 0!==k&&clearTimeout(k),g=0,C=w=R=k=void 0},V.flush=function U(){return void 0===k?f:P(n())},V}},5433:(he,y,i)=>{var e=i(78951),n=i(37826),o=i(33817),a=i(85602),l=Object.prototype,u=l.hasOwnProperty,d=e(function(s,A){s=Object(s);var _=-1,C=A.length,R=C>2?A[2]:void 0;for(R&&o(A[0],A[1],R)&&(C=1);++_<C;)for(var x=A[_],f=a(x),k=-1,w=f.length;++k<w;){var g=f[k],M=s[g];(void 0===M||n(M,l[g])&&!u.call(s,g))&&(s[g]=x[g])}return s});he.exports=d},14996:(he,y,i)=>{var e=i(57491),n=i(1883),o=i(78951),a=i(13471),l=o(function(u,d){return a(u)?e(u,n(d,1,a,!0)):[]});he.exports=l},37826:he=>{he.exports=function y(i,e){return i===e||i!=i&&e!=e}},9336:(he,y,i)=>{var e=i(1883);he.exports=function n(o){return null!=o&&o.length?e(o,1):[]}},18679:(he,y,i)=>{var e=i(17794),n=i(84655);he.exports=function o(a,l){return a&&e(a,n(l))}},55440:(he,y,i)=>{var e=i(82202);he.exports=function n(o,a,l){var u=null==o?void 0:e(o,a);return void 0===u?l:u}},58669:(he,y,i)=>{var e=i(94493),n=i(44583);he.exports=function o(a,l){return null!=a&&n(a,l,e)}},65657:he=>{he.exports=function y(i){return i}},71541:(he,y,i)=>{var e=i(73880),n=i(36635),o=i(78951),a=i(6579),l=o(function(u){var d=e(u,a);return d.length&&d[0]===u[0]?n(d):[]});he.exports=l},31955:(he,y,i)=>{var e=i(53022),n=i(53714),o=Object.prototype,a=o.hasOwnProperty,l=o.propertyIsEnumerable,u=e(function(){return arguments}())?e:function(d){return n(d)&&a.call(d,"callee")&&!l.call(d,"callee")};he.exports=u},65246:he=>{he.exports=Array.isArray},32447:(he,y,i)=>{var e=i(66861),n=i(7765);he.exports=function o(a){return null!=a&&n(a.length)&&!e(a)}},13471:(he,y,i)=>{var e=i(32447),n=i(53714);he.exports=function o(a){return n(a)&&e(a)}},57525:(he,y,i)=>{he=i.nmd(he);var e=i(98492),n=i(15706),o=y&&!y.nodeType&&y,a=o&&he&&!he.nodeType&&he,u=a&&a.exports===o?e.Buffer:void 0;he.exports=(u?u.isBuffer:void 0)||n},99391:(he,y,i)=>{var e=i(97108);he.exports=function n(o,a){return e(o,a)}},66861:(he,y,i)=>{var e=i(24590),n=i(49794);he.exports=function d(s){if(!n(s))return!1;var A=e(s);return"[object Function]"==A||"[object GeneratorFunction]"==A||"[object AsyncFunction]"==A||"[object Proxy]"==A}},7765:he=>{he.exports=function i(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},10990:(he,y,i)=>{var e=i(78562),n=i(35249),o=i(68849),a=o&&o.isMap,l=a?n(a):e;he.exports=l},79253:(he,y,i)=>{var e=i(96432);he.exports=function n(o){return e(o)&&o!=+o}},33018:he=>{he.exports=function y(i){return null==i}},96432:(he,y,i)=>{var e=i(24590),n=i(53714);he.exports=function a(l){return"number"==typeof l||n(l)&&"[object Number]"==e(l)}},49794:he=>{he.exports=function y(i){var e=typeof i;return null!=i&&("object"==e||"function"==e)}},53714:he=>{he.exports=function y(i){return null!=i&&"object"==typeof i}},28168:(he,y,i)=>{var e=i(24590),n=i(16186),o=i(53714),d=Function.prototype.toString,s=Object.prototype.hasOwnProperty,A=d.call(Object);he.exports=function _(C){if(!o(C)||"[object Object]"!=e(C))return!1;var R=n(C);if(null===R)return!0;var x=s.call(R,"constructor")&&R.constructor;return"function"==typeof x&&x instanceof x&&d.call(x)==A}},28611:(he,y,i)=>{var e=i(61202),n=i(35249),o=i(68849),a=o&&o.isSet,l=a?n(a):e;he.exports=l},12164:(he,y,i)=>{var e=i(24590),n=i(65246),o=i(53714);he.exports=function l(u){return"string"==typeof u||!n(u)&&o(u)&&"[object String]"==e(u)}},23423:(he,y,i)=>{var e=i(24590),n=i(53714);he.exports=function a(l){return"symbol"==typeof l||n(l)&&"[object Symbol]"==e(l)}},74868:(he,y,i)=>{var e=i(38902),n=i(35249),o=i(68849),a=o&&o.isTypedArray,l=a?n(a):e;he.exports=l},74614:(he,y,i)=>{var e=i(31384),n=i(190),o=i(32447);he.exports=function a(l){return o(l)?e(l):n(l)}},85602:(he,y,i)=>{var e=i(31384),n=i(7673),o=i(32447);he.exports=function a(l){return o(l)?e(l,!0):n(l)}},92819:he=>{he.exports=function y(i){var e=null==i?0:i.length;return e?i[e-1]:void 0}},6990:function(he,y,i){var e;
/**
        * @license
        * Lodash <https://lodash.com/>
        * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
        * Released under MIT license <https://lodash.com/license>
        * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
        * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
        */he=i.nmd(he),function(){var n,u="Expected a function",s="__lodash_hash_undefined__",_="__lodash_placeholder__",b=32,L=128,J=1/0,Q=9007199254740991,te=4294967295,z=[["ary",L],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",b],["partialRight",64],["rearg",256]],q="[object Arguments]",se="[object Array]",_e="[object Boolean]",ge="[object Date]",Te="[object Error]",De="[object Function]",fe="[object GeneratorFunction]",xe="[object Map]",Oe="[object Number]",Gt="[object Object]",Ut="[object Promise]",$n="[object RegExp]",xn="[object Set]",mt="[object String]",ut="[object Symbol]",dn="[object WeakMap]",fn="[object ArrayBuffer]",yi="[object DataView]",nn="[object Float32Array]",Mi="[object Float64Array]",mi="[object Int8Array]",Eo="[object Int16Array]",Ko="[object Int32Array]",xo="[object Uint8Array]",Bn="[object Uint8ClampedArray]",Xt="[object Uint16Array]",Ji="[object Uint32Array]",En=/\b__p \+= '';/g,un=/\b(__p \+=) '' \+/g,Ki=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fn=/&(?:amp|lt|gt|quot|#39);/g,oi=/[&<>"']/g,It=RegExp(Fn.source),Bt=RegExp(oi.source),xt=/<%-([\s\S]+?)%>/g,wt=/<%([\s\S]+?)%>/g,Mt=/<%=([\s\S]+?)%>/g,pt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Lt=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ne=/[\\^$.*+?()[\]{}|]/g,vt=RegExp(Ne.source),ln=/^\s+/,jn=/\s/,Pi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,go=/\{\n\/\* \[wrapped with (.+)\] \*/,si=/,? & /,ot=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,_i=/\\(\\)?/g,wi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hi=/\w*$/,zn=/^[-+]0x[0-9a-f]+$/i,Ei=/^0b[01]+$/i,li=/^\[object .+?Constructor\]$/,Xi=/^0o[0-7]+$/i,ki=/^(?:0|[1-9]\d*)$/,bo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jo=/($^)/,wn=/['\n\r\u2028\u2029\\]/g,Zi="\\ud800-\\udfff",Lo="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",or="\\u2700-\\u27bf",xr="a-z\\xdf-\\xf6\\xf8-\\xff",rt="A-Z\\xc0-\\xd6\\xd8-\\xde",ai="\\ufe0e\\ufe0f",Gn="\\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",wr="["+Zi+"]",bs="["+Gn+"]",ba="["+Lo+"]",ms="\\d+",Oa="["+or+"]",Ea="["+xr+"]",Sa="[^"+Zi+Gn+ms+or+xr+rt+"]",tr="\\ud83c[\\udffb-\\udfff]",Li="[^"+Zi+"]",Ao="(?:\\ud83c[\\udde6-\\uddff]){2}",ao="[\\ud800-\\udbff][\\udc00-\\udfff]",Go="["+rt+"]",Rr="(?:"+Ea+"|"+Sa+")",br="(?:"+Go+"|"+Sa+")",Ti="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",mr="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",ri="(?:"+ba+"|"+tr+")?",mo="["+ai+"]?",Yr=mo+ri+"(?:\\u200d(?:"+[Li,Ao,ao].join("|")+")"+mo+ri+")*",Gs="(?:"+[Oa,Ao,ao].join("|")+")"+Yr,fi="(?:"+[Li+ba+"?",ba,Ao,ao,wr].join("|")+")",Ho=RegExp("['\u2019]","g"),_t=RegExp(ba,"g"),Zn=RegExp(tr+"(?="+tr+")|"+fi+Yr,"g"),qo=RegExp([Go+"?"+Ea+"+"+Ti+"(?="+[bs,Go,"$"].join("|")+")",br+"+"+mr+"(?="+[bs,Go+Rr,"$"].join("|")+")",Go+"?"+Rr+"+"+Ti,Go+"+"+mr,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ms,Gs].join("|"),"g"),Cr=RegExp("[\\u200d"+Zi+Lo+ai+"]"),kr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xs=["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"],Us=-1,Ts={};Ts[nn]=Ts[Mi]=Ts[mi]=Ts[Eo]=Ts[Ko]=Ts[xo]=Ts[Bn]=Ts[Xt]=Ts[Ji]=!0,Ts[q]=Ts[se]=Ts[fn]=Ts[_e]=Ts[yi]=Ts[ge]=Ts[Te]=Ts[De]=Ts[xe]=Ts[Oe]=Ts[Gt]=Ts[$n]=Ts[xn]=Ts[mt]=Ts[dn]=!1;var Ss={};Ss[q]=Ss[se]=Ss[fn]=Ss[yi]=Ss[_e]=Ss[ge]=Ss[nn]=Ss[Mi]=Ss[mi]=Ss[Eo]=Ss[Ko]=Ss[xe]=Ss[Oe]=Ss[Gt]=Ss[$n]=Ss[xn]=Ss[mt]=Ss[ut]=Ss[xo]=Ss[Bn]=Ss[Xt]=Ss[Ji]=!0,Ss[Te]=Ss[De]=Ss[dn]=!1;var No={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qr=parseFloat,js=parseInt,Ds="object"==typeof global&&global&&global.Object===Object&&global,Zr="object"==typeof self&&self&&self.Object===Object&&self,ls=Ds||Zr||Function("return this")(),Hs=y&&!y.nodeType&&y,Js=Hs&&he&&!he.nodeType&&he,Wa=Js&&Js.exports===Hs,ll=Wa&&Ds.process,Za=function(){try{return Js&&Js.require&&Js.require("util").types||ll&&ll.binding&&ll.binding("util")}catch{}}(),sl=Za&&Za.isArrayBuffer,Jt=Za&&Za.isDate,Tt=Za&&Za.isMap,ht=Za&&Za.isRegExp,yn=Za&&Za.isSet,vi=Za&&Za.isTypedArray;function Yi(qt,bn,ii){switch(ii.length){case 0:return qt.call(bn);case 1:return qt.call(bn,ii[0]);case 2:return qt.call(bn,ii[0],ii[1]);case 3:return qt.call(bn,ii[0],ii[1],ii[2])}return qt.apply(bn,ii)}function co(qt,bn,ii,Vi){for(var Jn=-1,zt=null==qt?0:qt.length;++Jn<zt;){var mn=qt[Jn];bn(Vi,mn,ii(mn),qt)}return Vi}function sr(qt,bn){for(var ii=-1,Vi=null==qt?0:qt.length;++ii<Vi&&!1!==bn(qt[ii],ii,qt););return qt}function yr(qt,bn){for(var ii=null==qt?0:qt.length;ii--&&!1!==bn(qt[ii],ii,qt););return qt}function Ur(qt,bn){for(var ii=-1,Vi=null==qt?0:qt.length;++ii<Vi;)if(!bn(qt[ii],ii,qt))return!1;return!0}function ss(qt,bn){for(var ii=-1,Vi=null==qt?0:qt.length,Jn=0,zt=[];++ii<Vi;){var mn=qt[ii];bn(mn,ii,qt)&&(zt[Jn++]=mn)}return zt}function gs(qt,bn){return!(null==qt||!qt.length)&&Xe(qt,bn,0)>-1}function Pr(qt,bn,ii){for(var Vi=-1,Jn=null==qt?0:qt.length;++Vi<Jn;)if(ii(bn,qt[Vi]))return!0;return!1}function ys(qt,bn){for(var ii=-1,Vi=null==qt?0:qt.length,Jn=Array(Vi);++ii<Vi;)Jn[ii]=bn(qt[ii],ii,qt);return Jn}function da(qt,bn){for(var ii=-1,Vi=bn.length,Jn=qt.length;++ii<Vi;)qt[Jn+ii]=bn[ii];return qt}function Va(qt,bn,ii,Vi){var Jn=-1,zt=null==qt?0:qt.length;for(Vi&&zt&&(ii=qt[++Jn]);++Jn<zt;)ii=bn(ii,qt[Jn],Jn,qt);return ii}function ga(qt,bn,ii,Vi){var Jn=null==qt?0:qt.length;for(Vi&&Jn&&(ii=qt[--Jn]);Jn--;)ii=bn(ii,qt[Jn],Jn,qt);return ii}function al(qt,bn){for(var ii=-1,Vi=null==qt?0:qt.length;++ii<Vi;)if(bn(qt[ii],ii,qt))return!0;return!1}var ur=it("length");function Ls(qt,bn,ii){var Vi;return ii(qt,function(Jn,zt,mn){if(bn(Jn,zt,mn))return Vi=zt,!1}),Vi}function vn(qt,bn,ii,Vi){for(var Jn=qt.length,zt=ii+(Vi?1:-1);Vi?zt--:++zt<Jn;)if(bn(qt[zt],zt,qt))return zt;return-1}function Xe(qt,bn,ii){return bn==bn?function Xn(qt,bn,ii){for(var Vi=ii-1,Jn=qt.length;++Vi<Jn;)if(qt[Vi]===bn)return Vi;return-1}(qt,bn,ii):vn(qt,ze,ii)}function Ke(qt,bn,ii,Vi){for(var Jn=ii-1,zt=qt.length;++Jn<zt;)if(Vi(qt[Jn],bn))return Jn;return-1}function ze(qt){return qt!=qt}function St(qt,bn){var ii=null==qt?0:qt.length;return ii?Co(qt,bn)/ii:NaN}function it(qt){return function(bn){return null==bn?n:bn[qt]}}function Dt(qt){return function(bn){return null==qt?n:qt[bn]}}function Hn(qt,bn,ii,Vi,Jn){return Jn(qt,function(zt,mn,Qn){ii=Vi?(Vi=!1,zt):bn(ii,zt,mn,Qn)}),ii}function Co(qt,bn){for(var ii,Vi=-1,Jn=qt.length;++Vi<Jn;){var zt=bn(qt[Vi]);zt!==n&&(ii=ii===n?zt:ii+zt)}return ii}function Sn(qt,bn){for(var ii=-1,Vi=Array(qt);++ii<qt;)Vi[ii]=bn(ii);return Vi}function Dn(qt){return qt&&qt.slice(0,Kt(qt)+1).replace(ln,"")}function kn(qt){return function(bn){return qt(bn)}}function ui(qt,bn){return ys(bn,function(ii){return qt[ii]})}function Ot(qt,bn){return qt.has(bn)}function en(qt,bn){for(var ii=-1,Vi=qt.length;++ii<Vi&&Xe(bn,qt[ii],0)>-1;);return ii}function cn(qt,bn){for(var ii=qt.length;ii--&&Xe(bn,qt[ii],0)>-1;);return ii}var ft=Dt({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"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"}),Nt=Dt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(qt){return"\\"+No[qt]}function Je(qt){return Cr.test(qt)}function Be(qt){var bn=-1,ii=Array(qt.size);return qt.forEach(function(Vi,Jn){ii[++bn]=[Jn,Vi]}),ii}function At(qt,bn){return function(ii){return qt(bn(ii))}}function Rt(qt,bn){for(var ii=-1,Vi=qt.length,Jn=0,zt=[];++ii<Vi;){var mn=qt[ii];(mn===bn||mn===_)&&(qt[ii]=_,zt[Jn++]=ii)}return zt}function Pt(qt){var bn=-1,ii=Array(qt.size);return qt.forEach(function(Vi){ii[++bn]=Vi}),ii}function Ae(qt){return Je(qt)?function Fi(qt){for(var bn=Zn.lastIndex=0;Zn.test(qt);)++bn;return bn}(qt):ur(qt)}function He(qt){return Je(qt)?function Ci(qt){return qt.match(Zn)||[]}(qt):function La(qt){return qt.split("")}(qt)}function Kt(qt){for(var bn=qt.length;bn--&&jn.test(qt.charAt(bn)););return bn}var On=Dt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),Vt=function qt(bn){var Se,ii=(bn=null==bn?ls:Vt.defaults(ls.Object(),bn,Vt.pick(ls,xs))).Array,Vi=bn.Date,Jn=bn.Error,zt=bn.Function,mn=bn.Math,Qn=bn.Object,ci=bn.RegExp,Oi=bn.String,Ai=bn.TypeError,Pn=ii.prototype,Ni=Qn.prototype,Ue=bn["__core-js_shared__"],Ye=zt.prototype.toString,Me=Ni.hasOwnProperty,pe=0,lt=(Se=/[^.]+$/.exec(Ue&&Ue.keys&&Ue.keys.IE_PROTO||""))?"Symbol(src)_1."+Se:"",yt=Ni.toString,on=Ye.call(Qn),zi=ls._,Kn=ci("^"+Ye.call(Me).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ho=Wa?bn.Buffer:n,po=bn.Symbol,$i=bn.Uint8Array,ro=ho?ho.allocUnsafe:n,wo=At(Qn.getPrototypeOf,Qn),io=Qn.create,Wi=Ni.propertyIsEnumerable,fo=Pn.splice,cr=po?po.isConcatSpreadable:n,Fr=po?po.iterator:n,jr=po?po.toStringTag:n,fs=function(){try{var Se=Uc(Qn,"defineProperty");return Se({},"",{}),Se}catch{}}(),Ms=bn.clearTimeout!==ls.clearTimeout&&bn.clearTimeout,Ca=Vi&&Vi.now!==ls.Date.now&&Vi.now,ks=bn.setTimeout!==ls.setTimeout&&bn.setTimeout,ts=mn.ceil,na=mn.floor,Xs=Qn.getOwnPropertySymbols,_a=ho?ho.isBuffer:n,Ws=bn.isFinite,cs=Pn.join,Ps=At(Qn.keys,Qn),Qi=mn.max,vo=mn.min,pi=Vi.now,to=bn.parseInt,Ro=mn.random,Sr=Pn.reverse,rs=Uc(bn,"DataView"),Os=Uc(bn,"Map"),Ys=Uc(bn,"Promise"),la=Uc(bn,"Set"),Da=Uc(bn,"WeakMap"),Ka=Uc(Qn,"create"),nl=Da&&new Da,il={},xl=dh(rs),eo=dh(Os),To=dh(Ys),Qo=dh(la),Dr=dh(Da),_s=po?po.prototype:n,ia=_s?_s.valueOf:n,Ia=_s?_s.toString:n;function ar(Se){if(Ru(Se)&&!xc(Se)&&!(Se instanceof pa)){if(Se instanceof Ya)return Se;if(Me.call(Se,"__wrapped__"))return _h(Se)}return new Ya(Se)}var wa=function(){function Se(){}return function(nt){if(!sd(nt))return{};if(io)return io(nt);Se.prototype=nt;var Un=new Se;return Se.prototype=n,Un}}();function _l(){}function Ya(Se,nt){this.__wrapped__=Se,this.__actions__=[],this.__chain__=!!nt,this.__index__=0,this.__values__=n}function pa(Se){this.__wrapped__=Se,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function Ct(Se){var nt=-1,Un=null==Se?0:Se.length;for(this.clear();++nt<Un;){var so=Se[nt];this.set(so[0],so[1])}}function gi(Se){var nt=-1,Un=null==Se?0:Se.length;for(this.clear();++nt<Un;){var so=Se[nt];this.set(so[0],so[1])}}function ca(Se){var nt=-1,Un=null==Se?0:Se.length;for(this.clear();++nt<Un;){var so=Se[nt];this.set(so[0],so[1])}}function Wl(Se){var nt=-1,Un=null==Se?0:Se.length;for(this.__data__=new ca;++nt<Un;)this.add(Se[nt])}function Vc(Se){var nt=this.__data__=new gi(Se);this.size=nt.size}function th(Se,nt){var Un=xc(Se),so=!Un&&up(Se),Vo=!Un&&!so&&Yf(Se),Er=!Un&&!so&&!Vo&&Ph(Se),Vr=Un||so||Vo||Er,Xr=Vr?Sn(Se.length,Oi):[],Rs=Xr.length;for(var sa in Se)(nt||Me.call(Se,sa))&&(!Vr||!("length"==sa||Vo&&("offset"==sa||"parent"==sa)||Er&&("buffer"==sa||"byteLength"==sa||"byteOffset"==sa)||ah(sa,Rs)))&&Xr.push(sa);return Xr}function Uh(Se){var nt=Se.length;return nt?Se[es(0,nt-1)]:n}function Jc(Se,nt){return Qu(yd(Se),fu(nt,0,Se.length))}function nh(Se){return Qu(yd(Se))}function cd(Se,nt,Un){(Un!==n&&!Hu(Se[nt],Un)||Un===n&&!(nt in Se))&&mc(Se,nt,Un)}function Cd(Se,nt,Un){var so=Se[nt];(!Me.call(Se,nt)||!Hu(so,Un)||Un===n&&!(nt in Se))&&mc(Se,nt,Un)}function yu(Se,nt){for(var Un=Se.length;Un--;)if(Hu(Se[Un][0],nt))return Un;return-1}function bu(Se,nt,Un,so){return gc(Se,function(Vo,Er,Vr){nt(so,Vo,Un(Vo),Vr)}),so}function nu(Se,nt){return Se&&Nd(nt,pc(nt),Se)}function mc(Se,nt,Un){"__proto__"==nt&&fs?fs(Se,nt,{configurable:!0,enumerable:!0,value:Un,writable:!0}):Se[nt]=Un}function xd(Se,nt){for(var Un=-1,so=nt.length,Vo=ii(so),Er=null==Se;++Un<so;)Vo[Un]=Er?n:Rl(Se,nt[Un]);return Vo}function fu(Se,nt,Un){return Se==Se&&(Un!==n&&(Se=Se<=Un?Se:Un),nt!==n&&(Se=Se>=nt?Se:nt)),Se}function Fl(Se,nt,Un,so,Vo,Er){var Vr,Xr=1&nt,Rs=2&nt,sa=4&nt;if(Un&&(Vr=Vo?Un(Se,so,Vo,Er):Un(Se)),Vr!==n)return Vr;if(!sd(Se))return Se;var ma=xc(Se);if(ma){if(Vr=function ef(Se){var nt=Se.length,Un=new Se.constructor(nt);return nt&&"string"==typeof Se[0]&&Me.call(Se,"index")&&(Un.index=Se.index,Un.input=Se.input),Un}(Se),!Xr)return yd(Se,Vr)}else{var Ma=qd(Se),Qa=Ma==De||Ma==fe;if(Yf(Se))return Iu(Se,Xr);if(Ma==Gt||Ma==q||Qa&&!Vo){if(Vr=Rs||Qa?{}:Bu(Se),!Xr)return Rs?function Ad(Se,nt){return Nd(Se,Fd(Se),nt)}(Se,function Zu(Se,nt){return Se&&Nd(nt,wc(nt),Se)}(Vr,Se)):function Pp(Se,nt){return Nd(Se,Od(Se),nt)}(Se,nu(Vr,Se))}else{if(!Ss[Ma])return Vo?Se:{};Vr=function ru(Se,nt,Un){var so=Se.constructor;switch(nt){case fn:return Qh(Se);case _e:case ge:return new so(+Se);case yi:return function xh(Se,nt){var Un=nt?Qh(Se.buffer):Se.buffer;return new Se.constructor(Un,Se.byteOffset,Se.byteLength)}(Se,Un);case nn:case Mi:case mi:case Eo:case Ko:case xo:case Bn:case Xt:case Ji:return pf(Se,Un);case xe:return new so;case Oe:case mt:return new so(Se);case $n:return function Xh(Se){var nt=new Se.constructor(Se.source,hi.exec(Se));return nt.lastIndex=Se.lastIndex,nt}(Se);case xn:return new so;case ut:return function Sh(Se){return ia?Qn(ia.call(Se)):{}}(Se)}}(Se,Ma,Xr)}}Er||(Er=new Vc);var Cl=Er.get(Se);if(Cl)return Cl;Er.set(Se,Vr),zm(Se)?Se.forEach(function(Yl){Vr.add(Fl(Yl,nt,Un,Yl,Se,Er))}):Bm(Se)&&Se.forEach(function(Yl,Zc){Vr.set(Zc,Fl(Yl,nt,Un,Zc,Se,Er))});var sc=ma?n:(sa?Rs?Dh:ep:Rs?wc:pc)(Se);return sr(sc||Se,function(Yl,Zc){sc&&(Yl=Se[Zc=Yl]),Cd(Vr,Zc,Fl(Yl,nt,Un,Zc,Se,Er))}),Vr}function Jl(Se,nt,Un){var so=Un.length;if(null==Se)return!so;for(Se=Qn(Se);so--;){var Vo=Un[so],Vr=Se[Vo];if(Vr===n&&!(Vo in Se)||!(0,nt[Vo])(Vr))return!1}return!0}function gd(Se,nt,Un){if("function"!=typeof Se)throw new Ai(u);return zf(function(){Se.apply(n,Un)},nt)}function dd(Se,nt,Un,so){var Vo=-1,Er=gs,Vr=!0,Xr=Se.length,Rs=[],sa=nt.length;if(!Xr)return Rs;Un&&(nt=ys(nt,kn(Un))),so?(Er=Pr,Vr=!1):nt.length>=200&&(Er=Ot,Vr=!1,nt=new Wl(nt));e:for(;++Vo<Xr;){var ma=Se[Vo],Ma=null==Un?ma:Un(ma);if(ma=so||0!==ma?ma:0,Vr&&Ma==Ma){for(var Qa=sa;Qa--;)if(nt[Qa]===Ma)continue e;Rs.push(ma)}else Er(nt,Ma,so)||Rs.push(ma)}return Rs}ar.templateSettings={escape:xt,evaluate:wt,interpolate:Mt,variable:"",imports:{_:ar}},(ar.prototype=_l.prototype).constructor=ar,(Ya.prototype=wa(_l.prototype)).constructor=Ya,(pa.prototype=wa(_l.prototype)).constructor=pa,Ct.prototype.clear=function rn(){this.__data__=Ka?Ka(null):{},this.size=0},Ct.prototype.delete=function We(Se){var nt=this.has(Se)&&delete this.__data__[Se];return this.size-=nt?1:0,nt},Ct.prototype.get=function Ft(Se){var nt=this.__data__;if(Ka){var Un=nt[Se];return Un===s?n:Un}return Me.call(nt,Se)?nt[Se]:n},Ct.prototype.has=function ct(Se){var nt=this.__data__;return Ka?nt[Se]!==n:Me.call(nt,Se)},Ct.prototype.set=function Qt(Se,nt){var Un=this.__data__;return this.size+=this.has(Se)?0:1,Un[Se]=Ka&&nt===n?s:nt,this},gi.prototype.clear=function Do(){this.__data__=[],this.size=0},gi.prototype.delete=function Po(Se){var nt=this.__data__,Un=yu(nt,Se);return!(Un<0||(Un==nt.length-1?nt.pop():fo.call(nt,Un,1),--this.size,0))},gi.prototype.get=function Or(Se){var nt=this.__data__,Un=yu(nt,Se);return Un<0?n:nt[Un][1]},gi.prototype.has=function hs(Se){return yu(this.__data__,Se)>-1},gi.prototype.set=function Zs(Se,nt){var Un=this.__data__,so=yu(Un,Se);return so<0?(++this.size,Un.push([Se,nt])):Un[so][1]=nt,this},ca.prototype.clear=function za(){this.size=0,this.__data__={hash:new Ct,map:new(Os||gi),string:new Ct}},ca.prototype.delete=function cl(Se){var nt=qh(this,Se).delete(Se);return this.size-=nt?1:0,nt},ca.prototype.get=function yc(Se){return qh(this,Se).get(Se)},ca.prototype.has=function bc(Se){return qh(this,Se).has(Se)},ca.prototype.set=function ec(Se,nt){var Un=qh(this,Se),so=Un.size;return Un.set(Se,nt),this.size+=Un.size==so?0:1,this},Wl.prototype.add=Wl.prototype.push=function va(Se){return this.__data__.set(Se,s),this},Wl.prototype.has=function Hc(Se){return this.__data__.has(Se)},Vc.prototype.clear=function Mu(){this.__data__=new gi,this.size=0},Vc.prototype.delete=function Tl(Se){var nt=this.__data__,Un=nt.delete(Se);return this.size=nt.size,Un},Vc.prototype.get=function cc(Se){return this.__data__.get(Se)},Vc.prototype.has=function Id(Se){return this.__data__.has(Se)},Vc.prototype.set=function vu(Se,nt){var Un=this.__data__;if(Un instanceof gi){var so=Un.__data__;if(!Os||so.length<199)return so.push([Se,nt]),this.size=++Un.size,this;Un=this.__data__=new ca(so)}return Un.set(Se,nt),this.size=Un.size,this};var gc=rh(Ic),ih=rh(Gd,!0);function Cu(Se,nt){var Un=!0;return gc(Se,function(so,Vo,Er){return Un=!!nt(so,Vo,Er)}),Un}function id(Se,nt,Un){for(var so=-1,Vo=Se.length;++so<Vo;){var Er=Se[so],Vr=nt(Er);if(null!=Vr&&(Xr===n?Vr==Vr&&!Oh(Vr):Un(Vr,Xr)))var Xr=Vr,Rs=Er}return Rs}function ud(Se,nt){var Un=[];return gc(Se,function(so,Vo,Er){nt(so,Vo,Er)&&Un.push(so)}),Un}function ql(Se,nt,Un,so,Vo){var Er=-1,Vr=Se.length;for(Un||(Un=Rp),Vo||(Vo=[]);++Er<Vr;){var Xr=Se[Er];nt>0&&Un(Xr)?nt>1?ql(Xr,nt-1,Un,so,Vo):da(Vo,Xr):so||(Vo[Vo.length]=Xr)}return Vo}var Ku=sh(),od=sh(!0);function Ic(Se,nt){return Se&&Ku(Se,nt,pc)}function Gd(Se,nt){return Se&&od(Se,nt,pc)}function $d(Se,nt){return ss(nt,function(Un){return nc(Se[Un])})}function dc(Se,nt){for(var Un=0,so=(nt=Sd(nt,Se)).length;null!=Se&&Un<so;)Se=Se[zu(nt[Un++])];return Un&&Un==so?Se:n}function $c(Se,nt,Un){var so=nt(Se);return xc(Se)?so:da(so,Un(Se))}function oc(Se){return null==Se?Se===n?"[object Undefined]":"[object Null]":jr&&jr in Qn(Se)?function pu(Se){var nt=Me.call(Se,jr),Un=Se[jr];try{Se[jr]=n;var so=!0}catch{}var Vo=yt.call(Se);return so&&(nt?Se[jr]=Un:delete Se[jr]),Vo}(Se):function Ih(Se){return yt.call(Se)}(Se)}function Hd(Se,nt){return Se>nt}function Rc(Se,nt){return null!=Se&&Me.call(Se,nt)}function _d(Se,nt){return null!=Se&&nt in Qn(Se)}function Di(Se,nt,Un){for(var so=Un?Pr:gs,Vo=Se[0].length,Er=Se.length,Vr=Er,Xr=ii(Er),Rs=1/0,sa=[];Vr--;){var ma=Se[Vr];Vr&&nt&&(ma=ys(ma,kn(nt))),Rs=vo(ma.length,Rs),Xr[Vr]=!Un&&(nt||Vo>=120&&ma.length>=120)?new Wl(Vr&&ma):n}ma=Se[0];var Ma=-1,Qa=Xr[0];e:for(;++Ma<Vo&&sa.length<Rs;){var Cl=ma[Ma],El=nt?nt(Cl):Cl;if(Cl=Un||0!==Cl?Cl:0,!(Qa?Ot(Qa,El):so(sa,El,Un))){for(Vr=Er;--Vr;){var sc=Xr[Vr];if(!(sc?Ot(sc,El):so(Se[Vr],El,Un)))continue e}Qa&&Qa.push(El),sa.push(Cl)}}return sa}function Wo(Se,nt,Un){var so=null==(Se=Rd(Se,nt=Sd(nt,Se)))?Se:Se[zu(Zl(nt))];return null==so?n:Yi(so,Se,Un)}function vr(Se){return Ru(Se)&&oc(Se)==q}function vs(Se,nt,Un,so,Vo){return Se===nt||(null==Se||null==nt||!Ru(Se)&&!Ru(nt)?Se!=Se&&nt!=nt:function Ns(Se,nt,Un,so,Vo,Er){var Vr=xc(Se),Xr=xc(nt),Rs=Vr?se:qd(Se),sa=Xr?se:qd(nt),ma=(Rs=Rs==q?Gt:Rs)==Gt,Ma=(sa=sa==q?Gt:sa)==Gt,Qa=Rs==sa;if(Qa&&Yf(Se)){if(!Yf(nt))return!1;Vr=!0,ma=!1}if(Qa&&!ma)return Er||(Er=new Vc),Vr||Ph(Se)?gm(Se,nt,Un,so,Vo,Er):function Xd(Se,nt,Un,so,Vo,Er,Vr){switch(Un){case yi:if(Se.byteLength!=nt.byteLength||Se.byteOffset!=nt.byteOffset)return!1;Se=Se.buffer,nt=nt.buffer;case fn:return!(Se.byteLength!=nt.byteLength||!Er(new $i(Se),new $i(nt)));case _e:case ge:case Oe:return Hu(+Se,+nt);case Te:return Se.name==nt.name&&Se.message==nt.message;case $n:case mt:return Se==nt+"";case xe:var Xr=Be;case xn:if(Xr||(Xr=Pt),Se.size!=nt.size&&!(1&so))return!1;var sa=Vr.get(Se);if(sa)return sa==nt;so|=2,Vr.set(Se,nt);var ma=gm(Xr(Se),Xr(nt),so,Vo,Er,Vr);return Vr.delete(Se),ma;case ut:if(ia)return ia.call(Se)==ia.call(nt)}return!1}(Se,nt,Rs,Un,so,Vo,Er);if(!(1&Un)){var Cl=ma&&Me.call(Se,"__wrapped__"),El=Ma&&Me.call(nt,"__wrapped__");if(Cl||El){var sc=Cl?Se.value():Se,Yl=El?nt.value():nt;return Er||(Er=new Vc),Vo(sc,Yl,Un,so,Er)}}return!!Qa&&(Er||(Er=new Vc),function gh(Se,nt,Un,so,Vo,Er){var Vr=1&Un,Xr=ep(Se),Rs=Xr.length;if(Rs!=ep(nt).length&&!Vr)return!1;for(var Ma=Rs;Ma--;){var Qa=Xr[Ma];if(!(Vr?Qa in nt:Me.call(nt,Qa)))return!1}var Cl=Er.get(Se),El=Er.get(nt);if(Cl&&El)return Cl==nt&&El==Se;var sc=!0;Er.set(Se,nt),Er.set(nt,Se);for(var Yl=Vr;++Ma<Rs;){var Zc=Se[Qa=Xr[Ma]],Kc=nt[Qa];if(so)var gp=Vr?so(Kc,Zc,Qa,nt,Se,Er):so(Zc,Kc,Qa,Se,nt,Er);if(!(gp===n?Zc===Kc||Vo(Zc,Kc,Un,so,Er):gp)){sc=!1;break}Yl||(Yl="constructor"==Qa)}if(sc&&!Yl){var Jf=Se.constructor,Yp=nt.constructor;Jf!=Yp&&"constructor"in Se&&"constructor"in nt&&!("function"==typeof Jf&&Jf instanceof Jf&&"function"==typeof Yp&&Yp instanceof Yp)&&(sc=!1)}return Er.delete(Se),Er.delete(nt),sc}(Se,nt,Un,so,Vo,Er))}(Se,nt,Un,so,vs,Vo))}function qs(Se,nt,Un,so){var Vo=Un.length,Er=Vo,Vr=!so;if(null==Se)return!Er;for(Se=Qn(Se);Vo--;){var Xr=Un[Vo];if(Vr&&Xr[2]?Xr[1]!==Se[Xr[0]]:!(Xr[0]in Se))return!1}for(;++Vo<Er;){var Rs=(Xr=Un[Vo])[0],sa=Se[Rs],ma=Xr[1];if(Vr&&Xr[2]){if(sa===n&&!(Rs in Se))return!1}else{var Ma=new Vc;if(so)var Qa=so(sa,ma,Rs,Se,nt,Ma);if(!(Qa===n?vs(ma,sa,3,so,Ma):Qa))return!1}}return!0}function fa(Se){return!(!sd(Se)||function gf(Se){return!!lt&&lt in Se}(Se))&&(nc(Se)?Kn:li).test(dh(Se))}function st(Se){return"function"==typeof Se?Se:null==Se?Nh:"object"==typeof Se?xc(Se)?zs(Se[0],Se[1]):us(Se):fm(Se)}function ei(Se){if(!pd(Se))return Ps(Se);var nt=[];for(var Un in Qn(Se))Me.call(Se,Un)&&"constructor"!=Un&&nt.push(Un);return nt}function gr(Se,nt){return Se<nt}function ds(Se,nt){var Un=-1,so=Pu(Se)?ii(Se.length):[];return gc(Se,function(Vo,Er,Vr){so[++Un]=nt(Vo,Er,Vr)}),so}function us(Se){var nt=Mh(Se);return 1==nt.length&&nt[0][2]?kf(nt[0][0],nt[0][1]):function(Un){return Un===Se||qs(Un,Se,nt)}}function zs(Se,nt){return kh(Se)&&su(nt)?kf(zu(Se),nt):function(Un){var so=Rl(Un,Se);return so===n&&so===nt?Md(Un,Se):vs(nt,so,3)}}function Ta(Se,nt,Un,so,Vo){Se!==nt&&Ku(nt,function(Er,Vr){if(Vo||(Vo=new Vc),sd(Er))!function Pe(Se,nt,Un,so,Vo,Er,Vr){var Xr=eu(Se,Un),Rs=eu(nt,Un),sa=Vr.get(Rs);if(sa)cd(Se,Un,sa);else{var ma=Er?Er(Xr,Rs,Un+"",Se,nt,Vr):n,Ma=ma===n;if(Ma){var Qa=xc(Rs),Cl=!Qa&&Yf(Rs),El=!Qa&&!Cl&&Ph(Rs);ma=Rs,Qa||Cl||El?xc(Xr)?ma=Xr:Yd(Xr)?ma=yd(Xr):Cl?(Ma=!1,ma=Iu(Rs,!0)):El?(Ma=!1,ma=pf(Rs,!0)):ma=[]:Tm(Rs)||up(Rs)?(ma=Xr,up(Xr)?ma=hh(Xr):(!sd(Xr)||nc(Xr))&&(ma=Bu(Rs))):Ma=!1}Ma&&(Vr.set(Rs,ma),Vo(ma,Rs,so,Er,Vr),Vr.delete(Rs)),cd(Se,Un,ma)}}(Se,nt,Vr,Un,Ta,so,Vo);else{var Xr=so?so(eu(Se,Vr),Er,Vr+"",Se,nt,Vo):n;Xr===n&&(Xr=Er),cd(Se,Vr,Xr)}},wc)}function Tn(Se,nt){var Un=Se.length;if(Un)return ah(nt+=nt<0?Un:0,Un)?Se[nt]:n}function v(Se,nt,Un){nt=nt.length?ys(nt,function(Er){return xc(Er)?function(Vr){return dc(Vr,1===Er.length?Er[0]:Er)}:Er}):[Nh];var so=-1;return nt=ys(nt,kn(qa())),function Ui(qt,bn){var ii=qt.length;for(qt.sort(bn);ii--;)qt[ii]=qt[ii].value;return qt}(ds(Se,function(Er,Vr,Xr){return{criteria:ys(nt,function(sa){return sa(Er)}),index:++so,value:Er}}),function(Er,Vr){return function wh(Se,nt,Un){for(var so=-1,Vo=Se.criteria,Er=nt.criteria,Vr=Vo.length,Xr=Un.length;++so<Vr;){var Rs=Nc(Vo[so],Er[so]);if(Rs)return so>=Xr?Rs:Rs*("desc"==Un[so]?-1:1)}return Se.index-nt.index}(Er,Vr,Un)})}function dt(Se,nt,Un){for(var so=-1,Vo=nt.length,Er={};++so<Vo;){var Vr=nt[so],Xr=dc(Se,Vr);Un(Xr,Vr)&&ml(Er,Sd(Vr,Se),Xr)}return Er}function er(Se,nt,Un,so){var Vo=so?Ke:Xe,Er=-1,Vr=nt.length,Xr=Se;for(Se===nt&&(nt=yd(nt)),Un&&(Xr=ys(Se,kn(Un)));++Er<Vr;)for(var Rs=0,sa=nt[Er],ma=Un?Un(sa):sa;(Rs=Vo(Xr,ma,Rs,so))>-1;)Xr!==Se&&fo.call(Xr,Rs,1),fo.call(Se,Rs,1);return Se}function Br(Se,nt){for(var Un=Se?nt.length:0,so=Un-1;Un--;){var Vo=nt[Un];if(Un==so||Vo!==Er){var Er=Vo;ah(Vo)?fo.call(Se,Vo,1):uf(Se,Vo)}}return Se}function es(Se,nt){return Se+na(Ro()*(nt-Se+1))}function xa(Se,nt){var Un="";if(!Se||nt<1||nt>Q)return Un;do{nt%2&&(Un+=Se),(nt=na(nt/2))&&(Se+=Se)}while(nt);return Un}function ha(Se,nt){return ch(Pd(Se,nt,Nh),Se+"")}function Aa(Se){return Uh(af(Se))}function vl(Se,nt){var Un=af(Se);return Qu(Un,fu(nt,0,Un.length))}function ml(Se,nt,Un,so){if(!sd(Se))return Se;for(var Vo=-1,Er=(nt=Sd(nt,Se)).length,Vr=Er-1,Xr=Se;null!=Xr&&++Vo<Er;){var Rs=zu(nt[Vo]),sa=Un;if("__proto__"===Rs||"constructor"===Rs||"prototype"===Rs)return Se;if(Vo!=Vr){var ma=Xr[Rs];(sa=so?so(ma,Rs,Xr):n)===n&&(sa=sd(ma)?ma:ah(nt[Vo+1])?[]:{})}Cd(Xr,Rs,sa),Xr=Xr[Rs]}return Se}var yl=nl?function(Se,nt){return nl.set(Se,nt),Se}:Nh,Cc=fs?function(Se,nt){return fs(Se,"toString",{configurable:!0,enumerable:!1,value:o_(nt),writable:!0})}:Nh;function Bc(Se){return Qu(af(Se))}function Bl(Se,nt,Un){var so=-1,Vo=Se.length;nt<0&&(nt=-nt>Vo?0:Vo+nt),(Un=Un>Vo?Vo:Un)<0&&(Un+=Vo),Vo=nt>Un?0:Un-nt>>>0,nt>>>=0;for(var Er=ii(Vo);++so<Vo;)Er[so]=Se[so+nt];return Er}function Wc(Se,nt){var Un;return gc(Se,function(so,Vo,Er){return!(Un=nt(so,Vo,Er))}),!!Un}function xu(Se,nt,Un){var so=0,Vo=null==Se?so:Se.length;if("number"==typeof nt&&nt==nt&&Vo<=2147483647){for(;so<Vo;){var Er=so+Vo>>>1,Vr=Se[Er];null!==Vr&&!Oh(Vr)&&(Un?Vr<=nt:Vr<nt)?so=Er+1:Vo=Er}return Vo}return iu(Se,nt,Nh,Un)}function iu(Se,nt,Un,so){var Vo=0,Er=null==Se?0:Se.length;if(0===Er)return 0;for(var Vr=(nt=Un(nt))!=nt,Xr=null===nt,Rs=Oh(nt),sa=nt===n;Vo<Er;){var ma=na((Vo+Er)/2),Ma=Un(Se[ma]),Qa=Ma!==n,Cl=null===Ma,El=Ma==Ma,sc=Oh(Ma);if(Vr)var Yl=so||El;else Yl=sa?El&&(so||Qa):Xr?El&&Qa&&(so||!Cl):Rs?El&&Qa&&!Cl&&(so||!sc):!Cl&&!sc&&(so?Ma<=nt:Ma<nt);Yl?Vo=ma+1:Er=ma}return vo(Er,4294967294)}function ku(Se,nt){for(var Un=-1,so=Se.length,Vo=0,Er=[];++Un<so;){var Vr=Se[Un],Xr=nt?nt(Vr):Vr;if(!Un||!Hu(Xr,Rs)){var Rs=Xr;Er[Vo++]=0===Vr?0:Vr}}return Er}function Lc(Se){return"number"==typeof Se?Se:Oh(Se)?NaN:+Se}function ul(Se){if("string"==typeof Se)return Se;if(xc(Se))return ys(Se,ul)+"";if(Oh(Se))return Ia?Ia.call(Se):"";var nt=Se+"";return"0"==nt&&1/Se==-J?"-0":nt}function Mc(Se,nt,Un){var so=-1,Vo=gs,Er=Se.length,Vr=!0,Xr=[],Rs=Xr;if(Un)Vr=!1,Vo=Pr;else if(Er>=200){var sa=nt?null:fl(Se);if(sa)return Pt(sa);Vr=!1,Vo=Ot,Rs=new Wl}else Rs=nt?[]:Xr;e:for(;++so<Er;){var ma=Se[so],Ma=nt?nt(ma):ma;if(ma=Un||0!==ma?ma:0,Vr&&Ma==Ma){for(var Qa=Rs.length;Qa--;)if(Rs[Qa]===Ma)continue e;nt&&Rs.push(Ma),Xr.push(ma)}else Vo(Rs,Ma,Un)||(Rs!==Xr&&Rs.push(Ma),Xr.push(ma))}return Xr}function uf(Se,nt){return null==(Se=Rd(Se,nt=Sd(nt,Se)))||delete Se[zu(Zl(nt))]}function Tf(Se,nt,Un,so){return ml(Se,nt,Un(dc(Se,nt)),so)}function Ff(Se,nt,Un,so){for(var Vo=Se.length,Er=so?Vo:-1;(so?Er--:++Er<Vo)&&nt(Se[Er],Er,Se););return Un?Bl(Se,so?0:Er,so?Er+1:Vo):Bl(Se,so?Er+1:0,so?Vo:Er)}function hf(Se,nt){var Un=Se;return Un instanceof pa&&(Un=Un.value()),Va(nt,function(so,Vo){return Vo.func.apply(Vo.thisArg,da([so],Vo.args))},Un)}function Vd(Se,nt,Un){var so=Se.length;if(so<2)return so?Mc(Se[0]):[];for(var Vo=-1,Er=ii(so);++Vo<so;)for(var Vr=Se[Vo],Xr=-1;++Xr<so;)Xr!=Vo&&(Er[Vo]=dd(Er[Vo]||Vr,Se[Xr],nt,Un));return Mc(ql(Er,1),nt,Un)}function Fu(Se,nt,Un){for(var so=-1,Vo=Se.length,Er=nt.length,Vr={};++so<Vo;)Un(Vr,Se[so],so<Er?nt[so]:n);return Vr}function Ch(Se){return Yd(Se)?Se:[]}function mh(Se){return"function"==typeof Se?Se:Nh}function Sd(Se,nt){return xc(Se)?Se:kh(Se,nt)?[Se]:Yh(Et(Se))}var vd=ha;function hd(Se,nt,Un){var so=Se.length;return Un=Un===n?so:Un,!nt&&Un>=so?Se:Bl(Se,nt,Un)}var ff=Ms||function(Se){return ls.clearTimeout(Se)};function Iu(Se,nt){if(nt)return Se.slice();var Un=Se.length,so=ro?ro(Un):new Se.constructor(Un);return Se.copy(so),so}function Qh(Se){var nt=new Se.constructor(Se.byteLength);return new $i(nt).set(new $i(Se)),nt}function pf(Se,nt){var Un=nt?Qh(Se.buffer):Se.buffer;return new Se.constructor(Un,Se.byteOffset,Se.length)}function Nc(Se,nt){if(Se!==nt){var Un=Se!==n,so=null===Se,Vo=Se==Se,Er=Oh(Se),Vr=nt!==n,Xr=null===nt,Rs=nt==nt,sa=Oh(nt);if(!Xr&&!sa&&!Er&&Se>nt||Er&&Vr&&Rs&&!Xr&&!sa||so&&Vr&&Rs||!Un&&Rs||!Vo)return 1;if(!so&&!Er&&!sa&&Se<nt||sa&&Un&&Vo&&!so&&!Er||Xr&&Un&&Vo||!Vr&&Vo||!Rs)return-1}return 0}function Eh(Se,nt,Un,so){for(var Vo=-1,Er=Se.length,Vr=Un.length,Xr=-1,Rs=nt.length,sa=Qi(Er-Vr,0),ma=ii(Rs+sa),Ma=!so;++Xr<Rs;)ma[Xr]=nt[Xr];for(;++Vo<Vr;)(Ma||Vo<Er)&&(ma[Un[Vo]]=Se[Vo]);for(;sa--;)ma[Xr++]=Se[Vo++];return ma}function oh(Se,nt,Un,so){for(var Vo=-1,Er=Se.length,Vr=-1,Xr=Un.length,Rs=-1,sa=nt.length,ma=Qi(Er-Xr,0),Ma=ii(ma+sa),Qa=!so;++Vo<ma;)Ma[Vo]=Se[Vo];for(var Cl=Vo;++Rs<sa;)Ma[Cl+Rs]=nt[Rs];for(;++Vr<Xr;)(Qa||Vo<Er)&&(Ma[Cl+Un[Vr]]=Se[Vo++]);return Ma}function yd(Se,nt){var Un=-1,so=Se.length;for(nt||(nt=ii(so));++Un<so;)nt[Un]=Se[Un];return nt}function Nd(Se,nt,Un,so){var Vo=!Un;Un||(Un={});for(var Er=-1,Vr=nt.length;++Er<Vr;){var Xr=nt[Er],Rs=so?so(Un[Xr],Se[Xr],Xr,Un,Se):n;Rs===n&&(Rs=Se[Xr]),Vo?mc(Un,Xr,Rs):Cd(Un,Xr,Rs)}return Un}function Gh(Se,nt){return function(Un,so){var Vo=xc(Un)?co:bu,Er=nt?nt():{};return Vo(Un,Se,qa(so,2),Er)}}function uc(Se){return ha(function(nt,Un){var so=-1,Vo=Un.length,Er=Vo>1?Un[Vo-1]:n,Vr=Vo>2?Un[2]:n;for(Er=Se.length>3&&"function"==typeof Er?(Vo--,Er):n,Vr&&Qc(Un[0],Un[1],Vr)&&(Er=Vo<3?n:Er,Vo=1),nt=Qn(nt);++so<Vo;){var Xr=Un[so];Xr&&Se(nt,Xr,so,Er)}return nt})}function rh(Se,nt){return function(Un,so){if(null==Un)return Un;if(!Pu(Un))return Se(Un,so);for(var Vo=Un.length,Er=nt?Vo:-1,Vr=Qn(Un);(nt?Er--:++Er<Vo)&&!1!==so(Vr[Er],Er,Vr););return Un}}function sh(Se){return function(nt,Un,so){for(var Vo=-1,Er=Qn(nt),Vr=so(nt),Xr=Vr.length;Xr--;){var Rs=Vr[Se?Xr:++Vo];if(!1===Un(Er[Rs],Rs,Er))break}return nt}}function Bf(Se){return function(nt){var Un=Je(nt=Et(nt))?He(nt):n,so=Un?Un[0]:nt.charAt(0),Vo=Un?hd(Un,1).join(""):nt.slice(1);return so[Se]()+Vo}}function Qd(Se){return function(nt){return Va(Vm(Si(nt).replace(Ho,"")),Se,"")}}function Th(Se){return function(){var nt=arguments;switch(nt.length){case 0:return new Se;case 1:return new Se(nt[0]);case 2:return new Se(nt[0],nt[1]);case 3:return new Se(nt[0],nt[1],nt[2]);case 4:return new Se(nt[0],nt[1],nt[2],nt[3]);case 5:return new Se(nt[0],nt[1],nt[2],nt[3],nt[4]);case 6:return new Se(nt[0],nt[1],nt[2],nt[3],nt[4],nt[5]);case 7:return new Se(nt[0],nt[1],nt[2],nt[3],nt[4],nt[5],nt[6])}var Un=wa(Se.prototype),so=Se.apply(Un,nt);return sd(so)?so:Un}}function Hh(Se){return function(nt,Un,so){var Vo=Qn(nt);if(!Pu(nt)){var Er=qa(Un,3);nt=pc(nt),Un=function(Xr){return Er(Vo[Xr],Xr,Vo)}}var Vr=Se(nt,Un,so);return Vr>-1?Vo[Er?nt[Vr]:Vr]:n}}function Sl(Se){return Ed(function(nt){var Un=nt.length,so=Un,Vo=Ya.prototype.thru;for(Se&&nt.reverse();so--;){var Er=nt[so];if("function"!=typeof Er)throw new Ai(u);if(Vo&&!Vr&&"wrapper"==Ju(Er))var Vr=new Ya([],!0)}for(so=Vr?so:Un;++so<Un;){var Xr=Ju(Er=nt[so]),Rs="wrapper"==Xr?Vh(Er):n;Vr=Rs&&Mf(Rs[0])&&424==Rs[1]&&!Rs[4].length&&1==Rs[9]?Vr[Ju(Rs[0])].apply(Vr,Rs[3]):1==Er.length&&Mf(Er)?Vr[Xr]():Vr.thru(Er)}return function(){var sa=arguments,ma=sa[0];if(Vr&&1==sa.length&&xc(ma))return Vr.plant(ma).value();for(var Ma=0,Qa=Un?nt[Ma].apply(this,sa):ma;++Ma<Un;)Qa=nt[Ma].call(this,Qa);return Qa}})}function Rn(Se,nt,Un,so,Vo,Er,Vr,Xr,Rs,sa){var ma=nt&L,Ma=1&nt,Qa=2&nt,Cl=24&nt,El=512&nt,sc=Qa?n:Th(Se);return function Yl(){for(var Zc=arguments.length,Kc=ii(Zc),gp=Zc;gp--;)Kc[gp]=arguments[gp];if(Cl)var Jf=ou(Yl),Yp=function Ht(qt,bn){for(var ii=qt.length,Vi=0;ii--;)qt[ii]===bn&&++Vi;return Vi}(Kc,Jf);if(so&&(Kc=Eh(Kc,so,Vo,Cl)),Er&&(Kc=oh(Kc,Er,Vr,Cl)),Zc-=Yp,Cl&&Zc<sa){var Lu=Rt(Kc,Jf);return dl(Se,nt,Rn,Yl.placeholder,Un,Kc,Lu,Xr,Rs,sa-Zc)}var og=Ma?Un:this,jg=Qa?og[Se]:Se;return Zc=Kc.length,Xr?Kc=function If(Se,nt){for(var Un=Se.length,so=vo(nt.length,Un),Vo=yd(Se);so--;){var Er=nt[so];Se[so]=ah(Er,Un)?Vo[Er]:n}return Se}(Kc,Xr):El&&Zc>1&&Kc.reverse(),ma&&Rs<Zc&&(Kc.length=Rs),this&&this!==ls&&this instanceof Yl&&(jg=sc||Th(jg)),jg.apply(og,Kc)}}function Uo(Se,nt){return function(Un,so){return function uo(Se,nt,Un,so){return Ic(Se,function(Vo,Er,Vr){nt(so,Un(Vo),Er,Vr)}),so}(Un,Se,nt(so),{})}}function je(Se,nt){return function(Un,so){var Vo;if(Un===n&&so===n)return nt;if(Un!==n&&(Vo=Un),so!==n){if(Vo===n)return so;"string"==typeof Un||"string"==typeof so?(Un=ul(Un),so=ul(so)):(Un=Lc(Un),so=Lc(so)),Vo=Se(Un,so)}return Vo}}function Mn(Se){return Ed(function(nt){return nt=ys(nt,kn(qa())),ha(function(Un){var so=this;return Se(nt,function(Vo){return Yi(Vo,so,Un)})})})}function Gi(Se,nt){var Un=(nt=nt===n?" ":ul(nt)).length;if(Un<2)return Un?xa(nt,Se):nt;var so=xa(nt,ts(Se/Ae(nt)));return Je(nt)?hd(He(so),0,Se).join(""):so.slice(0,Se)}function is(Se){return function(nt,Un,so){return so&&"number"!=typeof so&&Qc(nt,Un,so)&&(Un=so=n),nt=cm(nt),Un===n?(Un=nt,nt=0):Un=cm(Un),function Ks(Se,nt,Un,so){for(var Vo=-1,Er=Qi(ts((nt-Se)/(Un||1)),0),Vr=ii(Er);Er--;)Vr[so?Er:++Vo]=Se,Se+=Un;return Vr}(nt,Un,so=so===n?nt<Un?1:-1:cm(so),Se)}}function ta(Se){return function(nt,Un){return"string"==typeof nt&&"string"==typeof Un||(nt=Rh(nt),Un=Rh(Un)),Se(nt,Un)}}function dl(Se,nt,Un,so,Vo,Er,Vr,Xr,Rs,sa){var ma=8&nt;nt|=ma?b:64,4&(nt&=~(ma?64:b))||(nt&=-4);var sc=[Se,nt,Vo,ma?Er:n,ma?Vr:n,ma?n:Er,ma?n:Vr,Xr,Rs,sa],Yl=Un.apply(n,sc);return Mf(Se)&&lh(Yl,sc),Yl.placeholder=so,Uf(Yl,Se,nt)}function $l(Se){var nt=mn[Se];return function(Un,so){if(Un=Rh(Un),(so=null==so?0:vo(fc(so),292))&&Ws(Un)){var Vo=(Et(Un)+"e").split("e");return+((Vo=(Et(nt(Vo[0]+"e"+(+Vo[1]+so)))+"e").split("e"))[0]+"e"+(+Vo[1]-so))}return nt(Un)}}var fl=la&&1/Pt(new la([,-0]))[1]==J?function(Se){return new la(Se)}:Hg;function _c(Se){return function(nt){var Un=qd(nt);return Un==xe?Be(nt):Un==xn?function $t(qt){var bn=-1,ii=Array(qt.size);return qt.forEach(function(Vi){ii[++bn]=[Vi,Vi]}),ii}(nt):function Vn(qt,bn){return ys(bn,function(ii){return[ii,qt[ii]]})}(nt,Se(nt))}}function Ol(Se,nt,Un,so,Vo,Er,Vr,Xr){var Rs=2&nt;if(!Rs&&"function"!=typeof Se)throw new Ai(u);var sa=so?so.length:0;if(sa||(nt&=-97,so=Vo=n),Vr=Vr===n?Vr:Qi(fc(Vr),0),Xr=Xr===n?Xr:fc(Xr),sa-=Vo?Vo.length:0,64&nt){var ma=so,Ma=Vo;so=Vo=n}var Qa=Rs?n:Vh(Se),Cl=[Se,nt,Un,so,Vo,ma,Ma,Er,Vr,Xr];if(Qa&&function jh(Se,nt){var Un=Se[1],so=nt[1],Vo=Un|so;if(!(Vo<131)&&!(so==L&&8==Un||so==L&&256==Un&&Se[7].length<=nt[8]||384==so&&nt[7].length<=nt[8]&&8==Un))return Se;1&so&&(Se[2]=nt[2],Vo|=1&Un?0:4);var Xr=nt[3];if(Xr){var Rs=Se[3];Se[3]=Rs?Eh(Rs,Xr,nt[4]):Xr,Se[4]=Rs?Rt(Se[3],_):nt[4]}(Xr=nt[5])&&(Se[5]=(Rs=Se[5])?oh(Rs,Xr,nt[6]):Xr,Se[6]=Rs?Rt(Se[5],_):nt[6]),(Xr=nt[7])&&(Se[7]=Xr),so&L&&(Se[8]=null==Se[8]?nt[8]:vo(Se[8],nt[8])),null==Se[9]&&(Se[9]=nt[9]),Se[0]=nt[0],Se[1]=Vo}(Cl,Qa),Se=Cl[0],nt=Cl[1],Un=Cl[2],so=Cl[3],Vo=Cl[4],!(Xr=Cl[9]=Cl[9]===n?Rs?0:Se.length:Qi(Cl[9]-sa,0))&&24&nt&&(nt&=-25),nt&&1!=nt)El=8==nt||16==nt?function _p(Se,nt,Un){var so=Th(Se);return function Vo(){for(var Er=arguments.length,Vr=ii(Er),Xr=Er,Rs=ou(Vo);Xr--;)Vr[Xr]=arguments[Xr];var sa=Er<3&&Vr[0]!==Rs&&Vr[Er-1]!==Rs?[]:Rt(Vr,Rs);return(Er-=sa.length)<Un?dl(Se,nt,Rn,Vo.placeholder,n,Vr,sa,n,n,Un-Er):Yi(this&&this!==ls&&this instanceof Vo?so:Se,this,Vr)}}(Se,nt,Xr):nt!=b&&33!=nt||Vo.length?Rn.apply(n,Cl):function nr(Se,nt,Un,so){var Vo=1&nt,Er=Th(Se);return function Vr(){for(var Xr=-1,Rs=arguments.length,sa=-1,ma=so.length,Ma=ii(ma+Rs),Qa=this&&this!==ls&&this instanceof Vr?Er:Se;++sa<ma;)Ma[sa]=so[sa];for(;Rs--;)Ma[sa++]=arguments[++Xr];return Yi(Qa,Vo?Un:this,Ma)}}(Se,nt,Un,so);else var El=function wd(Se,nt,Un){var so=1&nt,Vo=Th(Se);return function Er(){return(this&&this!==ls&&this instanceof Er?Vo:Se).apply(so?Un:this,arguments)}}(Se,nt,Un);return Uf((Qa?yl:lh)(El,Cl),Se,nt)}function hc(Se,nt,Un,so){return Se===n||Hu(Se,Ni[Un])&&!Me.call(so,Un)?nt:Se}function fd(Se,nt,Un,so,Vo,Er){return sd(Se)&&sd(nt)&&(Er.set(nt,Se),Ta(Se,nt,n,fd,Er),Er.delete(nt)),Se}function Su(Se){return Tm(Se)?n:Se}function gm(Se,nt,Un,so,Vo,Er){var Vr=1&Un,Xr=Se.length,Rs=nt.length;if(Xr!=Rs&&!(Vr&&Rs>Xr))return!1;var sa=Er.get(Se),ma=Er.get(nt);if(sa&&ma)return sa==nt&&ma==Se;var Ma=-1,Qa=!0,Cl=2&Un?new Wl:n;for(Er.set(Se,nt),Er.set(nt,Se);++Ma<Xr;){var El=Se[Ma],sc=nt[Ma];if(so)var Yl=Vr?so(sc,El,Ma,nt,Se,Er):so(El,sc,Ma,Se,nt,Er);if(Yl!==n){if(Yl)continue;Qa=!1;break}if(Cl){if(!al(nt,function(Zc,Kc){if(!Ot(Cl,Kc)&&(El===Zc||Vo(El,Zc,Un,so,Er)))return Cl.push(Kc)})){Qa=!1;break}}else if(El!==sc&&!Vo(El,sc,Un,so,Er)){Qa=!1;break}}return Er.delete(Se),Er.delete(nt),Qa}function Ed(Se){return ch(Pd(Se,n,ee),Se+"")}function ep(Se){return $c(Se,pc,Od)}function Dh(Se){return $c(Se,wc,Fd)}var Vh=nl?function(Se){return nl.get(Se)}:Hg;function Ju(Se){for(var nt=Se.name+"",Un=il[nt],so=Me.call(il,nt)?Un.length:0;so--;){var Vo=Un[so],Er=Vo.func;if(null==Er||Er==Se)return Vo.name}return nt}function ou(Se){return(Me.call(ar,"placeholder")?ar:Se).placeholder}function qa(){var Se=ar.iteratee||Gg;return Se=Se===Gg?st:Se,arguments.length?Se(arguments[0],arguments[1]):Se}function qh(Se,nt){var Un=Se.__data__;return function $p(Se){var nt=typeof Se;return"string"==nt||"number"==nt||"symbol"==nt||"boolean"==nt?"__proto__"!==Se:null===Se}(nt)?Un["string"==typeof nt?"string":"hash"]:Un.map}function Mh(Se){for(var nt=pc(Se),Un=nt.length;Un--;){var so=nt[Un],Vo=Se[so];nt[Un]=[so,Vo,su(Vo)]}return nt}function Uc(Se,nt){var Un=function $e(qt,bn){return null==qt?n:qt[bn]}(Se,nt);return fa(Un)?Un:n}var Od=Xs?function(Se){return null==Se?[]:(Se=Qn(Se),ss(Xs(Se),function(nt){return Wi.call(Se,nt)}))}:N_,Fd=Xs?function(Se){for(var nt=[];Se;)da(nt,Od(Se)),Se=wo(Se);return nt}:N_,qd=oc;function Au(Se,nt,Un){for(var so=-1,Vo=(nt=Sd(nt,Se)).length,Er=!1;++so<Vo;){var Vr=zu(nt[so]);if(!(Er=null!=Se&&Un(Se,Vr)))break;Se=Se[Vr]}return Er||++so!=Vo?Er:!!(Vo=null==Se?0:Se.length)&&Nf(Vo)&&ah(Vr,Vo)&&(xc(Se)||up(Se))}function Bu(Se){return"function"!=typeof Se.constructor||pd(Se)?{}:wa(wo(Se))}function Rp(Se){return xc(Se)||up(Se)||!!(cr&&Se&&Se[cr])}function ah(Se,nt){var Un=typeof Se;return!!(nt=nt??Q)&&("number"==Un||"symbol"!=Un&&ki.test(Se))&&Se>-1&&Se%1==0&&Se<nt}function Qc(Se,nt,Un){if(!sd(Un))return!1;var so=typeof nt;return!!("number"==so?Pu(Un)&&ah(nt,Un.length):"string"==so&&nt in Un)&&Hu(Un[nt],Se)}function kh(Se,nt){if(xc(Se))return!1;var Un=typeof Se;return!("number"!=Un&&"symbol"!=Un&&"boolean"!=Un&&null!=Se&&!Oh(Se))||Lt.test(Se)||!pt.test(Se)||null!=nt&&Se in Qn(nt)}function Mf(Se){var nt=Ju(Se),Un=ar[nt];if("function"!=typeof Un||!(nt in pa.prototype))return!1;if(Se===Un)return!0;var so=Vh(Un);return!!so&&Se===so[0]}(rs&&qd(new rs(new ArrayBuffer(1)))!=yi||Os&&qd(new Os)!=xe||Ys&&qd(Ys.resolve())!=Ut||la&&qd(new la)!=xn||Da&&qd(new Da)!=dn)&&(qd=function(Se){var nt=oc(Se),Un=nt==Gt?Se.constructor:n,so=Un?dh(Un):"";if(so)switch(so){case xl:return yi;case eo:return xe;case To:return Ut;case Qo:return xn;case Dr:return dn}return nt});var Lp=Ue?nc:mp;function pd(Se){var nt=Se&&Se.constructor;return Se===("function"==typeof nt&&nt.prototype||Ni)}function su(Se){return Se==Se&&!sd(Se)}function kf(Se,nt){return function(Un){return null!=Un&&Un[Se]===nt&&(nt!==n||Se in Qn(Un))}}function Pd(Se,nt,Un){return nt=Qi(nt===n?Se.length-1:nt,0),function(){for(var so=arguments,Vo=-1,Er=Qi(so.length-nt,0),Vr=ii(Er);++Vo<Er;)Vr[Vo]=so[nt+Vo];Vo=-1;for(var Xr=ii(nt+1);++Vo<nt;)Xr[Vo]=so[Vo];return Xr[nt]=Un(Vr),Yi(Se,this,Xr)}}function Rd(Se,nt){return nt.length<2?Se:dc(Se,Bl(nt,0,-1))}function eu(Se,nt){if(("constructor"!==nt||"function"!=typeof Se[nt])&&"__proto__"!=nt)return Se[nt]}var lh=tp(yl),zf=ks||function(Se,nt){return ls.setTimeout(Se,nt)},ch=tp(Cc);function Uf(Se,nt,Un){var so=nt+"";return ch(Se,function mf(Se,nt){var Un=nt.length;if(!Un)return Se;var so=Un-1;return nt[so]=(Un>1?"& ":"")+nt[so],nt=nt.join(Un>2?", ":" "),Se.replace(Pi,"{\n/* [wrapped with "+nt+"] */\n")}(so,function _f(Se,nt){return sr(z,function(Un){var so="_."+Un[0];nt&Un[1]&&!gs(Se,so)&&Se.push(so)}),Se.sort()}(function Df(Se){var nt=Se.match(go);return nt?nt[1].split(si):[]}(so),Un)))}function tp(Se){var nt=0,Un=0;return function(){var so=pi(),Vo=16-(so-Un);if(Un=so,Vo>0){if(++nt>=800)return arguments[0]}else nt=0;return Se.apply(n,arguments)}}function Qu(Se,nt){var Un=-1,so=Se.length,Vo=so-1;for(nt=nt===n?so:nt;++Un<nt;){var Er=es(Un,Vo),Vr=Se[Er];Se[Er]=Se[Un],Se[Un]=Vr}return Se.length=nt,Se}var Yh=function $u(Se){var nt=lp(Se,function(so){return 500===Un.size&&Un.clear(),so}),Un=nt.cache;return nt}(function(Se){var nt=[];return 46===Se.charCodeAt(0)&&nt.push(""),Se.replace(tt,function(Un,so,Vo,Er){nt.push(Vo?Er.replace(_i,"$1"):so||Un)}),nt});function zu(Se){if("string"==typeof Se||Oh(Se))return Se;var nt=Se+"";return"0"==nt&&1/Se==-J?"-0":nt}function dh(Se){if(null!=Se){try{return Ye.call(Se)}catch{}try{return Se+""}catch{}}return""}function _h(Se){if(Se instanceof pa)return Se.clone();var nt=new Ya(Se.__wrapped__,Se.__chain__);return nt.__actions__=yd(Se.__actions__),nt.__index__=Se.__index__,nt.__values__=Se.__values__,nt}var Af=ha(function(Se,nt){return Yd(Se)?dd(Se,ql(nt,1,Yd,!0)):[]}),ac=ha(function(Se,nt){var Un=Zl(nt);return Yd(Un)&&(Un=n),Yd(Se)?dd(Se,ql(nt,1,Yd,!0),qa(Un,2)):[]}),au=ha(function(Se,nt){var Un=Zl(nt);return Yd(Un)&&(Un=n),Yd(Se)?dd(Se,ql(nt,1,Yd,!0),n,Un):[]});function Yt(Se,nt,Un){var so=null==Se?0:Se.length;if(!so)return-1;var Vo=null==Un?0:fc(Un);return Vo<0&&(Vo=Qi(so+Vo,0)),vn(Se,qa(nt,3),Vo)}function Ri(Se,nt,Un){var so=null==Se?0:Se.length;if(!so)return-1;var Vo=so-1;return Un!==n&&(Vo=fc(Un),Vo=Un<0?Qi(so+Vo,0):vo(Vo,so-1)),vn(Se,qa(nt,3),Vo,!0)}function ee(Se){return null!=Se&&Se.length?ql(Se,1):[]}function $r(Se){return Se&&Se.length?Se[0]:n}var el=ha(function(Se){var nt=ys(Se,Ch);return nt.length&&nt[0]===Se[0]?Di(nt):[]}),bl=ha(function(Se){var nt=Zl(Se),Un=ys(Se,Ch);return nt===Zl(Un)?nt=n:Un.pop(),Un.length&&Un[0]===Se[0]?Di(Un,qa(nt,2)):[]}),Ql=ha(function(Se){var nt=Zl(Se),Un=ys(Se,Ch);return(nt="function"==typeof nt?nt:n)&&Un.pop(),Un.length&&Un[0]===Se[0]?Di(Un,n,nt):[]});function Zl(Se){var nt=null==Se?0:Se.length;return nt?Se[nt-1]:n}var Td=ha(Wd);function Wd(Se,nt){return Se&&Se.length&&nt&&nt.length?er(Se,nt):Se}var zl=Ed(function(Se,nt){var Un=null==Se?0:Se.length,so=xd(Se,nt);return Br(Se,ys(nt,function(Vo){return ah(Vo,Un)?+Vo:Vo}).sort(Nc)),so});function Xc(Se){return null==Se?Se:Sr.call(Se)}var v_=ha(function(Se){return Mc(ql(Se,1,Yd,!0))}),Ah=ha(function(Se){var nt=Zl(Se);return Yd(nt)&&(nt=n),Mc(ql(Se,1,Yd,!0),qa(nt,2))}),yp=ha(function(Se){var nt=Zl(Se);return nt="function"==typeof nt?nt:n,Mc(ql(Se,1,Yd,!0),n,nt)});function ip(Se){if(!Se||!Se.length)return[];var nt=0;return Se=ss(Se,function(Un){if(Yd(Un))return nt=Qi(Un.length,nt),!0}),Sn(nt,function(Un){return ys(Se,it(Un))})}function em(Se,nt){if(!Se||!Se.length)return[];var Un=ip(Se);return null==nt?Un:ys(Un,function(so){return Yi(nt,n,so)})}var zp=ha(function(Se,nt){return Yd(Se)?dd(Se,nt):[]}),Km=ha(function(Se){return Vd(ss(Se,Yd))}),Jm=ha(function(Se){var nt=Zl(Se);return Yd(nt)&&(nt=n),Vd(ss(Se,Yd),qa(nt,2))}),tm=ha(function(Se){var nt=Zl(Se);return nt="function"==typeof nt?nt:n,Vd(ss(Se,Yd),n,nt)}),Oc=ha(ip),Og=ha(function(Se){var nt=Se.length,Un=nt>1?Se[nt-1]:n;return Un="function"==typeof Un?(Se.pop(),Un):n,em(Se,Un)});function dg(Se){var nt=ar(Se);return nt.__chain__=!0,nt}function Am(Se,nt){return nt(Se)}var b_=Ed(function(Se){var nt=Se.length,Un=nt?Se[0]:0,so=this.__wrapped__,Vo=function(Er){return xd(Er,Se)};return!(nt>1||this.__actions__.length)&&so instanceof pa&&ah(Un)?((so=so.slice(Un,+Un+(nt?1:0))).__actions__.push({func:Am,args:[Vo],thisArg:n}),new Ya(so,this.__chain__).thru(function(Er){return nt&&!Er.length&&Er.push(n),Er})):this.thru(Vo)}),Om=Gh(function(Se,nt,Un){Me.call(Se,Un)?++Se[Un]:mc(Se,Un,1)}),hg=Hh(Yt),fg=Hh(Ri);function Zh(Se,nt){return(xc(Se)?sr:gc)(Se,qa(nt,3))}function qc(Se,nt){return(xc(Se)?yr:ih)(Se,qa(nt,3))}var Qm=Gh(function(Se,nt,Un){Me.call(Se,Un)?Se[Un].push(nt):mc(Se,Un,[nt])}),Xm=ha(function(Se,nt,Un){var so=-1,Vo="function"==typeof nt,Er=Pu(Se)?ii(Se.length):[];return gc(Se,function(Vr){Er[++so]=Vo?Yi(nt,Vr,Un):Wo(Vr,nt,Un)}),Er}),mg=Gh(function(Se,nt,Un){mc(Se,Un,nt)});function im(Se,nt){return(xc(Se)?ys:ds)(Se,qa(nt,3))}var bm=Gh(function(Se,nt,Un){Se[Un?0:1].push(nt)},function(){return[[],[]]}),xp=ha(function(Se,nt){if(null==Se)return[];var Un=nt.length;return Un>1&&Qc(Se,nt[0],nt[1])?nt=[]:Un>2&&Qc(nt[0],nt[1],nt[2])&&(nt=[nt[0]]),v(Se,ql(nt,1),[])}),om=Ca||function(){return ls.Date.now()};function sf(Se,nt,Un){return nt=Un?n:nt,Ol(Se,L,n,n,n,n,nt=Se&&null==nt?Se.length:nt)}function jf(Se,nt){var Un;if("function"!=typeof nt)throw new Ai(u);return Se=fc(Se),function(){return--Se>0&&(Un=nt.apply(this,arguments)),Se<=1&&(nt=n),Un}}var sp=ha(function(Se,nt,Un){var so=1;if(Un.length){var Vo=Rt(Un,ou(sp));so|=b}return Ol(Se,so,nt,Un,Vo)}),Rf=ha(function(Se,nt,Un){var so=3;if(Un.length){var Vo=Rt(Un,ou(Rf));so|=b}return Ol(nt,so,Se,Un,Vo)});function rm(Se,nt,Un){var so,Vo,Er,Vr,Xr,Rs,sa=0,ma=!1,Ma=!1,Qa=!0;if("function"!=typeof Se)throw new Ai(u);function Cl(Lu){var og=so,jg=Vo;return so=Vo=n,sa=Lu,Vr=Se.apply(jg,og)}function Yl(Lu){var og=Lu-Rs;return Rs===n||og>=nt||og<0||Ma&&Lu-sa>=Er}function Zc(){var Lu=om();if(Yl(Lu))return Kc(Lu);Xr=zf(Zc,function sc(Lu){var vv=nt-(Lu-Rs);return Ma?vo(vv,Er-(Lu-sa)):vv}(Lu))}function Kc(Lu){return Xr=n,Qa&&so?Cl(Lu):(so=Vo=n,Vr)}function Yp(){var Lu=om(),og=Yl(Lu);if(so=arguments,Vo=this,Rs=Lu,og){if(Xr===n)return function El(Lu){return sa=Lu,Xr=zf(Zc,nt),ma?Cl(Lu):Vr}(Rs);if(Ma)return ff(Xr),Xr=zf(Zc,nt),Cl(Rs)}return Xr===n&&(Xr=zf(Zc,nt)),Vr}return nt=Rh(nt)||0,sd(Un)&&(ma=!!Un.leading,Er=(Ma="maxWait"in Un)?Qi(Rh(Un.maxWait)||0,nt):Er,Qa="trailing"in Un?!!Un.trailing:Qa),Yp.cancel=function gp(){Xr!==n&&ff(Xr),sa=0,so=Rs=Vo=Xr=n},Yp.flush=function Jf(){return Xr===n?Vr:Kc(om())},Yp}var Gp=ha(function(Se,nt){return gd(Se,1,nt)}),jd=ha(function(Se,nt,Un){return gd(Se,Rh(nt)||0,Un)});function lp(Se,nt){if("function"!=typeof Se||null!=nt&&"function"!=typeof nt)throw new Ai(u);var Un=function(){var so=arguments,Vo=nt?nt.apply(this,so):so[0],Er=Un.cache;if(Er.has(Vo))return Er.get(Vo);var Vr=Se.apply(this,so);return Un.cache=Er.set(Vo,Vr)||Er,Vr};return Un.cache=new(lp.Cache||ca),Un}function Kh(Se){if("function"!=typeof Se)throw new Ai(u);return function(){var nt=arguments;switch(nt.length){case 0:return!Se.call(this);case 1:return!Se.call(this,nt[0]);case 2:return!Se.call(this,nt[0],nt[1]);case 3:return!Se.call(this,nt[0],nt[1],nt[2])}return!Se.apply(this,nt)}}lp.Cache=ca;var Sf=vd(function(Se,nt){var Un=(nt=1==nt.length&&xc(nt[0])?ys(nt[0],kn(qa())):ys(ql(nt,1),kn(qa()))).length;return ha(function(so){for(var Vo=-1,Er=vo(so.length,Un);++Vo<Er;)so[Vo]=nt[Vo].call(this,so[Vo]);return Yi(Se,this,so)})}),Lf=ha(function(Se,nt){var Un=Rt(nt,ou(Lf));return Ol(Se,b,n,nt,Un)}),Sp=ha(function(Se,nt){var Un=Rt(nt,ou(Sp));return Ol(Se,64,n,nt,Un)}),Lm=Ed(function(Se,nt){return Ol(Se,256,n,n,n,nt)});function Hu(Se,nt){return Se===nt||Se!=Se&&nt!=nt}var dp=ta(Hd),Ng=ta(function(Se,nt){return Se>=nt}),up=vr(function(){return arguments}())?vr:function(Se){return Ru(Se)&&Me.call(Se,"callee")&&!Wi.call(Se,"callee")},xc=ii.isArray,Fm=sl?kn(sl):function Jr(Se){return Ru(Se)&&oc(Se)==fn};function Pu(Se){return null!=Se&&Nf(Se.length)&&!nc(Se)}function Yd(Se){return Ru(Se)&&Pu(Se)}var Yf=_a||mp,Hp=Jt?kn(Jt):function ns(Se){return Ru(Se)&&oc(Se)==ge};function Wp(Se){if(!Ru(Se))return!1;var nt=oc(Se);return nt==Te||"[object DOMException]"==nt||"string"==typeof Se.message&&"string"==typeof Se.name&&!Tm(Se)}function nc(Se){if(!sd(Se))return!1;var nt=oc(Se);return nt==De||nt==fe||"[object AsyncFunction]"==nt||"[object Proxy]"==nt}function qm(Se){return"number"==typeof Se&&Se==fc(Se)}function Nf(Se){return"number"==typeof Se&&Se>-1&&Se%1==0&&Se<=Q}function sd(Se){var nt=typeof Se;return null!=Se&&("object"==nt||"function"==nt)}function Ru(Se){return null!=Se&&"object"==typeof Se}var Bm=Tt?kn(Tt):function Is(Se){return Ru(Se)&&qd(Se)==xe};function eg(Se){return"number"==typeof Se||Ru(Se)&&oc(Se)==Oe}function Tm(Se){if(!Ru(Se)||oc(Se)!=Gt)return!1;var nt=wo(Se);if(null===nt)return!0;var Un=Me.call(nt,"constructor")&&nt.constructor;return"function"==typeof Un&&Un instanceof Un&&Ye.call(Un)==on}var t_=ht?kn(ht):function ye(Se){return Ru(Se)&&oc(Se)==$n},zm=yn?kn(yn):function bt(Se){return Ru(Se)&&qd(Se)==xn};function Dd(Se){return"string"==typeof Se||!xc(Se)&&Ru(Se)&&oc(Se)==mt}function Oh(Se){return"symbol"==typeof Se||Ru(Se)&&oc(Se)==ut}var Ph=vi?kn(vi):function be(Se){return Ru(Se)&&Nf(Se.length)&&!!Ts[oc(Se)]},ol=ta(gr),Kf=ta(function(Se,nt){return Se<=nt});function Um(Se){if(!Se)return[];if(Pu(Se))return Dd(Se)?He(Se):yd(Se);if(Fr&&Se[Fr])return function Ge(qt){for(var bn,ii=[];!(bn=qt.next()).done;)ii.push(bn.value);return ii}(Se[Fr]());var nt=qd(Se);return(nt==xe?Be:nt==xn?Pt:af)(Se)}function cm(Se){return Se?(Se=Rh(Se))===J||Se===-J?17976931348623157e292*(Se<0?-1:1):Se==Se?Se:0:0===Se?Se:0}function fc(Se){var nt=cm(Se),Un=nt%1;return nt==nt?Un?nt-Un:nt:0}function Gm(Se){return Se?fu(fc(Se),0,te):0}function Rh(Se){if("number"==typeof Se)return Se;if(Oh(Se))return NaN;if(sd(Se)){var nt="function"==typeof Se.valueOf?Se.valueOf():Se;Se=sd(nt)?nt+"":nt}if("string"!=typeof Se)return 0===Se?Se:+Se;Se=Dn(Se);var Un=Ei.test(Se);return Un||Xi.test(Se)?js(Se.slice(2),Un?2:8):zn.test(Se)?NaN:+Se}function hh(Se){return Nd(Se,wc(Se))}function Et(Se){return null==Se?"":ul(Se)}var Cn=uc(function(Se,nt){if(pd(nt)||Pu(nt))Nd(nt,pc(nt),Se);else for(var Un in nt)Me.call(nt,Un)&&Cd(Se,Un,nt[Un])}),Fe=uc(function(Se,nt){Nd(nt,wc(nt),Se)}),Zt=uc(function(Se,nt,Un,so){Nd(nt,wc(nt),Se,so)}),Ln=uc(function(Se,nt,Un,so){Nd(nt,pc(nt),Se,so)}),So=Ed(xd),Hr=ha(function(Se,nt){Se=Qn(Se);var Un=-1,so=nt.length,Vo=so>2?nt[2]:n;for(Vo&&Qc(nt[0],nt[1],Vo)&&(so=1);++Un<so;)for(var Er=nt[Un],Vr=wc(Er),Xr=-1,Rs=Vr.length;++Xr<Rs;){var sa=Vr[Xr],ma=Se[sa];(ma===n||Hu(ma,Ni[sa])&&!Me.call(Se,sa))&&(Se[sa]=Er[sa])}return Se}),Es=ha(function(Se){return Se.push(n,fd),Yi(um,n,Se)});function Rl(Se,nt,Un){var so=null==Se?n:dc(Se,nt);return so===n?Un:so}function Md(Se,nt){return null!=Se&&Au(Se,nt,_d)}var Sc=Uo(function(Se,nt,Un){null!=nt&&"function"!=typeof nt.toString&&(nt=yt.call(nt)),Se[nt]=Un},o_(Nh)),fh=Uo(function(Se,nt,Un){null!=nt&&"function"!=typeof nt.toString&&(nt=yt.call(nt)),Me.call(Se,nt)?Se[nt].push(Un):Se[nt]=[Un]},qa),tu=ha(Wo);function pc(Se){return Pu(Se)?th(Se):ei(Se)}function wc(Se){return Pu(Se)?th(Se,!0):function _o(Se){if(!sd(Se))return function Qp(Se){var nt=[];if(null!=Se)for(var Un in Qn(Se))nt.push(Un);return nt}(Se);var nt=pd(Se),Un=[];for(var so in Se)"constructor"==so&&(nt||!Me.call(Se,so))||Un.push(so);return Un}(Se)}var Jh=uc(function(Se,nt,Un){Ta(Se,nt,Un)}),um=uc(function(Se,nt,Un,so){Ta(Se,nt,Un,so)}),wf=Ed(function(Se,nt){var Un={};if(null==Se)return Un;var so=!1;nt=ys(nt,function(Er){return Er=Sd(Er,Se),so||(so=Er.length>1),Er}),Nd(Se,Dh(Se),Un),so&&(Un=Fl(Un,7,Su));for(var Vo=nt.length;Vo--;)uf(Un,nt[Vo]);return Un}),tg=Ed(function(Se,nt){return null==Se?{}:function ue(Se,nt){return dt(Se,nt,function(Un,so){return Md(Se,so)})}(Se,nt)});function Il(Se,nt){if(null==Se)return{};var Un=ys(Dh(Se),function(so){return[so]});return nt=qa(nt),dt(Se,Un,function(so,Vo){return nt(so,Vo[0])})}var Vu=_c(pc),Mp=_c(wc);function af(Se){return null==Se?[]:ui(Se,pc(Se))}var Ie=Qd(function(Se,nt,Un){return nt=nt.toLowerCase(),Se+(Un?gn(nt):nt)});function gn(Se){return Hm(Et(Se).toLowerCase())}function Si(Se){return(Se=Et(Se))&&Se.replace(bo,ft).replace(_t,"")}var Lr=Qd(function(Se,nt,Un){return Se+(Un?"-":"")+nt.toLowerCase()}),ws=Qd(function(Se,nt,Un){return Se+(Un?" ":"")+nt.toLowerCase()}),$s=Bf("toLowerCase"),Xu=Qd(function(Se,nt,Un){return Se+(Un?"_":"")+nt.toLowerCase()}),qu=Qd(function(Se,nt,Un){return Se+(Un?" ":"")+Hm(nt)}),Ug=Qd(function(Se,nt,Un){return Se+(Un?" ":"")+nt.toUpperCase()}),Hm=Bf("toUpperCase");function Vm(Se,nt,Un){return Se=Et(Se),(nt=Un?n:nt)===n?function Ve(qt){return kr.test(qt)}(Se)?function xi(qt){return qt.match(qo)||[]}(Se):function ra(qt){return qt.match(ot)||[]}(Se):Se.match(nt)||[]}var ed=ha(function(Se,nt){try{return Yi(Se,n,nt)}catch(Un){return Wp(Un)?Un:new Jn(Un)}}),w_=Ed(function(Se,nt){return sr(nt,function(Un){Un=zu(Un),mc(Se,Un,sp(Se[Un],Se))}),Se});function o_(Se){return function(){return Se}}var T_=Sl(),hm=Sl(!0);function Nh(Se){return Se}function Gg(Se){return st("function"==typeof Se?Se:Fl(Se,1))}var ng=ha(function(Se,nt){return function(Un){return Wo(Un,Se,nt)}}),pp=ha(function(Se,nt){return function(Un){return Wo(Se,Un,nt)}});function s_(Se,nt,Un){var so=pc(nt),Vo=$d(nt,so);null==Un&&(!sd(nt)||!Vo.length&&so.length)&&(Un=nt,nt=Se,Se=this,Vo=$d(nt,pc(nt)));var Er=!(sd(Un)&&"chain"in Un&&!Un.chain),Vr=nc(Se);return sr(Vo,function(Xr){var Rs=nt[Xr];Se[Xr]=Rs,Vr&&(Se.prototype[Xr]=function(){var sa=this.__chain__;if(Er||sa){var ma=Se(this.__wrapped__);return(ma.__actions__=yd(this.__actions__)).push({func:Rs,args:arguments,thisArg:Se}),ma.__chain__=sa,ma}return Rs.apply(Se,da([this.value()],arguments))})}),Se}function Hg(){}var l_=Mn(ys),_v=Mn(Ur),c_=Mn(al);function fm(Se){return kh(Se)?it(zu(Se)):function In(Se){return function(nt){return dc(nt,Se)}}(Se)}var D_=is(),Vg=is(!0);function N_(){return[]}function mp(){return!1}var xg=je(function(Se,nt){return Se+nt},0),Wg=$l("ceil"),u_=je(function(Se,nt){return Se/nt},1),Ap=$l("floor"),k_=je(function(Se,nt){return Se*nt},1),F_=$l("round"),ko=je(function(Se,nt){return Se-nt},0);return ar.after=function Xg(Se,nt){if("function"!=typeof nt)throw new Ai(u);return Se=fc(Se),function(){if(--Se<1)return nt.apply(this,arguments)}},ar.ary=sf,ar.assign=Cn,ar.assignIn=Fe,ar.assignInWith=Zt,ar.assignWith=Ln,ar.at=So,ar.before=jf,ar.bind=sp,ar.bindAll=w_,ar.bindKey=Rf,ar.castArray=function qg(){if(!arguments.length)return[];var Se=arguments[0];return xc(Se)?Se:[Se]},ar.chain=dg,ar.chunk=function Xp(Se,nt,Un){nt=(Un?Qc(Se,nt,Un):nt===n)?1:Qi(fc(nt),0);var so=null==Se?0:Se.length;if(!so||nt<1)return[];for(var Vo=0,Er=0,Vr=ii(ts(so/nt));Vo<so;)Vr[Er++]=Bl(Se,Vo,Vo+=nt);return Vr},ar.compact=function Ou(Se){for(var nt=-1,Un=null==Se?0:Se.length,so=0,Vo=[];++nt<Un;){var Er=Se[nt];Er&&(Vo[so++]=Er)}return Vo},ar.concat=function _m(){var Se=arguments.length;if(!Se)return[];for(var nt=ii(Se-1),Un=arguments[0],so=Se;so--;)nt[so-1]=arguments[so];return da(xc(Un)?yd(Un):[Un],ql(nt,1))},ar.cond=function j_(Se){var nt=null==Se?0:Se.length,Un=qa();return Se=nt?ys(Se,function(so){if("function"!=typeof so[1])throw new Ai(u);return[Un(so[0]),so[1]]}):[],ha(function(so){for(var Vo=-1;++Vo<nt;){var Er=Se[Vo];if(Yi(Er[0],this,so))return Yi(Er[1],this,so)}})},ar.conforms=function Ef(Se){return function Jd(Se){var nt=pc(Se);return function(Un){return Jl(Un,Se,nt)}}(Fl(Se,1))},ar.constant=o_,ar.countBy=Om,ar.create=function Jo(Se,nt){var Un=wa(Se);return null==nt?Un:nu(Un,nt)},ar.curry=function Rm(Se,nt,Un){var so=Ol(Se,8,n,n,n,n,n,nt=Un?n:nt);return so.placeholder=Rm.placeholder,so},ar.curryRight=function ap(Se,nt,Un){var so=Ol(Se,16,n,n,n,n,n,nt=Un?n:nt);return so.placeholder=ap.placeholder,so},ar.debounce=rm,ar.defaults=Hr,ar.defaultsDeep=Es,ar.defer=Gp,ar.delay=jd,ar.difference=Af,ar.differenceBy=ac,ar.differenceWith=au,ar.drop=function wu(Se,nt,Un){var so=null==Se?0:Se.length;return so?Bl(Se,(nt=Un||nt===n?1:fc(nt))<0?0:nt,so):[]},ar.dropRight=function Of(Se,nt,Un){var so=null==Se?0:Se.length;return so?Bl(Se,0,(nt=so-(nt=Un||nt===n?1:fc(nt)))<0?0:nt):[]},ar.dropRightWhile=function Gf(Se,nt){return Se&&Se.length?Ff(Se,qa(nt,3),!0,!0):[]},ar.dropWhile=function vm(Se,nt){return Se&&Se.length?Ff(Se,qa(nt,3),!0):[]},ar.fill=function Np(Se,nt,Un,so){var Vo=null==Se?0:Se.length;return Vo?(Un&&"number"!=typeof Un&&Qc(Se,nt,Un)&&(Un=0,so=Vo),function ph(Se,nt,Un,so){var Vo=Se.length;for((Un=fc(Un))<0&&(Un=-Un>Vo?0:Vo+Un),(so=so===n||so>Vo?Vo:fc(so))<0&&(so+=Vo),so=Un>so?0:Gm(so);Un<so;)Se[Un++]=nt;return Se}(Se,nt,Un,so)):[]},ar.filter=function $m(Se,nt){return(xc(Se)?ss:ud)(Se,qa(nt,3))},ar.flatMap=function pg(Se,nt){return ql(im(Se,nt),1)},ar.flatMapDeep=function op(Se,nt){return ql(im(Se,nt),J)},ar.flatMapDepth=function rp(Se,nt,Un){return Un=Un===n?1:fc(Un),ql(im(Se,nt),Un)},ar.flatten=ee,ar.flattenDeep=function Ze(Se){return null!=Se&&Se.length?ql(Se,J):[]},ar.flattenDepth=function Yn(Se,nt){return null!=Se&&Se.length?ql(Se,nt=nt===n?1:fc(nt)):[]},ar.flip=function xf(Se){return Ol(Se,512)},ar.flow=T_,ar.flowRight=hm,ar.fromPairs=function Bo(Se){for(var nt=-1,Un=null==Se?0:Se.length,so={};++nt<Un;){var Vo=Se[nt];so[Vo[0]]=Vo[1]}return so},ar.functions=function wl(Se){return null==Se?[]:$d(Se,pc(Se))},ar.functionsIn=function Pc(Se){return null==Se?[]:$d(Se,wc(Se))},ar.groupBy=Qm,ar.initial=function Fa(Se){return null!=Se&&Se.length?Bl(Se,0,-1):[]},ar.intersection=el,ar.intersectionBy=bl,ar.intersectionWith=Ql,ar.invert=Sc,ar.invertBy=fh,ar.invokeMap=Xm,ar.iteratee=Gg,ar.keyBy=mg,ar.keys=pc,ar.keysIn=wc,ar.map=im,ar.mapKeys=function hp(Se,nt){var Un={};return nt=qa(nt,3),Ic(Se,function(so,Vo,Er){mc(Un,nt(so,Vo,Er),so)}),Un},ar.mapValues=function dm(Se,nt){var Un={};return nt=qa(nt,3),Ic(Se,function(so,Vo,Er){mc(Un,Vo,nt(so,Vo,Er))}),Un},ar.matches=function Dm(Se){return us(Fl(Se,1))},ar.matchesProperty=function r_(Se,nt){return zs(Se,Fl(nt,1))},ar.memoize=lp,ar.merge=Jh,ar.mergeWith=um,ar.method=ng,ar.methodOf=pp,ar.mixin=s_,ar.negate=Kh,ar.nthArg=function yg(Se){return Se=fc(Se),ha(function(nt){return Tn(nt,Se)})},ar.omit=wf,ar.omitBy=function vg(Se,nt){return Il(Se,Kh(qa(nt)))},ar.once=function Tu(Se){return jf(2,Se)},ar.orderBy=function yh(Se,nt,Un,so){return null==Se?[]:(xc(nt)||(nt=null==nt?[]:[nt]),xc(Un=so?n:Un)||(Un=null==Un?[]:[Un]),v(Se,nt,Un))},ar.over=l_,ar.overArgs=Sf,ar.overEvery=_v,ar.overSome=c_,ar.partial=Lf,ar.partialRight=Sp,ar.partition=bm,ar.pick=tg,ar.pickBy=Il,ar.property=fm,ar.propertyOf=function d_(Se){return function(nt){return null==Se?n:dc(Se,nt)}},ar.pull=Td,ar.pullAll=Wd,ar.pullAllBy=function tc(Se,nt,Un){return Se&&Se.length&&nt&&nt.length?er(Se,nt,qa(Un,2)):Se},ar.pullAllWith=function tf(Se,nt,Un){return Se&&Se.length&&nt&&nt.length?er(Se,nt,n,Un):Se},ar.pullAt=zl,ar.range=D_,ar.rangeRight=Vg,ar.rearg=Lm,ar.reject=function Cf(Se,nt){return(xc(Se)?ss:ud)(Se,Kh(qa(nt,3)))},ar.remove=function Uu(Se,nt){var Un=[];if(!Se||!Se.length)return Un;var so=-1,Vo=[],Er=Se.length;for(nt=qa(nt,3);++so<Er;){var Vr=Se[so];nt(Vr,so,Se)&&(Un.push(Vr),Vo.push(so))}return Br(Se,Vo),Un},ar.rest=function wp(Se,nt){if("function"!=typeof Se)throw new Ai(u);return ha(Se,nt=nt===n?nt:fc(nt))},ar.reverse=Xc,ar.sampleSize=function Cm(Se,nt,Un){return nt=(Un?Qc(Se,nt,Un):nt===n)?1:fc(nt),(xc(Se)?Jc:vl)(Se,nt)},ar.set=function Xl(Se,nt,Un){return null==Se?Se:ml(Se,nt,Un)},ar.setWith=function Yc(Se,nt,Un,so){return so="function"==typeof so?so:n,null==Se?Se:ml(Se,nt,Un,so)},ar.shuffle=function xm(Se){return(xc(Se)?nh:Bc)(Se)},ar.slice=function Tc(Se,nt,Un){var so=null==Se?0:Se.length;return so?(Un&&"number"!=typeof Un&&Qc(Se,nt,Un)?(nt=0,Un=so):(nt=null==nt?0:fc(nt),Un=Un===n?so:fc(Un)),Bl(Se,nt,Un)):[]},ar.sortBy=xp,ar.sortedUniq=function Fp(Se){return Se&&Se.length?ku(Se):[]},ar.sortedUniqBy=function Bp(Se,nt){return Se&&Se.length?ku(Se,qa(nt,2)):[]},ar.split=function Lh(Se,nt,Un){return Un&&"number"!=typeof Un&&Qc(Se,nt,Un)&&(nt=Un=n),(Un=Un===n?te:Un>>>0)?(Se=Et(Se))&&("string"==typeof nt||null!=nt&&!t_(nt))&&!(nt=ul(nt))&&Je(Se)?hd(He(Se),0,Un):Se.split(nt,Un):[]},ar.spread=function Nm(Se,nt){if("function"!=typeof Se)throw new Ai(u);return nt=null==nt?0:Qi(fc(nt),0),ha(function(Un){var so=Un[nt],Vo=hd(Un,0,nt);return so&&da(Vo,so),Yi(Se,this,Vo)})},ar.tail=function qp(Se){var nt=null==Se?0:Se.length;return nt?Bl(Se,1,nt):[]},ar.take=function np(Se,nt,Un){return Se&&Se.length?Bl(Se,0,(nt=Un||nt===n?1:fc(nt))<0?0:nt):[]},ar.takeRight=function rf(Se,nt,Un){var so=null==Se?0:Se.length;return so?Bl(Se,(nt=so-(nt=Un||nt===n?1:fc(nt)))<0?0:nt,so):[]},ar.takeRightWhile=function yf(Se,nt){return Se&&Se.length?Ff(Se,qa(nt,3),!1,!0):[]},ar.takeWhile=function bf(Se,nt){return Se&&Se.length?Ff(Se,qa(nt,3)):[]},ar.tap=function y_(Se,nt){return nt(Se),Se},ar.throttle=function wm(Se,nt,Un){var so=!0,Vo=!0;if("function"!=typeof Se)throw new Ai(u);return sd(Un)&&(so="leading"in Un?!!Un.leading:so,Vo="trailing"in Un?!!Un.trailing:Vo),rm(Se,nt,{leading:so,maxWait:nt,trailing:Vo})},ar.thru=Am,ar.toArray=Um,ar.toPairs=Vu,ar.toPairsIn=Mp,ar.toPath=function bg(Se){return xc(Se)?ys(Se,zu):Oh(Se)?[Se]:yd(Yh(Et(Se)))},ar.toPlainObject=hh,ar.transform=function Hl(Se,nt,Un){var so=xc(Se),Vo=so||Yf(Se)||Ph(Se);if(nt=qa(nt,4),null==Un){var Er=Se&&Se.constructor;Un=Vo?so?new Er:[]:sd(Se)&&nc(Er)?wa(wo(Se)):{}}return(Vo?sr:Ic)(Se,function(Vr,Xr,Rs){return nt(Un,Vr,Xr,Rs)}),Un},ar.unary=function cp(Se){return sf(Se,1)},ar.union=v_,ar.unionBy=Ah,ar.unionWith=yp,ar.uniq=function Ag(Se){return Se&&Se.length?Mc(Se):[]},ar.uniqBy=function cg(Se,nt){return Se&&Se.length?Mc(Se,qa(nt,2)):[]},ar.uniqWith=function Jg(Se,nt){return nt="function"==typeof nt?nt:n,Se&&Se.length?Mc(Se,n,nt):[]},ar.unset=function fp(Se,nt){return null==Se||uf(Se,nt)},ar.unzip=ip,ar.unzipWith=em,ar.update=function lu(Se,nt,Un){return null==Se?Se:Tf(Se,nt,mh(Un))},ar.updateWith=function L_(Se,nt,Un,so){return so="function"==typeof so?so:n,null==Se?Se:Tf(Se,nt,mh(Un),so)},ar.values=af,ar.valuesIn=function gu(Se){return null==Se?[]:ui(Se,wc(Se))},ar.without=zp,ar.words=Vm,ar.wrap=function sm(Se,nt){return Lf(mh(nt),Se)},ar.xor=Km,ar.xorBy=Jm,ar.xorWith=tm,ar.zip=Oc,ar.zipObject=function ym(Se,nt){return Fu(Se||[],nt||[],Cd)},ar.zipObjectDeep=function bp(Se,nt){return Fu(Se||[],nt||[],ml)},ar.zipWith=Og,ar.entries=Vu,ar.entriesIn=Mp,ar.extend=Fe,ar.extendWith=Zt,s_(ar,ar),ar.add=xg,ar.attempt=ed,ar.camelCase=Ie,ar.capitalize=gn,ar.ceil=Wg,ar.clamp=function Ee(Se,nt,Un){return Un===n&&(Un=nt,nt=n),Un!==n&&(Un=(Un=Rh(Un))==Un?Un:0),nt!==n&&(nt=(nt=Rh(nt))==nt?nt:0),fu(Rh(Se),nt,Un)},ar.clone=function e_(Se){return Fl(Se,4)},ar.cloneDeep=function Lg(Se){return Fl(Se,5)},ar.cloneDeepWith=function am(Se,nt){return Fl(Se,5,nt="function"==typeof nt?nt:n)},ar.cloneWith=function Rg(Se,nt){return Fl(Se,4,nt="function"==typeof nt?nt:n)},ar.conformsTo=function Gu(Se,nt){return null==nt||Jl(Se,nt,pc(nt))},ar.deburr=Si,ar.defaultTo=function E_(Se,nt){return null==Se||Se!=Se?nt:Se},ar.divide=u_,ar.endsWith=function zo(Se,nt,Un){Se=Et(Se),nt=ul(nt);var so=Se.length,Vo=Un=Un===n?so:fu(fc(Un),0,so);return(Un-=nt.length)>=0&&Se.slice(Un,Vo)==nt},ar.eq=Hu,ar.escape=function _r(Se){return(Se=Et(Se))&&Bt.test(Se)?Se.replace(oi,Nt):Se},ar.escapeRegExp=function zr(Se){return(Se=Et(Se))&&vt.test(Se)?Se.replace(Ne,"\\$&"):Se},ar.every=function ug(Se,nt,Un){var so=xc(Se)?Ur:Cu;return Un&&Qc(Se,nt,Un)&&(nt=n),so(Se,qa(nt,3))},ar.find=hg,ar.findIndex=Yt,ar.findKey=function Vs(Se,nt){return Ls(Se,qa(nt,3),Ic)},ar.findLast=fg,ar.findLastIndex=Ri,ar.findLastKey=function Ra(Se,nt){return Ls(Se,qa(nt,3),Gd)},ar.floor=Ap,ar.forEach=Zh,ar.forEachRight=qc,ar.forIn=function Ha(Se,nt){return null==Se?Se:Ku(Se,qa(nt,3),wc)},ar.forInRight=function Al(Se,nt){return null==Se?Se:od(Se,qa(nt,3),wc)},ar.forOwn=function kl(Se,nt){return Se&&Ic(Se,qa(nt,3))},ar.forOwnRight=function gl(Se,nt){return Se&&Gd(Se,qa(nt,3))},ar.get=Rl,ar.gt=dp,ar.gte=Ng,ar.has=function jc(Se,nt){return null!=Se&&Au(Se,nt,Rc)},ar.hasIn=Md,ar.head=$r,ar.identity=Nh,ar.includes=function Pm(Se,nt,Un,so){Se=Pu(Se)?Se:af(Se),Un=Un&&!so?fc(Un):0;var Vo=Se.length;return Un<0&&(Un=Qi(Vo+Un,0)),Dd(Se)?Un<=Vo&&Se.indexOf(nt,Un)>-1:!!Vo&&Xe(Se,nt,Un)>-1},ar.indexOf=function ea(Se,nt,Un){var so=null==Se?0:Se.length;if(!so)return-1;var Vo=null==Un?0:fc(Un);return Vo<0&&(Vo=Qi(so+Vo,0)),Xe(Se,nt,Vo)},ar.inRange=function at(Se,nt,Un){return nt=cm(nt),Un===n?(Un=nt,nt=0):Un=cm(Un),function rc(Se,nt,Un){return Se>=vo(nt,Un)&&Se<Qi(nt,Un)}(Se=Rh(Se),nt,Un)},ar.invoke=tu,ar.isArguments=up,ar.isArray=xc,ar.isArrayBuffer=Fm,ar.isArrayLike=Pu,ar.isArrayLikeObject=Yd,ar.isBoolean=function gg(Se){return!0===Se||!1===Se||Ru(Se)&&oc(Se)==_e},ar.isBuffer=Yf,ar.isDate=Hp,ar.isElement=function Vp(Se){return Ru(Se)&&1===Se.nodeType&&!Tm(Se)},ar.isEmpty=function Em(Se){if(null==Se)return!0;if(Pu(Se)&&(xc(Se)||"string"==typeof Se||"function"==typeof Se.splice||Yf(Se)||Ph(Se)||up(Se)))return!Se.length;var nt=qd(Se);if(nt==xe||nt==xn)return!Se.size;if(pd(Se))return!ei(Se).length;for(var Un in Se)if(Me.call(Se,Un))return!1;return!0},ar.isEqual=function _g(Se,nt){return vs(Se,nt)},ar.isEqualWith=function Fg(Se,nt,Un){var so=(Un="function"==typeof Un?Un:n)?Un(Se,nt):n;return so===n?vs(Se,nt,n,Un):!!so},ar.isError=Wp,ar.isFinite=function lm(Se){return"number"==typeof Se&&Ws(Se)},ar.isFunction=nc,ar.isInteger=qm,ar.isLength=Nf,ar.isMap=Bm,ar.isMatch=function Zf(Se,nt){return Se===nt||qs(Se,nt,Mh(nt))},ar.isMatchWith=function x_(Se,nt,Un){return Un="function"==typeof Un?Un:n,qs(Se,nt,Mh(nt),Un)},ar.isNaN=function Bd(Se){return eg(Se)&&Se!=+Se},ar.isNative=function Ep(Se){if(Lp(Se))throw new Jn("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return fa(Se)},ar.isNil=function S_(Se){return null==Se},ar.isNull=function Zd(Se){return null===Se},ar.isNumber=eg,ar.isObject=sd,ar.isObjectLike=Ru,ar.isPlainObject=Tm,ar.isRegExp=t_,ar.isSafeInteger=function Tp(Se){return qm(Se)&&Se>=-Q&&Se<=Q},ar.isSet=zm,ar.isString=Dd,ar.isSymbol=Oh,ar.isTypedArray=Ph,ar.isUndefined=function bd(Se){return Se===n},ar.isWeakMap=function uh(Se){return Ru(Se)&&qd(Se)==dn},ar.isWeakSet=function Ac(Se){return Ru(Se)&&"[object WeakSet]"==oc(Se)},ar.join=function Pl(Se,nt){return null==Se?"":cs.call(Se,nt)},ar.kebabCase=Lr,ar.last=Zl,ar.lastIndexOf=function kc(Se,nt,Un){var so=null==Se?0:Se.length;if(!so)return-1;var Vo=so;return Un!==n&&(Vo=(Vo=fc(Un))<0?Qi(so+Vo,0):vo(Vo,so-1)),nt==nt?function Nn(qt,bn,ii){for(var Vi=ii+1;Vi--;)if(qt[Vi]===bn)return Vi;return Vi}(Se,nt,Vo):vn(Se,ze,Vo,!0)},ar.lowerCase=ws,ar.lowerFirst=$s,ar.lt=ol,ar.lte=Kf,ar.max=function M_(Se){return Se&&Se.length?id(Se,Nh,Hd):n},ar.maxBy=function ig(Se,nt){return Se&&Se.length?id(Se,qa(nt,2),Hd):n},ar.mean=function h_(Se){return St(Se,Nh)},ar.meanBy=function f_(Se,nt){return St(Se,qa(nt,2))},ar.min=function Mm(Se){return Se&&Se.length?id(Se,Nh,gr):n},ar.minBy=function Y_(Se,nt){return Se&&Se.length?id(Se,qa(nt,2),gr):n},ar.stubArray=N_,ar.stubFalse=mp,ar.stubObject=function Ip(){return{}},ar.stubString=function Fh(){return""},ar.stubTrue=function cu(){return!0},ar.multiply=k_,ar.nth=function Eu(Se,nt){return Se&&Se.length?Tn(Se,fc(nt)):n},ar.noConflict=function a_(){return ls._===this&&(ls._=zi),this},ar.noop=Hg,ar.now=om,ar.pad=function ya(Se,nt,Un){Se=Et(Se);var so=(nt=fc(nt))?Ae(Se):0;if(!nt||so>=nt)return Se;var Vo=(nt-so)/2;return Gi(na(Vo),Un)+Se+Gi(ts(Vo),Un)},ar.padEnd=function ua(Se,nt,Un){Se=Et(Se);var so=(nt=fc(nt))?Ae(Se):0;return nt&&so<nt?Se+Gi(nt-so,Un):Se},ar.padStart=function Ja(Se,nt,Un){Se=Et(Se);var so=(nt=fc(nt))?Ae(Se):0;return nt&&so<nt?Gi(nt-so,Un)+Se:Se},ar.parseInt=function jl(Se,nt,Un){return Un||null==nt?nt=0:nt&&(nt=+nt),to(Et(Se).replace(ln,""),nt||0)},ar.random=function G(Se,nt,Un){if(Un&&"boolean"!=typeof Un&&Qc(Se,nt,Un)&&(nt=Un=n),Un===n&&("boolean"==typeof nt?(Un=nt,nt=n):"boolean"==typeof Se&&(Un=Se,Se=n)),Se===n&&nt===n?(Se=0,nt=1):(Se=cm(Se),nt===n?(nt=Se,Se=0):nt=cm(nt)),Se>nt){var so=Se;Se=nt,nt=so}if(Un||Se%1||nt%1){var Vo=Ro();return vo(Se+Vo*(nt-Se+qr("1e-"+((Vo+"").length-1))),nt)}return es(Se,nt)},ar.reduce=function Qg(Se,nt,Un){var so=xc(Se)?Va:Hn,Vo=arguments.length<3;return so(Se,qa(nt,4),Un,Vo,gc)},ar.reduceRight=function Pg(Se,nt,Un){var so=xc(Se)?ga:Hn,Vo=arguments.length<3;return so(Se,qa(nt,4),Un,Vo,ih)},ar.repeat=function zd(Se,nt,Un){return nt=(Un?Qc(Se,nt,Un):nt===n)?1:fc(nt),xa(Et(Se),nt)},ar.replace=function md(){var Se=arguments,nt=Et(Se[0]);return Se.length<3?nt:nt.replace(Se[1],Se[2])},ar.result=function Kl(Se,nt,Un){var so=-1,Vo=(nt=Sd(nt,Se)).length;for(Vo||(Vo=1,Se=n);++so<Vo;){var Er=null==Se?n:Se[zu(nt[so])];Er===n&&(so=Vo,Er=Un),Se=nc(Er)?Er.call(Se):Er}return Se},ar.round=F_,ar.runInContext=qt,ar.sample=function rd(Se){return(xc(Se)?Uh:Aa)(Se)},ar.size=function Sm(Se){if(null==Se)return 0;if(Pu(Se))return Dd(Se)?Ae(Se):Se.length;var nt=qd(Se);return nt==xe||nt==xn?Se.size:ei(Se).length},ar.snakeCase=Xu,ar.some=function Cp(Se,nt,Un){var so=xc(Se)?al:Wc;return Un&&Qc(Se,nt,Un)&&(nt=n),so(Se,qa(nt,3))},ar.sortedIndex=function vh(Se,nt){return xu(Se,nt)},ar.sortedIndexBy=function vp(Se,nt,Un){return iu(Se,nt,qa(Un,2))},ar.sortedIndexOf=function nf(Se,nt){var Un=null==Se?0:Se.length;if(Un){var so=xu(Se,nt);if(so<Un&&Hu(Se[so],nt))return so}return-1},ar.sortedLastIndex=function vf(Se,nt){return xu(Se,nt,!0)},ar.sortedLastIndexBy=function Hf(Se,nt,Un){return iu(Se,nt,qa(Un,2),!0)},ar.sortedLastIndexOf=function Vf(Se,nt){if(null!=Se&&Se.length){var so=xu(Se,nt,!0)-1;if(Hu(Se[so],nt))return so}return-1},ar.startCase=qu,ar.startsWith=function lf(Se,nt,Un){return Se=Et(Se),Un=null==Un?0:fu(fc(Un),0,Se.length),nt=ul(nt),Se.slice(Un,Un+nt.length)==nt},ar.subtract=ko,ar.sum=function dr(Se){return Se&&Se.length?Co(Se,Nh):0},ar.sumBy=function Ir(Se,nt){return Se&&Se.length?Co(Se,qa(nt,2)):0},ar.template=function Wu(Se,nt,Un){var so=ar.templateSettings;Un&&Qc(Se,nt,Un)&&(nt=n),Se=Et(Se),nt=Zt({},nt,so,hc);var Xr,Rs,Vo=Zt({},nt.imports,so.imports,hc),Er=pc(Vo),Vr=ui(Vo,Er),sa=0,ma=nt.interpolate||jo,Ma="__p += '",Qa=ci((nt.escape||jo).source+"|"+ma.source+"|"+(ma===Mt?wi:jo).source+"|"+(nt.evaluate||jo).source+"|$","g"),Cl="//# sourceURL="+(Me.call(nt,"sourceURL")?(nt.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Us+"]")+"\n";Se.replace(Qa,function(Yl,Zc,Kc,gp,Jf,Yp){return Kc||(Kc=gp),Ma+=Se.slice(sa,Yp).replace(wn,an),Zc&&(Xr=!0,Ma+="' +\n__e("+Zc+") +\n'"),Jf&&(Rs=!0,Ma+="';\n"+Jf+";\n__p += '"),Kc&&(Ma+="' +\n((__t = ("+Kc+")) == null ? '' : __t) +\n'"),sa=Yp+Yl.length,Yl}),Ma+="';\n";var El=Me.call(nt,"variable")&&nt.variable;if(El){if(pn.test(El))throw new Jn("Invalid `variable` option passed into `_.template`")}else Ma="with (obj) {\n"+Ma+"\n}\n";Ma=(Rs?Ma.replace(En,""):Ma).replace(un,"$1").replace(Ki,"$1;"),Ma="function("+(El||"obj")+") {\n"+(El?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(Xr?", __e = _.escape":"")+(Rs?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+Ma+"return __p\n}";var sc=ed(function(){return zt(Er,Cl+"return "+Ma).apply(n,Vr)});if(sc.source=Ma,Wp(sc))throw sc;return sc},ar.times=function eh(Se,nt){if((Se=fc(Se))<1||Se>Q)return[];var Un=te,so=vo(Se,te);nt=qa(nt),Se-=te;for(var Vo=Sn(so,nt);++Un<Se;)nt(Un);return Vo},ar.toFinite=cm,ar.toInteger=fc,ar.toLength=Gm,ar.toLower=function bh(Se){return Et(Se).toLowerCase()},ar.toNumber=Rh,ar.toSafeInteger=function Dp(Se){return Se?fu(fc(Se),-Q,Q):0===Se?Se:0},ar.toString=Et,ar.toUpper=function kp(Se){return Et(Se).toUpperCase()},ar.trim=function jp(Se,nt,Un){if((Se=Et(Se))&&(Un||nt===n))return Dn(Se);if(!Se||!(nt=ul(nt)))return Se;var so=He(Se),Vo=He(nt);return hd(so,en(so,Vo),cn(so,Vo)+1).join("")},ar.trimEnd=function Bg(Se,nt,Un){if((Se=Et(Se))&&(Un||nt===n))return Se.slice(0,Kt(Se)+1);if(!Se||!(nt=ul(nt)))return Se;var so=He(Se);return hd(so,0,cn(so,He(nt))+1).join("")},ar.trimStart=function zg(Se,nt,Un){if((Se=Et(Se))&&(Un||nt===n))return Se.replace(ln,"");if(!Se||!(nt=ul(nt)))return Se;var so=He(Se);return hd(so,en(so,He(nt))).join("")},ar.truncate=function n_(Se,nt){var Un=30,so="...";if(sd(nt)){var Vo="separator"in nt?nt.separator:Vo;Un="length"in nt?fc(nt.length):Un,so="omission"in nt?ul(nt.omission):so}var Er=(Se=Et(Se)).length;if(Je(Se)){var Vr=He(Se);Er=Vr.length}if(Un>=Er)return Se;var Xr=Un-Ae(so);if(Xr<1)return so;var Rs=Vr?hd(Vr,0,Xr).join(""):Se.slice(0,Xr);if(Vo===n)return Rs+so;if(Vr&&(Xr+=Rs.length-Xr),t_(Vo)){if(Se.slice(Xr).search(Vo)){var sa,ma=Rs;for(Vo.global||(Vo=ci(Vo.source,Et(hi.exec(Vo))+"g")),Vo.lastIndex=0;sa=Vo.exec(ma);)var Ma=sa.index;Rs=Rs.slice(0,Ma===n?Xr:Ma)}}else if(Se.indexOf(ul(Vo),Xr)!=Xr){var Qa=Rs.lastIndexOf(Vo);Qa>-1&&(Rs=Rs.slice(0,Qa))}return Rs+so},ar.unescape=function i_(Se){return(Se=Et(Se))&&It.test(Se)?Se.replace(Fn,On):Se},ar.uniqueId=function Cg(Se){var nt=++pe;return Et(Se)+nt},ar.upperCase=Ug,ar.upperFirst=Hm,ar.each=Zh,ar.eachRight=qc,ar.first=$r,s_(ar,function(){var Se={};return Ic(ar,function(nt,Un){Me.call(ar.prototype,Un)||(Se[Un]=nt)}),Se}(),{chain:!1}),ar.VERSION="4.17.21",sr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(Se){ar[Se].placeholder=ar}),sr(["drop","take"],function(Se,nt){pa.prototype[Se]=function(Un){Un=Un===n?1:Qi(fc(Un),0);var so=this.__filtered__&&!nt?new pa(this):this.clone();return so.__filtered__?so.__takeCount__=vo(Un,so.__takeCount__):so.__views__.push({size:vo(Un,te),type:Se+(so.__dir__<0?"Right":"")}),so},pa.prototype[Se+"Right"]=function(Un){return this.reverse()[Se](Un).reverse()}}),sr(["filter","map","takeWhile"],function(Se,nt){var Un=nt+1,so=1==Un||3==Un;pa.prototype[Se]=function(Vo){var Er=this.clone();return Er.__iteratees__.push({iteratee:qa(Vo,3),type:Un}),Er.__filtered__=Er.__filtered__||so,Er}}),sr(["head","last"],function(Se,nt){var Un="take"+(nt?"Right":"");pa.prototype[Se]=function(){return this[Un](1).value()[0]}}),sr(["initial","tail"],function(Se,nt){var Un="drop"+(nt?"":"Right");pa.prototype[Se]=function(){return this.__filtered__?new pa(this):this[Un](1)}}),pa.prototype.compact=function(){return this.filter(Nh)},pa.prototype.find=function(Se){return this.filter(Se).head()},pa.prototype.findLast=function(Se){return this.reverse().find(Se)},pa.prototype.invokeMap=ha(function(Se,nt){return"function"==typeof Se?new pa(this):this.map(function(Un){return Wo(Un,Se,nt)})}),pa.prototype.reject=function(Se){return this.filter(Kh(qa(Se)))},pa.prototype.slice=function(Se,nt){Se=fc(Se);var Un=this;return Un.__filtered__&&(Se>0||nt<0)?new pa(Un):(Se<0?Un=Un.takeRight(-Se):Se&&(Un=Un.drop(Se)),nt!==n&&(Un=(nt=fc(nt))<0?Un.dropRight(-nt):Un.take(nt-Se)),Un)},pa.prototype.takeRightWhile=function(Se){return this.reverse().takeWhile(Se).reverse()},pa.prototype.toArray=function(){return this.take(te)},Ic(pa.prototype,function(Se,nt){var Un=/^(?:filter|find|map|reject)|While$/.test(nt),so=/^(?:head|last)$/.test(nt),Vo=ar[so?"take"+("last"==nt?"Right":""):nt],Er=so||/^find/.test(nt);Vo&&(ar.prototype[nt]=function(){var Vr=this.__wrapped__,Xr=so?[1]:arguments,Rs=Vr instanceof pa,sa=Xr[0],ma=Rs||xc(Vr),Ma=function(Zc){var Kc=Vo.apply(ar,da([Zc],Xr));return so&&Qa?Kc[0]:Kc};ma&&Un&&"function"==typeof sa&&1!=sa.length&&(Rs=ma=!1);var Qa=this.__chain__,El=Er&&!Qa,sc=Rs&&!this.__actions__.length;if(!Er&&ma){Vr=sc?Vr:new pa(this);var Yl=Se.apply(Vr,Xr);return Yl.__actions__.push({func:Am,args:[Ma],thisArg:n}),new Ya(Yl,Qa)}return El&&sc?Se.apply(this,Xr):(Yl=this.thru(Ma),El?so?Yl.value()[0]:Yl.value():Yl)})}),sr(["pop","push","shift","sort","splice","unshift"],function(Se){var nt=Pn[Se],Un=/^(?:push|sort|unshift)$/.test(Se)?"tap":"thru",so=/^(?:pop|shift)$/.test(Se);ar.prototype[Se]=function(){var Vo=arguments;if(so&&!this.__chain__){var Er=this.value();return nt.apply(xc(Er)?Er:[],Vo)}return this[Un](function(Vr){return nt.apply(xc(Vr)?Vr:[],Vo)})}}),Ic(pa.prototype,function(Se,nt){var Un=ar[nt];if(Un){var so=Un.name+"";Me.call(il,so)||(il[so]=[]),il[so].push({name:nt,func:Un})}}),il[Rn(n,2).name]=[{name:"wrapper",func:n}],pa.prototype.clone=function rl(){var Se=new pa(this.__wrapped__);return Se.__actions__=yd(this.__actions__),Se.__dir__=this.__dir__,Se.__filtered__=this.__filtered__,Se.__iteratees__=yd(this.__iteratees__),Se.__takeCount__=this.__takeCount__,Se.__views__=yd(this.__views__),Se},pa.prototype.reverse=function Nl(){if(this.__filtered__){var Se=new pa(this);Se.__dir__=-1,Se.__filtered__=!0}else(Se=this.clone()).__dir__*=-1;return Se},pa.prototype.value=function nd(){var Se=this.__wrapped__.value(),nt=this.__dir__,Un=xc(Se),so=nt<0,Vo=Un?Se.length:0,Er=function Wh(Se,nt,Un){for(var so=-1,Vo=Un.length;++so<Vo;){var Er=Un[so],Vr=Er.size;switch(Er.type){case"drop":Se+=Vr;break;case"dropRight":nt-=Vr;break;case"take":nt=vo(nt,Se+Vr);break;case"takeRight":Se=Qi(Se,nt-Vr)}}return{start:Se,end:nt}}(0,Vo,this.__views__),Vr=Er.start,Xr=Er.end,Rs=Xr-Vr,sa=so?Xr:Vr-1,ma=this.__iteratees__,Ma=ma.length,Qa=0,Cl=vo(Rs,this.__takeCount__);if(!Un||!so&&Vo==Rs&&Cl==Rs)return hf(Se,this.__actions__);var El=[];e:for(;Rs--&&Qa<Cl;){for(var sc=-1,Yl=Se[sa+=nt];++sc<Ma;){var Zc=ma[sc],gp=Zc.type,Jf=(0,Zc.iteratee)(Yl);if(2==gp)Yl=Jf;else if(!Jf){if(1==gp)continue e;break e}}El[Qa++]=Yl}return El},ar.prototype.at=b_,ar.prototype.chain=function mu(){return dg(this)},ar.prototype.commit=function Pf(){return new Ya(this.value(),this.__chain__)},ar.prototype.next=function Up(){this.__values__===n&&(this.__values__=Um(this.value()));var Se=this.__index__>=this.__values__.length;return{done:Se,value:Se?n:this.__values__[this.__index__++]}},ar.prototype.plant=function Wf(Se){for(var nt,Un=this;Un instanceof _l;){var so=_h(Un);so.__index__=0,so.__values__=n,nt?Vo.__wrapped__=so:nt=so;var Vo=so;Un=Un.__wrapped__}return Vo.__wrapped__=Se,nt},ar.prototype.reverse=function nm(){var Se=this.__wrapped__;if(Se instanceof pa){var nt=Se;return this.__actions__.length&&(nt=new pa(this)),(nt=nt.reverse()).__actions__.push({func:Am,args:[Xc],thisArg:n}),new Ya(nt,this.__chain__)}return this.thru(Xc)},ar.prototype.toJSON=ar.prototype.valueOf=ar.prototype.value=function $g(){return hf(this.__wrapped__,this.__actions__)},ar.prototype.first=ar.prototype.head,Fr&&(ar.prototype[Fr]=function C_(){return this}),ar}();ls._=Vt,(e=function(){return Vt}.call(y,i,y,he))!==n&&(he.exports=e)}.call(this)},87659:(he,y,i)=>{var e=i(21811);function o(a,l){if("function"!=typeof a||null!=l&&"function"!=typeof l)throw new TypeError("Expected a function");var u=function(){var d=arguments,s=l?l.apply(this,d):d[0],A=u.cache;if(A.has(s))return A.get(s);var _=a.apply(this,d);return u.cache=A.set(s,_)||A,_};return u.cache=new(o.Cache||e),u}o.Cache=e,he.exports=o},55533:(he,y,i)=>{var e=i(98492);he.exports=function(){return e.Date.now()}},88791:(he,y,i)=>{var e=i(73880),n=i(61320),o=i(4205),a=i(44826),l=i(35931),u=i(1038),d=i(46801),s=i(2442),R=d(function(x,f){var k={};if(null==x)return k;var w=!1;f=e(f,function(M){return M=a(M,x),w||(w=M.length>1),M}),l(x,s(x),k),w&&(k=n(k,7,u));for(var g=f.length;g--;)o(k,f[g]);return k});he.exports=R},38236:(he,y,i)=>{var e=i(93790),n=i(7339),o=i(90481),a=i(12674),l=Math.ceil,u=Math.floor;he.exports=function d(s,A,_){s=a(s);var C=(A=o(A))?n(s):0;if(!A||C>=A)return s;var R=(A-C)/2;return e(u(R),_)+s+e(l(R),_)}},93241:(he,y,i)=>{var n=i(85786)("round");he.exports=n},17939:(he,y,i)=>{var e=i(19478);he.exports=function n(o,a,l){return null==o?o:e(o,a,l)}},81315:he=>{he.exports=function y(){return[]}},15706:he=>{he.exports=function y(){return!1}},99292:(he,y,i)=>{var e=i(94282),n=1/0;he.exports=function a(l){return l?(l=e(l))===n||l===-n?17976931348623157e292*(l<0?-1:1):l==l?l:0:0===l?l:0}},90481:(he,y,i)=>{var e=i(99292);he.exports=function n(o){var a=e(o),l=a%1;return a==a?l?a-l:a:0}},94282:(he,y,i)=>{var e=i(99484),n=i(49794),o=i(23423),l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,d=/^0o[0-7]+$/i,s=parseInt;he.exports=function A(_){if("number"==typeof _)return _;if(o(_))return NaN;if(n(_)){var C="function"==typeof _.valueOf?_.valueOf():_;_=n(C)?C+"":C}if("string"!=typeof _)return 0===_?_:+_;_=e(_);var R=u.test(_);return R||d.test(_)?s(_.slice(2),R?2:8):l.test(_)?NaN:+_}},12674:(he,y,i)=>{var e=i(97002);he.exports=function n(o){return null==o?"":e(o)}},96771:(he,y,i)=>{var e=i(97002),n=i(99484),o=i(43073),a=i(7898),l=i(2672),u=i(67573),d=i(12674);he.exports=function s(A,_,C){if((A=d(A))&&(C||void 0===_))return n(A);if(!A||!(_=e(_)))return A;var R=u(A),x=u(_),f=l(R,x),k=a(R,x)+1;return o(R,f,k).join("")}},78094:function(he,y,i){var e,n,o;
//! moment-timezone.js
//! version : 0.5.45
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
!function(a,l){"use strict";he.exports?he.exports=l(i(16676)):(n=[i(16676)],void 0!==(o="function"==typeof(e=l)?e.apply(y,n):e)&&(he.exports=o))}(0,function(a){"use strict";void 0===a.version&&a.default&&(a=a.default);var C,u={},d={},s={},A={},_={};(!a||"string"!=typeof a.version)&&ge("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var R=a.version.split("."),x=+R[0],f=+R[1];function k(Le){return Le>96?Le-87:Le>64?Le-29:Le-48}function w(Le){var Gt=0,Ut=Le.split("."),An=Ut[0],$n=Ut[1]||"",xn=1,ut=0,Wt=1;for(45===Le.charCodeAt(0)&&(Gt=1,Wt=-1);Gt<An.length;Gt++)ut=60*ut+k(An.charCodeAt(Gt));for(Gt=0;Gt<$n.length;Gt++)xn/=60,ut+=k($n.charCodeAt(Gt))*xn;return ut*Wt}function g(Le){for(var Gt=0;Gt<Le.length;Gt++)Le[Gt]=w(Le[Gt])}function p(Le,Gt){var An,Ut=[];for(An=0;An<Gt.length;An++)Ut[An]=Le[Gt[An]];return Ut}function E(Le){var Gt=Le.split("|"),Ut=Gt[2].split(" "),An=Gt[3].split(""),$n=Gt[4].split(" ");return g(Ut),g(An),g($n),function M(Le,Gt){for(var Ut=0;Ut<Gt;Ut++)Le[Ut]=Math.round((Le[Ut-1]||0)+6e4*Le[Ut]);Le[Gt-1]=1/0}($n,An.length),{name:Gt[0],abbrs:p(Gt[1].split(" "),An),offsets:p(Ut,An),untils:$n,population:0|Gt[5]}}function b(Le){Le&&this._set(E(Le))}function L(Le,Gt){this.name=Le,this.zones=Gt}function D(Le){var Gt=Le.toTimeString(),Ut=Gt.match(/\([a-z ]+\)/i);"GMT"===(Ut=Ut&&Ut[0]?(Ut=Ut[0].match(/[A-Z]/g))?Ut.join(""):void 0:(Ut=Gt.match(/[A-Z]{3,5}/g))?Ut[0]:void 0)&&(Ut=void 0),this.at=+Le,this.abbr=Ut,this.offset=Le.getTimezoneOffset()}function F(Le){this.zone=Le,this.offsetScore=0,this.abbrScore=0}function P(Le,Gt){for(var Ut,An;An=6e4*((Gt.at-Le.at)/12e4|0);)(Ut=new D(new Date(Le.at+An))).offset===Le.offset?Le=Ut:Gt=Ut;return Le}function U(Le,Gt){return Le.offsetScore!==Gt.offsetScore?Le.offsetScore-Gt.offsetScore:Le.abbrScore!==Gt.abbrScore?Le.abbrScore-Gt.abbrScore:Le.zone.population!==Gt.zone.population?Gt.zone.population-Le.zone.population:Gt.zone.name.localeCompare(Le.zone.name)}function V(Le,Gt){var Ut,An;for(g(Gt),Ut=0;Ut<Gt.length;Ut++)_[An=Gt[Ut]]=_[An]||{},_[An][Le]=!0}function J(Le){return(Le||"").toLowerCase().replace(/\//g,"_")}function Q(Le){var Gt,Ut,An,$n;for("string"==typeof Le&&(Le=[Le]),Gt=0;Gt<Le.length;Gt++)$n=J(Ut=(An=Le[Gt].split("|"))[0]),u[$n]=Le[Gt],A[$n]=Ut,V($n,An[2].split(" "))}function re(Le,Gt){Le=J(Le);var An,Ut=u[Le];return Ut instanceof b?Ut:"string"==typeof Ut?(Ut=new b(Ut),u[Le]=Ut,Ut):d[Le]&&Gt!==re&&(An=re(d[Le],re))?((Ut=u[Le]=new b)._set(An),Ut.name=A[Le],Ut):null}function j(Le){var Gt,Ut,An,$n;for("string"==typeof Le&&(Le=[Le]),Gt=0;Gt<Le.length;Gt++)An=J((Ut=Le[Gt].split("|"))[0]),$n=J(Ut[1]),d[An]=$n,A[An]=Ut[0],d[$n]=An,A[$n]=Ut[1]}function _e(Le){return!(!Le._a||void 0!==Le._tzm||"X"===Le._f||"x"===Le._f)}function ge(Le){typeof console<"u"&&"function"==typeof console.error&&console.error(Le)}function Ce(Le){var $n,Gt=Array.prototype.slice.call(arguments,0,-1),Ut=arguments[arguments.length-1],An=a.utc.apply(null,Gt);return!a.isMoment(Le)&&_e(An)&&($n=re(Ut))&&An.add($n.parse(An),"minutes"),An.tz(Ut),An}(x<2||2===x&&f<6)&&ge("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+a.version+". See momentjs.com"),b.prototype={_set:function(Le){this.name=Le.name,this.abbrs=Le.abbrs,this.untils=Le.untils,this.offsets=Le.offsets,this.population=Le.population},_index:function(Le){var An;if(An=function I(Le,Gt){var Ut=Gt.length;if(Le<Gt[0])return 0;if(Ut>1&&Gt[Ut-1]===1/0&&Le>=Gt[Ut-2])return Ut-1;if(Le>=Gt[Ut-1])return-1;for(var An,$n=0,xn=Ut-1;xn-$n>1;)Gt[An=Math.floor(($n+xn)/2)]<=Le?$n=An:xn=An;return xn}(+Le,this.untils),An>=0)return An},countries:function(){var Le=this.name;return Object.keys(s).filter(function(Gt){return-1!==s[Gt].zones.indexOf(Le)})},parse:function(Le){var xn,mt,ut,Wt,Gt=+Le,Ut=this.offsets,An=this.untils,$n=An.length-1;for(Wt=0;Wt<$n;Wt++)if(ut=Ut[Wt&&Wt-1],(xn=Ut[Wt])<(mt=Ut[Wt+1])&&Ce.moveAmbiguousForward?xn=mt:xn>ut&&Ce.moveInvalidForward&&(xn=ut),Gt<An[Wt]-6e4*xn)return Ut[Wt];return Ut[$n]},abbr:function(Le){return this.abbrs[this._index(Le)]},offset:function(Le){return ge("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(Le)]},utcOffset:function(Le){return this.offsets[this._index(Le)]}},F.prototype.scoreOffsetAt=function(Le){this.offsetScore+=Math.abs(this.zone.utcOffset(Le.at)-Le.offset),this.zone.abbr(Le.at).replace(/[^A-Z]/g,"")!==Le.abbr&&this.abbrScore++},Ce.version="0.5.45",Ce.dataVersion="",Ce._zones=u,Ce._links=d,Ce._names=A,Ce._countries=s,Ce.add=Q,Ce.link=j,Ce.load=function se(Le){Q(Le.zones),j(Le.links),function H(Le){var Gt,Ut,An,$n;if(Le&&Le.length)for(Gt=0;Gt<Le.length;Gt++)Ut=($n=Le[Gt].split("|"))[0].toUpperCase(),An=$n[1].split(" "),s[Ut]=new L(Ut,An)}(Le.countries),Ce.dataVersion=Le.version},Ce.zone=re,Ce.zoneExists=function ne(Le){return ne.didShowError||(ne.didShowError=!0,ge("moment.tz.zoneExists('"+Le+"') has been deprecated in favor of !moment.tz.zone('"+Le+"')")),!!re(Le)},Ce.guess=function me(Le){return(!C||Le)&&(C=function X(){try{var Le=Intl.DateTimeFormat().resolvedOptions().timeZone;if(Le&&Le.length>3){var Gt=A[J(Le)];if(Gt)return Gt;ge("Moment Timezone found "+Le+" from the Intl api, but did not have that data loaded.")}}catch{}var mt,ut,Wt,Ut=function O(){var $n,xn,mt,ut,Le=(new Date).getFullYear()-2,Gt=new D(new Date(Le,0,1)),Ut=Gt.offset,An=[Gt];for(ut=1;ut<48;ut++)(mt=new Date(Le,ut,1).getTimezoneOffset())!==Ut&&($n=P(Gt,xn=new D(new Date(Le,ut,1))),An.push($n),An.push(new D(new Date($n.at+6e4))),Gt=xn,Ut=mt);for(ut=0;ut<4;ut++)An.push(new D(new Date(Le+ut,0,1))),An.push(new D(new Date(Le+ut,6,1)));return An}(),An=Ut.length,$n=function K(Le){var xn,mt,ut,Wt,Gt=Le.length,Ut={},An=[],$n={};for(xn=0;xn<Gt;xn++)if(!$n.hasOwnProperty(ut=Le[xn].offset)){for(mt in Wt=_[ut]||{})Wt.hasOwnProperty(mt)&&(Ut[mt]=!0);$n[ut]=!0}for(xn in Ut)Ut.hasOwnProperty(xn)&&An.push(A[xn]);return An}(Ut),xn=[];for(ut=0;ut<$n.length;ut++){for(mt=new F(re($n[ut]),An),Wt=0;Wt<An;Wt++)mt.scoreOffsetAt(Ut[Wt]);xn.push(mt)}return xn.sort(U),xn.length>0?xn[0].zone.name:void 0}()),C},Ce.names=function de(){var Le,Gt=[];for(Le in A)A.hasOwnProperty(Le)&&(u[Le]||u[d[Le]])&&A[Le]&&Gt.push(A[Le]);return Gt.sort()},Ce.Zone=b,Ce.unpack=E,Ce.unpackBase60=w,Ce.needsOffset=_e,Ce.moveInvalidForward=!0,Ce.moveAmbiguousForward=!1,Ce.countries=function te(){return Object.keys(s)},Ce.zonesForCountry=function q(Le,Gt){if(!(Le=function z(Le){return Le=Le.toUpperCase(),s[Le]||null}(Le)))return null;var Ut=Le.zones.sort();return Gt?Ut.map(function(An){return{name:An,offset:re(An).utcOffset(new Date)}}):Ut};var Te=a.fn;function De(Le){return function(){return this._z?this._z.abbr(this):Le.call(this)}}function fe(Le){return function(){return this._z=null,Le.apply(this,arguments)}}a.tz=Ce,a.defaultZone=null,a.updateOffset=function(Le,Gt){var An,Ut=a.defaultZone;if(void 0===Le._z&&(Ut&&_e(Le)&&!Le._isUTC&&Le.isValid()&&(Le._d=a.utc(Le._a)._d,Le.utc().add(Ut.parse(Le),"minutes")),Le._z=Ut),Le._z)if(An=Le._z.utcOffset(Le),Math.abs(An)<16&&(An/=60),void 0!==Le.utcOffset){var $n=Le._z;Le.utcOffset(-An,Gt),Le._z=$n}else Le.zone(An,Gt)},Te.tz=function(Le,Gt){if(Le){if("string"!=typeof Le)throw new Error("Time zone name must be a string, got "+Le+" ["+typeof Le+"]");return this._z=re(Le),this._z?a.updateOffset(this,Gt):ge("Moment Timezone has no data for "+Le+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},Te.zoneName=De(Te.zoneName),Te.zoneAbbr=De(Te.zoneAbbr),Te.utc=fe(Te.utc),Te.local=fe(Te.local),Te.utcOffset=function xe(Le){return function(){return arguments.length>0&&(this._z=null),Le.apply(this,arguments)}}(Te.utcOffset),a.tz.setDefault=function(Le){return(x<2||2===x&&f<9)&&ge("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+a.version+"."),a.defaultZone=Le?re(Le):null,a};var Oe=a.momentProperties;return"[object Array]"===Object.prototype.toString.call(Oe)?(Oe.push("_z"),Oe.push("_a")):Oe&&(Oe._z=null),a})},83274:function(he,y,i){
//! moment.js locale configuration
//! locale : Afrikaans [af]
//! author : Werner Mollentze : https://github.com/wernerm
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(o){return/^nm$/i.test(o)},meridiem:function(o,a,l){return o<12?l?"vm":"VM":l?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(o){return o+(1===o||8===o||o>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(16676))},61867:function(he,y,i){
//! moment.js locale configuration
//! locale : Arabic (Algeria) [ar-dz]
//! author : Amine Roukh: https://github.com/Amine27
//! author : Abdel Said: https://github.com/abdelsaid
//! author : Ahmed Elkhatib
//! author : forabi https://github.com/forabi
//! author : Noureddine LOUAHEDJ : https://github.com/noureddinem
!function(e){"use strict";
//! moment.js locale configuration
var n=function(d){return 0===d?0:1===d?1:2===d?2:d%100>=3&&d%100<=10?3:d%100>=11?4:5},o={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},a=function(d){return function(s,A,_,C){var R=n(s),x=o[d][n(s)];return 2===R&&(x=x[A?0:1]),x.replace(/%d/i,s)}},l=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-dz",{months:l,monthsShort:l,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(d){return"\u0645"===d},meridiem:function(d,s,A){return d<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},postformat:function(d){return d.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(i(16676))},17078:function(he,y,i){
//! moment.js locale configuration
//! locale : Arabic (Kuwait) [ar-kw]
//! author : Nusret Parlak: https://github.com/nusretparlak
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(i(16676))},77776:function(he,y,i){
//! moment.js locale configuration
//! locale : Arabic (Libya) [ar-ly]
//! author : Ali Hmer: https://github.com/kikoanis
!function(e){"use strict";
//! moment.js locale configuration
var n={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},o=function(s){return 0===s?0:1===s?1:2===s?2:s%100>=3&&s%100<=10?3:s%100>=11?4:5},a={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},l=function(s){return function(A,_,C,R){var x=o(A),f=a[s][o(A)];return 2===x&&(f=f[_?0:1]),f.replace(/%d/i,A)}},u=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-ly",{months:u,monthsShort:u,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(s){return"\u0645"===s},meridiem:function(s,A,_){return s<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:l("s"),ss:l("s"),m:l("m"),mm:l("m"),h:l("h"),hh:l("h"),d:l("d"),dd:l("d"),M:l("M"),MM:l("M"),y:l("y"),yy:l("y")},preparse:function(s){return s.replace(/\u060c/g,",")},postformat:function(s){return s.replace(/\d/g,function(A){return n[A]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(16676))},56789:function(he,y,i){
//! moment.js locale configuration
//! locale : Arabic (Morocco) [ar-ma]
//! author : ElFadili Yassine : https://github.com/ElFadiliY
//! author : Abdel Said : https://github.com/abdelsaid
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(i(16676))},73807:function(he,y,i){
//! moment.js locale configuration
//! locale : Arabic (Palestine) [ar-ps]
//! author : Majd Al-Shihabi : https://github.com/majdal
!function(e){"use strict";
//! moment.js locale configuration
var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},o={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.defineLocale("ar-ps",{months:"\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0634\u0631\u064a \u0627\u0644\u0623\u0648\u0651\u0644_\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0651\u0644".split("_"),monthsShort:"\u0643\u0662_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0661_\u062a\u0662_\u0643\u0661".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(l){return"\u0645"===l},meridiem:function(l,u,d){return l<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(l){return l.replace(/[\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(u){return o[u]}).split("").reverse().join("").replace(/[\u0661\u0662](?![\u062a\u0643])/g,function(u){return o[u]}).split("").reverse().join("").replace(/\u060c/g,",")},postformat:function(l){return l.replace(/\d/g,function(u){return n[u]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(i(16676))},6897:function(he,y,i){
//! moment.js locale configuration
//! locale : Arabic (Saudi Arabia) [ar-sa]
//! author : Suhail Alkowaileet : https://github.com/xsoh
!function(e){"use strict";
//! moment.js locale configuration
var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},o={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(l){return"\u0645"===l},meridiem:function(l,u,d){return l<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(l){return l.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(u){return o[u]}).replace(/\u060c/g,",")},postformat:function(l){return l.replace(/\d/g,function(u){return n[u]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(i(16676))},71585:function(he,y,i){
//! moment.js locale configuration
//! locale  :  Arabic (Tunisia) [ar-tn]
//! author : Nader Toukabri : https://github.com/naderio
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(i(16676))},22097:function(he,y,i){
//! moment.js locale configuration
//! locale : Arabic [ar]
//! author : Abdel Said: https://github.com/abdelsaid
//! author : Ahmed Elkhatib
//! author : forabi https://github.com/forabi
!function(e){"use strict";
//! moment.js locale configuration
var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},o={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},a=function(A){return 0===A?0:1===A?1:2===A?2:A%100>=3&&A%100<=10?3:A%100>=11?4:5},l={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},u=function(A){return function(_,C,R,x){var f=a(_),k=l[A][a(_)];return 2===f&&(k=k[C?0:1]),k.replace(/%d/i,_)}},d=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar",{months:d,monthsShort:d,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(A){return"\u0645"===A},meridiem:function(A,_,C){return A<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:u("s"),ss:u("s"),m:u("m"),mm:u("m"),h:u("h"),hh:u("h"),d:u("d"),dd:u("d"),M:u("M"),MM:u("M"),y:u("y"),yy:u("y")},preparse:function(A){return A.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(_){return o[_]}).replace(/\u060c/g,",")},postformat:function(A){return A.replace(/\d/g,function(_){return n[_]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(16676))},15611:function(he,y,i){
//! moment.js locale configuration
//! locale : Azerbaijani [az]
//! author : topchiyev : https://github.com/topchiyev
!function(e){"use strict";
//! moment.js locale configuration
var n={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(a){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(a)},meridiem:function(a,l,u){return a<4?"gec\u0259":a<12?"s\u0259h\u0259r":a<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(a){if(0===a)return a+"-\u0131nc\u0131";var l=a%10;return a+(n[l]||n[a%100-l]||n[a>=100?100:null])},week:{dow:1,doy:7}})}(i(16676))},62459:function(he,y,i){
//! moment.js locale configuration
//! locale : Belarusian [be]
//! author : Dmitry Demidov : https://github.com/demidov91
//! author: Praleska: http://praleska.pro/
//! Author : Menelion Elensúle : https://github.com/Oire
!function(e){"use strict";
//! moment.js locale configuration
function o(l,u,d){return"m"===d?u?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===d?u?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":l+" "+function n(l,u){var d=l.split("_");return u%10==1&&u%100!=11?d[0]:u%10>=2&&u%10<=4&&(u%100<10||u%100>=20)?d[1]:d[2]}({ss:u?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:u?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:u?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[d],+l)}e.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:o,mm:o,h:o,hh:o,d:"\u0434\u0437\u0435\u043d\u044c",dd:o,M:"\u043c\u0435\u0441\u044f\u0446",MM:o,y:"\u0433\u043e\u0434",yy:o},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(l){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(l)},meridiem:function(l,u,d){return l<4?"\u043d\u043e\u0447\u044b":l<12?"\u0440\u0430\u043d\u0456\u0446\u044b":l<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(l,u){switch(u){case"M":case"d":case"DDD":case"w":case"W":return l%10!=2&&l%10!=3||l%100==12||l%100==13?l+"-\u044b":l+"-\u0456";case"D":return l+"-\u0433\u0430";default:return l}},week:{dow:1,doy:7}})}(i(16676))},91825:function(he,y,i){
//! moment.js locale configuration
//! locale : Bulgarian [bg]
//! author : Krasen Borisov : https://github.com/kraz
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(o){var a=o%10,l=o%100;return 0===o?o+"-\u0435\u0432":0===l?o+"-\u0435\u043d":l>10&&l<20?o+"-\u0442\u0438":1===a?o+"-\u0432\u0438":2===a?o+"-\u0440\u0438":7===a||8===a?o+"-\u043c\u0438":o+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i(16676))},75918:function(he,y,i){
//! moment.js locale configuration
//! locale : Bambara [bm]
//! author : Estelle Comment : https://github.com/estellecomment
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(i(16676))},49683:function(he,y,i){
//! moment.js locale configuration
//! locale : Bengali (Bangladesh) [bn-bd]
//! author : Asraf Hossain Patoary : https://github.com/ashwoolford
!function(e){"use strict";
//! moment.js locale configuration
var n={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},o={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(l){return l.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(u){return o[u]})},postformat:function(l){return l.replace(/\d/g,function(u){return n[u]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(l,u){return 12===l&&(l=0),"\u09b0\u09be\u09a4"===u?l<4?l:l+12:"\u09ad\u09cb\u09b0"===u||"\u09b8\u0995\u09be\u09b2"===u?l:"\u09a6\u09c1\u09aa\u09c1\u09b0"===u?l>=3?l:l+12:"\u09ac\u09bf\u0995\u09be\u09b2"===u||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===u?l+12:void 0},meridiem:function(l,u,d){return l<4?"\u09b0\u09be\u09a4":l<6?"\u09ad\u09cb\u09b0":l<12?"\u09b8\u0995\u09be\u09b2":l<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":l<18?"\u09ac\u09bf\u0995\u09be\u09b2":l<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(i(16676))},34065:function(he,y,i){
//! moment.js locale configuration
//! locale : Bengali [bn]
//! author : Kaushik Gandhi : https://github.com/kaushikgandhi
!function(e){"use strict";
//! moment.js locale configuration
var n={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},o={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(l){return l.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(u){return o[u]})},postformat:function(l){return l.replace(/\d/g,function(u){return n[u]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(l,u){return 12===l&&(l=0),"\u09b0\u09be\u09a4"===u&&l>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===u&&l<5||"\u09ac\u09bf\u0995\u09be\u09b2"===u?l+12:l},meridiem:function(l,u,d){return l<4?"\u09b0\u09be\u09a4":l<10?"\u09b8\u0995\u09be\u09b2":l<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":l<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(i(16676))},11034:function(he,y,i){
//! moment.js locale configuration
//! locale : Tibetan [bo]
//! author : Thupten N. Chakrishar : https://github.com/vajradog
!function(e){"use strict";
//! moment.js locale configuration
var n={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},o={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};e.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(l){return l.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(u){return o[u]})},postformat:function(l){return l.replace(/\d/g,function(u){return n[u]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(l,u){return 12===l&&(l=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===u&&l>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===u&&l<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===u?l+12:l},meridiem:function(l,u,d){return l<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":l<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":l<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":l<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(i(16676))},27671:function(he,y,i){
//! moment.js locale configuration
//! locale : Breton [br]
//! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
!function(e){"use strict";
//! moment.js locale configuration
function n(k,w,g){return k+" "+function l(k,w){return 2===w?function u(k){var w={m:"v",b:"v",d:"z"};return void 0===w[k.charAt(0)]?k:w[k.charAt(0)]+k.substring(1)}(k):k}({mm:"munutenn",MM:"miz",dd:"devezh"}[g],k)}function a(k){return k>9?a(k%10):k}var d=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],s=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,x=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:x,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:x,monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:d,longMonthsParse:d,shortMonthsParse:d,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:n,h:"un eur",hh:"%d eur",d:"un devezh",dd:n,M:"ur miz",MM:n,y:"ur bloaz",yy:function o(k){switch(a(k)){case 1:case 3:case 4:case 5:case 9:return k+" bloaz";default:return k+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(k){return k+(1===k?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(k){return"g.m."===k},meridiem:function(k,w,g){return k<12?"a.m.":"g.m."}})}(i(16676))},38153:function(he,y,i){
//! moment.js locale configuration
//! locale : Bosnian [bs]
//! author : Nedim Cholich : https://github.com/frontyard
//! author : Rasid Redzic : https://github.com/rasidre
//! based on (hr) translation by Bojan Marković
!function(e){"use strict";
//! moment.js locale configuration
function o(l,u,d){var s=l+" ";switch(d){case"ss":return s+(1===l?"sekunda":2===l||3===l||4===l?"sekunde":"sekundi");case"mm":return s+(1===l?"minuta":2===l||3===l||4===l?"minute":"minuta");case"h":return"jedan sat";case"hh":return s+(1===l?"sat":2===l||3===l||4===l?"sata":"sati");case"dd":return s+(1===l?"dan":"dana");case"MM":return s+(1===l?"mjesec":2===l||3===l||4===l?"mjeseca":"mjeseci");case"yy":return s+(1===l?"godina":2===l||3===l||4===l?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:o,m:function n(l,u,d,s){if("m"===d)return u?"jedna minuta":s?"jednu minutu":"jedne minute"},mm:o,h:o,hh:o,d:"dan",dd:o,M:"mjesec",MM:o,y:"godinu",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(16676))},54287:function(he,y,i){
//! moment.js locale configuration
//! locale : Catalan [ca]
//! author : Juan G. Hurtado : https://github.com/juanghurtado
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(o,a){var l=1===o?"r":2===o?"n":3===o?"r":4===o?"t":"\xe8";return("w"===a||"W"===a)&&(l="a"),o+l},week:{dow:1,doy:4}})}(i(16676))},72616:function(he,y,i){
//! moment.js locale configuration
//! locale : Czech [cs]
//! author : petrbela : https://github.com/petrbela
!function(e){"use strict";
//! moment.js locale configuration
var n={standalone:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),format:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},o="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),a=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],l=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function u(A){return A>1&&A<5&&1!=~~(A/10)}function d(A,_,C,R){var x=A+" ";switch(C){case"s":return _||R?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return _||R?x+(u(A)?"sekundy":"sekund"):x+"sekundami";case"m":return _?"minuta":R?"minutu":"minutou";case"mm":return _||R?x+(u(A)?"minuty":"minut"):x+"minutami";case"h":return _?"hodina":R?"hodinu":"hodinou";case"hh":return _||R?x+(u(A)?"hodiny":"hodin"):x+"hodinami";case"d":return _||R?"den":"dnem";case"dd":return _||R?x+(u(A)?"dny":"dn\xed"):x+"dny";case"M":return _||R?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return _||R?x+(u(A)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):x+"m\u011bs\xedci";case"y":return _||R?"rok":"rokem";case"yy":return _||R?x+(u(A)?"roky":"let"):x+"lety"}}e.defineLocale("cs",{months:n,monthsShort:o,monthsRegex:l,monthsShortRegex:l,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:d,ss:d,m:d,mm:d,h:d,hh:d,d,dd:d,M:d,MM:d,y:d,yy:d},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(16676))},70765:function(he,y,i){
//! moment.js locale configuration
//! locale : Chuvash [cv]
//! author : Anatoly Mironov : https://github.com/mirontoli
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(o){return o+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(o)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(o)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(i(16676))},99172:function(he,y,i){
//! moment.js locale configuration
//! locale : Welsh [cy]
//! author : Robert Allen : https://github.com/robgallen
//! author : https://github.com/ryangreaves
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(o){var l="";return o>20?l=40===o||50===o||60===o||80===o||100===o?"fed":"ain":o>0&&(l=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][o]),o+l},week:{dow:1,doy:4}})}(i(16676))},20605:function(he,y,i){
//! moment.js locale configuration
//! locale : Danish [da]
//! author : Ulrik Nielsen : https://github.com/mrbase
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(16676))},93395:function(he,y,i){
//! moment.js locale configuration
//! locale : German (Austria) [de-at]
//! author : lluchs : https://github.com/lluchs
//! author: Menelion Elensúle: https://github.com/Oire
//! author : Martin Groller : https://github.com/MadMG
//! author : Mikolaj Dadela : https://github.com/mik01aj
!function(e){"use strict";
//! moment.js locale configuration
function n(a,l,u,d){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[a+" Tage",a+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[a+" Monate",a+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[a+" Jahre",a+" Jahren"]};return l?s[u][0]:s[u][1]}e.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(16676))},99835:function(he,y,i){
//! moment.js locale configuration
//! locale : German (Switzerland) [de-ch]
//! author : sschueller : https://github.com/sschueller
!function(e){"use strict";
//! moment.js locale configuration
function n(a,l,u,d){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[a+" Tage",a+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[a+" Monate",a+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[a+" Jahre",a+" Jahren"]};return l?s[u][0]:s[u][1]}e.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(16676))},94013:function(he,y,i){
//! moment.js locale configuration
//! locale : German [de]
//! author : lluchs : https://github.com/lluchs
//! author: Menelion Elensúle: https://github.com/Oire
//! author : Mikolaj Dadela : https://github.com/mik01aj
!function(e){"use strict";
//! moment.js locale configuration
function n(a,l,u,d){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[a+" Tage",a+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[a+" Monate",a+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[a+" Jahre",a+" Jahren"]};return l?s[u][0]:s[u][1]}e.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(16676))},14570:function(he,y,i){
//! moment.js locale configuration
//! locale : Maldivian [dv]
//! author : Jawish Hameed : https://github.com/jawish
!function(e){"use strict";
//! moment.js locale configuration
var n=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],o=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];e.defineLocale("dv",{months:n,monthsShort:n,weekdays:o,weekdaysShort:o,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(l){return"\u0789\u078a"===l},meridiem:function(l,u,d){return l<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(l){return l.replace(/\u060c/g,",")},postformat:function(l){return l.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(i(16676))},31859:function(he,y,i){
//! moment.js locale configuration
//! locale : Greek [el]
//! author : Aggelos Karalias : https://github.com/mehiel
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(a,l){return a?"string"==typeof l&&/D/.test(l.substring(0,l.indexOf("MMMM")))?this._monthsGenitiveEl[a.month()]:this._monthsNominativeEl[a.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(a,l,u){return a>11?u?"\u03bc\u03bc":"\u039c\u039c":u?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(a){return"\u03bc"===(a+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(a,l){var u=this._calendarEl[a],d=l&&l.hours();return function n(a){return typeof Function<"u"&&a instanceof Function||"[object Function]"===Object.prototype.toString.call(a)}(u)&&(u=u.apply(l)),u.replace("{}",d%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(i(16676))},55785:function(he,y,i){
//! moment.js locale configuration
//! locale : English (Australia) [en-au]
//! author : Jared Morse : https://github.com/jarcoal
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(o){var a=o%10;return o+(1==~~(o%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:0,doy:4}})}(i(16676))},83792:function(he,y,i){
//! moment.js locale configuration
//! locale : English (Canada) [en-ca]
//! author : Jonathan Abourbih : https://github.com/jonbca
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(o){var a=o%10;return o+(1==~~(o%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")}})}(i(16676))},57651:function(he,y,i){
//! moment.js locale configuration
//! locale : English (United Kingdom) [en-gb]
//! author : Chris Gedrim : https://github.com/chrisgedrim
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(o){var a=o%10;return o+(1==~~(o%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}})}(i(16676))},81929:function(he,y,i){
//! moment.js locale configuration
//! locale : English (Ireland) [en-ie]
//! author : Chris Cartlidge : https://github.com/chriscartlidge
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(o){var a=o%10;return o+(1==~~(o%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}})}(i(16676))},19818:function(he,y,i){
//! moment.js locale configuration
//! locale : English (Israel) [en-il]
//! author : Chris Gedrim : https://github.com/chrisgedrim
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(o){var a=o%10;return o+(1==~~(o%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")}})}(i(16676))},6612:function(he,y,i){
//! moment.js locale configuration
//! locale : English (India) [en-in]
//! author : Jatin Agrawal : https://github.com/jatinag22
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(o){var a=o%10;return o+(1==~~(o%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:0,doy:6}})}(i(16676))},24900:function(he,y,i){
//! moment.js locale configuration
//! locale : English (New Zealand) [en-nz]
//! author : Luke McGregor : https://github.com/lukemcgregor
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(o){var a=o%10;return o+(1==~~(o%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}})}(i(16676))},72721:function(he,y,i){
//! moment.js locale configuration
//! locale : English (Singapore) [en-sg]
//! author : Matthew Castrillon-Madrigal : https://github.com/techdimension
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(o){var a=o%10;return o+(1==~~(o%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}})}(i(16676))},95159:function(he,y,i){
//! moment.js locale configuration
//! locale : Esperanto [eo]
//! author : Colin Dean : https://github.com/colindean
//! author : Mia Nordentoft Imperatori : https://github.com/miestasmia
//! comment : miestasmia corrected the translation by colindean
//! comment : Vivakvo corrected the translation by colindean and miestasmia
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(o){return"p"===o.charAt(0).toLowerCase()},meridiem:function(o,a,l){return o>11?l?"p.t.m.":"P.T.M.":l?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(i(16676))},11780:function(he,y,i){
//! moment.js locale configuration
//! locale : Spanish (Dominican Republic) [es-do]
!function(e){"use strict";
//! moment.js locale configuration
var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),o="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],l=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(d,s){return d?/-MMM-/.test(s)?o[d.month()]:n[d.month()]:n},monthsRegex:l,monthsShortRegex:l,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(16676))},23468:function(he,y,i){
//! moment.js locale configuration
//! locale : Spanish (Mexico) [es-mx]
//! author : JC Franco : https://github.com/jcfranco
!function(e){"use strict";
//! moment.js locale configuration
var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),o="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],l=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(d,s){return d?/-MMM-/.test(s)?o[d.month()]:n[d.month()]:n},monthsRegex:l,monthsShortRegex:l,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(i(16676))},44938:function(he,y,i){
//! moment.js locale configuration
//! locale : Spanish (United States) [es-us]
//! author : bustta : https://github.com/bustta
//! author : chrisrodz : https://github.com/chrisrodz
!function(e){"use strict";
//! moment.js locale configuration
var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),o="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],l=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(d,s){return d?/-MMM-/.test(s)?o[d.month()]:n[d.month()]:n},monthsRegex:l,monthsShortRegex:l,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(i(16676))},21954:function(he,y,i){
//! moment.js locale configuration
//! locale : Spanish [es]
//! author : Julio Napurí : https://github.com/julionc
!function(e){"use strict";
//! moment.js locale configuration
var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),o="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],l=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(d,s){return d?/-MMM-/.test(s)?o[d.month()]:n[d.month()]:n},monthsRegex:l,monthsShortRegex:l,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(i(16676))},11453:function(he,y,i){
//! moment.js locale configuration
//! locale : Estonian [et]
//! author : Henry Kehlmann : https://github.com/madhenry
//! improvements : Illimar Tambek : https://github.com/ragulka
!function(e){"use strict";
//! moment.js locale configuration
function n(a,l,u,d){var s={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[a+"sekundi",a+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[a+" minuti",a+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[a+" tunni",a+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[a+" kuu",a+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[a+" aasta",a+" aastat"]};return l?s[u][2]?s[u][2]:s[u][1]:d?s[u][0]:s[u][1]}e.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:"%d p\xe4eva",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(16676))},44697:function(he,y,i){
//! moment.js locale configuration
//! locale : Basque [eu]
//! author : Eneko Illarramendi : https://github.com/eillarra
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(16676))},52900:function(he,y,i){
//! moment.js locale configuration
//! locale : Persian [fa]
//! author : Ebrahim Byagowi : https://github.com/ebraminio
!function(e){"use strict";
//! moment.js locale configuration
var n={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},o={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};e.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(l){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(l)},meridiem:function(l,u,d){return l<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(l){return l.replace(/[\u06f0-\u06f9]/g,function(u){return o[u]}).replace(/\u060c/g,",")},postformat:function(l){return l.replace(/\d/g,function(u){return n[u]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(i(16676))},49775:function(he,y,i){
//! moment.js locale configuration
//! locale : Finnish [fi]
//! author : Tarmo Aidantausta : https://github.com/bleadof
!function(e){"use strict";
//! moment.js locale configuration
var n="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),o=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",n[7],n[8],n[9]];function a(d,s,A,_){var C="";switch(A){case"s":return _?"muutaman sekunnin":"muutama sekunti";case"ss":C=_?"sekunnin":"sekuntia";break;case"m":return _?"minuutin":"minuutti";case"mm":C=_?"minuutin":"minuuttia";break;case"h":return _?"tunnin":"tunti";case"hh":C=_?"tunnin":"tuntia";break;case"d":return _?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":C=_?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return _?"kuukauden":"kuukausi";case"MM":C=_?"kuukauden":"kuukautta";break;case"y":return _?"vuoden":"vuosi";case"yy":C=_?"vuoden":"vuotta"}return function l(d,s){return d<10?s?o[d]:n[d]:d}(d,_)+" "+C}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(16676))},64282:function(he,y,i){
//! moment.js locale configuration
//! locale : Filipino [fil]
//! author : Dan Hagman : https://github.com/hagmandan
//! author : Matthew Co : https://github.com/matthewdeeco
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(o){return o},week:{dow:1,doy:4}})}(i(16676))},84236:function(he,y,i){
//! moment.js locale configuration
//! locale : Faroese [fo]
//! author : Ragnar Johannesen : https://github.com/ragnar123
//! author : Kristian Sakarisson : https://github.com/sakarisson
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(16676))},92830:function(he,y,i){
//! moment.js locale configuration
//! locale : French (Canada) [fr-ca]
//! author : Jonathan Abourbih : https://github.com/jonbca
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(o,a){switch(a){default:case"M":case"Q":case"D":case"DDD":case"d":return o+(1===o?"er":"e");case"w":case"W":return o+(1===o?"re":"e")}}})}(i(16676))},21412:function(he,y,i){
//! moment.js locale configuration
//! locale : French (Switzerland) [fr-ch]
//! author : Gaspard Bucher : https://github.com/gaspard
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(o,a){switch(a){default:case"M":case"Q":case"D":case"DDD":case"d":return o+(1===o?"er":"e");case"w":case"W":return o+(1===o?"re":"e")}},week:{dow:1,doy:4}})}(i(16676))},89361:function(he,y,i){
//! moment.js locale configuration
//! locale : French [fr]
//! author : John Fischer : https://github.com/jfroffice
!function(e){"use strict";
//! moment.js locale configuration
var a=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,l=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];e.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:l,longMonthsParse:l,shortMonthsParse:l,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(d,s){switch(s){case"D":return d+(1===d?"er":"");default:case"M":case"Q":case"DDD":case"d":return d+(1===d?"er":"e");case"w":case"W":return d+(1===d?"re":"e")}},week:{dow:1,doy:4}})}(i(16676))},66984:function(he,y,i){
//! moment.js locale configuration
//! locale : Frisian [fy]
//! author : Robin van der Vliet : https://github.com/robin0van0der0v
!function(e){"use strict";
//! moment.js locale configuration
var n="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),o="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(l,u){return l?/-MMM-/.test(u)?o[l.month()]:n[l.month()]:n},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(l){return l+(1===l||8===l||l>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(16676))},93961:function(he,y,i){
//! moment.js locale configuration
//! locale : Irish or Irish Gaelic [ga]
//! author : André Silva : https://github.com/askpt
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(s){return s+(1===s?"d":s%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(16676))},78849:function(he,y,i){
//! moment.js locale configuration
//! locale : Scottish Gaelic [gd]
//! author : Jon Ashdown : https://github.com/jonashdown
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(s){return s+(1===s?"d":s%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(16676))},34273:function(he,y,i){
//! moment.js locale configuration
//! locale : Galician [gl]
//! author : Juan G. Hurtado : https://github.com/juanghurtado
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(o){return 0===o.indexOf("un")?"n"+o:"en "+o},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(16676))},40623:function(he,y,i){
//! moment.js locale configuration
//! locale : Konkani Devanagari script [gom-deva]
//! author : The Discoverer : https://github.com/WikiDiscoverer
!function(e){"use strict";
//! moment.js locale configuration
function n(a,l,u,d){var s={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[a+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",a+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[a+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",a+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[a+" \u0935\u0930\u093e\u0902\u0928\u0940",a+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[a+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",a+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[a+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",a+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[a+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",a+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return d?s[u][0]:s[u][1]}e.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(a,l){return"D"===l?a+"\u0935\u0947\u0930":a},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(a,l){return 12===a&&(a=0),"\u0930\u093e\u0924\u0940"===l?a<4?a:a+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===l?a:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===l?a>12?a:a+12:"\u0938\u093e\u0902\u091c\u0947"===l?a+12:void 0},meridiem:function(a,l,u){return a<4?"\u0930\u093e\u0924\u0940":a<12?"\u0938\u0915\u093e\u0933\u0940\u0902":a<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":a<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(i(16676))},62696:function(he,y,i){
//! moment.js locale configuration
//! locale : Konkani Latin script [gom-latn]
//! author : The Discoverer : https://github.com/WikiDiscoverer
!function(e){"use strict";
//! moment.js locale configuration
function n(a,l,u,d){var s={s:["thoddea sekondamni","thodde sekond"],ss:[a+" sekondamni",a+" sekond"],m:["eka mintan","ek minut"],mm:[a+" mintamni",a+" mintam"],h:["eka voran","ek vor"],hh:[a+" voramni",a+" voram"],d:["eka disan","ek dis"],dd:[a+" disamni",a+" dis"],M:["eka mhoinean","ek mhoino"],MM:[a+" mhoineamni",a+" mhoine"],y:["eka vorsan","ek voros"],yy:[a+" vorsamni",a+" vorsam"]};return d?s[u][0]:s[u][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(a,l){return"D"===l?a+"er":a},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(a,l){return 12===a&&(a=0),"rati"===l?a<4?a:a+12:"sokallim"===l?a:"donparam"===l?a>12?a:a+12:"sanje"===l?a+12:void 0},meridiem:function(a,l,u){return a<4?"rati":a<12?"sokallim":a<16?"donparam":a<20?"sanje":"rati"}})}(i(16676))},66928:function(he,y,i){
//! moment.js locale configuration
//! locale : Gujarati [gu]
//! author : Kaushik Thanki : https://github.com/Kaushik1987
!function(e){"use strict";
//! moment.js locale configuration
var n={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},o={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};e.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(l){return l.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(u){return o[u]})},postformat:function(l){return l.replace(/\d/g,function(u){return n[u]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(l,u){return 12===l&&(l=0),"\u0ab0\u0abe\u0aa4"===u?l<4?l:l+12:"\u0ab8\u0ab5\u0abe\u0ab0"===u?l:"\u0aac\u0aaa\u0acb\u0ab0"===u?l>=10?l:l+12:"\u0ab8\u0abe\u0a82\u0a9c"===u?l+12:void 0},meridiem:function(l,u,d){return l<4?"\u0ab0\u0abe\u0aa4":l<10?"\u0ab8\u0ab5\u0abe\u0ab0":l<17?"\u0aac\u0aaa\u0acb\u0ab0":l<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(i(16676))},24804:function(he,y,i){
//! moment.js locale configuration
//! locale : Hebrew [he]
//! author : Tomer Cohen : https://github.com/tomer
//! author : Moshe Simantov : https://github.com/DevelopmentIL
//! author : Tal Ater : https://github.com/TalAter
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(o){return 2===o?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":o+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(o){return 2===o?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":o+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(o){return 2===o?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":o+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(o){return 2===o?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":o%10==0&&10!==o?o+" \u05e9\u05e0\u05d4":o+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(o){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(o)},meridiem:function(o,a,l){return o<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":o<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":o<12?l?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":o<18?l?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(i(16676))},23015:function(he,y,i){
//! moment.js locale configuration
//! locale : Hindi [hi]
//! author : Mayank Singhal : https://github.com/mayanksinghal
!function(e){"use strict";
//! moment.js locale configuration
var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},o={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},a=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];e.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:a,longMonthsParse:a,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(d){return d.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(s){return o[s]})},postformat:function(d){return d.replace(/\d/g,function(s){return n[s]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(d,s){return 12===d&&(d=0),"\u0930\u093e\u0924"===s?d<4?d:d+12:"\u0938\u0941\u092c\u0939"===s?d:"\u0926\u094b\u092a\u0939\u0930"===s?d>=10?d:d+12:"\u0936\u093e\u092e"===s?d+12:void 0},meridiem:function(d,s,A){return d<4?"\u0930\u093e\u0924":d<10?"\u0938\u0941\u092c\u0939":d<17?"\u0926\u094b\u092a\u0939\u0930":d<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(i(16676))},17134:function(he,y,i){
//! moment.js locale configuration
//! locale : Croatian [hr]
//! author : Bojan Marković : https://github.com/bmarkovic
!function(e){"use strict";
//! moment.js locale configuration
function n(a,l,u){var d=a+" ";switch(u){case"ss":return d+(1===a?"sekunda":2===a||3===a||4===a?"sekunde":"sekundi");case"m":return l?"jedna minuta":"jedne minute";case"mm":return d+(1===a?"minuta":2===a||3===a||4===a?"minute":"minuta");case"h":return l?"jedan sat":"jednog sata";case"hh":return d+(1===a?"sat":2===a||3===a||4===a?"sata":"sati");case"dd":return d+(1===a?"dan":"dana");case"MM":return d+(1===a?"mjesec":2===a||3===a||4===a?"mjeseca":"mjeseci");case"yy":return d+(1===a?"godina":2===a||3===a||4===a?"godine":"godina")}}e.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:n,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(16676))},50670:function(he,y,i){
//! moment.js locale configuration
//! locale : Hungarian [hu]
//! author : Adam Brunner : https://github.com/adambrunner
//! author : Peter Viszt  : https://github.com/passatgt
!function(e){"use strict";
//! moment.js locale configuration
var n="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function o(u,d,s,A){var _=u;switch(s){case"s":return A||d?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return _+(A||d)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(A||d?" perc":" perce");case"mm":return _+(A||d?" perc":" perce");case"h":return"egy"+(A||d?" \xf3ra":" \xf3r\xe1ja");case"hh":return _+(A||d?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(A||d?" nap":" napja");case"dd":return _+(A||d?" nap":" napja");case"M":return"egy"+(A||d?" h\xf3nap":" h\xf3napja");case"MM":return _+(A||d?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(A||d?" \xe9v":" \xe9ve");case"yy":return _+(A||d?" \xe9v":" \xe9ve")}return""}function a(u){return(u?"":"[m\xfalt] ")+"["+n[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(u){return"u"===u.charAt(1).toLowerCase()},meridiem:function(u,d,s){return u<12?!0===s?"de":"DE":!0===s?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return a.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return a.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(16676))},4523:function(he,y,i){
//! moment.js locale configuration
//! locale : Armenian [hy-am]
//! author : Armendarabyan : https://github.com/armendarabyan
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(o){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(o)},meridiem:function(o){return o<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":o<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":o<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(o,a){switch(a){case"DDD":case"w":case"W":case"DDDo":return 1===o?o+"-\u056b\u0576":o+"-\u0580\u0564";default:return o}},week:{dow:1,doy:7}})}(i(16676))},99233:function(he,y,i){
//! moment.js locale configuration
//! locale : Indonesian [id]
//! author : Mohammad Satrio Utomo : https://github.com/tyok
//! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(o,a){return 12===o&&(o=0),"pagi"===a?o:"siang"===a?o>=11?o:o+12:"sore"===a||"malam"===a?o+12:void 0},meridiem:function(o,a,l){return o<11?"pagi":o<15?"siang":o<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(i(16676))},94693:function(he,y,i){
//! moment.js locale configuration
//! locale : Icelandic [is]
//! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
!function(e){"use strict";
//! moment.js locale configuration
function n(l){return l%100==11||l%10!=1}function o(l,u,d,s){var A=l+" ";switch(d){case"s":return u||s?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return n(l)?A+(u||s?"sek\xfandur":"sek\xfandum"):A+"sek\xfanda";case"m":return u?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return n(l)?A+(u||s?"m\xedn\xfatur":"m\xedn\xfatum"):u?A+"m\xedn\xfata":A+"m\xedn\xfatu";case"hh":return n(l)?A+(u||s?"klukkustundir":"klukkustundum"):A+"klukkustund";case"d":return u?"dagur":s?"dag":"degi";case"dd":return n(l)?u?A+"dagar":A+(s?"daga":"d\xf6gum"):u?A+"dagur":A+(s?"dag":"degi");case"M":return u?"m\xe1nu\xf0ur":s?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return n(l)?u?A+"m\xe1nu\xf0ir":A+(s?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):u?A+"m\xe1nu\xf0ur":A+(s?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return u||s?"\xe1r":"\xe1ri";case"yy":return n(l)?A+(u||s?"\xe1r":"\xe1rum"):A+(u||s?"\xe1r":"\xe1ri")}}e.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:o,ss:o,m:o,mm:o,h:"klukkustund",hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(16676))},78118:function(he,y,i){
//! moment.js locale configuration
//! locale : Italian (Switzerland) [it-ch]
//! author : xfh : https://github.com/xfh
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(o){return(/^[0-9].+$/.test(o)?"tra":"in")+" "+o},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(16676))},63936:function(he,y,i){
//! moment.js locale configuration
//! locale : Italian [it]
//! author : Lorenzo : https://github.com/aliem
//! author: Mattia Larentis: https://github.com/nostalgiaz
//! author: Marco : https://github.com/Manfre98
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(16676))},86871:function(he,y,i){
//! moment.js locale configuration
//! locale : Japanese [ja]
//! author : LI Long : https://github.com/baryon
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(o,a){return"\u5143"===a[1]?1:parseInt(a[1]||o,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(o){return"\u5348\u5f8c"===o},meridiem:function(o,a,l){return o<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(o){return o.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(o){return this.week()!==o.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(o,a){switch(a){case"y":return 1===o?"\u5143\u5e74":o+"\u5e74";case"d":case"D":case"DDD":return o+"\u65e5";default:return o}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(i(16676))},68710:function(he,y,i){
//! moment.js locale configuration
//! locale : Javanese [jv]
//! author : Rony Lantip : https://github.com/lantip
//! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(o,a){return 12===o&&(o=0),"enjing"===a?o:"siyang"===a?o>=11?o:o+12:"sonten"===a||"ndalu"===a?o+12:void 0},meridiem:function(o,a,l){return o<11?"enjing":o<15?"siyang":o<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(i(16676))},17125:function(he,y,i){
//! moment.js locale configuration
//! locale : Georgian [ka]
//! author : Irakli Janiashvili : https://github.com/IrakliJani
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(o){return o.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(a,l,u){return"\u10d8"===u?l+"\u10e8\u10d8":l+u+"\u10e8\u10d8"})},past:function(o){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(o)?o.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(o)?o.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):o},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(o){return 0===o?o:1===o?o+"-\u10da\u10d8":o<20||o<=100&&o%20==0||o%100==0?"\u10db\u10d4-"+o:o+"-\u10d4"},week:{dow:1,doy:7}})}(i(16676))},82461:function(he,y,i){
//! moment.js locale configuration
//! locale : Kazakh [kk]
//! authors : Nurlan Rakhimzhanov : https://github.com/nurlan
!function(e){"use strict";
//! moment.js locale configuration
var n={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};e.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(a){return a+(n[a]||n[a%10]||n[a>=100?100:null])},week:{dow:1,doy:7}})}(i(16676))},77399:function(he,y,i){
//! moment.js locale configuration
//! locale : Cambodian [km]
//! author : Kruy Vanna : https://github.com/kruyvanna
!function(e){"use strict";
//! moment.js locale configuration
var n={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},o={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};e.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(l){return"\u179b\u17d2\u1784\u17b6\u1785"===l},meridiem:function(l,u,d){return l<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(l){return l.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(u){return o[u]})},postformat:function(l){return l.replace(/\d/g,function(u){return n[u]})},week:{dow:1,doy:4}})}(i(16676))},38720:function(he,y,i){
//! moment.js locale configuration
//! locale : Kannada [kn]
//! author : Rajeev Naik : https://github.com/rajeevnaikte
!function(e){"use strict";
//! moment.js locale configuration
var n={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},o={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};e.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(l){return l.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(u){return o[u]})},postformat:function(l){return l.replace(/\d/g,function(u){return n[u]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(l,u){return 12===l&&(l=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===u?l<4?l:l+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===u?l:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===u?l>=10?l:l+12:"\u0cb8\u0c82\u0c9c\u0cc6"===u?l+12:void 0},meridiem:function(l,u,d){return l<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":l<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":l<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":l<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(l){return l+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(i(16676))},85306:function(he,y,i){
//! moment.js locale configuration
//! locale : Korean [ko]
//! author : Kyungwook, Park : https://github.com/kyungw00k
//! author : Jeeeyul Lee <jeeeyul@gmail.com>
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(o,a){switch(a){case"d":case"D":case"DDD":return o+"\uc77c";case"M":return o+"\uc6d4";case"w":case"W":return o+"\uc8fc";default:return o}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(o){return"\uc624\ud6c4"===o},meridiem:function(o,a,l){return o<12?"\uc624\uc804":"\uc624\ud6c4"}})}(i(16676))},64852:function(he,y,i){
//! moment.js locale configuration
//! locale : Northern Kurdish [ku-kmr]
//! authors : Mazlum Özdogan : https://github.com/mergehez
!function(e){"use strict";
//! moment.js locale configuration
function n(l,u,d,s){var A={s:["\xe7end san\xeeye","\xe7end san\xeeyeyan"],ss:[l+" san\xeeye",l+" san\xeeyeyan"],m:["deq\xeeqeyek","deq\xeeqeyek\xea"],mm:[l+" deq\xeeqe",l+" deq\xeeqeyan"],h:["saetek","saetek\xea"],hh:[l+" saet",l+" saetan"],d:["rojek","rojek\xea"],dd:[l+" roj",l+" rojan"],w:["hefteyek","hefteyek\xea"],ww:[l+" hefte",l+" hefteyan"],M:["mehek","mehek\xea"],MM:[l+" meh",l+" mehan"],y:["salek","salek\xea"],yy:[l+" sal",l+" salan"]};return u?A[d][0]:A[d][1]}e.defineLocale("ku-kmr",{months:"R\xeabendan_Sibat_Adar_N\xeesan_Gulan_Hez\xeeran_T\xeermeh_Tebax_\xcelon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"R\xeab_Sib_Ada_N\xees_Gul_Hez_T\xeer_Teb_\xcelo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yek\u015fem_Du\u015fem_S\xea\u015fem_\xc7ar\u015fem_P\xeanc\u015fem_\xcen_\u015eem\xee".split("_"),weekdaysShort:"Yek_Du_S\xea_\xc7ar_P\xean_\xcen_\u015eem".split("_"),weekdaysMin:"Ye_Du_S\xea_\xc7a_P\xea_\xcen_\u015ee".split("_"),meridiem:function(l,u,d){return l<12?d?"bn":"BN":d?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[\xcero di saet] LT [de]",nextDay:"[Sib\xea di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a bor\xee di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"ber\xee %s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,w:n,ww:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(?:y\xea|\xea|\.)/,ordinal:function(l,u){var d=u.toLowerCase();return d.includes("w")||d.includes("m")?l+".":l+function o(l){var u=(l=""+l).substring(l.length-1),d=l.length>1?l.substring(l.length-2):"";return 12==d||13==d||"2"!=u&&"3"!=u&&"50"!=d&&"70"!=u&&"80"!=u?"\xea":"y\xea"}(l)},week:{dow:1,doy:4}})}(i(16676))},82995:function(he,y,i){
//! moment.js locale configuration
//! locale : Kurdish [ku]
//! author : Shahram Mebashar : https://github.com/ShahramMebashar
!function(e){"use strict";
//! moment.js locale configuration
var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},o={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},a=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];e.defineLocale("ku",{months:a,monthsShort:a,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(u){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(u)},meridiem:function(u,d,s){return u<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(u){return u.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(d){return o[d]}).replace(/\u060c/g,",")},postformat:function(u){return u.replace(/\d/g,function(d){return n[d]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(16676))},8779:function(he,y,i){
//! moment.js locale configuration
//! locale : Kyrgyz [ky]
//! author : Chyngyz Arystan uulu : https://github.com/chyngyz
!function(e){"use strict";
//! moment.js locale configuration
var n={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};e.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(a){return a+(n[a]||n[a%10]||n[a>=100?100:null])},week:{dow:1,doy:7}})}(i(16676))},62057:function(he,y,i){
//! moment.js locale configuration
//! locale : Luxembourgish [lb]
//! author : mweimerskirch : https://github.com/mweimerskirch
//! author : David Raison : https://github.com/kwisatz
!function(e){"use strict";
//! moment.js locale configuration
function n(d,s,A,_){var C={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return s?C[A][0]:C[A][1]}function l(d){if(d=parseInt(d,10),isNaN(d))return!1;if(d<0)return!0;if(d<10)return 4<=d&&d<=7;if(d<100){var s=d%10;return l(0===s?d/10:s)}if(d<1e4){for(;d>=10;)d/=10;return l(d)}return l(d/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function o(d){return l(d.substr(0,d.indexOf(" ")))?"a "+d:"an "+d},past:function a(d){return l(d.substr(0,d.indexOf(" ")))?"viru "+d:"virun "+d},s:"e puer Sekonnen",ss:"%d Sekonnen",m:n,mm:"%d Minutten",h:n,hh:"%d Stonnen",d:n,dd:"%d Deeg",M:n,MM:"%d M\xe9int",y:n,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(16676))},17192:function(he,y,i){
//! moment.js locale configuration
//! locale : Lao [lo]
//! author : Ryan Hart : https://github.com/ryanhart2
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(o){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===o},meridiem:function(o,a,l){return o<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(o){return"\u0e97\u0eb5\u0ec8"+o}})}(i(16676))},15430:function(he,y,i){
//! moment.js locale configuration
//! locale : Lithuanian [lt]
//! author : Mindaugas Mozūras : https://github.com/mmozuras
!function(e){"use strict";
//! moment.js locale configuration
var n={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function a(A,_,C,R){return _?u(C)[0]:R?u(C)[1]:u(C)[2]}function l(A){return A%10==0||A>10&&A<20}function u(A){return n[A].split("_")}function d(A,_,C,R){var x=A+" ";return 1===A?x+a(0,_,C[0],R):_?x+(l(A)?u(C)[1]:u(C)[0]):R?x+u(C)[1]:x+(l(A)?u(C)[1]:u(C)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function o(A,_,C,R){return _?"kelios sekund\u0117s":R?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:d,m:a,mm:d,h:a,hh:d,d:a,dd:d,M:a,MM:d,y:a,yy:d},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(A){return A+"-oji"},week:{dow:1,doy:4}})}(i(16676))},53363:function(he,y,i){
//! moment.js locale configuration
//! locale : Latvian [lv]
//! author : Kristaps Karlsons : https://github.com/skakri
//! author : Jānis Elmeris : https://github.com/JanisE
!function(e){"use strict";
//! moment.js locale configuration
var n={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function o(s,A,_){return _?A%10==1&&A%100!=11?s[2]:s[3]:A%10==1&&A%100!=11?s[0]:s[1]}function a(s,A,_){return s+" "+o(n[_],s,A)}function l(s,A,_){return o(n[_],s,A)}e.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function u(s,A){return A?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:a,m:l,mm:a,h:l,hh:a,d:l,dd:a,M:l,MM:a,y:l,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(16676))},72939:function(he,y,i){
//! moment.js locale configuration
//! locale : Montenegrin [me]
//! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
!function(e){"use strict";
//! moment.js locale configuration
var n={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(a,l){return 1===a?l[0]:a>=2&&a<=4?l[1]:l[2]},translate:function(a,l,u){var d=n.words[u];return 1===u.length?l?d[0]:d[1]:a+" "+n.correctGrammaticalCase(a,d)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:"dan",dd:n.translate,M:"mjesec",MM:n.translate,y:"godinu",yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(16676))},38212:function(he,y,i){
//! moment.js locale configuration
//! locale : Maori [mi]
//! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(16676))},69718:function(he,y,i){
//! moment.js locale configuration
//! locale : Macedonian [mk]
//! author : Borislav Mickov : https://github.com/B0k0
//! author : Sashko Todorov : https://github.com/bkyceh
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(o){var a=o%10,l=o%100;return 0===o?o+"-\u0435\u0432":0===l?o+"-\u0435\u043d":l>10&&l<20?o+"-\u0442\u0438":1===a?o+"-\u0432\u0438":2===a?o+"-\u0440\u0438":7===a||8===a?o+"-\u043c\u0438":o+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i(16676))},50561:function(he,y,i){
//! moment.js locale configuration
//! locale : Malayalam [ml]
//! author : Floyd Pink : https://github.com/floydpink
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(o,a){return 12===o&&(o=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===a&&o>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===a||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===a?o+12:o},meridiem:function(o,a,l){return o<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":o<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":o<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":o<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(i(16676))},68929:function(he,y,i){
//! moment.js locale configuration
//! locale : Mongolian [mn]
//! author : Javkhlantugs Nyamdorj : https://github.com/javkhaanj7
!function(e){"use strict";
//! moment.js locale configuration
function n(a,l,u,d){switch(u){case"s":return l?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return a+(l?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return a+(l?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return a+(l?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return a+(l?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return a+(l?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return a+(l?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return a}}e.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(a){return"\u04ae\u0425"===a},meridiem:function(a,l,u){return a<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(a,l){switch(l){case"d":case"D":case"DDD":return a+" \u04e9\u0434\u04e9\u0440";default:return a}}})}(i(16676))},84880:function(he,y,i){
//! moment.js locale configuration
//! locale : Marathi [mr]
//! author : Harshad Kale : https://github.com/kalehv
//! author : Vivek Athalye : https://github.com/vnathalye
!function(e){"use strict";
//! moment.js locale configuration
var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},o={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function a(u,d,s,A){var _="";if(d)switch(s){case"s":_="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":_="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":_="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":_="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":_="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":_="%d \u0924\u093e\u0938";break;case"d":_="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":_="%d \u0926\u093f\u0935\u0938";break;case"M":_="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":_="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":_="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":_="%d \u0935\u0930\u094d\u0937\u0947"}else switch(s){case"s":_="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":_="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":_="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":_="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":_="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":_="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":_="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":_="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":_="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":_="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":_="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":_="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return _.replace(/%d/i,u)}e.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},preparse:function(u){return u.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(d){return o[d]})},postformat:function(u){return u.replace(/\d/g,function(d){return n[d]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(u,d){return 12===u&&(u=0),"\u092a\u0939\u093e\u091f\u0947"===d||"\u0938\u0915\u093e\u0933\u0940"===d?u:"\u0926\u0941\u092a\u093e\u0930\u0940"===d||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===d||"\u0930\u093e\u0924\u094d\u0930\u0940"===d?u>=12?u:u+12:void 0},meridiem:function(u,d,s){return u>=0&&u<6?"\u092a\u0939\u093e\u091f\u0947":u<12?"\u0938\u0915\u093e\u0933\u0940":u<17?"\u0926\u0941\u092a\u093e\u0930\u0940":u<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(i(16676))},42074:function(he,y,i){
//! moment.js locale configuration
//! locale : Malay [ms-my]
//! note : DEPRECATED, the correct one is [ms]
//! author : Weldan Jamili : https://github.com/weldan
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(o,a){return 12===o&&(o=0),"pagi"===a?o:"tengahari"===a?o>=11?o:o+12:"petang"===a||"malam"===a?o+12:void 0},meridiem:function(o,a,l){return o<11?"pagi":o<15?"tengahari":o<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(i(16676))},63193:function(he,y,i){
//! moment.js locale configuration
//! locale : Malay [ms]
//! author : Weldan Jamili : https://github.com/weldan
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(o,a){return 12===o&&(o=0),"pagi"===a?o:"tengahari"===a?o>=11?o:o+12:"petang"===a||"malam"===a?o+12:void 0},meridiem:function(o,a,l){return o<11?"pagi":o<15?"tengahari":o<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(i(16676))},54082:function(he,y,i){
//! moment.js locale configuration
//! locale : Maltese (Malta) [mt]
//! author : Alessandro Maruccia : https://github.com/alesma
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(16676))},82261:function(he,y,i){
//! moment.js locale configuration
//! locale : Burmese [my]
//! author : Squar team, mysquar.com
//! author : David Rossellat : https://github.com/gholadr
//! author : Tin Aung Lin : https://github.com/thanyawzinmin
!function(e){"use strict";
//! moment.js locale configuration
var n={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},o={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};e.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(l){return l.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(u){return o[u]})},postformat:function(l){return l.replace(/\d/g,function(u){return n[u]})},week:{dow:1,doy:4}})}(i(16676))},15273:function(he,y,i){
//! moment.js locale configuration
//! locale : Norwegian Bokmål [nb]
//! authors : Espen Hovlandsdal : https://github.com/rexxars
//!           Sigurd Gartmann : https://github.com/sigurdga
//!           Stephen Ramthun : https://github.com/stephenramthun
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"\xe9n time",hh:"%d timer",d:"\xe9n dag",dd:"%d dager",w:"\xe9n uke",ww:"%d uker",M:"\xe9n m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(16676))},19874:function(he,y,i){
//! moment.js locale configuration
//! locale : Nepalese [ne]
//! author : suvash : https://github.com/suvash
!function(e){"use strict";
//! moment.js locale configuration
var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},o={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(l){return l.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(u){return o[u]})},postformat:function(l){return l.replace(/\d/g,function(u){return n[u]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(l,u){return 12===l&&(l=0),"\u0930\u093e\u0924\u093f"===u?l<4?l:l+12:"\u092c\u093f\u0939\u093e\u0928"===u?l:"\u0926\u093f\u0909\u0901\u0938\u094b"===u?l>=10?l:l+12:"\u0938\u093e\u0901\u091d"===u?l+12:void 0},meridiem:function(l,u,d){return l<3?"\u0930\u093e\u0924\u093f":l<12?"\u092c\u093f\u0939\u093e\u0928":l<16?"\u0926\u093f\u0909\u0901\u0938\u094b":l<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(i(16676))},81484:function(he,y,i){
//! moment.js locale configuration
//! locale : Dutch (Belgium) [nl-be]
//! author : Joris Röling : https://github.com/jorisroling
//! author : Jacob Middag : https://github.com/middagj
!function(e){"use strict";
//! moment.js locale configuration
var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),o="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),a=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],l=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(d,s){return d?/-MMM-/.test(s)?o[d.month()]:n[d.month()]:n},monthsRegex:l,monthsShortRegex:l,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(d){return d+(1===d||8===d||d>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(16676))},51667:function(he,y,i){
//! moment.js locale configuration
//! locale : Dutch [nl]
//! author : Joris Röling : https://github.com/jorisroling
//! author : Jacob Middag : https://github.com/middagj
!function(e){"use strict";
//! moment.js locale configuration
var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),o="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),a=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],l=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(d,s){return d?/-MMM-/.test(s)?o[d.month()]:n[d.month()]:n},monthsRegex:l,monthsShortRegex:l,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(d){return d+(1===d||8===d||d>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(16676))},17262:function(he,y,i){
//! moment.js locale configuration
//! locale : Nynorsk [nn]
//! authors : https://github.com/mechuwind
//!           Stephen Ramthun : https://github.com/stephenramthun
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(16676))},19679:function(he,y,i){
//! moment.js locale configuration
//! locale : Occitan, lengadocian dialecte [oc-lnc]
//! author : Quentin PAGÈS : https://github.com/Quenty31
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(o,a){var l=1===o?"r":2===o?"n":3===o?"r":4===o?"t":"\xe8";return("w"===a||"W"===a)&&(l="a"),o+l},week:{dow:1,doy:4}})}(i(16676))},96830:function(he,y,i){
//! moment.js locale configuration
//! locale : Punjabi (India) [pa-in]
//! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit
!function(e){"use strict";
//! moment.js locale configuration
var n={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},o={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};e.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(l){return l.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(u){return o[u]})},postformat:function(l){return l.replace(/\d/g,function(u){return n[u]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(l,u){return 12===l&&(l=0),"\u0a30\u0a3e\u0a24"===u?l<4?l:l+12:"\u0a38\u0a35\u0a47\u0a30"===u?l:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===u?l>=10?l:l+12:"\u0a38\u0a3c\u0a3e\u0a2e"===u?l+12:void 0},meridiem:function(l,u,d){return l<4?"\u0a30\u0a3e\u0a24":l<10?"\u0a38\u0a35\u0a47\u0a30":l<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":l<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(i(16676))},93616:function(he,y,i){
//! moment.js locale configuration
//! locale : Polish [pl]
//! author : Rafal Hirsz : https://github.com/evoL
!function(e){"use strict";
//! moment.js locale configuration
var n="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),o="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),a=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function l(s){return s%10<5&&s%10>1&&~~(s/10)%10!=1}function u(s,A,_){var C=s+" ";switch(_){case"ss":return C+(l(s)?"sekundy":"sekund");case"m":return A?"minuta":"minut\u0119";case"mm":return C+(l(s)?"minuty":"minut");case"h":return A?"godzina":"godzin\u0119";case"hh":return C+(l(s)?"godziny":"godzin");case"ww":return C+(l(s)?"tygodnie":"tygodni");case"MM":return C+(l(s)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return C+(l(s)?"lata":"lat")}}e.defineLocale("pl",{months:function(s,A){return s?/D MMMM/.test(A)?o[s.month()]:n[s.month()]:n},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:u,m:u,mm:u,h:u,hh:u,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:u,M:"miesi\u0105c",MM:u,y:"rok",yy:u},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(16676))},32751:function(he,y,i){
//! moment.js locale configuration
//! locale : Portuguese (Brazil) [pt-br]
//! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(i(16676))},55138:function(he,y,i){
//! moment.js locale configuration
//! locale : Portuguese [pt]
//! author : Jefferson : https://github.com/jalex79
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(16676))},17968:function(he,y,i){
//! moment.js locale configuration
//! locale : Romanian [ro]
//! author : Vlad Gurdiga : https://github.com/gurdiga
//! author : Valentin Agachi : https://github.com/avaly
//! author : Emanuel Cepoi : https://github.com/cepem
!function(e){"use strict";
//! moment.js locale configuration
function n(a,l,u){var s=" ";return(a%100>=20||a>=100&&a%100==0)&&(s=" de "),a+s+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[u]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:n,m:"un minut",mm:n,h:"o or\u0103",hh:n,d:"o zi",dd:n,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:n,M:"o lun\u0103",MM:n,y:"un an",yy:n},week:{dow:1,doy:7}})}(i(16676))},81828:function(he,y,i){
//! moment.js locale configuration
//! locale : Russian [ru]
//! author : Viktorminator : https://github.com/Viktorminator
//! author : Menelion Elensúle : https://github.com/Oire
//! author : Коренберг Марк : https://github.com/socketpair
!function(e){"use strict";
//! moment.js locale configuration
function o(u,d,s){return"m"===s?d?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":u+" "+function n(u,d){var s=u.split("_");return d%10==1&&d%100!=11?s[0]:d%10>=2&&d%10<=4&&(d%100<10||d%100>=20)?s[1]:s[2]}({ss:d?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:d?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[s],+u)}var a=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];e.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:a,longMonthsParse:a,shortMonthsParse:a,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(u){if(u.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(u){if(u.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:o,m:o,mm:o,h:"\u0447\u0430\u0441",hh:o,d:"\u0434\u0435\u043d\u044c",dd:o,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:o,M:"\u043c\u0435\u0441\u044f\u0446",MM:o,y:"\u0433\u043e\u0434",yy:o},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(u){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(u)},meridiem:function(u,d,s){return u<4?"\u043d\u043e\u0447\u0438":u<12?"\u0443\u0442\u0440\u0430":u<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(u,d){switch(d){case"M":case"d":case"DDD":return u+"-\u0439";case"D":return u+"-\u0433\u043e";case"w":case"W":return u+"-\u044f";default:return u}},week:{dow:1,doy:4}})}(i(16676))},62188:function(he,y,i){
//! moment.js locale configuration
//! locale : Sindhi [sd]
//! author : Narain Sagar : https://github.com/narainsagar
!function(e){"use strict";
//! moment.js locale configuration
var n=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],o=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];e.defineLocale("sd",{months:n,monthsShort:n,weekdays:o,weekdaysShort:o,weekdaysMin:o,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(l){return"\u0634\u0627\u0645"===l},meridiem:function(l,u,d){return l<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(l){return l.replace(/\u060c/g,",")},postformat:function(l){return l.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i(16676))},6562:function(he,y,i){
//! moment.js locale configuration
//! locale : Northern Sami [se]
//! authors : Bård Rolstad Henriksen : https://github.com/karamell
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(16676))},87172:function(he,y,i){
//! moment.js locale configuration
//! locale : Sinhalese [si]
//! author : Sampath Sitinamaluwa : https://github.com/sampathsris
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(o){return o+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(o){return"\u0db4.\u0dc0."===o||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===o},meridiem:function(o,a,l){return o>11?l?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":l?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(i(16676))},99966:function(he,y,i){
//! moment.js locale configuration
//! locale : Slovak [sk]
//! author : Martin Minka : https://github.com/k2s
//! based on work of petrbela : https://github.com/petrbela
!function(e){"use strict";
//! moment.js locale configuration
var n="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),o="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function a(d){return d>1&&d<5}function l(d,s,A,_){var C=d+" ";switch(A){case"s":return s||_?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return s||_?C+(a(d)?"sekundy":"sek\xfand"):C+"sekundami";case"m":return s?"min\xfata":_?"min\xfatu":"min\xfatou";case"mm":return s||_?C+(a(d)?"min\xfaty":"min\xfat"):C+"min\xfatami";case"h":return s?"hodina":_?"hodinu":"hodinou";case"hh":return s||_?C+(a(d)?"hodiny":"hod\xedn"):C+"hodinami";case"d":return s||_?"de\u0148":"d\u0148om";case"dd":return s||_?C+(a(d)?"dni":"dn\xed"):C+"d\u0148ami";case"M":return s||_?"mesiac":"mesiacom";case"MM":return s||_?C+(a(d)?"mesiace":"mesiacov"):C+"mesiacmi";case"y":return s||_?"rok":"rokom";case"yy":return s||_?C+(a(d)?"roky":"rokov"):C+"rokmi"}}e.defineLocale("sk",{months:n,monthsShort:o,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(16676))},4287:function(he,y,i){
//! moment.js locale configuration
//! locale : Slovenian [sl]
//! author : Robert Sedovšek : https://github.com/sedovsek
!function(e){"use strict";
//! moment.js locale configuration
function n(a,l,u,d){var s=a+" ";switch(u){case"s":return l||d?"nekaj sekund":"nekaj sekundami";case"ss":return s+(1===a?l?"sekundo":"sekundi":2===a?l||d?"sekundi":"sekundah":a<5?l||d?"sekunde":"sekundah":"sekund");case"m":return l?"ena minuta":"eno minuto";case"mm":return s+(1===a?l?"minuta":"minuto":2===a?l||d?"minuti":"minutama":a<5?l||d?"minute":"minutami":l||d?"minut":"minutami");case"h":return l?"ena ura":"eno uro";case"hh":return s+(1===a?l?"ura":"uro":2===a?l||d?"uri":"urama":a<5?l||d?"ure":"urami":l||d?"ur":"urami");case"d":return l||d?"en dan":"enim dnem";case"dd":return s+(1===a?l||d?"dan":"dnem":2===a?l||d?"dni":"dnevoma":l||d?"dni":"dnevi");case"M":return l||d?"en mesec":"enim mesecem";case"MM":return s+(1===a?l||d?"mesec":"mesecem":2===a?l||d?"meseca":"mesecema":a<5?l||d?"mesece":"meseci":l||d?"mesecev":"meseci");case"y":return l||d?"eno leto":"enim letom";case"yy":return s+(1===a?l||d?"leto":"letom":2===a?l||d?"leti":"letoma":a<5?l||d?"leta":"leti":l||d?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(16676))},15291:function(he,y,i){
//! moment.js locale configuration
//! locale : Albanian [sq]
//! author : Flakërim Ismani : https://github.com/flakerimi
//! author : Menelion Elensúle : https://github.com/Oire
//! author : Oerd Cukalla : https://github.com/oerd
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(o){return"M"===o.charAt(0)},meridiem:function(o,a,l){return o<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(16676))},37603:function(he,y,i){
//! moment.js locale configuration
//! locale : Serbian Cyrillic [sr-cyrl]
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
//! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
!function(e){"use strict";
//! moment.js locale configuration
var n={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(a,l){return a%10>=1&&a%10<=4&&(a%100<10||a%100>=20)?a%10==1?l[0]:l[1]:l[2]},translate:function(a,l,u,d){var A,s=n.words[u];return 1===u.length?"y"===u&&l?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":d||l?s[0]:s[1]:(A=n.correctGrammaticalCase(a,s),"yy"===u&&l&&"\u0433\u043e\u0434\u0438\u043d\u0443"===A?a+" \u0433\u043e\u0434\u0438\u043d\u0430":a+" "+A)}};e.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:n.translate,dd:n.translate,M:n.translate,MM:n.translate,y:n.translate,yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(16676))},80450:function(he,y,i){
//! moment.js locale configuration
//! locale : Serbian [sr]
//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
//! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
!function(e){"use strict";
//! moment.js locale configuration
var n={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(a,l){return a%10>=1&&a%10<=4&&(a%100<10||a%100>=20)?a%10==1?l[0]:l[1]:l[2]},translate:function(a,l,u,d){var A,s=n.words[u];return 1===u.length?"y"===u&&l?"jedna godina":d||l?s[0]:s[1]:(A=n.correctGrammaticalCase(a,s),"yy"===u&&l&&"godinu"===A?a+" godina":a+" "+A)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:n.translate,dd:n.translate,M:n.translate,MM:n.translate,y:n.translate,yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(16676))},30383:function(he,y,i){
//! moment.js locale configuration
//! locale : siSwati [ss]
//! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(o,a,l){return o<11?"ekuseni":o<15?"emini":o<19?"entsambama":"ebusuku"},meridiemHour:function(o,a){return 12===o&&(o=0),"ekuseni"===a?o:"emini"===a?o>=11?o:o+12:"entsambama"===a||"ebusuku"===a?0===o?0:o+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(i(16676))},37221:function(he,y,i){
//! moment.js locale configuration
//! locale : Swedish [sv]
//! author : Jens Alm : https://github.com/ulmus
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(o){var a=o%10;return o+(1==~~(o%100/10)?":e":1===a||2===a?":a":":e")},week:{dow:1,doy:4}})}(i(16676))},51743:function(he,y,i){
//! moment.js locale configuration
//! locale : Swahili [sw]
//! author : Fahad Kassim : https://github.com/fadsel
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(i(16676))},6351:function(he,y,i){
//! moment.js locale configuration
//! locale : Tamil [ta]
//! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
!function(e){"use strict";
//! moment.js locale configuration
var n={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},o={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};e.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(l){return l+"\u0bb5\u0ba4\u0bc1"},preparse:function(l){return l.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(u){return o[u]})},postformat:function(l){return l.replace(/\d/g,function(u){return n[u]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(l,u,d){return l<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":l<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":l<10?" \u0b95\u0bbe\u0bb2\u0bc8":l<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":l<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":l<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(l,u){return 12===l&&(l=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===u?l<2?l:l+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===u||"\u0b95\u0bbe\u0bb2\u0bc8"===u||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===u&&l>=10?l:l+12},week:{dow:0,doy:6}})}(i(16676))},98118:function(he,y,i){
//! moment.js locale configuration
//! locale : Telugu [te]
//! author : Krishna Chaitanya Thota : https://github.com/kcthota
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(o,a){return 12===o&&(o=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===a?o<4?o:o+12:"\u0c09\u0c26\u0c2f\u0c02"===a?o:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===a?o>=10?o:o+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===a?o+12:void 0},meridiem:function(o,a,l){return o<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":o<10?"\u0c09\u0c26\u0c2f\u0c02":o<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":o<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(i(16676))},26278:function(he,y,i){
//! moment.js locale configuration
//! locale : Tetun Dili (East Timor) [tet]
//! author : Joshua Brooks : https://github.com/joshbrooks
//! author : Onorio De J. Afonso : https://github.com/marobo
//! author : Sonia Simoes : https://github.com/soniasimoes
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(o){var a=o%10;return o+(1==~~(o%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}})}(i(16676))},36987:function(he,y,i){
//! moment.js locale configuration
//! locale : Tajik [tg]
//! author : Orif N. Jr. : https://github.com/orif-jr
!function(e){"use strict";
//! moment.js locale configuration
var n={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};e.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(a,l){return 12===a&&(a=0),"\u0448\u0430\u0431"===l?a<4?a:a+12:"\u0441\u0443\u0431\u04b3"===l?a:"\u0440\u04ef\u0437"===l?a>=11?a:a+12:"\u0431\u0435\u0433\u043e\u04b3"===l?a+12:void 0},meridiem:function(a,l,u){return a<4?"\u0448\u0430\u0431":a<11?"\u0441\u0443\u0431\u04b3":a<16?"\u0440\u04ef\u0437":a<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(a){return a+(n[a]||n[a%10]||n[a>=100?100:null])},week:{dow:1,doy:7}})}(i(16676))},39325:function(he,y,i){
//! moment.js locale configuration
//! locale : Thai [th]
//! author : Kridsada Thanabulpong : https://github.com/sirn
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(o){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===o},meridiem:function(o,a,l){return o<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(i(16676))},43485:function(he,y,i){
//! moment.js locale configuration
//! locale : Turkmen [tk]
//! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy
!function(e){"use strict";
//! moment.js locale configuration
var n={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(a,l){switch(l){case"d":case"D":case"Do":case"DD":return a;default:if(0===a)return a+"'unjy";var u=a%10;return a+(n[u]||n[a%100-u]||n[a>=100?100:null])}},week:{dow:1,doy:7}})}(i(16676))},68148:function(he,y,i){
//! moment.js locale configuration
//! locale : Tagalog (Philippines) [tl-ph]
//! author : Dan Hagman : https://github.com/hagmandan
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(o){return o},week:{dow:1,doy:4}})}(i(16676))},59616:function(he,y,i){
//! moment.js locale configuration
//! locale : Klingon [tlh]
//! author : Dominika Kruk : https://github.com/amaranthrose
!function(e){"use strict";
//! moment.js locale configuration
var n="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function l(s,A,_,C){var R=function u(s){var A=Math.floor(s%1e3/100),_=Math.floor(s%100/10),C=s%10,R="";return A>0&&(R+=n[A]+"vatlh"),_>0&&(R+=(""!==R?" ":"")+n[_]+"maH"),C>0&&(R+=(""!==R?" ":"")+n[C]),""===R?"pagh":R}(s);switch(_){case"ss":return R+" lup";case"mm":return R+" tup";case"hh":return R+" rep";case"dd":return R+" jaj";case"MM":return R+" jar";case"yy":return R+" DIS"}}e.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function o(s){var A=s;return-1!==s.indexOf("jaj")?A.slice(0,-3)+"leS":-1!==s.indexOf("jar")?A.slice(0,-3)+"waQ":-1!==s.indexOf("DIS")?A.slice(0,-3)+"nem":A+" pIq"},past:function a(s){var A=s;return-1!==s.indexOf("jaj")?A.slice(0,-3)+"Hu\u2019":-1!==s.indexOf("jar")?A.slice(0,-3)+"wen":-1!==s.indexOf("DIS")?A.slice(0,-3)+"ben":A+" ret"},s:"puS lup",ss:l,m:"wa\u2019 tup",mm:l,h:"wa\u2019 rep",hh:l,d:"wa\u2019 jaj",dd:l,M:"wa\u2019 jar",MM:l,y:"wa\u2019 DIS",yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(16676))},24040:function(he,y,i){
//! moment.js locale configuration
//! locale : Turkish [tr]
//! authors : Erhan Gundogan : https://github.com/erhangundogan,
//!           Burak Yiğit Kaya: https://github.com/BYK
!function(e){"use strict";
//! moment.js locale configuration
var n={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(a,l,u){return a<12?u?"\xf6\xf6":"\xd6\xd6":u?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(a){return"\xf6s"===a||"\xd6S"===a},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(a,l){switch(l){case"d":case"D":case"Do":case"DD":return a;default:if(0===a)return a+"'\u0131nc\u0131";var u=a%10;return a+(n[u]||n[a%100-u]||n[a>=100?100:null])}},week:{dow:1,doy:7}})}(i(16676))},594:function(he,y,i){
//! moment.js locale configuration
//! locale : Talossan [tzl]
//! author : Robin van der Vliet : https://github.com/robin0van0der0v
//! author : Iustì Canun
!function(e){"use strict";
//! moment.js locale configuration
function o(a,l,u,d){var s={s:["viensas secunds","'iensas secunds"],ss:[a+" secunds",a+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[a+" m\xeduts",a+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[a+" \xfeoras",a+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[a+" ziuas",a+" ziuas"],M:["'n mes","'iens mes"],MM:[a+" mesen",a+" mesen"],y:["'n ar","'iens ar"],yy:[a+" ars",a+" ars"]};return d||l?s[u][0]:s[u][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(a){return"d'o"===a.toLowerCase()},meridiem:function(a,l,u){return a>11?u?"d'o":"D'O":u?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(16676))},23226:function(he,y,i){
//! moment.js locale configuration
//! locale : Central Atlas Tamazight Latin [tzm-latn]
//! author : Abdel Said : https://github.com/abdelsaid
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(i(16676))},80673:function(he,y,i){
//! moment.js locale configuration
//! locale : Central Atlas Tamazight [tzm]
//! author : Abdel Said : https://github.com/abdelsaid
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(i(16676))},69580:function(he,y,i){
//! moment.js locale configuration
//! locale : Uyghur (China) [ug-cn]
//! author: boyaq : https://github.com/boyaq
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(o,a){return 12===o&&(o=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===a||"\u0633\u06d5\u06be\u06d5\u0631"===a||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===a?o:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===a||"\u0643\u06d5\u0686"===a?o+12:o>=11?o:o+12},meridiem:function(o,a,l){var u=100*o+a;return u<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":u<900?"\u0633\u06d5\u06be\u06d5\u0631":u<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":u<1230?"\u0686\u06c8\u0634":u<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(o,a){switch(a){case"d":case"D":case"DDD":return o+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return o+"-\u06be\u06d5\u067e\u062a\u06d5";default:return o}},preparse:function(o){return o.replace(/\u060c/g,",")},postformat:function(o){return o.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(i(16676))},87270:function(he,y,i){
//! moment.js locale configuration
//! locale : Ukrainian [uk]
//! author : zemlanin : https://github.com/zemlanin
//! Author : Menelion Elensúle : https://github.com/Oire
!function(e){"use strict";
//! moment.js locale configuration
function o(d,s,A){return"m"===A?s?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===A?s?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":d+" "+function n(d,s){var A=d.split("_");return s%10==1&&s%100!=11?A[0]:s%10>=2&&s%10<=4&&(s%100<10||s%100>=20)?A[1]:A[2]}({ss:s?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:s?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:s?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[A],+d)}function l(d){return function(){return d+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}e.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function a(d,s){var A={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===d?A.nominative.slice(1,7).concat(A.nominative.slice(0,1)):d?A[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(s)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(s)?"genitive":"nominative"][d.day()]:A.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:l("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:l("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:l("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:l("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return l("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return l("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:o,m:o,mm:o,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:o,d:"\u0434\u0435\u043d\u044c",dd:o,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:o,y:"\u0440\u0456\u043a",yy:o},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(d){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(d)},meridiem:function(d,s,A){return d<4?"\u043d\u043e\u0447\u0456":d<12?"\u0440\u0430\u043d\u043a\u0443":d<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(d,s){switch(s){case"M":case"d":case"DDD":case"w":case"W":return d+"-\u0439";case"D":return d+"-\u0433\u043e";default:return d}},week:{dow:1,doy:7}})}(i(16676))},11656:function(he,y,i){
//! moment.js locale configuration
//! locale : Urdu [ur]
//! author : Sawood Alam : https://github.com/ibnesayeed
//! author : Zack : https://github.com/ZackVision
!function(e){"use strict";
//! moment.js locale configuration
var n=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],o=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];e.defineLocale("ur",{months:n,monthsShort:n,weekdays:o,weekdaysShort:o,weekdaysMin:o,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(l){return"\u0634\u0627\u0645"===l},meridiem:function(l,u,d){return l<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(l){return l.replace(/\u060c/g,",")},postformat:function(l){return l.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i(16676))},18744:function(he,y,i){
//! moment.js locale configuration
//! locale : Uzbek Latin [uz-latn]
//! author : Rasulbek Mirzayev : github.com/Rasulbeeek
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(i(16676))},68364:function(he,y,i){
//! moment.js locale configuration
//! locale : Uzbek [uz]
//! author : Sardor Muminov : https://github.com/muminoff
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(i(16676))},75049:function(he,y,i){
//! moment.js locale configuration
//! locale : Vietnamese [vi]
//! author : Bang Nguyen : https://github.com/bangnk
//! author : Chien Kira : https://github.com/chienkira
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(o){return/^ch$/i.test(o)},meridiem:function(o,a,l){return o<12?l?"sa":"SA":l?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(o){return o},week:{dow:1,doy:4}})}(i(16676))},15106:function(he,y,i){
//! moment.js locale configuration
//! locale : Pseudo [x-pseudo]
//! author : Andrew Hood : https://github.com/andrewhood125
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(o){var a=o%10;return o+(1==~~(o%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}})}(i(16676))},6199:function(he,y,i){
//! moment.js locale configuration
//! locale : Yoruba Nigeria [yo]
//! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(i(16676))},27280:function(he,y,i){
//! moment.js locale configuration
//! locale : Chinese (China) [zh-cn]
//! author : suupic : https://github.com/suupic
//! author : Zeno Zeng : https://github.com/zenozeng
//! author : uu109 : https://github.com/uu109
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(o,a){return 12===o&&(o=0),"\u51cc\u6668"===a||"\u65e9\u4e0a"===a||"\u4e0a\u5348"===a?o:"\u4e0b\u5348"===a||"\u665a\u4e0a"===a?o+12:o>=11?o:o+12},meridiem:function(o,a,l){var u=100*o+a;return u<600?"\u51cc\u6668":u<900?"\u65e9\u4e0a":u<1130?"\u4e0a\u5348":u<1230?"\u4e2d\u5348":u<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(o){return o.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(o){return this.week()!==o.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(o,a){switch(a){case"d":case"D":case"DDD":return o+"\u65e5";case"M":return o+"\u6708";case"w":case"W":return o+"\u5468";default:return o}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(i(16676))},36860:function(he,y,i){
//! moment.js locale configuration
//! locale : Chinese (Hong Kong) [zh-hk]
//! author : Ben : https://github.com/ben-lin
//! author : Chris Lam : https://github.com/hehachris
//! author : Konstantin : https://github.com/skfd
//! author : Anthony : https://github.com/anthonylau
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(o,a){return 12===o&&(o=0),"\u51cc\u6668"===a||"\u65e9\u4e0a"===a||"\u4e0a\u5348"===a?o:"\u4e2d\u5348"===a?o>=11?o:o+12:"\u4e0b\u5348"===a||"\u665a\u4e0a"===a?o+12:void 0},meridiem:function(o,a,l){var u=100*o+a;return u<600?"\u51cc\u6668":u<900?"\u65e9\u4e0a":u<1200?"\u4e0a\u5348":1200===u?"\u4e2d\u5348":u<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(o,a){switch(a){case"d":case"D":case"DDD":return o+"\u65e5";case"M":return o+"\u6708";case"w":case"W":return o+"\u9031";default:return o}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(i(16676))},78364:function(he,y,i){
//! moment.js locale configuration
//! locale : Chinese (Macau) [zh-mo]
//! author : Ben : https://github.com/ben-lin
//! author : Chris Lam : https://github.com/hehachris
//! author : Tan Yuanhong : https://github.com/le0tan
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(o,a){return 12===o&&(o=0),"\u51cc\u6668"===a||"\u65e9\u4e0a"===a||"\u4e0a\u5348"===a?o:"\u4e2d\u5348"===a?o>=11?o:o+12:"\u4e0b\u5348"===a||"\u665a\u4e0a"===a?o+12:void 0},meridiem:function(o,a,l){var u=100*o+a;return u<600?"\u51cc\u6668":u<900?"\u65e9\u4e0a":u<1130?"\u4e0a\u5348":u<1230?"\u4e2d\u5348":u<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(o,a){switch(a){case"d":case"D":case"DDD":return o+"\u65e5";case"M":return o+"\u6708";case"w":case"W":return o+"\u9031";default:return o}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(i(16676))},482:function(he,y,i){
//! moment.js locale configuration
//! locale : Chinese (Taiwan) [zh-tw]
//! author : Ben : https://github.com/ben-lin
//! author : Chris Lam : https://github.com/hehachris
!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(o,a){return 12===o&&(o=0),"\u51cc\u6668"===a||"\u65e9\u4e0a"===a||"\u4e0a\u5348"===a?o:"\u4e2d\u5348"===a?o>=11?o:o+12:"\u4e0b\u5348"===a||"\u665a\u4e0a"===a?o+12:void 0},meridiem:function(o,a,l){var u=100*o+a;return u<600?"\u51cc\u6668":u<900?"\u65e9\u4e0a":u<1130?"\u4e0a\u5348":u<1230?"\u4e2d\u5348":u<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(o,a){switch(a){case"d":case"D":case"DDD":return o+"\u65e5";case"M":return o+"\u6708";case"w":case"W":return o+"\u9031";default:return o}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(i(16676))},16676:function(he,y,i){(he=i.nmd(he)).exports=function(){"use strict";var e,w;function n(){return e.apply(null,arguments)}function a(ye){return ye instanceof Array||"[object Array]"===Object.prototype.toString.call(ye)}function l(ye){return null!=ye&&"[object Object]"===Object.prototype.toString.call(ye)}function u(ye,bt){return Object.prototype.hasOwnProperty.call(ye,bt)}function d(ye){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(ye).length;var bt;for(bt in ye)if(u(ye,bt))return!1;return!0}function s(ye){return void 0===ye}function A(ye){return"number"==typeof ye||"[object Number]"===Object.prototype.toString.call(ye)}function _(ye){return ye instanceof Date||"[object Date]"===Object.prototype.toString.call(ye)}function C(ye,bt){var st,be=[],ei=ye.length;for(st=0;st<ei;++st)be.push(bt(ye[st],st));return be}function R(ye,bt){for(var be in bt)u(bt,be)&&(ye[be]=bt[be]);return u(bt,"toString")&&(ye.toString=bt.toString),u(bt,"valueOf")&&(ye.valueOf=bt.valueOf),ye}function x(ye,bt,be,st){return ui(ye,bt,be,st,!0).utc()}function k(ye){return null==ye._pf&&(ye._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),ye._pf}function g(ye){var bt=null,be=!1,st=ye._d&&!isNaN(ye._d.getTime());return st&&(bt=k(ye),be=w.call(bt.parsedDateParts,function(ei){return null!=ei}),st=bt.overflow<0&&!bt.empty&&!bt.invalidEra&&!bt.invalidMonth&&!bt.invalidWeekday&&!bt.weekdayMismatch&&!bt.nullInput&&!bt.invalidFormat&&!bt.userInvalidated&&(!bt.meridiem||bt.meridiem&&be),ye._strict&&(st=st&&0===bt.charsLeftOver&&0===bt.unusedTokens.length&&void 0===bt.bigHour)),null!=Object.isFrozen&&Object.isFrozen(ye)?st:(ye._isValid=st,ye._isValid)}function M(ye){var bt=x(NaN);return null!=ye?R(k(bt),ye):k(bt).userInvalidated=!0,bt}w=Array.prototype.some?Array.prototype.some:function(ye){var st,bt=Object(this),be=bt.length>>>0;for(st=0;st<be;st++)if(st in bt&&ye.call(this,bt[st],st,bt))return!0;return!1};var p=n.momentProperties=[],E=!1;function b(ye,bt){var be,st,ei,_o=p.length;if(s(bt._isAMomentObject)||(ye._isAMomentObject=bt._isAMomentObject),s(bt._i)||(ye._i=bt._i),s(bt._f)||(ye._f=bt._f),s(bt._l)||(ye._l=bt._l),s(bt._strict)||(ye._strict=bt._strict),s(bt._tzm)||(ye._tzm=bt._tzm),s(bt._isUTC)||(ye._isUTC=bt._isUTC),s(bt._offset)||(ye._offset=bt._offset),s(bt._pf)||(ye._pf=k(bt)),s(bt._locale)||(ye._locale=bt._locale),_o>0)for(be=0;be<_o;be++)s(ei=bt[st=p[be]])||(ye[st]=ei);return ye}function I(ye){b(this,ye),this._d=new Date(null!=ye._d?ye._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===E&&(E=!0,n.updateOffset(this),E=!1)}function L(ye){return ye instanceof I||null!=ye&&null!=ye._isAMomentObject}function D(ye){!1===n.suppressDeprecationWarnings&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+ye)}function F(ye,bt){var be=!0;return R(function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,ye),be){var ei,_o,gr,st=[],ds=arguments.length;for(_o=0;_o<ds;_o++){if(ei="","object"==typeof arguments[_o]){for(gr in ei+="\n["+_o+"] ",arguments[0])u(arguments[0],gr)&&(ei+=gr+": "+arguments[0][gr]+", ");ei=ei.slice(0,-2)}else ei=arguments[_o];st.push(ei)}D(ye+"\nArguments: "+Array.prototype.slice.call(st).join("")+"\n"+(new Error).stack),be=!1}return bt.apply(this,arguments)},bt)}var me,P={};function O(ye,bt){null!=n.deprecationHandler&&n.deprecationHandler(ye,bt),P[ye]||(D(bt),P[ye]=!0)}function U(ye){return typeof Function<"u"&&ye instanceof Function||"[object Function]"===Object.prototype.toString.call(ye)}function K(ye,bt){var st,be=R({},ye);for(st in bt)u(bt,st)&&(l(ye[st])&&l(bt[st])?(be[st]={},R(be[st],ye[st]),R(be[st],bt[st])):null!=bt[st]?be[st]=bt[st]:delete be[st]);for(st in ye)u(ye,st)&&!u(bt,st)&&l(ye[st])&&(be[st]=R({},be[st]));return be}function X(ye){null!=ye&&this.set(ye)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,me=Object.keys?Object.keys:function(ye){var bt,be=[];for(bt in ye)u(ye,bt)&&be.push(bt);return be};function re(ye,bt,be){var st=""+Math.abs(ye);return(ye>=0?be?"+":"":"-")+Math.pow(10,Math.max(0,bt-st.length)).toString().substr(1)+st}var de=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,te=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},H={};function z(ye,bt,be,st){var ei=st;"string"==typeof st&&(ei=function(){return this[st]()}),ye&&(H[ye]=ei),bt&&(H[bt[0]]=function(){return re(ei.apply(this,arguments),bt[1],bt[2])}),be&&(H[be]=function(){return this.localeData().ordinal(ei.apply(this,arguments),ye)})}function q(ye){return ye.match(/\[[\s\S]/)?ye.replace(/^\[|\]$/g,""):ye.replace(/\\/g,"")}function ne(ye,bt){return ye.isValid()?(bt=_e(bt,ye.localeData()),j[bt]=j[bt]||function se(ye){var be,st,bt=ye.match(de);for(be=0,st=bt.length;be<st;be++)bt[be]=H[bt[be]]?H[bt[be]]:q(bt[be]);return function(ei){var gr,_o="";for(gr=0;gr<st;gr++)_o+=U(bt[gr])?bt[gr].call(ei,ye):bt[gr];return _o}}(bt),j[bt](ye)):ye.localeData().invalidDate()}function _e(ye,bt){var be=5;function st(ei){return bt.longDateFormat(ei)||ei}for(te.lastIndex=0;be>=0&&te.test(ye);)ye=ye.replace(te,st),te.lastIndex=0,be-=1;return ye}var An={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function $n(ye){return"string"==typeof ye?An[ye]||An[ye.toLowerCase()]:void 0}function xn(ye){var be,st,bt={};for(st in ye)u(ye,st)&&(be=$n(st))&&(bt[be]=ye[st]);return bt}var mt={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var It,Wt=/\d/,dn=/\d\d/,sn=/\d{3}/,fn=/\d{4}/,yi=/[+-]?\d{6}/,nn=/\d\d?/,Mi=/\d\d\d\d?/,mi=/\d\d\d\d\d\d?/,Eo=/\d{1,3}/,Ko=/\d{1,4}/,xo=/[+-]?\d{1,6}/,Bn=/\d+/,Xt=/[+-]?\d+/,Ji=/Z|[+-]\d\d:?\d\d/gi,En=/Z|[+-]\d\d(?::?\d\d)?/gi,Ki=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Fn=/^[1-9]\d?/,oi=/^([1-9]\d|\d)/;function Bt(ye,bt,be){It[ye]=U(bt)?bt:function(st,ei){return st&&be?be:bt}}function xt(ye,bt){return u(It,ye)?It[ye](bt._strict,bt._locale):new RegExp(function wt(ye){return Mt(ye.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(bt,be,st,ei,_o){return be||st||ei||_o}))}(ye))}function Mt(ye){return ye.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function pt(ye){return ye<0?Math.ceil(ye)||0:Math.floor(ye)}function Lt(ye){var bt=+ye,be=0;return 0!==bt&&isFinite(bt)&&(be=pt(bt)),be}It={};var tt={};function Ne(ye,bt){var be,ei,st=bt;for("string"==typeof ye&&(ye=[ye]),A(bt)&&(st=function(_o,gr){gr[bt]=Lt(_o)}),ei=ye.length,be=0;be<ei;be++)tt[ye[be]]=st}function vt(ye,bt){Ne(ye,function(be,st,ei,_o){ei._w=ei._w||{},bt(be,ei._w,ei,_o)})}function ln(ye,bt,be){null!=bt&&u(tt,ye)&&tt[ye](bt,be._a,be,ye)}function jn(ye){return ye%4==0&&ye%100!=0||ye%400==0}var Pi=0,go=1,si=2,ot=3,pn=4,_i=5,wi=6,hi=7,zn=8;function Ei(ye){return jn(ye)?366:365}z("Y",0,0,function(){var ye=this.year();return ye<=9999?re(ye,4):"+"+ye}),z(0,["YY",2],0,function(){return this.year()%100}),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),Bt("Y",Xt),Bt("YY",nn,dn),Bt("YYYY",Ko,fn),Bt("YYYYY",xo,yi),Bt("YYYYYY",xo,yi),Ne(["YYYYY","YYYYYY"],Pi),Ne("YYYY",function(ye,bt){bt[Pi]=2===ye.length?n.parseTwoDigitYear(ye):Lt(ye)}),Ne("YY",function(ye,bt){bt[Pi]=n.parseTwoDigitYear(ye)}),Ne("Y",function(ye,bt){bt[Pi]=parseInt(ye,10)}),n.parseTwoDigitYear=function(ye){return Lt(ye)+(Lt(ye)>68?1900:2e3)};var Bi,li=ki("FullYear",!0);function ki(ye,bt){return function(be){return null!=be?(jo(this,ye,be),n.updateOffset(this,bt),this):bo(this,ye)}}function bo(ye,bt){if(!ye.isValid())return NaN;var be=ye._d,st=ye._isUTC;switch(bt){case"Milliseconds":return st?be.getUTCMilliseconds():be.getMilliseconds();case"Seconds":return st?be.getUTCSeconds():be.getSeconds();case"Minutes":return st?be.getUTCMinutes():be.getMinutes();case"Hours":return st?be.getUTCHours():be.getHours();case"Date":return st?be.getUTCDate():be.getDate();case"Day":return st?be.getUTCDay():be.getDay();case"Month":return st?be.getUTCMonth():be.getMonth();case"FullYear":return st?be.getUTCFullYear():be.getFullYear();default:return NaN}}function jo(ye,bt,be){var st,ei,_o,gr,ds;if(ye.isValid()&&!isNaN(be)){switch(st=ye._d,ei=ye._isUTC,bt){case"Milliseconds":return void(ei?st.setUTCMilliseconds(be):st.setMilliseconds(be));case"Seconds":return void(ei?st.setUTCSeconds(be):st.setSeconds(be));case"Minutes":return void(ei?st.setUTCMinutes(be):st.setMinutes(be));case"Hours":return void(ei?st.setUTCHours(be):st.setHours(be));case"Date":return void(ei?st.setUTCDate(be):st.setDate(be));case"FullYear":break;default:return}_o=be,gr=ye.month(),ds=29!==(ds=ye.date())||1!==gr||jn(_o)?ds:28,ei?st.setUTCFullYear(_o,gr,ds):st.setFullYear(_o,gr,ds)}}function Xo(ye,bt){if(isNaN(ye)||isNaN(bt))return NaN;var be=function oo(ye,bt){return(ye%bt+bt)%bt}(bt,12);return ye+=(bt-be)/12,1===be?jn(ye)?29:28:31-be%7%2}Bi=Array.prototype.indexOf?Array.prototype.indexOf:function(ye){var bt;for(bt=0;bt<this.length;++bt)if(this[bt]===ye)return bt;return-1},z("M",["MM",2],"Mo",function(){return this.month()+1}),z("MMM",0,0,function(ye){return this.localeData().monthsShort(this,ye)}),z("MMMM",0,0,function(ye){return this.localeData().months(this,ye)}),Bt("M",nn,Fn),Bt("MM",nn,dn),Bt("MMM",function(ye,bt){return bt.monthsShortRegex(ye)}),Bt("MMMM",function(ye,bt){return bt.monthsRegex(ye)}),Ne(["M","MM"],function(ye,bt){bt[go]=Lt(ye)-1}),Ne(["MMM","MMMM"],function(ye,bt,be,st){var ei=be._locale.monthsParse(ye,st,be._strict);null!=ei?bt[go]=ei:k(be).invalidMonth=ye});var Lo="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),or="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),xr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Nr=Ki,as=Ki;function rt(ye,bt,be){var st,ei,_o,gr=ye.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],st=0;st<12;++st)_o=x([2e3,st]),this._shortMonthsParse[st]=this.monthsShort(_o,"").toLocaleLowerCase(),this._longMonthsParse[st]=this.months(_o,"").toLocaleLowerCase();return be?"MMM"===bt?-1!==(ei=Bi.call(this._shortMonthsParse,gr))?ei:null:-1!==(ei=Bi.call(this._longMonthsParse,gr))?ei:null:"MMM"===bt?-1!==(ei=Bi.call(this._shortMonthsParse,gr))||-1!==(ei=Bi.call(this._longMonthsParse,gr))?ei:null:-1!==(ei=Bi.call(this._longMonthsParse,gr))||-1!==(ei=Bi.call(this._shortMonthsParse,gr))?ei:null}function Gn(ye,bt){if(!ye.isValid())return ye;if("string"==typeof bt)if(/^\d+$/.test(bt))bt=Lt(bt);else if(!A(bt=ye.localeData().monthsParse(bt)))return ye;var be=bt,st=ye.date();return st=st<29?st:Math.min(st,Xo(ye.year(),be)),ye._isUTC?ye._d.setUTCMonth(be,st):ye._d.setMonth(be,st),ye}function Io(ye){return null!=ye?(Gn(this,ye),n.updateOffset(this,!0),this):bo(this,"Month")}function ms(){function ye(us,zs){return zs.length-us.length}var ei,_o,gr,ds,bt=[],be=[],st=[];for(ei=0;ei<12;ei++)_o=x([2e3,ei]),gr=Mt(this.monthsShort(_o,"")),ds=Mt(this.months(_o,"")),bt.push(gr),be.push(ds),st.push(ds),st.push(gr);bt.sort(ye),be.sort(ye),st.sort(ye),this._monthsRegex=new RegExp("^("+st.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+be.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+bt.join("|")+")","i")}function Oa(ye,bt,be,st,ei,_o,gr){var ds;return ye<100&&ye>=0?(ds=new Date(ye+400,bt,be,st,ei,_o,gr),isFinite(ds.getFullYear())&&ds.setFullYear(ye)):ds=new Date(ye,bt,be,st,ei,_o,gr),ds}function Ea(ye){var bt,be;return ye<100&&ye>=0?((be=Array.prototype.slice.call(arguments))[0]=ye+400,bt=new Date(Date.UTC.apply(null,be)),isFinite(bt.getUTCFullYear())&&bt.setUTCFullYear(ye)):bt=new Date(Date.UTC.apply(null,arguments)),bt}function Sa(ye,bt,be){var st=7+bt-be;return-(7+Ea(ye,0,st).getUTCDay()-bt)%7+st-1}function tr(ye,bt,be,st,ei){var us,zs,ds=1+7*(bt-1)+(7+be-st)%7+Sa(ye,st,ei);return ds<=0?zs=Ei(us=ye-1)+ds:ds>Ei(ye)?(us=ye+1,zs=ds-Ei(ye)):(us=ye,zs=ds),{year:us,dayOfYear:zs}}function Mr(ye,bt,be){var _o,gr,st=Sa(ye.year(),bt,be),ei=Math.floor((ye.dayOfYear()-st-1)/7)+1;return ei<1?_o=ei+Li(gr=ye.year()-1,bt,be):ei>Li(ye.year(),bt,be)?(_o=ei-Li(ye.year(),bt,be),gr=ye.year()+1):(gr=ye.year(),_o=ei),{week:_o,year:gr}}function Li(ye,bt,be){var st=Sa(ye,bt,be),ei=Sa(ye+1,bt,be);return(Ei(ye)-st+ei)/7}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),Bt("w",nn,Fn),Bt("ww",nn,dn),Bt("W",nn,Fn),Bt("WW",nn,dn),vt(["w","ww","W","WW"],function(ye,bt,be,st){bt[st.substr(0,1)]=Lt(ye)});function ri(ye,bt){return ye.slice(bt,7).concat(ye.slice(0,bt))}z("d",0,"do","day"),z("dd",0,0,function(ye){return this.localeData().weekdaysMin(this,ye)}),z("ddd",0,0,function(ye){return this.localeData().weekdaysShort(this,ye)}),z("dddd",0,0,function(ye){return this.localeData().weekdays(this,ye)}),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),Bt("d",nn),Bt("e",nn),Bt("E",nn),Bt("dd",function(ye,bt){return bt.weekdaysMinRegex(ye)}),Bt("ddd",function(ye,bt){return bt.weekdaysShortRegex(ye)}),Bt("dddd",function(ye,bt){return bt.weekdaysRegex(ye)}),vt(["dd","ddd","dddd"],function(ye,bt,be,st){var ei=be._locale.weekdaysParse(ye,st,be._strict);null!=ei?bt.d=ei:k(be).invalidWeekday=ye}),vt(["d","e","E"],function(ye,bt,be,st){bt[st]=Lt(ye)});var mo="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ii="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yo="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),lr=Ki,Yr=Ki,Gs=Ki;function Zn(ye,bt,be){var st,ei,_o,gr=ye.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],st=0;st<7;++st)_o=x([2e3,1]).day(st),this._minWeekdaysParse[st]=this.weekdaysMin(_o,"").toLocaleLowerCase(),this._shortWeekdaysParse[st]=this.weekdaysShort(_o,"").toLocaleLowerCase(),this._weekdaysParse[st]=this.weekdays(_o,"").toLocaleLowerCase();return be?"dddd"===bt?-1!==(ei=Bi.call(this._weekdaysParse,gr))?ei:null:"ddd"===bt?-1!==(ei=Bi.call(this._shortWeekdaysParse,gr))?ei:null:-1!==(ei=Bi.call(this._minWeekdaysParse,gr))?ei:null:"dddd"===bt?-1!==(ei=Bi.call(this._weekdaysParse,gr))||-1!==(ei=Bi.call(this._shortWeekdaysParse,gr))||-1!==(ei=Bi.call(this._minWeekdaysParse,gr))?ei:null:"ddd"===bt?-1!==(ei=Bi.call(this._shortWeekdaysParse,gr))||-1!==(ei=Bi.call(this._weekdaysParse,gr))||-1!==(ei=Bi.call(this._minWeekdaysParse,gr))?ei:null:-1!==(ei=Bi.call(this._minWeekdaysParse,gr))||-1!==(ei=Bi.call(this._weekdaysParse,gr))||-1!==(ei=Bi.call(this._shortWeekdaysParse,gr))?ei:null}function Ua(){function ye(Ta,Pe){return Pe.length-Ta.length}var _o,gr,ds,us,zs,bt=[],be=[],st=[],ei=[];for(_o=0;_o<7;_o++)gr=x([2e3,1]).day(_o),ds=Mt(this.weekdaysMin(gr,"")),us=Mt(this.weekdaysShort(gr,"")),zs=Mt(this.weekdays(gr,"")),bt.push(ds),be.push(us),st.push(zs),ei.push(ds),ei.push(us),ei.push(zs);bt.sort(ye),be.sort(ye),st.sort(ye),ei.sort(ye),this._weekdaysRegex=new RegExp("^("+ei.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+st.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+be.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+bt.join("|")+")","i")}function $o(){return this.hours()%12||12}function No(ye,bt){z(ye,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),bt)})}function qr(ye,bt){return bt._meridiemParse}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,$o),z("k",["kk",2],0,function Ar(){return this.hours()||24}),z("hmm",0,0,function(){return""+$o.apply(this)+re(this.minutes(),2)}),z("hmmss",0,0,function(){return""+$o.apply(this)+re(this.minutes(),2)+re(this.seconds(),2)}),z("Hmm",0,0,function(){return""+this.hours()+re(this.minutes(),2)}),z("Hmmss",0,0,function(){return""+this.hours()+re(this.minutes(),2)+re(this.seconds(),2)}),No("a",!0),No("A",!1),Bt("a",qr),Bt("A",qr),Bt("H",nn,oi),Bt("h",nn,Fn),Bt("k",nn,Fn),Bt("HH",nn,dn),Bt("hh",nn,dn),Bt("kk",nn,dn),Bt("hmm",Mi),Bt("hmmss",mi),Bt("Hmm",Mi),Bt("Hmmss",mi),Ne(["H","HH"],ot),Ne(["k","kk"],function(ye,bt,be){var st=Lt(ye);bt[ot]=24===st?0:st}),Ne(["a","A"],function(ye,bt,be){be._isPm=be._locale.isPM(ye),be._meridiem=ye}),Ne(["h","hh"],function(ye,bt,be){bt[ot]=Lt(ye),k(be).bigHour=!0}),Ne("hmm",function(ye,bt,be){var st=ye.length-2;bt[ot]=Lt(ye.substr(0,st)),bt[pn]=Lt(ye.substr(st)),k(be).bigHour=!0}),Ne("hmmss",function(ye,bt,be){var st=ye.length-4,ei=ye.length-2;bt[ot]=Lt(ye.substr(0,st)),bt[pn]=Lt(ye.substr(st,2)),bt[_i]=Lt(ye.substr(ei)),k(be).bigHour=!0}),Ne("Hmm",function(ye,bt,be){var st=ye.length-2;bt[ot]=Lt(ye.substr(0,st)),bt[pn]=Lt(ye.substr(st))}),Ne("Hmmss",function(ye,bt,be){var st=ye.length-4,ei=ye.length-2;bt[ot]=Lt(ye.substr(0,st)),bt[pn]=Lt(ye.substr(st,2)),bt[_i]=Lt(ye.substr(ei))});var Zr=ki("Hours",!0);var ll,Hs={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Lo,monthsShort:or,week:{dow:0,doy:6},weekdays:mo,weekdaysMin:yo,weekdaysShort:Ii,meridiemParse:/[ap]\.?m?\.?/i},Js={},Wa={};function Za(ye,bt){var be,st=Math.min(ye.length,bt.length);for(be=0;be<st;be+=1)if(ye[be]!==bt[be])return be;return st}function sl(ye){return ye&&ye.toLowerCase().replace("_","-")}function ht(ye){var bt=null;if(void 0===Js[ye]&&he&&he.exports&&function Tt(ye){return!(!ye||!ye.match("^[^/\\\\]*$"))}(ye))try{bt=ll._abbr,i(46700)("./"+ye),yn(bt)}catch{Js[ye]=null}return Js[ye]}function yn(ye,bt){var be;return ye&&((be=s(bt)?co(ye):vi(ye,bt))?ll=be:typeof console<"u"&&console.warn&&console.warn("Locale "+ye+" not found. Did you forget to load it?")),ll._abbr}function vi(ye,bt){if(null!==bt){var be,st=Hs;if(bt.abbr=ye,null!=Js[ye])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),st=Js[ye]._config;else if(null!=bt.parentLocale)if(null!=Js[bt.parentLocale])st=Js[bt.parentLocale]._config;else{if(null==(be=ht(bt.parentLocale)))return Wa[bt.parentLocale]||(Wa[bt.parentLocale]=[]),Wa[bt.parentLocale].push({name:ye,config:bt}),null;st=be._config}return Js[ye]=new X(K(st,bt)),Wa[ye]&&Wa[ye].forEach(function(ei){vi(ei.name,ei.config)}),yn(ye),Js[ye]}return delete Js[ye],null}function co(ye){var bt;if(ye&&ye._locale&&ye._locale._abbr&&(ye=ye._locale._abbr),!ye)return ll;if(!a(ye)){if(bt=ht(ye))return bt;ye=[ye]}return function Jt(ye){for(var be,st,ei,_o,bt=0;bt<ye.length;){for(be=(_o=sl(ye[bt]).split("-")).length,st=(st=sl(ye[bt+1]))?st.split("-"):null;be>0;){if(ei=ht(_o.slice(0,be).join("-")))return ei;if(st&&st.length>=be&&Za(_o,st)>=be-1)break;be--}bt++}return ll}(ye)}function yr(ye){var bt,be=ye._a;return be&&-2===k(ye).overflow&&(bt=be[go]<0||be[go]>11?go:be[si]<1||be[si]>Xo(be[Pi],be[go])?si:be[ot]<0||be[ot]>24||24===be[ot]&&(0!==be[pn]||0!==be[_i]||0!==be[wi])?ot:be[pn]<0||be[pn]>59?pn:be[_i]<0||be[_i]>59?_i:be[wi]<0||be[wi]>999?wi:-1,k(ye)._overflowDayOfYear&&(bt<Pi||bt>si)&&(bt=si),k(ye)._overflowWeeks&&-1===bt&&(bt=hi),k(ye)._overflowWeekday&&-1===bt&&(bt=zn),k(ye).overflow=bt),ye}var Ur=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ss=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gs=/Z|[+-]\d\d(?::?\d\d)?/,Pr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ys=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],da=/^\/?Date\((-?\d+)/i,Va=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ga={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function al(ye){var bt,be,_o,gr,ds,us,st=ye._i,ei=Ur.exec(st)||ss.exec(st),zs=Pr.length,Ta=ys.length;if(ei){for(k(ye).iso=!0,bt=0,be=zs;bt<be;bt++)if(Pr[bt][1].exec(ei[1])){gr=Pr[bt][0],_o=!1!==Pr[bt][2];break}if(null==gr)return void(ye._isValid=!1);if(ei[3]){for(bt=0,be=Ta;bt<be;bt++)if(ys[bt][1].exec(ei[3])){ds=(ei[2]||" ")+ys[bt][0];break}if(null==ds)return void(ye._isValid=!1)}if(!_o&&null!=ds)return void(ye._isValid=!1);if(ei[4]){if(!gs.exec(ei[4]))return void(ye._isValid=!1);us="Z"}ye._f=gr+(ds||"")+(us||""),Hn(ye)}else ye._isValid=!1}function La(ye){var bt=parseInt(ye,10);return bt<=49?2e3+bt:bt<=999?1900+bt:bt}function Xe(ye){var be,bt=Va.exec(function ra(ye){return ye.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(ye._i));if(bt){if(be=function ur(ye,bt,be,st,ei,_o){var gr=[La(ye),or.indexOf(bt),parseInt(be,10),parseInt(st,10),parseInt(ei,10)];return _o&&gr.push(parseInt(_o,10)),gr}(bt[4],bt[3],bt[2],bt[5],bt[6],bt[7]),!function Ls(ye,bt,be){return!ye||Ii.indexOf(ye)===new Date(bt[0],bt[1],bt[2]).getDay()||(k(be).weekdayMismatch=!0,be._isValid=!1,!1)}(bt[1],be,ye))return;ye._a=be,ye._tzm=function vn(ye,bt,be){if(ye)return ga[ye];if(bt)return 0;var st=parseInt(be,10),ei=st%100;return(st-ei)/100*60+ei}(bt[8],bt[9],bt[10]),ye._d=Ea.apply(null,ye._a),ye._d.setUTCMinutes(ye._d.getUTCMinutes()-ye._tzm),k(ye).rfc2822=!0}else ye._isValid=!1}function ze(ye,bt,be){return ye??bt??be}function it(ye){var bt,be,ei,_o,gr,st=[];if(!ye._d){for(ei=function St(ye){var bt=new Date(n.now());return ye._useUTC?[bt.getUTCFullYear(),bt.getUTCMonth(),bt.getUTCDate()]:[bt.getFullYear(),bt.getMonth(),bt.getDate()]}(ye),ye._w&&null==ye._a[si]&&null==ye._a[go]&&function Dt(ye){var bt,be,st,ei,_o,gr,ds,us,zs;null!=(bt=ye._w).GG||null!=bt.W||null!=bt.E?(_o=1,gr=4,be=ze(bt.GG,ye._a[Pi],Mr(Ot(),1,4).year),st=ze(bt.W,1),((ei=ze(bt.E,1))<1||ei>7)&&(us=!0)):(_o=ye._locale._week.dow,gr=ye._locale._week.doy,zs=Mr(Ot(),_o,gr),be=ze(bt.gg,ye._a[Pi],zs.year),st=ze(bt.w,zs.week),null!=bt.d?((ei=bt.d)<0||ei>6)&&(us=!0):null!=bt.e?(ei=bt.e+_o,(bt.e<0||bt.e>6)&&(us=!0)):ei=_o),st<1||st>Li(be,_o,gr)?k(ye)._overflowWeeks=!0:null!=us?k(ye)._overflowWeekday=!0:(ds=tr(be,st,ei,_o,gr),ye._a[Pi]=ds.year,ye._dayOfYear=ds.dayOfYear)}(ye),null!=ye._dayOfYear&&(gr=ze(ye._a[Pi],ei[Pi]),(ye._dayOfYear>Ei(gr)||0===ye._dayOfYear)&&(k(ye)._overflowDayOfYear=!0),be=Ea(gr,0,ye._dayOfYear),ye._a[go]=be.getUTCMonth(),ye._a[si]=be.getUTCDate()),bt=0;bt<3&&null==ye._a[bt];++bt)ye._a[bt]=st[bt]=ei[bt];for(;bt<7;bt++)ye._a[bt]=st[bt]=null==ye._a[bt]?2===bt?1:0:ye._a[bt];24===ye._a[ot]&&0===ye._a[pn]&&0===ye._a[_i]&&0===ye._a[wi]&&(ye._nextDay=!0,ye._a[ot]=0),ye._d=(ye._useUTC?Ea:Oa).apply(null,st),_o=ye._useUTC?ye._d.getUTCDay():ye._d.getDay(),null!=ye._tzm&&ye._d.setUTCMinutes(ye._d.getUTCMinutes()-ye._tzm),ye._nextDay&&(ye._a[ot]=24),ye._w&&typeof ye._w.d<"u"&&ye._w.d!==_o&&(k(ye).weekdayMismatch=!0)}}function Hn(ye){if(ye._f!==n.ISO_8601)if(ye._f!==n.RFC_2822){ye._a=[],k(ye).empty=!0;var be,st,ei,_o,gr,zs,Ta,bt=""+ye._i,ds=bt.length,us=0;for(Ta=(ei=_e(ye._f,ye._locale).match(de)||[]).length,be=0;be<Ta;be++)(st=(bt.match(xt(_o=ei[be],ye))||[])[0])&&((gr=bt.substr(0,bt.indexOf(st))).length>0&&k(ye).unusedInput.push(gr),bt=bt.slice(bt.indexOf(st)+st.length),us+=st.length),H[_o]?(st?k(ye).empty=!1:k(ye).unusedTokens.push(_o),ln(_o,st,ye)):ye._strict&&!st&&k(ye).unusedTokens.push(_o);k(ye).charsLeftOver=ds-us,bt.length>0&&k(ye).unusedInput.push(bt),ye._a[ot]<=12&&!0===k(ye).bigHour&&ye._a[ot]>0&&(k(ye).bigHour=void 0),k(ye).parsedDateParts=ye._a.slice(0),k(ye).meridiem=ye._meridiem,ye._a[ot]=function Ui(ye,bt,be){var st;return null==be?bt:null!=ye.meridiemHour?ye.meridiemHour(bt,be):(null!=ye.isPM&&((st=ye.isPM(be))&&bt<12&&(bt+=12),!st&&12===bt&&(bt=0)),bt)}(ye._locale,ye._a[ot],ye._meridiem),null!==(zs=k(ye).era)&&(ye._a[Pi]=ye._locale.erasConvertYear(zs,ye._a[Pi])),it(ye),yr(ye)}else Xe(ye);else al(ye)}function Dn(ye){var bt=ye._i,be=ye._f;return ye._locale=ye._locale||co(ye._l),null===bt||void 0===be&&""===bt?M({nullInput:!0}):("string"==typeof bt&&(ye._i=bt=ye._locale.preparse(bt)),L(bt)?new I(yr(bt)):(_(bt)?ye._d=bt:a(be)?function Co(ye){var bt,be,st,ei,_o,gr,ds=!1,us=ye._f.length;if(0===us)return k(ye).invalidFormat=!0,void(ye._d=new Date(NaN));for(ei=0;ei<us;ei++)_o=0,gr=!1,bt=b({},ye),null!=ye._useUTC&&(bt._useUTC=ye._useUTC),bt._f=ye._f[ei],Hn(bt),g(bt)&&(gr=!0),_o+=k(bt).charsLeftOver,_o+=10*k(bt).unusedTokens.length,k(bt).score=_o,ds?_o<st&&(st=_o,be=bt):(null==st||_o<st||gr)&&(st=_o,be=bt,gr&&(ds=!0));R(ye,be||bt)}(ye):be?Hn(ye):function kn(ye){var bt=ye._i;s(bt)?ye._d=new Date(n.now()):_(bt)?ye._d=new Date(bt.valueOf()):"string"==typeof bt?function Ke(ye){var bt=da.exec(ye._i);null===bt?(al(ye),!1===ye._isValid&&(delete ye._isValid,Xe(ye),!1===ye._isValid&&(delete ye._isValid,ye._strict?ye._isValid=!1:n.createFromInputFallback(ye)))):ye._d=new Date(+bt[1])}(ye):a(bt)?(ye._a=C(bt.slice(0),function(be){return parseInt(be,10)}),it(ye)):l(bt)?function Sn(ye){if(!ye._d){var bt=xn(ye._i);ye._a=C([bt.year,bt.month,void 0===bt.day?bt.date:bt.day,bt.hour,bt.minute,bt.second,bt.millisecond],function(st){return st&&parseInt(st,10)}),it(ye)}}(ye):A(bt)?ye._d=new Date(bt):n.createFromInputFallback(ye)}(ye),g(ye)||(ye._d=null),ye))}function ui(ye,bt,be,st,ei){var _o={};return(!0===bt||!1===bt)&&(st=bt,bt=void 0),(!0===be||!1===be)&&(st=be,be=void 0),(l(ye)&&d(ye)||a(ye)&&0===ye.length)&&(ye=void 0),_o._isAMomentObject=!0,_o._useUTC=_o._isUTC=ei,_o._l=be,_o._i=ye,_o._f=bt,_o._strict=st,function Vn(ye){var bt=new I(yr(Dn(ye)));return bt._nextDay&&(bt.add(1,"d"),bt._nextDay=void 0),bt}(_o)}function Ot(ye,bt,be,st){return ui(ye,bt,be,st,!1)}n.createFromInputFallback=F("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(ye){ye._d=new Date(ye._i+(ye._useUTC?" UTC":""))}),n.ISO_8601=function(){},n.RFC_2822=function(){};var en=F("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var ye=Ot.apply(null,arguments);return this.isValid()&&ye.isValid()?ye<this?this:ye:M()}),cn=F("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var ye=Ot.apply(null,arguments);return this.isValid()&&ye.isValid()?ye>this?this:ye:M()});function Ht(ye,bt){var be,st;if(1===bt.length&&a(bt[0])&&(bt=bt[0]),!bt.length)return Ot();for(be=bt[0],st=1;st<bt.length;++st)(!bt[st].isValid()||bt[st][ye](be))&&(be=bt[st]);return be}var $e=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Be(ye){var bt=xn(ye),be=bt.year||0,st=bt.quarter||0,ei=bt.month||0,_o=bt.week||bt.isoWeek||0,gr=bt.day||0,ds=bt.hour||0,us=bt.minute||0,zs=bt.second||0,Ta=bt.millisecond||0;this._isValid=function Je(ye){var bt,st,be=!1,ei=$e.length;for(bt in ye)if(u(ye,bt)&&(-1===Bi.call($e,bt)||null!=ye[bt]&&isNaN(ye[bt])))return!1;for(st=0;st<ei;++st)if(ye[$e[st]]){if(be)return!1;parseFloat(ye[$e[st]])!==Lt(ye[$e[st]])&&(be=!0)}return!0}(bt),this._milliseconds=+Ta+1e3*zs+6e4*us+1e3*ds*60*60,this._days=+gr+7*_o,this._months=+ei+3*st+12*be,this._data={},this._locale=co(),this._bubble()}function At(ye){return ye instanceof Be}function Rt(ye){return ye<0?-1*Math.round(-1*ye):Math.round(ye)}function $t(ye,bt){z(ye,0,0,function(){var be=this.utcOffset(),st="+";return be<0&&(be=-be,st="-"),st+re(~~(be/60),2)+bt+re(~~be%60,2)})}$t("Z",":"),$t("ZZ",""),Bt("Z",En),Bt("ZZ",En),Ne(["Z","ZZ"],function(ye,bt,be){be._useUTC=!0,be._tzm=Nn(En,ye)});var Xn=/([\+\-]|\d\d)/gi;function Nn(ye,bt){var ei,_o,be=(bt||"").match(ye);return null===be?null:0===(_o=60*(ei=((be[be.length-1]||[])+"").match(Xn)||["-",0,0])[1]+Lt(ei[2]))?0:"+"===ei[0]?_o:-_o}function Ae(ye,bt){var be,st;return bt._isUTC?(be=bt.clone(),st=(L(ye)||_(ye)?ye.valueOf():Ot(ye).valueOf())-be.valueOf(),be._d.setTime(be._d.valueOf()+st),n.updateOffset(be,!1),be):Ot(ye).local()}function He(ye){return-Math.round(ye._d.getTimezoneOffset())}function Vi(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var Jn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,zt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function mn(ye,bt){var ei,_o,gr,be=ye,st=null;return At(ye)?be={ms:ye._milliseconds,d:ye._days,M:ye._months}:A(ye)||!isNaN(+ye)?(be={},bt?be[bt]=+ye:be.milliseconds=+ye):(st=Jn.exec(ye))?(ei="-"===st[1]?-1:1,be={y:0,d:Lt(st[si])*ei,h:Lt(st[ot])*ei,m:Lt(st[pn])*ei,s:Lt(st[_i])*ei,ms:Lt(Rt(1e3*st[wi]))*ei}):(st=zt.exec(ye))?be={y:Qn(st[2],ei="-"===st[1]?-1:1),M:Qn(st[3],ei),w:Qn(st[4],ei),d:Qn(st[5],ei),h:Qn(st[6],ei),m:Qn(st[7],ei),s:Qn(st[8],ei)}:null==be?be={}:"object"==typeof be&&("from"in be||"to"in be)&&(gr=function Oi(ye,bt){var be;return ye.isValid()&&bt.isValid()?(bt=Ae(bt,ye),ye.isBefore(bt)?be=ci(ye,bt):((be=ci(bt,ye)).milliseconds=-be.milliseconds,be.months=-be.months),be):{milliseconds:0,months:0}}(Ot(be.from),Ot(be.to)),(be={}).ms=gr.milliseconds,be.M=gr.months),_o=new Be(be),At(ye)&&u(ye,"_locale")&&(_o._locale=ye._locale),At(ye)&&u(ye,"_isValid")&&(_o._isValid=ye._isValid),_o}function Qn(ye,bt){var be=ye&&parseFloat(ye.replace(",","."));return(isNaN(be)?0:be)*bt}function ci(ye,bt){var be={};return be.months=bt.month()-ye.month()+12*(bt.year()-ye.year()),ye.clone().add(be.months,"M").isAfter(bt)&&--be.months,be.milliseconds=+bt-+ye.clone().add(be.months,"M"),be}function Ai(ye,bt){return function(be,st){var _o;return null!==st&&!isNaN(+st)&&(O(bt,"moment()."+bt+"(period, number) is deprecated. Please use moment()."+bt+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),_o=be,be=st,st=_o),Pn(this,mn(be,st),ye),this}}function Pn(ye,bt,be,st){var ei=bt._milliseconds,_o=Rt(bt._days),gr=Rt(bt._months);ye.isValid()&&(st=st??!0,gr&&Gn(ye,bo(ye,"Month")+gr*be),_o&&jo(ye,"Date",bo(ye,"Date")+_o*be),ei&&ye._d.setTime(ye._d.valueOf()+ei*be),st&&n.updateOffset(ye,_o||gr))}mn.fn=Be.prototype,mn.invalid=function Ge(){return mn(NaN)};var qn=Ai(1,"add"),Ni=Ai(-1,"subtract");function Ue(ye){return"string"==typeof ye||ye instanceof String}function Ye(ye){return L(ye)||_(ye)||Ue(ye)||A(ye)||function pe(ye){var bt=a(ye),be=!1;return bt&&(be=0===ye.filter(function(st){return!A(st)&&Ue(ye)}).length),bt&&be}(ye)||function Me(ye){var ei,bt=l(ye)&&!d(ye),be=!1,st=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],gr=st.length;for(ei=0;ei<gr;ei+=1)be=be||u(ye,st[ei]);return bt&&be}(ye)||null==ye}function Wi(ye,bt){if(ye.date()<bt.date())return-Wi(bt,ye);var be=12*(bt.year()-ye.year())+(bt.month()-ye.month()),st=ye.clone().add(be,"months");return-(be+(bt-st<0?(bt-st)/(st-ye.clone().add(be-1,"months")):(bt-st)/(ye.clone().add(be+1,"months")-st)))||0}function ts(ye){var bt;return void 0===ye?this._locale._abbr:(null!=(bt=co(ye))&&(this._locale=bt),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var na=F("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(ye){return void 0===ye?this.localeData():this.locale(ye)});function Xs(){return this._locale}var Ws=6e4,cs=60*Ws,Ps=3506328*cs;function Qi(ye,bt){return(ye%bt+bt)%bt}function vo(ye,bt,be){return ye<100&&ye>=0?new Date(ye+400,bt,be)-Ps:new Date(ye,bt,be).valueOf()}function pi(ye,bt,be){return ye<100&&ye>=0?Date.UTC(ye+400,bt,be)-Ps:Date.UTC(ye,bt,be)}function Ya(ye,bt){return bt.erasAbbrRegex(ye)}function nd(){var ei,_o,gr,ds,us,ye=[],bt=[],be=[],st=[],zs=this.eras();for(ei=0,_o=zs.length;ei<_o;++ei)gr=Mt(zs[ei].name),ds=Mt(zs[ei].abbr),us=Mt(zs[ei].narrow),bt.push(gr),ye.push(ds),be.push(us),st.push(gr),st.push(ds),st.push(us);this._erasRegex=new RegExp("^("+st.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+bt.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+ye.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+be.join("|")+")","i")}function Ct(ye,bt){z(0,[ye,ye.length],0,bt)}function Do(ye,bt,be,st,ei){var _o;return null==ye?Mr(this,st,ei).year:(bt>(_o=Li(ye,st,ei))&&(bt=_o),Po.call(this,ye,bt,be,st,ei))}function Po(ye,bt,be,st,ei){var _o=tr(ye,bt,be,st,ei),gr=Ea(_o.year,0,_o.dayOfYear);return this.year(gr.getUTCFullYear()),this.month(gr.getUTCMonth()),this.date(gr.getUTCDate()),this}z("N",0,0,"eraAbbr"),z("NN",0,0,"eraAbbr"),z("NNN",0,0,"eraAbbr"),z("NNNN",0,0,"eraName"),z("NNNNN",0,0,"eraNarrow"),z("y",["y",1],"yo","eraYear"),z("y",["yy",2],0,"eraYear"),z("y",["yyy",3],0,"eraYear"),z("y",["yyyy",4],0,"eraYear"),Bt("N",Ya),Bt("NN",Ya),Bt("NNN",Ya),Bt("NNNN",function pa(ye,bt){return bt.erasNameRegex(ye)}),Bt("NNNNN",function rl(ye,bt){return bt.erasNarrowRegex(ye)}),Ne(["N","NN","NNN","NNNN","NNNNN"],function(ye,bt,be,st){var ei=be._locale.erasParse(ye,st,be._strict);ei?k(be).era=ei:k(be).invalidEra=ye}),Bt("y",Bn),Bt("yy",Bn),Bt("yyy",Bn),Bt("yyyy",Bn),Bt("yo",function Nl(ye,bt){return bt._eraYearOrdinalRegex||Bn}),Ne(["y","yy","yyy","yyyy"],Pi),Ne(["yo"],function(ye,bt,be,st){var ei;be._locale._eraYearOrdinalRegex&&(ei=ye.match(be._locale._eraYearOrdinalRegex)),bt[Pi]=be._locale.eraYearOrdinalParse?be._locale.eraYearOrdinalParse(ye,ei):parseInt(ye,10)}),z(0,["gg",2],0,function(){return this.weekYear()%100}),z(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ct("gggg","weekYear"),Ct("ggggg","weekYear"),Ct("GGGG","isoWeekYear"),Ct("GGGGG","isoWeekYear"),Bt("G",Xt),Bt("g",Xt),Bt("GG",nn,dn),Bt("gg",nn,dn),Bt("GGGG",Ko,fn),Bt("gggg",Ko,fn),Bt("GGGGG",xo,yi),Bt("ggggg",xo,yi),vt(["gggg","ggggg","GGGG","GGGGG"],function(ye,bt,be,st){bt[st.substr(0,2)]=Lt(ye)}),vt(["gg","GG"],function(ye,bt,be,st){bt[st]=n.parseTwoDigitYear(ye)}),z("Q",0,"Qo","quarter"),Bt("Q",Wt),Ne("Q",function(ye,bt){bt[go]=3*(Lt(ye)-1)}),z("D",["DD",2],"Do","date"),Bt("D",nn,Fn),Bt("DD",nn,dn),Bt("Do",function(ye,bt){return ye?bt._dayOfMonthOrdinalParse||bt._ordinalParse:bt._dayOfMonthOrdinalParseLenient}),Ne(["D","DD"],si),Ne("Do",function(ye,bt){bt[si]=Lt(ye.match(nn)[0])});var hs=ki("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),Bt("DDD",Eo),Bt("DDDD",sn),Ne(["DDD","DDDD"],function(ye,bt,be){be._dayOfYear=Lt(ye)}),z("m",["mm",2],0,"minute"),Bt("m",nn,oi),Bt("mm",nn,dn),Ne(["m","mm"],pn);var ca=ki("Minutes",!1);z("s",["ss",2],0,"second"),Bt("s",nn,oi),Bt("ss",nn,dn),Ne(["s","ss"],_i);var cl,yc,za=ki("Seconds",!1);for(z("S",0,0,function(){return~~(this.millisecond()/100)}),z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,function(){return 10*this.millisecond()}),z(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),z(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),z(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),z(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),z(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Bt("S",Eo,Wt),Bt("SS",Eo,dn),Bt("SSS",Eo,sn),cl="SSSS";cl.length<=9;cl+="S")Bt(cl,Bn);function bc(ye,bt){bt[wi]=Lt(1e3*("0."+ye))}for(cl="S";cl.length<=9;cl+="S")Ne(cl,bc);yc=ki("Milliseconds",!1),z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var va=I.prototype;function Mu(ye){return ye}va.add=qn,va.calendar=function on(ye,bt){1===arguments.length&&(arguments[0]?Ye(arguments[0])?(ye=arguments[0],bt=void 0):function lt(ye){var ei,bt=l(ye)&&!d(ye),be=!1,st=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(ei=0;ei<st.length;ei+=1)be=be||u(ye,st[ei]);return bt&&be}(arguments[0])&&(bt=arguments[0],ye=void 0):(ye=void 0,bt=void 0));var be=ye||Ot(),st=Ae(be,this).startOf("day"),ei=n.calendarFormat(this,st)||"sameElse",_o=bt&&(U(bt[ei])?bt[ei].call(this,be):bt[ei]);return this.format(_o||this.localeData().calendar(ei,this,Ot(be)))},va.clone=function zi(){return new I(this)},va.diff=function io(ye,bt,be){var st,ei,_o;if(!this.isValid())return NaN;if(!(st=Ae(ye,this)).isValid())return NaN;switch(ei=6e4*(st.utcOffset()-this.utcOffset()),bt=$n(bt)){case"year":_o=Wi(this,st)/12;break;case"month":_o=Wi(this,st);break;case"quarter":_o=Wi(this,st)/3;break;case"second":_o=(this-st)/1e3;break;case"minute":_o=(this-st)/6e4;break;case"hour":_o=(this-st)/36e5;break;case"day":_o=(this-st-ei)/864e5;break;case"week":_o=(this-st-ei)/6048e5;break;default:_o=this-st}return be?_o:pt(_o)},va.endOf=function Ro(ye){var bt,be;if(void 0===(ye=$n(ye))||"millisecond"===ye||!this.isValid())return this;switch(be=this._isUTC?pi:vo,ye){case"year":bt=be(this.year()+1,0,1)-1;break;case"quarter":bt=be(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":bt=be(this.year(),this.month()+1,1)-1;break;case"week":bt=be(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":bt=be(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":bt=be(this.year(),this.month(),this.date()+1)-1;break;case"hour":bt=this._d.valueOf(),bt+=cs-Qi(bt+(this._isUTC?0:this.utcOffset()*Ws),cs)-1;break;case"minute":bt=this._d.valueOf(),bt+=Ws-Qi(bt,Ws)-1;break;case"second":bt=this._d.valueOf(),bt+=1e3-Qi(bt,1e3)-1}return this._d.setTime(bt),n.updateOffset(this,!0),this},va.format=function jr(ye){ye||(ye=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var bt=ne(this,ye);return this.localeData().postformat(bt)},va.from=function fs(ye,bt){return this.isValid()&&(L(ye)&&ye.isValid()||Ot(ye).isValid())?mn({to:this,from:ye}).locale(this.locale()).humanize(!bt):this.localeData().invalidDate()},va.fromNow=function Ms(ye){return this.from(Ot(),ye)},va.to=function Ca(ye,bt){return this.isValid()&&(L(ye)&&ye.isValid()||Ot(ye).isValid())?mn({from:this,to:ye}).locale(this.locale()).humanize(!bt):this.localeData().invalidDate()},va.toNow=function ks(ye){return this.to(Ot(),ye)},va.get=function wn(ye){return U(this[ye=$n(ye)])?this[ye]():this},va.invalidAt=function il(){return k(this).overflow},va.isAfter=function Kn(ye,bt){var be=L(ye)?ye:Ot(ye);return!(!this.isValid()||!be.isValid())&&("millisecond"===(bt=$n(bt)||"millisecond")?this.valueOf()>be.valueOf():be.valueOf()<this.clone().startOf(bt).valueOf())},va.isBefore=function ho(ye,bt){var be=L(ye)?ye:Ot(ye);return!(!this.isValid()||!be.isValid())&&("millisecond"===(bt=$n(bt)||"millisecond")?this.valueOf()<be.valueOf():this.clone().endOf(bt).valueOf()<be.valueOf())},va.isBetween=function po(ye,bt,be,st){var ei=L(ye)?ye:Ot(ye),_o=L(bt)?bt:Ot(bt);return!!(this.isValid()&&ei.isValid()&&_o.isValid())&&("("===(st=st||"()")[0]?this.isAfter(ei,be):!this.isBefore(ei,be))&&(")"===st[1]?this.isBefore(_o,be):!this.isAfter(_o,be))},va.isSame=function $i(ye,bt){var st,be=L(ye)?ye:Ot(ye);return!(!this.isValid()||!be.isValid())&&("millisecond"===(bt=$n(bt)||"millisecond")?this.valueOf()===be.valueOf():(st=be.valueOf(),this.clone().startOf(bt).valueOf()<=st&&st<=this.clone().endOf(bt).valueOf()))},va.isSameOrAfter=function ro(ye,bt){return this.isSame(ye,bt)||this.isAfter(ye,bt)},va.isSameOrBefore=function wo(ye,bt){return this.isSame(ye,bt)||this.isBefore(ye,bt)},va.isValid=function Ka(){return g(this)},va.lang=na,va.locale=ts,va.localeData=Xs,va.max=cn,va.min=en,va.parsingFlags=function nl(){return R({},k(this))},va.set=function Zi(ye,bt){if("object"==typeof ye){var st,be=function ut(ye){var be,bt=[];for(be in ye)u(ye,be)&&bt.push({unit:be,priority:mt[be]});return bt.sort(function(st,ei){return st.priority-ei.priority}),bt}(ye=xn(ye)),ei=be.length;for(st=0;st<ei;st++)this[be[st].unit](ye[be[st].unit])}else if(U(this[ye=$n(ye)]))return this[ye](bt);return this},va.startOf=function to(ye){var bt,be;if(void 0===(ye=$n(ye))||"millisecond"===ye||!this.isValid())return this;switch(be=this._isUTC?pi:vo,ye){case"year":bt=be(this.year(),0,1);break;case"quarter":bt=be(this.year(),this.month()-this.month()%3,1);break;case"month":bt=be(this.year(),this.month(),1);break;case"week":bt=be(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":bt=be(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":bt=be(this.year(),this.month(),this.date());break;case"hour":bt=this._d.valueOf(),bt-=Qi(bt+(this._isUTC?0:this.utcOffset()*Ws),cs);break;case"minute":bt=this._d.valueOf(),bt-=Qi(bt,Ws);break;case"second":bt=this._d.valueOf(),bt-=Qi(bt,1e3)}return this._d.setTime(bt),n.updateOffset(this,!0),this},va.subtract=Ni,va.toArray=function Ys(){var ye=this;return[ye.year(),ye.month(),ye.date(),ye.hour(),ye.minute(),ye.second(),ye.millisecond()]},va.toObject=function la(){var ye=this;return{years:ye.year(),months:ye.month(),date:ye.date(),hours:ye.hours(),minutes:ye.minutes(),seconds:ye.seconds(),milliseconds:ye.milliseconds()}},va.toDate=function Os(){return new Date(this.valueOf())},va.toISOString=function cr(ye){if(!this.isValid())return null;var bt=!0!==ye,be=bt?this.clone().utc():this;return be.year()<0||be.year()>9999?ne(be,bt?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):U(Date.prototype.toISOString)?bt?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",ne(be,"Z")):ne(be,bt?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},va.inspect=function Fr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var be,st,ye="moment",bt="";return this.isLocal()||(ye=0===this.utcOffset()?"moment.utc":"moment.parseZone",bt="Z"),be="["+ye+'("]',st=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(be+st+"-MM-DD[T]HH:mm:ss.SSS"+bt+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(va[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),va.toJSON=function Da(){return this.isValid()?this.toISOString():null},va.toString=function fo(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},va.unix=function rs(){return Math.floor(this.valueOf()/1e3)},va.valueOf=function Sr(){return this._d.valueOf()-6e4*(this._offset||0)},va.creationData=function xl(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},va.eraName=function Dr(){var ye,bt,be,st=this.localeData().eras();for(ye=0,bt=st.length;ye<bt;++ye)if(be=this.clone().startOf("day").valueOf(),st[ye].since<=be&&be<=st[ye].until||st[ye].until<=be&&be<=st[ye].since)return st[ye].name;return""},va.eraNarrow=function _s(){var ye,bt,be,st=this.localeData().eras();for(ye=0,bt=st.length;ye<bt;++ye)if(be=this.clone().startOf("day").valueOf(),st[ye].since<=be&&be<=st[ye].until||st[ye].until<=be&&be<=st[ye].since)return st[ye].narrow;return""},va.eraAbbr=function ia(){var ye,bt,be,st=this.localeData().eras();for(ye=0,bt=st.length;ye<bt;++ye)if(be=this.clone().startOf("day").valueOf(),st[ye].since<=be&&be<=st[ye].until||st[ye].until<=be&&be<=st[ye].since)return st[ye].abbr;return""},va.eraYear=function Ia(){var ye,bt,be,st,ei=this.localeData().eras();for(ye=0,bt=ei.length;ye<bt;++ye)if(be=ei[ye].since<=ei[ye].until?1:-1,st=this.clone().startOf("day").valueOf(),ei[ye].since<=st&&st<=ei[ye].until||ei[ye].until<=st&&st<=ei[ye].since)return(this.year()-n(ei[ye].since).year())*be+ei[ye].offset;return this.year()},va.year=li,va.isLeapYear=function Xi(){return jn(this.year())},va.weekYear=function rn(ye){return Do.call(this,ye,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},va.isoWeekYear=function We(ye){return Do.call(this,ye,this.isoWeek(),this.isoWeekday(),1,4)},va.quarter=va.quarters=function Or(ye){return null==ye?Math.ceil((this.month()+1)/3):this.month(3*(ye-1)+this.month()%3)},va.month=Io,va.daysInMonth=function wr(){return Xo(this.year(),this.month())},va.week=va.weeks=function Rr(ye){var bt=this.localeData().week(this);return null==ye?bt:this.add(7*(ye-bt),"d")},va.isoWeek=va.isoWeeks=function br(ye){var bt=Mr(this,1,4).week;return null==ye?bt:this.add(7*(ye-bt),"d")},va.weeksInYear=function Qt(){var ye=this.localeData()._week;return Li(this.year(),ye.dow,ye.doy)},va.weeksInWeekYear=function gi(){var ye=this.localeData()._week;return Li(this.weekYear(),ye.dow,ye.doy)},va.isoWeeksInYear=function Ft(){return Li(this.year(),1,4)},va.isoWeeksInISOWeekYear=function ct(){return Li(this.isoWeekYear(),1,4)},va.date=hs,va.day=va.days=function Cr(ye){if(!this.isValid())return null!=ye?this:NaN;var bt=bo(this,"Day");return null!=ye?(ye=function Ti(ye,bt){return"string"!=typeof ye?ye:isNaN(ye)?"number"==typeof(ye=bt.weekdaysParse(ye))?ye:null:parseInt(ye,10)}(ye,this.localeData()),this.add(ye-bt,"d")):bt},va.weekday=function kr(ye){if(!this.isValid())return null!=ye?this:NaN;var bt=(this.day()+7-this.localeData()._week.dow)%7;return null==ye?bt:this.add(ye-bt,"d")},va.isoWeekday=function xs(ye){if(!this.isValid())return null!=ye?this:NaN;if(null!=ye){var bt=function mr(ye,bt){return"string"==typeof ye?bt.weekdaysParse(ye)%7||7:isNaN(ye)?null:ye}(ye,this.localeData());return this.day(this.day()%7?bt:bt-7)}return this.day()||7},va.dayOfYear=function Zs(ye){var bt=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==ye?bt:this.add(ye-bt,"d")},va.hour=va.hours=Zr,va.minute=va.minutes=ca,va.second=va.seconds=za,va.millisecond=va.milliseconds=yc,va.utcOffset=function Kt(ye,bt,be){var ei,st=this._offset||0;if(!this.isValid())return null!=ye?this:NaN;if(null!=ye){if("string"==typeof ye){if(null===(ye=Nn(En,ye)))return this}else Math.abs(ye)<16&&!be&&(ye*=60);return!this._isUTC&&bt&&(ei=He(this)),this._offset=ye,this._isUTC=!0,null!=ei&&this.add(ei,"m"),st!==ye&&(!bt||this._changeInProgress?Pn(this,mn(ye-st,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?st:He(this)},va.utc=function Fi(ye){return this.utcOffset(0,ye)},va.local=function Ci(ye){return this._isUTC&&(this.utcOffset(0,ye),this._isUTC=!1,ye&&this.subtract(He(this),"m")),this},va.parseZone=function xi(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var ye=Nn(Ji,this._i);null!=ye?this.utcOffset(ye):this.utcOffset(0,!0)}return this},va.hasAlignedHourOffset=function Wn(ye){return!!this.isValid()&&(ye=ye?Ot(ye).utcOffset():0,(this.utcOffset()-ye)%60==0)},va.isDST=function Vt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},va.isLocal=function bn(){return!!this.isValid()&&!this._isUTC},va.isUtcOffset=function ii(){return!!this.isValid()&&this._isUTC},va.isUtc=Vi,va.isUTC=Vi,va.zoneAbbr=function ec(){return this._isUTC?"UTC":""},va.zoneName=function Wl(){return this._isUTC?"Coordinated Universal Time":""},va.dates=F("dates accessor is deprecated. Use date instead.",hs),va.months=F("months accessor is deprecated. Use month instead",Io),va.years=F("years accessor is deprecated. Use year instead",li),va.zone=F("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function On(ye,bt){return null!=ye?("string"!=typeof ye&&(ye=-ye),this.utcOffset(ye,bt),this):-this.utcOffset()}),va.isDSTShifted=F("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function qt(){if(!s(this._isDSTShifted))return this._isDSTShifted;var bt,ye={};return b(ye,this),(ye=Dn(ye))._a?(bt=ye._isUTC?x(ye._a):Ot(ye._a),this._isDSTShifted=this.isValid()&&function Pt(ye,bt,be){var gr,st=Math.min(ye.length,bt.length),ei=Math.abs(ye.length-bt.length),_o=0;for(gr=0;gr<st;gr++)(be&&ye[gr]!==bt[gr]||!be&&Lt(ye[gr])!==Lt(bt[gr]))&&_o++;return _o+ei}(ye._a,bt.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var Tl=X.prototype;function cc(ye,bt,be,st){var ei=co(),_o=x().set(st,bt);return ei[be](_o,ye)}function Id(ye,bt,be){if(A(ye)&&(bt=ye,ye=void 0),ye=ye||"",null!=bt)return cc(ye,bt,be,"month");var st,ei=[];for(st=0;st<12;st++)ei[st]=cc(ye,st,be,"month");return ei}function vu(ye,bt,be,st){"boolean"==typeof ye?(A(bt)&&(be=bt,bt=void 0),bt=bt||""):(be=bt=ye,ye=!1,A(bt)&&(be=bt,bt=void 0),bt=bt||"");var gr,ei=co(),_o=ye?ei._week.dow:0,ds=[];if(null!=be)return cc(bt,(be+_o)%7,st,"day");for(gr=0;gr<7;gr++)ds[gr]=cc(bt,(gr+_o)%7,st,"day");return ds}Tl.calendar=function Q(ye,bt,be){var st=this._calendar[ye]||this._calendar.sameElse;return U(st)?st.call(bt,be):st},Tl.longDateFormat=function Ce(ye){var bt=this._longDateFormat[ye],be=this._longDateFormat[ye.toUpperCase()];return bt||!be?bt:(this._longDateFormat[ye]=be.match(de).map(function(st){return"MMMM"===st||"MM"===st||"DD"===st||"dddd"===st?st.slice(1):st}).join(""),this._longDateFormat[ye])},Tl.invalidDate=function De(){return this._invalidDate},Tl.ordinal=function Oe(ye){return this._ordinal.replace("%d",ye)},Tl.preparse=Mu,Tl.postformat=Mu,Tl.relativeTime=function Gt(ye,bt,be,st){var ei=this._relativeTime[be];return U(ei)?ei(ye,bt,be,st):ei.replace(/%d/i,ye)},Tl.pastFuture=function Ut(ye,bt){var be=this._relativeTime[ye>0?"future":"past"];return U(be)?be(bt):be.replace(/%s/i,bt)},Tl.set=function V(ye){var bt,be;for(be in ye)u(ye,be)&&(U(bt=ye[be])?this[be]=bt:this["_"+be]=bt);this._config=ye,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Tl.eras=function eo(ye,bt){var be,st,ei,_o=this._eras||co("en")._eras;for(be=0,st=_o.length;be<st;++be)switch("string"==typeof _o[be].since&&(ei=n(_o[be].since).startOf("day"),_o[be].since=ei.valueOf()),typeof _o[be].until){case"undefined":_o[be].until=1/0;break;case"string":ei=n(_o[be].until).startOf("day").valueOf(),_o[be].until=ei.valueOf()}return _o},Tl.erasParse=function To(ye,bt,be){var st,ei,gr,ds,us,_o=this.eras();for(ye=ye.toUpperCase(),st=0,ei=_o.length;st<ei;++st)if(gr=_o[st].name.toUpperCase(),ds=_o[st].abbr.toUpperCase(),us=_o[st].narrow.toUpperCase(),be)switch(bt){case"N":case"NN":case"NNN":if(ds===ye)return _o[st];break;case"NNNN":if(gr===ye)return _o[st];break;case"NNNNN":if(us===ye)return _o[st]}else if([gr,ds,us].indexOf(ye)>=0)return _o[st]},Tl.erasConvertYear=function Qo(ye,bt){var be=ye.since<=ye.until?1:-1;return void 0===bt?n(ye.since).year():n(ye.since).year()+(bt-ye.offset)*be},Tl.erasAbbrRegex=function wa(ye){return u(this,"_erasAbbrRegex")||nd.call(this),ye?this._erasAbbrRegex:this._erasRegex},Tl.erasNameRegex=function ar(ye){return u(this,"_erasNameRegex")||nd.call(this),ye?this._erasNameRegex:this._erasRegex},Tl.erasNarrowRegex=function _l(ye){return u(this,"_erasNarrowRegex")||nd.call(this),ye?this._erasNarrowRegex:this._erasRegex},Tl.months=function ji(ye,bt){return ye?a(this._months)?this._months[ye.month()]:this._months[(this._months.isFormat||xr).test(bt)?"format":"standalone"][ye.month()]:a(this._months)?this._months:this._months.standalone},Tl.monthsShort=function Fo(ye,bt){return ye?a(this._monthsShort)?this._monthsShort[ye.month()]:this._monthsShort[xr.test(bt)?"format":"standalone"][ye.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Tl.monthsParse=function ai(ye,bt,be){var st,ei,_o;if(this._monthsParseExact)return rt.call(this,ye,bt,be);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),st=0;st<12;st++){if(ei=x([2e3,st]),be&&!this._longMonthsParse[st]&&(this._longMonthsParse[st]=new RegExp("^"+this.months(ei,"").replace(".","")+"$","i"),this._shortMonthsParse[st]=new RegExp("^"+this.monthsShort(ei,"").replace(".","")+"$","i")),!be&&!this._monthsParse[st]&&(_o="^"+this.months(ei,"")+"|^"+this.monthsShort(ei,""),this._monthsParse[st]=new RegExp(_o.replace(".",""),"i")),be&&"MMMM"===bt&&this._longMonthsParse[st].test(ye))return st;if(be&&"MMM"===bt&&this._shortMonthsParse[st].test(ye))return st;if(!be&&this._monthsParse[st].test(ye))return st}},Tl.monthsRegex=function ba(ye){return this._monthsParseExact?(u(this,"_monthsRegex")||ms.call(this),ye?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=as),this._monthsStrictRegex&&ye?this._monthsStrictRegex:this._monthsRegex)},Tl.monthsShortRegex=function bs(ye){return this._monthsParseExact?(u(this,"_monthsRegex")||ms.call(this),ye?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=Nr),this._monthsShortStrictRegex&&ye?this._monthsShortStrictRegex:this._monthsShortRegex)},Tl.week=function Ao(ye){return Mr(ye,this._week.dow,this._week.doy).week},Tl.firstDayOfYear=function pr(){return this._week.doy},Tl.firstDayOfWeek=function Go(){return this._week.dow},Tl.weekdays=function fi(ye,bt){var be=a(this._weekdays)?this._weekdays:this._weekdays[ye&&!0!==ye&&this._weekdays.isFormat.test(bt)?"format":"standalone"];return!0===ye?ri(be,this._week.dow):ye?be[ye.day()]:be},Tl.weekdaysMin=function _t(ye){return!0===ye?ri(this._weekdaysMin,this._week.dow):ye?this._weekdaysMin[ye.day()]:this._weekdaysMin},Tl.weekdaysShort=function Ho(ye){return!0===ye?ri(this._weekdaysShort,this._week.dow):ye?this._weekdaysShort[ye.day()]:this._weekdaysShort},Tl.weekdaysParse=function qo(ye,bt,be){var st,ei,_o;if(this._weekdaysParseExact)return Zn.call(this,ye,bt,be);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),st=0;st<7;st++){if(ei=x([2e3,1]).day(st),be&&!this._fullWeekdaysParse[st]&&(this._fullWeekdaysParse[st]=new RegExp("^"+this.weekdays(ei,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[st]=new RegExp("^"+this.weekdaysShort(ei,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[st]=new RegExp("^"+this.weekdaysMin(ei,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[st]||(_o="^"+this.weekdays(ei,"")+"|^"+this.weekdaysShort(ei,"")+"|^"+this.weekdaysMin(ei,""),this._weekdaysParse[st]=new RegExp(_o.replace(".",""),"i")),be&&"dddd"===bt&&this._fullWeekdaysParse[st].test(ye))return st;if(be&&"ddd"===bt&&this._shortWeekdaysParse[st].test(ye))return st;if(be&&"dd"===bt&&this._minWeekdaysParse[st].test(ye))return st;if(!be&&this._weekdaysParse[st].test(ye))return st}},Tl.weekdaysRegex=function Us(ye){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ua.call(this),ye?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=lr),this._weekdaysStrictRegex&&ye?this._weekdaysStrictRegex:this._weekdaysRegex)},Tl.weekdaysShortRegex=function Ts(ye){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ua.call(this),ye?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Yr),this._weekdaysShortStrictRegex&&ye?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Tl.weekdaysMinRegex=function Ss(ye){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ua.call(this),ye?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Gs),this._weekdaysMinStrictRegex&&ye?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Tl.isPM=function js(ye){return"p"===(ye+"").toLowerCase().charAt(0)},Tl.meridiem=function ls(ye,bt,be){return ye>11?be?"pm":"PM":be?"am":"AM"},yn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(ye){var bt=ye%10;return ye+(1===Lt(ye%100/10)?"th":1===bt?"st":2===bt?"nd":3===bt?"rd":"th")}}),n.lang=F("moment.lang is deprecated. Use moment.locale instead.",yn),n.langData=F("moment.langData is deprecated. Use moment.localeData instead.",co);var Cd=Math.abs;function bu(ye,bt,be,st){var ei=mn(bt,be);return ye._milliseconds+=st*ei._milliseconds,ye._days+=st*ei._days,ye._months+=st*ei._months,ye._bubble()}function mc(ye){return ye<0?Math.floor(ye):Math.ceil(ye)}function fu(ye){return 4800*ye/146097}function Fl(ye){return 146097*ye/4800}function Jl(ye){return function(){return this.as(ye)}}var gd=Jl("ms"),dd=Jl("s"),gc=Jl("m"),ih=Jl("h"),Cu=Jl("d"),id=Jl("w"),ph=Jl("M"),ud=Jl("Q"),ql=Jl("y"),Ku=gd;function Gd(ye){return function(){return this.isValid()?this._data[ye]:NaN}}var $d=Gd("milliseconds"),dc=Gd("seconds"),$c=Gd("minutes"),oc=Gd("hours"),Hd=Gd("days"),Rc=Gd("months"),_d=Gd("years");var Di=Math.round,uo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Wo(ye,bt,be,st,ei){return ei.relativeTime(bt||1,!!be,ye,st)}var Ns=Math.abs;function Is(ye){return(ye>0)-(ye<0)||+ye}function qs(){if(!this.isValid())return this.localeData().invalidDate();var st,ei,_o,gr,us,zs,Ta,Pe,ye=Ns(this._milliseconds)/1e3,bt=Ns(this._days),be=Ns(this._months),ds=this.asSeconds();return ds?(st=pt(ye/60),ei=pt(st/60),ye%=60,st%=60,_o=pt(be/12),be%=12,gr=ye?ye.toFixed(3).replace(/\.?0+$/,""):"",us=ds<0?"-":"",zs=Is(this._months)!==Is(ds)?"-":"",Ta=Is(this._days)!==Is(ds)?"-":"",Pe=Is(this._milliseconds)!==Is(ds)?"-":"",us+"P"+(_o?zs+_o+"Y":"")+(be?zs+be+"M":"")+(bt?Ta+bt+"D":"")+(ei||st||ye?"T":"")+(ei?Pe+ei+"H":"")+(st?Pe+st+"M":"")+(ye?Pe+gr+"S":"")):"P0D"}var fa=Be.prototype;
//! moment.js
return fa.isValid=function Ve(){return this._isValid},fa.abs=function yu(){var ye=this._data;return this._milliseconds=Cd(this._milliseconds),this._days=Cd(this._days),this._months=Cd(this._months),ye.milliseconds=Cd(ye.milliseconds),ye.seconds=Cd(ye.seconds),ye.minutes=Cd(ye.minutes),ye.hours=Cd(ye.hours),ye.months=Cd(ye.months),ye.years=Cd(ye.years),this},fa.add=function nu(ye,bt){return bu(this,ye,bt,1)},fa.subtract=function Zu(ye,bt){return bu(this,ye,bt,-1)},fa.as=function Jd(ye){if(!this.isValid())return NaN;var bt,be,st=this._milliseconds;if("month"===(ye=$n(ye))||"quarter"===ye||"year"===ye)switch(bt=this._days+st/864e5,be=this._months+fu(bt),ye){case"month":return be;case"quarter":return be/3;case"year":return be/12}else switch(bt=this._days+Math.round(Fl(this._months)),ye){case"week":return bt/7+st/6048e5;case"day":return bt+st/864e5;case"hour":return 24*bt+st/36e5;case"minute":return 1440*bt+st/6e4;case"second":return 86400*bt+st/1e3;case"millisecond":return Math.floor(864e5*bt)+st;default:throw new Error("Unknown unit "+ye)}},fa.asMilliseconds=gd,fa.asSeconds=dd,fa.asMinutes=gc,fa.asHours=ih,fa.asDays=Cu,fa.asWeeks=id,fa.asMonths=ph,fa.asQuarters=ud,fa.asYears=ql,fa.valueOf=Ku,fa._bubble=function xd(){var ei,_o,gr,ds,us,ye=this._milliseconds,bt=this._days,be=this._months,st=this._data;return ye>=0&&bt>=0&&be>=0||ye<=0&&bt<=0&&be<=0||(ye+=864e5*mc(Fl(be)+bt),bt=0,be=0),st.milliseconds=ye%1e3,ei=pt(ye/1e3),st.seconds=ei%60,_o=pt(ei/60),st.minutes=_o%60,gr=pt(_o/60),st.hours=gr%24,bt+=pt(gr/24),be+=us=pt(fu(bt)),bt-=mc(Fl(us)),ds=pt(be/12),be%=12,st.days=bt,st.months=be,st.years=ds,this},fa.clone=function od(){return mn(this)},fa.get=function Ic(ye){return ye=$n(ye),this.isValid()?this[ye+"s"]():NaN},fa.milliseconds=$d,fa.seconds=dc,fa.minutes=$c,fa.hours=oc,fa.days=Hd,fa.weeks=function rc(){return pt(this.days()/7)},fa.months=Rc,fa.years=_d,fa.humanize=function vs(ye,bt){if(!this.isValid())return this.localeData().invalidDate();var ei,_o,be=!1,st=uo;return"object"==typeof ye&&(bt=ye,ye=!1),"boolean"==typeof ye&&(be=ye),"object"==typeof bt&&(st=Object.assign({},uo,bt),null!=bt.s&&null==bt.ss&&(st.ss=bt.s-1)),_o=function vr(ye,bt,be,st){var ei=mn(ye).abs(),_o=Di(ei.as("s")),gr=Di(ei.as("m")),ds=Di(ei.as("h")),us=Di(ei.as("d")),zs=Di(ei.as("M")),Ta=Di(ei.as("w")),Pe=Di(ei.as("y")),Tn=_o<=be.ss&&["s",_o]||_o<be.s&&["ss",_o]||gr<=1&&["m"]||gr<be.m&&["mm",gr]||ds<=1&&["h"]||ds<be.h&&["hh",ds]||us<=1&&["d"]||us<be.d&&["dd",us];return null!=be.w&&(Tn=Tn||Ta<=1&&["w"]||Ta<be.w&&["ww",Ta]),(Tn=Tn||zs<=1&&["M"]||zs<be.M&&["MM",zs]||Pe<=1&&["y"]||["yy",Pe])[2]=bt,Tn[3]=+ye>0,Tn[4]=st,Wo.apply(null,Tn)}(this,!be,st,ei=this.localeData()),be&&(_o=ei.pastFuture(+this,_o)),ei.postformat(_o)},fa.toISOString=qs,fa.toString=qs,fa.toJSON=qs,fa.locale=ts,fa.localeData=Xs,fa.toIsoString=F("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qs),fa.lang=na,z("X",0,0,"unix"),z("x",0,0,"valueOf"),Bt("x",Xt),Bt("X",/[+-]?\d+(\.\d{1,3})?/),Ne("X",function(ye,bt,be){be._d=new Date(1e3*parseFloat(ye))}),Ne("x",function(ye,bt,be){be._d=new Date(Lt(ye))}),n.version="2.30.1",function o(ye){e=ye}(Ot),n.fn=va,n.min=function ft(){return Ht("isBefore",[].slice.call(arguments,0))},n.max=function Nt(){return Ht("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=x,n.unix=function Hc(ye){return Ot(1e3*ye)},n.months=function th(ye,bt){return Id(ye,bt,"months")},n.isDate=_,n.locale=yn,n.invalid=M,n.duration=mn,n.isMoment=L,n.weekdays=function Jc(ye,bt,be){return vu(ye,bt,be,"weekdays")},n.parseZone=function Vc(){return Ot.apply(null,arguments).parseZone()},n.localeData=co,n.isDuration=At,n.monthsShort=function Uh(ye,bt){return Id(ye,bt,"monthsShort")},n.weekdaysMin=function cd(ye,bt,be){return vu(ye,bt,be,"weekdaysMin")},n.defineLocale=vi,n.updateLocale=function Yi(ye,bt){if(null!=bt){var be,st,ei=Hs;null!=Js[ye]&&null!=Js[ye].parentLocale?Js[ye].set(K(Js[ye]._config,bt)):(null!=(st=ht(ye))&&(ei=st._config),bt=K(ei,bt),null==st&&(bt.abbr=ye),(be=new X(bt)).parentLocale=Js[ye],Js[ye]=be),yn(ye)}else null!=Js[ye]&&(null!=Js[ye].parentLocale?(Js[ye]=Js[ye].parentLocale,ye===yn()&&yn(ye)):null!=Js[ye]&&delete Js[ye]);return Js[ye]},n.locales=function sr(){return me(Js)},n.weekdaysShort=function nh(ye,bt,be){return vu(ye,bt,be,"weekdaysShort")},n.normalizeUnits=$n,n.relativeTimeRounding=function Jr(ye){return void 0===ye?Di:"function"==typeof ye&&(Di=ye,!0)},n.relativeTimeThreshold=function ns(ye,bt){return void 0!==uo[ye]&&(void 0===bt?uo[ye]:(uo[ye]=bt,"s"===ye&&(uo.ss=bt-1),!0))},n.calendarFormat=function yt(ye,bt){var be=ye.diff(bt,"days",!0);return be<-6?"sameElse":be<-1?"lastWeek":be<0?"lastDay":be<1?"sameDay":be<2?"nextDay":be<7?"nextWeek":"sameElse"},n.prototype=va,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()},73808:function(he,y,i){var e,o,a;
/*! Native Promise Only
            v0.8.1 (c) Kyle Simpson
            MIT License: http://getify.mit-license.org
        */o="Promise",(a=typeof global<"u"?global:this)[o]=a[o]||function(){"use strict";var o,a,l,u=Object.prototype.toString,d=typeof setImmediate<"u"?function(E){return setImmediate(E)}:setTimeout;try{Object.defineProperty({},"x",{}),o=function(E,b,I,L){return Object.defineProperty(E,b,{value:I,writable:!0,configurable:!1!==L})}}catch{o=function(b,I,L){return b[I]=L,b}}function s(p,E){l.add(p,E),a||(a=d(l.drain))}function A(p){var E,b=typeof p;return null!=p&&("object"==b||"function"==b)&&(E=p.then),"function"==typeof E&&E}function _(){for(var p=0;p<this.chain.length;p++)C(this,1===this.state?this.chain[p].success:this.chain[p].failure,this.chain[p]);this.chain.length=0}function C(p,E,b){var I,L;try{!1===E?b.reject(p.msg):(I=!0===E?p.msg:E.call(void 0,p.msg))===b.promise?b.reject(TypeError("Promise-chain cycle")):(L=A(I))?L.call(I,b.resolve,b.reject):b.resolve(I)}catch(D){b.reject(D)}}function R(p){var E,b=this;if(!b.triggered){b.triggered=!0,b.def&&(b=b.def);try{(E=A(p))?s(function(){var I=new k(b);try{E.call(p,function(){R.apply(I,arguments)},function(){x.apply(I,arguments)})}catch(L){x.call(I,L)}}):(b.msg=p,b.state=1,b.chain.length>0&&s(_,b))}catch(I){x.call(new k(b),I)}}}function x(p){var E=this;E.triggered||(E.triggered=!0,E.def&&(E=E.def),E.msg=p,E.state=2,E.chain.length>0&&s(_,E))}function f(p,E,b,I){for(var L=0;L<E.length;L++)!function(F){p.resolve(E[F]).then(function(O){b(F,O)},I)}(L)}function k(p){this.def=p,this.triggered=!1}function w(p){this.promise=p,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function g(p){if("function"!=typeof p)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var E=new w(this);this.then=function(I,L){var D={success:"function"!=typeof I||I,failure:"function"==typeof L&&L};return D.promise=new this.constructor(function(P,O){if("function"!=typeof P||"function"!=typeof O)throw TypeError("Not a function");D.resolve=P,D.reject=O}),E.chain.push(D),0!==E.state&&s(_,E),D.promise},this.catch=function(I){return this.then(void 0,I)};try{p.call(void 0,function(I){R.call(E,I)},function(I){x.call(E,I)})}catch(b){x.call(E,b)}}l=function(){var E,b,I;function L(D,F){this.fn=D,this.self=F,this.next=void 0}return{add:function(F,P){I=new L(F,P),b?b.next=I:E=I,b=I,I=void 0},drain:function(){var F=E;for(E=b=a=void 0;F;)F.fn.call(F.self),F=F.next}}}();var M=o({},"constructor",g,!1);return g.prototype=M,o(M,"__NPO__",0,!1),o(g,"resolve",function(E){return E&&"object"==typeof E&&1===E.__NPO__?E:new this(function(L,D){if("function"!=typeof L||"function"!=typeof D)throw TypeError("Not a function");L(E)})}),o(g,"reject",function(E){return new this(function(I,L){if("function"!=typeof I||"function"!=typeof L)throw TypeError("Not a function");L(E)})}),o(g,"all",function(E){var b=this;return"[object Array]"!=u.call(E)?b.reject(TypeError("Not an array")):0===E.length?b.resolve([]):new b(function(L,D){if("function"!=typeof L||"function"!=typeof D)throw TypeError("Not a function");var F=E.length,P=Array(F),O=0;f(b,E,function(V,K){P[V]=K,++O===F&&L(P)},D)})}),o(g,"race",function(E){var b=this;return"[object Array]"!=u.call(E)?b.reject(TypeError("Not an array")):new b(function(L,D){if("function"!=typeof L||"function"!=typeof D)throw TypeError("Not a function");f(b,E,function(P,O){L(O)},D)})}),g}(),he.exports?he.exports=a[o]:void 0!==(e=function(){return a[o]}.call(y,i,y,he))&&(he.exports=e)},78213:(he,y,i)=>{"use strict";i.r(y),i.d(y,{default:()=>K});var e=function(){if(typeof Map<"u")return Map;function X(me,J){var Q=-1;return me.some(function(re,de){return re[0]===J&&(Q=de,!0)}),Q}return function(){function me(){this.__entries__=[]}return Object.defineProperty(me.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),me.prototype.get=function(J){var Q=X(this.__entries__,J),re=this.__entries__[Q];return re&&re[1]},me.prototype.set=function(J,Q){var re=X(this.__entries__,J);~re?this.__entries__[re][1]=Q:this.__entries__.push([J,Q])},me.prototype.delete=function(J){var Q=this.__entries__,re=X(Q,J);~re&&Q.splice(re,1)},me.prototype.has=function(J){return!!~X(this.__entries__,J)},me.prototype.clear=function(){this.__entries__.splice(0)},me.prototype.forEach=function(J,Q){void 0===Q&&(Q=null);for(var re=0,de=this.__entries__;re<de.length;re++){var te=de[re];J.call(Q,te[1],te[0])}},me}()}(),n=typeof window<"u"&&typeof document<"u"&&window.document===document,o=typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(X){return setTimeout(function(){return X(Date.now())},1e3/60)},s=["top","right","bottom","left","width","height","size","weight"],A=typeof MutationObserver<"u",_=function(){function X(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function u(X,me){var J=!1,Q=!1,re=0;function de(){J&&(J=!1,X()),Q&&j()}function te(){a(de)}function j(){var H=Date.now();if(J){if(H-re<2)return;Q=!0}else J=!0,Q=!1,setTimeout(te,me);re=H}return j}(this.refresh.bind(this),20)}return X.prototype.addObserver=function(me){~this.observers_.indexOf(me)||this.observers_.push(me),this.connected_||this.connect_()},X.prototype.removeObserver=function(me){var J=this.observers_,Q=J.indexOf(me);~Q&&J.splice(Q,1),!J.length&&this.connected_&&this.disconnect_()},X.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},X.prototype.updateObservers_=function(){var me=this.observers_.filter(function(J){return J.gatherActive(),J.hasActive()});return me.forEach(function(J){return J.broadcastActive()}),me.length>0},X.prototype.connect_=function(){!n||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),A?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},X.prototype.disconnect_=function(){!n||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},X.prototype.onTransitionEnd_=function(me){var J=me.propertyName,Q=void 0===J?"":J;s.some(function(de){return!!~Q.indexOf(de)})&&this.refresh()},X.getInstance=function(){return this.instance_||(this.instance_=new X),this.instance_},X.instance_=null,X}(),C=function(X,me){for(var J=0,Q=Object.keys(me);J<Q.length;J++){var re=Q[J];Object.defineProperty(X,re,{value:me[re],enumerable:!1,writable:!1,configurable:!0})}return X},R=function(X){return X&&X.ownerDocument&&X.ownerDocument.defaultView||o},x=L(0,0,0,0);function f(X){return parseFloat(X)||0}function k(X){for(var me=[],J=1;J<arguments.length;J++)me[J-1]=arguments[J];return me.reduce(function(Q,re){return Q+f(X["border-"+re+"-width"])},0)}var p=typeof SVGGraphicsElement<"u"?function(X){return X instanceof R(X).SVGGraphicsElement}:function(X){return X instanceof R(X).SVGElement&&"function"==typeof X.getBBox};function b(X){return n?p(X)?function g(X){var me=X.getBBox();return L(0,0,me.width,me.height)}(X):function M(X){var me=X.clientWidth,J=X.clientHeight;if(!me&&!J)return x;var Q=R(X).getComputedStyle(X),re=function w(X){for(var J={},Q=0,re=["top","right","bottom","left"];Q<re.length;Q++){var de=re[Q];J[de]=f(X["padding-"+de])}return J}(Q),de=re.left+re.right,te=re.top+re.bottom,j=f(Q.width),H=f(Q.height);if("border-box"===Q.boxSizing&&(Math.round(j+de)!==me&&(j-=k(Q,"left","right")+de),Math.round(H+te)!==J&&(H-=k(Q,"top","bottom")+te)),!function E(X){return X===R(X).document.documentElement}(X)){var z=Math.round(j+de)-me,q=Math.round(H+te)-J;1!==Math.abs(z)&&(j-=z),1!==Math.abs(q)&&(H-=q)}return L(re.left,re.top,j,H)}(X):x}function L(X,me,J,Q){return{x:X,y:me,width:J,height:Q}}var D=function(){function X(me){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=L(0,0,0,0),this.target=me}return X.prototype.isActive=function(){var me=b(this.target);return this.contentRect_=me,me.width!==this.broadcastWidth||me.height!==this.broadcastHeight},X.prototype.broadcastRect=function(){var me=this.contentRect_;return this.broadcastWidth=me.width,this.broadcastHeight=me.height,me},X}(),F=function X(me,J){var Q=function I(X){var me=X.x,J=X.y,Q=X.width,re=X.height,de=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,te=Object.create(de.prototype);return C(te,{x:me,y:J,width:Q,height:re,top:J,right:me+Q,bottom:re+J,left:me}),te}(J);C(this,{target:me,contentRect:Q})},P=function(){function X(me,J,Q){if(this.activeObservations_=[],this.observations_=new e,"function"!=typeof me)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=me,this.controller_=J,this.callbackCtx_=Q}return X.prototype.observe=function(me){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(me instanceof R(me).Element))throw new TypeError('parameter 1 is not of type "Element".');var J=this.observations_;J.has(me)||(J.set(me,new D(me)),this.controller_.addObserver(this),this.controller_.refresh())}},X.prototype.unobserve=function(me){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(me instanceof R(me).Element))throw new TypeError('parameter 1 is not of type "Element".');var J=this.observations_;J.has(me)&&(J.delete(me),J.size||this.controller_.removeObserver(this))}},X.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},X.prototype.gatherActive=function(){var me=this;this.clearActive(),this.observations_.forEach(function(J){J.isActive()&&me.activeObservations_.push(J)})},X.prototype.broadcastActive=function(){if(this.hasActive()){var me=this.callbackCtx_,J=this.activeObservations_.map(function(Q){return new F(Q.target,Q.broadcastRect())});this.callback_.call(me,J,me),this.clearActive()}},X.prototype.clearActive=function(){this.activeObservations_.splice(0)},X.prototype.hasActive=function(){return this.activeObservations_.length>0},X}(),O=typeof WeakMap<"u"?new WeakMap:new e,U=function X(me){if(!(this instanceof X))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var J=_.getInstance(),Q=new P(me,J,this);O.set(this,Q)};["observe","unobserve","disconnect"].forEach(function(X){U.prototype[X]=function(){var me;return(me=O.get(this))[X].apply(me,arguments)}});const K=typeof o.ResizeObserver<"u"?o.ResizeObserver:U},65619:(he,y,i)=>{"use strict";i.d(y,{X:()=>n});var e=i(78645);class n extends e.x{constructor(a){super(),this._value=a}get value(){return this.getValue()}_subscribe(a){const l=super._subscribe(a);return!l.closed&&a.next(this._value),l}getValue(){const{hasError:a,thrownError:l,_value:u}=this;if(a)throw l;return this._throwIfClosed(),u}next(a){super.next(this._value=a)}}},65592:(he,y,i)=>{"use strict";i.d(y,{y:()=>s});var e=i(80305),n=i(47394),o=i(14850),a=i(88407),l=i(82653),u=i(84674),d=i(81441);let s=(()=>{class R{constructor(f){f&&(this._subscribe=f)}lift(f){const k=new R;return k.source=this,k.operator=f,k}subscribe(f,k,w){const g=function C(R){return R&&R instanceof e.Lv||function _(R){return R&&(0,u.m)(R.next)&&(0,u.m)(R.error)&&(0,u.m)(R.complete)}(R)&&(0,n.Nn)(R)}(f)?f:new e.Hp(f,k,w);return(0,d.x)(()=>{const{operator:M,source:p}=this;g.add(M?M.call(g,p):p?this._subscribe(g):this._trySubscribe(g))}),g}_trySubscribe(f){try{return this._subscribe(f)}catch(k){f.error(k)}}forEach(f,k){return new(k=A(k))((w,g)=>{const M=new e.Hp({next:p=>{try{f(p)}catch(E){g(E),M.unsubscribe()}},error:g,complete:w});this.subscribe(M)})}_subscribe(f){var k;return null===(k=this.source)||void 0===k?void 0:k.subscribe(f)}[o.L](){return this}pipe(...f){return(0,a.U)(f)(this)}toPromise(f){return new(f=A(f))((k,w)=>{let g;this.subscribe(M=>g=M,M=>w(M),()=>k(g))})}}return R.create=x=>new R(x),R})();function A(R){var x;return null!==(x=R??l.config.Promise)&&void 0!==x?x:Promise}},97328:(he,y,i)=>{"use strict";i.d(y,{t:()=>o});var e=i(78645),n=i(84552);class o extends e.x{constructor(l=1/0,u=1/0,d=n.l){super(),this._bufferSize=l,this._windowTime=u,this._timestampProvider=d,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=u===1/0,this._bufferSize=Math.max(1,l),this._windowTime=Math.max(1,u)}next(l){const{isStopped:u,_buffer:d,_infiniteTimeWindow:s,_timestampProvider:A,_windowTime:_}=this;u||(d.push(l),!s&&d.push(A.now()+_)),this._trimBuffer(),super.next(l)}_subscribe(l){this._throwIfClosed(),this._trimBuffer();const u=this._innerSubscribe(l),{_infiniteTimeWindow:d,_buffer:s}=this,A=s.slice();for(let _=0;_<A.length&&!l.closed;_+=d?1:2)l.next(A[_]);return this._checkFinalizedStatuses(l),u}_trimBuffer(){const{_bufferSize:l,_timestampProvider:u,_buffer:d,_infiniteTimeWindow:s}=this,A=(s?1:2)*l;if(l<1/0&&A<d.length&&d.splice(0,d.length-A),!s){const _=u.now();let C=0;for(let R=1;R<d.length&&d[R]<=_;R+=2)C=R;C&&d.splice(0,C+1)}}}},78645:(he,y,i)=>{"use strict";i.d(y,{x:()=>d});var e=i(65592),n=i(47394);const a=(0,i(82306).d)(A=>function(){A(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var l=i(49039),u=i(81441);let d=(()=>{class A extends e.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(C){const R=new s(this,this);return R.operator=C,R}_throwIfClosed(){if(this.closed)throw new a}next(C){(0,u.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const R of this.currentObservers)R.next(C)}})}error(C){(0,u.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=C;const{observers:R}=this;for(;R.length;)R.shift().error(C)}})}complete(){(0,u.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:C}=this;for(;C.length;)C.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var C;return(null===(C=this.observers)||void 0===C?void 0:C.length)>0}_trySubscribe(C){return this._throwIfClosed(),super._trySubscribe(C)}_subscribe(C){return this._throwIfClosed(),this._checkFinalizedStatuses(C),this._innerSubscribe(C)}_innerSubscribe(C){const{hasError:R,isStopped:x,observers:f}=this;return R||x?n.Lc:(this.currentObservers=null,f.push(C),new n.w0(()=>{this.currentObservers=null,(0,l.P)(f,C)}))}_checkFinalizedStatuses(C){const{hasError:R,thrownError:x,isStopped:f}=this;R?C.error(x):f&&C.complete()}asObservable(){const C=new e.y;return C.source=this,C}}return A.create=(_,C)=>new s(_,C),A})();class s extends d{constructor(_,C){super(),this.destination=_,this.source=C}next(_){var C,R;null===(R=null===(C=this.destination)||void 0===C?void 0:C.next)||void 0===R||R.call(C,_)}error(_){var C,R;null===(R=null===(C=this.destination)||void 0===C?void 0:C.error)||void 0===R||R.call(C,_)}complete(){var _,C;null===(C=null===(_=this.destination)||void 0===_?void 0:_.complete)||void 0===C||C.call(_)}_subscribe(_){var C,R;return null!==(R=null===(C=this.source)||void 0===C?void 0:C.subscribe(_))&&void 0!==R?R:n.Lc}}},80305:(he,y,i)=>{"use strict";i.d(y,{Hp:()=>w,Lv:()=>R});var e=i(84674),n=i(47394),o=i(82653),a=i(93894),l=i(72420);const u=A("C",void 0,void 0);function A(b,I,L){return{kind:b,value:I,error:L}}var _=i(87599),C=i(81441);class R extends n.w0{constructor(I){super(),this.isStopped=!1,I?(this.destination=I,(0,n.Nn)(I)&&I.add(this)):this.destination=E}static create(I,L,D){return new w(I,L,D)}next(I){this.isStopped?p(function s(b){return A("N",b,void 0)}(I),this):this._next(I)}error(I){this.isStopped?p(function d(b){return A("E",void 0,b)}(I),this):(this.isStopped=!0,this._error(I))}complete(){this.isStopped?p(u,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(I){this.destination.next(I)}_error(I){try{this.destination.error(I)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const x=Function.prototype.bind;function f(b,I){return x.call(b,I)}class k{constructor(I){this.partialObserver=I}next(I){const{partialObserver:L}=this;if(L.next)try{L.next(I)}catch(D){g(D)}}error(I){const{partialObserver:L}=this;if(L.error)try{L.error(I)}catch(D){g(D)}else g(I)}complete(){const{partialObserver:I}=this;if(I.complete)try{I.complete()}catch(L){g(L)}}}class w extends R{constructor(I,L,D){let F;if(super(),(0,e.m)(I)||!I)F={next:I??void 0,error:L??void 0,complete:D??void 0};else{let P;this&&o.config.useDeprecatedNextContext?(P=Object.create(I),P.unsubscribe=()=>this.unsubscribe(),F={next:I.next&&f(I.next,P),error:I.error&&f(I.error,P),complete:I.complete&&f(I.complete,P)}):F=I}this.destination=new k(F)}}function g(b){o.config.useDeprecatedSynchronousErrorHandling?(0,C.O)(b):(0,a.h)(b)}function p(b,I){const{onStoppedNotification:L}=o.config;L&&_.z.setTimeout(()=>L(b,I))}const E={closed:!0,next:l.Z,error:function M(b){throw b},complete:l.Z}},47394:(he,y,i)=>{"use strict";i.d(y,{Lc:()=>u,w0:()=>l,Nn:()=>d});var e=i(84674);const o=(0,i(82306).d)(A=>function(C){A(this),this.message=C?`${C.length} errors occurred during unsubscription:\n${C.map((R,x)=>`${x+1}) ${R.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=C});var a=i(49039);class l{constructor(_){this.initialTeardown=_,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let _;if(!this.closed){this.closed=!0;const{_parentage:C}=this;if(C)if(this._parentage=null,Array.isArray(C))for(const f of C)f.remove(this);else C.remove(this);const{initialTeardown:R}=this;if((0,e.m)(R))try{R()}catch(f){_=f instanceof o?f.errors:[f]}const{_finalizers:x}=this;if(x){this._finalizers=null;for(const f of x)try{s(f)}catch(k){_=_??[],k instanceof o?_=[..._,...k.errors]:_.push(k)}}if(_)throw new o(_)}}add(_){var C;if(_&&_!==this)if(this.closed)s(_);else{if(_ instanceof l){if(_.closed||_._hasParent(this))return;_._addParent(this)}(this._finalizers=null!==(C=this._finalizers)&&void 0!==C?C:[]).push(_)}}_hasParent(_){const{_parentage:C}=this;return C===_||Array.isArray(C)&&C.includes(_)}_addParent(_){const{_parentage:C}=this;this._parentage=Array.isArray(C)?(C.push(_),C):C?[C,_]:_}_removeParent(_){const{_parentage:C}=this;C===_?this._parentage=null:Array.isArray(C)&&(0,a.P)(C,_)}remove(_){const{_finalizers:C}=this;C&&(0,a.P)(C,_),_ instanceof l&&_._removeParent(this)}}l.EMPTY=(()=>{const A=new l;return A.closed=!0,A})();const u=l.EMPTY;function d(A){return A instanceof l||A&&"closed"in A&&(0,e.m)(A.remove)&&(0,e.m)(A.add)&&(0,e.m)(A.unsubscribe)}function s(A){(0,e.m)(A)?A():A.unsubscribe()}},82653:(he,y,i)=>{"use strict";i.d(y,{config:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},93168:(he,y,i)=>{"use strict";i.d(y,{c:()=>u});var e=i(65592),n=i(47394),o=i(66196),a=i(8251),l=i(79360);class u extends e.y{constructor(s,A){super(),this.source=s,this.subjectFactory=A,this._subject=null,this._refCount=0,this._connection=null,(0,l.A)(s)&&(this.lift=s.lift)}_subscribe(s){return this.getSubject().subscribe(s)}getSubject(){const s=this._subject;return(!s||s.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:s}=this;this._subject=this._connection=null,s?.unsubscribe()}connect(){let s=this._connection;if(!s){s=this._connection=new n.w0;const A=this.getSubject();s.add(this.source.subscribe((0,a.x)(A,void 0,()=>{this._teardown(),A.complete()},_=>{this._teardown(),A.error(_)},()=>this._teardown()))),s.closed&&(this._connection=null,s=n.w0.EMPTY)}return s}refCount(){return(0,o.x)()(this)}}},52572:(he,y,i)=>{"use strict";i.d(y,{a:()=>_});var e=i(65592),n=i(17453),o=i(72664),a=i(42737),l=i(97400),u=i(79940),d=i(92714),s=i(8251),A=i(27103);function _(...x){const f=(0,u.yG)(x),k=(0,u.jO)(x),{args:w,keys:g}=(0,n.D)(x);if(0===w.length)return(0,o.D)([],f);const M=new e.y(function C(x,f,k=a.y){return w=>{R(f,()=>{const{length:g}=x,M=new Array(g);let p=g,E=g;for(let b=0;b<g;b++)R(f,()=>{const I=(0,o.D)(x[b],f);let L=!1;I.subscribe((0,s.x)(w,D=>{M[b]=D,L||(L=!0,E--),E||w.next(k(M.slice()))},()=>{--p||w.complete()}))},w)},w)}}(w,f,g?p=>(0,d.n)(g,p):a.y));return k?M.pipe((0,l.Z)(k)):M}function R(x,f,k){x?(0,A.f)(k,x,f):f()}},35211:(he,y,i)=>{"use strict";i.d(y,{z:()=>l});var e=i(57537),o=i(79940),a=i(72664);function l(...u){return function n(){return(0,e.J)(1)}()((0,a.D)(u,(0,o.yG)(u)))}},74911:(he,y,i)=>{"use strict";i.d(y,{P:()=>o});var e=i(65592),n=i(54829);function o(a){return new e.y(l=>{(0,n.Xf)(a()).subscribe(l)})}},36232:(he,y,i)=>{"use strict";i.d(y,{E:()=>n});const n=new(i(65592).y)(l=>l.complete())},9315:(he,y,i)=>{"use strict";i.d(y,{D:()=>s});var e=i(65592),n=i(17453),o=i(54829),a=i(79940),l=i(8251),u=i(97400),d=i(92714);function s(...A){const _=(0,a.jO)(A),{args:C,keys:R}=(0,n.D)(A),x=new e.y(f=>{const{length:k}=C;if(!k)return void f.complete();const w=new Array(k);let g=k,M=k;for(let p=0;p<k;p++){let E=!1;(0,o.Xf)(C[p]).subscribe((0,l.x)(f,b=>{E||(E=!0,M--),w[p]=b},()=>g--,void 0,()=>{(!g||!E)&&(M||f.next(R?(0,d.n)(R,w):w),f.complete())}))}});return _?x.pipe((0,u.Z)(_)):x}},72664:(he,y,i)=>{"use strict";i.d(y,{D:()=>o});var e=i(50723),n=i(54829);function o(a,l){return l?(0,e.x)(a,l):(0,n.Xf)(a)}},92438:(he,y,i)=>{"use strict";i.d(y,{R:()=>_});var e=i(54829),n=i(65592),o=i(21631),a=i(64266),l=i(84674),u=i(97400);const d=["addListener","removeListener"],s=["addEventListener","removeEventListener"],A=["on","off"];function _(k,w,g,M){if((0,l.m)(g)&&(M=g,g=void 0),M)return _(k,w,g).pipe((0,u.Z)(M));const[p,E]=function f(k){return(0,l.m)(k.addEventListener)&&(0,l.m)(k.removeEventListener)}(k)?s.map(b=>I=>k[b](w,I,g)):function R(k){return(0,l.m)(k.addListener)&&(0,l.m)(k.removeListener)}(k)?d.map(C(k,w)):function x(k){return(0,l.m)(k.on)&&(0,l.m)(k.off)}(k)?A.map(C(k,w)):[];if(!p&&(0,a.z)(k))return(0,o.z)(b=>_(b,w,g))((0,e.Xf)(k));if(!p)throw new TypeError("Invalid event target");return new n.y(b=>{const I=(...L)=>b.next(1<L.length?L:L[0]);return p(I),()=>E(I)})}function C(k,w){return g=>M=>k[g](w,M)}},54829:(he,y,i)=>{"use strict";i.d(y,{Xf:()=>x});var e=i(97582),n=i(64266),o=i(54026),a=i(65592),l=i(38382),u=i(15726),d=i(69853),s=i(83664),A=i(50541),_=i(84674),C=i(93894),R=i(14850);function x(b){if(b instanceof a.y)return b;if(null!=b){if((0,l.c)(b))return function f(b){return new a.y(I=>{const L=b[R.L]();if((0,_.m)(L.subscribe))return L.subscribe(I);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(b);if((0,n.z)(b))return function k(b){return new a.y(I=>{for(let L=0;L<b.length&&!I.closed;L++)I.next(b[L]);I.complete()})}(b);if((0,o.t)(b))return function w(b){return new a.y(I=>{b.then(L=>{I.closed||(I.next(L),I.complete())},L=>I.error(L)).then(null,C.h)})}(b);if((0,u.D)(b))return M(b);if((0,s.T)(b))return function g(b){return new a.y(I=>{for(const L of b)if(I.next(L),I.closed)return;I.complete()})}(b);if((0,A.L)(b))return function p(b){return M((0,A.Q)(b))}(b)}throw(0,d.z)(b)}function M(b){return new a.y(I=>{(function E(b,I){var L,D,F,P;return(0,e.mG)(this,void 0,void 0,function*(){try{for(L=(0,e.KL)(b);!(D=yield L.next()).done;)if(I.next(D.value),I.closed)return}catch(O){F={error:O}}finally{try{D&&!D.done&&(P=L.return)&&(yield P.call(L))}finally{if(F)throw F.error}}I.complete()})})(b,I).catch(L=>I.error(L))})}},91687:(he,y,i)=>{"use strict";i.d(y,{F:()=>o});var e=i(16321),n=i(74825);function o(a=0,l=e.z){return a<0&&(a=0),(0,n.H)(a,a,l)}},63019:(he,y,i)=>{"use strict";i.d(y,{T:()=>u});var e=i(57537),n=i(54829),o=i(36232),a=i(79940),l=i(72664);function u(...d){const s=(0,a.yG)(d),A=(0,a._6)(d,1/0),_=d;return _.length?1===_.length?(0,n.Xf)(_[0]):(0,e.J)(A)((0,l.D)(_,s)):o.E}},22096:(he,y,i)=>{"use strict";i.d(y,{of:()=>o});var e=i(79940),n=i(72664);function o(...a){const l=(0,e.yG)(a);return(0,n.D)(a,l)}},58504:(he,y,i)=>{"use strict";i.d(y,{_:()=>o});var e=i(65592),n=i(84674);function o(a,l){const u=(0,n.m)(a)?a:()=>a,d=s=>s.error(u());return new e.y(l?s=>l.schedule(d,0,s):d)}},74825:(he,y,i)=>{"use strict";i.d(y,{H:()=>l});var e=i(65592),n=i(16321),o=i(50671);function l(u=0,d,s=n.P){let A=-1;return null!=d&&((0,o.K)(d)?s=d:A=d),new e.y(_=>{let C=function a(u){return u instanceof Date&&!isNaN(u)}(u)?+u-s.now():u;C<0&&(C=0);let R=0;return s.schedule(function(){_.closed||(_.next(R++),0<=A?this.schedule(void 0,A):_.complete())},C)})}},19026:(he,y,i)=>{"use strict";i.d(y,{$:()=>s});var e=i(65592),n=i(54829);const{isArray:o}=Array;var l=i(36232),u=i(8251),d=i(79940);function s(...A){const _=(0,d.jO)(A),C=function a(A){return 1===A.length&&o(A[0])?A[0]:A}(A);return C.length?new e.y(R=>{let x=C.map(()=>[]),f=C.map(()=>!1);R.add(()=>{x=f=null});for(let k=0;!R.closed&&k<C.length;k++)(0,n.Xf)(C[k]).subscribe((0,u.x)(R,w=>{if(x[k].push(w),x.every(g=>g.length)){const g=x.map(M=>M.shift());R.next(_?_(...g):g),x.some((M,p)=>!M.length&&f[p])&&R.complete()}},()=>{f[k]=!0,!x[k].length&&R.complete()}));return()=>{x=f=null}}):l.E}},8251:(he,y,i)=>{"use strict";i.d(y,{x:()=>n});var e=i(80305);function n(a,l,u,d,s){return new o(a,l,u,d,s)}class o extends e.Lv{constructor(l,u,d,s,A,_){super(l),this.onFinalize=A,this.shouldUnsubscribe=_,this._next=u?function(C){try{u(C)}catch(R){l.error(R)}}:super._next,this._error=s?function(C){try{s(C)}catch(R){l.error(R)}finally{this.unsubscribe()}}:super._error,this._complete=d?function(){try{d()}catch(C){l.error(C)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var l;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:u}=this;super.unsubscribe(),!u&&(null===(l=this.onFinalize)||void 0===l||l.call(this))}}}},29028:(he,y,i)=>{"use strict";i.d(y,{e:()=>d});var e=i(16321),n=i(79360),o=i(54829),a=i(8251),u=i(74825);function d(s,A=e.z){return function l(s){return(0,n.e)((A,_)=>{let C=!1,R=null,x=null,f=!1;const k=()=>{if(x?.unsubscribe(),x=null,C){C=!1;const g=R;R=null,_.next(g)}f&&_.complete()},w=()=>{x=null,f&&_.complete()};A.subscribe((0,a.x)(_,g=>{C=!0,R=g,x||(0,o.Xf)(s(g)).subscribe(x=(0,a.x)(_,k,w))},()=>{f=!0,(!C||!x||x.closed)&&_.complete()}))})}(()=>(0,u.H)(s,A))}},26306:(he,y,i)=>{"use strict";i.d(y,{K:()=>a});var e=i(54829),n=i(8251),o=i(79360);function a(l){return(0,o.e)((u,d)=>{let _,s=null,A=!1;s=u.subscribe((0,n.x)(d,void 0,void 0,C=>{_=(0,e.Xf)(l(C,a(l)(u))),s?(s.unsubscribe(),s=null,_.subscribe(d)):A=!0})),A&&(s.unsubscribe(),s=null,_.subscribe(d))})}},76328:(he,y,i)=>{"use strict";i.d(y,{b:()=>o});var e=i(21631),n=i(84674);function o(a,l){return(0,n.m)(l)?(0,e.z)(a,l,1):(0,e.z)(a,1)}},83620:(he,y,i)=>{"use strict";i.d(y,{b:()=>a});var e=i(16321),n=i(79360),o=i(8251);function a(l,u=e.z){return(0,n.e)((d,s)=>{let A=null,_=null,C=null;const R=()=>{if(A){A.unsubscribe(),A=null;const f=_;_=null,s.next(f)}};function x(){const f=C+l,k=u.now();if(k<f)return A=this.schedule(void 0,f-k),void s.add(A);R()}d.subscribe((0,o.x)(s,f=>{_=f,C=u.now(),A||(A=u.schedule(x,l),s.add(A))},()=>{R(),s.complete()},void 0,()=>{_=A=null}))})}},43572:(he,y,i)=>{"use strict";i.d(y,{d:()=>o});var e=i(79360),n=i(8251);function o(a){return(0,e.e)((l,u)=>{let d=!1;l.subscribe((0,n.x)(u,s=>{d=!0,u.next(s)},()=>{d||u.next(a),u.complete()}))})}},5177:(he,y,i)=>{"use strict";i.d(y,{g:()=>x});var e=i(16321),n=i(35211),o=i(48180),a=i(79360),l=i(8251),u=i(72420),s=i(21441),A=i(21631),_=i(54829);function C(f,k){return k?w=>(0,n.z)(k.pipe((0,o.q)(1),function d(){return(0,a.e)((f,k)=>{f.subscribe((0,l.x)(k,u.Z))})}()),w.pipe(C(f))):(0,A.z)((w,g)=>(0,_.Xf)(f(w,g)).pipe((0,o.q)(1),(0,s.h)(w)))}var R=i(74825);function x(f,k=e.z){const w=(0,R.H)(f,k);return C(()=>w)}},93997:(he,y,i)=>{"use strict";i.d(y,{x:()=>a});var e=i(42737),n=i(79360),o=i(8251);function a(u,d=e.y){return u=u??l,(0,n.e)((s,A)=>{let _,C=!0;s.subscribe((0,o.x)(A,R=>{const x=d(R);(C||!u(_,x))&&(C=!1,_=x,A.next(R))}))})}function l(u,d){return u===d}},32181:(he,y,i)=>{"use strict";i.d(y,{h:()=>o});var e=i(79360),n=i(8251);function o(a,l){return(0,e.e)((u,d)=>{let s=0;u.subscribe((0,n.x)(d,A=>a.call(l,A,s++)&&d.next(A)))})}},64716:(he,y,i)=>{"use strict";i.d(y,{x:()=>n});var e=i(79360);function n(o){return(0,e.e)((a,l)=>{try{a.subscribe(l)}finally{l.add(o)}})}},81374:(he,y,i)=>{"use strict";i.d(y,{P:()=>d});var e=i(46973),n=i(32181),o=i(48180),a=i(43572),l=i(3026),u=i(42737);function d(s,A){const _=arguments.length>=2;return C=>C.pipe(s?(0,n.h)((R,x)=>s(R,x,C)):u.y,(0,o.q)(1),_?(0,a.d)(A):(0,l.T)(()=>new e.K))}},37398:(he,y,i)=>{"use strict";i.d(y,{U:()=>o});var e=i(79360),n=i(8251);function o(a,l){return(0,e.e)((u,d)=>{let s=0;u.subscribe((0,n.x)(d,A=>{d.next(a.call(l,A,s++))}))})}},21441:(he,y,i)=>{"use strict";i.d(y,{h:()=>n});var e=i(37398);function n(o){return(0,e.U)(()=>o)}},57537:(he,y,i)=>{"use strict";i.d(y,{J:()=>o});var e=i(21631),n=i(42737);function o(a=1/0){return(0,e.z)(n.y,a)}},21631:(he,y,i)=>{"use strict";i.d(y,{z:()=>s});var e=i(37398),n=i(54829),o=i(79360),a=i(27103),l=i(8251),d=i(84674);function s(A,_,C=1/0){return(0,d.m)(_)?s((R,x)=>(0,e.U)((f,k)=>_(R,f,x,k))((0,n.Xf)(A(R,x))),C):("number"==typeof _&&(C=_),(0,o.e)((R,x)=>function u(A,_,C,R,x,f,k,w){const g=[];let M=0,p=0,E=!1;const b=()=>{E&&!g.length&&!M&&_.complete()},I=D=>M<R?L(D):g.push(D),L=D=>{f&&_.next(D),M++;let F=!1;(0,n.Xf)(C(D,p++)).subscribe((0,l.x)(_,P=>{x?.(P),f?I(P):_.next(P)},()=>{F=!0},void 0,()=>{if(F)try{for(M--;g.length&&M<R;){const P=g.shift();k?(0,a.f)(_,k,()=>L(P)):L(P)}b()}catch(P){_.error(P)}}))};return A.subscribe((0,l.x)(_,I,()=>{E=!0,b()})),()=>{w?.()}}(R,x,A,C)))}},43093:(he,y,i)=>{"use strict";i.d(y,{Q:()=>a});var e=i(27103),n=i(79360),o=i(8251);function a(l,u=0){return(0,n.e)((d,s)=>{d.subscribe((0,o.x)(s,A=>(0,e.f)(s,l,()=>s.next(A),u),()=>(0,e.f)(s,l,()=>s.complete(),u),A=>(0,e.f)(s,l,()=>s.error(A),u)))})}},66196:(he,y,i)=>{"use strict";i.d(y,{x:()=>o});var e=i(79360),n=i(8251);function o(){return(0,e.e)((a,l)=>{let u=null;a._refCount++;const d=(0,n.x)(l,void 0,void 0,void 0,()=>{if(!a||a._refCount<=0||0<--a._refCount)return void(u=null);const s=a._connection,A=u;u=null,s&&(!A||s===A)&&s.unsubscribe(),l.unsubscribe()});a.subscribe(d),d.closed||(u=a.connect())})}},16699:(he,y,i)=>{"use strict";i.d(y,{R:()=>a});var e=i(79360),n=i(8251);function a(l,u){return(0,e.e)(function o(l,u,d,s,A){return(_,C)=>{let R=d,x=u,f=0;_.subscribe((0,n.x)(C,k=>{const w=f++;x=R?l(x,k,w):(R=!0,k),s&&C.next(x)},A&&(()=>{R&&C.next(x),C.complete()})))}}(l,u,arguments.length>=2,!0))}},63020:(he,y,i)=>{"use strict";i.d(y,{B:()=>l});var e=i(54829),n=i(78645),o=i(80305),a=i(79360);function l(d={}){const{connector:s=(()=>new n.x),resetOnError:A=!0,resetOnComplete:_=!0,resetOnRefCountZero:C=!0}=d;return R=>{let x,f,k,w=0,g=!1,M=!1;const p=()=>{f?.unsubscribe(),f=void 0},E=()=>{p(),x=k=void 0,g=M=!1},b=()=>{const I=x;E(),I?.unsubscribe()};return(0,a.e)((I,L)=>{w++,!M&&!g&&p();const D=k=k??s();L.add(()=>{w--,0===w&&!M&&!g&&(f=u(b,C))}),D.subscribe(L),!x&&w>0&&(x=new o.Hp({next:F=>D.next(F),error:F=>{M=!0,p(),f=u(E,A,F),D.error(F)},complete:()=>{g=!0,p(),f=u(E,_),D.complete()}}),(0,e.Xf)(I).subscribe(x))})(R)}}function u(d,s,...A){if(!0===s)return void d();if(!1===s)return;const _=new o.Hp({next:()=>{_.unsubscribe(),d()}});return(0,e.Xf)(s(...A)).subscribe(_)}},67081:(he,y,i)=>{"use strict";i.d(y,{d:()=>o});var e=i(97328),n=i(63020);function o(a,l,u){let d,s=!1;return a&&"object"==typeof a?({bufferSize:d=1/0,windowTime:l=1/0,refCount:s=!1,scheduler:u}=a):d=a??1/0,(0,n.B)({connector:()=>new e.t(d,l,u),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}},836:(he,y,i)=>{"use strict";i.d(y,{T:()=>n});var e=i(32181);function n(o){return(0,e.h)((a,l)=>o<=l)}},27921:(he,y,i)=>{"use strict";i.d(y,{O:()=>a});var e=i(35211),n=i(79940),o=i(79360);function a(...l){const u=(0,n.yG)(l);return(0,o.e)((d,s)=>{(u?(0,e.z)(l,d,u):(0,e.z)(l,d)).subscribe(s)})}},85137:(he,y,i)=>{"use strict";i.d(y,{R:()=>n});var e=i(79360);function n(o,a=0){return(0,e.e)((l,u)=>{u.add(o.schedule(()=>l.subscribe(u),a))})}},94664:(he,y,i)=>{"use strict";i.d(y,{w:()=>a});var e=i(54829),n=i(79360),o=i(8251);function a(l,u){return(0,n.e)((d,s)=>{let A=null,_=0,C=!1;const R=()=>C&&!A&&s.complete();d.subscribe((0,o.x)(s,x=>{A?.unsubscribe();let f=0;const k=_++;(0,e.Xf)(l(x,k)).subscribe(A=(0,o.x)(s,w=>s.next(u?u(x,w,k,f++):w),()=>{A=null,R()}))},()=>{C=!0,R()}))})}},74867:(he,y,i)=>{"use strict";i.d(y,{c:()=>o});var e=i(94664),n=i(84674);function o(a,l){return(0,n.m)(l)?(0,e.w)(()=>a,l):(0,e.w)(()=>a)}},48180:(he,y,i)=>{"use strict";i.d(y,{q:()=>a});var e=i(36232),n=i(79360),o=i(8251);function a(l){return l<=0?()=>e.E:(0,n.e)((u,d)=>{let s=0;u.subscribe((0,o.x)(d,A=>{++s<=l&&(d.next(A),l<=s&&d.complete())}))})}},59773:(he,y,i)=>{"use strict";i.d(y,{R:()=>l});var e=i(79360),n=i(8251),o=i(54829),a=i(72420);function l(u){return(0,e.e)((d,s)=>{(0,o.Xf)(u).subscribe((0,n.x)(s,()=>s.complete(),a.Z)),!s.closed&&d.subscribe(s)})}},30812:(he,y,i)=>{"use strict";i.d(y,{o:()=>o});var e=i(79360),n=i(8251);function o(a,l=!1){return(0,e.e)((u,d)=>{let s=0;u.subscribe((0,n.x)(d,A=>{const _=a(A,s++);(_||l)&&d.next(A),!_&&d.complete()}))})}},99397:(he,y,i)=>{"use strict";i.d(y,{b:()=>l});var e=i(84674),n=i(79360),o=i(8251),a=i(42737);function l(u,d,s){const A=(0,e.m)(u)||d||s?{next:u,error:d,complete:s}:u;return A?(0,n.e)((_,C)=>{var R;null===(R=A.subscribe)||void 0===R||R.call(A);let x=!0;_.subscribe((0,o.x)(C,f=>{var k;null===(k=A.next)||void 0===k||k.call(A,f),C.next(f)},()=>{var f;x=!1,null===(f=A.complete)||void 0===f||f.call(A),C.complete()},f=>{var k;x=!1,null===(k=A.error)||void 0===k||k.call(A,f),C.error(f)},()=>{var f,k;x&&(null===(f=A.unsubscribe)||void 0===f||f.call(A)),null===(k=A.finalize)||void 0===k||k.call(A)}))}):a.y}},18753:(he,y,i)=>{"use strict";i.d(y,{p:()=>d});var e=i(16321),n=i(79360),o=i(8251),a=i(54829),u=i(74825);function d(s,A=e.z,_){const C=(0,u.H)(s,A);return function l(s,A){return(0,n.e)((_,C)=>{const{leading:R=!0,trailing:x=!1}=A??{};let f=!1,k=null,w=null,g=!1;const M=()=>{w?.unsubscribe(),w=null,x&&(b(),g&&C.complete())},p=()=>{w=null,g&&C.complete()},E=I=>w=(0,a.Xf)(s(I)).subscribe((0,o.x)(C,M,p)),b=()=>{if(f){f=!1;const I=k;k=null,C.next(I),!g&&E(I)}};_.subscribe((0,o.x)(C,I=>{f=!0,k=I,(!w||w.closed)&&(R?b():E(I))},()=>{g=!0,(!(x&&f&&w)||w.closed)&&C.complete()}))})}(()=>C,_)}},3026:(he,y,i)=>{"use strict";i.d(y,{T:()=>a});var e=i(46973),n=i(79360),o=i(8251);function a(u=l){return(0,n.e)((d,s)=>{let A=!1;d.subscribe((0,o.x)(s,_=>{A=!0,s.next(_)},()=>A?s.complete():s.error(u())))})}function l(){return new e.K}},50723:(he,y,i)=>{"use strict";i.d(y,{x:()=>b});var e=i(54829),n=i(43093),o=i(85137),u=i(65592),s=i(64971),A=i(84674),_=i(27103);function R(I,L){if(!I)throw new Error("Iterable cannot be null");return new u.y(D=>{(0,_.f)(D,L,()=>{const F=I[Symbol.asyncIterator]();(0,_.f)(D,L,()=>{F.next().then(P=>{P.done?D.complete():D.next(P.value)})},0,!0)})})}var x=i(38382),f=i(54026),k=i(64266),w=i(83664),g=i(15726),M=i(69853),p=i(50541);function b(I,L){if(null!=I){if((0,x.c)(I))return function a(I,L){return(0,e.Xf)(I).pipe((0,o.R)(L),(0,n.Q)(L))}(I,L);if((0,k.z)(I))return function d(I,L){return new u.y(D=>{let F=0;return L.schedule(function(){F===I.length?D.complete():(D.next(I[F++]),D.closed||this.schedule())})})}(I,L);if((0,f.t)(I))return function l(I,L){return(0,e.Xf)(I).pipe((0,o.R)(L),(0,n.Q)(L))}(I,L);if((0,g.D)(I))return R(I,L);if((0,w.T)(I))return function C(I,L){return new u.y(D=>{let F;return(0,_.f)(D,L,()=>{F=I[s.h](),(0,_.f)(D,L,()=>{let P,O;try{({value:P,done:O}=F.next())}catch(U){return void D.error(U)}O?D.complete():D.next(P)},0,!0)}),()=>(0,A.m)(F?.return)&&F.return()})}(I,L);if((0,p.L)(I))return function E(I,L){return R((0,p.Q)(I),L)}(I,L)}throw(0,M.z)(I)}},41954:(he,y,i)=>{"use strict";i.d(y,{o:()=>l});var e=i(47394);class n extends e.w0{constructor(d,s){super()}schedule(d,s=0){return this}}const o={setInterval(u,d,...s){const{delegate:A}=o;return A?.setInterval?A.setInterval(u,d,...s):setInterval(u,d,...s)},clearInterval(u){const{delegate:d}=o;return(d?.clearInterval||clearInterval)(u)},delegate:void 0};var a=i(49039);class l extends n{constructor(d,s){super(d,s),this.scheduler=d,this.work=s,this.pending=!1}schedule(d,s=0){var A;if(this.closed)return this;this.state=d;const _=this.id,C=this.scheduler;return null!=_&&(this.id=this.recycleAsyncId(C,_,s)),this.pending=!0,this.delay=s,this.id=null!==(A=this.id)&&void 0!==A?A:this.requestAsyncId(C,this.id,s),this}requestAsyncId(d,s,A=0){return o.setInterval(d.flush.bind(d,this),A)}recycleAsyncId(d,s,A=0){if(null!=A&&this.delay===A&&!1===this.pending)return s;null!=s&&o.clearInterval(s)}execute(d,s){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const A=this._execute(d,s);if(A)return A;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(d,s){let _,A=!1;try{this.work(d)}catch(C){A=!0,_=C||new Error("Scheduled action threw falsy error")}if(A)return this.unsubscribe(),_}unsubscribe(){if(!this.closed){const{id:d,scheduler:s}=this,{actions:A}=s;this.work=this.state=this.scheduler=null,this.pending=!1,(0,a.P)(A,this),null!=d&&(this.id=this.recycleAsyncId(s,d,null)),this.delay=null,super.unsubscribe()}}}},2631:(he,y,i)=>{"use strict";i.d(y,{v:()=>o});var e=i(84552);class n{constructor(l,u=n.now){this.schedulerActionCtor=l,this.now=u}schedule(l,u=0,d){return new this.schedulerActionCtor(this,l).schedule(d,u)}}n.now=e.l.now;class o extends n{constructor(l,u=n.now){super(l,u),this.actions=[],this._active=!1}flush(l){const{actions:u}=this;if(this._active)return void u.push(l);let d;this._active=!0;do{if(d=l.execute(l.state,l.delay))break}while(l=u.shift());if(this._active=!1,d){for(;l=u.shift();)l.unsubscribe();throw d}}}},80927:(he,y,i)=>{"use strict";i.d(y,{Z:()=>d});var e=i(41954),n=i(47394);const o={schedule(A){let _=requestAnimationFrame,C=cancelAnimationFrame;const{delegate:R}=o;R&&(_=R.requestAnimationFrame,C=R.cancelAnimationFrame);const x=_(f=>{C=void 0,A(f)});return new n.w0(()=>C?.(x))},requestAnimationFrame(...A){const{delegate:_}=o;return(_?.requestAnimationFrame||requestAnimationFrame)(...A)},cancelAnimationFrame(...A){const{delegate:_}=o;return(_?.cancelAnimationFrame||cancelAnimationFrame)(...A)},delegate:void 0};var l=i(2631);const d=new class u extends l.v{flush(_){this._active=!0;const C=this._scheduled;this._scheduled=void 0;const{actions:R}=this;let x;_=_||R.shift();do{if(x=_.execute(_.state,_.delay))break}while((_=R[0])&&_.id===C&&R.shift());if(this._active=!1,x){for(;(_=R[0])&&_.id===C&&R.shift();)_.unsubscribe();throw x}}}(class a extends e.o{constructor(_,C){super(_,C),this.scheduler=_,this.work=C}requestAsyncId(_,C,R=0){return null!==R&&R>0?super.requestAsyncId(_,C,R):(_.actions.push(this),_._scheduled||(_._scheduled=o.requestAnimationFrame(()=>_.flush(void 0))))}recycleAsyncId(_,C,R=0){var x;if(null!=R?R>0:this.delay>0)return super.recycleAsyncId(_,C,R);const{actions:f}=_;null!=C&&(null===(x=f[f.length-1])||void 0===x?void 0:x.id)!==C&&(o.cancelAnimationFrame(C),_._scheduled=void 0)}})},76410:(he,y,i)=>{"use strict";i.d(y,{E:()=>f});var e=i(41954);let o,n=1;const a={};function l(w){return w in a&&(delete a[w],!0)}const u={setImmediate(w){const g=n++;return a[g]=!0,o||(o=Promise.resolve()),o.then(()=>l(g)&&w()),g},clearImmediate(w){l(w)}},{setImmediate:s,clearImmediate:A}=u,_={setImmediate(...w){const{delegate:g}=_;return(g?.setImmediate||s)(...w)},clearImmediate(w){const{delegate:g}=_;return(g?.clearImmediate||A)(w)},delegate:void 0};var R=i(2631);const f=new class x extends R.v{flush(g){this._active=!0;const M=this._scheduled;this._scheduled=void 0;const{actions:p}=this;let E;g=g||p.shift();do{if(E=g.execute(g.state,g.delay))break}while((g=p[0])&&g.id===M&&p.shift());if(this._active=!1,E){for(;(g=p[0])&&g.id===M&&p.shift();)g.unsubscribe();throw E}}}(class C extends e.o{constructor(g,M){super(g,M),this.scheduler=g,this.work=M}requestAsyncId(g,M,p=0){return null!==p&&p>0?super.requestAsyncId(g,M,p):(g.actions.push(this),g._scheduled||(g._scheduled=_.setImmediate(g.flush.bind(g,void 0))))}recycleAsyncId(g,M,p=0){var E;if(null!=p?p>0:this.delay>0)return super.recycleAsyncId(g,M,p);const{actions:b}=g;null!=M&&(null===(E=b[b.length-1])||void 0===E?void 0:E.id)!==M&&(_.clearImmediate(M),g._scheduled===M&&(g._scheduled=void 0))}})},16321:(he,y,i)=>{"use strict";i.d(y,{P:()=>a,z:()=>o});var e=i(41954);const o=new(i(2631).v)(e.o),a=o},84552:(he,y,i)=>{"use strict";i.d(y,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},87599:(he,y,i)=>{"use strict";i.d(y,{z:()=>e});const e={setTimeout(n,o,...a){const{delegate:l}=e;return l?.setTimeout?l.setTimeout(n,o,...a):setTimeout(n,o,...a)},clearTimeout(n){const{delegate:o}=e;return(o?.clearTimeout||clearTimeout)(n)},delegate:void 0}},64971:(he,y,i)=>{"use strict";i.d(y,{h:()=>n});const n=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},14850:(he,y,i)=>{"use strict";i.d(y,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},46973:(he,y,i)=>{"use strict";i.d(y,{K:()=>n});const n=(0,i(82306).d)(o=>function(){o(this),this.name="EmptyError",this.message="no elements in sequence"})},79940:(he,y,i)=>{"use strict";i.d(y,{_6:()=>u,jO:()=>a,yG:()=>l});var e=i(84674),n=i(50671);function o(d){return d[d.length-1]}function a(d){return(0,e.m)(o(d))?d.pop():void 0}function l(d){return(0,n.K)(o(d))?d.pop():void 0}function u(d,s){return"number"==typeof o(d)?d.pop():s}},17453:(he,y,i)=>{"use strict";i.d(y,{D:()=>l});const{isArray:e}=Array,{getPrototypeOf:n,prototype:o,keys:a}=Object;function l(d){if(1===d.length){const s=d[0];if(e(s))return{args:s,keys:null};if(function u(d){return d&&"object"==typeof d&&n(d)===o}(s)){const A=a(s);return{args:A.map(_=>s[_]),keys:A}}}return{args:d,keys:null}}},49039:(he,y,i)=>{"use strict";function e(n,o){if(n){const a=n.indexOf(o);0<=a&&n.splice(a,1)}}i.d(y,{P:()=>e})},82306:(he,y,i)=>{"use strict";function e(n){const a=n(l=>{Error.call(l),l.stack=(new Error).stack});return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a}i.d(y,{d:()=>e})},92714:(he,y,i)=>{"use strict";function e(n,o){return n.reduce((a,l,u)=>(a[l]=o[u],a),{})}i.d(y,{n:()=>e})},81441:(he,y,i)=>{"use strict";i.d(y,{O:()=>a,x:()=>o});var e=i(82653);let n=null;function o(l){if(e.config.useDeprecatedSynchronousErrorHandling){const u=!n;if(u&&(n={errorThrown:!1,error:null}),l(),u){const{errorThrown:d,error:s}=n;if(n=null,d)throw s}}else l()}function a(l){e.config.useDeprecatedSynchronousErrorHandling&&n&&(n.errorThrown=!0,n.error=l)}},27103:(he,y,i)=>{"use strict";function e(n,o,a,l=0,u=!1){const d=o.schedule(function(){a(),u?n.add(this.schedule(null,l)):this.unsubscribe()},l);if(n.add(d),!u)return d}i.d(y,{f:()=>e})},42737:(he,y,i)=>{"use strict";function e(n){return n}i.d(y,{y:()=>e})},64266:(he,y,i)=>{"use strict";i.d(y,{z:()=>e});const e=n=>n&&"number"==typeof n.length&&"function"!=typeof n},15726:(he,y,i)=>{"use strict";i.d(y,{D:()=>n});var e=i(84674);function n(o){return Symbol.asyncIterator&&(0,e.m)(o?.[Symbol.asyncIterator])}},84674:(he,y,i)=>{"use strict";function e(n){return"function"==typeof n}i.d(y,{m:()=>e})},38382:(he,y,i)=>{"use strict";i.d(y,{c:()=>o});var e=i(14850),n=i(84674);function o(a){return(0,n.m)(a[e.L])}},83664:(he,y,i)=>{"use strict";i.d(y,{T:()=>o});var e=i(64971),n=i(84674);function o(a){return(0,n.m)(a?.[e.h])}},2664:(he,y,i)=>{"use strict";i.d(y,{b:()=>o});var e=i(65592),n=i(84674);function o(a){return!!a&&(a instanceof e.y||(0,n.m)(a.lift)&&(0,n.m)(a.subscribe))}},54026:(he,y,i)=>{"use strict";i.d(y,{t:()=>n});var e=i(84674);function n(o){return(0,e.m)(o?.then)}},50541:(he,y,i)=>{"use strict";i.d(y,{L:()=>a,Q:()=>o});var e=i(97582),n=i(84674);function o(l){return(0,e.FC)(this,arguments,function*(){const d=l.getReader();try{for(;;){const{value:s,done:A}=yield(0,e.qq)(d.read());if(A)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(s)}}finally{d.releaseLock()}})}function a(l){return(0,n.m)(l?.getReader)}},50671:(he,y,i)=>{"use strict";i.d(y,{K:()=>n});var e=i(84674);function n(o){return o&&(0,e.m)(o.schedule)}},79360:(he,y,i)=>{"use strict";i.d(y,{A:()=>n,e:()=>o});var e=i(84674);function n(a){return(0,e.m)(a?.lift)}function o(a){return l=>{if(n(l))return l.lift(function(u){try{return a(u,this)}catch(d){this.error(d)}});throw new TypeError("Unable to lift unknown Observable type")}}},97400:(he,y,i)=>{"use strict";i.d(y,{Z:()=>a});var e=i(37398);const{isArray:n}=Array;function a(l){return(0,e.U)(u=>function o(l,u){return n(u)?l(...u):l(u)}(l,u))}},72420:(he,y,i)=>{"use strict";function e(){}i.d(y,{Z:()=>e})},88407:(he,y,i)=>{"use strict";i.d(y,{U:()=>o,z:()=>n});var e=i(42737);function n(...a){return o(a)}function o(a){return 0===a.length?e.y:1===a.length?a[0]:function(u){return a.reduce((d,s)=>s(d),u)}}},93894:(he,y,i)=>{"use strict";i.d(y,{h:()=>o});var e=i(82653),n=i(87599);function o(a){n.z.setTimeout(()=>{const{onUnhandledError:l}=e.config;if(!l)throw a;l(a)})}},69853:(he,y,i)=>{"use strict";function e(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}i.d(y,{z:()=>e})},53445:(he,y,i)=>{"use strict";i.r(y),i.d(y,{default:()=>l});
/*!
         * Signature Pad v4.2.0 | https://github.com/szimek/signature_pad
         * (c) 2024 Szymon Nowak | Released under the MIT license
         */
class e{constructor(d,s,A,_){if(isNaN(d)||isNaN(s))throw new Error(`Point is invalid: (${d}, ${s})`);this.x=+d,this.y=+s,this.pressure=A||0,this.time=_||Date.now()}distanceTo(d){return Math.sqrt(Math.pow(this.x-d.x,2)+Math.pow(this.y-d.y,2))}equals(d){return this.x===d.x&&this.y===d.y&&this.pressure===d.pressure&&this.time===d.time}velocityFrom(d){return this.time!==d.time?this.distanceTo(d)/(this.time-d.time):0}}class n{static fromPoints(d,s){const A=this.calculateControlPoints(d[0],d[1],d[2]).c2,_=this.calculateControlPoints(d[1],d[2],d[3]).c1;return new n(d[1],A,_,d[2],s.start,s.end)}static calculateControlPoints(d,s,A){const _=d.x-s.x,C=d.y-s.y,R=s.x-A.x,x=s.y-A.y,f_x=(d.x+s.x)/2,f_y=(d.y+s.y)/2,k_x=(s.x+A.x)/2,k_y=(s.y+A.y)/2,w=Math.sqrt(_*_+C*C),g=Math.sqrt(R*R+x*x),E=g/(w+g),I=s.x-(k_x+(f_x-k_x)*E),L=s.y-(k_y+(f_y-k_y)*E);return{c1:new e(f_x+I,f_y+L),c2:new e(k_x+I,k_y+L)}}constructor(d,s,A,_,C,R){this.startPoint=d,this.control2=s,this.control1=A,this.endPoint=_,this.startWidth=C,this.endWidth=R}length(){let A,_,s=0;for(let C=0;C<=10;C+=1){const R=C/10,x=this.point(R,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),f=this.point(R,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(C>0){const k=x-A,w=f-_;s+=Math.sqrt(k*k+w*w)}A=x,_=f}return s}point(d,s,A,_,C){return s*(1-d)*(1-d)*(1-d)+3*A*(1-d)*(1-d)*d+3*_*(1-d)*d*d+C*d*d*d}}class o{constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(d,s,A){this._et.addEventListener(d,s,A)}dispatchEvent(d){return this._et.dispatchEvent(d)}removeEventListener(d,s,A){this._et.removeEventListener(d,s,A)}}class l extends o{constructor(d,s={}){super(),this.canvas=d,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=A=>{1===A.buttons&&this._strokeBegin(A)},this._handleMouseMove=A=>{this._strokeMoveUpdate(A)},this._handleMouseUp=A=>{1===A.buttons&&this._strokeEnd(A)},this._handleTouchStart=A=>{A.cancelable&&A.preventDefault(),1===A.targetTouches.length&&this._strokeBegin(A.changedTouches[0])},this._handleTouchMove=A=>{A.cancelable&&A.preventDefault(),this._strokeMoveUpdate(A.targetTouches[0])},this._handleTouchEnd=A=>{A.target===this.canvas&&(A.cancelable&&A.preventDefault(),this._strokeEnd(A.changedTouches[0]))},this._handlePointerStart=A=>{A.preventDefault(),this._strokeBegin(A)},this._handlePointerMove=A=>{this._strokeMoveUpdate(A)},this._handlePointerEnd=A=>{this._drawingStroke&&(A.preventDefault(),this._strokeEnd(A))},this.velocityFilterWeight=s.velocityFilterWeight||.7,this.minWidth=s.minWidth||.5,this.maxWidth=s.maxWidth||2.5,this.throttle="throttle"in s?s.throttle:16,this.minDistance="minDistance"in s?s.minDistance:5,this.dotSize=s.dotSize||0,this.penColor=s.penColor||"black",this.backgroundColor=s.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=s.compositeOperation||"source-over",this.canvasContextOptions="canvasContextOptions"in s?s.canvasContextOptions:{},this._strokeMoveUpdate=this.throttle?function a(u,d=250){let _,C,R,s=0,A=null;const x=()=>{s=Date.now(),A=null,_=u.apply(C,R),A||(C=null,R=[])};return function(...k){const w=Date.now(),g=d-(w-s);return C=this,R=k,g<=0||g>d?(A&&(clearTimeout(A),A=null),s=w,_=u.apply(C,R),A||(C=null,R=[])):A||(A=window.setTimeout(x,g)),_}}(l.prototype._strokeUpdate,this.throttle):l.prototype._strokeUpdate,this._ctx=d.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:d,canvas:s}=this;d.fillStyle=this.backgroundColor,d.clearRect(0,0,s.width,s.height),d.fillRect(0,0,s.width,s.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(d,s={}){return new Promise((A,_)=>{const C=new Image,R=s.ratio||window.devicePixelRatio||1,x=s.width||this.canvas.width/R,f=s.height||this.canvas.height/R,k=s.xOffset||0,w=s.yOffset||0;this._reset(this._getPointGroupOptions()),C.onload=()=>{this._ctx.drawImage(C,k,w,x,f),A()},C.onerror=g=>{_(g)},C.crossOrigin="anonymous",C.src=d,this._isEmpty=!1})}toDataURL(d="image/png",s){return"image/svg+xml"===d?("object"!=typeof s&&(s=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(s))}`):("number"!=typeof s&&(s=void 0),this.canvas.toDataURL(d,s))}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const d=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!d?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(d,{clear:s=!0}={}){s&&this.clear(),this._fromData(d,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(d)}toData(){return this._data}_getPointGroupOptions(d){return{penColor:d&&"penColor"in d?d.penColor:this.penColor,dotSize:d&&"dotSize"in d?d.dotSize:this.dotSize,minWidth:d&&"minWidth"in d?d.minWidth:this.minWidth,maxWidth:d&&"maxWidth"in d?d.maxWidth:this.maxWidth,velocityFilterWeight:d&&"velocityFilterWeight"in d?d.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:d&&"compositeOperation"in d?d.compositeOperation:this.compositeOperation}}_strokeBegin(d){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:d,cancelable:!0})))return;this._drawingStroke=!0;const A=this._getPointGroupOptions(),_=Object.assign(Object.assign({},A),{points:[]});this._data.push(_),this._reset(A),this._strokeUpdate(d)}_strokeUpdate(d){if(!this._drawingStroke)return;if(0===this._data.length)return void this._strokeBegin(d);this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:d}));const C=this._createPoint(d.clientX,d.clientY,void 0!==d.pressure?d.pressure:void 0!==d.force?d.force:0),R=this._data[this._data.length-1],x=R.points,f=x.length>0&&x[x.length-1],k=!!f&&C.distanceTo(f)<=this.minDistance,w=this._getPointGroupOptions(R);if(!f||!f||!k){const g=this._addPoint(C,w);f?g&&this._drawCurve(g,w):this._drawDot(C,w),x.push({time:C.time,x:C.x,y:C.y,pressure:C.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:d}))}_strokeEnd(d){this._drawingStroke&&(this._strokeUpdate(d),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:d})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.addEventListener("pointerup",this._handlePointerEnd)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(d){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(d.minWidth+d.maxWidth)/2,this._ctx.fillStyle=d.penColor,this._ctx.globalCompositeOperation=d.compositeOperation}_createPoint(d,s,A){const _=this.canvas.getBoundingClientRect();return new e(d-_.left,s-_.top,A,(new Date).getTime())}_addPoint(d,s){const{_lastPoints:A}=this;if(A.push(d),A.length>2){3===A.length&&A.unshift(A[0]);const _=this._calculateCurveWidths(A[1],A[2],s),C=n.fromPoints(A,_);return A.shift(),C}return null}_calculateCurveWidths(d,s,A){const _=A.velocityFilterWeight*s.velocityFrom(d)+(1-A.velocityFilterWeight)*this._lastVelocity,C=this._strokeWidth(_,A),R={end:C,start:this._lastWidth};return this._lastVelocity=_,this._lastWidth=C,R}_strokeWidth(d,s){return Math.max(s.maxWidth/(d+1),s.minWidth)}_drawCurveSegment(d,s,A){const _=this._ctx;_.moveTo(d,s),_.arc(d,s,A,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(d,s){const A=this._ctx,_=d.endWidth-d.startWidth,C=2*Math.ceil(d.length());A.beginPath(),A.fillStyle=s.penColor;for(let R=0;R<C;R+=1){const x=R/C,f=x*x,k=f*x,w=1-x,g=w*w,M=g*w;let p=M*d.startPoint.x;p+=3*g*x*d.control1.x,p+=3*w*f*d.control2.x,p+=k*d.endPoint.x;let E=M*d.startPoint.y;E+=3*g*x*d.control1.y,E+=3*w*f*d.control2.y,E+=k*d.endPoint.y;const b=Math.min(d.startWidth+k*_,s.maxWidth);this._drawCurveSegment(p,E,b)}A.closePath(),A.fill()}_drawDot(d,s){const A=this._ctx,_=s.dotSize>0?s.dotSize:(s.minWidth+s.maxWidth)/2;A.beginPath(),this._drawCurveSegment(d.x,d.y,_),A.closePath(),A.fillStyle=s.penColor,A.fill()}_fromData(d,s,A){for(const _ of d){const{points:C}=_,R=this._getPointGroupOptions(_);if(C.length>1)for(let x=0;x<C.length;x+=1){const f=C[x],k=new e(f.x,f.y,f.pressure,f.time);0===x&&this._reset(R);const w=this._addPoint(k,R);w&&s(w,R)}else this._reset(R),A(C[0],R)}}toSVG({includeBackgroundColor:d=!1}={}){const s=this._data,A=Math.max(window.devicePixelRatio||1,1),R=this.canvas.width/A,x=this.canvas.height/A,f=document.createElementNS("http://www.w3.org/2000/svg","svg");if(f.setAttribute("xmlns","http://www.w3.org/2000/svg"),f.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),f.setAttribute("viewBox",`0 0 ${R} ${x}`),f.setAttribute("width",R.toString()),f.setAttribute("height",x.toString()),d&&this.backgroundColor){const k=document.createElement("rect");k.setAttribute("width","100%"),k.setAttribute("height","100%"),k.setAttribute("fill",this.backgroundColor),f.appendChild(k)}return this._fromData(s,(k,{penColor:w})=>{const g=document.createElement("path");if(!(isNaN(k.control1.x)||isNaN(k.control1.y)||isNaN(k.control2.x)||isNaN(k.control2.y))){const M=`M ${k.startPoint.x.toFixed(3)},${k.startPoint.y.toFixed(3)} C ${k.control1.x.toFixed(3)},${k.control1.y.toFixed(3)} ${k.control2.x.toFixed(3)},${k.control2.y.toFixed(3)} ${k.endPoint.x.toFixed(3)},${k.endPoint.y.toFixed(3)}`;g.setAttribute("d",M),g.setAttribute("stroke-width",(2.25*k.endWidth).toFixed(3)),g.setAttribute("stroke",w),g.setAttribute("fill","none"),g.setAttribute("stroke-linecap","round"),f.appendChild(g)}},(k,{penColor:w,dotSize:g,minWidth:M,maxWidth:p})=>{const E=document.createElement("circle");E.setAttribute("r",(g>0?g:(M+p)/2).toString()),E.setAttribute("cx",k.x.toString()),E.setAttribute("cy",k.y.toString()),E.setAttribute("fill",w),f.appendChild(E)}),f.outerHTML}}},22150:he=>{"use strict";he.exports=function y(i){for(var e=5381,n=i.length;n;)e=33*e^i.charCodeAt(--n);return e>>>0}},20014:function(he){he.exports=function(y){function i(n){if(e[n])return e[n].exports;var o=e[n]={exports:{},id:n,loaded:!1};return y[n].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}var e={};return i.m=y,i.c=e,i.p="",i(0)}([function(y,i,e){"use strict";function n(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(i,"__esModule",{value:!0});var o=e(3);Object.defineProperty(i,"conformToMask",{enumerable:!0,get:function(){return n(o).default}});var a=e(2);Object.defineProperty(i,"adjustCaretPosition",{enumerable:!0,get:function(){return n(a).default}});var l=e(5);Object.defineProperty(i,"createTextMaskInputElement",{enumerable:!0,get:function(){return n(l).default}})},function(y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.placeholderChar="_",i.strFunction="function"},function(y,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function e(a){var l=a.previousConformedValue,u=void 0===l?o:l,d=a.previousPlaceholder,s=void 0===d?o:d,A=a.currentCaretPosition,_=void 0===A?0:A,C=a.conformedValue,R=a.rawValue,x=a.placeholderChar,f=a.placeholder,k=a.indexesOfPipedChars,w=void 0===k?n:k,g=a.caretTrapIndexes,M=void 0===g?n:g;if(0===_||!R.length)return 0;var E=u.length,b=f.length,I=C.length,L=R.length-E,D=L>0;if(L>1&&!D&&0!==E)return _;var U=0,V=void 0,K=void 0;if(!D||u!==C&&C!==f){var X=C.toLowerCase(),Q=R.toLowerCase().substr(0,_).split(o).filter(function(Oe){return-1!==X.indexOf(Oe)});K=Q[Q.length-1];var re=s.substr(0,Q.length).split(o).filter(function(Oe){return Oe!==x}).length,de=f.substr(0,Q.length).split(o).filter(function(Oe){return Oe!==x}).length;!D&&(de!==re||void 0!==s[Q.length-1]&&void 0!==f[Q.length-2]&&s[Q.length-1]!==x&&s[Q.length-1]!==f[Q.length-1]&&s[Q.length-1]===f[Q.length-2])&&re>0&&f.indexOf(K)>-1&&void 0!==R[_]&&(V=!0,K=R[_]);for(var z=w.map(function(Oe){return X[Oe]}).filter(function(Oe){return Oe===K}).length,q=Q.filter(function(Oe){return Oe===K}).length,ne=f.substr(0,f.indexOf(x)).split(o).filter(function(Oe,Le){return Oe===K&&R[Le]!==Oe}).length+q+z+(V?1:0),_e=0,ge=0;ge<I&&(U=ge+1,X[ge]===K&&_e++,!(_e>=ne));ge++);}else U=_-L;if(D){for(var Te=U,De=U;De<=b;De++)if(f[De]===x&&(Te=De),f[De]===x||-1!==M.indexOf(De)||De===b)return Te}else if(V){for(var fe=U-1;fe>=0;fe--)if(C[fe]===K||-1!==M.indexOf(fe)||0===fe)return fe}else for(var xe=U;xe>=0;xe--)if(f[xe-1]===x||-1!==M.indexOf(xe)||0===xe)return xe};var n=[],o=""},function(y,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(s){return typeof s}:function(s){return s&&"function"==typeof Symbol&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s};i.default=function n(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,_=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,a.isArray)(A)){if((typeof A>"u"?"undefined":o(A))!==l.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");A=A(s,_),A=(0,a.processCaretTraps)(A).maskWithoutCaretTraps}var C=_.guide,R=void 0===C||C,x=_.previousConformedValue,f=void 0===x?d:x,k=_.placeholderChar,w=void 0===k?l.placeholderChar:k,g=_.placeholder,M=void 0===g?(0,a.convertMaskToPlaceholder)(A,w):g,E=_.keepCharPositions,b=!1===R&&void 0!==f,I=s.length,L=f.length,D=M.length,F=A.length,P=I-L,O=P>0,U=_.currentCaretPosition+(O?-P:0),V=U+Math.abs(P);if(!0===E&&!O){for(var K=d,X=U;X<V;X++)M[X]===w&&(K+=w);s=s.slice(0,U)+K+s.slice(U,I)}for(var me=s.split(d).map(function(fe,xe){return{char:fe,isNew:xe>=U&&xe<V}}),J=I-1;J>=0;J--){var Q=me[J].char;Q!==w&&Q===M[J>=U&&L===F?J-P:J]&&me.splice(J,1)}var de=d,te=!1;e:for(var j=0;j<D;j++){var H=M[j];if(H===w){if(me.length>0)for(;me.length>0;){var z=me.shift(),q=z.char,se=z.isNew;if(q===w&&!0!==b){de+=w;continue e}if(A[j].test(q)){if(!0===E&&!1!==se&&f!==d&&!1!==R&&O){for(var ne=me.length,_e=null,ge=0;ge<ne;ge++){var Ce=me[ge];if(Ce.char!==w&&!1===Ce.isNew)break;if(Ce.char===w){_e=ge;break}}null!==_e?(de+=q,me.splice(_e,1)):j--}else de+=q;continue e}te=!0}!1===b&&(de+=M.substr(j,D));break}de+=H}if(b&&!1===O){for(var Te=null,De=0;De<de.length;De++)M[De]===w&&(Te=De);de=null!==Te?de.substr(0,Te+1):d}return{conformedValue:de,meta:{someCharsRejected:te}}};var a=e(4),l=e(1),u=[],d=""},function(y,i,e){"use strict";function o(C){return Array.isArray&&Array.isArray(C)||C instanceof Array}Object.defineProperty(i,"__esModule",{value:!0}),i.convertMaskToPlaceholder=function n(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,R=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.placeholderChar;if(!o(C))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==C.indexOf(R))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(R)+"\n\nThe mask that was received is: "+JSON.stringify(C));return C.map(function(x){return x instanceof RegExp?R:x}).join("")},i.isArray=o,i.isString=function a(C){return"string"==typeof C||C instanceof String},i.isNumber=function l(C){return"number"==typeof C&&void 0===C.length&&!isNaN(C)},i.isNil=function u(C){return typeof C>"u"||null===C},i.processCaretTraps=function d(C){for(var R=[],x=void 0;-1!==(x=C.indexOf(_));)R.push(x),C.splice(x,1);return{maskWithoutCaretTraps:C,indexes:R}};var s=e(1),A=[],_="[]"},function(y,i,e){"use strict";function n(p){return p&&p.__esModule?p:{default:p}}Object.defineProperty(i,"__esModule",{value:!0});var u=Object.assign||function(p){for(var E=1;E<arguments.length;E++){var b=arguments[E];for(var I in b)Object.prototype.hasOwnProperty.call(b,I)&&(p[I]=b[I])}return p},d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(p){return typeof p}:function(p){return p&&"function"==typeof Symbol&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p};i.default=function o(p){var E={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:E,update:function(b){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p,L=I.inputElement,D=I.mask,F=I.guide,P=I.pipe,O=I.placeholderChar,U=void 0===O?x.placeholderChar:O,V=I.keepCharPositions,K=void 0!==V&&V,X=I.showMask,me=void 0!==X&&X;if(typeof b>"u"&&(b=L.value),b!==E.previousConformedValue){(typeof D>"u"?"undefined":d(D))===w&&void 0!==D.pipe&&void 0!==D.mask&&(P=D.pipe,D=D.mask);var J=void 0,Q=void 0;if(D instanceof Array&&(J=(0,R.convertMaskToPlaceholder)(D,U)),!1!==D){var re=function l(p){if((0,R.isString)(p))return p;if((0,R.isNumber)(p))return String(p);if(null==p)return f;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(p))}(b),de=L.selectionEnd,te=E.previousConformedValue,j=E.previousPlaceholder,H=void 0;if((typeof D>"u"?"undefined":d(D))===x.strFunction){if(!1===(Q=D(re,{currentCaretPosition:de,previousConformedValue:te,placeholderChar:U})))return;var z=(0,R.processCaretTraps)(Q);H=z.indexes,J=(0,R.convertMaskToPlaceholder)(Q=z.maskWithoutCaretTraps,U)}else Q=D;var ne={previousConformedValue:te,guide:F,placeholderChar:U,pipe:P,placeholder:J,currentCaretPosition:de,keepCharPositions:K},ge=(0,C.default)(re,Q,ne).conformedValue,Ce=(typeof P>"u"?"undefined":d(P))===x.strFunction,Te={};Ce&&(!1===(Te=P(ge,u({rawValue:re},ne)))?Te={value:te,rejected:!0}:(0,R.isString)(Te)&&(Te={value:Te}));var De=Ce?Te.value:ge,fe=(0,A.default)({previousConformedValue:te,previousPlaceholder:j,conformedValue:De,placeholder:J,rawValue:re,currentCaretPosition:de,placeholderChar:U,indexesOfPipedChars:Te.indexesOfPipedChars,caretTrapIndexes:H}),Le=De===J&&0===fe?me?J:f:De;E.previousConformedValue=Le,E.previousPlaceholder=J,L.value!==Le&&(L.value=Le,function a(p,E){document.activeElement===p&&(g?M(function(){return p.setSelectionRange(E,E,k)},0):p.setSelectionRange(E,E,k))}(L,fe))}}}}};var A=n(e(2)),C=n(e(3)),R=e(4),x=e(1),f="",k="none",w="object",g=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),M=typeof requestAnimationFrame<"u"?requestAnimationFrame:setTimeout}])},65850:(he,y,i)=>{"use strict";function e(Sn){if(null==Sn)return window;if("[object Window]"!==Sn.toString()){var Vn=Sn.ownerDocument;return Vn&&Vn.defaultView||window}return Sn}function n(Sn){return Sn instanceof e(Sn).Element||Sn instanceof Element}function o(Sn){return Sn instanceof e(Sn).HTMLElement||Sn instanceof HTMLElement}function a(Sn){return!(typeof ShadowRoot>"u")&&(Sn instanceof e(Sn).ShadowRoot||Sn instanceof ShadowRoot)}i.r(y),i.d(y,{animateFill:()=>ur,createSingleton:()=>Va,default:()=>Co,delegate:()=>al,followCursor:()=>ze,hideAll:()=>ys,inlinePositioning:()=>it,roundArrow:()=>ji,sticky:()=>Hn});var l=Math.max,u=Math.min,d=Math.round;function s(){var Sn=navigator.userAgentData;return null!=Sn&&Sn.brands&&Array.isArray(Sn.brands)?Sn.brands.map(function(Vn){return Vn.brand+"/"+Vn.version}).join(" "):navigator.userAgent}function A(){return!/^((?!chrome|android).)*safari/i.test(s())}function _(Sn,Vn,Dn){void 0===Vn&&(Vn=!1),void 0===Dn&&(Dn=!1);var kn=Sn.getBoundingClientRect(),ui=1,Ot=1;Vn&&o(Sn)&&(ui=Sn.offsetWidth>0&&d(kn.width)/Sn.offsetWidth||1,Ot=Sn.offsetHeight>0&&d(kn.height)/Sn.offsetHeight||1);var cn=(n(Sn)?e(Sn):window).visualViewport,Ht=!A()&&Dn,ft=(kn.left+(Ht&&cn?cn.offsetLeft:0))/ui,Nt=(kn.top+(Ht&&cn?cn.offsetTop:0))/Ot,an=kn.width/ui,$e=kn.height/Ot;return{width:an,height:$e,top:Nt,right:ft+an,bottom:Nt+$e,left:ft,x:ft,y:Nt}}function C(Sn){var Vn=e(Sn);return{scrollLeft:Vn.pageXOffset,scrollTop:Vn.pageYOffset}}function f(Sn){return Sn?(Sn.nodeName||"").toLowerCase():null}function k(Sn){return((n(Sn)?Sn.ownerDocument:Sn.document)||window.document).documentElement}function w(Sn){return _(k(Sn)).left+C(Sn).scrollLeft}function g(Sn){return e(Sn).getComputedStyle(Sn)}function M(Sn){var Vn=g(Sn);return/auto|scroll|overlay|hidden/.test(Vn.overflow+Vn.overflowY+Vn.overflowX)}function E(Sn,Vn,Dn){void 0===Dn&&(Dn=!1);var kn=o(Vn),ui=o(Vn)&&function p(Sn){var Vn=Sn.getBoundingClientRect(),Dn=d(Vn.width)/Sn.offsetWidth||1,kn=d(Vn.height)/Sn.offsetHeight||1;return 1!==Dn||1!==kn}(Vn),Ot=k(Vn),en=_(Sn,ui,Dn),cn={scrollLeft:0,scrollTop:0},Ht={x:0,y:0};return(kn||!kn&&!Dn)&&(("body"!==f(Vn)||M(Ot))&&(cn=function x(Sn){return Sn!==e(Sn)&&o(Sn)?function R(Sn){return{scrollLeft:Sn.scrollLeft,scrollTop:Sn.scrollTop}}(Sn):C(Sn)}(Vn)),o(Vn)?((Ht=_(Vn,!0)).x+=Vn.clientLeft,Ht.y+=Vn.clientTop):Ot&&(Ht.x=w(Ot))),{x:en.left+cn.scrollLeft-Ht.x,y:en.top+cn.scrollTop-Ht.y,width:en.width,height:en.height}}function b(Sn){var Vn=_(Sn),Dn=Sn.offsetWidth,kn=Sn.offsetHeight;return Math.abs(Vn.width-Dn)<=1&&(Dn=Vn.width),Math.abs(Vn.height-kn)<=1&&(kn=Vn.height),{x:Sn.offsetLeft,y:Sn.offsetTop,width:Dn,height:kn}}function I(Sn){return"html"===f(Sn)?Sn:Sn.assignedSlot||Sn.parentNode||(a(Sn)?Sn.host:null)||k(Sn)}function L(Sn){return["html","body","#document"].indexOf(f(Sn))>=0?Sn.ownerDocument.body:o(Sn)&&M(Sn)?Sn:L(I(Sn))}function D(Sn,Vn){var Dn;void 0===Vn&&(Vn=[]);var kn=L(Sn),ui=kn===(null==(Dn=Sn.ownerDocument)?void 0:Dn.body),Ot=e(kn),en=ui?[Ot].concat(Ot.visualViewport||[],M(kn)?kn:[]):kn,cn=Vn.concat(en);return ui?cn:cn.concat(D(I(en)))}function F(Sn){return["table","td","th"].indexOf(f(Sn))>=0}function P(Sn){return o(Sn)&&"fixed"!==g(Sn).position?Sn.offsetParent:null}function U(Sn){for(var Vn=e(Sn),Dn=P(Sn);Dn&&F(Dn)&&"static"===g(Dn).position;)Dn=P(Dn);return Dn&&("html"===f(Dn)||"body"===f(Dn)&&"static"===g(Dn).position)?Vn:Dn||function O(Sn){var Vn=/firefox/i.test(s());if(/Trident/i.test(s())&&o(Sn)&&"fixed"===g(Sn).position)return null;var ui=I(Sn);for(a(ui)&&(ui=ui.host);o(ui)&&["html","body"].indexOf(f(ui))<0;){var Ot=g(ui);if("none"!==Ot.transform||"none"!==Ot.perspective||"paint"===Ot.contain||-1!==["transform","perspective"].indexOf(Ot.willChange)||Vn&&"filter"===Ot.willChange||Vn&&Ot.filter&&"none"!==Ot.filter)return ui;ui=ui.parentNode}return null}(Sn)||Vn}var V="top",K="bottom",X="right",me="left",J="auto",Q=[V,K,X,me],re="start",de="end",j="viewport",H="popper",q=Q.reduce(function(Sn,Vn){return Sn.concat([Vn+"-"+re,Vn+"-"+de])},[]),se=[].concat(Q,[J]).reduce(function(Sn,Vn){return Sn.concat([Vn,Vn+"-"+re,Vn+"-"+de])},[]),Le=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Gt(Sn){var Vn=new Map,Dn=new Set,kn=[];function ui(Ot){Dn.add(Ot.name),[].concat(Ot.requires||[],Ot.requiresIfExists||[]).forEach(function(cn){if(!Dn.has(cn)){var Ht=Vn.get(cn);Ht&&ui(Ht)}}),kn.push(Ot)}return Sn.forEach(function(Ot){Vn.set(Ot.name,Ot)}),Sn.forEach(function(Ot){Dn.has(Ot.name)||ui(Ot)}),kn}function An(Sn){var Vn;return function(){return Vn||(Vn=new Promise(function(Dn){Promise.resolve().then(function(){Vn=void 0,Dn(Sn())})})),Vn}}var xn={placement:"bottom",modifiers:[],strategy:"absolute"};function mt(){for(var Sn=arguments.length,Vn=new Array(Sn),Dn=0;Dn<Sn;Dn++)Vn[Dn]=arguments[Dn];return!Vn.some(function(kn){return!(kn&&"function"==typeof kn.getBoundingClientRect)})}function ut(Sn){void 0===Sn&&(Sn={});var Dn=Sn.defaultModifiers,kn=void 0===Dn?[]:Dn,ui=Sn.defaultOptions,Ot=void 0===ui?xn:ui;return function(cn,Ht,ft){void 0===ft&&(ft=Ot);var Nt={placement:"bottom",orderedModifiers:[],options:Object.assign({},xn,Ot),modifiersData:{},elements:{reference:cn,popper:Ht},attributes:{},styles:{}},an=[],$e=!1,Je={state:Nt,setOptions:function(At){var Rt="function"==typeof At?At(Nt.options):At;Ge(),Nt.options=Object.assign({},Ot,Nt.options,Rt),Nt.scrollParents={reference:n(cn)?D(cn):cn.contextElement?D(cn.contextElement):[],popper:D(Ht)};var Pt=function Ut(Sn){var Vn=Gt(Sn);return Le.reduce(function(Dn,kn){return Dn.concat(Vn.filter(function(ui){return ui.phase===kn}))},[])}(function $n(Sn){var Vn=Sn.reduce(function(Dn,kn){var ui=Dn[kn.name];return Dn[kn.name]=ui?Object.assign({},ui,kn,{options:Object.assign({},ui.options,kn.options),data:Object.assign({},ui.data,kn.data)}):kn,Dn},{});return Object.keys(Vn).map(function(Dn){return Vn[Dn]})}([].concat(kn,Nt.options.modifiers)));return Nt.orderedModifiers=Pt.filter(function($t){return $t.enabled}),function Ve(){Nt.orderedModifiers.forEach(function(Be){var Rt=Be.options,$t=Be.effect;if("function"==typeof $t){var Xn=$t({state:Nt,name:Be.name,instance:Je,options:void 0===Rt?{}:Rt});an.push(Xn||function(){})}})}(),Je.update()},forceUpdate:function(){if(!$e){var At=Nt.elements,Rt=At.reference,Pt=At.popper;if(mt(Rt,Pt)){Nt.rects={reference:E(Rt,U(Pt),"fixed"===Nt.options.strategy),popper:b(Pt)},Nt.reset=!1,Nt.placement=Nt.options.placement,Nt.orderedModifiers.forEach(function(On){return Nt.modifiersData[On.name]=Object.assign({},On.data)});for(var $t=0;$t<Nt.orderedModifiers.length;$t++)if(!0!==Nt.reset){var Xn=Nt.orderedModifiers[$t],Nn=Xn.fn,Ae=Xn.options;"function"==typeof Nn&&(Nt=Nn({state:Nt,options:void 0===Ae?{}:Ae,name:Xn.name,instance:Je})||Nt)}else Nt.reset=!1,$t=-1}}},update:An(function(){return new Promise(function(Be){Je.forceUpdate(),Be(Nt)})}),destroy:function(){Ge(),$e=!0}};if(!mt(cn,Ht))return Je;function Ge(){an.forEach(function(Be){return Be()}),an=[]}return Je.setOptions(ft).then(function(Be){!$e&&ft.onFirstUpdate&&ft.onFirstUpdate(Be)}),Je}}var dn={passive:!0};function yi(Sn){return Sn.split("-")[0]}function nn(Sn){return Sn.split("-")[1]}function Mi(Sn){return["top","bottom"].indexOf(Sn)>=0?"x":"y"}function mi(Sn){var Ht,Vn=Sn.reference,Dn=Sn.element,kn=Sn.placement,ui=kn?yi(kn):null,Ot=kn?nn(kn):null,en=Vn.x+Vn.width/2-Dn.width/2,cn=Vn.y+Vn.height/2-Dn.height/2;switch(ui){case V:Ht={x:en,y:Vn.y-Dn.height};break;case K:Ht={x:en,y:Vn.y+Vn.height};break;case X:Ht={x:Vn.x+Vn.width,y:cn};break;case me:Ht={x:Vn.x-Dn.width,y:cn};break;default:Ht={x:Vn.x,y:Vn.y}}var ft=ui?Mi(ui):null;if(null!=ft){var Nt="y"===ft?"height":"width";switch(Ot){case re:Ht[ft]=Ht[ft]-(Vn[Nt]/2-Dn[Nt]/2);break;case de:Ht[ft]=Ht[ft]+(Vn[Nt]/2-Dn[Nt]/2)}}return Ht}var xo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xt(Sn){var Vn,Dn=Sn.popper,kn=Sn.popperRect,ui=Sn.placement,Ot=Sn.variation,en=Sn.offsets,cn=Sn.position,Ht=Sn.gpuAcceleration,ft=Sn.adaptive,Nt=Sn.roundOffsets,an=Sn.isFixed,$e=en.x,Je=void 0===$e?0:$e,Ve=en.y,Ge=void 0===Ve?0:Ve,Be="function"==typeof Nt?Nt({x:Je,y:Ge}):{x:Je,y:Ge};Je=Be.x,Ge=Be.y;var At=en.hasOwnProperty("x"),Rt=en.hasOwnProperty("y"),Pt=me,$t=V,Xn=window;if(ft){var Nn=U(Dn),Ae="clientHeight",He="clientWidth";Nn===e(Dn)&&"static"!==g(Nn=k(Dn)).position&&"absolute"===cn&&(Ae="scrollHeight",He="scrollWidth"),(ui===V||(ui===me||ui===X)&&Ot===de)&&($t=K,Ge-=(an&&Nn===Xn&&Xn.visualViewport?Xn.visualViewport.height:Nn[Ae])-kn.height,Ge*=Ht?1:-1),ui!==me&&(ui!==V&&ui!==K||Ot!==de)||(Pt=X,Je-=(an&&Nn===Xn&&Xn.visualViewport?Xn.visualViewport.width:Nn[He])-kn.width,Je*=Ht?1:-1)}var xi,Fi=Object.assign({position:cn},ft&&xo),Ci=!0===Nt?function Bn(Sn,Vn){var kn=Sn.y,ui=Vn.devicePixelRatio||1;return{x:d(Sn.x*ui)/ui||0,y:d(kn*ui)/ui||0}}({x:Je,y:Ge},e(Dn)):{x:Je,y:Ge};return Je=Ci.x,Ge=Ci.y,Object.assign({},Fi,Ht?((xi={})[$t]=Rt?"0":"",xi[Pt]=At?"0":"",xi.transform=(Xn.devicePixelRatio||1)<=1?"translate("+Je+"px, "+Ge+"px)":"translate3d("+Je+"px, "+Ge+"px, 0)",xi):((Vn={})[$t]=Rt?Ge+"px":"",Vn[Pt]=At?Je+"px":"",Vn.transform="",Vn))}const Fn={name:"applyStyles",enabled:!0,phase:"write",fn:function un(Sn){var Vn=Sn.state;Object.keys(Vn.elements).forEach(function(Dn){var kn=Vn.styles[Dn]||{},ui=Vn.attributes[Dn]||{},Ot=Vn.elements[Dn];!o(Ot)||!f(Ot)||(Object.assign(Ot.style,kn),Object.keys(ui).forEach(function(en){var cn=ui[en];!1===cn?Ot.removeAttribute(en):Ot.setAttribute(en,!0===cn?"":cn)}))})},effect:function Ki(Sn){var Vn=Sn.state,Dn={popper:{position:Vn.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(Vn.elements.popper.style,Dn.popper),Vn.styles=Dn,Vn.elements.arrow&&Object.assign(Vn.elements.arrow.style,Dn.arrow),function(){Object.keys(Vn.elements).forEach(function(kn){var ui=Vn.elements[kn],Ot=Vn.attributes[kn]||{},cn=Object.keys(Vn.styles.hasOwnProperty(kn)?Vn.styles[kn]:Dn[kn]).reduce(function(Ht,ft){return Ht[ft]="",Ht},{});!o(ui)||!f(ui)||(Object.assign(ui.style,cn),Object.keys(Ot).forEach(function(Ht){ui.removeAttribute(Ht)}))})}},requires:["computeStyles"]};var xt={left:"right",right:"left",bottom:"top",top:"bottom"};function wt(Sn){return Sn.replace(/left|right|bottom|top/g,function(Vn){return xt[Vn]})}var Mt={start:"end",end:"start"};function pt(Sn){return Sn.replace(/start|end/g,function(Vn){return Mt[Vn]})}function Ne(Sn,Vn){var Dn=Vn.getRootNode&&Vn.getRootNode();if(Sn.contains(Vn))return!0;if(Dn&&a(Dn)){var kn=Vn;do{if(kn&&Sn.isSameNode(kn))return!0;kn=kn.parentNode||kn.host}while(kn)}return!1}function vt(Sn){return Object.assign({},Sn,{left:Sn.x,top:Sn.y,right:Sn.x+Sn.width,bottom:Sn.y+Sn.height})}function jn(Sn,Vn,Dn){return Vn===j?vt(function Lt(Sn,Vn){var Dn=e(Sn),kn=k(Sn),ui=Dn.visualViewport,Ot=kn.clientWidth,en=kn.clientHeight,cn=0,Ht=0;if(ui){Ot=ui.width,en=ui.height;var ft=A();(ft||!ft&&"fixed"===Vn)&&(cn=ui.offsetLeft,Ht=ui.offsetTop)}return{width:Ot,height:en,x:cn+w(Sn),y:Ht}}(Sn,Dn)):n(Vn)?function ln(Sn,Vn){var Dn=_(Sn,!1,"fixed"===Vn);return Dn.top=Dn.top+Sn.clientTop,Dn.left=Dn.left+Sn.clientLeft,Dn.bottom=Dn.top+Sn.clientHeight,Dn.right=Dn.left+Sn.clientWidth,Dn.width=Sn.clientWidth,Dn.height=Sn.clientHeight,Dn.x=Dn.left,Dn.y=Dn.top,Dn}(Vn,Dn):vt(function tt(Sn){var Vn,Dn=k(Sn),kn=C(Sn),ui=null==(Vn=Sn.ownerDocument)?void 0:Vn.body,Ot=l(Dn.scrollWidth,Dn.clientWidth,ui?ui.scrollWidth:0,ui?ui.clientWidth:0),en=l(Dn.scrollHeight,Dn.clientHeight,ui?ui.scrollHeight:0,ui?ui.clientHeight:0),cn=-kn.scrollLeft+w(Sn),Ht=-kn.scrollTop;return"rtl"===g(ui||Dn).direction&&(cn+=l(Dn.clientWidth,ui?ui.clientWidth:0)-Ot),{width:Ot,height:en,x:cn,y:Ht}}(k(Sn)))}function ot(Sn){return Object.assign({},{top:0,right:0,bottom:0,left:0},Sn)}function pn(Sn,Vn){return Vn.reduce(function(Dn,kn){return Dn[kn]=Sn,Dn},{})}function _i(Sn,Vn){void 0===Vn&&(Vn={});var kn=Vn.placement,ui=void 0===kn?Sn.placement:kn,Ot=Vn.strategy,en=void 0===Ot?Sn.strategy:Ot,cn=Vn.boundary,Ht=void 0===cn?"clippingParents":cn,ft=Vn.rootBoundary,Nt=void 0===ft?j:ft,an=Vn.elementContext,$e=void 0===an?H:an,Je=Vn.altBoundary,Ve=void 0!==Je&&Je,Ge=Vn.padding,Be=void 0===Ge?0:Ge,At=ot("number"!=typeof Be?Be:pn(Be,Q)),Pt=Sn.rects.popper,$t=Sn.elements[Ve?$e===H?"reference":H:$e],Xn=function go(Sn,Vn,Dn,kn){var ui="clippingParents"===Vn?function Pi(Sn){var Vn=D(I(Sn)),kn=["absolute","fixed"].indexOf(g(Sn).position)>=0&&o(Sn)?U(Sn):Sn;return n(kn)?Vn.filter(function(ui){return n(ui)&&Ne(ui,kn)&&"body"!==f(ui)}):[]}(Sn):[].concat(Vn),Ot=[].concat(ui,[Dn]),cn=Ot.reduce(function(Ht,ft){var Nt=jn(Sn,ft,kn);return Ht.top=l(Nt.top,Ht.top),Ht.right=u(Nt.right,Ht.right),Ht.bottom=u(Nt.bottom,Ht.bottom),Ht.left=l(Nt.left,Ht.left),Ht},jn(Sn,Ot[0],kn));return cn.width=cn.right-cn.left,cn.height=cn.bottom-cn.top,cn.x=cn.left,cn.y=cn.top,cn}(n($t)?$t:$t.contextElement||k(Sn.elements.popper),Ht,Nt,en),Nn=_(Sn.elements.reference),Ae=mi({reference:Nn,element:Pt,strategy:"absolute",placement:ui}),He=vt(Object.assign({},Pt,Ae)),Kt=$e===H?He:Nn,On={top:Xn.top-Kt.top+At.top,bottom:Kt.bottom-Xn.bottom+At.bottom,left:Xn.left-Kt.left+At.left,right:Kt.right-Xn.right+At.right},Fi=Sn.modifiersData.offset;if($e===H&&Fi){var Ci=Fi[ui];Object.keys(On).forEach(function(xi){var Wn=[X,K].indexOf(xi)>=0?1:-1,Vt=[V,K].indexOf(xi)>=0?"y":"x";On[xi]+=Ci[Vt]*Wn})}return On}function Xi(Sn,Vn,Dn){return l(Sn,u(Vn,Dn))}function Xo(Sn,Vn,Dn){return void 0===Dn&&(Dn={x:0,y:0}),{top:Sn.top-Vn.height-Dn.y,right:Sn.right-Vn.width+Dn.x,bottom:Sn.bottom-Vn.height+Dn.y,left:Sn.left-Vn.width-Dn.x}}function Lo(Sn){return[V,X,K,me].some(function(Vn){return Sn[Vn]>=0})}var as=ut({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function sn(Sn){var Vn=Sn.state,Dn=Sn.instance,kn=Sn.options,ui=kn.scroll,Ot=void 0===ui||ui,en=kn.resize,cn=void 0===en||en,Ht=e(Vn.elements.popper),ft=[].concat(Vn.scrollParents.reference,Vn.scrollParents.popper);return Ot&&ft.forEach(function(Nt){Nt.addEventListener("scroll",Dn.update,dn)}),cn&&Ht.addEventListener("resize",Dn.update,dn),function(){Ot&&ft.forEach(function(Nt){Nt.removeEventListener("scroll",Dn.update,dn)}),cn&&Ht.removeEventListener("resize",Dn.update,dn)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function Eo(Sn){var Vn=Sn.state;Vn.modifiersData[Sn.name]=mi({reference:Vn.rects.reference,element:Vn.rects.popper,strategy:"absolute",placement:Vn.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function Ji(Sn){var Vn=Sn.state,Dn=Sn.options,kn=Dn.gpuAcceleration,ui=void 0===kn||kn,Ot=Dn.adaptive,en=void 0===Ot||Ot,cn=Dn.roundOffsets,Ht=void 0===cn||cn,ft={placement:yi(Vn.placement),variation:nn(Vn.placement),popper:Vn.elements.popper,popperRect:Vn.rects.popper,gpuAcceleration:ui,isFixed:"fixed"===Vn.options.strategy};null!=Vn.modifiersData.popperOffsets&&(Vn.styles.popper=Object.assign({},Vn.styles.popper,Xt(Object.assign({},ft,{offsets:Vn.modifiersData.popperOffsets,position:Vn.options.strategy,adaptive:en,roundOffsets:Ht})))),null!=Vn.modifiersData.arrow&&(Vn.styles.arrow=Object.assign({},Vn.styles.arrow,Xt(Object.assign({},ft,{offsets:Vn.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Ht})))),Vn.attributes.popper=Object.assign({},Vn.attributes.popper,{"data-popper-placement":Vn.placement})},data:{}},Fn,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function It(Sn){var Vn=Sn.state,kn=Sn.name,ui=Sn.options.offset,Ot=void 0===ui?[0,0]:ui,en=se.reduce(function(Nt,an){return Nt[an]=function oi(Sn,Vn,Dn){var kn=yi(Sn),ui=[me,V].indexOf(kn)>=0?-1:1,Ot="function"==typeof Dn?Dn(Object.assign({},Vn,{placement:Sn})):Dn,en=Ot[0],cn=Ot[1];return en=en||0,cn=(cn||0)*ui,[me,X].indexOf(kn)>=0?{x:cn,y:en}:{x:en,y:cn}}(an,Vn.rects,Ot),Nt},{}),cn=en[Vn.placement],ft=cn.y;null!=Vn.modifiersData.popperOffsets&&(Vn.modifiersData.popperOffsets.x+=cn.x,Vn.modifiersData.popperOffsets.y+=ft),Vn.modifiersData[kn]=en}},{name:"flip",enabled:!0,phase:"main",fn:function zn(Sn){var Vn=Sn.state,Dn=Sn.options,kn=Sn.name;if(!Vn.modifiersData[kn]._skip){for(var ui=Dn.mainAxis,Ot=void 0===ui||ui,en=Dn.altAxis,cn=void 0===en||en,Ht=Dn.fallbackPlacements,ft=Dn.padding,Nt=Dn.boundary,an=Dn.rootBoundary,$e=Dn.altBoundary,Je=Dn.flipVariations,Ve=void 0===Je||Je,Ge=Dn.allowedAutoPlacements,Be=Vn.options.placement,At=yi(Be),Pt=Ht||(At!==Be&&Ve?function hi(Sn){if(yi(Sn)===J)return[];var Vn=wt(Sn);return[pt(Sn),Vn,pt(Vn)]}(Be):[wt(Be)]),$t=[Be].concat(Pt).reduce(function(ci,Oi){return ci.concat(yi(Oi)===J?function wi(Sn,Vn){void 0===Vn&&(Vn={});var ui=Vn.boundary,Ot=Vn.rootBoundary,en=Vn.padding,cn=Vn.flipVariations,Ht=Vn.allowedAutoPlacements,ft=void 0===Ht?se:Ht,Nt=nn(Vn.placement),an=Nt?cn?q:q.filter(function(Ve){return nn(Ve)===Nt}):Q,$e=an.filter(function(Ve){return ft.indexOf(Ve)>=0});0===$e.length&&($e=an);var Je=$e.reduce(function(Ve,Ge){return Ve[Ge]=_i(Sn,{placement:Ge,boundary:ui,rootBoundary:Ot,padding:en})[yi(Ge)],Ve},{});return Object.keys(Je).sort(function(Ve,Ge){return Je[Ve]-Je[Ge]})}(Vn,{placement:Oi,boundary:Nt,rootBoundary:an,padding:ft,flipVariations:Ve,allowedAutoPlacements:Ge}):Oi)},[]),Xn=Vn.rects.reference,Nn=Vn.rects.popper,Ae=new Map,He=!0,Kt=$t[0],On=0;On<$t.length;On++){var Fi=$t[On],Ci=yi(Fi),xi=nn(Fi)===re,Wn=[V,K].indexOf(Ci)>=0,Vt=Wn?"width":"height",qt=_i(Vn,{placement:Fi,boundary:Nt,rootBoundary:an,altBoundary:$e,padding:ft}),bn=Wn?xi?X:me:xi?K:V;Xn[Vt]>Nn[Vt]&&(bn=wt(bn));var ii=wt(bn),Vi=[];if(Ot&&Vi.push(qt[Ci]<=0),cn&&Vi.push(qt[bn]<=0,qt[ii]<=0),Vi.every(function(ci){return ci})){Kt=Fi,He=!1;break}Ae.set(Fi,Vi)}if(He)for(var zt=function(Oi){var Ai=$t.find(function(Pn){var qn=Ae.get(Pn);if(qn)return qn.slice(0,Oi).every(function(Ni){return Ni})});if(Ai)return Kt=Ai,"break"},mn=Ve?3:1;mn>0&&"break"!==zt(mn);mn--);Vn.placement!==Kt&&(Vn.modifiersData[kn]._skip=!0,Vn.placement=Kt,Vn.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function bo(Sn){var Vn=Sn.state,Dn=Sn.options,kn=Sn.name,ui=Dn.mainAxis,Ot=void 0===ui||ui,en=Dn.altAxis,cn=void 0!==en&&en,$e=Dn.tether,Je=void 0===$e||$e,Ve=Dn.tetherOffset,Ge=void 0===Ve?0:Ve,Be=_i(Vn,{boundary:Dn.boundary,rootBoundary:Dn.rootBoundary,padding:Dn.padding,altBoundary:Dn.altBoundary}),At=yi(Vn.placement),Rt=nn(Vn.placement),Pt=!Rt,$t=Mi(At),Xn=function li(Sn){return"x"===Sn?"y":"x"}($t),Nn=Vn.modifiersData.popperOffsets,Ae=Vn.rects.reference,He=Vn.rects.popper,Kt="function"==typeof Ge?Ge(Object.assign({},Vn.rects,{placement:Vn.placement})):Ge,On="number"==typeof Kt?{mainAxis:Kt,altAxis:Kt}:Object.assign({mainAxis:0,altAxis:0},Kt),Fi=Vn.modifiersData.offset?Vn.modifiersData.offset[Vn.placement]:null,Ci={x:0,y:0};if(Nn){if(Ot){var xi,Wn="y"===$t?V:me,Vt="y"===$t?K:X,qt="y"===$t?"height":"width",bn=Nn[$t],ii=bn+Be[Wn],Vi=bn-Be[Vt],Jn=Je?-He[qt]/2:0,zt=Rt===re?Ae[qt]:He[qt],mn=Rt===re?-He[qt]:-Ae[qt],Qn=Vn.elements.arrow,ci=Je&&Qn?b(Qn):{width:0,height:0},Oi=Vn.modifiersData["arrow#persistent"]?Vn.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Ai=Oi[Wn],Pn=Oi[Vt],qn=Xi(0,Ae[qt],ci[qt]),Ni=Pt?Ae[qt]/2-Jn-qn-Ai-On.mainAxis:zt-qn-Ai-On.mainAxis,Ue=Pt?-Ae[qt]/2+Jn+qn+Pn+On.mainAxis:mn+qn+Pn+On.mainAxis,Ye=Vn.elements.arrow&&U(Vn.elements.arrow),Me=Ye?"y"===$t?Ye.clientTop||0:Ye.clientLeft||0:0,pe=null!=(xi=Fi?.[$t])?xi:0,yt=bn+Ue-pe,on=Xi(Je?u(ii,bn+Ni-pe-Me):ii,bn,Je?l(Vi,yt):Vi);Nn[$t]=on,Ci[$t]=on-bn}if(cn){var zi,po=Nn[Xn],$i="y"===Xn?"height":"width",ro=po+Be["x"===$t?V:me],wo=po-Be["x"===$t?K:X],io=-1!==[V,me].indexOf(At),Wi=null!=(zi=Fi?.[Xn])?zi:0,fo=io?ro:po-Ae[$i]-He[$i]-Wi+On.altAxis,cr=io?po+Ae[$i]+He[$i]-Wi-On.altAxis:wo,Fr=Je&&io?function ki(Sn,Vn,Dn){var kn=Xi(Sn,Vn,Dn);return kn>Dn?Dn:kn}(fo,po,cr):Xi(Je?fo:ro,po,Je?cr:wo);Nn[Xn]=Fr,Ci[Xn]=Fr-po}Vn.modifiersData[kn]=Ci}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function Zi(Sn){var Vn,Dn=Sn.state,kn=Sn.name,ui=Sn.options,Ot=Dn.elements.arrow,en=Dn.modifiersData.popperOffsets,cn=yi(Dn.placement),Ht=Mi(cn),Nt=[me,X].indexOf(cn)>=0?"height":"width";if(Ot&&en){var an=function(Vn,Dn){return ot("number"!=typeof(Vn="function"==typeof Vn?Vn(Object.assign({},Dn.rects,{placement:Dn.placement})):Vn)?Vn:pn(Vn,Q))}(ui.padding,Dn),$e=b(Ot),Je="y"===Ht?V:me,Ve="y"===Ht?K:X,Ge=Dn.rects.reference[Nt]+Dn.rects.reference[Ht]-en[Ht]-Dn.rects.popper[Nt],Be=en[Ht]-Dn.rects.reference[Ht],At=U(Ot),Rt=At?"y"===Ht?At.clientHeight||0:At.clientWidth||0:0,Nn=Rt/2-$e[Nt]/2+(Ge/2-Be/2),Ae=Xi(an[Je],Nn,Rt-$e[Nt]-an[Ve]);Dn.modifiersData[kn]=((Vn={})[Ht]=Ae,Vn.centerOffset=Ae-Nn,Vn)}},effect:function oo(Sn){var Vn=Sn.state,kn=Sn.options.element,ui=void 0===kn?"[data-popper-arrow]":kn;null!=ui&&("string"==typeof ui&&!(ui=Vn.elements.popper.querySelector(ui))||Ne(Vn.elements.popper,ui)&&(Vn.elements.arrow=ui))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function or(Sn){var Vn=Sn.state,Dn=Sn.name,kn=Vn.rects.reference,ui=Vn.rects.popper,Ot=Vn.modifiersData.preventOverflow,en=_i(Vn,{elementContext:"reference"}),cn=_i(Vn,{altBoundary:!0}),Ht=Xo(en,kn),ft=Xo(cn,ui,Ot),Nt=Lo(Ht),an=Lo(ft);Vn.modifiersData[Dn]={referenceClippingOffsets:Ht,popperEscapeOffsets:ft,isReferenceHidden:Nt,hasPopperEscaped:an},Vn.attributes.popper=Object.assign({},Vn.attributes.popper,{"data-popper-reference-hidden":Nt,"data-popper-escaped":an})}}]}),ji='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',rt="tippy-content",ai="tippy-backdrop",Gn="tippy-arrow",Io="tippy-svg-arrow",wr={passive:!0,capture:!0},bs=function(){return document.body};function ms(Sn,Vn,Dn){return Array.isArray(Sn)?Sn[Vn]??(Array.isArray(Dn)?Dn[Vn]:Dn):Sn}function Oa(Sn,Vn){var Dn={}.toString.call(Sn);return 0===Dn.indexOf("[object")&&Dn.indexOf(Vn+"]")>-1}function Ea(Sn,Vn){return"function"==typeof Sn?Sn.apply(void 0,Vn):Sn}function Sa(Sn,Vn){return 0===Vn?Sn:function(kn){clearTimeout(Dn),Dn=setTimeout(function(){Sn(kn)},Vn)};var Dn}function tr(Sn,Vn){var Dn=Object.assign({},Sn);return Vn.forEach(function(kn){delete Dn[kn]}),Dn}function Li(Sn){return[].concat(Sn)}function Ao(Sn,Vn){-1===Sn.indexOf(Vn)&&Sn.push(Vn)}function Go(Sn){return Sn.split("-")[0]}function pr(Sn){return[].slice.call(Sn)}function Rr(Sn){return Object.keys(Sn).reduce(function(Vn,Dn){return void 0!==Sn[Dn]&&(Vn[Dn]=Sn[Dn]),Vn},{})}function br(){return document.createElement("div")}function Ti(Sn){return["Element","Fragment"].some(function(Vn){return Oa(Sn,Vn)})}function ri(Sn){return Oa(Sn,"MouseEvent")}function mo(Sn){return!(!Sn||!Sn._tippy||Sn._tippy.reference!==Sn)}function yo(Sn,Vn){Sn.forEach(function(Dn){Dn&&(Dn.style.transitionDuration=Vn+"ms")})}function lr(Sn,Vn){Sn.forEach(function(Dn){Dn&&Dn.setAttribute("data-state",Vn)})}function Yr(Sn){var Vn,kn=Li(Sn)[0];return null!=kn&&null!=(Vn=kn.ownerDocument)&&Vn.body?kn.ownerDocument:document}function fi(Sn,Vn,Dn){var kn=Vn+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(ui){Sn[kn](ui,Dn)})}function Ho(Sn,Vn){for(var Dn=Vn;Dn;){var kn;if(Sn.contains(Dn))return!0;Dn=null==Dn.getRootNode||null==(kn=Dn.getRootNode())?void 0:kn.host}return!1}var _t={isTouch:!1},Zn=0;function qo(){_t.isTouch||(_t.isTouch=!0,window.performance&&document.addEventListener("mousemove",Cr))}function Cr(){var Sn=performance.now();Sn-Zn<20&&(_t.isTouch=!1,document.removeEventListener("mousemove",Cr)),Zn=Sn}function kr(){var Sn=document.activeElement;mo(Sn)&&Sn.blur&&!Sn._tippy.state.isVisible&&Sn.blur()}var Ts=!!(typeof window<"u"&&typeof document<"u")&&!!window.msCrypto,Js=Object.assign({appendTo:bs,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Wa=Object.keys(Js);function Za(Sn){var Dn=(Sn.plugins||[]).reduce(function(kn,ui){var cn,Ot=ui.name;return Ot&&(kn[Ot]=void 0!==Sn[Ot]?Sn[Ot]:null!=(cn=Js[Ot])?cn:ui.defaultValue),kn},{});return Object.assign({},Sn,Dn)}function Jt(Sn,Vn){var Dn=Object.assign({},Vn,{content:Ea(Vn.content,[Sn])},Vn.ignoreAttributes?{}:function sl(Sn,Vn){return(Vn?Object.keys(Za(Object.assign({},Js,{plugins:Vn}))):Wa).reduce(function(ui,Ot){var en=(Sn.getAttribute("data-tippy-"+Ot)||"").trim();if(!en)return ui;if("content"===Ot)ui[Ot]=en;else try{ui[Ot]=JSON.parse(en)}catch{ui[Ot]=en}return ui},{})}(Sn,Vn.plugins));return Dn.aria=Object.assign({},Js.aria,Dn.aria),Dn.aria={expanded:"auto"===Dn.aria.expanded?Vn.interactive:Dn.aria.expanded,content:"auto"===Dn.aria.content?Vn.interactive?null:"describedby":Dn.aria.content},Dn}var ht=function(){return"innerHTML"};function yn(Sn,Vn){Sn[ht()]=Vn}function vi(Sn){var Vn=br();return!0===Sn?Vn.className=Gn:(Vn.className=Io,Ti(Sn)?Vn.appendChild(Sn):yn(Vn,Sn)),Vn}function Yi(Sn,Vn){Ti(Vn.content)?(yn(Sn,""),Sn.appendChild(Vn.content)):"function"!=typeof Vn.content&&(Vn.allowHTML?yn(Sn,Vn.content):Sn.textContent=Vn.content)}function co(Sn){var Vn=Sn.firstElementChild,Dn=pr(Vn.children);return{box:Vn,content:Dn.find(function(kn){return kn.classList.contains(rt)}),arrow:Dn.find(function(kn){return kn.classList.contains(Gn)||kn.classList.contains(Io)}),backdrop:Dn.find(function(kn){return kn.classList.contains(ai)})}}function sr(Sn){var Vn=br(),Dn=br();Dn.className="tippy-box",Dn.setAttribute("data-state","hidden"),Dn.setAttribute("tabindex","-1");var kn=br();function ui(Ot,en){var cn=co(Vn),Ht=cn.box,ft=cn.content,Nt=cn.arrow;en.theme?Ht.setAttribute("data-theme",en.theme):Ht.removeAttribute("data-theme"),"string"==typeof en.animation?Ht.setAttribute("data-animation",en.animation):Ht.removeAttribute("data-animation"),en.inertia?Ht.setAttribute("data-inertia",""):Ht.removeAttribute("data-inertia"),Ht.style.maxWidth="number"==typeof en.maxWidth?en.maxWidth+"px":en.maxWidth,en.role?Ht.setAttribute("role",en.role):Ht.removeAttribute("role"),(Ot.content!==en.content||Ot.allowHTML!==en.allowHTML)&&Yi(ft,Sn.props),en.arrow?Nt?Ot.arrow!==en.arrow&&(Ht.removeChild(Nt),Ht.appendChild(vi(en.arrow))):Ht.appendChild(vi(en.arrow)):Nt&&Ht.removeChild(Nt)}return kn.className=rt,kn.setAttribute("data-state","hidden"),Yi(kn,Sn.props),Vn.appendChild(Dn),Dn.appendChild(kn),ui(Sn.props,Sn.props),{popper:Vn,onUpdate:ui}}sr.$$tippy=!0;var yr=1,Ur=[],ss=[];function Pr(Sn,Vn){void 0===Vn&&(Vn={});var Dn=Js.plugins.concat(Vn.plugins||[]);!function xs(){document.addEventListener("touchstart",qo,wr),window.addEventListener("blur",kr)}();var kn=Object.assign({},Vn,{plugins:Dn}),cn=function Ii(Sn){return Ti(Sn)?[Sn]:function mr(Sn){return Oa(Sn,"NodeList")}(Sn)?pr(Sn):Array.isArray(Sn)?Sn:pr(document.querySelectorAll(Sn))}(Sn).reduce(function(Ht,ft){var Nt=ft&&function gs(Sn,Vn){var kn,ui,Ot,Nt,an,$e,Ge,Dn=Jt(Sn,Object.assign({},Js,Za(Rr(Vn)))),en=!1,cn=!1,Ht=!1,ft=!1,Je=[],Ve=Sa(lt,Dn.interactiveDebounce),Be=yr++,Rt=function ao(Sn){return Sn.filter(function(Vn,Dn){return Sn.indexOf(Vn)===Dn})}(Dn.plugins),$t={id:Be,reference:Sn,popper:br(),popperInstance:null,props:Dn,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:Rt,clearDelayTimeouts:function fo(){clearTimeout(kn),clearTimeout(ui),cancelAnimationFrame(Ot)},setProps:function cr(ts){if(!$t.state.isDestroyed){ii("onBeforeUpdate",[$t,ts]),Me();var na=$t.props,Xs=Jt(Sn,Object.assign({},na,Rr(ts),{ignoreAttributes:!0}));$t.props=Xs,Ye(),na.interactiveDebounce!==Xs.interactiveDebounce&&(zt(),Ve=Sa(lt,Xs.interactiveDebounce)),na.triggerTarget&&!Xs.triggerTarget?Li(na.triggerTarget).forEach(function(_a){_a.removeAttribute("aria-expanded")}):Xs.triggerTarget&&Sn.removeAttribute("aria-expanded"),Jn(),bn(),Ae&&Ae(na,Xs),$t.popperInstance&&(Kn(),$i().forEach(function(_a){requestAnimationFrame(_a._tippy.popperInstance.forceUpdate)})),ii("onAfterUpdate",[$t,ts])}},setContent:function Fr(ts){$t.setProps({content:ts})},show:function jr(){var ts=$t.state.isVisible,na=$t.state.isDestroyed,Xs=!$t.state.isEnabled,_a=_t.isTouch&&!$t.props.touch,Ws=ms($t.props.duration,0,Js.duration);if(!(ts||na||Xs||_a||xi().hasAttribute("disabled")||(ii("onShow",[$t],!1),!1===$t.props.onShow($t)))){if($t.state.isVisible=!0,Ci()&&(Nn.style.visibility="visible"),bn(),Oi(),$t.state.isMounted||(Nn.style.transition="none"),Ci()){var cs=Vt();yo([cs.box,cs.content],0)}$e=function(){var pi;if($t.state.isVisible&&!ft){if(ft=!0,Nn.style.transition=$t.props.moveTransition,Ci()&&$t.props.animation){var to=Vt(),Ro=to.box,Sr=to.content;yo([Ro,Sr],Ws),lr([Ro,Sr],"visible")}Vi(),Jn(),Ao(ss,$t),null==(pi=$t.popperInstance)||pi.forceUpdate(),ii("onMount",[$t]),$t.props.animation&&Ci()&&function qn(ts,na){Ni(ts,na)}(Ws,function(){$t.state.isShown=!0,ii("onShown",[$t])})}},function po(){var na,ts=$t.props.appendTo,Xs=xi();(na=$t.props.interactive&&ts===bs||"parent"===ts?Xs.parentNode:Ea(ts,[Xs])).contains(Nn)||na.appendChild(Nn),$t.state.isMounted=!0,Kn()}()}},hide:function fs(){var ts=!$t.state.isVisible,na=$t.state.isDestroyed,Xs=!$t.state.isEnabled,_a=ms($t.props.duration,1,Js.duration);if(!(ts||na||Xs)&&(ii("onHide",[$t],!1),!1!==$t.props.onHide($t))){if($t.state.isVisible=!1,$t.state.isShown=!1,ft=!1,en=!1,Ci()&&(Nn.style.visibility="hidden"),zt(),Ai(),bn(!0),Ci()){var Ws=Vt(),cs=Ws.box,Ps=Ws.content;$t.props.animation&&(yo([cs,Ps],_a),lr([cs,Ps],"hidden"))}Vi(),Jn(),$t.props.animation?Ci()&&function Pn(ts,na){Ni(ts,function(){!$t.state.isVisible&&Nn.parentNode&&Nn.parentNode.contains(Nn)&&na()})}(_a,$t.unmount):$t.unmount()}},hideWithInteractivity:function Ms(ts){Wn().addEventListener("mousemove",Ve),Ao(Ur,Ve),Ve(ts)},enable:function io(){$t.state.isEnabled=!0},disable:function Wi(){$t.hide(),$t.state.isEnabled=!1},unmount:function Ca(){$t.state.isVisible&&$t.hide(),$t.state.isMounted&&(ho(),$i().forEach(function(ts){ts._tippy.unmount()}),Nn.parentNode&&Nn.parentNode.removeChild(Nn),ss=ss.filter(function(ts){return ts!==$t}),$t.state.isMounted=!1,ii("onHidden",[$t]))},destroy:function ks(){$t.state.isDestroyed||($t.clearDelayTimeouts(),$t.unmount(),Me(),delete Sn._tippy,$t.state.isDestroyed=!0,ii("onDestroy",[$t]))}};if(!Dn.render)return $t;var Xn=Dn.render($t),Nn=Xn.popper,Ae=Xn.onUpdate;Nn.setAttribute("data-tippy-root",""),Nn.id="tippy-"+$t.id,$t.popper=Nn,Sn._tippy=$t,Nn._tippy=$t;var He=Rt.map(function(ts){return ts.fn($t)}),Kt=Sn.hasAttribute("aria-expanded");return Ye(),Jn(),bn(),ii("onCreate",[$t]),Dn.showOnCreate&&ro(),Nn.addEventListener("mouseenter",function(){$t.props.interactive&&$t.state.isVisible&&$t.clearDelayTimeouts()}),Nn.addEventListener("mouseleave",function(){$t.props.interactive&&$t.props.trigger.indexOf("mouseenter")>=0&&Wn().addEventListener("mousemove",Ve)}),$t;function On(){var ts=$t.props.touch;return Array.isArray(ts)?ts:[ts,0]}function Fi(){return"hold"===On()[0]}function Ci(){var ts;return!(null==(ts=$t.props.render)||!ts.$$tippy)}function xi(){return Ge||Sn}function Wn(){var ts=xi().parentNode;return ts?Yr(ts):document}function Vt(){return co(Nn)}function qt(ts){return $t.state.isMounted&&!$t.state.isVisible||_t.isTouch||Nt&&"focus"===Nt.type?0:ms($t.props.delay,ts?0:1,Js.delay)}function bn(ts){void 0===ts&&(ts=!1),Nn.style.pointerEvents=$t.props.interactive&&!ts?"":"none",Nn.style.zIndex=""+$t.props.zIndex}function ii(ts,na,Xs){var _a;void 0===Xs&&(Xs=!0),He.forEach(function(Ws){Ws[ts]&&Ws[ts].apply(Ws,na)}),Xs&&(_a=$t.props)[ts].apply(_a,na)}function Vi(){var ts=$t.props.aria;if(ts.content){var na="aria-"+ts.content,Xs=Nn.id;Li($t.props.triggerTarget||Sn).forEach(function(Ws){var cs=Ws.getAttribute(na);if($t.state.isVisible)Ws.setAttribute(na,cs?cs+" "+Xs:Xs);else{var Ps=cs&&cs.replace(Xs,"").trim();Ps?Ws.setAttribute(na,Ps):Ws.removeAttribute(na)}})}}function Jn(){!Kt&&$t.props.aria.expanded&&Li($t.props.triggerTarget||Sn).forEach(function(na){$t.props.interactive?na.setAttribute("aria-expanded",$t.state.isVisible&&na===xi()?"true":"false"):na.removeAttribute("aria-expanded")})}function zt(){Wn().removeEventListener("mousemove",Ve),Ur=Ur.filter(function(ts){return ts!==Ve})}function mn(ts){if(!_t.isTouch||!Ht&&"mousedown"!==ts.type){var na=ts.composedPath&&ts.composedPath()[0]||ts.target;if(!$t.props.interactive||!Ho(Nn,na)){if(Li($t.props.triggerTarget||Sn).some(function(Xs){return Ho(Xs,na)})){if(_t.isTouch||$t.state.isVisible&&$t.props.trigger.indexOf("click")>=0)return}else ii("onClickOutside",[$t,ts]);!0===$t.props.hideOnClick&&($t.clearDelayTimeouts(),$t.hide(),cn=!0,setTimeout(function(){cn=!1}),$t.state.isMounted||Ai())}}}function Qn(){Ht=!0}function ci(){Ht=!1}function Oi(){var ts=Wn();ts.addEventListener("mousedown",mn,!0),ts.addEventListener("touchend",mn,wr),ts.addEventListener("touchstart",ci,wr),ts.addEventListener("touchmove",Qn,wr)}function Ai(){var ts=Wn();ts.removeEventListener("mousedown",mn,!0),ts.removeEventListener("touchend",mn,wr),ts.removeEventListener("touchstart",ci,wr),ts.removeEventListener("touchmove",Qn,wr)}function Ni(ts,na){var Xs=Vt().box;function _a(Ws){Ws.target===Xs&&(fi(Xs,"remove",_a),na())}if(0===ts)return na();fi(Xs,"remove",an),fi(Xs,"add",_a),an=_a}function Ue(ts,na,Xs){void 0===Xs&&(Xs=!1),Li($t.props.triggerTarget||Sn).forEach(function(Ws){Ws.addEventListener(ts,na,Xs),Je.push({node:Ws,eventType:ts,handler:na,options:Xs})})}function Ye(){Fi()&&(Ue("touchstart",pe,{passive:!0}),Ue("touchend",yt,{passive:!0})),function Mr(Sn){return Sn.split(/\s+/).filter(Boolean)}($t.props.trigger).forEach(function(ts){if("manual"!==ts)switch(Ue(ts,pe),ts){case"mouseenter":Ue("mouseleave",yt);break;case"focus":Ue(Ts?"focusout":"blur",on);break;case"focusin":Ue("focusout",on)}})}function Me(){Je.forEach(function(ts){ts.node.removeEventListener(ts.eventType,ts.handler,ts.options)}),Je=[]}function pe(ts){var na,Xs=!1;if($t.state.isEnabled&&!zi(ts)&&!cn){var _a="focus"===(null==(na=Nt)?void 0:na.type);Nt=ts,Ge=ts.currentTarget,Jn(),!$t.state.isVisible&&ri(ts)&&Ur.forEach(function(Ws){return Ws(ts)}),"click"===ts.type&&($t.props.trigger.indexOf("mouseenter")<0||en)&&!1!==$t.props.hideOnClick&&$t.state.isVisible?Xs=!0:ro(ts),"click"===ts.type&&(en=!Xs),Xs&&!_a&&wo(ts)}}function lt(ts){var na=ts.target,Xs=xi().contains(na)||Nn.contains(na);"mousemove"===ts.type&&Xs||function Gs(Sn,Vn){var Dn=Vn.clientX,kn=Vn.clientY;return Sn.every(function(ui){var Ot=ui.popperRect,en=ui.popperState,Ht=ui.props.interactiveBorder,ft=Go(en.placement),Nt=en.modifiersData.offset;return!Nt||Ot.top-kn+("bottom"===ft?Nt.top.y:0)>Ht||kn-Ot.bottom-("top"===ft?Nt.bottom.y:0)>Ht||Ot.left-Dn+("right"===ft?Nt.left.x:0)>Ht||Dn-Ot.right-("left"===ft?Nt.right.x:0)>Ht})}($i().concat(Nn).map(function(Ws){var cs,Qi=null==(cs=Ws._tippy.popperInstance)?void 0:cs.state;return Qi?{popperRect:Ws.getBoundingClientRect(),popperState:Qi,props:Dn}:null}).filter(Boolean),ts)&&(zt(),wo(ts))}function yt(ts){if(!(zi(ts)||$t.props.trigger.indexOf("click")>=0&&en)){if($t.props.interactive)return void $t.hideWithInteractivity(ts);wo(ts)}}function on(ts){$t.props.trigger.indexOf("focusin")<0&&ts.target!==xi()||$t.props.interactive&&ts.relatedTarget&&Nn.contains(ts.relatedTarget)||wo(ts)}function zi(ts){return!!_t.isTouch&&Fi()!==ts.type.indexOf("touch")>=0}function Kn(){ho();var ts=$t.props,na=ts.popperOptions,Xs=ts.placement,_a=ts.offset,Ws=ts.getReferenceClientRect,cs=ts.moveTransition,Ps=Ci()?co(Nn).arrow:null,Qi=Ws?{getBoundingClientRect:Ws,contextElement:Ws.contextElement||xi()}:Sn,pi=[{name:"offset",options:{offset:_a}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!cs}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ro){var Sr=Ro.state;if(Ci()){var Os=Vt().box;["placement","reference-hidden","escaped"].forEach(function(Ys){"placement"===Ys?Os.setAttribute("data-placement",Sr.placement):Sr.attributes.popper["data-popper-"+Ys]?Os.setAttribute("data-"+Ys,""):Os.removeAttribute("data-"+Ys)}),Sr.attributes.popper={}}}}];Ci()&&Ps&&pi.push({name:"arrow",options:{element:Ps,padding:3}}),pi.push.apply(pi,na?.modifiers||[]),$t.popperInstance=as(Qi,Nn,Object.assign({},na,{placement:Xs,onFirstUpdate:$e,modifiers:pi}))}function ho(){$t.popperInstance&&($t.popperInstance.destroy(),$t.popperInstance=null)}function $i(){return pr(Nn.querySelectorAll("[data-tippy-root]"))}function ro(ts){$t.clearDelayTimeouts(),ts&&ii("onTrigger",[$t,ts]),Oi();var na=qt(!0),Xs=On(),Ws=Xs[1];_t.isTouch&&"hold"===Xs[0]&&Ws&&(na=Ws),na?kn=setTimeout(function(){$t.show()},na):$t.show()}function wo(ts){if($t.clearDelayTimeouts(),ii("onUntrigger",[$t,ts]),$t.state.isVisible){if(!($t.props.trigger.indexOf("mouseenter")>=0&&$t.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ts.type)>=0&&en)){var na=qt(!1);na?ui=setTimeout(function(){$t.state.isVisible&&$t.hide()},na):Ot=requestAnimationFrame(function(){$t.hide()})}}else Ai()}}(ft,kn);return Nt&&Ht.push(Nt),Ht},[]);return Ti(Sn)?cn[0]:cn}Pr.defaultProps=Js,Pr.setDefaultProps=function(Vn){Object.keys(Vn).forEach(function(kn){Js[kn]=Vn[kn]})},Pr.currentInput=_t;var ys=function(Vn){var Dn=void 0===Vn?{}:Vn,kn=Dn.exclude,ui=Dn.duration;ss.forEach(function(Ot){var en=!1;if(kn&&(en=mo(kn)?Ot.reference===kn:Ot.popper===kn.popper),!en){var cn=Ot.props.duration;Ot.setProps({duration:ui}),Ot.hide(),Ot.state.isDestroyed||Ot.setProps({duration:cn})}})},da=Object.assign({},Fn,{effect:function(Vn){var Dn=Vn.state,kn={popper:{position:Dn.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(Dn.elements.popper.style,kn.popper),Dn.styles=kn,Dn.elements.arrow&&Object.assign(Dn.elements.arrow.style,kn.arrow)}}),Va=function(Vn,Dn){var kn;void 0===Dn&&(Dn={});var cn,ui=Vn,Ot=[],en=[],Ht=Dn.overrides,ft=[],Nt=!1;function an(){en=ui.map(function($t){return Li($t.props.triggerTarget||$t.reference)}).reduce(function($t,Xn){return $t.concat(Xn)},[])}function $e(){Ot=ui.map(function($t){return $t.reference})}function Je($t){ui.forEach(function(Xn){$t?Xn.enable():Xn.disable()})}function Ve($t){return ui.map(function(Xn){var Nn=Xn.setProps;return Xn.setProps=function(Ae){Nn(Ae),Xn.reference===cn&&$t.setProps(Ae)},function(){Xn.setProps=Nn}})}function Ge($t,Xn){var Nn=en.indexOf(Xn);if(Xn!==cn){cn=Xn;var Ae=(Ht||[]).concat("content").reduce(function(He,Kt){return He[Kt]=ui[Nn].props[Kt],He},{});$t.setProps(Object.assign({},Ae,{getReferenceClientRect:"function"==typeof Ae.getReferenceClientRect?Ae.getReferenceClientRect:function(){var He;return null==(He=Ot[Nn])?void 0:He.getBoundingClientRect()}}))}}Je(!1),$e(),an();var Be={fn:function(){return{onDestroy:function(){Je(!0)},onHidden:function(){cn=null},onClickOutside:function(Nn){Nn.props.showOnCreate&&!Nt&&(Nt=!0,cn=null)},onShow:function(Nn){Nn.props.showOnCreate&&!Nt&&(Nt=!0,Ge(Nn,Ot[0]))},onTrigger:function(Nn,Ae){Ge(Nn,Ae.currentTarget)}}}},At=Pr(br(),Object.assign({},tr(Dn,["overrides"]),{plugins:[Be].concat(Dn.plugins||[]),triggerTarget:en,popperOptions:Object.assign({},Dn.popperOptions,{modifiers:[].concat((null==(kn=Dn.popperOptions)?void 0:kn.modifiers)||[],[da])})})),Rt=At.show;At.show=function($t){if(Rt(),!cn&&null==$t)return Ge(At,Ot[0]);if(!cn||null!=$t){if("number"==typeof $t)return Ot[$t]&&Ge(At,Ot[$t]);if(ui.indexOf($t)>=0)return Ge(At,$t.reference);if(Ot.indexOf($t)>=0)return Ge(At,$t)}},At.showNext=function(){var $t=Ot[0];if(!cn)return At.show(0);var Xn=Ot.indexOf(cn);At.show(Ot[Xn+1]||$t)},At.showPrevious=function(){var $t=Ot[Ot.length-1];if(!cn)return At.show($t);var Xn=Ot.indexOf(cn);At.show(Ot[Xn-1]||$t)};var Pt=At.setProps;return At.setProps=function($t){Ht=$t.overrides||Ht,Pt($t)},At.setInstances=function($t){Je(!0),ft.forEach(function(Xn){return Xn()}),ui=$t,Je(!1),$e(),an(),ft=Ve(At),At.setProps({triggerTarget:en})},ft=Ve(At),At},ga={mouseover:"mouseenter",focusin:"focus",click:"click"};function al(Sn,Vn){var Dn=[],kn=[],ui=!1,Ot=Vn.target,en=tr(Vn,["target"]),cn=Object.assign({},en,{trigger:"manual",touch:!1}),Ht=Object.assign({touch:Js.touch},en,{showOnCreate:!0}),ft=Pr(Sn,cn);function an(Be){if(Be.target&&!ui){var At=Be.target.closest(Ot);if(At){var Rt=At.getAttribute("data-tippy-trigger")||Vn.trigger||Js.trigger;if(!(At._tippy||"touchstart"===Be.type&&"boolean"==typeof Ht.touch||"touchstart"!==Be.type&&Rt.indexOf(ga[Be.type])<0)){var Pt=Pr(At,Ht);Pt&&(kn=kn.concat(Pt))}}}}function $e(Be,At,Rt,Pt){void 0===Pt&&(Pt=!1),Be.addEventListener(At,Rt,Pt),Dn.push({node:Be,eventType:At,handler:Rt,options:Pt})}return Li(ft).forEach(function Ge(Be){var At=Be.destroy,Rt=Be.enable,Pt=Be.disable;Be.destroy=function($t){void 0===$t&&($t=!0),$t&&kn.forEach(function(Xn){Xn.destroy()}),kn=[],function Ve(){Dn.forEach(function(Be){Be.node.removeEventListener(Be.eventType,Be.handler,Be.options)}),Dn=[]}(),At()},Be.enable=function(){Rt(),kn.forEach(function($t){return $t.enable()}),ui=!1},Be.disable=function(){Pt(),kn.forEach(function($t){return $t.disable()}),ui=!0},function Je(Be){var At=Be.reference;$e(At,"touchstart",an,wr),$e(At,"mouseover",an),$e(At,"focusin",an),$e(At,"click",an)}(Be)}),ft}var ur={name:"animateFill",defaultValue:!1,fn:function(Vn){var Dn;if(null==(Dn=Vn.props.render)||!Dn.$$tippy)return{};var kn=co(Vn.popper),ui=kn.box,Ot=kn.content,en=Vn.props.animateFill?function La(){var Sn=br();return Sn.className=ai,lr([Sn],"hidden"),Sn}():null;return{onCreate:function(){en&&(ui.insertBefore(en,ui.firstElementChild),ui.setAttribute("data-animatefill",""),ui.style.overflow="hidden",Vn.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(en){var Ht=ui.style.transitionDuration,ft=Number(Ht.replace("ms",""));Ot.style.transitionDelay=Math.round(ft/10)+"ms",en.style.transitionDuration=Ht,lr([en],"visible")}},onShow:function(){en&&(en.style.transitionDuration="0ms")},onHide:function(){en&&lr([en],"hidden")}}}},ra={clientX:0,clientY:0},Ls=[];function vn(Sn){ra={clientX:Sn.clientX,clientY:Sn.clientY}}var ze={name:"followCursor",defaultValue:!1,fn:function(Vn){var Dn=Vn.reference,kn=Yr(Vn.props.triggerTarget||Dn),ui=!1,Ot=!1,en=!0,cn=Vn.props;function Ht(){return"initial"===Vn.props.followCursor&&Vn.state.isVisible}function ft(){kn.addEventListener("mousemove",$e)}function Nt(){kn.removeEventListener("mousemove",$e)}function an(){ui=!0,Vn.setProps({getReferenceClientRect:null}),ui=!1}function $e(Ge){var Be=!Ge.target||Dn.contains(Ge.target),At=Vn.props.followCursor,Rt=Ge.clientX,Pt=Ge.clientY,$t=Dn.getBoundingClientRect(),Xn=Rt-$t.left,Nn=Pt-$t.top;(Be||!Vn.props.interactive)&&Vn.setProps({getReferenceClientRect:function(){var He=Dn.getBoundingClientRect(),Kt=Rt,On=Pt;"initial"===At&&(Kt=He.left+Xn,On=He.top+Nn);var Fi="horizontal"===At?He.top:On,Ci="vertical"===At?He.right:Kt,xi="horizontal"===At?He.bottom:On,Wn="vertical"===At?He.left:Kt;return{width:Ci-Wn,height:xi-Fi,top:Fi,right:Ci,bottom:xi,left:Wn}}})}function Je(){Vn.props.followCursor&&(Ls.push({instance:Vn,doc:kn}),function Xe(Sn){Sn.addEventListener("mousemove",vn)}(kn))}function Ve(){0===(Ls=Ls.filter(function(Ge){return Ge.instance!==Vn})).filter(function(Ge){return Ge.doc===kn}).length&&function Ke(Sn){Sn.removeEventListener("mousemove",vn)}(kn)}return{onCreate:Je,onDestroy:Ve,onBeforeUpdate:function(){cn=Vn.props},onAfterUpdate:function(Be,At){var Rt=At.followCursor;ui||void 0!==Rt&&cn.followCursor!==Rt&&(Ve(),Rt?(Je(),Vn.state.isMounted&&!Ot&&!Ht()&&ft()):(Nt(),an()))},onMount:function(){Vn.props.followCursor&&!Ot&&(en&&($e(ra),en=!1),Ht()||ft())},onTrigger:function(Be,At){ri(At)&&(ra={clientX:At.clientX,clientY:At.clientY}),Ot="focus"===At.type},onHidden:function(){Vn.props.followCursor&&(an(),Nt(),en=!0)}}}},it={name:"inlinePositioning",defaultValue:!1,fn:function(Vn){var ui,Dn=Vn.reference,Ot=-1,en=!1,cn=[],Ht={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(Je){var Ve=Je.state;(function kn(){return!!Vn.props.inlinePositioning})()&&(-1!==cn.indexOf(Ve.placement)&&(cn=[]),ui!==Ve.placement&&-1===cn.indexOf(Ve.placement)&&(cn.push(Ve.placement),Vn.setProps({getReferenceClientRect:function(){return function ft($e){return function Dt(Sn,Vn,Dn,kn){if(Dn.length<2||null===Sn)return Vn;if(2===Dn.length&&kn>=0&&Dn[0].left>Dn[1].right)return Dn[kn]||Vn;switch(Sn){case"top":case"bottom":var ui=Dn[0],Ot=Dn[Dn.length-1],en="top"===Sn,cn=ui.top,Ht=Ot.bottom,ft=en?ui.left:Ot.left,Nt=en?ui.right:Ot.right;return{top:cn,bottom:Ht,left:ft,right:Nt,width:Nt-ft,height:Ht-cn};case"left":case"right":var Je=Math.min.apply(Math,Dn.map(function(Nn){return Nn.left})),Ve=Math.max.apply(Math,Dn.map(function(Nn){return Nn.right})),Ge=Dn.filter(function(Nn){return"left"===Sn?Nn.left===Je:Nn.right===Ve}),Be=Ge[0].top,At=Ge[Ge.length-1].bottom;return{top:Be,bottom:At,left:Je,right:Ve,width:Ve-Je,height:At-Be};default:return Vn}}(Go($e),Dn.getBoundingClientRect(),pr(Dn.getClientRects()),Ot)}(Ve.placement)}})),ui=Ve.placement)}};function an(){en||function Nt($e){en=!0,Vn.setProps($e),en=!1}(function St(Sn,Vn){var Dn;return{popperOptions:Object.assign({},Sn.popperOptions,{modifiers:[].concat(((null==(Dn=Sn.popperOptions)?void 0:Dn.modifiers)||[]).filter(function(kn){return kn.name!==Vn.name}),[Vn])})}}(Vn.props,Ht))}return{onCreate:an,onAfterUpdate:an,onTrigger:function(Je,Ve){if(ri(Ve)){var Ge=pr(Vn.reference.getClientRects()),Be=Ge.find(function(Rt){return Rt.left-2<=Ve.clientX&&Rt.right+2>=Ve.clientX&&Rt.top-2<=Ve.clientY&&Rt.bottom+2>=Ve.clientY}),At=Ge.indexOf(Be);Ot=At>-1?At:Ot}},onHidden:function(){Ot=-1}}}},Hn={name:"sticky",defaultValue:!1,fn:function(Vn){var Dn=Vn.reference,kn=Vn.popper;function Ot(ft){return!0===Vn.props.sticky||Vn.props.sticky===ft}var en=null,cn=null;function Ht(){var ft=Ot("reference")?function ui(){return Vn.popperInstance?Vn.popperInstance.state.elements.reference:Dn}().getBoundingClientRect():null,Nt=Ot("popper")?kn.getBoundingClientRect():null;(ft&&Ui(en,ft)||Nt&&Ui(cn,Nt))&&Vn.popperInstance&&Vn.popperInstance.update(),en=ft,cn=Nt,Vn.state.isMounted&&requestAnimationFrame(Ht)}return{onMount:function(){Vn.props.sticky&&Ht()}}}};function Ui(Sn,Vn){return!Sn||!Vn||Sn.top!==Vn.top||Sn.right!==Vn.right||Sn.bottom!==Vn.bottom||Sn.left!==Vn.left}Pr.setDefaultProps({render:sr});const Co=Pr},31443:(he,y)=>{"use strict";function i(a,l){return typeof a>"u"?typeof l>"u"?a:l:a}Object.defineProperty(y,"__esModule",{value:!0}),y.boolean=function e(a,l){return"function"==typeof(a=i(a,l))?function(){for(var d=arguments.length,s=Array(d),A=0;A<d;A++)s[A]=arguments[A];return!!a.apply(this,s)}:a?function(){return!0}:function(){return!1}},y.integer=function n(a,l){return"function"==typeof(a=i(a,l))?function(){for(var d=arguments.length,s=Array(d),A=0;A<d;A++)s[A]=arguments[A];var _=parseInt(a.apply(this,s),10);return _!=_?0:_}:(a=parseInt(a,10))!=a?function(){return 0}:function(){return a}},y.string=function o(a,l){return"function"==typeof(a=i(a,l))?function(){for(var d=arguments.length,s=Array(d),A=0;A<d;A++)s[A]=arguments[A];return""+a.apply(this,s)}:(a=""+a,function(){return a})}},20093:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),Object.defineProperty(y,"NIL",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(y,"parse",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(y,"stringify",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(y,"v1",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(y,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(y,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(y,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(y,"validate",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(y,"version",{enumerable:!0,get:function(){return u.default}});var e=_(i(44419)),n=_(i(62314)),o=_(i(25817)),a=_(i(36597)),l=_(i(17495)),u=_(i(86310)),d=_(i(37552)),s=_(i(4734)),A=_(i(74188));function _(C){return C&&C.__esModule?C:{default:C}}},10592:(he,y)=>{"use strict";function n(x){return 14+(x+64>>>9<<4)+1}function l(x,f){const k=(65535&x)+(65535&f);return(x>>16)+(f>>16)+(k>>16)<<16|65535&k}function d(x,f,k,w,g,M){return l(function u(x,f){return x<<f|x>>>32-f}(l(l(f,x),l(w,M)),g),k)}function s(x,f,k,w,g,M,p){return d(f&k|~f&w,x,f,g,M,p)}function A(x,f,k,w,g,M,p){return d(f&w|k&~w,x,f,g,M,p)}function _(x,f,k,w,g,M,p){return d(f^k^w,x,f,g,M,p)}function C(x,f,k,w,g,M,p){return d(k^(f|~w),x,f,g,M,p)}Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=function i(x){if("string"==typeof x){const f=unescape(encodeURIComponent(x));x=new Uint8Array(f.length);for(let k=0;k<f.length;++k)x[k]=f.charCodeAt(k)}return function e(x){const f=[],k=32*x.length,w="0123456789abcdef";for(let g=0;g<k;g+=8){const M=x[g>>5]>>>g%32&255,p=parseInt(w.charAt(M>>>4&15)+w.charAt(15&M),16);f.push(p)}return f}(function o(x,f){x[f>>5]|=128<<f%32,x[n(f)-1]=f;let k=1732584193,w=-271733879,g=-1732584194,M=271733878;for(let p=0;p<x.length;p+=16){const E=k,b=w,I=g,L=M;k=s(k,w,g,M,x[p],7,-680876936),M=s(M,k,w,g,x[p+1],12,-389564586),g=s(g,M,k,w,x[p+2],17,606105819),w=s(w,g,M,k,x[p+3],22,-1044525330),k=s(k,w,g,M,x[p+4],7,-176418897),M=s(M,k,w,g,x[p+5],12,1200080426),g=s(g,M,k,w,x[p+6],17,-1473231341),w=s(w,g,M,k,x[p+7],22,-45705983),k=s(k,w,g,M,x[p+8],7,1770035416),M=s(M,k,w,g,x[p+9],12,-1958414417),g=s(g,M,k,w,x[p+10],17,-42063),w=s(w,g,M,k,x[p+11],22,-1990404162),k=s(k,w,g,M,x[p+12],7,1804603682),M=s(M,k,w,g,x[p+13],12,-40341101),g=s(g,M,k,w,x[p+14],17,-1502002290),w=s(w,g,M,k,x[p+15],22,1236535329),k=A(k,w,g,M,x[p+1],5,-165796510),M=A(M,k,w,g,x[p+6],9,-1069501632),g=A(g,M,k,w,x[p+11],14,643717713),w=A(w,g,M,k,x[p],20,-373897302),k=A(k,w,g,M,x[p+5],5,-701558691),M=A(M,k,w,g,x[p+10],9,38016083),g=A(g,M,k,w,x[p+15],14,-660478335),w=A(w,g,M,k,x[p+4],20,-405537848),k=A(k,w,g,M,x[p+9],5,568446438),M=A(M,k,w,g,x[p+14],9,-1019803690),g=A(g,M,k,w,x[p+3],14,-187363961),w=A(w,g,M,k,x[p+8],20,1163531501),k=A(k,w,g,M,x[p+13],5,-1444681467),M=A(M,k,w,g,x[p+2],9,-51403784),g=A(g,M,k,w,x[p+7],14,1735328473),w=A(w,g,M,k,x[p+12],20,-1926607734),k=_(k,w,g,M,x[p+5],4,-378558),M=_(M,k,w,g,x[p+8],11,-2022574463),g=_(g,M,k,w,x[p+11],16,1839030562),w=_(w,g,M,k,x[p+14],23,-35309556),k=_(k,w,g,M,x[p+1],4,-1530992060),M=_(M,k,w,g,x[p+4],11,1272893353),g=_(g,M,k,w,x[p+7],16,-155497632),w=_(w,g,M,k,x[p+10],23,-1094730640),k=_(k,w,g,M,x[p+13],4,681279174),M=_(M,k,w,g,x[p],11,-358537222),g=_(g,M,k,w,x[p+3],16,-722521979),w=_(w,g,M,k,x[p+6],23,76029189),k=_(k,w,g,M,x[p+9],4,-640364487),M=_(M,k,w,g,x[p+12],11,-421815835),g=_(g,M,k,w,x[p+15],16,530742520),w=_(w,g,M,k,x[p+2],23,-995338651),k=C(k,w,g,M,x[p],6,-198630844),M=C(M,k,w,g,x[p+7],10,1126891415),g=C(g,M,k,w,x[p+14],15,-1416354905),w=C(w,g,M,k,x[p+5],21,-57434055),k=C(k,w,g,M,x[p+12],6,1700485571),M=C(M,k,w,g,x[p+3],10,-1894986606),g=C(g,M,k,w,x[p+10],15,-1051523),w=C(w,g,M,k,x[p+1],21,-2054922799),k=C(k,w,g,M,x[p+8],6,1873313359),M=C(M,k,w,g,x[p+15],10,-30611744),g=C(g,M,k,w,x[p+6],15,-1560198380),w=C(w,g,M,k,x[p+13],21,1309151649),k=C(k,w,g,M,x[p+4],6,-145523070),M=C(M,k,w,g,x[p+11],10,-1120210379),g=C(g,M,k,w,x[p+2],15,718787259),w=C(w,g,M,k,x[p+9],21,-343485551),k=l(k,E),w=l(w,b),g=l(g,I),M=l(M,L)}return[k,w,g,M]}(function a(x){if(0===x.length)return[];const f=8*x.length,k=new Uint32Array(n(f));for(let w=0;w<f;w+=8)k[w>>5]|=(255&x[w/8])<<w%32;return k}(x),8*x.length))}},71325:(he,y)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};y.default=e},17495:(he,y)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default="00000000-0000-0000-0000-000000000000"},74188:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(l){return l&&l.__esModule?l:{default:l}}(i(37552));y.default=function o(l){if(!(0,e.default)(l))throw TypeError("Invalid UUID");let u;const d=new Uint8Array(16);return d[0]=(u=parseInt(l.slice(0,8),16))>>>24,d[1]=u>>>16&255,d[2]=u>>>8&255,d[3]=255&u,d[4]=(u=parseInt(l.slice(9,13),16))>>>8,d[5]=255&u,d[6]=(u=parseInt(l.slice(14,18),16))>>>8,d[7]=255&u,d[8]=(u=parseInt(l.slice(19,23),16))>>>8,d[9]=255&u,d[10]=(u=parseInt(l.slice(24,36),16))/1099511627776&255,d[11]=u/4294967296&255,d[12]=u>>>24&255,d[13]=u>>>16&255,d[14]=u>>>8&255,d[15]=255&u,d}},42019:(he,y)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},69242:(he,y)=>{"use strict";let i;Object.defineProperty(y,"__esModule",{value:!0}),y.default=function n(){if(!i&&(i=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!i))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(e)};const e=new Uint8Array(16)},12293:(he,y)=>{"use strict";function i(a,l,u,d){switch(a){case 0:return l&u^~l&d;case 1:case 3:return l^u^d;case 2:return l&u^l&d^u&d}}function e(a,l){return a<<l|a>>>32-l}Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.default=function n(a){const l=[1518500249,1859775393,2400959708,3395469782],u=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof a){const _=unescape(encodeURIComponent(a));a=[];for(let C=0;C<_.length;++C)a.push(_.charCodeAt(C))}else Array.isArray(a)||(a=Array.prototype.slice.call(a));a.push(128);const s=Math.ceil((a.length/4+2)/16),A=new Array(s);for(let _=0;_<s;++_){const C=new Uint32Array(16);for(let R=0;R<16;++R)C[R]=a[64*_+4*R]<<24|a[64*_+4*R+1]<<16|a[64*_+4*R+2]<<8|a[64*_+4*R+3];A[_]=C}A[s-1][14]=8*(a.length-1)/Math.pow(2,32),A[s-1][14]=Math.floor(A[s-1][14]),A[s-1][15]=8*(a.length-1)&4294967295;for(let _=0;_<s;++_){const C=new Uint32Array(80);for(let g=0;g<16;++g)C[g]=A[_][g];for(let g=16;g<80;++g)C[g]=e(C[g-3]^C[g-8]^C[g-14]^C[g-16],1);let R=u[0],x=u[1],f=u[2],k=u[3],w=u[4];for(let g=0;g<80;++g){const M=Math.floor(g/20),p=e(R,5)+i(M,x,f,k)+w+l[M]+C[g]>>>0;w=k,k=f,f=e(x,30)>>>0,x=R,R=p}u[0]=u[0]+R>>>0,u[1]=u[1]+x>>>0,u[2]=u[2]+f>>>0,u[3]=u[3]+k>>>0,u[4]=u[4]+w>>>0}return[u[0]>>24&255,u[0]>>16&255,u[0]>>8&255,255&u[0],u[1]>>24&255,u[1]>>16&255,u[1]>>8&255,255&u[1],u[2]>>24&255,u[2]>>16&255,u[2]>>8&255,255&u[2],u[3]>>24&255,u[3]>>16&255,u[3]>>8&255,255&u[3],u[4]>>24&255,u[4]>>16&255,u[4]>>8&255,255&u[4]]}},4734:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0,y.unsafeStringify=a;var e=function n(d){return d&&d.__esModule?d:{default:d}}(i(37552));const o=[];for(let d=0;d<256;++d)o.push((d+256).toString(16).slice(1));function a(d,s=0){return o[d[s+0]]+o[d[s+1]]+o[d[s+2]]+o[d[s+3]]+"-"+o[d[s+4]]+o[d[s+5]]+"-"+o[d[s+6]]+o[d[s+7]]+"-"+o[d[s+8]]+o[d[s+9]]+"-"+o[d[s+10]]+o[d[s+11]]+o[d[s+12]]+o[d[s+13]]+o[d[s+14]]+o[d[s+15]]}y.default=function l(d,s=0){const A=a(d,s);if(!(0,e.default)(A))throw TypeError("Stringified UUID is invalid");return A}},44419:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function o(_){return _&&_.__esModule?_:{default:_}}(i(69242)),n=i(4734);let a,l,u=0,d=0;y.default=function s(_,C,R){let x=C&&R||0;const f=C||new Array(16);let k=(_=_||{}).node||a,w=void 0!==_.clockseq?_.clockseq:l;if(null==k||null==w){const I=_.random||(_.rng||e.default)();null==k&&(k=a=[1|I[0],I[1],I[2],I[3],I[4],I[5]]),null==w&&(w=l=16383&(I[6]<<8|I[7]))}let g=void 0!==_.msecs?_.msecs:Date.now(),M=void 0!==_.nsecs?_.nsecs:d+1;const p=g-u+(M-d)/1e4;if(p<0&&void 0===_.clockseq&&(w=w+1&16383),(p<0||g>u)&&void 0===_.nsecs&&(M=0),M>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=g,d=M,l=w,g+=122192928e5;const E=(1e4*(268435455&g)+M)%4294967296;f[x++]=E>>>24&255,f[x++]=E>>>16&255,f[x++]=E>>>8&255,f[x++]=255&E;const b=g/4294967296*1e4&268435455;f[x++]=b>>>8&255,f[x++]=255&b,f[x++]=b>>>24&15|16,f[x++]=b>>>16&255,f[x++]=w>>>8|128,f[x++]=255&w;for(let I=0;I<6;++I)f[x+I]=k[I];return C||(0,n.unsafeStringify)(f)}},62314:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(85644)),n=o(i(10592));function o(u){return u&&u.__esModule?u:{default:u}}var l=(0,e.default)("v3",48,n.default);y.default=l},85644:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.URL=y.DNS=void 0,y.default=function d(s,A,_){function C(R,x,f,k){var w;if("string"==typeof R&&(R=function a(s){s=unescape(encodeURIComponent(s));const A=[];for(let _=0;_<s.length;++_)A.push(s.charCodeAt(_));return A}(R)),"string"==typeof x&&(x=(0,n.default)(x)),16!==(null===(w=x)||void 0===w?void 0:w.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let g=new Uint8Array(16+R.length);if(g.set(x),g.set(R,x.length),g=_(g),g[6]=15&g[6]|A,g[8]=63&g[8]|128,f){k=k||0;for(let M=0;M<16;++M)f[k+M]=g[M];return f}return(0,e.unsafeStringify)(g)}try{C.name=s}catch{}return C.DNS=l,C.URL=u,C};var e=i(4734),n=function o(s){return s&&s.__esModule?s:{default:s}}(i(74188));const l="6ba7b810-9dad-11d1-80b4-00c04fd430c8";y.DNS=l;const u="6ba7b811-9dad-11d1-80b4-00c04fd430c8";y.URL=u},25817:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=a(i(71325)),n=a(i(69242)),o=i(4734);function a(d){return d&&d.__esModule?d:{default:d}}y.default=function l(d,s,A){if(e.default.randomUUID&&!s&&!d)return e.default.randomUUID();const _=(d=d||{}).random||(d.rng||n.default)();if(_[6]=15&_[6]|64,_[8]=63&_[8]|128,s){A=A||0;for(let C=0;C<16;++C)s[A+C]=_[C];return s}return(0,o.unsafeStringify)(_)}},36597:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=o(i(85644)),n=o(i(12293));function o(u){return u&&u.__esModule?u:{default:u}}var l=(0,e.default)("v5",80,n.default);y.default=l},37552:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(l){return l&&l.__esModule?l:{default:l}}(i(42019));y.default=function o(l){return"string"==typeof l&&e.default.test(l)}},86310:(he,y,i)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var e=function n(l){return l&&l.__esModule?l:{default:l}}(i(37552));y.default=function o(l){if(!(0,e.default)(l))throw TypeError("Invalid UUID");return parseInt(l.slice(14,15),16)}},46700:(he,y,i)=>{var e={"./af":83274,"./af.js":83274,"./ar":22097,"./ar-dz":61867,"./ar-dz.js":61867,"./ar-kw":17078,"./ar-kw.js":17078,"./ar-ly":77776,"./ar-ly.js":77776,"./ar-ma":56789,"./ar-ma.js":56789,"./ar-ps":73807,"./ar-ps.js":73807,"./ar-sa":6897,"./ar-sa.js":6897,"./ar-tn":71585,"./ar-tn.js":71585,"./ar.js":22097,"./az":15611,"./az.js":15611,"./be":62459,"./be.js":62459,"./bg":91825,"./bg.js":91825,"./bm":75918,"./bm.js":75918,"./bn":34065,"./bn-bd":49683,"./bn-bd.js":49683,"./bn.js":34065,"./bo":11034,"./bo.js":11034,"./br":27671,"./br.js":27671,"./bs":38153,"./bs.js":38153,"./ca":54287,"./ca.js":54287,"./cs":72616,"./cs.js":72616,"./cv":70765,"./cv.js":70765,"./cy":99172,"./cy.js":99172,"./da":20605,"./da.js":20605,"./de":94013,"./de-at":93395,"./de-at.js":93395,"./de-ch":99835,"./de-ch.js":99835,"./de.js":94013,"./dv":14570,"./dv.js":14570,"./el":31859,"./el.js":31859,"./en-au":55785,"./en-au.js":55785,"./en-ca":83792,"./en-ca.js":83792,"./en-gb":57651,"./en-gb.js":57651,"./en-ie":81929,"./en-ie.js":81929,"./en-il":19818,"./en-il.js":19818,"./en-in":6612,"./en-in.js":6612,"./en-nz":24900,"./en-nz.js":24900,"./en-sg":72721,"./en-sg.js":72721,"./eo":95159,"./eo.js":95159,"./es":21954,"./es-do":11780,"./es-do.js":11780,"./es-mx":23468,"./es-mx.js":23468,"./es-us":44938,"./es-us.js":44938,"./es.js":21954,"./et":11453,"./et.js":11453,"./eu":44697,"./eu.js":44697,"./fa":52900,"./fa.js":52900,"./fi":49775,"./fi.js":49775,"./fil":64282,"./fil.js":64282,"./fo":84236,"./fo.js":84236,"./fr":89361,"./fr-ca":92830,"./fr-ca.js":92830,"./fr-ch":21412,"./fr-ch.js":21412,"./fr.js":89361,"./fy":66984,"./fy.js":66984,"./ga":93961,"./ga.js":93961,"./gd":78849,"./gd.js":78849,"./gl":34273,"./gl.js":34273,"./gom-deva":40623,"./gom-deva.js":40623,"./gom-latn":62696,"./gom-latn.js":62696,"./gu":66928,"./gu.js":66928,"./he":24804,"./he.js":24804,"./hi":23015,"./hi.js":23015,"./hr":17134,"./hr.js":17134,"./hu":50670,"./hu.js":50670,"./hy-am":4523,"./hy-am.js":4523,"./id":99233,"./id.js":99233,"./is":94693,"./is.js":94693,"./it":63936,"./it-ch":78118,"./it-ch.js":78118,"./it.js":63936,"./ja":86871,"./ja.js":86871,"./jv":68710,"./jv.js":68710,"./ka":17125,"./ka.js":17125,"./kk":82461,"./kk.js":82461,"./km":77399,"./km.js":77399,"./kn":38720,"./kn.js":38720,"./ko":85306,"./ko.js":85306,"./ku":82995,"./ku-kmr":64852,"./ku-kmr.js":64852,"./ku.js":82995,"./ky":8779,"./ky.js":8779,"./lb":62057,"./lb.js":62057,"./lo":17192,"./lo.js":17192,"./lt":15430,"./lt.js":15430,"./lv":53363,"./lv.js":53363,"./me":72939,"./me.js":72939,"./mi":38212,"./mi.js":38212,"./mk":69718,"./mk.js":69718,"./ml":50561,"./ml.js":50561,"./mn":68929,"./mn.js":68929,"./mr":84880,"./mr.js":84880,"./ms":63193,"./ms-my":42074,"./ms-my.js":42074,"./ms.js":63193,"./mt":54082,"./mt.js":54082,"./my":82261,"./my.js":82261,"./nb":15273,"./nb.js":15273,"./ne":19874,"./ne.js":19874,"./nl":51667,"./nl-be":81484,"./nl-be.js":81484,"./nl.js":51667,"./nn":17262,"./nn.js":17262,"./oc-lnc":19679,"./oc-lnc.js":19679,"./pa-in":96830,"./pa-in.js":96830,"./pl":93616,"./pl.js":93616,"./pt":55138,"./pt-br":32751,"./pt-br.js":32751,"./pt.js":55138,"./ro":17968,"./ro.js":17968,"./ru":81828,"./ru.js":81828,"./sd":62188,"./sd.js":62188,"./se":6562,"./se.js":6562,"./si":87172,"./si.js":87172,"./sk":99966,"./sk.js":99966,"./sl":4287,"./sl.js":4287,"./sq":15291,"./sq.js":15291,"./sr":80450,"./sr-cyrl":37603,"./sr-cyrl.js":37603,"./sr.js":80450,"./ss":30383,"./ss.js":30383,"./sv":37221,"./sv.js":37221,"./sw":51743,"./sw.js":51743,"./ta":6351,"./ta.js":6351,"./te":98118,"./te.js":98118,"./tet":26278,"./tet.js":26278,"./tg":36987,"./tg.js":36987,"./th":39325,"./th.js":39325,"./tk":43485,"./tk.js":43485,"./tl-ph":68148,"./tl-ph.js":68148,"./tlh":59616,"./tlh.js":59616,"./tr":24040,"./tr.js":24040,"./tzl":594,"./tzl.js":594,"./tzm":80673,"./tzm-latn":23226,"./tzm-latn.js":23226,"./tzm.js":80673,"./ug-cn":69580,"./ug-cn.js":69580,"./uk":87270,"./uk.js":87270,"./ur":11656,"./ur.js":11656,"./uz":68364,"./uz-latn":18744,"./uz-latn.js":18744,"./uz.js":68364,"./vi":75049,"./vi.js":75049,"./x-pseudo":15106,"./x-pseudo.js":15106,"./yo":6199,"./yo.js":6199,"./zh-cn":27280,"./zh-cn.js":27280,"./zh-hk":36860,"./zh-hk.js":36860,"./zh-mo":78364,"./zh-mo.js":78364,"./zh-tw":482,"./zh-tw.js":482};function n(a){var l=o(a);return i(l)}function o(a){if(!i.o(e,a)){var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}return e[a]}n.keys=function(){return Object.keys(e)},n.resolve=o,he.exports=n,n.id=46700},42480:()=>{},73897:he=>{he.exports=function y(i,e){(null==e||e>i.length)&&(e=i.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=i[n];return o},he.exports.__esModule=!0,he.exports.default=he.exports},85372:he=>{he.exports=function y(i){if(Array.isArray(i))return i},he.exports.__esModule=!0,he.exports.default=he.exports},66115:he=>{he.exports=function y(i){if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i},he.exports.__esModule=!0,he.exports.default=he.exports},56690:he=>{he.exports=function y(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")},he.exports.__esModule=!0,he.exports.default=he.exports},89728:(he,y,i)=>{var e=i(64062);function n(a,l){for(var u=0;u<l.length;u++){var d=l[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,e(d.key),d)}}he.exports=function o(a,l,u){return l&&n(a.prototype,l),u&&n(a,u),Object.defineProperty(a,"prototype",{writable:!1}),a},he.exports.__esModule=!0,he.exports.default=he.exports},38416:(he,y,i)=>{var e=i(64062);he.exports=function n(o,a,l){return(a=e(a))in o?Object.defineProperty(o,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):o[a]=l,o},he.exports.__esModule=!0,he.exports.default=he.exports},44968:he=>{function y(i){return he.exports=y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},he.exports.__esModule=!0,he.exports.default=he.exports,y(i)}he.exports=y,he.exports.__esModule=!0,he.exports.default=he.exports},61655:(he,y,i)=>{var e=i(6015);he.exports=function n(o,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(a&&a.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),a&&e(o,a)},he.exports.__esModule=!0,he.exports.default=he.exports},79498:he=>{he.exports=function y(i){if(typeof Symbol<"u"&&null!=i[Symbol.iterator]||null!=i["@@iterator"])return Array.from(i)},he.exports.__esModule=!0,he.exports.default=he.exports},12218:he=>{he.exports=function y(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},he.exports.__esModule=!0,he.exports.default=he.exports},94993:(he,y,i)=>{var e=i(18698).default,n=i(66115);he.exports=function o(a,l){if(l&&("object"===e(l)||"function"==typeof l))return l;if(void 0!==l)throw new TypeError("Derived constructors may only return object or undefined");return n(a)},he.exports.__esModule=!0,he.exports.default=he.exports},6015:he=>{function y(i,e){return he.exports=y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},he.exports.__esModule=!0,he.exports.default=he.exports,y(i,e)}he.exports=y,he.exports.__esModule=!0,he.exports.default=he.exports},51589:(he,y,i)=>{var e=i(85372),n=i(79498),o=i(86116),a=i(12218);he.exports=function l(u){return e(u)||n(u)||o(u)||a()},he.exports.__esModule=!0,he.exports.default=he.exports},95036:(he,y,i)=>{var e=i(18698).default;he.exports=function n(o,a){if("object"!==e(o)||null===o)return o;var l=o[Symbol.toPrimitive];if(void 0!==l){var u=l.call(o,a||"default");if("object"!==e(u))return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(o)},he.exports.__esModule=!0,he.exports.default=he.exports},64062:(he,y,i)=>{var e=i(18698).default,n=i(95036);he.exports=function o(a){var l=n(a,"string");return"symbol"===e(l)?l:String(l)},he.exports.__esModule=!0,he.exports.default=he.exports},18698:he=>{function y(i){return he.exports=y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},he.exports.__esModule=!0,he.exports.default=he.exports,y(i)}he.exports=y,he.exports.__esModule=!0,he.exports.default=he.exports},86116:(he,y,i)=>{var e=i(73897);he.exports=function n(o,a){if(o){if("string"==typeof o)return e(o,a);var l=Object.prototype.toString.call(o).slice(8,-1);if("Object"===l&&o.constructor&&(l=o.constructor.name),"Map"===l||"Set"===l)return Array.from(o);if("Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return e(o,a)}},he.exports.__esModule=!0,he.exports.default=he.exports},34364:(he,y,i)=>{"use strict";var e=i(69985),n=i(23691),o=TypeError;he.exports=function(a){if(e(a))return a;throw new o(n(a)+" is not a function")}},52655:(he,y,i)=>{"use strict";var e=i(19429),n=i(23691),o=TypeError;he.exports=function(a){if(e(a))return a;throw new o(n(a)+" is not a constructor")}},23550:(he,y,i)=>{"use strict";var e=i(60598),n=String,o=TypeError;he.exports=function(a){if(e(a))return a;throw new o("Can't set "+n(a)+" as a prototype")}},87370:(he,y,i)=>{"use strict";var e=i(44201),n=i(25391),o=i(72560).f,a=e("unscopables"),l=Array.prototype;void 0===l[a]&&o(l,a,{configurable:!0,value:n(null)}),he.exports=function(u){l[a][u]=!0}},71514:(he,y,i)=>{"use strict";var e=i(10730).charAt;he.exports=function(n,o,a){return o+(a?e(n,o).length:1)}},767:(he,y,i)=>{"use strict";var e=i(23622),n=TypeError;he.exports=function(o,a){if(e(a,o))return o;throw new n("Incorrect invocation")}},85027:(he,y,i)=>{"use strict";var e=i(48999),n=String,o=TypeError;he.exports=function(a){if(e(a))return a;throw new o(n(a)+" is not an object")}},47146:he=>{"use strict";he.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},11655:(he,y,i)=>{"use strict";var e=i(3689);he.exports=e(function(){if("function"==typeof ArrayBuffer){var n=new ArrayBuffer(8);Object.isExtensible(n)&&Object.defineProperty(n,"a",{value:8})}})},54872:(he,y,i)=>{"use strict";var J,Q,re,e=i(47146),n=i(67697),o=i(19037),a=i(69985),l=i(48999),u=i(36812),d=i(50926),s=i(23691),A=i(75773),_=i(11880),C=i(62148),R=i(23622),x=i(61868),f=i(49385),k=i(44201),w=i(14630),g=i(618),M=g.enforce,p=g.get,E=o.Int8Array,b=E&&E.prototype,I=o.Uint8ClampedArray,L=I&&I.prototype,D=E&&x(E),F=b&&x(b),P=Object.prototype,O=o.TypeError,U=k("toStringTag"),V=w("TYPED_ARRAY_TAG"),K="TypedArrayConstructor",X=e&&!!f&&"Opera"!==d(o.opera),me=!1,de={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},te={BigInt64Array:8,BigUint64Array:8},H=function(ge){var Ce=x(ge);if(l(Ce)){var Te=p(Ce);return Te&&u(Te,K)?Te[K]:H(Ce)}},z=function(ge){if(!l(ge))return!1;var Ce=d(ge);return u(de,Ce)||u(te,Ce)};for(J in de)(re=(Q=o[J])&&Q.prototype)?M(re)[K]=Q:X=!1;for(J in te)(re=(Q=o[J])&&Q.prototype)&&(M(re)[K]=Q);if((!X||!a(D)||D===Function.prototype)&&(D=function(){throw new O("Incorrect invocation")},X))for(J in de)o[J]&&f(o[J],D);if((!X||!F||F===P)&&(F=D.prototype,X))for(J in de)o[J]&&f(o[J].prototype,F);if(X&&x(L)!==F&&f(L,F),n&&!u(F,U))for(J in me=!0,C(F,U,{configurable:!0,get:function(){return l(this)?this[V]:void 0}}),de)o[J]&&A(o[J],V,J);he.exports={NATIVE_ARRAY_BUFFER_VIEWS:X,TYPED_ARRAY_TAG:me&&V,aTypedArray:function(ge){if(z(ge))return ge;throw new O("Target is not a typed array")},aTypedArrayConstructor:function(ge){if(a(ge)&&(!f||R(D,ge)))return ge;throw new O(s(ge)+" is not a typed array constructor")},exportTypedArrayMethod:function(ge,Ce,Te,De){if(n){if(Te)for(var fe in de){var xe=o[fe];if(xe&&u(xe.prototype,ge))try{delete xe.prototype[ge]}catch{try{xe.prototype[ge]=Ce}catch{}}}(!F[ge]||Te)&&_(F,ge,Te?Ce:X&&b[ge]||Ce,De)}},exportTypedArrayStaticMethod:function(ge,Ce,Te){var De,fe;if(n){if(f){if(Te)for(De in de)if((fe=o[De])&&u(fe,ge))try{delete fe[ge]}catch{}if(D[ge]&&!Te)return;try{return _(D,ge,Te?Ce:X&&D[ge]||Ce)}catch{}}for(De in de)(fe=o[De])&&(!fe[ge]||Te)&&_(fe,ge,Ce)}},getTypedArrayConstructor:H,isView:function(Ce){if(!l(Ce))return!1;var Te=d(Ce);return"DataView"===Te||u(de,Te)||u(te,Te)},isTypedArray:z,TypedArray:D,TypedArrayPrototype:F}},83999:(he,y,i)=>{"use strict";var e=i(19037),n=i(68844),o=i(67697),a=i(47146),l=i(41236),u=i(75773),d=i(62148),s=i(6045),A=i(3689),_=i(767),C=i(68700),R=i(43126),x=i(19842),f=i(37788),k=i(15477),w=i(61868),g=i(49385),M=i(62872),p=i(96004),E=i(33457),b=i(8758),I=i(55997),L=i(618),D=l.PROPER,F=l.CONFIGURABLE,P="ArrayBuffer",O="DataView",U="prototype",K="Wrong index",X=L.getterFor(P),me=L.getterFor(O),J=L.set,Q=e[P],re=Q,de=re&&re[U],te=e[O],j=te&&te[U],H=Object.prototype,z=e.Array,q=e.RangeError,se=n(M),ne=n([].reverse),_e=k.pack,ge=k.unpack,Ce=function(mt){return[255&mt]},Te=function(mt){return[255&mt,mt>>8&255]},De=function(mt){return[255&mt,mt>>8&255,mt>>16&255,mt>>24&255]},fe=function(mt){return mt[3]<<24|mt[2]<<16|mt[1]<<8|mt[0]},xe=function(mt){return _e(f(mt),23,4)},Oe=function(mt){return _e(mt,52,8)},Le=function(mt,ut,Wt){d(mt[U],ut,{configurable:!0,get:function(){return Wt(this)[ut]}})},Gt=function(mt,ut,Wt,dn){var sn=me(mt),fn=x(Wt),yi=!!dn;if(fn+ut>sn.byteLength)throw new q(K);var Mi=fn+sn.byteOffset,mi=p(sn.bytes,Mi,Mi+ut);return yi?mi:ne(mi)},Ut=function(mt,ut,Wt,dn,sn,fn){var yi=me(mt),nn=x(Wt),Mi=dn(+sn),mi=!!fn;if(nn+ut>yi.byteLength)throw new q(K);for(var Eo=yi.bytes,Ko=nn+yi.byteOffset,xo=0;xo<ut;xo++)Eo[Ko+xo]=Mi[mi?xo:ut-xo-1]};if(a){var An=D&&Q.name!==P;A(function(){Q(1)})&&A(function(){new Q(-1)})&&!A(function(){return new Q,new Q(1.5),new Q(NaN),1!==Q.length||An&&!F})?An&&F&&u(Q,"name",P):((re=function(ut){return _(this,de),E(new Q(x(ut)),this,re)})[U]=de,de.constructor=re,b(re,Q)),g&&w(j)!==H&&g(j,H);var $n=new te(new re(2)),xn=n(j.setInt8);$n.setInt8(0,2147483648),$n.setInt8(1,2147483649),($n.getInt8(0)||!$n.getInt8(1))&&s(j,{setInt8:function(ut,Wt){xn(this,ut,Wt<<24>>24)},setUint8:function(ut,Wt){xn(this,ut,Wt<<24>>24)}},{unsafe:!0})}else de=(re=function(ut){_(this,de);var Wt=x(ut);J(this,{type:P,bytes:se(z(Wt),0),byteLength:Wt}),o||(this.byteLength=Wt,this.detached=!1)})[U],j=(te=function(ut,Wt,dn){_(this,j),_(ut,de);var sn=X(ut),fn=sn.byteLength,yi=C(Wt);if(yi<0||yi>fn)throw new q("Wrong offset");if(yi+(dn=void 0===dn?fn-yi:R(dn))>fn)throw new q("Wrong length");J(this,{type:O,buffer:ut,byteLength:dn,byteOffset:yi,bytes:sn.bytes}),o||(this.buffer=ut,this.byteLength=dn,this.byteOffset=yi)})[U],o&&(Le(re,"byteLength",X),Le(te,"buffer",me),Le(te,"byteLength",me),Le(te,"byteOffset",me)),s(j,{getInt8:function(ut){return Gt(this,1,ut)[0]<<24>>24},getUint8:function(ut){return Gt(this,1,ut)[0]},getInt16:function(ut){var Wt=Gt(this,2,ut,arguments.length>1&&arguments[1]);return(Wt[1]<<8|Wt[0])<<16>>16},getUint16:function(ut){var Wt=Gt(this,2,ut,arguments.length>1&&arguments[1]);return Wt[1]<<8|Wt[0]},getInt32:function(ut){return fe(Gt(this,4,ut,arguments.length>1&&arguments[1]))},getUint32:function(ut){return fe(Gt(this,4,ut,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(ut){return ge(Gt(this,4,ut,arguments.length>1&&arguments[1]),23)},getFloat64:function(ut){return ge(Gt(this,8,ut,arguments.length>1&&arguments[1]),52)},setInt8:function(ut,Wt){Ut(this,1,ut,Ce,Wt)},setUint8:function(ut,Wt){Ut(this,1,ut,Ce,Wt)},setInt16:function(ut,Wt){Ut(this,2,ut,Te,Wt,arguments.length>2&&arguments[2])},setUint16:function(ut,Wt){Ut(this,2,ut,Te,Wt,arguments.length>2&&arguments[2])},setInt32:function(ut,Wt){Ut(this,4,ut,De,Wt,arguments.length>2&&arguments[2])},setUint32:function(ut,Wt){Ut(this,4,ut,De,Wt,arguments.length>2&&arguments[2])},setFloat32:function(ut,Wt){Ut(this,4,ut,xe,Wt,arguments.length>2&&arguments[2])},setFloat64:function(ut,Wt){Ut(this,8,ut,Oe,Wt,arguments.length>2&&arguments[2])}});I(re,P),I(te,O),he.exports={ArrayBuffer:re,DataView:te}},70357:(he,y,i)=>{"use strict";var e=i(90690),n=i(27578),o=i(6310),a=i(98494),l=Math.min;he.exports=[].copyWithin||function(d,s){var A=e(this),_=o(A),C=n(d,_),R=n(s,_),x=arguments.length>2?arguments[2]:void 0,f=l((void 0===x?_:n(x,_))-R,_-C),k=1;for(R<C&&C<R+f&&(k=-1,R+=f-1,C+=f-1);f-- >0;)R in A?A[C]=A[R]:a(A,C),C+=k,R+=k;return A}},62872:(he,y,i)=>{"use strict";var e=i(90690),n=i(27578),o=i(6310);he.exports=function(l){for(var u=e(this),d=o(u),s=arguments.length,A=n(s>1?arguments[1]:void 0,d),_=s>2?arguments[2]:void 0,C=void 0===_?d:n(_,d);C>A;)u[A++]=l;return u}},57612:(he,y,i)=>{"use strict";var e=i(2960).forEach,o=i(16834)("forEach");he.exports=o?[].forEach:function(l){return e(this,l,arguments.length>1?arguments[1]:void 0)}},59976:(he,y,i)=>{"use strict";var e=i(6310);he.exports=function(n,o,a){for(var l=0,u=arguments.length>2?a:e(o),d=new n(u);u>l;)d[l]=o[l++];return d}},21055:(he,y,i)=>{"use strict";var e=i(54071),n=i(22615),o=i(90690),a=i(71228),l=i(93292),u=i(19429),d=i(6310),s=i(76522),A=i(5185),_=i(91664),C=Array;he.exports=function(x){var f=o(x),k=u(this),w=arguments.length,g=w>1?arguments[1]:void 0,M=void 0!==g;M&&(g=e(g,w>2?arguments[2]:void 0));var b,I,L,D,F,P,p=_(f),E=0;if(!p||this===C&&l(p))for(b=d(f),I=k?new this(b):C(b);b>E;E++)P=M?g(f[E],E):f[E],s(I,E,P);else for(I=k?new this:[],F=(D=A(f,p)).next;!(L=n(F,D)).done;E++)P=M?a(D,g,[L.value,E],!0):L.value,s(I,E,P);return I.length=E,I}},84328:(he,y,i)=>{"use strict";var e=i(65290),n=i(27578),o=i(6310),a=function(l){return function(u,d,s){var A=e(u),_=o(A);if(0===_)return!l&&-1;var R,C=n(s,_);if(l&&d!=d){for(;_>C;)if((R=A[C++])!=R)return!0}else for(;_>C;C++)if((l||C in A)&&A[C]===d)return l||C||0;return!l&&-1}};he.exports={includes:a(!0),indexOf:a(!1)}},2960:(he,y,i)=>{"use strict";var e=i(54071),n=i(68844),o=i(94413),a=i(90690),l=i(6310),u=i(27120),d=n([].push),s=function(A){var _=1===A,C=2===A,R=3===A,x=4===A,f=6===A,k=7===A,w=5===A||f;return function(g,M,p,E){for(var U,V,b=a(g),I=o(b),L=l(I),D=e(M,p),F=0,P=E||u,O=_?P(g,L):C||k?P(g,0):void 0;L>F;F++)if((w||F in I)&&(V=D(U=I[F],F,b),A))if(_)O[F]=V;else if(V)switch(A){case 3:return!0;case 5:return U;case 6:return F;case 2:d(O,U)}else switch(A){case 4:return!1;case 7:d(O,U)}return f?-1:R||x?x:O}};he.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},60953:(he,y,i)=>{"use strict";var e=i(61735),n=i(65290),o=i(68700),a=i(6310),l=i(16834),u=Math.min,d=[].lastIndexOf,s=!!d&&1/[1].lastIndexOf(1,-0)<0,A=l("lastIndexOf");he.exports=s||!A?function(R){if(s)return e(d,this,arguments)||0;var x=n(this),f=a(x);if(0===f)return-1;var k=f-1;for(arguments.length>1&&(k=u(k,o(arguments[1]))),k<0&&(k=f+k);k>=0;k--)if(k in x&&x[k]===R)return k||0;return-1}:d},29042:(he,y,i)=>{"use strict";var e=i(3689),n=i(44201),o=i(3615),a=n("species");he.exports=function(l){return o>=51||!e(function(){var u=[];return(u.constructor={})[a]=function(){return{foo:1}},1!==u[l](Boolean).foo})}},16834:(he,y,i)=>{"use strict";var e=i(3689);he.exports=function(n,o){var a=[][n];return!!a&&e(function(){a.call(null,o||function(){return 1},1)})}},88820:(he,y,i)=>{"use strict";var e=i(34364),n=i(90690),o=i(94413),a=i(6310),l=TypeError,u="Reduce of empty array with no initial value",d=function(s){return function(A,_,C,R){var x=n(A),f=o(x),k=a(x);if(e(_),0===k&&C<2)throw new l(u);var w=s?k-1:0,g=s?-1:1;if(C<2)for(;;){if(w in f){R=f[w],w+=g;break}if(w+=g,s?w<0:k<=w)throw new l(u)}for(;s?w>=0:k>w;w+=g)w in f&&(R=_(R,f[w],w,x));return R}};he.exports={left:d(!1),right:d(!0)}},5649:(he,y,i)=>{"use strict";var e=i(67697),n=i(92297),o=TypeError,a=Object.getOwnPropertyDescriptor,l=e&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(u){return u instanceof TypeError}}();he.exports=l?function(u,d){if(n(u)&&!a(u,"length").writable)throw new o("Cannot set read only .length");return u.length=d}:function(u,d){return u.length=d}},96004:(he,y,i)=>{"use strict";var e=i(68844);he.exports=e([].slice)},50382:(he,y,i)=>{"use strict";var e=i(96004),n=Math.floor,o=function(a,l){var u=a.length;if(u<8)for(var s,A,d=1;d<u;){for(A=d,s=a[d];A&&l(a[A-1],s)>0;)a[A]=a[--A];A!==d++&&(a[A]=s)}else for(var _=n(u/2),C=o(e(a,0,_),l),R=o(e(a,_),l),x=C.length,f=R.length,k=0,w=0;k<x||w<f;)a[k+w]=k<x&&w<f?l(C[k],R[w])<=0?C[k++]:R[w++]:k<x?C[k++]:R[w++];return a};he.exports=o},25271:(he,y,i)=>{"use strict";var e=i(92297),n=i(19429),o=i(48999),l=i(44201)("species"),u=Array;he.exports=function(d){var s;return e(d)&&(n(s=d.constructor)&&(s===u||e(s.prototype))||o(s)&&null===(s=s[l]))&&(s=void 0),void 0===s?u:s}},27120:(he,y,i)=>{"use strict";var e=i(25271);he.exports=function(n,o){return new(e(n))(0===o?0:o)}},71228:(he,y,i)=>{"use strict";var e=i(85027),n=i(72125);he.exports=function(o,a,l,u){try{return u?a(e(l)[0],l[1]):a(l)}catch(d){n(o,"throw",d)}}},86431:(he,y,i)=>{"use strict";var n=i(44201)("iterator"),o=!1;try{var a=0,l={next:function(){return{done:!!a++}},return:function(){o=!0}};l[n]=function(){return this},Array.from(l,function(){throw 2})}catch{}he.exports=function(u,d){try{if(!d&&!o)return!1}catch{return!1}var s=!1;try{var A={};A[n]=function(){return{next:function(){return{done:s=!0}}}},u(A)}catch{}return s}},6648:(he,y,i)=>{"use strict";var e=i(68844),n=e({}.toString),o=e("".slice);he.exports=function(a){return o(n(a),8,-1)}},50926:(he,y,i)=>{"use strict";var e=i(23043),n=i(69985),o=i(6648),l=i(44201)("toStringTag"),u=Object,d="Arguments"===o(function(){return arguments}());he.exports=e?o:function(A){var _,C,R;return void 0===A?"Undefined":null===A?"Null":"string"==typeof(C=function(A,_){try{return A[_]}catch{}}(_=u(A),l))?C:d?o(_):"Object"===(R=o(_))&&n(_.callee)?"Arguments":R}},70800:(he,y,i)=>{"use strict";var e=i(25391),n=i(62148),o=i(6045),a=i(54071),l=i(767),u=i(981),d=i(18734),s=i(91934),A=i(27807),_=i(14241),C=i(67697),R=i(45375).fastKey,x=i(618),f=x.set,k=x.getterFor;he.exports={getConstructor:function(w,g,M,p){var E=w(function(F,P){l(F,b),f(F,{type:g,index:e(null),first:void 0,last:void 0,size:0}),C||(F.size=0),u(P)||d(P,F[p],{that:F,AS_ENTRIES:M})}),b=E.prototype,I=k(g),L=function(F,P,O){var K,X,U=I(F),V=D(F,P);return V?V.value=O:(U.last=V={index:X=R(P,!0),key:P,value:O,previous:K=U.last,next:void 0,removed:!1},U.first||(U.first=V),K&&(K.next=V),C?U.size++:F.size++,"F"!==X&&(U.index[X]=V)),F},D=function(F,P){var V,O=I(F),U=R(P);if("F"!==U)return O.index[U];for(V=O.first;V;V=V.next)if(V.key===P)return V};return o(b,{clear:function(){for(var O=I(this),U=O.first;U;)U.removed=!0,U.previous&&(U.previous=U.previous.next=void 0),U=U.next;O.first=O.last=void 0,O.index=e(null),C?O.size=0:this.size=0},delete:function(F){var P=this,O=I(P),U=D(P,F);if(U){var V=U.next,K=U.previous;delete O.index[U.index],U.removed=!0,K&&(K.next=V),V&&(V.previous=K),O.first===U&&(O.first=V),O.last===U&&(O.last=K),C?O.size--:P.size--}return!!U},forEach:function(P){for(var V,O=I(this),U=a(P,arguments.length>1?arguments[1]:void 0);V=V?V.next:O.first;)for(U(V.value,V.key,this);V&&V.removed;)V=V.previous},has:function(P){return!!D(this,P)}}),o(b,M?{get:function(P){var O=D(this,P);return O&&O.value},set:function(P,O){return L(this,0===P?0:P,O)}}:{add:function(P){return L(this,P=0===P?0:P,P)}}),C&&n(b,"size",{configurable:!0,get:function(){return I(this).size}}),E},setStrong:function(w,g,M){var p=g+" Iterator",E=k(g),b=k(p);s(w,g,function(I,L){f(this,{type:p,target:I,state:E(I),kind:L,last:void 0})},function(){for(var I=b(this),L=I.kind,D=I.last;D&&D.removed;)D=D.previous;return I.target&&(I.last=D=D?D.next:I.state.first)?A("keys"===L?D.key:"values"===L?D.value:[D.key,D.value],!1):(I.target=void 0,A(void 0,!0))},M?"entries":"values",!M,!0),_(g)}}},70637:(he,y,i)=>{"use strict";var e=i(68844),n=i(6045),o=i(45375).getWeakData,a=i(767),l=i(85027),u=i(981),d=i(48999),s=i(18734),A=i(2960),_=i(36812),C=i(618),R=C.set,x=C.getterFor,f=A.find,k=A.findIndex,w=e([].splice),g=0,M=function(b){return b.frozen||(b.frozen=new p)},p=function(){this.entries=[]},E=function(b,I){return f(b.entries,function(L){return L[0]===I})};p.prototype={get:function(b){var I=E(this,b);if(I)return I[1]},has:function(b){return!!E(this,b)},set:function(b,I){var L=E(this,b);L?L[1]=I:this.entries.push([b,I])},delete:function(b){var I=k(this.entries,function(L){return L[0]===b});return~I&&w(this.entries,I,1),!!~I}},he.exports={getConstructor:function(b,I,L,D){var F=b(function(V,K){a(V,P),R(V,{type:I,id:g++,frozen:void 0}),u(K)||s(K,V[D],{that:V,AS_ENTRIES:L})}),P=F.prototype,O=x(I),U=function(V,K,X){var me=O(V),J=o(l(K),!0);return!0===J?M(me).set(K,X):J[me.id]=X,V};return n(P,{delete:function(V){var K=O(this);if(!d(V))return!1;var X=o(V);return!0===X?M(K).delete(V):X&&_(X,K.id)&&delete X[K.id]},has:function(K){var X=O(this);if(!d(K))return!1;var me=o(K);return!0===me?M(X).has(K):me&&_(me,X.id)}}),n(P,L?{get:function(K){var X=O(this);if(d(K)){var me=o(K);return!0===me?M(X).get(K):me?me[X.id]:void 0}},set:function(K,X){return U(this,K,X)}}:{add:function(K){return U(this,K,!0)}}),F}}},20319:(he,y,i)=>{"use strict";var e=i(79989),n=i(19037),o=i(68844),a=i(35266),l=i(11880),u=i(45375),d=i(18734),s=i(767),A=i(69985),_=i(981),C=i(48999),R=i(3689),x=i(86431),f=i(55997),k=i(33457);he.exports=function(w,g,M){var p=-1!==w.indexOf("Map"),E=-1!==w.indexOf("Weak"),b=p?"set":"add",I=n[w],L=I&&I.prototype,D=I,F={},P=function(J){var Q=o(L[J]);l(L,J,"add"===J?function(de){return Q(this,0===de?0:de),this}:"delete"===J?function(re){return!(E&&!C(re))&&Q(this,0===re?0:re)}:"get"===J?function(de){return E&&!C(de)?void 0:Q(this,0===de?0:de)}:"has"===J?function(de){return!(E&&!C(de))&&Q(this,0===de?0:de)}:function(de,te){return Q(this,0===de?0:de,te),this})};if(a(w,!A(I)||!(E||L.forEach&&!R(function(){(new I).entries().next()}))))D=M.getConstructor(g,w,p,b),u.enable();else if(a(w,!0)){var U=new D,V=U[b](E?{}:-0,1)!==U,K=R(function(){U.has(1)}),X=x(function(J){new I(J)}),me=!E&&R(function(){for(var J=new I,Q=5;Q--;)J[b](Q,Q);return!J.has(-0)});X||((D=g(function(J,Q){s(J,L);var re=k(new I,J,D);return _(Q)||d(Q,re[b],{that:re,AS_ENTRIES:p}),re})).prototype=L,L.constructor=D),(K||me)&&(P("delete"),P("has"),p&&P("get")),(me||V)&&P(b),E&&L.clear&&delete L.clear}return F[w]=D,e({global:!0,constructor:!0,forced:D!==I},F),f(D,w),E||M.setStrong(D,w,p),D}},8758:(he,y,i)=>{"use strict";var e=i(36812),n=i(19152),o=i(82474),a=i(72560);he.exports=function(l,u,d){for(var s=n(u),A=a.f,_=o.f,C=0;C<s.length;C++){var R=s[C];!e(l,R)&&(!d||!e(d,R))&&A(l,R,_(u,R))}}},27413:(he,y,i)=>{"use strict";var n=i(44201)("match");he.exports=function(o){var a=/./;try{"/./"[o](a)}catch{try{return a[n]=!1,"/./"[o](a)}catch{}}return!1}},81748:(he,y,i)=>{"use strict";var e=i(3689);he.exports=!e(function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype})},27807:he=>{"use strict";he.exports=function(y,i){return{value:y,done:i}}},75773:(he,y,i)=>{"use strict";var e=i(67697),n=i(72560),o=i(75684);he.exports=e?function(a,l,u){return n.f(a,l,o(1,u))}:function(a,l,u){return a[l]=u,a}},75684:he=>{"use strict";he.exports=function(y,i){return{enumerable:!(1&y),configurable:!(2&y),writable:!(4&y),value:i}}},76522:(he,y,i)=>{"use strict";var e=i(67697),n=i(72560),o=i(75684);he.exports=function(a,l,u){e?n.f(a,l,o(0,u)):a[l]=u}},99455:(he,y,i)=>{"use strict";var e=i(68844),n=i(3689),o=i(77254).start,a=RangeError,l=isFinite,u=Math.abs,d=Date.prototype,s=d.toISOString,A=e(d.getTime),_=e(d.getUTCDate),C=e(d.getUTCFullYear),R=e(d.getUTCHours),x=e(d.getUTCMilliseconds),f=e(d.getUTCMinutes),k=e(d.getUTCMonth),w=e(d.getUTCSeconds);he.exports=n(function(){return"0385-07-25T07:06:39.999Z"!==s.call(new Date(-50000000000001))})||!n(function(){s.call(new Date(NaN))})?function(){if(!l(A(this)))throw new a("Invalid time value");var M=this,p=C(M),E=x(M),b=p<0?"-":p>9999?"+":"";return b+o(u(p),b?6:4,0)+"-"+o(k(M)+1,2,0)+"-"+o(_(M),2,0)+"T"+o(R(M),2,0)+":"+o(f(M),2,0)+":"+o(w(M),2,0)+"."+o(E,3,0)+"Z"}:s},81797:(he,y,i)=>{"use strict";var e=i(85027),n=i(35899),o=TypeError;he.exports=function(a){if(e(this),"string"===a||"default"===a)a="string";else if("number"!==a)throw new o("Incorrect hint");return n(this,a)}},62148:(he,y,i)=>{"use strict";var e=i(98702),n=i(72560);he.exports=function(o,a,l){return l.get&&e(l.get,a,{getter:!0}),l.set&&e(l.set,a,{setter:!0}),n.f(o,a,l)}},11880:(he,y,i)=>{"use strict";var e=i(69985),n=i(72560),o=i(98702),a=i(95014);he.exports=function(l,u,d,s){s||(s={});var A=s.enumerable,_=void 0!==s.name?s.name:u;if(e(d)&&o(d,_,s),s.global)A?l[u]=d:a(u,d);else{try{s.unsafe?l[u]&&(A=!0):delete l[u]}catch{}A?l[u]=d:n.f(l,u,{value:d,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return l}},6045:(he,y,i)=>{"use strict";var e=i(11880);he.exports=function(n,o,a){for(var l in o)e(n,l,o[l],a);return n}},95014:(he,y,i)=>{"use strict";var e=i(19037),n=Object.defineProperty;he.exports=function(o,a){try{n(e,o,{value:a,configurable:!0,writable:!0})}catch{e[o]=a}return a}},98494:(he,y,i)=>{"use strict";var e=i(23691),n=TypeError;he.exports=function(o,a){if(!delete o[a])throw new n("Cannot delete property "+e(a)+" of "+e(o))}},67697:(he,y,i)=>{"use strict";var e=i(3689);he.exports=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},36420:(he,y,i)=>{"use strict";var e=i(19037),n=i(48999),o=e.document,a=n(o)&&n(o.createElement);he.exports=function(l){return a?o.createElement(l):{}}},55565:he=>{"use strict";var y=TypeError;he.exports=function(e){if(e>9007199254740991)throw y("Maximum allowed index exceeded");return e}},66338:he=>{"use strict";he.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},33265:(he,y,i)=>{"use strict";var n=i(36420)("span").classList,o=n&&n.constructor&&n.constructor.prototype;he.exports=o===Object.prototype?void 0:o},97365:(he,y,i)=>{"use strict";var n=i(30071).match(/firefox\/(\d+)/i);he.exports=!!n&&+n[1]},72532:(he,y,i)=>{"use strict";var e=i(88563),n=i(50806);he.exports=!e&&!n&&"object"==typeof window&&"object"==typeof document},83127:he=>{"use strict";he.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},88563:he=>{"use strict";he.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},37298:(he,y,i)=>{"use strict";var e=i(30071);he.exports=/MSIE|Trident/.test(e)},63221:(he,y,i)=>{"use strict";var e=i(30071);he.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble<"u"},4764:(he,y,i)=>{"use strict";var e=i(30071);he.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},50806:(he,y,i)=>{"use strict";var e=i(19037),n=i(6648);he.exports="process"===n(e.process)},27486:(he,y,i)=>{"use strict";var e=i(30071);he.exports=/web0s(?!.*chrome)/i.test(e)},30071:he=>{"use strict";he.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},3615:(he,y,i)=>{"use strict";var d,s,e=i(19037),n=i(30071),o=e.process,a=e.Deno,l=o&&o.versions||a&&a.version,u=l&&l.v8;u&&(s=(d=u.split("."))[0]>0&&d[0]<4?1:+(d[0]+d[1])),!s&&n&&(!(d=n.match(/Edge\/(\d+)/))||d[1]>=74)&&(d=n.match(/Chrome\/(\d+)/))&&(s=+d[1]),he.exports=s},27922:(he,y,i)=>{"use strict";var n=i(30071).match(/AppleWebKit\/(\d+)\./);he.exports=!!n&&+n[1]},72739:he=>{"use strict";he.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(he,y,i)=>{"use strict";var e=i(19037),n=i(82474).f,o=i(75773),a=i(11880),l=i(95014),u=i(8758),d=i(35266);he.exports=function(s,A){var f,k,w,g,M,_=s.target,C=s.global,R=s.stat;if(f=C?e:R?e[_]||l(_,{}):e[_]&&e[_].prototype)for(k in A){if(g=A[k],w=s.dontCallGetSet?(M=n(f,k))&&M.value:f[k],!d(C?k:_+(R?".":"#")+k,s.forced)&&void 0!==w){if(typeof g==typeof w)continue;u(g,w)}(s.sham||w&&w.sham)&&o(g,"sham",!0),a(f,k,g,s)}}},3689:he=>{"use strict";he.exports=function(y){try{return!!y()}catch{return!0}}},65773:(he,y,i)=>{"use strict";i(64043);var e=i(22615),n=i(11880),o=i(56308),a=i(3689),l=i(44201),u=i(75773),d=l("species"),s=RegExp.prototype;he.exports=function(A,_,C,R){var x=l(A),f=!a(function(){var M={};return M[x]=function(){return 7},7!==""[A](M)}),k=f&&!a(function(){var M=!1,p=/a/;return"split"===A&&((p={}).constructor={},p.constructor[d]=function(){return p},p.flags="",p[x]=/./[x]),p.exec=function(){return M=!0,null},p[x](""),!M});if(!f||!k||C){var w=/./[x],g=_(x,""[A],function(M,p,E,b,I){var L=p.exec;return L===o||L===s.exec?f&&!I?{done:!0,value:e(w,p,E,b)}:{done:!0,value:e(M,E,p,b)}:{done:!1}});n(String.prototype,A,g[0]),n(s,x,g[1])}R&&u(s[x],"sham",!0)}},71594:(he,y,i)=>{"use strict";var e=i(3689);he.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},61735:(he,y,i)=>{"use strict";var e=i(97215),n=Function.prototype,o=n.apply,a=n.call;he.exports="object"==typeof Reflect&&Reflect.apply||(e?a.bind(o):function(){return a.apply(o,arguments)})},54071:(he,y,i)=>{"use strict";var e=i(46576),n=i(34364),o=i(97215),a=e(e.bind);he.exports=function(l,u){return n(l),void 0===u?l:o?a(l,u):function(){return l.apply(u,arguments)}}},97215:(he,y,i)=>{"use strict";var e=i(3689);he.exports=!e(function(){var n=function(){}.bind();return"function"!=typeof n||n.hasOwnProperty("prototype")})},86761:(he,y,i)=>{"use strict";var e=i(68844),n=i(34364),o=i(48999),a=i(36812),l=i(96004),u=i(97215),d=Function,s=e([].concat),A=e([].join),_={};he.exports=u?d.bind:function(x){var f=n(this),k=f.prototype,w=l(arguments,1),g=function(){var p=s(w,l(arguments));return this instanceof g?function(R,x,f){if(!a(_,x)){for(var k=[],w=0;w<x;w++)k[w]="a["+w+"]";_[x]=d("C,a","return new C("+A(k,",")+")")}return _[x](R,f)}(f,p.length,p):f.apply(x,p)};return o(k)&&(g.prototype=k),g}},22615:(he,y,i)=>{"use strict";var e=i(97215),n=Function.prototype.call;he.exports=e?n.bind(n):function(){return n.apply(n,arguments)}},41236:(he,y,i)=>{"use strict";var e=i(67697),n=i(36812),o=Function.prototype,a=e&&Object.getOwnPropertyDescriptor,l=n(o,"name"),u=l&&"something"===function(){}.name,d=l&&(!e||e&&a(o,"name").configurable);he.exports={EXISTS:l,PROPER:u,CONFIGURABLE:d}},52743:(he,y,i)=>{"use strict";var e=i(68844),n=i(34364);he.exports=function(o,a,l){try{return e(n(Object.getOwnPropertyDescriptor(o,a)[l]))}catch{}}},46576:(he,y,i)=>{"use strict";var e=i(6648),n=i(68844);he.exports=function(o){if("Function"===e(o))return n(o)}},68844:(he,y,i)=>{"use strict";var e=i(97215),n=Function.prototype,o=n.call,a=e&&n.bind.bind(o,o);he.exports=e?a:function(l){return function(){return o.apply(l,arguments)}}},76058:(he,y,i)=>{"use strict";var e=i(19037),n=i(69985);he.exports=function(a,l){return arguments.length<2?function(a){return n(a)?a:void 0}(e[a]):e[a]&&e[a][l]}},91664:(he,y,i)=>{"use strict";var e=i(50926),n=i(54849),o=i(981),a=i(9478),u=i(44201)("iterator");he.exports=function(d){if(!o(d))return n(d,u)||n(d,"@@iterator")||a[e(d)]}},5185:(he,y,i)=>{"use strict";var e=i(22615),n=i(34364),o=i(85027),a=i(23691),l=i(91664),u=TypeError;he.exports=function(d,s){var A=arguments.length<2?l(d):s;if(n(A))return o(e(A,d));throw new u(a(d)+" is not iterable")}},92643:(he,y,i)=>{"use strict";var e=i(68844),n=i(92297),o=i(69985),a=i(6648),l=i(34327),u=e([].push);he.exports=function(d){if(o(d))return d;if(n(d)){for(var s=d.length,A=[],_=0;_<s;_++){var C=d[_];"string"==typeof C?u(A,C):("number"==typeof C||"Number"===a(C)||"String"===a(C))&&u(A,l(C))}var R=A.length,x=!0;return function(f,k){if(x)return x=!1,k;if(n(this))return k;for(var w=0;w<R;w++)if(A[w]===f)return k}}}},54849:(he,y,i)=>{"use strict";var e=i(34364),n=i(981);he.exports=function(o,a){var l=o[a];return n(l)?void 0:e(l)}},27017:(he,y,i)=>{"use strict";var e=i(68844),n=i(90690),o=Math.floor,a=e("".charAt),l=e("".replace),u=e("".slice),d=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;he.exports=function(A,_,C,R,x,f){var k=C+A.length,w=R.length,g=s;return void 0!==x&&(x=n(x),g=d),l(f,g,function(M,p){var E;switch(a(p,0)){case"$":return"$";case"&":return A;case"`":return u(_,0,C);case"'":return u(_,k);case"<":E=x[u(p,1,-1)];break;default:var b=+p;if(0===b)return M;if(b>w){var I=o(b/10);return 0===I?M:I<=w?void 0===R[I-1]?a(p,1):R[I-1]+a(p,1):M}E=R[b-1]}return void 0===E?"":E})}},19037:function(he){"use strict";var y=function(i){return i&&i.Math===Math&&i};he.exports=y("object"==typeof globalThis&&globalThis)||y("object"==typeof window&&window)||y("object"==typeof self&&self)||y("object"==typeof global&&global)||y("object"==typeof this&&this)||function(){return this}()||Function("return this")()},36812:(he,y,i)=>{"use strict";var e=i(68844),n=i(90690),o=e({}.hasOwnProperty);he.exports=Object.hasOwn||function(l,u){return o(n(l),u)}},57248:he=>{"use strict";he.exports={}},20920:he=>{"use strict";he.exports=function(y,i){try{1===arguments.length?console.error(y):console.error(y,i)}catch{}}},2688:(he,y,i)=>{"use strict";var e=i(76058);he.exports=e("document","documentElement")},68506:(he,y,i)=>{"use strict";var e=i(67697),n=i(3689),o=i(36420);he.exports=!e&&!n(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},15477:he=>{"use strict";var y=Array,i=Math.abs,e=Math.pow,n=Math.floor,o=Math.log,a=Math.LN2;he.exports={pack:function(d,s,A){var g,M,p,_=y(A),C=8*A-s-1,R=(1<<C)-1,x=R>>1,f=23===s?e(2,-24)-e(2,-77):0,k=d<0||0===d&&1/d<0?1:0,w=0;for((d=i(d))!=d||d===1/0?(M=d!=d?1:0,g=R):(g=n(o(d)/a),d*(p=e(2,-g))<1&&(g--,p*=2),(d+=g+x>=1?f/p:f*e(2,1-x))*p>=2&&(g++,p/=2),g+x>=R?(M=0,g=R):g+x>=1?(M=(d*p-1)*e(2,s),g+=x):(M=d*e(2,x-1)*e(2,s),g=0));s>=8;)_[w++]=255&M,M/=256,s-=8;for(g=g<<s|M,C+=s;C>0;)_[w++]=255&g,g/=256,C-=8;return _[--w]|=128*k,_},unpack:function(d,s){var g,A=d.length,_=8*A-s-1,C=(1<<_)-1,R=C>>1,x=_-7,f=A-1,k=d[f--],w=127&k;for(k>>=7;x>0;)w=256*w+d[f--],x-=8;for(g=w&(1<<-x)-1,w>>=-x,x+=s;x>0;)g=256*g+d[f--],x-=8;if(0===w)w=1-R;else{if(w===C)return g?NaN:k?-1/0:1/0;g+=e(2,s),w-=R}return(k?-1:1)*g*e(2,w-s)}}},94413:(he,y,i)=>{"use strict";var e=i(68844),n=i(3689),o=i(6648),a=Object,l=e("".split);he.exports=n(function(){return!a("z").propertyIsEnumerable(0)})?function(u){return"String"===o(u)?l(u,""):a(u)}:a},33457:(he,y,i)=>{"use strict";var e=i(69985),n=i(48999),o=i(49385);he.exports=function(a,l,u){var d,s;return o&&e(d=l.constructor)&&d!==u&&n(s=d.prototype)&&s!==u.prototype&&o(a,s),a}},52993:(he,y,i)=>{"use strict";var e=i(68844),n=i(69985),o=i(84091),a=e(Function.toString);n(o.inspectSource)||(o.inspectSource=function(l){return a(l)}),he.exports=o.inspectSource},45375:(he,y,i)=>{"use strict";var e=i(79989),n=i(68844),o=i(57248),a=i(48999),l=i(36812),u=i(72560).f,d=i(72741),s=i(26062),A=i(27049),_=i(14630),C=i(71594),R=!1,x=_("meta"),f=0,k=function(b){u(b,x,{value:{objectID:"O"+f++,weakData:{}}})},E=he.exports={enable:function(){E.enable=function(){},R=!0;var b=d.f,I=n([].splice),L={};L[x]=1,b(L).length&&(d.f=function(D){for(var F=b(D),P=0,O=F.length;P<O;P++)if(F[P]===x){I(F,P,1);break}return F},e({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:s.f}))},fastKey:function(b,I){if(!a(b))return"symbol"==typeof b?b:("string"==typeof b?"S":"P")+b;if(!l(b,x)){if(!A(b))return"F";if(!I)return"E";k(b)}return b[x].objectID},getWeakData:function(b,I){if(!l(b,x)){if(!A(b))return!0;if(!I)return!1;k(b)}return b[x].weakData},onFreeze:function(b){return C&&R&&A(b)&&!l(b,x)&&k(b),b}};o[x]=!0},618:(he,y,i)=>{"use strict";var R,x,f,e=i(1009),n=i(19037),o=i(48999),a=i(75773),l=i(36812),u=i(84091),d=i(2713),s=i(57248),A="Object already initialized",_=n.TypeError;if(e||u.state){var g=u.state||(u.state=new(0,n.WeakMap));g.get=g.get,g.has=g.has,g.set=g.set,R=function(p,E){if(g.has(p))throw new _(A);return E.facade=p,g.set(p,E),E},x=function(p){return g.get(p)||{}},f=function(p){return g.has(p)}}else{var M=d("state");s[M]=!0,R=function(p,E){if(l(p,M))throw new _(A);return E.facade=p,a(p,M,E),E},x=function(p){return l(p,M)?p[M]:{}},f=function(p){return l(p,M)}}he.exports={set:R,get:x,has:f,enforce:function(p){return f(p)?x(p):R(p,{})},getterFor:function(p){return function(E){var b;if(!o(E)||(b=x(E)).type!==p)throw new _("Incompatible receiver, "+p+" required");return b}}}},93292:(he,y,i)=>{"use strict";var e=i(44201),n=i(9478),o=e("iterator"),a=Array.prototype;he.exports=function(l){return void 0!==l&&(n.Array===l||a[o]===l)}},92297:(he,y,i)=>{"use strict";var e=i(6648);he.exports=Array.isArray||function(o){return"Array"===e(o)}},9401:(he,y,i)=>{"use strict";var e=i(50926);he.exports=function(n){var o=e(n);return"BigInt64Array"===o||"BigUint64Array"===o}},69985:he=>{"use strict";var y="object"==typeof document&&document.all;he.exports=typeof y>"u"&&void 0!==y?function(i){return"function"==typeof i||i===y}:function(i){return"function"==typeof i}},19429:(he,y,i)=>{"use strict";var e=i(68844),n=i(3689),o=i(69985),a=i(50926),l=i(76058),u=i(52993),d=function(){},s=l("Reflect","construct"),A=/^\s*(?:class|function)\b/,_=e(A.exec),C=!A.test(d),R=function(k){if(!o(k))return!1;try{return s(d,[],k),!0}catch{return!1}},x=function(k){if(!o(k))return!1;switch(a(k)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return C||!!_(A,u(k))}catch{return!0}};x.sham=!0,he.exports=!s||n(function(){var f;return R(R.call)||!R(Object)||!R(function(){f=!0})||f})?x:R},76251:(he,y,i)=>{"use strict";var e=i(36812);he.exports=function(n){return void 0!==n&&(e(n,"value")||e(n,"writable"))}},35266:(he,y,i)=>{"use strict";var e=i(3689),n=i(69985),o=/#|\.prototype\./,a=function(A,_){var C=u[l(A)];return C===s||C!==d&&(n(_)?e(_):!!_)},l=a.normalize=function(A){return String(A).replace(o,".").toLowerCase()},u=a.data={},d=a.NATIVE="N",s=a.POLYFILL="P";he.exports=a},71973:(he,y,i)=>{"use strict";var e=i(48999),n=Math.floor;he.exports=Number.isInteger||function(a){return!e(a)&&isFinite(a)&&n(a)===a}},981:he=>{"use strict";he.exports=function(y){return null==y}},48999:(he,y,i)=>{"use strict";var e=i(69985);he.exports=function(n){return"object"==typeof n?null!==n:e(n)}},60598:(he,y,i)=>{"use strict";var e=i(48999);he.exports=function(n){return e(n)||null===n}},53931:he=>{"use strict";he.exports=!1},91245:(he,y,i)=>{"use strict";var e=i(48999),n=i(6648),a=i(44201)("match");he.exports=function(l){var u;return e(l)&&(void 0!==(u=l[a])?!!u:"RegExp"===n(l))}},30734:(he,y,i)=>{"use strict";var e=i(76058),n=i(69985),o=i(23622),a=i(39525),l=Object;he.exports=a?function(u){return"symbol"==typeof u}:function(u){var d=e("Symbol");return n(d)&&o(d.prototype,l(u))}},18734:(he,y,i)=>{"use strict";var e=i(54071),n=i(22615),o=i(85027),a=i(23691),l=i(93292),u=i(6310),d=i(23622),s=i(5185),A=i(91664),_=i(72125),C=TypeError,R=function(f,k){this.stopped=f,this.result=k},x=R.prototype;he.exports=function(f,k,w){var L,D,F,P,O,U,V,M=!(!w||!w.AS_ENTRIES),p=!(!w||!w.IS_RECORD),E=!(!w||!w.IS_ITERATOR),b=!(!w||!w.INTERRUPTED),I=e(k,w&&w.that),K=function(me){return L&&_(L,"normal",me),new R(!0,me)},X=function(me){return M?(o(me),b?I(me[0],me[1],K):I(me[0],me[1])):b?I(me,K):I(me)};if(p)L=f.iterator;else if(E)L=f;else{if(!(D=A(f)))throw new C(a(f)+" is not iterable");if(l(D)){for(F=0,P=u(f);P>F;F++)if((O=X(f[F]))&&d(x,O))return O;return new R(!1)}L=s(f,D)}for(U=p?f.next:L.next;!(V=n(U,L)).done;){try{O=X(V.value)}catch(me){_(L,"throw",me)}if("object"==typeof O&&O&&d(x,O))return O}return new R(!1)}},72125:(he,y,i)=>{"use strict";var e=i(22615),n=i(85027),o=i(54849);he.exports=function(a,l,u){var d,s;n(a);try{if(!(d=o(a,"return"))){if("throw"===l)throw u;return u}d=e(d,a)}catch(A){s=!0,d=A}if("throw"===l)throw u;if(s)throw d;return n(d),u}},30974:(he,y,i)=>{"use strict";var e=i(12013).IteratorPrototype,n=i(25391),o=i(75684),a=i(55997),l=i(9478),u=function(){return this};he.exports=function(d,s,A,_){var C=s+" Iterator";return d.prototype=n(e,{next:o(+!_,A)}),a(d,C,!1,!0),l[C]=u,d}},91934:(he,y,i)=>{"use strict";var e=i(79989),n=i(22615),o=i(53931),a=i(41236),l=i(69985),u=i(30974),d=i(61868),s=i(49385),A=i(55997),_=i(75773),C=i(11880),R=i(44201),x=i(9478),f=i(12013),k=a.PROPER,w=a.CONFIGURABLE,g=f.IteratorPrototype,M=f.BUGGY_SAFARI_ITERATORS,p=R("iterator"),E="keys",b="values",I="entries",L=function(){return this};he.exports=function(D,F,P,O,U,V,K){u(P,F,O);var j,H,z,X=function(q){if(q===U&&de)return de;if(!M&&q&&q in Q)return Q[q];switch(q){case E:case b:case I:return function(){return new P(this,q)}}return function(){return new P(this)}},me=F+" Iterator",J=!1,Q=D.prototype,re=Q[p]||Q["@@iterator"]||U&&Q[U],de=!M&&re||X(U),te="Array"===F&&Q.entries||re;if(te&&(j=d(te.call(new D)))!==Object.prototype&&j.next&&(!o&&d(j)!==g&&(s?s(j,g):l(j[p])||C(j,p,L)),A(j,me,!0,!0),o&&(x[me]=L)),k&&U===b&&re&&re.name!==b&&(!o&&w?_(Q,"name",b):(J=!0,de=function(){return n(re,this)})),U)if(H={values:X(b),keys:V?de:X(E),entries:X(I)},K)for(z in H)(M||J||!(z in Q))&&C(Q,z,H[z]);else e({target:F,proto:!0,forced:M||J},H);return(!o||K)&&Q[p]!==de&&C(Q,p,de,{name:U}),x[F]=de,H}},12013:(he,y,i)=>{"use strict";var C,R,x,e=i(3689),n=i(69985),o=i(48999),a=i(25391),l=i(61868),u=i(11880),d=i(44201),s=i(53931),A=d("iterator"),_=!1;[].keys&&("next"in(x=[].keys())?(R=l(l(x)))!==Object.prototype&&(C=R):_=!0),!o(C)||e(function(){var k={};return C[A].call(k)!==k})?C={}:s&&(C=a(C)),n(C[A])||u(C,A,function(){return this}),he.exports={IteratorPrototype:C,BUGGY_SAFARI_ITERATORS:_}},9478:he=>{"use strict";he.exports={}},6310:(he,y,i)=>{"use strict";var e=i(43126);he.exports=function(n){return e(n.length)}},98702:(he,y,i)=>{"use strict";var e=i(68844),n=i(3689),o=i(69985),a=i(36812),l=i(67697),u=i(41236).CONFIGURABLE,d=i(52993),s=i(618),A=s.enforce,_=s.get,C=String,R=Object.defineProperty,x=e("".slice),f=e("".replace),k=e([].join),w=l&&!n(function(){return 8!==R(function(){},"length",{value:8}).length}),g=String(String).split("String"),M=he.exports=function(p,E,b){"Symbol("===x(C(E),0,7)&&(E="["+f(C(E),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),b&&b.getter&&(E="get "+E),b&&b.setter&&(E="set "+E),(!a(p,"name")||u&&p.name!==E)&&(l?R(p,"name",{value:E,configurable:!0}):p.name=E),w&&b&&a(b,"arity")&&p.length!==b.arity&&R(p,"length",{value:b.arity});try{b&&a(b,"constructor")&&b.constructor?l&&R(p,"prototype",{writable:!1}):p.prototype&&(p.prototype=void 0)}catch{}var I=A(p);return a(I,"source")||(I.source=k(g,"string"==typeof E?E:"")),p};Function.prototype.toString=M(function(){return o(this)&&_(this).source||d(this)},"toString")},40134:(he,y,i)=>{"use strict";var e=i(55680),n=Math.abs,o=2220446049250313e-31,a=1/o;he.exports=function(u,d,s,A){var _=+u,C=n(_),R=e(_);if(C<A)return R*function(u){return u+a-a}(C/A/d)*A*d;var x=(1+d/o)*C,f=x-(x-C);return f>s||f!=f?R*(1/0):R*f}},37788:(he,y,i)=>{"use strict";var e=i(40134);he.exports=Math.fround||function(u){return e(u,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},55680:he=>{"use strict";he.exports=Math.sign||function(i){var e=+i;return 0===e||e!=e?e:e<0?-1:1}},58828:he=>{"use strict";var y=Math.ceil,i=Math.floor;he.exports=Math.trunc||function(n){var o=+n;return(o>0?i:y)(o)}},80231:(he,y,i)=>{"use strict";var k,w,g,M,p,e=i(19037),n=i(70517),o=i(54071),a=i(99886).set,l=i(34410),u=i(4764),d=i(63221),s=i(27486),A=i(50806),_=e.MutationObserver||e.WebKitMutationObserver,C=e.document,R=e.process,x=e.Promise,f=n("queueMicrotask");if(!f){var E=new l,b=function(){var I,L;for(A&&(I=R.domain)&&I.exit();L=E.get();)try{L()}catch(D){throw E.head&&k(),D}I&&I.enter()};u||A||s||!_||!C?!d&&x&&x.resolve?((M=x.resolve(void 0)).constructor=x,p=o(M.then,M),k=function(){p(b)}):A?k=function(){R.nextTick(b)}:(a=o(a,e),k=function(){a(b)}):(w=!0,g=C.createTextNode(""),new _(b).observe(g,{characterData:!0}),k=function(){g.data=w=!w}),f=function(I){E.head||k(),E.add(I)}}he.exports=f},48742:(he,y,i)=>{"use strict";var e=i(34364),n=TypeError,o=function(a){var l,u;this.promise=new a(function(d,s){if(void 0!==l||void 0!==u)throw new n("Bad Promise constructor");l=d,u=s}),this.resolve=e(l),this.reject=e(u)};he.exports.f=function(a){return new o(a)}},42124:(he,y,i)=>{"use strict";var e=i(91245),n=TypeError;he.exports=function(o){if(e(o))throw new n("The method doesn't accept regular expressions");return o}},70046:(he,y,i)=>{"use strict";var n=i(19037).isFinite;he.exports=Number.isFinite||function(a){return"number"==typeof a&&n(a)}},14818:(he,y,i)=>{"use strict";var e=i(19037),n=i(3689),o=i(68844),a=i(34327),l=i(61435).trim,u=i(86350),d=o("".charAt),s=e.parseFloat,A=e.Symbol,_=A&&A.iterator,C=1/s(u+"-0")!=-1/0||_&&!n(function(){s(Object(_))});he.exports=C?function(x){var f=l(a(x)),k=s(f);return 0===k&&"-"===d(f,0)?-0:k}:s},67897:(he,y,i)=>{"use strict";var e=i(19037),n=i(3689),o=i(68844),a=i(34327),l=i(61435).trim,u=i(86350),d=e.parseInt,s=e.Symbol,A=s&&s.iterator,_=/^[+-]?0x/i,C=o(_.exec),R=8!==d(u+"08")||22!==d(u+"0x16")||A&&!n(function(){d(Object(A))});he.exports=R?function(f,k){var w=l(a(f));return d(w,k>>>0||(C(_,w)?16:10))}:d},45394:(he,y,i)=>{"use strict";var e=i(67697),n=i(68844),o=i(22615),a=i(3689),l=i(20300),u=i(7518),d=i(49556),s=i(90690),A=i(94413),_=Object.assign,C=Object.defineProperty,R=n([].concat);he.exports=!_||a(function(){if(e&&1!==_({b:1},_(C({},"a",{enumerable:!0,get:function(){C(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var x={},f={},k=Symbol("assign detection"),w="abcdefghijklmnopqrst";return x[k]=7,w.split("").forEach(function(g){f[g]=g}),7!==_({},x)[k]||l(_({},f)).join("")!==w})?function(f,k){for(var w=s(f),g=arguments.length,M=1,p=u.f,E=d.f;g>M;)for(var F,b=A(arguments[M++]),I=p?R(l(b),p(b)):l(b),L=I.length,D=0;L>D;)F=I[D++],(!e||o(E,b,F))&&(w[F]=b[F]);return w}:_},25391:(he,y,i)=>{"use strict";var g,e=i(85027),n=i(98920),o=i(72739),a=i(57248),l=i(2688),u=i(36420),d=i(2713),_="prototype",C="script",R=d("IE_PROTO"),x=function(){},f=function(p){return"<"+C+">"+p+"</"+C+">"},k=function(p){p.write(f("")),p.close();var E=p.parentWindow.Object;return p=null,E},M=function(){try{g=new ActiveXObject("htmlfile")}catch{}M=typeof document<"u"?document.domain&&g?k(g):function(){var b,p=u("iframe"),E="java"+C+":";return p.style.display="none",l.appendChild(p),p.src=String(E),(b=p.contentWindow.document).open(),b.write(f("document.F=Object")),b.close(),b.F}():k(g);for(var p=o.length;p--;)delete M[_][o[p]];return M()};a[R]=!0,he.exports=Object.create||function(E,b){var I;return null!==E?(x[_]=e(E),I=new x,x[_]=null,I[R]=E):I=M(),void 0===b?I:n.f(I,b)}},98920:(he,y,i)=>{"use strict";var e=i(67697),n=i(15648),o=i(72560),a=i(85027),l=i(65290),u=i(20300);y.f=e&&!n?Object.defineProperties:function(s,A){a(s);for(var f,_=l(A),C=u(A),R=C.length,x=0;R>x;)o.f(s,f=C[x++],_[f]);return s}},72560:(he,y,i)=>{"use strict";var e=i(67697),n=i(68506),o=i(15648),a=i(85027),l=i(18360),u=TypeError,d=Object.defineProperty,s=Object.getOwnPropertyDescriptor,A="enumerable",_="configurable",C="writable";y.f=e?o?function(x,f,k){if(a(x),f=l(f),a(k),"function"==typeof x&&"prototype"===f&&"value"in k&&C in k&&!k[C]){var w=s(x,f);w&&w[C]&&(x[f]=k.value,k={configurable:_ in k?k[_]:w[_],enumerable:A in k?k[A]:w[A],writable:!1})}return d(x,f,k)}:d:function(x,f,k){if(a(x),f=l(f),a(k),n)try{return d(x,f,k)}catch{}if("get"in k||"set"in k)throw new u("Accessors not supported");return"value"in k&&(x[f]=k.value),x}},82474:(he,y,i)=>{"use strict";var e=i(67697),n=i(22615),o=i(49556),a=i(75684),l=i(65290),u=i(18360),d=i(36812),s=i(68506),A=Object.getOwnPropertyDescriptor;y.f=e?A:function(C,R){if(C=l(C),R=u(R),s)try{return A(C,R)}catch{}if(d(C,R))return a(!n(o.f,C,R),C[R])}},26062:(he,y,i)=>{"use strict";var e=i(6648),n=i(65290),o=i(72741).f,a=i(96004),l="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];he.exports.f=function(s){return l&&"Window"===e(s)?function(d){try{return o(d)}catch{return a(l)}}(s):o(n(s))}},72741:(he,y,i)=>{"use strict";var e=i(54948),o=i(72739).concat("length","prototype");y.f=Object.getOwnPropertyNames||function(l){return e(l,o)}},7518:(he,y)=>{"use strict";y.f=Object.getOwnPropertySymbols},61868:(he,y,i)=>{"use strict";var e=i(36812),n=i(69985),o=i(90690),a=i(2713),l=i(81748),u=a("IE_PROTO"),d=Object,s=d.prototype;he.exports=l?d.getPrototypeOf:function(A){var _=o(A);if(e(_,u))return _[u];var C=_.constructor;return n(C)&&_ instanceof C?C.prototype:_ instanceof d?s:null}},27049:(he,y,i)=>{"use strict";var e=i(3689),n=i(48999),o=i(6648),a=i(11655),l=Object.isExtensible,u=e(function(){l(1)});he.exports=u||a?function(s){return!(!n(s)||a&&"ArrayBuffer"===o(s))&&(!l||l(s))}:l},23622:(he,y,i)=>{"use strict";var e=i(68844);he.exports=e({}.isPrototypeOf)},54948:(he,y,i)=>{"use strict";var e=i(68844),n=i(36812),o=i(65290),a=i(84328).indexOf,l=i(57248),u=e([].push);he.exports=function(d,s){var R,A=o(d),_=0,C=[];for(R in A)!n(l,R)&&n(A,R)&&u(C,R);for(;s.length>_;)n(A,R=s[_++])&&(~a(C,R)||u(C,R));return C}},20300:(he,y,i)=>{"use strict";var e=i(54948),n=i(72739);he.exports=Object.keys||function(a){return e(a,n)}},49556:(he,y)=>{"use strict";var i={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!i.call({1:2},1);y.f=n?function(a){var l=e(this,a);return!!l&&l.enumerable}:i},90600:(he,y,i)=>{"use strict";var e=i(53931),n=i(19037),o=i(3689),a=i(27922);he.exports=e||!o(function(){if(!(a&&a<535)){var l=Math.random();__defineSetter__.call(null,l,function(){}),delete n[l]}})},49385:(he,y,i)=>{"use strict";var e=i(52743),n=i(48999),o=i(74684),a=i(23550);he.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var d,l=!1,u={};try{(d=e(Object.prototype,"__proto__","set"))(u,[]),l=u instanceof Array}catch{}return function(A,_){return o(A),a(_),n(A)&&(l?d(A,_):A.__proto__=_),A}}():void 0)},49419:(he,y,i)=>{"use strict";var e=i(67697),n=i(3689),o=i(68844),a=i(61868),l=i(20300),u=i(65290),s=o(i(49556).f),A=o([].push),_=e&&n(function(){var R=Object.create(null);return R[2]=2,!s(R,2)}),C=function(R){return function(x){for(var E,f=u(x),k=l(f),w=_&&null===a(f),g=k.length,M=0,p=[];g>M;)E=k[M++],(!e||(w?E in f:s(f,E)))&&A(p,R?[E,f[E]]:f[E]);return p}};he.exports={entries:C(!0),values:C(!1)}},65073:(he,y,i)=>{"use strict";var e=i(23043),n=i(50926);he.exports=e?{}.toString:function(){return"[object "+n(this)+"]"}},35899:(he,y,i)=>{"use strict";var e=i(22615),n=i(69985),o=i(48999),a=TypeError;he.exports=function(l,u){var d,s;if("string"===u&&n(d=l.toString)&&!o(s=e(d,l))||n(d=l.valueOf)&&!o(s=e(d,l))||"string"!==u&&n(d=l.toString)&&!o(s=e(d,l)))return s;throw new a("Can't convert object to primitive value")}},19152:(he,y,i)=>{"use strict";var e=i(76058),n=i(68844),o=i(72741),a=i(7518),l=i(85027),u=n([].concat);he.exports=e("Reflect","ownKeys")||function(s){var A=o.f(l(s)),_=a.f;return _?u(A,_(s)):A}},50496:(he,y,i)=>{"use strict";var e=i(19037);he.exports=e},9302:he=>{"use strict";he.exports=function(y){try{return{error:!1,value:y()}}catch(i){return{error:!0,value:i}}}},87073:(he,y,i)=>{"use strict";var e=i(19037),n=i(17919),o=i(69985),a=i(35266),l=i(52993),u=i(44201),d=i(72532),s=i(88563),A=i(53931),_=i(3615),C=n&&n.prototype,R=u("species"),x=!1,f=o(e.PromiseRejectionEvent),k=a("Promise",function(){var w=l(n),g=w!==String(n);if(!g&&66===_||A&&(!C.catch||!C.finally))return!0;if(!_||_<51||!/native code/.test(w)){var M=new n(function(b){b(1)}),p=function(b){b(function(){},function(){})};if((M.constructor={})[R]=p,!(x=M.then(function(){})instanceof p))return!0}return!g&&(d||s)&&!f});he.exports={CONSTRUCTOR:k,REJECTION_EVENT:f,SUBCLASSING:x}},17919:(he,y,i)=>{"use strict";var e=i(19037);he.exports=e.Promise},72945:(he,y,i)=>{"use strict";var e=i(85027),n=i(48999),o=i(48742);he.exports=function(a,l){if(e(a),n(l)&&l.constructor===a)return l;var u=o.f(a);return(0,u.resolve)(l),u.promise}},562:(he,y,i)=>{"use strict";var e=i(17919),n=i(86431),o=i(87073).CONSTRUCTOR;he.exports=o||!n(function(a){e.all(a).then(void 0,function(){})})},38055:(he,y,i)=>{"use strict";var e=i(72560).f;he.exports=function(n,o,a){a in n||e(n,a,{configurable:!0,get:function(){return o[a]},set:function(l){o[a]=l}})}},34410:he=>{"use strict";var y=function(){this.head=null,this.tail=null};y.prototype={add:function(i){var e={item:i,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var i=this.head;if(i)return null===(this.head=i.next)&&(this.tail=null),i.item}},he.exports=y},66100:(he,y,i)=>{"use strict";var e=i(22615),n=i(85027),o=i(69985),a=i(6648),l=i(56308),u=TypeError;he.exports=function(d,s){var A=d.exec;if(o(A)){var _=e(A,d,s);return null!==_&&n(_),_}if("RegExp"===a(d))return e(l,d,s);throw new u("RegExp#exec called on incompatible receiver")}},56308:(he,y,i)=>{"use strict";var I,L,e=i(22615),n=i(68844),o=i(34327),a=i(69633),l=i(87901),u=i(83430),d=i(25391),s=i(618).get,A=i(62100),_=i(26738),C=u("native-string-replace",String.prototype.replace),R=RegExp.prototype.exec,x=R,f=n("".charAt),k=n("".indexOf),w=n("".replace),g=n("".slice),M=(L=/b*/g,e(R,I=/a/,"a"),e(R,L,"a"),0!==I.lastIndex||0!==L.lastIndex),p=l.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];(M||E||p||A||_)&&(x=function(L){var U,V,K,X,me,J,Q,D=this,F=s(D),P=o(L),O=F.raw;if(O)return O.lastIndex=D.lastIndex,U=e(x,O,P),D.lastIndex=O.lastIndex,U;var re=F.groups,de=p&&D.sticky,te=e(a,D),j=D.source,H=0,z=P;if(de&&(te=w(te,"y",""),-1===k(te,"g")&&(te+="g"),z=g(P,D.lastIndex),D.lastIndex>0&&(!D.multiline||D.multiline&&"\n"!==f(P,D.lastIndex-1))&&(j="(?: "+j+")",z=" "+z,H++),V=new RegExp("^(?:"+j+")",te)),E&&(V=new RegExp("^"+j+"$(?!\\s)",te)),M&&(K=D.lastIndex),X=e(R,de?V:D,z),de?X?(X.input=g(X.input,H),X[0]=g(X[0],H),X.index=D.lastIndex,D.lastIndex+=X[0].length):D.lastIndex=0:M&&X&&(D.lastIndex=D.global?X.index+X[0].length:K),E&&X&&X.length>1&&e(C,X[0],V,function(){for(me=1;me<arguments.length-2;me++)void 0===arguments[me]&&(X[me]=void 0)}),X&&re)for(X.groups=J=d(null),me=0;me<re.length;me++)J[(Q=re[me])[0]]=X[Q[1]];return X}),he.exports=x},69633:(he,y,i)=>{"use strict";var e=i(85027);he.exports=function(){var n=e(this),o="";return n.hasIndices&&(o+="d"),n.global&&(o+="g"),n.ignoreCase&&(o+="i"),n.multiline&&(o+="m"),n.dotAll&&(o+="s"),n.unicode&&(o+="u"),n.unicodeSets&&(o+="v"),n.sticky&&(o+="y"),o}},63477:(he,y,i)=>{"use strict";var e=i(22615),n=i(36812),o=i(23622),a=i(69633),l=RegExp.prototype;he.exports=function(u){var d=u.flags;return void 0!==d||"flags"in l||n(u,"flags")||!o(l,u)?d:e(a,u)}},87901:(he,y,i)=>{"use strict";var e=i(3689),o=i(19037).RegExp,a=e(function(){var d=o("a","y");return d.lastIndex=2,null!==d.exec("abcd")}),l=a||e(function(){return!o("a","y").sticky}),u=a||e(function(){var d=o("^r","gy");return d.lastIndex=2,null!==d.exec("str")});he.exports={BROKEN_CARET:u,MISSED_STICKY:l,UNSUPPORTED_Y:a}},62100:(he,y,i)=>{"use strict";var e=i(3689),o=i(19037).RegExp;he.exports=e(function(){var a=o(".","s");return!(a.dotAll&&a.test("\n")&&"s"===a.flags)})},26738:(he,y,i)=>{"use strict";var e=i(3689),o=i(19037).RegExp;he.exports=e(function(){var a=o("(?<a>b)","g");return"b"!==a.exec("b").groups.a||"bc"!=="b".replace(a,"$<a>c")})},74684:(he,y,i)=>{"use strict";var e=i(981),n=TypeError;he.exports=function(o){if(e(o))throw new n("Can't call method on "+o);return o}},70517:(he,y,i)=>{"use strict";var e=i(19037),n=i(67697),o=Object.getOwnPropertyDescriptor;he.exports=function(a){if(!n)return e[a];var l=o(e,a);return l&&l.value}},70953:he=>{"use strict";he.exports=Object.is||function(i,e){return i===e?0!==i||1/i==1/e:i!=i&&e!=e}},8552:(he,y,i)=>{"use strict";var _,e=i(19037),n=i(61735),o=i(69985),a=i(83127),l=i(30071),u=i(96004),d=i(21500),s=e.Function,A=/MSIE .\./.test(l)||a&&((_=e.Bun.version.split(".")).length<3||"0"===_[0]&&(_[1]<3||"3"===_[1]&&"0"===_[2]));he.exports=function(_,C){var R=C?2:1;return A?function(x,f){var k=d(arguments.length,1)>R,w=o(x)?x:s(x),g=k?u(arguments,R):[],M=k?function(){n(w,this,g)}:w;return C?_(M,f):_(M)}:_}},14241:(he,y,i)=>{"use strict";var e=i(76058),n=i(62148),o=i(44201),a=i(67697),l=o("species");he.exports=function(u){var d=e(u);a&&d&&!d[l]&&n(d,l,{configurable:!0,get:function(){return this}})}},55997:(he,y,i)=>{"use strict";var e=i(72560).f,n=i(36812),a=i(44201)("toStringTag");he.exports=function(l,u,d){l&&!d&&(l=l.prototype),l&&!n(l,a)&&e(l,a,{configurable:!0,value:u})}},2713:(he,y,i)=>{"use strict";var e=i(83430),n=i(14630),o=e("keys");he.exports=function(a){return o[a]||(o[a]=n(a))}},84091:(he,y,i)=>{"use strict";var e=i(53931),n=i(19037),o=i(95014),a="__core-js_shared__",l=he.exports=n[a]||o(a,{});(l.versions||(l.versions=[])).push({version:"3.37.1",mode:e?"pure":"global",copyright:"\xa9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},83430:(he,y,i)=>{"use strict";var e=i(84091);he.exports=function(n,o){return e[n]||(e[n]=o||{})}},76373:(he,y,i)=>{"use strict";var e=i(85027),n=i(52655),o=i(981),l=i(44201)("species");he.exports=function(u,d){var A,s=e(u).constructor;return void 0===s||o(A=e(s)[l])?d:n(A)}},10730:(he,y,i)=>{"use strict";var e=i(68844),n=i(68700),o=i(34327),a=i(74684),l=e("".charAt),u=e("".charCodeAt),d=e("".slice),s=function(A){return function(_,C){var k,w,R=o(a(_)),x=n(C),f=R.length;return x<0||x>=f?A?"":void 0:(k=u(R,x))<55296||k>56319||x+1===f||(w=u(R,x+1))<56320||w>57343?A?l(R,x):k:A?d(R,x,x+2):w-56320+(k-55296<<10)+65536}};he.exports={codeAt:s(!1),charAt:s(!0)}},35947:(he,y,i)=>{"use strict";var e=i(30071);he.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},77254:(he,y,i)=>{"use strict";var e=i(68844),n=i(43126),o=i(34327),a=i(90534),l=i(74684),u=e(a),d=e("".slice),s=Math.ceil,A=function(_){return function(C,R,x){var M,p,f=o(l(C)),k=n(R),w=f.length,g=void 0===x?" ":o(x);return k<=w||""===g?f:((p=u(g,s((M=k-w)/g.length))).length>M&&(p=d(p,0,M)),_?f+p:p+f)}};he.exports={start:A(!1),end:A(!0)}},6430:(he,y,i)=>{"use strict";var e=i(68844),n=2147483647,C=/[^\0-\u007E]/,R=/[.\u3002\uFF0E\uFF61]/g,x="Overflow: input needs wider integers to process",k=RangeError,w=e(R.exec),g=Math.floor,M=String.fromCharCode,p=e("".charCodeAt),E=e([].join),b=e([].push),I=e("".replace),L=e("".split),D=e("".toLowerCase),P=function(V){return V+22+75*(V<26)},O=function(V,K,X){var me=0;for(V=X?g(V/700):V>>1,V+=g(V/K);V>455;)V=g(V/35),me+=36;return g(me+36*V/(V+38))},U=function(V){var K=[];V=function(V){for(var K=[],X=0,me=V.length;X<me;){var J=p(V,X++);if(J>=55296&&J<=56319&&X<me){var Q=p(V,X++);56320==(64512&Q)?b(K,((1023&J)<<10)+(1023&Q)+65536):(b(K,J),X--)}else b(K,J)}return K}(V);var re,de,X=V.length,me=128,J=0,Q=72;for(re=0;re<V.length;re++)(de=V[re])<128&&b(K,M(de));var te=K.length,j=te;for(te&&b(K,"-");j<X;){var H=n;for(re=0;re<V.length;re++)(de=V[re])>=me&&de<H&&(H=de);var z=j+1;if(H-me>g((n-J)/z))throw new k(x);for(J+=(H-me)*z,me=H,re=0;re<V.length;re++){if((de=V[re])<me&&++J>n)throw new k(x);if(de===me){for(var q=J,se=36;;){var ne=se<=Q?1:se>=Q+26?26:se-Q;if(q<ne)break;var _e=q-ne,ge=36-ne;b(K,M(P(ne+_e%ge))),q=g(_e/ge),se+=36}b(K,M(P(q))),Q=O(J,z,j===te),J=0,j++}}J++,me++}return E(K,"")};he.exports=function(V){var me,J,K=[],X=L(I(D(V),R,"."),".");for(me=0;me<X.length;me++)b(K,w(C,J=X[me])?"xn--"+U(J):J);return E(K,".")}},90534:(he,y,i)=>{"use strict";var e=i(68700),n=i(34327),o=i(74684),a=RangeError;he.exports=function(u){var d=n(o(this)),s="",A=e(u);if(A<0||A===1/0)throw new a("Wrong number of repetitions");for(;A>0;(A>>>=1)&&(d+=d))1&A&&(s+=d);return s}},75984:(he,y,i)=>{"use strict";var e=i(41236).PROPER,n=i(3689),o=i(86350);he.exports=function(l){return n(function(){return!!o[l]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[l]()||e&&o[l].name!==l})}},61435:(he,y,i)=>{"use strict";var e=i(68844),n=i(74684),o=i(34327),a=i(86350),l=e("".replace),u=RegExp("^["+a+"]+"),d=RegExp("(^|[^"+a+"])["+a+"]+$"),s=function(A){return function(_){var C=o(n(_));return 1&A&&(C=l(C,u,"")),2&A&&(C=l(C,d,"$1")),C}};he.exports={start:s(1),end:s(2),trim:s(3)}},50146:(he,y,i)=>{"use strict";var e=i(3615),n=i(3689),a=i(19037).String;he.exports=!!Object.getOwnPropertySymbols&&!n(function(){var l=Symbol("symbol detection");return!a(l)||!(Object(l)instanceof Symbol)||!Symbol.sham&&e&&e<41})},13032:(he,y,i)=>{"use strict";var e=i(22615),n=i(76058),o=i(44201),a=i(11880);he.exports=function(){var l=n("Symbol"),u=l&&l.prototype,d=u&&u.valueOf,s=o("toPrimitive");u&&!u[s]&&a(u,s,function(A){return e(d,this)},{arity:1})}},46549:(he,y,i)=>{"use strict";var e=i(50146);he.exports=e&&!!Symbol.for&&!!Symbol.keyFor},99886:(he,y,i)=>{"use strict";var L,D,F,P,e=i(19037),n=i(61735),o=i(54071),a=i(69985),l=i(36812),u=i(3689),d=i(2688),s=i(96004),A=i(36420),_=i(21500),C=i(4764),R=i(50806),x=e.setImmediate,f=e.clearImmediate,k=e.process,w=e.Dispatch,g=e.Function,M=e.MessageChannel,p=e.String,E=0,b={},I="onreadystatechange";u(function(){L=e.location});var O=function(X){if(l(b,X)){var me=b[X];delete b[X],me()}},U=function(X){return function(){O(X)}},V=function(X){O(X.data)},K=function(X){e.postMessage(p(X),L.protocol+"//"+L.host)};(!x||!f)&&(x=function(me){_(arguments.length,1);var J=a(me)?me:g(me),Q=s(arguments,1);return b[++E]=function(){n(J,void 0,Q)},D(E),E},f=function(me){delete b[me]},R?D=function(X){k.nextTick(U(X))}:w&&w.now?D=function(X){w.now(U(X))}:M&&!C?(P=(F=new M).port2,F.port1.onmessage=V,D=o(P.postMessage,P)):e.addEventListener&&a(e.postMessage)&&!e.importScripts&&L&&"file:"!==L.protocol&&!u(K)?(D=K,e.addEventListener("message",V,!1)):D=I in A("script")?function(X){d.appendChild(A("script"))[I]=function(){d.removeChild(this),O(X)}}:function(X){setTimeout(U(X),0)}),he.exports={set:x,clear:f}},23648:(he,y,i)=>{"use strict";var e=i(68844);he.exports=e(1..valueOf)},27578:(he,y,i)=>{"use strict";var e=i(68700),n=Math.max,o=Math.min;he.exports=function(a,l){var u=e(a);return u<0?n(u+l,0):o(u,l)}},71530:(he,y,i)=>{"use strict";var e=i(88732),n=TypeError;he.exports=function(o){var a=e(o,"number");if("number"==typeof a)throw new n("Can't convert number to bigint");return BigInt(a)}},19842:(he,y,i)=>{"use strict";var e=i(68700),n=i(43126),o=RangeError;he.exports=function(a){if(void 0===a)return 0;var l=e(a),u=n(l);if(l!==u)throw new o("Wrong length or index");return u}},65290:(he,y,i)=>{"use strict";var e=i(94413),n=i(74684);he.exports=function(o){return e(n(o))}},68700:(he,y,i)=>{"use strict";var e=i(58828);he.exports=function(n){var o=+n;return o!=o||0===o?0:e(o)}},43126:(he,y,i)=>{"use strict";var e=i(68700),n=Math.min;he.exports=function(o){var a=e(o);return a>0?n(a,9007199254740991):0}},90690:(he,y,i)=>{"use strict";var e=i(74684),n=Object;he.exports=function(o){return n(e(o))}},83250:(he,y,i)=>{"use strict";var e=i(15904),n=RangeError;he.exports=function(o,a){var l=e(o);if(l%a)throw new n("Wrong offset");return l}},15904:(he,y,i)=>{"use strict";var e=i(68700),n=RangeError;he.exports=function(o){var a=e(o);if(a<0)throw new n("The argument can't be less than 0");return a}},88732:(he,y,i)=>{"use strict";var e=i(22615),n=i(48999),o=i(30734),a=i(54849),l=i(35899),u=i(44201),d=TypeError,s=u("toPrimitive");he.exports=function(A,_){if(!n(A)||o(A))return A;var R,C=a(A,s);if(C){if(void 0===_&&(_="default"),R=e(C,A,_),!n(R)||o(R))return R;throw new d("Can't convert object to primitive value")}return void 0===_&&(_="number"),l(A,_)}},18360:(he,y,i)=>{"use strict";var e=i(88732),n=i(30734);he.exports=function(o){var a=e(o,"string");return n(a)?a:a+""}},23043:(he,y,i)=>{"use strict";var o={};o[i(44201)("toStringTag")]="z",he.exports="[object z]"===String(o)},34327:(he,y,i)=>{"use strict";var e=i(50926),n=String;he.exports=function(o){if("Symbol"===e(o))throw new TypeError("Cannot convert a Symbol value to a string");return n(o)}},87191:he=>{"use strict";var y=Math.round;he.exports=function(i){var e=y(i);return e<0?0:e>255?255:255&e}},23691:he=>{"use strict";var y=String;he.exports=function(i){try{return y(i)}catch{return"Object"}}},31158:(he,y,i)=>{"use strict";var e=i(79989),n=i(19037),o=i(22615),a=i(67697),l=i(39800),u=i(54872),d=i(83999),s=i(767),A=i(75684),_=i(75773),C=i(71973),R=i(43126),x=i(19842),f=i(83250),k=i(87191),w=i(18360),g=i(36812),M=i(50926),p=i(48999),E=i(30734),b=i(25391),I=i(23622),L=i(49385),D=i(72741).f,F=i(41304),P=i(2960).forEach,O=i(14241),U=i(62148),V=i(72560),K=i(82474),X=i(59976),me=i(618),J=i(33457),Q=me.get,re=me.set,de=me.enforce,te=V.f,j=K.f,H=n.RangeError,z=d.ArrayBuffer,q=z.prototype,se=d.DataView,ne=u.NATIVE_ARRAY_BUFFER_VIEWS,_e=u.TYPED_ARRAY_TAG,ge=u.TypedArray,Ce=u.TypedArrayPrototype,Te=u.isTypedArray,De="BYTES_PER_ELEMENT",fe="Wrong length",xe=function(An,$n){U(An,$n,{configurable:!0,get:function(){return Q(this)[$n]}})},Oe=function(An){var $n;return I(q,An)||"ArrayBuffer"===($n=M(An))||"SharedArrayBuffer"===$n},Le=function(An,$n){return Te(An)&&!E($n)&&$n in An&&C(+$n)&&$n>=0},Gt=function($n,xn){return xn=w(xn),Le($n,xn)?A(2,$n[xn]):j($n,xn)},Ut=function($n,xn,mt){return xn=w(xn),!(Le($n,xn)&&p(mt)&&g(mt,"value"))||g(mt,"get")||g(mt,"set")||mt.configurable||g(mt,"writable")&&!mt.writable||g(mt,"enumerable")&&!mt.enumerable?te($n,xn,mt):($n[xn]=mt.value,$n)};a?(ne||(K.f=Gt,V.f=Ut,xe(Ce,"buffer"),xe(Ce,"byteOffset"),xe(Ce,"byteLength"),xe(Ce,"length")),e({target:"Object",stat:!0,forced:!ne},{getOwnPropertyDescriptor:Gt,defineProperty:Ut}),he.exports=function(An,$n,xn){var mt=An.match(/\d+/)[0]/8,ut=An+(xn?"Clamped":"")+"Array",Wt="get"+An,dn="set"+An,sn=n[ut],fn=sn,yi=fn&&fn.prototype,nn={},Eo=function(xo,Bn){te(xo,Bn,{get:function(){return function(xo,Bn){var Xt=Q(xo);return Xt.view[Wt](Bn*mt+Xt.byteOffset,!0)}(this,Bn)},set:function(Xt){return function(xo,Bn,Xt){var Ji=Q(xo);Ji.view[dn](Bn*mt+Ji.byteOffset,xn?k(Xt):Xt,!0)}(this,Bn,Xt)},enumerable:!0})};ne?l&&(fn=$n(function(xo,Bn,Xt,Ji){return s(xo,yi),J(p(Bn)?Oe(Bn)?void 0!==Ji?new sn(Bn,f(Xt,mt),Ji):void 0!==Xt?new sn(Bn,f(Xt,mt)):new sn(Bn):Te(Bn)?X(fn,Bn):o(F,fn,Bn):new sn(x(Bn)),xo,fn)}),L&&L(fn,ge),P(D(sn),function(xo){xo in fn||_(fn,xo,sn[xo])}),fn.prototype=yi):(fn=$n(function(xo,Bn,Xt,Ji){s(xo,yi);var Ki,Fn,oi,En=0,un=0;if(p(Bn)){if(!Oe(Bn))return Te(Bn)?X(fn,Bn):o(F,fn,Bn);Ki=Bn,un=f(Xt,mt);var It=Bn.byteLength;if(void 0===Ji){if(It%mt)throw new H(fe);if((Fn=It-un)<0)throw new H(fe)}else if((Fn=R(Ji)*mt)+un>It)throw new H(fe);oi=Fn/mt}else oi=x(Bn),Ki=new z(Fn=oi*mt);for(re(xo,{buffer:Ki,byteOffset:un,byteLength:Fn,length:oi,view:new se(Ki)});En<oi;)Eo(xo,En++)}),L&&L(fn,ge),yi=fn.prototype=b(Ce)),yi.constructor!==fn&&_(yi,"constructor",fn),de(yi).TypedArrayConstructor=fn,_e&&_(yi,_e,ut);var Ko=fn!==sn;nn[ut]=fn,e({global:!0,constructor:!0,forced:Ko,sham:!ne},nn),De in fn||_(fn,De,mt),De in yi||_(yi,De,mt),O(ut)}):he.exports=function(){}},39800:(he,y,i)=>{"use strict";var e=i(19037),n=i(3689),o=i(86431),a=i(54872).NATIVE_ARRAY_BUFFER_VIEWS,l=e.ArrayBuffer,u=e.Int8Array;he.exports=!a||!n(function(){u(1)})||!n(function(){new u(-1)})||!o(function(d){new u,new u(null),new u(1.5),new u(d)},!0)||n(function(){return 1!==new u(new l(2),1,void 0).length})},20716:(he,y,i)=>{"use strict";var e=i(59976),n=i(47338);he.exports=function(o,a){return e(n(o),a)}},41304:(he,y,i)=>{"use strict";var e=i(54071),n=i(22615),o=i(52655),a=i(90690),l=i(6310),u=i(5185),d=i(91664),s=i(93292),A=i(9401),_=i(54872).aTypedArrayConstructor,C=i(71530);he.exports=function(x){var E,b,I,L,D,F,P,O,f=o(this),k=a(x),w=arguments.length,g=w>1?arguments[1]:void 0,M=void 0!==g,p=d(k);if(p&&!s(p))for(O=(P=u(k,p)).next,k=[];!(F=n(O,P)).done;)k.push(F.value);for(M&&w>2&&(g=e(g,arguments[2])),b=l(k),I=new(_(f))(b),L=A(I),E=0;b>E;E++)D=M?g(k[E],E):k[E],I[E]=L?C(D):+D;return I}},47338:(he,y,i)=>{"use strict";var e=i(54872),n=i(76373),o=e.aTypedArrayConstructor,a=e.getTypedArrayConstructor;he.exports=function(l){return o(n(l,a(l)))}},14630:(he,y,i)=>{"use strict";var e=i(68844),n=0,o=Math.random(),a=e(1..toString);he.exports=function(l){return"Symbol("+(void 0===l?"":l)+")_"+a(++n+o,36)}},76837:(he,y,i)=>{"use strict";var e=i(3689),n=i(44201),o=i(67697),a=i(53931),l=n("iterator");he.exports=!e(function(){var u=new URL("b?a=1&b=2&c=3","http://a"),d=u.searchParams,s=new URLSearchParams("a=1&a=2&b=3"),A="";return u.pathname="c%20d",d.forEach(function(_,C){d.delete("b"),A+=C+_}),s.delete("a",2),s.delete("b",void 0),a&&(!u.toJSON||!s.has("a",1)||s.has("a",2)||!s.has("a",void 0)||s.has("b"))||!d.size&&(a||!o)||!d.sort||"http://a/c%20d?a=1&c=3"!==u.href||"3"!==d.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!d[l]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==A||"x"!==new URL("http://x",void 0).host})},39525:(he,y,i)=>{"use strict";var e=i(50146);he.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},15648:(he,y,i)=>{"use strict";var e=i(67697),n=i(3689);he.exports=e&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},21500:he=>{"use strict";var y=TypeError;he.exports=function(i,e){if(i<e)throw new y("Not enough arguments");return i}},1009:(he,y,i)=>{"use strict";var e=i(19037),n=i(69985),o=e.WeakMap;he.exports=n(o)&&/native code/.test(String(o))},35405:(he,y,i)=>{"use strict";var e=i(50496),n=i(36812),o=i(96145),a=i(72560).f;he.exports=function(l){var u=e.Symbol||(e.Symbol={});n(u,l)||a(u,l,{value:o.f(l)})}},96145:(he,y,i)=>{"use strict";var e=i(44201);y.f=e},44201:(he,y,i)=>{"use strict";var e=i(19037),n=i(83430),o=i(36812),a=i(14630),l=i(50146),u=i(39525),d=e.Symbol,s=n("wks"),A=u?d.for||d:d&&d.withoutSetter||a;he.exports=function(_){return o(s,_)||(s[_]=l&&o(d,_)?d[_]:A("Symbol."+_)),s[_]}},86350:he=>{"use strict";he.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},99211:(he,y,i)=>{"use strict";var e=i(79989),n=i(46576),o=i(3689),a=i(83999),l=i(85027),u=i(27578),d=i(43126),s=i(76373),A=a.ArrayBuffer,_=a.DataView,C=_.prototype,R=n(A.prototype.slice),x=n(C.getUint8),f=n(C.setUint8);e({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o(function(){return!new A(2).slice(1,void 0).byteLength})},{slice:function(g,M){if(R&&void 0===M)return R(l(this),g);for(var p=l(this).byteLength,E=u(g,p),b=u(void 0===M?p:M,p),I=new(s(this,A))(d(b-E)),L=new _(this),D=new _(I),F=0;E<b;)f(D,F++,x(L,E++));return I}})},34338:(he,y,i)=>{"use strict";var e=i(79989),n=i(3689),o=i(92297),a=i(48999),l=i(90690),u=i(6310),d=i(55565),s=i(76522),A=i(27120),_=i(29042),C=i(44201),R=i(3615),x=C("isConcatSpreadable"),f=R>=51||!n(function(){var g=[];return g[x]=!1,g.concat()[0]!==g}),k=function(g){if(!a(g))return!1;var M=g[x];return void 0!==M?!!M:o(g)};e({target:"Array",proto:!0,arity:1,forced:!f||!_("concat")},{concat:function(M){var I,L,D,F,P,p=l(this),E=A(p,0),b=0;for(I=-1,D=arguments.length;I<D;I++)if(k(P=-1===I?p:arguments[I]))for(F=u(P),d(b+F),L=0;L<F;L++,b++)L in P&&s(E,b,P[L]);else d(b+1),s(E,b++,P);return E.length=b,E}})},55791:(he,y,i)=>{"use strict";var e=i(79989),n=i(2960).every;e({target:"Array",proto:!0,forced:!i(16834)("every")},{every:function(u){return n(this,u,arguments.length>1?arguments[1]:void 0)}})},38077:(he,y,i)=>{"use strict";var e=i(79989),n=i(2960).filter;e({target:"Array",proto:!0,forced:!i(29042)("filter")},{filter:function(u){return n(this,u,arguments.length>1?arguments[1]:void 0)}})},39772:(he,y,i)=>{"use strict";var e=i(79989),n=i(2960).findIndex,o=i(87370),a="findIndex",l=!0;a in[]&&Array(1)[a](function(){l=!1}),e({target:"Array",proto:!0,forced:l},{findIndex:function(d){return n(this,d,arguments.length>1?arguments[1]:void 0)}}),o(a)},25728:(he,y,i)=>{"use strict";var e=i(79989),n=i(2960).find,o=i(87370),a="find",l=!0;a in[]&&Array(1)[a](function(){l=!1}),e({target:"Array",proto:!0,forced:l},{find:function(d){return n(this,d,arguments.length>1?arguments[1]:void 0)}}),o(a)},49693:(he,y,i)=>{"use strict";var e=i(79989),n=i(57612);e({target:"Array",proto:!0,forced:[].forEach!==n},{forEach:n})},77049:(he,y,i)=>{"use strict";var e=i(79989),n=i(21055);e({target:"Array",stat:!0,forced:!i(86431)(function(l){Array.from(l)})},{from:n})},76801:(he,y,i)=>{"use strict";var e=i(79989),n=i(84328).includes,o=i(3689),a=i(87370);e({target:"Array",proto:!0,forced:o(function(){return!Array(1).includes()})},{includes:function(d){return n(this,d,arguments.length>1?arguments[1]:void 0)}}),a("includes")},97195:(he,y,i)=>{"use strict";var e=i(79989),n=i(46576),o=i(84328).indexOf,a=i(16834),l=n([].indexOf),u=!!l&&1/l([1],1,-0)<0;e({target:"Array",proto:!0,forced:u||!a("indexOf")},{indexOf:function(A){var _=arguments.length>1?arguments[1]:void 0;return u?l(this,A,_)||0:o(this,A,_)}})},63975:(he,y,i)=>{"use strict";i(79989)({target:"Array",stat:!0},{isArray:i(92297)})},752:(he,y,i)=>{"use strict";var e=i(65290),n=i(87370),o=i(9478),a=i(618),l=i(72560).f,u=i(91934),d=i(27807),s=i(53931),A=i(67697),_="Array Iterator",C=a.set,R=a.getterFor(_);he.exports=u(Array,"Array",function(f,k){C(this,{type:_,target:e(f),index:0,kind:k})},function(){var f=R(this),k=f.target,w=f.index++;if(!k||w>=k.length)return f.target=void 0,d(void 0,!0);switch(f.kind){case"keys":return d(w,!1);case"values":return d(k[w],!1)}return d([w,k[w]],!1)},"values");var x=o.Arguments=o.Array;if(n("keys"),n("values"),n("entries"),!s&&A&&"values"!==x.name)try{l(x,"name",{value:"values"})}catch{}},6203:(he,y,i)=>{"use strict";var e=i(79989),n=i(68844),o=i(94413),a=i(65290),l=i(16834),u=n([].join);e({target:"Array",proto:!0,forced:o!==Object||!l("join",",")},{join:function(_){return u(a(this),void 0===_?",":_)}})},50886:(he,y,i)=>{"use strict";var e=i(79989),n=i(2960).map;e({target:"Array",proto:!0,forced:!i(29042)("map")},{map:function(u){return n(this,u,arguments.length>1?arguments[1]:void 0)}})},81386:(he,y,i)=>{"use strict";var e=i(79989),n=i(88820).right,o=i(16834),a=i(3615);e({target:"Array",proto:!0,forced:!i(50806)&&a>79&&a<83||!o("reduceRight")},{reduceRight:function(A){return n(this,A,arguments.length,arguments.length>1?arguments[1]:void 0)}})},278:(he,y,i)=>{"use strict";var e=i(79989),n=i(88820).left,o=i(16834),a=i(3615);e({target:"Array",proto:!0,forced:!i(50806)&&a>79&&a<83||!o("reduce")},{reduce:function(A){var _=arguments.length;return n(this,A,_,_>1?arguments[1]:void 0)}})},93374:(he,y,i)=>{"use strict";var e=i(79989),n=i(68844),o=i(92297),a=n([].reverse),l=[1,2];e({target:"Array",proto:!0,forced:String(l)===String(l.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),a(this)}})},89730:(he,y,i)=>{"use strict";var e=i(79989),n=i(92297),o=i(19429),a=i(48999),l=i(27578),u=i(6310),d=i(65290),s=i(76522),A=i(44201),_=i(29042),C=i(96004),R=_("slice"),x=A("species"),f=Array,k=Math.max;e({target:"Array",proto:!0,forced:!R},{slice:function(g,M){var L,D,F,p=d(this),E=u(p),b=l(g,E),I=l(void 0===M?E:M,E);if(n(p)&&((o(L=p.constructor)&&(L===f||n(L.prototype))||a(L)&&null===(L=L[x]))&&(L=void 0),L===f||void 0===L))return C(p,b,I);for(D=new(void 0===L?f:L)(k(I-b,0)),F=0;b<I;b++,F++)b in p&&s(D,F,p[b]);return D.length=F,D}})},98742:(he,y,i)=>{"use strict";var e=i(79989),n=i(2960).some;e({target:"Array",proto:!0,forced:!i(16834)("some")},{some:function(u){return n(this,u,arguments.length>1?arguments[1]:void 0)}})},65137:(he,y,i)=>{"use strict";var e=i(79989),n=i(68844),o=i(34364),a=i(90690),l=i(6310),u=i(98494),d=i(34327),s=i(3689),A=i(50382),_=i(16834),C=i(97365),R=i(37298),x=i(3615),f=i(27922),k=[],w=n(k.sort),g=n(k.push),M=s(function(){k.sort(void 0)}),p=s(function(){k.sort(null)}),E=_("sort"),b=!s(function(){if(x)return x<70;if(!(C&&C>3)){if(R)return!0;if(f)return f<603;var F,P,O,U,D="";for(F=65;F<76;F++){switch(P=String.fromCharCode(F),F){case 66:case 69:case 70:case 72:O=3;break;case 68:case 71:O=4;break;default:O=2}for(U=0;U<47;U++)k.push({k:P+U,v:O})}for(k.sort(function(V,K){return K.v-V.v}),U=0;U<k.length;U++)P=k[U].k.charAt(0),D.charAt(D.length-1)!==P&&(D+=P);return"DGBEFHACIJK"!==D}});e({target:"Array",proto:!0,forced:M||!p||!E||!b},{sort:function(F){void 0!==F&&o(F);var P=a(this);if(b)return void 0===F?w(P):w(P,F);var V,K,O=[],U=l(P);for(K=0;K<U;K++)K in P&&g(O,P[K]);for(A(O,function(D){return function(F,P){return void 0===P?-1:void 0===F?1:void 0!==D?+D(F,P)||0:d(F)>d(P)?1:-1}}(F)),V=l(O),K=0;K<V;)P[K]=O[K++];for(;K<U;)u(P,K++);return P}})},62506:(he,y,i)=>{"use strict";var e=i(79989),n=i(90690),o=i(27578),a=i(68700),l=i(6310),u=i(5649),d=i(55565),s=i(27120),A=i(76522),_=i(98494),R=i(29042)("splice"),x=Math.max,f=Math.min;e({target:"Array",proto:!0,forced:!R},{splice:function(w,g){var I,L,D,F,P,O,M=n(this),p=l(M),E=o(w,p),b=arguments.length;for(0===b?I=L=0:1===b?(I=0,L=p-E):(I=b-2,L=f(x(a(g),0),p-E)),d(p+I-L),D=s(M,L),F=0;F<L;F++)(P=E+F)in M&&A(D,F,M[P]);if(D.length=L,I<L){for(F=E;F<p-L;F++)O=F+I,(P=F+L)in M?M[O]=M[P]:_(M,O);for(F=p;F>p-L+I;F--)_(M,F-1)}else if(I>L)for(F=p-L;F>E;F--)O=F+I-1,(P=F+L-1)in M?M[O]=M[P]:_(M,O);for(F=0;F<I;F++)M[F+E]=arguments[F+2];return u(M,p-L+I),D}})},42227:(he,y,i)=>{"use strict";var e=i(79989),n=i(68844),o=Date,a=n(o.prototype.getTime);e({target:"Date",stat:!0},{now:function(){return a(new o)}})},65007:(he,y,i)=>{"use strict";var e=i(79989),n=i(99455);e({target:"Date",proto:!0,forced:Date.prototype.toISOString!==n},{toISOString:n})},59903:(he,y,i)=>{"use strict";var e=i(36812),n=i(11880),o=i(81797),l=i(44201)("toPrimitive"),u=Date.prototype;e(u,l)||n(u,l,o)},30024:(he,y,i)=>{"use strict";var e=i(68844),n=i(11880),o=Date.prototype,a="Invalid Date",l="toString",u=e(o[l]),d=e(o.getTime);String(new Date(NaN))!==a&&n(o,l,function(){var A=d(this);return A==A?u(this):a})},41517:(he,y,i)=>{"use strict";var e=i(79989),n=i(86761);e({target:"Function",proto:!0,forced:Function.bind!==n},{bind:n})},34284:(he,y,i)=>{"use strict";var e=i(67697),n=i(41236).EXISTS,o=i(68844),a=i(62148),l=Function.prototype,u=o(l.toString),d=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,s=o(d.exec);e&&!n&&a(l,"name",{configurable:!0,get:function(){try{return s(d,u(this))[1]}catch{return""}}})},45398:(he,y,i)=>{"use strict";var e=i(79989),n=i(19037);e({global:!0,forced:n.globalThis!==n},{globalThis:n})},48324:(he,y,i)=>{"use strict";var e=i(79989),n=i(76058),o=i(61735),a=i(22615),l=i(68844),u=i(3689),d=i(69985),s=i(30734),A=i(96004),_=i(92643),C=i(50146),R=String,x=n("JSON","stringify"),f=l(/./.exec),k=l("".charAt),w=l("".charCodeAt),g=l("".replace),M=l(1..toString),p=/[\uD800-\uDFFF]/g,E=/^[\uD800-\uDBFF]$/,b=/^[\uDC00-\uDFFF]$/,I=!C||u(function(){var P=n("Symbol")("stringify detection");return"[null]"!==x([P])||"{}"!==x({a:P})||"{}"!==x(Object(P))}),L=u(function(){return'"\\udf06\\ud834"'!==x("\udf06\ud834")||'"\\udead"'!==x("\udead")}),D=function(P,O){var U=A(arguments),V=_(O);if(d(V)||void 0!==P&&!s(P))return U[1]=function(K,X){if(d(V)&&(X=a(V,this,R(K),X)),!s(X))return X},o(x,null,U)},F=function(P,O,U){var V=k(U,O-1),K=k(U,O+1);return f(E,P)&&!f(b,K)||f(b,P)&&!f(E,V)?"\\u"+M(w(P,0),16):P};x&&e({target:"JSON",stat:!0,arity:3,forced:I||L},{stringify:function(O,U,V){var K=A(arguments),X=o(I?D:x,null,K);return L&&"string"==typeof X?g(X,p,F):X}})},7629:(he,y,i)=>{"use strict";var e=i(19037);i(55997)(e.JSON,"JSON",!0)},9322:(he,y,i)=>{"use strict";i(20319)("Map",function(o){return function(){return o(this,arguments.length?arguments[0]:void 0)}},i(70800))},56646:(he,y,i)=>{"use strict";i(9322)},68813:(he,y,i)=>{"use strict";var e=i(79989),n=Math.log,o=Math.LN2;e({target:"Math",stat:!0},{log2:function(l){return n(l)/o}})},77509:(he,y,i)=>{"use strict";i(55997)(Math,"Math",!0)},79288:(he,y,i)=>{"use strict";var e=i(79989),n=i(53931),o=i(67697),a=i(19037),l=i(50496),u=i(68844),d=i(35266),s=i(36812),A=i(33457),_=i(23622),C=i(30734),R=i(88732),x=i(3689),f=i(72741).f,k=i(82474).f,w=i(72560).f,g=i(23648),M=i(61435).trim,p="Number",E=a[p],b=l[p],I=E.prototype,L=a.TypeError,D=u("".slice),F=u("".charCodeAt),U=d(p,!E(" 0o1")||!E("0b1")||E("+0x1")),K=function(J){var me,Q=arguments.length<1?0:E(function(me){var J=R(me,"number");return"bigint"==typeof J?J:function(me){var Q,re,de,te,j,H,z,q,J=R(me,"number");if(C(J))throw new L("Cannot convert a Symbol value to a number");if("string"==typeof J&&J.length>2)if(J=M(J),43===(Q=F(J,0))||45===Q){if(88===(re=F(J,2))||120===re)return NaN}else if(48===Q){switch(F(J,1)){case 66:case 98:de=2,te=49;break;case 79:case 111:de=8,te=55;break;default:return+J}for(H=(j=D(J,2)).length,z=0;z<H;z++)if((q=F(j,z))<48||q>te)return NaN;return parseInt(j,de)}return+J}(J)}(J));return _(I,me=this)&&x(function(){g(me)})?A(Object(Q),this,K):Q};K.prototype=I,U&&!n&&(I.constructor=K),e({global:!0,constructor:!0,wrap:!0,forced:U},{Number:K});var X=function(me,J){for(var de,Q=o?f(J):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),re=0;Q.length>re;re++)s(J,de=Q[re])&&!s(me,de)&&w(me,de,k(J,de))};n&&b&&X(l[p],b),(U||n)&&X(l[p],E)},82243:(he,y,i)=>{"use strict";i(79989)({target:"Number",stat:!0},{isFinite:i(70046)})},45993:(he,y,i)=>{"use strict";i(79989)({target:"Number",stat:!0},{isNaN:function(o){return o!=o}})},21552:(he,y,i)=>{"use strict";var e=i(79989),n=i(67897);e({target:"Number",stat:!0,forced:Number.parseInt!==n},{parseInt:n})},97389:(he,y,i)=>{"use strict";var e=i(79989),n=i(68844),o=i(68700),a=i(23648),l=i(90534),u=i(3689),d=RangeError,s=String,A=Math.floor,_=n(l),C=n("".slice),R=n(1..toFixed),x=function(p,E,b){return 0===E?b:E%2==1?x(p,E-1,b*p):x(p*p,E/2,b)},k=function(p,E,b){for(var I=-1,L=b;++I<6;)p[I]=(L+=E*p[I])%1e7,L=A(L/1e7)},w=function(p,E){for(var b=6,I=0;--b>=0;)p[b]=A((I+=p[b])/E),I=I%E*1e7},g=function(p){for(var E=6,b="";--E>=0;)if(""!==b||0===E||0!==p[E]){var I=s(p[E]);b=""===b?I:b+_("0",7-I.length)+I}return b};e({target:"Number",proto:!0,forced:u(function(){return"0.000"!==R(8e-5,3)||"1"!==R(.9,0)||"1.25"!==R(1.255,2)||"1000000000000000128"!==R(0xde0b6b3a7640080,0)})||!u(function(){R({})})},{toFixed:function(E){var P,O,U,V,b=a(this),I=o(E),L=[0,0,0,0,0,0],D="",F="0";if(I<0||I>20)throw new d("Incorrect fraction digits");if(b!=b)return"NaN";if(b<=-1e21||b>=1e21)return s(b);if(b<0&&(D="-",b=-b),b>1e-21)if(P=function(p){for(var E=0,b=p;b>=4096;)E+=12,b/=4096;for(;b>=2;)E+=1,b/=2;return E}(b*x(2,69,1))-69,O=P<0?b*x(2,-P,1):b/x(2,P,1),O*=4503599627370496,(P=52-P)>0){for(k(L,0,O),U=I;U>=7;)k(L,1e7,0),U-=7;for(k(L,x(10,U,1),0),U=P-1;U>=23;)w(L,1<<23),U-=23;w(L,1<<U),k(L,1,1),w(L,2),F=g(L)}else k(L,0,O),k(L,1<<-P,0),F=g(L)+_("0",I);return F=I>0?D+((V=F.length)<=I?"0."+_("0",I-V)+F:C(F,0,V-I)+"."+C(F,V-I)):D+F}})},60429:(he,y,i)=>{"use strict";var e=i(79989),n=i(45394);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==n},{assign:n})},51013:(he,y,i)=>{"use strict";i(79989)({target:"Object",stat:!0,sham:!i(67697)},{create:i(25391)})},33994:(he,y,i)=>{"use strict";var e=i(79989),n=i(67697),o=i(90600),a=i(34364),l=i(90690),u=i(72560);n&&e({target:"Object",proto:!0,forced:o},{__defineGetter__:function(s,A){u.f(l(this),s,{get:a(A),enumerable:!0,configurable:!0})}})},35082:(he,y,i)=>{"use strict";var e=i(79989),n=i(67697),o=i(98920).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==o,sham:!n},{defineProperties:o})},40739:(he,y,i)=>{"use strict";var e=i(79989),n=i(67697),o=i(72560).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==o,sham:!n},{defineProperty:o})},47409:(he,y,i)=>{"use strict";var e=i(79989),n=i(67697),o=i(90600),a=i(34364),l=i(90690),u=i(72560);n&&e({target:"Object",proto:!0,forced:o},{__defineSetter__:function(s,A){u.f(l(this),s,{set:a(A),enumerable:!0,configurable:!0})}})},36585:(he,y,i)=>{"use strict";var e=i(79989),n=i(49419).entries;e({target:"Object",stat:!0},{entries:function(a){return n(a)}})},81919:(he,y,i)=>{"use strict";var e=i(79989),n=i(3689),o=i(65290),a=i(82474).f,l=i(67697);e({target:"Object",stat:!0,forced:!l||n(function(){a(1)}),sham:!l},{getOwnPropertyDescriptor:function(s,A){return a(o(s),A)}})},99474:(he,y,i)=>{"use strict";var e=i(79989),n=i(67697),o=i(19152),a=i(65290),l=i(82474),u=i(76522);e({target:"Object",stat:!0,sham:!n},{getOwnPropertyDescriptors:function(s){for(var f,k,A=a(s),_=l.f,C=o(A),R={},x=0;C.length>x;)void 0!==(k=_(A,f=C[x++]))&&u(R,f,k);return R}})},79434:(he,y,i)=>{"use strict";var e=i(79989),n=i(50146),o=i(3689),a=i(7518),l=i(90690);e({target:"Object",stat:!0,forced:!n||o(function(){a.f(1)})},{getOwnPropertySymbols:function(s){var A=a.f;return A?A(l(s)):[]}})},88052:(he,y,i)=>{"use strict";var e=i(79989),n=i(3689),o=i(90690),a=i(61868),l=i(81748);e({target:"Object",stat:!0,forced:n(function(){a(1)}),sham:!l},{getPrototypeOf:function(s){return a(o(s))}})},69358:(he,y,i)=>{"use strict";var e=i(79989),n=i(90690),o=i(20300);e({target:"Object",stat:!0,forced:i(3689)(function(){o(1)})},{keys:function(d){return o(n(d))}})},5399:(he,y,i)=>{"use strict";i(79989)({target:"Object",stat:!0},{setPrototypeOf:i(49385)})},60228:(he,y,i)=>{"use strict";var e=i(23043),n=i(11880),o=i(65073);e||n(Object.prototype,"toString",o,{unsafe:!0})},86466:(he,y,i)=>{"use strict";var e=i(79989),n=i(49419).values;e({target:"Object",stat:!0},{values:function(a){return n(a)}})},80939:(he,y,i)=>{"use strict";var e=i(79989),n=i(14818);e({global:!0,forced:parseFloat!==n},{parseFloat:n})},32320:(he,y,i)=>{"use strict";var e=i(79989),n=i(67897);e({global:!0,forced:parseInt!==n},{parseInt:n})},81692:(he,y,i)=>{"use strict";var e=i(79989),n=i(22615),o=i(34364),a=i(48742),l=i(9302),u=i(18734);e({target:"Promise",stat:!0,forced:i(562)},{all:function(A){var _=this,C=a.f(_),R=C.resolve,x=C.reject,f=l(function(){var k=o(_.resolve),w=[],g=0,M=1;u(A,function(p){var E=g++,b=!1;M++,n(k,_,p).then(function(I){b||(b=!0,w[E]=I,--M||R(w))},x)}),--M||R(w)});return f.error&&x(f.value),C.promise}})},75089:(he,y,i)=>{"use strict";var e=i(79989),n=i(53931),o=i(87073).CONSTRUCTOR,a=i(17919),l=i(76058),u=i(69985),d=i(11880),s=a&&a.prototype;if(e({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(_){return this.then(void 0,_)}}),!n&&u(a)){var A=l("Promise").prototype.catch;s.catch!==A&&d(s,"catch",A,{unsafe:!0})}},56697:(he,y,i)=>{"use strict";var Ce,Te,fe,e=i(79989),n=i(53931),o=i(50806),a=i(19037),l=i(22615),u=i(11880),d=i(49385),s=i(55997),A=i(14241),_=i(34364),C=i(69985),R=i(48999),x=i(767),f=i(76373),k=i(99886).set,w=i(80231),g=i(20920),M=i(9302),p=i(34410),E=i(618),b=i(17919),I=i(87073),L=i(48742),D="Promise",F=I.CONSTRUCTOR,P=I.REJECTION_EVENT,O=I.SUBCLASSING,U=E.getterFor(D),V=E.set,K=b&&b.prototype,X=b,me=K,J=a.TypeError,Q=a.document,re=a.process,de=L.f,te=de,j=!!(Q&&Q.createEvent&&a.dispatchEvent),H="unhandledrejection",xe=function(Wt){var dn;return!(!R(Wt)||!C(dn=Wt.then))&&dn},Oe=function(Wt,dn){var Eo,Ko,xo,sn=dn.value,fn=1===dn.state,yi=fn?Wt.ok:Wt.fail,nn=Wt.resolve,Mi=Wt.reject,mi=Wt.domain;try{yi?(fn||(2===dn.rejection&&$n(dn),dn.rejection=1),!0===yi?Eo=sn:(mi&&mi.enter(),Eo=yi(sn),mi&&(mi.exit(),xo=!0)),Eo===Wt.promise?Mi(new J("Promise-chain cycle")):(Ko=xe(Eo))?l(Ko,Eo,nn,Mi):nn(Eo)):Mi(sn)}catch(Bn){mi&&!xo&&mi.exit(),Mi(Bn)}},Le=function(Wt,dn){Wt.notified||(Wt.notified=!0,w(function(){for(var fn,sn=Wt.reactions;fn=sn.get();)Oe(fn,Wt);Wt.notified=!1,dn&&!Wt.rejection&&Ut(Wt)}))},Gt=function(Wt,dn,sn){var fn,yi;j?((fn=Q.createEvent("Event")).promise=dn,fn.reason=sn,fn.initEvent(Wt,!1,!0),a.dispatchEvent(fn)):fn={promise:dn,reason:sn},!P&&(yi=a["on"+Wt])?yi(fn):Wt===H&&g("Unhandled promise rejection",sn)},Ut=function(Wt){l(k,a,function(){var yi,dn=Wt.facade,sn=Wt.value;if(An(Wt)&&(yi=M(function(){o?re.emit("unhandledRejection",sn,dn):Gt(H,dn,sn)}),Wt.rejection=o||An(Wt)?2:1,yi.error))throw yi.value})},An=function(Wt){return 1!==Wt.rejection&&!Wt.parent},$n=function(Wt){l(k,a,function(){var dn=Wt.facade;o?re.emit("rejectionHandled",dn):Gt("rejectionhandled",dn,Wt.value)})},xn=function(Wt,dn,sn){return function(fn){Wt(dn,fn,sn)}},mt=function(Wt,dn,sn){Wt.done||(Wt.done=!0,sn&&(Wt=sn),Wt.value=dn,Wt.state=2,Le(Wt,!0))},ut=function(Wt,dn,sn){if(!Wt.done){Wt.done=!0,sn&&(Wt=sn);try{if(Wt.facade===dn)throw new J("Promise can't be resolved itself");var fn=xe(dn);fn?w(function(){var yi={done:!1};try{l(fn,dn,xn(ut,yi,Wt),xn(mt,yi,Wt))}catch(nn){mt(yi,nn,Wt)}}):(Wt.value=dn,Wt.state=1,Le(Wt,!1))}catch(yi){mt({done:!1},yi,Wt)}}};if(F&&(X=function(dn){x(this,me),_(dn),l(Ce,this);var sn=U(this);try{dn(xn(ut,sn),xn(mt,sn))}catch(fn){mt(sn,fn)}},(Ce=function(dn){V(this,{type:D,done:!1,notified:!1,parent:!1,reactions:new p,rejection:!1,state:0,value:void 0})}).prototype=u(me=X.prototype,"then",function(dn,sn){var fn=U(this),yi=de(f(this,X));return fn.parent=!0,yi.ok=!C(dn)||dn,yi.fail=C(sn)&&sn,yi.domain=o?re.domain:void 0,0===fn.state?fn.reactions.add(yi):w(function(){Oe(yi,fn)}),yi.promise}),Te=function(){var Wt=new Ce,dn=U(Wt);this.promise=Wt,this.resolve=xn(ut,dn),this.reject=xn(mt,dn)},L.f=de=function(Wt){return Wt===X||void 0===Wt?new Te(Wt):te(Wt)},!n&&C(b)&&K!==Object.prototype)){fe=K.then,O||u(K,"then",function(dn,sn){var fn=this;return new X(function(yi,nn){l(fe,fn,yi,nn)}).then(dn,sn)},{unsafe:!0});try{delete K.constructor}catch{}d&&d(K,me)}e({global:!0,constructor:!0,wrap:!0,forced:F},{Promise:X}),s(X,D,!1,!0),A(D)},36409:(he,y,i)=>{"use strict";var e=i(79989),n=i(53931),o=i(17919),a=i(3689),l=i(76058),u=i(69985),d=i(76373),s=i(72945),A=i(11880),_=o&&o.prototype;if(e({target:"Promise",proto:!0,real:!0,forced:!!o&&a(function(){_.finally.call({then:function(){}},function(){})})},{finally:function(x){var f=d(this,l("Promise")),k=u(x);return this.then(k?function(w){return s(f,x()).then(function(){return w})}:x,k?function(w){return s(f,x()).then(function(){throw w})}:x)}}),!n&&u(o)){var R=l("Promise").prototype.finally;_.finally!==R&&A(_,"finally",R,{unsafe:!0})}},73964:(he,y,i)=>{"use strict";i(56697),i(81692),i(75089),i(58829),i(42092),i(57905)},58829:(he,y,i)=>{"use strict";var e=i(79989),n=i(22615),o=i(34364),a=i(48742),l=i(9302),u=i(18734);e({target:"Promise",stat:!0,forced:i(562)},{race:function(A){var _=this,C=a.f(_),R=C.reject,x=l(function(){var f=o(_.resolve);u(A,function(k){n(f,_,k).then(C.resolve,R)})});return x.error&&R(x.value),C.promise}})},42092:(he,y,i)=>{"use strict";var e=i(79989),n=i(48742);e({target:"Promise",stat:!0,forced:i(87073).CONSTRUCTOR},{reject:function(l){var u=n.f(this);return(0,u.reject)(l),u.promise}})},57905:(he,y,i)=>{"use strict";var e=i(79989),n=i(76058),o=i(53931),a=i(17919),l=i(87073).CONSTRUCTOR,u=i(72945),d=n("Promise"),s=o&&!l;e({target:"Promise",stat:!0,forced:o||l},{resolve:function(_){return u(s&&this===d?a:this,_)}})},30050:(he,y,i)=>{"use strict";var e=i(79989),n=i(76058),o=i(61735),a=i(86761),l=i(52655),u=i(85027),d=i(48999),s=i(25391),A=i(3689),_=n("Reflect","construct"),C=Object.prototype,R=[].push,x=A(function(){function w(){}return!(_(function(){},[],w)instanceof w)}),f=!A(function(){_(function(){})}),k=x||f;e({target:"Reflect",stat:!0,forced:k,sham:k},{construct:function(g,M){l(g),u(M);var p=arguments.length<3?g:l(arguments[2]);if(f&&!x)return _(g,M,p);if(g===p){switch(M.length){case 0:return new g;case 1:return new g(M[0]);case 2:return new g(M[0],M[1]);case 3:return new g(M[0],M[1],M[2]);case 4:return new g(M[0],M[1],M[2],M[3])}var E=[null];return o(R,E,M),new(o(a,g,E))}var b=p.prototype,I=s(d(b)?b:C),L=o(g,I,M);return d(L)?L:I}})},32349:(he,y,i)=>{"use strict";var e=i(79989),n=i(22615),o=i(48999),a=i(85027),l=i(76251),u=i(82474),d=i(61868);e({target:"Reflect",stat:!0},{get:function s(A,_){var R,x,C=arguments.length<3?A:arguments[2];return a(A)===C?A[_]:(R=u.f(A,_))?l(R)?R.value:void 0===R.get?void 0:n(R.get,C):o(x=d(A))?s(x,_,C):void 0}})},45247:(he,y,i)=>{"use strict";var e=i(79989),n=i(22615),o=i(85027),a=i(48999),l=i(76251),u=i(3689),d=i(72560),s=i(82474),A=i(61868),_=i(75684);e({target:"Reflect",stat:!0,forced:u(function(){var x=function(){},f=d.f(new x,"a",{configurable:!0});return!1!==Reflect.set(x.prototype,"a",1,f)})},{set:function C(x,f,k){var M,p,E,w=arguments.length<4?x:arguments[3],g=s.f(o(x),f);if(!g){if(a(p=A(x)))return C(p,f,k,w);g=_(0)}if(l(g)){if(!1===g.writable||!a(w))return!1;if(M=s.f(w,f)){if(M.get||M.set||!1===M.writable)return!1;M.value=k,d.f(w,f,M)}else d.f(w,f,_(0,k))}else{if(void 0===(E=g.set))return!1;n(E,w,k)}return!0}})},52003:(he,y,i)=>{"use strict";var e=i(67697),n=i(19037),o=i(68844),a=i(35266),l=i(33457),u=i(75773),d=i(25391),s=i(72741).f,A=i(23622),_=i(91245),C=i(34327),R=i(63477),x=i(87901),f=i(38055),k=i(11880),w=i(3689),g=i(36812),M=i(618).enforce,p=i(14241),E=i(44201),b=i(62100),I=i(26738),L=E("match"),D=n.RegExp,F=D.prototype,P=n.SyntaxError,O=o(F.exec),U=o("".charAt),V=o("".replace),K=o("".indexOf),X=o("".slice),me=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,J=/a/g,Q=/a/g,re=new D(J)!==J,de=x.MISSED_STICKY,te=x.UNSUPPORTED_Y;if(a("RegExp",e&&(!re||de||b||I||w(function(){return Q[L]=!1,D(J)!==J||D(Q)===Q||"/a/i"!==String(D(J,"i"))})))){for(var q=function(ge,Ce){var Le,Gt,Ut,An,$n,xn,Te=A(F,this),De=_(ge),fe=void 0===Ce,xe=[],Oe=ge;if(!Te&&De&&fe&&ge.constructor===q)return ge;if((De||A(F,ge))&&(ge=ge.source,fe&&(Ce=R(Oe))),ge=void 0===ge?"":C(ge),Ce=void 0===Ce?"":C(Ce),Oe=ge,b&&"dotAll"in J&&(Gt=!!Ce&&K(Ce,"s")>-1)&&(Ce=V(Ce,/s/g,"")),Le=Ce,de&&"sticky"in J&&(Ut=!!Ce&&K(Ce,"y")>-1)&&te&&(Ce=V(Ce,/y/g,"")),I&&(An=function(_e){for(var Ut,ge=_e.length,Ce=0,Te="",De=[],fe=d(null),xe=!1,Oe=!1,Le=0,Gt="";Ce<=ge;Ce++){if("\\"===(Ut=U(_e,Ce)))Ut+=U(_e,++Ce);else if("]"===Ut)xe=!1;else if(!xe)switch(!0){case"["===Ut:xe=!0;break;case"("===Ut:O(me,X(_e,Ce+1))&&(Ce+=2,Oe=!0),Te+=Ut,Le++;continue;case">"===Ut&&Oe:if(""===Gt||g(fe,Gt))throw new P("Invalid capture group name");fe[Gt]=!0,De[De.length]=[Gt,Le],Oe=!1,Gt="";continue}Oe?Gt+=Ut:Te+=Ut}return[Te,De]}(ge),ge=An[0],xe=An[1]),$n=l(D(ge,Ce),Te?this:F,q),(Gt||Ut||xe.length)&&(xn=M($n),Gt&&(xn.dotAll=!0,xn.raw=q(function(_e){for(var fe,ge=_e.length,Ce=0,Te="",De=!1;Ce<=ge;Ce++)"\\"!==(fe=U(_e,Ce))?De||"."!==fe?("["===fe?De=!0:"]"===fe&&(De=!1),Te+=fe):Te+="[\\s\\S]":Te+=fe+U(_e,++Ce);return Te}(ge),Le)),Ut&&(xn.sticky=!0),xe.length&&(xn.groups=xe)),ge!==Oe)try{u($n,"source",""===Oe?"(?:)":Oe)}catch{}return $n},se=s(D),ne=0;se.length>ne;)f(q,D,se[ne++]);F.constructor=q,q.prototype=F,k(n,"RegExp",q,{constructor:!0})}p("RegExp")},64043:(he,y,i)=>{"use strict";var e=i(79989),n=i(56308);e({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},25847:(he,y,i)=>{"use strict";var e=i(19037),n=i(67697),o=i(62148),a=i(69633),l=i(3689),u=e.RegExp,d=u.prototype;n&&l(function(){var A=!0;try{u(".","d")}catch{A=!1}var _={},C="",R=A?"dgimsy":"gimsy",x=function(g,M){Object.defineProperty(_,g,{get:function(){return C+=M,!0}})},f={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var k in A&&(f.hasIndices="d"),f)x(k,f[k]);return Object.getOwnPropertyDescriptor(d,"flags").get.call(_)!==R||C!==R})&&o(d,"flags",{configurable:!0,get:a})},63945:(he,y,i)=>{"use strict";var e=i(41236).PROPER,n=i(11880),o=i(85027),a=i(34327),l=i(3689),u=i(63477),d="toString",s=RegExp.prototype,A=s[d];(l(function(){return"/a/b"!==A.call({source:"a",flags:"b"})})||e&&A.name!==d)&&n(s,d,function(){var x=o(this);return"/"+a(x.source)+"/"+a(u(x))},{unsafe:!0})},2918:(he,y,i)=>{"use strict";var f,e=i(79989),n=i(46576),o=i(82474).f,a=i(43126),l=i(34327),u=i(42124),d=i(74684),s=i(27413),A=i(53931),_=n("".slice),C=Math.min,R=s("endsWith");e({target:"String",proto:!0,forced:!(!A&&!R&&(f=o(String.prototype,"endsWith"),f&&!f.writable)||R)},{endsWith:function(k){var w=l(d(this));u(k);var g=arguments.length>1?arguments[1]:void 0,M=w.length,p=void 0===g?M:C(a(g),M),E=l(k);return _(w,p-E.length,p)===E}})},43843:(he,y,i)=>{"use strict";var e=i(79989),n=i(68844),o=i(42124),a=i(74684),l=i(34327),u=i(27413),d=n("".indexOf);e({target:"String",proto:!0,forced:!u("includes")},{includes:function(A){return!!~d(l(a(this)),l(o(A)),arguments.length>1?arguments[1]:void 0)}})},21694:(he,y,i)=>{"use strict";var e=i(10730).charAt,n=i(34327),o=i(618),a=i(91934),l=i(27807),u="String Iterator",d=o.set,s=o.getterFor(u);a(String,"String",function(A){d(this,{type:u,string:n(A),index:0})},function(){var x,_=s(this),C=_.string,R=_.index;return R>=C.length?l(void 0,!0):(x=e(C,R),_.index+=x.length,l(x,!1))})},22462:(he,y,i)=>{"use strict";var e=i(22615),n=i(65773),o=i(85027),a=i(981),l=i(43126),u=i(34327),d=i(74684),s=i(54849),A=i(71514),_=i(66100);n("match",function(C,R,x){return[function(k){var w=d(this),g=a(k)?void 0:s(k,C);return g?e(g,k,w):new RegExp(k)[C](u(w))},function(f){var k=o(this),w=u(f),g=x(R,k,w);if(g.done)return g.value;if(!k.global)return _(k,w);var M=k.unicode;k.lastIndex=0;for(var b,p=[],E=0;null!==(b=_(k,w));){var I=u(b[0]);p[E]=I,""===I&&(k.lastIndex=A(w,l(k.lastIndex),M)),E++}return 0===E?null:p}]})},8472:(he,y,i)=>{"use strict";var e=i(79989),n=i(77254).start;e({target:"String",proto:!0,forced:i(35947)},{padStart:function(l){return n(this,l,arguments.length>1?arguments[1]:void 0)}})},59588:(he,y,i)=>{"use strict";i(79989)({target:"String",proto:!0},{repeat:i(90534)})},56532:(he,y,i)=>{"use strict";var e=i(79989),n=i(22615),o=i(68844),a=i(74684),l=i(69985),u=i(981),d=i(91245),s=i(34327),A=i(54849),_=i(63477),C=i(27017),R=i(44201),x=i(53931),f=R("replace"),k=TypeError,w=o("".indexOf),g=o("".replace),M=o("".slice),p=Math.max;e({target:"String",proto:!0},{replaceAll:function(b,I){var D,F,P,O,U,V,K,X,me,L=a(this),J=0,Q=0,re="";if(!u(b)){if((D=d(b))&&(F=s(a(_(b))),!~w(F,"g")))throw new k("`.replaceAll` does not allow non-global regexes");if(P=A(b,f))return n(P,b,L,I);if(x&&D)return g(s(L),b,I)}for(O=s(L),U=s(b),(V=l(I))||(I=s(I)),X=p(1,K=U.length),J=w(O,U);-1!==J;)me=V?s(I(U,J,O)):C(U,O,J,[],void 0,I),re+=M(O,Q,J)+me,Q=J+K,J=J+X>O.length?-1:w(O,U,J+X);return Q<O.length&&(re+=M(O,Q)),re}})},57267:(he,y,i)=>{"use strict";var e=i(61735),n=i(22615),o=i(68844),a=i(65773),l=i(3689),u=i(85027),d=i(69985),s=i(981),A=i(68700),_=i(43126),C=i(34327),R=i(74684),x=i(71514),f=i(54849),k=i(27017),w=i(66100),M=i(44201)("replace"),p=Math.max,E=Math.min,b=o([].concat),I=o([].push),L=o("".indexOf),D=o("".slice),F=function(V){return void 0===V?V:String(V)},P="$0"==="a".replace(/./,"$0"),O=!!/./[M]&&""===/./[M]("a","$0");a("replace",function(V,K,X){var me=O?"$":"$0";return[function(Q,re){var de=R(this),te=s(Q)?void 0:f(Q,M);return te?n(te,Q,de,re):n(K,C(de),Q,re)},function(J,Q){var re=u(this),de=C(J);if("string"==typeof Q&&-1===L(Q,me)&&-1===L(Q,"$<")){var te=X(K,re,de,Q);if(te.done)return te.value}var j=d(Q);j||(Q=C(Q));var z,H=re.global;H&&(z=re.unicode,re.lastIndex=0);for(var se,q=[];null!==(se=w(re,de))&&(I(q,se),H);)""===C(se[0])&&(re.lastIndex=x(de,_(re.lastIndex),z));for(var _e="",ge=0,Ce=0;Ce<q.length;Ce++){for(var xe,Te=C((se=q[Ce])[0]),De=p(E(A(se.index),de.length),0),fe=[],Oe=1;Oe<se.length;Oe++)I(fe,F(se[Oe]));var Le=se.groups;if(j){var Gt=b([Te],fe,De,de);void 0!==Le&&I(Gt,Le),xe=C(e(Q,void 0,Gt))}else xe=k(Te,de,De,fe,Le,Q);De>=ge&&(_e+=D(de,ge,De)+xe,ge=De+Te.length)}return _e+D(de,ge)}]},!!l(function(){var V=/./;return V.exec=function(){var K=[];return K.groups={a:"7"},K},"7"!=="".replace(V,"$<a>")})||!P||O)},61514:(he,y,i)=>{"use strict";var e=i(22615),n=i(65773),o=i(85027),a=i(981),l=i(74684),u=i(70953),d=i(34327),s=i(54849),A=i(66100);n("search",function(_,C,R){return[function(f){var k=l(this),w=a(f)?void 0:s(f,_);return w?e(w,f,k):new RegExp(f)[_](d(k))},function(x){var f=o(this),k=d(x),w=R(C,f,k);if(w.done)return w.value;var g=f.lastIndex;u(g,0)||(f.lastIndex=0);var M=A(f,k);return u(f.lastIndex,g)||(f.lastIndex=g),null===M?-1:M.index}]})},9873:(he,y,i)=>{"use strict";var e=i(22615),n=i(68844),o=i(65773),a=i(85027),l=i(981),u=i(74684),d=i(76373),s=i(71514),A=i(43126),_=i(34327),C=i(54849),R=i(66100),x=i(87901),f=i(3689),k=x.UNSUPPORTED_Y,g=Math.min,M=n([].push),p=n("".slice),E=!f(function(){var I=/(?:)/,L=I.exec;I.exec=function(){return L.apply(this,arguments)};var D="ab".split(I);return 2!==D.length||"a"!==D[0]||"b"!==D[1]}),b="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;o("split",function(I,L,D){var F="0".split(void 0,0).length?function(P,O){return void 0===P&&0===O?[]:e(L,this,P,O)}:L;return[function(O,U){var V=u(this),K=l(O)?void 0:C(O,I);return K?e(K,O,V,U):e(F,_(V),O,U)},function(P,O){var U=a(this),V=_(P);if(!b){var K=D(F,U,V,O,F!==L);if(K.done)return K.value}var X=d(U,RegExp),me=U.unicode,Q=new X(k?"^(?:"+U.source+")":U,(U.ignoreCase?"i":"")+(U.multiline?"m":"")+(U.unicode?"u":"")+(k?"g":"y")),re=void 0===O?4294967295:O>>>0;if(0===re)return[];if(0===V.length)return null===R(Q,V)?[V]:[];for(var de=0,te=0,j=[];te<V.length;){Q.lastIndex=k?0:te;var z,H=R(Q,k?p(V,te):V);if(null===H||(z=g(A(Q.lastIndex+(k?te:0)),V.length))===de)te=s(V,te,me);else{if(M(j,p(V,de,te)),j.length===re)return j;for(var q=1;q<=H.length-1;q++)if(M(j,H[q]),j.length===re)return j;te=de=z}}return M(j,p(V,de)),j}]},b||!E,k)},268:(he,y,i)=>{"use strict";var f,e=i(79989),n=i(46576),o=i(82474).f,a=i(43126),l=i(34327),u=i(42124),d=i(74684),s=i(27413),A=i(53931),_=n("".slice),C=Math.min,R=s("startsWith");e({target:"String",proto:!0,forced:!(!A&&!R&&(f=o(String.prototype,"startsWith"),f&&!f.writable)||R)},{startsWith:function(k){var w=l(d(this));u(k);var g=a(C(arguments.length>1?arguments[1]:void 0,w.length)),M=l(k);return _(w,g,g+M.length)===M}})},28436:(he,y,i)=>{"use strict";var e=i(79989),n=i(61435).trim;e({target:"String",proto:!0,forced:i(75984)("trim")},{trim:function(){return n(this)}})},58373:(he,y,i)=>{"use strict";i(35405)("asyncIterator")},37855:(he,y,i)=>{"use strict";var e=i(79989),n=i(19037),o=i(22615),a=i(68844),l=i(53931),u=i(67697),d=i(50146),s=i(3689),A=i(36812),_=i(23622),C=i(85027),R=i(65290),x=i(18360),f=i(34327),k=i(75684),w=i(25391),g=i(20300),M=i(72741),p=i(26062),E=i(7518),b=i(82474),I=i(72560),L=i(98920),D=i(49556),F=i(11880),P=i(62148),O=i(83430),U=i(2713),V=i(57248),K=i(14630),X=i(44201),me=i(96145),J=i(35405),Q=i(13032),re=i(55997),de=i(618),te=i(2960).forEach,j=U("hidden"),H="Symbol",z="prototype",q=de.set,se=de.getterFor(H),ne=Object[z],_e=n.Symbol,ge=_e&&_e[z],Ce=n.RangeError,Te=n.TypeError,De=n.QObject,fe=b.f,xe=I.f,Oe=p.f,Le=D.f,Gt=a([].push),Ut=O("symbols"),An=O("op-symbols"),$n=O("wks"),xn=!De||!De[z]||!De[z].findChild,mt=function(Eo,Ko,xo){var Bn=fe(ne,Ko);Bn&&delete ne[Ko],xe(Eo,Ko,xo),Bn&&Eo!==ne&&xe(ne,Ko,Bn)},ut=u&&s(function(){return 7!==w(xe({},"a",{get:function(){return xe(this,"a",{value:7}).a}})).a})?mt:xe,Wt=function(Eo,Ko){var xo=Ut[Eo]=w(ge);return q(xo,{type:H,tag:Eo,description:Ko}),u||(xo.description=Ko),xo},dn=function(Ko,xo,Bn){Ko===ne&&dn(An,xo,Bn),C(Ko);var Xt=x(xo);return C(Bn),A(Ut,Xt)?(Bn.enumerable?(A(Ko,j)&&Ko[j][Xt]&&(Ko[j][Xt]=!1),Bn=w(Bn,{enumerable:k(0,!1)})):(A(Ko,j)||xe(Ko,j,k(1,w(null))),Ko[j][Xt]=!0),ut(Ko,Xt,Bn)):xe(Ko,Xt,Bn)},sn=function(Ko,xo){C(Ko);var Bn=R(xo),Xt=g(Bn).concat(mi(Bn));return te(Xt,function(Ji){(!u||o(yi,Bn,Ji))&&dn(Ko,Ji,Bn[Ji])}),Ko},yi=function(Ko){var xo=x(Ko),Bn=o(Le,this,xo);return!(this===ne&&A(Ut,xo)&&!A(An,xo))&&(!(Bn||!A(this,xo)||!A(Ut,xo)||A(this,j)&&this[j][xo])||Bn)},nn=function(Ko,xo){var Bn=R(Ko),Xt=x(xo);if(Bn!==ne||!A(Ut,Xt)||A(An,Xt)){var Ji=fe(Bn,Xt);return Ji&&A(Ut,Xt)&&!(A(Bn,j)&&Bn[j][Xt])&&(Ji.enumerable=!0),Ji}},Mi=function(Ko){var xo=Oe(R(Ko)),Bn=[];return te(xo,function(Xt){!A(Ut,Xt)&&!A(V,Xt)&&Gt(Bn,Xt)}),Bn},mi=function(Eo){var Ko=Eo===ne,xo=Oe(Ko?An:R(Eo)),Bn=[];return te(xo,function(Xt){A(Ut,Xt)&&(!Ko||A(ne,Xt))&&Gt(Bn,Ut[Xt])}),Bn};d||(F(ge=(_e=function(){if(_(ge,this))throw new Te("Symbol is not a constructor");var Ko=arguments.length&&void 0!==arguments[0]?f(arguments[0]):void 0,xo=K(Ko),Bn=function(Xt){var Ji=void 0===this?n:this;Ji===ne&&o(Bn,An,Xt),A(Ji,j)&&A(Ji[j],xo)&&(Ji[j][xo]=!1);var En=k(1,Xt);try{ut(Ji,xo,En)}catch(un){if(!(un instanceof Ce))throw un;mt(Ji,xo,En)}};return u&&xn&&ut(ne,xo,{configurable:!0,set:Bn}),Wt(xo,Ko)})[z],"toString",function(){return se(this).tag}),F(_e,"withoutSetter",function(Eo){return Wt(K(Eo),Eo)}),D.f=yi,I.f=dn,L.f=sn,b.f=nn,M.f=p.f=Mi,E.f=mi,me.f=function(Eo){return Wt(X(Eo),Eo)},u&&(P(ge,"description",{configurable:!0,get:function(){return se(this).description}}),l||F(ne,"propertyIsEnumerable",yi,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!d,sham:!d},{Symbol:_e}),te(g($n),function(Eo){J(Eo)}),e({target:H,stat:!0,forced:!d},{useSetter:function(){xn=!0},useSimple:function(){xn=!1}}),e({target:"Object",stat:!0,forced:!d,sham:!u},{create:function(Ko,xo){return void 0===xo?w(Ko):sn(w(Ko),xo)},defineProperty:dn,defineProperties:sn,getOwnPropertyDescriptor:nn}),e({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:Mi}),Q(),re(_e,H),V[j]=!0},86544:(he,y,i)=>{"use strict";var e=i(79989),n=i(67697),o=i(19037),a=i(68844),l=i(36812),u=i(69985),d=i(23622),s=i(34327),A=i(62148),_=i(8758),C=o.Symbol,R=C&&C.prototype;if(n&&u(C)&&(!("description"in R)||void 0!==C().description)){var x={},f=function(){var I=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),L=d(R,this)?new C(I):void 0===I?C():C(I);return""===I&&(x[L]=!0),L};_(f,C),f.prototype=R,R.constructor=f;var k="Symbol(description detection)"===String(C("description detection")),w=a(R.valueOf),g=a(R.toString),M=/^Symbol\((.*)\)[^)]+$/,p=a("".replace),E=a("".slice);A(R,"description",{configurable:!0,get:function(){var I=w(this);if(l(x,I))return"";var L=g(I),D=k?E(L,7,-1):p(L,M,"$1");return""===D?void 0:D}}),e({global:!0,constructor:!0,forced:!0},{Symbol:f})}},43975:(he,y,i)=>{"use strict";var e=i(79989),n=i(76058),o=i(36812),a=i(34327),l=i(83430),u=i(46549),d=l("string-to-symbol-registry"),s=l("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!u},{for:function(A){var _=a(A);if(o(d,_))return d[_];var C=n("Symbol")(_);return d[_]=C,s[C]=_,C}})},84254:(he,y,i)=>{"use strict";i(35405)("iterator")},59749:(he,y,i)=>{"use strict";i(37855),i(43975),i(81445),i(48324),i(79434)},81445:(he,y,i)=>{"use strict";var e=i(79989),n=i(36812),o=i(30734),a=i(23691),l=i(83430),u=i(46549),d=l("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!u},{keyFor:function(A){if(!o(A))throw new TypeError(a(A)+" is not a symbol");if(n(d,A))return d[A]}})},69373:(he,y,i)=>{"use strict";var e=i(35405),n=i(13032);e("toPrimitive"),n()},66793:(he,y,i)=>{"use strict";var e=i(76058),n=i(35405),o=i(55997);n("toStringTag"),o(e("Symbol"),"Symbol")},36664:(he,y,i)=>{"use strict";var e=i(68844),n=i(54872),a=e(i(70357)),l=n.aTypedArray;(0,n.exportTypedArrayMethod)("copyWithin",function(s,A){return a(l(this),s,A,arguments.length>2?arguments[2]:void 0)})},55980:(he,y,i)=>{"use strict";var e=i(54872),n=i(2960).every,o=e.aTypedArray;(0,e.exportTypedArrayMethod)("every",function(u){return n(o(this),u,arguments.length>1?arguments[1]:void 0)})},79943:(he,y,i)=>{"use strict";var e=i(54872),n=i(62872),o=i(71530),a=i(50926),l=i(22615),u=i(68844),d=i(3689),s=e.aTypedArray,A=e.exportTypedArrayMethod,_=u("".slice);A("fill",function(x){var f=arguments.length;s(this);var k="Big"===_(a(this),0,3)?o(x):+x;return l(n,this,k,f>1?arguments[1]:void 0,f>2?arguments[2]:void 0)},d(function(){var R=0;return new Int8Array(2).fill({valueOf:function(){return R++}}),1!==R}))},96089:(he,y,i)=>{"use strict";var e=i(54872),n=i(2960).filter,o=i(20716),a=e.aTypedArray;(0,e.exportTypedArrayMethod)("filter",function(d){var s=n(a(this),d,arguments.length>1?arguments[1]:void 0);return o(this,s)})},48690:(he,y,i)=>{"use strict";var e=i(54872),n=i(2960).findIndex,o=e.aTypedArray;(0,e.exportTypedArrayMethod)("findIndex",function(u){return n(o(this),u,arguments.length>1?arguments[1]:void 0)})},18539:(he,y,i)=>{"use strict";var e=i(54872),n=i(2960).find,o=e.aTypedArray;(0,e.exportTypedArrayMethod)("find",function(u){return n(o(this),u,arguments.length>1?arguments[1]:void 0)})},45385:(he,y,i)=>{"use strict";var e=i(54872),n=i(2960).forEach,o=e.aTypedArray;(0,e.exportTypedArrayMethod)("forEach",function(u){n(o(this),u,arguments.length>1?arguments[1]:void 0)})},85552:(he,y,i)=>{"use strict";var e=i(54872),n=i(84328).includes,o=e.aTypedArray;(0,e.exportTypedArrayMethod)("includes",function(u){return n(o(this),u,arguments.length>1?arguments[1]:void 0)})},31803:(he,y,i)=>{"use strict";var e=i(54872),n=i(84328).indexOf,o=e.aTypedArray;(0,e.exportTypedArrayMethod)("indexOf",function(u){return n(o(this),u,arguments.length>1?arguments[1]:void 0)})},91565:(he,y,i)=>{"use strict";var e=i(19037),n=i(3689),o=i(68844),a=i(54872),l=i(752),d=i(44201)("iterator"),s=e.Uint8Array,A=o(l.values),_=o(l.keys),C=o(l.entries),R=a.aTypedArray,x=a.exportTypedArrayMethod,f=s&&s.prototype,k=!n(function(){f[d].call([1])}),w=!!f&&f.values&&f[d]===f.values&&"values"===f.values.name,g=function(){return A(R(this))};x("entries",function(){return C(R(this))},k),x("keys",function(){return _(R(this))},k),x("values",g,k||!w,{name:"values"}),x(d,g,k||!w,{name:"values"})},67987:(he,y,i)=>{"use strict";var e=i(54872),n=i(68844),o=e.aTypedArray,a=e.exportTypedArrayMethod,l=n([].join);a("join",function(d){return l(o(this),d)})},49365:(he,y,i)=>{"use strict";var e=i(54872),n=i(61735),o=i(60953),a=e.aTypedArray;(0,e.exportTypedArrayMethod)("lastIndexOf",function(d){var s=arguments.length;return n(o,a(this),s>1?[d,arguments[1]]:[d])})},80677:(he,y,i)=>{"use strict";var e=i(54872),n=i(2960).map,o=i(47338),a=e.aTypedArray;(0,e.exportTypedArrayMethod)("map",function(d){return n(a(this),d,arguments.length>1?arguments[1]:void 0,function(s,A){return new(o(s))(A)})})},41165:(he,y,i)=>{"use strict";var e=i(54872),n=i(88820).right,o=e.aTypedArray;(0,e.exportTypedArrayMethod)("reduceRight",function(u){var d=arguments.length;return n(o(this),u,d,d>1?arguments[1]:void 0)})},18118:(he,y,i)=>{"use strict";var e=i(54872),n=i(88820).left,o=e.aTypedArray;(0,e.exportTypedArrayMethod)("reduce",function(u){var d=arguments.length;return n(o(this),u,d,d>1?arguments[1]:void 0)})},71522:(he,y,i)=>{"use strict";var e=i(54872),n=e.aTypedArray,a=Math.floor;(0,e.exportTypedArrayMethod)("reverse",function(){for(var _,u=this,d=n(u).length,s=a(d/2),A=0;A<s;)_=u[A],u[A++]=u[--d],u[d]=_;return u})},79976:(he,y,i)=>{"use strict";var e=i(19037),n=i(22615),o=i(54872),a=i(6310),l=i(83250),u=i(90690),d=i(3689),s=e.RangeError,A=e.Int8Array,_=A&&A.prototype,C=_&&_.set,R=o.aTypedArray,x=o.exportTypedArrayMethod,f=!d(function(){var w=new Uint8ClampedArray(2);return n(C,w,{length:1,0:3},1),3!==w[1]}),k=f&&o.NATIVE_ARRAY_BUFFER_VIEWS&&d(function(){var w=new A(2);return w.set(1),w.set("2",1),0!==w[0]||2!==w[1]});x("set",function(g){R(this);var M=l(arguments.length>1?arguments[1]:void 0,1),p=u(g);if(f)return n(C,this,p,M);var E=this.length,b=a(p),I=0;if(b+M>E)throw new s("Wrong length");for(;I<b;)this[M+I]=p[I++]},!f||k)},4797:(he,y,i)=>{"use strict";var e=i(54872),n=i(47338),o=i(3689),a=i(96004),l=e.aTypedArray;(0,e.exportTypedArrayMethod)("slice",function(A,_){for(var C=a(l(this),A,_),R=n(this),x=0,f=C.length,k=new R(f);f>x;)k[x]=C[x++];return k},o(function(){new Int8Array(1).slice()}))},7300:(he,y,i)=>{"use strict";var e=i(54872),n=i(2960).some,o=e.aTypedArray;(0,e.exportTypedArrayMethod)("some",function(u){return n(o(this),u,arguments.length>1?arguments[1]:void 0)})},93356:(he,y,i)=>{"use strict";var e=i(19037),n=i(46576),o=i(3689),a=i(34364),l=i(50382),u=i(54872),d=i(97365),s=i(37298),A=i(3615),_=i(27922),C=u.aTypedArray,R=u.exportTypedArrayMethod,x=e.Uint16Array,f=x&&n(x.prototype.sort),k=!(!f||o(function(){f(new x(2),null)})&&o(function(){f(new x(2),{})})),w=!!f&&!o(function(){if(A)return A<74;if(d)return d<67;if(s)return!0;if(_)return _<602;var E,b,M=new x(516),p=Array(516);for(E=0;E<516;E++)b=E%4,M[E]=515-E,p[E]=E-2*b+3;for(f(M,function(I,L){return(I/4|0)-(L/4|0)}),E=0;E<516;E++)if(M[E]!==p[E])return!0});R("sort",function(p){return void 0!==p&&a(p),w?f(this,p):l(C(this),(M=p,function(p,E){return void 0!==M?+M(p,E)||0:E!=E?-1:p!=p?1:0===p&&0===E?1/p>0&&1/E<0?1:-1:p>E}));var M},!w||k)},62533:(he,y,i)=>{"use strict";var e=i(54872),n=i(43126),o=i(27578),a=i(47338),l=e.aTypedArray;(0,e.exportTypedArrayMethod)("subarray",function(s,A){var _=l(this),C=_.length,R=o(s,C);return new(a(_))(_.buffer,_.byteOffset+R*_.BYTES_PER_ELEMENT,n((void 0===A?C:o(A,C))-R))})},99724:(he,y,i)=>{"use strict";var e=i(19037),n=i(61735),o=i(54872),a=i(3689),l=i(96004),u=e.Int8Array,d=o.aTypedArray,s=o.exportTypedArrayMethod,A=[].toLocaleString,_=!!u&&a(function(){A.call(new u(1))});s("toLocaleString",function(){return n(A,_?l(d(this)):d(this),l(arguments))},a(function(){return[1,2].toLocaleString()!==new u([1,2]).toLocaleString()})||!a(function(){u.prototype.toLocaleString.call([1,2])}))},99901:(he,y,i)=>{"use strict";var e=i(54872).exportTypedArrayMethod,n=i(3689),o=i(19037),a=i(68844),l=o.Uint8Array,u=l&&l.prototype||{},d=[].toString,s=a([].join);n(function(){d.call({})})&&(d=function(){return s(this)}),e("toString",d,u.toString!==d)},28607:(he,y,i)=>{"use strict";i(31158)("Uint8",function(n){return function(a,l,u){return n(this,a,l,u)}})},45164:(he,y,i)=>{"use strict";var E,e=i(71594),n=i(19037),o=i(68844),a=i(6045),l=i(45375),u=i(20319),d=i(70637),s=i(48999),A=i(618).enforce,_=i(3689),C=i(1009),R=Object,x=Array.isArray,f=R.isExtensible,k=R.isFrozen,w=R.isSealed,g=R.freeze,M=R.seal,p=!n.ActiveXObject&&"ActiveXObject"in n,b=function(V){return function(){return V(this,arguments.length?arguments[0]:void 0)}},I=u("WeakMap",b,d),L=I.prototype,D=o(L.set);if(C)if(p){E=d.getConstructor(b,"WeakMap",!0),l.enable();var P=o(L.delete),O=o(L.has),U=o(L.get);a(L,{delete:function(V){if(s(V)&&!f(V)){var K=A(this);return K.frozen||(K.frozen=new E),P(this,V)||K.frozen.delete(V)}return P(this,V)},has:function(K){if(s(K)&&!f(K)){var X=A(this);return X.frozen||(X.frozen=new E),O(this,K)||X.frozen.has(K)}return O(this,K)},get:function(K){if(s(K)&&!f(K)){var X=A(this);return X.frozen||(X.frozen=new E),O(this,K)?U(this,K):X.frozen.get(K)}return U(this,K)},set:function(K,X){if(s(K)&&!f(K)){var me=A(this);me.frozen||(me.frozen=new E),O(this,K)?D(this,K,X):me.frozen.set(K,X)}else D(this,K,X);return this}})}else e&&_(function(){var V=g([]);return D(new I,V,1),!k(V)})&&a(L,{set:function(K,X){var me;return x(K)&&(k(K)?me=g:w(K)&&(me=M)),D(this,K,X),me&&me(K),this}})},51090:(he,y,i)=>{"use strict";i(45164)},78832:(he,y,i)=>{"use strict";i(45398)},38320:(he,y,i)=>{"use strict";i(56532)},47522:(he,y,i)=>{"use strict";var e=i(19037),n=i(66338),o=i(33265),a=i(57612),l=i(75773),u=function(s){if(s&&s.forEach!==a)try{l(s,"forEach",a)}catch{s.forEach=a}};for(var d in n)n[d]&&u(e[d]&&e[d].prototype);u(o)},76265:(he,y,i)=>{"use strict";var e=i(19037),n=i(66338),o=i(33265),a=i(752),l=i(75773),u=i(55997),s=i(44201)("iterator"),A=a.values,_=function(R,x){if(R){if(R[s]!==A)try{l(R,s,A)}catch{R[s]=A}if(u(R,x,!0),n[x])for(var f in a)if(R[f]!==a[f])try{l(R,f,a[f])}catch{R[f]=a[f]}}};for(var C in n)_(e[C]&&e[C].prototype,C);_(o,"DOMTokenList")},10209:(he,y,i)=>{"use strict";var e=i(79989),n=i(19037),a=i(8552)(n.setInterval,!0);e({global:!0,bind:!0,forced:n.setInterval!==a},{setInterval:a})},83509:(he,y,i)=>{"use strict";var e=i(79989),n=i(19037),a=i(8552)(n.setTimeout,!0);e({global:!0,bind:!0,forced:n.setTimeout!==a},{setTimeout:a})},96869:(he,y,i)=>{"use strict";i(10209),i(83509)},2625:(he,y,i)=>{"use strict";i(752);var e=i(79989),n=i(19037),o=i(70517),a=i(22615),l=i(68844),u=i(67697),d=i(76837),s=i(11880),A=i(62148),_=i(6045),C=i(55997),R=i(30974),x=i(618),f=i(767),k=i(69985),w=i(36812),g=i(54071),M=i(50926),p=i(85027),E=i(48999),b=i(34327),I=i(25391),L=i(75684),D=i(5185),F=i(91664),P=i(27807),O=i(21500),U=i(44201),V=i(50382),K=U("iterator"),X="URLSearchParams",me=X+"Iterator",J=x.set,Q=x.getterFor(X),re=x.getterFor(me),de=o("fetch"),te=o("Request"),j=o("Headers"),H=te&&te.prototype,z=j&&j.prototype,q=n.RegExp,se=n.TypeError,ne=n.decodeURIComponent,_e=n.encodeURIComponent,ge=l("".charAt),Ce=l([].join),Te=l([].push),De=l("".replace),fe=l([].shift),xe=l([].splice),Oe=l("".split),Le=l("".slice),Gt=/\+/g,Ut=Array(4),An=function(xo){return Ut[xo-1]||(Ut[xo-1]=q("((?:%[\\da-f]{2}){"+xo+"})","gi"))},$n=function(xo){try{return ne(xo)}catch{return xo}},xn=function(xo){var Bn=De(xo,Gt," "),Xt=4;try{return ne(Bn)}catch{for(;Xt;)Bn=De(Bn,An(Xt--),$n);return Bn}},mt=/[!'()~]|%20/g,ut={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Wt=function(xo){return ut[xo]},dn=function(xo){return De(_e(xo),mt,Wt)},sn=R(function(Bn,Xt){J(this,{type:me,target:Q(Bn).entries,index:0,kind:Xt})},X,function(){var Bn=re(this),Xt=Bn.target,Ji=Bn.index++;if(!Xt||Ji>=Xt.length)return Bn.target=void 0,P(void 0,!0);var En=Xt[Ji];switch(Bn.kind){case"keys":return P(En.key,!1);case"values":return P(En.value,!1)}return P([En.key,En.value],!1)},!0),fn=function(xo){this.entries=[],this.url=null,void 0!==xo&&(E(xo)?this.parseObject(xo):this.parseQuery("string"==typeof xo?"?"===ge(xo,0)?Le(xo,1):xo:b(xo)))};fn.prototype={type:X,bindURL:function(xo){this.url=xo,this.update()},parseObject:function(xo){var Ji,En,un,Ki,Fn,oi,It,Bn=this.entries,Xt=F(xo);if(Xt)for(En=(Ji=D(xo,Xt)).next;!(un=a(En,Ji)).done;){if(Ki=D(p(un.value)),(oi=a(Fn=Ki.next,Ki)).done||(It=a(Fn,Ki)).done||!a(Fn,Ki).done)throw new se("Expected sequence with length 2");Te(Bn,{key:b(oi.value),value:b(It.value)})}else for(var Bt in xo)w(xo,Bt)&&Te(Bn,{key:Bt,value:b(xo[Bt])})},parseQuery:function(xo){if(xo)for(var En,un,Bn=this.entries,Xt=Oe(xo,"&"),Ji=0;Ji<Xt.length;)(En=Xt[Ji++]).length&&(un=Oe(En,"="),Te(Bn,{key:xn(fe(un)),value:xn(Ce(un,"="))}))},serialize:function(){for(var Ji,xo=this.entries,Bn=[],Xt=0;Xt<xo.length;)Ji=xo[Xt++],Te(Bn,dn(Ji.key)+"="+dn(Ji.value));return Ce(Bn,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var yi=function(){f(this,nn);var Xt=J(this,new fn(arguments.length>0?arguments[0]:void 0));u||(this.size=Xt.entries.length)},nn=yi.prototype;if(_(nn,{append:function(Bn,Xt){var Ji=Q(this);O(arguments.length,2),Te(Ji.entries,{key:b(Bn),value:b(Xt)}),u||this.length++,Ji.updateURL()},delete:function(xo){for(var Bn=Q(this),Xt=O(arguments.length,1),Ji=Bn.entries,En=b(xo),un=Xt<2?void 0:arguments[1],Ki=void 0===un?un:b(un),Fn=0;Fn<Ji.length;){var oi=Ji[Fn];if(oi.key!==En||void 0!==Ki&&oi.value!==Ki)Fn++;else if(xe(Ji,Fn,1),void 0!==Ki)break}u||(this.size=Ji.length),Bn.updateURL()},get:function(Bn){var Xt=Q(this).entries;O(arguments.length,1);for(var Ji=b(Bn),En=0;En<Xt.length;En++)if(Xt[En].key===Ji)return Xt[En].value;return null},getAll:function(Bn){var Xt=Q(this).entries;O(arguments.length,1);for(var Ji=b(Bn),En=[],un=0;un<Xt.length;un++)Xt[un].key===Ji&&Te(En,Xt[un].value);return En},has:function(Bn){for(var Xt=Q(this).entries,Ji=O(arguments.length,1),En=b(Bn),un=Ji<2?void 0:arguments[1],Ki=void 0===un?un:b(un),Fn=0;Fn<Xt.length;){var oi=Xt[Fn++];if(oi.key===En&&(void 0===Ki||oi.value===Ki))return!0}return!1},set:function(Bn,Xt){var Ji=Q(this);O(arguments.length,1);for(var It,En=Ji.entries,un=!1,Ki=b(Bn),Fn=b(Xt),oi=0;oi<En.length;oi++)(It=En[oi]).key===Ki&&(un?xe(En,oi--,1):(un=!0,It.value=Fn));un||Te(En,{key:Ki,value:Fn}),u||(this.size=En.length),Ji.updateURL()},sort:function(){var Bn=Q(this);V(Bn.entries,function(Xt,Ji){return Xt.key>Ji.key?1:-1}),Bn.updateURL()},forEach:function(Bn){for(var un,Xt=Q(this).entries,Ji=g(Bn,arguments.length>1?arguments[1]:void 0),En=0;En<Xt.length;)Ji((un=Xt[En++]).value,un.key,this)},keys:function(){return new sn(this,"keys")},values:function(){return new sn(this,"values")},entries:function(){return new sn(this,"entries")}},{enumerable:!0}),s(nn,K,nn.entries,{name:"entries"}),s(nn,"toString",function(){return Q(this).serialize()},{enumerable:!0}),u&&A(nn,"size",{get:function(){return Q(this).entries.length},configurable:!0,enumerable:!0}),C(yi,X),e({global:!0,constructor:!0,forced:!d},{URLSearchParams:yi}),!d&&k(j)){var Mi=l(z.has),mi=l(z.set),Eo=function(xo){if(E(xo)){var Xt,Bn=xo.body;if(M(Bn)===X)return Xt=xo.headers?new j(xo.headers):new j,Mi(Xt,"content-type")||mi(Xt,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),I(xo,{body:L(0,b(Bn)),headers:L(0,Xt)})}return xo};if(k(de)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(Bn){return de(Bn,arguments.length>1?Eo(arguments[1]):{})}}),k(te)){var Ko=function(Bn){return f(this,H),new te(Bn,arguments.length>1?Eo(arguments[1]):{})};H.constructor=Ko,Ko.prototype=H,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Ko})}}he.exports={URLSearchParams:yi,getState:Q}},79307:(he,y,i)=>{"use strict";i(2625)},79391:(he,y,i)=>{"use strict";i(21694);var mt,e=i(79989),n=i(67697),o=i(76837),a=i(19037),l=i(54071),u=i(68844),d=i(11880),s=i(62148),A=i(767),_=i(36812),C=i(45394),R=i(21055),x=i(96004),f=i(10730).codeAt,k=i(6430),w=i(34327),g=i(55997),M=i(21500),p=i(2625),E=i(618),b=E.set,I=E.getterFor("URL"),L=p.URLSearchParams,D=p.getState,F=a.URL,P=a.TypeError,O=a.parseInt,U=Math.floor,V=Math.pow,K=u("".charAt),X=u(/./.exec),me=u([].join),J=u(1..toString),Q=u([].pop),re=u([].push),de=u("".replace),te=u([].shift),j=u("".split),H=u("".slice),z=u("".toLowerCase),q=u([].unshift),ne="Invalid scheme",_e="Invalid host",ge="Invalid port",Ce=/[a-z]/i,Te=/[\d+-.a-z]/i,De=/\d/,fe=/^0x/i,xe=/^[0-7]+$/,Oe=/^\d+$/,Le=/^[\da-f]+$/i,Gt=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Ut=/[\0\t\n\r #/:<>?@[\\\]^|]/,An=/^[\u0000-\u0020]+/,$n=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,xn=/[\t\n\r]/g,sn=function(Ei){var li,Xi,ki,bo;if("number"==typeof Ei){for(li=[],Xi=0;Xi<4;Xi++)q(li,Ei%256),Ei=U(Ei/256);return me(li,".")}if("object"==typeof Ei){for(li="",ki=function(Ei){for(var li=null,Xi=1,ki=null,bo=0,jo=0;jo<8;jo++)0!==Ei[jo]?(bo>Xi&&(li=ki,Xi=bo),ki=null,bo=0):(null===ki&&(ki=jo),++bo);return bo>Xi&&(li=ki,Xi=bo),li}(Ei),Xi=0;Xi<8;Xi++)bo&&0===Ei[Xi]||(bo&&(bo=!1),ki===Xi?(li+=Xi?":":"::",bo=!0):(li+=J(Ei[Xi],16),Xi<7&&(li+=":")));return"["+li+"]"}return Ei},fn={},yi=C({},fn,{" ":1,'"':1,"<":1,">":1,"`":1}),nn=C({},yi,{"#":1,"?":1,"{":1,"}":1}),Mi=C({},nn,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),mi=function(Ei,li){var Xi=f(Ei,0);return Xi>32&&Xi<127&&!_(li,Ei)?Ei:encodeURIComponent(Ei)},Eo={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Ko=function(Ei,li){var Xi;return 2===Ei.length&&X(Ce,K(Ei,0))&&(":"===(Xi=K(Ei,1))||!li&&"|"===Xi)},xo=function(Ei){var li;return Ei.length>1&&Ko(H(Ei,0,2))&&(2===Ei.length||"/"===(li=K(Ei,2))||"\\"===li||"?"===li||"#"===li)},Bn=function(Ei){return"."===Ei||"%2e"===z(Ei)},Xt=function(Ei){return".."===(Ei=z(Ei))||"%2e."===Ei||".%2e"===Ei||"%2e%2e"===Ei},Ji={},En={},un={},Ki={},Fn={},oi={},It={},Bt={},xt={},wt={},Mt={},pt={},Lt={},tt={},Ne={},vt={},ln={},jn={},Pi={},go={},si={},ot=function(Ei,li,Xi){var bo,jo,wn,ki=w(Ei);if(li){if(jo=this.parse(ki))throw new P(jo);this.searchParams=null}else{if(void 0!==Xi&&(bo=new ot(Xi,!0)),jo=this.parse(ki,null,bo))throw new P(jo);(wn=D(new L)).bindURL(this),this.searchParams=wn}};ot.prototype={type:"URL",parse:function(Ei,li,Xi){var Xo,Lo,or,xr,ki=this,bo=li||Ji,jo=0,wn="",Zi=!1,oo=!1,Bi=!1;for(Ei=w(Ei),li||(ki.scheme="",ki.username="",ki.password="",ki.host=null,ki.port=null,ki.path=[],ki.query=null,ki.fragment=null,ki.cannotBeABaseURL=!1,Ei=de(Ei,An,""),Ei=de(Ei,$n,"$1")),Ei=de(Ei,xn,""),Xo=R(Ei);jo<=Xo.length;){switch(Lo=Xo[jo],bo){case Ji:if(!Lo||!X(Ce,Lo)){if(li)return ne;bo=un;continue}wn+=z(Lo),bo=En;break;case En:if(Lo&&(X(Te,Lo)||"+"===Lo||"-"===Lo||"."===Lo))wn+=z(Lo);else{if(":"!==Lo){if(li)return ne;wn="",bo=un,jo=0;continue}if(li&&(ki.isSpecial()!==_(Eo,wn)||"file"===wn&&(ki.includesCredentials()||null!==ki.port)||"file"===ki.scheme&&!ki.host))return;if(ki.scheme=wn,li)return void(ki.isSpecial()&&Eo[ki.scheme]===ki.port&&(ki.port=null));wn="","file"===ki.scheme?bo=tt:ki.isSpecial()&&Xi&&Xi.scheme===ki.scheme?bo=Ki:ki.isSpecial()?bo=Bt:"/"===Xo[jo+1]?(bo=Fn,jo++):(ki.cannotBeABaseURL=!0,re(ki.path,""),bo=Pi)}break;case un:if(!Xi||Xi.cannotBeABaseURL&&"#"!==Lo)return ne;if(Xi.cannotBeABaseURL&&"#"===Lo){ki.scheme=Xi.scheme,ki.path=x(Xi.path),ki.query=Xi.query,ki.fragment="",ki.cannotBeABaseURL=!0,bo=si;break}bo="file"===Xi.scheme?tt:oi;continue;case Ki:if("/"!==Lo||"/"!==Xo[jo+1]){bo=oi;continue}bo=xt,jo++;break;case Fn:if("/"===Lo){bo=wt;break}bo=jn;continue;case oi:if(ki.scheme=Xi.scheme,Lo===mt)ki.username=Xi.username,ki.password=Xi.password,ki.host=Xi.host,ki.port=Xi.port,ki.path=x(Xi.path),ki.query=Xi.query;else if("/"===Lo||"\\"===Lo&&ki.isSpecial())bo=It;else if("?"===Lo)ki.username=Xi.username,ki.password=Xi.password,ki.host=Xi.host,ki.port=Xi.port,ki.path=x(Xi.path),ki.query="",bo=go;else{if("#"!==Lo){ki.username=Xi.username,ki.password=Xi.password,ki.host=Xi.host,ki.port=Xi.port,ki.path=x(Xi.path),ki.path.length--,bo=jn;continue}ki.username=Xi.username,ki.password=Xi.password,ki.host=Xi.host,ki.port=Xi.port,ki.path=x(Xi.path),ki.query=Xi.query,ki.fragment="",bo=si}break;case It:if(!ki.isSpecial()||"/"!==Lo&&"\\"!==Lo){if("/"!==Lo){ki.username=Xi.username,ki.password=Xi.password,ki.host=Xi.host,ki.port=Xi.port,bo=jn;continue}bo=wt}else bo=xt;break;case Bt:if(bo=xt,"/"!==Lo||"/"!==K(wn,jo+1))continue;jo++;break;case xt:if("/"!==Lo&&"\\"!==Lo){bo=wt;continue}break;case wt:if("@"===Lo){Zi&&(wn="%40"+wn),Zi=!0,or=R(wn);for(var Nr=0;Nr<or.length;Nr++){var as=or[Nr];if(":"!==as||Bi){var ji=mi(as,Mi);Bi?ki.password+=ji:ki.username+=ji}else Bi=!0}wn=""}else if(Lo===mt||"/"===Lo||"?"===Lo||"#"===Lo||"\\"===Lo&&ki.isSpecial()){if(Zi&&""===wn)return"Invalid authority";jo-=R(wn).length+1,wn="",bo=Mt}else wn+=Lo;break;case Mt:case pt:if(li&&"file"===ki.scheme){bo=vt;continue}if(":"!==Lo||oo){if(Lo===mt||"/"===Lo||"?"===Lo||"#"===Lo||"\\"===Lo&&ki.isSpecial()){if(ki.isSpecial()&&""===wn)return _e;if(li&&""===wn&&(ki.includesCredentials()||null!==ki.port))return;if(xr=ki.parseHost(wn))return xr;if(wn="",bo=ln,li)return;continue}"["===Lo?oo=!0:"]"===Lo&&(oo=!1),wn+=Lo}else{if(""===wn)return _e;if(xr=ki.parseHost(wn))return xr;if(wn="",bo=Lt,li===pt)return}break;case Lt:if(!X(De,Lo)){if(Lo===mt||"/"===Lo||"?"===Lo||"#"===Lo||"\\"===Lo&&ki.isSpecial()||li){if(""!==wn){var Fo=O(wn,10);if(Fo>65535)return ge;ki.port=ki.isSpecial()&&Fo===Eo[ki.scheme]?null:Fo,wn=""}if(li)return;bo=ln;continue}return ge}wn+=Lo;break;case tt:if(ki.scheme="file","/"===Lo||"\\"===Lo)bo=Ne;else{if(!Xi||"file"!==Xi.scheme){bo=jn;continue}switch(Lo){case mt:ki.host=Xi.host,ki.path=x(Xi.path),ki.query=Xi.query;break;case"?":ki.host=Xi.host,ki.path=x(Xi.path),ki.query="",bo=go;break;case"#":ki.host=Xi.host,ki.path=x(Xi.path),ki.query=Xi.query,ki.fragment="",bo=si;break;default:xo(me(x(Xo,jo),""))||(ki.host=Xi.host,ki.path=x(Xi.path),ki.shortenPath()),bo=jn;continue}}break;case Ne:if("/"===Lo||"\\"===Lo){bo=vt;break}Xi&&"file"===Xi.scheme&&!xo(me(x(Xo,jo),""))&&(Ko(Xi.path[0],!0)?re(ki.path,Xi.path[0]):ki.host=Xi.host),bo=jn;continue;case vt:if(Lo===mt||"/"===Lo||"\\"===Lo||"?"===Lo||"#"===Lo){if(!li&&Ko(wn))bo=jn;else if(""===wn){if(ki.host="",li)return;bo=ln}else{if(xr=ki.parseHost(wn))return xr;if("localhost"===ki.host&&(ki.host=""),li)return;wn="",bo=ln}continue}wn+=Lo;break;case ln:if(ki.isSpecial()){if(bo=jn,"/"!==Lo&&"\\"!==Lo)continue}else if(li||"?"!==Lo)if(li||"#"!==Lo){if(Lo!==mt&&(bo=jn,"/"!==Lo))continue}else ki.fragment="",bo=si;else ki.query="",bo=go;break;case jn:if(Lo===mt||"/"===Lo||"\\"===Lo&&ki.isSpecial()||!li&&("?"===Lo||"#"===Lo)){if(Xt(wn)?(ki.shortenPath(),"/"!==Lo&&!("\\"===Lo&&ki.isSpecial())&&re(ki.path,"")):Bn(wn)?"/"!==Lo&&!("\\"===Lo&&ki.isSpecial())&&re(ki.path,""):("file"===ki.scheme&&!ki.path.length&&Ko(wn)&&(ki.host&&(ki.host=""),wn=K(wn,0)+":"),re(ki.path,wn)),wn="","file"===ki.scheme&&(Lo===mt||"?"===Lo||"#"===Lo))for(;ki.path.length>1&&""===ki.path[0];)te(ki.path);"?"===Lo?(ki.query="",bo=go):"#"===Lo&&(ki.fragment="",bo=si)}else wn+=mi(Lo,nn);break;case Pi:"?"===Lo?(ki.query="",bo=go):"#"===Lo?(ki.fragment="",bo=si):Lo!==mt&&(ki.path[0]+=mi(Lo,fn));break;case go:li||"#"!==Lo?Lo!==mt&&("'"===Lo&&ki.isSpecial()?ki.query+="%27":ki.query+="#"===Lo?"%23":mi(Lo,fn)):(ki.fragment="",bo=si);break;case si:Lo!==mt&&(ki.fragment+=mi(Lo,yi))}jo++}},parseHost:function(Ei){var li,Xi,ki;if("["===K(Ei,0)){if("]"!==K(Ei,Ei.length-1)||(li=function(Ei){var jo,wn,Zi,oo,Bi,Xo,Lo,li=[0,0,0,0,0,0,0,0],Xi=0,ki=null,bo=0,or=function(){return K(Ei,bo)};if(":"===or()){if(":"!==K(Ei,1))return;bo+=2,ki=++Xi}for(;or();){if(8===Xi)return;if(":"!==or()){for(jo=wn=0;wn<4&&X(Le,or());)jo=16*jo+O(or(),16),bo++,wn++;if("."===or()){if(0===wn||(bo-=wn,Xi>6))return;for(Zi=0;or();){if(oo=null,Zi>0){if(!("."===or()&&Zi<4))return;bo++}if(!X(De,or()))return;for(;X(De,or());){if(Bi=O(or(),10),null===oo)oo=Bi;else{if(0===oo)return;oo=10*oo+Bi}if(oo>255)return;bo++}li[Xi]=256*li[Xi]+oo,(2==++Zi||4===Zi)&&Xi++}if(4!==Zi)return;break}if(":"===or()){if(bo++,!or())return}else if(or())return;li[Xi++]=jo}else{if(null!==ki)return;bo++,ki=++Xi}}if(null!==ki)for(Xo=Xi-ki,Xi=7;0!==Xi&&Xo>0;)Lo=li[Xi],li[Xi--]=li[ki+Xo-1],li[ki+--Xo]=Lo;else if(8!==Xi)return;return li}(H(Ei,1,-1)),!li))return _e;this.host=li}else if(this.isSpecial()){if(Ei=k(Ei),X(Gt,Ei)||(li=function(Ei){var Xi,ki,bo,jo,wn,Zi,oo,li=j(Ei,".");if(li.length&&""===li[li.length-1]&&li.length--,(Xi=li.length)>4)return Ei;for(ki=[],bo=0;bo<Xi;bo++){if(""===(jo=li[bo]))return Ei;if(wn=10,jo.length>1&&"0"===K(jo,0)&&(wn=X(fe,jo)?16:8,jo=H(jo,8===wn?1:2)),""===jo)Zi=0;else{if(!X(10===wn?Oe:8===wn?xe:Le,jo))return Ei;Zi=O(jo,wn)}re(ki,Zi)}for(bo=0;bo<Xi;bo++)if(Zi=ki[bo],bo===Xi-1){if(Zi>=V(256,5-Xi))return null}else if(Zi>255)return null;for(oo=Q(ki),bo=0;bo<ki.length;bo++)oo+=ki[bo]*V(256,3-bo);return oo}(Ei),null===li))return _e;this.host=li}else{if(X(Ut,Ei))return _e;for(li="",Xi=R(Ei),ki=0;ki<Xi.length;ki++)li+=mi(Xi[ki],fn);this.host=li}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return _(Eo,this.scheme)},shortenPath:function(){var Ei=this.path,li=Ei.length;li&&("file"!==this.scheme||1!==li||!Ko(Ei[0],!0))&&Ei.length--},serialize:function(){var Ei=this,li=Ei.scheme,Xi=Ei.username,ki=Ei.password,bo=Ei.host,jo=Ei.port,wn=Ei.path,Zi=Ei.query,oo=Ei.fragment,Bi=li+":";return null!==bo?(Bi+="//",Ei.includesCredentials()&&(Bi+=Xi+(ki?":"+ki:"")+"@"),Bi+=sn(bo),null!==jo&&(Bi+=":"+jo)):"file"===li&&(Bi+="//"),Bi+=Ei.cannotBeABaseURL?wn[0]:wn.length?"/"+me(wn,"/"):"",null!==Zi&&(Bi+="?"+Zi),null!==oo&&(Bi+="#"+oo),Bi},setHref:function(Ei){var li=this.parse(Ei);if(li)throw new P(li);this.searchParams.update()},getOrigin:function(){var Ei=this.scheme,li=this.port;if("blob"===Ei)try{return new pn(Ei.path[0]).origin}catch{return"null"}return"file"!==Ei&&this.isSpecial()?Ei+"://"+sn(this.host)+(null!==li?":"+li:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(Ei){this.parse(w(Ei)+":",Ji)},getUsername:function(){return this.username},setUsername:function(Ei){var li=R(w(Ei));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var Xi=0;Xi<li.length;Xi++)this.username+=mi(li[Xi],Mi)}},getPassword:function(){return this.password},setPassword:function(Ei){var li=R(w(Ei));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var Xi=0;Xi<li.length;Xi++)this.password+=mi(li[Xi],Mi)}},getHost:function(){var Ei=this.host,li=this.port;return null===Ei?"":null===li?sn(Ei):sn(Ei)+":"+li},setHost:function(Ei){this.cannotBeABaseURL||this.parse(Ei,Mt)},getHostname:function(){var Ei=this.host;return null===Ei?"":sn(Ei)},setHostname:function(Ei){this.cannotBeABaseURL||this.parse(Ei,pt)},getPort:function(){var Ei=this.port;return null===Ei?"":w(Ei)},setPort:function(Ei){this.cannotHaveUsernamePasswordPort()||(""===(Ei=w(Ei))?this.port=null:this.parse(Ei,Lt))},getPathname:function(){var Ei=this.path;return this.cannotBeABaseURL?Ei[0]:Ei.length?"/"+me(Ei,"/"):""},setPathname:function(Ei){this.cannotBeABaseURL||(this.path=[],this.parse(Ei,ln))},getSearch:function(){var Ei=this.query;return Ei?"?"+Ei:""},setSearch:function(Ei){""===(Ei=w(Ei))?this.query=null:("?"===K(Ei,0)&&(Ei=H(Ei,1)),this.query="",this.parse(Ei,go)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var Ei=this.fragment;return Ei?"#"+Ei:""},setHash:function(Ei){""!==(Ei=w(Ei))?("#"===K(Ei,0)&&(Ei=H(Ei,1)),this.fragment="",this.parse(Ei,si)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var pn=function(li){var Xi=A(this,_i),ki=M(arguments.length,1)>1?arguments[1]:void 0,bo=b(Xi,new ot(li,!1,ki));n||(Xi.href=bo.serialize(),Xi.origin=bo.getOrigin(),Xi.protocol=bo.getProtocol(),Xi.username=bo.getUsername(),Xi.password=bo.getPassword(),Xi.host=bo.getHost(),Xi.hostname=bo.getHostname(),Xi.port=bo.getPort(),Xi.pathname=bo.getPathname(),Xi.search=bo.getSearch(),Xi.searchParams=bo.getSearchParams(),Xi.hash=bo.getHash())},_i=pn.prototype,wi=function(Ei,li){return{get:function(){return I(this)[Ei]()},set:li&&function(Xi){return I(this)[li](Xi)},configurable:!0,enumerable:!0}};if(n&&(s(_i,"href",wi("serialize","setHref")),s(_i,"origin",wi("getOrigin")),s(_i,"protocol",wi("getProtocol","setProtocol")),s(_i,"username",wi("getUsername","setUsername")),s(_i,"password",wi("getPassword","setPassword")),s(_i,"host",wi("getHost","setHost")),s(_i,"hostname",wi("getHostname","setHostname")),s(_i,"port",wi("getPort","setPort")),s(_i,"pathname",wi("getPathname","setPathname")),s(_i,"search",wi("getSearch","setSearch")),s(_i,"searchParams",wi("getSearchParams")),s(_i,"hash",wi("getHash","setHash"))),d(_i,"toJSON",function(){return I(this).serialize()},{enumerable:!0}),d(_i,"toString",function(){return I(this).serialize()},{enumerable:!0}),F){var hi=F.createObjectURL,zn=F.revokeObjectURL;hi&&d(pn,"createObjectURL",l(hi,F)),zn&&d(pn,"revokeObjectURL",l(zn,F))}g(pn,"URL"),e({global:!0,constructor:!0,forced:!o,sham:!n},{URL:pn})},78730:(he,y,i)=>{"use strict";i(79391)},86825:(he,y,i)=>{"use strict";i.d(y,{EY:()=>w,F4:()=>_,IO:()=>k,LC:()=>n,SB:()=>A,X$:()=>a,ZE:()=>M,ZN:()=>g,_7:()=>f,_j:()=>e,eR:()=>C,jt:()=>l,k1:()=>p,l3:()=>o,oB:()=>s,oQ:()=>R,pV:()=>x,ru:()=>u,vP:()=>d});
/**
         * @license Angular v16.1.6
         * (c) 2010-2022 Google LLC. https://angular.io/
         * License: MIT
         */
class e{}class n{}const o="*";function a(E,b){return{type:7,name:E,definitions:b,options:{}}}function l(E,b=null){return{type:4,styles:b,timings:E}}function u(E,b=null){return{type:3,steps:E,options:b}}function d(E,b=null){return{type:2,steps:E,options:b}}function s(E){return{type:6,styles:E,offset:null}}function A(E,b,I){return{type:0,name:E,styles:b,options:I}}function _(E){return{type:5,steps:E}}function C(E,b,I=null){return{type:1,expr:E,animation:b,options:I}}function R(E,b=null){return{type:8,animation:E,options:b}}function x(E=null){return{type:9,options:E}}function f(E,b=null){return{type:10,animation:E,options:b}}function k(E,b,I=null){return{type:11,selector:E,animation:b,options:I}}function w(E,b){return{type:12,timings:E,animation:b}}class g{constructor(b=0,I=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=b+I}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(b=>b()),this._onDoneFns=[])}onStart(b){this._originalOnStartFns.push(b),this._onStartFns.push(b)}onDone(b){this._originalOnDoneFns.push(b),this._onDoneFns.push(b)}onDestroy(b){this._onDestroyFns.push(b)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(b=>b()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(b=>b()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(b){this._position=this.totalTime?b*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(b){const I="start"==b?this._onStartFns:this._onDoneFns;I.forEach(L=>L()),I.length=0}}class M{constructor(b){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=b;let I=0,L=0,D=0;const F=this.players.length;0==F?queueMicrotask(()=>this._onFinish()):this.players.forEach(P=>{P.onDone(()=>{++I==F&&this._onFinish()}),P.onDestroy(()=>{++L==F&&this._onDestroy()}),P.onStart(()=>{++D==F&&this._onStart()})}),this.totalTime=this.players.reduce((P,O)=>Math.max(P,O.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(b=>b()),this._onDoneFns=[])}init(){this.players.forEach(b=>b.init())}onStart(b){this._onStartFns.push(b)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(b=>b()),this._onStartFns=[])}onDone(b){this._onDoneFns.push(b)}onDestroy(b){this._onDestroyFns.push(b)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(b=>b.play())}pause(){this.players.forEach(b=>b.pause())}restart(){this.players.forEach(b=>b.restart())}finish(){this._onFinish(),this.players.forEach(b=>b.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(b=>b.destroy()),this._onDestroyFns.forEach(b=>b()),this._onDestroyFns=[])}reset(){this.players.forEach(b=>b.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(b){const I=b*this.totalTime;this.players.forEach(L=>{const D=L.totalTime?Math.min(1,I/L.totalTime):1;L.setPosition(D)})}getPosition(){const b=this.players.reduce((I,L)=>null===I||L.totalTime>I.totalTime?L:I,null);return null!=b?b.getPosition():0}beforeDestroy(){this.players.forEach(b=>{b.beforeDestroy&&b.beforeDestroy()})}triggerCallback(b){const I="start"==b?this._onStartFns:this._onDoneFns;I.forEach(L=>L()),I.length=0}}const p="!"},4300:(he,y,i)=>{"use strict";i.d(y,{$s:()=>U,Em:()=>J,Kd:()=>mi,X6:()=>$n,Zf:()=>b,iD:()=>I,ic:()=>re,kH:()=>Xt,mK:()=>xe,qV:()=>fe,qm:()=>Ki,rt:()=>Fn,s1:()=>me,tE:()=>Bn,yG:()=>xn});var e=i(96814),n=i(65879),o=i(62831),a=i(78645),l=i(47394),u=i(65619),d=i(22096),s=i(36028),A=i(99397),_=i(83620),C=i(32181),R=i(37398),x=i(48180),f=i(836),k=i(93997),w=i(59773),g=i(42495),M=i(17131),p=i(71088);const E=" ";function b(oi,It,Bt){const xt=L(oi,It);xt.some(wt=>wt.trim()==Bt.trim())||(xt.push(Bt.trim()),oi.setAttribute(It,xt.join(E)))}function I(oi,It,Bt){const wt=L(oi,It).filter(Mt=>Mt!=Bt.trim());wt.length?oi.setAttribute(It,wt.join(E)):oi.removeAttribute(It)}function L(oi,It){return(oi.getAttribute(It)||"").match(/\S+/g)||[]}const F="cdk-describedby-message",P="cdk-describedby-host";let O=0,U=(()=>{class oi{constructor(Bt,xt){this._platform=xt,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+O++,this._document=Bt,this._id=(0,n.f3M)(n.AFp)+"-"+O++}describe(Bt,xt,wt){if(!this._canBeDescribed(Bt,xt))return;const Mt=V(xt,wt);"string"!=typeof xt?(K(xt,this._id),this._messageRegistry.set(Mt,{messageElement:xt,referenceCount:0})):this._messageRegistry.has(Mt)||this._createMessageElement(xt,wt),this._isElementDescribedByMessage(Bt,Mt)||this._addMessageReference(Bt,Mt)}removeDescription(Bt,xt,wt){if(!xt||!this._isElementNode(Bt))return;const Mt=V(xt,wt);if(this._isElementDescribedByMessage(Bt,Mt)&&this._removeMessageReference(Bt,Mt),"string"==typeof xt){const pt=this._messageRegistry.get(Mt);pt&&0===pt.referenceCount&&this._deleteMessageElement(Mt)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const Bt=this._document.querySelectorAll(`[${P}="${this._id}"]`);for(let xt=0;xt<Bt.length;xt++)this._removeCdkDescribedByReferenceIds(Bt[xt]),Bt[xt].removeAttribute(P);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(Bt,xt){const wt=this._document.createElement("div");K(wt,this._id),wt.textContent=Bt,xt&&wt.setAttribute("role",xt),this._createMessagesContainer(),this._messagesContainer.appendChild(wt),this._messageRegistry.set(V(Bt,xt),{messageElement:wt,referenceCount:0})}_deleteMessageElement(Bt){this._messageRegistry.get(Bt)?.messageElement?.remove(),this._messageRegistry.delete(Bt)}_createMessagesContainer(){if(this._messagesContainer)return;const Bt="cdk-describedby-message-container",xt=this._document.querySelectorAll(`.${Bt}[platform="server"]`);for(let Mt=0;Mt<xt.length;Mt++)xt[Mt].remove();const wt=this._document.createElement("div");wt.style.visibility="hidden",wt.classList.add(Bt),wt.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&wt.setAttribute("platform","server"),this._document.body.appendChild(wt),this._messagesContainer=wt}_removeCdkDescribedByReferenceIds(Bt){const xt=L(Bt,"aria-describedby").filter(wt=>0!=wt.indexOf(F));Bt.setAttribute("aria-describedby",xt.join(" "))}_addMessageReference(Bt,xt){const wt=this._messageRegistry.get(xt);b(Bt,"aria-describedby",wt.messageElement.id),Bt.setAttribute(P,this._id),wt.referenceCount++}_removeMessageReference(Bt,xt){const wt=this._messageRegistry.get(xt);wt.referenceCount--,I(Bt,"aria-describedby",wt.messageElement.id),Bt.removeAttribute(P)}_isElementDescribedByMessage(Bt,xt){const wt=L(Bt,"aria-describedby"),Mt=this._messageRegistry.get(xt),pt=Mt&&Mt.messageElement.id;return!!pt&&-1!=wt.indexOf(pt)}_canBeDescribed(Bt,xt){if(!this._isElementNode(Bt))return!1;if(xt&&"object"==typeof xt)return!0;const wt=null==xt?"":`${xt}`.trim(),Mt=Bt.getAttribute("aria-label");return!(!wt||Mt&&Mt.trim()===wt)}_isElementNode(Bt){return Bt.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(xt){return new(xt||oi)(n.LFG(e.K0),n.LFG(o.t4))};static#t=this.\u0275prov=n.Yz7({token:oi,factory:oi.\u0275fac,providedIn:"root"})}return oi})();function V(oi,It){return"string"==typeof oi?`${It||""}/${oi}`:oi}function K(oi,It){oi.id||(oi.id=`${F}-${It}-${O++}`)}class X{constructor(It){this._items=It,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new a.x,this._typeaheadSubscription=l.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=Bt=>Bt.disabled,this._pressedLetters=[],this.tabOut=new a.x,this.change=new a.x,It instanceof n.n_E&&(this._itemChangesSubscription=It.changes.subscribe(Bt=>{if(this._activeItem){const wt=Bt.toArray().indexOf(this._activeItem);wt>-1&&wt!==this._activeItemIndex&&(this._activeItemIndex=wt)}}))}skipPredicate(It){return this._skipPredicateFn=It,this}withWrap(It=!0){return this._wrap=It,this}withVerticalOrientation(It=!0){return this._vertical=It,this}withHorizontalOrientation(It){return this._horizontal=It,this}withAllowedModifierKeys(It){return this._allowedModifierKeys=It,this}withTypeAhead(It=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,A.b)(Bt=>this._pressedLetters.push(Bt)),(0,_.b)(It),(0,C.h)(()=>this._pressedLetters.length>0),(0,R.U)(()=>this._pressedLetters.join(""))).subscribe(Bt=>{const xt=this._getItemsArray();for(let wt=1;wt<xt.length+1;wt++){const Mt=(this._activeItemIndex+wt)%xt.length,pt=xt[Mt];if(!this._skipPredicateFn(pt)&&0===pt.getLabel().toUpperCase().trim().indexOf(Bt)){this.setActiveItem(Mt);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(It=!0){return this._homeAndEnd=It,this}withPageUpDown(It=!0,Bt=10){return this._pageUpAndDown={enabled:It,delta:Bt},this}setActiveItem(It){const Bt=this._activeItem;this.updateActiveItem(It),this._activeItem!==Bt&&this.change.next(this._activeItemIndex)}onKeydown(It){const Bt=It.keyCode,wt=["altKey","ctrlKey","metaKey","shiftKey"].every(Mt=>!It[Mt]||this._allowedModifierKeys.indexOf(Mt)>-1);switch(Bt){case s.Mf:return void this.tabOut.next();case s.JH:if(this._vertical&&wt){this.setNextItemActive();break}return;case s.LH:if(this._vertical&&wt){this.setPreviousItemActive();break}return;case s.SV:if(this._horizontal&&wt){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case s.oh:if(this._horizontal&&wt){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case s.Sd:if(this._homeAndEnd&&wt){this.setFirstItemActive();break}return;case s.uR:if(this._homeAndEnd&&wt){this.setLastItemActive();break}return;case s.Ku:if(this._pageUpAndDown.enabled&&wt){const Mt=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(Mt>0?Mt:0,1);break}return;case s.VM:if(this._pageUpAndDown.enabled&&wt){const Mt=this._activeItemIndex+this._pageUpAndDown.delta,pt=this._getItemsArray().length;this._setActiveItemByIndex(Mt<pt?Mt:pt-1,-1);break}return;default:return void((wt||(0,s.Vb)(It,"shiftKey"))&&(It.key&&1===It.key.length?this._letterKeyStream.next(It.key.toLocaleUpperCase()):(Bt>=s.A&&Bt<=s.Z||Bt>=s.xE&&Bt<=s.aO)&&this._letterKeyStream.next(String.fromCharCode(Bt))))}this._pressedLetters=[],It.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(It){const Bt=this._getItemsArray(),xt="number"==typeof It?It:Bt.indexOf(It);this._activeItem=Bt[xt]??null,this._activeItemIndex=xt}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(It){this._wrap?this._setActiveInWrapMode(It):this._setActiveInDefaultMode(It)}_setActiveInWrapMode(It){const Bt=this._getItemsArray();for(let xt=1;xt<=Bt.length;xt++){const wt=(this._activeItemIndex+It*xt+Bt.length)%Bt.length;if(!this._skipPredicateFn(Bt[wt]))return void this.setActiveItem(wt)}}_setActiveInDefaultMode(It){this._setActiveItemByIndex(this._activeItemIndex+It,It)}_setActiveItemByIndex(It,Bt){const xt=this._getItemsArray();if(xt[It]){for(;this._skipPredicateFn(xt[It]);)if(!xt[It+=Bt])return;this.setActiveItem(It)}}_getItemsArray(){return this._items instanceof n.n_E?this._items.toArray():this._items}}class me extends X{setActiveItem(It){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(It),this.activeItem&&this.activeItem.setActiveStyles()}}class J extends X{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(It){return this._origin=It,this}setActiveItem(It){super.setActiveItem(It),this.activeItem&&this.activeItem.focus(this._origin)}}let re=(()=>{class oi{constructor(Bt){this._platform=Bt}isDisabled(Bt){return Bt.hasAttribute("disabled")}isVisible(Bt){return function te(oi){return!!(oi.offsetWidth||oi.offsetHeight||"function"==typeof oi.getClientRects&&oi.getClientRects().length)}(Bt)&&"visible"===getComputedStyle(Bt).visibility}isTabbable(Bt){if(!this._platform.isBrowser)return!1;const xt=function de(oi){try{return oi.frameElement}catch{return null}}(function Te(oi){return oi.ownerDocument&&oi.ownerDocument.defaultView||window}(Bt));if(xt&&(-1===_e(xt)||!this.isVisible(xt)))return!1;let wt=Bt.nodeName.toLowerCase(),Mt=_e(Bt);return Bt.hasAttribute("contenteditable")?-1!==Mt:!("iframe"===wt||"object"===wt||this._platform.WEBKIT&&this._platform.IOS&&!function ge(oi){let It=oi.nodeName.toLowerCase(),Bt="input"===It&&oi.type;return"text"===Bt||"password"===Bt||"select"===It||"textarea"===It}(Bt))&&("audio"===wt?!!Bt.hasAttribute("controls")&&-1!==Mt:"video"===wt?-1!==Mt&&(null!==Mt||this._platform.FIREFOX||Bt.hasAttribute("controls")):Bt.tabIndex>=0)}isFocusable(Bt,xt){return function Ce(oi){return!function H(oi){return function q(oi){return"input"==oi.nodeName.toLowerCase()}(oi)&&"hidden"==oi.type}(oi)&&(function j(oi){let It=oi.nodeName.toLowerCase();return"input"===It||"select"===It||"button"===It||"textarea"===It}(oi)||function z(oi){return function se(oi){return"a"==oi.nodeName.toLowerCase()}(oi)&&oi.hasAttribute("href")}(oi)||oi.hasAttribute("contenteditable")||ne(oi))}(Bt)&&!this.isDisabled(Bt)&&(xt?.ignoreVisibility||this.isVisible(Bt))}static#e=this.\u0275fac=function(xt){return new(xt||oi)(n.LFG(o.t4))};static#t=this.\u0275prov=n.Yz7({token:oi,factory:oi.\u0275fac,providedIn:"root"})}return oi})();function ne(oi){if(!oi.hasAttribute("tabindex")||void 0===oi.tabIndex)return!1;let It=oi.getAttribute("tabindex");return!(!It||isNaN(parseInt(It,10)))}function _e(oi){if(!ne(oi))return null;const It=parseInt(oi.getAttribute("tabindex")||"",10);return isNaN(It)?-1:It}class De{get enabled(){return this._enabled}set enabled(It){this._enabled=It,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(It,this._startAnchor),this._toggleAnchorTabIndex(It,this._endAnchor))}constructor(It,Bt,xt,wt,Mt=!1){this._element=It,this._checker=Bt,this._ngZone=xt,this._document=wt,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Mt||this.attachAnchors()}destroy(){const It=this._startAnchor,Bt=this._endAnchor;It&&(It.removeEventListener("focus",this.startAnchorListener),It.remove()),Bt&&(Bt.removeEventListener("focus",this.endAnchorListener),Bt.remove()),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(It){return new Promise(Bt=>{this._executeOnStable(()=>Bt(this.focusInitialElement(It)))})}focusFirstTabbableElementWhenReady(It){return new Promise(Bt=>{this._executeOnStable(()=>Bt(this.focusFirstTabbableElement(It)))})}focusLastTabbableElementWhenReady(It){return new Promise(Bt=>{this._executeOnStable(()=>Bt(this.focusLastTabbableElement(It)))})}_getRegionBoundary(It){const Bt=this._element.querySelectorAll(`[cdk-focus-region-${It}], [cdkFocusRegion${It}], [cdk-focus-${It}]`);return"start"==It?Bt.length?Bt[0]:this._getFirstTabbableElement(this._element):Bt.length?Bt[Bt.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(It){const Bt=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Bt){if(!this._checker.isFocusable(Bt)){const xt=this._getFirstTabbableElement(Bt);return xt?.focus(It),!!xt}return Bt.focus(It),!0}return this.focusFirstTabbableElement(It)}focusFirstTabbableElement(It){const Bt=this._getRegionBoundary("start");return Bt&&Bt.focus(It),!!Bt}focusLastTabbableElement(It){const Bt=this._getRegionBoundary("end");return Bt&&Bt.focus(It),!!Bt}hasAttached(){return this._hasAttached}_getFirstTabbableElement(It){if(this._checker.isFocusable(It)&&this._checker.isTabbable(It))return It;const Bt=It.children;for(let xt=0;xt<Bt.length;xt++){const wt=Bt[xt].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(Bt[xt]):null;if(wt)return wt}return null}_getLastTabbableElement(It){if(this._checker.isFocusable(It)&&this._checker.isTabbable(It))return It;const Bt=It.children;for(let xt=Bt.length-1;xt>=0;xt--){const wt=Bt[xt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Bt[xt]):null;if(wt)return wt}return null}_createAnchor(){const It=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,It),It.classList.add("cdk-visually-hidden"),It.classList.add("cdk-focus-trap-anchor"),It.setAttribute("aria-hidden","true"),It}_toggleAnchorTabIndex(It,Bt){It?Bt.setAttribute("tabindex","0"):Bt.removeAttribute("tabindex")}toggleAnchors(It){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(It,this._startAnchor),this._toggleAnchorTabIndex(It,this._endAnchor))}_executeOnStable(It){this._ngZone.isStable?It():this._ngZone.onStable.pipe((0,x.q)(1)).subscribe(It)}}let fe=(()=>{class oi{constructor(Bt,xt,wt){this._checker=Bt,this._ngZone=xt,this._document=wt}create(Bt,xt=!1){return new De(Bt,this._checker,this._ngZone,this._document,xt)}static#e=this.\u0275fac=function(xt){return new(xt||oi)(n.LFG(re),n.LFG(n.R0b),n.LFG(e.K0))};static#t=this.\u0275prov=n.Yz7({token:oi,factory:oi.\u0275fac,providedIn:"root"})}return oi})(),xe=(()=>{class oi{get enabled(){return this.focusTrap.enabled}set enabled(Bt){this.focusTrap.enabled=(0,g.Ig)(Bt)}get autoCapture(){return this._autoCapture}set autoCapture(Bt){this._autoCapture=(0,g.Ig)(Bt)}constructor(Bt,xt,wt){this._elementRef=Bt,this._focusTrapFactory=xt,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(Bt){const xt=Bt.autoCapture;xt&&!xt.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,o.ht)(),this.focusTrap.focusInitialElementWhenReady()}static#e=this.\u0275fac=function(xt){return new(xt||oi)(n.Y36(n.SBq),n.Y36(fe),n.Y36(e.K0))};static#t=this.\u0275dir=n.lG2({type:oi,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[n.TTD]})}return oi})();function $n(oi){return 0===oi.buttons||0===oi.offsetX&&0===oi.offsetY}function xn(oi){const It=oi.touches&&oi.touches[0]||oi.changedTouches&&oi.changedTouches[0];return!(!It||-1!==It.identifier||null!=It.radiusX&&1!==It.radiusX||null!=It.radiusY&&1!==It.radiusY)}const mt=new n.OlP("cdk-input-modality-detector-options"),ut={ignoreKeys:[s.zL,s.jx,s.b2,s.MW,s.JU]},dn=(0,o.i$)({passive:!0,capture:!0});let sn=(()=>{class oi{get mostRecentModality(){return this._modality.value}constructor(Bt,xt,wt,Mt){this._platform=Bt,this._mostRecentTarget=null,this._modality=new u.X(null),this._lastTouchMs=0,this._onKeydown=pt=>{this._options?.ignoreKeys?.some(Lt=>Lt===pt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,o.sA)(pt))},this._onMousedown=pt=>{Date.now()-this._lastTouchMs<650||(this._modality.next($n(pt)?"keyboard":"mouse"),this._mostRecentTarget=(0,o.sA)(pt))},this._onTouchstart=pt=>{xn(pt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,o.sA)(pt))},this._options={...ut,...Mt},this.modalityDetected=this._modality.pipe((0,f.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,k.x)()),Bt.isBrowser&&xt.runOutsideAngular(()=>{wt.addEventListener("keydown",this._onKeydown,dn),wt.addEventListener("mousedown",this._onMousedown,dn),wt.addEventListener("touchstart",this._onTouchstart,dn)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,dn),document.removeEventListener("mousedown",this._onMousedown,dn),document.removeEventListener("touchstart",this._onTouchstart,dn))}static#e=this.\u0275fac=function(xt){return new(xt||oi)(n.LFG(o.t4),n.LFG(n.R0b),n.LFG(e.K0),n.LFG(mt,8))};static#t=this.\u0275prov=n.Yz7({token:oi,factory:oi.\u0275fac,providedIn:"root"})}return oi})();const fn=new n.OlP("liveAnnouncerElement",{providedIn:"root",factory:function yi(){return null}}),nn=new n.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Mi=0,mi=(()=>{class oi{constructor(Bt,xt,wt,Mt){this._ngZone=xt,this._defaultOptions=Mt,this._document=wt,this._liveElement=Bt||this._createLiveElement()}announce(Bt,...xt){const wt=this._defaultOptions;let Mt,pt;return 1===xt.length&&"number"==typeof xt[0]?pt=xt[0]:[Mt,pt]=xt,this.clear(),clearTimeout(this._previousTimeout),Mt||(Mt=wt&&wt.politeness?wt.politeness:"polite"),null==pt&&wt&&(pt=wt.duration),this._liveElement.setAttribute("aria-live",Mt),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Lt=>this._currentResolve=Lt)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Bt,"number"==typeof pt&&(this._previousTimeout=setTimeout(()=>this.clear(),pt)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const Bt="cdk-live-announcer-element",xt=this._document.getElementsByClassName(Bt),wt=this._document.createElement("div");for(let Mt=0;Mt<xt.length;Mt++)xt[Mt].remove();return wt.classList.add(Bt),wt.classList.add("cdk-visually-hidden"),wt.setAttribute("aria-atomic","true"),wt.setAttribute("aria-live","polite"),wt.id="cdk-live-announcer-"+Mi++,this._document.body.appendChild(wt),wt}_exposeAnnouncerToModals(Bt){const xt=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let wt=0;wt<xt.length;wt++){const Mt=xt[wt],pt=Mt.getAttribute("aria-owns");pt?-1===pt.indexOf(Bt)&&Mt.setAttribute("aria-owns",pt+" "+Bt):Mt.setAttribute("aria-owns",Bt)}}static#e=this.\u0275fac=function(xt){return new(xt||oi)(n.LFG(fn,8),n.LFG(n.R0b),n.LFG(e.K0),n.LFG(nn,8))};static#t=this.\u0275prov=n.Yz7({token:oi,factory:oi.\u0275fac,providedIn:"root"})}return oi})();const Ko=new n.OlP("cdk-focus-monitor-default-options"),xo=(0,o.i$)({passive:!0,capture:!0});let Bn=(()=>{class oi{constructor(Bt,xt,wt,Mt,pt){this._ngZone=Bt,this._platform=xt,this._inputModalityDetector=wt,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new a.x,this._rootNodeFocusAndBlurListener=Lt=>{for(let Ne=(0,o.sA)(Lt);Ne;Ne=Ne.parentElement)"focus"===Lt.type?this._onFocus(Lt,Ne):this._onBlur(Lt,Ne)},this._document=Mt,this._detectionMode=pt?.detectionMode||0}monitor(Bt,xt=!1){const wt=(0,g.fI)(Bt);if(!this._platform.isBrowser||1!==wt.nodeType)return(0,d.of)();const Mt=(0,o.kV)(wt)||this._getDocument(),pt=this._elementInfo.get(wt);if(pt)return xt&&(pt.checkChildren=!0),pt.subject;const Lt={checkChildren:xt,subject:new a.x,rootNode:Mt};return this._elementInfo.set(wt,Lt),this._registerGlobalListeners(Lt),Lt.subject}stopMonitoring(Bt){const xt=(0,g.fI)(Bt),wt=this._elementInfo.get(xt);wt&&(wt.subject.complete(),this._setClasses(xt),this._elementInfo.delete(xt),this._removeGlobalListeners(wt))}focusVia(Bt,xt,wt){const Mt=(0,g.fI)(Bt);Mt===this._getDocument().activeElement?this._getClosestElementsInfo(Mt).forEach(([Lt,tt])=>this._originChanged(Lt,xt,tt)):(this._setOrigin(xt),"function"==typeof Mt.focus&&Mt.focus(wt))}ngOnDestroy(){this._elementInfo.forEach((Bt,xt)=>this.stopMonitoring(xt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Bt){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Bt)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Bt&&this._isLastInteractionFromInputLabel(Bt)?"mouse":"program"}_shouldBeAttributedToTouch(Bt){return 1===this._detectionMode||!!Bt?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(Bt,xt){Bt.classList.toggle("cdk-focused",!!xt),Bt.classList.toggle("cdk-touch-focused","touch"===xt),Bt.classList.toggle("cdk-keyboard-focused","keyboard"===xt),Bt.classList.toggle("cdk-mouse-focused","mouse"===xt),Bt.classList.toggle("cdk-program-focused","program"===xt)}_setOrigin(Bt,xt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Bt,this._originFromTouchInteraction="touch"===Bt&&xt,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Bt,xt){const wt=this._elementInfo.get(xt),Mt=(0,o.sA)(Bt);!wt||!wt.checkChildren&&xt!==Mt||this._originChanged(xt,this._getFocusOrigin(Mt),wt)}_onBlur(Bt,xt){const wt=this._elementInfo.get(xt);!wt||wt.checkChildren&&Bt.relatedTarget instanceof Node&&xt.contains(Bt.relatedTarget)||(this._setClasses(xt),this._emitOrigin(wt,null))}_emitOrigin(Bt,xt){Bt.subject.observers.length&&this._ngZone.run(()=>Bt.subject.next(xt))}_registerGlobalListeners(Bt){if(!this._platform.isBrowser)return;const xt=Bt.rootNode,wt=this._rootNodeFocusListenerCount.get(xt)||0;wt||this._ngZone.runOutsideAngular(()=>{xt.addEventListener("focus",this._rootNodeFocusAndBlurListener,xo),xt.addEventListener("blur",this._rootNodeFocusAndBlurListener,xo)}),this._rootNodeFocusListenerCount.set(xt,wt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,w.R)(this._stopInputModalityDetector)).subscribe(Mt=>{this._setOrigin(Mt,!0)}))}_removeGlobalListeners(Bt){const xt=Bt.rootNode;if(this._rootNodeFocusListenerCount.has(xt)){const wt=this._rootNodeFocusListenerCount.get(xt);wt>1?this._rootNodeFocusListenerCount.set(xt,wt-1):(xt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,xo),xt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,xo),this._rootNodeFocusListenerCount.delete(xt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Bt,xt,wt){this._setClasses(Bt,xt),this._emitOrigin(wt,xt),this._lastFocusOrigin=xt}_getClosestElementsInfo(Bt){const xt=[];return this._elementInfo.forEach((wt,Mt)=>{(Mt===Bt||wt.checkChildren&&Mt.contains(Bt))&&xt.push([Mt,wt])}),xt}_isLastInteractionFromInputLabel(Bt){const{_mostRecentTarget:xt,mostRecentModality:wt}=this._inputModalityDetector;if("mouse"!==wt||!xt||xt===Bt||"INPUT"!==Bt.nodeName&&"TEXTAREA"!==Bt.nodeName||Bt.disabled)return!1;const Mt=Bt.labels;if(Mt)for(let pt=0;pt<Mt.length;pt++)if(Mt[pt].contains(xt))return!0;return!1}static#e=this.\u0275fac=function(xt){return new(xt||oi)(n.LFG(n.R0b),n.LFG(o.t4),n.LFG(sn),n.LFG(e.K0,8),n.LFG(Ko,8))};static#t=this.\u0275prov=n.Yz7({token:oi,factory:oi.\u0275fac,providedIn:"root"})}return oi})(),Xt=(()=>{class oi{constructor(Bt,xt){this._elementRef=Bt,this._focusMonitor=xt,this._focusOrigin=null,this.cdkFocusChange=new n.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const Bt=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(Bt,1===Bt.nodeType&&Bt.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(xt=>{this._focusOrigin=xt,this.cdkFocusChange.emit(xt)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(xt){return new(xt||oi)(n.Y36(n.SBq),n.Y36(Bn))};static#t=this.\u0275dir=n.lG2({type:oi,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return oi})();const Ji="cdk-high-contrast-black-on-white",En="cdk-high-contrast-white-on-black",un="cdk-high-contrast-active";let Ki=(()=>{class oi{constructor(Bt,xt){this._platform=Bt,this._document=xt,this._breakpointSubscription=(0,n.f3M)(p.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const Bt=this._document.createElement("div");Bt.style.backgroundColor="rgb(1,2,3)",Bt.style.position="absolute",this._document.body.appendChild(Bt);const xt=this._document.defaultView||window,wt=xt&&xt.getComputedStyle?xt.getComputedStyle(Bt):null,Mt=(wt&&wt.backgroundColor||"").replace(/ /g,"");switch(Bt.remove(),Mt){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Bt=this._document.body.classList;Bt.remove(un,Ji,En),this._hasCheckedHighContrastMode=!0;const xt=this.getHighContrastMode();1===xt?Bt.add(un,Ji):2===xt&&Bt.add(un,En)}}static#e=this.\u0275fac=function(xt){return new(xt||oi)(n.LFG(o.t4),n.LFG(e.K0))};static#t=this.\u0275prov=n.Yz7({token:oi,factory:oi.\u0275fac,providedIn:"root"})}return oi})(),Fn=(()=>{class oi{constructor(Bt){Bt._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(xt){return new(xt||oi)(n.LFG(Ki))};static#t=this.\u0275mod=n.oAB({type:oi});static#n=this.\u0275inj=n.cJS({imports:[M.Q8]})}return oi})()},49388:(he,y,i)=>{"use strict";i.d(y,{Is:()=>d,vT:()=>A});var e=i(65879),n=i(96814);const o=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function a(){return(0,e.f3M)(n.K0)}}),l=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let d=(()=>{class _{constructor(R){this.value="ltr",this.change=new e.vpe,R&&(this.value=function u(_){const C=_?.toLowerCase()||"";return"auto"===C&&typeof navigator<"u"&&navigator?.language?l.test(navigator.language)?"rtl":"ltr":"rtl"===C?"rtl":"ltr"}((R.body?R.body.dir:null)||(R.documentElement?R.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(x){return new(x||_)(e.LFG(o,8))};static#t=this.\u0275prov=e.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"})}return _})(),A=(()=>{class _{static#e=this.\u0275fac=function(x){return new(x||_)};static#t=this.\u0275mod=e.oAB({type:_});static#n=this.\u0275inj=e.cJS({})}return _})()},42495:(he,y,i)=>{"use strict";i.d(y,{Eq:()=>l,HM:()=>u,Ig:()=>n,du:()=>s,fI:()=>d,su:()=>o,t6:()=>a});var e=i(65879);function n(A){return null!=A&&"false"!=`${A}`}function o(A,_=0){return a(A)?Number(A):_}function a(A){return!isNaN(parseFloat(A))&&!isNaN(Number(A))}function l(A){return Array.isArray(A)?A:[A]}function u(A){return null==A?"":"string"==typeof A?A:`${A}px`}function d(A){return A instanceof e.SBq?A.nativeElement:A}function s(A,_=/\s+/){const C=[];if(null!=A){const R=Array.isArray(A)?A:`${A}`.split(_);for(const x of R){const f=`${x}`.trim();f&&C.push(f)}}return C}},78337:(he,y,i)=>{"use strict";i.d(y,{A8:()=>C,Ov:()=>A,Z9:()=>l,eX:()=>s,k:()=>R,o2:()=>a,yy:()=>d});var e=i(93168),n=i(78645),o=i(65879);class a{}function l(x){return x&&"function"==typeof x.connect&&!(x instanceof e.c)}class d{applyChanges(f,k,w,g,M){f.forEachOperation((p,E,b)=>{let I,L;if(null==p.previousIndex){const D=w(p,E,b);I=k.createEmbeddedView(D.templateRef,D.context,D.index),L=1}else null==b?(k.remove(E),L=3):(I=k.get(E),k.move(I,b),L=2);M&&M({context:I?.context,operation:L,record:p})})}detach(){}}class s{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(f,k,w,g,M){f.forEachOperation((p,E,b)=>{let I,L;null==p.previousIndex?(I=this._insertView(()=>w(p,E,b),b,k,g(p)),L=I?1:0):null==b?(this._detachAndCacheView(E,k),L=3):(I=this._moveView(E,b,k,g(p)),L=2),M&&M({context:I?.context,operation:L,record:p})})}detach(){for(const f of this._viewCache)f.destroy();this._viewCache=[]}_insertView(f,k,w,g){const M=this._insertViewFromCache(k,w);if(M)return void(M.context.$implicit=g);const p=f();return w.createEmbeddedView(p.templateRef,p.context,p.index)}_detachAndCacheView(f,k){const w=k.detach(f);this._maybeCacheView(w,k)}_moveView(f,k,w,g){const M=w.get(f);return w.move(M,k),M.context.$implicit=g,M}_maybeCacheView(f,k){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(f);else{const w=k.indexOf(f);-1===w?f.destroy():k.remove(w)}}_insertViewFromCache(f,k){const w=this._viewCache.pop();return w&&k.insert(w,f),w||null}}class A{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(f=!1,k,w=!0,g){this._multiple=f,this._emitChanges=w,this.compareWith=g,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new n.x,k&&k.length&&(f?k.forEach(M=>this._markSelected(M)):this._markSelected(k[0]),this._selectedToEmit.length=0)}select(...f){this._verifyValueAssignment(f),f.forEach(w=>this._markSelected(w));const k=this._hasQueuedChanges();return this._emitChangeEvent(),k}deselect(...f){this._verifyValueAssignment(f),f.forEach(w=>this._unmarkSelected(w));const k=this._hasQueuedChanges();return this._emitChangeEvent(),k}setSelection(...f){this._verifyValueAssignment(f);const k=this.selected,w=new Set(f);f.forEach(M=>this._markSelected(M)),k.filter(M=>!w.has(M)).forEach(M=>this._unmarkSelected(M));const g=this._hasQueuedChanges();return this._emitChangeEvent(),g}toggle(f){return this.isSelected(f)?this.deselect(f):this.select(f)}clear(f=!0){this._unmarkAll();const k=this._hasQueuedChanges();return f&&this._emitChangeEvent(),k}isSelected(f){return this._selection.has(this._getConcreteValue(f))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(f){this._multiple&&this.selected&&this._selected.sort(f)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(f){f=this._getConcreteValue(f),this.isSelected(f)||(this._multiple||this._unmarkAll(),this.isSelected(f)||this._selection.add(f),this._emitChanges&&this._selectedToEmit.push(f))}_unmarkSelected(f){f=this._getConcreteValue(f),this.isSelected(f)&&(this._selection.delete(f),this._emitChanges&&this._deselectedToEmit.push(f))}_unmarkAll(){this.isEmpty()||this._selection.forEach(f=>this._unmarkSelected(f))}_verifyValueAssignment(f){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(f){if(this.compareWith){for(let k of this._selection)if(this.compareWith(f,k))return k;return f}return f}}let C=(()=>{class x{constructor(){this._listeners=[]}notify(k,w){for(let g of this._listeners)g(k,w)}listen(k){return this._listeners.push(k),()=>{this._listeners=this._listeners.filter(w=>k!==w)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(w){return new(w||x)};static#t=this.\u0275prov=o.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})();const R=new o.OlP("_ViewRepeater")},77954:(he,y,i)=>{"use strict";i.d(y,{LL:()=>w,Su:()=>P,Vq:()=>D,ib:()=>f});var e=i(4300),n=i(69594),o=i(62831),a=i(68484),l=i(96814),u=i(65879),d=i(36028),s=i(78645),A=i(74911),_=i(22096),C=i(49388),R=i(27921);function x(O,U){}class f{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let w=(()=>{class O extends a.en{constructor(V,K,X,me,J,Q,re,de){super(),this._elementRef=V,this._focusTrapFactory=K,this._config=me,this._interactivityChecker=J,this._ngZone=Q,this._overlayRef=re,this._focusMonitor=de,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=te=>{this._portalOutlet.hasAttached();const j=this._portalOutlet.attachDomPortal(te);return this._contentAttached(),j},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=X}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(V){this._portalOutlet.hasAttached();const K=this._portalOutlet.attachComponentPortal(V);return this._contentAttached(),K}attachTemplatePortal(V){this._portalOutlet.hasAttached();const K=this._portalOutlet.attachTemplatePortal(V);return this._contentAttached(),K}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(V,K){this._interactivityChecker.isFocusable(V)||(V.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const X=()=>{V.removeEventListener("blur",X),V.removeEventListener("mousedown",X),V.removeAttribute("tabindex")};V.addEventListener("blur",X),V.addEventListener("mousedown",X)})),V.focus(K)}_focusByCssSelector(V,K){let X=this._elementRef.nativeElement.querySelector(V);X&&this._forceFocus(X,K)}_trapFocus(){const V=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||V.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(K=>{K||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const V=this._config.restoreFocus;let K=null;if("string"==typeof V?K=this._document.querySelector(V):"boolean"==typeof V?K=V?this._elementFocusedBeforeDialogWasOpened:null:V&&(K=V),this._config.restoreFocus&&K&&"function"==typeof K.focus){const X=(0,o.ht)(),me=this._elementRef.nativeElement;(!X||X===this._document.body||X===me||me.contains(X))&&(this._focusMonitor?(this._focusMonitor.focusVia(K,this._closeInteractionType),this._closeInteractionType=null):K.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const V=this._elementRef.nativeElement,K=(0,o.ht)();return V===K||V.contains(K)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,o.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(K){return new(K||O)(u.Y36(u.SBq),u.Y36(e.qV),u.Y36(l.K0,8),u.Y36(f),u.Y36(e.ic),u.Y36(u.R0b),u.Y36(n.Iu),u.Y36(e.tE))};static#t=this.\u0275cmp=u.Xpm({type:O,selectors:[["cdk-dialog-container"]],viewQuery:function(K,X){if(1&K&&u.Gf(a.Pl,7),2&K){let me;u.iGM(me=u.CRH())&&(X._portalOutlet=me.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(K,X){2&K&&u.uIk("id",X._config.id||null)("role",X._config.role)("aria-modal",X._config.ariaModal)("aria-labelledby",X._config.ariaLabel?null:X._ariaLabelledBy)("aria-label",X._config.ariaLabel)("aria-describedby",X._config.ariaDescribedBy||null)},features:[u.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(K,X){1&K&&u.YNc(0,x,0,0,"ng-template",0)},dependencies:[a.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return O})();class g{constructor(U,V){this.overlayRef=U,this.config=V,this.closed=new s.x,this.disableClose=V.disableClose,this.backdropClick=U.backdropClick(),this.keydownEvents=U.keydownEvents(),this.outsidePointerEvents=U.outsidePointerEvents(),this.id=V.id,this.keydownEvents.subscribe(K=>{K.keyCode===d.hY&&!this.disableClose&&!(0,d.Vb)(K)&&(K.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=U.detachments().subscribe(()=>{!1!==V.closeOnOverlayDetachments&&this.close()})}close(U,V){if(this.containerInstance){const K=this.closed;this.containerInstance._closeInteractionType=V?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),K.next(U),K.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(U="",V=""){return this.overlayRef.updateSize({width:U,height:V}),this}addPanelClass(U){return this.overlayRef.addPanelClass(U),this}removePanelClass(U){return this.overlayRef.removePanelClass(U),this}}const M=new u.OlP("DialogScrollStrategy"),p=new u.OlP("DialogData"),E=new u.OlP("DefaultDialogConfig"),I={provide:M,deps:[n.aV],useFactory:function b(O){return()=>O.scrollStrategies.block()}};let L=0,D=(()=>{class O{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(V,K,X,me,J,Q){this._overlay=V,this._injector=K,this._defaultOptions=X,this._parentDialog=me,this._overlayContainer=J,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new s.x,this._afterOpenedAtThisLevel=new s.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,A.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,R.O)(void 0))),this._scrollStrategy=Q}open(V,K){(K={...this._defaultOptions||new f,...K}).id=K.id||"cdk-dialog-"+L++,K.id&&this.getDialogById(K.id);const me=this._getOverlayConfig(K),J=this._overlay.create(me),Q=new g(J,K),re=this._attachContainer(J,Q,K);return Q.containerInstance=re,this._attachDialogContent(V,Q,re,K),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Q),Q.closed.subscribe(()=>this._removeOpenDialog(Q,!0)),this.afterOpened.next(Q),Q}closeAll(){F(this.openDialogs,V=>V.close())}getDialogById(V){return this.openDialogs.find(K=>K.id===V)}ngOnDestroy(){F(this._openDialogsAtThisLevel,V=>{!1===V.config.closeOnDestroy&&this._removeOpenDialog(V,!1)}),F(this._openDialogsAtThisLevel,V=>V.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(V){const K=new n.X_({positionStrategy:V.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:V.scrollStrategy||this._scrollStrategy(),panelClass:V.panelClass,hasBackdrop:V.hasBackdrop,direction:V.direction,minWidth:V.minWidth,minHeight:V.minHeight,maxWidth:V.maxWidth,maxHeight:V.maxHeight,width:V.width,height:V.height,disposeOnNavigation:V.closeOnNavigation});return V.backdropClass&&(K.backdropClass=V.backdropClass),K}_attachContainer(V,K,X){const me=X.injector||X.viewContainerRef?.injector,J=[{provide:f,useValue:X},{provide:g,useValue:K},{provide:n.Iu,useValue:V}];let Q;X.container?"function"==typeof X.container?Q=X.container:(Q=X.container.type,J.push(...X.container.providers(X))):Q=w;const re=new a.C5(Q,X.viewContainerRef,u.zs3.create({parent:me||this._injector,providers:J}),X.componentFactoryResolver);return V.attach(re).instance}_attachDialogContent(V,K,X,me){if(V instanceof u.Rgc){const J=this._createInjector(me,K,X,void 0);let Q={$implicit:me.data,dialogRef:K};me.templateContext&&(Q={...Q,..."function"==typeof me.templateContext?me.templateContext():me.templateContext}),X.attachTemplatePortal(new a.UE(V,null,Q,J))}else{const J=this._createInjector(me,K,X,this._injector),Q=X.attachComponentPortal(new a.C5(V,me.viewContainerRef,J,me.componentFactoryResolver));K.componentInstance=Q.instance}}_createInjector(V,K,X,me){const J=V.injector||V.viewContainerRef?.injector,Q=[{provide:p,useValue:V.data},{provide:g,useValue:K}];return V.providers&&("function"==typeof V.providers?Q.push(...V.providers(K,V,X)):Q.push(...V.providers)),V.direction&&(!J||!J.get(C.Is,null,{optional:!0}))&&Q.push({provide:C.Is,useValue:{value:V.direction,change:(0,_.of)()}}),u.zs3.create({parent:J||me,providers:Q})}_removeOpenDialog(V,K){const X=this.openDialogs.indexOf(V);X>-1&&(this.openDialogs.splice(X,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((me,J)=>{me?J.setAttribute("aria-hidden",me):J.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),K&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const V=this._overlayContainer.getContainerElement();if(V.parentElement){const K=V.parentElement.children;for(let X=K.length-1;X>-1;X--){const me=K[X];me!==V&&"SCRIPT"!==me.nodeName&&"STYLE"!==me.nodeName&&!me.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(me,me.getAttribute("aria-hidden")),me.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const V=this._parentDialog;return V?V._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(K){return new(K||O)(u.LFG(n.aV),u.LFG(u.zs3),u.LFG(E,8),u.LFG(O,12),u.LFG(n.Xj),u.LFG(M))};static#t=this.\u0275prov=u.Yz7({token:O,factory:O.\u0275fac})}return O})();function F(O,U){let V=O.length;for(;V--;)U(O[V])}let P=(()=>{class O{static#e=this.\u0275fac=function(K){return new(K||O)};static#t=this.\u0275mod=u.oAB({type:O});static#n=this.\u0275inj=u.cJS({providers:[D,I],imports:[n.U8,a.eL,e.rt,a.eL]})}return O})()},34423:(he,y,i)=>{"use strict";i.d(y,{Bh:()=>nn,EA:()=>De,Fd:()=>un,Hk:()=>mi,Wj:()=>Fn,Zt:()=>Ji,_t:()=>It,bA:()=>Te});var e=i(65879),n=i(96814),o=i(16672),a=i(62831),l=i(42495),u=i(4300),d=i(78645),s=i(47394),A=i(91687),_=i(80927),C=i(65592),R=i(63019),x=i(59773),f=i(37398),k=i(48180),w=i(27921),g=i(99397),M=i(94664),p=i(49388);function E(Bt,xt,wt){for(let Mt in xt)if(xt.hasOwnProperty(Mt)){const pt=xt[Mt];pt?Bt.setProperty(Mt,pt,wt?.has(Mt)?"important":""):Bt.removeProperty(Mt)}return Bt}function b(Bt,xt){const wt=xt?"":"none";E(Bt.style,{"touch-action":xt?"":"none","-webkit-user-drag":xt?"":"none","-webkit-tap-highlight-color":xt?"":"transparent","user-select":wt,"-ms-user-select":wt,"-webkit-user-select":wt,"-moz-user-select":wt})}function I(Bt,xt,wt){E(Bt.style,{position:xt?"":"fixed",top:xt?"":"0",opacity:xt?"":"0",left:xt?"":"-999em"},wt)}function L(Bt,xt){return xt&&"none"!=xt?Bt+" "+xt:Bt}function D(Bt){const xt=Bt.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(Bt)*xt}function P(Bt,xt){return Bt.getPropertyValue(xt).split(",").map(Mt=>Mt.trim())}function O(Bt){const xt=Bt.getBoundingClientRect();return{top:xt.top,right:xt.right,bottom:xt.bottom,left:xt.left,width:xt.width,height:xt.height,x:xt.x,y:xt.y}}function U(Bt,xt,wt){const{top:Mt,bottom:pt,left:Lt,right:tt}=Bt;return wt>=Mt&&wt<=pt&&xt>=Lt&&xt<=tt}function V(Bt,xt,wt){Bt.top+=xt,Bt.bottom=Bt.top+Bt.height,Bt.left+=wt,Bt.right=Bt.left+Bt.width}function K(Bt,xt,wt,Mt){const{top:pt,right:Lt,bottom:tt,left:Ne,width:vt,height:ln}=Bt,jn=vt*xt,Pi=ln*xt;return Mt>pt-Pi&&Mt<tt+Pi&&wt>Ne-jn&&wt<Lt+jn}class X{constructor(xt){this._document=xt,this.positions=new Map}clear(){this.positions.clear()}cache(xt){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),xt.forEach(wt=>{this.positions.set(wt,{scrollPosition:{top:wt.scrollTop,left:wt.scrollLeft},clientRect:O(wt)})})}handleScroll(xt){const wt=(0,a.sA)(xt),Mt=this.positions.get(wt);if(!Mt)return null;const pt=Mt.scrollPosition;let Lt,tt;if(wt===this._document){const ln=this.getViewportScrollPosition();Lt=ln.top,tt=ln.left}else Lt=wt.scrollTop,tt=wt.scrollLeft;const Ne=pt.top-Lt,vt=pt.left-tt;return this.positions.forEach((ln,jn)=>{ln.clientRect&&wt!==jn&&wt.contains(jn)&&V(ln.clientRect,Ne,vt)}),pt.top=Lt,pt.left=tt,{top:Ne,left:vt}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function me(Bt){const xt=Bt.cloneNode(!0),wt=xt.querySelectorAll("[id]"),Mt=Bt.nodeName.toLowerCase();xt.removeAttribute("id");for(let pt=0;pt<wt.length;pt++)wt[pt].removeAttribute("id");return"canvas"===Mt?de(Bt,xt):("input"===Mt||"select"===Mt||"textarea"===Mt)&&re(Bt,xt),J("canvas",Bt,xt,de),J("input, textarea, select",Bt,xt,re),xt}function J(Bt,xt,wt,Mt){const pt=xt.querySelectorAll(Bt);if(pt.length){const Lt=wt.querySelectorAll(Bt);for(let tt=0;tt<pt.length;tt++)Mt(pt[tt],Lt[tt])}}let Q=0;function re(Bt,xt){"file"!==xt.type&&(xt.value=Bt.value),"radio"===xt.type&&xt.name&&(xt.name=`mat-clone-${xt.name}-${Q++}`)}function de(Bt,xt){const wt=xt.getContext("2d");if(wt)try{wt.drawImage(Bt,0,0)}catch{}}const te=(0,a.i$)({passive:!0}),j=(0,a.i$)({passive:!1}),z=new Set(["position"]);class q{get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(xt){const wt=(0,l.Ig)(xt);wt!==this._disabled&&(this._disabled=wt,this._toggleNativeDragInteractions(),this._handles.forEach(Mt=>b(Mt,wt)))}constructor(xt,wt,Mt,pt,Lt,tt){this._config=wt,this._document=Mt,this._ngZone=pt,this._viewportRuler=Lt,this._dragDropRegistry=tt,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new d.x,this._pointerMoveSubscription=s.w0.EMPTY,this._pointerUpSubscription=s.w0.EMPTY,this._scrollSubscription=s.w0.EMPTY,this._resizeSubscription=s.w0.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new d.x,this.started=new d.x,this.released=new d.x,this.ended=new d.x,this.entered=new d.x,this.exited=new d.x,this.dropped=new d.x,this.moved=this._moveEvents,this._pointerDown=Ne=>{if(this.beforeStarted.next(),this._handles.length){const vt=this._getTargetHandle(Ne);vt&&!this._disabledHandles.has(vt)&&!this.disabled&&this._initializeDragSequence(vt,Ne)}else this.disabled||this._initializeDragSequence(this._rootElement,Ne)},this._pointerMove=Ne=>{const vt=this._getPointerPositionOnPage(Ne);if(!this._hasStartedDragging){if(Math.abs(vt.x-this._pickupPositionOnPage.x)+Math.abs(vt.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const si=Date.now()>=this._dragStartTime+this._getDragStartDelay(Ne),ot=this._dropContainer;if(!si)return void this._endDragSequence(Ne);(!ot||!ot.isDragging()&&!ot.isReceiving())&&(Ne.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(Ne)))}return}Ne.preventDefault();const ln=this._getConstrainedPointerPosition(vt);if(this._hasMoved=!0,this._lastKnownPointerPosition=vt,this._updatePointerDirectionDelta(ln),this._dropContainer)this._updateActiveDropContainer(ln,vt);else{const jn=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,Pi=this._activeTransform;Pi.x=ln.x-jn.x+this._passiveTransform.x,Pi.y=ln.y-jn.y+this._passiveTransform.y,this._applyRootElementTransform(Pi.x,Pi.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:ln,event:Ne,distance:this._getDragDistance(ln),delta:this._pointerDirectionDelta})})},this._pointerUp=Ne=>{this._endDragSequence(Ne)},this._nativeDragStart=Ne=>{if(this._handles.length){const vt=this._getTargetHandle(Ne);vt&&!this._disabledHandles.has(vt)&&!this.disabled&&Ne.preventDefault()}else this.disabled||Ne.preventDefault()},this.withRootElement(xt).withParent(wt.parentDragRef||null),this._parentPositions=new X(Mt),tt.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(xt){this._handles=xt.map(Mt=>(0,l.fI)(Mt)),this._handles.forEach(Mt=>b(Mt,this.disabled)),this._toggleNativeDragInteractions();const wt=new Set;return this._disabledHandles.forEach(Mt=>{this._handles.indexOf(Mt)>-1&&wt.add(Mt)}),this._disabledHandles=wt,this}withPreviewTemplate(xt){return this._previewTemplate=xt,this}withPlaceholderTemplate(xt){return this._placeholderTemplate=xt,this}withRootElement(xt){const wt=(0,l.fI)(xt);return wt!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{wt.addEventListener("mousedown",this._pointerDown,j),wt.addEventListener("touchstart",this._pointerDown,te),wt.addEventListener("dragstart",this._nativeDragStart,j)}),this._initialTransform=void 0,this._rootElement=wt),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(xt){return this._boundaryElement=xt?(0,l.fI)(xt):null,this._resizeSubscription.unsubscribe(),xt&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(xt){return this._parentDragRef=xt,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(xt){!this._disabledHandles.has(xt)&&this._handles.indexOf(xt)>-1&&(this._disabledHandles.add(xt),b(xt,!0))}enableHandle(xt){this._disabledHandles.has(xt)&&(this._disabledHandles.delete(xt),b(xt,this.disabled))}withDirection(xt){return this._direction=xt,this}_withDropContainer(xt){this._dropContainer=xt}getFreeDragPosition(){const xt=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:xt.x,y:xt.y}}setFreeDragPosition(xt){return this._activeTransform={x:0,y:0},this._passiveTransform.x=xt.x,this._passiveTransform.y=xt.y,this._dropContainer||this._applyRootElementTransform(xt.x,xt.y),this}withPreviewContainer(xt){return this._previewContainer=xt,this}_sortFromLastPointerPosition(){const xt=this._lastKnownPointerPosition;xt&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(xt),xt)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(xt){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:xt}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(xt),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const wt=this._getPointerPositionOnPage(xt);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(wt),dropPoint:wt,event:xt})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(xt){_e(xt)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const wt=this._dropContainer;if(wt){const Mt=this._rootElement,pt=Mt.parentNode,Lt=this._placeholder=this._createPlaceholderElement(),tt=this._anchor=this._anchor||this._document.createComment(""),Ne=this._getShadowRoot();pt.insertBefore(tt,Mt),this._initialTransform=Mt.style.transform||"",this._preview=this._createPreviewElement(),I(Mt,!1,z),this._document.body.appendChild(pt.replaceChild(Lt,Mt)),this._getPreviewInsertionPoint(pt,Ne).appendChild(this._preview),this.started.next({source:this,event:xt}),wt.start(),this._initialContainer=wt,this._initialIndex=wt.getItemIndex(this)}else this.started.next({source:this,event:xt}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(wt?wt.getScrollableParents():[])}_initializeDragSequence(xt,wt){this._parentDragRef&&wt.stopPropagation();const Mt=this.isDragging(),pt=_e(wt),Lt=!pt&&0!==wt.button,tt=this._rootElement,Ne=(0,a.sA)(wt),vt=!pt&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),ln=pt?(0,u.yG)(wt):(0,u.X6)(wt);if(Ne&&Ne.draggable&&"mousedown"===wt.type&&wt.preventDefault(),Mt||Lt||vt||ln)return;if(this._handles.length){const go=tt.style;this._rootElementTapHighlight=go.webkitTapHighlightColor||"",go.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(go=>this._updateOnScroll(go)),this._boundaryElement&&(this._boundaryRect=O(this._boundaryElement));const jn=this._previewTemplate;this._pickupPositionInElement=jn&&jn.template&&!jn.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,xt,wt);const Pi=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(wt);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Pi.x,y:Pi.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,wt)}_cleanupDragArtifacts(xt){I(this._rootElement,!0,z),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const wt=this._dropContainer,Mt=wt.getItemIndex(this),pt=this._getPointerPositionOnPage(xt),Lt=this._getDragDistance(pt),tt=wt._isOverContainer(pt.x,pt.y);this.ended.next({source:this,distance:Lt,dropPoint:pt,event:xt}),this.dropped.next({item:this,currentIndex:Mt,previousIndex:this._initialIndex,container:wt,previousContainer:this._initialContainer,isPointerOverContainer:tt,distance:Lt,dropPoint:pt,event:xt}),wt.drop(this,Mt,this._initialIndex,this._initialContainer,tt,Lt,pt,xt),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:xt,y:wt},{x:Mt,y:pt}){let Lt=this._initialContainer._getSiblingContainerFromPosition(this,xt,wt);!Lt&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(xt,wt)&&(Lt=this._initialContainer),Lt&&Lt!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=Lt,this._dropContainer.enter(this,xt,wt,Lt===this._initialContainer&&Lt.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:Lt,currentIndex:Lt.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(Mt,pt),this._dropContainer._sortItem(this,xt,wt,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(xt,wt):this._applyPreviewTransform(xt-this._pickupPositionInElement.x,wt-this._pickupPositionInElement.y))}_createPreviewElement(){const xt=this._previewTemplate,wt=this.previewClass,Mt=xt?xt.template:null;let pt;if(Mt&&xt){const Lt=xt.matchSize?this._initialClientRect:null,tt=xt.viewContainer.createEmbeddedView(Mt,xt.context);tt.detectChanges(),pt=ge(tt,this._document),this._previewRef=tt,xt.matchSize?Ce(pt,Lt):pt.style.transform=se(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else pt=me(this._rootElement),Ce(pt,this._initialClientRect),this._initialTransform&&(pt.style.transform=this._initialTransform);return E(pt.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},z),b(pt,!1),pt.classList.add("cdk-drag-preview"),pt.setAttribute("dir",this._direction),wt&&(Array.isArray(wt)?wt.forEach(Lt=>pt.classList.add(Lt)):pt.classList.add(wt)),pt}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const xt=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(xt.left,xt.top);const wt=function F(Bt){const xt=getComputedStyle(Bt),wt=P(xt,"transition-property"),Mt=wt.find(Ne=>"transform"===Ne||"all"===Ne);if(!Mt)return 0;const pt=wt.indexOf(Mt),Lt=P(xt,"transition-duration"),tt=P(xt,"transition-delay");return D(Lt[pt])+D(tt[pt])}(this._preview);return 0===wt?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(Mt=>{const pt=tt=>{(!tt||(0,a.sA)(tt)===this._preview&&"transform"===tt.propertyName)&&(this._preview?.removeEventListener("transitionend",pt),Mt(),clearTimeout(Lt))},Lt=setTimeout(pt,1.5*wt);this._preview.addEventListener("transitionend",pt)}))}_createPlaceholderElement(){const xt=this._placeholderTemplate,wt=xt?xt.template:null;let Mt;return wt?(this._placeholderRef=xt.viewContainer.createEmbeddedView(wt,xt.context),this._placeholderRef.detectChanges(),Mt=ge(this._placeholderRef,this._document)):Mt=me(this._rootElement),Mt.style.pointerEvents="none",Mt.classList.add("cdk-drag-placeholder"),Mt}_getPointerPositionInElement(xt,wt,Mt){const pt=wt===this._rootElement?null:wt,Lt=pt?pt.getBoundingClientRect():xt,tt=_e(Mt)?Mt.targetTouches[0]:Mt,Ne=this._getViewportScrollPosition();return{x:Lt.left-xt.left+(tt.pageX-Lt.left-Ne.left),y:Lt.top-xt.top+(tt.pageY-Lt.top-Ne.top)}}_getPointerPositionOnPage(xt){const wt=this._getViewportScrollPosition(),Mt=_e(xt)?xt.touches[0]||xt.changedTouches[0]||{pageX:0,pageY:0}:xt,pt=Mt.pageX-wt.left,Lt=Mt.pageY-wt.top;if(this._ownerSVGElement){const tt=this._ownerSVGElement.getScreenCTM();if(tt){const Ne=this._ownerSVGElement.createSVGPoint();return Ne.x=pt,Ne.y=Lt,Ne.matrixTransform(tt.inverse())}}return{x:pt,y:Lt}}_getConstrainedPointerPosition(xt){const wt=this._dropContainer?this._dropContainer.lockAxis:null;let{x:Mt,y:pt}=this.constrainPosition?this.constrainPosition(xt,this,this._initialClientRect,this._pickupPositionInElement):xt;if("x"===this.lockAxis||"x"===wt?pt=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===wt)&&(Mt=this._pickupPositionOnPage.x),this._boundaryRect){const{x:Lt,y:tt}=this._pickupPositionInElement,Ne=this._boundaryRect,{width:vt,height:ln}=this._getPreviewRect(),jn=Ne.top+tt,Pi=Ne.bottom-(ln-tt);Mt=ne(Mt,Ne.left+Lt,Ne.right-(vt-Lt)),pt=ne(pt,jn,Pi)}return{x:Mt,y:pt}}_updatePointerDirectionDelta(xt){const{x:wt,y:Mt}=xt,pt=this._pointerDirectionDelta,Lt=this._pointerPositionAtLastDirectionChange,tt=Math.abs(wt-Lt.x),Ne=Math.abs(Mt-Lt.y);return tt>this._config.pointerDirectionChangeThreshold&&(pt.x=wt>Lt.x?1:-1,Lt.x=wt),Ne>this._config.pointerDirectionChangeThreshold&&(pt.y=Mt>Lt.y?1:-1,Lt.y=Mt),pt}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const xt=this._handles.length>0||!this.isDragging();xt!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=xt,b(this._rootElement,xt))}_removeRootElementListeners(xt){xt.removeEventListener("mousedown",this._pointerDown,j),xt.removeEventListener("touchstart",this._pointerDown,te),xt.removeEventListener("dragstart",this._nativeDragStart,j)}_applyRootElementTransform(xt,wt){const Mt=se(xt,wt),pt=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=pt.transform&&"none"!=pt.transform?pt.transform:""),pt.transform=L(Mt,this._initialTransform)}_applyPreviewTransform(xt,wt){const Mt=this._previewTemplate?.template?void 0:this._initialTransform,pt=se(xt,wt);this._preview.style.transform=L(pt,Mt)}_getDragDistance(xt){const wt=this._pickupPositionOnPage;return wt?{x:xt.x-wt.x,y:xt.y-wt.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:xt,y:wt}=this._passiveTransform;if(0===xt&&0===wt||this.isDragging()||!this._boundaryElement)return;const Mt=this._rootElement.getBoundingClientRect(),pt=this._boundaryElement.getBoundingClientRect();if(0===pt.width&&0===pt.height||0===Mt.width&&0===Mt.height)return;const Lt=pt.left-Mt.left,tt=Mt.right-pt.right,Ne=pt.top-Mt.top,vt=Mt.bottom-pt.bottom;pt.width>Mt.width?(Lt>0&&(xt+=Lt),tt>0&&(xt-=tt)):xt=0,pt.height>Mt.height?(Ne>0&&(wt+=Ne),vt>0&&(wt-=vt)):wt=0,(xt!==this._passiveTransform.x||wt!==this._passiveTransform.y)&&this.setFreeDragPosition({y:wt,x:xt})}_getDragStartDelay(xt){const wt=this.dragStartDelay;return"number"==typeof wt?wt:_e(xt)?wt.touch:wt?wt.mouse:0}_updateOnScroll(xt){const wt=this._parentPositions.handleScroll(xt);if(wt){const Mt=(0,a.sA)(xt);this._boundaryRect&&Mt!==this._boundaryElement&&Mt.contains(this._boundaryElement)&&V(this._boundaryRect,wt.top,wt.left),this._pickupPositionOnPage.x+=wt.left,this._pickupPositionOnPage.y+=wt.top,this._dropContainer||(this._activeTransform.x-=wt.left,this._activeTransform.y-=wt.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,a.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(xt,wt){const Mt=this._previewContainer||"global";if("parent"===Mt)return xt;if("global"===Mt){const pt=this._document;return wt||pt.fullscreenElement||pt.webkitFullscreenElement||pt.mozFullScreenElement||pt.msFullscreenElement||pt.body}return(0,l.fI)(Mt)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(xt){return this._handles.find(wt=>xt.target&&(xt.target===wt||wt.contains(xt.target)))}}function se(Bt,xt){return`translate3d(${Math.round(Bt)}px, ${Math.round(xt)}px, 0)`}function ne(Bt,xt,wt){return Math.max(xt,Math.min(wt,Bt))}function _e(Bt){return"t"===Bt.type[0]}function ge(Bt,xt){const wt=Bt.rootNodes;if(1===wt.length&&wt[0].nodeType===xt.ELEMENT_NODE)return wt[0];const Mt=xt.createElement("div");return wt.forEach(pt=>Mt.appendChild(pt)),Mt}function Ce(Bt,xt){Bt.style.width=`${xt.width}px`,Bt.style.height=`${xt.height}px`,Bt.style.transform=se(xt.left,xt.top)}function Te(Bt,xt,wt){const Mt=xe(xt,Bt.length-1),pt=xe(wt,Bt.length-1);if(Mt===pt)return;const Lt=Bt[Mt],tt=pt<Mt?-1:1;for(let Ne=Mt;Ne!==pt;Ne+=tt)Bt[Ne]=Bt[Ne+tt];Bt[pt]=Lt}function De(Bt,xt,wt,Mt){const pt=xe(wt,Bt.length-1),Lt=xe(Mt,xt.length);Bt.length&&xt.splice(Lt,0,Bt.splice(pt,1)[0])}function xe(Bt,xt){return Math.max(0,Math.min(xt,Bt))}class Oe{constructor(xt,wt){this._element=xt,this._dragDropRegistry=wt,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(xt){this.withItems(xt)}sort(xt,wt,Mt,pt){const Lt=this._itemPositions,tt=this._getItemIndexFromPointerPosition(xt,wt,Mt,pt);if(-1===tt&&Lt.length>0)return null;const Ne="horizontal"===this.orientation,vt=Lt.findIndex(_i=>_i.drag===xt),ln=Lt[tt],Pi=ln.clientRect,go=vt>tt?1:-1,si=this._getItemOffsetPx(Lt[vt].clientRect,Pi,go),ot=this._getSiblingOffsetPx(vt,Lt,go),pn=Lt.slice();return Te(Lt,vt,tt),Lt.forEach((_i,wi)=>{if(pn[wi]===_i)return;const hi=_i.drag===xt,zn=hi?si:ot,Ei=hi?xt.getPlaceholderElement():_i.drag.getRootElement();_i.offset+=zn,Ne?(Ei.style.transform=L(`translate3d(${Math.round(_i.offset)}px, 0, 0)`,_i.initialTransform),V(_i.clientRect,0,zn)):(Ei.style.transform=L(`translate3d(0, ${Math.round(_i.offset)}px, 0)`,_i.initialTransform),V(_i.clientRect,zn,0))}),this._previousSwap.overlaps=U(Pi,wt,Mt),this._previousSwap.drag=ln.drag,this._previousSwap.delta=Ne?pt.x:pt.y,{previousIndex:vt,currentIndex:tt}}enter(xt,wt,Mt,pt){const Lt=null==pt||pt<0?this._getItemIndexFromPointerPosition(xt,wt,Mt):pt,tt=this._activeDraggables,Ne=tt.indexOf(xt),vt=xt.getPlaceholderElement();let ln=tt[Lt];if(ln===xt&&(ln=tt[Lt+1]),!ln&&(null==Lt||-1===Lt||Lt<tt.length-1)&&this._shouldEnterAsFirstChild(wt,Mt)&&(ln=tt[0]),Ne>-1&&tt.splice(Ne,1),ln&&!this._dragDropRegistry.isDragging(ln)){const jn=ln.getRootElement();jn.parentElement.insertBefore(vt,jn),tt.splice(Lt,0,xt)}else(0,l.fI)(this._element).appendChild(vt),tt.push(xt);vt.style.transform="",this._cacheItemPositions()}withItems(xt){this._activeDraggables=xt.slice(),this._cacheItemPositions()}withSortPredicate(xt){this._sortPredicate=xt}reset(){this._activeDraggables.forEach(xt=>{const wt=xt.getRootElement();if(wt){const Mt=this._itemPositions.find(pt=>pt.drag===xt)?.initialTransform;wt.style.transform=Mt||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(xt){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(Mt=>Mt.drag===xt)}updateOnScroll(xt,wt){this._itemPositions.forEach(({clientRect:Mt})=>{V(Mt,xt,wt)}),this._itemPositions.forEach(({drag:Mt})=>{this._dragDropRegistry.isDragging(Mt)&&Mt._sortFromLastPointerPosition()})}_cacheItemPositions(){const xt="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(wt=>{const Mt=wt.getVisibleElement();return{drag:wt,offset:0,initialTransform:Mt.style.transform||"",clientRect:O(Mt)}}).sort((wt,Mt)=>xt?wt.clientRect.left-Mt.clientRect.left:wt.clientRect.top-Mt.clientRect.top)}_getItemOffsetPx(xt,wt,Mt){const pt="horizontal"===this.orientation;let Lt=pt?wt.left-xt.left:wt.top-xt.top;return-1===Mt&&(Lt+=pt?wt.width-xt.width:wt.height-xt.height),Lt}_getSiblingOffsetPx(xt,wt,Mt){const pt="horizontal"===this.orientation,Lt=wt[xt].clientRect,tt=wt[xt+-1*Mt];let Ne=Lt[pt?"width":"height"]*Mt;if(tt){const vt=pt?"left":"top",ln=pt?"right":"bottom";-1===Mt?Ne-=tt.clientRect[vt]-Lt[ln]:Ne+=Lt[vt]-tt.clientRect[ln]}return Ne}_shouldEnterAsFirstChild(xt,wt){if(!this._activeDraggables.length)return!1;const Mt=this._itemPositions,pt="horizontal"===this.orientation;if(Mt[0].drag!==this._activeDraggables[0]){const tt=Mt[Mt.length-1].clientRect;return pt?xt>=tt.right:wt>=tt.bottom}{const tt=Mt[0].clientRect;return pt?xt<=tt.left:wt<=tt.top}}_getItemIndexFromPointerPosition(xt,wt,Mt,pt){const Lt="horizontal"===this.orientation,tt=this._itemPositions.findIndex(({drag:Ne,clientRect:vt})=>Ne!==xt&&((!pt||Ne!==this._previousSwap.drag||!this._previousSwap.overlaps||(Lt?pt.x:pt.y)!==this._previousSwap.delta)&&(Lt?wt>=Math.floor(vt.left)&&wt<Math.floor(vt.right):Mt>=Math.floor(vt.top)&&Mt<Math.floor(vt.bottom))));return-1!==tt&&this._sortPredicate(tt,xt)?tt:-1}}class Ut{constructor(xt,wt,Mt,pt,Lt){this._dragDropRegistry=wt,this._ngZone=pt,this._viewportRuler=Lt,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new d.x,this.entered=new d.x,this.exited=new d.x,this.dropped=new d.x,this.sorted=new d.x,this.receivingStarted=new d.x,this.receivingStopped=new d.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=s.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new d.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,A.F)(0,_.Z).pipe((0,x.R)(this._stopScrollTimers)).subscribe(()=>{const tt=this._scrollNode,Ne=this.autoScrollStep;1===this._verticalScrollDirection?tt.scrollBy(0,-Ne):2===this._verticalScrollDirection&&tt.scrollBy(0,Ne),1===this._horizontalScrollDirection?tt.scrollBy(-Ne,0):2===this._horizontalScrollDirection&&tt.scrollBy(Ne,0)})},this.element=(0,l.fI)(xt),this._document=Mt,this.withScrollableParents([this.element]),wt.registerDropContainer(this),this._parentPositions=new X(Mt),this._sortStrategy=new Oe(this.element,wt),this._sortStrategy.withSortPredicate((tt,Ne)=>this.sortPredicate(tt,Ne,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(xt,wt,Mt,pt){this._draggingStarted(),null==pt&&this.sortingDisabled&&(pt=this._draggables.indexOf(xt)),this._sortStrategy.enter(xt,wt,Mt,pt),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:xt,container:this,currentIndex:this.getItemIndex(xt)})}exit(xt){this._reset(),this.exited.next({item:xt,container:this})}drop(xt,wt,Mt,pt,Lt,tt,Ne,vt={}){this._reset(),this.dropped.next({item:xt,currentIndex:wt,previousIndex:Mt,container:this,previousContainer:pt,isPointerOverContainer:Lt,distance:tt,dropPoint:Ne,event:vt})}withItems(xt){const wt=this._draggables;return this._draggables=xt,xt.forEach(Mt=>Mt._withDropContainer(this)),this.isDragging()&&(wt.filter(pt=>pt.isDragging()).every(pt=>-1===xt.indexOf(pt))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(xt){return this._sortStrategy.direction=xt,this}connectedTo(xt){return this._siblings=xt.slice(),this}withOrientation(xt){return this._sortStrategy.orientation=xt,this}withScrollableParents(xt){const wt=(0,l.fI)(this.element);return this._scrollableElements=-1===xt.indexOf(wt)?[wt,...xt]:xt.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(xt){return this._isDragging?this._sortStrategy.getItemIndex(xt):this._draggables.indexOf(xt)}isReceiving(){return this._activeSiblings.size>0}_sortItem(xt,wt,Mt,pt){if(this.sortingDisabled||!this._clientRect||!K(this._clientRect,.05,wt,Mt))return;const Lt=this._sortStrategy.sort(xt,wt,Mt,pt);Lt&&this.sorted.next({previousIndex:Lt.previousIndex,currentIndex:Lt.currentIndex,container:this,item:xt})}_startScrollingIfNecessary(xt,wt){if(this.autoScrollDisabled)return;let Mt,pt=0,Lt=0;if(this._parentPositions.positions.forEach((tt,Ne)=>{Ne===this._document||!tt.clientRect||Mt||K(tt.clientRect,.05,xt,wt)&&([pt,Lt]=function xn(Bt,xt,wt,Mt){const pt=An(xt,Mt),Lt=$n(xt,wt);let tt=0,Ne=0;if(pt){const vt=Bt.scrollTop;1===pt?vt>0&&(tt=1):Bt.scrollHeight-vt>Bt.clientHeight&&(tt=2)}if(Lt){const vt=Bt.scrollLeft;1===Lt?vt>0&&(Ne=1):Bt.scrollWidth-vt>Bt.clientWidth&&(Ne=2)}return[tt,Ne]}(Ne,tt.clientRect,xt,wt),(pt||Lt)&&(Mt=Ne))}),!pt&&!Lt){const{width:tt,height:Ne}=this._viewportRuler.getViewportSize(),vt={width:tt,height:Ne,top:0,right:tt,bottom:Ne,left:0};pt=An(vt,wt),Lt=$n(vt,xt),Mt=window}Mt&&(pt!==this._verticalScrollDirection||Lt!==this._horizontalScrollDirection||Mt!==this._scrollNode)&&(this._verticalScrollDirection=pt,this._horizontalScrollDirection=Lt,this._scrollNode=Mt,(pt||Lt)&&Mt?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const xt=(0,l.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=xt.msScrollSnapType||xt.scrollSnapType||"",xt.scrollSnapType=xt.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const xt=(0,l.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(xt).clientRect}_reset(){this._isDragging=!1;const xt=(0,l.fI)(this.element).style;xt.scrollSnapType=xt.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(wt=>wt._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(xt,wt){return null!=this._clientRect&&U(this._clientRect,xt,wt)}_getSiblingContainerFromPosition(xt,wt,Mt){return this._siblings.find(pt=>pt._canReceive(xt,wt,Mt))}_canReceive(xt,wt,Mt){if(!this._clientRect||!U(this._clientRect,wt,Mt)||!this.enterPredicate(xt,this))return!1;const pt=this._getShadowRoot().elementFromPoint(wt,Mt);if(!pt)return!1;const Lt=(0,l.fI)(this.element);return pt===Lt||Lt.contains(pt)}_startReceiving(xt,wt){const Mt=this._activeSiblings;!Mt.has(xt)&&wt.every(pt=>this.enterPredicate(pt,this)||this._draggables.indexOf(pt)>-1)&&(Mt.add(xt),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:xt,receiver:this,items:wt}))}_stopReceiving(xt){this._activeSiblings.delete(xt),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:xt,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(xt=>{if(this.isDragging()){const wt=this._parentPositions.handleScroll(xt);wt&&this._sortStrategy.updateOnScroll(wt.top,wt.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const xt=(0,a.kV)((0,l.fI)(this.element));this._cachedShadowRoot=xt||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const xt=this._sortStrategy.getActiveItemsSnapshot().filter(wt=>wt.isDragging());this._siblings.forEach(wt=>wt._startReceiving(this,xt))}}function An(Bt,xt){const{top:wt,bottom:Mt,height:pt}=Bt,Lt=.05*pt;return xt>=wt-Lt&&xt<=wt+Lt?1:xt>=Mt-Lt&&xt<=Mt+Lt?2:0}function $n(Bt,xt){const{left:wt,right:Mt,width:pt}=Bt,Lt=.05*pt;return xt>=wt-Lt&&xt<=wt+Lt?1:xt>=Mt-Lt&&xt<=Mt+Lt?2:0}const mt=(0,a.i$)({passive:!1,capture:!0});let ut=(()=>{class Bt{constructor(wt,Mt){this._ngZone=wt,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=pt=>pt.isDragging(),this.pointerMove=new d.x,this.pointerUp=new d.x,this.scroll=new d.x,this._preventDefaultWhileDragging=pt=>{this._activeDragInstances.length>0&&pt.preventDefault()},this._persistentTouchmoveListener=pt=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&pt.preventDefault(),this.pointerMove.next(pt))},this._document=Mt}registerDropContainer(wt){this._dropInstances.has(wt)||this._dropInstances.add(wt)}registerDragItem(wt){this._dragInstances.add(wt),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,mt)})}removeDropContainer(wt){this._dropInstances.delete(wt)}removeDragItem(wt){this._dragInstances.delete(wt),this.stopDragging(wt),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,mt)}startDragging(wt,Mt){if(!(this._activeDragInstances.indexOf(wt)>-1)&&(this._activeDragInstances.push(wt),1===this._activeDragInstances.length)){const pt=Mt.type.startsWith("touch");this._globalListeners.set(pt?"touchend":"mouseup",{handler:Lt=>this.pointerUp.next(Lt),options:!0}).set("scroll",{handler:Lt=>this.scroll.next(Lt),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:mt}),pt||this._globalListeners.set("mousemove",{handler:Lt=>this.pointerMove.next(Lt),options:mt}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((Lt,tt)=>{this._document.addEventListener(tt,Lt.handler,Lt.options)})})}}stopDragging(wt){const Mt=this._activeDragInstances.indexOf(wt);Mt>-1&&(this._activeDragInstances.splice(Mt,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(wt){return this._activeDragInstances.indexOf(wt)>-1}scrolled(wt){const Mt=[this.scroll];return wt&&wt!==this._document&&Mt.push(new C.y(pt=>this._ngZone.runOutsideAngular(()=>{const tt=Ne=>{this._activeDragInstances.length&&pt.next(Ne)};return wt.addEventListener("scroll",tt,!0),()=>{wt.removeEventListener("scroll",tt,!0)}}))),(0,R.T)(...Mt)}ngOnDestroy(){this._dragInstances.forEach(wt=>this.removeDragItem(wt)),this._dropInstances.forEach(wt=>this.removeDropContainer(wt)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((wt,Mt)=>{this._document.removeEventListener(Mt,wt.handler,wt.options)}),this._globalListeners.clear()}static#e=this.\u0275fac=function(Mt){return new(Mt||Bt)(e.LFG(e.R0b),e.LFG(n.K0))};static#t=this.\u0275prov=e.Yz7({token:Bt,factory:Bt.\u0275fac,providedIn:"root"})}return Bt})();const Wt={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let dn=(()=>{class Bt{constructor(wt,Mt,pt,Lt){this._document=wt,this._ngZone=Mt,this._viewportRuler=pt,this._dragDropRegistry=Lt}createDrag(wt,Mt=Wt){return new q(wt,Mt,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(wt){return new Ut(wt,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static#e=this.\u0275fac=function(Mt){return new(Mt||Bt)(e.LFG(n.K0),e.LFG(e.R0b),e.LFG(o.rL),e.LFG(ut))};static#t=this.\u0275prov=e.Yz7({token:Bt,factory:Bt.\u0275fac,providedIn:"root"})}return Bt})();const sn=new e.OlP("CDK_DRAG_PARENT"),yi=new e.OlP("CdkDragHandle");let nn=(()=>{class Bt{get disabled(){return this._disabled}set disabled(wt){this._disabled=(0,l.Ig)(wt),this._stateChanges.next(this)}constructor(wt,Mt){this.element=wt,this._stateChanges=new d.x,this._disabled=!1,this._parentDrag=Mt}ngOnDestroy(){this._stateChanges.complete()}static#e=this.\u0275fac=function(Mt){return new(Mt||Bt)(e.Y36(e.SBq),e.Y36(sn,12))};static#t=this.\u0275dir=e.lG2({type:Bt,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},standalone:!0,features:[e._Bn([{provide:yi,useExisting:Bt}])]})}return Bt})();const Mi=new e.OlP("CdkDragPlaceholder");let mi=(()=>{class Bt{constructor(wt){this.templateRef=wt}static#e=this.\u0275fac=function(Mt){return new(Mt||Bt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:Bt,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"},standalone:!0,features:[e._Bn([{provide:Mi,useExisting:Bt}])]})}return Bt})();const Eo=new e.OlP("CdkDragPreview"),xo=new e.OlP("CDK_DRAG_CONFIG"),Xt=new e.OlP("CdkDropList");let Ji=(()=>{class Bt{static#e=this._dragInstances=[];get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(wt){this._disabled=(0,l.Ig)(wt),this._dragRef.disabled=this._disabled}constructor(wt,Mt,pt,Lt,tt,Ne,vt,ln,jn,Pi,go){this.element=wt,this.dropContainer=Mt,this._ngZone=Lt,this._viewContainerRef=tt,this._dir=vt,this._changeDetectorRef=jn,this._selfHandle=Pi,this._parentDrag=go,this._destroyed=new d.x,this.started=new e.vpe,this.released=new e.vpe,this.ended=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.dropped=new e.vpe,this.moved=new C.y(si=>{const ot=this._dragRef.moved.pipe((0,f.U)(pn=>({source:this,pointerPosition:pn.pointerPosition,event:pn.event,delta:pn.delta,distance:pn.distance}))).subscribe(si);return()=>{ot.unsubscribe()}}),this._dragRef=ln.createDrag(wt,{dragStartThreshold:Ne&&null!=Ne.dragStartThreshold?Ne.dragStartThreshold:5,pointerDirectionChangeThreshold:Ne&&null!=Ne.pointerDirectionChangeThreshold?Ne.pointerDirectionChangeThreshold:5,zIndex:Ne?.zIndex}),this._dragRef.data=this,Bt._dragInstances.push(this),Ne&&this._assignDefaults(Ne),Mt&&(this._dragRef._withDropContainer(Mt._dropListRef),Mt.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(wt){this._dragRef.setFreeDragPosition(wt)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,k.q)(1),(0,x.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(wt){const Mt=wt.rootElementSelector,pt=wt.freeDragPosition;Mt&&!Mt.firstChange&&this._updateRootElement(),pt&&!pt.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const wt=Bt._dragInstances.indexOf(this);wt>-1&&Bt._dragInstances.splice(wt,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const wt=this.element.nativeElement;let Mt=wt;this.rootElementSelector&&(Mt=void 0!==wt.closest?wt.closest(this.rootElementSelector):wt.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(Mt||wt)}_getBoundaryElement(){const wt=this.boundaryElement;return wt?"string"==typeof wt?this.element.nativeElement.closest(wt):(0,l.fI)(wt):null}_syncInputs(wt){wt.beforeStarted.subscribe(()=>{if(!wt.isDragging()){const Mt=this._dir,pt=this.dragStartDelay,Lt=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,tt=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;wt.disabled=this.disabled,wt.lockAxis=this.lockAxis,wt.dragStartDelay="object"==typeof pt&&pt?pt:(0,l.su)(pt),wt.constrainPosition=this.constrainPosition,wt.previewClass=this.previewClass,wt.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(Lt).withPreviewTemplate(tt).withPreviewContainer(this.previewContainer||"global"),Mt&&wt.withDirection(Mt.value)}}),wt.beforeStarted.pipe((0,k.q)(1)).subscribe(()=>{if(this._parentDrag)return void wt.withParent(this._parentDrag._dragRef);let Mt=this.element.nativeElement.parentElement;for(;Mt;){if(Mt.classList.contains("cdk-drag")){wt.withParent(Bt._dragInstances.find(pt=>pt.element.nativeElement===Mt)?._dragRef||null);break}Mt=Mt.parentElement}})}_handleEvents(wt){wt.started.subscribe(Mt=>{this.started.emit({source:this,event:Mt.event}),this._changeDetectorRef.markForCheck()}),wt.released.subscribe(Mt=>{this.released.emit({source:this,event:Mt.event})}),wt.ended.subscribe(Mt=>{this.ended.emit({source:this,distance:Mt.distance,dropPoint:Mt.dropPoint,event:Mt.event}),this._changeDetectorRef.markForCheck()}),wt.entered.subscribe(Mt=>{this.entered.emit({container:Mt.container.data,item:this,currentIndex:Mt.currentIndex})}),wt.exited.subscribe(Mt=>{this.exited.emit({container:Mt.container.data,item:this})}),wt.dropped.subscribe(Mt=>{this.dropped.emit({previousIndex:Mt.previousIndex,currentIndex:Mt.currentIndex,previousContainer:Mt.previousContainer.data,container:Mt.container.data,isPointerOverContainer:Mt.isPointerOverContainer,item:this,distance:Mt.distance,dropPoint:Mt.dropPoint,event:Mt.event})})}_assignDefaults(wt){const{lockAxis:Mt,dragStartDelay:pt,constrainPosition:Lt,previewClass:tt,boundaryElement:Ne,draggingDisabled:vt,rootElementSelector:ln,previewContainer:jn}=wt;this.disabled=vt??!1,this.dragStartDelay=pt||0,Mt&&(this.lockAxis=Mt),Lt&&(this.constrainPosition=Lt),tt&&(this.previewClass=tt),Ne&&(this.boundaryElement=Ne),ln&&(this.rootElementSelector=ln),jn&&(this.previewContainer=jn)}_setupHandlesListener(){this._handles.changes.pipe((0,w.O)(this._handles),(0,g.b)(wt=>{const Mt=wt.filter(pt=>pt._parentDrag===this).map(pt=>pt.element);this._selfHandle&&this.rootElementSelector&&Mt.push(this.element),this._dragRef.withHandles(Mt)}),(0,M.w)(wt=>(0,R.T)(...wt.map(Mt=>Mt._stateChanges.pipe((0,w.O)(Mt))))),(0,x.R)(this._destroyed)).subscribe(wt=>{const Mt=this._dragRef,pt=wt.element.nativeElement;wt.disabled?Mt.disableHandle(pt):Mt.enableHandle(pt)})}static#t=this.\u0275fac=function(Mt){return new(Mt||Bt)(e.Y36(e.SBq),e.Y36(Xt,12),e.Y36(n.K0),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(xo,8),e.Y36(p.Is,8),e.Y36(dn),e.Y36(e.sBO),e.Y36(yi,10),e.Y36(sn,12))};static#n=this.\u0275dir=e.lG2({type:Bt,selectors:[["","cdkDrag",""]],contentQueries:function(Mt,pt,Lt){if(1&Mt&&(e.Suo(Lt,Eo,5),e.Suo(Lt,Mi,5),e.Suo(Lt,yi,5)),2&Mt){let tt;e.iGM(tt=e.CRH())&&(pt._previewTemplate=tt.first),e.iGM(tt=e.CRH())&&(pt._placeholderTemplate=tt.first),e.iGM(tt=e.CRH())&&(pt._handles=tt)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(Mt,pt){2&Mt&&e.ekj("cdk-drag-disabled",pt.disabled)("cdk-drag-dragging",pt._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[e._Bn([{provide:sn,useExisting:Bt}]),e.TTD]})}return Bt})();const En=new e.OlP("CdkDropListGroup");let un=(()=>{class Bt{constructor(){this._items=new Set,this._disabled=!1}get disabled(){return this._disabled}set disabled(wt){this._disabled=(0,l.Ig)(wt)}ngOnDestroy(){this._items.clear()}static#e=this.\u0275fac=function(Mt){return new(Mt||Bt)};static#t=this.\u0275dir=e.lG2({type:Bt,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],standalone:!0,features:[e._Bn([{provide:En,useExisting:Bt}])]})}return Bt})(),Ki=0,Fn=(()=>{class Bt{static#e=this._dropLists=[];get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(wt){this._dropListRef.disabled=this._disabled=(0,l.Ig)(wt)}constructor(wt,Mt,pt,Lt,tt,Ne,vt){this.element=wt,this._changeDetectorRef=pt,this._scrollDispatcher=Lt,this._dir=tt,this._group=Ne,this._destroyed=new d.x,this.connectedTo=[],this.id="cdk-drop-list-"+Ki++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.sorted=new e.vpe,this._unsortedItems=new Set,this._dropListRef=Mt.createDropList(wt),this._dropListRef.data=this,vt&&this._assignDefaults(vt),this._dropListRef.enterPredicate=(ln,jn)=>this.enterPredicate(ln.data,jn.data),this._dropListRef.sortPredicate=(ln,jn,Pi)=>this.sortPredicate(ln,jn.data,Pi.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),Bt._dropLists.push(this),Ne&&Ne._items.add(this)}addItem(wt){this._unsortedItems.add(wt),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(wt){this._unsortedItems.delete(wt),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((wt,Mt)=>wt._dragRef.getVisibleElement().compareDocumentPosition(Mt._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const wt=Bt._dropLists.indexOf(this);wt>-1&&Bt._dropLists.splice(wt,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(wt){this._dir&&this._dir.change.pipe((0,w.O)(this._dir.value),(0,x.R)(this._destroyed)).subscribe(Mt=>wt.withDirection(Mt)),wt.beforeStarted.subscribe(()=>{const Mt=(0,l.Eq)(this.connectedTo).map(pt=>"string"==typeof pt?Bt._dropLists.find(tt=>tt.id===pt):pt);if(this._group&&this._group._items.forEach(pt=>{-1===Mt.indexOf(pt)&&Mt.push(pt)}),!this._scrollableParentsResolved){const pt=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(Lt=>Lt.getElementRef().nativeElement);this._dropListRef.withScrollableParents(pt),this._scrollableParentsResolved=!0}wt.disabled=this.disabled,wt.lockAxis=this.lockAxis,wt.sortingDisabled=(0,l.Ig)(this.sortingDisabled),wt.autoScrollDisabled=(0,l.Ig)(this.autoScrollDisabled),wt.autoScrollStep=(0,l.su)(this.autoScrollStep,2),wt.connectedTo(Mt.filter(pt=>pt&&pt!==this).map(pt=>pt._dropListRef)).withOrientation(this.orientation)})}_handleEvents(wt){wt.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),wt.entered.subscribe(Mt=>{this.entered.emit({container:this,item:Mt.item.data,currentIndex:Mt.currentIndex})}),wt.exited.subscribe(Mt=>{this.exited.emit({container:this,item:Mt.item.data}),this._changeDetectorRef.markForCheck()}),wt.sorted.subscribe(Mt=>{this.sorted.emit({previousIndex:Mt.previousIndex,currentIndex:Mt.currentIndex,container:this,item:Mt.item.data})}),wt.dropped.subscribe(Mt=>{this.dropped.emit({previousIndex:Mt.previousIndex,currentIndex:Mt.currentIndex,previousContainer:Mt.previousContainer.data,container:Mt.container.data,item:Mt.item.data,isPointerOverContainer:Mt.isPointerOverContainer,distance:Mt.distance,dropPoint:Mt.dropPoint,event:Mt.event}),this._changeDetectorRef.markForCheck()}),(0,R.T)(wt.receivingStarted,wt.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(wt){const{lockAxis:Mt,draggingDisabled:pt,sortingDisabled:Lt,listAutoScrollDisabled:tt,listOrientation:Ne}=wt;this.disabled=pt??!1,this.sortingDisabled=Lt??!1,this.autoScrollDisabled=tt??!1,this.orientation=Ne||"vertical",Mt&&(this.lockAxis=Mt)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(wt=>wt._dragRef))}static#t=this.\u0275fac=function(Mt){return new(Mt||Bt)(e.Y36(e.SBq),e.Y36(dn),e.Y36(e.sBO),e.Y36(o.mF),e.Y36(p.Is,8),e.Y36(En,12),e.Y36(xo,8))};static#n=this.\u0275dir=e.lG2({type:Bt,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(Mt,pt){2&Mt&&(e.uIk("id",pt.id),e.ekj("cdk-drop-list-disabled",pt.disabled)("cdk-drop-list-dragging",pt._dropListRef.isDragging())("cdk-drop-list-receiving",pt._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[e._Bn([{provide:En,useValue:void 0},{provide:Xt,useExisting:Bt}])]})}return Bt})(),It=(()=>{class Bt{static#e=this.\u0275fac=function(Mt){return new(Mt||Bt)};static#t=this.\u0275mod=e.oAB({type:Bt});static#n=this.\u0275inj=e.cJS({providers:[dn],imports:[o.ZD]})}return Bt})()},36028:(he,y,i)=>{"use strict";i.d(y,{A:()=>H,JH:()=>E,JU:()=>u,K5:()=>l,Ku:()=>x,LH:()=>M,L_:()=>R,MW:()=>nn,Mf:()=>o,OC:()=>Bi,SV:()=>p,Sd:()=>w,VM:()=>f,Vb:()=>Gn,Z:()=>yi,ZH:()=>n,aO:()=>Q,b2:()=>ai,hY:()=>C,jx:()=>d,oh:()=>g,uR:()=>k,xE:()=>F,yY:()=>D,zL:()=>s});const n=8,o=9,l=13,u=16,d=17,s=18,C=27,R=32,x=33,f=34,k=35,w=36,g=37,M=38,p=39,E=40,D=46,F=48,Q=57,H=65,yi=90,nn=91,Bi=188,ai=224;function Gn(Io,...wr){return wr.length?wr.some(bs=>Io[bs]):Io.altKey||Io.shiftKey||Io.ctrlKey||Io.metaKey}},71088:(he,y,i)=>{"use strict";i.d(y,{Yg:()=>E,u3:()=>I});var e=i(65879),n=i(42495),o=i(78645),a=i(52572),l=i(35211),u=i(65592),d=i(48180),s=i(836),A=i(83620),_=i(37398),C=i(27921),R=i(59773),x=i(62831);const k=new Set;let w,g=(()=>{class L{constructor(F,P){this._platform=F,this._nonce=P,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):p}matchMedia(F){return(this._platform.WEBKIT||this._platform.BLINK)&&function M(L,D){if(!k.has(L))try{w||(w=document.createElement("style"),D&&(w.nonce=D),w.setAttribute("type","text/css"),document.head.appendChild(w)),w.sheet&&(w.sheet.insertRule(`@media ${L} {body{ }}`,0),k.add(L))}catch(F){console.error(F)}}(F,this._nonce),this._matchMedia(F)}static#e=this.\u0275fac=function(P){return new(P||L)(e.LFG(x.t4),e.LFG(e.Ojb,8))};static#t=this.\u0275prov=e.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();function p(L){return{matches:"all"===L||""===L,media:L,addListener:()=>{},removeListener:()=>{}}}let E=(()=>{class L{constructor(F,P){this._mediaMatcher=F,this._zone=P,this._queries=new Map,this._destroySubject=new o.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(F){return b((0,n.Eq)(F)).some(O=>this._registerQuery(O).mql.matches)}observe(F){const O=b((0,n.Eq)(F)).map(V=>this._registerQuery(V).observable);let U=(0,a.a)(O);return U=(0,l.z)(U.pipe((0,d.q)(1)),U.pipe((0,s.T)(1),(0,A.b)(0))),U.pipe((0,_.U)(V=>{const K={matches:!1,breakpoints:{}};return V.forEach(({matches:X,query:me})=>{K.matches=K.matches||X,K.breakpoints[me]=X}),K}))}_registerQuery(F){if(this._queries.has(F))return this._queries.get(F);const P=this._mediaMatcher.matchMedia(F),U={observable:new u.y(V=>{const K=X=>this._zone.run(()=>V.next(X));return P.addListener(K),()=>{P.removeListener(K)}}).pipe((0,C.O)(P),(0,_.U)(({matches:V})=>({query:F,matches:V})),(0,R.R)(this._destroySubject)),mql:P};return this._queries.set(F,U),U}static#e=this.\u0275fac=function(P){return new(P||L)(e.LFG(g),e.LFG(e.R0b))};static#t=this.\u0275prov=e.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();function b(L){return L.map(D=>D.split(",")).reduce((D,F)=>D.concat(F)).map(D=>D.trim())}const I={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},17131:(he,y,i)=>{"use strict";i.d(y,{Q8:()=>A,wD:()=>s});var e=i(42495),n=i(65879),o=i(65592),a=i(78645),l=i(83620);let u=(()=>{class _{create(R){return typeof MutationObserver>"u"?null:new MutationObserver(R)}static#e=this.\u0275fac=function(x){return new(x||_)};static#t=this.\u0275prov=n.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"})}return _})(),d=(()=>{class _{constructor(R){this._mutationObserverFactory=R,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((R,x)=>this._cleanupObserver(x))}observe(R){const x=(0,e.fI)(R);return new o.y(f=>{const w=this._observeElement(x).subscribe(f);return()=>{w.unsubscribe(),this._unobserveElement(x)}})}_observeElement(R){if(this._observedElements.has(R))this._observedElements.get(R).count++;else{const x=new a.x,f=this._mutationObserverFactory.create(k=>x.next(k));f&&f.observe(R,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(R,{observer:f,stream:x,count:1})}return this._observedElements.get(R).stream}_unobserveElement(R){this._observedElements.has(R)&&(this._observedElements.get(R).count--,this._observedElements.get(R).count||this._cleanupObserver(R))}_cleanupObserver(R){if(this._observedElements.has(R)){const{observer:x,stream:f}=this._observedElements.get(R);x&&x.disconnect(),f.complete(),this._observedElements.delete(R)}}static#e=this.\u0275fac=function(x){return new(x||_)(n.LFG(u))};static#t=this.\u0275prov=n.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"})}return _})(),s=(()=>{class _{get disabled(){return this._disabled}set disabled(R){this._disabled=(0,e.Ig)(R),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(R){this._debounce=(0,e.su)(R),this._subscribe()}constructor(R,x,f){this._contentObserver=R,this._elementRef=x,this._ngZone=f,this.event=new n.vpe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const R=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?R.pipe((0,l.b)(this.debounce)):R).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(x){return new(x||_)(n.Y36(d),n.Y36(n.SBq),n.Y36(n.R0b))};static#t=this.\u0275dir=n.lG2({type:_,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return _})(),A=(()=>{class _{static#e=this.\u0275fac=function(x){return new(x||_)};static#t=this.\u0275mod=n.oAB({type:_});static#n=this.\u0275inj=n.cJS({providers:[u]})}return _})()},69594:(he,y,i)=>{"use strict";i.d(y,{Iu:()=>re,U8:()=>An,X_:()=>F,Xj:()=>Q,_G:()=>j,aV:()=>De,pI:()=>Le,xu:()=>Oe});var e=i(16672),n=i(96814),o=i(65879),a=i(42495),l=i(62831),u=i(32181),d=i(48180),s=i(59773),A=i(30812),_=i(49388),C=i(68484),R=i(78645),x=i(47394),f=i(63019),k=i(36028);const w=(0,l.Mq)();class g{constructor(mt,ut){this._viewportRuler=mt,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ut}attach(){}enable(){if(this._canBeEnabled()){const mt=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=mt.style.left||"",this._previousHTMLStyles.top=mt.style.top||"",mt.style.left=(0,a.HM)(-this._previousScrollPosition.left),mt.style.top=(0,a.HM)(-this._previousScrollPosition.top),mt.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const mt=this._document.documentElement,Wt=mt.style,dn=this._document.body.style,sn=Wt.scrollBehavior||"",fn=dn.scrollBehavior||"";this._isEnabled=!1,Wt.left=this._previousHTMLStyles.left,Wt.top=this._previousHTMLStyles.top,mt.classList.remove("cdk-global-scrollblock"),w&&(Wt.scrollBehavior=dn.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),w&&(Wt.scrollBehavior=sn,dn.scrollBehavior=fn)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ut=this._document.body,Wt=this._viewportRuler.getViewportSize();return ut.scrollHeight>Wt.height||ut.scrollWidth>Wt.width}}class p{constructor(mt,ut,Wt,dn){this._scrollDispatcher=mt,this._ngZone=ut,this._viewportRuler=Wt,this._config=dn,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(mt){this._overlayRef=mt}enable(){if(this._scrollSubscription)return;const mt=this._scrollDispatcher.scrolled(0).pipe((0,u.h)(ut=>!ut||!this._overlayRef.overlayElement.contains(ut.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=mt.subscribe(()=>{const ut=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ut-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=mt.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class E{enable(){}disable(){}attach(){}}function b(xn,mt){return mt.some(ut=>xn.bottom<ut.top||xn.top>ut.bottom||xn.right<ut.left||xn.left>ut.right)}function I(xn,mt){return mt.some(ut=>xn.top<ut.top||xn.bottom>ut.bottom||xn.left<ut.left||xn.right>ut.right)}class L{constructor(mt,ut,Wt,dn){this._scrollDispatcher=mt,this._viewportRuler=ut,this._ngZone=Wt,this._config=dn,this._scrollSubscription=null}attach(mt){this._overlayRef=mt}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 ut=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Wt,height:dn}=this._viewportRuler.getViewportSize();b(ut,[{width:Wt,height:dn,bottom:dn,right:Wt,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 D=(()=>{class xn{constructor(ut,Wt,dn,sn){this._scrollDispatcher=ut,this._viewportRuler=Wt,this._ngZone=dn,this.noop=()=>new E,this.close=fn=>new p(this._scrollDispatcher,this._ngZone,this._viewportRuler,fn),this.block=()=>new g(this._viewportRuler,this._document),this.reposition=fn=>new L(this._scrollDispatcher,this._viewportRuler,this._ngZone,fn),this._document=sn}static#e=this.\u0275fac=function(Wt){return new(Wt||xn)(o.LFG(e.mF),o.LFG(e.rL),o.LFG(o.R0b),o.LFG(n.K0))};static#t=this.\u0275prov=o.Yz7({token:xn,factory:xn.\u0275fac,providedIn:"root"})}return xn})();class F{constructor(mt){if(this.scrollStrategy=new E,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,mt){const ut=Object.keys(mt);for(const Wt of ut)void 0!==mt[Wt]&&(this[Wt]=mt[Wt])}}}class U{constructor(mt,ut){this.connectionPair=mt,this.scrollableViewProperties=ut}}let X=(()=>{class xn{constructor(ut){this._attachedOverlays=[],this._document=ut}ngOnDestroy(){this.detach()}add(ut){this.remove(ut),this._attachedOverlays.push(ut)}remove(ut){const Wt=this._attachedOverlays.indexOf(ut);Wt>-1&&this._attachedOverlays.splice(Wt,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(Wt){return new(Wt||xn)(o.LFG(n.K0))};static#t=this.\u0275prov=o.Yz7({token:xn,factory:xn.\u0275fac,providedIn:"root"})}return xn})(),me=(()=>{class xn extends X{constructor(ut,Wt){super(ut),this._ngZone=Wt,this._keydownListener=dn=>{const sn=this._attachedOverlays;for(let fn=sn.length-1;fn>-1;fn--)if(sn[fn]._keydownEvents.observers.length>0){const yi=sn[fn]._keydownEvents;this._ngZone?this._ngZone.run(()=>yi.next(dn)):yi.next(dn);break}}}add(ut){super.add(ut),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(Wt){return new(Wt||xn)(o.LFG(n.K0),o.LFG(o.R0b,8))};static#t=this.\u0275prov=o.Yz7({token:xn,factory:xn.\u0275fac,providedIn:"root"})}return xn})(),J=(()=>{class xn extends X{constructor(ut,Wt,dn){super(ut),this._platform=Wt,this._ngZone=dn,this._cursorStyleIsSet=!1,this._pointerDownListener=sn=>{this._pointerDownEventTarget=(0,l.sA)(sn)},this._clickListener=sn=>{const fn=(0,l.sA)(sn),yi="click"===sn.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:fn;this._pointerDownEventTarget=null;const nn=this._attachedOverlays.slice();for(let Mi=nn.length-1;Mi>-1;Mi--){const mi=nn[Mi];if(mi._outsidePointerEvents.observers.length<1||!mi.hasAttached())continue;if(mi.overlayElement.contains(fn)||mi.overlayElement.contains(yi))break;const Eo=mi._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Eo.next(sn)):Eo.next(sn)}}}add(ut){if(super.add(ut),!this._isAttached){const Wt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Wt)):this._addEventListeners(Wt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Wt.style.cursor,Wt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ut=this._document.body;ut.removeEventListener("pointerdown",this._pointerDownListener,!0),ut.removeEventListener("click",this._clickListener,!0),ut.removeEventListener("auxclick",this._clickListener,!0),ut.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ut.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(ut){ut.addEventListener("pointerdown",this._pointerDownListener,!0),ut.addEventListener("click",this._clickListener,!0),ut.addEventListener("auxclick",this._clickListener,!0),ut.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(Wt){return new(Wt||xn)(o.LFG(n.K0),o.LFG(l.t4),o.LFG(o.R0b,8))};static#t=this.\u0275prov=o.Yz7({token:xn,factory:xn.\u0275fac,providedIn:"root"})}return xn})(),Q=(()=>{class xn{constructor(ut,Wt){this._platform=Wt,this._document=ut}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ut="cdk-overlay-container";if(this._platform.isBrowser||(0,l.Oy)()){const dn=this._document.querySelectorAll(`.${ut}[platform="server"], .${ut}[platform="test"]`);for(let sn=0;sn<dn.length;sn++)dn[sn].remove()}const Wt=this._document.createElement("div");Wt.classList.add(ut),(0,l.Oy)()?Wt.setAttribute("platform","test"):this._platform.isBrowser||Wt.setAttribute("platform","server"),this._document.body.appendChild(Wt),this._containerElement=Wt}static#e=this.\u0275fac=function(Wt){return new(Wt||xn)(o.LFG(n.K0),o.LFG(l.t4))};static#t=this.\u0275prov=o.Yz7({token:xn,factory:xn.\u0275fac,providedIn:"root"})}return xn})();class re{constructor(mt,ut,Wt,dn,sn,fn,yi,nn,Mi,mi=!1){this._portalOutlet=mt,this._host=ut,this._pane=Wt,this._config=dn,this._ngZone=sn,this._keyboardDispatcher=fn,this._document=yi,this._location=nn,this._outsideClickDispatcher=Mi,this._animationsDisabled=mi,this._backdropElement=null,this._backdropClick=new R.x,this._attachments=new R.x,this._detachments=new R.x,this._locationChanges=x.w0.EMPTY,this._backdropClickHandler=Eo=>this._backdropClick.next(Eo),this._backdropTransitionendHandler=Eo=>{this._disposeBackdrop(Eo.target)},this._keydownEvents=new R.x,this._outsidePointerEvents=new R.x,dn.scrollStrategy&&(this._scrollStrategy=dn.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=dn.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(mt){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const ut=this._portalOutlet.attach(mt);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,d.q)(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),"function"==typeof ut?.onDestroy&&ut.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),ut}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const mt=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),mt}dispose(){const mt=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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?.remove(),this._previousHostParent=this._pane=this._host=null,mt&&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(mt){mt!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=mt,this.hasAttached()&&(mt.attach(this),this.updatePosition()))}updateSize(mt){this._config={...this._config,...mt},this._updateElementSize()}setDirection(mt){this._config={...this._config,direction:mt},this._updateElementDirection()}addPanelClass(mt){this._pane&&this._toggleClasses(this._pane,mt,!0)}removePanelClass(mt){this._pane&&this._toggleClasses(this._pane,mt,!1)}getDirection(){const mt=this._config.direction;return mt?"string"==typeof mt?mt:mt.value:"ltr"}updateScrollStrategy(mt){mt!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=mt,this.hasAttached()&&(mt.attach(this),mt.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const mt=this._pane.style;mt.width=(0,a.HM)(this._config.width),mt.height=(0,a.HM)(this._config.height),mt.minWidth=(0,a.HM)(this._config.minWidth),mt.minHeight=(0,a.HM)(this._config.minHeight),mt.maxWidth=(0,a.HM)(this._config.maxWidth),mt.maxHeight=(0,a.HM)(this._config.maxHeight)}_togglePointerEvents(mt){this._pane.style.pointerEvents=mt?"":"none"}_attachBackdrop(){const mt="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(mt)})}):this._backdropElement.classList.add(mt)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const mt=this._backdropElement;if(mt){if(this._animationsDisabled)return void this._disposeBackdrop(mt);mt.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{mt.addEventListener("transitionend",this._backdropTransitionendHandler)}),mt.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(mt)},500))}}_toggleClasses(mt,ut,Wt){const dn=(0,a.Eq)(ut||[]).filter(sn=>!!sn);dn.length&&(Wt?mt.classList.add(...dn):mt.classList.remove(...dn))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const mt=this._ngZone.onStable.pipe((0,s.R)((0,f.T)(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._host.remove()),mt.unsubscribe())})})}_disposeScrollStrategy(){const mt=this._scrollStrategy;mt&&(mt.disable(),mt.detach&&mt.detach())}_disposeBackdrop(mt){mt&&(mt.removeEventListener("click",this._backdropClickHandler),mt.removeEventListener("transitionend",this._backdropTransitionendHandler),mt.remove(),this._backdropElement===mt&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const de="cdk-overlay-connected-position-bounding-box",te=/([A-Za-z%]+)$/;class j{get positions(){return this._preferredPositions}constructor(mt,ut,Wt,dn,sn){this._viewportRuler=ut,this._document=Wt,this._platform=dn,this._overlayContainer=sn,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 R.x,this._resizeSubscription=x.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(mt)}attach(mt){this._validatePositions(),mt.hostElement.classList.add(de),this._overlayRef=mt,this._boundingBox=mt.hostElement,this._pane=mt.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(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const mt=this._originRect,ut=this._overlayRect,Wt=this._viewportRect,dn=this._containerRect,sn=[];let fn;for(let yi of this._preferredPositions){let nn=this._getOriginPoint(mt,dn,yi),Mi=this._getOverlayPoint(nn,ut,yi),mi=this._getOverlayFit(Mi,ut,Wt,yi);if(mi.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(yi,nn);this._canFitWithFlexibleDimensions(mi,Mi,Wt)?sn.push({position:yi,origin:nn,overlayRect:ut,boundingBoxRect:this._calculateBoundingBoxRect(nn,yi)}):(!fn||fn.overlayFit.visibleArea<mi.visibleArea)&&(fn={overlayFit:mi,overlayPoint:Mi,originPoint:nn,position:yi,overlayRect:ut})}if(sn.length){let yi=null,nn=-1;for(const Mi of sn){const mi=Mi.boundingBoxRect.width*Mi.boundingBoxRect.height*(Mi.position.weight||1);mi>nn&&(nn=mi,yi=Mi)}return this._isPushed=!1,void this._applyPosition(yi.position,yi.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(fn.position,fn.originPoint);this._applyPosition(fn.position,fn.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&H(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(de),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const mt=this._lastPosition;if(mt){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ut=this._getOriginPoint(this._originRect,this._containerRect,mt);this._applyPosition(mt,ut)}else this.apply()}withScrollableContainers(mt){return this._scrollables=mt,this}withPositions(mt){return this._preferredPositions=mt,-1===mt.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(mt){return this._viewportMargin=mt,this}withFlexibleDimensions(mt=!0){return this._hasFlexibleDimensions=mt,this}withGrowAfterOpen(mt=!0){return this._growAfterOpen=mt,this}withPush(mt=!0){return this._canPush=mt,this}withLockedPosition(mt=!0){return this._positionLocked=mt,this}setOrigin(mt){return this._origin=mt,this}withDefaultOffsetX(mt){return this._offsetX=mt,this}withDefaultOffsetY(mt){return this._offsetY=mt,this}withTransformOriginOn(mt){return this._transformOriginSelector=mt,this}_getOriginPoint(mt,ut,Wt){let dn,sn;if("center"==Wt.originX)dn=mt.left+mt.width/2;else{const fn=this._isRtl()?mt.right:mt.left,yi=this._isRtl()?mt.left:mt.right;dn="start"==Wt.originX?fn:yi}return ut.left<0&&(dn-=ut.left),sn="center"==Wt.originY?mt.top+mt.height/2:"top"==Wt.originY?mt.top:mt.bottom,ut.top<0&&(sn-=ut.top),{x:dn,y:sn}}_getOverlayPoint(mt,ut,Wt){let dn,sn;return dn="center"==Wt.overlayX?-ut.width/2:"start"===Wt.overlayX?this._isRtl()?-ut.width:0:this._isRtl()?0:-ut.width,sn="center"==Wt.overlayY?-ut.height/2:"top"==Wt.overlayY?0:-ut.height,{x:mt.x+dn,y:mt.y+sn}}_getOverlayFit(mt,ut,Wt,dn){const sn=q(ut);let{x:fn,y:yi}=mt,nn=this._getOffset(dn,"x"),Mi=this._getOffset(dn,"y");nn&&(fn+=nn),Mi&&(yi+=Mi);let Ko=0-yi,xo=yi+sn.height-Wt.height,Bn=this._subtractOverflows(sn.width,0-fn,fn+sn.width-Wt.width),Xt=this._subtractOverflows(sn.height,Ko,xo),Ji=Bn*Xt;return{visibleArea:Ji,isCompletelyWithinViewport:sn.width*sn.height===Ji,fitsInViewportVertically:Xt===sn.height,fitsInViewportHorizontally:Bn==sn.width}}_canFitWithFlexibleDimensions(mt,ut,Wt){if(this._hasFlexibleDimensions){const dn=Wt.bottom-ut.y,sn=Wt.right-ut.x,fn=z(this._overlayRef.getConfig().minHeight),yi=z(this._overlayRef.getConfig().minWidth);return(mt.fitsInViewportVertically||null!=fn&&fn<=dn)&&(mt.fitsInViewportHorizontally||null!=yi&&yi<=sn)}return!1}_pushOverlayOnScreen(mt,ut,Wt){if(this._previousPushAmount&&this._positionLocked)return{x:mt.x+this._previousPushAmount.x,y:mt.y+this._previousPushAmount.y};const dn=q(ut),sn=this._viewportRect,fn=Math.max(mt.x+dn.width-sn.width,0),yi=Math.max(mt.y+dn.height-sn.height,0),nn=Math.max(sn.top-Wt.top-mt.y,0),Mi=Math.max(sn.left-Wt.left-mt.x,0);let mi=0,Eo=0;return mi=dn.width<=sn.width?Mi||-fn:mt.x<this._viewportMargin?sn.left-Wt.left-mt.x:0,Eo=dn.height<=sn.height?nn||-yi:mt.y<this._viewportMargin?sn.top-Wt.top-mt.y:0,this._previousPushAmount={x:mi,y:Eo},{x:mt.x+mi,y:mt.y+Eo}}_applyPosition(mt,ut){if(this._setTransformOrigin(mt),this._setOverlayElementStyles(ut,mt),this._setBoundingBoxStyles(ut,mt),mt.panelClass&&this._addPanelClasses(mt.panelClass),this._lastPosition=mt,this._positionChanges.observers.length){const Wt=this._getScrollVisibility(),dn=new U(mt,Wt);this._positionChanges.next(dn)}this._isInitialRender=!1}_setTransformOrigin(mt){if(!this._transformOriginSelector)return;const ut=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Wt,dn=mt.overlayY;Wt="center"===mt.overlayX?"center":this._isRtl()?"start"===mt.overlayX?"right":"left":"start"===mt.overlayX?"left":"right";for(let sn=0;sn<ut.length;sn++)ut[sn].style.transformOrigin=`${Wt} ${dn}`}_calculateBoundingBoxRect(mt,ut){const Wt=this._viewportRect,dn=this._isRtl();let sn,fn,yi,mi,Eo,Ko;if("top"===ut.overlayY)fn=mt.y,sn=Wt.height-fn+this._viewportMargin;else if("bottom"===ut.overlayY)yi=Wt.height-mt.y+2*this._viewportMargin,sn=Wt.height-yi+this._viewportMargin;else{const xo=Math.min(Wt.bottom-mt.y+Wt.top,mt.y),Bn=this._lastBoundingBoxSize.height;sn=2*xo,fn=mt.y-xo,sn>Bn&&!this._isInitialRender&&!this._growAfterOpen&&(fn=mt.y-Bn/2)}if("end"===ut.overlayX&&!dn||"start"===ut.overlayX&&dn)Ko=Wt.width-mt.x+this._viewportMargin,mi=mt.x-this._viewportMargin;else if("start"===ut.overlayX&&!dn||"end"===ut.overlayX&&dn)Eo=mt.x,mi=Wt.right-mt.x;else{const xo=Math.min(Wt.right-mt.x+Wt.left,mt.x),Bn=this._lastBoundingBoxSize.width;mi=2*xo,Eo=mt.x-xo,mi>Bn&&!this._isInitialRender&&!this._growAfterOpen&&(Eo=mt.x-Bn/2)}return{top:fn,left:Eo,bottom:yi,right:Ko,width:mi,height:sn}}_setBoundingBoxStyles(mt,ut){const Wt=this._calculateBoundingBoxRect(mt,ut);!this._isInitialRender&&!this._growAfterOpen&&(Wt.height=Math.min(Wt.height,this._lastBoundingBoxSize.height),Wt.width=Math.min(Wt.width,this._lastBoundingBoxSize.width));const dn={};if(this._hasExactPosition())dn.top=dn.left="0",dn.bottom=dn.right=dn.maxHeight=dn.maxWidth="",dn.width=dn.height="100%";else{const sn=this._overlayRef.getConfig().maxHeight,fn=this._overlayRef.getConfig().maxWidth;dn.height=(0,a.HM)(Wt.height),dn.top=(0,a.HM)(Wt.top),dn.bottom=(0,a.HM)(Wt.bottom),dn.width=(0,a.HM)(Wt.width),dn.left=(0,a.HM)(Wt.left),dn.right=(0,a.HM)(Wt.right),dn.alignItems="center"===ut.overlayX?"center":"end"===ut.overlayX?"flex-end":"flex-start",dn.justifyContent="center"===ut.overlayY?"center":"bottom"===ut.overlayY?"flex-end":"flex-start",sn&&(dn.maxHeight=(0,a.HM)(sn)),fn&&(dn.maxWidth=(0,a.HM)(fn))}this._lastBoundingBoxSize=Wt,H(this._boundingBox.style,dn)}_resetBoundingBoxStyles(){H(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){H(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(mt,ut){const Wt={},dn=this._hasExactPosition(),sn=this._hasFlexibleDimensions,fn=this._overlayRef.getConfig();if(dn){const mi=this._viewportRuler.getViewportScrollPosition();H(Wt,this._getExactOverlayY(ut,mt,mi)),H(Wt,this._getExactOverlayX(ut,mt,mi))}else Wt.position="static";let yi="",nn=this._getOffset(ut,"x"),Mi=this._getOffset(ut,"y");nn&&(yi+=`translateX(${nn}px) `),Mi&&(yi+=`translateY(${Mi}px)`),Wt.transform=yi.trim(),fn.maxHeight&&(dn?Wt.maxHeight=(0,a.HM)(fn.maxHeight):sn&&(Wt.maxHeight="")),fn.maxWidth&&(dn?Wt.maxWidth=(0,a.HM)(fn.maxWidth):sn&&(Wt.maxWidth="")),H(this._pane.style,Wt)}_getExactOverlayY(mt,ut,Wt){let dn={top:"",bottom:""},sn=this._getOverlayPoint(ut,this._overlayRect,mt);return this._isPushed&&(sn=this._pushOverlayOnScreen(sn,this._overlayRect,Wt)),"bottom"===mt.overlayY?dn.bottom=this._document.documentElement.clientHeight-(sn.y+this._overlayRect.height)+"px":dn.top=(0,a.HM)(sn.y),dn}_getExactOverlayX(mt,ut,Wt){let fn,dn={left:"",right:""},sn=this._getOverlayPoint(ut,this._overlayRect,mt);return this._isPushed&&(sn=this._pushOverlayOnScreen(sn,this._overlayRect,Wt)),fn=this._isRtl()?"end"===mt.overlayX?"left":"right":"end"===mt.overlayX?"right":"left","right"===fn?dn.right=this._document.documentElement.clientWidth-(sn.x+this._overlayRect.width)+"px":dn.left=(0,a.HM)(sn.x),dn}_getScrollVisibility(){const mt=this._getOriginRect(),ut=this._pane.getBoundingClientRect(),Wt=this._scrollables.map(dn=>dn.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:I(mt,Wt),isOriginOutsideView:b(mt,Wt),isOverlayClipped:I(ut,Wt),isOverlayOutsideView:b(ut,Wt)}}_subtractOverflows(mt,...ut){return ut.reduce((Wt,dn)=>Wt-Math.max(dn,0),mt)}_getNarrowedViewportRect(){const mt=this._document.documentElement.clientWidth,ut=this._document.documentElement.clientHeight,Wt=this._viewportRuler.getViewportScrollPosition();return{top:Wt.top+this._viewportMargin,left:Wt.left+this._viewportMargin,right:Wt.left+mt-this._viewportMargin,bottom:Wt.top+ut-this._viewportMargin,width:mt-2*this._viewportMargin,height:ut-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(mt,ut){return"x"===ut?null==mt.offsetX?this._offsetX:mt.offsetX:null==mt.offsetY?this._offsetY:mt.offsetY}_validatePositions(){}_addPanelClasses(mt){this._pane&&(0,a.Eq)(mt).forEach(ut=>{""!==ut&&-1===this._appliedPanelClasses.indexOf(ut)&&(this._appliedPanelClasses.push(ut),this._pane.classList.add(ut))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(mt=>{this._pane.classList.remove(mt)}),this._appliedPanelClasses=[])}_getOriginRect(){const mt=this._origin;if(mt instanceof o.SBq)return mt.nativeElement.getBoundingClientRect();if(mt instanceof Element)return mt.getBoundingClientRect();const ut=mt.width||0,Wt=mt.height||0;return{top:mt.y,bottom:mt.y+Wt,left:mt.x,right:mt.x+ut,height:Wt,width:ut}}}function H(xn,mt){for(let ut in mt)mt.hasOwnProperty(ut)&&(xn[ut]=mt[ut]);return xn}function z(xn){if("number"!=typeof xn&&null!=xn){const[mt,ut]=xn.split(te);return ut&&"px"!==ut?null:parseFloat(mt)}return xn||null}function q(xn){return{top:Math.floor(xn.top),right:Math.floor(xn.right),bottom:Math.floor(xn.bottom),left:Math.floor(xn.left),width:Math.floor(xn.width),height:Math.floor(xn.height)}}const _e="cdk-global-overlay-wrapper";class ge{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(mt){const ut=mt.getConfig();this._overlayRef=mt,this._width&&!ut.width&&mt.updateSize({width:this._width}),this._height&&!ut.height&&mt.updateSize({height:this._height}),mt.hostElement.classList.add(_e),this._isDisposed=!1}top(mt=""){return this._bottomOffset="",this._topOffset=mt,this._alignItems="flex-start",this}left(mt=""){return this._xOffset=mt,this._xPosition="left",this}bottom(mt=""){return this._topOffset="",this._bottomOffset=mt,this._alignItems="flex-end",this}right(mt=""){return this._xOffset=mt,this._xPosition="right",this}start(mt=""){return this._xOffset=mt,this._xPosition="start",this}end(mt=""){return this._xOffset=mt,this._xPosition="end",this}width(mt=""){return this._overlayRef?this._overlayRef.updateSize({width:mt}):this._width=mt,this}height(mt=""){return this._overlayRef?this._overlayRef.updateSize({height:mt}):this._height=mt,this}centerHorizontally(mt=""){return this.left(mt),this._xPosition="center",this}centerVertically(mt=""){return this.top(mt),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const mt=this._overlayRef.overlayElement.style,ut=this._overlayRef.hostElement.style,Wt=this._overlayRef.getConfig(),{width:dn,height:sn,maxWidth:fn,maxHeight:yi}=Wt,nn=!("100%"!==dn&&"100vw"!==dn||fn&&"100%"!==fn&&"100vw"!==fn),Mi=!("100%"!==sn&&"100vh"!==sn||yi&&"100%"!==yi&&"100vh"!==yi),mi=this._xPosition,Eo=this._xOffset,Ko="rtl"===this._overlayRef.getConfig().direction;let xo="",Bn="",Xt="";nn?Xt="flex-start":"center"===mi?(Xt="center",Ko?Bn=Eo:xo=Eo):Ko?"left"===mi||"end"===mi?(Xt="flex-end",xo=Eo):("right"===mi||"start"===mi)&&(Xt="flex-start",Bn=Eo):"left"===mi||"start"===mi?(Xt="flex-start",xo=Eo):("right"===mi||"end"===mi)&&(Xt="flex-end",Bn=Eo),mt.position=this._cssPosition,mt.marginLeft=nn?"0":xo,mt.marginTop=Mi?"0":this._topOffset,mt.marginBottom=this._bottomOffset,mt.marginRight=nn?"0":Bn,ut.justifyContent=Xt,ut.alignItems=Mi?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const mt=this._overlayRef.overlayElement.style,ut=this._overlayRef.hostElement,Wt=ut.style;ut.classList.remove(_e),Wt.justifyContent=Wt.alignItems=mt.marginTop=mt.marginBottom=mt.marginLeft=mt.marginRight=mt.position="",this._overlayRef=null,this._isDisposed=!0}}let Ce=(()=>{class xn{constructor(ut,Wt,dn,sn){this._viewportRuler=ut,this._document=Wt,this._platform=dn,this._overlayContainer=sn}global(){return new ge}flexibleConnectedTo(ut){return new j(ut,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(Wt){return new(Wt||xn)(o.LFG(e.rL),o.LFG(n.K0),o.LFG(l.t4),o.LFG(Q))};static#t=this.\u0275prov=o.Yz7({token:xn,factory:xn.\u0275fac,providedIn:"root"})}return xn})(),Te=0,De=(()=>{class xn{constructor(ut,Wt,dn,sn,fn,yi,nn,Mi,mi,Eo,Ko,xo){this.scrollStrategies=ut,this._overlayContainer=Wt,this._componentFactoryResolver=dn,this._positionBuilder=sn,this._keyboardDispatcher=fn,this._injector=yi,this._ngZone=nn,this._document=Mi,this._directionality=mi,this._location=Eo,this._outsideClickDispatcher=Ko,this._animationsModuleType=xo}create(ut){const Wt=this._createHostElement(),dn=this._createPaneElement(Wt),sn=this._createPortalOutlet(dn),fn=new F(ut);return fn.direction=fn.direction||this._directionality.value,new re(sn,Wt,dn,fn,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(ut){const Wt=this._document.createElement("div");return Wt.id="cdk-overlay-"+Te++,Wt.classList.add("cdk-overlay-pane"),ut.appendChild(Wt),Wt}_createHostElement(){const ut=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ut),ut}_createPortalOutlet(ut){return this._appRef||(this._appRef=this._injector.get(o.z2F)),new C.u0(ut,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(Wt){return new(Wt||xn)(o.LFG(D),o.LFG(Q),o.LFG(o._Vd),o.LFG(Ce),o.LFG(me),o.LFG(o.zs3),o.LFG(o.R0b),o.LFG(n.K0),o.LFG(_.Is),o.LFG(n.Ye),o.LFG(J),o.LFG(o.QbO,8))};static#t=this.\u0275prov=o.Yz7({token:xn,factory:xn.\u0275fac,providedIn:"root"})}return xn})();const fe=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],xe=new o.OlP("cdk-connected-overlay-scroll-strategy");let Oe=(()=>{class xn{constructor(ut){this.elementRef=ut}static#e=this.\u0275fac=function(Wt){return new(Wt||xn)(o.Y36(o.SBq))};static#t=this.\u0275dir=o.lG2({type:xn,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return xn})(),Le=(()=>{class xn{get offsetX(){return this._offsetX}set offsetX(ut){this._offsetX=ut,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(ut){this._offsetY=ut,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ut){this._hasBackdrop=(0,a.Ig)(ut)}get lockPosition(){return this._lockPosition}set lockPosition(ut){this._lockPosition=(0,a.Ig)(ut)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(ut){this._flexibleDimensions=(0,a.Ig)(ut)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(ut){this._growAfterOpen=(0,a.Ig)(ut)}get push(){return this._push}set push(ut){this._push=(0,a.Ig)(ut)}constructor(ut,Wt,dn,sn,fn){this._overlay=ut,this._dir=fn,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=x.w0.EMPTY,this._attachSubscription=x.w0.EMPTY,this._detachSubscription=x.w0.EMPTY,this._positionSubscription=x.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new o.vpe,this.positionChange=new o.vpe,this.attach=new o.vpe,this.detach=new o.vpe,this.overlayKeydown=new o.vpe,this.overlayOutsideClick=new o.vpe,this._templatePortal=new C.UE(Wt,dn),this._scrollStrategyFactory=sn,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(ut){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ut.origin&&this.open&&this._position.apply()),ut.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=fe);const ut=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ut.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=ut.detachments().subscribe(()=>this.detach.emit()),ut.keydownEvents().subscribe(Wt=>{this.overlayKeydown.next(Wt),Wt.keyCode===k.hY&&!this.disableClose&&!(0,k.Vb)(Wt)&&(Wt.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Wt=>{this.overlayOutsideClick.next(Wt)})}_buildConfig(){const ut=this._position=this.positionStrategy||this._createPositionStrategy(),Wt=new F({direction:this._dir,positionStrategy:ut,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Wt.width=this.width),(this.height||0===this.height)&&(Wt.height=this.height),(this.minWidth||0===this.minWidth)&&(Wt.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Wt.minHeight=this.minHeight),this.backdropClass&&(Wt.backdropClass=this.backdropClass),this.panelClass&&(Wt.panelClass=this.panelClass),Wt}_updatePositionStrategy(ut){const Wt=this.positions.map(dn=>({originX:dn.originX,originY:dn.originY,overlayX:dn.overlayX,overlayY:dn.overlayY,offsetX:dn.offsetX||this.offsetX,offsetY:dn.offsetY||this.offsetY,panelClass:dn.panelClass||void 0}));return ut.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(Wt).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const ut=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(ut),ut}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Oe?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(ut=>{this.backdropClick.emit(ut)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,A.o)(()=>this.positionChange.observers.length>0)).subscribe(ut=>{this.positionChange.emit(ut),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#e=this.\u0275fac=function(Wt){return new(Wt||xn)(o.Y36(De),o.Y36(o.Rgc),o.Y36(o.s_b),o.Y36(xe),o.Y36(_.Is,8))};static#t=this.\u0275dir=o.lG2({type:xn,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[o.TTD]})}return xn})();const Ut={provide:xe,deps:[De],useFactory:function Gt(xn){return()=>xn.scrollStrategies.reposition()}};let An=(()=>{class xn{static#e=this.\u0275fac=function(Wt){return new(Wt||xn)};static#t=this.\u0275mod=o.oAB({type:xn});static#n=this.\u0275inj=o.cJS({providers:[De,Ut],imports:[_.vT,C.eL,e.Cl,e.Cl]})}return xn})()},62831:(he,y,i)=>{"use strict";i.d(y,{Mq:()=>f,Oy:()=>b,_i:()=>k,ht:()=>p,i$:()=>C,kV:()=>M,qK:()=>s,sA:()=>E,t4:()=>a,ud:()=>l});var e=i(65879),n=i(96814);let o;try{o=typeof Intl<"u"&&Intl.v8BreakIterator}catch{o=!1}let u,a=(()=>{class I{constructor(D){this._platformId=D,this.isBrowser=this._platformId?(0,n.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!o)&&typeof CSS<"u"&&!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}static#e=this.\u0275fac=function(F){return new(F||I)(e.LFG(e.Lbi))};static#t=this.\u0275prov=e.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})(),l=(()=>{class I{static#e=this.\u0275fac=function(F){return new(F||I)};static#t=this.\u0275mod=e.oAB({type:I});static#n=this.\u0275inj=e.cJS({})}return I})();const d=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function s(){if(u)return u;if("object"!=typeof document||!document)return u=new Set(d),u;let I=document.createElement("input");return u=new Set(d.filter(L=>(I.setAttribute("type",L),I.type===L))),u}let A,R,x,w;function C(I){return function _(){if(null==A&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>A=!0}))}finally{A=A||!1}return A}()?I:!!I.capture}function f(){if(null==x){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return x=!1,x;if("scrollBehavior"in document.documentElement.style)x=!0;else{const I=Element.prototype.scrollTo;x=!!I&&!/\{\s*\[native code\]\s*\}/.test(I.toString())}}return x}function k(){if("object"!=typeof document||!document)return 0;if(null==R){const I=document.createElement("div"),L=I.style;I.dir="rtl",L.width="1px",L.overflow="auto",L.visibility="hidden",L.pointerEvents="none",L.position="absolute";const D=document.createElement("div"),F=D.style;F.width="2px",F.height="1px",I.appendChild(D),document.body.appendChild(I),R=0,0===I.scrollLeft&&(I.scrollLeft=1,R=0===I.scrollLeft?1:2),I.remove()}return R}function M(I){if(function g(){if(null==w){const I=typeof document<"u"?document.head:null;w=!(!I||!I.createShadowRoot&&!I.attachShadow)}return w}()){const L=I.getRootNode?I.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&L instanceof ShadowRoot)return L}return null}function p(){let I=typeof document<"u"&&document?document.activeElement:null;for(;I&&I.shadowRoot;){const L=I.shadowRoot.activeElement;if(L===I)break;I=L}return I}function E(I){return I.composedPath?I.composedPath()[0]:I.target}function b(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},68484:(he,y,i)=>{"use strict";i.d(y,{C5:()=>_,Pl:()=>p,UE:()=>C,eL:()=>b,en:()=>x,ig:()=>g,u0:()=>k});var e=i(65879),n=i(96814);class A{attach(D){return this._attachedHost=D,D.attach(this)}detach(){let D=this._attachedHost;null!=D&&(this._attachedHost=null,D.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(D){this._attachedHost=D}}class _ extends A{constructor(D,F,P,O,U){super(),this.component=D,this.viewContainerRef=F,this.injector=P,this.componentFactoryResolver=O,this.projectableNodes=U}}class C extends A{constructor(D,F,P,O){super(),this.templateRef=D,this.viewContainerRef=F,this.context=P,this.injector=O}get origin(){return this.templateRef.elementRef}attach(D,F=this.context){return this.context=F,super.attach(D)}detach(){return this.context=void 0,super.detach()}}class R extends A{constructor(D){super(),this.element=D instanceof e.SBq?D.nativeElement:D}}class x{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(D){return D instanceof _?(this._attachedPortal=D,this.attachComponentPortal(D)):D instanceof C?(this._attachedPortal=D,this.attachTemplatePortal(D)):this.attachDomPortal&&D instanceof R?(this._attachedPortal=D,this.attachDomPortal(D)):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(D){this._disposeFn=D}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class k extends x{constructor(D,F,P,O,U){super(),this.outletElement=D,this._componentFactoryResolver=F,this._appRef=P,this._defaultInjector=O,this.attachDomPortal=V=>{const K=V.element,X=this._document.createComment("dom-portal");K.parentNode.insertBefore(X,K),this.outletElement.appendChild(K),this._attachedPortal=V,super.setDisposeFn(()=>{X.parentNode&&X.parentNode.replaceChild(K,X)})},this._document=U}attachComponentPortal(D){const P=(D.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(D.component);let O;return D.viewContainerRef?(O=D.viewContainerRef.createComponent(P,D.viewContainerRef.length,D.injector||D.viewContainerRef.injector,D.projectableNodes||void 0),this.setDisposeFn(()=>O.destroy())):(O=P.create(D.injector||this._defaultInjector||e.zs3.NULL),this._appRef.attachView(O.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(O.hostView),O.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(O)),this._attachedPortal=D,O}attachTemplatePortal(D){let F=D.viewContainerRef,P=F.createEmbeddedView(D.templateRef,D.context,{injector:D.injector});return P.rootNodes.forEach(O=>this.outletElement.appendChild(O)),P.detectChanges(),this.setDisposeFn(()=>{let O=F.indexOf(P);-1!==O&&F.remove(O)}),this._attachedPortal=D,P}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(D){return D.hostView.rootNodes[0]}}let g=(()=>{class L extends C{constructor(F,P){super(F,P)}static#e=this.\u0275fac=function(P){return new(P||L)(e.Y36(e.Rgc),e.Y36(e.s_b))};static#t=this.\u0275dir=e.lG2({type:L,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]})}return L})(),p=(()=>{class L extends x{constructor(F,P,O){super(),this._componentFactoryResolver=F,this._viewContainerRef=P,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=U=>{const V=U.element,K=this._document.createComment("dom-portal");U.setAttachedHost(this),V.parentNode.insertBefore(K,V),this._getRootNode().appendChild(V),this._attachedPortal=U,super.setDisposeFn(()=>{K.parentNode&&K.parentNode.replaceChild(V,K)})},this._document=O}get portal(){return this._attachedPortal}set portal(F){this.hasAttached()&&!F&&!this._isInitialized||(this.hasAttached()&&super.detach(),F&&super.attach(F),this._attachedPortal=F||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(F){F.setAttachedHost(this);const P=null!=F.viewContainerRef?F.viewContainerRef:this._viewContainerRef,U=(F.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(F.component),V=P.createComponent(U,P.length,F.injector||P.injector,F.projectableNodes||void 0);return P!==this._viewContainerRef&&this._getRootNode().appendChild(V.hostView.rootNodes[0]),super.setDisposeFn(()=>V.destroy()),this._attachedPortal=F,this._attachedRef=V,this.attached.emit(V),V}attachTemplatePortal(F){F.setAttachedHost(this);const P=this._viewContainerRef.createEmbeddedView(F.templateRef,F.context,{injector:F.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=F,this._attachedRef=P,this.attached.emit(P),P}_getRootNode(){const F=this._viewContainerRef.element.nativeElement;return F.nodeType===F.ELEMENT_NODE?F:F.parentNode}static#e=this.\u0275fac=function(P){return new(P||L)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(n.K0))};static#t=this.\u0275dir=e.lG2({type:L,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]})}return L})(),b=(()=>{class L{static#e=this.\u0275fac=function(P){return new(P||L)};static#t=this.\u0275mod=e.oAB({type:L});static#n=this.\u0275inj=e.cJS({})}return L})()},16672:(he,y,i)=>{"use strict";i.d(y,{Cl:()=>H,Ee:()=>b,LO:()=>te,N7:()=>J,PQ:()=>P,ZD:()=>j,mF:()=>F,rL:()=>U,xd:()=>L,yU:()=>E});var e=i(42495),n=i(65879),o=i(78645),a=i(22096),l=i(65592),u=i(92438),d=i(80927),s=i(76410),A=i(47394),_=i(93997),C=i(29028),R=i(32181),x=i(59773),f=i(27921),k=i(62831),w=i(96814),g=i(49388);const M=["contentWrapper"],p=["*"],E=new n.OlP("VIRTUAL_SCROLL_STRATEGY");class b{constructor(q,se,ne){this._scrolledIndexChange=new o.x,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,_.x)()),this._viewport=null,this._itemSize=q,this._minBufferPx=se,this._maxBufferPx=ne}attach(q){this._viewport=q,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(q,se,ne){this._itemSize=q,this._minBufferPx=se,this._maxBufferPx=ne,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(q,se){this._viewport&&this._viewport.scrollToOffset(q*this._itemSize,se)}_updateTotalContentSize(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const q=this._viewport.getRenderedRange(),se={start:q.start,end:q.end},ne=this._viewport.getViewportSize(),_e=this._viewport.getDataLength();let ge=this._viewport.measureScrollOffset(),Ce=this._itemSize>0?ge/this._itemSize:0;if(se.end>_e){const De=Math.ceil(ne/this._itemSize),fe=Math.max(0,Math.min(Ce,_e-De));Ce!=fe&&(Ce=fe,ge=fe*this._itemSize,se.start=Math.floor(Ce)),se.end=Math.max(0,Math.min(_e,se.start+De))}const Te=ge-se.start*this._itemSize;if(Te<this._minBufferPx&&0!=se.start){const De=Math.ceil((this._maxBufferPx-Te)/this._itemSize);se.start=Math.max(0,se.start-De),se.end=Math.min(_e,Math.ceil(Ce+(ne+this._minBufferPx)/this._itemSize))}else{const De=se.end*this._itemSize-(ge+ne);if(De<this._minBufferPx&&se.end!=_e){const fe=Math.ceil((this._maxBufferPx-De)/this._itemSize);fe>0&&(se.end=Math.min(_e,se.end+fe),se.start=Math.max(0,Math.floor(Ce-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(se),this._viewport.setRenderedContentOffset(this._itemSize*se.start),this._scrolledIndexChange.next(Math.floor(Ce))}}function I(z){return z._scrollStrategy}let L=(()=>{class z{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new b(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(se){this._itemSize=(0,e.su)(se)}get minBufferPx(){return this._minBufferPx}set minBufferPx(se){this._minBufferPx=(0,e.su)(se)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(se){this._maxBufferPx=(0,e.su)(se)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}static#e=this.\u0275fac=function(ne){return new(ne||z)};static#t=this.\u0275dir=n.lG2({type:z,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},standalone:!0,features:[n._Bn([{provide:E,useFactory:I,deps:[(0,n.Gpc)(()=>z)]}]),n.TTD]})}return z})(),F=(()=>{class z{constructor(se,ne,_e){this._ngZone=se,this._platform=ne,this._scrolled=new o.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=_e}register(se){this.scrollContainers.has(se)||this.scrollContainers.set(se,se.elementScrolled().subscribe(()=>this._scrolled.next(se)))}deregister(se){const ne=this.scrollContainers.get(se);ne&&(ne.unsubscribe(),this.scrollContainers.delete(se))}scrolled(se=20){return this._platform.isBrowser?new l.y(ne=>{this._globalSubscription||this._addGlobalListener();const _e=se>0?this._scrolled.pipe((0,C.e)(se)).subscribe(ne):this._scrolled.subscribe(ne);return this._scrolledCount++,()=>{_e.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,a.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((se,ne)=>this.deregister(ne)),this._scrolled.complete()}ancestorScrolled(se,ne){const _e=this.getAncestorScrollContainers(se);return this.scrolled(ne).pipe((0,R.h)(ge=>!ge||_e.indexOf(ge)>-1))}getAncestorScrollContainers(se){const ne=[];return this.scrollContainers.forEach((_e,ge)=>{this._scrollableContainsElement(ge,se)&&ne.push(ge)}),ne}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(se,ne){let _e=(0,e.fI)(ne),ge=se.getElementRef().nativeElement;do{if(_e==ge)return!0}while(_e=_e.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const se=this._getWindow();return(0,u.R)(se.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(ne){return new(ne||z)(n.LFG(n.R0b),n.LFG(k.t4),n.LFG(w.K0,8))};static#t=this.\u0275prov=n.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})(),P=(()=>{class z{constructor(se,ne,_e,ge){this.elementRef=se,this.scrollDispatcher=ne,this.ngZone=_e,this.dir=ge,this._destroyed=new o.x,this._elementScrolled=new l.y(Ce=>this.ngZone.runOutsideAngular(()=>(0,u.R)(this.elementRef.nativeElement,"scroll").pipe((0,x.R)(this._destroyed)).subscribe(Ce)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(se){const ne=this.elementRef.nativeElement,_e=this.dir&&"rtl"==this.dir.value;null==se.left&&(se.left=_e?se.end:se.start),null==se.right&&(se.right=_e?se.start:se.end),null!=se.bottom&&(se.top=ne.scrollHeight-ne.clientHeight-se.bottom),_e&&0!=(0,k._i)()?(null!=se.left&&(se.right=ne.scrollWidth-ne.clientWidth-se.left),2==(0,k._i)()?se.left=se.right:1==(0,k._i)()&&(se.left=se.right?-se.right:se.right)):null!=se.right&&(se.left=ne.scrollWidth-ne.clientWidth-se.right),this._applyScrollToOptions(se)}_applyScrollToOptions(se){const ne=this.elementRef.nativeElement;(0,k.Mq)()?ne.scrollTo(se):(null!=se.top&&(ne.scrollTop=se.top),null!=se.left&&(ne.scrollLeft=se.left))}measureScrollOffset(se){const ne="left",ge=this.elementRef.nativeElement;if("top"==se)return ge.scrollTop;if("bottom"==se)return ge.scrollHeight-ge.clientHeight-ge.scrollTop;const Ce=this.dir&&"rtl"==this.dir.value;return"start"==se?se=Ce?"right":ne:"end"==se&&(se=Ce?ne:"right"),Ce&&2==(0,k._i)()?se==ne?ge.scrollWidth-ge.clientWidth-ge.scrollLeft:ge.scrollLeft:Ce&&1==(0,k._i)()?se==ne?ge.scrollLeft+ge.scrollWidth-ge.clientWidth:-ge.scrollLeft:se==ne?ge.scrollLeft:ge.scrollWidth-ge.clientWidth-ge.scrollLeft}static#e=this.\u0275fac=function(ne){return new(ne||z)(n.Y36(n.SBq),n.Y36(F),n.Y36(n.R0b),n.Y36(g.Is,8))};static#t=this.\u0275dir=n.lG2({type:z,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return z})(),U=(()=>{class z{constructor(se,ne,_e){this._platform=se,this._change=new o.x,this._changeListener=ge=>{this._change.next(ge)},this._document=_e,ne.runOutsideAngular(()=>{if(se.isBrowser){const ge=this._getWindow();ge.addEventListener("resize",this._changeListener),ge.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const se=this._getWindow();se.removeEventListener("resize",this._changeListener),se.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const se={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),se}getViewportRect(){const se=this.getViewportScrollPosition(),{width:ne,height:_e}=this.getViewportSize();return{top:se.top,left:se.left,bottom:se.top+_e,right:se.left+ne,height:_e,width:ne}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const se=this._document,ne=this._getWindow(),_e=se.documentElement,ge=_e.getBoundingClientRect();return{top:-ge.top||se.body.scrollTop||ne.scrollY||_e.scrollTop||0,left:-ge.left||se.body.scrollLeft||ne.scrollX||_e.scrollLeft||0}}change(se=20){return se>0?this._change.pipe((0,C.e)(se)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const se=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:se.innerWidth,height:se.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(ne){return new(ne||z)(n.LFG(k.t4),n.LFG(n.R0b),n.LFG(w.K0,8))};static#t=this.\u0275prov=n.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})();const V=new n.OlP("VIRTUAL_SCROLLABLE");let K=(()=>{class z extends P{constructor(se,ne,_e,ge){super(se,ne,_e,ge)}measureViewportSize(se){const ne=this.elementRef.nativeElement;return"horizontal"===se?ne.clientWidth:ne.clientHeight}static#e=this.\u0275fac=function(ne){return new(ne||z)(n.Y36(n.SBq),n.Y36(F),n.Y36(n.R0b),n.Y36(g.Is,8))};static#t=this.\u0275dir=n.lG2({type:z,features:[n.qOj]})}return z})();const me=typeof requestAnimationFrame<"u"?d.Z:s.E;let J=(()=>{class z extends K{get orientation(){return this._orientation}set orientation(se){this._orientation!==se&&(this._orientation=se,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(se){this._appendOnly=(0,e.Ig)(se)}constructor(se,ne,_e,ge,Ce,Te,De,fe){super(se,Te,_e,Ce),this.elementRef=se,this._changeDetectorRef=ne,this._scrollStrategy=ge,this.scrollable=fe,this._platform=(0,n.f3M)(k.t4),this._detachedSubject=new o.x,this._renderedRangeSubject=new o.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new l.y(xe=>this._scrollStrategy.scrolledIndexChange.subscribe(Oe=>Promise.resolve().then(()=>this.ngZone.run(()=>xe.next(Oe))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=A.w0.EMPTY,this._viewportChanges=De.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,f.O)(null),(0,C.e)(0,me)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(se){this.ngZone.runOutsideAngular(()=>{this._forOf=se,this._forOf.dataStream.pipe((0,x.R)(this._detachedSubject)).subscribe(ne=>{const _e=ne.length;_e!==this._dataLength&&(this._dataLength=_e,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(se){return this.getElementRef().nativeElement.getBoundingClientRect()[se]}setTotalContentSize(se){this._totalContentSize!==se&&(this._totalContentSize=se,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(se){(function X(z,q){return z.start==q.start&&z.end==q.end})(this._renderedRange,se)||(this.appendOnly&&(se={start:0,end:Math.max(this._renderedRange.end,se.end)}),this._renderedRangeSubject.next(this._renderedRange=se),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(se,ne="to-start"){se=this.appendOnly&&"to-start"===ne?0:se;const ge="horizontal"==this.orientation,Ce=ge?"X":"Y";let De=`translate${Ce}(${Number((ge&&this.dir&&"rtl"==this.dir.value?-1:1)*se)}px)`;this._renderedContentOffset=se,"to-end"===ne&&(De+=` translate${Ce}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=De&&(this._renderedContentTransform=De,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(se,ne="auto"){const _e={behavior:ne};"horizontal"===this.orientation?_e.start=se:_e.top=se,this.scrollable.scrollTo(_e)}scrollToIndex(se,ne="auto"){this._scrollStrategy.scrollToIndex(se,ne)}measureScrollOffset(se){let ne;return ne=this.scrollable==this?_e=>super.measureScrollOffset(_e):_e=>this.scrollable.measureScrollOffset(_e),Math.max(0,ne(se??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(se){let ne;const Ce="rtl"==this.dir?.value;ne="start"==se?Ce?"right":"left":"end"==se?Ce?"left":"right":se||("horizontal"===this.orientation?"left":"top");const Te=this.scrollable.measureBoundingClientRectWithScrollOffset(ne);return this.elementRef.nativeElement.getBoundingClientRect()[ne]-Te}measureRenderedContentSize(){const se=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?se.offsetWidth:se.offsetHeight}measureRangeSize(se){return this._forOf?this._forOf.measureRangeSize(se,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(se){se&&this._runAfterChangeDetection.push(se),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const se=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const ne of se)ne()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}static#e=this.\u0275fac=function(ne){return new(ne||z)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(E,8),n.Y36(g.Is,8),n.Y36(F),n.Y36(U),n.Y36(V,8))};static#t=this.\u0275cmp=n.Xpm({type:z,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(ne,_e){if(1&ne&&n.Gf(M,7),2&ne){let ge;n.iGM(ge=n.CRH())&&(_e._contentWrapper=ge.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(ne,_e){2&ne&&n.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===_e.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==_e.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[n._Bn([{provide:P,useFactory:(se,ne)=>se||ne,deps:[[new n.FiY,new n.tBr(V)],z]}]),n.qOj,n.jDz],ngContentSelectors:p,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(ne,_e){1&ne&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA(),n._UZ(3,"div",2)),2&ne&&(n.xp6(3),n.Udp("width",_e._totalContentWidth)("height",_e._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0})}return z})(),te=(()=>{class z extends K{constructor(se,ne,_e){super(new n.SBq(document.documentElement),se,ne,_e),this._elementScrolled=new l.y(ge=>this.ngZone.runOutsideAngular(()=>(0,u.R)(document,"scroll").pipe((0,x.R)(this._destroyed)).subscribe(ge)))}measureBoundingClientRectWithScrollOffset(se){return this.getElementRef().nativeElement.getBoundingClientRect()[se]}static#e=this.\u0275fac=function(ne){return new(ne||z)(n.Y36(F),n.Y36(n.R0b),n.Y36(g.Is,8))};static#t=this.\u0275dir=n.lG2({type:z,selectors:[["cdk-virtual-scroll-viewport","scrollWindow",""]],standalone:!0,features:[n._Bn([{provide:V,useExisting:z}]),n.qOj]})}return z})(),j=(()=>{class z{static#e=this.\u0275fac=function(ne){return new(ne||z)};static#t=this.\u0275mod=n.oAB({type:z});static#n=this.\u0275inj=n.cJS({})}return z})(),H=(()=>{class z{static#e=this.\u0275fac=function(ne){return new(ne||z)};static#t=this.\u0275mod=n.oAB({type:z});static#n=this.\u0275inj=n.cJS({imports:[g.vT,j,g.vT,j]})}return z})()},14643:(he,y,i)=>{"use strict";i.d(y,{$E:()=>fn,Af:()=>V,D5:()=>L,FT:()=>sn,HT:()=>Bn,Hx:()=>Ko,Kb:()=>_e,O_:()=>I,QJ:()=>K,Sq:()=>ne,T$:()=>dn,Z4:()=>D,_J:()=>Te,bH:()=>yi,fe:()=>se,fo:()=>O,hD:()=>X,nl:()=>J,oF:()=>Q,pF:()=>ut,pN:()=>E,qM:()=>Ce,r2:()=>De,s$:()=>H,xN:()=>ge,zC:()=>mi});var e=i(49388),n=i(42495),o=i(78337),a=i(62831),l=i(16672),u=i(96814),d=i(65879),s=i(78645),A=i(72664),_=i(65619),C=i(2664),R=i(22096),x=i(59773),f=i(48180);const k=[[["caption"]],[["colgroup"],["col"]]],w=["caption","colgroup, col"];function g(Xt,Ji){if(1&Xt&&(d.TgZ(0,"th",3),d._uU(1),d.qZA()),2&Xt){const En=d.oxw();d.Udp("text-align",En.justify),d.xp6(1),d.hij(" ",En.headerText," ")}}function M(Xt,Ji){if(1&Xt&&(d.TgZ(0,"td",4),d._uU(1),d.qZA()),2&Xt){const En=Ji.$implicit,un=d.oxw();d.Udp("text-align",un.justify),d.xp6(1),d.hij(" ",un.dataAccessor(En,un.name)," ")}}function p(Xt){return class extends Xt{get sticky(){return this._sticky}set sticky(Ji){const En=this._sticky;this._sticky=(0,n.Ig)(Ji),this._hasStickyChanged=En!==this._sticky}hasStickyChanged(){const Ji=this._hasStickyChanged;return this._hasStickyChanged=!1,Ji}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...Ji){super(...Ji),this._sticky=!1,this._hasStickyChanged=!1}}}const E=new d.OlP("CDK_TABLE"),b=new d.OlP("text-column-options");let I=(()=>{class Xt{constructor(En){this.template=En}static#e=this.\u0275fac=function(un){return new(un||Xt)(d.Y36(d.Rgc))};static#t=this.\u0275dir=d.lG2({type:Xt,selectors:[["","cdkCellDef",""]]})}return Xt})(),L=(()=>{class Xt{constructor(En){this.template=En}static#e=this.\u0275fac=function(un){return new(un||Xt)(d.Y36(d.Rgc))};static#t=this.\u0275dir=d.lG2({type:Xt,selectors:[["","cdkHeaderCellDef",""]]})}return Xt})(),D=(()=>{class Xt{constructor(En){this.template=En}static#e=this.\u0275fac=function(un){return new(un||Xt)(d.Y36(d.Rgc))};static#t=this.\u0275dir=d.lG2({type:Xt,selectors:[["","cdkFooterCellDef",""]]})}return Xt})();class F{}const P=p(F);let O=(()=>{class Xt extends P{get name(){return this._name}set name(En){this._setNameInput(En)}get stickyEnd(){return this._stickyEnd}set stickyEnd(En){const un=this._stickyEnd;this._stickyEnd=(0,n.Ig)(En),this._hasStickyChanged=un!==this._stickyEnd}constructor(En){super(),this._table=En,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(En){En&&(this._name=En,this.cssClassFriendlyName=En.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static#e=this.\u0275fac=function(un){return new(un||Xt)(d.Y36(E,8))};static#t=this.\u0275dir=d.lG2({type:Xt,selectors:[["","cdkColumnDef",""]],contentQueries:function(un,Ki,Fn){if(1&un&&(d.Suo(Fn,I,5),d.Suo(Fn,L,5),d.Suo(Fn,D,5)),2&un){let oi;d.iGM(oi=d.CRH())&&(Ki.cell=oi.first),d.iGM(oi=d.CRH())&&(Ki.headerCell=oi.first),d.iGM(oi=d.CRH())&&(Ki.footerCell=oi.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[d._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Xt}]),d.qOj]})}return Xt})();class U{constructor(Ji,En){En.nativeElement.classList.add(...Ji._columnCssClassName)}}let V=(()=>{class Xt extends U{constructor(En,un){super(En,un)}static#e=this.\u0275fac=function(un){return new(un||Xt)(d.Y36(O),d.Y36(d.SBq))};static#t=this.\u0275dir=d.lG2({type:Xt,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[d.qOj]})}return Xt})(),K=(()=>{class Xt extends U{constructor(En,un){if(super(En,un),1===En._table?._elementRef.nativeElement.nodeType){const Ki=En._table._elementRef.nativeElement.getAttribute("role");un.nativeElement.setAttribute("role","grid"===Ki||"treegrid"===Ki?"gridcell":"cell")}}static#e=this.\u0275fac=function(un){return new(un||Xt)(d.Y36(O),d.Y36(d.SBq))};static#t=this.\u0275dir=d.lG2({type:Xt,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[d.qOj]})}return Xt})(),X=(()=>{class Xt extends U{constructor(En,un){if(super(En,un),1===En._table?._elementRef.nativeElement.nodeType){const Ki=En._table._elementRef.nativeElement.getAttribute("role");un.nativeElement.setAttribute("role","grid"===Ki||"treegrid"===Ki?"gridcell":"cell")}}static#e=this.\u0275fac=function(un){return new(un||Xt)(d.Y36(O),d.Y36(d.SBq))};static#t=this.\u0275dir=d.lG2({type:Xt,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[d.qOj]})}return Xt})();class me{constructor(){this.tasks=[],this.endTasks=[]}}const J=new d.OlP("_COALESCED_STYLE_SCHEDULER");let Q=(()=>{class Xt{constructor(En){this._ngZone=En,this._currentSchedule=null,this._destroyed=new s.x}schedule(En){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(En)}scheduleEnd(En){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(En)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new me,this._getScheduleObservable().pipe((0,x.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const En=this._currentSchedule;this._currentSchedule=new me;for(const un of En.tasks)un();for(const un of En.endTasks)un()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,A.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,f.q)(1))}static#e=this.\u0275fac=function(un){return new(un||Xt)(d.LFG(d.R0b))};static#t=this.\u0275prov=d.Yz7({token:Xt,factory:Xt.\u0275fac})}return Xt})(),de=(()=>{class Xt{constructor(En,un){this.template=En,this._differs=un}ngOnChanges(En){if(!this._columnsDiffer){const un=En.columns&&En.columns.currentValue||[];this._columnsDiffer=this._differs.find(un).create(),this._columnsDiffer.diff(un)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(En){return this instanceof H?En.headerCell.template:this instanceof se?En.footerCell.template:En.cell.template}static#e=this.\u0275fac=function(un){return new(un||Xt)(d.Y36(d.Rgc),d.Y36(d.ZZ4))};static#t=this.\u0275dir=d.lG2({type:Xt,features:[d.TTD]})}return Xt})();class te extends de{}const j=p(te);let H=(()=>{class Xt extends j{constructor(En,un,Ki){super(En,un),this._table=Ki}ngOnChanges(En){super.ngOnChanges(En)}static#e=this.\u0275fac=function(un){return new(un||Xt)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(E,8))};static#t=this.\u0275dir=d.lG2({type:Xt,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[d.qOj,d.TTD]})}return Xt})();class z extends de{}const q=p(z);let se=(()=>{class Xt extends q{constructor(En,un,Ki){super(En,un),this._table=Ki}ngOnChanges(En){super.ngOnChanges(En)}static#e=this.\u0275fac=function(un){return new(un||Xt)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(E,8))};static#t=this.\u0275dir=d.lG2({type:Xt,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[d.qOj,d.TTD]})}return Xt})(),ne=(()=>{class Xt extends de{constructor(En,un,Ki){super(En,un),this._table=Ki}static#e=this.\u0275fac=function(un){return new(un||Xt)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(E,8))};static#t=this.\u0275dir=d.lG2({type:Xt,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[d.qOj]})}return Xt})(),_e=(()=>{class Xt{static#e=this.mostRecentCellOutlet=null;constructor(En){this._viewContainer=En,Xt.mostRecentCellOutlet=this}ngOnDestroy(){Xt.mostRecentCellOutlet===this&&(Xt.mostRecentCellOutlet=null)}static#t=this.\u0275fac=function(un){return new(un||Xt)(d.Y36(d.s_b))};static#n=this.\u0275dir=d.lG2({type:Xt,selectors:[["","cdkCellOutlet",""]]})}return Xt})(),ge=(()=>{class Xt{static#e=this.\u0275fac=function(un){return new(un||Xt)};static#t=this.\u0275cmp=d.Xpm({type:Xt,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(un,Ki){1&un&&d.GkF(0,0)},dependencies:[_e],encapsulation:2})}return Xt})(),Ce=(()=>{class Xt{static#e=this.\u0275fac=function(un){return new(un||Xt)};static#t=this.\u0275cmp=d.Xpm({type:Xt,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(un,Ki){1&un&&d.GkF(0,0)},dependencies:[_e],encapsulation:2})}return Xt})(),Te=(()=>{class Xt{static#e=this.\u0275fac=function(un){return new(un||Xt)};static#t=this.\u0275cmp=d.Xpm({type:Xt,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(un,Ki){1&un&&d.GkF(0,0)},dependencies:[_e],encapsulation:2})}return Xt})(),De=(()=>{class Xt{constructor(En){this.templateRef=En,this._contentClassName="cdk-no-data-row"}static#e=this.\u0275fac=function(un){return new(un||Xt)(d.Y36(d.Rgc))};static#t=this.\u0275dir=d.lG2({type:Xt,selectors:[["ng-template","cdkNoDataRow",""]]})}return Xt})();const fe=["top","bottom","left","right"];class xe{constructor(Ji,En,un,Ki,Fn=!0,oi=!0,It){this._isNativeHtmlTable=Ji,this._stickCellCss=En,this.direction=un,this._coalescedStyleScheduler=Ki,this._isBrowser=Fn,this._needsPositionStickyOnElement=oi,this._positionListener=It,this._cachedCellWidths=[],this._borderCellCss={top:`${En}-border-elem-top`,bottom:`${En}-border-elem-bottom`,left:`${En}-border-elem-left`,right:`${En}-border-elem-right`}}clearStickyPositioning(Ji,En){const un=[];for(const Ki of Ji)if(Ki.nodeType===Ki.ELEMENT_NODE){un.push(Ki);for(let Fn=0;Fn<Ki.children.length;Fn++)un.push(Ki.children[Fn])}this._coalescedStyleScheduler.schedule(()=>{for(const Ki of un)this._removeStickyStyle(Ki,En)})}updateStickyColumns(Ji,En,un,Ki=!0){if(!Ji.length||!this._isBrowser||!En.some(pt=>pt)&&!un.some(pt=>pt))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const Fn=Ji[0],oi=Fn.children.length,It=this._getCellWidths(Fn,Ki),Bt=this._getStickyStartColumnPositions(It,En),xt=this._getStickyEndColumnPositions(It,un),wt=En.lastIndexOf(!0),Mt=un.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const pt="rtl"===this.direction,Lt=pt?"right":"left",tt=pt?"left":"right";for(const Ne of Ji)for(let vt=0;vt<oi;vt++){const ln=Ne.children[vt];En[vt]&&this._addStickyStyle(ln,Lt,Bt[vt],vt===wt),un[vt]&&this._addStickyStyle(ln,tt,xt[vt],vt===Mt)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===wt?[]:It.slice(0,wt+1).map((Ne,vt)=>En[vt]?Ne:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Mt?[]:It.slice(Mt).map((Ne,vt)=>un[vt+Mt]?Ne:null).reverse()}))})}stickRows(Ji,En,un){if(!this._isBrowser)return;const Ki="bottom"===un?Ji.slice().reverse():Ji,Fn="bottom"===un?En.slice().reverse():En,oi=[],It=[],Bt=[];for(let wt=0,Mt=0;wt<Ki.length;wt++){if(!Fn[wt])continue;oi[wt]=Mt;const pt=Ki[wt];Bt[wt]=this._isNativeHtmlTable?Array.from(pt.children):[pt];const Lt=pt.getBoundingClientRect().height;Mt+=Lt,It[wt]=Lt}const xt=Fn.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{for(let wt=0;wt<Ki.length;wt++){if(!Fn[wt])continue;const Mt=oi[wt],pt=wt===xt;for(const Lt of Bt[wt])this._addStickyStyle(Lt,un,Mt,pt)}"top"===un?this._positionListener?.stickyHeaderRowsUpdated({sizes:It,offsets:oi,elements:Bt}):this._positionListener?.stickyFooterRowsUpdated({sizes:It,offsets:oi,elements:Bt})})}updateStickyFooterContainer(Ji,En){if(!this._isNativeHtmlTable)return;const un=Ji.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{En.some(Ki=>!Ki)?this._removeStickyStyle(un,["bottom"]):this._addStickyStyle(un,"bottom",0,!1)})}_removeStickyStyle(Ji,En){for(const Ki of En)Ji.style[Ki]="",Ji.classList.remove(this._borderCellCss[Ki]);fe.some(Ki=>-1===En.indexOf(Ki)&&Ji.style[Ki])?Ji.style.zIndex=this._getCalculatedZIndex(Ji):(Ji.style.zIndex="",this._needsPositionStickyOnElement&&(Ji.style.position=""),Ji.classList.remove(this._stickCellCss))}_addStickyStyle(Ji,En,un,Ki){Ji.classList.add(this._stickCellCss),Ki&&Ji.classList.add(this._borderCellCss[En]),Ji.style[En]=`${un}px`,Ji.style.zIndex=this._getCalculatedZIndex(Ji),this._needsPositionStickyOnElement&&(Ji.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Ji){const En={top:100,bottom:10,left:1,right:1};let un=0;for(const Ki of fe)Ji.style[Ki]&&(un+=En[Ki]);return un?`${un}`:""}_getCellWidths(Ji,En=!0){if(!En&&this._cachedCellWidths.length)return this._cachedCellWidths;const un=[],Ki=Ji.children;for(let Fn=0;Fn<Ki.length;Fn++)un.push(Ki[Fn].getBoundingClientRect().width);return this._cachedCellWidths=un,un}_getStickyStartColumnPositions(Ji,En){const un=[];let Ki=0;for(let Fn=0;Fn<Ji.length;Fn++)En[Fn]&&(un[Fn]=Ki,Ki+=Ji[Fn]);return un}_getStickyEndColumnPositions(Ji,En){const un=[];let Ki=0;for(let Fn=Ji.length;Fn>0;Fn--)En[Fn]&&(un[Fn]=Ki,Ki+=Ji[Fn]);return un}}const ut=new d.OlP("CDK_SPL");let dn=(()=>{class Xt{constructor(En,un){this.viewContainer=En,this.elementRef=un}static#e=this.\u0275fac=function(un){return new(un||Xt)(d.Y36(d.s_b),d.Y36(d.SBq))};static#t=this.\u0275dir=d.lG2({type:Xt,selectors:[["","rowOutlet",""]]})}return Xt})(),sn=(()=>{class Xt{constructor(En,un){this.viewContainer=En,this.elementRef=un}static#e=this.\u0275fac=function(un){return new(un||Xt)(d.Y36(d.s_b),d.Y36(d.SBq))};static#t=this.\u0275dir=d.lG2({type:Xt,selectors:[["","headerRowOutlet",""]]})}return Xt})(),fn=(()=>{class Xt{constructor(En,un){this.viewContainer=En,this.elementRef=un}static#e=this.\u0275fac=function(un){return new(un||Xt)(d.Y36(d.s_b),d.Y36(d.SBq))};static#t=this.\u0275dir=d.lG2({type:Xt,selectors:[["","footerRowOutlet",""]]})}return Xt})(),yi=(()=>{class Xt{constructor(En,un){this.viewContainer=En,this.elementRef=un}static#e=this.\u0275fac=function(un){return new(un||Xt)(d.Y36(d.s_b),d.Y36(d.SBq))};static#t=this.\u0275dir=d.lG2({type:Xt,selectors:[["","noDataRowOutlet",""]]})}return Xt})(),mi=(()=>{class Xt{get trackBy(){return this._trackByFn}set trackBy(En){this._trackByFn=En}get dataSource(){return this._dataSource}set dataSource(En){this._dataSource!==En&&this._switchDataSource(En)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(En){this._multiTemplateDataRows=(0,n.Ig)(En),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(En){this._fixedLayout=(0,n.Ig)(En),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(En,un,Ki,Fn,oi,It,Bt,xt,wt,Mt,pt,Lt){this._differs=En,this._changeDetectorRef=un,this._elementRef=Ki,this._dir=oi,this._platform=Bt,this._viewRepeater=xt,this._coalescedStyleScheduler=wt,this._viewportRuler=Mt,this._stickyPositioningListener=pt,this._ngZone=Lt,this._onDestroy=new s.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new d.vpe,this.viewChange=new _.X({start:0,end:Number.MAX_VALUE}),Fn||this._elementRef.nativeElement.setAttribute("role","table"),this._document=It,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((En,un)=>this.trackBy?this.trackBy(un.dataIndex,un.data):un),this._viewportRuler.change().pipe((0,x.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const un=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||un,this._forceRecalculateCellWidths=un,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(En=>{En.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,o.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const En=this._dataDiffer.diff(this._renderRows);if(!En)return this._updateNoDataRow(),void this.contentChanged.next();const un=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(En,un,(Ki,Fn,oi)=>this._getEmbeddedViewArgs(Ki.item,oi),Ki=>Ki.item.data,Ki=>{1===Ki.operation&&Ki.context&&this._renderCellTemplateForItem(Ki.record.item.rowDef,Ki.context)}),this._updateRowIndexContext(),En.forEachIdentityChange(Ki=>{un.get(Ki.currentIndex).context.$implicit=Ki.item.data}),this._updateNoDataRow(),this._ngZone&&d.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,f.q)(1),(0,x.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(En){this._customColumnDefs.add(En)}removeColumnDef(En){this._customColumnDefs.delete(En)}addRowDef(En){this._customRowDefs.add(En)}removeRowDef(En){this._customRowDefs.delete(En)}addHeaderRowDef(En){this._customHeaderRowDefs.add(En),this._headerRowDefChanged=!0}removeHeaderRowDef(En){this._customHeaderRowDefs.delete(En),this._headerRowDefChanged=!0}addFooterRowDef(En){this._customFooterRowDefs.add(En),this._footerRowDefChanged=!0}removeFooterRowDef(En){this._customFooterRowDefs.delete(En),this._footerRowDefChanged=!0}setNoDataRow(En){this._customNoDataRow=En}updateStickyHeaderRowStyles(){const En=this._getRenderedRows(this._headerRowOutlet),Ki=this._elementRef.nativeElement.querySelector("thead");Ki&&(Ki.style.display=En.length?"":"none");const Fn=this._headerRowDefs.map(oi=>oi.sticky);this._stickyStyler.clearStickyPositioning(En,["top"]),this._stickyStyler.stickRows(En,Fn,"top"),this._headerRowDefs.forEach(oi=>oi.resetStickyChanged())}updateStickyFooterRowStyles(){const En=this._getRenderedRows(this._footerRowOutlet),Ki=this._elementRef.nativeElement.querySelector("tfoot");Ki&&(Ki.style.display=En.length?"":"none");const Fn=this._footerRowDefs.map(oi=>oi.sticky);this._stickyStyler.clearStickyPositioning(En,["bottom"]),this._stickyStyler.stickRows(En,Fn,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,Fn),this._footerRowDefs.forEach(oi=>oi.resetStickyChanged())}updateStickyColumnStyles(){const En=this._getRenderedRows(this._headerRowOutlet),un=this._getRenderedRows(this._rowOutlet),Ki=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...En,...un,...Ki],["left","right"]),this._stickyColumnStylesNeedReset=!1),En.forEach((Fn,oi)=>{this._addStickyColumnStyles([Fn],this._headerRowDefs[oi])}),this._rowDefs.forEach(Fn=>{const oi=[];for(let It=0;It<un.length;It++)this._renderRows[It].rowDef===Fn&&oi.push(un[It]);this._addStickyColumnStyles(oi,Fn)}),Ki.forEach((Fn,oi)=>{this._addStickyColumnStyles([Fn],this._footerRowDefs[oi])}),Array.from(this._columnDefsByName.values()).forEach(Fn=>Fn.resetStickyChanged())}_getAllRenderRows(){const En=[],un=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let Ki=0;Ki<this._data.length;Ki++){let Fn=this._data[Ki];const oi=this._getRenderRowsForData(Fn,Ki,un.get(Fn));this._cachedRenderRowsMap.has(Fn)||this._cachedRenderRowsMap.set(Fn,new WeakMap);for(let It=0;It<oi.length;It++){let Bt=oi[It];const xt=this._cachedRenderRowsMap.get(Bt.data);xt.has(Bt.rowDef)?xt.get(Bt.rowDef).push(Bt):xt.set(Bt.rowDef,[Bt]),En.push(Bt)}}return En}_getRenderRowsForData(En,un,Ki){return this._getRowDefs(En,un).map(oi=>{const It=Ki&&Ki.has(oi)?Ki.get(oi):[];if(It.length){const Bt=It.shift();return Bt.dataIndex=un,Bt}return{data:En,rowDef:oi,dataIndex:un}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Eo(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(un=>{this._columnDefsByName.has(un.name),this._columnDefsByName.set(un.name,un)})}_cacheRowDefs(){this._headerRowDefs=Eo(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Eo(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Eo(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const En=this._rowDefs.filter(un=>!un.when);this._defaultRowDef=En[0]}_renderUpdatedColumns(){const En=(oi,It)=>oi||!!It.getColumnsDiff(),un=this._rowDefs.reduce(En,!1);un&&this._forceRenderDataRows();const Ki=this._headerRowDefs.reduce(En,!1);Ki&&this._forceRenderHeaderRows();const Fn=this._footerRowDefs.reduce(En,!1);return Fn&&this._forceRenderFooterRows(),un||Ki||Fn}_switchDataSource(En){this._data=[],(0,o.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),En||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=En}_observeRenderChanges(){if(!this.dataSource)return;let En;(0,o.Z9)(this.dataSource)?En=this.dataSource.connect(this):(0,C.b)(this.dataSource)?En=this.dataSource:Array.isArray(this.dataSource)&&(En=(0,R.of)(this.dataSource)),this._renderChangeSubscription=En.pipe((0,x.R)(this._onDestroy)).subscribe(un=>{this._data=un||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((En,un)=>this._renderRow(this._headerRowOutlet,En,un)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((En,un)=>this._renderRow(this._footerRowOutlet,En,un)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(En,un){const Ki=Array.from(un.columns||[]).map(It=>this._columnDefsByName.get(It)),Fn=Ki.map(It=>It.sticky),oi=Ki.map(It=>It.stickyEnd);this._stickyStyler.updateStickyColumns(En,Fn,oi,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(En){const un=[];for(let Ki=0;Ki<En.viewContainer.length;Ki++){const Fn=En.viewContainer.get(Ki);un.push(Fn.rootNodes[0])}return un}_getRowDefs(En,un){if(1==this._rowDefs.length)return[this._rowDefs[0]];let Ki=[];if(this.multiTemplateDataRows)Ki=this._rowDefs.filter(Fn=>!Fn.when||Fn.when(un,En));else{let Fn=this._rowDefs.find(oi=>oi.when&&oi.when(un,En))||this._defaultRowDef;Fn&&Ki.push(Fn)}return Ki}_getEmbeddedViewArgs(En,un){return{templateRef:En.rowDef.template,context:{$implicit:En.data},index:un}}_renderRow(En,un,Ki,Fn={}){const oi=En.viewContainer.createEmbeddedView(un.template,Fn,Ki);return this._renderCellTemplateForItem(un,Fn),oi}_renderCellTemplateForItem(En,un){for(let Ki of this._getCellTemplates(En))_e.mostRecentCellOutlet&&_e.mostRecentCellOutlet._viewContainer.createEmbeddedView(Ki,un);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const En=this._rowOutlet.viewContainer;for(let un=0,Ki=En.length;un<Ki;un++){const oi=En.get(un).context;oi.count=Ki,oi.first=0===un,oi.last=un===Ki-1,oi.even=un%2==0,oi.odd=!oi.even,this.multiTemplateDataRows?(oi.dataIndex=this._renderRows[un].dataIndex,oi.renderIndex=un):oi.index=this._renderRows[un].dataIndex}}_getCellTemplates(En){return En&&En.columns?Array.from(En.columns,un=>{const Ki=this._columnDefsByName.get(un);return En.extractCellTemplate(Ki)}):[]}_applyNativeTableSections(){const En=this._document.createDocumentFragment(),un=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const Ki of un){const Fn=this._document.createElement(Ki.tag);Fn.setAttribute("role","rowgroup");for(const oi of Ki.outlets)Fn.appendChild(oi.elementRef.nativeElement);En.appendChild(Fn)}this._elementRef.nativeElement.appendChild(En)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const En=(un,Ki)=>un||Ki.hasStickyChanged();this._headerRowDefs.reduce(En,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(En,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(En,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new xe(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,R.of)()).pipe((0,x.R)(this._onDestroy)).subscribe(un=>{this._stickyStyler.direction=un,this.updateStickyColumnStyles()})}_getOwnDefs(En){return En.filter(un=>!un._table||un._table===this)}_updateNoDataRow(){const En=this._customNoDataRow||this._noDataRow;if(!En)return;const un=0===this._rowOutlet.viewContainer.length;if(un===this._isShowingNoDataRow)return;const Ki=this._noDataRowOutlet.viewContainer;if(un){const Fn=Ki.createEmbeddedView(En.templateRef),oi=Fn.rootNodes[0];1===Fn.rootNodes.length&&oi?.nodeType===this._document.ELEMENT_NODE&&(oi.setAttribute("role","row"),oi.classList.add(En._contentClassName))}else Ki.clear();this._isShowingNoDataRow=un}static#e=this.\u0275fac=function(un){return new(un||Xt)(d.Y36(d.ZZ4),d.Y36(d.sBO),d.Y36(d.SBq),d.$8M("role"),d.Y36(e.Is,8),d.Y36(u.K0),d.Y36(a.t4),d.Y36(o.k),d.Y36(J),d.Y36(l.rL),d.Y36(ut,12),d.Y36(d.R0b,8))};static#t=this.\u0275cmp=d.Xpm({type:Xt,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(un,Ki,Fn){if(1&un&&(d.Suo(Fn,De,5),d.Suo(Fn,O,5),d.Suo(Fn,ne,5),d.Suo(Fn,H,5),d.Suo(Fn,se,5)),2&un){let oi;d.iGM(oi=d.CRH())&&(Ki._noDataRow=oi.first),d.iGM(oi=d.CRH())&&(Ki._contentColumnDefs=oi),d.iGM(oi=d.CRH())&&(Ki._contentRowDefs=oi),d.iGM(oi=d.CRH())&&(Ki._contentHeaderRowDefs=oi),d.iGM(oi=d.CRH())&&(Ki._contentFooterRowDefs=oi)}},viewQuery:function(un,Ki){if(1&un&&(d.Gf(dn,7),d.Gf(sn,7),d.Gf(fn,7),d.Gf(yi,7)),2&un){let Fn;d.iGM(Fn=d.CRH())&&(Ki._rowOutlet=Fn.first),d.iGM(Fn=d.CRH())&&(Ki._headerRowOutlet=Fn.first),d.iGM(Fn=d.CRH())&&(Ki._footerRowOutlet=Fn.first),d.iGM(Fn=d.CRH())&&(Ki._noDataRowOutlet=Fn.first)}},hostAttrs:["ngSkipHydration","",1,"cdk-table"],hostVars:2,hostBindings:function(un,Ki){2&un&&d.ekj("cdk-table-fixed-layout",Ki.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[d._Bn([{provide:E,useExisting:Xt},{provide:o.k,useClass:o.yy},{provide:J,useClass:Q},{provide:ut,useValue:null}])],ngContentSelectors:w,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(un,Ki){1&un&&(d.F$t(k),d.Hsn(0),d.Hsn(1,1),d.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[dn,sn,fn,yi],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return Xt})();function Eo(Xt,Ji){return Xt.concat(Array.from(Ji))}let Ko=(()=>{class Xt{get name(){return this._name}set name(En){this._name=En,this._syncColumnDefName()}constructor(En,un){this._table=En,this._options=un,this.justify="start",this._options=un||{}}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((En,un)=>En[un])),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const En=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(En):En[0].toUpperCase()+En.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}static#e=this.\u0275fac=function(un){return new(un||Xt)(d.Y36(mi,8),d.Y36(b,8))};static#t=this.\u0275cmp=d.Xpm({type:Xt,selectors:[["cdk-text-column"]],viewQuery:function(un,Ki){if(1&un&&(d.Gf(O,7),d.Gf(I,7),d.Gf(L,7)),2&un){let Fn;d.iGM(Fn=d.CRH())&&(Ki.columnDef=Fn.first),d.iGM(Fn=d.CRH())&&(Ki.cell=Fn.first),d.iGM(Fn=d.CRH())&&(Ki.headerCell=Fn.first)}},inputs:{name:"name",headerText:"headerText",dataAccessor:"dataAccessor",justify:"justify"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(un,Ki){1&un&&(d.ynx(0,0),d.YNc(1,g,2,3,"th",1),d.YNc(2,M,2,3,"td",2),d.BQk())},dependencies:[I,L,O,X,V],encapsulation:2})}return Xt})(),Bn=(()=>{class Xt{static#e=this.\u0275fac=function(un){return new(un||Xt)};static#t=this.\u0275mod=d.oAB({type:Xt});static#n=this.\u0275inj=d.cJS({imports:[l.Cl]})}return Xt})()},56263:(he,y,i)=>{"use strict";i.d(y,{IC:()=>x,Ky:()=>f,Lq:()=>C});var e=i(62831),n=i(65879),o=i(42495),a=i(36232),l=i(78645),u=i(92438),d=i(29028),s=i(59773),A=i(96814);const _=(0,e.i$)({passive:!0});let C=(()=>{class k{constructor(g,M){this._platform=g,this._ngZone=M,this._monitoredElements=new Map}monitor(g){if(!this._platform.isBrowser)return a.E;const M=(0,o.fI)(g),p=this._monitoredElements.get(M);if(p)return p.subject;const E=new l.x,b="cdk-text-field-autofilled",I=L=>{"cdk-text-field-autofill-start"!==L.animationName||M.classList.contains(b)?"cdk-text-field-autofill-end"===L.animationName&&M.classList.contains(b)&&(M.classList.remove(b),this._ngZone.run(()=>E.next({target:L.target,isAutofilled:!1}))):(M.classList.add(b),this._ngZone.run(()=>E.next({target:L.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{M.addEventListener("animationstart",I,_),M.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(M,{subject:E,unlisten:()=>{M.removeEventListener("animationstart",I,_)}}),E}stopMonitoring(g){const M=(0,o.fI)(g),p=this._monitoredElements.get(M);p&&(p.unlisten(),p.subject.complete(),M.classList.remove("cdk-text-field-autofill-monitored"),M.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(M))}ngOnDestroy(){this._monitoredElements.forEach((g,M)=>this.stopMonitoring(M))}static#e=this.\u0275fac=function(M){return new(M||k)(n.LFG(e.t4),n.LFG(n.R0b))};static#t=this.\u0275prov=n.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})(),x=(()=>{class k{get minRows(){return this._minRows}set minRows(g){this._minRows=(0,o.su)(g),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(g){this._maxRows=(0,o.su)(g),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(g){g=(0,o.Ig)(g),this._enabled!==g&&((this._enabled=g)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(g){this._cachedPlaceholderHeight=void 0,g?this._textareaElement.setAttribute("placeholder",g):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}constructor(g,M,p,E){this._elementRef=g,this._platform=M,this._ngZone=p,this._destroyed=new l.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=b=>{this._hasFocus="focus"===b.type},this._document=E,this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const g=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;g&&(this._textareaElement.style.minHeight=g)}_setMaxHeight(){const g=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;g&&(this._textareaElement.style.maxHeight=g)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const g=this._getWindow();(0,u.R)(g,"resize").pipe((0,d.e)(16),(0,s.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let g=this._textareaElement.cloneNode(!1);g.rows=1,g.style.position="absolute",g.style.visibility="hidden",g.style.border="none",g.style.padding="0",g.style.height="",g.style.minHeight="",g.style.maxHeight="",g.style.overflow="hidden",this._textareaElement.parentNode.appendChild(g),this._cachedLineHeight=g.clientHeight,g.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const g=this._textareaElement,M=g.style.marginBottom||"",p=this._platform.FIREFOX,E=p&&this._hasFocus,b=p?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";E&&(g.style.marginBottom=`${g.clientHeight}px`),g.classList.add(b);const I=g.scrollHeight-4;return g.classList.remove(b),E&&(g.style.marginBottom=M),I}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const g=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=g}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(g=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const M=this._elementRef.nativeElement,p=M.value;if(!g&&this._minRows===this._previousMinRows&&p===this._previousValue)return;const E=this._measureScrollHeight(),b=Math.max(E,this._cachedPlaceholderHeight||0);M.style.height=`${b}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(M)):setTimeout(()=>this._scrollToCaretPosition(M))}),this._previousValue=p,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(g){const{selectionStart:M,selectionEnd:p}=g;!this._destroyed.isStopped&&this._hasFocus&&g.setSelectionRange(M,p)}static#e=this.\u0275fac=function(M){return new(M||k)(n.Y36(n.SBq),n.Y36(e.t4),n.Y36(n.R0b),n.Y36(A.K0,8))};static#t=this.\u0275dir=n.lG2({type:k,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(M,p){1&M&&n.NdJ("input",function(){return p._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return k})(),f=(()=>{class k{static#e=this.\u0275fac=function(M){return new(M||k)};static#t=this.\u0275mod=n.oAB({type:k});static#n=this.\u0275inj=n.cJS({})}return k})()},41894:(he,y,i)=>{"use strict";i.d(y,{HI:()=>x,Hs:()=>L,Ud:()=>V,XJ:()=>U,Xx:()=>P,_0:()=>I,cu:()=>f,nZ:()=>X,rO:()=>w});var e=i(78337),n=i(78645),o=i(65619),a=i(2664),l=i(22096),u=i(59773),d=i(65879),s=i(42495),A=i(49388);const x=new d.OlP("CDK_TREE_NODE_OUTLET_NODE");let f=(()=>{class me{constructor(Q,re){this.viewContainer=Q,this._node=re}static#e=this.\u0275fac=function(re){return new(re||me)(d.Y36(d.s_b),d.Y36(x,8))};static#t=this.\u0275dir=d.lG2({type:me,selectors:[["","cdkTreeNodeOutlet",""]]})}return me})();class k{constructor(J){this.$implicit=J}}let w=(()=>{class me{constructor(Q){this.template=Q}static#e=this.\u0275fac=function(re){return new(re||me)(d.Y36(d.Rgc))};static#t=this.\u0275dir=d.lG2({type:me,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}})}return me})(),I=(()=>{class me{get dataSource(){return this._dataSource}set dataSource(Q){this._dataSource!==Q&&this._switchDataSource(Q)}constructor(Q,re){this._differs=Q,this._changeDetectorRef=re,this._onDestroy=new n.x,this._levels=new Map,this.viewChange=new o.X({start:0,end:Number.MAX_VALUE})}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const Q=this._nodeDefs.filter(re=>!re.when);this._defaultNodeDef=Q[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(Q){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),Q||this._nodeOutlet.viewContainer.clear(),this._dataSource=Q,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let Q;(0,e.Z9)(this._dataSource)?Q=this._dataSource.connect(this):(0,a.b)(this._dataSource)?Q=this._dataSource:Array.isArray(this._dataSource)&&(Q=(0,l.of)(this._dataSource)),Q&&(this._dataSubscription=Q.pipe((0,u.R)(this._onDestroy)).subscribe(re=>this.renderNodeChanges(re)))}renderNodeChanges(Q,re=this._dataDiffer,de=this._nodeOutlet.viewContainer,te){const j=re.diff(Q);j&&(j.forEachOperation((H,z,q)=>{if(null==H.previousIndex)this.insertNode(Q[q],q,de,te);else if(null==q)de.remove(z),this._levels.delete(H.item);else{const se=de.get(z);de.move(se,q)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(Q,re){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(te=>te.when&&te.when(re,Q))||this._defaultNodeDef}insertNode(Q,re,de,te){const j=this._getNodeDef(Q,re),H=new k(Q);H.level=this.treeControl.getLevel?this.treeControl.getLevel(Q):typeof te<"u"&&this._levels.has(te)?this._levels.get(te)+1:0,this._levels.set(Q,H.level),(de||this._nodeOutlet.viewContainer).createEmbeddedView(j.template,H,re),L.mostRecentTreeNode&&(L.mostRecentTreeNode.data=Q)}static#e=this.\u0275fac=function(re){return new(re||me)(d.Y36(d.ZZ4),d.Y36(d.sBO))};static#t=this.\u0275cmp=d.Xpm({type:me,selectors:[["cdk-tree"]],contentQueries:function(re,de,te){if(1&re&&d.Suo(te,w,5),2&re){let j;d.iGM(j=d.CRH())&&(de._nodeDefs=j)}},viewQuery:function(re,de){if(1&re&&d.Gf(f,7),2&re){let te;d.iGM(te=d.CRH())&&(de._nodeOutlet=te.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(re,de){1&re&&d.GkF(0,0)},dependencies:[f],encapsulation:2})}return me})(),L=(()=>{class me{get role(){return"treeitem"}set role(Q){this._elementRef.nativeElement.setAttribute("role",Q)}static#e=this.mostRecentTreeNode=null;get data(){return this._data}set data(Q){Q!==this._data&&(this._data=Q,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}constructor(Q,re){this._elementRef=Q,this._tree=re,this._destroyed=new n.x,this._dataChanges=new n.x,me.mostRecentTreeNode=this,this.role="treeitem"}ngOnInit(){this._parentNodeAriaLevel=function D(me){let J=me.parentElement;for(;J&&!F(J);)J=J.parentElement;return J?J.classList.contains("cdk-nested-tree-node")?(0,s.su)(J.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){me.mostRecentTreeNode===this&&(me.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}static#t=this.\u0275fac=function(re){return new(re||me)(d.Y36(d.SBq),d.Y36(I))};static#n=this.\u0275dir=d.lG2({type:me,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(re,de){2&re&&d.uIk("aria-expanded",de.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]})}return me})();function F(me){const J=me.classList;return!(!J?.contains("cdk-nested-tree-node")&&!J?.contains("cdk-tree"))}let P=(()=>{class me extends L{constructor(Q,re,de){super(Q,re),this._differs=de}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const Q=this._tree.treeControl.getChildren(this.data);Array.isArray(Q)?this.updateChildrenNodes(Q):(0,a.b)(Q)&&Q.pipe((0,u.R)(this._destroyed)).subscribe(re=>this.updateChildrenNodes(re)),this.nodeOutlet.changes.pipe((0,u.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(Q){const re=this._getNodeOutlet();Q&&(this._children=Q),re&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,re.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const Q=this._getNodeOutlet();Q&&(Q.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const Q=this.nodeOutlet;return Q&&Q.find(re=>!re._node||re._node===this)}static#e=this.\u0275fac=function(re){return new(re||me)(d.Y36(d.SBq),d.Y36(I),d.Y36(d.ZZ4))};static#t=this.\u0275dir=d.lG2({type:me,selectors:[["cdk-nested-tree-node"]],contentQueries:function(re,de,te){if(1&re&&d.Suo(te,f,5),2&re){let j;d.iGM(j=d.CRH())&&(de.nodeOutlet=j)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[d._Bn([{provide:L,useExisting:me},{provide:x,useExisting:me}]),d.qOj]})}return me})();const O=/([A-Za-z%]+)$/;let U=(()=>{class me{get level(){return this._level}set level(Q){this._setLevelInput(Q)}get indent(){return this._indent}set indent(Q){this._setIndentInput(Q)}constructor(Q,re,de,te){this._treeNode=Q,this._tree=re,this._element=de,this._dir=te,this._destroyed=new n.x,this.indentUnits="px",this._indent=40,this._setPadding(),te&&te.change.pipe((0,u.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),Q._dataChanges.subscribe(()=>this._setPadding())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const Q=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,re=null==this._level?Q:this._level;return"number"==typeof re?`${re*this._indent}${this.indentUnits}`:null}_setPadding(Q=!1){const re=this._paddingIndent();if(re!==this._currentPadding||Q){const de=this._element.nativeElement,te=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",j="paddingLeft"===te?"paddingRight":"paddingLeft";de.style[te]=re||"",de.style[j]="",this._currentPadding=re}}_setLevelInput(Q){this._level=(0,s.su)(Q,null),this._setPadding()}_setIndentInput(Q){let re=Q,de="px";if("string"==typeof Q){const te=Q.split(O);re=te[0],de=te[1]||de}this.indentUnits=de,this._indent=(0,s.su)(re),this._setPadding()}static#e=this.\u0275fac=function(re){return new(re||me)(d.Y36(L),d.Y36(I),d.Y36(d.SBq),d.Y36(A.Is,8))};static#t=this.\u0275dir=d.lG2({type:me,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}})}return me})(),V=(()=>{class me{get recursive(){return this._recursive}set recursive(Q){this._recursive=(0,s.Ig)(Q)}constructor(Q,re){this._tree=Q,this._treeNode=re,this._recursive=!1}_toggle(Q){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),Q.stopPropagation()}static#e=this.\u0275fac=function(re){return new(re||me)(d.Y36(I),d.Y36(L))};static#t=this.\u0275dir=d.lG2({type:me,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(re,de){1&re&&d.NdJ("click",function(j){return de._toggle(j)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}})}return me})(),X=(()=>{class me{static#e=this.\u0275fac=function(re){return new(re||me)};static#t=this.\u0275mod=d.oAB({type:me});static#n=this.\u0275inj=d.cJS({})}return me})()},96814:(he,y,i)=>{"use strict";i.d(y,{$G:()=>xr,Do:()=>w,ED:()=>ms,EM:()=>ll,H9:()=>Us,HT:()=>a,JF:()=>ht,JJ:()=>kr,K0:()=>u,Mx:()=>Bi,NF:()=>Zr,Nd:()=>qo,O5:()=>ai,OU:()=>Ua,Ov:()=>br,PC:()=>tr,PM:()=>ls,RF:()=>bs,S$:()=>x,Ts:()=>_t,V_:()=>s,Ye:()=>g,b0:()=>k,bD:()=>No,ez:()=>Ar,i8:()=>Ti,lw:()=>d,mk:()=>or,n9:()=>ba,q:()=>o,rS:()=>ri,sg:()=>ji,tP:()=>Mr,uU:()=>Yr,w_:()=>l});var e=i(65879);
/**
         * @license Angular v16.1.6
         * (c) 2010-2022 Google LLC. https://angular.io/
         * License: MIT
         */let n=null;function o(){return n}function a(Ue){n||(n=Ue)}class l{}const u=new e.OlP("DocumentToken");let d=(()=>{class Ue{historyGo(Me){throw new Error("Not implemented")}static#e=this.\u0275fac=function(pe){return new(pe||Ue)};static#t=this.\u0275prov=e.Yz7({token:Ue,factory:function(){return(0,e.f3M)(A)},providedIn:"platform"})}return Ue})();const s=new e.OlP("Location Initialized");let A=(()=>{class Ue extends d{constructor(){super(),this._doc=(0,e.f3M)(u),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(Me){const pe=o().getGlobalEventTarget(this._doc,"window");return pe.addEventListener("popstate",Me,!1),()=>pe.removeEventListener("popstate",Me)}onHashChange(Me){const pe=o().getGlobalEventTarget(this._doc,"window");return pe.addEventListener("hashchange",Me,!1),()=>pe.removeEventListener("hashchange",Me)}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(Me){this._location.pathname=Me}pushState(Me,pe,lt){this._history.pushState(Me,pe,lt)}replaceState(Me,pe,lt){this._history.replaceState(Me,pe,lt)}forward(){this._history.forward()}back(){this._history.back()}historyGo(Me=0){this._history.go(Me)}getState(){return this._history.state}static#e=this.\u0275fac=function(pe){return new(pe||Ue)};static#t=this.\u0275prov=e.Yz7({token:Ue,factory:function(){return new Ue},providedIn:"platform"})}return Ue})();function _(Ue,Ye){if(0==Ue.length)return Ye;if(0==Ye.length)return Ue;let Me=0;return Ue.endsWith("/")&&Me++,Ye.startsWith("/")&&Me++,2==Me?Ue+Ye.substring(1):1==Me?Ue+Ye:Ue+"/"+Ye}function C(Ue){const Ye=Ue.match(/#|\?|$/),Me=Ye&&Ye.index||Ue.length;return Ue.slice(0,Me-("/"===Ue[Me-1]?1:0))+Ue.slice(Me)}function R(Ue){return Ue&&"?"!==Ue[0]?"?"+Ue:Ue}let x=(()=>{class Ue{historyGo(Me){throw new Error("Not implemented")}static#e=this.\u0275fac=function(pe){return new(pe||Ue)};static#t=this.\u0275prov=e.Yz7({token:Ue,factory:function(){return(0,e.f3M)(k)},providedIn:"root"})}return Ue})();const f=new e.OlP("appBaseHref");let k=(()=>{class Ue extends x{constructor(Me,pe){super(),this._platformLocation=Me,this._removeListenerFns=[],this._baseHref=pe??this._platformLocation.getBaseHrefFromDOM()??(0,e.f3M)(u).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Me){this._removeListenerFns.push(this._platformLocation.onPopState(Me),this._platformLocation.onHashChange(Me))}getBaseHref(){return this._baseHref}prepareExternalUrl(Me){return _(this._baseHref,Me)}path(Me=!1){const pe=this._platformLocation.pathname+R(this._platformLocation.search),lt=this._platformLocation.hash;return lt&&Me?`${pe}${lt}`:pe}pushState(Me,pe,lt,yt){const on=this.prepareExternalUrl(lt+R(yt));this._platformLocation.pushState(Me,pe,on)}replaceState(Me,pe,lt,yt){const on=this.prepareExternalUrl(lt+R(yt));this._platformLocation.replaceState(Me,pe,on)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Me=0){this._platformLocation.historyGo?.(Me)}static#e=this.\u0275fac=function(pe){return new(pe||Ue)(e.LFG(d),e.LFG(f,8))};static#t=this.\u0275prov=e.Yz7({token:Ue,factory:Ue.\u0275fac,providedIn:"root"})}return Ue})(),w=(()=>{class Ue extends x{constructor(Me,pe){super(),this._platformLocation=Me,this._baseHref="",this._removeListenerFns=[],null!=pe&&(this._baseHref=pe)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Me){this._removeListenerFns.push(this._platformLocation.onPopState(Me),this._platformLocation.onHashChange(Me))}getBaseHref(){return this._baseHref}path(Me=!1){let pe=this._platformLocation.hash;return null==pe&&(pe="#"),pe.length>0?pe.substring(1):pe}prepareExternalUrl(Me){const pe=_(this._baseHref,Me);return pe.length>0?"#"+pe:pe}pushState(Me,pe,lt,yt){let on=this.prepareExternalUrl(lt+R(yt));0==on.length&&(on=this._platformLocation.pathname),this._platformLocation.pushState(Me,pe,on)}replaceState(Me,pe,lt,yt){let on=this.prepareExternalUrl(lt+R(yt));0==on.length&&(on=this._platformLocation.pathname),this._platformLocation.replaceState(Me,pe,on)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Me=0){this._platformLocation.historyGo?.(Me)}static#e=this.\u0275fac=function(pe){return new(pe||Ue)(e.LFG(d),e.LFG(f,8))};static#t=this.\u0275prov=e.Yz7({token:Ue,factory:Ue.\u0275fac})}return Ue})(),g=(()=>{class Ue{constructor(Me){this._subject=new e.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Me;const pe=this._locationStrategy.getBaseHref();this._basePath=function b(Ue){if(new RegExp("^(https?:)?//").test(Ue)){const[,Me]=Ue.split(/\/\/[^\/]+/);return Me}return Ue}(C(E(pe))),this._locationStrategy.onPopState(lt=>{this._subject.emit({url:this.path(!0),pop:!0,state:lt.state,type:lt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(Me=!1){return this.normalize(this._locationStrategy.path(Me))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Me,pe=""){return this.path()==this.normalize(Me+R(pe))}normalize(Me){return Ue.stripTrailingSlash(function p(Ue,Ye){if(!Ue||!Ye.startsWith(Ue))return Ye;const Me=Ye.substring(Ue.length);return""===Me||["/",";","?","#"].includes(Me[0])?Me:Ye}(this._basePath,E(Me)))}prepareExternalUrl(Me){return Me&&"/"!==Me[0]&&(Me="/"+Me),this._locationStrategy.prepareExternalUrl(Me)}go(Me,pe="",lt=null){this._locationStrategy.pushState(lt,"",Me,pe),this._notifyUrlChangeListeners(this.prepareExternalUrl(Me+R(pe)),lt)}replaceState(Me,pe="",lt=null){this._locationStrategy.replaceState(lt,"",Me,pe),this._notifyUrlChangeListeners(this.prepareExternalUrl(Me+R(pe)),lt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Me=0){this._locationStrategy.historyGo?.(Me)}onUrlChange(Me){return this._urlChangeListeners.push(Me),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(pe=>{this._notifyUrlChangeListeners(pe.url,pe.state)})),()=>{const pe=this._urlChangeListeners.indexOf(Me);this._urlChangeListeners.splice(pe,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Me="",pe){this._urlChangeListeners.forEach(lt=>lt(Me,pe))}subscribe(Me,pe,lt){return this._subject.subscribe({next:Me,error:pe,complete:lt})}static#e=this.normalizeQueryParams=R;static#t=this.joinWithSlash=_;static#n=this.stripTrailingSlash=C;static#i=this.\u0275fac=function(pe){return new(pe||Ue)(e.LFG(x))};static#o=this.\u0275prov=e.Yz7({token:Ue,factory:function(){return function M(){return new g((0,e.LFG)(x))}()},providedIn:"root"})}return Ue})();function E(Ue){return Ue.replace(/\/index.html$/,"")}const I={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var L=function(Ue){return Ue[Ue.Decimal=0]="Decimal",Ue[Ue.Percent=1]="Percent",Ue[Ue.Currency=2]="Currency",Ue[Ue.Scientific=3]="Scientific",Ue}(L||{}),F=function(Ue){return Ue[Ue.Format=0]="Format",Ue[Ue.Standalone=1]="Standalone",Ue}(F||{}),P=function(Ue){return Ue[Ue.Narrow=0]="Narrow",Ue[Ue.Abbreviated=1]="Abbreviated",Ue[Ue.Wide=2]="Wide",Ue[Ue.Short=3]="Short",Ue}(P||{}),O=function(Ue){return Ue[Ue.Short=0]="Short",Ue[Ue.Medium=1]="Medium",Ue[Ue.Long=2]="Long",Ue[Ue.Full=3]="Full",Ue}(O||{}),U=function(Ue){return Ue[Ue.Decimal=0]="Decimal",Ue[Ue.Group=1]="Group",Ue[Ue.List=2]="List",Ue[Ue.PercentSign=3]="PercentSign",Ue[Ue.PlusSign=4]="PlusSign",Ue[Ue.MinusSign=5]="MinusSign",Ue[Ue.Exponential=6]="Exponential",Ue[Ue.SuperscriptingExponent=7]="SuperscriptingExponent",Ue[Ue.PerMille=8]="PerMille",Ue[Ue.Infinity=9]="Infinity",Ue[Ue.NaN=10]="NaN",Ue[Ue.TimeSeparator=11]="TimeSeparator",Ue[Ue.CurrencyDecimal=12]="CurrencyDecimal",Ue[Ue.CurrencyGroup=13]="CurrencyGroup",Ue}(U||{});function te(Ue,Ye){return Oe((0,e.cg1)(Ue)[e.wAp.DateFormat],Ye)}function j(Ue,Ye){return Oe((0,e.cg1)(Ue)[e.wAp.TimeFormat],Ye)}function H(Ue,Ye){return Oe((0,e.cg1)(Ue)[e.wAp.DateTimeFormat],Ye)}function z(Ue,Ye){const Me=(0,e.cg1)(Ue),pe=Me[e.wAp.NumberSymbols][Ye];if(typeof pe>"u"){if(Ye===U.CurrencyDecimal)return Me[e.wAp.NumberSymbols][U.Decimal];if(Ye===U.CurrencyGroup)return Me[e.wAp.NumberSymbols][U.Group]}return pe}function q(Ue,Ye){return(0,e.cg1)(Ue)[e.wAp.NumberFormats][Ye]}function Te(Ue){if(!Ue[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Ue[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Oe(Ue,Ye){for(let Me=Ye;Me>-1;Me--)if(typeof Ue[Me]<"u")return Ue[Me];throw new Error("Locale data API: locale data undefined")}function Le(Ue){const[Ye,Me]=Ue.split(":");return{hours:+Ye,minutes:+Me}}const $n=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,xn={},mt=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?: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}|c{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 ut=function(Ue){return Ue[Ue.Short=0]="Short",Ue[Ue.ShortGMT=1]="ShortGMT",Ue[Ue.Long=2]="Long",Ue[Ue.Extended=3]="Extended",Ue}(ut||{}),Wt=function(Ue){return Ue[Ue.FullYear=0]="FullYear",Ue[Ue.Month=1]="Month",Ue[Ue.Date=2]="Date",Ue[Ue.Hours=3]="Hours",Ue[Ue.Minutes=4]="Minutes",Ue[Ue.Seconds=5]="Seconds",Ue[Ue.FractionalSeconds=6]="FractionalSeconds",Ue[Ue.Day=7]="Day",Ue}(Wt||{}),dn=function(Ue){return Ue[Ue.DayPeriods=0]="DayPeriods",Ue[Ue.Days=1]="Days",Ue[Ue.Months=2]="Months",Ue[Ue.Eras=3]="Eras",Ue}(dn||{});function sn(Ue,Ye,Me,pe){let lt=function pt(Ue){if(tt(Ue))return Ue;if("number"==typeof Ue&&!isNaN(Ue))return new Date(Ue);if("string"==typeof Ue){if(Ue=Ue.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Ue)){const[lt,yt=1,on=1]=Ue.split("-").map(zi=>+zi);return fn(lt,yt-1,on)}const Me=parseFloat(Ue);if(!isNaN(Ue-Me))return new Date(Me);let pe;if(pe=Ue.match($n))return function Lt(Ue){const Ye=new Date(0);let Me=0,pe=0;const lt=Ue[8]?Ye.setUTCFullYear:Ye.setFullYear,yt=Ue[8]?Ye.setUTCHours:Ye.setHours;Ue[9]&&(Me=Number(Ue[9]+Ue[10]),pe=Number(Ue[9]+Ue[11])),lt.call(Ye,Number(Ue[1]),Number(Ue[2])-1,Number(Ue[3]));const on=Number(Ue[4]||0)-Me,zi=Number(Ue[5]||0)-pe,Kn=Number(Ue[6]||0),ho=Math.floor(1e3*parseFloat("0."+(Ue[7]||0)));return yt.call(Ye,on,zi,Kn,ho),Ye}(pe)}const Ye=new Date(Ue);if(!tt(Ye))throw new Error(`Unable to convert "${Ue}" into a date`);return Ye}(Ue);Ye=yi(Me,Ye)||Ye;let zi,on=[];for(;Ye;){if(zi=mt.exec(Ye),!zi){on.push(Ye);break}{on=on.concat(zi.slice(1));const po=on.pop();if(!po)break;Ye=po}}let Kn=lt.getTimezoneOffset();pe&&(Kn=xt(pe,Kn),lt=function Mt(Ue,Ye,Me){const pe=Me?-1:1,lt=Ue.getTimezoneOffset();return function wt(Ue,Ye){return(Ue=new Date(Ue.getTime())).setMinutes(Ue.getMinutes()+Ye),Ue}(Ue,pe*(xt(Ye,lt)-lt))}(lt,pe,!0));let ho="";return on.forEach(po=>{const $i=function Bt(Ue){if(It[Ue])return It[Ue];let Ye;switch(Ue){case"G":case"GG":case"GGG":Ye=xo(dn.Eras,P.Abbreviated);break;case"GGGG":Ye=xo(dn.Eras,P.Wide);break;case"GGGGG":Ye=xo(dn.Eras,P.Narrow);break;case"y":Ye=Eo(Wt.FullYear,1,0,!1,!0);break;case"yy":Ye=Eo(Wt.FullYear,2,0,!0,!0);break;case"yyy":Ye=Eo(Wt.FullYear,3,0,!1,!0);break;case"yyyy":Ye=Eo(Wt.FullYear,4,0,!1,!0);break;case"Y":Ye=oi(1);break;case"YY":Ye=oi(2,!0);break;case"YYY":Ye=oi(3);break;case"YYYY":Ye=oi(4);break;case"M":case"L":Ye=Eo(Wt.Month,1,1);break;case"MM":case"LL":Ye=Eo(Wt.Month,2,1);break;case"MMM":Ye=xo(dn.Months,P.Abbreviated);break;case"MMMM":Ye=xo(dn.Months,P.Wide);break;case"MMMMM":Ye=xo(dn.Months,P.Narrow);break;case"LLL":Ye=xo(dn.Months,P.Abbreviated,F.Standalone);break;case"LLLL":Ye=xo(dn.Months,P.Wide,F.Standalone);break;case"LLLLL":Ye=xo(dn.Months,P.Narrow,F.Standalone);break;case"w":Ye=Fn(1);break;case"ww":Ye=Fn(2);break;case"W":Ye=Fn(1,!0);break;case"d":Ye=Eo(Wt.Date,1);break;case"dd":Ye=Eo(Wt.Date,2);break;case"c":case"cc":Ye=Eo(Wt.Day,1);break;case"ccc":Ye=xo(dn.Days,P.Abbreviated,F.Standalone);break;case"cccc":Ye=xo(dn.Days,P.Wide,F.Standalone);break;case"ccccc":Ye=xo(dn.Days,P.Narrow,F.Standalone);break;case"cccccc":Ye=xo(dn.Days,P.Short,F.Standalone);break;case"E":case"EE":case"EEE":Ye=xo(dn.Days,P.Abbreviated);break;case"EEEE":Ye=xo(dn.Days,P.Wide);break;case"EEEEE":Ye=xo(dn.Days,P.Narrow);break;case"EEEEEE":Ye=xo(dn.Days,P.Short);break;case"a":case"aa":case"aaa":Ye=xo(dn.DayPeriods,P.Abbreviated);break;case"aaaa":Ye=xo(dn.DayPeriods,P.Wide);break;case"aaaaa":Ye=xo(dn.DayPeriods,P.Narrow);break;case"b":case"bb":case"bbb":Ye=xo(dn.DayPeriods,P.Abbreviated,F.Standalone,!0);break;case"bbbb":Ye=xo(dn.DayPeriods,P.Wide,F.Standalone,!0);break;case"bbbbb":Ye=xo(dn.DayPeriods,P.Narrow,F.Standalone,!0);break;case"B":case"BB":case"BBB":Ye=xo(dn.DayPeriods,P.Abbreviated,F.Format,!0);break;case"BBBB":Ye=xo(dn.DayPeriods,P.Wide,F.Format,!0);break;case"BBBBB":Ye=xo(dn.DayPeriods,P.Narrow,F.Format,!0);break;case"h":Ye=Eo(Wt.Hours,1,-12);break;case"hh":Ye=Eo(Wt.Hours,2,-12);break;case"H":Ye=Eo(Wt.Hours,1);break;case"HH":Ye=Eo(Wt.Hours,2);break;case"m":Ye=Eo(Wt.Minutes,1);break;case"mm":Ye=Eo(Wt.Minutes,2);break;case"s":Ye=Eo(Wt.Seconds,1);break;case"ss":Ye=Eo(Wt.Seconds,2);break;case"S":Ye=Eo(Wt.FractionalSeconds,1);break;case"SS":Ye=Eo(Wt.FractionalSeconds,2);break;case"SSS":Ye=Eo(Wt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Ye=Xt(ut.Short);break;case"ZZZZZ":Ye=Xt(ut.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Ye=Xt(ut.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Ye=Xt(ut.Long);break;default:return null}return It[Ue]=Ye,Ye}(po);ho+=$i?$i(lt,Me,Kn):"''"===po?"'":po.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ho}function fn(Ue,Ye,Me){const pe=new Date(0);return pe.setFullYear(Ue,Ye,Me),pe.setHours(0,0,0),pe}function yi(Ue,Ye){const Me=function K(Ue){return(0,e.cg1)(Ue)[e.wAp.LocaleId]}(Ue);if(xn[Me]=xn[Me]||{},xn[Me][Ye])return xn[Me][Ye];let pe="";switch(Ye){case"shortDate":pe=te(Ue,O.Short);break;case"mediumDate":pe=te(Ue,O.Medium);break;case"longDate":pe=te(Ue,O.Long);break;case"fullDate":pe=te(Ue,O.Full);break;case"shortTime":pe=j(Ue,O.Short);break;case"mediumTime":pe=j(Ue,O.Medium);break;case"longTime":pe=j(Ue,O.Long);break;case"fullTime":pe=j(Ue,O.Full);break;case"short":const lt=yi(Ue,"shortTime"),yt=yi(Ue,"shortDate");pe=nn(H(Ue,O.Short),[lt,yt]);break;case"medium":const on=yi(Ue,"mediumTime"),zi=yi(Ue,"mediumDate");pe=nn(H(Ue,O.Medium),[on,zi]);break;case"long":const Kn=yi(Ue,"longTime"),ho=yi(Ue,"longDate");pe=nn(H(Ue,O.Long),[Kn,ho]);break;case"full":const po=yi(Ue,"fullTime"),$i=yi(Ue,"fullDate");pe=nn(H(Ue,O.Full),[po,$i])}return pe&&(xn[Me][Ye]=pe),pe}function nn(Ue,Ye){return Ye&&(Ue=Ue.replace(/\{([^}]+)}/g,function(Me,pe){return null!=Ye&&pe in Ye?Ye[pe]:Me})),Ue}function Mi(Ue,Ye,Me="-",pe,lt){let yt="";(Ue<0||lt&&Ue<=0)&&(lt?Ue=1-Ue:(Ue=-Ue,yt=Me));let on=String(Ue);for(;on.length<Ye;)on="0"+on;return pe&&(on=on.slice(on.length-Ye)),yt+on}function Eo(Ue,Ye,Me=0,pe=!1,lt=!1){return function(yt,on){let zi=function Ko(Ue,Ye){switch(Ue){case Wt.FullYear:return Ye.getFullYear();case Wt.Month:return Ye.getMonth();case Wt.Date:return Ye.getDate();case Wt.Hours:return Ye.getHours();case Wt.Minutes:return Ye.getMinutes();case Wt.Seconds:return Ye.getSeconds();case Wt.FractionalSeconds:return Ye.getMilliseconds();case Wt.Day:return Ye.getDay();default:throw new Error(`Unknown DateType value "${Ue}".`)}}(Ue,yt);if((Me>0||zi>-Me)&&(zi+=Me),Ue===Wt.Hours)0===zi&&-12===Me&&(zi=12);else if(Ue===Wt.FractionalSeconds)return function mi(Ue,Ye){return Mi(Ue,3).substring(0,Ye)}(zi,Ye);const Kn=z(on,U.MinusSign);return Mi(zi,Ye,Kn,pe,lt)}}function xo(Ue,Ye,Me=F.Format,pe=!1){return function(lt,yt){return function Bn(Ue,Ye,Me,pe,lt,yt){switch(Me){case dn.Months:return function J(Ue,Ye,Me){const pe=(0,e.cg1)(Ue),yt=Oe([pe[e.wAp.MonthsFormat],pe[e.wAp.MonthsStandalone]],Ye);return Oe(yt,Me)}(Ye,lt,pe)[Ue.getMonth()];case dn.Days:return function me(Ue,Ye,Me){const pe=(0,e.cg1)(Ue),yt=Oe([pe[e.wAp.DaysFormat],pe[e.wAp.DaysStandalone]],Ye);return Oe(yt,Me)}(Ye,lt,pe)[Ue.getDay()];case dn.DayPeriods:const on=Ue.getHours(),zi=Ue.getMinutes();if(yt){const ho=function De(Ue){const Ye=(0,e.cg1)(Ue);return Te(Ye),(Ye[e.wAp.ExtraData][2]||[]).map(pe=>"string"==typeof pe?Le(pe):[Le(pe[0]),Le(pe[1])])}(Ye),po=function fe(Ue,Ye,Me){const pe=(0,e.cg1)(Ue);Te(pe);const yt=Oe([pe[e.wAp.ExtraData][0],pe[e.wAp.ExtraData][1]],Ye)||[];return Oe(yt,Me)||[]}(Ye,lt,pe),$i=ho.findIndex(ro=>{if(Array.isArray(ro)){const[wo,io]=ro,Wi=on>=wo.hours&&zi>=wo.minutes,fo=on<io.hours||on===io.hours&&zi<io.minutes;if(wo.hours<io.hours){if(Wi&&fo)return!0}else if(Wi||fo)return!0}else if(ro.hours===on&&ro.minutes===zi)return!0;return!1});if(-1!==$i)return po[$i]}return function X(Ue,Ye,Me){const pe=(0,e.cg1)(Ue),yt=Oe([pe[e.wAp.DayPeriodsFormat],pe[e.wAp.DayPeriodsStandalone]],Ye);return Oe(yt,Me)}(Ye,lt,pe)[on<12?0:1];case dn.Eras:return function Q(Ue,Ye){return Oe((0,e.cg1)(Ue)[e.wAp.Eras],Ye)}(Ye,pe)[Ue.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${Me}`)}}(lt,yt,Ue,Ye,Me,pe)}}function Xt(Ue){return function(Ye,Me,pe){const lt=-1*pe,yt=z(Me,U.MinusSign),on=lt>0?Math.floor(lt/60):Math.ceil(lt/60);switch(Ue){case ut.Short:return(lt>=0?"+":"")+Mi(on,2,yt)+Mi(Math.abs(lt%60),2,yt);case ut.ShortGMT:return"GMT"+(lt>=0?"+":"")+Mi(on,1,yt);case ut.Long:return"GMT"+(lt>=0?"+":"")+Mi(on,2,yt)+":"+Mi(Math.abs(lt%60),2,yt);case ut.Extended:return 0===pe?"Z":(lt>=0?"+":"")+Mi(on,2,yt)+":"+Mi(Math.abs(lt%60),2,yt);default:throw new Error(`Unknown zone width "${Ue}"`)}}}const Ji=0,En=4;function Ki(Ue){return fn(Ue.getFullYear(),Ue.getMonth(),Ue.getDate()+(En-Ue.getDay()))}function Fn(Ue,Ye=!1){return function(Me,pe){let lt;if(Ye){const yt=new Date(Me.getFullYear(),Me.getMonth(),1).getDay()-1,on=Me.getDate();lt=1+Math.floor((on+yt)/7)}else{const yt=Ki(Me),on=function un(Ue){const Ye=fn(Ue,Ji,1).getDay();return fn(Ue,0,1+(Ye<=En?En:En+7)-Ye)}(yt.getFullYear()),zi=yt.getTime()-on.getTime();lt=1+Math.round(zi/6048e5)}return Mi(lt,Ue,z(pe,U.MinusSign))}}function oi(Ue,Ye=!1){return function(Me,pe){return Mi(Ki(Me).getFullYear(),Ue,z(pe,U.MinusSign),Ye)}}const It={};function xt(Ue,Ye){Ue=Ue.replace(/:/g,"");const Me=Date.parse("Jan 01, 1970 00:00:00 "+Ue)/6e4;return isNaN(Me)?Ye:Me}function tt(Ue){return Ue instanceof Date&&!isNaN(Ue.valueOf())}const Ne=/^(\d+)?\.((\d+)(-(\d+))?)?$/,vt=22,ln=".",jn="0",Pi=";",go=",",si="#";function _i(Ue,Ye,Me,pe,lt,yt,on=!1){let zi="",Kn=!1;if(isFinite(Ue)){let ho=function Xi(Ue){let pe,lt,yt,on,zi,Ye=Math.abs(Ue)+"",Me=0;for((lt=Ye.indexOf(ln))>-1&&(Ye=Ye.replace(ln,"")),(yt=Ye.search(/e/i))>0?(lt<0&&(lt=yt),lt+=+Ye.slice(yt+1),Ye=Ye.substring(0,yt)):lt<0&&(lt=Ye.length),yt=0;Ye.charAt(yt)===jn;yt++);if(yt===(zi=Ye.length))pe=[0],lt=1;else{for(zi--;Ye.charAt(zi)===jn;)zi--;for(lt-=yt,pe=[],on=0;yt<=zi;yt++,on++)pe[on]=Number(Ye.charAt(yt))}return lt>vt&&(pe=pe.splice(0,vt-1),Me=lt-1,lt=1),{digits:pe,exponent:Me,integerLen:lt}}(Ue);on&&(ho=function li(Ue){if(0===Ue.digits[0])return Ue;const Ye=Ue.digits.length-Ue.integerLen;return Ue.exponent?Ue.exponent+=2:(0===Ye?Ue.digits.push(0,0):1===Ye&&Ue.digits.push(0),Ue.integerLen+=2),Ue}(ho));let po=Ye.minInt,$i=Ye.minFrac,ro=Ye.maxFrac;if(yt){const Fr=yt.match(Ne);if(null===Fr)throw new Error(`${yt} is not a valid digit info`);const jr=Fr[1],fs=Fr[3],Ms=Fr[5];null!=jr&&(po=bo(jr)),null!=fs&&($i=bo(fs)),null!=Ms?ro=bo(Ms):null!=fs&&$i>ro&&(ro=$i)}!function ki(Ue,Ye,Me){if(Ye>Me)throw new Error(`The minimum number of digits after fraction (${Ye}) is higher than the maximum (${Me}).`);let pe=Ue.digits,lt=pe.length-Ue.integerLen;const yt=Math.min(Math.max(Ye,lt),Me);let on=yt+Ue.integerLen,zi=pe[on];if(on>0){pe.splice(Math.max(Ue.integerLen,on));for(let $i=on;$i<pe.length;$i++)pe[$i]=0}else{lt=Math.max(0,lt),Ue.integerLen=1,pe.length=Math.max(1,on=yt+1),pe[0]=0;for(let $i=1;$i<on;$i++)pe[$i]=0}if(zi>=5)if(on-1<0){for(let $i=0;$i>on;$i--)pe.unshift(0),Ue.integerLen++;pe.unshift(1),Ue.integerLen++}else pe[on-1]++;for(;lt<Math.max(0,yt);lt++)pe.push(0);let Kn=0!==yt;const ho=Ye+Ue.integerLen,po=pe.reduceRight(function($i,ro,wo,io){return io[wo]=(ro+=$i)<10?ro:ro-10,Kn&&(0===io[wo]&&wo>=ho?io.pop():Kn=!1),ro>=10?1:0},0);po&&(pe.unshift(po),Ue.integerLen++)}(ho,$i,ro);let wo=ho.digits,io=ho.integerLen;const Wi=ho.exponent;let fo=[];for(Kn=wo.every(Fr=>!Fr);io<po;io++)wo.unshift(0);for(;io<0;io++)wo.unshift(0);io>0?fo=wo.splice(io,wo.length):(fo=wo,wo=[0]);const cr=[];for(wo.length>=Ye.lgSize&&cr.unshift(wo.splice(-Ye.lgSize,wo.length).join(""));wo.length>Ye.gSize;)cr.unshift(wo.splice(-Ye.gSize,wo.length).join(""));wo.length&&cr.unshift(wo.join("")),zi=cr.join(z(Me,pe)),fo.length&&(zi+=z(Me,lt)+fo.join("")),Wi&&(zi+=z(Me,U.Exponential)+"+"+Wi)}else zi=z(Me,U.Infinity);return zi=Ue<0&&!Kn?Ye.negPre+zi+Ye.negSuf:Ye.posPre+zi+Ye.posSuf,zi}function Ei(Ue,Ye="-"){const Me={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},pe=Ue.split(Pi),lt=pe[0],yt=pe[1],on=-1!==lt.indexOf(ln)?lt.split(ln):[lt.substring(0,lt.lastIndexOf(jn)+1),lt.substring(lt.lastIndexOf(jn)+1)],zi=on[0],Kn=on[1]||"";Me.posPre=zi.substring(0,zi.indexOf(si));for(let po=0;po<Kn.length;po++){const $i=Kn.charAt(po);$i===jn?Me.minFrac=Me.maxFrac=po+1:$i===si?Me.maxFrac=po+1:Me.posSuf+=$i}const ho=zi.split(go);if(Me.gSize=ho[1]?ho[1].length:0,Me.lgSize=ho[2]||ho[1]?(ho[2]||ho[1]).length:0,yt){const po=lt.length-Me.posPre.length-Me.posSuf.length,$i=yt.indexOf(si);Me.negPre=yt.substring(0,$i).replace(/'/g,""),Me.negSuf=yt.slice($i+po).replace(/'/g,"")}else Me.negPre=Ye+Me.posPre,Me.negSuf=Me.posSuf;return Me}function bo(Ue){const Ye=parseInt(Ue);if(isNaN(Ye))throw new Error("Invalid integer literal when parsing "+Ue);return Ye}function Bi(Ue,Ye){Ye=encodeURIComponent(Ye);for(const Me of Ue.split(";")){const pe=Me.indexOf("="),[lt,yt]=-1==pe?[Me,""]:[Me.slice(0,pe),Me.slice(pe+1)];if(lt.trim()===Ye)return decodeURIComponent(yt)}return null}const Xo=/\s+/,Lo=[];let or=(()=>{class Ue{constructor(Me,pe,lt,yt){this._iterableDiffers=Me,this._keyValueDiffers=pe,this._ngEl=lt,this._renderer=yt,this.initialClasses=Lo,this.stateMap=new Map}set klass(Me){this.initialClasses=null!=Me?Me.trim().split(Xo):Lo}set ngClass(Me){this.rawClass="string"==typeof Me?Me.trim().split(Xo):Me}ngDoCheck(){for(const pe of this.initialClasses)this._updateState(pe,!0);const Me=this.rawClass;if(Array.isArray(Me)||Me instanceof Set)for(const pe of Me)this._updateState(pe,!0);else if(null!=Me)for(const pe of Object.keys(Me))this._updateState(pe,!!Me[pe]);this._applyStateDiff()}_updateState(Me,pe){const lt=this.stateMap.get(Me);void 0!==lt?(lt.enabled!==pe&&(lt.changed=!0,lt.enabled=pe),lt.touched=!0):this.stateMap.set(Me,{enabled:pe,changed:!0,touched:!0})}_applyStateDiff(){for(const Me of this.stateMap){const pe=Me[0],lt=Me[1];lt.changed?(this._toggleClass(pe,lt.enabled),lt.changed=!1):lt.touched||(lt.enabled&&this._toggleClass(pe,!1),this.stateMap.delete(pe)),lt.touched=!1}}_toggleClass(Me,pe){(Me=Me.trim()).length>0&&Me.split(Xo).forEach(lt=>{pe?this._renderer.addClass(this._ngEl.nativeElement,lt):this._renderer.removeClass(this._ngEl.nativeElement,lt)})}static#e=this.\u0275fac=function(pe){return new(pe||Ue)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))};static#t=this.\u0275dir=e.lG2({type:Ue,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return Ue})(),xr=(()=>{class Ue{constructor(Me){this._viewContainerRef=Me,this.ngComponentOutlet=null}ngOnChanges(Me){const{_viewContainerRef:pe,ngComponentOutletNgModule:lt,ngComponentOutletNgModuleFactory:yt}=this;if(pe.clear(),this._componentRef=void 0,this.ngComponentOutlet){const on=this.ngComponentOutletInjector||pe.parentInjector;(Me.ngComponentOutletNgModule||Me.ngComponentOutletNgModuleFactory)&&(this._moduleRef&&this._moduleRef.destroy(),this._moduleRef=lt?(0,e.Lck)(lt,Nr(on)):yt?yt.create(Nr(on)):void 0),this._componentRef=pe.createComponent(this.ngComponentOutlet,{index:pe.length,injector:on,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}static#e=this.\u0275fac=function(pe){return new(pe||Ue)(e.Y36(e.s_b))};static#t=this.\u0275dir=e.lG2({type:Ue,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[e.TTD]})}return Ue})();function Nr(Ue){return Ue.get(e.h0i).injector}class as{constructor(Ye,Me,pe,lt){this.$implicit=Ye,this.ngForOf=Me,this.index=pe,this.count=lt}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 ji=(()=>{class Ue{set ngForOf(Me){this._ngForOf=Me,this._ngForOfDirty=!0}set ngForTrackBy(Me){this._trackByFn=Me}get ngForTrackBy(){return this._trackByFn}constructor(Me,pe,lt){this._viewContainer=Me,this._template=pe,this._differs=lt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(Me){Me&&(this._template=Me)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Me=this._ngForOf;!this._differ&&Me&&(this._differ=this._differs.find(Me).create(this.ngForTrackBy))}if(this._differ){const Me=this._differ.diff(this._ngForOf);Me&&this._applyChanges(Me)}}_applyChanges(Me){const pe=this._viewContainer;Me.forEachOperation((lt,yt,on)=>{if(null==lt.previousIndex)pe.createEmbeddedView(this._template,new as(lt.item,this._ngForOf,-1,-1),null===on?void 0:on);else if(null==on)pe.remove(null===yt?void 0:yt);else if(null!==yt){const zi=pe.get(yt);pe.move(zi,on),Fo(zi,lt)}});for(let lt=0,yt=pe.length;lt<yt;lt++){const zi=pe.get(lt).context;zi.index=lt,zi.count=yt,zi.ngForOf=this._ngForOf}Me.forEachIdentityChange(lt=>{Fo(pe.get(lt.currentIndex),lt)})}static ngTemplateContextGuard(Me,pe){return!0}static#e=this.\u0275fac=function(pe){return new(pe||Ue)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))};static#t=this.\u0275dir=e.lG2({type:Ue,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return Ue})();function Fo(Ue,Ye){Ue.context.$implicit=Ye.item}let ai=(()=>{class Ue{constructor(Me,pe){this._viewContainer=Me,this._context=new Gn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=pe}set ngIf(Me){this._context.$implicit=this._context.ngIf=Me,this._updateView()}set ngIfThen(Me){Io("ngIfThen",Me),this._thenTemplateRef=Me,this._thenViewRef=null,this._updateView()}set ngIfElse(Me){Io("ngIfElse",Me),this._elseTemplateRef=Me,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(Me,pe){return!0}static#e=this.\u0275fac=function(pe){return new(pe||Ue)(e.Y36(e.s_b),e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:Ue,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return Ue})();class Gn{constructor(){this.$implicit=null,this.ngIf=null}}function Io(Ue,Ye){if(Ye&&!Ye.createEmbeddedView)throw new Error(`${Ue} must be a TemplateRef, but received '${(0,e.AaK)(Ye)}'.`)}class wr{constructor(Ye,Me){this._viewContainerRef=Ye,this._templateRef=Me,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Ye){Ye&&!this._created?this.create():!Ye&&this._created&&this.destroy()}}let bs=(()=>{class Ue{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Me){this._ngSwitch=Me,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Me){this._defaultViews.push(Me)}_matchCase(Me){const pe=Me==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||pe,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),pe}_updateDefaultCases(Me){if(this._defaultViews.length>0&&Me!==this._defaultUsed){this._defaultUsed=Me;for(const pe of this._defaultViews)pe.enforceState(Me)}}static#e=this.\u0275fac=function(pe){return new(pe||Ue)};static#t=this.\u0275dir=e.lG2({type:Ue,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return Ue})(),ba=(()=>{class Ue{constructor(Me,pe,lt){this.ngSwitch=lt,lt._addCase(),this._view=new wr(Me,pe)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(pe){return new(pe||Ue)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(bs,9))};static#t=this.\u0275dir=e.lG2({type:Ue,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return Ue})(),ms=(()=>{class Ue{constructor(Me,pe,lt){lt._addDefault(new wr(Me,pe))}static#e=this.\u0275fac=function(pe){return new(pe||Ue)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(bs,9))};static#t=this.\u0275dir=e.lG2({type:Ue,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return Ue})(),tr=(()=>{class Ue{constructor(Me,pe,lt){this._ngEl=Me,this._differs=pe,this._renderer=lt,this._ngStyle=null,this._differ=null}set ngStyle(Me){this._ngStyle=Me,!this._differ&&Me&&(this._differ=this._differs.find(Me).create())}ngDoCheck(){if(this._differ){const Me=this._differ.diff(this._ngStyle);Me&&this._applyChanges(Me)}}_setStyle(Me,pe){const[lt,yt]=Me.split("."),on=-1===lt.indexOf("-")?void 0:e.JOm.DashCase;null!=pe?this._renderer.setStyle(this._ngEl.nativeElement,lt,yt?`${pe}${yt}`:pe,on):this._renderer.removeStyle(this._ngEl.nativeElement,lt,on)}_applyChanges(Me){Me.forEachRemovedItem(pe=>this._setStyle(pe.key,null)),Me.forEachAddedItem(pe=>this._setStyle(pe.key,pe.currentValue)),Me.forEachChangedItem(pe=>this._setStyle(pe.key,pe.currentValue))}static#e=this.\u0275fac=function(pe){return new(pe||Ue)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))};static#t=this.\u0275dir=e.lG2({type:Ue,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return Ue})(),Mr=(()=>{class Ue{constructor(Me){this._viewContainerRef=Me,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Me){if(Me.ngTemplateOutlet||Me.ngTemplateOutletInjector){const pe=this._viewContainerRef;if(this._viewRef&&pe.remove(pe.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:lt,ngTemplateOutletContext:yt,ngTemplateOutletInjector:on}=this;this._viewRef=pe.createEmbeddedView(lt,yt,on?{injector:on}:void 0)}else this._viewRef=null}else this._viewRef&&Me.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(pe){return new(pe||Ue)(e.Y36(e.s_b))};static#t=this.\u0275dir=e.lG2({type:Ue,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[e.TTD]})}return Ue})();function Ao(Ue,Ye){return new e.vHH(2100,!1)}class ao{createSubscription(Ye,Me){return(0,e.rg0)(()=>Ye.subscribe({next:Me,error:pe=>{throw pe}}))}dispose(Ye){(0,e.rg0)(()=>Ye.unsubscribe())}}class Go{createSubscription(Ye,Me){return Ye.then(Me,pe=>{throw pe})}dispose(Ye){}}const pr=new Go,Rr=new ao;let br=(()=>{class Ue{constructor(Me){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Me}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Me){return this._obj?Me!==this._obj?(this._dispose(),this.transform(Me)):this._latestValue:(Me&&this._subscribe(Me),this._latestValue)}_subscribe(Me){this._obj=Me,this._strategy=this._selectStrategy(Me),this._subscription=this._strategy.createSubscription(Me,pe=>this._updateLatestValue(Me,pe))}_selectStrategy(Me){if((0,e.QGY)(Me))return pr;if((0,e.F4k)(Me))return Rr;throw Ao()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Me,pe){Me===this._obj&&(this._latestValue=pe,this._ref.markForCheck())}static#e=this.\u0275fac=function(pe){return new(pe||Ue)(e.Y36(e.sBO,16))};static#t=this.\u0275pipe=e.Yjl({name:"async",type:Ue,pure:!1,standalone:!0})}return Ue})(),Ti=(()=>{class Ue{transform(Me){if(null==Me)return null;if("string"!=typeof Me)throw Ao();return Me.toLowerCase()}static#e=this.\u0275fac=function(pe){return new(pe||Ue)};static#t=this.\u0275pipe=e.Yjl({name:"lowercase",type:Ue,pure:!0,standalone:!0})}return Ue})();const mr=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let ri=(()=>{class Ue{transform(Me){if(null==Me)return null;if("string"!=typeof Me)throw Ao();return Me.replace(mr,pe=>pe[0].toUpperCase()+pe.slice(1).toLowerCase())}static#e=this.\u0275fac=function(pe){return new(pe||Ue)};static#t=this.\u0275pipe=e.Yjl({name:"titlecase",type:Ue,pure:!0,standalone:!0})}return Ue})();const yo=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),lr=new e.OlP("DATE_PIPE_DEFAULT_OPTIONS");let Yr=(()=>{class Ue{constructor(Me,pe,lt){this.locale=Me,this.defaultTimezone=pe,this.defaultOptions=lt}transform(Me,pe,lt,yt){if(null==Me||""===Me||Me!=Me)return null;try{return sn(Me,pe??this.defaultOptions?.dateFormat??"mediumDate",yt||this.locale,lt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(on){throw Ao()}}static#e=this.\u0275fac=function(pe){return new(pe||Ue)(e.Y36(e.soG,16),e.Y36(yo,24),e.Y36(lr,24))};static#t=this.\u0275pipe=e.Yjl({name:"date",type:Ue,pure:!0,standalone:!0})}return Ue})(),_t=(()=>{class Ue{transform(Me){return JSON.stringify(Me,null,2)}static#e=this.\u0275fac=function(pe){return new(pe||Ue)};static#t=this.\u0275pipe=e.Yjl({name:"json",type:Ue,pure:!1,standalone:!0})}return Ue})(),qo=(()=>{class Ue{constructor(Me){this.differs=Me,this.keyValues=[],this.compareFn=Cr}transform(Me,pe=Cr){if(!Me||!(Me instanceof Map)&&"object"!=typeof Me)return null;this.differ||(this.differ=this.differs.find(Me).create());const lt=this.differ.diff(Me),yt=pe!==this.compareFn;return lt&&(this.keyValues=[],lt.forEachItem(on=>{this.keyValues.push(function Zn(Ue,Ye){return{key:Ue,value:Ye}}(on.key,on.currentValue))})),(lt||yt)&&(this.keyValues.sort(pe),this.compareFn=pe),this.keyValues}static#e=this.\u0275fac=function(pe){return new(pe||Ue)(e.Y36(e.aQg,16))};static#t=this.\u0275pipe=e.Yjl({name:"keyvalue",type:Ue,pure:!1,standalone:!0})}return Ue})();function Cr(Ue,Ye){const Me=Ue.key,pe=Ye.key;if(Me===pe)return 0;if(void 0===Me)return 1;if(void 0===pe)return-1;if(null===Me)return 1;if(null===pe)return-1;if("string"==typeof Me&&"string"==typeof pe)return Me<pe?-1:1;if("number"==typeof Me&&"number"==typeof pe)return Me-pe;if("boolean"==typeof Me&&"boolean"==typeof pe)return Me<pe?-1:1;const lt=String(Me),yt=String(pe);return lt==yt?0:lt<yt?-1:1}let kr=(()=>{class Ue{constructor(Me){this._locale=Me}transform(Me,pe,lt){if(!Ts(Me))return null;lt=lt||this._locale;try{return function zn(Ue,Ye,Me){return _i(Ue,Ei(q(Ye,L.Decimal),z(Ye,U.MinusSign)),Ye,U.Group,U.Decimal,Me)}(Ss(Me),lt,pe)}catch(yt){throw Ao()}}static#e=this.\u0275fac=function(pe){return new(pe||Ue)(e.Y36(e.soG,16))};static#t=this.\u0275pipe=e.Yjl({name:"number",type:Ue,pure:!0,standalone:!0})}return Ue})(),Us=(()=>{class Ue{constructor(Me,pe="USD"){this._locale=Me,this._defaultCurrencyCode=pe}transform(Me,pe=this._defaultCurrencyCode,lt="symbol",yt,on){if(!Ts(Me))return null;on=on||this._locale,"boolean"==typeof lt&&(lt=lt?"symbol":"code");let zi=pe||this._defaultCurrencyCode;"code"!==lt&&(zi="symbol"===lt||"symbol-narrow"===lt?function Gt(Ue,Ye,Me="en"){const pe=function ge(Ue){return(0,e.cg1)(Ue)[e.wAp.Currencies]}(Me)[Ue]||I[Ue]||[],lt=pe[1];return"narrow"===Ye&&"string"==typeof lt?lt:pe[0]||Ue}(zi,"symbol"===lt?"wide":"narrow",on):lt);try{return function wi(Ue,Ye,Me,pe,lt){const on=Ei(q(Ye,L.Currency),z(Ye,U.MinusSign));return on.minFrac=function An(Ue){let Ye;const Me=I[Ue];return Me&&(Ye=Me[2]),"number"==typeof Ye?Ye:2}(pe),on.maxFrac=on.minFrac,_i(Ue,on,Ye,U.CurrencyGroup,U.CurrencyDecimal,lt).replace("\xa4",Me).replace("\xa4","").trim()}(Ss(Me),on,zi,pe,yt)}catch(Kn){throw Ao()}}static#e=this.\u0275fac=function(pe){return new(pe||Ue)(e.Y36(e.soG,16),e.Y36(e.EJc,16))};static#t=this.\u0275pipe=e.Yjl({name:"currency",type:Ue,pure:!0,standalone:!0})}return Ue})();function Ts(Ue){return!(null==Ue||""===Ue||Ue!=Ue)}function Ss(Ue){if("string"==typeof Ue&&!isNaN(Number(Ue)-parseFloat(Ue)))return Number(Ue);if("number"!=typeof Ue)throw new Error(`${Ue} is not a number`);return Ue}let Ua=(()=>{class Ue{transform(Me,pe,lt){if(null==Me)return null;if(!this.supports(Me))throw Ao();return Me.slice(pe,lt)}supports(Me){return"string"==typeof Me||Array.isArray(Me)}static#e=this.\u0275fac=function(pe){return new(pe||Ue)};static#t=this.\u0275pipe=e.Yjl({name:"slice",type:Ue,pure:!1,standalone:!0})}return Ue})(),Ar=(()=>{class Ue{static#e=this.\u0275fac=function(pe){return new(pe||Ue)};static#t=this.\u0275mod=e.oAB({type:Ue});static#n=this.\u0275inj=e.cJS({})}return Ue})();const No="browser",qr="server";function Zr(Ue){return Ue===No}function ls(Ue){return Ue===qr}let ll=(()=>{class Ue{static#e=this.\u0275prov=(0,e.Yz7)({token:Ue,providedIn:"root",factory:()=>new Za((0,e.LFG)(u),window)})}return Ue})();class Za{constructor(Ye,Me){this.document=Ye,this.window=Me,this.offset=()=>[0,0]}setOffset(Ye){this.offset=Array.isArray(Ye)?()=>Ye:Ye}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Ye){this.supportsScrolling()&&this.window.scrollTo(Ye[0],Ye[1])}scrollToAnchor(Ye){if(!this.supportsScrolling())return;const Me=function Jt(Ue,Ye){const Me=Ue.getElementById(Ye)||Ue.getElementsByName(Ye)[0];if(Me)return Me;if("function"==typeof Ue.createTreeWalker&&Ue.body&&"function"==typeof Ue.body.attachShadow){const pe=Ue.createTreeWalker(Ue.body,NodeFilter.SHOW_ELEMENT);let lt=pe.currentNode;for(;lt;){const yt=lt.shadowRoot;if(yt){const on=yt.getElementById(Ye)||yt.querySelector(`[name="${Ye}"]`);if(on)return on}lt=pe.nextNode()}}return null}(this.document,Ye);Me&&(this.scrollToElement(Me),Me.focus())}setHistoryScrollRestoration(Ye){if(this.supportScrollRestoration()){const Me=this.window.history;Me&&Me.scrollRestoration&&(Me.scrollRestoration=Ye)}}scrollToElement(Ye){const Me=Ye.getBoundingClientRect(),pe=Me.left+this.window.pageXOffset,lt=Me.top+this.window.pageYOffset,yt=this.offset();this.window.scrollTo(pe-yt[0],lt-yt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Ye=sl(this.window.history)||sl(Object.getPrototypeOf(this.window.history));return!(!Ye||!Ye.writable&&!Ye.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function sl(Ue){return Object.getOwnPropertyDescriptor(Ue,"scrollRestoration")}class ht{}},69862:(he,y,i)=>{"use strict";i.d(y,{Ed:()=>ln,JF:()=>vt,LE:()=>I,TP:()=>De,UA:()=>re,WM:()=>f,Zn:()=>Q,aW:()=>K,dt:()=>X,eN:()=>te,h_:()=>oi,yn:()=>tt});var e=i(15861),n=i(65879),o=i(22096),a=i(65592),l=i(72664),u=i(76328),d=i(32181),s=i(37398),A=i(64716),_=i(94664),C=i(96814);
/**
         * @license Angular v16.1.6
         * (c) 2010-2022 Google LLC. https://angular.io/
         * License: MIT
         */class R{}class x{}class f{constructor(hi){this.normalizedNames=new Map,this.lazyUpdate=null,hi?"string"==typeof hi?this.lazyInit=()=>{this.headers=new Map,hi.split("\n").forEach(zn=>{const Ei=zn.indexOf(":");if(Ei>0){const li=zn.slice(0,Ei),Xi=li.toLowerCase(),ki=zn.slice(Ei+1).trim();this.maybeSetNormalizedName(li,Xi),this.headers.has(Xi)?this.headers.get(Xi).push(ki):this.headers.set(Xi,[ki])}})}:typeof Headers<"u"&&hi instanceof Headers?(this.headers=new Map,hi.forEach((zn,Ei)=>{this.setHeaderEntries(Ei,zn)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(hi).forEach(([zn,Ei])=>{this.setHeaderEntries(zn,Ei)})}:this.headers=new Map}has(hi){return this.init(),this.headers.has(hi.toLowerCase())}get(hi){this.init();const zn=this.headers.get(hi.toLowerCase());return zn&&zn.length>0?zn[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(hi){return this.init(),this.headers.get(hi.toLowerCase())||null}append(hi,zn){return this.clone({name:hi,value:zn,op:"a"})}set(hi,zn){return this.clone({name:hi,value:zn,op:"s"})}delete(hi,zn){return this.clone({name:hi,value:zn,op:"d"})}maybeSetNormalizedName(hi,zn){this.normalizedNames.has(zn)||this.normalizedNames.set(zn,hi)}init(){this.lazyInit&&(this.lazyInit instanceof f?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(hi=>this.applyUpdate(hi)),this.lazyUpdate=null))}copyFrom(hi){hi.init(),Array.from(hi.headers.keys()).forEach(zn=>{this.headers.set(zn,hi.headers.get(zn)),this.normalizedNames.set(zn,hi.normalizedNames.get(zn))})}clone(hi){const zn=new f;return zn.lazyInit=this.lazyInit&&this.lazyInit instanceof f?this.lazyInit:this,zn.lazyUpdate=(this.lazyUpdate||[]).concat([hi]),zn}applyUpdate(hi){const zn=hi.name.toLowerCase();switch(hi.op){case"a":case"s":let Ei=hi.value;if("string"==typeof Ei&&(Ei=[Ei]),0===Ei.length)return;this.maybeSetNormalizedName(hi.name,zn);const li=("a"===hi.op?this.headers.get(zn):void 0)||[];li.push(...Ei),this.headers.set(zn,li);break;case"d":const Xi=hi.value;if(Xi){let ki=this.headers.get(zn);if(!ki)return;ki=ki.filter(bo=>-1===Xi.indexOf(bo)),0===ki.length?(this.headers.delete(zn),this.normalizedNames.delete(zn)):this.headers.set(zn,ki)}else this.headers.delete(zn),this.normalizedNames.delete(zn)}}setHeaderEntries(hi,zn){const Ei=(Array.isArray(zn)?zn:[zn]).map(Xi=>Xi.toString()),li=hi.toLowerCase();this.headers.set(li,Ei),this.maybeSetNormalizedName(hi,li)}forEach(hi){this.init(),Array.from(this.normalizedNames.keys()).forEach(zn=>hi(this.normalizedNames.get(zn),this.headers.get(zn)))}}class w{encodeKey(hi){return E(hi)}encodeValue(hi){return E(hi)}decodeKey(hi){return decodeURIComponent(hi)}decodeValue(hi){return decodeURIComponent(hi)}}const M=/%(\d[a-f0-9])/gi,p={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function E(wi){return encodeURIComponent(wi).replace(M,(hi,zn)=>p[zn]??hi)}function b(wi){return`${wi}`}class I{constructor(hi={}){if(this.updates=null,this.cloneFrom=null,this.encoder=hi.encoder||new w,hi.fromString){if(hi.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function g(wi,hi){const zn=new Map;return wi.length>0&&wi.replace(/^\?/,"").split("&").forEach(li=>{const Xi=li.indexOf("="),[ki,bo]=-1==Xi?[hi.decodeKey(li),""]:[hi.decodeKey(li.slice(0,Xi)),hi.decodeValue(li.slice(Xi+1))],jo=zn.get(ki)||[];jo.push(bo),zn.set(ki,jo)}),zn}(hi.fromString,this.encoder)}else hi.fromObject?(this.map=new Map,Object.keys(hi.fromObject).forEach(zn=>{const Ei=hi.fromObject[zn],li=Array.isArray(Ei)?Ei.map(b):[b(Ei)];this.map.set(zn,li)})):this.map=null}has(hi){return this.init(),this.map.has(hi)}get(hi){this.init();const zn=this.map.get(hi);return zn?zn[0]:null}getAll(hi){return this.init(),this.map.get(hi)||null}keys(){return this.init(),Array.from(this.map.keys())}append(hi,zn){return this.clone({param:hi,value:zn,op:"a"})}appendAll(hi){const zn=[];return Object.keys(hi).forEach(Ei=>{const li=hi[Ei];Array.isArray(li)?li.forEach(Xi=>{zn.push({param:Ei,value:Xi,op:"a"})}):zn.push({param:Ei,value:li,op:"a"})}),this.clone(zn)}set(hi,zn){return this.clone({param:hi,value:zn,op:"s"})}delete(hi,zn){return this.clone({param:hi,value:zn,op:"d"})}toString(){return this.init(),this.keys().map(hi=>{const zn=this.encoder.encodeKey(hi);return this.map.get(hi).map(Ei=>zn+"="+this.encoder.encodeValue(Ei)).join("&")}).filter(hi=>""!==hi).join("&")}clone(hi){const zn=new I({encoder:this.encoder});return zn.cloneFrom=this.cloneFrom||this,zn.updates=(this.updates||[]).concat(hi),zn}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(hi=>this.map.set(hi,this.cloneFrom.map.get(hi))),this.updates.forEach(hi=>{switch(hi.op){case"a":case"s":const zn=("a"===hi.op?this.map.get(hi.param):void 0)||[];zn.push(b(hi.value)),this.map.set(hi.param,zn);break;case"d":if(void 0===hi.value){this.map.delete(hi.param);break}{let Ei=this.map.get(hi.param)||[];const li=Ei.indexOf(b(hi.value));-1!==li&&Ei.splice(li,1),Ei.length>0?this.map.set(hi.param,Ei):this.map.delete(hi.param)}}}),this.cloneFrom=this.updates=null)}}class D{constructor(){this.map=new Map}set(hi,zn){return this.map.set(hi,zn),this}get(hi){return this.map.has(hi)||this.map.set(hi,hi.defaultValue()),this.map.get(hi)}delete(hi){return this.map.delete(hi),this}has(hi){return this.map.has(hi)}keys(){return this.map.keys()}}function P(wi){return typeof ArrayBuffer<"u"&&wi instanceof ArrayBuffer}function O(wi){return typeof Blob<"u"&&wi instanceof Blob}function U(wi){return typeof FormData<"u"&&wi instanceof FormData}class K{constructor(hi,zn,Ei,li){let Xi;if(this.url=zn,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=hi.toUpperCase(),function F(wi){switch(wi){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||li?(this.body=void 0!==Ei?Ei:null,Xi=li):Xi=Ei,Xi&&(this.reportProgress=!!Xi.reportProgress,this.withCredentials=!!Xi.withCredentials,Xi.responseType&&(this.responseType=Xi.responseType),Xi.headers&&(this.headers=Xi.headers),Xi.context&&(this.context=Xi.context),Xi.params&&(this.params=Xi.params)),this.headers||(this.headers=new f),this.context||(this.context=new D),this.params){const ki=this.params.toString();if(0===ki.length)this.urlWithParams=zn;else{const bo=zn.indexOf("?");this.urlWithParams=zn+(-1===bo?"?":bo<zn.length-1?"&":"")+ki}}else this.params=new I,this.urlWithParams=zn}serializeBody(){return null===this.body?null:P(this.body)||O(this.body)||U(this.body)||function V(wi){return typeof URLSearchParams<"u"&&wi instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof I?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||U(this.body)?null:O(this.body)?this.body.type||null:P(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof I?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(hi={}){const zn=hi.method||this.method,Ei=hi.url||this.url,li=hi.responseType||this.responseType,Xi=void 0!==hi.body?hi.body:this.body,ki=void 0!==hi.withCredentials?hi.withCredentials:this.withCredentials,bo=void 0!==hi.reportProgress?hi.reportProgress:this.reportProgress;let jo=hi.headers||this.headers,wn=hi.params||this.params;const Zi=hi.context??this.context;return void 0!==hi.setHeaders&&(jo=Object.keys(hi.setHeaders).reduce((oo,Bi)=>oo.set(Bi,hi.setHeaders[Bi]),jo)),hi.setParams&&(wn=Object.keys(hi.setParams).reduce((oo,Bi)=>oo.set(Bi,hi.setParams[Bi]),wn)),new K(zn,Ei,Xi,{params:wn,headers:jo,context:Zi,reportProgress:bo,responseType:li,withCredentials:ki})}}var X=function(wi){return wi[wi.Sent=0]="Sent",wi[wi.UploadProgress=1]="UploadProgress",wi[wi.ResponseHeader=2]="ResponseHeader",wi[wi.DownloadProgress=3]="DownloadProgress",wi[wi.Response=4]="Response",wi[wi.User=5]="User",wi}(X||{});class me{constructor(hi,zn=200,Ei="OK"){this.headers=hi.headers||new f,this.status=void 0!==hi.status?hi.status:zn,this.statusText=hi.statusText||Ei,this.url=hi.url||null,this.ok=this.status>=200&&this.status<300}}class J extends me{constructor(hi={}){super(hi),this.type=X.ResponseHeader}clone(hi={}){return new J({headers:hi.headers||this.headers,status:void 0!==hi.status?hi.status:this.status,statusText:hi.statusText||this.statusText,url:hi.url||this.url||void 0})}}class Q extends me{constructor(hi={}){super(hi),this.type=X.Response,this.body=void 0!==hi.body?hi.body:null}clone(hi={}){return new Q({body:void 0!==hi.body?hi.body:this.body,headers:hi.headers||this.headers,status:void 0!==hi.status?hi.status:this.status,statusText:hi.statusText||this.statusText,url:hi.url||this.url||void 0})}}class re extends me{constructor(hi){super(hi,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${hi.url||"(unknown url)"}`:`Http failure response for ${hi.url||"(unknown url)"}: ${hi.status} ${hi.statusText}`,this.error=hi.error||null}}function de(wi,hi){return{body:hi,headers:wi.headers,context:wi.context,observe:wi.observe,params:wi.params,reportProgress:wi.reportProgress,responseType:wi.responseType,withCredentials:wi.withCredentials}}let te=(()=>{class wi{constructor(zn){this.handler=zn}request(zn,Ei,li={}){let Xi;if(zn instanceof K)Xi=zn;else{let jo,wn;jo=li.headers instanceof f?li.headers:new f(li.headers),li.params&&(wn=li.params instanceof I?li.params:new I({fromObject:li.params})),Xi=new K(zn,Ei,void 0!==li.body?li.body:null,{headers:jo,context:li.context,params:wn,reportProgress:li.reportProgress,responseType:li.responseType||"json",withCredentials:li.withCredentials})}const ki=(0,o.of)(Xi).pipe((0,u.b)(jo=>this.handler.handle(jo)));if(zn instanceof K||"events"===li.observe)return ki;const bo=ki.pipe((0,d.h)(jo=>jo instanceof Q));switch(li.observe||"body"){case"body":switch(Xi.responseType){case"arraybuffer":return bo.pipe((0,s.U)(jo=>{if(null!==jo.body&&!(jo.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return jo.body}));case"blob":return bo.pipe((0,s.U)(jo=>{if(null!==jo.body&&!(jo.body instanceof Blob))throw new Error("Response is not a Blob.");return jo.body}));case"text":return bo.pipe((0,s.U)(jo=>{if(null!==jo.body&&"string"!=typeof jo.body)throw new Error("Response is not a string.");return jo.body}));default:return bo.pipe((0,s.U)(jo=>jo.body))}case"response":return bo;default:throw new Error(`Unreachable: unhandled observe type ${li.observe}}`)}}delete(zn,Ei={}){return this.request("DELETE",zn,Ei)}get(zn,Ei={}){return this.request("GET",zn,Ei)}head(zn,Ei={}){return this.request("HEAD",zn,Ei)}jsonp(zn,Ei){return this.request("JSONP",zn,{params:(new I).append(Ei,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(zn,Ei={}){return this.request("OPTIONS",zn,Ei)}patch(zn,Ei,li={}){return this.request("PATCH",zn,de(li,Ei))}post(zn,Ei,li={}){return this.request("POST",zn,de(li,Ei))}put(zn,Ei,li={}){return this.request("PUT",zn,de(li,Ei))}static#e=this.\u0275fac=function(Ei){return new(Ei||wi)(n.LFG(R))};static#t=this.\u0275prov=n.Yz7({token:wi,factory:wi.\u0275fac})}return wi})();const j=/^\)\]\}',?\n/;function z(wi){if(wi.url)return wi.url;const hi="X-Request-URL".toLocaleLowerCase();return wi.headers.get(hi)}let q=(()=>{class wi{constructor(){this.fetchImpl=(0,n.f3M)(se,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=(0,n.f3M)(n.R0b)}handle(zn){return new a.y(Ei=>{const li=new AbortController;return this.doRequest(zn,li.signal,Ei).then(ne,Xi=>Ei.error(new re({error:Xi}))),()=>li.abort()})}doRequest(zn,Ei,li){var Xi=this;return(0,e.Z)(function*(){const ki=Xi.createRequestInit(zn);let bo;try{const Lo=Xi.fetchImpl(zn.urlWithParams,{signal:Ei,...ki});(function _e(wi){wi.then(ne,ne)})(Lo),li.next({type:X.Sent}),bo=yield Lo}catch(Lo){return void li.error(new re({error:Lo,status:Lo.status??0,statusText:Lo.statusText,url:zn.urlWithParams,headers:Lo.headers}))}const jo=new f(bo.headers),wn=bo.statusText,Zi=z(bo)??zn.urlWithParams;let oo=bo.status,Bi=null;if(zn.reportProgress&&li.next(new J({headers:jo,status:oo,statusText:wn,url:Zi})),bo.body){const Lo=bo.headers.get("content-length"),or=[],xr=bo.body.getReader();let as,ji,Nr=0;const Fo=Zone.current;yield Xi.ngZone.runOutsideAngular((0,e.Z)(function*(){for(;;){const{done:ai,value:Gn}=yield xr.read();if(ai)break;or.push(Gn),Nr+=Gn.length,zn.reportProgress&&(ji="text"===zn.responseType?(ji??"")+(as??=new TextDecoder).decode(Gn,{stream:!0}):void 0,Fo.run(()=>li.next({type:X.DownloadProgress,total:Lo?+Lo:void 0,loaded:Nr,partialText:ji})))}}));const rt=Xi.concatChunks(or,Nr);try{Bi=Xi.parseBody(zn,rt)}catch(ai){return void li.error(new re({error:ai,headers:new f(bo.headers),status:bo.status,statusText:bo.statusText,url:z(bo)??zn.urlWithParams}))}}0===oo&&(oo=Bi?200:0),oo>=200&&oo<300?(li.next(new Q({body:Bi,headers:jo,status:oo,statusText:wn,url:Zi})),li.complete()):li.error(new re({error:Bi,headers:jo,status:oo,statusText:wn,url:Zi}))})()}parseBody(zn,Ei){switch(zn.responseType){case"json":const li=(new TextDecoder).decode(Ei).replace(j,"");return""===li?null:JSON.parse(li);case"text":return(new TextDecoder).decode(Ei);case"blob":return new Blob([Ei]);case"arraybuffer":return Ei.buffer}}createRequestInit(zn){const Ei={},li=zn.withCredentials?"include":void 0;if(zn.headers.forEach((Xi,ki)=>Ei[Xi]=ki.join(",")),Ei.Accept??="application/json, text/plain, */*",!Ei["Content-Type"]){const Xi=zn.detectContentTypeHeader();null!==Xi&&(Ei["Content-Type"]=Xi)}return{body:zn.serializeBody(),method:zn.method,headers:Ei,credentials:li}}concatChunks(zn,Ei){const li=new Uint8Array(Ei);let Xi=0;for(const ki of zn)li.set(ki,Xi),Xi+=ki.length;return li}static#e=this.\u0275fac=function(Ei){return new(Ei||wi)};static#t=this.\u0275prov=n.Yz7({token:wi,factory:wi.\u0275fac})}return wi})();class se{}function ne(){}function ge(wi,hi){return hi(wi)}function Ce(wi,hi){return(zn,Ei)=>hi.intercept(zn,{handle:li=>wi(li,Ei)})}const De=new n.OlP(""),fe=new n.OlP(""),xe=new n.OlP("");function Oe(){let wi=null;return(hi,zn)=>{null===wi&&(wi=((0,n.f3M)(De,{optional:!0})??[]).reduceRight(Ce,ge));const Ei=(0,n.f3M)(n.HDt),li=Ei.add();return wi(hi,zn).pipe((0,A.x)(()=>Ei.remove(li)))}}let Ut,Le=(()=>{class wi extends R{constructor(zn,Ei){super(),this.backend=zn,this.injector=Ei,this.chain=null,this.pendingTasks=(0,n.f3M)(n.HDt)}handle(zn){if(null===this.chain){const li=Array.from(new Set([...this.injector.get(fe),...this.injector.get(xe,[])]));this.chain=li.reduceRight((Xi,ki)=>function Te(wi,hi,zn){return(Ei,li)=>zn.runInContext(()=>hi(Ei,Xi=>wi(Xi,li)))}(Xi,ki,this.injector),ge)}const Ei=this.pendingTasks.add();return this.chain(zn,li=>this.backend.handle(li)).pipe((0,A.x)(()=>this.pendingTasks.remove(Ei)))}static#e=this.\u0275fac=function(Ei){return new(Ei||wi)(n.LFG(x),n.LFG(n.lqb))};static#t=this.\u0275prov=n.Yz7({token:wi,factory:wi.\u0275fac})}return wi})(),Gt=0;class ut{}function Wt(){return"object"==typeof window?window:{}}let dn=(()=>{class wi{constructor(zn,Ei){this.callbackMap=zn,this.document=Ei,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+Gt++}handle(zn){if("JSONP"!==zn.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==zn.responseType)throw new Error("JSONP requests must use Json response type.");if(zn.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new a.y(Ei=>{const li=this.nextCallback(),Xi=zn.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${li}$1`),ki=this.document.createElement("script");ki.src=Xi;let bo=null,jo=!1;this.callbackMap[li]=Bi=>{delete this.callbackMap[li],bo=Bi,jo=!0};const wn=()=>{ki.parentNode&&ki.parentNode.removeChild(ki),delete this.callbackMap[li]};return ki.addEventListener("load",Bi=>{this.resolvedPromise.then(()=>{wn(),jo?(Ei.next(new Q({body:bo,status:200,statusText:"OK",url:Xi})),Ei.complete()):Ei.error(new re({url:Xi,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),ki.addEventListener("error",Bi=>{wn(),Ei.error(new re({error:Bi,status:0,statusText:"JSONP Error",url:Xi}))}),this.document.body.appendChild(ki),Ei.next({type:X.Sent}),()=>{jo||this.removeListeners(ki),wn()}})}removeListeners(zn){Ut||(Ut=this.document.implementation.createHTMLDocument()),Ut.adoptNode(zn)}static#e=this.\u0275fac=function(Ei){return new(Ei||wi)(n.LFG(ut),n.LFG(C.K0))};static#t=this.\u0275prov=n.Yz7({token:wi,factory:wi.\u0275fac})}return wi})();function sn(wi,hi){return"JSONP"===wi.method?(0,n.f3M)(dn).handle(wi):hi(wi)}const yi=/^\)\]\}',?\n/;let Mi=(()=>{class wi{constructor(zn){this.xhrFactory=zn}handle(zn){if("JSONP"===zn.method)throw new n.vHH(-2800,!1);const Ei=this.xhrFactory;return(Ei.\u0275loadImpl?(0,l.D)(Ei.\u0275loadImpl()):(0,o.of)(null)).pipe((0,_.w)(()=>new a.y(Xi=>{const ki=Ei.build();if(ki.open(zn.method,zn.urlWithParams),zn.withCredentials&&(ki.withCredentials=!0),zn.headers.forEach((or,xr)=>ki.setRequestHeader(or,xr.join(","))),zn.headers.has("Accept")||ki.setRequestHeader("Accept","application/json, text/plain, */*"),!zn.headers.has("Content-Type")){const or=zn.detectContentTypeHeader();null!==or&&ki.setRequestHeader("Content-Type",or)}if(zn.responseType){const or=zn.responseType.toLowerCase();ki.responseType="json"!==or?or:"text"}const bo=zn.serializeBody();let jo=null;const wn=()=>{if(null!==jo)return jo;const or=ki.statusText||"OK",xr=new f(ki.getAllResponseHeaders()),Nr=function nn(wi){return"responseURL"in wi&&wi.responseURL?wi.responseURL:/^X-Request-URL:/m.test(wi.getAllResponseHeaders())?wi.getResponseHeader("X-Request-URL"):null}(ki)||zn.url;return jo=new J({headers:xr,status:ki.status,statusText:or,url:Nr}),jo},Zi=()=>{let{headers:or,status:xr,statusText:Nr,url:as}=wn(),ji=null;204!==xr&&(ji=typeof ki.response>"u"?ki.responseText:ki.response),0===xr&&(xr=ji?200:0);let Fo=xr>=200&&xr<300;if("json"===zn.responseType&&"string"==typeof ji){const rt=ji;ji=ji.replace(yi,"");try{ji=""!==ji?JSON.parse(ji):null}catch(ai){ji=rt,Fo&&(Fo=!1,ji={error:ai,text:ji})}}Fo?(Xi.next(new Q({body:ji,headers:or,status:xr,statusText:Nr,url:as||void 0})),Xi.complete()):Xi.error(new re({error:ji,headers:or,status:xr,statusText:Nr,url:as||void 0}))},oo=or=>{const{url:xr}=wn(),Nr=new re({error:or,status:ki.status||0,statusText:ki.statusText||"Unknown Error",url:xr||void 0});Xi.error(Nr)};let Bi=!1;const Xo=or=>{Bi||(Xi.next(wn()),Bi=!0);let xr={type:X.DownloadProgress,loaded:or.loaded};or.lengthComputable&&(xr.total=or.total),"text"===zn.responseType&&ki.responseText&&(xr.partialText=ki.responseText),Xi.next(xr)},Lo=or=>{let xr={type:X.UploadProgress,loaded:or.loaded};or.lengthComputable&&(xr.total=or.total),Xi.next(xr)};return ki.addEventListener("load",Zi),ki.addEventListener("error",oo),ki.addEventListener("timeout",oo),ki.addEventListener("abort",oo),zn.reportProgress&&(ki.addEventListener("progress",Xo),null!==bo&&ki.upload&&ki.upload.addEventListener("progress",Lo)),ki.send(bo),Xi.next({type:X.Sent}),()=>{ki.removeEventListener("error",oo),ki.removeEventListener("abort",oo),ki.removeEventListener("load",Zi),ki.removeEventListener("timeout",oo),zn.reportProgress&&(ki.removeEventListener("progress",Xo),null!==bo&&ki.upload&&ki.upload.removeEventListener("progress",Lo)),ki.readyState!==ki.DONE&&ki.abort()}})))}static#e=this.\u0275fac=function(Ei){return new(Ei||wi)(n.LFG(C.JF))};static#t=this.\u0275prov=n.Yz7({token:wi,factory:wi.\u0275fac})}return wi})();const mi=new n.OlP("XSRF_ENABLED"),Ko=new n.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Bn=new n.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Xt{}let Ji=(()=>{class wi{constructor(zn,Ei,li){this.doc=zn,this.platform=Ei,this.cookieName=li,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const zn=this.doc.cookie||"";return zn!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,C.Mx)(zn,this.cookieName),this.lastCookieString=zn),this.lastToken}static#e=this.\u0275fac=function(Ei){return new(Ei||wi)(n.LFG(C.K0),n.LFG(n.Lbi),n.LFG(Ko))};static#t=this.\u0275prov=n.Yz7({token:wi,factory:wi.\u0275fac})}return wi})();function En(wi,hi){const zn=wi.url.toLowerCase();if(!(0,n.f3M)(mi)||"GET"===wi.method||"HEAD"===wi.method||zn.startsWith("http://")||zn.startsWith("https://"))return hi(wi);const Ei=(0,n.f3M)(Xt).getToken(),li=(0,n.f3M)(Bn);return null!=Ei&&!wi.headers.has(li)&&(wi=wi.clone({headers:wi.headers.set(li,Ei)})),hi(wi)}var Ki=function(wi){return wi[wi.Interceptors=0]="Interceptors",wi[wi.LegacyInterceptors=1]="LegacyInterceptors",wi[wi.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",wi[wi.NoXsrfProtection=3]="NoXsrfProtection",wi[wi.JsonpSupport=4]="JsonpSupport",wi[wi.RequestsMadeViaParent=5]="RequestsMadeViaParent",wi[wi.Fetch=6]="Fetch",wi}(Ki||{});function Fn(wi,hi){return{\u0275kind:wi,\u0275providers:hi}}function oi(...wi){const hi=[te,Mi,Le,{provide:R,useExisting:Le},{provide:x,useExisting:Mi},{provide:fe,useValue:En,multi:!0},{provide:mi,useValue:!0},{provide:Xt,useClass:Ji}];for(const zn of wi)hi.push(...zn.\u0275providers);return(0,n.MR2)(hi)}const Bt=new n.OlP("LEGACY_INTERCEPTOR_FN");function xt(){return Fn(Ki.LegacyInterceptors,[{provide:Bt,useFactory:Oe},{provide:fe,useExisting:Bt,multi:!0}])}function pt(){return Fn(Ki.JsonpSupport,[dn,{provide:ut,useFactory:Wt},{provide:fe,useValue:sn,multi:!0}])}function tt(){return Fn(Ki.Fetch,[q,{provide:x,useExisting:q}])}let vt=(()=>{class wi{static#e=this.\u0275fac=function(Ei){return new(Ei||wi)};static#t=this.\u0275mod=n.oAB({type:wi});static#n=this.\u0275inj=n.cJS({providers:[oi(xt())]})}return wi})(),ln=(()=>{class wi{static#e=this.\u0275fac=function(Ei){return new(Ei||wi)};static#t=this.\u0275mod=n.oAB({type:wi});static#n=this.\u0275inj=n.cJS({providers:[pt().\u0275providers]})}return wi})()},65879:(he,y,i)=>{"use strict";i.d(y,{$8M:()=>vr,$WT:()=>pr,$Z:()=>ya,$cX:()=>mg,AFp:()=>am,ALo:()=>XC,AaK:()=>R,Akn:()=>Dg,AsE:()=>kv,B6R:()=>ba,BQk:()=>av,CHM:()=>Qi,CRH:()=>_x,D1c:()=>Sy,DdM:()=>WC,Dn7:()=>I2,DtL:()=>GS,EJc:()=>mw,EiD:()=>fg,EpF:()=>vy,F$t:()=>aa,F4k:()=>ie,FAE:()=>_u,FYo:()=>Cn,FiY:()=>uf,G48:()=>Pw,Gf:()=>F2,GfV:()=>So,GkF:()=>Vv,Gpc:()=>k,Gre:()=>sb,HDt:()=>I1,HOy:()=>A0,HTZ:()=>zh,Hh0:()=>KC,Hsn:()=>$a,Ikx:()=>Q1,IyS:()=>xy,JOm:()=>Ol,JVY:()=>Ah,JZr:()=>E,Jf7:()=>Sc,KtG:()=>vo,L6k:()=>yp,LAX:()=>cg,LFG:()=>Bt,LSH:()=>Qm,Lbi:()=>dp,Lck:()=>LC,MAs:()=>W1,MGl:()=>Ll,MMx:()=>E2,MR2:()=>xp,MT6:()=>Cy,NdJ:()=>Qe,O4$:()=>Do,Ojb:()=>xc,OlP:()=>rd,Oqu:()=>pl,P3R:()=>bm,PXZ:()=>ww,Q6J:()=>_0,QGY:()=>J_,QbO:()=>up,Qsj:()=>Fe,QtT:()=>xb,R0b:()=>Zg,RDi:()=>Xc,Rgc:()=>oy,SBq:()=>Dp,Sil:()=>J2,Suo:()=>gx,TTD:()=>qt,TgZ:()=>Ev,Tol:()=>uu,Udp:()=>uv,UuU:()=>Ac,VKq:()=>jC,VuI:()=>Kw,W1O:()=>U2,WD2:()=>Vt,WFA:()=>h,WLB:()=>Ib,X6Q:()=>Ow,XFs:()=>ut,Xpm:()=>bs,Xq5:()=>W0,Xts:()=>Cm,Y36:()=>$s,YKP:()=>w2,YNc:()=>p_,Yjl:()=>Li,Yz7:()=>Te,Z0I:()=>Oe,ZZ4:()=>t2,_Bn:()=>wb,_UZ:()=>l1,_Vd:()=>Gm,_c5:()=>P1,_uU:()=>K1,aQg:()=>O1,bRH:()=>$f,c2e:()=>zx,cJS:()=>fe,cQ8:()=>Fc,cg1:()=>qe,d8E:()=>B,dDg:()=>Kx,dqk:()=>nn,eBb:()=>Ag,eFA:()=>Xx,eJc:()=>ry,ekj:()=>ev,eoX:()=>Jx,evT:()=>fh,f3M:()=>wt,g9A:()=>Hu,gHi:()=>af,gM2:()=>qC,h0i:()=>S1,hGG:()=>Vw,hYB:()=>Gc,hij:()=>I0,iGM:()=>mx,ifc:()=>Pi,ip1:()=>Bx,jDz:()=>NC,kEZ:()=>B0,kL8:()=>_n,kcU:()=>Or,kie:()=>gg,ktI:()=>Mm,l5B:()=>YC,lG2:()=>Mr,lcZ:()=>M2,lnq:()=>v1,lqb:()=>Sp,lri:()=>Yx,mCW:()=>tm,n5z:()=>rc,n_E:()=>iy,oAB:()=>Ea,oJD:()=>Zh,oxw:()=>hr,pB0:()=>Jg,pQV:()=>PC,q3G:()=>rp,q4F:()=>Jo,qFp:()=>bC,qLn:()=>Al,qOj:()=>$h,qZA:()=>Hv,qbA:()=>ZC,qlk:()=>Yg,qzn:()=>bf,rFY:()=>JC,rWj:()=>Zx,rg0:()=>Ci,s9C:()=>ja,sBO:()=>Rw,s_b:()=>Lb,soG:()=>Zb,tBr:()=>Mc,tb:()=>rC,tdS:()=>On,tp0:()=>Ff,uIk:()=>Zp,uOi:()=>Pm,vHH:()=>b,vpe:()=>Pv,wAp:()=>Oo,xDo:()=>y1,xi3:()=>k2,xp6:()=>fp,ynx:()=>c1,z2F:()=>ly,z3N:()=>yf,zSh:()=>lp,zs3:()=>ws});var e=i(78645),n=i(47394),o=i(65619),a=i(65592),l=i(63019),u=i(22096),d=i(63020),s=i(94664),A=i(93997);
/**
         * @license Angular v16.1.6
         * (c) 2010-2022 Google LLC. https://angular.io/
         * License: MIT
         */function _(N){for(let Y in N)if(N[Y]===_)return Y;throw Error("Could not find renamed property on target object.")}function C(N,Y){for(const ae in Y)Y.hasOwnProperty(ae)&&!N.hasOwnProperty(ae)&&(N[ae]=Y[ae])}function R(N){if("string"==typeof N)return N;if(Array.isArray(N))return"["+N.map(R).join(", ")+"]";if(null==N)return""+N;if(N.overriddenName)return`${N.overriddenName}`;if(N.name)return`${N.name}`;const Y=N.toString();if(null==Y)return""+Y;const ae=Y.indexOf("\n");return-1===ae?Y:Y.substring(0,ae)}function x(N,Y){return null==N||""===N?null===Y?"":Y:null==Y||""===Y?N:N+" "+Y}const f=_({__forward_ref__:_});function k(N){return N.__forward_ref__=k,N.toString=function(){return R(this())},N}function w(N){return g(N)?N():N}function g(N){return"function"==typeof N&&N.hasOwnProperty(f)&&N.__forward_ref__===k}function M(N){return N&&!!N.\u0275providers}const E="https://g.co/ng/security#xss";class b extends Error{constructor(Y,ae){super(function I(N,Y){return`NG0${Math.abs(N)}${Y?": "+Y:""}`}(Y,ae)),this.code=Y}}function L(N){return"string"==typeof N?N:null==N?"":String(N)}function U(N,Y){throw new b(-201,!1)}function se(N,Y){null==N&&function ne(N,Y,ae,ke){throw new Error(`ASSERTION ERROR: ${N}`+(null==ke?"":` [Expected=> ${ae} ${ke} ${Y} <=Actual]`))}(Y,N,null,"!=")}function Te(N){return{token:N.token,providedIn:N.providedIn||null,factory:N.factory,value:void 0}}function fe(N){return{providers:N.providers||[],imports:N.imports||[]}}function xe(N){return Le(N,An)||Le(N,xn)}function Oe(N){return null!==xe(N)}function Le(N,Y){return N.hasOwnProperty(Y)?N[Y]:null}function Ut(N){return N&&(N.hasOwnProperty($n)||N.hasOwnProperty(mt))?N[$n]:null}const An=_({\u0275prov:_}),$n=_({\u0275inj:_}),xn=_({ngInjectableDef:_}),mt=_({ngInjectorDef:_});var ut=function(N){return N[N.Default=0]="Default",N[N.Host=1]="Host",N[N.Self=2]="Self",N[N.SkipSelf=4]="SkipSelf",N[N.Optional=8]="Optional",N}(ut||{});let Wt;function dn(){return Wt}function sn(N){const Y=Wt;return Wt=N,Y}function fn(N,Y,ae){const ke=xe(N);return ke&&"root"==ke.providedIn?void 0===ke.value?ke.value=ke.factory():ke.value:ae&ut.Optional?null:void 0!==Y?Y:void U(R(N))}const nn=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Ko={},xo="__NG_DI_FLAG__",Bn="ngTempTokenPath",Ji=/\n/gm,un="__source";let Ki;function oi(N){const Y=Ki;return Ki=N,Y}function It(N,Y=ut.Default){if(void 0===Ki)throw new b(-203,!1);return null===Ki?fn(N,void 0,Y):Ki.get(N,Y&ut.Optional?null:void 0,Y)}function Bt(N,Y=ut.Default){return(dn()||It)(w(N),Y)}function wt(N,Y=ut.Default){return Bt(N,Mt(Y))}function Mt(N){return typeof N>"u"||"number"==typeof N?N:0|(N.optional&&8)|(N.host&&1)|(N.self&&2)|(N.skipSelf&&4)}function pt(N){const Y=[];for(let ae=0;ae<N.length;ae++){const ke=w(N[ae]);if(Array.isArray(ke)){if(0===ke.length)throw new b(900,!1);let et,tn=ut.Default;for(let ni=0;ni<ke.length;ni++){const Hi=ke[ni],lo=tt(Hi);"number"==typeof lo?-1===lo?et=Hi.token:tn|=lo:et=Hi}Y.push(Bt(et,tn))}else Y.push(Bt(ke))}return Y}function Lt(N,Y){return N[xo]=Y,N.prototype[xo]=Y,N}function tt(N){return N[xo]}function ln(N){return{toString:N}.toString()}var jn=function(N){return N[N.OnPush=0]="OnPush",N[N.Default=1]="Default",N}(jn||{}),Pi=function(N){return N[N.Emulated=0]="Emulated",N[N.None=2]="None",N[N.ShadowDom=3]="ShadowDom",N}(Pi||{});const go={},si=[],ot=_({\u0275cmp:_}),pn=_({\u0275dir:_}),_i=_({\u0275pipe:_}),wi=_({\u0275mod:_}),hi=_({\u0275fac:_}),zn=_({__NG_ELEMENT_ID__:_}),Ei=_({__NG_ENV_ID__:_});function li(N,Y,ae){let ke=N.length;for(;;){const et=N.indexOf(Y,ae);if(-1===et)return et;if(0===et||N.charCodeAt(et-1)<=32){const tn=Y.length;if(et+tn===ke||N.charCodeAt(et+tn)<=32)return et}ae=et+1}}function Xi(N,Y,ae){let ke=0;for(;ke<ae.length;){const et=ae[ke];if("number"==typeof et){if(0!==et)break;ke++;const tn=ae[ke++],ni=ae[ke++],Hi=ae[ke++];N.setAttribute(Y,ni,Hi,tn)}else{const tn=et,ni=ae[++ke];bo(tn)?N.setProperty(Y,tn,ni):N.setAttribute(Y,tn,ni),ke++}}return ke}function ki(N){return 3===N||4===N||6===N}function bo(N){return 64===N.charCodeAt(0)}function jo(N,Y){if(null!==Y&&0!==Y.length)if(null===N||0===N.length)N=Y.slice();else{let ae=-1;for(let ke=0;ke<Y.length;ke++){const et=Y[ke];"number"==typeof et?ae=et:0===ae||wn(N,ae,et,null,-1===ae||2===ae?Y[++ke]:null)}}return N}function wn(N,Y,ae,ke,et){let tn=0,ni=N.length;if(-1===Y)ni=-1;else for(;tn<N.length;){const Hi=N[tn++];if("number"==typeof Hi){if(Hi===Y){ni=-1;break}if(Hi>Y){ni=tn-1;break}}}for(;tn<N.length;){const Hi=N[tn];if("number"==typeof Hi)break;if(Hi===ae){if(null===ke)return void(null!==et&&(N[tn+1]=et));if(ke===N[tn+1])return void(N[tn+2]=et)}tn++,null!==ke&&tn++,null!==et&&tn++}-1!==ni&&(N.splice(ni,0,Y),tn=ni+1),N.splice(tn++,0,ae),null!==ke&&N.splice(tn++,0,ke),null!==et&&N.splice(tn++,0,et)}const Zi="ng-template";function oo(N,Y,ae){let ke=0,et=!0;for(;ke<N.length;){let tn=N[ke++];if("string"==typeof tn&&et){const ni=N[ke++];if(ae&&"class"===tn&&-1!==li(ni.toLowerCase(),Y,0))return!0}else{if(1===tn){for(;ke<N.length&&"string"==typeof(tn=N[ke++]);)if(tn.toLowerCase()===Y)return!0;return!1}"number"==typeof tn&&(et=!1)}}return!1}function Bi(N){return 4===N.type&&N.value!==Zi}function Xo(N,Y,ae){return Y===(4!==N.type||ae?N.value:Zi)}function Lo(N,Y,ae){let ke=4;const et=N.attrs||[],tn=function ji(N){for(let Y=0;Y<N.length;Y++)if(ki(N[Y]))return Y;return N.length}(et);let ni=!1;for(let Hi=0;Hi<Y.length;Hi++){const lo=Y[Hi];if("number"!=typeof lo){if(!ni)if(4&ke){if(ke=2|1&ke,""!==lo&&!Xo(N,lo,ae)||""===lo&&1===Y.length){if(or(ke))return!1;ni=!0}}else{const Yo=8&ke?lo:Y[++Hi];if(8&ke&&null!==N.attrs){if(!oo(N.attrs,Yo,ae)){if(or(ke))return!1;ni=!0}continue}const Kr=xr(8&ke?"class":lo,et,Bi(N),ae);if(-1===Kr){if(or(ke))return!1;ni=!0;continue}if(""!==Yo){let Fs;Fs=Kr>tn?"":et[Kr+1].toLowerCase();const Qs=8&ke?Fs:null;if(Qs&&-1!==li(Qs,Yo,0)||2&ke&&Yo!==Fs){if(or(ke))return!1;ni=!0}}}}else{if(!ni&&!or(ke)&&!or(lo))return!1;if(ni&&or(lo))continue;ni=!1,ke=lo|1&ke}}return or(ke)||ni}function or(N){return 0==(1&N)}function xr(N,Y,ae,ke){if(null===Y)return-1;let et=0;if(ke||!ae){let tn=!1;for(;et<Y.length;){const ni=Y[et];if(ni===N)return et;if(3===ni||6===ni)tn=!0;else{if(1===ni||2===ni){let Hi=Y[++et];for(;"string"==typeof Hi;)Hi=Y[++et];continue}if(4===ni)break;if(0===ni){et+=4;continue}}et+=tn?1:2}return-1}return function Fo(N,Y){let ae=N.indexOf(4);if(ae>-1)for(ae++;ae<N.length;){const ke=N[ae];if("number"==typeof ke)return-1;if(ke===Y)return ae;ae++}return-1}(Y,N)}function Nr(N,Y,ae=!1){for(let ke=0;ke<Y.length;ke++)if(Lo(N,Y[ke],ae))return!0;return!1}function rt(N,Y){e:for(let ae=0;ae<Y.length;ae++){const ke=Y[ae];if(N.length===ke.length){for(let et=0;et<N.length;et++)if(N[et]!==ke[et])continue e;return!0}}return!1}function ai(N,Y){return N?":not("+Y.trim()+")":Y}function Gn(N){let Y=N[0],ae=1,ke=2,et="",tn=!1;for(;ae<N.length;){let ni=N[ae];if("string"==typeof ni)if(2&ke){const Hi=N[++ae];et+="["+ni+(Hi.length>0?'="'+Hi+'"':"")+"]"}else 8&ke?et+="."+ni:4&ke&&(et+=" "+ni);else""!==et&&!or(ni)&&(Y+=ai(tn,et),et=""),ke=ni,tn=tn||!or(ke);ae++}return""!==et&&(Y+=ai(tn,et)),Y}function bs(N){return ln(()=>{const Y=br(N),ae={...Y,decls:N.decls,vars:N.vars,template:N.template,consts:N.consts||null,ngContentSelectors:N.ngContentSelectors,onPush:N.changeDetection===jn.OnPush,directiveDefs:null,pipeDefs:null,dependencies:Y.standalone&&N.dependencies||null,getStandaloneInjector:null,signals:N.signals??!1,data:N.data||{},encapsulation:N.encapsulation||Pi.Emulated,styles:N.styles||si,_:null,schemas:N.schemas||null,tView:null,id:""};Ti(ae);const ke=N.dependencies;return ae.directiveDefs=mr(ke,!1),ae.pipeDefs=mr(ke,!0),ae.id=function mo(N){let Y=0;const ae=[N.selectors,N.ngContentSelectors,N.hostVars,N.hostAttrs,N.consts,N.vars,N.decls,N.encapsulation,N.standalone,N.signals,N.exportAs,JSON.stringify(N.inputs),JSON.stringify(N.outputs),Object.getOwnPropertyNames(N.type.prototype),!!N.contentQueries,!!N.viewQuery].join("|");for(const et of ae)Y=Math.imul(31,Y)+et.charCodeAt(0)<<0;return Y+=2147483648,"c"+Y}(ae),ae})}function ba(N,Y,ae){const ke=N.\u0275cmp;ke.directiveDefs=mr(Y,!1),ke.pipeDefs=mr(ae,!0)}function ms(N){return Ao(N)||ao(N)}function Oa(N){return null!==N}function Ea(N){return ln(()=>({type:N.type,bootstrap:N.bootstrap||si,declarations:N.declarations||si,imports:N.imports||si,exports:N.exports||si,transitiveCompileScopes:null,schemas:N.schemas||null,id:N.id||null}))}function tr(N,Y){if(null==N)return go;const ae={};for(const ke in N)if(N.hasOwnProperty(ke)){let et=N[ke],tn=et;Array.isArray(et)&&(tn=et[1],et=et[0]),ae[et]=ke,Y&&(Y[et]=tn)}return ae}function Mr(N){return ln(()=>{const Y=br(N);return Ti(Y),Y})}function Li(N){return{type:N.type,name:N.name,factory:null,pure:!1!==N.pure,standalone:!0===N.standalone,onDestroy:N.type.prototype.ngOnDestroy||null}}function Ao(N){return N[ot]||null}function ao(N){return N[pn]||null}function Go(N){return N[_i]||null}function pr(N){const Y=Ao(N)||ao(N)||Go(N);return null!==Y&&Y.standalone}function Rr(N,Y){const ae=N[wi]||null;if(!ae&&!0===Y)throw new Error(`Type ${R(N)} does not have '\u0275mod' property.`);return ae}function br(N){const Y={};return{type:N.type,providersResolver:null,factory:null,hostBindings:N.hostBindings||null,hostVars:N.hostVars||0,hostAttrs:N.hostAttrs||null,contentQueries:N.contentQueries||null,declaredInputs:Y,inputTransforms:null,inputConfig:N.inputs||go,exportAs:N.exportAs||null,standalone:!0===N.standalone,signals:!0===N.signals,selectors:N.selectors||si,viewQuery:N.viewQuery||null,features:N.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:tr(N.inputs,Y),outputs:tr(N.outputs)}}function Ti(N){N.features?.forEach(Y=>Y(N))}function mr(N,Y){if(!N)return null;const ae=Y?Go:ms;return()=>("function"==typeof N?N():N).map(ke=>ae(ke)).filter(Oa)}const Ii=0,yo=1,lr=2,Yr=3,Gs=4,fi=5,Ho=6,_t=7,Zn=8,qo=9,Cr=10,kr=11,xs=12,Us=13,Ts=14,Ss=15,Ua=16,$o=17,Ar=18,No=19,qr=20,js=21,Ds=22,Zr=23,ls=24,Hs=25,Wa=1,ll=2,Za=7,Jt=9,ht=11;function vi(N){return Array.isArray(N)&&"object"==typeof N[Wa]}function Yi(N){return Array.isArray(N)&&!0===N[Wa]}function co(N){return 0!=(4&N.flags)}function sr(N){return N.componentOffset>-1}function yr(N){return 1==(1&N.flags)}function Ur(N){return!!N.template}function ss(N){return 0!=(512&N[lr])}function Vn(N,Y){return N.hasOwnProperty(hi)?N[hi]:null}const Dn=Symbol("SIGNAL");function ui(N,Y,ae={}){return Y[Dn]=N,Object.assign(Y,ae)}function Ot(N,Y){return(null===N||"object"!=typeof N)&&Object.is(N,Y)}let cn=nn.WeakRef??class en{constructor(Y){this.ref=Y}deref(){return this.ref}},Nt=0,an=null,$e=!1;function Je(N){const Y=an;return an=N,Y}class Ve{constructor(){this.id=Nt++,this.ref=function Ht(N){return new cn(N)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[Y,ae]of this.producers){const ke=ae.producerNode.deref();if(null!=ke&&ae.atTrackingVersion===this.trackingVersion){if(ke.producerPollStatus(ae.seenValueVersion))return!0}else this.producers.delete(Y),ke?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const Y=$e;$e=!0;try{for(const[ae,ke]of this.consumers){const et=ke.consumerNode.deref();null!=et&&et.trackingVersion===ke.atTrackingVersion?et.onConsumerDependencyMayHaveChanged():(this.consumers.delete(ae),et?.producers.delete(this.id))}}finally{$e=Y}}producerAccessed(){if($e)throw new Error("");if(null===an)return;let Y=an.producers.get(this.id);void 0===Y?(Y={consumerNode:an.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:an.trackingVersion},an.producers.set(this.id,Y),this.consumers.set(an.id,Y)):(Y.seenValueVersion=this.valueVersion,Y.atTrackingVersion=an.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==an?.consumerAllowSignalWrites}producerPollStatus(Y){return this.valueVersion!==Y||(this.onProducerUpdateValueVersion(),this.valueVersion!==Y)}}let Xn=function $t(){throw new Error};function Nn(){Xn()}class Kt extends Ve{constructor(Y,ae){super(),this.value=Y,this.equal=ae,this.consumerAllowSignalWrites=!1}onConsumerDependencyMayHaveChanged(){}onProducerUpdateValueVersion(){}set(Y){this.producerUpdatesAllowed||Nn(),this.equal(this.value,Y)||(this.value=Y,this.valueVersion++,this.producerMayHaveChanged())}update(Y){this.producerUpdatesAllowed||Nn(),this.set(Y(this.value))}mutate(Y){this.producerUpdatesAllowed||Nn(),Y(this.value),this.valueVersion++,this.producerMayHaveChanged()}asReadonly(){return void 0===this.readonlySignal&&(this.readonlySignal=ui(this,()=>this.signal())),this.readonlySignal}signal(){return this.producerAccessed(),this.value}}function On(N,Y){const ae=new Kt(N,Y?.equal??Ot);return ui(ae,ae.signal.bind(ae),{set:ae.set.bind(ae),update:ae.update.bind(ae),mutate:ae.mutate.bind(ae),asReadonly:ae.asReadonly.bind(ae)})}function Ci(N){const Y=Je(null);try{return N()}finally{Je(Y)}}const xi=()=>{};class Wn extends Ve{constructor(Y,ae,ke){super(),this.watch=Y,this.schedule=ae,this.dirty=!1,this.cleanupFn=xi,this.registerOnCleanup=et=>{this.cleanupFn=et},this.consumerAllowSignalWrites=ke}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const Y=Je(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=xi,this.watch(this.registerOnCleanup)}finally{Je(Y)}}cleanup(){this.cleanupFn()}}class Vt{constructor(Y,ae,ke){this.previousValue=Y,this.currentValue=ae,this.firstChange=ke}isFirstChange(){return this.firstChange}}function qt(){return bn}function bn(N){return N.type.prototype.ngOnChanges&&(N.setInput=Vi),ii}function ii(){const N=zt(this),Y=N?.current;if(Y){const ae=N.previous;if(ae===go)N.previous=Y;else for(let ke in Y)ae[ke]=Y[ke];N.current=null,this.ngOnChanges(Y)}}function Vi(N,Y,ae,ke){const et=this.declaredInputs[ae],tn=zt(N)||function mn(N,Y){return N[Jn]=Y}(N,{previous:go,current:null}),ni=tn.current||(tn.current={}),Hi=tn.previous,lo=Hi[et];ni[et]=new Vt(lo&&lo.currentValue,Y,Hi===go),N[ke]=Y}qt.ngInherit=!0;const Jn="__ngSimpleChanges__";function zt(N){return N[Jn]||null}const Oi=function(N,Y,ae){},Ai="svg";function qn(N){for(;Array.isArray(N);)N=N[Ii];return N}function Ue(N,Y){return qn(Y[N])}function Ye(N,Y){return qn(Y[N.index])}function pe(N,Y){return N.data[Y]}function lt(N,Y){return N[Y]}function yt(N,Y){const ae=Y[N];return vi(ae)?ae:ae[Ii]}function ho(N,Y){return null==Y?null:N[Y]}function po(N){N[$o]=0}function $i(N){1024&N[lr]||(N[lr]|=1024,wo(N,1))}function ro(N){1024&N[lr]&&(N[lr]&=-1025,wo(N,-1))}function wo(N,Y){let ae=N[Yr];if(null===ae)return;ae[fi]+=Y;let ke=ae;for(ae=ae[Yr];null!==ae&&(1===Y&&1===ke[fi]||-1===Y&&0===ke[fi]);)ae[fi]+=Y,ke=ae,ae=ae[Yr]}function io(N,Y){if(256==(256&N[lr]))throw new b(911,!1);null===N[js]&&(N[js]=[]),N[js].push(Y)}const fo={lFrame:Nl(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ca(){return fo.bindingsEnabled}function ks(){return null!==fo.skipHydrationRootTNode}function cs(){return fo.lFrame.lView}function Ps(){return fo.lFrame.tView}function Qi(N){return fo.lFrame.contextLView=N,N[Zn]}function vo(N){return fo.lFrame.contextLView=null,N}function pi(){let N=to();for(;null!==N&&64===N.type;)N=N.parent;return N}function to(){return fo.lFrame.currentTNode}function Sr(N,Y){const ae=fo.lFrame;ae.currentTNode=N,ae.isParent=Y}function rs(){return fo.lFrame.isParent}function Os(){fo.lFrame.isParent=!1}function Ka(){const N=fo.lFrame;let Y=N.bindingRootIndex;return-1===Y&&(Y=N.bindingRootIndex=N.tView.bindingStartIndex),Y}function nl(){return fo.lFrame.bindingIndex}function xl(){return fo.lFrame.bindingIndex++}function eo(N){const Y=fo.lFrame,ae=Y.bindingIndex;return Y.bindingIndex=Y.bindingIndex+N,ae}function Dr(N,Y){const ae=fo.lFrame;ae.bindingIndex=ae.bindingRootIndex=N,ia(Y)}function ia(N){fo.lFrame.currentDirectiveIndex=N}function Ia(N){const Y=fo.lFrame.currentDirectiveIndex;return-1===Y?null:N[Y]}function ar(){return fo.lFrame.currentQueryIndex}function wa(N){fo.lFrame.currentQueryIndex=N}function _l(N){const Y=N[yo];return 2===Y.type?Y.declTNode:1===Y.type?N[Ho]:null}function Ya(N,Y,ae){if(ae&ut.SkipSelf){let et=Y,tn=N;for(;!(et=et.parent,null!==et||ae&ut.Host||(et=_l(tn),null===et||(tn=tn[Ts],10&et.type))););if(null===et)return!1;Y=et,N=tn}const ke=fo.lFrame=rl();return ke.currentTNode=Y,ke.lView=N,!0}function pa(N){const Y=rl(),ae=N[yo];fo.lFrame=Y,Y.currentTNode=ae.firstChild,Y.lView=N,Y.tView=ae,Y.contextLView=N,Y.bindingIndex=ae.bindingStartIndex,Y.inI18n=!1}function rl(){const N=fo.lFrame,Y=null===N?null:N.child;return null===Y?Nl(N):Y}function Nl(N){const Y={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:N,child:null,inI18n:!1};return null!==N&&(N.child=Y),Y}function nd(){const N=fo.lFrame;return fo.lFrame=N.parent,N.currentTNode=null,N.lView=null,N}const Ct=nd;function rn(){const N=nd();N.isParent=!0,N.tView=null,N.selectedIndex=-1,N.contextLView=null,N.elementDepthCount=0,N.currentDirectiveIndex=-1,N.currentNamespace=null,N.bindingRootIndex=-1,N.bindingIndex=-1,N.currentQueryIndex=0}function ct(){return fo.lFrame.selectedIndex}function Qt(N){fo.lFrame.selectedIndex=N}function gi(){const N=fo.lFrame;return pe(N.tView,N.selectedIndex)}function Do(){fo.lFrame.currentNamespace=Ai}function Or(){!function hs(){fo.lFrame.currentNamespace=null}()}let ca=!0;function za(){return ca}function cl(N){ca=N}function bc(N,Y){for(let ae=Y.directiveStart,ke=Y.directiveEnd;ae<ke;ae++){const tn=N.data[ae].type.prototype,{ngAfterContentInit:ni,ngAfterContentChecked:Hi,ngAfterViewInit:lo,ngAfterViewChecked:Yo,ngOnDestroy:Tr}=tn;ni&&(N.contentHooks??=[]).push(-ae,ni),Hi&&((N.contentHooks??=[]).push(ae,Hi),(N.contentCheckHooks??=[]).push(ae,Hi)),lo&&(N.viewHooks??=[]).push(-ae,lo),Yo&&((N.viewHooks??=[]).push(ae,Yo),(N.viewCheckHooks??=[]).push(ae,Yo)),null!=Tr&&(N.destroyHooks??=[]).push(ae,Tr)}}function ec(N,Y,ae){Hc(N,Y,3,ae)}function Wl(N,Y,ae,ke){(3&N[lr])===ae&&Hc(N,Y,ae,ke)}function va(N,Y){let ae=N[lr];(3&ae)===Y&&(ae&=8191,ae+=1,N[lr]=ae)}function Hc(N,Y,ae,ke){const tn=ke??-1,ni=Y.length-1;let Hi=0;for(let lo=void 0!==ke?65535&N[$o]:0;lo<ni;lo++)if("number"==typeof Y[lo+1]){if(Hi=Y[lo],null!=ke&&Hi>=ke)break}else Y[lo]<0&&(N[$o]+=65536),(Hi<tn||-1==tn)&&(Mu(N,ae,Y,lo),N[$o]=(4294901760&N[$o])+lo+2),lo++}function Vc(N,Y){Oi(4,N,Y);const ae=Je(null);try{Y.call(N)}finally{Je(ae),Oi(5,N,Y)}}function Mu(N,Y,ae,ke){const et=ae[ke]<0,tn=ae[ke+1],Hi=N[et?-ae[ke]:ae[ke]];et?N[lr]>>13<N[$o]>>16&&(3&N[lr])===Y&&(N[lr]+=8192,Vc(Hi,tn)):Vc(Hi,tn)}const Tl=-1;class cc{constructor(Y,ae,ke){this.factory=Y,this.resolving=!1,this.canSeeViewProviders=ae,this.injectImpl=ke}}function yu(N){return N!==Tl}function bu(N){return 32767&N}function Zu(N,Y){let ae=function nu(N){return N>>16}(N),ke=Y;for(;ae>0;)ke=ke[Ts],ae--;return ke}let mc=!0;function xd(N){const Y=mc;return mc=N,Y}const Fl=255,Jd=5;let Jl=0;const gd={};function gc(N,Y){const ae=Cu(N,Y);if(-1!==ae)return ae;const ke=Y[yo];ke.firstCreatePass&&(N.injectorIndex=Y.length,ih(ke.data,N),ih(Y,null),ih(ke.blueprint,null));const et=id(N,Y),tn=N.injectorIndex;if(yu(et)){const ni=bu(et),Hi=Zu(et,Y),lo=Hi[yo].data;for(let Yo=0;Yo<8;Yo++)Y[tn+Yo]=Hi[ni+Yo]|lo[ni+Yo]}return Y[tn+8]=et,tn}function ih(N,Y){N.push(0,0,0,0,0,0,0,0,Y)}function Cu(N,Y){return-1===N.injectorIndex||N.parent&&N.parent.injectorIndex===N.injectorIndex||null===Y[N.injectorIndex+8]?-1:N.injectorIndex}function id(N,Y){if(N.parent&&-1!==N.parent.injectorIndex)return N.parent.injectorIndex;let ae=0,ke=null,et=Y;for(;null!==et;){if(ke=Wo(et),null===ke)return Tl;if(ae++,et=et[Ts],-1!==ke.injectorIndex)return ke.injectorIndex|ae<<16}return Tl}function ph(N,Y,ae){!function dd(N,Y,ae){let ke;"string"==typeof ae?ke=ae.charCodeAt(0)||0:ae.hasOwnProperty(zn)&&(ke=ae[zn]),null==ke&&(ke=ae[zn]=Jl++);const et=ke&Fl;Y.data[N+(et>>Jd)]|=1<<et}(N,Y,ae)}function ql(N,Y,ae){if(ae&ut.Optional||void 0!==N)return N;U()}function Ku(N,Y,ae,ke){if(ae&ut.Optional&&void 0===ke&&(ke=null),!(ae&(ut.Self|ut.Host))){const et=N[qo],tn=sn(void 0);try{return et?et.get(Y,ke,ae&ut.Optional):fn(Y,ke,ae&ut.Optional)}finally{sn(tn)}}return ql(ke,0,ae)}function od(N,Y,ae,ke=ut.Default,et){if(null!==N){if(2048&Y[lr]&&!(ke&ut.Self)){const ni=function uo(N,Y,ae,ke,et){let tn=N,ni=Y;for(;null!==tn&&null!==ni&&2048&ni[lr]&&!(512&ni[lr]);){const Hi=Ic(tn,ni,ae,ke|ut.Self,gd);if(Hi!==gd)return Hi;let lo=tn.parent;if(!lo){const Yo=ni[qr];if(Yo){const Tr=Yo.get(ae,gd,ke);if(Tr!==gd)return Tr}lo=Wo(ni),ni=ni[Ts]}tn=lo}return et}(N,Y,ae,ke,gd);if(ni!==gd)return ni}const tn=Ic(N,Y,ae,ke,gd);if(tn!==gd)return tn}return Ku(Y,ae,ke,et)}function Ic(N,Y,ae,ke,et){const tn=function $c(N){if("string"==typeof N)return N.charCodeAt(0)||0;const Y=N.hasOwnProperty(zn)?N[zn]:void 0;return"number"==typeof Y?Y>=0?Y&Fl:_d:Y}(ae);if("function"==typeof tn){if(!Ya(Y,N,ke))return ke&ut.Host?ql(et,0,ke):Ku(Y,ae,ke,et);try{const ni=tn(ke);if(null!=ni||ke&ut.Optional)return ni;U()}finally{Ct()}}else if("number"==typeof tn){let ni=null,Hi=Cu(N,Y),lo=Tl,Yo=ke&ut.Host?Y[Ss][Ho]:null;for((-1===Hi||ke&ut.SkipSelf)&&(lo=-1===Hi?id(N,Y):Y[Hi+8],lo!==Tl&&Hd(ke,!1)?(ni=Y[yo],Hi=bu(lo),Y=Zu(lo,Y)):Hi=-1);-1!==Hi;){const Tr=Y[yo];if(oc(tn,Hi,Tr.data)){const Kr=Gd(Hi,Y,ae,ni,ke,Yo);if(Kr!==gd)return Kr}lo=Y[Hi+8],lo!==Tl&&Hd(ke,Y[yo].data[Hi+8]===Yo)&&oc(tn,Hi,Y)?(ni=Tr,Hi=bu(lo),Y=Zu(lo,Y)):Hi=-1}}return et}function Gd(N,Y,ae,ke,et,tn){const ni=Y[yo],Hi=ni.data[N+8],Tr=$d(Hi,ni,ae,null==ke?sr(Hi)&&mc:ke!=ni&&0!=(3&Hi.type),et&ut.Host&&tn===Hi);return null!==Tr?dc(Y,ni,Tr,Hi):gd}function $d(N,Y,ae,ke,et){const tn=N.providerIndexes,ni=Y.data,Hi=1048575&tn,lo=N.directiveStart,Tr=tn>>20,Fs=et?Hi+Tr:N.directiveEnd;for(let Qs=ke?Hi:Hi+Tr;Qs<Fs;Qs++){const Na=ni[Qs];if(Qs<lo&&ae===Na||Qs>=lo&&Na.type===ae)return Qs}if(et){const Qs=ni[lo];if(Qs&&Ur(Qs)&&Qs.type===ae)return lo}return null}function dc(N,Y,ae,ke){let et=N[ae];const tn=Y.data;if(function Id(N){return N instanceof cc}(et)){const ni=et;ni.resolving&&function F(N,Y){const ae=Y?`. Dependency path: ${Y.join(" > ")} > ${N}`:"";throw new b(-200,`Circular dependency in DI detected for ${N}${ae}`)}(function D(N){return"function"==typeof N?N.name||N.toString():"object"==typeof N&&null!=N&&"function"==typeof N.type?N.type.name||N.type.toString():L(N)}(tn[ae]));const Hi=xd(ni.canSeeViewProviders);ni.resolving=!0;const lo=ni.injectImpl?sn(ni.injectImpl):null;Ya(N,ke,ut.Default);try{et=N[ae]=ni.factory(void 0,tn,N,ke),Y.firstCreatePass&&ae>=ke.directiveStart&&function yc(N,Y,ae){const{ngOnChanges:ke,ngOnInit:et,ngDoCheck:tn}=Y.type.prototype;if(ke){const ni=bn(Y);(ae.preOrderHooks??=[]).push(N,ni),(ae.preOrderCheckHooks??=[]).push(N,ni)}et&&(ae.preOrderHooks??=[]).push(0-N,et),tn&&((ae.preOrderHooks??=[]).push(N,tn),(ae.preOrderCheckHooks??=[]).push(N,tn))}(ae,tn[ae],Y)}finally{null!==lo&&sn(lo),xd(Hi),ni.resolving=!1,Ct()}}return et}function oc(N,Y,ae){return!!(ae[Y+(N>>Jd)]&1<<N)}function Hd(N,Y){return!(N&ut.Self||N&ut.Host&&Y)}class Rc{constructor(Y,ae){this._tNode=Y,this._lView=ae}get(Y,ae,ke){return od(this._tNode,this._lView,Y,Mt(ke),ae)}}function _d(){return new Rc(pi(),cs())}function rc(N){return ln(()=>{const Y=N.prototype.constructor,ae=Y[hi]||Di(Y),ke=Object.prototype;let et=Object.getPrototypeOf(N.prototype).constructor;for(;et&&et!==ke;){const tn=et[hi]||Di(et);if(tn&&tn!==ae)return tn;et=Object.getPrototypeOf(et)}return tn=>new tn})}function Di(N){return g(N)?()=>{const Y=Di(w(N));return Y&&Y()}:Vn(N)}function Wo(N){const Y=N[yo],ae=Y.type;return 2===ae?Y.declTNode:1===ae?N[Ho]:null}function vr(N){return function ud(N,Y){if("class"===Y)return N.classes;if("style"===Y)return N.styles;const ae=N.attrs;if(ae){const ke=ae.length;let et=0;for(;et<ke;){const tn=ae[et];if(ki(tn))break;if(0===tn)et+=2;else if("number"==typeof tn)for(et++;et<ke&&"string"==typeof ae[et];)et++;else{if(tn===Y)return ae[et+1];et+=2}}}return null}(pi(),N)}const ns="__parameters__";function qs(N,Y,ae){return ln(()=>{const ke=function Is(N){return function(...ae){if(N){const ke=N(...ae);for(const et in ke)this[et]=ke[et]}}}(Y);function et(...tn){if(this instanceof et)return ke.apply(this,tn),this;const ni=new et(...tn);return Hi.annotation=ni,Hi;function Hi(lo,Yo,Tr){const Kr=lo.hasOwnProperty(ns)?lo[ns]:Object.defineProperty(lo,ns,{value:[]})[ns];for(;Kr.length<=Tr;)Kr.push(null);return(Kr[Tr]=Kr[Tr]||[]).push(ni),lo}}return ae&&(et.prototype=Object.create(ae.prototype)),et.prototype.ngMetadataName=N,et.annotationCls=et,et})}function dt(N,Y){N.forEach(ae=>Array.isArray(ae)?dt(ae,Y):Y(ae))}function In(N,Y,ae){Y>=N.length?N.push(ae):N.splice(Y,0,ae)}function er(N,Y){return Y>=N.length-1?N.pop():N.splice(Y,1)[0]}function Br(N,Y){const ae=[];for(let ke=0;ke<N;ke++)ae.push(Y);return ae}function Aa(N,Y,ae){let ke=ml(N,Y);return ke>=0?N[1|ke]=ae:(ke=~ke,function xa(N,Y,ae,ke){let et=N.length;if(et==Y)N.push(ae,ke);else if(1===et)N.push(ke,N[0]),N[0]=ae;else{for(et--,N.push(N[et-1],N[et]);et>Y;)N[et]=N[et-2],et--;N[Y]=ae,N[Y+1]=ke}}(N,ke,Y,ae)),ke}function vl(N,Y){const ae=ml(N,Y);if(ae>=0)return N[1|ae]}function ml(N,Y){return function Cc(N,Y,ae){let ke=0,et=N.length>>ae;for(;et!==ke;){const tn=ke+(et-ke>>1),ni=N[tn<<ae];if(Y===ni)return tn<<ae;ni>Y?et=tn:ke=tn+1}return~(et<<ae)}(N,Y,1)}const Mc=Lt(qs("Inject",N=>({token:N})),-1),uf=Lt(qs("Optional"),8),Ff=Lt(qs("SkipSelf"),4);function fl(N){return 128==(128&N.flags)}var Ol=function(N){return N[N.Important=1]="Important",N[N.DashCase=2]="DashCase",N}(Ol||{});const hc=/^>|^->|<!--|-->|--!>|<!-$/g,fd=/(<|>)/,Su="\u200b$1\u200b";const Xd=new Map;let gh=0;const Mh="__ngContext__";function Uc(N,Y){vi(Y)?(N[Mh]=Y[No],function ep(N){Xd.set(N[No],N)}(Y)):N[Mh]=Y}let Rp;function ah(N,Y){return Rp(N,Y)}function kh(N){const Y=N[Yr];return Yi(Y)?Y[Yr]:Y}function gf(N){return pd(N[xs])}function Lp(N){return pd(N[Gs])}function pd(N){for(;null!==N&&!Yi(N);)N=N[Gs];return N}function su(N,Y,ae,ke,et){if(null!=ke){let tn,ni=!1;Yi(ke)?tn=ke:vi(ke)&&(ni=!0,ke=ke[Ii]);const Hi=qn(ke);0===N&&null!==ae?null==et?_h(Y,ae,Hi):_f(Y,ae,Hi,et||null,!0):1===N&&null!==ae?_f(Y,ae,Hi,et||null,!0):2===N?Ze(Y,Hi,ni):3===N&&Y.destroyNode(Hi),null!=tn&&function el(N,Y,ae,ke,et){const tn=ae[Za];tn!==qn(ae)&&su(Y,N,ke,tn,et);for(let Hi=ht;Hi<ae.length;Hi++){const lo=ae[Hi];$r(lo[yo],lo,N,Y,ke,tn)}}(Y,N,tn,ae,et)}}function kf(N,Y){return N.createText(Y)}function $u(N,Y,ae){N.setValue(Y,ae)}function jh(N,Y){return N.createComment(function gm(N){return N.replace(hc,Y=>Y.replace(fd,Su))}(Y))}function Qp(N,Y,ae){return N.createElement(Y,ae)}function zf(N,Y){const ae=N[Jt],ke=ae.indexOf(Y);ro(Y),ae.splice(ke,1)}function ch(N,Y){if(N.length<=ht)return;const ae=ht+Y,ke=N[ae];if(ke){const et=ke[Ua];null!==et&&et!==N&&zf(et,ke),Y>0&&(N[ae-1][Gs]=ke[Gs]);const tn=er(N,ht+Y);!function Ih(N,Y){$r(N,Y,Y[kr],2,null,null),Y[Ii]=null,Y[Ho]=null}(ke[yo],ke);const ni=tn[Ar];null!==ni&&ni.detachView(tn[yo]),ke[Yr]=null,ke[Gs]=null,ke[lr]&=-129}return ke}function Uf(N,Y){if(!(256&Y[lr])){const ae=Y[kr];Y[Zr]?.destroy(),Y[ls]?.destroy(),ae.destroyNode&&$r(N,Y,ae,3,null,null),function If(N){let Y=N[xs];if(!Y)return tp(N[yo],N);for(;Y;){let ae=null;if(vi(Y))ae=Y[xs];else{const ke=Y[ht];ke&&(ae=ke)}if(!ae){for(;Y&&!Y[Gs]&&Y!==N;)vi(Y)&&tp(Y[yo],Y),Y=Y[Yr];null===Y&&(Y=N),vi(Y)&&tp(Y[yo],Y),ae=Y&&Y[Gs]}Y=ae}}(Y)}}function tp(N,Y){if(!(256&Y[lr])){Y[lr]&=-129,Y[lr]|=256,function Yh(N,Y){let ae;if(null!=N&&null!=(ae=N.destroyHooks))for(let ke=0;ke<ae.length;ke+=2){const et=Y[ae[ke]];if(!(et instanceof cc)){const tn=ae[ke+1];if(Array.isArray(tn))for(let ni=0;ni<tn.length;ni+=2){const Hi=et[tn[ni]],lo=tn[ni+1];Oi(4,Hi,lo);try{lo.call(Hi)}finally{Oi(5,Hi,lo)}}else{Oi(4,et,tn);try{tn.call(et)}finally{Oi(5,et,tn)}}}}}(N,Y),function Qu(N,Y){const ae=N.cleanup,ke=Y[_t];if(null!==ae)for(let tn=0;tn<ae.length-1;tn+=2)if("string"==typeof ae[tn]){const ni=ae[tn+3];ni>=0?ke[ni]():ke[-ni].unsubscribe(),tn+=2}else ae[tn].call(ke[ae[tn+1]]);null!==ke&&(Y[_t]=null);const et=Y[js];if(null!==et){Y[js]=null;for(let tn=0;tn<et.length;tn++)(0,et[tn])()}}(N,Y),1===Y[yo].type&&Y[kr].destroy();const ae=Y[Ua];if(null!==ae&&Yi(Y[Yr])){ae!==Y[Yr]&&zf(ae,Y);const ke=Y[Ar];null!==ke&&ke.detachView(N)}!function Vh(N){Xd.delete(N[No])}(Y)}}function zu(N,Y,ae){return function dh(N,Y,ae){let ke=Y;for(;null!==ke&&40&ke.type;)ke=(Y=ke).parent;if(null===ke)return ae[Ii];{const{componentOffset:et}=ke;if(et>-1){const{encapsulation:tn}=N.data[ke.directiveStart+et];if(tn===Pi.None||tn===Pi.Emulated)return null}return Ye(ke,ae)}}(N,Y.parent,ae)}function _f(N,Y,ae,ke,et){N.insertBefore(Y,ae,ke,et)}function _h(N,Y,ae){N.appendChild(Y,ae)}function Xp(N,Y,ae,ke,et){null!==ke?_f(N,Y,ae,ke,et):_h(N,Y,ae)}function Af(N,Y){return N.parentNode(Y)}function au(N,Y,ae){return Of(N,Y,ae)}let Gf,kc,Uu,vh,Of=function wu(N,Y,ae){return 40&N.type?Ye(N,ae):null};function Np(N,Y,ae,ke){const et=zu(N,ke,Y),tn=Y[kr],Hi=au(ke.parent||Y[Ho],ke,Y);if(null!=et)if(Array.isArray(ae))for(let lo=0;lo<ae.length;lo++)Xp(tn,et,ae[lo],Hi,!1);else Xp(tn,et,ae,Hi,!1);void 0!==Gf&&Gf(tn,ke,Y,ae,et)}function Yt(N,Y){if(null!==Y){const ae=Y.type;if(3&ae)return Ye(Y,N);if(4&ae)return ee(-1,N[Y.index]);if(8&ae){const ke=Y.child;if(null!==ke)return Yt(N,ke);{const et=N[Y.index];return Yi(et)?ee(-1,et):qn(et)}}if(32&ae)return ah(Y,N)()||qn(N[Y.index]);{const ke=Ri(N,Y);return null!==ke?Array.isArray(ke)?ke[0]:Yt(kh(N[Ss]),ke):Yt(N,Y.next)}}return null}function Ri(N,Y){return null!==Y?N[Ss][Ho].projection[Y.projection]:null}function ee(N,Y){const ae=ht+N+1;if(ae<Y.length){const ke=Y[ae],et=ke[yo].firstChild;if(null!==et)return Yt(ke,et)}return Y[Za]}function Ze(N,Y,ae){const ke=Af(N,Y);ke&&function Ou(N,Y,ae,ke){N.removeChild(Y,ae,ke)}(N,ke,Y,ae)}function Bo(N,Y,ae,ke,et,tn,ni){for(;null!=ae;){const Hi=ke[ae.index],lo=ae.type;if(ni&&0===Y&&(Hi&&Uc(qn(Hi),ke),ae.flags|=2),32!=(32&ae.flags))if(8&lo)Bo(N,Y,ae.child,ke,et,tn,!1),su(Y,N,et,Hi,tn);else if(32&lo){const Yo=ah(ae,ke);let Tr;for(;Tr=Yo();)su(Y,N,et,Tr,tn);su(Y,N,et,Hi,tn)}else 16&lo?Fa(N,Y,ke,ae,et,tn):su(Y,N,et,Hi,tn);ae=ni?ae.projectionNext:ae.next}}function $r(N,Y,ae,ke,et,tn){Bo(ae,ke,N.firstChild,Y,et,tn,!1)}function Fa(N,Y,ae,ke,et,tn){const ni=ae[Ss],lo=ni[Ho].projection[ke.projection];if(Array.isArray(lo))for(let Yo=0;Yo<lo.length;Yo++)su(Y,N,et,lo[Yo],tn);else{let Yo=lo;const Tr=ni[Yr];fl(ke)&&(Yo.flags|=128),Bo(N,Y,Yo,Tr,et,tn,!0)}}function Pl(N,Y,ae){""===ae?N.removeAttribute(Y,"class"):N.setAttribute(Y,"class",ae)}function Zl(N,Y,ae){const{mergedAttrs:ke,classes:et,styles:tn}=ae;null!==ke&&Xi(N,Y,ke),null!==et&&Pl(N,Y,et),null!==tn&&function Ql(N,Y,ae){N.setAttribute(Y,"style",ae)}(N,Y,tn)}function Td(N){return function Eu(){if(void 0===kc&&(kc=null,nn.trustedTypes))try{kc=nn.trustedTypes.createPolicy("angular",{createHTML:N=>N,createScript:N=>N,createScriptURL:N=>N})}catch{}return kc}()?.createHTML(N)||N}function Xc(N){Uu=N}function Tc(){if(void 0!==Uu)return Uu;if(typeof document<"u")return document;throw new b(210,!1)}function vp(){if(void 0===vh&&(vh=null,nn.trustedTypes))try{vh=nn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:N=>N,createScript:N=>N,createScriptURL:N=>N})}catch{}return vh}function nf(N){return vp()?.createHTML(N)||N}function Hf(N){return vp()?.createScriptURL(N)||N}class Vf{constructor(Y){this.changingThisBreaksApplicationSecurity=Y}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${E})`}}class Fp extends Vf{getTypeName(){return"HTML"}}class Bp extends Vf{getTypeName(){return"Style"}}class qp extends Vf{getTypeName(){return"Script"}}class np extends Vf{getTypeName(){return"URL"}}class rf extends Vf{getTypeName(){return"ResourceURL"}}function yf(N){return N instanceof Vf?N.changingThisBreaksApplicationSecurity:N}function bf(N,Y){const ae=function v_(N){return N instanceof Vf&&N.getTypeName()||null}(N);if(null!=ae&&ae!==Y){if("ResourceURL"===ae&&"URL"===Y)return!0;throw new Error(`Required a safe ${Y}, got a ${ae} (see ${E})`)}return ae===Y}function Ah(N){return new Fp(N)}function yp(N){return new Bp(N)}function Ag(N){return new qp(N)}function cg(N){return new np(N)}function Jg(N){return new rf(N)}class em{constructor(Y){this.inertDocumentHelper=Y}getInertBodyElement(Y){Y="<body><remove></remove>"+Y;try{const ae=(new window.DOMParser).parseFromString(Td(Y),"text/html").body;return null===ae?this.inertDocumentHelper.getInertBodyElement(Y):(ae.removeChild(ae.firstChild),ae)}catch{return null}}}class zp{constructor(Y){this.defaultDoc=Y,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(Y){const ae=this.inertDocument.createElement("template");return ae.innerHTML=Td(Y),ae}}const Jm=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function tm(N){return(N=String(N)).match(Jm)?N:"unsafe:"+N}function Oc(N){const Y={};for(const ae of N.split(","))Y[ae]=!0;return Y}function ym(...N){const Y={};for(const ae of N)for(const ke in ae)ae.hasOwnProperty(ke)&&(Y[ke]=!0);return Y}const bp=Oc("area,br,col,hr,img,wbr"),Og=Oc("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),dg=Oc("rp,rt"),mu=ym(bp,ym(Og,Oc("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")),ym(dg,Oc("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")),ym(dg,Og)),Pf=Oc("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Wf=ym(Pf,Oc("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,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Oc("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")),nm=Oc("script,style,template");class $g{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(Y){let ae=Y.firstChild,ke=!0;for(;ae;)if(ae.nodeType===Node.ELEMENT_NODE?ke=this.startElement(ae):ae.nodeType===Node.TEXT_NODE?this.chars(ae.nodeValue):this.sanitizedSomething=!0,ke&&ae.firstChild)ae=ae.firstChild;else for(;ae;){ae.nodeType===Node.ELEMENT_NODE&&this.endElement(ae);let et=this.checkClobberedElement(ae,ae.nextSibling);if(et){ae=et;break}ae=this.checkClobberedElement(ae,ae.parentNode)}return this.buf.join("")}startElement(Y){const ae=Y.nodeName.toLowerCase();if(!mu.hasOwnProperty(ae))return this.sanitizedSomething=!0,!nm.hasOwnProperty(ae);this.buf.push("<"),this.buf.push(ae);const ke=Y.attributes;for(let et=0;et<ke.length;et++){const tn=ke.item(et),ni=tn.name,Hi=ni.toLowerCase();if(!Wf.hasOwnProperty(Hi)){this.sanitizedSomething=!0;continue}let lo=tn.value;Pf[Hi]&&(lo=tm(lo)),this.buf.push(" ",ni,'="',$m(lo),'"')}return this.buf.push(">"),!0}endElement(Y){const ae=Y.nodeName.toLowerCase();mu.hasOwnProperty(ae)&&!bp.hasOwnProperty(ae)&&(this.buf.push("</"),this.buf.push(ae),this.buf.push(">"))}chars(Y){this.buf.push($m(Y))}checkClobberedElement(Y,ae){if(ae&&(Y.compareDocumentPosition(ae)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${Y.outerHTML}`);return ae}}const Om=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ug=/([^\#-~ |!])/g;function $m(N){return N.replace(/&/g,"&amp;").replace(Om,function(Y){return"&#"+(1024*(Y.charCodeAt(0)-55296)+(Y.charCodeAt(1)-56320)+65536)+";"}).replace(ug,function(Y){return"&#"+Y.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let hg;function fg(N,Y){let ae=null;try{hg=hg||function ip(N){const Y=new zp(N);return function Km(){try{return!!(new window.DOMParser).parseFromString(Td(""),"text/html")}catch{return!1}}()?new em(Y):Y}(N);let ke=Y?String(Y):"";ae=hg.getInertBodyElement(ke);let et=5,tn=ke;do{if(0===et)throw new Error("Failed to sanitize html because the input is unstable");et--,ke=tn,tn=ae.innerHTML,ae=hg.getInertBodyElement(ke)}while(ke!==tn);return Td((new $g).sanitizeChildren(pg(ae)||ae))}finally{if(ae){const ke=pg(ae)||ae;for(;ke.firstChild;)ke.removeChild(ke.firstChild)}}}function pg(N){return"content"in N&&function op(N){return N.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===N.nodeName}(N)?N.content:null}var rp=function(N){return N[N.NONE=0]="NONE",N[N.HTML=1]="HTML",N[N.STYLE=2]="STYLE",N[N.SCRIPT=3]="SCRIPT",N[N.URL=4]="URL",N[N.RESOURCE_URL=5]="RESOURCE_URL",N}(rp||{});function Zh(N){const Y=Cf();return Y?nf(Y.sanitize(rp.HTML,N)||""):bf(N,"HTML")?nf(yf(N)):fg(Tc(),L(N))}function Qm(N){const Y=Cf();return Y?Y.sanitize(rp.URL,N)||"":bf(N,"URL")?yf(N):tm(L(N))}function Pm(N){const Y=Cf();if(Y)return Hf(Y.sanitize(rp.RESOURCE_URL,N)||"");if(bf(N,"ResourceURL"))return Hf(yf(N));throw new b(904,!1)}function mg(N){return Td(N[0])}function bm(N,Y,ae){return function yh(N,Y){return"src"===Y&&("embed"===N||"frame"===N||"iframe"===N||"media"===N||"script"===N)||"href"===Y&&("base"===N||"link"===N)?Pm:Qm}(Y,ae)(N)}function Cf(){const N=cs();return N&&N[Cr].sanitizer}class rd{constructor(Y,ae){this._desc=Y,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof ae?this.__NG_ELEMENT_ID__=ae:void 0!==ae&&(this.\u0275prov=Te({token:this,providedIn:ae.providedIn||"root",factory:ae.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Cm=new rd("ENVIRONMENT_INITIALIZER"),xm=new rd("INJECTOR",-1),Sm=new rd("INJECTOR_DEF_TYPES");class Cp{get(Y,ae=Ko){if(ae===Ko){const ke=new Error(`NullInjectorError: No provider for ${R(Y)}!`);throw ke.name="NullInjectorError",ke}return ae}}function xp(N){return{\u0275providers:N}}function om(...N){return{\u0275providers:Xg(0,N),\u0275fromNgModule:!0}}function Xg(N,...Y){const ae=[],ke=new Set;let et;return dt(Y,tn=>{const ni=tn;jf(ni,ae,[],ke)&&(et||=[],et.push(ni))}),void 0!==et&&sf(et,ae),ae}function sf(N,Y){for(let ae=0;ae<N.length;ae++){const{providers:et}=N[ae];Rf(et,tn=>{Y.push(tn)})}}function jf(N,Y,ae,ke){if(!(N=w(N)))return!1;let et=null,tn=Ut(N);const ni=!tn&&Ao(N);if(tn||ni){if(ni&&!ni.standalone)return!1;et=N}else{const lo=N.ngModule;if(tn=Ut(lo),!tn)return!1;et=lo}const Hi=ke.has(et);if(ni){if(Hi)return!1;if(ke.add(et),ni.dependencies){const lo="function"==typeof ni.dependencies?ni.dependencies():ni.dependencies;for(const Yo of lo)jf(Yo,Y,ae,ke)}}else{if(!tn)return!1;{if(null!=tn.imports&&!Hi){let Yo;ke.add(et);try{dt(tn.imports,Tr=>{jf(Tr,Y,ae,ke)&&(Yo||=[],Yo.push(Tr))})}finally{}void 0!==Yo&&sf(Yo,Y)}if(!Hi){const Yo=Vn(et)||(()=>new et);Y.push({provide:et,useFactory:Yo,deps:si},{provide:Sm,useValue:et,multi:!0},{provide:Cm,useValue:()=>Bt(et),multi:!0})}const lo=tn.providers;null==lo||Hi||Rf(lo,Tr=>{Y.push(Tr)})}}return et!==N&&void 0!==N.providers}function Rf(N,Y){for(let ae of N)M(ae)&&(ae=ae.\u0275providers),Array.isArray(ae)?Rf(ae,Y):Y(ae)}const Rm=_({provide:String,useValue:_});function ap(N){return null!==N&&"object"==typeof N&&Rm in N}function jd(N){return"function"==typeof N}const lp=new rd("Set Injector scope."),Kh={},Tu={};let Sf;function Lf(){return void 0===Sf&&(Sf=new Cp),Sf}class Sp{}class Lm extends Sp{get destroyed(){return this._destroyed}constructor(Y,ae,ke,et){super(),this.parent=ae,this.source=ke,this.scopes=et,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Lg(Y,ni=>this.processProvider(ni)),this.records.set(xm,sm(void 0,this)),et.has("environment")&&this.records.set(Sp,sm(void 0,this));const tn=this.records.get(lp);null!=tn&&"string"==typeof tn.value&&this.scopes.add(tn.value),this.injectorDefTypes=new Set(this.get(Sm.multi,si,ut.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const ae of this._ngOnDestroyHooks)ae.ngOnDestroy();const Y=this._onDestroyHooks;this._onDestroyHooks=[];for(const ae of Y)ae()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(Y){return this.assertNotDestroyed(),this._onDestroyHooks.push(Y),()=>this.removeOnDestroy(Y)}runInContext(Y){this.assertNotDestroyed();const ae=oi(this),ke=sn(void 0);try{return Y()}finally{oi(ae),sn(ke)}}get(Y,ae=Ko,ke=ut.Default){if(this.assertNotDestroyed(),Y.hasOwnProperty(Ei))return Y[Ei](this);ke=Mt(ke);const et=oi(this),tn=sn(void 0);try{if(!(ke&ut.SkipSelf)){let Hi=this.records.get(Y);if(void 0===Hi){const lo=function Rg(N){return"function"==typeof N||"object"==typeof N&&N instanceof rd}(Y)&&xe(Y);Hi=lo&&this.injectableDefInScope(lo)?sm(wp(Y),Kh):null,this.records.set(Y,Hi)}if(null!=Hi)return this.hydrate(Y,Hi)}return(ke&ut.Self?Lf():this.parent).get(Y,ae=ke&ut.Optional&&ae===Ko?null:ae)}catch(ni){if("NullInjectorError"===ni.name){if((ni[Bn]=ni[Bn]||[]).unshift(R(Y)),et)throw ni;return function Ne(N,Y,ae,ke){const et=N[Bn];throw Y[un]&&et.unshift(Y[un]),N.message=function vt(N,Y,ae,ke=null){N=N&&"\n"===N.charAt(0)&&"\u0275"==N.charAt(1)?N.slice(2):N;let et=R(Y);if(Array.isArray(Y))et=Y.map(R).join(" -> ");else if("object"==typeof Y){let tn=[];for(let ni in Y)if(Y.hasOwnProperty(ni)){let Hi=Y[ni];tn.push(ni+":"+("string"==typeof Hi?JSON.stringify(Hi):R(Hi)))}et=`{${tn.join(", ")}}`}return`${ae}${ke?"("+ke+")":""}[${et}]: ${N.replace(Ji,"\n  ")}`}("\n"+N.message,et,ae,ke),N.ngTokenPath=et,N[Bn]=null,N}(ni,Y,"R3InjectorError",this.source)}throw ni}finally{sn(tn),oi(et)}}resolveInjectorInitializers(){const Y=oi(this),ae=sn(void 0);try{const ke=this.get(Cm.multi,si,ut.Self);for(const et of ke)et()}finally{oi(Y),sn(ae)}}toString(){const Y=[],ae=this.records;for(const ke of ae.keys())Y.push(R(ke));return`R3Injector[${Y.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new b(205,!1)}processProvider(Y){let ae=jd(Y=w(Y))?Y:w(Y&&Y.provide);const ke=function wm(N){return ap(N)?sm(void 0,N.useValue):sm(cp(N),Kh)}(Y);if(jd(Y)||!0!==Y.multi)this.records.get(ae);else{let et=this.records.get(ae);et||(et=sm(void 0,Kh,!0),et.factory=()=>pt(et.multi),this.records.set(ae,et)),ae=Y,et.multi.push(Y)}this.records.set(ae,ke)}hydrate(Y,ae){return ae.value===Kh&&(ae.value=Tu,ae.value=ae.factory()),"object"==typeof ae.value&&ae.value&&function e_(N){return null!==N&&"object"==typeof N&&"function"==typeof N.ngOnDestroy}(ae.value)&&this._ngOnDestroyHooks.add(ae.value),ae.value}injectableDefInScope(Y){if(!Y.providedIn)return!1;const ae=w(Y.providedIn);return"string"==typeof ae?"any"===ae||this.scopes.has(ae):this.injectorDefTypes.has(ae)}removeOnDestroy(Y){const ae=this._onDestroyHooks.indexOf(Y);-1!==ae&&this._onDestroyHooks.splice(ae,1)}}function wp(N){const Y=xe(N),ae=null!==Y?Y.factory:Vn(N);if(null!==ae)return ae;if(N instanceof rd)throw new b(204,!1);if(N instanceof Function)return function Nm(N){const Y=N.length;if(Y>0)throw Br(Y,"?"),new b(204,!1);const ae=function Gt(N){return N&&(N[An]||N[xn])||null}(N);return null!==ae?()=>ae.factory(N):()=>new N}(N);throw new b(204,!1)}function cp(N,Y,ae){let ke;if(jd(N)){const et=w(N);return Vn(et)||wp(et)}if(ap(N))ke=()=>w(N.useValue);else if(function Gp(N){return!(!N||!N.useFactory)}(N))ke=()=>N.useFactory(...pt(N.deps||[]));else if(function rm(N){return!(!N||!N.useExisting)}(N))ke=()=>Bt(w(N.useExisting));else{const et=w(N&&(N.useClass||N.provide));if(!function qg(N){return!!N.deps}(N))return Vn(et)||wp(et);ke=()=>new et(...pt(N.deps))}return ke}function sm(N,Y,ae=!1){return{factory:N,value:Y,multi:ae?[]:void 0}}function Lg(N,Y){for(const ae of N)Array.isArray(ae)?Lg(ae,Y):ae&&M(ae)?Lg(ae.\u0275providers,Y):Y(ae)}const am=new rd("AppId",{providedIn:"root",factory:()=>Gu}),Gu="ng",Hu=new rd("Platform Initializer"),dp=new rd("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),up=new rd("AnimationModuleType"),xc=new rd("CSP nonce",{providedIn:"root",factory:()=>Tc().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function Yd(){const N=new gg;return"browser"===wt(dp)&&(N.store=function Yf(N,Y){const ae=N.getElementById(Y+"-state");if(ae?.textContent)try{return JSON.parse(ae.textContent)}catch(ke){console.warn("Exception while restoring TransferState for app "+Y,ke)}return{}}(Tc(),wt(am))),N}let gg=(()=>{class N{constructor(){this.store={},this.onSerializeCallbacks={}}static#e=this.\u0275prov=Te({token:N,providedIn:"root",factory:Yd});get(ae,ke){return void 0!==this.store[ae]?this.store[ae]:ke}set(ae,ke){this.store[ae]=ke}remove(ae){delete this.store[ae]}hasKey(ae){return this.store.hasOwnProperty(ae)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(ae,ke){this.onSerializeCallbacks[ae]=ke}toJson(){for(const ae in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(ae))try{this.store[ae]=this.onSerializeCallbacks[ae]()}catch(ke){console.warn("Exception in onSerialize callback: ",ke)}return JSON.stringify(this.store).replace(/</g,"\\u003C")}}return N})(),x_=(N,Y)=>null;function Zd(N,Y){return x_(N,Y)}class Ac{}class ol{}class fc{resolveComponentFactory(Y){throw function Kf(N){const Y=Error(`No component factory found for ${R(N)}.`);return Y.ngComponent=N,Y}(Y)}}let Gm=(()=>{class N{static#e=this.NULL=new fc}return N})();function Rh(){return hh(pi(),cs())}function hh(N,Y){return new Dp(Ye(N,Y))}let Dp=(()=>{class N{constructor(ae){this.nativeElement=ae}static#e=this.__NG_ELEMENT_ID__=Rh}return N})();function Et(N){return N instanceof Dp?N.nativeElement:N}class Cn{}let Fe=(()=>{class N{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function Zt(){const N=cs(),ae=yt(pi().index,N);return(vi(ae)?ae:N)[kr]}()}return N})(),Ln=(()=>{class N{static#e=this.\u0275prov=Te({token:N,providedIn:"root",factory:()=>null})}return N})();class So{constructor(Y){this.full=Y,this.major=Y.split(".")[0],this.minor=Y.split(".")[1],this.patch=Y.split(".").slice(2).join(".")}}const Jo=new So("16.1.6"),Hr={};function Es(N){for(;N;){N[lr]|=64;const Y=kh(N);if(ss(N)&&!Y)return N;N=Y}return null}function Ha(N){return N.ngOriginalError}class Al{constructor(){this._console=console}handleError(Y){const ae=this._findOriginalError(Y);this._console.error("ERROR",Y),ae&&this._console.error("ORIGINAL ERROR",ae)}_findOriginalError(Y){let ae=Y&&Ha(Y);for(;ae&&Ha(ae);)ae=Ha(ae);return ae||null}}const wl=new rd("",{providedIn:"root",factory:()=>!1});function Sc(N){return N.ownerDocument.defaultView}function fh(N){return N.ownerDocument}function wc(N){return N instanceof Function?N():N}class Kl extends Ve{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(Y){this._lView=Y}onConsumerDependencyMayHaveChanged(){Es(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(Y,ae,ke){const et=Je(this);this.trackingVersion++;try{Y(ae,ke)}finally{Je(et)}}destroy(){this.trackingVersion++}}let Xl=null;function Yc(){return Xl??=new Kl,Xl}function Vu(N,Y){return N[Y]??Yc()}function Mp(N,Y){const ae=Yc();ae.hasReadASignal&&(N[Y]=Xl,ae.lView=N,Xl=new Kl)}const Hl={};function fp(N){lu(Ps(),cs(),ct()+N,!1)}function lu(N,Y,ae,ke){if(!ke)if(3==(3&Y[lr])){const tn=N.preOrderCheckHooks;null!==tn&&ec(Y,tn,ae)}else{const tn=N.preOrderHooks;null!==tn&&Wl(Y,tn,0,ae)}Qt(ae)}function af(N){if(!dn()&&!function Fn(){return Ki}())throw new b(-203,!1)}function zr(N,Y=null,ae=null,ke){const et=Lr(N,Y,ae,ke);return et.resolveInjectorInitializers(),et}function Lr(N,Y=null,ae=null,ke,et=new Set){const tn=[ae||si,om(N)];return ke=ke||("object"==typeof N?void 0:R(N)),new Lm(tn,Y||Lf(),ke||null,et)}let ws=(()=>{class N{static#e=this.THROW_IF_NOT_FOUND=Ko;static#t=this.NULL=new Cp;static create(ae,ke){if(Array.isArray(ae))return zr({name:""},ke,ae,"");{const et=ae.name??"";return zr({name:et},ae.parent,ae.providers,et)}}static#n=this.\u0275prov=Te({token:N,providedIn:"any",factory:()=>Bt(xm)});static#i=this.__NG_ELEMENT_ID__=-1}return N})();function $s(N,Y=ut.Default){const ae=cs();return null===ae?Bt(N,Y):od(pi(),ae,w(N),Y)}function ya(){throw new Error("invalid")}function Ja(N,Y,ae,ke,et,tn,ni,Hi,lo,Yo,Tr){const Kr=Y.blueprint.slice();return Kr[Ii]=et,Kr[lr]=140|ke,(null!==Yo||N&&2048&N[lr])&&(Kr[lr]|=2048),po(Kr),Kr[Yr]=Kr[Ts]=N,Kr[Zn]=ae,Kr[Cr]=ni||N&&N[Cr],Kr[kr]=Hi||N&&N[kr],Kr[qo]=lo||N&&N[qo]||null,Kr[Ho]=tn,Kr[No]=function Ed(){return gh++}(),Kr[Ds]=Tr,Kr[qr]=Yo,Kr[Ss]=2==Y.type?N[Ss]:Kr,Kr}function jl(N,Y,ae,ke,et){let tn=N.data[Y];if(null===tn)tn=function zd(N,Y,ae,ke,et){const tn=to(),ni=rs(),lo=N.data[Y]=function Hm(N,Y,ae,ke,et,tn){let ni=Y?Y.injectorIndex:-1,Hi=0;return ks()&&(Hi|=128),{type:ae,index:ke,insertBeforeIndex:null,injectorIndex:ni,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:Hi,providerIndexes:0,value:et,attrs:tn,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:Y,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,ni?tn:tn&&tn.parent,ae,Y,ke,et);return null===N.firstChild&&(N.firstChild=lo),null!==tn&&(ni?null==tn.child&&null!==lo.parent&&(tn.child=lo):null===tn.next&&(tn.next=lo,lo.prev=tn)),lo}(N,Y,ae,ke,et),function To(){return fo.lFrame.inI18n}()&&(tn.flags|=32);else if(64&tn.type){tn.type=ae,tn.value=ke,tn.attrs=et;const ni=function Ro(){const N=fo.lFrame,Y=N.currentTNode;return N.isParent?Y:Y.parent}();tn.injectorIndex=null===ni?-1:ni.injectorIndex}return Sr(tn,!0),tn}function md(N,Y,ae,ke){if(0===ae)return-1;const et=Y.length;for(let tn=0;tn<ae;tn++)Y.push(ke),N.blueprint.push(ke),N.data.push(null);return et}function Xu(N,Y,ae,ke,et){const tn=Vu(Y,Zr),ni=ct(),Hi=2&ke;try{if(Qt(-1),Hi&&Y.length>Hs&&lu(N,Y,Hs,!1),Oi(Hi?2:0,et),Hi)tn.runInContext(ae,ke,et);else{const Yo=Je(null);try{ae(ke,et)}finally{Je(Yo)}}}finally{Hi&&null===Y[Zr]&&Mp(Y,Zr),Qt(ni),Oi(Hi?3:1,et)}}function Lh(N,Y,ae){if(co(Y)){const ke=Je(null);try{const tn=Y.directiveEnd;for(let ni=Y.directiveStart;ni<tn;ni++){const Hi=N.data[ni];Hi.contentQueries&&Hi.contentQueries(1,ae[ni],ni)}}finally{Je(ke)}}}function qu(N,Y,ae){Ca()&&(function r_(N,Y,ae,ke){const et=ae.directiveStart,tn=ae.directiveEnd;sr(ae)&&function c_(N,Y,ae){const ke=Ye(Y,N),et=Wu(ae);let ni=16;ae.signals?ni=4096:ae.onPush&&(ni=64);const Hi=Fh(N,Ja(N,et,null,ni,ke,Y,null,N[Cr].rendererFactory.createRenderer(ke,ae),null,null,null));N[Y.index]=Hi}(Y,ae,N.data[et+ae.componentOffset]),N.firstCreatePass||gc(ae,Y),Uc(ke,Y);const ni=ae.initialInputs;for(let Hi=et;Hi<tn;Hi++){const lo=N.data[Hi],Yo=dc(Y,N,Hi,ae);Uc(Yo,Y),null!==ni&&D_(0,Hi-et,Yo,lo,0,ni),Ur(lo)&&(yt(ae.index,Y)[Zn]=dc(Y,N,Hi,ae))}}(N,Y,ae,Ye(ae,Y)),64==(64&ae.flags)&&ng(N,Y,ae))}function lf(N,Y,ae=Ye){const ke=Y.localNames;if(null!==ke){let et=Y.index+1;for(let tn=0;tn<ke.length;tn+=2){const ni=ke[tn+1],Hi=-1===ni?ae(Y,N):N[ni];N[et++]=Hi}}}function Wu(N){const Y=N.tView;return null===Y||Y.incompleteFirstPass?N.tView=bh(1,null,N.template,N.decls,N.vars,N.directiveDefs,N.pipeDefs,N.viewQuery,N.schemas,N.consts,N.id):Y}function bh(N,Y,ae,ke,et,tn,ni,Hi,lo,Yo,Tr){const Kr=Hs+ke,Fs=Kr+et,Qs=function kp(N,Y){const ae=[];for(let ke=0;ke<Y;ke++)ae.push(ke<N?null:Hl);return ae}(Kr,Fs),Na="function"==typeof Yo?Yo():Yo;return Qs[yo]={type:N,blueprint:Qs,template:ae,queries:null,viewQuery:Hi,declTNode:Y,data:Qs.slice().fill(null,Kr),bindingStartIndex:Kr,expandoStartIndex:Fs,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 tn?tn():tn,pipeRegistry:"function"==typeof ni?ni():ni,firstChild:null,schemas:lo,consts:Na,incompleteFirstPass:!1,ssrId:Tr}}let zg=N=>null;function Vm(N,Y,ae,ke){for(let et in N)if(N.hasOwnProperty(et)){ae=null===ae?{}:ae;const tn=N[et];null===ke?ed(ae,Y,et,tn):ke.hasOwnProperty(et)&&ed(ae,Y,ke[et],tn)}return ae}function ed(N,Y,ae,ke){N.hasOwnProperty(ae)?N[ae].push(Y,ke):N[ae]=[Y,ke]}function Ef(N,Y,ae,ke,et,tn,ni,Hi){const lo=Ye(Y,ae);let Tr,Yo=Y.inputs;!Hi&&null!=Yo&&(Tr=Yo[ke])?(u_(N,ae,Tr,ke,et),sr(Y)&&function o_(N,Y){const ae=yt(Y,N);16&ae[lr]||(ae[lr]|=64)}(ae,Y.index)):3&Y.type&&(ke=function j_(N){return"class"===N?"className":"for"===N?"htmlFor":"formaction"===N?"formAction":"innerHtml"===N?"innerHTML":"readonly"===N?"readOnly":"tabindex"===N?"tabIndex":N}(ke),et=null!=ni?ni(et,Y.value||"",ke):et,tn.setProperty(lo,ke,et))}function hm(N,Y,ae,ke){if(Ca()){const et=null===ke?null:{"":-1},tn=function s_(N,Y){const ae=N.directiveRegistry;let ke=null,et=null;if(ae)for(let tn=0;tn<ae.length;tn++){const ni=ae[tn];if(Nr(Y,ni.selectors,!1))if(ke||(ke=[]),Ur(ni))if(null!==ni.findHostDirectiveDefs){const Hi=[];et=et||new Map,ni.findHostDirectiveDefs(ni,Hi,et),ke.unshift(...Hi,ni),a_(N,Y,Hi.length)}else ke.unshift(ni),a_(N,Y,0);else et=et||new Map,ni.findHostDirectiveDefs?.(ni,ke,et),ke.push(ni)}return null===ke?null:[ke,et]}(N,ae);let ni,Hi;null===tn?ni=Hi=null:[ni,Hi]=tn,null!==ni&&Nh(N,Y,ae,ni,et,Hi),et&&function Hg(N,Y,ae){if(Y){const ke=N.localNames=[];for(let et=0;et<Y.length;et+=2){const tn=ae[Y[et+1]];if(null==tn)throw new b(-301,!1);ke.push(Y[et],tn)}}}(ae,ke,et)}ae.mergedAttrs=jo(ae.mergedAttrs,ae.attrs)}function Nh(N,Y,ae,ke,et,tn){for(let Yo=0;Yo<ke.length;Yo++)ph(gc(ae,Y),N,ke[Yo].type);!function l_(N,Y,ae){N.flags|=1,N.directiveStart=Y,N.directiveEnd=Y+ae,N.providerIndexes=Y}(ae,N.data.length,ke.length);for(let Yo=0;Yo<ke.length;Yo++){const Tr=ke[Yo];Tr.providersResolver&&Tr.providersResolver(Tr)}let ni=!1,Hi=!1,lo=md(N,Y,ke.length,null);for(let Yo=0;Yo<ke.length;Yo++){const Tr=ke[Yo];ae.mergedAttrs=jo(ae.mergedAttrs,Tr.hostAttrs),_v(N,ae,Y,lo,Tr),yg(lo,Tr,et),null!==Tr.contentQueries&&(ae.flags|=4),(null!==Tr.hostBindings||null!==Tr.hostAttrs||0!==Tr.hostVars)&&(ae.flags|=64);const Kr=Tr.type.prototype;!ni&&(Kr.ngOnChanges||Kr.ngOnInit||Kr.ngDoCheck)&&((N.preOrderHooks??=[]).push(ae.index),ni=!0),!Hi&&(Kr.ngOnChanges||Kr.ngDoCheck)&&((N.preOrderCheckHooks??=[]).push(ae.index),Hi=!0),lo++}!function w_(N,Y,ae){const et=Y.directiveEnd,tn=N.data,ni=Y.attrs,Hi=[];let lo=null,Yo=null;for(let Tr=Y.directiveStart;Tr<et;Tr++){const Kr=tn[Tr],Fs=ae?ae.get(Kr):null,Na=Fs?Fs.outputs:null;lo=Vm(Kr.inputs,Tr,lo,Fs?Fs.inputs:null),Yo=Vm(Kr.outputs,Tr,Yo,Na);const Xa=null===lo||null===ni||Bi(Y)?null:N_(lo,Tr,ni);Hi.push(Xa)}null!==lo&&(lo.hasOwnProperty("class")&&(Y.flags|=8),lo.hasOwnProperty("style")&&(Y.flags|=16)),Y.initialInputs=Hi,Y.inputs=lo,Y.outputs=Yo}(N,ae,tn)}function ng(N,Y,ae){const ke=ae.directiveStart,et=ae.directiveEnd,tn=ae.index,ni=function _s(){return fo.lFrame.currentDirectiveIndex}();try{Qt(tn);for(let Hi=ke;Hi<et;Hi++){const lo=N.data[Hi],Yo=Y[Hi];ia(Hi),(null!==lo.hostBindings||0!==lo.hostVars||null!==lo.hostAttrs)&&pp(lo,Yo)}}finally{Qt(-1),ia(ni)}}function pp(N,Y){null!==N.hostBindings&&N.hostBindings(1,Y)}function a_(N,Y,ae){Y.componentOffset=ae,(N.components??=[]).push(Y.index)}function yg(N,Y,ae){if(ae){if(Y.exportAs)for(let ke=0;ke<Y.exportAs.length;ke++)ae[Y.exportAs[ke]]=N;Ur(Y)&&(ae[""]=N)}}function _v(N,Y,ae,ke,et){N.data[ke]=et;const tn=et.factory||(et.factory=Vn(et.type)),ni=new cc(tn,Ur(et),$s);N.blueprint[ke]=ni,ae[ke]=ni,function Gg(N,Y,ae,ke,et){const tn=et.hostBindings;if(tn){let ni=N.hostBindingOpCodes;null===ni&&(ni=N.hostBindingOpCodes=[]);const Hi=~Y.index;(function Dm(N){let Y=N.length;for(;Y>0;){const ae=N[--Y];if("number"==typeof ae&&ae<0)return ae}return 0})(ni)!=Hi&&ni.push(Hi),ni.push(ae,ke,tn)}}(N,Y,ke,md(N,ae,et.hostVars,Hl),et)}function d_(N,Y,ae,ke,et,tn,ni){if(null==tn)N.removeAttribute(Y,et,ae);else{const Hi=null==ni?L(tn):ni(tn,ke||"",et);N.setAttribute(Y,et,Hi,ae)}}function D_(N,Y,ae,ke,et,tn){const ni=tn[Y];if(null!==ni)for(let Hi=0;Hi<ni.length;)Vg(ke,ae,ni[Hi++],ni[Hi++],ni[Hi++])}function Vg(N,Y,ae,ke,et){const tn=Je(null);try{const ni=N.inputTransforms;null!==ni&&ni.hasOwnProperty(ke)&&(et=ni[ke].call(Y,et)),null!==N.setInput?N.setInput(Y,et,ae,ke):Y[ke]=et}finally{Je(tn)}}function N_(N,Y,ae){let ke=null,et=0;for(;et<ae.length;){const tn=ae[et];if(0!==tn)if(5!==tn){if("number"==typeof tn)break;if(N.hasOwnProperty(tn)){null===ke&&(ke=[]);const ni=N[tn];for(let Hi=0;Hi<ni.length;Hi+=2)if(ni[Hi]===Y){ke.push(tn,ni[Hi+1],ae[et+1]);break}}et+=2}else et+=2;else et+=4}return ke}function mp(N,Y,ae,ke){return[N,!0,!1,Y,null,0,ke,ae,null,null,null]}function Ip(N,Y){const ae=N.contentQueries;if(null!==ae)for(let ke=0;ke<ae.length;ke+=2){const tn=ae[ke+1];if(-1!==tn){const ni=N.data[tn];wa(ae[ke]),ni.contentQueries(2,Y[tn],tn)}}}function Fh(N,Y){return N[xs]?N[Us][Gs]=Y:N[xs]=Y,N[Us]=Y,Y}function cu(N,Y,ae){wa(0);const ke=Je(null);try{Y(N,ae)}finally{Je(ke)}}function bg(N){return N[_t]||(N[_t]=[])}function Cg(N){return N.cleanup||(N.cleanup=[])}function xg(N,Y,ae){return(null===N||Ur(N))&&(ae=function Ni(N){for(;Array.isArray(N);){if("object"==typeof N[Wa])return N;N=N[Ii]}return null}(ae[Y.index])),ae[kr]}function Wg(N,Y){const ae=N[qo],ke=ae?ae.get(Al,null):null;ke&&ke.handleError(Y)}function u_(N,Y,ae,ke,et){for(let tn=0;tn<ae.length;){const ni=ae[tn++],Hi=ae[tn++];Vg(N.data[ni],Y[ni],ke,Hi,et)}}function Ap(N,Y,ae){const ke=Ue(Y,N);$u(N[kr],ke,ae)}function M_(N,Y){const ae=yt(Y,N),ke=ae[yo];!function ig(N,Y){for(let ae=Y.length;ae<N.blueprint.length;ae++)Y.push(N.blueprint[ae])}(ke,ae);const et=ae[Ii];null!==et&&null===ae[Ds]&&(ae[Ds]=Zd(et,ae[qo])),h_(ke,ae,ae[Zn])}function h_(N,Y,ae){pa(Y);try{const ke=N.viewQuery;null!==ke&&cu(1,ke,ae);const et=N.template;null!==et&&Xu(N,Y,et,1,ae),N.firstCreatePass&&(N.firstCreatePass=!1),N.staticContentQueries&&Ip(N,Y),N.staticViewQueries&&cu(2,N.viewQuery,ae);const tn=N.components;null!==tn&&function f_(N,Y){for(let ae=0;ae<Y.length;ae++)M_(N,Y[ae])}(Y,tn)}catch(ke){throw N.firstCreatePass&&(N.incompleteFirstPass=!0,N.firstCreatePass=!1),ke}finally{Y[lr]&=-5,rn()}}let Mm=(()=>{class N{static#e=this.__NG_ELEMENT_ID__=k_;static#t=this.__NG_ENV_ID__=ae=>ae}return N})();class Y_ extends Mm{constructor(Y){super(),this._lView=Y}onDestroy(Y){return io(this._lView,Y),()=>function Wi(N,Y){if(null===N[js])return;const ae=N[js].indexOf(Y);-1!==ae&&N[js].splice(ae,1)}(this._lView,Y)}}function k_(){return new Y_(cs())}let F_=(()=>{class N{constructor(){this.all=new Set,this.queue=new Map}create(ae,ke,et){const tn=typeof Zone>"u"?null:Zone.current,ni=new Wn(ae,Yo=>{this.all.has(Yo)&&this.queue.set(Yo,tn)},et);let Hi;this.all.add(ni),ni.notify();const lo=()=>{ni.cleanup(),Hi?.(),this.all.delete(ni),this.queue.delete(ni)};return Hi=ke?.onDestroy(lo),{destroy:lo}}flush(){if(0!==this.queue.size)for(const[ae,ke]of this.queue)this.queue.delete(ae),ke?ke.run(()=>ae.run()):ae.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=Te({token:N,providedIn:"root",factory:()=>new N})}return N})();function dr(N,Y,ae){let ke=ae?N.styles:null,et=ae?N.classes:null,tn=0;if(null!==Y)for(let ni=0;ni<Y.length;ni++){const Hi=Y[ni];"number"==typeof Hi?tn=Hi:1==tn?et=x(et,Hi):2==tn&&(ke=x(ke,Hi+": "+Y[++ni]+";"))}ae?N.styles=ke:N.stylesWithoutHost=ke,ae?N.classes=et:N.classesWithoutHost=et}function Ir(N,Y,ae,ke,et=!1){for(;null!==ae;){const tn=Y[ae.index];if(null!==tn&&ke.push(qn(tn)),Yi(tn)){for(let Hi=ht;Hi<tn.length;Hi++){const lo=tn[Hi],Yo=lo[yo].firstChild;null!==Yo&&Ir(lo[yo],lo,Yo,ke)}tn[Za]!==tn[Ii]&&ke.push(tn[Za])}const ni=ae.type;if(8&ni)Ir(N,Y,ae.child,ke);else if(32&ni){const Hi=ah(ae,Y);let lo;for(;lo=Hi();)ke.push(lo)}else if(16&ni){const Hi=Ri(Y,ae);if(Array.isArray(Hi))ke.push(...Hi);else{const lo=kh(Y[Ss]);Ir(lo[yo],lo,Hi,ke,!0)}}ae=et?ae.projectionNext:ae.next}return ke}function Se(N,Y,ae,ke=!0){const et=Y[Cr].rendererFactory;et.begin&&et.begin();try{so(N,Y,N.template,ae)}catch(ni){throw ke&&Wg(Y,ni),ni}finally{et.end&&et.end(),Y[Cr].effectManager?.flush()}}function so(N,Y,ae,ke){const et=Y[lr];if(256!=(256&et)){Y[Cr].effectManager?.flush(),pa(Y);try{po(Y),function il(N){return fo.lFrame.bindingIndex=N}(N.bindingStartIndex),null!==ae&&Xu(N,Y,ae,2,ke);const ni=3==(3&et);if(ni){const Yo=N.preOrderCheckHooks;null!==Yo&&ec(Y,Yo,null)}else{const Yo=N.preOrderHooks;null!==Yo&&Wl(Y,Yo,0,null),va(Y,0)}if(function Er(N){for(let Y=gf(N);null!==Y;Y=Lp(Y)){if(!Y[ll])continue;const ae=Y[Jt];for(let ke=0;ke<ae.length;ke++){$i(ae[ke])}}}(Y),Vo(Y,2),null!==N.contentQueries&&Ip(N,Y),ni){const Yo=N.contentCheckHooks;null!==Yo&&ec(Y,Yo)}else{const Yo=N.contentHooks;null!==Yo&&Wl(Y,Yo,1),va(Y,1)}!function ua(N,Y){const ae=N.hostBindingOpCodes;if(null===ae)return;const ke=Vu(Y,ls);try{for(let et=0;et<ae.length;et++){const tn=ae[et];if(tn<0)Qt(~tn);else{const ni=tn,Hi=ae[++et],lo=ae[++et];Dr(Hi,ni),ke.runInContext(lo,2,Y[ni])}}}finally{null===Y[ls]&&Mp(Y,ls),Qt(-1)}}(N,Y);const Hi=N.components;null!==Hi&&Rs(Y,Hi,0);const lo=N.viewQuery;if(null!==lo&&cu(2,lo,ke),ni){const Yo=N.viewCheckHooks;null!==Yo&&ec(Y,Yo)}else{const Yo=N.viewHooks;null!==Yo&&Wl(Y,Yo,2),va(Y,2)}!0===N.firstUpdatePass&&(N.firstUpdatePass=!1),Y[lr]&=-73,ro(Y)}finally{rn()}}}function Vo(N,Y){for(let ae=gf(N);null!==ae;ae=Lp(ae))for(let ke=ht;ke<ae.length;ke++)Xr(ae[ke],Y)}function Vr(N,Y,ae){Xr(yt(Y,N),ae)}function Xr(N,Y){if(!function zi(N){return 128==(128&N[lr])}(N))return;const ae=N[yo];if(80&N[lr]&&0===Y||1024&N[lr]||2===Y)so(ae,N,ae.template,N[Zn]);else if(N[fi]>0){Vo(N,1);const et=N[yo].components;null!==et&&Rs(N,et,1)}}function Rs(N,Y,ae){for(let ke=0;ke<Y.length;ke++)Vr(N,Y[ke],ae)}class sa{get rootNodes(){const Y=this._lView,ae=Y[yo];return Ir(ae,Y,ae.firstChild,[])}constructor(Y,ae){this._lView=Y,this._cdRefInjectingView=ae,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Zn]}set context(Y){this._lView[Zn]=Y}get destroyed(){return 256==(256&this._lView[lr])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const Y=this._lView[Yr];if(Yi(Y)){const ae=Y[8],ke=ae?ae.indexOf(this):-1;ke>-1&&(ch(Y,ke),er(ae,ke))}this._attachedToViewContainer=!1}Uf(this._lView[yo],this._lView)}onDestroy(Y){io(this._lView,Y)}markForCheck(){Es(this._cdRefInjectingView||this._lView)}detach(){this._lView[lr]&=-129}reattach(){this._lView[lr]|=128}detectChanges(){Se(this._lView[yo],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Rd(N,Y){$r(N,Y,Y[kr],2,null,null)}(this._lView[yo],this._lView)}attachToAppRef(Y){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=Y}}class ma extends sa{constructor(Y){super(Y),this._view=Y}detectChanges(){const Y=this._view;Se(Y[yo],Y,Y[Zn],!1)}checkNoChanges(){}get context(){return null}}class Ma extends Gm{constructor(Y){super(),this.ngModule=Y}resolveComponentFactory(Y){const ae=Ao(Y);return new sc(ae,this.ngModule)}}function Qa(N){const Y=[];for(let ae in N)N.hasOwnProperty(ae)&&Y.push({propName:N[ae],templateName:ae});return Y}class El{constructor(Y,ae){this.injector=Y,this.parentInjector=ae}get(Y,ae,ke){ke=Mt(ke);const et=this.injector.get(Y,Hr,ke);return et!==Hr||ae===Hr?et:this.parentInjector.get(Y,ae,ke)}}class sc extends ol{get inputs(){const Y=this.componentDef,ae=Y.inputTransforms,ke=Qa(Y.inputs);if(null!==ae)for(const et of ke)ae.hasOwnProperty(et.propName)&&(et.transform=ae[et.propName]);return ke}get outputs(){return Qa(this.componentDef.outputs)}constructor(Y,ae){super(),this.componentDef=Y,this.ngModule=ae,this.componentType=Y.type,this.selector=function Io(N){return N.map(Gn).join(",")}(Y.selectors),this.ngContentSelectors=Y.ngContentSelectors?Y.ngContentSelectors:[],this.isBoundToModule=!!ae}create(Y,ae,ke,et){let tn=(et=et||this.ngModule)instanceof Sp?et:et?.injector;tn&&null!==this.componentDef.getStandaloneInjector&&(tn=this.componentDef.getStandaloneInjector(tn)||tn);const ni=tn?new El(Y,tn):Y,Hi=ni.get(Cn,null);if(null===Hi)throw new b(407,!1);const Tr={rendererFactory:Hi,sanitizer:ni.get(Ln,null),effectManager:ni.get(F_,null)},Kr=Hi.createRenderer(null,this.componentDef),Fs=this.componentDef.selectors[0][0]||"div",Qs=ke?function jp(N,Y,ae,ke){const tn=ke.get(wl,!1)||ae===Pi.ShadowDom,ni=N.selectRootElement(Y,tn);return function Bg(N){zg(N)}(ni),ni}(Kr,ke,this.componentDef.encapsulation,ni):Qp(Kr,Fs,function Cl(N){const Y=N.toLowerCase();return"svg"===Y?Ai:"math"===Y?"math":null}(Fs)),Ml=this.componentDef.signals?4608:this.componentDef.onPush?576:528,ic=bh(0,null,null,1,0,null,null,null,null,null,null),Ga=Ja(null,ic,null,Ml,null,null,Tr,Kr,ni,null,null);let ld,Kd;pa(Ga);try{const Du=this.componentDef;let Ig,$y=null;Du.findHostDirectiveDefs?(Ig=[],$y=new Map,Du.findHostDirectiveDefs(Du,Ig,$y),Ig.push(Du)):Ig=[Du];const r2=function Kc(N,Y){const ae=N[yo],ke=Hs;return N[ke]=Y,jl(ae,ke,2,"#host",null)}(Ga,Qs),Qw=function gp(N,Y,ae,ke,et,tn,ni){const Hi=et[yo];!function Jf(N,Y,ae,ke){for(const et of N)Y.mergedAttrs=jo(Y.mergedAttrs,et.hostAttrs);null!==Y.mergedAttrs&&(dr(Y,Y.mergedAttrs,!0),null!==ae&&Zl(ke,ae,Y))}(ke,N,Y,ni);let lo=null;null!==Y&&(lo=Zd(Y,et[qo]));const Yo=tn.rendererFactory.createRenderer(Y,ae);let Tr=16;ae.signals?Tr=4096:ae.onPush&&(Tr=64);const Kr=Ja(et,Wu(ae),null,Tr,et[N.index],N,tn,Yo,null,null,lo);return Hi.firstCreatePass&&a_(Hi,N,ke.length-1),Fh(et,Kr),et[N.index]=Kr}(r2,Qs,Du,Ig,Ga,Tr,Kr);Kd=pe(ic,Hs),Qs&&function Lu(N,Y,ae,ke){if(ke)Xi(N,ae,["ng-version",Jo.full]);else{const{attrs:et,classes:tn}=function wr(N){const Y=[],ae=[];let ke=1,et=2;for(;ke<N.length;){let tn=N[ke];if("string"==typeof tn)2===et?""!==tn&&Y.push(tn,N[++ke]):8===et&&ae.push(tn);else{if(!or(et))break;et=tn}ke++}return{attrs:Y,classes:ae}}(Y.selectors[0]);et&&Xi(N,ae,et),tn&&tn.length>0&&Pl(N,ae,tn.join(" "))}}(Kr,Du,Qs,ke),void 0!==ae&&function og(N,Y,ae){const ke=N.projection=[];for(let et=0;et<Y.length;et++){const tn=ae[et];ke.push(null!=tn?Array.from(tn):null)}}(Kd,this.ngContentSelectors,ae),ld=function Yp(N,Y,ae,ke,et,tn){const ni=pi(),Hi=et[yo],lo=Ye(ni,et);Nh(Hi,et,ni,ae,null,ke);for(let Tr=0;Tr<ae.length;Tr++)Uc(dc(et,Hi,ni.directiveStart+Tr,ni),et);ng(Hi,et,ni),lo&&Uc(lo,et);const Yo=dc(et,Hi,ni.directiveStart+ni.componentOffset,ni);if(N[Zn]=et[Zn]=Yo,null!==tn)for(const Tr of tn)Tr(Yo,Y);return Lh(Hi,ni,N),Yo}(Qw,Du,Ig,$y,Ga,[jg]),h_(ic,Ga,null)}finally{rn()}return new Yl(this.componentType,ld,hh(Kd,Ga),Ga,Kd)}}class Yl extends Ac{constructor(Y,ae,ke,et,tn){super(),this.location=ke,this._rootLView=et,this._tNode=tn,this.previousInputValues=null,this.instance=ae,this.hostView=this.changeDetectorRef=new ma(et),this.componentType=Y}setInput(Y,ae){const ke=this._tNode.inputs;let et;if(null!==ke&&(et=ke[Y])){if(this.previousInputValues??=new Map,this.previousInputValues.has(Y)&&Object.is(this.previousInputValues.get(Y),ae))return;const tn=this._rootLView;u_(tn[yo],tn,et,Y,ae),this.previousInputValues.set(Y,ae),Es(yt(this._tNode.index,tn))}}get injector(){return new Rc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(Y){this.hostView.onDestroy(Y)}}function jg(){const N=pi();bc(cs()[yo],N)}function $h(N){let Y=function vv(N){return Object.getPrototypeOf(N.prototype).constructor}(N.type),ae=!0;const ke=[N];for(;Y;){let et;if(Ur(N))et=Y.\u0275cmp||Y.\u0275dir;else{if(Y.\u0275cmp)throw new b(903,!1);et=Y.\u0275dir}if(et){if(ae){ke.push(et);const ni=N;ni.inputs=r0(N.inputs),ni.inputTransforms=r0(N.inputTransforms),ni.declaredInputs=r0(N.declaredInputs),ni.outputs=r0(N.outputs);const Hi=et.hostBindings;Hi&&V0(N,Hi);const lo=et.viewQuery,Yo=et.contentQueries;if(lo&&L1(N,lo),Yo&&H0(N,Yo),C(N.inputs,et.inputs),C(N.declaredInputs,et.declaredInputs),C(N.outputs,et.outputs),null!==et.inputTransforms&&(null===ni.inputTransforms&&(ni.inputTransforms={}),C(ni.inputTransforms,et.inputTransforms)),Ur(et)&&et.data.animation){const Tr=N.data;Tr.animation=(Tr.animation||[]).concat(et.data.animation)}}const tn=et.features;if(tn)for(let ni=0;ni<tn.length;ni++){const Hi=tn[ni];Hi&&Hi.ngInherit&&Hi(N),Hi===$h&&(ae=!1)}}Y=Object.getPrototypeOf(Y)}!function Lv(N){let Y=0,ae=null;for(let ke=N.length-1;ke>=0;ke--){const et=N[ke];et.hostVars=Y+=et.hostVars,et.hostAttrs=jo(et.hostAttrs,ae=jo(ae,et.hostAttrs))}}(ke)}function r0(N){return N===go?{}:N===si?[]:N}function L1(N,Y){const ae=N.viewQuery;N.viewQuery=ae?(ke,et)=>{Y(ke,et),ae(ke,et)}:Y}function H0(N,Y){const ae=N.contentQueries;N.contentQueries=ae?(ke,et,tn)=>{Y(ke,et,tn),ae(ke,et,tn)}:Y}function V0(N,Y){const ae=N.hostBindings;N.hostBindings=ae?(ke,et)=>{Y(ke,et),ae(ke,et)}:Y}function W0(N){const Y=N.inputConfig,ae={};for(const ke in Y)if(Y.hasOwnProperty(ke)){const et=Y[ke];Array.isArray(et)&&et[2]&&(ae[ke]=et[2])}N.inputTransforms=ae}function a0(N){return!!Fv(N)&&(Array.isArray(N)||!(N instanceof Map)&&Symbol.iterator in N)}function Fv(N){return null!==N&&("function"==typeof N||"object"==typeof N)}function Sg(N,Y,ae){return N[Y]=ae}function c0(N,Y){return N[Y]}function du(N,Y,ae){return!Object.is(N[Y],ae)&&(N[Y]=ae,!0)}function pm(N,Y,ae,ke){const et=du(N,Y,ae);return du(N,Y+1,ke)||et}function Wm(N,Y,ae,ke,et){const tn=pm(N,Y,ae,ke);return du(N,Y+2,et)||tn}function rg(N,Y,ae,ke,et,tn){const ni=pm(N,Y,ae,ke);return pm(N,Y+2,et,tn)||ni}function Zp(N,Y,ae,ke){const et=cs();return du(et,xl(),Y)&&(Ps(),function fm(N,Y,ae,ke,et,tn){const ni=Ye(N,Y);d_(Y[kr],ni,tn,N.value,ae,ke,et)}(gi(),et,N,Y,ae,ke)),Zp}function zc(N,Y,ae,ke){return du(N,xl(),ae)?Y+L(ae)+ke:Hl}function Eg(N,Y,ae,ke,et,tn){const Hi=pm(N,nl(),ae,et);return eo(2),Hi?Y+L(ae)+ke+L(et)+tn:Hl}function nv(N,Y,ae,ke,et,tn,ni,Hi){const Yo=Wm(N,nl(),ae,et,ni);return eo(3),Yo?Y+L(ae)+ke+L(et)+tn+L(ni)+Hi:Hl}function K_(N,Y,ae,ke,et,tn,ni,Hi,lo,Yo){const Kr=rg(N,nl(),ae,et,ni,lo);return eo(4),Kr?Y+L(ae)+ke+L(et)+tn+L(ni)+Hi+L(lo)+Yo:Hl}function p_(N,Y,ae,ke,et,tn,ni,Hi){const lo=cs(),Yo=Ps(),Tr=N+Hs,Kr=Yo.firstCreatePass?function r1(N,Y,ae,ke,et,tn,ni,Hi,lo){const Yo=Y.consts,Tr=jl(Y,N,4,ni||null,ho(Yo,Hi));hm(Y,ae,Tr,ho(Yo,lo)),bc(Y,Tr);const Kr=Tr.tView=bh(2,Tr,ke,et,tn,Y.directiveRegistry,Y.pipeRegistry,null,Y.schemas,Yo,null);return null!==Y.queries&&(Y.queries.template(Y,Tr),Kr.queries=Y.queries.embeddedTView(Tr)),Tr}(Tr,Yo,lo,Y,ae,ke,et,tn,ni):Yo.data[Tr];Sr(Kr,!1);const Fs=A_(Yo,lo,Kr,N);za()&&Np(Yo,lo,Fs,Kr),Uc(Fs,lo),Fh(lo,lo[Tr]=mp(Fs,lo,Fs,Kr)),yr(Kr)&&qu(Yo,lo,Kr),null!=ni&&lf(lo,Kr,Hi)}let A_=function wv(N,Y,ae,ke){return cl(!0),Y[kr].createComment("")};function W1(N){return lt(function Ys(){return fo.lFrame.contextLView}(),Hs+N)}function _0(N,Y,ae){const ke=cs();return du(ke,xl(),Y)&&Ef(Ps(),gi(),ke,N,Y,ke[kr],ae,!1),_0}function s1(N,Y,ae,ke,et){const ni=et?"class":"style";u_(N,ae,Y.inputs[ni],ni,ke)}function Ev(N,Y,ae,ke){const et=cs(),tn=Ps(),ni=Hs+N,Hi=et[kr],lo=tn.firstCreatePass?function a1(N,Y,ae,ke,et,tn){const ni=Y.consts,lo=jl(Y,N,2,ke,ho(ni,et));return hm(Y,ae,lo,ho(ni,tn)),null!==lo.attrs&&dr(lo,lo.attrs,!1),null!==lo.mergedAttrs&&dr(lo,lo.mergedAttrs,!0),null!==Y.queries&&Y.queries.elementStart(Y,lo),lo}(ni,tn,et,Y,ae,ke):tn.data[ni],Yo=my(tn,et,lo,Hi,Y,N);et[ni]=Yo;const Tr=yr(lo);return Sr(lo,!0),Zl(Hi,Yo,lo),32!=(32&lo.flags)&&za()&&Np(tn,et,Yo,lo),0===function jr(){return fo.lFrame.elementDepthCount}()&&Uc(Yo,et),function fs(){fo.lFrame.elementDepthCount++}(),Tr&&(qu(tn,et,lo),Lh(tn,lo,et)),null!==ke&&lf(et,lo),Ev}function Hv(){let N=pi();rs()?Os():(N=N.parent,Sr(N,!1));const Y=N;(function ts(N){return fo.skipHydrationRootTNode===N})(Y)&&function Ws(){fo.skipHydrationRootTNode=null}(),function Ms(){fo.lFrame.elementDepthCount--}();const ae=Ps();return ae.firstCreatePass&&(bc(ae,N),co(N)&&ae.queries.elementEnd(N)),null!=Y.classesWithoutHost&&function Jc(N){return 0!=(8&N.flags)}(Y)&&s1(ae,Y,cs(),Y.classesWithoutHost,!0),null!=Y.stylesWithoutHost&&function nh(N){return 0!=(16&N.flags)}(Y)&&s1(ae,Y,cs(),Y.stylesWithoutHost,!1),Hv}function l1(N,Y,ae,ke){return Ev(N,Y,ae,ke),Hv(),l1}let my=(N,Y,ae,ke,et,tn)=>(cl(!0),Qp(ke,et,function Zs(){return fo.lFrame.currentNamespace}()));function c1(N,Y,ae){const ke=cs(),et=Ps(),tn=N+Hs,ni=et.firstCreatePass?function sv(N,Y,ae,ke,et){const tn=Y.consts,ni=ho(tn,ke),Hi=jl(Y,N,8,"ng-container",ni);return null!==ni&&dr(Hi,ni,!0),hm(Y,ae,Hi,ho(tn,et)),null!==Y.queries&&Y.queries.elementStart(Y,Hi),Hi}(tn,et,ke,Y,ae):et.data[tn];Sr(ni,!0);const Hi=_y(et,ke,ni,N);return ke[tn]=Hi,za()&&Np(et,ke,Hi,ni),Uc(Hi,ke),yr(ni)&&(qu(et,ke,ni),Lh(et,ni,ke)),null!=ae&&lf(ke,ni),c1}function av(){let N=pi();const Y=Ps();return rs()?Os():(N=N.parent,Sr(N,!1)),Y.firstCreatePass&&(bc(Y,N),co(N)&&Y.queries.elementEnd(N)),av}function Vv(N,Y,ae){return c1(N,Y,ae),av(),Vv}let _y=(N,Y,ae,ke)=>(cl(!0),jh(Y[kr],""));function vy(){return cs()}function J_(N){return!!N&&"function"==typeof N.then}function ie(N){return!!N&&"function"==typeof N.subscribe}function Qe(N,Y,ae,ke){const et=cs(),tn=Ps(),ni=pi();return kt(tn,et,et[kr],ni,N,Y,ke),Qe}function h(N,Y){const ae=pi(),ke=cs(),et=Ps();return kt(et,ke,xg(Ia(et.data),ae,ke),ae,N,Y),h}function kt(N,Y,ae,ke,et,tn,ni){const Hi=yr(ke),Yo=N.firstCreatePass&&Cg(N),Tr=Y[Zn],Kr=bg(Y);let Fs=!0;if(3&ke.type||ni){const Xa=Ye(ke,Y),Ml=ni?ni(Xa):Xa,ic=Kr.length,Ga=ni?Kd=>ni(qn(Kd[ke.index])):ke.index;let ld=null;if(!ni&&Hi&&(ld=function oe(N,Y,ae,ke){const et=N.cleanup;if(null!=et)for(let tn=0;tn<et.length-1;tn+=2){const ni=et[tn];if(ni===ae&&et[tn+1]===ke){const Hi=Y[_t],lo=et[tn+2];return Hi.length>lo?Hi[lo]:null}"string"==typeof ni&&(tn+=2)}return null}(N,Y,et,ke.index)),null!==ld)(ld.__ngLastListenerFn__||ld).__ngNextListenerFn__=tn,ld.__ngLastListenerFn__=tn,Fs=!1;else{tn=Zo(ke,Y,Tr,tn,!1);const Kd=ae.listen(Ml,et,tn);Kr.push(tn,Kd),Yo&&Yo.push(et,Ga,ic,ic+1)}}else tn=Zo(ke,Y,Tr,tn,!1);const Qs=ke.outputs;let Na;if(Fs&&null!==Qs&&(Na=Qs[et])){const Xa=Na.length;if(Xa)for(let Ml=0;Ml<Xa;Ml+=2){const Du=Y[Na[Ml]][Na[Ml+1]].subscribe(tn),Ig=Kr.length;Kr.push(tn,Du),Yo&&Yo.push(et,ke.index,Ig,-(Ig+1))}}}function ti(N,Y,ae,ke){try{return Oi(6,Y,ae),!1!==ae(ke)}catch(et){return Wg(N,et),!1}finally{Oi(7,Y,ae)}}function Zo(N,Y,ae,ke,et){return function tn(ni){if(ni===Function)return ke;Es(N.componentOffset>-1?yt(N.index,Y):Y);let lo=ti(Y,ae,ke,ni),Yo=tn.__ngNextListenerFn__;for(;Yo;)lo=ti(Y,ae,Yo,ni)&&lo,Yo=Yo.__ngNextListenerFn__;return et&&!1===lo&&ni.preventDefault(),lo}}function hr(N=1){return function We(N){return(fo.lFrame.contextLView=function Ft(N,Y){for(;N>0;)Y=Y[Ts],N--;return Y}(N,fo.lFrame.contextLView))[Zn]}(N)}function Cs(N,Y){let ae=null;const ke=function as(N){const Y=N.attrs;if(null!=Y){const ae=Y.indexOf(5);if(!(1&ae))return Y[ae+1]}return null}(N);for(let et=0;et<Y.length;et++){const tn=Y[et];if("*"!==tn){if(null===ke?Nr(N,tn,!0):rt(ke,tn))return et}else ae=et}return ae}function aa(N){const Y=cs()[Ss][Ho];if(!Y.projection){const ke=Y.projection=Br(N?N.length:1,null),et=ke.slice();let tn=Y.child;for(;null!==tn;){const ni=N?Cs(tn,N):0;null!==ni&&(et[ni]?et[ni].projectionNext=tn:ke[ni]=tn,et[ni]=tn),tn=tn.next}}}function $a(N,Y=0,ae){const ke=cs(),et=Ps(),tn=jl(et,Hs+N,16,null,ae||null);null===tn.projection&&(tn.projection=Y),Os(),(!ke[Ds]||ks())&&32!=(32&tn.flags)&&function ea(N,Y,ae){Fa(Y[kr],0,Y,ae,zu(N,ae,Y),au(ae.parent||Y[Ho],ae,Y))}(et,ke,tn)}function ja(N,Y,ae){return Ll(N,"",Y,"",ae),ja}function Ll(N,Y,ae,ke,et){const tn=cs(),ni=zc(tn,Y,ae,ke);return ni!==Hl&&Ef(Ps(),gi(),tn,N,ni,tn[kr],et,!1),Ll}function Gc(N,Y,ae,ke,et,tn,ni){const Hi=cs(),lo=Eg(Hi,Y,ae,ke,et,tn);return lo!==Hl&&Ef(Ps(),gi(),Hi,N,lo,Hi[kr],ni,!1),Gc}function Fc(N,Y,ae,ke,et,tn,ni,Hi,lo){const Yo=cs(),Tr=nv(Yo,Y,ae,ke,et,tn,ni,Hi);return Tr!==Hl&&Ef(Ps(),gi(),Yo,N,Tr,Yo[kr],lo,!1),Fc}function _u(N,Y,ae,ke,et,tn,ni,Hi,lo,Yo,Tr){const Kr=cs(),Fs=K_(Kr,Y,ae,ke,et,tn,ni,Hi,lo,Yo);return Fs!==Hl&&Ef(Ps(),gi(),Kr,N,Fs,Kr[kr],Tr,!1),_u}function $f(N,Y,ae,ke,et,tn,ni,Hi,lo,Yo,Tr,Kr,Fs,Qs,Na,Xa,Ml){const ic=cs(),Ga=function bv(N,Y,ae,ke,et,tn,ni,Hi,lo,Yo,Tr,Kr,Fs,Qs,Na,Xa){const Ml=nl();let ic=rg(N,Ml,ae,et,ni,lo);return ic=Wm(N,Ml+4,Tr,Fs,Na)||ic,eo(7),ic?Y+L(ae)+ke+L(et)+tn+L(ni)+Hi+L(lo)+Yo+L(Tr)+Kr+L(Fs)+Qs+L(Na)+Xa:Hl}(ic,Y,ae,ke,et,tn,ni,Hi,lo,Yo,Tr,Kr,Fs,Qs,Na,Xa);return Ga!==Hl&&Ef(Ps(),gi(),ic,N,Ga,ic[kr],Ml,!1),$f}function ju(N,Y){return N<<17|Y<<2}function Zm(N){return N>>17&32767}function lv(N){return 2|N}function m_(N){return(131068&N)>>2}function $_(N,Y){return-131069&N|Y<<2}function Q_(N){return 1|N}function b0(N,Y,ae,ke,et){const tn=N[ae+1],ni=null===Y;let Hi=ke?Zm(tn):m_(tn),lo=!1;for(;0!==Hi&&(!1===lo||ni);){const Tr=N[Hi+1];u1(N[Hi],Y)&&(lo=!0,N[Hi+1]=ke?Q_(Tr):lv(Tr)),Hi=ke?Zm(Tr):m_(Tr)}lo&&(N[ae+1]=ke?lv(tn):Q_(tn))}function u1(N,Y){return null===N||null==Y||(Array.isArray(N)?N[1]:N)===Y||!(!Array.isArray(N)||"string"!=typeof Y)&&ml(N,Y)>=0}const df={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function h1(N){return N.substring(df.key,df.keyEnd)}function Y1(N){return N.substring(df.value,df.valueEnd)}function q_(N,Y){const ae=df.textEnd;return ae===Y?-1:(Y=df.keyEnd=function Wv(N,Y,ae){for(;Y<ae&&N.charCodeAt(Y)>32;)Y++;return Y}(N,df.key=Y,ae),cv(N,Y,ae))}function ad(N,Y){const ae=df.textEnd;let ke=df.key=cv(N,Y,ae);return ae===ke?-1:(ke=df.keyEnd=function C0(N,Y,ae){let ke;for(;Y<ae&&(45===(ke=N.charCodeAt(Y))||95===ke||(-33&ke)>=65&&(-33&ke)<=90||ke>=48&&ke<=57);)Y++;return Y}(N,ke,ae),ke=dv(N,ke,ae),ke=df.value=cv(N,ke,ae),ke=df.valueEnd=function x0(N,Y,ae){let ke=-1,et=-1,tn=-1,ni=Y,Hi=ni;for(;ni<ae;){const lo=N.charCodeAt(ni++);if(59===lo)return Hi;34===lo||39===lo?Hi=ni=Dv(N,lo,ni,ae):Y===ni-4&&85===tn&&82===et&&76===ke&&40===lo?Hi=ni=Dv(N,41,ni,ae):lo>32&&(Hi=ni),tn=et,et=ke,ke=-33&lo}return Hi}(N,ke,ae),dv(N,ke,ae))}function p1(N){df.key=0,df.keyEnd=0,df.value=0,df.valueEnd=0,df.textEnd=N.length}function cv(N,Y,ae){for(;Y<ae&&N.charCodeAt(Y)<=32;)Y++;return Y}function dv(N,Y,ae,ke){return(Y=cv(N,Y,ae))<ae&&Y++,Y}function Dv(N,Y,ae,ke){let et=-1,tn=ae;for(;tn<ke;){const ni=N.charCodeAt(tn++);if(ni==Y&&92!==et)return tn;et=92==ni&&92===et?0:ni}throw new Error}function uv(N,Y,ae){return sg(N,Y,ae,!1),uv}function ev(N,Y){return sg(N,Y,null,!0),ev}function Dg(N){ag($v,S0,N,!1)}function S0(N,Y){for(let ae=function td(N){return p1(N),ad(N,cv(N,0,df.textEnd))}(Y);ae>=0;ae=ad(Y,ae))$v(N,h1(Y),Y1(Y))}function uu(N){ag(Mv,Mg,N,!0)}function Mg(N,Y){for(let ae=function f1(N){return p1(N),q_(N,cv(N,0,df.textEnd))}(Y);ae>=0;ae=q_(Y,ae))Aa(N,h1(Y),!0)}function sg(N,Y,ae,ke){const et=cs(),tn=Ps(),ni=eo(2);tn.firstUpdatePass&&Zv(tn,N,ni,ke),Y!==Hl&&du(et,ni,Y)&&M0(tn,tn.data[ct()],et,et[kr],N,et[ni+1]=function yy(N,Y){return null==N||""===N||("string"==typeof Y?N+=Y:"object"==typeof N&&(N=R(yf(N)))),N}(Y,ae),ke,ni)}function ag(N,Y,ae,ke){const et=Ps(),tn=eo(2);et.firstUpdatePass&&Zv(et,null,tn,ke);const ni=cs();if(ae!==Hl&&du(ni,tn,ae)){const Hi=et.data[ct()];if(g1(Hi,ke)&&!Yv(et,tn)){let lo=ke?Hi.classesWithoutHost:Hi.stylesWithoutHost;null!==lo&&(ae=x(lo,ae||"")),s1(et,Hi,ni,ae,ke)}else!function m1(N,Y,ae,ke,et,tn,ni,Hi){et===Hl&&(et=si);let lo=0,Yo=0,Tr=0<et.length?et[0]:null,Kr=0<tn.length?tn[0]:null;for(;null!==Tr||null!==Kr;){const Fs=lo<et.length?et[lo+1]:void 0,Qs=Yo<tn.length?tn[Yo+1]:void 0;let Xa,Na=null;Tr===Kr?(lo+=2,Yo+=2,Fs!==Qs&&(Na=Kr,Xa=Qs)):null===Kr||null!==Tr&&Tr<Kr?(lo+=2,Na=Tr):(Yo+=2,Na=Kr,Xa=Qs),null!==Na&&M0(N,Y,ae,ke,Na,Xa,ni,Hi),Tr=lo<et.length?et[lo]:null,Kr=Yo<tn.length?tn[Yo]:null}}(et,Hi,ni,ni[kr],ni[tn+1],ni[tn+1]=function D0(N,Y,ae){if(null==ae||""===ae)return si;const ke=[],et=yf(ae);if(Array.isArray(et))for(let tn=0;tn<et.length;tn++)N(ke,et[tn],!0);else if("object"==typeof et)for(const tn in et)et.hasOwnProperty(tn)&&N(ke,tn,et[tn]);else"string"==typeof et&&Y(ke,et);return ke}(N,Y,ae),ke,tn)}}function Yv(N,Y){return Y>=N.expandoStartIndex}function Zv(N,Y,ae,ke){const et=N.data;if(null===et[ae+1]){const tn=et[ct()],ni=Yv(N,ae);g1(tn,ke)&&null===Y&&!ni&&(Y=!1),Y=function Kv(N,Y,ae,ke){const et=Ia(N);let tn=ke?Y.residualClasses:Y.residualStyles;if(null===et)0===(ke?Y.classBindings:Y.styleBindings)&&(ae=tv(ae=Jv(null,N,Y,ae,ke),Y.attrs,ke),tn=null);else{const ni=Y.directiveStylingLast;if(-1===ni||N[ni]!==et)if(ae=Jv(et,N,Y,ae,ke),null===tn){let lo=function w0(N,Y,ae){const ke=ae?Y.classBindings:Y.styleBindings;if(0!==m_(ke))return N[Zm(ke)]}(N,Y,ke);void 0!==lo&&Array.isArray(lo)&&(lo=Jv(null,N,Y,lo[1],ke),lo=tv(lo,Y.attrs,ke),function E0(N,Y,ae,ke){N[Zm(ae?Y.classBindings:Y.styleBindings)]=ke}(N,Y,ke,lo))}else tn=function T0(N,Y,ae){let ke;const et=Y.directiveEnd;for(let tn=1+Y.directiveStylingLast;tn<et;tn++)ke=tv(ke,N[tn].hostAttrs,ae);return tv(ke,Y.attrs,ae)}(N,Y,ke)}return void 0!==tn&&(ke?Y.residualClasses=tn:Y.residualStyles=tn),ae}(et,tn,Y,ke),function X_(N,Y,ae,ke,et,tn){let ni=tn?Y.classBindings:Y.styleBindings,Hi=Zm(ni),lo=m_(ni);N[ke]=ae;let Tr,Yo=!1;if(Array.isArray(ae)?(Tr=ae[1],(null===Tr||ml(ae,Tr)>0)&&(Yo=!0)):Tr=ae,et)if(0!==lo){const Fs=Zm(N[Hi+1]);N[ke+1]=ju(Fs,Hi),0!==Fs&&(N[Fs+1]=$_(N[Fs+1],ke)),N[Hi+1]=function v0(N,Y){return 131071&N|Y<<17}(N[Hi+1],ke)}else N[ke+1]=ju(Hi,0),0!==Hi&&(N[Hi+1]=$_(N[Hi+1],ke)),Hi=ke;else N[ke+1]=ju(lo,0),0===Hi?Hi=ke:N[lo+1]=$_(N[lo+1],ke),lo=ke;Yo&&(N[ke+1]=lv(N[ke+1])),b0(N,Tr,ke,!0),b0(N,Tr,ke,!1),function Ec(N,Y,ae,ke,et){const tn=et?N.residualClasses:N.residualStyles;null!=tn&&"string"==typeof Y&&ml(tn,Y)>=0&&(ae[ke+1]=Q_(ae[ke+1]))}(Y,Tr,N,ke,tn),ni=ju(Hi,lo),tn?Y.classBindings=ni:Y.styleBindings=ni}(et,tn,Y,ae,ni,ke)}}function Jv(N,Y,ae,ke,et){let tn=null;const ni=ae.directiveEnd;let Hi=ae.directiveStylingLast;for(-1===Hi?Hi=ae.directiveStart:Hi++;Hi<ni&&(tn=Y[Hi],ke=tv(ke,tn.hostAttrs,et),tn!==N);)Hi++;return null!==N&&(ae.directiveStylingLast=Hi),ke}function tv(N,Y,ae){const ke=ae?1:2;let et=-1;if(null!==Y)for(let tn=0;tn<Y.length;tn++){const ni=Y[tn];"number"==typeof ni?et=ni:et===ke&&(Array.isArray(N)||(N=void 0===N?[]:["",N]),Aa(N,ni,!!ae||Y[++tn]))}return void 0===N?null:N}function $v(N,Y,ae){Aa(N,Y,yf(ae))}function Mv(N,Y,ae){const ke=String(Y);""!==ke&&!ke.includes(" ")&&Aa(N,ke,ae)}function M0(N,Y,ae,ke,et,tn,ni,Hi){if(!(3&Y.type))return;const lo=N.data,Yo=lo[Hi+1],Tr=function y0(N){return 1==(1&N)}(Yo)?Z1(lo,Y,ae,et,m_(Yo),ni):void 0;k0(Tr)||(k0(tn)||function Tg(N){return 2==(2&N)}(Yo)&&(tn=Z1(lo,null,ae,et,Hi,ni)),function bl(N,Y,ae,ke,et){if(Y)et?N.addClass(ae,ke):N.removeClass(ae,ke);else{let tn=-1===ke.indexOf("-")?void 0:Ol.DashCase;null==et?N.removeStyle(ae,ke,tn):("string"==typeof et&&et.endsWith("!important")&&(et=et.slice(0,-10),tn|=Ol.Important),N.setStyle(ae,ke,et,tn))}}(ke,ni,Ue(ct(),ae),et,tn))}function Z1(N,Y,ae,ke,et,tn){const ni=null===Y;let Hi;for(;et>0;){const lo=N[et],Yo=Array.isArray(lo),Tr=Yo?lo[1]:lo,Kr=null===Tr;let Fs=ae[et+1];Fs===Hl&&(Fs=Kr?si:void 0);let Qs=Kr?vl(Fs,ke):Tr===ke?Fs:void 0;if(Yo&&!k0(Qs)&&(Qs=vl(lo,ke)),k0(Qs)&&(Hi=Qs,ni))return Hi;const Na=N[et+1];et=ni?Zm(Na):m_(Na)}if(null!==Y){let lo=tn?Y.residualClasses:Y.residualStyles;null!=lo&&(Hi=vl(lo,ke))}return Hi}function k0(N){return void 0!==N}function g1(N,Y){return 0!=(N.flags&(Y?8:16))}function K1(N,Y=""){const ae=cs(),ke=Ps(),et=N+Hs,tn=ke.firstCreatePass?jl(ke,et,1,Y,null):ke.data[et],ni=_1(ke,ae,tn,Y,N);ae[et]=ni,za()&&Np(ke,ae,ni,tn),Sr(tn,!1)}let _1=(N,Y,ae,ke,et)=>(cl(!0),kf(Y[kr],ke));function pl(N){return I0("",N,""),pl}function I0(N,Y,ae){const ke=cs(),et=zc(ke,N,Y,ae);return et!==Hl&&Ap(ke,ct(),et),I0}function kv(N,Y,ae,ke,et){const tn=cs(),ni=Eg(tn,N,Y,ae,ke,et);return ni!==Hl&&Ap(tn,ct(),ni),kv}function v1(N,Y,ae,ke,et,tn,ni){const Hi=cs(),lo=nv(Hi,N,Y,ae,ke,et,tn,ni);return lo!==Hl&&Ap(Hi,ct(),lo),v1}function A0(N,Y,ae,ke,et,tn,ni,Hi,lo){const Yo=cs(),Tr=K_(Yo,N,Y,ae,ke,et,tn,ni,Hi,lo);return Tr!==Hl&&Ap(Yo,ct(),Tr),A0}function y1(N,Y,ae,ke,et,tn,ni,Hi,lo,Yo,Tr){const Kr=cs(),Fs=function z_(N,Y,ae,ke,et,tn,ni,Hi,lo,Yo,Tr,Kr){const Fs=nl();let Qs=rg(N,Fs,ae,et,ni,lo);return Qs=du(N,Fs+4,Tr)||Qs,eo(5),Qs?Y+L(ae)+ke+L(et)+tn+L(ni)+Hi+L(lo)+Yo+L(Tr)+Kr:Hl}(Kr,N,Y,ae,ke,et,tn,ni,Hi,lo,Yo,Tr);return Fs!==Hl&&Ap(Kr,ct(),Fs),y1}function sb(N,Y,ae){ag(Aa,Mg,zc(cs(),N,Y,ae),!0)}function Cy(N,Y,ae,ke,et){ag(Aa,Mg,Eg(cs(),N,Y,ae,ke,et),!0)}function xy(N,Y,ae,ke,et,tn,ni){ag(Aa,Mg,nv(cs(),N,Y,ae,ke,et,tn,ni),!0)}function Sy(N,Y,ae,ke,et,tn,ni,Hi,lo,Yo,Tr,Kr,Fs,Qs,Na,Xa,Ml){ag(Aa,Mg,function Op(N,Y,ae,ke,et,tn,ni,Hi,lo,Yo,Tr,Kr,Fs,Qs,Na,Xa,Ml,ic){const Ga=nl();let ld=rg(N,Ga,ae,et,ni,lo);return ld=rg(N,Ga+4,Tr,Fs,Na,Ml)||ld,eo(8),ld?Y+L(ae)+ke+L(et)+tn+L(ni)+Hi+L(lo)+Yo+L(Tr)+Kr+L(Fs)+Qs+L(Na)+Xa+L(Ml)+ic:Hl}(cs(),N,Y,ae,ke,et,tn,ni,Hi,lo,Yo,Tr,Kr,Fs,Qs,Na,Xa,Ml),!0)}function Q1(N,Y,ae){const ke=cs();return du(ke,xl(),Y)&&Ef(Ps(),gi(),ke,N,Y,ke[kr],ae,!0),Q1}function B(N,Y,ae){const ke=cs();if(du(ke,xl(),Y)){const tn=Ps(),ni=gi();Ef(tn,ni,ke,N,Y,xg(Ia(tn.data),ni,ke),ae,!0)}return B}const S=void 0;var W=["en",[["a","p"],["AM","PM"],S],[["AM","PM"],S,S],[["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"]],S,[["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"]],S,[["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}",S,"{1} 'at' {0}",S],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function T(N){const ae=Math.floor(Math.abs(N)),ke=N.toString().replace(/^[^.]*\.?/,"").length;return 1===ae&&0===ke?1:5}];let ce={};function qe(N){const Y=function rr(N){return N.toLowerCase().replace(/_/g,"-")}(N);let ae=bi(Y);if(ae)return ae;const ke=Y.split("-")[0];if(ae=bi(ke),ae)return ae;if("en"===ke)return W;throw new b(701,!1)}function _n(N){return qe(N)[Oo.PluralCase]}function bi(N){return N in ce||(ce[N]=nn.ng&&nn.ng.common&&nn.ng.common.locales&&nn.ng.common.locales[N]),ce[N]}var Oo=function(N){return N[N.LocaleId=0]="LocaleId",N[N.DayPeriodsFormat=1]="DayPeriodsFormat",N[N.DayPeriodsStandalone=2]="DayPeriodsStandalone",N[N.DaysFormat=3]="DaysFormat",N[N.DaysStandalone=4]="DaysStandalone",N[N.MonthsFormat=5]="MonthsFormat",N[N.MonthsStandalone=6]="MonthsStandalone",N[N.Eras=7]="Eras",N[N.FirstDayOfWeek=8]="FirstDayOfWeek",N[N.WeekendRange=9]="WeekendRange",N[N.DateFormat=10]="DateFormat",N[N.TimeFormat=11]="TimeFormat",N[N.DateTimeFormat=12]="DateTimeFormat",N[N.NumberSymbols=13]="NumberSymbols",N[N.NumberFormats=14]="NumberFormats",N[N.CurrencyCode=15]="CurrencyCode",N[N.CurrencySymbol=16]="CurrencySymbol",N[N.CurrencyName=17]="CurrencyName",N[N.Currencies=18]="Currencies",N[N.Directionality=19]="Directionality",N[N.PluralCase=20]="PluralCase",N[N.ExtraData=21]="ExtraData",N}(Oo||{});const fr=["zero","one","two","few","many"],As="en-US",hl={marker:"element"},Ul={marker:"ICU"};let kd=As;function P0(N,Y){const ae=N.data[Y];return null===ae||"string"==typeof ae?null:ae.hasOwnProperty("currentCaseLViewIndex")?ae:ae.value}function Xv(N,Y){const ae=Y[N.currentCaseLViewIndex];return null===ae?ae:ae<0?~ae:ae}function My(N){return N>>>17}function ky(N){return(131070&N)>>>1}let R0=0,L0=0;function ey(N,Y,ae,ke){const et=ae[kr];let ni,tn=null;for(let Hi=0;Hi<Y.length;Hi++){const lo=Y[Hi];if("string"==typeof lo){const Yo=Y[++Hi];null===ae[Yo]&&(ae[Yo]=kf(et,lo))}else if("number"==typeof lo)switch(1&lo){case 0:const Yo=My(lo);let Tr,Kr;if(null===tn&&(tn=Yo,ni=Af(et,ke)),Yo===tn?(Tr=ke,Kr=ni):(Tr=null,Kr=qn(ae[Yo])),null!==Kr){const Xa=ky(lo);_f(et,Kr,ae[Xa],Tr,!1);const ic=P0(N,Xa);if(null!==ic&&"object"==typeof ic){const Ga=Xv(ic,ae);null!==Ga&&ey(N,ic.create[Ga],ae,ae[ic.anchorIdx])}}break;case 1:const Qs=Y[++Hi],Na=Y[++Hi];d_(et,Ue(lo>>>1,ae),null,null,Qs,Na,null)}else switch(lo){case Ul:const Yo=Y[++Hi],Tr=Y[++Hi];null===ae[Tr]&&Uc(ae[Tr]=jh(et,Yo),ae);break;case hl:const Kr=Y[++Hi],Fs=Y[++Hi];null===ae[Fs]&&Uc(ae[Fs]=Qp(et,Kr,null),ae)}}}function Ay(N,Y,ae,ke,et){for(let tn=0;tn<ae.length;tn++){const ni=ae[tn],Hi=ae[++tn];if(ni&et){let lo="";for(let Yo=tn+1;Yo<=tn+Hi;Yo++){const Tr=ae[Yo];if("string"==typeof Tr)lo+=Tr;else if("number"==typeof Tr)if(Tr<0)lo+=L(Y[ke-Tr]);else{const Kr=Tr>>>2;switch(3&Tr){case 1:const Fs=ae[++Yo],Qs=ae[++Yo],Na=N.data[Kr];"string"==typeof Na?d_(Y[kr],Y[Kr],null,Na,Fs,lo,Qs):Ef(N,Na,Y,Fs,lo,Y[kr],Qs,!1);break;case 0:const Xa=Y[Kr];null!==Xa&&$u(Y[kr],Xa,lo);break;case 2:Py(N,P0(N,Kr),Y,lo);break;case 3:Oy(N,P0(N,Kr),ke,Y)}}}}else{const lo=ae[tn+1];if(lo>0&&3==(3&lo)){const Tr=P0(N,lo>>>2);Y[Tr.currentCaseLViewIndex]<0&&Oy(N,Tr,ke,Y)}}tn+=Hi}}function Oy(N,Y,ae,ke){let et=ke[Y.currentCaseLViewIndex];if(null!==et){let tn=R0;et<0&&(et=ke[Y.currentCaseLViewIndex]=~et,tn=-1),Ay(N,ke,Y.update[et],ae,tn)}}function Py(N,Y,ae,ke){const et=function yb(N,Y){let ae=N.cases.indexOf(Y);if(-1===ae)switch(N.type){case 1:{const ke=function Gr(N,Y){const ae=_n(Y)(parseInt(N,10)),ke=fr[ae];return void 0!==ke?ke:"other"}(Y,function mm(){return kd}());ae=N.cases.indexOf(ke),-1===ae&&"other"!==ke&&(ae=N.cases.indexOf("other"));break}case 0:ae=N.cases.indexOf("other")}return-1===ae?null:ae}(Y,ke);if(Xv(Y,ae)!==et&&(ty(N,Y,ae),ae[Y.currentCaseLViewIndex]=null===et?null:~et,null!==et)){const ni=ae[Y.anchorIdx];ni&&ey(N,Y.create[et],ae,ni)}}function ty(N,Y,ae){let ke=Xv(Y,ae);if(null!==ke){const et=Y.remove[ke];for(let tn=0;tn<et.length;tn++){const ni=et[tn];if(ni>0){const Hi=Ue(ni,ae);null!==Hi&&Ze(ae[kr],Hi)}else ty(N,P0(N,~ni),ae)}}}const lg=/\ufffd(\d+):?\d*\ufffd/gi,xC=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi;function ny(N,Y,ae,ke,et,tn){const ni=N.length,Hi=ni+1;N.push(null,null);const lo=ni+2,Yo=Y.split(lg);let Tr=0;for(let Kr=0;Kr<Yo.length;Kr++){const Fs=Yo[Kr];if(1&Kr){const Qs=et+parseInt(Fs,10);N.push(-1-Qs),Tr|=wC(Qs)}else""!==Fs&&N.push(Fs)}return N.push(ae<<2|(ke?1:0)),ke&&N.push(ke,tn),N[ni]=Tr,N[Hi]=N.length-lo,Tr}function AS(N){let Y=0;for(let ae=0;ae<N.length;ae++){const ke=N[ae];"number"==typeof ke&&ke<0&&Y++}return Y}function wC(N){return 1<<Math.min(N,31)}function GS(N,Y){const ae=Ps(),ke=ho(ae.consts,Y);!function IS(N,Y,ae){const et=pi().index,tn=[];if(N.firstCreatePass&&null===N.data[Y]){for(let ni=0;ni<ae.length;ni+=2){const Hi=ae[ni],lo=ae[ni+1];if(""!==lo){if(xC.test(lo))throw new Error(`ICU expressions are not supported in attributes. Message: "${lo}".`);ny(tn,lo,et,Hi,AS(tn),null)}}N.data[Y]=tn}}(ae,N+Hs,ke)}function PC(N){return function _b(N){N&&(R0|=1<<Math.min(L0,31)),L0++}(du(cs(),xl(),N)),PC}function xb(N){!function q1(N,Y,ae){if(L0>0){const ke=N.data[ae];Ay(N,Y,Array.isArray(ke)?ke:ke.update,nl()-L0-1,R0)}R0=0,L0=0}(Ps(),cs(),N+Hs)}function S2(N,Y,ae,ke,et){if(N=w(N),Array.isArray(N))for(let tn=0;tn<N.length;tn++)S2(N[tn],Y,ae,ke,et);else{const tn=Ps(),ni=cs();let Hi=jd(N)?N:w(N.provide),lo=cp(N);const Yo=pi(),Tr=1048575&Yo.providerIndexes,Kr=Yo.directiveStart,Fs=Yo.providerIndexes>>20;if(jd(N)||!N.multi){const Qs=new cc(lo,et,$s),Na=Ov(Hi,Y,et?Tr:Tr+Fs,Kr);-1===Na?(ph(gc(Yo,ni),tn,Hi),Sb(tn,N,Y.length),Y.push(Hi),Yo.directiveStart++,Yo.directiveEnd++,et&&(Yo.providerIndexes+=1048576),ae.push(Qs),ni.push(Qs)):(ae[Na]=Qs,ni[Na]=Qs)}else{const Qs=Ov(Hi,Y,Tr+Fs,Kr),Na=Ov(Hi,Y,Tr,Tr+Fs),Ml=Na>=0&&ae[Na];if(et&&!Ml||!et&&!(Qs>=0&&ae[Qs])){ph(gc(Yo,ni),tn,Hi);const ic=function F0(N,Y,ae,ke,et){const tn=new cc(N,ae,$s);return tn.multi=[],tn.index=Y,tn.componentProviders=0,By(tn,et,ke&&!ae),tn}(et?RC:e0,ae.length,et,ke,lo);!et&&Ml&&(ae[Na].providerFactory=ic),Sb(tn,N,Y.length,0),Y.push(Hi),Yo.directiveStart++,Yo.directiveEnd++,et&&(Yo.providerIndexes+=1048576),ae.push(ic),ni.push(ic)}else Sb(tn,N,Qs>-1?Qs:Na,By(ae[et?Na:Qs],lo,!et&&ke));!et&&ke&&Ml&&ae[Na].componentProviders++}}}function Sb(N,Y,ae,ke){const et=jd(Y),tn=function xf(N){return!!N.useClass}(Y);if(et||tn){const lo=(tn?w(Y.useClass):Y).prototype.ngOnDestroy;if(lo){const Yo=N.destroyHooks||(N.destroyHooks=[]);if(!et&&Y.multi){const Tr=Yo.indexOf(ae);-1===Tr?Yo.push(ae,[ke,lo]):Yo[Tr+1].push(ke,lo)}else Yo.push(ae,lo)}}}function By(N,Y,ae){return ae&&N.componentProviders++,N.multi.push(Y)-1}function Ov(N,Y,ae,ke){for(let et=ae;et<ke;et++)if(Y[et]===N)return et;return-1}function e0(N,Y,ae,ke){return Bh(this.multi,[])}function RC(N,Y,ae,ke){const et=this.multi;let tn;if(this.providerFactory){const ni=this.providerFactory.componentProviders,Hi=dc(ae,ae[yo],this.providerFactory.index,ke);tn=Hi.slice(0,ni),Bh(et,tn);for(let lo=ni;lo<Hi.length;lo++)tn.push(Hi[lo])}else tn=[],Bh(et,tn);return tn}function Bh(N,Y){for(let ae=0;ae<N.length;ae++)Y.push((0,N[ae])());return Y}function wb(N,Y=[]){return ae=>{ae.providersResolver=(ke,et)=>function N0(N,Y,ae){const ke=Ps();if(ke.firstCreatePass){const et=Ur(N);S2(ae,ke.data,ke.blueprint,et,!0),S2(Y,ke.data,ke.blueprint,et,!1)}}(ke,et?et(N):N,Y)}}class S1{}class w2{}function LC(N,Y){return new Eb(N,Y??null,[])}class Eb extends S1{constructor(Y,ae,ke){super(),this._parent=ae,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ma(this);const et=Rr(Y);this._bootstrapComponents=wc(et.bootstrap),this._r3Injector=Lr(Y,ae,[{provide:S1,useValue:this},{provide:Gm,useValue:this.componentFactoryResolver},...ke],R(Y),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(Y)}get injector(){return this._r3Injector}destroy(){const Y=this._r3Injector;!Y.destroyed&&Y.destroy(),this.destroyCbs.forEach(ae=>ae()),this.destroyCbs=null}onDestroy(Y){this.destroyCbs.push(Y)}}class Tb extends w2{constructor(Y){super(),this.moduleType=Y}create(Y){return new Eb(this.moduleType,Y,[])}}class Mb extends S1{constructor(Y){super(),this.componentFactoryResolver=new Ma(this),this.instance=null;const ae=new Lm([...Y.providers,{provide:S1,useValue:this},{provide:Gm,useValue:this.componentFactoryResolver}],Y.parent||Lf(),Y.debugName,new Set(["environment"]));this.injector=ae,Y.runEnvironmentInitializers&&ae.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(Y){this.injector.onDestroy(Y)}}function E2(N,Y,ae=null){return new Mb({providers:N,parent:Y,debugName:ae,runEnvironmentInitializers:!0}).injector}let VS=(()=>{class N{constructor(ae){this._injector=ae,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(ae){if(!ae.standalone)return null;if(!this.cachedInjectors.has(ae)){const ke=Xg(0,ae.type),et=ke.length>0?E2([ke],this._injector,`Standalone[${ae.type.name}]`):null;this.cachedInjectors.set(ae,et)}return this.cachedInjectors.get(ae)}ngOnDestroy(){try{for(const ae of this.cachedInjectors.values())null!==ae&&ae.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Te({token:N,providedIn:"environment",factory:()=>new N(Bt(Sp))})}return N})();function NC(N){N.getStandaloneInjector=Y=>Y.get(VS).getOrCreateStandaloneInjector(N)}function WC(N,Y,ae){const ke=Ka()+N,et=cs();return et[ke]===Hl?Sg(et,ke,ae?Y.call(ae):Y()):c0(et,ke)}function jC(N,Y,ae,ke){return g_(cs(),Ka(),N,Y,ae,ke)}function Ib(N,Y,ae,ke,et){return $C(cs(),Ka(),N,Y,ae,ke,et)}function B0(N,Y,ae,ke,et,tn){return QC(cs(),Ka(),N,Y,ae,ke,et,tn)}function YC(N,Y,ae,ke,et,tn,ni){return V_(cs(),Ka(),N,Y,ae,ke,et,tn,ni)}function ZC(N,Y,ae,ke,et,tn,ni,Hi){const lo=Ka()+N,Yo=cs(),Tr=rg(Yo,lo,ae,ke,et,tn);return du(Yo,lo+4,ni)||Tr?Sg(Yo,lo+5,Hi?Y.call(Hi,ae,ke,et,tn,ni):Y(ae,ke,et,tn,ni)):c0(Yo,lo+5)}function zh(N,Y,ae,ke,et,tn,ni,Hi,lo){const Yo=Ka()+N,Tr=cs(),Kr=rg(Tr,Yo,ae,ke,et,tn);return pm(Tr,Yo+4,ni,Hi)||Kr?Sg(Tr,Yo+6,lo?Y.call(lo,ae,ke,et,tn,ni,Hi):Y(ae,ke,et,tn,ni,Hi)):c0(Tr,Yo+6)}function KC(N,Y,ae,ke,et,tn,ni,Hi,lo,Yo){const Tr=Ka()+N,Kr=cs();let Fs=rg(Kr,Tr,ae,ke,et,tn);return Wm(Kr,Tr+4,ni,Hi,lo)||Fs?Sg(Kr,Tr+7,Yo?Y.call(Yo,ae,ke,et,tn,ni,Hi,lo):Y(ae,ke,et,tn,ni,Hi,lo)):c0(Kr,Tr+7)}function Yg(N,Y,ae,ke,et,tn,ni,Hi,lo,Yo,Tr){const Kr=Ka()+N,Fs=cs(),Qs=rg(Fs,Kr,ae,ke,et,tn);return rg(Fs,Kr+4,ni,Hi,lo,Yo)||Qs?Sg(Fs,Kr+8,Tr?Y.call(Tr,ae,ke,et,tn,ni,Hi,lo,Yo):Y(ae,ke,et,tn,ni,Hi,lo,Yo)):c0(Fs,Kr+8)}function JC(N,Y,ae,ke){return function Gy(N,Y,ae,ke,et,tn){let ni=Y+ae,Hi=!1;for(let lo=0;lo<et.length;lo++)du(N,ni++,et[lo])&&(Hi=!0);return Hi?Sg(N,ni,ke.apply(tn,et)):Uy(N,ni)}(cs(),Ka(),N,Y,ae,ke)}function Uy(N,Y){const ae=N[Y];return ae===Hl?void 0:ae}function g_(N,Y,ae,ke,et,tn){const ni=Y+ae;return du(N,ni,et)?Sg(N,ni+1,tn?ke.call(tn,et):ke(et)):Uy(N,ni+1)}function $C(N,Y,ae,ke,et,tn,ni){const Hi=Y+ae;return pm(N,Hi,et,tn)?Sg(N,Hi+2,ni?ke.call(ni,et,tn):ke(et,tn)):Uy(N,Hi+2)}function QC(N,Y,ae,ke,et,tn,ni,Hi){const lo=Y+ae;return Wm(N,lo,et,tn,ni)?Sg(N,lo+3,Hi?ke.call(Hi,et,tn,ni):ke(et,tn,ni)):Uy(N,lo+3)}function V_(N,Y,ae,ke,et,tn,ni,Hi,lo){const Yo=Y+ae;return rg(N,Yo,et,tn,ni,Hi)?Sg(N,Yo+4,lo?ke.call(lo,et,tn,ni,Hi):ke(et,tn,ni,Hi)):Uy(N,Yo+4)}function XC(N,Y){const ae=Ps();let ke;const et=N+Hs;ae.firstCreatePass?(ke=function lE(N,Y){if(Y)for(let ae=Y.length-1;ae>=0;ae--){const ke=Y[ae];if(N===ke.name)return ke}}(Y,ae.pipeRegistry),ae.data[et]=ke,ke.onDestroy&&(ae.destroyHooks??=[]).push(et,ke.onDestroy)):ke=ae.data[et];const tn=ke.factory||(ke.factory=Vn(ke.type)),ni=sn($s);try{const Hi=xd(!1),lo=tn();return xd(Hi),function g0(N,Y,ae,ke){ae>=N.data.length&&(N.data[ae]=null,N.blueprint[ae]=null),Y[ae]=ke}(ae,cs(),et,lo),lo}finally{sn(ni)}}function M2(N,Y,ae){const ke=N+Hs,et=cs(),tn=lt(et,ke);return __(et,ke)?g_(et,Ka(),Y,tn.transform,ae,tn):tn.transform(ae)}function k2(N,Y,ae,ke){const et=N+Hs,tn=cs(),ni=lt(tn,et);return __(tn,et)?$C(tn,Ka(),Y,ni.transform,ae,ke,ni):ni.transform(ae,ke)}function I2(N,Y,ae,ke,et){const tn=N+Hs,ni=cs(),Hi=lt(ni,tn);return __(ni,tn)?QC(ni,Ka(),Y,Hi.transform,ae,ke,et,Hi):Hi.transform(ae,ke,et)}function qC(N,Y,ae,ke,et,tn){const ni=N+Hs,Hi=cs(),lo=lt(Hi,ni);return __(Hi,ni)?V_(Hi,Ka(),Y,lo.transform,ae,ke,et,tn,lo):lo.transform(ae,ke,et,tn)}function __(N,Y){return N[yo].data[Y].pure}function Ab(N){return Y=>{setTimeout(N,void 0,Y)}}const Pv=class ex extends e.x{constructor(Y=!1){super(),this.__isAsync=Y}emit(Y){super.next(Y)}subscribe(Y,ae,ke){let et=Y,tn=ae||(()=>null),ni=ke;if(Y&&"object"==typeof Y){const lo=Y;et=lo.next?.bind(lo),tn=lo.error?.bind(lo),ni=lo.complete?.bind(lo)}this.__isAsync&&(tn=Ab(tn),et&&(et=Ab(et)),ni&&(ni=Ab(ni)));const Hi=super.subscribe({next:et,error:tn,complete:ni});return Y instanceof n.w0&&Y.add(Hi),Hi}};function Ob(){return this._results[Symbol.iterator]()}class iy{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new Pv)}constructor(Y=!1){this._emitDistinctChangesOnly=Y,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const ae=iy.prototype;ae[Symbol.iterator]||(ae[Symbol.iterator]=Ob)}get(Y){return this._results[Y]}map(Y){return this._results.map(Y)}filter(Y){return this._results.filter(Y)}find(Y){return this._results.find(Y)}reduce(Y,ae){return this._results.reduce(Y,ae)}forEach(Y){this._results.forEach(Y)}some(Y){return this._results.some(Y)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(Y,ae){const ke=this;ke.dirty=!1;const et=function ue(N){return N.flat(Number.POSITIVE_INFINITY)}(Y);(this._changesDetected=!function v(N,Y,ae){if(N.length!==Y.length)return!1;for(let ke=0;ke<N.length;ke++){let et=N[ke],tn=Y[ke];if(ae&&(et=ae(et),tn=ae(tn)),tn!==et)return!1}return!0}(ke._results,et,ae))&&(ke._results=et,ke.length=et.length,ke.last=et[this.length-1],ke.first=et[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let oy=(()=>{class N{static#e=this.__NG_ELEMENT_ID__=QS}return N})();const JS=oy,$S=class extends JS{constructor(Y,ae,ke){super(),this._declarationLView=Y,this._declarationTContainer=ae,this.elementRef=ke}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(Y,ae){return this.createEmbeddedViewImpl(Y,ae,null)}createEmbeddedViewImpl(Y,ae,ke){const ni=this._declarationTContainer.tView,Hi=Ja(this._declarationLView,ni,Y,4096&this._declarationLView[lr]?4096:16,null,ni.declTNode,null,null,null,ae||null,ke||null);Hi[Ua]=this._declarationLView[this._declarationTContainer.index];const Yo=this._declarationLView[Ar];return null!==Yo&&(Hi[Ar]=Yo.createEmbeddedView(ni)),h_(ni,Hi,Y),new sa(Hi)}};function QS(){return Pb(pi(),cs())}function Pb(N,Y){return 4&N.type?new $S(Y,N,hh(N,Y)):null}let Lb=(()=>{class N{static#e=this.__NG_ELEMENT_ID__=sx}return N})();function sx(){return ax(pi(),cs())}const P2=Lb,n0=class extends P2{constructor(Y,ae,ke){super(),this._lContainer=Y,this._hostTNode=ae,this._hostLView=ke}get element(){return hh(this._hostTNode,this._hostLView)}get injector(){return new Rc(this._hostTNode,this._hostLView)}get parentInjector(){const Y=id(this._hostTNode,this._hostLView);if(yu(Y)){const ae=Zu(Y,this._hostLView),ke=bu(Y);return new Rc(ae[yo].data[ke+8],ae)}return new Rc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(Y){const ae=Nb(this._lContainer);return null!==ae&&ae[Y]||null}get length(){return this._lContainer.length-ht}createEmbeddedView(Y,ae,ke){let et,tn;"number"==typeof ke?et=ke:null!=ke&&(et=ke.index,tn=ke.injector);const Hi=Y.createEmbeddedViewImpl(ae||{},tn,null);return this.insertImpl(Hi,et,false),Hi}createComponent(Y,ae,ke,et,tn){const ni=Y&&!function Tn(N){return"function"==typeof N}(Y);let Hi;if(ni)Hi=ae;else{const Xa=ae||{};Hi=Xa.index,ke=Xa.injector,et=Xa.projectableNodes,tn=Xa.environmentInjector||Xa.ngModuleRef}const lo=ni?Y:new sc(Ao(Y)),Yo=ke||this.parentInjector;if(!tn&&null==lo.ngModule){const Ml=(ni?Yo:this.parentInjector).get(Sp,null);Ml&&(tn=Ml)}Ao(lo.componentType??{});const Qs=lo.create(Yo,et,null,tn);return this.insertImpl(Qs.hostView,Hi,false),Qs}insert(Y,ae){return this.insertImpl(Y,ae,!1)}insertImpl(Y,ae,ke){const et=Y._lView,tn=et[yo];if(function Kn(N){return Yi(N[Yr])}(et)){const lo=this.indexOf(Y);if(-1!==lo)this.detach(lo);else{const Yo=et[Yr],Tr=new n0(Yo,Yo[Ho],Yo[Yr]);Tr.detach(Tr.indexOf(Y))}}const ni=this._adjustIndex(ae),Hi=this._lContainer;if(function eu(N,Y,ae,ke){const et=ht+ke,tn=ae.length;ke>0&&(ae[et-1][Gs]=Y),ke<tn-ht?(Y[Gs]=ae[et],In(ae,ht+ke,Y)):(ae.push(Y),Y[Gs]=null),Y[Yr]=ae;const ni=Y[Ua];null!==ni&&ae!==ni&&function lh(N,Y){const ae=N[Jt];Y[Ss]!==Y[Yr][Yr][Ss]&&(N[ll]=!0),null===ae?N[Jt]=[Y]:ae.push(Y)}(ni,Y);const Hi=Y[Ar];null!==Hi&&Hi.insertView(N),Y[lr]|=128}(tn,et,Hi,ni),!ke){const lo=ee(ni,Hi),Yo=et[kr],Tr=Af(Yo,Hi[Za]);null!==Tr&&function Pd(N,Y,ae,ke,et,tn){ke[Ii]=et,ke[Ho]=Y,$r(N,ke,ae,1,et,tn)}(tn,Hi[Ho],Yo,et,Tr,lo)}return Y.attachToViewContainerRef(),In(Fb(Hi),ni,Y),Y}move(Y,ae){return this.insert(Y,ae)}indexOf(Y){const ae=Nb(this._lContainer);return null!==ae?ae.indexOf(Y):-1}remove(Y){const ae=this._adjustIndex(Y,-1),ke=ch(this._lContainer,ae);ke&&(er(Fb(this._lContainer),ae),Uf(ke[yo],ke))}detach(Y){const ae=this._adjustIndex(Y,-1),ke=ch(this._lContainer,ae);return ke&&null!=er(Fb(this._lContainer),ae)?new sa(ke):null}_adjustIndex(Y,ae=0){return Y??this.length+ae}};function Nb(N){return N[8]}function Fb(N){return N[8]||(N[8]=[])}function ax(N,Y){let ae;const ke=Y[N.index];return Yi(ke)?ae=ke:(ae=mp(ke,Y,null,N),Y[N.index]=ae,Fh(Y,ae)),R2(ae,Y,N,ke),new n0(ae,N,Y)}let R2=function cx(N,Y,ae,ke){if(N[Za])return;let et;et=8&ae.type?qn(ke):function lx(N,Y){const ae=N[kr],ke=ae.createComment(""),et=Ye(Y,N);return _f(ae,Af(ae,et),ke,function ac(N,Y){return N.nextSibling(Y)}(ae,et),!1),ke}(Y,ae),N[Za]=et};class o0{constructor(Y){this.queryList=Y,this.matches=null}clone(){return new o0(this.queryList)}setDirty(){this.queryList.setDirty()}}class E1{constructor(Y=[]){this.queries=Y}createEmbeddedView(Y){const ae=Y.queries;if(null!==ae){const ke=null!==Y.contentQueries?Y.contentQueries[0]:ae.length,et=[];for(let tn=0;tn<ke;tn++){const ni=ae.getByIndex(tn);et.push(this.queries[ni.indexInDeclarationView].clone())}return new E1(et)}return null}insertView(Y){this.dirtyQueriesWithMatches(Y)}detachView(Y){this.dirtyQueriesWithMatches(Y)}dirtyQueriesWithMatches(Y){for(let ae=0;ae<this.queries.length;ae++)null!==yx(Y,ae).matches&&this.queries[ae].setDirty()}}class hx{constructor(Y,ae,ke=null){this.predicate=Y,this.flags=ae,this.read=ke}}class Bb{constructor(Y=[]){this.queries=Y}elementStart(Y,ae){for(let ke=0;ke<this.queries.length;ke++)this.queries[ke].elementStart(Y,ae)}elementEnd(Y){for(let ae=0;ae<this.queries.length;ae++)this.queries[ae].elementEnd(Y)}embeddedTView(Y){let ae=null;for(let ke=0;ke<this.length;ke++){const et=null!==ae?ae.length:0,tn=this.getByIndex(ke).embeddedTView(Y,et);tn&&(tn.indexInDeclarationView=ke,null!==ae?ae.push(tn):ae=[tn])}return null!==ae?new Bb(ae):null}template(Y,ae){for(let ke=0;ke<this.queries.length;ke++)this.queries[ke].template(Y,ae)}getByIndex(Y){return this.queries[Y]}get length(){return this.queries.length}track(Y){this.queries.push(Y)}}class L2{constructor(Y,ae=-1){this.metadata=Y,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=ae}elementStart(Y,ae){this.isApplyingToNode(ae)&&this.matchTNode(Y,ae)}elementEnd(Y){this._declarationNodeIndex===Y.index&&(this._appliesToNextNode=!1)}template(Y,ae){this.elementStart(Y,ae)}embeddedTView(Y,ae){return this.isApplyingToNode(Y)?(this.crossesNgTemplate=!0,this.addMatch(-Y.index,ae),new L2(this.metadata)):null}isApplyingToNode(Y){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const ae=this._declarationNodeIndex;let ke=Y.parent;for(;null!==ke&&8&ke.type&&ke.index!==ae;)ke=ke.parent;return ae===(null!==ke?ke.index:-1)}return this._appliesToNextNode}matchTNode(Y,ae){const ke=this.metadata.predicate;if(Array.isArray(ke))for(let et=0;et<ke.length;et++){const tn=ke[et];this.matchTNodeWithReadOption(Y,ae,fx(ae,tn)),this.matchTNodeWithReadOption(Y,ae,$d(ae,Y,tn,!1,!1))}else ke===oy?4&ae.type&&this.matchTNodeWithReadOption(Y,ae,-1):this.matchTNodeWithReadOption(Y,ae,$d(ae,Y,ke,!1,!1))}matchTNodeWithReadOption(Y,ae,ke){if(null!==ke){const et=this.metadata.read;if(null!==et)if(et===Dp||et===Lb||et===oy&&4&ae.type)this.addMatch(ae.index,-2);else{const tn=$d(ae,Y,et,!1,!1);null!==tn&&this.addMatch(ae.index,tn)}else this.addMatch(ae.index,ke)}}addMatch(Y,ae){null===this.matches?this.matches=[Y,ae]:this.matches.push(Y,ae)}}function fx(N,Y){const ae=N.localNames;if(null!==ae)for(let ke=0;ke<ae.length;ke+=2)if(ae[ke]===Y)return ae[ke+1];return null}function px(N,Y,ae,ke){return-1===ae?function qS(N,Y){return 11&N.type?hh(N,Y):4&N.type?Pb(N,Y):null}(Y,N):-2===ae?function N2(N,Y,ae){return ae===Dp?hh(Y,N):ae===oy?Pb(Y,N):ae===Lb?ax(Y,N):void 0}(N,Y,ke):dc(N,N[yo],ae,Y)}function zb(N,Y,ae,ke){const et=Y[Ar].queries[ke];if(null===et.matches){const tn=N.data,ni=ae.matches,Hi=[];for(let lo=0;lo<ni.length;lo+=2){const Yo=ni[lo];Hi.push(Yo<0?null:px(Y,tn[Yo],ni[lo+1],ae.metadata.read))}et.matches=Hi}return et.matches}function Hy(N,Y,ae,ke){const et=N.queries.getByIndex(ae),tn=et.matches;if(null!==tn){const ni=zb(N,Y,et,ae);for(let Hi=0;Hi<tn.length;Hi+=2){const lo=tn[Hi];if(lo>0)ke.push(ni[Hi/2]);else{const Yo=tn[Hi+1],Tr=Y[-lo];for(let Kr=ht;Kr<Tr.length;Kr++){const Fs=Tr[Kr];Fs[Ua]===Fs[Yr]&&Hy(Fs[yo],Fs,Yo,ke)}if(null!==Tr[Jt]){const Kr=Tr[Jt];for(let Fs=0;Fs<Kr.length;Fs++){const Qs=Kr[Fs];Hy(Qs[yo],Qs,Yo,ke)}}}}}return ke}function mx(N){const Y=cs(),ae=Ps(),ke=ar();wa(ke+1);const et=yx(ae,ke);if(N.dirty&&function on(N){return 4==(4&N[lr])}(Y)===(2==(2&et.metadata.flags))){if(null===et.matches)N.reset([]);else{const tn=et.crossesNgTemplate?Hy(ae,Y,ke,[]):zb(ae,Y,et,ke);N.reset(tn,Et),N.notifyOnChanges()}return!0}return!1}function F2(N,Y,ae){const ke=Ps();ke.firstCreatePass&&(z2(ke,new hx(N,Y,ae),-1),2==(2&Y)&&(ke.staticViewQueries=!0)),B2(ke,cs(),Y)}function gx(N,Y,ae,ke){const et=Ps();if(et.firstCreatePass){const tn=pi();z2(et,new hx(Y,ae,ke),tn.index),function vx(N,Y){const ae=N.contentQueries||(N.contentQueries=[]);Y!==(ae.length?ae[ae.length-1]:-1)&&ae.push(N.queries.length-1,Y)}(et,N),2==(2&ae)&&(et.staticContentQueries=!0)}B2(et,cs(),ae)}function _x(){return function ew(N,Y){return N[Ar].queries[Y].queryList}(cs(),ar())}function B2(N,Y,ae){const ke=new iy(4==(4&ae));(function Ug(N,Y,ae,ke){const et=bg(Y);et.push(ae),N.firstCreatePass&&Cg(N).push(ke,et.length-1)})(N,Y,ke,ke.destroy),null===Y[Ar]&&(Y[Ar]=new E1),Y[Ar].queries.push(new o0(ke))}function z2(N,Y,ae){null===N.queries&&(N.queries=new Bb),N.queries.track(new L2(Y,ae))}function yx(N,Y){return N.queries.getByIndex(Y)}function U2(N,Y){return Pb(N,Y)}function ry(N){return!!Rr(N)}const Bx=new rd("Application Initializer");let Yb=(()=>{class N{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((ae,ke)=>{this.resolve=ae,this.reject=ke}),this.appInits=wt(Bx,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const ae=[];for(const et of this.appInits){const tn=et();if(J_(tn))ae.push(tn);else if(ie(tn)){const ni=new Promise((Hi,lo)=>{tn.subscribe({complete:Hi,error:lo})});ae.push(ni)}}const ke=()=>{this.done=!0,this.resolve()};Promise.all(ae).then(()=>{ke()}).catch(et=>{this.reject(et)}),0===ae.length&&ke(),this.initialized=!0}static#e=this.\u0275fac=function(ke){return new(ke||N)};static#t=this.\u0275prov=Te({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})(),zx=(()=>{class N{log(ae){console.log(ae)}warn(ae){console.warn(ae)}static#e=this.\u0275fac=function(ke){return new(ke||N)};static#t=this.\u0275prov=Te({token:N,factory:N.\u0275fac,providedIn:"platform"})}return N})();const Zb=new rd("LocaleId",{providedIn:"root",factory:()=>wt(Zb,ut.Optional|ut.SkipSelf)||function pw(){return typeof $localize<"u"&&$localize.locale||As}()}),mw=new rd("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let I1=(()=>{class N{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new o.X(!1)}add(){this.hasPendingTasks.next(!0);const ae=this.taskId++;return this.pendingTasks.add(ae),ae}remove(ae){this.pendingTasks.delete(ae),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(ke){return new(ke||N)};static#t=this.\u0275prov=Te({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();class Ux{constructor(Y,ae){this.ngModuleFactory=Y,this.componentFactories=ae}}let J2=(()=>{class N{compileModuleSync(ae){return new Tb(ae)}compileModuleAsync(ae){return Promise.resolve(this.compileModuleSync(ae))}compileModuleAndAllComponentsSync(ae){const ke=this.compileModuleSync(ae),tn=wc(Rr(ae).declarations).reduce((ni,Hi)=>{const lo=Ao(Hi);return lo&&ni.push(new sc(lo)),ni},[]);return new Ux(ke,tn)}compileModuleAndAllComponentsAsync(ae){return Promise.resolve(this.compileModuleAndAllComponentsSync(ae))}clearCache(){}clearCacheFor(ae){}getModuleId(ae){}static#e=this.\u0275fac=function(ke){return new(ke||N)};static#t=this.\u0275prov=Te({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();function q2(...N){}class Zg{constructor({enableLongStackTrace:Y=!1,shouldCoalesceEventChangeDetection:ae=!1,shouldCoalesceRunChangeDetection:ke=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Pv(!1),this.onMicrotaskEmpty=new Pv(!1),this.onStable=new Pv(!1),this.onError=new Pv(!1),typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();const et=this;et._nesting=0,et._outer=et._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(et._inner=et._inner.fork(new Zone.TaskTrackingZoneSpec)),Y&&Zone.longStackTraceZoneSpec&&(et._inner=et._inner.fork(Zone.longStackTraceZoneSpec)),et.shouldCoalesceEventChangeDetection=!ke&&ae,et.shouldCoalesceRunChangeDetection=ke,et.lastRequestAnimationFrameId=-1,et.nativeRequestAnimationFrame=function Hx(){const N="function"==typeof nn.requestAnimationFrame;let Y=nn[N?"requestAnimationFrame":"setTimeout"],ae=nn[N?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&Y&&ae){const ke=Y[Zone.__symbol__("OriginalDelegate")];ke&&(Y=ke);const et=ae[Zone.__symbol__("OriginalDelegate")];et&&(ae=et)}return{nativeRequestAnimationFrame:Y,nativeCancelAnimationFrame:ae}}().nativeRequestAnimationFrame,function Cw(N){const Y=()=>{!function bw(N){N.isCheckStableRunning||-1!==N.lastRequestAnimationFrameId||(N.lastRequestAnimationFrameId=N.nativeRequestAnimationFrame.call(nn,()=>{N.fakeTopEventTask||(N.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{N.lastRequestAnimationFrameId=-1,eC(N),N.isCheckStableRunning=!0,Kb(N),N.isCheckStableRunning=!1},void 0,()=>{},()=>{})),N.fakeTopEventTask.invoke()}),eC(N))}(N)};N._inner=N._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(ae,ke,et,tn,ni,Hi)=>{try{return tC(N),ae.invokeTask(et,tn,ni,Hi)}finally{(N.shouldCoalesceEventChangeDetection&&"eventTask"===tn.type||N.shouldCoalesceRunChangeDetection)&&Y(),Vx(N)}},onInvoke:(ae,ke,et,tn,ni,Hi,lo)=>{try{return tC(N),ae.invoke(et,tn,ni,Hi,lo)}finally{N.shouldCoalesceRunChangeDetection&&Y(),Vx(N)}},onHasTask:(ae,ke,et,tn)=>{ae.hasTask(et,tn),ke===et&&("microTask"==tn.change?(N._hasPendingMicrotasks=tn.microTask,eC(N),Kb(N)):"macroTask"==tn.change&&(N.hasPendingMacrotasks=tn.macroTask))},onHandleError:(ae,ke,et,tn)=>(ae.handleError(et,tn),N.runOutsideAngular(()=>N.onError.emit(tn)),!1)})}(et)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Zg.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(Zg.isInAngularZone())throw new b(909,!1)}run(Y,ae,ke){return this._inner.run(Y,ae,ke)}runTask(Y,ae,ke,et){const tn=this._inner,ni=tn.scheduleEventTask("NgZoneEvent: "+et,Y,yw,q2,q2);try{return tn.runTask(ni,ae,ke)}finally{tn.cancelTask(ni)}}runGuarded(Y,ae,ke){return this._inner.runGuarded(Y,ae,ke)}runOutsideAngular(Y){return this._outer.run(Y)}}const yw={};function Kb(N){if(0==N._nesting&&!N.hasPendingMicrotasks&&!N.isStable)try{N._nesting++,N.onMicrotaskEmpty.emit(null)}finally{if(N._nesting--,!N.hasPendingMicrotasks)try{N.runOutsideAngular(()=>N.onStable.emit(null))}finally{N.isStable=!0}}}function eC(N){N.hasPendingMicrotasks=!!(N._hasPendingMicrotasks||(N.shouldCoalesceEventChangeDetection||N.shouldCoalesceRunChangeDetection)&&-1!==N.lastRequestAnimationFrameId)}function tC(N){N._nesting++,N.isStable&&(N.isStable=!1,N.onUnstable.emit(null))}function Vx(N){N._nesting--,Kb(N)}class Wx{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Pv,this.onMicrotaskEmpty=new Pv,this.onStable=new Pv,this.onError=new Pv}run(Y,ae,ke){return Y.apply(ae,ke)}runGuarded(Y,ae,ke){return Y.apply(ae,ke)}runOutsideAngular(Y){return Y()}runTask(Y,ae,ke,et){return Y.apply(ae,ke)}}const nC=new rd("",{providedIn:"root",factory:jx});function jx(){const N=wt(Zg);let Y=!0;const ae=new a.y(et=>{Y=N.isStable&&!N.hasPendingMacrotasks&&!N.hasPendingMicrotasks,N.runOutsideAngular(()=>{et.next(Y),et.complete()})}),ke=new a.y(et=>{let tn;N.runOutsideAngular(()=>{tn=N.onStable.subscribe(()=>{Zg.assertNotInAngularZone(),queueMicrotask(()=>{!Y&&!N.hasPendingMacrotasks&&!N.hasPendingMicrotasks&&(Y=!0,et.next(!0))})})});const ni=N.onUnstable.subscribe(()=>{Zg.assertInAngularZone(),Y&&(Y=!1,N.runOutsideAngular(()=>{et.next(!1)}))});return()=>{tn.unsubscribe(),ni.unsubscribe()}});return(0,l.T)(ae,ke.pipe((0,d.B)()))}const Yx=new rd(""),Zx=new rd("");let iC,Kx=(()=>{class N{constructor(ae,ke,et){this._ngZone=ae,this.registry=ke,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,iC||(function $x(N){iC=N}(et),et.addToWindow(ke)),this._watchAngularEvents(),ae.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{Zg.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let ae=this._callbacks.pop();clearTimeout(ae.timeoutId),ae.doneCb(this._didWork)}this._didWork=!1});else{let ae=this.getPendingTasks();this._callbacks=this._callbacks.filter(ke=>!ke.updateCb||!ke.updateCb(ae)||(clearTimeout(ke.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(ae=>({source:ae.source,creationLocation:ae.creationLocation,data:ae.data})):[]}addCallback(ae,ke,et){let tn=-1;ke&&ke>0&&(tn=setTimeout(()=>{this._callbacks=this._callbacks.filter(ni=>ni.timeoutId!==tn),ae(this._didWork,this.getPendingTasks())},ke)),this._callbacks.push({doneCb:ae,timeoutId:tn,updateCb:et})}whenStable(ae,ke,et){if(et&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(ae,ke,et),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(ae){this.registry.registerApplication(ae,this)}unregisterApplication(ae){this.registry.unregisterApplication(ae)}findProviders(ae,ke,et){return[]}static#e=this.\u0275fac=function(ke){return new(ke||N)(Bt(Zg),Bt(Jx),Bt(Zx))};static#t=this.\u0275prov=Te({token:N,factory:N.\u0275fac})}return N})(),Jx=(()=>{class N{constructor(){this._applications=new Map}registerApplication(ae,ke){this._applications.set(ae,ke)}unregisterApplication(ae){this._applications.delete(ae)}unregisterAllApplications(){this._applications.clear()}getTestability(ae){return this._applications.get(ae)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(ae,ke=!0){return iC?.findTestabilityInTree(this,ae,ke)??null}static#e=this.\u0275fac=function(ke){return new(ke||N)};static#t=this.\u0275prov=Te({token:N,factory:N.\u0275fac,providedIn:"platform"})}return N})(),G0=null;const Qx=new rd("AllowMultipleToken"),oC=new rd("PlatformDestroyListeners"),rC=new rd("appBootstrapListener");class ww{constructor(Y,ae){this.name=Y,this.token=ae}}function Xx(N,Y,ae=[]){const ke=`Platform: ${Y}`,et=new rd(ke);return(tn=[])=>{let ni=aC();if(!ni||ni.injector.get(Qx,!1)){const Hi=[...ae,...tn,{provide:et,useValue:!0}];N?N(Hi):function Ew(N){if(G0&&!G0.get(Qx,!1))throw new b(400,!1);(function sC(){!function Ae(N){Xn=N}(()=>{throw new b(600,!1)})})(),G0=N;const Y=N.get(gv);(function Jb(N){N.get(Hu,null)?.forEach(ae=>ae())})(N)}(function qx(N=[],Y){return ws.create({name:Y,providers:[{provide:lp,useValue:"platform"},{provide:oC,useValue:new Set([()=>G0=null])},...N]})}(Hi,ke))}return function Dw(N){const Y=aC();if(!Y)throw new b(401,!1);return Y}()}}function aC(){return G0?.get(gv)??null}let gv=(()=>{class N{constructor(ae){this._injector=ae,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(ae,ke){const et=function eS(N="zone.js",Y){return"noop"===N?new Wx:"zone.js"===N?new Zg(Y):N}(ke?.ngZone,function Kg(N){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:N?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:N?.runCoalescing??!1}}({eventCoalescing:ke?.ngZoneEventCoalescing,runCoalescing:ke?.ngZoneRunCoalescing}));return et.run(()=>{const tn=function Db(N,Y,ae){return new Eb(N,Y,ae)}(ae.moduleType,this.injector,function oS(N){return[{provide:Zg,useFactory:N},{provide:Cm,multi:!0,useFactory:()=>{const Y=wt(Iw,{optional:!0});return()=>Y.initialize()}},{provide:iS,useFactory:kw},{provide:nC,useFactory:jx}]}(()=>et)),ni=tn.injector.get(Al,null);return et.runOutsideAngular(()=>{const Hi=et.onError.subscribe({next:lo=>{ni.handleError(lo)}});tn.onDestroy(()=>{$b(this._modules,tn),Hi.unsubscribe()})}),function tS(N,Y,ae){try{const ke=ae();return J_(ke)?ke.catch(et=>{throw Y.runOutsideAngular(()=>N.handleError(et)),et}):ke}catch(ke){throw Y.runOutsideAngular(()=>N.handleError(ke)),ke}}(ni,et,()=>{const Hi=tn.injector.get(Yb);return Hi.runInitializers(),Hi.donePromise.then(()=>(function km(N){se(N,"Expected localeId to be defined"),"string"==typeof N&&(kd=N.toLowerCase().replace(/_/g,"-"))}(tn.injector.get(Zb,As)||As),this._moduleDoBootstrap(tn),tn))})})}bootstrapModule(ae,ke=[]){const et=lC({},ke);return function xw(N,Y,ae){const ke=new Tb(ae);return Promise.resolve(ke)}(0,0,ae).then(tn=>this.bootstrapModuleFactory(tn,et))}_moduleDoBootstrap(ae){const ke=ae.injector.get(ly);if(ae._bootstrapComponents.length>0)ae._bootstrapComponents.forEach(et=>ke.bootstrap(et));else{if(!ae.instance.ngDoBootstrap)throw new b(-403,!1);ae.instance.ngDoBootstrap(ke)}this._modules.push(ae)}onDestroy(ae){this._destroyListeners.push(ae)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new b(404,!1);this._modules.slice().forEach(ke=>ke.destroy()),this._destroyListeners.forEach(ke=>ke());const ae=this._injector.get(oC,null);ae&&(ae.forEach(ke=>ke()),ae.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(ke){return new(ke||N)(Bt(ws))};static#t=this.\u0275prov=Te({token:N,factory:N.\u0275fac,providedIn:"platform"})}return N})();function lC(N,Y){return Array.isArray(Y)?Y.reduce(lC,N):{...N,...Y}}let ly=(()=>{class N{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=wt(iS),this.zoneIsStable=wt(nC),this.componentTypes=[],this.components=[],this.isStable=wt(I1).hasPendingTasks.pipe((0,s.w)(ae=>ae?(0,u.of)(!1):this.zoneIsStable),(0,A.x)(),(0,d.B)()),this._injector=wt(Sp)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(ae,ke){const et=ae instanceof ol;if(!this._injector.get(Yb).done)throw!et&&pr(ae),new b(405,!1);let ni;ni=et?ae:this._injector.get(Gm).resolveComponentFactory(ae),this.componentTypes.push(ni.componentType);const Hi=function Sw(N){return N.isBoundToModule}(ni)?void 0:this._injector.get(S1),Yo=ni.create(ws.NULL,[],ke||ni.selector,Hi),Tr=Yo.location.nativeElement,Kr=Yo.injector.get(Yx,null);return Kr?.registerApplication(Tr),Yo.onDestroy(()=>{this.detachView(Yo.hostView),$b(this.components,Yo),Kr?.unregisterApplication(Tr)}),this._loadComponent(Yo),Yo}tick(){if(this._runningTick)throw new b(101,!1);try{this._runningTick=!0;for(let ae of this._views)ae.detectChanges()}catch(ae){this.internalErrorHandler(ae)}finally{this._runningTick=!1}}attachView(ae){const ke=ae;this._views.push(ke),ke.attachToAppRef(this)}detachView(ae){const ke=ae;$b(this._views,ke),ke.detachFromAppRef()}_loadComponent(ae){this.attachView(ae.hostView),this.tick(),this.components.push(ae);const ke=this._injector.get(rC,[]);ke.push(...this._bootstrapListeners),ke.forEach(et=>et(ae))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(ae=>ae()),this._views.slice().forEach(ae=>ae.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(ae){return this._destroyListeners.push(ae),()=>$b(this._destroyListeners,ae)}destroy(){if(this._destroyed)throw new b(406,!1);const ae=this._injector;ae.destroy&&!ae.destroyed&&ae.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(ke){return new(ke||N)};static#t=this.\u0275prov=Te({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();function $b(N,Y){const ae=N.indexOf(Y);ae>-1&&N.splice(ae,1)}const iS=new rd("",{providedIn:"root",factory:()=>wt(Al).handleError.bind(void 0)});function kw(){const N=wt(Zg),Y=wt(Al);return ae=>N.runOutsideAngular(()=>Y.handleError(ae))}let Iw=(()=>{class N{constructor(){this.zone=wt(Zg),this.applicationRef=wt(ly)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(ke){return new(ke||N)};static#t=this.\u0275prov=Te({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();function Ow(){return!1}function Pw(){}let Rw=(()=>{class N{static#e=this.__NG_ELEMENT_ID__=Lw}return N})();function Lw(N){return function Nw(N,Y,ae){if(sr(N)&&!ae){const ke=yt(N.index,Y);return new sa(ke,ke)}return 47&N.type?new sa(Y[Ss],Y):null}(pi(),cs(),16==(16&N))}class qb{constructor(){}supports(Y){return a0(Y)}create(Y){return new cy(Y)}}const hC=(N,Y)=>Y;class cy{constructor(Y){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=Y||hC}forEachItem(Y){let ae;for(ae=this._itHead;null!==ae;ae=ae._next)Y(ae)}forEachOperation(Y){let ae=this._itHead,ke=this._removalsHead,et=0,tn=null;for(;ae||ke;){const ni=!ke||ae&&ae.currentIndex<pC(ke,et,tn)?ae:ke,Hi=pC(ni,et,tn),lo=ni.currentIndex;if(ni===ke)et--,ke=ke._nextRemoved;else if(ae=ae._next,null==ni.previousIndex)et++;else{tn||(tn=[]);const Yo=Hi-et,Tr=lo-et;if(Yo!=Tr){for(let Fs=0;Fs<Yo;Fs++){const Qs=Fs<tn.length?tn[Fs]:tn[Fs]=0,Na=Qs+Fs;Tr<=Na&&Na<Yo&&(tn[Fs]=Qs+1)}tn[ni.previousIndex]=Tr-Yo}}Hi!==lo&&Y(ni,Hi,lo)}}forEachPreviousItem(Y){let ae;for(ae=this._previousItHead;null!==ae;ae=ae._nextPrevious)Y(ae)}forEachAddedItem(Y){let ae;for(ae=this._additionsHead;null!==ae;ae=ae._nextAdded)Y(ae)}forEachMovedItem(Y){let ae;for(ae=this._movesHead;null!==ae;ae=ae._nextMoved)Y(ae)}forEachRemovedItem(Y){let ae;for(ae=this._removalsHead;null!==ae;ae=ae._nextRemoved)Y(ae)}forEachIdentityChange(Y){let ae;for(ae=this._identityChangesHead;null!==ae;ae=ae._nextIdentityChange)Y(ae)}diff(Y){if(null==Y&&(Y=[]),!a0(Y))throw new b(900,!1);return this.check(Y)?this:null}onDestroy(){}check(Y){this._reset();let et,tn,ni,ae=this._itHead,ke=!1;if(Array.isArray(Y)){this.length=Y.length;for(let Hi=0;Hi<this.length;Hi++)tn=Y[Hi],ni=this._trackByFn(Hi,tn),null!==ae&&Object.is(ae.trackById,ni)?(ke&&(ae=this._verifyReinsertion(ae,tn,ni,Hi)),Object.is(ae.item,tn)||this._addIdentityChange(ae,tn)):(ae=this._mismatch(ae,tn,ni,Hi),ke=!0),ae=ae._next}else et=0,function eb(N,Y){if(Array.isArray(N))for(let ae=0;ae<N.length;ae++)Y(N[ae]);else{const ae=N[Symbol.iterator]();let ke;for(;!(ke=ae.next()).done;)Y(ke.value)}}(Y,Hi=>{ni=this._trackByFn(et,Hi),null!==ae&&Object.is(ae.trackById,ni)?(ke&&(ae=this._verifyReinsertion(ae,Hi,ni,et)),Object.is(ae.item,Hi)||this._addIdentityChange(ae,Hi)):(ae=this._mismatch(ae,Hi,ni,et),ke=!0),ae=ae._next,et++}),this.length=et;return this._truncate(ae),this.collection=Y,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let Y;for(Y=this._previousItHead=this._itHead;null!==Y;Y=Y._next)Y._nextPrevious=Y._next;for(Y=this._additionsHead;null!==Y;Y=Y._nextAdded)Y.previousIndex=Y.currentIndex;for(this._additionsHead=this._additionsTail=null,Y=this._movesHead;null!==Y;Y=Y._nextMoved)Y.previousIndex=Y.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(Y,ae,ke,et){let tn;return null===Y?tn=this._itTail:(tn=Y._prev,this._remove(Y)),null!==(Y=null===this._unlinkedRecords?null:this._unlinkedRecords.get(ke,null))?(Object.is(Y.item,ae)||this._addIdentityChange(Y,ae),this._reinsertAfter(Y,tn,et)):null!==(Y=null===this._linkedRecords?null:this._linkedRecords.get(ke,et))?(Object.is(Y.item,ae)||this._addIdentityChange(Y,ae),this._moveAfter(Y,tn,et)):Y=this._addAfter(new Gl(ae,ke),tn,et),Y}_verifyReinsertion(Y,ae,ke,et){let tn=null===this._unlinkedRecords?null:this._unlinkedRecords.get(ke,null);return null!==tn?Y=this._reinsertAfter(tn,Y._prev,et):Y.currentIndex!=et&&(Y.currentIndex=et,this._addToMoves(Y,et)),Y}_truncate(Y){for(;null!==Y;){const ae=Y._next;this._addToRemovals(this._unlink(Y)),Y=ae}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(Y,ae,ke){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(Y);const et=Y._prevRemoved,tn=Y._nextRemoved;return null===et?this._removalsHead=tn:et._nextRemoved=tn,null===tn?this._removalsTail=et:tn._prevRemoved=et,this._insertAfter(Y,ae,ke),this._addToMoves(Y,ke),Y}_moveAfter(Y,ae,ke){return this._unlink(Y),this._insertAfter(Y,ae,ke),this._addToMoves(Y,ke),Y}_addAfter(Y,ae,ke){return this._insertAfter(Y,ae,ke),this._additionsTail=null===this._additionsTail?this._additionsHead=Y:this._additionsTail._nextAdded=Y,Y}_insertAfter(Y,ae,ke){const et=null===ae?this._itHead:ae._next;return Y._next=et,Y._prev=ae,null===et?this._itTail=Y:et._prev=Y,null===ae?this._itHead=Y:ae._next=Y,null===this._linkedRecords&&(this._linkedRecords=new fC),this._linkedRecords.put(Y),Y.currentIndex=ke,Y}_remove(Y){return this._addToRemovals(this._unlink(Y))}_unlink(Y){null!==this._linkedRecords&&this._linkedRecords.remove(Y);const ae=Y._prev,ke=Y._next;return null===ae?this._itHead=ke:ae._next=ke,null===ke?this._itTail=ae:ke._prev=ae,Y}_addToMoves(Y,ae){return Y.previousIndex===ae||(this._movesTail=null===this._movesTail?this._movesHead=Y:this._movesTail._nextMoved=Y),Y}_addToRemovals(Y){return null===this._unlinkedRecords&&(this._unlinkedRecords=new fC),this._unlinkedRecords.put(Y),Y.currentIndex=null,Y._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=Y,Y._prevRemoved=null):(Y._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=Y),Y}_addIdentityChange(Y,ae){return Y.item=ae,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=Y:this._identityChangesTail._nextIdentityChange=Y,Y}}class Gl{constructor(Y,ae){this.item=Y,this.trackById=ae,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 e2{constructor(){this._head=null,this._tail=null}add(Y){null===this._head?(this._head=this._tail=Y,Y._nextDup=null,Y._prevDup=null):(this._tail._nextDup=Y,Y._prevDup=this._tail,Y._nextDup=null,this._tail=Y)}get(Y,ae){let ke;for(ke=this._head;null!==ke;ke=ke._nextDup)if((null===ae||ae<=ke.currentIndex)&&Object.is(ke.trackById,Y))return ke;return null}remove(Y){const ae=Y._prevDup,ke=Y._nextDup;return null===ae?this._head=ke:ae._nextDup=ke,null===ke?this._tail=ae:ke._prevDup=ae,null===this._head}}class fC{constructor(){this.map=new Map}put(Y){const ae=Y.trackById;let ke=this.map.get(ae);ke||(ke=new e2,this.map.set(ae,ke)),ke.add(Y)}get(Y,ae){const et=this.map.get(Y);return et?et.get(Y,ae):null}remove(Y){const ae=Y.trackById;return this.map.get(ae).remove(Y)&&this.map.delete(ae),Y}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function pC(N,Y,ae){const ke=N.previousIndex;if(null===ke)return ke;let et=0;return ae&&ke<ae.length&&(et=ae[ke]),ke+Y+et}class dy{constructor(){}supports(Y){return Y instanceof Map||Fv(Y)}create(){return new Uw}}class Uw{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(Y){let ae;for(ae=this._mapHead;null!==ae;ae=ae._next)Y(ae)}forEachPreviousItem(Y){let ae;for(ae=this._previousMapHead;null!==ae;ae=ae._nextPrevious)Y(ae)}forEachChangedItem(Y){let ae;for(ae=this._changesHead;null!==ae;ae=ae._nextChanged)Y(ae)}forEachAddedItem(Y){let ae;for(ae=this._additionsHead;null!==ae;ae=ae._nextAdded)Y(ae)}forEachRemovedItem(Y){let ae;for(ae=this._removalsHead;null!==ae;ae=ae._nextRemoved)Y(ae)}diff(Y){if(Y){if(!(Y instanceof Map||Fv(Y)))throw new b(900,!1)}else Y=new Map;return this.check(Y)?this:null}onDestroy(){}check(Y){this._reset();let ae=this._mapHead;if(this._appendAfter=null,this._forEach(Y,(ke,et)=>{if(ae&&ae.key===et)this._maybeAddToChanges(ae,ke),this._appendAfter=ae,ae=ae._next;else{const tn=this._getOrCreateRecordForKey(et,ke);ae=this._insertBeforeOrAppend(ae,tn)}}),ae){ae._prev&&(ae._prev._next=null),this._removalsHead=ae;for(let ke=ae;null!==ke;ke=ke._nextRemoved)ke===this._mapHead&&(this._mapHead=null),this._records.delete(ke.key),ke._nextRemoved=ke._next,ke.previousValue=ke.currentValue,ke.currentValue=null,ke._prev=null,ke._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(Y,ae){if(Y){const ke=Y._prev;return ae._next=Y,ae._prev=ke,Y._prev=ae,ke&&(ke._next=ae),Y===this._mapHead&&(this._mapHead=ae),this._appendAfter=Y,Y}return this._appendAfter?(this._appendAfter._next=ae,ae._prev=this._appendAfter):this._mapHead=ae,this._appendAfter=ae,null}_getOrCreateRecordForKey(Y,ae){if(this._records.has(Y)){const et=this._records.get(Y);this._maybeAddToChanges(et,ae);const tn=et._prev,ni=et._next;return tn&&(tn._next=ni),ni&&(ni._prev=tn),et._next=null,et._prev=null,et}const ke=new Gw(Y);return this._records.set(Y,ke),ke.currentValue=ae,this._addToAdditions(ke),ke}_reset(){if(this.isDirty){let Y;for(this._previousMapHead=this._mapHead,Y=this._previousMapHead;null!==Y;Y=Y._next)Y._nextPrevious=Y._next;for(Y=this._changesHead;null!==Y;Y=Y._nextChanged)Y.previousValue=Y.currentValue;for(Y=this._additionsHead;null!=Y;Y=Y._nextAdded)Y.previousValue=Y.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(Y,ae){Object.is(ae,Y.currentValue)||(Y.previousValue=Y.currentValue,Y.currentValue=ae,this._addToChanges(Y))}_addToAdditions(Y){null===this._additionsHead?this._additionsHead=this._additionsTail=Y:(this._additionsTail._nextAdded=Y,this._additionsTail=Y)}_addToChanges(Y){null===this._changesHead?this._changesHead=this._changesTail=Y:(this._changesTail._nextChanged=Y,this._changesTail=Y)}_forEach(Y,ae){Y instanceof Map?Y.forEach(ae):Object.keys(Y).forEach(ke=>ae(Y[ke],ke))}}class Gw{constructor(Y){this.key=Y,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 mC(){return new t2([new qb])}let t2=(()=>{class N{static#e=this.\u0275prov=Te({token:N,providedIn:"root",factory:mC});constructor(ae){this.factories=ae}static create(ae,ke){if(null!=ke){const et=ke.factories.slice();ae=ae.concat(et)}return new N(ae)}static extend(ae){return{provide:N,useFactory:ke=>N.create(ae,ke||mC()),deps:[[N,new Ff,new uf]]}}find(ae){const ke=this.factories.find(et=>et.supports(ae));if(null!=ke)return ke;throw new b(901,!1)}}return N})();function gC(){return new O1([new dy])}let O1=(()=>{class N{static#e=this.\u0275prov=Te({token:N,providedIn:"root",factory:gC});constructor(ae){this.factories=ae}static create(ae,ke){if(ke){const et=ke.factories.slice();ae=ae.concat(et)}return new N(ae)}static extend(ae){return{provide:N,useFactory:ke=>N.create(ae,ke||gC()),deps:[[N,new Ff,new uf]]}}find(ae){const ke=this.factories.find(et=>et.supports(ae));if(ke)return ke;throw new b(901,!1)}}return N})();const P1=Xx(null,"core",[]);let Vw=(()=>{class N{constructor(ae){}static#e=this.\u0275fac=function(ke){return new(ke||N)(Bt(ly))};static#t=this.\u0275mod=Ea({type:N});static#n=this.\u0275inj=fe({})}return N})();function Kw(N){return"boolean"==typeof N?N:null!=N&&"false"!==N}function bC(N){const Y=Ao(N);if(!Y)return null;const ae=new sc(Y);return{get selector(){return ae.selector},get type(){return ae.componentType},get inputs(){return ae.inputs},get outputs(){return ae.outputs},get ngContentSelectors(){return ae.ngContentSelectors},get isStandalone(){return Y.standalone},get isSignal(){return Y.signals}}}},67217:(he,y,i)=>{"use strict";i.d(y,{Dh:()=>s,GT:()=>u,cc:()=>f,hO:()=>x,on:()=>_,pX:()=>l,xv:()=>A});var e=i(65879),n=i(8326),o=i(17142);const a=["ngOnDestroy"],l=(M,p,E,b={})=>new Proxy(M,{get:(I,L)=>E.runOutsideAngular(()=>{if(M[L])return b?.spy?.get&&b.spy.get(L,M[L]),M[L];if(a.indexOf(L)>-1)return()=>{};const D=p.toPromise().then(F=>{const P=F?.[L];return"function"==typeof P?P.bind(F):P?.then?P.then(O=>E.run(()=>O)):E.run(()=>P)});return new Proxy(()=>{},{get:(F,P)=>D[P],apply:(F,P,O)=>D.then(U=>{const V=U?.(...O);return b?.spy?.apply&&b.spy.apply(L,O,V),V})})})}),u=(M,p)=>{p.forEach(E=>{Object.getOwnPropertyNames(E.prototype||E).forEach(b=>{Object.defineProperty(M.prototype,b,Object.getOwnPropertyDescriptor(E.prototype||E,b))})})};class d{constructor(p){return p}}const s=new e.OlP("angularfire2.app.options"),A=new e.OlP("angularfire2.app.name");function _(M,p,E){const I="object"==typeof E&&E||{};I.name=I.name||"string"==typeof E&&E||"[DEFAULT]";const D=o.Z.apps.filter(F=>F&&F.name===I.name)[0]||p.runOutsideAngular(()=>o.Z.initializeApp(M,I));try{if(JSON.stringify(M)!==JSON.stringify(D.options)){const F=!!module.hot;C("error",`${D.name} Firebase App already initialized with different options${F?", you may need to reload as Firebase is not HMR aware.":"."}`)}}catch{}return new d(D)}const C=(M,...p)=>{(0,e.X6Q)()&&typeof console<"u"&&console[M](...p)},R={provide:d,useFactory:_,deps:[s,e.R0b,[new e.FiY,A]]};let x=(()=>{class M{static initializeApp(E,b){return{ngModule:M,providers:[{provide:s,useValue:E},{provide:A,useValue:b}]}}constructor(E){o.Z.registerVersion("angularfire",n.q4.full,"core"),o.Z.registerVersion("angularfire",n.q4.full,"app-compat"),o.Z.registerVersion("angular",e.q4F.full,E.toString())}static \u0275fac=function(b){return new(b||M)(e.LFG(e.Lbi))};static \u0275mod=e.oAB({type:M});static \u0275inj=e.cJS({providers:[R]})}return M})();function f(M,p,E,b,I){const[,L,D]=globalThis.\u0275AngularfireInstanceCache.find(F=>F[0]===M)||[];if(L)return function k(M,p){try{return M.toString()===p.toString()}catch{return M===p}}(I,D)||(g("error",`${p} was already initialized on the ${E} Firebase App with different settings.${w?" You may need to reload as Firebase is not HMR aware.":""}`),g("warn",{is:I,was:D})),L;{const F=b();return globalThis.\u0275AngularfireInstanceCache.push([M,F,I]),F}}const w=typeof module<"u"&&!!module.hot,g=(M,...p)=>{(0,e.X6Q)()&&typeof console<"u"&&console[M](...p)};globalThis.\u0275AngularfireInstanceCache||=[]},8326:(he,y,i)=>{"use strict";i.d(y,{q4:()=>R,HU:()=>b});var e=i(65879);
/**
         * @license
         * Copyright 2020 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */(0,i(24303).registerVersion)("firebase","10.12.4","app");var l=i(41954),d=i(2631);const A=new class s extends d.v{}(class u extends l.o{constructor(me,J){super(me,J),this.scheduler=me,this.work=J}schedule(me,J=0){return J>0?super.schedule(me,J):(this.delay=J,this.state=me,this.scheduler.flush(this),this)}execute(me,J){return J>0||this.closed?super.execute(me,J):this._execute(me,J)}requestAsyncId(me,J,Q=0){return null!=Q&&Q>0||null==Q&&this.delay>0?super.requestAsyncId(me,J,Q):(me.flush(this),0)}});var C=i(16321);const R=new e.GfV("ANGULARFIRE2_VERSION");class p{zone;delegate;constructor(me,J=A){this.zone=me,this.delegate=J}now(){return this.delegate.now()}schedule(me,J,Q){const re=this.zone;return this.delegate.schedule(function(te){re.runGuarded(()=>{me.apply(this,[te])})},J,Q)}}let b=(()=>{class X{ngZone;outsideAngular;insideAngular;constructor(J){this.ngZone=J,this.outsideAngular=J.runOutsideAngular(()=>new p(Zone.current)),this.insideAngular=J.run(()=>new p(Zone.current,C.z)),globalThis.\u0275AngularFireScheduler||=this}static \u0275fac=function(Q){return new(Q||X)(e.LFG(e.R0b))};static \u0275prov=e.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"})}return X})()},95766:(he,y,i)=>{"use strict";
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */
function e(_){for(let C in _){let R=_[C]??"";switch(C){case"display":_.display="flex"===R?["-webkit-flex","flex"]:"inline-flex"===R?["-webkit-inline-flex","inline-flex"]:R;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":_["-webkit-"+C]=R;break;case"flex-direction":_["-webkit-flex-direction"]=R,_["flex-direction"]=R;break;case"order":_.order=_["-webkit-"+C]=isNaN(+R)?"0":R}}return _}
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */i.d(y,{Ar:()=>a,GK:()=>e,iQ:()=>o,kt:()=>A,tj:()=>u});const n="inline",o=["row","column","row-reverse","column-reverse"];function a(_){let[C,R,x]=l(_);return function s(_,C=null,R=!1){return{display:R?"inline-flex":"flex","box-sizing":"border-box","flex-direction":_,"flex-wrap":C||null}}
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */(C,R,x)}function l(_){_=_?.toLowerCase()??"";let[C,R,x]=_.split(" ");return o.find(f=>f===C)||(C=o[0]),R===n&&(R=x!==n?x:"",x=n),[C,d(R),!!x]}function u(_){let[C]=l(_);return C.indexOf("row")>-1}function d(_){if(_)switch(_.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":_="wrap-reverse";break;case"no":case"none":case"nowrap":_="nowrap";break;default:_="wrap"}return _}function A(_,...C){if(null==_)throw TypeError("Cannot convert undefined or null to object");for(let R of C)if(null!=R)for(let x in R)R.hasOwnProperty(x)&&(_[x]=R[x]);return _}
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */},1462:(he,y,i)=>{"use strict";i.d(y,{Bs:()=>P,FL:()=>Ki,IR:()=>E,Ot:()=>Ji,QI:()=>U,RK:()=>V,WU:()=>D,g5:()=>L,iR:()=>yi,u0:()=>Ko,wY:()=>F,yB:()=>sn});var e=i(65879),n=i(96814),o=i(65619),a=i(65592),l=i(63019),u=i(78645),d=i(76410),s=i(22096),A=i(95766),_=i(32181),C=i(99397),R=i(83620),x=i(94664),f=i(37398),k=i(93997),w=i(59773);
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */const M={provide:e.tb,useFactory:function g(Fn,oi){return()=>{if((0,n.NF)(oi)){const It=Array.from(Fn.querySelectorAll(`[class*=${p}]`)),Bt=/\bflex-layout-.+?\b/g;It.forEach(xt=>{xt.classList.contains(`${p}ssr`)&&xt.parentNode?xt.parentNode.removeChild(xt):xt.className.replace(Bt,"")})}}},deps:[n.K0,e.Lbi],multi:!0},p="flex-layout-";
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */let E=(()=>{class Fn{}return Fn.\u0275fac=function(It){return new(It||Fn)},Fn.\u0275mod=e.oAB({type:Fn}),Fn.\u0275inj=e.cJS({providers:[M]}),Fn})();class b{constructor(oi=!1,It="all",Bt="",xt="",wt=0){this.matches=oi,this.mediaQuery=It,this.mqAlias=Bt,this.suffix=xt,this.priority=wt,this.property=""}clone(){return new b(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */let I=(()=>{class Fn{constructor(){this.stylesheet=new Map}addStyleToElement(It,Bt,xt){const wt=this.stylesheet.get(It);wt?wt.set(Bt,xt):this.stylesheet.set(It,new Map([[Bt,xt]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(It,Bt){const xt=this.stylesheet.get(It);let wt="";if(xt){const Mt=xt.get(Bt);("number"==typeof Mt||"string"==typeof Mt)&&(wt=Mt+"")}return wt}}return Fn.\u0275fac=function(It){return new(It||Fn)},Fn.\u0275prov=e.Yz7({token:Fn,factory:Fn.\u0275fac,providedIn:"root"}),Fn})();
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */const L={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},D=new e.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>L}),F=new e.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),P=new e.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */
function O(Fn,oi){return Fn=Fn?.clone()??new b,oi&&(Fn.mqAlias=oi.alias,Fn.mediaQuery=oi.mediaQuery,Fn.suffix=oi.suffix,Fn.priority=oi.priority),Fn}class U{constructor(){this.shouldCache=!0}sideEffect(oi,It,Bt){}}
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */let V=(()=>{class Fn{constructor(It,Bt,xt,wt){this._serverStylesheet=It,this._serverModuleLoaded=Bt,this._platformId=xt,this.layoutConfig=wt}applyStyleToElement(It,Bt,xt=null){let wt={};"string"==typeof Bt&&(wt[Bt]=xt,Bt=wt),wt=this.layoutConfig.disableVendorPrefixes?Bt:(0,A.GK)(Bt),this._applyMultiValueStyleToElement(wt,It)}applyStyleToElements(It,Bt=[]){const xt=this.layoutConfig.disableVendorPrefixes?It:(0,A.GK)(It);Bt.forEach(wt=>{this._applyMultiValueStyleToElement(xt,wt)})}getFlowDirection(It){const Bt="flex-direction";let xt=this.lookupStyle(It,Bt);return[xt||"row",this.lookupInlineStyle(It,Bt)||(0,n.PM)(this._platformId)&&this._serverModuleLoaded?xt:""]}hasWrap(It){return"wrap"===this.lookupStyle(It,"flex-wrap")}lookupAttributeValue(It,Bt){return It.getAttribute(Bt)??""}lookupInlineStyle(It,Bt){return(0,n.NF)(this._platformId)?It.style.getPropertyValue(Bt):function K(Fn,oi){return J(Fn)[oi]??""}(It,Bt)}lookupStyle(It,Bt,xt=!1){let wt="";return It&&((wt=this.lookupInlineStyle(It,Bt))||((0,n.NF)(this._platformId)?xt||(wt=getComputedStyle(It).getPropertyValue(Bt)):this._serverModuleLoaded&&(wt=this._serverStylesheet.getStyleForElement(It,Bt)))),wt?wt.trim():""}_applyMultiValueStyleToElement(It,Bt){Object.keys(It).sort().forEach(xt=>{const wt=It[xt],Mt=Array.isArray(wt)?wt:[wt];Mt.sort();for(let pt of Mt)pt=pt?pt+"":"",(0,n.NF)(this._platformId)||!this._serverModuleLoaded?(0,n.NF)(this._platformId)?Bt.style.setProperty(xt,pt):X(Bt,xt,pt):this._serverStylesheet.addStyleToElement(Bt,xt,pt)})}}return Fn.\u0275fac=function(It){return new(It||Fn)(e.LFG(I),e.LFG(F),e.LFG(e.Lbi),e.LFG(D))},Fn.\u0275prov=e.Yz7({token:Fn,factory:Fn.\u0275fac,providedIn:"root"}),Fn})();function X(Fn,oi,It){oi=oi.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const Bt=J(Fn);Bt[oi]=It??"",function me(Fn,oi){let It="";for(const Bt in oi)oi[Bt]&&(It+=`${Bt}:${oi[Bt]};`);Fn.setAttribute("style",It)}(Fn,Bt)}function J(Fn){const oi={},It=Fn.getAttribute("style");if(It){const Bt=It.split(/;+/g);for(let xt=0;xt<Bt.length;xt++){const wt=Bt[xt].trim();if(wt.length>0){const Mt=wt.indexOf(":");if(-1===Mt)throw new Error(`Invalid CSS style: ${wt}`);oi[wt.substr(0,Mt).trim()]=wt.substr(Mt+1).trim()}}}return oi}
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */function Q(Fn,oi){return(oi&&oi.priority||0)-(Fn&&Fn.priority||0)}function re(Fn,oi){return(Fn.priority||0)-(oi.priority||0)}
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */let de=(()=>{class Fn{constructor(It,Bt,xt){this._zone=It,this._platformId=Bt,this._document=xt,this.source=new o.X(new b(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const It=[];return this.registry.forEach((Bt,xt)=>{Bt.matches&&It.push(xt)}),It}isActive(It){return this.registry.get(It)?.matches??this.registerQuery(It).some(xt=>xt.matches)}observe(It,Bt=!1){if(It&&It.length){const xt=this._observable$.pipe((0,_.h)(Mt=>!Bt||It.indexOf(Mt.mediaQuery)>-1)),wt=new a.y(Mt=>{const pt=this.registerQuery(It);if(pt.length){const Lt=pt.pop();pt.forEach(tt=>{Mt.next(tt)}),this.source.next(Lt)}Mt.complete()});return(0,l.T)(wt,xt)}return this._observable$}registerQuery(It){const Bt=Array.isArray(It)?It:[It],xt=[];return function j(Fn,oi){const It=Fn.filter(Bt=>!te[Bt]);if(It.length>0){const Bt=It.join(", ");try{const xt=oi.createElement("style");xt.setAttribute("type","text/css"),xt.styleSheet||xt.appendChild(oi.createTextNode(`\n/*\n  @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n  see http://bit.ly/2sd4HMP\n*/\n@media ${Bt} {.fx-query-test{ }}\n`)),oi.head.appendChild(xt),It.forEach(wt=>te[wt]=xt)}catch(xt){console.error(xt)}}}(Bt,this._document),Bt.forEach(wt=>{const Mt=Lt=>{this._zone.run(()=>this.source.next(new b(Lt.matches,wt)))};let pt=this.registry.get(wt);pt||(pt=this.buildMQL(wt),pt.addListener(Mt),this.pendingRemoveListenerFns.push(()=>pt.removeListener(Mt)),this.registry.set(wt,pt)),pt.matches&&xt.push(new b(!0,wt))}),xt}ngOnDestroy(){let It;for(;It=this.pendingRemoveListenerFns.pop();)It()}buildMQL(It){return function z(Fn,oi){return oi&&window.matchMedia("all").addListener?window.matchMedia(Fn):function H(Fn){const oi=new EventTarget;return oi.matches="all"===Fn||""===Fn,oi.media=Fn,oi.addListener=()=>{},oi.removeListener=()=>{},oi.addEventListener=()=>{},oi.dispatchEvent=()=>!1,oi.onchange=null,oi}(Fn)}(It,(0,n.NF)(this._platformId))}}return Fn.\u0275fac=function(It){return new(It||Fn)(e.LFG(e.R0b),e.LFG(e.Lbi),e.LFG(n.K0))},Fn.\u0275prov=e.Yz7({token:Fn,factory:Fn.\u0275fac,providedIn:"root"}),Fn})();const te={},q=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],se="(orientation: portrait) and (max-width: 599.98px)",ne="(orientation: landscape) and (max-width: 959.98px)",_e="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",ge="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",Ce="(orientation: portrait) and (min-width: 840px)",Te="(orientation: landscape) and (min-width: 1280px)",De={HANDSET:`${se}, ${ne}`,TABLET:`${_e} , ${ge}`,WEB:`${Ce}, ${Te} `,HANDSET_PORTRAIT:`${se}`,TABLET_PORTRAIT:`${_e} `,WEB_PORTRAIT:`${Ce}`,HANDSET_LANDSCAPE:`${ne}`,TABLET_LANDSCAPE:`${ge}`,WEB_LANDSCAPE:`${Te}`},fe=[{alias:"handset",priority:2e3,mediaQuery:De.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:De.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:De.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:De.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:De.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:De.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:De.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:De.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:De.WEB_PORTRAIT,overlapping:!0}],xe=/(\.|-|_)/g;function Oe(Fn){let oi=Fn.length>0?Fn.charAt(0):"",It=Fn.length>1?Fn.slice(1):"";return oi.toUpperCase()+It}
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */
const An=new e.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const Fn=(0,e.f3M)(P),oi=(0,e.f3M)(D),It=[].concat.apply([],(Fn||[]).map(xt=>Array.isArray(xt)?xt:[xt]));return function Ut(Fn,oi=[]){const It={};return Fn.forEach(Bt=>{It[Bt.alias]=Bt}),oi.forEach(Bt=>{It[Bt.alias]?(0,A.kt)(It[Bt.alias],Bt):It[Bt.alias]=Bt}),function Gt(Fn){return Fn.forEach(oi=>{oi.suffix||(oi.suffix=function Le(Fn){return Fn.replace(xe,"|").split("|").map(Oe).join("")}(oi.alias),oi.overlapping=!!oi.overlapping)}),Fn}(Object.keys(It).map(Bt=>It[Bt]))}((oi.disableDefaultBps?[]:q).concat(oi.addOrientationBps?fe:[]),It)}});
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */let $n=(()=>{class Fn{constructor(It){this.findByMap=new Map,this.items=[...It].sort(re)}findByAlias(It){return It?this.findWithPredicate(It,Bt=>Bt.alias===It):null}findByQuery(It){return this.findWithPredicate(It,Bt=>Bt.mediaQuery===It)}get overlappings(){return this.items.filter(It=>It.overlapping)}get aliases(){return this.items.map(It=>It.alias)}get suffixes(){return this.items.map(It=>It?.suffix??"")}findWithPredicate(It,Bt){let xt=this.findByMap.get(It);return xt||(xt=this.items.find(Bt)??null,this.findByMap.set(It,xt)),xt??null}}return Fn.\u0275fac=function(It){return new(It||Fn)(e.LFG(An))},Fn.\u0275prov=e.Yz7({token:Fn,factory:Fn.\u0275fac,providedIn:"root"}),Fn})();
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */const xn="print",mt={alias:xn,mediaQuery:xn,priority:1e3};let ut=(()=>{class Fn{constructor(It,Bt,xt){this.breakpoints=It,this.layoutConfig=Bt,this._document=xt,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new Wt,this.deactivations=[]}withPrintQuery(It){return[...It,xn]}isPrintEvent(It){return It.mediaQuery.startsWith(xn)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(It=>this.breakpoints.findByAlias(It)).filter(It=>null!==It)}getEventBreakpoints({mediaQuery:It}){const Bt=this.breakpoints.findByQuery(It);return(Bt?[...this.printBreakPoints,Bt]:this.printBreakPoints).sort(Q)}updateEvent(It){let Bt=this.breakpoints.findByQuery(It.mediaQuery);return this.isPrintEvent(It)&&(Bt=this.getEventBreakpoints(It)[0],It.mediaQuery=Bt?.mediaQuery??""),O(It,Bt)}registerBeforeAfterPrintHooks(It){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const Bt=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(It,this.getEventBreakpoints(new b(!0,xn))),It.updateStyles())},xt=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(It),It.updateStyles())};this._document.defaultView.addEventListener("beforeprint",Bt),this._document.defaultView.addEventListener("afterprint",xt),this.beforePrintEventListeners.push(Bt),this.afterPrintEventListeners.push(xt)}interceptEvents(It){return Bt=>{this.isPrintEvent(Bt)?Bt.matches&&!this.isPrinting?(this.startPrinting(It,this.getEventBreakpoints(Bt)),It.updateStyles()):!Bt.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(It),It.updateStyles()):this.collectActivations(It,Bt)}}blockPropagation(){return It=>!(this.isPrinting||this.isPrintEvent(It))}startPrinting(It,Bt){this.isPrinting=!0,this.formerActivations=It.activatedBreakpoints,It.activatedBreakpoints=this.queue.addPrintBreakpoints(Bt)}stopPrinting(It){It.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(It,Bt){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!Bt.matches){const xt=this.breakpoints.findByQuery(Bt.mediaQuery);if(xt){const wt=this.formerActivations&&this.formerActivations.includes(xt),Mt=!this.formerActivations&&It.activatedBreakpoints.includes(xt);(wt||Mt)&&(this.deactivations.push(xt),this.deactivations.sort(Q))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(It=>this._document.defaultView.removeEventListener("beforeprint",It)),this.afterPrintEventListeners.forEach(It=>this._document.defaultView.removeEventListener("afterprint",It)))}}return Fn.\u0275fac=function(It){return new(It||Fn)(e.LFG($n),e.LFG(D),e.LFG(n.K0))},Fn.\u0275prov=e.Yz7({token:Fn,factory:Fn.\u0275fac,providedIn:"root"}),Fn})();class Wt{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(oi){return oi.push(mt),oi.sort(Q),oi.forEach(It=>this.addBreakpoint(It)),this.printBreakpoints}addBreakpoint(oi){oi&&void 0===this.printBreakpoints.find(Bt=>Bt.mediaQuery===oi.mediaQuery)&&(this.printBreakpoints=function dn(Fn){return Fn?.mediaQuery.startsWith(xn)??!1}
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */(oi)?[oi,...this.printBreakpoints]:[...this.printBreakpoints,oi])}clear(){this.printBreakpoints=[]}}let sn=(()=>{class Fn{constructor(It,Bt,xt){this.matchMedia=It,this.breakpoints=Bt,this.hook=xt,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new u.x,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(It){this._activatedBreakpoints=[...It]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(It){this._useFallbacks=It}onMediaChange(It){const Bt=this.findByQuery(It.mediaQuery);if(Bt){It=O(It,Bt);const xt=this.activatedBreakpoints.indexOf(Bt);It.matches&&-1===xt?(this._activatedBreakpoints.push(Bt),this._activatedBreakpoints.sort(Q),this.updateStyles()):!It.matches&&-1!==xt&&(this._activatedBreakpoints.splice(xt,1),this._activatedBreakpoints.sort(Q),this.updateStyles())}}init(It,Bt,xt,wt,Mt=[]){fn(this.updateMap,It,Bt,xt),fn(this.clearMap,It,Bt,wt),this.buildElementKeyMap(It,Bt),this.watchExtraTriggers(It,Bt,Mt)}getValue(It,Bt,xt){const wt=this.elementMap.get(It);if(wt){const Mt=void 0!==xt?wt.get(xt):this.getActivatedValues(wt,Bt);if(Mt)return Mt.get(Bt)}}hasValue(It,Bt){const xt=this.elementMap.get(It);if(xt){const wt=this.getActivatedValues(xt,Bt);if(wt)return void 0!==wt.get(Bt)||!1}return!1}setValue(It,Bt,xt,wt){let Mt=this.elementMap.get(It);if(Mt){const Lt=(Mt.get(wt)??new Map).set(Bt,xt);Mt.set(wt,Lt),this.elementMap.set(It,Mt)}else Mt=(new Map).set(wt,(new Map).set(Bt,xt)),this.elementMap.set(It,Mt);const pt=this.getValue(It,Bt);void 0!==pt&&this.updateElement(It,Bt,pt)}trackValue(It,Bt){return this.subject.asObservable().pipe((0,_.h)(xt=>xt.element===It&&xt.key===Bt))}updateStyles(){this.elementMap.forEach((It,Bt)=>{const xt=new Set(this.elementKeyMap.get(Bt));let wt=this.getActivatedValues(It);wt&&wt.forEach((Mt,pt)=>{this.updateElement(Bt,pt,Mt),xt.delete(pt)}),xt.forEach(Mt=>{if(wt=this.getActivatedValues(It,Mt),wt){const pt=wt.get(Mt);this.updateElement(Bt,Mt,pt)}else this.clearElement(Bt,Mt)})})}clearElement(It,Bt){const xt=this.clearMap.get(It);if(xt){const wt=xt.get(Bt);wt&&(wt(),this.subject.next({element:It,key:Bt,value:""}))}}updateElement(It,Bt,xt){const wt=this.updateMap.get(It);if(wt){const Mt=wt.get(Bt);Mt&&(Mt(xt),this.subject.next({element:It,key:Bt,value:xt}))}}releaseElement(It){const Bt=this.watcherMap.get(It);Bt&&(Bt.forEach(wt=>wt.unsubscribe()),this.watcherMap.delete(It));const xt=this.elementMap.get(It);xt&&(xt.forEach((wt,Mt)=>xt.delete(Mt)),this.elementMap.delete(It))}triggerUpdate(It,Bt){const xt=this.elementMap.get(It);if(xt){const wt=this.getActivatedValues(xt,Bt);wt&&(Bt?this.updateElement(It,Bt,wt.get(Bt)):wt.forEach((Mt,pt)=>this.updateElement(It,pt,Mt)))}}buildElementKeyMap(It,Bt){let xt=this.elementKeyMap.get(It);xt||(xt=new Set,this.elementKeyMap.set(It,xt)),xt.add(Bt)}watchExtraTriggers(It,Bt,xt){if(xt&&xt.length){let wt=this.watcherMap.get(It);if(wt||(wt=new Map,this.watcherMap.set(It,wt)),!wt.get(Bt)){const pt=(0,l.T)(...xt).subscribe(()=>{const Lt=this.getValue(It,Bt);this.updateElement(It,Bt,Lt)});wt.set(Bt,pt)}}}findByQuery(It){return this.breakpoints.findByQuery(It)}getActivatedValues(It,Bt){for(let wt=0;wt<this.activatedBreakpoints.length;wt++){const pt=It.get(this.activatedBreakpoints[wt].alias);if(pt&&(void 0===Bt||pt.has(Bt)&&null!=pt.get(Bt)))return pt}if(!this._useFallbacks)return;const xt=It.get("");return void 0===Bt||xt&&xt.has(Bt)?xt:void 0}observeActivations(){const It=this.breakpoints.items.map(Bt=>Bt.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(It)).pipe((0,C.b)(this.hook.interceptEvents(this)),(0,_.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return Fn.\u0275fac=function(It){return new(It||Fn)(e.LFG(de),e.LFG($n),e.LFG(ut))},Fn.\u0275prov=e.Yz7({token:Fn,factory:Fn.\u0275fac,providedIn:"root"}),Fn})();function fn(Fn,oi,It,Bt){if(void 0!==Bt){const xt=Fn.get(oi)??new Map;xt.set(It,Bt),Fn.set(oi,xt)}}
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */let yi=(()=>{class Fn{constructor(It,Bt,xt,wt){this.elementRef=It,this.styleBuilder=Bt,this.styler=xt,this.marshal=wt,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new u.x,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(It){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,It,this.marshal.activatedAlias)}ngOnChanges(It){Object.keys(It).forEach(Bt=>{if(-1!==this.inputs.indexOf(Bt)){const xt=Bt.split(".").slice(1).join(".");this.setValue(It[Bt].currentValue,xt)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(It=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),It)}addStyles(It,Bt){const xt=this.styleBuilder,wt=xt.shouldCache;let Mt=this.styleCache.get(It);(!Mt||!wt)&&(Mt=xt.buildStyles(It,Bt),wt&&this.styleCache.set(It,Mt)),this.mru={...Mt},this.applyStyleToElement(Mt),xt.sideEffect(It,Mt,Bt)}clearStyles(){Object.keys(this.mru).forEach(It=>{this.mru[It]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(It,Bt=!1){if(It){const[xt,wt]=this.styler.getFlowDirection(It);if(!wt&&Bt){const Mt=(0,A.Ar)(xt);this.styler.applyStyleToElements(Mt,[It])}return xt.trim()}return"row"}hasWrap(It){return this.styler.hasWrap(It)}applyStyleToElement(It,Bt,xt=this.nativeElement){this.styler.applyStyleToElement(xt,It,Bt)}setValue(It,Bt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,It,Bt)}updateWithValue(It){this.currentValue!==It&&(this.addStyles(It),this.currentValue=It)}}return Fn.\u0275fac=function(It){return new(It||Fn)(e.Y36(e.SBq),e.Y36(U),e.Y36(V),e.Y36(sn))},Fn.\u0275dir=e.lG2({type:Fn,features:[e.TTD]}),Fn})();
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */EventTarget;
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */
let Ko=(()=>{class Fn{constructor(It,Bt,xt){this.breakpoints=It,this.matchMedia=Bt,this.hook=xt,this.filterOverlaps=!1,this.destroyed$=new u.x,this._media$=this.watchActivations()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}asObservable(){return this._media$}isActive(It){return function Bn(Fn){return Fn.flatMap(oi=>oi.split(",")).map(oi=>oi.trim())}
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */(
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */
function Eo(Fn){return Array.isArray(Fn)?Fn:[Fn]}(It)).some(xt=>{const wt=function xo(Fn,oi){return(oi.findByAlias(Fn)??oi.findByQuery(Fn))?.mediaQuery??null}(xt,this.breakpoints);return null!==wt&&this.matchMedia.isActive(wt)})}watchActivations(){const It=this.breakpoints.items.map(Bt=>Bt.mediaQuery);return this.buildObservable(It)}buildObservable(It){return this.matchMedia.observe(this.hook.withPrintQuery(It)).pipe((0,_.h)(Mt=>Mt.matches),(0,R.b)(0,d.E),(0,x.w)(Mt=>(0,s.of)(this.findAllActivations())),(0,f.U)(Mt=>this.filterOverlaps?Mt.filter(pt=>this.breakpoints.findByQuery(pt.mediaQuery)?.overlapping??!0):Mt),(0,_.h)(Mt=>Mt.filter(Lt=>Lt.mediaQuery.length>0).length>0),(0,k.x)((Mt,pt)=>{if(Mt.length!==pt.length)return!1;const Lt=Mt.map(vt=>vt.mediaQuery),tt=new Set(pt.map(vt=>vt.mediaQuery));return 0===new Set(Lt.filter(vt=>!tt.has(vt))).size}),(0,w.R)(this.destroyed$))}findAllActivations(){return this.matchMedia.activations.map(xt=>new b(!0,xt)).map(xt=>this.hook.isPrintEvent(xt)?this.hook.updateEvent(xt):xt).map(xt=>O(xt,this.breakpoints.findByQuery(xt.mediaQuery))).sort(Q)}}return Fn.\u0275fac=function(It){return new(It||Fn)(e.LFG($n),e.LFG(de),e.LFG(ut))},Fn.\u0275prov=e.Yz7({token:Fn,factory:Fn.\u0275fac,providedIn:"root"}),Fn})();
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */
function Ji(Fn,oi="1",It="1"){let Bt=[oi,It,Fn],xt=Fn.indexOf("calc");if(xt>0){Bt[2]=En(Fn.substring(xt).trim());let wt=Fn.substr(0,xt).trim().split(" ");2==wt.length&&(Bt[0]=wt[0],Bt[1]=wt[1])}else if(0==xt)Bt[2]=En(Fn.trim());else{let wt=Fn.split(" ");Bt=3===wt.length?wt:[oi,It,Fn]}return Bt}function En(Fn){return Fn.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}const un="x";function Ki(Fn,oi){if(void 0===oi)return Fn;const It=Bt=>{const xt=+Bt.slice(0,-un.length);return Fn.endsWith(un)&&!isNaN(xt)?`${xt*oi.value}${oi.unit}`:Fn};return Fn.includes(" ")?Fn.split(" ").map(It).join(" "):It(Fn)}
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */},27509:(he,y,i)=>{"use strict";i.d(y,{Zl:()=>J,aT:()=>de,b8:()=>I,oO:()=>w});var e=i(65879),n=i(1462),o=i(96814),a=i(42495),l=i(59773),u=i(6593);
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */let x=(()=>{class te extends n.iR{constructor(H,z,q,se,ne,_e,ge){super(H,null,z,q),this.ngClassInstance=ge,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new o.mk(se,ne,H,_e)),this.init(),this.setValue("","")}set klass(H){this.ngClassInstance.klass=H,this.setValue(H,"")}updateWithValue(H){this.ngClassInstance.ngClass=H,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return te.\u0275fac=function(H){return new(H||te)(e.Y36(e.SBq),e.Y36(n.RK),e.Y36(n.yB),e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(o.mk,10))},te.\u0275dir=e.lG2({type:te,inputs:{klass:["class","klass"]},features:[e.qOj]}),te})();
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */const f=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let w=(()=>{class te extends x{constructor(){super(...arguments),this.inputs=f}}return te.\u0275fac=function(){let j;return function(z){return(j||(j=e.n5z(te)))(z||te)}}(),te.\u0275dir=e.lG2({type:te,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[e.qOj]}),te})(),g=(()=>{class te extends n.QI{buildStyles(H,z){return{display:"true"===H?z.display||(z.isServer?"initial":""):"none"}}}return te.\u0275fac=function(){let j;return function(z){return(j||(j=e.n5z(te)))(z||te)}}(),te.\u0275prov=e.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),M=(()=>{class te extends n.iR{constructor(H,z,q,se,ne,_e,ge){super(H,z,q,se),this.layoutConfig=ne,this.platformId=_e,this.serverModuleLoaded=ge,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const H=Array.from(this.nativeElement.children);for(let q=0;q<H.length;q++)if(this.marshal.hasValue(H[q],"flex")){this.hasFlexChild=!0;break}p.has(this.nativeElement)?this.display=p.get(this.nativeElement):(this.display=this.getDisplayStyle(),p.set(this.nativeElement,this.display)),this.init();const z=this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY,"");void 0===z||""===z?this.setValue(!0,""):this.triggerUpdate()}ngOnChanges(H){Object.keys(H).forEach(z=>{if(-1!==this.inputs.indexOf(z)){const q=z.split("."),se=q.slice(1).join("."),ne=H[z].currentValue;let _e=""===ne||0!==ne&&(0,a.Ig)(ne);"fxHide"===q[0]&&(_e=!_e),this.setValue(_e,se)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(H=>{this.marshal.trackValue(this.nativeElement,H).pipe((0,l.R)(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(H=!0){if(""===H)return;const z=(0,o.PM)(this.platformId);this.addStyles(H?"true":"false",{display:this.display,isServer:z}),z&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return te.\u0275fac=function(H){return new(H||te)(e.Y36(e.SBq),e.Y36(g),e.Y36(n.RK),e.Y36(n.yB),e.Y36(n.WU),e.Y36(e.Lbi),e.Y36(n.wY))},te.\u0275dir=e.lG2({type:te,features:[e.qOj,e.TTD]}),te})();
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */const p=new WeakMap,E=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];let I=(()=>{class te extends M{constructor(){super(...arguments),this.inputs=E}}return te.\u0275fac=function(){let j;return function(z){return(j||(j=e.n5z(te)))(z||te)}}(),te.\u0275dir=e.lG2({type:te,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[e.qOj]}),te})();
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */class L{constructor(j,H,z=!0){this.key=j,this.value=H,this.key=z?j.replace(/['"]/g,"").trim():j.trim(),this.value=z?H.replace(/['"]/g,"").trim():H.trim(),this.value=this.value.replace(/;/,"")}}function D(te){let j=typeof te;return"object"===j?te.constructor===Array?"array":te.constructor===Set?"set":"object":j}function U(te){const[j,...H]=te.split(":");return new L(j,H.join(":"))}function V(te,j){return j.key&&(te[j.key]=j.value),te
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */}let K=(()=>{class te extends n.iR{constructor(H,z,q,se,ne,_e,ge,Ce,Te){super(H,null,z,q),this.sanitizer=se,this.ngStyleInstance=ge,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new o.PC(H,ne,_e)),this.init();const De=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(De),this.isServer=Ce&&(0,o.PM)(Te)}updateWithValue(H){const z=this.buildStyleMap(H);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...z},this.isServer&&this.applyStyleToElement(z),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(H){const z=q=>this.sanitizer.sanitize(e.q3G.STYLE,q)??"";if(H)switch(D(H)){case"string":return Q(function F(te,j=";"){return String(te).trim().split(j).map(H=>H.trim()).filter(H=>""!==H)}(H),z);case"array":return Q(H,z);default:return function O(te,j){let H=[];return"set"===D(te)?te.forEach(z=>H.push(z)):Object.keys(te).forEach(z=>{H.push(`${z}:${te[z]}`)}),function P(te,j){return te.map(U).filter(z=>!!z).map(z=>(j&&(z.value=j(z.value)),z)).reduce(V,{})}(H,j)}(H,z)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return te.\u0275fac=function(H){return new(H||te)(e.Y36(e.SBq),e.Y36(n.RK),e.Y36(n.yB),e.Y36(u.H7),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(o.PC,10),e.Y36(n.wY),e.Y36(e.Lbi))},te.\u0275dir=e.lG2({type:te,features:[e.qOj]}),te})();const X=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let J=(()=>{class te extends K{constructor(){super(...arguments),this.inputs=X}}return te.\u0275fac=function(){let j;return function(z){return(j||(j=e.n5z(te)))(z||te)}}(),te.\u0275dir=e.lG2({type:te,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[e.qOj]}),te})();function Q(te,j){return te.map(U).filter(z=>!!z).map(z=>(j&&(z.value=j(z.value)),z)).reduce(V,{})}
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */let de=(()=>{class te{}return te.\u0275fac=function(H){return new(H||te)},te.\u0275mod=e.oAB({type:te}),te.\u0275inj=e.cJS({imports:[n.IR]}),te})();
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */},83814:(he,y,i)=>{"use strict";i.d(y,{SQ:()=>M,Wh:()=>Mi,XD:()=>xn,ae:()=>Ki,s9:()=>Wt,xw:()=>C,yH:()=>me});var e=i(65879),n=i(49388),o=i(1462),a=i(95766),l=i(78645),u=i(59773);
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */let d=(()=>{class Fn extends o.QI{buildStyles(It,{display:Bt}){const xt=(0,a.Ar)(It);return{...xt,display:"none"===Bt?Bt:xt.display}}}return Fn.\u0275fac=function(){let oi;return function(Bt){return(oi||(oi=e.n5z(Fn)))(Bt||Fn)}}(),Fn.\u0275prov=e.Yz7({token:Fn,factory:Fn.\u0275fac,providedIn:"root"}),Fn})();const s=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let _=(()=>{class Fn extends o.iR{constructor(It,Bt,xt,wt,Mt){super(It,xt,Bt,wt),this._config=Mt,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(It){const xt=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=R.get(xt)??new Map,R.set(xt,this.styleCache),this.currentValue!==It&&(this.addStyles(It,{display:xt}),this.currentValue=It)}}return Fn.\u0275fac=function(It){return new(It||Fn)(e.Y36(e.SBq),e.Y36(o.RK),e.Y36(d),e.Y36(o.yB),e.Y36(o.WU))},Fn.\u0275dir=e.lG2({type:Fn,features:[e.qOj]}),Fn})(),C=(()=>{class Fn extends _{constructor(){super(...arguments),this.inputs=s}}return Fn.\u0275fac=function(){let oi;return function(Bt){return(oi||(oi=e.n5z(Fn)))(Bt||Fn)}}(),Fn.\u0275dir=e.lG2({type:Fn,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[e.qOj]}),Fn})();const R=new Map,x={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */let f=(()=>{class Fn extends o.QI{constructor(It,Bt){super(),this._styler=It,this._config=Bt}buildStyles(It,Bt){return It.endsWith(L)?(It=It.slice(0,It.indexOf(L)),function F(Fn,oi){const[It,Bt]=Fn.split(" "),wt=tt=>`-${tt}`;let Mt="0px",pt=wt(Bt??It),Lt="0px";return"rtl"===oi?Lt=wt(It):Mt=wt(It),{margin:`0px ${Mt} ${pt} ${Lt}`}}(It=(0,o.FL)(It,this._config.multiplier),Bt.directionality)):{}}sideEffect(It,Bt,xt){const wt=xt.items;if(It.endsWith(L)){It=It.slice(0,It.indexOf(L));const Mt=function D(Fn,oi){const[It,Bt]=Fn.split(" ");let wt="0px",pt="0px";return"rtl"===oi?pt=It:wt=It,{padding:`0px ${wt} ${Bt??It} ${pt}`}}(It=(0,o.FL)(It,this._config.multiplier),xt.directionality);this._styler.applyStyleToElements(Mt,xt.items)}else{It=(0,o.FL)(It,this._config.multiplier),It=this.addFallbackUnit(It);const Mt=wt.pop(),pt=function O(Fn,oi){const It=P(oi.directionality,oi.layout),Bt={...x};return Bt[It]=Fn,Bt
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */}(It,xt);this._styler.applyStyleToElements(pt,wt),this._styler.applyStyleToElements(x,[Mt])}}addFallbackUnit(It){return isNaN(+It)?It:`${It}${this._config.defaultUnit}`}}return Fn.\u0275fac=function(It){return new(It||Fn)(e.LFG(o.RK),e.LFG(o.WU))},Fn.\u0275prov=e.Yz7({token:Fn,factory:Fn.\u0275fac,providedIn:"root"}),Fn})();const k=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let g=(()=>{class Fn extends o.iR{constructor(It,Bt,xt,wt,Mt,pt){super(It,Mt,wt,pt),this.zone=Bt,this.directionality=xt,this.styleUtils=wt,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new l.x;const Lt=[this.directionality.change,this.observerSubject.asObservable()];this.init(Lt),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,u.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const It=this.nativeElement.children,Bt=[];for(let xt=It.length;xt--;)Bt[xt]=It[xt];return Bt}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(It){const xt=It.value.split(" ");this.layout=xt[0],a.iQ.find(wt=>wt===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(It){const Bt=this.childrenNodes.filter(xt=>1===xt.nodeType&&this.willDisplay(xt)).sort((xt,wt)=>{const Mt=+this.styler.lookupStyle(xt,"order"),pt=+this.styler.lookupStyle(wt,"order");return isNaN(Mt)||isNaN(pt)||Mt===pt?0:Mt>pt?1:-1});if(Bt.length>0){const xt=this.directionality.value,wt=this.layout;"row"===wt&&"rtl"===xt?this.styleCache=p:"row"===wt&&"rtl"!==xt?this.styleCache=b:"column"===wt&&"rtl"===xt?this.styleCache=E:"column"===wt&&"rtl"!==xt&&(this.styleCache=I),this.addStyles(It,{directionality:xt,items:Bt,layout:wt})}}clearStyles(){const It=Object.keys(this.mru).length>0,Bt=It?"padding":P(this.directionality.value,this.layout);It&&super.clearStyles(),this.styleUtils.applyStyleToElements({[Bt]:""},this.childrenNodes)}willDisplay(It){const Bt=this.marshal.getValue(It,"show-hide");return!0===Bt||void 0===Bt&&"none"!==this.styleUtils.lookupStyle(It,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(It=>{It.some(xt=>xt.addedNodes&&xt.addedNodes.length>0||xt.removedNodes&&xt.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return Fn.\u0275fac=function(It){return new(It||Fn)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(n.Is),e.Y36(o.RK),e.Y36(f),e.Y36(o.yB))},Fn.\u0275dir=e.lG2({type:Fn,features:[e.qOj]}),Fn})(),M=(()=>{class Fn extends g{constructor(){super(...arguments),this.inputs=k}}return Fn.\u0275fac=function(){let oi;return function(Bt){return(oi||(oi=e.n5z(Fn)))(Bt||Fn)}}(),Fn.\u0275dir=e.lG2({type:Fn,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[e.qOj]}),Fn})();const p=new Map,E=new Map,b=new Map,I=new Map,L=" grid";function P(Fn,oi){switch(oi){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===Fn?"margin-left":"margin-right";case"row-reverse":return"rtl"===Fn?"margin-right":"margin-left"}}let U=(()=>{class Fn extends o.QI{constructor(It){super(),this.layoutConfig=It}buildStyles(It,Bt){let[xt,wt,...Mt]=It.split(" "),pt=Mt.join(" ");const Lt=Bt.direction.indexOf("column")>-1?"column":"row",tt=(0,a.tj)(Lt)?"max-width":"max-height",Ne=(0,a.tj)(Lt)?"min-width":"min-height",vt=String(pt).indexOf("calc")>-1,ln=vt||"auto"===pt,jn=String(pt).indexOf("%")>-1&&!vt,Pi=String(pt).indexOf("px")>-1||String(pt).indexOf("rem")>-1||String(pt).indexOf("em")>-1||String(pt).indexOf("vw")>-1||String(pt).indexOf("vh")>-1;let go=vt||Pi;xt="0"==xt?0:xt,wt="0"==wt?0:wt;const si=!xt&&!wt;let ot={};const pn={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(pt||""){case"":pt="row"===Lt?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":xt=0,pt="auto";break;case"grow":pt="100%";break;case"noshrink":wt=0,pt="auto";break;case"auto":break;case"none":xt=0,wt=0,pt="auto";break;default:!go&&!jn&&!isNaN(pt)&&(pt+="%"),"0%"===pt&&(go=!0),"0px"===pt&&(pt="0%"),ot=(0,a.kt)(pn,vt?{"flex-grow":xt,"flex-shrink":wt,"flex-basis":go?pt:"100%"}:{flex:`${xt} ${wt} ${go?pt:"100%"}`})}return ot.flex||ot["flex-grow"]||(ot=(0,a.kt)(pn,vt?{"flex-grow":xt,"flex-shrink":wt,"flex-basis":pt}:{flex:`${xt} ${wt} ${pt}`})),"0%"!==pt&&"0px"!==pt&&"0.000000001px"!==pt&&"auto"!==pt&&(ot[Ne]=si||go&&xt?pt:null,ot[tt]=si||!ln&&wt?pt:null),ot[Ne]||ot[tt]?Bt.hasWrap&&(ot[vt?"flex-basis":"flex"]=ot[tt]?vt?ot[tt]:`${xt} ${wt} ${ot[tt]}`:vt?ot[Ne]:`${xt} ${wt} ${ot[Ne]}`):ot=(0,a.kt)(pn,vt?{"flex-grow":xt,"flex-shrink":wt,"flex-basis":pt}:{flex:`${xt} ${wt} ${pt}`}),(0,a.kt)(ot,{"box-sizing":"border-box"})}}return Fn.\u0275fac=function(It){return new(It||Fn)(e.LFG(o.WU))},Fn.\u0275prov=e.Yz7({token:Fn,factory:Fn.\u0275fac,providedIn:"root"}),Fn})();const V=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let X=(()=>{class Fn extends o.iR{constructor(It,Bt,xt,wt,Mt){super(It,wt,Bt,Mt),this.layoutConfig=xt,this.marshal=Mt,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(It){this.flexShrink=It||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(It){this.flexGrow=It||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,u.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,u.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(It){const xt=It.value.split(" ");this.direction=xt[0],this.wrap=void 0!==xt[1]&&"wrap"===xt[1],this.triggerUpdate()}updateWithValue(It){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const xt=this.direction,wt=xt.startsWith("row"),Mt=this.wrap;wt&&Mt?this.styleCache=re:wt&&!Mt?this.styleCache=J:!wt&&Mt?this.styleCache=de:!wt&&!Mt&&(this.styleCache=Q);const pt=String(It).replace(";",""),Lt=(0,o.Ot)(pt,this.flexGrow,this.flexShrink);this.addStyles(Lt.join(" "),{direction:xt,hasWrap:Mt})}triggerReflow(){const It=this.activatedValue;if(void 0!==It){const Bt=(0,o.Ot)(It+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,Bt.join(" "))}}}return Fn.\u0275fac=function(It){return new(It||Fn)(e.Y36(e.SBq),e.Y36(o.RK),e.Y36(o.WU),e.Y36(U),e.Y36(o.yB))},Fn.\u0275dir=e.lG2({type:Fn,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[e.qOj]}),Fn})(),me=(()=>{class Fn extends X{constructor(){super(...arguments),this.inputs=V}}return Fn.\u0275fac=function(){let oi;return function(Bt){return(oi||(oi=e.n5z(Fn)))(Bt||Fn)}}(),Fn.\u0275dir=e.lG2({type:Fn,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[e.qOj]}),Fn})();const J=new Map,Q=new Map,re=new Map,de=new Map;
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */
let Le=(()=>{class Fn extends o.QI{buildStyles(It){const Bt={};switch(It=It||"stretch"){case"start":Bt["align-self"]="flex-start";break;case"end":Bt["align-self"]="flex-end";break;default:Bt["align-self"]=It}return Bt}}return Fn.\u0275fac=function(){let oi;return function(Bt){return(oi||(oi=e.n5z(Fn)))(Bt||Fn)}}(),Fn.\u0275prov=e.Yz7({token:Fn,factory:Fn.\u0275fac,providedIn:"root"}),Fn})();const Gt=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let An=(()=>{class Fn extends o.iR{constructor(It,Bt,xt,wt){super(It,xt,Bt,wt),this.DIRECTIVE_KEY="flex-align",this.styleCache=$n,this.init()}}return Fn.\u0275fac=function(It){return new(It||Fn)(e.Y36(e.SBq),e.Y36(o.RK),e.Y36(Le),e.Y36(o.yB))},Fn.\u0275dir=e.lG2({type:Fn,features:[e.qOj]}),Fn})();const $n=new Map;let xn=(()=>{class Fn extends An{constructor(){super(...arguments),this.inputs=Gt}}return Fn.\u0275fac=function(){let oi;return function(Bt){return(oi||(oi=e.n5z(Fn)))(Bt||Fn)}}(),Fn.\u0275dir=e.lG2({type:Fn,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[e.qOj]}),Fn})();
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */const mt={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let ut=(()=>{class Fn extends o.QI{buildStyles(It){return mt}}return Fn.\u0275fac=function(){let oi;return function(Bt){return(oi||(oi=e.n5z(Fn)))(Bt||Fn)}}(),Fn.\u0275prov=e.Yz7({token:Fn,factory:Fn.\u0275fac,providedIn:"root"}),Fn})(),Wt=(()=>{class Fn extends o.iR{constructor(It,Bt,xt,wt){super(It,xt,Bt,wt),this.styleCache=dn,this.addStyles("")}}return Fn.\u0275fac=function(It){return new(It||Fn)(e.Y36(e.SBq),e.Y36(o.RK),e.Y36(ut),e.Y36(o.yB))},Fn.\u0275dir=e.lG2({type:Fn,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[e.qOj]}),Fn})();const dn=new Map;
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */let sn=(()=>{class Fn extends o.QI{buildStyles(It,Bt){const xt={},[wt,Mt]=It.split(" ");switch(wt){case"center":xt["justify-content"]="center";break;case"space-around":xt["justify-content"]="space-around";break;case"space-between":xt["justify-content"]="space-between";break;case"space-evenly":xt["justify-content"]="space-evenly";break;case"end":case"flex-end":xt["justify-content"]="flex-end";break;default:xt["justify-content"]="flex-start"}switch(Mt){case"start":case"flex-start":xt["align-items"]=xt["align-content"]="flex-start";break;case"center":xt["align-items"]=xt["align-content"]="center";break;case"end":case"flex-end":xt["align-items"]=xt["align-content"]="flex-end";break;case"space-between":xt["align-content"]="space-between",xt["align-items"]="stretch";break;case"space-around":xt["align-content"]="space-around",xt["align-items"]="stretch";break;case"baseline":xt["align-content"]="stretch",xt["align-items"]="baseline";break;default:xt["align-items"]=xt["align-content"]="stretch"}return(0,a.kt)(xt,{display:Bt.inline?"inline-flex":"flex","flex-direction":Bt.layout,"box-sizing":"border-box","max-width":"stretch"===Mt?(0,a.tj)(Bt.layout)?null:"100%":null,"max-height":"stretch"===Mt&&(0,a.tj)(Bt.layout)?"100%":null})}}return Fn.\u0275fac=function(){let oi;return function(Bt){return(oi||(oi=e.n5z(Fn)))(Bt||Fn)}}(),Fn.\u0275prov=e.Yz7({token:Fn,factory:Fn.\u0275fac,providedIn:"root"}),Fn})();const fn=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let nn=(()=>{class Fn extends o.iR{constructor(It,Bt,xt,wt){super(It,xt,Bt,wt),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,u.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(It){const Bt=this.layout||"row",xt=this.inline;"row"===Bt&&xt?this.styleCache=Bn:"row"!==Bt||xt?"row-reverse"===Bt&&xt?this.styleCache=Ji:"row-reverse"!==Bt||xt?"column"===Bt&&xt?this.styleCache=Xt:"column"!==Bt||xt?"column-reverse"===Bt&&xt?this.styleCache=En:"column-reverse"===Bt&&!xt&&(this.styleCache=xo):this.styleCache=Eo:this.styleCache=Ko:this.styleCache=mi,this.addStyles(It,{layout:Bt,inline:xt})}onLayoutChange(It){const Bt=It.value.split(" ");this.layout=Bt[0],this.inline=It.value.includes("inline"),a.iQ.find(xt=>xt===this.layout)||(this.layout="row"),this.triggerUpdate()}}return Fn.\u0275fac=function(It){return new(It||Fn)(e.Y36(e.SBq),e.Y36(o.RK),e.Y36(sn),e.Y36(o.yB))},Fn.\u0275dir=e.lG2({type:Fn,features:[e.qOj]}),Fn})(),Mi=(()=>{class Fn extends nn{constructor(){super(...arguments),this.inputs=fn}}return Fn.\u0275fac=function(){let oi;return function(Bt){return(oi||(oi=e.n5z(Fn)))(Bt||Fn)}}(),Fn.\u0275dir=e.lG2({type:Fn,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[e.qOj]}),Fn})();const mi=new Map,Eo=new Map,Ko=new Map,xo=new Map,Bn=new Map,Xt=new Map,Ji=new Map,En=new Map;
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */let Ki=(()=>{class Fn{}return Fn.\u0275fac=function(It){return new(It||Fn)},Fn.\u0275mod=e.oAB({type:Fn}),Fn.\u0275inj=e.cJS({imports:[o.IR,n.vT]}),Fn})();
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */},89809:(he,y,i)=>{"use strict";i.d(y,{zE:()=>hi});var e=i(65879),n=i(1462);
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */i(42495);let hi=(()=>{class zn{}return zn.\u0275fac=function(li){return new(li||zn)},zn.\u0275mod=e.oAB({type:zn}),zn.\u0275inj=e.cJS({imports:[n.IR]}),zn})();
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */},85947:(he,y,i)=>{"use strict";i.d(y,{o9:()=>s});var e=i(65879),n=i(1462),o=i(27509),a=i(83814),l=i(89809),u=i(96814);
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */
let s=(()=>{class A{constructor(C,R){(0,u.PM)(R)&&!C&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(C,R=[]){return{ngModule:A,providers:C.serverLoaded?[{provide:n.WU,useValue:{...n.g5,...C}},{provide:n.Bs,useValue:R,multi:!0},{provide:n.wY,useValue:!0}]:[{provide:n.WU,useValue:{...n.g5,...C}},{provide:n.Bs,useValue:R,multi:!0}]}}}return A.\u0275fac=function(C){return new(C||A)(e.LFG(n.wY),e.LFG(e.Lbi))},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({imports:[a.ae,o.aT,l.zE,a.ae,o.aT,l.zE]}),A})();
/**
         * @license
         * Copyright Google LLC All Rights Reserved.
         *
         * Use of this source code is governed by an MIT-style license that can be
         * found in the LICENSE file at https://angular.io/license
         */},56223:(he,y,i)=>{"use strict";i.d(y,{Cf:()=>g,F:()=>Fo,Fd:()=>ll,Fj:()=>f,JJ:()=>Gt,JL:()=>Ut,JU:()=>s,Mq:()=>tr,NI:()=>Gn,On:()=>Ao,Q7:()=>ht,QS:()=>vn,UX:()=>ze,Wl:()=>_,Zs:()=>yn,_:()=>ri,_Y:()=>ao,a5:()=>fe,c5:()=>gs,cw:()=>pt,kI:()=>E,nD:()=>Ur,nJ:()=>Lt,oH:()=>Yr,p4:()=>Io,qQ:()=>sl,qu:()=>ra,sg:()=>fi,u:()=>xs,u5:()=>Ke,ve:()=>x,wO:()=>sr,wV:()=>pr});var e=i(65879),n=i(96814),o=i(72664),a=i(9315),l=i(37398);
/**
         * @license Angular v16.1.6
         * (c) 2010-2022 Google LLC. https://angular.io/
         * License: MIT
         */let u=(()=>{class St{constructor(Dt,Hn){this._renderer=Dt,this._elementRef=Hn,this.onChange=Ui=>{},this.onTouched=()=>{}}setProperty(Dt,Hn){this._renderer.setProperty(this._elementRef.nativeElement,Dt,Hn)}registerOnTouched(Dt){this.onTouched=Dt}registerOnChange(Dt){this.onChange=Dt}setDisabledState(Dt){this.setProperty("disabled",Dt)}static#e=this.\u0275fac=function(Hn){return new(Hn||St)(e.Y36(e.Qsj),e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:St})}return St})(),d=(()=>{class St extends u{static#e=this.\u0275fac=function(){let Dt;return function(Ui){return(Dt||(Dt=e.n5z(St)))(Ui||St)}}();static#t=this.\u0275dir=e.lG2({type:St,features:[e.qOj]})}return St})();const s=new e.OlP("NgValueAccessor"),A={provide:s,useExisting:(0,e.Gpc)(()=>_),multi:!0};let _=(()=>{class St extends d{writeValue(Dt){this.setProperty("checked",Dt)}static#e=this.\u0275fac=function(){let Dt;return function(Ui){return(Dt||(Dt=e.n5z(St)))(Ui||St)}}();static#t=this.\u0275dir=e.lG2({type:St,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(Hn,Ui){1&Hn&&e.NdJ("change",function(Sn){return Ui.onChange(Sn.target.checked)})("blur",function(){return Ui.onTouched()})},features:[e._Bn([A]),e.qOj]})}return St})();const C={provide:s,useExisting:(0,e.Gpc)(()=>f),multi:!0},x=new e.OlP("CompositionEventMode");let f=(()=>{class St extends u{constructor(Dt,Hn,Ui){super(Dt,Hn),this._compositionMode=Ui,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function R(){const St=(0,n.q)()?(0,n.q)().getUserAgent():"";return/android (\d+)/.test(St.toLowerCase())}())}writeValue(Dt){this.setProperty("value",Dt??"")}_handleInput(Dt){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Dt)}_compositionStart(){this._composing=!0}_compositionEnd(Dt){this._composing=!1,this._compositionMode&&this.onChange(Dt)}static#e=this.\u0275fac=function(Hn){return new(Hn||St)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(x,8))};static#t=this.\u0275dir=e.lG2({type:St,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(Hn,Ui){1&Hn&&e.NdJ("input",function(Sn){return Ui._handleInput(Sn.target.value)})("blur",function(){return Ui.onTouched()})("compositionstart",function(){return Ui._compositionStart()})("compositionend",function(Sn){return Ui._compositionEnd(Sn.target.value)})},features:[e._Bn([C]),e.qOj]})}return St})();function k(St){return null==St||("string"==typeof St||Array.isArray(St))&&0===St.length}function w(St){return null!=St&&"number"==typeof St.length}const g=new e.OlP("NgValidators"),M=new e.OlP("NgAsyncValidators"),p=/^(?=.{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 E{static min(it){return b(it)}static max(it){return I(it)}static required(it){return L(it)}static requiredTrue(it){return D(it)}static email(it){return function F(St){return k(St.value)||p.test(St.value)?null:{email:!0}}(it)}static minLength(it){return P(it)}static maxLength(it){return O(it)}static pattern(it){return U(it)}static nullValidator(it){return null}static compose(it){return de(it)}static composeAsync(it){return j(it)}}function b(St){return it=>{if(k(it.value)||k(St))return null;const Dt=parseFloat(it.value);return!isNaN(Dt)&&Dt<St?{min:{min:St,actual:it.value}}:null}}function I(St){return it=>{if(k(it.value)||k(St))return null;const Dt=parseFloat(it.value);return!isNaN(Dt)&&Dt>St?{max:{max:St,actual:it.value}}:null}}function L(St){return k(St.value)?{required:!0}:null}function D(St){return!0===St.value?null:{required:!0}}function P(St){return it=>k(it.value)||!w(it.value)?null:it.value.length<St?{minlength:{requiredLength:St,actualLength:it.value.length}}:null}function O(St){return it=>w(it.value)&&it.value.length>St?{maxlength:{requiredLength:St,actualLength:it.value.length}}:null}function U(St){if(!St)return V;let it,Dt;return"string"==typeof St?(Dt="","^"!==St.charAt(0)&&(Dt+="^"),Dt+=St,"$"!==St.charAt(St.length-1)&&(Dt+="$"),it=new RegExp(Dt)):(Dt=St.toString(),it=St),Hn=>{if(k(Hn.value))return null;const Ui=Hn.value;return it.test(Ui)?null:{pattern:{requiredPattern:Dt,actualValue:Ui}}}}function V(St){return null}function K(St){return null!=St}function X(St){return(0,e.QGY)(St)?(0,o.D)(St):St}function me(St){let it={};return St.forEach(Dt=>{it=null!=Dt?{...it,...Dt}:it}),0===Object.keys(it).length?null:it}function J(St,it){return it.map(Dt=>Dt(St))}function re(St){return St.map(it=>function Q(St){return!St.validate}(it)?it:Dt=>it.validate(Dt))}function de(St){if(!St)return null;const it=St.filter(K);return 0==it.length?null:function(Dt){return me(J(Dt,it))}}function te(St){return null!=St?de(re(St)):null}function j(St){if(!St)return null;const it=St.filter(K);return 0==it.length?null:function(Dt){const Hn=J(Dt,it).map(X);return(0,a.D)(Hn).pipe((0,l.U)(me))}}function H(St){return null!=St?j(re(St)):null}function z(St,it){return null===St?[it]:Array.isArray(St)?[...St,it]:[St,it]}function q(St){return St._rawValidators}function se(St){return St._rawAsyncValidators}function ne(St){return St?Array.isArray(St)?St:[St]:[]}function _e(St,it){return Array.isArray(St)?St.includes(it):St===it}function ge(St,it){const Dt=ne(it);return ne(St).forEach(Ui=>{_e(Dt,Ui)||Dt.push(Ui)}),Dt}function Ce(St,it){return ne(it).filter(Dt=>!_e(St,Dt))}class Te{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(it){this._rawValidators=it||[],this._composedValidatorFn=te(this._rawValidators)}_setAsyncValidators(it){this._rawAsyncValidators=it||[],this._composedAsyncValidatorFn=H(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(it){this._onDestroyCallbacks.push(it)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(it=>it()),this._onDestroyCallbacks=[]}reset(it=void 0){this.control&&this.control.reset(it)}hasError(it,Dt){return!!this.control&&this.control.hasError(it,Dt)}getError(it,Dt){return this.control?this.control.getError(it,Dt):null}}class De extends Te{get formDirective(){return null}get path(){return null}}class fe extends Te{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class xe{constructor(it){this._cd=it}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Gt=(()=>{class St extends xe{constructor(Dt){super(Dt)}static#e=this.\u0275fac=function(Hn){return new(Hn||St)(e.Y36(fe,2))};static#t=this.\u0275dir=e.lG2({type:St,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Hn,Ui){2&Hn&&e.ekj("ng-untouched",Ui.isUntouched)("ng-touched",Ui.isTouched)("ng-pristine",Ui.isPristine)("ng-dirty",Ui.isDirty)("ng-valid",Ui.isValid)("ng-invalid",Ui.isInvalid)("ng-pending",Ui.isPending)},features:[e.qOj]})}return St})(),Ut=(()=>{class St extends xe{constructor(Dt){super(Dt)}static#e=this.\u0275fac=function(Hn){return new(Hn||St)(e.Y36(De,10))};static#t=this.\u0275dir=e.lG2({type:St,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Hn,Ui){2&Hn&&e.ekj("ng-untouched",Ui.isUntouched)("ng-touched",Ui.isTouched)("ng-pristine",Ui.isPristine)("ng-dirty",Ui.isDirty)("ng-valid",Ui.isValid)("ng-invalid",Ui.isInvalid)("ng-pending",Ui.isPending)("ng-submitted",Ui.isSubmitted)},features:[e.qOj]})}return St})();const Xt="VALID",Ji="INVALID",En="PENDING",un="DISABLED";function Ki(St){return(Bt(St)?St.validators:St)||null}function oi(St,it){return(Bt(it)?it.asyncValidators:St)||null}function Bt(St){return null!=St&&!Array.isArray(St)&&"object"==typeof St}function xt(St,it,Dt){const Hn=St.controls;if(!(it?Object.keys(Hn):Hn).length)throw new e.vHH(1e3,"");if(!Hn[Dt])throw new e.vHH(1001,"")}function wt(St,it,Dt){St._forEachChild((Hn,Ui)=>{if(void 0===Dt[Ui])throw new e.vHH(1002,"")})}class Mt{constructor(it,Dt){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(it),this._assignAsyncValidators(Dt)}get validator(){return this._composedValidatorFn}set validator(it){this._rawValidators=this._composedValidatorFn=it}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(it){this._rawAsyncValidators=this._composedAsyncValidatorFn=it}get parent(){return this._parent}get valid(){return this.status===Xt}get invalid(){return this.status===Ji}get pending(){return this.status==En}get disabled(){return this.status===un}get enabled(){return this.status!==un}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(it){this._assignValidators(it)}setAsyncValidators(it){this._assignAsyncValidators(it)}addValidators(it){this.setValidators(ge(it,this._rawValidators))}addAsyncValidators(it){this.setAsyncValidators(ge(it,this._rawAsyncValidators))}removeValidators(it){this.setValidators(Ce(it,this._rawValidators))}removeAsyncValidators(it){this.setAsyncValidators(Ce(it,this._rawAsyncValidators))}hasValidator(it){return _e(this._rawValidators,it)}hasAsyncValidator(it){return _e(this._rawAsyncValidators,it)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(it={}){this.touched=!0,this._parent&&!it.onlySelf&&this._parent.markAsTouched(it)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(it=>it.markAllAsTouched())}markAsUntouched(it={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Dt=>{Dt.markAsUntouched({onlySelf:!0})}),this._parent&&!it.onlySelf&&this._parent._updateTouched(it)}markAsDirty(it={}){this.pristine=!1,this._parent&&!it.onlySelf&&this._parent.markAsDirty(it)}markAsPristine(it={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Dt=>{Dt.markAsPristine({onlySelf:!0})}),this._parent&&!it.onlySelf&&this._parent._updatePristine(it)}markAsPending(it={}){this.status=En,!1!==it.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!it.onlySelf&&this._parent.markAsPending(it)}disable(it={}){const Dt=this._parentMarkedDirty(it.onlySelf);this.status=un,this.errors=null,this._forEachChild(Hn=>{Hn.disable({...it,onlySelf:!0})}),this._updateValue(),!1!==it.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...it,skipPristineCheck:Dt}),this._onDisabledChange.forEach(Hn=>Hn(!0))}enable(it={}){const Dt=this._parentMarkedDirty(it.onlySelf);this.status=Xt,this._forEachChild(Hn=>{Hn.enable({...it,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:it.emitEvent}),this._updateAncestors({...it,skipPristineCheck:Dt}),this._onDisabledChange.forEach(Hn=>Hn(!1))}_updateAncestors(it){this._parent&&!it.onlySelf&&(this._parent.updateValueAndValidity(it),it.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(it){this._parent=it}getRawValue(){return this.value}updateValueAndValidity(it={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Xt||this.status===En)&&this._runAsyncValidator(it.emitEvent)),!1!==it.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!it.onlySelf&&this._parent.updateValueAndValidity(it)}_updateTreeValidity(it={emitEvent:!0}){this._forEachChild(Dt=>Dt._updateTreeValidity(it)),this.updateValueAndValidity({onlySelf:!0,emitEvent:it.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?un:Xt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(it){if(this.asyncValidator){this.status=En,this._hasOwnPendingAsyncValidator=!0;const Dt=X(this.asyncValidator(this));this._asyncValidationSubscription=Dt.subscribe(Hn=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Hn,{emitEvent:it})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(it,Dt={}){this.errors=it,this._updateControlsErrors(!1!==Dt.emitEvent)}get(it){let Dt=it;return null==Dt||(Array.isArray(Dt)||(Dt=Dt.split(".")),0===Dt.length)?null:Dt.reduce((Hn,Ui)=>Hn&&Hn._find(Ui),this)}getError(it,Dt){const Hn=Dt?this.get(Dt):this;return Hn&&Hn.errors?Hn.errors[it]:null}hasError(it,Dt){return!!this.getError(it,Dt)}get root(){let it=this;for(;it._parent;)it=it._parent;return it}_updateControlsErrors(it){this.status=this._calculateStatus(),it&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(it)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?un:this.errors?Ji:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(En)?En:this._anyControlsHaveStatus(Ji)?Ji:Xt}_anyControlsHaveStatus(it){return this._anyControls(Dt=>Dt.status===it)}_anyControlsDirty(){return this._anyControls(it=>it.dirty)}_anyControlsTouched(){return this._anyControls(it=>it.touched)}_updatePristine(it={}){this.pristine=!this._anyControlsDirty(),this._parent&&!it.onlySelf&&this._parent._updatePristine(it)}_updateTouched(it={}){this.touched=this._anyControlsTouched(),this._parent&&!it.onlySelf&&this._parent._updateTouched(it)}_registerOnCollectionChange(it){this._onCollectionChange=it}_setUpdateStrategy(it){Bt(it)&&null!=it.updateOn&&(this._updateOn=it.updateOn)}_parentMarkedDirty(it){return!it&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(it){return null}_assignValidators(it){this._rawValidators=Array.isArray(it)?it.slice():it,this._composedValidatorFn=function Fn(St){return Array.isArray(St)?te(St):St||null}(this._rawValidators)}_assignAsyncValidators(it){this._rawAsyncValidators=Array.isArray(it)?it.slice():it,this._composedAsyncValidatorFn=function It(St){return Array.isArray(St)?H(St):St||null}(this._rawAsyncValidators)}}class pt extends Mt{constructor(it,Dt,Hn){super(Ki(Dt),oi(Hn,Dt)),this.controls=it,this._initObservables(),this._setUpdateStrategy(Dt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(it,Dt){return this.controls[it]?this.controls[it]:(this.controls[it]=Dt,Dt.setParent(this),Dt._registerOnCollectionChange(this._onCollectionChange),Dt)}addControl(it,Dt,Hn={}){this.registerControl(it,Dt),this.updateValueAndValidity({emitEvent:Hn.emitEvent}),this._onCollectionChange()}removeControl(it,Dt={}){this.controls[it]&&this.controls[it]._registerOnCollectionChange(()=>{}),delete this.controls[it],this.updateValueAndValidity({emitEvent:Dt.emitEvent}),this._onCollectionChange()}setControl(it,Dt,Hn={}){this.controls[it]&&this.controls[it]._registerOnCollectionChange(()=>{}),delete this.controls[it],Dt&&this.registerControl(it,Dt),this.updateValueAndValidity({emitEvent:Hn.emitEvent}),this._onCollectionChange()}contains(it){return this.controls.hasOwnProperty(it)&&this.controls[it].enabled}setValue(it,Dt={}){wt(this,0,it),Object.keys(it).forEach(Hn=>{xt(this,!0,Hn),this.controls[Hn].setValue(it[Hn],{onlySelf:!0,emitEvent:Dt.emitEvent})}),this.updateValueAndValidity(Dt)}patchValue(it,Dt={}){null!=it&&(Object.keys(it).forEach(Hn=>{const Ui=this.controls[Hn];Ui&&Ui.patchValue(it[Hn],{onlySelf:!0,emitEvent:Dt.emitEvent})}),this.updateValueAndValidity(Dt))}reset(it={},Dt={}){this._forEachChild((Hn,Ui)=>{Hn.reset(it[Ui],{onlySelf:!0,emitEvent:Dt.emitEvent})}),this._updatePristine(Dt),this._updateTouched(Dt),this.updateValueAndValidity(Dt)}getRawValue(){return this._reduceChildren({},(it,Dt,Hn)=>(it[Hn]=Dt.getRawValue(),it))}_syncPendingControls(){let it=this._reduceChildren(!1,(Dt,Hn)=>!!Hn._syncPendingControls()||Dt);return it&&this.updateValueAndValidity({onlySelf:!0}),it}_forEachChild(it){Object.keys(this.controls).forEach(Dt=>{const Hn=this.controls[Dt];Hn&&it(Hn,Dt)})}_setUpControls(){this._forEachChild(it=>{it.setParent(this),it._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(it){for(const[Dt,Hn]of Object.entries(this.controls))if(this.contains(Dt)&&it(Hn))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Dt,Hn,Ui)=>((Hn.enabled||this.disabled)&&(Dt[Ui]=Hn.value),Dt))}_reduceChildren(it,Dt){let Hn=it;return this._forEachChild((Ui,Co)=>{Hn=Dt(Hn,Ui,Co)}),Hn}_allControlsDisabled(){for(const it of Object.keys(this.controls))if(this.controls[it].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(it){return this.controls.hasOwnProperty(it)?this.controls[it]:null}}const Lt=pt;class Ne extends pt{}const ln=new e.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>jn}),jn="always";function Pi(St,it){return[...it.path,St]}function go(St,it,Dt=jn){_i(St,it),it.valueAccessor.writeValue(St.value),(St.disabled||"always"===Dt)&&it.valueAccessor.setDisabledState?.(St.disabled),function hi(St,it){it.valueAccessor.registerOnChange(Dt=>{St._pendingValue=Dt,St._pendingChange=!0,St._pendingDirty=!0,"change"===St.updateOn&&Ei(St,it)})}(St,it),function li(St,it){const Dt=(Hn,Ui)=>{it.valueAccessor.writeValue(Hn),Ui&&it.viewToModelUpdate(Hn)};St.registerOnChange(Dt),it._registerOnDestroy(()=>{St._unregisterOnChange(Dt)})}(St,it),function zn(St,it){it.valueAccessor.registerOnTouched(()=>{St._pendingTouched=!0,"blur"===St.updateOn&&St._pendingChange&&Ei(St,it),"submit"!==St.updateOn&&St.markAsTouched()})}(St,it),function pn(St,it){if(it.valueAccessor.setDisabledState){const Dt=Hn=>{it.valueAccessor.setDisabledState(Hn)};St.registerOnDisabledChange(Dt),it._registerOnDestroy(()=>{St._unregisterOnDisabledChange(Dt)})}}(St,it)}function si(St,it,Dt=!0){const Hn=()=>{};it.valueAccessor&&(it.valueAccessor.registerOnChange(Hn),it.valueAccessor.registerOnTouched(Hn)),wi(St,it),St&&(it._invokeOnDestroyCallbacks(),St._registerOnCollectionChange(()=>{}))}function ot(St,it){St.forEach(Dt=>{Dt.registerOnValidatorChange&&Dt.registerOnValidatorChange(it)})}function _i(St,it){const Dt=q(St);null!==it.validator?St.setValidators(z(Dt,it.validator)):"function"==typeof Dt&&St.setValidators([Dt]);const Hn=se(St);null!==it.asyncValidator?St.setAsyncValidators(z(Hn,it.asyncValidator)):"function"==typeof Hn&&St.setAsyncValidators([Hn]);const Ui=()=>St.updateValueAndValidity();ot(it._rawValidators,Ui),ot(it._rawAsyncValidators,Ui)}function wi(St,it){let Dt=!1;if(null!==St){if(null!==it.validator){const Ui=q(St);if(Array.isArray(Ui)&&Ui.length>0){const Co=Ui.filter(Sn=>Sn!==it.validator);Co.length!==Ui.length&&(Dt=!0,St.setValidators(Co))}}if(null!==it.asyncValidator){const Ui=se(St);if(Array.isArray(Ui)&&Ui.length>0){const Co=Ui.filter(Sn=>Sn!==it.asyncValidator);Co.length!==Ui.length&&(Dt=!0,St.setAsyncValidators(Co))}}}const Hn=()=>{};return ot(it._rawValidators,Hn),ot(it._rawAsyncValidators,Hn),Dt}function Ei(St,it){St._pendingDirty&&St.markAsDirty(),St.setValue(St._pendingValue,{emitModelToViewChange:!1}),it.viewToModelUpdate(St._pendingValue),St._pendingChange=!1}function Xi(St,it){_i(St,it)}function Bi(St,it){if(!St.hasOwnProperty("model"))return!1;const Dt=St.model;return!!Dt.isFirstChange()||!Object.is(it,Dt.currentValue)}function Lo(St,it){St._syncPendingControls(),it.forEach(Dt=>{const Hn=Dt.control;"submit"===Hn.updateOn&&Hn._pendingChange&&(Dt.viewToModelUpdate(Hn._pendingValue),Hn._pendingChange=!1)})}function or(St,it){if(!it)return null;let Dt,Hn,Ui;return Array.isArray(it),it.forEach(Co=>{Co.constructor===f?Dt=Co:function Xo(St){return Object.getPrototypeOf(St.constructor)===d}(Co)?Hn=Co:Ui=Co}),Ui||Hn||Dt||null}const as={provide:De,useExisting:(0,e.Gpc)(()=>Fo)},ji=(()=>Promise.resolve())();let Fo=(()=>{class St extends De{constructor(Dt,Hn,Ui){super(),this.callSetDisabledState=Ui,this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new pt({},te(Dt),H(Hn))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Dt){ji.then(()=>{const Hn=this._findContainer(Dt.path);Dt.control=Hn.registerControl(Dt.name,Dt.control),go(Dt.control,Dt,this.callSetDisabledState),Dt.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Dt)})}getControl(Dt){return this.form.get(Dt.path)}removeControl(Dt){ji.then(()=>{const Hn=this._findContainer(Dt.path);Hn&&Hn.removeControl(Dt.name),this._directives.delete(Dt)})}addFormGroup(Dt){ji.then(()=>{const Hn=this._findContainer(Dt.path),Ui=new pt({});Xi(Ui,Dt),Hn.registerControl(Dt.name,Ui),Ui.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Dt){ji.then(()=>{const Hn=this._findContainer(Dt.path);Hn&&Hn.removeControl(Dt.name)})}getFormGroup(Dt){return this.form.get(Dt.path)}updateModel(Dt,Hn){ji.then(()=>{this.form.get(Dt.path).setValue(Hn)})}setValue(Dt){this.control.setValue(Dt)}onSubmit(Dt){return this.submitted=!0,Lo(this.form,this._directives),this.ngSubmit.emit(Dt),"dialog"===Dt?.target?.method}onReset(){this.resetForm()}resetForm(Dt=void 0){this.form.reset(Dt),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Dt){return Dt.pop(),Dt.length?this.form.get(Dt):this.form}static#e=this.\u0275fac=function(Hn){return new(Hn||St)(e.Y36(g,10),e.Y36(M,10),e.Y36(ln,8))};static#t=this.\u0275dir=e.lG2({type:St,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Hn,Ui){1&Hn&&e.NdJ("submit",function(Sn){return Ui.onSubmit(Sn)})("reset",function(){return Ui.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([as]),e.qOj]})}return St})();function rt(St,it){const Dt=St.indexOf(it);Dt>-1&&St.splice(Dt,1)}function ai(St){return"object"==typeof St&&null!==St&&2===Object.keys(St).length&&"value"in St&&"disabled"in St}const Gn=class extends Mt{constructor(it=null,Dt,Hn){super(Ki(Dt),oi(Hn,Dt)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(it),this._setUpdateStrategy(Dt),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Bt(Dt)&&(Dt.nonNullable||Dt.initialValueIsDefault)&&(this.defaultValue=ai(it)?it.value:it)}setValue(it,Dt={}){this.value=this._pendingValue=it,this._onChange.length&&!1!==Dt.emitModelToViewChange&&this._onChange.forEach(Hn=>Hn(this.value,!1!==Dt.emitViewToModelChange)),this.updateValueAndValidity(Dt)}patchValue(it,Dt={}){this.setValue(it,Dt)}reset(it=this.defaultValue,Dt={}){this._applyFormState(it),this.markAsPristine(Dt),this.markAsUntouched(Dt),this.setValue(this.value,Dt),this._pendingChange=!1}_updateValue(){}_anyControls(it){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(it){this._onChange.push(it)}_unregisterOnChange(it){rt(this._onChange,it)}registerOnDisabledChange(it){this._onDisabledChange.push(it)}_unregisterOnDisabledChange(it){rt(this._onDisabledChange,it)}_forEachChild(it){}_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(it){ai(it)?(this.value=this._pendingValue=it.value,it.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=it}},Io=Gn;let bs=(()=>{class St extends De{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Pi(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=function(){let Dt;return function(Ui){return(Dt||(Dt=e.n5z(St)))(Ui||St)}}();static#t=this.\u0275dir=e.lG2({type:St,features:[e.qOj]})}return St})();const Sa={provide:De,useExisting:(0,e.Gpc)(()=>tr)};let tr=(()=>{class St extends bs{constructor(Dt,Hn,Ui){super(),this.name="",this._parent=Dt,this._setValidators(Hn),this._setAsyncValidators(Ui)}_checkParentType(){}static#e=this.\u0275fac=function(Hn){return new(Hn||St)(e.Y36(De,5),e.Y36(g,10),e.Y36(M,10))};static#t=this.\u0275dir=e.lG2({type:St,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[e._Bn([Sa]),e.qOj]})}return St})();const Mr={provide:fe,useExisting:(0,e.Gpc)(()=>Ao)},Li=(()=>Promise.resolve())();let Ao=(()=>{class St extends fe{constructor(Dt,Hn,Ui,Co,Sn,Vn){super(),this._changeDetectorRef=Sn,this.callSetDisabledState=Vn,this.control=new Gn,this._registered=!1,this.name="",this.update=new e.vpe,this._parent=Dt,this._setValidators(Hn),this._setAsyncValidators(Ui),this.valueAccessor=or(0,Co)}ngOnChanges(Dt){if(this._checkForErrors(),!this._registered||"name"in Dt){if(this._registered&&(this._checkName(),this.formDirective)){const Hn=Dt.name.previousValue;this.formDirective.removeControl({name:Hn,path:this._getPath(Hn)})}this._setUpControl()}"isDisabled"in Dt&&this._updateDisabled(Dt),Bi(Dt,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Dt){this.viewModel=Dt,this.update.emit(Dt)}_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(){go(this.control,this,this.callSetDisabledState),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(Dt){Li.then(()=>{this.control.setValue(Dt,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Dt){const Hn=Dt.isDisabled.currentValue,Ui=0!==Hn&&(0,e.VuI)(Hn);Li.then(()=>{Ui&&!this.control.disabled?this.control.disable():!Ui&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Dt){return this._parent?Pi(Dt,this._parent):[Dt]}static#e=this.\u0275fac=function(Hn){return new(Hn||St)(e.Y36(De,9),e.Y36(g,10),e.Y36(M,10),e.Y36(s,10),e.Y36(e.sBO,8),e.Y36(ln,8))};static#t=this.\u0275dir=e.lG2({type:St,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([Mr]),e.qOj,e.TTD]})}return St})(),ao=(()=>{class St{static#e=this.\u0275fac=function(Hn){return new(Hn||St)};static#t=this.\u0275dir=e.lG2({type:St,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return St})();const Go={provide:s,useExisting:(0,e.Gpc)(()=>pr),multi:!0};let pr=(()=>{class St extends d{writeValue(Dt){this.setProperty("value",Dt??"")}registerOnChange(Dt){this.onChange=Hn=>{Dt(""==Hn?null:parseFloat(Hn))}}static#e=this.\u0275fac=function(){let Dt;return function(Ui){return(Dt||(Dt=e.n5z(St)))(Ui||St)}}();static#t=this.\u0275dir=e.lG2({type:St,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Hn,Ui){1&Hn&&e.NdJ("input",function(Sn){return Ui.onChange(Sn.target.value)})("blur",function(){return Ui.onTouched()})},features:[e._Bn([Go]),e.qOj]})}return St})();const Rr={provide:s,useExisting:(0,e.Gpc)(()=>ri),multi:!0};let Ti=(()=>{class St{static#e=this.\u0275fac=function(Hn){return new(Hn||St)};static#t=this.\u0275mod=e.oAB({type:St});static#n=this.\u0275inj=e.cJS({})}return St})(),mr=(()=>{class St{constructor(){this._accessors=[]}add(Dt,Hn){this._accessors.push([Dt,Hn])}remove(Dt){for(let Hn=this._accessors.length-1;Hn>=0;--Hn)if(this._accessors[Hn][1]===Dt)return void this._accessors.splice(Hn,1)}select(Dt){this._accessors.forEach(Hn=>{this._isSameGroup(Hn,Dt)&&Hn[1]!==Dt&&Hn[1].fireUncheck(Dt.value)})}_isSameGroup(Dt,Hn){return!!Dt[0].control&&Dt[0]._parent===Hn._control._parent&&Dt[1].name===Hn.name}static#e=this.\u0275fac=function(Hn){return new(Hn||St)};static#t=this.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac,providedIn:Ti})}return St})(),ri=(()=>{class St extends d{constructor(Dt,Hn,Ui,Co){super(Dt,Hn),this._registry=Ui,this._injector=Co,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,e.f3M)(ln,{optional:!0})??jn}ngOnInit(){this._control=this._injector.get(fe),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(Dt){this._state=Dt===this.value,this.setProperty("checked",this._state)}registerOnChange(Dt){this._fn=Dt,this.onChange=()=>{Dt(this.value),this._registry.select(this)}}setDisabledState(Dt){(this.setDisabledStateFired||Dt||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",Dt),this.setDisabledStateFired=!0}fireUncheck(Dt){this.writeValue(Dt)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function(Hn){return new(Hn||St)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(mr),e.Y36(e.zs3))};static#t=this.\u0275dir=e.lG2({type:St,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(Hn,Ui){1&Hn&&e.NdJ("change",function(){return Ui.onChange()})("blur",function(){return Ui.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[e._Bn([Rr]),e.qOj]})}return St})();const yo=new e.OlP("NgModelWithFormControlWarning"),lr={provide:fe,useExisting:(0,e.Gpc)(()=>Yr)};let Yr=(()=>{class St extends fe{set isDisabled(Dt){}static#e=this._ngModelWarningSentOnce=!1;constructor(Dt,Hn,Ui,Co,Sn){super(),this._ngModelWarningConfig=Co,this.callSetDisabledState=Sn,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(Dt),this._setAsyncValidators(Hn),this.valueAccessor=or(0,Ui)}ngOnChanges(Dt){if(this._isControlChanged(Dt)){const Hn=Dt.form.previousValue;Hn&&si(Hn,this,!1),go(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Bi(Dt,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&si(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Dt){this.viewModel=Dt,this.update.emit(Dt)}_isControlChanged(Dt){return Dt.hasOwnProperty("form")}static#t=this.\u0275fac=function(Hn){return new(Hn||St)(e.Y36(g,10),e.Y36(M,10),e.Y36(s,10),e.Y36(yo,8),e.Y36(ln,8))};static#n=this.\u0275dir=e.lG2({type:St,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([lr]),e.qOj,e.TTD]})}return St})();const Gs={provide:De,useExisting:(0,e.Gpc)(()=>fi)};let fi=(()=>{class St extends De{constructor(Dt,Hn,Ui){super(),this.callSetDisabledState=Ui,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(Dt),this._setAsyncValidators(Hn)}ngOnChanges(Dt){this._checkFormPresent(),Dt.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(wi(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Dt){const Hn=this.form.get(Dt.path);return go(Hn,Dt,this.callSetDisabledState),Hn.updateValueAndValidity({emitEvent:!1}),this.directives.push(Dt),Hn}getControl(Dt){return this.form.get(Dt.path)}removeControl(Dt){si(Dt.control||null,Dt,!1),function xr(St,it){const Dt=St.indexOf(it);Dt>-1&&St.splice(Dt,1)}(this.directives,Dt)}addFormGroup(Dt){this._setUpFormContainer(Dt)}removeFormGroup(Dt){this._cleanUpFormContainer(Dt)}getFormGroup(Dt){return this.form.get(Dt.path)}addFormArray(Dt){this._setUpFormContainer(Dt)}removeFormArray(Dt){this._cleanUpFormContainer(Dt)}getFormArray(Dt){return this.form.get(Dt.path)}updateModel(Dt,Hn){this.form.get(Dt.path).setValue(Hn)}onSubmit(Dt){return this.submitted=!0,Lo(this.form,this.directives),this.ngSubmit.emit(Dt),"dialog"===Dt?.target?.method}onReset(){this.resetForm()}resetForm(Dt=void 0){this.form.reset(Dt),this.submitted=!1}_updateDomValue(){this.directives.forEach(Dt=>{const Hn=Dt.control,Ui=this.form.get(Dt.path);Hn!==Ui&&(si(Hn||null,Dt),(St=>St instanceof Gn)(Ui)&&(go(Ui,Dt,this.callSetDisabledState),Dt.control=Ui))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Dt){const Hn=this.form.get(Dt.path);Xi(Hn,Dt),Hn.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Dt){if(this.form){const Hn=this.form.get(Dt.path);Hn&&function ki(St,it){return wi(St,it)}(Hn,Dt)&&Hn.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_i(this.form,this),this._oldForm&&wi(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(Hn){return new(Hn||St)(e.Y36(g,10),e.Y36(M,10),e.Y36(ln,8))};static#t=this.\u0275dir=e.lG2({type:St,selectors:[["","formGroup",""]],hostBindings:function(Hn,Ui){1&Hn&&e.NdJ("submit",function(Sn){return Ui.onSubmit(Sn)})("reset",function(){return Ui.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Gs]),e.qOj,e.TTD]})}return St})();const kr={provide:fe,useExisting:(0,e.Gpc)(()=>xs)};let xs=(()=>{class St extends fe{set isDisabled(Dt){}static#e=this._ngModelWarningSentOnce=!1;constructor(Dt,Hn,Ui,Co,Sn){super(),this._ngModelWarningConfig=Sn,this._added=!1,this.name=null,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=Dt,this._setValidators(Hn),this._setAsyncValidators(Ui),this.valueAccessor=or(0,Co)}ngOnChanges(Dt){this._added||this._setUpControl(),Bi(Dt,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Dt){this.viewModel=Dt,this.update.emit(Dt)}get path(){return Pi(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._added=!0}static#t=this.\u0275fac=function(Hn){return new(Hn||St)(e.Y36(De,13),e.Y36(g,10),e.Y36(M,10),e.Y36(s,10),e.Y36(yo,8))};static#n=this.\u0275dir=e.lG2({type:St,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([kr]),e.qOj,e.TTD]})}return St})();function ls(St){return"number"==typeof St?St:parseInt(St,10)}function Hs(St){return"number"==typeof St?St:parseFloat(St)}let Js=(()=>{class St{constructor(){this._validator=V}ngOnChanges(Dt){if(this.inputName in Dt){const Hn=this.normalizeInput(Dt[this.inputName].currentValue);this._enabled=this.enabled(Hn),this._validator=this._enabled?this.createValidator(Hn):V,this._onChange&&this._onChange()}}validate(Dt){return this._validator(Dt)}registerOnValidatorChange(Dt){this._onChange=Dt}enabled(Dt){return null!=Dt}static#e=this.\u0275fac=function(Hn){return new(Hn||St)};static#t=this.\u0275dir=e.lG2({type:St,features:[e.TTD]})}return St})();const Wa={provide:g,useExisting:(0,e.Gpc)(()=>ll),multi:!0};let ll=(()=>{class St extends Js{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Dt=>Hs(Dt),this.createValidator=Dt=>I(Dt)}static#e=this.\u0275fac=function(){let Dt;return function(Ui){return(Dt||(Dt=e.n5z(St)))(Ui||St)}}();static#t=this.\u0275dir=e.lG2({type:St,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Hn,Ui){2&Hn&&e.uIk("max",Ui._enabled?Ui.max:null)},inputs:{max:"max"},features:[e._Bn([Wa]),e.qOj]})}return St})();const Za={provide:g,useExisting:(0,e.Gpc)(()=>sl),multi:!0};let sl=(()=>{class St extends Js{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Dt=>Hs(Dt),this.createValidator=Dt=>b(Dt)}static#e=this.\u0275fac=function(){let Dt;return function(Ui){return(Dt||(Dt=e.n5z(St)))(Ui||St)}}();static#t=this.\u0275dir=e.lG2({type:St,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Hn,Ui){2&Hn&&e.uIk("min",Ui._enabled?Ui.min:null)},inputs:{min:"min"},features:[e._Bn([Za]),e.qOj]})}return St})();const Jt={provide:g,useExisting:(0,e.Gpc)(()=>ht),multi:!0},Tt={provide:g,useExisting:(0,e.Gpc)(()=>yn),multi:!0};let ht=(()=>{class St extends Js{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e.VuI,this.createValidator=Dt=>L}enabled(Dt){return Dt}static#e=this.\u0275fac=function(){let Dt;return function(Ui){return(Dt||(Dt=e.n5z(St)))(Ui||St)}}();static#t=this.\u0275dir=e.lG2({type:St,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Hn,Ui){2&Hn&&e.uIk("required",Ui._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([Jt]),e.qOj]})}return St})(),yn=(()=>{class St extends ht{constructor(){super(...arguments),this.createValidator=Dt=>D}static#e=this.\u0275fac=function(){let Dt;return function(Ui){return(Dt||(Dt=e.n5z(St)))(Ui||St)}}();static#t=this.\u0275dir=e.lG2({type:St,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Hn,Ui){2&Hn&&e.uIk("required",Ui._enabled?"":null)},features:[e._Bn([Tt]),e.qOj]})}return St})();const co={provide:g,useExisting:(0,e.Gpc)(()=>sr),multi:!0};let sr=(()=>{class St extends Js{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=Dt=>ls(Dt),this.createValidator=Dt=>P(Dt)}static#e=this.\u0275fac=function(){let Dt;return function(Ui){return(Dt||(Dt=e.n5z(St)))(Ui||St)}}();static#t=this.\u0275dir=e.lG2({type:St,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(Hn,Ui){2&Hn&&e.uIk("minlength",Ui._enabled?Ui.minlength:null)},inputs:{minlength:"minlength"},features:[e._Bn([co]),e.qOj]})}return St})();const yr={provide:g,useExisting:(0,e.Gpc)(()=>Ur),multi:!0};let Ur=(()=>{class St extends Js{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=Dt=>ls(Dt),this.createValidator=Dt=>O(Dt)}static#e=this.\u0275fac=function(){let Dt;return function(Ui){return(Dt||(Dt=e.n5z(St)))(Ui||St)}}();static#t=this.\u0275dir=e.lG2({type:St,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Hn,Ui){2&Hn&&e.uIk("maxlength",Ui._enabled?Ui.maxlength:null)},inputs:{maxlength:"maxlength"},features:[e._Bn([yr]),e.qOj]})}return St})();const ss={provide:g,useExisting:(0,e.Gpc)(()=>gs),multi:!0};let gs=(()=>{class St extends Js{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=Dt=>Dt,this.createValidator=Dt=>U(Dt)}static#e=this.\u0275fac=function(){let Dt;return function(Ui){return(Dt||(Dt=e.n5z(St)))(Ui||St)}}();static#t=this.\u0275dir=e.lG2({type:St,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(Hn,Ui){2&Hn&&e.uIk("pattern",Ui._enabled?Ui.pattern:null)},inputs:{pattern:"pattern"},features:[e._Bn([ss]),e.qOj]})}return St})(),Va=(()=>{class St{static#e=this.\u0275fac=function(Hn){return new(Hn||St)};static#t=this.\u0275mod=e.oAB({type:St});static#n=this.\u0275inj=e.cJS({imports:[Ti]})}return St})();class ga extends Mt{constructor(it,Dt,Hn){super(Ki(Dt),oi(Hn,Dt)),this.controls=it,this._initObservables(),this._setUpdateStrategy(Dt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(it){return this.controls[this._adjustIndex(it)]}push(it,Dt={}){this.controls.push(it),this._registerControl(it),this.updateValueAndValidity({emitEvent:Dt.emitEvent}),this._onCollectionChange()}insert(it,Dt,Hn={}){this.controls.splice(it,0,Dt),this._registerControl(Dt),this.updateValueAndValidity({emitEvent:Hn.emitEvent})}removeAt(it,Dt={}){let Hn=this._adjustIndex(it);Hn<0&&(Hn=0),this.controls[Hn]&&this.controls[Hn]._registerOnCollectionChange(()=>{}),this.controls.splice(Hn,1),this.updateValueAndValidity({emitEvent:Dt.emitEvent})}setControl(it,Dt,Hn={}){let Ui=this._adjustIndex(it);Ui<0&&(Ui=0),this.controls[Ui]&&this.controls[Ui]._registerOnCollectionChange(()=>{}),this.controls.splice(Ui,1),Dt&&(this.controls.splice(Ui,0,Dt),this._registerControl(Dt)),this.updateValueAndValidity({emitEvent:Hn.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(it,Dt={}){wt(this,0,it),it.forEach((Hn,Ui)=>{xt(this,!1,Ui),this.at(Ui).setValue(Hn,{onlySelf:!0,emitEvent:Dt.emitEvent})}),this.updateValueAndValidity(Dt)}patchValue(it,Dt={}){null!=it&&(it.forEach((Hn,Ui)=>{this.at(Ui)&&this.at(Ui).patchValue(Hn,{onlySelf:!0,emitEvent:Dt.emitEvent})}),this.updateValueAndValidity(Dt))}reset(it=[],Dt={}){this._forEachChild((Hn,Ui)=>{Hn.reset(it[Ui],{onlySelf:!0,emitEvent:Dt.emitEvent})}),this._updatePristine(Dt),this._updateTouched(Dt),this.updateValueAndValidity(Dt)}getRawValue(){return this.controls.map(it=>it.getRawValue())}clear(it={}){this.controls.length<1||(this._forEachChild(Dt=>Dt._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:it.emitEvent}))}_adjustIndex(it){return it<0?it+this.length:it}_syncPendingControls(){let it=this.controls.reduce((Dt,Hn)=>!!Hn._syncPendingControls()||Dt,!1);return it&&this.updateValueAndValidity({onlySelf:!0}),it}_forEachChild(it){this.controls.forEach((Dt,Hn)=>{it(Dt,Hn)})}_updateValue(){this.value=this.controls.filter(it=>it.enabled||this.disabled).map(it=>it.value)}_anyControls(it){return this.controls.some(Dt=>Dt.enabled&&it(Dt))}_setUpControls(){this._forEachChild(it=>this._registerControl(it))}_allControlsDisabled(){for(const it of this.controls)if(it.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(it){it.setParent(this),it._registerOnCollectionChange(this._onCollectionChange)}_find(it){return this.at(it)??null}}function La(St){return!!St&&(void 0!==St.asyncValidators||void 0!==St.validators||void 0!==St.updateOn)}let ra=(()=>{class St{constructor(){this.useNonNullable=!1}get nonNullable(){const Dt=new St;return Dt.useNonNullable=!0,Dt}group(Dt,Hn=null){const Ui=this._reduceControls(Dt);let Co={};return La(Hn)?Co=Hn:null!==Hn&&(Co.validators=Hn.validator,Co.asyncValidators=Hn.asyncValidator),new pt(Ui,Co)}record(Dt,Hn=null){const Ui=this._reduceControls(Dt);return new Ne(Ui,Hn)}control(Dt,Hn,Ui){let Co={};return this.useNonNullable?(La(Hn)?Co=Hn:(Co.validators=Hn,Co.asyncValidators=Ui),new Gn(Dt,{...Co,nonNullable:!0})):new Gn(Dt,Hn,Ui)}array(Dt,Hn,Ui){const Co=Dt.map(Sn=>this._createControl(Sn));return new ga(Co,Hn,Ui)}_reduceControls(Dt){const Hn={};return Object.keys(Dt).forEach(Ui=>{Hn[Ui]=this._createControl(Dt[Ui])}),Hn}_createControl(Dt){return Dt instanceof Gn||Dt instanceof Mt?Dt:Array.isArray(Dt)?this.control(Dt[0],Dt.length>1?Dt[1]:null,Dt.length>2?Dt[2]:null):this.control(Dt)}static#e=this.\u0275fac=function(Hn){return new(Hn||St)};static#t=this.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac,providedIn:"root"})}return St})(),vn=(()=>{class St extends ra{group(Dt,Hn=null){return super.group(Dt,Hn)}control(Dt,Hn,Ui){return super.control(Dt,Hn,Ui)}array(Dt,Hn,Ui){return super.array(Dt,Hn,Ui)}static#e=this.\u0275fac=function(){let Dt;return function(Ui){return(Dt||(Dt=e.n5z(St)))(Ui||St)}}();static#t=this.\u0275prov=e.Yz7({token:St,factory:St.\u0275fac,providedIn:"root"})}return St})(),Ke=(()=>{class St{static withConfig(Dt){return{ngModule:St,providers:[{provide:ln,useValue:Dt.callSetDisabledState??jn}]}}static#e=this.\u0275fac=function(Hn){return new(Hn||St)};static#t=this.\u0275mod=e.oAB({type:St});static#n=this.\u0275inj=e.cJS({imports:[Va]})}return St})(),ze=(()=>{class St{static withConfig(Dt){return{ngModule:St,providers:[{provide:yo,useValue:Dt.warnOnNgModelWithFormControl??"always"},{provide:ln,useValue:Dt.callSetDisabledState??jn}]}}static#e=this.\u0275fac=function(Hn){return new(Hn||St)};static#t=this.\u0275mod=e.oAB({type:St});static#n=this.\u0275inj=e.cJS({imports:[Va]})}return St})()},24630:(he,y,i)=>{"use strict";i.d(y,{Bb:()=>De,Mz:()=>te,VI:()=>Ce,XC:()=>j,ZL:()=>Te,zp:()=>ge});var e=i(65879),n=i(23680),o=i(96814),a=i(16672),l=i(69594),u=i(4300),d=i(42495),s=i(62831),A=i(86825),_=i(47394),C=i(78645),R=i(74911),x=i(63019),f=i(22096),k=i(92438),w=i(36028),g=i(68484),M=i(56223),p=i(64170),E=i(27921),b=i(94664),I=i(48180),L=i(32181),D=i(37398),F=i(99397),P=i(5177),O=i(49388);const U=["panel"];function V(fe,xe){if(1&fe&&(e.TgZ(0,"div",0,1),e.Hsn(2),e.qZA()),2&fe){const Oe=xe.id,Le=e.oxw();e.Q6J("id",Le.id)("ngClass",Le._classList)("@panelAnimation",Le.isOpen?"visible":"hidden"),e.uIk("aria-label",Le.ariaLabel||null)("aria-labelledby",Le._getPanelAriaLabelledby(Oe))}}const K=["*"],X=(0,A.X$)("panelAnimation",[(0,A.SB)("void, hidden",(0,A.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,A.eR)(":enter, hidden => visible",[(0,A.ru)([(0,A.jt)("0.03s linear",(0,A.oB)({opacity:1})),(0,A.jt)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,A.oB)({transform:"scaleY(1)"}))])]),(0,A.eR)(":leave, visible => hidden",[(0,A.jt)("0.075s linear",(0,A.oB)({opacity:0}))])]);let me=0;class J{constructor(xe,Oe){this.source=xe,this.option=Oe}}const Q=(0,n.Kr)(class{}),re=new e.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function de(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1}}});let te=(()=>{class fe extends Q{get isOpen(){return this._isOpen&&this.showPanel}_setColor(Oe){this._color=Oe,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(Oe){this._autoActiveFirstOption=(0,d.Ig)(Oe)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(Oe){this._autoSelectActiveOption=(0,d.Ig)(Oe)}set classList(Oe){this._classList=Oe&&Oe.length?(0,d.du)(Oe).reduce((Le,Gt)=>(Le[Gt]=!0,Le),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(Oe,Le,Gt,Ut){super(),this._changeDetectorRef=Oe,this._elementRef=Le,this._defaults=Gt,this._activeOptionChanges=_.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new e.vpe,this.opened=new e.vpe,this.closed=new e.vpe,this.optionActivated=new e.vpe,this._classList={},this.id="mat-autocomplete-"+me++,this.inertGroups=Ut?.SAFARI||!1,this._autoActiveFirstOption=!!Gt.autoActiveFirstOption,this._autoSelectActiveOption=!!Gt.autoSelectActiveOption}ngAfterContentInit(){this._keyManager=new u.s1(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(Oe=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Oe]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(Oe){this.panel&&(this.panel.nativeElement.scrollTop=Oe)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Oe){const Le=new J(this,Oe);this.optionSelected.emit(Le)}_getPanelAriaLabelledby(Oe){return this.ariaLabel?null:this.ariaLabelledby?(Oe?Oe+" ":"")+this.ariaLabelledby:Oe}_setVisibilityClasses(Oe){Oe[this._visibleClass]=this.showPanel,Oe[this._hiddenClass]=!this.showPanel}_setThemeClasses(Oe){Oe["mat-primary"]="primary"===this._color,Oe["mat-warn"]="warn"===this._color,Oe["mat-accent"]="accent"===this._color}_skipPredicate(Oe){return Oe.disabled}static#e=this.\u0275fac=function(Le){return new(Le||fe)(e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(re),e.Y36(s.t4))};static#t=this.\u0275dir=e.lG2({type:fe,viewQuery:function(Le,Gt){if(1&Le&&(e.Gf(e.Rgc,7),e.Gf(U,5)),2&Le){let Ut;e.iGM(Ut=e.CRH())&&(Gt.template=Ut.first),e.iGM(Ut=e.CRH())&&(Gt.panel=Ut.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[e.qOj]})}return fe})(),j=(()=>{class fe extends te{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(Oe){this._hideSingleSelectionIndicator=(0,d.Ig)(Oe),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const Oe of this.options)Oe._changeDetectorRef.markForCheck()}_skipPredicate(Oe){return!1}static#e=this.\u0275fac=function(){let Oe;return function(Gt){return(Oe||(Oe=e.n5z(fe)))(Gt||fe)}}();static#t=this.\u0275cmp=e.Xpm({type:fe,selectors:[["mat-autocomplete"]],contentQueries:function(Le,Gt,Ut){if(1&Le&&(e.Suo(Ut,n.K7,5),e.Suo(Ut,n.ey,5)),2&Le){let An;e.iGM(An=e.CRH())&&(Gt.optionGroups=An),e.iGM(An=e.CRH())&&(Gt.options=An)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[e._Bn([{provide:n.HF,useExisting:fe}]),e.qOj],ngContentSelectors:K,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(Le,Gt){1&Le&&(e.F$t(),e.YNc(0,V,3,5,"ng-template"))},dependencies:[o.mk],styles:["div.mat-mdc-autocomplete-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[X]},changeDetection:0})}return fe})();const q={provide:M.JU,useExisting:(0,e.Gpc)(()=>Te),multi:!0},ne=new e.OlP("mat-autocomplete-scroll-strategy"),ge={provide:ne,deps:[l.aV],useFactory:function _e(fe){return()=>fe.scrollStrategies.reposition()}};let Ce=(()=>{class fe{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(Oe){this._autocompleteDisabled=(0,d.Ig)(Oe)}constructor(Oe,Le,Gt,Ut,An,$n,xn,mt,ut,Wt,dn){this._element=Oe,this._overlay=Le,this._viewContainerRef=Gt,this._zone=Ut,this._changeDetectorRef=An,this._dir=xn,this._formField=mt,this._document=ut,this._viewportRuler=Wt,this._defaults=dn,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=_.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new C.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,R.P)(()=>{const sn=this.autocomplete?this.autocomplete.options:null;return sn?sn.changes.pipe((0,E.O)(sn),(0,b.w)(()=>(0,x.T)(...sn.map(fn=>fn.onSelectionChange)))):this._zone.onStable.pipe((0,I.q)(1),(0,b.w)(()=>this.optionSelections))}),this._handlePanelKeydown=sn=>{(sn.keyCode===w.hY&&!(0,w.Vb)(sn)||sn.keyCode===w.LH&&(0,w.Vb)(sn,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),sn.stopPropagation(),sn.preventDefault())},this._trackedModal=null,this._scrollStrategy=$n}ngAfterViewInit(){const Oe=this._getWindow();typeof Oe<"u"&&this._zone.runOutsideAngular(()=>Oe.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Oe){Oe.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Oe=this._getWindow();typeof Oe<"u"&&Oe.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,x.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,L.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,L.h)(()=>this._overlayAttached)):(0,f.of)()).pipe((0,D.U)(Oe=>Oe instanceof n.rN?Oe:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,x.T)((0,k.R)(this._document,"click"),(0,k.R)(this._document,"auxclick"),(0,k.R)(this._document,"touchend")).pipe((0,L.h)(Oe=>{const Le=(0,s.sA)(Oe),Gt=this._formField?this._formField._elementRef.nativeElement:null,Ut=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&Le!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Gt||!Gt.contains(Le))&&(!Ut||!Ut.contains(Le))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(Le)}))}writeValue(Oe){Promise.resolve(null).then(()=>this._assignOptionValue(Oe))}registerOnChange(Oe){this._onChange=Oe}registerOnTouched(Oe){this._onTouched=Oe}setDisabledState(Oe){this._element.nativeElement.disabled=Oe}_handleKeydown(Oe){const Le=Oe.keyCode,Gt=(0,w.Vb)(Oe);if(Le===w.hY&&!Gt&&Oe.preventDefault(),this.activeOption&&Le===w.K5&&this.panelOpen&&!Gt)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Oe.preventDefault();else if(this.autocomplete){const Ut=this.autocomplete._keyManager.activeItem,An=Le===w.LH||Le===w.JH;Le===w.Mf||An&&!Gt&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Oe):An&&this._canOpen()&&this.openPanel(),(An||this.autocomplete._keyManager.activeItem!==Ut)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(Oe){let Le=Oe.target,Gt=Le.value;"number"===Le.type&&(Gt=""==Gt?null:parseFloat(Gt)),this._previousValue!==Gt&&(this._previousValue=Gt,this._pendingAutoselectedOption=null,this._onChange(Gt),Gt||this._clearPreviousSelectedOption(null,!1),this._canOpen()&&this._document.activeElement===Oe.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(Oe=!1){this._formField&&"auto"===this._formField.floatLabel&&(Oe?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Oe=this._zone.onStable.pipe((0,I.q)(1)),Le=this.autocomplete.options.changes.pipe((0,F.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,P.g)(0));return(0,x.T)(Oe,Le).pipe((0,b.w)(()=>(this._zone.run(()=>{const Gt=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Gt!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,I.q)(1)).subscribe(Gt=>this._setValueAndClose(Gt))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(Oe){const Le=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Oe):Oe;this._updateNativeInputValue(Le??"")}_updateNativeInputValue(Oe){this._formField?this._formField._control.value=Oe:this._element.nativeElement.value=Oe,this._previousValue=Oe}_setValueAndClose(Oe){const Le=Oe?Oe.source:this._pendingAutoselectedOption;Le&&(this._clearPreviousSelectedOption(Le),this._assignOptionValue(Le.value),this._onChange(Le.value),this.autocomplete._emitSelectEvent(Le),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(Oe,Le){this.autocomplete&&this.autocomplete.options&&this.autocomplete.options.forEach(Gt=>{Gt!==Oe&&Gt.selected&&Gt.deselect(Le)})}_attachOverlay(){let Oe=this._overlayRef;Oe?(this._positionStrategy.setOrigin(this._getConnectedElement()),Oe.updateSize({width:this._getPanelWidth()})):(this._portal=new g.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),Oe=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Oe,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Oe&&Oe.updateSize({width:this._getPanelWidth()})})),Oe&&!Oe.hasAttached()&&(Oe.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const Le=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&Le!==this.panelOpen&&this.autocomplete.opened.emit()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const Oe=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=Oe.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=Oe.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new l.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const Oe=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Oe),this._positionStrategy=Oe,Oe}_setStrategyPositions(Oe){const Le=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Gt=this._aboveClass,Ut=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Gt},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Gt}];let An;An="above"===this.position?Ut:"below"===this.position?Le:[...Le,...Ut],Oe.withPositions(An)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const Oe=this.autocomplete;if(Oe.autoActiveFirstOption){let Le=-1;for(let Gt=0;Gt<Oe.options.length;Gt++)if(!Oe.options.get(Gt).disabled){Le=Gt;break}Oe._keyManager.setActiveItem(Le)}else Oe._keyManager.setActiveItem(-1)}_canOpen(){const Oe=this._element.nativeElement;return!Oe.readOnly&&!Oe.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(Oe){const Le=this.autocomplete,Gt=(0,n.CB)(Oe,Le.options,Le.optionGroups);if(0===Oe&&1===Gt)Le._setScrollTop(0);else if(Le.panel){const Ut=Le.options.toArray()[Oe];if(Ut){const An=Ut._getHostElement(),$n=(0,n.jH)(An.offsetTop,An.offsetHeight,Le._getScrollTop(),Le.panel.nativeElement.offsetHeight);Le._setScrollTop($n)}}}_applyModalPanelOwnership(){const Oe=this._element.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!Oe)return;const Le=this.autocomplete.id;this._trackedModal&&(0,u.iD)(this._trackedModal,"aria-owns",Le),(0,u.Zf)(Oe,"aria-owns",Le),this._trackedModal=Oe}_clearFromModal(){this._trackedModal&&((0,u.iD)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static#e=this.\u0275fac=function(Le){return new(Le||fe)(e.Y36(e.SBq),e.Y36(l.aV),e.Y36(e.s_b),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(ne),e.Y36(O.Is,8),e.Y36(p.G_,9),e.Y36(o.K0,8),e.Y36(a.rL),e.Y36(re,8))};static#t=this.\u0275dir=e.lG2({type:fe,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[e.TTD]})}return fe})(),Te=(()=>{class fe extends Ce{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}static#e=this.\u0275fac=function(){let Oe;return function(Gt){return(Oe||(Oe=e.n5z(fe)))(Gt||fe)}}();static#t=this.\u0275dir=e.lG2({type:fe,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(Le,Gt){1&Le&&e.NdJ("focusin",function(){return Gt._handleFocus()})("blur",function(){return Gt._onTouched()})("input",function(An){return Gt._handleInput(An)})("keydown",function(An){return Gt._handleKeydown(An)})("click",function(){return Gt._handleClick()}),2&Le&&e.uIk("autocomplete",Gt.autocompleteAttribute)("role",Gt.autocompleteDisabled?null:"combobox")("aria-autocomplete",Gt.autocompleteDisabled?null:"list")("aria-activedescendant",Gt.panelOpen&&Gt.activeOption?Gt.activeOption.id:null)("aria-expanded",Gt.autocompleteDisabled?null:Gt.panelOpen.toString())("aria-controls",Gt.autocompleteDisabled||!Gt.panelOpen||null==Gt.autocomplete?null:Gt.autocomplete.id)("aria-haspopup",Gt.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[e._Bn([q]),e.qOj]})}return fe})(),De=(()=>{class fe{static#e=this.\u0275fac=function(Le){return new(Le||fe)};static#t=this.\u0275mod=e.oAB({type:fe});static#n=this.\u0275inj=e.cJS({providers:[ge],imports:[l.U8,n.Ng,n.BQ,o.ez,a.ZD,n.Ng,n.BQ]})}return fe})()},39014:(he,y,i)=>{"use strict";i.d(y,{g:()=>_,k:()=>A});var e=i(65879),n=i(23680),o=i(4300),a=i(42495),l=i(96814);let u=0;const d=(0,n.Id)(class{}),s="mat-badge-content";let A=(()=>{class C extends d{get color(){return this._color}set color(x){this._setColor(x),this._color=x}get overlap(){return this._overlap}set overlap(x){this._overlap=(0,a.Ig)(x)}get content(){return this._content}set content(x){this._updateRenderedContent(x)}get description(){return this._description}set description(x){this._updateDescription(x)}get hidden(){return this._hidden}set hidden(x){this._hidden=(0,a.Ig)(x)}constructor(x,f,k,w,g){super(),this._ngZone=x,this._elementRef=f,this._ariaDescriber=k,this._renderer=w,this._animationMode=g,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=u++,this._isInitialized=!1,this._interactivityChecker=(0,e.f3M)(o.ic),this._document=(0,e.f3M)(l.K0)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){const x=this._renderer.createElement("span"),f="mat-badge-active";return x.setAttribute("id",`mat-badge-content-${this._id}`),x.setAttribute("aria-hidden","true"),x.classList.add(s),"NoopAnimations"===this._animationMode&&x.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(x),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{x.classList.add(f)})}):x.classList.add(f),x}_updateRenderedContent(x){const f=`${x??""}`.trim();this._isInitialized&&f&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=f),this._content=f}_updateDescription(x){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!x||this._isHostInteractive())&&this._removeInlineDescription(),this._description=x,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,x):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(x){const f=this._elementRef.nativeElement.classList;f.remove(`mat-badge-${this._color}`),x&&f.add(`mat-badge-${x}`)}_clearExistingBadges(){const x=this._elementRef.nativeElement.querySelectorAll(`:scope > .${s}`);for(const f of Array.from(x))f!==this._badgeElement&&f.remove()}static#e=this.\u0275fac=function(f){return new(f||C)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(o.$s),e.Y36(e.Qsj),e.Y36(e.QbO,8))};static#t=this.\u0275dir=e.lG2({type:C,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(f,k){2&f&&e.ekj("mat-badge-overlap",k.overlap)("mat-badge-above",k.isAbove())("mat-badge-below",!k.isAbove())("mat-badge-before",!k.isAfter())("mat-badge-after",k.isAfter())("mat-badge-small","small"===k.size)("mat-badge-medium","medium"===k.size)("mat-badge-large","large"===k.size)("mat-badge-hidden",k.hidden||!k.content)("mat-badge-disabled",k.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[e.qOj]})}return C})(),_=(()=>{class C{static#e=this.\u0275fac=function(f){return new(f||C)};static#t=this.\u0275mod=e.oAB({type:C});static#n=this.\u0275inj=e.cJS({imports:[o.rt,n.BQ,n.BQ]})}return C})()},49488:(he,y,i)=>{"use strict";i.d(y,{A9:()=>f,Yi:()=>w,vV:()=>g});var e=i(4300),n=i(42495),o=i(78337),a=i(65879),l=i(56223),u=i(23680);const d=["button"],s=["*"],A=new a.OlP("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),_=new a.OlP("MatButtonToggleGroup"),C={provide:l.JU,useExisting:(0,a.Gpc)(()=>f),multi:!0};let R=0;class x{constructor(p,E){this.source=p,this.value=E}}let f=(()=>{class M{get name(){return this._name}set name(E){this._name=E,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(E){this._vertical=(0,n.Ig)(E)}get value(){const E=this._selectionModel?this._selectionModel.selected:[];return this.multiple?E.map(b=>b.value):E[0]?E[0].value:void 0}set value(E){this._setSelectionByValue(E),this.valueChange.emit(this.value)}get selected(){const E=this._selectionModel?this._selectionModel.selected:[];return this.multiple?E:E[0]||null}get multiple(){return this._multiple}set multiple(E){this._multiple=(0,n.Ig)(E),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(E){this._disabled=(0,n.Ig)(E),this._markButtonsForCheck()}constructor(E,b){this._changeDetector=E,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+R++,this.valueChange=new a.vpe,this.change=new a.vpe,this.appearance=b&&b.appearance?b.appearance:"standard"}ngOnInit(){this._selectionModel=new o.Ov(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(E=>E.checked))}writeValue(E){this.value=E,this._changeDetector.markForCheck()}registerOnChange(E){this._controlValueAccessorChangeFn=E}registerOnTouched(E){this._onTouched=E}setDisabledState(E){this.disabled=E}_emitChangeEvent(E){const b=new x(E,this.value);this._rawValue=b.value,this._controlValueAccessorChangeFn(b.value),this.change.emit(b)}_syncButtonToggle(E,b,I=!1,L=!1){!this.multiple&&this.selected&&!E.checked&&(this.selected.checked=!1),this._selectionModel?b?this._selectionModel.select(E):this._selectionModel.deselect(E):L=!0,L?Promise.resolve().then(()=>this._updateModelValue(E,I)):this._updateModelValue(E,I)}_isSelected(E){return this._selectionModel&&this._selectionModel.isSelected(E)}_isPrechecked(E){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(b=>null!=E.value&&b===E.value):E.value===this._rawValue)}_setSelectionByValue(E){this._rawValue=E,this._buttonToggles&&(this.multiple&&E?(Array.isArray(E),this._clearSelection(),E.forEach(b=>this._selectValue(b))):(this._clearSelection(),this._selectValue(E)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(E=>E.checked=!1)}_selectValue(E){const b=this._buttonToggles.find(I=>null!=I.value&&I.value===E);b&&(b.checked=!0,this._selectionModel.select(b))}_updateModelValue(E,b){b&&this._emitChangeEvent(E),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(E=>E._markForCheck())}static#e=this.\u0275fac=function(b){return new(b||M)(a.Y36(a.sBO),a.Y36(A,8))};static#t=this.\u0275dir=a.lG2({type:M,selectors:[["mat-button-toggle-group"]],contentQueries:function(b,I,L){if(1&b&&a.Suo(L,w,5),2&b){let D;a.iGM(D=a.CRH())&&(I._buttonToggles=D)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(b,I){2&b&&(a.uIk("aria-disabled",I.disabled),a.ekj("mat-button-toggle-vertical",I.vertical)("mat-button-toggle-group-appearance-standard","standard"===I.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[a._Bn([C,{provide:_,useExisting:M}])]})}return M})();const k=(0,u.Kr)(class{});let w=(()=>{class M extends k{get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(E){this._appearance=E}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(E){const b=(0,n.Ig)(E);b!==this._checked&&(this._checked=b,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(E){this._disabled=(0,n.Ig)(E)}constructor(E,b,I,L,D,F){super(),this._changeDetectorRef=b,this._elementRef=I,this._focusMonitor=L,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new a.vpe;const P=Number(D);this.tabIndex=P||0===P?P:null,this.buttonToggleGroup=E,this.appearance=F&&F.appearance?F.appearance:"standard"}ngOnInit(){const E=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+R++,E&&(E._isPrechecked(this)?this.checked=!0:E._isSelected(this)!==this._checked&&E._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const E=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),E&&E._isSelected(this)&&E._syncButtonToggle(this,!1,!1,!0)}focus(E){this._buttonElement.nativeElement.focus(E)}_onButtonClick(){const E=!!this._isSingleSelector()||!this._checked;E!==this._checked&&(this._checked=E,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new x(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static#e=this.\u0275fac=function(b){return new(b||M)(a.Y36(_,8),a.Y36(a.sBO),a.Y36(a.SBq),a.Y36(e.tE),a.$8M("tabindex"),a.Y36(A,8))};static#t=this.\u0275cmp=a.Xpm({type:M,selectors:[["mat-button-toggle"]],viewQuery:function(b,I){if(1&b&&a.Gf(d,5),2&b){let L;a.iGM(L=a.CRH())&&(I._buttonElement=L.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(b,I){1&b&&a.NdJ("focus",function(){return I.focus()}),2&b&&(a.uIk("aria-label",null)("aria-labelledby",null)("id",I.id)("name",null),a.ekj("mat-button-toggle-standalone",!I.buttonToggleGroup)("mat-button-toggle-checked",I.checked)("mat-button-toggle-disabled",I.disabled)("mat-button-toggle-appearance-standard","standard"===I.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[a.qOj],ngContentSelectors:s,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(b,I){if(1&b&&(a.F$t(),a.TgZ(0,"button",0,1),a.NdJ("click",function(){return I._onButtonClick()}),a.TgZ(2,"span",2),a.Hsn(3),a.qZA()(),a._UZ(4,"span",3)(5,"span",4)),2&b){const L=a.MAs(1);a.Q6J("id",I.buttonId)("disabled",I.disabled||null),a.uIk("tabindex",I.disabled?-1:I.tabIndex)("aria-pressed",I.checked)("name",I._getButtonName())("aria-label",I.ariaLabel)("aria-labelledby",I.ariaLabelledby),a.xp6(5),a.Q6J("matRippleTrigger",L)("matRippleDisabled",I.disableRipple||I.disabled)}},dependencies:[u.wG],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0})}return M})(),g=(()=>{class M{static#e=this.\u0275fac=function(b){return new(b||M)};static#t=this.\u0275mod=a.oAB({type:M});static#n=this.\u0275inj=a.cJS({imports:[u.BQ,u.si,u.BQ]})}return M})()},32296:(he,y,i)=>{"use strict";i.d(y,{RK:()=>z,lW:()=>K,ot:()=>se});var e=i(62831),n=i(65879),o=i(4300),a=i(23680),l=i(96814);const u=["mat-button",""],d=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],s=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],f=["mat-icon-button",""],k=["*"],g={capture:!0},M=["focus","click","mouseenter","touchstart"],p="mat-button-ripple-uninitialized";let E=(()=>{class ne{constructor(){this._document=(0,n.f3M)(l.K0,{optional:!0}),this._animationMode=(0,n.f3M)(n.QbO,{optional:!0}),this._globalRippleOptions=(0,n.f3M)(a.Y2,{optional:!0}),this._platform=(0,n.f3M)(e.t4),this._ngZone=(0,n.f3M)(n.R0b),this._onInteraction=ge=>{if(ge.target===this._document)return;const Te=ge.target.closest(`[${p}]`);Te&&(Te.removeAttribute(p),this._appendRipple(Te))},this._ngZone.runOutsideAngular(()=>{for(const ge of M)this._document?.addEventListener(ge,this._onInteraction,g)})}ngOnDestroy(){for(const ge of M)this._document?.removeEventListener(ge,this._onInteraction,g)}_appendRipple(ge){if(!this._document)return;const Ce=this._document.createElement("span");Ce.classList.add("mat-mdc-button-ripple");const Te=new b(ge,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);Te.rippleConfig.centered=ge.hasAttribute("mat-icon-button"),new a.IR(Te,this._ngZone,Ce,this._platform).setupTriggerEvents(ge),ge.append(Ce)}_createMatRipple(ge){if(!this._document)return;ge.querySelector(".mat-mdc-button-ripple")?.remove(),ge.removeAttribute(p);const Ce=this._document.createElement("span");Ce.classList.add("mat-mdc-button-ripple");const Te=new a.wG(new n.SBq(Ce),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return Te._isInitialized=!0,Te.trigger=ge,ge.append(Ce),Te}static#e=this.\u0275fac=function(Ce){return new(Ce||ne)};static#t=this.\u0275prov=n.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"})}return ne})();class b{constructor(_e,ge,Ce){this._button=_e,this._globalRippleOptions=ge,this._setRippleConfig(ge,Ce)}_setRippleConfig(_e,ge){this.rippleConfig=_e||{},"NoopAnimations"===ge&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get rippleDisabled(){return this._button.hasAttribute("disabled")||!!this._globalRippleOptions?.disabled}}const D=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],F=(0,a.pj)((0,a.Id)((0,a.Kr)(class{constructor(ne){this._elementRef=ne}})));let P=(()=>{class ne extends F{get ripple(){return!this._ripple&&this._rippleLoader&&(this._ripple=this._rippleLoader._createMatRipple(this._elementRef.nativeElement)),this._ripple}set ripple(ge){this._ripple=ge}constructor(ge,Ce,Te,De){super(ge),this._platform=Ce,this._ngZone=Te,this._animationMode=De,this._focusMonitor=(0,n.f3M)(o.tE),this._rippleLoader=(0,n.f3M)(E),this._isFab=!1;const fe=ge.nativeElement.classList;for(const xe of D)this._hasHostAttributes(xe.selector)&&xe.mdcClasses.forEach(Oe=>{fe.add(Oe)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnChanges(){this._ripple&&(this._ripple.disabled=this.disableRipple||this.disabled)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(ge="program",Ce){ge?this._focusMonitor.focusVia(this._elementRef.nativeElement,ge,Ce):this._elementRef.nativeElement.focus(Ce)}_hasHostAttributes(...ge){return ge.some(Ce=>this._elementRef.nativeElement.hasAttribute(Ce))}static#e=this.\u0275fac=function(Ce){n.$Z()};static#t=this.\u0275dir=n.lG2({type:ne,features:[n.qOj,n.TTD]})}return ne})(),K=(()=>{class ne extends P{constructor(ge,Ce,Te,De){super(ge,Ce,Te,De)}static#e=this.\u0275fac=function(Ce){return new(Ce||ne)(n.Y36(n.SBq),n.Y36(e.t4),n.Y36(n.R0b),n.Y36(n.QbO,8))};static#t=this.\u0275cmp=n.Xpm({type:ne,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostAttrs:["mat-button-ripple-uninitialized",""],hostVars:7,hostBindings:function(Ce,Te){2&Ce&&(n.uIk("disabled",Te.disabled||null),n.ekj("_mat-animation-noopable","NoopAnimations"===Te._animationMode)("mat-unthemed",!Te.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.qOj],attrs:u,ngContentSelectors:s,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ce,Te){1&Ce&&(n.F$t(d),n._UZ(0,"span",0),n.Hsn(1),n.TgZ(2,"span",1),n.Hsn(3,1),n.qZA(),n.Hsn(4,2),n._UZ(5,"span",2)(6,"span",3)),2&Ce&&n.ekj("mdc-button__ripple",!Te._isFab)("mdc-fab__ripple",Te._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n      100% + 4px\n    );width:calc(\n      100% + 4px\n    );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return ne})(),z=(()=>{class ne extends P{get ripple(){return!this._ripple&&this._rippleLoader&&(this._ripple=this._rippleLoader._createMatRipple(this._elementRef.nativeElement),this._ripple.centered=!0),this._ripple}constructor(ge,Ce,Te,De){super(ge,Ce,Te,De)}static#e=this.\u0275fac=function(Ce){return new(Ce||ne)(n.Y36(n.SBq),n.Y36(e.t4),n.Y36(n.R0b),n.Y36(n.QbO,8))};static#t=this.\u0275cmp=n.Xpm({type:ne,selectors:[["button","mat-icon-button",""]],hostAttrs:["mat-button-ripple-uninitialized",""],hostVars:7,hostBindings:function(Ce,Te){2&Ce&&(n.uIk("disabled",Te.disabled||null),n.ekj("_mat-animation-noopable","NoopAnimations"===Te._animationMode)("mat-unthemed",!Te.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.qOj],attrs:f,ngContentSelectors:k,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ce,Te){1&Ce&&(n.F$t(),n._UZ(0,"span",0),n.Hsn(1),n._UZ(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return ne})(),se=(()=>{class ne{static#e=this.\u0275fac=function(Ce){return new(Ce||ne)};static#t=this.\u0275mod=n.oAB({type:ne});static#n=this.\u0275inj=n.cJS({imports:[a.BQ,a.si,a.BQ]})}return ne})()},75986:(he,y,i)=>{"use strict";i.d(y,{$u:()=>s,LX:()=>p,MB:()=>k,oG:()=>w,p9:()=>E});var e=i(65879),n=i(56223),o=i(23680),a=i(42495);const l=["input"],u=["label"],d=["*"],s=new e.OlP("mat-checkbox-default-options",{providedIn:"root",factory:A});function A(){return{color:"accent",clickAction:"check-indeterminate"}}const _={provide:n.JU,useExisting:(0,e.Gpc)(()=>w),multi:!0};class C{}let R=0;const x=A(),f=(0,o.sb)((0,o.pj)((0,o.Kr)((0,o.Id)(class{constructor(b){this._elementRef=b}}))));let k=(()=>{class b extends f{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(L){this._required=(0,a.Ig)(L)}constructor(L,D,F,P,O,U,V){super(D),this._changeDetectorRef=F,this._ngZone=P,this._animationMode=U,this._options=V,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new e.vpe,this.indeterminateChange=new e.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||x,this.color=this.defaultColor=this._options.color||x.color,this.tabIndex=parseInt(O)||0,this.id=this._uniqueId=`${L}${++R}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(L){const D=(0,a.Ig)(L);D!=this.checked&&(this._checked=D,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(L){const D=(0,a.Ig)(L);D!==this.disabled&&(this._disabled=D,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(L){const D=L!=this._indeterminate;this._indeterminate=(0,a.Ig)(L),D&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(L){this.checked=!!L}registerOnChange(L){this._controlValueAccessorChangeFn=L}registerOnTouched(L){this._onTouched=L}setDisabledState(L){this.disabled=L}_transitionCheckState(L){let D=this._currentCheckState,F=this._getAnimationTargetElement();if(D!==L&&F&&(this._currentAnimationClass&&F.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(D,L),this._currentCheckState=L,this._currentAnimationClass.length>0)){F.classList.add(this._currentAnimationClass);const P=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{F.classList.remove(P)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const L=this._options?.clickAction;this.disabled||"noop"===L?!this.disabled&&"noop"===L&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==L&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(L){L.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(L,D){if("NoopAnimations"===this._animationMode)return"";switch(L){case 0:if(1===D)return this._animationClasses.uncheckedToChecked;if(3==D)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===D?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===D?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===D?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(L){const D=this._inputElement;D&&(D.nativeElement.indeterminate=L)}static#e=this.\u0275fac=function(D){e.$Z()};static#t=this.\u0275dir=e.lG2({type:b,viewQuery:function(D,F){if(1&D&&(e.Gf(l,5),e.Gf(u,5),e.Gf(o.wG,5)),2&D){let P;e.iGM(P=e.CRH())&&(F._inputElement=P.first),e.iGM(P=e.CRH())&&(F._labelElement=P.first),e.iGM(P=e.CRH())&&(F.ripple=P.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[e.qOj]})}return b})(),w=(()=>{class b extends k{constructor(L,D,F,P,O,U){super("mat-mdc-checkbox-",L,D,F,P,O,U),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(L){const D=new C;return D.source=this,D.checked=L,D}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(L){L.target&&this._labelElement.nativeElement.contains(L.target)&&L.stopPropagation()}static#e=this.\u0275fac=function(D){return new(D||b)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.$8M("tabindex"),e.Y36(e.QbO,8),e.Y36(s,8))};static#t=this.\u0275cmp=e.Xpm({type:b,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(D,F){2&D&&(e.Ikx("id",F.id),e.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),e.ekj("_mat-animation-noopable","NoopAnimations"===F._animationMode)("mdc-checkbox--disabled",F.disabled)("mat-mdc-checkbox-disabled",F.disabled)("mat-mdc-checkbox-checked",F.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[e._Bn([_]),e.qOj],ngContentSelectors:d,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"],["label",""]],template:function(D,F){if(1&D&&(e.F$t(),e.TgZ(0,"div",0),e.NdJ("click",function(O){return F._preventBubblingFromLabel(O)}),e.TgZ(1,"div",1,2)(3,"div",3),e.NdJ("click",function(){return F._onTouchTargetClick()}),e.qZA(),e.TgZ(4,"input",4,5),e.NdJ("blur",function(){return F._onBlur()})("click",function(){return F._onInputClick()})("change",function(O){return F._onInteractionEvent(O)}),e.qZA(),e._UZ(6,"div",6),e.TgZ(7,"div",7),e.O4$(),e.TgZ(8,"svg",8),e._UZ(9,"path",9),e.qZA(),e.kcU(),e._UZ(10,"div",10),e.qZA(),e._UZ(11,"div",11),e.qZA(),e.TgZ(12,"label",12,13),e.Hsn(14),e.qZA()()),2&D){const P=e.MAs(2);e.ekj("mdc-form-field--align-end","before"==F.labelPosition),e.xp6(4),e.ekj("mdc-checkbox--selected",F.checked),e.Q6J("checked",F.checked)("indeterminate",F.indeterminate)("disabled",F.disabled)("id",F.inputId)("required",F.required)("tabIndex",F.tabIndex),e.uIk("aria-label",F.ariaLabel||null)("aria-labelledby",F.ariaLabelledby)("aria-describedby",F.ariaDescribedby)("name",F.name)("value",F.value),e.xp6(7),e.Q6J("matRippleTrigger",P)("matRippleDisabled",F.disableRipple||F.disabled)("matRippleCentered",!0),e.xp6(1),e.Q6J("for",F.inputId)}},dependencies:[o.wG],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}html{--mdc-checkbox-disabled-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-state-layer-opacity:0.16;--mdc-checkbox-selected-hover-state-layer-opacity:0.04;--mdc-checkbox-selected-pressed-state-layer-opacity:0.16;--mdc-checkbox-unselected-focus-state-layer-opacity:0.16;--mdc-checkbox-unselected-hover-state-layer-opacity:0.04;--mdc-checkbox-unselected-pressed-state-layer-opacity:0.16}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return b})(),p=(()=>{class b{static#e=this.\u0275fac=function(D){return new(D||b)};static#t=this.\u0275mod=e.oAB({type:b});static#n=this.\u0275inj=e.cJS({})}return b})(),E=(()=>{class b{static#e=this.\u0275fac=function(D){return new(D||b)};static#t=this.\u0275mod=e.oAB({type:b});static#n=this.\u0275inj=e.cJS({imports:[o.BQ,o.si,p,o.BQ,p]})}return b})()},23680:(he,y,i)=>{"use strict";i.d(y,{yN:()=>b,mZ:()=>I,_A:()=>te,rD:()=>Ce,sG:()=>j,Ad:()=>re,K7:()=>xo,HF:()=>Mi,Y2:()=>dn,BQ:()=>F,X2:()=>Te,uc:()=>xe,XK:()=>_e,ey:()=>un,Ng:()=>oi,rN:()=>Ji,nP:()=>yi,us:()=>nn,wG:()=>sn,si:()=>fn,Dn:()=>ne,IR:()=>ut,DH:()=>Ko,MP:()=>En,CB:()=>Ki,jH:()=>Fn,pj:()=>K,Kr:()=>X,Id:()=>V,FD:()=>J,dB:()=>Q,sb:()=>me,E0:()=>De});var e=i(65879),n=i(4300),o=i(49388),l=i(96814),u=i(62831),d=i(42495),s=i(65592),A=i(78645),_=i(27921),C=i(36028);const f=["text"];function k(It,Bt){if(1&It&&e._UZ(0,"mat-pseudo-checkbox",6),2&It){const xt=e.oxw();e.Q6J("disabled",xt.disabled)("state",xt.selected?"checked":"unchecked")}}function w(It,Bt){if(1&It&&e._UZ(0,"mat-pseudo-checkbox",7),2&It){const xt=e.oxw();e.Q6J("disabled",xt.disabled)}}function g(It,Bt){if(1&It&&(e.TgZ(0,"span",8),e._uU(1),e.qZA()),2&It){const xt=e.oxw();e.xp6(1),e.hij("(",xt.group.label,")")}}const M=[[["mat-icon"]],"*"],p=["mat-icon","*"];let b=(()=>{class It{static#e=this.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)";static#t=this.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)";static#n=this.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)";static#i=this.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)"}return It})(),I=(()=>{class It{static#e=this.COMPLEX="375ms";static#t=this.ENTERING="225ms";static#n=this.EXITING="195ms"}return It})();const D=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function L(){return!0}});let F=(()=>{class It{constructor(xt,wt,Mt){this._sanityChecks=wt,this._document=Mt,this._hasDoneGlobalChecks=!1,xt._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(xt){return!(0,u.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[xt])}static#e=this.\u0275fac=function(wt){return new(wt||It)(e.LFG(n.qm),e.LFG(D,8),e.LFG(l.K0))};static#t=this.\u0275mod=e.oAB({type:It});static#n=this.\u0275inj=e.cJS({imports:[o.vT,o.vT]})}return It})();function V(It){return class extends It{get disabled(){return this._disabled}set disabled(Bt){this._disabled=(0,d.Ig)(Bt)}constructor(...Bt){super(...Bt),this._disabled=!1}}}function K(It,Bt){return class extends It{get color(){return this._color}set color(xt){const wt=xt||this.defaultColor;wt!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),wt&&this._elementRef.nativeElement.classList.add(`mat-${wt}`),this._color=wt)}constructor(...xt){super(...xt),this.defaultColor=Bt,this.color=Bt}}}function X(It){return class extends It{get disableRipple(){return this._disableRipple}set disableRipple(Bt){this._disableRipple=(0,d.Ig)(Bt)}constructor(...Bt){super(...Bt),this._disableRipple=!1}}}function me(It,Bt=0){return class extends It{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(xt){this._tabIndex=null!=xt?(0,d.su)(xt):this.defaultTabIndex}constructor(...xt){super(...xt),this._tabIndex=Bt,this.defaultTabIndex=Bt}}}function J(It){return class extends It{updateErrorState(){const Bt=this.errorState,pt=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);pt!==Bt&&(this.errorState=pt,this.stateChanges.next())}constructor(...Bt){super(...Bt),this.errorState=!1}}}function Q(It){return class extends It{constructor(...Bt){super(...Bt),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new s.y(xt=>{this._isInitialized?this._notifySubscriber(xt):this._pendingSubscribers.push(xt)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Bt){Bt.next(),Bt.complete()}}}const re=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function de(){return(0,e.f3M)(e.soG)}});class te{constructor(){this._localeChanges=new A.x,this.localeChanges=this._localeChanges}getValidDateOrNull(Bt){return this.isDateInstance(Bt)&&this.isValid(Bt)?Bt:null}deserialize(Bt){return null==Bt||this.isDateInstance(Bt)&&this.isValid(Bt)?Bt:this.invalid()}setLocale(Bt){this.locale=Bt,this._localeChanges.next()}compareDate(Bt,xt){return this.getYear(Bt)-this.getYear(xt)||this.getMonth(Bt)-this.getMonth(xt)||this.getDate(Bt)-this.getDate(xt)}sameDate(Bt,xt){if(Bt&&xt){let wt=this.isValid(Bt),Mt=this.isValid(xt);return wt&&Mt?!this.compareDate(Bt,xt):wt==Mt}return Bt==xt}clampDate(Bt,xt,wt){return xt&&this.compareDate(Bt,xt)<0?xt:wt&&this.compareDate(Bt,wt)>0?wt:Bt}}const j=new e.OlP("mat-date-formats"),H=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function z(It,Bt){const xt=Array(It);for(let wt=0;wt<It;wt++)xt[wt]=Bt(wt);return xt}let q=(()=>{class It extends te{constructor(xt,wt){super(),this.useUtcForDisplay=!1,super.setLocale(xt)}getYear(xt){return xt.getFullYear()}getMonth(xt){return xt.getMonth()}getDate(xt){return xt.getDate()}getDayOfWeek(xt){return xt.getDay()}getMonthNames(xt){const wt=new Intl.DateTimeFormat(this.locale,{month:xt,timeZone:"utc"});return z(12,Mt=>this._format(wt,new Date(2017,Mt,1)))}getDateNames(){const xt=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return z(31,wt=>this._format(xt,new Date(2017,0,wt+1)))}getDayOfWeekNames(xt){const wt=new Intl.DateTimeFormat(this.locale,{weekday:xt,timeZone:"utc"});return z(7,Mt=>this._format(wt,new Date(2017,0,Mt+1)))}getYearName(xt){const wt=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(wt,xt)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(xt){return this.getDate(this._createDateWithOverflow(this.getYear(xt),this.getMonth(xt)+1,0))}clone(xt){return new Date(xt.getTime())}createDate(xt,wt,Mt){let pt=this._createDateWithOverflow(xt,wt,Mt);return pt.getMonth(),pt}today(){return new Date}parse(xt,wt){return"number"==typeof xt?new Date(xt):xt?new Date(Date.parse(xt)):null}format(xt,wt){if(!this.isValid(xt))throw Error("NativeDateAdapter: Cannot format invalid date.");const Mt=new Intl.DateTimeFormat(this.locale,{...wt,timeZone:"utc"});return this._format(Mt,xt)}addCalendarYears(xt,wt){return this.addCalendarMonths(xt,12*wt)}addCalendarMonths(xt,wt){let Mt=this._createDateWithOverflow(this.getYear(xt),this.getMonth(xt)+wt,this.getDate(xt));return this.getMonth(Mt)!=((this.getMonth(xt)+wt)%12+12)%12&&(Mt=this._createDateWithOverflow(this.getYear(Mt),this.getMonth(Mt),0)),Mt}addCalendarDays(xt,wt){return this._createDateWithOverflow(this.getYear(xt),this.getMonth(xt),this.getDate(xt)+wt)}toIso8601(xt){return[xt.getUTCFullYear(),this._2digit(xt.getUTCMonth()+1),this._2digit(xt.getUTCDate())].join("-")}deserialize(xt){if("string"==typeof xt){if(!xt)return null;if(H.test(xt)){let wt=new Date(xt);if(this.isValid(wt))return wt}}return super.deserialize(xt)}isDateInstance(xt){return xt instanceof Date}isValid(xt){return!isNaN(xt.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(xt,wt,Mt){const pt=new Date;return pt.setFullYear(xt,wt,Mt),pt.setHours(0,0,0,0),pt}_2digit(xt){return("00"+xt).slice(-2)}_format(xt,wt){const Mt=new Date;return Mt.setUTCFullYear(wt.getFullYear(),wt.getMonth(),wt.getDate()),Mt.setUTCHours(wt.getHours(),wt.getMinutes(),wt.getSeconds(),wt.getMilliseconds()),xt.format(Mt)}static#e=this.\u0275fac=function(wt){return new(wt||It)(e.LFG(re,8),e.LFG(u.t4))};static#t=this.\u0275prov=e.Yz7({token:It,factory:It.\u0275fac})}return It})();const se={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let ne=(()=>{class It{static#e=this.\u0275fac=function(wt){return new(wt||It)};static#t=this.\u0275mod=e.oAB({type:It});static#n=this.\u0275inj=e.cJS({providers:[{provide:te,useClass:q}]})}return It})(),_e=(()=>{class It{static#e=this.\u0275fac=function(wt){return new(wt||It)};static#t=this.\u0275mod=e.oAB({type:It});static#n=this.\u0275inj=e.cJS({providers:[{provide:j,useValue:se}],imports:[ne]})}return It})(),Ce=(()=>{class It{isErrorState(xt,wt){return!!(xt&&xt.invalid&&(xt.touched||wt&&wt.submitted))}static#e=this.\u0275fac=function(wt){return new(wt||It)};static#t=this.\u0275prov=e.Yz7({token:It,factory:It.\u0275fac,providedIn:"root"})}return It})(),Te=(()=>{class It{static#e=this.\u0275fac=function(wt){return new(wt||It)};static#t=this.\u0275dir=e.lG2({type:It,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]})}return It})();function De(It,Bt,xt="mat"){It.changes.pipe((0,_.O)(It)).subscribe(({length:wt})=>{fe(Bt,`${xt}-2-line`,!1),fe(Bt,`${xt}-3-line`,!1),fe(Bt,`${xt}-multi-line`,!1),2===wt||3===wt?fe(Bt,`${xt}-${wt}-line`,!0):wt>3&&fe(Bt,`${xt}-multi-line`,!0)})}function fe(It,Bt,xt){It.nativeElement.classList.toggle(Bt,xt)}let xe=(()=>{class It{static#e=this.\u0275fac=function(wt){return new(wt||It)};static#t=this.\u0275mod=e.oAB({type:It});static#n=this.\u0275inj=e.cJS({imports:[F,F]})}return It})();class Oe{constructor(Bt,xt,wt,Mt=!1){this._renderer=Bt,this.element=xt,this.config=wt,this._animationForciblyDisabledThroughCss=Mt,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Le=(0,u.i$)({passive:!0,capture:!0});class Gt{constructor(){this._events=new Map,this._delegateEventHandler=Bt=>{const xt=(0,u.sA)(Bt);xt&&this._events.get(Bt.type)?.forEach((wt,Mt)=>{(Mt===xt||Mt.contains(xt))&&wt.forEach(pt=>pt.handleEvent(Bt))})}}addHandler(Bt,xt,wt,Mt){const pt=this._events.get(xt);if(pt){const Lt=pt.get(wt);Lt?Lt.add(Mt):pt.set(wt,new Set([Mt]))}else this._events.set(xt,new Map([[wt,new Set([Mt])]])),Bt.runOutsideAngular(()=>{document.addEventListener(xt,this._delegateEventHandler,Le)})}removeHandler(Bt,xt,wt){const Mt=this._events.get(Bt);if(!Mt)return;const pt=Mt.get(xt);pt&&(pt.delete(wt),0===pt.size&&Mt.delete(xt),0===Mt.size&&(this._events.delete(Bt),document.removeEventListener(Bt,this._delegateEventHandler,Le)))}}const Ut={enterDuration:225,exitDuration:150},$n=(0,u.i$)({passive:!0,capture:!0}),xn=["mousedown","touchstart"],mt=["mouseup","mouseleave","touchend","touchcancel"];class ut{static#e=this._eventManager=new Gt;constructor(Bt,xt,wt,Mt){this._target=Bt,this._ngZone=xt,this._platform=Mt,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Mt.isBrowser&&(this._containerElement=(0,d.fI)(wt))}fadeInRipple(Bt,xt,wt={}){const Mt=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),pt={...Ut,...wt.animation};wt.centered&&(Bt=Mt.left+Mt.width/2,xt=Mt.top+Mt.height/2);const Lt=wt.radius||function Wt(It,Bt,xt){const wt=Math.max(Math.abs(It-xt.left),Math.abs(It-xt.right)),Mt=Math.max(Math.abs(Bt-xt.top),Math.abs(Bt-xt.bottom));return Math.sqrt(wt*wt+Mt*Mt)}(Bt,xt,Mt),tt=Bt-Mt.left,Ne=xt-Mt.top,vt=pt.enterDuration,ln=document.createElement("div");ln.classList.add("mat-ripple-element"),ln.style.left=tt-Lt+"px",ln.style.top=Ne-Lt+"px",ln.style.height=2*Lt+"px",ln.style.width=2*Lt+"px",null!=wt.color&&(ln.style.backgroundColor=wt.color),ln.style.transitionDuration=`${vt}ms`,this._containerElement.appendChild(ln);const jn=window.getComputedStyle(ln),go=jn.transitionDuration,si="none"===jn.transitionProperty||"0s"===go||"0s, 0s"===go||0===Mt.width&&0===Mt.height,ot=new Oe(this,ln,wt,si);ln.style.transform="scale3d(1, 1, 1)",ot.state=0,wt.persistent||(this._mostRecentTransientRipple=ot);let pn=null;return!si&&(vt||pt.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const _i=()=>this._finishRippleTransition(ot),wi=()=>this._destroyRipple(ot);ln.addEventListener("transitionend",_i),ln.addEventListener("transitioncancel",wi),pn={onTransitionEnd:_i,onTransitionCancel:wi}}),this._activeRipples.set(ot,pn),(si||!vt)&&this._finishRippleTransition(ot),ot}fadeOutRipple(Bt){if(2===Bt.state||3===Bt.state)return;const xt=Bt.element,wt={...Ut,...Bt.config.animation};xt.style.transitionDuration=`${wt.exitDuration}ms`,xt.style.opacity="0",Bt.state=2,(Bt._animationForciblyDisabledThroughCss||!wt.exitDuration)&&this._finishRippleTransition(Bt)}fadeOutAll(){this._getActiveRipples().forEach(Bt=>Bt.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Bt=>{Bt.config.persistent||Bt.fadeOut()})}setupTriggerEvents(Bt){const xt=(0,d.fI)(Bt);!this._platform.isBrowser||!xt||xt===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=xt,xn.forEach(wt=>{ut._eventManager.addHandler(this._ngZone,wt,xt,this)}))}handleEvent(Bt){"mousedown"===Bt.type?this._onMousedown(Bt):"touchstart"===Bt.type?this._onTouchStart(Bt):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{mt.forEach(xt=>{this._triggerElement.addEventListener(xt,this,$n)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Bt){0===Bt.state?this._startFadeOutTransition(Bt):2===Bt.state&&this._destroyRipple(Bt)}_startFadeOutTransition(Bt){const xt=Bt===this._mostRecentTransientRipple,{persistent:wt}=Bt.config;Bt.state=1,!wt&&(!xt||!this._isPointerDown)&&Bt.fadeOut()}_destroyRipple(Bt){const xt=this._activeRipples.get(Bt)??null;this._activeRipples.delete(Bt),this._activeRipples.size||(this._containerRect=null),Bt===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Bt.state=3,null!==xt&&(Bt.element.removeEventListener("transitionend",xt.onTransitionEnd),Bt.element.removeEventListener("transitioncancel",xt.onTransitionCancel)),Bt.element.remove()}_onMousedown(Bt){const xt=(0,n.X6)(Bt),wt=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!xt&&!wt&&(this._isPointerDown=!0,this.fadeInRipple(Bt.clientX,Bt.clientY,this._target.rippleConfig))}_onTouchStart(Bt){if(!this._target.rippleDisabled&&!(0,n.yG)(Bt)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const xt=Bt.changedTouches;if(xt)for(let wt=0;wt<xt.length;wt++)this.fadeInRipple(xt[wt].clientX,xt[wt].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(Bt=>{!Bt.config.persistent&&(1===Bt.state||Bt.config.terminateOnPointerUp&&0===Bt.state)&&Bt.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const Bt=this._triggerElement;Bt&&(xn.forEach(xt=>ut._eventManager.removeHandler(xt,Bt,this)),this._pointerUpEventsRegistered&&mt.forEach(xt=>Bt.removeEventListener(xt,this,$n)))}}const dn=new e.OlP("mat-ripple-global-options");let sn=(()=>{class It{get disabled(){return this._disabled}set disabled(xt){xt&&this.fadeOutAllNonPersistent(),this._disabled=xt,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(xt){this._trigger=xt,this._setupTriggerEventsIfEnabled()}constructor(xt,wt,Mt,pt,Lt){this._elementRef=xt,this._animationMode=Lt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=pt||{},this._rippleRenderer=new ut(this,wt,xt,Mt)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(xt,wt=0,Mt){return"number"==typeof xt?this._rippleRenderer.fadeInRipple(xt,wt,{...this.rippleConfig,...Mt}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...xt})}static#e=this.\u0275fac=function(wt){return new(wt||It)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(u.t4),e.Y36(dn,8),e.Y36(e.QbO,8))};static#t=this.\u0275dir=e.lG2({type:It,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(wt,Mt){2&wt&&e.ekj("mat-ripple-unbounded",Mt.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return It})(),fn=(()=>{class It{static#e=this.\u0275fac=function(wt){return new(wt||It)};static#t=this.\u0275mod=e.oAB({type:It});static#n=this.\u0275inj=e.cJS({imports:[F,F]})}return It})(),yi=(()=>{class It{constructor(xt){this._animationMode=xt,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(wt){return new(wt||It)(e.Y36(e.QbO,8))};static#t=this.\u0275cmp=e.Xpm({type:It,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(wt,Mt){2&wt&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Mt.state)("mat-pseudo-checkbox-checked","checked"===Mt.state)("mat-pseudo-checkbox-disabled",Mt.disabled)("mat-pseudo-checkbox-minimal","minimal"===Mt.appearance)("mat-pseudo-checkbox-full","full"===Mt.appearance)("_mat-animation-noopable","NoopAnimations"===Mt._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(wt,Mt){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return It})(),nn=(()=>{class It{static#e=this.\u0275fac=function(wt){return new(wt||It)};static#t=this.\u0275mod=e.oAB({type:It});static#n=this.\u0275inj=e.cJS({imports:[F]})}return It})();const Mi=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),mi=V(class{});let Eo=0,Ko=(()=>{class It extends mi{constructor(xt){super(),this._labelId="mat-optgroup-label-"+Eo++,this._inert=xt?.inertGroups??!1}static#e=this.\u0275fac=function(wt){return new(wt||It)(e.Y36(Mi,8))};static#t=this.\u0275dir=e.lG2({type:It,inputs:{label:"label"},features:[e.qOj]})}return It})();const xo=new e.OlP("MatOptgroup");let Xt=0;class Ji{constructor(Bt,xt=!1){this.source=Bt,this.isUserInput=xt}}let En=(()=>{class It{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(xt){this._disabled=(0,d.Ig)(xt)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(xt,wt,Mt,pt){this._element=xt,this._changeDetectorRef=wt,this._parent=Mt,this.group=pt,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Xt++,this.onSelectionChange=new e.vpe,this._stateChanges=new A.x}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(xt=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),xt&&this._emitSelectionChangeEvent())}deselect(xt=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),xt&&this._emitSelectionChangeEvent())}focus(xt,wt){const Mt=this._getHostElement();"function"==typeof Mt.focus&&Mt.focus(wt)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(xt){(xt.keyCode===C.K5||xt.keyCode===C.L_)&&!(0,C.Vb)(xt)&&(this._selectViaInteraction(),xt.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const xt=this.viewValue;xt!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=xt)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(xt=!1){this.onSelectionChange.emit(new Ji(this,xt))}static#e=this.\u0275fac=function(wt){e.$Z()};static#t=this.\u0275dir=e.lG2({type:It,viewQuery:function(wt,Mt){if(1&wt&&e.Gf(f,7),2&wt){let pt;e.iGM(pt=e.CRH())&&(Mt._text=pt.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}})}return It})(),un=(()=>{class It extends En{constructor(xt,wt,Mt,pt){super(xt,wt,Mt,pt)}static#e=this.\u0275fac=function(wt){return new(wt||It)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Mi,8),e.Y36(xo,8))};static#t=this.\u0275cmp=e.Xpm({type:It,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(wt,Mt){1&wt&&e.NdJ("click",function(){return Mt._selectViaInteraction()})("keydown",function(Lt){return Mt._handleKeydown(Lt)}),2&wt&&(e.Ikx("id",Mt.id),e.uIk("aria-selected",Mt.selected)("aria-disabled",Mt.disabled.toString()),e.ekj("mdc-list-item--selected",Mt.selected)("mat-mdc-option-multiple",Mt.multiple)("mat-mdc-option-active",Mt.active)("mdc-list-item--disabled",Mt.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:p,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(wt,Mt){1&wt&&(e.F$t(M),e.YNc(0,k,1,2,"mat-pseudo-checkbox",0),e.Hsn(1),e.TgZ(2,"span",1,2),e.Hsn(4,1),e.qZA(),e.YNc(5,w,1,1,"mat-pseudo-checkbox",3),e.YNc(6,g,2,1,"span",4),e._UZ(7,"div",5)),2&wt&&(e.Q6J("ngIf",Mt.multiple),e.xp6(5),e.Q6J("ngIf",!Mt.multiple&&Mt.selected&&!Mt.hideSingleSelectionIndicator),e.xp6(1),e.Q6J("ngIf",Mt.group&&Mt.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",Mt._getHostElement())("matRippleDisabled",Mt.disabled||Mt.disableRipple))},dependencies:[sn,l.O5,yi],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return It})();function Ki(It,Bt,xt){if(xt.length){let wt=Bt.toArray(),Mt=xt.toArray(),pt=0;for(let Lt=0;Lt<It+1;Lt++)wt[Lt].group&&wt[Lt].group===Mt[pt]&&pt++;return pt}return 0}function Fn(It,Bt,xt,wt){return It<xt?It:It+Bt>xt+wt?Math.max(0,It-wt+Bt):xt}let oi=(()=>{class It{static#e=this.\u0275fac=function(wt){return new(wt||It)};static#t=this.\u0275mod=e.oAB({type:It});static#n=this.\u0275inj=e.cJS({imports:[fn,l.ez,F,nn]})}return It})()},38034:(he,y,i)=>{"use strict";i.d(y,{FA:()=>as,Mq:()=>jn,S8:()=>_e,Uu:()=>pt,_H:()=>xt,hl:()=>_i,nW:()=>hi});var e=i(4300),n=i(69594),o=i(68484),a=i(96814),l=i(65879),u=i(32296),d=i(16672),s=i(23680),A=i(78645),_=i(47394),C=i(63019),R=i(22096),x=i(36028),f=i(49388),k=i(62831),w=i(48180),g=i(27921),M=i(32181),p=i(42495),E=i(86825),b=i(56223),I=i(64170),L=i(24516);const D=["mat-calendar-body",""];function F(ji,Fo){if(1&ji&&(l.TgZ(0,"tr",3)(1,"td",4),l._uU(2),l.qZA()()),2&ji){const rt=l.oxw();l.xp6(1),l.Udp("padding-top",rt._cellPadding)("padding-bottom",rt._cellPadding),l.uIk("colspan",rt.numCols),l.xp6(1),l.hij(" ",rt.label," ")}}function P(ji,Fo){if(1&ji&&(l.TgZ(0,"td",4),l._uU(1),l.qZA()),2&ji){const rt=l.oxw(2);l.Udp("padding-top",rt._cellPadding)("padding-bottom",rt._cellPadding),l.uIk("colspan",rt._firstRowOffset),l.xp6(1),l.hij(" ",rt._firstRowOffset>=rt.labelMinRequiredCells?rt.label:""," ")}}function O(ji,Fo){if(1&ji){const rt=l.EpF();l.TgZ(0,"td",8)(1,"button",9),l.NdJ("click",function(Gn){const wr=l.CHM(rt).$implicit,bs=l.oxw(2);return l.KtG(bs._cellClicked(wr,Gn))})("focus",function(Gn){const wr=l.CHM(rt).$implicit,bs=l.oxw(2);return l.KtG(bs._emitActiveDateChange(wr,Gn))}),l.TgZ(2,"span",10),l._uU(3),l.qZA(),l._UZ(4,"span",11),l.qZA()()}if(2&ji){const rt=Fo.$implicit,ai=Fo.index,Gn=l.oxw().index,Io=l.oxw();l.Udp("width",Io._cellWidth)("padding-top",Io._cellPadding)("padding-bottom",Io._cellPadding),l.uIk("data-mat-row",Gn)("data-mat-col",ai),l.xp6(1),l.ekj("mat-calendar-body-disabled",!rt.enabled)("mat-calendar-body-active",Io._isActiveCell(Gn,ai))("mat-calendar-body-range-start",Io._isRangeStart(rt.compareValue))("mat-calendar-body-range-end",Io._isRangeEnd(rt.compareValue))("mat-calendar-body-in-range",Io._isInRange(rt.compareValue))("mat-calendar-body-comparison-bridge-start",Io._isComparisonBridgeStart(rt.compareValue,Gn,ai))("mat-calendar-body-comparison-bridge-end",Io._isComparisonBridgeEnd(rt.compareValue,Gn,ai))("mat-calendar-body-comparison-start",Io._isComparisonStart(rt.compareValue))("mat-calendar-body-comparison-end",Io._isComparisonEnd(rt.compareValue))("mat-calendar-body-in-comparison-range",Io._isInComparisonRange(rt.compareValue))("mat-calendar-body-preview-start",Io._isPreviewStart(rt.compareValue))("mat-calendar-body-preview-end",Io._isPreviewEnd(rt.compareValue))("mat-calendar-body-in-preview",Io._isInPreview(rt.compareValue)),l.Q6J("ngClass",rt.cssClasses)("tabindex",Io._isActiveCell(Gn,ai)?0:-1),l.uIk("aria-label",rt.ariaLabel)("aria-disabled",!rt.enabled||null)("aria-pressed",Io._isSelected(rt.compareValue))("aria-current",Io.todayValue===rt.compareValue?"date":null)("aria-describedby",Io._getDescribedby(rt.compareValue)),l.xp6(1),l.ekj("mat-calendar-body-selected",Io._isSelected(rt.compareValue))("mat-calendar-body-comparison-identical",Io._isComparisonIdentical(rt.compareValue))("mat-calendar-body-today",Io.todayValue===rt.compareValue),l.xp6(1),l.hij(" ",rt.displayValue," ")}}function U(ji,Fo){if(1&ji&&(l.TgZ(0,"tr",5),l.YNc(1,P,2,6,"td",6),l.YNc(2,O,5,48,"td",7),l.qZA()),2&ji){const rt=Fo.$implicit,ai=Fo.index,Gn=l.oxw();l.xp6(1),l.Q6J("ngIf",0===ai&&Gn._firstRowOffset),l.xp6(1),l.Q6J("ngForOf",rt)}}function V(ji,Fo){if(1&ji&&(l.TgZ(0,"th",5)(1,"span",6),l._uU(2),l.qZA(),l.TgZ(3,"span",7),l._uU(4),l.qZA()()),2&ji){const rt=Fo.$implicit;l.xp6(2),l.Oqu(rt.long),l.xp6(2),l.Oqu(rt.narrow)}}const K=["*"];function X(ji,Fo){}function me(ji,Fo){if(1&ji){const rt=l.EpF();l.TgZ(0,"mat-month-view",5),l.NdJ("activeDateChange",function(Gn){l.CHM(rt);const Io=l.oxw();return l.KtG(Io.activeDate=Gn)})("_userSelection",function(Gn){l.CHM(rt);const Io=l.oxw();return l.KtG(Io._dateSelected(Gn))})("dragStarted",function(Gn){l.CHM(rt);const Io=l.oxw();return l.KtG(Io._dragStarted(Gn))})("dragEnded",function(Gn){l.CHM(rt);const Io=l.oxw();return l.KtG(Io._dragEnded(Gn))}),l.qZA()}if(2&ji){const rt=l.oxw();l.Q6J("activeDate",rt.activeDate)("selected",rt.selected)("dateFilter",rt.dateFilter)("maxDate",rt.maxDate)("minDate",rt.minDate)("dateClass",rt.dateClass)("comparisonStart",rt.comparisonStart)("comparisonEnd",rt.comparisonEnd)("startDateAccessibleName",rt.startDateAccessibleName)("endDateAccessibleName",rt.endDateAccessibleName)("activeDrag",rt._activeDrag)}}function J(ji,Fo){if(1&ji){const rt=l.EpF();l.TgZ(0,"mat-year-view",6),l.NdJ("activeDateChange",function(Gn){l.CHM(rt);const Io=l.oxw();return l.KtG(Io.activeDate=Gn)})("monthSelected",function(Gn){l.CHM(rt);const Io=l.oxw();return l.KtG(Io._monthSelectedInYearView(Gn))})("selectedChange",function(Gn){l.CHM(rt);const Io=l.oxw();return l.KtG(Io._goToDateInView(Gn,"month"))}),l.qZA()}if(2&ji){const rt=l.oxw();l.Q6J("activeDate",rt.activeDate)("selected",rt.selected)("dateFilter",rt.dateFilter)("maxDate",rt.maxDate)("minDate",rt.minDate)("dateClass",rt.dateClass)}}function Q(ji,Fo){if(1&ji){const rt=l.EpF();l.TgZ(0,"mat-multi-year-view",7),l.NdJ("activeDateChange",function(Gn){l.CHM(rt);const Io=l.oxw();return l.KtG(Io.activeDate=Gn)})("yearSelected",function(Gn){l.CHM(rt);const Io=l.oxw();return l.KtG(Io._yearSelectedInMultiYearView(Gn))})("selectedChange",function(Gn){l.CHM(rt);const Io=l.oxw();return l.KtG(Io._goToDateInView(Gn,"year"))}),l.qZA()}if(2&ji){const rt=l.oxw();l.Q6J("activeDate",rt.activeDate)("selected",rt.selected)("dateFilter",rt.dateFilter)("maxDate",rt.maxDate)("minDate",rt.minDate)("dateClass",rt.dateClass)}}function re(ji,Fo){}const de=["button"];function te(ji,Fo){1&ji&&(l.O4$(),l.TgZ(0,"svg",3),l._UZ(1,"path",4),l.qZA())}const j=[[["","matDatepickerToggleIcon",""]]],H=["[matDatepickerToggleIcon]"];let _e=(()=>{class ji{constructor(){this.changes=new A.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(rt,ai){return`${rt} \u2013 ${ai}`}formatYearRangeLabel(rt,ai){return`${rt} to ${ai}`}static#e=this.\u0275fac=function(ai){return new(ai||ji)};static#t=this.\u0275prov=l.Yz7({token:ji,factory:ji.\u0275fac,providedIn:"root"})}return ji})();class ge{constructor(Fo,rt,ai,Gn,Io={},wr=Fo,bs){this.value=Fo,this.displayValue=rt,this.ariaLabel=ai,this.enabled=Gn,this.cssClasses=Io,this.compareValue=wr,this.rawValue=bs}}let Ce=1;const Te=(0,k.i$)({passive:!1,capture:!0}),De=(0,k.i$)({passive:!0,capture:!0}),fe=(0,k.i$)({passive:!0});let xe=(()=>{class ji{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(rt,ai){this._elementRef=rt,this._ngZone=ai,this._platform=(0,l.f3M)(k.t4),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new l.vpe,this.previewChange=new l.vpe,this.activeDateChange=new l.vpe,this.dragStarted=new l.vpe,this.dragEnded=new l.vpe,this._didDragSinceMouseDown=!1,this._enterHandler=Gn=>{if(this._skipNextFocus&&"focus"===Gn.type)this._skipNextFocus=!1;else if(Gn.target&&this.isRange){const Io=this._getCellFromElement(Gn.target);Io&&this._ngZone.run(()=>this.previewChange.emit({value:Io.enabled?Io:null,event:Gn}))}},this._touchmoveHandler=Gn=>{if(!this.isRange)return;const Io=$n(Gn),wr=Io?this._getCellFromElement(Io):null;Io!==Gn.target&&(this._didDragSinceMouseDown=!0),Le(Gn.target)&&Gn.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:wr?.enabled?wr:null,event:Gn}))},this._leaveHandler=Gn=>{null!==this.previewEnd&&this.isRange&&("blur"!==Gn.type&&(this._didDragSinceMouseDown=!0),Gn.target&&this._getCellFromElement(Gn.target)&&(!Gn.relatedTarget||!this._getCellFromElement(Gn.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Gn})))},this._mousedownHandler=Gn=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const Io=Gn.target&&this._getCellFromElement(Gn.target);!Io||!this._isInRange(Io.rawValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:Io.rawValue,event:Gn})})},this._mouseupHandler=Gn=>{if(!this.isRange)return;const Io=Le(Gn.target);Io?Io.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const wr=this._getCellFromElement(Io);this.dragEnded.emit({value:wr?.rawValue??null,event:Gn})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:Gn})})},this._touchendHandler=Gn=>{const Io=$n(Gn);Io&&this._mouseupHandler({target:Io})},this._id="mat-calendar-body-"+Ce++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,ai.runOutsideAngular(()=>{const Gn=rt.nativeElement;Gn.addEventListener("touchmove",this._touchmoveHandler,Te),Gn.addEventListener("mouseenter",this._enterHandler,De),Gn.addEventListener("focus",this._enterHandler,De),Gn.addEventListener("mouseleave",this._leaveHandler,De),Gn.addEventListener("blur",this._leaveHandler,De),Gn.addEventListener("mousedown",this._mousedownHandler,fe),Gn.addEventListener("touchstart",this._mousedownHandler,fe),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(rt,ai){this._didDragSinceMouseDown||rt.enabled&&this.selectedValueChange.emit({value:rt.value,event:ai})}_emitActiveDateChange(rt,ai){rt.enabled&&this.activeDateChange.emit({value:rt.value,event:ai})}_isSelected(rt){return this.startValue===rt||this.endValue===rt}ngOnChanges(rt){const ai=rt.numCols,{rows:Gn,numCols:Io}=this;(rt.rows||ai)&&(this._firstRowOffset=Gn&&Gn.length&&Gn[0].length?Io-Gn[0].length:0),(rt.cellAspectRatio||ai||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Io+"%"),(ai||!this._cellWidth)&&(this._cellWidth=100/Io+"%")}ngOnDestroy(){const rt=this._elementRef.nativeElement;rt.removeEventListener("touchmove",this._touchmoveHandler,Te),rt.removeEventListener("mouseenter",this._enterHandler,De),rt.removeEventListener("focus",this._enterHandler,De),rt.removeEventListener("mouseleave",this._leaveHandler,De),rt.removeEventListener("blur",this._leaveHandler,De),rt.removeEventListener("mousedown",this._mousedownHandler,fe),rt.removeEventListener("touchstart",this._mousedownHandler,fe),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(rt,ai){let Gn=rt*this.numCols+ai;return rt&&(Gn-=this._firstRowOffset),Gn==this.activeCell}_focusActiveCell(rt=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,w.q)(1)).subscribe(()=>{setTimeout(()=>{const ai=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");ai&&(rt||(this._skipNextFocus=!0),ai.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(rt){return Gt(rt,this.startValue,this.endValue)}_isRangeEnd(rt){return Ut(rt,this.startValue,this.endValue)}_isInRange(rt){return An(rt,this.startValue,this.endValue,this.isRange)}_isComparisonStart(rt){return Gt(rt,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(rt,ai,Gn){if(!this._isComparisonStart(rt)||this._isRangeStart(rt)||!this._isInRange(rt))return!1;let Io=this.rows[ai][Gn-1];if(!Io){const wr=this.rows[ai-1];Io=wr&&wr[wr.length-1]}return Io&&!this._isRangeEnd(Io.compareValue)}_isComparisonBridgeEnd(rt,ai,Gn){if(!this._isComparisonEnd(rt)||this._isRangeEnd(rt)||!this._isInRange(rt))return!1;let Io=this.rows[ai][Gn+1];if(!Io){const wr=this.rows[ai+1];Io=wr&&wr[0]}return Io&&!this._isRangeStart(Io.compareValue)}_isComparisonEnd(rt){return Ut(rt,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(rt){return An(rt,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(rt){return this.comparisonStart===this.comparisonEnd&&rt===this.comparisonStart}_isPreviewStart(rt){return Gt(rt,this.previewStart,this.previewEnd)}_isPreviewEnd(rt){return Ut(rt,this.previewStart,this.previewEnd)}_isInPreview(rt){return An(rt,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(rt){return this.isRange?this.startValue===rt&&this.endValue===rt?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===rt?this._startDateLabelId:this.endValue===rt?this._endDateLabelId:null:null}_getCellFromElement(rt){const ai=Le(rt);if(ai){const Gn=ai.getAttribute("data-mat-row"),Io=ai.getAttribute("data-mat-col");if(Gn&&Io)return this.rows[parseInt(Gn)][parseInt(Io)]}return null}static#e=this.\u0275fac=function(ai){return new(ai||ji)(l.Y36(l.SBq),l.Y36(l.R0b))};static#t=this.\u0275cmp=l.Xpm({type:ji,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[l.TTD],attrs:D,decls:6,vars:6,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],[1,"mat-calendar-body-hidden-label",3,"id"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(ai,Gn){1&ai&&(l.YNc(0,F,3,6,"tr",0),l.YNc(1,U,3,2,"tr",1),l.TgZ(2,"label",2),l._uU(3),l.qZA(),l.TgZ(4,"label",2),l._uU(5),l.qZA()),2&ai&&(l.Q6J("ngIf",Gn._firstRowOffset<Gn.labelMinRequiredCells),l.xp6(1),l.Q6J("ngForOf",Gn.rows),l.xp6(1),l.Q6J("id",Gn._startDateLabelId),l.xp6(1),l.hij(" ",Gn.startDateAccessibleName,"\n"),l.xp6(1),l.Q6J("id",Gn._endDateLabelId),l.xp6(1),l.hij(" ",Gn.endDateAccessibleName,"\n"))},dependencies:[a.mk,a.sg,a.O5],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}'],encapsulation:2,changeDetection:0})}return ji})();function Oe(ji){return"TD"===ji?.nodeName}function Le(ji){let Fo;return Oe(ji)?Fo=ji:Oe(ji.parentNode)?Fo=ji.parentNode:Oe(ji.parentNode?.parentNode)&&(Fo=ji.parentNode.parentNode),null!=Fo?.getAttribute("data-mat-row")?Fo:null}function Gt(ji,Fo,rt){return null!==rt&&Fo!==rt&&ji<rt&&ji===Fo}function Ut(ji,Fo,rt){return null!==Fo&&Fo!==rt&&ji>=Fo&&ji===rt}function An(ji,Fo,rt,ai){return ai&&null!==Fo&&null!==rt&&Fo!==rt&&ji>=Fo&&ji<=rt}function $n(ji){const Fo=ji.changedTouches[0];return document.elementFromPoint(Fo.clientX,Fo.clientY)}class xn{constructor(Fo,rt){this.start=Fo,this.end=rt}}let mt=(()=>{class ji{constructor(rt,ai){this.selection=rt,this._adapter=ai,this._selectionChanged=new A.x,this.selectionChanged=this._selectionChanged,this.selection=rt}updateSelection(rt,ai){const Gn=this.selection;this.selection=rt,this._selectionChanged.next({selection:rt,source:ai,oldValue:Gn})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(rt){return this._adapter.isDateInstance(rt)&&this._adapter.isValid(rt)}static#e=this.\u0275fac=function(ai){l.$Z()};static#t=this.\u0275prov=l.Yz7({token:ji,factory:ji.\u0275fac})}return ji})(),ut=(()=>{class ji extends mt{constructor(rt){super(null,rt)}add(rt){super.updateSelection(rt,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const rt=new ji(this._adapter);return rt.updateSelection(this.selection,this),rt}static#e=this.\u0275fac=function(ai){return new(ai||ji)(l.LFG(s._A))};static#t=this.\u0275prov=l.Yz7({token:ji,factory:ji.\u0275fac})}return ji})();const sn={provide:mt,deps:[[new l.FiY,new l.tp0,mt],s._A],useFactory:function dn(ji,Fo){return ji||new ut(Fo)}},nn=new l.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let xo=(()=>{class ji{get activeDate(){return this._activeDate}set activeDate(rt){const ai=this._activeDate,Gn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(rt))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Gn,this.minDate,this.maxDate),this._hasSameMonthAndYear(ai,this._activeDate)||this._init()}get selected(){return this._selected}set selected(rt){this._selected=rt instanceof xn?rt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(rt)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(rt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(rt))}get maxDate(){return this._maxDate}set maxDate(rt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(rt))}constructor(rt,ai,Gn,Io,wr){this._changeDetectorRef=rt,this._dateFormats=ai,this._dateAdapter=Gn,this._dir=Io,this._rangeStrategy=wr,this._rerenderSubscription=_.w0.EMPTY,this.activeDrag=null,this.selectedChange=new l.vpe,this._userSelection=new l.vpe,this.dragStarted=new l.vpe,this.dragEnded=new l.vpe,this.activeDateChange=new l.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,g.O)(null)).subscribe(()=>this._init())}ngOnChanges(rt){const ai=rt.comparisonStart||rt.comparisonEnd;ai&&!ai.firstChange&&this._setRanges(this.selected),rt.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(rt){const ai=rt.value,Gn=this._getDateFromDayOfMonth(ai);let Io,wr;this._selected instanceof xn?(Io=this._getDateInCurrentMonth(this._selected.start),wr=this._getDateInCurrentMonth(this._selected.end)):Io=wr=this._getDateInCurrentMonth(this._selected),(Io!==ai||wr!==ai)&&this.selectedChange.emit(Gn),this._userSelection.emit({value:Gn,event:rt.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(rt){const Gn=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(rt.value),this._dateAdapter.compareDate(Gn,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(rt){const ai=this._activeDate,Gn=this._isRtl();switch(rt.keyCode){case x.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Gn?1:-1);break;case x.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Gn?-1:1);break;case x.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case x.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case x.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case x.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case x.Ku:this.activeDate=rt.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case x.VM:this.activeDate=rt.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case x.K5:case x.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&rt.preventDefault());case x.hY:return void(null!=this._previewEnd&&!(0,x.Vb)(rt)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:rt}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:rt})),rt.preventDefault(),rt.stopPropagation()));default:return}this._dateAdapter.compareDate(ai,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),rt.preventDefault()}_handleCalendarBodyKeyup(rt){(rt.keyCode===x.L_||rt.keyCode===x.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:rt}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let rt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(rt)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(rt){this._matCalendarBody._focusActiveCell(rt)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:rt,value:ai}){if(this._rangeStrategy){const Gn=ai?ai.rawValue:null,Io=this._rangeStrategy.createPreview(Gn,this.selected,rt);if(this._previewStart=this._getCellCompareValue(Io.start),this._previewEnd=this._getCellCompareValue(Io.end),this.activeDrag&&Gn){const wr=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,Gn,rt);wr&&(this._previewStart=this._getCellCompareValue(wr.start),this._previewEnd=this._getCellCompareValue(wr.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(rt){if(this.activeDrag)if(rt.value){const ai=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,rt.value,rt.event);this.dragEnded.emit({value:ai??null,event:rt.event})}else this.dragEnded.emit({value:null,event:rt.event})}_getDateFromDayOfMonth(rt){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),rt)}_initWeekdays(){const rt=this._dateAdapter.getFirstDayOfWeek(),ai=this._dateAdapter.getDayOfWeekNames("narrow");let Io=this._dateAdapter.getDayOfWeekNames("long").map((wr,bs)=>({long:wr,narrow:ai[bs]}));this._weekdays=Io.slice(rt).concat(Io.slice(0,rt))}_createWeekCells(){const rt=this._dateAdapter.getNumDaysInMonth(this.activeDate),ai=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Gn=0,Io=this._firstWeekOffset;Gn<rt;Gn++,Io++){7==Io&&(this._weeks.push([]),Io=0);const wr=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),Gn+1),bs=this._shouldEnableDate(wr),ba=this._dateAdapter.format(wr,this._dateFormats.display.dateA11yLabel),ms=this.dateClass?this.dateClass(wr,"month"):void 0;this._weeks[this._weeks.length-1].push(new ge(Gn+1,ai[Gn],ba,bs,ms,this._getCellCompareValue(wr),wr))}}_shouldEnableDate(rt){return!!rt&&(!this.minDate||this._dateAdapter.compareDate(rt,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(rt,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(rt))}_getDateInCurrentMonth(rt){return rt&&this._hasSameMonthAndYear(rt,this.activeDate)?this._dateAdapter.getDate(rt):null}_hasSameMonthAndYear(rt,ai){return!(!rt||!ai||this._dateAdapter.getMonth(rt)!=this._dateAdapter.getMonth(ai)||this._dateAdapter.getYear(rt)!=this._dateAdapter.getYear(ai))}_getCellCompareValue(rt){if(rt){const ai=this._dateAdapter.getYear(rt),Gn=this._dateAdapter.getMonth(rt),Io=this._dateAdapter.getDate(rt);return new Date(ai,Gn,Io).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(rt){rt instanceof xn?(this._rangeStart=this._getCellCompareValue(rt.start),this._rangeEnd=this._getCellCompareValue(rt.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(rt),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(rt){return!this.dateFilter||this.dateFilter(rt)}_clearPreview(){this._previewStart=this._previewEnd=null}static#e=this.\u0275fac=function(ai){return new(ai||ji)(l.Y36(l.sBO),l.Y36(s.sG,8),l.Y36(s._A,8),l.Y36(f.Is,8),l.Y36(nn,8))};static#t=this.\u0275cmp=l.Xpm({type:ji,selectors:[["mat-month-view"]],viewQuery:function(ai,Gn){if(1&ai&&l.Gf(xe,5),2&ai){let Io;l.iGM(Io=l.CRH())&&(Gn._matCalendarBody=Io.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[l.TTD],decls:7,vars:15,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(ai,Gn){1&ai&&(l.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),l.YNc(3,V,5,2,"th",2),l.qZA(),l.TgZ(4,"tr"),l._UZ(5,"th",3),l.qZA()(),l.TgZ(6,"tbody",4),l.NdJ("selectedValueChange",function(wr){return Gn._dateSelected(wr)})("activeDateChange",function(wr){return Gn._updateActiveDate(wr)})("previewChange",function(wr){return Gn._previewChanged(wr)})("dragStarted",function(wr){return Gn.dragStarted.emit(wr)})("dragEnded",function(wr){return Gn._dragEnded(wr)})("keyup",function(wr){return Gn._handleCalendarBodyKeyup(wr)})("keydown",function(wr){return Gn._handleCalendarBodyKeydown(wr)}),l.qZA()()),2&ai&&(l.xp6(3),l.Q6J("ngForOf",Gn._weekdays),l.xp6(3),l.Q6J("label",Gn._monthLabel)("rows",Gn._weeks)("todayValue",Gn._todayDate)("startValue",Gn._rangeStart)("endValue",Gn._rangeEnd)("comparisonStart",Gn._comparisonRangeStart)("comparisonEnd",Gn._comparisonRangeEnd)("previewStart",Gn._previewStart)("previewEnd",Gn._previewEnd)("isRange",Gn._isRange)("labelMinRequiredCells",3)("activeCell",Gn._dateAdapter.getDate(Gn.activeDate)-1)("startDateAccessibleName",Gn.startDateAccessibleName)("endDateAccessibleName",Gn.endDateAccessibleName))},dependencies:[a.sg,xe],encapsulation:2,changeDetection:0})}return ji})();const Bn=24;let Ji=(()=>{class ji{get activeDate(){return this._activeDate}set activeDate(rt){let ai=this._activeDate;const Gn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(rt))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Gn,this.minDate,this.maxDate),En(this._dateAdapter,ai,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(rt){this._selected=rt instanceof xn?rt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(rt)),this._setSelectedYear(rt)}get minDate(){return this._minDate}set minDate(rt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(rt))}get maxDate(){return this._maxDate}set maxDate(rt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(rt))}constructor(rt,ai,Gn){this._changeDetectorRef=rt,this._dateAdapter=ai,this._dir=Gn,this._rerenderSubscription=_.w0.EMPTY,this.selectedChange=new l.vpe,this.yearSelected=new l.vpe,this.activeDateChange=new l.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,g.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const ai=this._dateAdapter.getYear(this._activeDate)-un(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Gn=0,Io=[];Gn<Bn;Gn++)Io.push(ai+Gn),4==Io.length&&(this._years.push(Io.map(wr=>this._createCellForYear(wr))),Io=[]);this._changeDetectorRef.markForCheck()}_yearSelected(rt){const ai=rt.value,Gn=this._dateAdapter.createDate(ai,0,1),Io=this._getDateFromYear(ai);this.yearSelected.emit(Gn),this.selectedChange.emit(Io)}_updateActiveDate(rt){const Gn=this._activeDate;this.activeDate=this._getDateFromYear(rt.value),this._dateAdapter.compareDate(Gn,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(rt){const ai=this._activeDate,Gn=this._isRtl();switch(rt.keyCode){case x.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Gn?1:-1);break;case x.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Gn?-1:1);break;case x.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case x.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case x.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-un(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case x.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Bn-un(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case x.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,rt.altKey?10*-Bn:-Bn);break;case x.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,rt.altKey?10*Bn:Bn);break;case x.K5:case x.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(ai,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),rt.preventDefault()}_handleCalendarBodyKeyup(rt){(rt.keyCode===x.L_||rt.keyCode===x.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:rt}),this._selectionKeyPressed=!1)}_getActiveCell(){return un(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(rt){const ai=this._dateAdapter.getMonth(this.activeDate),Gn=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(rt,ai,1));return this._dateAdapter.createDate(rt,ai,Math.min(this._dateAdapter.getDate(this.activeDate),Gn))}_createCellForYear(rt){const ai=this._dateAdapter.createDate(rt,0,1),Gn=this._dateAdapter.getYearName(ai),Io=this.dateClass?this.dateClass(ai,"multi-year"):void 0;return new ge(rt,Gn,Gn,this._shouldEnableYear(rt),Io)}_shouldEnableYear(rt){if(null==rt||this.maxDate&&rt>this._dateAdapter.getYear(this.maxDate)||this.minDate&&rt<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let Gn=this._dateAdapter.createDate(rt,0,1);this._dateAdapter.getYear(Gn)==rt;Gn=this._dateAdapter.addCalendarDays(Gn,1))if(this.dateFilter(Gn))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(rt){if(this._selectedYear=null,rt instanceof xn){const ai=rt.start||rt.end;ai&&(this._selectedYear=this._dateAdapter.getYear(ai))}else rt&&(this._selectedYear=this._dateAdapter.getYear(rt))}static#e=this.\u0275fac=function(ai){return new(ai||ji)(l.Y36(l.sBO),l.Y36(s._A,8),l.Y36(f.Is,8))};static#t=this.\u0275cmp=l.Xpm({type:ji,selectors:[["mat-multi-year-view"]],viewQuery:function(ai,Gn){if(1&ai&&l.Gf(xe,5),2&ai){let Io;l.iGM(Io=l.CRH())&&(Gn._matCalendarBody=Io.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(ai,Gn){1&ai&&(l.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),l._UZ(3,"th",2),l.qZA()(),l.TgZ(4,"tbody",3),l.NdJ("selectedValueChange",function(wr){return Gn._yearSelected(wr)})("activeDateChange",function(wr){return Gn._updateActiveDate(wr)})("keyup",function(wr){return Gn._handleCalendarBodyKeyup(wr)})("keydown",function(wr){return Gn._handleCalendarBodyKeydown(wr)}),l.qZA()()),2&ai&&(l.xp6(4),l.Q6J("rows",Gn._years)("todayValue",Gn._todayYear)("startValue",Gn._selectedYear)("endValue",Gn._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",Gn._getActiveCell()))},dependencies:[xe],encapsulation:2,changeDetection:0})}return ji})();function En(ji,Fo,rt,ai,Gn){const Io=ji.getYear(Fo),wr=ji.getYear(rt),bs=Ki(ji,ai,Gn);return Math.floor((Io-bs)/Bn)===Math.floor((wr-bs)/Bn)}function un(ji,Fo,rt,ai){return function Fn(ji,Fo){return(ji%Fo+Fo)%Fo}(ji.getYear(Fo)-Ki(ji,rt,ai),Bn)}function Ki(ji,Fo,rt){let ai=0;return rt?ai=ji.getYear(rt)-Bn+1:Fo&&(ai=ji.getYear(Fo)),ai}let oi=(()=>{class ji{get activeDate(){return this._activeDate}set activeDate(rt){let ai=this._activeDate;const Gn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(rt))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Gn,this.minDate,this.maxDate),this._dateAdapter.getYear(ai)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(rt){this._selected=rt instanceof xn?rt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(rt)),this._setSelectedMonth(rt)}get minDate(){return this._minDate}set minDate(rt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(rt))}get maxDate(){return this._maxDate}set maxDate(rt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(rt))}constructor(rt,ai,Gn,Io){this._changeDetectorRef=rt,this._dateFormats=ai,this._dateAdapter=Gn,this._dir=Io,this._rerenderSubscription=_.w0.EMPTY,this.selectedChange=new l.vpe,this.monthSelected=new l.vpe,this.activeDateChange=new l.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,g.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(rt){const ai=rt.value,Gn=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),ai,1);this.monthSelected.emit(Gn);const Io=this._getDateFromMonth(ai);this.selectedChange.emit(Io)}_updateActiveDate(rt){const Gn=this._activeDate;this.activeDate=this._getDateFromMonth(rt.value),this._dateAdapter.compareDate(Gn,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(rt){const ai=this._activeDate,Gn=this._isRtl();switch(rt.keyCode){case x.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Gn?1:-1);break;case x.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Gn?-1:1);break;case x.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case x.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case x.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case x.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case x.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,rt.altKey?-10:-1);break;case x.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,rt.altKey?10:1);break;case x.K5:case x.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(ai,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),rt.preventDefault()}_handleCalendarBodyKeyup(rt){(rt.keyCode===x.L_||rt.keyCode===x.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:rt}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let rt=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(ai=>ai.map(Gn=>this._createCellForMonth(Gn,rt[Gn]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(rt){return rt&&this._dateAdapter.getYear(rt)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(rt):null}_getDateFromMonth(rt){const ai=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),rt,1),Gn=this._dateAdapter.getNumDaysInMonth(ai);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),rt,Math.min(this._dateAdapter.getDate(this.activeDate),Gn))}_createCellForMonth(rt,ai){const Gn=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),rt,1),Io=this._dateAdapter.format(Gn,this._dateFormats.display.monthYearA11yLabel),wr=this.dateClass?this.dateClass(Gn,"year"):void 0;return new ge(rt,ai.toLocaleUpperCase(),Io,this._shouldEnableMonth(rt),wr)}_shouldEnableMonth(rt){const ai=this._dateAdapter.getYear(this.activeDate);if(null==rt||this._isYearAndMonthAfterMaxDate(ai,rt)||this._isYearAndMonthBeforeMinDate(ai,rt))return!1;if(!this.dateFilter)return!0;for(let Io=this._dateAdapter.createDate(ai,rt,1);this._dateAdapter.getMonth(Io)==rt;Io=this._dateAdapter.addCalendarDays(Io,1))if(this.dateFilter(Io))return!0;return!1}_isYearAndMonthAfterMaxDate(rt,ai){if(this.maxDate){const Gn=this._dateAdapter.getYear(this.maxDate),Io=this._dateAdapter.getMonth(this.maxDate);return rt>Gn||rt===Gn&&ai>Io}return!1}_isYearAndMonthBeforeMinDate(rt,ai){if(this.minDate){const Gn=this._dateAdapter.getYear(this.minDate),Io=this._dateAdapter.getMonth(this.minDate);return rt<Gn||rt===Gn&&ai<Io}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(rt){this._selectedMonth=rt instanceof xn?this._getMonthInCurrentYear(rt.start)||this._getMonthInCurrentYear(rt.end):this._getMonthInCurrentYear(rt)}static#e=this.\u0275fac=function(ai){return new(ai||ji)(l.Y36(l.sBO),l.Y36(s.sG,8),l.Y36(s._A,8),l.Y36(f.Is,8))};static#t=this.\u0275cmp=l.Xpm({type:ji,selectors:[["mat-year-view"]],viewQuery:function(ai,Gn){if(1&ai&&l.Gf(xe,5),2&ai){let Io;l.iGM(Io=l.CRH())&&(Gn._matCalendarBody=Io.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(ai,Gn){1&ai&&(l.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),l._UZ(3,"th",2),l.qZA()(),l.TgZ(4,"tbody",3),l.NdJ("selectedValueChange",function(wr){return Gn._monthSelected(wr)})("activeDateChange",function(wr){return Gn._updateActiveDate(wr)})("keyup",function(wr){return Gn._handleCalendarBodyKeyup(wr)})("keydown",function(wr){return Gn._handleCalendarBodyKeydown(wr)}),l.qZA()()),2&ai&&(l.xp6(4),l.Q6J("label",Gn._yearLabel)("rows",Gn._months)("todayValue",Gn._todayMonth)("startValue",Gn._selectedMonth)("endValue",Gn._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",Gn._dateAdapter.getMonth(Gn.activeDate)))},dependencies:[xe],encapsulation:2,changeDetection:0})}return ji})(),It=1,Bt=(()=>{class ji{constructor(rt,ai,Gn,Io,wr){this._intl=rt,this.calendar=ai,this._dateAdapter=Gn,this._dateFormats=Io,this._id="mat-calendar-header-"+It++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>wr.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-Bn)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:Bn)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(rt,ai){return"month"==this.calendar.currentView?this._dateAdapter.getYear(rt)==this._dateAdapter.getYear(ai)&&this._dateAdapter.getMonth(rt)==this._dateAdapter.getMonth(ai):"year"==this.calendar.currentView?this._dateAdapter.getYear(rt)==this._dateAdapter.getYear(ai):En(this._dateAdapter,rt,ai,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const ai=this._dateAdapter.getYear(this.calendar.activeDate)-un(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Gn=ai+Bn-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(ai,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(Gn,0,1))]}static#e=this.\u0275fac=function(ai){return new(ai||ji)(l.Y36(_e),l.Y36((0,l.Gpc)(()=>xt)),l.Y36(s._A,8),l.Y36(s.sG,8),l.Y36(l.sBO))};static#t=this.\u0275cmp=l.Xpm({type:ji,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:K,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(ai,Gn){1&ai&&(l.F$t(),l.TgZ(0,"div",0)(1,"div",1)(2,"button",2),l.NdJ("click",function(){return Gn.currentPeriodClicked()}),l.TgZ(3,"span",3),l._uU(4),l.qZA(),l.O4$(),l.TgZ(5,"svg",4),l._UZ(6,"polygon",5),l.qZA()(),l.kcU(),l._UZ(7,"div",6),l.Hsn(8),l.TgZ(9,"button",7),l.NdJ("click",function(){return Gn.previousClicked()}),l.qZA(),l.TgZ(10,"button",8),l.NdJ("click",function(){return Gn.nextClicked()}),l.qZA()()(),l.TgZ(11,"label",9),l._uU(12),l.qZA()),2&ai&&(l.xp6(2),l.uIk("aria-label",Gn.periodButtonLabel)("aria-describedby",Gn._periodButtonLabelId),l.xp6(2),l.Oqu(Gn.periodButtonText),l.xp6(1),l.ekj("mat-calendar-invert","month"!==Gn.calendar.currentView),l.xp6(4),l.Q6J("disabled",!Gn.previousEnabled()),l.uIk("aria-label",Gn.prevButtonLabel),l.xp6(1),l.Q6J("disabled",!Gn.nextEnabled()),l.uIk("aria-label",Gn.nextButtonLabel),l.xp6(1),l.Q6J("id",Gn._periodButtonLabelId),l.xp6(1),l.Oqu(Gn.periodButtonDescription))},dependencies:[u.lW,u.RK],encapsulation:2,changeDetection:0})}return ji})(),xt=(()=>{class ji{get startAt(){return this._startAt}set startAt(rt){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(rt))}get selected(){return this._selected}set selected(rt){this._selected=rt instanceof xn?rt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(rt))}get minDate(){return this._minDate}set minDate(rt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(rt))}get maxDate(){return this._maxDate}set maxDate(rt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(rt))}get activeDate(){return this._clampedActiveDate}set activeDate(rt){this._clampedActiveDate=this._dateAdapter.clampDate(rt,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(rt){const ai=this._currentView!==rt?rt:null;this._currentView=rt,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),ai&&this.viewChanged.emit(ai)}constructor(rt,ai,Gn,Io){this._dateAdapter=ai,this._dateFormats=Gn,this._changeDetectorRef=Io,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new l.vpe,this.yearSelected=new l.vpe,this.monthSelected=new l.vpe,this.viewChanged=new l.vpe(!0),this._userSelection=new l.vpe,this._userDragDrop=new l.vpe,this._activeDrag=null,this.stateChanges=new A.x,this._intlChanges=rt.changes.subscribe(()=>{Io.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new o.C5(this.headerComponent||Bt),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(rt){const ai=rt.minDate&&!this._dateAdapter.sameDate(rt.minDate.previousValue,rt.minDate.currentValue)?rt.minDate:void 0,Gn=rt.maxDate&&!this._dateAdapter.sameDate(rt.maxDate.previousValue,rt.maxDate.currentValue)?rt.maxDate:void 0,Io=ai||Gn||rt.dateFilter;if(Io&&!Io.firstChange){const wr=this._getCurrentViewComponent();wr&&(this._changeDetectorRef.detectChanges(),wr._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(rt){const ai=rt.value;(this.selected instanceof xn||ai&&!this._dateAdapter.sameDate(ai,this.selected))&&this.selectedChange.emit(ai),this._userSelection.emit(rt)}_yearSelectedInMultiYearView(rt){this.yearSelected.emit(rt)}_monthSelectedInYearView(rt){this.monthSelected.emit(rt)}_goToDateInView(rt,ai){this.activeDate=rt,this.currentView=ai}_dragStarted(rt){this._activeDrag=rt}_dragEnded(rt){this._activeDrag&&(rt.value&&this._userDragDrop.emit(rt),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static#e=this.\u0275fac=function(ai){return new(ai||ji)(l.Y36(_e),l.Y36(s._A,8),l.Y36(s.sG,8),l.Y36(l.sBO))};static#t=this.\u0275cmp=l.Xpm({type:ji,selectors:[["mat-calendar"]],viewQuery:function(ai,Gn){if(1&ai&&(l.Gf(xo,5),l.Gf(oi,5),l.Gf(Ji,5)),2&ai){let Io;l.iGM(Io=l.CRH())&&(Gn.monthView=Io.first),l.iGM(Io=l.CRH())&&(Gn.yearView=Io.first),l.iGM(Io=l.CRH())&&(Gn.multiYearView=Io.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[l._Bn([sn]),l.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(ai,Gn){1&ai&&(l.YNc(0,X,0,0,"ng-template",0),l.TgZ(1,"div",1),l.YNc(2,me,1,11,"mat-month-view",2),l.YNc(3,J,1,6,"mat-year-view",3),l.YNc(4,Q,1,6,"mat-multi-year-view",4),l.qZA()),2&ai&&(l.Q6J("cdkPortalOutlet",Gn._calendarHeaderPortal),l.xp6(1),l.Q6J("ngSwitch",Gn.currentView),l.xp6(1),l.Q6J("ngSwitchCase","month"),l.xp6(1),l.Q6J("ngSwitchCase","year"),l.xp6(1),l.Q6J("ngSwitchCase","multi-year"))},dependencies:[a.RF,a.n9,e.kH,o.Pl,xo,oi,Ji],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0})}return ji})();const wt={transformPanel:(0,E.X$)("transformPanel",[(0,E.eR)("void => enter-dropdown",(0,E.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,E.F4)([(0,E.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,E.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,E.eR)("void => enter-dialog",(0,E.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,E.F4)([(0,E.oB)({opacity:0,transform:"scale(0.7)"}),(0,E.oB)({transform:"none",opacity:1})]))),(0,E.eR)("* => void",(0,E.jt)("100ms linear",(0,E.oB)({opacity:0})))]),fadeInCalendar:(0,E.X$)("fadeInCalendar",[(0,E.SB)("void",(0,E.oB)({opacity:0})),(0,E.SB)("enter",(0,E.oB)({opacity:1})),(0,E.eR)("void => *",(0,E.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Mt=0;const pt=new l.OlP("mat-datepicker-scroll-strategy"),tt={provide:pt,deps:[n.aV],useFactory:function Lt(ji){return()=>ji.scrollStrategies.reposition()}},Ne=(0,s.pj)(class{constructor(ji){this._elementRef=ji}});let vt=(()=>{class ji extends Ne{constructor(rt,ai,Gn,Io,wr,bs){super(rt),this._changeDetectorRef=ai,this._globalModel=Gn,this._dateAdapter=Io,this._rangeSelectionStrategy=wr,this._subscriptions=new _.w0,this._animationDone=new A.x,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=bs.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(rt){const ai=this._model.selection,Gn=rt.value,Io=ai instanceof xn;if(Io&&this._rangeSelectionStrategy){const wr=this._rangeSelectionStrategy.selectionFinished(Gn,ai,rt.event);this._model.updateSelection(wr,this)}else Gn&&(Io||!this._dateAdapter.sameDate(Gn,ai))&&this._model.add(Gn);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(rt){this._model.updateSelection(rt.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(rt){this._isAnimating="start"===rt.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(rt,ai){this._model=rt?this._globalModel.clone():this._globalModel,this._actionsPortal=rt,ai&&this._changeDetectorRef.detectChanges()}static#e=this.\u0275fac=function(ai){return new(ai||ji)(l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(mt),l.Y36(s._A),l.Y36(nn,8),l.Y36(_e))};static#t=this.\u0275cmp=l.Xpm({type:ji,selectors:[["mat-datepicker-content"]],viewQuery:function(ai,Gn){if(1&ai&&l.Gf(xt,5),2&ai){let Io;l.iGM(Io=l.CRH())&&(Gn._calendar=Io.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(ai,Gn){1&ai&&l.WFA("@transformPanel.start",function(wr){return Gn._handleAnimationEvent(wr)})("@transformPanel.done",function(wr){return Gn._handleAnimationEvent(wr)}),2&ai&&(l.d8E("@transformPanel",Gn._animationState),l.ekj("mat-datepicker-content-touch",Gn.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[l.qOj],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(ai,Gn){if(1&ai&&(l.TgZ(0,"div",0)(1,"mat-calendar",1),l.NdJ("yearSelected",function(wr){return Gn.datepicker._selectYear(wr)})("monthSelected",function(wr){return Gn.datepicker._selectMonth(wr)})("viewChanged",function(wr){return Gn.datepicker._viewChanged(wr)})("_userSelection",function(wr){return Gn._handleUserSelection(wr)})("_userDragDrop",function(wr){return Gn._handleUserDragDrop(wr)}),l.qZA(),l.YNc(2,re,0,0,"ng-template",2),l.TgZ(3,"button",3),l.NdJ("focus",function(){return Gn._closeButtonFocused=!0})("blur",function(){return Gn._closeButtonFocused=!1})("click",function(){return Gn.datepicker.close()}),l._uU(4),l.qZA()()),2&ai){let Io;l.ekj("mat-datepicker-content-container-with-custom-header",Gn.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Gn._actionsPortal),l.uIk("aria-modal",!0)("aria-labelledby",null!==(Io=Gn._dialogLabelId)&&void 0!==Io?Io:void 0),l.xp6(1),l.Q6J("id",Gn.datepicker.id)("ngClass",Gn.datepicker.panelClass)("startAt",Gn.datepicker.startAt)("startView",Gn.datepicker.startView)("minDate",Gn.datepicker._getMinDate())("maxDate",Gn.datepicker._getMaxDate())("dateFilter",Gn.datepicker._getDateFilter())("headerComponent",Gn.datepicker.calendarHeaderComponent)("selected",Gn._getSelected())("dateClass",Gn.datepicker.dateClass)("comparisonStart",Gn.comparisonStart)("comparisonEnd",Gn.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",Gn.startDateAccessibleName)("endDateAccessibleName",Gn.endDateAccessibleName),l.xp6(1),l.Q6J("cdkPortalOutlet",Gn._actionsPortal),l.xp6(1),l.ekj("cdk-visually-hidden",!Gn._closeButtonFocused),l.Q6J("color",Gn.color||"primary"),l.xp6(1),l.Oqu(Gn._closeButtonText)}},dependencies:[a.mk,u.lW,e.mK,o.Pl,xt],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[wt.transformPanel,wt.fadeInCalendar]},changeDetection:0})}return ji})(),ln=(()=>{class ji{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(rt){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(rt))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(rt){this._color=rt}get touchUi(){return this._touchUi}set touchUi(rt){this._touchUi=(0,p.Ig)(rt)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(rt){const ai=(0,p.Ig)(rt);ai!==this._disabled&&(this._disabled=ai,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(rt){this._restoreFocus=(0,p.Ig)(rt)}get panelClass(){return this._panelClass}set panelClass(rt){this._panelClass=(0,p.du)(rt)}get opened(){return this._opened}set opened(rt){(0,p.Ig)(rt)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(rt,ai,Gn,Io,wr,bs,ba){this._overlay=rt,this._ngZone=ai,this._viewContainerRef=Gn,this._dateAdapter=wr,this._dir=bs,this._model=ba,this._inputStateChanges=_.w0.EMPTY,this._document=(0,l.f3M)(a.K0),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new l.vpe,this.monthSelected=new l.vpe,this.viewChanged=new l.vpe(!0),this.openedStream=new l.vpe,this.closedStream=new l.vpe,this._opened=!1,this.id="mat-datepicker-"+Mt++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new A.x,this._scrollStrategy=Io}ngOnChanges(rt){const ai=rt.xPosition||rt.yPosition;if(ai&&!ai.firstChange&&this._overlayRef){const Gn=this._overlayRef.getConfig().positionStrategy;Gn instanceof n._G&&(this._setConnectedPositions(Gn),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(rt){this._model.add(rt)}_selectYear(rt){this.yearSelected.emit(rt)}_selectMonth(rt){this.monthSelected.emit(rt)}_viewChanged(rt){this.viewChanged.emit(rt)}registerInput(rt){return this._inputStateChanges.unsubscribe(),this.datepickerInput=rt,this._inputStateChanges=rt.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(rt){this._actionsPortal=rt,this._componentRef?.instance._assignActions(rt,!0)}removeActions(rt){rt===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=(0,k.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const rt=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,ai=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:Gn,location:Io}=this._componentRef;Gn._startExitAnimation(),Gn._animationDone.pipe((0,w.q)(1)).subscribe(()=>{const wr=this._document.activeElement;rt&&(!wr||wr===this._document.activeElement||Io.nativeElement.contains(wr))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}rt?setTimeout(ai):ai()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(rt){rt.datepicker=this,rt.color=this.color,rt._dialogLabelId=this.datepickerInput.getOverlayLabelId(),rt._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const rt=this.touchUi,ai=new o.C5(vt,this._viewContainerRef),Gn=this._overlayRef=this._overlay.create(new n.X_({positionStrategy:rt?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[rt?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:rt?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(rt?"dialog":"popup")}));this._getCloseStream(Gn).subscribe(Io=>{Io&&Io.preventDefault(),this.close()}),Gn.keydownEvents().subscribe(Io=>{const wr=Io.keyCode;(wr===x.LH||wr===x.JH||wr===x.oh||wr===x.SV||wr===x.Ku||wr===x.VM)&&Io.preventDefault()}),this._componentRef=Gn.attach(ai),this._forwardContentValues(this._componentRef.instance),rt||this._ngZone.onStable.pipe((0,w.q)(1)).subscribe(()=>Gn.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const rt=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(rt)}_setConnectedPositions(rt){const ai="end"===this.xPosition?"end":"start",Gn="start"===ai?"end":"start",Io="above"===this.yPosition?"bottom":"top",wr="top"===Io?"bottom":"top";return rt.withPositions([{originX:ai,originY:wr,overlayX:ai,overlayY:Io},{originX:ai,originY:Io,overlayX:ai,overlayY:wr},{originX:Gn,originY:wr,overlayX:Gn,overlayY:Io},{originX:Gn,originY:Io,overlayX:Gn,overlayY:wr}])}_getCloseStream(rt){const ai=["ctrlKey","shiftKey","metaKey"];return(0,C.T)(rt.backdropClick(),rt.detachments(),rt.keydownEvents().pipe((0,M.h)(Gn=>Gn.keyCode===x.hY&&!(0,x.Vb)(Gn)||this.datepickerInput&&(0,x.Vb)(Gn,"altKey")&&Gn.keyCode===x.LH&&ai.every(Io=>!(0,x.Vb)(Gn,Io)))))}static#e=this.\u0275fac=function(ai){return new(ai||ji)(l.Y36(n.aV),l.Y36(l.R0b),l.Y36(l.s_b),l.Y36(pt),l.Y36(s._A,8),l.Y36(f.Is,8),l.Y36(mt))};static#t=this.\u0275dir=l.lG2({type:ji,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[l.TTD]})}return ji})(),jn=(()=>{class ji extends ln{static#e=this.\u0275fac=function(){let rt;return function(Gn){return(rt||(rt=l.n5z(ji)))(Gn||ji)}}();static#t=this.\u0275cmp=l.Xpm({type:ji,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[l._Bn([sn,{provide:ln,useExisting:ji}]),l.qOj],decls:0,vars:0,template:function(ai,Gn){},encapsulation:2,changeDetection:0})}return ji})();class Pi{constructor(Fo,rt){this.target=Fo,this.targetElement=rt,this.value=this.target.value}}let go=(()=>{class ji{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(rt){this._assignValueProgrammatically(rt)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(rt){const ai=(0,p.Ig)(rt),Gn=this._elementRef.nativeElement;this._disabled!==ai&&(this._disabled=ai,this.stateChanges.next(void 0)),ai&&this._isInitialized&&Gn.blur&&Gn.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(rt){this._model=rt,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(ai=>{if(this._shouldHandleChangeEvent(ai)){const Gn=this._getValueFromModel(ai.selection);this._lastValueValid=this._isValidValue(Gn),this._cvaOnChange(Gn),this._onTouched(),this._formatValue(Gn),this.dateInput.emit(new Pi(this,this._elementRef.nativeElement)),this.dateChange.emit(new Pi(this,this._elementRef.nativeElement))}})}constructor(rt,ai,Gn){this._elementRef=rt,this._dateAdapter=ai,this._dateFormats=Gn,this.dateChange=new l.vpe,this.dateInput=new l.vpe,this.stateChanges=new A.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=_.w0.EMPTY,this._localeSubscription=_.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Io=>{const wr=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Io.value));return!wr||this._matchesFilter(wr)?null:{matDatepickerFilter:!0}},this._minValidator=Io=>{const wr=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Io.value)),bs=this._getMinDate();return!bs||!wr||this._dateAdapter.compareDate(bs,wr)<=0?null:{matDatepickerMin:{min:bs,actual:wr}}},this._maxValidator=Io=>{const wr=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Io.value)),bs=this._getMaxDate();return!bs||!wr||this._dateAdapter.compareDate(bs,wr)>=0?null:{matDatepickerMax:{max:bs,actual:wr}}},this._lastValueValid=!1,this._localeSubscription=ai.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(rt){(function si(ji,Fo){const rt=Object.keys(ji);for(let ai of rt){const{previousValue:Gn,currentValue:Io}=ji[ai];if(!Fo.isDateInstance(Gn)||!Fo.isDateInstance(Io))return!0;if(!Fo.sameDate(Gn,Io))return!0}return!1})(rt,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(rt){this._validatorOnChange=rt}validate(rt){return this._validator?this._validator(rt):null}writeValue(rt){this._assignValueProgrammatically(rt)}registerOnChange(rt){this._cvaOnChange=rt}registerOnTouched(rt){this._onTouched=rt}setDisabledState(rt){this.disabled=rt}_onKeydown(rt){(0,x.Vb)(rt,"altKey")&&rt.keyCode===x.JH&&["ctrlKey","shiftKey","metaKey"].every(Io=>!(0,x.Vb)(rt,Io))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),rt.preventDefault())}_onInput(rt){const ai=this._lastValueValid;let Gn=this._dateAdapter.parse(rt,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(Gn),Gn=this._dateAdapter.getValidDateOrNull(Gn);const Io=!this._dateAdapter.sameDate(Gn,this.value);!Gn||Io?this._cvaOnChange(Gn):(rt&&!this.value&&this._cvaOnChange(Gn),ai!==this._lastValueValid&&this._validatorOnChange()),Io&&(this._assignValue(Gn),this.dateInput.emit(new Pi(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Pi(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(rt){this._elementRef.nativeElement.value=null!=rt?this._dateAdapter.format(rt,this._dateFormats.display.dateInput):""}_assignValue(rt){this._model?(this._assignValueToModel(rt),this._pendingValue=null):this._pendingValue=rt}_isValidValue(rt){return!rt||this._dateAdapter.isValid(rt)}_parentDisabled(){return!1}_assignValueProgrammatically(rt){rt=this._dateAdapter.deserialize(rt),this._lastValueValid=this._isValidValue(rt),rt=this._dateAdapter.getValidDateOrNull(rt),this._assignValue(rt),this._formatValue(rt)}_matchesFilter(rt){const ai=this._getDateFilter();return!ai||ai(rt)}static#e=this.\u0275fac=function(ai){return new(ai||ji)(l.Y36(l.SBq),l.Y36(s._A,8),l.Y36(s.sG,8))};static#t=this.\u0275dir=l.lG2({type:ji,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[l.TTD]})}return ji})();const ot={provide:b.JU,useExisting:(0,l.Gpc)(()=>_i),multi:!0},pn={provide:b.Cf,useExisting:(0,l.Gpc)(()=>_i),multi:!0};let _i=(()=>{class ji extends go{set matDatepicker(rt){rt&&(this._datepicker=rt,this._closedSubscription=rt.closedStream.subscribe(()=>this._onTouched()),this._registerModel(rt.registerInput(this)))}get min(){return this._min}set min(rt){const ai=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(rt));this._dateAdapter.sameDate(ai,this._min)||(this._min=ai,this._validatorOnChange())}get max(){return this._max}set max(rt){const ai=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(rt));this._dateAdapter.sameDate(ai,this._max)||(this._max=ai,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(rt){const ai=this._matchesFilter(this.value);this._dateFilter=rt,this._matchesFilter(this.value)!==ai&&this._validatorOnChange()}constructor(rt,ai,Gn,Io){super(rt,ai,Gn),this._formField=Io,this._closedSubscription=_.w0.EMPTY,this._validator=b.kI.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(rt){return rt}_assignValueToModel(rt){this._model&&this._model.updateSelection(rt,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(rt){return rt.source!==this}static#e=this.\u0275fac=function(ai){return new(ai||ji)(l.Y36(l.SBq),l.Y36(s._A,8),l.Y36(s.sG,8),l.Y36(I.G_,8))};static#t=this.\u0275dir=l.lG2({type:ji,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(ai,Gn){1&ai&&l.NdJ("input",function(wr){return Gn._onInput(wr.target.value)})("change",function(){return Gn._onChange()})("blur",function(){return Gn._onBlur()})("keydown",function(wr){return Gn._onKeydown(wr)}),2&ai&&(l.Ikx("disabled",Gn.disabled),l.uIk("aria-haspopup",Gn._datepicker?"dialog":null)("aria-owns",(null==Gn._datepicker?null:Gn._datepicker.opened)&&Gn._datepicker.id||null)("min",Gn.min?Gn._dateAdapter.toIso8601(Gn.min):null)("max",Gn.max?Gn._dateAdapter.toIso8601(Gn.max):null)("data-mat-calendar",Gn._datepicker?Gn._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[l._Bn([ot,pn,{provide:L.Jk,useExisting:ji}]),l.qOj]})}return ji})(),wi=(()=>{class ji{static#e=this.\u0275fac=function(ai){return new(ai||ji)};static#t=this.\u0275dir=l.lG2({type:ji,selectors:[["","matDatepickerToggleIcon",""]]})}return ji})(),hi=(()=>{class ji{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(rt){this._disabled=(0,p.Ig)(rt)}constructor(rt,ai,Gn){this._intl=rt,this._changeDetectorRef=ai,this._stateChanges=_.w0.EMPTY;const Io=Number(Gn);this.tabIndex=Io||0===Io?Io:null}ngOnChanges(rt){rt.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(rt){this.datepicker&&!this.disabled&&(this.datepicker.open(),rt.stopPropagation())}_watchStateChanges(){const rt=this.datepicker?this.datepicker.stateChanges:(0,R.of)(),ai=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,R.of)(),Gn=this.datepicker?(0,C.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,R.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,C.T)(this._intl.changes,rt,ai,Gn).subscribe(()=>this._changeDetectorRef.markForCheck())}static#e=this.\u0275fac=function(ai){return new(ai||ji)(l.Y36(_e),l.Y36(l.sBO),l.$8M("tabindex"))};static#t=this.\u0275cmp=l.Xpm({type:ji,selectors:[["mat-datepicker-toggle"]],contentQueries:function(ai,Gn,Io){if(1&ai&&l.Suo(Io,wi,5),2&ai){let wr;l.iGM(wr=l.CRH())&&(Gn._customIcon=wr.first)}},viewQuery:function(ai,Gn){if(1&ai&&l.Gf(de,5),2&ai){let Io;l.iGM(Io=l.CRH())&&(Gn._button=Io.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(ai,Gn){1&ai&&l.NdJ("click",function(wr){return Gn._open(wr)}),2&ai&&(l.uIk("tabindex",null)("data-mat-calendar",Gn.datepicker?Gn.datepicker.id:null),l.ekj("mat-datepicker-toggle-active",Gn.datepicker&&Gn.datepicker.opened)("mat-accent",Gn.datepicker&&"accent"===Gn.datepicker.color)("mat-warn",Gn.datepicker&&"warn"===Gn.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[l.TTD],ngContentSelectors:H,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(ai,Gn){1&ai&&(l.F$t(j),l.TgZ(0,"button",0,1),l.YNc(2,te,2,0,"svg",2),l.Hsn(3),l.qZA()),2&ai&&(l.Q6J("disabled",Gn.disabled)("disableRipple",Gn.disableRipple),l.uIk("aria-haspopup",Gn.datepicker?"dialog":null)("aria-label",Gn.ariaLabel||Gn._intl.openCalendarLabel)("tabindex",Gn.disabled?-1:Gn.tabIndex),l.xp6(2),l.Q6J("ngIf",!Gn._customIcon))},dependencies:[a.O5,u.RK],styles:[".mat-datepicker-toggle{pointer-events:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0})}return ji})(),as=(()=>{class ji{static#e=this.\u0275fac=function(ai){return new(ai||ji)};static#t=this.\u0275mod=l.oAB({type:ji});static#n=this.\u0275inj=l.cJS({providers:[_e,tt],imports:[a.ez,u.ot,n.U8,e.rt,o.eL,s.BQ,d.ZD]})}return ji})()},19347:(he,y,i)=>{"use strict";i.d(y,{H8:()=>ne,Is:()=>ge,Nv:()=>Te,RI:()=>V,Se:()=>te,WI:()=>K,X2:()=>D,_H:()=>Ce,so:()=>U,uw:()=>j,vA:()=>M,xY:()=>se});var e=i(69594),n=i(96814),o=i(65879),a=i(4300),l=i(77954),u=i(42495),d=i(68484),s=i(78645),A=i(63019),_=i(74911),C=i(32181),R=i(48180),x=i(27921),f=i(36028),k=i(23680),w=i(86825);function g(De,fe){}class M{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const p="mdc-dialog--open",E="mdc-dialog--opening",b="mdc-dialog--closing";let D=(()=>{class De extends l.LL{constructor(xe,Oe,Le,Gt,Ut,An,$n,xn){super(xe,Oe,Le,Gt,Ut,An,$n,xn),this._animationStateChanged=new o.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(xe){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:xe})}static#e=this.\u0275fac=function(Oe){return new(Oe||De)(o.Y36(o.SBq),o.Y36(a.qV),o.Y36(n.K0,8),o.Y36(M),o.Y36(a.ic),o.Y36(o.R0b),o.Y36(e.Iu),o.Y36(a.tE))};static#t=this.\u0275cmp=o.Xpm({type:De,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(Oe,Le){},encapsulation:2})}return De})();const F="--mat-dialog-transition-duration";function P(De){return null==De?null:"number"==typeof De?De:De.endsWith("ms")?(0,u.su)(De.substring(0,De.length-2)):De.endsWith("s")?1e3*(0,u.su)(De.substring(0,De.length-1)):"0"===De?0:null}let O=(()=>{class De extends D{constructor(xe,Oe,Le,Gt,Ut,An,$n,xn,mt){super(xe,Oe,Le,Gt,Ut,An,$n,mt),this._animationMode=xn,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?P(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?P(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(F,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(E,p)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(p),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(p),this._animationsEnabled?(this._hostElement.style.setProperty(F,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(b)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(E,b)}_waitForAnimationToComplete(xe,Oe){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(Oe,xe)}_requestAnimationFrame(xe){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(xe):xe()})}static#e=this.\u0275fac=function(Oe){return new(Oe||De)(o.Y36(o.SBq),o.Y36(a.qV),o.Y36(n.K0,8),o.Y36(M),o.Y36(a.ic),o.Y36(o.R0b),o.Y36(e.Iu),o.Y36(o.QbO,8),o.Y36(a.tE))};static#t=this.\u0275cmp=o.Xpm({type:De,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(Oe,Le){2&Oe&&(o.Ikx("id",Le._config.id),o.uIk("aria-modal",Le._config.ariaModal)("role",Le._config.role)("aria-labelledby",Le._config.ariaLabel?null:Le._ariaLabelledBy)("aria-label",Le._config.ariaLabel)("aria-describedby",Le._config.ariaDescribedBy||null),o.ekj("_mat-animation-noopable",!Le._animationsEnabled))},features:[o.qOj],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(Oe,Le){1&Oe&&(o.TgZ(0,"div",0)(1,"div",1),o.YNc(2,g,0,0,"ng-template",2),o.qZA()())},dependencies:[d.Pl],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{--mdc-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}return De})();class U{constructor(fe,xe,Oe){this._ref=fe,this._containerInstance=Oe,this._afterOpened=new s.x,this._beforeClosed=new s.x,this._state=0,this.disableClose=xe.disableClose,this.id=fe.id,Oe._animationStateChanged.pipe((0,C.h)(Le=>"opened"===Le.state),(0,R.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Oe._animationStateChanged.pipe((0,C.h)(Le=>"closed"===Le.state),(0,R.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),fe.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,A.T)(this.backdropClick(),this.keydownEvents().pipe((0,C.h)(Le=>Le.keyCode===f.hY&&!this.disableClose&&!(0,f.Vb)(Le)))).subscribe(Le=>{this.disableClose||(Le.preventDefault(),V(this,"keydown"===Le.type?"keyboard":"mouse"))})}close(fe){this._result=fe,this._containerInstance._animationStateChanged.pipe((0,C.h)(xe=>"closing"===xe.state),(0,R.q)(1)).subscribe(xe=>{this._beforeClosed.next(fe),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),xe.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(fe){let xe=this._ref.config.positionStrategy;return fe&&(fe.left||fe.right)?fe.left?xe.left(fe.left):xe.right(fe.right):xe.centerHorizontally(),fe&&(fe.top||fe.bottom)?fe.top?xe.top(fe.top):xe.bottom(fe.bottom):xe.centerVertically(),this._ref.updatePosition(),this}updateSize(fe="",xe=""){return this._ref.updateSize(fe,xe),this}addPanelClass(fe){return this._ref.addPanelClass(fe),this}removePanelClass(fe){return this._ref.removePanelClass(fe),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function V(De,fe,xe){return De._closeInteractionType=fe,De.close(xe)}const K=new o.OlP("MatMdcDialogData"),X=new o.OlP("mat-mdc-dialog-default-options"),me=new o.OlP("mat-mdc-dialog-scroll-strategy"),Q={provide:me,deps:[e.aV],useFactory:function J(De){return()=>De.scrollStrategies.block()}};let de=0,te=(()=>{class De{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const xe=this._parentDialog;return xe?xe._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(xe,Oe,Le,Gt,Ut,An,$n,xn,mt,ut){this._overlay=xe,this._defaultOptions=Le,this._parentDialog=Gt,this._dialogRefConstructor=$n,this._dialogContainerType=xn,this._dialogDataToken=mt,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new s.x,this._afterOpenedAtThisLevel=new s.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=M,this.afterAllClosed=(0,_.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,x.O)(void 0))),this._scrollStrategy=An,this._dialog=Oe.get(l.Vq)}open(xe,Oe){let Le;(Oe={...this._defaultOptions||new M,...Oe}).id=Oe.id||`${this._idPrefix}${de++}`,Oe.scrollStrategy=Oe.scrollStrategy||this._scrollStrategy();const Gt=this._dialog.open(xe,{...Oe,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:Oe},{provide:l.ib,useValue:Oe}]},templateContext:()=>({dialogRef:Le}),providers:(Ut,An,$n)=>(Le=new this._dialogRefConstructor(Ut,Oe,$n),Le.updatePosition(Oe?.position),[{provide:this._dialogContainerType,useValue:$n},{provide:this._dialogDataToken,useValue:An.data},{provide:this._dialogRefConstructor,useValue:Le}])});return Le.componentInstance=Gt.componentInstance,this.openDialogs.push(Le),this.afterOpened.next(Le),Le.afterClosed().subscribe(()=>{const Ut=this.openDialogs.indexOf(Le);Ut>-1&&(this.openDialogs.splice(Ut,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Le}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(xe){return this.openDialogs.find(Oe=>Oe.id===xe)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(xe){let Oe=xe.length;for(;Oe--;)xe[Oe].close()}static#e=this.\u0275fac=function(Oe){o.$Z()};static#t=this.\u0275prov=o.Yz7({token:De,factory:De.\u0275fac})}return De})(),j=(()=>{class De extends te{constructor(xe,Oe,Le,Gt,Ut,An,$n,xn){super(xe,Oe,Gt,An,$n,Ut,U,O,K,xn),this._idPrefix="mat-mdc-dialog-"}static#e=this.\u0275fac=function(Oe){return new(Oe||De)(o.LFG(e.aV),o.LFG(o.zs3),o.LFG(n.Ye,8),o.LFG(X,8),o.LFG(me),o.LFG(De,12),o.LFG(e.Xj),o.LFG(o.QbO,8))};static#t=this.\u0275prov=o.Yz7({token:De,factory:De.\u0275fac})}return De})(),se=(()=>{class De{static#e=this.\u0275fac=function(Oe){return new(Oe||De)};static#t=this.\u0275dir=o.lG2({type:De,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]})}return De})(),ne=(()=>{class De{constructor(){this.align="start"}static#e=this.\u0275fac=function(Oe){return new(Oe||De)};static#t=this.\u0275dir=o.lG2({type:De,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(Oe,Le){2&Oe&&o.ekj("mat-mdc-dialog-actions-align-center","center"===Le.align)("mat-mdc-dialog-actions-align-end","end"===Le.align)},inputs:{align:"align"}})}return De})(),ge=(()=>{class De{static#e=this.\u0275fac=function(Oe){return new(Oe||De)};static#t=this.\u0275mod=o.oAB({type:De});static#n=this.\u0275inj=o.cJS({providers:[j,Q],imports:[l.Su,e.U8,d.eL,k.BQ,k.BQ]})}return De})();const Ce={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Te={dialogContainer:(0,w.X$)("dialogContainer",[(0,w.SB)("void, exit",(0,w.oB)({opacity:0,transform:"scale(0.7)"})),(0,w.SB)("enter",(0,w.oB)({transform:"none"})),(0,w.eR)("* => enter",(0,w.ru)([(0,w.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,w.oB)({transform:"none",opacity:1})),(0,w.IO)("@*",(0,w.pV)(),{optional:!0})]),Ce),(0,w.eR)("* => void, * => exit",(0,w.ru)([(0,w.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,w.oB)({opacity:0})),(0,w.IO)("@*",(0,w.pV)(),{optional:!0})]),Ce)])}},26385:(he,y,i)=>{"use strict";i.d(y,{d:()=>a,t:()=>l});var e=i(65879),n=i(42495),o=i(23680);let a=(()=>{class u{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(s){this._vertical=(0,n.Ig)(s)}get inset(){return this._inset}set inset(s){this._inset=(0,n.Ig)(s)}static#e=this.\u0275fac=function(A){return new(A||u)};static#t=this.\u0275cmp=e.Xpm({type:u,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(A,_){2&A&&(e.uIk("aria-orientation",_.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",_.vertical)("mat-divider-horizontal",!_.vertical)("mat-divider-inset",_.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(A,_){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}return u})(),l=(()=>{class u{static#e=this.\u0275fac=function(A){return new(A||u)};static#t=this.\u0275mod=e.oAB({type:u});static#n=this.\u0275inj=e.cJS({imports:[o.BQ,o.BQ]})}return u})()},3305:(he,y,i)=>{"use strict";i.d(y,{pp:()=>ge,To:()=>Ce,ib:()=>j,VG:()=>H,u4:()=>ne,yz:()=>se,yK:()=>_e});var e=i(65879),n=i(78337),o=i(42495),a=i(78645),l=i(47394);let u=0;const d=new e.OlP("CdkAccordion");let s=(()=>{class Te{constructor(){this._stateChanges=new a.x,this._openCloseAllActions=new a.x,this.id="cdk-accordion-"+u++,this._multi=!1}get multi(){return this._multi}set multi(fe){this._multi=(0,o.Ig)(fe)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(fe){this._stateChanges.next(fe)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static#e=this.\u0275fac=function(xe){return new(xe||Te)};static#t=this.\u0275dir=e.lG2({type:Te,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:d,useExisting:Te}]),e.TTD]})}return Te})(),A=0,_=(()=>{class Te{get expanded(){return this._expanded}set expanded(fe){fe=(0,o.Ig)(fe),this._expanded!==fe&&(this._expanded=fe,this.expandedChange.emit(fe),fe?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(fe){this._disabled=(0,o.Ig)(fe)}constructor(fe,xe,Oe){this.accordion=fe,this._changeDetectorRef=xe,this._expansionDispatcher=Oe,this._openCloseAllSubscription=l.w0.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-"+A++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=Oe.listen((Le,Gt)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Gt&&this.id!==Le&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(fe=>{this.disabled||(this.expanded=fe)})}static#e=this.\u0275fac=function(xe){return new(xe||Te)(e.Y36(d,12),e.Y36(e.sBO),e.Y36(n.A8))};static#t=this.\u0275dir=e.lG2({type:Te,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:d,useValue:void 0}])]})}return Te})(),C=(()=>{class Te{static#e=this.\u0275fac=function(xe){return new(xe||Te)};static#t=this.\u0275mod=e.oAB({type:Te});static#n=this.\u0275inj=e.cJS({})}return Te})();var R=i(68484),x=i(96814),f=i(23680),k=i(4300),w=i(93997),g=i(27921),M=i(32181),p=i(48180),E=i(36028),b=i(36232),I=i(63019),L=i(86825);const D=["body"];function F(Te,De){}const P=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],O=["mat-expansion-panel-header","*","mat-action-row"];function U(Te,De){if(1&Te&&e._UZ(0,"span",2),2&Te){const fe=e.oxw();e.Q6J("@indicatorRotate",fe._getExpandedState())}}const V=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],K=["mat-panel-title","mat-panel-description","*"],X=new e.OlP("MAT_ACCORDION"),me="225ms cubic-bezier(0.4,0.0,0.2,1)",J={indicatorRotate:(0,L.X$)("indicatorRotate",[(0,L.SB)("collapsed, void",(0,L.oB)({transform:"rotate(0deg)"})),(0,L.SB)("expanded",(0,L.oB)({transform:"rotate(180deg)"})),(0,L.eR)("expanded <=> collapsed, void => collapsed",(0,L.jt)(me))]),bodyExpansion:(0,L.X$)("bodyExpansion",[(0,L.SB)("collapsed, void",(0,L.oB)({height:"0px",visibility:"hidden"})),(0,L.SB)("expanded",(0,L.oB)({height:"*",visibility:""})),(0,L.eR)("expanded <=> collapsed, void => collapsed",(0,L.jt)(me))])},Q=new e.OlP("MAT_EXPANSION_PANEL");let re=(()=>{class Te{constructor(fe,xe){this._template=fe,this._expansionPanel=xe}static#e=this.\u0275fac=function(xe){return new(xe||Te)(e.Y36(e.Rgc),e.Y36(Q,8))};static#t=this.\u0275dir=e.lG2({type:Te,selectors:[["ng-template","matExpansionPanelContent",""]]})}return Te})(),de=0;const te=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let j=(()=>{class Te extends _{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(fe){this._hideToggle=(0,o.Ig)(fe)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(fe){this._togglePosition=fe}constructor(fe,xe,Oe,Le,Gt,Ut,An){super(fe,xe,Oe),this._viewContainerRef=Le,this._animationMode=Ut,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new a.x,this._headerId="mat-expansion-panel-header-"+de++,this._bodyAnimationDone=new a.x,this.accordion=fe,this._document=Gt,this._bodyAnimationDone.pipe((0,w.x)(($n,xn)=>$n.fromState===xn.fromState&&$n.toState===xn.toState)).subscribe($n=>{"void"!==$n.fromState&&("expanded"===$n.toState?this.afterExpand.emit():"collapsed"===$n.toState&&this.afterCollapse.emit())}),An&&(this.hideToggle=An.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,g.O)(null),(0,M.h)(()=>this.expanded&&!this._portal),(0,p.q)(1)).subscribe(()=>{this._portal=new R.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(fe){this._inputChanges.next(fe)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const fe=this._document.activeElement,xe=this._body.nativeElement;return fe===xe||xe.contains(fe)}return!1}static#e=this.\u0275fac=function(xe){return new(xe||Te)(e.Y36(X,12),e.Y36(e.sBO),e.Y36(n.A8),e.Y36(e.s_b),e.Y36(x.K0),e.Y36(e.QbO,8),e.Y36(te,8))};static#t=this.\u0275cmp=e.Xpm({type:Te,selectors:[["mat-expansion-panel"]],contentQueries:function(xe,Oe,Le){if(1&xe&&e.Suo(Le,re,5),2&xe){let Gt;e.iGM(Gt=e.CRH())&&(Oe._lazyContent=Gt.first)}},viewQuery:function(xe,Oe){if(1&xe&&e.Gf(D,5),2&xe){let Le;e.iGM(Le=e.CRH())&&(Oe._body=Le.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(xe,Oe){2&xe&&e.ekj("mat-expanded",Oe.expanded)("_mat-animation-noopable","NoopAnimations"===Oe._animationMode)("mat-expansion-panel-spacing",Oe._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:X,useValue:void 0},{provide:Q,useExisting:Te}]),e.qOj,e.TTD],ngContentSelectors:O,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(xe,Oe){1&xe&&(e.F$t(P),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(Gt){return Oe._bodyAnimationDone.next(Gt)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,F,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&xe&&(e.xp6(1),e.Q6J("@bodyExpansion",Oe._getExpandedState())("id",Oe.id),e.uIk("aria-labelledby",Oe._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",Oe._portal))},dependencies:[R.Pl],styles:['.mat-expansion-panel{--mat-expansion-container-shape:4px;box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[J.bodyExpansion]},changeDetection:0})}return Te})(),H=(()=>{class Te{static#e=this.\u0275fac=function(xe){return new(xe||Te)};static#t=this.\u0275dir=e.lG2({type:Te,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]})}return Te})();class z{}const q=(0,f.sb)(z);let se=(()=>{class Te extends q{constructor(fe,xe,Oe,Le,Gt,Ut,An){super(),this.panel=fe,this._element=xe,this._focusMonitor=Oe,this._changeDetectorRef=Le,this._animationMode=Ut,this._parentChangeSubscription=l.w0.EMPTY;const $n=fe.accordion?fe.accordion._stateChanges.pipe((0,M.h)(xn=>!(!xn.hideToggle&&!xn.togglePosition))):b.E;this.tabIndex=parseInt(An||"")||0,this._parentChangeSubscription=(0,I.T)(fe.opened,fe.closed,$n,fe._inputChanges.pipe((0,M.h)(xn=>!!(xn.hideToggle||xn.disabled||xn.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),fe.closed.pipe((0,M.h)(()=>fe._containsFocus())).subscribe(()=>Oe.focusVia(xe,"program")),Gt&&(this.expandedHeight=Gt.expandedHeight,this.collapsedHeight=Gt.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const fe=this._isExpanded();return fe&&this.expandedHeight?this.expandedHeight:!fe&&this.collapsedHeight?this.collapsedHeight:null}_keydown(fe){switch(fe.keyCode){case E.L_:case E.K5:(0,E.Vb)(fe)||(fe.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(fe))}}focus(fe,xe){fe?this._focusMonitor.focusVia(this._element,fe,xe):this._element.nativeElement.focus(xe)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(fe=>{fe&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static#e=this.\u0275fac=function(xe){return new(xe||Te)(e.Y36(j,1),e.Y36(e.SBq),e.Y36(k.tE),e.Y36(e.sBO),e.Y36(te,8),e.Y36(e.QbO,8),e.$8M("tabindex"))};static#t=this.\u0275cmp=e.Xpm({type:Te,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(xe,Oe){1&xe&&e.NdJ("click",function(){return Oe._toggle()})("keydown",function(Gt){return Oe._keydown(Gt)}),2&xe&&(e.uIk("id",Oe.panel._headerId)("tabindex",Oe.tabIndex)("aria-controls",Oe._getPanelId())("aria-expanded",Oe._isExpanded())("aria-disabled",Oe.panel.disabled),e.Udp("height",Oe._getHeaderHeight()),e.ekj("mat-expanded",Oe._isExpanded())("mat-expansion-toggle-indicator-after","after"===Oe._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Oe._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Oe._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:K,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(xe,Oe){1&xe&&(e.F$t(V),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,U,1,1,"span",1)),2&xe&&(e.ekj("mat-content-hide-toggle",!Oe._showToggle()),e.xp6(4),e.Q6J("ngIf",Oe._showToggle()))},dependencies:[x.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[J.indicatorRotate]},changeDetection:0})}return Te})(),ne=(()=>{class Te{static#e=this.\u0275fac=function(xe){return new(xe||Te)};static#t=this.\u0275dir=e.lG2({type:Te,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]})}return Te})(),_e=(()=>{class Te{static#e=this.\u0275fac=function(xe){return new(xe||Te)};static#t=this.\u0275dir=e.lG2({type:Te,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return Te})(),ge=(()=>{class Te extends s{constructor(){super(...arguments),this._ownHeaders=new e.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(fe){this._hideToggle=(0,o.Ig)(fe)}ngAfterContentInit(){this._headers.changes.pipe((0,g.O)(this._headers)).subscribe(fe=>{this._ownHeaders.reset(fe.filter(xe=>xe.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new k.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(fe){this._keyManager.onKeydown(fe)}_handleHeaderFocus(fe){this._keyManager.updateActiveItem(fe)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static#e=this.\u0275fac=function(){let fe;return function(Oe){return(fe||(fe=e.n5z(Te)))(Oe||Te)}}();static#t=this.\u0275dir=e.lG2({type:Te,selectors:[["mat-accordion"]],contentQueries:function(xe,Oe,Le){if(1&xe&&e.Suo(Le,se,5),2&xe){let Gt;e.iGM(Gt=e.CRH())&&(Oe._headers=Gt)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(xe,Oe){2&xe&&e.ekj("mat-accordion-multi",Oe.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:X,useExisting:Te}]),e.qOj]})}return Te})(),Ce=(()=>{class Te{static#e=this.\u0275fac=function(xe){return new(xe||Te)};static#t=this.\u0275mod=e.oAB({type:Te});static#n=this.\u0275inj=e.cJS({imports:[x.ez,f.BQ,C,R.eL]})}return Te})()},64170:(he,y,i)=>{"use strict";i.d(y,{ab:()=>Ce,G_:()=>Mi,Px:()=>xe,Ve:()=>Le,KE:()=>Ji,Eo:()=>sn,lN:()=>En,hX:()=>_e,qo:()=>Oe,R9:()=>Gt,Bi:()=>yi,Lv:()=>nn,UO:()=>fn,TN:()=>dn});var e=i(65879),n=i(49388),o=i(62831),a=i(47394),l=i(78645),u=i(63019),d=i(59773),s=i(65592),A=i(32181),_=i(67081);class R{constructor(Ki){this._box=Ki,this._destroyed=new l.x,this._resizeSubject=new l.x,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(Fn=>this._resizeSubject.next(Fn)))}observe(Ki){return this._elementObservables.has(Ki)||this._elementObservables.set(Ki,new s.y(Fn=>{const oi=this._resizeSubject.subscribe(Fn);return this._resizeObserver?.observe(Ki,{box:this._box}),()=>{this._resizeObserver?.unobserve(Ki),oi.unsubscribe(),this._elementObservables.delete(Ki)}}).pipe((0,A.h)(Fn=>Fn.some(oi=>oi.target===Ki)),(0,_.d)({bufferSize:1,refCount:!0}),(0,d.R)(this._destroyed))),this._elementObservables.get(Ki)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let x=(()=>{class un{constructor(){this._observers=new Map,this._ngZone=(0,e.f3M)(e.R0b)}ngOnDestroy(){for(const[,Fn]of this._observers)Fn.destroy();this._observers.clear()}observe(Fn,oi){const It=oi?.box||"content-box";return this._observers.has(It)||this._observers.set(It,new R(It)),this._observers.get(It).observe(Fn)}static#e=this.\u0275fac=function(oi){return new(oi||un)};static#t=this.\u0275prov=e.Yz7({token:un,factory:un.\u0275fac,providedIn:"root"})}return un})();var f=i(42495),k=i(86825),w=i(96814),g=i(17131),M=i(23680);const p=["notch"],E=["matFormFieldNotchedOutline",""],b=["*"],I=["textField"],L=["iconPrefixContainer"],D=["textPrefixContainer"];function F(un,Ki){1&un&&e._UZ(0,"span",19)}function P(un,Ki){if(1&un&&(e.TgZ(0,"label",17),e.Hsn(1,1),e.YNc(2,F,1,0,"span",18),e.qZA()),2&un){const Fn=e.oxw(2);e.Q6J("floating",Fn._shouldLabelFloat())("monitorResize",Fn._hasOutline())("id",Fn._labelId),e.uIk("for",Fn._control.id)("aria-owns",Fn._control.id),e.xp6(2),e.Q6J("ngIf",!Fn.hideRequiredMarker&&Fn._control.required)}}function O(un,Ki){if(1&un&&e.YNc(0,P,3,6,"label",16),2&un){const Fn=e.oxw();e.Q6J("ngIf",Fn._hasFloatingLabel())}}function U(un,Ki){1&un&&e._UZ(0,"div",20)}function V(un,Ki){}function K(un,Ki){if(1&un&&e.YNc(0,V,0,0,"ng-template",22),2&un){e.oxw(2);const Fn=e.MAs(1);e.Q6J("ngTemplateOutlet",Fn)}}function X(un,Ki){if(1&un&&(e.TgZ(0,"div",21),e.YNc(1,K,1,1,"ng-template",9),e.qZA()),2&un){const Fn=e.oxw();e.Q6J("matFormFieldNotchedOutlineOpen",Fn._shouldLabelFloat()),e.xp6(1),e.Q6J("ngIf",!Fn._forceDisplayInfixLabel())}}function me(un,Ki){1&un&&(e.TgZ(0,"div",23,24),e.Hsn(2,2),e.qZA())}function J(un,Ki){1&un&&(e.TgZ(0,"div",25,26),e.Hsn(2,3),e.qZA())}function Q(un,Ki){}function re(un,Ki){if(1&un&&e.YNc(0,Q,0,0,"ng-template",22),2&un){e.oxw();const Fn=e.MAs(1);e.Q6J("ngTemplateOutlet",Fn)}}function de(un,Ki){1&un&&(e.TgZ(0,"div",27),e.Hsn(1,4),e.qZA())}function te(un,Ki){1&un&&(e.TgZ(0,"div",28),e.Hsn(1,5),e.qZA())}function j(un,Ki){1&un&&e._UZ(0,"div",29)}function H(un,Ki){if(1&un&&(e.TgZ(0,"div",30),e.Hsn(1,6),e.qZA()),2&un){const Fn=e.oxw();e.Q6J("@transitionMessages",Fn._subscriptAnimationState)}}function z(un,Ki){if(1&un&&(e.TgZ(0,"mat-hint",34),e._uU(1),e.qZA()),2&un){const Fn=e.oxw(2);e.Q6J("id",Fn._hintLabelId),e.xp6(1),e.Oqu(Fn.hintLabel)}}function q(un,Ki){if(1&un&&(e.TgZ(0,"div",31),e.YNc(1,z,2,2,"mat-hint",32),e.Hsn(2,7),e._UZ(3,"div",33),e.Hsn(4,8),e.qZA()),2&un){const Fn=e.oxw();e.Q6J("@transitionMessages",Fn._subscriptAnimationState),e.xp6(1),e.Q6J("ngIf",Fn.hintLabel)}}const se=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ne=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let _e=(()=>{class un{static#e=this.\u0275fac=function(oi){return new(oi||un)};static#t=this.\u0275dir=e.lG2({type:un,selectors:[["mat-label"]]})}return un})();const Ce=new e.OlP("MatError");let De=0,fe=(()=>{class un{constructor(){this.align="start",this.id="mat-mdc-hint-"+De++}static#e=this.\u0275fac=function(oi){return new(oi||un)};static#t=this.\u0275dir=e.lG2({type:un,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(oi,It){2&oi&&(e.Ikx("id",It.id),e.uIk("align",null),e.ekj("mat-mdc-form-field-hint-end","end"===It.align))},inputs:{align:"align",id:"id"}})}return un})();const xe=new e.OlP("MatPrefix");let Oe=(()=>{class un{constructor(){this._isText=!1}set _isTextSelector(Fn){this._isText=!0}static#e=this.\u0275fac=function(oi){return new(oi||un)};static#t=this.\u0275dir=e.lG2({type:un,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:["matTextPrefix","_isTextSelector"]},features:[e._Bn([{provide:xe,useExisting:un}])]})}return un})();const Le=new e.OlP("MatSuffix");let Gt=(()=>{class un{constructor(){this._isText=!1}set _isTextSelector(Fn){this._isText=!0}static#e=this.\u0275fac=function(oi){return new(oi||un)};static#t=this.\u0275dir=e.lG2({type:un,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[e._Bn([{provide:Le,useExisting:un}])]})}return un})();const Ut=new e.OlP("FloatingLabelParent");let An=(()=>{class un{get floating(){return this._floating}set floating(Fn){this._floating=Fn,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(Fn){this._monitorResize=Fn,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(Fn){this._elementRef=Fn,this._floating=!1,this._monitorResize=!1,this._resizeObserver=(0,e.f3M)(x),this._ngZone=(0,e.f3M)(e.R0b),this._parent=(0,e.f3M)(Ut),this._resizeSubscription=new a.w0}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function $n(un){if(null!==un.offsetParent)return un.scrollWidth;const Fn=un.cloneNode(!0);Fn.style.setProperty("position","absolute"),Fn.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(Fn);const oi=Fn.scrollWidth;return Fn.remove(),oi}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static#e=this.\u0275fac=function(oi){return new(oi||un)(e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:un,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(oi,It){2&oi&&e.ekj("mdc-floating-label--float-above",It.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return un})();const xn="mdc-line-ripple--active",mt="mdc-line-ripple--deactivating";let ut=(()=>{class un{constructor(Fn,oi){this._elementRef=Fn,this._handleTransitionEnd=It=>{const Bt=this._elementRef.nativeElement.classList,xt=Bt.contains(mt);"opacity"===It.propertyName&&xt&&Bt.remove(xn,mt)},oi.runOutsideAngular(()=>{Fn.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const Fn=this._elementRef.nativeElement.classList;Fn.remove(mt),Fn.add(xn)}deactivate(){this._elementRef.nativeElement.classList.add(mt)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(oi){return new(oi||un)(e.Y36(e.SBq),e.Y36(e.R0b))};static#t=this.\u0275dir=e.lG2({type:un,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return un})(),Wt=(()=>{class un{constructor(Fn,oi){this._elementRef=Fn,this._ngZone=oi,this.open=!1}ngAfterViewInit(){const Fn=this._elementRef.nativeElement.querySelector(".mdc-floating-label");Fn?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(Fn.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>Fn.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(Fn){this._notch.nativeElement.style.width=this.open&&Fn?`calc(${Fn}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(oi){return new(oi||un)(e.Y36(e.SBq),e.Y36(e.R0b))};static#t=this.\u0275cmp=e.Xpm({type:un,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(oi,It){if(1&oi&&e.Gf(p,5),2&oi){let Bt;e.iGM(Bt=e.CRH())&&(It._notch=Bt.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(oi,It){2&oi&&e.ekj("mdc-notched-outline--notched",It.open)},inputs:{open:["matFormFieldNotchedOutlineOpen","open"]},attrs:E,ngContentSelectors:b,decls:5,vars:0,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],["notch",""],[1,"mdc-notched-outline__trailing"]],template:function(oi,It){1&oi&&(e.F$t(),e._UZ(0,"div",0),e.TgZ(1,"div",1,2),e.Hsn(3),e.qZA(),e._UZ(4,"div",3))},encapsulation:2,changeDetection:0})}return un})();const dn={transitionMessages:(0,k.X$)("transitionMessages",[(0,k.SB)("enter",(0,k.oB)({opacity:1,transform:"translateY(0%)"})),(0,k.eR)("void => enter",[(0,k.oB)({opacity:0,transform:"translateY(-5px)"}),(0,k.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let sn=(()=>{class un{static#e=this.\u0275fac=function(oi){return new(oi||un)};static#t=this.\u0275dir=e.lG2({type:un})}return un})();function fn(){return Error("Placeholder attribute and child element were both specified.")}function yi(un){return Error(`A hint was already declared for 'align="${un}"'.`)}function nn(){return Error("mat-form-field must contain a MatFormFieldControl.")}const Mi=new e.OlP("MatFormField"),mi=new e.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Eo=0,Ji=(()=>{class un{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Fn){this._hideRequiredMarker=(0,f.Ig)(Fn)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(Fn){Fn!==this._floatLabel&&(this._floatLabel=Fn,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(Fn){const oi=this._appearance;this._appearance=Fn||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==oi&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(Fn){this._subscriptSizing=Fn||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(Fn){this._hintLabel=Fn,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(Fn){this._explicitFormFieldControl=Fn}constructor(Fn,oi,It,Bt,xt,wt,Mt,pt){this._elementRef=Fn,this._changeDetectorRef=oi,this._ngZone=It,this._dir=Bt,this._platform=xt,this._defaults=wt,this._animationMode=Mt,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+Eo++,this._hintLabelId="mat-mdc-hint-"+Eo++,this._subscriptAnimationState="",this._destroyed=new l.x,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,wt&&(wt.appearance&&(this.appearance=wt.appearance),this._hideRequiredMarker=!!wt?.hideRequiredMarker,wt.color&&(this.color=wt.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const Fn=this._control;Fn.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${Fn.controlType}`),Fn.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),Fn.ngControl&&Fn.ngControl.valueChanges&&Fn.ngControl.valueChanges.pipe((0,d.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(Fn=>!Fn._isText),this._hasTextPrefix=!!this._prefixChildren.find(Fn=>Fn._isText),this._hasIconSuffix=!!this._suffixChildren.find(Fn=>!Fn._isText),this._hasTextSuffix=!!this._suffixChildren.find(Fn=>Fn._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,u.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,d.R)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(Fn){const oi=this._control?this._control.ngControl:null;return oi&&oi[Fn]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let Fn=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Fn.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const oi=this._hintChildren?this._hintChildren.find(Bt=>"start"===Bt.align):null,It=this._hintChildren?this._hintChildren.find(Bt=>"end"===Bt.align):null;oi?Fn.push(oi.id):this._hintLabel&&Fn.push(this._hintLabelId),It&&Fn.push(It.id)}else this._errorChildren&&Fn.push(...this._errorChildren.map(oi=>oi.id));this._control.setDescribedByIds(Fn)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const Fn=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(Fn.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const oi=this._iconPrefixContainer?.nativeElement,It=this._textPrefixContainer?.nativeElement,Bt=oi?.getBoundingClientRect().width??0,xt=It?.getBoundingClientRect().width??0;Fn.style.transform=`var(\n        --mat-mdc-form-field-label-transform,\n        translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${Bt+xt}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n    )`}_isAttachedToDom(){const Fn=this._elementRef.nativeElement;if(Fn.getRootNode){const oi=Fn.getRootNode();return oi&&oi!==Fn}return document.documentElement.contains(Fn)}static#e=this.\u0275fac=function(oi){return new(oi||un)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(n.Is),e.Y36(o.t4),e.Y36(mi,8),e.Y36(e.QbO,8),e.Y36(w.K0))};static#t=this.\u0275cmp=e.Xpm({type:un,selectors:[["mat-form-field"]],contentQueries:function(oi,It,Bt){if(1&oi&&(e.Suo(Bt,_e,5),e.Suo(Bt,_e,7),e.Suo(Bt,sn,5),e.Suo(Bt,xe,5),e.Suo(Bt,Le,5),e.Suo(Bt,Ce,5),e.Suo(Bt,fe,5)),2&oi){let xt;e.iGM(xt=e.CRH())&&(It._labelChildNonStatic=xt.first),e.iGM(xt=e.CRH())&&(It._labelChildStatic=xt.first),e.iGM(xt=e.CRH())&&(It._formFieldControl=xt.first),e.iGM(xt=e.CRH())&&(It._prefixChildren=xt),e.iGM(xt=e.CRH())&&(It._suffixChildren=xt),e.iGM(xt=e.CRH())&&(It._errorChildren=xt),e.iGM(xt=e.CRH())&&(It._hintChildren=xt)}},viewQuery:function(oi,It){if(1&oi&&(e.Gf(I,5),e.Gf(L,5),e.Gf(D,5),e.Gf(An,5),e.Gf(Wt,5),e.Gf(ut,5)),2&oi){let Bt;e.iGM(Bt=e.CRH())&&(It._textField=Bt.first),e.iGM(Bt=e.CRH())&&(It._iconPrefixContainer=Bt.first),e.iGM(Bt=e.CRH())&&(It._textPrefixContainer=Bt.first),e.iGM(Bt=e.CRH())&&(It._floatingLabel=Bt.first),e.iGM(Bt=e.CRH())&&(It._notchedOutline=Bt.first),e.iGM(Bt=e.CRH())&&(It._lineRipple=Bt.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(oi,It){2&oi&&e.ekj("mat-mdc-form-field-label-always-float",It._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",It._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",It._hasIconSuffix)("mat-form-field-invalid",It._control.errorState)("mat-form-field-disabled",It._control.disabled)("mat-form-field-autofilled",It._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===It._animationMode)("mat-form-field-appearance-fill","fill"==It.appearance)("mat-form-field-appearance-outline","outline"==It.appearance)("mat-form-field-hide-placeholder",It._hasFloatingLabel()&&!It._shouldLabelFloat())("mat-focused",It._control.focused)("mat-primary","accent"!==It.color&&"warn"!==It.color)("mat-accent","accent"===It.color)("mat-warn","warn"===It.color)("ng-untouched",It._shouldForward("untouched"))("ng-touched",It._shouldForward("touched"))("ng-pristine",It._shouldForward("pristine"))("ng-dirty",It._shouldForward("dirty"))("ng-valid",It._shouldForward("valid"))("ng-invalid",It._shouldForward("invalid"))("ng-pending",It._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[e._Bn([{provide:Mi,useExisting:un},{provide:Ut,useExisting:un}])],ngContentSelectors:ne,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(oi,It){1&oi&&(e.F$t(se),e.YNc(0,O,1,1,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1,2),e.NdJ("click",function(xt){return It._control.onContainerClick(xt)}),e.YNc(4,U,1,0,"div",3),e.TgZ(5,"div",4),e.YNc(6,X,2,2,"div",5),e.YNc(7,me,3,0,"div",6),e.YNc(8,J,3,0,"div",7),e.TgZ(9,"div",8),e.YNc(10,re,1,1,"ng-template",9),e.Hsn(11),e.qZA(),e.YNc(12,de,2,0,"div",10),e.YNc(13,te,2,0,"div",11),e.qZA(),e.YNc(14,j,1,0,"div",12),e.qZA(),e.TgZ(15,"div",13),e.YNc(16,H,2,1,"div",14),e.YNc(17,q,5,2,"div",15),e.qZA()),2&oi&&(e.xp6(2),e.ekj("mdc-text-field--filled",!It._hasOutline())("mdc-text-field--outlined",It._hasOutline())("mdc-text-field--no-label",!It._hasFloatingLabel())("mdc-text-field--disabled",It._control.disabled)("mdc-text-field--invalid",It._control.errorState),e.xp6(2),e.Q6J("ngIf",!It._hasOutline()&&!It._control.disabled),e.xp6(2),e.Q6J("ngIf",It._hasOutline()),e.xp6(1),e.Q6J("ngIf",It._hasIconPrefix),e.xp6(1),e.Q6J("ngIf",It._hasTextPrefix),e.xp6(2),e.Q6J("ngIf",!It._hasOutline()||It._forceDisplayInfixLabel()),e.xp6(2),e.Q6J("ngIf",It._hasTextSuffix),e.xp6(1),e.Q6J("ngIf",It._hasIconSuffix),e.xp6(1),e.Q6J("ngIf",!It._hasOutline()),e.xp6(1),e.ekj("mat-mdc-form-field-subscript-dynamic-size","dynamic"===It.subscriptSizing),e.Q6J("ngSwitch",It._getDisplayedMessages()),e.xp6(1),e.Q6J("ngSwitchCase","error"),e.xp6(1),e.Q6J("ngSwitchCase","hint"))},dependencies:[w.O5,w.tP,w.RF,w.n9,fe,An,Wt,ut],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px * 2)}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[dn.transitionMessages]},changeDetection:0})}return un})(),En=(()=>{class un{static#e=this.\u0275fac=function(oi){return new(oi||un)};static#t=this.\u0275mod=e.oAB({type:un});static#n=this.\u0275inj=e.cJS({imports:[M.BQ,w.ez,g.Q8,M.BQ]})}return un})()},73176:(he,y,i)=>{"use strict";i.d(y,{N6:()=>D});var e=i(65879),n=i(23680);let D=(()=>{class P{static#e=this.\u0275fac=function(V){return new(V||P)};static#t=this.\u0275mod=e.oAB({type:P});static#n=this.\u0275inj=e.cJS({imports:[n.uc,n.BQ,n.uc,n.BQ]})}return P})()},30617:(he,y,i)=>{"use strict";i.d(y,{Hw:()=>H,Ps:()=>z,jv:()=>P});var e=i(65879),n=i(23680),o=i(42495),a=i(96814),l=i(22096),u=i(58504),d=i(9315),s=i(47394),A=i(99397),_=i(37398),C=i(26306),R=i(64716),x=i(63020),f=i(48180),k=i(69862),w=i(6593);const g=["*"];let M;function E(q){return function p(){if(void 0===M&&(M=null,typeof window<"u")){const q=window;void 0!==q.trustedTypes&&(M=q.trustedTypes.createPolicy("angular#components",{createHTML:se=>se}))}return M}()?.createHTML(q)||q}function b(q){return Error(`Unable to find icon with the name "${q}"`)}function L(q){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${q}".`)}function D(q){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${q}".`)}class F{constructor(se,ne,_e){this.url=se,this.svgText=ne,this.options=_e}}let P=(()=>{class q{constructor(ne,_e,ge,Ce){this._httpClient=ne,this._sanitizer=_e,this._errorHandler=Ce,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=ge}addSvgIcon(ne,_e,ge){return this.addSvgIconInNamespace("",ne,_e,ge)}addSvgIconLiteral(ne,_e,ge){return this.addSvgIconLiteralInNamespace("",ne,_e,ge)}addSvgIconInNamespace(ne,_e,ge,Ce){return this._addSvgIconConfig(ne,_e,new F(ge,null,Ce))}addSvgIconResolver(ne){return this._resolvers.push(ne),this}addSvgIconLiteralInNamespace(ne,_e,ge,Ce){const Te=this._sanitizer.sanitize(e.q3G.HTML,ge);if(!Te)throw D(ge);const De=E(Te);return this._addSvgIconConfig(ne,_e,new F("",De,Ce))}addSvgIconSet(ne,_e){return this.addSvgIconSetInNamespace("",ne,_e)}addSvgIconSetLiteral(ne,_e){return this.addSvgIconSetLiteralInNamespace("",ne,_e)}addSvgIconSetInNamespace(ne,_e,ge){return this._addSvgIconSetConfig(ne,new F(_e,null,ge))}addSvgIconSetLiteralInNamespace(ne,_e,ge){const Ce=this._sanitizer.sanitize(e.q3G.HTML,_e);if(!Ce)throw D(_e);const Te=E(Ce);return this._addSvgIconSetConfig(ne,new F("",Te,ge))}registerFontClassAlias(ne,_e=ne){return this._fontCssClassesByAlias.set(ne,_e),this}classNameForFontAlias(ne){return this._fontCssClassesByAlias.get(ne)||ne}setDefaultFontSetClass(...ne){return this._defaultFontSetClass=ne,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(ne){const _e=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,ne);if(!_e)throw L(ne);const ge=this._cachedIconsByUrl.get(_e);return ge?(0,l.of)(V(ge)):this._loadSvgIconFromConfig(new F(ne,null)).pipe((0,A.b)(Ce=>this._cachedIconsByUrl.set(_e,Ce)),(0,_.U)(Ce=>V(Ce)))}getNamedSvgIcon(ne,_e=""){const ge=K(_e,ne);let Ce=this._svgIconConfigs.get(ge);if(Ce)return this._getSvgFromConfig(Ce);if(Ce=this._getIconConfigFromResolvers(_e,ne),Ce)return this._svgIconConfigs.set(ge,Ce),this._getSvgFromConfig(Ce);const Te=this._iconSetConfigs.get(_e);return Te?this._getSvgFromIconSetConfigs(ne,Te):(0,u._)(b(ge))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(ne){return ne.svgText?(0,l.of)(V(this._svgElementFromConfig(ne))):this._loadSvgIconFromConfig(ne).pipe((0,_.U)(_e=>V(_e)))}_getSvgFromIconSetConfigs(ne,_e){const ge=this._extractIconWithNameFromAnySet(ne,_e);if(ge)return(0,l.of)(ge);const Ce=_e.filter(Te=>!Te.svgText).map(Te=>this._loadSvgIconSetFromConfig(Te).pipe((0,C.K)(De=>{const xe=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Te.url)} failed: ${De.message}`;return this._errorHandler.handleError(new Error(xe)),(0,l.of)(null)})));return(0,d.D)(Ce).pipe((0,_.U)(()=>{const Te=this._extractIconWithNameFromAnySet(ne,_e);if(!Te)throw b(ne);return Te}))}_extractIconWithNameFromAnySet(ne,_e){for(let ge=_e.length-1;ge>=0;ge--){const Ce=_e[ge];if(Ce.svgText&&Ce.svgText.toString().indexOf(ne)>-1){const Te=this._svgElementFromConfig(Ce),De=this._extractSvgIconFromSet(Te,ne,Ce.options);if(De)return De}}return null}_loadSvgIconFromConfig(ne){return this._fetchIcon(ne).pipe((0,A.b)(_e=>ne.svgText=_e),(0,_.U)(()=>this._svgElementFromConfig(ne)))}_loadSvgIconSetFromConfig(ne){return ne.svgText?(0,l.of)(null):this._fetchIcon(ne).pipe((0,A.b)(_e=>ne.svgText=_e))}_extractSvgIconFromSet(ne,_e,ge){const Ce=ne.querySelector(`[id="${_e}"]`);if(!Ce)return null;const Te=Ce.cloneNode(!0);if(Te.removeAttribute("id"),"svg"===Te.nodeName.toLowerCase())return this._setSvgAttributes(Te,ge);if("symbol"===Te.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Te),ge);const De=this._svgElementFromString(E("<svg></svg>"));return De.appendChild(Te),this._setSvgAttributes(De,ge)}_svgElementFromString(ne){const _e=this._document.createElement("DIV");_e.innerHTML=ne;const ge=_e.querySelector("svg");if(!ge)throw Error("<svg> tag not found");return ge}_toSvgElement(ne){const _e=this._svgElementFromString(E("<svg></svg>")),ge=ne.attributes;for(let Ce=0;Ce<ge.length;Ce++){const{name:Te,value:De}=ge[Ce];"id"!==Te&&_e.setAttribute(Te,De)}for(let Ce=0;Ce<ne.childNodes.length;Ce++)ne.childNodes[Ce].nodeType===this._document.ELEMENT_NODE&&_e.appendChild(ne.childNodes[Ce].cloneNode(!0));return _e}_setSvgAttributes(ne,_e){return ne.setAttribute("fit",""),ne.setAttribute("height","100%"),ne.setAttribute("width","100%"),ne.setAttribute("preserveAspectRatio","xMidYMid meet"),ne.setAttribute("focusable","false"),_e&&_e.viewBox&&ne.setAttribute("viewBox",_e.viewBox),ne}_fetchIcon(ne){const{url:_e,options:ge}=ne,Ce=ge?.withCredentials??!1;if(!this._httpClient)throw function I(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==_e)throw Error(`Cannot fetch icon from URL "${_e}".`);const Te=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,_e);if(!Te)throw L(_e);const De=this._inProgressUrlFetches.get(Te);if(De)return De;const fe=this._httpClient.get(Te,{responseType:"text",withCredentials:Ce}).pipe((0,_.U)(xe=>E(xe)),(0,R.x)(()=>this._inProgressUrlFetches.delete(Te)),(0,x.B)());return this._inProgressUrlFetches.set(Te,fe),fe}_addSvgIconConfig(ne,_e,ge){return this._svgIconConfigs.set(K(ne,_e),ge),this}_addSvgIconSetConfig(ne,_e){const ge=this._iconSetConfigs.get(ne);return ge?ge.push(_e):this._iconSetConfigs.set(ne,[_e]),this}_svgElementFromConfig(ne){if(!ne.svgElement){const _e=this._svgElementFromString(ne.svgText);this._setSvgAttributes(_e,ne.options),ne.svgElement=_e}return ne.svgElement}_getIconConfigFromResolvers(ne,_e){for(let ge=0;ge<this._resolvers.length;ge++){const Ce=this._resolvers[ge](_e,ne);if(Ce)return X(Ce)?new F(Ce.url,null,Ce.options):new F(Ce,null)}}static#e=this.\u0275fac=function(_e){return new(_e||q)(e.LFG(k.eN,8),e.LFG(w.H7),e.LFG(a.K0,8),e.LFG(e.qLn))};static#t=this.\u0275prov=e.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})();function V(q){return q.cloneNode(!0)}function K(q,se){return q+":"+se}function X(q){return!(!q.url||!q.options)}const me=(0,n.pj)(class{constructor(q){this._elementRef=q}}),J=new e.OlP("MAT_ICON_DEFAULT_OPTIONS"),Q=new e.OlP("mat-icon-location",{providedIn:"root",factory:function re(){const q=(0,e.f3M)(a.K0),se=q?q.location:null;return{getPathname:()=>se?se.pathname+se.search:""}}}),de=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],te=de.map(q=>`[${q}]`).join(", "),j=/^url\(['"]?#(.*?)['"]?\)$/;let H=(()=>{class q extends me{get inline(){return this._inline}set inline(ne){this._inline=(0,o.Ig)(ne)}get svgIcon(){return this._svgIcon}set svgIcon(ne){ne!==this._svgIcon&&(ne?this._updateSvgIcon(ne):this._svgIcon&&this._clearSvgElement(),this._svgIcon=ne)}get fontSet(){return this._fontSet}set fontSet(ne){const _e=this._cleanupFontValue(ne);_e!==this._fontSet&&(this._fontSet=_e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(ne){const _e=this._cleanupFontValue(ne);_e!==this._fontIcon&&(this._fontIcon=_e,this._updateFontIconClasses())}constructor(ne,_e,ge,Ce,Te,De){super(ne),this._iconRegistry=_e,this._location=Ce,this._errorHandler=Te,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=s.w0.EMPTY,De&&(De.color&&(this.color=this.defaultColor=De.color),De.fontSet&&(this.fontSet=De.fontSet)),ge||ne.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(ne){if(!ne)return["",""];const _e=ne.split(":");switch(_e.length){case 1:return["",_e[0]];case 2:return _e;default:throw Error(`Invalid icon name: "${ne}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const ne=this._elementsWithExternalReferences;if(ne&&ne.size){const _e=this._location.getPathname();_e!==this._previousPath&&(this._previousPath=_e,this._prependPathToReferences(_e))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(ne){this._clearSvgElement();const _e=this._location.getPathname();this._previousPath=_e,this._cacheChildrenWithExternalReferences(ne),this._prependPathToReferences(_e),this._elementRef.nativeElement.appendChild(ne)}_clearSvgElement(){const ne=this._elementRef.nativeElement;let _e=ne.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();_e--;){const ge=ne.childNodes[_e];(1!==ge.nodeType||"svg"===ge.nodeName.toLowerCase())&&ge.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const ne=this._elementRef.nativeElement,_e=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(ge=>ge.length>0);this._previousFontSetClass.forEach(ge=>ne.classList.remove(ge)),_e.forEach(ge=>ne.classList.add(ge)),this._previousFontSetClass=_e,this.fontIcon!==this._previousFontIconClass&&!_e.includes("mat-ligature-font")&&(this._previousFontIconClass&&ne.classList.remove(this._previousFontIconClass),this.fontIcon&&ne.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(ne){return"string"==typeof ne?ne.trim().split(" ")[0]:ne}_prependPathToReferences(ne){const _e=this._elementsWithExternalReferences;_e&&_e.forEach((ge,Ce)=>{ge.forEach(Te=>{Ce.setAttribute(Te.name,`url('${ne}#${Te.value}')`)})})}_cacheChildrenWithExternalReferences(ne){const _e=ne.querySelectorAll(te),ge=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Ce=0;Ce<_e.length;Ce++)de.forEach(Te=>{const De=_e[Ce],fe=De.getAttribute(Te),xe=fe?fe.match(j):null;if(xe){let Oe=ge.get(De);Oe||(Oe=[],ge.set(De,Oe)),Oe.push({name:Te,value:xe[1]})}})}_updateSvgIcon(ne){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),ne){const[_e,ge]=this._splitIconName(ne);_e&&(this._svgNamespace=_e),ge&&(this._svgName=ge),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(ge,_e).pipe((0,f.q)(1)).subscribe(Ce=>this._setSvgElement(Ce),Ce=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${_e}:${ge}! ${Ce.message}`))})}}static#e=this.\u0275fac=function(_e){return new(_e||q)(e.Y36(e.SBq),e.Y36(P),e.$8M("aria-hidden"),e.Y36(Q),e.Y36(e.qLn),e.Y36(J,8))};static#t=this.\u0275cmp=e.Xpm({type:q,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(_e,ge){2&_e&&(e.uIk("data-mat-icon-type",ge._usingFontIcon()?"font":"svg")("data-mat-icon-name",ge._svgName||ge.fontIcon)("data-mat-icon-namespace",ge._svgNamespace||ge.fontSet)("fontIcon",ge._usingFontIcon()?ge.fontIcon:null),e.ekj("mat-icon-inline",ge.inline)("mat-icon-no-color","primary"!==ge.color&&"accent"!==ge.color&&"warn"!==ge.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:g,decls:1,vars:0,template:function(_e,ge){1&_e&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return q})(),z=(()=>{class q{static#e=this.\u0275fac=function(_e){return new(_e||q)};static#t=this.\u0275mod=e.oAB({type:q});static#n=this.\u0275inj=e.cJS({imports:[n.BQ,n.BQ]})}return q})()},24516:(he,y,i)=>{"use strict";i.d(y,{Jk:()=>_,Nt:()=>f,c:()=>k});var e=i(42495),n=i(62831),o=i(56263),a=i(65879),l=i(56223),u=i(23680),d=i(64170),s=i(78645);const _=new a.OlP("MAT_INPUT_VALUE_ACCESSOR"),C=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let R=0;const x=(0,u.FD)(class{constructor(w,g,M,p){this._defaultErrorStateMatcher=w,this._parentForm=g,this._parentFormGroup=M,this.ngControl=p,this.stateChanges=new s.x}});let f=(()=>{class w extends x{get disabled(){return this._disabled}set disabled(M){this._disabled=(0,e.Ig)(M),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(M){this._id=M||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(l.kI.required)??!1}set required(M){this._required=(0,e.Ig)(M)}get type(){return this._type}set type(M){this._type=M||"text",this._validateType(),!this._isTextarea&&(0,n.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(M){M!==this.value&&(this._inputValueAccessor.value=M,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(M){this._readonly=(0,e.Ig)(M)}constructor(M,p,E,b,I,L,D,F,P,O){super(L,b,I,E),this._elementRef=M,this._platform=p,this._autofillMonitor=F,this._formField=O,this._uid="mat-input-"+R++,this.focused=!1,this.stateChanges=new s.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(K=>(0,n.qK)().has(K)),this._iOSKeyupListener=K=>{const X=K.target;!X.value&&0===X.selectionStart&&0===X.selectionEnd&&(X.setSelectionRange(1,1),X.setSelectionRange(0,0))};const U=this._elementRef.nativeElement,V=U.nodeName.toLowerCase();this._inputValueAccessor=D||U,this._previousNativeValue=this.value,this.id=this.id,p.IOS&&P.runOutsideAngular(()=>{M.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===V,this._isTextarea="textarea"===V,this._isInFormField=!!O,this._isNativeSelect&&(this.controlType=U.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(M=>{this.autofilled=M.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(M){this._elementRef.nativeElement.focus(M)}_focusChanged(M){M!==this.focused&&(this.focused=M,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const M=this._elementRef.nativeElement.value;this._previousNativeValue!==M&&(this._previousNativeValue=M,this.stateChanges.next())}_dirtyCheckPlaceholder(){const M=this._getPlaceholder();if(M!==this._previousPlaceholder){const p=this._elementRef.nativeElement;this._previousPlaceholder=M,M?p.setAttribute("placeholder",M):p.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){C.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let M=this._elementRef.nativeElement.validity;return M&&M.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const M=this._elementRef.nativeElement,p=M.options[0];return this.focused||M.multiple||!this.empty||!!(M.selectedIndex>-1&&p&&p.label)}return this.focused||!this.empty}setDescribedByIds(M){M.length?this._elementRef.nativeElement.setAttribute("aria-describedby",M.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const M=this._elementRef.nativeElement;return this._isNativeSelect&&(M.multiple||M.size>1)}static#e=this.\u0275fac=function(p){return new(p||w)(a.Y36(a.SBq),a.Y36(n.t4),a.Y36(l.a5,10),a.Y36(l.F,8),a.Y36(l.sg,8),a.Y36(u.rD),a.Y36(_,10),a.Y36(o.Lq),a.Y36(a.R0b),a.Y36(d.G_,8))};static#t=this.\u0275dir=a.lG2({type:w,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(p,E){1&p&&a.NdJ("focus",function(){return E._focusChanged(!0)})("blur",function(){return E._focusChanged(!1)})("input",function(){return E._onInput()}),2&p&&(a.Ikx("id",E.id)("disabled",E.disabled)("required",E.required),a.uIk("name",E.name||null)("readonly",E.readonly&&!E._isNativeSelect||null)("aria-invalid",E.empty&&E.required?null:E.errorState)("aria-required",E.required)("id",E.id),a.ekj("mat-input-server",E._isServer)("mat-mdc-form-field-textarea-control",E._isInFormField&&E._isTextarea)("mat-mdc-form-field-input-control",E._isInFormField)("mdc-text-field__input",E._isInFormField)("mat-mdc-native-select-inline",E._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[a._Bn([{provide:d.Eo,useExisting:w}]),a.qOj,a.TTD]})}return w})(),k=(()=>{class w{static#e=this.\u0275fac=function(p){return new(p||w)};static#t=this.\u0275mod=a.oAB({type:w});static#n=this.\u0275inj=a.cJS({imports:[u.BQ,d.lN,d.lN,o.Ky,u.BQ]})}return w})()},21819:(he,y,i)=>{"use strict";i.d(y,{D8:()=>k,QJ:()=>x,VN:()=>C});var e=i(65879),n=i(23680),o=i(24678),a=i(24630),l=i(96814),u=i(69594),d=i(16672),s=i(56223);function A(w,g){if(1&w&&(e.TgZ(0,"div",0,1),e.Hsn(2),e.qZA()),2&w){const M=g.id,p=e.oxw();e.Q6J("id",p.id)("ngClass",p._classList),e.uIk("aria-label",p.ariaLabel||null)("aria-labelledby",p._getPanelAriaLabelledby(M))}}const _=["*"];let C=(()=>{class w extends a.Mz{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}static#e=this.\u0275fac=function(){let M;return function(E){return(M||(M=e.n5z(w)))(E||w)}}();static#t=this.\u0275cmp=e.Xpm({type:w,selectors:[["mat-autocomplete"]],contentQueries:function(p,E,b){if(1&p&&(e.Suo(b,n.K7,5),e.Suo(b,o.CK,5)),2&p){let I;e.iGM(I=e.CRH())&&(E.optionGroups=I),e.iGM(I=e.CRH())&&(E.options=I)}},hostAttrs:["ngSkipHydration","",1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[e._Bn([{provide:n.HF,useExisting:w}]),e.qOj],ngContentSelectors:_,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(p,E){1&p&&(e.F$t(),e.YNc(0,A,3,4,"ng-template"))},dependencies:[l.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0})}return w})();const R={provide:s.JU,useExisting:(0,e.Gpc)(()=>x),multi:!0};let x=(()=>{class w extends a.VI{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}static#e=this.\u0275fac=function(){let M;return function(E){return(M||(M=e.n5z(w)))(E||w)}}();static#t=this.\u0275dir=e.lG2({type:w,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(p,E){1&p&&e.NdJ("focusin",function(){return E._handleFocus()})("blur",function(){return E._onTouched()})("input",function(I){return E._handleInput(I)})("keydown",function(I){return E._handleKeydown(I)})("click",function(){return E._handleClick()}),2&p&&e.uIk("autocomplete",E.autocompleteAttribute)("role",E.autocompleteDisabled?null:"combobox")("aria-autocomplete",E.autocompleteDisabled?null:"list")("aria-activedescendant",E.panelOpen&&E.activeOption?E.activeOption.id:null)("aria-expanded",E.autocompleteDisabled?null:E.panelOpen.toString())("aria-owns",E.autocompleteDisabled||!E.panelOpen||null==E.autocomplete?null:E.autocomplete.id)("aria-haspopup",E.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[e._Bn([R]),e.qOj]})}return w})(),k=(()=>{class w{static#e=this.\u0275fac=function(p){return new(p||w)};static#t=this.\u0275mod=e.oAB({type:w});static#n=this.\u0275inj=e.cJS({providers:[a.zp],imports:[u.U8,o.Uc,n.BQ,l.ez,d.ZD,o.Uc,n.BQ]})}return w})()},94505:(he,y,i)=>{"use strict";i.d(y,{Nr:()=>C,eB:()=>_,yu:()=>R});var e=i(65879),n=i(23680),o=i(4300);const a=["mat-button",""],l=["*"],s=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],A=(0,n.pj)((0,n.Id)((0,n.Kr)(class{constructor(x){this._elementRef=x}})));let _=(()=>{class x extends A{constructor(k,w,g){super(k),this._focusMonitor=w,this._animationMode=g,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const M of s)this._hasHostAttributes(M)&&this._getHostElement().classList.add(M);k.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(k,w){k?this._focusMonitor.focusVia(this._getHostElement(),k,w):this._getHostElement().focus(w)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...k){return k.some(w=>this._getHostElement().hasAttribute(w))}static#e=this.\u0275fac=function(w){return new(w||x)(e.Y36(e.SBq),e.Y36(o.tE),e.Y36(e.QbO,8))};static#t=this.\u0275cmp=e.Xpm({type:x,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(w,g){if(1&w&&e.Gf(n.wG,5),2&w){let M;e.iGM(M=e.CRH())&&(g.ripple=M.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(w,g){2&w&&(e.uIk("disabled",g.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===g._animationMode)("mat-button-disabled",g.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(w,g){1&w&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1)(3,"span",2)),2&w&&(e.xp6(2),e.ekj("mat-button-ripple-round",g.isRoundButton||g.isIconButton),e.Q6J("matRippleDisabled",g._isRippleDisabled())("matRippleCentered",g.isIconButton)("matRippleTrigger",g._getHostElement()))},dependencies:[n.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return x})(),C=(()=>{class x extends _{constructor(k,w,g,M){super(w,k,g),this._ngZone=M,this._haltDisabledEvents=p=>{this.disabled&&(p.preventDefault(),p.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}static#e=this.\u0275fac=function(w){return new(w||x)(e.Y36(o.tE),e.Y36(e.SBq),e.Y36(e.QbO,8),e.Y36(e.R0b,8))};static#t=this.\u0275cmp=e.Xpm({type:x,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(w,g){2&w&&(e.uIk("tabindex",g.disabled?-1:g.tabIndex)("disabled",g.disabled||null)("aria-disabled",g.disabled.toString()),e.ekj("_mat-animation-noopable","NoopAnimations"===g._animationMode)("mat-button-disabled",g.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[e.qOj],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(w,g){1&w&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1)(3,"span",2)),2&w&&(e.xp6(2),e.ekj("mat-button-ripple-round",g.isRoundButton||g.isIconButton),e.Q6J("matRippleDisabled",g._isRippleDisabled())("matRippleCentered",g.isIconButton)("matRippleTrigger",g._getHostElement()))},dependencies:[n.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return x})(),R=(()=>{class x{static#e=this.\u0275fac=function(w){return new(w||x)};static#t=this.\u0275mod=e.oAB({type:x});static#n=this.\u0275inj=e.cJS({imports:[n.si,n.BQ,n.BQ]})}return x})()},29025:(he,y,i)=>{"use strict";i.d(y,{Fx:()=>R,IF:()=>L,Qi:()=>A,S$:()=>E,_K:()=>C,k0:()=>f,lb:()=>p,mi:()=>_,u7:()=>b});var e=i(65879),n=i(23680);const o=["*",[["mat-card-footer"]]],a=["*","mat-card-footer"],l=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],u=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n      [mat-card-title], [mat-card-subtitle],\n      [matCardTitle], [matCardSubtitle]","*"];let A=(()=>{class D{static#e=this.\u0275fac=function(O){return new(O||D)};static#t=this.\u0275dir=e.lG2({type:D,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]})}return D})(),_=(()=>{class D{static#e=this.\u0275fac=function(O){return new(O||D)};static#t=this.\u0275dir=e.lG2({type:D,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]})}return D})(),C=(()=>{class D{static#e=this.\u0275fac=function(O){return new(O||D)};static#t=this.\u0275dir=e.lG2({type:D,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]})}return D})(),R=(()=>{class D{constructor(){this.align="start"}static#e=this.\u0275fac=function(O){return new(O||D)};static#t=this.\u0275dir=e.lG2({type:D,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(O,U){2&O&&e.ekj("mat-card-actions-align-end","end"===U.align)},inputs:{align:"align"},exportAs:["matCardActions"]})}return D})(),f=(()=>{class D{static#e=this.\u0275fac=function(O){return new(O||D)};static#t=this.\u0275dir=e.lG2({type:D,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]})}return D})(),p=(()=>{class D{static#e=this.\u0275fac=function(O){return new(O||D)};static#t=this.\u0275dir=e.lG2({type:D,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]})}return D})(),E=(()=>{class D{constructor(P){this._animationMode=P}static#e=this.\u0275fac=function(O){return new(O||D)(e.Y36(e.QbO,8))};static#t=this.\u0275cmp=e.Xpm({type:D,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(O,U){2&O&&e.ekj("_mat-animation-noopable","NoopAnimations"===U._animationMode)},exportAs:["matCard"],ngContentSelectors:a,decls:2,vars:0,template:function(O,U){1&O&&(e.F$t(o),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0})}return D})(),b=(()=>{class D{static#e=this.\u0275fac=function(O){return new(O||D)};static#t=this.\u0275cmp=e.Xpm({type:D,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:u,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(O,U){1&O&&(e.F$t(l),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0})}return D})(),L=(()=>{class D{static#e=this.\u0275fac=function(O){return new(O||D)};static#t=this.\u0275mod=e.oAB({type:D});static#n=this.\u0275inj=e.cJS({imports:[n.BQ,n.BQ]})}return D})()},45754:(he,y,i)=>{"use strict";i.d(y,{FC:()=>C,Zh:()=>R});var e=i(4300),n=i(65879),o=i(56223),a=i(75986),l=i(23680),u=i(17131);const d=function(x){return{enterDuration:x}},s=["*"];class A{}const _={provide:o.JU,useExisting:(0,n.Gpc)(()=>C),multi:!0};let C=(()=>{class x extends a.MB{constructor(k,w,g,M,p,E,b){super("mat-checkbox-",k,w,M,p,E,b),this._focusMonitor=g,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(k){const w=new A;return w.source=this,w.checked=k,w}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(k=>{k||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(k){k.stopPropagation(),super._handleInputClick()}focus(k,w){k?this._focusMonitor.focusVia(this._inputElement,k,w):this._inputElement.nativeElement.focus(w)}static#e=this.\u0275fac=function(w){return new(w||x)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(e.tE),n.Y36(n.R0b),n.$8M("tabindex"),n.Y36(n.QbO,8),n.Y36(a.$u,8))};static#t=this.\u0275cmp=n.Xpm({type:x,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(w,g){2&w&&(n.Ikx("id",g.id),n.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),n.ekj("mat-checkbox-indeterminate",g.indeterminate)("mat-checkbox-checked",g.checked)("mat-checkbox-disabled",g.disabled)("mat-checkbox-label-before","before"==g.labelPosition)("_mat-animation-noopable","NoopAnimations"===g._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[n._Bn([_]),n.qOj],ngContentSelectors:s,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(w,g){if(1&w&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),n.NdJ("change",function(p){return g._onInteractionEvent(p)})("click",function(p){return g._onInputClick(p)}),n.qZA(),n.TgZ(5,"span",5),n._UZ(6,"span",6),n.qZA(),n._UZ(7,"span",7),n.TgZ(8,"span",8),n.O4$(),n.TgZ(9,"svg",9),n._UZ(10,"path",10),n.qZA(),n.kcU(),n._UZ(11,"span",11),n.qZA()(),n.TgZ(12,"span",12,13),n.NdJ("cdkObserveContent",function(){return g._onLabelTextChange()}),n.TgZ(14,"span",14),n._uU(15,"\xa0"),n.qZA(),n.Hsn(16),n.qZA()()),2&w){const M=n.MAs(1),p=n.MAs(13);n.uIk("for",g.inputId),n.xp6(2),n.ekj("mat-checkbox-inner-container-no-side-margin",!p.textContent||!p.textContent.trim()),n.xp6(1),n.Q6J("id",g.inputId)("required",g.required)("checked",g.checked)("disabled",g.disabled)("tabIndex",g.tabIndex),n.uIk("value",g.value)("name",g.name)("aria-label",g.ariaLabel||null)("aria-labelledby",g.ariaLabelledby)("aria-describedby",g.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",M)("matRippleDisabled",g._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",n.VKq(18,d,"NoopAnimations"===g._animationMode?0:150))}},dependencies:[l.wG,u.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return x})(),R=(()=>{class x{static#e=this.\u0275fac=function(w){return new(w||x)};static#t=this.\u0275mod=n.oAB({type:x});static#n=this.\u0275inj=n.cJS({imports:[l.si,l.BQ,u.Q8,a.LX,l.BQ,a.LX]})}return x})()},26177:(he,y,i)=>{"use strict";i.d(y,{IP:()=>Q,Y6:()=>O,ir:()=>me,lw:()=>P,yD:()=>de});var e=i(36028),n=i(65879),o=i(23680),a=i(42495),l=i(62831),u=i(96814),d=i(78645),s=i(63019),A=i(48180),_=i(59773),C=i(27921),R=i(4300),x=i(49388),f=i(78337),k=i(56223),w=i(64170);const g=["*"],p=new n.OlP("MatChipRemove"),E=new n.OlP("MatChipAvatar"),b=new n.OlP("MatChipTrailingIcon");class I{constructor(j){this._elementRef=j}}const L=(0,o.sb)((0,o.pj)((0,o.Kr)(I),"primary"),-1);let P=(()=>{class te extends L{get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(H){const z=(0,a.Ig)(H);z!==this._selected&&(this._selected=z,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(H){this._value=H}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(H){this._selectable=(0,a.Ig)(H)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(H){this._disabled=(0,a.Ig)(H)}get removable(){return this._removable}set removable(H){this._removable=(0,a.Ig)(H)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}constructor(H,z,q,se,ne,_e,ge,Ce){super(H),this._ngZone=z,this._changeDetectorRef=ne,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new d.x,this._onBlur=new d.x,this.selectionChange=new n.vpe,this.destroyed=new n.vpe,this.removed=new n.vpe,this._addHostClassName(),this._chipRippleTarget=_e.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new o.IR(this,z,this._chipRippleTarget,q),this._chipRipple.setupTriggerEvents(H),this.rippleConfig=se||{},this._animationsDisabled="NoopAnimations"===ge,this.tabIndex=null!=Ce&&parseInt(Ce)||-1}_addHostClassName(){const H="mat-basic-chip",z=this._elementRef.nativeElement;z.hasAttribute(H)||z.tagName.toLowerCase()===H?z.classList.add(H):z.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(H=!1){return this._selected=!this.selected,this._dispatchSelectionChange(H),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(H){this.disabled&&H.preventDefault()}_handleKeydown(H){if(!this.disabled)switch(H.keyCode){case e.yY:case e.ZH:this.remove(),H.preventDefault();break;case e.L_:this.selectable&&this.toggleSelected(!0),H.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,A.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(H=!1){this.selectionChange.emit({source:this,isUserInput:H,selected:this._selected})}static#e=this.\u0275fac=function(z){return new(z||te)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(l.t4),n.Y36(o.Y2,8),n.Y36(n.sBO),n.Y36(u.K0),n.Y36(n.QbO,8),n.$8M("tabindex"))};static#t=this.\u0275dir=n.lG2({type:te,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(z,q,se){if(1&z&&(n.Suo(se,E,5),n.Suo(se,b,5),n.Suo(se,p,5)),2&z){let ne;n.iGM(ne=n.CRH())&&(q.avatar=ne.first),n.iGM(ne=n.CRH())&&(q.trailingIcon=ne.first),n.iGM(ne=n.CRH())&&(q.removeIcon=ne.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(z,q){1&z&&n.NdJ("click",function(ne){return q._handleClick(ne)})("keydown",function(ne){return q._handleKeydown(ne)})("focus",function(){return q.focus()})("blur",function(){return q._blur()}),2&z&&(n.uIk("tabindex",q.disabled?null:q.tabIndex)("role",q.role)("disabled",q.disabled||null)("aria-disabled",q.disabled.toString())("aria-selected",q.ariaSelected),n.ekj("mat-chip-selected",q.selected)("mat-chip-with-avatar",q.avatar)("mat-chip-with-trailing-icon",q.trailingIcon||q.removeIcon)("mat-chip-disabled",q.disabled)("_mat-animation-noopable",q._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[n.qOj]})}return te})(),O=(()=>{class te{constructor(H,z){this._parentChip=H,"BUTTON"===z.nativeElement.nodeName&&z.nativeElement.setAttribute("type","button")}_handleClick(H){const z=this._parentChip;z.removable&&!z.disabled&&z.remove(),H.stopPropagation(),H.preventDefault()}static#e=this.\u0275fac=function(z){return new(z||te)(n.Y36(P),n.Y36(n.SBq))};static#t=this.\u0275dir=n.lG2({type:te,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(z,q){1&z&&n.NdJ("click",function(ne){return q._handleClick(ne)})},features:[n._Bn([{provide:p,useExisting:te}])]})}return te})();const U=new n.OlP("mat-chips-default-options"),V=(0,o.FD)(class{constructor(te,j,H,z){this._defaultErrorStateMatcher=te,this._parentForm=j,this._parentFormGroup=H,this.ngControl=z,this.stateChanges=new d.x}});let K=0;class X{constructor(j,H){this.source=j,this.value=H}}let me=(()=>{class te extends V{get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(H){this._explicitRole=H}get multiple(){return this._multiple}set multiple(H){this._multiple=(0,a.Ig)(H),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(H){this._compareWith=H,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(H){this.writeValue(H),this._value=H}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(k.kI.required)??!1}set required(H){this._required=(0,a.Ig)(H),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(H){this._placeholder=H,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(H){this._disabled=(0,a.Ig)(H),this._syncChipsState()}get selectable(){return this._selectable}set selectable(H){this._selectable=(0,a.Ig)(H),this._syncChipsState()}set tabIndex(H){this._userTabIndex=H,this._tabIndex=H}get chipSelectionChanges(){return(0,s.T)(...this.chips.map(H=>H.selectionChange))}get chipFocusChanges(){return(0,s.T)(...this.chips.map(H=>H._onFocus))}get chipBlurChanges(){return(0,s.T)(...this.chips.map(H=>H._onBlur))}get chipRemoveChanges(){return(0,s.T)(...this.chips.map(H=>H.destroyed))}constructor(H,z,q,se,ne,_e,ge){super(_e,se,ne,ge),this._elementRef=H,this._changeDetectorRef=z,this._dir=q,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new d.x,this._uid="mat-chip-list-"+K++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(Ce,Te)=>Ce===Te,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new n.vpe,this.valueChange=new n.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this._keyManager=new R.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,_.R)(this._destroyed)).subscribe(H=>this._keyManager.withHorizontalOrientation(H)),this._keyManager.tabOut.subscribe(()=>this._allowFocusEscape()),this.chips.changes.pipe((0,C.O)(null),(0,_.R)(this._destroyed)).subscribe(()=>{(this.disabled||!this.selectable)&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new f.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(H){this._chipInput=H,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",H.id)}setDescribedByIds(H){H.length?this._elementRef.nativeElement.setAttribute("aria-describedby",H.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(H){this.chips&&this._setSelectionByValue(H,!1)}registerOnChange(H){this._onChange=H}registerOnTouched(H){this._onTouched=H}setDisabledState(H){this.disabled=H,this.stateChanges.next()}onContainerClick(H){this._originatesFromChip(H)||this.focus()}focus(H){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(H),this.stateChanges.next()))}_focusInput(H){this._chipInput&&this._chipInput.focus(H)}_keydown(H){const z=H.target;z&&z.classList.contains("mat-chip")&&(this._keyManager.onKeydown(H),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const H=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(H)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(H){return H>=0&&H<this.chips.length}_setSelectionByValue(H,z=!0){if(this._clearSelection(),this.chips.forEach(q=>q.deselect()),Array.isArray(H))H.forEach(q=>this._selectValue(q,z)),this._sortValues();else{const q=this._selectValue(H,z);q&&z&&this._keyManager.setActiveItem(q)}}_selectValue(H,z=!0){const q=this.chips.find(se=>null!=se.value&&this._compareWith(se.value,H));return q&&(z?q.selectViaInteraction():q.select(),this._selectionModel.select(q)),q}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(H){this._selectionModel.clear(),this.chips.forEach(z=>{z!==H&&z.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(H=>{H.selected&&this._selectionModel.select(H)}),this.stateChanges.next())}_propagateChanges(H){let z=null;z=Array.isArray(this.selected)?this.selected.map(q=>q.value):this.selected?this.selected.value:H,this._value=z,this.change.emit(new X(this,z)),this.valueChange.emit(z),this._onChange(z),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(H=>{H.source.selected?this._selectionModel.select(H.source):this._selectionModel.deselect(H.source),this.multiple||this.chips.forEach(z=>{!this._selectionModel.isSelected(z)&&z.selected&&z.deselect()}),H.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(H=>{let z=this.chips.toArray().indexOf(H.chip);this._isValidIndex(z)&&this._keyManager.updateActiveItem(z),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(H=>{const z=H.chip,q=this.chips.toArray().indexOf(H.chip);this._isValidIndex(q)&&z._hasFocus&&(this._lastDestroyedChipIndex=q)})}_originatesFromChip(H){let z=H.target;for(;z&&z!==this._elementRef.nativeElement;){if(z.classList.contains("mat-chip"))return!0;z=z.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(H=>H._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(H=>{H._chipListDisabled=this._disabled,H._chipListMultiple=this.multiple,H.chipListSelectable=this._selectable})}static#e=this.\u0275fac=function(z){return new(z||te)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(x.Is,8),n.Y36(k.F,8),n.Y36(k.sg,8),n.Y36(o.rD),n.Y36(k.a5,10))};static#t=this.\u0275cmp=n.Xpm({type:te,selectors:[["mat-chip-list"]],contentQueries:function(z,q,se){if(1&z&&n.Suo(se,P,5),2&z){let ne;n.iGM(ne=n.CRH())&&(q.chips=ne)}},hostAttrs:["ngSkipHydration","",1,"mat-chip-list"],hostVars:14,hostBindings:function(z,q){1&z&&n.NdJ("focus",function(){return q.focus()})("blur",function(){return q._blur()})("keydown",function(ne){return q._keydown(ne)}),2&z&&(n.Ikx("id",q._uid),n.uIk("tabindex",q.disabled?null:q._tabIndex)("aria-required",q.role?q.required:null)("aria-disabled",q.disabled.toString())("aria-invalid",q.errorState)("aria-multiselectable",q.multiple)("role",q.role)("aria-orientation",q.ariaOrientation),n.ekj("mat-chip-list-disabled",q.disabled)("mat-chip-list-invalid",q.errorState)("mat-chip-list-required",q.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[n._Bn([{provide:w.Eo,useExisting:te}]),n.qOj],ngContentSelectors:g,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(z,q){1&z&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0})}return te})(),J=0,Q=(()=>{class te{set chipList(H){H&&(this._chipList=H,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(H){this._addOnBlur=(0,a.Ig)(H)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(H){this._disabled=(0,a.Ig)(H)}get empty(){return!this.inputElement.value}constructor(H,z){this._elementRef=H,this.focused=!1,this._addOnBlur=!1,this.chipEnd=new n.vpe,this.placeholder="",this.id="mat-chip-list-input-"+J++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=z.separatorKeyCodes}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(H){if(H){if(H.keyCode===e.Mf&&!(0,e.Vb)(H,"shiftKey")&&this._chipList._allowFocusEscape(),H.keyCode===e.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void H.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(H)}_keyup(H){!this._focusLastChipOnBackspace&&H.keyCode===e.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,H.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(H){!this.inputElement.value&&H&&this._chipList._keydown(H),(!H||this._isSeparatorKey(H))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),H?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(H){this.inputElement.focus(H)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(H){return!(0,e.Vb)(H)&&new Set(this.separatorKeyCodes).has(H.keyCode)}static#e=this.\u0275fac=function(z){return new(z||te)(n.Y36(n.SBq),n.Y36(U))};static#t=this.\u0275dir=n.lG2({type:te,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(z,q){1&z&&n.NdJ("keydown",function(ne){return q._keydown(ne)})("keyup",function(ne){return q._keyup(ne)})("blur",function(){return q._blur()})("focus",function(){return q._focus()})("input",function(){return q._onInput()}),2&z&&(n.Ikx("id",q.id),n.uIk("disabled",q.disabled||null)("placeholder",q.placeholder||null)("aria-invalid",q._chipList&&q._chipList.ngControl?q._chipList.ngControl.invalid:null)("aria-required",q._chipList&&q._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[n.TTD]})}return te})(),de=(()=>{class te{static#e=this.\u0275fac=function(z){return new(z||te)};static#t=this.\u0275mod=n.oAB({type:te});static#n=this.\u0275inj=n.cJS({providers:[o.rD,{provide:U,useValue:{separatorKeyCodes:[e.K5]}}],imports:[o.BQ]})}return te})()},24678:(he,y,i)=>{"use strict";i.d(y,{CK:()=>_,NA:()=>A,Uc:()=>C});var e=i(65879),n=i(96814),o=i(23680);const a=["*",[["mat-option"],["ng-container"]]],l=["*","mat-option, ng-container"];function u(R,x){if(1&R&&e._UZ(0,"mat-pseudo-checkbox",5),2&R){const f=e.oxw();e.Q6J("state",f.selected?"checked":"unchecked")("disabled",f.disabled)}}function d(R,x){if(1&R&&(e.TgZ(0,"span",6),e._uU(1),e.qZA()),2&R){const f=e.oxw();e.xp6(1),e.hij("(",f.group.label,")")}}const s=["*"];let A=(()=>{class R extends o.DH{static#e=this.\u0275fac=function(){let f;return function(w){return(f||(f=e.n5z(R)))(w||R)}}();static#t=this.\u0275cmp=e.Xpm({type:R,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(k,w){2&k&&(e.uIk("role",w._inert?null:"group")("aria-disabled",w._inert?null:w.disabled.toString())("aria-labelledby",w._inert?null:w._labelId),e.ekj("mat-optgroup-disabled",w.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[e._Bn([{provide:o.K7,useExisting:R}]),e.qOj],ngContentSelectors:l,decls:4,vars:2,consts:[["role","presentation",1,"mat-optgroup-label",3,"id"]],template:function(k,w){1&k&&(e.F$t(a),e.TgZ(0,"span",0),e._uU(1),e.Hsn(2),e.qZA(),e.Hsn(3,1)),2&k&&(e.Q6J("id",w._labelId),e.xp6(1),e.hij("",w.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}"],encapsulation:2,changeDetection:0})}return R})(),_=(()=>{class R extends o.MP{constructor(f,k,w,g){super(f,k,w,g)}static#e=this.\u0275fac=function(k){return new(k||R)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(o.HF,8),e.Y36(o.K7,8))};static#t=this.\u0275cmp=e.Xpm({type:R,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(k,w){1&k&&e.NdJ("click",function(){return w._selectViaInteraction()})("keydown",function(M){return w._handleKeydown(M)}),2&k&&(e.Ikx("id",w.id),e.uIk("tabindex",w._getTabIndex())("aria-selected",w.selected)("aria-disabled",w.disabled.toString()),e.ekj("mat-selected",w.selected)("mat-option-multiple",w.multiple)("mat-active",w.active)("mat-option-disabled",w.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:s,decls:6,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["text",""],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(k,w){1&k&&(e.F$t(),e.YNc(0,u,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1,2),e.Hsn(3),e.qZA(),e.YNc(4,d,2,1,"span",3),e._UZ(5,"div",4)),2&k&&(e.Q6J("ngIf",w.multiple),e.xp6(4),e.Q6J("ngIf",w.group&&w.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",w._getHostElement())("matRippleDisabled",w.disabled||w.disableRipple))},dependencies:[o.wG,n.O5,o.nP],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0})}return R})(),C=(()=>{class R{static#e=this.\u0275fac=function(k){return new(k||R)};static#t=this.\u0275mod=e.oAB({type:R});static#n=this.\u0275inj=e.cJS({imports:[o.si,n.ez,o.BQ,o.us]})}return R})()},66878:(he,y,i)=>{"use strict";i.d(y,{Rb:()=>L,YS:()=>I,aO:()=>b,eJ:()=>f,ev:()=>D,hV:()=>x,on:()=>p,w6:()=>C,yj:()=>P});var e=i(77954),n=i(69594),o=i(68484),a=i(65879),l=i(23680),u=i(96814),d=i(4300),s=i(19347);function A(O,U){}const __params_enterAnimationDuration="150ms",__params_exitAnimationDuration="75ms";class C extends s.vA{constructor(){super(...arguments),this.enterAnimationDuration=s._H.params.enterAnimationDuration,this.exitAnimationDuration=s._H.params.exitAnimationDuration}}let R=(()=>{class O extends s.X2{_onAnimationDone({toState:V,totalTime:K}){"enter"===V?this._openAnimationDone(K):"exit"===V&&this._animationStateChanged.next({state:"closed",totalTime:K})}_onAnimationStart({toState:V,totalTime:K}){"enter"===V?this._animationStateChanged.next({state:"opening",totalTime:K}):("exit"===V||"void"===V)&&this._animationStateChanged.next({state:"closing",totalTime:K})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}constructor(V,K,X,me,J,Q,re,de,te){super(V,K,X,me,J,Q,re,te),this._changeDetectorRef=de,this._state="enter"}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||__params_enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||__params_exitAnimationDuration}}}static#e=this.\u0275fac=function(K){return new(K||O)(a.Y36(a.SBq),a.Y36(d.qV),a.Y36(u.K0,8),a.Y36(C),a.Y36(d.ic),a.Y36(a.R0b),a.Y36(n.Iu),a.Y36(a.sBO),a.Y36(d.tE))};static#t=this.\u0275cmp=a.Xpm({type:O,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(K,X){1&K&&a.WFA("@dialogContainer.start",function(J){return X._onAnimationStart(J)})("@dialogContainer.done",function(J){return X._onAnimationDone(J)}),2&K&&(a.Ikx("id",X._config.id),a.uIk("aria-modal",X._config.ariaModal)("role",X._config.role)("aria-labelledby",X._config.ariaLabel?null:X._ariaLabelledBy)("aria-label",X._config.ariaLabel)("aria-describedby",X._config.ariaDescribedBy||null),a.d8E("@dialogContainer",X._getAnimationState()))},features:[a.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(K,X){1&K&&a.YNc(0,A,0,0,"ng-template",0)},dependencies:[o.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[s.Nv.dialogContainer]}})}return O})();class x extends s.so{}const f=new a.OlP("MatDialogData"),k=new a.OlP("mat-dialog-default-options"),w=new a.OlP("mat-dialog-scroll-strategy"),M={provide:w,deps:[n.aV],useFactory:function g(O){return()=>O.scrollStrategies.block()}};let p=(()=>{class O extends s.Se{constructor(V,K,X,me,J,Q,re,de){super(V,K,me,Q,re,J,x,R,f,de),this.dialogConfigClass=C}static#e=this.\u0275fac=function(K){return new(K||O)(a.LFG(n.aV),a.LFG(a.zs3),a.LFG(u.Ye,8),a.LFG(k,8),a.LFG(w),a.LFG(O,12),a.LFG(n.Xj),a.LFG(a.QbO,8))};static#t=this.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac})}return O})(),E=0,b=(()=>{class O{constructor(V,K,X){this.dialogRef=V,this._elementRef=K,this._dialog=X,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=F(this._elementRef,this._dialog.openDialogs))}ngOnChanges(V){const K=V._matDialogClose||V._matDialogCloseResult;K&&(this.dialogResult=K.currentValue)}_onButtonClick(V){(0,s.RI)(this.dialogRef,0===V.screenX&&0===V.screenY?"keyboard":"mouse",this.dialogResult)}static#e=this.\u0275fac=function(K){return new(K||O)(a.Y36(x,8),a.Y36(a.SBq),a.Y36(p))};static#t=this.\u0275dir=a.lG2({type:O,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(K,X){1&K&&a.NdJ("click",function(J){return X._onButtonClick(J)}),2&K&&a.uIk("aria-label",X.ariaLabel||null)("type",X.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[a.TTD]})}return O})(),I=(()=>{class O{constructor(V,K,X){this._dialogRef=V,this._elementRef=K,this._dialog=X,this.id="mat-dialog-title-"+E++}ngOnInit(){this._dialogRef||(this._dialogRef=F(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const V=this._dialogRef._containerInstance;V&&!V._ariaLabelledBy&&(V._ariaLabelledBy=this.id)})}static#e=this.\u0275fac=function(K){return new(K||O)(a.Y36(x,8),a.Y36(a.SBq),a.Y36(p))};static#t=this.\u0275dir=a.lG2({type:O,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(K,X){2&K&&a.Ikx("id",X.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]})}return O})(),L=(()=>{class O{static#e=this.\u0275fac=function(K){return new(K||O)};static#t=this.\u0275dir=a.lG2({type:O,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]})}return O})(),D=(()=>{class O{constructor(){this.align="start"}static#e=this.\u0275fac=function(K){return new(K||O)};static#t=this.\u0275dir=a.lG2({type:O,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(K,X){2&K&&a.ekj("mat-dialog-actions-align-center","center"===X.align)("mat-dialog-actions-align-end","end"===X.align)},inputs:{align:"align"}})}return O})();function F(O,U){let V=O.nativeElement.parentElement;for(;V&&!V.classList.contains("mat-dialog-container");)V=V.parentElement;return V?U.find(K=>K.id===V.id):null}let P=(()=>{class O{static#e=this.\u0275fac=function(K){return new(K||O)};static#t=this.\u0275mod=a.oAB({type:O});static#n=this.\u0275inj=a.cJS({providers:[p,M],imports:[e.Su,n.U8,o.eL,l.BQ,l.BQ]})}return O})()},84187:(he,y,i)=>{"use strict";i.d(y,{$V:()=>de,Tl:()=>te,g4:()=>_e,nI:()=>me,nX:()=>ge,pH:()=>re,v_:()=>ne,wp:()=>Ce});var e=i(17131),n=i(96814),o=i(65879),a=i(23680),l=i(64170),u=i(49388),d=i(42495),s=i(78645),A=i(63019),_=i(92438),C=i(27921),R=i(59773),x=i(48180),f=i(62831);const k=["connectionContainer"],w=["inputContainer"],g=["label"];function M(Te,De){1&Te&&(o.ynx(0),o.TgZ(1,"div",14),o._UZ(2,"div",15)(3,"div",16)(4,"div",17),o.qZA(),o.TgZ(5,"div",18),o._UZ(6,"div",15)(7,"div",16)(8,"div",17),o.qZA(),o.BQk())}function p(Te,De){if(1&Te){const fe=o.EpF();o.TgZ(0,"div",19),o.NdJ("cdkObserveContent",function(){o.CHM(fe);const Oe=o.oxw();return o.KtG(Oe.updateOutlineGap())}),o.Hsn(1,1),o.qZA()}if(2&Te){const fe=o.oxw();o.Q6J("cdkObserveContentDisabled","outline"!=fe.appearance)}}function E(Te,De){if(1&Te&&(o.ynx(0),o.Hsn(1,2),o.TgZ(2,"span"),o._uU(3),o.qZA(),o.BQk()),2&Te){const fe=o.oxw(2);o.xp6(3),o.Oqu(fe._control.placeholder)}}function b(Te,De){1&Te&&o.Hsn(0,3,["*ngSwitchCase","true"])}function I(Te,De){1&Te&&(o.TgZ(0,"span",23),o._uU(1," *"),o.qZA())}function L(Te,De){if(1&Te){const fe=o.EpF();o.TgZ(0,"label",20,21),o.NdJ("cdkObserveContent",function(){o.CHM(fe);const Oe=o.oxw();return o.KtG(Oe.updateOutlineGap())}),o.YNc(2,E,4,1,"ng-container",12),o.YNc(3,b,1,0,"ng-content",12),o.YNc(4,I,2,0,"span",22),o.qZA()}if(2&Te){const fe=o.oxw();o.ekj("mat-empty",fe._control.empty&&!fe._shouldAlwaysFloat())("mat-form-field-empty",fe._control.empty&&!fe._shouldAlwaysFloat())("mat-accent","accent"==fe.color)("mat-warn","warn"==fe.color),o.Q6J("cdkObserveContentDisabled","outline"!=fe.appearance)("id",fe._labelId)("ngSwitch",fe._hasLabel()),o.uIk("for",fe._control.id)("aria-owns",fe._control.id),o.xp6(2),o.Q6J("ngSwitchCase",!1),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngIf",!fe.hideRequiredMarker&&fe._control.required&&!fe._control.disabled)}}function D(Te,De){1&Te&&(o.TgZ(0,"div",24),o.Hsn(1,4),o.qZA())}function F(Te,De){if(1&Te&&(o.TgZ(0,"div",25),o._UZ(1,"span",26),o.qZA()),2&Te){const fe=o.oxw();o.xp6(1),o.ekj("mat-accent","accent"==fe.color)("mat-warn","warn"==fe.color)}}function P(Te,De){if(1&Te&&(o.TgZ(0,"div"),o.Hsn(1,5),o.qZA()),2&Te){const fe=o.oxw();o.Q6J("@transitionMessages",fe._subscriptAnimationState)}}function O(Te,De){if(1&Te&&(o.TgZ(0,"div",30),o._uU(1),o.qZA()),2&Te){const fe=o.oxw(2);o.Q6J("id",fe._hintLabelId),o.xp6(1),o.Oqu(fe.hintLabel)}}function U(Te,De){if(1&Te&&(o.TgZ(0,"div",27),o.YNc(1,O,2,2,"div",28),o.Hsn(2,6),o._UZ(3,"div",29),o.Hsn(4,7),o.qZA()),2&Te){const fe=o.oxw();o.Q6J("@transitionMessages",fe._subscriptAnimationState),o.xp6(1),o.Q6J("ngIf",fe.hintLabel)}}const V=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],K=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let X=0,me=(()=>{class Te{constructor(fe,xe){this.id="mat-error-"+X++,fe||xe.nativeElement.setAttribute("aria-live","polite")}static#e=this.\u0275fac=function(xe){return new(xe||Te)(o.$8M("aria-live"),o.Y36(o.SBq))};static#t=this.\u0275dir=o.lG2({type:Te,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(xe,Oe){2&xe&&o.uIk("id",Oe.id)},inputs:{id:"id"},features:[o._Bn([{provide:l.ab,useExisting:Te}])]})}return Te})(),J=0;const Q=new o.OlP("MatHint");let re=(()=>{class Te{constructor(){this.align="start",this.id="mat-hint-"+J++}static#e=this.\u0275fac=function(xe){return new(xe||Te)};static#t=this.\u0275dir=o.lG2({type:Te,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(xe,Oe){2&xe&&(o.uIk("id",Oe.id)("align",null),o.ekj("mat-form-field-hint-end","end"===Oe.align))},inputs:{align:"align",id:"id"},features:[o._Bn([{provide:Q,useExisting:Te}])]})}return Te})(),de=(()=>{class Te{static#e=this.\u0275fac=function(xe){return new(xe||Te)};static#t=this.\u0275dir=o.lG2({type:Te,selectors:[["mat-label"]]})}return Te})(),te=(()=>{class Te{static#e=this.\u0275fac=function(xe){return new(xe||Te)};static#t=this.\u0275dir=o.lG2({type:Te,selectors:[["mat-placeholder"]]})}return Te})(),j=0;const q=(0,a.pj)(class{constructor(Te){this._elementRef=Te}},"primary"),se=new o.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS");let ne=(()=>{class Te extends q{get appearance(){return this._appearance}set appearance(fe){const xe=this._appearance;this._appearance=fe||this._defaults?.appearance||"legacy","outline"===this._appearance&&xe!==fe&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(fe){this._hideRequiredMarker=(0,d.Ig)(fe)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(fe){this._hintLabel=fe,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(fe){fe!==this._floatLabel&&(this._floatLabel=fe||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(fe){this._explicitFormFieldControl=fe}constructor(fe,xe,Oe,Le,Gt,Ut,An){super(fe),this._changeDetectorRef=xe,this._dir=Oe,this._defaults=Le,this._platform=Gt,this._ngZone=Ut,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new s.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+j++,this._labelId="mat-form-field-label-"+j++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==An,this.appearance=Le?.appearance||"legacy",Le&&(this._hideRequiredMarker=!!Le.hideRequiredMarker,Le.color&&(this.color=this.defaultColor=Le.color))}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const fe=this._control;fe.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${fe.controlType}`),fe.stateChanges.pipe((0,C.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),fe.ngControl&&fe.ngControl.valueChanges&&fe.ngControl.valueChanges.pipe((0,R.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,R.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,A.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,C.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,C.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,R.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(fe){const xe=this._control?this._control.ngControl:null;return xe&&xe[fe]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,_.R)(this._label.nativeElement,"transitionend").pipe((0,x.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let fe=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&fe.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const xe=this._hintChildren?this._hintChildren.find(Le=>"start"===Le.align):null,Oe=this._hintChildren?this._hintChildren.find(Le=>"end"===Le.align):null;xe?fe.push(xe.id):this._hintLabel&&fe.push(this._hintLabelId),Oe&&fe.push(Oe.id)}else this._errorChildren&&fe.push(...this._errorChildren.map(xe=>xe.id));this._control.setDescribedByIds(fe)}}_validateControlChild(){}updateOutlineGap(){const fe=this._label?this._label.nativeElement:null,xe=this._connectionContainerRef.nativeElement,Oe=".mat-form-field-outline-start",Le=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!fe||!fe.children.length||!fe.textContent.trim()){const xn=xe.querySelectorAll(`${Oe}, ${Le}`);for(let mt=0;mt<xn.length;mt++)xn[mt].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let Gt=0,Ut=0;const An=xe.querySelectorAll(Oe),$n=xe.querySelectorAll(Le);if(this._label&&this._label.nativeElement.children.length){const xn=xe.getBoundingClientRect();if(0===xn.width&&0===xn.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const mt=this._getStartEnd(xn),ut=fe.children,Wt=this._getStartEnd(ut[0].getBoundingClientRect());let dn=0;for(let sn=0;sn<ut.length;sn++)dn+=ut[sn].offsetWidth;Gt=Math.abs(Wt-mt)-5,Ut=dn>0?.75*dn+10:0}for(let xn=0;xn<An.length;xn++)An[xn].style.width=`${Gt}px`;for(let xn=0;xn<$n.length;xn++)$n[xn].style.width=`${Ut}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(fe){return this._dir&&"rtl"===this._dir.value?fe.right:fe.left}_isAttachedToDOM(){const fe=this._elementRef.nativeElement;if(fe.getRootNode){const xe=fe.getRootNode();return xe&&xe!==fe}return document.documentElement.contains(fe)}static#e=this.\u0275fac=function(xe){return new(xe||Te)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(u.Is,8),o.Y36(se,8),o.Y36(f.t4),o.Y36(o.R0b),o.Y36(o.QbO,8))};static#t=this.\u0275cmp=o.Xpm({type:Te,selectors:[["mat-form-field"]],contentQueries:function(xe,Oe,Le){if(1&xe&&(o.Suo(Le,l.Eo,5),o.Suo(Le,l.Eo,7),o.Suo(Le,de,5),o.Suo(Le,de,7),o.Suo(Le,te,5),o.Suo(Le,l.ab,5),o.Suo(Le,Q,5),o.Suo(Le,l.Px,5),o.Suo(Le,l.Ve,5)),2&xe){let Gt;o.iGM(Gt=o.CRH())&&(Oe._controlNonStatic=Gt.first),o.iGM(Gt=o.CRH())&&(Oe._controlStatic=Gt.first),o.iGM(Gt=o.CRH())&&(Oe._labelChildNonStatic=Gt.first),o.iGM(Gt=o.CRH())&&(Oe._labelChildStatic=Gt.first),o.iGM(Gt=o.CRH())&&(Oe._placeholderChild=Gt.first),o.iGM(Gt=o.CRH())&&(Oe._errorChildren=Gt),o.iGM(Gt=o.CRH())&&(Oe._hintChildren=Gt),o.iGM(Gt=o.CRH())&&(Oe._prefixChildren=Gt),o.iGM(Gt=o.CRH())&&(Oe._suffixChildren=Gt)}},viewQuery:function(xe,Oe){if(1&xe&&(o.Gf(k,7),o.Gf(w,5),o.Gf(g,5)),2&xe){let Le;o.iGM(Le=o.CRH())&&(Oe._connectionContainerRef=Le.first),o.iGM(Le=o.CRH())&&(Oe._inputContainerRef=Le.first),o.iGM(Le=o.CRH())&&(Oe._label=Le.first)}},hostAttrs:["ngSkipHydration","",1,"mat-form-field"],hostVars:40,hostBindings:function(xe,Oe){2&xe&&o.ekj("mat-form-field-appearance-standard","standard"==Oe.appearance)("mat-form-field-appearance-fill","fill"==Oe.appearance)("mat-form-field-appearance-outline","outline"==Oe.appearance)("mat-form-field-appearance-legacy","legacy"==Oe.appearance)("mat-form-field-invalid",Oe._control.errorState)("mat-form-field-can-float",Oe._canLabelFloat())("mat-form-field-should-float",Oe._shouldLabelFloat())("mat-form-field-has-label",Oe._hasFloatingLabel())("mat-form-field-hide-placeholder",Oe._hideControlPlaceholder())("mat-form-field-disabled",Oe._control.disabled)("mat-form-field-autofilled",Oe._control.autofilled)("mat-focused",Oe._control.focused)("ng-untouched",Oe._shouldForward("untouched"))("ng-touched",Oe._shouldForward("touched"))("ng-pristine",Oe._shouldForward("pristine"))("ng-dirty",Oe._shouldForward("dirty"))("ng-valid",Oe._shouldForward("valid"))("ng-invalid",Oe._shouldForward("invalid"))("ng-pending",Oe._shouldForward("pending"))("_mat-animation-noopable",!Oe._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[o._Bn([{provide:l.G_,useExisting:Te}]),o.qOj],ngContentSelectors:K,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(xe,Oe){1&xe&&(o.F$t(V),o.TgZ(0,"div",0)(1,"div",1,2),o.NdJ("click",function(Gt){return Oe._control.onContainerClick(Gt)}),o.YNc(3,M,9,0,"ng-container",3),o.YNc(4,p,2,1,"div",4),o.TgZ(5,"div",5,6),o.Hsn(7),o.TgZ(8,"span",7),o.YNc(9,L,5,16,"label",8),o.qZA()(),o.YNc(10,D,2,0,"div",9),o.qZA(),o.YNc(11,F,2,4,"div",10),o.TgZ(12,"div",11),o.YNc(13,P,2,1,"div",12),o.YNc(14,U,5,2,"div",13),o.qZA()()),2&xe&&(o.xp6(3),o.Q6J("ngIf","outline"==Oe.appearance),o.xp6(1),o.Q6J("ngIf",Oe._prefixChildren.length),o.xp6(5),o.Q6J("ngIf",Oe._hasFloatingLabel()),o.xp6(1),o.Q6J("ngIf",Oe._suffixChildren.length),o.xp6(1),o.Q6J("ngIf","outline"!=Oe.appearance),o.xp6(1),o.Q6J("ngSwitch",Oe._getDisplayedMessages()),o.xp6(1),o.Q6J("ngSwitchCase","error"),o.xp6(1),o.Q6J("ngSwitchCase","hint"))},dependencies:[n.O5,n.RF,n.n9,e.wD],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}.mat-form-field .mat-form-field-prefix .mat-datepicker-toggle .mat-mdc-button-base,.mat-form-field .mat-form-field-suffix .mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-form-field .mat-datepicker-toggle .mat-mdc-icon-button .mat-icon{font-size:1em;display:inline-block;margin:-2px 0 1px}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle .mat-mdc-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle .mat-mdc-icon-button{font-size:inherit;width:1.5em;height:1.5em;padding:0}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle .mat-mdc-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle .mat-mdc-icon-button .mat-icon{line-height:1.5em;margin:0}.mat-form-field .mat-datepicker-toggle .mat-mdc-button-base{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-datepicker-toggle .mat-mdc-button-base{vertical-align:baseline}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[l.TN.transitionMessages]},changeDetection:0})}return Te})(),_e=(()=>{class Te{static#e=this.\u0275fac=function(xe){return new(xe||Te)};static#t=this.\u0275dir=o.lG2({type:Te,selectors:[["","matPrefix",""]],features:[o._Bn([{provide:l.Px,useExisting:Te}])]})}return Te})(),ge=(()=>{class Te{static#e=this.\u0275fac=function(xe){return new(xe||Te)};static#t=this.\u0275dir=o.lG2({type:Te,selectors:[["","matSuffix",""]],features:[o._Bn([{provide:l.Ve,useExisting:Te}])]})}return Te})(),Ce=(()=>{class Te{static#e=this.\u0275fac=function(xe){return new(xe||Te)};static#t=this.\u0275mod=o.oAB({type:Te});static#n=this.\u0275inj=o.cJS({imports:[n.ez,a.BQ,e.Q8,a.BQ]})}return Te})()},42400:(he,y,i)=>{"use strict";i.d(y,{k0:()=>d,x4:()=>s});var e=i(65879),n=i(24516),o=i(64170),a=i(84187),l=i(56263),u=i(23680);let d=(()=>{class A extends n.Nt{constructor(){super(...arguments),this._legacyFormField=(0,e.f3M)(o.G_,{optional:!0})}_getPlaceholder(){const C=this._legacyFormField;return C&&"legacy"===C.appearance&&!C._hasLabel?.()?null:this.placeholder}static#e=this.\u0275fac=function(){let C;return function(x){return(C||(C=e.n5z(A)))(x||A)}}();static#t=this.\u0275dir=e.lG2({type:A,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:15,hostBindings:function(R,x){2&R&&(e.uIk("data-placeholder",x.placeholder),e.ekj("mat-input-server",x._isServer)("mat-mdc-input-element",!1)("mat-mdc-form-field-textarea-control",!1)("mat-mdc-form-field-input-control",!1)("mdc-text-field__input",!1)("mat-mdc-native-select-inline",!1)("mat-native-select-inline",x._isInlineSelect()))},exportAs:["matInput"],features:[e._Bn([{provide:o.Eo,useExisting:A}]),e.qOj]})}return A})(),s=(()=>{class A{static#e=this.\u0275fac=function(R){return new(R||A)};static#t=this.\u0275mod=e.oAB({type:A});static#n=this.\u0275inj=e.cJS({providers:[u.rD],imports:[l.Ky,a.wp,u.BQ,l.Ky,a.wp]})}return A})()},48247:(he,y,i)=>{"use strict";i.d(y,{O$:()=>Q,Sc:()=>U,U:()=>D,Wx:()=>P,Zj:()=>F,ap:()=>O,gR:()=>de,kh:()=>re,oh:()=>V});var e=i(96814),n=i(65879),o=i(23680),a=i(42495),l=i(59038),u=i(78645),d=i(59773),s=i(27921),A=i(4300),_=i(78337),C=i(36028),R=i(56223),x=i(26385);const f=["*"],k='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}',w=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],g=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],M=["text"];function p(te,j){if(1&te&&n._UZ(0,"mat-pseudo-checkbox",5),2&te){const H=n.oxw();n.Q6J("state",H.selected?"checked":"unchecked")("disabled",H.disabled)}}const E=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],b=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],I=(0,o.Id)((0,o.Kr)(class{})),L=(0,o.Kr)(class{});let D=(()=>{class te extends I{constructor(){super(...arguments),this._stateChanges=new u.x}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}static#e=this.\u0275fac=function(){let H;return function(q){return(H||(H=n.n5z(te)))(q||te)}}();static#t=this.\u0275cmp=n.Xpm({type:te,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[n._Bn([{provide:l._O,useExisting:te}]),n.qOj,n.TTD],ngContentSelectors:f,decls:1,vars:0,template:function(z,q){1&z&&(n.F$t(),n.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0})}return te})(),F=(()=>{class te extends I{constructor(H){super(),this._elementRef=H,this._stateChanges=new u.x,"action-list"===this._getListType()&&(H.nativeElement.classList.add("mat-action-list"),H.nativeElement.setAttribute("role","group"))}_getListType(){const H=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===H?"list":"mat-action-list"===H?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}static#e=this.\u0275fac=function(z){return new(z||te)(n.Y36(n.SBq))};static#t=this.\u0275cmp=n.Xpm({type:te,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[n._Bn([{provide:l.Y5,useExisting:te}]),n.qOj,n.TTD],ngContentSelectors:f,decls:1,vars:0,template:function(z,q){1&z&&(n.F$t(),n.Hsn(0))},styles:[k],encapsulation:2,changeDetection:0})}return te})(),P=(()=>{class te{static#e=this.\u0275fac=function(z){return new(z||te)};static#t=this.\u0275dir=n.lG2({type:te,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]})}return te})(),O=(()=>{class te{static#e=this.\u0275fac=function(z){return new(z||te)};static#t=this.\u0275dir=n.lG2({type:te,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]})}return te})(),U=(()=>{class te{static#e=this.\u0275fac=function(z){return new(z||te)};static#t=this.\u0275dir=n.lG2({type:te,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]})}return te})(),V=(()=>{class te extends L{constructor(H,z,q,se){super(),this._element=H,this._isInteractiveList=!1,this._destroyed=new u.x,this._disabled=!1,this._isInteractiveList=!!(q||se&&"action-list"===se._getListType()),this._list=q||se;const ne=this._getHostElement();"button"===ne.nodeName.toLowerCase()&&!ne.hasAttribute("type")&&ne.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,d.R)(this._destroyed)).subscribe(()=>{z.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(H){this._disabled=(0,a.Ig)(H)}ngAfterContentInit(){(0,o.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}static#e=this.\u0275fac=function(z){return new(z||te)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(l._O,8),n.Y36(l.Y5,8))};static#t=this.\u0275cmp=n.Xpm({type:te,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(z,q,se){if(1&z&&(n.Suo(se,P,5),n.Suo(se,O,5),n.Suo(se,o.X2,5)),2&z){let ne;n.iGM(ne=n.CRH())&&(q._avatar=ne.first),n.iGM(ne=n.CRH())&&(q._icon=ne.first),n.iGM(ne=n.CRH())&&(q._lines=ne)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(z,q){2&z&&n.ekj("mat-list-item-disabled",q.disabled)("mat-list-item-with-avatar",q._avatar||q._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[n.qOj],ngContentSelectors:g,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(z,q){1&z&&(n.F$t(w),n.TgZ(0,"span",0),n._UZ(1,"span",1),n.Hsn(2),n.TgZ(3,"span",2),n.Hsn(4,1),n.qZA(),n.Hsn(5,2),n.qZA()),2&z&&(n.xp6(1),n.Q6J("matRippleTrigger",q._getHostElement())("matRippleDisabled",q._isRippleDisabled()))},dependencies:[o.wG],encapsulation:2,changeDetection:0})}return te})();const K=(0,o.Kr)(class{}),X=(0,o.Kr)(class{}),me={provide:R.JU,useExisting:(0,n.Gpc)(()=>re),multi:!0};class J{constructor(j,H){this.source=j,this.options=H}}let Q=(()=>{class te extends X{get color(){return this._color||this.selectionList.color}set color(H){this._color=H}get value(){return this._value}set value(H){this.selected&&!this.selectionList.compareWith(H,this.value)&&this._inputsInitialized&&(this.selected=!1),this._value=H}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(H){const z=(0,a.Ig)(H);z!==this._disabled&&(this._disabled=z,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(H){const z=(0,a.Ig)(H);z!==this._selected&&(this._setSelected(z),(z||this.selectionList.multiple)&&this.selectionList._reportValueChange())}constructor(H,z,q){super(),this._element=H,this._changeDetector=z,this.selectionList=q,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.selectedChange=new n.vpe,this.checkboxPosition="after",this._inputsInitialized=!1}ngOnInit(){const H=this.selectionList;H._value&&H._value.some(q=>H.compareWith(this._value,q))&&this._setSelected(!0);const z=this._selected;Promise.resolve().then(()=>{(this._selected||z)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){(0,o.E0)(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const H=this._hasFocus,z=this.selectionList._removeOptionFromList(this);H&&z&&z.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){!this.disabled&&(this.selectionList.multiple||!this.selected)&&(this.toggle(),this.selectionList._emitChangeEvent([this]))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(H){return H!==this._selected&&(this._selected=H,H?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this.selectedChange.emit(H),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}static#e=this.\u0275fac=function(z){return new(z||te)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36((0,n.Gpc)(()=>re)))};static#t=this.\u0275cmp=n.Xpm({type:te,selectors:[["mat-list-option"]],contentQueries:function(z,q,se){if(1&z&&(n.Suo(se,P,5),n.Suo(se,O,5),n.Suo(se,o.X2,5)),2&z){let ne;n.iGM(ne=n.CRH())&&(q._avatar=ne.first),n.iGM(ne=n.CRH())&&(q._icon=ne.first),n.iGM(ne=n.CRH())&&(q._lines=ne)}},viewQuery:function(z,q){if(1&z&&n.Gf(M,5),2&z){let se;n.iGM(se=n.CRH())&&(q._text=se.first)}},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(z,q){1&z&&n.NdJ("focus",function(){return q._handleFocus()})("blur",function(){return q._handleBlur()})("click",function(){return q._handleClick()}),2&z&&(n.uIk("aria-selected",q.selected)("aria-disabled",q.disabled)("tabindex",-1),n.ekj("mat-list-item-disabled",q.disabled)("mat-list-item-with-avatar",q._avatar||q._icon)("mat-primary","primary"===q.color)("mat-accent","primary"!==q.color&&"warn"!==q.color)("mat-warn","warn"===q.color)("mat-list-single-selected-option",q.selected&&!q.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",disabled:"disabled",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[n.qOj],ngContentSelectors:b,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(z,q){1&z&&(n.F$t(E),n.TgZ(0,"div",0),n._UZ(1,"div",1),n.YNc(2,p,1,2,"mat-pseudo-checkbox",2),n.TgZ(3,"div",3,4),n.Hsn(5),n.qZA(),n.Hsn(6,1),n.qZA()),2&z&&(n.ekj("mat-list-item-content-reverse","after"==q.checkboxPosition),n.xp6(1),n.Q6J("matRippleTrigger",q._getHostElement())("matRippleDisabled",q._isRippleDisabled()),n.xp6(1),n.Q6J("ngIf",q.selectionList.multiple))},dependencies:[o.wG,o.nP,e.O5],encapsulation:2,changeDetection:0})}return te})(),re=(()=>{class te extends K{get disabled(){return this._disabled}set disabled(H){this._disabled=(0,a.Ig)(H),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(H){const z=(0,a.Ig)(H);z!==this._multiple&&(this._multiple=z,this.selectedOptions=new _.Ov(this._multiple,this.selectedOptions.selected))}constructor(H,z,q){super(),this._element=H,this._changeDetector=z,this._focusMonitor=q,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new n.vpe,this.color="accent",this.compareWith=(se,ne)=>se===ne,this._disabled=!1,this.selectedOptions=new _.Ov(this._multiple),this._tabIndex=-1,this._onChange=se=>{},this._destroyed=new u.x,this._onTouched=()=>{}}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new A.Em(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.subscribe(()=>this._allowFocusEscape()),this.options.changes.pipe((0,s.O)(null),(0,d.R)(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe((0,d.R)(this._destroyed)).subscribe(H=>{if(H.added)for(let z of H.added)z.selected=!0;if(H.removed)for(let z of H.removed)z.selected=!1}),this._focusMonitor.monitor(this._element).pipe((0,d.R)(this._destroyed)).subscribe(H=>{if("keyboard"===H||"program"===H){let z=0;for(let q=0;q<this.options.length;q++)if(this.options.get(q)?.selected){z=q;break}this._keyManager.setActiveItem(z)}})}ngOnChanges(H){const z=H.disableRipple,q=H.color;(z&&!z.firstChange||q&&!q.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._keyManager?.destroy(),this._focusMonitor.stopMonitoring(this._element),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(H){this._element.nativeElement.focus(H)}selectAll(){return this._setAllOptionsSelected(!0)}deselectAll(){return this._setAllOptionsSelected(!1)}_setFocusedOption(H){this._keyManager.updateActiveItem(H)}_removeOptionFromList(H){const z=this._getOptionIndex(H);return z>-1&&this._keyManager.activeItemIndex===z&&(z>0?this._keyManager.updateActiveItem(z-1):0===z&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(z+1,this.options.length-1))),this._keyManager.activeItem}_keydown(H){const z=H.keyCode,q=this._keyManager,se=q.activeItemIndex,ne=(0,C.Vb)(H);switch(z){case C.L_:case C.K5:!ne&&!q.isTyping()&&(this._toggleFocusedOption(),H.preventDefault());break;default:if(z===C.A&&this.multiple&&(0,C.Vb)(H,"ctrlKey")&&!q.isTyping()){const _e=this.options.some(ge=>!ge.disabled&&!ge.selected);this._setAllOptionsSelected(_e,!0,!0),H.preventDefault()}else q.onKeydown(H)}this.multiple&&(z===C.LH||z===C.JH)&&H.shiftKey&&q.activeItemIndex!==se&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const H=this._getSelectedOptionValues();this._onChange(H),this._value=H}}_emitChangeEvent(H){this.selectionChange.emit(new J(this,H))}writeValue(H){this._value=H,this.options&&this._setOptionsFromValues(H||[])}setDisabledState(H){this.disabled=H}registerOnChange(H){this._onChange=H}registerOnTouched(H){this._onTouched=H}_setOptionsFromValues(H){this.options.forEach(z=>z._setSelected(!1)),H.forEach(z=>{const q=this.options.find(se=>!se.selected&&this.compareWith(se.value,z));q&&q._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(H=>H.selected).map(H=>H.value)}_toggleFocusedOption(){let H=this._keyManager.activeItemIndex;if(null!=H&&this._isValidIndex(H)){let z=this.options.toArray()[H];z&&!z.disabled&&(this._multiple||!z.selected)&&(z.toggle(),this._emitChangeEvent([z]))}}_setAllOptionsSelected(H,z,q){const se=[];return this.options.forEach(ne=>{(!z||!ne.disabled)&&ne._setSelected(H)&&se.push(ne)}),se.length&&(this._reportValueChange(),q&&this._emitChangeEvent(se)),se}_isValidIndex(H){return H>=0&&H<this.options.length}_getOptionIndex(H){return this.options.toArray().indexOf(H)}_markOptionsForCheck(){this.options&&this.options.forEach(H=>H._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}static#e=this.\u0275fac=function(z){return new(z||te)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(A.tE))};static#t=this.\u0275cmp=n.Xpm({type:te,selectors:[["mat-selection-list"]],contentQueries:function(z,q,se){if(1&z&&n.Suo(se,Q,5),2&z){let ne;n.iGM(ne=n.CRH())&&(q.options=ne)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(z,q){1&z&&n.NdJ("keydown",function(ne){return q._keydown(ne)}),2&z&&n.uIk("aria-multiselectable",q.multiple)("aria-disabled",q.disabled.toString())("tabindex",q._tabIndex)},inputs:{disableRipple:"disableRipple",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[n._Bn([me]),n.qOj,n.TTD],ngContentSelectors:f,decls:1,vars:0,template:function(z,q){1&z&&(n.F$t(),n.Hsn(0))},styles:[k],encapsulation:2,changeDetection:0})}return te})(),de=(()=>{class te{static#e=this.\u0275fac=function(z){return new(z||te)};static#t=this.\u0275mod=n.oAB({type:te});static#n=this.\u0275inj=n.cJS({imports:[o.uc,o.si,o.BQ,o.us,e.ez,o.uc,o.BQ,o.us,x.t]})}return te})()},78250:(he,y,i)=>{"use strict";i.d(y,{D8:()=>x,W0:()=>C,jT:()=>k,tN:()=>R});var e=i(65879),n=i(77988),o=i(96814),a=i(23680),l=i(69594),u=i(16672);function d(w,g){if(1&w){const M=e.EpF();e.TgZ(0,"div",0),e.NdJ("keydown",function(E){e.CHM(M);const b=e.oxw();return e.KtG(b._handleKeydown(E))})("click",function(){e.CHM(M);const E=e.oxw();return e.KtG(E.closed.emit("click"))})("@transformMenu.start",function(E){e.CHM(M);const b=e.oxw();return e.KtG(b._onAnimationStart(E))})("@transformMenu.done",function(E){e.CHM(M);const b=e.oxw();return e.KtG(b._onAnimationDone(E))}),e.TgZ(1,"div",1),e.Hsn(2),e.qZA()()}if(2&w){const M=e.oxw();e.Q6J("id",M.panelId)("ngClass",M._classList)("@transformMenu",M._panelAnimationState),e.uIk("aria-label",M.ariaLabel||null)("aria-labelledby",M.ariaLabelledby||null)("aria-describedby",M.ariaDescribedby||null)}}const s=["*"],A=["mat-menu-item",""];function _(w,g){1&w&&(e.O4$(),e.TgZ(0,"svg",2),e._UZ(1,"polygon",3),e.qZA())}let C=(()=>{class w extends n.Ce{constructor(M,p,E,b){super(M,p,E,b),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}static#e=this.\u0275fac=function(p){return new(p||w)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(n.Tf),e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:w,selectors:[["mat-menu"]],hostAttrs:["ngSkipHydration",""],hostVars:4,hostBindings:function(p,E){2&p&&e.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)("mat-id-collision",null)},exportAs:["matMenu"],features:[e._Bn([{provide:n.Sj,useExisting:w}]),e.qOj],ngContentSelectors:s,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(p,E){1&p&&(e.F$t(),e.YNc(0,d,3,6,"ng-template"))},dependencies:[o.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[n.gw.transformMenu,n.gw.fadeInItems]},changeDetection:0})}return w})(),R=(()=>{class w extends n.OP{static#e=this.\u0275fac=function(){let M;return function(E){return(M||(M=e.n5z(w)))(E||w)}}();static#t=this.\u0275cmp=e.Xpm({type:w,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:20,hostBindings:function(p,E){2&p&&(e.uIk("role",E.role)("tabindex",E._getTabIndex())("aria-disabled",E.disabled.toString())("disabled",E.disabled||null),e.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",E._highlighted)("mat-menu-item-submenu-trigger",E._triggersSubmenu)("mat-mdc-menu-item",!1)("mat-mdc-focus-indicator",!1)("mdc-list-item",!1)("mat-mdc-menu-item-highlighted",!1)("mat-mdc-menu-item-submenu-trigger",!1))},inputs:{disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matMenuItem"],features:[e._Bn([{provide:n.OP,useExisting:w}]),e.qOj],attrs:A,ngContentSelectors:s,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false","aria-hidden","true",4,"ngIf"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(p,E){1&p&&(e.F$t(),e.Hsn(0),e._UZ(1,"div",0),e.YNc(2,_,2,0,"svg",1)),2&p&&(e.xp6(1),e.Q6J("matRippleDisabled",E.disableRipple||E.disabled)("matRippleTrigger",E._getHostElement()),e.xp6(1),e.Q6J("ngIf",E._triggersSubmenu))},dependencies:[o.O5,a.wG],encapsulation:2,changeDetection:0})}return w})(),x=(()=>{class w extends n.js{static#e=this.\u0275fac=function(){let M;return function(E){return(M||(M=e.n5z(w)))(E||w)}}();static#t=this.\u0275dir=e.lG2({type:w,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[e.qOj]})}return w})(),k=(()=>{class w{static#e=this.\u0275fac=function(p){return new(p||w)};static#t=this.\u0275mod=e.oAB({type:w});static#n=this.\u0275inj=e.cJS({providers:[n.W2],imports:[o.ez,a.BQ,a.si,l.U8,u.ZD,a.BQ]})}return w})()},11194:(he,y,i)=>{"use strict";i.d(y,{cl:()=>g,gf:()=>M});var e=i(96814),n=i(65879),o=i(23680),a=i(94505),l=i(48424),u=i(30481),d=i(21476),s=i(84187),A=i(24678);function _(p,E){if(1&p&&(n.TgZ(0,"mat-option",19),n._uU(1),n.qZA()),2&p){const b=E.$implicit;n.Q6J("value",b),n.xp6(1),n.hij(" ",b," ")}}function C(p,E){if(1&p){const b=n.EpF();n.TgZ(0,"mat-form-field",16)(1,"mat-select",17),n.NdJ("selectionChange",function(L){n.CHM(b);const D=n.oxw(2);return n.KtG(D._changePageSize(L.value))}),n.YNc(2,_,2,2,"mat-option",18),n.qZA()()}if(2&p){const b=n.oxw(2);n.Q6J("appearance",b._formFieldAppearance)("color",b.color),n.xp6(1),n.Q6J("value",b.pageSize)("disabled",b.disabled)("panelClass",b.selectConfig.panelClass||"")("disableOptionCentering",b.selectConfig.disableOptionCentering)("aria-label",b._intl.itemsPerPageLabel),n.xp6(1),n.Q6J("ngForOf",b._displayedPageSizeOptions)}}function R(p,E){if(1&p&&(n.TgZ(0,"div",20),n._uU(1),n.qZA()),2&p){const b=n.oxw(2);n.xp6(1),n.Oqu(b.pageSize)}}function x(p,E){if(1&p&&(n.TgZ(0,"div",12)(1,"div",13),n._uU(2),n.qZA(),n.YNc(3,C,3,8,"mat-form-field",14),n.YNc(4,R,2,1,"div",15),n.qZA()),2&p){const b=n.oxw();n.xp6(2),n.hij(" ",b._intl.itemsPerPageLabel," "),n.xp6(1),n.Q6J("ngIf",b._displayedPageSizeOptions.length>1),n.xp6(1),n.Q6J("ngIf",b._displayedPageSizeOptions.length<=1)}}function f(p,E){if(1&p){const b=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){n.CHM(b);const L=n.oxw();return n.KtG(L.firstPage())}),n.O4$(),n.TgZ(1,"svg",7),n._UZ(2,"path",22),n.qZA()()}if(2&p){const b=n.oxw();n.Q6J("matTooltip",b._intl.firstPageLabel)("matTooltipDisabled",b._previousButtonsDisabled())("matTooltipPosition","above")("disabled",b._previousButtonsDisabled()),n.uIk("aria-label",b._intl.firstPageLabel)}}function k(p,E){if(1&p){const b=n.EpF();n.O4$(),n.kcU(),n.TgZ(0,"button",23),n.NdJ("click",function(){n.CHM(b);const L=n.oxw();return n.KtG(L.lastPage())}),n.O4$(),n.TgZ(1,"svg",7),n._UZ(2,"path",24),n.qZA()()}if(2&p){const b=n.oxw();n.Q6J("matTooltip",b._intl.lastPageLabel)("matTooltipDisabled",b._nextButtonsDisabled())("matTooltipPosition","above")("disabled",b._nextButtonsDisabled()),n.uIk("aria-label",b._intl.lastPageLabel)}}const w=new n.OlP("MAT_LEGACY_PAGINATOR_DEFAULT_OPTIONS");let g=(()=>{class p extends d.n7{constructor(b,I,L){super(b,I,L),L&&null!=L.formFieldAppearance&&(this._formFieldAppearance=L.formFieldAppearance)}static#e=this.\u0275fac=function(I){return new(I||p)(n.Y36(d.ye),n.Y36(n.sBO),n.Y36(w,8))};static#t=this.\u0275cmp=n.Xpm({type:p,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[n.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(I,L){1&I&&(n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,x,5,3,"div",2),n.TgZ(3,"div",3)(4,"div",4),n._uU(5),n.qZA(),n.YNc(6,f,3,5,"button",5),n.TgZ(7,"button",6),n.NdJ("click",function(){return L.previousPage()}),n.O4$(),n.TgZ(8,"svg",7),n._UZ(9,"path",8),n.qZA()(),n.kcU(),n.TgZ(10,"button",9),n.NdJ("click",function(){return L.nextPage()}),n.O4$(),n.TgZ(11,"svg",7),n._UZ(12,"path",10),n.qZA()(),n.YNc(13,k,3,5,"button",11),n.qZA()()()),2&I&&(n.xp6(2),n.Q6J("ngIf",!L.hidePageSize),n.xp6(3),n.hij(" ",L._intl.getRangeLabel(L.pageIndex,L.pageSize,L.length)," "),n.xp6(1),n.Q6J("ngIf",L.showFirstLastButtons),n.xp6(1),n.Q6J("matTooltip",L._intl.previousPageLabel)("matTooltipDisabled",L._previousButtonsDisabled())("matTooltipPosition","above")("disabled",L._previousButtonsDisabled()),n.uIk("aria-label",L._intl.previousPageLabel),n.xp6(3),n.Q6J("matTooltip",L._intl.nextPageLabel)("matTooltipDisabled",L._nextButtonsDisabled())("matTooltipPosition","above")("disabled",L._nextButtonsDisabled()),n.uIk("aria-label",L._intl.nextPageLabel),n.xp6(3),n.Q6J("ngIf",L.showFirstLastButtons))},dependencies:[e.sg,e.O5,a.eB,s.v_,l.x8,A.CK,u.Kd],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0})}return p})(),M=(()=>{class p{static#e=this.\u0275fac=function(I){return new(I||p)};static#t=this.\u0275mod=n.oAB({type:p});static#n=this.\u0275inj=n.cJS({providers:[d.ik],imports:[e.ez,a.yu,l.uw,u.AA,o.BQ]})}return p})()},48134:(he,y,i)=>{"use strict";i.d(y,{eI:()=>R,jc:()=>f});var e=i(65879),n=i(96814),o=i(23680),a=i(42495),l=i(16007),u=i(47394),d=i(92438),s=i(32181);const A=["primaryValueBar"],_=(0,o.pj)(class{constructor(k){this._elementRef=k}},"primary");let C=0,R=(()=>{class k extends _{constructor(g,M,p,E,b,I){super(g),this._ngZone=M,this._animationMode=p,this._changeDetectorRef=I,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new e.vpe,this._animationEndSubscription=u.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+C++;const L=E?E.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${L}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===p,b&&(b.color&&(this.color=this.defaultColor=b.color),this.mode=b.mode||this.mode)}get value(){return this._value}set value(g){this._value=x((0,a.su)(g)||0),this._changeDetectorRef?.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(g){this._bufferValue=x(g||0),this._changeDetectorRef?.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const g=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,d.R)(g,"transitionend").pipe((0,s.h)(M=>M.target===g)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}static#e=this.\u0275fac=function(M){return new(M||k)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.QbO,8),e.Y36(l.Gx,8),e.Y36(l.$M,8),e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:k,selectors:[["mat-progress-bar"]],viewQuery:function(M,p){if(1&M&&e.Gf(A,5),2&M){let E;e.iGM(E=e.CRH())&&(p._primaryValueBar=E.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(M,p){2&M&&(e.uIk("aria-valuenow","indeterminate"===p.mode||"query"===p.mode?null:p.value)("mode",p.mode),e.ekj("_mat-animation-noopable",p._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[e.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(M,p){1&M&&(e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),e._UZ(4,"circle",3),e.qZA()(),e._UZ(5,"rect",4),e.qZA(),e.kcU(),e._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),e.qZA()),2&M&&(e.xp6(3),e.Q6J("id",p.progressbarId),e.xp6(2),e.uIk("fill",p._rectangleFillValue),e.xp6(1),e.Q6J("ngStyle",p._bufferTransform()),e.xp6(1),e.Q6J("ngStyle",p._primaryTransform()))},dependencies:[n.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0})}return k})();function x(k,w=0,g=100){return Math.max(w,Math.min(g,k))}let f=(()=>{class k{static#e=this.\u0275fac=function(M){return new(M||k)};static#t=this.\u0275mod=e.oAB({type:k});static#n=this.\u0275inj=e.cJS({imports:[n.ez,o.BQ,o.BQ]})}return k})()},91438:(he,y,i)=>{"use strict";i.d(y,{sN:()=>D,UK:()=>F});var e=i(42495),n=i(62831),o=i(16672),a=i(96814),l=i(65879),u=i(23680);const _=new l.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function C(){return{diameter:R}}}),R=100;var g=i(47394);function M(O,U){if(1&O&&(l.O4$(),l._UZ(0,"circle",4)),2&O){const V=l.oxw(),K=l.MAs(1);l.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+V._spinnerAnimationLabel)("stroke-dashoffset",V._getStrokeDashOffset(),"px")("stroke-dasharray",V._getStrokeCircumference(),"px")("stroke-width",V._getCircleStrokeWidth(),"%")("transform-origin",V._getCircleTransformOrigin(K)),l.uIk("r",V._getCircleRadius())}}function p(O,U){if(1&O&&(l.O4$(),l._UZ(0,"circle",4)),2&O){const V=l.oxw(),K=l.MAs(1);l.Udp("stroke-dashoffset",V._getStrokeDashOffset(),"px")("stroke-dasharray",V._getStrokeCircumference(),"px")("stroke-width",V._getCircleStrokeWidth(),"%")("transform-origin",V._getCircleTransformOrigin(K)),l.uIk("r",V._getCircleRadius())}}const I=(0,u.pj)(class{constructor(O){this._elementRef=O}},"primary");class D extends I{static#e=this._diameters=new WeakMap;get diameter(){return this._diameter}set diameter(U){this._diameter=(0,e.su)(U),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(U){this._strokeWidth=(0,e.su)(U)}get value(){return"determinate"===this.mode?this._value:0}set value(U){this._value=Math.max(0,Math.min(100,(0,e.su)(U)))}constructor(U,V,K,X,me,J,Q,re,de){super(U),this._document=K,this._nonce=de,this._diameter=100,this._value=0,this._resizeSubscription=g.w0.EMPTY,this.mode="determinate";const te=D._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),te.has(K.head)||te.set(K.head,new Set([100])),this._noopAnimations="NoopAnimations"===X&&!!me&&!me._forceAnimations,"mat-spinner"===U.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),me&&(me.color&&(this.color=this.defaultColor=me.color),me.diameter&&(this.diameter=me.diameter),me.strokeWidth&&(this.strokeWidth=me.strokeWidth)),V.isBrowser&&V.SAFARI&&Q&&J&&re&&(this._resizeSubscription=Q.change(150).subscribe(()=>{"indeterminate"===this.mode&&re.run(()=>J.markForCheck())}))}ngOnInit(){const U=this._elementRef.nativeElement;this._styleRoot=(0,n.kV)(U)||this._document.head,this._attachStyleNode(),U.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const U=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${U} ${U}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(U){const V=50*(U.currentScale??1);return`${V}% ${V}%`}_attachStyleNode(){const U=this._styleRoot,V=this._diameter,K=D._diameters;let X=K.get(U);if(!X||!X.has(V)){const me=this._document.createElement("style");this._nonce&&(me.nonce=this._nonce),me.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),me.textContent=this._getAnimationText(),U.appendChild(me),X||(X=new Set,K.set(U,X)),X.add(V)}}_getAnimationText(){const U=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n    0%      { stroke-dashoffset: START_VALUE;  transform: rotate(0); }\n    12.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(0); }\n    12.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(72.5deg); }\n    25%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(72.5deg); }\n\n    25.0001%   { stroke-dashoffset: START_VALUE;  transform: rotate(270deg); }\n    37.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(270deg); }\n    37.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(161.5deg); }\n    50%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(161.5deg); }\n\n    50.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(180deg); }\n    62.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(180deg); }\n    62.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(251.5deg); }\n    75%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(251.5deg); }\n\n    75.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(90deg); }\n    87.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(90deg); }\n    87.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(341.5deg); }\n    100%    { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(341.5deg); }\n  }\n".replace(/START_VALUE/g,""+.95*U).replace(/END_VALUE/g,""+.2*U).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}static#t=this.\u0275fac=function(V){return new(V||D)(l.Y36(l.SBq),l.Y36(n.t4),l.Y36(a.K0,8),l.Y36(l.QbO,8),l.Y36(_),l.Y36(l.sBO),l.Y36(o.rL),l.Y36(l.R0b),l.Y36(l.Ojb,8))};static#n=this.\u0275cmp=l.Xpm({type:D,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(V,K){2&V&&(l.uIk("aria-valuemin","determinate"===K.mode?0:null)("aria-valuemax","determinate"===K.mode?100:null)("aria-valuenow","determinate"===K.mode?K.value:null)("mode",K.mode),l.Udp("width",K.diameter,"px")("height",K.diameter,"px"),l.ekj("_mat-animation-noopable",K._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[l.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(V,K){1&V&&(l.O4$(),l.TgZ(0,"svg",0,1),l.YNc(2,M,1,11,"circle",2),l.YNc(3,p,1,9,"circle",3),l.qZA()),2&V&&(l.Udp("width",K.diameter,"px")("height",K.diameter,"px"),l.Q6J("ngSwitch","indeterminate"===K.mode),l.uIk("viewBox",K._getViewBox()),l.xp6(2),l.Q6J("ngSwitchCase",!0),l.xp6(1),l.Q6J("ngSwitchCase",!1))},dependencies:[a.RF,a.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0})}let F=(()=>{class O{static#e=this.\u0275fac=function(K){return new(K||O)};static#t=this.\u0275mod=l.oAB({type:O});static#n=this.\u0275inj=l.cJS({imports:[u.BQ,a.ez,u.BQ]})}return O})()},21242:(he,y,i)=>{"use strict";i.d(y,{OY:()=>_,Xo:()=>R,vy:()=>C});var e=i(65879),n=i(23680),o=i(4300),a=i(78337),l=i(56223),u=i(87466);const d=function(x){return{enterDuration:x}},s=["*"],A={provide:l.JU,useExisting:(0,e.Gpc)(()=>_),multi:!0};let _=(()=>{class x extends u.hr{static#e=this.\u0275fac=function(){let k;return function(g){return(k||(k=e.n5z(x)))(g||x)}}();static#t=this.\u0275dir=e.lG2({type:x,selectors:[["mat-radio-group"]],contentQueries:function(w,g,M){if(1&w&&e.Suo(M,C,5),2&w){let p;e.iGM(p=e.CRH())&&(g._radios=p)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([A,{provide:u.$6,useExisting:x}]),e.qOj]})}return x})(),C=(()=>{class x extends u.XD{constructor(k,w,g,M,p,E,b,I){super(k,w,g,M,p,E,b,I)}static#e=this.\u0275fac=function(w){return new(w||x)(e.Y36(u.$6,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(o.tE),e.Y36(a.A8),e.Y36(e.QbO,8),e.Y36(u._J,8),e.$8M("tabindex"))};static#t=this.\u0275cmp=e.Xpm({type:x,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(w,g){1&w&&e.NdJ("focus",function(){return g._inputElement.nativeElement.focus()}),2&w&&(e.uIk("tabindex",null)("id",g.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",g.checked)("mat-radio-disabled",g.disabled)("_mat-animation-noopable",g._noopAnimations)("mat-primary","primary"===g.color)("mat-accent","accent"===g.color)("mat-warn","warn"===g.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:s,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(w,g){if(1&w&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2),e._UZ(3,"span",3)(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(p){return g._onInputInteraction(p)})("click",function(p){return g._onInputClick(p)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA()(),e.TgZ(9,"span",9)(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA()()),2&w){const M=e.MAs(1);e.uIk("for",g.inputId),e.xp6(5),e.Q6J("id",g.inputId)("checked",g.checked)("disabled",g.disabled)("required",g.required),e.uIk("name",g.name)("value",g.value)("aria-label",g.ariaLabel)("aria-labelledby",g.ariaLabelledby)("aria-describedby",g.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",M)("matRippleDisabled",g._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(17,d,g._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==g.labelPosition)}},dependencies:[n.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0})}return x})(),R=(()=>{class x{static#e=this.\u0275fac=function(w){return new(w||x)};static#t=this.\u0275mod=e.oAB({type:x});static#n=this.\u0275inj=e.cJS({imports:[n.si,n.BQ,n.BQ]})}return x})()},48424:(he,y,i)=>{"use strict";i.d(y,{Cb:()=>U,uw:()=>K,x8:()=>V});var e=i(69594),n=i(96814),o=i(65879),a=i(23680),l=i(24678),u=i(64170),d=i(84187),s=i(16672),A=i(98525),_=i(59773),C=i(48180),R=i(86825);function x(X,me){if(1&X&&(o.TgZ(0,"span",8),o._uU(1),o.qZA()),2&X){const J=o.oxw();o.xp6(1),o.Oqu(J.placeholder)}}function f(X,me){if(1&X&&(o.TgZ(0,"span",12),o._uU(1),o.qZA()),2&X){const J=o.oxw(2);o.xp6(1),o.Oqu(J.triggerValue)}}function k(X,me){1&X&&o.Hsn(0,0,["*ngSwitchCase","true"])}function w(X,me){if(1&X&&(o.TgZ(0,"span",9),o.YNc(1,f,2,1,"span",10),o.YNc(2,k,1,0,"ng-content",11),o.qZA()),2&X){const J=o.oxw();o.Q6J("ngSwitch",!!J.customTrigger),o.xp6(2),o.Q6J("ngSwitchCase",!0)}}function g(X,me){if(1&X){const J=o.EpF();o.TgZ(0,"div",13)(1,"div",14,15),o.NdJ("@transformPanel.done",function(re){o.CHM(J);const de=o.oxw();return o.KtG(de._panelDoneAnimatingStream.next(re.toState))})("keydown",function(re){o.CHM(J);const de=o.oxw();return o.KtG(de._handleKeydown(re))}),o.Hsn(3,1),o.qZA()()}if(2&X){const J=o.oxw();o.Q6J("@transformPanelWrap",void 0),o.xp6(1),o.Gre("mat-select-panel ",J._getPanelTheme(),""),o.Udp("transform-origin",J._transformOrigin)("font-size",J._triggerFontSize,"px"),o.Q6J("ngClass",J.panelClass)("@transformPanel",J.multiple?"showing-multiple":"showing"),o.uIk("id",J.id+"-panel")("aria-multiselectable",J.multiple)("aria-label",J.ariaLabel||null)("aria-labelledby",J._getPanelAriaLabelledby())}}const M=[[["mat-select-trigger"]],"*"],p=["mat-select-trigger","*"],E={transformPanelWrap:(0,R.X$)("transformPanelWrap",[(0,R.eR)("* => void",(0,R.IO)("@transformPanel",[(0,R.pV)()],{optional:!0}))]),transformPanel:(0,R.X$)("transformPanel",[(0,R.SB)("void",(0,R.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,R.SB)("showing",(0,R.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,R.SB)("showing-multiple",(0,R.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,R.eR)("void => *",(0,R.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,R.eR)("* => void",(0,R.jt)("100ms 25ms linear",(0,R.oB)({opacity:0})))])},b=256;class O{constructor(me,J){this.source=me,this.value=J}}let U=(()=>{class X{static#e=this.\u0275fac=function(Q){return new(Q||X)};static#t=this.\u0275dir=o.lG2({type:X,selectors:[["mat-select-trigger"]],features:[o._Bn([{provide:A.LZ,useExisting:X}])]})}return X})(),V=(()=>{class X extends A.hC{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(J,Q,re){const de=this._getItemHeight();return Math.min(Math.max(0,de*J-Q+de/2),re)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,_.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,C.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(J){const Q=(0,a.CB)(J,this.options,this.optionGroups),re=this._getItemHeight();this.panel.nativeElement.scrollTop=0===J&&1===Q?0:(0,a.jH)((J+Q)*re,re,this.panel.nativeElement.scrollTop,b)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(J){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(J)}_getChangeEvent(J){return new O(this,J)}_getOverlayMinWidth(){return this._triggerRect?.width}_calculateOverlayOffsetX(){const J=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),Q=this._viewportRuler.getViewportSize(),re=this._isRtl(),de=this.multiple?56:32;let te;if(this.multiple)te=40;else if(this.disableOptionCentering)te=16;else{let z=this._selectionModel.selected[0]||this.options.first;te=z&&z.group?32:16}re||(te*=-1);const j=0-(J.left+te-(re?de:0)),H=J.right+te-Q.width+(re?0:de);j>0?te+=j+8:H>0&&(te-=H+8),this._overlayDir.offsetX=Math.round(te),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(J,Q,re){const de=this._getItemHeight(),te=(de-this._triggerRect.height)/2,j=Math.floor(b/de);let H;return this.disableOptionCentering?0:(H=0===this._scrollTop?J*de:this._scrollTop===re?(J-(this._getItemCount()-j))*de+(de-(this._getItemCount()*de-b)%de):Q-de/2,Math.round(-1*H-te))}_checkOverlayWithinViewport(J){const Q=this._getItemHeight(),re=this._viewportRuler.getViewportSize(),de=this._triggerRect.top-8,te=re.height-this._triggerRect.bottom-8,j=Math.abs(this._offsetY),z=Math.min(this._getItemCount()*Q,b)-j-this._triggerRect.height;z>te?this._adjustPanelUp(z,te):j>de?this._adjustPanelDown(j,de,J):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(J,Q){const re=Math.round(J-Q);this._scrollTop-=re,this._offsetY-=re,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(J,Q,re){const de=Math.round(J-Q);if(this._scrollTop+=de,this._offsetY+=de,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=re)return this._scrollTop=re,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const J=this._getItemHeight(),Q=this._getItemCount(),re=Math.min(Q*J,b),te=Q*J-re;let j;j=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),j+=(0,a.CB)(j,this.options,this.optionGroups);const H=re/2;this._scrollTop=this._calculateOverlayScroll(j,H,te),this._offsetY=this._calculateOverlayOffsetY(j,H,te),this._checkOverlayWithinViewport(te)}_getOriginBasedOnOption(){const J=this._getItemHeight(),Q=(J-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-Q+J/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}static#e=this.\u0275fac=function(){let J;return function(re){return(J||(J=o.n5z(X)))(re||X)}}();static#t=this.\u0275cmp=o.Xpm({type:X,selectors:[["mat-select"]],contentQueries:function(Q,re,de){if(1&Q&&(o.Suo(de,A.LZ,5),o.Suo(de,l.CK,5),o.Suo(de,a.K7,5)),2&Q){let te;o.iGM(te=o.CRH())&&(re.customTrigger=te.first),o.iGM(te=o.CRH())&&(re.options=te),o.iGM(te=o.CRH())&&(re.optionGroups=te)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true","ngSkipHydration","",1,"mat-select"],hostVars:19,hostBindings:function(Q,re){1&Q&&o.NdJ("keydown",function(te){return re._handleKeydown(te)})("focus",function(){return re._onFocus()})("blur",function(){return re._onBlur()}),2&Q&&(o.uIk("id",re.id)("tabindex",re.tabIndex)("aria-controls",re.panelOpen?re.id+"-panel":null)("aria-expanded",re.panelOpen)("aria-label",re.ariaLabel||null)("aria-required",re.required.toString())("aria-disabled",re.disabled.toString())("aria-invalid",re.errorState)("aria-activedescendant",re._getAriaActiveDescendant()),o.ekj("mat-select-disabled",re.disabled)("mat-select-invalid",re.errorState)("mat-select-required",re.required)("mat-select-empty",re.empty)("mat-select-multiple",re.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[o._Bn([{provide:u.Eo,useExisting:X},{provide:a.HF,useExisting:X}]),o.qOj],ngContentSelectors:p,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(Q,re){if(1&Q&&(o.F$t(M),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return re.toggle()}),o.TgZ(3,"div",2),o.YNc(4,x,2,1,"span",3),o.YNc(5,w,3,2,"span",4),o.qZA(),o.TgZ(6,"div",5),o._UZ(7,"div",6),o.qZA()(),o.YNc(8,g,4,14,"ng-template",7),o.NdJ("backdropClick",function(){return re.close()})("attach",function(){return re._onAttached()})("detach",function(){return re.close()})),2&Q){const de=o.MAs(1);o.uIk("aria-owns",re.panelOpen?re.id+"-panel":null),o.xp6(3),o.Q6J("ngSwitch",re.empty),o.uIk("id",re._valueId),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngSwitchCase",!1),o.xp6(3),o.Q6J("cdkConnectedOverlayPanelClass",re._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",re._scrollStrategy)("cdkConnectedOverlayOrigin",de)("cdkConnectedOverlayOpen",re.panelOpen)("cdkConnectedOverlayPositions",re._positions)("cdkConnectedOverlayMinWidth",re._getOverlayMinWidth())("cdkConnectedOverlayOffsetY",re._offsetY)}},dependencies:[n.mk,n.RF,n.n9,n.ED,e.pI,e.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[E.transformPanelWrap,E.transformPanel]},changeDetection:0})}return X})(),K=(()=>{class X{static#e=this.\u0275fac=function(Q){return new(Q||X)};static#t=this.\u0275mod=o.oAB({type:X});static#n=this.\u0275inj=o.cJS({providers:[A.Ep],imports:[n.ez,e.U8,l.Uc,a.BQ,s.ZD,d.wp,l.Uc,a.BQ]})}return X})()},51838:(he,y,i)=>{"use strict";i.d(y,{Wd:()=>f,iZ:()=>x});var e=i(17131),n=i(65879),o=i(23680),a=i(4300),l=i(56223),u=i(82599);const d=["input"],s=function(k){return{enterDuration:k}},A=["*"],_=new n.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),C={provide:l.JU,useExisting:(0,n.Gpc)(()=>x),multi:!0};class R{constructor(w,g){this.source=w,this.checked=g}}let x=(()=>{class k extends u.Z8{constructor(g,M,p,E,b,I){super(g,M,p,E,b,I,"mat-slide-toggle-")}_createChangeEvent(g){return new R(this,g)}_onChangeEvent(g){g.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(g){g.stopPropagation()}focus(g,M){M?this._focusMonitor.focusVia(this._inputElement,M,g):this._inputElement.nativeElement.focus(g)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}static#e=this.\u0275fac=function(M){return new(M||k)(n.Y36(n.SBq),n.Y36(a.tE),n.Y36(n.sBO),n.$8M("tabindex"),n.Y36(_),n.Y36(n.QbO,8))};static#t=this.\u0275cmp=n.Xpm({type:k,selectors:[["mat-slide-toggle"]],viewQuery:function(M,p){if(1&M&&n.Gf(d,5),2&M){let E;n.iGM(E=n.CRH())&&(p._inputElement=E.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(M,p){2&M&&(n.Ikx("id",p.id),n.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),n.ekj("mat-checked",p.checked)("mat-disabled",p.disabled)("mat-slide-toggle-label-before","before"==p.labelPosition)("_mat-animation-noopable",p._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[n._Bn([C]),n.qOj],ngContentSelectors:A,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(M,p){if(1&M&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),n.NdJ("change",function(b){return p._onChangeEvent(b)})("click",function(b){return p._onInputClick(b)}),n.qZA(),n.TgZ(5,"span",5),n._UZ(6,"span",6),n.TgZ(7,"span",7),n._UZ(8,"span",8),n.qZA()()(),n.TgZ(9,"span",9,10),n.NdJ("cdkObserveContent",function(){return p._onLabelTextChange()}),n.TgZ(11,"span",11),n._uU(12,"\xa0"),n.qZA(),n.Hsn(13),n.qZA()()),2&M){const E=n.MAs(1),b=n.MAs(10);n.uIk("for",p.inputId),n.xp6(2),n.ekj("mat-slide-toggle-bar-no-side-margin",!b.textContent||!b.textContent.trim()),n.xp6(1),n.Q6J("id",p.inputId)("required",p.required)("tabIndex",p.tabIndex)("checked",p.checked)("disabled",p.disabled),n.uIk("name",p.name)("aria-checked",p.checked)("aria-label",p.ariaLabel)("aria-labelledby",p.ariaLabelledby)("aria-describedby",p.ariaDescribedby),n.xp6(4),n.Q6J("matRippleTrigger",E)("matRippleDisabled",p.disableRipple||p.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.VKq(18,s,p._noopAnimations?0:150))}},dependencies:[o.wG,e.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0})}return k})(),f=(()=>{class k{static#e=this.\u0275fac=function(M){return new(M||k)};static#t=this.\u0275mod=n.oAB({type:k});static#n=this.\u0275inj=n.cJS({imports:[u.Rb,o.si,o.BQ,e.Q8,u.Rb,o.BQ]})}return k})()},45895:(he,y,i)=>{"use strict";i.d(y,{pl:()=>H,y:()=>j});var e=i(69594),n=i(68484),o=i(96814),a=i(65879),l=i(23680),u=i(94505),d=i(78645),s=i(86825),A=i(62831),_=i(48180),C=i(59773),R=i(4300),x=i(71088);const g=Math.pow(2,31)-1;class M{constructor(q,se){this._overlayRef=se,this._afterDismissed=new d.x,this._afterOpened=new d.x,this._onAction=new d.x,this._dismissedByAction=!1,this.containerInstance=q,q._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(q){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(q,g))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const p=new a.OlP("MatSnackBarData");class E{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const F={snackBarState:(0,s.X$)("state",[(0,s.SB)("void, hidden",(0,s.oB)({transform:"scale(0.8)",opacity:0})),(0,s.SB)("visible",(0,s.oB)({transform:"scale(1)",opacity:1})),(0,s.eR)("* => visible",(0,s.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,s.eR)("* => void, * => hidden",(0,s.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,s.oB)({opacity:0})))])};let P=0,O=(()=>{class z extends n.en{constructor(se,ne,_e,ge,Ce){super(),this._ngZone=se,this._elementRef=ne,this._changeDetectorRef=_e,this._platform=ge,this.snackBarConfig=Ce,this._document=(0,a.f3M)(o.K0),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new d.x,this._onExit=new d.x,this._onEnter=new d.x,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+P++,this.attachDomPortal=Te=>{this._assertNotAttached();const De=this._portalOutlet.attachDomPortal(Te);return this._afterPortalAttached(),De},this._live="assertive"!==Ce.politeness||Ce.announcementMessage?"off"===Ce.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(se){this._assertNotAttached();const ne=this._portalOutlet.attachComponentPortal(se);return this._afterPortalAttached(),ne}attachTemplatePortal(se){this._assertNotAttached();const ne=this._portalOutlet.attachTemplatePortal(se);return this._afterPortalAttached(),ne}onAnimationEnd(se){const{fromState:ne,toState:_e}=se;if(("void"===_e&&"void"!==ne||"hidden"===_e)&&this._completeExit(),"visible"===_e){const ge=this._onEnter;this._ngZone.run(()=>{ge.next(),ge.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,_.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const se=this._elementRef.nativeElement,ne=this.snackBarConfig.panelClass;ne&&(Array.isArray(ne)?ne.forEach(_e=>se.classList.add(_e)):se.classList.add(ne)),this._exposeToModals()}_exposeToModals(){const se=this._liveElementId,ne=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let _e=0;_e<ne.length;_e++){const ge=ne[_e],Ce=ge.getAttribute("aria-owns");this._trackedModals.add(ge),Ce?-1===Ce.indexOf(se)&&ge.setAttribute("aria-owns",Ce+" "+se):ge.setAttribute("aria-owns",se)}}_clearFromModals(){this._trackedModals.forEach(se=>{const ne=se.getAttribute("aria-owns");if(ne){const _e=ne.replace(this._liveElementId,"").trim();_e.length>0?se.setAttribute("aria-owns",_e):se.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const se=this._elementRef.nativeElement.querySelector("[aria-hidden]"),ne=this._elementRef.nativeElement.querySelector("[aria-live]");if(se&&ne){let _e=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&se.contains(document.activeElement)&&(_e=document.activeElement),se.removeAttribute("aria-hidden"),ne.appendChild(se),_e?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static#e=this.\u0275fac=function(ne){return new(ne||z)(a.Y36(a.R0b),a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(A.t4),a.Y36(E))};static#t=this.\u0275dir=a.lG2({type:z,viewQuery:function(ne,_e){if(1&ne&&a.Gf(n.Pl,7),2&ne){let ge;a.iGM(ge=a.CRH())&&(_e._portalOutlet=ge.first)}},features:[a.qOj]})}return z})();const X=new a.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function K(){return new E}});let me=(()=>{class z{get _openedSnackBarRef(){const se=this._parentSnackBar;return se?se._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(se){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=se:this._snackBarRefAtThisLevel=se}constructor(se,ne,_e,ge,Ce,Te){this._overlay=se,this._live=ne,this._injector=_e,this._breakpointObserver=ge,this._parentSnackBar=Ce,this._defaultConfig=Te,this._snackBarRefAtThisLevel=null}openFromComponent(se,ne){return this._attach(se,ne)}openFromTemplate(se,ne){return this._attach(se,ne)}open(se,ne="",_e){const ge={...this._defaultConfig,..._e};return ge.data={message:se,action:ne},ge.announcementMessage===se&&(ge.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,ge)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(se,ne){const ge=a.zs3.create({parent:ne&&ne.viewContainerRef&&ne.viewContainerRef.injector||this._injector,providers:[{provide:E,useValue:ne}]}),Ce=new n.C5(this.snackBarContainerComponent,ne.viewContainerRef,ge),Te=se.attach(Ce);return Te.instance.snackBarConfig=ne,Te.instance}_attach(se,ne){const _e={...new E,...this._defaultConfig,...ne},ge=this._createOverlay(_e),Ce=this._attachSnackBarContainer(ge,_e),Te=new M(Ce,ge);if(se instanceof a.Rgc){const De=new n.UE(se,null,{$implicit:_e.data,snackBarRef:Te});Te.instance=Ce.attachTemplatePortal(De)}else{const De=this._createInjector(_e,Te),fe=new n.C5(se,void 0,De),xe=Ce.attachComponentPortal(fe);Te.instance=xe.instance}return this._breakpointObserver.observe(x.u3.HandsetPortrait).pipe((0,C.R)(ge.detachments())).subscribe(De=>{ge.overlayElement.classList.toggle(this.handsetCssClass,De.matches)}),_e.announcementMessage&&Ce._onAnnounce.subscribe(()=>{this._live.announce(_e.announcementMessage,_e.politeness)}),this._animateSnackBar(Te,_e),this._openedSnackBarRef=Te,this._openedSnackBarRef}_animateSnackBar(se,ne){se.afterDismissed().subscribe(()=>{this._openedSnackBarRef==se&&(this._openedSnackBarRef=null),ne.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{se.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):se.containerInstance.enter(),ne.duration&&ne.duration>0&&se.afterOpened().subscribe(()=>se._dismissAfter(ne.duration))}_createOverlay(se){const ne=new e.X_;ne.direction=se.direction;let _e=this._overlay.position().global();const ge="rtl"===se.direction,Ce="left"===se.horizontalPosition||"start"===se.horizontalPosition&&!ge||"end"===se.horizontalPosition&&ge,Te=!Ce&&"center"!==se.horizontalPosition;return Ce?_e.left("0"):Te?_e.right("0"):_e.centerHorizontally(),"top"===se.verticalPosition?_e.top("0"):_e.bottom("0"),ne.positionStrategy=_e,this._overlay.create(ne)}_createInjector(se,ne){return a.zs3.create({parent:se&&se.viewContainerRef&&se.viewContainerRef.injector||this._injector,providers:[{provide:M,useValue:ne},{provide:p,useValue:se.data}]})}static#e=this.\u0275fac=function(ne){return new(ne||z)(a.LFG(e.aV),a.LFG(R.Kd),a.LFG(a.zs3),a.LFG(x.Yg),a.LFG(z,12),a.LFG(X))};static#t=this.\u0275prov=a.Yz7({token:z,factory:z.\u0275fac})}return z})();function Q(z,q){if(1&z){const se=a.EpF();a.TgZ(0,"div",2)(1,"button",3),a.NdJ("click",function(){a.CHM(se);const _e=a.oxw();return a.KtG(_e.action())}),a._uU(2),a.qZA()()}if(2&z){const se=a.oxw();a.xp6(2),a.Oqu(se.data.action)}}function re(z,q){}let de=(()=>{class z{constructor(se,ne){this.snackBarRef=se,this.data=ne}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static#e=this.\u0275fac=function(ne){return new(ne||z)(a.Y36(M),a.Y36(p))};static#t=this.\u0275cmp=a.Xpm({type:z,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(ne,_e){1&ne&&(a.TgZ(0,"span",0),a._uU(1),a.qZA(),a.YNc(2,Q,3,1,"div",1)),2&ne&&(a.xp6(1),a.Oqu(_e.data.message),a.xp6(1),a.Q6J("ngIf",_e.hasAction))},dependencies:[o.O5,u.eB],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0})}return z})(),te=(()=>{class z extends O{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}static#e=this.\u0275fac=function(){let se;return function(_e){return(se||(se=a.n5z(z)))(_e||z)}}();static#t=this.\u0275cmp=a.Xpm({type:z,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(ne,_e){1&ne&&a.WFA("@state.done",function(Ce){return _e.onAnimationEnd(Ce)}),2&ne&&a.d8E("@state",_e._animationState)},features:[a.qOj],decls:3,vars:3,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(ne,_e){1&ne&&(a.TgZ(0,"div",0),a.YNc(1,re,0,0,"ng-template",1),a.qZA(),a._UZ(2,"div")),2&ne&&(a.xp6(2),a.uIk("aria-live",_e._live)("role",_e._role)("id",_e._liveElementId))},dependencies:[n.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[F.snackBarState]}})}return z})(),j=(()=>{class z{static#e=this.\u0275fac=function(ne){return new(ne||z)};static#t=this.\u0275mod=a.oAB({type:z});static#n=this.\u0275inj=a.cJS({imports:[e.U8,n.eL,o.ez,u.yu,l.BQ,l.BQ]})}return z})(),H=(()=>{class z extends me{constructor(se,ne,_e,ge,Ce,Te){super(se,ne,_e,ge,Ce,Te),this.simpleSnackBarComponent=de,this.snackBarContainerComponent=te,this.handsetCssClass="mat-snack-bar-handset"}static#e=this.\u0275fac=function(ne){return new(ne||z)(a.LFG(e.aV),a.LFG(R.Kd),a.LFG(a.zs3),a.LFG(x.Yg),a.LFG(z,12),a.LFG(X))};static#t=this.\u0275prov=a.Yz7({token:z,factory:z.\u0275fac,providedIn:j})}return z})()},54841:(he,y,i)=>{"use strict";i.d(y,{Al:()=>b,II:()=>L,L7:()=>w,ML:()=>M,R3:()=>R,S4:()=>p,U5:()=>U,Uq:()=>f,Zw:()=>D,fg:()=>I,i5:()=>g,r4:()=>V,rl:()=>E,t3:()=>k,ty:()=>C,wO:()=>x});var e=i(65879),n=i(14643),o=i(78337),a=i(23680),l=i(49538);const u=[[["caption"]],[["colgroup"],["col"]]],d=["caption","colgroup, col"];let C=(()=>{class K extends n.zC{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}static#e=this.\u0275fac=function(){let me;return function(Q){return(me||(me=e.n5z(K)))(Q||K)}}();static#t=this.\u0275cmp=e.Xpm({type:K,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:["ngSkipHydration","",1,"mat-table"],hostVars:2,hostBindings:function(J,Q){2&J&&e.ekj("mat-table-fixed-layout",Q.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:o.k,useClass:o.yy},{provide:n.zC,useExisting:K},{provide:n.pN,useExisting:K},{provide:n.nl,useClass:n.oF},{provide:n.pF,useValue:null}]),e.qOj],ngContentSelectors:d,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(J,Q){1&J&&(e.F$t(u),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[n.T$,n.FT,n.$E,n.bH],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return K})(),R=(()=>{class K extends n.O_{static#e=this.\u0275fac=function(){let me;return function(Q){return(me||(me=e.n5z(K)))(Q||K)}}();static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:n.O_,useExisting:K}]),e.qOj]})}return K})(),x=(()=>{class K extends n.D5{static#e=this.\u0275fac=function(){let me;return function(Q){return(me||(me=e.n5z(K)))(Q||K)}}();static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:n.D5,useExisting:K}]),e.qOj]})}return K})(),f=(()=>{class K extends n.Z4{static#e=this.\u0275fac=function(){let me;return function(Q){return(me||(me=e.n5z(K)))(Q||K)}}();static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","matFooterCellDef",""]],features:[e._Bn([{provide:n.Z4,useExisting:K}]),e.qOj]})}return K})(),k=(()=>{class K extends n.fo{get name(){return this._name}set name(me){this._setNameInput(me)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static#e=this.\u0275fac=function(){let me;return function(Q){return(me||(me=e.n5z(K)))(Q||K)}}();static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:n.fo,useExisting:K},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:K}]),e.qOj]})}return K})(),w=(()=>{class K extends n.Af{static#e=this.\u0275fac=function(){let me;return function(Q){return(me||(me=e.n5z(K)))(Q||K)}}();static#t=this.\u0275dir=e.lG2({type:K,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]})}return K})(),g=(()=>{class K extends n.QJ{static#e=this.\u0275fac=function(){let me;return function(Q){return(me||(me=e.n5z(K)))(Q||K)}}();static#t=this.\u0275dir=e.lG2({type:K,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[e.qOj]})}return K})(),M=(()=>{class K extends n.hD{static#e=this.\u0275fac=function(){let me;return function(Q){return(me||(me=e.n5z(K)))(Q||K)}}();static#t=this.\u0275dir=e.lG2({type:K,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]})}return K})(),p=(()=>{class K extends n.s${static#e=this.\u0275fac=function(){let me;return function(Q){return(me||(me=e.n5z(K)))(Q||K)}}();static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:n.s$,useExisting:K}]),e.qOj]})}return K})(),E=(()=>{class K extends n.fe{static#e=this.\u0275fac=function(){let me;return function(Q){return(me||(me=e.n5z(K)))(Q||K)}}();static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[e._Bn([{provide:n.fe,useExisting:K}]),e.qOj]})}return K})(),b=(()=>{class K extends n.Sq{static#e=this.\u0275fac=function(){let me;return function(Q){return(me||(me=e.n5z(K)))(Q||K)}}();static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:n.Sq,useExisting:K}]),e.qOj]})}return K})(),I=(()=>{class K extends n.xN{static#e=this.\u0275fac=function(){let me;return function(Q){return(me||(me=e.n5z(K)))(Q||K)}}();static#t=this.\u0275cmp=e.Xpm({type:K,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:n.xN,useExisting:K}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(J,Q){1&J&&e.GkF(0,0)},dependencies:[n.Kb],encapsulation:2})}return K})(),L=(()=>{class K extends n.qM{static#e=this.\u0275fac=function(){let me;return function(Q){return(me||(me=e.n5z(K)))(Q||K)}}();static#t=this.\u0275cmp=e.Xpm({type:K,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[e._Bn([{provide:n.qM,useExisting:K}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(J,Q){1&J&&e.GkF(0,0)},dependencies:[n.Kb],encapsulation:2})}return K})(),D=(()=>{class K extends n._J{static#e=this.\u0275fac=function(){let me;return function(Q){return(me||(me=e.n5z(K)))(Q||K)}}();static#t=this.\u0275cmp=e.Xpm({type:K,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:n._J,useExisting:K}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(J,Q){1&J&&e.GkF(0,0)},dependencies:[n.Kb],encapsulation:2})}return K})(),U=(()=>{class K{static#e=this.\u0275fac=function(J){return new(J||K)};static#t=this.\u0275mod=e.oAB({type:K});static#n=this.\u0275inj=e.cJS({imports:[n.HT,a.BQ,a.BQ]})}return K})();class V extends l._4{}},32333:(he,y,i)=>{"use strict";i.d(y,{JV:()=>H,Nn:()=>ne,R7:()=>X,SK:()=>de,gz:()=>q,vP:()=>j});var e=i(4300),n=i(17131),o=i(68484),a=i(96814),l=i(65879),u=i(23680),d=i(48180),s=i(74104),A=i(49388),_=i(16672),C=i(62831);function R(_e,ge){1&_e&&l.Hsn(0)}const x=["*"];function f(_e,ge){}const k=function(_e){return{animationDuration:_e}},w=function(_e,ge){return{value:_e,params:ge}},g=["tabListContainer"],M=["tabList"],p=["tabListInner"],E=["nextPaginator"],b=["previousPaginator"],I=["tabBodyWrapper"],L=["tabHeader"];function D(_e,ge){}function F(_e,ge){if(1&_e&&l.YNc(0,D,0,0,"ng-template",10),2&_e){const Ce=l.oxw().$implicit;l.Q6J("cdkPortalOutlet",Ce.templateLabel)}}function P(_e,ge){if(1&_e&&l._uU(0),2&_e){const Ce=l.oxw().$implicit;l.Oqu(Ce.textLabel)}}function O(_e,ge){if(1&_e){const Ce=l.EpF();l.TgZ(0,"div",6),l.NdJ("click",function(){const De=l.CHM(Ce),fe=De.$implicit,xe=De.index,Oe=l.oxw(),Le=l.MAs(1);return l.KtG(Oe._handleClick(fe,Le,xe))})("cdkFocusChange",function(De){const xe=l.CHM(Ce).index,Oe=l.oxw();return l.KtG(Oe._tabFocusChanged(De,xe))}),l.TgZ(1,"div",7),l.YNc(2,F,1,1,"ng-template",8),l.YNc(3,P,1,1,"ng-template",null,9,l.W1O),l.qZA()()}if(2&_e){const Ce=ge.$implicit,Te=ge.index,De=l.MAs(4),fe=l.oxw();l.ekj("mat-tab-label-active",fe.selectedIndex===Te),l.Q6J("id",fe._getTabLabelId(Te))("ngClass",Ce.labelClass)("disabled",Ce.disabled)("matRippleDisabled",Ce.disabled||fe.disableRipple),l.uIk("tabIndex",fe._getTabIndex(Te))("aria-posinset",Te+1)("aria-setsize",fe._tabs.length)("aria-controls",fe._getTabContentId(Te))("aria-selected",fe.selectedIndex===Te)("aria-label",Ce.ariaLabel||null)("aria-labelledby",!Ce.ariaLabel&&Ce.ariaLabelledby?Ce.ariaLabelledby:null),l.xp6(2),l.Q6J("ngIf",Ce.templateLabel)("ngIfElse",De)}}function U(_e,ge){if(1&_e){const Ce=l.EpF();l.TgZ(0,"mat-tab-body",11),l.NdJ("_onCentered",function(){l.CHM(Ce);const De=l.oxw();return l.KtG(De._removeTabBodyWrapperHeight())})("_onCentering",function(De){l.CHM(Ce);const fe=l.oxw();return l.KtG(fe._setTabBodyWrapperHeight(De))}),l.qZA()}if(2&_e){const Ce=ge.$implicit,Te=ge.index,De=l.oxw();l.ekj("mat-tab-body-active",De.selectedIndex===Te),l.Q6J("id",De._getTabContentId(Te))("ngClass",Ce.bodyClass)("content",Ce.content)("position",Ce.position)("origin",Ce.origin)("animationDuration",De.animationDuration)("preserveContent",De.preserveContent),l.uIk("tabindex",null!=De.contentTabIndex&&De.selectedIndex===Te?De.contentTabIndex:null)("aria-labelledby",De._getTabLabelId(Te))}}const V=["mat-tab-nav-bar",""];let K=(()=>{class _e{constructor(Ce,Te,De,fe){this._elementRef=Ce,this._ngZone=Te,this._inkBarPositioner=De,this._animationMode=fe}alignToElement(Ce){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,d.q)(1)).subscribe(()=>{const Te=this._inkBarPositioner(Ce),De=this._elementRef.nativeElement;De.style.left=Te.left,De.style.width=Te.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}static#e=this.\u0275fac=function(Te){return new(Te||_e)(l.Y36(l.SBq),l.Y36(l.R0b),l.Y36(s.A$),l.Y36(l.QbO,8))};static#t=this.\u0275dir=l.lG2({type:_e,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Te,De){2&Te&&l.ekj("_mat-animation-noopable","NoopAnimations"===De._animationMode)}})}return _e})(),X=(()=>{class _e extends s.lk{constructor(){super(...arguments),this._explicitContent=void 0}get templateLabel(){return this._templateLabel}set templateLabel(Ce){this._setTemplateLabelInput(Ce)}static#e=this.\u0275fac=function(){let Ce;return function(De){return(Ce||(Ce=l.n5z(_e)))(De||_e)}}();static#t=this.\u0275cmp=l.Xpm({type:_e,selectors:[["mat-tab"]],contentQueries:function(Te,De,fe){if(1&Te&&(l.Suo(fe,s.TL,5),l.Suo(fe,s.E5,7,l.Rgc)),2&Te){let xe;l.iGM(xe=l.CRH())&&(De.templateLabel=xe.first),l.iGM(xe=l.CRH())&&(De._explicitContent=xe.first)}},hostVars:1,hostBindings:function(Te,De){2&Te&&l.uIk("mat-id-collision",null)},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[l._Bn([{provide:s.b3,useExisting:_e}]),l.qOj],ngContentSelectors:x,decls:1,vars:0,template:function(Te,De){1&Te&&(l.F$t(),l.YNc(0,R,1,0,"ng-template"))},encapsulation:2})}return _e})(),me=(()=>{class _e extends s.JO{constructor(Ce,Te,De,fe){super(Ce,Te,De,fe)}static#e=this.\u0275fac=function(Te){return new(Te||_e)(l.Y36(l._Vd),l.Y36(l.s_b),l.Y36((0,l.Gpc)(()=>J)),l.Y36(a.K0))};static#t=this.\u0275dir=l.lG2({type:_e,selectors:[["","matTabBodyHost",""]],features:[l.qOj]})}return _e})(),J=(()=>{class _e extends s.af{constructor(Ce,Te,De){super(Ce,Te,De)}static#e=this.\u0275fac=function(Te){return new(Te||_e)(l.Y36(l.SBq),l.Y36(A.Is,8),l.Y36(l.sBO))};static#t=this.\u0275cmp=l.Xpm({type:_e,selectors:[["mat-tab-body"]],viewQuery:function(Te,De){if(1&Te&&l.Gf(o.Pl,5),2&Te){let fe;l.iGM(fe=l.CRH())&&(De._portalHost=fe.first)}},hostAttrs:[1,"mat-tab-body"],features:[l.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Te,De){1&Te&&(l.TgZ(0,"div",0,1),l.NdJ("@translateTab.start",function(xe){return De._onTranslateTabStarted(xe)})("@translateTab.done",function(xe){return De._translateTabComplete.next(xe)}),l.YNc(2,f,0,0,"ng-template",2),l.qZA()),2&Te&&l.Q6J("@translateTab",l.WLB(3,w,De._position,l.VKq(1,k,De.animationDuration)))},dependencies:[me],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[s.sd.translateTab]}})}return _e})(),Q=(()=>{class _e extends s._r{static#e=this.\u0275fac=function(){let Ce;return function(De){return(Ce||(Ce=l.n5z(_e)))(De||_e)}}();static#t=this.\u0275dir=l.lG2({type:_e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Te,De){2&Te&&(l.uIk("aria-disabled",!!De.disabled),l.ekj("mat-tab-disabled",De.disabled))},inputs:{disabled:"disabled"},features:[l.qOj]})}return _e})(),re=(()=>{class _e extends s.wo{constructor(Ce,Te,De,fe,xe,Oe,Le){super(Ce,Te,De,fe,xe,Oe,Le)}static#e=this.\u0275fac=function(Te){return new(Te||_e)(l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(_.rL),l.Y36(A.Is,8),l.Y36(l.R0b),l.Y36(C.t4),l.Y36(l.QbO,8))};static#t=this.\u0275cmp=l.Xpm({type:_e,selectors:[["mat-tab-header"]],contentQueries:function(Te,De,fe){if(1&Te&&l.Suo(fe,Q,4),2&Te){let xe;l.iGM(xe=l.CRH())&&(De._items=xe)}},viewQuery:function(Te,De){if(1&Te&&(l.Gf(K,7),l.Gf(g,7),l.Gf(M,7),l.Gf(p,7),l.Gf(E,5),l.Gf(b,5)),2&Te){let fe;l.iGM(fe=l.CRH())&&(De._inkBar=fe.first),l.iGM(fe=l.CRH())&&(De._tabListContainer=fe.first),l.iGM(fe=l.CRH())&&(De._tabList=fe.first),l.iGM(fe=l.CRH())&&(De._tabListInner=fe.first),l.iGM(fe=l.CRH())&&(De._nextPaginator=fe.first),l.iGM(fe=l.CRH())&&(De._previousPaginator=fe.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Te,De){2&Te&&l.ekj("mat-tab-header-pagination-controls-enabled",De._showPaginationControls)("mat-tab-header-rtl","rtl"==De._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[l.qOj],ngContentSelectors:x,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Te,De){1&Te&&(l.F$t(),l.TgZ(0,"button",0,1),l.NdJ("click",function(){return De._handlePaginatorClick("before")})("mousedown",function(xe){return De._handlePaginatorPress("before",xe)})("touchend",function(){return De._stopInterval()}),l._UZ(2,"div",2),l.qZA(),l.TgZ(3,"div",3,4),l.NdJ("keydown",function(xe){return De._handleKeydown(xe)}),l.TgZ(5,"div",5,6),l.NdJ("cdkObserveContent",function(){return De._onContentChanges()}),l.TgZ(7,"div",7,8),l.Hsn(9),l.qZA(),l._UZ(10,"mat-ink-bar"),l.qZA()(),l.TgZ(11,"button",9,10),l.NdJ("mousedown",function(xe){return De._handlePaginatorPress("after",xe)})("click",function(){return De._handlePaginatorClick("after")})("touchend",function(){return De._stopInterval()}),l._UZ(13,"div",2),l.qZA()),2&Te&&(l.ekj("mat-tab-header-pagination-disabled",De._disableScrollBefore),l.Q6J("matRippleDisabled",De._disableScrollBefore||De.disableRipple)("disabled",De._disableScrollBefore||null),l.xp6(5),l.ekj("_mat-animation-noopable","NoopAnimations"===De._animationMode),l.xp6(6),l.ekj("mat-tab-header-pagination-disabled",De._disableScrollAfter),l.Q6J("matRippleDisabled",De._disableScrollAfter||De.disableRipple)("disabled",De._disableScrollAfter||null))},dependencies:[u.wG,n.wD,K],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2})}return _e})(),de=(()=>{class _e extends s.he{constructor(Ce,Te,De,fe){super(Ce,Te,De,fe)}static#e=this.\u0275fac=function(Te){return new(Te||_e)(l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(s.lp,8),l.Y36(l.QbO,8))};static#t=this.\u0275cmp=l.Xpm({type:_e,selectors:[["mat-tab-group"]],contentQueries:function(Te,De,fe){if(1&Te&&l.Suo(fe,X,5),2&Te){let xe;l.iGM(xe=l.CRH())&&(De._allTabs=xe)}},viewQuery:function(Te,De){if(1&Te&&(l.Gf(I,5),l.Gf(L,5)),2&Te){let fe;l.iGM(fe=l.CRH())&&(De._tabBodyWrapper=fe.first),l.iGM(fe=l.CRH())&&(De._tabHeader=fe.first)}},hostAttrs:["ngSkipHydration","",1,"mat-tab-group"],hostVars:4,hostBindings:function(Te,De){2&Te&&l.ekj("mat-tab-group-dynamic-height",De.dynamicHeight)("mat-tab-group-inverted-header","below"===De.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[l._Bn([{provide:s.NY,useExisting:_e}]),l.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(Te,De){1&Te&&(l.TgZ(0,"mat-tab-header",0,1),l.NdJ("indexFocused",function(xe){return De._focusChanged(xe)})("selectFocusedIndex",function(xe){return De.selectedIndex=xe}),l.YNc(2,O,5,15,"div",2),l.qZA(),l.TgZ(3,"div",3,4),l.YNc(5,U,1,11,"mat-tab-body",5),l.qZA()),2&Te&&(l.Q6J("selectedIndex",De.selectedIndex||0)("disableRipple",De.disableRipple)("disablePagination",De.disablePagination),l.xp6(2),l.Q6J("ngForOf",De._tabs),l.xp6(1),l.ekj("_mat-animation-noopable","NoopAnimations"===De._animationMode),l.xp6(2),l.Q6J("ngForOf",De._tabs))},dependencies:[a.mk,a.sg,a.O5,o.Pl,u.wG,e.kH,Q,J,re],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2})}return _e})(),j=(()=>{class _e extends s.j_{constructor(Ce,Te,De,fe,xe,Oe,Le){super(Ce,Te,De,fe,xe,Oe,Le)}static#e=this.\u0275fac=function(Te){return new(Te||_e)(l.Y36(l.SBq),l.Y36(A.Is,8),l.Y36(l.R0b),l.Y36(l.sBO),l.Y36(_.rL),l.Y36(C.t4),l.Y36(l.QbO,8))};static#t=this.\u0275cmp=l.Xpm({type:_e,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(Te,De,fe){if(1&Te&&l.Suo(fe,H,5),2&Te){let xe;l.iGM(xe=l.CRH())&&(De._items=xe)}},viewQuery:function(Te,De){if(1&Te&&(l.Gf(K,7),l.Gf(g,7),l.Gf(M,7),l.Gf(p,7),l.Gf(E,5),l.Gf(b,5)),2&Te){let fe;l.iGM(fe=l.CRH())&&(De._inkBar=fe.first),l.iGM(fe=l.CRH())&&(De._tabListContainer=fe.first),l.iGM(fe=l.CRH())&&(De._tabList=fe.first),l.iGM(fe=l.CRH())&&(De._tabListInner=fe.first),l.iGM(fe=l.CRH())&&(De._nextPaginator=fe.first),l.iGM(fe=l.CRH())&&(De._previousPaginator=fe.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(Te,De){2&Te&&(l.uIk("role",De._getRole()),l.ekj("mat-tab-header-pagination-controls-enabled",De._showPaginationControls)("mat-tab-header-rtl","rtl"==De._getLayoutDirection())("mat-primary","warn"!==De.color&&"accent"!==De.color)("mat-accent","accent"===De.color)("mat-warn","warn"===De.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[l.qOj],attrs:V,ngContentSelectors:x,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Te,De){1&Te&&(l.F$t(),l.TgZ(0,"button",0,1),l.NdJ("click",function(){return De._handlePaginatorClick("before")})("mousedown",function(xe){return De._handlePaginatorPress("before",xe)})("touchend",function(){return De._stopInterval()}),l._UZ(2,"div",2),l.qZA(),l.TgZ(3,"div",3,4),l.NdJ("keydown",function(xe){return De._handleKeydown(xe)}),l.TgZ(5,"div",5,6),l.NdJ("cdkObserveContent",function(){return De._onContentChanges()}),l.TgZ(7,"div",7,8),l.Hsn(9),l.qZA(),l._UZ(10,"mat-ink-bar"),l.qZA()(),l.TgZ(11,"button",9,10),l.NdJ("mousedown",function(xe){return De._handlePaginatorPress("after",xe)})("click",function(){return De._handlePaginatorClick("after")})("touchend",function(){return De._stopInterval()}),l._UZ(13,"div",2),l.qZA()),2&Te&&(l.ekj("mat-tab-header-pagination-disabled",De._disableScrollBefore),l.Q6J("matRippleDisabled",De._disableScrollBefore||De.disableRipple)("disabled",De._disableScrollBefore||null),l.xp6(5),l.ekj("_mat-animation-noopable","NoopAnimations"===De._animationMode),l.xp6(6),l.ekj("mat-tab-header-pagination-disabled",De._disableScrollAfter),l.Q6J("matRippleDisabled",De._disableScrollAfter||De.disableRipple)("disabled",De._disableScrollAfter||null))},dependencies:[u.wG,n.wD,K],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}"],encapsulation:2})}return _e})(),H=(()=>{class _e extends s.j4{constructor(Ce,Te,De,fe,xe,Oe,Le,Gt){super(Ce,Te,xe,Oe,Le,Gt),this._tabLinkRipple=new u.IR(this,De,Te,fe),this._tabLinkRipple.setupTriggerEvents(Te.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}static#e=this.\u0275fac=function(Te){return new(Te||_e)(l.Y36(j),l.Y36(l.SBq),l.Y36(l.R0b),l.Y36(C.t4),l.Y36(u.Y2,8),l.$8M("tabindex"),l.Y36(e.tE),l.Y36(l.QbO,8))};static#t=this.\u0275dir=l.lG2({type:_e,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(Te,De){1&Te&&l.NdJ("focus",function(){return De._handleFocus()})("keydown",function(xe){return De._handleKeydown(xe)}),2&Te&&(l.uIk("aria-controls",De._getAriaControls())("aria-current",De._getAriaCurrent())("aria-disabled",De.disabled)("aria-selected",De._getAriaSelected())("id",De.id)("tabIndex",De._getTabIndex())("role",De._getRole()),l.ekj("mat-tab-disabled",De.disabled)("mat-tab-label-active",De.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[l.qOj]})}return _e})(),q=(()=>{class _e extends s.uD{static#e=this.\u0275fac=function(){let Ce;return function(De){return(Ce||(Ce=l.n5z(_e)))(De||_e)}}();static#t=this.\u0275dir=l.lG2({type:_e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[l._Bn([{provide:s.TL,useExisting:_e}]),l.qOj]})}return _e})(),ne=(()=>{class _e{static#e=this.\u0275fac=function(Te){return new(Te||_e)};static#t=this.\u0275mod=l.oAB({type:_e});static#n=this.\u0275inj=l.cJS({imports:[a.ez,u.BQ,o.eL,u.si,n.Q8,e.rt,u.BQ]})}return _e})()},30481:(he,y,i)=>{"use strict";i.d(y,{AA:()=>k,Kd:()=>x});var e=i(69594),n=i(4300),o=i(96814),a=i(65879),l=i(23680),u=i(16672),d=i(49388),s=i(71088),A=i(62831),_=i(92596);i(86825);const R=["tooltip"];let x=(()=>{class g extends _.xT{constructor(p,E,b,I,L,D,F,P,O,U,V,K){super(p,E,b,I,L,D,F,P,O,U,V,K),this._tooltipComponent=f}static#e=this.\u0275fac=function(E){return new(E||g)(a.Y36(e.aV),a.Y36(a.SBq),a.Y36(u.mF),a.Y36(a.s_b),a.Y36(a.R0b),a.Y36(A.t4),a.Y36(n.$s),a.Y36(n.tE),a.Y36(_.cV),a.Y36(d.Is,8),a.Y36(_.Jm,8),a.Y36(o.K0))};static#t=this.\u0275dir=a.lG2({type:g,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],hostVars:2,hostBindings:function(E,b){2&E&&a.ekj("mat-tooltip-disabled",b.disabled)},exportAs:["matTooltip"],features:[a.qOj]})}return g})(),f=(()=>{class g extends _.tr{constructor(p,E,b){super(p,b),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide",this._isHandset=E.observe(s.u3.Handset)}static#e=this.\u0275fac=function(E){return new(E||g)(a.Y36(a.sBO),a.Y36(s.Yg),a.Y36(a.QbO,8))};static#t=this.\u0275cmp=a.Xpm({type:g,selectors:[["mat-tooltip-component"]],viewQuery:function(E,b){if(1&E&&a.Gf(R,7),2&E){let I;a.iGM(I=a.CRH())&&(b._tooltip=I.first)}},hostAttrs:["aria-hidden","true"],hostVars:3,hostBindings:function(E,b){1&E&&a.NdJ("mouseleave",function(L){return b._handleMouseLeave(L)}),2&E&&(a.uIk("mat-id-collision",null),a.Udp("zoom",b.isVisible()?1:null))},features:[a.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(E,b){if(1&E&&(a.TgZ(0,"div",0,1),a.NdJ("animationend",function(L){return b._handleAnimationEnd(L)}),a.ALo(2,"async"),a._uU(3),a.qZA()),2&E){let I;a.ekj("mat-tooltip-handset",null==(I=a.lcZ(2,4,b._isHandset))?null:I.matches),a.Q6J("ngClass",b.tooltipClass),a.xp6(3),a.Oqu(b.message)}},dependencies:[o.mk,o.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0})}return g})(),k=(()=>{class g{static#e=this.\u0275fac=function(E){return new(E||g)};static#t=this.\u0275mod=a.oAB({type:g});static#n=this.\u0275inj=a.cJS({providers:[_.Mp],imports:[n.rt,o.ez,e.U8,l.BQ,l.BQ,u.ZD]})}return g})()},59038:(he,y,i)=>{"use strict";i.d(y,{Y5:()=>Oe,_O:()=>xn,ie:()=>sn});var e=i(65879),a=(i(42495),i(62831),i(23680)),s=(i(47394),i(63019),i(78645),i(17131)),A=i(96814),_=i(26385);i(4300),i(78337),i(36028),i(56223),i(59773);const Oe=new e.OlP("MatList"),xn=new e.OlP("MatNavList");let sn=(()=>{class fn{static#e=this.\u0275fac=function(Mi){return new(Mi||fn)};static#t=this.\u0275mod=e.oAB({type:fn});static#n=this.\u0275inj=e.cJS({imports:[s.Q8,A.ez,a.BQ,a.si,a.us,_.t]})}return fn})()},77988:(he,y,i)=>{"use strict";i.d(y,{Ce:()=>ge,OP:()=>me,Sj:()=>K,Tf:()=>ne,Tx:()=>Ut,VK:()=>Ce,W2:()=>fe,gw:()=>H,js:()=>Le,p6:()=>Gt});var e=i(65879),n=i(4300),o=i(42495),a=i(36028),l=i(78645),u=i(63019),d=i(47394),s=i(22096),A=i(76410),_=i(27921),C=i(94664),R=i(48180),x=i(59773),f=i(32181),k=i(5177),w=i(23680),g=i(96814),M=i(68484),p=i(86825),E=i(49388),b=i(69594),I=i(62831),L=i(16672);const D=["mat-menu-item",""];function F(An,$n){1&An&&(e.O4$(),e.TgZ(0,"svg",3),e._UZ(1,"polygon",4),e.qZA())}const P=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],O=["mat-icon, [matMenuItemIcon]","*"];function U(An,$n){if(1&An){const xn=e.EpF();e.TgZ(0,"div",0),e.NdJ("keydown",function(ut){e.CHM(xn);const Wt=e.oxw();return e.KtG(Wt._handleKeydown(ut))})("click",function(){e.CHM(xn);const ut=e.oxw();return e.KtG(ut.closed.emit("click"))})("@transformMenu.start",function(ut){e.CHM(xn);const Wt=e.oxw();return e.KtG(Wt._onAnimationStart(ut))})("@transformMenu.done",function(ut){e.CHM(xn);const Wt=e.oxw();return e.KtG(Wt._onAnimationDone(ut))}),e.TgZ(1,"div",1),e.Hsn(2),e.qZA()()}if(2&An){const xn=e.oxw();e.Q6J("id",xn.panelId)("ngClass",xn._classList)("@transformMenu",xn._panelAnimationState),e.uIk("aria-label",xn.ariaLabel||null)("aria-labelledby",xn.ariaLabelledby||null)("aria-describedby",xn.ariaDescribedby||null)}}const V=["*"],K=new e.OlP("MAT_MENU_PANEL"),X=(0,w.Kr)((0,w.Id)(class{}));let me=(()=>{class An extends X{constructor(xn,mt,ut,Wt,dn){super(),this._elementRef=xn,this._document=mt,this._focusMonitor=ut,this._parentMenu=Wt,this._changeDetectorRef=dn,this.role="menuitem",this._hovered=new l.x,this._focused=new l.x,this._highlighted=!1,this._triggersSubmenu=!1,Wt?.addItem?.(this)}focus(xn,mt){this._focusMonitor&&xn?this._focusMonitor.focusVia(this._getHostElement(),xn,mt):this._getHostElement().focus(mt),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(xn){this.disabled&&(xn.preventDefault(),xn.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const xn=this._elementRef.nativeElement.cloneNode(!0),mt=xn.querySelectorAll("mat-icon, .material-icons");for(let ut=0;ut<mt.length;ut++)mt[ut].remove();return xn.textContent?.trim()||""}_setHighlighted(xn){this._highlighted=xn,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(xn){this._triggersSubmenu=xn,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static#e=this.\u0275fac=function(mt){return new(mt||An)(e.Y36(e.SBq),e.Y36(g.K0),e.Y36(n.tE),e.Y36(K,8),e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:An,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator","mdc-list-item"],hostVars:8,hostBindings:function(mt,ut){1&mt&&e.NdJ("click",function(dn){return ut._checkDisabled(dn)})("mouseenter",function(){return ut._handleMouseEnter()}),2&mt&&(e.uIk("role",ut.role)("tabindex",ut._getTabIndex())("aria-disabled",ut.disabled)("disabled",ut.disabled||null),e.ekj("mat-mdc-menu-item-highlighted",ut._highlighted)("mat-mdc-menu-item-submenu-trigger",ut._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[e.qOj],attrs:D,ngContentSelectors:O,decls:5,vars:3,consts:[[1,"mdc-list-item__primary-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-mdc-menu-submenu-icon","viewBox","0 0 5 10","focusable","false","aria-hidden","true",4,"ngIf"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(mt,ut){1&mt&&(e.F$t(P),e.Hsn(0),e.TgZ(1,"span",0),e.Hsn(2,1),e.qZA(),e._UZ(3,"div",1),e.YNc(4,F,2,0,"svg",2)),2&mt&&(e.xp6(3),e.Q6J("matRippleDisabled",ut.disableRipple||ut.disabled)("matRippleTrigger",ut._getHostElement()),e.xp6(1),e.Q6J("ngIf",ut._triggersSubmenu))},dependencies:[g.O5,w.wG],encapsulation:2,changeDetection:0})}return An})();const de=new e.OlP("MatMenuContent"),H={transformMenu:(0,p.X$)("transformMenu",[(0,p.SB)("void",(0,p.oB)({opacity:0,transform:"scale(0.8)"})),(0,p.eR)("void => enter",(0,p.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,p.oB)({opacity:1,transform:"scale(1)"}))),(0,p.eR)("* => void",(0,p.jt)("100ms 25ms linear",(0,p.oB)({opacity:0})))]),fadeInItems:(0,p.X$)("fadeInItems",[(0,p.SB)("showing",(0,p.oB)({opacity:1})),(0,p.eR)("void => *",[(0,p.oB)({opacity:0}),(0,p.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let se=0;const ne=new e.OlP("mat-menu-default-options",{providedIn:"root",factory:function _e(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let ge=(()=>{class An{get xPosition(){return this._xPosition}set xPosition(xn){this._xPosition=xn,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(xn){this._yPosition=xn,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(xn){this._overlapTrigger=(0,o.Ig)(xn)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(xn){this._hasBackdrop=(0,o.Ig)(xn)}set panelClass(xn){const mt=this._previousPanelClass;mt&&mt.length&&mt.split(" ").forEach(ut=>{this._classList[ut]=!1}),this._previousPanelClass=xn,xn&&xn.length&&(xn.split(" ").forEach(ut=>{this._classList[ut]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(xn){this.panelClass=xn}constructor(xn,mt,ut,Wt){this._elementRef=xn,this._ngZone=mt,this._changeDetectorRef=Wt,this._directDescendantItems=new e.n_E,this._classList={},this._panelAnimationState="void",this._animationDone=new l.x,this.closed=new e.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+se++,this.overlayPanelClass=ut.overlayPanelClass||"",this._xPosition=ut.xPosition,this._yPosition=ut.yPosition,this.backdropClass=ut.backdropClass,this._overlapTrigger=ut.overlapTrigger,this._hasBackdrop=ut.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new n.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,_.O)(this._directDescendantItems),(0,C.w)(xn=>(0,u.T)(...xn.map(mt=>mt._focused)))).subscribe(xn=>this._keyManager.updateActiveItem(xn)),this._directDescendantItems.changes.subscribe(xn=>{const mt=this._keyManager;if("enter"===this._panelAnimationState&&mt.activeItem?._hasFocus()){const ut=xn.toArray(),Wt=Math.max(0,Math.min(ut.length-1,mt.activeItemIndex||0));ut[Wt]&&!ut[Wt].disabled?mt.setActiveItem(Wt):mt.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,_.O)(this._directDescendantItems),(0,C.w)(mt=>(0,u.T)(...mt.map(ut=>ut._hovered))))}addItem(xn){}removeItem(xn){}_handleKeydown(xn){const mt=xn.keyCode,ut=this._keyManager;switch(mt){case a.hY:(0,a.Vb)(xn)||(xn.preventDefault(),this.closed.emit("keydown"));break;case a.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case a.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(mt===a.LH||mt===a.JH)&&ut.setFocusOrigin("keyboard"),void ut.onKeydown(xn)}xn.stopPropagation()}focusFirstItem(xn="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,R.q)(1)).subscribe(()=>{let mt=null;if(this._directDescendantItems.length&&(mt=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!mt||!mt.contains(document.activeElement)){const ut=this._keyManager;ut.setFocusOrigin(xn).setFirstItemActive(),!ut.activeItem&&mt&&mt.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(xn){const mt=Math.min(this._baseElevation+xn,24),ut=`${this._elevationPrefix}${mt}`,Wt=Object.keys(this._classList).find(dn=>dn.startsWith(this._elevationPrefix));(!Wt||Wt===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[ut]=!0,this._previousElevation=ut)}setPositionClasses(xn=this.xPosition,mt=this.yPosition){const ut=this._classList;ut["mat-menu-before"]="before"===xn,ut["mat-menu-after"]="after"===xn,ut["mat-menu-above"]="above"===mt,ut["mat-menu-below"]="below"===mt,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(xn){this._animationDone.next(xn),this._isAnimating=!1}_onAnimationStart(xn){this._isAnimating=!0,"enter"===xn.toState&&0===this._keyManager.activeItemIndex&&(xn.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,_.O)(this._allItems)).subscribe(xn=>{this._directDescendantItems.reset(xn.filter(mt=>mt._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static#e=this.\u0275fac=function(mt){return new(mt||An)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(ne),e.Y36(e.sBO))};static#t=this.\u0275dir=e.lG2({type:An,contentQueries:function(mt,ut,Wt){if(1&mt&&(e.Suo(Wt,de,5),e.Suo(Wt,me,5),e.Suo(Wt,me,4)),2&mt){let dn;e.iGM(dn=e.CRH())&&(ut.lazyContent=dn.first),e.iGM(dn=e.CRH())&&(ut._allItems=dn),e.iGM(dn=e.CRH())&&(ut.items=dn)}},viewQuery:function(mt,ut){if(1&mt&&e.Gf(e.Rgc,5),2&mt){let Wt;e.iGM(Wt=e.CRH())&&(ut.templateRef=Wt.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}})}return An})(),Ce=(()=>{class An extends ge{constructor(xn,mt,ut,Wt){super(xn,mt,ut,Wt),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}static#e=this.\u0275fac=function(mt){return new(mt||An)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(ne),e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:An,selectors:[["mat-menu"]],hostAttrs:["ngSkipHydration",""],hostVars:3,hostBindings:function(mt,ut){2&mt&&e.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[e._Bn([{provide:K,useExisting:An}]),e.qOj],ngContentSelectors:V,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mdc-menu-surface","mdc-menu-surface--open","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content","mdc-list"]],template:function(mt,ut){1&mt&&(e.F$t(),e.YNc(0,U,3,6,"ng-template"))},dependencies:[g.mk],styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mdc-list-item__primary-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{--mat-menu-container-shape:4px;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;position:relative}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item.mdc-list-item{align-items:center}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item .mdc-list-item__primary-text{white-space:normal}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[H.transformMenu,H.fadeInItems]},changeDetection:0})}return An})();const Te=new e.OlP("mat-menu-scroll-strategy"),fe={provide:Te,deps:[b.aV],useFactory:function De(An){return()=>An.scrollStrategies.reposition()}},xe=(0,I.i$)({passive:!0});let Le=(()=>{class An{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(xn){this.menu=xn}get menu(){return this._menu}set menu(xn){xn!==this._menu&&(this._menu=xn,this._menuCloseSubscription.unsubscribe(),xn&&(this._menuCloseSubscription=xn.close.subscribe(mt=>{this._destroyMenu(mt),("click"===mt||"tab"===mt)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(mt)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(xn,mt,ut,Wt,dn,sn,fn,yi,nn){this._overlay=xn,this._element=mt,this._viewContainerRef=ut,this._menuItemInstance=sn,this._dir=fn,this._focusMonitor=yi,this._ngZone=nn,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=d.w0.EMPTY,this._hoverSubscription=d.w0.EMPTY,this._menuCloseSubscription=d.w0.EMPTY,this._changeDetectorRef=(0,e.f3M)(e.sBO),this._handleTouchStart=Mi=>{(0,n.yG)(Mi)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new e.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new e.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=Wt,this._parentMaterialMenu=dn instanceof ge?dn:void 0,mt.nativeElement.addEventListener("touchstart",this._handleTouchStart,xe)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,xe),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const xn=this.menu;if(this._menuOpen||!xn)return;const mt=this._createOverlay(xn),ut=mt.getConfig(),Wt=ut.positionStrategy;this._setPosition(xn,Wt),ut.hasBackdrop=null==xn.hasBackdrop?!this.triggersSubmenu():xn.hasBackdrop,mt.attach(this._getPortal(xn)),xn.lazyContent&&xn.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(xn),xn instanceof ge&&(xn._startAnimation(),xn._directDescendantItems.changes.pipe((0,x.R)(xn.close)).subscribe(()=>{Wt.withLockedPosition(!1).reapplyLastPosition(),Wt.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(xn,mt){this._focusMonitor&&xn?this._focusMonitor.focusVia(this._element,xn,mt):this._element.nativeElement.focus(mt)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(xn){if(!this._overlayRef||!this.menuOpen)return;const mt=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===xn||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,mt instanceof ge?(mt._resetAnimation(),mt.lazyContent?mt._animationDone.pipe((0,f.h)(ut=>"void"===ut.toState),(0,R.q)(1),(0,x.R)(mt.lazyContent._attached)).subscribe({next:()=>mt.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),mt?.lazyContent?.detach())}_initMenu(xn){xn.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,xn.direction=this.dir,this._setMenuElevation(xn),xn.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(xn){if(xn.setElevation){let mt=0,ut=xn.parentMenu;for(;ut;)mt++,ut=ut.parentMenu;xn.setElevation(mt)}}_setIsMenuOpen(xn){xn!==this._menuOpen&&(this._menuOpen=xn,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(xn),this._changeDetectorRef.markForCheck())}_createOverlay(xn){if(!this._overlayRef){const mt=this._getOverlayConfig(xn);this._subscribeToPositions(xn,mt.positionStrategy),this._overlayRef=this._overlay.create(mt),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(xn){return new b.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:xn.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:xn.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(xn,mt){xn.setPositionClasses&&mt.positionChanges.subscribe(ut=>{const Wt="start"===ut.connectionPair.overlayX?"after":"before",dn="top"===ut.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>xn.setPositionClasses(Wt,dn)):xn.setPositionClasses(Wt,dn)})}_setPosition(xn,mt){let[ut,Wt]="before"===xn.xPosition?["end","start"]:["start","end"],[dn,sn]="above"===xn.yPosition?["bottom","top"]:["top","bottom"],[fn,yi]=[dn,sn],[nn,Mi]=[ut,Wt],mi=0;if(this.triggersSubmenu()){if(Mi=ut="before"===xn.xPosition?"start":"end",Wt=nn="end"===ut?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const Eo=this._parentMaterialMenu.items.first;this._parentInnerPadding=Eo?Eo._getHostElement().offsetTop:0}mi="bottom"===dn?this._parentInnerPadding:-this._parentInnerPadding}}else xn.overlapTrigger||(fn="top"===dn?"bottom":"top",yi="top"===sn?"bottom":"top");mt.withPositions([{originX:ut,originY:fn,overlayX:nn,overlayY:dn,offsetY:mi},{originX:Wt,originY:fn,overlayX:Mi,overlayY:dn,offsetY:mi},{originX:ut,originY:yi,overlayX:nn,overlayY:sn,offsetY:-mi},{originX:Wt,originY:yi,overlayX:Mi,overlayY:sn,offsetY:-mi}])}_menuClosingActions(){const xn=this._overlayRef.backdropClick(),mt=this._overlayRef.detachments(),ut=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,s.of)(),Wt=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,f.h)(dn=>dn!==this._menuItemInstance),(0,f.h)(()=>this._menuOpen)):(0,s.of)();return(0,u.T)(xn,ut,Wt,mt)}_handleMousedown(xn){(0,n.X6)(xn)||(this._openedBy=0===xn.button?"mouse":void 0,this.triggersSubmenu()&&xn.preventDefault())}_handleKeydown(xn){const mt=xn.keyCode;(mt===a.K5||mt===a.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(mt===a.SV&&"ltr"===this.dir||mt===a.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(xn){this.triggersSubmenu()?(xn.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,f.h)(xn=>xn===this._menuItemInstance&&!xn.disabled),(0,k.g)(0,A.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ge&&this.menu._isAnimating?this.menu._animationDone.pipe((0,R.q)(1),(0,k.g)(0,A.E),(0,x.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(xn){return(!this._portal||this._portal.templateRef!==xn.templateRef)&&(this._portal=new M.UE(xn.templateRef,this._viewContainerRef)),this._portal}static#e=this.\u0275fac=function(mt){return new(mt||An)(e.Y36(b.aV),e.Y36(e.SBq),e.Y36(e.s_b),e.Y36(Te),e.Y36(K,8),e.Y36(me,10),e.Y36(E.Is,8),e.Y36(n.tE),e.Y36(e.R0b))};static#t=this.\u0275dir=e.lG2({type:An,hostVars:3,hostBindings:function(mt,ut){1&mt&&e.NdJ("click",function(dn){return ut._handleClick(dn)})("mousedown",function(dn){return ut._handleMousedown(dn)})("keydown",function(dn){return ut._handleKeydown(dn)}),2&mt&&e.uIk("aria-haspopup",ut.menu?"menu":null)("aria-expanded",ut.menuOpen)("aria-controls",ut.menuOpen?ut.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}})}return An})(),Gt=(()=>{class An extends Le{static#e=this.\u0275fac=function(){let xn;return function(ut){return(xn||(xn=e.n5z(An)))(ut||An)}}();static#t=this.\u0275dir=e.lG2({type:An,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[e.qOj]})}return An})(),Ut=(()=>{class An{static#e=this.\u0275fac=function(mt){return new(mt||An)};static#t=this.\u0275mod=e.oAB({type:An});static#n=this.\u0275inj=e.cJS({providers:[fe],imports:[g.ez,w.si,w.BQ,b.U8,L.ZD,w.BQ]})}return An})()},21476:(he,y,i)=>{"use strict";i.d(y,{NW:()=>F,TU:()=>P,ik:()=>M,n7:()=>L,ye:()=>w});var e=i(96814),n=i(65879),o=i(78645),a=i(32296),l=i(98525),u=i(92596),d=i(23680),s=i(42495),A=i(64170);function _(O,U){if(1&O&&(n.TgZ(0,"mat-option",19),n._uU(1),n.qZA()),2&O){const V=U.$implicit;n.Q6J("value",V),n.xp6(1),n.hij(" ",V," ")}}function C(O,U){if(1&O){const V=n.EpF();n.TgZ(0,"mat-form-field",16)(1,"mat-select",17),n.NdJ("selectionChange",function(X){n.CHM(V);const me=n.oxw(2);return n.KtG(me._changePageSize(X.value))}),n.YNc(2,_,2,2,"mat-option",18),n.qZA()()}if(2&O){const V=n.oxw(2);n.Q6J("appearance",V._formFieldAppearance)("color",V.color),n.xp6(1),n.Q6J("value",V.pageSize)("disabled",V.disabled)("aria-labelledby",V._pageSizeLabelId)("panelClass",V.selectConfig.panelClass||"")("disableOptionCentering",V.selectConfig.disableOptionCentering),n.xp6(1),n.Q6J("ngForOf",V._displayedPageSizeOptions)}}function R(O,U){if(1&O&&(n.TgZ(0,"div",20),n._uU(1),n.qZA()),2&O){const V=n.oxw(2);n.xp6(1),n.Oqu(V.pageSize)}}function x(O,U){if(1&O&&(n.TgZ(0,"div",12)(1,"div",13),n._uU(2),n.qZA(),n.YNc(3,C,3,8,"mat-form-field",14),n.YNc(4,R,2,1,"div",15),n.qZA()),2&O){const V=n.oxw();n.xp6(1),n.s9C("id",V._pageSizeLabelId),n.xp6(1),n.hij(" ",V._intl.itemsPerPageLabel," "),n.xp6(1),n.Q6J("ngIf",V._displayedPageSizeOptions.length>1),n.xp6(1),n.Q6J("ngIf",V._displayedPageSizeOptions.length<=1)}}function f(O,U){if(1&O){const V=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){n.CHM(V);const X=n.oxw();return n.KtG(X.firstPage())}),n.O4$(),n.TgZ(1,"svg",7),n._UZ(2,"path",22),n.qZA()()}if(2&O){const V=n.oxw();n.Q6J("matTooltip",V._intl.firstPageLabel)("matTooltipDisabled",V._previousButtonsDisabled())("matTooltipPosition","above")("disabled",V._previousButtonsDisabled()),n.uIk("aria-label",V._intl.firstPageLabel)}}function k(O,U){if(1&O){const V=n.EpF();n.O4$(),n.kcU(),n.TgZ(0,"button",23),n.NdJ("click",function(){n.CHM(V);const X=n.oxw();return n.KtG(X.lastPage())}),n.O4$(),n.TgZ(1,"svg",7),n._UZ(2,"path",24),n.qZA()()}if(2&O){const V=n.oxw();n.Q6J("matTooltip",V._intl.lastPageLabel)("matTooltipDisabled",V._nextButtonsDisabled())("matTooltipPosition","above")("disabled",V._nextButtonsDisabled()),n.uIk("aria-label",V._intl.lastPageLabel)}}let w=(()=>{class O{constructor(){this.changes=new o.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(V,K,X)=>{if(0==X||0==K)return`0 of ${X}`;const me=V*K;return`${me+1} \u2013 ${me<(X=Math.max(X,0))?Math.min(me+K,X):me+K} of ${X}`}}static#e=this.\u0275fac=function(K){return new(K||O)};static#t=this.\u0275prov=n.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"})}return O})();const M={provide:w,deps:[[new n.FiY,new n.tp0,w]],useFactory:function g(O){return O||new w}},b=new n.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),I=(0,d.Id)((0,d.dB)(class{}));let L=(()=>{class O extends I{get pageIndex(){return this._pageIndex}set pageIndex(V){this._pageIndex=Math.max((0,s.su)(V),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(V){this._length=(0,s.su)(V),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(V){this._pageSize=Math.max((0,s.su)(V),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(V){this._pageSizeOptions=(V||[]).map(K=>(0,s.su)(K)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(V){this._hidePageSize=(0,s.Ig)(V)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(V){this._showFirstLastButtons=(0,s.Ig)(V)}constructor(V,K,X){if(super(),this._intl=V,this._changeDetectorRef=K,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new n.vpe,this._intlChanges=V.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),X){const{pageSize:me,pageSizeOptions:J,hidePageSize:Q,showFirstLastButtons:re}=X;null!=me&&(this._pageSize=me),null!=J&&(this._pageSizeOptions=J),null!=Q&&(this._hidePageSize=Q),null!=re&&(this._showFirstLastButtons=re)}}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const V=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(V)}previousPage(){if(!this.hasPreviousPage())return;const V=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(V)}firstPage(){if(!this.hasPreviousPage())return;const V=this.pageIndex;this.pageIndex=0,this._emitPageEvent(V)}lastPage(){if(!this.hasNextPage())return;const V=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(V)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const V=this.getNumberOfPages()-1;return this.pageIndex<V&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(V){const X=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/V)||0,this.pageSize=V,this._emitPageEvent(X)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((V,K)=>V-K),this._changeDetectorRef.markForCheck())}_emitPageEvent(V){this.page.emit({previousPageIndex:V,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}static#e=this.\u0275fac=function(K){n.$Z()};static#t=this.\u0275dir=n.lG2({type:O,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[n.qOj]})}return O})(),D=0,F=(()=>{class O extends L{constructor(V,K,X){super(V,K,X),this._pageSizeLabelId="mat-paginator-page-size-label-"+D++,this._formFieldAppearance=X?.formFieldAppearance||"outline"}static#e=this.\u0275fac=function(K){return new(K||O)(n.Y36(w),n.Y36(n.sBO),n.Y36(b,8))};static#t=this.\u0275cmp=n.Xpm({type:O,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[n.qOj],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],["class","mat-mdc-paginator-page-size",4,"ngIf"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-page-size-label",3,"id"],["class","mat-mdc-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-mdc-paginator-page-size-value",4,"ngIf"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],["hideSingleSelectionIndicator","",3,"value","disabled","aria-labelledby","panelClass","disableOptionCentering","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-mdc-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(K,X){1&K&&(n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,x,5,4,"div",2),n.TgZ(3,"div",3)(4,"div",4),n._uU(5),n.qZA(),n.YNc(6,f,3,5,"button",5),n.TgZ(7,"button",6),n.NdJ("click",function(){return X.previousPage()}),n.O4$(),n.TgZ(8,"svg",7),n._UZ(9,"path",8),n.qZA()(),n.kcU(),n.TgZ(10,"button",9),n.NdJ("click",function(){return X.nextPage()}),n.O4$(),n.TgZ(11,"svg",7),n._UZ(12,"path",10),n.qZA()(),n.YNc(13,k,3,5,"button",11),n.qZA()()()),2&K&&(n.xp6(2),n.Q6J("ngIf",!X.hidePageSize),n.xp6(3),n.hij(" ",X._intl.getRangeLabel(X.pageIndex,X.pageSize,X.length)," "),n.xp6(1),n.Q6J("ngIf",X.showFirstLastButtons),n.xp6(1),n.Q6J("matTooltip",X._intl.previousPageLabel)("matTooltipDisabled",X._previousButtonsDisabled())("matTooltipPosition","above")("disabled",X._previousButtonsDisabled()),n.uIk("aria-label",X._intl.previousPageLabel),n.xp6(3),n.Q6J("matTooltip",X._intl.nextPageLabel)("matTooltipDisabled",X._nextButtonsDisabled())("matTooltipPosition","above")("disabled",X._nextButtonsDisabled()),n.uIk("aria-label",X._intl.nextPageLabel),n.xp6(3),n.Q6J("ngIf",X.showFirstLastButtons))},dependencies:[e.sg,e.O5,a.RK,A.KE,l.gD,d.ey,u.gM],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return O})(),P=(()=>{class O{static#e=this.\u0275fac=function(K){return new(K||O)};static#t=this.\u0275mod=n.oAB({type:O});static#n=this.\u0275inj=n.cJS({providers:[M],imports:[e.ez,a.ot,l.LD,u.AV]})}return O})()},16007:(he,y,i)=>{"use strict";i.d(y,{$M:()=>l,Cv:()=>C,Gx:()=>u,pW:()=>A});var e=i(65879),n=i(96814),o=i(23680),a=i(42495);const l=new e.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),u=new e.OlP("mat-progress-bar-location",{providedIn:"root",factory:function d(){const R=(0,e.f3M)(n.K0),x=R?R.location:null;return{getPathname:()=>x?x.pathname+x.search:""}}}),s=(0,o.pj)(class{constructor(R){this._elementRef=R}},"primary");let A=(()=>{class R extends s{constructor(f,k,w,g,M){super(f),this._ngZone=k,this._changeDetectorRef=w,this._animationMode=g,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new e.vpe,this._mode="determinate",this._transitionendHandler=p=>{0===this.animationEnd.observers.length||!p.target||!p.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===g,M&&(M.color&&(this.color=this.defaultColor=M.color),this.mode=M.mode||this.mode)}get value(){return this._value}set value(f){this._value=_((0,a.su)(f)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(f){this._bufferValue=_((0,a.su)(f)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(f){this._mode=f,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}static#e=this.\u0275fac=function(k){return new(k||R)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.QbO,8),e.Y36(l,8))};static#t=this.\u0275cmp=e.Xpm({type:R,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:8,hostBindings:function(k,w){2&k&&(e.uIk("aria-valuenow",w._isIndeterminate()?null:w.value)("mode",w.mode),e.ekj("_mat-animation-noopable",w._isNoopAnimation)("mdc-linear-progress--animation-ready",!w._isNoopAnimation)("mdc-linear-progress--indeterminate",w._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[e.qOj],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(k,w){1&k&&(e.TgZ(0,"div",0),e._UZ(1,"div",1)(2,"div",2),e.qZA(),e.TgZ(3,"div",3),e._UZ(4,"span",4),e.qZA(),e.TgZ(5,"div",5),e._UZ(6,"span",4),e.qZA()),2&k&&(e.xp6(1),e.Udp("flex-basis",w._getBufferBarFlexBasis()),e.xp6(2),e.Udp("transform",w._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half))}100%{transform:translateX(var(--mdc-linear-progress-primary-full))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color)}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-color:rgba(0,0,0,0);background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill=''/%3E%3C/svg%3E\")}}.mdc-linear-progress{height:max(var(--mdc-linear-progress-track-height), var(--mdc-linear-progress-active-indicator-height))}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress{height:4px}}.mdc-linear-progress__bar{height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{height:var(--mdc-linear-progress-track-height)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height)}}.mdc-linear-progress__buffer{border-radius:var(--mdc-linear-progress-track-shape)}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-height:4px;--mdc-linear-progress-track-height:4px;--mdc-linear-progress-track-shape:0}.mat-mdc-progress-bar{display:block;--mdc-linear-progress-primary-half: 83.67142%;--mdc-linear-progress-primary-full: 200.611057%;--mdc-linear-progress-secondary-quarter: 37.651913%;--mdc-linear-progress-secondary-half: 84.386165%;--mdc-linear-progress-secondary-full: 160.277782%;--mdc-linear-progress-primary-half-neg: -83.67142%;--mdc-linear-progress-primary-full-neg: -200.611057%;--mdc-linear-progress-secondary-quarter-neg: -37.651913%;--mdc-linear-progress-secondary-half-neg: -84.386165%;--mdc-linear-progress-secondary-full-neg: -160.277782%}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0})}return R})();function _(R,x=0,f=100){return Math.max(x,Math.min(f,R))}let C=(()=>{class R{static#e=this.\u0275fac=function(k){return new(k||R)};static#t=this.\u0275mod=e.oAB({type:R});static#n=this.\u0275inj=e.cJS({imports:[o.BQ]})}return R})()},87466:(he,y,i)=>{"use strict";i.d(y,{$6:()=>x,Fk:()=>I,U0:()=>b,VQ:()=>E,XD:()=>p,_J:()=>f,hr:()=>w});var e=i(65879),n=i(23680),o=i(4300),a=i(42495),l=i(78337),u=i(56223),d=i(96814);const s=["input"],A=["*"];let _=0;class C{constructor(D,F){this.source=D,this.value=F}}const R={provide:u.JU,useExisting:(0,e.Gpc)(()=>E),multi:!0},x=new e.OlP("MatRadioGroup"),f=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function k(){return{color:"accent"}}});let w=(()=>{class L{get name(){return this._name}set name(F){this._name=F,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(F){this._labelPosition="before"===F?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(F){this._value!==F&&(this._value=F,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(F){this._selected=F,this.value=F?F.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(F){this._disabled=(0,a.Ig)(F),this._markRadiosForCheck()}get required(){return this._required}set required(F){this._required=(0,a.Ig)(F),this._markRadiosForCheck()}constructor(F){this._changeDetector=F,this._value=null,this._name="mat-radio-group-"+_++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new e.vpe}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(F=>{F.name=this.name,F._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(P=>{P.checked=this.value===P.value,P.checked&&(this._selected=P)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new C(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(F=>F._markForCheck())}writeValue(F){this.value=F,this._changeDetector.markForCheck()}registerOnChange(F){this._controlValueAccessorChangeFn=F}registerOnTouched(F){this.onTouched=F}setDisabledState(F){this.disabled=F,this._changeDetector.markForCheck()}static#e=this.\u0275fac=function(P){return new(P||L)(e.Y36(e.sBO))};static#t=this.\u0275dir=e.lG2({type:L,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}})}return L})();class g{constructor(D){this._elementRef=D}}const M=(0,n.Kr)((0,n.sb)(g));let p=(()=>{class L extends M{get checked(){return this._checked}set checked(F){const P=(0,a.Ig)(F);this._checked!==P&&(this._checked=P,P&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!P&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),P&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(F){this._value!==F&&(this._value=F,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===F),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(F){this._labelPosition=F}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(F){this._setDisabled((0,a.Ig)(F))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(F){this._required=(0,a.Ig)(F)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(F){this._color=F}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(F,P,O,U,V,K,X,me){super(P),this._changeDetector=O,this._focusMonitor=U,this._radioDispatcher=V,this._providerOverride=X,this._uniqueId="mat-radio-"+ ++_,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=F,this._noopAnimations="NoopAnimations"===K,me&&(this.tabIndex=(0,a.su)(me,0))}focus(F,P){P?this._focusMonitor.focusVia(this._inputElement,P,F):this._inputElement.nativeElement.focus(F)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((F,P)=>{F!==this.id&&P===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(F=>{!F&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new C(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(F){F.stopPropagation()}_onInputInteraction(F){if(F.stopPropagation(),!this.checked&&!this.disabled){const P=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),P&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(F){this._onInputInteraction(F),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(F){this._disabled!==F&&(this._disabled=F,this._changeDetector.markForCheck())}_updateTabIndex(){const F=this.radioGroup;let P;if(P=F&&F.selected&&!this.disabled?F.selected===this?this.tabIndex:-1:this.tabIndex,P!==this._previousTabIndex){const O=this._inputElement?.nativeElement;O&&(O.setAttribute("tabindex",P+""),this._previousTabIndex=P)}}static#e=this.\u0275fac=function(P){e.$Z()};static#t=this.\u0275dir=e.lG2({type:L,viewQuery:function(P,O){if(1&P&&e.Gf(s,5),2&P){let U;e.iGM(U=e.CRH())&&(O._inputElement=U.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[e.qOj]})}return L})(),E=(()=>{class L extends w{static#e=this.\u0275fac=function(){let F;return function(O){return(F||(F=e.n5z(L)))(O||L)}}();static#t=this.\u0275dir=e.lG2({type:L,selectors:[["mat-radio-group"]],contentQueries:function(P,O,U){if(1&P&&e.Suo(U,b,5),2&P){let V;e.iGM(V=e.CRH())&&(O._radios=V)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([R,{provide:x,useExisting:L}]),e.qOj]})}return L})(),b=(()=>{class L extends p{constructor(F,P,O,U,V,K,X,me){super(F,P,O,U,V,K,X,me)}static#e=this.\u0275fac=function(P){return new(P||L)(e.Y36(x,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(o.tE),e.Y36(l.A8),e.Y36(e.QbO,8),e.Y36(f,8),e.$8M("tabindex"))};static#t=this.\u0275cmp=e.Xpm({type:L,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(P,O){1&P&&e.NdJ("focus",function(){return O._inputElement.nativeElement.focus()}),2&P&&(e.uIk("id",O.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-primary","primary"===O.color)("mat-accent","accent"===O.color)("mat-warn","warn"===O.color)("mat-mdc-radio-checked",O.checked)("_mat-animation-noopable",O._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:A,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(P,O){if(1&P&&(e.F$t(),e.TgZ(0,"div",0,1)(2,"div",2)(3,"div",3),e.NdJ("click",function(V){return O._onTouchTargetClick(V)}),e.qZA(),e.TgZ(4,"input",4,5),e.NdJ("change",function(V){return O._onInputInteraction(V)}),e.qZA(),e.TgZ(6,"div",6),e._UZ(7,"div",7)(8,"div",8),e.qZA(),e.TgZ(9,"div",9),e._UZ(10,"div",10),e.qZA()(),e.TgZ(11,"label",11),e.Hsn(12),e.qZA()()),2&P){const U=e.MAs(1);e.ekj("mdc-form-field--align-end","before"==O.labelPosition),e.xp6(2),e.ekj("mdc-radio--disabled",O.disabled),e.xp6(2),e.Q6J("id",O.inputId)("checked",O.checked)("disabled",O.disabled)("required",O.required),e.uIk("name",O.name)("value",O.value)("aria-label",O.ariaLabel)("aria-labelledby",O.ariaLabelledby)("aria-describedby",O.ariaDescribedby),e.xp6(5),e.Q6J("matRippleTrigger",U)("matRippleDisabled",O._isRippleDisabled())("matRippleCentered",!0),e.xp6(2),e.Q6J("for",O.inputId)}},dependencies:[n.wG],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{--mdc-radio-disabled-selected-icon-opacity:0.38;--mdc-radio-disabled-unselected-icon-opacity:0.38;--mdc-radio-state-layer-size:40px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);right:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);left:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0})}return L})(),I=(()=>{class L{static#e=this.\u0275fac=function(P){return new(P||L)};static#t=this.\u0275mod=e.oAB({type:L});static#n=this.\u0275inj=e.cJS({imports:[n.BQ,d.ez,n.si,n.BQ]})}return L})()},98525:(he,y,i)=>{"use strict";i.d(y,{Ep:()=>q,LD:()=>De,LZ:()=>se,gD:()=>Te,hC:()=>ge});var e=i(69594),n=i(96814),o=i(65879),a=i(23680),l=i(64170),u=i(16672),d=i(4300),s=i(49388),A=i(42495),_=i(78337),C=i(36028),R=i(56223),x=i(78645),f=i(74911),k=i(63019),w=i(27921),g=i(94664),M=i(48180),p=i(32181),E=i(37398),b=i(93997),I=i(59773),L=i(86825);const D=["trigger"],F=["panel"];function P(fe,xe){if(1&fe&&(o.TgZ(0,"span",10),o._uU(1),o.qZA()),2&fe){const Oe=o.oxw();o.xp6(1),o.Oqu(Oe.placeholder)}}function O(fe,xe){if(1&fe&&(o.TgZ(0,"span",14),o._uU(1),o.qZA()),2&fe){const Oe=o.oxw(2);o.xp6(1),o.Oqu(Oe.triggerValue)}}function U(fe,xe){1&fe&&o.Hsn(0,0,["*ngSwitchCase","true"])}function V(fe,xe){if(1&fe&&(o.TgZ(0,"span",11),o.YNc(1,O,2,1,"span",12),o.YNc(2,U,1,0,"ng-content",13),o.qZA()),2&fe){const Oe=o.oxw();o.Q6J("ngSwitch",!!Oe.customTrigger),o.xp6(2),o.Q6J("ngSwitchCase",!0)}}function K(fe,xe){if(1&fe){const Oe=o.EpF();o.O4$(),o.kcU(),o.TgZ(0,"div",15,16),o.NdJ("@transformPanel.done",function(Gt){o.CHM(Oe);const Ut=o.oxw();return o.KtG(Ut._panelDoneAnimatingStream.next(Gt.toState))})("keydown",function(Gt){o.CHM(Oe);const Ut=o.oxw();return o.KtG(Ut._handleKeydown(Gt))}),o.Hsn(2,1),o.qZA()}if(2&fe){const Oe=o.oxw();o.Gre("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",Oe._getPanelTheme(),""),o.Q6J("ngClass",Oe.panelClass)("@transformPanel","showing"),o.uIk("id",Oe.id+"-panel")("aria-multiselectable",Oe.multiple)("aria-label",Oe.ariaLabel||null)("aria-labelledby",Oe._getPanelAriaLabelledby())}}const X=[[["mat-select-trigger"]],"*"],me=["mat-select-trigger","*"],J={transformPanelWrap:(0,L.X$)("transformPanelWrap",[(0,L.eR)("* => void",(0,L.IO)("@transformPanel",[(0,L.pV)()],{optional:!0}))]),transformPanel:(0,L.X$)("transformPanel",[(0,L.SB)("void",(0,L.oB)({opacity:0,transform:"scale(1, 0.8)"})),(0,L.eR)("void => showing",(0,L.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,L.oB)({opacity:1,transform:"scale(1, 1)"}))),(0,L.eR)("* => void",(0,L.jt)("100ms linear",(0,L.oB)({opacity:0})))])};let te=0;const j=new o.OlP("mat-select-scroll-strategy"),z=new o.OlP("MAT_SELECT_CONFIG"),q={provide:j,deps:[e.aV],useFactory:function H(fe){return()=>fe.scrollStrategies.reposition()}},se=new o.OlP("MatSelectTrigger");class ne{constructor(xe,Oe){this.source=xe,this.value=Oe}}const _e=(0,a.Kr)((0,a.sb)((0,a.Id)((0,a.FD)(class{constructor(fe,xe,Oe,Le,Gt){this._elementRef=fe,this._defaultErrorStateMatcher=xe,this._parentForm=Oe,this._parentFormGroup=Le,this.ngControl=Gt,this.stateChanges=new x.x}}))));let ge=(()=>{class fe extends _e{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(Oe){this._placeholder=Oe,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(R.kI.required)??!1}set required(Oe){this._required=(0,A.Ig)(Oe),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(Oe){this._multiple=(0,A.Ig)(Oe)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(Oe){this._disableOptionCentering=(0,A.Ig)(Oe)}get compareWith(){return this._compareWith}set compareWith(Oe){this._compareWith=Oe,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(Oe){this._assignValue(Oe)&&this._onChange(Oe)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(Oe){this._typeaheadDebounceInterval=(0,A.su)(Oe)}get id(){return this._id}set id(Oe){this._id=Oe||this._uid,this.stateChanges.next()}constructor(Oe,Le,Gt,Ut,An,$n,xn,mt,ut,Wt,dn,sn,fn,yi){super(An,Ut,xn,mt,Wt),this._viewportRuler=Oe,this._changeDetectorRef=Le,this._ngZone=Gt,this._dir=$n,this._parentFormField=ut,this._liveAnnouncer=fn,this._defaultOptions=yi,this._panelOpen=!1,this._compareWith=(nn,Mi)=>nn===Mi,this._uid="mat-select-"+te++,this._triggerAriaLabelledBy=null,this._destroy=new x.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+te++,this._panelDoneAnimatingStream=new x.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,f.P)(()=>{const nn=this.options;return nn?nn.changes.pipe((0,w.O)(nn),(0,g.w)(()=>(0,k.T)(...nn.map(Mi=>Mi.onSelectionChange)))):this._ngZone.onStable.pipe((0,M.q)(1),(0,g.w)(()=>this.optionSelectionChanges))}),this.openedChange=new o.vpe,this._openedStream=this.openedChange.pipe((0,p.h)(nn=>nn),(0,E.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,p.h)(nn=>!nn),(0,E.U)(()=>{})),this.selectionChange=new o.vpe,this.valueChange=new o.vpe,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=yi?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=yi.typeaheadDebounceInterval),this._scrollStrategyFactory=sn,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(dn)||0,this.id=this.id}ngOnInit(){this._selectionModel=new _.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,b.x)(),(0,I.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,I.R)(this._destroy)).subscribe(Oe=>{Oe.added.forEach(Le=>Le.select()),Oe.removed.forEach(Le=>Le.deselect())}),this.options.changes.pipe((0,w.O)(null),(0,I.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const Oe=this._getTriggerAriaLabelledby(),Le=this.ngControl;if(Oe!==this._triggerAriaLabelledBy){const Gt=this._elementRef.nativeElement;this._triggerAriaLabelledBy=Oe,Oe?Gt.setAttribute("aria-labelledby",Oe):Gt.removeAttribute("aria-labelledby")}Le&&(this._previousControl!==Le.control&&(void 0!==this._previousControl&&null!==Le.disabled&&Le.disabled!==this.disabled&&(this.disabled=Le.disabled),this._previousControl=Le.control),this.updateErrorState())}ngOnChanges(Oe){(Oe.disabled||Oe.userAriaDescribedBy)&&this.stateChanges.next(),Oe.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}_applyModalPanelOwnership(){const Oe=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!Oe)return;const Le=`${this.id}-panel`;this._trackedModal&&(0,d.iD)(this._trackedModal,"aria-owns",Le),(0,d.Zf)(Oe,"aria-owns",Le),this._trackedModal=Oe}_clearFromModal(){this._trackedModal&&((0,d.iD)(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(Oe){this._assignValue(Oe)}registerOnChange(Oe){this._onChange=Oe}registerOnTouched(Oe){this._onTouched=Oe}setDisabledState(Oe){this.disabled=Oe,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const Oe=this._selectionModel.selected.map(Le=>Le.viewValue);return this._isRtl()&&Oe.reverse(),Oe.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(Oe){this.disabled||(this.panelOpen?this._handleOpenKeydown(Oe):this._handleClosedKeydown(Oe))}_handleClosedKeydown(Oe){const Le=Oe.keyCode,Gt=Le===C.JH||Le===C.LH||Le===C.oh||Le===C.SV,Ut=Le===C.K5||Le===C.L_,An=this._keyManager;if(!An.isTyping()&&Ut&&!(0,C.Vb)(Oe)||(this.multiple||Oe.altKey)&&Gt)Oe.preventDefault(),this.open();else if(!this.multiple){const $n=this.selected;An.onKeydown(Oe);const xn=this.selected;xn&&$n!==xn&&this._liveAnnouncer.announce(xn.viewValue,1e4)}}_handleOpenKeydown(Oe){const Le=this._keyManager,Gt=Oe.keyCode,Ut=Gt===C.JH||Gt===C.LH,An=Le.isTyping();if(Ut&&Oe.altKey)Oe.preventDefault(),this.close();else if(An||Gt!==C.K5&&Gt!==C.L_||!Le.activeItem||(0,C.Vb)(Oe))if(!An&&this._multiple&&Gt===C.A&&Oe.ctrlKey){Oe.preventDefault();const $n=this.options.some(xn=>!xn.disabled&&!xn.selected);this.options.forEach(xn=>{xn.disabled||($n?xn.select():xn.deselect())})}else{const $n=Le.activeItemIndex;Le.onKeydown(Oe),this._multiple&&Ut&&Oe.shiftKey&&Le.activeItem&&Le.activeItemIndex!==$n&&Le.activeItem._selectViaInteraction()}else Oe.preventDefault(),Le.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,M.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(Oe){if(this.options.forEach(Le=>Le.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&Oe)Array.isArray(Oe),Oe.forEach(Le=>this._selectOptionByValue(Le)),this._sortValues();else{const Le=this._selectOptionByValue(Oe);Le?this._keyManager.updateActiveItem(Le):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(Oe){const Le=this.options.find(Gt=>{if(this._selectionModel.isSelected(Gt))return!1;try{return null!=Gt.value&&this._compareWith(Gt.value,Oe)}catch{return!1}});return Le&&this._selectionModel.select(Le),Le}_assignValue(Oe){return!!(Oe!==this._value||this._multiple&&Array.isArray(Oe))&&(this.options&&this._setSelectionByValue(Oe),this._value=Oe,!0)}_skipPredicate(Oe){return Oe.disabled}_initKeyManager(){this._keyManager=new d.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const Oe=(0,k.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,I.R)(Oe)).subscribe(Le=>{this._onSelect(Le.source,Le.isUserInput),Le.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,k.T)(...this.options.map(Le=>Le._stateChanges)).pipe((0,I.R)(Oe)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(Oe,Le){const Gt=this._selectionModel.isSelected(Oe);null!=Oe.value||this._multiple?(Gt!==Oe.selected&&(Oe.selected?this._selectionModel.select(Oe):this._selectionModel.deselect(Oe)),Le&&this._keyManager.setActiveItem(Oe),this.multiple&&(this._sortValues(),Le&&this.focus())):(Oe.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(Oe.value)),Gt!==this._selectionModel.isSelected(Oe)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const Oe=this.options.toArray();this._selectionModel.sort((Le,Gt)=>this.sortComparator?this.sortComparator(Le,Gt,Oe):Oe.indexOf(Le)-Oe.indexOf(Gt)),this.stateChanges.next()}}_propagateChanges(Oe){let Le=null;Le=this.multiple?this.selected.map(Gt=>Gt.value):this.selected?this.selected.value:Oe,this._value=Le,this.valueChange.emit(Le),this._onChange(Le),this.selectionChange.emit(this._getChangeEvent(Le)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let Oe=-1;for(let Le=0;Le<this.options.length;Le++)if(!this.options.get(Le).disabled){Oe=Le;break}this._keyManager.setActiveItem(Oe)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(Oe){this._elementRef.nativeElement.focus(Oe)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const Oe=this._parentFormField?.getLabelId();return this.ariaLabelledby?(Oe?Oe+" ":"")+this.ariaLabelledby:Oe}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const Oe=this._parentFormField?.getLabelId();let Le=(Oe?Oe+" ":"")+this._valueId;return this.ariaLabelledby&&(Le+=" "+this.ariaLabelledby),Le}_panelDoneAnimating(Oe){this.openedChange.emit(Oe)}setDescribedByIds(Oe){Oe.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Oe.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}static#e=this.\u0275fac=function(Le){return new(Le||fe)(o.Y36(u.rL),o.Y36(o.sBO),o.Y36(o.R0b),o.Y36(a.rD),o.Y36(o.SBq),o.Y36(s.Is,8),o.Y36(R.F,8),o.Y36(R.sg,8),o.Y36(l.G_,8),o.Y36(R.a5,10),o.$8M("tabindex"),o.Y36(j),o.Y36(d.Kd),o.Y36(z,8))};static#t=this.\u0275dir=o.lG2({type:fe,viewQuery:function(Le,Gt){if(1&Le&&(o.Gf(D,5),o.Gf(F,5),o.Gf(e.pI,5)),2&Le){let Ut;o.iGM(Ut=o.CRH())&&(Gt.trigger=Ut.first),o.iGM(Ut=o.CRH())&&(Gt.panel=Ut.first),o.iGM(Ut=o.CRH())&&(Gt._overlayDir=Ut.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[o.qOj,o.TTD]})}return fe})(),Te=(()=>{class fe extends ge{constructor(){super(...arguments),this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._skipPredicate=Oe=>!this.panelOpen&&Oe.disabled}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,I.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}open(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(Oe){const Le=this.options.toArray()[Oe];if(Le){const Gt=this.panel.nativeElement,Ut=(0,a.CB)(Oe,this.options,this.optionGroups),An=Le._getHostElement();Gt.scrollTop=0===Oe&&1===Ut?0:(0,a.jH)(An.offsetTop,An.offsetHeight,Gt.scrollTop,Gt.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(Oe){return new ne(this,Oe)}_getOverlayWidth(Oe){return"auto"===this.panelWidth?(Oe instanceof e.xu?Oe.elementRef:Oe||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(Oe){this._hideSingleSelectionIndicator=(0,A.Ig)(Oe),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const Oe of this.options)Oe._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(){let Oe;return function(Gt){return(Oe||(Oe=o.n5z(fe)))(Gt||fe)}}();static#t=this.\u0275cmp=o.Xpm({type:fe,selectors:[["mat-select"]],contentQueries:function(Le,Gt,Ut){if(1&Le&&(o.Suo(Ut,se,5),o.Suo(Ut,a.ey,5),o.Suo(Ut,a.K7,5)),2&Le){let An;o.iGM(An=o.CRH())&&(Gt.customTrigger=An.first),o.iGM(An=o.CRH())&&(Gt.options=An),o.iGM(An=o.CRH())&&(Gt.optionGroups=An)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(Le,Gt){1&Le&&o.NdJ("keydown",function(An){return Gt._handleKeydown(An)})("focus",function(){return Gt._onFocus()})("blur",function(){return Gt._onBlur()}),2&Le&&(o.uIk("id",Gt.id)("tabindex",Gt.tabIndex)("aria-controls",Gt.panelOpen?Gt.id+"-panel":null)("aria-expanded",Gt.panelOpen)("aria-label",Gt.ariaLabel||null)("aria-required",Gt.required.toString())("aria-disabled",Gt.disabled.toString())("aria-invalid",Gt.errorState)("aria-activedescendant",Gt._getAriaActiveDescendant()),o.ekj("mat-mdc-select-disabled",Gt.disabled)("mat-mdc-select-invalid",Gt.errorState)("mat-mdc-select-required",Gt.required)("mat-mdc-select-empty",Gt.empty)("mat-mdc-select-multiple",Gt.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",panelWidth:"panelWidth",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[o._Bn([{provide:l.Eo,useExisting:fe},{provide:a.HF,useExisting:fe}]),o.qOj],ngContentSelectors:me,decls:11,vars:10,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(Le,Gt){if(1&Le&&(o.F$t(X),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return Gt.toggle()}),o.TgZ(3,"div",2),o.YNc(4,P,2,1,"span",3),o.YNc(5,V,3,2,"span",4),o.qZA(),o.TgZ(6,"div",5)(7,"div",6),o.O4$(),o.TgZ(8,"svg",7),o._UZ(9,"path",8),o.qZA()()()(),o.YNc(10,K,3,9,"ng-template",9),o.NdJ("backdropClick",function(){return Gt.close()})("attach",function(){return Gt._onAttached()})("detach",function(){return Gt.close()})),2&Le){const Ut=o.MAs(1);o.xp6(3),o.Q6J("ngSwitch",Gt.empty),o.uIk("id",Gt._valueId),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngSwitchCase",!1),o.xp6(5),o.Q6J("cdkConnectedOverlayPanelClass",Gt._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",Gt._scrollStrategy)("cdkConnectedOverlayOrigin",Gt._preferredOverlayOrigin||Ut)("cdkConnectedOverlayOpen",Gt.panelOpen)("cdkConnectedOverlayPositions",Gt._positions)("cdkConnectedOverlayWidth",Gt._overlayWidth)}},dependencies:[n.mk,n.RF,n.n9,n.ED,e.pI,e.xu],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[J.transformPanel]},changeDetection:0})}return fe})(),De=(()=>{class fe{static#e=this.\u0275fac=function(Le){return new(Le||fe)};static#t=this.\u0275mod=o.oAB({type:fe});static#n=this.\u0275inj=o.cJS({providers:[q],imports:[n.ez,e.U8,a.Ng,a.BQ,u.ZD,l.lN,a.Ng,a.BQ]})}return fe})()},32651:(he,y,i)=>{"use strict";i.d(y,{LW:()=>j,SJ:()=>_e,TM:()=>ne,jA:()=>H,kh:()=>z});var e=i(16672),n=i(96814),o=i(65879),a=i(23680),l=i(4300),u=i(49388),d=i(42495),s=i(36028),A=i(62831),_=i(78645),C=i(92438),R=i(63019),x=i(32181),f=i(37398),k=i(21441),w=i(59773),g=i(93997),M=i(48180),p=i(27921),E=i(83620),b=i(86825);const I=["*"],L=["content"];function D(ge,Ce){if(1&ge){const Te=o.EpF();o.TgZ(0,"div",2),o.NdJ("click",function(){o.CHM(Te);const fe=o.oxw();return o.KtG(fe._onBackdropClicked())}),o.qZA()}if(2&ge){const Te=o.oxw();o.ekj("mat-drawer-shown",Te._isShowingBackdrop())}}function F(ge,Ce){1&ge&&(o.TgZ(0,"mat-drawer-content"),o.Hsn(1,2),o.qZA())}const P=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],O=["mat-drawer","mat-drawer-content","*"];function U(ge,Ce){if(1&ge){const Te=o.EpF();o.TgZ(0,"div",2),o.NdJ("click",function(){o.CHM(Te);const fe=o.oxw();return o.KtG(fe._onBackdropClicked())}),o.qZA()}if(2&ge){const Te=o.oxw();o.ekj("mat-drawer-shown",Te._isShowingBackdrop())}}function V(ge,Ce){1&ge&&(o.TgZ(0,"mat-sidenav-content"),o.Hsn(1,2),o.qZA())}const K=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],X=["mat-sidenav","mat-sidenav-content","*"],J={transformDrawer:(0,b.X$)("transform",[(0,b.SB)("open, open-instant",(0,b.oB)({transform:"none",visibility:"visible"})),(0,b.SB)("void",(0,b.oB)({"box-shadow":"none",visibility:"hidden"})),(0,b.eR)("void => open-instant",(0,b.jt)("0ms")),(0,b.eR)("void <=> open, open-instant => void",(0,b.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},re=new o.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function te(){return!1}}),de=new o.OlP("MAT_DRAWER_CONTAINER");let j=(()=>{class ge extends e.PQ{constructor(Te,De,fe,xe,Oe){super(fe,xe,Oe),this._changeDetectorRef=Te,this._container=De}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(De){return new(De||ge)(o.Y36(o.sBO),o.Y36((0,o.Gpc)(()=>z)),o.Y36(o.SBq),o.Y36(e.mF),o.Y36(o.R0b))};static#t=this.\u0275cmp=o.Xpm({type:ge,selectors:[["mat-drawer-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content"],hostVars:4,hostBindings:function(De,fe){2&De&&o.Udp("margin-left",fe._container._contentMargins.left,"px")("margin-right",fe._container._contentMargins.right,"px")},features:[o._Bn([{provide:e.PQ,useExisting:ge}]),o.qOj],ngContentSelectors:I,decls:1,vars:0,template:function(De,fe){1&De&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0})}return ge})(),H=(()=>{class ge{get position(){return this._position}set position(Te){(Te="end"===Te?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(Te),this._position=Te,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(Te){this._mode=Te,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(Te){this._disableClose=(0,d.Ig)(Te)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(Te){("true"===Te||"false"===Te||null==Te)&&(Te=(0,d.Ig)(Te)),this._autoFocus=Te}get opened(){return this._opened}set opened(Te){this.toggle((0,d.Ig)(Te))}constructor(Te,De,fe,xe,Oe,Le,Gt,Ut){this._elementRef=Te,this._focusTrapFactory=De,this._focusMonitor=fe,this._platform=xe,this._ngZone=Oe,this._interactivityChecker=Le,this._doc=Gt,this._container=Ut,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new _.x,this._animationEnd=new _.x,this._animationState="void",this.openedChange=new o.vpe(!0),this._openedStream=this.openedChange.pipe((0,x.h)(An=>An),(0,f.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,x.h)(An=>An.fromState!==An.toState&&0===An.toState.indexOf("open")),(0,k.h)(void 0)),this._closedStream=this.openedChange.pipe((0,x.h)(An=>!An),(0,f.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,x.h)(An=>An.fromState!==An.toState&&"void"===An.toState),(0,k.h)(void 0)),this._destroyed=new _.x,this.onPositionChanged=new o.vpe,this._modeChanged=new _.x,this.openedChange.subscribe(An=>{An?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,C.R)(this._elementRef.nativeElement,"keydown").pipe((0,x.h)(An=>An.keyCode===s.hY&&!this.disableClose&&!(0,s.Vb)(An)),(0,w.R)(this._destroyed)).subscribe(An=>this._ngZone.run(()=>{this.close(),An.stopPropagation(),An.preventDefault()}))}),this._animationEnd.pipe((0,g.x)((An,$n)=>An.fromState===$n.fromState&&An.toState===$n.toState)).subscribe(An=>{const{fromState:$n,toState:xn}=An;(0===xn.indexOf("open")&&"void"===$n||"void"===xn&&0===$n.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(Te,De){this._interactivityChecker.isFocusable(Te)||(Te.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const fe=()=>{Te.removeEventListener("blur",fe),Te.removeEventListener("mousedown",fe),Te.removeAttribute("tabindex")};Te.addEventListener("blur",fe),Te.addEventListener("mousedown",fe)})),Te.focus(De)}_focusByCssSelector(Te,De){let fe=this._elementRef.nativeElement.querySelector(Te);fe&&this._forceFocus(fe,De)}_takeFocus(){if(!this._focusTrap)return;const Te=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(De=>{!De&&"function"==typeof this._elementRef.nativeElement.focus&&Te.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(Te){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Te):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const Te=this._doc.activeElement;return!!Te&&this._elementRef.nativeElement.contains(Te)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(Te){return this.toggle(!0,Te)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Te=!this.opened,De){Te&&De&&(this._openedVia=De);const fe=this._setOpen(Te,!Te&&this._isFocusWithinDrawer(),this._openedVia||"program");return Te||(this._openedVia=null),fe}_setOpen(Te,De,fe){return this._opened=Te,Te?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",De&&this._restoreFocus(fe)),this._updateFocusTrapState(),new Promise(xe=>{this.openedChange.pipe((0,M.q)(1)).subscribe(Oe=>xe(Oe?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(Te){const De=this._elementRef.nativeElement,fe=De.parentNode;"end"===Te?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),fe.insertBefore(this._anchor,De)),fe.appendChild(De)):this._anchor&&this._anchor.parentNode.insertBefore(De,this._anchor)}static#e=this.\u0275fac=function(De){return new(De||ge)(o.Y36(o.SBq),o.Y36(l.qV),o.Y36(l.tE),o.Y36(A.t4),o.Y36(o.R0b),o.Y36(l.ic),o.Y36(n.K0,8),o.Y36(de,8))};static#t=this.\u0275cmp=o.Xpm({type:ge,selectors:[["mat-drawer"]],viewQuery:function(De,fe){if(1&De&&o.Gf(L,5),2&De){let xe;o.iGM(xe=o.CRH())&&(fe._content=xe.first)}},hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer"],hostVars:12,hostBindings:function(De,fe){1&De&&o.WFA("@transform.start",function(Oe){return fe._animationStarted.next(Oe)})("@transform.done",function(Oe){return fe._animationEnd.next(Oe)}),2&De&&(o.uIk("align",null),o.d8E("@transform",fe._animationState),o.ekj("mat-drawer-end","end"===fe.position)("mat-drawer-over","over"===fe.mode)("mat-drawer-push","push"===fe.mode)("mat-drawer-side","side"===fe.mode)("mat-drawer-opened",fe.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:I,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(De,fe){1&De&&(o.F$t(),o.TgZ(0,"div",0,1),o.Hsn(2),o.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[J.transformDrawer]},changeDetection:0})}return ge})(),z=(()=>{class ge{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Te){this._autosize=(0,d.Ig)(Te)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(Te){this._backdropOverride=null==Te?null:(0,d.Ig)(Te)}get scrollable(){return this._userContent||this._content}constructor(Te,De,fe,xe,Oe,Le=!1,Gt){this._dir=Te,this._element=De,this._ngZone=fe,this._changeDetectorRef=xe,this._animationMode=Gt,this._drawers=new o.n_E,this.backdropClick=new o.vpe,this._destroyed=new _.x,this._doCheckSubject=new _.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new _.x,Te&&Te.change.pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Oe.change().pipe((0,w.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Le}ngAfterContentInit(){this._allDrawers.changes.pipe((0,p.O)(this._allDrawers),(0,w.R)(this._destroyed)).subscribe(Te=>{this._drawers.reset(Te.filter(De=>!De._container||De._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,p.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Te=>{this._watchDrawerToggle(Te),this._watchDrawerPosition(Te),this._watchDrawerMode(Te)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,E.b)(10),(0,w.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(Te=>Te.open())}close(){this._drawers.forEach(Te=>Te.close())}updateContentMargins(){let Te=0,De=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Te+=this._left._getWidth();else if("push"==this._left.mode){const fe=this._left._getWidth();Te+=fe,De-=fe}if(this._right&&this._right.opened)if("side"==this._right.mode)De+=this._right._getWidth();else if("push"==this._right.mode){const fe=this._right._getWidth();De+=fe,Te-=fe}Te=Te||null,De=De||null,(Te!==this._contentMargins.left||De!==this._contentMargins.right)&&(this._contentMargins={left:Te,right:De},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Te){Te._animationStarted.pipe((0,x.h)(De=>De.fromState!==De.toState),(0,w.R)(this._drawers.changes)).subscribe(De=>{"open-instant"!==De.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Te.mode&&Te.openedChange.pipe((0,w.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Te.opened))}_watchDrawerPosition(Te){Te&&Te.onPositionChanged.pipe((0,w.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,M.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(Te){Te&&Te._modeChanged.pipe((0,w.R)((0,R.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Te){const De=this._element.nativeElement.classList,fe="mat-drawer-container-has-open";Te?De.add(fe):De.remove(fe)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Te=>{"end"==Te.position?this._end=Te:this._start=Te}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(Te=>Te&&!Te.disableClose&&this._canHaveBackdrop(Te)).forEach(Te=>Te._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(Te){return"side"!==Te.mode||!!this._backdropOverride}_isDrawerOpen(Te){return null!=Te&&Te.opened}static#e=this.\u0275fac=function(De){return new(De||ge)(o.Y36(u.Is,8),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(e.rL),o.Y36(re),o.Y36(o.QbO,8))};static#t=this.\u0275cmp=o.Xpm({type:ge,selectors:[["mat-drawer-container"]],contentQueries:function(De,fe,xe){if(1&De&&(o.Suo(xe,j,5),o.Suo(xe,H,5)),2&De){let Oe;o.iGM(Oe=o.CRH())&&(fe._content=Oe.first),o.iGM(Oe=o.CRH())&&(fe._allDrawers=Oe)}},viewQuery:function(De,fe){if(1&De&&o.Gf(j,5),2&De){let xe;o.iGM(xe=o.CRH())&&(fe._userContent=xe.first)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container"],hostVars:2,hostBindings:function(De,fe){2&De&&o.ekj("mat-drawer-container-explicit-backdrop",fe._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[o._Bn([{provide:de,useExisting:ge}])],ngContentSelectors:O,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(De,fe){1&De&&(o.F$t(P),o.YNc(0,D,1,2,"div",0),o.Hsn(1),o.Hsn(2,1),o.YNc(3,F,2,0,"mat-drawer-content",1)),2&De&&(o.Q6J("ngIf",fe.hasBackdrop),o.xp6(3),o.Q6J("ngIf",!fe._content))},dependencies:[n.O5,j],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return ge})(),q=(()=>{class ge extends j{constructor(Te,De,fe,xe,Oe){super(Te,De,fe,xe,Oe)}static#e=this.\u0275fac=function(De){return new(De||ge)(o.Y36(o.sBO),o.Y36((0,o.Gpc)(()=>ne)),o.Y36(o.SBq),o.Y36(e.mF),o.Y36(o.R0b))};static#t=this.\u0275cmp=o.Xpm({type:ge,selectors:[["mat-sidenav-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(De,fe){2&De&&o.Udp("margin-left",fe._container._contentMargins.left,"px")("margin-right",fe._container._contentMargins.right,"px")},features:[o._Bn([{provide:e.PQ,useExisting:ge}]),o.qOj],ngContentSelectors:I,decls:1,vars:0,template:function(De,fe){1&De&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0})}return ge})(),se=(()=>{class ge extends H{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(Te){this._fixedInViewport=(0,d.Ig)(Te)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(Te){this._fixedTopGap=(0,d.su)(Te)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(Te){this._fixedBottomGap=(0,d.su)(Te)}static#e=this.\u0275fac=function(){let Te;return function(fe){return(Te||(Te=o.n5z(ge)))(fe||ge)}}();static#t=this.\u0275cmp=o.Xpm({type:ge,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(De,fe){2&De&&(o.uIk("align",null),o.Udp("top",fe.fixedInViewport?fe.fixedTopGap:null,"px")("bottom",fe.fixedInViewport?fe.fixedBottomGap:null,"px"),o.ekj("mat-drawer-end","end"===fe.position)("mat-drawer-over","over"===fe.mode)("mat-drawer-push","push"===fe.mode)("mat-drawer-side","side"===fe.mode)("mat-drawer-opened",fe.opened)("mat-sidenav-fixed",fe.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[o.qOj],ngContentSelectors:I,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(De,fe){1&De&&(o.F$t(),o.TgZ(0,"div",0,1),o.Hsn(2),o.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[J.transformDrawer]},changeDetection:0})}return ge})(),ne=(()=>{class ge extends z{constructor(){super(...arguments),this._allDrawers=void 0,this._content=void 0}static#e=this.\u0275fac=function(){let Te;return function(fe){return(Te||(Te=o.n5z(ge)))(fe||ge)}}();static#t=this.\u0275cmp=o.Xpm({type:ge,selectors:[["mat-sidenav-container"]],contentQueries:function(De,fe,xe){if(1&De&&(o.Suo(xe,q,5),o.Suo(xe,se,5)),2&De){let Oe;o.iGM(Oe=o.CRH())&&(fe._content=Oe.first),o.iGM(Oe=o.CRH())&&(fe._allDrawers=Oe)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(De,fe){2&De&&o.ekj("mat-drawer-container-explicit-backdrop",fe._backdropOverride)},exportAs:["matSidenavContainer"],features:[o._Bn([{provide:de,useExisting:ge}]),o.qOj],ngContentSelectors:X,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(De,fe){1&De&&(o.F$t(K),o.YNc(0,U,1,2,"div",0),o.Hsn(1),o.Hsn(2,1),o.YNc(3,V,2,0,"mat-sidenav-content",1)),2&De&&(o.Q6J("ngIf",fe.hasBackdrop),o.xp6(3),o.Q6J("ngIf",!fe._content))},dependencies:[n.O5,q],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return ge})(),_e=(()=>{class ge{static#e=this.\u0275fac=function(De){return new(De||ge)};static#t=this.\u0275mod=o.oAB({type:ge});static#n=this.\u0275inj=o.cJS({imports:[n.ez,a.BQ,e.ZD,e.ZD,a.BQ]})}return ge})()},82599:(he,y,i)=>{"use strict";i.d(y,{Rb:()=>M,Rr:()=>k,Z8:()=>f,rP:()=>p});var e=i(65879),n=i(56223),o=i(4300),a=i(23680),l=i(42495),u=i(96814);const d=["switch"],s=["*"],A=new e.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),_={provide:n.JU,useExisting:(0,e.Gpc)(()=>k),multi:!0};class C{constructor(b,I){this.source=b,this.checked=I}}let R=0;const x=(0,a.sb)((0,a.pj)((0,a.Kr)((0,a.Id)(class{constructor(E){this._elementRef=E}}))));let f=(()=>{class E extends x{get required(){return this._required}set required(I){this._required=(0,l.Ig)(I)}get checked(){return this._checked}set checked(I){this._checked=(0,l.Ig)(I),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(I,L,D,F,P,O,U){super(I),this._focusMonitor=L,this._changeDetectorRef=D,this.defaults=P,this._onChange=V=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new e.vpe,this.toggleChange=new e.vpe,this.tabIndex=parseInt(F)||0,this.color=this.defaultColor=P.color||"accent",this._noopAnimations="NoopAnimations"===O,this.id=this._uniqueId=`${U}${++R}`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(I=>{"keyboard"===I||"program"===I?(this._focused=!0,this._changeDetectorRef.markForCheck()):I||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(I){this.checked=!!I}registerOnChange(I){this._onChange=I}registerOnTouched(I){this._onTouched=I}setDisabledState(I){this.disabled=I,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}static#e=this.\u0275fac=function(L){e.$Z()};static#t=this.\u0275dir=e.lG2({type:E,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[e.qOj]})}return E})(),k=(()=>{class E extends f{get buttonId(){return`${this.id||this._uniqueId}-button`}constructor(I,L,D,F,P,O){super(I,L,D,F,P,O,"mat-mdc-slide-toggle-"),this._labelId=this._uniqueId+"-label"}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new C(this,this.checked)))}focus(){this._switchElement.nativeElement.focus()}_createChangeEvent(I){return new C(this,I)}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static#e=this.\u0275fac=function(L){return new(L||E)(e.Y36(e.SBq),e.Y36(o.tE),e.Y36(e.sBO),e.$8M("tabindex"),e.Y36(A),e.Y36(e.QbO,8))};static#t=this.\u0275cmp=e.Xpm({type:E,selectors:[["mat-slide-toggle"]],viewQuery:function(L,D){if(1&L&&e.Gf(d,5),2&L){let F;e.iGM(F=e.CRH())&&(D._switchElement=F.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:11,hostBindings:function(L,D){2&L&&(e.Ikx("id",D.id),e.uIk("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),e.ekj("mat-mdc-slide-toggle-focused",D._focused)("mat-mdc-slide-toggle-checked",D.checked)("_mat-animation-noopable",D._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[e._Bn([_]),e.qOj],ngContentSelectors:s,decls:17,vars:24,consts:[[1,"mdc-form-field"],["role","switch","type","button",1,"mdc-switch",3,"tabIndex","disabled","click"],["switch",""],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"],[1,"mdc-label",3,"for","click"]],template:function(L,D){if(1&L&&(e.F$t(),e.TgZ(0,"div",0)(1,"button",1,2),e.NdJ("click",function(){return D._handleClick()}),e._UZ(3,"div",3),e.TgZ(4,"div",4)(5,"div",5)(6,"div",6),e._UZ(7,"div",7),e.qZA(),e.TgZ(8,"div",8),e._UZ(9,"div",9),e.qZA(),e.TgZ(10,"div",10),e.O4$(),e.TgZ(11,"svg",11),e._UZ(12,"path",12),e.qZA(),e.TgZ(13,"svg",13),e._UZ(14,"path",14),e.qZA()()()()(),e.kcU(),e.TgZ(15,"label",15),e.NdJ("click",function(P){return P.stopPropagation()}),e.Hsn(16),e.qZA()()),2&L){const F=e.MAs(2);e.ekj("mdc-form-field--align-end","before"==D.labelPosition),e.xp6(1),e.ekj("mdc-switch--selected",D.checked)("mdc-switch--unselected",!D.checked)("mdc-switch--checked",D.checked)("mdc-switch--disabled",D.disabled),e.Q6J("tabIndex",D.tabIndex)("disabled",D.disabled),e.uIk("id",D.buttonId)("name",D.name)("aria-label",D.ariaLabel)("aria-labelledby",D._getAriaLabelledBy())("aria-describedby",D.ariaDescribedby)("aria-required",D.required||null)("aria-checked",D.checked),e.xp6(8),e.Q6J("matRippleTrigger",F)("matRippleDisabled",D.disableRipple||D.disabled)("matRippleCentered",!0),e.xp6(6),e.Q6J("for",D.buttonId),e.uIk("id",D._labelId)}},dependencies:[a.wG],styles:['.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mdc-switch{width:var(--mdc-switch-track-width, 36px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, #616161)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color, var(--mdc-theme-surface, #fff))}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__focus-ring-wrapper,.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height, 20px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape, 10px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width, 20px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width, 20px))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 18px);height:var(--mdc-switch-selected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size, 18px);height:var(--mdc-switch-unselected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size, 48px);width:var(--mdc-switch-state-layer-size, 48px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height, 14px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape, 7px)}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}'],encapsulation:2,changeDetection:0})}return E})(),M=(()=>{class E{static#e=this.\u0275fac=function(L){return new(L||E)};static#t=this.\u0275mod=e.oAB({type:E});static#n=this.\u0275inj=e.cJS({})}return E})(),p=(()=>{class E{static#e=this.\u0275fac=function(L){return new(L||E)};static#t=this.\u0275mod=e.oAB({type:E});static#n=this.\u0275inj=e.cJS({imports:[M,a.BQ,a.si,u.ez,M,a.BQ]})}return E})()},61545:(he,y,i)=>{"use strict";i.d(y,{C0:()=>mi,VY:()=>$n,Vq:()=>Eo,z9:()=>nn,T5:()=>Bn});var e=i(68484),n=i(4300),o=i(49388),a=i(42495),l=i(36028),u=i(65879),d=i(62831),s=i(78645),A=i(22096),_=i(27921),C=i(59773);function R(Xt,Ji){1&Xt&&u.Hsn(0)}const x=["*"];let f=(()=>{class Xt{constructor(En){this._elementRef=En}focus(){this._elementRef.nativeElement.focus()}static#e=this.\u0275fac=function(un){return new(un||Xt)(u.Y36(u.SBq))};static#t=this.\u0275dir=u.lG2({type:Xt,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return Xt})(),k=(()=>{class Xt{constructor(En){this.template=En}static#e=this.\u0275fac=function(un){return new(un||Xt)(u.Y36(u.Rgc))};static#t=this.\u0275dir=u.lG2({type:Xt,selectors:[["","cdkStepLabel",""]]})}return Xt})(),w=0;const p=new u.OlP("STEPPER_GLOBAL_OPTIONS");let E=(()=>{class Xt{get editable(){return this._editable}set editable(En){this._editable=(0,a.Ig)(En)}get optional(){return this._optional}set optional(En){this._optional=(0,a.Ig)(En)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(En){this._completedOverride=(0,a.Ig)(En)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(En){this._customError=(0,a.Ig)(En)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(En,un){this._stepper=En,this.interacted=!1,this.interactedStream=new u.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=un||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}static#e=this.\u0275fac=function(un){return new(un||Xt)(u.Y36((0,u.Gpc)(()=>b)),u.Y36(p,8))};static#t=this.\u0275cmp=u.Xpm({type:Xt,selectors:[["cdk-step"]],contentQueries:function(un,Ki,Fn){if(1&un&&u.Suo(Fn,k,5),2&un){let oi;u.iGM(oi=u.CRH())&&(Ki.stepLabel=oi.first)}},viewQuery:function(un,Ki){if(1&un&&u.Gf(u.Rgc,7),2&un){let Fn;u.iGM(Fn=u.CRH())&&(Ki.content=Fn.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[u.TTD],ngContentSelectors:x,decls:1,vars:0,template:function(un,Ki){1&un&&(u.F$t(),u.YNc(0,R,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return Xt})(),b=(()=>{class Xt{get linear(){return this._linear}set linear(En){this._linear=(0,a.Ig)(En)}get selectedIndex(){return this._selectedIndex}set selectedIndex(En){const un=(0,a.su)(En);this.steps&&this._steps?(this._isValidIndex(un),this.selected?._markAsInteracted(),this._selectedIndex!==un&&!this._anyControlsInvalidOrPending(un)&&(un>=this._selectedIndex||this.steps.toArray()[un].editable)&&this._updateSelectedItemIndex(un)):this._selectedIndex=un}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(En){this.selectedIndex=En&&this.steps?this.steps.toArray().indexOf(En):-1}get orientation(){return this._orientation}set orientation(En){this._orientation=En,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===En)}constructor(En,un,Ki){this._dir=En,this._changeDetectorRef=un,this._elementRef=Ki,this._destroyed=new s.x,this.steps=new u.n_E,this._sortedHeaders=new u.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new u.vpe,this.selectedIndexChange=new u.vpe,this._orientation="horizontal",this._groupId=w++}ngAfterContentInit(){this._steps.changes.pipe((0,_.O)(this._steps),(0,C.R)(this._destroyed)).subscribe(En=>{this.steps.reset(En.filter(un=>un._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,_.O)(this._stepHeader),(0,C.R)(this._destroyed)).subscribe(En=>{this._sortedHeaders.reset(En.toArray().sort((un,Ki)=>un._elementRef.nativeElement.compareDocumentPosition(Ki._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new n.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,A.of)()).pipe((0,_.O)(this._layoutDirection()),(0,C.R)(this._destroyed)).subscribe(En=>this._keyManager.withHorizontalOrientation(En)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(En=>En.reset()),this._stateChanged()}_getStepLabelId(En){return`cdk-step-label-${this._groupId}-${En}`}_getStepContentId(En){return`cdk-step-content-${this._groupId}-${En}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(En){const un=En-this._selectedIndex;return un<0?"rtl"===this._layoutDirection()?"next":"previous":un>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(En,un="number"){const Ki=this.steps.toArray()[En],Fn=this._isCurrentStep(En);return Ki._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Ki,Fn):this._getGuidelineLogic(Ki,Fn,un)}_getDefaultIndicatorLogic(En,un){return En._showError()&&En.hasError&&!un?"error":!En.completed||un?"number":En.editable?"edit":"done"}_getGuidelineLogic(En,un,Ki="number"){return En._showError()&&En.hasError&&!un?"error":En.completed&&!un?"done":En.completed&&un?Ki:En.editable&&un?"edit":Ki}_isCurrentStep(En){return this._selectedIndex===En}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(En){const un=this.steps.toArray();this.selectionChange.emit({selectedIndex:En,previouslySelectedIndex:this._selectedIndex,selectedStep:un[En],previouslySelectedStep:un[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(En):this._keyManager.updateActiveItem(En),this._selectedIndex=En,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(En){const un=(0,l.Vb)(En),Ki=En.keyCode,Fn=this._keyManager;null==Fn.activeItemIndex||un||Ki!==l.L_&&Ki!==l.K5?Fn.setFocusOrigin("keyboard").onKeydown(En):(this.selectedIndex=Fn.activeItemIndex,En.preventDefault())}_anyControlsInvalidOrPending(En){return!!(this._linear&&En>=0)&&this.steps.toArray().slice(0,En).some(un=>{const Ki=un.stepControl;return(Ki?Ki.invalid||Ki.pending||!un.interacted:!un.completed)&&!un.optional&&!un._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const En=this._elementRef.nativeElement,un=(0,d.ht)();return En===un||En.contains(un)}_isValidIndex(En){return En>-1&&(!this.steps||En<this.steps.length)}static#e=this.\u0275fac=function(un){return new(un||Xt)(u.Y36(o.Is,8),u.Y36(u.sBO),u.Y36(u.SBq))};static#t=this.\u0275dir=u.lG2({type:Xt,selectors:[["","cdkStepper",""]],contentQueries:function(un,Ki,Fn){if(1&un&&(u.Suo(Fn,E,5),u.Suo(Fn,f,5)),2&un){let oi;u.iGM(oi=u.CRH())&&(Ki._steps=oi),u.iGM(oi=u.CRH())&&(Ki._stepHeader=oi)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return Xt})(),D=(()=>{class Xt{static#e=this.\u0275fac=function(un){return new(un||Xt)};static#t=this.\u0275mod=u.oAB({type:Xt});static#n=this.\u0275inj=u.cJS({imports:[o.vT]})}return Xt})();var F=i(96814),P=i(23680),O=i(30617),U=i(47394),V=i(94664),K=i(37398),X=i(93997),me=i(86825);function J(Xt,Ji){if(1&Xt&&u.GkF(0,8),2&Xt){const En=u.oxw();u.Q6J("ngTemplateOutlet",En.iconOverrides[En.state])("ngTemplateOutletContext",En._getIconContext())}}function Q(Xt,Ji){if(1&Xt&&(u.TgZ(0,"span",13),u._uU(1),u.qZA()),2&Xt){const En=u.oxw(2);u.xp6(1),u.Oqu(En._getDefaultTextForState(En.state))}}function re(Xt,Ji){if(1&Xt&&(u.TgZ(0,"span",14),u._uU(1),u.qZA()),2&Xt){const En=u.oxw(2);u.xp6(1),u.Oqu(En._intl.completedLabel)}}function de(Xt,Ji){if(1&Xt&&(u.TgZ(0,"span",14),u._uU(1),u.qZA()),2&Xt){const En=u.oxw(2);u.xp6(1),u.Oqu(En._intl.editableLabel)}}function te(Xt,Ji){if(1&Xt&&(u.TgZ(0,"mat-icon",13),u._uU(1),u.qZA()),2&Xt){const En=u.oxw(2);u.xp6(1),u.Oqu(En._getDefaultTextForState(En.state))}}function j(Xt,Ji){if(1&Xt&&(u.ynx(0,9),u.YNc(1,Q,2,1,"span",10),u.YNc(2,re,2,1,"span",11),u.YNc(3,de,2,1,"span",11),u.YNc(4,te,2,1,"mat-icon",12),u.BQk()),2&Xt){const En=u.oxw();u.Q6J("ngSwitch",En.state),u.xp6(1),u.Q6J("ngSwitchCase","number"),u.xp6(1),u.Q6J("ngIf","done"===En.state),u.xp6(1),u.Q6J("ngIf","edit"===En.state)}}function H(Xt,Ji){if(1&Xt&&(u.TgZ(0,"div",15),u.GkF(1,16),u.qZA()),2&Xt){const En=u.oxw();u.xp6(1),u.Q6J("ngTemplateOutlet",En._templateLabel().template)}}function z(Xt,Ji){if(1&Xt&&(u.TgZ(0,"div",15),u._uU(1),u.qZA()),2&Xt){const En=u.oxw();u.xp6(1),u.Oqu(En.label)}}function q(Xt,Ji){if(1&Xt&&(u.TgZ(0,"div",17),u._uU(1),u.qZA()),2&Xt){const En=u.oxw();u.xp6(1),u.Oqu(En._intl.optionalLabel)}}function se(Xt,Ji){if(1&Xt&&(u.TgZ(0,"div",18),u._uU(1),u.qZA()),2&Xt){const En=u.oxw();u.xp6(1),u.Oqu(En.errorMessage)}}function ne(Xt,Ji){}function _e(Xt,Ji){if(1&Xt&&(u.Hsn(0),u.YNc(1,ne,0,0,"ng-template",0)),2&Xt){const En=u.oxw();u.xp6(1),u.Q6J("cdkPortalOutlet",En._portal)}}const ge=["*"];function Ce(Xt,Ji){1&Xt&&u._UZ(0,"div",11)}const Te=function(Xt,Ji){return{step:Xt,i:Ji}};function De(Xt,Ji){if(1&Xt&&(u.ynx(0),u.GkF(1,9),u.YNc(2,Ce,1,0,"div",10),u.BQk()),2&Xt){const En=Ji.$implicit,un=Ji.index,Ki=Ji.last;u.oxw(2);const Fn=u.MAs(4);u.xp6(1),u.Q6J("ngTemplateOutlet",Fn)("ngTemplateOutletContext",u.WLB(3,Te,En,un)),u.xp6(1),u.Q6J("ngIf",!Ki)}}const fe=function(Xt){return{animationDuration:Xt}},xe=function(Xt,Ji){return{value:Xt,params:Ji}};function Oe(Xt,Ji){if(1&Xt){const En=u.EpF();u.TgZ(0,"div",12),u.NdJ("@horizontalStepTransition.done",function(Ki){u.CHM(En);const Fn=u.oxw(2);return u.KtG(Fn._animationDone.next(Ki))}),u.GkF(1,13),u.qZA()}if(2&Xt){const En=Ji.$implicit,un=Ji.index,Ki=u.oxw(2);u.ekj("mat-horizontal-stepper-content-inactive",Ki.selectedIndex!==un),u.Q6J("@horizontalStepTransition",u.WLB(8,xe,Ki._getAnimationDirection(un),u.VKq(6,fe,Ki._getAnimationDuration())))("id",Ki._getStepContentId(un)),u.uIk("aria-labelledby",Ki._getStepLabelId(un)),u.xp6(1),u.Q6J("ngTemplateOutlet",En.content)}}function Le(Xt,Ji){if(1&Xt&&(u.TgZ(0,"div",4)(1,"div",5),u.YNc(2,De,3,6,"ng-container",6),u.qZA(),u.TgZ(3,"div",7),u.YNc(4,Oe,2,11,"div",8),u.qZA()()),2&Xt){const En=u.oxw();u.xp6(2),u.Q6J("ngForOf",En.steps),u.xp6(2),u.Q6J("ngForOf",En.steps)}}function Gt(Xt,Ji){if(1&Xt){const En=u.EpF();u.TgZ(0,"div",15),u.GkF(1,9),u.TgZ(2,"div",16)(3,"div",17),u.NdJ("@verticalStepTransition.done",function(Ki){u.CHM(En);const Fn=u.oxw(2);return u.KtG(Fn._animationDone.next(Ki))}),u.TgZ(4,"div",18),u.GkF(5,13),u.qZA()()()()}if(2&Xt){const En=Ji.$implicit,un=Ji.index,Ki=Ji.last,Fn=u.oxw(2),oi=u.MAs(4);u.xp6(1),u.Q6J("ngTemplateOutlet",oi)("ngTemplateOutletContext",u.WLB(10,Te,En,un)),u.xp6(1),u.ekj("mat-stepper-vertical-line",!Ki),u.xp6(1),u.ekj("mat-vertical-stepper-content-inactive",Fn.selectedIndex!==un),u.Q6J("@verticalStepTransition",u.WLB(15,xe,Fn._getAnimationDirection(un),u.VKq(13,fe,Fn._getAnimationDuration())))("id",Fn._getStepContentId(un)),u.uIk("aria-labelledby",Fn._getStepLabelId(un)),u.xp6(2),u.Q6J("ngTemplateOutlet",En.content)}}function Ut(Xt,Ji){if(1&Xt&&(u.ynx(0),u.YNc(1,Gt,6,18,"div",14),u.BQk()),2&Xt){const En=u.oxw();u.xp6(1),u.Q6J("ngForOf",En.steps)}}function An(Xt,Ji){if(1&Xt){const En=u.EpF();u.TgZ(0,"mat-step-header",19),u.NdJ("click",function(){const Fn=u.CHM(En).step;return u.KtG(Fn.select())})("keydown",function(Ki){u.CHM(En);const Fn=u.oxw();return u.KtG(Fn._onKeydown(Ki))}),u.qZA()}if(2&Xt){const En=Ji.step,un=Ji.i,Ki=u.oxw();u.ekj("mat-horizontal-stepper-header","horizontal"===Ki.orientation)("mat-vertical-stepper-header","vertical"===Ki.orientation),u.Q6J("tabIndex",Ki._getFocusIndex()===un?0:-1)("id",Ki._getStepLabelId(un))("index",un)("state",Ki._getIndicatorType(un,En.state))("label",En.stepLabel||En.label)("selected",Ki.selectedIndex===un)("active",Ki._stepIsNavigable(un,En))("optional",En.optional)("errorMessage",En.errorMessage)("iconOverrides",Ki._iconOverrides)("disableRipple",Ki.disableRipple||!Ki._stepIsNavigable(un,En))("color",En.color||Ki.color),u.uIk("aria-posinset",un+1)("aria-setsize",Ki.steps.length)("aria-controls",Ki._getStepContentId(un))("aria-selected",Ki.selectedIndex==un)("aria-label",En.ariaLabel||null)("aria-labelledby",!En.ariaLabel&&En.ariaLabelledby?En.ariaLabelledby:null)("aria-disabled",!Ki._stepIsNavigable(un,En)||null)}}let $n=(()=>{class Xt extends k{static#e=this.\u0275fac=function(){let En;return function(Ki){return(En||(En=u.n5z(Xt)))(Ki||Xt)}}();static#t=this.\u0275dir=u.lG2({type:Xt,selectors:[["","matStepLabel",""]],features:[u.qOj]})}return Xt})(),xn=(()=>{class Xt{constructor(){this.changes=new s.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}static#e=this.\u0275fac=function(un){return new(un||Xt)};static#t=this.\u0275prov=u.Yz7({token:Xt,factory:Xt.\u0275fac,providedIn:"root"})}return Xt})();const ut={provide:xn,deps:[[new u.FiY,new u.tp0,xn]],useFactory:function mt(Xt){return Xt||new xn}},Wt=(0,P.pj)(class extends f{constructor(Ji){super(Ji)}},"primary");let dn=(()=>{class Xt extends Wt{constructor(En,un,Ki,Fn){super(Ki),this._intl=En,this._focusMonitor=un,this._intlSubscription=En.changes.subscribe(()=>Fn.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(En,un){En?this._focusMonitor.focusVia(this._elementRef,En,un):this._elementRef.nativeElement.focus(un)}_stringLabel(){return this.label instanceof $n?null:this.label}_templateLabel(){return this.label instanceof $n?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(En){return"number"==En?`${this.index+1}`:"edit"==En?"create":"error"==En?"warning":En}static#e=this.\u0275fac=function(un){return new(un||Xt)(u.Y36(xn),u.Y36(n.tE),u.Y36(u.SBq),u.Y36(u.sBO))};static#t=this.\u0275cmp=u.Xpm({type:Xt,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[u.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(un,Ki){1&un&&(u._UZ(0,"div",0),u.TgZ(1,"div")(2,"div",1),u.YNc(3,J,1,2,"ng-container",2),u.YNc(4,j,5,4,"ng-container",3),u.qZA()(),u.TgZ(5,"div",4),u.YNc(6,H,2,1,"div",5),u.YNc(7,z,2,1,"div",5),u.YNc(8,q,2,1,"div",6),u.YNc(9,se,2,1,"div",7),u.qZA()),2&un&&(u.Q6J("matRippleTrigger",Ki._getHostElement())("matRippleDisabled",Ki.disableRipple),u.xp6(1),u.Gre("mat-step-icon-state-",Ki.state," mat-step-icon"),u.ekj("mat-step-icon-selected",Ki.selected),u.xp6(1),u.Q6J("ngSwitch",!(!Ki.iconOverrides||!Ki.iconOverrides[Ki.state])),u.xp6(1),u.Q6J("ngSwitchCase",!0),u.xp6(2),u.ekj("mat-step-label-active",Ki.active)("mat-step-label-selected",Ki.selected)("mat-step-label-error","error"==Ki.state),u.xp6(1),u.Q6J("ngIf",Ki._templateLabel()),u.xp6(1),u.Q6J("ngIf",Ki._stringLabel()),u.xp6(1),u.Q6J("ngIf",Ki.optional&&"error"!=Ki.state),u.xp6(1),u.Q6J("ngIf","error"==Ki.state))},dependencies:[F.O5,F.tP,F.RF,F.n9,F.ED,O.Hw,P.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color)}@media(hover: none){.mat-step-header:hover{background:none}}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color)}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color);background-color:var(--mat-stepper-header-icon-background-color)}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color);color:var(--mat-stepper-header-error-state-icon-foreground-color)}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font);font-size:var(--mat-stepper-header-label-text-size);font-weight:var(--mat-stepper-header-label-text-weight);color:var(--mat-stepper-header-label-text-color)}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color)}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color);font-size:var(--mat-stepper-header-error-state-label-text-size)}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size);font-weight:var(--mat-stepper-header-selected-state-label-text-weight)}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color);color:var(--mat-stepper-header-selected-state-icon-foreground-color)}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color);color:var(--mat-stepper-header-edit-state-icon-foreground-color)}'],encapsulation:2,changeDetection:0})}return Xt})();const yi={horizontalStepTransition:(0,me.X$)("horizontalStepTransition",[(0,me.SB)("previous",(0,me.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,me.SB)("current",(0,me.oB)({transform:"none",visibility:"inherit"})),(0,me.SB)("next",(0,me.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,me.eR)("* => *",(0,me.ru)([(0,me.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),(0,me.IO)("@*",(0,me.pV)(),{optional:!0})]),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,me.X$)("verticalStepTransition",[(0,me.SB)("previous",(0,me.oB)({height:"0px",visibility:"hidden"})),(0,me.SB)("next",(0,me.oB)({height:"0px",visibility:"hidden"})),(0,me.SB)("current",(0,me.oB)({height:"*",visibility:"inherit"})),(0,me.eR)("* <=> current",(0,me.ru)([(0,me.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),(0,me.IO)("@*",(0,me.pV)(),{optional:!0})]),{params:{animationDuration:"225ms"}})])};let nn=(()=>{class Xt{constructor(En){this.templateRef=En}static#e=this.\u0275fac=function(un){return new(un||Xt)(u.Y36(u.Rgc))};static#t=this.\u0275dir=u.lG2({type:Xt,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}})}return Xt})(),Mi=(()=>{class Xt{constructor(En){this._template=En}static#e=this.\u0275fac=function(un){return new(un||Xt)(u.Y36(u.Rgc))};static#t=this.\u0275dir=u.lG2({type:Xt,selectors:[["ng-template","matStepContent",""]]})}return Xt})(),mi=(()=>{class Xt extends E{constructor(En,un,Ki,Fn){super(En,Fn),this._errorStateMatcher=un,this._viewContainerRef=Ki,this._isSelected=U.w0.EMPTY,this.stepLabel=void 0}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,V.w)(()=>this._stepper.selectionChange.pipe((0,K.U)(En=>En.selectedStep===this),(0,_.O)(this._stepper.selected===this)))).subscribe(En=>{En&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(En,un){return this._errorStateMatcher.isErrorState(En,un)||!!(En&&En.invalid&&this.interacted)}static#e=this.\u0275fac=function(un){return new(un||Xt)(u.Y36((0,u.Gpc)(()=>Eo)),u.Y36(P.rD,4),u.Y36(u.s_b),u.Y36(p,8))};static#t=this.\u0275cmp=u.Xpm({type:Xt,selectors:[["mat-step"]],contentQueries:function(un,Ki,Fn){if(1&un&&(u.Suo(Fn,$n,5),u.Suo(Fn,Mi,5)),2&un){let oi;u.iGM(oi=u.CRH())&&(Ki.stepLabel=oi.first),u.iGM(oi=u.CRH())&&(Ki._lazyContent=oi.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[u._Bn([{provide:P.rD,useExisting:Xt},{provide:E,useExisting:Xt}]),u.qOj],ngContentSelectors:ge,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(un,Ki){1&un&&(u.F$t(),u.YNc(0,_e,2,1,"ng-template"))},dependencies:[e.Pl],encapsulation:2,changeDetection:0})}return Xt})(),Eo=(()=>{class Xt extends b{get animationDuration(){return this._animationDuration}set animationDuration(En){this._animationDuration=/^\d+$/.test(En)?En+"ms":En}constructor(En,un,Ki){super(En,un,Ki),this._stepHeader=void 0,this._steps=void 0,this.steps=new u.n_E,this.animationDone=new u.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new s.x,this._animationDuration="";const Fn=Ki.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===Fn?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:En,templateRef:un})=>this._iconOverrides[En]=un),this.steps.changes.pipe((0,C.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,X.x)((En,un)=>En.fromState===un.fromState&&En.toState===un.toState),(0,C.R)(this._destroyed)).subscribe(En=>{"current"===En.toState&&this.animationDone.emit()})}_stepIsNavigable(En,un){return un.completed||this.selectedIndex===En||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}static#e=this.\u0275fac=function(un){return new(un||Xt)(u.Y36(o.Is,8),u.Y36(u.sBO),u.Y36(u.SBq))};static#t=this.\u0275cmp=u.Xpm({type:Xt,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(un,Ki,Fn){if(1&un&&(u.Suo(Fn,mi,5),u.Suo(Fn,nn,5)),2&un){let oi;u.iGM(oi=u.CRH())&&(Ki._steps=oi),u.iGM(oi=u.CRH())&&(Ki._icons=oi)}},viewQuery:function(un,Ki){if(1&un&&u.Gf(dn,5),2&un){let Fn;u.iGM(Fn=u.CRH())&&(Ki._stepHeader=Fn)}},hostAttrs:["role","tablist","ngSkipHydration",""],hostVars:11,hostBindings:function(un,Ki){2&un&&(u.uIk("aria-orientation",Ki.orientation),u.ekj("mat-stepper-horizontal","horizontal"===Ki.orientation)("mat-stepper-vertical","vertical"===Ki.orientation)("mat-stepper-label-position-end","horizontal"===Ki.orientation&&"end"==Ki.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Ki.orientation&&"bottom"==Ki.labelPosition)("mat-stepper-header-position-bottom","bottom"===Ki.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[u._Bn([{provide:b,useExisting:Xt}]),u.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(un,Ki){1&un&&(u.ynx(0,0),u.YNc(1,Le,5,2,"div",1),u.YNc(2,Ut,2,1,"ng-container",2),u.BQk(),u.YNc(3,An,1,23,"ng-template",null,3,u.W1O)),2&un&&(u.Q6J("ngSwitch",Ki.orientation),u.xp6(1),u.Q6J("ngSwitchCase","horizontal"),u.xp6(1),u.Q6J("ngSwitchCase","vertical"))},dependencies:[F.sg,F.O5,F.tP,F.RF,F.n9,dn],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font);background:var(--mat-stepper-container-color)}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color);top:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[yi.horizontalStepTransition,yi.verticalStepTransition]},changeDetection:0})}return Xt})(),Bn=(()=>{class Xt{static#e=this.\u0275fac=function(un){return new(un||Xt)};static#t=this.\u0275mod=u.oAB({type:Xt});static#n=this.\u0275inj=u.cJS({providers:[ut,P.rD],imports:[P.BQ,F.ez,e.eL,D,O.Ps,P.si,P.BQ]})}return Xt})()},49538:(he,y,i)=>{"use strict";i.d(y,{_4:()=>de,p0:()=>Q});var e=i(65879),n=i(14643),o=i(78337),a=i(23680),l=i(65619),u=i(78645),d=i(63019),s=i(22096),A=i(52572),_=i(42495),C=i(37398);let Q=(()=>{class j{static#e=this.\u0275fac=function(q){return new(q||j)};static#t=this.\u0275mod=e.oAB({type:j});static#n=this.\u0275inj=e.cJS({imports:[a.BQ,n.HT,a.BQ]})}return j})();class de extends o.o2{get data(){return this._data.value}set data(H){H=Array.isArray(H)?H:[],this._data.next(H),this._renderChangesSubscription||this._filterData(H)}get filter(){return this._filter.value}set filter(H){this._filter.next(H),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(H){this._sort=H,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(H){this._paginator=H,this._updateChangeSubscription()}constructor(H=[]){super(),this._renderData=new l.X([]),this._filter=new l.X(""),this._internalPageChanges=new u.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(z,q)=>{const se=z[q];if((0,_.t6)(se)){const ne=Number(se);return ne<9007199254740991?ne:se}return se},this.sortData=(z,q)=>{const se=q.active,ne=q.direction;return se&&""!=ne?z.sort((_e,ge)=>{let Ce=this.sortingDataAccessor(_e,se),Te=this.sortingDataAccessor(ge,se);const De=typeof Ce,fe=typeof Te;De!==fe&&("number"===De&&(Ce+=""),"number"===fe&&(Te+=""));let xe=0;return null!=Ce&&null!=Te?Ce>Te?xe=1:Ce<Te&&(xe=-1):null!=Ce?xe=1:null!=Te&&(xe=-1),xe*("asc"==ne?1:-1)}):z},this.filterPredicate=(z,q)=>{const se=Object.keys(z).reduce((_e,ge)=>_e+z[ge]+"\u25ec","").toLowerCase(),ne=q.trim().toLowerCase();return-1!=se.indexOf(ne)},this._data=new l.X(H),this._updateChangeSubscription()}_updateChangeSubscription(){const H=this._sort?(0,d.T)(this._sort.sortChange,this._sort.initialized):(0,s.of)(null),z=this._paginator?(0,d.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,s.of)(null),se=(0,A.a)([this._data,this._filter]).pipe((0,C.U)(([ge])=>this._filterData(ge))),ne=(0,A.a)([se,H]).pipe((0,C.U)(([ge])=>this._orderData(ge))),_e=(0,A.a)([ne,z]).pipe((0,C.U)(([ge])=>this._pageData(ge)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=_e.subscribe(ge=>this._renderData.next(ge))}_filterData(H){return this.filteredData=null==this.filter||""===this.filter?H:H.filter(z=>this.filterPredicate(z,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(H){return this.sort?this.sortData(H.slice(),this.sort):H}_pageData(H){if(!this.paginator)return H;const z=this.paginator.pageIndex*this.paginator.pageSize;return H.slice(z,z+this.paginator.pageSize)}_updatePaginator(H){Promise.resolve().then(()=>{const z=this.paginator;if(z&&(z.length=H,z.pageIndex>0)){const q=Math.ceil(z.length/z.pageSize)-1||0,se=Math.min(z.pageIndex,q);se!==z.pageIndex&&(z.pageIndex=se,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}},74104:(he,y,i)=>{"use strict";i.d(y,{A$:()=>dn,E5:()=>Oe,JO:()=>De,NY:()=>mi,Nh:()=>jn,TL:()=>Gt,_r:()=>fn,af:()=>fe,b3:()=>Ut,he:()=>It,j4:()=>Lt,j_:()=>Mt,lk:()=>Eo,lp:()=>Ki,sd:()=>Te,uD:()=>An,wo:()=>En});var e=i(96814),n=i(65879),o=i(23680),a=i(68484),l=i(17131),u=i(4300),d=i(49388),s=i(47394),A=i(78645),_=i(92438),C=i(22096),R=i(63019),x=i(36232),f=i(65592),k=i(74825),w=i(27921),g=i(93997),M=i(59773),p=i(48180),E=i(94664),b=i(836),I=i(32181),L=i(86825),D=i(42495),F=i(16672),P=i(62831),O=i(36028);function U(Pi,go){}const V=function(Pi){return{animationDuration:Pi}},K=function(Pi,go){return{value:Pi,params:go}},Te={translateTab:(0,L.X$)("translateTab",[(0,L.SB)("center, void, left-origin-center, right-origin-center",(0,L.oB)({transform:"none"})),(0,L.SB)("left",(0,L.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,L.SB)("right",(0,L.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,L.eR)("* => left, * => right, left => center, right => center",(0,L.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,L.eR)("void => left-origin-center",[(0,L.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,L.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,L.eR)("void => right-origin-center",[(0,L.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,L.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let De=(()=>{class Pi extends a.Pl{constructor(si,ot,pn,_i){super(si,ot,_i),this._host=pn,this._centeringSub=s.w0.EMPTY,this._leavingSub=s.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,w.O)(this._host._isCenterPosition(this._host._position))).subscribe(si=>{si&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static#e=this.\u0275fac=function(ot){return new(ot||Pi)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36((0,n.Gpc)(()=>xe)),n.Y36(e.K0))};static#t=this.\u0275dir=n.lG2({type:Pi,selectors:[["","matTabBodyHost",""]],features:[n.qOj]})}return Pi})(),fe=(()=>{class Pi{set position(si){this._positionIndex=si,this._computePositionAnimationState()}constructor(si,ot,pn){this._elementRef=si,this._dir=ot,this._dirChangeSubscription=s.w0.EMPTY,this._translateTabComplete=new A.x,this._onCentering=new n.vpe,this._beforeCentering=new n.vpe,this._afterLeavingCenter=new n.vpe,this._onCentered=new n.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,ot&&(this._dirChangeSubscription=ot.change.subscribe(_i=>{this._computePositionAnimationState(_i),pn.markForCheck()})),this._translateTabComplete.pipe((0,g.x)((_i,wi)=>_i.fromState===wi.fromState&&_i.toState===wi.toState)).subscribe(_i=>{this._isCenterPosition(_i.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(_i.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(si){const ot=this._isCenterPosition(si.toState);this._beforeCentering.emit(ot),ot&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(si){return"center"==si||"left-origin-center"==si||"right-origin-center"==si}_computePositionAnimationState(si=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==si?"left":"right":this._positionIndex>0?"ltr"==si?"right":"left":"center"}_computePositionFromOrigin(si){const ot=this._getLayoutDirection();return"ltr"==ot&&si<=0||"rtl"==ot&&si>0?"left-origin-center":"right-origin-center"}static#e=this.\u0275fac=function(ot){return new(ot||Pi)(n.Y36(n.SBq),n.Y36(d.Is,8),n.Y36(n.sBO))};static#t=this.\u0275dir=n.lG2({type:Pi,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}})}return Pi})(),xe=(()=>{class Pi extends fe{constructor(si,ot,pn){super(si,ot,pn)}static#e=this.\u0275fac=function(ot){return new(ot||Pi)(n.Y36(n.SBq),n.Y36(d.Is,8),n.Y36(n.sBO))};static#t=this.\u0275cmp=n.Xpm({type:Pi,selectors:[["mat-tab-body"]],viewQuery:function(ot,pn){if(1&ot&&n.Gf(a.Pl,5),2&ot){let _i;n.iGM(_i=n.CRH())&&(pn._portalHost=_i.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[n.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(ot,pn){1&ot&&(n.TgZ(0,"div",0,1),n.NdJ("@translateTab.start",function(wi){return pn._onTranslateTabStarted(wi)})("@translateTab.done",function(wi){return pn._translateTabComplete.next(wi)}),n.YNc(2,U,0,0,"ng-template",2),n.qZA()),2&ot&&n.Q6J("@translateTab",n.WLB(3,K,pn._position,n.VKq(1,V,pn.animationDuration)))},dependencies:[De],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Te.translateTab]}})}return Pi})();const Oe=new n.OlP("MatTabContent"),Gt=new n.OlP("MatTabLabel"),Ut=new n.OlP("MAT_TAB");let An=(()=>{class Pi extends a.ig{constructor(si,ot,pn){super(si,ot),this._closestTab=pn}static#e=this.\u0275fac=function(ot){return new(ot||Pi)(n.Y36(n.Rgc),n.Y36(n.s_b),n.Y36(Ut,8))};static#t=this.\u0275dir=n.lG2({type:Pi,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[n._Bn([{provide:Gt,useExisting:Pi}]),n.qOj]})}return Pi})();const dn=new n.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Wt(){return go=>({left:go?(go.offsetLeft||0)+"px":"0",width:go?(go.offsetWidth||0)+"px":"0"})}}),sn=(0,o.Id)(class{});let fn=(()=>{class Pi extends sn{constructor(si){super(),this.elementRef=si}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static#e=this.\u0275fac=function(ot){return new(ot||Pi)(n.Y36(n.SBq))};static#t=this.\u0275dir=n.lG2({type:Pi,features:[n.qOj]})}return Pi})();const Mi=(0,o.Id)(class{}),mi=new n.OlP("MAT_TAB_GROUP");let Eo=(()=>{class Pi extends Mi{get content(){return this._contentPortal}constructor(si,ot){super(),this._viewContainerRef=si,this._closestTabGroup=ot,this.textLabel="",this._contentPortal=null,this._stateChanges=new A.x,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(si){(si.hasOwnProperty("textLabel")||si.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new a.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(si){si&&si._closestTab===this&&(this._templateLabel=si)}static#e=this.\u0275fac=function(ot){return new(ot||Pi)(n.Y36(n.s_b),n.Y36(mi,8))};static#t=this.\u0275dir=n.lG2({type:Pi,viewQuery:function(ot,pn){if(1&ot&&n.Gf(n.Rgc,7),2&ot){let _i;n.iGM(_i=n.CRH())&&(pn._implicitContent=_i.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[n.qOj,n.TTD]})}return Pi})();const xo=(0,P.i$)({passive:!0});let Ji=(()=>{class Pi{get disablePagination(){return this._disablePagination}set disablePagination(si){this._disablePagination=(0,D.Ig)(si)}get selectedIndex(){return this._selectedIndex}set selectedIndex(si){si=(0,D.su)(si),this._selectedIndex!=si&&(this._selectedIndexChanged=!0,this._selectedIndex=si,this._keyManager&&this._keyManager.updateActiveItem(si))}constructor(si,ot,pn,_i,wi,hi,zn){this._elementRef=si,this._changeDetectorRef=ot,this._viewportRuler=pn,this._dir=_i,this._ngZone=wi,this._platform=hi,this._animationMode=zn,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new A.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new A.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new n.vpe,this.indexFocused=new n.vpe,wi.runOutsideAngular(()=>{(0,_.R)(si.nativeElement,"mouseleave").pipe((0,M.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,_.R)(this._previousPaginator.nativeElement,"touchstart",xo).pipe((0,M.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,_.R)(this._nextPaginator.nativeElement,"touchstart",xo).pipe((0,M.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const si=this._dir?this._dir.change:(0,C.of)("ltr"),ot=this._viewportRuler.change(150),pn=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new u.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(pn),(0,R.T)(si,ot,this._items.changes,this._itemsResized()).pipe((0,M.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),pn()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(_i=>{this.indexFocused.emit(_i),this._setTabFocus(_i)})}_itemsResized(){return"function"!=typeof ResizeObserver?x.E:this._items.changes.pipe((0,w.O)(this._items),(0,E.w)(si=>new f.y(ot=>this._ngZone.runOutsideAngular(()=>{const pn=new ResizeObserver(_i=>ot.next(_i));return si.forEach(_i=>pn.observe(_i.elementRef.nativeElement)),()=>{pn.disconnect()}}))),(0,b.T)(1),(0,I.h)(si=>si.some(ot=>ot.contentRect.width>0&&ot.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(si){if(!(0,O.Vb)(si))switch(si.keyCode){case O.K5:case O.L_:if(this.focusIndex!==this.selectedIndex){const ot=this._items.get(this.focusIndex);ot&&!ot.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(si))}break;default:this._keyManager.onKeydown(si)}}_onContentChanges(){const si=this._elementRef.nativeElement.textContent;si!==this._currentTextContent&&(this._currentTextContent=si||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(si){!this._isValidIndex(si)||this.focusIndex===si||!this._keyManager||this._keyManager.setActiveItem(si)}_isValidIndex(si){return!this._items||!!this._items.toArray()[si]}_setTabFocus(si){if(this._showPaginationControls&&this._scrollToLabel(si),this._items&&this._items.length){this._items.toArray()[si].focus();const ot=this._tabListContainer.nativeElement;ot.scrollLeft="ltr"==this._getLayoutDirection()?0:ot.scrollWidth-ot.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const si=this.scrollDistance,ot="ltr"===this._getLayoutDirection()?-si:si;this._tabList.nativeElement.style.transform=`translateX(${Math.round(ot)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(si){this._scrollTo(si)}_scrollHeader(si){return this._scrollTo(this._scrollDistance+("before"==si?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(si){this._stopInterval(),this._scrollHeader(si)}_scrollToLabel(si){if(this.disablePagination)return;const ot=this._items?this._items.toArray()[si]:null;if(!ot)return;const pn=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:_i,offsetWidth:wi}=ot.elementRef.nativeElement;let hi,zn;"ltr"==this._getLayoutDirection()?(hi=_i,zn=hi+wi):(zn=this._tabListInner.nativeElement.offsetWidth-_i,hi=zn-wi);const Ei=this.scrollDistance,li=this.scrollDistance+pn;hi<Ei?this.scrollDistance-=Ei-hi:zn>li&&(this.scrollDistance+=Math.min(zn-li,hi-Ei))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const si=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;si||(this.scrollDistance=0),si!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=si}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const si=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,ot=si?si.elementRef.nativeElement:null;ot?this._inkBar.alignToElement(ot):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(si,ot){ot&&null!=ot.button&&0!==ot.button||(this._stopInterval(),(0,k.H)(650,100).pipe((0,M.R)((0,R.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:pn,distance:_i}=this._scrollHeader(si);(0===_i||_i>=pn)&&this._stopInterval()}))}_scrollTo(si){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const ot=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(ot,si)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:ot,distance:this._scrollDistance}}static#e=this.\u0275fac=function(ot){return new(ot||Pi)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(F.rL),n.Y36(d.Is,8),n.Y36(n.R0b),n.Y36(P.t4),n.Y36(n.QbO,8))};static#t=this.\u0275dir=n.lG2({type:Pi,inputs:{disablePagination:"disablePagination"}})}return Pi})(),En=(()=>{class Pi extends Ji{get disableRipple(){return this._disableRipple}set disableRipple(si){this._disableRipple=(0,D.Ig)(si)}constructor(si,ot,pn,_i,wi,hi,zn){super(si,ot,pn,_i,wi,hi,zn),this._disableRipple=!1}_itemSelected(si){si.preventDefault()}static#e=this.\u0275fac=function(ot){return new(ot||Pi)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(F.rL),n.Y36(d.Is,8),n.Y36(n.R0b),n.Y36(P.t4),n.Y36(n.QbO,8))};static#t=this.\u0275dir=n.lG2({type:Pi,inputs:{disableRipple:"disableRipple"},features:[n.qOj]})}return Pi})();const Ki=new n.OlP("MAT_TABS_CONFIG");let Fn=0;const oi=(0,o.pj)((0,o.Kr)(class{constructor(Pi){this._elementRef=Pi}}),"primary");let It=(()=>{class Pi extends oi{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(si){this._dynamicHeight=(0,D.Ig)(si)}get selectedIndex(){return this._selectedIndex}set selectedIndex(si){this._indexToSelect=(0,D.su)(si,null)}get animationDuration(){return this._animationDuration}set animationDuration(si){this._animationDuration=/^\d+$/.test(si+"")?si+"ms":si}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(si){this._contentTabIndex=(0,D.su)(si,null)}get disablePagination(){return this._disablePagination}set disablePagination(si){this._disablePagination=(0,D.Ig)(si)}get preserveContent(){return this._preserveContent}set preserveContent(si){this._preserveContent=(0,D.Ig)(si)}get backgroundColor(){return this._backgroundColor}set backgroundColor(si){const ot=this._elementRef.nativeElement.classList;ot.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),si&&ot.add("mat-tabs-with-background",`mat-background-${si}`),this._backgroundColor=si}constructor(si,ot,pn,_i){super(si),this._changeDetectorRef=ot,this._animationMode=_i,this._tabs=new n.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=s.w0.EMPTY,this._tabLabelSubscription=s.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new n.vpe,this.focusChange=new n.vpe,this.animationDone=new n.vpe,this.selectedTabChange=new n.vpe(!0),this._groupId=Fn++,this.animationDuration=pn&&pn.animationDuration?pn.animationDuration:"500ms",this.disablePagination=!(!pn||null==pn.disablePagination)&&pn.disablePagination,this.dynamicHeight=!(!pn||null==pn.dynamicHeight)&&pn.dynamicHeight,this.contentTabIndex=pn?.contentTabIndex??null,this.preserveContent=!!pn?.preserveContent}ngAfterContentChecked(){const si=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=si){const ot=null==this._selectedIndex;if(!ot){this.selectedTabChange.emit(this._createChangeEvent(si));const pn=this._tabBodyWrapper.nativeElement;pn.style.minHeight=pn.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((pn,_i)=>pn.isActive=_i===si),ot||(this.selectedIndexChange.emit(si),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((ot,pn)=>{ot.position=pn-si,null!=this._selectedIndex&&0==ot.position&&!ot.origin&&(ot.origin=si-this._selectedIndex)}),this._selectedIndex!==si&&(this._selectedIndex=si,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const si=this._clampTabIndex(this._indexToSelect);if(si===this._selectedIndex){const ot=this._tabs.toArray();let pn;for(let _i=0;_i<ot.length;_i++)if(ot[_i].isActive){this._indexToSelect=this._selectedIndex=_i,this._lastFocusedTabIndex=null,pn=ot[_i];break}!pn&&ot[si]&&Promise.resolve().then(()=>{ot[si].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(si))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,w.O)(this._allTabs)).subscribe(si=>{this._tabs.reset(si.filter(ot=>ot._closestTabGroup===this||!ot._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(si){const ot=this._tabHeader;ot&&(ot.focusIndex=si)}_focusChanged(si){this._lastFocusedTabIndex=si,this.focusChange.emit(this._createChangeEvent(si))}_createChangeEvent(si){const ot=new xt;return ot.index=si,this._tabs&&this._tabs.length&&(ot.tab=this._tabs.toArray()[si]),ot}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,R.T)(...this._tabs.map(si=>si._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(si){return Math.min(this._tabs.length-1,Math.max(si||0,0))}_getTabLabelId(si){return`mat-tab-label-${this._groupId}-${si}`}_getTabContentId(si){return`mat-tab-content-${this._groupId}-${si}`}_setTabBodyWrapperHeight(si){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const ot=this._tabBodyWrapper.nativeElement;ot.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(ot.style.height=si+"px")}_removeTabBodyWrapperHeight(){const si=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=si.clientHeight,si.style.height="",this.animationDone.emit()}_handleClick(si,ot,pn){ot.focusIndex=pn,si.disabled||(this.selectedIndex=pn)}_getTabIndex(si){return si===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(si,ot){si&&"mouse"!==si&&"touch"!==si&&(this._tabHeader.focusIndex=ot)}static#e=this.\u0275fac=function(ot){return new(ot||Pi)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Ki,8),n.Y36(n.QbO,8))};static#t=this.\u0275dir=n.lG2({type:Pi,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[n.qOj]})}return Pi})();class xt{}let wt=0,Mt=(()=>{class Pi extends Ji{get backgroundColor(){return this._backgroundColor}set backgroundColor(si){const ot=this._elementRef.nativeElement.classList;ot.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),si&&ot.add("mat-tabs-with-background",`mat-background-${si}`),this._backgroundColor=si}get disableRipple(){return this._disableRipple}set disableRipple(si){this._disableRipple=(0,D.Ig)(si)}constructor(si,ot,pn,_i,wi,hi,zn){super(si,_i,wi,ot,pn,hi,zn),this._disableRipple=!1,this.color="primary"}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,w.O)(null),(0,M.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const si=this._items.toArray();for(let ot=0;ot<si.length;ot++)if(si[ot].active)return this.selectedIndex=ot,this._changeDetectorRef.markForCheck(),void(this.tabPanel&&(this.tabPanel._activeTabId=si[ot].id));this.selectedIndex=-1,this._inkBar.hide()}_getRole(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}static#e=this.\u0275fac=function(ot){return new(ot||Pi)(n.Y36(n.SBq),n.Y36(d.Is,8),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(F.rL),n.Y36(P.t4),n.Y36(n.QbO,8))};static#t=this.\u0275dir=n.lG2({type:Pi,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[n.qOj]})}return Pi})();const pt=(0,o.sb)((0,o.Kr)((0,o.Id)(class{})));let Lt=(()=>{class Pi extends pt{get active(){return this._isActive}set active(si){const ot=(0,D.Ig)(si);ot!==this._isActive&&(this._isActive=ot,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}constructor(si,ot,pn,_i,wi,hi){super(),this._tabNavBar=si,this.elementRef=ot,this._focusMonitor=wi,this._isActive=!1,this.id="mat-tab-link-"+wt++,this.rippleConfig=pn||{},this.tabIndex=parseInt(_i)||0,"NoopAnimations"===hi&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(si){!this.disabled||si.keyCode!==O.L_&&si.keyCode!==O.K5?this._tabNavBar.tabPanel&&si.keyCode===O.L_&&this.elementRef.nativeElement.click():si.preventDefault()}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}static#e=this.\u0275fac=function(ot){return new(ot||Pi)(n.Y36(Mt),n.Y36(n.SBq),n.Y36(o.Y2,8),n.$8M("tabindex"),n.Y36(u.tE),n.Y36(n.QbO,8))};static#t=this.\u0275dir=n.lG2({type:Pi,inputs:{active:"active",id:"id"},features:[n.qOj]})}return Pi})(),jn=(()=>{class Pi{static#e=this.\u0275fac=function(ot){return new(ot||Pi)};static#t=this.\u0275mod=n.oAB({type:Pi});static#n=this.\u0275inj=n.cJS({imports:[e.ez,o.BQ,a.eL,o.si,l.Q8,u.rt,o.BQ]})}return Pi})()},81274:(he,y,i)=>{"use strict";i.d(y,{Ye:()=>A,g0:()=>C,rD:()=>s});var e=i(65879),n=i(23680),o=i(62831),a=i(96814);const l=["*",[["mat-toolbar-row"]]],u=["*","mat-toolbar-row"],d=(0,n.pj)(class{constructor(R){this._elementRef=R}});let s=(()=>{class R{static#e=this.\u0275fac=function(k){return new(k||R)};static#t=this.\u0275dir=e.lG2({type:R,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return R})(),A=(()=>{class R extends d{constructor(f,k,w){super(f),this._platform=k,this._document=w}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static#e=this.\u0275fac=function(k){return new(k||R)(e.Y36(e.SBq),e.Y36(o.t4),e.Y36(a.K0))};static#t=this.\u0275cmp=e.Xpm({type:R,selectors:[["mat-toolbar"]],contentQueries:function(k,w,g){if(1&k&&e.Suo(g,s,5),2&k){let M;e.iGM(M=e.CRH())&&(w._toolbarRows=M)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(k,w){2&k&&e.ekj("mat-toolbar-multiple-rows",w._toolbarRows.length>0)("mat-toolbar-single-row",0===w._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[e.qOj],ngContentSelectors:u,decls:2,vars:0,template:function(k,w){1&k&&(e.F$t(l),e.Hsn(0),e.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0})}return R})(),C=(()=>{class R{static#e=this.\u0275fac=function(k){return new(k||R)};static#t=this.\u0275mod=e.oAB({type:R});static#n=this.\u0275inj=e.cJS({imports:[n.BQ,n.BQ]})}return R})()},92596:(he,y,i)=>{"use strict";i.d(y,{AV:()=>te,Jm:()=>L,Mp:()=>b,cV:()=>p,gM:()=>J,tr:()=>Q,xT:()=>me});var e=i(59773),n=i(48180),o=i(42495),a=i(36028),l=i(65879),u=i(96814),d=i(62831),s=i(4300),A=i(49388),_=i(69594),C=i(16672),R=i(68484),x=i(78645),k=(i(86825),i(23680));const w=["tooltip"],p=new l.OlP("mat-tooltip-scroll-strategy"),b={provide:p,deps:[_.aV],useFactory:function E(j){return()=>j.scrollStrategies.reposition({scrollThrottle:20})}},L=new l.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function I(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),F="tooltip-panel",P=(0,d.i$)({passive:!0});let me=(()=>{class j{get position(){return this._position}set position(z){z!==this._position&&(this._position=z,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(z){this._positionAtOrigin=(0,o.Ig)(z),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(z){this._disabled=(0,o.Ig)(z),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(z){this._showDelay=(0,o.su)(z)}get hideDelay(){return this._hideDelay}set hideDelay(z){this._hideDelay=(0,o.su)(z),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(z){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=z?String(z).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(z){this._tooltipClass=z,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(z,q,se,ne,_e,ge,Ce,Te,De,fe,xe,Oe){this._overlay=z,this._elementRef=q,this._scrollDispatcher=se,this._viewContainerRef=ne,this._ngZone=_e,this._platform=ge,this._ariaDescriber=Ce,this._focusMonitor=Te,this._dir=fe,this._defaultOptions=xe,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new x.x,this._scrollStrategy=De,this._document=Oe,xe&&(this._showDelay=xe.showDelay,this._hideDelay=xe.hideDelay,xe.position&&(this.position=xe.position),xe.positionAtOrigin&&(this.positionAtOrigin=xe.positionAtOrigin),xe.touchGestures&&(this.touchGestures=xe.touchGestures)),fe.change.pipe((0,e.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,e.R)(this._destroyed)).subscribe(z=>{z?"keyboard"===z&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const z=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([q,se])=>{z.removeEventListener(q,se,P)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(z,this.message,"tooltip"),this._focusMonitor.stopMonitoring(z)}show(z=this.showDelay,q){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const se=this._createOverlay(q);this._detach(),this._portal=this._portal||new R.C5(this._tooltipComponent,this._viewContainerRef);const ne=this._tooltipInstance=se.attach(this._portal).instance;ne._triggerElement=this._elementRef.nativeElement,ne._mouseLeaveHideDelay=this._hideDelay,ne.afterHidden().pipe((0,e.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),ne.show(z)}hide(z=this.hideDelay){const q=this._tooltipInstance;q&&(q.isVisible()?q.hide(z):(q._cancelPendingAnimations(),this._detach()))}toggle(z){this._isTooltipVisible()?this.hide():this.show(void 0,z)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(z){if(this._overlayRef){const ne=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!z)&&ne._origin instanceof l.SBq)return this._overlayRef;this._detach()}const q=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),se=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&z||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(q);return se.positionChanges.pipe((0,e.R)(this._destroyed)).subscribe(ne=>{this._updateCurrentPositionClass(ne.connectionPair),this._tooltipInstance&&ne.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:se,panelClass:`${this._cssClassPrefix}-${F}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,e.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,e.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,e.R)(this._destroyed)).subscribe(ne=>{this._isTooltipVisible()&&ne.keyCode===a.hY&&!(0,a.Vb)(ne)&&(ne.preventDefault(),ne.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(z){const q=z.getConfig().positionStrategy,se=this._getOrigin(),ne=this._getOverlayPosition();q.withPositions([this._addOffset({...se.main,...ne.main}),this._addOffset({...se.fallback,...ne.fallback})])}_addOffset(z){return z}_getOrigin(){const z=!this._dir||"ltr"==this._dir.value,q=this.position;let se;"above"==q||"below"==q?se={originX:"center",originY:"above"==q?"top":"bottom"}:"before"==q||"left"==q&&z||"right"==q&&!z?se={originX:"start",originY:"center"}:("after"==q||"right"==q&&z||"left"==q&&!z)&&(se={originX:"end",originY:"center"});const{x:ne,y:_e}=this._invertPosition(se.originX,se.originY);return{main:se,fallback:{originX:ne,originY:_e}}}_getOverlayPosition(){const z=!this._dir||"ltr"==this._dir.value,q=this.position;let se;"above"==q?se={overlayX:"center",overlayY:"bottom"}:"below"==q?se={overlayX:"center",overlayY:"top"}:"before"==q||"left"==q&&z||"right"==q&&!z?se={overlayX:"end",overlayY:"center"}:("after"==q||"right"==q&&z||"left"==q&&!z)&&(se={overlayX:"start",overlayY:"center"});const{x:ne,y:_e}=this._invertPosition(se.overlayX,se.overlayY);return{main:se,fallback:{overlayX:ne,overlayY:_e}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,n.q)(1),(0,e.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(z){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=z,this._tooltipInstance._markForCheck())}_invertPosition(z,q){return"above"===this.position||"below"===this.position?"top"===q?q="bottom":"bottom"===q&&(q="top"):"end"===z?z="start":"start"===z&&(z="end"),{x:z,y:q}}_updateCurrentPositionClass(z){const{overlayY:q,originX:se,originY:ne}=z;let _e;if(_e="center"===q?this._dir&&"rtl"===this._dir.value?"end"===se?"left":"right":"start"===se?"left":"right":"bottom"===q&&"top"===ne?"above":"below",_e!==this._currentPosition){const ge=this._overlayRef;if(ge){const Ce=`${this._cssClassPrefix}-${F}-`;ge.removePanelClass(Ce+this._currentPosition),ge.addPanelClass(Ce+_e)}this._currentPosition=_e}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",z=>{let q;this._setupPointerExitEventsIfNeeded(),void 0!==z.x&&void 0!==z.y&&(q=z),this.show(void 0,q)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",z=>{const q=z.targetTouches?.[0],se=q?{x:q.clientX,y:q.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,se),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const z=[];if(this._platformSupportsMouseEvents())z.push(["mouseleave",q=>{const se=q.relatedTarget;(!se||!this._overlayRef?.overlayElement.contains(se))&&this.hide()}],["wheel",q=>this._wheelListener(q)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const q=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};z.push(["touchend",q],["touchcancel",q])}this._addListeners(z),this._passiveListeners.push(...z)}_addListeners(z){z.forEach(([q,se])=>{this._elementRef.nativeElement.addEventListener(q,se,P)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(z){if(this._isTooltipVisible()){const q=this._document.elementFromPoint(z.clientX,z.clientY),se=this._elementRef.nativeElement;q!==se&&!se.contains(q)&&this.hide()}}_disableNativeGesturesIfNecessary(){const z=this.touchGestures;if("off"!==z){const q=this._elementRef.nativeElement,se=q.style;("on"===z||"INPUT"!==q.nodeName&&"TEXTAREA"!==q.nodeName)&&(se.userSelect=se.msUserSelect=se.webkitUserSelect=se.MozUserSelect="none"),("on"===z||!q.draggable)&&(se.webkitUserDrag="none"),se.touchAction="none",se.webkitTapHighlightColor="transparent"}}static#e=this.\u0275fac=function(q){l.$Z()};static#t=this.\u0275dir=l.lG2({type:j,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}})}return j})(),J=(()=>{class j extends me{constructor(z,q,se,ne,_e,ge,Ce,Te,De,fe,xe,Oe){super(z,q,se,ne,_e,ge,Ce,Te,De,fe,xe,Oe),this._tooltipComponent=re,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(z){const se=!this._dir||"ltr"==this._dir.value;return"top"===z.originY?z.offsetY=-8:"bottom"===z.originY?z.offsetY=8:"start"===z.originX?z.offsetX=se?-8:8:"end"===z.originX&&(z.offsetX=se?8:-8),z}static#e=this.\u0275fac=function(q){return new(q||j)(l.Y36(_.aV),l.Y36(l.SBq),l.Y36(C.mF),l.Y36(l.s_b),l.Y36(l.R0b),l.Y36(d.t4),l.Y36(s.$s),l.Y36(s.tE),l.Y36(p),l.Y36(A.Is,8),l.Y36(L,8),l.Y36(u.K0))};static#t=this.\u0275dir=l.lG2({type:j,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(q,se){2&q&&l.ekj("mat-mdc-tooltip-disabled",se.disabled)},exportAs:["matTooltip"],features:[l.qOj]})}return j})(),Q=(()=>{class j{constructor(z,q){this._changeDetectorRef=z,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new x.x,this._animationsDisabled="NoopAnimations"===q}show(z){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},z)}hide(z){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},z)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:z}){(!z||!this._triggerElement.contains(z))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:z}){(z===this._showAnimation||z===this._hideAnimation)&&this._finalizeAnimation(z===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(z){z?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(z){const q=this._tooltip.nativeElement,se=this._showAnimation,ne=this._hideAnimation;if(q.classList.remove(z?ne:se),q.classList.add(z?se:ne),this._isVisible=z,z&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const _e=getComputedStyle(q);("0s"===_e.getPropertyValue("animation-duration")||"none"===_e.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}z&&this._onShow(),this._animationsDisabled&&(q.classList.add("_mat-animation-noopable"),this._finalizeAnimation(z))}static#e=this.\u0275fac=function(q){return new(q||j)(l.Y36(l.sBO),l.Y36(l.QbO,8))};static#t=this.\u0275dir=l.lG2({type:j})}return j})(),re=(()=>{class j extends Q{constructor(z,q,se){super(z,se),this._elementRef=q,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const z=this._elementRef.nativeElement.getBoundingClientRect();return z.height>24&&z.width>=200}static#e=this.\u0275fac=function(q){return new(q||j)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.QbO,8))};static#t=this.\u0275cmp=l.Xpm({type:j,selectors:[["mat-tooltip-component"]],viewQuery:function(q,se){if(1&q&&l.Gf(w,7),2&q){let ne;l.iGM(ne=l.CRH())&&(se._tooltip=ne.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(q,se){1&q&&l.NdJ("mouseleave",function(_e){return se._handleMouseLeave(_e)}),2&q&&l.Udp("zoom",se.isVisible()?1:null)},features:[l.qOj],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(q,se){1&q&&(l.TgZ(0,"div",0,1),l.NdJ("animationend",function(_e){return se._handleAnimationEnd(_e)}),l.TgZ(2,"div",2),l._uU(3),l.qZA()()),2&q&&(l.ekj("mdc-tooltip--multiline",se._isMultiline),l.Q6J("ngClass",se.tooltipClass),l.xp6(3),l.Oqu(se.message))},dependencies:[u.mk],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip{--mdc-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return j})(),te=(()=>{class j{static#e=this.\u0275fac=function(q){return new(q||j)};static#t=this.\u0275mod=l.oAB({type:j});static#n=this.\u0275inj=l.cJS({providers:[b],imports:[s.rt,u.ez,_.U8,k.BQ,k.BQ,C.ZD]})}return j})()},98445:(he,y,i)=>{"use strict";i.d(y,{dp:()=>f});var e=i(41894),n=i(65879),o=i(23680);i(42495);let f=(()=>{class M{static#e=this.\u0275fac=function(b){return new(b||M)};static#t=this.\u0275mod=n.oAB({type:M});static#n=this.\u0275inj=n.cJS({imports:[e.nZ,o.BQ,o.BQ]})}return M})()},6593:(he,y,i)=>{"use strict";i.d(y,{Dx:()=>$n,H7:()=>Ji,b2:()=>Oe,h_:()=>Gt,ki:()=>Mt,q6:()=>Te,se:()=>P,vm:()=>Ko});var e=i(65879),n=i(96814);
/**
         * @license Angular v16.1.6
         * (c) 2010-2022 Google LLC. https://angular.io/
         * License: MIT
         */class o extends n.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class a extends o{static makeCurrent(){(0,n.HT)(new a)}onAndCancel(Lt,tt,Ne){return Lt.addEventListener(tt,Ne),()=>{Lt.removeEventListener(tt,Ne)}}dispatchEvent(Lt,tt){Lt.dispatchEvent(tt)}remove(Lt){Lt.parentNode&&Lt.parentNode.removeChild(Lt)}createElement(Lt,tt){return(tt=tt||this.getDefaultDocument()).createElement(Lt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Lt){return Lt.nodeType===Node.ELEMENT_NODE}isShadowRoot(Lt){return Lt instanceof DocumentFragment}getGlobalEventTarget(Lt,tt){return"window"===tt?window:"document"===tt?Lt:"body"===tt?Lt.body:null}getBaseHref(Lt){const tt=function u(){return l=l||document.querySelector("base"),l?l.getAttribute("href"):null}();return null==tt?null:function s(pt){d=d||document.createElement("a"),d.setAttribute("href",pt);const Lt=d.pathname;return"/"===Lt.charAt(0)?Lt:`/${Lt}`}(tt)}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}getCookie(Lt){return(0,n.Mx)(document.cookie,Lt)}}let d,l=null,_=(()=>{class pt{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(Ne){return new(Ne||pt)};static#t=this.\u0275prov=e.Yz7({token:pt,factory:pt.\u0275fac})}return pt})();const C=new e.OlP("EventManagerPlugins");let R=(()=>{class pt{constructor(tt,Ne){this._zone=Ne,this._eventNameToPlugin=new Map,tt.forEach(vt=>{vt.manager=this}),this._plugins=tt.slice().reverse()}addEventListener(tt,Ne,vt){return this._findPluginFor(Ne).addEventListener(tt,Ne,vt)}getZone(){return this._zone}_findPluginFor(tt){let Ne=this._eventNameToPlugin.get(tt);if(Ne)return Ne;if(Ne=this._plugins.find(ln=>ln.supports(tt)),!Ne)throw new e.vHH(5101,!1);return this._eventNameToPlugin.set(tt,Ne),Ne}static#e=this.\u0275fac=function(Ne){return new(Ne||pt)(e.LFG(C),e.LFG(e.R0b))};static#t=this.\u0275prov=e.Yz7({token:pt,factory:pt.\u0275fac})}return pt})();class x{constructor(Lt){this._doc=Lt}}const f="ng-app-id";let k=(()=>{class pt{constructor(tt,Ne,vt,ln={}){this.doc=tt,this.appId=Ne,this.nonce=vt,this.platformId=ln,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,n.PM)(ln),this.resetHostNodes()}addStyles(tt){for(const Ne of tt)1===this.changeUsageCount(Ne,1)&&this.onStyleAdded(Ne)}removeStyles(tt){for(const Ne of tt)this.changeUsageCount(Ne,-1)<=0&&this.onStyleRemoved(Ne)}ngOnDestroy(){const tt=this.styleNodesInDOM;tt&&(tt.forEach(Ne=>Ne.remove()),tt.clear());for(const Ne of this.getAllStyles())this.onStyleRemoved(Ne);this.resetHostNodes()}addHost(tt){this.hostNodes.add(tt);for(const Ne of this.getAllStyles())this.addStyleToHost(tt,Ne)}removeHost(tt){this.hostNodes.delete(tt)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(tt){for(const Ne of this.hostNodes)this.addStyleToHost(Ne,tt)}onStyleRemoved(tt){const Ne=this.styleRef;Ne.get(tt)?.elements?.forEach(vt=>vt.remove()),Ne.delete(tt)}collectServerRenderedStyles(){const tt=this.doc.head?.querySelectorAll(`style[${f}="${this.appId}"]`);if(tt?.length){const Ne=new Map;return tt.forEach(vt=>{null!=vt.textContent&&Ne.set(vt.textContent,vt)}),Ne}return null}changeUsageCount(tt,Ne){const vt=this.styleRef;if(vt.has(tt)){const ln=vt.get(tt);return ln.usage+=Ne,ln.usage}return vt.set(tt,{usage:Ne,elements:[]}),Ne}getStyleElement(tt,Ne){const vt=this.styleNodesInDOM,ln=vt?.get(Ne);if(ln?.parentNode===tt)return vt.delete(Ne),ln.removeAttribute(f),ln;{const jn=this.doc.createElement("style");return this.nonce&&jn.setAttribute("nonce",this.nonce),jn.textContent=Ne,this.platformIsServer&&jn.setAttribute(f,this.appId),jn}}addStyleToHost(tt,Ne){const vt=this.getStyleElement(tt,Ne);tt.appendChild(vt);const ln=this.styleRef,jn=ln.get(Ne)?.elements;jn?jn.push(vt):ln.set(Ne,{elements:[vt],usage:1})}resetHostNodes(){const tt=this.hostNodes;tt.clear(),tt.add(this.doc.head)}static#e=this.\u0275fac=function(Ne){return new(Ne||pt)(e.LFG(n.K0),e.LFG(e.AFp),e.LFG(e.Ojb,8),e.LFG(e.Lbi))};static#t=this.\u0275prov=e.Yz7({token:pt,factory:pt.\u0275fac})}return pt})();const w={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/",math:"http://www.w3.org/1998/MathML/"},g=/%COMP%/g,M="%COMP%",p=`_nghost-${M}`,E=`_ngcontent-${M}`,I=new e.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function F(pt,Lt){return Lt.map(tt=>tt.replace(g,pt))}let P=(()=>{class pt{constructor(tt,Ne,vt,ln,jn,Pi,go,si=null){this.eventManager=tt,this.sharedStylesHost=Ne,this.appId=vt,this.removeStylesOnCompDestroy=ln,this.doc=jn,this.platformId=Pi,this.ngZone=go,this.nonce=si,this.rendererByCompId=new Map,this.platformIsServer=(0,n.PM)(Pi),this.defaultRenderer=new O(tt,jn,go,this.platformIsServer)}createRenderer(tt,Ne){if(!tt||!Ne)return this.defaultRenderer;this.platformIsServer&&Ne.encapsulation===e.ifc.ShadowDom&&(Ne={...Ne,encapsulation:e.ifc.Emulated});const vt=this.getOrCreateRenderer(tt,Ne);return vt instanceof J?vt.applyToHost(tt):vt instanceof me&&vt.applyStyles(),vt}getOrCreateRenderer(tt,Ne){const vt=this.rendererByCompId;let ln=vt.get(Ne.id);if(!ln){const jn=this.doc,Pi=this.ngZone,go=this.eventManager,si=this.sharedStylesHost,ot=this.removeStylesOnCompDestroy,pn=this.platformIsServer;switch(Ne.encapsulation){case e.ifc.Emulated:ln=new J(go,si,Ne,this.appId,ot,jn,Pi,pn);break;case e.ifc.ShadowDom:return new X(go,si,tt,Ne,jn,Pi,this.nonce,pn);default:ln=new me(go,si,Ne,ot,jn,Pi,pn)}vt.set(Ne.id,ln)}return ln}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(Ne){return new(Ne||pt)(e.LFG(R),e.LFG(k),e.LFG(e.AFp),e.LFG(I),e.LFG(n.K0),e.LFG(e.Lbi),e.LFG(e.R0b),e.LFG(e.Ojb))};static#t=this.\u0275prov=e.Yz7({token:pt,factory:pt.\u0275fac})}return pt})();class O{constructor(Lt,tt,Ne,vt){this.eventManager=Lt,this.doc=tt,this.ngZone=Ne,this.platformIsServer=vt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Lt,tt){return tt?this.doc.createElementNS(w[tt]||tt,Lt):this.doc.createElement(Lt)}createComment(Lt){return this.doc.createComment(Lt)}createText(Lt){return this.doc.createTextNode(Lt)}appendChild(Lt,tt){(K(Lt)?Lt.content:Lt).appendChild(tt)}insertBefore(Lt,tt,Ne){Lt&&(K(Lt)?Lt.content:Lt).insertBefore(tt,Ne)}removeChild(Lt,tt){Lt&&Lt.removeChild(tt)}selectRootElement(Lt,tt){let Ne="string"==typeof Lt?this.doc.querySelector(Lt):Lt;if(!Ne)throw new e.vHH(-5104,!1);return tt||(Ne.textContent=""),Ne}parentNode(Lt){return Lt.parentNode}nextSibling(Lt){return Lt.nextSibling}setAttribute(Lt,tt,Ne,vt){if(vt){tt=vt+":"+tt;const ln=w[vt];ln?Lt.setAttributeNS(ln,tt,Ne):Lt.setAttribute(tt,Ne)}else Lt.setAttribute(tt,Ne)}removeAttribute(Lt,tt,Ne){if(Ne){const vt=w[Ne];vt?Lt.removeAttributeNS(vt,tt):Lt.removeAttribute(`${Ne}:${tt}`)}else Lt.removeAttribute(tt)}addClass(Lt,tt){Lt.classList.add(tt)}removeClass(Lt,tt){Lt.classList.remove(tt)}setStyle(Lt,tt,Ne,vt){vt&(e.JOm.DashCase|e.JOm.Important)?Lt.style.setProperty(tt,Ne,vt&e.JOm.Important?"important":""):Lt.style[tt]=Ne}removeStyle(Lt,tt,Ne){Ne&e.JOm.DashCase?Lt.style.removeProperty(tt):Lt.style[tt]=""}setProperty(Lt,tt,Ne){Lt[tt]=Ne}setValue(Lt,tt){Lt.nodeValue=tt}listen(Lt,tt,Ne){if("string"==typeof Lt&&!(Lt=(0,n.q)().getGlobalEventTarget(this.doc,Lt)))throw new Error(`Unsupported event target ${Lt} for event ${tt}`);return this.eventManager.addEventListener(Lt,tt,this.decoratePreventDefault(Ne))}decoratePreventDefault(Lt){return tt=>{if("__ngUnwrap__"===tt)return Lt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Lt(tt)):Lt(tt))&&tt.preventDefault()}}}function K(pt){return"TEMPLATE"===pt.tagName&&void 0!==pt.content}class X extends O{constructor(Lt,tt,Ne,vt,ln,jn,Pi,go){super(Lt,ln,jn,go),this.sharedStylesHost=tt,this.hostEl=Ne,this.shadowRoot=Ne.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const si=F(vt.id,vt.styles);for(const ot of si){const pn=document.createElement("style");Pi&&pn.setAttribute("nonce",Pi),pn.textContent=ot,this.shadowRoot.appendChild(pn)}}nodeOrShadowRoot(Lt){return Lt===this.hostEl?this.shadowRoot:Lt}appendChild(Lt,tt){return super.appendChild(this.nodeOrShadowRoot(Lt),tt)}insertBefore(Lt,tt,Ne){return super.insertBefore(this.nodeOrShadowRoot(Lt),tt,Ne)}removeChild(Lt,tt){return super.removeChild(this.nodeOrShadowRoot(Lt),tt)}parentNode(Lt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Lt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class me extends O{constructor(Lt,tt,Ne,vt,ln,jn,Pi,go){super(Lt,ln,jn,Pi),this.sharedStylesHost=tt,this.removeStylesOnCompDestroy=vt,this.styles=go?F(go,Ne.styles):Ne.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class J extends me{constructor(Lt,tt,Ne,vt,ln,jn,Pi,go){const si=vt+"-"+Ne.id;super(Lt,tt,Ne,ln,jn,Pi,go,si),this.contentAttr=function L(pt){return E.replace(g,pt)}(si),this.hostAttr=function D(pt){return p.replace(g,pt)}(si)}applyToHost(Lt){this.applyStyles(),this.setAttribute(Lt,this.hostAttr,"")}createElement(Lt,tt){const Ne=super.createElement(Lt,tt);return super.setAttribute(Ne,this.contentAttr,""),Ne}}let Q=(()=>{class pt extends x{constructor(tt){super(tt)}supports(tt){return!0}addEventListener(tt,Ne,vt){return tt.addEventListener(Ne,vt,!1),()=>this.removeEventListener(tt,Ne,vt)}removeEventListener(tt,Ne,vt){return tt.removeEventListener(Ne,vt)}static#e=this.\u0275fac=function(Ne){return new(Ne||pt)(e.LFG(n.K0))};static#t=this.\u0275prov=e.Yz7({token:pt,factory:pt.\u0275fac})}return pt})();const re=["alt","control","meta","shift"],de={"\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"},te={alt:pt=>pt.altKey,control:pt=>pt.ctrlKey,meta:pt=>pt.metaKey,shift:pt=>pt.shiftKey};let j=(()=>{class pt extends x{constructor(tt){super(tt)}supports(tt){return null!=pt.parseEventName(tt)}addEventListener(tt,Ne,vt){const ln=pt.parseEventName(Ne),jn=pt.eventCallback(ln.fullKey,vt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.q)().onAndCancel(tt,ln.domEventName,jn))}static parseEventName(tt){const Ne=tt.toLowerCase().split("."),vt=Ne.shift();if(0===Ne.length||"keydown"!==vt&&"keyup"!==vt)return null;const ln=pt._normalizeKey(Ne.pop());let jn="",Pi=Ne.indexOf("code");if(Pi>-1&&(Ne.splice(Pi,1),jn="code."),re.forEach(si=>{const ot=Ne.indexOf(si);ot>-1&&(Ne.splice(ot,1),jn+=si+".")}),jn+=ln,0!=Ne.length||0===ln.length)return null;const go={};return go.domEventName=vt,go.fullKey=jn,go}static matchEventFullKeyCode(tt,Ne){let vt=de[tt.key]||tt.key,ln="";return Ne.indexOf("code.")>-1&&(vt=tt.code,ln="code."),!(null==vt||!vt)&&(vt=vt.toLowerCase()," "===vt?vt="space":"."===vt&&(vt="dot"),re.forEach(jn=>{jn!==vt&&(0,te[jn])(tt)&&(ln+=jn+".")}),ln+=vt,ln===Ne)}static eventCallback(tt,Ne,vt){return ln=>{pt.matchEventFullKeyCode(ln,tt)&&vt.runGuarded(()=>Ne(ln))}}static _normalizeKey(tt){return"esc"===tt?"escape":tt}static#e=this.\u0275fac=function(Ne){return new(Ne||pt)(e.LFG(n.K0))};static#t=this.\u0275prov=e.Yz7({token:pt,factory:pt.\u0275fac})}return pt})();const Te=(0,e.eFA)(e._c5,"browser",[{provide:e.Lbi,useValue:n.bD},{provide:e.g9A,useValue:function ne(){a.makeCurrent()},multi:!0},{provide:n.K0,useFactory:function ge(){return(0,e.RDi)(document),document},deps:[]}]),De=new e.OlP(""),fe=[{provide:e.rWj,useClass:class A{addToWindow(Lt){e.dqk.getAngularTestability=(Ne,vt=!0)=>{const ln=Lt.findTestabilityInTree(Ne,vt);if(null==ln)throw new e.vHH(5103,!1);return ln},e.dqk.getAllAngularTestabilities=()=>Lt.getAllTestabilities(),e.dqk.getAllAngularRootElements=()=>Lt.getAllRootElements(),e.dqk.frameworkStabilizers||(e.dqk.frameworkStabilizers=[]),e.dqk.frameworkStabilizers.push(Ne=>{const vt=e.dqk.getAllAngularTestabilities();let ln=vt.length,jn=!1;const Pi=function(go){jn=jn||go,ln--,0==ln&&Ne(jn)};vt.forEach(go=>{go.whenStable(Pi)})})}findTestabilityInTree(Lt,tt,Ne){return null==tt?null:Lt.getTestability(tt)??(Ne?(0,n.q)().isShadowRoot(tt)?this.findTestabilityInTree(Lt,tt.host,!0):this.findTestabilityInTree(Lt,tt.parentElement,!0):null)}},deps:[]},{provide:e.lri,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]},{provide:e.dDg,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]}],xe=[{provide:e.zSh,useValue:"root"},{provide:e.qLn,useFactory:function _e(){return new e.qLn},deps:[]},{provide:C,useClass:Q,multi:!0,deps:[n.K0,e.R0b,e.Lbi]},{provide:C,useClass:j,multi:!0,deps:[n.K0]},P,k,R,{provide:e.FYo,useExisting:P},{provide:n.JF,useClass:_,deps:[]},[]];let Oe=(()=>{class pt{constructor(tt){}static withServerTransition(tt){return{ngModule:pt,providers:[{provide:e.AFp,useValue:tt.appId}]}}static#e=this.\u0275fac=function(Ne){return new(Ne||pt)(e.LFG(De,12))};static#t=this.\u0275mod=e.oAB({type:pt});static#n=this.\u0275inj=e.cJS({providers:[...xe,...fe],imports:[n.ez,e.hGG]})}return pt})(),Gt=(()=>{class pt{constructor(tt){this._doc=tt,this._dom=(0,n.q)()}addTag(tt,Ne=!1){return tt?this._getOrCreateElement(tt,Ne):null}addTags(tt,Ne=!1){return tt?tt.reduce((vt,ln)=>(ln&&vt.push(this._getOrCreateElement(ln,Ne)),vt),[]):[]}getTag(tt){return tt&&this._doc.querySelector(`meta[${tt}]`)||null}getTags(tt){if(!tt)return[];const Ne=this._doc.querySelectorAll(`meta[${tt}]`);return Ne?[].slice.call(Ne):[]}updateTag(tt,Ne){if(!tt)return null;Ne=Ne||this._parseSelector(tt);const vt=this.getTag(Ne);return vt?this._setMetaElementAttributes(tt,vt):this._getOrCreateElement(tt,!0)}removeTag(tt){this.removeTagElement(this.getTag(tt))}removeTagElement(tt){tt&&this._dom.remove(tt)}_getOrCreateElement(tt,Ne=!1){if(!Ne){const jn=this._parseSelector(tt),Pi=this.getTags(jn).filter(go=>this._containsAttributes(tt,go))[0];if(void 0!==Pi)return Pi}const vt=this._dom.createElement("meta");return this._setMetaElementAttributes(tt,vt),this._doc.getElementsByTagName("head")[0].appendChild(vt),vt}_setMetaElementAttributes(tt,Ne){return Object.keys(tt).forEach(vt=>Ne.setAttribute(this._getMetaKeyMap(vt),tt[vt])),Ne}_parseSelector(tt){const Ne=tt.name?"name":"property";return`${Ne}="${tt[Ne]}"`}_containsAttributes(tt,Ne){return Object.keys(tt).every(vt=>Ne.getAttribute(this._getMetaKeyMap(vt))===tt[vt])}_getMetaKeyMap(tt){return Ut[tt]||tt}static#e=this.\u0275fac=function(Ne){return new(Ne||pt)(e.LFG(n.K0))};static#t=this.\u0275prov=e.Yz7({token:pt,factory:function(Ne){let vt=null;return vt=Ne?new Ne:function Le(){return new Gt((0,e.LFG)(n.K0))}(),vt},providedIn:"root"})}return pt})();const Ut={httpEquiv:"http-equiv"};let $n=(()=>{class pt{constructor(tt){this._doc=tt}getTitle(){return this._doc.title}setTitle(tt){this._doc.title=tt||""}static#e=this.\u0275fac=function(Ne){return new(Ne||pt)(e.LFG(n.K0))};static#t=this.\u0275prov=e.Yz7({token:pt,factory:function(Ne){let vt=null;return vt=Ne?new Ne:function An(){return new $n((0,e.LFG)(n.K0))}(),vt},providedIn:"root"})}return pt})();typeof window<"u"&&window;const Ko=new e.OlP("HammerLoader");let Ji=(()=>{class pt{static#e=this.\u0275fac=function(Ne){return new(Ne||pt)};static#t=this.\u0275prov=e.Yz7({token:pt,factory:function(Ne){let vt=null;return vt=Ne?new(Ne||pt):e.LFG(un),vt},providedIn:"root"})}return pt})(),un=(()=>{class pt extends Ji{constructor(tt){super(),this._doc=tt}sanitize(tt,Ne){if(null==Ne)return null;switch(tt){case e.q3G.NONE:return Ne;case e.q3G.HTML:return(0,e.qzn)(Ne,"HTML")?(0,e.z3N)(Ne):(0,e.EiD)(this._doc,String(Ne)).toString();case e.q3G.STYLE:return(0,e.qzn)(Ne,"Style")?(0,e.z3N)(Ne):Ne;case e.q3G.SCRIPT:if((0,e.qzn)(Ne,"Script"))return(0,e.z3N)(Ne);throw new e.vHH(5200,!1);case e.q3G.URL:return(0,e.qzn)(Ne,"URL")?(0,e.z3N)(Ne):(0,e.mCW)(String(Ne));case e.q3G.RESOURCE_URL:if((0,e.qzn)(Ne,"ResourceURL"))return(0,e.z3N)(Ne);throw new e.vHH(5201,!1);default:throw new e.vHH(5202,!1)}}bypassSecurityTrustHtml(tt){return(0,e.JVY)(tt)}bypassSecurityTrustStyle(tt){return(0,e.L6k)(tt)}bypassSecurityTrustScript(tt){return(0,e.eBb)(tt)}bypassSecurityTrustUrl(tt){return(0,e.LAX)(tt)}bypassSecurityTrustResourceUrl(tt){return(0,e.pB0)(tt)}static#e=this.\u0275fac=function(Ne){return new(Ne||pt)(e.LFG(n.K0))};static#t=this.\u0275prov=e.Yz7({token:pt,factory:function(Ne){let vt=null;return vt=Ne?new Ne:function En(pt){return new un(pt.get(n.K0))}(e.LFG(e.zs3)),vt},providedIn:"root"})}return pt})();const Mt=e.kie},64190:(he,y,i)=>{"use strict";i.d(y,{gz:()=>mo,gk:()=>as,m2:()=>Nr,Q3:()=>Fo,OD:()=>xr,Av:()=>wr,F0:()=>Wi,rH:()=>cr,Od:()=>Fr,Bz:()=>Dr,lC:()=>Zn,R9:()=>rt});var e=i(65879),n=i(2664),o=i(72664),a=i(22096),l=i(65619),u=i(52572),d=i(46973),s=i(35211),A=i(74911),_=i(88407),C=i(58504),R=i(36232),x=i(93168),f=i(78645),k=i(96814),w=i(37398),g=i(94664),M=i(48180),p=i(27921),E=i(32181),b=i(21631),I=i(81374),L=i(76328),D=i(99397),F=i(26306),P=i(16699),O=i(43572),U=i(79360),V=i(8251);function K(We){return We<=0?()=>R.E:(0,U.e)((Ft,ct)=>{let Qt=[];Ft.subscribe((0,V.x)(ct,gi=>{Qt.push(gi),We<Qt.length&&Qt.shift()},()=>{for(const gi of Qt)ct.next(gi);ct.complete()},void 0,()=>{Qt=null}))})}var X=i(3026),me=i(42737),Q=i(21441),re=i(64716),de=i(66196),te=i(57537),j=i(6593);
/**
         * @license Angular v16.1.6
         * (c) 2010-2022 Google LLC. https://angular.io/
         * License: MIT
         */
const H="primary",z=Symbol("RouteTitle");class q{constructor(Ft){this.params=Ft||{}}has(Ft){return Object.prototype.hasOwnProperty.call(this.params,Ft)}get(Ft){if(this.has(Ft)){const ct=this.params[Ft];return Array.isArray(ct)?ct[0]:ct}return null}getAll(Ft){if(this.has(Ft)){const ct=this.params[Ft];return Array.isArray(ct)?ct:[ct]}return[]}get keys(){return Object.keys(this.params)}}function se(We){return new q(We)}function ne(We,Ft,ct){const Qt=ct.path.split("/");if(Qt.length>We.length||"full"===ct.pathMatch&&(Ft.hasChildren()||Qt.length<We.length))return null;const gi={};for(let Do=0;Do<Qt.length;Do++){const Po=Qt[Do],Or=We[Do];if(Po.startsWith(":"))gi[Po.substring(1)]=Or;else if(Po!==Or.path)return null}return{consumed:We.slice(0,Qt.length),posParams:gi}}function ge(We,Ft){const ct=We?Object.keys(We):void 0,Qt=Ft?Object.keys(Ft):void 0;if(!ct||!Qt||ct.length!=Qt.length)return!1;let gi;for(let Do=0;Do<ct.length;Do++)if(gi=ct[Do],!Ce(We[gi],Ft[gi]))return!1;return!0}function Ce(We,Ft){if(Array.isArray(We)&&Array.isArray(Ft)){if(We.length!==Ft.length)return!1;const ct=[...We].sort(),Qt=[...Ft].sort();return ct.every((gi,Do)=>Qt[Do]===gi)}return We===Ft}function Te(We){return We.length>0?We[We.length-1]:null}function De(We){return(0,n.b)(We)?We:(0,e.QGY)(We)?(0,o.D)(Promise.resolve(We)):(0,a.of)(We)}const fe={exact:function Gt(We,Ft,ct){if(!sn(We.segments,Ft.segments)||!xn(We.segments,Ft.segments,ct)||We.numberOfChildren!==Ft.numberOfChildren)return!1;for(const Qt in Ft.children)if(!We.children[Qt]||!Gt(We.children[Qt],Ft.children[Qt],ct))return!1;return!0},subset:An},xe={exact:function Le(We,Ft){return ge(We,Ft)},subset:function Ut(We,Ft){return Object.keys(Ft).length<=Object.keys(We).length&&Object.keys(Ft).every(ct=>Ce(We[ct],Ft[ct]))},ignored:()=>!0};function Oe(We,Ft,ct){return fe[ct.paths](We.root,Ft.root,ct.matrixParams)&&xe[ct.queryParams](We.queryParams,Ft.queryParams)&&!("exact"===ct.fragment&&We.fragment!==Ft.fragment)}function An(We,Ft,ct){return $n(We,Ft,Ft.segments,ct)}function $n(We,Ft,ct,Qt){if(We.segments.length>ct.length){const gi=We.segments.slice(0,ct.length);return!(!sn(gi,ct)||Ft.hasChildren()||!xn(gi,ct,Qt))}if(We.segments.length===ct.length){if(!sn(We.segments,ct)||!xn(We.segments,ct,Qt))return!1;for(const gi in Ft.children)if(!We.children[gi]||!An(We.children[gi],Ft.children[gi],Qt))return!1;return!0}{const gi=ct.slice(0,We.segments.length),Do=ct.slice(We.segments.length);return!!(sn(We.segments,gi)&&xn(We.segments,gi,Qt)&&We.children[H])&&$n(We.children[H],Ft,Do,Qt)}}function xn(We,Ft,ct){return Ft.every((Qt,gi)=>xe[ct](We[gi].parameters,Qt.parameters))}class mt{constructor(Ft=new ut([],{}),ct={},Qt=null){this.root=Ft,this.queryParams=ct,this.fragment=Qt}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=se(this.queryParams)),this._queryParamMap}toString(){return Mi.serialize(this)}}class ut{constructor(Ft,ct){this.segments=Ft,this.children=ct,this.parent=null,Object.values(ct).forEach(Qt=>Qt.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return mi(this)}}class Wt{constructor(Ft,ct){this.path=Ft,this.parameters=ct}get parameterMap(){return this._parameterMap||(this._parameterMap=se(this.parameters)),this._parameterMap}toString(){return un(this)}}function sn(We,Ft){return We.length===Ft.length&&We.every((ct,Qt)=>ct.path===Ft[Qt].path)}let yi=(()=>{class We{static#e=this.\u0275fac=function(Qt){return new(Qt||We)};static#t=this.\u0275prov=e.Yz7({token:We,factory:function(){return new nn},providedIn:"root"})}return We})();class nn{parse(Ft){const ct=new tt(Ft);return new mt(ct.parseRootSegment(),ct.parseQueryParams(),ct.parseFragment())}serialize(Ft){const ct=`/${Eo(Ft.root,!0)}`,Qt=function Fn(We){const Ft=Object.keys(We).map(ct=>{const Qt=We[ct];return Array.isArray(Qt)?Qt.map(gi=>`${xo(ct)}=${xo(gi)}`).join("&"):`${xo(ct)}=${xo(Qt)}`}).filter(ct=>!!ct);return Ft.length?`?${Ft.join("&")}`:""}(Ft.queryParams);return`${ct}${Qt}${"string"==typeof Ft.fragment?`#${function Bn(We){return encodeURI(We)}(Ft.fragment)}`:""}`}}const Mi=new nn;function mi(We){return We.segments.map(Ft=>un(Ft)).join("/")}function Eo(We,Ft){if(!We.hasChildren())return mi(We);if(Ft){const ct=We.children[H]?Eo(We.children[H],!1):"",Qt=[];return Object.entries(We.children).forEach(([gi,Do])=>{gi!==H&&Qt.push(`${gi}:${Eo(Do,!1)}`)}),Qt.length>0?`${ct}(${Qt.join("//")})`:ct}{const ct=function fn(We,Ft){let ct=[];return Object.entries(We.children).forEach(([Qt,gi])=>{Qt===H&&(ct=ct.concat(Ft(gi,Qt)))}),Object.entries(We.children).forEach(([Qt,gi])=>{Qt!==H&&(ct=ct.concat(Ft(gi,Qt)))}),ct}(We,(Qt,gi)=>gi===H?[Eo(We.children[H],!1)]:[`${gi}:${Eo(Qt,!1)}`]);return 1===Object.keys(We.children).length&&null!=We.children[H]?`${mi(We)}/${ct[0]}`:`${mi(We)}/(${ct.join("//")})`}}function Ko(We){return encodeURIComponent(We).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function xo(We){return Ko(We).replace(/%3B/gi,";")}function Xt(We){return Ko(We).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ji(We){return decodeURIComponent(We)}function En(We){return Ji(We.replace(/\+/g,"%20"))}function un(We){return`${Xt(We.path)}${function Ki(We){return Object.keys(We).map(Ft=>`;${Xt(Ft)}=${Xt(We[Ft])}`).join("")}(We.parameters)}`}const oi=/^[^\/()?;#]+/;function It(We){const Ft=We.match(oi);return Ft?Ft[0]:""}const Bt=/^[^\/()?;=#]+/,wt=/^[^=?&#]+/,pt=/^[^&#]+/;class tt{constructor(Ft){this.url=Ft,this.remaining=Ft}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ut([],{}):new ut([],this.parseChildren())}parseQueryParams(){const Ft={};if(this.consumeOptional("?"))do{this.parseQueryParam(Ft)}while(this.consumeOptional("&"));return Ft}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const Ft=[];for(this.peekStartsWith("(")||Ft.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),Ft.push(this.parseSegment());let ct={};this.peekStartsWith("/(")&&(this.capture("/"),ct=this.parseParens(!0));let Qt={};return this.peekStartsWith("(")&&(Qt=this.parseParens(!1)),(Ft.length>0||Object.keys(ct).length>0)&&(Qt[H]=new ut(Ft,ct)),Qt}parseSegment(){const Ft=It(this.remaining);if(""===Ft&&this.peekStartsWith(";"))throw new e.vHH(4009,!1);return this.capture(Ft),new Wt(Ji(Ft),this.parseMatrixParams())}parseMatrixParams(){const Ft={};for(;this.consumeOptional(";");)this.parseParam(Ft);return Ft}parseParam(Ft){const ct=function xt(We){const Ft=We.match(Bt);return Ft?Ft[0]:""}(this.remaining);if(!ct)return;this.capture(ct);let Qt="";if(this.consumeOptional("=")){const gi=It(this.remaining);gi&&(Qt=gi,this.capture(Qt))}Ft[Ji(ct)]=Ji(Qt)}parseQueryParam(Ft){const ct=function Mt(We){const Ft=We.match(wt);return Ft?Ft[0]:""}(this.remaining);if(!ct)return;this.capture(ct);let Qt="";if(this.consumeOptional("=")){const Po=function Lt(We){const Ft=We.match(pt);return Ft?Ft[0]:""}(this.remaining);Po&&(Qt=Po,this.capture(Qt))}const gi=En(ct),Do=En(Qt);if(Ft.hasOwnProperty(gi)){let Po=Ft[gi];Array.isArray(Po)||(Po=[Po],Ft[gi]=Po),Po.push(Do)}else Ft[gi]=Do}parseParens(Ft){const ct={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Qt=It(this.remaining),gi=this.remaining[Qt.length];if("/"!==gi&&")"!==gi&&";"!==gi)throw new e.vHH(4010,!1);let Do;Qt.indexOf(":")>-1?(Do=Qt.slice(0,Qt.indexOf(":")),this.capture(Do),this.capture(":")):Ft&&(Do=H);const Po=this.parseChildren();ct[Do]=1===Object.keys(Po).length?Po[H]:new ut([],Po),this.consumeOptional("//")}return ct}peekStartsWith(Ft){return this.remaining.startsWith(Ft)}consumeOptional(Ft){return!!this.peekStartsWith(Ft)&&(this.remaining=this.remaining.substring(Ft.length),!0)}capture(Ft){if(!this.consumeOptional(Ft))throw new e.vHH(4011,!1)}}function Ne(We){return We.segments.length>0?new ut([],{[H]:We}):We}function vt(We){const Ft={};for(const Qt of Object.keys(We.children)){const Do=vt(We.children[Qt]);if(Qt===H&&0===Do.segments.length&&Do.hasChildren())for(const[Po,Or]of Object.entries(Do.children))Ft[Po]=Or;else(Do.segments.length>0||Do.hasChildren())&&(Ft[Qt]=Do)}return function ln(We){if(1===We.numberOfChildren&&We.children[H]){const Ft=We.children[H];return new ut(We.segments.concat(Ft.segments),Ft.children)}return We}(new ut(We.segments,Ft))}function jn(We){return We instanceof mt}function go(We){let Ft;const gi=Ne(function ct(Do){const Po={};for(const hs of Do.children){const Zs=ct(hs);Po[hs.outlet]=Zs}const Or=new ut(Do.url,Po);return Do===We&&(Ft=Or),Or}(We.root));return Ft??gi}function si(We,Ft,ct,Qt){let gi=We;for(;gi.parent;)gi=gi.parent;if(0===Ft.length)return _i(gi,gi,gi,ct,Qt);const Do=function zn(We){if("string"==typeof We[0]&&1===We.length&&"/"===We[0])return new hi(!0,0,We);let Ft=0,ct=!1;const Qt=We.reduce((gi,Do,Po)=>{if("object"==typeof Do&&null!=Do){if(Do.outlets){const Or={};return Object.entries(Do.outlets).forEach(([hs,Zs])=>{Or[hs]="string"==typeof Zs?Zs.split("/"):Zs}),[...gi,{outlets:Or}]}if(Do.segmentPath)return[...gi,Do.segmentPath]}return"string"!=typeof Do?[...gi,Do]:0===Po?(Do.split("/").forEach((Or,hs)=>{0==hs&&"."===Or||(0==hs&&""===Or?ct=!0:".."===Or?Ft++:""!=Or&&gi.push(Or))}),gi):[...gi,Do]},[]);return new hi(ct,Ft,Qt)}(Ft);if(Do.toRoot())return _i(gi,gi,new ut([],{}),ct,Qt);const Po=function li(We,Ft,ct){if(We.isAbsolute)return new Ei(Ft,!0,0);if(!ct)return new Ei(Ft,!1,NaN);if(null===ct.parent)return new Ei(ct,!0,0);const Qt=ot(We.commands[0])?0:1;return function Xi(We,Ft,ct){let Qt=We,gi=Ft,Do=ct;for(;Do>gi;){if(Do-=gi,Qt=Qt.parent,!Qt)throw new e.vHH(4005,!1);gi=Qt.segments.length}return new Ei(Qt,!1,gi-Do)}(ct,ct.segments.length-1+Qt,We.numberOfDoubleDots)}(Do,gi,We),Or=Po.processChildren?jo(Po.segmentGroup,Po.index,Do.commands):bo(Po.segmentGroup,Po.index,Do.commands);return _i(gi,Po.segmentGroup,Or,ct,Qt)}function ot(We){return"object"==typeof We&&null!=We&&!We.outlets&&!We.segmentPath}function pn(We){return"object"==typeof We&&null!=We&&We.outlets}function _i(We,Ft,ct,Qt,gi){let Po,Do={};Qt&&Object.entries(Qt).forEach(([hs,Zs])=>{Do[hs]=Array.isArray(Zs)?Zs.map(ca=>`${ca}`):`${Zs}`}),Po=We===Ft?ct:wi(We,Ft,ct);const Or=Ne(vt(Po));return new mt(Or,Do,gi)}function wi(We,Ft,ct){const Qt={};return Object.entries(We.children).forEach(([gi,Do])=>{Qt[gi]=Do===Ft?ct:wi(Do,Ft,ct)}),new ut(We.segments,Qt)}class hi{constructor(Ft,ct,Qt){if(this.isAbsolute=Ft,this.numberOfDoubleDots=ct,this.commands=Qt,Ft&&Qt.length>0&&ot(Qt[0]))throw new e.vHH(4003,!1);const gi=Qt.find(pn);if(gi&&gi!==Te(Qt))throw new e.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ei{constructor(Ft,ct,Qt){this.segmentGroup=Ft,this.processChildren=ct,this.index=Qt}}function bo(We,Ft,ct){if(We||(We=new ut([],{})),0===We.segments.length&&We.hasChildren())return jo(We,Ft,ct);const Qt=function wn(We,Ft,ct){let Qt=0,gi=Ft;const Do={match:!1,pathIndex:0,commandIndex:0};for(;gi<We.segments.length;){if(Qt>=ct.length)return Do;const Po=We.segments[gi],Or=ct[Qt];if(pn(Or))break;const hs=`${Or}`,Zs=Qt<ct.length-1?ct[Qt+1]:null;if(gi>0&&void 0===hs)break;if(hs&&Zs&&"object"==typeof Zs&&void 0===Zs.outlets){if(!Xo(hs,Zs,Po))return Do;Qt+=2}else{if(!Xo(hs,{},Po))return Do;Qt++}gi++}return{match:!0,pathIndex:gi,commandIndex:Qt}}(We,Ft,ct),gi=ct.slice(Qt.commandIndex);if(Qt.match&&Qt.pathIndex<We.segments.length){const Do=new ut(We.segments.slice(0,Qt.pathIndex),{});return Do.children[H]=new ut(We.segments.slice(Qt.pathIndex),We.children),jo(Do,0,gi)}return Qt.match&&0===gi.length?new ut(We.segments,{}):Qt.match&&!We.hasChildren()?Zi(We,Ft,ct):Qt.match?jo(We,0,gi):Zi(We,Ft,ct)}function jo(We,Ft,ct){if(0===ct.length)return new ut(We.segments,{});{const Qt=function ki(We){return pn(We[0])?We[0].outlets:{[H]:We}}(ct),gi={};if(!Qt[H]&&We.children[H]&&1===We.numberOfChildren&&0===We.children[H].segments.length){const Do=jo(We.children[H],Ft,ct);return new ut(We.segments,Do.children)}return Object.entries(Qt).forEach(([Do,Po])=>{"string"==typeof Po&&(Po=[Po]),null!==Po&&(gi[Do]=bo(We.children[Do],Ft,Po))}),Object.entries(We.children).forEach(([Do,Po])=>{void 0===Qt[Do]&&(gi[Do]=Po)}),new ut(We.segments,gi)}}function Zi(We,Ft,ct){const Qt=We.segments.slice(0,Ft);let gi=0;for(;gi<ct.length;){const Do=ct[gi];if(pn(Do)){const hs=oo(Do.outlets);return new ut(Qt,hs)}if(0===gi&&ot(ct[0])){Qt.push(new Wt(We.segments[Ft].path,Bi(ct[0]))),gi++;continue}const Po=pn(Do)?Do.outlets[H]:`${Do}`,Or=gi<ct.length-1?ct[gi+1]:null;Po&&Or&&ot(Or)?(Qt.push(new Wt(Po,Bi(Or))),gi+=2):(Qt.push(new Wt(Po,{})),gi++)}return new ut(Qt,{})}function oo(We){const Ft={};return Object.entries(We).forEach(([ct,Qt])=>{"string"==typeof Qt&&(Qt=[Qt]),null!==Qt&&(Ft[ct]=Zi(new ut([],{}),0,Qt))}),Ft}function Bi(We){const Ft={};return Object.entries(We).forEach(([ct,Qt])=>Ft[ct]=`${Qt}`),Ft}function Xo(We,Ft,ct){return We==ct.path&&ge(Ft,ct.parameters)}const Lo="imperative";class or{constructor(Ft,ct){this.id=Ft,this.url=ct}}class xr extends or{constructor(Ft,ct,Qt="imperative",gi=null){super(Ft,ct),this.type=0,this.navigationTrigger=Qt,this.restoredState=gi}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Nr extends or{constructor(Ft,ct,Qt){super(Ft,ct),this.urlAfterRedirects=Qt,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class as extends or{constructor(Ft,ct,Qt,gi){super(Ft,ct),this.reason=Qt,this.code=gi,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ji extends or{constructor(Ft,ct,Qt,gi){super(Ft,ct),this.reason=Qt,this.code=gi,this.type=16}}class Fo extends or{constructor(Ft,ct,Qt,gi){super(Ft,ct),this.error=Qt,this.target=gi,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class rt extends or{constructor(Ft,ct,Qt,gi){super(Ft,ct),this.urlAfterRedirects=Qt,this.state=gi,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ai extends or{constructor(Ft,ct,Qt,gi){super(Ft,ct),this.urlAfterRedirects=Qt,this.state=gi,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gn extends or{constructor(Ft,ct,Qt,gi,Do){super(Ft,ct),this.urlAfterRedirects=Qt,this.state=gi,this.shouldActivate=Do,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Io extends or{constructor(Ft,ct,Qt,gi){super(Ft,ct),this.urlAfterRedirects=Qt,this.state=gi,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wr extends or{constructor(Ft,ct,Qt,gi){super(Ft,ct),this.urlAfterRedirects=Qt,this.state=gi,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bs{constructor(Ft){this.route=Ft,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ba{constructor(Ft){this.route=Ft,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ms{constructor(Ft){this.snapshot=Ft,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Oa{constructor(Ft){this.snapshot=Ft,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ea{constructor(Ft){this.snapshot=Ft,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Sa{constructor(Ft){this.snapshot=Ft,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tr{constructor(Ft,ct,Qt){this.routerEvent=Ft,this.position=ct,this.anchor=Qt,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Li{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ao,this.attachRef=null}}let Ao=(()=>{class We{constructor(){this.contexts=new Map}onChildOutletCreated(ct,Qt){const gi=this.getOrCreateContext(ct);gi.outlet=Qt,this.contexts.set(ct,gi)}onChildOutletDestroyed(ct){const Qt=this.getContext(ct);Qt&&(Qt.outlet=null,Qt.attachRef=null)}onOutletDeactivated(){const ct=this.contexts;return this.contexts=new Map,ct}onOutletReAttached(ct){this.contexts=ct}getOrCreateContext(ct){let Qt=this.getContext(ct);return Qt||(Qt=new Li,this.contexts.set(ct,Qt)),Qt}getContext(ct){return this.contexts.get(ct)||null}static#e=this.\u0275fac=function(Qt){return new(Qt||We)};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();class ao{constructor(Ft){this._root=Ft}get root(){return this._root.value}parent(Ft){const ct=this.pathFromRoot(Ft);return ct.length>1?ct[ct.length-2]:null}children(Ft){const ct=Go(Ft,this._root);return ct?ct.children.map(Qt=>Qt.value):[]}firstChild(Ft){const ct=Go(Ft,this._root);return ct&&ct.children.length>0?ct.children[0].value:null}siblings(Ft){const ct=pr(Ft,this._root);return ct.length<2?[]:ct[ct.length-2].children.map(gi=>gi.value).filter(gi=>gi!==Ft)}pathFromRoot(Ft){return pr(Ft,this._root).map(ct=>ct.value)}}function Go(We,Ft){if(We===Ft.value)return Ft;for(const ct of Ft.children){const Qt=Go(We,ct);if(Qt)return Qt}return null}function pr(We,Ft){if(We===Ft.value)return[Ft];for(const ct of Ft.children){const Qt=pr(We,ct);if(Qt.length)return Qt.unshift(Ft),Qt}return[]}class Rr{constructor(Ft,ct){this.value=Ft,this.children=ct}toString(){return`TreeNode(${this.value})`}}function br(We){const Ft={};return We&&We.children.forEach(ct=>Ft[ct.value.outlet]=ct),Ft}class Ti extends ao{constructor(Ft,ct){super(Ft),this.snapshot=ct,Gs(this,Ft)}toString(){return this.snapshot.toString()}}function mr(We,Ft){const ct=function ri(We,Ft){const Po=new lr([],{},{},"",{},H,Ft,null,{});return new Yr("",new Rr(Po,[]))}(0,Ft),Qt=new l.X([new Wt("",{})]),gi=new l.X({}),Do=new l.X({}),Po=new l.X({}),Or=new l.X(""),hs=new mo(Qt,gi,Po,Or,Do,H,Ft,ct.root);return hs.snapshot=ct.root,new Ti(new Rr(hs,[]),ct)}class mo{constructor(Ft,ct,Qt,gi,Do,Po,Or,hs){this.urlSubject=Ft,this.paramsSubject=ct,this.queryParamsSubject=Qt,this.fragmentSubject=gi,this.dataSubject=Do,this.outlet=Po,this.component=Or,this._futureSnapshot=hs,this.title=this.dataSubject?.pipe((0,w.U)(Zs=>Zs[z]))??(0,a.of)(void 0),this.url=Ft,this.params=ct,this.queryParams=Qt,this.fragment=gi,this.data=Do}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((0,w.U)(Ft=>se(Ft)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,w.U)(Ft=>se(Ft)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ii(We,Ft="emptyOnly"){const ct=We.pathFromRoot;let Qt=0;if("always"!==Ft)for(Qt=ct.length-1;Qt>=1;){const gi=ct[Qt],Do=ct[Qt-1];if(gi.routeConfig&&""===gi.routeConfig.path)Qt--;else{if(Do.component)break;Qt--}}return function yo(We){return We.reduce((Ft,ct)=>({params:{...Ft.params,...ct.params},data:{...Ft.data,...ct.data},resolve:{...ct.data,...Ft.resolve,...ct.routeConfig?.data,...ct._resolvedData}}),{params:{},data:{},resolve:{}})}(ct.slice(Qt))}class lr{get title(){return this.data?.[z]}constructor(Ft,ct,Qt,gi,Do,Po,Or,hs,Zs){this.url=Ft,this.params=ct,this.queryParams=Qt,this.fragment=gi,this.data=Do,this.outlet=Po,this.component=Or,this.routeConfig=hs,this._resolve=Zs}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=se(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=se(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Qt=>Qt.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Yr extends ao{constructor(Ft,ct){super(ct),this.url=Ft,Gs(this,ct)}toString(){return fi(this._root)}}function Gs(We,Ft){Ft.value._routerState=We,Ft.children.forEach(ct=>Gs(We,ct))}function fi(We){const Ft=We.children.length>0?` { ${We.children.map(fi).join(", ")} } `:"";return`${We.value}${Ft}`}function Ho(We){if(We.snapshot){const Ft=We.snapshot,ct=We._futureSnapshot;We.snapshot=ct,ge(Ft.queryParams,ct.queryParams)||We.queryParamsSubject.next(ct.queryParams),Ft.fragment!==ct.fragment&&We.fragmentSubject.next(ct.fragment),ge(Ft.params,ct.params)||We.paramsSubject.next(ct.params),function _e(We,Ft){if(We.length!==Ft.length)return!1;for(let ct=0;ct<We.length;++ct)if(!ge(We[ct],Ft[ct]))return!1;return!0}(Ft.url,ct.url)||We.urlSubject.next(ct.url),ge(Ft.data,ct.data)||We.dataSubject.next(ct.data)}else We.snapshot=We._futureSnapshot,We.dataSubject.next(We._futureSnapshot.data)}function _t(We,Ft){const ct=ge(We.params,Ft.params)&&function dn(We,Ft){return sn(We,Ft)&&We.every((ct,Qt)=>ge(ct.parameters,Ft[Qt].parameters))}(We.url,Ft.url);return ct&&!(!We.parent!=!Ft.parent)&&(!We.parent||_t(We.parent,Ft.parent))}let Zn=(()=>{class We{constructor(){this.activated=null,this._activatedRoute=null,this.name=H,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.parentContexts=(0,e.f3M)(Ao),this.location=(0,e.f3M)(e.s_b),this.changeDetector=(0,e.f3M)(e.sBO),this.environmentInjector=(0,e.f3M)(e.lqb),this.inputBinder=(0,e.f3M)(Cr,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(ct){if(ct.name){const{firstChange:Qt,previousValue:gi}=ct.name;if(Qt)return;this.isTrackedInParentContexts(gi)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(gi)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(ct){return this.parentContexts.getContext(ct)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const ct=this.parentContexts.getContext(this.name);ct?.route&&(ct.attachRef?this.attach(ct.attachRef,ct.route):this.activateWith(ct.route,ct.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new e.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new e.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new e.vHH(4012,!1);this.location.detach();const ct=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(ct.instance),ct}attach(ct,Qt){this.activated=ct,this._activatedRoute=Qt,this.location.insert(ct.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(ct.instance)}deactivate(){if(this.activated){const ct=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(ct)}}activateWith(ct,Qt){if(this.isActivated)throw new e.vHH(4013,!1);this._activatedRoute=ct;const gi=this.location,Po=ct.snapshot.component,Or=this.parentContexts.getOrCreateContext(this.name).children,hs=new qo(ct,Or,gi.injector);this.activated=gi.createComponent(Po,{index:gi.length,injector:hs,environmentInjector:Qt??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(Qt){return new(Qt||We)};static#t=this.\u0275dir=e.lG2({type:We,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[e.TTD]})}return We})();class qo{constructor(Ft,ct,Qt){this.route=Ft,this.childContexts=ct,this.parent=Qt}get(Ft,ct){return Ft===mo?this.route:Ft===Ao?this.childContexts:this.parent.get(Ft,ct)}}const Cr=new e.OlP("");let kr=(()=>{class We{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(ct){this.unsubscribeFromRouteData(ct),this.subscribeToRouteData(ct)}unsubscribeFromRouteData(ct){this.outletDataSubscriptions.get(ct)?.unsubscribe(),this.outletDataSubscriptions.delete(ct)}subscribeToRouteData(ct){const{activatedRoute:Qt}=ct,gi=(0,u.a)([Qt.queryParams,Qt.params,Qt.data]).pipe((0,g.w)(([Do,Po,Or],hs)=>(Or={...Do,...Po,...Or},0===hs?(0,a.of)(Or):Promise.resolve(Or)))).subscribe(Do=>{if(!ct.isActivated||!ct.activatedComponentRef||ct.activatedRoute!==Qt||null===Qt.component)return void this.unsubscribeFromRouteData(ct);const Po=(0,e.qFp)(Qt.component);if(Po)for(const{templateName:Or}of Po.inputs)ct.activatedComponentRef.setInput(Or,Do[Or]);else this.unsubscribeFromRouteData(ct)});this.outletDataSubscriptions.set(ct,gi)}static#e=this.\u0275fac=function(Qt){return new(Qt||We)};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();function Us(We,Ft,ct){if(ct&&We.shouldReuseRoute(Ft.value,ct.value.snapshot)){const Qt=ct.value;Qt._futureSnapshot=Ft.value;const gi=function Ts(We,Ft,ct){return Ft.children.map(Qt=>{for(const gi of ct.children)if(We.shouldReuseRoute(Qt.value,gi.value.snapshot))return Us(We,Qt,gi);return Us(We,Qt)})}(We,Ft,ct);return new Rr(Qt,gi)}{if(We.shouldAttach(Ft.value)){const Do=We.retrieve(Ft.value);if(null!==Do){const Po=Do.route;return Po.value._futureSnapshot=Ft.value,Po.children=Ft.children.map(Or=>Us(We,Or)),Po}}const Qt=function Ss(We){return new mo(new l.X(We.url),new l.X(We.params),new l.X(We.queryParams),new l.X(We.fragment),new l.X(We.data),We.outlet,We.component,We)}(Ft.value),gi=Ft.children.map(Do=>Us(We,Do));return new Rr(Qt,gi)}}const Ua="ngNavigationCancelingError";function $o(We,Ft){const{redirectTo:ct,navigationBehaviorOptions:Qt}=jn(Ft)?{redirectTo:Ft,navigationBehaviorOptions:void 0}:Ft,gi=Ar(!1,0,Ft);return gi.url=ct,gi.navigationBehaviorOptions=Qt,gi}function Ar(We,Ft,ct){const Qt=new Error("NavigationCancelingError: "+(We||""));return Qt[Ua]=!0,Qt.cancellationCode=Ft,ct&&(Qt.url=ct),Qt}function No(We){return qr(We)&&jn(We.url)}function qr(We){return We&&We[Ua]}let js=(()=>{class We{static#e=this.\u0275fac=function(Qt){return new(Qt||We)};static#t=this.\u0275cmp=e.Xpm({type:We,selectors:[["ng-component"]],standalone:!0,features:[e.jDz],decls:1,vars:0,template:function(Qt,gi){1&Qt&&e._UZ(0,"router-outlet")},dependencies:[Zn],encapsulation:2})}return We})();function Jt(We){const Ft=We.children&&We.children.map(Jt),ct=Ft?{...We,children:Ft}:{...We};return!ct.component&&!ct.loadComponent&&(Ft||ct.loadChildren)&&ct.outlet&&ct.outlet!==H&&(ct.component=js),ct}function Tt(We){return We.outlet||H}function yn(We){if(!We)return null;if(We.routeConfig?._injector)return We.routeConfig._injector;for(let Ft=We.parent;Ft;Ft=Ft.parent){const ct=Ft.routeConfig;if(ct?._loadedInjector)return ct._loadedInjector;if(ct?._injector)return ct._injector}return null}class co{constructor(Ft,ct,Qt,gi,Do){this.routeReuseStrategy=Ft,this.futureState=ct,this.currState=Qt,this.forwardEvent=gi,this.inputBindingEnabled=Do}activate(Ft){const ct=this.futureState._root,Qt=this.currState?this.currState._root:null;this.deactivateChildRoutes(ct,Qt,Ft),Ho(this.futureState.root),this.activateChildRoutes(ct,Qt,Ft)}deactivateChildRoutes(Ft,ct,Qt){const gi=br(ct);Ft.children.forEach(Do=>{const Po=Do.value.outlet;this.deactivateRoutes(Do,gi[Po],Qt),delete gi[Po]}),Object.values(gi).forEach(Do=>{this.deactivateRouteAndItsChildren(Do,Qt)})}deactivateRoutes(Ft,ct,Qt){const gi=Ft.value,Do=ct?ct.value:null;if(gi===Do)if(gi.component){const Po=Qt.getContext(gi.outlet);Po&&this.deactivateChildRoutes(Ft,ct,Po.children)}else this.deactivateChildRoutes(Ft,ct,Qt);else Do&&this.deactivateRouteAndItsChildren(ct,Qt)}deactivateRouteAndItsChildren(Ft,ct){Ft.value.component&&this.routeReuseStrategy.shouldDetach(Ft.value.snapshot)?this.detachAndStoreRouteSubtree(Ft,ct):this.deactivateRouteAndOutlet(Ft,ct)}detachAndStoreRouteSubtree(Ft,ct){const Qt=ct.getContext(Ft.value.outlet),gi=Qt&&Ft.value.component?Qt.children:ct,Do=br(Ft);for(const Po of Object.keys(Do))this.deactivateRouteAndItsChildren(Do[Po],gi);if(Qt&&Qt.outlet){const Po=Qt.outlet.detach(),Or=Qt.children.onOutletDeactivated();this.routeReuseStrategy.store(Ft.value.snapshot,{componentRef:Po,route:Ft,contexts:Or})}}deactivateRouteAndOutlet(Ft,ct){const Qt=ct.getContext(Ft.value.outlet),gi=Qt&&Ft.value.component?Qt.children:ct,Do=br(Ft);for(const Po of Object.keys(Do))this.deactivateRouteAndItsChildren(Do[Po],gi);Qt&&(Qt.outlet&&(Qt.outlet.deactivate(),Qt.children.onOutletDeactivated()),Qt.attachRef=null,Qt.route=null)}activateChildRoutes(Ft,ct,Qt){const gi=br(ct);Ft.children.forEach(Do=>{this.activateRoutes(Do,gi[Do.value.outlet],Qt),this.forwardEvent(new Sa(Do.value.snapshot))}),Ft.children.length&&this.forwardEvent(new Oa(Ft.value.snapshot))}activateRoutes(Ft,ct,Qt){const gi=Ft.value,Do=ct?ct.value:null;if(Ho(gi),gi===Do)if(gi.component){const Po=Qt.getOrCreateContext(gi.outlet);this.activateChildRoutes(Ft,ct,Po.children)}else this.activateChildRoutes(Ft,ct,Qt);else if(gi.component){const Po=Qt.getOrCreateContext(gi.outlet);if(this.routeReuseStrategy.shouldAttach(gi.snapshot)){const Or=this.routeReuseStrategy.retrieve(gi.snapshot);this.routeReuseStrategy.store(gi.snapshot,null),Po.children.onOutletReAttached(Or.contexts),Po.attachRef=Or.componentRef,Po.route=Or.route.value,Po.outlet&&Po.outlet.attach(Or.componentRef,Or.route.value),Ho(Or.route.value),this.activateChildRoutes(Ft,null,Po.children)}else{const Or=yn(gi.snapshot);Po.attachRef=null,Po.route=gi,Po.injector=Or,Po.outlet&&Po.outlet.activateWith(gi,Po.injector),this.activateChildRoutes(Ft,null,Po.children)}}else this.activateChildRoutes(Ft,null,Qt)}}class sr{constructor(Ft){this.path=Ft,this.route=this.path[this.path.length-1]}}class yr{constructor(Ft,ct){this.component=Ft,this.route=ct}}function Ur(We,Ft,ct){const Qt=We._root;return Pr(Qt,Ft?Ft._root:null,ct,[Qt.value])}function gs(We,Ft){const ct=Symbol(),Qt=Ft.get(We,ct);return Qt===ct?"function"!=typeof We||(0,e.Z0I)(We)?Ft.get(We):We:Qt}function Pr(We,Ft,ct,Qt,gi={canDeactivateChecks:[],canActivateChecks:[]}){const Do=br(Ft);return We.children.forEach(Po=>{(function ys(We,Ft,ct,Qt,gi={canDeactivateChecks:[],canActivateChecks:[]}){const Do=We.value,Po=Ft?Ft.value:null,Or=ct?ct.getContext(We.value.outlet):null;if(Po&&Do.routeConfig===Po.routeConfig){const hs=function da(We,Ft,ct){if("function"==typeof ct)return ct(We,Ft);switch(ct){case"pathParamsChange":return!sn(We.url,Ft.url);case"pathParamsOrQueryParamsChange":return!sn(We.url,Ft.url)||!ge(We.queryParams,Ft.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!_t(We,Ft)||!ge(We.queryParams,Ft.queryParams);default:return!_t(We,Ft)}}(Po,Do,Do.routeConfig.runGuardsAndResolvers);hs?gi.canActivateChecks.push(new sr(Qt)):(Do.data=Po.data,Do._resolvedData=Po._resolvedData),Pr(We,Ft,Do.component?Or?Or.children:null:ct,Qt,gi),hs&&Or&&Or.outlet&&Or.outlet.isActivated&&gi.canDeactivateChecks.push(new yr(Or.outlet.component,Po))}else Po&&Va(Ft,Or,gi),gi.canActivateChecks.push(new sr(Qt)),Pr(We,null,Do.component?Or?Or.children:null:ct,Qt,gi)})(Po,Do[Po.value.outlet],ct,Qt.concat([Po.value]),gi),delete Do[Po.value.outlet]}),Object.entries(Do).forEach(([Po,Or])=>Va(Or,ct.getContext(Po),gi)),gi}function Va(We,Ft,ct){const Qt=br(We),gi=We.value;Object.entries(Qt).forEach(([Do,Po])=>{Va(Po,gi.component?Ft?Ft.children.getContext(Do):null:Ft,ct)}),ct.canDeactivateChecks.push(new yr(gi.component&&Ft&&Ft.outlet&&Ft.outlet.isActivated?Ft.outlet.component:null,gi))}function ga(We){return"function"==typeof We}function ze(We){return We instanceof d.K||"EmptyError"===We?.name}const St=Symbol("INITIAL_VALUE");function it(){return(0,g.w)(We=>(0,u.a)(We.map(Ft=>Ft.pipe((0,M.q)(1),(0,p.O)(St)))).pipe((0,w.U)(Ft=>{for(const ct of Ft)if(!0!==ct){if(ct===St)return St;if(!1===ct||ct instanceof mt)return ct}return!0}),(0,E.h)(Ft=>Ft!==St),(0,M.q)(1)))}function Ot(We){return(0,_.z)((0,D.b)(Ft=>{if(jn(Ft))throw $o(0,Ft)}),(0,w.U)(Ft=>!0===Ft))}class cn{constructor(Ft){this.segmentGroup=Ft||null}}class Ht{constructor(Ft){this.urlTree=Ft}}function ft(We){return(0,C._)(new cn(We))}function Nt(We){return(0,C._)(new Ht(We))}class Je{constructor(Ft,ct){this.urlSerializer=Ft,this.urlTree=ct}noMatchError(Ft){return new e.vHH(4002,!1)}lineralizeSegments(Ft,ct){let Qt=[],gi=ct.root;for(;;){if(Qt=Qt.concat(gi.segments),0===gi.numberOfChildren)return(0,a.of)(Qt);if(gi.numberOfChildren>1||!gi.children[H])return(0,C._)(new e.vHH(4e3,!1));gi=gi.children[H]}}applyRedirectCommands(Ft,ct,Qt){return this.applyRedirectCreateUrlTree(ct,this.urlSerializer.parse(ct),Ft,Qt)}applyRedirectCreateUrlTree(Ft,ct,Qt,gi){const Do=this.createSegmentGroup(Ft,ct.root,Qt,gi);return new mt(Do,this.createQueryParams(ct.queryParams,this.urlTree.queryParams),ct.fragment)}createQueryParams(Ft,ct){const Qt={};return Object.entries(Ft).forEach(([gi,Do])=>{if("string"==typeof Do&&Do.startsWith(":")){const Or=Do.substring(1);Qt[gi]=ct[Or]}else Qt[gi]=Do}),Qt}createSegmentGroup(Ft,ct,Qt,gi){const Do=this.createSegments(Ft,ct.segments,Qt,gi);let Po={};return Object.entries(ct.children).forEach(([Or,hs])=>{Po[Or]=this.createSegmentGroup(Ft,hs,Qt,gi)}),new ut(Do,Po)}createSegments(Ft,ct,Qt,gi){return ct.map(Do=>Do.path.startsWith(":")?this.findPosParam(Ft,Do,gi):this.findOrReturn(Do,Qt))}findPosParam(Ft,ct,Qt){const gi=Qt[ct.path.substring(1)];if(!gi)throw new e.vHH(4001,!1);return gi}findOrReturn(Ft,ct){let Qt=0;for(const gi of ct){if(gi.path===Ft.path)return ct.splice(Qt),gi;Qt++}return Ft}}const Ve={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ge(We,Ft,ct,Qt,gi){const Do=Be(We,Ft,ct);return Do.matched?(Qt=function Ds(We,Ft){return We.providers&&!We._injector&&(We._injector=(0,e.MMx)(We.providers,Ft,`Route: ${We.path}`)),We._injector??Ft}(Ft,Qt),function en(We,Ft,ct,Qt){const gi=Ft.canMatch;if(!gi||0===gi.length)return(0,a.of)(!0);const Do=gi.map(Po=>{const Or=gs(Po,We);return De(function vn(We){return We&&ga(We.canMatch)}(Or)?Or.canMatch(Ft,ct):We.runInContext(()=>Or(Ft,ct)))});return(0,a.of)(Do).pipe(it(),Ot())}(Qt,Ft,ct).pipe((0,w.U)(Po=>!0===Po?Do:{...Ve}))):(0,a.of)(Do)}function Be(We,Ft,ct){if(""===Ft.path)return"full"===Ft.pathMatch&&(We.hasChildren()||ct.length>0)?{...Ve}:{matched:!0,consumedSegments:[],remainingSegments:ct,parameters:{},positionalParamSegments:{}};const gi=(Ft.matcher||ne)(ct,We,Ft);if(!gi)return{...Ve};const Do={};Object.entries(gi.posParams??{}).forEach(([Or,hs])=>{Do[Or]=hs.path});const Po=gi.consumed.length>0?{...Do,...gi.consumed[gi.consumed.length-1].parameters}:Do;return{matched:!0,consumedSegments:gi.consumed,remainingSegments:ct.slice(gi.consumed.length),parameters:Po,positionalParamSegments:gi.posParams??{}}}function At(We,Ft,ct,Qt){return ct.length>0&&function $t(We,Ft,ct){return ct.some(Qt=>Nn(We,Ft,Qt)&&Tt(Qt)!==H)}(We,ct,Qt)?{segmentGroup:new ut(Ft,Pt(Qt,new ut(ct,We.children))),slicedSegments:[]}:0===ct.length&&function Xn(We,Ft,ct){return ct.some(Qt=>Nn(We,Ft,Qt))}(We,ct,Qt)?{segmentGroup:new ut(We.segments,Rt(We,0,ct,Qt,We.children)),slicedSegments:ct}:{segmentGroup:new ut(We.segments,We.children),slicedSegments:ct}}function Rt(We,Ft,ct,Qt,gi){const Do={};for(const Po of Qt)if(Nn(We,ct,Po)&&!gi[Tt(Po)]){const Or=new ut([],{});Do[Tt(Po)]=Or}return{...gi,...Do}}function Pt(We,Ft){const ct={};ct[H]=Ft;for(const Qt of We)if(""===Qt.path&&Tt(Qt)!==H){const gi=new ut([],{});ct[Tt(Qt)]=gi}return ct}function Nn(We,Ft,ct){return(!(We.hasChildren()||Ft.length>0)||"full"!==ct.pathMatch)&&""===ct.path}class On{constructor(Ft,ct,Qt,gi,Do,Po,Or){this.injector=Ft,this.configLoader=ct,this.rootComponentType=Qt,this.config=gi,this.urlTree=Do,this.paramsInheritanceStrategy=Po,this.urlSerializer=Or,this.allowRedirects=!0,this.applyRedirects=new Je(this.urlSerializer,this.urlTree)}noMatchError(Ft){return new e.vHH(4002,!1)}recognize(){const Ft=At(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,Ft,H).pipe((0,F.K)(ct=>{if(ct instanceof Ht)return this.allowRedirects=!1,this.urlTree=ct.urlTree,this.match(ct.urlTree);throw ct instanceof cn?this.noMatchError(ct):ct}),(0,w.U)(ct=>{const Qt=new lr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},H,this.rootComponentType,null,{}),gi=new Rr(Qt,ct),Do=new Yr("",gi),Po=function Pi(We,Ft,ct=null,Qt=null){return si(go(We),Ft,ct,Qt)}(Qt,[],this.urlTree.queryParams,this.urlTree.fragment);return Po.queryParams=this.urlTree.queryParams,Do.url=this.urlSerializer.serialize(Po),this.inheritParamsAndData(Do._root),{state:Do,tree:Po}}))}match(Ft){return this.processSegmentGroup(this.injector,this.config,Ft.root,H).pipe((0,F.K)(Qt=>{throw Qt instanceof cn?this.noMatchError(Qt):Qt}))}inheritParamsAndData(Ft){const ct=Ft.value,Qt=Ii(ct,this.paramsInheritanceStrategy);ct.params=Object.freeze(Qt.params),ct.data=Object.freeze(Qt.data),Ft.children.forEach(gi=>this.inheritParamsAndData(gi))}processSegmentGroup(Ft,ct,Qt,gi){return 0===Qt.segments.length&&Qt.hasChildren()?this.processChildren(Ft,ct,Qt):this.processSegment(Ft,ct,Qt,Qt.segments,gi,!0)}processChildren(Ft,ct,Qt){const gi=[];for(const Do of Object.keys(Qt.children))"primary"===Do?gi.unshift(Do):gi.push(Do);return(0,o.D)(gi).pipe((0,L.b)(Do=>{const Po=Qt.children[Do],Or=function ht(We,Ft){const ct=We.filter(Qt=>Tt(Qt)===Ft);return ct.push(...We.filter(Qt=>Tt(Qt)!==Ft)),ct}(ct,Do);return this.processSegmentGroup(Ft,Or,Po,Do)}),(0,P.R)((Do,Po)=>(Do.push(...Po),Do)),(0,O.d)(null),function J(We,Ft){const ct=arguments.length>=2;return Qt=>Qt.pipe(We?(0,E.h)((gi,Do)=>We(gi,Do,Qt)):me.y,K(1),ct?(0,O.d)(Ft):(0,X.T)(()=>new d.K))}(),(0,b.z)(Do=>{if(null===Do)return ft(Qt);const Po=xi(Do);return function Fi(We){We.sort((Ft,ct)=>Ft.value.outlet===H?-1:ct.value.outlet===H?1:Ft.value.outlet.localeCompare(ct.value.outlet))}(Po),(0,a.of)(Po)}))}processSegment(Ft,ct,Qt,gi,Do,Po){return(0,o.D)(ct).pipe((0,L.b)(Or=>this.processSegmentAgainstRoute(Or._injector??Ft,ct,Or,Qt,gi,Do,Po).pipe((0,F.K)(hs=>{if(hs instanceof cn)return(0,a.of)(null);throw hs}))),(0,I.P)(Or=>!!Or),(0,F.K)(Or=>{if(ze(Or))return function He(We,Ft,ct){return 0===Ft.length&&!We.children[ct]}(Qt,gi,Do)?(0,a.of)([]):ft(Qt);throw Or}))}processSegmentAgainstRoute(Ft,ct,Qt,gi,Do,Po,Or){return function Ae(We,Ft,ct,Qt){return!!(Tt(We)===Qt||Qt!==H&&Nn(Ft,ct,We))&&("**"===We.path||Be(Ft,We,ct).matched)}(Qt,gi,Do,Po)?void 0===Qt.redirectTo?this.matchSegmentAgainstRoute(Ft,gi,Qt,Do,Po,Or):Or&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(Ft,gi,ct,Qt,Do,Po):ft(gi):ft(gi)}expandSegmentAgainstRouteUsingRedirect(Ft,ct,Qt,gi,Do,Po){return"**"===gi.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(Ft,Qt,gi,Po):this.expandRegularSegmentAgainstRouteUsingRedirect(Ft,ct,Qt,gi,Do,Po)}expandWildCardWithParamsAgainstRouteUsingRedirect(Ft,ct,Qt,gi){const Do=this.applyRedirects.applyRedirectCommands([],Qt.redirectTo,{});return Qt.redirectTo.startsWith("/")?Nt(Do):this.applyRedirects.lineralizeSegments(Qt,Do).pipe((0,b.z)(Po=>{const Or=new ut(Po,{});return this.processSegment(Ft,ct,Or,Po,gi,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(Ft,ct,Qt,gi,Do,Po){const{matched:Or,consumedSegments:hs,remainingSegments:Zs,positionalParamSegments:ca}=Be(ct,gi,Do);if(!Or)return ft(ct);const za=this.applyRedirects.applyRedirectCommands(hs,gi.redirectTo,ca);return gi.redirectTo.startsWith("/")?Nt(za):this.applyRedirects.lineralizeSegments(gi,za).pipe((0,b.z)(cl=>this.processSegment(Ft,Qt,ct,cl.concat(Zs),Po,!1)))}matchSegmentAgainstRoute(Ft,ct,Qt,gi,Do,Po){let Or;if("**"===Qt.path){const hs=gi.length>0?Te(gi).parameters:{},Zs=new lr(gi,hs,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Vt(Qt),Tt(Qt),Qt.component??Qt._loadedComponent??null,Qt,qt(Qt));Or=(0,a.of)({snapshot:Zs,consumedSegments:[],remainingSegments:[]}),ct.children={}}else Or=Ge(ct,Qt,gi,Ft).pipe((0,w.U)(({matched:hs,consumedSegments:Zs,remainingSegments:ca,parameters:za})=>hs?{snapshot:new lr(Zs,za,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Vt(Qt),Tt(Qt),Qt.component??Qt._loadedComponent??null,Qt,qt(Qt)),consumedSegments:Zs,remainingSegments:ca}:null));return Or.pipe((0,g.w)(hs=>null===hs?ft(ct):this.getChildConfig(Ft=Qt._injector??Ft,Qt,gi).pipe((0,g.w)(({routes:Zs})=>{const ca=Qt._loadedInjector??Ft,{snapshot:za,consumedSegments:cl,remainingSegments:yc}=hs,{segmentGroup:bc,slicedSegments:ec}=At(ct,cl,yc,Zs);if(0===ec.length&&bc.hasChildren())return this.processChildren(ca,Zs,bc).pipe((0,w.U)(va=>null===va?null:[new Rr(za,va)]));if(0===Zs.length&&0===ec.length)return(0,a.of)([new Rr(za,[])]);const Wl=Tt(Qt)===Do;return this.processSegment(ca,Zs,bc,ec,Wl?H:Do,!0).pipe((0,w.U)(va=>[new Rr(za,va)]))}))))}getChildConfig(Ft,ct,Qt){return ct.children?(0,a.of)({routes:ct.children,injector:Ft}):ct.loadChildren?void 0!==ct._loadedRoutes?(0,a.of)({routes:ct._loadedRoutes,injector:ct._loadedInjector}):function ui(We,Ft,ct,Qt){const gi=Ft.canLoad;if(void 0===gi||0===gi.length)return(0,a.of)(!0);const Do=gi.map(Po=>{const Or=gs(Po,We);return De(function ur(We){return We&&ga(We.canLoad)}(Or)?Or.canLoad(Ft,ct):We.runInContext(()=>Or(Ft,ct)))});return(0,a.of)(Do).pipe(it(),Ot())}(Ft,ct,Qt).pipe((0,b.z)(gi=>gi?this.configLoader.loadChildren(Ft,ct).pipe((0,D.b)(Do=>{ct._loadedRoutes=Do.routes,ct._loadedInjector=Do.injector})):function $e(We){return(0,C._)(Ar(!1,3))}())):(0,a.of)({routes:[],injector:Ft})}}function Ci(We){const Ft=We.value.routeConfig;return Ft&&""===Ft.path}function xi(We){const Ft=[],ct=new Set;for(const Qt of We){if(!Ci(Qt)){Ft.push(Qt);continue}const gi=Ft.find(Do=>Qt.value.routeConfig===Do.value.routeConfig);void 0!==gi?(gi.children.push(...Qt.children),ct.add(gi)):Ft.push(Qt)}for(const Qt of ct){const gi=xi(Qt.children);Ft.push(new Rr(Qt.value,gi))}return Ft.filter(Qt=>!ct.has(Qt))}function Vt(We){return We.data||{}}function qt(We){return We.resolve||{}}function Qn(We){return"string"==typeof We.title||null===We.title}function ci(We){return(0,g.w)(Ft=>{const ct=We(Ft);return ct?(0,o.D)(ct).pipe((0,w.U)(()=>Ft)):(0,a.of)(Ft)})}const Oi=new e.OlP("ROUTES");let Ai=(()=>{class We{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,e.f3M)(e.Sil)}loadComponent(ct){if(this.componentLoaders.get(ct))return this.componentLoaders.get(ct);if(ct._loadedComponent)return(0,a.of)(ct._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(ct);const Qt=De(ct.loadComponent()).pipe((0,w.U)(qn),(0,D.b)(Do=>{this.onLoadEndListener&&this.onLoadEndListener(ct),ct._loadedComponent=Do}),(0,re.x)(()=>{this.componentLoaders.delete(ct)})),gi=new x.c(Qt,()=>new f.x).pipe((0,de.x)());return this.componentLoaders.set(ct,gi),gi}loadChildren(ct,Qt){if(this.childrenLoaders.get(Qt))return this.childrenLoaders.get(Qt);if(Qt._loadedRoutes)return(0,a.of)({routes:Qt._loadedRoutes,injector:Qt._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Qt);const Do=this.loadModuleFactoryOrRoutes(Qt.loadChildren).pipe((0,w.U)(Or=>{this.onLoadEndListener&&this.onLoadEndListener(Qt);let hs,Zs;return Array.isArray(Or)?Zs=Or:(hs=Or.create(ct).injector,Zs=hs.get(Oi,[],e.XFs.Self|e.XFs.Optional).flat()),{routes:Zs.map(Jt),injector:hs}}),(0,re.x)(()=>{this.childrenLoaders.delete(Qt)})),Po=new x.c(Do,()=>new f.x).pipe((0,de.x)());return this.childrenLoaders.set(Qt,Po),Po}loadModuleFactoryOrRoutes(ct){return De(ct()).pipe((0,w.U)(qn),(0,b.z)(Qt=>Qt instanceof e.YKP||Array.isArray(Qt)?(0,a.of)(Qt):(0,o.D)(this.compiler.compileModuleAsync(Qt))))}static#e=this.\u0275fac=function(Qt){return new(Qt||We)};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();function qn(We){return function Pn(We){return We&&"object"==typeof We&&"default"in We}(We)?We.default:We}let Ni=(()=>{class We{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new f.x,this.configLoader=(0,e.f3M)(Ai),this.environmentInjector=(0,e.f3M)(e.lqb),this.urlSerializer=(0,e.f3M)(yi),this.rootContexts=(0,e.f3M)(Ao),this.inputBindingEnabled=null!==(0,e.f3M)(Cr,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,a.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=gi=>this.events.next(new ba(gi)),this.configLoader.onLoadStartListener=gi=>this.events.next(new bs(gi))}complete(){this.transitions?.complete()}handleNavigationRequest(ct){const Qt=++this.navigationId;this.transitions?.next({...this.transitions.value,...ct,id:Qt})}setupNavigations(ct){return this.transitions=new l.X({id:0,currentUrlTree:ct.currentUrlTree,currentRawUrl:ct.currentUrlTree,extractedUrl:ct.urlHandlingStrategy.extract(ct.currentUrlTree),urlAfterRedirects:ct.urlHandlingStrategy.extract(ct.currentUrlTree),rawUrl:ct.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Lo,restoredState:null,currentSnapshot:ct.routerState.snapshot,targetSnapshot:null,currentRouterState:ct.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,E.h)(Qt=>0!==Qt.id),(0,w.U)(Qt=>({...Qt,extractedUrl:ct.urlHandlingStrategy.extract(Qt.rawUrl)})),(0,g.w)(Qt=>{let gi=!1,Do=!1;return(0,a.of)(Qt).pipe((0,D.b)(Po=>{this.currentNavigation={id:Po.id,initialUrl:Po.rawUrl,extractedUrl:Po.extractedUrl,trigger:Po.source,extras:Po.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,g.w)(Po=>{const Or=ct.browserUrlTree.toString(),hs=!ct.navigated||Po.extractedUrl.toString()!==Or||Or!==ct.currentUrlTree.toString();if(!hs&&"reload"!==(Po.extras.onSameUrlNavigation??ct.onSameUrlNavigation)){const ca="";return this.events.next(new ji(Po.id,ct.serializeUrl(Qt.rawUrl),ca,0)),ct.rawUrlTree=Po.rawUrl,Po.resolve(null),R.E}if(ct.urlHandlingStrategy.shouldProcessUrl(Po.rawUrl))return Ue(Po.source)&&(ct.browserUrlTree=Po.extractedUrl),(0,a.of)(Po).pipe((0,g.w)(ca=>{const za=this.transitions?.getValue();return this.events.next(new xr(ca.id,this.urlSerializer.serialize(ca.extractedUrl),ca.source,ca.restoredState)),za!==this.transitions?.getValue()?R.E:Promise.resolve(ca)}),function bn(We,Ft,ct,Qt,gi,Do){return(0,b.z)(Po=>function Kt(We,Ft,ct,Qt,gi,Do,Po="emptyOnly"){return new On(We,Ft,ct,Qt,gi,Po,Do).recognize()}(We,Ft,ct,Qt,Po.extractedUrl,gi,Do).pipe((0,w.U)(({state:Or,tree:hs})=>({...Po,targetSnapshot:Or,urlAfterRedirects:hs}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,ct.config,this.urlSerializer,ct.paramsInheritanceStrategy),(0,D.b)(ca=>{if(Qt.targetSnapshot=ca.targetSnapshot,Qt.urlAfterRedirects=ca.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:ca.urlAfterRedirects},"eager"===ct.urlUpdateStrategy){if(!ca.extras.skipLocationChange){const cl=ct.urlHandlingStrategy.merge(ca.urlAfterRedirects,ca.rawUrl);ct.setBrowserUrl(cl,ca)}ct.browserUrlTree=ca.urlAfterRedirects}const za=new rt(ca.id,this.urlSerializer.serialize(ca.extractedUrl),this.urlSerializer.serialize(ca.urlAfterRedirects),ca.targetSnapshot);this.events.next(za)}));if(hs&&ct.urlHandlingStrategy.shouldProcessUrl(ct.rawUrlTree)){const{id:ca,extractedUrl:za,source:cl,restoredState:yc,extras:bc}=Po,ec=new xr(ca,this.urlSerializer.serialize(za),cl,yc);this.events.next(ec);const Wl=mr(0,this.rootComponentType).snapshot;return Qt={...Po,targetSnapshot:Wl,urlAfterRedirects:za,extras:{...bc,skipLocationChange:!1,replaceUrl:!1}},(0,a.of)(Qt)}{const ca="";return this.events.next(new ji(Po.id,ct.serializeUrl(Qt.extractedUrl),ca,1)),ct.rawUrlTree=Po.rawUrl,Po.resolve(null),R.E}}),(0,D.b)(Po=>{const Or=new ai(Po.id,this.urlSerializer.serialize(Po.extractedUrl),this.urlSerializer.serialize(Po.urlAfterRedirects),Po.targetSnapshot);this.events.next(Or)}),(0,w.U)(Po=>Qt={...Po,guards:Ur(Po.targetSnapshot,Po.currentSnapshot,this.rootContexts)}),function Dt(We,Ft){return(0,b.z)(ct=>{const{targetSnapshot:Qt,currentSnapshot:gi,guards:{canActivateChecks:Do,canDeactivateChecks:Po}}=ct;return 0===Po.length&&0===Do.length?(0,a.of)({...ct,guardsResult:!0}):function Hn(We,Ft,ct,Qt){return(0,o.D)(We).pipe((0,b.z)(gi=>function kn(We,Ft,ct,Qt,gi){const Do=Ft&&Ft.routeConfig?Ft.routeConfig.canDeactivate:null;if(!Do||0===Do.length)return(0,a.of)(!0);const Po=Do.map(Or=>{const hs=yn(Ft)??gi,Zs=gs(Or,hs);return De(function Ls(We){return We&&ga(We.canDeactivate)}(Zs)?Zs.canDeactivate(We,Ft,ct,Qt):hs.runInContext(()=>Zs(We,Ft,ct,Qt))).pipe((0,I.P)())});return(0,a.of)(Po).pipe(it())}(gi.component,gi.route,ct,Ft,Qt)),(0,I.P)(gi=>!0!==gi,!0))}(Po,Qt,gi,We).pipe((0,b.z)(Or=>Or&&function al(We){return"boolean"==typeof We}(Or)?function Ui(We,Ft,ct,Qt){return(0,o.D)(Ft).pipe((0,L.b)(gi=>(0,s.z)(function Sn(We,Ft){return null!==We&&Ft&&Ft(new ms(We)),(0,a.of)(!0)}(gi.route.parent,Qt),function Co(We,Ft){return null!==We&&Ft&&Ft(new Ea(We)),(0,a.of)(!0)}(gi.route,Qt),function Dn(We,Ft,ct){const Qt=Ft[Ft.length-1],Do=Ft.slice(0,Ft.length-1).reverse().map(Po=>function ss(We){const Ft=We.routeConfig?We.routeConfig.canActivateChild:null;return Ft&&0!==Ft.length?{node:We,guards:Ft}:null}(Po)).filter(Po=>null!==Po).map(Po=>(0,A.P)(()=>{const Or=Po.guards.map(hs=>{const Zs=yn(Po.node)??ct,ca=gs(hs,Zs);return De(function ra(We){return We&&ga(We.canActivateChild)}(ca)?ca.canActivateChild(Qt,We):Zs.runInContext(()=>ca(Qt,We))).pipe((0,I.P)())});return(0,a.of)(Or).pipe(it())}));return(0,a.of)(Do).pipe(it())}(We,gi.path,ct),function Vn(We,Ft,ct){const Qt=Ft.routeConfig?Ft.routeConfig.canActivate:null;if(!Qt||0===Qt.length)return(0,a.of)(!0);const gi=Qt.map(Do=>(0,A.P)(()=>{const Po=yn(Ft)??ct,Or=gs(Do,Po);return De(function La(We){return We&&ga(We.canActivate)}(Or)?Or.canActivate(Ft,We):Po.runInContext(()=>Or(Ft,We))).pipe((0,I.P)())}));return(0,a.of)(gi).pipe(it())}(We,gi.route,ct))),(0,I.P)(gi=>!0!==gi,!0))}(Qt,Do,We,Ft):(0,a.of)(Or)),(0,w.U)(Or=>({...ct,guardsResult:Or})))})}(this.environmentInjector,Po=>this.events.next(Po)),(0,D.b)(Po=>{if(Qt.guardsResult=Po.guardsResult,jn(Po.guardsResult))throw $o(0,Po.guardsResult);const Or=new Gn(Po.id,this.urlSerializer.serialize(Po.extractedUrl),this.urlSerializer.serialize(Po.urlAfterRedirects),Po.targetSnapshot,!!Po.guardsResult);this.events.next(Or)}),(0,E.h)(Po=>!!Po.guardsResult||(ct.restoreHistory(Po),this.cancelNavigationTransition(Po,"",3),!1)),ci(Po=>{if(Po.guards.canActivateChecks.length)return(0,a.of)(Po).pipe((0,D.b)(Or=>{const hs=new Io(Or.id,this.urlSerializer.serialize(Or.extractedUrl),this.urlSerializer.serialize(Or.urlAfterRedirects),Or.targetSnapshot);this.events.next(hs)}),(0,g.w)(Or=>{let hs=!1;return(0,a.of)(Or).pipe(function ii(We,Ft){return(0,b.z)(ct=>{const{targetSnapshot:Qt,guards:{canActivateChecks:gi}}=ct;if(!gi.length)return(0,a.of)(ct);let Do=0;return(0,o.D)(gi).pipe((0,L.b)(Po=>function Vi(We,Ft,ct,Qt){const gi=We.routeConfig,Do=We._resolve;return void 0!==gi?.title&&!Qn(gi)&&(Do[z]=gi.title),function Jn(We,Ft,ct,Qt){const gi=function zt(We){return[...Object.keys(We),...Object.getOwnPropertySymbols(We)]}(We);if(0===gi.length)return(0,a.of)({});const Do={};return(0,o.D)(gi).pipe((0,b.z)(Po=>function mn(We,Ft,ct,Qt){const gi=yn(Ft)??Qt,Do=gs(We,gi);return De(Do.resolve?Do.resolve(Ft,ct):gi.runInContext(()=>Do(Ft,ct)))}(We[Po],Ft,ct,Qt).pipe((0,I.P)(),(0,D.b)(Or=>{Do[Po]=Or}))),K(1),(0,Q.h)(Do),(0,F.K)(Po=>ze(Po)?R.E:(0,C._)(Po)))}(Do,We,Ft,Qt).pipe((0,w.U)(Po=>(We._resolvedData=Po,We.data=Ii(We,ct).resolve,gi&&Qn(gi)&&(We.data[z]=gi.title),null)))}(Po.route,Qt,We,Ft)),(0,D.b)(()=>Do++),K(1),(0,b.z)(Po=>Do===gi.length?(0,a.of)(ct):R.E))})}(ct.paramsInheritanceStrategy,this.environmentInjector),(0,D.b)({next:()=>hs=!0,complete:()=>{hs||(ct.restoreHistory(Or),this.cancelNavigationTransition(Or,"",2))}}))}),(0,D.b)(Or=>{const hs=new wr(Or.id,this.urlSerializer.serialize(Or.extractedUrl),this.urlSerializer.serialize(Or.urlAfterRedirects),Or.targetSnapshot);this.events.next(hs)}))}),ci(Po=>{const Or=hs=>{const Zs=[];hs.routeConfig?.loadComponent&&!hs.routeConfig._loadedComponent&&Zs.push(this.configLoader.loadComponent(hs.routeConfig).pipe((0,D.b)(ca=>{hs.component=ca}),(0,w.U)(()=>{})));for(const ca of hs.children)Zs.push(...Or(ca));return Zs};return(0,u.a)(Or(Po.targetSnapshot.root)).pipe((0,O.d)(),(0,M.q)(1))}),ci(()=>this.afterPreactivation()),(0,w.U)(Po=>{const Or=function xs(We,Ft,ct){const Qt=Us(We,Ft._root,ct?ct._root:void 0);return new Ti(Qt,Ft)}(ct.routeReuseStrategy,Po.targetSnapshot,Po.currentRouterState);return Qt={...Po,targetRouterState:Or}}),(0,D.b)(Po=>{ct.currentUrlTree=Po.urlAfterRedirects,ct.rawUrlTree=ct.urlHandlingStrategy.merge(Po.urlAfterRedirects,Po.rawUrl),ct.routerState=Po.targetRouterState,"deferred"===ct.urlUpdateStrategy&&(Po.extras.skipLocationChange||ct.setBrowserUrl(ct.rawUrlTree,Po),ct.browserUrlTree=Po.urlAfterRedirects)}),((We,Ft,ct,Qt)=>(0,w.U)(gi=>(new co(Ft,gi.targetRouterState,gi.currentRouterState,ct,Qt).activate(We),gi)))(this.rootContexts,ct.routeReuseStrategy,Po=>this.events.next(Po),this.inputBindingEnabled),(0,M.q)(1),(0,D.b)({next:Po=>{gi=!0,this.lastSuccessfulNavigation=this.currentNavigation,ct.navigated=!0,this.events.next(new Nr(Po.id,this.urlSerializer.serialize(Po.extractedUrl),this.urlSerializer.serialize(ct.currentUrlTree))),ct.titleStrategy?.updateTitle(Po.targetRouterState.snapshot),Po.resolve(!0)},complete:()=>{gi=!0}}),(0,re.x)(()=>{gi||Do||this.cancelNavigationTransition(Qt,"",1),this.currentNavigation?.id===Qt.id&&(this.currentNavigation=null)}),(0,F.K)(Po=>{if(Do=!0,qr(Po)){No(Po)||(ct.navigated=!0,ct.restoreHistory(Qt,!0));const Or=new as(Qt.id,this.urlSerializer.serialize(Qt.extractedUrl),Po.message,Po.cancellationCode);if(this.events.next(Or),No(Po)){const hs=ct.urlHandlingStrategy.merge(Po.url,ct.rawUrlTree),Zs={skipLocationChange:Qt.extras.skipLocationChange,replaceUrl:"eager"===ct.urlUpdateStrategy||Ue(Qt.source)};ct.scheduleNavigation(hs,Lo,null,Zs,{resolve:Qt.resolve,reject:Qt.reject,promise:Qt.promise})}else Qt.resolve(!1)}else{ct.restoreHistory(Qt,!0);const Or=new Fo(Qt.id,this.urlSerializer.serialize(Qt.extractedUrl),Po,Qt.targetSnapshot??void 0);this.events.next(Or);try{Qt.resolve(ct.errorHandler(Po))}catch(hs){Qt.reject(hs)}}return R.E}))}))}cancelNavigationTransition(ct,Qt,gi){const Do=new as(ct.id,this.urlSerializer.serialize(ct.extractedUrl),Qt,gi);this.events.next(Do),ct.resolve(!1)}static#e=this.\u0275fac=function(Qt){return new(Qt||We)};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();function Ue(We){return We!==Lo}let Ye=(()=>{class We{buildTitle(ct){let Qt,gi=ct.root;for(;void 0!==gi;)Qt=this.getResolvedTitleForRoute(gi)??Qt,gi=gi.children.find(Do=>Do.outlet===H);return Qt}getResolvedTitleForRoute(ct){return ct.data[z]}static#e=this.\u0275fac=function(Qt){return new(Qt||We)};static#t=this.\u0275prov=e.Yz7({token:We,factory:function(){return(0,e.f3M)(Me)},providedIn:"root"})}return We})(),Me=(()=>{class We extends Ye{constructor(ct){super(),this.title=ct}updateTitle(ct){const Qt=this.buildTitle(ct);void 0!==Qt&&this.title.setTitle(Qt)}static#e=this.\u0275fac=function(Qt){return new(Qt||We)(e.LFG(j.Dx))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})(),pe=(()=>{class We{static#e=this.\u0275fac=function(Qt){return new(Qt||We)};static#t=this.\u0275prov=e.Yz7({token:We,factory:function(){return(0,e.f3M)(yt)},providedIn:"root"})}return We})();class lt{shouldDetach(Ft){return!1}store(Ft,ct){}shouldAttach(Ft){return!1}retrieve(Ft){return null}shouldReuseRoute(Ft,ct){return Ft.routeConfig===ct.routeConfig}}let yt=(()=>{class We extends lt{static#e=this.\u0275fac=function(){let ct;return function(gi){return(ct||(ct=e.n5z(We)))(gi||We)}}();static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();const on=new e.OlP("",{providedIn:"root",factory:()=>({})});let zi=(()=>{class We{static#e=this.\u0275fac=function(Qt){return new(Qt||We)};static#t=this.\u0275prov=e.Yz7({token:We,factory:function(){return(0,e.f3M)(Kn)},providedIn:"root"})}return We})(),Kn=(()=>{class We{shouldProcessUrl(ct){return!0}extract(ct){return ct}merge(ct,Qt){return ct}static#e=this.\u0275fac=function(Qt){return new(Qt||We)};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();var ho=function(We){return We[We.COMPLETE=0]="COMPLETE",We[We.FAILED=1]="FAILED",We[We.REDIRECTING=2]="REDIRECTING",We}(ho||{});function po(We,Ft){We.events.pipe((0,E.h)(ct=>ct instanceof Nr||ct instanceof as||ct instanceof Fo||ct instanceof ji),(0,w.U)(ct=>ct instanceof Nr||ct instanceof ji?ho.COMPLETE:ct instanceof as&&(0===ct.code||1===ct.code)?ho.REDIRECTING:ho.FAILED),(0,E.h)(ct=>ct!==ho.REDIRECTING),(0,M.q)(1)).subscribe(()=>{Ft()})}function $i(We){throw We}function ro(We,Ft,ct){return Ft.parse("/")}const wo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},io={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Wi=(()=>{class We{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,e.f3M)(e.c2e),this.isNgZoneEnabled=!1,this.options=(0,e.f3M)(on,{optional:!0})||{},this.pendingTasks=(0,e.f3M)(e.HDt),this.errorHandler=this.options.errorHandler||$i,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||ro,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,e.f3M)(zi),this.routeReuseStrategy=(0,e.f3M)(pe),this.titleStrategy=(0,e.f3M)(Ye),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=(0,e.f3M)(Oi,{optional:!0})?.flat()??[],this.navigationTransitions=(0,e.f3M)(Ni),this.urlSerializer=(0,e.f3M)(yi),this.location=(0,e.f3M)(k.Ye),this.componentInputBindingEnabled=!!(0,e.f3M)(Cr,{optional:!0}),this.isNgZoneEnabled=(0,e.f3M)(e.R0b)instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new mt,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=mr(0,null),this.navigationTransitions.setupNavigations(this).subscribe(ct=>{this.lastSuccessfulId=ct.id,this.currentPageId=this.browserPageId??0},ct=>{this.console.warn(`Unhandled Navigation Error: ${ct}`)})}resetRootComponentType(ct){this.routerState.root.component=ct,this.navigationTransitions.rootComponentType=ct}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const ct=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Lo,ct)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(ct=>{const Qt="popstate"===ct.type?"popstate":"hashchange";"popstate"===Qt&&setTimeout(()=>{this.navigateToSyncWithBrowser(ct.url,Qt,ct.state)},0)}))}navigateToSyncWithBrowser(ct,Qt,gi){const Do={replaceUrl:!0},Po=gi?.navigationId?gi:null;if(gi){const hs={...gi};delete hs.navigationId,delete hs.\u0275routerPageId,0!==Object.keys(hs).length&&(Do.state=hs)}const Or=this.parseUrl(ct);this.scheduleNavigation(Or,Qt,Po,Do)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(ct){this.config=ct.map(Jt),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(ct,Qt={}){const{relativeTo:gi,queryParams:Do,fragment:Po,queryParamsHandling:Or,preserveFragment:hs}=Qt,Zs=hs?this.currentUrlTree.fragment:Po;let za,ca=null;switch(Or){case"merge":ca={...this.currentUrlTree.queryParams,...Do};break;case"preserve":ca=this.currentUrlTree.queryParams;break;default:ca=Do||null}null!==ca&&(ca=this.removeEmptyProps(ca));try{za=go(gi?gi.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof ct[0]||!ct[0].startsWith("/"))&&(ct=[]),za=this.currentUrlTree.root}return si(za,ct,ca,Zs??null)}navigateByUrl(ct,Qt={skipLocationChange:!1}){const gi=jn(ct)?ct:this.parseUrl(ct),Do=this.urlHandlingStrategy.merge(gi,this.rawUrlTree);return this.scheduleNavigation(Do,Lo,null,Qt)}navigate(ct,Qt={skipLocationChange:!1}){return function fo(We){for(let Ft=0;Ft<We.length;Ft++)if(null==We[Ft])throw new e.vHH(4008,!1)}(ct),this.navigateByUrl(this.createUrlTree(ct,Qt),Qt)}serializeUrl(ct){return this.urlSerializer.serialize(ct)}parseUrl(ct){let Qt;try{Qt=this.urlSerializer.parse(ct)}catch(gi){Qt=this.malformedUriErrorHandler(gi,this.urlSerializer,ct)}return Qt}isActive(ct,Qt){let gi;if(gi=!0===Qt?{...wo}:!1===Qt?{...io}:Qt,jn(ct))return Oe(this.currentUrlTree,ct,gi);const Do=this.parseUrl(ct);return Oe(this.currentUrlTree,Do,gi)}removeEmptyProps(ct){return Object.keys(ct).reduce((Qt,gi)=>{const Do=ct[gi];return null!=Do&&(Qt[gi]=Do),Qt},{})}scheduleNavigation(ct,Qt,gi,Do,Po){if(this.disposed)return Promise.resolve(!1);let Or,hs,Zs;Po?(Or=Po.resolve,hs=Po.reject,Zs=Po.promise):Zs=new Promise((za,cl)=>{Or=za,hs=cl});const ca=this.pendingTasks.add();return po(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(ca))}),this.navigationTransitions.handleNavigationRequest({source:Qt,restoredState:gi,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:ct,extras:Do,resolve:Or,reject:hs,promise:Zs,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Zs.catch(za=>Promise.reject(za))}setBrowserUrl(ct,Qt){const gi=this.urlSerializer.serialize(ct);if(this.location.isCurrentPathEqualTo(gi)||Qt.extras.replaceUrl){const Po={...Qt.extras.state,...this.generateNgRouterState(Qt.id,this.browserPageId)};this.location.replaceState(gi,"",Po)}else{const Do={...Qt.extras.state,...this.generateNgRouterState(Qt.id,(this.browserPageId??0)+1)};this.location.go(gi,"",Do)}}restoreHistory(ct,Qt=!1){if("computed"===this.canceledNavigationResolution){const Do=this.currentPageId-(this.browserPageId??this.currentPageId);0!==Do?this.location.historyGo(Do):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===Do&&(this.resetState(ct),this.browserUrlTree=ct.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(Qt&&this.resetState(ct),this.resetUrlToCurrentUrlTree())}resetState(ct){this.routerState=ct.currentRouterState,this.currentUrlTree=ct.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,ct.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(ct,Qt){return"computed"===this.canceledNavigationResolution?{navigationId:ct,\u0275routerPageId:Qt}:{navigationId:ct}}static#e=this.\u0275fac=function(Qt){return new(Qt||We)};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})(),cr=(()=>{class We{constructor(ct,Qt,gi,Do,Po,Or){this.router=ct,this.route=Qt,this.tabIndexAttribute=gi,this.renderer=Do,this.el=Po,this.locationStrategy=Or,this.href=null,this.commands=null,this.onChanges=new f.x,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const hs=Po.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===hs||"area"===hs,this.isAnchorElement?this.subscription=ct.events.subscribe(Zs=>{Zs instanceof Nr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(ct){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",ct)}ngOnChanges(ct){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(ct){null!=ct?(this.commands=Array.isArray(ct)?ct:[ct],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(ct,Qt,gi,Do,Po){return!!(null===this.urlTree||this.isAnchorElement&&(0!==ct||Qt||gi||Do||Po||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const ct=null===this.href?null:(0,e.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",ct)}applyAttributeValue(ct,Qt){const gi=this.renderer,Do=this.el.nativeElement;null!==Qt?gi.setAttribute(Do,ct,Qt):gi.removeAttribute(Do,ct)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(Qt){return new(Qt||We)(e.Y36(Wi),e.Y36(mo),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(k.S$))};static#t=this.\u0275dir=e.lG2({type:We,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(Qt,gi){1&Qt&&e.NdJ("click",function(Po){return gi.onClick(Po.button,Po.ctrlKey,Po.shiftKey,Po.altKey,Po.metaKey)}),2&Qt&&e.uIk("target",gi.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",e.VuI],skipLocationChange:["skipLocationChange","skipLocationChange",e.VuI],replaceUrl:["replaceUrl","replaceUrl",e.VuI],routerLink:"routerLink"},standalone:!0,features:[e.Xq5,e.TTD]})}return We})(),Fr=(()=>{class We{get isActive(){return this._isActive}constructor(ct,Qt,gi,Do,Po){this.router=ct,this.element=Qt,this.renderer=gi,this.cdr=Do,this.link=Po,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new e.vpe,this.routerEventsSubscription=ct.events.subscribe(Or=>{Or instanceof Nr&&this.update()})}ngAfterContentInit(){(0,a.of)(this.links.changes,(0,a.of)(null)).pipe((0,te.J)()).subscribe(ct=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const ct=[...this.links.toArray(),this.link].filter(Qt=>!!Qt).map(Qt=>Qt.onChanges);this.linkInputChangesSubscription=(0,o.D)(ct).pipe((0,te.J)()).subscribe(Qt=>{this._isActive!==this.isLinkActive(this.router)(Qt)&&this.update()})}set routerLinkActive(ct){const Qt=Array.isArray(ct)?ct:ct.split(" ");this.classes=Qt.filter(gi=>!!gi)}ngOnChanges(ct){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const ct=this.hasActiveLinks();this._isActive!==ct&&(this._isActive=ct,this.cdr.markForCheck(),this.classes.forEach(Qt=>{ct?this.renderer.addClass(this.element.nativeElement,Qt):this.renderer.removeClass(this.element.nativeElement,Qt)}),ct&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(ct))})}isLinkActive(ct){const Qt=function jr(We){return!!We.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return gi=>!!gi.urlTree&&ct.isActive(gi.urlTree,Qt)}hasActiveLinks(){const ct=this.isLinkActive(this.router);return this.link&&ct(this.link)||this.links.some(ct)}static#e=this.\u0275fac=function(Qt){return new(Qt||We)(e.Y36(Wi),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(cr,8))};static#t=this.\u0275dir=e.lG2({type:We,selectors:[["","routerLinkActive",""]],contentQueries:function(Qt,gi,Do){if(1&Qt&&e.Suo(Do,cr,5),2&Qt){let Po;e.iGM(Po=e.CRH())&&(gi.links=Po)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[e.TTD]})}return We})();class fs{}let ks=(()=>{class We{constructor(ct,Qt,gi,Do,Po){this.router=ct,this.injector=gi,this.preloadingStrategy=Do,this.loader=Po}setUpPreloading(){this.subscription=this.router.events.pipe((0,E.h)(ct=>ct instanceof Nr),(0,L.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(ct,Qt){const gi=[];for(const Do of Qt){Do.providers&&!Do._injector&&(Do._injector=(0,e.MMx)(Do.providers,ct,`Route: ${Do.path}`));const Po=Do._injector??ct,Or=Do._loadedInjector??Po;(Do.loadChildren&&!Do._loadedRoutes&&void 0===Do.canLoad||Do.loadComponent&&!Do._loadedComponent)&&gi.push(this.preloadConfig(Po,Do)),(Do.children||Do._loadedRoutes)&&gi.push(this.processRoutes(Or,Do.children??Do._loadedRoutes))}return(0,o.D)(gi).pipe((0,te.J)())}preloadConfig(ct,Qt){return this.preloadingStrategy.preload(Qt,()=>{let gi;gi=Qt.loadChildren&&void 0===Qt.canLoad?this.loader.loadChildren(ct,Qt):(0,a.of)(null);const Do=gi.pipe((0,b.z)(Po=>null===Po?(0,a.of)(void 0):(Qt._loadedRoutes=Po.routes,Qt._loadedInjector=Po.injector,this.processRoutes(Po.injector??ct,Po.routes))));if(Qt.loadComponent&&!Qt._loadedComponent){const Po=this.loader.loadComponent(Qt);return(0,o.D)([Do,Po]).pipe((0,te.J)())}return Do})}static#e=this.\u0275fac=function(Qt){return new(Qt||We)(e.LFG(Wi),e.LFG(e.Sil),e.LFG(e.lqb),e.LFG(fs),e.LFG(Ai))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();const ts=new e.OlP("");let na=(()=>{class We{constructor(ct,Qt,gi,Do,Po={}){this.urlSerializer=ct,this.transitions=Qt,this.viewportScroller=gi,this.zone=Do,this.options=Po,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Po.scrollPositionRestoration=Po.scrollPositionRestoration||"disabled",Po.anchorScrolling=Po.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(ct=>{ct instanceof xr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=ct.navigationTrigger,this.restoredId=ct.restoredState?ct.restoredState.navigationId:0):ct instanceof Nr?(this.lastId=ct.id,this.scheduleScrollEvent(ct,this.urlSerializer.parse(ct.urlAfterRedirects).fragment)):ct instanceof ji&&0===ct.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(ct,this.urlSerializer.parse(ct.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(ct=>{ct instanceof tr&&(ct.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(ct.position):ct.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(ct.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(ct,Qt){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new tr(ct,"popstate"===this.lastSource?this.store[this.restoredId]:null,Qt))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(Qt){e.$Z()};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();function Ws(We,Ft){return{\u0275kind:We,\u0275providers:Ft}}function pi(){const We=(0,e.f3M)(e.zs3);return Ft=>{const ct=We.get(e.z2F);if(Ft!==ct.components[0])return;const Qt=We.get(Wi),gi=We.get(to);1===We.get(Ro)&&Qt.initialNavigation(),We.get(Ys,null,e.XFs.Optional)?.setUpPreloading(),We.get(ts,null,e.XFs.Optional)?.init(),Qt.resetRootComponentType(ct.componentTypes[0]),gi.closed||(gi.next(),gi.complete(),gi.unsubscribe())}}const to=new e.OlP("",{factory:()=>new f.x}),Ro=new e.OlP("",{providedIn:"root",factory:()=>1}),Ys=new e.OlP("");function la(We){return Ws(0,[{provide:Ys,useExisting:ks},{provide:fs,useExisting:We}])}const eo=new e.OlP("ROUTER_FORROOT_GUARD"),To=[k.Ye,{provide:yi,useClass:nn},Wi,Ao,{provide:mo,useFactory:function _a(We){return We.routerState.root},deps:[Wi]},Ai,[]];function Qo(){return new e.PXZ("Router",Wi)}let Dr=(()=>{class We{constructor(ct){}static forRoot(ct,Qt){return{ngModule:We,providers:[To,[],{provide:Oi,multi:!0,useValue:ct},{provide:eo,useFactory:ar,deps:[[Wi,new e.FiY,new e.tp0]]},{provide:on,useValue:Qt||{}},Qt?.useHash?{provide:k.S$,useClass:k.Do}:{provide:k.S$,useClass:k.b0},{provide:ts,useFactory:()=>{const We=(0,e.f3M)(k.EM),Ft=(0,e.f3M)(e.R0b),ct=(0,e.f3M)(on),Qt=(0,e.f3M)(Ni),gi=(0,e.f3M)(yi);return ct.scrollOffset&&We.setOffset(ct.scrollOffset),new na(gi,Qt,We,Ft,ct)}},Qt?.preloadingStrategy?la(Qt.preloadingStrategy).\u0275providers:[],{provide:e.PXZ,multi:!0,useFactory:Qo},Qt?.initialNavigation?wa(Qt):[],Qt?.bindToComponentInputs?Ws(8,[kr,{provide:Cr,useExisting:kr}]).\u0275providers:[],[{provide:_l,useFactory:pi},{provide:e.tb,multi:!0,useExisting:_l}]]}}static forChild(ct){return{ngModule:We,providers:[{provide:Oi,multi:!0,useValue:ct}]}}static#e=this.\u0275fac=function(Qt){return new(Qt||We)(e.LFG(eo,8))};static#t=this.\u0275mod=e.oAB({type:We});static#n=this.\u0275inj=e.cJS({})}return We})();function ar(We){return"guarded"}function wa(We){return["disabled"===We.initialNavigation?Ws(3,[{provide:e.ip1,multi:!0,useFactory:()=>{const Ft=(0,e.f3M)(Wi);return()=>{Ft.setUpLocationChangeListener()}}},{provide:Ro,useValue:2}]).\u0275providers:[],"enabledBlocking"===We.initialNavigation?Ws(2,[{provide:Ro,useValue:0},{provide:e.ip1,multi:!0,deps:[e.zs3],useFactory:Ft=>{const ct=Ft.get(k.V_,Promise.resolve());return()=>ct.then(()=>new Promise(Qt=>{const gi=Ft.get(Wi),Do=Ft.get(to);po(gi,()=>{Qt(!0)}),Ft.get(Ni).afterPreactivation=()=>(Qt(!0),Do.closed?(0,a.of)(void 0):Do),gi.initialNavigation()}))}}]).\u0275providers:[]]}const _l=new e.OlP("")},60703:(he,y,i)=>{"use strict";i.d(y,{N0:()=>o});var e=i(65879);const n=new e.OlP("JWT_OPTIONS");let o=(()=>{class d{constructor(A=null){this.tokenGetter=A&&A.tokenGetter||function(){}}urlBase64Decode(A){let _=A.replace(/-/g,"+").replace(/_/g,"/");switch(_.length%4){case 0:break;case 2:_+="==";break;case 3:_+="=";break;default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(_)}b64decode(A){let C="";if((A=String(A).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let x,f,R=0,k=0;f=A.charAt(k++);~f&&(x=R%4?64*x+f:f,R++%4)?C+=String.fromCharCode(255&x>>(-2*R&6)):0)f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(f);return C}b64DecodeUnicode(A){return decodeURIComponent(Array.prototype.map.call(this.b64decode(A),_=>"%"+("00"+_.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(A=this.tokenGetter()){return A instanceof Promise?A.then(_=>this._decodeToken(_)):this._decodeToken(A)}_decodeToken(A){if(!A||""===A)return null;const _=A.split(".");if(3!==_.length)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");const C=this.urlBase64Decode(_[1]);if(!C)throw new Error("Cannot decode the token.");return JSON.parse(C)}getTokenExpirationDate(A=this.tokenGetter()){return A instanceof Promise?A.then(_=>this._getTokenExpirationDate(_)):this._getTokenExpirationDate(A)}_getTokenExpirationDate(A){let _;if(_=this.decodeToken(A),!_||!_.hasOwnProperty("exp"))return null;const C=new Date(0);return C.setUTCSeconds(_.exp),C}isTokenExpired(A=this.tokenGetter(),_){return A instanceof Promise?A.then(C=>this._isTokenExpired(C,_)):this._isTokenExpired(A,_)}_isTokenExpired(A,_){if(!A||""===A)return!0;const C=this.getTokenExpirationDate(A);return _=_||0,null!==C&&!(C.valueOf()>(new Date).valueOf()+1e3*_)}getAuthScheme(A,_){return"function"==typeof A?A(_):A}}return d.\u0275fac=function(A){return new(A||d)(e.LFG(n))},d.\u0275prov=e.Yz7({token:d,factory:d.\u0275fac}),d})()},23106:(he,y,i)=>{"use strict";i.d(y,{Z:()=>k});var e=i(59058),n=i(84537),o=i(24303),a=i(87879);
/**
         * @license
         * Copyright 2020 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */class l{constructor(g,M){this._delegate=g,this.firebase=M,(0,o._addComponent)(g,new n.wA("app-compat",()=>this,"PUBLIC")),this.container=g.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(g){this._delegate.automaticDataCollectionEnabled=g}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise(g=>{this._delegate.checkDestroyed(),g()}).then(()=>(this.firebase.INTERNAL.removeApp(this.name),(0,o.deleteApp)(this._delegate)))}_getService(g,M=o._DEFAULT_ENTRY_NAME){var p;this._delegate.checkDestroyed();const E=this._delegate.container.getProvider(g);return!E.isInitialized()&&"EXPLICIT"===(null===(p=E.getComponent())||void 0===p?void 0:p.instantiationMode)&&E.initialize(),E.getImmediate({identifier:M})}_removeServiceInstance(g,M=o._DEFAULT_ENTRY_NAME){this._delegate.container.getProvider(g).clearInstance(M)}_addComponent(g){(0,o._addComponent)(this._delegate,g)}_addOrOverwriteComponent(g){(0,o._addOrOverwriteComponent)(this._delegate,g)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */const d=new e.LL("app-compat","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance."}),_=
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
function A(){const w=
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
function s(w){const g={},M={__esModule:!0,initializeApp:function b(F,P={}){const O=o.initializeApp(F,P);if((0,e.r3)(g,O.name))return g[O.name];const U=new w(O,M);return g[O.name]=U,U},app:E,registerVersion:o.registerVersion,setLogLevel:o.setLogLevel,onLog:o.onLog,apps:null,SDK_VERSION:o.SDK_VERSION,INTERNAL:{registerComponent:function L(F){const P=F.name,O=P.replace("-compat","");if(o._registerComponent(F)&&"PUBLIC"===F.type){const U=(V=E())=>{if("function"!=typeof V[O])throw d.create("invalid-app-argument",{appName:P});return V[O]()};void 0!==F.serviceProps&&(0,e.ZB)(U,F.serviceProps),M[O]=U,w.prototype[O]=function(...V){return this._getService.bind(this,P).apply(this,F.multipleInstances?V:[])}}return"PUBLIC"===F.type?M[O]:null},removeApp:function p(F){delete g[F]},useAsService:function D(F,P){return"serverAuth"===P?null:P},modularAPIs:o}};function E(F){if(!(0,e.r3)(g,F=F||o._DEFAULT_ENTRY_NAME))throw d.create("no-app",{appName:F});return g[F]}return M.default=M,Object.defineProperty(M,"apps",{get:function I(){return Object.keys(g).map(F=>g[F])}}),E.App=w,M}(l);return w.INTERNAL=Object.assign(Object.assign({},w.INTERNAL),{createFirebaseNamespace:A,extendNamespace:function g(M){(0,e.ZB)(w,M)},createSubscribe:e.ne,ErrorFactory:e.LL,deepExtend:e.ZB}),w}(),C=new a.Yd("@firebase/app-compat");
/**
         * @license
         * Copyright 2020 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
if((0,e.jU)()&&void 0!==self.firebase){C.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");const w=self.firebase.SDK_VERSION;w&&w.indexOf("LITE")>=0&&C.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}const k=_;!
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
function f(w){(0,o.registerVersion)("@firebase/app-compat","0.2.37",w)}()},24303:(he,y,i)=>{"use strict";i.r(y),i.d(y,{FirebaseError:()=>a.ZR,SDK_VERSION:()=>Ut,_DEFAULT_ENTRY_NAME:()=>te,_addComponent:()=>se,_addOrOverwriteComponent:()=>ne,_apps:()=>H,_clearComponents:()=>fe,_components:()=>q,_getProvider:()=>ge,_isFirebaseApp:()=>Te,_isFirebaseServerApp:()=>De,_registerComponent:()=>_e,_removeServiceInstance:()=>Ce,_serverApps:()=>z,deleteApp:()=>ut,getApp:()=>xn,getApps:()=>mt,initializeApp:()=>An,initializeServerApp:()=>$n,onLog:()=>sn,registerVersion:()=>dn,setLogLevel:()=>fn});var e=i(15861),n=i(84537),o=i(87879),a=i(59058),l=i(81878);
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */class u{constructor(Mt){this.container=Mt}getPlatformInfoString(){return this.container.getProviders().map(pt=>{if(function d(wt){const Mt=wt.getComponent();return"VERSION"===Mt?.type}(pt)){const Lt=pt.getImmediate();return`${Lt.library}/${Lt.version}`}return null}).filter(pt=>pt).join(" ")}}const s="@firebase/app",A="0.10.7",_=new o.Yd("@firebase/app"),te="[DEFAULT]",j={[s]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/vertexai-preview":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},H=new Map,z=new Map,q=new Map;
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */function se(wt,Mt){try{wt.container.addComponent(Mt)}catch(pt){_.debug(`Component ${Mt.name} failed to register with FirebaseApp ${wt.name}`,pt)}}function ne(wt,Mt){wt.container.addOrOverwriteComponent(Mt)}function _e(wt){const Mt=wt.name;if(q.has(Mt))return _.debug(`There were multiple attempts to register component ${Mt}.`),!1;q.set(Mt,wt);for(const pt of H.values())se(pt,wt);for(const pt of z.values())se(pt,wt);return!0}function ge(wt,Mt){const pt=wt.container.getProvider("heartbeat").getImmediate({optional:!0});return pt&&pt.triggerHeartbeat(),wt.container.getProvider(Mt)}function Ce(wt,Mt,pt=te){ge(wt,Mt).clearInstance(pt)}function Te(wt){return void 0!==wt.options}function De(wt){return void 0!==wt.settings}function fe(){q.clear()}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */const Oe=new a.LL("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */class Le{constructor(Mt,pt,Lt){this._isDeleted=!1,this._options=Object.assign({},Mt),this._config=Object.assign({},pt),this._name=pt.name,this._automaticDataCollectionEnabled=pt.automaticDataCollectionEnabled,this._container=Lt,this.container.addComponent(new n.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(Mt){this.checkDestroyed(),this._automaticDataCollectionEnabled=Mt}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(Mt){this._isDeleted=Mt}checkDestroyed(){if(this.isDeleted)throw Oe.create("app-deleted",{appName:this._name})}}
/**
         * @license
         * Copyright 2023 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */class Gt extends Le{constructor(Mt,pt,Lt,tt){const Ne=void 0!==pt.automaticDataCollectionEnabled&&pt.automaticDataCollectionEnabled,vt={name:Lt,automaticDataCollectionEnabled:Ne};super(void 0!==Mt.apiKey?Mt:Mt.options,vt,tt),this._serverConfig=Object.assign({automaticDataCollectionEnabled:Ne},pt),this._finalizationRegistry=null,typeof FinalizationRegistry<"u"&&(this._finalizationRegistry=new FinalizationRegistry(()=>{this.automaticCleanup()})),this._refCount=0,this.incRefCount(this._serverConfig.releaseOnDeref),this._serverConfig.releaseOnDeref=void 0,pt.releaseOnDeref=void 0,dn(s,A,"serverapp")}toJSON(){}get refCount(){return this._refCount}incRefCount(Mt){this.isDeleted||(this._refCount++,void 0!==Mt&&null!==this._finalizationRegistry&&this._finalizationRegistry.register(Mt,this))}decRefCount(){return this.isDeleted?0:--this._refCount}automaticCleanup(){ut(this)}get settings(){return this.checkDestroyed(),this._serverConfig}checkDestroyed(){if(this.isDeleted)throw Oe.create("server-app-deleted")}}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */const Ut="10.12.4";function An(wt,Mt={}){let pt=wt;"object"!=typeof Mt&&(Mt={name:Mt});const Lt=Object.assign({name:te,automaticDataCollectionEnabled:!1},Mt),tt=Lt.name;if("string"!=typeof tt||!tt)throw Oe.create("bad-app-name",{appName:String(tt)});if(pt||(pt=(0,a.aH)()),!pt)throw Oe.create("no-options");const Ne=H.get(tt);if(Ne){if((0,a.vZ)(pt,Ne.options)&&(0,a.vZ)(Lt,Ne.config))return Ne;throw Oe.create("duplicate-app",{appName:tt})}const vt=new n.H0(tt);for(const jn of q.values())vt.addComponent(jn);const ln=new Le(pt,Lt,vt);return H.set(tt,ln),ln}function $n(wt,Mt){if((0,a.jU)()&&!(0,a.n2)())throw Oe.create("invalid-server-app-environment");let pt;void 0===Mt.automaticDataCollectionEnabled&&(Mt.automaticDataCollectionEnabled=!1),pt=Te(wt)?wt.options:wt;const Lt=Object.assign(Object.assign({},Mt),pt);if(void 0!==Lt.releaseOnDeref&&delete Lt.releaseOnDeref,void 0!==Mt.releaseOnDeref&&typeof FinalizationRegistry>"u")throw Oe.create("finalization-registry-not-supported",{});const Ne=""+(Pi=JSON.stringify(Lt),[...Pi].reduce((go,si)=>Math.imul(31,go)+si.charCodeAt(0)|0,0)),vt=z.get(Ne);var Pi;if(vt)return vt.incRefCount(Mt.releaseOnDeref),vt;const ln=new n.H0(Ne);for(const Pi of q.values())ln.addComponent(Pi);const jn=new Gt(pt,Mt,Ne,ln);return z.set(Ne,jn),jn}function xn(wt=te){const Mt=H.get(wt);if(!Mt&&wt===te&&(0,a.aH)())return An();if(!Mt)throw Oe.create("no-app",{appName:wt});return Mt}function mt(){return Array.from(H.values())}function ut(wt){return Wt.apply(this,arguments)}function Wt(){return(Wt=(0,e.Z)(function*(wt){let Mt=!1;const pt=wt.name;H.has(pt)?(Mt=!0,H.delete(pt)):z.has(pt)&&wt.decRefCount()<=0&&(z.delete(pt),Mt=!0),Mt&&(yield Promise.all(wt.container.getProviders().map(Lt=>Lt.delete())),wt.isDeleted=!0)})).apply(this,arguments)}function dn(wt,Mt,pt){var Lt;let tt=null!==(Lt=j[wt])&&void 0!==Lt?Lt:wt;pt&&(tt+=`-${pt}`);const Ne=tt.match(/\s|\//),vt=Mt.match(/\s|\//);if(Ne||vt){const ln=[`Unable to register library "${tt}" with version "${Mt}":`];return Ne&&ln.push(`library name "${tt}" contains illegal characters (whitespace or "/")`),Ne&&vt&&ln.push("and"),vt&&ln.push(`version name "${Mt}" contains illegal characters (whitespace or "/")`),void _.warn(ln.join(" "))}_e(new n.wA(`${tt}-version`,()=>({library:tt,version:Mt}),"VERSION"))}function sn(wt,Mt){if(null!==wt&&"function"!=typeof wt)throw Oe.create("invalid-log-argument");(0,o.Am)(wt,Mt)}function fn(wt){(0,o.Ub)(wt)}
/**
         * @license
         * Copyright 2021 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */const yi="firebase-heartbeat-database",nn=1,Mi="firebase-heartbeat-store";let mi=null;function Eo(){return mi||(mi=(0,l.X3)(yi,nn,{upgrade:(wt,Mt)=>{if(0===Mt)try{wt.createObjectStore(Mi)}catch(pt){console.warn(pt)}}}).catch(wt=>{throw Oe.create("idb-open",{originalErrorMessage:wt.message})})),mi}function xo(){return(xo=(0,e.Z)(function*(wt){try{const pt=(yield Eo()).transaction(Mi),Lt=yield pt.objectStore(Mi).get(Ji(wt));return yield pt.done,Lt}catch(Mt){if(Mt instanceof a.ZR)_.warn(Mt.message);else{const pt=Oe.create("idb-get",{originalErrorMessage:Mt?.message});_.warn(pt.message)}}})).apply(this,arguments)}function Bn(wt,Mt){return Xt.apply(this,arguments)}function Xt(){return(Xt=(0,e.Z)(function*(wt,Mt){try{const Lt=(yield Eo()).transaction(Mi,"readwrite");yield Lt.objectStore(Mi).put(Mt,Ji(wt)),yield Lt.done}catch(pt){if(pt instanceof a.ZR)_.warn(pt.message);else{const Lt=Oe.create("idb-set",{originalErrorMessage:pt?.message});_.warn(Lt.message)}}})).apply(this,arguments)}function Ji(wt){return`${wt.name}!${wt.options.appId}`}
/**
         * @license
         * Copyright 2021 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */class Ki{constructor(Mt){this.container=Mt,this._heartbeatsCache=null;const pt=this.container.getProvider("app").getImmediate();this._storage=new It(pt),this._heartbeatsCachePromise=this._storage.read().then(Lt=>(this._heartbeatsCache=Lt,Lt))}triggerHeartbeat(){var Mt=this;return(0,e.Z)(function*(){var pt,Lt;const Ne=Mt.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),vt=Fn();if((null!=(null===(pt=Mt._heartbeatsCache)||void 0===pt?void 0:pt.heartbeats)||(Mt._heartbeatsCache=yield Mt._heartbeatsCachePromise,null!=(null===(Lt=Mt._heartbeatsCache)||void 0===Lt?void 0:Lt.heartbeats)))&&Mt._heartbeatsCache.lastSentHeartbeatDate!==vt&&!Mt._heartbeatsCache.heartbeats.some(ln=>ln.date===vt))return Mt._heartbeatsCache.heartbeats.push({date:vt,agent:Ne}),Mt._heartbeatsCache.heartbeats=Mt._heartbeatsCache.heartbeats.filter(ln=>{const jn=new Date(ln.date).valueOf();return Date.now()-jn<=2592e6}),Mt._storage.overwrite(Mt._heartbeatsCache)})()}getHeartbeatsHeader(){var Mt=this;return(0,e.Z)(function*(){var pt;if(null===Mt._heartbeatsCache&&(yield Mt._heartbeatsCachePromise),null==(null===(pt=Mt._heartbeatsCache)||void 0===pt?void 0:pt.heartbeats)||0===Mt._heartbeatsCache.heartbeats.length)return"";const Lt=Fn(),{heartbeatsToSend:tt,unsentEntries:Ne}=function oi(wt,Mt=1024){const pt=[];let Lt=wt.slice();for(const tt of wt){const Ne=pt.find(vt=>vt.agent===tt.agent);if(Ne){if(Ne.dates.push(tt.date),Bt(pt)>Mt){Ne.dates.pop();break}}else if(pt.push({agent:tt.agent,dates:[tt.date]}),Bt(pt)>Mt){pt.pop();break}Lt=Lt.slice(1)}return{heartbeatsToSend:pt,unsentEntries:Lt}}(Mt._heartbeatsCache.heartbeats),vt=(0,a.L)(JSON.stringify({version:2,heartbeats:tt}));return Mt._heartbeatsCache.lastSentHeartbeatDate=Lt,Ne.length>0?(Mt._heartbeatsCache.heartbeats=Ne,yield Mt._storage.overwrite(Mt._heartbeatsCache)):(Mt._heartbeatsCache.heartbeats=[],Mt._storage.overwrite(Mt._heartbeatsCache)),vt})()}}function Fn(){return(new Date).toISOString().substring(0,10)}class It{constructor(Mt){this.app=Mt,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,e.Z)(function*(){return!!(0,a.hl)()&&(0,a.eu)().then(()=>!0).catch(()=>!1)})()}read(){var Mt=this;return(0,e.Z)(function*(){if(yield Mt._canUseIndexedDBPromise){const Lt=yield function Ko(wt){return xo.apply(this,arguments)}(Mt.app);return Lt?.heartbeats?Lt:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(Mt){var pt=this;return(0,e.Z)(function*(){var Lt;if(yield pt._canUseIndexedDBPromise){const Ne=yield pt.read();return Bn(pt.app,{lastSentHeartbeatDate:null!==(Lt=Mt.lastSentHeartbeatDate)&&void 0!==Lt?Lt:Ne.lastSentHeartbeatDate,heartbeats:Mt.heartbeats})}})()}add(Mt){var pt=this;return(0,e.Z)(function*(){var Lt;if(yield pt._canUseIndexedDBPromise){const Ne=yield pt.read();return Bn(pt.app,{lastSentHeartbeatDate:null!==(Lt=Mt.lastSentHeartbeatDate)&&void 0!==Lt?Lt:Ne.lastSentHeartbeatDate,heartbeats:[...Ne.heartbeats,...Mt.heartbeats]})}})()}}function Bt(wt){return(0,a.L)(JSON.stringify({version:2,heartbeats:wt})).length}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */!function xt(wt){_e(new n.wA("platform-logger",Mt=>new u(Mt),"PRIVATE")),_e(new n.wA("heartbeat",Mt=>new Ki(Mt),"PRIVATE")),dn(s,A,wt),dn(s,A,"esm2017"),dn("fire-js","")}("")},84537:(he,y,i)=>{"use strict";i.d(y,{H0:()=>s,wA:()=>o});var e=i(15861),n=i(59058);class o{constructor(_,C,R){this.name=_,this.instanceFactory=C,this.type=R,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(_){return this.instantiationMode=_,this}setMultipleInstances(_){return this.multipleInstances=_,this}setServiceProps(_){return this.serviceProps=_,this}setInstanceCreatedCallback(_){return this.onInstanceCreated=_,this}}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */const a="[DEFAULT]";
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */class l{constructor(_,C){this.name=_,this.container=C,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(_){const C=this.normalizeInstanceIdentifier(_);if(!this.instancesDeferred.has(C)){const R=new n.BH;if(this.instancesDeferred.set(C,R),this.isInitialized(C)||this.shouldAutoInitialize())try{const x=this.getOrInitializeService({instanceIdentifier:C});x&&R.resolve(x)}catch{}}return this.instancesDeferred.get(C).promise}getImmediate(_){var C;const R=this.normalizeInstanceIdentifier(_?.identifier),x=null!==(C=_?.optional)&&void 0!==C&&C;if(!this.isInitialized(R)&&!this.shouldAutoInitialize()){if(x)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:R})}catch(f){if(x)return null;throw f}}getComponent(){return this.component}setComponent(_){if(_.name!==this.name)throw Error(`Mismatching Component ${_.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=_,this.shouldAutoInitialize()){if(function d(A){return"EAGER"===A.instantiationMode}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */(_))try{this.getOrInitializeService({instanceIdentifier:a})}catch{}for(const[C,R]of this.instancesDeferred.entries()){const x=this.normalizeInstanceIdentifier(C);try{const f=this.getOrInitializeService({instanceIdentifier:x});R.resolve(f)}catch{}}}}clearInstance(_=a){this.instancesDeferred.delete(_),this.instancesOptions.delete(_),this.instances.delete(_)}delete(){var _=this;return(0,e.Z)(function*(){const C=Array.from(_.instances.values());yield Promise.all([...C.filter(R=>"INTERNAL"in R).map(R=>R.INTERNAL.delete()),...C.filter(R=>"_delete"in R).map(R=>R._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(_=a){return this.instances.has(_)}getOptions(_=a){return this.instancesOptions.get(_)||{}}initialize(_={}){const{options:C={}}=_,R=this.normalizeInstanceIdentifier(_.instanceIdentifier);if(this.isInitialized(R))throw Error(`${this.name}(${R}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const x=this.getOrInitializeService({instanceIdentifier:R,options:C});for(const[f,k]of this.instancesDeferred.entries())R===this.normalizeInstanceIdentifier(f)&&k.resolve(x);return x}onInit(_,C){var R;const x=this.normalizeInstanceIdentifier(C),f=null!==(R=this.onInitCallbacks.get(x))&&void 0!==R?R:new Set;f.add(_),this.onInitCallbacks.set(x,f);const k=this.instances.get(x);return k&&_(k,x),()=>{f.delete(_)}}invokeOnInitCallbacks(_,C){const R=this.onInitCallbacks.get(C);if(R)for(const x of R)try{x(_,C)}catch{}}getOrInitializeService({instanceIdentifier:_,options:C={}}){let R=this.instances.get(_);if(!R&&this.component&&(R=this.component.instanceFactory(this.container,{instanceIdentifier:(A=_,A===a?void 0:A),options:C}),this.instances.set(_,R),this.instancesOptions.set(_,C),this.invokeOnInitCallbacks(R,_),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,_,R)}catch{}var A;return R||null}normalizeInstanceIdentifier(_=a){return this.component?this.component.multipleInstances?_:a:_}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class s{constructor(_){this.name=_,this.providers=new Map}addComponent(_){const C=this.getProvider(_.name);if(C.isComponentSet())throw new Error(`Component ${_.name} has already been registered with ${this.name}`);C.setComponent(_)}addOrOverwriteComponent(_){this.getProvider(_.name).isComponentSet()&&this.providers.delete(_.name),this.addComponent(_)}getProvider(_){if(this.providers.has(_))return this.providers.get(_);const C=new l(_,this);return this.providers.set(_,C),C}getProviders(){return Array.from(this.providers.values())}}},98812:(he,y,i)=>{"use strict";var e=i(15861),n=i(24303),o=i(84537),a=i(59058),l=i(81878);const u="@firebase/installations",d="0.6.8",s=1e4,A=`w:${d}`,_="FIS_v2",C="https://firebaseinstallations.googleapis.com/v1",R=36e5,w=new a.LL("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */function g(ki){return ki instanceof a.ZR&&ki.code.includes("request-failed")}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */function M({projectId:ki}){return`${C}/projects/${ki}/installations`}function p(ki){return{token:ki.token,requestStatus:2,expiresIn:P(ki.expiresIn),creationTime:Date.now()}}function E(ki,bo){return b.apply(this,arguments)}function b(){return(b=(0,e.Z)(function*(ki,bo){const wn=(yield bo.json()).error;return w.create("request-failed",{requestName:ki,serverCode:wn.code,serverMessage:wn.message,serverStatus:wn.status})})).apply(this,arguments)}function I({apiKey:ki}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":ki})}function D(ki){return F.apply(this,arguments)}function F(){return(F=(0,e.Z)(function*(ki){const bo=yield ki();return bo.status>=500&&bo.status<600?ki():bo})).apply(this,arguments)}function P(ki){return Number(ki.replace("s","000"))}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
function V(){return(V=(0,e.Z)(function*({appConfig:ki,heartbeatServiceProvider:bo},{fid:jo}){const wn=M(ki),Zi=I(ki),oo=bo.getImmediate({optional:!0});if(oo){const or=yield oo.getHeartbeatsHeader();or&&Zi.append("x-firebase-client",or)}const Xo={method:"POST",headers:Zi,body:JSON.stringify({fid:jo,authVersion:_,appId:ki.appId,sdkVersion:A})},Lo=yield D(()=>fetch(wn,Xo));if(Lo.ok){const or=yield Lo.json();return{fid:or.fid||jo,registrationStatus:2,refreshToken:or.refreshToken,authToken:p(or.authToken)}}throw yield E("Create Installation",Lo)})).apply(this,arguments)}function K(ki){return new Promise(bo=>{setTimeout(bo,ki)})}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
const me=/^[cdef][\w-]{21}$/,J="";function Q(){try{const ki=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(ki),ki[0]=112+ki[0]%16;const jo=function re(ki){return function X(ki){return btoa(String.fromCharCode(...ki)).replace(/\+/g,"-").replace(/\//g,"_")}(ki).substr(0,22)}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */(ki);return me.test(jo)?jo:J}catch{return J}}function de(ki){return`${ki.appName}!${ki.appId}`}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */const te=new Map;function j(ki,bo){const jo=de(ki);q(jo,bo),function se(ki,bo){const jo=function _e(){return!ne&&"BroadcastChannel"in self&&(ne=new BroadcastChannel("[Firebase] FID Change"),ne.onmessage=ki=>{q(ki.data.key,ki.data.fid)}),ne}();jo&&jo.postMessage({key:ki,fid:bo}),function ge(){0===te.size&&ne&&(ne.close(),ne=null)}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */()}(jo,bo)}function q(ki,bo){const jo=te.get(ki);if(jo)for(const wn of jo)wn(bo)}let ne=null;const Ce="firebase-installations-database",Te=1,De="firebase-installations-store";let fe=null;function xe(){return fe||(fe=(0,l.X3)(Ce,Te,{upgrade:(ki,bo)=>{0===bo&&ki.createObjectStore(De)}})),fe}function Oe(ki,bo){return Le.apply(this,arguments)}function Le(){return(Le=(0,e.Z)(function*(ki,bo){const jo=de(ki),Zi=(yield xe()).transaction(De,"readwrite"),oo=Zi.objectStore(De),Bi=yield oo.get(jo);return yield oo.put(bo,jo),yield Zi.done,(!Bi||Bi.fid!==bo.fid)&&j(ki,bo.fid),bo})).apply(this,arguments)}function Gt(ki){return Ut.apply(this,arguments)}function Ut(){return(Ut=(0,e.Z)(function*(ki){const bo=de(ki),wn=(yield xe()).transaction(De,"readwrite");yield wn.objectStore(De).delete(bo),yield wn.done})).apply(this,arguments)}function An(ki,bo){return $n.apply(this,arguments)}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */function $n(){return($n=(0,e.Z)(function*(ki,bo){const jo=de(ki),Zi=(yield xe()).transaction(De,"readwrite"),oo=Zi.objectStore(De),Bi=yield oo.get(jo),Xo=bo(Bi);return void 0===Xo?yield oo.delete(jo):yield oo.put(Xo,jo),yield Zi.done,Xo&&(!Bi||Bi.fid!==Xo.fid)&&j(ki,Xo.fid),Xo})).apply(this,arguments)}function xn(ki){return mt.apply(this,arguments)}function mt(){return mt=(0,e.Z)(function*(ki){let bo;const jo=yield An(ki.appConfig,wn=>{const Zi=function ut(ki){return Mi(ki||{fid:Q(),registrationStatus:0})}(wn),oo=function Wt(ki,bo){if(0===bo.registrationStatus){if(!navigator.onLine)return{installationEntry:bo,registrationPromise:Promise.reject(w.create("app-offline"))};const jo={fid:bo.fid,registrationStatus:1,registrationTime:Date.now()},wn=function dn(ki,bo){return sn.apply(this,arguments)}(ki,jo);return{installationEntry:jo,registrationPromise:wn}}return 1===bo.registrationStatus?{installationEntry:bo,registrationPromise:fn(ki)}:{installationEntry:bo}}(ki,Zi);return bo=oo.registrationPromise,oo.installationEntry});return jo.fid===J?{installationEntry:yield bo}:{installationEntry:jo,registrationPromise:bo}}),mt.apply(this,arguments)}function sn(){return sn=(0,e.Z)(function*(ki,bo){try{const jo=
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */yield function U(ki,bo){return V.apply(this,arguments)}(ki,bo);return Oe(ki.appConfig,jo)}catch(jo){throw g(jo)&&409===jo.customData.serverCode?yield Gt(ki.appConfig):yield Oe(ki.appConfig,{fid:bo.fid,registrationStatus:0}),jo}}),sn.apply(this,arguments)}function fn(ki){return yi.apply(this,arguments)}function yi(){return(yi=(0,e.Z)(function*(ki){let bo=yield nn(ki.appConfig);for(;1===bo.registrationStatus;)yield K(100),bo=yield nn(ki.appConfig);if(0===bo.registrationStatus){const{installationEntry:jo,registrationPromise:wn}=yield xn(ki);return wn||jo}return bo})).apply(this,arguments)}function nn(ki){return An(ki,bo=>{if(!bo)throw w.create("installation-not-found");return Mi(bo)})}function Mi(ki){return function mi(ki){return 1===ki.registrationStatus&&ki.registrationTime+s<Date.now()}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */(ki)?{fid:ki.fid,registrationStatus:0}:ki}function Ko(){return(Ko=(0,e.Z)(function*({appConfig:ki,heartbeatServiceProvider:bo},jo){const wn=function xo(ki,{fid:bo}){return`${M(ki)}/${bo}/authTokens:generate`}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */(ki,jo),Zi=function L(ki,{refreshToken:bo}){const jo=I(ki);return jo.append("Authorization",function O(ki){return`${_} ${ki}`}(bo)),jo}(ki,jo),oo=bo.getImmediate({optional:!0});if(oo){const or=yield oo.getHeartbeatsHeader();or&&Zi.append("x-firebase-client",or)}const Xo={method:"POST",headers:Zi,body:JSON.stringify({installation:{sdkVersion:A,appId:ki.appId}})},Lo=yield D(()=>fetch(wn,Xo));if(Lo.ok)return p(yield Lo.json());throw yield E("Generate Auth Token",Lo)})).apply(this,arguments)}function Bn(ki){return Xt.apply(this,arguments)}function Xt(){return Xt=(0,e.Z)(function*(ki,bo=!1){let jo;const wn=yield An(ki.appConfig,oo=>{if(!oi(oo))throw w.create("not-registered");const Bi=oo.authToken;if(!bo&&function It(ki){return 2===ki.requestStatus&&!function Bt(ki){const bo=Date.now();return bo<ki.creationTime||ki.creationTime+ki.expiresIn<bo+R}(ki)}(Bi))return oo;if(1===Bi.requestStatus)return jo=function Ji(ki,bo){return En.apply(this,arguments)}(ki,bo),oo;{if(!navigator.onLine)throw w.create("app-offline");const Xo=function xt(ki){const bo={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},ki),{authToken:bo})}(oo);return jo=function Ki(ki,bo){return Fn.apply(this,arguments)}(ki,Xo),Xo}});return jo?yield jo:wn.authToken}),Xt.apply(this,arguments)}function En(){return(En=(0,e.Z)(function*(ki,bo){let jo=yield un(ki.appConfig);for(;1===jo.authToken.requestStatus;)yield K(100),jo=yield un(ki.appConfig);const wn=jo.authToken;return 0===wn.requestStatus?Bn(ki,bo):wn})).apply(this,arguments)}function un(ki){return An(ki,bo=>{if(!oi(bo))throw w.create("not-registered");return function wt(ki){return 1===ki.requestStatus&&ki.requestTime+s<Date.now()}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */(bo.authToken)?Object.assign(Object.assign({},bo),{authToken:{requestStatus:0}}):bo})}function Fn(){return Fn=(0,e.Z)(function*(ki,bo){try{const jo=yield function Eo(ki,bo){return Ko.apply(this,arguments)}(ki,bo),wn=Object.assign(Object.assign({},bo),{authToken:jo});return yield Oe(ki.appConfig,wn),jo}catch(jo){if(!g(jo)||401!==jo.customData.serverCode&&404!==jo.customData.serverCode){const wn=Object.assign(Object.assign({},bo),{authToken:{requestStatus:0}});yield Oe(ki.appConfig,wn)}else yield Gt(ki.appConfig);throw jo}}),Fn.apply(this,arguments)}function oi(ki){return void 0!==ki&&2===ki.registrationStatus}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
function pt(){return(pt=(0,e.Z)(function*(ki){const bo=ki,{installationEntry:jo,registrationPromise:wn}=yield xn(bo);return wn?wn.catch(console.error):Bn(bo).catch(console.error),jo.fid})).apply(this,arguments)}function tt(){return tt=(0,e.Z)(function*(ki,bo=!1){const jo=ki;return yield function Ne(ki){return vt.apply(this,arguments)}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */(jo),(yield Bn(jo,bo)).token}),tt.apply(this,arguments)}function vt(){return(vt=(0,e.Z)(function*(ki){const{registrationPromise:bo}=yield xn(ki);bo&&(yield bo)})).apply(this,arguments)}function wi(ki){return w.create("missing-app-config-values",{valueName:ki})}
/**
         * @license
         * Copyright 2020 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */const hi="installations",Ei=ki=>{const bo=ki.getProvider("app").getImmediate(),jo=
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
function _i(ki){if(!ki||!ki.options)throw wi("App Configuration");if(!ki.name)throw wi("App Name");const bo=["projectId","apiKey","appId"];for(const jo of bo)if(!ki.options[jo])throw wi(jo);return{appName:ki.name,projectId:ki.options.projectId,apiKey:ki.options.apiKey,appId:ki.options.appId}}(bo);return{app:bo,appConfig:jo,heartbeatServiceProvider:(0,n._getProvider)(bo,"heartbeat"),_delete:()=>Promise.resolve()}},li=ki=>{const bo=ki.getProvider("app").getImmediate(),jo=(0,n._getProvider)(bo,hi).getImmediate();return{getId:()=>function Mt(ki){return pt.apply(this,arguments)}(jo),getToken:Zi=>function Lt(ki){return tt.apply(this,arguments)}(jo,Zi)}};(function Xi(){(0,n._registerComponent)(new o.wA(hi,Ei,"PUBLIC")),(0,n._registerComponent)(new o.wA("installations-internal",li,"PRIVATE"))})(),(0,n.registerVersion)(u,d),(0,n.registerVersion)(u,d,"esm2017")},87879:(he,y,i)=>{"use strict";i.d(y,{Am:()=>A,Ub:()=>s,Yd:()=>d});
/**
         * @license
         * Copyright 2017 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
const e=[];var n=function(_){return _[_.DEBUG=0]="DEBUG",_[_.VERBOSE=1]="VERBOSE",_[_.INFO=2]="INFO",_[_.WARN=3]="WARN",_[_.ERROR=4]="ERROR",_[_.SILENT=5]="SILENT",_}(n||{});const o={debug:n.DEBUG,verbose:n.VERBOSE,info:n.INFO,warn:n.WARN,error:n.ERROR,silent:n.SILENT},a=n.INFO,l={[n.DEBUG]:"log",[n.VERBOSE]:"log",[n.INFO]:"info",[n.WARN]:"warn",[n.ERROR]:"error"},u=(_,C,...R)=>{if(C<_.logLevel)return;const x=(new Date).toISOString(),f=l[C];if(!f)throw new Error(`Attempted to log a message with an invalid logType (value: ${C})`);console[f](`[${x}]  ${_.name}:`,...R)};class d{constructor(C){this.name=C,this._logLevel=a,this._logHandler=u,this._userLogHandler=null,e.push(this)}get logLevel(){return this._logLevel}set logLevel(C){if(!(C in n))throw new TypeError(`Invalid value "${C}" assigned to \`logLevel\``);this._logLevel=C}setLogLevel(C){this._logLevel="string"==typeof C?o[C]:C}get logHandler(){return this._logHandler}set logHandler(C){if("function"!=typeof C)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=C}get userLogHandler(){return this._userLogHandler}set userLogHandler(C){this._userLogHandler=C}debug(...C){this._userLogHandler&&this._userLogHandler(this,n.DEBUG,...C),this._logHandler(this,n.DEBUG,...C)}log(...C){this._userLogHandler&&this._userLogHandler(this,n.VERBOSE,...C),this._logHandler(this,n.VERBOSE,...C)}info(...C){this._userLogHandler&&this._userLogHandler(this,n.INFO,...C),this._logHandler(this,n.INFO,...C)}warn(...C){this._userLogHandler&&this._userLogHandler(this,n.WARN,...C),this._logHandler(this,n.WARN,...C)}error(...C){this._userLogHandler&&this._userLogHandler(this,n.ERROR,...C),this._logHandler(this,n.ERROR,...C)}}function s(_){e.forEach(C=>{C.setLogLevel(_)})}function A(_,C){for(const R of e){let x=null;C&&C.level&&(x=o[C.level]),R.userLogHandler=null===_?null:(f,k,...w)=>{const g=w.map(M=>{if(null==M)return null;if("string"==typeof M)return M;if("number"==typeof M||"boolean"==typeof M)return M.toString();if(M instanceof Error)return M.message;try{return JSON.stringify(M)}catch{return null}}).filter(M=>M).join(" ");k>=(x??f.logLevel)&&_({level:n[k].toLowerCase(),message:g,args:w,type:f.name})}}}},62650:(he,y,i)=>{"use strict";i.d(y,{Gb:()=>vt,LP:()=>ot,pQ:()=>_i,ps:()=>wi});var e=i(15861),o=(i(98812),i(84537)),a=i(81878),l=i(59058),u=i(24303);
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */const d="/firebase-messaging-sw.js",s="/firebase-cloud-messaging-push-scope",A="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",_="https://fcmregistrations.googleapis.com/v1",C="google.c.a.c_id",R="google.c.a.c_l",x="google.c.a.ts";var w=function(hi){return hi.PUSH_RECEIVED="push-received",hi.NOTIFICATION_CLICKED="notification-clicked",hi}(w||{});
/**
         * @license
         * Copyright 2018 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
         * in compliance with the License. You may obtain a copy of the License at
         *
         * http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software distributed under the License
         * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
         * or implied. See the License for the specific language governing permissions and limitations under
         * the License.
         */
/**
         * @license
         * Copyright 2017 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
function g(hi){const zn=new Uint8Array(hi);return btoa(String.fromCharCode(...zn)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function M(hi){const Ei=(hi+"=".repeat((4-hi.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),li=atob(Ei),Xi=new Uint8Array(li.length);for(let ki=0;ki<li.length;++ki)Xi[ki]=li.charCodeAt(ki);return Xi}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */const p="fcm_token_details_db",E=5,b="fcm_token_object_Store";function L(){return L=(0,e.Z)(function*(hi){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(ki=>ki.name).includes(p))return null;let zn=null;return(yield(0,a.X3)(p,E,{upgrade:(li=(0,e.Z)(function*(Xi,ki,bo,jo){var wn;if(ki<2||!Xi.objectStoreNames.contains(b))return;const Zi=jo.objectStore(b),oo=yield Zi.index("fcmSenderId").get(hi);if(yield Zi.clear(),oo)if(2===ki){const Bi=oo;if(!Bi.auth||!Bi.p256dh||!Bi.endpoint)return;zn={token:Bi.fcmToken,createTime:null!==(wn=Bi.createTime)&&void 0!==wn?wn:Date.now(),subscriptionOptions:{auth:Bi.auth,p256dh:Bi.p256dh,endpoint:Bi.endpoint,swScope:Bi.swScope,vapidKey:"string"==typeof Bi.vapidKey?Bi.vapidKey:g(Bi.vapidKey)}}}else if(3===ki){const Bi=oo;zn={token:Bi.fcmToken,createTime:Bi.createTime,subscriptionOptions:{auth:g(Bi.auth),p256dh:g(Bi.p256dh),endpoint:Bi.endpoint,swScope:Bi.swScope,vapidKey:g(Bi.vapidKey)}}}else if(4===ki){const Bi=oo;zn={token:Bi.fcmToken,createTime:Bi.createTime,subscriptionOptions:{auth:g(Bi.auth),p256dh:g(Bi.p256dh),endpoint:Bi.endpoint,swScope:Bi.swScope,vapidKey:g(Bi.vapidKey)}}}}),function(ki,bo,jo,wn){return li.apply(this,arguments)})})).close(),yield(0,a.Lj)(p),yield(0,a.Lj)("fcm_vapid_details_db"),yield(0,a.Lj)("undefined"),function D(hi){if(!hi||!hi.subscriptionOptions)return!1;const{subscriptionOptions:zn}=hi;return"number"==typeof hi.createTime&&hi.createTime>0&&"string"==typeof hi.token&&hi.token.length>0&&"string"==typeof zn.auth&&zn.auth.length>0&&"string"==typeof zn.p256dh&&zn.p256dh.length>0&&"string"==typeof zn.endpoint&&zn.endpoint.length>0&&"string"==typeof zn.swScope&&zn.swScope.length>0&&"string"==typeof zn.vapidKey&&zn.vapidKey.length>0}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */(zn)?zn:null;var li}),L.apply(this,arguments)}const F="firebase-messaging-database",P=1,O="firebase-messaging-store";let U=null;function V(){return U||(U=(0,a.X3)(F,P,{upgrade:(hi,zn)=>{0===zn&&hi.createObjectStore(O)}})),U}function K(hi){return X.apply(this,arguments)}function X(){return X=(0,e.Z)(function*(hi){const zn=de(hi),li=yield(yield V()).transaction(O).objectStore(O).get(zn);if(li)return li;{const Xi=yield function I(hi){return L.apply(this,arguments)}(hi.appConfig.senderId);if(Xi)return yield me(hi,Xi),Xi}}),X.apply(this,arguments)}function me(hi,zn){return J.apply(this,arguments)}function J(){return(J=(0,e.Z)(function*(hi,zn){const Ei=de(hi),Xi=(yield V()).transaction(O,"readwrite");return yield Xi.objectStore(O).put(zn,Ei),yield Xi.done,zn})).apply(this,arguments)}function re(){return(re=(0,e.Z)(function*(hi){const zn=de(hi),li=(yield V()).transaction(O,"readwrite");yield li.objectStore(O).delete(zn),yield li.done})).apply(this,arguments)}function de({appConfig:hi}){return hi.appId}
/**
         * @license
         * Copyright 2017 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */const j=new l.LL("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."});
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */function H(hi,zn){return z.apply(this,arguments)}function z(){return(z=(0,e.Z)(function*(hi,zn){const Ei=yield Ce(hi),li=De(zn),Xi={method:"POST",headers:Ei,body:JSON.stringify(li)};let ki;try{ki=yield(yield fetch(ge(hi.appConfig),Xi)).json()}catch(bo){throw j.create("token-subscribe-failed",{errorInfo:bo?.toString()})}if(ki.error)throw j.create("token-subscribe-failed",{errorInfo:ki.error.message});if(!ki.token)throw j.create("token-subscribe-no-token");return ki.token})).apply(this,arguments)}function se(){return(se=(0,e.Z)(function*(hi,zn){const Ei=yield Ce(hi),li=De(zn.subscriptionOptions),Xi={method:"PATCH",headers:Ei,body:JSON.stringify(li)};let ki;try{ki=yield(yield fetch(`${ge(hi.appConfig)}/${zn.token}`,Xi)).json()}catch(bo){throw j.create("token-update-failed",{errorInfo:bo?.toString()})}if(ki.error)throw j.create("token-update-failed",{errorInfo:ki.error.message});if(!ki.token)throw j.create("token-update-no-token");return ki.token})).apply(this,arguments)}function ne(hi,zn){return _e.apply(this,arguments)}function _e(){return(_e=(0,e.Z)(function*(hi,zn){const li={method:"DELETE",headers:yield Ce(hi)};try{const ki=yield(yield fetch(`${ge(hi.appConfig)}/${zn}`,li)).json();if(ki.error)throw j.create("token-unsubscribe-failed",{errorInfo:ki.error.message})}catch(Xi){throw j.create("token-unsubscribe-failed",{errorInfo:Xi?.toString()})}})).apply(this,arguments)}function ge({projectId:hi}){return`${_}/projects/${hi}/registrations`}function Ce(hi){return Te.apply(this,arguments)}function Te(){return(Te=(0,e.Z)(function*({appConfig:hi,installations:zn}){const Ei=yield zn.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":hi.apiKey,"x-goog-firebase-installations-auth":`FIS ${Ei}`})})).apply(this,arguments)}function De({p256dh:hi,auth:zn,endpoint:Ei,vapidKey:li}){const Xi={web:{endpoint:Ei,auth:zn,p256dh:hi}};return li!==A&&(Xi.web.applicationPubKey=li),Xi
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */}const fe=6048e5;function Oe(){return Oe=(0,e.Z)(function*(hi){const zn=yield function mt(hi,zn){return ut.apply(this,arguments)}(hi.swRegistration,hi.vapidKey),Ei={vapidKey:hi.vapidKey,swScope:hi.swRegistration.scope,endpoint:zn.endpoint,auth:g(zn.getKey("auth")),p256dh:g(zn.getKey("p256dh"))},li=yield K(hi.firebaseDependencies);if(li){if(function Wt(hi,zn){return zn.vapidKey===hi.vapidKey&&zn.endpoint===hi.endpoint&&zn.auth===hi.auth&&zn.p256dh===hi.p256dh}
/**
         * @license
         * Copyright 2020 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */(li.subscriptionOptions,Ei))return Date.now()>=li.createTime+fe?function Ut(hi,zn){return An.apply(this,arguments)}(hi,{token:li.token,createTime:Date.now(),subscriptionOptions:Ei}):li.token;try{yield ne(hi.firebaseDependencies,li.token)}catch(Xi){console.warn(Xi)}return $n(hi.firebaseDependencies,Ei)}return $n(hi.firebaseDependencies,Ei)}),Oe.apply(this,arguments)}function Gt(){return Gt=(0,e.Z)(function*(hi){const zn=yield K(hi.firebaseDependencies);zn&&(yield ne(hi.firebaseDependencies,zn.token),yield function Q(hi){return re.apply(this,arguments)}(hi.firebaseDependencies));const Ei=yield hi.swRegistration.pushManager.getSubscription();return!Ei||Ei.unsubscribe()}),Gt.apply(this,arguments)}function An(){return An=(0,e.Z)(function*(hi,zn){try{const Ei=yield function q(hi,zn){return se.apply(this,arguments)}(hi.firebaseDependencies,zn),li=Object.assign(Object.assign({},zn),{token:Ei,createTime:Date.now()});return yield me(hi.firebaseDependencies,li),Ei}catch(Ei){throw Ei}}),An.apply(this,arguments)}function $n(hi,zn){return xn.apply(this,arguments)}function xn(){return(xn=(0,e.Z)(function*(hi,zn){const li={token:yield H(hi,zn),createTime:Date.now(),subscriptionOptions:zn};return yield me(hi,li),li.token})).apply(this,arguments)}function ut(){return(ut=(0,e.Z)(function*(hi,zn){return(yield hi.pushManager.getSubscription())||hi.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:M(zn)})})).apply(this,arguments)}function dn(hi){const zn={from:hi.from,collapseKey:hi.collapse_key,messageId:hi.fcmMessageId};return function sn(hi,zn){if(!zn.notification)return;hi.notification={};const Ei=zn.notification.title;Ei&&(hi.notification.title=Ei);const li=zn.notification.body;li&&(hi.notification.body=li);const Xi=zn.notification.image;Xi&&(hi.notification.image=Xi);const ki=zn.notification.icon;ki&&(hi.notification.icon=ki)}(zn,hi),function fn(hi,zn){zn.data&&(hi.data=zn.data)}(zn,hi),function yi(hi,zn){var Ei,li,Xi,ki,bo;if(!(zn.fcmOptions||null!==(Ei=zn.notification)&&void 0!==Ei&&Ei.click_action))return;hi.fcmOptions={};const jo=null!==(Xi=null===(li=zn.fcmOptions)||void 0===li?void 0:li.link)&&void 0!==Xi?Xi:null===(ki=zn.notification)||void 0===ki?void 0:ki.click_action;jo&&(hi.fcmOptions.link=jo);const wn=null===(bo=zn.fcmOptions)||void 0===bo?void 0:bo.analytics_label;wn&&(hi.fcmOptions.analyticsLabel=wn)}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */(zn,hi),zn}function Mi(hi,zn){const Ei=[];for(let li=0;li<hi.length;li++)Ei.push(hi.charAt(li)),li<zn.length&&Ei.push(zn.charAt(li));return Ei.join("")}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */function Eo(hi){return j.create("missing-app-config-values",{valueName:hi})}
/**
         * @license
         * Copyright 2020 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
Mi("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),Mi("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class Ko{constructor(zn,Ei,li){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const Xi=function mi(hi){if(!hi||!hi.options)throw Eo("App Configuration Object");if(!hi.name)throw Eo("App Name");const zn=["projectId","apiKey","appId","messagingSenderId"],{options:Ei}=hi;for(const li of zn)if(!Ei[li])throw Eo(li);return{appName:hi.name,projectId:Ei.projectId,apiKey:Ei.apiKey,appId:Ei.appId,senderId:Ei.messagingSenderId}}(zn);this.firebaseDependencies={app:zn,appConfig:Xi,installations:Ei,analyticsProvider:li}}_delete(){return Promise.resolve()}}
/**
         * @license
         * Copyright 2020 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */function xo(hi){return Bn.apply(this,arguments)}
/**
         * @license
         * Copyright 2020 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */function Bn(){return(Bn=(0,e.Z)(function*(hi){try{hi.swRegistration=yield navigator.serviceWorker.register(d,{scope:s}),hi.swRegistration.update().catch(()=>{})}catch(zn){throw j.create("failed-service-worker-registration",{browserErrorMessage:zn?.message})}})).apply(this,arguments)}
/**
         * @license
         * Copyright 2020 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
function Ji(){return(Ji=(0,e.Z)(function*(hi,zn){if(!zn&&!hi.swRegistration&&(yield xo(hi)),zn||!hi.swRegistration){if(!(zn instanceof ServiceWorkerRegistration))throw j.create("invalid-sw-registration");hi.swRegistration=zn}})).apply(this,arguments)}
/**
         * @license
         * Copyright 2020 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
function un(){return(un=(0,e.Z)(function*(hi,zn){zn?hi.vapidKey=zn:hi.vapidKey||(hi.vapidKey=A)})).apply(this,arguments)}function Ki(hi,zn){return Fn.apply(this,arguments)}
/**
         * @license
         * Copyright 2019 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */function Fn(){return Fn=(0,e.Z)(function*(hi,zn){if(!navigator)throw j.create("only-available-in-window");if("default"===Notification.permission&&(yield Notification.requestPermission()),"granted"!==Notification.permission)throw j.create("permission-blocked");return yield function En(hi,zn){return un.apply(this,arguments)}(hi,zn?.vapidKey),yield function Xt(hi,zn){return Ji.apply(this,arguments)}(hi,zn?.serviceWorkerRegistration),function xe(hi){return Oe.apply(this,arguments)}(hi)}),Fn.apply(this,arguments)}function It(){return(It=(0,e.Z)(function*(hi,zn,Ei){const li=function Bt(hi){switch(hi){case w.NOTIFICATION_CLICKED:return"notification_open";case w.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}
/**
         * @license
         * Copyright 2017 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */(zn);(yield hi.firebaseDependencies.analyticsProvider.get()).logEvent(li,{message_id:Ei[C],message_name:Ei[R],message_time:Ei[x],message_device_time:Math.floor(Date.now()/1e3)})})).apply(this,arguments)}function wt(){return wt=(0,e.Z)(function*(hi,zn){const Ei=zn.data;if(!Ei.isFirebaseMessaging)return;hi.onMessageHandler&&Ei.messageType===w.PUSH_RECEIVED&&("function"==typeof hi.onMessageHandler?hi.onMessageHandler(dn(Ei)):hi.onMessageHandler.next(dn(Ei)));const li=Ei.data;(function nn(hi){return"object"==typeof hi&&!!hi&&C in hi})(li)&&"1"===li["google.c.a.e"]&&(yield function oi(hi,zn,Ei){return It.apply(this,arguments)}(hi,Ei.messageType,li))}),wt.apply(this,arguments)}const Mt="@firebase/messaging",pt="0.12.10",Lt=hi=>{const zn=new Ko(hi.getProvider("app").getImmediate(),hi.getProvider("installations-internal").getImmediate(),hi.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",Ei=>function xt(hi,zn){return wt.apply(this,arguments)}(zn,Ei)),zn},tt=hi=>{const zn=hi.getProvider("messaging").getImmediate();return{getToken:li=>Ki(zn,li)}};
/**
         * @license
         * Copyright 2020 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
/**
         * @license
         * Copyright 2020 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
function vt(){return ln.apply(this,arguments)}
/**
         * @license
         * Copyright 2020 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */function ln(){return(ln=(0,e.Z)(function*(){try{yield(0,l.eu)()}catch{return!1}return typeof window<"u"&&(0,l.hl)()&&(0,l.zI)()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")})).apply(this,arguments)}
/**
         * @license
         * Copyright 2020 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */
function Pi(){return Pi=(0,e.Z)(function*(hi){if(!navigator)throw j.create("only-available-in-window");return hi.swRegistration||(yield xo(hi)),function Le(hi){return Gt.apply(this,arguments)}(hi)}),Pi.apply(this,arguments)}function ot(hi,zn){return pn.apply(this,arguments)}function pn(){return(pn=(0,e.Z)(function*(hi,zn){return Ki(hi=(0,l.m9)(hi),zn)})).apply(this,arguments)}function _i(hi){return function jn(hi){return Pi.apply(this,arguments)}(hi=(0,l.m9)(hi))}function wi(hi,zn){return function go(hi,zn){if(!navigator)throw j.create("only-available-in-window");return hi.onMessageHandler=zn,()=>{hi.onMessageHandler=null}
/**
         * @license
         * Copyright 2017 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */}(hi=(0,l.m9)(hi),zn)}!function Ne(){(0,u._registerComponent)(new o.wA("messaging",Lt,"PUBLIC")),(0,u._registerComponent)(new o.wA("messaging-internal",tt,"PRIVATE")),(0,u.registerVersion)(Mt,pt),(0,u.registerVersion)(Mt,pt,"esm2017")}()},86439:(he,y,i)=>{"use strict";i.d(y,{XI:()=>V,k4:()=>O});var e=i(65879),n=i(65592),o=i(46517),a=i(6990),l=i(22851),u=i(12866),d=i(96814);const s=["formio"];function A(te,j){1&te&&(e.TgZ(0,"div",1),e._UZ(1,"div",2),e.qZA())}function _(te,j){if(1&te){const H=e.EpF();e.TgZ(0,"div",1),e.NdJ("click",function(q){const ne=e.CHM(H).$implicit,_e=e.oxw();return e.KtG(_e.getComponent(q,ne))}),e._uU(1),e.ALo(2,"parseHtmlContent"),e.qZA()}if(2&te){const H=j.$implicit;e.Gre("alert alert-",H.type,""),e.xp6(1),e.hij(" ",e.lcZ(2,4,H.message),"\n")}}function C(te,j){if(1&te&&(e.TgZ(0,"div",4),e._UZ(1,"formio-loader",5),e.qZA()),2&te){const H=e.oxw();e.xp6(1),e.Q6J("isLoading",H.isLoading)}}function R(te,j){if(1&te){const H=e.EpF();e.TgZ(0,"formio-alerts",6),e.NdJ("focusComponent",function(q){e.CHM(H);const se=e.oxw();return e.KtG(se.focusOnComponet(q))}),e.qZA()}if(2&te){const H=e.oxw();e.Q6J("alerts",H.alerts)}}function x(te,j){if(1&te){const H=e.EpF();e.TgZ(0,"formio-alerts",6),e.NdJ("focusComponent",function(q){e.CHM(H);const se=e.oxw();return e.KtG(se.focusOnComponet(q))}),e.qZA()}if(2&te){const H=e.oxw();e.Q6J("alerts",H.alerts)}}let k=(()=>{class te{constructor(){this.appUrl="",this.apiUrl=""}}return te.\u0275fac=function(H){return new(H||te)},te.\u0275prov=e.Yz7({token:te,factory:te.\u0275fac}),te})();class g{constructor(j,H){this.url=j,this.options=H,this.formio=new o.r8(this.url,this.options)}requestWrapper(j){let H,z=!1;return n.y.create(q=>{try{z?H&&(q.next(H),q.complete()):(z=!0,j().then(se=>{H=se,q.next(H),q.complete()}).catch(se=>q.error(se)))}catch(se){q.error(se)}})}saveForm(j,H){return this.requestWrapper(()=>this.formio.saveForm(j,H))}loadForm(j,H){return this.requestWrapper(()=>this.formio.loadForm(j,H))}loadForms(j,H){return this.requestWrapper(()=>this.formio.loadForms(j,H))}loadSubmission(j,H){return this.requestWrapper(()=>this.formio.loadSubmission(j,H))}userPermissions(j,H,z){return this.requestWrapper(()=>this.formio.userPermissions(j,H,z))}deleteSubmission(j,H){return this.requestWrapper(()=>this.formio.deleteSubmission(j,H))}saveSubmission(j,H){return this.requestWrapper(()=>this.formio.saveSubmission(j,H))}loadSubmissions(j,H){return this.requestWrapper(()=>this.formio.loadSubmissions(j,H))}}class E{constructor(){this.alerts=[]}setAlert(j){this.alerts=[j]}addAlert(j){this.alerts.push(j)}setAlerts(j){this.alerts=j}}var b=function(te){return te[te.none=0]="none",te[te.top=1]="top",te[te.bottom=2]="bottom",te[te.both=3]="both",te}(b||{});let I=(()=>{class te{constructor(){this.tags=[]}addCustomTag(H){this.tags.push(H)}}return te.\u0275fac=function(H){return new(H||te)},te.\u0275prov=e.Yz7({token:te,factory:te.\u0275fac}),te})(),L=(()=>{class te{constructor(H,z,q){this.ngZone=H,this.config=z,this.customTags=q,this.submission={},this.noeval=l.noeval,this.readOnly=!1,this.viewOnly=!1,this.hooks={},this.watchSubmissionErrors=!1,this.dataTableActions=[],this.render=new e.vpe,this.customEvent=new e.vpe,this.fileUploadingStatus=new e.vpe,this.submit=new e.vpe,this.prevPage=new e.vpe,this.nextPage=new e.vpe,this.beforeSubmit=new e.vpe,this.rowAdd=new e.vpe,this.rowAdded=new e.vpe,this.rowEdit=new e.vpe,this.rowEdited=new e.vpe,this.rowDelete=new e.vpe,this.rowClick=new e.vpe,this.rowSelectChange=new e.vpe,this.change=new e.vpe,this.invalid=new e.vpe,this.errorChange=new e.vpe,this.formLoad=new e.vpe,this.submissionLoad=new e.vpe,this.ready=new e.vpe,this.AlertsPosition=b,this.initialized=!1,this.alerts=new E,this.submitting=!1,this.submissionSuccess=!1,this.isLoading=!0,this.formioReady=new Promise(se=>{this.formioReadyResolve=se})}getRenderer(){return this.renderer}getRendererOptions(){const H=this.customTags?this.customTags.tags:[];return(0,a.assign)({},{icons:(0,a.get)(this.config,"icons","fontawesome"),noAlerts:(0,a.get)(this.options,"noAlerts",!0),readOnly:this.readOnly,viewAsHtml:this.viewOnly,i18n:(0,a.get)(this.options,"i18n",null),fileService:(0,a.get)(this.options,"fileService",null),hooks:this.hooks,sanitizeConfig:{addTags:H},dataTableActions:this.dataTableActions},this.renderOptions||{})}createRenderer(){return new(this.getRenderer())(this.formioElement?this.formioElement.nativeElement:null,this.form,this.getRendererOptions()).instance}setForm(H){return this.form=H,this.formio&&this.formio.destroy(),this.form.title?this.label=this.form.title:this.form.components&&this.form.components[0]&&(this.label=this.form.components[0].label),this.formioElement&&this.formioElement.nativeElement&&(this.formioElement.nativeElement.innerHTML=""),this.formio=this.createRenderer(),this.formio.submission=this.submission,this.renderOptions&&this.renderOptions.validateOnInit&&this.formio.setValue(this.submission,{validateOnInit:!0}),this.url&&this.formio.setUrl(this.url,this.formioOptions||{}),this.src&&this.formio.setUrl(this.src,this.formioOptions||{}),this.formio.nosubmit=!0,this.formio.on("prevPage",z=>this.ngZone.run(()=>this.onPrevPage(z))),this.formio.on("nextPage",z=>this.ngZone.run(()=>this.onNextPage(z))),this.formio.on("change",(z,q,se)=>this.ngZone.run(()=>this.onChange(z,q,se))),this.formio.on("rowAdd",()=>this.ngZone.run(()=>this.rowAdd.emit())),this.formio.on("rowAdded",z=>this.ngZone.run(()=>this.rowAdded.emit(z))),this.formio.on("rowEdit",(z,q,se)=>this.ngZone.run(()=>this.rowEdit.emit({...z,rowIndex:q,index:se}))),this.formio.on("rowEdited",(z,q)=>this.ngZone.run(()=>this.rowEdited.emit({...z,rowIndex:q}))),this.formio.on("rowDelete",(z,q,se)=>this.ngZone.run(()=>this.rowDelete.emit({...z,rowIndex:q,index:se}))),this.formio.on("rowClick",(z,q,se)=>this.ngZone.run(()=>this.rowClick.emit({...z,rowIndex:q,index:se}))),this.formio.on("rowSelectChange",z=>this.ngZone.run(()=>this.rowSelectChange.emit(z))),this.formio.on("customEvent",z=>this.ngZone.run(()=>this.customEvent.emit(z))),["fileUploadingStart","fileUploadingEnd"].forEach((z,q)=>{const se=q?"end":"start";this.formio.on(z,()=>this.ngZone.run(()=>this.fileUploadingStatus.emit(se)))}),this.formio.on("submit",(z,q)=>this.ngZone.run(()=>this.submitForm(z,q))),this.formio.on("error",z=>this.ngZone.run(()=>(this.submissionSuccess=!1,this.onError(z)))),this.formio.on("render",()=>this.ngZone.run(()=>this.render.emit())),this.formio.on("formLoad",z=>this.ngZone.run(()=>this.formLoad.emit(z))),this.formio.ready.then(()=>(this.ngZone.run(()=>{this.isLoading=!1,this.ready.emit(this),this.formioReadyResolve(this.formio),this.formio.submissionReady&&this.formio.submissionReady.then(z=>{this.submissionLoad.emit(z)})}),this.formio))}initialize(){this.initialized||(this.options=Object.assign({errors:{message:"Please fix the following errors before submitting."},alerts:{submitMessage:"Submission Complete."},disableAlerts:!1,hooks:{beforeSubmit:null},sanitizeConfig:{addTags:this.customTags?this.customTags.tags:[]},alertsPosition:b.top},this.options),this.options.disableAlerts&&(this.options.alertsPosition=b.none),this.initialized=!0)}ngOnInit(){l.noeval=this.noeval,this.initialize(),this.language&&("string"==typeof this.language?this.formio.language=this.language:this.language.subscribe(H=>{this.formio.language=H})),this.refresh&&this.refresh.subscribe(H=>this.onRefresh(H)),this.error&&this.error.subscribe(H=>this.onError(H)),this.success&&this.success.subscribe(H=>{this.alerts.setAlert({type:"success",message:H||(0,a.get)(this.options,"alerts.submitMessage")})}),this.src&&(this.service||(this.service=new g(this.src)),this.isLoading=!0,this.service.loadForm({params:{live:1}}).subscribe(H=>{H&&H.components&&this.ngZone.runOutsideAngular(()=>{this.setForm(H)}),(0,a.isEmpty)(this.submission)&&this.service&&this.service.formio.submissionId&&this.service.loadSubmission().subscribe(z=>{this.readOnly&&(this.formio.options.readOnly=!0),this.submission=this.formio.submission=z},z=>this.onError(z))},H=>this.onError(H))),this.url&&!this.service&&(this.service=new g(this.url))}ngOnDestroy(){this.formio&&this.formio.destroy()}onRefresh(H){this.formioReady.then(()=>{if(H.form)this.formio.setForm(H.form).then(()=>{H.submission&&this.formio.setSubmission(H.submission)});else if(H.submission)this.formio.setSubmission(H.submission);else switch(H.property){case"submission":this.formio.submission=H.value;break;case"form":this.formio.form=H.value}})}ngOnChanges(H){l.noeval=this.noeval,this.initialize(),H.form&&H.form.currentValue&&this.ngZone.runOutsideAngular(()=>{this.setForm(H.form.currentValue)}),this.formioReady.then(()=>{if(H.submission&&H.submission.currentValue&&this.formio.setSubmission(H.submission.currentValue,{fromSubmission:!H.submission.firstChange}),H.hideComponents&&H.hideComponents.currentValue){const z=H.hideComponents.currentValue;this.formio.options.hide=z,this.formio.everyComponent(q=>{q.options.hide=z,z.includes(q.component.key)&&(q.visible=!1)})}})}onPrevPage(H){this.alerts.setAlerts([]),this.prevPage.emit(H)}onNextPage(H){this.alerts.setAlerts([]),this.nextPage.emit(H)}onSubmit(H,z,q){this.submitting=!1,this.submissionSuccess=!0,this.formio.setValue((0,u.fastCloneDeep)(H),{noValidate:!0,noCheck:!0}),z&&this.formio.emit("submitDone",H),q||this.submit.emit(H),this.success||this.alerts.setAlert({type:"success",message:(0,a.get)(this.options,"alerts.submitMessage")})}onError(H){if(this.alerts.setAlerts([]),this.submitting=!1,this.isLoading=!1,!H)return;const z=Array.isArray(H)?H:[H];this.errorChange.emit(z),!H.silent&&(this.formio&&z.length&&this.formio.emit("submitError",z),z.forEach(q=>{const{message:se,paths:ne}=q?q.details?{message:q.details.map(ge=>ge.message),paths:q.details.map(ge=>ge.path)}:{message:q.message||q.toString(),paths:q.path?[q.path]:[]}:{message:"",paths:[]};let _e=!0;this.formio&&(ne.forEach((ge,Ce)=>{const Te=this.formio.getComponent(ge);if(Te){const De=Array.isArray(Te)?Te:[Te],fe=Array.isArray(se)?se[Ce]:se;De.forEach(xe=>xe.setCustomValidity(fe,!0)),this.alerts.addAlert({type:"danger",message:se[Ce],component:Te}),_e=!1}}),window.VPAT_ENABLED&&"string"==typeof q&&this.formio.components&&this.formio.components.forEach(ge=>{ge&&"button"!==ge.type&&ge.setCustomValidity(se,!0)}),this.noAlerts||this.formio.showErrors()),_e&&this.alerts.addAlert({type:"danger",message:se,component:q.component})}))}focusOnComponet(H){this.formio&&this.formio.focusOnComponent(H)}submitExecute(H,z=!1){!this.service||this.url||z?this.onSubmit(H,!1):this.service.saveSubmission(H).subscribe(q=>this.onSubmit(q,!0),q=>this.onError(q))}submitForm(H,z=!1){if(this.submitting)return;this.formio.setMetadata(H),this.submissionSuccess=!1,this.submitting=!0,this.beforeSubmit.emit(H);const q=(0,a.get)(this.options,"hooks.beforeSubmit");q?q(H,(se,ne)=>{se?this.onError(se):this.submitExecute(ne,z)}):this.submitExecute(H,z)}onChange(H,z,q){if(this.watchSubmissionErrors&&!this.submissionSuccess){const se=(0,a.get)(this,"formio.errors",[]),ne=(0,a.get)(this,"alerts.alerts",[]);(0,a.get)(this,"formio.submitted",!1)&&(se.length||ne.length)&&this.onError(se)}return this.change.emit({...H,flags:z,isModified:q})}}return te.\u0275fac=function(H){return new(H||te)(e.Y36(e.R0b),e.Y36(k,8),e.Y36(I,8))},te.\u0275cmp=e.Xpm({type:te,selectors:[["ng-component"]],viewQuery:function(H,z){if(1&H&&e.Gf(s,7),2&H){let q;e.iGM(q=e.CRH())&&(z.formioElement=q.first)}},inputs:{form:"form",submission:"submission",src:"src",url:"url",service:"service",options:"options",noeval:"noeval",formioOptions:"formioOptions",renderOptions:"renderOptions",readOnly:"readOnly",viewOnly:"viewOnly",hideComponents:"hideComponents",refresh:"refresh",error:"error",success:"success",language:"language",hooks:"hooks",renderer:"renderer",watchSubmissionErrors:"watchSubmissionErrors",dataTableActions:"dataTableActions"},outputs:{render:"render",customEvent:"customEvent",fileUploadingStatus:"fileUploadingStatus",submit:"submit",prevPage:"prevPage",nextPage:"nextPage",beforeSubmit:"beforeSubmit",rowAdd:"rowAdd",rowAdded:"rowAdded",rowEdit:"rowEdit",rowEdited:"rowEdited",rowDelete:"rowDelete",rowClick:"rowClick",rowSelectChange:"rowSelectChange",change:"change",invalid:"invalid",errorChange:"errorChange",formLoad:"formLoad",submissionLoad:"submissionLoad",ready:"ready"},features:[e.TTD],decls:0,vars:0,template:function(H,z){},encapsulation:2}),te})(),D=(()=>{class te{}return te.\u0275fac=function(H){return new(H||te)},te.\u0275cmp=e.Xpm({type:te,selectors:[["formio-loader"]],inputs:{isLoading:"isLoading"},decls:1,vars:1,consts:[["class","formio-loader-wrapper",4,"ngIf"],[1,"formio-loader-wrapper"],[1,"formio-loader"]],template:function(H,z){1&H&&e.YNc(0,A,2,0,"div",0),2&H&&e.Q6J("ngIf",z.isLoading)},dependencies:[d.O5],styles:[".formio-loader-wrapper[_ngcontent-%COMP%]{position:absolute;top:0px;bottom:0px;left:0px;right:0px;z-index:1000}.formio-loader[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;margin-left:-30px;margin-top:-30px;z-index:10000;display:inline-block;border:6px solid #f3f3f3;border-top:6px solid #3498db;border-radius:50%;width:60px;height:60px;animation:_ngcontent-%COMP%_spin 2s linear infinite}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),te})(),F=(()=>{class te{transform(H){return(new DOMParser).parseFromString(H,"text/html").body.childNodes[0]?.textContent}}return te.\u0275fac=function(H){return new(H||te)},te.\u0275pipe=e.Yjl({name:"parseHtmlContent",type:te,pure:!1}),te})(),P=(()=>{class te{constructor(){this.focusComponent=new e.vpe}ngOnInit(){this.alerts||(this.alerts=new E)}getComponent(H,z){this.focusComponent.emit(z.component.key)}}return te.\u0275fac=function(H){return new(H||te)},te.\u0275cmp=e.Xpm({type:te,selectors:[["formio-alerts"]],inputs:{alerts:"alerts"},outputs:{focusComponent:"focusComponent"},decls:1,vars:1,consts:[["role","alert",3,"class","click",4,"ngFor","ngForOf"],["role","alert",3,"click"]],template:function(H,z){1&H&&e.YNc(0,_,3,6,"div",0),2&H&&e.Q6J("ngForOf",z.alerts.alerts)},dependencies:[d.sg,F],encapsulation:2}),te})(),O=(()=>{class te extends L{constructor(H,z,q){super(H,z,q),this.ngZone=H,this.config=z,this.customTags=q,this.config?(o.r8.setBaseUrl(this.config.apiUrl),o.r8.setProjectUrl(this.config.appUrl)):console.warn("You must provide an AppConfig within your application!")}getRenderer(){return this.renderer||o.l0}}return te.\u0275fac=function(H){return new(H||te)(e.Y36(e.R0b),e.Y36(k,8),e.Y36(I,8))},te.\u0275cmp=e.Xpm({type:te,selectors:[["formio"]],features:[e.qOj],decls:6,vars:4,consts:[["role","form"],["style","position:relative;height:200px",4,"ngIf"],[3,"alerts","focusComponent",4,"ngIf"],["formio",""],[2,"position","relative","height","200px"],[3,"isLoading"],[3,"alerts","focusComponent"]],template:function(H,z){1&H&&(e.TgZ(0,"div",0),e.YNc(1,C,2,1,"div",1),e.YNc(2,R,1,1,"formio-alerts",2),e._UZ(3,"div",null,3),e.YNc(5,x,1,1,"formio-alerts",2),e.qZA()),2&H&&(e.uIk("aria-label",z.label),e.xp6(1),e.Q6J("ngIf",z.isLoading),e.xp6(1),e.Q6J("ngIf",z.options.alertsPosition===z.AlertsPosition.top||z.options.alertsPosition===z.AlertsPosition.both),e.xp6(3),e.Q6J("ngIf",z.options.alertsPosition===z.AlertsPosition.bottom||z.options.alertsPosition===z.AlertsPosition.both))},dependencies:[D,P,d.O5],styles:['@charset "UTF-8";.choices{position:relative;margin-bottom:24px;font-size:16px}.choices:focus{outline:0}.choices:last-child{margin-bottom:0}.choices.is-disabled .choices__inner,.choices.is-disabled .choices__input{background-color:#eaeaea;cursor:not-allowed;-webkit-user-select:none;user-select:none}.choices.is-disabled .choices__item{cursor:not-allowed}.choices [hidden]{display:none!important}.choices[data-type*=select-one]{cursor:pointer}.choices[data-type*=select-one] .choices__inner{padding-bottom:7.5px}.choices[data-type*=select-one] .choices__input{display:block;width:100%;padding:10px;border-bottom:1px solid #ddd;background-color:#fff;margin:0}.choices[data-type*=select-one] .choices__button{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);padding:0;background-size:8px;position:absolute;top:50%;right:0;margin-top:-10px;margin-right:25px;height:20px;width:20px;border-radius:10em;opacity:.5}.choices[data-type*=select-one] .choices__button:focus,.choices[data-type*=select-one] .choices__button:hover{opacity:1}.choices[data-type*=select-one] .choices__button:focus{box-shadow:0 0 0 2px #00bcd4}.choices[data-type*=select-one] .choices__item[data-value=""] .choices__button{display:none}.choices[data-type*=select-one]:after{content:"";height:0;width:0;border-style:solid;border-color:#333 transparent transparent;border-width:5px;position:absolute;right:11.5px;top:50%;margin-top:-2.5px;pointer-events:none}.choices[data-type*=select-one].is-open:after{border-color:transparent transparent #333;margin-top:-7.5px}.choices[data-type*=select-one][dir=rtl]:after{left:11.5px;right:auto}.choices[data-type*=select-one][dir=rtl] .choices__button{right:auto;left:0;margin-left:25px;margin-right:0}.choices[data-type*=select-multiple] .choices__inner,.choices[data-type*=text] .choices__inner{cursor:text}.choices[data-type*=select-multiple] .choices__button,.choices[data-type*=text] .choices__button{position:relative;display:inline-block;margin:0 -4px 0 8px;padding-left:16px;border-left:1px solid #008fa1;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);background-size:8px;width:8px;line-height:1;opacity:.75;border-radius:0}.choices[data-type*=select-multiple] .choices__button:focus,.choices[data-type*=select-multiple] .choices__button:hover,.choices[data-type*=text] .choices__button:focus,.choices[data-type*=text] .choices__button:hover{opacity:1}.choices__inner{display:inline-block;vertical-align:top;width:100%;background-color:#f9f9f9;padding:7.5px 7.5px 3.75px;border:1px solid #ddd;border-radius:2.5px;font-size:14px;min-height:44px;overflow:hidden}.is-focused .choices__inner,.is-open .choices__inner{border-color:#b7b7b7}.is-open .choices__inner{border-radius:2.5px 2.5px 0 0}.is-flipped.is-open .choices__inner{border-radius:0 0 2.5px 2.5px}.choices__list{margin:0;padding-left:0;list-style:none}.choices__list--single{display:inline-block;padding:4px 16px 4px 4px;width:100%}[dir=rtl] .choices__list--single{padding-right:4px;padding-left:16px}.choices__list--single .choices__item{width:100%}.choices__list--multiple{display:inline}.choices__list--multiple .choices__item{display:inline-block;vertical-align:middle;border-radius:20px;padding:4px 10px;font-size:12px;font-weight:500;margin-right:3.75px;margin-bottom:3.75px;background-color:#00bcd4;border:1px solid #00a5bb;color:#fff;word-break:break-all;box-sizing:border-box}.choices__list--multiple .choices__item[data-deletable]{padding-right:5px}[dir=rtl] .choices__list--multiple .choices__item{margin-right:0;margin-left:3.75px}.choices__list--multiple .choices__item.is-highlighted{background-color:#00a5bb;border:1px solid #008fa1}.is-disabled .choices__list--multiple .choices__item{background-color:#aaa;border:1px solid #919191}.choices__list--dropdown{visibility:hidden;z-index:1;position:absolute;width:100%;background-color:#fff;border:1px solid #ddd;top:100%;margin-top:-1px;border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px;overflow:hidden;word-break:break-all;will-change:visibility}.choices__list--dropdown.is-active{visibility:visible}.is-open .choices__list--dropdown{border-color:#b7b7b7}.is-flipped .choices__list--dropdown{top:auto;bottom:100%;margin-top:0;margin-bottom:-1px;border-radius:.25rem .25rem 0 0}.choices__list--dropdown .choices__list{position:relative;max-height:300px;overflow:auto;-webkit-overflow-scrolling:touch;will-change:scroll-position}.choices__list--dropdown .choices__item{position:relative;padding:10px;font-size:14px}[dir=rtl] .choices__list--dropdown .choices__item{text-align:right}@media (min-width:640px){.choices__list--dropdown .choices__item--selectable{padding-right:100px}.choices__list--dropdown .choices__item--selectable:after{content:attr(data-select-text);font-size:12px;opacity:0;position:absolute;right:10px;top:50%;transform:translateY(-50%)}[dir=rtl] .choices__list--dropdown .choices__item--selectable{text-align:right;padding-left:100px;padding-right:10px}[dir=rtl] .choices__list--dropdown .choices__item--selectable:after{right:auto;left:10px}}.choices__list--dropdown .choices__item--selectable.is-highlighted{background-color:#f2f2f2}.choices__list--dropdown .choices__item--selectable.is-highlighted:after{opacity:.5}.choices__item{cursor:default}.choices__item--selectable{cursor:pointer}.choices__item--disabled{cursor:not-allowed;-webkit-user-select:none;user-select:none;opacity:.5}.choices__heading{font-weight:600;font-size:12px;padding:10px;border-bottom:1px solid #f7f7f7;color:gray}.choices__button{text-indent:-9999px;-webkit-appearance:none;appearance:none;border:0;background-color:transparent;background-repeat:no-repeat;background-position:center;cursor:pointer}.choices__button:focus,.choices__input:focus{outline:0}.choices__input{display:inline-block;vertical-align:baseline;background-color:#f9f9f9;font-size:14px;margin-bottom:5px;border:0;border-radius:0;max-width:100%;padding:4px 0 4px 2px}[dir=rtl] .choices__input{padding-right:2px;padding-left:0}.choices__placeholder{opacity:.5}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}dialog{position:absolute;left:0;right:0;width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content;margin:auto;border:solid;padding:1em;background:#fff;color:#000;display:block}dialog:not([open]){display:none}dialog+.backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.1)}._dialog_overlay{position:fixed;top:0;right:0;bottom:0;left:0}dialog.fixed{position:fixed;top:50%;transform:translateY(-50%)}.formio-loader{position:relative;min-height:60px}.loader-wrapper{z-index:1000;position:absolute;top:0;left:0;bottom:0;right:0;height:120px;background-color:#0000}.loader{position:absolute;left:50%;top:50%;margin-left:-30px;margin-top:-30px;z-index:10000;display:inline-block;border:6px solid #f3f3f3;border-top:6px solid #3498db;border-radius:50%;width:60px;height:60px;animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.formio-form{position:relative;min-height:80px}.formio-error-wrapper,.formio-warning-wrapper{padding:1em}.formio-error-wrapper{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.formio-error-wrapper .formio-errors .error{color:#c20000}.formio-error-wrapper .field-required:after{color:#c20000}.formio-warning-wrapper{color:#856404;background-color:#fff3cd;border-color:#ffeeba}.formio-disabled-input .form-control.flatpickr-input{background-color:#eee}.builder-component.has-error .invalid-feedback,.formio-component.alert-danger .invalid-feedback,.formio-component.has-error .invalid-feedback,.formio-component.has-message .invalid-feedback{display:block;color:inherit;margin-top:4px}.formio-errors .error{color:#dc3545}.formio-errors .warning{color:#856404}.formio-errors .info{color:#004085}.formio-wysiwyg-editor{min-height:200px;background-color:#fff}.has-feedback .form-control{padding-right:10px}.has-feedback .form-control[type=hidden]{padding-right:0}.has-error.bg-danger{padding:4px}.ql-source:after{content:"[source]";white-space:nowrap}.quill-source-code{width:100%;margin:0;background:#1d1d1d;box-sizing:border-box;color:#ccc;font-size:15px;outline:0;padding:20px;line-height:24px;font-family:Consolas,Menlo,Monaco,Courier New,monospace;position:absolute;top:0;bottom:0;border:none;display:none}.formio-component-tags tags{background-color:#fff}.field-required:after,.tab-error:after{content:" *";color:#eb0000}.field-required:after{position:relative;z-index:10}.glyphicon-spin{animation:formio-spin 1s infinite linear}@keyframes formio-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.button-icon-right{margin-left:5px}.formio-component-submit .submit-success:after{content:"\\2713";position:relative;right:-4px;top:1px;line-height:1}.formio-component-submit .submit-fail:after{content:"\\2717";position:relative;right:-4px;top:1px;line-height:1}.card-vertical{display:flex;flex-direction:row;margin-top:5px}.card-vertical .card-body,.tab,.tab-content{flex-grow:2}.nav-tabs-vertical{display:flex;flex-direction:column;border-right:1px solid #ddd;padding-left:5px;margin-right:10px;border-bottom:0}.card-vertical>.card-body,.card-vertical>.tab,.card-vertical>.tab-content{flex-basis:85%}.card-vertical ul>li>.nav-link-vertical{border-right-color:transparent;border-radius:4px 0 0 4px;margin-right:0}.card-vertical ul>li>.nav-link-vertical.active{border-bottom-color:#ddd;border-right-color:transparent}.card-vertical ul>li>.nav-link-vertical.active:hover{border-right-color:transparent}.nav-tabs-vertical>li{margin:0 -1px 0 0}.formio-component-submit .submit-fail[disabled]{opacity:1}.form-control.flatpickr-input{background-color:#fff}.input-group .flatpickr-wrapper{flex-grow:1}.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months:focus,.flatpickr-calendar .flatpickr-current-month input.cur-year:focus,.flatpickr-calendar .flatpickr-days:focus{outline:auto}td>.form-group{margin-bottom:0}.signature-pad-body{overflow:hidden;position:relative}.signature-pad-canvas{border-radius:4px;box-shadow:0 0 5px #00000005 inset;border:1px solid #f4f4f4}.btn.signature-pad-refresh{position:absolute;left:0;top:0;z-index:1000;padding:3px;line-height:0}[dir=rtl] .btn.signature-pad-refresh{left:unset;right:0}.formio-component-multiple .choices__input{width:100%}.formio-component-multiple .is-invalid{border-color:#f04124}.formio-component-multiple :not(.is-invalid){border-color:#ccc}.choices__list--dropdown .choices__item--selectable{padding-right:0}.signature-pad-refresh img{height:1.2em}.signature-pad-footer{text-align:center;color:#c3c3c3}.choices__list--dropdown{z-index:100}.choices__list--multiple .choices__item{border-radius:0;padding:2px 8px;line-height:1em;margin-bottom:6px}.choices__list--single{padding:0}.choices__item.choices__item--selectable{white-space:nowrap;overflow:hidden;padding-right:25px;text-overflow:ellipsis}.choices__input{padding:2px}.choices[dir=rtl]>*{text-align:right}.choices[dir=rtl] .choices__list--multiple .choices__item[data-deletable]{padding-left:5px;float:right}.choices[dir=rtl] .choices__list--multiple .choices__item[data-deletable] .choices__button{float:left;margin:0 8px 0 -4px;padding-left:unset;padding-right:16px;border-left:unset;border-right:1px solid #008fa1;overflow:hidden}@-moz-document url-prefix(){.choices__button{float:right}}.formio-component-file .fileSelector{position:relative;padding:15px;border:2px dashed #ddd;text-align:center}.formio-component-file .fileSelector .loader-wrapper{display:none;width:100%;height:100%;background-color:#0000001a}.formio-component-file .fileSelector .loader-wrapper .loader{height:45px;width:45px;margin-top:-23px;margin-left:-23px}.formio-component-file .fileSelector a{text-decoration:underline}.formio-component-file .fileSelector.fileDragOver{border-color:#127abe}.formio-component-file .fileSelector .fa,.formio-component-file .fileSelector .glyphicon{font-size:20px;margin-right:5px}[dir=rtl] .formio-component-file .fileSelector .fa,[dir=rtl] .formio-component-file .fileSelector .glyphicon{margin-right:unset;margin-left:5px}.formio-component-file .fileSelector .browse{cursor:pointer}@keyframes formio-dialog-fadeout{0%{opacity:1}to{opacity:0}}@keyframes formio-dialog-fadein{0%{opacity:0}to{opacity:1}}.formio-dialog{box-sizing:border-box;font-size:.8em;color:#666}.formio-dialog.formio-modaledit-dialog{font-size:inherit}.formio-dialog *,.formio-dialog :after,.formio-dialog :before{box-sizing:inherit}.formio-dialog{position:fixed;overflow:auto;-webkit-overflow-scrolling:touch;z-index:10000;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.4);animation:formio-dialog-fadein .5s}.formio-dialog.formio-dialog-disabled-animation,.formio-dialog.formio-dialog-disabled-animation .formio-dialog-content,.formio-dialog.formio-dialog-disabled-animation .formio-dialog-overlay{animation:none!important}.formio-dialog-overlay{position:fixed;top:0;right:0;bottom:0;left:0;-webkit-backface-visibility:hidden;animation:formio-dialog-fadein .5s;margin-right:15px;background:0 0}.formio-dialog-no-overlay{pointer-events:none}.formio-dialog.formio-dialog-closing .formio-dialog-overlay{-webkit-backface-visibility:hidden;animation:formio-dialog-fadeout .5s}.formio-dialog-content{background:#fff;-webkit-backface-visibility:hidden;animation:formio-dialog-fadein .5s;pointer-events:all;overflow:auto}.formio-component-modal-wrapper-select .formio-dialog-content{overflow:initial}.formio-dialog.formio-dialog-closing .formio-dialog-content{-webkit-backface-visibility:hidden;animation:formio-dialog-fadeout .5s}.formio-dialog-close:before{font-family:Helvetica,Arial,sans-serif;content:"\\d7";cursor:pointer}body.formio-dialog-open,html.formio-dialog-open{overflow:hidden}.formio-dialog .tab-content{padding-top:12px}.formio-dialog-close{z-index:1000}@keyframes formio-dialog-flyin{0%{opacity:0;transform:translateY(-40px)}to{opacity:1;transform:translateY(0)}}@keyframes formio-dialog-flyout{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-40px)}}.formio-dialog.formio-dialog-theme-default{padding-bottom:160px;padding-top:160px}.formio-dialog.formio-dialog-theme-default .component-edit-container{padding:.5em}.formio-dialog.formio-dialog-theme-default.formio-dialog-closing .formio-dialog-content{animation:formio-dialog-flyout .5s}.formio-dialog.formio-dialog-theme-default .formio-dialog-content{animation:formio-dialog-flyin .5s;background:#f0f0f0;border-radius:5px;font-family:Helvetica,sans-serif;font-size:1.1em;line-height:1.5em;margin:0 auto;max-width:100%;padding:1em;position:relative;width:80%}.formio-dialog.formio-dialog-theme-default .formio-dialog-close{border:none;background:0 0;cursor:pointer;position:absolute;right:1px;top:1px;z-index:100}.formio-clickable{cursor:pointer}.component-settings .nav>li>a{padding:8px 10px}.formio-dialog.formio-dialog-theme-default .formio-dialog-close:before{display:block;padding:3px;background:0 0;color:#8a8a8a;content:"\\d7";font-size:26px;font-weight:400;line-height:26px;text-align:center}.formio-dialog.formio-dialog-theme-default .formio-dialog-close:active:before,.formio-dialog.formio-dialog-theme-default .formio-dialog-close:hover:before{color:#777}.formio-dialog.formio-dialog-theme-default .formio-dialog-message{margin-bottom:.5em}.formio-dialog.formio-dialog-theme-default .formio-dialog-input{margin-bottom:1em}.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=email],.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=password],.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=text],.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=url],.formio-dialog.formio-dialog-theme-default .formio-dialog-input textarea{background:#fff;border:0;border-radius:3px;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0 0 .25em;min-height:2.5em;padding:.25em .67em;width:100%}.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=email]:focus,.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=password]:focus,.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=text]:focus,.formio-dialog.formio-dialog-theme-default .formio-dialog-input input[type=url]:focus,.formio-dialog.formio-dialog-theme-default .formio-dialog-input textarea:focus{box-shadow:inset 0 0 0 2px #8dbdf1;outline:0}.formio-dialog-buttons{display:flex;justify-content:flex-end}.formio-dialog.formio-dialog-theme-default .formio-dialog-buttons{*zoom:1}.formio-dialog.formio-dialog-theme-default .formio-dialog-buttons:after{content:"";display:table;clear:both}.formio-dialog.formio-dialog-theme-default .formio-dialog-button{border:0;border-radius:3px;cursor:pointer;float:right;font-family:inherit;font-size:.8em;letter-spacing:.1em;line-height:1em;margin:0 0 0 .5em;padding:.75em 2em;text-transform:uppercase}.formio-dialog.formio-dialog-theme-default .formio-dialog-button:focus{animation:formio-dialog-pulse 1.1s infinite;outline:0}@media (max-width:568px){.formio-dialog.formio-dialog-theme-default .formio-dialog-button:focus{animation:none}}.formio-dialog.formio-dialog-theme-default .formio-dialog-button.formio-dialog-button-primary{background:#3288e6;color:#fff}.formio-dialog.formio-dialog-theme-default .formio-dialog-button.formio-dialog-button-secondary{background:#e0e0e0;color:#777}.formio-dialog-content .panel{margin:0}.formio-dialog-content [ref=dialogHeader]{padding-right:15px}.formio-placeholder{position:absolute;color:#999}.formio-dialog .formio-dialog-close{cursor:pointer}.formio-iframe{border:none;width:100%;height:1000px}.inline-form-button{margin-right:10px}.tooltip{opacity:1}.tooltip[x-placement=right] .tooltip-arrow{border-right:5px solid #000}.tooltip[x-placement=right] .tooltip-inner{margin-left:8px}.control-label--bottom{margin-bottom:0;margin-top:5px}.formio-component-label-hidden{position:relative}.formio-hidden{margin:0}.formio-removed{display:none}.control-label--hidden{position:absolute;top:6px;right:5px}.formio-component-datetime .control-label--hidden.field-required{right:45px;z-index:3}.formio-component-selectboxes .control-label--hidden.field-required,.formio-component-survey .control-label--hidden.field-required{top:0}.formio-component-resource .control-label--hidden.field-required,.formio-component-select .control-label--hidden.field-required{right:40px;z-index:2}.formio-component-radio .control-label--hidden.field-required:after,.formio-component-selectboxes .control-label--hidden.field-required:after{display:none}.formio-component-radio.formio-component-label-hidden.required .form-check-label:before,.formio-component-selectboxes.formio-component-label-hidden.required .form-check-label:before{position:relative;content:"* ";color:#eb0000}.formio-component-radio.formio-component-label-hidden.required .label-position-right.form-check-label:before,.formio-component-selectboxes.formio-component-label-hidden.required .label-position-right.form-check-label:before{right:20px}.formio-component-datasource,.formio-component-hidden:not(.formio-component-checkbox){margin-bottom:0}.checkbox-inline label,.radio-inline label{font-weight:400;cursor:pointer}.editgrid-listgroup{margin-bottom:10px}.tree-listgroup{flex-direction:row}.formio-component-submit button[disabled]+.has-error{display:block}.formio-choices.form-group{margin-bottom:0}.formio-choices[data-type=select-multiple] .form-control{height:auto}.form-control.formio-multiple-mask-select{width:15%;z-index:4}.form-control.formio-multiple-mask-input{width:85%}.input-group.formio-multiple-mask-container{width:100%}.formio-component .table{margin-bottom:0}.editgrid-table-container{margin-bottom:10px;max-width:calc(100vw - 140px)}.editgrid-table-container .table-responsive{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.editgrid-table-column{border:none}.editgrid-table-head{border:1px solid #ddd}.editgrid-table-body{border:1px solid #ddd;border-top:0}.formio-hide-label-panel-tooltip{margin-top:-10px;margin-left:-10px}.is-disabled .choices__list--multiple .choices__item{padding:5px 10px}.is-disabled .choices__list--multiple .choices__item .choices__button{display:none}.formio-collapse-icon{cursor:pointer;margin-right:4px}[dir=rtl] .formio-collapse-icon{margin-right:unset;margin-left:4px}.formio-component-dateTime .form-control[type=datetime-local]~.input-group-addon,.formio-component-datetime .form-control[type=datetime-local]~.input-group-addon{width:auto}.formio-component-datagrid .formio-datagrid-remove{position:absolute;top:0;right:0;visibility:hidden;opacity:0;transition:opacity .2s linear,visibility 0s .2s}.formio-component-datagrid .datagrid-table>tbody>tr>td:last-child{position:relative}.formio-component-datagrid .datagrid-table>tbody>tr:hover>td:last-child .formio-datagrid-remove{visibility:visible;opacity:1;transition:visibility 0s,opacity .2s linear}.formio-component-modaledit .formio-modaledit-view-container{position:relative;border:1px solid #ddd;min-height:34px;padding:6px 12px;cursor:text}td .formio-component-modaledit .formio-modaledit-view-container{padding:0;border-style:none}.formio-component-modaledit .formio-modaledit-edit{position:absolute;top:0;left:0;visibility:hidden;opacity:0;transition:opacity .2s linear,visibility 0s .2s}.formio-component-modaledit .formio-modaledit-view-container:hover .formio-modaledit-edit{visibility:visible;opacity:1;transition:visibility 0s,opacity .2s linear}.formio-modaledit-dialog .formio-modaledit-close{position:absolute;top:100%;right:0;border-radius:0}.reset-margins a,.reset-margins abbr,.reset-margins acronym,.reset-margins address,.reset-margins applet,.reset-margins article,.reset-margins aside,.reset-margins audio,.reset-margins b,.reset-margins big,.reset-margins blockquote,.reset-margins body,.reset-margins canvas,.reset-margins caption,.reset-margins center,.reset-margins cite,.reset-margins code,.reset-margins dd,.reset-margins del,.reset-margins details,.reset-margins dfn,.reset-margins div,.reset-margins dl,.reset-margins dt,.reset-margins em,.reset-margins embed,.reset-margins fieldset,.reset-margins figcaption,.reset-margins figure,.reset-margins footer,.reset-margins form,.reset-margins h1,.reset-margins h2,.reset-margins h3,.reset-margins h4,.reset-margins h5,.reset-margins h6,.reset-margins header,.reset-margins hgroup,.reset-margins html,.reset-margins i,.reset-margins iframe,.reset-margins img,.reset-margins ins,.reset-margins kbd,.reset-margins label,.reset-margins legend,.reset-margins li,.reset-margins mark,.reset-margins menu,.reset-margins nav,.reset-margins object,.reset-margins ol,.reset-margins output,.reset-margins p,.reset-margins pre,.reset-margins q,.reset-margins ruby,.reset-margins s,.reset-margins samp,.reset-margins section,.reset-margins small,.reset-margins span,.reset-margins strike,.reset-margins strong,.reset-margins sub,.reset-margins summary,.reset-margins sup,.reset-margins table,.reset-margins tbody,.reset-margins td,.reset-margins tfoot,.reset-margins th,.reset-margins thead,.reset-margins time,.reset-margins tr,.reset-margins tt,.reset-margins u,.reset-margins ul,.reset-margins var,.reset-margins video{margin:0}.ck-body .ck.ck-balloon-panel{z-index:101000}.formio-component-select select[disabled=disabled]{-webkit-appearance:none;-moz-appearance:none;text-indent:1px;text-overflow:""}.formio-component-select .choices.is-disabled[data-type*=select-one]:after,.formio-component-select div[disabled=disabled] button{display:none}.datagrid-group-label.collapsed>td{display:none}.datagrid-group-header.clickable{cursor:pointer}.datagrid-group-header.clickable .datagrid-group-label:before{display:inline-block;vertical-align:middle;content:"\\25be";margin:0 5px}.datagrid-group-header.clickable.collapsed .datagrid-group-label:before{content:"\\25b8"}.formio-component.alert-danger .help-block,.formio-component.alert-warning .help-block{color:inherit}.tree__level_even{background-color:#f6f6f6}.tree__node-content{margin-bottom:10px}.tree__node-children{margin:0}.formio-select-autocomplete-input{opacity:0;position:relative;z-index:-1;display:block;height:0;border:none}.has-error>.help-block{margin-top:5px;margin-bottom:10px}.no-top-border-table>.table>tbody>tr:first-child>td{border-top:none}.table>tbody>tr>td.cell-align-left{text-align:left}.table>tbody>tr>td.cell-align-center{text-align:center}.table>tbody>tr>td.cell-align-center>div{margin-left:auto;margin-right:auto}.table>tbody>tr>td.cell-align-right{text-align:right}.table>tbody>tr>td.cell-align-right>div{margin-left:auto}.table-responsive[ref=component]{overflow-x:visible}.formio-component-textarea .alert .ck-editor__editable{color:inherit}.formio-component-textarea .ck.ck-editor__editable .image .ck-progress-bar{height:4px}div[data-oembed-url]{width:100%}.checkbox label.label-position-bottom,.checkbox label.label-position-left,.checkbox label.label-position-top,.radio label.label-position-bottom,.radio label.label-position-left,.radio label.label-position-top{padding-left:0}.checkbox label.label-position-bottom span,.checkbox label.label-position-top span,.radio label.label-position-bottom span,.radio label.label-position-top span{display:block}.checkbox label.label-position-bottom input[type=checkbox],.checkbox label.label-position-top input[type=checkbox],.radio label.label-position-bottom input[type=radio],.radio label.label-position-top input[type=radio]{position:relative;margin-left:0}.checkbox label.label-position-top input[type=checkbox],.radio label.label-position-top input[type=radio]{margin-top:4px}.checkbox label.label-position-bottom input[type=checkbox],.radio label.label-position-bottom input[type=radio]{margin-bottom:8px}.radio label.label-position-left input[type=radio]{margin-left:10px}.checkbox label.label-position-left input[type=checkbox]{margin-left:4px;position:relative}.open-modal-button{width:100%;text-align:left;white-space:normal;height:auto}.formio-component-modal-wrapper-signature .open-modal-button{text-align:center;height:100%;font-size:1.4em;padding:0;margin:0}.formio-component-content .image{display:table;clear:both;text-align:center;margin:1em auto}.formio-component-content .image>img{display:block;margin:0 auto;max-width:100%;min-width:50px}.formio-component-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}.formio-component-content .image.image_resized{max-width:100%;display:block;box-sizing:border-box}.formio-component-content .image.image_resized img{width:100%}.formio-component-content .image.image_resized>figcaption{display:block}.formio-component-content .media{clear:both;margin:1em 0;display:block;min-width:15em}.formio-component-content .image-style-align-center:not(.image_resized),.formio-component-content .image-style-align-left:not(.image_resized),.formio-component-content .image-style-align-right:not(.image_resized),.formio-component-content .image-style-side:not(.image_resized){max-width:50%}.formio-component-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing)}.formio-component-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.formio-component-content .image-style-align-center{margin-left:auto;margin-right:auto}.formio-component-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.formio-component-content blockquote{overflow:hidden;padding-right:1.5em;padding-left:1.5em;margin-left:0;margin-right:0;font-style:italic;border-left:solid 5px #ccc}.formio-component-content[dir=rtl] blockquote{border-left:0;border-right:solid 5px #ccc}.formio-component-content .text-tiny{font-size:.7em}.formio-component-content .text-small{font-size:.85em}.formio-component-content .text-big{font-size:1.4em}.formio-component-content .text-huge{font-size:1.8em}.formio-component-address.formio-component-label-hidden>label.field-required{z-index:1}.formio-component-address.formio-component-label-hidden>label.field-required~.address-autocomplete-container .address-autocomplete-remove-value-icon{right:20px}.address-autocomplete-container{position:relative}.address-autocomplete-container .address-autocomplete-remove-value-icon{cursor:pointer;position:absolute;margin-top:-9px;right:10px;top:50%}.address-autocomplete-container .address-autocomplete-remove-value-icon--hidden{display:none}.autocomplete{background:#fff;font:14px/22px -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;overflow:auto;box-sizing:border-box;border:1px solid rgba(50,50,50,.6);z-index:11000}.autocomplete>div{cursor:pointer;padding:6px 10px}.autocomplete>div.selected,.autocomplete>div:hover:not(.group){background:#1e90ff;color:#fff}.field-wrapper{display:flex}.field-wrapper--reverse{flex-direction:row-reverse}.field-wrapper .field-label--right{text-align:right}.formio-component-modal-wrapper{margin-bottom:10px}.formio-component-modal-wrapper .open-modal-button{height:auto}.formio-component-modal-wrapper .component-rendering-hidden{visibility:hidden}.formio-component-textarea div.formio-editor-read-only-content[ref=input]{white-space:pre-wrap}.formio-editor-read-only-content img{max-width:100%}.formio-editor-read-only-content li[data-list=bullet]{list-style-type:none}.formio-editor-read-only-content li[data-list=bullet] .ql-ui{padding-right:.5rem}.formio-editor-read-only-content li[data-list=bullet] .ql-ui:before{content:"\\2022"}.formio-editor-read-only-content li[data-list=ordered]{list-style-type:none;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.formio-editor-read-only-content li[data-list=ordered] .ql-ui{padding-right:.5rem}.formio-editor-read-only-content li[data-list=ordered] .ql-ui:before{content:counter(list-0,decimal) ". "}.formio-editor-read-only-content figure.table table{border-collapse:collapse;border-spacing:0;width:100%;height:100%;border:1px double #b3b3b3}.formio-editor-read-only-content figure.table table td,.formio-editor-read-only-content figure.table table th{min-width:2em;padding:.4em;border:1px solid #bfbfbf}.formio-component-password .pull-right:not(:last-child),.formio-component-textarea .pull-right:not(:last-child),.formio-component-textfield .pull-right:not(:last-child){padding-left:12px}.formio-form>div>nav>ul.pagination{flex-flow:wrap row}.formio-form>div>nav>ul.pagination .page-link{cursor:pointer;color:#1c74d9}.formio-form>div>nav>ul.pagination .page-item.active .page-link{color:#fff;background-color:#1c74d9;border-color:#1c74d9}.classic-pagination{border-bottom:solid 1px #e0e0e0;padding:0 15px 10px;line-height:1em}.classic-pagination-page{padding:0;position:relative}.classic-pagination-title{color:#595959;font-size:16px;margin-bottom:5px}.classic-pagination-dot{position:absolute;width:30px;height:30px;display:block;background:#fbe8aa;top:40px;left:50%;margin-top:-15px;margin-left:-15px;border-radius:50%}.classic-pagination-dot:after{content:" ";width:14px;height:14px;background:#fbbd19;border-radius:50px;position:absolute;top:8px;left:8px}.classic-pagination .progress,.classic-pagination-progress{position:relative;border-radius:0;height:8px;box-shadow:none;margin:20px 0;border:none;padding:0;background-color:#f6f6f6}.classic-pagination .progress-bar,.classic-pagination-progress-bar{width:0;height:10px;box-shadow:none;background:#fbe8aa}.classic-pagination-page.complete .classic-pagination-progress-bar,.classic-pagination-page.complete .progress-bar{width:100%}.classic-pagination-page.active .classic-pagination-progress-bar,.classic-pagination-page.active .progress-bar{width:50%}.classic-pagination-page.disabled .classic-pagination-dot{background-color:#f5f5f5}.classic-pagination-page.disabled .classic-pagination-dot:after{opacity:0}.classic-pagination-page:first-child .classic-pagination-progress,.classic-pagination-page:first-child .progress{left:50%;width:50%}.classic-pagination-page:first-child.active .classic-pagination-progress-bar,.classic-pagination-page:first-child.active .progress-bar{width:0%}.classic-pagination-page:last-child .classic-pagination-progress,.classic-pagination-page:last-child .progress{width:50%}.classic-pagination-page:last-child.active .classic-pagination-progress-bar,.classic-pagination-page:last-child.active .progress-bar{width:100%}.pac-container{z-index:11000}[ref=buttonMessageContainer].has-error{cursor:pointer}[ref=passwordStrengthIndicator]{display:inline}.formio-security-indicator{display:flex;height:5px}.formio-security-indicator [class^=security-]{width:100%;height:100%}.formio-security-indicator .security-low{background-color:#c51e00}.formio-security-indicator .security-medium{background-color:#ebb400}.formio-security-indicator .security-high{background-color:#bddf00}.formio-security-indicator .security-very-high{background-color:#009118}.formio-component-textarea .formio-editor-read-only-content .text-big{font-size:1.4em}.formio-component-textarea .formio-editor-read-only-content .text-huge{font-size:1.8em}.formio-component-textarea .formio-editor-read-only-content .text-small{font-size:.85em}.formio-component-textarea .formio-editor-read-only-content .text-tiny{font-size:.7em}.formio-component [ref=valueMaskInput]{display:none}.formio-wizard-nav-container{display:flex}.formio-wizard-nav-container li{margin-right:.5rem}@media not all and (min-width:30em){.formio-wizard-nav-container{flex-direction:column}.formio-wizard-nav-container li{margin-right:0}.formio-wizard-nav-container li .btn{width:100%;margin-bottom:.25rem}}.formio-tooltip__trigger{cursor:pointer}.formio-tooltip__body{background-color:#1b1b1b;border-radius:.25rem;bottom:0;color:#f0f0f0;display:none;font-size:1rem;padding:.5rem;position:absolute;left:0;transform:translate(-50%);width:auto;white-space:pre;z-index:1000}.formio-tooltip__body.formio-tooltip--is-set{display:block}.formio-tooltip__body--whitespace{white-space:normal;width:250px}.formio-tooltip__body--right{top:auto;transform:translate(0)}.formio-tooltip__body--left{top:auto;left:0;right:auto;transform:translate(0)}.formio-tooltip__body--bottom{bottom:auto;top:0}.formio-tooltip__wrapper{position:relative}.formio-tooltip__wrapper>span{font-weight:400}span[role=link]{text-decoration:underline;cursor:pointer}\n'],encapsulation:2}),te})(),V=(()=>{class te{}return te.\u0275fac=function(H){return new(H||te)},te.\u0275mod=e.oAB({type:te}),te.\u0275inj=e.cJS({providers:[E,I],imports:[[d.ez]]}),te})()},75110:(he,y,i)=>{"use strict";i.d(y,{C:()=>Mt,IZ:()=>Gt,RZ:()=>wt,_R:()=>oi,ni:()=>pt});var e=i(65879),n=i(23680),o=i(4300),a=i(69594),l=i(96814),u=i(30617),d=i(36028),s=i(38034),A=i(81374),_=i(86825),C=i(49388),R=i(42495),x=i(68484),f=i(19347),k=i(78645),w=i(47394),g=i(50723),M=i(16321),p=i(63019),E=i(56223),b=i(64170),I=i(24516),L=i(32296);const D=["matDatetimepickerCalendarBody",""];function F(Lt,tt){if(1&Lt&&(e.TgZ(0,"tr",2)(1,"td",3),e._uU(2),e.qZA()()),2&Lt){const Ne=e.oxw();e.xp6(1),e.uIk("colspan",Ne.numCols),e.xp6(1),e.hij(" ",Ne.label," ")}}function P(Lt,tt){if(1&Lt&&(e.TgZ(0,"td",7),e._uU(1),e.qZA()),2&Lt){const Ne=e.oxw(2);e.uIk("colspan",Ne._firstRowOffset),e.xp6(1),e.hij(" ",Ne._firstRowOffset>=Ne.labelMinRequiredCells?Ne.label:""," ")}}function O(Lt,tt){if(1&Lt){const Ne=e.EpF();e.TgZ(0,"td",8),e.NdJ("click",function(){const jn=e.CHM(Ne).$implicit,Pi=e.oxw(2);return e.KtG(Pi._cellClicked(jn))}),e.TgZ(1,"div",9),e._uU(2),e.qZA()()}if(2&Lt){const Ne=tt.$implicit,vt=tt.index,ln=e.oxw().index,jn=e.oxw();e.ekj("mat-datetimepicker-calendar-body-active",jn._isActiveCell(ln,vt))("mat-datetimepicker-calendar-body-disabled",!Ne.enabled),e.uIk("aria-disabled",!Ne.enabled||null)("aria-label",Ne.ariaLabel),e.xp6(1),e.ekj("mat-datetimepicker-calendar-body-selected",jn.selectedValue===Ne.value)("mat-datetimepicker-calendar-body-today",jn.todayValue===Ne.value),e.uIk("aria-selected",jn.selectedValue===Ne.value),e.xp6(1),e.hij(" ",Ne.displayValue," ")}}function U(Lt,tt){if(1&Lt&&(e.TgZ(0,"tr",4),e.YNc(1,P,2,2,"td",5),e.YNc(2,O,3,12,"td",6),e.qZA()),2&Lt){const Ne=tt.$implicit,vt=tt.index,ln=e.oxw();e.xp6(1),e.Q6J("ngIf",0===vt&&ln._firstRowOffset),e.xp6(1),e.Q6J("ngForOf",Ne)}}function V(Lt,tt){if(1&Lt&&(e.TgZ(0,"div",7),e._uU(1),e.qZA()),2&Lt){const Ne=tt.$implicit,vt=e.oxw();e.Udp("font-size",Ne.fontSize)("left",Ne.left+"%")("top",Ne.top+"%"),e.ekj("mat-datetimepicker-clock-cell-disabled",!Ne.enabled)("mat-datetimepicker-clock-cell-selected",vt._selectedHour===Ne.value),e.xp6(1),e.hij(" ",Ne.displayValue," ")}}function K(Lt,tt){if(1&Lt&&(e.TgZ(0,"div",7),e._uU(1),e.qZA()),2&Lt){const Ne=tt.$implicit,vt=e.oxw();e.Udp("left",Ne.left+"%")("top",Ne.top+"%"),e.ekj("mat-datetimepicker-clock-cell-disabled",!Ne.enabled)("mat-datetimepicker-clock-cell-selected",vt._selectedMinute===Ne.value),e.xp6(1),e.hij(" ",Ne.displayValue," ")}}function X(Lt,tt){if(1&Lt&&(e.TgZ(0,"th"),e._uU(1),e.qZA()),2&Lt){const Ne=tt.$implicit;e.uIk("aria-label",Ne.long),e.xp6(1),e.hij(" ",Ne.narrow," ")}}function me(Lt,tt){1&Lt&&(e.TgZ(0,"mat-icon"),e._uU(1,"arrow_drop_down"),e.qZA())}function J(Lt,tt){if(1&Lt){const Ne=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){e.CHM(Ne);const ln=e.oxw();return e.KtG(ln._yearClicked())}),e._uU(1),e.YNc(2,me,2,0,"mat-icon",11),e.qZA()}if(2&Lt){const Ne=e.oxw();e.ekj("active","year"===Ne.currentView||"multi-year"===Ne.currentView),e.xp6(1),e.hij(" ",Ne._yearLabel," "),e.xp6(1),e.Q6J("ngIf",Ne.multiYearSelector||"year"===Ne.type)}}function Q(Lt,tt){if(1&Lt){const Ne=e.EpF();e.TgZ(0,"span",12),e.NdJ("click",function(){e.CHM(Ne);const ln=e.oxw();return e.KtG(ln._dateClicked())}),e._uU(1),e.qZA()}if(2&Lt){const Ne=e.oxw();e.ekj("active","month"===Ne.currentView)("not-clickable","month"===Ne.type),e.xp6(1),e.Oqu(Ne._dateLabel)}}function re(Lt,tt){if(1&Lt){const Ne=e.EpF();e.TgZ(0,"span",17)(1,"span",18),e.NdJ("click",function(){e.CHM(Ne);const ln=e.oxw(2);return e.KtG(ln._ampmClicked("AM"))}),e._uU(2,"AM"),e.qZA(),e._uU(3,"/"),e.TgZ(4,"span",18),e.NdJ("click",function(){e.CHM(Ne);const ln=e.oxw(2);return e.KtG(ln._ampmClicked("PM"))}),e._uU(5,"PM"),e.qZA()()}if(2&Lt){const Ne=e.oxw(2);e.xp6(1),e.ekj("active","AM"===Ne._AMPM),e.xp6(3),e.ekj("active","PM"===Ne._AMPM)}}function de(Lt,tt){if(1&Lt){const Ne=e.EpF();e.TgZ(0,"span",13)(1,"span",14),e.NdJ("click",function(){e.CHM(Ne);const ln=e.oxw();return e.KtG(ln._hoursClicked())}),e._uU(2),e.qZA(),e._uU(3,":"),e.TgZ(4,"span",15),e.NdJ("click",function(){e.CHM(Ne);const ln=e.oxw();return e.KtG(ln._minutesClicked())}),e._uU(5),e.qZA(),e._UZ(6,"br"),e.YNc(7,re,6,4,"span",16),e.qZA()}if(2&Lt){const Ne=e.oxw();e.ekj("active","clock"===Ne.currentView),e.xp6(1),e.ekj("active","hour"===Ne._clockView),e.xp6(1),e.Oqu(Ne._hoursLabel),e.xp6(2),e.ekj("active","minute"===Ne._clockView),e.xp6(1),e.Oqu(Ne._minutesLabel),e.xp6(2),e.Q6J("ngIf",Ne.twelvehour)}}function te(Lt,tt){if(1&Lt){const Ne=e.EpF();e.TgZ(0,"div",19)(1,"div",20)(2,"div",21),e.NdJ("click",function(){e.CHM(Ne);const ln=e.oxw();return e.KtG(ln._previousClicked())}),e.O4$(),e.TgZ(3,"svg",22),e._UZ(4,"path",23),e.qZA()(),e.kcU(),e.TgZ(5,"div",24),e.NdJ("@slideCalendar.done",function(){e.CHM(Ne);const ln=e.oxw();return e.KtG(ln._calendarStateDone())}),e.TgZ(6,"strong"),e._uU(7),e.qZA()(),e.TgZ(8,"div",25),e.NdJ("click",function(){e.CHM(Ne);const ln=e.oxw();return e.KtG(ln._nextClicked())}),e.O4$(),e.TgZ(9,"svg",22),e._UZ(10,"path",26),e.qZA()()()()}if(2&Lt){const Ne=e.oxw();e.xp6(2),e.ekj("disabled",!Ne._previousEnabled()),e.uIk("aria-disabled",!Ne._previousEnabled())("aria-label",Ne._ariaLabelPrev),e.xp6(3),e.Q6J("@slideCalendar",Ne._calendarState),e.xp6(2),e.Oqu(Ne._monthYearLabel),e.xp6(1),e.ekj("disabled",!Ne._nextEnabled()),e.uIk("aria-disabled",!Ne._nextEnabled())("aria-label",Ne._ariaLabelNext)}}function j(Lt,tt){if(1&Lt){const Ne=e.EpF();e.TgZ(0,"mat-datetimepicker-month-view",27),e.NdJ("_userSelection",function(){e.CHM(Ne);const ln=e.oxw();return e.KtG(ln._userSelected())})("selectedChange",function(ln){e.CHM(Ne);const jn=e.oxw();return e.KtG(jn._dateSelected(ln))}),e.qZA()}if(2&Lt){const Ne=e.oxw();e.Q6J("activeDate",Ne._activeDate)("dateFilter",Ne._dateFilterForViews)("selected",Ne.selected)("type",Ne.type)}}function H(Lt,tt){if(1&Lt){const Ne=e.EpF();e.TgZ(0,"mat-datetimepicker-year-view",27),e.NdJ("_userSelection",function(){e.CHM(Ne);const ln=e.oxw();return e.KtG(ln._userSelected())})("selectedChange",function(ln){e.CHM(Ne);const jn=e.oxw();return e.KtG(jn._monthSelected(ln))}),e.qZA()}if(2&Lt){const Ne=e.oxw();e.Q6J("activeDate",Ne._activeDate)("dateFilter",Ne._dateFilterForViews)("selected",Ne.selected)("type",Ne.type)}}function z(Lt,tt){if(1&Lt){const Ne=e.EpF();e.TgZ(0,"mat-datetimepicker-multi-year-view",28),e.NdJ("_userSelection",function(){e.CHM(Ne);const ln=e.oxw();return e.KtG(ln._userSelected())})("selectedChange",function(ln){e.CHM(Ne);const jn=e.oxw();return e.KtG(jn._yearSelected(ln))}),e.qZA()}if(2&Lt){const Ne=e.oxw();e.Q6J("activeDate",Ne._activeDate)("dateFilter",Ne._dateFilterForViews)("maxDate",Ne.maxDate)("minDate",Ne.minDate)("selected",Ne.selected)("type",Ne.type)}}function q(Lt,tt){if(1&Lt){const Ne=e.EpF();e.TgZ(0,"mat-datetimepicker-clock",29),e.NdJ("_userSelection",function(){e.CHM(Ne);const ln=e.oxw();return e.KtG(ln._userSelected())})("activeDateChange",function(ln){e.CHM(Ne);const jn=e.oxw();return e.KtG(jn._onActiveDateChange(ln))})("selectedChange",function(ln){e.CHM(Ne);const jn=e.oxw();return e.KtG(jn._timeSelected(ln))}),e.qZA()}if(2&Lt){const Ne=e.oxw();e.Q6J("dateFilter",Ne.dateFilter)("interval",Ne.timeInterval)("maxDate",Ne.maxDate)("minDate",Ne.minDate)("selected",Ne._activeDate)("startView",Ne._clockView)("twelvehour",Ne.twelvehour)}}function se(Lt,tt){1&Lt&&(e.O4$(),e.TgZ(0,"svg",4),e._UZ(1,"path",5),e.qZA())}function ne(Lt,tt){1&Lt&&(e.O4$(),e.TgZ(0,"svg",4),e._UZ(1,"path",6),e.qZA())}function _e(Lt,tt){1&Lt&&(e.O4$(),e.TgZ(0,"svg",4),e._UZ(1,"path",7)(2,"path",8),e.qZA())}class ge extends n._A{constructor(tt){super(),this._delegate=tt}getValidDateOrNull(tt){return this.isDateInstance(tt)&&this.isValid(tt)?tt:null}compareDatetime(tt,Ne,vt=!0){return this.compareDate(tt,Ne)||this.getHour(tt)-this.getHour(Ne)||vt&&this.getMinute(tt)-this.getMinute(Ne)}sameDatetime(tt,Ne){if(tt&&Ne){const vt=this.isValid(tt),ln=this.isValid(Ne);return vt&&ln?!this.compareDatetime(tt,Ne):vt===ln}return tt===Ne}sameYear(tt,Ne){return tt&&Ne&&this.getYear(tt)===this.getYear(Ne)}sameDay(tt,Ne){return tt&&Ne&&this.getDate(tt)===this.getDate(Ne)&&this.sameMonthAndYear(tt,Ne)}sameHour(tt,Ne){return tt&&Ne&&this.getHour(tt)===this.getHour(Ne)&&this.sameDay(tt,Ne)}sameMinute(tt,Ne){return tt&&Ne&&this.getMinute(tt)===this.getMinute(Ne)&&this.sameHour(tt,Ne)}sameMonthAndYear(tt,Ne){if(tt&&Ne){const vt=this.isValid(tt),ln=this.isValid(Ne);return vt&&ln?!(this.getYear(tt)-this.getYear(Ne)||this.getMonth(tt)-this.getMonth(Ne)):vt===ln}return tt===Ne}deserialize(tt){return this._delegate.deserialize(tt)}clone(tt){return this._delegate.clone(tt)}addCalendarYears(tt,Ne){return this._delegate.addCalendarYears(tt,Ne)}addCalendarMonths(tt,Ne){return this._delegate.addCalendarMonths(tt,Ne)}addCalendarDays(tt,Ne){return this._delegate.addCalendarDays(tt,Ne)}getYear(tt){return this._delegate.getYear(tt)}getMonth(tt){return this._delegate.getMonth(tt)}getDate(tt){return this._delegate.getDate(tt)}getDayOfWeek(tt){return this._delegate.getDayOfWeek(tt)}getMonthNames(tt){return this._delegate.getMonthNames(tt)}getDateNames(){return this._delegate.getDateNames()}getDayOfWeekNames(tt){return this._delegate.getDayOfWeekNames(tt)}getYearName(tt){return this._delegate.getYearName(tt)}getFirstDayOfWeek(){return this._delegate.getFirstDayOfWeek()}getNumDaysInMonth(tt){return this._delegate.getNumDaysInMonth(tt)}createDate(tt,Ne,vt){return this._delegate.createDate(tt,Ne,vt)}today(){return this._delegate.today()}parse(tt,Ne){return this._delegate.parse(tt,Ne)}format(tt,Ne){return this._delegate.format(tt,Ne)}toIso8601(tt){return this._delegate.toIso8601(tt)}isDateInstance(tt){return this._delegate.isDateInstance(tt)}isValid(tt){return this._delegate.isValid(tt)}invalid(){return this._delegate.invalid()}clampDate(tt,Ne,vt){return Ne&&this.compareDatetime(tt,Ne)<0?Ne:vt&&this.compareDatetime(tt,vt)>0?vt:tt}}const Ce=new e.OlP("mat-datetime-formats"),Te=fe(24,Lt=>String(Lt)),De=fe(60,Lt=>String(Lt));function fe(Lt,tt){const Ne=Array(Lt);for(let vt=0;vt<Lt;vt++)Ne[vt]=tt(vt);return Ne}let xe=(()=>{class Lt extends ge{constructor(Ne,vt){super(vt),this.setLocale(Ne)}clone(Ne){return this.createDatetime(this.getYear(Ne),this.getMonth(Ne),this.getDate(Ne),this.getHour(Ne),this.getMinute(Ne))}getHour(Ne){return Ne.getHours()}getMinute(Ne){return Ne.getMinutes()}isInNextMonth(Ne,vt){const ln=this.getDateInNextMonth(Ne);return this.sameMonthAndYear(ln,vt)}createDatetime(Ne,vt,ln,jn,Pi){if(vt<0||vt>11)throw Error(`Invalid month index "${vt}". Month index has to be between 0 and 11.`);if(ln<1)throw Error(`Invalid date "${ln}". Date has to be greater than 0.`);if(jn<0||jn>23)throw Error(`Invalid hour "${jn}". Hour has to be between 0 and 23.`);if(Pi<0||Pi>59)throw Error(`Invalid minute "${Pi}". Minute has to be between 0 and 59.`);const go=this._createDateWithOverflow(Ne,vt,ln,jn,Pi);if(go.getMonth()!==vt)throw Error(`Invalid date "${ln}" for month with index "${vt}".`);return go}getFirstDateOfMonth(Ne){const vt=new Date;return vt.setFullYear(Ne.getFullYear(),Ne.getMonth(),1),vt}getHourNames(){return Te}getMinuteNames(){return De}addCalendarYears(Ne,vt){return this.addCalendarMonths(Ne,12*vt)}addCalendarMonths(Ne,vt){let ln=this._createDateWithOverflow(this.getYear(Ne),this.getMonth(Ne)+vt,this.getDate(Ne),this.getHour(Ne),this.getMinute(Ne));return this.getMonth(ln)!==((this.getMonth(Ne)+vt)%12+12)%12&&(ln=this._createDateWithOverflow(this.getYear(ln),this.getMonth(ln),0,this.getHour(Ne),this.getMinute(Ne))),ln}addCalendarDays(Ne,vt){return this._createDateWithOverflow(this.getYear(Ne),this.getMonth(Ne),this.getDate(Ne)+vt,this.getHour(Ne),this.getMinute(Ne))}addCalendarHours(Ne,vt){return this._createDateWithOverflow(this.getYear(Ne),this.getMonth(Ne),this.getDate(Ne),this.getHour(Ne)+vt,this.getMinute(Ne))}addCalendarMinutes(Ne,vt){return this._createDateWithOverflow(this.getYear(Ne),this.getMonth(Ne),this.getDate(Ne),this.getHour(Ne),this.getMinute(Ne)+vt)}toIso8601(Ne){return super.toIso8601(Ne)+"T"+[this._2digit(Ne.getUTCHours()),this._2digit(Ne.getUTCMinutes())].join(":")}getDateInNextMonth(Ne){return new Date(Ne.getFullYear(),Ne.getMonth()+1,1,Ne.getHours(),Ne.getMinutes())}_stripDirectionalityCharacters(Ne){return Ne.replace(/[\u200e\u200f]/g,"")}_2digit(Ne){return("00"+Ne).slice(-2)}_createDateWithOverflow(Ne,vt,ln,jn,Pi){const go=new Date(Ne,vt,ln,jn,Pi);return Ne>=0&&Ne<100&&go.setFullYear(this.getYear(go)-1900),go}static#e=this.\u0275fac=function(vt){return new(vt||Lt)(e.LFG(n.Ad,8),e.LFG(n._A))};static#t=this.\u0275prov=e.Yz7({token:Lt,factory:Lt.\u0275fac})}return Lt})();const Oe={parse:{},display:{dateInput:{year:"numeric",month:"2-digit",day:"2-digit"},monthInput:{month:"long"},datetimeInput:{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"},timeInput:{hour:"2-digit",minute:"2-digit"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},popupHeaderDateLabel:{weekday:"short",month:"short",day:"2-digit"}}};let Le=(()=>{class Lt{static#e=this.\u0275fac=function(vt){return new(vt||Lt)};static#t=this.\u0275mod=e.oAB({type:Lt});static#n=this.\u0275inj=e.cJS({providers:[{provide:ge,useClass:xe}],imports:[n.Dn]})}return Lt})(),Gt=(()=>{class Lt{static#e=this.\u0275fac=function(vt){return new(vt||Lt)};static#t=this.\u0275mod=e.oAB({type:Lt});static#n=this.\u0275inj=e.cJS({providers:[{provide:Ce,useValue:Oe}],imports:[Le,n.XK]})}return Lt})();(0,_.X$)("fadeInContent",[(0,_.SB)("showing",(0,_.oB)({opacity:1})),(0,_.eR)("void => showing",[(0,_.oB)({opacity:0}),(0,_.jt)("150ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])]);const An=(0,_.X$)("slideCalendar",[(0,_.eR)("* => left",[(0,_.jt)(180,(0,_.F4)([(0,_.oB)({transform:"translateX(100%)",offset:.5}),(0,_.oB)({transform:"translateX(-100%)",offset:.51}),(0,_.oB)({transform:"translateX(0)",offset:1})]))]),(0,_.eR)("* => right",[(0,_.jt)(180,(0,_.F4)([(0,_.oB)({transform:"translateX(-100%)",offset:.5}),(0,_.oB)({transform:"translateX(100%)",offset:.51}),(0,_.oB)({transform:"translateX(0)",offset:1})]))])]);function $n(Lt){return Error(`MatDatetimepickerComponent: No provider found for ${Lt}. You must import one of the following modules at your application root: MatNativeDatetimeModule, MatMomentDatetimeModule, or provide a custom implementation.`)}var xn=function(Lt){return Lt[Lt.DATE=0]="DATE",Lt[Lt.HOUR=1]="HOUR",Lt[Lt.MINUTE=2]="MINUTE",Lt}(xn||{});class mt{constructor(tt,Ne,vt,ln){this.value=tt,this.displayValue=Ne,this.ariaLabel=vt,this.enabled=ln}}let ut=(()=>{class Lt{constructor(){this.numCols=7,this.allowDisabledSelection=!1,this.activeCell=0,this.selectedValueChange=new e.vpe}get _firstRowOffset(){return this.rows&&this.rows.length&&this.rows[0].length?this.numCols-this.rows[0].length:0}_cellClicked(Ne){!this.allowDisabledSelection&&!Ne.enabled||this.selectedValueChange.emit(Ne.value)}_isActiveCell(Ne,vt){let ln=Ne*this.numCols+vt;return Ne&&(ln-=this._firstRowOffset),ln===this.activeCell}static#e=this.\u0275fac=function(vt){return new(vt||Lt)};static#t=this.\u0275cmp=e.Xpm({type:Lt,selectors:[["tbody","matDatetimepickerCalendarBody",""]],hostAttrs:[1,"mat-datetimepicker-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",selectedValue:"selectedValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",allowDisabledSelection:"allowDisabledSelection",activeCell:"activeCell"},outputs:{selectedValueChange:"selectedValueChange"},attrs:D,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-datetimepicker-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-datetimepicker-calendar-body-label",4,"ngIf"],["class","mat-datetimepicker-calendar-body-cell","role","button",3,"mat-datetimepicker-calendar-body-active","mat-datetimepicker-calendar-body-disabled","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-datetimepicker-calendar-body-label"],["role","button",1,"mat-datetimepicker-calendar-body-cell",3,"click"],[1,"mat-datetimepicker-calendar-body-cell-content"]],template:function(vt,ln){1&vt&&(e.YNc(0,F,3,2,"tr",0),e.YNc(1,U,3,2,"tr",1)),2&vt&&(e.Q6J("ngIf",ln._firstRowOffset<ln.labelMinRequiredCells),e.xp6(1),e.Q6J("ngForOf",ln.rows))},dependencies:[l.sg,l.O5],styles:[".mat-datetimepicker-calendar-body{font-size:13px;min-width:224px}.mat-datetimepicker-calendar-body-label{padding:7.1428571429% 0 7.1428571429% 7.1428571429%;height:0;line-height:0;color:#0000008a;transform:translate(-6px);text-align:left}.mat-datetimepicker-calendar-body-cell{position:relative;width:14.2857142857%;height:0;line-height:0;padding:7.1428571429% 0;text-align:center;outline:none;cursor:pointer}.mat-datetimepicker-calendar-body-disabled{cursor:default;pointer-events:none}.mat-datetimepicker-calendar-body-cell-content{position:absolute;top:5%;left:5%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;color:#000000de;border:1px solid transparent;border-radius:50px}.mat-datetimepicker-calendar-body-disabled>.mat-datetimepicker-calendar-body-cell-content:not(.mat-datetimepicker-calendar-body-selected){color:#00000061}:not(.mat-datetimepicker-calendar-body-disabled):hover>.mat-datetimepicker-calendar-body-cell-content:not(.mat-datetimepicker-calendar-body-selected),.mat-datetimepicker-calendar-body-active>.mat-datetimepicker-calendar-body-cell-content:not(.mat-datetimepicker-calendar-body-selected){background-color:#0000001f}.mat-datetimepicker-calendar-body-disabled>.mat-datetimepicker-calendar-body-today:not(.mat-datetimepicker-calendar-body-selected){border-color:#0000002e}[dir=rtl] .mat-datetimepicker-calendar-body-label{padding:0 7.1428571429% 0 0;transform:translate(6px);text-align:right}\n"],encapsulation:2,changeDetection:0})}return Lt})();const Wt=24;let sn=(()=>{class Lt{constructor(Ne,vt){if(this._adapter=Ne,this._dateFormats=vt,this._userSelection=new e.vpe,this.type="date",this.selectedChange=new e.vpe,!this._adapter)throw $n("DatetimeAdapter");if(!this._dateFormats)throw $n("MAT_DATETIME_FORMATS");this._activeDate=this._adapter.today()}get activeDate(){return this._activeDate}set activeDate(Ne){let vt=this._activeDate;this._activeDate=Ne||this._adapter.today(),vt&&this._activeDate&&!fn(this._adapter,vt,this._activeDate,this.minDate,this.maxDate)&&this._init()}get selected(){return this._selected}set selected(Ne){this._selected=Ne,this._selectedYear=this._selected&&this._adapter.getYear(this._selected)}get minDate(){return this._minDate}set minDate(Ne){this._minDate=this._getValidDateOrNull(this._adapter.deserialize(Ne))}get maxDate(){return this._maxDate}set maxDate(Ne){this._maxDate=this._getValidDateOrNull(this._adapter.deserialize(Ne))}ngAfterContentInit(){this._init()}_yearSelected(Ne){const vt=this._adapter.getMonth(this.activeDate),ln=this._adapter.createDatetime(Ne,vt,1,0,0);this.selectedChange.emit(this._adapter.createDatetime(Ne,vt,Math.min(this._adapter.getDate(this.activeDate),this._adapter.getNumDaysInMonth(ln)),this._adapter.getHour(this.activeDate),this._adapter.getMinute(this.activeDate))),"year"===this.type&&this._userSelection.emit()}_getActiveCell(){return yi(this._adapter,this.activeDate,this.minDate,this.maxDate)}_calendarStateDone(){this._calendarState=""}_init(){this._todayYear=this._adapter.getYear(this._adapter.today()),this._yearLabel=this._adapter.getYearName(this.activeDate);const vt=this._adapter.getYear(this.activeDate)-yi(this._adapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let ln=0,jn=[];ln<Wt;ln++)jn.push(vt+ln),4==jn.length&&(this._years.push(jn.map(Pi=>this._createCellForYear(Pi))),jn=[])}_createCellForYear(Ne){let vt=this._adapter.getYearName(this._adapter.createDate(Ne,0,1));return new mt(Ne,vt,vt,this._shouldEnableYear(Ne))}_shouldEnableYear(Ne){if(null==Ne||this.maxDate&&Ne>this._adapter.getYear(this.maxDate)||this.minDate&&Ne<this._adapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let ln=this._adapter.createDate(Ne,0,1);this._adapter.getYear(ln)==Ne;ln=this._adapter.addCalendarDays(ln,1))if(this.dateFilter(ln))return!0;return!1}_getYearInCurrentRange(Ne){const vt=this._adapter.getYear(Ne);return this._isInRange(vt)?vt:null}_isInRange(Ne){return!0}_getValidDateOrNull(Ne){return this._adapter.isDateInstance(Ne)&&this._adapter.isValid(Ne)?Ne:null}static#e=this.\u0275fac=function(vt){return new(vt||Lt)(e.Y36(ge,8),e.Y36(Ce,8))};static#t=this.\u0275cmp=e.Xpm({type:Lt,selectors:[["mat-datetimepicker-multi-year-view"]],inputs:{type:"type",dateFilter:"dateFilter",activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate"},outputs:{_userSelection:"_userSelection",selectedChange:"selectedChange"},decls:3,vars:6,consts:[[1,"mat-datetimepicker-calendar-table"],[1,"mat-datetimepicker-calendar-table-header"],["allowDisabledSelection","true","matDatetimepickerCalendarBody","","role","grid",3,"activeCell","numCols","rows","selectedValue","todayValue","selectedValueChange"]],template:function(vt,ln){1&vt&&(e.TgZ(0,"table",0),e._UZ(1,"thead",1),e.TgZ(2,"tbody",2),e.NdJ("@slideCalendar.done",function(){return ln._calendarStateDone()})("selectedValueChange",function(Pi){return ln._yearSelected(Pi)}),e.qZA()()),2&vt&&(e.xp6(2),e.Q6J("@slideCalendar",ln._calendarState)("activeCell",ln._getActiveCell())("numCols",4)("rows",ln._years)("selectedValue",ln._selectedYear)("todayValue",ln._todayYear))},dependencies:[ut],encapsulation:2,data:{animation:[An]},changeDetection:0})}return Lt})();function fn(Lt,tt,Ne,vt,ln){const jn=Lt.getYear(tt),Pi=Lt.getYear(Ne),go=nn(Lt,vt,ln);return Math.floor((jn-go)/Wt)===Math.floor((Pi-go)/Wt)}function yi(Lt,tt,Ne,vt){return function Mi(Lt,tt){return(Lt%tt+tt)%tt}(Lt.getYear(tt)-nn(Lt,Ne,vt),Wt)}function nn(Lt,tt,Ne){let vt=0;return Ne?vt=Lt.getYear(Ne)-Wt+1:tt&&(vt=Lt.getYear(tt)),vt}const Ko=41.25,xo=7.0833;let Bn=(()=>{class Lt{constructor(Ne,vt){this._element=Ne,this._adapter=vt,this._userSelection=new e.vpe,this.interval=1,this.twelvehour=!1,this.selectedChange=new e.vpe,this.activeDateChange=new e.vpe,this._hours=[],this._minutes=[],this._hourView=!0,this._timeChanged=!1,this.mouseMoveListener=ln=>{this._handleMousemove(ln)},this.mouseUpListener=()=>{this._handleMouseup()}}get activeDate(){return this._activeDate}set activeDate(Ne){let vt=this._activeDate;this._activeDate=this._adapter.clampDate(Ne,this.minDate,this.maxDate),this._adapter.sameMinute(vt,this._activeDate)||this._init()}get selected(){return this._selected}set selected(Ne){this._selected=this._adapter.getValidDateOrNull(this._adapter.deserialize(Ne)),this._selected&&(this.activeDate=this._selected)}get minDate(){return this._minDate}set minDate(Ne){this._minDate=this._adapter.getValidDateOrNull(this._adapter.deserialize(Ne))}get maxDate(){return this._maxDate}set maxDate(Ne){this._maxDate=this._adapter.getValidDateOrNull(this._adapter.deserialize(Ne))}set startView(Ne){this._hourView="minute"!=Ne}get _hand(){let Ne=this._adapter.getHour(this.activeDate);this.twelvehour?(0===Ne&&(Ne=24),this._selectedHour=Ne>12?Ne-12:Ne):this._selectedHour=Ne,this._selectedMinute=this._adapter.getMinute(this.activeDate);let vt=0,ln=Ko;return this._hourView?(ln=this._selectedHour>0&&this._selectedHour<13?Ko:27.5,this.twelvehour&&(ln=Ko),vt=Math.round(30*this._selectedHour)):vt=Math.round(6*this._selectedMinute),{transform:`rotate(${vt}deg)`,height:`${ln}%`,"margin-top":50-ln+"%"}}ngAfterContentInit(){this.activeDate=this._activeDate||this._adapter.today(),this._init()}_handleMousedown(Ne){this._timeChanged=!1,this.setTime(Ne),document.addEventListener("mousemove",this.mouseMoveListener),document.addEventListener("touchmove",this.mouseMoveListener),document.addEventListener("mouseup",this.mouseUpListener),document.addEventListener("touchend",this.mouseUpListener)}_handleMousemove(Ne){Ne.preventDefault(),this.setTime(Ne)}_handleMouseup(){document.removeEventListener("mousemove",this.mouseMoveListener),document.removeEventListener("touchmove",this.mouseMoveListener),document.removeEventListener("mouseup",this.mouseUpListener),document.removeEventListener("touchend",this.mouseUpListener),this._timeChanged&&(this.selectedChange.emit(this.activeDate),this._hourView||this._userSelection.emit())}_init(){this._hours.length=0,this._minutes.length=0;let Ne=this._adapter.getHourNames(),vt=this._adapter.getMinuteNames();if(this.twelvehour)for(let ln=1;ln<Ne.length/2+1;ln++){let jn=ln/6*Math.PI,Pi=Ko;const go=this._adapter.createDatetime(this._adapter.getYear(this.activeDate),this._adapter.getMonth(this.activeDate),this._adapter.getDate(this.activeDate),ln+1,0);let si=(!this.minDate||this._adapter.compareDatetime(go,this.minDate)>=0)&&(!this.maxDate||this._adapter.compareDatetime(go,this.maxDate)<=0);this._hours.push({value:ln,displayValue:0===ln?"00":Ne[ln],enabled:si,top:50-Math.cos(jn)*Pi-xo,left:50+Math.sin(jn)*Pi-xo})}else for(let ln=0;ln<Ne.length;ln++){let jn=ln/6*Math.PI,go=ln>0&&ln<13?Ko:27.5;const si=this._adapter.createDatetime(this._adapter.getYear(this.activeDate),this._adapter.getMonth(this.activeDate),this._adapter.getDate(this.activeDate),ln,0);let ot=(!this.minDate||this._adapter.compareDatetime(si,this.minDate,!1)>=0)&&(!this.maxDate||this._adapter.compareDatetime(si,this.maxDate,!1)<=0)&&(!this.dateFilter||this.dateFilter(si,xn.HOUR));this._hours.push({value:ln,displayValue:0===ln?"00":Ne[ln],enabled:ot,top:50-Math.cos(jn)*go-xo,left:50+Math.sin(jn)*go-xo,fontSize:ln>0&&ln<13?"":"80%"})}for(let ln=0;ln<vt.length;ln+=5){let jn=ln/30*Math.PI;const Pi=this._adapter.createDatetime(this._adapter.getYear(this.activeDate),this._adapter.getMonth(this.activeDate),this._adapter.getDate(this.activeDate),this._adapter.getHour(this.activeDate),ln);let go=(!this.minDate||this._adapter.compareDatetime(Pi,this.minDate)>=0)&&(!this.maxDate||this._adapter.compareDatetime(Pi,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(Pi,xn.MINUTE));this._minutes.push({value:ln,displayValue:0===ln?"00":vt[ln],enabled:go,top:50-Math.cos(jn)*Ko-xo,left:50+Math.sin(jn)*Ko-xo})}}setTime(Ne){let vt=this._element.nativeElement,ln=vt.getBoundingClientRect(),jn=vt.offsetWidth,ot=jn/2-((void 0!==Ne.pageX?Ne.pageX:Ne.touches[0].pageX)-ln.left-window.pageXOffset),pn=vt.offsetHeight/2-((void 0!==Ne.pageY?Ne.pageY:Ne.touches[0].pageY)-ln.top-window.pageYOffset),_i=Math.atan2(-ot,pn),wi=Math.PI/(this._hourView?6:this.interval?30/this.interval:30),hi=Math.sqrt(ot*ot+pn*pn),zn=this._hourView&&hi>(.4125*jn+.275*jn)/2;_i<0&&(_i=2*Math.PI+_i);let li,Ei=Math.round(_i/wi);if(this._hourView){if(this.twelvehour?Ei=0===Ei?12:Ei:(12===Ei&&(Ei=0),Ei=zn?0===Ei?12:Ei:0===Ei?0:Ei+12),!this._hours.find(Xi=>Xi?.value===Ei)?.enabled)return;li=this._adapter.createDatetime(this._adapter.getYear(this.activeDate),this._adapter.getMonth(this.activeDate),this._adapter.getDate(this.activeDate),Ei,this._adapter.getMinute(this.activeDate))}else{if(this.interval&&(Ei*=this.interval),60===Ei&&(Ei=0),!this._minutes.find(Xi=>Xi?.value===Ei)?.enabled)return;li=this._adapter.createDatetime(this._adapter.getYear(this.activeDate),this._adapter.getMonth(this.activeDate),this._adapter.getDate(this.activeDate),this._adapter.getHour(this.activeDate),Ei)}this._timeChanged=!0,this.activeDate=li,this.activeDateChange.emit(this.activeDate)}static#e=this.\u0275fac=function(vt){return new(vt||Lt)(e.Y36(e.SBq),e.Y36(ge))};static#t=this.\u0275cmp=e.Xpm({type:Lt,selectors:[["mat-datetimepicker-clock"]],hostAttrs:["role","clock"],hostBindings:function(vt,ln){1&vt&&e.NdJ("mousedown",function(Pi){return ln._handleMousedown(Pi)})},inputs:{dateFilter:"dateFilter",interval:"interval",twelvehour:"twelvehour",activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",startView:"startView"},outputs:{_userSelection:"_userSelection",selectedChange:"selectedChange",activeDateChange:"activeDateChange"},decls:7,vars:7,consts:[[1,"mat-datetimepicker-clock"],[1,"mat-datetimepicker-clock-center"],[1,"mat-datetimepicker-clock-hand",3,"ngStyle"],[1,"mat-datetimepicker-clock-hours"],["class","mat-datetimepicker-clock-cell",3,"mat-datetimepicker-clock-cell-disabled","mat-datetimepicker-clock-cell-selected","fontSize","left","top",4,"ngFor","ngForOf"],[1,"mat-datetimepicker-clock-minutes"],["class","mat-datetimepicker-clock-cell",3,"mat-datetimepicker-clock-cell-disabled","mat-datetimepicker-clock-cell-selected","left","top",4,"ngFor","ngForOf"],[1,"mat-datetimepicker-clock-cell"]],template:function(vt,ln){1&vt&&(e.TgZ(0,"div",0),e._UZ(1,"div",1)(2,"div",2),e.TgZ(3,"div",3),e.YNc(4,V,2,11,"div",4),e.qZA(),e.TgZ(5,"div",5),e.YNc(6,K,2,9,"div",6),e.qZA()()),2&vt&&(e.xp6(2),e.Q6J("ngStyle",ln._hand),e.xp6(1),e.ekj("active",ln._hourView),e.xp6(1),e.Q6J("ngForOf",ln._hours),e.xp6(1),e.ekj("active",!ln._hourView),e.xp6(1),e.Q6J("ngForOf",ln._minutes))},dependencies:[l.sg,l.PC],styles:['[_nghost-%COMP%]{position:relative;display:block;min-width:224px;margin:8px;font-size:14px;box-sizing:border-box;-webkit-user-select:none;user-select:none}.mat-datetimepicker-clock[_ngcontent-%COMP%]{position:relative;width:100%;height:0;padding-top:100%;background-color:#e0e0e0;border-radius:50%}.mat-datetimepicker-clock-center[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;width:2%;height:2%;margin:-1%;border-radius:50%}.mat-datetimepicker-clock-hand[_ngcontent-%COMP%]{position:absolute;inset:0;width:1px;margin:0 auto;transform-origin:bottom}.mat-datetimepicker-clock-hand[_ngcontent-%COMP%]:before{content:"";position:absolute;top:-4px;left:-4px;width:8px;height:8px;border-radius:50%}.mat-datetimepicker-clock-hours[_ngcontent-%COMP%], .mat-datetimepicker-clock-minutes[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;visibility:hidden;transition:.35s;transform:scale(1.2)}.mat-datetimepicker-clock-hours.active[_ngcontent-%COMP%], .mat-datetimepicker-clock-minutes.active[_ngcontent-%COMP%]{opacity:1;visibility:visible;transform:scale(1)}.mat-datetimepicker-clock-minutes[_ngcontent-%COMP%]{transform:scale(.8)}.mat-datetimepicker-clock-cell[_ngcontent-%COMP%]{position:absolute;display:flex;width:14.1666%;height:14.1666%;color:#000000de;justify-content:center;box-sizing:border-box;border-radius:50%;align-items:center;cursor:pointer}.mat-datetimepicker-clock-cell[_ngcontent-%COMP%]:not(.mat-datetimepicker-clock-cell-selected):not(.mat-datetimepicker-clock-cell-disabled):hover{background-color:#0000001a}.mat-datetimepicker-clock-cell.mat-datetimepicker-clock-cell-disabled[_ngcontent-%COMP%]{color:#00000061;pointer-events:none}.mat-datetimepicker-clock-cell.mat-datetimepicker-clock-cell-selected[_ngcontent-%COMP%]{color:#fff}']})}return Lt})(),Ji=(()=>{class Lt{constructor(Ne,vt){if(this._adapter=Ne,this._dateFormats=vt,this.type="date",this._userSelection=new e.vpe,this.selectedChange=new e.vpe,!this._adapter)throw $n("DatetimeAdapter");if(!this._dateFormats)throw $n("MAT_DATETIME_FORMATS");const ln=this._adapter.getFirstDayOfWeek(),jn=this._adapter.getDayOfWeekNames("narrow");let go=this._adapter.getDayOfWeekNames("long").map((si,ot)=>({long:si,narrow:jn[ot]}));this._weekdays=go.slice(ln).concat(go.slice(0,ln)),this._activeDate=this._adapter.today()}get activeDate(){return this._activeDate}set activeDate(Ne){let vt=this._activeDate;this._activeDate=Ne||this._adapter.today(),vt&&this._activeDate&&!this._adapter.sameMonthAndYear(vt,this._activeDate)&&(this._init(),this._adapter.isInNextMonth(vt,this._activeDate)?this.calendarState("right"):this.calendarState("left"))}get selected(){return this._selected}set selected(Ne){this._selected=Ne,this._selectedDate=this._getDateInCurrentMonth(this.selected)}ngAfterContentInit(){this._init()}_dateSelected(Ne){this.selectedChange.emit(this._adapter.createDatetime(this._adapter.getYear(this.activeDate),this._adapter.getMonth(this.activeDate),Ne,this._adapter.getHour(this.activeDate),this._adapter.getMinute(this.activeDate))),"date"===this.type&&this._userSelection.emit()}_calendarStateDone(){this._calendarState=""}_init(){this._selectedDate=this._getDateInCurrentMonth(this.selected),this._todayDate=this._getDateInCurrentMonth(this._adapter.today());let Ne=this._adapter.createDatetime(this._adapter.getYear(this.activeDate),this._adapter.getMonth(this.activeDate),1,this._adapter.getHour(this.activeDate),this._adapter.getMinute(this.activeDate));this._firstWeekOffset=(7+this._adapter.getDayOfWeek(Ne)-this._adapter.getFirstDayOfWeek())%7,this._createWeekCells()}_createWeekCells(){let Ne=this._adapter.getNumDaysInMonth(this.activeDate),vt=this._adapter.getDateNames();this._weeks=[[]];for(let ln=0,jn=this._firstWeekOffset;ln<Ne;ln++,jn++){7==jn&&(this._weeks.push([]),jn=0);let Pi=this._adapter.createDatetime(this._adapter.getYear(this.activeDate),this._adapter.getMonth(this.activeDate),ln+1,this._adapter.getHour(this.activeDate),this._adapter.getMinute(this.activeDate)),go=!this.dateFilter||this.dateFilter(Pi),si=this._adapter.format(Pi,this._dateFormats.display.dateA11yLabel);this._weeks[this._weeks.length-1].push(new mt(ln+1,vt[ln],si,go))}}_getDateInCurrentMonth(Ne){return this._adapter.sameMonthAndYear(Ne,this.activeDate)?this._adapter.getDate(Ne):null}calendarState(Ne){this._calendarState=Ne}static#e=this.\u0275fac=function(vt){return new(vt||Lt)(e.Y36(ge,8),e.Y36(Ce,8))};static#t=this.\u0275cmp=e.Xpm({type:Lt,selectors:[["mat-datetimepicker-month-view"]],inputs:{type:"type",dateFilter:"dateFilter",activeDate:"activeDate",selected:"selected"},outputs:{_userSelection:"_userSelection",selectedChange:"selectedChange"},decls:5,vars:6,consts:[[1,"mat-datetimepicker-calendar-table"],[1,"mat-datetimepicker-calendar-table-header"],[4,"ngFor","ngForOf"],["matDatetimepickerCalendarBody","","role","grid",3,"activeCell","rows","selectedValue","todayValue","selectedValueChange"]],template:function(vt,ln){1&vt&&(e.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),e.YNc(3,X,2,2,"th",2),e.qZA()(),e.TgZ(4,"tbody",3),e.NdJ("@slideCalendar.done",function(){return ln._calendarStateDone()})("selectedValueChange",function(Pi){return ln._dateSelected(Pi)}),e.qZA()()),2&vt&&(e.xp6(3),e.Q6J("ngForOf",ln._weekdays),e.xp6(1),e.Q6J("@slideCalendar",ln._calendarState)("activeCell",ln._adapter.getDate(ln.activeDate)-1)("rows",ln._weeks)("selectedValue",ln._selectedDate)("todayValue",ln._todayDate))},dependencies:[l.sg,ut],encapsulation:2,data:{animation:[An]},changeDetection:0})}return Lt})(),En=(()=>{class Lt{constructor(Ne,vt){if(this._adapter=Ne,this._dateFormats=vt,this._userSelection=new e.vpe,this.type="date",this.selectedChange=new e.vpe,!this._adapter)throw $n("DatetimeAdapter");if(!this._dateFormats)throw $n("MAT_DATETIME_FORMATS");this._activeDate=this._adapter.today()}get activeDate(){return this._activeDate}set activeDate(Ne){let vt=this._activeDate;this._activeDate=Ne||this._adapter.today(),vt&&this._activeDate&&!this._adapter.sameYear(vt,this._activeDate)&&this._init()}get selected(){return this._selected}set selected(Ne){this._selected=Ne,this._selectedMonth=this._getMonthInCurrentYear(this.selected)}ngAfterContentInit(){this._init()}_monthSelected(Ne){const vt=this._adapter.createDatetime(this._adapter.getYear(this.activeDate),Ne,1,0,0);this.selectedChange.emit(this._adapter.createDatetime(this._adapter.getYear(this.activeDate),Ne,Math.min(this._adapter.getDate(this.activeDate),this._adapter.getNumDaysInMonth(vt)),this._adapter.getHour(this.activeDate),this._adapter.getMinute(this.activeDate))),"month"===this.type&&this._userSelection.emit()}_calendarStateDone(){this._calendarState=""}_init(){this._selectedMonth=this._getMonthInCurrentYear(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._adapter.today()),this._yearLabel=this._adapter.getYearName(this.activeDate);let Ne=this._adapter.getMonthNames("short");this._months=[[0,1,2,3,4],[5,6,7,8,9,10,11]].map(vt=>vt.map(ln=>this._createCellForMonth(ln,Ne[ln])))}_getMonthInCurrentYear(Ne){return this._adapter.sameYear(Ne,this.activeDate)?this._adapter.getMonth(Ne):null}_createCellForMonth(Ne,vt){let ln=this._adapter.format(this._adapter.createDatetime(this._adapter.getYear(this.activeDate),Ne,1,this._adapter.getHour(this.activeDate),this._adapter.getMinute(this.activeDate)),this._dateFormats.display.monthYearA11yLabel);return new mt(Ne,vt.toLocaleUpperCase(),ln,this._isMonthEnabled(Ne))}_isMonthEnabled(Ne){if(!this.dateFilter)return!0;for(let ln=this._adapter.createDatetime(this._adapter.getYear(this.activeDate),Ne,1,this._adapter.getHour(this.activeDate),this._adapter.getMinute(this.activeDate));this._adapter.getMonth(ln)==Ne;ln=this._adapter.addCalendarDays(ln,1))if(this.dateFilter(ln))return!0;return!1}static#e=this.\u0275fac=function(vt){return new(vt||Lt)(e.Y36(ge,8),e.Y36(Ce,8))};static#t=this.\u0275cmp=e.Xpm({type:Lt,selectors:[["mat-datetimepicker-year-view"]],inputs:{type:"type",dateFilter:"dateFilter",activeDate:"activeDate",selected:"selected"},outputs:{_userSelection:"_userSelection",selectedChange:"selectedChange"},decls:3,vars:7,consts:[[1,"mat-datetimepicker-calendar-table"],[1,"mat-datetimepicker-calendar-table-header"],["allowDisabledSelection","true","matDatetimepickerCalendarBody","","role","grid",3,"activeCell","labelMinRequiredCells","label","rows","selectedValue","todayValue","selectedValueChange"]],template:function(vt,ln){1&vt&&(e.TgZ(0,"table",0),e._UZ(1,"thead",1),e.TgZ(2,"tbody",2),e.NdJ("@slideCalendar.done",function(){return ln._calendarStateDone()})("selectedValueChange",function(Pi){return ln._monthSelected(Pi)}),e.qZA()()),2&vt&&(e.xp6(2),e.Q6J("@slideCalendar",ln._calendarState)("activeCell",ln._adapter.getMonth(ln.activeDate))("labelMinRequiredCells",2)("label",ln._yearLabel)("rows",ln._months)("selectedValue",ln._selectedMonth)("todayValue",ln._todayMonth))},dependencies:[ut],encapsulation:2,data:{animation:[An]},changeDetection:0})}return Lt})(),un=(()=>{class Lt{constructor(Ne,vt,ln,jn,Pi,go){if(this._elementRef=Ne,this._intl=vt,this._ngZone=ln,this._adapter=jn,this._dateFormats=Pi,this._userSelection=new e.vpe,this.multiYearSelector=!1,this.startView="month",this.twelvehour=!1,this.timeInterval=1,this.ariaLabel="Use arrow keys to navigate",this.ariaNextMonthLabel="Next month",this.ariaPrevMonthLabel="Previous month",this.ariaNextYearLabel="Next year",this.ariaPrevYearLabel="Previous year",this.ariaNextMultiYearLabel="Next year range",this.ariaPrevMultiYearLabel="Previous year range",this.preventSameDateTimeSelection=!1,this.selectedChange=new e.vpe,this.viewChanged=new e.vpe,this._clockView="hour",this._type="date",this._dateFilterForViews=si=>!!si&&(!this.dateFilter||this.dateFilter(si,xn.DATE))&&(!this.minDate||this._adapter.compareDate(si,this.minDate)>=0)&&(!this.maxDate||this._adapter.compareDate(si,this.maxDate)<=0),!this._adapter)throw $n("DatetimeAdapter");if(!this._dateFormats)throw $n("MAT_DATETIME_FORMATS");this._intlChanges=vt.changes.subscribe(()=>go.markForCheck())}get type(){return this._type}set type(Ne){this._type=Ne||"date","year"===this.type&&(this.multiYearSelector=!0)}get startAt(){return this._startAt}set startAt(Ne){this._startAt=this._adapter.getValidDateOrNull(Ne)}get selected(){return this._selected}set selected(Ne){this._selected=this._adapter.getValidDateOrNull(Ne)}get minDate(){return this._minDate}set minDate(Ne){this._minDate=this._adapter.getValidDateOrNull(Ne)}get maxDate(){return this._maxDate}set maxDate(Ne){this._maxDate=this._adapter.getValidDateOrNull(Ne)}get _activeDate(){return this._clampedActiveDate}set _activeDate(Ne){const vt=this._clampedActiveDate;this._clampedActiveDate=this._adapter.clampDate(Ne,this.minDate,this.maxDate),vt&&this._clampedActiveDate&&"month"===this.currentView&&!this._adapter.sameMonthAndYear(vt,this._clampedActiveDate)&&(this._adapter.isInNextMonth(vt,this._clampedActiveDate)?this.calendarState("right"):this.calendarState("left"))}get currentView(){return this._currentView}set currentView(Ne){this._currentView=Ne,this.viewChanged.emit(Ne)}get _yearLabel(){return this._adapter.getYearName(this._activeDate)}get _monthYearLabel(){if("multi-year"===this.currentView){const vt=this._adapter.getYear(this._activeDate)-yi(this._adapter,this._activeDate,this.minDate,this.maxDate),ln=vt+Wt-1,jn=this._adapter.getYearName(this._adapter.createDate(vt,0,1)),Pi=this._adapter.getYearName(this._adapter.createDate(ln,0,1));return this._intl.formatYearRange(jn,Pi)}return"month"===this.currentView?this._adapter.getMonthNames("long")[this._adapter.getMonth(this._activeDate)]:this._adapter.getYearName(this._activeDate)}get _dateLabel(){return"month"===this.type?this._adapter.getMonthNames("long")[this._adapter.getMonth(this._activeDate)]:this._adapter.format(this._activeDate,this._dateFormats.display.popupHeaderDateLabel)}get _hoursLabel(){let Ne=this._adapter.getHour(this._activeDate);return this.twelvehour&&(0===Ne&&(Ne=24),Ne=Ne>12?Ne-12:Ne),this._2digit(Ne)}get _minutesLabel(){return this._2digit(this._adapter.getMinute(this._activeDate))}get _ariaLabelNext(){switch(this._currentView){case"month":return this.ariaNextMonthLabel;case"year":return this.ariaNextYearLabel;case"multi-year":return this.ariaNextMultiYearLabel;default:return""}}get _ariaLabelPrev(){switch(this._currentView){case"month":return this.ariaPrevMonthLabel;case"year":return this.ariaPrevYearLabel;case"multi-year":return this.ariaPrevMultiYearLabel;default:return""}}_userSelected(){this._userSelection.emit()}ngAfterContentInit(){this._activeDate=this.startAt||this._adapter.today(),this._selectAMPM(this._activeDate),this._focusActiveCell(),this.currentView="year"===this.type?"multi-year":"month"===this.type?"year":"time"===this.type?"clock":this.startView||"month"}ngOnDestroy(){this._intlChanges.unsubscribe()}_dateSelected(Ne){"date"===this.type?(!this._adapter.sameDate(Ne,this.selected)||!this.preventSameDateTimeSelection)&&this.selectedChange.emit(Ne):(this._activeDate=Ne,this.currentView="clock")}_monthSelected(Ne){"month"===this.type?(!this._adapter.sameMonthAndYear(Ne,this.selected)||!this.preventSameDateTimeSelection)&&this.selectedChange.emit(this._adapter.getFirstDateOfMonth(Ne)):(this._activeDate=Ne,this.currentView="month",this._clockView="hour")}_yearSelected(Ne){if("year"===this.type){if(!this._adapter.sameYear(Ne,this.selected)||!this.preventSameDateTimeSelection){const vt=this._adapter.createDatetime(this._adapter.getYear(Ne),0,1,0,0);this.selectedChange.emit(vt)}}else this._activeDate=Ne,this.currentView="year"}_timeSelected(Ne){"minute"!==this._clockView?(this._activeDate=this._updateDate(Ne),this._clockView="minute"):(!this._adapter.sameDatetime(Ne,this.selected)||!this.preventSameDateTimeSelection)&&this.selectedChange.emit(Ne)}_onActiveDateChange(Ne){this._activeDate=Ne}_updateDate(Ne){if(this.twelvehour)if(12===this._adapter.getHour(Ne)){if("AM"===this._AMPM)return this._adapter.addCalendarHours(Ne,-12)}else if("PM"===this._AMPM)return this._adapter.addCalendarHours(Ne,12);return Ne}_selectAMPM(Ne){this._AMPM=this._adapter.getHour(Ne)>11?"PM":"AM"}_ampmClicked(Ne){Ne!==this._AMPM&&(this._AMPM=Ne,this._activeDate=this._adapter.addCalendarHours(this._activeDate,"AM"===this._AMPM?-12:12))}_yearClicked(){this.currentView="year"===this.type||this.multiYearSelector?"multi-year":"year"}_dateClicked(){"month"!==this.type&&(this.currentView="month")}_hoursClicked(){this.currentView="clock",this._clockView="hour"}_minutesClicked(){this.currentView="clock",this._clockView="minute"}_previousClicked(){this._activeDate="month"===this.currentView?this._adapter.addCalendarMonths(this._activeDate,-1):this._adapter.addCalendarYears(this._activeDate,"year"===this.currentView?-1:-Wt)}_nextClicked(){this._activeDate="month"===this.currentView?this._adapter.addCalendarMonths(this._activeDate,1):this._adapter.addCalendarYears(this._activeDate,"year"===this.currentView?1:Wt)}_previousEnabled(){return!this.minDate||!this.minDate||!this._isSameView(this._activeDate,this.minDate)}_nextEnabled(){return!this.maxDate||!this._isSameView(this._activeDate,this.maxDate)}_handleCalendarBodyKeydown(Ne){"month"===this.currentView?this._handleCalendarBodyKeydownInMonthView(Ne):"year"===this.currentView?this._handleCalendarBodyKeydownInYearView(Ne):"multi-year"===this.currentView?this._handleCalendarBodyKeydownInMultiYearView(Ne):this._handleCalendarBodyKeydownInClockView(Ne)}_focusActiveCell(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe((0,A.P)()).subscribe(()=>{this._elementRef.nativeElement.focus()})})}_calendarStateDone(){this._calendarState=""}_isSameView(Ne,vt){return"month"===this.currentView?this._adapter.getYear(Ne)===this._adapter.getYear(vt)&&this._adapter.getMonth(Ne)===this._adapter.getMonth(vt):"year"===this.currentView?this._adapter.getYear(Ne)===this._adapter.getYear(vt):fn(this._adapter,Ne,vt,this.minDate,this.maxDate)}_handleCalendarBodyKeydownInMonthView(Ne){switch(Ne.keyCode){case d.oh:this._activeDate=this._adapter.addCalendarDays(this._activeDate,-1);break;case d.SV:this._activeDate=this._adapter.addCalendarDays(this._activeDate,1);break;case d.LH:this._activeDate=this._adapter.addCalendarDays(this._activeDate,-7);break;case d.JH:this._activeDate=this._adapter.addCalendarDays(this._activeDate,7);break;case d.Sd:this._activeDate=this._adapter.addCalendarDays(this._activeDate,1-this._adapter.getDate(this._activeDate));break;case d.uR:this._activeDate=this._adapter.addCalendarDays(this._activeDate,this._adapter.getNumDaysInMonth(this._activeDate)-this._adapter.getDate(this._activeDate));break;case d.Ku:this._activeDate=Ne.altKey?this._adapter.addCalendarYears(this._activeDate,-1):this._adapter.addCalendarMonths(this._activeDate,-1);break;case d.VM:this._activeDate=Ne.altKey?this._adapter.addCalendarYears(this._activeDate,1):this._adapter.addCalendarMonths(this._activeDate,1);break;case d.K5:return void(this._dateFilterForViews(this._activeDate)&&(this._dateSelected(this._activeDate),Ne.preventDefault()));default:return}Ne.preventDefault()}_handleCalendarBodyKeydownInYearView(Ne){switch(Ne.keyCode){case d.oh:this._activeDate=this._adapter.addCalendarMonths(this._activeDate,-1);break;case d.SV:this._activeDate=this._adapter.addCalendarMonths(this._activeDate,1);break;case d.LH:this._activeDate=this._prevMonthInSameCol(this._activeDate);break;case d.JH:this._activeDate=this._nextMonthInSameCol(this._activeDate);break;case d.Sd:this._activeDate=this._adapter.addCalendarMonths(this._activeDate,-this._adapter.getMonth(this._activeDate));break;case d.uR:this._activeDate=this._adapter.addCalendarMonths(this._activeDate,11-this._adapter.getMonth(this._activeDate));break;case d.Ku:this._activeDate=this._adapter.addCalendarYears(this._activeDate,Ne.altKey?-10:-1);break;case d.VM:this._activeDate=this._adapter.addCalendarYears(this._activeDate,Ne.altKey?10:1);break;case d.K5:this._monthSelected(this._activeDate);break;default:return}Ne.preventDefault()}_handleCalendarBodyKeydownInMultiYearView(Ne){switch(Ne.keyCode){case d.oh:this._activeDate=this._adapter.addCalendarYears(this._activeDate,-1);break;case d.SV:this._activeDate=this._adapter.addCalendarYears(this._activeDate,1);break;case d.LH:this._activeDate=this._adapter.addCalendarYears(this._activeDate,-4);break;case d.JH:this._activeDate=this._adapter.addCalendarYears(this._activeDate,4);break;case d.Sd:this._activeDate=this._adapter.addCalendarYears(this._activeDate,-yi(this._adapter,this._activeDate,this.minDate,this.maxDate));break;case d.uR:this._activeDate=this._adapter.addCalendarYears(this._activeDate,Wt-yi(this._adapter,this._activeDate,this.minDate,this.maxDate)-1);break;case d.Ku:this._activeDate=this._adapter.addCalendarYears(this._activeDate,Ne.altKey?10*-Wt:-Wt);break;case d.VM:this._activeDate=this._adapter.addCalendarYears(this._activeDate,Ne.altKey?10*Wt:Wt);break;case d.K5:this._yearSelected(this._activeDate);break;default:return}}_handleCalendarBodyKeydownInClockView(Ne){switch(Ne.keyCode){case d.LH:this._activeDate="hour"===this._clockView?this._adapter.addCalendarHours(this._activeDate,1):this._adapter.addCalendarMinutes(this._activeDate,1);break;case d.JH:this._activeDate="hour"===this._clockView?this._adapter.addCalendarHours(this._activeDate,-1):this._adapter.addCalendarMinutes(this._activeDate,-1);break;case d.K5:return void this._timeSelected(this._activeDate);default:return}Ne.preventDefault()}_prevMonthInSameCol(Ne){const vt=this._adapter.getMonth(Ne)<=4?-5:this._adapter.getMonth(Ne)>=7?-7:-12;return this._adapter.addCalendarMonths(Ne,vt)}_nextMonthInSameCol(Ne){const vt=this._adapter.getMonth(Ne)<=4?7:this._adapter.getMonth(Ne)>=7?5:12;return this._adapter.addCalendarMonths(Ne,vt)}calendarState(Ne){this._calendarState=Ne}_2digit(Ne){return("00"+Ne).slice(-2)}static#e=this.\u0275fac=function(vt){return new(vt||Lt)(e.Y36(e.SBq),e.Y36(s.S8),e.Y36(e.R0b),e.Y36(ge,8),e.Y36(Ce,8),e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:Lt,selectors:[["mat-datetimepicker-calendar"]],hostAttrs:["role","dialog","tabindex","0"],hostVars:3,hostBindings:function(vt,ln){1&vt&&e.NdJ("keydown",function(Pi){return ln._handleCalendarBodyKeydown(Pi)}),2&vt&&(e.uIk("aria-label",ln.ariaLabel),e.ekj("mat-datetimepicker-calendar",!0))},inputs:{multiYearSelector:"multiYearSelector",startView:"startView",twelvehour:"twelvehour",timeInterval:"timeInterval",dateFilter:"dateFilter",ariaLabel:"ariaLabel",ariaNextMonthLabel:"ariaNextMonthLabel",ariaPrevMonthLabel:"ariaPrevMonthLabel",ariaNextYearLabel:"ariaNextYearLabel",ariaPrevYearLabel:"ariaPrevYearLabel",ariaNextMultiYearLabel:"ariaNextMultiYearLabel",ariaPrevMultiYearLabel:"ariaPrevMultiYearLabel",preventSameDateTimeSelection:"preventSameDateTimeSelection",type:"type",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate"},outputs:{_userSelection:"_userSelection",selectedChange:"selectedChange",viewChanged:"viewChanged"},decls:11,vars:8,consts:[[1,"mat-datetimepicker-calendar-header"],["class","mat-datetimepicker-calendar-header-year","role","button",3,"active","click",4,"ngIf"],[1,"mat-datetimepicker-calendar-header-date-time"],["class","mat-datetimepicker-calendar-header-date","role","button",3,"active","not-clickable","click",4,"ngIf"],["class","mat-datetimepicker-calendar-header-time",3,"active",4,"ngIf"],[1,"mat-datetimepicker-calendar-content",3,"ngSwitch"],["class","mat-month-content",4,"ngIf"],[3,"activeDate","dateFilter","selected","type","_userSelection","selectedChange",4,"ngSwitchCase"],[3,"activeDate","dateFilter","maxDate","minDate","selected","type","_userSelection","selectedChange",4,"ngSwitchCase"],[3,"dateFilter","interval","maxDate","minDate","selected","startView","twelvehour","_userSelection","activeDateChange","selectedChange",4,"ngSwitchDefault"],["role","button",1,"mat-datetimepicker-calendar-header-year",3,"click"],[4,"ngIf"],["role","button",1,"mat-datetimepicker-calendar-header-date",3,"click"],[1,"mat-datetimepicker-calendar-header-time"],["role","button",1,"mat-datetimepicker-calendar-header-hours",3,"click"],["role","button",1,"mat-datetimepicker-calendar-header-minutes",3,"click"],["class","mat-datetimepicker-calendar-header-ampm-container",4,"ngIf"],[1,"mat-datetimepicker-calendar-header-ampm-container"],[1,"mat-datetimepicker-calendar-header-ampm",3,"click"],[1,"mat-month-content"],[1,"mat-datetimepicker-calendar-controls"],["role","button",1,"mat-datetimepicker-calendar-previous-button",3,"click"],["height","24","viewBox","0 0 24 24","width","24"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],[1,"mat-datetimepicker-calendar-period-button"],["role","button",1,"mat-datetimepicker-calendar-next-button",3,"click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],[3,"activeDate","dateFilter","selected","type","_userSelection","selectedChange"],[3,"activeDate","dateFilter","maxDate","minDate","selected","type","_userSelection","selectedChange"],[3,"dateFilter","interval","maxDate","minDate","selected","startView","twelvehour","_userSelection","activeDateChange","selectedChange"]],template:function(vt,ln){1&vt&&(e.TgZ(0,"div",0),e.YNc(1,J,3,4,"div",1),e.TgZ(2,"div",2),e.YNc(3,Q,2,5,"span",3),e.YNc(4,de,8,9,"span",4),e.qZA()(),e.TgZ(5,"div",5),e.YNc(6,te,11,10,"div",6),e.YNc(7,j,1,4,"mat-datetimepicker-month-view",7),e.YNc(8,H,1,4,"mat-datetimepicker-year-view",7),e.YNc(9,z,1,6,"mat-datetimepicker-multi-year-view",8),e.YNc(10,q,1,7,"mat-datetimepicker-clock",9),e.qZA()),2&vt&&(e.xp6(1),e.Q6J("ngIf","time"!==ln.type),e.xp6(2),e.Q6J("ngIf","time"!==ln.type&&"year"!==ln.type),e.xp6(1),e.Q6J("ngIf",ln.type.endsWith("time")),e.xp6(1),e.Q6J("ngSwitch",ln.currentView),e.xp6(1),e.Q6J("ngIf","month"===ln.currentView||"year"===ln.currentView||"multi-year"===ln.currentView),e.xp6(1),e.Q6J("ngSwitchCase","month"),e.xp6(1),e.Q6J("ngSwitchCase","year"),e.xp6(1),e.Q6J("ngSwitchCase","multi-year"))},dependencies:[l.O5,l.RF,l.n9,l.ED,u.Hw,Bn,Ji,En,sn],styles:[".mat-datetimepicker-calendar{-webkit-user-select:none;user-select:none;display:block;outline:none}.mat-datetimepicker-calendar[mode=landscape]{display:flex}.mat-datetimepicker-calendar-header{padding:16px;font-size:14px;box-sizing:border-box}[mode=landscape] .mat-datetimepicker-calendar-header{width:150px;min-width:150px}.mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-year,.mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-date-time{width:100%;font-weight:500;white-space:nowrap}.mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-year{font-size:16px}.mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-year mat-icon{transform:translateY(5px)}.mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-date-time{font-size:30px;line-height:34px}[mode=landscape] .mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-date-time{white-space:normal;word-wrap:break-word}.mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-ampm-container{font-size:.77em}.mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-year:not(.active),.mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-date:not(.active),.mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-hours:not(.active),.mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-minutes:not(.active),.mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-ampm:not(.active){cursor:pointer;opacity:.6}.mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-year.not-clickable,.mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-date.not-clickable,.mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-hours.not-clickable,.mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-minutes.not-clickable,.mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-ampm.not-clickable{cursor:initial}.mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-time{padding-left:8px}.mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-time:not(.active){opacity:.6}.mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-time:not(.active) .mat-datetimepicker-calendar-header-hours,.mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-time:not(.active) .mat-datetimepicker-calendar-header-minutes,.mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-time:not(.active) .mat-datetimepicker-calendar-header-ampm{cursor:pointer;opacity:1}[mode=landscape] .mat-datetimepicker-calendar-header .mat-datetimepicker-calendar-header-time{display:block;padding-left:0}.mat-datetimepicker-calendar-content{width:100%;padding:0 8px 8px;outline:none;box-sizing:border-box;overflow:hidden}[mode=landscape] .mat-datetimepicker-calendar-content{padding-top:8px}.mat-datetimepicker-calendar-controls{display:flex;justify-content:space-between}.mat-datetimepicker-calendar-period-button{display:inline-block;height:48px;padding:12px;outline:none;border:0;background:transparent;box-sizing:border-box}.mat-datetimepicker-calendar-previous-button,.mat-datetimepicker-calendar-next-button{display:inline-block;width:48px;height:48px;padding:12px;outline:none;border:0;cursor:pointer;background:transparent;box-sizing:border-box}.mat-datetimepicker-calendar-previous-button.disabled,.mat-datetimepicker-calendar-next-button.disabled{color:#00000061;pointer-events:none}.mat-datetimepicker-calendar-previous-button svg,.mat-datetimepicker-calendar-next-button svg{fill:currentColor;vertical-align:top}.mat-datetimepicker-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-datetimepicker-calendar-table-header{color:#00000061}.mat-datetimepicker-calendar-table-header th{text-align:center;font-size:11px;padding:0 0 8px}@media (min-width: 480px){.mat-datetimepicker-calendar[mode=auto]{display:flex}.mat-datetimepicker-calendar[mode=auto] .mat-datetimepicker-calendar-header{width:150px;min-width:150px}.mat-datetimepicker-calendar[mode=auto] .mat-datetimepicker-calendar-header-date-time{white-space:normal;word-wrap:break-word}.mat-datetimepicker-calendar[mode=auto] .mat-datetimepicker-calendar-header-time{display:block;padding-left:0}.mat-datetimepicker-calendar[mode=auto] .mat-datetimepicker-calendar-content{padding-top:8px}}\n"],encapsulation:2,data:{animation:[An]},changeDetection:0})}return Lt})(),Ki=0,Fn=(()=>{class Lt{ngAfterContentInit(){this._calendar._focusActiveCell()}onSelectionChange(Ne){this.datetimepicker._select(Ne),this.datetimepicker.close()}_handleKeydown(Ne){Ne.keyCode===d.hY&&(this.datetimepicker.close(),Ne.preventDefault(),Ne.stopPropagation())}static#e=this.\u0275fac=function(vt){return new(vt||Lt)};static#t=this.\u0275cmp=e.Xpm({type:Lt,selectors:[["mat-datetimepicker-content"]],viewQuery:function(vt,ln){if(1&vt&&e.Gf(un,7),2&vt){let jn;e.iGM(jn=e.CRH())&&(ln._calendar=jn.first)}},hostAttrs:[1,"mat-datetimepicker-content"],hostVars:2,hostBindings:function(vt,ln){1&vt&&e.NdJ("keydown",function(Pi){return ln._handleKeydown(Pi)}),2&vt&&e.ekj("mat-datetimepicker-content-touch",null==ln.datetimepicker?null:ln.datetimepicker.touchUi)},decls:1,vars:17,consts:[["cdkTrapFocus","",1,"mat-typography",3,"ariaNextMonthLabel","ariaNextYearLabel","ariaPrevMonthLabel","ariaPrevYearLabel","preventSameDateTimeSelection","dateFilter","id","maxDate","minDate","multiYearSelector","selected","startAt","startView","timeInterval","twelvehour","type","_userSelection","selectedChange","viewChanged"]],template:function(vt,ln){1&vt&&(e.TgZ(0,"mat-datetimepicker-calendar",0),e.NdJ("_userSelection",function(){return ln.datetimepicker.close()})("selectedChange",function(Pi){return ln.onSelectionChange(Pi)})("viewChanged",function(Pi){return ln.datetimepicker._viewChanged(Pi)}),e.qZA()),2&vt&&(e.Q6J("ariaNextMonthLabel",ln.datetimepicker.ariaNextMonthLabel)("ariaNextYearLabel",ln.datetimepicker.ariaNextYearLabel)("ariaPrevMonthLabel",ln.datetimepicker.ariaPrevMonthLabel)("ariaPrevYearLabel",ln.datetimepicker.ariaPrevYearLabel)("preventSameDateTimeSelection",ln.datetimepicker.preventSameDateTimeSelection)("dateFilter",ln.datetimepicker._dateFilter)("id",ln.datetimepicker.id)("maxDate",ln.datetimepicker._maxDate)("minDate",ln.datetimepicker._minDate)("multiYearSelector",ln.datetimepicker.multiYearSelector)("selected",ln.datetimepicker._selected)("startAt",ln.datetimepicker.startAt)("startView",ln.datetimepicker.startView)("timeInterval",ln.datetimepicker.timeInterval)("twelvehour",ln.datetimepicker.twelvehour)("type",ln.datetimepicker.type),e.uIk("mode",ln.datetimepicker.mode))},dependencies:[o.mK,un],styles:[".mat-datetimepicker-content{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;display:block;background-color:#fff;border-radius:2px;overflow:hidden}.mat-datetimepicker-calendar{width:296px;height:405px}.mat-datetimepicker-calendar[mode=landscape]{width:446px;height:328px}@media (min-width: 480px){.mat-datetimepicker-calendar[mode=auto]{width:446px;height:328px}}.mat-datetimepicker-content-touch{box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f;display:block;box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.48}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.6)}.mat-datetimepicker-dialog .mat-dialog-container{padding:0}\n"],encapsulation:2,changeDetection:0})}return Lt})(),oi=(()=>{class Lt{constructor(Ne,vt,ln,jn,Pi,go,si,ot){if(this._dialog=Ne,this._overlay=vt,this._ngZone=ln,this._viewContainerRef=jn,this._scrollStrategy=Pi,this._dateAdapter=go,this._dir=si,this._document=ot,this.multiYearSelector=!1,this.twelvehour=!1,this.startView="month",this.mode="auto",this.timeInterval=1,this.ariaNextMonthLabel="Next month",this.ariaPrevMonthLabel="Previous month",this.ariaNextYearLabel="Next year",this.ariaPrevYearLabel="Previous year",this.preventSameDateTimeSelection=!1,this.selectedChanged=new e.vpe,this.openedStream=new e.vpe,this.closedStream=new e.vpe,this.viewChanged=new e.vpe,this.opened=!1,this.id="mat-datetimepicker-"+Ki++,this._disabledChange=new k.x,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=w.w0.EMPTY,this._type="date",this._touchUi=!1,!this._dateAdapter)throw $n("DateAdapter")}get startAt(){return this._startAt||(this._datepickerInput?this._datepickerInput.value:null)}set startAt(Ne){this._startAt=this._dateAdapter.getValidDateOrNull(Ne)}get openOnFocus(){return this._openOnFocus}set openOnFocus(Ne){this._openOnFocus=(0,R.Ig)(Ne)}get type(){return this._type}set type(Ne){this._type=Ne||"date"}get touchUi(){return this._touchUi}set touchUi(Ne){this._touchUi=(0,R.Ig)(Ne)}get disabled(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled}set disabled(Ne){const vt=(0,R.Ig)(Ne);vt!==this._disabled&&(this._disabled=vt,this._disabledChange.next(vt))}get _selected(){return this._validSelected}set _selected(Ne){this._validSelected=Ne}get _minDate(){return this._datepickerInput&&this._datepickerInput.min}get _maxDate(){return this._datepickerInput&&this._datepickerInput.max}get _dateFilter(){return this._datepickerInput&&this._datepickerInput._dateFilter}_handleFocus(){!this.opened&&this.openOnFocus&&this.open()}_viewChanged(Ne){this.viewChanged.emit(Ne)}ngOnDestroy(){this.close(),this._inputSubscription.unsubscribe(),this._disabledChange.complete(),this._popupRef&&this._popupRef.dispose()}_select(Ne){const vt=this._selected;this._selected=Ne,this._dateAdapter.sameDatetime(vt,this._selected)||this.selectedChanged.emit(Ne)}_registerInput(Ne){if(this._datepickerInput)throw Error("A MatDatepicker can only be associated with a single input.");this._datepickerInput=Ne,this._inputSubscription=this._datepickerInput._valueChange.subscribe(vt=>this._selected=vt)}open(){if(!this.opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an MatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this.opened=!0,this.openedStream.emit()}}close(){if(!this.opened)return;this._popupRef&&this._popupRef.hasAttached()&&this._popupRef.detach(),this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null),this._calendarPortal&&this._calendarPortal.isAttached&&this._calendarPortal.detach();const Ne=()=>{this.opened&&(this.opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(Ne)):Ne()}_openAsDialog(){this._dialogRef=this._dialog.open(Fn,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datetimepicker-dialog"}),this._dialogRef.afterClosed().subscribe(()=>this.close()),this._dialogRef.componentInstance.datetimepicker=this}_openAsPopup(){this._calendarPortal||(this._calendarPortal=new x.C5(Fn,this._viewContainerRef)),this._popupRef||this._createPopup(),this._popupRef.hasAttached()||(this._popupRef.attach(this._calendarPortal).instance.datetimepicker=this,this._ngZone.onStable.asObservable().pipe((0,A.P)()).subscribe(()=>{this._popupRef.updatePosition()})),this._popupRef.backdropClick().subscribe(()=>this.close())}_createPopup(){const Ne=new a.X_({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir?this._dir.value:"ltr",scrollStrategy:this._scrollStrategy(),panelClass:"mat-datetimepicker-popup"});this._popupRef=this._overlay.create(Ne)}_createPopupPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datetimepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition().withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])}static#e=this.\u0275fac=function(vt){return new(vt||Lt)(e.Y36(f.uw),e.Y36(a.aV),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(s.Uu),e.Y36(ge,8),e.Y36(C.Is,8),e.Y36(l.K0,8))};static#t=this.\u0275cmp=e.Xpm({type:Lt,selectors:[["mat-datetimepicker"]],inputs:{multiYearSelector:"multiYearSelector",twelvehour:"twelvehour",startView:"startView",mode:"mode",timeInterval:"timeInterval",ariaNextMonthLabel:"ariaNextMonthLabel",ariaPrevMonthLabel:"ariaPrevMonthLabel",ariaNextYearLabel:"ariaNextYearLabel",ariaPrevYearLabel:"ariaPrevYearLabel",preventSameDateTimeSelection:"preventSameDateTimeSelection",panelClass:"panelClass",startAt:"startAt",openOnFocus:"openOnFocus",type:"type",touchUi:"touchUi",disabled:"disabled"},outputs:{selectedChanged:"selectedChanged",openedStream:"opened",closedStream:"closed",viewChanged:"viewChanged"},exportAs:["matDatetimepicker"],decls:0,vars:0,template:function(vt,ln){},encapsulation:2,changeDetection:0})}return Lt})();const It={provide:E.JU,useExisting:(0,e.Gpc)(()=>wt),multi:!0},Bt={provide:E.Cf,useExisting:(0,e.Gpc)(()=>wt),multi:!0};class xt{constructor(tt,Ne){this.target=tt,this.targetElement=Ne,this.value=this.target.value}}let wt=(()=>{class Lt{constructor(Ne,vt,ln,jn){if(this._elementRef=Ne,this._dateAdapter=vt,this._dateFormats=ln,this._formField=jn,this.dateChange=new e.vpe,this.dateInput=new e.vpe,this._valueChange=new e.vpe,this._disabledChange=new e.vpe,this._datepickerSubscription=w.w0.EMPTY,this._localeSubscription=w.w0.EMPTY,this._lastValueValid=!1,this._onTouched=()=>{},this._cvaOnChange=()=>{},this._validatorOnChange=()=>{},this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._minValidator=Pi=>{const go=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pi.value));return!this.min||!go||this._dateAdapter.compareDatetime(this.min,go)<=0?null:{matDatepickerMin:{min:this.min,actual:go}}},this._maxValidator=Pi=>{const go=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pi.value));return!this.max||!go||this._dateAdapter.compareDatetime(this.max,go)>=0?null:{matDatepickerMax:{max:this.max,actual:go}}},this._filterValidator=Pi=>{const go=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pi.value));return this._dateFilter&&go&&!this._dateFilter(go,xn.DATE)?{matDatepickerFilter:!0}:null},this._validator=E.kI.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),!this._dateAdapter)throw $n("DatetimeAdapter");if(!this._dateFormats)throw $n("MAT_DATETIME_FORMATS");this._localeSubscription=vt.localeChanges.subscribe(()=>{this.value=this.value})}set matDatetimepicker(Ne){this.registerDatepicker(Ne)}set matDatepickerFilter(Ne){this._dateFilter=Ne,this._validatorOnChange()}get value(){return this._value}set value(Ne){Ne=this._dateAdapter.deserialize(Ne),this._lastValueValid=!Ne||this._dateAdapter.isValid(Ne),Ne=this._dateAdapter.getValidDateOrNull(Ne);const vt=this.value;this._value=Ne,this._formatValue(Ne),setTimeout(()=>{this._dateAdapter.sameDatetime(vt,Ne)||this._valueChange.emit(Ne)})}get min(){return this._min}set min(Ne){this._min=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ne)),this._validatorOnChange()}get max(){return this._max}set max(Ne){this._max=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ne)),this._validatorOnChange()}get disabled(){return!!this._disabled}set disabled(Ne){const vt=(0,R.Ig)(Ne);this._disabled!==vt&&(this._disabled=vt,this._disabledChange.emit(vt))}ngAfterContentInit(){this._datepicker&&(this._datepickerSubscription=this._datepicker.selectedChanged.subscribe(Ne=>{this.value=Ne,this._cvaOnChange(Ne),this._onTouched(),this.dateInput.emit(new xt(this,this._elementRef.nativeElement)),this.dateChange.emit(new xt(this,this._elementRef.nativeElement))}))}ngOnDestroy(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._disabledChange.complete()}registerOnValidatorChange(Ne){this._validatorOnChange=Ne}validate(Ne){return this._validator?this._validator(Ne):null}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}writeValue(Ne){this.value=Ne}registerOnChange(Ne){this._cvaOnChange=Ne}registerOnTouched(Ne){this._onTouched=Ne}setDisabledState(Ne){this.disabled=Ne}_onKeydown(Ne){Ne.altKey&&Ne.keyCode===d.JH&&(this._datepicker.open(),Ne.preventDefault())}_onInput(Ne){let vt=this._dateAdapter.parse(Ne,this.getParseFormat());this._lastValueValid=!vt||this._dateAdapter.isValid(vt),vt=this._dateAdapter.getValidDateOrNull(vt),this._value=vt,this._cvaOnChange(vt),this._valueChange.emit(vt),this.dateInput.emit(new xt(this,this._elementRef.nativeElement))}_onChange(){this.dateChange.emit(new xt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}registerDatepicker(Ne){Ne&&(this._datepicker=Ne,this._datepicker._registerInput(this))}getDisplayFormat(){switch(this._datepicker.type){case"date":return this._dateFormats.display.dateInput;case"datetime":return this._dateFormats.display.datetimeInput;case"time":return this._dateFormats.display.timeInput;case"month":return this._dateFormats.display.monthInput}}getParseFormat(){let Ne;switch(this._datepicker.type){case"date":Ne=this._dateFormats.parse.dateInput;break;case"datetime":Ne=this._dateFormats.parse.datetimeInput;break;case"time":Ne=this._dateFormats.parse.timeInput;break;case"month":Ne=this._dateFormats.parse.monthInput}return Ne||(Ne=this._dateFormats.parse.dateInput),Ne}_formatValue(Ne){this._elementRef.nativeElement.value=Ne?this._dateAdapter.format(Ne,this.getDisplayFormat()):""}static#e=this.\u0275fac=function(vt){return new(vt||Lt)(e.Y36(e.SBq),e.Y36(ge,8),e.Y36(Ce,8),e.Y36(b.KE,8))};static#t=this.\u0275dir=e.lG2({type:Lt,selectors:[["input","matDatetimepicker",""]],hostVars:5,hostBindings:function(vt,ln){1&vt&&e.NdJ("focus",function(){return ln._datepicker._handleFocus()})("input",function(Pi){return ln._onInput(Pi.target.value)})("change",function(){return ln._onChange()})("blur",function(){return ln._onBlur()})("keydown",function(Pi){return ln._onKeydown(Pi)}),2&vt&&(e.Ikx("disabled",ln.disabled),e.uIk("aria-haspopup",!0)("aria-owns",(null==ln._datepicker?null:ln._datepicker.opened)&&ln._datepicker.id||null)("min",ln.min?ln._dateAdapter.toIso8601(ln.min):null)("max",ln.max?ln._dateAdapter.toIso8601(ln.max):null))},inputs:{matDatetimepicker:"matDatetimepicker",matDatepickerFilter:"matDatepickerFilter",value:"value",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["matDatepickerInput"],features:[e._Bn([It,Bt,{provide:I.Jk,useExisting:Lt}])]})}return Lt})(),Mt=(()=>{class Lt{constructor(Ne,vt){this._intl=Ne,this._changeDetectorRef=vt,this._stateChanges=w.w0.EMPTY}get disabled(){return void 0===this._disabled?this.datetimepicker.disabled:!!this._disabled}set disabled(Ne){this._disabled=(0,R.Ig)(Ne)}ngOnChanges(Ne){Ne.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(Ne){this.datetimepicker&&!this.disabled&&(this.datetimepicker.open(),Ne.stopPropagation())}_watchStateChanges(){const Ne=this.datetimepicker?this.datetimepicker._disabledChange:(0,g.x)([],M.z),vt=this.datetimepicker&&this.datetimepicker._datepickerInput?this.datetimepicker._datepickerInput._disabledChange:(0,g.x)([],M.z);this._stateChanges.unsubscribe(),this._stateChanges=(0,p.T)(this._intl.changes,Ne,vt).subscribe(()=>this._changeDetectorRef.markForCheck())}static#e=this.\u0275fac=function(vt){return new(vt||Lt)(e.Y36(s.S8),e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:Lt,selectors:[["mat-datetimepicker-toggle"]],hostAttrs:[1,"mat-datetimepicker-toggle"],hostBindings:function(vt,ln){1&vt&&e.NdJ("click",function(Pi){return ln._open(Pi)})},inputs:{datetimepicker:["for","datetimepicker"],disabled:"disabled"},exportAs:["matDatetimepickerToggle"],features:[e.TTD],decls:5,vars:5,consts:[["mat-icon-button","","type","button",3,"disabled"],[3,"ngSwitch"],["fill","currentColor","focusable","false","height","100%","style","vertical-align: top","viewBox","0 0 24 24","width","100%",4,"ngSwitchCase"],["fill","currentColor","focusable","false","height","100%","style","vertical-align: top","viewBox","0 0 24 24","width","100%",4,"ngSwitchDefault"],["fill","currentColor","focusable","false","height","100%","viewBox","0 0 24 24","width","100%",2,"vertical-align","top"],["d","M12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M12.5,7V12.25L17,14.92L16.25,16.15L11,13V7H12.5Z"],["d","M15,13H16.5V15.82L18.94,17.23L18.19,18.53L15,16.69V13M19,8H5V19H9.67C9.24,18.09 9,17.07 9,16A7,7 0 0,1 16,9C17.07,9 18.09,9.24 19,9.67V8M5,21C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3H6V1H8V3H16V1H18V3H19A2,2 0 0,1 21,5V11.1C22.24,12.36 23,14.09 23,16A7,7 0 0,1 16,23C14.09,23 12.36,22.24 11.1,21H5M16,11.15A4.85,4.85 0 0,0 11.15,16C11.15,18.68 13.32,20.85 16,20.85A4.85,4.85 0 0,0 20.85,16C20.85,13.32 18.68,11.15 16,11.15Z"],["d","M0 0h24v24H0z","fill","none"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(vt,ln){1&vt&&(e.TgZ(0,"button",0)(1,"mat-icon",1),e.YNc(2,se,2,0,"svg",2),e.YNc(3,ne,2,0,"svg",2),e.YNc(4,_e,3,0,"svg",3),e.qZA()()),2&vt&&(e.Q6J("disabled",ln.disabled),e.uIk("aria-label",ln._intl.openCalendarLabel),e.xp6(1),e.Q6J("ngSwitch",ln.datetimepicker.type),e.xp6(1),e.Q6J("ngSwitchCase","time"),e.xp6(1),e.Q6J("ngSwitchCase","datetime"))},dependencies:[l.RF,l.n9,l.ED,L.RK,u.Hw],encapsulation:2,changeDetection:0})}return Lt})(),pt=(()=>{class Lt{static#e=this.\u0275fac=function(vt){return new(vt||Lt)};static#t=this.\u0275mod=e.oAB({type:Lt});static#n=this.\u0275inj=e.cJS({imports:[l.ez,L.ot,f.Is,u.Ps,a.U8,o.rt]})}return Lt})()},89515:(he,y,i)=>{"use strict";i.d(y,{Pi:()=>K,X$:()=>X,Zw:()=>R,aw:()=>me,sK:()=>V});var e=i(65879),n=i(22096),o=i(2664),a=i(9315),l=i(35211),u=i(74911),d=i(48180),s=i(67081),A=i(37398),_=i(76328),C=i(94664);class R{}let x=(()=>{class J extends R{getTranslation(re){return(0,n.of)({})}static \u0275fac=function(){let re;return function(te){return(re||(re=e.n5z(J)))(te||J)}}();static \u0275prov=e.Yz7({token:J,factory:J.\u0275fac})}return J})();class f{}let k=(()=>{class J{handle(re){return re.key}static \u0275fac=function(de){return new(de||J)};static \u0275prov=e.Yz7({token:J,factory:J.\u0275fac})}return J})();function w(J,Q){if(J===Q)return!0;if(null===J||null===Q)return!1;if(J!=J&&Q!=Q)return!0;let te,j,H,re=typeof J;if(re==typeof Q&&"object"==re){if(!Array.isArray(J)){if(Array.isArray(Q))return!1;for(j in H=Object.create(null),J){if(!w(J[j],Q[j]))return!1;H[j]=!0}for(j in Q)if(!(j in H)&&typeof Q[j]<"u")return!1;return!0}if(!Array.isArray(Q))return!1;if((te=J.length)==Q.length){for(j=0;j<te;j++)if(!w(J[j],Q[j]))return!1;return!0}}return!1}function g(J){return typeof J<"u"&&null!==J}function M(J){return J&&"object"==typeof J&&!Array.isArray(J)}function p(J,Q){let re=Object.assign({},J);return M(J)&&M(Q)&&Object.keys(Q).forEach(de=>{M(Q[de])?de in J?re[de]=p(J[de],Q[de]):Object.assign(re,{[de]:Q[de]}):Object.assign(re,{[de]:Q[de]})}),re}class E{}let b=(()=>{class J extends E{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(re,de){let te;return te="string"==typeof re?this.interpolateString(re,de):"function"==typeof re?this.interpolateFunction(re,de):re,te}getValue(re,de){let te="string"==typeof de?de.split("."):[de];de="";do{de+=te.shift(),!g(re)||!g(re[de])||"object"!=typeof re[de]&&te.length?te.length?de+=".":re=void 0:(re=re[de],de="")}while(te.length);return re}interpolateFunction(re,de){return re(de)}interpolateString(re,de){return de?re.replace(this.templateMatcher,(te,j)=>{let H=this.getValue(de,j);return g(H)?H:te}):re}static \u0275fac=function(){let re;return function(te){return(re||(re=e.n5z(J)))(te||J)}}();static \u0275prov=e.Yz7({token:J,factory:J.\u0275fac})}return J})();class I{}let L=(()=>{class J extends I{compile(re,de){return re}compileTranslations(re,de){return re}static \u0275fac=function(){let re;return function(te){return(re||(re=e.n5z(J)))(te||J)}}();static \u0275prov=e.Yz7({token:J,factory:J.\u0275fac})}return J})();class D{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new e.vpe;onLangChange=new e.vpe;onDefaultLangChange=new e.vpe}const F=new e.OlP("USE_STORE"),P=new e.OlP("USE_DEFAULT_LANG"),O=new e.OlP("DEFAULT_LANGUAGE"),U=new e.OlP("USE_EXTEND");let V=(()=>{class J{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new e.vpe;_onLangChange=new e.vpe;_onDefaultLangChange=new e.vpe;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(re){this.isolate?this._defaultLang=re:this.store.defaultLang=re}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(re){this.isolate?this._currentLang=re:this.store.currentLang=re}get langs(){return this.isolate?this._langs:this.store.langs}set langs(re){this.isolate?this._langs=re:this.store.langs=re}get translations(){return this.isolate?this._translations:this.store.translations}set translations(re){this.isolate?this._translations=re:this.store.translations=re}constructor(re,de,te,j,H,z=!0,q=!1,se=!1,ne){this.store=re,this.currentLoader=de,this.compiler=te,this.parser=j,this.missingTranslationHandler=H,this.useDefaultLang=z,this.isolate=q,this.extend=se,ne&&this.setDefaultLang(ne)}setDefaultLang(re){if(re===this.defaultLang)return;let de=this.retrieveTranslations(re);typeof de<"u"?(null==this.defaultLang&&(this.defaultLang=re),de.pipe((0,d.q)(1)).subscribe(te=>{this.changeDefaultLang(re)})):this.changeDefaultLang(re)}getDefaultLang(){return this.defaultLang}use(re){if(re===this.currentLang)return(0,n.of)(this.translations[re]);let de=this.retrieveTranslations(re);return typeof de<"u"?(this.currentLang||(this.currentLang=re),de.pipe((0,d.q)(1)).subscribe(te=>{this.changeLang(re)}),de):(this.changeLang(re),(0,n.of)(this.translations[re]))}retrieveTranslations(re){let de;return(typeof this.translations[re]>"u"||this.extend)&&(this._translationRequests[re]=this._translationRequests[re]||this.getTranslation(re),de=this._translationRequests[re]),de}getTranslation(re){this.pending=!0;const de=this.currentLoader.getTranslation(re).pipe((0,s.d)(1),(0,d.q)(1));return this.loadingTranslations=de.pipe((0,A.U)(te=>this.compiler.compileTranslations(te,re)),(0,s.d)(1),(0,d.q)(1)),this.loadingTranslations.subscribe({next:te=>{this.translations[re]=this.extend&&this.translations[re]?{...te,...this.translations[re]}:te,this.updateLangs(),this.pending=!1},error:te=>{this.pending=!1}}),de}setTranslation(re,de,te=!1){de=this.compiler.compileTranslations(de,re),this.translations[re]=(te||this.extend)&&this.translations[re]?p(this.translations[re],de):de,this.updateLangs(),this.onTranslationChange.emit({lang:re,translations:this.translations[re]})}getLangs(){return this.langs}addLangs(re){re.forEach(de=>{-1===this.langs.indexOf(de)&&this.langs.push(de)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(re,de,te){let j;if(de instanceof Array){let H={},z=!1;for(let q of de)H[q]=this.getParsedResult(re,q,te),(0,o.b)(H[q])&&(z=!0);if(z){const q=de.map(se=>(0,o.b)(H[se])?H[se]:(0,n.of)(H[se]));return(0,a.D)(q).pipe((0,A.U)(se=>{let ne={};return se.forEach((_e,ge)=>{ne[de[ge]]=_e}),ne}))}return H}if(re&&(j=this.parser.interpolate(this.parser.getValue(re,de),te)),typeof j>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(j=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],de),te)),typeof j>"u"){let H={key:de,translateService:this};typeof te<"u"&&(H.interpolateParams=te),j=this.missingTranslationHandler.handle(H)}return typeof j<"u"?j:de}get(re,de){if(!g(re)||!re.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,_.b)(te=>(te=this.getParsedResult(te,re,de),(0,o.b)(te)?te:(0,n.of)(te))));{let te=this.getParsedResult(this.translations[this.currentLang],re,de);return(0,o.b)(te)?te:(0,n.of)(te)}}getStreamOnTranslationChange(re,de){if(!g(re)||!re.length)throw new Error('Parameter "key" required');return(0,l.z)((0,u.P)(()=>this.get(re,de)),this.onTranslationChange.pipe((0,C.w)(te=>{const j=this.getParsedResult(te.translations,re,de);return"function"==typeof j.subscribe?j:(0,n.of)(j)})))}stream(re,de){if(!g(re)||!re.length)throw new Error('Parameter "key" required');return(0,l.z)((0,u.P)(()=>this.get(re,de)),this.onLangChange.pipe((0,C.w)(te=>{const j=this.getParsedResult(te.translations,re,de);return(0,o.b)(j)?j:(0,n.of)(j)})))}instant(re,de){if(!g(re)||!re.length)throw new Error('Parameter "key" required');let te=this.getParsedResult(this.translations[this.currentLang],re,de);if((0,o.b)(te)){if(re instanceof Array){let j={};return re.forEach((H,z)=>{j[re[z]]=re[z]}),j}return re}return te}set(re,de,te=this.currentLang){this.translations[te][re]=this.compiler.compile(de,te),this.updateLangs(),this.onTranslationChange.emit({lang:te,translations:this.translations[te]})}changeLang(re){this.currentLang=re,this.onLangChange.emit({lang:re,translations:this.translations[re]}),null==this.defaultLang&&this.changeDefaultLang(re)}changeDefaultLang(re){this.defaultLang=re,this.onDefaultLangChange.emit({lang:re,translations:this.translations[re]})}reloadLang(re){return this.resetLang(re),this.getTranslation(re)}resetLang(re){this._translationRequests[re]=void 0,this.translations[re]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let re=window.navigator.languages?window.navigator.languages[0]:null;return re=re||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof re>"u"?void 0:(-1!==re.indexOf("-")&&(re=re.split("-")[0]),-1!==re.indexOf("_")&&(re=re.split("_")[0]),re)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let re=window.navigator.languages?window.navigator.languages[0]:null;return re=re||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,re}static \u0275fac=function(de){return new(de||J)(e.LFG(D),e.LFG(R),e.LFG(I),e.LFG(E),e.LFG(f),e.LFG(P),e.LFG(F),e.LFG(U),e.LFG(O))};static \u0275prov=e.Yz7({token:J,factory:J.\u0275fac})}return J})(),K=(()=>{class J{translateService;element;_ref;key;lastParams;currentParams;onLangChangeSub;onDefaultLangChangeSub;onTranslationChangeSub;set translate(re){re&&(this.key=re,this.checkNodes())}set translateParams(re){w(this.currentParams,re)||(this.currentParams=re,this.checkNodes(!0))}constructor(re,de,te){this.translateService=re,this.element=de,this._ref=te,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(j=>{j.lang===this.translateService.currentLang&&this.checkNodes(!0,j.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(j=>{this.checkNodes(!0,j.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(j=>{this.checkNodes(!0)}))}ngAfterViewChecked(){this.checkNodes()}checkNodes(re=!1,de){let te=this.element.nativeElement.childNodes;te.length||(this.setContent(this.element.nativeElement,this.key),te=this.element.nativeElement.childNodes);for(let j=0;j<te.length;++j){let H=te[j];if(3===H.nodeType){let z;if(re&&(H.lastKey=null),g(H.lookupKey))z=H.lookupKey;else if(this.key)z=this.key;else{let q=this.getContent(H),se=q.trim();se.length&&(H.lookupKey=se,q!==H.currentValue?(z=se,H.originalContent=q||H.originalContent):H.originalContent?z=H.originalContent.trim():q!==H.currentValue&&(z=se,H.originalContent=q||H.originalContent))}this.updateValue(z,H,de)}}}updateValue(re,de,te){if(re){if(de.lastKey===re&&this.lastParams===this.currentParams)return;this.lastParams=this.currentParams;let j=H=>{H!==re&&(de.lastKey=re),de.originalContent||(de.originalContent=this.getContent(de)),de.currentValue=g(H)?H:de.originalContent||re,this.setContent(de,this.key?de.currentValue:de.originalContent.replace(re,de.currentValue)),this._ref.markForCheck()};if(g(te)){let H=this.translateService.getParsedResult(te,re,this.currentParams);(0,o.b)(H)?H.subscribe({next:j}):j(H)}else this.translateService.get(re,this.currentParams).subscribe(j)}}getContent(re){return g(re.textContent)?re.textContent:re.data}setContent(re,de){g(re.textContent)?re.textContent=de:re.data=de}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}static \u0275fac=function(de){return new(de||J)(e.Y36(V),e.Y36(e.SBq),e.Y36(e.sBO))};static \u0275dir=e.lG2({type:J,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}})}return J})(),X=(()=>{class J{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(re,de){this.translate=re,this._ref=de}updateValue(re,de,te){let j=H=>{this.value=void 0!==H?H:re,this.lastKey=re,this._ref.markForCheck()};if(te){let H=this.translate.getParsedResult(te,re,de);(0,o.b)(H.subscribe)?H.subscribe(j):j(H)}this.translate.get(re,de).subscribe(j)}transform(re,...de){if(!re||!re.length)return re;if(w(re,this.lastKey)&&w(de,this.lastParams))return this.value;let te;if(g(de[0])&&de.length)if("string"==typeof de[0]&&de[0].length){let j=de[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{te=JSON.parse(j)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${de[0]}`)}}else"object"==typeof de[0]&&!Array.isArray(de[0])&&(te=de[0]);return this.lastKey=re,this.lastParams=de,this.updateValue(re,te),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(j=>{this.lastKey&&j.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(re,te,j.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(j=>{this.lastKey&&(this.lastKey=null,this.updateValue(re,te,j.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(re,te))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(de){return new(de||J)(e.Y36(V,16),e.Y36(e.sBO,16))};static \u0275pipe=e.Yjl({name:"translate",type:J,pure:!1});static \u0275prov=e.Yz7({token:J,factory:J.\u0275fac})}return J})(),me=(()=>{class J{static forRoot(re={}){return{ngModule:J,providers:[re.loader||{provide:R,useClass:x},re.compiler||{provide:I,useClass:L},re.parser||{provide:E,useClass:b},re.missingTranslationHandler||{provide:f,useClass:k},D,{provide:F,useValue:re.isolate},{provide:P,useValue:re.useDefaultLang},{provide:U,useValue:re.extend},{provide:O,useValue:re.defaultLanguage},V]}}static forChild(re={}){return{ngModule:J,providers:[re.loader||{provide:R,useClass:x},re.compiler||{provide:I,useClass:L},re.parser||{provide:E,useClass:b},re.missingTranslationHandler||{provide:f,useClass:k},{provide:F,useValue:re.isolate},{provide:P,useValue:re.useDefaultLang},{provide:U,useValue:re.extend},{provide:O,useValue:re.defaultLanguage},V]}}static \u0275fac=function(de){return new(de||J)};static \u0275mod=e.oAB({type:J});static \u0275inj=e.cJS({})}return J})()},15735:(he,y,i)=>{"use strict";i.d(y,{Fq:()=>Gs,Kb:()=>pt,S4:()=>wn,Yw:()=>rt,_z:()=>or,hJ:()=>Lt,oP:()=>wr,r0:()=>xt,rf:()=>ai,zx:()=>xt});var e=i(65879),n=i(78645),o=i(47394),a=i(92438),l=i(63019),u=i(3201),d=i(58951),s=i(12624),A=i(60886),_=i(96814),C=i(32181),R=i(99397),f=(i(48180),i(9237)),k=i(73942);i(86825);const g=["kendoButton",""];function M(fi,Ho){if(1&fi&&e._UZ(0,"kendo-icon-wrapper",4),2&fi){const _t=e.oxw();e.Q6J("name",_t.icon)("svgIcon",_t.svgIcon)}}function p(fi,Ho){if(1&fi&&(e.TgZ(0,"span",5),e._UZ(1,"img",6),e.qZA()),2&fi){const _t=e.oxw();e.xp6(1),e.Q6J("src",_t.imageUrl,e.LSH)}}function E(fi,Ho){if(1&fi&&e._UZ(0,"span",7),2&fi){const _t=e.oxw();e.Q6J("ngClass",_t.iconClass)}}const b=["*"],I=[[["","kendoButton",""],["kendo-button"]]],L=["[kendoButton], kendo-button"];function D(fi,Ho){}const F=function(fi,Ho){return{templateRef:fi,$implicit:Ho}};function P(fi,Ho){if(1&fi&&(e.TgZ(0,"span",4),e.YNc(1,D,0,0,"ng-template",5),e.qZA()),2&fi){const _t=e.oxw().$implicit,Zn=e.oxw();e.ekj("k-disabled",_t.disabled),e.xp6(1),e.Q6J("templateContext",e.WLB(3,F,null==Zn.itemTemplate?null:Zn.itemTemplate.templateRef,_t))}}function O(fi,Ho){if(1&fi&&e._UZ(0,"kendo-icon-wrapper",9),2&fi){const _t=e.oxw(2).$implicit;e.Q6J("name",_t.icon)("svgIcon",_t.svgIcon)("customFontClass",_t.iconClass)}}function U(fi,Ho){if(1&fi&&e._UZ(0,"img",10),2&fi){const _t=e.oxw(2).$implicit;e.Q6J("src",_t.imageUrl,e.LSH)}}function V(fi,Ho){if(1&fi&&(e.TgZ(0,"span",11),e._uU(1),e.qZA()),2&fi){const _t=e.oxw(2).$implicit,Zn=e.oxw();e.xp6(1),e.hij(" ",Zn.getText(_t)," ")}}function K(fi,Ho){if(1&fi&&(e.TgZ(0,"span",4),e.YNc(1,O,1,3,"kendo-icon-wrapper",6),e.YNc(2,U,1,1,"img",7),e.YNc(3,V,2,1,"span",8),e.qZA()),2&fi){const _t=e.oxw().$implicit,Zn=e.oxw();e.ekj("k-disabled",_t.disabled),e.xp6(1),e.Q6J("ngIf",_t.icon||_t.iconClass||_t.svgIcon),e.xp6(1),e.Q6J("ngIf",_t.imageUrl),e.xp6(1),e.Q6J("ngIf",Zn.getText(_t))}}function X(fi,Ho){if(1&fi){const _t=e.EpF();e.TgZ(0,"li",2),e.NdJ("click",function(qo){const kr=e.CHM(_t).index,xs=e.oxw();return qo.stopImmediatePropagation(),e.KtG(xs.onClick(kr))})("blur",function(){e.CHM(_t);const qo=e.oxw();return e.KtG(qo.onBlur())}),e.YNc(1,P,2,6,"ng-template",3),e.YNc(2,K,4,5,"ng-template",3),e.qZA()}if(2&fi){const _t=Ho.$implicit,Zn=Ho.index,qo=e.oxw();e.Q6J("index",Zn),e.uIk("aria-disabled",!!_t.disabled),e.xp6(1),e.Q6J("ngIf",null==qo.itemTemplate?null:qo.itemTemplate.templateRef),e.xp6(1),e.Q6J("ngIf",!(null!=qo.itemTemplate&&qo.itemTemplate.templateRef))}}const me=["button"],J=["arrowButton"],Q=["popupTemplate"],re=["container"];function de(fi,Ho){if(1&fi&&(e.TgZ(0,"span",9),e._uU(1),e.qZA()),2&fi){const _t=e.oxw();e.xp6(1),e.hij(" ",_t.text," ")}}function te(fi,Ho){if(1&fi){const _t=e.EpF();e.TgZ(0,"kendo-button-list",10),e.NdJ("onItemClick",function(qo){e.CHM(_t);const Cr=e.oxw();return e.KtG(Cr.onItemClick(qo))})("keydown",function(qo){e.CHM(_t);const Cr=e.oxw();return e.KtG(Cr.keyDownHandler(qo))})("keyup",function(qo){e.CHM(_t);const Cr=e.oxw();return e.KtG(Cr.keyUpHandler(qo))}),e.qZA()}if(2&fi){const _t=e.oxw();e.Q6J("id",_t.listId)("data",_t.data)("textField",_t.textField)("itemTemplate",_t.itemTemplate)("size",_t.size),e.uIk("dir",_t.dir)}}const j=["buttonList"];function H(fi,Ho){if(1&fi){const _t=e.EpF();e.TgZ(0,"kendo-button-list",4,5),e.NdJ("onItemClick",function(qo){e.CHM(_t);const Cr=e.oxw();return e.KtG(Cr.onItemClick(qo))})("keydown",function(qo){e.CHM(_t);const Cr=e.oxw();return e.KtG(Cr.keyDownHandler(qo))})("keyup",function(qo){e.CHM(_t);const Cr=e.oxw();return e.KtG(Cr.keyUpHandler(qo))}),e.qZA()}if(2&fi){const _t=e.oxw();e.Q6J("id",_t.listId)("data",_t.data)("textField",_t.textField)("itemTemplate",_t.itemTemplate)("size",_t.size),e.uIk("dir",_t.dir)("aria-labelledby",_t.buttonId)}}function z(fi,Ho){if(1&fi&&e._UZ(0,"kendo-icon-wrapper",8),2&fi){const _t=e.oxw();e.Q6J("name",_t.icon)("svgIcon",_t.svgIcon)}}function q(fi,Ho){if(1&fi&&e._UZ(0,"kendo-icon-wrapper",9),2&fi){const _t=e.oxw();e.Q6J("customFontClass",_t.customIconClass)}}function se(fi,Ho){if(1&fi&&(e.TgZ(0,"span",10),e._UZ(1,"span",11),e.qZA()),2&fi){const _t=e.oxw();e.xp6(1),e.Q6J("ngClass",_t.chipAvatarClass)}}function ne(fi,Ho){if(1&fi&&(e.TgZ(0,"span",12),e._uU(1),e.qZA()),2&fi){const _t=e.oxw();e.xp6(1),e.hij(" ",_t.label," ")}}function _e(fi,Ho){1&fi&&e.Hsn(0,0,["*ngIf","!label"])}function ge(fi,Ho){if(1&fi){const _t=e.EpF();e.TgZ(0,"span",13),e.NdJ("click",function(qo){e.CHM(_t);const Cr=e.oxw();return e.KtG(Cr.onRemoveClick(qo))}),e._UZ(1,"kendo-icon-wrapper",14),e.qZA()}if(2&fi){const _t=e.oxw();e.xp6(1),e.Q6J("svgIcon",_t.defaultRemoveIcon||_t.removeSvgIcon)("customFontClass",_t.removeIcon)}}let sn=(()=>{class fi{constructor(){this.buttonClicked=new n.x,this.buttonClicked$=this.buttonClicked.asObservable()}click(_t){this.buttonClicked.next(_t)}}return fi.\u0275fac=function(_t){return new(_t||fi)},fi.\u0275prov=e.Yz7({token:fi,factory:fi.\u0275fac}),fi})();const fn={name:"@progress/kendo-angular-buttons",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1689688545,version:"13.2.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},nn=(Promise.resolve(null),fi=>null!=fi);function mi(fi){return 9===fi.nodeType}function Eo(fi,Ho){if(fi.closest)return fi.closest(Ho);const _t=Element.prototype.matches?(qo,Cr)=>qo.matches(Cr):(qo,Cr)=>qo.msMatchesSelector(Cr);let Zn=fi;for(;Zn&&!mi(Zn);){if(_t(Zn,Ho))return Zn;Zn=Zn.parentNode}}const xo={small:"sm",medium:"md",large:"lg"},Bn={small:"sm",medium:"md",large:"lg",full:"full"},Xt=(fi,Ho,_t,Zn)=>{switch(Ho){case"size":return{toRemove:`k-${fi}-${xo[_t]}`,toAdd:"none"!==Zn?`k-${fi}-${xo[Zn]}`:""};case"rounded":return{toRemove:`k-rounded-${Bn[_t]}`,toAdd:"none"!==Zn?`k-rounded-${Bn[Zn]}`:""};case"fillMode":return{toRemove:`k-${fi}-${_t}`,toAdd:"none"!==Zn?`k-${fi}-${Zn}`:""}}},Ji=(fi,Ho,_t,Zn,qo)=>({toRemove:`k-${fi}-${Ho}-${Zn}`,toAdd:"none"!==qo?`k-${fi}-${_t}-${qo}`:""});let xt=(()=>{class fi{constructor(_t,Zn,qo,Cr,kr){this.renderer=Zn,this.service=qo,this.ngZone=kr,this.toggleable=!1,this.role="button",this.selectedChange=new e.vpe,this.click=new e.vpe,this.isDisabled=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this._themeColor="base",this._focused=!1,this.subs=new o.w0,(0,s.s)(fn),this.direction=Cr.rtl?"rtl":"ltr",this.subs.add(Cr.changes.subscribe(({rtl:xs})=>this.direction=xs?"rtl":"ltr")),this.element=_t.nativeElement}get togglable(){return this.toggleable}set togglable(_t){this.toggleable=_t}get selected(){return this._selected||!1}set selected(_t){this._selected=_t}set tabIndex(_t){this.element.tabIndex=_t}get tabIndex(){return this.element.tabIndex}set iconClass(_t){if((0,e.X6Q)()&&_t&&(this.icon||this.svgIcon))throw new Error("Setting both icon/svgIcon and iconClass options at the same time is not supported.");this._iconClass=_t}get iconClass(){return this._iconClass}set icon(_t){if((0,e.X6Q)()&&_t&&this.iconClass)throw new Error("Setting both icon/svgIcon and iconClass options at the same time is not supported.");this._icon=_t}get icon(){return this._icon}set disabled(_t){_t&&(0,u.X_)()&&(0,u.vU)(navigator.userAgent)&&this.blur(),this.isDisabled=_t,this.renderer.setProperty(this.element,"disabled",_t)}get disabled(){return this.isDisabled}set size(_t){const Zn=_t||"medium";this.handleClasses(Zn,"size"),this._size=Zn}get size(){return this._size}set rounded(_t){const Zn=_t||"medium";this.handleClasses(Zn,"rounded"),this._rounded=Zn}get rounded(){return this._rounded}set fillMode(_t){const Zn=_t||"solid";this.handleClasses(Zn,"fillMode"),this._fillMode=Zn}get fillMode(){return this._fillMode}set themeColor(_t){const Zn=_t||"base";this.handleThemeColor(Zn),this._themeColor=Zn}get themeColor(){return this._themeColor}set svgIcon(_t){if((0,e.X6Q)()&&_t&&this.iconClass)throw new Error("Setting both icon/svgIcon and iconClass options at the same time is not supported.");this._svgIcon=_t}get svgIcon(){return this._svgIcon}set isFocused(_t){this.toggleClass("k-focus",_t),this._focused=_t}get isFocused(){return this._focused}get classButton(){return!0}get isToggleable(){return this.toggleable}get iconButtonClass(){return(this.icon||this.iconClass||this.imageUrl||this.svgIcon)&&!this.hasText}get roleSetter(){return this.role}get classDisabled(){return this.isDisabled}get classActive(){return this.selected}get getDirection(){return this.direction}onFocus(){this.isFocused=!0}onBlur(){this.isFocused=!1}set primary(_t){this.themeColor=_t?"primary":"base"}set look(_t){this.fillMode="default"===_t?"solid":_t}get nativeElement(){return this.element}ngOnInit(){const _t=this.element.tagName,Zn="SPAN"===_t||"KENDO-BUTTON"===_t;!this.element.hasAttribute("role")&&this.togglable&&this.toggleAriaPressed(this.toggleable),this.role&&this.setAttribute("role",this.role),Zn&&!this.isDisabled&&(this.tabIndex=0),this.ngZone.runOutsideAngular(()=>{this.subs.add(this.renderer.listen(this.element,"click",this._onButtonClick.bind(this))),this.subs.add(this.renderer.listen(this.element,"keydown",qo=>{Zn&&(qo.keyCode===u.R8.Space||qo.keyCode===u.R8.Enter)&&(this.ngZone.run(()=>{this.click.emit(qo)}),this._onButtonClick())})),this.subs.add(this.renderer.listen(this.element,"mousedown",qo=>{const kr="BUTTON"===this.element.tagName,xs=(0,u.X_)()&&(0,u.G6)(navigator.userAgent);!this.isDisabled&&kr&&xs&&(qo.preventDefault(),this.element.focus())}))})}ngOnChanges(_t){((0,u.ln)("togglable",_t)||(0,u.ln)("toggleable",_t))&&this.toggleAriaPressed(this.toggleable)}ngAfterViewInit(){["size","rounded","fillMode"].forEach(Zn=>{this.handleClasses(this[Zn],Zn)})}ngOnDestroy(){this.subs.unsubscribe()}get hasText(){return(0,u.X_)()&&this.element.textContent.trim().length>0}focus(){(0,u.X_)()&&(this.element.focus(),this.isFocused=!0)}blur(){(0,u.X_)()&&(this.element.blur(),this.isFocused=!1)}setAttribute(_t,Zn){this.renderer.setAttribute(this.element,_t,Zn)}removeAttribute(_t){this.renderer.removeAttribute(this.element,_t)}setSelected(_t){const Zn=this.selected!==_t;this.selected=_t,this.setAttribute("aria-pressed",this.selected.toString()),this.toggleClass("k-selected",this.selected),Zn&&(0,u.g$)(this.selectedChange)&&this.ngZone.run(()=>{this.selectedChange.emit(_t)})}toggleAriaPressed(_t){(0,u.X_)()&&(_t?this.setAttribute("aria-pressed",this.selected.toString()):this.removeAttribute("aria-pressed"))}toggleClass(_t,Zn){Zn?this.renderer.addClass(this.element,_t):this.renderer.removeClass(this.element,_t)}_onButtonClick(){!this.disabled&&this.service&&this.ngZone.run(()=>{this.service.click(this)}),this.togglable&&!this.service&&this.setSelected(!this.selected)}handleClasses(_t,Zn){const qo=this.element,Cr=Xt("button",Zn,this[Zn],_t);"fillMode"===Zn&&this.handleThemeColor(this.themeColor,this[Zn],_t),Cr.toRemove&&this.renderer.removeClass(qo,Cr.toRemove),Cr.toAdd&&this.renderer.addClass(qo,Cr.toAdd)}handleThemeColor(_t,Zn,qo){const Cr=this.element,xs=qo||this.fillMode,Us=Ji("button",Zn||this.fillMode,xs,this.themeColor,_t);this.renderer.removeClass(Cr,Us.toRemove),"none"!==xs&&"none"!==qo&&Us.toAdd&&this.renderer.addClass(Cr,Us.toAdd)}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(sn,8),e.Y36(d.oQ),e.Y36(e.R0b))},fi.\u0275cmp=e.Xpm({type:fi,selectors:[["button","kendoButton",""],["span","kendoButton",""],["kendo-button"]],hostVars:13,hostBindings:function(_t,Zn){1&_t&&e.NdJ("focus",function(){return Zn.onFocus()})("blur",function(){return Zn.onBlur()}),2&_t&&(e.uIk("role",Zn.roleSetter)("aria-disabled",Zn.classDisabled)("dir",Zn.getDirection),e.ekj("k-button",Zn.classButton)("k-toggle-button",Zn.isToggleable)("k-icon-button",Zn.iconButtonClass)("k-disabled",Zn.classDisabled)("k-selected",Zn.classActive))},inputs:{toggleable:"toggleable",togglable:"togglable",selected:"selected",tabIndex:"tabIndex",imageUrl:"imageUrl",iconClass:"iconClass",icon:"icon",disabled:"disabled",size:"size",rounded:"rounded",fillMode:"fillMode",themeColor:"themeColor",svgIcon:"svgIcon",role:"role",primary:"primary",look:"look"},outputs:{selectedChange:"selectedChange",click:"click"},exportAs:["kendoButton"],features:[e._Bn([d.oQ,{provide:d.mM,useValue:"kendo.button"}]),e.TTD],attrs:g,ngContentSelectors:b,decls:5,vars:3,consts:[["innerCssClass","k-button-icon",3,"name","svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon",3,"name","svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(_t,Zn){1&_t&&(e.F$t(),e.YNc(0,M,1,2,"kendo-icon-wrapper",0),e.YNc(1,p,2,1,"span",1),e.YNc(2,E,1,1,"span",2),e.TgZ(3,"span",3),e.Hsn(4),e.qZA()),2&_t&&(e.Q6J("ngIf",Zn.icon||Zn.svgIcon),e.xp6(1),e.Q6J("ngIf",Zn.imageUrl),e.xp6(1),e.Q6J("ngIf",Zn.iconClass))},dependencies:[A.ZS,_.O5,_.mk],encapsulation:2}),fi})();class wt{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}const Mt="tabindex";let pt=(()=>{class fi{constructor(_t,Zn,qo){this.service=_t,this.element=qo,this.selection="multiple",this.navigable=!0,this.navigate=new e.vpe,this._tabIndex=0,this.currentTabIndex=0,this.subs=new o.w0,this.role="group",this.focusHandler=()=>{this.currentTabIndex=-1;const Cr=this.buttons.toArray().findIndex(xs=>-1!==xs.element.tabIndex),kr=-1===Cr?0:Cr;this.focus(this.buttons.filter((xs,Us)=>Us===kr))},(0,s.s)(fn),this.subs.add(Zn.changes.subscribe(({rtl:Cr})=>this.direction=Cr?"rtl":"ltr"))}set tabIndex(_t){this._tabIndex=_t,this.currentTabIndex=_t}get tabIndex(){return this._tabIndex}get wrapperClass(){return!0}get disabledClass(){return this.disabled}get stretchedClass(){return!!this.width}get dir(){return this.direction}get ariaDisabled(){return this.disabled}get wrapperWidth(){return this.width}get wrapperTabIndex(){return this.disabled?void 0:this.navigable?this.currentTabIndex:void 0}ngOnInit(){this.subs.add(this.service.buttonClicked$.subscribe(_t=>{let Zn;this.isSelectionSingle()?(Zn=!0,this.deactivate(this.buttons.filter(qo=>qo!==_t))):(this.navigable&&this.defocus(this.buttons.toArray()),Zn=!_t.selected),_t.togglable&&_t.setSelected(Zn),this.navigable&&_t.setAttribute(Mt,"0")})),this.handleSubs("focus",()=>this.navigable,this.focusHandler),this.handleSubs("keydown",()=>this.navigable&&!this.disabled,_t=>this.navigateFocus(_t)),this.handleSubs("focusout",_t=>this.navigable&&_t.relatedTarget&&_t.relatedTarget.parentNode!==this.element.nativeElement,()=>{this.defocus(this.buttons.toArray()),this.currentTabIndex=this.tabIndex}),this.subs.add((0,a.R)(this.element.nativeElement,"focusout").pipe((0,C.h)(_t=>this.navigable&&_t.relatedTarget&&_t.relatedTarget.parentNode!==this.element.nativeElement)).subscribe(()=>{this.defocus(this.buttons.toArray()),this.currentTabIndex=this.tabIndex}))}ngOnChanges(_t){(0,u.ln)("disabled",_t)&&this.buttons.forEach(Zn=>{nn(this.disabled)&&(Zn.disabled=this.disabled)}),(0,u.ln)("navigable",_t)&&(_t.navigable.currentValue?(this.setButtonsTabIndex(),this.currentTabIndex=0):(this.currentTabIndex=-1,this.buttons.forEach(Zn=>Zn.setAttribute(Mt,"0"))))}ngAfterContentInit(){this.navigable&&this.setButtonsTabIndex()}ngAfterViewChecked(){this.buttons.length&&(this.buttons.first.renderer.addClass(this.buttons.first.element,"k-group-start"),this.buttons.last.renderer.addClass(this.buttons.last.element,"k-group-end"))}ngOnDestroy(){this.subs.unsubscribe()}ngAfterContentChecked(){this.verifySettings()}navigateFocus(_t){const Zn=this.buttons.toArray().findIndex(xs=>-1!==xs.element.tabIndex),Cr=this.buttons.length-1,kr=new wt;_t.keyCode===u.R8.ArrowRight&&Zn<Cr&&(this.navigate.emit(kr),kr.isDefaultPrevented()||(this.defocus(this.buttons.toArray()),this.focus(this.buttons.filter((xs,Us)=>Us===Zn+1)))),_t.keyCode===u.R8.ArrowLeft&&Zn>0&&(this.navigate.emit(kr),kr.isDefaultPrevented()||(this.defocus(this.buttons.toArray()),this.focus(this.buttons.filter((xs,Us)=>Us===Zn-1))))}deactivate(_t){_t.forEach(Zn=>{Zn.setSelected(!1),this.navigable&&Zn.setAttribute(Mt,"-1")})}activate(_t){_t.forEach(Zn=>{Zn.setSelected(!0),this.navigable&&Zn.setAttribute(Mt,"0"),Zn.focus()})}defocus(_t){_t.forEach(Zn=>{Zn.setAttribute(Mt,"-1")})}focus(_t){_t.forEach(Zn=>{Zn.setAttribute(Mt,"0"),Zn.focus()})}verifySettings(){if((0,e.X6Q)()&&this.isSelectionSingle()&&this.buttons.filter(_t=>_t.selected).length>1)throw new Error("Having multiple selected buttons with single selection mode is not supported")}isSelectionSingle(){return"single"===this.selection}setButtonsTabIndex(){this.buttons.forEach(_t=>{_t.setAttribute(Mt,_t.selected?"0":"-1")})}handleSubs(_t,Zn,qo){this.subs.add((0,a.R)(this.element.nativeElement,_t).pipe((0,C.h)(Zn)).subscribe(qo))}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(sn),e.Y36(d.oQ),e.Y36(e.SBq))},fi.\u0275cmp=e.Xpm({type:fi,selectors:[["kendo-buttongroup"]],contentQueries:function(_t,Zn,qo){if(1&_t&&e.Suo(qo,xt,4),2&_t){let Cr;e.iGM(Cr=e.CRH())&&(Zn.buttons=Cr)}},hostVars:12,hostBindings:function(_t,Zn){2&_t&&(e.uIk("role",Zn.role)("dir",Zn.dir)("aria-disabled",Zn.ariaDisabled)("tabindex",Zn.wrapperTabIndex),e.Udp("width",Zn.wrapperWidth),e.ekj("k-button-group",Zn.wrapperClass)("k-disabled",Zn.disabledClass)("k-button-group-stretched",Zn.stretchedClass))},inputs:{disabled:"disabled",selection:"selection",width:"width",tabIndex:"tabIndex",navigable:"navigable"},outputs:{navigate:"navigate"},exportAs:["kendoButtonGroup"],features:[e._Bn([sn,d.oQ,{provide:d.mM,useValue:"kendo.buttongroup"}]),e.TTD],ngContentSelectors:L,decls:1,vars:0,template:function(_t,Zn){1&_t&&(e.F$t(I),e.Hsn(0))},encapsulation:2}),fi})(),Lt=(()=>{class fi{}return fi.\u0275fac=function(_t){return new(_t||fi)},fi.\u0275mod=e.oAB({type:fi}),fi.\u0275inj=e.cJS({imports:[[A.pc]]}),fi})(),tt=(()=>{class fi{}return fi.\u0275fac=function(_t){return new(_t||fi)},fi.\u0275mod=e.oAB({type:fi}),fi.\u0275inj=e.cJS({imports:[[_.ez,Lt]]}),fi})(),Ne=(()=>{class fi{constructor(_t){this.templateRef=_t}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(e.Rgc))},fi.\u0275dir=e.lG2({type:fi,selectors:[["","kendoDropDownButtonItemTemplate",""],["","kendoSplitButtonItemTemplate",""]]}),fi})(),vt=(()=>{class fi{constructor(){this.onFocus=new e.vpe}isFocused(_t){return _t===this.focused}focus(_t){this.isFocused(_t)||(this.focused=_t,this.onFocus.emit(_t))}resetFocus(){this.focused=-1}get focused(){return this.focusedIndex}set focused(_t){this.focusedIndex=_t,this.onFocus.emit(_t)}}return fi.\u0275fac=function(_t){return new(_t||fi)},fi.\u0275prov=e.Yz7({token:fi,factory:fi.\u0275fac}),fi})(),ln=(()=>{class fi{constructor(_t,Zn,qo){this.focusService=_t,this.renderer=qo,this.subs=new o.w0,this.element=Zn.nativeElement,this.subscribeEvents()}ngOnInit(){this.index===this.focusService.focused?this.renderer.addClass(this.element,"k-focus"):this.renderer.removeClass(this.element,"k-focus")}ngOnDestroy(){this.subs.unsubscribe()}subscribeEvents(){(0,u.X_)()&&this.subs.add(this.focusService.onFocus.subscribe(_t=>{this.index===_t?(this.renderer.addClass(this.element,"k-focus"),this.renderer.setAttribute(this.element,"tabidnex","0"),this.element.focus()):(this.renderer.setAttribute(this.element,"tabidnex","-1"),this.renderer.removeClass(this.element,"k-focus"))}))}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(vt),e.Y36(e.SBq),e.Y36(e.Qsj))},fi.\u0275dir=e.lG2({type:fi,selectors:[["","kendoButtonFocusable",""]],inputs:{index:"index"}}),fi})(),jn=(()=>{class fi{constructor(_t){this.viewContainerRef=_t}set templateContext(_t){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0),_t.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(_t.templateRef,_t))}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(e.s_b))},fi.\u0275dir=e.lG2({type:fi,selectors:[["","templateContext",""]],inputs:{templateContext:"templateContext"}}),fi})(),Pi=(()=>{class fi{constructor(){this.onItemClick=new e.vpe,this.onItemBlur=new e.vpe,this.sizeClass="",(0,s.s)(fn)}set size(_t){this.sizeClass=_t?`k-menu-group-${xo[_t]}`:""}getText(_t){if(_t)return this.textField?_t[this.textField]:_t.text||_t}getIconClasses(_t){const qo={};return qo[(_t.icon?"k-icon k-i-"+_t.icon:void 0)||_t.iconClass]=!0,qo}onClick(_t){this.onItemClick.emit(_t)}onBlur(){this.onItemBlur.emit()}}return fi.\u0275fac=function(_t){return new(_t||fi)},fi.\u0275cmp=e.Xpm({type:fi,selectors:[["kendo-button-list"]],inputs:{data:"data",textField:"textField",itemTemplate:"itemTemplate",size:"size"},outputs:{onItemClick:"onItemClick",onItemBlur:"onItemBlur"},decls:2,vars:2,consts:[["unselectable","on","role","menu",1,"k-group","k-menu-group","k-reset",3,"ngClass"],["role","menuitem","unselectable","on","kendoButtonFocusable","","tabindex","-1","class","k-item k-menu-item",3,"index","click","blur",4,"ngFor","ngForOf"],["role","menuitem","unselectable","on","kendoButtonFocusable","","tabindex","-1",1,"k-item","k-menu-item",3,"index","click","blur"],[3,"ngIf"],[1,"k-link","k-menu-link"],[3,"templateContext"],[3,"name","svgIcon","customFontClass",4,"ngIf"],["class","k-image","alt","",3,"src",4,"ngIf"],["class","k-menu-link-text",4,"ngIf"],[3,"name","svgIcon","customFontClass"],["alt","",1,"k-image",3,"src"],[1,"k-menu-link-text"]],template:function(_t,Zn){1&_t&&(e.TgZ(0,"ul",0),e.YNc(1,X,3,4,"li",1),e.qZA()),2&_t&&(e.Q6J("ngClass",Zn.sizeClass),e.xp6(1),e.Q6J("ngForOf",Zn.data))},dependencies:[A.ZS,_.mk,_.sg,ln,_.O5,jn],encapsulation:2}),fi})(),si=(()=>{class fi{}return fi.\u0275fac=function(_t){return new(_t||fi)},fi.\u0275mod=e.oAB({type:fi}),fi.\u0275inj=e.cJS({imports:[[_.ez,A.pc]]}),fi})();var ot=function(fi){return fi[fi.keydown=0]="keydown",fi[fi.keypress=1]="keypress",fi[fi.keyup=2]="keyup",fi}(ot||{}),pn=function(fi){return fi[fi.Undefined=0]="Undefined",fi[fi.Open=1]="Open",fi[fi.Close=2]="Close",fi[fi.Enter=3]="Enter",fi[fi.EnterPress=4]="EnterPress",fi[fi.EnterUp=5]="EnterUp",fi[fi.Tab=6]="Tab",fi[fi.Esc=7]="Esc",fi[fi.Navigate=8]="Navigate",fi}(pn||{});const _i=new e.OlP("navigation.config");let wi=(()=>{class fi{constructor(_t){this.navigate=new e.vpe,this.open=new e.vpe,this.close=new e.vpe,this.enter=new e.vpe,this.enterpress=new e.vpe,this.enterup=new e.vpe,this.tab=new e.vpe,this.esc=new e.vpe,this.useLeftRightArrows=_t.useLeftRightArrows}process(_t){const Zn=_t.keyCode;let Cr,kr=pn.Undefined;return _t.keyEvent===ot.keyup?this.isEnterOrSpace(Zn)&&(kr=pn.EnterUp):_t.altKey&&Zn===u.R8.ArrowDown?kr=pn.Open:_t.altKey&&Zn===u.R8.ArrowUp?kr=pn.Close:this.isEnterOrSpace(Zn)?kr=pn.Enter:Zn===u.R8.Escape?kr=pn.Esc:Zn===u.R8.Tab?kr=pn.Tab:Zn===u.R8.ArrowUp||this.useLeftRightArrows&&Zn===u.R8.ArrowLeft?(Cr=this.next({current:_t.current,start:_t.flipNavigation?_t.min:_t.max,end:_t.flipNavigation?_t.max:_t.min,step:_t.flipNavigation?1:-1}),kr=pn.Navigate):Zn===u.R8.ArrowDown||this.useLeftRightArrows&&Zn===u.R8.ArrowRight?(Cr=this.next({current:_t.current,start:_t.flipNavigation?_t.max:_t.min,end:_t.flipNavigation?_t.min:_t.max,step:_t.flipNavigation?-1:1}),kr=pn.Navigate):Zn===u.R8.Home?(Cr=_t.min,kr=pn.Navigate):Zn===u.R8.End&&(Cr=_t.max,kr=pn.Navigate),kr!==pn.Undefined&&this[pn[kr].toLowerCase()].emit({index:Cr,target:_t.target}),kr}isEnterOrSpace(_t){return _t===u.R8.Enter||_t===u.R8.Space}next(_t){return nn(_t.current)?_t.current!==_t.end?_t.current+_t.step:_t.end:_t.start}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.LFG(_i))},fi.\u0275prov=e.Yz7({token:fi,factory:fi.\u0275fac}),fi})(),hi=(()=>{class fi{}return fi.\u0275fac=function(_t){return new(_t||fi)},fi.\u0275prov=e.Yz7({token:fi,factory:fi.\u0275fac}),fi})(),zn=(()=>{class fi{constructor(_t,Zn,qo,Cr,kr,xs,Us,Ts,Ss){this.focusService=_t,this.navigationService=Zn,this.wrapperRef=qo,this._zone=Cr,this.popupService=kr,this.elRef=xs,this.cdr=Ts,this.containerService=Ss,this._open=!1,this._disabled=!1,this._active=!1,this._popupSettings={animate:!0,popupClass:""},this.listId=(0,u.M8)(),this._isFocused=!1,this.subs=new o.w0,this.popupSubs=new o.w0,this.tabIndex=0,this.open=new e.vpe,this.close=new e.vpe,this.isClosePrevented=!1,(0,s.s)(fn),this.focusService=_t,this.navigationService=Zn,this.wrapper=qo.nativeElement,this.subs.add(Us.changes.subscribe(({rtl:Ua})=>this.direction=Ua?"rtl":"ltr")),this.subscribeEvents()}set disabled(_t){_t&&this.openState&&(this.openState=!1),this._disabled=_t}get disabled(){return this._disabled}get componentTabIndex(){return this.disabled?-1:this.tabIndex}get appendTo(){const{appendTo:_t}=this.popupSettings;if(_t&&"root"!==_t)return"component"===_t?this.containerService.container:_t}set popupSettings(_t){this._popupSettings=Object.assign({animate:!0,popupClass:""},_t)}get popupSettings(){return this._popupSettings}get anchorAlign(){const _t={horizontal:this.popupSettings.align||"left",vertical:"bottom"};return"rtl"===this.direction&&!nn(this.popupSettings.align)&&(_t.horizontal="right"),_t}get popupAlign(){const _t={horizontal:this.popupSettings.align||"left",vertical:"top"};return"rtl"===this.direction&&!nn(this.popupSettings.align)&&(_t.horizontal="right"),_t}ngOnChanges(_t){if((0,u.ln)("popupSettings",_t)&&nn(this.popupRef)){const Zn=this.popupRef.popup.instance,qo=_t.popupSettings.currentValue;Zn.popupClass=qo.popupClass,Zn.animate=qo.animate,Zn.popupAlign=this.popupAlign}}get popupClasses(){const _t=["k-menu-popup"];return this._popupSettings.popupClass&&_t.push(this._popupSettings.popupClass),_t.join(" ")}get openState(){return this._open}set openState(_t){this.disabled||(this._open=_t)}get isOpen(){return this._open}togglePopupVisibility(){this._disabled||(this._toggle(!this.openState,!0),this.isClosePrevented||this.focusService.focus(this.openState?0:-1))}onItemClick(_t){this.togglePopupVisibility(),this.isClosePrevented||(0,u.X_)()&&!this.isClosePrevented&&this.focusButton(),this.emitItemClickHandler(_t)}ngOnDestroy(){this.openState=!1,this.subs.unsubscribe(),this.destroyPopup()}subscribeEvents(){(0,u.X_)()&&(this.subscribeListItemFocusEvent(),this.subscribeComponentBlurredEvent(),this.subscribeNavigationEvents())}subscribeListItemFocusEvent(){this.subs.add(this.focusService.onFocus.subscribe(()=>{this._isFocused=!0}))}subscribeComponentBlurredEvent(){this._zone.runOutsideAngular(()=>{this.subs.add(this.navigationService.tab.pipe((0,C.h)(()=>this._isFocused),(0,R.b)(()=>this.focusButton())).subscribe(this.handleTab.bind(this))),this.subs.add((0,a.R)(document,"click").pipe((0,C.h)(_t=>!this.wrapperContains(_t.target)),(0,C.h)(()=>this._isFocused)).subscribe(()=>this._zone.run(()=>this.blurWrapper())))})}subscribeNavigationEvents(){this.subs.add(this.navigationService.navigate.subscribe(this.onArrowKeyNavigate.bind(this))),this.subs.add(this.navigationService.enterup.subscribe(this.onNavigationEnterUp.bind(this))),this.subs.add(this.navigationService.open.subscribe(this.onNavigationOpen.bind(this))),this.subs.add((0,l.T)(this.navigationService.close,this.navigationService.esc).subscribe(this.onNavigationClose.bind(this)))}toggle(_t){this.disabled||this._toggle(void 0===_t?!this.openState:_t,!1)}keyDownHandler(_t,Zn){this.keyHandler(_t,null,Zn)}keyUpHandler(_t){this.keyHandler(_t,ot.keyup)}keyHandler(_t,Zn,qo){if(this._disabled)return;const Cr=_t;qo||Cr.stopImmediatePropagation();const xs=this.navigationService.process({altKey:Cr.altKey,current:this.focusService.focused||0,keyCode:Cr.keyCode,keyEvent:Zn,max:this._data?this._data.length-1:0,min:0,target:_t.target});xs!==pn.Undefined&&xs!==pn.Tab&&(xs!==pn.Enter||xs===pn.Enter&&this.openState)&&(_t.keyCode===u.R8.Space&&xs===pn.EnterUp||Cr.preventDefault())}emitItemClickHandler(_t){const Zn=this._data[_t];this._itemClick&&this._itemClick.emit(Zn),Zn&&Zn.click&&!Zn.disabled&&Zn.click(Zn),this.focusService.focus(_t)}focusWrapper(){this.openState&&(this.togglePopupVisibility(),this.focusButton())}wrapperContains(_t){return this.wrapper===_t||this.wrapper.contains(_t)}blurWrapper(_t=!0){this._isFocused&&(this.openState&&this.togglePopupVisibility(),this._isFocused=!1,_t&&(this._blur.emit(),this.cdr.markForCheck()))}focusButton(){this.button&&this.button.nativeElement.focus()}handleTab(){this.blurWrapper()}onNavigationEnterUp(){if(!this._disabled&&!this.openState&&(this._active=!1),this.openState){const _t=this.focusService.focused;nn(_t)&&-1!==_t&&this.emitItemClickHandler(_t)}this.togglePopupVisibility(),!this.openState&&(0,u.X_)()&&this.button.nativeElement.focus()}onNavigationOpen(){!this._disabled&&!this.openState&&this.togglePopupVisibility()}onNavigationClose(){this.openState&&!this.isClosePrevented&&(this.togglePopupVisibility(),(0,u.X_)()&&this.button.nativeElement.focus())}onArrowKeyNavigate({index:_t}){this.focusService.focus(_t)}_toggle(_t,Zn){if(this.openState===_t)return;const qo=new wt;Zn&&(_t&&!this.openState?this.open.emit(qo):!_t&&this.openState&&this.close.emit(qo),qo.isDefaultPrevented())?this.isClosePrevented=!0:(this.openState=_t,this.destroyPopup(),this.openState&&this.createPopup())}createPopup(){this.popupRef=this.popupService.open({anchor:this.elRef,anchorAlign:this.anchorAlign,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.containerService.template,popupAlign:this.popupAlign,popupClass:this.popupClasses}),this.popupSubs.add(this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.openState=!1))}destroyPopup(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.popupSubs.unsubscribe(),this.isClosePrevented=!1)}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(vt),e.Y36(wi),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(f.qL),e.Y36(e.SBq),e.Y36(d.oQ),e.Y36(e.sBO),e.Y36(hi))},fi.\u0275cmp=e.Xpm({type:fi,selectors:[["ng-component"]],inputs:{disabled:"disabled",tabIndex:"tabIndex",buttonClass:"buttonClass",popupSettings:"popupSettings"},outputs:{open:"open",close:"close"},features:[e.TTD],decls:0,vars:0,template:function(_t,Zn){},encapsulation:2}),fi})(),Ei=(()=>{class fi extends d.Z1{}return fi.\u0275fac=function(){let Ho;return function(Zn){return(Ho||(Ho=e.n5z(fi)))(Zn||fi)}}(),fi.\u0275dir=e.lG2({type:fi,selectors:[["kendo-splitbutton-messages-base"]],inputs:{splitButtonLabel:"splitButtonLabel"},features:[e.qOj]}),fi})(),li=(()=>{class fi extends Ei{constructor(_t){super(),this.service=_t}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(d.oQ))},fi.\u0275dir=e.lG2({type:fi,selectors:[["","kendoSplitButtonLocalizedMessages",""]],features:[e._Bn([{provide:Ei,useExisting:(0,e.Gpc)(()=>fi)}]),e.qOj]}),fi})();const ki={provide:_i,useValue:{useLeftRightArrows:!0}};let wn=(()=>{class fi extends zn{constructor(_t,Zn,qo,Cr,kr,xs,Us,Ts,Ss,Ua){super(_t,Zn,qo,Cr,kr,xs,Us,Ts,Ua),this.localization=Us,this.renderer=Ss,this.text="",this.icon="",this.type="button",this.imageUrl="",this.size="medium",this.themeColor="base",this.tabIndex=0,this.arrowButtonIcon="caret-alt-down",this.arrowButtonSvgIcon=k.M7i,this.buttonClick=new e.vpe,this.itemClick=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.open=new e.vpe,this.close=new e.vpe,this.activeArrow=!1,this.listId=(0,u.M8)(),this.buttonText="",this.arrowButtonClicked=!1,this._rounded="medium",this._fillMode="solid",this._itemClick=this.itemClick,this._blur=this.onBlur}set rounded(_t){const Zn=_t||"medium";this.handleClasses(Zn,"rounded"),this._rounded=Zn}get rounded(){return this._rounded}set fillMode(_t){this._fillMode="clear"===_t?"flat":_t||"solid"}get fillMode(){return this._fillMode}set disabled(_t){this.isOpen&&this.toggle(!1),this._disabled=_t}get disabled(){return this._disabled}set popupSettings(_t){this._popupSettings=Object.assign({animate:!0,popupClass:""},_t)}get popupSettings(){return this._popupSettings}set data(_t){this._data=_t||[]}get data(){return this._data||(this.data=[]),this._data}get hasContent(){return this.button?.nativeElement.childElementCount>0}get active(){return this._active}get componentTabIndex(){return this.disabled?-1:this.tabIndex}set isFocused(_t){this._isFocused=_t}get isFocused(){return this._isFocused&&!this._disabled&&(0,u.X_)()&&this.wrapperContains(document.activeElement)}get widgetClasses(){return!0}get dir(){return this.direction}get ariaLabel(){return((fi,Ho,_t)=>fi.replace(new RegExp("{\\s*buttonText\\s*}","g"),_t))(this.localization.get("splitButtonLabel")||"",0,this.buttonText)}onButtonFocus(_t){if(!this._disabled){!this._isFocused&&this.onFocus.emit(),this._isFocused=!0,this.focusService.resetFocus();const Zn=_t.relatedTarget&&Eo(_t.relatedTarget,".k-popup kendo-button-list");this.openState&&!Zn&&this.focusService.focus(0)}}onArrowButtonClick(){this.togglePopupVisibility(),this.arrowButtonClicked=!1}toggleButtonActiveState(_t){this._active=_t}toggleArrowButtonActiveState(_t){this.arrowButtonClicked=!0,this.activeArrow=_t}onButtonClick(){this.buttonClick.emit()}onButtonBlur(){!this.isOpen&&!this.arrowButtonClicked&&this.blurWrapper()}keydown(_t){this.keyDownHandler(_t,!0),_t.keyCode===u.R8.Space&&(this._active=!0)}keyup(_t){this._active=!1,_t.keyCode!==u.R8.Space&&this.keyUpHandler(_t)}ngAfterViewInit(){this.containerService.container=this.containerRef,this.containerService.template=this.popupTemplate,this.updateButtonText(),this.handleClasses(this.rounded,"rounded")}ngOnChanges(_t){if(_t.hasOwnProperty("text")&&this.updateButtonText(),(0,u.aG)(["text","icon","svgIcon","iconClass","imageUrl"],_t)&&this.toggleButtonIconClass(),(0,u.ln)("popupSettings",_t)&&nn(this.popupRef)){const Zn=this.popupRef.popup.instance,qo=_t.popupSettings.currentValue;Zn.popupClass=qo.popupClass,Zn.animate=qo.animate,Zn.popupAlign=this.popupAlign}}onNavigationEnterUp(_t){_t.target!==this.button.nativeElement&&super.onNavigationEnterUp()}togglePopupVisibility(){(0,u.X_)()&&this.wrapperContains(document.activeElement)&&this.arrowButtonClicked&&this.button.nativeElement.focus(),super.togglePopupVisibility()}wrapperContains(_t){return this.wrapper===_t||this.wrapper.contains(_t)||this.popupRef&&this.popupRef.popupElement.contains(_t)}get anchorAlign(){const _t={horizontal:this.popupSettings.align||"left",vertical:"bottom"};return"rtl"===this.direction&&!nn(this.popupSettings.align)&&(_t.horizontal="right"),_t}get popupAlign(){const _t={horizontal:this.popupSettings.align||"left",vertical:"top"};return"rtl"===this.direction&&!nn(this.popupSettings.align)&&(_t.horizontal="right"),_t}get isIconButton(){const _t=this.icon||this.svgIcon||this.iconClass||this.imageUrl,Zn=(0,u.X_)()&&this.button?.nativeElement.textContent.trim().length>0;return _t&&!Zn}focus(){(0,u.X_)()&&this.button.nativeElement.focus()}blur(){(0,u.X_)()&&(this.button.nativeElement.blur(),this.blurWrapper())}get isOpen(){return this.openState}updateButtonText(){if((0,u.X_)()){const _t=this.wrapper.innerText.split("\n").join("").trim();setTimeout(()=>this.buttonText=_t,0)}}handleClasses(_t,Zn){const qo=this.wrapperRef.nativeElement,Cr=Xt("button",Zn,this[Zn],_t);Cr.toRemove&&this.renderer.removeClass(qo,Cr.toRemove),Cr.toAdd&&this.renderer.addClass(qo,Cr.toAdd)}toggleButtonIconClass(){this.button.nativeElement.classList[this.isIconButton?"add":"remove"]("k-button-icon")}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(vt),e.Y36(wi),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(f.qL),e.Y36(e.SBq),e.Y36(d.oQ),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(hi))},fi.\u0275cmp=e.Xpm({type:fi,selectors:[["kendo-splitbutton"]],contentQueries:function(_t,Zn,qo){if(1&_t&&e.Suo(qo,Ne,5),2&_t){let Cr;e.iGM(Cr=e.CRH())&&(Zn.itemTemplate=Cr.first)}},viewQuery:function(_t,Zn){if(1&_t&&(e.Gf(me,5,e.SBq),e.Gf(J,5,e.SBq),e.Gf(Q,5),e.Gf(re,5,e.s_b)),2&_t){let qo;e.iGM(qo=e.CRH())&&(Zn.button=qo.first),e.iGM(qo=e.CRH())&&(Zn.arrowButton=qo.first),e.iGM(qo=e.CRH())&&(Zn.popupTemplate=qo.first),e.iGM(qo=e.CRH())&&(Zn.containerRef=qo.first)}},hostVars:7,hostBindings:function(_t,Zn){1&_t&&e.NdJ("keydown",function(Cr){return Zn.keydown(Cr)})("keyup",function(Cr){return Zn.keyup(Cr)}),2&_t&&(e.uIk("dir",Zn.dir),e.ekj("k-focus",Zn.isFocused)("k-split-button",Zn.widgetClasses)("k-button-group",Zn.widgetClasses))},inputs:{text:"text",icon:"icon",svgIcon:"svgIcon",iconClass:"iconClass",type:"type",imageUrl:"imageUrl",size:"size",rounded:"rounded",fillMode:"fillMode",themeColor:"themeColor",disabled:"disabled",popupSettings:"popupSettings",tabIndex:"tabIndex",textField:"textField",data:"data",buttonClass:"buttonClass",arrowButtonClass:"arrowButtonClass",arrowButtonIcon:"arrowButtonIcon",arrowButtonSvgIcon:"arrowButtonSvgIcon"},outputs:{buttonClick:"buttonClick",itemClick:"itemClick",onFocus:"focus",onBlur:"blur",open:"open",close:"close"},exportAs:["kendoSplitButton"],features:[e._Bn([vt,wi,ki,d.oQ,{provide:d.mM,useValue:"kendo.splitbutton"},hi]),e.qOj,e.TTD],ngContentSelectors:b,decls:12,vars:32,consts:function(){let Ho;return Ho=$localize`:kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label:${"\ufffd0\ufffd"}:INTERPOLATION:`,[["kendoSplitButtonLocalizedMessages","",6,"splitButtonLabel"],["splitButtonLabel",Ho],["kendoButton","",3,"type","tabindex","disabled","size","rounded","fillMode","themeColor","icon","svgIcon","iconClass","imageUrl","ngClass","focus","click","blur","mousedown","mouseup"],["button",""],["class","k-button-text",4,"ngIf"],["kendoButton","","type","button","aria-hidden","true",1,"k-split-button-arrow",3,"ngClass","disabled","icon","svgIcon","size","rounded","fillMode","themeColor","tabindex","click","mousedown","mouseup"],["arrowButton",""],["popupTemplate",""],["container",""],[1,"k-button-text"],[3,"id","data","textField","itemTemplate","size","onItemClick","keydown","keyup"]]},template:function(_t,Zn){1&_t&&(e.F$t(),e.ynx(0,0),e.DtL(1,1),e.BQk(),e.TgZ(2,"button",2,3),e.NdJ("focus",function(Cr){return Zn.onButtonFocus(Cr)})("click",function(){return Zn.onButtonClick()})("blur",function(){return Zn.onButtonBlur()})("mousedown",function(){return Zn.toggleButtonActiveState(!0)})("mouseup",function(){return Zn.toggleButtonActiveState(!1)}),e.YNc(4,de,2,1,"span",4),e.Hsn(5),e.qZA(),e.TgZ(6,"button",5,6),e.NdJ("click",function(){return Zn.onArrowButtonClick()})("mousedown",function(){return Zn.toggleArrowButtonActiveState(!0)})("mouseup",function(){return Zn.toggleArrowButtonActiveState(!1)}),e.qZA(),e.YNc(8,te,1,6,"ng-template",null,7,e.W1O),e.GkF(10,null,8)),2&_t&&(e.pQV("{buttonText} splitbutton"),e.QtT(1),e.xp6(2),e.ekj("k-active",Zn.active),e.Q6J("type",Zn.type)("tabindex",Zn.componentTabIndex)("disabled",Zn.disabled)("size",Zn.size)("rounded",Zn.rounded)("fillMode",Zn.fillMode)("themeColor",Zn.themeColor)("icon",Zn.icon)("svgIcon",Zn.svgIcon)("iconClass",Zn.iconClass)("imageUrl",Zn.imageUrl)("ngClass",Zn.buttonClass),e.uIk("aria-disabled",Zn.disabled)("aria-expanded",Zn.openState)("aria-haspopup",!0)("aria-owns",Zn.listId)("aria-label",Zn.ariaLabel),e.xp6(2),e.Q6J("ngIf",Zn.text),e.xp6(2),e.ekj("k-active",Zn.activeArrow),e.Q6J("ngClass",Zn.arrowButtonClass)("disabled",Zn.disabled)("icon",Zn.arrowButtonIcon)("svgIcon",Zn.arrowButtonSvgIcon)("size",Zn.size)("rounded",Zn.rounded)("fillMode",Zn.fillMode)("themeColor",Zn.themeColor)("tabindex",-1))},dependencies:[xt,Pi,li,_.mk,_.O5],encapsulation:2}),fi})(),oo=(()=>{class fi{}return fi.\u0275fac=function(_t){return new(_t||fi)},fi.\u0275mod=e.oAB({type:fi}),fi.\u0275inj=e.cJS({imports:[[_.ez,f.Zj,Lt,si],si]}),fi})();const Xo={provide:_i,useValue:{useLeftRightArrows:!0}};let or=(()=>{class fi extends zn{constructor(_t,Zn,qo,Cr,kr,xs,Us,Ts,Ss){super(_t,Zn,qo,Cr,kr,xs,Us,Ts,Ss),this.containerService=Ss,this.icon="",this.iconClass="",this.imageUrl="",this.size="medium",this.rounded="medium",this.themeColor="base",this.itemClick=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.listId=(0,u.M8)(),this.buttonId=(0,u.M8)(),this._fillMode="solid",this._itemClick=this.itemClick,this._blur=this.onBlur}set data(_t){this._data=_t||[]}get data(){return this._data}set fillMode(_t){this._fillMode="clear"===_t?"flat":_t}get fillMode(){return this._fillMode}get focused(){return this._isFocused&&!this._disabled}get widgetClasses(){return!0}get dir(){return this.direction}get active(){return this._active}keydown(_t){this.keyDownHandler(_t,!0),(_t.keyCode===u.R8.Space||_t.keyCode===u.R8.Enter)&&(this._active=!0),_t.keyCode===u.R8.Enter&&_t.preventDefault()}keyup(_t){this.keyUpHandler(_t),this._active=!1}mousedown(_t){this._disabled&&_t.preventDefault(),this._active=!0}mouseup(_t){this._disabled&&_t.preventDefault(),this._active=!1}openPopup(){this._isFocused=!0,this.togglePopupVisibility()}onButtonBlur(){this.openState||this.blurWrapper()}focus(){(0,u.X_)()&&this.button.nativeElement.focus()}blur(){(0,u.X_)()&&(this.button.nativeElement.blur(),this.blurWrapper())}ngAfterViewInit(){this.containerService.container=this.container,this.containerService.template=this.popupTemplate}handleFocus(_t){if(!this._disabled){!this._isFocused&&this.onFocus.emit(),this._isFocused=!0,this.focusService.resetFocus();const Zn=_t.relatedTarget&&Eo(_t.relatedTarget,".k-popup kendo-button-list");this.openState&&!Zn&&this.focusService.focus(0)}}wrapperContains(_t){return this.wrapper===_t||this.wrapper.contains(_t)||this.popupRef&&this.popupRef.popupElement.contains(_t)}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(vt),e.Y36(wi),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(f.qL),e.Y36(e.SBq),e.Y36(d.oQ),e.Y36(e.sBO),e.Y36(hi))},fi.\u0275cmp=e.Xpm({type:fi,selectors:[["kendo-dropdownbutton"]],contentQueries:function(_t,Zn,qo){if(1&_t&&e.Suo(qo,Ne,5),2&_t){let Cr;e.iGM(Cr=e.CRH())&&(Zn.itemTemplate=Cr.first)}},viewQuery:function(_t,Zn){if(1&_t&&(e.Gf(me,5,e.SBq),e.Gf(j,5),e.Gf(Q,5),e.Gf(re,5,e.s_b)),2&_t){let qo;e.iGM(qo=e.CRH())&&(Zn.button=qo.first),e.iGM(qo=e.CRH())&&(Zn.buttonList=qo.first),e.iGM(qo=e.CRH())&&(Zn.popupTemplate=qo.first),e.iGM(qo=e.CRH())&&(Zn.container=qo.first)}},hostVars:5,hostBindings:function(_t,Zn){1&_t&&e.NdJ("keydown",function(Cr){return Zn.keydown(Cr)})("keyup",function(Cr){return Zn.keyup(Cr)})("mousedown",function(Cr){return Zn.mousedown(Cr)})("mouseup",function(Cr){return Zn.mouseup(Cr)}),2&_t&&(e.uIk("dir",Zn.dir),e.ekj("k-focus",Zn.focused)("k-dropdown-button",Zn.widgetClasses))},inputs:{icon:"icon",svgIcon:"svgIcon",iconClass:"iconClass",imageUrl:"imageUrl",textField:"textField",data:"data",size:"size",rounded:"rounded",fillMode:"fillMode",themeColor:"themeColor"},outputs:{itemClick:"itemClick",onFocus:"focus",onBlur:"blur"},exportAs:["kendoDropDownButton"],features:[e._Bn([vt,wi,Xo,d.oQ,{provide:d.mM,useValue:"kendo.dropdownbutton"},hi]),e.qOj],ngContentSelectors:b,decls:7,vars:18,consts:[["kendoButton","","type","button",3,"id","tabindex","disabled","icon","svgIcon","iconClass","imageUrl","ngClass","size","rounded","fillMode","themeColor","click","focus","blur"],["button",""],["popupTemplate",""],["container",""],[3,"id","data","textField","itemTemplate","size","onItemClick","keydown","keyup"],["buttonList",""]],template:function(_t,Zn){1&_t&&(e.F$t(),e.TgZ(0,"button",0,1),e.NdJ("click",function(){return Zn.openPopup()})("focus",function(Cr){return Zn.handleFocus(Cr)})("blur",function(){return Zn.onButtonBlur()}),e.Hsn(2),e.qZA(),e.YNc(3,H,2,7,"ng-template",null,2,e.W1O),e.GkF(5,null,3)),2&_t&&(e.ekj("k-active",Zn.active),e.Q6J("id",Zn.buttonId)("tabindex",Zn.componentTabIndex)("disabled",Zn.disabled)("icon",Zn.icon)("svgIcon",Zn.svgIcon)("iconClass",Zn.iconClass)("imageUrl",Zn.imageUrl)("ngClass",Zn.buttonClass)("size",Zn.size)("rounded",Zn.rounded)("fillMode",Zn.fillMode)("themeColor",Zn.fillMode?Zn.themeColor:null),e.uIk("aria-disabled",Zn.disabled)("aria-expanded",Zn.openState)("aria-haspopup",!0)("aria-controls",Zn.listId))},dependencies:[xt,Pi,_.mk],encapsulation:2}),fi})(),xr=(()=>{class fi{}return fi.\u0275fac=function(_t){return new(_t||fi)},fi.\u0275mod=e.oAB({type:fi}),fi.\u0275inj=e.cJS({imports:[[_.ez,f.Zj,si,Lt],si]}),fi})(),rt=(()=>{class fi{constructor(_t,Zn,qo,Cr){this.element=_t,this.renderer=Zn,this.ngZone=qo,this.localizationService=Cr,this.selected=!1,this.removable=!1,this.disabled=!1,this.remove=new e.vpe,this.contentClick=new e.vpe,this.tabIndex=0,this.hostClass=!0,this.defaultRemoveIcon=k.jKn,this._size="medium",this._rounded="medium",this._fillMode="solid",this._themeColor="base",this.focused=!1,this.subs=new o.w0,(0,s.s)(fn),this.direction=Cr.rtl?"rtl":"ltr"}set size(_t){const Zn=_t||"medium";this.handleClasses(Zn,"size"),this._size=Zn}get size(){return this._size}set rounded(_t){const Zn=_t||"medium";this.handleClasses(Zn,"rounded"),this._rounded=Zn}get rounded(){return this._rounded}set fillMode(_t){const Zn=_t||"solid";this.handleClasses(Zn,"fillMode"),this._fillMode=Zn}get fillMode(){return this._fillMode}set themeColor(_t){const Zn=_t||"base";this.handleThemeColor(Zn),this._themeColor=Zn}get themeColor(){return this._themeColor}get hasIconClass(){return!!(this.icon||this.iconClass||this.avatarClass)}get disabledClass(){return this.disabled}get selectedClass(){return this.selected}get focusedClass(){return this.focused}ngOnInit(){this.subs.add(this.localizationService.changes.subscribe(({rtl:_t})=>this.direction=_t?"rtl":"ltr")),this.renderer.setAttribute(this.element.nativeElement,"role","button")}ngOnDestroy(){this.subs.unsubscribe()}ngOnChanges(_t){_t&&_t.selected&&(this.element.nativeElement.hasAttribute("aria-selected")||this.renderer.setAttribute(this.element.nativeElement,"aria-pressed",`${this.selected}`))}ngAfterViewInit(){const _t=this.element.nativeElement;["size","rounded","fillMode"].forEach(qo=>{this.handleClasses(this[qo],qo)}),this.attachElementEventHandlers(_t)}get kendoIconClass(){return this.verifyIconSettings([this.iconClass,this.avatarClass]),`k-i-${this.icon}`}get customIconClass(){return this.verifyIconSettings([this.icon,this.avatarClass]),this.iconClass}get chipAvatarClass(){return this.verifyIconSettings([this.icon,this.iconClass]),this.avatarClass}get removeIconClass(){return this.removeIcon?this.removeIcon:"k-i-x-circle"}focus(){(0,u.X_)()&&this.element.nativeElement.focus()}blur(){(0,u.X_)()&&this.element.nativeElement.blur()}onRemoveClick(_t){this.removable&&this.remove.emit({sender:this,originalEvent:_t})}attachElementEventHandlers(_t){this.ngZone.runOutsideAngular(()=>{this.subs.add(this.renderer.listen(_t,"focus",()=>{this.renderer.addClass(_t,"k-focus")})),this.subs.add(this.renderer.listen(_t,"blur",()=>{this.renderer.removeClass(_t,"k-focus")})),this.subs.add(this.renderer.listen(_t,"click",Zn=>{Eo(Zn.target,".k-chip-remove-action")||this.ngZone.run(()=>{this.contentClick.emit({sender:this,originalEvent:Zn})})})),this.subs.add(this.renderer.listen(_t,"keydown",this.keyDownHandler.bind(this)))})}verifyIconSettings(_t){if((0,e.X6Q)()&&_t.filter(Zn=>null!=Zn).length>0)throw this.renderer.removeClass(this.element.nativeElement,"k-chip-has-icon"),new Error("Invalid configuration: Having multiple icons is not supported. Only a single icon on a chip can be displayed.")}handleClasses(_t,Zn){const qo=this.element.nativeElement,Cr=Xt("chip",Zn,this[Zn],_t);"fillMode"===Zn&&this.handleThemeColor(this.themeColor,this[Zn],_t),Cr.toRemove&&this.renderer.removeClass(qo,Cr.toRemove),Cr.toAdd&&this.renderer.addClass(qo,Cr.toAdd)}handleThemeColor(_t,Zn,qo){const Cr=this.element.nativeElement,xs=qo||this.fillMode,Us=Ji("chip",Zn||this.fillMode,xs,this.themeColor,_t);this.renderer.removeClass(Cr,Us.toRemove),"none"!==xs&&"none"!==qo&&Us.toAdd&&this.renderer.addClass(Cr,Us.toAdd)}keyDownHandler(_t){const qo=_t.keyCode===u.R8.Delete||_t.keyCode===u.R8.Backspace;this.disabled||(_t.keyCode===u.R8.Enter||_t.keyCode===u.R8.Space?this.ngZone.run(()=>{this.contentClick.emit({sender:this,originalEvent:_t})}):qo&&this.removable&&this.ngZone.run(()=>{this.remove.emit({sender:this,originalEvent:_t})}))}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(d.oQ))},fi.\u0275cmp=e.Xpm({type:fi,selectors:[["kendo-chip"]],hostVars:13,hostBindings:function(_t,Zn){2&_t&&(e.uIk("tabindex",Zn.tabIndex)("aria-disabled",Zn.disabledClass)("dir",Zn.direction),e.ekj("k-chip",Zn.hostClass)("k-chip-has-icon",Zn.hasIconClass)("k-disabled",Zn.disabledClass)("k-selected",Zn.selectedClass)("k-focus",Zn.focusedClass))},inputs:{label:"label",icon:"icon",svgIcon:"svgIcon",iconClass:"iconClass",avatarClass:"avatarClass",selected:"selected",removable:"removable",removeIcon:"removeIcon",removeSvgIcon:"removeSvgIcon",disabled:"disabled",size:"size",rounded:"rounded",fillMode:"fillMode",themeColor:"themeColor"},outputs:{remove:"remove",contentClick:"contentClick"},features:[e._Bn([d.oQ,{provide:d.mM,useValue:"kendo.chip"}]),e.TTD],ngContentSelectors:b,decls:8,vars:6,consts:[["size","small","innerCssClass","k-chip-icon",3,"name","svgIcon",4,"ngIf"],["size","small","innerCssClass","k-chip-icon",3,"customFontClass",4,"ngIf"],["class","k-chip-avatar k-avatar k-rounded-full",4,"ngIf"],[1,"k-chip-content"],["class","k-chip-label",4,"ngIf"],[4,"ngIf"],[1,"k-chip-actions"],["class","k-chip-action k-chip-remove-action",3,"click",4,"ngIf"],["size","small","innerCssClass","k-chip-icon",3,"name","svgIcon"],["size","small","innerCssClass","k-chip-icon",3,"customFontClass"],[1,"k-chip-avatar","k-avatar","k-rounded-full"],[1,"k-avatar-image",3,"ngClass"],[1,"k-chip-label"],[1,"k-chip-action","k-chip-remove-action",3,"click"],["name","x-circle",3,"svgIcon","customFontClass"]],template:function(_t,Zn){1&_t&&(e.F$t(),e.YNc(0,z,1,2,"kendo-icon-wrapper",0),e.YNc(1,q,1,1,"kendo-icon-wrapper",1),e.YNc(2,se,2,1,"span",2),e.TgZ(3,"span",3),e.YNc(4,ne,2,1,"span",4),e.YNc(5,_e,1,0,"ng-content",5),e.qZA(),e.TgZ(6,"span",6),e.YNc(7,ge,2,2,"span",7),e.qZA()),2&_t&&(e.Q6J("ngIf",Zn.icon||Zn.svgIcon),e.xp6(1),e.Q6J("ngIf",Zn.iconClass),e.xp6(1),e.Q6J("ngIf",Zn.avatarClass),e.xp6(2),e.Q6J("ngIf",Zn.label),e.xp6(1),e.Q6J("ngIf",!Zn.label),e.xp6(2),e.Q6J("ngIf",Zn.removable))},dependencies:[A.ZS,_.O5,_.mk],encapsulation:2}),fi})(),ai=(()=>{class fi{constructor(_t,Zn,qo,Cr){this.localizationService=_t,this.renderer=Zn,this.element=qo,this.ngZone=Cr,this.hostClass=!0,this.orientation="horizontal",this.selection="none",this.selectedChange=new e.vpe,this.remove=new e.vpe,this.role="listbox",this._size="medium",this.subs=new o.w0,this._navigable=!1,this.currentActiveIndex=0,(0,s.s)(fn),this.direction=_t.rtl?"rtl":"ltr"}set size(_t){const Zn=_t||"medium";this.handleClasses(Zn,"size"),this._size=Zn}get size(){return this._size}get single(){return"single"===this.selection}get multiple(){return"multiple"===this.selection}onClick(_t){const Zn=_t.target,qo=Eo(Zn,".k-chip-remove-action"),Cr=Eo(Zn,".k-chip"),kr=this.chips.find(xs=>Cr===xs.element.nativeElement);this.currentActiveIndex=this.chips.toArray().indexOf(kr),kr&&kr.focus(),qo&&Cr&&this.remove.emit({sender:this,originalEvent:_t,removedChip:kr}),"none"!==this.selection&&Cr&&!qo&&this.setSelection(kr)}set navigable(_t){this._navigable=_t,this.chips?.forEach(Zn=>this.renderer.setAttribute(Zn.element.nativeElement,"tabindex",_t?"-1":"0")),this.chips?.first&&this.renderer.setAttribute(this.chips.first.element.nativeElement,"tabindex","0")}get navigable(){return this._navigable}ngOnInit(){this.dynamicRTLSubscription=this.localizationService.changes.subscribe(({rtl:_t})=>this.direction=_t?"rtl":"ltr")}ngAfterViewInit(){["size"].forEach(Zn=>{this.handleClasses(this[Zn],Zn)}),this.attachElementEventHandlers()}ngAfterContentInit(){this.updateChips(),this.subs.add(this.chips?.changes.subscribe(()=>this.updateChips()))}ngOnDestroy(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subs.unsubscribe()}selectedChips(){return this.chips.reduce((_t,Zn,qo)=>Zn.selected?_t.concat(qo):_t,[])}setSelection(_t){"single"===this.selection&&this.clearSelection(_t),_t.selected=!_t.selected,this.renderer.setAttribute(_t.element.nativeElement,"aria-selected",`${_t.selected}`),this.selectedChange.emit(this.selectedChips())}clearSelection(_t){this.chips.forEach(Zn=>{_t!==Zn&&(Zn.selected=!1,this.renderer.setAttribute(Zn.element.nativeElement,"aria-selected","false"))})}handleClasses(_t,Zn){const qo=this.element.nativeElement,Cr=Xt("chip-list",Zn,this[Zn],_t);Cr.toRemove&&this.renderer.removeClass(qo,Cr.toRemove),Cr.toAdd&&this.renderer.addClass(qo,Cr.toAdd)}attachElementEventHandlers(){const _t=this.element.nativeElement;this.ngZone.runOutsideAngular(()=>{this.subs.add(this.renderer.listen(_t,"keydown",this.keyDownHandler.bind(this)))})}keyDownHandler(_t){const qo=_t.keyCode===u.R8.Delete||_t.keyCode===u.R8.Backspace,Cr=_t.keyCode===u.R8.ArrowLeft,kr=_t.keyCode===u.R8.ArrowRight;if(_t.keyCode===u.R8.Enter||_t.keyCode===u.R8.Space){const Us=Eo(_t.target,".k-chip"),Ts=this.chips.find(Ss=>Us===Ss.element.nativeElement);this.currentActiveIndex=this.chips.toArray().findIndex(Ss=>Us===Ss.element.nativeElement),"none"!==this.selection&&Us&&this.ngZone.run(()=>{this.setSelection(Ts)})}else if(qo){const Us=Eo(_t.target,".k-chip"),Ts=this.chips.find(Ss=>Us===Ss.element.nativeElement);if(Us){const Ss={sender:this,originalEvent:_t,removedChip:Ts};this.ngZone.run(()=>{this.remove.emit(Ss)})}}else Cr?this.handleArrowKeys("left"):kr&&this.handleArrowKeys("right")}handleArrowKeys(_t){this.navigable&&(this.currentActiveIndex=this.currentActiveIndex+("left"===_t?-1:1),this.currentActiveIndex>=this.chips.length?this.currentActiveIndex=0:this.currentActiveIndex<0&&(this.currentActiveIndex=this.chips.length-1),this.chips.forEach((qo,Cr)=>{this.renderer.removeAttribute(qo.element.nativeElement,"tabindex"),Cr===this.currentActiveIndex&&(this.renderer.setAttribute(qo.element.nativeElement,"tabindex","0"),qo.focus())}))}updateChips(){this.normalizeActiveIndex(),this.chips.forEach((_t,Zn)=>{const qo=_t.element.nativeElement;this.renderer.removeAttribute(_t.element.nativeElement,"tabindex"),Zn===this.currentActiveIndex&&(this.renderer.setAttribute(_t.element.nativeElement,"tabindex","0"),(0,u.X_)()&&document.activeElement.closest(".k-chip-list")&&_t.focus()),"listbox"===this.role&&this.renderer.setAttribute(qo,"role","option"),_t.removable&&this.renderer.setAttribute(qo,"aria-keyshortcuts","Enter Delete"),this.renderer.removeAttribute(qo,"aria-pressed"),this.renderer.setAttribute(qo,"aria-selected",`${_t.selected}`)})}normalizeActiveIndex(){this.currentActiveIndex>=this.chips.length&&(this.currentActiveIndex=Math.max(this.chips.length-1,0))}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(d.oQ),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.R0b))},fi.\u0275cmp=e.Xpm({type:fi,selectors:[["kendo-chiplist"],["kendo-chip-list"]],contentQueries:function(_t,Zn,qo){if(1&_t&&e.Suo(qo,rt,4),2&_t){let Cr;e.iGM(Cr=e.CRH())&&(Zn.chips=Cr)}},hostVars:10,hostBindings:function(_t,Zn){1&_t&&e.NdJ("click",function(Cr){return Zn.onClick(Cr)}),2&_t&&(e.uIk("aria-orientation",Zn.orientation)("dir",Zn.direction)("aria-multiselectable",Zn.multiple)("role",Zn.role),e.ekj("k-chip-list",Zn.hostClass)("k-selection-single",Zn.single)("k-selection-multiple",Zn.multiple))},inputs:{selection:"selection",size:"size",role:"role",navigable:"navigable"},outputs:{selectedChange:"selectedChange",remove:"remove"},features:[e._Bn([d.oQ,{provide:d.mM,useValue:"kendo.chiplist"}])],ngContentSelectors:b,decls:1,vars:0,template:function(_t,Zn){1&_t&&(e.F$t(),e.Hsn(0))},encapsulation:2}),fi})(),wr=(()=>{class fi{}return fi.\u0275fac=function(_t){return new(_t||fi)},fi.\u0275mod=e.oAB({type:fi}),fi.\u0275inj=e.cJS({imports:[[_.ez,A.pc]]}),fi})(),Yr=(()=>{class fi{}return fi.\u0275fac=function(_t){return new(_t||fi)},fi.\u0275mod=e.oAB({type:fi}),fi.\u0275inj=e.cJS({imports:[[_.ez,f.Zj,si,u.OY,A.pc]]}),fi})(),Gs=(()=>{class fi{}return fi.\u0275fac=function(_t){return new(_t||fi)},fi.\u0275mod=e.oAB({type:fi}),fi.\u0275inj=e.cJS({imports:[tt,Lt,oo,xr,wr,Yr]}),fi})()},66229:(he,y,i)=>{"use strict";i.d(y,{_O:()=>Na,jZ:()=>ic,Np:()=>Du,lF:()=>Kd,w7:()=>r2,aE:()=>GE,xH:()=>Qs,m9:()=>aD,FV:()=>HE,OC:()=>Tr,GZ:()=>dy,pi:()=>qw,yi:()=>e2,lH:()=>Zy,Qg:()=>Ky,gB:()=>dT,r3:()=>eT,KZ:()=>tT,bD:()=>nT,Ds:()=>eE,Jx:()=>iT});var e={};i.r(e),i.d(e,{append:()=>jn.Z,bindEvents:()=>hi,defined:()=>Le.Z,deg:()=>Pi.Z,elementOffset:()=>zn,elementSize:()=>Xi,eventCoordinates:()=>go,eventElement:()=>si,hashKey:()=>bo.Ym,last:()=>ot.Z,limitValue:()=>pn.Z,objectKey:()=>bo.Ms,rad:()=>_i.Z,round:()=>Bt.Z,unbindEvents:()=>ki,valueOrDefault:()=>wi.Z});var n={};i.r(n),i.d(n,{easeOutElastic:()=>Yi,linear:()=>vi,swing:()=>yn});var o={};i.r(o),i.d(o,{Arc:()=>c1,Circle:()=>sl.Z,Group:()=>ht.Z,Path:()=>Js.y,Surface:()=>zo,Text:()=>Vn.Z});var a=i(65879),l=i(3201),u=i(91918),d=i(58951);const s="arc",_="#000",C="bottom",R="center",x="circle",k="cross",w="date",g="12px sans-serif",p=10,I=/\{\d+:?/,L="height",F="inside",P="inherit",O="left",U=Number.MAX_VALUE,V=-Number.MAX_VALUE,K="none",Q="object",re="outside",de="right",te="roundedRect",H="string",z="top",se="value",ne="#fff",_e="width",ge="x",Ce="y";function De(ve){return Array.isArray(ve)}function fe(ve,r){const c=De(r)?r:[r];for(let m=0;m<c.length;m++){const Z=c[m];-1===ve.className.indexOf(Z)&&(ve.className+=" "+Z)}}const xe=/\s+/g;function Oe(ve,r){ve&&ve.className&&(ve.className=ve.className.replace(r,"").replace(xe," "))}var Le=i(10409);function Gt(ve){let r=.5;ve.options.stroke&&Le.Z(ve.options.stroke.width)&&ve.options.stroke.width%2==0&&(r=0);for(let c=0;c<ve.segments.length;c++)ve.segments[c].anchor().round(0).translate(r,r);return ve}function Ut(ve,r){return-ve.x*r.y+ve.y*r.x<0}function An(ve){return"number"==typeof ve&&!isNaN(ve)}function $n(ve){return typeof ve===H}function xn(ve){return An(ve)||$n(ve)&&isFinite(ve)}function mt(ve){return"function"==typeof ve}const ut="object",Wt="undefined";function dn(ve,r){for(let c in r){let le,m=r[c],Z=typeof m;if(le=Z===ut&&null!==m?m.constructor:null,le&&le!==Array)if(m instanceof Date)ve[c]=new Date(m.getTime());else if(mt(m.clone))ve[c]=m.clone();else{let Re=ve[c];ve[c]=typeof Re===ut&&Re||{},dn(ve[c],m)}else Z!==Wt&&(ve[c]=m)}return ve}function sn(ve){const r=arguments.length;for(let c=1;c<r;c++)dn(ve,arguments[c]);return ve}function fn(ve){return"object"==typeof ve}function yi(ve){return An(ve)?ve+"px":ve}const nn=/width|height|top|left|bottom|right/i;function Mi(ve){return nn.test(ve)}function mi(ve,r){const c=$n(r)?[r]:r;if(De(c)){const m={},Z=window.getComputedStyle(ve);for(let le=0;le<c.length;le++){let Re=c[le];m[Re]=Mi(Re)?parseFloat(Z[Re]):Z[Re]}return m}if(fn(r))for(let m in r)ve.style[m]=yi(r[m])}function Eo(ve,r=0){const c={top:0,right:0,bottom:0,left:0};return"number"==typeof ve?c[z]=c[de]=c[C]=c[O]=ve:(c[z]=ve[z]||r,c[de]=ve[de]||r,c[C]=ve[C]||r,c[O]=ve[O]||r),c}let Ko={compile:function(ve){return ve}};const Bn=class xo{static register(r){Ko=r}static compile(r,c){return Ko.compile(r,c)}};function Xt(ve={}){let r;return ve.template?ve.template=r=Bn.compile(ve.template):mt(ve.content)&&(r=ve.content),r}const Ji=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,En={};function un(ve){if(En[ve])return En[ve];const r=[];return ve.replace(Ji,function(c,m,Z,le){r.push(Le.Z(m)?m:Z||le)}),En[ve]=function(c){let m=c;for(let Z=0;Z<r.length&&m;Z++)m=m[r[Z]];return m},En[ve]}function Ki(ve,r){const c=ve.length,m=[];for(let Z=0;Z<c;Z++)r(ve[Z])&&m.push(ve[Z]);return m}function Fn(ve,r){if(ve.className){const c=r.split(" ");for(let m=0;m<c.length;m++)if(ve.className.indexOf&&-1!==ve.className.indexOf(c[m]))return!0}}En.undefined=function(ve){return ve};class oi{constructor(){this._map=new Map}get(r){return this._map.get(r)}set(r,c){this._map.set(r,c)}}function It(ve,r){if(r)return-1!==r.indexOf(ve)}var Bt=i(78203);function xt(ve,r,c){return Bt.Z(ve+(r-ve)*c,3)}const wt="trigger",pt=class Mt{constructor(r,c){this.observer=r,this.handlerMap=sn({},this.handlerMap,c)}trigger(r,c){const{observer:m,handlerMap:Z}=this;let le;return Z[r]?le=this.callObserver(Z[r],c):m[wt]&&(le=this.callObserver(wt,r,c)),le}callObserver(r,...c){return this.observer[r].apply(this.observer,c)}requiresHandlers(r){if(this.observer.requiresHandlers)return this.observer.requiresHandlers(r);for(let c=0;c<r.length;c++)if(this.handlerMap[r[c]])return!0}};function tt(ve,r){const c=ve.length,m=[];for(let Z=0;Z<c;Z++){let le=r(ve[Z]);Le.Z(le)&&m.push(le)}return m}var Ne=i(35276);const vt=Ne.Z.browser||{};function ln(ve){let r=0;return ve.wheelDelta?(r=-ve.wheelDelta/120,vt.webkit&&(r/=2*Math.max(window.devicePixelRatio,.625))):ve.detail&&(r=ve.detail/3),r=r>0?Math.ceil(r):Math.floor(r),r}var jn=i(28017),Pi=i(58214);function go(ve){return(0,Le.Z)((ve.x||{}).location)?{x:ve.x.location,y:ve.y.location}:{x:ve.pageX||ve.clientX||0,y:ve.pageY||ve.clientY||0}}function si(ve={}){return ve.touch?ve.touch.initialTouch:ve.target}var ot=i(63657),pn=i(39945),_i=i(93560),wi=i(12944);function hi(ve,r){for(let c in r){const m=c.trim().split(" ");for(let Z=0;Z<m.length;Z++)ve.addEventListener(m[Z],r[c],!1)}}function zn(ve){const r=ve.getBoundingClientRect(),c=document.documentElement;return{top:r.top+(window.pageYOffset||c.scrollTop)-(c.clientTop||0),left:r.left+(window.pageXOffset||c.scrollLeft)-(c.clientLeft||0)}}function Ei(ve,r){const c={},m=window.getComputedStyle(ve)||{},Z=Array.isArray(r)?r:[r];for(let le=0;le<Z.length;le++){let Re=Z[le];c[Re]=m[Re]}return c}function li(ve){return isNaN(ve)?ve:ve+"px"}function Xi(ve,r){if(!r){const c=Ei(ve,["width","height"]);return{width:parseInt(c.width,10),height:parseInt(c.height,10)}}{const{width:c,height:m}=r;(0,Le.Z)(c)&&(ve.style.width=li(c)),(0,Le.Z)(m)&&(ve.style.height=li(m))}}function ki(ve,r={}){for(let c in r){const m=c.trim().split(" ");for(let Z=0;Z<m.length;Z++)ve.removeEventListener(m[Z],r[c],!1)}}var bo=i(88572),jo=i(57553);function wn(ve){const r=window.console;typeof r<"u"&&r.log&&r.log(ve)}const{append:Zi,bindEvents:oo,defined:Bi,deg:Xo,elementOffset:Lo,elementSize:or,eventCoordinates:xr,eventElement:Nr,hashKey:as,last:ji,limitValue:Fo,objectKey:rt,rad:ai,round:Gn,unbindEvents:Io,valueOrDefault:wr}=e;class bs{static fetchFonts(r,c,m={depth:0}){!r||m.depth>5||!document.fonts||Object.keys(r).forEach(function(le){const Re=r[le];"dataSource"===le||"$"===le[0]||!Re||("font"===le?c.push(Re):"object"==typeof Re&&(m.depth++,bs.fetchFonts(Re,c,m),m.depth--))})}static loadFonts(r,c){let m=[];if(r.length>0&&document.fonts){try{m=r.map(function(Z){return document.fonts.load(Z)})}catch(Z){wn(Z)}Promise.all(m).then(c,c)}else c()}static preloadFonts(r,c){const m=[];bs.fetchFonts(r,m),bs.loadFonts(m,c)}}const ba=bs;function ms(ve,r){const c=ve.prototype;c.options=c.options?sn({},c.options,r):r}const Ea="k-i-",tr="k-svg-i-";class Mr{constructor(r,c){this.element=r,this.options=sn({},this.options,c),this.wrapper()}wrapper(){this.addClasses()}addClasses(){}html(){return this.element.outerHTML}}ms(Mr,{name:"",size:"none",themeColor:"none",flip:"default",iconClass:"",stylingOptions:["size","themeColor","fill"]});class Li extends Mr{constructor(r,c){super(r,c)}wrapper(){let r=this.element.className.split(" ").find(m=>m.startsWith(Ea)),c=this.options.icon?`${this.options.icon.startsWith(Ea)?"":Ea}${this.options.icon}`:"";this._className=c,fe(this.element,"k-icon"),Oe(this.element,r),fe(this.element,c),fe(this.element,this.options.iconClass||""),super.wrapper()}}ms(Li,{name:"HTMLFontIcon",icon:null});class Ao extends Mr{constructor(r,c){r.innerHTML="",super(r,c)}wrapper(){let r=this.options.icon,c=this.options.iconClass,m=this.element.className.split(" ").find(le=>le.startsWith(tr));if(!r&&c){let Re=c.match(/k-i-(\w+(?:-\w+)*)/);Re&&(r=Re[1],c=c.replace(Re[0],""))}$n(r)&&(r=r.replace("k-i-","").replace(/-./g,le=>le[1].toUpperCase()),r=this.options.svgIcons[r]||this.options.svgIcons[`${r}Icon`]);let Z=r&&r.name?`${tr}${r.name}`:"";if(this._className=Z,fe(this.element,"k-svg-icon"),Oe(this.element,m),fe(this.element,Z),fe(this.element,c||""),this.element.setAttribute("aria-hidden","true"),r&&function Lt(ve){return"[object Object]"===Object.prototype.toString.call(ve)}(r)){let le=document.createElementNS("http://www.w3.org/2000/svg","svg");le.setAttribute("viewBox",r.viewBox||""),le.setAttribute("focusable","false"),le.innerHTML=r.content||"",this.element.appendChild(le)}super.wrapper()}}ms(Ao,{name:"HTMLSvgIcon",icon:null,svgIcons:{}});const ao={svg:Ao,font:Li};function Go(ve,r){let c=ve,m=r;return(!c||fn(c)&&!(c instanceof HTMLElement)||$n(c))&&(m=c,c=document.createElement("span")),$n(m)&&(m={icon:m}),m.type||(m.type="svg"),ao[m.type]?new ao[m.type](c,m).html():null}function pr(ve){let r=U,c=V;for(let m=0,Z=ve.length;m<Z;m++){const le=ve[m];null!==le&&isFinite(le)&&(r=Math.min(r,le),c=Math.max(c,le))}return{min:r===U?void 0:r,max:c===V?void 0:c}}function Rr(ve,r){for(let c=0;c<ve.length;c++){const m=ve[c];if(r(m,c,ve))return m}}var br=i(11255);const Ti=br.Z,mr=/matrix\((.*)\)/;function mo(ve){const r=getComputedStyle(ve).transform;return"none"===r?Ti.unit():function ri(ve){const r=ve.match(mr);if(null===r||2!==r.length)return Ti.unit();const c=r[1].split(",").map(m=>parseFloat(m));return new Ti(...c)}(r)}var yo=i(90380);const Yr=function lr(ve){return new yo.Z(ve).isDark()?ne:_},Gs={};class fi{constructor(r){this._index={},this._values=r?r.slice(0):[];for(let c=0;c<this._values.length;c++)this._index[this._values[c]]=c}values(){return this._values.filter(r=>r!==Gs)}has(r){return void 0!==this._index[r]}add(r){this.has(r)||(this._index[r]=this._values.length,this._values.push(r))}delete(r){const c=this._index[r];void 0!==c&&(this._values[c]=Gs,delete this._index[r])}clear(){this._index={},this._values=[]}get size(){return this._values.length}}class Ho{constructor(r){this._set=new Set(r)}values(){return Array.from(this._set)}has(r){return this._set.has(r)}add(r){this._set.add(r)}delete(r){this._set.delete(r)}clear(){this._set.clear()}get size(){return this._set.size}}function Zn(ve){return(()=>{let ve=!1;return"function"==typeof Set&&(ve=new Set([1]).has(1)),ve})()?new Ho(ve):new fi(ve)}function qo(ve){throw ve}function xs(ve,r){let c=Gn(r-ve,9);if(0===c){if(0===r)return.1;c=Math.abs(r)}const m=Math.pow(10,Math.floor(Math.log(c)/Math.log(10))),Z=Gn(c/m,p);let le=1;return le=Z<1.904762?.2:Z<4.761904?.5:Z<9.523809?1:2,Gn(m*le,p)}class Us extends jo.Z{constructor(r,c){super(),this.x=r||0,this.y=c||0}clone(){return new Us(this.x,this.y)}equals(r){return r&&this.x===r.x&&this.y===r.y}rotate(r,c){const m=ai(c),Z=Math.cos(m),le=Math.sin(m),{x:Re,y:gt}=r,{x:hn,y:di}=this;return this.x=Gn(Re+(hn-Re)*Z+(di-gt)*le,3),this.y=Gn(gt+(di-gt)*Z-(hn-Re)*le,3),this}multiply(r){return this.x*=r,this.y*=r,this}distanceTo(r){const c=this.x-r.x,m=this.y-r.y;return Math.sqrt(c*c+m*m)}static onCircle(r,c,m){const Z=ai(c);return new Us(r.x-m*Math.cos(Z),r.y-m*Math.sin(Z))}}const Ts=Us;var Ss=i(3897);class Ua extends jo.Z{constructor(r,c,m,Z){super(),this.x1=r||0,this.y1=c||0,this.x2=m||0,this.y2=Z||0}equals(r){return this.x1===r.x1&&this.x2===r.x2&&this.y1===r.y1&&this.y2===r.y2}width(){return this.x2-this.x1}height(){return this.y2-this.y1}translate(r,c){return this.x1+=r,this.x2+=r,this.y1+=c,this.y2+=c,this}move(r,c){const m=this.height(),Z=this.width();return Bi(r)&&(this.x1=r,this.x2=this.x1+Z),Bi(c)&&(this.y1=c,this.y2=this.y1+m),this}wrap(r){return this.x1=Math.min(this.x1,r.x1),this.y1=Math.min(this.y1,r.y1),this.x2=Math.max(this.x2,r.x2),this.y2=Math.max(this.y2,r.y2),this}wrapPoint(r){const c=De(r),m=c?r[0]:r.x,Z=c?r[1]:r.y;return this.wrap(new Ua(m,Z,m,Z)),this}snapTo(r,c){return(c===ge||!c)&&(this.x1=r.x1,this.x2=r.x2),(c===Ce||!c)&&(this.y1=r.y1,this.y2=r.y2),this}alignTo(r,c){const m=this.height(),Z=this.width(),le=c===z||c===C?Ce:ge,Re=le===Ce?m:Z;if(c===R){const gt=r.center(),hn=this.center();this.x1+=gt.x-hn.x,this.y1+=gt.y-hn.y}else this[le+1]=c===z||c===O?r[le+1]-Re:r[le+2];return this.x2=this.x1+Z,this.y2=this.y1+m,this}shrink(r,c){return this.x2-=r,this.y2-=c,this}expand(r,c){return this.shrink(-r,-c),this}pad(r){const c=Eo(r);return this.x1-=c.left,this.x2+=c.right,this.y1-=c.top,this.y2+=c.bottom,this}unpad(r){const c=Eo(r);return c.left=-c.left,c.top=-c.top,c.right=-c.right,c.bottom=-c.bottom,this.pad(c)}clone(){return new Ua(this.x1,this.y1,this.x2,this.y2)}center(){return new Ts(this.x1+this.width()/2,this.y1+this.height()/2)}containsPoint(r){return r.x>=this.x1&&r.x<=this.x2&&r.y>=this.y1&&r.y<=this.y2}points(){return[new Ts(this.x1,this.y1),new Ts(this.x2,this.y1),new Ts(this.x2,this.y2),new Ts(this.x1,this.y2)]}getHash(){return[this.x1,this.y1,this.x2,this.y2].join(",")}overlaps(r){return!(r.y2<this.y1||this.y2<r.y1||r.x2<this.x1||this.x2<r.x1)}rotate(r){let c=this.width(),m=this.height();const{x:Z,y:le}=this.center(),Re=$o(0,0,Z,le,r),gt=$o(c,0,Z,le,r),hn=$o(c,m,Z,le,r),di=$o(0,m,Z,le,r);return c=Math.max(Re.x,gt.x,hn.x,di.x)-Math.min(Re.x,gt.x,hn.x,di.x),m=Math.max(Re.y,gt.y,hn.y,di.y)-Math.min(Re.y,gt.y,hn.y,di.y),this.x2=this.x1+c,this.y2=this.y1+m,this}toRect(){return new Ss.Z([this.x1,this.y1],[this.width(),this.height()])}hasSize(){return 0!==this.width()&&0!==this.height()}align(r,c,m){const Z=c+1,le=c+2,Re=c===ge?_e:L,gt=this[Re]();It(m,[O,z])?(this[Z]=r[Z],this[le]=this[Z]+gt):It(m,[de,C])?(this[le]=r[le],this[Z]=this[le]-gt):m===R&&(this[Z]=r[Z]+(r[Re]()-gt)/2,this[le]=this[Z]+gt)}}function $o(ve,r,c,m,Z){const le=ai(Z);return new Ts(c+(ve-c)*Math.cos(le)+(r-m)*Math.sin(le),m-(ve-c)*Math.sin(le)+(r-m)*Math.cos(le))}const Ar=Ua;class No extends jo.Z{constructor(r,c,m,Z,le){super(),this.center=r,this.innerRadius=c,this.radius=m,this.startAngle=Z,this.angle=le}clone(){return new No(this.center,this.innerRadius,this.radius,this.startAngle,this.angle)}middle(){return this.startAngle+this.angle/2}setRadius(r,c){return c?this.innerRadius=r:this.radius=r,this}point(r,c){const m=ai(r),Z=Math.cos(m),le=Math.sin(m),Re=c?this.innerRadius:this.radius,gt=Gn(this.center.x-Z*Re,3),hn=Gn(this.center.y-le*Re,3);return new Ts(gt,hn)}adjacentBox(r,c,m){const Z=this.clone().expand(r),le=Z.middle(),Re=Z.point(le),gt=c/2,hn=m/2,di=Math.sin(ai(le)),no=Math.cos(ai(le));let Mo=Re.x-gt,ir=Re.y-hn;return Math.abs(di)<.9&&(Mo+=gt*-no/Math.abs(no)),Math.abs(no)<.9&&(ir+=hn*-di/Math.abs(di)),new Ar(Mo,ir,Mo+c,ir+m)}containsPoint(r){const c=this.center,m=this.innerRadius,Z=this.radius,le=this.startAngle,Re=this.startAngle+this.angle,gt=r.x-c.x,hn=r.y-c.y,di=new Ts(gt,hn),no=this.point(le),Mo=new Ts(no.x-c.x,no.y-c.y),ir=this.point(Re),Wr=new Ts(ir.x-c.x,ir.y-c.y),Qr=Gn(gt*gt+hn*hn,3);return(Mo.equals(di)||Ut(Mo,di))&&!Ut(Wr,di)&&Qr>=m*m&&Qr<=Z*Z}getBBox(){const r=new Ar(U,U,V,V),c=Gn(this.startAngle%360),m=Gn((c+this.angle)%360),Z=this.innerRadius,le=[0,90,180,270,c,m].sort(qr),Re=le.indexOf(c),gt=le.indexOf(m);let hn;hn=c===m?le:Re<gt?le.slice(Re,gt+1):[].concat(le.slice(0,gt+1),le.slice(Re,le.length));for(let di=0;di<hn.length;di++){let no=this.point(hn[di]);r.wrapPoint(no),r.wrapPoint(no,Z)}return Z||r.wrapPoint(this.center),r}expand(r){return this.radius+=r,this}}function qr(ve,r){return ve-r}const js=No;var ls=i(12090),Hs=i(80600),Js=i(37690);class ll extends jo.Z{createRing(r,c){const m=r.startAngle+180;let Z=r.angle+m;r.angle>0&&m===Z&&(Z+=.001);const le=new ls.Z(r.center.x,r.center.y),Re=Math.max(r.radius,0),gt=Math.max(r.innerRadius,0),hn=new Hs.Z(le,{startAngle:m,endAngle:Z,radiusX:Re,radiusY:Re}),di=Js.y.fromArc(hn,c).close();if(gt){hn.radiusX=hn.radiusY=gt;const no=hn.pointAt(Z);di.lineTo(no.x,no.y),di.arc(Z,m,gt,gt,!0)}else di.lineTo(le.x,le.y);return di}}ll.current=new ll;const Za=ll;var sl=i(2869),Jt=i(27128),Tt=i(27229),ht=i(44096);function yn(ve){return.5-Math.cos(ve*Math.PI)/2}function vi(ve){return ve}function Yi(ve,r,c,m){let Z=1.70158,le=0,Re=m;return 0===ve?c:1===ve?c+m:(le||(le=.5),Re<Math.abs(m)?(Re=m,Z=le/4):Z=le/(2*Math.PI)*Math.asin(m/Re),Re*Math.pow(2,-10*ve)*Math.sin((Number(ve)-Z)*(1.1*Math.PI)/le)+m+c)}const sr=Date.now||function(){return(new Date).getTime()};let yr=ve=>{const r=typeof window<"u"?window:{},c=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.oRequestAnimationFrame||r.msRequestAnimationFrame||function(m){setTimeout(m,1e3/60)};yr=m=>c.call(r,m),yr(ve)};const Ur=yr;let ss;class gs extends jo.Z{static get current(){return ss||(ss=new gs),ss}constructor(){super(),this._items=[]}register(r,c){this._items.push({name:r,type:c})}create(r,c){const m=this._items;let Z;if(c&&c.type){const le=c.type.toLowerCase();for(let Re=0;Re<m.length;Re++)if(m[Re].name.toLowerCase()===le){Z=m[Re];break}}if(Z)return new Z.type(r,c)}}const Pr=gs,da=class ys extends jo.Z{static create(r,c,m){return Pr.current.create(r,c,m)}get options(){return this._options||{duration:500,easing:"swing"}}set options(r){this._options=r}constructor(r,c){super(),this.options=Object.assign({},this.options,c),this.element=r}setup(){}step(){}play(){const r=this.options,{duration:c,delay:m=0}=r,Z=n[r.easing],le=sr()+m,Re=le+c;0===c?(this.step(1),this.abort()):setTimeout(()=>{const gt=()=>{if(this._stopped)return;const hn=sr(),di=(0,pn.Z)(hn-le,0,c),Mo=Z(di/c,di,0,1,c);this.step(Mo),hn<Re?Ur(gt):this.abort()};gt()},m)}abort(){this._stopped=!0}destroy(){this.abort()}};class Va extends jo.Z{constructor(r){super(),this.children=[],this.options=sn({},this.options,this.initUserOptions(r))}initUserOptions(r){return r}reflow(r){const c=this.children;let m;for(let Z=0;Z<c.length;Z++){let le=c[Z];le.reflow(r),m=m?m.wrap(le.box):le.box.clone()}this.box=m||r}destroy(){const r=this.children;this.animation&&this.animation.destroy();for(let c=0;c<r.length;c++)r[c].destroy()}getRoot(){const r=this.parent;return r?r.getRoot():null}getSender(){const r=this.getService();if(r)return r.sender}getService(){let r=this;for(;r;){if(r.chartService)return r.chartService;r=r.parent}}translateChildren(r,c){const m=this.children,Z=m.length;for(let le=0;le<Z;le++)m[le].box.translate(r,c)}append(){for(let r=0;r<arguments.length;r++){let c=arguments[r];this.children.push(c),c.parent=this}}renderVisual(){!1!==this.options.visible&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())}addVisual(){this.visual&&(this.visual.chartElement=this,this.parent&&this.parent.appendVisual(this.visual))}renderChildren(){const r=this.children,c=r.length;for(let m=0;m<c;m++)r[m].renderVisual()}createVisual(){this.visual=new ht.Z({zIndex:this.options.zIndex,visible:wr(this.options.visible,!0)})}createAnimation(){this.visual&&this.options.animation&&(this.animation=da.create(this.visual,this.options.animation))}appendVisual(r){r.chartElement||(r.chartElement=this),r.options.noclip?this.clipRoot().visual.append(r):Bi(r.options.zIndex)?this.stackRoot().stackVisual(r):this.isStackRoot?this.stackVisual(r):this.visual?this.visual.append(r):this.parent.appendVisual(r)}clipRoot(){return this.parent?this.parent.clipRoot():this}stackRoot(){return this.parent?this.parent.stackRoot():this}stackVisual(r){const c=r.options.zIndex||0,m=this.visual.children,Z=m.length;let le;for(le=0;le<Z&&!(wr(m[le].options.zIndex,0)>c);le++);this.visual.insert(le,r)}traverse(r){const c=this.children,m=c.length;for(let Z=0;Z<m;Z++){let le=c[Z];r(le),le.traverse&&le.traverse(r)}}closest(r){let c=this,m=!1;for(;c&&!m;)m=r(c),m||(c=c.parent);if(m)return c}renderComplete(){}hasHighlight(){const r=(this.options||{}).highlight;return!(!this.createHighlight||r&&!1===r.visible||!1===this.visible)}toggleHighlight(r,c){const m=(this.options||{}).highlight||{},Z=m.visual;let le=this._highlight;if(!le){const Re={fill:{color:ne,opacity:c||.2},stroke:{color:ne,width:1,opacity:c||.2}};if(Z){if(le=this._highlight=Z(Object.assign(this.highlightVisualArgs(),{createVisual:()=>this.createHighlight(Re),sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total})),!le)return}else le=this._highlight=this.createHighlight(Re);Bi(le.options.zIndex)||(le.options.zIndex=wr(m.zIndex,this.options.zIndex)),this.appendVisual(le)}le.visible(r)}createGradientOverlay(r,c,m){const Z=new Js.y(Object.assign({stroke:{color:"none"},fill:this.createGradient(m),closed:r.options.closed},c));return Z.segments.elements(r.segments.elements()),Z}createGradient(r){if(this.parent)return this.parent.createGradient(r)}supportsPointInactiveOpacity(){return!0}}Va.prototype.options={};const ga=Va;class al extends ga{constructor(r){super(r),this.options.margin=Eo(this.options.margin),this.options.padding=Eo(this.options.padding)}reflow(r){const c=this.options,{width:m,height:Z,shrinkToFit:le}=c,Re=m&&Z,gt=c.margin,hn=c.padding,di=c.border.width;let no;const Mo=()=>{this.align(r,ge,c.align),this.align(r,Ce,c.vAlign),this.paddingBox=no.clone().unpad(gt).unpad(di)};let ir=r.clone();Re&&(ir.x2=ir.x1+m,ir.y2=ir.y1+Z),le&&ir.unpad(gt).unpad(di).unpad(hn),super.reflow(ir),no=Re?this.box=new Ar(0,0,m,Z):this.box,le&&Re?(Mo(),ir=this.contentBox=this.paddingBox.clone().unpad(hn)):(ir=this.contentBox=no.clone(),no.pad(hn).pad(di).pad(gt),Mo()),this.translateChildren(no.x1-ir.x1+gt.left+di+hn.left,no.y1-ir.y1+gt.top+di+hn.top);const Wr=this.children;for(let Qr=0;Qr<Wr.length;Qr++){let Bs=Wr[Qr];Bs.reflow(Bs.box)}}align(r,c,m){this.box.align(r,c,m)}hasBox(){const r=this.options;return r.border.width||r.background}createVisual(){super.createVisual(),this.options.visible&&this.hasBox()&&this.visual.append(Js.y.fromRect(this.paddingBox.toRect(),this.visualStyle()))}visualStyle(){const r=this.options,c=r.border||{};return{stroke:{width:c.width,color:c.color,opacity:wr(c.opacity,r.opacity),dashType:c.dashType},fill:{color:r.background,opacity:r.opacity},cursor:r.cursor}}}ms(al,{align:O,vAlign:z,margin:{},padding:{},border:{color:_,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});const ur=al;class La extends ur{constructor(r,c){super(r),this.pointData=c}getElement(){const{options:r,paddingBox:c}=this,{type:m,rotation:Z}=r,le=c.center(),Re=c.width()/2,gt=c.height()/2;if(!r.visible||!this.hasBox())return null;const hn=this.visualStyle();let di;if(m===x)di=new sl.Z(new Jt.Z([Gn(c.x1+Re,3),Gn(c.y1+gt,3)],Math.min(Re,gt)),hn);else if("triangle"===m)di=Js.y.fromPoints([[c.x1+Re,c.y1],[c.x1,c.y2],[c.x2,c.y2]],hn).close();else if(m===k)di=new Js.w(hn),di.moveTo(c.x1,c.y1).lineTo(c.x2,c.y2),di.moveTo(c.x1,c.y2).lineTo(c.x2,c.y1);else{const no=c.toRect();if(m===te){const Mo=wr(r.borderRadius,no.width()/5);no.setCornerRadius(Mo)}di=Js.y.fromRect(no,hn)}return Z&&di.transform(Tt.Z().rotate(-Z,[le.x,le.y])),di.options.zIndex=r.zIndex,di}createElement(){const r=this.options.visual,c=this.pointData||{};let m;return m=r?r({value:c.value,dataItem:c.dataItem,sender:this.getSender(),series:c.series,category:c.category,rect:this.paddingBox.toRect(),options:this.visualOptions(),createVisual:()=>this.getElement()}):this.getElement(),m}visualOptions(){const r=this.options;return{background:r.background,border:r.border,margin:r.margin,padding:r.padding,type:r.type,size:r.width,visible:r.visible}}createVisual(){this.visual=this.createElement()}}ms(La,{type:x,align:R,vAlign:R});const ra=La;var Ls=i(8996),vn=i(38689);const Ke="radial",St={glass:{type:"linear",rotation:0,stops:[{offset:0,color:ne,opacity:0},{offset:.25,color:ne,opacity:.3},{offset:1,color:ne,opacity:0}]},sharpBevel:{type:Ke,stops:[{offset:0,color:ne,opacity:.55},{offset:.65,color:ne,opacity:0},{offset:.95,color:ne,opacity:.25}]},roundedBevel:{type:Ke,stops:[{offset:.33,color:ne,opacity:.06},{offset:.83,color:ne,opacity:.2},{offset:.95,color:ne,opacity:0}]},roundedGlass:{type:Ke,supportVML:!1,stops:[{offset:0,color:ne,opacity:0},{offset:.5,color:ne,opacity:.3},{offset:.99,color:ne,opacity:0}]},sharpGlass:{type:Ke,supportVML:!1,stops:[{offset:0,color:ne,opacity:.2},{offset:.15,color:ne,opacity:.15},{offset:.17,color:ne,opacity:.35},{offset:.85,color:ne,opacity:.05},{offset:.87,color:ne,opacity:.15},{offset:.99,color:ne,opacity:0}]},bubbleShadow:{type:Ke,center:[.5,.5],radius:.5}};function it(ve,r){if(ve.x1===r.x1&&ve.y1===r.y1&&ve.x2===r.x2&&ve.y2===r.y2)return r;const c=Math.min(ve.x1,r.x1),m=Math.max(ve.x1,r.x1),Z=Math.min(ve.x2,r.x2),le=Math.max(ve.x2,r.x2),Re=Math.min(ve.y1,r.y1),gt=Math.max(ve.y1,r.y1),hn=Math.min(ve.y2,r.y2),di=Math.max(ve.y2,r.y2),no=[];return no[0]=new Ar(m,Re,Z,gt),no[1]=new Ar(c,gt,m,hn),no[2]=new Ar(Z,gt,le,hn),no[3]=new Ar(m,hn,Z,di),ve.x1===c&&ve.y1===Re||r.x1===c&&r.y1===Re?(no[4]=new Ar(c,Re,m,gt),no[5]=new Ar(Z,hn,le,di)):(no[4]=new Ar(Z,Re,le,gt),no[5]=new Ar(c,hn,m,di)),Ki(no,function(Mo){return Mo.height()>0&&Mo.width()>0})[0]}class Dt extends ga{constructor(r){super(r);const c=this.options;c.width=parseInt(c.width,10),c.height=parseInt(c.height,10),this.gradients={}}reflow(){const{options:r,children:c}=this;let m=new Ar(0,0,r.width,r.height);this.box=m.unpad(r.margin);for(let Z=0;Z<c.length;Z++)c[Z].reflow(m),m=it(m,c[Z].box)||new Ar}createVisual(){this.visual=new ht.Z,this.createBackground()}createBackground(){const r=this.options,c=r.border||{},m=this.box.clone().pad(r.margin).unpad(c.width),Z=Js.y.fromRect(m.toRect(),{stroke:{color:c.width?c.color:"",width:c.width,dashType:c.dashType},fill:{color:r.background,opacity:r.opacity},zIndex:-10});this.visual.append(Z)}getRoot(){return this}createGradient(r){const c=this.gradients,m=rt(r),Z=St[r.gradient];let le;if(c[m])le=c[m];else{const Re=Object.assign({},Z,r);"linear"===Z.type?le=new Ls.Z(Re):(r.innerRadius&&(Re.stops=function Hn(ve){const r=ve.stops,c=ve.innerRadius/ve.radius*100,m=r.length,Z=[];for(let le=0;le<m;le++){let Re=Object.assign({},r[le]);Re.offset=(Re.offset*(100-c)+c)/100,Z.push(Re)}return Z}(Re)),le=new vn.Z(Re),le.supportVML=!1!==Z.supportVML),c[m]=le}return le}cleanGradients(){const r=this.gradients;for(let c in r)r[c]._observers=[]}size(){const r=this.options;return new Ar(0,0,r.width,r.height)}}ms(Dt,{width:600,height:400,background:ne,border:{color:_,width:0},margin:Eo(5),zIndex:-2});const Ui=Dt;class Co extends ga{constructor(r){super(r),this._initDirection()}_initDirection(){const r=this.options;r.vertical?(this.groupAxis=ge,this.elementAxis=Ce,this.groupSizeField=_e,this.elementSizeField=L,this.groupSpacing=r.spacing,this.elementSpacing=r.vSpacing):(this.groupAxis=Ce,this.elementAxis=ge,this.groupSizeField=L,this.elementSizeField=_e,this.groupSpacing=r.vSpacing,this.elementSpacing=r.spacing)}reflow(r){this.box=r.clone(),this.reflowChildren()}reflowChildren(){const{box:r,elementAxis:c,groupAxis:m,elementSizeField:Z,groupSizeField:le}=this,{groups:Re,groupsSize:gt,maxGroupElementsSize:hn}=this.groupOptions(),di=Re.length,no=r[m+1]+this.alignStart(gt,r[le]());if(di){let Mo=no;for(let ir=0;ir<di;ir++){let Wr=Re[ir],Qr=Wr.groupElements,Bs=r[c+1],oa=Qr.length;for(let Ba=0;Ba<oa;Ba++){let tl=Qr[Ba],Dc=this.elementSize(tl),Ud=Mo+this.alignStart(Dc[le],Wr.groupSize),hu=new Ar;hu[m+1]=Ud,hu[m+2]=Ud+Dc[le],hu[c+1]=Bs,hu[c+2]=Bs+Dc[Z],tl.reflow(hu),Bs+=Dc[Z]+this.elementSpacing}Mo+=Wr.groupSize+this.groupSpacing}r[m+1]=no,r[m+2]=no+gt,r[c+2]=r[c+1]+hn}}alignStart(r,c){let m=0;const Z=this.options.align;return Z===de||Z===C?m=c-r:Z===R&&(m=(c-r)/2),m}groupOptions(){const{box:r,children:c,elementSizeField:m,groupSizeField:Z,elementSpacing:le,groupSpacing:Re}=this,gt=Gn(r[m]()),hn=c.length,di=[];let no=0,Mo=0,ir=0,Wr=0,Qr=[];for(let Bs=0;Bs<hn;Bs++){let oa=c[Bs];oa.box||oa.reflow(r);let Ba=this.elementSize(oa);this.options.wrap&&Gn(Mo+le+Ba[m])>gt&&(di.push({groupElements:Qr,groupSize:no,groupElementsSize:Mo}),Wr=Math.max(Wr,Mo),ir+=Re+no,no=0,Mo=0,Qr=[]),no=Math.max(no,Ba[Z]),Mo>0&&(Mo+=le),Mo+=Ba[m],Qr.push(oa)}return di.push({groupElements:Qr,groupSize:no,groupElementsSize:Mo}),Wr=Math.max(Wr,Mo),ir+=no,{groups:di,groupsSize:ir,maxGroupElementsSize:Wr}}elementSize(r){return{width:r.box.width(),height:r.box.height()}}createVisual(){}}ms(Co,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});const Sn=Co;var Vn=i(70702),Dn=i(13966);const kn=Vn.Z;class ui extends ga{constructor(r,c){super(c),this.content=r,this.reflow(new Ar)}reflow(r){const c=this.options,m=c.size=Dn.Z(this.content,{font:c.font});this.baseline=m.baseline,this.box=new Ar(r.x1,r.y1,r.x1+m.width,r.y1+m.height)}createVisual(){const{font:r,color:c,opacity:m,cursor:Z}=this.options;this.visual=new kn(this.content,this.box.toRect().topLeft(),{font:r,fill:{color:c,opacity:m},cursor:Z})}}ms(ui,{font:g,color:_});const Ot=ui;function en(ve){const r=ve.origin,c=ve.bottomRight();return new Ar(r.x,r.y,c.x,c.y)}const cn=/\n/m,ft=class Ht extends ur{constructor(r,c,m){super(c),this.content=r,this.data=m,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new Ar)}_initContainer(){const r=this.options,c=String(this.content).split(cn),m=new Sn({vertical:!0,align:r.align,wrap:!1}),Z=sn({},r,{opacity:1,animation:null});this.container=m,this.append(m);for(let le=0;le<c.length;le++){let Re=new Ot(c[le].trim(),Z);m.append(Re)}}reflow(r){const c=this.options,m=c.visual;if(this.container.options.align=c.align,m&&!this._boxReflow){let Z=r;Z.hasSize()||(this._boxReflow=!0,this.reflow(Z),this._boxReflow=!1,Z=this.box);const le=this.visual=m(this.visualContext(Z));le&&(Z=en(le.clippedBBox()||new Ss.Z),le.options.zIndex=c.zIndex),this.box=this.contentBox=this.paddingBox=Z}else if(super.reflow(r),c.rotation){const Z=Eo(c.margin);let le=this.box.unpad(Z);this.targetBox=r,this.normalBox=le.clone(),le=this.rotate(),le.translate(Z.left-Z.right,Z.top-Z.bottom),this.rotatedBox=le.clone(),le.pad(Z)}}createVisual(){const r=this.options;if(this.visual=new ht.Z({transform:this.rotationTransform(),zIndex:r.zIndex,noclip:r.noclip}),this.hasBox()){const c=Js.y.fromRect(this.paddingBox.toRect(),this.visualStyle());this.visual.append(c)}}renderVisual(){if(this.options.visible)if(this.options.visual){const r=this.visual;r&&!Bi(r.options.noclip)&&(r.options.noclip=this.options.noclip),this.addVisual(),this.createAnimation()}else super.renderVisual()}visualContext(r){const c={text:this.content,rect:r.toRect(),sender:this.getSender(),options:this.options,createVisual:()=>(this._boxReflow=!0,this.reflow(r),this._boxReflow=!1,this.getDefaultVisual())};return this.data&&Object.assign(c,this.data),c}getDefaultVisual(){this.createVisual(),this.renderChildren();const r=this.visual;return delete this.visual,r}rotate(){const r=this.options;return this.box.rotate(r.rotation),this.align(this.targetBox,ge,r.align),this.align(this.targetBox,Ce,r.vAlign),this.box}rotationTransform(){const r=this.options.rotation;if(!r)return null;const{x:c,y:m}=this.normalBox.center(),Z=this.rotatedBox.center();return Tt.Z().translate(Z.x-c,Z.y-m).rotate(r,[c,m])}};class Nt extends ga{constructor(r){super(r),this._textBox=new ft(this.options.text,Object.assign({},this.options,{vAlign:this.options.position})),this.append(this._textBox)}reflow(r){super.reflow(r),this.box.snapTo(r,ge)}static buildTitle(r,c){let Z,m=r;return"string"==typeof r&&(m={text:r}),m=Object.assign({visible:!0},c,m),m&&m.visible&&m.text&&(Z=new Nt(m)),Z}static orderTitles(r){const c=[].concat(r),m=c.filter(le=>le&&le.options.position!==C),Z=c.filter(le=>le&&le.options.position===C);return an(m),an(Z),Z.reverse(),m.concat(Z)}}function an(ve){for(let r=1;r<ve.length;r++){const c=ve[r]._textBox,m=ve[r-1]._textBox;m.options.margin=Object.assign(Eo(m.options.margin),{bottom:0}),c.options.margin=Object.assign(Eo(c.options.margin),{top:0})}}ms(Nt,{color:_,position:z,align:R,margin:Eo(5),padding:Eo(5)});const $e=Nt;class Je extends ft{constructor(r,c,m,Z,le){super(c,le),this.text=c,this.value=r,this.index=m,this.dataItem=Z,this.reflow(new Ar)}visualContext(r){const c=super.visualContext(r);return c.value=this.value,c.dataItem=this.dataItem,c.format=this.options.format,c.culture=this.options.culture,c}click(r,c){r.trigger("axisLabelClick",{element:Nr(c),value:this.value,text:this.text,index:this.index,dataItem:this.dataItem,axis:this.parent.options})}rotate(){if(this.options.alignRotation!==R){const r=this.normalBox.toRect(),c=this.rotationTransform();this.box=en(r.bbox(c.matrix()))}else super.rotate();return this.box}rotationTransform(){const r=this.options,c=r.rotation;if(!c)return null;if(r.alignRotation===R)return super.rotationTransform();const m=Tt.Z().rotate(c).matrix(),Z=this.normalBox.toRect(),le=this.targetBox.toRect(),Re=r.rotationOrigin||z,gt=Re===z||Re===C?ge:Ce,hn=Re===z||Re===C?Ce:ge,di=Re===z||Re===O?le.origin:le.bottomRight(),no=Z.topLeft().transformCopy(m),Mo=Z.topRight().transformCopy(m),ir=Z.bottomRight().transformCopy(m),Wr=Z.bottomLeft().transformCopy(m),Qr=Ss.Z.fromPoints(no,Mo,ir,Wr),Bs={[hn]:le.origin[hn]-Qr.origin[hn]},oa=Math.abs(no[hn]+Bs[hn]-di[hn]),Ba=Math.abs(Mo[hn]+Bs[hn]-di[hn]);let tl,Dc;Gn(oa,p)===Gn(Ba,p)?(tl=no,Dc=Mo):Ba<oa?(tl=Mo,Dc=ir):(tl=no,Dc=Wr);const Ud=tl[gt]+(Dc[gt]-tl[gt])/2;return Bs[gt]=le.center()[gt]-Ud,Tt.Z().translate(Bs.x,Bs.y).rotate(c)}}ms(Je,{_autoReflow:!1});const Ve=Je;class At extends ur{constructor(r,c,m){super(c),this.fields=r,this.chartService=m,this.render()}hide(){this.options.visible=!1}show(){this.options.visible=!0}render(){const r=this.options;if(r.visible){const{label:c,icon:m}=r,Z=new Ar,le=()=>this;let hn,di,Re=m.size,gt=this.fields.text;if(Bi(c)&&c.visible){const Mo=Xt(c);Mo?gt=Mo(this.fields):c.format&&(gt=this.chartService.format.auto(c.format,gt)),c.color||(c.color=c.position===F?"#fff":m.background),this.label=new ft(gt,sn({},c)),this.label.aliasFor=le,c.position===F&&!Bi(Re)&&(m.type===x?Re=Math.max(this.label.box.width(),this.label.box.height()):(hn=this.label.box.width(),di=this.label.box.height()),Z.wrap(this.label.box))}m.width=hn||Re||7,m.height=di||Re||7;const no=new ra(sn({},m));no.aliasFor=le,this.marker=no,this.append(no),this.label&&this.append(this.label),no.reflow(new Ar),this.wrapperBox=Z.wrap(no.box)}}reflow(r){const{options:c,label:m,marker:Z,wrapperBox:le}=this,Re=r.center(),gt=c.line.length,hn=c.position;if(c.visible){let di,no,Mo;It(hn,[O,de])?hn===O?(Mo=le.alignTo(r,hn).translate(-gt,r.center().y-le.center().y),c.line.visible&&(di=[r.x1,Re.y],this.linePoints=[di,[Mo.x2,Re.y]],no=Mo.clone().wrapPoint(di))):(Mo=le.alignTo(r,hn).translate(gt,r.center().y-le.center().y),c.line.visible&&(di=[r.x2,Re.y],this.linePoints=[di,[Mo.x1,Re.y]],no=Mo.clone().wrapPoint(di))):hn===C?(Mo=le.alignTo(r,hn).translate(r.center().x-le.center().x,gt),c.line.visible&&(di=[Re.x,r.y2],this.linePoints=[di,[Re.x,Mo.y1]],no=Mo.clone().wrapPoint(di))):(Mo=le.alignTo(r,hn).translate(r.center().x-le.center().x,-gt),c.line.visible&&(di=[Re.x,r.y1],this.linePoints=[di,[Re.x,Mo.y2]],no=Mo.clone().wrapPoint(di))),Z&&Z.reflow(Mo),m&&(m.reflow(Mo),Z&&(c.label.position===re&&m.box.alignTo(Z.box,hn),m.reflow(m.box))),this.contentBox=Mo,this.targetBox=r,this.box=no||Mo}}createVisual(){super.createVisual(),this.visual.options.noclip=this.options.noclip,this.options.visible&&this.createLine()}renderVisual(){const r=this.options,c=r.visual;r.visible&&c?(this.visual=c(Object.assign(this.fields,{sender:this.getSender(),rect:this.targetBox.toRect(),options:{background:r.background,border:r.background,icon:r.icon,label:r.label,line:r.line,position:r.position,visible:r.visible},createVisual:()=>{this.createVisual(),this.renderChildren();const m=this.visual;return delete this.visual,m}})),this.addVisual()):super.renderVisual()}createLine(){const r=this.options.line;if(this.linePoints){const c=Js.y.fromPoints(this.linePoints,{stroke:{color:r.color,width:r.width,dashType:r.dashType}});Gt(c),this.visual.append(c)}}click(r,c){const m=this.eventArgs(c);r.trigger("noteClick",m)||c.preventDefault()}over(r,c){const m=this.eventArgs(c);r.trigger("noteHover",m)||c.preventDefault()}out(r,c){const m=this.eventArgs(c);r.trigger("noteLeave",m)}eventArgs(r){const c=this.options;return Object.assign(this.fields,{element:Nr(r),text:Bi(c.label)?c.label.text:"",visual:this.visual})}}ms(At,{icon:{visible:!0,type:x},label:{position:F,visible:!0,align:R,vAlign:R},line:{visible:!0},visible:!0,position:z,zIndex:2});const Rt=At;let $t={format:(ve,r)=>r,toString:ve=>ve,parseDate:ve=>new Date(ve),firstDay:()=>0};const Nn=class Xn{static register(r){$t=r}static get implementation(){return $t}},Ae=/\{(\d+)(:[^\}]+)?\}/g,Fi=class On{constructor(r,c={}){this._intlService=c.intlService,this.sender=c.sender||r,this.format=new class He{constructor(r){this._intlService=r}get intl(){return this._intlService||Nn.implementation}set intl(r){this._intlService=r}auto(r,...c){const m=this.intl;return $n(r)&&r.match(I)?m.format(r,...c):m.toString(c[0],r)}localeAuto(r,c,m){const Z=this.intl;let le;return le=$n(r)&&r.match(I)?r.replace(Ae,function(Re,gt,hn){let di=c[parseInt(gt,10)];return Z.toString(di,hn?hn.substring(1):"",m)}):Z.toString(c[0],r,m),le}}(c.intlService),this.chart=r,this.rtl=!!c.rtl}get intl(){return this._intlService||Nn.implementation}set intl(r){this._intlService=r,this.format.intl=r}notify(r,c){this.chart&&this.chart.trigger(r,c)}isPannable(r){const c=((this.chart||{}).options||{}).pannable;return c&&c.lock!==r}};let Ci;const Wn=class xi{static register(r){Ci=r}static create(r,c){if(Ci)return Ci.create(r,c)}};function Vt(ve,r){const{tickX:c,tickY:m,position:Z}=ve,le=new Js.y({stroke:{width:r.width,color:r.color}});return ve.vertical?le.moveTo(c,Z).lineTo(c+r.size,Z):le.moveTo(Z,m).lineTo(Z,m+r.size),Gt(le),le}function qt(ve,r){const{lineStart:c,lineEnd:m,position:Z}=ve,le=new Js.y({stroke:{width:r.width,color:r.color,dashType:r.dashType}});return ve.vertical?le.moveTo(c,Z).lineTo(m,Z):le.moveTo(Z,c).lineTo(Z,m),Gt(le),le}class bn extends ga{constructor(r,c=new Fi){super(r),this.chartService=c,this.options.visible||(this.options=sn({},this.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),this.options.minorTicks=sn({},{color:this.options.line.color,width:this.options.line.width,visible:this.options.minorTickType!==K},this.options.minorTicks,{size:this.options.minorTickSize,align:this.options.minorTickType}),this.options.majorTicks=sn({},{color:this.options.line.color,width:this.options.line.width,visible:this.options.majorTickType!==K},this.options.majorTicks,{size:this.options.majorTickSize,align:this.options.majorTickType}),this.initFields(),this.options._deferLabels||this.createLabels(),this.createTitle(),this.createNotes()}initFields(){}labelsRange(){return{min:this.options.labels.skip,max:this.labelsCount()}}normalizeLabelRotation(r){const c=r.rotation;fn(c)&&(r.alignRotation=c.align,r.rotation=c.angle)}createLabels(){const r=this.options,m=sn({},r.labels,{align:r.vertical?de:R,zIndex:r.zIndex}),Z=Math.max(1,m.step);if(this.clearLabels(),m.visible){this.normalizeLabelRotation(m),"auto"===m.rotation&&(m.rotation=0,r.autoRotateLabels=!0);const le=this.labelsRange();for(let Re=le.min;Re<le.max;Re+=Z){let hn=this.createAxisLabel(Re,m,{index:Re,count:le.max});hn&&(this.append(hn),this.labels.push(hn))}}}clearLabels(){this.children=Ki(this.children,r=>!(r instanceof Ve)),this.labels=[]}clearTitle(){this.title&&(this.children=Ki(this.children,r=>r!==this.title),this.title=void 0)}clear(){this.clearLabels(),this.clearTitle()}lineBox(){const{options:r,box:c}=this,Z=r.labels.mirror,le=Z?c.x1:c.x2,Re=Z?c.y2:c.y1,gt=r.line.width||0;return r.vertical?new Ar(le,c.y1,le,c.y2-gt):new Ar(c.x1,Re,c.x2-gt,Re)}createTitle(){const r=this.options,c=sn({rotation:r.vertical?-90:0,text:"",zIndex:1,visualSize:!0},r.title);if(c.visible&&c.text){const m=new ft(c.text,c);this.append(m),this.title=m}}createNotes(){const r=this.options,c=r.notes,m=c.data||[];this.notes=[];for(let Z=0;Z<m.length;Z++){const le=sn({},c,m[Z]);le.value=this.parseNoteValue(le.value);const Re=new Rt({value:le.value,text:le.label.text,dataItem:le},le,this.chartService);Re.options.visible&&(Bi(Re.options.position)?r.vertical&&!It(Re.options.position,[O,de])?Re.options.position=r.reverse?O:de:!r.vertical&&!It(Re.options.position,[z,C])&&(Re.options.position=r.reverse?C:z):Re.options.position=r.vertical?r.reverse?O:de:r.reverse?C:z,this.append(Re),this.notes.push(Re))}}parseNoteValue(r){return r}renderVisual(){super.renderVisual(),this.createPlotBands()}createVisual(){super.createVisual(),this.createBackground(),this.createLine()}gridLinesVisual(){let r=this._gridLines;return r||(r=this._gridLines=new ht.Z({zIndex:-2}),this.appendVisual(this._gridLines)),r}createTicks(r){const c=this.options,m=this.lineBox(),Z=c.labels.mirror,le=c.majorTicks.visible?c.majorUnit:0,Re={vertical:c.vertical};function gt(hn,di,no){const Mo=hn.length,ir=Math.max(1,di.step);if(di.visible)for(let Wr=di.skip;Wr<Mo;Wr+=ir)Bi(no)&&Wr%no==0||(Re.tickX=Z?m.x2:m.x2-di.size,Re.tickY=Z?m.y1-di.size:m.y1,Re.position=hn[Wr],r.append(Vt(Re,di)))}gt(this.getMajorTickPositions(),c.majorTicks),gt(this.getMinorTickPositions(),c.minorTicks,le/c.minorUnit)}createLine(){const r=this.options,c=r.line,m=this.lineBox();if(c.width>0&&c.visible){const Z=new Js.y({stroke:{width:c.width,color:c.color,dashType:c.dashType}});Z.moveTo(m.x1,m.y1).lineTo(m.x2,m.y2),r._alignLines&&Gt(Z);const le=this._lineGroup=new ht.Z;le.append(Z),this.visual.append(le),this.createTicks(le)}}getActualTickSize(){const r=this.options;let c=0;return r.majorTicks.visible&&r.minorTicks.visible?c=Math.max(r.majorTicks.size,r.minorTicks.size):r.majorTicks.visible?c=r.majorTicks.size:r.minorTicks.visible&&(c=r.minorTicks.size),c}createBackground(){const{options:r,box:c}=this,m=r.background;m&&(this._backgroundPath=Js.y.fromRect(c.toRect(),{fill:{color:m},stroke:null}),this.visual.append(this._backgroundPath))}createPlotBands(){const r=this.options,c=r.plotBands||[],m=r.vertical,Z=this.plotArea;if(0===c.length)return;const le=this._plotbandGroup=new ht.Z({zIndex:-1}),Re=Ki(this.pane.axes,gt=>gt.options.vertical!==this.options.vertical)[0];for(let gt=0;gt<c.length;gt++){let di,no,ir,hn=c[gt],Mo=hn.label;if(m?(di=(Re||Z.axisX).lineBox(),no=this.getSlot(hn.from,hn.to,!0)):(di=this.getSlot(hn.from,hn.to,!0),no=(Re||Z.axisY).lineBox()),Mo&&(Mo.vAlign=Mo.position||O,ir=this.createPlotBandLabel(Mo,hn,new Ar(di.x1,no.y1,di.x2,no.y2))),0!==di.width()&&0!==no.height()){const Wr=new Ss.Z([di.x1,no.y1],[di.width(),no.height()]),Qr=Js.y.fromRect(Wr,{fill:{color:hn.color,opacity:hn.opacity},stroke:null});le.append(Qr),ir&&le.append(ir)}}this.appendVisual(le)}createPlotBandLabel(r,c,m){if(!1===r.visible)return null;let le,Z=r.text;if(Bi(r)&&r.visible){const Re=Xt(r);Re?Z=Re({text:Z,item:c}):r.format&&(Z=this.chartService.format.auto(r.format,Z)),r.color||(r.color=this.options.labels.color)}return le=new ft(Z,r),le.reflow(m),le.renderVisual(),le.visual}createGridLines(r){const c=this.options,{minorGridLines:m,majorGridLines:Z,minorUnit:le,vertical:Re}=c,gt=r.options.line.visible,hn=Z.visible?c.majorUnit:0,di=r.lineBox(),no=di[Re?"y1":"x1"],Mo={lineStart:di[Re?"x1":"y1"],lineEnd:di[Re?"x2":"y2"],vertical:Re},ir=[],Wr=this.gridLinesVisual();function Qr(Bs,oa,Ba){const tl=Bs.length,Dc=Math.max(1,oa.step);if(oa.visible)for(let Ud=oa.skip;Ud<tl;Ud+=Dc){let hu=Gn(Bs[Ud]);It(hu,ir)||Ud%Ba!=0&&(!gt||no!==hu)&&(Mo.position=hu,Wr.append(qt(Mo,oa)),ir.push(hu))}}return Qr(this.getMajorTickPositions(),Z),Qr(this.getMinorTickPositions(),m,hn/le),Wr.children}reflow(r){const{options:c,labels:m,title:Z}=this,le=c.vertical,Re=m.length,gt=le?_e:L,hn=Z?Z.box[gt]():0,di=this.getActualTickSize()+c.margin+hn,Mo=((this.getRoot()||{}).box||r)[gt]();let ir=0;for(let Wr=0;Wr<Re;Wr++){let Qr=m[Wr].box[gt]();Qr+di<=Mo&&(ir=Math.max(ir,Qr))}this.box=le?new Ar(r.x1,r.y1,r.x1+ir+di,r.y2):new Ar(r.x1,r.y1,r.x2,r.y1+ir+di),this.arrangeTitle(),this.arrangeLabels(),this.arrangeNotes()}getLabelsTickPositions(){return this.getMajorTickPositions()}labelTickIndex(r){return r.index}arrangeLabels(){const{options:r,labels:c}=this,m=this.labelsBetweenTicks(),Z=r.vertical,le=r.labels.mirror,Re=this.getLabelsTickPositions();for(let gt=0;gt<c.length;gt++){const hn=c[gt],di=this.labelTickIndex(hn),no=Z?hn.box.height():hn.box.width(),Mo=Re[di],ir=Re[di+1];let Wr,Qr;Z?(Wr=m?Mo+(ir-Mo)/2-no/2:Mo-no/2,Qr=Wr):m?(Wr=Mo,Qr=ir):(Wr=Mo-no/2,Qr=Wr+no),this.positionLabel(hn,le,Wr,Qr)}}positionLabel(r,c,m,Z=m){const le=this.options,Re=le.vertical,gt=this.lineBox(),hn=this.getActualTickSize()+le.margin;let di;if(Re){let no=gt.x2;c?(no+=hn,r.options.rotationOrigin=O):(no-=hn+r.box.width(),r.options.rotationOrigin=de),di=r.box.move(no,m)}else{let no=gt.y1;c?(no-=hn+r.box.height(),r.options.rotationOrigin=C):(no+=hn,r.options.rotationOrigin=z),di=new Ar(m,no,Z,no+r.box.height())}r.reflow(di)}autoRotateLabelAngle(r,c){return r.width()<c?0:r.height()>c?-90:-45}autoRotateLabels(){if(!this.options.autoRotateLabels||this.options.vertical)return!1;const r=this.getMajorTickPositions(),c=this.labels,m=Math.min(c.length,r.length-1);let Z=0;for(let le=0;le<m;le++){const Re=Math.abs(r[le+1]-r[le]),hn=this.autoRotateLabelAngle(c[le].box,Re);if(0!==hn&&(Z=hn),-90===Z)break}if(0!==Z){for(let le=0;le<c.length;le++)c[le].options.rotation=Z,c[le].reflow(new Ar);return!0}}arrangeTitle(){const{options:r,title:c}=this,m=r.labels.mirror;c&&(r.vertical?(c.options.align=m?de:O,c.options.vAlign=c.options.position):(c.options.align=c.options.position,c.options.vAlign=m?z:C),c.reflow(this.box))}arrangeNotes(){for(let r=0;r<this.notes.length;r++){const c=this.notes[r],m=c.options.value;let Z;Bi(m)?(this.shouldRenderNote(m)?c.show():c.hide(),Z=this.noteSlot(m)):c.hide(),c.reflow(Z||this.lineBox())}}noteSlot(r){return this.getSlot(r)}alignTo(r){const c=r.lineBox(),m=this.options.vertical,Z=m?Ce:ge;this.box.snapTo(c,Z),m?this.box.shrink(0,this.lineBox().height()-c.height()):this.box.shrink(this.lineBox().width()-c.width(),0),this.box[Z+1]-=this.lineBox()[Z+1]-c[Z+1],this.box[Z+2]-=this.lineBox()[Z+2]-c[Z+2]}axisLabelText(r,c,m){let Z;const le=Xt(c),Re=()=>c.format?this.chartService.format.localeAuto(c.format,[r],c.culture):r;return Z=le?le(Object.assign({},m,{get text(){return Re()},value:r,format:c.format,culture:c.culture})):Re(),Z}slot(r,c,m){const Z=this.getSlot(r,c,m);if(Z)return Z.toRect()}contentBox(){const r=this.box.clone(),c=this.labels;if(c.length){const m=this.options.vertical?Ce:ge;if(this.chartService.isPannable(m)){const Z=this.maxLabelOffset();r[m+1]-=Z.start,r[m+2]+=Z.end}else{c[0].options.visible&&r.wrap(c[0].box);const Z=c[c.length-1];Z.options.visible&&r.wrap(Z.box)}}return r}maxLabelOffset(){const{vertical:r,reverse:c}=this.options,m=this.labelsBetweenTicks(),Z=this.getLabelsTickPositions(),le=r?Ce:ge,Re=this.labels,gt=c?1:0,hn=c?0:1;let di=0,no=0;for(let Mo=0;Mo<Re.length;Mo++){const ir=Re[Mo],Wr=this.labelTickIndex(ir);let Qr,Bs;m?(Qr=Z[Wr+gt],Bs=Z[Wr+hn]):Qr=Bs=Z[Wr],di=Math.max(di,Qr-ir.box[le+1]),no=Math.max(no,ir.box[le+2]-Bs)}return{start:di,end:no}}limitRange(r,c,m,Z,le){const Re=this.options;if(r<m&&le<0&&(!Bi(Re.min)||Re.min<=m)||Z<c&&le>0&&(!Bi(Re.max)||Z<=Re.max))return null;if(c<m&&le>0||Z<r&&le<0)return{min:r,max:c};const gt=c-r;let hn=r,di=c;return r<m&&le<0?(hn=Fo(r,m,Z),di=Fo(r+gt,m+gt,Z)):c>Z&&le>0&&(di=Fo(c,m,Z),hn=Fo(c-gt,m,Z-gt)),{min:hn,max:di}}valueRange(){return{min:this.seriesMin,max:this.seriesMax}}lineDir(){const{vertical:r,reverse:c}=this.options;return(r?-1:1)*(c?-1:1)}lineInfo(){const{vertical:r}=this.options,c=this.lineBox(),m=r?c.height():c.width(),Z=r?Ce:ge,le=this.lineDir(),gt=Z+(1===le?1:2).toString();return{axis:Z,axisOrigin:gt,axisDir:le,lineBox:c,lineSize:m,lineStart:c[gt]}}pointOffset(r){const{axis:c,axisDir:m,axisOrigin:Z,lineBox:le,lineSize:Re}=this.lineInfo();return(m>0?r[c]-le[Z]:le[Z]-r[c])/Re}scaleToDelta(r,c){const Z=Fo(r,-.999,.999);let le;return le=Z>0?c*Math.min(1,Z):c-c/(1+Z),le}labelsBetweenTicks(){return!this.options.justified}prepareUserOptions(){}}ms(bn,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:_,visible:!0},title:{visible:!0,position:R},majorTicks:{align:re,size:4,skip:0,step:1},minorTicks:{align:re,size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:re,minorTickType:K,majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:_,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1});const ii=bn,Vi="milliseconds",Jn="seconds",zt="minutes",mn="hours",Qn="days",ci="weeks",Oi="months",Ai="years",qn=1e3,Ni=60*qn,Ue=60*Ni,Ye=24*Ue,Me=7*Ye,pe=31*Ye,lt=365*Ye,yt={years:lt,months:pe,weeks:Me,days:Ye,hours:Ue,minutes:Ni,seconds:qn,milliseconds:1};function on(ve,r){return ve.getTime()-r-(ve.getTimezoneOffset()-r.getTimezoneOffset())*Ni}function zi(ve,r){return new Date(ve.getTime()+r)}function Kn(ve){let r;return ve instanceof Date?r=ve:ve&&(r=new Date(ve)),r}function po(ve,r){return 0===r&&23===ve.getHours()&&(ve.setHours(ve.getHours()+2),!0)}function ro(ve,r,c,m){let Z=ve;if(ve){let le=Kn(ve);const Re=le.getHours();c===Ai?(Z=new Date(le.getFullYear()+r,0,1),po(Z,0)):c===Oi?(Z=new Date(le.getFullYear(),le.getMonth()+r,1),po(Z,Re)):c===ci?(Z=ro(function ho(ve,r=0){let c=0,m=ve.getDay();if(!isNaN(m))for(;m!==r;)0===m?m=6:m--,c++;return zi(ve,-c*Ye)}(le,m),7*r,Qn),po(Z,Re)):c===Qn?(Z=new Date(le.getFullYear(),le.getMonth(),le.getDate()+r),po(Z,Re)):c===mn?Z=function $i(ve,r){const c=new Date(ve);c.setMinutes(0,0,0);const m=(ve.getTimezoneOffset()-c.getTimezoneOffset())*Ni;return zi(c,m+r*Ue)}(le,r):c===zt?(Z=zi(le,r*Ni),Z.getSeconds()>0&&Z.setSeconds(0)):c===Jn?Z=zi(le,r*qn):c===Vi&&(Z=zi(le,r)),c!==Vi&&Z.getMilliseconds()>0&&Z.setMilliseconds(0)}return Z}function wo(ve,r,c){return ro(Kn(ve),0,r,c)}function io(ve,r,c){const m=Kn(ve);return m&&wo(m,r,c).getTime()===m.getTime()?m:ro(m,1,r,c)}function Wi(ve,r){return ve&&r?ve.getTime()-r.getTime():-1}function fo(ve,r){return ve.getTime()-r}function cr(ve){if(De(ve)){let r=[];for(let c=0;c<ve.length;c++)r.push(cr(ve[c]));return r}if(ve)return Kn(ve).getTime()}function Fr(ve,r){return ve&&r?cr(ve)===cr(r):ve===r}function jr(ve,r,c){return on(ve,r)/yt[c]}function fs(ve,r,c,m){const Z=Kn(ve),le=Kn(r);let Re;return Re=c===Oi?Z.getMonth()-le.getMonth()+12*(Z.getFullYear()-le.getFullYear())+jr(Z,new Date(Z.getFullYear(),Z.getMonth()),Qn)/new Date(Z.getFullYear(),Z.getMonth()+1,0).getDate():c===Ai?Z.getFullYear()-le.getFullYear()+fs(Z,new Date(Z.getFullYear(),0),Oi,1)/12:c===Qn||c===ci?jr(Z,le,c):fo(Z,r)/yt[c],Re/m}function Ms(ve,r,c){let m;return m=c===Ai?r.getFullYear()-ve.getFullYear():c===Oi?12*Ms(ve,r,Ai)+r.getMonth()-ve.getMonth():c===Qn?Math.floor(fo(r,ve)/Ye):Math.floor(fo(r,ve)/yt[c]),m}function ks(ve,r){let c;return c=$n(r)&&ve.parseDate(r)||Kn(r),c}function ts(ve,r){if(De(r)){const c=[];for(let m=0;m<r.length;m++)c.push(ks(ve,r[m]));return c}return ks(ve,r)}function na(ve,r){return An(ve.weekStartDay)?ve.weekStartDay:r&&r.firstDay?r.firstDay():0}class cs extends ii{initFields(){this._ticks={}}categoriesHash(){return""}clone(){const r=new cs(Object.assign({},this.options,{categories:this.options.srcCategories}),this.chartService);return r.createLabels(),r}initUserOptions(r){const c=r.categories||[],m=Bi(r.min),Z=Bi(r.max);if(r.srcCategories=r.categories=c,(m||Z)&&c.length){const le=m?Math.floor(r.min):0;let Re;Re=Z?r.justified?Math.floor(r.max)+1:Math.ceil(r.max):c.length,r.categories=r.categories.slice(le,Re)}return r}rangeIndices(){const r=this.options,c=r.categories.length||1,m=An(r.min)?r.min%1:0;let Z;return Z=An(r.max)&&r.max%1!=0&&r.max<this.totalRange().max?c-(1-r.max%1):c-(r.justified?1:0),{min:m,max:Z}}range(){const r=this.options;return{min:An(r.min)?r.min:0,max:An(r.max)?r.max:this.totalRange().max}}roundedRange(){return this.range()}totalRange(){const r=this.options;return{min:0,max:Math.max(this._seriesMax||0,r.srcCategories.length)-(r.justified?1:0)}}scaleOptions(){const{min:r,max:c}=this.rangeIndices(),m=this.lineBox();return{scale:(this.options.vertical?m.height():m.width())/(c-r||1)*(this.options.reverse?-1:1),box:m,min:r,max:c}}arrangeLabels(){super.arrangeLabels(),this.hideOutOfRangeLabels()}hideOutOfRangeLabels(){const{box:r,labels:c}=this;if(c.length>0){const m=this.options.vertical?Ce:ge,Z=r[m+1],le=r[m+2],Re=c[0],gt=ji(c);(Re.box[m+1]>le||Re.box[m+2]<Z)&&(Re.options.visible=!1),(gt.box[m+1]>le||gt.box[m+2]<Z)&&(gt.options.visible=!1)}}getMajorTickPositions(){return this.getTicks().majorTicks}getMinorTickPositions(){return this.getTicks().minorTicks}getLabelsTickPositions(){return this.getTicks().labelTicks}tickIndices(r){const{min:c,max:m}=this.rangeIndices(),Z=Math.ceil(m);let le=Math.floor(c);const Re=[];for(;le<=Z;)Re.push(le),le+=r;return Re}getTickPositions(r){const{vertical:c,reverse:m}=this.options,{scale:Z,box:le,min:Re}=this.scaleOptions(),gt=le[(c?Ce:ge)+(m?2:1)],hn=this.tickIndices(r),di=[];for(let no=0;no<hn.length;no++)di.push(gt+Gn(Z*(hn[no]-Re),3));return di}getTicks(){const r=this.options,c=this._ticks,m=this.rangeIndices(),Z=this.lineBox(),le=Z.getHash()+m.min+","+m.max+r.reverse+r.justified;if(c._hash!==le){const Re=r.minorTicks.visible||r.minorGridLines.visible;c._hash=le,c.labelTicks=this.getTickPositions(1),c.majorTicks=this.filterOutOfRangePositions(c.labelTicks,Z),c.minorTicks=Re?this.filterOutOfRangePositions(this.getTickPositions(.5),Z):[]}return c}filterOutOfRangePositions(r,c){if(!r.length)return r;const m=this.options.vertical?Ce:ge,Z=hn=>c[m+1]<=hn&&hn<=c[m+2],le=r.length-1;let Re=0;for(;!Z(r[Re])&&Re<=le;)Re++;let gt=le;for(;!Z(r[gt])&&gt>=0;)gt--;return r.slice(Re,gt+1)}lineInfo(){const{vertical:r,reverse:c}=this.options,m=this.lineBox(),Z=r?m.height():m.width(),le=r?Ce:ge,Re=c?-1:1,hn=le+(1===Re?1:2).toString();return{axis:le,axisOrigin:hn,axisDir:Re,lineBox:m,lineSize:Z,lineStart:m[hn]}}lineDir(){const{reverse:r}=this.options;return r?-1:1}getSlot(r,c,m){const Z=this.options,{reverse:le,justified:Re}=Z,{scale:gt,box:hn,min:di}=this.scaleOptions(),{axis:no,lineStart:Mo}=this.lineInfo(),ir=hn.clone(),Wr=!Bi(c),Qr=wr(r,0);let Bs=wr(c,Qr);Bs=Math.max(Bs-1,Qr),Bs=Math.max(Qr,Bs);let oa=Mo+(Qr-di)*gt,Ba=Mo+(Bs+1-di)*gt;return Wr&&Re&&(Ba=oa),m&&(oa=Fo(oa,hn[no+1],hn[no+2]),Ba=Fo(Ba,hn[no+1],hn[no+2])),ir[no+1]=le?Ba:oa,ir[no+2]=le?oa:Ba,ir}limitSlot(r){const m=this.options.vertical?Ce:ge,Z=this.lineBox(),le=r.clone();return le[m+1]=Fo(r[m+1],Z[m+1],Z[m+2]),le[m+2]=Fo(r[m+2],Z[m+1],Z[m+2]),le}slot(r,c,m){const Z=Math.floor(this.options.min||0);let le=r,Re=c;return"string"==typeof le?le=this.categoryIndex(le):An(le)&&(le-=Z),"string"==typeof Re?Re=this.categoryIndex(Re):An(Re)&&(Re-=Z),super.slot(le,Re,m)}pointCategoryIndex(r){const{reverse:c,justified:m,vertical:Z}=this.options,le=Z?Ce:ge,{scale:Re,box:gt,min:hn,max:di}=this.scaleOptions(),Mo=gt[le+1],Wr=r[le];if(Wr<Mo||Wr>gt[le+2])return null;let Qr=(c?di:hn)+(Wr-Mo)/Re;const Bs=Qr%1;return m?Qr=Math.round(Qr):0===Bs&&Qr>0&&Qr--,Math.floor(Qr)}getCategory(r){const c=this.pointCategoryIndex(r);return null===c?null:this.options.categories[c]}categoryIndex(r){return this.totalIndex(r)-Math.floor(this.options.min||0)}categoryAt(r,c){const m=this.options;return(c?m.srcCategories:m.categories)[r]}categoriesCount(){return(this.options.categories||[]).length}translateRange(r){const c=this.options,m=this.lineBox(),Z=c.vertical?m.height():m.width(),le=c.categories.length,gt=Gn(r/(Z/le),p);return{min:gt,max:le+gt}}scaleRange(r,c){const m=Math.abs(this.pointOffset(c)),Z=this.limitedRangeIndices(),Re=this.scaleToDelta(r,Z.max-Z.min),di=Z.min+m*Re;let no=Z.max-(1-m)*Re;return no-di<.1&&(no=di+.1),{min:di,max:no}}zoomRange(r,c){const{min:m,max:Z}=this.totalRange(),le=this.scaleRange(r,c);return{min:Fo(le.min,m,Z),max:Fo(le.max,m,Z)}}labelsCount(){const r=this.labelsRange();return r.max-r.min}labelsRange(){const r=this.options,{justified:c,labels:m}=r;let{min:Z,max:le}=this.limitedRangeIndices(!0);const Re=Math.floor(Z);let gt;return c?(Z=Math.ceil(Z),le=Math.floor(le)):(Z=Math.floor(Z),le=Math.ceil(le)),gt=Z>m.skip?m.skip+m.step*Math.ceil((Z-m.skip)/m.step):m.skip,{min:gt-Re,max:(r.categories.length?le+(c?1:0):0)-Re}}createAxisLabel(r,c,m){const Z=this.options,le=Z.dataItems?Z.dataItems[r]:null,Re=wr(Z.categories[r],"");m.dataItem=le;const gt=this.axisLabelText(Re,c,m);return new Ve(Re,gt,r,le,c)}shouldRenderNote(r){const c=this.limitedRangeIndices();return Math.floor(c.min)<=r&&r<=Math.ceil(c.max)}noteSlot(r){const m=r-Math.floor(this.options.min||0);return this.getSlot(m)}arrangeNotes(){super.arrangeNotes(),this.hideOutOfRangeNotes()}hideOutOfRangeNotes(){const{notes:r,box:c}=this;if(r&&r.length){const m=this.options.vertical?Ce:ge,Z=c[m+1],le=c[m+2];for(let Re=0;Re<r.length;Re++){const gt=r[Re];gt.box&&(le<gt.box[m+1]||gt.box[m+2]<Z)&&gt.hide()}}}pan(r){const c=this.limitedRangeIndices(!0),{scale:m}=this.scaleOptions(),Z=Gn(r/m,p),le=this.totalRange();return this.limitRange(c.min+Z,c.max+Z,0,le.max,Z)}pointsRange(r,c){const{reverse:m,vertical:Z}=this.options,le=Z?Ce:ge,Re=this.limitedRangeIndices(!0),{scale:gt,box:hn}=this.scaleOptions(),di=hn[le+(m?2:1)],ir=Re.min+(r[le]-di)/gt,Wr=Re.min+(c[le]-di)/gt,Qr=Math.min(ir,Wr),Bs=Math.max(ir,Wr);if(Bs-Qr>=.01)return{min:Qr,max:Bs}}valueRange(){return this.range()}totalIndex(r){const c=this.options;return this._categoriesMap?this._categoriesMap.get(r):function Ws(ve,r){if(ve instanceof Date){const c=r.length;for(let m=0;m<c;m++)if(Fr(r[m],ve))return m;return-1}return r.indexOf(ve)}(r,c.srcCategories)}currentRangeIndices(){const r=this.options;let m,c=0;return An(r.min)&&(c=Math.floor(r.min)),m=An(r.max)?r.justified?Math.floor(r.max):Math.ceil(r.max)-1:this.totalCount()-1,{min:c,max:m}}limitedRangeIndices(r){const c=this.options;let Z,m=An(c.min)?c.min:0;if(Z=An(c.max)?c.max:An(c.min)?m+c.categories.length:this.totalRange().max||1,r){const le=this.totalRange();m=Fo(m,0,le.max),Z=Fo(Z,0,le.max)}return{min:m,max:Z}}totalRangeIndices(){return{min:0,max:this.totalRange().max||1}}mapCategories(){if(!this._categoriesMap){const r=this._categoriesMap=new oi,c=this.options.srcCategories;for(let m=0;m<c.length;m++)r.set(c[m],m)}}totalCount(){return Math.max(this.options.srcCategories.length,this._seriesMax||0)}}ms(cs,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:_},labels:{zIndex:1},justified:!1,_deferLabels:!0});const Ps=cs,vo={milliseconds:"HH:mm:ss.fff",seconds:"HH:mm:ss",minutes:"HH:mm",hours:"HH:mm",days:"M/d",weeks:"M/d",months:"MMM 'yy",years:"yyyy"},Ro=[Vi,Jn,zt,mn,Qn,ci,Oi,Ai],Sr="fit";function rs(ve,r){r&&(ve._range=void 0);let c=ve._range;return c||(c=ve._range=pr(ve),c.min=Kn(c.min),c.max=Kn(c.max)),c}class Os{constructor(r){this.options=r}displayIndices(){return{min:0,max:1}}displayRange(){return{}}total(){return{}}valueRange(){return{}}valueIndex(){return-1}values(){return[]}totalIndex(){return-1}valuesCount(){return 0}totalCount(){return 0}dateAt(){return null}}class Ys{constructor(r,c,m){this.options=m,m.baseUnitStep=m.baseUnitStep||1;const{roundToBaseUnit:Z,justified:le}=m;this.start=ro(r,0,m.baseUnit,m.weekStartDay);const Re=this.roundToTotalStep(c),gt=!le&&Fr(c,Re)&&!m.justifyEnd;this.end=this.roundToTotalStep(c,!le,gt?1:0);const hn=m.min||r;this.valueStart=this.roundToTotalStep(hn),this.displayStart=Z?this.valueStart:hn;const di=m.max;if(di){const no=!le&&Fr(di,this.roundToTotalStep(di))?-1:0;this.valueEnd=this.roundToTotalStep(di,!1,no),this.displayEnd=Z?this.roundToTotalStep(di,!le):m.max}else this.valueEnd=Re,this.displayEnd=Z||gt?this.end:c;this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))}displayRange(){return{min:this.displayStart,max:this.displayEnd}}displayIndices(){if(!this._indices){const r=this.options,{baseUnit:c,baseUnitStep:m}=r,Z=fs(this.displayStart,this.valueStart,c,m),le=fs(this.displayEnd,this.valueStart,c,m);this._indices={min:Z,max:le}}return this._indices}total(){return{min:this.start,max:this.end}}totalCount(){return this.totalIndex(this.end)+(this.options.justified?1:0)}valueRange(){return{min:this.valueStart,max:this.valueEnd}}valueIndex(r){const c=this.options;return Math.floor(fs(r,this.valueStart,c.baseUnit,c.baseUnitStep))}totalIndex(r){const c=this.options;return Math.floor(fs(r,this.start,c.baseUnit,c.baseUnitStep))}dateIndex(r){const c=this.options;return fs(r,this.valueStart,c.baseUnit,c.baseUnitStep)}valuesCount(){return this.valueIndex(this.valueEnd)+1}values(){let r=this._values;if(!r){const c=this.options,m=this.valueRange();this._values=r=[];for(let Z=m.min;Z<=m.max;)r.push(Z),Z=ro(Z,c.baseUnitStep,c.baseUnit,c.weekStartDay)}return r}dateAt(r,c){const m=this.options;return ro(c?this.start:this.valueStart,m.baseUnitStep*r,m.baseUnit,m.weekStartDay)}roundToTotalStep(r,c,m){const{baseUnit:Z,baseUnitStep:le,weekStartDay:Re}=this.options,gt=this.start,hn=fs(r,gt,Z,le);let di=c?Math.ceil(hn):Math.floor(hn);return m&&(di+=m),ro(gt,di*le,Z,Re)}}function la(ve,r,c){const m=rs(ve.categories),Z=(ve.max||m.max)-(ve.min||m.min),{autoBaseUnitSteps:le,maxDateGroups:Re}=ve,gt=ve.baseUnit===Sr;let ir,Wr,Qr,hn=r?Ro.indexOf(r):0,di=gt?Ro[hn++]:ve.baseUnit,no=Z/yt[di],Mo=no;for(;!Wr||no>=Re;){ir=ir||le[di].slice(0);do{Qr=ir.shift()}while(Qr&&r===di&&Qr<c);if(Qr)Wr=Qr,no=Mo/Wr;else{if(di===ji(Ro)){Wr=Math.ceil(Mo/Re);break}if(!gt){no>Re&&(Wr=Math.ceil(Mo/Re));break}di=Ro[hn++]||ji(Ro),Mo=Z/yt[di],ir=null}}ve.baseUnitStep=Wr,ve.baseUnit=di}class nl extends Ps{clone(){const r=new nl(Object.assign({},this.options),this.chartService);return r.createLabels(),r}categoriesHash(){const r=this.dataRange.total().min;return this.options.baseUnit+this.options.baseUnitStep+r}initUserOptions(r){return r}initFields(){super.initFields();const r=this.chartService,c=r.intl;let m=this.options,Z=m.categories||[];if(Z._parsed||(Z=ts(c,Z),Z._parsed=!0),m=sn({roundToBaseUnit:!0},m,{categories:Z,min:ks(c,m.min),max:ks(c,m.max),weekStartDay:na(m,c)}),r.panning&&r.isPannable(m.vertical?Ce:ge)&&(m.roundToBaseUnit=!1),m.userSetBaseUnit=m.userSetBaseUnit||m.baseUnit,m.userSetBaseUnitStep=m.userSetBaseUnitStep||m.baseUnitStep,this.options=m,m.srcCategories=Z,Z.length>0){const le=rs(Z,!0),Re=m.maxDivisions,gt=function Ka(ve){const r=(ve.baseUnit||"").toLowerCase();return r!==Sr&&!It(r,Ro)&&function Da(ve){const r=ve.categories,c=Bi(r)?r.length:0;let Z,le,m=U;for(let Re=0;Re<c;Re++){const gt=r[Re];if(gt&&Z){const hn=on(gt,Z);hn>0&&(m=Math.min(m,hn),le=m>=lt?Ai:m>=pe-3*Ye?Oi:m>=Me?ci:m>=Ye?Qn:m>=Ue?mn:m>=Ni?zt:Jn)}Z=gt}ve.baseUnit=le||Qn}(ve),(r===Sr||"auto"===ve.baseUnitStep)&&la(ve),ve}(m),hn=m._forecast;if(hn&&(hn.before>0&&(le.min=ro(le.min,-hn.before,gt.baseUnit,gt.weekStartDay)),hn.after>0&&(le.max=ro(le.max,hn.after,gt.baseUnit,gt.weekStartDay))),this.dataRange=new Ys(le.min,le.max,gt),Re){const di=this.dataRange.displayRange(),no=Object.assign({},m,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:di.min,max:di.max,maxDateGroups:Re}),Mo=this.dataRange.options;la(no,Mo.baseUnit,Mo.baseUnitStep),this.divisionRange=new Ys(le.min,le.max,no)}else this.divisionRange=this.dataRange}else m.baseUnit=m.baseUnit||Qn,this.dataRange=this.divisionRange=new Os(m);this.rangeLabels=[]}tickIndices(r){const{dataRange:c,divisionRange:m}=this,Z=m.valuesCount();if(!this.options.maxDivisions||!Z)return super.tickIndices(r);const le=[];let Re=m.values(),gt=0;this.options.justified||(Re=Re.concat(m.dateAt(Z)),gt=.5);for(let hn=0;hn<Re.length;hn++)if(le.push(c.dateIndex(Re[hn])+gt),1!==r&&hn>=1){const di=le.length-1;le.splice(hn,0,le[di-1]+(le[di]-le[di-1])*r)}return le}shouldRenderNote(r){const c=this.range(),m=this.options.categories||[];return Wi(r,c.min)>=0&&Wi(r,c.max)<=0&&m.length}parseNoteValue(r){return ks(this.chartService.intl,r)}noteSlot(r){return this.getSlot(r)}translateRange(r){const c=this.options,{baseUnit:m,weekStartDay:Z,vertical:le}=c,Re=this.lineBox(),gt=le?Re.height():Re.width();let hn=this.range();const no=Gn(r/(gt/(hn.max-hn.min)),p);if(hn.min&&hn.max){const Mo=zi(c.min||hn.min,no),ir=zi(c.max||hn.max,no);hn={min:ro(Mo,0,m,Z),max:ro(ir,0,m,Z)}}return hn}labelsRange(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}}pan(r){if(this.isEmpty())return null;const c=this.options,m=this.lineBox(),Z=c.vertical?m.height():m.width(),{min:le,max:Re}=this.dataRange.displayRange(),gt=this.dataRange.total(),di=Gn(r/(Z/(Re-le)),p)*(c.reverse?-1:1),no=zi(le,di),Mo=zi(Re,di),ir=this.limitRange(cr(no),cr(Mo),cr(gt.min),cr(gt.max),di);return ir?(ir.min=Kn(ir.min),ir.max=Kn(ir.max),ir.baseUnit=c.baseUnit,ir.baseUnitStep=c.baseUnitStep||1,ir.userSetBaseUnit=c.userSetBaseUnit,ir.userSetBaseUnitStep=c.userSetBaseUnitStep,ir):void 0}pointsRange(r,c){if(this.isEmpty())return null;const m=super.pointsRange(r,c),Z=this.dataRange.displayRange(),le=this.dataRange.displayIndices(),Re=fo(Z.max,Z.min)/(le.max-le.min),gt=this.options;return{min:zi(Z.min,m.min*Re),max:zi(Z.min,m.max*Re),baseUnit:gt.userSetBaseUnit||gt.baseUnit,baseUnitStep:gt.userSetBaseUnitStep||gt.baseUnitStep}}scaleRange(r,c){if(this.isEmpty())return{};const m=this.options,Z=m.userSetBaseUnit===Sr,le=this.dataRange.total(),{min:Re,max:gt}=this.dataRange.displayRange(),hn=Math.abs(this.pointOffset(c)),no=this.scaleToDelta(r,gt-Re),Mo=Math.round(hn*no),ir=Math.round((1-hn)*no);let{baseUnit:Wr}=this.dataRange.options,Qr=new Date(Re.getTime()+Mo),Bs=new Date(gt.getTime()-ir);if(Z){const{autoBaseUnitSteps:oa,maxDateGroups:Ba}=m,tl=ji(oa[Wr])*Ba*yt[Wr],Dc=fo(gt,Re),Ud=fo(Bs,Qr);let qf,Jp,hu=Ro.indexOf(Wr);if(Ud<yt[Wr]&&Wr!==Vi)Wr=Ro[hu-1],qf=ji(oa[Wr]),Jp=(Dc-(Ba-1)*qf*yt[Wr])/2,Qr=zi(Re,Jp),Bs=zi(gt,-Jp);else if(Ud>tl&&Wr!==Ai){let Im=0;do{hu++,Wr=Ro[hu],Im=0,Jp=2*yt[Wr];do{qf=oa[Wr][Im],Im++}while(Im<oa[Wr].length&&Jp*qf<Dc)}while(Wr!==Ai&&Jp*qf<Dc);Jp=(Jp*qf-Dc)/2,Jp>0&&(Qr=zi(Re,-Jp),Bs=zi(gt,Jp),Qr=zi(Qr,Fo(Bs,le.min,le.max)-Bs),Bs=zi(Bs,Fo(Qr,le.min,le.max)-Qr))}}return Qr&&Bs&&fo(Bs,Qr)>0?{min:Qr,max:Bs,baseUnit:m.userSetBaseUnit||m.baseUnit,baseUnitStep:m.userSetBaseUnitStep||m.baseUnitStep}:void 0}zoomRange(r,c){const m=this.dataRange.total(),Z=this.scaleRange(r,c);return Z&&(Z.min<m.min&&(Z.min=m.min),Z.max>m.max&&(Z.max=m.max)),Z}range(){return this.dataRange.displayRange()}createLabels(){super.createLabels(),this.createRangeLabels()}clearLabels(){super.clearLabels(),this.rangeLabels=[]}arrangeLabels(){this.arrangeRangeLabels(),super.arrangeLabels()}arrangeRangeLabels(){const{options:r,rangeLabels:c}=this;if(0===c.length)return;const m=this.lineBox(),Z=r.vertical,le=r.rangeLabels.mirror||r.labels.mirror,Re=c[0];if(Re){const hn=Z?m.y1-Re.box.height()/2:m.x1;this.positionLabel(Re,le,hn)}const gt=c[1];if(gt){const hn=Z?m.y2-gt.box.height()/2:m.x2;this.positionLabel(gt,le,hn)}}autoRotateLabels(){super.autoRotateLabels(),this.autoRotateRangeLabels()}hideOutOfRangeLabels(){super.hideOutOfRangeLabels(),this.hideOverlappingLabels()}hideOverlappingLabels(){const{rangeLabels:r,labels:c}=this;if(0===r.length)return;function m(Re,gt){return!(gt.options.visible&&!gt.box.overlaps(Re.box)||(gt.options.visible=!1,0))}const Z=r[0];if(Z&&Z.options.visible)for(let Re=0;Re<c.length&&m(Z,c[Re]);Re++);const le=r[1];if(le&&le.options.visible)for(let Re=c.length-1;Re>0&&m(le,c[Re]);--Re);}contentBox(){const r=super.contentBox(),c=this.rangeLabels;for(let m=0;m<c.length;m++){const Z=c[m];Z.options.visible&&r.wrap(Z.box)}return r}createAxisLabel(r,c,m={}){const Z=this.options,le=Z.dataItems&&!Z.maxDivisions?Z.dataItems[r]:null,Re=this.divisionRange.dateAt(r);c.format=c.format||c.dateFormats[this.divisionRange.options.baseUnit],m.dataItem=le;const hn=this.axisLabelText(Re,c,m);if(hn)return new Ve(Re,hn,r,le,c)}createRangeLabels(){const{displayStart:r,displayEnd:c}=this.divisionRange,m=this.options,Z=Object.assign({},m.labels,m.rangeLabels,{align:R,zIndex:m.zIndex});if(!0!==Z.visible)return;this.normalizeLabelRotation(Z),Z.alignRotation=R,"auto"===Z.rotation&&(Z.rotation=0,m.autoRotateRangeLabels=!0),Z.format=Z.format||Z.dateFormats[this.divisionRange.options.baseUnit];const Re=(di,no,Mo)=>{if(Mo){const ir=new Ve(no,Mo,di,null,Z);this.append(ir),this.rangeLabels.push(ir)}};Re(0,r,this.axisLabelText(r,Z,{index:0,count:2})),Re(1,c,this.axisLabelText(c,Z,{index:1,count:2}))}autoRotateRangeLabels(){const r=this.rangeLabels;if(!this.options.autoRotateRangeLabels||this.options.vertical||2!==r.length)return;const c=(Z,le,Re)=>{const gt=2*Math.abs(le[Re+1]-le[Re]),hn=this.autoRotateLabelAngle(Z.box,gt);0!==hn&&(Z.options.rotation=hn,Z.reflow(new Ar))},m=this.getMajorTickPositions();c(r[0],m,0),c(r[1],m,m.length-2)}categoryIndex(r){return this.dataRange.valueIndex(r)}slot(r,c,m){const Z=this.dataRange;let le=r,Re=c;le instanceof Date&&(le=Z.dateIndex(le)),Re instanceof Date&&(Re=Z.dateIndex(Re));const gt=this.getSlot(le,Re,m);if(gt)return gt.toRect()}getSlot(r,c,m){let Z=r,le=c;return typeof Z===Q&&(Z=this.categoryIndex(Z)),typeof le===Q&&(le=this.categoryIndex(le)),super.getSlot(Z,le,m)}valueRange(){const c=rs(this.options.srcCategories);return{min:Kn(c.min),max:Kn(c.max)}}categoryAt(r,c){return this.dataRange.dateAt(r,c)}categoriesCount(){return this.dataRange.valuesCount()}rangeIndices(){return this.dataRange.displayIndices()}labelsBetweenTicks(){return!this.divisionRange.options.justified}prepareUserOptions(){this.isEmpty()||(this.options.categories=this.dataRange.values())}getCategory(r){const c=this.pointCategoryIndex(r);return null===c?null:this.dataRange.dateAt(c)}totalIndex(r){return this.dataRange.totalIndex(r)}currentRangeIndices(){const r=this.dataRange.valueRange();return{min:this.dataRange.totalIndex(r.min),max:this.dataRange.totalIndex(r.max)}}totalRange(){return this.dataRange.total()}totalRangeIndices(){const r=this.dataRange.total();return{min:this.dataRange.totalIndex(r.min),max:this.dataRange.totalIndex(r.max)}}totalCount(){return this.dataRange.totalCount()}isEmpty(){return!this.options.srcCategories.length}roundedRange(){if(!1!==this.options.roundToBaseUnit||this.isEmpty())return this.range();const r=this.options,c=rs(r.srcCategories);return new Ys(c.min,c.max,Object.assign({},r,{justified:!1,roundToBaseUnit:!0,justifyEnd:!1})).displayRange()}}ms(nl,{type:w,labels:{dateFormats:vo},rangeLabels:{visible:!1},autoBaseUnitSteps:{milliseconds:[1,10,100],seconds:[1,2,5,15,30],minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10});const il=nl;function To(ve,r){return Gn(Math.floor(ve/r)*r,p)}function Qo(ve,r){return Gn(Math.ceil(ve/r)*r,p)}function Dr(ve){return Math.max(Math.min(ve,3e5),-3e5)}const _s=Math.pow(10,-9);class ia extends ii{constructor(r,c,m,Z){super(Object.assign({},m,{seriesMin:r,seriesMax:c}),Z)}initUserOptions(r){const c=function Ia(ve,r,c){const m=c.narrowRange;let Z=function xl(ve,r,c){if(!ve&&!r)return 0;let m;if(ve>=0&&r>=0){const Z=ve===r?0:ve;if(!1===c||!c&&(r-Z)/r>.2)return 0;m=Math.max(0,Z-(r-Z)/2)}else m=ve;return m}(ve,r,m),le=function eo(ve,r,c){if(!ve&&!r)return 1;let m;if(ve<=0&&r<=0){const Z=ve===r?0:r;let le=Math.abs((Z-ve)/Z);if(!1===c||!c&&le>.2)return 0;m=Math.min(0,Z-(ve-Z)/2)}else m=r;return m}(ve,r,m);const Re=xs(Z,le),gt={majorUnit:Re};return!1!==c.roundToMajorUnit&&(Z<0&&Ya(Z,Re,1/3)&&(Z-=Re),le>0&&Ya(le,Re,1/3)&&(le+=Re)),gt.min=To(Z,Re),gt.max=Qo(le,Re),gt}(r.seriesMin,r.seriesMax,r);return this.totalOptions=function ar(ve,r){return{min:Bi(r.min)?Math.min(ve.min,r.min):ve.min,max:Bi(r.max)?Math.max(ve.max,r.max):ve.max,majorUnit:ve.majorUnit}}(c,r),function _l(ve,r){let m,Z,c=r;if(r){(function wa(ve,r){for(let c=0;c<r.length;c++){const m=r[c];null===ve[m]&&(ve[m]=void 0)}})(r,["min","max"]),m=Bi(r.min),Z=Bi(r.max);const Re=m||Z;Re&&r.min===r.max&&(r.min>0?r.min=0:r.max=1),r.majorUnit?(ve.min=To(ve.min,r.majorUnit),ve.max=Qo(ve.max,r.majorUnit)):Re&&(c=sn(ve,r),ve.majorUnit=xs(c.min,c.max))}ve.minorUnit=(c.majorUnit||ve.majorUnit)/5;const le=sn(ve,c);return le.min>=le.max&&(m&&!Z?le.max=le.min+le.majorUnit:!m&&Z&&(le.min=le.max-le.majorUnit)),le}(c,r)}initFields(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax}clone(){return new ia(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}startValue(){return 0}range(){const r=this.options;return{min:r.min,max:r.max}}getDivisions(r){if(0===r)return 1;const c=this.options;return Math.floor(Gn((c.max-c.min)/r,3))+1}getTickPositions(r,c){const m=this.options,{axisDir:Z,axisOrigin:le,lineBox:Re,lineSize:gt}=this.lineInfo(),no=r*(gt/(m.max-m.min)),Mo=this.getDivisions(r),ir=[];let Wr=Re[le],Qr=0;c&&(Qr=c/r);for(let Bs=0;Bs<Mo;Bs++)Bs%Qr!=0&&ir.push(Gn(Wr,3)),Wr+=no*Z;return ir}getMajorTickPositions(){return this.getTickPositions(this.options.majorUnit)}getMinorTickPositions(){return this.getTickPositions(this.options.minorUnit)}getSlot(r,c,m=!1){const Z=this.options,{axis:le,axisDir:Re,lineBox:gt,lineSize:hn,lineStart:di}=this.lineInfo(),no=Re*(hn/(Z.max-Z.min));let Mo=wr(r,c||0),ir=wr(c,r||0);m&&(Mo=Fo(Mo,Z.min,Z.max),ir=Fo(ir,Z.min,Z.max));const Wr=Math.min(Mo,ir)-Z.min,Qr=Math.max(Mo,ir)-Z.min,Bs=new Ar(gt.x1,gt.y1,gt.x1,gt.y1);return Bs[le+1]=Dr(di+no*(Re>0?Wr:Qr)),Bs[le+2]=Dr(di+no*(Re>0?Qr:Wr)),Bs}getValue(r){const c=this.options,m=Number(c.max),Z=Number(c.min),le=this.pointOffset(r);return le<0||le>1?null:Gn(Z+le*(m-Z),p)}translateRange(r){const c=this.options,{vertical:m,reverse:Z,max:le,min:Re}=c,{lineSize:gt}=this.lineInfo();let no=Gn(r/(gt/(le-Re)),p);return(m||Z)&&!(m&&Z)&&(no=-no),{min:Re+no,max:le+no,offset:no}}labelsCount(){return this.getDivisions(this.options.majorUnit)}createAxisLabel(r,c,m){const Z=this.options,le=Gn(Z.min+r*Z.majorUnit,p),Re=this.axisLabelText(le,c,m);return new Ve(le,Re,r,null,c)}shouldRenderNote(r){const c=this.range();return c.min<=r&&r<=c.max}pan(r){const c=this.translateRange(r);return this.limitRange(c.min,c.max,this.totalMin,this.totalMax,c.offset)}pointsRange(r,c){const m=this.getValue(r),Z=this.getValue(c),le=Math.min(m,Z),Re=Math.max(m,Z);if(this.isValidRange(le,Re))return{min:le,max:Re}}scaleRange(r,c){const m=Math.abs(this.pointOffset(c)),le=this.scaleToDelta(r,this.options.max-this.options.min),gt=(1-m)*le,hn=Gn(this.options.min+m*le,p);let di=Gn(this.options.max-gt,p);return di-hn<_s&&(di=hn+_s),{min:hn,max:di}}zoomRange(r,c){const{totalMin:m,totalMax:Z}=this,le=this.scaleRange(r,c);return{min:Fo(le.min,m,Z),max:Fo(le.max,m,Z),narrowRange:!1}}isValidRange(r,c){return c-r>_s}}function Ya(ve,r,c){const m=Gn(Math.abs(ve%r),p);return 0===m||m>r*(1-c)}ms(ia,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:_},labels:{format:"#.####################"},zIndex:1});const pa=ia;class Nl extends ii{constructor(r,c,m,Z){const le=Kn(r),Re=Kn(c),gt=Z.intl;let hn=m||{};hn=sn(hn||{},{min:ks(gt,hn.min),max:ks(gt,hn.max),axisCrossingValue:ts(gt,hn.axisCrossingValues||hn.axisCrossingValue),weekStartDay:na(hn,gt)}),hn=function Ct(ve,r,c){const m=c.min||ve,Z=c.max||r,le=c.baseUnit||(Z&&m?function nd(ve){let r=mn;return ve>=lt?r=Ai:ve>=pe?r=Oi:ve>=Me?r=ci:ve>=Ye&&(r=Qn),r}(on(Z,m)):mn),Re=yt[le],gt=c.weekStartDay||0,hn=wo(cr(m)-1,le,gt)||Kn(Z),di=io(cr(Z)+1,le,gt),Mo=(c.majorUnit?c.majorUnit:void 0)||Qo(xs(hn.getTime(),di.getTime()),Re)/Re,ir=Ms(hn,di,le),Qr=Qo(ir,Mo)-ir,Bs=Math.floor(Qr/2),oa=Qr-Bs;return c.baseUnit||delete c.baseUnit,c.baseUnit=c.baseUnit||le,c.min=c.min||ro(hn,-Bs,le,gt),c.max=c.max||ro(di,oa,le,gt),c.minorUnit=c.minorUnit||Mo/5,c.majorUnit=Mo,c}(le,Re,hn),super(hn,Z),this.intlService=gt,this.seriesMin=le,this.seriesMax=Re;const di=hn.weekStartDay||0;this.totalMin=cr(wo(cr(le)-1,hn.baseUnit,di)),this.totalMax=cr(io(cr(Re)+1,hn.baseUnit,di))}clone(){return new Nl(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}range(){const r=this.options;return{min:r.min,max:r.max}}getDivisions(r){const c=this.options;return Math.floor(Ms(c.min,c.max,c.baseUnit)/r+1)}getTickPositions(r){const c=this.options,{axisDir:m,lineSize:Z,lineStart:le}=this.lineInfo(),Re=this.getDivisions(r),hn=Z/fo(c.max,c.min),di=c.weekStartDay||0,no=[le];for(let Mo=1;Mo<Re;Mo++){const Wr=le+fo(ro(c.min,Mo*r,c.baseUnit,di),c.min)*hn*m;no.push(Gn(Wr,3))}return no}getMajorTickPositions(){return this.getTickPositions(this.options.majorUnit)}getMinorTickPositions(){return this.getTickPositions(this.options.minorUnit)}getSlot(r,c,m){return pa.prototype.getSlot.call(this,ks(this.intlService,r),ks(this.intlService,c),m)}getValue(r){const c=pa.prototype.getValue.call(this,r);return null!==c?Kn(c):null}labelsCount(){return this.getDivisions(this.options.majorUnit)}createAxisLabel(r,c,m){const Z=this.options,le=r*Z.majorUnit;let gt=Z.min;le>0&&(gt=ro(gt,le,Z.baseUnit,Z.weekStartDay||0)),c.format=c.format||c.dateFormats[Z.baseUnit];const di=this.axisLabelText(gt,c,m);return new Ve(gt,di,r,null,c)}translateRange(r){const c=this.options,m=this.lineBox(),{vertical:Z,reverse:le}=c,Re=Z?m.height():m.width(),gt=this.range(),hn=Re/fo(gt.max,gt.min);let di=Gn(r/hn,p);return(Z||le)&&(!Z||!le)&&(di=-di),{min:zi(c.min,di),max:zi(c.max,di),offset:di}}shouldRenderNote(r){const c=this.range();return Wi(r,c.min)>=0&&Wi(r,c.max)<=0}pan(r){const c=this.translateRange(r,!0),m=this.limitRange(cr(c.min),cr(c.max),this.totalMin,this.totalMax,c.offset);if(m)return{min:Kn(m.min),max:Kn(m.max)}}pointsRange(r,c){const m=this.getValue(r),Z=this.getValue(c),le=Math.min(m,Z),Re=Math.max(m,Z);return{min:Kn(le),max:Kn(Re)}}scaleRange(r,c){const m=Math.abs(this.pointOffset(c)),le=this.scaleToDelta(r,this.options.max-this.options.min),Re=m*le,gt=(1-m)*le,hn=Kn(cr(this.options.min)+Re);let di=Kn(cr(this.options.max)-gt);return di-hn<1e3&&(di=Kn(cr(hn)+1e3)),{min:hn,max:di}}zoomRange(r,c){const m=this.scaleRange(r,c);return{min:Kn(Fo(cr(m.min),this.totalMin,this.totalMax)),max:Kn(Fo(cr(m.max),this.totalMin,this.totalMax))}}}ms(Nl,{type:w,majorGridLines:{visible:!0,width:1,color:_},labels:{dateFormats:vo}});const rn=Nl;class ct extends ii{constructor(r,c,m,Z){const le=sn({majorUnit:10,min:r,max:c},m),Re=le.majorUnit,gt=function Do(ve,r){const c=Gn(Or(ve,r),p)%1;let m;return m=ve<=0?r:0!==c&&(c<.3||c>.9)?Math.pow(r,Or(ve,r)+.2):Math.pow(r,Math.ceil(Or(ve,r))),m}(c,Re),hn=function gi(ve,r,c){const m=c.majorUnit;let Z=ve;return ve<=0?Z=r<=1?Math.pow(m,-2):1:c.narrowRange||(Z=Math.pow(m,Math.floor(Or(ve,m)))),Z}(r,c,le),di=function Qt(ve,r,c,m){let{min:Z,max:le}=c;return Bi(c.axisCrossingValue)&&c.axisCrossingValue<=0&&Po(),Bi(m.max)?m.max<=0&&Po():le=r,Bi(m.min)?m.min<=0&&Po():Z=ve,{min:Z,max:le}}(hn,gt,le,m);le.max=di.max,le.min=di.min,le.minorUnit=m.minorUnit||Gn(Re-1,p),super(le,Z),this.totalMin=Bi(m.min)?Math.min(hn,m.min):hn,this.totalMax=Bi(m.max)?Math.max(gt,m.max):gt,this.logMin=Gn(Or(di.min,Re),p),this.logMax=Gn(Or(di.max,Re),p),this.seriesMin=r,this.seriesMax=c,this.createLabels()}clone(){return new ct(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}startValue(){return this.options.min}getSlot(r,c,m){const{options:Z,logMin:le,logMax:Re}=this,{majorUnit:gt,min:hn,max:di}=Z,{axis:no,axisDir:Mo,lineBox:ir,lineSize:Wr,lineStart:Qr}=this.lineInfo(),Bs=Mo*(Wr/(Re-le));let oa=wr(r,c||1),Ba=wr(c,r||1);if(oa<=0||Ba<=0)return null;m&&(oa=Fo(oa,hn,di),Ba=Fo(Ba,hn,di)),oa=Or(oa,gt),Ba=Or(Ba,gt);const tl=Math.min(oa,Ba)-le,Dc=Math.max(oa,Ba)-le,Ud=new Ar(ir.x1,ir.y1,ir.x1,ir.y1);return Ud[no+1]=Dr(Qr+Bs*(Mo>0?tl:Dc)),Ud[no+2]=Dr(Qr+Bs*(Mo>0?Dc:tl)),Ud}getValue(r){const{options:c,logMin:m,logMax:Z}=this,{majorUnit:le}=c,{axis:Re,axisDir:gt,lineStart:hn,lineSize:di}=this.lineInfo(),Mo=gt*(r[Re]-hn);return Mo<0||Mo>di?null:Gn(Math.pow(le,m+Mo*((Z-m)/di)),p)}range(){const r=this.options;return{min:r.min,max:r.max}}translateRange(r){const{options:c,logMin:m,logMax:Z}=this,{reverse:le,vertical:Re,majorUnit:gt}=c,hn=this.lineBox(),no=(Re?hn.height():hn.width())/(Z-m);let Mo=Gn(r/no,p);return(Re||le)&&!(Re&&le)&&(Mo=-Mo),{min:Math.pow(gt,m+Mo),max:Math.pow(gt,Z+Mo),offset:Mo}}labelsCount(){const r=Math.floor(this.logMax);return Math.floor(r-this.logMin)+1}getMajorTickPositions(){const r=[];return this.traverseMajorTicksPositions(c=>{r.push(c)},{step:1,skip:0}),r}createTicks(r){const c=this.options,{majorTicks:m,minorTicks:Z,vertical:le}=c,Re=c.labels.mirror,gt=this.lineBox(),di={vertical:le};function no(Mo,ir){di.tickX=Re?gt.x2:gt.x2-ir.size,di.tickY=Re?gt.y1-ir.size:gt.y1,di.position=Mo,r.append(Vt(di,ir))}return m.visible&&this.traverseMajorTicksPositions(no,m),Z.visible&&this.traverseMinorTicksPositions(no,Z),[]}createGridLines(r){const c=this.options,{minorGridLines:m,majorGridLines:Z,vertical:le}=c,Re=r.lineBox(),gt={lineStart:Re[le?"x1":"y1"],lineEnd:Re[le?"x2":"y2"],vertical:le},hn=[],di=this.gridLinesVisual();function no(Mo,ir){It(Mo,hn)||(gt.position=Mo,di.append(qt(gt,ir)),hn.push(Mo))}return Z.visible&&this.traverseMajorTicksPositions(no,Z),m.visible&&this.traverseMinorTicksPositions(no,m),di.children}traverseMajorTicksPositions(r,c){const{lineStart:m,step:Z}=this.lineInfo(),{logMin:le,logMax:Re}=this;for(let gt=Math.ceil(le)+c.skip;gt<=Re;gt+=c.step)r(Gn(m+Z*(gt-le),p),c)}traverseMinorTicksPositions(r,c){const{min:m,max:Z,minorUnit:le,majorUnit:Re}=this.options,{lineStart:gt,step:hn}=this.lineInfo(),{logMin:di,logMax:no}=this;for(let ir=Math.floor(di);ir<no;ir++){const Wr=this._minorIntervalOptions(ir);for(let Qr=c.skip;Qr<le;Qr+=c.step){const Bs=Wr.value+Qr*Wr.minorStep;if(Bs>Z)break;Bs>=m&&r(Gn(gt+hn*(Or(Bs,Re)-di),p),c)}}}createAxisLabel(r,c,m){const Z=Math.ceil(this.logMin+r),le=Math.pow(this.options.majorUnit,Z),Re=this.axisLabelText(le,c,m);return new Ve(le,Re,r,null,c)}shouldRenderNote(r){const c=this.range();return c.min<=r&&r<=c.max}pan(r){const c=this.translateRange(r);return this.limitRange(c.min,c.max,this.totalMin,this.totalMax,c.offset)}pointsRange(r,c){const m=this.getValue(r),Z=this.getValue(c);return{min:Math.min(m,Z),max:Math.max(m,Z)}}scaleRange(r,c){const{majorUnit:m}=this.options,Z=Or(this.options.min,m),le=Or(this.options.max,m),Re=Math.abs(this.pointOffset(c)),hn=this.scaleToDelta(r,le-Z),di=Math.pow(m,Z+Re*hn);let no=Math.pow(m,le-(1-Re)*hn);return no-di<1e-6&&(no=di+1e-6),{min:di,max:no}}zoomRange(r,c){const m=this.scaleRange(r,c),{totalMin:Z,totalMax:le}=this;return{min:Fo(m.min,Z,le),max:Fo(m.max,Z,le)}}_minorIntervalOptions(r){const{minorUnit:c,majorUnit:m}=this.options,Z=Math.pow(m,r);return{value:Z,minorStep:(Math.pow(m,r+1)-Z)/c}}lineInfo(){const r=super.lineInfo();return r.step=r.axisDir*(r.lineSize/(this.logMax-this.logMin)),r}}function Po(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function Or(ve,r){return Math.log(ve)/Math.log(r)}ms(ct,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:_},zIndex:1,_deferLabels:!0});const hs=ct,ca={createGridLines:function(ve){const r=this.options,c=Math.abs(this.box.center().y-ve.lineBox().y1);let le,Re,m=[],Z=!1;return r.majorGridLines.visible&&(le=this.majorGridLineAngles(ve),Z=!0,m=this.renderMajorGridLines(le,c,r.majorGridLines)),r.minorGridLines.visible&&(Re=this.minorGridLineAngles(ve,Z),Zi(m,this.renderMinorGridLines(Re,c,r.minorGridLines,ve,Z))),m},renderMajorGridLines:function(ve,r,c){return this.renderGridLines(ve,r,c)},renderMinorGridLines:function(ve,r,c,m,Z){const le=this.radiusCallback&&this.radiusCallback(r,m,Z);return this.renderGridLines(ve,r,c,le)},renderGridLines:function(ve,r,c,m){const Z={stroke:{width:c.width,color:c.color,dashType:c.dashType}},le=this.box.center(),Re=new Jt.Z([le.x,le.y],r),gt=this.gridLinesVisual();for(let hn=0;hn<ve.length;hn++){const di=new Js.y(Z);m&&(Re.radius=m(ve[hn])),di.moveTo(Re.center).lineTo(Re.pointAt(ve[hn]+180)),gt.append(di)}return gt.children},gridLineAngles:function(ve,r,c,m,Z){const le=this.intervals(r,c,m,Z),Re=ve.options,gt=Re.visible&&!1!==(Re.line||{}).visible;return tt(le,hn=>{const di=this.intervalAngle(hn);if(!gt||90!==di)return di})}};class za extends Ps{range(){return{min:0,max:this.options.categories.length}}reflow(r){this.box=r,this.reflowLabels()}lineBox(){return this.box}reflowLabels(){const{labels:r,options:{labels:c}}=this,m=c.skip||0,Z=c.step||1,le=new Ar;for(let Re=0;Re<r.length;Re++){r[Re].reflow(le);const gt=r[Re].box;r[Re].reflow(this.getSlot(m+Re*Z).adjacentBox(0,gt.width(),gt.height()))}}intervals(r,c,m,Z=!1){const le=this.options,gt=le.categories.length/r||1,hn=360/gt,no=m||1,Mo=[];let ir=0;for(let Wr=c||0;Wr<gt;Wr+=no)ir=le.reverse?360-Wr*hn:Wr*hn,ir=Gn(ir,3)%360,Z&&It(ir,Z)||Mo.push(ir);return Mo}majorIntervals(){return this.intervals(1)}minorIntervals(){return this.intervals(.5)}intervalAngle(r){return(360+r+this.options.startAngle)%360}majorAngles(){return tt(this.majorIntervals(),r=>this.intervalAngle(r))}createLine(){return[]}majorGridLineAngles(r){const c=this.options.majorGridLines;return this.gridLineAngles(r,1,c.skip,c.step)}minorGridLineAngles(r,c){const{minorGridLines:m,majorGridLines:Z}=this.options,le=c?this.intervals(1,Z.skip,Z.step):null;return this.gridLineAngles(r,.5,m.skip,m.step,le)}radiusCallback(r,c,m){if(c.options.type!==s){const Z=ai(360/(2*this.options.categories.length)),le=Math.cos(Z)*r,Re=this.majorAngles();return function(hn){return!m&&It(hn,Re)?r:le}}}createPlotBands(){const r=this.options.plotBands||[],c=this._plotbandGroup=new ht.Z({zIndex:-1});for(let m=0;m<r.length;m++){const Z=r[m],le=this.plotBandSlot(Z),Re=this.getSlot(Z.from),gt=Z.from-Math.floor(Z.from);le.startAngle+=gt*Re.angle;const hn=Math.ceil(Z.to)-Z.to;le.angle-=(hn+gt)*Re.angle;const di=Za.current.createRing(le,{fill:{color:Z.color,opacity:Z.opacity},stroke:{opacity:Z.opacity}});c.append(di)}this.appendVisual(c)}plotBandSlot(r){return this.getSlot(r.from,r.to-1)}getSlot(r,c){const m=this.options,Z=m.justified,le=this.box,Re=this.majorAngles(),gt=Re.length,hn=360/gt;let di=r;m.reverse&&!Z&&(di=(di+1)%gt),di=Fo(Math.floor(di),0,gt-1);let no=Re[di];Z&&(no-=hn/2,no<0&&(no+=360));const Wr=hn*(Fo(Math.ceil(c||di),di,gt-1)-di+1);return new js(le.center(),0,le.height()/2,no,Wr)}slot(r,c){const m=this.getSlot(r,c),Z=m.startAngle+180;return new Hs.Z([m.center.x,m.center.y],{startAngle:Z,endAngle:Z+m.angle,radiusX:m.radius,radiusY:m.radius})}pointCategoryIndex(r){const c=this.options.categories.length;let m=null;for(let Z=0;Z<c;Z++)if(this.getSlot(Z).containsPoint(r)){m=Z;break}return m}}ms(za,{startAngle:90,labels:{margin:Eo(10)},majorGridLines:{visible:!0},justified:!0}),sn(za.prototype,ca);const cl=za;class yc extends ii{constructor(r,c){super(r,c);const m=this.options;m.minorUnit=m.minorUnit||m.majorUnit/2}getDivisions(r){return pa.prototype.getDivisions.call(this,r)-1}reflow(r){this.box=r,this.reflowLabels()}reflowLabels(){const{options:r,labels:c,options:{labels:m}}=this,Z=m.skip||0,le=m.step||1,Re=new Ar,gt=this.intervals(r.majorUnit,Z,le);for(let hn=0;hn<c.length;hn++){c[hn].reflow(Re);const di=c[hn].box;c[hn].reflow(this.getSlot(gt[hn]).adjacentBox(0,di.width(),di.height()))}}lineBox(){return this.box}intervals(r,c,m,Z=!1){const le=this.options.min,Re=this.getDivisions(r),gt=[],di=m||1;for(let no=c||0;no<Re;no+=di){const Mo=(360+le+no*r)%360;Z&&It(Mo,Z)||gt.push(Mo)}return gt}majorIntervals(){return this.intervals(this.options.majorUnit)}minorIntervals(){return this.intervals(this.options.minorUnit)}intervalAngle(r){return(540-r-this.options.startAngle)%360}createLine(){return[]}majorGridLineAngles(r){const c=this.options.majorGridLines;return this.gridLineAngles(r,this.options.majorUnit,c.skip,c.step)}minorGridLineAngles(r,c){const m=this.options,{minorGridLines:Z,majorGridLines:le}=m,Re=c?this.intervals(m.majorUnit,le.skip,le.step):null;return this.gridLineAngles(r,m.minorUnit,Z.skip,Z.step,Re)}plotBandSlot(r){return this.getSlot(r.from,r.to)}getSlot(r,c){const{options:m,box:Z}=this,le=m.startAngle;let Re=Fo(r,m.min,m.max),gt=Fo(c||Re,Re,m.max);if(m.reverse&&(Re*=-1,gt*=-1),Re=(540-Re-le)%360,gt=(540-gt-le)%360,gt<Re){const hn=Re;Re=gt,gt=hn}return new js(Z.center(),0,Z.height()/2,Re,gt-Re)}slot(r,c=r){const m=this.options,Z=360-m.startAngle,le=this.getSlot(r,c),Re=Math.min(r,c),gt=Math.max(r,c);let hn,di;return m.reverse?(hn=Re,di=gt):(hn=360-gt,di=360-Re),hn=(hn+Z)%360,di=(di+Z)%360,new Hs.Z([le.center.x,le.center.y],{startAngle:hn,endAngle:di,radiusX:le.radius,radiusY:le.radius})}getValue(r){const c=this.options,m=this.box.center();let Re=Math.round(Xo(Math.atan2(r.y-m.y,r.x-m.x))),gt=c.startAngle;return c.reverse||(Re*=-1,gt*=-1),(Re+gt+360)%360}valueRange(){return{min:0,max:2*Math.PI}}}ms(yc,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:Eo(10)},majorGridLines:{color:_,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),sn(yc.prototype,ca,{createPlotBands:cl.prototype.createPlotBands,majorAngles:cl.prototype.majorAngles,range:pa.prototype.range,labelsCount:pa.prototype.labelsCount,createAxisLabel:pa.prototype.createAxisLabel});const bc=yc;function Wl(ve,r){return 180-Math.abs(Math.abs(ve-r)-180)}const va={options:{majorGridLines:{visible:!0}},createPlotBands:function(){const{majorGridLines:{type:ve},plotBands:r=[]}=this.options,c=this.plotArea.polarAxis,m=c.majorAngles(),Z=c.box.center(),le=this._plotbandGroup=new ht.Z({zIndex:-1});for(let Re=0;Re<r.length;Re++){const gt=r[Re],hn={fill:{color:gt.color,opacity:gt.opacity},stroke:{opacity:gt.opacity}},di=this.getSlot(gt.from,gt.to,!0),no=new js(Z,Z.y-di.y2,Z.y-di.y1,0,360);let Mo;Mo=ve===s?Za.current.createRing(no,hn):Js.y.fromPoints(this.plotBandPoints(no,m),hn).close(),le.append(Mo)}this.appendVisual(le)},plotBandPoints:function(ve,r){const c=[],m=[],Z=[ve.center.x,ve.center.y],le=new Jt.Z(Z,ve.innerRadius),Re=new Jt.Z(Z,ve.radius);for(let gt=0;gt<r.length;gt++)c.push(le.pointAt(r[gt]+180)),m.push(Re.pointAt(r[gt]+180));return c.reverse(),c.push(c[0]),m.push(m[0]),m.concat(c)},createGridLines:function(ve){const r=this.options,c=this.radarMajorGridLinePositions(),m=ve.majorAngles(),Z=ve.box.center();let le=[];if(r.majorGridLines.visible&&(le=this.renderGridLines(Z,c,m,r.majorGridLines)),r.minorGridLines.visible){const Re=this.radarMinorGridLinePositions();Zi(le,this.renderGridLines(Z,Re,m,r.minorGridLines))}return le},renderGridLines:function(ve,r,c,m){const Z={stroke:{width:m.width,color:m.color,dashType:m.dashType}},{skip:le=0,step:Re=0}=m,gt=this.gridLinesVisual();for(let hn=le;hn<r.length;hn+=Re){const di=ve.y-r[hn];if(di>0){const no=new Jt.Z([ve.x,ve.y],di);if(m.type===s)gt.append(new sl.Z(no,Z));else{const Mo=new Js.y(Z);for(let ir=0;ir<c.length;ir++)Mo.lineTo(no.pointAt(c[ir]+180));Mo.close(),gt.append(Mo)}}}return gt.children},getValue:function(ve){const r=this.lineBox(),c=this.plotArea.polarAxis,m=c.majorAngles(),Z=c.box.center(),le=ve.distanceTo(Z);let Re=le;if(this.options.majorGridLines.type!==s&&m.length>1){const di=(Xo(Math.atan2(ve.y-Z.y,ve.x-Z.x))+540)%360;m.sort(function(Qr,Bs){return Wl(Qr,di)-Wl(Bs,di)});const no=Wl(m[0],m[1])/2,Mo=Wl(di,m[0]),ir=90-no;Re=le*(Math.sin(ai(180-Mo-ir))/Math.sin(ai(ir)))}return this.axisType().prototype.getValue.call(this,new Ts(r.x1,r.y2-Re))}};class Hc extends pa{radarMajorGridLinePositions(){return this.getTickPositions(this.options.majorUnit)}radarMinorGridLinePositions(){const r=this.options;let c=0;return r.majorGridLines.visible&&(c=r.majorUnit),this.getTickPositions(r.minorUnit,c)}axisType(){return pa}}sn(Hc.prototype,va);const Vc=Hc;class Mu extends hs{radarMajorGridLinePositions(){const r=[];return this.traverseMajorTicksPositions(function(c){r.push(c)},this.options.majorGridLines),r}radarMinorGridLinePositions(){const r=[];return this.traverseMinorTicksPositions(function(c){r.push(c)},this.options.minorGridLines),r}axisType(){return hs}}sn(Mu.prototype,va);const Tl=Mu;var cc=i(77795);function Uh(ve){return ve<=0?-1:1}const Jc=class th extends jo.Z{constructor(r){super(),this.closed=r}process(r){const c=r.slice(0),m=[];let Z=this.closed,le=c.length;if(le>2&&(this.removeDuplicates(0,c),le=c.length),le<2||2===le&&c[0].equals(c[1]))return m;let di,no,Re=c[0],gt=c[1],hn=c[2];for(m.push(new cc.Z(Re));Re.equals(c[le-1]);)Z=!0,c.pop(),le--;if(2===le){const ir=this.tangent(Re,gt,ge,Ce);return ji(m).controlOut(this.firstControlPoint(ir,Re,gt,ge,Ce)),m.push(new cc.Z(gt,this.secondControlPoint(ir,Re,gt,ge,Ce))),m}if(Z){Re=c[le-1],gt=c[0],hn=c[1];const ir=this.controlPoints(Re,gt,hn);di=ir[1],no=ir[0]}else{const ir=this.tangent(Re,gt,ge,Ce);di=this.firstControlPoint(ir,Re,gt,ge,Ce)}let Mo=di;for(let ir=0;ir<=le-3;ir++)if(this.removeDuplicates(ir,c),le=c.length,ir+3<=le){Re=c[ir],gt=c[ir+1],hn=c[ir+2];const Wr=this.controlPoints(Re,gt,hn);ji(m).controlOut(Mo),Mo=Wr[1],m.push(new cc.Z(gt,Wr[0]))}if(Z){Re=c[le-2],gt=c[le-1],hn=c[0];const ir=this.controlPoints(Re,gt,hn);ji(m).controlOut(Mo),m.push(new cc.Z(gt,ir[0])),ji(m).controlOut(ir[1]),m.push(new cc.Z(hn,no))}else{const ir=this.tangent(gt,hn,ge,Ce);ji(m).controlOut(Mo),m.push(new cc.Z(hn,this.secondControlPoint(ir,gt,hn,ge,Ce)))}return m}removeDuplicates(r,c){for(;c[r+1]&&(c[r].equals(c[r+1])||c[r+1].equals(c[r+2]));)c.splice(r+1,1)}invertAxis(r,c,m){let Z=!1;if(r.x===c.x)Z=!0;else if(c.x===m.x)(c.y<m.y&&r.y<=c.y||m.y<c.y&&c.y<=r.y)&&(Z=!0);else{const le=this.lineFunction(r,c),Re=this.calculateFunction(le,m.x);r.y<=c.y&&m.y<=Re||c.y<=r.y&&m.y>=Re||(Z=!0)}return Z}isLine(r,c,m){const Z=this.lineFunction(r,c),le=this.calculateFunction(Z,m.x);return r.x===c.x&&c.x===m.x||Gn(le,1)===Gn(m.y,1)}lineFunction(r,c){const m=(c.y-r.y)/(c.x-r.x);return[r.y-m*r.x,m]}controlPoints(r,c,m){let hn,Z=ge,le=Ce,Re=!1,gt=!1;if(this.isLine(r,c,m))hn=this.tangent(r,c,ge,Ce);else{const Mo={x:this.isMonotonicByField(r,c,m,ge),y:this.isMonotonicByField(r,c,m,Ce)};if(Mo.x&&Mo.y)hn=this.tangent(r,m,ge,Ce),Re=!0;else if(this.invertAxis(r,c,m)&&(Z=Ce,le=ge),Mo[Z])hn=0;else{let ir;ir=m[le]<r[le]&&r[le]<=c[le]||r[le]<m[le]&&c[le]<=r[le]?Uh((m[le]-r[le])*(c[Z]-r[Z])):-Uh((m[Z]-r[Z])*(c[le]-r[le])),hn=.01*ir,gt=!0}}const di=this.secondControlPoint(hn,r,c,Z,le);if(gt){const Mo=Z;Z=le,le=Mo}const no=this.firstControlPoint(hn,c,m,Z,le);return Re&&(this.restrictControlPoint(r,c,di,hn),this.restrictControlPoint(c,m,no,hn)),[di,no]}restrictControlPoint(r,c,m,Z){r.y<c.y?c.y<m.y?(m.x=r.x+(c.y-r.y)/Z,m.y=c.y):m.y<r.y&&(m.x=c.x-(c.y-r.y)/Z,m.y=r.y):m.y<c.y?(m.x=r.x-(r.y-c.y)/Z,m.y=c.y):r.y<m.y&&(m.x=c.x+(r.y-c.y)/Z,m.y=r.y)}tangent(r,c,m,Z){const le=c[m]-r[m];let gt;return gt=0===le?0:(c[Z]-r[Z])/le,gt}isMonotonicByField(r,c,m,Z){return m[Z]>c[Z]&&c[Z]>r[Z]||m[Z]<c[Z]&&c[Z]<r[Z]}firstControlPoint(r,c,m,Z,le){const Re=c[Z],hn=.333*(m[Z]-Re);return this.point(Re+hn,c[le]+hn*r,Z,le)}secondControlPoint(r,c,m,Z,le){const gt=m[Z],hn=.333*(gt-c[Z]);return this.point(gt-hn,m[le]-hn*r,Z,le)}point(r,c,m,Z){const le=new ls.Z;return le[m]=r,le[Z]=c,le}calculateFunction(r,c){const m=r.length;let Z=0;for(let le=0;le<m;le++)Z+=Math.pow(c,le)*r[le];return Z}},cd=class nh extends jo.Z{constructor(r){super(),this._axis=r,this.options=r.options}value(r){const c=this._axis;return c.getCategory?c.getCategory(r):c.getValue(r)}slot(r,c,m=!0){return this._axis.slot(r,c,m)}range(){return this._axis.range()}valueRange(){return this._axis.valueRange()}};function Cd(ve,r){for(let c=0;c<r.length;c++)if(r[c].options.name===ve)return r[c].prepareUserOptions(),new cd(r[c])}const bu=class yu{constructor(r){this.visual=r.visual,this.chartsVisual=r.chartContainer.visual,this._pane=r}findAxisByName(r){return Cd(r,this._pane.axes)}},Zu=class nu extends jo.Z{constructor(r){super(),this._plotArea=r,this.visual=r.visual,this.backgroundVisual=r._bgVisual}};function mc(ve){const r=ve.length;let c=0;for(let m=0;m<r;m++)An(ve[m])&&c++;return c}const xd={min:function(ve){const r=ve.length;let c=U;for(let m=0;m<r;m++){const Z=ve[m];An(Z)&&(c=Math.min(c,Z))}return c===U?ve[0]:c},max:function(ve){const r=ve.length;let c=V;for(let m=0;m<r;m++){const Z=ve[m];An(Z)&&(c=Math.max(c,Z))}return c===V?ve[0]:c},sum:function(ve){const r=ve.length;let c=0;for(let m=0;m<r;m++){const Z=ve[m];An(Z)&&(c+=Z)}return c},sumOrNull:function(ve){let r=null;return mc(ve)&&(r=xd.sum(ve)),r},count:function(ve){const r=ve.length;let c=0;for(let m=0;m<r;m++){const Z=ve[m];null!==Z&&Bi(Z)&&c++}return c},avg:function(ve){const r=mc(ve);let c=ve[0];return r>0&&(c=xd.sum(ve)/r),c},first:function(ve){const r=ve.length;for(let c=0;c<r;c++){const m=ve[c];if(null!==m&&Bi(m))return m}return ve[0]}},fu=xd;function Fl(ve,r){return null===r?r:un(ve)(r)}class Jd extends jo.Z{constructor(){super(),this._valueFields={},this._otherFields={},this._nullValue={},this._undefinedValue={}}register(r,c=[se],m={}){for(let Z=0;Z<r.length;Z++){const le=r[Z];this._valueFields[le]=c,this._otherFields[le]=m,this._nullValue[le]=this._makeValue(c,null),this._undefinedValue[le]=this._makeValue(c,void 0)}}canonicalFields(r){return this.valueFields(r).concat(this.otherFields(r))}valueFields(r){return this._valueFields[r.type]||[se]}otherFields(r){return this._otherFields[r.type]||[se]}bindPoint(r,c,m){const Z=r.data,le=Bi(m)?m:Z[c],Re={valueFields:{value:le}},gt=this.valueFields(r),hn=this._otherFields[r.type];let di,no;if(null===le)no=this._nullValue[r.type];else if(Bi(le)){if(Array.isArray(le)){const Mo=le.slice(gt.length);no=this._bindFromArray(le,gt),di=this._bindFromArray(Mo,hn)}else if("object"==typeof le){const Mo=this.sourceFields(r,gt),ir=this.sourceFields(r,hn);no=this._bindFromObject(le,gt,Mo),di=this._bindFromObject(le,hn,ir)}}else no=this._undefinedValue[r.type];return Bi(no)&&(1===gt.length?Re.valueFields.value=no[gt[0]]:Re.valueFields=no),Re.fields=di||{},Re}_makeValue(r,c){const m={},Z=r.length;for(let le=0;le<Z;le++)m[r[le]]=c;return m}_bindFromArray(r,c){const m={};if(c){const Z=Math.min(c.length,r.length);for(let le=0;le<Z;le++)m[c[le]]=r[le]}return m}_bindFromObject(r,c,m=c){const Z={};if(c){const le=c.length;for(let Re=0;Re<le;Re++){const hn=m[Re];null!==hn&&(Z[c[Re]]=Fl(hn,r))}}return Z}sourceFields(r,c){const m=[];if(c){const Z=c.length;for(let le=0;le<Z;le++){const Re=c[le],gt=Re===se?"field":Re+"Field";m.push(null!==r[gt]?r[gt]||Re:null)}}return m}}Jd.current=new Jd;const Jl=Jd,gc=/percent(?:\w*)\((\d+)\)/,ih=new RegExp("^stddev(?:\\((\\d+(?:\\.\\d+)?)\\))?$"),id=class Cu extends jo.Z{constructor(r,c,m){super(),this.initGlobalRanges(r,c,m)}initGlobalRanges(r,c,m){const Z=c.data,le=ih.exec(r);if(le){this.valueGetter=this.createValueGetter(c,m);const Re=this.getAverage(Z),gt=this.getStandardDeviation(Z,Re,!1),hn=le[1]?parseFloat(le[1]):1,di={low:Re.value-gt*hn,high:Re.value+gt*hn};this.globalRange=function(){return di}}else if(r.indexOf&&r.indexOf("stderr")>=0){this.valueGetter=this.createValueGetter(c,m);const Re=this.getStandardError(Z,this.getAverage(Z));this.globalRange=function(gt){return{low:gt-Re,high:gt+Re}}}}createValueGetter(r,c){const m=r.data,Z=Jl.current,le=Z.valueFields(r),Re=Bi(m[0])?m[0]:{};let gt;return De(Re)?gt=un("["+(c?le.indexOf(c):0)+"]"):An(Re)?gt=un():typeof Re===Q&&(gt=un(Z.sourceFields(r,le)[le.indexOf(c)])),gt}getErrorRange(r,c){let m,Z,le;if(!Bi(c))return null;if(this.globalRange)return this.globalRange(r);if(De(c))m=r-c[0],Z=r+c[1];else if(An(le=parseFloat(c)))m=r-le,Z=r+le;else{if(!(le=gc.exec(c)))throw new Error("Invalid ErrorBar value: "+c);{const Re=r*(parseFloat(le[1])/100);m=r-Math.abs(Re),Z=r+Math.abs(Re)}}return{low:m,high:Z}}getStandardError(r,c){return this.getStandardDeviation(r,c,!0)/Math.sqrt(c.count)}getStandardDeviation(r,c,m){const Z=r.length,le=m?c.count-1:c.count;let Re=0;for(let gt=0;gt<Z;gt++){const hn=this.valueGetter(r[gt]);An(hn)&&(Re+=Math.pow(hn-c.value,2))}return Math.sqrt(Re/le)}getAverage(r){const c=r.length;let m=0,Z=0;for(let le=0;le<c;le++){const Re=this.valueGetter(r[le]);An(Re)&&(m+=Re,Z++)}return{value:m/Z,count:Z}}},ud=600,ql="fadeIn",Gd=(Ne.Z.browser||{}).msie?.001:0,$d="errorLow",dc="errorHigh",rc="zero",Di="interpolate",Wo="above",vr="below",Jr="smooth",ns="step",vs="area",Ns="bar",Is="boxPlot",qs="bubble",fa="bullet",ye="candlestick",bt="column",be="donut",st="funnel",ei="pyramid",_o="heatmap",gr="horizontalWaterfall",ds="line",us="ohlc",zs="pie",Ta="polarArea",Pe="polarLine",Tn="polarScatter",v="radarArea",ue="radarColumn",dt="radarLine",In="rangeArea",er="rangeBar",Br="rangeColumn",es="scatter",Ks="scatterLine",xa="verticalArea",ha="verticalBoxPlot",Aa="verticalBullet",vl="verticalLine",ml="verticalRangeArea",yl="waterfall",Cc=[Ns,bt,us,ye,Is,ha,fa,Br,er,yl,gr],Bc="linearTrendline",Bl="movingAverageTrendline",Wc=[Bc,Bl],Lc="seriesClick",ul="seriesHover",Mc="seriesOver",uf="seriesLeave",Ff="plotAreaHover",hf="plotAreaLeave",Vd="drag",Fu="dragEnd",Ch="dragStart",mh="zoomStart",Sd="zoom",vd="zoomEnd",hd="selectStart",ff="select",Iu="selectEnd",xh="showTooltip",Xh="hideTooltip",pf="log",Nc="category",wh="insideEnd",oh="outsideEnd",yd="wheel",Gh="drilldown";class sh extends ga{constructor(r,c,m,Z,le,Re){super(Re),this.low=r,this.high=c,this.isVertical=m,this.chart=Z,this.series=le}reflow(r){const c=this.options.endCaps,m=this.isVertical,le=this.getAxis().getSlot(this.low,this.high),Re=r.center(),gt=this.getCapsWidth(r,m),hn=m?Re.x:Re.y,di=hn-gt,no=hn+gt;let Mo;m?(Mo=[new Ts(Re.x,le.y1),new Ts(Re.x,le.y2)],c&&Mo.push(new Ts(di,le.y1),new Ts(no,le.y1),new Ts(di,le.y2),new Ts(no,le.y2)),this.box=new Ar(di,le.y1,no,le.y2)):(Mo=[new Ts(le.x1,Re.y),new Ts(le.x2,Re.y)],c&&Mo.push(new Ts(le.x1,di),new Ts(le.x1,no),new Ts(le.x2,di),new Ts(le.x2,no)),this.box=new Ar(le.x1,di,le.x2,no)),this.linePoints=Mo}getCapsWidth(r,c){const m=c?r.width():r.height();return Math.min(Math.floor(m/2),4)||4}createVisual(){const r=this.options,c=r.visual;c?this.visual=c({low:this.low,high:this.high,rect:this.box.toRect(),sender:this.getSender(),options:{endCaps:r.endCaps,color:r.color,line:r.line},createVisual:()=>{this.createDefaultVisual();const m=this.visual;return delete this.visual,m}}):this.createDefaultVisual()}createDefaultVisual(){const{options:r,linePoints:c}=this,m={stroke:{color:r.color,width:r.line.width,dashType:r.line.dashType}};super.createVisual();for(let Z=0;Z<c.length;Z+=2){const le=new Js.y(m).moveTo(c[Z].x,c[Z].y).lineTo(c[Z+1].x,c[Z+1].y);Gt(le),this.visual.append(le)}}}ms(sh,{animation:{type:ql,delay:ud},endCaps:!0,line:{width:2},zIndex:1});const wd=sh,Qd=class Bf extends wd{getAxis(){return this.chart.seriesValueAxis(this.series)}};function Th(ve){for(let r=0;r<ve.length;r++)if(Bi(ve[r].zIndex))return!0}function _p(ve,r){null!==r&&ve.push(r)}function Hh(ve){return mc(ve)===ve.length}function Sl(ve,r,c){const m=r.visible;if(Bi(m))return m;const Z=ve.pointVisibility;return Z?Z[c]:void 0}function Rn(ve){const r=ve.data,c=[];let m=0,Z=0;for(let le=0;le<r.length;le++){const Re=Jl.current.bindPoint(ve,le);let gt=Re.valueFields.value;$n(gt)&&(gt=parseFloat(gt)),An(gt)?(Re.visible=!1!==Sl(ve,Re.fields,le),Re.value=Math.abs(gt),c.push(Re),Re.visible&&(m+=Re.value),0!==gt&&Z++):c.push(null)}return{total:m,points:c,count:Z}}function Uo(ve){const r=ve.length;let c=0;for(let m=0;m<r;m++)c=Math.max(c,ve[m].data.length);return c}function je(ve,r){return ve&&r?ve.toLowerCase()===r.toLowerCase():ve===r}function Gi(ve,r,c={},m=!1){const Z=c.defaults=c.defaults||{},le=c.depth=c.depth||0;let Re=!1;if(c.excluded=c.excluded||[],le>5)return null;for(let gt in ve)if(!It(gt,c.excluded)&&ve.hasOwnProperty(gt)){const hn=ve[gt];mt(hn)?(Re=!0,m||(ve[gt]=wr(hn(r),Z[gt]))):fn(hn)&&(m||(c.defaults=Z[gt]),c.depth++,Re=Gi(hn,r,c,m)||Re,c.depth--)}return Re}function nr(ve,r){const c=[],m=[].concat(r);for(let Z=0;Z<ve.length;Z++){const le=ve[Z];It(le.type,m)&&c.push(le)}return c}function is(ve,r,c){if(null===r)return r;const m="_date_"+ve;let Z=r[m];return Z||(Z=ks(c,un(ve)(r)),r[m]=Z),Z}function ta(ve){const r=ve.overlay;return r&&r.gradient&&"none"!==r.gradient}function dl(ve){return Bi(ve)&&null!==ve}function $l(ve,r){const c=ve.type,m=r instanceof Date;return!c&&m||je(c,w)}function fl(ve){return 1===ve.length?ve[0]:ve}const _c=/area/i;function hc(ve,r){const m=Jl.current.bindPoint(ve,null,r).valueFields;for(let Z in m)if(xn(m[Z]))return!0}function fd({start:ve,dir:r,min:c,max:m,getter:Z,hasItem:le,series:Re}){let gt,hn,di=ve;do{di+=r,le(di)&&(hn=Z(di),gt=hc(Re,hn.item))}while(c<=di&&di<=m&&!gt);if(gt)return hn}function Su(ve,r,c,m,Z){const{min:le,max:Re}=r,gt=le>0&&le<c,hn=Re+1<c;if(gt||hn){const di=function Ol(ve){return ve.missingValues?ve.missingValues:_c.test(ve.type)||ve.stack?rc:Di}(ve);let no,Mo;if(di!==Di)gt&&(no=m(le-1)),hn&&(Mo=m(Re+1));else{let ir,Wr;gt&&(ir=m(le-1),Wr=hc(ve,ir.item),no=Wr?ir:fd({start:le,dir:-1,min:0,max:c-1,getter:m,hasItem:Z,series:ve})),hn&&(ir=m(Re+1),Wr=hc(ve,ir.item),Mo=Wr?ir:fd({start:Re,dir:1,min:0,max:c-1,getter:m,hasItem:Z,series:ve}))}no&&(ve._outOfRangeMinPoint=no),Mo&&(ve._outOfRangeMaxPoint=Mo)}}class gm extends ga{constructor(r,c){super(c),this.plotArea=r,this.chartService=r.chartService,this.categoryAxis=r.seriesCategoryAxis(c.series[0]),this.valueAxisRanges={},this.points=[],this.categoryPoints=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[],this.render()}render(){this.traverseDataPoints(this.addValue.bind(this))}pointOptions(r,c){let m=this.seriesOptions[c];if(!m){const Z=this.pointType().prototype.defaults;this.seriesOptions[c]=m=sn({},Z,{vertical:!this.options.invertAxes},r)}return m}plotValue(r){if(!r)return 0;if(this.options.isStacked100&&An(r.value)){const m=this.categoryPoints[r.categoryIx],Z=[];let le=0;for(let Re=0;Re<m.length;Re++){const gt=m[Re];if(gt){const hn=r.series.stack,di=gt.series.stack;if(hn&&di&&hn.group!==di.group)continue;An(gt.value)&&(le+=Math.abs(gt.value),Z.push(Math.abs(gt.value)))}}if(le>0)return r.value/le}return r.value}plotRange(r,c=0){const m=this.categoryPoints[r.categoryIx];if(this.options.isStacked){let gt=this.plotValue(r);const hn=gt>=0;let di=c,no=!1;for(let Mo=0;Mo<m.length;Mo++){const ir=m[Mo];if(r===ir)break;const Wr=r.series.stack,Qr=ir.series.stack;if(Wr&&Qr&&(typeof Wr===H&&Wr!==Qr||Wr.group&&Wr.group!==Qr.group))continue;const Bs=this.plotValue(ir);(Bs>=0&&hn||Bs<0&&!hn)&&(di+=Bs,gt+=Bs,no=!0,this.options.isStacked100&&(gt=Math.min(gt,1)))}return no&&(di-=c),[di,gt]}const le=this.seriesValueAxis(r.series),Re=this.categoryAxisCrossingValue(le);return[Re,xn(r.value)?r.value:Re]}stackLimits(r,c){let m=U,Z=V;for(let le=0;le<this.categoryPoints.length;le++){const Re=this.categoryPoints[le];if(Re)for(let gt=0;gt<Re.length;gt++){const hn=Re[gt];if(hn&&(hn.series.stack===c||hn.series.axis===r)){const di=this.plotRange(hn,0)[1];Bi(di)&&isFinite(di)&&(Z=Math.max(Z,di),m=Math.min(m,di))}}}return{min:m,max:Z}}updateStackRange(){const{isStacked:r,series:c}=this.options,m={};if(r)for(let Z=0;Z<c.length;Z++){const le=c[Z],Re=le.axis,gt=Re+le.stack;let hn=m[gt];if(!hn){hn=this.stackLimits(Re,le.stack);const di=this.errorTotals;di&&(di.negative.length&&(hn.min=Math.min(hn.min,pr(di.negative).min)),di.positive.length&&(hn.max=Math.max(hn.max,pr(di.positive).max))),hn.min!==U||hn.max!==V?m[gt]=hn:hn=null}hn&&(this.valueAxisRanges[Re]=hn)}}addErrorBar(r,c,m){const{value:Z,series:le,seriesIx:Re}=r,gt=r.options.errorBars,hn=c.fields[$d],di=c.fields[dc];let no;An(hn)&&An(di)?no={low:hn,high:di}:gt&&Bi(gt.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[Re]=this.seriesErrorRanges[Re]||new id(gt.value,le,se),no=this.seriesErrorRanges[Re].getErrorRange(Z,gt.value)),no&&(r.low=no.low,r.high=no.high,this.addPointErrorBar(r,m))}addPointErrorBar(r,c){const m=!this.options.invertAxes,Z=r.options.errorBars;let{series:le,low:Re,high:gt}=r;if(this.options.isStacked){const di=this.stackedErrorRange(r,c);Re=di.low,gt=di.high}else{const di={categoryIx:c,series:le};this.updateRange({value:Re},di),this.updateRange({value:gt},di)}const hn=new Qd(Re,gt,m,this,le,Z);r.errorBars=[hn],r.append(hn)}stackedErrorRange(r,c){const m=this.plotRange(r,0)[1]-r.value,Z=r.low+m,le=r.high+m;return this.errorTotals=this.errorTotals||{positive:[],negative:[]},Z<0&&(this.errorTotals.negative[c]=Math.min(this.errorTotals.negative[c]||0,Z)),le>0&&(this.errorTotals.positive[c]=Math.max(this.errorTotals.positive[c]||0,le)),{low:Z,high:le}}addValue(r,c){const{categoryIx:m,series:Z,seriesIx:le}=c;let Re=this.categoryPoints[m];Re||(this.categoryPoints[m]=Re=[]);let gt=this.seriesPoints[le];gt||(this.seriesPoints[le]=gt=[]);const hn=this.createPoint(r,c);hn&&(Object.assign(hn,c),hn.owner=this,hn.noteText=r.fields.noteText,Bi(hn.dataItem)||(hn.dataItem=Z.data[m]),this.addErrorBar(hn,r,m)),this.points.push(hn),gt.push(hn),Re.push(hn),this.updateRange(r.valueFields,c)}evalPointOptions(r,c,m){const Z=m.categoryIx,le=m.category,Re=m.series,gt=m.seriesIx,hn={defaults:Re._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint","drilldownSeriesFactory"]};let di=this._evalSeries[gt];Bi(di)||(this._evalSeries[gt]=di=Gi(r,{},hn,!0));let no=r;return di&&(no=sn({},no),Gi(no,{value:c,category:le,index:Z,series:Re,dataItem:Re.data[Z]},hn)),no}updateRange(r,c){const m=c.series.axis,Z=r.value;let le=this.valueAxisRanges[m];isFinite(Z)&&null!==Z&&(le=this.valueAxisRanges[m]=le||{min:U,max:V},le.min=Math.min(le.min,Z),le.max=Math.max(le.max,Z))}seriesValueAxis(r){const c=this.plotArea,m=r.axis,Z=m?c.namedValueAxes[m]:c.valueAxis;if(!Z)throw new Error("Unable to locate value axis with name "+m);return Z}reflow(r){const c=this.categorySlots=[],m=this.points,Z=this.categoryAxis;let le=0;this.traverseDataPoints((Re,gt)=>{const{categoryIx:hn,series:di}=gt,no=this.seriesValueAxis(di),Mo=m[le++];let ir=c[hn];if(ir||(c[hn]=ir=this.categorySlot(Z,hn,no)),Mo){const Wr=this.plotRange(Mo,no.startValue()),Qr=this.valueSlot(no,Wr);if(Qr){const Bs=this.pointSlot(ir,Qr);Mo.aboveAxis=this.aboveAxis(Mo,no),Mo.stackValue=Wr[1],this.options.isStacked100&&(Mo.percentage=this.plotValue(Mo)),this.reflowPoint(Mo,Bs)}else Mo.visible=!1}}),this.reflowCategories(c),!this.options.clip&&this.options.limitPoints&&this.points.length&&this.limitPoints(),this.box=r}valueSlot(r,c){return r.getSlot(c[0],c[1],!this.options.clip)}limitPoints(){const r=this.categoryPoints,c=r[0].concat(ji(r));for(let m=0;m<c.length;m++)c[m]&&this.limitPoint(c[m])}limitPoint(r){const c=this.categoryAxis.limitSlot(r.box);c.equals(r.box)||r.reflow(c)}aboveAxis(r,c){const m=this.categoryAxisCrossingValue(c),Z=r.value;return c.options.reverse?Z<m:Z>=m}categoryAxisCrossingValue(r){const c=this.categoryAxis,m=r.options;return[].concat(m.axisCrossingValues||m.axisCrossingValue)[c.axisIndex||0]||0}reflowPoint(r,c){r.reflow(c)}reflowCategories(){}pointSlot(r,c){const Z=this.options.invertAxes,le=Z?c:r,Re=Z?r:c;return new Ar(le.x1,Re.y1,le.x2,Re.y2)}categorySlot(r,c){return r.getSlot(c)}traverseDataPoints(r){const c=this.options.series,m=Uo(c),Z=c.length;for(let le=0;le<Z;le++)this._outOfRangeCallback(c[le],"_outOfRangeMinPoint",le,r);for(let le=0;le<m;le++)for(let Re=0;Re<Z;Re++){const gt=c[Re],hn=this.categoryAxis.categoryAt(le);r(this.plotArea.bindPoint(gt,le),{category:hn,categoryIx:le,categoriesCount:m,series:gt,seriesIx:Re})}for(let le=0;le<Z;le++)this._outOfRangeCallback(c[le],"_outOfRangeMaxPoint",le,r)}_outOfRangeCallback(r,c,m,Z){const le=r[c];if(le){const Re=le.categoryIx;Z(this.plotArea.bindPoint(r,Re,le.item),{category:le.category,categoryIx:Re,series:r,seriesIx:m,dataItem:le.item})}}formatPointValue(r,c){return null===r.value?"":this.chartService.format.auto(c,r.value)}pointValue(r){return r.valueFields.value}}ms(gm,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0});const Xd=gm,Ed={click:function(ve,r){return ve.trigger(Lc,this.eventArgs(r))},hover:function(ve,r){return ve.trigger(ul,this.eventArgs(r))},over:function(ve,r){return ve.trigger(Mc,this.eventArgs(r))},out:function(ve,r){return ve.trigger(uf,this.eventArgs(r))},eventArgs:function(ve){return{value:this.value,percentage:this.percentage,stackValue:this.stackValue,category:this.category,series:this.series,dataItem:this.dataItem,runningTotal:this.runningTotal,total:this.total,element:Nr(ve),originalEvent:ve,point:this}}},Dh={createNote:function(){const ve=this.options.notes,r=this.noteText||ve.label.text;!1!==ve.visible&&Bi(r)&&null!==r&&(this.note=new Rt({value:this.value,text:r,dataItem:this.dataItem,category:this.category,series:this.series},this.options.notes,this.owner.chartService),this.append(this.note))}};class Vh extends ga{constructor(r,c){super(),this.value=r,this.options=c,this.aboveAxis=wr(this.options.aboveAxis,!0),this.tooltipTracking=!0}render(){const{markers:r,labels:c}=this.options;if(!this._rendered){if(this._rendered=!0,r.visible&&r.size&&(this.marker=this.createMarker(),this.append(this.marker)),c.visible){const m=Xt(c),Z=this.pointData();let le=this.value;m?le=m(Z):c.format&&(le=this.formatValue(c.format)),this.label=new ft(le,sn({align:R,vAlign:R,margin:{left:5,right:5},zIndex:wr(c.zIndex,this.series.zIndex)},c),Z),this.append(this.label)}this.createNote(),this.errorBar&&this.append(this.errorBar)}}markerBorder(){const r=this.options.markers,c=r.background,m=sn({color:this.color},r.border);return Bi(m.color)||(m.color=new yo.Z(c).brightness(.8).toHex()),m}createVisual(){}createMarker(){const r=this.options.markers;return new ra({type:r.type,width:r.size,height:r.size,rotation:r.rotation,background:r.background,border:this.markerBorder(),opacity:r.opacity,zIndex:wr(r.zIndex,this.series.zIndex),animation:r.animation,visual:r.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category})}markerBox(){return this.marker||(this.marker=this.createMarker(),this.marker.reflow(this._childBox)),this.marker.box}reflow(r){const{options:c,aboveAxis:m}=this,Z=c.vertical;this.render(),this.box=r;const le=r.clone();if(Z?m?le.y1-=le.height():le.y2+=le.height():m?le.x1+=le.width():le.x2-=le.width(),this._childBox=le,this.marker&&this.marker.reflow(le),this.reflowLabel(le),this.errorBars)for(let Re=0;Re<this.errorBars.length;Re++)this.errorBars[Re].reflow(le);if(this.note){let Re=this.markerBox();if(!c.markers.visible||!c.markers.size){const gt=Re.center();Re=new Ar(gt.x,gt.y,gt.x,gt.y)}this.note.reflow(Re)}}reflowLabel(r){const{options:c,label:m}=this;let Z=c.labels.position;m&&(Z=Z===Wo?z:Z,Z=Z===vr?C:Z,m.reflow(r),m.box.alignTo(this.markerBox(),Z),m.reflow(m.box))}createHighlight(){const r=this.options.highlight.markers,c=this.markerBorder().color,m=this.options.markers,Z=m.size+(m.border.width||0)+(r.border.width||0),le=new ra({type:m.type,width:Z,height:Z,rotation:m.rotation,background:r.color||c,border:{color:r.border.color,width:r.border.width,opacity:wr(r.border.opacity,1)},opacity:wr(r.opacity,1)});return le.reflow(this._childBox),le.getElement()}highlightVisual(){return(this.marker||{}).visual}highlightVisualArgs(){const r=this.marker;let c,m;if(r)m=r.paddingBox.toRect(),c=r.visual;else{const Z=this.options.markers.size,le=Z/2,Re=this.box.center();m=new Ss.Z([Re.x-le,Re.y-le],[Z,Z])}return{options:this.options,rect:m,visual:c}}tooltipAnchor(){const r=this.markerBox(),c=this.owner.pane.clipBox();if(!c||c.overlaps(r)){const le=O;let Re,gt;return this.aboveAxis?(Re=r.y1,gt=C):(Re=r.y2,gt=z),{point:new Ts(r.x2+5,Re),align:{horizontal:le,vertical:gt}}}}formatValue(r){return this.owner.formatPointValue(this,r)}overlapsBox(r){return this.markerBox().overlaps(r)}unclipElements(){this.label&&(this.label.options.noclip=!0),this.note&&(this.note.options.noclip=!0)}pointData(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,series:this.series}}}Vh.prototype.defaults={vertical:!0,markers:{visible:!0,background:ne,size:8,type:x,border:{width:2},opacity:1},labels:{visible:!1,position:Wo,margin:Eo(3),padding:Eo(4),animation:{type:ql,delay:ud}},notes:{label:{}},highlight:{markers:{border:{color:"#fff",width:2}},zIndex:100},errorBars:{line:{width:1}}},sn(Vh.prototype,Ed),sn(Vh.prototype,Dh);const Ju=Vh;class ou extends ga{constructor(r,c,m){super(),this.linePoints=r,this.series=c,this.seriesIx=m}points(){return this.toGeometryPoints(this.linePoints)}toGeometryPoints(r){const c=[];for(let m=0,Z=r.length;m<Z;m++)r[m]&&!1!==r[m].visible&&c.push(r[m]._childBox.toRect().center());return c}createVisual(){const r=this.series.visual;r?(this.visual=r({points:this.toGeometryPoints(this.linePoints),series:this.series,sender:this.getSender(),createVisual:()=>(this.segmentVisual(),this.visual)}),this.visual&&!Bi(this.visual.options.zIndex)&&(this.visual.options.zIndex=this.series.zIndex)):this.segmentVisual()}segmentVisual(){const{options:r,series:c}=this;let{color:m,_defaults:Z}=c;mt(m)&&Z&&(m=Z.color);const le=Js.y.fromPoints(this.points(),{stroke:{color:m,width:c.width,opacity:c.opacity,dashType:c.dashType},zIndex:c.zIndex});r.closed&&le.close(),this.visual=le}aliasFor(r,c){return this.parent.getNearestPoint(c.x,c.y,this.seriesIx)}}ms(ou,{closed:!1});const qa=ou;function Mh(ve,r,c,m,Z){const le=ve.box,Re=new ls.Z;return Re[r]=le[r+c],Re[m]=le[m+Z],Re}const Uc={calculateStepPoints:function(ve){const r=this.parent.plotArea.seriesCategoryAxis(this.series),{justified:c,vertical:m,reverse:Z}=r.options,le=m?ge:Ce,Re=m?Ce:ge,gt=Z?2:1,hn=gt;let di=Mh(ve[0],le,gt,Re,hn);const no=[di];for(let Mo=1;Mo<ve.length;Mo++){const ir=Mh(ve[Mo],le,gt,Re,hn);if(di[le]!==ir[le]){const Wr=new ls.Z;Wr[le]=di[le],Wr[Re]=ir[Re],no.push(Wr,ir)}di=ir}return c?di!==ji(no)&&no.push(di):no.push(Mh(ji(ve),le,gt,Re,Z?1:2)),no}};class pu extends qa{points(){return this.calculateStepPoints(this.linePoints)}}sn(pu.prototype,Uc);const Od=pu,qd=class Fd extends qa{segmentVisual(){const r=this.series,c=r._defaults;let m=r.color;mt(m)&&c&&(m=c.color);const le=new Jc(this.options.closed).process(this.points()),Re=new Js.y({stroke:{color:m,width:r.width,opacity:r.opacity,dashType:r.dashType},zIndex:r.zIndex});Re.segments.push.apply(Re.segments,le),this.visual=Re}},Df={renderSegments:function(){const{options:ve,seriesPoints:r}=this,c=ve.series,m=r.length;let Z;this._segments=[];for(let le=0;le<m;le++){const Re=c[le],gt=this.sortPoints(r[le]),hn=gt.length;let di=[];for(let no=0;no<hn;no++){const Mo=gt[no];Mo?di.push(Mo):this.seriesMissingValues(Re)!==Di&&(di.length>1&&(Z=this.createSegment(di,Re,le,Z),this._addSegment(Z)),di=[])}di.length>1&&(Z=this.createSegment(di,Re,le,Z),this._addSegment(Z))}this.children.unshift.apply(this.children,this._segments)},_addSegment:function(ve){this._segments.push(ve),ve.parent=this},sortPoints:function(ve){return ve},seriesMissingValues:function(ve){const r=ve.missingValues;return!r&&this.options.isStacked?rc:r||Di},getNearestPoint:function(ve,r,c){const m=new Ts(ve,r),Z=this.seriesPoints[c];let Re,le=U;for(let gt=0;gt<Z.length;gt++){const hn=Z[gt];if(hn&&Bi(hn.value)&&null!==hn.value&&!1!==hn.visible){const no=hn.box.center().distanceTo(m);no<le&&(Re=hn,le=no)}}return Re}};class Au extends da{setup(){this._setEnd(this.options.box.x1)}step(r){const c=this.options.box;this._setEnd(xt(c.x1,c.x2,r))}_setEnd(r){const c=this.element,m=c.segments,Z=m[1].anchor(),le=m[2].anchor();c.suspend(),Z.setX(r),c.resume(),le.setX(r)}}ms(Au,{duration:ud}),Pr.current.register("clip",Au);const ef=Au,ru={createAnimation:function(){const ve=this.getRoot();if(ve&&!1!==(ve.options||{}).transitions){const r=ve.size(),c=Js.y.fromRect(r.toRect());this.visual.clip(c),this.animation=new ef(c,{box:r}),Th(this.options.series)&&this._setChildrenAnimation(c)}},_setChildrenAnimation:function(ve){const r=this.animationPoints();for(let c=0;c<r.length;c++){const m=r[c];m&&m.visual&&Bi(m.visual.options.zIndex)&&m.visual.clip(ve)}}};class mf extends Xd{render(){super.render(),this.updateStackRange(),this.renderSegments()}pointType(){return Ju}createPoint(r,c){const{series:m,seriesIx:Z}=c,le=this.seriesMissingValues(m);let Re=r.valueFields.value;if(!Bi(Re)||null===Re){if(le!==rc)return null;Re=0}let gt=this.pointOptions(m,Z);gt=this.evalPointOptions(gt,Re,c);let hn=r.fields.color||m.color;mt(m.color)&&(hn=gt.color);const di=new Ju(Re,gt);return di.color=hn,this.append(di),di}plotRange(r){let c=this.plotValue(r);if(this.options.isStacked){const Z=this.categoryPoints[r.categoryIx];for(let le=0;le<Z.length;le++){const Re=Z[le];if(r===Re)break;c+=this.plotValue(Re),this.options.isStacked100&&(c=Math.min(c,1))}}return[c,c]}createSegment(r,c,m){const Z=c.style;let le;return le=Z===ns?Od:Z===Jr?qd:qa,new le(r,c,m)}animationPoints(){const r=this.points,c=[];for(let m=0;m<r.length;m++)c.push((r[m]||{}).marker);return c.concat(this._segments)}supportsPointInactiveOpacity(){return!1}}sn(mf.prototype,Df,ru);const Rp=mf,Qc=class ah extends qa{constructor(r,c,m,Z,le){super(r,c,m),this.prevSegment=Z,this.stackPoints=le}createVisual(){const r=this.series,c=r._defaults,m=r.line||{};let Z=r.color;mt(Z)&&c&&(Z=c.color),this.visual=new ht.Z({zIndex:r.zIndex}),this.createFill({fill:{color:Z,opacity:r.opacity},stroke:null}),m.width>0&&!1!==m.visible&&this.createStroke({stroke:sn({color:Z,opacity:r.opacity,lineCap:"butt"},m)})}strokeSegments(){let r=this._strokeSegments;return r||(r=this._strokeSegments=this.createStrokeSegments()),r}createStrokeSegments(){return this.segmentsFromPoints(this.points())}stackSegments(){return this.prevSegment?this.prevSegment.createStackSegments(this.stackPoints):this.createStackSegments(this.stackPoints)}createStackSegments(r){return this.segmentsFromPoints(this.toGeometryPoints(r)).reverse()}segmentsFromPoints(r){return r.map(c=>new cc.Z(c))}createStroke(r){const c=new Js.y(r);c.segments.push.apply(c.segments,this.strokeSegments()),this.visual.append(c)}hasStackSegment(){return this.prevSegment||this.stackPoints&&this.stackPoints.length}createFill(r){const c=this.strokeSegments(),m=c.slice(0),Z=this.hasStackSegment();if(Z){const Re=this.stackSegments();Zi(m,Re)}const le=new Js.y(r);le.segments.push.apply(le.segments,m),!Z&&c.length>1&&this.fillToAxes(le),this.visual.append(le)}fillToAxes(r){const c=this.parent,m=c.options.invertAxes,Z=c.seriesValueAxis(this.series),le=c.categoryAxisCrossingValue(Z),Re=Z.getSlot(le,le,!0),gt=this.strokeSegments(),hn=gt[0].anchor(),di=ji(gt).anchor();let no=m?Re.x1:Re.y1;m?r.lineTo(no,di.y).lineTo(no,hn.y):r.lineTo(di.x,no).lineTo(hn.x,no)}};class kh extends Qc{createStrokeSegments(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))}createStackSegments(r){return this.segmentsFromPoints(this.calculateStepPoints(r)).reverse()}}sn(kh.prototype,Uc);const $p=kh,gf=class Mf extends Qc{createStrokeSegments(){const r=new Jc(this.options.closed),c=this.points();return r.process(c)}createStackSegments(){const r=this.strokeSegments(),c=[];for(let m=r.length-1;m>=0;m--){const Z=r[m];c.push(new cc.Z(Z.anchor(),Z.controlOut(),Z.controlIn()))}return c}},pd=class Lp extends Rp{createSegment(r,c,m,Z){const Re=(c.line||{}).style;let gt,hn,di;return this.options.isStacked&&m>0&&Z&&("gap"!==this.seriesMissingValues(c)?(hn=Z.linePoints,gt=Z):hn=this._gapStackPoints(r,m,Re)),di=Re===ns?$p:Re===Jr?gf:Qc,new di(r,c,m,gt,hn)}reflow(r){super.reflow(r);const c=this._stackPoints;if(c)for(let m=0;m<c.length;m++){const Z=c[m],le=this.categoryAxis.getSlot(Z.categoryIx);Z.reflow(le)}}_gapStackPoints(r,c,m){const Z=this.seriesPoints;let le=r[0].categoryIx,Re=r.length;le<0&&(le=0,Re--);const gt=le+Re,hn=this.seriesOptions[0]._outOfRangeMinPoint?1:0,di=[];this._stackPoints=this._stackPoints||[];for(let no=le;no<gt;no++){const Mo=no+hn;let Wr,ir=c;do{ir--,Wr=Z[ir][Mo]}while(ir>0&&!Wr);if(Wr)m!==ns&&no>le&&!Z[ir][Mo-1]&&di.push(this._previousSegmentPoint(no,Mo,Mo-1,ir)),di.push(Wr),m!==ns&&no+1<gt&&!Z[ir][Mo+1]&&di.push(this._previousSegmentPoint(no,Mo,Mo+1,ir));else{const Qr=this._createGapStackPoint(no);this._stackPoints.push(Qr),di.push(Qr)}}return di}_previousSegmentPoint(r,c,m,Z){const le=this.seriesPoints;let gt,Re=Z;for(;Re>0&&!gt;)Re--,gt=le[Re][m];return gt?gt=le[Re][c]:(gt=this._createGapStackPoint(r),this._stackPoints.push(gt)),gt}_createGapStackPoint(r){const c=this.pointOptions({},0),m=new Ju(0,c);return m.categoryIx=r,m.series={},m}seriesMissingValues(r){return r.missingValues||rc}supportsPointInactiveOpacity(){return!1}},kf=class su extends jo.Z{constructor(){super(),this.axisRanges={}}update(r){const c=this.axisRanges;for(let m in r){const Z=r[m];let le=c[m];c[m]=le=le||{min:U,max:V},le.min=Math.min(le.min,Z.min),le.max=Math.max(le.max,Z.max)}}reset(r){this.axisRanges[r]=void 0}query(r){return this.axisRanges[r]}};class $u extends ga{constructor(r,c,m){super(c),this.textBox=new ft(r,this.options,m),this.append(this.textBox)}createVisual(){this.textBox.options.noclip=this.options.noclip}reflow(r){const c=this.options,{vertical:m,aboveAxis:Z}=c,le=this.children[0],Re=le.options,gt=le.box,hn=le.options.padding;let di=r;Re.align=m?R:O,Re.vAlign=m?z:R,c.position===wh?m?(Re.vAlign=z,!Z&&gt.height()<r.height()&&(Re.vAlign=C)):Re.align=Z?de:O:c.position===R?(Re.vAlign=R,Re.align=R):"insideBase"===c.position?m?Re.vAlign=Z?C:z:Re.align=Z?O:de:c.position===oh&&(m?di=Z?new Ar(r.x1,r.y1-gt.height(),r.x2,r.y1):new Ar(r.x1,r.y2,r.x2,r.y2+gt.height()):(Re.align=R,di=Z?new Ar(r.x2,r.y1,r.x2+gt.width(),r.y2):new Ar(r.x1-gt.width(),r.y1,r.x1,r.y2))),c.rotation||(m?hn.left=hn.right=(di.width()-le.contentBox.width())/2:hn.top=hn.bottom=(di.height()-le.contentBox.height())/2),le.reflow(di)}alignToClipBox(r){const m=this.options.vertical?Ce:ge,Z=m+"1",le=m+"2",gt=this.parent.box;if(gt[Z]<r[Z]||r[le]<gt[le]){const hn=this.children[0].paddingBox.clone();hn[Z]=Math.max(gt[Z],r[Z]),hn[le]=Math.min(gt[le],r[le]),this.reflow(hn)}}}ms($u,{position:oh,margin:Eo(3),padding:Eo(4),color:_,background:"",border:{width:1,color:""},aboveAxis:!0,vertical:!1,animation:{type:ql,delay:ud},zIndex:2});const jh=$u;class Ih extends ga{constructor(r,c){super(),this.options=c,this.color=c.color||ne,this.aboveAxis=wr(this.options.aboveAxis,!0),this.value=r}render(){this._rendered||(this._rendered=!0,this.createLabel(),this.createNote(),this.errorBar&&this.append(this.errorBar))}createLabel(){const r=this.options,c=r.labels;if(c.visible){const m=this.pointData();let le,Z=Xt(c);le=Z?Z(m):this.formatValue(c.format),this.label=new jh(le,sn({vertical:r.vertical},c),m),this.append(this.label)}}formatValue(r){return this.owner.formatPointValue(this,r)}reflow(r){this.render();const c=this.label;if(this.box=r,c&&(c.options.aboveAxis=this.aboveAxis,c.reflow(r)),this.note&&this.note.reflow(r),this.errorBars)for(let m=0;m<this.errorBars.length;m++)this.errorBars[m].reflow(r)}createVisual(){const{box:r,options:c}=this,m=c.visual;if(!1!==this.visible)if(super.createVisual(),m){const Z=this.rectVisual=m({category:this.category,dataItem:this.dataItem,value:this.value,sender:this.getSender(),series:this.series,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,rect:r.toRect(),createVisual:()=>{const le=new ht.Z;return this.createRect(le),le},options:c});Z&&this.visual.append(Z)}else r.width()>0&&r.height()>0&&this.createRect(this.visual)}createRect(r){const c=this.options,m=c.border,Z=Bi(m.opacity)?m.opacity:c.opacity,le=this.box.toRect();le.size.width=Math.round(le.size.width);const Re=this.rectVisual=Js.y.fromRect(le,{fill:{color:this.color,opacity:c.opacity},stroke:{color:this.getBorderColor(),width:m.width,opacity:Z,dashType:m.dashType}}),gt=this.box.width(),hn=this.box.height();if((c.vertical?gt:hn)>6&&(Gt(Re),(gt<1||hn<1)&&(Re.options.stroke.lineJoin="round")),r.append(Re),ta(c)){const no=this.createGradientOverlay(Re,{baseColor:this.color},sn({end:c.vertical?void 0:[0,1]},c.overlay));r.append(no)}}createHighlight(r){return Gt(Js.y.fromRect(this.box.toRect(),r))}highlightVisual(){return this.rectVisual}highlightVisualArgs(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}}getBorderColor(){const r=this.color,c=this.options.border,m=c._brightness||.8;let Z=c.color;return Bi(Z)||(Z=new yo.Z(r).brightness(m).toHex()),Z}tooltipAnchor(){const{options:r,box:c,aboveAxis:m}=this,Z=this.owner.pane.clipBox()||c;let gt,hn,le=O,Re=z;if(r.vertical)gt=Math.min(c.x2,Z.x2)+5,m?hn=Math.max(c.y1,Z.y1):(hn=Math.min(c.y2,Z.y2),Re=C);else{const di=Math.max(c.x1,Z.x1),no=Math.min(c.x2,Z.x2);r.isStacked?(Re=C,m?(le=de,gt=no):gt=di,hn=Math.max(c.y1,Z.y1)-5):(m?gt=no+5:(gt=di-5,le=de),hn=Math.max(c.y1,Z.y1))}return{point:new Ts(gt,hn),align:{horizontal:le,vertical:Re}}}overlapsBox(r){return this.box.overlaps(r)}pointData(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,series:this.series}}}sn(Ih.prototype,Ed),sn(Ih.prototype,Dh),Ih.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};const Pd=Ih;function Rd(ve,r){ve.forEach(r)}function If(ve,r){const c=ve.length;for(let m=c-1;m>=0;m--)r(ve[m],m-c-1)}class eu extends ga{constructor(r){super(r),this.forEach=r.rtl?If:Rd}reflow(r){const{vertical:c,gap:m,spacing:Z}=this.options,le=this.children,Re=le.length,gt=c?Ce:ge,hn=Re+m+Z*(Re-1),di=(c?r.height():r.width())/hn;let no=r[gt+1]+di*(m/2);this.forEach(le,(Mo,ir)=>{const Wr=(Mo.box||r).clone();Wr[gt+1]=no,Wr[gt+2]=no+di,Mo.reflow(Wr),ir<Re-1&&(no+=di*Z),no+=di})}}ms(eu,{vertical:!1,gap:0,spacing:0});const lh=eu;class zf extends ga{reflow(r){const c=this.options.vertical?ge:Ce,m=this.children,Z=m.length;let le=this.box=new Ar;for(let Re=0;Re<Z;Re++){const gt=m[Re];if(!1!==gt.visible){const hn=gt.box.clone();hn.snapTo(r,c),0===Re&&(le=this.box=hn.clone()),gt.reflow(hn),le.wrap(hn)}}}}ms(zf,{vertical:!0});const ch=zf;class Uf extends Xd{render(){super.render(),this.updateStackRange()}pointType(){return Pd}clusterType(){return lh}stackType(){return ch}stackLimits(r,c){return super.stackLimits(r,c)}createPoint(r,c){const{categoryIx:m,series:Z,seriesIx:le}=c,{options:Re,children:gt}=this,hn=Re.isStacked,di=this.pointValue(r);let no=this.pointOptions(Z,le);const Mo=no.labels;hn&&Mo.position===oh&&(Mo.position=wh),no.isStacked=hn;let ir=r.fields.color||Z.color;di<0&&no.negativeColor&&(ir=no.negativeColor),no=this.evalPointOptions(no,di,c),mt(Z.color)&&(ir=no.color);const Qr=new(this.pointType())(di,no);Qr.color=ir;let Bs=gt[m];return Bs||(Bs=new(this.clusterType())({vertical:Re.invertAxes,gap:Re.gap,spacing:Re.spacing,rtl:!Re.invertAxes&&(this.chartService||{}).rtl}),this.append(Bs)),hn?this.getStackWrap(Z,Bs).append(Qr):Bs.append(Qr),Qr}getStackWrap(r,c){const m=r.stack,Z=m&&(m.group||m),le=c.children;let Re;if(typeof Z===H){for(let gt=0;gt<le.length;gt++)if(le[gt]._stackGroup===Z){Re=le[gt];break}}else Re=le[0];return Re||(Re=new(this.stackType())({vertical:!this.options.invertAxes}),Re._stackGroup=Z,c.append(Re)),Re}categorySlot(r,c,m){const Z=this.options,le=r.getSlot(c),Re=m.startValue();if(Z.isStacked){const gt=m.getSlot(Re,Re,!0),hn=Z.invertAxes?ge:Ce;le[hn+1]=le[hn+2]=gt[hn+1]}return le}reflowCategories(r){const c=this.children,m=c.length;for(let Z=0;Z<m;Z++)c[Z].reflow(r[Z])}createAnimation(){this._setAnimationOptions(),super.createAnimation(),Th(this.options.series)&&this._setChildrenAnimation()}_setChildrenAnimation(){const r=this.points;for(let c=0;c<r.length;c++){const m=r[c],Z=m.visual;Z&&Bi(Z.options.zIndex)&&(m.options.animation=this.options.animation,m.createAnimation())}}_setAnimationOptions(){const r=this.options,c=r.animation||{};let m;if(r.isStacked){const Z=this.seriesValueAxis(r.series[0]);m=Z.getSlot(Z.startValue())}else m=this.categoryAxis.getSlot(0);c.origin=new ls.Z(m.x1,m.y1),c.vertical=!r.invertAxes}}ms(Uf,{animation:{type:Ns}});const tp=Uf;class Qu extends ga{constructor(r,c){super(c),this.value=r}reflow(r){const{options:c,value:m,owner:Z}=this,le=Z.seriesValueAxis(c),Re=le.getSlot(m.open,m.close),gt=le.getSlot(m.low,m.high);Re.x1=gt.x1=r.x1,Re.x2=gt.x2=r.x2,this.realBody=Re;const hn=gt.center().x,di=[];di.push([[hn,gt.y1],[hn,Re.y1]]),di.push([[hn,Re.y2],[hn,gt.y2]]),this.lines=di,this.box=gt.clone().wrap(Re),this._rendered||(this._rendered=!0,this.createNote()),this.reflowNote()}reflowNote(){this.note&&this.note.reflow(this.box)}createVisual(){super.createVisual(),this._mainVisual=this.mainVisual(this.options),this.visual.append(this._mainVisual),this.createOverlay()}mainVisual(r){const c=new ht.Z;return this.createBody(c,r),this.createLines(c,r),c}createBody(r,c){const m=Js.y.fromRect(this.realBody.toRect(),{fill:{color:this.color,opacity:c.opacity},stroke:null});c.border.width>0&&m.options.set("stroke",{color:this.getBorderColor(),width:c.border.width,dashType:c.border.dashType,opacity:wr(c.border.opacity,c.opacity)}),Gt(m),r.append(m),ta(c)&&r.append(this.createGradientOverlay(m,{baseColor:this.color},sn({end:c.vertical?void 0:[0,1]},c.overlay)))}createLines(r,c){this.drawLines(r,c,this.lines,c.line)}drawLines(r,c,m,Z){if(!m)return;const le={stroke:{color:Z.color||this.color,opacity:wr(Z.opacity,c.opacity),width:Z.width,dashType:Z.dashType,lineCap:"butt"}};for(let Re=0;Re<m.length;Re++){const gt=Js.y.fromPoints(m[Re],le);Gt(gt),r.append(gt)}}getBorderColor(){const r=this.options.border;let c=r.color;return Bi(c)||(c=new yo.Z(this.color).brightness(r._brightness).toHex()),c}createOverlay(){const r=Js.y.fromRect(this.box.toRect(),{fill:{color:ne,opacity:0},stroke:null});this.visual.append(r)}createHighlight(){const r=this.options.highlight,c=this.color;this.color=r.color||this.color;const m=this.mainVisual(sn({},this.options,{line:{color:this.getBorderColor()}},r));return this.color=c,m}highlightVisual(){return this._mainVisual}highlightVisualArgs(){return{options:this.options,rect:this.box.toRect(),visual:this._mainVisual}}tooltipAnchor(){const r=this.box,c=this.owner.pane.clipBox()||r;return{point:new Ts(r.x2+5,Math.max(r.y1,c.y1)+5),align:{horizontal:O,vertical:z}}}formatValue(r){return this.owner.formatPointValue(this,r)}overlapsBox(r){return this.box.overlaps(r)}}ms(Qu,{vertical:!0,border:{_brightness:.8},line:{width:2},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{4:d}</th></tr><tr><td>Open:</td><td>{0:C}</td></tr><tr><td>High:</td><td>{1:C}</td></tr><tr><td>Low:</td><td>{2:C}</td></tr><tr><td>Close:</td><td>{3:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}}}),sn(Qu.prototype,Ed),sn(Qu.prototype,Dh);const Yh=Qu;class zu extends Xd{reflowCategories(r){const c=this.children,m=c.length;for(let Z=0;Z<m;Z++)c[Z].reflow(r[Z])}addValue(r,c){const{categoryIx:m,category:Z,series:le,seriesIx:Re}=c,{children:gt,options:hn}=this,di=r.valueFields,Mo=Hh(this.splitValue(di)),ir=le.data[m];let Qr,Wr=this.categoryPoints[m];Wr||(this.categoryPoints[m]=Wr=[]),Mo&&(Qr=this.createPoint(r,c));let Bs=gt[m];Bs||(Bs=new lh({vertical:hn.invertAxes,gap:hn.gap,spacing:hn.spacing,rtl:!hn.invertAxes&&(this.chartService||{}).rtl}),this.append(Bs)),Qr&&(this.updateRange(di,c),Bs.append(Qr),Qr.categoryIx=m,Qr.category=Z,Qr.series=le,Qr.seriesIx=Re,Qr.owner=this,Qr.dataItem=ir,Qr.noteText=r.fields.noteText),this.points.push(Qr),Wr.push(Qr)}pointType(){return Yh}createPoint(r,c){const{series:m}=c,Z=this.pointType(),le=r.valueFields;let Re=sn({},m),gt=r.fields.color||m.color;Re=this.evalPointOptions(Re,le,c),(m.type===ye||m.type===us)&&le.open>le.close&&(gt=r.fields.downColor||m.downColor||m.color),mt(m.color)&&(gt=Re.color),Re.vertical=!this.options.invertAxes;const hn=new Z(le,Re);return hn.color=gt,hn}splitValue(r){return[r.low,r.open,r.close,r.high]}updateRange(r,c){const m=c.series.axis,Z=this.splitValue(r);let le=this.valueAxisRanges[m];le=this.valueAxisRanges[m]=le||{min:U,max:V},le=this.valueAxisRanges[m]={min:Math.min.apply(Math,Z.concat([le.min])),max:Math.max.apply(Math,Z.concat([le.max]))}}formatPointValue(r,c){const m=r.value;return this.chartService.format.auto(c,m.open,m.high,m.low,m.close,r.category)}animationPoints(){return this.points}}sn(zu.prototype,ru);const dh=zu;class _f extends Yh{constructor(r,c){super(r,c),this.createNote()}reflow(r){const{options:c,value:m,owner:Z}=this,le=Z.seriesValueAxis(c);let Re,gt;this.boxSlot=gt=le.getSlot(m.q1,m.q3),this.realBody=gt,this.reflowBoxSlot(r),this.whiskerSlot=Re=le.getSlot(m.lower,m.upper),this.reflowWhiskerSlot(r);const hn=le.getSlot(m.median);if(m.mean){const di=le.getSlot(m.mean);this.meanPoints=this.calcMeanPoints(r,di)}this.whiskerPoints=this.calcWhiskerPoints(gt,Re),this.medianPoints=this.calcMedianPoints(r,hn),this.box=Re.clone().wrap(gt),this.reflowNote()}reflowBoxSlot(r){this.boxSlot.x1=r.x1,this.boxSlot.x2=r.x2}reflowWhiskerSlot(r){this.whiskerSlot.x1=r.x1,this.whiskerSlot.x2=r.x2}calcMeanPoints(r,c){return[[[r.x1,c.y1],[r.x2,c.y1]]]}calcWhiskerPoints(r,c){const m=c.center().x;return[[[m-5,c.y1],[m+5,c.y1],[m,c.y1],[m,r.y1]],[[m-5,c.y2],[m+5,c.y2],[m,c.y2],[m,r.y2]]]}calcMedianPoints(r,c){return[[[r.x1,c.y1],[r.x2,c.y1]]]}renderOutliers(r){const c=this.value,m=c.outliers||[],Z=3*Math.abs(c.q3-c.q1),le=[];let Re=r.markers||{};for(let gt=0;gt<m.length;gt++){const hn=m[gt];Re=hn<c.q3+Z&&hn>c.q1-Z?r.outliers:r.extremes;let di=sn({},Re.border);Bi(di.color)||(di.color=Bi(this.color)?this.color:new yo.Z(Re.background).brightness(.8).toHex());const no=new ra({type:Re.type,width:Re.size,height:Re.size,rotation:Re.rotation,background:Re.background,border:di,opacity:Re.opacity});no.value=hn,le.push(no)}return this.reflowOutliers(le),le}reflowOutliers(r){const c=this.owner.seriesValueAxis(this.options),m=this.box.center();for(let Z=0;Z<r.length;Z++){const Re=c.getSlot(r[Z].value);this.options.vertical?Re.move(m.x):Re.move(void 0,m.y),this.box=this.box.wrap(Re),r[Z].reflow(Re)}}mainVisual(r){const c=super.mainVisual(r),m=this.renderOutliers(r);for(let Z=0;Z<m.length;Z++){const le=m[Z].getElement();le&&c.append(le)}return c}createLines(r,c){this.drawLines(r,c,this.whiskerPoints,c.whiskers),this.drawLines(r,c,this.medianPoints,c.median),this.drawLines(r,c,this.meanPoints,c.mean)}getBorderColor(){return(this.options.border||{}).color?this.options.border.color:this.color?this.color:super.getBorderColor()}}ms(_f,{border:{_brightness:.8},line:{width:2},median:{color:"#f6f6f6"},mean:{width:2,dashType:"dash",color:"#f6f6f6"},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{6:d}</th></tr><tr><td>Lower:</td><td>{0:C}</td></tr><tr><td>Q1:</td><td>{1:C}</td></tr><tr><td>Median:</td><td>{2:C}</td></tr><tr><td>Mean:</td><td>{5:C}</td></tr><tr><td>Q3:</td><td>{3:C}</td></tr><tr><td>Upper:</td><td>{4:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}},outliers:{visible:!0,size:8,type:k,background:ne,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:x,background:ne,border:{width:2,opacity:1},opacity:0}}),sn(_f.prototype,Ed);const _h=_f,Ou=class Xp extends _h{reflowBoxSlot(r){this.boxSlot.y1=r.y1,this.boxSlot.y2=r.y2}reflowWhiskerSlot(r){this.whiskerSlot.y1=r.y1,this.whiskerSlot.y2=r.y2}calcMeanPoints(r,c){return[[[c.x1,r.y1],[c.x1,r.y2]]]}calcWhiskerPoints(r,c){const m=c.center().y;return[[[c.x1,m-5],[c.x1,m+5],[c.x1,m],[r.x1,m]],[[c.x2,m-5],[c.x2,m+5],[c.x2,m],[r.x2,m]]]}calcMedianPoints(r,c){return[[[c.x1,r.y1],[c.x1,r.y2]]]}},Af=class _m extends dh{addValue(r,c){const{categoryIx:m,category:Z,series:le,seriesIx:Re}=c,{children:gt,options:hn}=this,di=r.valueFields,Mo=Hh(this.splitValue(di)),ir=le.data[m];let Qr,Wr=this.categoryPoints[m];Wr||(this.categoryPoints[m]=Wr=[]),Mo&&(Qr=this.createPoint(r,c));let Bs=gt[m];Bs||(Bs=new lh({vertical:hn.invertAxes,gap:hn.gap,spacing:hn.spacing,rtl:!hn.invertAxes&&(this.chartService||{}).rtl}),this.append(Bs)),Qr&&(this.updateRange(di,c),Bs.append(Qr),Qr.categoryIx=m,Qr.category=Z,Qr.series=le,Qr.seriesIx=Re,Qr.owner=this,Qr.dataItem=ir),this.points.push(Qr),Wr.push(Qr)}pointType(){return this.options.invertAxes?Ou:_h}splitValue(r){return[r.lower,r.q1,r.median,r.q3,r.upper]}updateRange(r,c){const m=c.series.axis;let Z=this.valueAxisRanges[m],le=this.splitValue(r).concat(this.filterOutliers(r.outliers));Bi(r.mean)&&(le=le.concat(r.mean)),Z=this.valueAxisRanges[m]=Z||{min:U,max:V},Z=this.valueAxisRanges[m]={min:Math.min.apply(Math,le.concat([Z.min])),max:Math.max.apply(Math,le.concat([Z.max]))}}formatPointValue(r,c){const m=r.value;return this.chartService.format.auto(c,m.lower,m.q1,m.median,m.q3,m.upper,m.mean,r.category)}filterOutliers(r){const c=(r||[]).length,m=[];for(let Z=0;Z<c;Z++){const le=r[Z];Bi(le)&&null!==le&&m.push(le)}return m}supportsPointInactiveOpacity(){return!1}},au=class ac extends wd{getAxis(){const r=this.chart.seriesAxes(this.series);return this.isVertical?r.y:r.x}};class wu extends ga{constructor(r,c){super(c),this.plotArea=r,this.chartService=r.chartService,this._initFields(),this.render()}_initFields(){this.xAxisRanges={},this.yAxisRanges={},this.points=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[]}render(){this.traverseDataPoints(this.addValue.bind(this))}addErrorBar(r,c,m){const Z=r.value[c],le=c+"Value",Re=c+"ErrorLow",gt=c+"ErrorHigh",{seriesIx:hn,series:di}=m,no=r.options.errorBars,Mo=m[Re],ir=m[gt];if(An(Z)){let Wr;An(Mo)&&An(ir)&&(Wr={low:Mo,high:ir}),no&&Bi(no[le])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[c][hn]=this.seriesErrorRanges[c][hn]||new id(no[le],di,c),Wr=this.seriesErrorRanges[c][hn].getErrorRange(Z,no[le])),Wr&&this.addPointErrorBar(Wr,r,c)}}addPointErrorBar(r,c,m){const{low:Z,high:le}=r,{series:Re,options:{errorBars:gt}}=c,hn=m===Ce,di={};c[m+"Low"]=Z,c[m+"High"]=le,c.errorBars=c.errorBars||[];const no=new au(Z,le,hn,this,Re,gt);c.errorBars.push(no),c.append(no),di[m]=Z,this.updateRange(di,Re),di[m]=le,this.updateRange(di,Re)}addValue(r,c){const{x:m,y:Z}=r,le=c.seriesIx,gt=this.seriesMissingValues(this.options.series[le]),hn=this.seriesPoints[le];let no,di=r;dl(m)&&dl(Z)||(di=this.createMissingValue(di,gt)),di&&(no=this.createPoint(di,c),no&&(Object.assign(no,c),this.addErrorBar(no,ge,c),this.addErrorBar(no,Ce,c)),this.updateRange(di,c.series)),this.points.push(no),hn.push(no)}seriesMissingValues(r){return r.missingValues}createMissingValue(){}updateRange(r,c){const m=this.chartService.intl,{xAxis:Z,yAxis:le}=c;let{x:Re,y:gt}=r,hn=this.xAxisRanges[Z],di=this.yAxisRanges[le];dl(Re)&&(hn=this.xAxisRanges[Z]=hn||{min:U,max:V},$n(Re)&&(Re=ks(m,Re)),hn.min=Math.min(hn.min,Re),hn.max=Math.max(hn.max,Re)),dl(gt)&&(di=this.yAxisRanges[le]=di||{min:U,max:V},$n(gt)&&(gt=ks(m,gt)),di.min=Math.min(di.min,gt),di.max=Math.max(di.max,gt))}evalPointOptions(r,c,m){const{series:Z,seriesIx:le}=m,Re={defaults:Z._defaults,excluded:["data","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint","drilldownSeriesFactory"]};let gt=this._evalSeries[le];Bi(gt)||(this._evalSeries[le]=gt=Gi(r,{},Re,!0));let hn=r;return gt&&(hn=sn({},r),Gi(hn,{value:c,series:Z,dataItem:m.dataItem},Re)),hn}pointType(){return Ju}pointOptions(r,c){let m=this.seriesOptions[c];if(!m){const Z=this.pointType().prototype.defaults;this.seriesOptions[c]=m=sn({},Z,{markers:{opacity:r.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},r)}return m}createPoint(r,c){const m=c.series;let Z=this.pointOptions(m,c.seriesIx),le=c.color||m.color;Z=this.evalPointOptions(Z,r,c),mt(m.color)&&(le=Z.color);const Re=new Ju(r,Z);return Re.color=le,this.append(Re),Re}seriesAxes(r){const{xAxis:c,yAxis:m}=r,Z=this.plotArea,le=c?Z.namedXAxes[c]:Z.axisX,Re=m?Z.namedYAxes[m]:Z.axisY;if(!le)throw new Error("Unable to locate X axis with name "+c);if(!Re)throw new Error("Unable to locate Y axis with name "+m);return{x:le,y:Re}}reflow(r){const c=this.points,m=!this.options.clip;let Z=0;this.traverseDataPoints((le,Re)=>{const gt=c[Z++],hn=this.seriesAxes(Re.series),di=hn.x.getSlot(le.x,le.x,m),no=hn.y.getSlot(le.y,le.y,m);if(gt)if(di&&no){const Mo=this.pointSlot(di,no);gt.reflow(Mo)}else gt.visible=!1}),this.box=r}pointSlot(r,c){return new Ar(r.x1,c.y1,r.x2,c.y2)}traverseDataPoints(r){const{options:{series:c},seriesPoints:m}=this;for(let Z=0;Z<c.length;Z++){const le=c[Z];m[Z]||(m[Z]=[]);for(let gt=0;gt<le.data.length;gt++){const{valueFields:hn,fields:di}=this.plotArea.bindPoint(le,gt);r(hn,sn({pointIx:gt,series:le,seriesIx:Z,dataItem:le.data[gt],owner:this},di))}}}formatPointValue(r,c){const m=r.value;return this.chartService.format.auto(c,m.x,m.y)}animationPoints(){const r=this.points,c=[];for(let m=0;m<r.length;m++)c.push((r[m]||{}).marker);return c}}ms(wu,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),sn(wu.prototype,ru);const Of=wu;class Gf extends Ju{constructor(r,c){super(r,c),this.category=r.category}createHighlight(){const r=this.options.highlight,c=r.border,m=this.options.markers,Z=this.box.center(),le=(m.size+m.border.width+c.width)/2,Re=new ht.Z,gt=new sl.Z(new Jt.Z([Z.x,Z.y+le/5+c.width/2],le+c.width/2),{stroke:{color:"none"},fill:this.createGradient({gradient:"bubbleShadow",color:m.background,stops:[{offset:0,color:m.background,opacity:.3},{offset:1,color:m.background,opacity:0}]})}),hn=new sl.Z(new Jt.Z([Z.x,Z.y],le),{stroke:{color:c.color||new yo.Z(m.background).brightness(.8).toHex(),width:c.width,opacity:c.opacity},fill:{color:m.background,opacity:r.opacity}});return Re.append(gt,hn),Re}}Gf.prototype.defaults=sn({},Gf.prototype.defaults,{labels:{position:R},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),Gf.prototype.defaults.highlight.zIndex=void 0;const vm=Gf;class Np extends Of{_initFields(){this._maxSize=V,super._initFields()}addValue(r,c){null!==r.size&&(r.size>0||r.size<0&&c.series.negativeValues.visible)?(this._maxSize=Math.max(this._maxSize,Math.abs(r.size)),super.addValue(r,c)):(this.points.push(null),this.seriesPoints[c.seriesIx].push(null))}reflow(r){this.updateBubblesSize(r),super.reflow(r)}pointType(){return vm}createPoint(r,c){const m=c.series,le=c.pointIx*(ud/m.data.length),Re={delay:le,duration:ud-le,type:qs};let gt=c.color||m.color;r.size<0&&m.negativeValues.visible&&(gt=wr(m.negativeValues.color,gt));let hn=sn({labels:{animation:{delay:le,duration:ud-le}}},this.pointOptions(m,c.seriesIx),{markers:{type:x,border:m.border,opacity:m.opacity,animation:Re}});hn=this.evalPointOptions(hn,r,c),mt(m.color)&&(gt=hn.color),hn.markers.background=gt;const di=new vm(r,hn);return di.color=gt,this.append(di),di}updateBubblesSize(r){const{options:{series:c}}=this,m=Math.min(r.width(),r.height());for(let Z=0;Z<c.length;Z++){const le=c[Z],Re=this.seriesPoints[Z],di=(le.minSize||Math.max(.02*m,10))/2,no=(le.maxSize||.2*m)/2,Mo=Math.PI*di*di,Qr=(Math.PI*no*no-Mo)/this._maxSize;for(let Bs=0;Bs<Re.length;Bs++){const oa=Re[Bs];if(oa){const Ba=Math.abs(oa.value.size)*Qr,tl=Math.sqrt((Mo+Ba)/Math.PI),Ud=wr(oa.options.zIndex,0)+(1-tl/no);sn(oa.options,{zIndex:Ud,markers:{size:2*tl,zIndex:Ud},labels:{zIndex:Ud+1}})}}}}formatPointValue(r,c){const m=r.value;return this.chartService.format.auto(c,m.x,m.y,m.size,r.category)}createAnimation(){}createVisual(){}}ms(Np,{tooltip:{format:"{3}"},labels:{format:"{3}"}});const Yt=Np;class Ri extends ra{}sn(Ri.prototype,Ed);const ee=Ri;class Ze extends ga{constructor(r,c){super(c),this.aboveAxis=this.options.aboveAxis,this.color=c.color||ne,this.value=r}render(){const r=this.options;this._rendered||(this._rendered=!0,Bi(this.value.target)&&(this.target=new ee({type:r.target.shape,background:r.target.color||this.color,opacity:r.opacity,zIndex:r.zIndex,border:r.target.border,vAlign:z,align:de}),this.target.value=this.value,this.target.dataItem=this.dataItem,this.target.series=this.series,this.append(this.target)),this.createLabel(),this.createNote())}createLabel(){const c=this.options.labels;if(c.visible){const m=this.pointData();let le,Z=Xt(c);le=Z?Z(m):this.formatValue(c.format),this.label=new jh(le,c,m),this.append(this.label)}}reflow(r){this.render();const{options:c,target:m,owner:Z}=this,le=c.invertAxes,Re=Z.seriesValueAxis(this.options),gt=Z.categorySlot(Z.categoryAxis,c.categoryIx,Re),hn=Re.getSlot(this.value.target),di=le?hn:gt,no=le?gt:hn;if(m){const ir=new Ar(di.x1,no.y1,di.x2,no.y2);m.options.height=le?ir.height():c.target.line.width,m.options.width=le?c.target.line.width:ir.width(),m.reflow(ir)}const Mo=this.label;Mo&&(Mo.options.aboveAxis=this.aboveAxis,Mo.reflow(r)),this.note&&this.note.reflow(r),this.box=r}createVisual(){super.createVisual();const r=this.options,c=Js.y.fromRect(this.box.toRect(),{fill:{color:this.color,opacity:r.opacity},stroke:null});r.border.width>0&&c.options.set("stroke",{color:r.border.color||this.color,width:r.border.width,dashType:r.border.dashType,opacity:wr(r.border.opacity,r.opacity)}),this.bodyVisual=c,Gt(c),this.visual.append(c)}createAnimation(){this.bodyVisual&&(this.animation=da.create(this.bodyVisual,this.options.animation))}createHighlight(r){return Js.y.fromRect(this.box.toRect(),r)}highlightVisual(){return this.bodyVisual}highlightVisualArgs(){return{rect:this.box.toRect(),visual:this.bodyVisual,options:this.options}}formatValue(r){return this.owner.formatPointValue(this,r)}pointData(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series}}overlapsBox(r){return this.box.overlaps(r)}}Ze.prototype.tooltipAnchor=Pd.prototype.tooltipAnchor,ms(Ze,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},labels:{visible:!1},tooltip:{format:"Current: {0}<br />Target: {1}"},notes:{label:{}}}),sn(Ze.prototype,Ed),sn(Ze.prototype,Dh);const Yn=Ze;class Bo extends Xd{constructor(r,c){(function $r(ve){const r=ve.series;for(let c=0;c<r.length;c++){const m=r[c],Z=m.data;Z&&!De(Z[0])&&!fn(Z[0])&&(m.data=[Z])}})(c),super(r,c)}reflowCategories(r){const c=this.children,m=c.length;for(let Z=0;Z<m;Z++)c[Z].reflow(r[Z])}plotRange(r){const m=this.seriesValueAxis(r.series),Z=this.categoryAxisCrossingValue(m);return[Z,r.value.current||Z]}createPoint(r,c){const{categoryIx:m,series:Z}=c,{options:le,children:Re}=this,gt=r.valueFields;let hn=sn({vertical:!le.invertAxes,overlay:Z.overlay,categoryIx:m,invertAxes:le.invertAxes},Z),di=r.fields.color||Z.color;hn=this.evalPointOptions(hn,gt,c),mt(Z.color)&&(di=hn.color);const no=new Yn(gt,hn);no.color=di;let Mo=Re[m];return Mo||(Mo=new lh({vertical:le.invertAxes,gap:le.gap,spacing:le.spacing,rtl:!le.invertAxes&&(this.chartService||{}).rtl}),this.append(Mo)),Mo.append(no),no}updateRange(r,c){const{current:m,target:Z}=r,le=c.series.axis;let Re=this.valueAxisRanges[le];Bi(m)&&!isNaN(m)&&Bi(Z&&!isNaN(Z))&&(Re=this.valueAxisRanges[le]=Re||{min:U,max:V},Re.min=Math.min(Re.min,m,Z),Re.max=Math.max(Re.max,m,Z))}formatPointValue(r,c){return this.chartService.format.auto(c,r.value.current,r.value.target)}pointValue(r){return r.valueFields.current}aboveAxis(r){return r.value.current>0}createAnimation(){const r=this.points;this._setAnimationOptions();for(let c=0;c<r.length;c++){const m=r[c];m.options.animation=this.options.animation,m.createAnimation()}}}Bo.prototype._setAnimationOptions=tp.prototype._setAnimationOptions,ms(Bo,{animation:{type:Ns}});const ea=Bo;class Fa extends jo.Z{constructor(r,c){super(),this.chartService=r,this.options=sn({},this.options,c)}getStyle(r,c){let{background:m,border:{color:Z}}=r;if(c){const Re=c.color||c.options.color;m=wr(m,Re),Z=wr(Z,Re)}const le=Eo(r.padding||{},"auto");return{backgroundColor:m,borderColor:Z,font:r.font,color:r.color,opacity:r.opacity,borderWidth:yi(r.border.width),paddingTop:yi(le.top),paddingBottom:yi(le.bottom),paddingLeft:yi(le.left),paddingRight:yi(le.right)}}show(r,c,m){r.format=c.format;const Z=this.getStyle(c,m);r.style=Z;const le=new yo.Z(Z.backgroundColor);!Bi(c.color)&&!le.isDark()&&(r.className="k-chart-tooltip-inverse"),this.chartService.notify(xh,r),this.visible=!0}hide(){this.chartService&&this.chartService.notify(Xh),this.visible=!1}destroy(){delete this.chartService}}ms(Fa,{border:{width:1},opacity:1});const el=Fa;class bl extends el{constructor(r,c,m){super(r,m),this.crosshair=c,this.formatService=r.format,this.initAxisName()}initAxisName(){const r=this.crosshair.axis;let m;m=r.plotArea.categoryAxis?r.getCategory?"categoryAxis":"valueAxis":r.options.vertical?"yAxis":"xAxis",this.axisName=m}showAt(r){const{crosshair:{axis:c},options:m}=this;let Z=c[m.stickyMode?"getCategory":"getValue"](r),le=Z;m.format?le=this.formatService.auto(m.format,Z):c.options.type===w&&(le=this.formatService.auto(c.options.labels.dateFormats[c.options.baseUnit],Z)),this.show({point:r,anchor:this.getAnchor(),crosshair:this.crosshair,value:le,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex},this.options)}hide(){this.chartService.notify(Xh,{crosshair:this.crosshair,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex})}getAnchor(){const{crosshair:r,options:{position:c,padding:m}}=this,Z=!r.axis.options.vertical,le=r.line.bbox();let Re,gt,hn;return Z?(Re=R,c===C?(gt=z,hn=le.bottomLeft().translate(0,m)):(gt=C,hn=le.topLeft().translate(0,-m))):(gt=R,c===O?(Re=de,hn=le.topLeft().translate(-m,0)):(Re=O,hn=le.topRight().translate(m,0))),{point:hn,align:{horizontal:Re,vertical:gt}}}}ms(bl,{padding:10});const Ql=bl;class Pl extends ga{constructor(r,c,m){super(m),this.axis=c,this.stickyMode=c instanceof Ps;const Z=this.options.tooltip;Z.visible&&(this.tooltip=new Ql(r,this,sn({},Z,{stickyMode:this.stickyMode})))}showAt(r){this.point=r,this.moveLine(),this.line.visible(!0),this.tooltip&&this.tooltip.showAt(r)}hide(){this.line.visible(!1),this.tooltip&&this.tooltip.hide()}moveLine(){const{axis:r,point:c}=this,m=r.options.vertical,Z=this.getBox(),le=m?Ce:ge,Re=new ls.Z(Z.x1,Z.y1);let gt;if(gt=m?new ls.Z(Z.x2,Z.y1):new ls.Z(Z.x1,Z.y2),c)if(this.stickyMode){const hn=r.getSlot(r.pointCategoryIndex(c));Re[le]=gt[le]=hn.center()[le]}else Re[le]=gt[le]=c[le];this.box=Z,this.line.moveTo(Re).lineTo(gt)}getBox(){const r=this.axis,c=r.pane.axes,m=c.length,Z=r.options.vertical,le=r.lineBox().clone(),Re=Z?ge:Ce;let gt;for(let hn=0;hn<m;hn++){const di=c[hn];di.options.vertical!==Z&&(gt?gt.wrap(di.lineBox()):gt=di.lineBox().clone())}return le[Re+1]=gt[Re+1],le[Re+2]=gt[Re+2],le}createVisual(){super.createVisual();const r=this.options;this.line=new Js.y({stroke:{color:r.color,width:r.width,opacity:r.opacity,dashType:r.dashType},visible:!1}),this.moveLine(),this.visual.append(this.line)}destroy(){this.tooltip&&this.tooltip.destroy(),super.destroy()}}ms(Pl,{color:_,width:2,zIndex:-1,tooltip:{visible:!1}});const Zl=Pl;class kc extends ga{constructor(r,c){super(r),this.pane=c}shouldClip(){const r=this.children,c=r.length;for(let m=0;m<c;m++)if(!0===r[m].options.clip)return!0;return!1}_clipBox(){return this.pane.chartsBox()}createVisual(){if(this.visual=new ht.Z({zIndex:0}),this.shouldClip()){const c=(this.clipBox=this._clipBox()).toRect(),m=Js.y.fromRect(c);Gt(m),this.visual.clip(m),this.unclipLabels()}}stackRoot(){return this}unclipLabels(){const{children:r,clipBox:c}=this;for(let m=0;m<r.length;m++){const Z=r[m].points||{},le=Z.length;for(let Re=0;Re<le;Re++){const gt=Z[Re];if(gt&&!1!==gt.visible&&gt.overlapsBox&&gt.overlapsBox(c))if(gt.unclipElements)gt.unclipElements();else{const{label:hn,note:di}=gt;hn&&hn.options.visible&&(hn.alignToClipBox&&hn.alignToClipBox(c),hn.options.noclip=!0),di&&di.options.visible&&(di.options.noclip=!0)}}}}destroy(){super.destroy(),delete this.parent}}kc.prototype.isStackRoot=!0;const Eu=kc;class Td extends ur{constructor(r){super(r),this.id=function tc(){return"pane"+Wd++}(),this.createTitle(),this.content=new ga,this.chartContainer=new Eu({},this),this.append(this.content),this.axes=[],this.charts=[]}createTitle(){let r=this.options.title;fn(r)&&(r=sn({},r,{align:r.position,position:z})),this.title=$e.buildTitle(r,Td.prototype.options.title),this.title&&this.append(this.title)}appendAxis(r){this.content.append(r),this.axes.push(r),r.pane=this}appendAxisAt(r,c){this.content.append(r),this.axes.splice(c,0,r),r.pane=this}appendChart(r){this.chartContainer.parent!==this.content&&this.content.append(this.chartContainer),this.charts.push(r),this.chartContainer.append(r),r.pane=this}empty(){const r=this.parent;if(r){for(let c=0;c<this.axes.length;c++)r.removeAxis(this.axes[c]);for(let c=0;c<this.charts.length;c++)r.removeChart(this.charts[c])}this.axes=[],this.charts=[],this.content.destroy(),this.content.children=[],this.chartContainer.children=[]}reflow(r){let c;ji(this.children)===this.content&&(c=this.children.pop()),super.reflow(r),c&&this.children.push(c),this.title&&(this.contentBox.y1+=this.title.box.height())}visualStyle(){const r=super.visualStyle();return r.zIndex=-10,r}renderComplete(){this.options.visible&&this.createGridLines()}stackRoot(){return this}clipRoot(){return this}createGridLines(){const r=this.axes,c=r.concat(this.parent.axes),m=[],Z=[];for(let le=0;le<r.length;le++){const Re=r[le],gt=Re.options.vertical,hn=gt?m:Z;for(let di=0;di<c.length;di++)if(0===hn.length){const no=c[di];gt!==no.options.vertical&&Zi(hn,Re.createGridLines(no))}}}refresh(){this.visual.clear(),this.content.parent=null,this.content.createGradient=this.createGradient.bind(this),this.content.renderVisual(),this.content.parent=this,this.title&&this.visual.append(this.title.visual),this.visual.append(this.content.visual),this.renderComplete(),this.notifyRender()}chartsBox(){const r=this.axes,c=r.length,m=new Ar;for(let Z=0;Z<c;Z++){const le=r[Z],Re=le.options.vertical?Ce:ge,gt=le.lineBox();m[Re+1]=gt[Re+1],m[Re+2]=gt[Re+2]}if(0===m.x2){const Z=this.parent.axes,le=Z.length;for(let Re=0;Re<le;Re++){const gt=Z[Re];if(!gt.options.vertical){const hn=gt.lineBox();m.x1=hn.x1,m.x2=hn.x2}}}return m}clipBox(){return this.chartContainer.clipBox}notifyRender(){const r=this.getService();r&&r.notify("paneRender",{pane:new bu(this),index:this.paneIndex,name:this.options.name})}}let Wd=1;Td.prototype.isStackRoot=!0,ms(Td,{zIndex:-1,shrinkToFit:!0,title:{align:O},visible:!0});const tf=Td;class zl extends ga{constructor(r,c,m){super(c),this.initFields(r,c),this.series=r,this.initSeries(),this.charts=[],this.options.legend=this.options.legend||{},this.options.legend.items=[],this.axes=[],this.crosshairs=[],this.chartService=m,this.originalOptions=c,this.originalSeries=r,this._bindCache=new WeakMap,this.createPanes(),this.render(),this.createCrosshairs()}initFields(){}initSeries(){const r=this.series;for(let c=0;c<r.length;c++)r[c].index=c}bindPoint(r,c,m){let Z=this._bindCache.get(r);Z||(Z=[],this._bindCache.set(r,Z));let le=Z[c];return le||(le=Z[c]=Jl.current.bindPoint(r,c,m)),le}createPanes(){const r=this.options.title||{},c=this.options.paneDefaults,m=this.options.panes||[],Z=Math.max(m.length,1),le=[],Re=sn({title:{color:r.color}},c);for(let gt=0;gt<Z;gt++){const hn=sn({},Re,m[gt]);$n(hn.title)&&(hn.title=sn({text:hn.title},Re.title));const di=new tf(hn);di.paneIndex=gt,le.push(di),this.append(di)}this.panes=le}crosshairOptions(r){return r.options.crosshair}createCrosshairs(r=this.panes){for(let c=0;c<r.length;c++){const m=r[c];for(let Z=0;Z<m.axes.length;Z++){const le=m.axes[Z],Re=this.crosshairOptions(le);if(Re&&Re.visible){const gt=new Zl(this.chartService,le,Re);this.crosshairs.push(gt),m.content.append(gt)}}}}removeCrosshairs(r){const c=this.crosshairs,m=r.axes;for(let Z=c.length-1;Z>=0;Z--)for(let le=0;le<m.length;le++)if(c[Z].axis===m[le]){c.splice(Z,1);break}}hideCrosshairs(){const r=this.crosshairs;for(let c=0;c<r.length;c++)r[c].hide()}findPane(r){const c=this.panes;let m;for(let Z=0;Z<c.length;Z++)if(c[Z].options.name===r){m=c[Z];break}return m||c[0]}findPointPane(r){const c=this.panes;let m;for(let Z=0;Z<c.length;Z++)if(c[Z].box.containsPoint(r)){m=c[Z];break}return m}appendAxis(r){this.findPane(r.options.pane).appendAxis(r),this.axes.push(r),r.plotArea=this}removeAxis(r){const c=[];for(let m=0;m<this.axes.length;m++){const Z=this.axes[m];r!==Z?c.push(Z):Z.destroy()}this.axes=c}appendChart(r,c){this.charts.push(r),c?c.appendChart(r):this.append(r)}removeChart(r){const c=[];for(let m=0;m<this.charts.length;m++){const Z=this.charts[m];Z!==r?c.push(Z):Z.destroy()}this.charts=c}addToLegend(r){const c=r.length,m=this.options.legend,Z=m.labels||{},le=m.inactiveItems||{},Re=le.labels||{},gt=[];for(let hn=0;hn<c;hn++){const di=r[hn],no=!1!==di.visible;if(!1===di.visibleInLegend)continue;let Mo=di.name;const ir=no?Xt(Z):Xt(Re)||Xt(Z);ir&&(Mo=ir({text:dl(Mo)?Mo:"",series:di}));const Wr=di._defaults;let Bs,oa,Qr=di.color;mt(Qr)&&Wr&&(Qr=Wr.color),no?(Bs={},oa=Qr):(Bs={color:Re.color,font:Re.font},oa=le.markers.color),dl(Mo)&&""!==Mo&&gt.push({text:Mo,labels:Bs,markerColor:oa,series:di,active:no})}Zi(m.items,gt)}groupAxes(r){const c=[],m=[];for(let Z=0;Z<r.length;Z++){const le=r[Z].axes;for(let Re=0;Re<le.length;Re++){const gt=le[Re];gt.options.vertical?m.push(gt):c.push(gt)}}return{x:c,y:m,any:c.concat(m)}}groupSeriesByPane(){const r=this.series,c={};for(let m=0;m<r.length;m++){const Z=r[m],le=this.seriesPaneName(Z);c[le]?c[le].push(Z):c[le]=[Z]}return c}filterVisibleSeries(r){const c=[];for(let m=0;m<r.length;m++){const Z=r[m];!1!==Z.visible&&c.push(Z)}return c}reflow(r){const m=this.panes,Z=Eo(this.options.plotArea.margin);this.box=r.clone().unpad(Z),this.reflowPanes(),this.detachLabels(),this.reflowAxes(m),this.reflowCharts(m)}redraw(r){const c=[].concat(r);this.initSeries();const m=this.getRoot();m&&m.cleanGradients();for(let Z=0;Z<c.length;Z++)this.removeCrosshairs(c[Z]),c[Z].empty();this._bindCache=new WeakMap,this.render(c),this.detachLabels(),this.reflowAxes(this.panes),this.reflowCharts(c),this.createCrosshairs(c);for(let Z=0;Z<c.length;Z++)c[Z].refresh()}axisCrossingValues(r,c){const m=r.options,Z=[].concat(m.axisCrossingValues||m.axisCrossingValue),le=c.length-Z.length,Re=Z[0]||0;for(let gt=0;gt<le;gt++)Z.push(Re);return Z}alignAxisTo(r,c,m,Z){const le=r.getSlot(m,m,!0),Re=r.options.reverse?2:1,gt=c.getSlot(Z,Z,!0),hn=c.options.reverse?2:1,di=r.box.translate(gt[ge+hn]-le[ge+Re],gt[Ce+hn]-le[Ce+Re]);r.pane!==c.pane&&di.translate(0,r.pane.box.y1-c.pane.box.y1),r.reflow(di)}alignAxes(r,c){const m=r[0],Z=c[0],le=this.axisCrossingValues(m,c),Re=this.axisCrossingValues(Z,r),gt={},hn={},di={},no={};for(let Mo=0;Mo<c.length;Mo++){const ir=c[Mo],Wr=ir.pane,Qr=Wr.id,Bs=!1!==ir.options.visible,oa=Tc(r,Wr)||m;let Ba=le;oa!==m&&(Ba=this.axisCrossingValues(oa,c)),this.alignAxisTo(ir,oa,Re[Mo],Ba[Mo]),!ir.options._overlap&&(Gn(ir.lineBox().x1)===Gn(oa.lineBox().x1)&&(gt[Qr]&&ir.reflow(ir.box.alignTo(gt[Qr].box,O).translate(-ir.options.margin,0)),Bs&&(gt[Qr]=ir)),Gn(ir.lineBox().x2)===Gn(oa.lineBox().x2)&&(ir._mirrored||(ir.options.labels.mirror=!ir.options.labels.mirror,ir._mirrored=!0),this.alignAxisTo(ir,oa,Re[Mo],Ba[Mo]),hn[Qr]&&ir.reflow(ir.box.alignTo(hn[Qr].box,de).translate(ir.options.margin,0)),Bs&&(hn[Qr]=ir)),0!==Mo&&Z.pane===ir.pane&&(ir.alignTo(Z),ir.reflow(ir.box)))}for(let Mo=0;Mo<r.length;Mo++){const ir=r[Mo],Wr=ir.pane,Qr=Wr.id,Bs=!1!==ir.options.visible,oa=Tc(c,Wr)||Z;let Ba=Re;oa!==Z&&(Ba=this.axisCrossingValues(oa,r)),this.alignAxisTo(ir,oa,le[Mo],Ba[Mo]),!ir.options._overlap&&(Gn(ir.lineBox().y1)===Gn(oa.lineBox().y1)&&(ir._mirrored||(ir.options.labels.mirror=!ir.options.labels.mirror,ir._mirrored=!0),this.alignAxisTo(ir,oa,le[Mo],Ba[Mo]),di[Qr]&&ir.reflow(ir.box.alignTo(di[Qr].box,z).translate(0,-ir.options.margin)),Bs&&(di[Qr]=ir)),Gn(ir.lineBox().y2,3)===Gn(oa.lineBox().y2,3)&&(no[Qr]&&ir.reflow(ir.box.alignTo(no[Qr].box,C).translate(0,ir.options.margin)),Bs&&(no[Qr]=ir)),0!==Mo&&(ir.alignTo(m),ir.reflow(ir.box)))}}shrinkAxisWidth(r){const c=this.groupAxes(r).any,m=Xc(c);let Z=0;for(let le=0;le<r.length;le++){const Re=r[le];Re.axes.length>0&&(Z=Math.max(Z,m.width()-Re.contentBox.width()))}if(0!==Z)for(let le=0;le<c.length;le++){const Re=c[le];Re.options.vertical||Re.reflow(Re.box.shrink(Z,0))}}shrinkAxisHeight(r){let c;for(let m=0;m<r.length;m++){const Z=r[m],le=Z.axes,Re=Math.max(0,Xc(le).height()-Z.contentBox.height());if(0!==Re){for(let gt=0;gt<le.length;gt++){const hn=le[gt];hn.options.vertical&&hn.reflow(hn.box.shrink(0,Re))}c=!0}}return c}fitAxes(r){const c=this.groupAxes(r).any;let m=0;for(let Z=0;Z<r.length;Z++){const le=r[Z],Re=le.axes,gt=le.contentBox;if(Re.length>0){const hn=Xc(Re),di=Math.max(gt.y1-hn.y1,gt.y2-hn.y2);m=Math.max(m,gt.x1-hn.x1);for(let no=0;no<Re.length;no++){const Mo=Re[no];Mo.reflow(Mo.box.translate(0,di))}}}for(let Z=0;Z<c.length;Z++){const le=c[Z];le.reflow(le.box.translate(m,0))}}reflowAxes(r){const c=this.groupAxes(r);for(let m=0;m<r.length;m++)this.reflowPaneAxes(r[m]);c.x.length>0&&c.y.length>0&&(this.alignAxes(c.x,c.y),this.shrinkAxisWidth(r),this.autoRotateAxisLabels(c),this.alignAxes(c.x,c.y),this.shrinkAxisWidth(r)&&this.alignAxes(c.x,c.y),this.shrinkAxisHeight(r),this.alignAxes(c.x,c.y),this.shrinkAxisHeight(r)&&this.alignAxes(c.x,c.y),this.fitAxes(r))}autoRotateAxisLabels(r){const{panes:c}=this,m=vp(c);let Z;for(let le=0;le<m.length;le++)m[le].autoRotateLabels()&&(Z=!0);if(Z){for(let le=0;le<c.length;le++)this.reflowPaneAxes(c[le]);r.x.length>0&&r.y.length>0&&(this.alignAxes(r.x,r.y),this.shrinkAxisWidth(c))}}reflowPaneAxes(r){const c=r.axes,m=c.length;if(m>0)for(let Z=0;Z<m;Z++)c[Z].reflow(r.contentBox)}reflowCharts(r){const c=this.charts,m=c.length,Z=this.box;for(let le=0;le<m;le++){const Re=c[le].pane;(!Re||It(Re,r))&&c[le].reflow(Z)}}reflowPanes(){const{box:r,panes:c}=this,m=c.length;let Z=r.height(),Re=0,gt=r.y1;for(let hn=0;hn<m;hn++){const di=c[hn],no=di.options.height;if(di.options.width=r.width(),di.options.height){if(no.indexOf&&no.indexOf("%")){const Mo=parseInt(no,10)/100;di.options.height=Mo*r.height()}di.reflow(r.clone()),Z-=di.options.height}else Re++}for(let hn=0;hn<m;hn++){const di=c[hn];di.options.height||(di.options.height=Z/Re)}for(let hn=0;hn<m;hn++){const di=c[hn],no=r.clone().move(r.x1,gt);di.reflow(no),gt+=di.options.height}}backgroundBox(){const r=this.axes,c=r.length;let m;for(let Z=0;Z<c;Z++){const le=r[Z];for(let Re=0;Re<c;Re++){const gt=r[Re];if(le.options.vertical!==gt.options.vertical){const hn=le.lineBox().clone().wrap(gt.lineBox());m=m?m.wrap(hn):hn}}}return m||this.box}chartsBoxes(){const r=this.panes,c=[];for(let m=0;m<r.length;m++)c.push(r[m].chartsBox());return c}addBackgroundPaths(r){const c=this.chartsBoxes();for(let m=0;m<c.length;m++)r.paths.push(Js.y.fromRect(c[m].toRect()))}backgroundContainsPoint(r){const c=this.chartsBoxes();for(let m=0;m<c.length;m++)if(c[m].containsPoint(r))return!0}createVisual(){super.createVisual();const r=this.options.plotArea;let{opacity:c,background:m,border:Z={}}=r;(function vh(ve){return""===ve||null===ve||"none"===ve||"transparent"===ve||!Bi(ve)})(m)&&(m=ne,c=0);const le=this._bgVisual=new Js.w({fill:{color:m,opacity:c},stroke:{color:Z.width?Z.color:"",width:Z.width,dashType:Z.dashType},zIndex:-1});this.addBackgroundPaths(le),this.appendVisual(le)}pointsByCategoryIndex(r){const c=this.charts,m=[];if(null!==r)for(let Z=0;Z<c.length;Z++){if("_navigator"===c[Z].pane.options.name)continue;const Re=c[Z].categoryPoints[r];if(Re&&Re.length)for(let gt=0;gt<Re.length;gt++){const hn=Re[gt];hn&&Bi(hn.value)&&null!==hn.value&&m.push(hn)}}return m}pointsBySeriesIndex(r){return this.filterPoints(function(c){return c.series.index===r})}pointsBySeriesName(r){return this.filterPoints(function(c){return c.series.name===r})}filterPoints(r){const c=this.charts,m=[];for(let Z=0;Z<c.length;Z++){const Re=c[Z].points;for(let gt=0;gt<Re.length;gt++){const hn=Re[gt];hn&&!1!==hn.visible&&r(hn)&&m.push(hn)}}return m}findPoint(r){const c=this.charts;for(let m=0;m<c.length;m++){const le=c[m].points;for(let Re=0;Re<le.length;Re++){const gt=le[Re];if(gt&&!1!==gt.visible&&r(gt))return gt}}}paneByPoint(r){const c=this.panes;for(let m=0;m<c.length;m++){const Z=c[m];if(Z.box.containsPoint(r))return Z}}detachLabels(){const r=this.groupAxes(this.panes),c=r.x,m=r.y;this.detachAxisGroupLabels(m,c),this.detachAxisGroupLabels(c,m)}detachAxisGroupLabels(r,c){let m=0;for(let Z=0;Z<r.length;Z++){const le=r[Z],Re=le.pane,gt=Tc(c,Re)||c[0],di=this.createLabelAxis(le,Z+m,gt);if(di){m++;const no=Re.axes.indexOf(le)+m;Re.appendAxisAt(di,no)}}}createLabelAxis(r,c,m){const Z=r.options.labels,le=Z.position;if("end"!==le&&"start"!==le||!1===Z.visible)return null;const hn=this.groupAxes(this.panes),no=this.axisCrossingValues(m,m.options.vertical?hn.x:hn.y),Mo="end"===le,ir=m.range(),Wr=Mo?ir.max:ir.min;if(Fo(no[c],ir.min,ir.max)-Wr==0)return null;no.splice(c+1,0,Wr),m.options.axisCrossingValues=no;const Bs=r.clone();return r.clear(),Bs.options.name=void 0,Bs.options.line.visible=!1,Bs.options.crosshair=void 0,Bs.options.notes=void 0,Bs.options.plotBands=void 0,Bs}isTrendline(r){return r&&It(r.type,Wc)}trendlineFactory(){}createTrendlineSeries(){const r=[];return this.series=this.series.map(c=>{if(!this.isTrendline(c))return c;const m=this.seriesByName(c.for);if(!m)throw new Error(`Invalid Configuration: Unable to locate linked series "${c.for}" for trendline "${c.name}".`);const Z=Jl.current.valueFields(m),le=ji(Z),Re=this.trendlineFactory(Object.assign({},{field:le},c),m);return Re&&(!1===m.visible&&(Re.visible=!1),Re.color===P&&(Re.color=m.color),r.push(Re)),Re}).filter(c=>null!==c),r}seriesByName(r){return this.series.find(c=>c.name===r)}}function Uu(ve){return!ve.pane.axes.some(r=>r.options.vertical===ve.options.vertical&&r!==ve&&!1!==r.options.visible)}function Xc(ve){const r=ve.length;let c;for(let m=0;m<r;m++){const Z=ve[m],le=!1!==Z.options.visible;if(le||Uu(Z)){const Re=le?Z.contentBox():Z.lineBox();c?c.wrap(Re):c=Re.clone()}}return c||new Ar}function Tc(ve,r){for(let c=0;c<ve.length;c++){const m=ve[c];if(m&&m.pane===r)return m}}const vp=ve=>ve.reduce((r,c)=>r.concat(c.axes),[]);ms(zl,{series:[],plotArea:{margin:{}},background:"",border:{color:_,width:0},paneDefaults:{title:{}},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});const nf=zl,Hf={hover:function(ve,r){this._dispatchEvent(ve,r,Ff)},click:function(ve,r){this._dispatchEvent(ve,r,"plotAreaClick")}};function Fp(ve,r,c){let m=r,Z=ve;if(ve.indexOf(".")>-1){const le=ve.split(".");for(;le.length>1;)Z=le.shift(),Bi(m[Z])||(m[Z]={}),m=m[Z];Z=le.shift()}m[Z]=c}const Bp=class Vf extends jo.Z{constructor(r,c,m){super();const Z=c.canonicalFields(r),le=c.valueFields(r),Re=c.sourceFields(r,Z),gt=this._seriesFields=[],hn=m.query(r.type),di=r.aggregate||hn;this._series=r,this._binder=c;for(let no=0;no<Z.length;no++){const Mo=Z[no];let ir;if(fn(di))ir=di[Mo];else{if(0!==no&&!It(Mo,le))break;ir=di}ir&&gt.push({canonicalName:Mo,name:Re[no],transform:mt(ir)?ir:fu[ir]})}}aggregatePoints(r,c){const{_series:m,_seriesFields:Z}=this,le=this._bindPoints(r||[]),Re=le.dataItems[0];let gt={};if(Re&&!An(Re)&&!De(Re)){const hn=function(){};hn.prototype=Re,gt=new hn}for(let hn=0;hn<Z.length;hn++){const di=Z[hn],no=this._bindField(le.values,di.canonicalName),Mo=di.transform(no,m,le.dataItems,c);if(!(null===Mo||!fn(Mo)||Bi(Mo.length)||Mo instanceof Date)){gt=Mo;break}Bi(Mo)&&Fp(di.name,gt,Mo)}return gt}_bindPoints(r){const{_binder:c,_series:m}=this,Z=[],le=[];for(let Re=0;Re<r.length;Re++){const gt=r[Re];Z.push(c.bindPoint(m,gt)),le.push(m.data[gt])}return{values:Z,dataItems:le}}_bindField(r,c){const m=[],Z=r.length;for(let le=0;le<Z;le++){const Re=r[le],gt=Re.valueFields;let hn;hn=Bi(gt[c])?gt[c]:Re.fields[c],m.push(hn)}return m}};class qp extends jo.Z{constructor(){super(),this._defaults={}}register(r,c){for(let m=0;m<r.length;m++)this._defaults[r[m]]=c}query(r){return this._defaults[r]}}qp.current=new qp;const np=qp;class rf extends Pd{createLabel(){const r=this.options.labels,c=sn({},r,r.from),m=sn({},r,r.to);c.visible&&(this.labelFrom=this._createLabel(c),this.append(this.labelFrom)),m.visible&&(this.labelTo=this._createLabel(m),this.append(this.labelTo))}_createLabel(r){const c=Xt(r),m=this.pointData();let Z;return Z=c?c(m):this.formatValue(r.format),new jh(Z,sn({vertical:this.options.vertical},r),m)}reflow(r){this.render();const{labelFrom:c,labelTo:m,value:Z}=this;this.box=r,c&&(c.options.aboveAxis=Z.from>Z.to,c.reflow(r)),m&&(m.options.aboveAxis=Z.to>Z.from,m.reflow(r)),this.note&&this.note.reflow(r)}}rf.prototype.defaults=sn({},rf.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});const yf=rf;class bf extends tp{pointType(){return yf}pointValue(r){return r.valueFields}formatPointValue(r,c){return null===r.value.from&&null===r.value.to?"":this.chartService.format.auto(c,r.value.from,r.value.to)}plotRange(r){return r?[r.value.from,r.value.to]:0}updateRange(r,c){const m=c.series.axis,{from:Z,to:le}=r;let Re=this.valueAxisRanges[m];null!==r&&An(Z)&&An(le)&&(Re=this.valueAxisRanges[m]=Re||{min:U,max:V},Re.min=Math.min(Re.min,Z),Re.max=Math.max(Re.max,Z),Re.min=Math.min(Re.min,le),Re.max=Math.max(Re.max,le))}aboveAxis(r){const c=r.value;return c.from<c.to}}bf.prototype.plotLimits=Xd.prototype.plotLimits;const v_=bf,yp=class Ah extends Ju{aliasFor(){return this.parent}};class ip extends ga{constructor(r,c){super(),this.value=r,this.options=c,this.aboveAxis=wr(this.options.aboveAxis,!0),this.tooltipTracking=!0,this.initLabelsFormat()}render(){if(this._rendered)return;this._rendered=!0;const{markers:r,labels:c}=this.options,m=this.value,Z=this.fromPoint=new yp(m,sn({},this.options,{labels:c.from,markers:r.from})),le=this.toPoint=new yp(m,sn({},this.options,{labels:c.to,markers:r.to}));this.copyFields(Z),this.copyFields(le),this.append(Z),this.append(le)}reflow(r){this.render();const{from:c,to:m}=r;this.positionLabels(c,m),this.fromPoint.reflow(c),this.toPoint.reflow(m),this.box=this.fromPoint.markerBox().clone().wrap(this.toPoint.markerBox())}createHighlight(){const r=new ht.Z;return r.append(this.fromPoint.createHighlight()),r.append(this.toPoint.createHighlight()),r}highlightVisual(){return this.visual}highlightVisualArgs(){return{options:this.options,from:this.fromPoint.highlightVisualArgs(),to:this.toPoint.highlightVisualArgs()}}tooltipAnchor(){const r=this.owner.pane.clipBox();if(!r||r.overlaps(this.box)){const m=this.box,Z=m.center(),le=O;let Re,gt,hn;return this.options.vertical?(Re=Z.x,gt=m.y1-5,hn=C):(Re=m.x2+5,gt=Z.y,hn=R),{point:new Ts(Re,gt),align:{horizontal:le,vertical:hn}}}}formatValue(r){return this.owner.formatPointValue(this,r)}overlapsBox(r){return this.box.overlaps(r)}unclipElements(){this.fromPoint.unclipElements(),this.toPoint.unclipElements()}initLabelsFormat(){const r=this.options.labels;r.format||((!r.from||!r.from.format)&&(r.from=Object.assign({},r.from,{format:"{0}"})),(!r.to||!r.to.format)&&(r.to=Object.assign({},r.to,{format:"{1}"})))}positionLabels(r,c){const{labels:m,vertical:Z}=this.options;if("auto"===m.position){let le,Re;Z?c.y1<=r.y1?(Re=Wo,le=vr):(Re=vr,le=Wo):c.x1<=r.x1?(Re=O,le=de):(Re=de,le=O),(!m.from||!m.from.position)&&(this.fromPoint.options.labels.position=le),(!m.to||!m.to.position)&&(this.toPoint.options.labels.position=Re)}}copyFields(r){r.dataItem=this.dataItem,r.category=this.category,r.series=this.series,r.color=this.color,r.owner=this.owner}}sn(ip.prototype,Ed),sn(ip.prototype,Dh),ip.prototype.defaults={markers:{visible:!1,background:ne,size:8,type:x,border:{width:2},opacity:1},labels:{visible:!1,margin:Eo(3),padding:Eo(4),animation:{type:ql,delay:ud},position:"auto"},notes:{label:{}},highlight:{markers:{border:{color:ne,width:2}},zIndex:100},tooltip:{format:"{0} - {1}"}};const em=ip,Km=class zp extends Qc{createStrokeSegments(){return this.segmentsFromPoints(this.toGeometryPoints(this.toPoints()))}stackSegments(){let r=this.fromSegments;return this.fromSegments||(r=this.fromSegments=this.segmentsFromPoints(this.toGeometryPoints(this.fromPoints().reverse()))),r}createStroke(r){const c=new Js.y(r),m=new Js.y(r);c.segments.push.apply(c.segments,this.strokeSegments()),m.segments.push.apply(m.segments,this.stackSegments()),this.visual.append(c),this.visual.append(m)}hasStackSegment(){return!0}fromPoints(){return this.linePoints.map(r=>r.fromPoint)}toPoints(){return this.linePoints.map(r=>r.toPoint)}},tm=class Jm extends Km{createStrokeSegments(){return this.createCurveSegments(this.toPoints())}stackSegments(){let r=this.fromSegments;return this.fromSegments||(r=this.fromSegments=this.createCurveSegments(this.fromPoints().reverse())),r}createCurveSegments(r){return(new Jc).process(this.toGeometryPoints(r))}};class Oc extends Km{createStrokeSegments(){return this.segmentsFromPoints(this.calculateStepPoints(this.toPoints()))}stackSegments(){let r=this.fromSegments;return this.fromSegments||(r=this.fromSegments=this.segmentsFromPoints(this.calculateStepPoints(this.fromPoints())),r.reverse()),r}}sn(Oc.prototype,Uc);const ym=Oc;class bp extends Xd{render(){super.render(),this.renderSegments()}pointType(){return em}createPoint(r,c){const{series:m,seriesIx:Z}=c;let le=r.valueFields;if(!dl(le.from)&&!dl(le.to)){if(this.seriesMissingValues(m)!==rc)return null;le={from:0,to:0}}let Re=this.pointOptions(m,Z);Re=this.evalPointOptions(Re,le,c);let gt=r.fields.color||m.color;mt(m.color)&&(gt=Re.color);const hn=new em(le,Re);return hn.color=gt,this.append(hn),hn}createSegment(r,c,m){const Z=(c.line||{}).style;let le;return le="smooth"===Z?tm:"step"===Z?ym:Km,new le(r,c,m)}plotRange(r,c){return r?[r.value.from,r.value.to]:[c,c]}valueSlot(r,c){const m=r.getSlot(c[0],c[0],!this.options.clip),Z=r.getSlot(c[1],c[1],!this.options.clip);if(m&&Z)return{from:m,to:Z}}pointSlot(r,c){const{from:m,to:Z}=c;let le,Re;return this.options.invertAxes?(le=new Ar(m.x1,r.y1,m.x2,r.y2),Re=new Ar(Z.x1,r.y1,Z.x2,r.y2)):(le=new Ar(r.x1,m.y1,r.x2,m.y2),Re=new Ar(r.x1,Z.y1,r.x2,Z.y2)),{from:le,to:Re}}addValue(r,c){const m=r.valueFields;An(m.from)||(m.from=m.to),An(m.to)||(m.to=m.from),super.addValue(r,c)}updateRange(r,c){if(null!==r&&An(r.from)&&An(r.to)){const m=c.series.axis,Z=this.valueAxisRanges[m]=this.valueAxisRanges[m]||{min:U,max:V},{from:le,to:Re}=r;Z.min=Math.min(Z.min,le,Re),Z.max=Math.max(Z.max,le,Re)}}formatPointValue(r,c){const m=r.value;return this.chartService.format.auto(c,m.from,m.to)}animationPoints(){const r=this.points,c=[];for(let m=0;m<r.length;m++){const Z=r[m];Z&&(c.push((Z.fromPoint||{}).marker),c.push((Z.toPoint||{}).marker))}return c.concat(this._segments)}}sn(bp.prototype,Df,ru);const Og=bp,y_=class dg extends Yh{reflow(r){const{options:c,value:m,owner:Z}=this,le=Z.seriesValueAxis(c),Re=[],gt=[],hn=[],di=le.getSlot(m.low,m.high),no=le.getSlot(m.open,m.open),Mo=le.getSlot(m.close,m.close);no.x1=Mo.x1=di.x1=r.x1,no.x2=Mo.x2=di.x2=r.x2;const ir=di.center().x;Re.push([no.x1,no.y1]),Re.push([ir,no.y1]),gt.push([ir,Mo.y1]),gt.push([Mo.x2,Mo.y1]),hn.push([ir,di.y1]),hn.push([ir,di.y2]),this.lines=[Re,gt,hn],this.box=di.clone().wrap(no.clone().wrap(Mo)),this.reflowNote()}createBody(){}},b_=class Am extends dh{pointType(){return y_}};class mu extends ga{constructor(r,c,m){super(),this.from=r,this.to=c,this.series=m}linePoints(){const r=this.from,{from:{box:c},to:{box:m}}=this,Z=[];if(r.isVertical){const le=r.aboveAxis?c.y1:c.y2;Z.push([c.x1,le],[m.x2,le])}else{const le=r.aboveAxis?c.x2:c.x1;Z.push([le,c.y1],[le,m.y2])}return Z}createVisual(){super.createVisual();const r=this.series.line||{},c=Js.y.fromPoints(this.linePoints(),{stroke:{color:r.color,width:r.width,opacity:r.opacity,dashType:r.dashType}});Gt(c),this.visual.append(c)}}ms(mu,{animation:{type:ql,delay:ud}});const Pf=mu,C_=class Up extends tp{render(){super.render(),this.createSegments()}traverseDataPoints(r){const c=this.options.series,m=Uo(c),Z=!this.options.invertAxes;for(let le=0;le<c.length;le++){const Re=c[le];let gt=0,hn=0;for(let di=0;di<m;di++){const no=Jl.current.bindPoint(Re,di),Mo=no.valueFields.value,ir=no.fields.summary;let Qr,Wr=gt;ir?"total"===ir.toLowerCase()?(no.valueFields.value=gt,Wr=0,Qr=gt):(no.valueFields.value=hn,Qr=Wr-hn,hn=0):An(Mo)&&(hn+=Mo,gt+=Mo,Qr=gt),r(no,{category:this.categoryAxis.categoryAt(di),categoryIx:di,series:Re,seriesIx:le,total:gt,runningTotal:hn,from:Wr,to:Qr,isVertical:Z})}}}updateRange(r,c){super.updateRange({value:c.to},c)}aboveAxis(r){return r.value>=0}plotRange(r){return[r.from,r.to]}createSegments(){const r=this.options.series,c=this.seriesPoints,m=this.segments=[];for(let Z=0;Z<r.length;Z++){const le=r[Z],Re=c[Z];if(Re){let gt;for(let hn=0;hn<Re.length;hn++){const di=Re[hn];if(di&&gt){const no=new Pf(gt,di,le);m.push(no),this.append(no)}gt=di}}}}},nm=function Wf(ve,r,c){const m=ve[String(r)];return m?m(c):null},Om=function $g(ve,r){let gt,hn,c=0,m=0,Z=0,le=0,Re=0,di=Number.MAX_VALUE,no=Number.MIN_VALUE;for(let Mo=0;Mo<ve.length;Mo++){const ir=ve[Mo],{xValue:Wr,yValue:Qr}=r(ir);isFinite(Wr)&&null!==Wr&&isFinite(Qr)&&null!==Qr&&(di=Math.min(Wr,di),no=Math.max(Wr,no),Re++,c+=Wr,m+=Qr,Z+=Math.pow(Wr,2),le+=Wr*Qr)}return Re>0&&(gt=(Re*le-c*m)/(Re*Z-Math.pow(c,2)),hn=(m-gt*c)/Re),{slope:gt,intercept:hn,count:Re,xMin:di,xMax:no}},op=function pg(ve,r,c){const m=[],Z=[],le=Math.max(2,c)-1;let Re=0,gt=0;for(let hn=0;hn<ve.length;hn++){const di=ve[hn],{xValue:no,yValue:Mo}=r(di);if(isFinite(Mo)&&null!==Mo?(Z.push(Mo),gt+=Mo,Re=Math.max(hn,Re)):Z.push(null),hn>=le){const ir=Z.filter(Qr=>null!==Qr).length,Wr=Z.shift()||0;if(ir>0){m.push([no,gt/ir]),gt-=Wr;continue}}m.push([no,null])}return m.slice(0,Re+1)},Xm={};Xm[Bc]=function ug(ve){const{options:r,categoryAxis:c,seriesValues:m}=ve,{data:Z}=function hg({seriesValues:ve,categoryAxis:r,options:c}){const{slope:m,intercept:Z,count:le}=Om(ve(),(ve=>({categoryIx:r,valueFields:c})=>({xValue:r+1,yValue:c[ve]}))(c.field));if(le>0){const Re=[],gt=r.totalRangeIndices(),hn=r.currentRangeIndices(),di={min:Math.floor(Math.max(hn.min-1,gt.min)),max:Math.ceil(Math.min(hn.max+2,gt.max))};for(let no=di.min;no<di.max;no++)Re[no]={category:r.categoryAt(no,!0),value:m*(no+1)+Z};return{data:Re}}return{data:null}}({seriesValues:m,categoryAxis:c,options:r});return Z?Object.assign({},r,{type:"line",data:Z,categoryField:"category",field:"value"}):null},Xm[Bl]=function rp(ve){const{options:r}=ve,{data:c}=function Qm(ve){const{categoryAxis:r}=ve,c=function qc({options:ve,categoryAxis:r,seriesValues:c}){const m=(ve.trendline||{}).period||2,Z=r.totalRangeIndices(),le=r.currentRangeIndices(),Re={min:Math.floor(Math.max(le.min-m,Z.min)),max:Math.ceil(Math.min(le.max+m+2,Z.max))};return op(c(Re),(ve=>({categoryIx:r,valueFields:c})=>({xValue:r,yValue:c[ve]}))(ve.field),m)}(ve),m=[];return c.forEach(([Z,le])=>{m[Z]={category:r.categoryAt(Z,!0),value:le}}),m.length>0?{data:m}:{data:null}}(ve);return c?Object.assign({},r,{type:"line",data:c,categoryField:"category",field:"value"}):null};const mg=Xm,im=[vs,xa,In,ml],yh=[ds,vl].concat(im);class bm extends nf{initFields(r){if(this.namedCategoryAxes={},this.namedValueAxes={},this.valueAxisRangeTracker=new kf,this._seriesPointsCache={},this._currentPointsCache={},r.length>0){this.invertAxes=It(r[0].type,[Ns,fa,vl,xa,ml,er,gr,ha]);for(let c=0;c<r.length;c++){const m=r[c].stack;if(m&&"100%"===m.type){this.stack100=!0;break}}}}render(r=this.panes){this.series=[...this.originalSeries],this.createCategoryAxes(r),this.aggregateCategories(r),this.createTrendlineSeries(r),this.createCategoryAxesLabels(r),this.createCharts(r),this.createValueAxes(r)}removeAxis(r){const c=r.options.name;super.removeAxis(r),r instanceof Ps?delete this.namedCategoryAxes[c]:(this.valueAxisRangeTracker.reset(c),delete this.namedValueAxes[c]),r===this.categoryAxis&&delete this.categoryAxis,r===this.valueAxis&&delete this.valueAxis}trendlineFactory(r,c){const m=this.seriesCategoryAxis(r),Z=this.seriesValues.bind(this,c.index),le=nm(mg,r.type,{options:r,categoryAxis:m,seriesValues:Z});return le&&(le.categoryAxis=c.categoryAxis,le.valueAxis=c.valueAxis,this.filterSeries(le,m))}trendlineAggregateForecast(){return this.series.map(r=>(r.trendline||{}).forecast).filter(r=>void 0!==r).reduce((r,c)=>({before:Math.max(r.before,c.before||0),after:Math.max(r.after,c.after||0)}),{before:0,after:0})}seriesValues(r,c){const m=[];let Z=this.srcSeries[r];const le=this.seriesCategoryAxis(Z);je(le.options.type,w)&&(this._seriesPointsCache={},this._currentPointsCache={},le.options.dataItems=[],Z=this.aggregateSeries(Z,le,le.totalRangeIndices()));const hn=c?c.max:Z.data.length;for(let di=c?c.min:0;di<hn;di++){const no=this.bindPoint(Z,di);m.push({categoryIx:di,category:no.fields.category,valueFields:no.valueFields})}return m}createCharts(r){const c=this.groupSeriesByPane();for(let m=0;m<r.length;m++){const Z=r[m],le=c[Z.options.name||"default"]||[];this.addToLegend(le);const Re=this.filterVisibleSeries(le);if(!Re)continue;const gt=this.groupSeriesByCategoryAxis(Re);for(let hn=0;hn<gt.length;hn++)this.createChartGroup(gt[hn],Z)}}createChartGroup(r,c){this.createAreaChart(nr(r,[vs,xa]),c),this.createRangeAreaChart(nr(r,[In,ml]),c),this.createBarChart(nr(r,[bt,Ns]),c),this.createRangeBarChart(nr(r,[Br,er]),c),this.createBulletChart(nr(r,[fa,Aa]),c),this.createCandlestickChart(nr(r,ye),c),this.createBoxPlotChart(nr(r,[Is,ha]),c),this.createOHLCChart(nr(r,us),c),this.createWaterfallChart(nr(r,[yl,gr]),c),this.createLineChart(nr(r,[ds,vl]),c)}aggregateCategories(r){const c=[...this.series],m=[];this._currentPointsCache={},this._seriesPointsCache=this._seriesPointsCache||{};for(let Z=0;Z<c.length;Z++){let le=c[Z];if(!this.isTrendline(le)){const Re=this.seriesCategoryAxis(le),gt=this.findPane(Re.options.pane);le=(je(Re.options.type,w)||le.categoryField)&&It(gt,r)?this.aggregateSeries(le,Re,Re.currentRangeIndices()):this.filterSeries(le,Re)}m.push(le)}this._seriesPointsCache=this._currentPointsCache,this._currentPointsCache=null,this.srcSeries=c,this.series=m}filterSeries(r,c){const m=(r.data||{}).length;if(c._seriesMax=Math.max(c._seriesMax||0,m),!Bi(c.options.min)&&!Bi(c.options.max))return r;const Z=c.currentRangeIndices(),le=It(r.type,yh),Re=sn({},r);return Re.data=(Re.data||[]).slice(Z.min,Z.max+1),le&&Su(Re,Z,m,gt=>({item:r.data[gt],category:c.categoryAt(gt,!0),categoryIx:gt-Z.min}),gt=>Bi(r.data[gt])),Re}clearSeriesPointsCache(){this._seriesPointsCache={}}seriesSourcePoints(r,c){const m=`${r.index};${c.categoriesHash()}`;if(this._seriesPointsCache&&this._seriesPointsCache[m])return this._currentPointsCache[m]=this._seriesPointsCache[m],this._seriesPointsCache[m];const Z=c.options,le=Z.srcCategories,Re=je(Z.type,w),gt=r.data,hn=Re?is:Fl,di=[];Re||c.mapCategories();for(let no=0;no<gt.length;no++){let Mo;if(Mo=r.categoryField?hn(r.categoryField,gt[no],this.chartService.intl):le[no],Bi(Mo)&&null!==Mo){const ir=c.totalIndex(Mo);di[ir]=di[ir]||{items:[],category:Mo},di[ir].items.push(no)}}return this._currentPointsCache[m]=di,di}aggregateSeries(r,c,m){if(!r.data.length)return r;const le=this.seriesSourcePoints(r,c),Re=sn({},r),gt=new Bp(sn({},r),Jl.current,np.current),hn=Re.data=[],di=c.options.dataItems||[],no=Mo=>{const ir=Mo-m.min;let Wr=le[Mo];if(Wr||(Wr=le[Mo]={}),Wr.categoryIx=ir,!Wr.item){const Qr=c.categoryAt(Mo,!0);Wr.category=Qr,Wr.item=gt.aggregatePoints(Wr.items,Qr)}return Wr};for(let Mo=m.min;Mo<=m.max;Mo++){const ir=no(Mo);hn[ir.categoryIx]=ir.item,ir.items&&ir.items.length&&(di[ir.categoryIx]=ir.item)}return It(Re.type,yh)&&Su(Re,m,c.totalCount(),no,Mo=>le[Mo]),c.options.dataItems=di,Re}appendChart(r,c){const m=r.options.series,Z=this.seriesCategoryAxis(m[0]);let le=Z.options.categories,Re=Math.max(0,Uo(m)-le.length);if(Re>0)for(le=Z.options.categories=Z.options.categories.slice(0);Re--;)le.push("");this.valueAxisRangeTracker.update(r.valueAxisRanges),super.appendChart(r,c)}seriesPaneName(r){const c=this.options,m=r.axis;return(Ki([].concat(c.valueAxis),function(di){return di.name===m})[0]||{}).pane||((c.panes||[{}])[0]||{}).name||"default"}seriesCategoryAxis(r){const c=r.categoryAxis,m=c?this.namedCategoryAxes[c]:this.categoryAxis;if(!m)throw new Error("Unable to locate category axis with name "+c);return m}stackableChartOptions(r,c){const m=r.stack;return{isStacked:m,isStacked100:m&&"100%"===m.type,clip:c.options.clip}}groupSeriesByCategoryAxis(r){const c=[],m={};for(let le=0;le<r.length;le++){const Re=r[le].categoryAxis||"$$default$$";m.hasOwnProperty(Re)||(m[Re]=!0,c.push(Re))}const Z=[];for(let le=0;le<c.length;le++){const gt=Pg(r,c[le],le);0!==gt.length&&Z.push(gt)}return Z}createBarChart(r,c){if(0===r.length)return;const m=r[0],Z=new tp(this,Object.assign({series:r,invertAxes:this.invertAxes,gap:m.gap,spacing:m.spacing},this.stackableChartOptions(m,c)));this.appendChart(Z,c)}createRangeBarChart(r,c){if(0===r.length)return;const m=r[0],Z=new v_(this,{series:r,invertAxes:this.invertAxes,gap:m.gap,spacing:m.spacing});this.appendChart(Z,c)}createBulletChart(r,c){if(0===r.length)return;const m=r[0],Z=new ea(this,{series:r,invertAxes:this.invertAxes,gap:m.gap,spacing:m.spacing,clip:c.options.clip});this.appendChart(Z,c)}createLineChart(r,c){if(0===r.length)return;const Z=new Rp(this,Object.assign({invertAxes:this.invertAxes,series:r},this.stackableChartOptions(r[0],c)));this.appendChart(Z,c)}createAreaChart(r,c){if(0===r.length)return;const Z=new pd(this,Object.assign({invertAxes:this.invertAxes,series:r},this.stackableChartOptions(r[0],c)));this.appendChart(Z,c)}createRangeAreaChart(r,c){if(0===r.length)return;const m=new Og(this,{invertAxes:this.invertAxes,series:r,clip:c.options.clip});this.appendChart(m,c)}createOHLCChart(r,c){if(0===r.length)return;const m=r[0],Z=new b_(this,{invertAxes:this.invertAxes,gap:m.gap,series:r,spacing:m.spacing,clip:c.options.clip});this.appendChart(Z,c)}createCandlestickChart(r,c){if(0===r.length)return;const m=r[0],Z=new dh(this,{invertAxes:this.invertAxes,gap:m.gap,series:r,spacing:m.spacing,clip:c.options.clip});this.appendChart(Z,c)}createBoxPlotChart(r,c){if(0===r.length)return;const m=r[0],Z=new Af(this,{invertAxes:this.invertAxes,gap:m.gap,series:r,spacing:m.spacing,clip:c.options.clip});this.appendChart(Z,c)}createWaterfallChart(r,c){if(0===r.length)return;const m=r[0],Z=new C_(this,{series:r,invertAxes:this.invertAxes,gap:m.gap,spacing:m.spacing});this.appendChart(Z,c)}axisRequiresRounding(r,c){const m=nr(this.series,Cc);for(let Z=0;Z<this.series.length;Z++){const le=this.series[Z];if(It(le.type,im)){const Re=le.line;Re&&Re.style===ns&&m.push(le)}}for(let Z=0;Z<m.length;Z++){const le=m[Z].categoryAxis||"";if(le===r||!le&&0===c)return!0}}aggregatedAxis(r,c){const m=this.series;for(let Z=0;Z<m.length;Z++){const le=m[Z].categoryAxis||"";if((le===r||!le&&0===c)&&m[Z].categoryField)return!0}}createCategoryAxesLabels(){const r=this.axes;for(let c=0;c<r.length;c++)r[c]instanceof Ps&&r[c].createLabels()}createCategoryAxes(r){const c=this.invertAxes,m=[].concat(this.options.categoryAxis),Z=[];for(let Re=0;Re<m.length;Re++){let gt=m[Re];if(It(this.findPane(gt.pane),r)){const{name:di,categories:no=[]}=gt;let Mo;if(gt=sn({vertical:c,reverse:!c&&this.chartService.rtl,axisCrossingValue:c?U:0},gt),Bi(gt.justified)||(gt.justified=this.isJustified()),this.axisRequiresRounding(di,Re)&&(gt.justified=!1),$l(gt,no[0])?(gt._forecast=this.trendlineAggregateForecast(),Mo=new il(gt,this.chartService)):Mo=new Ps(gt,this.chartService),m[Re].categories=Mo.options.srcCategories,di){if(this.namedCategoryAxes[di])throw new Error(`Category axis with name ${di} is already defined`);this.namedCategoryAxes[di]=Mo}Mo.axisIndex=Re,Z.push(Mo),this.appendAxis(Mo)}}const le=this.categoryAxis||Z[0];this.categoryAxis=le,c?this.axisY=le:this.axisX=le}isJustified(){const r=this.series;for(let c=0;c<r.length;c++)if(!It(r[c].type,im))return!1;return!0}createValueAxes(r){const c=this.valueAxisRangeTracker,m=c.query(),Z=[].concat(this.options.valueAxis),le=this.invertAxes,Re={vertical:!le,reverse:le&&this.chartService.rtl},gt=[];this.stack100&&(Re.roundToMajorUnit=!1,Re.labels={format:"P0"});for(let di=0;di<Z.length;di++){const no=Z[di];if(It(this.findPane(no.pane),r)){const ir=no.name,Wr=je(no.type,pf)?{min:.1,max:1}:{min:0,max:1},Qr=c.query(ir)||m||Wr;let Bs;0===di&&Qr&&m&&(Qr.min=Math.min(Qr.min,m.min),Qr.max=Math.max(Qr.max,m.max)),Bs=je(no.type,pf)?hs:pa;const oa=new Bs(Qr.min,Qr.max,sn({},Re,no),this.chartService);if(ir){if(this.namedValueAxes[ir])throw new Error(`Value axis with name ${ir} is already defined`);this.namedValueAxes[ir]=oa}oa.axisIndex=di,gt.push(oa),this.appendAxis(oa)}}const hn=this.valueAxis||gt[0];this.valueAxis=hn,le?this.axisX=hn:this.axisY=hn}_dispatchEvent(r,c,m){const Z=r._eventCoordinates(c),le=new Ts(Z.x,Z.y),Re=this.pointPane(le),gt=[],hn=[];if(!Re)return;const di=Re.axes;for(let no=0;no<di.length;no++){const Mo=di[no];Mo.getValue?_p(hn,Mo.getValue(le)):_p(gt,Mo.getCategory(le))}0===gt.length&&_p(gt,this.categoryAxis.getCategory(le)),gt.length>0&&hn.length>0&&r.trigger(m,{element:Nr(c),originalEvent:c,category:fl(gt),value:fl(hn)})}pointPane(r){const c=this.panes;for(let m=0;m<c.length;m++){const Z=c[m];if(Z.contentBox.containsPoint(r))return Z}}updateAxisOptions(r,c){Qg(this.options,r,c),Qg(this.originalOptions,r,c)}}function Qg(ve,r,c){sn([].concat(r instanceof Ps?ve.categoryAxis:ve.valueAxis)[r.axisIndex],c)}function Pg(ve,r,c){return Ki(ve,function(m){return 0===c&&!m.categoryAxis||m.categoryAxis===r})}ms(bm,{categoryAxis:{},valueAxis:{}}),sn(bm.prototype,Hf);const Cf=bm;function Cm(ve){return"function"==typeof ve}function xm(ve){return"string"==typeof ve?[ve]:ve}function Sm(){this._defaultPrevented=!0}function Cp(){return!0===this._defaultPrevented}const xp=class rd extends jo.Z{constructor(){super(),this._events={}}bind(r,c,m){const Z=xm(r),le=Cm(c),Re=Z.length;if(void 0===c){for(let gt in r)this.bind(gt,r[gt]);return this}for(let gt=0;gt<Re;gt++){const hn=Z[gt];let di=le?c:c[hn];if(di){if(m){const Mo=di;di=()=>{this.unbind(hn,di),Mo.apply(this,arguments)},di.original=Mo}(this._events[hn]=this._events[hn]||[]).push(di)}}return this}one(r,c){return this.bind(r,c,!0)}first(r,c){const m=xm(r),Z=Cm(c);for(let le=0,Re=m.length;le<Re;le++){const gt=m[le],hn=Z?c:c[gt];hn&&(this._events[gt]=this._events[gt]||[]).unshift(hn)}return this}trigger(r,c={}){let m=this._events[r];if(m){const Z=m.length;c.sender=this,c._defaultPrevented=!1,c.preventDefault=Sm,c.isDefaultPrevented=Cp,m=m.slice();for(let le=0;le<Z;le++)m[le].call(this,c);return!0===c._defaultPrevented}return!1}unbind(r,c){const m=this._events[r];if(void 0===r)this._events={};else if(m)if(c)for(let Z=m.length-1;Z>=0;Z--)(m[Z]===c||m[Z].original===c)&&m.splice(Z,1);else this._events[r]=[];return this}},Xg=/matrix\((.*)\)/;function jf(ve){const r=getComputedStyle(ve).transform;return"none"===r?br.Z.unit():function sf(ve){const r=ve.match(Xg);if(null===r||2!==r.length)return br.Z.unit();const c=r[1].split(",").map(m=>parseFloat(m));return new br.Z(...c)}(r)}const Rf=["click","mouseenter","mouseleave","mousemove","resize"],ap=class Rm extends xp{constructor(r,c){super(),this.options=Object.assign({},c),this.element=r,this.element._kendoExportVisual=this.exportVisual.bind(this),this._click=this._handler("click"),this._mouseenter=this._handler("mouseenter"),this._mouseleave=this._handler("mouseleave"),this._mousemove=this._handler("mousemove"),this._visual=new ht.Z,Xi(r,this.options),this.bind(Rf,this.options),this._enableTracking()}draw(r){this._visual.children.push(r)}clear(){this._visual.children=[]}destroy(){this._visual=null,this.element._kendoExportVisual=null,this.unbind()}eventTarget(r){let m,c=si(r);for(;!m&&c&&(m=c._kendoNode,c!==this.element);)c=c.parentElement;if(m)return m.srcElement}exportVisual(){return this._visual}getSize(){return Xi(this.element)}currentSize(r){if(!r)return this._size;this._size=r}setSize(r){Xi(this.element,r),this.currentSize(r),this._resize()}resize(r){const c=this.getSize(),m=this.currentSize();(r||(c.width>0||c.height>0)&&(!m||c.width!==m.width||c.height!==m.height))&&(this.currentSize(c),this._resize(c,r),this.trigger("resize",c))}size(r){if(!r)return this.getSize();this.setSize(r)}suspendTracking(){this._suspendedTracking=!0}resumeTracking(){this._suspendedTracking=!1}_enableTracking(){}_resize(){}_handler(r){return c=>{const m=this.eventTarget(c);m&&!this._suspendedTracking&&this.trigger(r,{element:m,originalEvent:c,type:r})}}_elementOffset(){const r=this.element,c=function om(ve){const{paddingLeft:r,paddingTop:c}=Ei(ve,["paddingLeft","paddingTop"]);return{top:parseFloat(c),left:parseFloat(r)}}(r),{left:m,top:Z}=zn(r);return{left:m+c.left,top:Z+c.top}}_surfacePoint(r){const c=this._elementOffset(),m=go(r),Z=m.x-c.left,le=m.y-c.top,Re=function sp(ve){if(!ve)return br.Z.unit();let r=jf(ve),c=ve.parentElement;for(;c;){const m=jf(c);r=r.multiplyCopy(m),c=c.parentElement}return r.b=r.c=r.e=r.f=0,r}(this.element).invert();return new ls.Z(Z,le).transform(Re)}},Gp=class rm extends jo.Z{constructor(r){super(),this.childNodes=[],this.parent=null,r&&(this.srcElement=r,this.observe())}destroy(){this.srcElement&&this.srcElement.removeObserver(this);const r=this.childNodes;for(let c=0;c<r.length;c++)this.childNodes[c].destroy();this.parent=null}load(){}observe(){this.srcElement&&this.srcElement.addObserver(this)}append(r){this.childNodes.push(r),r.parent=this}insertAt(r,c){this.childNodes.splice(c,0,r),r.parent=this}remove(r,c){const m=r+c;for(let Z=r;Z<m;Z++)this.childNodes[Z].removeSelf();this.childNodes.splice(r,c)}removeSelf(){this.clear(),this.destroy()}clear(){this.remove(0,this.childNodes.length)}invalidate(){this.parent&&this.parent.invalidate()}geometryChange(){this.invalidate()}optionsChange(){this.invalidate()}childrenChange(r){"add"===r.action?this.load(r.items,r.index):"remove"===r.action&&this.remove(r.index,r.items.length),this.invalidate()}};function jd(ve,r){return(0,Le.Z)(r)&&null!==r?` ${ve}="${r}" `:""}function xf(ve){let r="";for(let c=0;c<ve.length;c++)r+=jd(ve[c][0],ve[c][1]);return r}function lp(ve){let r="";for(let c=0;c<ve.length;c++){let m=ve[c][1];(0,Le.Z)(m)&&(r+=ve[c][0]+":"+m+";")}if(""!==r)return r}const Tu={},Sf="http://www.w3.org/2000/svg",Lf="none",wp="data-style",Nm=ve=>ve.replace(/\sstyle=/g," "+wp+"="),wm=ve=>{Array.from(ve.querySelectorAll("["+wp+"]")).forEach(r=>{const c=r.getAttribute(wp);r.removeAttribute(wp),((ve,r)=>{ve.split(";").filter(c=>""!==c).forEach(c=>{const m=c.split(":");r.style[m[0].trim()]=m[1].trim()})})(c,r)})};let cp=function(ve,r){ve.innerHTML=Nm(r),wm(ve)};if(typeof document<"u"){const ve="<svg xmlns='"+Sf+"'></svg>",r=document.createElement("div"),c=typeof DOMParser<"u";r.innerHTML=ve,c&&r.firstChild.namespaceURI!==Sf&&(cp=function(m,Z){const Re=(new DOMParser).parseFromString(Nm(Z),"text/xml");wm(Re);const gt=document.adoptNode(Re.documentElement);m.innerHTML="",m.appendChild(gt)})}const sm=cp,qg=/&/g,e_=/</g,Rg=/"/g,Lg=/'/g,am=/>/g;function Gu(ve){return String(ve).replace(qg,"&amp;").replace(e_,"&lt;").replace(am,"&gt;").replace(Rg,"&quot;").replace(Lg,"&#39;")}const Hu="transform",dp={clip:"clip-path",fill:"fill"};function Ng(ve,r){return"clip"===ve||"fill"===ve&&(!r||"Gradient"===r.nodeType)}const Fm=class xc extends Gp{constructor(r,c){super(r),this.definitions={},this.options=c}destroy(){this.element&&(this.element._kendoNode=null,this.element=null),this.clearDefinitions(),super.destroy()}load(r,c){for(let m=0;m<r.length;m++){const Z=r[m],le=Z.children,Re=new Tu[Z.nodeType](Z,this.options);(0,Le.Z)(c)?this.insertAt(Re,c):this.append(Re),Re.createDefinitions(),le&&le.length>0&&Re.load(le);const gt=this.element;gt&&Re.attachTo(gt,c)}}root(){let r=this;for(;r.parent;)r=r.parent;return r}attachTo(r,c){const m=document.createElement("div");sm(m,"<svg xmlns='"+Sf+"' version='1.1'>"+this.render()+"</svg>");const Z=m.firstChild.firstChild;Z&&((0,Le.Z)(c)?r.insertBefore(Z,r.childNodes[c]||null):r.appendChild(Z),this.setElement(Z))}setElement(r){this.element&&(this.element._kendoNode=null),this.element=r,this.element._kendoNode=this;const c=this.childNodes;for(let m=0;m<c.length;m++)c[m].setElement(r.childNodes[m])}clear(){this.clearDefinitions(),this.element&&(this.element.innerHTML="");const r=this.childNodes;for(let c=0;c<r.length;c++)r[c].destroy();this.childNodes=[]}removeSelf(){if(this.element){const r=this.element.parentNode;r&&r.removeChild(this.element),this.element=null}super.removeSelf()}template(){return this.renderChildren()}render(){return this.template()}renderChildren(){const r=this.childNodes;let c="";for(let m=0;m<r.length;m++)c+=r[m].render();return c}optionsChange(r){const{field:c,value:m}=r;"visible"===c?this.css("display",m?"":Lf):dp[c]&&Ng(c,m)?this.updateDefinition(c,m):"opacity"===c?this.attr("opacity",m):"cursor"===c?this.css("cursor",m):"id"===c&&(m?this.attr("id",m):this.removeAttr("id")),super.optionsChange(r)}accessibilityOptionsChange(r){const{field:c,value:m}=r;"role"===c?m?this.attr("role",m):this.removeAttr("role"):"ariaLabel"===c?m?this.attr("aria-label",Gu(m)):this.removeAttr("aria-label"):"ariaRoleDescription"===c?m?this.attr("aria-roledescription",Gu(m)):this.removeAttr("aria-roledescription"):"ariaChecked"===c?(0,Le.Z)(m)?this.attr("aria-checked",m):this.removeAttr("aria-checked"):"className"===c&&this.className(m)}attr(r,c){this.element&&this.element.setAttribute(r,c)}allAttr(r){for(let c=0;c<r.length;c++)this.attr(r[c][0],r[c][1])}toggleAttr(r,c){c?this.attr(r,c):this.removeAttr(r)}css(r,c){this.element&&(this.element.style[r]=c)}allCss(r){for(let c=0;c<r.length;c++)this.css(r[c][0],r[c][1])}className(r){this.element&&(this.element.classList.remove(...this.element.classList),r.split(" ").forEach(c=>{this.element.classList.add(c)}))}removeAttr(r){this.element&&this.element.removeAttribute(r)}mapTransform(r){const c=[];return r&&c.push([Hu,"matrix("+r.matrix().toString(6)+")"]),c}renderTransform(){return xf(this.mapTransform(this.srcElement.transform()))}transformChange(r){r?this.allAttr(this.mapTransform(r)):this.removeAttr(Hu)}mapStyle(){const r=this.srcElement.options,c=[["cursor",r.cursor]];return!1===r.visible&&c.push(["display",Lf]),c}renderStyle(){return jd("style",lp(this.mapStyle(!0)))}renderOpacity(){return jd("opacity",this.srcElement.options.opacity)}renderId(){return jd("id",this.srcElement.options.id)}renderClassName(){return jd("class",this.srcElement.options.className)}renderRole(){return jd("role",this.srcElement.options.role)}renderAriaLabel(){let r=this.srcElement.options.ariaLabel;return r&&(r=Gu(r)),jd("aria-label",r)}renderAriaRoleDescription(){let r=this.srcElement.options.ariaRoleDescription;return r&&(r=Gu(r)),jd("aria-roledescription",r)}renderAriaChecked(){return jd("aria-checked",this.srcElement.options.ariaChecked)}createDefinitions(){const r=this.srcElement,c=this.definitions;if(r){const m=r.options;let Z;for(let le in dp){let Re=m.get(le);Re&&Ng(le,Re)&&(c[le]=Re,Z=!0)}Z&&this.definitionChange({action:"add",definitions:c})}}definitionChange(r){this.parent&&this.parent.definitionChange(r)}updateDefinition(r,c){const m=this.definitions,Z=m[r],le=dp[r],Re={};Z&&(Re[r]=Z,this.definitionChange({action:"remove",definitions:Re}),delete m[r]),c?(Re[r]=c,this.definitionChange({action:"add",definitions:Re}),m[r]=c,this.attr(le,this.refUrl(c.id))):Z&&this.removeAttr(le)}clearDefinitions(){this.definitionChange({action:"remove",definitions:this.definitions}),this.definitions={}}renderDefinitions(){return xf(this.mapDefinitions())}mapDefinitions(){const r=this.definitions,c=[];for(let m in r)c.push([dp[m],this.refUrl(r[m].id)]);return c}refUrl(r){const c=(this.options||{}).skipBaseHref,m=this.baseUrl().replace(/'/g,"\\'");return`url(${c?"":m}#${r})`}baseUrl(){return function up(){const ve=document.getElementsByTagName("base")[0];let r=document.location.href,c="";if(ve&&!(Ne.Z.browser||{}).msie){const m=r.indexOf("#");-1!==m&&(r=r.substring(0,m)),c=r}return c}()}},Yd=class Pu extends Fm{template(){return`<stop ${this.renderOffset()} ${this.renderStyle()} />`}renderOffset(){return jd("offset",this.srcElement.offset())}mapStyle(){const r=this.srcElement;return[["stop-color",r.color()],["stop-opacity",r.opacity()]]}optionsChange(r){"offset"===r.field?this.attr(r.field,r.value):("color"===r.field||"opacity"===r.field)&&this.css("stop-"+r.field,r.value)}},Yf=class gg extends Fm{constructor(r){super(r),this.id=r.id,this.loadStops()}loadStops(){const r=this.srcElement.stops,c=this.element;for(let m=0;m<r.length;m++){let Z=new Yd(r[m]);this.append(Z),c&&Z.attachTo(c)}}optionsChange(r){"gradient.stops"===r.field?(Gp.prototype.clear.call(this),this.loadStops()):"gradient"===r.field&&this.allAttr(this.mapCoordinates())}renderCoordinates(){return xf(this.mapCoordinates())}mapSpace(){return["gradientUnits",this.srcElement.userSpace()?"userSpaceOnUse":"objectBoundingBox"]}},Vp=class Hp extends Yf{template(){return`<linearGradient id='${this.id}' ${this.renderCoordinates()}>${this.renderChildren()}</linearGradient>`}mapCoordinates(){const r=this.srcElement,c=r.start(),m=r.end();return[["x1",c.x],["y1",c.y],["x2",m.x],["y2",m.y],this.mapSpace()]}},_g=class Em extends Yf{template(){return`<radialGradient id='${this.id}' ${this.renderCoordinates()}>${this.renderChildren()}</radialGradient>`}mapCoordinates(){const r=this.srcElement,c=r.center(),m=r.radius();return[["cx",c.x],["cy",c.y],["r",m],this.mapSpace()]}},Wp=class Fg extends Fm{constructor(r){super(),this.srcElement=r,this.id=r.id,this.load([r])}renderClipRule(){return jd("clip-rule","evenodd")}template(){return`<clipPath ${this.renderClipRule()} id='${this.id}'>${this.renderChildren()}</clipPath>`}},nc=class lm extends Fm{constructor(){super(),this.definitionMap={}}attachTo(r){this.element=r}template(){return`<defs>${this.renderChildren()}</defs>`}definitionChange(r){const{definitions:c,action:m}=r;"add"===m?this.addDefinitions(c):"remove"===m&&this.removeDefinitions(c)}createDefinition(r,c){let m;return"clip"===r?m=Wp:"fill"===r&&(c instanceof Ls.Z?m=Vp:c instanceof vn.Z&&(m=_g)),new m(c)}addDefinitions(r){for(let c in r)this.addDefinition(c,r[c])}addDefinition(r,c){const{element:m,definitionMap:Z}=this,le=c.id,Re=Z[le];if(Re)Re.count++;else{const gt=this.createDefinition(r,c);Z[le]={element:gt,count:1},this.append(gt),m&&gt.attachTo(this.element)}}removeDefinitions(r){for(let c in r)this.removeDefinition(r[c])}removeDefinition(r){const c=this.definitionMap,m=r.id,Z=c[m];Z&&(Z.count--,0===Z.count&&(this.remove(this.childNodes.indexOf(Z.element),1),delete c[m]))}},Nf=class qm extends Fm{constructor(r){super(),this.options=r,this.defs=new nc}attachTo(r){this.element=r,this.defs.attachTo(r.firstElementChild)}clear(){Gp.prototype.clear.call(this)}template(){return this.defs.render()+this.renderChildren()}definitionChange(r){this.defs.definitionChange(r)}};var sd=i(66098);const Ru={dot:[1.5,3.5],dash:[4,3.5],longdash:[8,3.5],dashdot:[3.5,3.5,1.5,3.5],longdashdot:[8,3.5,1.5,3.5],longdashdotdot:[8,3.5,1.5,3.5,1.5,3.5]},Bm="solid",x_={"fill.opacity":"fill-opacity","stroke.color":"stroke","stroke.width":"stroke-width","stroke.opacity":"stroke-opacity"},Ep=class Bd extends Fm{geometryChange(){this.attr("d",this.renderData()),this.invalidate()}optionsChange(r){switch(r.field){case"fill":r.value?this.allAttr(this.mapFill(r.value)):this.removeAttr("fill");break;case"fill.color":this.allAttr(this.mapFill({color:r.value}));break;case"stroke":r.value?this.allAttr(this.mapStroke(r.value)):this.removeAttr("stroke");break;case"transform":this.transformChange(r.value);break;default:const c=x_[r.field];c&&this.attr(c,r.value)}this.accessibilityOptionsChange(r),super.optionsChange(r)}content(){this.element&&(this.element.textContent=this.srcElement.content())}renderData(){return this.srcElement.toString(3)||void 0}mapStroke(r){const c=[];return r&&!(0,sd.Z)(r.color)?(c.push(["stroke",r.color]),c.push(["stroke-width",r.width]),c.push(["stroke-linecap",this.renderLinecap(r)]),c.push(["stroke-linejoin",r.lineJoin]),(0,Le.Z)(r.opacity)&&c.push(["stroke-opacity",r.opacity]),(0,Le.Z)(r.dashType)&&c.push(["stroke-dasharray",this.renderDashType(r)])):c.push(["stroke",Lf]),c}renderStroke(){return xf(this.mapStroke(this.srcElement.options.stroke))}renderDashType(r){const{dashType:c,width:m=1}=r;if(c&&c!==Bm){const Z=Ru[c.toLowerCase()],le=[];for(let Re=0;Re<Z.length;Re++)le.push(Z[Re]*m);return le.join(" ")}}renderLinecap(r){const{dashType:c,lineCap:m}=r;return c&&"solid"!==c?"butt":m}mapFill(r){const c=[];return r&&"Gradient"===r.nodeType||(r&&!(0,sd.Z)(r.color)?(c.push(["fill",r.color]),(0,Le.Z)(r.opacity)&&c.push(["fill-opacity",r.opacity])):c.push(["fill",Lf])),c}renderFill(){return xf(this.mapFill(this.srcElement.options.fill))}template(){return`<path ${this.renderId()} ${this.renderStyle()} ${this.renderOpacity()} ${jd("d",this.renderData())}${this.renderStroke()}${this.renderFill()}${this.renderDefinitions()}${this.renderTransform()}${this.renderClassName()} ${this.renderRole()}${this.renderAriaLabel()} ${this.renderAriaRoleDescription()}${this.renderAriaChecked()} ></path>`}},Ac=/&(?:[a-zA-Z]+|#\d+);/g;function ol(ve){if(!ve||"string"!=typeof ve||!Ac.test(ve))return ve;const r=ol._element;return Ac.lastIndex=0,ve.replace(Ac,c=>(r.innerHTML=c,r.textContent||r.innerText))}typeof document<"u"&&(ol._element=document.createElement("span"));Tu.Arc=class Zd extends Ep{renderData(){return this.srcElement.toPath().toString(3)}},Tu.Circle=class eg extends Ep{geometryChange(){const r=this.center();this.attr("cx",r.x),this.attr("cy",r.y),this.attr("r",this.radius()),this.invalidate()}center(){return this.srcElement.geometry().center}radius(){return this.srcElement.geometry().radius}template(){return`<circle ${this.renderId()} ${this.renderStyle()} ${this.renderOpacity()}cx='${this.center().x}' cy='${this.center().y}' r='${this.radius()}'${this.renderStroke()} ${this.renderFill()} ${this.renderDefinitions()}${this.renderClassName()} ${this.renderRole()}${this.renderAriaLabel()} ${this.renderAriaRoleDescription()}${this.renderAriaChecked()} ${this.renderTransform()} ></circle>`}},Tu.Group=class t_ extends Fm{template(){return`<g${this.renderId()+this.renderTransform()+this.renderClassName()+this.renderStyle()+this.renderOpacity()+this.renderRole()+this.renderAriaLabel()+this.renderAriaRoleDescription()+this.renderAriaChecked()+this.renderDefinitions()}>${this.renderChildren()}</g>`}optionsChange(r){const{field:c,value:m}=r;"transform"===c&&this.transformChange(m),this.accessibilityOptionsChange(r),super.optionsChange(r)}},Tu.Image=class zm extends Ep{geometryChange(){this.allAttr(this.mapPosition()),this.invalidate()}optionsChange(r){"src"===r.field&&this.allAttr(this.mapSource()),super.optionsChange(r)}mapPosition(){const r=this.srcElement.rect(),c=r.topLeft();return[["x",c.x],["y",c.y],["width",r.width()+"px"],["height",r.height()+"px"]]}renderPosition(){return xf(this.mapPosition())}mapSource(r){let c=this.srcElement.src();return r&&(c=Gu(c)),[["xlink:href",c]]}renderSource(){return xf(this.mapSource(!0))}template(){return`<image preserveAspectRatio='none' ${this.renderId()} ${this.renderStyle()} ${this.renderTransform()} ${this.renderOpacity()}${this.renderPosition()} ${this.renderSource()} ${this.renderDefinitions()}${this.renderClassName()} ${this.renderRole()}${this.renderAriaLabel()} ${this.renderAriaRoleDescription()}${this.renderAriaChecked()} ></image>`}},Tu.MultiPath=class Oh extends Ep{renderData(){return this.srcElement.toString(3)||"undefined"}},Tu.Path=Ep,Tu.Rect=class bd extends Ep{geometryChange(){const r=this.srcElement.geometry();this.attr("x",r.origin.x),this.attr("y",r.origin.y),this.attr("width",r.size.width),this.attr("height",r.size.height),this.attr("rx",r.cornerRadius[0]),this.attr("ry",r.cornerRadius[1]),this.invalidate()}size(){return this.srcElement.geometry().size}origin(){return this.srcElement.geometry().origin}rx(){return this.srcElement.geometry().cornerRadius[0]}ry(){return this.srcElement.geometry().cornerRadius[1]}template(){return`<rect ${this.renderId()} ${this.renderStyle()} ${this.renderOpacity()} x='${this.origin().x}' y='${this.origin().y}' rx='${this.rx()}' ry='${this.ry()}' width='${this.size().width}' height='${this.size().height}' ${this.renderStroke()} ${this.renderFill()} ${this.renderDefinitions()} ${this.renderTransform()}${this.renderClassName()} ${this.renderRole()}${this.renderAriaLabel()} ${this.renderAriaRoleDescription()}${this.renderAriaChecked()} />`}},Tu.Text=class Kf extends Ep{geometryChange(){const r=this.pos();this.attr("x",r.x),this.attr("y",r.y),this.invalidate()}optionsChange(r){"font"===r.field?(this.attr("style",lp(this.mapStyle())),this.geometryChange()):"content"===r.field&&super.content(this.srcElement.content()),super.optionsChange(r)}mapStyle(r){const c=super.mapStyle(r);let m=this.srcElement.options.font;return r&&(m=Gu(m)),c.push(["font",m],["white-space","pre"]),c}pos(){const r=this.srcElement.position(),c=this.srcElement.measure();return r.clone().setY(r.y+c.baseline)}renderContent(){let r=this.srcElement.content();return r=ol(r),r=Gu(r),(0,bo.bG)(r)}renderTextAnchor(){let r;return(this.options||{}).rtl&&!(Ne.Z.browser.msie||Ne.Z.browser.edge)&&(r="end"),jd("text-anchor",r)}renderPaintOrder(){const r=this.srcElement.options.paintOrder;return r?jd("paint-order",r):""}template(){return`<text ${this.renderId()} ${this.renderTextAnchor()} ${this.renderStyle()} ${this.renderOpacity()}x='${this.pos().x}' y='${this.pos().y}' ${this.renderStroke()} ${this.renderTransform()} ${this.renderDefinitions()}${this.renderPaintOrder()}${this.renderFill()}${this.renderClassName()} ${this.renderRole()}${this.renderAriaLabel()} ${this.renderAriaRoleDescription()}${this.renderAriaChecked()}>${this.renderContent()}</text>`}};const Rh=class Gm extends ap{get type(){return"svg"}constructor(r,c){super(r,c),this._root=new Nf(Object.assign({rtl:"rtl"===Ei(r,"direction").direction},this.options)),sm(this.element,this._template("")),this._rootElement=this.element.firstElementChild,this._rootElement.style.width="100%",this._rootElement.style.height="100%",this._rootElement.style.overflow="hidden",function fc(ve){let r;try{r=ve.getScreenCTM?ve.getScreenCTM():null}catch{}if(r){const c=-r.e%1,m=-r.f%1,Z=ve.style;(0!==c||0!==m)&&(Z.left=c+"px",Z.top=m+"px")}}(this._rootElement),this._root.attachTo(this._rootElement),hi(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove}),this.resize()}destroy(){this._root&&(this._root.destroy(),this._root=null,this._rootElement=null,ki(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove})),super.destroy()}translate(r){const c=`${Math.round(r.x)} ${Math.round(r.y)} ${this._size.width} ${this._size.height}`;this._offset=r,this._rootElement.setAttribute("viewBox",c)}draw(r){super.draw(r),this._root.load([r])}clear(){super.clear(),this._root.clear()}svg(){return"<?xml version='1.0' ?>"+this._template()}exportVisual(){let{_visual:r,_offset:c}=this;if(c){const m=new ht.Z;m.children.push(r),m.transform((0,Tt.Z)().translate(-c.x,-c.y)),r=m}return r}_resize(){this._offset&&this.translate(this._offset)}_template(r){return`<svg ${"string"==typeof r?r:"style='width: 100%; height: 100%; overflow: hidden;' "}xmlns='${Sf}' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'>${this._root.render()}</svg>`}};var hh=i(97296);const Cn={},Zt=class Fe extends Gp{constructor(r){super(r),r&&this.initClip()}initClip(){const r=this.srcElement.clip();r&&(this.clip=r,r.addObserver(this))}clear(){this.srcElement&&this.srcElement.removeObserver(this),this.clearClip(),super.clear()}clearClip(){this.clip&&(this.clip.removeObserver(this),delete this.clip)}setClip(r){this.clip&&(r.beginPath(),new Cn[this.clip.nodeType](this.clip).renderPoints(r,this.clip),r.clip("evenodd"))}optionsChange(r){"clip"===r.field&&(this.clearClip(),this.initClip()),super.optionsChange(r)}setTransform(r){if(this.srcElement){const c=this.srcElement.transform();c&&r.transform.apply(r,c.matrix().toArray(6))}}loadElements(r,c,m){for(let Z=0;Z<r.length;Z++){let le=r[Z],Re=le.children,gt=new Cn[le.nodeType](le,m);Re&&Re.length>0&&gt.load(Re,c,m),(0,Le.Z)(c)?this.insertAt(gt,c):this.append(gt)}}load(r,c,m){this.loadElements(r,c,m),this.invalidate()}setOpacity(r){if(this.srcElement){const c=this.srcElement.opacity();(0,Le.Z)(c)&&this.globalAlpha(r,c)}}globalAlpha(r,c){let m=c;m&&r.globalAlpha&&(m*=r.globalAlpha),r.globalAlpha=m}visible(){const r=this.srcElement;return!r||r&&!1!==r.options.visible}};var Ln=i(47911);class So extends((0,Ln.Z)(Zt,"childNodes")){renderTo(r){if(!this.visible())return;r.save(),this.setTransform(r),this.setClip(r),this.setOpacity(r);const c=this.childNodes;for(let m=0;m<c.length;m++){let Z=c[m];Z.visible()&&Z.renderTo(r)}r.restore()}}const Jo=So;function Hr(ve,r){let m,c=0;if(!r||r<=0)return ve;const Z=function(){const le=sr()-c,Re=arguments,gt=function(){ve.apply(null,Re),c=sr()};if(!c)return gt();m&&clearTimeout(m),le>r?gt():m=setTimeout(gt,r-le)};return Z.cancel=function(){clearTimeout(m)},Z}class Vs extends((0,Ln.Z)(Jo,"childNodes")){constructor(r,c){super(),this.canvas=r,this.size=c,this.ctx=r.getContext("2d");const m=this._invalidate.bind(this);this.invalidate=Hr(()=>{Ur(m)},16.666666666666668)}destroy(){super.destroy(),this.canvas=null,this.ctx=null}load(r,c,m){this.loadElements(r,c,m),this._invalidate()}_rescale(r){const{canvas:c,size:m}=this;c.width=m.width*r,c.height=m.height*r,this.ctx.scale(r,r)}_devicePixelRatio(){return"number"==typeof window.devicePixelRatio?window.devicePixelRatio:1}_invalidate(r){if(!this.ctx)return;const m=r&&r.fixedScale?1:this._devicePixelRatio();this._rescale(m),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.renderTo(this.ctx)}}const Ra=Vs,Al=class Ha extends jo.Z{constructor(){super(),this.shapes=[]}_add(r,c){this.shapes.push({bbox:c,shape:r}),r._quadNode=this}pointShapes(r){const c=this.shapes,m=c.length,Z=[];for(let le=0;le<m;le++)c[le].bbox.containsPoint(r)&&Z.push(c[le].shape);return Z}insert(r,c){this._add(r,c)}remove(r){const c=this.shapes,m=c.length;for(let Z=0;Z<m;Z++)if(c[Z].shape===r){c.splice(Z,1);break}}};class kl extends Al{constructor(r){super(),this.children=[],this.rect=r}inBounds(r){const c=this.rect,m=c.bottomRight(),Z=r.bottomRight();return c.origin.x<=r.origin.x&&c.origin.y<=r.origin.y&&Z.x<=m.x&&Z.y<=m.y}pointShapes(r){const c=this.children,m=c.length,Z=super.pointShapes(r);for(let le=0;le<m;le++)(0,jn.Z)(Z,c[le].pointShapes(r));return Z}insert(r,c){const m=this.children;let Z=!1;if(this.inBounds(c)){if(this.shapes.length<4)this._add(r,c);else{m.length||this._initChildren();for(let le=0;le<m.length;le++)if(m[le].insert(r,c)){Z=!0;break}Z||this._add(r,c)}Z=!0}return Z}_initChildren(){const{rect:r,children:c}=this,m=r.center(),Z=r.width()/2,le=r.height()/2;c.push(new kl(new Ss.Z([r.origin.x,r.origin.y],[Z,le])),new kl(new Ss.Z([m.x,r.origin.y],[Z,le])),new kl(new Ss.Z([r.origin.x,m.y],[Z,le])),new kl(new Ss.Z([m.x,m.y],[Z,le])))}}const gl=kl,wl=3e3;function Md(ve,r){return ve._zIndex<r._zIndex?1:ve._zIndex>r._zIndex?-1:0}const Sc=class jc extends jo.Z{constructor(){super(),this.initRoots()}initRoots(){this.rootMap={},this.root=new Al,this.rootElements=[]}clear(){const r=this.rootElements;for(let c=0;c<r.length;c++)this.remove(r[c]);this.initRoots()}pointShape(r){const c=(this.rootMap[Math.floor(r.x/wl)]||{})[Math.floor(r.y/wl)];let m=this.root.pointShapes(r);c&&(m=m.concat(c.pointShapes(r))),this.assignZindex(m),m.sort(Md);for(let Z=0;Z<m.length;Z++)if(m[Z].containsPoint(r))return m[Z]}assignZindex(r){for(let c=0;c<r.length;c++){let m=r[c],Z=0,le=Math.pow(1e4,75),Re=[];for(;m;)Re.push(m),m=m.parent;for(;Re.length;)m=Re.pop(),Z+=((m.parent?m.parent.children:this.rootElements).indexOf(m)+1)*le,le/=1e4;r[c]._zIndex=Z}}optionsChange(r){("transform"===r.field||"stroke.width"===r.field)&&this.bboxChange(r.element)}geometryChange(r){this.bboxChange(r.element)}bboxChange(r){if("Group"===r.nodeType)for(let c=0;c<r.children.length;c++)this.bboxChange(r.children[c]);else r._quadNode&&r._quadNode.remove(r),this._insertShape(r)}add(r){const c=Array.isArray(r)?r.slice(0):[r];(0,jn.Z)(this.rootElements,c),this._insert(c)}childrenChange(r){if("remove"===r.action)for(let c=0;c<r.items.length;c++)this.remove(r.items[c]);else this._insert(Array.prototype.slice.call(r.items,0))}_insert(r){let c;for(;r.length>0;)c=r.pop(),c.addObserver(this),"Group"===c.nodeType?(0,jn.Z)(r,c.children):this._insertShape(c)}_insertShape(r){const c=r.bbox();if(c){const m=this.getSectors(c),Z=m[0][0],le=m[1][0];if(this.inRoot(m))this.root.insert(r,c);else{const Re=this.rootMap;Re[Z]||(Re[Z]={}),Re[Z][le]||(Re[Z][le]=new gl(new Ss.Z([Z*wl,le*wl],[wl,wl]))),Re[Z][le].insert(r,c)}}}remove(r){if(r.removeObserver(this),"Group"===r.nodeType){const c=r.children;for(let m=0;m<c.length;m++)this.remove(c[m])}else r._quadNode&&(r._quadNode.remove(r),delete r._quadNode)}inRoot(r){return r[0].length>1||r[1].length>1}getSectors(r){const c=r.bottomRight(),m=Math.floor(c.x/wl),Z=Math.floor(c.y/wl),le=[[],[]];for(let Re=Math.floor(r.origin.x/wl);Re<=m;Re++)le[0].push(Re);for(let Re=Math.floor(r.origin.y/wl);Re<=Z;Re++)le[1].push(Re);return le}};var pc=i(31462);function wc(ve,r){const c=r.segments;if(0===c.length)return;let m=c[0],Z=m.anchor();ve.moveTo(Z.x,Z.y);for(let le=1;le<c.length;le++){m=c[le],Z=m.anchor();let gt=c[le-1].controlOut(),hn=m.controlIn();gt&&hn?ve.bezierCurveTo(gt.x,gt.y,hn.x,hn.y,Z.x,Z.y):ve.lineTo(Z.x,Z.y)}r.options.closed&&ve.closePath()}const Jh=class dm extends Zt{renderTo(r){r.save(),this.setTransform(r),this.setClip(r),this.setOpacity(r),r.beginPath(),this.renderPoints(r,this.srcElement),this.setLineDash(r),this.setLineCap(r),this.setLineJoin(r),this.setFill(r),this.setStroke(r),r.restore()}setFill(r){const c=this.srcElement.options.fill;let m=!1;return c&&("Gradient"===c.nodeType?(this.setGradientFill(r,c),m=!0):(0,sd.Z)(c.color)||(r.fillStyle=c.color,r.save(),this.globalAlpha(r,c.opacity),r.fill(),r.restore(),m=!0)),m}setGradientFill(r,c){const m=this.srcElement.rawBBox();let Z;if(c instanceof Ls.Z){let le=c.start(),Re=c.end();Z=r.createLinearGradient(le.x,le.y,Re.x,Re.y)}else if(c instanceof vn.Z){let le=c.center();Z=r.createRadialGradient(le.x,le.y,0,le.x,le.y,c.radius())}(function hp(ve,r){for(let c=0;c<r.length;c++){let m=r[c],Z=(0,pc.ZP)(m.color());Z.a*=m.opacity(),ve.addColorStop(m.offset(),Z.toCssRgba())}})(Z,c.stops),r.save(),c.userSpace()||r.transform(m.width(),0,0,m.height(),m.origin.x,m.origin.y),r.fillStyle=Z,r.fill(),r.restore()}setStroke(r){const c=this.srcElement.options.stroke;if(c&&!(0,sd.Z)(c.color)&&c.width>0)return r.strokeStyle=c.color,r.lineWidth=(0,wi.Z)(c.width,1),r.lineJoin=(0,wi.Z)(c.lineJoin,r.lineJoin),r.save(),this.globalAlpha(r,c.opacity),r.stroke(),r.restore(),!0}dashType(){const r=this.srcElement.options.stroke;if(r&&r.dashType)return r.dashType.toLowerCase()}setLineDash(r){const c=this.dashType();if(c&&c!==Bm){const m=Ru[c];r.setLineDash?r.setLineDash(m):(r.mozDash=m,r.webkitLineDash=m)}}setLineCap(r){const c=this.dashType(),m=this.srcElement.options.stroke;c&&c!==Bm?r.lineCap="butt":m&&m.lineCap&&(r.lineCap=m.lineCap)}setLineJoin(r){const c=this.srcElement.options.stroke;c&&c.lineJoin&&(r.lineJoin=c.lineJoin)}renderPoints(r,c){wc(r,c)}};Cn.Arc=class um extends Jh{renderPoints(r){wc(r,this.srcElement.toPath())}},Cn.Circle=class vg extends Jh{renderPoints(r){const{center:c,radius:m}=this.srcElement.geometry();r.arc(c.x,c.y,m,0,2*Math.PI)}},Cn.Group=Jo,Cn.Image=class Il extends Jh{constructor(r,c){super(r),this.onLoad=this.onLoad.bind(this),this.onError=this.onError.bind(this),this.loading=(0,hh.Z)();const m=this.img=new Image,Z=r.src();c&&!/^data:/i.test(Z)&&(m.crossOrigin=c),Z&&(m.src=Z),m.complete?this.onLoad():(m.onload=this.onLoad,m.onerror=this.onError)}renderTo(r){"resolved"===this.loading.state()&&(r.save(),this.setTransform(r),this.setClip(r),this.drawImage(r),r.restore())}optionsChange(r){"src"===r.field?(this.loading=(0,hh.Z)(),this.img.src=this.srcElement.src()):super.optionsChange(r)}onLoad(){this.loading.resolve(),this.invalidate()}onError(){this.loading.reject(new Error("Unable to load image '"+this.img.src+"'. Check for connectivity and verify CORS headers."))}drawImage(r){const c=this.srcElement.rect(),m=c.topLeft();r.drawImage(this.img,m.x,m.y,c.width(),c.height())}},Cn.MultiPath=class Xl extends Jh{renderPoints(r){const c=this.srcElement.paths;for(let m=0;m<c.length;m++)wc(r,c[m])}},Cn.Path=Jh,Cn.Rect=class Vu extends Jh{renderPoints(r){const c=this.srcElement.geometry(),[m,Z]=c.cornerRadius;if(0===m&&0===Z){const{origin:le,size:Re}=c;r.rect(le.x,le.y,Re.width,Re.height)}else super.renderPoints(r,Js.y.fromRect(c))}},Cn.Text=class Hl extends Jh{renderTo(r){const c=this.srcElement,m=c.position(),Z=c.measure();r.save(),this.setTransform(r),this.setClip(r),this.setOpacity(r),r.beginPath(),r.font=c.options.font,r.textAlign="left","stroke"===c.options.paintOrder?(this.stroke(r,c,m,Z),this.fill(r,c,m,Z)):(this.fill(r,c,m,Z),this.stroke(r,c,m,Z)),r.restore()}stroke(r,c,m,Z){this.setStroke(r)&&(this.setLineDash(r),r.strokeText(c.content(),m.x,m.y+Z.baseline))}fill(r,c,m,Z){this.setFill(r)&&r.fillText(c.content(),m.x,m.y+Z.baseline)}};const L_=class lu extends ap{get type(){return"canvas"}constructor(r,c){super(r,c),this.element.innerHTML=this._template(this);const m=this.element.firstElementChild;m.style.width="100%",m.style.height="100%";const Z=Xi(r);m.width=Z.width,m.height=Z.height,this._rootElement=m,this._root=new Ra(m,Z),this._mouseTrackHandler=this._trackMouse.bind(this),hi(this.element,{click:this._mouseTrackHandler,mousemove:this._mouseTrackHandler})}destroy(){super.destroy(),this._root&&(this._root.destroy(),this._root=null),this._searchTree&&(this._searchTree.clear(),delete this._searchTree),this._cursor&&(this._cursor.destroy(),delete this._cursor),ki(this.element,{click:this._mouseTrackHandler,mousemove:this._mouseTrackHandler})}draw(r){super.draw(r),this._root.load([r],void 0,this.options.cors),this._searchTree&&this._searchTree.add([r])}clear(){super.clear(),this._root.clear(),this._searchTree&&this._searchTree.clear(),this._cursor&&this._cursor.clear()}eventTarget(r){if(this._searchTree){const c=this._surfacePoint(r);return this._searchTree.pointShape(c)}}image(){const{_root:r,_rootElement:c}=this,m=[];r.traverse(Re=>{Re.loading&&m.push(Re.loading)});const Z=(0,hh.Z)(),le=()=>{r._invalidate({fixedScale:!0});try{const Re=c.toDataURL();Z.resolve(Re)}catch(Re){Z.reject(Re)}};return function Dp(ve){return Promise.all(ve)}(m).then(le,le),Z}suspendTracking(){super.suspendTracking(),this._searchTree&&(this._searchTree.clear(),delete this._searchTree)}resumeTracking(){if(super.resumeTracking(),!this._searchTree){this._searchTree=new Sc;const r=this._root.childNodes,c=[];for(let m=0;m<r.length;m++)c.push(r[m].srcElement);this._searchTree.add(c)}}_resize(){this._rootElement.width=this._size.width,this._rootElement.height=this._size.height,this._root.size=this._size,this._root.invalidate()}_template(){return"<canvas></canvas>"}_enableTracking(){this._searchTree=new Sc,this._cursor=new class fh{constructor(r){r.bind("mouseenter",this._mouseenter.bind(this)),r.bind("mouseleave",this._mouseleave.bind(this)),this.element=r.element}clear(){this._resetCursor()}destroy(){this._resetCursor(),delete this.element}_mouseenter(r){const c=this._shapeCursor(r);c?(this._current||(this._defaultCursor=this._getCursor()),this._setCursor(c)):this._resetCursor()}_mouseleave(){this._resetCursor()}_shapeCursor(r){let c=r.element;for(;c&&!(0,Le.Z)(c.options.cursor);)c=c.parent;if(c)return c.options.cursor}_getCursor(){if(this.element)return this.element.style.cursor}_setCursor(r){this.element&&(this.element.style.cursor=r,this._current=r)}_resetCursor(){this._current&&(this._setCursor(this._defaultCursor||""),delete this._current)}}(this),super._enableTracking()}_trackMouse(r){if(this._suspendedTracking)return;const c=this.eventTarget(r);if("click"!==r.type){const m=this._currentShape;m&&m!==c&&this.trigger("mouseleave",{element:m,originalEvent:r,type:"mouseleave"}),c&&m!==c&&this.trigger("mouseenter",{element:c,originalEvent:r,type:"mouseenter"}),this.trigger("mousemove",{element:c,originalEvent:r,type:"mousemove"}),this._currentShape=c}else c&&this.trigger("click",{element:c,originalEvent:r,type:"click"})}};let af,gu;const Ee=()=>typeof document<"u";class Ie extends jo.Z{static get support(){return gu||(gu={canvas:Ee()&&document.createElement("canvas").getContext,svg:Ee()&&document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}),gu}static get current(){return af||(af=new Ie),af}constructor(){super(),this._items=[{name:"svg",type:Rh},{name:"canvas",type:L_}]}create(r,c){const m=this._items;let Z=m[0];if(c&&c.type){const le=c.type.toLowerCase();for(let Re=0;Re<m.length;Re++)if(m[Re].name===le){Z=m[Re];break}}if(Z)return new Z.type(r,c);wn(`Warning: Unable to create Kendo UI Drawing Surface. Possible causes:\n- The browser does not support SVG and Canvas. User agent: ${navigator.userAgent}`)}}const gn=Ie,zo=class Si extends ap{static get support(){return gn.support}static create(r,c){return gn.current.create(r,c)}};function zr(){this._defaultPrevented=!0}const Lr=class _r extends jo.Z{constructor(){super(),this._points=[]}destroy(){this._points=[]}show(r,c){const m=[].concat(r);this.hide();for(let Z=0;Z<m.length;Z++){const le=m[Z];le&&le.toggleHighlight&&le.hasHighlight()&&(this.togglePointHighlight(le,!0,c),this._points.push(le))}}togglePointHighlight(r,c,m){const Z=(r.options.highlight||{}).toggle;if(Z){const le={category:r.category,series:r.series,dataItem:r.dataItem,value:r.value,stackValue:r.stackValue,preventDefault:zr,visual:r.highlightVisual(),show:c};Z(le),le._defaultPrevented||r.toggleHighlight(c,m)}else r.toggleHighlight(c,m)}hide(){const r=this._points;for(;r.length;)this.togglePointHighlight(r.pop(),!1)}isHighlighted(r){const c=this._points;for(let m=0;m<c.length;m++)if(r===c[m])return!0;return!1}};function ws(ve,r){const c=(r||"").toLowerCase(),m=ve.event;return"none"===c&&!(m.ctrlKey||m.shiftKey||m.altKey)||m[c+"Key"]}function $s(ve){const r={};for(let c=0;c<ve.length;c++){const m=ve[c];m.axis.options.name&&(r[m.axis.options.name]={min:m.range.min,max:m.range.max})}return r}class ya extends jo.Z{constructor(r,c){super(),this.plotArea=r,this.options=sn({},this.options,c)}start(r){return this._active=ws(r,this.options.key),this._active}move(r){if(this._active){const c=this.axisRanges=this._panAxes(r,ge).concat(this._panAxes(r,Ce));if(c.length)return this.axisRanges=c,$s(c)}}end(){const r=this._active;return this._active=!1,r}pan(){const{plotArea:r,axisRanges:c}=this;if(c.length){for(let m=0;m<c.length;m++){const Z=c[m];r.updateAxisOptions(Z.axis,Z.range)}r.redraw(r.panes)}}destroy(){delete this.plotArea}_panAxes(r,c){const m=this.plotArea,Z=-r[c].delta,le=(this.options.lock||"").toLowerCase(),Re=[];if(0!==Z&&(le||"").toLowerCase()!==c){const gt=m.axes;for(let hn=0;hn<gt.length;hn++){const di=gt[hn];if(c===ge&&!di.options.vertical||c===Ce&&di.options.vertical){const no=di.pan(Z);no&&(no.limitRange=!0,Re.push({axis:di,range:no}))}}}return Re}}ya.prototype.options={key:"none",lock:"none"};const ua=ya;class Ja extends jo.Z{constructor(r,c){super(),this.chart=r,this.options=sn({},this.options,c),this.createElement()}createElement(){const r=this._marquee=document.createElement("div");r.className="k-marquee";const c=document.createElement("div");c.className="k-marquee-color",r.appendChild(c)}removeElement(){this._marquee.parentNode&&this._marquee.parentNode.removeChild(this._marquee)}setStyles(r){mi(this._marquee,r)}start(r){if(ws(r,this.options.key)){const c=this.chart,m=c._eventCoordinates(r),Z=this._zoomPane=c._plotArea.paneByPoint(m),le=Z?Z.chartsBox().clone():null;if(Z&&le){const Re=this._elementOffset();return le.translate(Re.left,Re.top),this._zoomPaneClipBox=le,document.body.appendChild(this._marquee),this.setStyles({left:r.pageX+1,top:r.pageY+1,width:0,height:0}),!0}}return!1}_elementOffset(){const r=this.chart.element,{paddingLeft:c,paddingTop:m}=mi(r,["paddingLeft","paddingTop"]),Z=Lo(r);return{left:c+Z.left,top:m+Z.top}}move(r){this._zoomPane&&this.setStyles(this._selectionPosition(r))}end(r){if(this._zoomPane){const m=this._elementOffset(),Z=this._selectionPosition(r);return Z.left-=m.left,Z.top-=m.top,this._updateAxisRanges({x:Z.left,y:Z.top},{x:Z.left+Z.width,y:Z.top+Z.height}),this.removeElement(),delete this._zoomPane,$s(this.axisRanges)}}zoom(){const r=this.axisRanges;if(r&&r.length){const c=this.chart._plotArea;for(let m=0;m<r.length;m++){const Z=r[m];c.updateAxisOptions(Z.axis,Z.range)}c.redraw(c.panes)}}destroy(){this.removeElement(),delete this._marquee,delete this.chart}_updateAxisRanges(r,c){const m=(this.options.lock||"").toLowerCase(),Z=[],le=this._zoomPane.axes;for(let Re=0;Re<le.length;Re++){const gt=le[Re],hn=gt.options.vertical;if((m!==ge||hn)&&(m!==Ce||!hn)&&Bi(gt.axisIndex)){const di=gt.pointsRange(r,c);di&&Z.push({axis:gt,range:di})}}this.axisRanges=Z}_selectionPosition(r){const c=this._zoomPaneClipBox,m={x:r.x.startLocation,y:r.y.startLocation},{x:{location:Z},y:{location:le}}=r,Re=(this.options.lock||"").toLowerCase();let gt=Math.min(m.x,Z),hn=Math.min(m.y,le),di=Math.abs(m.x-Z),no=Math.abs(m.y-le);return Re===ge&&(gt=c.x1,di=c.width()),Re===Ce&&(hn=c.y1,no=c.height()),Z>c.x2&&(di=c.x2-m.x),Z<c.x1&&(di=m.x-c.x1),le>c.y2&&(no=c.y2-m.y),le<c.y1&&(no=m.y-c.y1),{left:Math.max(gt,c.x1),top:Math.max(hn,c.y1),width:di,height:no}}}Ja.prototype.options={key:"shift",lock:"none"};const jl=Ja,qu=class Lh extends jo.Z{constructor(r,c){super(),this.chart=r,this.options=sn({rate:.3},this.options,c)}updateRanges(r,c){const m=(this.options.lock||"").toLowerCase(),Z=[],le=this.chart._plotArea.axes;for(let Re=0;Re<le.length;Re++){const gt=le[Re],hn=gt.options.vertical;if((m!==ge||hn)&&(m!==Ce||!hn)&&gt.zoomRange){const di=Fo(this.options.rate,.01,.9),no=gt.zoomRange(-r*di,c);no&&Z.push({axis:gt,range:no})}}return this.axisRanges=Z,$s(Z)}zoom(){const r=this.axisRanges,c=this.chart._plotArea;if(r&&r.length&&c.updateAxisOptions){for(let m=0;m<r.length;m++){const Z=r[m];c.updateAxisOptions(Z.axis,Z.range)}c.redraw(c.panes)}}destroy(){delete this.chart}};var lf=i(35148);function bh(ve,r,c,m,Z){let le;return le="start"===c?r.origin[m]:"end"===c?r.origin[m]+r.size[Z]-ve:r.origin[m]+(r.size[Z]-ve)/2,le}function kp(ve,r,c,m,Z){let le;return le="start"===c?r.origin[m]+r.size[Z]-ve:"end"===c?r.origin[m]:r.origin[m]+(r.size[Z]-ve)/2,le}const jp={alignContent:"start",justifyContent:"start",alignItems:"start",spacing:0,orientation:"horizontal",lineSpacing:0,wrap:!0,revers:!1},Bg=(ve,r)=>{ve.forEach(r)},zg=(ve,r)=>{for(let m=ve.length-1;m>=0;m--)r(ve[m],m)},i_=class n_ extends ht.Z{constructor(r,c){super(Object.assign({},jp,c)),this._rect=r,this._fieldMap={}}rect(r){return r?(this._rect=r,this):this._rect}_initMap(){const r=this.options,c=this._fieldMap;"horizontal"===r.orientation?(c.sizeField="width",c.groupsSizeField="height",c.groupAxis="x",c.groupsAxis="y"):(c.sizeField="height",c.groupsSizeField="width",c.groupAxis="y",c.groupsAxis="x"),r.reverse?(this.forEach=zg,this.justifyAlign=kp):(this.forEach=Bg,this.justifyAlign=bh)}reflow(){if(!this._rect||0===this.children.length)return;this._initMap(),this.options.transform&&this.transform(null);const r=this.options,c=this._rect,{groups:m,groupsSize:Z}=this._initGroups(),{sizeField:le,groupsSizeField:Re,groupAxis:gt,groupsAxis:hn}=this._fieldMap,di=new ls.Z,no=new ls.Z,Mo=new lf.Z;let Wr,Qr,Bs,ir=bh(Z,c,r.alignContent,hn,Re);const oa=(Ba,tl)=>{const Dc=Qr.elements[tl];no[gt]=Wr,no[hn]=bh(Ba.size[Re],Bs,r.alignItems,hn,Re),function Wu(ve,r,c){const m=c.transform()||(0,Tt.Z)(),Z=m.matrix();Z.e+=ve.x-r.origin.x,Z.f+=ve.y-r.origin.y,m.matrix(Z),c.transform(m)}(no,Ba,Dc),Wr+=Ba.size[le]+r.spacing};for(let Ba=0;Ba<m.length;Ba++)Qr=m[Ba],di[gt]=Wr=this.justifyAlign(Qr.size,c,r.justifyContent,gt,le),di[hn]=ir,Mo[le]=Qr.size,Mo[Re]=Qr.lineSize,Bs=new Ss.Z(di,Mo),this.forEach(Qr.bboxes,oa),ir+=Qr.lineSize+r.lineSpacing;if(!r.wrap&&Qr.size>c.size[le]){const Ba=c.size[le]/Bs.size[le],tl=Bs.topLeft().scale(Ba,Ba),Ud=bh(Bs.size[Re]*Ba,c,r.alignContent,hn,Re),hu=(0,Tt.Z)();"x"===gt?hu.translate(c.origin.x-tl.x,Ud-tl.y):hu.translate(Ud-tl.x,c.origin.y-tl.y),hu.scale(Ba,Ba),this.transform(hu)}}_initGroups(){const{options:r,children:c}=this,{lineSpacing:m,wrap:Z,spacing:le}=r,Re=this._fieldMap.sizeField;let gt=this._newGroup();const hn=[],di=function(){hn.push(gt),no+=gt.lineSize+m};let no=-m;for(let Mo=0;Mo<c.length;Mo++){let ir=c[Mo],Wr=c[Mo].clippedBBox();ir.visible()&&Wr&&(Z&&gt.size+Wr.size[Re]+le>this._rect.size[Re]?0===gt.bboxes.length?(this._addToGroup(gt,Wr,ir),di(),gt=this._newGroup()):(di(),gt=this._newGroup(),this._addToGroup(gt,Wr,ir)):this._addToGroup(gt,Wr,ir))}return gt.bboxes.length&&di(),{groups:hn,groupsSize:no}}_addToGroup(r,c,m){r.size+=c.size[this._fieldMap.sizeField]+this.options.spacing,r.lineSize=Math.max(c.size[this._fieldMap.groupsSizeField],r.lineSize),r.bboxes.push(c),r.elements.push(m)}_newGroup(){return{lineSize:0,size:-this.options.spacing,bboxes:[],elements:[]}}},Hm=class Ug extends ga{constructor(r,c){super(r),this.chartService=c}render(){const{children:r,options:c}=this,m=c.vertical;this.visual=new i_(null,{spacing:m?0:c.spacing,lineSpacing:m?c.spacing:0,orientation:m?"vertical":"horizontal",reverse:c.rtl,alignItems:m?"start":"center"});for(let Z=0;Z<r.length;Z++){let le=r[Z];le.reflow(new Ar),le.renderVisual()}}reflow(r){this.visual.rect(r.toRect()),this.visual.reflow();const c=this.visual.clippedBBox();this.box=c?en(c):new Ar}renderVisual(){this.addVisual()}createVisual(){}},ed=class Vm extends ur{constructor(r){super(r),this.createContainer(),r.rtl?(this.createLabel(),this.createMarker()):(this.createMarker(),this.createLabel())}createContainer(){this.container=new Sn({vertical:!1,wrap:!1,align:R,spacing:this.options.spacing}),this.append(this.container)}createMarker(){this.container.append(new ra(this.markerOptions()))}markerOptions(){const r=this.options,c=r.markerColor;return sn({},r.markers,{background:c,border:{color:c}})}createLabel(){const r=this.options,c=sn({},r.labels);this.container.append(new ft(r.text,c))}renderComplete(){super.renderComplete();const r=this.options.cursor||{},c=this._itemOverlay=Js.y.fromRect(this.container.box.toRect(),{fill:{color:ne,opacity:0},stroke:null,cursor:r.style||r});this.appendVisual(c)}click(r,c){const m=this.eventArgs(c);!r.trigger("legendItemClick",m)&&c&&"contextmenu"===c.type&&c.preventDefault()}over(r,c){const m=this.eventArgs(c);return r.trigger("legendItemHover",m)||r._legendItemHover(m.seriesIndex,m.pointIndex),!0}out(r,c){r._unsetActivePoint(),r.trigger("legendItemLeave",this.eventArgs(c))}eventArgs(r){const c=this.options;return{element:Nr(r),text:c.text,series:c.series,seriesIndex:c.series.index,pointIndex:c.pointIndex}}renderVisual(){const r=this.options,c=r.visual;c?(this.visual=c({active:r.active,series:r.series,sender:this.getSender(),pointIndex:r.pointIndex,options:{markers:this.markerOptions(),labels:r.labels},createVisual:()=>{this.createVisual(),this.renderChildren(),this.renderComplete();const m=this.visual;return delete this.visual,m}}),this.addVisual()):super.renderVisual()}},w_="horizontal",Ef="custom";class o_ extends ga{constructor(r,c={}){super(r),this.chartService=c,It(this.options.position,[z,de,C,O,Ef])||(this.options.position=de),this.createContainers(),this.createLegendTitle(r.title),this.createItems()}createContainers(){const r=this.options,{position:c,align:m}=r;let Z=c,le=R;c===Ef?Z=O:It(c,[z,C])?(Z="start"===m?O:"end"===m?de:R,le=c):m&&("start"===m?le=z:"end"===m&&(le=C)),this.container=new ur({margin:r.margin,padding:r.padding,background:r.background,border:r.border,vAlign:le,align:Z,zIndex:r.zIndex,shrinkToFit:!0}),this.itemsContainer=this.hasTitle()?new ur({vAlign:le,align:Z,zIndex:r.zIndex,shrinkToFit:!0}):this.container,this.append(this.container)}createItems(){const r=this.getService(),c=this.options,m=this.isVertical(),Z=new Hm({vertical:m,spacing:c.spacing,rtl:r.rtl},r);let le=c.items;c.reverse&&(le=le.slice(0).reverse());const Re=le.length;for(let gt=0;gt<Re;gt++)Z.append(new ed(sn({},{markers:c.markers,labels:c.labels,rtl:r.rtl},c.item,le[gt])));Z.render(),this.itemsContainer.append(Z)}isVertical(){const{orientation:r,position:c}=this.options;return c===Ef&&r!==w_||(Bi(r)?r!==w_:It(c,[O,de]))}hasItems(){return this.container.children[0].children.length>0}reflow(r){const c=this.options,m=r.clone();this.hasItems()?(c.position===Ef?(this.containerCustomReflow(m),this.box=m):this.containerReflow(m),this.hasTitle()&&this.title.reflow(new Ar(this.container.box.x1,this.title.box.y1,this.container.box.x2,this.title.box.y2))):this.box=m}containerReflow(r){const{options:c,container:m}=this,{position:Z,width:le,height:Re}=c,gt=Z===z||Z===C?ge:Ce,hn=this.isVertical(),di=r.clone();let no=r.clone();(Z===O||Z===de)&&(no.y1=di.y1=0),hn&&Re?(no.y2=no.y1+Re,no.align(di,Ce,m.options.vAlign)):!hn&&le&&(no.x2=no.x1+le,no.align(di,ge,m.options.align)),m.reflow(no),no=m.box;const Mo=no.clone();(c.offsetX||c.offsetY)&&(no.translate(c.offsetX,c.offsetY),m.reflow(no)),Mo[gt+1]=r[gt+1],Mo[gt+2]=r[gt+2],this.box=Mo}containerCustomReflow(r){const{options:c,container:m}=this,{offsetX:Z,offsetY:le,width:Re,height:gt}=c,hn=this.isVertical();let di=r.clone();hn&&gt?di.y2=di.y1+gt:!hn&&Re&&(di.x2=di.x1+Re),m.reflow(di),di=m.box,m.reflow(new Ar(Z,le,Z+di.width(),le+di.height()))}renderVisual(){this.hasItems()&&super.renderVisual()}createLegendTitle(r){let c=sn({},{color:_,position:z,align:R},r),m=c.text;if(r&&!1!==r.visible){if(Bi(c)&&c.visible){const Z=Xt(c);Z?m=Z({text:m}):c.format&&(m=this.chartService.format.auto(c.format,m))}this.title=new ft(m,c),this.createTitleLayout(),this.appendTitleLayoutContent()}}createTitleLayout(){this.layout=new Sn({vertical:!0,wrap:!1}),this.container.append(this.layout)}hasTitle(){return!(!this.options.title||!1===this.options.title.visible)}appendTitleLayoutContent(){this.options.title.position===C?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))}}ms(o_,{position:de,items:[],offsetX:0,offsetY:0,margin:Eo(5),padding:Eo(5),border:{color:_,width:0},item:{cursor:"pointer",spacing:6},spacing:6,background:"",zIndex:1,markers:{border:{width:0},width:15,height:3,type:"rect",align:O,vAlign:R}});const E_=o_;class T_ extends jo.Z{constructor(){super(),this._registry=[]}register(r,c){this._registry.push({type:r,seriesTypes:c})}create(r,c,m){const Z=this._registry;let Re,le=Z[0];for(let gt=0;gt<Z.length;gt++){const hn=Z[gt];Re=nr(r,hn.seriesTypes);const di=nr(r,Wc);if(Re.length-di.length>0){le=hn;break}}return new le.type(Re,c,m)}}T_.current=new T_;const hm=T_;function Dm(ve){const r=document.createElement("div");return ve&&(r.className=ve),r}function r_(ve){let r=ve;for(;r&&!Fn(r,"k-handle");)r=r.parentNode;return r}class ng extends jo.Z{constructor(r,c,m,Z){super();const le=r.element;this.options=sn({},this.options,m),this.chart=r,this.observer=Z,this.chartElement=le,this.categoryAxis=c,this._dateAxis=this.categoryAxis instanceof il,this.initOptions(),this.visible=this.options.visible&&le.offsetHeight,this.visible&&(this.createElements(),this.set(this._index(this.options.from),this._index(this.options.to)),this.bindEvents())}onPane(r){return this.categoryAxis.pane===r}createElements(){const r=this.options,c=this.wrapper=Dm("k-selector k-pointer-events-none");mi(c,{top:r.offset.top,left:r.offset.left,width:r.width,height:r.height,direction:"ltr"});const m=this.selection=Dm("k-selection k-pointer-events-none");this.leftMask=Dm("k-mask k-pointer-events-none"),this.rightMask=Dm("k-mask k-pointer-events-none"),c.appendChild(this.leftMask),c.appendChild(this.rightMask),c.appendChild(m);const Z=this.body=Dm("k-selection-bg k-pointer-events-none");m.appendChild(Z);const le=this.leftHandle=Dm("k-handle k-left-handle k-pointer-events-auto"),Re=this.rightHandle=Dm("k-handle k-right-handle k-pointer-events-auto");le.appendChild(Dm()),Re.appendChild(Dm()),m.appendChild(le),m.appendChild(Re),this.chartElement.appendChild(c);const gt=mi(m,["borderLeftWidth","borderRightWidth","height"]),hn=mi(le,"height").height,di=mi(Re,"height").height;r.selection={border:{left:gt.borderLeftWidth,right:gt.borderRightWidth}},mi(le,{top:(gt.height-hn)/2}),mi(Re,{top:(gt.height-di)/2}),c.style.cssText=c.style.cssText}bindEvents(){!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),oo(this.chartElement,{[yd]:this._mousewheelHandler})),this._domEvents=Wn.create(this.chartElement,{stopPropagation:!0,start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),press:this._press.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)})}initOptions(){const{options:r,categoryAxis:c}=this,m=c.pane.chartsBox(),Z=this.chart.chartService.intl;this._dateAxis&&sn(r,{min:ks(Z,r.min),max:ks(Z,r.max),from:ks(Z,r.from),to:ks(Z,r.to)});const{paddingLeft:le,paddingTop:Re}=mi(this.chartElement,["paddingLeft","paddingTop"]);this.options=sn({},{width:m.width(),height:m.height()+.1,padding:{left:le,top:Re},offset:{left:m.x1+le,top:m.y1+Re},from:r.min,to:r.max},r)}destroy(){this._domEvents&&(this._domEvents.destroy(),delete this._domEvents),clearTimeout(this._mwTimeout),this._state=null,this.wrapper&&(this._mousewheelHandler&&(Io(this.chartElement,{[yd]:this._mousewheelHandler}),this._mousewheelHandler=null),this.chartElement.removeChild(this.wrapper),this.wrapper=null)}_rangeEventArgs(r){return{axis:this.categoryAxis.options,from:this._value(r.from),to:this._value(r.to)}}_pointInPane(r,c){const m=this.categoryAxis.pane.box,Z=this.chart._toModelCoordinates(r,c);return m.containsPoint(Z)}_start(r){const c=this.options,m=Nr(r);if(this._state||!m)return;const Z=xr(r);if(!this._pointInPane(Z.x,Z.y))return;const Re=r_(m),gt=this.body.getBoundingClientRect(),hn=!Re&&Z.x>=gt.x&&Z.x<=gt.x+gt.width&&Z.y>=gt.y&&Z.y<=gt.y+gt.height;this.chart._unsetActivePoint(),this._state={moveTarget:Re,startLocation:r.x?r.x.location:0,inBody:hn,range:{from:this._index(c.from),to:this._index(c.to)}};const di=this._rangeEventArgs({from:this._index(c.from),to:this._index(c.to)});this.trigger(hd,di)&&(this._state=null)}_press(r){let c;c=this._state?this._state.moveTarget:r_(Nr(r)),c&&fe(c,"k-handle-active")}_move(r){if(!this._state)return;const{_state:c,options:m,categoryAxis:Z}=this,{range:le,moveTarget:Re}=c,gt=Z.options.reverse,hn=this._index(m.from),di=this._index(m.to),no=this._index(m.min),Mo=this._index(m.max),ir=c.startLocation-r.x.location,Wr_from=le.from,Wr_to=le.to,Qr=le.to-le.from,Bs=mi(this.wrapper,"width").width/(Z.categoriesCount()-1),oa=Math.round(ir/Bs)*(gt?-1:1);if(!Re&&!c.inBody)return;const Ba=Re&&Fn(Re,"k-left-handle"),tl=Re&&Fn(Re,"k-right-handle");c.inBody?(le.from=Math.min(Math.max(no,hn-oa),Mo-Qr),le.to=Math.min(le.from+Qr,Mo)):Ba&&!gt||tl&&gt?(le.from=Math.min(Math.max(no,hn-oa),Mo-1),le.to=Math.max(le.from+1,le.to)):(Ba&&gt||tl&&!gt)&&(le.to=Math.min(Math.max(no+1,di-oa),Mo),le.from=Math.min(le.to-1,le.from)),(le.from!==Wr_from||le.to!==Wr_to)&&(this.move(le.from,le.to),this.trigger(ff,this._rangeEventArgs(le)))}_end(){if(this._state){const r=this._state.moveTarget;r&&Oe(r,"k-handle-active");const c=this._state.range;this.set(c.from,c.to),this.trigger(Iu,this._rangeEventArgs(c)),delete this._state}}_tap(r){const{options:c,categoryAxis:m}=this,Z=this.chart._eventCoordinates(r),le=m.pointCategoryIndex(new Ts(Z.x,m.box.y1)),Re=this._index(c.from),gt=this._index(c.to),hn=this._index(c.min),di=this._index(c.max),no=gt-Re,ir={},Wr=3===r.event.which;let Qr=Math.round(Re+no/2-le);this._state||Wr||(this.chart._unsetActivePoint(),m.options.justified||Qr--,ir.from=Math.min(Math.max(hn,Re-Qr),di-no),ir.to=Math.min(ir.from+no,di),this._start(r),this._state&&(this._state.range=ir,this.trigger(ff,this._rangeEventArgs(ir)),this._end()))}_mousewheel(r){let c=ln(r);if(this._start(r),this._state){const m=this._state.range;r.preventDefault(),r.stopPropagation(),Math.abs(c)>1&&(c*=3),this.options.mousewheel.reverse&&(c*=-1),this.expand(c)&&this.trigger(ff,{axis:this.categoryAxis.options,delta:c,originalEvent:r,from:this._value(m.from),to:this._value(m.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout(()=>{this._end()},150)}}_gesturestart(r){const c=this.options,m=r.touches[0];if(!this._pointInPane(m.pageX,m.pageY))return;this._state={range:{from:this._index(c.from),to:this._index(c.to)}};const le=this._rangeEventArgs(this._state.range);this.trigger(hd,le)?this._state=null:r.preventDefault()}_gestureend(){this._state&&(this.trigger(Iu,this._rangeEventArgs(this._state.range)),delete this._state)}_gesturechange(r){if(!this._state)return;const{chart:c,_state:m,options:Z,categoryAxis:le}=this,Re=m.range,gt=c._toModelCoordinates(r.touches[0].x.location).x,hn=c._toModelCoordinates(r.touches[1].x.location).x,di=Math.min(gt,hn),no=Math.max(gt,hn);r.preventDefault(),Re.from=le.pointCategoryIndex(new Ts(di))||Z.min,Re.to=le.pointCategoryIndex(new Ts(no))||Z.max,this.move(Re.from,Re.to),this.trigger(ff,this._rangeEventArgs(Re))}_index(r){let c=r;return r instanceof Date&&(c=this.categoryAxis.categoryIndex(r)),c}_value(r){let c=r;return this._dateAxis&&(c=this.categoryAxis.categoryAt(r),c>this.options.max&&(c=this.options.max)),c}_slot(r){const c=this.categoryAxis,m=this._index(r);return c.getSlot(m,m,!0)}move(r,c){const m=this.options,Z=this.categoryAxis.options.reverse,{offset:le,padding:Re,selection:{border:gt}}=m,di=Z?r:c,no="x"+(Z?2:1);let Mo=this._slot(Z?c:r);const ir=Gn(Mo[no]-le.left+Re.left);mi(this.leftMask,{width:ir}),mi(this.selection,{left:ir}),Mo=this._slot(di);const Wr=Gn(m.width-(Mo[no]-le.left+Re.left));mi(this.rightMask,{width:Wr});let Qr=m.width-Wr;Qr!==m.width&&(Qr+=gt.right),mi(this.rightMask,{left:Qr}),mi(this.selection,{width:Math.max(m.width-(ir+Wr)-gt.right,0)})}set(r,c){const m=this.options,Z=this._index(m.min),le=this._index(m.max),Re=Fo(this._index(r),Z,le),gt=Fo(this._index(c),Re+1,le);m.visible&&this.move(Re,gt),m.from=this._value(Re),m.to=this._value(gt)}expand(r){const c=this.options,m=this._index(c.min),Z=this._index(c.max),le=c.mousewheel.zoom,Re=this._index(c.from),gt=this._index(c.to);let hn={from:Re,to:gt};const di=sn({},hn);if(this._state&&(hn=this._state.range),le!==de&&(hn.from=Fo(Fo(Re-r,0,gt-1),m,Z)),le!==O&&(hn.to=Fo(Fo(gt+r,hn.from+1,Z),m,Z)),hn.from!==di.from||hn.to!==di.to)return this.set(hn.from,hn.to),!0}zoom(r,c){const m=this.options,Z=this._index(m.min),le=this._index(m.max),Re=this._index(m.from),gt=this._index(m.to);let hn={from:Re,to:gt};const di=sn({},hn),{reverse:no}=this.categoryAxis.options,Mo=ge+(no?"2":"1"),ir=this.categoryAxis.lineBox(),Wr=Math.abs(ir[Mo]-c[ge]),Qr=ir.width(),Bs=Gn(Wr/Qr,2),oa=Gn(Bs*r),Ba=Gn((1-Bs)*r);if(this._state&&(hn=this._state.range),hn.from=Fo(Fo(Re-oa,0,gt-1),Z,le),hn.to=Fo(Fo(gt+Ba,hn.from+1,le),Z,le),hn.from!==di.from||hn.to!==di.to)return this.set(hn.from,hn.to),!0}trigger(r,c){return(this.observer||this.chart).trigger(r,c)}}ms(ng,{visible:!0,mousewheel:{zoom:"both"},min:V,max:U});const pp=ng,a_=class s_ extends el{show(r){if(!r||!r.tooltipAnchor||this._current&&this._current===r)return;const c=sn({},this.options,r.options.tooltip),m=r.tooltipAnchor();m?(this._current=r,super.show({point:r,anchor:m},c,r)):this.hide()}hide(){delete this._current,super.hide()}};class Hg extends el{constructor(r,c){super(r.chartService,c),this.plotArea=r,this.formatService=r.chartService.format}showAt(r,c){const m=Ki(r,function(Z){const le=Z.series.tooltip;return!(le&&!1===le.visible)});if(m.length>0){const Z=m[0],le=this.plotArea.categoryAxis.getSlot(Z.categoryIx),Re=c?this._slotAnchor(c,le):this._defaultAnchor(Z,le);this.show({anchor:Re,shared:!0,points:r,category:Z.category,categoryText:this.formatService.auto(this.options.categoryFormat,Z.category),series:this.plotArea.series},this.options)}}_slotAnchor(r,c){return this.plotArea.categoryAxis.options.vertical||(r.x=c.center().x),{point:r,align:{horizontal:"left",vertical:"center"}}}_defaultAnchor(r,c){const m=r.owner.pane.chartsBox(),Z=this.plotArea.categoryAxis.options.vertical,le=m.center(),Re=c.center();let hn;return hn=Z?new Ts(le.x,Re.y):new Ts(Re.x,le.y),{point:hn,align:{horizontal:"center",vertical:"center"}}}}ms(Hg,{categoryFormat:"{0:d}"});const yg=Hg;class l_ extends da{setup(){const{element:r,options:c}=this;if(r.bbox()){this.origin=c.origin;const Z=c.vertical?Ce:ge,le=this.fromScale=new ls.Z(1,1);le[Z]=Gd,r.transform(Tt.Z().scale(le.x,le.y))}else this.abort()}step(r){const c=xt(this.fromScale.x,1,r),m=xt(this.fromScale.y,1,r);this.element.transform(Tt.Z().scale(c,m,this.origin))}abort(){super.abort(),this.element.transform(null)}}ms(l_,{duration:ud}),Pr.current.register(Ns,l_);class c_ extends da{setup(){const r=this.center=this.element.bbox().center();this.element.transform(Tt.Z().scale(Gd,Gd,r))}step(r){this.element.transform(Tt.Z().scale(r,r,this.center))}}ms(c_,{easing:"easeOutElastic"}),Pr.current.register(qs,c_);class d_ extends da{setup(){this.fadeTo=this.element.opacity(),this.element.opacity(0)}step(r){this.element.opacity(r*this.fadeTo)}}ms(d_,{duration:200,easing:"linear"}),Pr.current.register(ql,d_);class Vg extends da{setup(){this.element.transform(Tt.Z().scale(Gd,Gd,this.options.center))}step(r){this.element.transform(Tt.Z().scale(r,r,this.options.center))}}ms(Vg,{easing:"easeOutElastic",duration:ud}),Pr.current.register(zs,Vg);class mp extends Of{render(){super.render(),this.renderSegments()}createSegment(r,c,m){let le;return le=c.style===Jr?qd:qa,new le(r,c,m)}animationPoints(){return super.animationPoints().concat(this._segments)}createMissingValue(r,c){if(c===rc){const m={x:r.x,y:r.y};return dl(m.x)||(m.x=0),dl(m.y)||(m.y=0),m}}}sn(mp.prototype,Df);const Ip=mp,cu=ve=>({valueFields:r})=>({xValue:r.x,yValue:r[ve]}),Ap={};Ap[Bc]=function eh(ve){const{options:r,seriesValues:c}=ve,m=function bg({seriesValues:ve,options:r}){let{slope:c,intercept:m,count:Z,xMin:le,xMax:Re}=Om(ve(),cu(r.field));if(Z>0){const gt=[],hn=(r.trendline||{}).forecast;hn&&(hn.before>0&&(le-=hn.before),hn.after>0&&(Re+=hn.after));const di=(r.trendline||{}).samplingInterval;let no=wr(di,xs(le,Re)/10);di<=0&&(no=Re-le);for(let Mo=le;Mo<=Re;Mo+=no)gt.push([Mo,c*Mo+m]);return gt}return null}({seriesValues:c,options:r});return m?Object.assign({},r,{type:"scatterLine",data:m}):null},Ap[Bl]=function xg(ve){const{options:r}=ve,c=function Wg({options:ve,seriesValues:r}){const c=(ve.trendline||{}).period||2,Z=op(r({before:c,after:c}),cu(ve.field),c);return Z.length>0?Z:null}(ve);return c?Object.assign({},r,{type:"scatterLine",data:c}):null};const M_=Ap;class ig extends nf{initFields(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new kf,this.yAxisRangeTracker=new kf}render(r=this.panes){this.series=[...this.originalSeries],this.createTrendlineSeries();const c=this.groupSeriesByPane();for(let m=0;m<r.length;m++){const Z=r[m],le=c[Z.options.name||"default"]||[];this.addToLegend(le);const Re=this.filterVisibleSeries(le);Re&&(this.createScatterChart(nr(Re,es),Z),this.createScatterLineChart(nr(Re,Ks),Z),this.createBubbleChart(nr(Re,qs),Z))}this.createAxes(r)}appendChart(r,c){this.xAxisRangeTracker.update(r.xAxisRanges),this.yAxisRangeTracker.update(r.yAxisRanges),super.appendChart(r,c)}removeAxis(r){const c=r.options.name;super.removeAxis(r),r.options.vertical?(this.yAxisRangeTracker.reset(c),delete this.namedYAxes[c]):(this.xAxisRangeTracker.reset(c),delete this.namedXAxes[c]),r===this.axisX&&delete this.axisX,r===this.axisY&&delete this.axisY}seriesPaneName(r){const c=this.options,m=r.xAxis,le=Ki([].concat(c.xAxis),function(ir){return ir.name===m})[0],Re=r.yAxis,hn=Ki([].concat(c.yAxis),function(ir){return ir.name===Re})[0];return(le||{}).pane||(hn||{}).pane||(c.panes||[{}])[0].name||"default"}createScatterChart(r,c){r.length>0&&this.appendChart(new Of(this,{series:r,clip:c.options.clip}),c)}createScatterLineChart(r,c){r.length>0&&this.appendChart(new Ip(this,{series:r,clip:c.options.clip}),c)}createBubbleChart(r,c){r.length>0&&this.appendChart(new Yt(this,{series:r,clip:c.options.clip}),c)}createXYAxis(r,c,m){const Z=r.name,le=c?this.namedYAxes:this.namedXAxes,Re=c?this.yAxisRangeTracker:this.xAxisRangeTracker,gt=sn({reverse:!c&&this.chartService.rtl},r,{vertical:c}),hn=je(gt.type,pf),di=Re.query(),no=hn?{min:.1,max:1}:{min:0,max:1},Mo=Re.query(Z)||di||no,ir=[gt.min,gt.max],Wr=this.series;for(let Ba=0;Ba<Wr.length;Ba++){const tl=Wr[Ba],Dc=tl[c?"yAxis":"xAxis"];if(Dc===gt.name||0===m&&!Dc){const Ud=Jl.current.bindPoint(tl,0).valueFields;ir.push(Ud[c?"y":"x"]);break}}let Qr,Bs;0===m&&di&&(Mo.min=Math.min(Mo.min,di.min),Mo.max=Math.max(Mo.max,di.max));for(let Ba=0;Ba<ir.length;Ba++)if(ir[Ba]instanceof Date){Qr=!0;break}Bs=je(gt.type,w)||!gt.type&&Qr?rn:hn?hs:pa;const oa=new Bs(Mo.min,Mo.max,gt,this.chartService);if(oa.axisIndex=m,Z){if(le[Z])throw new Error(`${c?"Y":"X"} axis with name ${Z} is already defined`);le[Z]=oa}return this.appendAxis(oa),oa}createAxes(r){const c=this.options,m=[].concat(c.xAxis),Z=[],le=[].concat(c.yAxis),Re=[];for(let gt=0;gt<m.length;gt++)It(this.findPane(m[gt].pane),r)&&Z.push(this.createXYAxis(m[gt],!1,gt));for(let gt=0;gt<le.length;gt++)It(this.findPane(le[gt].pane),r)&&Re.push(this.createXYAxis(le[gt],!0,gt));this.axisX=this.axisX||Z[0],this.axisY=this.axisY||Re[0]}_dispatchEvent(r,c,m){const Z=r._eventCoordinates(c),le=new Ts(Z.x,Z.y),Re=this.axes,gt=Re.length,hn=[],di=[];for(let no=0;no<gt;no++){const Mo=Re[no],ir=Mo.options.vertical?di:hn,Wr=Mo.getValue(le);null!==Wr&&ir.push(Wr)}hn.length>0&&di.length>0&&r.trigger(m,{element:Nr(c),originalEvent:c,x:fl(hn),y:fl(di)})}updateAxisOptions(r,c){const m=r.options.vertical,Z=this.groupAxes(this.panes),le=(m?Z.y:Z.x).indexOf(r);h_(this.options,le,m,c),h_(this.originalOptions,le,m,c)}trendlineFactory(r,c){const m=this.seriesValues.bind(this,c.index),Z=nm(M_,r.type,{options:r,seriesValues:m});return Z&&(Z.xAxis=c.xAxis,Z.yAxis=c.yAxis),Z}seriesValues(r){const c=[],m=this.series[r];for(let Z=0;Z<m.data.length;Z++){const le=this.bindPoint(m,Z);c.push({pointIx:Z,valueFields:le.valueFields})}return c}}function h_(ve,r,c,m){sn([].concat(c?ve.yAxis:ve.xAxis)[r],m)}ms(ig,{xAxis:{},yAxis:{}}),sn(ig.prototype,Hf);const f_=ig;class Mm extends ga{constructor(r,c,m){super(m),this.value=r,this.sector=c}render(){const r=this.options.labels,c=this.owner.chartService;let m=this.value;if(this._rendered||!1===this.visible)return;this._rendered=!0;const Z=Xt(r),le=this.pointData();if(Z?m=Z(le):r.format&&(m=c.format.auto(r.format,m)),r.visible&&(m||0===m)){if(r.position===R||r.position===wh)r.color||(r.color=Yr(this.options.color)),r.background||(r.background=this.options.color);else{const Re=c.theme.seriesDefaults.labels;r.color=r.color||Re.color,r.background=r.background||Re.background}this.label=new ft(m,sn({},r,{align:R,vAlign:"",animation:{type:ql,delay:this.animationDelay}}),le),this.append(this.label)}}reflow(r){this.render(),this.box=r,this.reflowLabel()}reflowLabel(){const{options:{labels:r},label:c}=this,m=this.sector.clone(),Z=r.distance,le=m.middle();if(c){const Re=c.box.height(),gt=c.box.width();let hn;if(r.position===R)m.radius=Math.abs((m.radius-Re)/2)+Re,hn=m.point(le),c.reflow(new Ar(hn.x,hn.y-Re/2,hn.x,hn.y));else if(r.position===wh)m.radius=m.radius-Re/2,hn=m.point(le),c.reflow(new Ar(hn.x,hn.y-Re/2,hn.x,hn.y));else{let di;hn=m.clone().expand(Z).point(le),hn.x>=m.center.x?(di=hn.x+gt,c.orientation=de):(di=hn.x-gt,c.orientation=O),c.reflow(new Ar(di,hn.y-Re,hn.x,hn.y))}}}createVisual(){const{sector:r,options:c}=this;if(super.createVisual(),this.value)if(c.visual){const m=(r.startAngle+180)%360,Z=c.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new ls.Z(r.center.x,r.center.y),radius:r.radius,innerRadius:r.innerRadius,startAngle:m,endAngle:m+r.angle,options:c,sender:this.getSender(),createVisual:()=>{const le=new ht.Z;return this.createSegmentVisual(le),le}});Z&&this.visual.append(Z)}else this.createSegmentVisual(this.visual)}createSegmentVisual(r){const{sector:c,options:m}=this,Z=m.border||{},Re=m.color,gt={color:Re,opacity:m.opacity},hn=this.createSegment(c,sn({fill:gt,stroke:{opacity:m.opacity},zIndex:m.zIndex},Z.width>0?{stroke:{color:Z.color,width:Z.width,opacity:Z.opacity,dashType:Z.dashType}}:{}));r.append(hn),ta(m)&&r.append(this.createGradientOverlay(hn,{baseColor:Re,fallbackFill:gt},sn({center:[c.center.x,c.center.y],innerRadius:c.innerRadius,radius:c.radius,userSpace:!0},m.overlay)))}createSegment(r,c){return c.singleSegment?new sl.Z(new Jt.Z(new ls.Z(r.center.x,r.center.y),r.radius),c):Za.current.createRing(r,c)}createAnimation(){const{options:r,sector:{center:c}}=this;sn(r,{animation:{center:[c.x,c.y],delay:this.animationDelay}}),super.createAnimation()}createHighlight(r){const c=this.options.highlight||{},m=c.border||{};return this.createSegment(this.sector,sn({},r,{fill:{color:c.color,opacity:c.opacity},stroke:{opacity:m.opacity,width:m.width,color:m.color}}))}highlightVisual(){return this.visual.children[0]}highlightVisualArgs(){const r=this.sector;return{options:this.options,radius:r.radius,innerRadius:r.innerRadius,center:new ls.Z(r.center.x,r.center.y),startAngle:r.startAngle,endAngle:r.angle+r.startAngle,visual:this.visual}}tooltipAnchor(){const r=this.sector.clone().expand(5),c=r.middle();return{point:r.point(c),align:F_(c+180)}}formatValue(r){return this.owner.formatPointValue(this,r)}pointData(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series,percentage:this.percentage}}}const Y_=Gn(ai(30),p),k_=Gn(ai(60),p);function F_(ve){const r=ai(ve),c=Gn(Math.sin(r),p),m=Gn(Math.cos(r),p);let Z,le;return Z=Math.abs(c)>k_?R:m<0?de:O,le=Math.abs(c)<Y_?R:c<0?C:z,{horizontal:Z,vertical:le}}ms(Mm,{color:ne,overlay:{gradient:"roundedBevel"},border:{width:.5},labels:{visible:!1,distance:35,font:g,margin:Eo(.5),align:x,zIndex:1,position:oh},animation:{type:zs},highlight:{visible:!0,border:{width:1}},visible:!0}),sn(Mm.prototype,Ed);const ko=Mm,Ir={createLegendItem:function(ve,r,c){const m=this.options.legend||{},Z=m.labels||{},le=m.inactiveItems||{},Re=le.labels||{};if(c&&!1!==c.visibleInLegend){const gt=!1!==c.visible,hn=gt?Xt(Z):Xt(Re)||Xt(Z);let no,Mo,di=c.category;hn&&(di=hn({text:di,series:c.series,dataItem:c.dataItem,percentage:c.percentage,value:ve})),gt?(no={},Mo=r.color):(no={color:Re.color,font:Re.font},Mo=(le.markers||{}).color),dl(di)&&""!==di&&this.legendItems.push({active:gt,pointIndex:c.index,text:di,series:c.series,markerColor:Mo,labels:no})}}};class nt extends ga{constructor(r,c){super(c),this.plotArea=r,this.chartService=r.chartService,this.points=[],this.legendItems=[],this.render()}render(){this.traverseDataPoints(this.addValue.bind(this))}traverseDataPoints(r){const{options:c,plotArea:{options:{seriesColors:m=[]}}}=this,Z=m.length,le=c.series,Re=le.length;for(let gt=0;gt<Re;gt++){const hn=le[gt],di=hn.data,{total:no,points:Mo,count:ir}=Rn(hn),Wr=360/no;let Qr,Bs;isFinite(Wr)||(Qr=360/ir),Bs=Bi(hn.startAngle)?hn.startAngle:c.startAngle,gt!==Re-1&&hn.labels.position===oh&&(hn.labels.position=R);for(let oa=0;oa<Mo.length;oa++){const Ba=Mo[oa];if(!Ba)continue;const{fields:tl,value:Dc,visible:Ud}=Ba,hu=0!==Dc?Qr||Dc*Wr:0,qf=1!==di.length&&!!tl.explode;mt(hn.color)||(hn.color=tl.color||m[oa%Z]),r(Dc,new js(null,0,0,Bs,hu),{owner:this,category:Bi(tl.category)?tl.category:"",index:oa,series:hn,seriesIx:gt,dataItem:di[oa],percentage:0!==no?Dc/no:0,explode:qf,visibleInLegend:tl.visibleInLegend,visible:Ud,zIndex:Re-gt,animationDelay:this.animationDelay(oa,gt,Re)}),!1!==Ud&&(Bs+=hu)}}}evalSegmentOptions(r,c,m){const Z=m.series;Gi(r,{value:c,series:Z,dataItem:m.dataItem,category:m.category,percentage:m.percentage},{defaults:Z._defaults,excluded:["data","content","template","visual","toggle"]})}addValue(r,c,m){const Z=sn({},m.series,{index:m.index});if(this.evalSegmentOptions(Z,r,m),this.createLegendItem(r,Z,m),!1===m.visible)return;const le=new ko(r,c,Z);Object.assign(le,m),this.append(le),this.points.push(le)}reflow(r){const{options:c,points:m,seriesConfigs:Z=[]}=this,le=m.length,Re=r.clone(),hn=Math.min(Re.width(),Re.height()),di=hn/2,no=hn-.85*hn,Mo=new Ar(Re.x1,Re.y1,Re.x1+hn,Re.y1+hn),ir=Mo.center(),Wr=Re.center(),Qr=c.series.length,Bs=[],oa=[];let Ba=wr(c.padding,no);this.targetBox=r,Ba=Ba>di-5?di-5:Ba,Mo.translate(Wr.x-ir.x,Wr.y-ir.y);const tl=di-Ba,Dc=new Ts(tl+Mo.x1+Ba,tl+Mo.y1+Ba);for(let Ud=0;Ud<le;Ud++){const hu=m[Ud],qf=hu.sector,Jp=hu.seriesIx;if(qf.radius=tl,qf.center=Dc,Z.length){const R1=Z[Jp];qf.innerRadius=R1.innerRadius,qf.radius=R1.radius}Jp===Qr-1&&hu.explode&&(qf.center=qf.clone().setRadius(.15*qf.radius).point(qf.middle())),hu.reflow(Mo);const Im=hu.label;Im&&Im.options.position===oh&&Jp===Qr-1&&(Im.orientation===de?oa.push(Im):Bs.push(Im))}Bs.length>0&&(Bs.sort(this.labelComparator(!0)),this.leftLabelsReflow(Bs)),oa.length>0&&(oa.sort(this.labelComparator(!1)),this.rightLabelsReflow(oa)),this.box=Mo}leftLabelsReflow(r){const c=this.distanceBetweenLabels(r);this.distributeLabels(c,r)}rightLabelsReflow(r){const c=this.distanceBetweenLabels(r);this.distributeLabels(c,r)}distanceBetweenLabels(r){const c=ji(this.points),m=c.sector,Z=r.length-1,le=m.radius+c.options.labels.distance,Re=[];let gt=r[0].box,hn=Gn(gt.y1-(m.center.y-le-gt.height()-gt.height()/2));Re.push(hn);for(let di=0;di<Z;di++)gt=r[di].box,hn=Gn(r[di+1].box.y1-gt.y2),Re.push(hn);return hn=Gn(m.center.y+le-r[Z].box.y2-r[Z].box.height()/2),Re.push(hn),Re}distributeLabels(r,c){const m=r.length;let Z,le,Re;for(let gt=0;gt<m;gt++)for(Re=-r[gt],Z=le=gt;Re>0&&(Z>=0||le<m);)Re=this._takeDistance(r,gt,--Z,Re),Re=this._takeDistance(r,gt,++le,Re);this.reflowLabels(r,c)}_takeDistance(r,c,m,Z){let le=Z;if(r[m]>0){const Re=Math.min(r[m],le);le-=Re,r[m]-=Re,r[c]+=Re}return le}reflowLabels(r,c){const m=ji(this.points),Z=m.sector,le=m.options.labels,Re=c.length,gt=le.distance;let di,hn=Z.center.y-(Z.radius+gt)-c[0].box.height();r[0]+=2;for(let no=0;no<Re;no++){const Mo=c[no],ir=Mo.box;hn+=r[no],di=this.hAlignLabel(ir.x2,Z.clone().expand(gt),hn,hn+ir.height(),Mo.orientation===de),Mo.orientation===de?(le.align!==x&&(di=Z.radius+Z.center.x+gt),Mo.reflow(new Ar(di+ir.width(),hn,di,hn))):(le.align!==x&&(di=Z.center.x-Z.radius-gt),Mo.reflow(new Ar(di-ir.width(),hn,di,hn))),hn+=ir.height()}}createVisual(){const{options:{connectors:r},points:c}=this,m=c.length;super.createVisual(),this._connectorLines=[];for(let le=0;le<m;le++){const Re=c[le],{sector:gt,label:hn}=Re,di=gt.middle();if(hn){const Mo=new Js.y({stroke:{color:(Re.options.connectors||{}).color||r.color,width:r.width},animation:{type:ql,delay:Re.animationDelay}});if(hn.options.position===oh){const ir=hn.box,Wr=gt.center;let oa,Ba,tl,Qr=gt.point(di),Bs=new Ts(ir.x1,ir.center().y);Qr=gt.clone().expand(r.padding).point(di),Mo.moveTo(Qr.x,Qr.y),hn.orientation===de?(Ba=new Ts(ir.x1-r.padding,ir.center().y),tl=Un(Wr,Qr,Bs,Ba),Bs=new Ts(Ba.x-4,Ba.y),tl=tl||Bs,tl.x=Math.min(tl.x,Bs.x),this.pointInCircle(tl,gt.center,gt.radius+4)||tl.x<gt.center.x?(oa=gt.center.x+gt.radius+4,Mo.lineTo(Re.options.labels.align!==bt?oa<Bs.x?oa:Qr.x+8:oa,Qr.y),Mo.lineTo(Bs.x,Ba.y)):(tl.y=Ba.y,Mo.lineTo(tl.x,tl.y))):(Ba=new Ts(ir.x2+r.padding,ir.center().y),tl=Un(Wr,Qr,Bs,Ba),Bs=new Ts(Ba.x+4,Ba.y),tl=tl||Bs,tl.x=Math.max(tl.x,Bs.x),this.pointInCircle(tl,gt.center,gt.radius+4)||tl.x>gt.center.x?(oa=gt.center.x-gt.radius-4,Mo.lineTo(Re.options.labels.align!==bt?oa>Bs.x?oa:Qr.x-8:oa,Qr.y),Mo.lineTo(Bs.x,Ba.y)):(tl.y=Ba.y,Mo.lineTo(tl.x,tl.y))),Mo.lineTo(Ba.x,Ba.y),this._connectorLines.push(Mo),this.visual.append(Mo)}}}}renderVisual(){if(super.renderVisual(),Rr(this.options.series,r=>r.autoFit)){const r=this.targetBox,c=this.box.center(),m=this.visual.bbox();if(!m)return;const Z=m.bottomRight(),le=Math.min((c.y-r.y1)/(c.y-m.origin.y),(r.y2-c.y)/(Z.y-c.y),(c.x-r.x1)/(c.x-m.origin.x),(r.x2-c.x)/(Z.x-c.x));le<1&&this.visual.transform(Tt.Z().scale(le,le,[c.x,c.y]))}}labelComparator(r){const c=r?-1:1;return function(m,Z){return((m.parent.sector.middle()+270)%360-(Z.parent.sector.middle()+270)%360)*c}}hAlignLabel(r,c,m,Z,le){const{radius:Re,center:{x:gt,y:hn}}=c,di=Math.min(Math.abs(hn-m),Math.abs(hn-Z));return di>Re?r:gt+Math.sqrt(Re*Re-di*di)*(le?1:-1)}pointInCircle(r,c,m){return Math.pow(c.x-r.x,2)+Math.pow(c.y-r.y,2)<Math.pow(m,2)}formatPointValue(r,c){return this.chartService.format.auto(c,r.value)}animationDelay(r){return 70*r}stackRoot(){return this}}function Un(ve,r,c,m){const le=(m.y-c.y)*(r.x-ve.x)-(m.x-c.x)*(r.y-ve.y);let Re;if(0!==le){const gt=((m.x-c.x)*(ve.y-c.y)-(m.y-c.y)*(ve.x-c.x))/le;Re=new Ts(ve.x+gt*(r.x-ve.x),ve.y+gt*(r.y-ve.y))}return Re}ms(nt,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),sn(nt.prototype,Ir),nt.prototype.isStackRoot=!0;const so=nt,Er=class Vo extends nf{render(){this.createPieChart(this.series)}createPieChart(r){const c=r[0],m=new so(this,{series:r,padding:c.padding,startAngle:c.startAngle,connectors:c.connectors,legend:this.options.legend});this.appendChart(m)}appendChart(r,c){super.appendChart(r,c),Zi(this.options.legend.items,r.legendItems)}};class Vr extends ko{reflowLabel(){const{options:{labels:r},label:c}=this,m=this.sector.clone(),Z=m.middle();if(c){const le=c.box.height();if(r.position===R){m.radius-=(m.radius-m.innerRadius)/2;const Re=m.point(Z);c.reflow(new Ar(Re.x,Re.y-le/2,Re.x,Re.y))}else super.reflowLabel()}}createSegment(r,c){return Za.current.createRing(r,c)}}ms(Vr,{overlay:{gradient:"roundedGlass"},labels:{position:R},animation:{type:zs}}),sn(Vr.prototype,Ed);const Xr=Vr;class sa extends so{addValue(r,c,m){const Z=sn({},m.series,{index:m.index});if(this.evalSegmentOptions(Z,r,m),this.createLegendItem(r,Z,m),!1===m.visible)return;const le=new Xr(r,c,Z);Object.assign(le,m),this.append(le),this.points.push(le)}reflow(r){const c=this.options,m=r.clone(),le=Math.min(m.width(),m.height()),Re=le/2,hn=c.series,di=hn.length;let no=wr(c.padding,le-.85*le);no=no>Re-5?Re-5:no;let Wr,Mo=Re-no,ir=0;for(let tl=0;tl<di;tl++){const Dc=hn[tl];0===tl&&Bi(Dc.holeSize)&&(Wr=Dc.holeSize,Mo-=Dc.holeSize),Bi(Dc.size)?Mo-=Dc.size:ir++,Bi(Dc.margin)&&tl!==di-1&&(Mo-=Dc.margin)}Bi(Wr)||(Wr=(Re-no)/(di+.75)*.75,Mo-=Wr);let oa,Ba,Qr=Wr,Bs=0;this.seriesConfigs=[];for(let tl=0;tl<di;tl++){const Dc=hn[tl];oa=wr(Dc.size,Mo/ir),Qr+=Bs,Ba=Qr+oa,this.seriesConfigs.push({innerRadius:Qr,radius:Ba}),Bs=Dc.margin||0,Qr=Ba}super.reflow(r)}animationDelay(r,c,m){return 50*r+ud*(c+1)/(m+1)}}ms(sa,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}});const ma=sa,sc=class El extends nf{initFields(){this.valueAxisRangeTracker=new kf}render(){this.addToLegend(this.series),this.createPolarAxis(),this.createCharts(),this.createValueAxis()}alignAxes(){const r=this.valueAxis,c=r.range(),Z=r.getSlot(r.options.reverse?c.max:c.min),le=this.polarAxis.getSlot(0).center,Re=r.box.translate(le.x-Z.x1,le.y-Z.y1);r.reflow(Re)}createValueAxis(){const r=this.valueAxisRangeTracker,c=r.query(),m=this.valueAxisOptions({roundToMajorUnit:!1,zIndex:-1});let Z,le;m.type===pf?(Z=Tl,le={min:.1,max:1}):(Z=Vc,le={min:0,max:1});const Re=r.query(name)||c||le;Re&&c&&(Re.min=Math.min(Re.min,c.min),Re.max=Math.max(Re.max,c.max));const gt=new Z(Re.min,Re.max,m,this.chartService);this.valueAxis=gt,this.appendAxis(gt)}reflowAxes(){const{options:{plotArea:r},valueAxis:c,polarAxis:m,box:Z}=this,le=.15*Math.min(Z.width(),Z.height()),Re=Eo(r.padding||{},le),gt=Z.clone().unpad(Re),hn=gt.clone();hn.y2=hn.y1+Math.min(hn.width(),hn.height()),hn.align(gt,Ce,R);const di=hn.clone().shrink(0,hn.height()/2);m.reflow(hn),c.reflow(di);const no=c.lineBox().height()-c.box.height();c.reflow(c.box.unpad({top:no})),this.axisBox=hn,this.alignAxes(hn)}backgroundBox(){return this.box}detachLabels(){}};class Yl extends Of{pointSlot(r,c){const Z=Ts.onCircle(r.center,r.startAngle,r.center.y-c.y1);return new Ar(Z.x,Z.y,Z.x,Z.y)}}ms(Yl,{clip:!1});const Zc=Yl;class Kc extends Ip{}Kc.prototype.pointSlot=Zc.prototype.pointSlot,ms(Kc,{clip:!1});const gp=Kc,Yp=class Jf extends gf{fillToAxes(r){const c=this._polarAxisCenter();r.lineTo(c.x,c.y)}_polarAxisCenter(){return this.parent.plotArea.polarAxis.box.center()}strokeSegments(){let r=this._strokeSegments;if(!r){const c=this._polarAxisCenter(),m=new Jc(!1),Z=this.points();Z.push(c),r=this._strokeSegments=m.process(Z),r.pop()}return r}},og=class Lu extends Qc{fillToAxes(r){const m=this.parent.plotArea.polarAxis.box.center(),Z=new cc.Z([m.x,m.y]);r.segments.unshift(Z),r.segments.push(Z)}};function vv(ve,r){return ve.value.x-r.value.x}const $h=class jg extends gp{createSegment(r,c,m){let le;return le=(c.line||{}).style===Jr?new Yp(r,c,m):new og(r,c,m),le}createMissingValue(r,c){let m;return dl(r.x)&&c!==Di&&(m={x:r.x,y:r.y},c===rc&&(m.y=0)),m}seriesMissingValues(r){return r.missingValues||rc}_hasMissingValuesGap(){const r=this.options.series;for(let c=0;c<r.length;c++)if("gap"===this.seriesMissingValues(r[c]))return!0}sortPoints(r){if(r.sort(vv),this._hasMissingValuesGap())for(let c=0;c<r.length;c++){const m=r[c];m&&!dl(m.value.y)&&"gap"===this.seriesMissingValues(m.series)&&delete r[c]}return r}};class Lv extends sc{createPolarAxis(){const r=new bc(this.options.xAxis,this.chartService);this.polarAxis=r,this.axisX=r,this.appendAxis(r)}render(){this.series=[...this.originalSeries],this.createTrendlineSeries(),super.render()}valueAxisOptions(r){return sn(r,{majorGridLines:{type:s},minorGridLines:{type:s}},this.options.yAxis)}createValueAxis(){super.createValueAxis(),this.axisY=this.valueAxis}trendlineFactory(r,c){const m=f_.prototype.trendlineFactory.call(this,r,c);return m&&(m.type=Pe),m}appendChart(r,c){this.valueAxisRangeTracker.update(r.yAxisRanges),nf.prototype.appendChart.call(this,r,c)}createCharts(){const r=this.filterVisibleSeries(this.series),c=this.panes[0];this.createLineChart(nr(r,[Pe]),c),this.createScatterChart(nr(r,[Tn]),c),this.createAreaChart(nr(r,[Ta]),c)}createLineChart(r,c){if(0===r.length)return;const m=new gp(this,{series:r});this.appendChart(m,c)}createScatterChart(r,c){if(0===r.length)return;const m=new Zc(this,{series:r});this.appendChart(m,c)}createAreaChart(r,c){if(0===r.length)return;const m=new $h(this,{series:r});this.appendChart(m,c)}_dispatchEvent(r,c,m){const Z=r._eventCoordinates(c),le=new Ts(Z.x,Z.y),Re=this.axisX.getValue(le),gt=this.axisY.getValue(le);null!==Re&&null!==gt&&r.trigger(m,{element:Nr(c),x:Re,y:gt})}createCrosshairs(){}}ms(Lv,{xAxis:{},yAxis:{}}),sn(Lv.prototype,Hf,{seriesValues:f_.prototype.seriesValues});const r0=Lv;class H0 extends Rp{pointSlot(r,c){const m=r.center.y-c.y1,Z=Ts.onCircle(r.center,r.middle(),m);return new Ar(Z.x,Z.y,Z.x,Z.y)}renderSegments(){if(super.renderSegments(),this._segments&&this._segments.length>1){const r=function L1(ve){const r=[];for(let c=0;c<ve.length;c++){const m=ve[c];r[m.seriesIx]=r[m.seriesIx]||[],r[m.seriesIx].push(m)}return r}(this._segments);for(let c=0;c<r.length;c++){const m=r[c];if(m&&m.length>1){const Z=m[0].linePoints[0],le=ji(m),Re=ji(le.linePoints);0===Z.categoryIx&&Re.categoryIx===Re.categoriesCount-1&&ji(m).linePoints.push(Z)}}}}createSegment(r,c,m){let le;le=c.style===Jr?qd:qa;const Re=new le(r,c,m),gt=this.seriesMissingValues(c);return(r.length===c.data.length||gt===Di)&&(Re.options.closed=!0),Re}}ms(H0,{clip:!1,limitPoints:!1});const V0=H0,Qy=class Nv extends gf{fillToAxes(){}},qy=class Xy extends Qc{fillToAxes(){}},s0=class uy extends V0{createSegment(r,c,m,Z){const Re=(c.line||{}).style;let gt,hn,di;return this.options.isStacked&&m>0&&Z&&(hn=Z.linePoints.slice(0),gt=Z),Re===Jr?(di=new Qy(r,c,m,gt,hn),di.options.closed=!0):(r.push(r[0]),di=new qy(r,c,m,gt,hn)),di}seriesMissingValues(r){return r.missingValues||rc}};class N1 extends Xr{constructor(r,c){super(r,null,c)}}ms(N1,{overlay:{gradient:"none"},labels:{distance:10}});const a2=N1;class Z_ extends ga{constructor(r){super(r),this.forEach=r.rtl?If:Rd}reflow(r){const{options:c,children:m}=this,{gap:Z,spacing:le}=c,Re=m.length,hn=r.angle/(Re+Z+le*(Re-1));let di=r.startAngle+hn*(Z/2);this.forEach(m,no=>{const Mo=r.clone();Mo.startAngle=di,Mo.angle=hn,no.sector&&(Mo.radius=no.sector.radius),no.reflow(Mo),no.sector=Mo,di+=hn+hn*le})}}ms(Z_,{gap:1,spacing:0});const W0=Z_,a0=class hy extends ga{reflow(r){const{options:{reverse:c},children:m}=this,Z=m.length,le=c?Z-1:0,Re=c?-1:1;this.box=new Ar;for(let gt=le;gt>=0&&gt<Z;gt+=Re){const hn=m[gt].sector;hn.startAngle=r.startAngle,hn.angle=r.angle}}};class B_ extends tp{pointType(){return a2}clusterType(){return W0}stackType(){return a0}categorySlot(r,c){return r.getSlot(c)}pointSlot(r,c){const m=r.clone(),Z=r.center.y;return m.radius=Z-c.y1,m.innerRadius=Z-c.y2,m}reflowPoint(r,c){r.sector=c,r.reflow()}createAnimation(){this.options.animation.center=this.box.toRect().center(),super.createAnimation()}}B_.prototype.reflow=Xd.prototype.reflow,ms(B_,{clip:!1,limitPoints:!1,animation:{type:"pie"}});const eb=B_;class Fv extends sc{createPolarAxis(){const r=new cl(this.options.categoryAxis,this.chartService);this.polarAxis=r,this.categoryAxis=r,this.appendAxis(r),this.aggregateCategories(),this.createTrendlineSeries(),this.createCategoryAxesLabels()}valueAxisOptions(r){return this._hasBarCharts&&sn(r,{majorGridLines:{type:s},minorGridLines:{type:s}}),this._isStacked100&&sn(r,{roundToMajorUnit:!1,labels:{format:"P0"}}),sn(r,this.options.valueAxis)}aggregateCategories(){Cf.prototype.aggregateCategories.call(this,this.panes)}createCategoryAxesLabels(){Cf.prototype.createCategoryAxesLabels.call(this,this.panes)}filterSeries(r){return r}trendlineFactory(r,c){const m=Cf.prototype.trendlineFactory.call(this,r,c);return m&&(m.type=dt),m}createCharts(){const r=this.filterVisibleSeries(this.series),c=this.panes[0];this.createAreaChart(nr(r,[v]),c),this.createLineChart(nr(r,[dt]),c),this.createBarChart(nr(r,[ue]),c)}chartOptions(r){const c={series:r},m=r[0];if(m){const Z=this.filterVisibleSeries(r),le=m.stack;c.isStacked=le&&Z.length>1,c.isStacked100=le&&"100%"===le.type&&Z.length>1,c.isStacked100&&(this._isStacked100=!0)}return c}createAreaChart(r,c){if(0===r.length)return;const m=new s0(this,this.chartOptions(r));this.appendChart(m,c)}createLineChart(r,c){if(0===r.length)return;const m=new V0(this,this.chartOptions(r));this.appendChart(m,c)}createBarChart(r,c){if(0===r.length)return;const m=r[0],Z=this.chartOptions(r);Z.gap=m.gap,Z.spacing=m.spacing;const le=new eb(this,Z);this.appendChart(le,c),this._hasBarCharts=!0}seriesCategoryAxis(){return this.categoryAxis}_dispatchEvent(r,c,m){const Z=r._eventCoordinates(c),le=new Ts(Z.x,Z.y),Re=this.categoryAxis.getCategory(le),gt=this.valueAxis.getValue(le);null!==Re&&null!==gt&&r.trigger(m,{element:Nr(c),category:Re,value:gt})}createCrosshairs(){}}sn(Fv.prototype,Hf,{appendChart:Cf.prototype.appendChart,aggregateSeries:Cf.prototype.aggregateSeries,seriesSourcePoints:Cf.prototype.seriesSourcePoints,seriesValues:Cf.prototype.seriesValues}),ms(Fv,{categoryAxis:{categories:[]},valueAxis:{}});const l0=Fv;class Sg extends ga{constructor(r,c,m){super(c),this.value=r,this.options.index=m.index}reflow(r){const c=this.points,m=this.children[0];this.box=new Ar(c[0].x,c[0].y,c[1].x,c[2].y),m&&m.reflow(new Ar(r.x1,c[0].y,r.x2,c[2].y))}createVisual(){const r=this.options;let c;super.createVisual(),c=r.visual?r.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:r,sender:this.getSender(),createVisual:()=>this.createPath()}):this.createPath(),c&&this.visual.append(c)}createPath(){const r=this.options,c=r.border;return Js.y.fromPoints(this.points,{fill:{color:r.color,opacity:r.opacity},stroke:{color:c.color,opacity:c.opacity,width:c.width}}).close()}createHighlight(r){return Js.y.fromPoints(this.points,r)}highlightVisual(){return this.visual.children[0]}highlightVisualArgs(){const r=Js.y.fromPoints(this.points).close();return{options:this.options,path:r}}tooltipAnchor(){const r=this.box;return{point:new Ts(r.center().x,r.y1),align:{horizontal:"center",vertical:"top"}}}formatValue(r){return this.owner.formatPointValue(this,r)}}ms(Sg,{color:ne,border:{width:1}}),sn(Sg.prototype,Ed);const c0=Sg;class du extends ga{constructor(r,c){super(c),this.plotArea=r,this.chartService=r.chartService,this.points=[],this.labels=[],this.legendItems=[],this.render()}formatPointValue(r,c){return this.chartService.format.auto(c,r.value)}render(){const{options:r,plotArea:{options:{seriesColors:c=[]}}}=this,m=r.series[0],Z=m.data;if(!Z)return;const{total:le,points:Re}=Rn(m);for(let gt=0;gt<Re.length;gt++){const hn=Re[gt];if(!hn)continue;let di=hn.fields;mt(m.color)||(m.color=di.color||c[gt%c.length]),di=sn({index:gt,owner:this,series:m,dataItem:Z[gt],percentage:hn.value/le},di,{visible:hn.visible});const no=hn.valueFields.value,Mo=this.createSegment(no,di),ir=this.createLabel(no,di);Mo&&ir&&Mo.append(ir)}}evalSegmentOptions(r,c,m){const Z=m.series;Gi(r,{value:c,series:Z,dataItem:m.dataItem,index:m.index},{defaults:Z._defaults,excluded:["data","content","template","toggle","visual"]})}createSegment(r,c){const m=sn({},c.series);if(this.evalSegmentOptions(m,r,c),this.createLegendItem(r,m,c),!1!==c.visible){const Z=new c0(r,m,c);return Object.assign(Z,c),this.append(Z),this.points.push(Z),Z}}createLabel(r,c){const{series:m,dataItem:Z}=c,le=sn({},this.options.labels,m.labels);let Re=r;if(le.visible){const gt=Xt(le),hn={dataItem:Z,value:r,percentage:c.percentage,category:c.category,series:m};gt?Re=gt(hn):le.format&&(Re=this.chartService.format.auto(le.format,Re)),le.color||(le.color=Yr(m.color),le.background||(le.background=m.color)),this.evalSegmentOptions(le,r,c);const di=new ft(Re,sn({vAlign:le.position},le),hn);return this.labels.push(di),di}}labelPadding(){const r=this.labels,c={left:0,right:0};for(let m=0;m<r.length;m++){const le=r[m].options.align;if(le!==R){const Re=r[m].box.width();le===O?c.left=Math.max(c.left,Re):c.right=Math.max(c.right,Re)}}return c}dynamicSlopeReflow(r,c,m){const{options:Z,points:le}=this,Re=le.length,gt=le[0];let hn=gt;for(let ir=0;ir<le.length;ir++)le[ir].percentage>hn.percentage&&(hn=le[ir]);let di=gt.percentage/hn.percentage*c,no=(c-di)/2,Mo=0;for(let ir=0;ir<Re;ir++){const Wr=le[ir].percentage,Qr=le[ir+1],Bs=Qr?Qr.percentage:Wr,oa=le[ir].points=[],Ba=Z.dynamicHeight?m*Wr:m/Re;let tl;tl=Wr?(c-di*(Bs/Wr))/2:Bs?0:c/2,tl=Fo(tl,0,c),oa.push(new ls.Z(r.x1+no,r.y1+Mo)),oa.push(new ls.Z(r.x1+c-no,r.y1+Mo)),oa.push(new ls.Z(r.x1+c-tl,r.y1+Ba+Mo)),oa.push(new ls.Z(r.x1+tl,r.y1+Ba+Mo)),no=tl,Mo+=Ba+Z.segmentSpacing,di=Fo(c-2*tl,0,c)}}constantSlopeReflow(r,c,m){const{options:Z,points:le}=this,Re=le.length,gt=Z.neckRatio<=1;let di=gt?0:(c-c/Z.neckRatio)/2;const Mo=((gt?c:c-2*di)-(gt?Z.neckRatio*c:c))/2;let ir=0;for(let Wr=0;Wr<Re;Wr++){const Qr=le[Wr].points=[],Bs=le[Wr].percentage,oa=Z.dynamicHeight?Mo*Bs:Mo/Re,Ba=Z.dynamicHeight?m*Bs:m/Re;Qr.push(new ls.Z(r.x1+di,r.y1+ir)),Qr.push(new ls.Z(r.x1+c-di,r.y1+ir)),Qr.push(new ls.Z(r.x1+c-di-oa,r.y1+Ba+ir)),Qr.push(new ls.Z(r.x1+di+oa,r.y1+Ba+ir)),di+=oa,ir+=Ba+Z.segmentSpacing}}reflow(r){const c=this.points,m=c.length;if(!m)return;const Z=this.options,le=r.clone().unpad(this.labelPadding()),Re=le.height()-Z.segmentSpacing*(m-1),gt=le.width();Z.dynamicSlope?this.dynamicSlopeReflow(le,gt,Re):this.constantSlopeReflow(le,gt,Re);for(let hn=0;hn<m;hn++)c[hn].reflow(r)}}ms(du,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:R,position:R,zIndex:1}}),sn(du.prototype,Ir);const pm=du,Zp=class rg extends pm{constructor(r,c){c.dynamicSlope=!1,c.neckRatio=1e6,super(r,c)}};class K_ extends ga{constructor(r,c){super(),this.options=c,this.color=c.color||ne,this.value=r}render(){this._rendered||(this._rendered=!0,this.createMarker(),this.createLabel(),this.createNote())}createLabel(){const c=this.options.labels;if(c.visible){const m=this.pointData();let le,Z=Xt(c),Re=c.color;le=Z?Z(m):this.formatValue(c.format),Re||(Re=Yr(this.color)),this.label=new ft(le,sn({align:R,vAlign:R,margin:{left:5,right:5},zIndex:wr(c.zIndex,this.series.zIndex)},c,{color:Re}),m),this.append(this.label)}}formatValue(r){return this.owner.formatPointValue(this,r)}reflow(r){this.render();const c=this.label;this.box=r,c&&c.reflow(this.markerBox()),this.note&&this.note.reflow(r),this.marker.reflow(this.markerBox())}markerBox(){const c=this.options.markers,m=c.border,Z=this.box.toRect(),Re=wr(c.type,"rect")===te;let gt=wr(m.width,Re?1:0);const hn=Math.round(gt/2);if(c.size){const di=Z.center();Z.size.width=Z.size.height=c.size,Z.origin.x=Math.round(di.x-Z.size.width/2),Z.origin.y=Math.round(di.y-Z.size.height/2)}return Z.size.width-=gt,Z.size.height-=gt,Z.origin.y+=hn+.5,Z.origin.x+=hn+.5,en(Z)}markerBorder(){const r=this.options,m=r.markers.border,Z=wr(m.opacity,r.opacity);return{color:m.color||this.color,width:m.width,opacity:Z,dashType:m.dashType}}createMarker(){const r=this.options,c=r.markers,m=new ra({type:wr(c.type,"rect"),width:c.size,height:c.size,rotation:c.rotation,background:this.color,border:this.markerBorder(),borderRadius:c.borderRadius,opacity:this.series.opacity||r.opacity,zIndex:wr(r.zIndex,this.series.zIndex),animation:r.animation,visual:r.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category});this.marker=m,this.append(m)}createHighlight(r){const c=this.options,m=this.options.highlight.markers||this.options.markers,Z=new ra({type:wr(m.type,"rect"),width:m.size,height:m.size,rotation:m.rotation,background:m.color||this.color,border:this.markerBorder(),borderRadius:m.borderRadius,opacity:this.series.opacity||c.opacity,zIndex:wr(c.zIndex,this.series.zIndex)});Z.reflow(this.markerBox());const le=Z.getElement();return le.options.fill=r.fill,le.options.stroke=r.stroke,le}highlightVisual(){return this.rectVisual}highlightVisualArgs(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}}tooltipAnchor(){const r=this.box.center().x;return{point:new Ts(r,this.box.y1-5),align:{horizontal:R,vertical:C}}}overlapsBox(r){return this.box.overlaps(r)}unclipElements(){}pointData(){return{x:this.value.x,y:this.value.y,value:this.value.value,dataItem:this.dataItem,series:this.series}}}sn(K_.prototype,Ed),sn(K_.prototype,Dh),K_.prototype.defaults={markers:{type:"rect",borderRadius:4,border:{color:"transparent"}},padding:{top:1},labels:{visible:!1,padding:3},opacity:1,notes:{label:{}}};const z_=K_;class yv extends ga{constructor(r,c){super(c),this.plotArea=r,this.chartService=r.chartService,this._initFields(),this.render()}_initFields(){this.points=[],this.seriesOptions=[],this.valueRange={min:U,max:V},this._evalSeries=[]}render(){this.setRange(),this.traverseDataPoints(this.addValue.bind(this))}setRange(){const{options:{series:r}}=this;for(let c=0;c<r.length;c++){const m=r[c];for(let Z=0;Z<m.data.length;Z++){const{valueFields:le}=this.plotArea.bindPoint(m,Z);Bi(le.value)&&null!==le.value&&(this.valueRange.min=Math.min(this.valueRange.min,le.value),this.valueRange.max=Math.max(this.valueRange.max,le.value))}}}addValue(r,c){let m;r&&Bi(r.value)&&null!==r.value&&(m=this.createPoint(r,c),m&&Object.assign(m,c)),this.points.push(m)}evalPointOptions(r,c,m){const{series:Z,seriesIx:le}=m,Re={defaults:Z._defaults,excluded:["data","tooltip","content","template","visual","toggle","drilldownSeriesFactory"]};let gt=this._evalSeries[le];Bi(gt)||(this._evalSeries[le]=gt=Gi(r,{},Re,!0));let hn=r;return gt&&(hn=sn({},r),Gi(hn,{value:c,series:Z,dataItem:m.dataItem,min:this.valueRange.min,max:this.valueRange.max},Re)),hn}pointType(){return z_}pointOptions(r,c){let m=this.seriesOptions[c];if(!m){const Z=this.pointType().prototype.defaults;this.seriesOptions[c]=m=sn({},Z,{markers:{opacity:r.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},r)}return m}createPoint(r,c){const m=c.series;let Z=this.pointOptions(m,c.seriesIx),le=c.color||m.color;Z=this.evalPointOptions(Z,r,c),mt(m.color)?le=Z.color:0!==this.valueRange.max&&(le=((ve,r=.05)=>{const c=(0,pc.ZP)(ve),m=1-r;return Z=>{const le=c.toHSL(),Re=100-le.l;return le.l+=Math.min((m-Z)*Re,Re),le.toCss()}})(le)(r.value/this.valueRange.max));const Re=new z_(r,Z);return Re.color=le,this.append(Re),Re}seriesAxes(r){const{xAxis:c,yAxis:m}=r,Z=this.plotArea,le=c?Z.namedXAxes[c]:Z.axisX,Re=m?Z.namedYAxes[m]:Z.axisY;if(!le)throw new Error("Unable to locate X axis with name "+c);if(!Re)throw new Error("Unable to locate Y axis with name "+m);return{xAxis:le,yAxis:Re}}reflow(r){const c=this.points,m=!this.options.clip;let Z=0;this.traverseDataPoints((le,Re)=>{const gt=c[Z++],{xAxis:hn,yAxis:di}=this.seriesAxes(Re.series),no=hn.categoryIndex(le.x),Mo=di.categoryIndex(le.y),ir=hn.getSlot(no,no,m),Wr=di.getSlot(Mo,Mo,m);if(gt)if(ir&&Wr){const Qr=this.pointSlot(ir,Wr);gt.reflow(Qr)}else gt.visible=!1}),this.box=r}pointSlot(r,c){return new Ar(r.x1,c.y1,r.x2,c.y2)}traverseDataPoints(r){const{options:{series:c}}=this;for(let m=0;m<c.length;m++){const Z=c[m],{xAxis:le,yAxis:Re}=this.seriesAxes(Z),gt=le.currentRangeIndices(),hn=Re.currentRangeIndices();for(let di=0;di<Z.data.length;di++){const{valueFields:no,fields:Mo}=this.plotArea.bindPoint(Z,di),ir=le.totalIndex(no.x),Wr=Re.totalIndex(no.y);gt.min<=ir&&ir<=gt.max&&hn.min<=Wr&&Wr<=hn.max&&r(no,sn({pointIx:di,series:Z,seriesIx:m,dataItem:Z.data[di],owner:this},Mo))}}}formatPointValue(r,c){const m=r.value;return this.chartService.format.auto(c,m.x,m.y,m.value)}animationPoints(){const r=this.points,c=[];for(let m=0;m<r.length;m++)c.push((r[m]||{}).marker);return c}}ms(yv,{series:[],tooltip:{format:"{0}, {1}: {2}"},labels:{format:"{2}"},clip:!0});const bv=yv;class Op extends nf{initFields(){this.namedXAxes={},this.namedYAxes={}}render(r=this.panes){this.bindCategories(),this.createAxes(r),this.createCharts(r),this.createAxisLabels()}bindCategories(){const r=this.srcSeries||this.series;for(let c=0;c<r.length;c++){const m=r[c],Z=m.data||[],{xAxis:le,yAxis:Re}=this.seriesAxes(m),gt=Zn(le.categories||[]),hn=Zn(Re.categories||[]);for(let di=0;di<Z.length;di++){const{x:no,y:Mo}=Jl.current.bindPoint(m,di).valueFields;gt.has(no)||gt.add(no),hn.has(Mo)||hn.add(Mo)}le.categories=gt.values(),Re.categories=hn.values()}}createCharts(r){const c=this.groupSeriesByPane();for(let m=0;m<r.length;m++){const Z=r[m],le=c[Z.options.name||"default"]||[];this.addToLegend(le);const Re=this.filterVisibleSeries(le);Re&&this.createHeatmapChart(nr(Re,[_o]),Z)}}createHeatmapChart(r,c){const m=new bv(this,{series:r});this.appendChart(m,c)}seriesPaneName(r){const c=this.options,m=r.xAxis,le=Ki([].concat(c.xAxis),function(ir){return ir.name===m})[0],Re=r.yAxis,hn=Ki([].concat(c.yAxis),function(ir){return ir.name===Re})[0];return(le||{}).pane||(hn||{}).pane||(c.panes||[{}])[0].name||"default"}seriesAxes(r){let c,m;const Z=this.options,le=[].concat(Z.xAxis),Re=r.xAxis;c=Re?le.find(di=>di.name===Re):le[0];const gt=[].concat(Z.yAxis),hn=r.yAxis;if(m=hn?gt.find(di=>di.name===hn):gt[0],!c)throw new Error("Unable to locate X axis with name "+Re);if(!m)throw new Error("Unable to locate Y axis with name "+hn);return{xAxis:c,yAxis:m}}createAxisLabels(){const r=this.axes;for(let c=0;c<r.length;c++)r[c].createLabels()}createXYAxis(r,c,m){const Z=r.name,le=c?this.namedYAxes:this.namedXAxes,Re=Object.assign({axisCrossingValue:0},r,{vertical:c,reverse:c||this.chartService.rtl?!r.reverse:r.reverse,justified:!1}),hn=[Re.min,Re.max,Re.categories?Re.categories[0]:null],di=this.series;for(let Wr=0;Wr<di.length;Wr++){const Qr=di[Wr],Bs=Qr[c?"yAxis":"xAxis"];if(Bs===Re.name||0===m&&!Bs){const oa=Jl.current.bindPoint(Qr,0).valueFields;hn.push(oa[c?"y":"x"]);break}}let no,Mo;for(let Wr=0;Wr<hn.length;Wr++)if(hn[Wr]instanceof Date){no=!0;break}Mo=je(Re.type,w)||!Re.type&&no?il:Ps;const ir=new Mo(Re,this.chartService);if(ir.axisIndex=m,Z){if(le[Z])throw new Error(`${c?"Y":"X"} axis with name ${Z} is already defined`);le[Z]=ir}return this.appendAxis(ir),ir.mapCategories(),ir}createAxes(r){const c=this.options,m=[].concat(c.xAxis),Z=[],le=[].concat(c.yAxis),Re=[];for(let gt=0;gt<m.length;gt++)It(this.findPane(m[gt].pane),r)&&Z.push(this.createXYAxis(m[gt],!1,gt));for(let gt=0;gt<le.length;gt++)It(this.findPane(le[gt].pane),r)&&Re.push(this.createXYAxis(le[gt],!0,gt));this.axisX=this.axisX||Z[0],this.axisY=this.axisY||Re[0]}removeAxis(r){const c=r.options.name;super.removeAxis(r),r.options.vertical?delete this.namedYAxes[c]:delete this.namedXAxes[c],r===this.axisX&&delete this.axisX,r===this.axisY&&delete this.axisY}_dispatchEvent(r,c,m){const Z=r._eventCoordinates(c),le=new Ts(Z.x,Z.y),Re=this.axes,gt=Re.length,hn=[],di=[];for(let no=0;no<gt;no++){const Mo=Re[no];_p(Mo.options.vertical?di:hn,Mo.getCategory(le))}hn.length>0&&di.length>0&&r.trigger(m,{element:Nr(c),originalEvent:c,x:fl(hn),y:fl(di)})}updateAxisOptions(r,c){const m=r.options.vertical,Z=this.groupAxes(this.panes),le=(m?Z.y:Z.x).indexOf(r);d0(this.options,le,m,c),d0(this.originalOptions,le,m,c)}crosshairOptions(r){return Object.assign({},r.options.crosshair,{zIndex:0})}}function d0(ve,r,c,m){sn([].concat(c?ve.yAxis:ve.xAxis)[r],m)}ms(Op,{xAxis:{},yAxis:{}}),sn(Op.prototype,Hf);const j0=Op,jm="color",Ym="first",Kp="max",U_="noteText";hm.current.register(Cf,[Ns,bt,ds,vl,vs,xa,ye,us,fa,Aa,Is,ha,Br,er,yl,gr,In,ml,...Wc]),hm.current.register(f_,[es,Ks,qs,...Wc]),hm.current.register(Er,[zs]),hm.current.register(class Ma extends Er{render(){this.createDonutChart(this.series)}createDonutChart(r){const c=r[0],m=new ma(this,{series:r,padding:c.padding,connectors:c.connectors,legend:this.options.legend});this.appendChart(m)}},[be]),hm.current.register(class wg extends nf{render(){this.createChart(pm,nr(this.series,[st])),this.createChart(Zp,nr(this.series,[ei]))}createChart(r,c){const m=c[0];if(!m)return;const Z=new r(this,{series:c,legend:this.options.legend,neckRatio:m.neckRatio,dynamicHeight:m.dynamicHeight,dynamicSlope:m.dynamicSlope,segmentSpacing:m.segmentSpacing,highlight:m.highlight});this.appendChart(Z)}appendChart(r,c){super.appendChart(r,c),Zi(this.options.legend.items,r.legendItems)}},[st,ei]),hm.current.register(r0,[Ta,Pe,Tn,...Wc]),hm.current.register(l0,[v,ue,dt,...Wc]),hm.current.register(j0,[_o]),Jl.current.register([Ns,bt,ds,vl,vs,xa],[se],[Nc,jm,U_,$d,dc,Gh]),Jl.current.register([Br,er,In,ml],["from","to"],[Nc,jm,U_,Gh]),Jl.current.register([yl,gr],[se],[Nc,jm,U_,"summary",Gh]),Jl.current.register([Ta,Pe,Tn],[ge,Ce],[jm,Gh]),Jl.current.register([v,ue,dt],[se],[jm,Gh]),Jl.current.register([st,ei],[se],[Nc,jm,"visibleInLegend","visible",Gh]),np.current.register([Ns,bt,ds,vl,vs,xa,yl,gr],{value:Kp,color:Ym,noteText:Ym,errorLow:"min",errorHigh:Kp}),np.current.register([Br,er,In,ml],{from:"min",to:Kp,color:Ym,noteText:Ym}),np.current.register([v,ue,dt],{value:Kp,color:Ym}),Jl.current.register([es,Ks,qs],[ge,Ce],[jm,U_,"xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Jl.current.register([qs],[ge,Ce,"size"],[jm,Nc,U_]),Jl.current.register([_o],[ge,Ce,se],[jm,U_]),Jl.current.register([ye,us],["open","high","low","close"],[Nc,jm,"downColor",U_]),np.current.register([ye,us],{open:Kp,high:Kp,low:"min",close:Kp,color:Ym,downColor:Ym,noteText:Ym}),Jl.current.register([Is,ha],["lower","q1","median","q3","upper","mean","outliers"],[Nc,jm,U_,Gh]),np.current.register([Is,ha],{lower:Kp,q1:Kp,median:Kp,q3:Kp,upper:Kp,mean:Kp,outliers:Ym,color:Ym,noteText:Ym}),Jl.current.register([fa,Aa],["current","target"],[Nc,jm,"visibleInLegend",U_,Gh]),np.current.register([fa,Aa],{current:Kp,target:Kp,color:Ym,noteText:Ym}),Jl.current.register([zs,be],[se],[Nc,jm,"explode","visibleInLegend","visible",Gh]);const Cv=[Nc,se,ge,Ce],I_="mousemove",B1="contextmenu",Z0="mouseleave";class fy extends jo.Z{constructor(r,c,m,Z={}){super(),this.observers=[],this.addObserver(Z.observer),this.chartService=new Fi(this,Z),this.chartService.theme=m,this._initElement(r);const le=sn({},this.options,c);this._originalOptions=sn({},le),this._theme=m,this._initTheme(le,m),this._initHandlers(),this._initSurface(),this.bindCategories(),ba.preloadFonts(c,()=>{this.fontLoaded=!0,this._destroyed||(this.trigger("init"),this._redraw(),this._attachEvents())})}_initElement(r){for(this._setElementClass(r),r.style.position="relative";r.firstChild;)r.removeChild(r.firstChild);this.element=r}_setElementClass(r){fe(r,"k-chart")}_initTheme(r,c){const m=[],Z=r.series||[];for(let le=0;le<Z.length;le++)m.push(Object.assign({},Z[le]));r.series=m,function U1(ve){const r=Cv;for(let c=0;c<r.length;c++){const m=r[c]+"Axes";ve[m]&&(ve[r[c]+"Axis"]=ve[m],delete ve[m])}}(r),this.applyDefaults(r,c),null===r.seriesColors&&delete r.seriesColors,$n(r.title)&&(r.title={text:r.title}),this.options=sn({},c,r),this.applySeriesColors()}getSize(){const r=this.options.chartArea||{};return{width:r.width?parseInt(r.width,10):Math.floor(this.element.offsetWidth),height:r.height?parseInt(r.height,10):Math.floor(this.element.offsetHeight)}}resize(r){const c=this.getSize(),m=this._size,Z=c.width>0||c.height>0;r||Z&&(!m||c.width!==m.width||c.height!==m.height)?(this._size=c,this._resize(c,r),this.trigger("resize",c)):Z&&this._selections&&Rr(this._selections,le=>!le.visible)&&(this._destroySelections(),this._setupSelection())}_resize(){this._noTransitionsRedraw()}redraw(r){if(this.applyDefaults(this.options),this.applySeriesColors(),r){const c=this._model._plotArea,m=c.findPane(r);c.redraw(m)}else this._redraw()}getAxis(r){return Cd(r,this._plotArea.axes)}findAxisByName(r){return this.getAxis(r)}findPaneByName(r){const c=this._plotArea.panes;for(let m=0;m<c.length;m++)if(c[m].options.name===r)return new bu(c[m])}findPaneByIndex(r){const c=this._plotArea.panes;if(c[r])return new bu(c[r])}plotArea(){return new Zu(this._plotArea)}toggleHighlight(r,c){const m=this._plotArea,Z=(m.srcSeries||m.series||[])[0];let le;if(mt(c))le=m.filterPoints(c);else{let Re,gt;fn(c)?(Re=c.series,gt=c.category):Re=gt=c,le=Z.type===be?G1(m.pointsBySeriesName(Re),gt):It(Z.type,[zs,st,ei])?G1((m.charts[0]||{}).points,gt):m.pointsBySeriesName(Re)}le&&this.togglePointsHighlight(r,le)}togglePointsHighlight(r,c){const m=this._highlight;for(let Z=0;Z<c.length;Z++)m.togglePointHighlight(c[Z],r)}showTooltip(r){const c=this._sharedTooltip(),{_tooltip:m,_plotArea:Z}=this;let le,Re;if(mt(r)?(le=Z.findPoint(r),le&&c&&(Re=le.categoryIx)):c&&Bi(r)&&(Re=Z.categoryAxis.categoryIndex(r)),c){if(Re>=0){const gt=this._plotArea.pointsByCategoryIndex(Re);m.showAt(gt)}}else le&&m.show(le)}hideTooltip(){this._tooltip.hide()}_initSurface(){const r=this.surface,c=this._surfaceWrap(),m=this.options.chartArea||{};m.width&&or(c,{width:m.width}),m.height&&or(c,{height:m.height}),r&&r.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=zo.create(c,{type:this.options.renderAs}),this.surface.bind("mouseenter",this._surfaceMouseenterHandler),this.surface.bind("mouseleave",this._surfaceMouseleaveHandler))}_surfaceWrap(){return this.element}_redraw(){const r=this._getModel();this._size={width:r.options.width,height:r.options.height},this._destroyView(),this._model=r,this._plotArea=r._plotArea,r.renderVisual(),!1!==this.options.transitions&&r.traverse(function(c){c.animation&&c.animation.setup()}),this._initSurface(),this.surface.draw(r.visual),!1!==this.options.transitions&&r.traverse(function(c){c.animation&&c.animation.play()}),this._tooltip=this._createTooltip(),this._highlight=new Lr,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),Sv(this._plotArea.panes),this._navState||this._cancelDomEvents()}exportVisual(r){let c;if(r&&(r.width||r.height||r.options)){const m=this.options,Z=sn({},r.options,{chartArea:{width:r.width,height:r.height}});G_(this._originalOptions,Z),this.options=sn({},this._originalOptions,Z),this._initTheme(this.options,this._theme),this.bindCategories();const le=this._getModel();le.renderVisual(),Sv(le._plotArea.panes),c=le.visual,this.options=m}else c=this.surface.exportVisual();return c}_sharedTooltip(){return this._plotArea instanceof Cf&&this.options.tooltip&&this.options.tooltip.shared}_createPannable(){const r=this.options;!1!==r.pannable&&(this._pannable=new ua(this._plotArea,r.pannable))}_createZoomSelection(){const r=this.options.zoomable,c=(r||{}).selection;!1!==r&&!1!==c&&(this._zoomSelection=new jl(this,c))}_createMousewheelZoom(){const r=this.options.zoomable,c=(r||{}).mousewheel;!1!==r&&!1!==c&&(this._mousewheelZoom=new qu(this,c))}_toggleDragZoomEvents(){const c=this.options.zoomable,Z=(c||{}).mousewheel,le=!(this.options.pannable||!1!==c&&!1!==(c||{}).selection||this.requiresHandlers([Ch,Vd,Fu])),Re=(!1===c||!1===Z)&&!this.requiresHandlers([mh,Sd,vd]),gt=this.element;this._dragZoomEnabled&&le&&Re?(gt.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):!this._dragZoomEnabled&&!(le&&Re)&&(gt.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!le,!Re)}_toggleDomEvents(r,c){const m=this.domEvents;m&&(m.toggleDrag&&m.toggleDrag(r),m.toggleZoom&&m.toggleZoom(c))}_createTooltip(){const{options:{tooltip:r}}=this;let c;return c=this._sharedTooltip()?this._createSharedTooltip(r):new a_(this.chartService,r),c}_createSharedTooltip(r){return new yg(this._plotArea,r)}applyDefaults(r,c){(function K0(ve,r){const c=(r||{}).axisDefaults||{};let m,Z,le;function Re(gt){const hn=(gt||{}).color||Z.color,di=sn({},c,c[m],Z,Z[m],{line:{color:hn},labels:{color:hn},title:{color:hn}},gt);return delete di[m],di}for(let gt=0;gt<Cv.length;gt++)m=Cv[gt]+"Axis",Z=ve.axisDefaults||{},le=[].concat(ve[m]),le=le.map(Re),ve[m]=le.length>1?le:le[0]})(r,c),function J0(ve,r){const c=ve.series,m=c.length,Z=ve.seriesDefaults,le=sn({},ve.seriesDefaults),Re=r?sn({},r.seriesDefaults):{},gt=sn({},Re);$0(le),$0(gt);for(let hn=0;hn<m;hn++){const di=c[hn].type||ve.seriesDefaults.type,no=sn({data:[]},gt,Re[di],{tooltip:ve.tooltip},le,Z[di]);c[hn]._defaults=no,c[hn]=sn({},no,c[hn]),c[hn].data=c[hn].data||[]}}(r,c)}applySeriesColors(){const r=this.options,c=r.series,m=r.seriesColors||[];for(let Z=0;Z<c.length;Z++){const le=c[Z],Re=m[Z%m.length],gt=le._defaults;le.color=le.color||Re,gt&&(gt.color=gt.color||Re)}}_getModel(){const r=this.options,c=this._createPlotArea(),m=new Ui(this._modelOptions());m.chart=this,m._plotArea=c;const Z=$e.buildTitle(r.title),le=$e.buildTitle(r.subtitle,{align:r.title.align,position:r.title.position});return m.append.apply(m,$e.orderTitles([Z,le])),r.legend&&r.legend.visible&&m.append(new E_(c.options.legend,this.chartService)),m.append(c),m.reflow(),m}_modelOptions(){const r=this.options,c=this.getSize();return sn({transitions:r.transitions,width:c.width||600,height:c.height||400},r.chartArea)}_createPlotArea(r){const c=this.options;return hm.current.create(r?[]:c.series,c,this.chartService)}_setupSelection(){const{_plotArea:{axes:r}}=this,c=this._selections=[];for(let m=0;m<r.length;m++){const Z=r[m],le=Z.options;if(Z instanceof Ps&&le.select&&!le.vertical){const Re=Z.range(),gt=new pp(this,Z,sn({min:Re.min,max:Re.max},le.select));c.push(gt)}}}_selectStart(r){return this.trigger(hd,r)}_select(r){return this.trigger(ff,r)}_selectEnd(r){return this.trigger(Iu,r)}_initHandlers(){this._clickHandler=this._click.bind(this),this._mousewheelHandler=this._mousewheel.bind(this),this._mouseleaveHandler=this._mouseleave.bind(this),this._surfaceMouseenterHandler=this._mouseover.bind(this),this._surfaceMouseleaveHandler=this._mouseout.bind(this),this._mousemove=Hr(this._mousemove.bind(this),20)}addObserver(r){r&&this.observers.push(r)}removeObserver(r){const c=this.observers.indexOf(r);c>=0&&this.observers.splice(c,1)}requiresHandlers(r){const c=this.observers;for(let m=0;m<c.length;m++)if(c[m].requiresHandlers(r))return!0}trigger(r,c={}){c.sender=this,r===xh?c.anchor.point=this._toDocumentCoordinates(c.anchor.point):r===Mc?this._updateDrilldownPoint(c.point):r===uf?this._resetDrilldownPoint():r===Lc&&this._startDrilldown(c.point);const m=this.observers;let Z=!1;for(let le=0;le<m.length;le++)m[le].trigger(r,c)&&(Z=!0);return Z}_attachEvents(){const r=this.element;this._touchAction=r.style.touchAction,oo(r,{[B1]:this._clickHandler,[yd]:this._mousewheelHandler,[Z0]:this._mouseleaveHandler}),this._shouldAttachMouseMove()&&oo(r,{[I_]:this._mousemove}),this.domEvents=Wn.create(this.element,{start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)}),this._toggleDragZoomEvents()}_mouseleave(r){this._hoveredPoint&&(this._hoveredPoint.out(this,r),this._hoveredPoint=null),this._plotAreaHovered&&(this._plotAreaHovered=!1,this.trigger(hf)),this._hasInactiveOpacity()&&this._activeChartInstance&&(this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._updateSeriesOpacity(null,!0))}_cancelDomEvents(){this.domEvents&&this.domEvents.cancel&&this.domEvents.cancel()}_gesturestart(r){this._mousewheelZoom&&!this._stopChartHandlers(r)&&(this._gestureDistance=r.distance,this._unsetActivePoint(),this.surface.suspendTracking())}_gestureend(r){this._zooming&&!this._stopChartHandlers(r)&&(this.surface&&this.surface.resumeTracking(),this._zooming=!1,this.trigger(vd,{}))}_gesturechange(r){const c=this._mousewheelZoom;if(c&&!this._stopChartHandlers(r)){r.preventDefault();let Z=-r.distance/this._gestureDistance+1;if(Math.abs(Z)>=.1){Z=Math.round(10*Z),this._gestureDistance=r.distance;const le={delta:Z,axisRanges:iv(this._plotArea.axes),originalEvent:r};if(this._zooming||!this.trigger(mh,le)){const Re=this._eventCoordinates(r);this._zooming||(this._zooming=!0),(le.axisRanges=c.updateRanges(Z,Re))&&!this.trigger(Sd,le)&&c.zoom()}}}}_mouseout(r){if(r.element){const c=this._drawingChartElement(r.element,r);c&&c.leave&&c.leave(this,r.originalEvent)}}_start(r){const c=this._eventCoordinates(r);this._stopChartHandlers(r)||!this._plotArea.backgroundContainsPoint(c)||(this.requiresHandlers([Ch,Vd,Fu])&&this._startNavigation(r,c,Ch),this._pannable&&this._pannable.start(r)&&(this.surface.suspendTracking(),this._unsetActivePoint(),this._suppressHover=!0,this.chartService.panning=!0),this._zoomSelection&&this._zoomSelection.start(r)&&this.trigger(mh,{axisRanges:iv(this._plotArea.axes),originalEvent:r}))}_move(r){let{_navState:c,_pannable:m}=this;if(!this._stopChartHandlers(r)){if(m){const Z=m.move(r);Z&&!this.trigger(Vd,{axisRanges:Z,originalEvent:r})&&m.pan()}else if(c){const Z={},le=c.axes;for(let Re=0;Re<le.length;Re++){const gt=le[Re];if(gt.options.name){const di=gt.options.vertical?r.y:r.x,no=di.startLocation-di.location;0!==no&&(Z[gt.options.name]=gt.translateRange(no))}}c.axisRanges=Z,this.trigger(Vd,{axisRanges:Z,originalEvent:r})}this._zoomSelection&&this._zoomSelection.move(r)}}_end(r){if(this._stopChartHandlers(r))return;const c=this._pannable;if(c&&c.end(r)?(this.surface.resumeTracking(),this.trigger(Fu,{axisRanges:iv(this._plotArea.axes),originalEvent:r}),this._suppressHover=!1,this.chartService.panning=!1):this._endNavigation(r,Fu),this._zoomSelection){const m=this._zoomSelection.end(r);m&&!this.trigger(Sd,{axisRanges:m,originalEvent:r})&&(this._zoomSelection.zoom(),this.trigger(vd,{axisRanges:m,originalEvent:r}))}}_stopChartHandlers(r){const c=this._selections||[];if(!c.length)return!1;const m=this._eventCoordinates(r),Z=this._plotArea.paneByPoint(m);if(Z)for(let le=0;le<c.length;le++)if(c[le].onPane(Z))return!0}_mousewheelZoomRate(){return wr(((this.options.zoomable||{}).mousewheel||{}).rate,.3)}_mousewheel(r){const c=ln(r),m=this._mousewheelZoom,Z=this._eventCoordinates(r);if(!this._stopChartHandlers(r)&&this._plotArea.backgroundContainsPoint(Z))if(m){const le={delta:c,axisRanges:iv(this._plotArea.axes),originalEvent:r};(this._zooming||!this.trigger(mh,le))&&(r.preventDefault(),this._zooming||(this._unsetActivePoint(),this.surface.suspendTracking(),this._zooming=!0),this._mwTimeout&&clearTimeout(this._mwTimeout),le.axisRanges=m.updateRanges(c,Z),le.axisRanges&&!this.trigger(Sd,le)&&m.zoom(),this._mwTimeout=setTimeout(()=>{this.trigger(vd,le),this._zooming=!1,this.surface&&this.surface.resumeTracking()},150))}else{let le=this._navState;if(le||this._startNavigation(r,Z,mh)||(le=this._navState),le){const Re=le.totalDelta||c;le.totalDelta=Re+c;const gt=this._navState.axes,hn={};for(let di=0;di<gt.length;di++){const no=gt[di],Mo=no.options.name;Mo&&(hn[Mo]=no.scaleRange(-Re*this._mousewheelZoomRate(),Z))}this.trigger(Sd,{delta:c,axisRanges:hn,originalEvent:r}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout(()=>{this._endNavigation(r,vd)},150)}}}_startNavigation(r,c,m){const Z=this._model._plotArea,le=Z.findPointPane(c),Re=Z.axes.slice(0);if(!le)return;const gt=iv(Re);this.trigger(m,{axisRanges:gt,originalEvent:r})?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:gt,pane:le,axes:Re})}_endNavigation(r,c){this._navState&&(this.trigger(c,{axisRanges:this._navState.axisRanges,originalEvent:r}),this._suppressHover=!1,this._navState=null)}_getChartElement(r,c){const m=this.surface.eventTarget(r);if(m)return this._drawingChartElement(m,r,c)}_drawingChartElement(r,c,m){let le,Z=r;for(;Z&&!le;)le=Z.chartElement,Z=Z.parent;if(le)return le.aliasFor&&(le=le.aliasFor(c,this._eventCoordinates(c))),m&&(le=le.closest(m),le&&le.aliasFor&&(le=le.aliasFor())),le}_eventCoordinates(r){const c=xr(r);return this._toModelCoordinates(c.x,c.y)}_elementPadding(){if(!this._padding){const{paddingLeft:r,paddingTop:c}=mi(this.element,["paddingLeft","paddingTop"]);this._padding={top:c,left:r}}return this._padding}_toDocumentCoordinates(r){const c=this._elementPadding(),m=Lo(this.element);return{left:Gn(r.x+c.left+m.left),top:Gn(r.y+c.top+m.top)}}_toModelCoordinates(r,c){const m=this.element,Z=Lo(m),le=this._elementPadding(),Re=function Ii(ve){if(!ve)return Ti.unit();let r=mo(ve),c=ve.parentElement;for(;c;){const m=mo(c);r=r.multiplyCopy(m),c=c.parentElement}return r.b=r.c=r.e=r.f=0,r}(m).invert(),gt=new ls.Z(r-Z.left-le.left,c-Z.top-le.top).transform(Re);return new Ts(gt.x,gt.y)}_tap(r){const c=this.surface.eventTarget(r),m=this._drawingChartElement(c,r),Z=this._sharedTooltip();!this._startHover(c,r)&&!Z&&this._unsetActivePoint(),Z&&this._trackSharedTooltip(this._eventCoordinates(r),r,!0),this._propagateClick(m,r),this.handlingTap=!0,setTimeout(()=>{this.handlingTap=!1},0)}_click(r){const c=this._getChartElement(r);this._propagateClick(c,r)}_propagateClick(r,c){let m=r;for(;m;)m.click&&m.click(this,c),m=m.parent}_startHover(r,c){if(this._suppressHover)return!1;let m=this._drawingChartElement(r,c,function(Z){return(Z.hover||Z.over)&&!(Z instanceof nf)});return this._showInactiveOpacity(m,c),m}_displayTooltip(r){sn({},this.options.tooltip,r.options.tooltip).visible&&this._tooltip.show(r)}_displayInactiveOpacity(r,c,m){const Z=this._activeChartInstance=this._chartInstanceFromPoint(r);if(Z)if(c)this._updateSeriesOpacity(r),this._applySeriesOpacity(Z.children,null,!0),this._applySeriesOpacity(Z.children,r.series),this._highlight.show(m||r);else{let le;if(!Z.supportsPointInactiveOpacity())return void this._highlight.show(r);le=this._getInactivePoints(r,Z),le&&le.length&&this._highlight.show(le,1-this._getInactiveOpacityForSeries(r.series))}}_getInactivePoints(r,c){return this._getAllPointsOfType(c,r.constructor).filter(Z=>Z!==r)}_getAllPointsOfType(r,c){let m=[];for(let Z=0;Z<r.children.length;Z++){const le=r.children[Z];le.constructor===c?m.push(le):le.children&&le.children.length&&(m=m.concat(this._getAllPointsOfType(le,c)))}return m}_updateHoveredPoint(r,c){const m=this._hoveredPoint;m&&m!==r&&(m.out(this,c),this._hoveredPoint=null),r&&m!==r&&r.over&&(this._hoveredPoint=r,r.over(this,c))}_updateDrilldownPoint(r){if(!r||!r.series)return;const{fields:c}=Jl.current.bindPoint(r.series,null,r.dataItem);c.drilldown&&(this._drilldownState={cursor:this.element.style.cursor},this.element.style.cursor="pointer")}_resetDrilldownPoint(){this._drilldownState&&(this.element.style.cursor=this._drilldownState.cursor,this._drilldownState=null)}_startDrilldown(r){if(!r||!r.series)return;const c=r.series,{fields:m}=Jl.current.bindPoint(c,null,r.dataItem),Z=m.drilldown;Z&&this.trigger("drilldown",{series:c,point:r,value:Z,sender:this})}_updateSeriesOpacity(r,c){const m=this._plotArea,Z=m.series.length;for(let le=0;le<Z;le++){const Re=m.series[le],gt=this._getDefaultOpacityForSeries(Re),hn=this._getInactiveOpacityForSeries(Re);c||Re===r.series?(Re.opacity=gt,Re.line&&(Re.line.opacity=gt)):(Re.defaultOpacity=gt,Re.opacity=hn,Re.line&&(Re.line.opacity=hn))}}_applySeriesOpacity(r,c,m,Z){for(let le=0;le<r.length;le++){const Re=r[le],gt=Re.series||Z;gt&&(gt.highlight||{}).visible&&Re.visual&&(gt!==c||m)&&Re.visual.opacity(m?1:Z?Z.opacity:Re.series.opacity),Re.children&&Re.children.length&&this._applySeriesOpacity(Re.children,c,m,Re.series)}}_chartInstanceFromPoint(r){let c=r.parent;for(;c&&!c.plotArea;)c=c.parent;return c}_showInactiveOpacity(r,c){const m=this._activePoint,Z=this._plotArea.series.length>1,le=this._hasInactiveOpacity();return this._updateHoveredPoint(r,c),r&&m!==r&&r.hover&&(this._activePoint=r,!this._sharedTooltip()&&!r.hover(this,c)&&(this._displayTooltip(r),le?this._displayInactiveOpacity(r,Z):this._highlight.show(r))),r}_hideInactiveOpacity(r){const c=this._plotArea.series.length>1;this._hasInactiveOpacity()&&(c&&this._activeChartInstance&&(this._updateSeriesOpacity(r,!0),this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._activeChartInstance=null),this._highlight&&this._highlight.hide(),this._activePoint=null)}_hasInactiveOpacity(){let r=void 0!==this.options.seriesDefaults.highlight.inactiveOpacity,c=this.options.series.filter(m=>void 0!==m.highlight.inactiveOpacity).length>0;return r||c}_getInactiveOpacityForSeries(r){return r.highlight.inactiveOpacity||this.options.seriesDefaults.highlight.inactiveOpacity||r.opacity||1}_getDefaultOpacityForSeries(r){return r.defaultOpacity||r.opacity||1}_mouseover(r){const c=this._startHover(r.element,r.originalEvent);c&&c.tooltipTracking&&!this._mouseMoveTrackHandler&&!this._sharedTooltip()&&(this._mouseMoveTrackHandler=this._mouseMoveTracking.bind(this),oo(document,{[I_]:this._mouseMoveTrackHandler}))}_mouseMoveTracking(r){const{options:c,_tooltip:m,_highlight:Z,_activePoint:le}=this,Re=this._eventCoordinates(r);if(this._plotArea.box.containsPoint(Re)){if(le&&le.tooltipTracking&&le.series&&le.parent.getNearestPoint){const gt=le.parent.getNearestPoint(Re.x,Re.y,le.seriesIx);gt&&gt!==le&&(this._activePoint=gt,gt.hover(this,r)||(sn({},c.tooltip,gt.options.tooltip).visible&&m.show(gt),Z.show(gt)))}}else Io(document,{[I_]:this._mouseMoveTrackHandler}),this._unsetActivePoint(),this._mouseMoveTrackHandler=null,this._hideInactiveOpacity(le)}_mousemove(r){const c=this._eventCoordinates(r),m=this._plotArea;if(this._trackCrosshairs(c),m.hover){const Z=m.backgroundContainsPoint(c);Z?(this._plotAreaHovered=!0,this._plotArea.hover(this,r)):this._plotAreaHovered&&!Z&&(this._plotAreaHovered=!1,this.trigger(hf))}this._sharedTooltip()&&this._trackSharedTooltip(c,r)}_trackCrosshairs(r){const c=this._plotArea.crosshairs;for(let m=0;m<c.length;m++){const Z=c[m];Z.box.containsPoint(r)?Z.showAt(r):Z.hide()}}_trackSharedTooltip(r,c,m){if(this._suppressHover)return;const{options:{tooltip:Z},_plotArea:le,_plotArea:{categoryAxis:Re},_tooltip:gt,_highlight:hn}=this;if(le.backgroundContainsPoint(r)){const di=Re.pointCategoryIndex(r);if(di!==this._tooltipCategoryIx||!this._sharedHighlight&&m){const no=le.pointsByCategoryIndex(di),Mo=no.map(function(Wr){return Wr.eventArgs(c)}),ir=Mo[0]||{};ir.categoryPoints=Mo,no.length>0&&!this.trigger(ul,ir)?(Z.visible&&gt.showAt(no,r),hn.show(no),this._sharedHighlight=!0):gt.hide(),this._tooltipCategoryIx=di}else m&&this._sharedHighlight&&(hn.hide(),gt.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(hn.hide(),gt.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1)}hideElements(r){const c=this._plotArea;this._mousemove.cancel(),c.hideCrosshairs(),this._unsetActivePoint(r)}_unsetActivePoint(r){const{_tooltip:c,_highlight:m}=this;this._activePoint=null,this._hoveredPoint=null,c&&!(r&&r.keepTooltipOpen)&&c.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1,m&&m.hide()}_deferRedraw(){this._redraw()}_clearRedrawTimeout(){this._redrawTimeout&&(clearInterval(this._redrawTimeout),this._redrawTimeout=null)}bindCategories(){const c=[].concat(this.options.categoryAxis);for(let m=0;m<c.length;m++){const Z=c[m];!1!==Z.autoBind&&this.bindCategoryAxisFromSeries(Z,m)}}bindCategoryAxisFromSeries(r,c){const m=this.options.series,Z=m.length,le=new oi;let hn,Re=[],gt=!1;for(let di=0;di<Z;di++){const no=m[di],ir=no.data,Wr=ir.length,Qr=no.categoryField&&(no.categoryAxis===r.name||!no.categoryAxis&&0===c);if(gt=Qr||gt,Qr&&Wr>0){hn=$l(r,Fl(no.categoryField,ir[0]));const Bs=hn?is:Fl;for(let oa=0;oa<Wr;oa++){const Ba=ir[oa],tl=Bs(no.categoryField,Ba,this.chartService.intl);(hn||!le.get(tl))&&(Re.push([tl,Ba]),hn||le.set(tl,!0))}}}if(Re.length>0){hn&&(Re=function u0(ve,r=Wi){const c=function xv(ve,r=Wi){for(let c=1,m=ve.length;c<m;c++)if(r(ve[c],ve[c-1])<0){ve.sort(r);break}return ve}(ve,r),m=c.length,Z=m>0?[c[0]]:[];for(let le=1;le<m;le++)0!==r(c[le],ji(Z))&&Z.push(c[le]);return Z}(Re,function(no,Mo){return Wi(no[0],Mo[0])}));const di=function h0(ve){const r=ve.length,c=[];for(let m=0;m<r;m++){const Z=ve[m],le=Z.length;for(let Re=0;Re<le;Re++)c[Re]=c[Re]||[],c[Re].push(Z[Re])}return c}(Re);r.categories=di[0]}else gt&&(r.categories=[])}_isBindable(r){const c=Jl.current.valueFields(r);let m=!0;for(let Z=0;Z<c.length;Z++){let le=c[Z];if(le===se?le="field":le+="Field",!Bi(r[le])){m=!1;break}}return m}_noTransitionsRedraw(){const r=this.options;let c;!1!==r.transitions&&(r.transitions=!1,c=!0),this._redraw(),c&&(r.transitions=!0)}_legendItemHover(r,c){const{_plotArea:m,_highlight:Z}=this,le=(m.srcSeries||m.series)[r];let Re;Re=It(le.type,[zs,be,st,ei])?m.findPoint(function(gt){return gt.series.index===r&&gt.index===c}):m.pointsBySeriesIndex(r),this._hasInactiveOpacity()&&le.visible&&Re?this._displayInactiveOpacity(Re.length?Re[0]:Re,m.series.length>1,Re):Z.show(Re)}_shouldAttachMouseMove(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers([Ff,hf])}updateMouseMoveHandler(){Io(this.element,{[I_]:this._mousemove}),this._shouldAttachMouseMove()&&oo(this.element,{[I_]:this._mousemove})}applyOptions(r,c){G_(this._originalOptions,r),this._originalOptions=sn(this._originalOptions,r),this.options=sn({},this._originalOptions),c&&(this._theme=c,this.chartService.theme=c),this._initTheme(this.options,this._theme),this._toggleDragZoomEvents()}setOptions(r,c){this.applyOptions(r,c),this.bindCategories(),this.redraw(),this.updateMouseMoveHandler()}setDirection(r){this.chartService.rtl=!!r,this.surface&&"svg"===this.surface.type&&this._destroySurface()}setIntlService(r){this.chartService.intl=r}noTransitionsRedraw(){this._noTransitionsRedraw()}destroy(){this._destroyed=!0,Io(this.element,{[B1]:this._clickHandler,[yd]:this._mousewheelHandler,[I_]:this._mousemove,[Z0]:this._mouseleaveHandler}),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&Io(document,{[I_]:this._mouseMoveTrackHandler}),this._destroyView(),this._destroySurface(),this._clearRedrawTimeout()}_destroySurface(){const r=this.surface;r&&(r.unbind("mouseenter",this._surfaceMouseenterHandler),r.unbind("mouseleave",this._surfaceMouseleaveHandler),r.destroy(),this.surface=null)}_destroySelections(){const r=this._selections;if(r)for(;r.length>0;)r.shift().destroy()}_destroyView(){const r=this._model;r&&(r.destroy(),this._model=null),this._unsetActivePoint(),this._resetDrilldownPoint(),this._destroySelections(),this._tooltip&&this._tooltip.destroy(),this._highlight&&this._highlight.destroy(),this._zoomSelection&&(this._zoomSelection.destroy(),delete this._zoomSelection),this._pannable&&(this._pannable.destroy(),delete this._pannable),this._mousewheelZoom&&(this._mousewheelZoom.destroy(),delete this._mousewheelZoom)}}function G1(ve,r){if(ve)for(let c=0;c<ve.length;c++)if(ve[c].category===r)return[ve[c]]}function $0(ve){delete ve.bar,delete ve.column,delete ve.rangeColumn,delete ve.line,delete ve.verticalLine,delete ve.pie,delete ve.donut,delete ve.area,delete ve.verticalArea,delete ve.scatter,delete ve.scatterLine,delete ve.bubble,delete ve.candlestick,delete ve.ohlc,delete ve.boxPlot,delete ve.bullet,delete ve.verticalBullet,delete ve.polarArea,delete ve.polarLine,delete ve.radarArea,delete ve.radarLine,delete ve.waterfall}function iv(ve){const r={};for(let c=0;c<ve.length;c++){const m=ve[c],Z=m.options.name;Z&&(r[Z]=m.range())}return r}const Q0=["data","categories"];function G_(ve,r){for(let c in r)if(!It(c,Q0)&&r.hasOwnProperty(c)){const m=r[c],Z=ve[c];if(Bi(Z)){const le=null===m;le||!Bi(m)?(delete ve[c],le&&delete r[c]):Z&&fn(m)&&fn(Z)&&G_(Z,m)}}}function Sv(ve){for(let r=0;r<ve.length;r++)ve[r].notifyRender()}ms(fy,{renderAs:"",chartArea:{},legend:{visible:!0,labels:{}},categoryAxis:{},seriesDefaults:{type:bt,data:[],highlight:{visible:!0},labels:{},negativeValues:{visible:!1}},series:[],seriesColors:null,tooltip:{visible:!1},transitions:!0,valueAxis:{},plotArea:{},title:{},xAxis:{},yAxis:{},panes:[{}],pannable:!1,zoomable:!1});const f0=fy,q0=class X0 extends yg{_slotAnchor(r,c){const Z=this.plotArea.categoryAxis.options.vertical,le=Z?{horizontal:"left",vertical:"center"}:{horizontal:"center",vertical:"bottom"};let Re;return Re=Z?new Ts(this.plotArea.box.x2,c.center().y):new Ts(c.center().x,-2),{point:Re,align:le}}_defaultAnchor(r,c){return this._slotAnchor({},c)}},p0=[Ns,fa];function ov(ve){const r=[];for(let c=0;c<ve.length;c++){const m=ve[c];r[c]=m.style.display,m.style.display="none"}return r}function rv(ve,r){for(let c=0;c<ve.length;c++)ve[c].style.display=r[c]}function H1(ve){return An(ve)?[ve]:ve}class e1 extends f0{_setElementClass(r){fe(r,"k-sparkline")}_initElement(r){super._initElement(r),this._initialWidth=Math.floor(or(r).width)}_resize(){const r=this.element,c=ov(r.childNodes);this._initialWidth=Math.floor(or(r).width),rv(r.childNodes,c),super._resize()}_modelOptions(){const r=this.options,c=this._surfaceWrap(),m=ov(c.childNodes),Z=document.createElement("span");Z.innerHTML="&nbsp;",c.appendChild(Z);const le=sn({width:this._autoWidth,height:or(c).height,transitions:r.transitions},r.chartArea,{inline:!0,align:!1});return or(c,{width:le.width,height:le.height}),c.removeChild(Z),rv(c.childNodes,m),this.surface&&this.surface.resize(),le}_surfaceWrap(){if(!this.stage){const r=this.stage=document.createElement("span");this.element.appendChild(r)}return this.stage}_createPlotArea(r){const c=super._createPlotArea(r);return this._autoWidth=this._initialWidth||this._calculateWidth(c),c}_calculateWidth(r){const c=this.options,m=Eo(c.chartArea.margin),Z=r.charts,le=this._surfaceWrap();let Re=0;for(let hn=0;hn<Z.length;hn++){const di=Z[hn],no=(di.options.series||[])[0];if(!no)continue;if(no.type===Ns)return 150;if(no.type===fa)return 150;if(no.type===zs)return or(le).height;const Mo=di.categoryAxis;if(Mo){const ir=Mo.categoriesCount()*(!di.options.isStacked&&It(no.type,[bt,Aa])?di.seriesOptions.length:1);Re=Math.max(Re,ir)}}let gt=Re*c.pointWidth;return gt>0&&(gt+=m.left+m.right),gt}_createSharedTooltip(r){return new q0(this._plotArea,r)}static normalizeOptions(r){let c=H1(r);return c=De(c)?{seriesDefaults:{data:c}}:sn({},c),c.series||(c.series=[{data:H1(c.data)}]),sn(c,{seriesDefaults:{type:c.type}}),(It(c.series[0].type,p0)||It(c.seriesDefaults.type,p0))&&(c=sn({},{categoryAxis:{crosshair:{visible:!1}}},c)),c}}ms(e1,{chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5,panes:[{clip:!1}]});const t1=e1,py=class n1 extends da{setup(){this._initialOpacity=parseFloat(mi(this.element,"opacity").opacity)}step(r){mi(this.element,{opacity:String(xt(this._initialOpacity,0,r))})}abort(){super.abort(),mi(this.element,{display:"none",opacity:String(this._initialOpacity)})}cancel(){super.abort(),mi(this.element,{opacity:String(this._initialOpacity)})}};function m0(ve,r){const c=document.createElement("div");return c.className=ve,r&&(c.style.cssText=r),c}class o1 extends jo.Z{constructor(r,c,m){super(),this.options=sn({},this.options,m),this.container=r,this.chartService=c;const Z=mi(r,["paddingLeft","paddingTop"]);this.chartPadding={top:Z.paddingTop,left:Z.paddingLeft},this.createElements(),r.appendChild(this.element)}createElements(){const r=this.element=m0("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),c=this.tooltip=m0("k-tooltip k-chart-tooltip"),m=this.scroll=m0("k-scroll");c.innerHTML="&nbsp;",r.appendChild(c),r.appendChild(m)}show(r,c,m){const{element:Z,options:le,scroll:Re,tooltip:gt}=this,hn=Kn(cr(r)+cr(c-r)/2),di=.4*m.width(),no=m.center().x-di,Qr=(m.center().x-no)/(le.max-le.min),Bs=hn-le.min;let oa=this.chartService.intl.format(le.format,r,c);const Ba=Xt(le);this.clearHideTimeout(),this._visible||(mi(Z,{visibility:"hidden",display:"block"}),this._visible=!0),Ba&&(oa=Ba({from:r,to:c})),gt.innerHTML=oa,mi(gt,{left:m.center().x-gt.offsetWidth/2,top:m.y1});const tl=mi(gt,["marginTop","borderTopWidth","height"]);mi(Re,{width:di,left:no+Bs*Qr,top:m.y1+tl.marginTop+tl.borderTopWidth+tl.height/2}),mi(Z,{visibility:"visible"})}clearHideTimeout(){this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideAnimation&&this._hideAnimation.cancel()}hide(){this.clearHideTimeout(),this._hideTimeout=setTimeout(()=>{this._visible=!1,this._hideAnimation=new py(this.element),this._hideAnimation.setup(),this._hideAnimation.play()},this.options.hideDelay)}destroy(){this.clearHideTimeout(),this.container&&this.container.removeChild(this.element),delete this.container,delete this.chartService,delete this.element,delete this.tooltip,delete this.scroll}}ms(o1,{format:"{0:d} - {1:d}",hideDelay:500});const r1=o1,p_="_navigator",A_=p_,wv="_default";class Gv extends jo.Z{constructor(r){super(),this.chart=r;const c=this.options=sn({},this.options,r.options.navigator),m=c.select;m&&(m.from=this.parseDate(m.from),m.to=this.parseDate(m.to)),Bi(c.hint.visible)||(c.hint.visible=c.visible),this.chartObserver=new pt(this,{[Vd]:"_drag",[Fu]:"_dragEnd",[Sd]:"_zoom",[vd]:"_zoomEnd"}),r.addObserver(this.chartObserver)}parseDate(r){return ks(this.chart.chartService.intl,r)}clean(){this.selection&&(this.selection.destroy(),this.selection=null),this.hint&&(this.hint.destroy(),this.hint=null)}destroy(){this.chart&&(this.chart.removeObserver(this.chartObserver),delete this.chart),this.clean()}redraw(){this._redrawSelf(),this.initSelection()}initSelection(){const{chart:r,options:c}=this,m=this.mainAxis(),{min:Z,max:le}=m.roundedRange(),{from:Re,to:gt,mousewheel:hn}=c.select,di=function W1(ve){return g0.prototype=ve,new g0}(m);0!==m.categoriesCount()&&(this.clean(),di.box=m.box,this.selection=new pp(r,di,{min:Z,max:le,from:Re||Z,to:gt||le,mousewheel:wr(hn,{zoom:"left"}),visible:c.visible},new pt(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),c.hint.visible&&(this.hint=new r1(r.element,r.chartService,{min:Z,max:le,template:Xt(c.hint),format:c.hint.format})))}setRange(){const c=this.chart._createPlotArea(!0).namedCategoryAxes[A_],{min:m,max:Z}=c.roundedRange(),le=this.options.select||{};let Re=le.from||m;Re<m&&(Re=m);let gt=le.to||Z;gt>Z&&(gt=Z),this.options.select=sn({},le,{from:Re,to:gt}),this.filterAxes()}_redrawSelf(r){const c=this.chart._plotArea;c&&c.redraw(ji(c.panes),r)}redrawSlaves(){const r=this.chart,c=r._plotArea,m=c.panes.filter(Z=>Z.options.name!==p_);c.srcSeries=r.options.series,c.options.categoryAxis=r.options.categoryAxis,c.clearSeriesPointsCache(),c.redraw(m)}_drag(r){const{chart:c,selection:m}=this,Z=c._eventCoordinates(r.originalEvent),le=this.mainAxis(),Re=le.roundedRange(),gt=le.pane.box.containsPoint(Z),di=r.axisRanges[c._plotArea.categoryAxis.options.name],no=this.options.select;let Mo;if(!di||gt||!m)return;Mo=no.from&&no.to?cr(no.to)-cr(no.from):cr(m.options.to)-cr(m.options.from);const ir=Kn(Fo(cr(di.min),Re.min,cr(Re.max)-Mo)),Wr=Kn(Fo(cr(ir)+Mo,cr(Re.min)+Mo,Re.max));this.options.select={from:ir,to:Wr},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),m.set(ir,Wr),this.showHint(ir,Wr)}_dragEnd(){this.filterAxes(),this.filter(),this.redrawSlaves(),this.hint&&this.hint.hide()}readSelection(){const{selection:{options:{from:r,to:c}},options:{select:m}}=this;m.from=r,m.to=c}filterAxes(){const{options:{select:r={}},chart:c}=this,m=c.options.categoryAxis,{from:Z,to:le}=r;for(let Re=0;Re<m.length;Re++){const gt=m[Re];gt.pane!==p_&&(gt.min=Z,gt.max=le)}}filter(){const{chart:r,options:{select:c}}=this;if(!r.requiresHandlers(["navigatorFilter"]))return;const m=this.mainAxis(),Z={from:c.from,to:c.to};if("category"!==m.options.type){const le=new il(sn({baseUnit:"fit"},r.options.categoryAxis[0],{categories:[c.from,c.to]}),r.chartService).options;Z.from=ro(le.min,-le.baseUnitStep,le.baseUnit),Z.to=ro(le.max,le.baseUnitStep,le.baseUnit)}this.chart.trigger("navigatorFilter",Z)}_zoom(r){const{chart:{_plotArea:{categoryAxis:c}},selection:m,options:{select:Z,liveDrag:le}}=this,Re=this.mainAxis();let gt=r.delta;if(!m)return;const hn=Re.categoryIndex(m.options.from),di=Re.categoryIndex(m.options.to),no=this.chart._eventCoordinates(r.originalEvent);r.originalEvent.preventDefault(),Math.abs(gt)>1&&(gt*=3),di-hn>1?(m.zoom(gt,no),this.readSelection()):(c.options.min=Z.from,Z.from=c.scaleRange(-r.delta*this.chart._mousewheelZoomRate(),no).min),le&&(this.filterAxes(),this.redrawSlaves()),m.set(Z.from,Z.to),this.showHint(this.options.select.from,this.options.select.to)}_zoomEnd(r){this._dragEnd(r)}showHint(r,c){this.hint&&this.hint.show(r,c,this.chart._plotArea.backgroundBox())}_selectStart(r){return this.chart._selectStart(r)}_select(r){return this.showHint(r.from,r.to),this.chart._select(r)}_selectEnd(r){return this.hint&&this.hint.hide(),this.readSelection(),this.filterAxes(),this.filter(),this.redrawSlaves(),this.chart._selectEnd(r)}mainAxis(){const r=this.chart._plotArea;if(r)return r.namedCategoryAxes[A_]}select(r,c){const m=this.options.select;return r&&c&&(m.from=this.parseDate(r),m.to=this.parseDate(c),this.filterAxes(),this.filter(),this.redrawSlaves(),this.selection.set(r,c)),{from:m.from,to:m.to}}static setup(r={},c={}){if(r.__navi)return;r.__navi=!0;const m=sn({},c.navigator,r.navigator),Z=r.panes=[].concat(r.panes),le=sn({},m.pane,{name:p_});m.visible||(le.visible=!1,le.height=.1),"top"!==r.navigator.position?Z.push(le):Z.unshift(le),Z.forEach(Re=>Re.name=Re.name||wv),Gv.attachAxes(r,m),Gv.attachSeries(r,m,c)}static attachAxes(r,c){const m=c.series||[],Z=r.categoryAxis=[].concat(r.categoryAxis),le=r.valueAxis=[].concat(r.valueAxis);Z.concat(le).forEach(Mo=>Mo.pane=Mo.pane||wv);const hn=0===nr(m,Cc).length,di=sn({type:"date",pane:p_,roundToBaseUnit:!hn,justified:hn,_collapse:!1,majorTicks:{visible:!0},tooltip:{visible:!1},labels:{step:1},autoBind:c.autoBindElements,autoBaseUnitSteps:{minutes:[1],hours:[1,2],days:[1,2],weeks:[],months:[1],years:[1]}}),no=c.categoryAxis;Z.push(sn({},di,{maxDateGroups:200},no,{name:A_,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),sn({},di,no,{name:A_+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),sn({},di,no,{name:A_+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),le.push(sn({name:A_,pane:p_,majorGridLines:{visible:!1},visible:!1},c.valueAxis))}static attachSeries(r,c,m){const Z=r.series=r.series||[],le=[].concat(c.series||[]),Re=m.seriesColors,gt=c.seriesDefaults;for(let hn=0;hn<le.length;hn++)Z.push(sn({color:Re[hn%Re.length],categoryField:c.dateField,visibleInLegend:!1,tooltip:{visible:!1}},gt,le[hn],{axis:A_,categoryAxis:A_,autoBind:c.autoBindElements}))}}function g0(){}const _0=Gv;ms(class a1 extends f0{applyDefaults(r,c){const m=or(this.element).width||600;let Z=c;const le={seriesDefaults:{categoryField:r.dateField},axisDefaults:{categoryAxis:{name:"default",majorGridLines:{visible:!1},labels:{step:2},majorTicks:{visible:!1},maxDateGroups:Math.floor(m/28)}}};Z&&(Z=sn({},Z,le)),_0.setup(r,Z),super.applyDefaults(r,Z)}_setElementClass(r){fe(r,"k-chart k-stockchart")}setOptions(r){this.destroyNavigator(),super.setOptions(r)}noTransitionsRedraw(){const r=this.options.transitions;this.options.transitions=!1,this._fullRedraw(),this.options.transitions=r}_resize(){this.noTransitionsRedraw()}_redraw(){const r=this.navigator;!this._dirty()&&r&&r.options.partialRedraw?r.redrawSlaves():this._fullRedraw()}_dirty(){const r=this.options,m=Ki([].concat(r.series,r.navigator.series),function(le){return le&&le.visible}).length,Z=this._seriesCount!==m;return this._seriesCount=m,Z}_fullRedraw(){let r=this.navigator;r||(r=this.navigator=new _0(this),this.trigger("navigatorCreated",{navigator:r})),r.clean(),r.setRange(),super._redraw(),r.initSelection()}_trackSharedTooltip(r){const m=this._plotArea.paneByPoint(r);m&&m.options.name===p_?this._unsetActivePoint():super._trackSharedTooltip(r)}bindCategories(){super.bindCategories(),this.copyNavigatorCategories()}copyNavigatorCategories(){const r=[].concat(this.options.categoryAxis);let c;for(let m=0;m<r.length;m++){const Z=r[m];Z.name===A_?c=Z.categories:c&&Z.pane===p_&&(Z.categories=c)}}destroyNavigator(){this.navigator&&(this.navigator.destroy(),this.navigator=null)}destroy(){this.destroyNavigator(),super.destroy()}_stopChartHandlers(r){const c=this._eventCoordinates(r),m=this._plotArea.paneByPoint(c);return super._stopChartHandlers(r)||m&&m.options.name===p_}_toggleDragZoomEvents(){this._dragZoomEnabled||(this.element.style.touchAction="none",this._dragZoomEnabled=!0)}},{dateField:"date",axisDefaults:{categoryAxis:{type:"date",baseUnit:"fit",justified:!0},valueAxis:{narrowRange:!0,labels:{format:"C"}}},navigator:{select:{},seriesDefaults:{markers:{visible:!1},tooltip:{visible:!1},highlight:{visible:!1},line:{width:2}},hint:{},visible:!0},tooltip:{visible:!0},legend:{visible:!1}});var Hv=i(46643),l1=i(23776),my=i(26082),ib=i(63424);class sv extends((0,l1.Z)((0,my.Z)((0,ib.Z)(Hv.Z)))){get nodeType(){return"Arc"}constructor(r=new Hs.Z,c={}){super(c),this.geometry(r),(0,Le.Z)(this.options.stroke)||this.stroke("#000")}_bbox(r){return this._geometry.bbox(r)}rawBBox(){return this.geometry().bbox()}toPath(){const r=new Js.y,c=this.geometry().curvePoints();if(c.length>0){r.moveTo(c[0].x,c[0].y);for(let m=1;m<c.length;m+=3)r.curveTo(c[m],c[m+1],c[m+2])}return r}_containsPoint(r){return this.geometry().containsPoint(r)}_isOnPath(r){return this.geometry()._isOnPath(r,this.options.stroke.width/2)}}const c1=sv,j1="arrowPointer",d1="barPointer",Qe=Math.PI/180,h="inside",oe="linear",kt="outside",ti="radialPointer",Zo="radialRangePointer";function hr(ve,r){const c=ve.getOrigin(),m=ve.getSize(),Z=Eo(r);return ve.setOrigin([c.x-Z.left,c.y-Z.top]),ve.setSize([m.width+(Z.left+Z.right),m.height+(Z.top+Z.bottom)]),ve}const{Group:Cs,Path:aa,Text:$a}=o;function ja(ve,r){const c=ve.box,m=ve.children[0].box,Z=r.border||{},le=r.background||"",Re=aa.fromRect(new Ss.Z([c.x1,c.y1],[c.width(),c.height()]),{stroke:{}}),gt=new $a(ve.text,new ls.Z(m.x1,m.y1),{font:r.font,fill:{color:r.color}}),hn=hr(gt.bbox().clone(),r.padding),di=aa.fromRect(hn,{stroke:{color:Z.width?Z.color:"",width:Z.width,opacity:Z.opacity,dashType:Z.dashType,lineJoin:"round",lineCap:"round"},fill:{color:le}}),no=new Cs;return no.append(Re),no.append(di),no.append(gt),no}function Ll(ve,r,c){const m=Bi(ve.from)?ve.from:V,Z=Bi(ve.to)?ve.to:U;return ve.from=Math.max(Math.min(Z,m),r),ve.to=Math.min(Math.max(Z,m),c),ve}function Gc(ve,r){const c=Eo(r);return c.left=-c.left,c.top=-c.top,c.right=-c.right,c.bottom=-c.bottom,hr(ve,c)}const{Path:_u,Surface:Vl}=o;class Ld extends jo.Z{constructor(r,c,m,Z={}){super(),this.element=r,this.theme=m,this.contextService=new Fi(this,Z),this._originalOptions=sn({},this.options,c),this.options=sn({},this._originalOptions),this._initTheme(m),this.redraw()}destroy(){this.surface&&(this.surface.destroy(),this.surface=null),delete this.element,delete this.surfaceElement}value(r){const c=this.pointers[0];if(0===arguments.length)return c.value();c.value(r),this._setValueOptions(r)}_draw(){const r=this.surface;r.clear(),r.draw(this._visuals)}exportVisual(){return this._visuals}allValues(r){const c=this.pointers,m=[];if(0===arguments.length){for(let Z=0;Z<c.length;Z++)m.push(c[Z].value());return m}if(De(r))for(let Z=0;Z<r.length;Z++)An(r[Z])&&c[Z].value(r[Z]);this._setValueOptions(r)}_setValueOptions(r){const c=[].concat(this.options.pointer),m=[].concat(r);for(let Z=0;Z<m.length;Z++)c[Z].value=m[Z]}resize(){this.noTransitionsRedraw()}noTransitionsRedraw(){const r=this.options.transitions;this._toggleTransitions(!1),this.redraw(),this._toggleTransitions(r)}redraw(){const r=this._surfaceSize(),c=new Ss.Z([0,0],[r.width,r.height]);this._initSurface(),this.gaugeArea=this._createGaugeArea(),this._createModel();const m=Gc(c.bbox(),this._gaugeAreaMargin);this.reflow(m)}setOptions(r,c){this._originalOptions=sn(this._originalOptions,r),this.options=sn({},this._originalOptions),this._initTheme(c),this.redraw()}setDirection(r){this.contextService.rtl=!!r,this.surface&&"svg"===this.surface.type&&(this.surface.destroy(),this.surface=null)}setIntlService(r){this.contextService.intl=r}_initTheme(r){let c=r||this.theme||{};this.theme=c,this.options=sn({},c,this.options);const m=this.options,Z=m.pointer;if(De(Z)){const le=[];for(let Re=0;Re<Z.length;Re++)le.push(sn({},c.pointer,Z[Re]));m.pointer=le}}_createGaugeArea(){const r=this.options.gaugeArea,c=this.surface.size(),m=r.border||{};let Z=new Ss.Z([0,0],[c.width,c.height]);return this._gaugeAreaMargin=r.margin||5,m.width>0&&(Z=Gc(Z,m.width)),_u.fromRect(Z,{stroke:{color:m.width?m.color:"",width:m.width,dashType:m.dashType,lineJoin:"round",lineCap:"round"},fill:{color:r.background}})}_initSurface(){const{options:r,surface:c}=this,m=this._surfaceElement(),Z=this._surfaceSize();or(m,Z),c&&c.options.type===r.renderAs?(this.surface.clear(),this.surface.resize()):(c&&c.destroy(),this.surface=Vl.create(m,{type:r.renderAs}))}_surfaceSize(){const r=this.options,c=this._getSize();return r.gaugeArea&&sn(c,r.gaugeArea),c}_surfaceElement(){return this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.element.appendChild(this.surfaceElement)),this.surfaceElement}getSize(){return this._getSize()}_getSize(){const r=this.element,c=this._defaultSize();let m=r.offsetWidth,Z=r.offsetHeight;return m||(m=c.width),Z||(Z=c.height),{width:m,height:Z}}_defaultSize(){return{width:200,height:200}}_toggleTransitions(r){this.options.transitions=r;for(let c=0;c<this.pointers.length;c++)this.pointers[c].options.animation.transitions=r}}ms(Ld,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}});const $f=Ld,{Path:Nu,Group:cf}=o,ju=ls.Z;function Zm(ve,r){const{position:c,tickX:m,tickY:Z}=ve;let le,Re;return ve.vertical?(le=new ju(m,c),Re=new ju(m+r.size,c)):(le=new ju(c,Z),Re=new ju(c,Z+r.size)),new Nu({stroke:{color:r.color,width:r.width}}).moveTo(le).lineTo(Re)}function Tg(ve,r,c,m){const Z=r.length;if(m.visible){const{mirror:le,lineBox:Re}=c;for(let gt=m.skip;gt<Z;gt+=m.step)gt%m.skipUnit!=0&&(c.tickX=le?Re.x2:Re.x2-m.size,c.tickY=le?Re.y1-m.size:Re.y1,c.position=r[gt],ve.append(Zm(c,m)))}}class v0 extends pa{constructor(r,c){let m=r||{};!Bi(m.reverse)&&!1===m.vertical&&(c||{}).rtl&&(m=Object.assign({},m,{reverse:!0})),super(0,1,m,c),this.options.minorUnit=this.options.minorUnit||this.options.majorUnit/10}initUserOptions(r){let c=sn({},this.options,r);return c=sn({},c,{labels:{mirror:c.mirror}}),c.majorUnit=c.majorUnit||xs(c.min,c.max),c}initFields(){}render(){const r=this.elements=new cf,c=this.renderLabels(),m=this.renderLine(),Z=this.renderTicks(),le=this.renderRanges();return r.append(m,c,Z,le),r}renderRanges(){const r=this.options,{min:c,max:m,vertical:Z,labels:{mirror:le}}=r,Re=r.ranges||[],gt=new cf,hn=Re.length,di=r.rangeSize||r.minorTicks.size/2;for(let no=0;no<hn;no++){const Mo=Ll(Re[no],c,m),ir=this.getSlot(Mo.from,Mo.to),Wr=Z?this.lineBox():ir,Qr=Z?ir:this.lineBox();Z?Wr.x1-=di*(le?-1:1):Qr.y2+=di*(le?-1:1),gt.append(Nu.fromRect(new Ss.Z([Wr.x1,Qr.y1],[Wr.x2-Wr.x1,Qr.y2-Qr.y1]),{fill:{color:Mo.color,opacity:Mo.opacity},stroke:{}}))}return gt}renderLabels(){const{labels:r,options:c}=this,m=new cf;for(let Z=0;Z<r.length;Z++)m.append(ja(r[Z],c.labels));return m}renderLine(){const r=this.options.line,c=this.lineBox(),m=new cf;if(r.width>0&&r.visible){const Z=new Nu({stroke:{color:r.color,dashType:r.dashType,width:r.width}});Z.moveTo(c.x1,c.y1).lineTo(c.x2,c.y2),m.append(Z)}return m}renderTicks(){const r=new cf,c=this.options,m=c.majorTicks.visible?c.majorUnit:0,Z={vertical:c.vertical,mirror:c.labels.mirror,lineBox:this.lineBox()};return Tg(r,this.getMajorTickPositions(),Z,c.majorTicks),Tg(r,this.getMinorTickPositions(),Z,sn({},{skipUnit:m/c.minorUnit},c.minorTicks)),r}}ms(v0,{min:0,max:50,majorTicks:{size:15,align:h,color:_,width:.5,visible:!0},minorTicks:{size:10,align:h,color:_,width:.5,visible:!0},line:{width:.5},labels:{position:h,padding:2},mirror:!1,_alignLines:!1});const lv=v0;class m_ extends jo.Z{constructor(r,c){super();const{min:m,max:Z}=r.options,le=this.options=sn({},this.options,c);le.fill=le.color,this.scale=r,le.value=Bi(le.value)?Fo(le.value,m,Z):m}value(r){const c=this.options;if(0===arguments.length)return c.value;const{min:Z,max:le}=this.scale.options;c._oldValue=Bi(c._oldValue)?c.value:Z,c.value=Fo(r,Z,le),this.elements&&this.repaint()}}ms(m_,{color:_});const $_=m_;class y0 extends $_{constructor(r,c){super(r,c),this.options=sn({track:{visible:Bi(c.track)}},this.options)}reflow(){const{options:r,scale:c}=this,{mirror:m,vertical:Z}=c.options,le=c.lineBox(),Re=r.track.size||r.size,gt=r.size/2,hn=Eo(r.margin);let no,Mo,ir,di=Z?hn[m?"left":"right"]:hn[m?"bottom":"top"];di=m?-di:di,Z?(ir=new Ar(le.x1+di,le.y1,le.x1+di,le.y2),m?ir.x1-=Re:ir.x2+=Re,r.shape!==d1&&(Mo=new Ar(le.x2+di,le.y1-gt,le.x2+di,le.y2+gt),no=Mo)):(ir=new Ar(le.x1,le.y1-di,le.x2,le.y1-di),m?ir.y2+=Re:ir.y1-=Re,r.shape!==d1&&(Mo=new Ar(le.x1-gt,le.y1-di,le.x2+gt,le.y1-di),no=Mo)),this.trackBox=ir,this.pointerRangeBox=Mo,this.box=no||ir.clone().pad(r.border.width)}getElementOptions(){const r=this.options;return{fill:{color:r.color,opacity:r.opacity},stroke:Bi(r.border)?{color:r.border.width?r.border.color||r.color:"",width:r.border.width,dashType:r.border.dashType,opacity:r.opacity}:null}}_margin(){const{scale:r,options:c}=this,{mirror:m,vertical:Z}=r.options,le=Eo(c.margin);return Z?le[m?"left":"right"]:le[m?"bottom":"top"]}}ms(y0,{shape:d1,track:{border:{width:1}},color:_,border:{width:1},opacity:1,margin:Eo(3),animation:{type:d1},visible:!0});const Q_=y0;class Tv extends da{setup(){const r=this.options,{margin:c,from:m,to:Z,vertical:le}=r,Re=le?"x1":"y1";r.mirror===le?(m[Re]-=c,Z[Re]-=c):(m[Re]+=c,Z[Re]+=c);const gt=this.fromScale=new ls.Z(m.x1,m.y1),hn=this.toScale=new ls.Z(Z.x1,Z.y1);0!==r.duration&&(r.duration=Math.max(gt.distanceTo(hn)/r.duration*1e3,1))}step(r){const c=xt(this.fromScale.x,this.toScale.x,r),m=xt(this.fromScale.y,this.toScale.y,r);this.element.transform(Tt.Z().translate(c,m))}}ms(Tv,{easing:oe,duration:250}),Pr.current.register(j1,Tv);const Qf=Tv,X_=ls.Z,Ec=Js.y,u1=class b0 extends Q_{constructor(r,c){super(r,c),Bi(this.options.size)||(this.options.size=.6*this.scale.options.majorTicks.size)}pointerShape(){const{scale:r,options:{size:c}}=this,m=c/2,Z=r.options.mirror?-1:1;let le;return le=r.options.vertical?[new X_(0,0-m),new X_(0-Z*c,0),new X_(0,0+m)]:[new X_(0-m,0),new X_(0,0+Z*c),new X_(0+m,0)],le}repaint(){const{scale:r,options:c}=this,m=new Qf(this.elements,sn(c.animation,{vertical:r.options.vertical,mirror:r.options.mirror,margin:this._margin(c.margin),from:r.getSlot(c._oldValue),to:r.getSlot(c.value)}));!1===c.animation.transitions&&(m.options.duration=0),m.setup(),m.play()}render(){const{scale:r,options:c}=this,m=this.getElementOptions(),Z=this.pointerShape(c.value);c.animation.type=j1;const le=new Ec({stroke:m.stroke,fill:m.fill}).moveTo(Z[0]).lineTo(Z[1]).lineTo(Z[2]).close(),Re=r.getSlot(c.value);return le.transform(Tt.Z().translate(Re.x1,Re.y1)),this.elements=le,le}};class df extends da{setup(){const r=this.options,c=this.axis=r.vertical?Ce:ge,m=this.to=r.newPoints[0][c],Z=this.from=r.oldPoints[0][c];0!==r.duration&&(r.duration=Math.max(Math.abs(m-Z)/r.speed*1e3,1)),this._set(Z)}step(r){const c=xt(this.from,this.to,r);this._set(c)}_set(r){const c="set"+this.axis.toUpperCase(),m=this.options.newPoints;m[0][c](r),m[1][c](r)}}ms(df,{easing:oe,speed:250}),Pr.current.register(d1,df);const h1=df,{Group:Y1,Path:f1}=o,td=class q_ extends Q_{constructor(r,c){super(r,c),Bi(this.options.size)||(this.options.size=.3*this.scale.options.majorTicks.size)}pointerShape(r){const{scale:c,options:m}=this,{mirror:Z,vertical:le}=c.options,Re=Z===le?-1:1,gt=m.size*Re,hn=c.getSlot(c.options.min),di=c.getSlot(r),no=le?Ce:ge,Mo=le?ge:Ce,ir=this._margin()*Re,Wr=new ls.Z;Wr[no]=hn[no+"1"],Wr[Mo]=hn[Mo+"1"];const Qr=new ls.Z;Qr[no]=di[no+"1"],Qr[Mo]=di[Mo+"1"],le?(Wr.translate(ir,0),Qr.translate(ir,0)):(Wr.translate(0,ir),Qr.translate(0,ir));const Bs=Qr.clone(),oa=Wr.clone();return le?(Bs.translate(gt,0),oa.translate(gt,0)):(Bs.translate(0,gt),oa.translate(0,gt)),[Wr,Qr,Bs,oa]}repaint(){const{scale:r,options:c}=this,m=this.pointerShape(c.value),Z=this.pointerPath,le=this.pointerShape(c._oldValue);Z.moveTo(m[0]).lineTo(m[1]).lineTo(m[2]).lineTo(m[3]).close();const Re=new h1(Z,sn(c.animation,{reverse:r.options.reverse,vertical:r.options.vertical,oldPoints:[le[1],le[2]],newPoints:[m[1],m[2]]}));!1===c.animation.transitions&&(Re.options.duration=0),Re.setup(),Re.play()}render(){const r=new Y1,c=this.getElementOptions();this.options.track.visible&&r.append(this.renderTrack());const m=this.pointerPath=new f1({stroke:c.stroke,fill:c.fill});return r.append(m),this.elements=r,r}renderTrack(){const r=this.options.track,c=r.border||{},m=this.trackBox.clone().pad(c.width||0);return new f1.fromRect(m.toRect(),{fill:{color:r.color,opacity:r.opacity},stroke:{color:c.width?c.color||r.color:"",width:c.width,dashType:c.dashType}})}},cv=ht.Z;ms(class Wv extends $f{reflow(r){const c=this.pointers,m=r.origin.x,Z=r.origin.y,le=new Ar(m,Z,m+r.width(),Z+r.height());this.scale.reflow(le),this._shrinkScaleWidth(le);for(let Re=0;Re<c.length;Re++)c[Re].reflow();this.bbox=this._getBox(le),this._alignElements(),this._shrinkElements(),this._buildVisual(),this._draw()}_buildVisual(){const r=new cv,c=this.scale.render(),m=this.pointers;r.append(this.gaugeArea),r.append(c);for(let Z=0;Z<m.length;Z++){const le=m[Z];r.append(le.render()),le.value(le.options.value)}this._visuals=r}_createModel(){const r=this.options,c=this.scale=new lv(r.scale,this.contextService);this.pointers=[];let m=r.pointer;m=De(m)?m:[m];for(let Z=0;Z<m.length;Z++){const le=sn({},m[Z],{animation:{transitions:r.transitions}});this.pointers.push(new("arrow"===le.shape?u1:td)(c,le))}}_defaultSize(){const r=this.options.scale.vertical;return{width:r?60:200,height:r?200:60}}_getBox(r){const{scale:c,pointers:m}=this,Z=r.center();let Re,le=m[0].box.clone().wrap(c.box);for(let gt=0;gt<m.length;gt++)le.wrap(m[gt].box.clone());return c.options.vertical?(Re=le.width()/2,le=new Ar(Z.x-Re,r.y1,Z.x+Re,r.y2)):(Re=le.height()/2,le=new Ar(r.x1,Z.y-Re,r.x2,Z.y+Re)),le}_alignElements(){const{scale:r,pointers:c}=this,m=r.box,Z=c[0].box.clone().wrap(r.box),le=this.bbox;for(let gt=0;gt<c.length;gt++)Z.wrap(c[gt].box.clone());let Re;r.options.vertical?(Re=le.center().x-Z.center().x,r.reflow(new Ar(m.x1+Re,le.y1,m.x2+Re,le.y2))):(Re=le.center().y-Z.center().y,r.reflow(new Ar(m.x1,m.y1+Re,m.x2,m.y2+Re)));for(let gt=0;gt<c.length;gt++)c[gt].reflow(this.bbox)}_shrinkScaleWidth(r){const{scale:c}=this;if(!c.options.vertical){const m=c.contentBox().width()-r.width();m>0&&(c.box.shrink(m,0),c.box.alignTo(r,"center"),c.reflow(c.box))}}_shrinkElements(){const{scale:r,pointers:c}=this,m=r.box.clone(),Z=r.options.vertical?"y":"x",le=c[0].box;for(let Re=0;Re<c.length;Re++)le.wrap(c[Re].box.clone());m[Z+1]+=Math.max(m[Z+1]-le[Z+1],0),m[Z+2]-=Math.max(le[Z+2]-m[Z+2],0),r.reflow(m);for(let Re=0;Re<c.length;Re++)c[Re].reflow(this.bbox)}},{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}});const{Arc:x0,Path:Dv,Group:jv}=o;function uv(ve,r,c,m){const Z=new jv,le=ve.center,Re=ve.getRadiusX();if(m.visible)for(let gt=0;gt<r.length;gt++){const hn=ve.pointAt(r[gt]),di=new ls.Z(le.x+Re-m.size,le.y).rotate(r[gt],le);Z.append(new Dv({stroke:{color:m.color,width:m.width}}).moveTo(hn).lineTo(di))}return Z}function ev(ve,r,c,m){return{from:ve,to:r,color:c,opacity:m}}class Dg extends pa{constructor(r,c){super(0,1,r,c)}initUserOptions(r){const c=sn({},this.options,r);return c.majorUnit=c.majorUnit||xs(c.min,c.max),c.minorUnit=c.minorUnit||c.majorUnit/10,c}initFields(){}render(r,c){const m=this.renderArc(r,c);this.bbox=m.bbox(),this.labelElements=this.renderLabels(),this.ticks=this.renderTicks(),this.ranges=this.renderRanges()}reflow(r){const c=r.center(),m=Math.min(r.height(),r.width())/2;if(!Bi(this.bbox))return this.render(c,m);this.bbox=this.arc.bbox(),this.radius(this.arc.getRadiusX()),this.repositionRanges(),this.renderLabels()}slotAngle(r){const{min:c,max:m,reverse:Z,startAngle:le,endAngle:Re}=this.options,gt=Re-le;let hn;return hn=Z?Re-(r-c)/(m-c)*gt:(r-c)/(m-c)*gt+le,hn+180}hasRanges(){const r=this.options.ranges;return r&&r.length}ticksSize(){const{majorTicks:r,minorTicks:c}=this.options;let m=0;return r.visible&&(m=r.size),c.visible&&(m=Math.max(c.size,m)),m}labelsCount(){let r=super.labelsCount();const c=this.options;return c.endAngle-c.startAngle>=360&&c.max%c.majorUnit==0&&(r-=1),r}renderLabels(){const r=this.options,c=this.arc.clone();let m=c.getRadiusX();const Z=this.tickAngles(c,r.majorUnit),le=r.rangeSize=r.rangeSize||.1*m,Re=new jv;let gt=.05*m;Bi(r.rangeDistance)?gt=r.rangeDistance:r.rangeDistance=gt;const hn=r.labels,di=hn.position===h,no=Bi(this.labelElements);di&&(m-=this.ticksSize(),this.hasRanges()&&!no&&(m-=le+gt),c.setRadiusX(m).setRadiusY(m));const Mo=this.labels,ir=Mo.length,Wr=Eo(hn.padding),Qr=(Wr.left+Wr.right)/2,Bs=(Wr.top+Wr.bottom)/2;for(let oa=0;oa<ir;oa++){const Ba=Mo[oa],tl=Ba.box.width()/2,Dc=Ba.box.height()/2,Ud=Z[oa],hu=(Ud-180)*Qe,qf=c.pointAt(Ud),Jp=qf.x+Math.cos(hu)*(tl+Qr)*(di?1:-1),Im=qf.y+Math.sin(hu)*(Dc+Bs)*(di?1:-1);Ba.reflow(new Ar(Jp-tl,Im-Dc,Jp+tl,Im+Dc));const R1=new ls.Z(Ba.box.x1,Ba.box.y1);let R_;if(no){R_=this.labelElements.children[oa];const xS=R_.bbox().origin,s2=R_.transform()||Tt.Z();s2.translate(R1.x-xS.x,R1.y-xS.y),R_.transform(s2)}else R_=ja(Ba,r.labels),Re.append(R_);this.bbox=Ss.Z.union(this.bbox,R_.bbox())}return Re}repositionRanges(){const r=this.ranges.children;if(r.length>0){const{rangeDistance:c,rangeSize:m}=this.options;let Z=this.getRangeRadius();this.options.labels.position===h&&(Z+=m+c);const le=Z+m/2;for(let Re=0;Re<r.length;Re++)r[Re]._geometry.setRadiusX(le).setRadiusY(le);this.bbox=Ss.Z.union(this.bbox,this.ranges.bbox())}}renderRanges(){const r=this.rangeSegments(),c=r.length,m=new jv;if(c){const{rangeSize:Z,reverse:le,rangeDistance:Re}=this.options,gt=this.getRangeRadius();this.radius(this.radius()-Z-Re);for(let hn=0;hn<c;hn++){const di=r[hn],no=this.slotAngle(di[le?"to":"from"]),Mo=this.slotAngle(di[le?"from":"to"]);Mo-no!=0&&m.append(this.createRange(no,Mo,gt,di))}}return m}createRange(r,c,m,Z){const le=this.options.rangeSize,Re=new Hs.Z(this.arc.center,{radiusX:m+le/2,radiusY:m+le/2,startAngle:r,endAngle:c});return new x0(Re,{stroke:{width:le,color:Z.color,opacity:Z.opacity,lineCap:Z.lineCap}})}rangeSegments(){const r=this.options,c=r.ranges||[],m=c.length,Z=[];if(m){const{min:le,max:Re,rangePlaceholderColor:gt}=r;Z.push(ev(le,Re,gt));for(let hn=0;hn<m;hn++){const di=Ll(c[hn],le,Re),no=Z.length;for(let Mo=0;Mo<no;Mo++){const ir=Z[Mo];if(ir.from<=di.from&&di.from<=ir.to){Z.push(ev(di.from,di.to,di.color,di.opacity)),ir.from<=di.to&&di.to<=ir.to&&Z.push(ev(di.to,ir.to,gt,di.opacity)),ir.to=di.from;break}}}}return Z}getRangeRadius(){const{arc:r,options:c}=this,{rangeSize:m,rangeDistance:Z,majorTicks:{size:le}}=c;let Re;return Re=c.labels.position===kt?r.getRadiusX()-le-Z-m:r.getRadiusX()-m,Re}renderArc(r,c){const m=this.options;return this.arc=new Hs.Z(r,{radiusX:c,radiusY:c,startAngle:m.startAngle+180,endAngle:m.endAngle+180})}renderTicks(){const{arc:r,options:c}=this,m=r.clone();this.majorTickAngles=this.tickAngles(r,c.majorUnit),this.majorTicks=uv(m,this.majorTickAngles,0,c.majorTicks);const Z=new jv;Z.append(this.majorTicks);const le=c.majorTicks.size,Re=c.minorTicks.size;if(this._tickDifference=le-Re,c.labels.position===kt){const gt=m.getRadiusX();m.setRadiusX(gt-le+Re).setRadiusY(gt-le+Re)}return this.minorTickAngles=this.normalizeTickAngles(this.tickAngles(r,c.minorUnit)),this.minorTicks=uv(m,this.minorTickAngles,0,c.minorTicks),Z.append(this.minorTicks),Z}normalizeTickAngles(r){const c=this.options,m=c.majorUnit/c.minorUnit;for(let Z=r.length-1;Z>=0;Z--)Z%m==0&&r.splice(Z,1);return r}tickAngles(r,c){const m=this.options,Re=r.endAngle-r.startAngle;let gt=(m.max-m.min)/c,hn=r.startAngle,di=Re/gt;m.reverse&&(hn+=Re,di=-di),Re>=360&&m.max%c==0&&(gt-=1);const no=[];for(let Mo=0;Mo<gt;Mo++)no.push(Gn(hn,3)),hn+=di;return Gn(hn)<=r.endAngle&&no.push(hn),no}radius(r){if(!r)return this.arc.getRadiusX();this.arc.setRadiusX(r).setRadiusY(r),this.repositionTicks(this.majorTicks.children,this.majorTickAngles),this.repositionTicks(this.minorTicks.children,this.minorTickAngles,!0)}repositionTicks(r,c,m){const Z=m&&this._tickDifference||0;let le=this.arc;const Re=le.getRadiusX();m&&this.options.labels.position===kt&&0!==Z&&(le=this.arc.clone(),le.setRadiusX(Re-Z).setRadiusY(Re-Z));for(let gt=0;gt<r.length;gt++){const hn=le.pointAt(c[gt]),di=r[gt].segments,no=hn.x-di[0].anchor().x,Mo=hn.y-di[0].anchor().y;r[gt].transform((new Tt.Z).translate(no,Mo))}}}ms(Dg,{min:0,max:100,majorTicks:{size:15,align:h,color:_,width:.5,visible:!0},minorTicks:{size:10,align:h,color:_,width:.5,visible:!0},startAngle:-30,endAngle:210,labels:{position:h,padding:2}});const S0=Dg;class uu extends da{constructor(r,c){super(r,c);const m=this.options;m.duration=Math.max(Math.abs(m.newAngle-m.oldAngle)/m.duration*1e3,1)}step(r){const c=this.options,m=xt(c.oldAngle,c.newAngle,r);this.element.transform(Tt.Z().rotate(m,c.center))}}ms(uu,{easing:oe,duration:150}),Pr.current.register(ti,uu);const Mg=uu,{Circle:ag,Group:Yv,Path:Zv}=o;class Kv extends $_{setAngle(r){this.elements.transform(Tt.Z().rotate(r,this.center))}repaint(){const{scale:r,options:c}=this,m=r.slotAngle(c._oldValue),Z=r.slotAngle(c.value);!1===c.animation.transitions?this.setAngle(Z):new Mg(this.elements,sn(c.animation,{oldAngle:m,newAngle:Z})).play()}render(){const{scale:r,options:c}=this,m=new Yv;return!1!==c.animation&&sn(c.animation,{startAngle:0,center:r.arc.center,reverse:r.options.reverse}),m.append(this._renderNeedle(),this._renderCap()),this.elements=m,this.setAngle(Qe),m}reflow(r){const c=this.center=r.center,m=Fo(this.options.length||1,.1,1.5),Z=this.radius=r.getRadiusX()*m,le=this.capSize=Math.round(Z*this.options.cap.size);this.bbox=Ss.Z.fromPoints(new ls.Z(c.x-le,c.y-le),new ls.Z(c.x+le,c.y+le))}_renderNeedle(){const r=this.scale.options.minorTicks.size,c=this.center,m=this.options.color,Z=new Zv({fill:{color:m},stroke:{color:m,width:.5}});return Z.moveTo(c.x+this.radius-r,c.y).lineTo(c.x,c.y-this.capSize/2).lineTo(c.x,c.y+this.capSize/2).close(),Z}_renderCap(){const r=this.options,c=r.cap.color||r.color,m=new Jt.Z(this.center,this.capSize);return new ag(m,{fill:{color:c},stroke:{color:c}})}}ms(Kv,{cap:{size:.05},arrow:{width:16,height:14},animation:{type:ti,duration:150}});const w0=Kv,E0=ht.Z;ms(class T0 extends $f{reflow(r){const c=this.pointers;this.scale.reflow(r),this._initialPlotArea=this.scale.bbox;for(let m=0;m<c.length;m++)c[m].reflow(this.scale.arc),this._initialPlotArea=Ss.Z.union(this._initialPlotArea,c[m].bbox);this.fitScale(r),this.alignScale(r),this._buildVisual(this.gaugeArea,c,this.scale),this._draw()}_buildVisual(r,c,m){const Z=this._visuals=new E0;Z.append(r),Z.append(m.ticks),Z.append(m.ranges),this._buildPointers(c),Z.append(m.labelElements)}_buildPointers(r){for(let c=0;c<r.length;c++){const m=r[c];m.render(),this._visuals.append(m.elements),m.value(m.options.value)}}fitScale(r){const c=this.scale.arc,Z=Math.abs(this.getDiff(this._initialPlotArea,r));let gt,hn,di,no,Mo,le=Gn(Z,3),Re=Gn(-Z,3),ir=0,Wr=0;for(;Wr++<100&&(ir=Mo===di?ir+1:0,!(ir>5||le!==no&&(gt=this.getPlotBox(le,r,c),0<=gt&&gt<=2)||Re!==no&&(di=this.getPlotBox(Re,r,c),0<=di&&di<=2)||(no=gt>0&&di>0?2*le:gt<0&&di<0?2*Re:Gn((le+Re)/2||1,3),hn=this.getPlotBox(no,r,c),0<=hn&&hn<=2)));)Mo=di,hn>0?(Re=no,di=hn):(le=no,gt=hn)}getPlotBox(r,c,m){const Z=this.scale,le=this.pointers,Re=m.getRadiusX(),gt=m.clone();gt.setRadiusX(Re+r).setRadiusY(Re+r),Z.arc=gt,Z.reflow(c),this.plotBbox=Z.bbox;for(let hn=0;hn<le.length;hn++)le[hn].reflow(gt),this.plotBbox=Ss.Z.union(this.plotBbox,le[hn].bbox);return this.getDiff(this.plotBbox,c)}getDiff(r,c){return Math.min(c.width()-r.width(),c.height()-r.height())}alignScale(r){const c=this.plotBbox.center(),m=r.center(),Z=c.x-m.x,le=c.y-m.y,{scale:Re,pointers:gt}=this;Re.arc.center.x-=Z,Re.arc.center.y-=le,Re.reflow(r);for(let hn=0;hn<gt.length;hn++)gt[hn].reflow(Re.arc),this.plotBbox=Ss.Z.union(Re.bbox,gt[hn].bbox)}_createModel(){const r=this.options,c=r.pointer,m=this.scale=new S0(r.scale,this.contextService);this.pointers=[];const Z=De(c)?c:[c];for(let le=0;le<Z.length;le++){const Re=new w0(m,sn({},Z[le],{animation:{transitions:r.transitions}}));this.pointers.push(Re)}}},{transitions:!0,gaugeArea:{background:""}}),ms(class tv extends S0{rangeSegments(){const{min:r,max:c,rangePlaceholderColor:m,rangeLineCap:Z}=this.options;return[{from:r,to:c,color:m,lineCap:Z}]}hasRanges(){return!0}placeholderRangeAngle(r){const c=this.ranges.children[0].geometry();this.options.reverse?c.setEndAngle(r):c.setStartAngle(r)}addRange(r,c,m){const Z=this.options.reverse,le=this.slotAngle(Z?c:r),Re=this.slotAngle(Z?r:c),gt=this.createRange(le,Re,this.getRangeRadius(),m);return this.ranges.append(gt),gt}},{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"});class Mv extends da{constructor(r,c){super(r,c);const m=this.options,Z=Math.abs(m.newAngle-m.oldAngle)/m.duration*1e3;m.duration=Fo(Z,150,800);const le=r.elements.options.get("stroke.color"),Re=r.currentColor();le!==Re&&(this.startColor=new yo.Z(le),this.color=new yo.Z(Re))}step(r){const{options:c,startColor:m,color:Z}=this,le=xt(c.oldAngle,c.newAngle,r);if(this.element.angle(le),Z){const Re=Gn(xt(m.r,Z.r,r)),gt=Gn(xt(m.g,Z.g,r)),hn=Gn(xt(m.b,Z.b,r));this.element.stroke(new yo.Z(Re,gt,hn).toHex())}}}ms(Mv,{easing:oe,duration:150}),Pr.current.register(Zo,Mv);const m1=Mv;ms(class M0 extends $_{repaint(){const{scale:r,options:c}=this,m=r.slotAngle(c._oldValue),Z=r.slotAngle(c.value);this.animation&&this.animation.abort(),!1===c.animation.transitions?(this.angle(Z),this.stroke(this.currentColor())):(this.animation=new m1(this,sn(c.animation,{oldAngle:m,newAngle:Z})),this.animation.play())}angle(r){const c=this.elements.geometry();this.scale.options.reverse?c.setStartAngle(r):c.setEndAngle(r),this.scale.placeholderRangeAngle(r)}stroke(r){this.elements.stroke(r)}render(){if(this.elements)return;const{scale:r,options:c}=this;!1!==c.animation&&sn(c.animation,{startAngle:0,center:r.arc.center,reverse:r.options.reverse}),this.elements=r.addRange(r.options.min,this.options.value,{color:this.currentColor(),opacity:c.opacity,lineCap:r.options.rangeLineCap})}currentColor(){const{min:r,max:c}=this.scale.options,{colors:m,color:Z,value:le}=this.options,Re=An(le)?le:r;if(m)for(let gt=0;gt<m.length;gt++){const{color:hn,from:di=r,to:no=c}=m[gt];if(di<=Re&&Re<=no)return hn}return Z}reflow(){this.render(),this.bbox=this.elements.bbox()}},{animation:{type:Zo,duration:150}});class H_ extends jo.Z{constructor(r){super(),this.setOptions(r),this.initProperties()}initProperties(){}setOptions(r){this.options=Object.assign({},this.options,r),this.quietZoneLength=this.options.addQuietZone?2*this.options.quietZoneLength:0}encode(r,c,m){const Z=Bi(r)?String(r):r;return this.initValue(Z,c,m),this.options.addQuietZone&&this.addQuietZone(),this.addData(),this.options.addQuietZone&&this.addQuietZone(),{baseUnit:this.baseUnit,pattern:this.pattern}}initValue(){}addQuietZone(){this.pattern.push(this.options.quietZoneLength||10)}addData(){}invalidCharacterError(r){throw new Error(`Character "${r}" is not valid for symbology ${this.name}.`)}}ms(H_,{quietZoneLength:10,addQuietZone:!0,addCheckSum:!0});const pl=Object.assign;class I0 extends H_{initProperties(){super.initProperties(),pl(this,{name:"Code 11",characterMap:["111121","211121","121121","221111","112121","212111","122111","111221","211211","211111","112111"],cCheckSumTotal:10,kCheckSumTotal:9,kCheckSumMinLength:10,checkSumMod:11,DASH_VALUE:10,DASH:"-",START:"112211",STOP:"11221"})}initValue(r,c){this.pattern=[],this.value=r,this.width=c,this.totalUnits=0}addData(){const r=this.value;this.addPattern(this.START);for(let c=0;c<r.length;c++)this.addCharacter(r.charAt(c));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.STOP),this.setBaseUnit()}setBaseUnit(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)}addCheckSum(){const r=this.value;let c=r.length;const m=this.getWeightedSum(r,c,this.cCheckSumTotal)%this.checkSumMod;if(this.checksum=String(m),this.addPattern(this.characterMap[m]),c++,c>=this.kCheckSumMinLength){let Z=(m+this.getWeightedSum(r,c,this.kCheckSumTotal))%this.checkSumMod;this.checksum+=Z,this.addPattern(this.characterMap[Z])}}getWeightedSum(r,c,m){let Z=0;for(let le=0;le<r.length;le++)Z+=this.weightedValue(this.getValue(r.charAt(le)),c,le,m);return Z}weightedValue(r,c,m,Z){return((c-m)%Z||Z)*r}getValue(r){return isNaN(r)?(r!==this.DASH&&this.invalidCharacterError(r),this.DASH_VALUE):parseInt(r,10)}addCharacter(r){const c=this.getValue(r);this.addPattern(this.characterMap[c])}addPattern(r){let c;for(let m=0;m<r.length;m++)c=parseInt(r.charAt(m),10),this.pattern.push(c),this.totalUnits+=c}}ms(I0,{addCheckSum:!0});const kv=Object.assign;class v1 extends H_{initProperties(){super.initProperties(),kv(this,{minBaseUnitLength:.7})}addData(){const r=this.value;this.addStart();for(let c=0;c<r.length;c++)this.addCharacter(r.charAt(c));this.options.addCheckSum&&this.pushCheckSum(),this.addStop(),this.prepareValues()}addCharacter(r){const c=this.characterMap[r];c||this.invalidCharacterError(r),this.addBase(c)}addBase(){}}class A0 extends v1{initProperties(){super.initProperties(),kv(this,{name:"Code 39",checkSumMod:43,minRatio:2.5,maxRatio:3,gapWidth:1,splitCharacter:"|",patternMappings:{b:"1|",w:"1|",B:"ratio|",W:"ratio|"},characterMap:{0:{pattern:"bwbWBwBwb",value:0},1:{pattern:"BwbWbwbwB",value:1},2:{pattern:"bwBWbwbwB",value:2},3:{pattern:"BwBWbwbwb",value:3},4:{pattern:"bwbWBwbwB",value:4},5:{pattern:"BwbWBwbwb",value:5},6:{pattern:"bwBWBwbwb",value:6},7:{pattern:"bwbWbwBwB",value:7},8:{pattern:"BwbWbwBwb",value:8},9:{pattern:"bwBWbwBwb",value:9},A:{pattern:"BwbwbWbwB",value:10},B:{pattern:"bwBwbWbwB",value:11},C:{pattern:"BwBwbWbwb",value:12},D:{pattern:"bwbwBWbwB",value:13},E:{pattern:"BwbwBWbwb",value:14},F:{pattern:"bwBwBWbwb",value:15},G:{pattern:"bwbwbWBwB",value:16},H:{pattern:"BwbwbWBwb",value:17},I:{pattern:"bwBwbWBwb",value:18},J:{pattern:"bwbwBWBwb",value:19},K:{pattern:"BwbwbwbWB",value:20},L:{pattern:"bwBwbwbWB",value:21},M:{pattern:"BwBwbwbWb",value:22},N:{pattern:"bwbwBwbWB",value:23},O:{pattern:"BwbwBwbWb",value:24},P:{pattern:"bwBwBwbWb",value:25},Q:{pattern:"bwbwbwBWB",value:26},R:{pattern:"BwbwbwBWb",value:27},S:{pattern:"bwBwbwBWb",value:28},T:{pattern:"bwbwBwBWb",value:29},U:{pattern:"BWbwbwbwB",value:30},V:{pattern:"bWBwbwbwB",value:31},W:{pattern:"BWBwbwbwb",value:32},X:{pattern:"bWbwBwbwB",value:33},Y:{pattern:"BWbwBwbwb",value:34},Z:{pattern:"bWBwBwbwb",value:35},"-":{pattern:"bWbwbwBwB",value:36},".":{pattern:"BWbwbwBwb",value:37}," ":{pattern:"bWBwbwBwb",value:38},$:{pattern:"bWbWbWbwb",value:39},"/":{pattern:"bWbWbwbWb",value:40},"+":{pattern:"bWbwbWbWb",value:41},"%":{pattern:"bwbWbWbWb",value:42},START:{pattern:"bWbwBwBwb"}}})}initValue(r,c,m){this.width=c,this.height=m,this.value=r,this.dataLength=r.length,this.pattern=[],this.patternString=""}prepareValues(){const r=this.minBaseUnitLength,c=this.minRatio,m=Math.ceil(Math.max(.15*this.width,24));let Z,le=this.maxRatio;if(this.height<m)throw new Error(`Insufficient height for Code39 encoding: the current height is ${this.height}px and the minimum height is ${m}px.`);for(Z=this.getBaseUnit(le);Z<r&&le>c;)le=parseFloat((le-.1).toFixed(1)),Z=this.getBaseUnit(le);if(Z<r){let Re=Math.ceil(this.getBaseWidth(c)*r);throw new Error(`Insufficient width for Code39 encoding: the current width is ${this.width}px and the minimum width for value "${this.value}" is ${Re}px.`)}this.ratio=le,this.baseUnit=Z,this.patternString=this.patternString.substring(0,this.patternString.length-1),this.pattern=this.pattern.concat(this.patternString.replace(/ratio/g,le).split(this.splitCharacter))}getBaseUnit(r){return this.width/this.getBaseWidth(r)}getBaseWidth(r){return this.quietZoneLength+3*(r+2)*(this.dataLength+2)+this.gapWidth*(this.dataLength+1)}addStart(){this.addPattern(this.characterMap.START.pattern),this.addCharacterGap()}addBase(r){this.addPattern(r.pattern),this.addCharacterGap()}addStop(){this.addPattern(this.characterMap.START.pattern)}addPattern(r){for(let c=0;c<r.length;c++)this.patternString+=this.patternMappings[r.charAt(c)]}addCharacterGap(){this.patternString+=this.gapWidth+this.splitCharacter}}ms(A0,{addCheckSum:!1});const y1={addCharacter(ve){this.characterMap[ve]?this.addBase(this.characterMap[ve]):ve.charCodeAt(0)>127?this.invalidCharacterError(ve):this.addExtended(ve.charCodeAt(0))},addExtended(ve){let r;for(let c=0;c<this.extendedMappings.length;c++)if(r=this.extendedMappings[c].call(this,ve),r){for(let m=0;m<r.length;m++)this.addBase(r[m]);return void(this.dataLength+=r.length-1)}},extendedMappings:[function(ve){if(97<=ve&&ve<=122)return[this.characterMap[this.shiftCharacters[0]],this.characterMap[String.fromCharCode(ve-32)]]},function(ve){if(33<=ve&&ve<=58)return[this.characterMap[this.shiftCharacters[1]],this.characterMap[String.fromCharCode(ve+32)]]},function(ve){if(1<=ve&&ve<=26)return[this.characterMap[this.shiftCharacters[2]],this.characterMap[String.fromCharCode(ve+64)]]},function(ve){let r,c;if(this.specialAsciiCodes[ve]){r=[];for(let m=0;m<this.specialAsciiCodes[ve].length;m++)r.push(this.characterMap[this.shiftCharacters[3]]),r.push(this.characterMap[this.specialAsciiCodes[ve][m]])}else c=6*Math.floor(ve/32)+(ve-27)%32+64,r=[this.characterMap[this.shiftCharacters[3]],this.characterMap[String.fromCharCode(c)]];return r}],specialAsciiCodes:{0:["U"],64:["V"],96:["W"],127:["T","X","Y","Z"]},shiftValuesAsciiCodes:{39:36,40:47,41:43,42:37},characterMap:{"+":!1,"/":!1,$:!1,"%":!1},shiftCharacters:["SHIFT0","SHIFT1","SHIFT2","SHIFT3"]},ob=Object.assign;class by extends v1{initProperties(){super.initProperties(),ob(this,{name:"Code 93",cCheckSumTotal:20,kCheckSumTotal:15,checkSumMod:47,characterMap:{0:{pattern:"131112",value:0},1:{pattern:"111213",value:1},2:{pattern:"111312",value:2},3:{pattern:"111411",value:3},4:{pattern:"121113",value:4},5:{pattern:"121212",value:5},6:{pattern:"121311",value:6},7:{pattern:"111114",value:7},8:{pattern:"131211",value:8},9:{pattern:"141111",value:9},A:{pattern:"211113",value:10},B:{pattern:"211212",value:11},C:{pattern:"211311",value:12},D:{pattern:"221112",value:13},E:{pattern:"221211",value:14},F:{pattern:"231111",value:15},G:{pattern:"112113",value:16},H:{pattern:"112212",value:17},I:{pattern:"112311",value:18},J:{pattern:"122112",value:19},K:{pattern:"132111",value:20},L:{pattern:"111123",value:21},M:{pattern:"111222",value:22},N:{pattern:"111321",value:23},O:{pattern:"121122",value:24},P:{pattern:"131121",value:25},Q:{pattern:"212112",value:26},R:{pattern:"212211",value:27},S:{pattern:"211122",value:28},T:{pattern:"211221",value:29},U:{pattern:"221121",value:30},V:{pattern:"222111",value:31},W:{pattern:"112122",value:32},X:{pattern:"112221",value:33},Y:{pattern:"122121",value:34},Z:{pattern:"123111",value:35},"-":{pattern:"121131",value:36},".":{pattern:"311112",value:37}," ":{pattern:"311211",value:38},$:{pattern:"321111",value:39},"/":{pattern:"112131",value:40},"+":{pattern:"113121",value:41},"%":{pattern:"211131",value:42},SHIFT0:{pattern:"122211",value:46},SHIFT1:{pattern:"311121",value:45},SHIFT2:{pattern:"121221",value:43},SHIFT3:{pattern:"312111",value:44},START:{pattern:"111141"},TERMINATION_BAR:"1"}})}initValue(r,c,m){this.value=r,this.width=c,this.height=m,this.pattern=[],this.values=[],this.dataLength=r.length}prepareValues(){let r=Math.ceil(Math.max(.15*this.width,24));if(this.height<r)throw new Error(`Insufficient height for Code93 encoding: the current height is ${this.height}px, the minimum required height is ${r}px.`);if(this.setBaseUnit(),this.baseUnit<this.minBaseUnitLength){const c=Math.ceil(this.minBaseUnitLength*(this.width/this.baseUnit));throw new Error(`Insufficient width for Code93 encoding: the current width is ${this.width}px and the minimum required width for value "${this.value}" is ${c}px.`)}}setBaseUnit(){this.baseUnit=this.width/(9*(this.dataLength+2+2)+this.quietZoneLength+1)}addStart(){this.addPattern(this.characterMap.START.pattern)}addStop(){this.addStart(),this.pattern.push(this.characterMap.TERMINATION_BAR)}addBase(r){this.addPattern(r.pattern),this.values.push(r.value)}pushCheckSum(){const r=this._getCheckValues();let c;this.checksum=r.join("");for(let m=0;m<r.length;m++)c=this.characterMap[this._findCharacterByValue(r[m])],this.addPattern(c.pattern)}_getCheckValues(){const r=this.values,c=r.length;let Z,le,Re,m=0;for(Re=c-1;Re>=0;Re--)m+=this.weightedValue(r[Re],c-Re,this.cCheckSumTotal);for(Z=m%this.checkSumMod,m=this.weightedValue(Z,1,this.kCheckSumTotal),Re=c-1;Re>=0;Re--)m+=this.weightedValue(r[Re],c-Re+1,this.kCheckSumTotal);return le=m%this.checkSumMod,[Z,le]}_findCharacterByValue(r){for(let c in this.characterMap)if(this.characterMap[c].value===r)return c}weightedValue(r,c,m){return(c%m||m)*r}addPattern(r){let c;for(let m=0;m<r.length;m++)c=parseInt(r.charAt(m),10),this.pattern.push(c)}}const sb=/^\d+$/,Cy=Object.assign,J1=/^\d+$/,ab=/^[a-z0-9]+$/i,O_=Object.assign;class C1 extends jo.Z{constructor(r){super(),this.encoding=r,this.initProperties()}initProperties(){}addStart(){}is(){}isCode(){return!1}move(){}pushState(){}}class Sy extends C1{constructor(r,c){super(r),this.states=c,this._initMoves(c)}initProperties(){super.initProperties(),sn(this,{FNC4:"FNC4",SHIFT:98})}addStart(){this.encoding.addPattern(this.START)}is(r,c){let m=r.charCodeAt(c);return this.isCode(m)}move(r){let c=0;for(;!this._moves[c].call(this,r)&&c<this._moves.length;)c++}pushState(r){let le,m=r.value,Z=m.length;if(It("C",this.states)){let Re=m.substr(r.index).match(/\d{4,}/g);Re&&(Z=m.indexOf(Re[0],r.index))}for(;(le=r.value.charCodeAt(r.index))>=0&&this.isCode(le)&&r.index<Z;)this.encoding.addPattern(this.getValue(le)),r.index++}_initMoves(r){this._moves=[],It(this.FNC4,r)&&this._moves.push(this._moveFNC),It(this.shiftKey,r)&&this._moves.push(this._shiftState),this._moves.push(this._moveState)}_moveFNC(r){if(r.fnc)return r.fnc=!1,r.previousState===this.key}_shiftState(r){if(r.previousState===this.shiftKey&&(r.index+1>=r.value.length||this.encoding[this.shiftKey].is(r.value,r.index+1)))return this.encoding.addPattern(this.SHIFT),r.shifted=!0,!0}_moveState(){return this.encoding.addPattern(this.MOVE),!0}}const Qv={};Qv.A=class extends Sy{initProperties(){super.initProperties(),O_(this,{key:"A",shiftKey:"B",MOVE:101,START:103})}isCode(r){return 0<=r&&r<96}getValue(r){return r<32?r+64:r-32}},Qv.B=class extends Sy{initProperties(){super.initProperties(),O_(this,{key:"B",shiftKey:"A",MOVE:100,START:104})}isCode(r){return 32<=r&&r<128}getValue(r){return r-32}},Qv.C=class extends C1{initProperties(){super.initProperties(),O_(this,{key:"C",MOVE:99,START:105})}addStart(){this.encoding.addPattern(this.START)}is(r,c){let m=wy(r,c,4);return(c+4<=r.length||2===r.length)&&J1.test(m)}move(){this.encoding.addPattern(this.MOVE)}pushState(r){let c;for(;(c=wy(r.value,r.index,2))&&J1.test(c)&&2===c.length;)this.encoding.addPattern(parseInt(c,10)),r.index+=2}getValue(r){return r}},Qv.FNC4=class extends C1{constructor(r,c){super(r),this._initSubStates(c)}initProperties(){super.initProperties(),O_(this,{key:"FNC4",dependentStates:["A","B"]})}addStart(r){let c=r.value.charCodeAt(0)-128,m=this._getSubState(c);this.encoding[m].addStart()}is(r,c){let m=r.charCodeAt(c);return this.isCode(m)}isCode(r){return 128<=r&&r<256}pushState(r){let le,c=this._initSubState(r),m=this.encoding,Z=c.value.length;if(r.index+=Z,Z<3)for(;c.index<Z;c.index++)le=c.value.charCodeAt(c.index),c.state=this._getSubState(le),c.previousState!==c.state&&(c.previousState=c.state,m[c.state].move(c)),m.addPattern(m[c.state].MOVE),m.addPattern(m[c.state].getValue(le));else c.state!==c.previousState&&m[c.state].move(c),this._pushStart(c),m.pushData(c,this.subStates),r.index<r.value.length&&this._pushStart(c);r.fnc=!0,r.state=c.state}_pushStart(r){this.encoding.addPattern(this.encoding[r.state].MOVE),this.encoding.addPattern(this.encoding[r.state].MOVE)}_initSubState(r){const c={value:this._getAll(r.value,r.index),index:0};return c.state=this._getSubState(c.value.charCodeAt(0)),c.previousState=r.previousState===this.key?c.state:r.previousState,c}_initSubStates(r){this.subStates=[];for(let c=0;c<r.length;c++)It(r[c],this.dependentStates)&&this.subStates.push(r[c])}_getSubState(r){for(let c=0;c<this.subStates.length;c++)if(this.encoding[this.subStates[c]].isCode(r))return this.subStates[c]}_getAll(r,c){let m,Z="",le=c;for(;(m=r.charCodeAt(le++))&&this.isCode(m);)Z+=String.fromCharCode(m-128);return Z}},Qv.FNC1=class extends C1{constructor(r,c){super(r),this.states=c}initProperties(){super.initProperties(),O_(this,{key:"FNC1",startState:"C",startAI:"(",endAI:")",dependentStates:["C","B"],applicationIdentifiers:{22:{max:29,type:"alphanumeric"},402:{length:17},7004:{max:4,type:"alphanumeric"},242:{max:6,type:"alphanumeric"},8020:{max:25,type:"alphanumeric"},703:{min:3,max:30,type:"alphanumeric"},8008:{min:8,max:12,type:"alphanumeric"},253:{min:13,max:17,type:"alphanumeric"},8003:{min:14,max:30,type:"alphanumeric"},multiKey:[{ids:["15","17","8005","8100"],ranges:[[11,13],[310,316],[320,336],[340,369]],type:{length:6}},{ids:["240","241","250","251","400","401","403","7002","8004","8007","8110"],ranges:[[-9]],type:{max:30,type:"alphanumeric"}},{ids:["7001"],ranges:[[410,414]],type:{length:13}},{ids:["10","21","254","420","8002"],type:{max:20,type:"alphanumeric"}},{ids:["00","8006","8017","8018"],type:{length:18}},{ids:["01","02","8001"],type:{length:14}},{ids:["422"],ranges:[[424,426]],type:{length:3}},{ids:["20","8102"],type:{length:2}},{ids:["30","37"],type:{max:8,type:"alphanumeric"}},{ids:["390","392"],type:{max:15,type:"alphanumeric"}},{ids:["421","423"],type:{min:3,max:15,type:"alphanumeric"}},{ids:["391","393"],type:{min:3,max:18,type:"alphanumeric"}},{ids:["7003","8101"],type:{length:10}}]},START:102})}addStart(){this.encoding[this.startState].addStart()}is(){return It(this.key,this.states)}pushState(r){let gt,hn,di,c=this.encoding,m=r.value.replace(/\s/g,""),Z=new RegExp("["+this.startAI+this.endAI+"]","g"),le=r.index,Re={state:this.startState};for(c.addPattern(this.START);;){if(Re.index=0,di=m.charAt(le)===this.startAI?2:0,gt=di>0?this.getBySeparator(m,le):this.getByLength(m,le),gt.ai.length)hn=le+di+gt.id.length+gt.ai.length;else if(hn=m.indexOf(this.startAI,le+1),hn<0){if(le+gt.ai.max+gt.id.length+di<m.length)throw new Error("Separators are required after variable length identifiers");hn=m.length}if(Re.value=m.substring(le,hn).replace(Z,""),this.validate(gt,Re.value),c.pushData(Re,this.dependentStates),hn>=m.length)break;le=hn,Re.state!==this.startState&&(c[this.startState].move(Re),Re.state=this.startState),gt.ai.length||c.addPattern(this.START)}r.index=r.value.length}validate(r,c){let m=c.substr(r.id.length),Z=r.ai;if(!Z.type&&!J1.test(m))throw new Error("Application identifier "+r.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"===Z.type&&!ab.test(m))throw new Error("Application identifier "+r.id+" is alphanumeric only but contains non alphanumeric character(s).");if(Z.length&&Z.length!==m.length)throw new Error("Application identifier "+r.id+" must be "+Z.length+" characters long.");if(Z.min&&Z.min>m.length)throw new Error("Application identifier "+r.id+" must be at least "+Z.min+" characters long.");if(Z.max&&Z.max<m.length)throw new Error("Application identifier "+r.id+" must be at most "+Z.max+" characters long.")}getByLength(r,c){let m,Z;for(let le=2;le<=4;le++)if(m=wy(r,c,le),Z=this.getApplicationIdentifier(m)||this.getApplicationIdentifier(m.substring(0,m.length-1)),Z)return{id:m,ai:Z};this.unsupportedAIError(m)}unsupportedAIError(r){throw new Error("'"+r+"' is not a supported Application Identifier")}getBySeparator(r,c){let m=r.indexOf(this.startAI,c),Z=r.indexOf(this.endAI,m),le=r.substring(m+1,Z),Re=this.getApplicationIdentifier(le)||this.getApplicationIdentifier(le.substr(le.length-1));return Re||this.unsupportedAIError(le),{ai:Re,id:le}}getApplicationIdentifier(r){let c=this.applicationIdentifiers,m=c.multiKey;if(c[r])return c[r];for(let Z=0;Z<m.length;Z++){if(m[Z].ids&&It(r,m[Z].ids))return m[Z].type;if(m[Z].ranges){let le=m[Z].ranges;for(let Re=0;Re<le.length;Re++)if(le[Re][0]<=r&&r<=le[Re][1])return m[Z].type}}}};class O0 extends H_{constructor(r){super(r),this._initStates()}initProperties(){super.initProperties(),O_(this,{characterMap:[212222,222122,222221,121223,121322,131222,122213,122312,132212,221213,221312,231212,112232,122132,122231,113222,123122,123221,223211,221132,221231,213212,223112,312131,311222,321122,321221,312212,322112,322211,212123,212321,232121,111323,131123,131321,112313,132113,132311,211313,231113,231311,112133,112331,132131,113123,113321,133121,313121,211331,231131,213113,213311,213131,311123,311321,331121,312113,312311,332111,314111,221411,431111,111224,111422,121124,121421,141122,141221,112214,112412,122114,122411,142112,142211,241211,221114,413111,241112,134111,111242,121142,121241,114212,124112,124211,411212,421112,421211,212141,214121,412121,111143,111341,131141,114113,114311,411113,411311,113141,114131,311141,411131,211412,211214,211232,2331112],STOP:106})}_initStates(){for(let r=0;r<this.states.length;r++)this[this.states[r]]=new Qv[this.states[r]](this,this.states)}initValue(r,c,m){this.pattern=[],this.value=r,this.width=c,this.height=m,this.checkSum=0,this.totalUnits=0,this.index=0,this.position=1}addData(){let r={value:this.value,index:0,state:""};0!==this.value.length&&(r.state=r.previousState=this.getNextState(r,this.states),this.addStart(r),this.pushData(r,this.states),this.addCheckSum(),this.addStop(),this.setBaseUnit())}pushData(r,c){for(;this[r.state].pushState(r),!(r.index>=r.value.length);)if(r.shifted){let Z=r.state;r.state=r.previousState,r.previousState=Z,r.shifted=!1}else r.previousState=r.state,r.state=this.getNextState(r,c),this[r.state].move(r)}addStart(r){this[r.state].addStart(r),this.position=1}addCheckSum(){this.checksum=this.checkSum%103,this.addPattern(this.checksum)}addStop(){this.addPattern(this.STOP)}setBaseUnit(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)}addPattern(r){const c=this.characterMap[r].toString();let m;for(let Z=0;Z<c.length;Z++)m=parseInt(c.charAt(Z),10),this.pattern.push(m),this.totalUnits+=m;this.checkSum+=r*this.position++}getNextState(r,c){for(let m=0;m<c.length;m++)if(this[c[m]].is(r.value,r.index))return c[m];this.invalidCharacterError(r.value.charAt(r.index))}}function wy(ve,r,c){return ve.substring(r,r+c)}const x1=Object.assign;class $1 extends H_{initProperties(){super.initProperties(),x1(this,{characterMap:["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221"],START:"21",STOP:"121",checkSumType:"",checkSums:Ey})}initValue(r,c){this.pattern=[],this.value=r,this.checkSumLength=0,this.width=c}setBaseUnit(){this.baseUnit=this.width/(12*(this.value.length+this.checkSumLength)+this.quietZoneLength+7)}addData(){const r=this.value;this.addPattern(this.START);for(let c=0;c<r.length;c++)this.addCharacter(r.charAt(c));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.STOP),this.setBaseUnit()}addCharacter(r){const c=this.characterMap[r];c||this.invalidCharacterError(r),this.addPattern(c)}addPattern(r){for(let c=0;c<r.length;c++)this.pattern.push(parseInt(r.charAt(c),10))}addCheckSum(){const c=this.checkSums[this.checkSumType].call(this.checkSums,this.value);this.checksum=c.join("");for(let m=0;m<c.length;m++)this.checkSumLength++,this.addPattern(this.characterMap[c[m]])}}const Ey={Modulo10(ve){let m,Z,le,r=[0,""],c=ve.length%2;for(m=0;m<ve.length;m++)r[(m+c)%2]+=parseInt(ve.charAt(m),10);for(le=r[0],Z=(2*r[1]).toString(),m=0;m<Z.length;m++)le+=parseInt(Z.charAt(m),10);return[(10-le%10)%10]},Modulo11(ve){let Z,le,r=0,m=ve.length;for(let Re=0;Re<m;Re++)Z=((m-Re)%6||6)+1,r+=Z*ve.charAt(Re);return le=(11-r%11)%11,10!==le?[le]:[1,0]},Modulo11Modulo10(ve){let c,r=this.Modulo11(ve);return c=ve+r[0],r.concat(this.Modulo10(c))},Modulo10Modulo10(ve){let c,r=this.Modulo10(ve);return c=ve+r[0],r.concat(this.Modulo10(c))}},h2=Object.assign;class fb extends H_{initProperties(){super.initProperties(),h2(this,{name:"EAN 13",keyTable:["000000","001011","001101","001110","010011","011001","011100","010101","010110","011010"],characterMap:{digits:[[3,2,1,1],[2,2,2,1],[2,1,2,2],[1,4,1,1],[1,1,3,2],[1,2,3,1],[1,1,1,4],[1,3,1,2],[1,2,1,3],[3,1,1,2]],start:[1,1,1],middle:[1,1,1,1,1]}})}initValue(r,c,m){const Z=String(r);if(12!==Z.length||/\D/.test(Z))throw new Error('The value of the "EAN13" encoding should be 12 symbols');this.pattern=[],this.options.height=m,this.baseUnit=c/(95+this.quietZoneLength),this.value=Z,this.checksum=this.calculateChecksum(),this.leftKey=Z[0],this.leftPart=Z.substr(1,6),this.rightPart=Z.substr(7)+this.checksum}addData(){this.addPieces(this.characterMap.start),this.addSide(this.leftPart,this.leftKey),this.addPieces(this.characterMap.middle),this.addSide(this.rightPart),this.addPieces(this.characterMap.start)}addSide(r,c){for(let m=0;m<r.length;m++)c&&parseInt(this.keyTable[c].charAt(m),10)?this.addPieces(Array.prototype.slice.call(this.characterMap.digits[r.charAt(m)]).reverse(),!0):this.addPieces(this.characterMap.digits[r.charAt(m)],!0)}addPieces(r,c){for(let m=0;m<r.length;m++)this.pattern.push(c?{y1:0,y2:.95*this.options.height,width:r[m]}:r[m])}calculateChecksum(){let r=0,c=0,m=this.value.split("").reverse().join("");for(let le=0;le<m.length;le++)le%2?c+=parseInt(m.charAt(le),10):r+=parseInt(m.charAt(le),10);return(10-(3*r+c)%10)%10}}const f2=Object.assign,Q1={code11:I0,code39:A0,code39extended:class b1 extends A0{initProperties(){super.initProperties(),sn(this,y1,{name:"Code 39 extended",characterMap:{SHIFT0:{pattern:"bWbwbWbWb",value:41},SHIFT1:{pattern:"bWbWbwbWb",value:40},SHIFT2:{pattern:"bWbWbWbwb",value:39},SHIFT3:{pattern:"bwbWbWbWb",value:42}}})}},code93:by,code93extended:class rb extends by{initProperties(){super.initProperties(),sn(this,y1,{name:"Code 93 extended",pushCheckSum:function(){const r=this._getCheckValues();let c;this.checksum=r.join("");for(let m=0;m<r.length;m++)if(c=r[m],this.shiftValuesAsciiCodes[c])this.addExtended(this.shiftValuesAsciiCodes[c]);else{const Z=this._findCharacterByValue(c);this.addPattern(this.characterMap[Z].pattern)}}})}},code128:class d2 extends O0{initProperties(){super.initProperties(),O_(this,{name:"Code 128",states:["C","B","A","FNC4"]})}},code128a:class lb extends O0{initProperties(){super.initProperties(),O_(this,{name:"Code 128 A",states:["A"]})}},code128b:class l2 extends O0{initProperties(){super.initProperties(),O_(this,{name:"Code 128 B",states:["B"]})}},code128c:class c2 extends O0{initProperties(){super.initProperties(),O_(this,{name:"Code 128 C",states:["C"]})}},"gs1-128":class u2 extends O0{initProperties(){super.initProperties(),O_(this,{name:"Code GS1-128",states:["FNC1","C","B"]})}},msimod10:class cb extends $1{initProperties(){super.initProperties(),x1(this,{name:"MSI Modulo10",checkSumType:"Modulo10"})}},msimod11:class db extends $1{initProperties(){super.initProperties(),x1(this,{name:"MSI Modulo11",checkSumType:"Modulo11"})}},msimod1010:class ub extends $1{initProperties(){super.initProperties(),x1(this,{name:"MSI Modulo10 Modulo10",checkSumType:"Modulo10Modulo10"})}},msimod1110:class hb extends $1{initProperties(){super.initProperties(),x1(this,{name:"MSI Modulo11 Modulo10",checkSumType:"Modulo11Modulo10"})}},postnet:class xy extends H_{initProperties(){super.initProperties(),Cy(this,{name:"Postnet",START:"2",VALID_CODE_LENGTHS:[5,9,11],DIGIT_SEPARATOR:"-",characterMap:["22111","11122","11212","11221","12112","12121","12211","21112","21121","21211"]})}initValue(r,c,m){this.height=m,this.width=c,this.baseHeight=m/2,this.value=r.replace(new RegExp(this.DIGIT_SEPARATOR,"g"),""),this.pattern=[],this.validate(this.value),this.checkSum=0,this.setBaseUnit()}addData(){const r=this.value;this.addPattern(this.START);for(let c=0;c<r.length;c++)this.addCharacter(r.charAt(c));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.START),this.pattern.pop()}addCharacter(r){const c=this.characterMap[r];this.checkSum+=parseInt(r,10),this.addPattern(c)}addCheckSum(){this.checksum=(10-this.checkSum%10)%10,this.addCharacter(this.checksum)}setBaseUnit(){this.baseUnit=this.width/(10*(this.value.length+1)+3+this.quietZoneLength)}validate(r){if(sb.test(r)||this.invalidCharacterError(r.match(/[^0-9]/)[0]),!It(r.length,this.VALID_CODE_LENGTHS))throw new Error("Invalid value length. Valid lengths for the Postnet symbology are "+this.VALID_CODE_LENGTHS.join(",")+".")}addPattern(r){let c;for(let m=0;m<r.length;m++)c=this.height-this.baseHeight*r.charAt(m),this.pattern.push({width:1,y1:c,y2:this.height}),this.pattern.push(1)}},ean8:class p2 extends fb{initProperties(){super.initProperties(),f2(this,{name:"EAN 8"})}initValue(r,c,m){if(7!==r.length||/\D/.test(r))throw new Error("Invalid value provided");this.value=r,this.options.height=m,this.checksum=this.calculateChecksum(this.value),this.leftPart=this.value.substr(0,4),this.rightPart=this.value.substr(4)+this.checksum,this.pattern=[],this.baseUnit=c/(67+this.quietZoneLength)}},ean13:fb};function B(ve,r){const c=ve.style.display;"canvas"===r&&(ve.style.display="block");const m={width:ve.clientWidth,height:ve.clientHeight};return ve.style.display=c,m}ms(class W extends jo.Z{constructor(r,c,m=qo){super(),this.options=sn({},this.options,c),this.element=r,this.onError=m,this._initElement(),this._initSurface(),this._setOptions(c),c&&Bi(c.value)&&this.redraw()}destroy(){this._destroySurface()}_initElement(){fe(this.element,"k-barcode")}_initSurface(){const{options:r,surface:c}=this;(!c||c.options.type!==r.renderAs)&&(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())}_createSurface(){return zo.create(this.surfaceElement,{type:this.options.renderAs})}_destroySurface(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())}_initSurfaceElement(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))}_destroySurfaceElement(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)}setOptions(r){this._setOptions(r),this._initSurface(),this.redraw()}redraw(){let r=this._getSize();this.surface.clear(),this.surface.setSize({width:r.width,height:r.height}),this.createVisual(),this.surface.draw(this.visual)}getSize(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}}_resize(){this.redraw()}createVisual(){this.visual=this._render()}_render(){const r=this.options,c=r.value,m=r.text,Z=Eo(m.margin),le=this._getSize(),Re=r.border||{},gt=this.encoding,hn=new Ar(0,0,le.width,le.height).unpad(Re.width).unpad(r.padding);let no,Mo,ir,di=hn.height();const Wr=new ht.Z;this.contentBox=hn,Wr.append(this._getBackground(le)),m.visible&&(ir=Dn.Z(c,{font:m.font}).height,di-=ir+Z.top+Z.bottom);try{no=gt.encode(c,hn.width(),di)}catch(Qr){return this.onError(Qr),Wr}return m.visible&&(Mo=c,r.checksum&&Bi(gt.checksum)&&(Mo+=" "+gt.checksum),Wr.append(this._getText(Mo))),this.barHeight=di,this._bandsGroup=this._getBands(no.pattern,no.baseUnit),Wr.append(this._bandsGroup),Wr}exportVisual(){return this._render()}_getSize(){const c=B(this.element,this.options.renderAs),m=new lf.Z(300,100);return c.width>0&&(m.width=c.width),c.height>0&&(m.height=c.height),this.options.width&&(m.width=this.options.width),this.options.height&&(m.height=this.options.height),m}value(r){if(!Bi(r))return this.options.value;this.options.value=String(r),this.redraw()}_getBands(r,c){const m=this.contentBox;let le,Re,Z=m.x1;const gt=new ht.Z;for(let hn=0;hn<r.length;hn++){if(Re=fn(r[hn])?r[hn]:{width:r[hn],y1:0,y2:this.barHeight},le=Re.width*c,hn%2){const di=Ss.Z.fromPoints(new ls.Z(Z,Re.y1+m.y1),new ls.Z(Z+le,Re.y2+m.y1)),no=Js.y.fromRect(di,{fill:{color:this.options.color},stroke:null});gt.append(no)}Z+=le}return gt}_getBackground(r){const c=this.options,m=c.border||{},Z=new Ar(0,0,r.width,r.height).unpad(m.width/2);return Js.y.fromRect(Z.toRect(),{fill:{color:c.background},stroke:{color:m.width?m.color:"",width:m.width,dashType:m.dashType}})}_getText(r){const c=this.options.text,m=this._textbox=new ft(r,{font:c.font,color:c.color,align:"center",vAlign:"bottom",margin:c.margin});return m.reflow(this.contentBox),m.renderVisual(),m.visual}_setOptions(r){if(this.type=(r.type||this.options.type).toLowerCase(),"upca"===this.type&&(this.type="ean13",r.value="0"+r.value),"upce"===this.type&&(this.type="ean8",r.value="0"+r.value),!Q1[this.type])throw new Error(`Encoding '${this.type}' is not supported.`);this.encoding=new Q1[this.type],this.options=sn({},this.options,r)}},{name:"Barcode",renderAs:"svg",value:"",type:"code39",checksum:!1,width:0,height:0,color:"black",background:"white",text:{visible:!0,font:"16px Consolas, Monaco, Sans Mono, monospace, sans-serif",color:"black",margin:{top:0,bottom:0,left:0,right:0}},border:{width:0,dashType:"solid",color:"black"},padding:{top:0,bottom:0,left:0,right:0}});var bi=i(19608);const qi=Object.assign;function Oo(ve,r){let c=[],m=0;for(;m<ve.length;)c.push(ve.substring(m,m+r)),m+=r;return c}function rr(ve,r){let c=Number(ve).toString(2);return c.length<r&&(c=new Array(r-c.length+1).join(0)+c),c}function fr(ve){return parseInt(ve,2)}class Gr extends jo.Z{constructor(r){super(),this.matrix=r,this.row=r.length-1,this.column=r.length-1,this.startColumn=this.column,this.dir=-1,this.c=0}move(){this.row+=this.dir*this.c,this.c^=1,this.column=this.startColumn-this.c}getNextCell(){for(;void 0!==this.matrix[this.row][this.column];)this.move(),(this.row<0||this.row>=this.matrix.length)&&(this.dir=-this.dir,this.startColumn-=8!==this.startColumn?2:3,this.column=this.startColumn,this.row=this.dir<0?this.matrix.length-1:0);return{row:this.row,column:this.column}}getNextRemainderCell(){if(this.move(),void 0===this.matrix[this.row][this.column])return{row:this.row,column:this.column}}}class As extends jo.Z{constructor(r,c){super(),this.dataString=r,this.version=c}}class ka extends jo.Z{getEncodingResult(r,c){let m=function kS(ve){let c,r=[],m=0,Z=ve;for(r.push(y2(Z,yb,bb,m2,c)),c=r[0].mode,Z=Z.substr(r[0].modeString.length);Z.length>0;){let le=y2(Z,g2,_2,v2,c);le.mode!==c?(c=le.mode,r.push(le),m++):r[m].modeString+=le.modeString,Z=Z.substr(le.modeString.length)}return r}(r),Z=function IS(ve){let c,r=0;for(let m=0;m<ve.length;m++)c=vc[ve[m].mode],r+=c.getStringBitsLength(ve[m].modeString.length);return Math.ceil(r/8)}(m),le=ny(Z,c),Re=function AS(ve,r){let m,c="";for(let Z=0;Z<ve.length;Z++)m=vc[ve[Z].mode],c+=m.encode(ve[Z].modeString,r);return c}(m,le);return new As(Re,le)}}class hl extends jo.Z{constructor(){super(),this.initProperties()}initProperties(){qi(this,{modeIndicator:"",bitsInCharacterCount:[]})}getVersionIndex(r){return r<10?0:r>26?2:1}getBitsCharacterCount(r){return this.bitsInCharacterCount[this.getVersionIndex(r||40)]}getModeCountString(r,c){return this.modeIndicator+rr(r,this.getBitsCharacterCount(c))}encode(){}getStringBitsLength(){}getValue(){}}let vc={numeric:new class Ul extends hl{initProperties(){super.initProperties(),qi(this,{bitsInCharacterCount:[10,12,14],modeIndicator:"0001"})}getValue(r){return parseInt(r,10)}encode(r,c){let Re,Z=Oo(r,3),le=this.getModeCountString(r.length,c);for(Re=0;Re<Z.length-1;Re++)le+=rr(Z[Re],10);return le+rr(Z[Re],1+3*Z[Re].length)}getStringBitsLength(r,c){let m=r%3;return 4+this.getBitsCharacterCount(c)+10*Math.floor(r/3)+3*m+(0===m?0:1)}},alphanumeric:new class Dl extends hl{initProperties(){super.initProperties(),qi(this,{characters:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:18,J:19,K:20,L:21,M:22,N:23,O:24,P:25,Q:26,R:27,S:28,T:29,U:30,V:31,W:32,X:33,Y:34,Z:35," ":36,$:37,"%":38,"*":39,"+":40,"-":41,".":42,"/":43,":":44},bitsInCharacterCount:[9,11,13],modeIndicator:"0010"})}getValue(r){return this.characters[r]}encode(r,c){let le,Re,m=Oo(r,2),Z=this.getModeCountString(r.length,c);for(Re=0;Re<m.length-1;Re++)le=45*this.getValue(m[Re].charAt(0))+this.getValue(m[Re].charAt(1)),Z+=rr(le,11);return le=2===m[Re].length?45*this.getValue(m[Re].charAt(0))+this.getValue(m[Re].charAt(1)):this.getValue(m[Re].charAt(0)),Z+rr(le,1+5*m[Re].length)}getStringBitsLength(r,c){return 4+this.getBitsCharacterCount(c)+11*Math.floor(r/2)+r%2*6}},byte:new class Yu extends hl{initProperties(){super.initProperties(),qi(this,{bitsInCharacterCount:[8,16,16],modeIndicator:"0100"})}getValue(r){let c=r.charCodeAt(0);if(c<=127||160<=c&&c<=255)return c;throw new Error(`Unsupported character in QR Code: "${r}".`)}encode(r,c){let m=this,Z=m.getModeCountString(r.length,c);for(let le=0;le<r.length;le++)Z+=rr(m.getValue(r.charAt(le)),8);return Z}getStringBitsLength(r,c){return 4+this.getBitsCharacterCount(c)+8*r}}};class Iv extends jo.Z{constructor(){super(),this.initProperties(),this.mode=vc[this.encodingMode]}initProperties(){qi(this,{encodingMode:"byte",utfBOM:"111011111011101110111111",initialModeCountStringLength:20,ranges:[128,2048,65536,2097152,67108864]})}getEncodingResult(r,c){let m=this.encode(r),le=ny(this.getDataCodewordsCount(m),c),Re=this.mode.getModeCountString(m.length/8,le)+m;return new As(Re,le)}getDataCodewordsCount(r){return Math.ceil((this.initialModeCountStringLength+r.length)/8)}encode(r){let c=this.utfBOM;for(let m=0;m<r.length;m++)c+=this.encodeCharacter(r.charCodeAt(m));return c}encodeCharacter(r){let c=this.getBytesCount(r),m=c-1,Z="";if(1===c)Z=rr(r,8);else{let le=8-c;for(let Re=0;Re<m;Re++)Z=rr(r>>6*Re&63|128,8)+Z;Z=(r>>6*m|255>>le<<le).toString(2)+Z}return Z}getBytesCount(r){let c=this.ranges;for(let m=0;m<c.length;m++)if(r<c[m])return m+1}}const fv=[{L:{groups:[[1,19]],totalDataCodewords:19,errorCodewordsPerBlock:7},M:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:10},Q:{groups:[[1,13]],totalDataCodewords:13,errorCodewordsPerBlock:13},H:{groups:[[1,9]],totalDataCodewords:9,errorCodewordsPerBlock:17}},{L:{groups:[[1,34]],totalDataCodewords:34,errorCodewordsPerBlock:10},M:{groups:[[1,28]],totalDataCodewords:28,errorCodewordsPerBlock:16},Q:{groups:[[1,22]],totalDataCodewords:22,errorCodewordsPerBlock:22},H:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:28}},{L:{groups:[[1,55]],totalDataCodewords:55,errorCodewordsPerBlock:15},M:{groups:[[1,44]],totalDataCodewords:44,errorCodewordsPerBlock:26},Q:{groups:[[2,17]],totalDataCodewords:34,errorCodewordsPerBlock:18},H:{groups:[[2,13]],totalDataCodewords:26,errorCodewordsPerBlock:22}},{L:{groups:[[1,80]],totalDataCodewords:80,errorCodewordsPerBlock:20},M:{groups:[[2,32]],totalDataCodewords:64,errorCodewordsPerBlock:18},Q:{groups:[[2,24]],totalDataCodewords:48,errorCodewordsPerBlock:26},H:{groups:[[4,9]],totalDataCodewords:36,errorCodewordsPerBlock:16}},{L:{groups:[[1,108]],totalDataCodewords:108,errorCodewordsPerBlock:26},M:{groups:[[2,43]],totalDataCodewords:86,errorCodewordsPerBlock:24},Q:{groups:[[2,15],[2,16]],totalDataCodewords:62,errorCodewordsPerBlock:18},H:{groups:[[2,11],[2,12]],totalDataCodewords:46,errorCodewordsPerBlock:22}},{L:{groups:[[2,68]],totalDataCodewords:136,errorCodewordsPerBlock:18},M:{groups:[[4,27]],totalDataCodewords:108,errorCodewordsPerBlock:16},Q:{groups:[[4,19]],totalDataCodewords:76,errorCodewordsPerBlock:24},H:{groups:[[4,15]],totalDataCodewords:60,errorCodewordsPerBlock:28}},{L:{groups:[[2,78]],totalDataCodewords:156,errorCodewordsPerBlock:20},M:{groups:[[4,31]],totalDataCodewords:124,errorCodewordsPerBlock:18},Q:{groups:[[2,14],[4,15]],totalDataCodewords:88,errorCodewordsPerBlock:18},H:{groups:[[4,13],[1,14]],totalDataCodewords:66,errorCodewordsPerBlock:26}},{L:{groups:[[2,97]],totalDataCodewords:194,errorCodewordsPerBlock:24},M:{groups:[[2,38],[2,39]],totalDataCodewords:154,errorCodewordsPerBlock:22},Q:{groups:[[4,18],[2,19]],totalDataCodewords:110,errorCodewordsPerBlock:22},H:{groups:[[4,14],[2,15]],totalDataCodewords:86,errorCodewordsPerBlock:26}},{L:{groups:[[2,116]],totalDataCodewords:232,errorCodewordsPerBlock:30},M:{groups:[[3,36],[2,37]],totalDataCodewords:182,errorCodewordsPerBlock:22},Q:{groups:[[4,16],[4,17]],totalDataCodewords:132,errorCodewordsPerBlock:20},H:{groups:[[4,12],[4,13]],totalDataCodewords:100,errorCodewordsPerBlock:24}},{L:{groups:[[2,68],[2,69]],totalDataCodewords:274,errorCodewordsPerBlock:18},M:{groups:[[4,43],[1,44]],totalDataCodewords:216,errorCodewordsPerBlock:26},Q:{groups:[[6,19],[2,20]],totalDataCodewords:154,errorCodewordsPerBlock:24},H:{groups:[[6,15],[2,16]],totalDataCodewords:122,errorCodewordsPerBlock:28}},{L:{groups:[[4,81]],totalDataCodewords:324,errorCodewordsPerBlock:20},M:{groups:[[1,50],[4,51]],totalDataCodewords:254,errorCodewordsPerBlock:30},Q:{groups:[[4,22],[4,23]],totalDataCodewords:180,errorCodewordsPerBlock:28},H:{groups:[[3,12],[8,13]],totalDataCodewords:140,errorCodewordsPerBlock:24}},{L:{groups:[[2,92],[2,93]],totalDataCodewords:370,errorCodewordsPerBlock:24},M:{groups:[[6,36],[2,37]],totalDataCodewords:290,errorCodewordsPerBlock:22},Q:{groups:[[4,20],[6,21]],totalDataCodewords:206,errorCodewordsPerBlock:26},H:{groups:[[7,14],[4,15]],totalDataCodewords:158,errorCodewordsPerBlock:28}},{L:{groups:[[4,107]],totalDataCodewords:428,errorCodewordsPerBlock:26},M:{groups:[[8,37],[1,38]],totalDataCodewords:334,errorCodewordsPerBlock:22},Q:{groups:[[8,20],[4,21]],totalDataCodewords:244,errorCodewordsPerBlock:24},H:{groups:[[12,11],[4,12]],totalDataCodewords:180,errorCodewordsPerBlock:22}},{L:{groups:[[3,115],[1,116]],totalDataCodewords:461,errorCodewordsPerBlock:30},M:{groups:[[4,40],[5,41]],totalDataCodewords:365,errorCodewordsPerBlock:24},Q:{groups:[[11,16],[5,17]],totalDataCodewords:261,errorCodewordsPerBlock:20},H:{groups:[[11,12],[5,13]],totalDataCodewords:197,errorCodewordsPerBlock:24}},{L:{groups:[[5,87],[1,88]],totalDataCodewords:523,errorCodewordsPerBlock:22},M:{groups:[[5,41],[5,42]],totalDataCodewords:415,errorCodewordsPerBlock:24},Q:{groups:[[5,24],[7,25]],totalDataCodewords:295,errorCodewordsPerBlock:30},H:{groups:[[11,12],[7,13]],totalDataCodewords:223,errorCodewordsPerBlock:24}},{L:{groups:[[5,98],[1,99]],totalDataCodewords:589,errorCodewordsPerBlock:24},M:{groups:[[7,45],[3,46]],totalDataCodewords:453,errorCodewordsPerBlock:28},Q:{groups:[[15,19],[2,20]],totalDataCodewords:325,errorCodewordsPerBlock:24},H:{groups:[[3,15],[13,16]],totalDataCodewords:253,errorCodewordsPerBlock:30}},{L:{groups:[[1,107],[5,108]],totalDataCodewords:647,errorCodewordsPerBlock:28},M:{groups:[[10,46],[1,47]],totalDataCodewords:507,errorCodewordsPerBlock:28},Q:{groups:[[1,22],[15,23]],totalDataCodewords:367,errorCodewordsPerBlock:28},H:{groups:[[2,14],[17,15]],totalDataCodewords:283,errorCodewordsPerBlock:28}},{L:{groups:[[5,120],[1,121]],totalDataCodewords:721,errorCodewordsPerBlock:30},M:{groups:[[9,43],[4,44]],totalDataCodewords:563,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[1,23]],totalDataCodewords:397,errorCodewordsPerBlock:28},H:{groups:[[2,14],[19,15]],totalDataCodewords:313,errorCodewordsPerBlock:28}},{L:{groups:[[3,113],[4,114]],totalDataCodewords:795,errorCodewordsPerBlock:28},M:{groups:[[3,44],[11,45]],totalDataCodewords:627,errorCodewordsPerBlock:26},Q:{groups:[[17,21],[4,22]],totalDataCodewords:445,errorCodewordsPerBlock:26},H:{groups:[[9,13],[16,14]],totalDataCodewords:341,errorCodewordsPerBlock:26}},{L:{groups:[[3,107],[5,108]],totalDataCodewords:861,errorCodewordsPerBlock:28},M:{groups:[[3,41],[13,42]],totalDataCodewords:669,errorCodewordsPerBlock:26},Q:{groups:[[15,24],[5,25]],totalDataCodewords:485,errorCodewordsPerBlock:30},H:{groups:[[15,15],[10,16]],totalDataCodewords:385,errorCodewordsPerBlock:28}},{L:{groups:[[4,116],[4,117]],totalDataCodewords:932,errorCodewordsPerBlock:28},M:{groups:[[17,42]],totalDataCodewords:714,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[6,23]],totalDataCodewords:512,errorCodewordsPerBlock:28},H:{groups:[[19,16],[6,17]],totalDataCodewords:406,errorCodewordsPerBlock:30}},{L:{groups:[[2,111],[7,112]],totalDataCodewords:1006,errorCodewordsPerBlock:28},M:{groups:[[17,46]],totalDataCodewords:782,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[16,25]],totalDataCodewords:568,errorCodewordsPerBlock:30},H:{groups:[[34,13]],totalDataCodewords:442,errorCodewordsPerBlock:24}},{L:{groups:[[4,121],[5,122]],totalDataCodewords:1094,errorCodewordsPerBlock:30},M:{groups:[[4,47],[14,48]],totalDataCodewords:860,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[14,25]],totalDataCodewords:614,errorCodewordsPerBlock:30},H:{groups:[[16,15],[14,16]],totalDataCodewords:464,errorCodewordsPerBlock:30}},{L:{groups:[[6,117],[4,118]],totalDataCodewords:1174,errorCodewordsPerBlock:30},M:{groups:[[6,45],[14,46]],totalDataCodewords:914,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[16,25]],totalDataCodewords:664,errorCodewordsPerBlock:30},H:{groups:[[30,16],[2,17]],totalDataCodewords:514,errorCodewordsPerBlock:30}},{L:{groups:[[8,106],[4,107]],totalDataCodewords:1276,errorCodewordsPerBlock:26},M:{groups:[[8,47],[13,48]],totalDataCodewords:1e3,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[22,25]],totalDataCodewords:718,errorCodewordsPerBlock:30},H:{groups:[[22,15],[13,16]],totalDataCodewords:538,errorCodewordsPerBlock:30}},{L:{groups:[[10,114],[2,115]],totalDataCodewords:1370,errorCodewordsPerBlock:28},M:{groups:[[19,46],[4,47]],totalDataCodewords:1062,errorCodewordsPerBlock:28},Q:{groups:[[28,22],[6,23]],totalDataCodewords:754,errorCodewordsPerBlock:28},H:{groups:[[33,16],[4,17]],totalDataCodewords:596,errorCodewordsPerBlock:30}},{L:{groups:[[8,122],[4,123]],totalDataCodewords:1468,errorCodewordsPerBlock:30},M:{groups:[[22,45],[3,46]],totalDataCodewords:1128,errorCodewordsPerBlock:28},Q:{groups:[[8,23],[26,24]],totalDataCodewords:808,errorCodewordsPerBlock:30},H:{groups:[[12,15],[28,16]],totalDataCodewords:628,errorCodewordsPerBlock:30}},{L:{groups:[[3,117],[10,118]],totalDataCodewords:1531,errorCodewordsPerBlock:30},M:{groups:[[3,45],[23,46]],totalDataCodewords:1193,errorCodewordsPerBlock:28},Q:{groups:[[4,24],[31,25]],totalDataCodewords:871,errorCodewordsPerBlock:30},H:{groups:[[11,15],[31,16]],totalDataCodewords:661,errorCodewordsPerBlock:30}},{L:{groups:[[7,116],[7,117]],totalDataCodewords:1631,errorCodewordsPerBlock:30},M:{groups:[[21,45],[7,46]],totalDataCodewords:1267,errorCodewordsPerBlock:28},Q:{groups:[[1,23],[37,24]],totalDataCodewords:911,errorCodewordsPerBlock:30},H:{groups:[[19,15],[26,16]],totalDataCodewords:701,errorCodewordsPerBlock:30}},{L:{groups:[[5,115],[10,116]],totalDataCodewords:1735,errorCodewordsPerBlock:30},M:{groups:[[19,47],[10,48]],totalDataCodewords:1373,errorCodewordsPerBlock:28},Q:{groups:[[15,24],[25,25]],totalDataCodewords:985,errorCodewordsPerBlock:30},H:{groups:[[23,15],[25,16]],totalDataCodewords:745,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[3,116]],totalDataCodewords:1843,errorCodewordsPerBlock:30},M:{groups:[[2,46],[29,47]],totalDataCodewords:1455,errorCodewordsPerBlock:28},Q:{groups:[[42,24],[1,25]],totalDataCodewords:1033,errorCodewordsPerBlock:30},H:{groups:[[23,15],[28,16]],totalDataCodewords:793,errorCodewordsPerBlock:30}},{L:{groups:[[17,115]],totalDataCodewords:1955,errorCodewordsPerBlock:30},M:{groups:[[10,46],[23,47]],totalDataCodewords:1541,errorCodewordsPerBlock:28},Q:{groups:[[10,24],[35,25]],totalDataCodewords:1115,errorCodewordsPerBlock:30},H:{groups:[[19,15],[35,16]],totalDataCodewords:845,errorCodewordsPerBlock:30}},{L:{groups:[[17,115],[1,116]],totalDataCodewords:2071,errorCodewordsPerBlock:30},M:{groups:[[14,46],[21,47]],totalDataCodewords:1631,errorCodewordsPerBlock:28},Q:{groups:[[29,24],[19,25]],totalDataCodewords:1171,errorCodewordsPerBlock:30},H:{groups:[[11,15],[46,16]],totalDataCodewords:901,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[6,116]],totalDataCodewords:2191,errorCodewordsPerBlock:30},M:{groups:[[14,46],[23,47]],totalDataCodewords:1725,errorCodewordsPerBlock:28},Q:{groups:[[44,24],[7,25]],totalDataCodewords:1231,errorCodewordsPerBlock:30},H:{groups:[[59,16],[1,17]],totalDataCodewords:961,errorCodewordsPerBlock:30}},{L:{groups:[[12,121],[7,122]],totalDataCodewords:2306,errorCodewordsPerBlock:30},M:{groups:[[12,47],[26,48]],totalDataCodewords:1812,errorCodewordsPerBlock:28},Q:{groups:[[39,24],[14,25]],totalDataCodewords:1286,errorCodewordsPerBlock:30},H:{groups:[[22,15],[41,16]],totalDataCodewords:986,errorCodewordsPerBlock:30}},{L:{groups:[[6,121],[14,122]],totalDataCodewords:2434,errorCodewordsPerBlock:30},M:{groups:[[6,47],[34,48]],totalDataCodewords:1914,errorCodewordsPerBlock:28},Q:{groups:[[46,24],[10,25]],totalDataCodewords:1354,errorCodewordsPerBlock:30},H:{groups:[[2,15],[64,16]],totalDataCodewords:1054,errorCodewordsPerBlock:30}},{L:{groups:[[17,122],[4,123]],totalDataCodewords:2566,errorCodewordsPerBlock:30},M:{groups:[[29,46],[14,47]],totalDataCodewords:1992,errorCodewordsPerBlock:28},Q:{groups:[[49,24],[10,25]],totalDataCodewords:1426,errorCodewordsPerBlock:30},H:{groups:[[24,15],[46,16]],totalDataCodewords:1096,errorCodewordsPerBlock:30}},{L:{groups:[[4,122],[18,123]],totalDataCodewords:2702,errorCodewordsPerBlock:30},M:{groups:[[13,46],[32,47]],totalDataCodewords:2102,errorCodewordsPerBlock:28},Q:{groups:[[48,24],[14,25]],totalDataCodewords:1502,errorCodewordsPerBlock:30},H:{groups:[[42,15],[32,16]],totalDataCodewords:1142,errorCodewordsPerBlock:30}},{L:{groups:[[20,117],[4,118]],totalDataCodewords:2812,errorCodewordsPerBlock:30},M:{groups:[[40,47],[7,48]],totalDataCodewords:2216,errorCodewordsPerBlock:28},Q:{groups:[[43,24],[22,25]],totalDataCodewords:1582,errorCodewordsPerBlock:30},H:{groups:[[10,15],[67,16]],totalDataCodewords:1222,errorCodewordsPerBlock:30}},{L:{groups:[[19,118],[6,119]],totalDataCodewords:2956,errorCodewordsPerBlock:30},M:{groups:[[18,47],[31,48]],totalDataCodewords:2334,errorCodewordsPerBlock:28},Q:{groups:[[34,24],[34,25]],totalDataCodewords:1666,errorCodewordsPerBlock:30},H:{groups:[[20,15],[61,16]],totalDataCodewords:1276,errorCodewordsPerBlock:30}}];let pb="numeric",Dy="alphanumeric",P0="byte",X1={1:0},pv={0:1},mb={15:20,16:20,18:24,19:24,22:20,24:22,26:24,28:20,30:20,31:24,32:28,33:24,36:18,37:22,39:20,40:24},Xv=[1,0,1,1,1],My=[1,0,1],ky={L:"01",M:"00",Q:"11",H:"10"},L0=["11101100","00010001"],_b=93,q1=[(ve,r)=>(ve+r)%2==0,(ve,r)=>ve%2==0,(ve,r)=>r%3==0,(ve,r)=>(ve+r)%3==0,(ve,r)=>(Math.floor(ve/2)+Math.floor(r/3))%2==0,(ve,r)=>ve*r%2+ve*r%3==0,(ve,r)=>(ve*r%2+ve*r%3)%2==0,(ve,r)=>((ve+r)%2+ve*r%3)%2==0],vb=/^\d+/,ey="A-Z0-9 $%*+./:-",Oy=new RegExp("^[A-Z $%*+./:-]+"),Py=new RegExp("^["+ey+"]+"),ty=new RegExp("^[^"+ey+"]+"),yb=8,bb=5,m2=8,g2=17,_2=9,v2=16;const lc=[[1,0],[1,25,0]];function lg(ve,r,c,m){for(let Z=0;Z<ve.length;Z++)ve[Z][c][m]=r}function xC(ve,r,c,m){for(let Z=0;Z<q1.length;Z++)ve[Z][c][m]=q1[Z](c,m)?1^r:parseInt(r,10)}function wS(ve,r){let c=[];for(let Z=ve.length-2;Z>=0;Z--)c[Z]=ve[Z]^r[Z];return c}function ES(ve,r){let c=[];for(let m=0;m<ve.length;m++)for(let Z=0;Z<r.length;Z++)c[m+Z]=void 0===c[m+Z]?(ve[m]+(r[Z]>=0?r[Z]:0))%255:X1[pv[c[m+Z]]^pv[(ve[m]+r[Z])%255]];return c}function DS(ve,r){let c=[],m=ve.length-1;do{c[m]=pv[(ve[m]+r)%255],m--}while(void 0!==ve[m]);return c}function oE(ve,r){let gt,hn,c=lc[r-1],m=new Array(r).concat(ve),Z=new Array(m.length-c.length).concat(c),le=ve.length,Re=[];for(hn=0;hn<le;hn++)gt=DS(Z,X1[m[m.length-1]]),Z.splice(0,1),m=wS(gt,m);for(hn=m.length-1;hn>=0;hn--)Re[r-1-hn]=rr(m[hn],8);return Re}function y2(ve,r,c,m,Z){let Mo,ir,le=vb.exec(ve),Re=le?le[0]:"",gt=Oy.exec(ve),hn=gt?gt[0]:"",di=Py.exec(ve),no=di?di[0]:"";return Re&&(Re.length>=r||ve.length===Re.length||Re.length>=c&&!Py.test(ve.charAt(Re.length)))?(Mo=pb,ir=Re):no&&(ve.length===no.length||no.length>=m||Z===Dy)?(Mo=Dy,ir=Re||hn):(Mo=P0,ir=no?no+ty.exec(ve.substring(no.length))[0]:ty.exec(ve)[0]),{mode:Mo,modeString:ir}}function ny(ve,r){let c=0,m=fv.length-1,Z=Math.floor(fv.length/2);do{ve<fv[Z][r].totalDataCodewords?m=Z:c=Z,Z=c+Math.floor((m-c)/2)}while(m-c>1);return ve<=fv[c][r].totalDataCodewords?Z+1:m+1}function EC(ve,r,c){let m=fr(r),Z=r.length-1,le=ve<<Z,gt=rr(ve,c-Z),hn=function TC(ve,r){let c=r.toString(2).length,m=ve.toString(2).length,Z=ve;do{Z^=r<<m-c,m=Z.toString(2).length}while(m>=c);return Z}(le,m);return hn=gt+rr(hn,Z),hn}function Ly(ve,r){return parseInt(ve.charAt(r),10)}function MC(ve,r){let m,Z,c=ve[0],le=0,Re=r.length;for(m=0,Z=8;m<=8;m++)6!==m&&lg(ve,Ly(r,Re-1-le++),m,Z);for(m=8,Z=7;Z>=0;Z--)6!==Z&&lg(ve,Ly(r,Re-1-le++),m,Z);for(le=0,Z=c.length-1,m=8;Z>=c.length-8;Z--)lg(ve,Ly(r,Re-1-le++),m,Z);for(lg(ve,1,c.length-8,8),m=c.length-7,Z=8;m<c.length;m++)lg(ve,Ly(r,Re-1-le++),m,Z)}function kC(ve,r){let hn,di,no,m=ve[0].length,le=m-11,Re=m-11;for(let Mo=0;Mo<r.length;Mo++)hn=Math.floor(Mo/3),di=Mo%3,no=Ly(r,r.length-Mo-1),lg(ve,no,0+hn,le+di),lg(ve,no,Re+di,0+hn)}function Ny(ve,r,c,m){let Re,Z=r.length+2,le=r.length+1;for(let gt=0;gt<r.length;gt++)for(let hn=gt;hn<Z-gt;hn++)Re=r[gt],lg(ve,Re,c+hn,m+gt),lg(ve,Re,c+gt,m+hn),lg(ve,Re,c+le-hn,m+le-gt),lg(ve,Re,c+le-gt,m+le-hn)}function Cb(ve,r,c,m){let Z=c,le=m,Re=ve[0];do{lg(ve,0,Z,m),lg(ve,0,c,le),Z+=r[0],le+=r[1]}while(Z>=0&&Z<Re.length)}function IC(ve,r,c,m,Z){r[ve][m]=(r[ve][m]<<1^Z)%128,r[ve][m]===_b&&(c[ve]+=40)}function x2(ve,r,c,m,Z,le){c[ve][le]===m?Z[ve][le]++:(c[ve][le]=m,Z[ve][le]>=5&&(r[ve]+=3+Z[ve][le]-5),Z[ve][le]=1)}function LS(ve,r){let c=Math.floor(ve/r*100),m=c%5,Z=Math.abs(c-m-50),le=Math.abs(c+5-m-50);return 10*Math.min(Z/5,le/5)}(function Ry(){let ve,r;for(r=1;r<255;r++)ve=2*pv[r-1],ve>255&&(ve^=285),pv[r]=ve,X1[ve]=r;ve=2*pv[r-1]^285,pv[r]=ve,pv[-1]=0})(),function TS(){for(let r=2;r<=68;r++)lc[r]=ES(lc[r-1],[r,0])}();const Fy=Math.round,BS=[[0,1],[1,1],[1,2],[2,2],[2,1],[3,1],[3,0],[2,0],[2,-1],[1,-1],[1,0]],AC=[[0,1],[1,1],[1,0]];ms(class zS extends jo.Z{constructor(r,c,m=qo){super(),this.options=sn({},this.options,c),this.element=r,this.wrapper=this.element,this.onError=m,this._initElement(),this._initSurface(),this.setOptions(c)}destroy(){this._destroySurface()}_initElement(){fe(this.element,"k-qrcode")}_initSurface(){const{options:r,surface:c}=this;(!c||c.options.type!==r.renderAs)&&(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())}_createSurface(){return zo.create(this.surfaceElement,{type:this.options.renderAs})}_destroySurface(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())}_initSurfaceElement(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))}_destroySurfaceElement(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)}redraw(){let r=this._getSize();this.surface.clear(),this.surface.setSize({width:r,height:r}),this.createVisual(),this.surface.draw(this.visual)}getSize(){const r=this.element,c=r.clientWidth,m=r.clientHeight,Z={width:0,height:0};return c>0&&(Z.width=c),m&&(Z.height=m),Z}_resize(){this.redraw()}createVisual(){this.visual=this._render()}exportVisual(){return this._render()}_render(){let c,Re,gt,hn,di,no,r=this._value,m=this.options.border||{},Z=this.options.padding||0,le=m.width||0;m.width=le;let Mo=new ht.Z;try{r&&(gt=function FS(ve,r,c){let m=function NS(ve){return ve&&ve.toLowerCase().indexOf("utf_8")>=0?new Iv:new ka}(c),Z=m.getEncodingResult(ve,r),le=Z.version,Re=fv[le-1][r],gt=function SC(ve,r){let c=8*r,m=0,Z=0,le=ve;for(;le.length<c&&m<4;)le+="0000".charAt(m++);for(le.length%8!=0&&(le+=new Array(9-le.length%8).join("0"));le.length<c;)le+=L0[Z],Z^=1;return le}(Z.dataString,Re.totalDataCodewords),hn=function MS(ve,r){let le,gt,hn,di,no,c=0,m=[],Z=[],Re=r.groups;for(let Mo=0;Mo<Re.length;Mo++){hn=Re[Mo][0];for(let ir=0;ir<hn;ir++){gt=Re[Mo][1],le=[],di=[];for(let Wr=1;Wr<=gt;Wr++)no=ve.substring(c,c+8),le.push(no),di[gt-Wr]=fr(no),c+=8;m.push(le),Z.push(oE(di,r.errorCodewordsPerBlock))}}return[m,Z]}(gt,Re),di=function DC(ve){let r=[],c=17+4*ve;for(let m=0;m<q1.length;m++){r[m]=new Array(c);for(let Z=0;Z<c;Z++)r[m][Z]=new Array(c)}return r}(le);(function OS(ve){let r=ve[0].length;Ny(ve,Xv,0,0),Cb(ve,[-1,-1],7,7),Ny(ve,Xv,r-7,0),Cb(ve,[1,-1],r-8,7),Ny(ve,Xv,0,r-7),Cb(ve,[-1,1],7,r-8)})(di),function PS(ve,r){if(r<2)return;let Re,gt,c=ve[0],m=c.length,Z=Math.floor(r/7),le=[6],hn=0;for((Re=mb[r])?gt=(m-13-Re)/Z:Re=gt=(m-13)/(Z+1),le.push(le[hn++]+Re);le[hn]+gt<m;)le.push(le[hn++]+gt);for(let di=0;di<le.length;di++)for(let no=0;no<le.length;no++)void 0===c[le[di]][le[no]]&&Ny(ve,My,le[di]-2,le[no]-2)}(di,le),function RS(ve){let m=1,Z=ve[0].length;for(let le=8;le<Z-8;le++)lg(ve,m,6,le),lg(ve,m,le,6),m^=1}(di),le>=7&&kC(di,rr(0,18)),MC(di,rr(0,15)),function SS(ve,r){let m,Z,le,c=new Gr(ve[0]);for(let Re=0;Re<r.length;Re++)for(m=r[Re],Z=0;m.length>0;){for(let gt=0;gt<m.length;gt++)for(let hn=0;hn<8;hn++)le=c.getNextCell(),xC(ve,m[gt][Z].charAt(hn),le.row,le.column);for(Z++;m[0]&&Z===m[0].length;)m.splice(0,1)}for(;le=c.getNextRemainderCell();)xC(ve,0,le.row,le.column)}(di,hn);let no=function C2(ve){let Re,gt,r=[],c=[],m=[],Z=[],le=[],no=ve[0].length;for(gt=0;gt<ve.length;gt++)r[gt]=0,m[gt]=0,le[gt]=[0,0],Z[gt]=[0,0],c[gt]=[];for(let Qr=0;Qr<no;Qr++)for(let Bs=0;Bs<no;Bs++)for(let oa=0;oa<ve.length;oa++)Re=ve[oa],m[oa]+=parseInt(Re[Qr][Bs],10),c[oa][0]===Re[Qr][Bs]&&Qr+1<no&&Bs-1>=0&&Re[Qr+1][Bs]===c[oa][0]&&Re[Qr+1][Bs-1]===c[oa][0]&&(r[oa]+=3),IC(oa,Z,r,0,Re[Qr][Bs]),IC(oa,Z,r,1,Re[Bs][Qr]),x2(oa,r,c,Re[Qr][Bs],le,0),x2(oa,r,c,Re[Bs][Qr],le,1);let ir,Mo=no*no,Wr=Number.MAX_VALUE;for(gt=0;gt<r.length;gt++)r[gt]+=LS(m[gt],Mo),r[gt]<Wr&&(Wr=r[gt],ir=gt);return ir}(di),Mo=di[no];return le>=7&&kC([Mo],function b2(ve){return EC(ve,"1111100100101",18)}(le)),MC([Mo],function wC(ve){let c,m="";if(0===fr(ve))return"101010000010010";c=EC(fr(ve),"10100110111",15);for(let Z=0;Z<c.length;Z++)m+=c.charAt(Z)^"101010000010010".charAt(Z);return m}(ky[r]+rr(no,3))),Mo}(r,this.options.errorCorrection,this.options.encoding),hn=this._getSize(),no=hn-2*(le+Z),c=this._calculateBaseUnit(no,gt.length),di=gt.length*c,Re=le+Z+(no-di)/2,Mo.append(this._renderBackground(hn,m)),Mo.append(this._renderMatrix(gt,c,Re)),this._hasCustomLogo()?Mo.append(this._renderLogo(hn,c)):this._isSwiss()&&Mo.append(this._renderSwissCode(hn,c)))}catch(ir){this.onError(ir)}return Mo}_renderLogo(r,c){let m,Z,le=Fy(r/2),Re=this._getLogoSize(7*c),gt=this.options.overlay.imageUrl,hn={x:le-Re.width/2,y:le-Re.height/2};return Z=new Ss.Z(new ls.Z(hn.x,hn.y),new lf.Z(Re.width,Re.height)),m=new bi.Z(gt,Z),m}_renderSwissCode(r,c){let m=this._getLogoSize(7*c);m=Math.max(m.width,m.height);let Z=m/4,le=Z/2,Re=r/2,gt={},hn=new ht.Z;return gt.x=gt.y=Math.ceil(Re-c-m/2),hn.append(this._renderShape(gt,Math.ceil(m+2*c),AC,"#fff")),gt.x=gt.y=Re-m/2,hn.append(this._renderShape(gt,m,AC,this.options.color)),gt.x=Re+le-m/2,gt.y=Re+le+Z-m/2,hn.append(this._renderShape(gt,Z,BS,"#fff")),hn}_renderShape(r,c,m,Z){let le=new Js.w({fill:{color:Z},stroke:null});le.moveTo(r.x,r.y);for(let Re=0;Re<m.length;Re++)le.lineTo(r.x+c*m[Re][0],r.y+c*m[Re][1]);return le.close(),le}_getSize(){let r;if(this.options.size)r=parseInt(this.options.size,10);else{const m=B(this.element,this.options.renderAs),Z=Math.min(m.width,m.height);r=Z>0?Z:200}return r}_calculateBaseUnit(r,c){let m=Math.floor(r/c);if(m<1){const Z=Math.ceil(1*c);this.onError(new Error(`Insufficient size for QR Code: the current size is ${r}px and the minimum size is ${Z}px.`))}else m*c>=r&&m-1>=1&&m--;return m}_renderMatrix(r,c,m){let Z=new Js.w({fill:{color:this.options.color},stroke:null});for(let le=0;le<r.length;le++){let Re=m+le*c,gt=0;for(;gt<r.length;){for(;0===r[le][gt]&&gt<r.length;)gt++;if(gt<r.length){let hn=gt;for(;1===r[le][gt];)gt++;let di=Fy(m+hn*c),no=Fy(Re),Mo=Fy(m+gt*c),ir=Fy(Re+c);Z.moveTo(di,no).lineTo(di,ir).lineTo(Mo,ir).lineTo(Mo,no).close()}}}return Z}_renderBackground(r,c){const m=new Ar(0,0,r,r).unpad(c.width/2);return Js.y.fromRect(m.toRect(),{fill:{color:this.options.background},stroke:{color:c.color,width:c.width}})}setOptions(r){this.options=qi(this.options,r||{}),void 0!==r.value&&(this._value=String(this.options.value)),this._initSurface(),this.redraw()}value(r){if(void 0===r)return this._value;this._value=String(r),this.redraw()}_hasCustomLogo(){return!!this.options.overlay.imageUrl}_isSwiss(){return"swiss"===this.options.overlay.type}_getLogoSize(r){let c=this.options.overlay.width,m=this.options.overlay.height;return c||m?c&&!m?m=c:!c&&m&&(c=m):c=m=r,{width:c,height:m}}},{name:"QRCode",renderAs:"svg",encoding:"ISO_8859_1",value:"",errorCorrection:"L",background:"#fff",color:"#000",size:"",padding:0,border:{color:"",width:0},overlay:{type:"image",imageUrl:"",width:0,height:0}});const xb={WGS84:{a:6378137,b:6356752.314245179,f:.0033528106647474805,e:.08181919084262149}};function Av(ve){return ve*ve}let N0=Math,S2=N0.abs,Sb=N0.atan,By=N0.atan2,Ov=N0.cos,e0=N0.sin,RC=N0.tan;class Bh extends jo.Z{constructor(r,c){super(),this.initProperties(),1===arguments.length?(this.lat=r[0],this.lng=r[1]):(this.lat=r,this.lng=c)}initProperties(){sn(this,{DISTANCE_ITERATIONS:100,DISTANCE_CONVERGENCE:1e-12,DISTANCE_PRECISION:2,FORMAT:"{0:N6}{1:N6}"})}toArray(){return[this.lat,this.lng]}equals(r){return r&&r.lat===this.lat&&r.lng===this.lng}clone(){return new Bh(this.lat,this.lng)}round(r){return this.lng=Gn(this.lng,r),this.lat=Gn(this.lat,r),this}wrap(){return this.lng=this.lng%180,this.lat=this.lat%90,this}distanceTo(r,c){return this.greatCircleTo(r,c).distance}destination(r,c,m){let Z=ai(c),le=m||xb.WGS84,Re=ai(this.lat),gt=ai(this.lng),hn=r/le.a,di=N0.asin(e0(Re)*Ov(hn)+Ov(Re)*e0(hn)*Ov(Z)),no=gt+By(e0(Z)*e0(hn)*Ov(Re),Ov(hn)-e0(Re)*e0(di));return new Bh(Xo(di),Xo(no))}greatCircleTo(r,c){let m=Bh.create(m),Z=c||xb.WGS84;if(!m||this.clone().round(8).equals(m.clone().round(8)))return{distance:0,azimuthFrom:0,azimuthTo:0};let oa,Dc,Ud,hu,qf,Jp,Im,R1,le=Z.a,Re=Z.b,gt=Z.f,hn=ai(m.lng-this.lng),di=Sb((1-gt)*RC(ai(this.lat))),no=e0(di),Mo=Ov(di),ir=Sb((1-gt)*RC(ai(m.lat))),Wr=e0(ir),Qr=Ov(ir),Bs=hn,Ba=this.DISTANCE_ITERATIONS,tl=!1;for(;!tl&&Ba-- >0;){Dc=e0(Bs),Ud=Ov(Bs),hu=N0.sqrt(Av(Qr*Dc)+Av(Mo*Wr-no*Qr*Ud)),Jp=no*Wr+Mo*Qr*Ud,R1=By(hu,Jp);let uT=Mo*Qr*Dc/hu;qf=1-Av(uT),Im=0,0!==qf&&(Im=Jp-2*no*Wr/qf),oa=Bs;let nE=gt/16*qf*(4+gt*(4-3*qf));Bs=hn+(1-nE)*gt*uT*(R1+nE*hu*(Im+nE*Jp*(2*Av(Im)-1))),tl=S2(Bs-oa)<=this.DISTANCE_CONVERGENCE}let R_=qf*(Av(le)-Av(Re))/Av(Re),xS=1+R_/16384*(4096+R_*(R_*(320-175*R_)-768)),s2=R_/1024*(256+R_*(R_*(74-47*R_)-128)),lD=s2*hu*(Im+s2/4*(Jp*(2*Av(Im)-1)-s2/6*Im*(4*Av(hu)-3)*(4*Av(Im)-3))),cD=By(Qr*Dc,Mo*Wr-no*Qr*Ud),dD=By(Mo*Dc,-no*Qr+Mo*Wr*Ud);return{distance:Gn(Re*xS*(R1-lD),this.DISTANCE_PRECISION),azimuthFrom:Xo(cD),azimuthTo:Xo(dD)}}toString(){return String(this.lat)+","+String(this.lng)}static fromLngLat(r){return new Bh(r[1],r[0])}static fromLatLng(r){return new Bh(r[0],r[1])}static create(r,c){if(Bi(r))return r instanceof Bh?r.clone():1===arguments.length&&2===r.length?Bh.fromLatLng(r):new Bh(r,c)}}let F0=Math,wb=F0.atan,S1=F0.exp,w2=F0.pow,LC=F0.sin,HS=F0.log,Eb=F0.tan,Tb=ls.Z,Db=F0.PI,Mb=Db/2,E2=Db/4,VS=Db/180,NC=xb.WGS84;class zy extends jo.Z{constructor(r){super(),this.initProperties(),this._initOptions(r)}_initOptions(r){this.options=sn({},this.options,r)}initProperties(){sn(this,{MAX_LNG:180,MAX_LAT:85.0840590501,INVERSE_ITERATIONS:15,INVERSE_CONVERGENCE:1e-12})}forward(r,c){let m=this,Z=m.options,Re=Z.datum.a,gt=Z.centralMeridian,hn=Fo(r.lat,-m.MAX_LAT,m.MAX_LAT),di=c?Fo(r.lng,-m.MAX_LNG,m.MAX_LNG):r.lng,no=ai(di-gt)*Re,Mo=m._projectLat(hn);return new Tb(no,Mo)}_projectLat(r){let c=this.options.datum,m=c.e,Z=c.a,le=ai(r),Re=Eb(E2+le/2),gt=m*LC(le),hn=w2((1-gt)/(1+gt),m/2);return Z*HS(Re*hn)}inverse(r,c){let m=this,Z=m.options,hn=r.x/(VS*Z.datum.a)+Z.centralMeridian,di=Fo(m._inverseY(r.y),-m.MAX_LAT,m.MAX_LAT);return c&&(hn=Fo(hn,-m.MAX_LNG,m.MAX_LNG)),new Bh(di,hn)}_inverseY(r){let di,c=this,m=c.options.datum,le=m.e,Re=le/2,gt=S1(-r/m.a),hn=Mb-2*wb(gt);for(di=0;di<=c.INVERSE_ITERATIONS;di++){let no=le*LC(hn),Mo=w2((1-no)/(1+no),Re),ir=Mb-2*wb(gt*Mo)-hn;if(hn+=ir,F0.abs(ir)<=c.INVERSE_CONVERGENCE)break}return Xo(hn)}}ms(zy,{centralMeridian:0,datum:NC});class FC extends zy{initProperties(){super.initProperties(),sn(this,{MAX_LAT:85.0511287798})}_projectLat(r){let c=this.options.datum.a,m=ai(r),Z=Eb(E2+m/2);return c*HS(Z)}_inverseY(r){let m=S1(-r/this.options.datum.a);return Xo(Mb-2*wb(m))}}class zC extends jo.Z{constructor(){super();let c=this._proj=new FC,m=this.c=2*Db*c.options.datum.a;this._tm=Tt.Z().translate(.5,.5).scale(1/m,-1/m),this._itm=Tt.Z().scale(m,-m).translate(-.5,-.5)}toPoint(r,c,m){return this._proj.forward(r,m).transform(this._tm).scale(c||1)}toLocation(r,c,m){let Z=r.clone().scale(1/(c||1)).transform(this._itm);return this._proj.inverse(Z,m)}}const UC=Object.defineProperty;let w1=ve=>{const r=document.createElement("div");return r.innerHTML=ve,r.firstChild},kb=ve=>{for(;ve.firstChild;)ve.removeChild(ve.firstChild)},T2=(ve,r)=>{r.insertBefore(ve,r.firstChild)},HC=ve=>ve.replace(/([a-z][A-Z])/g,function(c){return c.charAt(0)+"-"+c.charAt(1).toLowerCase()}),YS=ve=>{let r;return r=ve&&String(ve).endsWith("px")?ve:String(ve)+"px",r};const VC=ve=>{let c,r=!1,m=[],Z={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.?(\d+(\.\d+)?)?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},le={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},Re={tablet:/playbook|ipad|fire/i},gt={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i};for(let hn in Z)if(Z.hasOwnProperty(hn)&&(m=ve.match(Z[hn]),m)){if("windows"===hn&&"plugins"in navigator)return!1;r={},r.device=hn,r.tablet=D2(hn,Re,!1),r.browser=D2(ve,gt,"default"),r.name=D2(hn,le),r[r.name]=!0,r.majorVersion=m[2],r.minorVersion=(m[3]||"0").replace("_","."),c=r.minorVersion.replace(".","").substr(0,2),r.flatVersion=r.majorVersion+c+new Array(3-(c.length<3?c.length:2)).join("0");break}return r};function D2(ve,r,c){for(let m in r)if(r.hasOwnProperty(m)&&r[m].test(ve))return m;return void 0!==c?c:ve}let Ib=()=>{let ve={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"};const r=B0();return r.touch&&(r.mobileOS.ios||r.mobileOS.android)?ve={down:"touchstart",move:"touchmove",up:"touchend touchcancel",cancel:"touchcancel"}:r.pointers?ve={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"}:r.msPointers&&(ve={down:"MSPointerDown",move:"MSPointerMove",up:"MSPointerUp",cancel:"MSPointerCancel MSPointerLeave"}),ve};const B0=()=>{const ve=VC(navigator.userAgent),r=(ve=>{let r=!1,c=[],m={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(let Z in m)if(m.hasOwnProperty(Z)&&(c=ve.match(m[Z]),c)){r={},r[Z]=!0,r[c[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,r.version=parseInt(document.documentMode||c[2],10);break}return r})(navigator.userAgent);let c=r.chrome,m=r.crios,Z=r.mozilla,le=r.safari;const Re={};Re.mobileOS=ve,Re.touch="ontouchstart"in window,Re.pointers=!c&&!m&&!Z&&!le&&window.PointerEvent,Re.msPointers=!c&&window.MSPointerEvent,Re.mouseAndTouchPresent=Re.touch&&!(Re.mobileOS.ios||Re.mobileOS.android),Re.eventCapture=document.documentElement.addEventListener;let gt=document.createElement("table"),hn=Re.transitions=!1,di=Re.transforms=!1;return["Moz","webkit","O","ms"].forEach(function(Mo){let ir="string"==typeof gt.style[Mo+"Transition"];if(ir||"string"==typeof gt.style[Mo+"Transform"]){let Wr=Mo.toLowerCase();return di={css:"ms"!==Wr?"-"+Wr+"-":"",prefix:Mo,event:"o"===Wr||"webkit"===Wr?Wr:""},ir&&(hn=di,hn.event=hn.event?hn.event+"TransitionEnd":"transitionend"),!1}}),gt=null,Re.transforms=di,Re.transitions=hn,Re.delayedClick=function(){if(Re.touch){if(Re.mobileOS.ios)return!0;if(Re.mobileOS.android){if(!Re.browser.chrome)return!0;if(Re.browser.version<32)return!1;const Mo=document.querySelector("meta[name=viewport]");return!(Mo?Mo.getAttribute("content"):"").match(/user-scalable=no/i)}}return!1},Re},zh=(ve,r)=>ve.bind(r),Yg=(ve,r,c,m,Z)=>{JC(ve,r,c,m,Z)},JC=(ve,r,c,m,Z)=>{(De(r)?r:(r||"").split(" ")).forEach(function(Re){Uy(ve,Re,c,m,Z)})},Uy=(ve,r,c,m,Z)=>{let Re,le=m;c&&mt(c)&&!m?le=c:c&&function KC(ve){return"string"==typeof ve}(c)&&mt(le)&&(Re=c),ve.addEventListener(r,function(gt){const hn=gt.target?gt.target.closest(Re):null;(!Re||Re&&gt.target&&hn)&&(UC(gt,"currentTarget",{value:Re?hn:gt.currentTarget}),UC(gt,"delegateTarget",{value:ve}),le(gt))},!!Z)},g_=(ve,r,c,m,Z)=>{$C(ve,r,c,m,Z)},$C=(ve,r,c,m)=>{(De(r)?r:(r||"").split(" ")).forEach(function(le){QC(ve,le,c,m)})},QC=(ve,r,c,m)=>{ve.removeEventListener(r,c,!!m)},V_=ve=>{const r=Ib(navigator);return ve.replace(/([^ ]+)/g,function c(le){return r[le]||le})},Gy=(ve,r)=>{const c=ve.prototype;c.events?r.forEach(m=>{c.events.indexOf(m)<0&&c.events.push(m)}):c.events=r},z0=()=>Number(new Date),ZS=()=>{},M2=ve=>{let r=[];if(ve){let c=HC(ve).split("-");for(let m=0;m<c.length;m++)r.push("k-pos-"+c[m])}return r.join(" ")},I2="function";let qC=function(){this._defaultPrevented=!0},KS=function(){return!0===this._defaultPrevented};class __ extends jo.Z{constructor(){super(),this._events={}}destroy(){this.unbind()}bind(r,c,m){let le,gt,hn,di,Mo,Z=this,Re="string"==typeof r?[r]:r||[],no=typeof c===I2;if(void 0===c){for(le in r)Z.bind(le,r[le]);return Z}for(le=0,gt=Re.length;le<gt;le++){let ir=Re[le];di=no?c:c[ir],di&&(m&&(hn=di,di=function(){Z.unbind(ir,di),hn.apply(Z,arguments)},di.original=hn),Mo=Z._events[ir]=Z._events[ir]||[],Mo.push(di))}return Z}one(r,c){return this.bind(r,c,!0)}first(r,c){let Z,Re,gt,di,m=this,le="string"==typeof r?[r]:r,hn=typeof c===I2;for(Z=0,Re=le.length;Z<Re;Z++){let no=le[Z];gt=hn?c:c[no],gt&&(di=m._events[no]=m._events[no]||[],di.unshift(gt))}return m}trigger(r,c){let le,Re,m=this,Z=m._events[r];if(Z){let gt=c||{};for(gt.sender=m,gt._defaultPrevented=!1,gt.preventDefault=qC,gt.isDefaultPrevented=KS,Z=Z.slice(),le=0,Re=Z.length;le<Re;le++)Z[le].call(m,gt);return!0===gt._defaultPrevented}return!1}unbind(r,c){let le,m=this,Z=m._events[r];if(void 0===r)m._events={};else if(Z)if(c)for(le=Z.length-1;le>=0;le--)(Z[le]===c||Z[le].original===c)&&Z.splice(le,1);else m._events[r]=[];return m}_setEvents(r){const c=(this.events||[]).length;for(let m=0;m<c;m++){let Z=this.events[m];this.options[Z]&&r[Z]&&(this.unbind(Z,this.options[Z]),this._events&&this._events[Z]&&delete this._events[Z])}this.bind(this.events,r)}}class ex extends __{constructor(r,c){super(),this.element=r,this._initOptions(c),this.items=[],fe(this.element,"k-widget k-attribution")}_initOptions(r){this.options=sn({},this.options,r)}filter(r,c){this._extent=r,this._zoom=c,this._render()}add(r){let c=r;Bi(r)&&("string"==typeof r&&(c={text:r}),this.items.push(c),this._render())}remove(r){let c=[];for(let m=0;m<this.items.length;m++){let Z=this.items[m];Z.text!==r&&c.push(Z)}this.items=c,this._render()}clear(){this.items=[],kb(this.element)}_render(){let r=[];for(let c=0;c<this.items.length;c++){let Z=this._itemText(this.items[c]);""!==Z&&r.push(Z)}r.length>0?(kb(this.element),((ve,r)=>{const c=document.createElement("div");for(c.innerHTML=ve;c.childNodes.length>0;)r.appendChild(c.childNodes[0])})(r.join(this.options.separator),this.element),this.showElement()):this.hideElement()}hideElement(){this.element.style.display="none"}showElement(){this.element.style.display=""}_itemText(r){let c="",m=this._inZoomLevel(r.minZoom,r.maxZoom),Z=this._inArea(r.extent);return m&&Z&&(c+=r.text),c}_inZoomLevel(r,c){let m=!0,Z=wr(r,-Number.MAX_VALUE),le=wr(c,Number.MAX_VALUE);return m=this._zoom>Z&&this._zoom<le,m}_inArea(r){let c=!0;return r&&(c=r.contains(this._extent)),c}}ms(ex,{name:"Attribution",separator:"&nbsp;|&nbsp;"});const Pv={up:{className:"k-navigator-n",iconClass:"k-i-caret-alt-up"},down:{className:"k-navigator-s",iconClass:"k-i-caret-alt-down"},right:{className:"k-navigator-e",iconClass:"k-i-caret-alt-right"},left:{className:"k-navigator-w",iconClass:"k-i-caret-alt-left"}};function Ob(ve,r){const c='<button class="k-button k-button-square k-rounded-full k-button-flat k-button-flat-base k-icon-button '+Pv[ve].className+'" aria-label="move '+ve+'">'+Go({icon:`caret-alt-${ve}`,iconClass:"k-button-icon",svgIcons:r.svgIcons,type:r.type})+"</button>";return w1(c)}class iy extends __{constructor(r,c){super(),this.element=r,this._initOptions(c);const m=Ob("up",c.icons),Z=Ob("right",c.icons),le=Ob("down",c.icons),Re=Ob("left",c.icons);this.element.appendChild(m),this.element.appendChild(Z),this.element.appendChild(le),this.element.appendChild(Re),fe(this.element,"k-widget k-navigator"),Yg(this.element,"click",".k-button",zh(this._click,this));let gt=this.element.parentNode.closest("[data-role]");this._keyroot=gt||this.element,this._tabindex(this._keyroot),this._keydownHandler=zh(this._keydown,this),Yg(this._keyroot,"keydown",this._keydownHandler)}destroy(){this.dispose()}dispose(){g_(this._keyroot,"keydown",this._keydownHandler)}_tabindex(r){const c=r||this.wrapper||this.element;let m=this.element,Z="tabindex",le=c.getAttribute(Z)||m.getAttribute(Z);m.removeAttribute(Z),c.setAttribute(Z,isNaN(le)?0:le)}_initOptions(r){this.options=sn({},this.options,r)}_pan(r,c){let m=this.options.panStep;this.trigger("pan",{x:r*m,y:c*m})}_click(r){let c=0,m=0,Z=r.currentTarget;Z.matches(".k-navigator-n")?m=1:Z.matches(".k-navigator-s")?m=-1:Z.matches(".k-navigator-e")?c=1:Z.matches(".k-navigator-w")&&(c=-1),this._pan(c,m),r.preventDefault()}_keydown(r){switch(r.which){case 38:this._pan(0,1),r.preventDefault();break;case 40:this._pan(0,-1),r.preventDefault();break;case 39:this._pan(1,0),r.preventDefault();break;case 37:this._pan(-1,0),r.preventDefault()}}}function oy(ve,r,c){const m='<button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-icon-button k-zoom-'+ve+'" title="zoom-'+ve+'" aria-label="zoom-'+ve+'">'+Go({icon:r,iconClass:"k-button-icon",svgIcons:c.svgIcons,type:c.type})+"</button>";return w1(m)}ms(iy,{name:"Navigator",panStep:1}),Gy(iy,["pan"]);class O2 extends __{constructor(r,c,m){super(),this.element=r,this._initOptions(c);const Z=oy("in","plus",m),le=oy("out","minus",m);this.element.appendChild(Z),this.element.appendChild(le),fe(this.element,"k-widget k-zoom-control k-button-group k-group-horizontal"),this._clickHandler=this._click.bind(this),Yg(this.element,"click",".k-button",this._clickHandler);let Re=this.element.parentNode.closest("[data-role]");this._keyroot=Re||this.element,this._tabindex(this._keyroot),this._keydownHandler=this._keydown.bind(this),Yg(this._keyroot,"keydown",this._keydownHandler)}destroy(){this.element&&g_(this.element,"click",this._clickHandler),this._keyroot&&g_(this._keyroot,"keydown",this._keydownHandler)}_tabindex(r){const c=r||this.wrapper||this.element;let m=this.element,Z="tabindex",le=c.getAttribute(Z)||m.getAttribute(Z);m.removeAttribute(Z),c.setAttribute(Z,isNaN(le)?0:le)}_initOptions(r){this.options=sn({},this.options,r)}_change(r){this.trigger("change",{delta:r*this.options.zoomStep})}_click(r){let m=1;Fn(r.currentTarget,"k-zoom-out")&&(m=-1),this._change(m),r.preventDefault()}_keydown(r){switch(r.which){case 107:case 187:case 61:this._change(1);break;case 109:case 189:case 173:this._change(-1)}}}ms(O2,{name:"ZoomControl",zoomStep:1}),Gy(O2,["change"]);let tx=Math,Rb=tx.max,nx=tx.min;class t0 extends jo.Z{constructor(r,c){super();let m=Bh.create(r),Z=Bh.create(c);m.lng+180>Z.lng+180&&m.lat+90<Z.lat+90?(this.se=m,this.nw=Z):(this.se=Z,this.nw=m)}contains(r){let c=this.nw,m=this.se,Z=wr(r.lng,r[1]),le=wr(r.lat,r[0]);return r&&Z+180>=c.lng+180&&Z+180<=m.lng+180&&le+90>=m.lat+90&&le+90<=c.lat+90}center(){let r=this.nw,c=this.se;return new Bh(r.lat+(c.lat-r.lat)/2,r.lng+(c.lng-r.lng)/2)}containsAny(r){let c=!1;for(let m=0;m<r.length;m++)c=c||this.contains(r[m]);return c}include(r){let c=this.nw,m=this.se,Z=wr(r.lng,r[1]),le=wr(r.lat,r[0]);c.lng=nx(c.lng,Z),c.lat=Rb(c.lat,le),m.lng=Rb(m.lng,Z),m.lat=nx(m.lat,le)}includeAll(r){for(let c=0;c<r.length;c++)this.include(r[c])}edges(){let r=this.nw,c=this.se;return{nw:this.nw,ne:new Bh(r.lat,c.lng),se:this.se,sw:new Bh(c.lat,r.lng)}}toArray(){let r=this.nw,c=this.se;return[r,new Bh(r.lat,c.lng),c,new Bh(c.lat,r.lng)]}overlaps(r){return this.containsAny(r.toArray())||r.containsAny(this.toArray())}static create(r,c){return r instanceof t0?r:r&&c?new t0(r,c):r&&4===r.length&&!c?new t0([r[0],r[1]],[r[2],r[3]]):void 0}static get World(){return new t0([90,-180],[-90,180])}}const ox="centerChange";class sx extends jo.Z{constructor(r,c){super(),this.widgetService=r,this.options=sn({},this.options,c),this.offset={x:0,y:0}}show(r,c){this.location!==c.location&&(this.anchor=r,this.location=c.location,this.widgetService.notify("showTooltip",Object.assign({anchor:this.anchor},c)),this.visible=!0)}hide(){this.widgetService&&this.widgetService.notify("hideTooltip"),this.visible=!1,this.location=null}get anchor(){return this._anchor}set anchor(r){const c=this.widgetService.widget._toDocumentCoordinates({x:r.left-this.offset.x,y:r.top-this.offset.y});this._anchor={left:c.left,top:c.top}}destroy(){this.widgetService=null}}ms(sx,{border:{width:1},opacity:1});class P2 extends jo.Z{constructor(r,c){super(),this.support=B0(),this._initOptions(c),this.map=r;let m=document.createElement("div");fe(m,"k-layer"),m.style.zIndex=this.options.zIndex,m.style.opacity=this.options.opacity,this.element=m,r.scrollElement.appendChild(this.element),this._beforeReset=this._beforeReset.bind(this),this._reset=this._reset.bind(this),this._resize=this._resize.bind(this),this._panEnd=this._panEnd.bind(this),this._activate(),this._updateAttribution()}destroy(){this._deactivate()}_initOptions(r){this.options=sn({},this.options,r)}show(){this.reset(),this._activate(),this._applyExtent(!0)}hide(){this._deactivate(),this._setVisibility(!1)}reset(){this._beforeReset(),this._reset()}_reset(){this._applyExtent()}_beforeReset(){}_resize(){}_panEnd(){this._applyExtent()}_applyExtent(){let r=this.options,c=this.map.zoom(),m=!Bi(r.minZoom)||c>=r.minZoom,Z=!Bi(r.maxZoom)||c<=r.maxZoom,le=t0.create(r.extent),Re=!le||le.overlaps(this.map.extent());this._setVisibility(m&&Z&&Re)}_setVisibility(r){this.element.style.display=r?"":"none"}_activate(){let r=this.map;this._deactivate(),r.bind("beforeReset",this._beforeReset),r.bind("reset",this._reset),r.bind("resize",this._resize),r.bind("panEnd",this._panEnd)}_deactivate(){let r=this.map;r.unbind("beforeReset",this._beforeReset),r.unbind("reset",this._reset),r.unbind("resize",this._resize),r.unbind("panEnd",this._panEnd)}_updateAttribution(){const r=this.map.attribution;r&&r.add(this.options.attribution)}_readData(){return this.options.data||[]}_hasData(){return this._data&&this._data.length>0}_layerIndex(){return(this.map.layers||[]).indexOf(this)}}let n0=Math,Nb=ls.Z;function Fb(ve){return mt(ve)?ve:Bn.compile(ve)}function lx(ve){let r=ve;return"string"!=typeof ve&&(r+="px"),r}class R2 extends P2{constructor(r,c){super(r,c),"string"==typeof this.options.subdomains&&(this.options.subdomains=this.options.subdomains.split(""));let m=this._viewType();this._view=new m(this.element,this.options)}destroy(){super.destroy(),this._view.destroy(),this._view=null}_beforeReset(){let r=this.map,c=r.locationToLayer(r.extent().nw).round();this._view.viewOrigin(c)}_reset(){super._reset(),this._updateView(),this._view.reset()}_viewType(){return cx}_activate(){super._activate(),this.support.mobileOS||(this._pan||(this._pan=Hr(this._render.bind(this),100)),this.map.bind("pan",this._pan))}_deactivate(){super._deactivate(),this._pan&&this.map.unbind("pan",this._pan)}_updateView(){let r=this._view,c=this.map,m=c.extent(),Z={nw:c.locationToLayer(m.nw).round(),se:c.locationToLayer(m.se).round()};r.center(c.locationToLayer(c.center())),r.extent(Z),r.zoom(c.zoom())}_resize(){this._render()}_panEnd(r){super._panEnd(r),this._render()}_render(){this._updateView(),this._view.render()}}ms(R2,{tileSize:256,subdomains:["a","b","c"],urlTemplate:"",zIndex:1});class cx extends jo.Z{constructor(r,c){super(),this.element=r,this._initOptions(c),this.pool=new ux}_initOptions(r){this.options=sn({},this.options,r)}center(r){this._center=r}extent(r){this._extent=r}viewOrigin(r){this._viewOrigin=r}zoom(r){this._zoom=r}pointToTileIndex(r){return new Nb(n0.floor(r.x/this.options.tileSize),n0.floor(r.y/this.options.tileSize))}tileCount(){let r=this.size(),c=this.pointToTileIndex(this._extent.nw),m=this._extent.nw,Z=this.indexToPoint(c).translate(-m.x,-m.y);return{x:n0.ceil((n0.abs(Z.x)+r.width)/this.options.tileSize),y:n0.ceil((n0.abs(Z.y)+r.height)/this.options.tileSize)}}size(){let r=this._extent.nw,m=this._extent.se.clone().translate(-r.x,-r.y);return{width:m.x,height:m.y}}indexToPoint(r){return new Nb(r.x*this.options.tileSize,r.y*this.options.tileSize)}subdomainText(){let r=this.options.subdomains;return r[this.subdomainIndex++%r.length]}destroy(){kb(this.element),this.pool.empty()}reset(){this.pool.reset(),this.subdomainIndex=0,this.render()}render(){let m,Z,le,r=this.tileCount(),c=this.pointToTileIndex(this._extent.nw);for(Z=0;Z<r.x;Z++)for(le=0;le<r.y;le++)m=this.createTile({x:c.x+Z,y:c.y+le}),m.visible||m.show()}createTile(r){let c=this.tileOptions(r),m=this.pool.get(this._center,c);return m.element.parentNode||this.element.append(m.element),m}tileOptions(r){let c=this.wrapIndex(r),m=this.indexToPoint(r),Z=this._viewOrigin,le=m.clone().translate(-Z.x,-Z.y);return{index:c,currentIndex:r,point:m,offset:(ve=le,new Nb(Gn(ve.x),Gn(ve.y))),zoom:this._zoom,size:this.options.tileSize,subdomain:this.subdomainText(),urlTemplate:this.options.urlTemplate,errorUrlTemplate:this.options.errorUrlTemplate};var ve}wrapIndex(r){let c=n0.pow(2,this._zoom);return{x:this.wrapValue(r.x,c),y:Fo(r.y,0,c-1)}}wrapValue(r,c){let m=n0.abs(r)%c,Z=r;return Z=r>=0?m:c-(0===m?c:m),Z}}class dx extends jo.Z{constructor(r,c){super(),this.id=r,this.visible=!0,this._initOptions(c),this.createElement(),this.show()}destroy(){const r=this.element,c=r?r.parentNode:null;r&&(c&&c.removeChild(r),this.element=null)}_initOptions(r){this.options=sn({},this.options,r)}createElement(){let r=document.createElement("img");const c=this.options.size+"px";r.style.position="absolute",r.style.display="block",r.style.width=r.style.maxWidth=c,r.style.height=r.style.maxHeight=c,this.element=r}show(){let r=this.element;r.style.top=lx(this.options.offset.y),r.style.left=lx(this.options.offset.x);let c=this.url();c&&r.setAttribute("src",c),r.style.visibility="visible",this.visible=!0}hide(){this.element.style.visibility="hidden",this.visible=!1}url(){return Fb(this.options.urlTemplate)(this.urlOptions())}errorUrl(){return Fb(this.options.errorUrlTemplate)(this.urlOptions())}urlOptions(){let r=this.options;return{zoom:r.zoom,subdomain:r.subdomain,z:r.zoom,x:r.index.x,y:r.index.y,s:r.subdomain,quadkey:r.quadkey,q:r.quadkey,culture:r.culture,c:r.culture}}}ms(dx,{urlTemplate:"",errorUrlTemplate:""});class ux extends jo.Z{constructor(){super(),this._items=[]}get(r,c){return this._items.length>=this.options.maxSize&&this._remove(r),this._create(c)}empty(){let r=this._items;for(let c=0;c<r.length;c++)r[c].destroy();this._items=[]}reset(){let r=this._items;for(let c=0;c<r.length;c++)r[c].hide()}_create(r){let m,c=this._items,Z=as(r.point.toString()+r.offset.toString()+r.zoom+r.urlTemplate);for(let le=0;le<c.length;le++)if(c[le].id===Z){m=c[le];break}return m?m.show():(m=new dx(Z,r),this._items.push(m)),m}_remove(r){let c=this._items,m=-1,Z=-1;for(let le=0;le<c.length;le++){let Re=c[le].options.point.distanceTo(r);Re>m&&!c[le].visible&&(Z=le,m=Re)}-1!==Z&&(c[Z].destroy(),c.splice(Z,1))}}ms(ux,{maxSize:100});const o0=Object.assign,E1="change";class hx extends __{constructor(r,c){super();let m=this,Z=r[0]||r;m.capture=!1;const le=Ib(navigator);Z.addEventListener?(le.down.split(" ").forEach(function(Re){Z.addEventListener(Re,zh(m._press,m),!0)}),le.up.split(" ").forEach(function(Re){Z.addEventListener(Re,zh(m._release,m),!0)})):(le.down.split(" ").forEach(function(Re){Z.attachEvent(Re,zh(m._press,m))}),le.up.split(" ").forEach(function(Re){Z.attachEvent(Re,zh(m._release,m))})),m.bind(["press","release"],c||{})}captureNext(){this.capture=!0}cancelCapture(){this.capture=!1}_press(r){this.trigger("press"),this.capture&&r.preventDefault()}_release(r){let c=this;c.trigger("release"),c.capture&&(r.preventDefault(),c.cancelCapture())}}class Bb extends __{constructor(r){super();let c=this;c.forcedEnabled=!1,o0(c,r),c.scale=1,c.horizontal?(c.measure="offsetWidth",c.scrollSize="scrollWidth",c.axis="x"):(c.measure="offsetHeight",c.scrollSize="scrollHeight",c.axis="y")}makeVirtual(){o0(this,{virtual:!0,forcedEnabled:!0,_virtualMin:0,_virtualMax:0})}virtualSize(r,c){(this._virtualMin!==r||this._virtualMax!==c)&&(this._virtualMin=r,this._virtualMax=c,this.update())}outOfBounds(r){return r>this.max||r<this.min}forceEnabled(){this.forcedEnabled=!0}getSize(){return this.container[this.measure]}getTotal(){return this.element[this.scrollSize]}rescale(r){this.scale=r}update(r){let c=this,m=c.virtual?c._virtualMax:c.getTotal(),Z=m*c.scale,le=c.getSize();0===m&&!c.forcedEnabled||(c.max=c.virtual?-c._virtualMin:0,c.size=le,c.total=Z,c.min=Math.min(c.max,le-Z),c.minScale=le/m,c.centerOffset=(Z-le)/2,c.enabled=c.forcedEnabled||Z>le,r||c.trigger(E1,c))}}class L2 extends __{constructor(r){super();let c=this;c.x=new Bb(o0({horizontal:!0},r)),c.y=new Bb(o0({horizontal:!1},r)),c.container=r.container,c.forcedMinScale=r.minScale,c.maxScale=r.maxScale||100,c.bind(E1,r)}rescale(r){this.x.rescale(r),this.y.rescale(r),this.refresh()}centerCoordinates(){return{x:Math.min(0,-this.x.centerOffset),y:Math.min(0,-this.y.centerOffset)}}refresh(){let r=this;r.x.update(),r.y.update(),r.enabled=r.x.enabled||r.y.enabled,r.minScale=r.forcedMinScale||Math.min(r.x.minScale,r.y.minScale),r.fitScale=Math.max(r.x.minScale,r.y.minScale),r.trigger(E1)}}class fx extends __{constructor(r){super(),o0(this,r)}outOfBounds(){return this.dimension.outOfBounds(this.movable[this.axis])}dragMove(r){let c=this,m=c.dimension,Z=c.axis,le=c.movable,Re=le[Z]+r;if(!m.enabled)return;let gt=r;(Re<m.min&&r<0||Re>m.max&&r>0)&&(gt*=c.resistance),le.translateAxis(Z,gt),c.trigger(E1,c)}}class qS extends jo.Z{constructor(r){super();let m,Z,le,Re,c=this;o0(c,{elastic:!0},r),le=c.elastic?.5:0,Re=c.movable,c.x=m=new fx({axis:"x",dimension:c.dimensions.x,resistance:le,movable:Re}),c.y=Z=new fx({axis:"y",dimension:c.dimensions.y,resistance:le,movable:Re}),c.userEvents.bind(["press","move","end","gesturestart","gesturechange"],{gesturestart(gt){c.gesture=gt,c.offset=Lo(c.dimensions.container)},press(gt){const hn=gt.event.target.closest("a");hn&&hn.matches("[data-navigate-on-press=true]")&&gt.sender.cancel()},gesturechange(gt){let Qr,hn=c.gesture,di=hn.center,no=gt.center,Mo=gt.distance/hn.distance,Wr=c.dimensions.maxScale;Re.scale<=c.dimensions.minScale&&Mo<1&&(Mo+=.8*(1-Mo)),Re.scale*Mo>=Wr&&(Mo=Wr/Re.scale);let Bs=Re.x+c.offset.left,oa=Re.y+c.offset.top;Qr={x:(Bs-di.x)*Mo+no.x-Bs,y:(oa-di.y)*Mo+no.y-oa},Re.scaleWith(Mo),m.dragMove(Qr.x),Z.dragMove(Qr.y),c.dimensions.rescale(Re.scale),c.gesture=gt,gt.preventDefault()},move(gt){gt.event.target.tagName.match(/textarea|input/i)||(m.dimension.enabled||Z.dimension.enabled?(m.dragMove(gt.x.delta),Z.dragMove(gt.y.delta),gt.preventDefault()):gt.touch.skip())},end(gt){gt.preventDefault()}})}}let px=function(ve,r,c){return"translate3d("+ve+"px,"+r+"px,0) scale("+c+")"};class N2 extends __{constructor(r){super();let c=this;c.support=B0(),this.transformStyle=this.support.transitions.prefix+"Transform",c.element=r,c.element.style.webkitTransformOrigin="left top",c.x=0,c.y=0,c.scale=1;const m=px(c.x,c.y,c.scale);c.element.style[this.transformStyle]=m,c._saveCoordinates(m)}translateAxis(r,c){this[r]+=c,this.refresh()}scaleTo(r){this.scale=r,this.refresh()}scaleWith(r){this.scale*=r,this.refresh()}translate(r){this.x+=r.x,this.y+=r.y,this.refresh()}moveAxis(r,c){this[r]=c,this.refresh()}moveTo(r){o0(this,r),this.refresh()}refresh(){let Z,r=this,c=r.x,m=r.y;r.round&&(c=Math.round(c),m=Math.round(m)),Z=px(c,m,r.scale),Z!==r.coordinates&&(r.element.style[this.transformStyle]=Z,r._saveCoordinates(Z),r.trigger(E1))}_saveCoordinates(r){this.coordinates=r}}const zb=ht.Z;class Hy extends P2{constructor(r,c){super(r,c),this._pan=zh(this._pan,this),this.surface=zo.create(this.element,{width:r.scrollElement.clientWidth,height:r.scrollElement.clientHeight}),this._initRoot(),this.movable=new N2(this.surface.element),this._markers=[],this._click=this._handler("shapeClick"),this.surface.bind("click",this._click),this._mouseleave=this._handler("shapeMouseLeave"),this.surface.bind("mouseleave",this._mouseleave),this.surface.bind("mouseenter",this._mouseenter.bind(this))}destroy(){super.destroy(),this.surface.destroy()}_reset(){super._reset(),this._translateSurface(),this._data=this._readData(),this._hasData()&&this._load(this._data)}_initRoot(){this._root=new zb,this.surface.draw(this._root)}_beforeReset(){this.surface.clear(),this._initRoot()}_resize(){this.surface.size(this.map.size())}_readData(){const r=super._readData();return"FeatureCollection"===r.type?r.features:"GeometryCollection"===r.type?r.geometries:r}_load(r){this._data=r,this._clearMarkers(),this._loader||(this._loader=new mx(this.map,this.options.style,this));let c=new zb;for(let m=0;m<r.length;m++){let Z=this._loader.parse(r[m]);Z&&c.append(Z)}this._root.clear(),this._root.append(c)}shapeCreated(r){let c=!1;return r instanceof sl.Z&&this.map.options.renderPointsAsMarkers&&(c=Bi(this._createMarker(r))),c||(c=this.map.trigger("shapeCreated",{layer:this,shape:r})),c}featureCreated(r){r.layer=this,this.map.trigger("shapeFeatureCreated",r)}_createMarker(r){let c=this.map.markers.bind({location:r.location},r.dataItem);return c&&this._markers.push(c),c}_clearMarkers(){for(let r=0;r<this._markers.length;r++)this.map.markers.remove(this._markers[r]);this._markers=[]}_pan(){this._panning||(this._panning=!0,this.surface.suspendTracking())}_panEnd(r){super._panEnd(r),this._translateSurface(),this.surface.resumeTracking(),this._panning=!1}_translateSurface(){let r=this.map,c=r.locationToView(r.extent().nw);this.surface.translate&&(this.surface.translate(c),this.movable.moveTo({x:c.x,y:c.y}))}_eventArgs(r){return{layer:this,layerIndex:this._layerIndex(),shape:r.element,shapeIndex:(this._data||[]).indexOf(r.element.dataItem),originalEvent:r.originalEvent}}_handler(r){return c=>{c.element&&this.map.trigger(r,this._eventArgs(c))}}_mouseenter(r){if(!r.element)return;this.map.trigger("shapeMouseEnter",this._eventArgs(r));const c=r.element,m=this._tooltipAnchor(r);this.map._tooltip.show(m,this._tooltipContext(c))}_tooltipContext(r){return{type:"shape",layerIndex:this._layerIndex(),className:"k-map-shape-tooltip",dataItem:r.dataItem,location:r.location}}_tooltipAnchor(r){const c=this.map.eventOffset(r.originalEvent);return{top:c.y,left:c.x}}_activate(){super._activate(),this._panHandler=zh(this._pan,this),this.map.bind("pan",this.panHandler)}_deactivate(){super._deactivate(),this.map.unbind("pan",this._panHandler)}}ms(Hy,{autoBind:!0,zIndex:100});class mx extends jo.Z{constructor(r,c,m){super(),this.observer=m,this.locator=r,this.style=c}parse(r){let c=new zb,m=!0;return"Feature"===r.type?(m=!1,this._loadGeometryTo(c,r.geometry,r),this._featureCreated(c,r)):this._loadGeometryTo(c,r,r),m&&c.children.length<2&&(c=c.children[0]),c}_shapeCreated(r){let c=!1;return this.observer&&this.observer.shapeCreated&&(c=this.observer.shapeCreated(r)),c}_featureCreated(r,c){this.observer&&this.observer.featureCreated&&this.observer.featureCreated({group:r,dataItem:c,properties:c.properties})}_loadGeometryTo(r,c,m){let le,Re,Z=c.coordinates;switch(c.type){case"LineString":Re=this._loadPolygon(r,[Z],m),this._setLineFill(Re);break;case"MultiLineString":for(le=0;le<Z.length;le++)Re=this._loadPolygon(r,[Z[le]],m),this._setLineFill(Re);break;case"Polygon":this._loadPolygon(r,Z,m);break;case"MultiPolygon":for(le=0;le<Z.length;le++)this._loadPolygon(r,Z[le],m);break;case"Point":this._loadPoint(r,Z,m);break;case"MultiPoint":for(le=0;le<Z.length;le++)this._loadPoint(r,Z[le],m)}}_setLineFill(r){let c=r.segments;(c.length<4||!c[0].anchor().equals(ji(c).anchor()))&&(r.options.fill=null)}_loadShape(r,c){return this._shapeCreated(c)||r.append(c),c}_loadPolygon(r,c,m){let Z=this._buildPolygon(c);return Z.dataItem=m,Z.location=this.locator.viewToLocation(Z.bbox().center()),this._loadShape(r,Z)}_buildPolygon(r){let m=new(r.length>1?Js.w:Js.y)(this.style);for(let Z=0;Z<r.length;Z++)for(let le=0;le<r[Z].length;le++){let Re=this.locator.locationToView(Bh.fromLngLat(r[Z][le]));0===le?m.moveTo(Re.x,Re.y):m.lineTo(Re.x,Re.y)}return m}_loadPoint(r,c,m){let Z=Bh.fromLngLat(c),le=this.locator.locationToView(Z),Re=new Jt.Z(le,10),gt=new sl.Z(Re,this.style);return gt.dataItem=m,gt.location=Z,this._loadShape(r,gt)}}class F2 extends Hy{_readData(){return this.options.data||[]}_load(r){if(this._data=r,this.surface.clear(),0===r.length)return;let c=this.options,m=un(c.valueField),Z=r.slice(0);Z.sort(function(hn,di){return m(di)-m(hn)});let Re,le=this._scaleType(),gt=un(this.options.locationField);for(let hn=0;hn<Z.length;hn++){let di=Z[hn],no=gt(di),Mo=m(di);if(Bi(no)&&Bi(Mo)){Re||(Re=new le([0,Mo],[c.minSize,c.maxSize])),no=Bh.create(no);let ir=this.map.locationToView(no),Wr=Re.map(Mo),Qr=this._createSymbol({center:ir,size:Wr,style:c.style,dataItem:di,location:no});Qr.dataItem=di,Qr.location=no,Qr.value=Mo,this._drawSymbol(Qr)}}}_scaleType(){let r=this.options.scale;return mt(r)?r:_x[r]}_createSymbol(r){let c=this.options.symbol;return mt(c)||(c=ew[c]),c(r)}_drawSymbol(r){this.map.trigger("shapeCreated",{layer:this,shape:r})||this.surface.draw(r)}_tooltipContext(r){return{type:"bubble",layerIndex:this._layerIndex(),className:"k-map-bubble-tooltip",dataItem:r.dataItem,location:r.location,value:r.value}}_tooltipAnchor(r){const m=r.element.bbox().center();return{top:m.y,left:m.x}}}ms(F2,{locationField:"location",valueField:"value",minSize:0,maxSize:100,scale:"sqrt",symbol:"circle",zIndex:200});let _x={sqrt:class gx extends jo.Z{constructor(r,c){super(),this._domain=r,this._range=c;let m=Math.sqrt(r[1])-Math.sqrt(r[0]);this._ratio=(c[1]-c[0])/m}map(r){let c=(Math.sqrt(r)-Math.sqrt(this._domain[0]))*this._ratio;return this._range[0]+c}}},ew={circle:function(ve){let r=new Jt.Z(ve.center,ve.size/2);return new sl.Z(r,ve.style)},square:function(ve){let r=new Js.y(ve.style),c=ve.size/2,m=ve.center;return r.moveTo(m.x-c,m.y-c).lineTo(m.x+c,m.y-c).lineTo(m.x+c,m.y+c).lineTo(m.x-c,m.y+c).close(),r}};const z2="mouseenter",vx="mouseleave",yx=Object.assign,U2="k-marker",kg="."+U2;class U0 extends P2{constructor(r,c){super(r,c),this._markerClickHandler=zh(this._markerClick,this),Yg(this.element,"click",kg,this._markerClickHandler),this.items=[],this._load(this._readData())}destroy(){super.destroy(),g_(this.element,"click",this._markerClickHandler),this.clear()}add(r){if(!De(r))return this._addOne(r);for(let c=0;c<r.length;c++)this._addOne(r[c])}remove(r){r.destroy();let c=(this.items||[]).indexOf(r);c>-1&&this.items.splice(c,1)}clear(){for(let r=0;r<this.items.length;r++)this.items[r].destroy();this.items=[]}update(r){let c=r.location();c&&(r.showAt(this.map.locationToView(c)),this.map.trigger("markerActivate",{marker:r,layer:this}))}_reset(){super._reset();let r=this.items;for(let c=0;c<r.length;c++)this.update(r[c])}bind(r,c){let m=Vy.create(r,this.options);if(m.dataItem=c,!this.map.trigger("markerCreated",{marker:m,layer:this}))return this.add(m),m}_addOne(r){let c=Vy.create(r,this.options);return c.addTo(this),c}_readData(){return this.options.data||[]}_load(r){this._data=r,this.clear();let c=un(this.options.locationField),m=un(this.options.titleField);for(let Z=0;Z<r.length;Z++){let le=r[Z];this.bind({location:c(le),title:m(le)},le)}}_markerClick(r){const c=r.currentTarget._kendoNode;let m={layer:this,layerIndex:this._layerIndex(),marker:c,markerIndex:(this.items||[]).indexOf(c),originalEvent:r};this.map.trigger("markerClick",m)}_markerMouseEnter(r){const c=this._createMarkerEventArgs(r);this.map.trigger("markerMouseEnter",c)}_markerMouseLeave(r){const c=this._createMarkerEventArgs(r);this.map.trigger("markerMouseLeave",c)}_createMarkerEventArgs(r){const c=r.marker;return yx({},{layer:this,layerIndex:this._layerIndex(),marker:c,markerIndex:(this.items||[]).indexOf(c)},r)}}ms(U0,{zIndex:1e3,autoBind:!0,locationField:"location",titleField:"title",template:""});class Vy extends jo.Z{constructor(r){super(),this.options=r||{}}destroy(){this.layer=null,this.unbindEvents(),this.hide()}addTo(r){this.layer=r.markers||r,this.layer.items.push(this),this.layer.update(this)}location(r){return r?(this.options.location=Bh.create(r).toArray(),this.layer&&this.layer.update(this),this):Bh.create(this.options.location)}showAt(r){this.render(),this._anchor={left:Math.round(r.x),top:Math.round(r.y)},this.element.style.left=YS(this._anchor.left),this.element.style.top=YS(this._anchor.top)}hide(){this.element&&(this.element.remove(),this.element=null)}bindEvents(){this.element&&(this._mouseEnterHandler=zh(this._mouseEnter,this),Yg(this.element,z2,kg,this._mouseEnterHandler),this._mouseLeaveHandler=zh(this._mouseLeave,this),Yg(this.element,vx,kg,this._mouseLeaveHandler))}unbindEvents(){this.element&&(g_(this.element,z2,this._mouseEnterHandler),g_(this.element,vx,this._mouseLeaveHandler))}render(){if(!this.element){let r=this.options,c=this.layer,m=document.createElement("span");if(fe(m,U2),this.options.template){const Re=this._compileTemplate(this.options.template)(this.dataItem),gt=w1(Re);m.appendChild(gt)}else if(r.svgIcon)Go(m,{icon:r.svgIcon,iconClass:"k-icon-xxl",svgIcons:this.options.icons.svgIcons,type:"svg"});else{let le={icon:"map-marker",iconClass:"k-icon-xxl",svgIcons:this.options.icons.svgIcons,type:this.options.icons.type};r.shape?"pinTarget"===r.shape?(le.icon="map-marker-target",Go(m,le)):"pin"===r.shape?Go(m,le):fe(m,"k-icon k-icon-xxl k-i-marker-"+HC(r.shape||"pin")):Go(m,le)}r.title&&m.setAttribute("title",r.title);const Z=r.attributes||{};Object.keys(Z).forEach(function(le){m.setAttribute(le,Z[le])}),m._kendoNode=this,m.style.zIndex=r.zIndex,this.element=m,c&&c.element.appendChild(this.element),this.bindEvents()}}_mouseEnter(r){const c=this._createEventArgs(r);this.layer._markerMouseEnter(c),this.layer.map._tooltip.show({top:this._anchor.top-this.element.offsetHeight,left:this._anchor.left},this._tooltipContext())}_tooltipContext(){return{type:"marker",layerIndex:this.layer._layerIndex(),className:"k-map-marker-tooltip",dataItem:this.dataItem,title:this.options.title,location:this.location()}}_mouseLeave(r){const c=this._createEventArgs(r);this.layer._markerMouseLeave(c)}_createEventArgs(r){return{marker:this,originalEvent:r}}_compileTemplate(r){return Bn.compile(r,{paramName:"dataItem",useWithBlock:!1})}static create(r,c){return r instanceof Vy?r:new Vy(sn({},c,r))}}const tw=Object.assign;function nw(ve){window.requestAnimationFrame(ve)}class G2 extends jo.Z{constructor(){super();let r=this;r._tickProxy=zh(r._tick,r),r._started=!1}tick(){}done(){}onEnd(){}onCancel(){}start(){this.enabled()&&(this.done()?this.onEnd():(this._started=!0,nw(this._tickProxy)))}enabled(){return!0}cancel(){this._started=!1,this.onCancel()}_tick(){let r=this;r._started&&(r.tick(),r.done()?(r._started=!1,r.onEnd()):nw(r._tickProxy))}}class H2 extends G2{constructor(r){super(),tw(this,r)}done(){return this.timePassed()>=this.duration}timePassed(){return Math.min(this.duration,z0()-this.startDate)}moveTo(r){let c=this;c.initial=c.movable[c.axis],c.delta=r.location-c.initial,c.duration="number"==typeof r.duration?r.duration:300,c.tick=c._easeProxy(r.ease),c.startDate=z0(),c.start()}_easeProxy(r){let c=this;return function(){c.movable.moveAxis(c.axis,r(c.timePassed(),c.initial,c.delta,c.duration))}}static easeOutExpo(r,c,m,Z){return r===Z?c+m:m*(1-Math.pow(2,-10*r/Z))+c}}const ry=Object.assign,Wy=ve=>{ve.preventDefault()};let bx=800,Cx=0,jy="move",T1="tap",Gb="doubleTap",iw="release",Dx="gesturechange",j2="gestureend",D1="gesturetap",ow={api:0,touch:0,mouse:9,pointer:9};function Hb(ve){const r=B0();let Re,gt,hn,c=[],m=ve.originalEvent||ve,Z=ve.currentTarget,le=0;if(ve.api)c.push({id:2,event:ve,target:ve.target,currentTarget:ve.target,location:ve,type:"api"});else if(ve.type.match(/touch/))for(gt=m?m.changedTouches:[],Re=gt.length;le<Re;le++)hn=gt[le],c.push({location:hn,event:ve,target:hn.target,currentTarget:Z,id:hn.identifier,type:"touch"});else c.push(r.pointers||r.msPointers?{location:m,event:ve,target:ve.target,currentTarget:Z,id:m.pointerId,type:"pointer"}:{id:1,event:ve,target:ve.target,currentTarget:Z,location:ve,type:"mouse"});return c}class rw extends jo.Z{constructor(r,c){super();let m=this;m.support=B0(),m.invalidZeroEvents=this.support.mobileOS&&this.support.mobileOS.android,m.axis=r,m._updateLocationData(c),m.startLocation=m.location,m.velocity=m.delta=0,m.timeStamp=z0()}move(r){let c=this,m=r["page"+c.axis],Z=z0(),le=Z-c.timeStamp||1;!m&&this.invalidZeroEvents||(c.delta=m-c.location,c._updateLocationData(r),c.initialDelta=m-c.startLocation,c.velocity=c.delta/le,c.timeStamp=Z)}_updateLocationData(r){let c=this,m=c.axis;c.location=r["page"+m],c.client=r["client"+m],c.screen=r["screen"+m]}}class sw extends jo.Z{constructor(r,c,m){super(),ry(this,{x:new rw("X",m.location),y:new rw("Y",m.location),type:m.type,useClickAsTap:r.useClickAsTap,threshold:r.threshold||ow[m.type],userEvents:r,target:c,currentTarget:m.currentTarget,initialTouch:m.target,id:m.id,pressEvent:m,_clicks:r._clicks,supportDoubleTap:r.supportDoubleTap,_moved:!1,_finished:!1})}press(){this._holdTimeout=setTimeout(zh(this._hold,this),this.userEvents.minHold),this._trigger("press",this.pressEvent)}_tap(r){let c=this;c.userEvents._clicks++,1===c.userEvents._clicks&&(c._clickTimeout=setTimeout(function(){c._trigger(1===c.userEvents._clicks?T1:Gb,r),c.userEvents._clicks=0},300))}_hold(){this._trigger("hold",this.pressEvent)}move(r){let c=this;if(!(c._finished||"api"!==r.type&&c.userEvents._shouldNotMove)){if(c.x.move(r.location),c.y.move(r.location),!c._moved){if(c._withinIgnoreThreshold())return;if(sy.current&&sy.current!==c.userEvents)return c.dispose();c._start(r)}c._finished||c._trigger(jy,r)}}end(r){this.endTime=z0(),!this._finished&&(this._finished=!0,this._trigger(iw,r),this._moved?this._trigger("end",r):this.useClickAsTap||(this.supportDoubleTap?this._tap(r):this._trigger(T1,r)),clearTimeout(this._holdTimeout),this.dispose())}dispose(){let c=this.userEvents.touches||[];this._finished=!0,this.pressEvent=null,clearTimeout(this._holdTimeout);const m=c.indexOf(this);c.splice(m,1)}skip(){this.dispose()}cancel(){this.dispose()}isMoved(){return this._moved}_start(r){clearTimeout(this._holdTimeout),this.startTime=z0(),this._moved=!0,this._trigger("start",r)}_trigger(r,c){let m=this,Z=c.event;m.userEvents.notify(r,{touch:m,x:m.x,y:m.y,target:m.target,event:Z})&&Z.preventDefault()}_withinIgnoreThreshold(){let r=this.x.initialDelta,c=this.y.initialDelta;return Math.sqrt(r*r+c*c)<=this.threshold}}function aw(ve){let c=Ib(navigator).up.split(" "),m=0,Z=c.length;for(;m<Z;m++)ve(c[m])}class sy extends __{constructor(r,c){super();let Z,m=this;const le=B0();if(this.support=le,this.options=c=c||{},Z=m.filter=c.filter,m.threshold=c.threshold||Cx,m.minHold=c.minHold||bx,m.touches=[],m._maxTouches=c.multiTouch?2:1,m.allowSelection=c.allowSelection,m.captureUpIfMoved=c.captureUpIfMoved,m.useClickAsTap=!c.fastTap&&!le.delayedClick(),m._clicks=0,m.supportDoubleTap=c.supportDoubleTap,ry(m,{element:r,surface:!c.global||le.touch&&!le.mouseAndTouchPresent?c.surface||r:r.ownerDocument.documentElement,stopPropagation:c.stopPropagation,pressed:!1}),this._surfaceMoveHandler=zh(this._move,this),Yg(m.surface,V_("move"),this._surfaceMoveHandler),this._surfaceEndHandler=zh(this._end,this),Yg(m.surface,V_("up cancel"),this._surfaceEndHandler),this._elementStartHandler=zh(this._start,this),Yg(r,V_("down"),Z,this._elementStartHandler),m.useClickAsTap&&(this._elementClickHandler=zh(this._click,this),Yg(r,V_("click"),Z,this._elementClickHandler)),le.pointers||le.msPointers)if(le.browser.version<11){let gt="pinch-zoom double-tap-zoom";r.style["-ms-touch-action"]=c.touchAction&&"none"!==c.touchAction?gt+" "+c.touchAction:gt}else r.style["touch-action"]=c.touchAction||"none";if(c.preventDragEvent&&(this._elementDragStartHandler=Wy,Yg(r,V_("dragstart"),this._elementDragStartHandler)),this._elementSelectHandler=zh(this._select,this),Yg(r,V_("mousedown"),Z,this._elementSelectHandler),m.captureUpIfMoved&&le.eventCapture){let gt=m.surface,hn=zh(m.preventIfMoving,m);aw(function(di){gt.addEventListener(di,hn,!0)})}m.bind(["press","hold",T1,Gb,"start",jy,"end",iw,"cancel","gesturestart",Dx,j2,D1,"select"],c)}preventIfMoving(r){this._isMoved()&&r.preventDefault()}destroy(){let r=this;const c=this.options,m=this.element;if(!r._destroyed){if(r._destroyed=!0,r.captureUpIfMoved&&this.support.eventCapture){let Z=r.surface;aw(function(le){Z.removeEventListener(le,r.preventIfMoving)})}g_(r.surface,V_("move"),this._surfaceMoveHandler),g_(r.surface,V_("up cancel"),this._surfaceEndHandler),g_(m,V_("down"),this._elementStartHandler),r.useClickAsTap&&g_(m,V_("click"),this._elementClickHandler),c.preventDragEvent&&g_(m,V_("dragstart"),this._elementDragStartHandler),g_(m,V_("mousedown"),this._elementSelectHandler),r._disposeAll(),r.unbind(),delete r.surface,delete r.element,delete r.currentTarget}}capture(){sy.current=this}cancel(){this._disposeAll(),this.trigger("cancel")}notify(r,c){let Z=this.touches,le=r;if(this._isMultiTouch()){switch(le){case jy:le=Dx;break;case"end":le=j2;break;case T1:le=D1}ry(c,{touches:Z},function Mx(ve,r){let c=ve.x.location,m=ve.y.location,Z=r.x.location,le=r.y.location,Re=c-Z,gt=m-le;return{center:{x:(c+Z)/2,y:(m+le)/2},distance:Math.sqrt(Re*Re+gt*gt)}}(Z[0],Z[1]))}return this.trigger(le,ry(c,{type:le}))}press(r,c,m){this._apiCall("_start",r,c,m)}move(r,c){this._apiCall("_move",r,c)}end(r,c){this._apiCall("_end",r,c)}_isMultiTouch(){return this.touches.length>1}_maxTouchesReached(){return this.touches.length>=this._maxTouches}_disposeAll(){let r=this.touches;for(;r.length>0;)r.pop().dispose()}_isMoved(){return Ki(this.touches,function(r){return r.isMoved()}).length}_select(r){(!this.allowSelection||this.trigger("select",{event:r}))&&r.preventDefault()}_start(r){let le,hn,c=this,m=0,Z=c.filter,Re=Hb(r),gt=Re.length,di=r.which;if(!(di&&di>1||c._maxTouchesReached()))for(sy.current=null,c.currentTarget=r.currentTarget,c.stopPropagation&&r.stopPropagation();m<gt&&!c._maxTouchesReached();m++)hn=Re[m],le=Z?hn.currentTarget:c.element,(!le||0!==le.length)&&(hn=new sw(c,le,hn),c.touches.push(hn),hn.press(),c._isMultiTouch()&&c.notify("gesturestart",{}))}_move(r){this._eachTouch("move",r)}_end(r){this._eachTouch("end",r)}_click(r){let c={touch:{initialTouch:r.target,target:r.currentTarget,endTime:z0(),x:{location:r.pageX,client:r.clientX},y:{location:r.pageY,client:r.clientY}},x:r.pageX,y:r.pageY,target:r.currentTarget,event:r,type:"tap"};this.trigger("tap",c)&&r.preventDefault()}_eachTouch(r,c){let gt,hn,di,no,Z={},le=Hb(c),Re=this.touches;for(gt=0;gt<Re.length;gt++)hn=Re[gt],Z[hn.id]=hn;for(gt=0;gt<le.length;gt++)di=le[gt],no=Z[di.id],no&&no[r](di)}_apiCall(r,c,m,Z){this[r]({api:!0,pageX:c,pageY:m,clientX:c,clientY:m,target:Z||this.element,stopPropagation:ZS,preventDefault:ZS})}static defaultThreshold(r){Cx=r}static minHold(r){bx=r}}let ay=Object.assign,M1=Math.abs,Wb="change";class Nx extends G2{constructor(r){super(r);let c=this;ay(c,r),c.userEvents.bind("gestureend",c.start.bind(this)),c.tapCapture.bind("press",c.cancel.bind(this))}enabled(){return this.movable.scale<this.dimensions.minScale}done(){return this.dimensions.minScale-this.movable.scale<.01}tick(){let r=this.movable;r.scaleWith(1.1),this.dimensions.rescale(r.scale)}onEnd(){let r=this.movable;r.scaleTo(this.dimensions.minScale),this.dimensions.rescale(r.scale)}}class dw extends G2{constructor(r){super();let c=this;ay(c,r,{transition:new H2({axis:r.axis,movable:r.movable,onEnd(){c._end()}})}),c.tapCapture.bind("press",function(){c.cancel()}),c.userEvents.bind("end",zh(c.start,c)),c.userEvents.bind("gestureend",zh(c.start,c)),c.userEvents.bind("tap",zh(c.onEnd,c))}onCancel(){this.transition.cancel()}freeze(r){this.cancel(),this._moveTo(r)}onEnd(){let r=this;r.paneAxis.outOfBounds()?r._snapBack():r._end()}done(){return M1(this.velocity)<1}start(r){let m,c=this;c.dimension.enabled&&(c.paneAxis.outOfBounds()?c.transition._started?(c.transition.cancel(),c.velocity=Math.min(r.touch[c.axis].velocity*c.velocityMultiplier,55),super.start()):c._snapBack():(m=2===r.touch.id?0:r.touch[c.axis].velocity,c.velocity=Math.max(Math.min(m*c.velocityMultiplier,55),-55),c.tapCapture.captureNext(),super.start()))}tick(){let r=this,c=r.dimension,m=r.paneAxis.outOfBounds()?.5:r.friction,Z=r.velocity*=m,le=r.movable[r.axis]+Z;!r.elastic&&c.outOfBounds(le)&&(le=Math.max(Math.min(le,c.max),c.min),r.velocity=0),r.movable.moveAxis(r.axis,le)}_end(){this.tapCapture.cancelCapture(),this.end()}_snapBack(){let r=this,c=r.dimension;r._moveTo(r.movable[r.axis]>c.max?c.max:c.min)}_moveTo(r){this.transition.moveTo({location:r,duration:500,ease:H2.easeOutExpo})}}class uw extends G2{constructor(r){super(r),ay(this,r,{origin:{},destination:{},offset:{}})}tick(){this._updateCoordinates(),this.moveTo(this.origin)}done(){return M1(this.offset.y)<5&&M1(this.offset.x)<5}onEnd(){this.moveTo(this.destination),this.callback&&this.callback.call()}setCoordinates(r,c){this.offset={},this.origin=r,this.destination=c}setCallback(r){r&&mt(r)?this.callback=r:r=void 0}_updateCoordinates(){this.offset={x:(this.destination.x-this.origin.x)/4,y:(this.destination.y-this.origin.y)/4},this.origin={y:this.origin.y+this.offset.y,x:this.origin.x+this.offset.x}}}class cE extends jo.Z{constructor(r){super();let c=this,m="x"===r.axis;const le=w1('<div class="km-touch-scrollbar km-'+(m?"horizontal":"vertical")+'-scrollbar" />');ay(c,r,{element:le,elementSize:0,movable:new N2(le),scrollMovable:r.movable,alwaysVisible:r.alwaysVisible,size:m?"width":"height"}),c.scrollMovable.bind(Wb,c.refresh.bind(c)),c.container.appendChild(le),r.alwaysVisible&&c.show()}refresh(){let r=this,c=r.axis,m=r.dimension,Z=m.size,Re=Z/m.total,gt=Math.round(-r.scrollMovable[c]*Re),hn=Math.round(Z*Re);this.element.style.display=Re>=1?"none":"",gt+hn>Z?hn=Z-gt:gt<0&&(hn+=gt,gt=0),r.elementSize!==hn&&(r.element.style[r.size]=hn+"px",r.elementSize=hn),r.movable.moveAxis(c,gt)}show(){this.element.style.opacity=.7,this.element.style.visibility="visible"}hide(){this.alwaysVisible||(this.element.style.opacity=0)}}class jb extends __{constructor(r,c){super();let m=this;this.element=r,this._initOptions(c);const Z=(ve=>{const r=VC(ve);return r.ios||r.android})(navigator.userAgent);m._native=m.options.useNative&&Z;const le=w1('<div class="km-scroll-header"/>');if(m._native)return fe(r,"km-native-scroller"),T2(le,r),void ay(m,{scrollElement:r,fixedContainer:r.children[0]});r.style.overflow="hidden",fe(r,"km-scroll-wrapper"),((ve,r)=>{for(ve.appendChild(r);ve.firstChild!==r;)r.appendChild(ve.firstChild)})(r,w1('<div class="km-scroll-container"/>')),T2(le,r);let gt=r.children[1],hn=new hx(r),di=new N2(gt),no=new L2({element:gt,container:r,forcedEnabled:m.options.zoom}),Mo=this.options.avoidScrolling,ir=new sy(r,{touchAction:"pan-y",fastTap:!0,allowSelection:!0,preventDragEvent:!0,captureUpIfMoved:!0,multiTouch:m.options.zoom,supportDoubleTap:m.options.supportDoubleTap,start(oa){no.refresh();let Ba=M1(oa.x.velocity),tl=M1(oa.y.velocity),Dc=2*Ba>=tl,Ud=((ve,r)=>ve===r||((ve,r)=>{if(!r)return!1;let c=r.parentNode;for(;null!==c;){if(c===ve)return!0;c=c.parentNode}return!1})(ve,r))(m.fixedContainer,oa.event.target),hu=2*tl>=Ba;!Ud&&!Mo(oa)&&m.enabled&&(no.x.enabled&&Dc||no.y.enabled&&hu)?ir.capture():ir.cancel()}}),Wr=new qS({movable:di,dimensions:no,userEvents:ir,elastic:m.options.elastic}),Qr=new Nx({movable:di,dimensions:no,userEvents:ir,tapCapture:hn}),Bs=new uw({moveTo(oa){m.scrollTo(oa.x,oa.y)}});di.bind(Wb,function(){m.scrollTop=-di.y,m.scrollLeft=-di.x,m.trigger("scroll",{scrollTop:m.scrollTop,scrollLeft:m.scrollLeft})}),m.options.mousewheelScrolling&&(this._wheelScrollHandler=this._wheelScroll.bind(this),Yg(r,"wheel",this._wheelScrollHandler)),ay(m,{movable:di,dimensions:no,zoomSnapBack:Qr,animatedScroller:Bs,userEvents:ir,pane:Wr,tapCapture:hn,pulled:!1,enabled:!0,scrollElement:gt,scrollTop:0,scrollLeft:0,fixedContainer:r.children[0]}),m._initAxis("x"),m._initAxis("y"),m._wheelEnd=function(){m._wheel=!1,m.userEvents.end(0,m._wheelY)},no.refresh(),m.options.pullToRefresh&&m._initPullToRefresh()}_initOptions(r){this.options=sn({},this.options,r)}_wheelScroll(r){if(r.ctrlKey)return;this._wheel||(this._wheel=!0,this._wheelY=0,this.userEvents.press(0,this._wheelY)),clearTimeout(this._wheelTimeout),this._wheelTimeout=setTimeout(this._wheelEnd,50);let c=(ve=>{const r=ve.originalEvent||ve,c=r.wheelDeltaY;let m;return r.wheelDelta?(void 0===c||c)&&(m=r.wheelDelta):r.detail&&r.axis===r.VERTICAL_AXIS&&(m=10*-r.detail),m})(r);c&&(this._wheelY+=c,this.userEvents.move(0,this._wheelY)),r.preventDefault()}makeVirtual(){this.dimensions.y.makeVirtual()}virtualSize(r,c){this.dimensions.y.virtualSize(r,c)}height(){return this.dimensions.y.size}scrollHeight(){return this.scrollElement.scrollHeight}scrollWidth(){return this.scrollElement.scrollWidth}_resize(){this._native||this.contentResized()}setOptions(r){this._initOptions(r),r.pullToRefresh&&this._initPullToRefresh()}reset(){this._native?this.scrollElement.scrollTop(0):(this.movable.moveTo({x:0,y:0}),this._scale(1))}contentResized(){this.dimensions.refresh(),this.pane.x.outOfBounds()&&this.movable.moveAxis("x",this.dimensions.x.min),this.pane.y.outOfBounds()&&this.movable.moveAxis("y",this.dimensions.y.min)}zoomOut(){let r=this.dimensions;r.refresh(),this._scale(r.fitScale),this.movable.moveTo(r.centerCoordinates())}enable(){this.enabled=!0}disable(){this.enabled=!1}scrollTo(r,c){this._native?(this.scrollElement.scrollLeft(M1(r)),this.scrollElement.scrollTop(M1(c))):(this.dimensions.refresh(),this.movable.moveTo({x:r,y:c}))}animatedScrollTo(r,c,m){let Z,le;this._native?this.scrollTo(r,c):(Z={x:this.movable.x,y:this.movable.y},le={x:r,y:c},this.animatedScroller.setCoordinates(Z,le),this.animatedScroller.setCallback(m),this.animatedScroller.start())}pullHandled(){}destroy(){g_(this.element,"wheel",this._wheelScrollHandler),this.userEvents&&this.userEvents.destroy()}_scale(r){this.dimensions.rescale(r),this.movable.scaleTo(r)}_initPullToRefresh(){}_dragEnd(){}_paneChange(){}_initAxis(r){let c=this,m=c.movable,Z=c.dimensions[r],le=c.tapCapture,Re=c.pane[r],gt=new cE({axis:r,movable:m,dimension:Z,container:c.element,alwaysVisible:c.options.visibleScrollHints});Z.bind(Wb,function(){gt.refresh()}),Re.bind(Wb,function(){gt.show()}),c[r+"inertia"]=new dw({axis:r,paneAxis:Re,movable:m,tapCapture:le,userEvents:c.userEvents,dimension:Z,elastic:c.options.elastic,friction:c.options.friction||.96,velocityMultiplier:c.options.velocityMultiplier||10,end(){gt.hide(),c.trigger("scrollEnd",{axis:r,scrollTop:c.scrollTop,scrollLeft:c.scrollLeft})}})}}ms(jb,{name:"Scroller",zoom:!1,pullOffset:140,visibleScrollHints:!1,elastic:!0,useNative:!1,mousewheelScrolling:!0,avoidScrolling:()=>!1,pullToRefresh:!1,messages:{pullTemplate:"Pull to refresh",releaseTemplate:"Release to refresh",refreshTemplate:"Refreshing"}}),Gy(jb,["pull","scroll","resize"]);let k1=Math,hw=k1.min,Fx=k1.pow,fw=ls.Z,Z2="marker",K2="location";const mw={bubble:F2,shape:Hy,tile:R2,[Z2]:U0};class gw extends __{constructor(r,c={},m={},Z={}){super(),this._init(r,c,m,Z)}destroy(){this.scroller.destroy(),this._tooltip&&this._tooltip.destroy(),this.navigator&&this.navigator.destroy(),this.attribution&&this.attribution.destroy(),this.zoomControl&&this.zoomControl.destroy(),De(this.markers)?this.markers.forEach(r=>{r.destroy()}):this.markers.destroy();for(let r=0;r<this.layers.length;r++)this.layers[r].destroy();g_(this.element,"wheel",this._mousewheelHandler),super.destroy()}_init(r,c={},m={},Z={}){this.support=B0(),this.context=Z,this.initObserver(Z),this.initServices(Z),this._notifyObserver("init"),this._initOptions(c),this._setEvents(c),this.crs=new zC,this._initElement(r),this._viewOrigin=this._getOrigin(),this._tooltip=this._createTooltip(),this._initScroller(),this._initMarkers(),this._initControls(),this._initLayers(),this._reset();const le=Hr(this._mousewheel.bind(this),50);this._mousewheelHandler=Re=>{Re.preventDefault(),le(Re)},Yg(this.element,"wheel",this._mousewheelHandler)}_initOptions(r){this.options=sn({},this.options,r)}_initElement(r){this.element=r,fe(r,"k-map"),r.style.position="relative",r.setAttribute("data-role","map"),kb(r);const c=w1("<div />");this.element.appendChild(c)}initServices(r={}){this.widgetService=new class dE{constructor(r,c={}){this.sender=c.sender||r,this.widget=r,this.rtl=!!c.rtl}notify(r,c){this.widget&&this.widget.trigger(r,c)}}(this,r)}initObserver(r={}){this.observers=[],this.addObserver(r.observer)}addObserver(r){r&&this.observers.push(r)}removeObserver(r){const c=this.observers.indexOf(r);c>=0&&this.observers.splice(c,1)}requiresHandlers(r){const c=this.observers;for(let m=0;m<c.length;m++)if(c[m].requiresHandlers(r))return!0}trigger(r,c={}){c.sender=this;const m=this.observers;let Z=!1;for(let le=0;le<m.length;le++)m[le].trigger(r,c)&&(Z=!0);return Z||super.trigger(r,c),Z}_notifyObserver(r,c={}){c.sender=this;const m=this.observers;let Z=!1;for(let le=0;le<m.length;le++)m[le].trigger(r,c)&&(Z=!0);return Z}zoom(r){let m,c=this.options;if(Bi(r)){const Z=k1.round(Fo(r,c.minZoom,c.maxZoom));c.zoom!==Z&&(c.zoom=Z,this.widgetService.notify("zoomChange",{zoom:c.zoom}),this._reset()),m=this}else m=c.zoom;return m}center(r){let c;if(r){const m=Bh.create(r),Z=Bh.create(this.options.center);m.equals(Z)||(this.options.center=m.toArray(),this.widgetService.notify(ox,{center:this.options.center}),this._reset()),c=this}else c=Bh.create(this.options.center);return c}extent(r){let c;return r?(this._setExtent(r),c=this):c=this._getExtent(),c}setOptions(r={}){const c=this.element;this.destroy(),kb(c),this._init(c,r,{},this.context),this._reset()}locationToLayer(r,c){let m=!this.options.wraparound;const Z=Bh.create(r);return this.crs.toPoint(Z,this._layerSize(c),m)}layerToLocation(r,c){let m=!this.options.wraparound;const Z=fw.create(r);return this.crs.toLocation(Z,this._layerSize(c),m)}locationToView(r){const c=Bh.create(r);let m=this.locationToLayer(this._viewOrigin);return this.locationToLayer(c).translateWith(m.scale(-1))}viewToLocation(r,c){const m=this.locationToLayer(this._getOrigin(),c),le=fw.create(r).clone().translateWith(m);return this.layerToLocation(le,c)}eventOffset(r){let c,m,Z=Lo(this.element);if(r.x&&r.x[K2]||r.y&&r.y[K2])c=r.x[K2]-Z.left,m=r.y[K2]-Z.top;else{let Re=r.originalEvent||r;c=wr(Re.pageX,Re.clientX)-Z.left,m=wr(Re.pageY,Re.clientY)-Z.top}return new ls.Z(c,m)}eventToView(r){let c=this.eventOffset(r);return this.locationToView(this.viewToLocation(c))}eventToLayer(r){return this.locationToLayer(this.eventToLocation(r))}eventToLocation(r){let c=this.eventOffset(r);return this.viewToLocation(c)}viewSize(){let r=this.element,c=this._layerSize(),m=r.clientWidth;return this.options.wraparound||(m=hw(c,m)),{width:m,height:hw(c,r.clientHeight)}}exportVisual(){return this._reset(),!1}hideTooltip(){this._tooltip&&this._tooltip.hide()}_setOrigin(r,c){let Z,m=this.viewSize();const le=this._origin=Bh.create(r);return Z=this.locationToLayer(le,c),Z.x+=m.width/2,Z.y+=m.height/2,this.options.center=this.layerToLocation(Z,c).toArray(),this.widgetService.notify(ox,{center:this.options.center}),this}_getOrigin(r){let m,c=this.viewSize();return(r||!this._origin)&&(m=this.locationToLayer(this.center()),m.x-=c.width/2,m.y-=c.height/2,this._origin=this.layerToLocation(m)),this._origin}_setExtent(r){let c=t0.create(r),m=c.se.clone();this.options.wraparound&&m.lng<0&&r.nw.lng>0&&(m.lng=180+(180+m.lng));const Z=new t0(c.nw,m);this.center(Z.center());let gt,le=this.element.clientWidth,Re=this.element.clientHeight;for(gt=this.options.maxZoom;gt>=this.options.minZoom;gt--){let hn=this.locationToLayer(Z.nw,gt),di=this.locationToLayer(Z.se,gt),no=k1.abs(di.x-hn.x),Mo=k1.abs(di.y-hn.y);if(no<=le&&Mo<=Re)break}this.zoom(gt)}_getExtent(){let r=this._getOrigin(),c=this.locationToLayer(r),m=this.viewSize();c.x+=m.width,c.y+=m.height;let Z=this.layerToLocation(c);return new t0(r,Z)}_zoomAround(r,c){this._setOrigin(this.layerToLocation(r,c),c),this.zoom(c)}_initControls(){let r=this.options.controls;r.attribution&&this._createAttribution(r.attribution),this.support.mobileOS||(r.navigator&&this._createNavigator(r.navigator),r.zoom&&this._createZoomControl(r.zoom))}_createControlElement(r,c){let m=r.position||c,Z="."+M2(m).replace(" ","."),le=this.element.querySelector(".k-map-controls"+Z)||[];if(0===le.length){let gt=document.createElement("div");fe(gt,"k-map-controls "+M2(m)),le=gt,this.element.appendChild(le)}let Re=document.createElement("div");return le.appendChild(Re),Re}_createAttribution(r){let c=this._createControlElement(r,"bottomRight");this.attribution=new ex(c,r)}_createNavigator(r){let c=this._createControlElement(r,"topLeft"),m=this.navigator=new iy(c,sn({},r,{icons:this.options.icons}));this._navigatorPan=this._navigatorPan.bind(this),m.bind("pan",this._navigatorPan),this._navigatorCenter=this._navigatorCenter.bind(this),m.bind("center",this._navigatorCenter)}_navigatorPan(r){let c=this.scroller,m=c.scrollLeft+r.x,Z=c.scrollTop-r.y,le=this._virtualSize,gt=this.element.clientHeight;m=Fo(m,le.x.min,le.x.max-this.element.clientWidth),Z=Fo(Z,le.y.min,le.y.max-gt),this.scroller.one("scroll",zh(this._scrollEnd,this)),this.scroller.scrollTo(-m,-Z)}_navigatorCenter(){this.center(this.options.center)}_createZoomControl(r){let c=this._createControlElement(r,"topLeft"),m=this.zoomControl=new O2(c,r,this.options.icons);this._zoomControlChange=this._zoomControlChange.bind(this),m.bind("change",this._zoomControlChange)}_zoomControlChange(r){this.trigger("zoomStart",{originalEvent:r})||(this.zoom(this.zoom()+r.delta),this.trigger("zoomEnd",{originalEvent:r}))}_initScroller(){let m=this.scroller=new jb(this.element.children[0],{friction:this.support.mobileOS?.93:.9,velocityMultiplier:5,zoom:!1!==this.options.zoomable,mousewheelScrolling:!1,supportDoubleTap:!0});m.bind("scroll",zh(this._scroll,this)),m.bind("scrollEnd",zh(this._scrollEnd,this)),m.userEvents.bind("gesturestart",zh(this._scaleStart,this)),m.userEvents.bind("gestureend",zh(this._scale,this)),m.userEvents.bind("doubleTap",zh(this._doubleTap,this)),m.userEvents.bind("tap",zh(this._tap,this)),this.scrollElement=m.scrollElement}_initLayers(){let r=this.options.layers,c=this.layers=[];for(let m=0;m<r.length;m++){const le=this._createLayer(r[m]);c.push(le)}}_createLayer(r){let c=r.type||"shape",m=this.options.layerDefaults[c],Z=c===Z2?sn({},this.options.markerDefaults,r,{icons:this.options.icons}):sn({},m,r),Re=new(0,mw[c])(this,Z);return c===Z2&&(this.markers=Re),Re}_createTooltip(){return new sx(this.widgetService,this.options.tooltip)}_initMarkers(){(this.options.layers||[]).filter(c=>c&&c.type===Z2).length>0||(this.markers=new U0(this,sn({},this.options.markerDefaults,{icons:this.options.icons})),this.markers.add(this.options.markers))}_scroll(r){let c=this.locationToLayer(this._viewOrigin).round(),m=r.sender.movable,Z=new ls.Z(m.x,m.y).scale(-1).scale(1/m.scale);c.x+=Z.x,c.y+=Z.y,this._scrollOffset=Z,this._tooltip.offset=Z,this.hideTooltip(),this._setOrigin(this.layerToLocation(c)),this.trigger("pan",{originalEvent:r,origin:this._getOrigin(),center:this.center()})}_scrollEnd(r){!this._scrollOffset||!this._panComplete()||(this._scrollOffset=null,this._panEndTimestamp=z0(),this.trigger("panEnd",{originalEvent:r,origin:this._getOrigin(),center:this.center()}))}_panComplete(){return z0()-(this._panEndTimestamp||0)>50}_scaleStart(r){if(this.trigger("zoomStart",{originalEvent:r})){let c=r.touches[1];c&&c.cancel()}}_scale(r){let m=this._scaleToZoom(this.scroller.movable.scale),Z=new ls.Z(r.center.x,r.center.y),le=this.viewToLocation(Z,m),gt=this.locationToLayer(le,m).translate(-Z.x,-Z.y);this._zoomAround(gt,m),this.trigger("zoomEnd",{originalEvent:r})}_scaleToZoom(r){let m=this._layerSize()*r/this.options.minSize,Z=k1.log(m)/k1.log(2);return k1.round(Z)}_reset(){this.attribution&&this.attribution.filter(this.center(),this.zoom()),this._viewOrigin=this._getOrigin(!0),this._resetScroller(),this.hideTooltip(),this.trigger("beforeReset"),this.trigger("reset")}_resetScroller(){let r=this.scroller,c=r.dimensions.x,m=r.dimensions.y,Z=this._layerSize(),le=this.extent().nw,Re=this.locationToLayer(le).round();r.movable.round=!0,r.reset(),r.userEvents.cancel();let gt=this.zoom();r.dimensions.forcedMinScale=Fx(2,this.options.minZoom-gt),r.dimensions.maxScale=Fx(2,this.options.maxZoom-gt);let hn={min:-Re.x,max:Z-Re.x},di={min:-Re.y,max:Z-Re.y};if(this.options.wraparound&&(hn.max=20*Z,hn.min=-hn.max),!1===this.options.pannable){let no=this.viewSize();hn.min=di.min=0,hn.max=no.width,di.max=no.height}c.makeVirtual(),m.makeVirtual(),c.virtualSize(hn.min,hn.max),m.virtualSize(di.min,di.max),this._virtualSize={x:hn,y:di}}_renderLayers(){}_layerSize(r){const c=wr(r,this.options.zoom);return this.options.minSize*Fx(2,c)}_tap(r){if(!this._panComplete())return;let c=this.eventOffset(r);this.hideTooltip(),this.trigger("click",{originalEvent:r,location:this.viewToLocation(c)})}_doubleTap(r){if(!1!==this.options.zoomable&&!this.trigger("zoomStart",{originalEvent:r})){let m=this.zoom()+1,Z=this.eventOffset(r),le=this.viewToLocation(Z),gt=this.locationToLayer(le,m).translate(-Z.x,-Z.y);this._zoomAround(gt,m),this.trigger("zoomEnd",{originalEvent:r})}}_mousewheel(r){let c=ln(r)>0?-1:1,m=this.options,Z=this.zoom(),le=Fo(Z+c,m.minZoom,m.maxZoom);if(!1!==m.zoomable&&le!==Z&&!this.trigger("zoomStart",{originalEvent:r})){let Re=this.eventOffset(r),gt=this.viewToLocation(Re),di=this.locationToLayer(gt,le).translate(-Re.x,-Re.y);this._zoomAround(di,le),this.trigger("zoomEnd",{originalEvent:r})}}_toDocumentCoordinates(r){const c=Lo(this.element);return{left:Gn(r.x+c.left),top:Gn(r.y+c.top)}}}ms(gw,{name:"Map",controls:{attribution:!0,navigator:{panStep:100},zoom:!0},layers:[],layerDefaults:{shape:{style:{fill:{color:"#fff"},stroke:{color:"#aaa",width:.5}}},bubble:{style:{fill:{color:"#fff",opacity:.5},stroke:{color:"#aaa",width:.5}}},marker:{shape:"pinTarget",tooltip:{position:"top"}}},center:[0,0],icons:{type:"font",svgIcons:{}},zoom:3,minSize:256,minZoom:1,maxZoom:19,markers:[],markerDefaults:{shape:"pinTarget",tooltip:{position:"top"}},wraparound:!0,renderPointsAsMarkers:!1}),Gy(gw,["beforeReset","click","markerActivate","markerClick","markerCreated","markerMouseEnter","markerMouseLeave","pan","panEnd","reset","shapeClick","shapeCreated","shapeFeatureCreated","shapeMouseEnter","shapeMouseLeave","zoomEnd","zoomStart"]);const J2="Arial, Helvetica, sans-serif",_w="11px "+J2,$2="12px "+J2,Gx="16px "+J2,Q2="transparent",vw=()=>({icon:{border:{width:1}},label:{font:$2,padding:3},line:{length:10,width:2},visible:!0}),iC=()=>({labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}}),oC=ve=>Object.assign({visible:!0,labels:{font:_w},overlay:ve.gradients?{}:{gradient:"none"},area:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},rangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalRangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},bar:{gap:1.5,spacing:.4},boxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},bubble:{border:{width:0},labels:{background:Q2},opacity:.6},bullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},candlestick:{border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:"#000",width:1},spacing:.3},column:{gap:1.5,spacing:.4},heatmap:{labels:{color:"",background:Q2,visible:!0},highlight:{border:{width:0}}},pie:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},donut:{margin:1},funnel:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},pyramid:iC(),horizontalWaterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4},line:{width:2},notes:vw(),ohlc:{gap:1,highlight:{line:{opacity:1,width:3}},line:{width:1},spacing:.3},radarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},radarLine:{markers:{visible:!1},width:2},polarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},polarLine:{markers:{visible:!1},width:2},rangeBar:{gap:1.5,spacing:.4},rangeColumn:{gap:1.5,spacing:.4},scatterLine:{width:1},verticalArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalBoxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},verticalBullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},verticalLine:{width:2},waterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4}},Wc.reduce((ve,r)=>(ve[r]={color:P,trendline:{},markers:{visible:!1},width:1,dashType:"longDash"},ve),{})),sC=(ve={})=>({axisDefaults:{labels:{font:$2},notes:vw(),title:{font:Gx,margin:5}},categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:oC(ve),title:{font:Gx},subtitle:{font:$2},legend:{labels:{font:$2}}});var ww=i(31502);var Jb=i(12624),mE=i(78645),Xx=i(65619),Dw=i(52572),Mw=(i(47394),i(29028)),aC=i(99397),gv=i(9237),Kg=i(96814),eS=i(24579);i(73942);const lC=["content"];function ly(ve,r){if(1&ve&&(a.TgZ(0,"div",1),a._uU(1),a.qZA()),2&ve){const c=a.oxw();a.Q6J("ngStyle",c.style),a.xp6(1),a.hij(" ",c.value," ")}}function $b(ve,r){if(1&ve&&a._UZ(0,"kendo-chart-crosshair-tooltip",1),2&ve){const c=r.$implicit,m=a.oxw();a.Q6J("key",c)("popupSettings",m.popupSettings)}}function nS(ve,r){}function iS(ve,r){if(1&ve&&a.YNc(0,nS,0,0,"ng-template",5),2&ve){const c=a.oxw(2);a.Q6J("ngTemplateOutlet",c.seriesTooltipTemplateRef)("ngTemplateOutletContext",c.seriesTooltipContext)}}function kw(ve,r){}function Iw(ve,r){if(1&ve&&a.YNc(0,kw,0,0,"ng-template",5),2&ve){const c=a.oxw(2);a.Q6J("ngTemplateOutlet",c.seriesSharedTooltipTemplateRef)("ngTemplateOutletContext",c.seriesSharedTooltipContext)}}function gE(ve,r){if(1&ve&&(a.TgZ(0,"div",3),a.YNc(1,iS,1,2,null,4),a.YNc(2,Iw,1,2,null,4),a.qZA()),2&ve){const c=a.oxw();a.Q6J("ngClass",c.popupClasses)("ngStyle",c.style),a.xp6(1),a.Q6J("ngIf",!c.shared),a.xp6(1),a.Q6J("ngIf",c.shared)}}function oS(ve,r){1&ve&&a._UZ(0,"span",6),2&ve&&a.Q6J("innerHTML",r.formattedValue,a.oJD)}function Aw(ve,r){if(1&ve&&(a.TgZ(0,"td"),a._UZ(1,"span",8),a.qZA()),2&ve){const c=a.oxw().$implicit;a.xp6(1),a.Udp("background-color",c.series.color)}}function Ow(ve,r){if(1&ve&&(a.ynx(0),a._uU(1),a.BQk()),2&ve){const c=a.oxw(2).$implicit;a.xp6(1),a.Oqu(c.series.name)}}function Pw(ve,r){1&ve&&(a.ynx(0),a._uU(1,"\xa0"),a.BQk())}function _E(ve,r){if(1&ve&&(a.TgZ(0,"td"),a.YNc(1,Ow,2,1,"ng-container",4),a.YNc(2,Pw,2,0,"ng-container",4),a.qZA()),2&ve){const c=a.oxw().$implicit;a.xp6(1),a.Q6J("ngIf",void 0!==c.series.name),a.xp6(1),a.Q6J("ngIf",void 0===c.series.name)}}function vE(ve,r){}function rS(ve,r){if(1&ve&&(a.TgZ(0,"tr"),a.YNc(1,Aw,2,2,"td",4),a.YNc(2,_E,3,2,"td",4),a.TgZ(3,"td"),a.YNc(4,vE,0,0,"ng-template",5),a.qZA()()),2&ve){const c=r.$implicit,m=a.oxw(),Z=m.colorMarker,le=m.nameColumn;a.xp6(1),a.Q6J("ngIf",Z),a.xp6(1),a.Q6J("ngIf",le),a.xp6(2),a.Q6J("ngTemplateOutlet",c.template)("ngTemplateOutletContext",c)}}function Rw(ve,r){if(1&ve&&(a.TgZ(0,"table")(1,"tr")(2,"th"),a._uU(3),a.qZA()(),a.YNc(4,rS,5,4,"tr",7),a.qZA()),2&ve){const c=r.points,m=r.categoryText,Z=r.colspan;a.xp6(2),a.uIk("colspan",Z),a.xp6(1),a.hij(" ",m," "),a.xp6(1),a.Q6J("ngForOf",c)}}const Lw=["surface"];function Nw(ve,r){}function yE(ve,r){if(1&ve&&(a.TgZ(0,"div",7),a.YNc(1,Nw,0,0,"ng-template",8),a.qZA()),2&ve){const c=a.oxw();a.Q6J("ngStyle",c.donutCenterStyle),a.xp6(1),a.Q6J("ngTemplateOutlet",c.donutCenterTemplate.templateRef)}}function bE(ve,r){1&ve&&a._UZ(0,"div",9)}function SE(ve,r){1&ve&&a._UZ(0,"div",6)}const Fw=ve=>({x:{location:ve.pageX},y:{location:ve.pageY}});function Bw(ve,r){for(let c=0;c<ve.length;c++)if(r[ve[c]])return!0;return!1}const sS=[{end:"panend",move:"panmove",start:"panstart"},{gesturechange:"pinchmove",gestureend:"pinchend",gesturestart:"pinchstart"},{press:"press"},{tap:"tap"}];class aS{constructor(r,c){this.hammerInstance=r,this.eventHandlers={},this.tap=this.tap.bind(this),this.press=this.press.bind(this),this.panstart=this.panstart.bind(this),this.panmove=this.panmove.bind(this),this.panend=this.panend.bind(this),this.pinchstart=this.pinchstart.bind(this),this.pinchmove=this.pinchmove.bind(this),this.pinchend=this.pinchend.bind(this),c&&this.bind(c)}tap(r){this.trigger("tap",r)}press(r){this.trigger("press",r)}panstart(r){delete this.previous,this.previous=this.trigger("start",r)}panmove(r){this.previous=this.trigger("move",r)}panend(r){this.trigger("end",r),delete this.previous}pinchstart(r){this.trigger("gesturestart",r)}pinchmove(r){this.trigger("gesturechange",r)}pinchend(r){this.trigger("gestureend",r)}trigger(r,c){const m=((ve,r)=>{const c=ve.pointers,m=c[0],Z=m.pageX,le=m.pageY;let Re=0;if(c.length>1){const gt=c[0],hn=c[1];Re=Math.sqrt(Math.pow(gt.pageX-hn.pageX,2)+Math.pow(gt.pageY-hn.pageY,2))}return{distance:Re,event:ve.srcEvent,preventDefault:function(){ve.preventDefault()},target:ve.target,touches:c.map(Fw),type:ve.type,x:{delta:r?Z-r.x.location:0,initialDelta:ve.deltaX,location:Z,startLocation:Z-ve.deltaX},y:{delta:r?le-r.y.location:0,initialDelta:ve.deltaY,location:le,startLocation:le-ve.deltaY}}})(c,this.previous);return this.eventHandlers[r]&&this.eventHandlers[r](m),m}bind(r={}){this.unbind(),this.eventHandlers=r;for(let c=0;c<sS.length;c++){const m=sS[c],Z=Object.keys(m);if(Bw(Z,r))for(let le=0;le<Z.length;le++){const Re=m[Z[le]];this.hammerInstance.on(Re,this[Re])}}}unbind(){this.hammerInstance&&this.hammerInstance.off(),this.eventHandlers={}}destroy(){this.hammerInstance&&(this.hammerInstance.destroy(),delete this.hammerInstance),delete this.eventHandlers}toggleDrag(r){this.toggle("pan",r)}toggleZoom(r){this.toggle("pinch",r)}toggle(r,c){this.hammerInstance&&this.hammerInstance.get(r).set({enable:c})}}const dC=rn.prototype.options.labels.dateFormats,cS={milliseconds:"HH:mm:ss.SSS",seconds:{time:"medium"},minutes:{time:"short"},hours:{time:"short"},days:{skeleton:"Md"},weeks:{skeleton:"Md"},months:{skeleton:"yyMMM"},years:{skeleton:"y"}};Object.assign(il.prototype.options.labels.dateFormats,cS),Object.assign(dC,cS),Wn.register(class lS{static create(r,c){if(typeof window<"u"){const m=window.Hammer;if(!m){if((0,a.X6Q)())throw new Error("Hammerjs is not loaded.Solution: http://www.telerik.com/kendo-angular-ui/components/charts/troubleshooting/#toc-hammerjs-is-not-loaded");return}const Z=new m(r,{recognizers:[[m.Tap],[m.Pan],[m.Pinch],[m.Press,{time:0}]]});return new aS(Z,c)}}});let Xb=(()=>{class ve{constructor(c){this.templateRef=c}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(a.Rgc,8))},ve.\u0275dir=a.lG2({type:ve,selectors:[["","kendoChartDonutCenterTemplate",""]]}),ve})();class uC{constructor(r,c){this.sender=r,this.options=c}}let Xf=(()=>{class ve{constructor(){this.source=new mE.x,this.onItemChange$=this.source.asObservable()}notify(c){this.source.next(c)}}return ve.\u0275fac=function(c){return new(c||ve)},ve.\u0275prov=a.Yz7({token:ve,factory:ve.\u0275fac}),ve})();const zw=1e3/60;class dS{constructor(r,c){this.key=r,this.value=c}}let Pa=(()=>{class ve{constructor(c){this.ngZone=c,this.store={},this.source=new Xx.X({}),this.initSource()}initSource(){this.onFastChange$=this.source.asObservable(),this.onChange$=this.onFastChange$.pipe((0,Mw.e)(zw))}push(c){this.store=c,this.next()}notify(c){this.set(c.key,c.value),this.next()}set(c,m){let Z=this.store;const le=c.split(".");let Re=le.shift();for(;le.length>0;)Z=Z[Re]=Z[Re]||{},Re=le.shift();Z[Re]=m}next(){this.ngZone.runOutsideAngular(()=>{this.source.next(this.store)})}}return ve.\u0275fac=function(c){return new(c||ve)(a.LFG(a.R0b))},ve.\u0275prov=a.Yz7({token:ve,factory:ve.\u0275fac}),ve})();function qb(ve,r){for(const c in ve){if(!Object.hasOwnProperty.call(ve,c))continue;const m=ve[c].currentValue;void 0===m?delete r[c]:r[c]=m}}function hC(ve){const r={};for(const c in ve)Object.hasOwnProperty.call(ve,c)&&(r[c]=new a.WD2(null,ve[c],!1));return r}let cy=(()=>{class ve{constructor(c,m){this.configurationService=c,this.collectionService=m,this.options={},this.hidden=!1,this.subscription=c.onFastChange$.subscribe(Z=>{this.options=Z,this.notify()})}ngOnChanges(c){const m=this.configurationService.store;qb(c,m),this.configurationService.push(m)}notifyChanges(c){this.ngOnChanges(hC(c))}ngOnDestroy(){this.subscription.unsubscribe()}notify(){this.collectionService&&this.collectionService.notify(new uC(this,this.options))}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(Pa),a.Y36(Xf))},ve.\u0275dir=a.lG2({type:ve,features:[a.TTD]}),ve})(),Gl=(()=>{class ve{constructor(c,m){if(this.configKey=c,this.configurationService=m,this.store={},void 0===c)throw new Error("Configuration key not set")}ngOnDestroy(){this.store=void 0,this.notify()}ngOnChanges(c){qb(c,this.store),this.notify()}notifyChanges(c){this.ngOnChanges(hC(c))}markAsVisible(){this.store.visible=!0,this.notify()}notify(){this.configurationService.notify(new dS(this.configKey,this.store))}}return ve.\u0275fac=function(c){a.$Z()},ve.\u0275dir=a.lG2({type:ve,features:[a.TTD]}),ve})(),e2=(()=>{class ve extends Gl{constructor(c){super("tooltip",c),this.configurationService=c,this.markAsVisible()}get seriesTooltipTemplateRef(){return this.seriesTooltipTemplate}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(Pa))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["kendo-chart-series-item-tooltip"]],contentQueries:function(c,m,Z){if(1&c&&a.Suo(Z,a.Rgc,5),2&c){let le;a.iGM(le=a.CRH())&&(m.seriesTooltipTemplate=le.first)}},inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",padding:"padding",visible:"visible"},features:[a.qOj],decls:0,vars:0,template:function(c,m){},encapsulation:2,changeDetection:0}),ve})(),fC=(()=>{class ve{constructor(c){this.templateRef=c}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(a.Rgc,8))},ve.\u0275dir=a.lG2({type:ve,selectors:[["","kendoChartDrilldownSeries",""]]}),ve})();const pC=ve=>void 0!==ve&&!ve;let dy=(()=>{class ve extends cy{constructor(c,m){super(c,m),this.configurationService=c,this.collectionService=m}toggleVisibility(){this.options.visible=pC(this.options.visible),this.notify()}togglePointVisibility(c){const m=this.options.pointVisibility=this.options.pointVisibility||{};m[c]=pC(m[c]),this.notify()}get seriesTooltipTemplateRef(){if(this.seriesTooltip)return this.seriesTooltip.seriesTooltipTemplateRef}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(Pa),a.Y36(Xf))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["kendo-chart-series-item"]],contentQueries:function(c,m,Z){if(1&c&&(a.Suo(Z,e2,5),a.Suo(Z,fC,5)),2&c){let le;a.iGM(le=a.CRH())&&(m.seriesTooltip=le.first),a.iGM(le=a.CRH())&&(m.drilldownTemplate=le.first)}},inputs:{aggregate:"aggregate",autoFit:"autoFit",axis:"axis",border:"border",categoryAxis:"categoryAxis",categoryField:"categoryField",closeField:"closeField",color:"color",colorField:"colorField",connectors:"connectors",currentField:"currentField",dashType:"dashType",data:"data",downColor:"downColor",downColorField:"downColorField",drilldownField:"drilldownField",dynamicHeight:"dynamicHeight",dynamicSlope:"dynamicSlope",errorHighField:"errorHighField",errorLowField:"errorLowField",explodeField:"explodeField",field:"field",fromField:"fromField",gap:"gap",highField:"highField",holeSize:"holeSize",line:"line",lowField:"lowField",lowerField:"lowerField",margin:"margin",maxSize:"maxSize",mean:"mean",meanField:"meanField",median:"median",medianField:"medianField",minSize:"minSize",missingValues:"missingValues",name:"name",neckRatio:"neckRatio",negativeColor:"negativeColor",negativeValues:"negativeValues",noteTextField:"noteTextField",opacity:"opacity",openField:"openField",outliersField:"outliersField",overlay:"overlay",padding:"padding",q1Field:"q1Field",q3Field:"q3Field",segmentSpacing:"segmentSpacing",size:"size",sizeField:"sizeField",spacing:"spacing",stack:"stack",startAngle:"startAngle",style:"style",summaryField:"summaryField",target:"target",toField:"toField",type:"type",upperField:"upperField",visible:"visible",visibleInLegend:"visibleInLegend",visibleInLegendField:"visibleInLegendField",visual:"visual",width:"width",whiskers:"whiskers",xAxis:"xAxis",xErrorHighField:"xErrorHighField",xErrorLowField:"xErrorLowField",xField:"xField",yAxis:"yAxis",yErrorHighField:"yErrorHighField",yErrorLowField:"yErrorLowField",yField:"yField",zIndex:"zIndex",errorBars:"errorBars",extremes:"extremes",highlight:"highlight",labels:"labels",markers:"markers",notes:"notes",outliers:"outliers",tooltip:"tooltip"},features:[a._Bn([Pa]),a.qOj],decls:0,vars:0,template:function(c,m){},encapsulation:2,changeDetection:0}),ve})();const Gw={horizontal:"fit",vertical:"fit"};let mC=(()=>{class ve{constructor(c,m){this.popupService=c,this.localizationService=m,this.style={},this.popupRef=null}get active(){return null!==this.popupRef}show(c){const m=c.anchor.align,Z=this.position(c.anchor.point);if(this.style=c.style,this.popupRef){const le=this.popupRef.popup.instance;le.offset=Z,le.popupAlign=m}else this.popupRef=this.popupService.open(Object.assign({offset:Z,popupAlign:m,animate:this.animate,content:this.templateRef,collision:Gw,positionMode:"absolute"},this.popupSettings)),this.localizationService.rtl&&this.popupRef.popupElement.setAttribute("dir","rtl"),this.onInit()}onInit(){}hide(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)}ngOnDestroy(){this.hide()}position(c){if(!this.popupSettings||!this.popupSettings.appendTo)return c;const m=this.popupSettings.appendTo.element.nativeElement,Z=m.getBoundingClientRect(),{scrollLeft:le,scrollTop:Re}=this.scrollOffset(m);return{left:c.left-Z.left-le,top:c.top-Z.top-Re}}scrollOffset(c){if(!c)return null;let m=c.scrollLeft,Z=c.scrollTop,le=c.parentElement;for(;le;)m+=le.scrollLeft,Z+=le.scrollTop,le=le.parentElement;return{scrollLeft:m,scrollTop:Z}}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(gv.qL),a.Y36(d.oQ))},ve.\u0275dir=a.lG2({type:ve}),ve})();function t2(){if((0,l.X_)())return new a.SBq(document.body)}let uS=(()=>{class ve extends mC{constructor(c,m){super(c,m),this.animate=!1}show(c){super.show(c),this.value=c.value,this.popupRef.popup.changeDetectorRef.detectChanges()}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(gv.qL),a.Y36(d.oQ))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["kendo-chart-crosshair-tooltip"]],viewQuery:function(c,m){if(1&c&&a.Gf(lC,7),2&c){let Z;a.iGM(Z=a.CRH())&&(m.templateRef=Z.first)}},inputs:{key:"key",popupSettings:"popupSettings"},features:[a._Bn([gv.qL,{provide:gv.sG,useFactory:t2}]),a.qOj],decls:2,vars:0,consts:[["content",""],[1,"k-chart-tooltip","k-chart-crosshair-tooltip",3,"ngStyle"]],template:function(c,m){1&c&&a.YNc(0,ly,2,2,"ng-template",null,0,a.W1O)},dependencies:[Kg.PC],encapsulation:2}),ve})();const gC=["categoryAxis","valueAxis","xAxis","yAxis"];let O1=(()=>{class ve{constructor(){this.tooltipKeys=[],this.tooltipsMap={}}show(c){const m=this.crossahirTooltipComponents.toArray(),Z=c.axisName,le=c.axisIndex;for(let Re=0;Re<m.length;Re++)if(m[Re].key===Z+le){m[Re].show(c);break}}hide(){const c=this.crossahirTooltipComponents.toArray();for(let m=0;m<c.length;m++)c[m].hide()}get active(){return this.tooltipKeys.length>0}createCrosshairTooltips(c){const m=this.mapTooltips(c),Z=this.tooltipsMap;for(const le in Z)m[le]||(this.removeTooltip(le),delete Z[le]);for(const le in m)Z[le]||(Z[le]=m[le],this.tooltipKeys.push(le))}removeTooltip(c){const m=this.tooltipKeys;for(let Z=0;Z<m.length;Z++)if(m[Z]===c){m.splice(Z,1);break}}mapTooltips(c){const m={};for(let Z=0;Z<gC.length;Z++){const le=this.axesCrosshairTooltipOptions(c,gC[Z]);for(let Re=0;Re<le.length;Re++){const gt=le[Re];m[gt.name+gt.index]=gt}}return m}axesCrosshairTooltipOptions(c,m){const Z=[];if(c[m]){const le=[].concat(c[m]);for(let Re=0;Re<le.length;Re++){const gt=(le[Re].crosshair||{}).tooltip;gt&&gt.visible&&Z.push({index:Re,name:m})}}return Z}}return ve.\u0275fac=function(c){return new(c||ve)},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["kendo-chart-crosshair-tooltips-container"]],viewQuery:function(c,m){if(1&c&&a.Gf(uS,5),2&c){let Z;a.iGM(Z=a.CRH())&&(m.crossahirTooltipComponents=Z)}},inputs:{popupSettings:"popupSettings"},decls:1,vars:1,consts:[[3,"key","popupSettings",4,"ngFor","ngForOf"],[3,"key","popupSettings"]],template:function(c,m){1&c&&a.YNc(0,$b,1,2,"kendo-chart-crosshair-tooltip",0),2&c&&a.Q6J("ngForOf",m.tooltipKeys)},dependencies:[uS,Kg.sg],encapsulation:2}),ve})(),Zy=(()=>{class ve{constructor(c){this.templateRef=c}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(a.Rgc,8))},ve.\u0275dir=a.lG2({type:ve,selectors:[["","kendoChartSeriesTooltipTemplate",""]]}),ve})(),Ky=(()=>{class ve{constructor(c){this.templateRef=c}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(a.Rgc,8))},ve.\u0275dir=a.lG2({type:ve,selectors:[["","kendoChartSharedTooltipTemplate",""]]}),ve})();class Hw{constructor(r,c,m){this.value=r.value,this.category=r.category,this.categoryIndex=r.categoryIx,this.series=r.series,this.dataItem=r.dataItem,this.percentage=r.percentage,this.runningTotal=r.runningTotal,this.total=r.total,this.low=r.low,this.high=r.high,this.xLow=r.xLow,this.xHigh=r.xHigh,this.yLow=r.yLow,this.yHigh=r.yHigh,this.template=m,this.point=r,this.format=c}get formattedValue(){return this.format?this.point.formatValue(this.format):String(this.value)}}function hS(ve,r){let c=ve;for(;c&&c!==r;)c=c.parentNode;return!!c}let P1=(()=>{class ve{setTemplate(c){this.template=c}getTemplate(c){return this.seriesTemplates&&this.seriesTemplates[c]?this.seriesTemplates[c]:this.template}setSeriesTemplates(c){this.seriesTemplates=c}setSharedTemplate(c){this.sharedTemplate=c}getSharedTemplate(){return this.sharedTemplate}}return ve.\u0275fac=function(c){return new(c||ve)},ve.\u0275prov=a.Yz7({token:ve,factory:ve.\u0275fac}),ve})(),Jy=(()=>{class ve extends mC{constructor(c,m,Z,le){super(c,Z),this.popupService=c,this.templateService=m,this.localizationService=Z,this.ngZone=le,this.seriesTooltipContext={},this.seriesSharedTooltipContext={},this.animate=!0,this.wrapperClass="k-chart-tooltip-wrapper",this.leave=new a.vpe,this.popupClasses={}}show(c){this.shared=c.shared,this.popupClasses=Object.assign({"k-chart-shared-tooltip":c.shared,"k-chart-tooltip":!0,[c.className]:!!c.className},this.classNames),c.shared?(this.seriesSharedTooltipTemplateRef=this.templateService.getSharedTemplate()||this.defaultSharedTooltipTemplate.templateRef,this.seriesSharedTooltipContext=this.sharedTemplateContext(c)):(this.seriesTooltipContext=new Hw(c.point,c.format),this.seriesTooltipTemplateRef=this.pointTemplateRef(c.point)),super.show(c)}containsElement(c){if(this.popupRef)return hS(c,this.popupRef.popupElement)}sharedTemplateContext(c){const Z=c.points.filter(gt=>typeof gt.series.name<"u").length>0,le=c.series.length>1;let Re=1;return Z&&Re++,le&&Re++,{category:c.category,categoryText:c.categoryText,colorMarker:le,colspan:Re,nameColumn:Z,points:this.wrapPoints(c.points,c.format)}}pointTemplateRef(c){return this.templateService.getTemplate(c.series.index)||this.defaultSeriesTooltipTemplate.templateRef}wrapPoints(c,m){const Z=[];for(let le=0;le<c.length;le++){const Re=c[le],gt=this.pointTemplateRef(Re);Z.push(new Hw(Re,((Re.options||{}).tooltip||{}).format||m,gt))}return Z}onInit(){this.ngZone.runOutsideAngular(()=>{this.mouseleaveSubscription=this.popupRef.popupElement.addEventListener("mouseleave",c=>{this.leave.emit(c)})}),this.popupRef.popupElement.className+=` ${this.wrapperClass}`}hide(){this.mouseleaveSubscription&&(this.mouseleaveSubscription(),this.mouseleaveSubscription=null),super.hide()}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(gv.qL),a.Y36(P1),a.Y36(d.oQ),a.Y36(a.R0b))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["kendo-chart-tooltip-popup"]],viewQuery:function(c,m){if(1&c&&(a.Gf(Zy,5),a.Gf(Ky,5),a.Gf(lC,7)),2&c){let Z;a.iGM(Z=a.CRH())&&(m.defaultSeriesTooltipTemplate=Z.first),a.iGM(Z=a.CRH())&&(m.defaultSharedTooltipTemplate=Z.first),a.iGM(Z=a.CRH())&&(m.templateRef=Z.first)}},inputs:{animate:"animate",classNames:"classNames",popupSettings:"popupSettings",wrapperClass:"wrapperClass"},outputs:{leave:"leave"},features:[a._Bn([gv.qL,{provide:gv.sG,useFactory:t2}]),a.qOj],decls:4,vars:0,consts:[["content",""],["kendoChartSeriesTooltipTemplate",""],["kendoChartSharedTooltipTemplate",""],[3,"ngClass","ngStyle"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"],[4,"ngFor","ngForOf"],[1,"k-chart-shared-tooltip-marker"]],template:function(c,m){1&c&&(a.YNc(0,gE,3,4,"ng-template",null,0,a.W1O),a.YNc(2,oS,1,1,"ng-template",1),a.YNc(3,Rw,5,3,"ng-template",2))},dependencies:[Kg.mk,Kg.PC,Kg.O5,Kg.tP,Zy,Ky,Kg.sg],encapsulation:2}),ve})();class fS extends pt{constructor(r){super(r),this.handlerMap={hideTooltip:"onHideTooltip",legendItemClick:"onLegendItemClick",render:"onRender",showTooltip:"onShowTooltip",init:"onInit"}}}const _C=ve=>`${ve.fontWeight} ${ve.fontSize} ${ve.fontFamily}`,mS=ve=>window.getComputedStyle(ve).backgroundColor;let n2=(()=>{class ve extends Pa{constructor(c){super(c),this.loaded=!1}loadTheme(){this.loaded||!(0,l.X_)()||(this.readTheme()||this.readDefaultTheme(),this.loaded=!0,this.next())}readTheme(){this.createElement();const c=this.queryColor("primary")!==this.queryColor("primary-contrast");try{c&&(this.push(sC()),this.setColors(),this.setFonts(),this.setSeriesColors())}finally{this.destroyElement()}return c}readDefaultTheme(){this.push(Object.assign({},sC(),{axisDefaults:{crosshair:{color:"rgba(0, 0, 0, 0.5)"},labels:{color:"rgb(101, 101, 101)",font:"12px serif"},line:{color:"rgba(0, 0, 0, 0.08)"},majorGridLines:{color:"rgba(0, 0, 0, 0.08)"},minorGridLines:{color:"rgba(0, 0, 0, 0.04)"},notes:{icon:{background:"rgba(0, 0, 0, 0.5)",border:{color:"rgba(0, 0, 0, 0.5)"}},line:{color:"rgba(0, 0, 0, 0.5)"},label:{font:"14px serif"}},title:{color:"rgb(101, 101, 101)",font:"14px serif"}},chartArea:{background:"rgb(255, 255, 255)"},legend:{inactiveItems:{labels:{color:"rgba(102, 102, 102, 0.5)"},markers:{color:"rgba(102, 102, 102, 0.5)"}},labels:{color:"rgb(101, 101, 101)",font:"14px serif"}},seriesDefaults:{boxPlot:{downColor:"rgba(0, 0, 0, 0.08)",mean:{color:"rgb(246, 246, 246)"},median:{color:"rgb(246, 246, 246)"},whiskers:{color:"rgb(255, 99, 88)"}},bullet:{target:{color:"rgb(101, 101, 101)"}},candlestick:{downColor:"rgb(101, 101, 101)",line:{color:"rgb(101, 101, 101)"}},errorBars:{color:"rgba(0, 0, 0, 0.5)"},horizontalWaterfall:{line:{color:"rgba(0, 0, 0, 0.08)"}},icon:{border:{color:"rgba(0, 0, 0, 0.08)"}},labels:{background:"rgb(255, 255, 255)",color:"rgb(101, 101, 101)",opacity:.8,font:"12px serif"},notes:{icon:{background:"rgba(0, 0, 0, 0.5)",border:{color:"rgba(0, 0, 0, 0.5)"}},line:{color:"rgba(0, 0, 0, 0.5)"},label:{font:"14px serif"}},overlay:{gradient:"none"},verticalBoxPlot:{downColor:"rgba(0, 0, 0, 0.08)",mean:{color:"rgb(246, 246, 246)"},median:{color:"rgb(246, 246, 246)"},whiskers:{color:"rgb(255, 99, 88)"}},verticalBullet:{target:{color:"rgb(101, 101, 101)"}},waterfall:{line:{color:"rgba(0, 0, 0, 0.08)"}},area:{opacity:.8}},title:{color:"rgb(101, 101, 101)",font:"16px serif"},seriesColors:["rgb(255, 99, 88)","rgb(255, 210, 70)","rgb(120, 210, 55)","rgb(40, 180, 200)","rgb(45, 115, 245)","rgb(170, 70, 190)"]}))}createElement(){const c=this.element=document.createElement("div");c.style.display="none",c.innerHTML=`\n    <div class="k-var--primary"></div>\n    <div class="k-var--primary-contrast"></div>\n    <div class="k-var--base"></div>\n    <div class="k-var--background"></div>\n\n    <div class="k-var--normal-background"></div>\n    <div class="k-var--normal-text-color"></div>\n    <div class="k-var--hover-background"></div>\n    <div class="k-var--hover-text-color"></div>\n    <div class="k-var--selected-background"></div>\n    <div class="k-var--selected-text-color"></div>\n    <div class="k-var--chart-error-bars-background"></div>\n    <div class="k-var--chart-notes-background"></div>\n    <div class="k-var--chart-notes-border"></div>\n    <div class="k-var--chart-notes-lines"></div>\n    <div class="k-var--chart-crosshair-background"></div>\n\n    <div class="k-var--chart-inactive"></div>\n    <div class="k-var--chart-major-lines"></div>\n    <div class="k-var--chart-minor-lines"></div>\n    <div class="k-var--chart-area-opacity"></div>\n    <div class="k-var--chart-area-inactive-opacity"></div>\n    <div class="k-var--chart-line-inactive-opacity"></div>\n\n    <div class="k-widget k-chart">\n        <div class="k-var--chart-font"></div>\n        <div class="k-var--chart-title-font"></div>\n        <div class="k-var--chart-pane-title-font"></div>\n        <div class="k-var--chart-label-font"></div>\n    </div>\n\n    <div class="k-var--series-unset"></div>\n    <div class="k-var--series">\n      ${(()=>{let ve='\n      <div class="k-var--series-a"></div>\n      <div class="k-var--series-b"></div>\n      <div class="k-var--series-c"></div>\n      <div class="k-var--series-d"></div>\n      <div class="k-var--series-e"></div>\n      <div class="k-var--series-f"></div>\n  ';for(let r=0;r<30;r++)ve+=`\n      <div class="k-var--series-${r+1}"></div>`;return ve})()}\n    </div>\n`,document.body.appendChild(c)}destroyElement(){this.element&&(document.body.removeChild(this.element),this.element=void 0)}setStyle(c,m){this.set(c,m)}setColors(){this.mapColor("axisDefaults.crosshair.color","chart-crosshair-background"),this.mapColor("axisDefaults.labels.color","normal-text-color"),this.mapColor("axisDefaults.line.color","chart-major-lines"),this.mapColor("axisDefaults.majorGridLines.color","chart-major-lines"),this.mapColor("axisDefaults.minorGridLines.color","chart-minor-lines"),this.mapColor("axisDefaults.notes.icon.background","chart-notes-background"),this.mapColor("axisDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("axisDefaults.notes.line.color","chart-notes-lines"),this.mapColor("axisDefaults.title.color","normal-text-color"),this.mapColor("chartArea.background","background"),this.mapColor("legend.inactiveItems.labels.color","chart-inactive"),this.mapColor("legend.inactiveItems.markers.color","chart-inactive"),this.mapColor("legend.labels.color","normal-text-color"),this.mapColor("seriesDefaults.boxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.boxPlot.mean.color","base"),this.mapColor("seriesDefaults.boxPlot.median.color","base"),this.mapColor("seriesDefaults.boxPlot.whiskers.color","primary"),this.mapColor("seriesDefaults.bullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.candlestick.downColor","normal-text-color"),this.mapColor("seriesDefaults.candlestick.line.color","normal-text-color"),this.mapColor("seriesDefaults.errorBars.color","chart-error-bars-background"),this.mapColor("seriesDefaults.horizontalWaterfall.line.color","chart-major-lines"),this.mapColor("seriesDefaults.icon.border.color","chart-major-lines"),this.mapColor("seriesDefaults.labels.background","background"),this.mapColor("seriesDefaults.labels.color","normal-text-color"),this.mapColor("seriesDefaults.notes.icon.background","chart-notes-background"),this.mapColor("seriesDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("seriesDefaults.notes.line.color","chart-notes-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.mean.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.median.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.whiskers.color","primary"),this.mapColor("seriesDefaults.verticalBullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.waterfall.line.color","chart-major-lines"),this.mapColor("title.color","normal-text-color"),this.mapColor("subtitle.color","normal-text-color");const c=parseFloat(this.queryStyle("chart-area-opacity").opacity);isNaN(c)||(this.setStyle("seriesDefaults.area.opacity",c),this.setStyle("seriesDefaults.radarArea.opacity",c),this.setStyle("seriesDefaults.verticalArea.opacity",c),this.setStyle("seriesDefaults.labels.opacity",c)),this.setInactiveOpacity(["area","verticalArea"],"chart-area-inactive-opacity"),this.setInactiveOpacity(["line","verticalLine"],"chart-line-inactive-opacity")}setInactiveOpacity(c,m){const Z=parseFloat(this.queryStyle(m).opacity);!isNaN(Z)&&Z<1&&c.forEach(le=>this.setStyle(`seriesDefaults.${le}.highlight.inactiveOpacity`,Z))}setFonts(){const c=_C(this.queryStyle("chart-font")),m=_C(this.queryStyle("chart-title-font")),Z=_C(this.queryStyle("chart-pane-title-font")),le=_C(this.queryStyle("chart-label-font"));this.setStyle("axisDefaults.labels.font",le),this.setStyle("axisDefaults.notes.label.font",c),this.setStyle("axisDefaults.title.font",c),this.setStyle("legend.labels.font",c),this.setStyle("seriesDefaults.labels.font",le),this.setStyle("seriesDefaults.notes.label.font",c),this.setStyle("title.font",m),this.setStyle("subtitle.font",Z),this.setStyle("paneDefaults.title.font",Z)}setSeriesColors(){const c=this.element,m=[].slice.call(c.querySelectorAll(".k-var--series div")),Z=mS(c.querySelector(".k-var--series-unset")),le=m.reduce((Re,gt)=>{const hn=(ve=>{const r=ve.match(/series-([a-z])$/);if(null!==r)return(ve=>ve.toLowerCase().charCodeAt(0)-"a".charCodeAt(0))(r[1]);const c=ve.split("--series-")[1];return parseInt(c,10)-1})(gt.className),di=mS(gt);return di!==Z&&(Re[hn]=di),Re},[]);this.setStyle("seriesColors",le)}mapColor(c,m){this.setStyle(c,this.queryColor(m))}queryColor(c){return this.queryStyle(c).backgroundColor}queryStyle(c){const m=this.element.querySelector(`.k-var--${c}`);return window.getComputedStyle(m)}}return ve.\u0275fac=function(c){return new(c||ve)(a.LFG(a.R0b))},ve.\u0275prov=a.Yz7({token:ve,factory:ve.\u0275fac}),ve})(),W_=(()=>{class ve{constructor(c){this.sender=c}}return ve.\u0275fac=function(c){a.$Z()},ve.\u0275dir=a.lG2({type:ve}),ve})(),Rv=(()=>{class ve extends W_{constructor(){super(...arguments),this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}return ve.\u0275fac=function(){let r;return function(m){return(r||(r=a.n5z(ve)))(m||ve)}}(),ve.\u0275dir=a.lG2({type:ve,features:[a.qOj]}),ve})();class yS extends Rv{constructor(r,c){super(c),this.series=r.series,this.seriesIndex=r.seriesIndex,this.pointIndex=r.pointIndex,this.text=r.text}}class bS extends W_{constructor(r,c){super(c),this.category=r.category,this.dataItem=r.dataItem,this.series=r.series,this.value=r.value,this.visual=r.visual}}class $w extends W_{constructor(r,c){super(c)}}class bC extends Rv{constructor(r,c){super(c),this.category=r.category,this.dataItem=r.dataItem,this.originalEvent=r.originalEvent,this.percentage=r.percentage,this.point=r.point,this.series=r.series,this.stackValue=r.stackValue,this.value=r.value}}const tn={axisLabelClick:class vS extends W_{constructor(r,c){super(c),this.axis=r.axis,this.dataItem=r.dataItem,this.index=r.index,this.text=r.text,this.value=r.value}},drag:class wE extends Rv{constructor(r,c){super(c),this.axisRanges=r.axisRanges,this.originalEvent=r.originalEvent}},dragEnd:class Yw extends W_{constructor(r,c){super(c),this.axisRanges=r.axisRanges,this.originalEvent=r.originalEvent}},dragStart:class o2 extends Rv{constructor(r,c){super(c),this.axisRanges=r.axisRanges,this.originalEvent=r.originalEvent}},legendItemHover:class Zw extends yS{preventDefault(){super.preventDefault()}},legendItemLeave:class EE extends yS{preventDefault(){}isDefaultPrevented(){return!1}},noteClick:class Kw extends bS{},noteHover:class TE extends bS{},noteLeave:class DE extends bS{},paneRender:class ME extends W_{constructor(r,c){super(c),Object.assign(this,r)}},plotAreaClick:class kE extends W_{constructor(r,c){super(c),this.category=r.category,this.originalEvent=r.originalEvent,this.value=r.value,this.x=r.x,this.y=r.y}},plotAreaHover:class IE extends W_{constructor(r,c){super(c),this.category=r.category,this.originalEvent=r.originalEvent,this.value=r.value,this.x=r.x,this.y=r.y}},plotAreaLeave:class Jw extends W_{},render:$w,select:class AE extends Rv{constructor(r,c){super(c),this.axis=r.axis,this.from=r.from,this.to=r.to}},selectEnd:class OE extends W_{constructor(r,c){super(c),this.axis=r.axis,this.from=r.from,this.to=r.to}},selectStart:class PE extends Rv{constructor(r,c){super(c),this.axis=r.axis,this.from=r.from,this.to=r.to}},seriesClick:class RE extends W_{constructor(r,c){super(c),this.category=r.category,this.dataItem=r.dataItem,this.originalEvent=r.originalEvent,this.percentage=r.percentage,this.point=r.point,this.series=r.series,this.stackValue=r.stackValue,this.value=r.value}},seriesHover:class LE extends bC{},seriesOver:class N extends bC{},seriesLeave:class Y extends bC{},zoom:class ae extends Rv{constructor(r,c){super(c),this.axisRanges=r.axisRanges,this.delta=r.delta,this.originalEvent=r.originalEvent}},zoomEnd:class ke extends W_{constructor(r,c){super(c),this.axisRanges=r.axisRanges,this.originalEvent=r.originalEvent}},zoomStart:class et extends Rv{constructor(r,c){super(c),this.axisRanges=r.axisRanges,this.originalEvent=r.originalEvent}}};class ni{create(r,c,m){if(tn[r])return new tn[r](c,m)}}class Hi extends yS{preventDefault(){super.preventDefault()}}const lo={name:"@progress/kendo-angular-charts",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1694532950,version:"13.5.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};let Yo=(()=>{class ve{constructor(c,m,Z){this.configKey=c,this.configurationService=m,this.collectionService=Z,this.items=[],this.subscription=Z.onItemChange$.subscribe(le=>this.processChanges(le))}ngOnDestroy(){this.subscription.unsubscribe()}ngAfterContentInit(){this.readItems(),this.children.changes.subscribe(()=>this.readItems())}processChanges(c){if(!this.children)return;const m=this.children.toArray().filter(Z=>!Z.hidden).indexOf(c.sender);m<0||(this.items[m]=c.options,this.change())}readItems(){this.items=this.children.filter(c=>!c.hidden).map(c=>c.options),this.change()}change(){this.configurationService.notify(new dS(this.configKey,0===this.items.length?void 0:this.items))}}return ve.\u0275fac=function(c){a.$Z()},ve.\u0275dir=a.lG2({type:ve}),ve})(),Tr=(()=>{class ve extends Yo{constructor(c,m,Z,le){super("series",c,m),this.configurationService=c,this.collectionService=m,this.tooltipTemplateService=Z,this.viewContainer=le}ngAfterContentChecked(){this.readTooltipTemplates()}readTooltipTemplates(){const c=this.children.map(m=>m.seriesTooltipTemplateRef);this.tooltipTemplateService.setSeriesTemplates(c)}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(Pa),a.Y36(Xf),a.Y36(P1),a.Y36(a.s_b))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["kendo-chart-series"]],contentQueries:function(c,m,Z){if(1&c&&a.Suo(Z,dy,5),2&c){let le;a.iGM(le=a.CRH())&&(m.children=le)}},features:[a._Bn([Xf]),a.qOj],decls:0,vars:0,template:function(c,m){},encapsulation:2,changeDetection:0}),ve})();class Kr extends Rv{constructor(r,c){super(c),this.value=r.value,this.point=r.point,this.series=r.series}}function Fs(ve){return ve.observers.length>0}let Qs=(()=>{class ve{constructor(c,m,Z,le,Re,gt,hn,di,no){this.configurationService=c,this.themeService=m,this.element=Z,this.intl=le,this.localizationService=Re,this.ngZone=gt,this.instanceEventService=hn,this.changeDetector=di,this.renderer=no,this.axisLabelClick=new a.vpe,this.drag=new a.vpe,this.dragEnd=new a.vpe,this.dragStart=new a.vpe,this.legendItemHover=new a.vpe,this.legendItemLeave=new a.vpe,this.noteClick=new a.vpe,this.noteHover=new a.vpe,this.noteLeave=new a.vpe,this.paneRender=new a.vpe,this.plotAreaClick=new a.vpe,this.plotAreaHover=new a.vpe,this.plotAreaLeave=new a.vpe,this.render=new a.vpe,this.select=new a.vpe,this.selectEnd=new a.vpe,this.selectStart=new a.vpe,this.seriesClick=new a.vpe,this.drilldown=new a.vpe,this.seriesHover=new a.vpe,this.seriesOver=new a.vpe,this.seriesLeave=new a.vpe,this.zoom=new a.vpe,this.zoomEnd=new a.vpe,this.zoomStart=new a.vpe,this.legendItemClick=new a.vpe,this.drilldownLevelChange=new a.vpe,this.resizeRateLimit=10,this.showLicenseWatermark=!1,this.theme=null,this.suppressTransitions=!1,this.rtl=!1,this.hostClasses=["k-chart","k-widget"],this.drilldownState=[];const Mo=(0,Jb.s)(lo);this.showLicenseWatermark=(0,l.Gk)(Mo),this.themeService.loadTheme(),this.refreshWait()}get drilldownLevel(){return this.drilldownState.length}set drilldownLevel(c){const m=this.drilldownState.length;if(m<=c||!this.seriesComponents)return;const Z=this.drilldownState.slice(c);Z.forEach(le=>le.destroy()),this.drilldownState=this.drilldownState.slice(0,m-Z.length),this.seriesComponents.toArray().slice(-Z.length-1).forEach(le=>le.hidden=!1),this.drilldownLevelChange.emit(c)}ngOnInit(){this.element&&(this.hostClasses.forEach(c=>{this.renderer.addClass(this.element.nativeElement,c)}),this.renderer.setStyle(this.element.nativeElement,"position","relative"))}ngAfterViewInit(){this.canRender&&this.ngZone.runOutsideAngular(()=>{const c=this.renderer.listen(this.surfaceElement.nativeElement,"mouseleave",this.chartMouseleave.bind(this));this.domSubscriptions=()=>{c()}}),this.setDirection(),this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.subscriptions.add(this.localizationService.changes.subscribe(this.rtlChange.bind(this)))}onDrilldown(c){const m=new Kr(c,this);if(this.run(()=>this.drilldown.emit(m)),m.isDefaultPrevented())return;const Z=this.seriesCollectionComponent.first,le=this.seriesComponents.find(Re=>Re.name===c.series.name);if(le.drilldownTemplate){le.hidden=!0;const Re=Z.viewContainer.createEmbeddedView(le.drilldownTemplate.templateRef,{drilldownValue:c.value,point:c.point,series:c.series});Re.markForCheck(),this.drilldownState.push(Re),this.drilldownLevelChange.emit(this.drilldownLevel)}}ngAfterViewChecked(){this.instance&&this.autoResize&&this.ngZone.runOutsideAngular(()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.resize()},0)})}ngOnChanges(c){const m=this.configurationService.store;qb(c,m),m.popupSettings=null,this.configurationService.push(m)}notifyChanges(c){this.ngOnChanges(hC(c))}ngOnDestroy(){this.destroyed=!0,this.optionsChange&&this.optionsChange.unsubscribe(),this.domSubscriptions&&(this.domSubscriptions(),this.domSubscriptions=null),this.instance&&(this.instance.destroy(),this.instance=null),this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.resizeTimeout),clearTimeout(this.redrawTimeout)}createInstance(c,m){this.instance=new f0(c,this.options,this.theme,{intlService:this.intl,observer:m,rtl:this.rtl,sender:this})}exportImage(c={}){return function Sw(ve,r){const c={width:"800px",height:"600px",cors:"Anonymous"};let m=ve;const Z=ve.clippedBBox();if(Z){const Mo=Z.getOrigin();m=new ht.Z,m.transform((0,Tt.Z)().translate(-Mo.x,-Mo.y)),m.children.push(ve);const ir=Z.getSize();c.width=ir.width+"px",c.height=ir.height+"px"}const le=Object.assign(c,r),Re=document.createElement("div"),gt=Re.style;gt.display="none",gt.width=le.width,gt.height=le.height,document.body.appendChild(Re);const hn=new L_(Re,le);hn.suspendTracking(),hn.draw(m);const di=hn.image(),no=()=>{hn.destroy(),document.body.removeChild(Re)};return di.then(no,no),di}(this.exportVisual(c),c)}exportSVG(c={}){return function Tw(ve,r){let c=function Ew(ve){const r=new Nf({skipBaseHref:!0}),c=ve.clippedBBox();let m=ve;if(c){const le=c.getOrigin(),Re=new ht.Z;Re.transform((0,Tt.Z)().translate(-le.x,-le.y)),Re.children.push(ve),m=Re}r.load([m]);const Z=`<?xml version='1.0' ?><svg xmlns='${Sf}' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'>${r.render()}</svg>`;return r.destroy(),Z}(ve);return(!r||!r.raw)&&(c="data:image/svg+xml;base64,"+(0,ww.Z)(c)),(0,hh.Z)().resolve(c)}(this.exportVisual(c),c)}exportVisual(c={}){return this.instance.exportVisual(c)}findAxisByName(c){if(this.instance)return this.instance.findAxisByName(c)}findPaneByIndex(c){if(this.instance)return this.instance.findPaneByIndex(c)}findPaneByName(c){if(this.instance)return this.instance.findPaneByName(c)}getPlotArea(){if(this.instance)return this.instance.plotArea()}toggleHighlight(c,m){this.instance&&this.instance.toggleHighlight(c,m)}hideTooltip(){this.instance&&this.instance.hideTooltip()}showTooltip(c){this.instance&&this.instance.showTooltip(c)}init(){if(!this.canRender)return;const c=this.surfaceElement.nativeElement,m=new fS(this);this.createInstance(c,m)}resize(){this.instance&&this.instance.resize()}onResize(){this.autoResize&&this.resize()}onLegendItemClick(c){this.run(()=>{const m=new Hi(c,this);if(this.legendItemClick.emit(m),!m.isDefaultPrevented()){const Z=this.seriesComponents.toArray()[c.series.index];if(!Z)return;void 0===c.pointIndex?Z.toggleVisibility():Z.togglePointVisibility(c.pointIndex),this.suppressTransitions=!0}},Fs(this.legendItemClick),this.seriesComponents.length>0)}onInit(c){this.instance=c.sender}onRender(c){const m=this.getDonutCenterStyle();this.run(()=>{const Z=new $w(c,this);this.surface=c.sender.surface,this.render.emit(Z),this.donutCenterStyle=m},Fs(this.render),this.donutCenterStyle!==m)}onShowTooltip(c){this.run(()=>{c.crosshair?this.crossahirTooltips.show(c):this.tooltipInstance.show(c)},!c.crosshair,!0)}onHideTooltip(c){c.crosshair?this.crossahirTooltips.active&&(this.crossahirTooltips.hide(),this.detectChanges()):this.tooltipInstance.active&&(this.tooltipInstance.hide(),this.detectChanges())}trigger(c,m){if("resize"===c)return;if("drilldown"===c)return void this.onDrilldown(m);const Z=this.activeEmitter(c);if(Z){const le=this.instanceEventService.create(c,m,this);return this.run(()=>{Z.emit(le)}),le.isDefaultPrevented&&le.isDefaultPrevented()}}requiresHandlers(c){for(let m=0;m<c.length;m++)if(this.activeEmitter(c[m]))return!0;return!1}refresh(){if(clearTimeout(this.redrawTimeout),this.updateDirection(),this.crossahirTooltips.createCrosshairTooltips(this.options),this.setChartAreaSize(),!this.instance)return void this.init();const c=this.options.transitions;this.suppressTransitions&&(this.options.transitions=!1),this.updateOptions(),this.suppressTransitions&&(this.options.transitions=c,this.suppressTransitions=!1)}setChartAreaSize(){if(!this.element)return;const c=this.element.nativeElement,m=this.options.chartArea||{};m.width&&(c.style.width=`${m.width}px`),m.height&&(c.style.height=`${m.height}px`)}updateOptions(){this.instance.setOptions(this.options)}tooltipMouseleave(c){const m=c.relatedTarget;this.instance&&(!m||!hS(m,this.element.nativeElement))&&this.instance.hideElements()}chartMouseleave(c){const m=c.relatedTarget,Z=this.element.nativeElement;this.instance&&(!m||!this.tooltipInstance.containsElement(m)&&!hS(m,Z))&&!this.instance.handlingTap&&this.instance.hideElements()}get canRender(){return(0,l.X_)()&&!!this.surfaceElement}get autoResize(){return this.resizeRateLimit>0}activeEmitter(c){const m=this[c];if(m&&m.emit&&Fs(m))return m}getDonutCenterStyle(){if(!this.instance||!this.options||!this.options.series)return;const c=this.options.series[0],m=this.instance._plotArea.charts;if(!c||"donut"!==c.type||!m||0===m[0].points.length)return;const Z=m[0].points[0],le=Z.box.center(),Re=Z.sector.innerRadius,di=2*Re;return{height:di+"px",left:le.x-Re+"px",top:le.y-Re+"px",width:di+"px"}}refreshWait(){this.ngZone.runOutsideAngular(()=>{this.optionsChange=(0,Dw.a)(this.configurationService.onChange$,this.themeService.onChange$).pipe((0,aC.b)(c=>{this.options=c[0],this.theme=c[1]}),(0,Mw.e)(zw)).subscribe(()=>{this.refresh()})})}run(c,m=!0,Z){m?(Z&&this.changeDetector.markForCheck(),this.ngZone.run(c)):(c(),Z&&this.detectChanges())}detectChanges(){this.destroyed||this.changeDetector.detectChanges()}intlChange(){this.instance&&this.deferredRedraw()}rtlChange(){this.instance&&this.rtl!==this.isRTL&&this.deferredRedraw()}deferredRedraw(){this.ngZone.runOutsideAngular(()=>{clearTimeout(this.redrawTimeout),this.redrawTimeout=setTimeout(()=>{this.updateDirection(),this.instance.noTransitionsRedraw()},0)})}updateDirection(){const c=this.isRTL;this.rtl!==c&&(this.setDirection(),this.instance&&this.instance.setDirection(c))}setDirection(){this.rtl=this.isRTL,this.element&&this.renderer.setAttribute(this.element.nativeElement,"dir",this.rtl?"rtl":"ltr")}get isRTL(){return!!this.localizationService.rtl}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(Pa),a.Y36(n2),a.Y36(a.SBq),a.Y36(u.aJ),a.Y36(d.oQ),a.Y36(a.R0b),a.Y36(ni),a.Y36(a.sBO),a.Y36(a.Qsj))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["kendo-chart"]],contentQueries:function(c,m,Z){if(1&c&&(a.Suo(Z,Xb,5),a.Suo(Z,Tr,4),a.Suo(Z,dy,5)),2&c){let le;a.iGM(le=a.CRH())&&(m.donutCenterTemplate=le.first),a.iGM(le=a.CRH())&&(m.seriesCollectionComponent=le),a.iGM(le=a.CRH())&&(m.seriesComponents=le)}},viewQuery:function(c,m){if(1&c&&(a.Gf(Jy,7),a.Gf(O1,7),a.Gf(Lw,7)),2&c){let Z;a.iGM(Z=a.CRH())&&(m.tooltipInstance=Z.first),a.iGM(Z=a.CRH())&&(m.crossahirTooltips=Z.first),a.iGM(Z=a.CRH())&&(m.surfaceElement=Z.first)}},inputs:{pannable:"pannable",renderAs:"renderAs",seriesColors:"seriesColors",subtitle:"subtitle",title:"title",transitions:"transitions",zoomable:"zoomable",axisDefaults:"axisDefaults",categoryAxis:"categoryAxis",chartArea:"chartArea",legend:"legend",panes:"panes",paneDefaults:"paneDefaults",plotArea:"plotArea",series:"series",seriesDefaults:"seriesDefaults",tooltip:"tooltip",valueAxis:"valueAxis",xAxis:"xAxis",yAxis:"yAxis",resizeRateLimit:"resizeRateLimit",popupSettings:"popupSettings",drilldownLevel:"drilldownLevel"},outputs:{axisLabelClick:"axisLabelClick",drag:"drag",dragEnd:"dragEnd",dragStart:"dragStart",legendItemHover:"legendItemHover",legendItemLeave:"legendItemLeave",noteClick:"noteClick",noteHover:"noteHover",noteLeave:"noteLeave",paneRender:"paneRender",plotAreaClick:"plotAreaClick",plotAreaHover:"plotAreaHover",plotAreaLeave:"plotAreaLeave",render:"render",select:"select",selectEnd:"selectEnd",selectStart:"selectStart",seriesClick:"seriesClick",drilldown:"drilldown",seriesHover:"seriesHover",seriesOver:"seriesOver",seriesLeave:"seriesLeave",zoom:"zoom",zoomEnd:"zoomEnd",zoomStart:"zoomStart",legendItemClick:"legendItemClick",drilldownLevelChange:"drilldownLevelChange"},exportAs:["kendoChart"],features:[a._Bn([Pa,P1,ni,d.oQ,{provide:d.mM,useValue:"kendo.chart"}]),a.TTD],decls:7,vars:5,consts:[[1,"k-chart-surface"],["surface",""],[3,"popupSettings"],[3,"popupSettings","leave"],[3,"rateLimit","resize"],["class","k-chart-donut-center",3,"ngStyle",4,"ngIf"],["kendoWatermarkOverlay","",4,"ngIf"],[1,"k-chart-donut-center",3,"ngStyle"],[3,"ngTemplateOutlet"],["kendoWatermarkOverlay",""]],template:function(c,m){1&c&&(a._UZ(0,"div",0,1)(2,"kendo-chart-crosshair-tooltips-container",2),a.TgZ(3,"kendo-chart-tooltip-popup",3),a.NdJ("leave",function(le){return m.tooltipMouseleave(le)}),a.qZA(),a.TgZ(4,"kendo-resize-sensor",4),a.NdJ("resize",function(){return m.onResize()}),a.qZA(),a.YNc(5,yE,2,2,"div",5),a.YNc(6,bE,1,0,"div",6)),2&c&&(a.xp6(2),a.Q6J("popupSettings",m.popupSettings),a.xp6(1),a.Q6J("popupSettings",m.popupSettings),a.xp6(1),a.Q6J("rateLimit",m.resizeRateLimit),a.xp6(1),a.Q6J("ngIf",m.donutCenterStyle&&m.donutCenterTemplate),a.xp6(1),a.Q6J("ngIf",m.showLicenseWatermark))},dependencies:[O1,Jy,l.NG,l.nA,Kg.O5,Kg.PC,Kg.tP],encapsulation:2,changeDetection:0}),ve})(),Na=(()=>{class ve extends Gl{constructor(c){super("axisDefaults",c),this.configurationService=c}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(Pa))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["kendo-chart-axis-defaults"]],inputs:{background:"background",color:"color",line:"line",majorGridLines:"majorGridLines",majorTicks:"majorTicks",minorGridLines:"minorGridLines",minorTicks:"minorTicks",narrowRange:"narrowRange",pane:"pane",plotBands:"plotBands",reverse:"reverse",startAngle:"startAngle",visible:"visible",crosshair:"crosshair",labels:"labels",title:"title"},features:[a.qOj],decls:0,vars:0,template:function(c,m){},encapsulation:2,changeDetection:0}),ve})(),ic=(()=>{class ve extends Gl{constructor(c){super("axisDefaults.labels",c),this.configurationService=c}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(Pa))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["kendo-chart-axis-defaults-labels"]],inputs:{content:"content",font:"font",format:"format",margin:"margin",mirror:"mirror",padding:"padding",rotation:"rotation",skip:"skip",step:"step",visible:"visible",visual:"visual"},features:[a.qOj],decls:0,vars:0,template:function(c,m){},encapsulation:2,changeDetection:0}),ve})(),Kd=(()=>{class ve extends cy{constructor(c,m,Z,le){super(c,m),this.configurationService=c,this.collectionService=m,this.notifyChanges({weekStartDay:Z.firstDay(le)})}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(Pa),a.Y36(Xf),a.Y36(u.aJ),a.Y36(a.soG))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["kendo-chart-category-axis-item"]],inputs:{autoBaseUnitSteps:"autoBaseUnitSteps",axisCrossingValue:"axisCrossingValue",background:"background",baseUnit:"baseUnit",baseUnitStep:"baseUnitStep",categories:"categories",color:"color",justified:"justified",line:"line",majorGridLines:"majorGridLines",majorTicks:"majorTicks",max:"max",maxDateGroups:"maxDateGroups",maxDivisions:"maxDivisions",min:"min",minorGridLines:"minorGridLines",minorTicks:"minorTicks",name:"name",pane:"pane",plotBands:"plotBands",reverse:"reverse",roundToBaseUnit:"roundToBaseUnit",startAngle:"startAngle",type:"type",visible:"visible",weekStartDay:"weekStartDay",crosshair:"crosshair",labels:"labels",notes:"notes",select:"select",title:"title",rangeLabels:"rangeLabels"},features:[a._Bn([Pa]),a.qOj],decls:0,vars:0,template:function(c,m){},encapsulation:2,changeDetection:0}),ve})(),Du=(()=>{class ve extends Yo{constructor(c,m){super("categoryAxis",c,m),this.configurationService=c,this.collectionService=m}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(Pa),a.Y36(Xf))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["kendo-chart-category-axis"]],contentQueries:function(c,m,Z){if(1&c&&a.Suo(Z,Kd,4),2&c){let le;a.iGM(le=a.CRH())&&(m.children=le)}},features:[a._Bn([Xf]),a.qOj],decls:0,vars:0,template:function(c,m){},encapsulation:2,changeDetection:0}),ve})(),r2=(()=>{class ve extends Gl{constructor(c){super("labels",c),this.configurationService=c}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(Pa))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["kendo-chart-category-axis-item-labels"]],inputs:{background:"background",border:"border",color:"color",content:"content",culture:"culture",dateFormats:"dateFormats",font:"font",format:"format",margin:"margin",mirror:"mirror",padding:"padding",position:"position",rotation:"rotation",skip:"skip",step:"step",visible:"visible",visual:"visual"},features:[a.qOj],decls:0,vars:0,template:function(c,m){},encapsulation:2,changeDetection:0}),ve})(),GE=(()=>{class ve extends Gl{constructor(c){super("chartArea",c),this.configurationService=c}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(Pa))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["kendo-chart-area"]],inputs:{background:"background",border:"border",height:"height",margin:"margin",opacity:"opacity",width:"width"},features:[a.qOj],decls:0,vars:0,template:function(c,m){},encapsulation:2,changeDetection:0}),ve})(),HE=(()=>{class ve extends Gl{constructor(c){super("legend",c),this.configurationService=c,this.markAsVisible()}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(Pa))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["kendo-chart-legend"]],inputs:{align:"align",background:"background",border:"border",height:"height",labels:"labels",margin:"margin",offsetX:"offsetX",offsetY:"offsetY",orientation:"orientation",padding:"padding",position:"position",reverse:"reverse",visible:"visible",width:"width",markers:"markers",spacing:"spacing",inactiveItems:"inactiveItems",item:"item",title:"title"},features:[a.qOj],decls:0,vars:0,template:function(c,m){},encapsulation:2,changeDetection:0}),ve})(),qw=(()=>{class ve extends Gl{constructor(c){super("labels",c),this.configurationService=c,this.markAsVisible()}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(Pa))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["kendo-chart-series-item-labels"]],inputs:{align:"align",background:"background",border:"border",color:"color",content:"content",distance:"distance",font:"font",format:"format",margin:"margin",padding:"padding",position:"position",rotation:"rotation",visible:"visible",visual:"visual",from:"from",to:"to"},features:[a.qOj],decls:0,vars:0,template:function(c,m){},encapsulation:2,changeDetection:0}),ve})(),eT=(()=>{class ve extends Gl{constructor(c){super("title",c),this.configurationService=c}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(Pa))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["kendo-chart-title"]],inputs:{align:"align",background:"background",border:"border",color:"color",font:"font",margin:"margin",padding:"padding",position:"position",text:"text",visible:"visible"},features:[a.qOj],decls:0,vars:0,template:function(c,m){},encapsulation:2,changeDetection:0}),ve})(),tT=(()=>{class ve extends Gl{constructor(c,m){super("tooltip",c),this.configurationService=c,this.templateService=m,this.markAsVisible()}ngAfterContentChecked(){this.templateService.setTemplate(this.seriesTooltipTemplate?this.seriesTooltipTemplate.templateRef:null),this.templateService.setSharedTemplate(this.sharedTooltipTemplate?this.sharedTooltipTemplate.templateRef:null)}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(Pa),a.Y36(P1))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["kendo-chart-tooltip"]],contentQueries:function(c,m,Z){if(1&c&&(a.Suo(Z,Zy,5),a.Suo(Z,Ky,5)),2&c){let le;a.iGM(le=a.CRH())&&(m.seriesTooltipTemplate=le.first),a.iGM(le=a.CRH())&&(m.sharedTooltipTemplate=le.first)}},inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",opacity:"opacity",padding:"padding",shared:"shared",visible:"visible"},features:[a.qOj],decls:0,vars:0,template:function(c,m){},encapsulation:2}),ve})(),eE=(()=>{class ve extends cy{constructor(c,m){super(c,m),this.configurationService=c,this.collectionService=m}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(Pa),a.Y36(Xf))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["kendo-chart-value-axis-item"]],inputs:{axisCrossingValue:"axisCrossingValue",background:"background",color:"color",line:"line",majorGridLines:"majorGridLines",majorTicks:"majorTicks",majorUnit:"majorUnit",max:"max",min:"min",minorGridLines:"minorGridLines",minorTicks:"minorTicks",minorUnit:"minorUnit",name:"name",narrowRange:"narrowRange",pane:"pane",plotBands:"plotBands",reverse:"reverse",type:"type",visible:"visible",crosshair:"crosshair",labels:"labels",notes:"notes",title:"title"},features:[a._Bn([Pa]),a.qOj],decls:0,vars:0,template:function(c,m){},encapsulation:2,changeDetection:0}),ve})(),nT=(()=>{class ve extends Yo{constructor(c,m){super("valueAxis",c,m),this.configurationService=c,this.collectionService=m}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(Pa),a.Y36(Xf))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["kendo-chart-value-axis"]],contentQueries:function(c,m,Z){if(1&c&&a.Suo(Z,eE,4),2&c){let le;a.iGM(le=a.CRH())&&(m.children=le)}},features:[a._Bn([Xf]),a.qOj],decls:0,vars:0,template:function(c,m){},encapsulation:2,changeDetection:0}),ve})(),iT=(()=>{class ve extends Gl{constructor(c){super("title",c),this.configurationService=c}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(Pa))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["kendo-chart-value-axis-item-title"]],inputs:{background:"background",border:"border",color:"color",font:"font",margin:"margin",padding:"padding",position:"position",rotation:"rotation",text:"text",visible:"visible",visual:"visual"},features:[a.qOj],decls:0,vars:0,template:function(c,m){},encapsulation:2,changeDetection:0}),ve})();new a.OlP("configuration prefix");let dT=(()=>{class ve extends Qs{constructor(c,m,Z,le,Re,gt,hn,di,no){super(c,m,Z,le,Re,gt,hn,di,no),this.configurationService=c,this.themeService=m,this.element=Z,this.intl=le,this.localizationService=Re,this.ngZone=gt,this.instanceEventService=hn,this.changeDetector=di,this.renderer=no,this.drilldown=new a.vpe,this.drilldownLevelChange=new a.vpe,this.tooltipWrapperClass="k-sparkline-tooltip-wrapper",this.tooltipContentClasses={"k-sparkline-tooltip":!0},this.showLicenseWatermark=!1,this.hostClasses=["k-sparkline","k-widget"];const Mo=(0,Jb.s)(lo);this.showLicenseWatermark=(0,l.Gk)(Mo)}get drilldownLevel(){return this.drilldownState.length}createInstance(c,m){this.instance=new t1(c,t1.normalizeOptions(this.options),this.theme,{intlService:this.intl,observer:m,rtl:this.rtl,sender:this})}updateOptions(){this.instance.setOptions(t1.normalizeOptions(this.options))}}return ve.\u0275fac=function(c){return new(c||ve)(a.Y36(Pa),a.Y36(n2),a.Y36(a.SBq),a.Y36(u.aJ),a.Y36(d.oQ),a.Y36(a.R0b),a.Y36(ni),a.Y36(a.sBO),a.Y36(a.Qsj))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["kendo-sparkline"]],inputs:{type:"type",data:"data",drilldownLevel:"drilldownLevel"},outputs:{drilldown:"drilldown",drilldownLevelChange:"drilldownLevelChange"},exportAs:["kendoSparkline"],features:[a._Bn([Pa,P1,ni,d.oQ,{provide:d.mM,useValue:"kendo.chart"}]),a.qOj],decls:6,vars:6,consts:[[1,"k-chart-surface"],["surface",""],[3,"popupSettings"],[3,"animate","wrapperClass","classNames","popupSettings","leave"],[3,"resize"],["kendoWatermarkOverlay","",4,"ngIf"],["kendoWatermarkOverlay",""]],template:function(c,m){1&c&&(a._UZ(0,"span",0,1)(2,"kendo-chart-crosshair-tooltips-container",2),a.TgZ(3,"kendo-chart-tooltip-popup",3),a.NdJ("leave",function(le){return m.tooltipMouseleave(le)}),a.qZA(),a.TgZ(4,"kendo-resize-sensor",4),a.NdJ("resize",function(){return m.onResize()}),a.qZA(),a.YNc(5,SE,1,0,"div",5)),2&c&&(a.xp6(2),a.Q6J("popupSettings",m.popupSettings),a.xp6(1),a.Q6J("animate",!1)("wrapperClass",m.tooltipWrapperClass)("classNames",m.tooltipContentClasses)("popupSettings",m.popupSettings),a.xp6(2),a.Q6J("ngIf",m.showLicenseWatermark))},dependencies:[O1,Jy,l.NG,l.nA,Kg.O5],encapsulation:2,changeDetection:0}),ve})(),CC=(()=>{class ve{}return ve.\u0275fac=function(c){return new(c||ve)},ve.\u0275mod=a.oAB({type:ve}),ve.\u0275inj=a.cJS({providers:[n2],imports:[[Kg.ez,eS.ST,gv.Zj,l.uv,l.qG]]}),ve})(),rD=(()=>{class ve{}return ve.\u0275fac=function(c){return new(c||ve)},ve.\u0275mod=a.oAB({type:ve}),ve.\u0275inj=a.cJS({imports:[[CC,Kg.ez,gv.Zj,l.uv,l.qG],CC]}),ve})(),sD=(()=>{class ve{}return ve.\u0275fac=function(c){return new(c||ve)},ve.\u0275mod=a.oAB({type:ve}),ve.\u0275inj=a.cJS({imports:[[CC,Kg.ez,gv.Zj,l.uv,l.qG],CC]}),ve})(),aD=(()=>{class ve{}return ve.\u0275fac=function(c){return new(c||ve)},ve.\u0275mod=a.oAB({type:ve}),ve.\u0275inj=a.cJS({imports:[CC,sD,rD]}),ve})()},3201:(he,y,i)=>{"use strict";i.d(y,{EB:()=>V,EN:()=>dn,G6:()=>E,GK:()=>wt,GX:()=>mt,Gk:()=>Fn,LF:()=>xt,M8:()=>p,NG:()=>An,OY:()=>ne,QY:()=>L,R8:()=>ut,T2:()=>D,X_:()=>k,aG:()=>g,g$:()=>M,hC:()=>me,ln:()=>w,nA:()=>En,nV:()=>se,oq:()=>F,pD:()=>I,pn:()=>K,qG:()=>un,qr:()=>nn,r3:()=>P,uv:()=>xn,vU:()=>b,wY:()=>oi,y:()=>Wt});var e=i(65879),n=i(99842),o=i(68503),a=i(96814),l=i(29028),u=i(63019),d=i(92438),s=i(72664);const A=["banner"],_=["kendoWatermarkOverlay",""],C=function(){return{display:"flex",alignSelf:"center",marginRight:"8px"}},R=function(){return{display:"flex",alignItems:"center",marginLeft:"24px"}},x=function(){return{marginRight:"8px",display:"flex"}};function f(Mt,pt){if(1&Mt){const Lt=e.EpF();e.TgZ(0,"div",1,2)(2,"span",1),e.O4$(),e.TgZ(3,"svg",3),e._UZ(4,"path",4),e.qZA()(),e.kcU(),e.TgZ(5,"span"),e._uU(6,"No valid license found for Kendo UI for Angular. Learn how to activate your license."),e.qZA(),e.TgZ(7,"div",1)(8,"a",5)(9,"button",6),e.O4$(),e.TgZ(10,"svg",3),e._UZ(11,"path",7),e.qZA()()(),e.kcU(),e.TgZ(12,"button",8),e.NdJ("click",function(){e.CHM(Lt);const Ne=e.oxw();return e.KtG(Ne.closeBanner())}),e.O4$(),e.TgZ(13,"svg",3),e._UZ(14,"path",9),e.qZA()()()()}if(2&Mt){const Lt=e.oxw();e.Q6J("ngStyle",Lt.bannerStyles),e.xp6(2),e.Q6J("ngStyle",e.DdM(7,C)),e.xp6(5),e.Q6J("ngStyle",e.DdM(8,R)),e.xp6(1),e.Q6J("href",Lt.licenseKeyUrl,e.LSH)("ngStyle",e.DdM(9,x)),e.xp6(1),e.Q6J("ngStyle",Lt.buttonStyles),e.xp6(3),e.Q6J("ngStyle",Lt.buttonStyles)}}const k=()=>typeof document<"u",w=(Mt,pt,Lt=!0)=>typeof pt[Mt]<"u"&&(!pt[Mt].isFirstChange()||!Lt)&&pt[Mt].previousValue!==pt[Mt].currentValue,g=(Mt,pt,Lt=!0)=>Mt.some(tt=>w(tt,pt,Lt)),M=Mt=>Mt&&Mt.observers.length>0,p=()=>{let Mt="";for(let pt=0;pt<32;pt++){const Lt=16*Math.random()|0;(8===pt||12===pt||16===pt||20===pt)&&(Mt+="-"),Mt+=(12===pt?4:16===pt?3&Lt|8:Lt).toString(16)}return Mt},E=Mt=>(0,n.r4)(Mt).safari||(0,n.oh)(Mt)&&"mobilesafari"===(0,n.oh)(Mt).browser,b=Mt=>{const pt=(0,n.r4)(Mt),Lt=(0,n.oh)(Mt);return pt&&pt.mozilla||Lt&&"firefox"===Lt.browser};let I=(()=>{class Mt{constructor(Lt,tt){this.element=Lt,this.ngZone=tt,this.enableDrag=!0,this.kendoPress=new e.vpe,this.kendoDrag=new e.vpe,this.kendoRelease=new e.vpe}ngOnInit(){this.toggleDraggable()}ngOnChanges(Lt){w("enableDrag",Lt)&&this.toggleDraggable()}ngOnDestroy(){this.destroyDraggable()}toggleDraggable(){k()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new o._({drag:Lt=>this.kendoDrag.next(Lt),press:Lt=>this.kendoPress.next(Lt),release:Lt=>this.kendoRelease.next(Lt)}),this.ngZone.runOutsideAngular(()=>this.draggable?.bindTo(this.element.nativeElement))))}destroyDraggable(){this.draggable&&(this.draggable.destroy(),this.draggable=void 0)}}return Mt.\u0275fac=function(Lt){return new(Lt||Mt)(e.Y36(e.SBq),e.Y36(e.R0b))},Mt.\u0275dir=e.lG2({type:Mt,selectors:[["","kendoDraggable",""]],inputs:{enableDrag:"enableDrag"},outputs:{kendoPress:"kendoPress",kendoDrag:"kendoDrag",kendoRelease:"kendoRelease"},features:[e.TTD]}),Mt})(),L=(()=>{class Mt{}return Mt.\u0275fac=function(Lt){return new(Lt||Mt)},Mt.\u0275mod=e.oAB({type:Mt}),Mt.\u0275inj=e.cJS({imports:[[a.ez]]}),Mt})();const D=(Mt,pt,Lt)=>{for(;Mt&&Mt!==Lt&&!pt(Mt);)Mt=Mt.parentNode;if(Mt!==Lt)return Mt},F=(Mt,pt)=>{for(;Mt&&!pt(Mt);)Mt=Mt.parentNode;return Mt},P=(Mt,pt,Lt=!1)=>{if(!F(pt,vt=>vt===Mt))return!1;const Ne=F(pt,vt=>vt===pt);return Ne&&(Lt||Ne!==Mt)},O=(Mt,pt,Lt=!0)=>{if(Mt){if(Lt&&pt(Mt))return Mt;for(Mt=Mt.firstChild;Mt;){if(1===Mt.nodeType){const tt=O(Mt,pt);if(tt)return tt}Mt=Mt.nextSibling}}},U=/^(?:a|input|select|option|textarea|button|object)$/i,V=Mt=>{if(!Mt.tagName)return!1;const pt=Mt.tagName.toLowerCase(),Lt=!!Mt.getAttribute("tabIndex");return!Mt.disabled&&U.test(pt)||Lt},K=Mt=>{const pt=Mt.getBoundingClientRect();return(pt.width>0&&pt.height>0||0!==pt.x&&0!==pt.y)&&"hidden"!==window.getComputedStyle(Mt).visibility},me=(Mt,pt=!0)=>O(Mt,Lt=>((Mt,pt=!0)=>{if(!V(Mt))return!1;const Lt=Mt.getAttribute("tabIndex");return(!pt||K(Mt))&&"-1"!==Lt})(Lt,pt),!1);let se=(()=>{class Mt{constructor(Lt,tt,Ne){this.element=Lt,this.ngZone=tt,this.renderer=Ne,this.events={}}ngOnInit(){if(!this.element||!this.element.nativeElement)return;const Lt=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular(()=>{for(const tt in Lt)Object.hasOwnProperty.call(Lt,tt)&&this.subscriptions?.push(this.renderer.listen(this.element.nativeElement,tt,this.scope?Lt[tt].bind(this.scope):Lt[tt]))})}ngOnDestroy(){if(this.subscriptions){for(let Lt=0;Lt<this.subscriptions.length;Lt++)this.subscriptions[Lt]();this.subscriptions=null}}}return Mt.\u0275fac=function(Lt){return new(Lt||Mt)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.Qsj))},Mt.\u0275dir=e.lG2({type:Mt,selectors:[["","kendoEventsOutsideAngular",""]],inputs:{events:["kendoEventsOutsideAngular","events"],scope:"scope"}}),Mt})(),ne=(()=>{class Mt{}return Mt.\u0275fac=function(Lt){return new(Lt||Mt)},Mt.\u0275mod=e.oAB({type:Mt}),Mt.\u0275inj=e.cJS({}),Mt})();class _e{constructor(pt){this.resizeBatchService=pt,this.resize=new e.vpe,this.acceptedSize=!1,this.state=0}acceptSize(pt=this.measure()){this.lastWidth=pt.width,this.lastHeight=pt.height,this.acceptedSize=!0}checkChanges(){k()&&0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))}destroy(){this.resizeBatchService.cancel(this)}checkSize(){if(!this.parentElement)return!1;const{width:pt,height:Lt}=this.measure();return(pt!==this.lastWidth||Lt!==this.lastHeight)&&(this.lastWidth=pt,this.lastHeight=Lt,this.acceptedSize=!1,this.resize.emit(),!0)}initSize(){const pt=this.measure();this.lastWidth=pt.width,this.lastHeight=pt.height}measure(){let pt=0,Lt=0;return this.parentElement&&(Lt=this.parentElement.offsetHeight,pt=this.parentElement.offsetWidth),{height:Lt,width:pt}}}const ge=Mt=>{const pt=document.createElement("div");return pt.style.cssText=Mt,pt},Te="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",De="position: absolute; left: 0; top: 0; transition: 0s;",fe=De+"width: 200%; height: 200%;";class xe extends _e{constructor(pt,Lt,tt){super(pt),this.element=Lt,this.ngZone=tt}checkChanges(){2!==this.state?super.checkChanges():this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)}destroy(){if(super.destroy(),this.subscription&&this.subscription.unsubscribe(),this.expand){const pt=this.element?.nativeElement;pt.removeChild(this.expand),pt.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}}checkSize(){return!!super.checkSize()&&(this.reset(),!0)}init(){const pt=this.parentElement=this.element?.nativeElement.parentElement;"static"===getComputedStyle(pt,null).getPropertyValue("position")&&(pt.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()}render(){const pt=this.element?.nativeElement;pt.style.cssText=Te,pt.setAttribute("dir","ltr"),this.expand=ge(Te),this.expandChild=ge(De),this.expand.appendChild(this.expandChild),pt.appendChild(this.expand),this.shrink=ge(Te);const Lt=ge(fe);this.shrink.appendChild(Lt),pt.appendChild(this.shrink)}reset(){const pt=this.expandChild;pt.style.width="100000px",pt.style.height="100000px";const Lt=this.expand;Lt.scrollLeft=1e5,Lt.scrollTop=1e5;const tt=this.shrink;tt.scrollLeft=1e5,tt.scrollTop=1e5}subscribe(){this.ngZone.runOutsideAngular(()=>{this.subscription=(0,u.T)((0,d.R)(this.shrink,"scroll"),(0,d.R)(this.expand,"scroll")).subscribe(()=>{this.checkSize()})})}}const Oe=typeof ResizeObserver<"u";class Le extends _e{constructor(pt,Lt,tt){super(pt),this.element=Lt,this.ngZone=tt}static supported(){return Oe}destroy(){super.destroy(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null}init(){this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular(()=>{this.resizeObserver=new ResizeObserver(()=>{this.checkSize()}),this.resizeObserver.observe(this.parentElement)})}}let Gt=(()=>{class Mt{constructor(Lt){this.ngZone=Lt,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}schedule(Lt,tt){this.scheduled.push({instance:Lt,method:tt}),this.subscription||this.ngZone.runOutsideAngular(()=>{this.subscription=(0,s.D)(this.resolvedPromise).subscribe(this.flush)})}isScheduled(Lt){return!!this.scheduled.find(tt=>tt.instance===Lt)}cancel(Lt){const tt=this.scheduled,Ne=tt.length;for(let vt=0;vt<Ne;vt++)if(tt[vt].instance===Lt)return tt.splice(vt,1),void(tt.length||this.unsubscribe())}ngOnDestroy(){this.unsubscribe()}unsubscribe(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}flush(){this.scheduled.forEach(Lt=>{Lt.method.call(Lt.instance)}),this.scheduled=[],this.unsubscribe()}}return Mt.\u0275fac=function(Lt){return new(Lt||Mt)(e.LFG(e.R0b))},Mt.\u0275prov=e.Yz7({token:Mt,factory:Mt.\u0275fac}),Mt})(),An=(()=>{class Mt{constructor(Lt,tt,Ne){this.rateLimit=10,this.resize=new e.vpe;const vt=Le.supported()?Le:xe;this.resizeService=new vt(Lt,tt,Ne),this.subscription=this.resizeService.resize.pipe((0,l.e)(1e3/(this.rateLimit||10))).subscribe(()=>{this.resizeService.acceptedSize||this.resize.emit()})}ngAfterViewChecked(){this.resizeService.checkChanges()}ngOnDestroy(){this.subscription.unsubscribe(),this.resizeService.destroy()}acceptSize(Lt){this.resizeService.acceptSize(Lt)}}return Mt.\u0275fac=function(Lt){return new(Lt||Mt)(e.Y36(Gt),e.Y36(e.SBq),e.Y36(e.R0b))},Mt.\u0275cmp=e.Xpm({type:Mt,selectors:[["kendo-resize-sensor"]],inputs:{rateLimit:"rateLimit"},outputs:{resize:"resize"},decls:0,vars:0,template:function(Lt,tt){},encapsulation:2}),Mt})(),xn=(()=>{class Mt{}return Mt.\u0275fac=function(Lt){return new(Lt||Mt)},Mt.\u0275mod=e.oAB({type:Mt}),Mt.\u0275inj=e.cJS({providers:[Gt]}),Mt})();class mt{}var ut=function(Mt){return Mt[Mt.Alt=18]="Alt",Mt[Mt.ArrowDown=40]="ArrowDown",Mt[Mt.ArrowLeft=37]="ArrowLeft",Mt[Mt.ArrowRight=39]="ArrowRight",Mt[Mt.ArrowUp=38]="ArrowUp",Mt[Mt.Backspace=8]="Backspace",Mt[Mt.Control=17]="Control",Mt[Mt.Delete=46]="Delete",Mt[Mt.Digit0=48]="Digit0",Mt[Mt.Digit1=49]="Digit1",Mt[Mt.Digit2=50]="Digit2",Mt[Mt.Digit3=51]="Digit3",Mt[Mt.Digit4=52]="Digit4",Mt[Mt.Digit5=53]="Digit5",Mt[Mt.Digit6=54]="Digit6",Mt[Mt.Digit7=55]="Digit7",Mt[Mt.Digit8=56]="Digit8",Mt[Mt.Digit9=57]="Digit9",Mt[Mt.End=35]="End",Mt[Mt.Enter=13]="Enter",Mt[Mt.Escape=27]="Escape",Mt[Mt.F1=112]="F1",Mt[Mt.F2=113]="F2",Mt[Mt.F10=121]="F10",Mt[Mt.Home=36]="Home",Mt[Mt.Insert=45]="Insert",Mt[Mt.KeyA=65]="KeyA",Mt[Mt.KeyB=66]="KeyB",Mt[Mt.KeyC=67]="KeyC",Mt[Mt.KeyD=68]="KeyD",Mt[Mt.KeyE=69]="KeyE",Mt[Mt.KeyF=70]="KeyF",Mt[Mt.KeyG=71]="KeyG",Mt[Mt.KeyH=72]="KeyH",Mt[Mt.KeyI=73]="KeyI",Mt[Mt.KeyJ=74]="KeyJ",Mt[Mt.KeyK=75]="KeyK",Mt[Mt.KeyL=76]="KeyL",Mt[Mt.KeyM=77]="KeyM",Mt[Mt.KeyN=78]="KeyN",Mt[Mt.KeyO=79]="KeyO",Mt[Mt.KeyP=80]="KeyP",Mt[Mt.KeyQ=81]="KeyQ",Mt[Mt.KeyR=82]="KeyR",Mt[Mt.KeyS=83]="KeyS",Mt[Mt.KeyT=84]="KeyT",Mt[Mt.KeyU=85]="KeyU",Mt[Mt.KeyV=86]="KeyV",Mt[Mt.KeyW=87]="KeyW",Mt[Mt.KeyX=88]="KeyX",Mt[Mt.KeyY=89]="KeyY",Mt[Mt.KeyZ=90]="KeyZ",Mt[Mt.NumpadDecimal=110]="NumpadDecimal",Mt[Mt.PageDown=34]="PageDown",Mt[Mt.PageUp=33]="PageUp",Mt[Mt.Shift=16]="Shift",Mt[Mt.Space=32]="Space",Mt[Mt.Tab=9]="Tab",Mt}(ut||{});const Wt=['a[href]:not([tabindex^="-"]):not([disabled])','area[href]:not([tabindex^="-"]):not([disabled])','input:not([tabindex^="-"]):not([disabled])','select:not([tabindex^="-"]):not([disabled])','textarea:not([tabindex^="-"]):not([disabled])','button:not([tabindex^="-"]):not([disabled])','iframe:not([tabindex^="-"]):not([disabled])','object:not([tabindex^="-"]):not([disabled])','embed:not([tabindex^="-"]):not([disabled])','*[tabindex]:not([tabindex^="-"]):not([disabled])','*[contenteditable]:not([tabindex^="-"]):not([disabled]):not([contenteditable="false"])'].join(","),dn=Mt=>null!=Mt,yi=Mt=>Mt.trim().replace(/\s+/g," ").split(" "),nn=Mt=>Array.isArray(Mt)?Eo(Mt):(Mt=>dn(Mt)&&!Array.isArray(Mt)&&"object"==typeof Mt)(Mt)?Mi(Mt):(Mt=>Mt instanceof String||"string"==typeof Mt)(Mt)?mi(Mt):void 0,Mi=Mt=>{const pt=[];return Object.keys(Mt).forEach(Lt=>{const tt=yi(Lt);Mt[Lt]&&tt.length&&pt.push(...tt)}),pt},mi=Mt=>{const pt=[];return yi(Mt).forEach(tt=>{pt.push(tt)}),pt},Eo=Mt=>{const pt=[];return Mt.forEach(Lt=>{const tt=yi(Lt);tt[0]&&pt.push(...tt)}),pt},xo={display:"flex",justifyContent:"center",alignItems:"center",position:"fixed",top:"16px",right:"16px",padding:"12px",borderRadius:"4px",boxShadow:"0px 4px 5px 0px rgba(0, 0, 0, 0.04), 0px 2px 4px 0px rgba(0, 0, 0, 0.03)",fontSize:"14px",fontWeight:400,lineHeight:"20px",backgroundColor:"#FFC000",color:"#1E1E1E",zIndex:999},Bn={display:"inline-flex",position:"relative",border:"none",borderRadius:"4px",padding:"5px",backgroundColor:"transparent",transition:"color 0.2s ease-in-out",outline:"none",cursor:"pointer"};let Ji=!1,En=(()=>{class Mt{constructor(){this.watermarkStyle="\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n    opacity: 0.2;\n    zIndex: 101;\n    pointerEvents: none;\n    backgroundImage: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABVxSURBVHgB7Z3tVRtJE4WL9zgANgLLGRCCnAGOADmCxRGgDFAGYiOADKQMIAGO9J8ji42g37mjqlUjBgOanpn+uM85sjC2sKzbVd1dVV0tQgghhBBCCCGEEEIIKRPn3Gn1GAlJmmN1pP558J6OX9540ejh4WGlX09OTk7+EZIclXYXlY43+vVflY7PH3wd9c+AY/Wvvcb9/b0bjUYOz/hBQpICmh1oOPrEa6l/4rTR337AhIMgTSqtzg+0m8gnof7p0mD8EzmGhkFwJiR6np6e7luLL9Q/RTDTBzF+7wfWg2CxWOCHjYVET6XTdLPZrFuLL9Q/NeCkoVUQ4/d+6Ijev1yof1rAUVMvQgjJHebrSRu+CEmWo/O8hISgCjStKpgiGoDWed4AUP/hwGf++Pi4hQYyFHgDzBP3T7A8b0uo/zD4+sMBy1CwWKR/YjF+fS/Uv2di0t/eEAdBT0QnvlD/PolR/xoOgu4JUd7bFdS/e6I1foODoFuqz3M2mUziFF+of5dEb/xGwyAYCwmCVuPNYv5MqX94Yl75NWKD4PLyEm92KqQoqH9Y8Bnis0zC+A14LbxxVqiVCfUPh678plxNFYQe5pjRgAgpDAv4IOAHJyCEkDJoiPaeCyG5UA1oRIYWHNivSSbV0wLq/zbQXz+bS8kV/AeZJ35NCcYPqH8zvv4VS8kVFou8phTjB9T/NcVt+zgI9rjQDRwTgPrvKcn5v4CDYIfT/vtFiS/UHxRr/AYHwQ4t9DiVwihZ/+KN36ATKJsS9U+utr9r/EGQdQSUNFKa/geZkImQ/2rHlznnQDG7oX9b9Xwl5AUl6G9oLcSSxl8Q/p4P13YJIaQMisvzEkJ2lJjnJyQY3lnoJGfNUvP8oUhZf7c70s2eCG1wL7uhRJ0iQnCveiDIhzf7t/f9IvP8IUhJfx/b9rErUkvgRVPIE1fv6xrvbzweu7OzM3d7e4v3OhfSilT092HMJzCxF4u43eWctfFvt1uHu9nxXvF1CWmtroldfx9W+HVErINAjX+M65ngAPxnOAJ1AiMhrUjBCdD4Oya2QYBlPwx8vV47WwFg+a+XZbrz83NzANz/ByBmJ0Dj74lYBgECfrbnt6U/DB/vC7388L2rqyu8vzshwYjRCdD4e8YfBLidVgYA0X7M9jB8PGazmbu5ualnfiz9dSAsufwPTwz6+5jjp/H3CD5ofPB9343u9v3u6+U+0jyY7eEA8Hx3d4c/QjvvMyGdMZT+TeA9wBHR+DPHUn3T6bRe7uMxn89tn18v/TH7O17gQEheYM9vEX7M9hbsg/FbHED3/IPPSISQgNhyE0au+7x7PPtOQFcB3PMTMjTYf4cyRN3zL2DgMHgs/7XU99acgDIWEgUh9W/4uWMh8QKBvCh8qxSR7fmxt0eEv8kJ6MzP8/2REFL/g59bp/o0xsMAb6xAnBB5Yr+6D3X9KOpBxP/ACWA0jFnoEw+h9D/4mYd5/pGQeAlRLFK95tJy+35578PDQ+0E9LAPi3wixAUsFmKRT6I0DIIPzdJuf6R3i+UeZnsz/nqjPx47/fMpZ/54OVb/g5/BZi4pY4Pgo8s2d3CkF0Z/cXFRL/+Xy2W9BdBUH4/5JsBn9W94PZu5pI77QzMOjepiNp/j71hO//fv31sr7qmtfT73i3xWjnvAZHhH/4nquXrLwB2bueSJ27Vmvodhq4df4BmzvQb3IPxWl/zgRl/DwZA4GrhdYFUHfbHE1y0enXsJ2FLfCnggvjqBejDoTI8o38ocgJAscNq8BY4fv/Uf+J46gjkdQcbA+19fXzs7zQfR8TWcgH+kFw/u+fMDKz/o3OQETk9PLcWLPSBbeeWELd91eb+CcTc5gXr6r9J8PNKbF/7S3z+6DYcvDasBOv6M0GUduNDfv+cEYPhjIVmA+I3Vc4gaOQzfHAECvb4joAPICCzlrIJP93h/dAIYDBQ/L8wBNC37rXUblv5CB5AfGvi5h6F7Ed9GJ2CZP0b780O1vreVnnhOAFsBOoCMscg/HMBbTsCO+grJFkvvHmYCSnYA/5MMcbsiH6TykNgfr9fry58/f0oltFxcXMj379+l+h42gBcnJyfr6iXfq1nhJ56FZIeuAq+fn59Xv379Oq0CgVJNBEIydAAavLv98ePHeSX4bfX1OQSv9noQ/a7y9A8HTuAcTqB63FSPZyE5Mq3GwOW3b99kNpu9+5e/fv2Kp3+FpAW8vB3cwbLOOvZYfl9LfGdW9KOn+mZCskZXhCuL9vtLfjvshd97hWArpn8TxGn5rhZzOL/gB19DYBzzxcEeTQEtGfArB7c7xbmyVu4YExoTuNcYEL6eCkkTxHYOmna4wzQfvq8z/+o949e940hIkjTp5/ZXjm/1+VQfr856UP/EcLtqr9s/OQENDl5+wPhH3nHQZK6mJjucNvNo2w+A+icC0jaY4a2LT5MT+Mye3+l58JSupiY7XIA2XtQ/IZw2f7D9v+X6D53AZ/f8LqGrqckOF7CNF/VPAF3Or6xvv53r951Amx5+DYOAXWEjxXXQxov6R4zTSzusht8OfABE+r3U39y1iPbbIODVX3ED4/Tagk8kENQ/QiyaC1Fg7PX6frm0Mk6/wUOQ8l799+j9I0cDwcF1ov4R4Xbde2vjxi92ogsPzPrY92szD7buJiQn3K6+v17q2yxvlV1u3+TRAn4jIYTkAfbymOWx1AcwfHMEXp5/JISQ9PEDd867ohvGbvt+cwRe6+5ee7ltNpuVf7yYdA8+68fHxy0+exkY6t8RGnSxJX19yAd7fWvhjEs7NOCHb2D9/+AGqO3HQGSeuD/8PD/GggwM9e8IBPCwr7ciHnzA6NrqtW5+4QRkIByLRXrDRXhXH/XvCKRccEuPX8mHD9jr7Vc7AV32D9rJh4Oge2I0foP6d8QHnADO9kdxYw8HQXfEbPwG9e+It5yAlvdG1beNgyA8KRi/Qf07oskJIEYQw8x/SMMgGAs5CmR0UjF+g/oHwh00YzAn0OZgT1/YINBU5VTIUeCzw2eYivEb1L8l7o1mDm7X220a48x/iNtVLE4dC5OOxu2794wlMaj/kbgAzRwIIQmS4p6PEBKIp6enexo/IYWCPdNms1nnbPxat7BwvH/+P7Dt08/kUjKH+hcOxGeeeI8f86lYSuZQ/8JhsciehoBv9rMi9VdcwZcucBCkVeEXmuL1dy0vbciBkgdBycZvFKs/8/x7ShwENP49xelP8V9T0iBgncdritGfxv82/iDIORJ+EAGfCKnJXn8a//to7fgy51y45sCX1P812erPZR8hBVMZ/Ax9+2j8hBSIHumcpXikkxBCBsXtz8QnUyXndvfz8Sx8AFLUnwTEveyKE32KyAK+7IYThqT0V88/o+cPBz7TVPLEJdb2d00y+pv4elHHTEgwUigWYaq3O6LXn56/e2IeBDT+7olWf4rfHzEOAurfH9HpT/H7J6ZBQP37Jxr9Kf5w+IMAt9PKQOB6NurfP4Prjyg/jX9Y8JnDAHE/vQwE/m0MQOrfP4PqX/3jp15Dj4kQQspCK5SK7OZDCCGEEBIfbneH4kgCoT9vLCQJguqPaD8CDdXzlZDogaEuFotgKSLL9uBnYmAJiZqg+vupPlzbJSR6YKSh8sSODVyTI5j+LO9NlxDFIqzzSJfW+jPPnz4Ng+DDGRvqnz5t9GeePxNsEHx2+U798+BY/e3FzPNnwLE6Uv88oI6EEEIIIYQQQgghhBBCCCGEEEIIIYQQQkiRoHyQxz/T51gdqX8evKfjlzdeNHp4eFjp15OTk5N/hCQHjoFWOt7o139VOj5/8HXUPwOO1f+/02ApXEhJmmnTzIP6p49r28wlRFMJMgwhmnlQ/3RB854g/RwaBgF7wkVOyGYe1D9N0L4vWDMXGwTaFHIsJGpgpF5TyIm0hPqnR6XTdLPZrF2oZi7aVIDePxFgqCH1ov6EEEIIITHRtl7jixBCkuToPH8ocGMQrihmiqh/8Jnjau6hrwen/sPQOs8fAgxA5on7xxcfBigDQf2HIUSdR6g3wmKRnolGfKH+QxCT/vaGOAh6Ijrxhfr3SYz613AQdE+04gv174Ng5b1dwUHQHTEbv0H9u6X6PGeTySTu69oaBsFYSCui9/we1L87tBpzFv1naoPg8vISA2AqpBX4DPFZxm78BvUn9awF8R07yrRGPf80pdmU+hNCyJHoYa4ZHSghhWEBXwT84ASEEFIGDdmec8mJ6j+EyNAiu/9YACC+fjaXkinU/21SSPW2BuIzT/waX/yKpWQK9W+mCOMHLBZ5TfbLPg/q/5pijN/gINhTnPhC/X1cwAauScFBUKbxG9R/h9P7F0rTv6bkQVCy8Rt0Aju00OtUSqTEQZBSbX/X0AmQF4Mg5wi4cRAJn0jhlKY/aUBrx5c558ANzYUvafx7StAfqxv0UKyer4QQUg5+zAfXdgkhpAxKqvMghHgUm+cPhdufhU/Oa+qRTp6Jb0HK+oOi8/whcC+74SSTIrJlH7vitCMl/RHcqx4I8uHN/u19v9w8f1swi6aWJ+aeLxyp6F+9r2u8v/F47M7Oztzt7S3e61xIe1IqFmGFX3hi19/tLuesjX+73brFYlG/V3xdQlq7F1JwAjT+7ohVfzX+Ma5ngwPwn+EI1AmMhLQnZidA4++e2PTHsh8Gvl6vna0AsPzXy1Ld+fm5OQDu/0MRoxOg8fdHLPoj4Gd7flv6w/DxvtDLD9+7urrC+7sTEhZ/EOB2WhkYE57G3w8x6I9oP2Z7GD4es9nM3dzc1DM/lv46FpZc/ncEBgEMD7XVMjB4DxiINP7+GEp/t7/voF7uI0WJ2R4OAM93d3f4I7TzPhNCSD5Yqm86ndbLfTzm87nt8+ulP2Z/x+vQCMkL7Pktwo/Z3oJ9MH6LA+ief/AVKSEkILbdgJHr3v4ez74T0FUA9/wxgP1XF0Lozx0LiZqQ+uuefwEDh8Fj+a+lvrfmBJSxkOGBEF4UNliKyFJ9usdjgCdSQupve37s7RHhb3ICOvPzfH8swDhD54kb8vwjIVESSn+/ug91/SjqQcT/wAlgNhiz0CcyQhaLsMgnPULoX73m0nL7fnnvw8ND7QT0sA+LfGKlYRB82ks7NnNIlmP1d/sjvVtsJTDbm/HXG/3x2OmfTznzR44NgmOX7Y7NHJLms/q7gyO9MPqLi4t6+b9cLustgKb6eMw3FdwfmjFggKg3X71l4I7NHJLmHf3PVPs5/o7l9H///r214p7a2udzv8hn5RgDShsN3Czg1SE4lom6xKO4heB2rdnvYdi6QljgGbO9BvfgOLa65Ac3+hpOBinjtHkDhMdv/Qe+p45gTkeQL7bUtwIeaK5OoJ4MdKZHlG9lDkBIPsDzQ/QmJ3B6emopHqwB2corQzDDX19fOzvNh7GAr+EE/CO9eHDPnxH+0t8/ugnBpWE1QOHzwpbvurxfwbibnEA9/VdpPh7pzQjs3yyfK2rkMHxzBAj0+I6ADiAvdFsHLvT37zkBGP5YSB6YA2ha9lvrJiz9hQ4gO7CVswo+jfH80QlgMqD2GaKC35unF88JYCtAB5AnGvi9h6F7GZ9GJ2CZP0b7M8XSO4eZADqAvLHIPxzAW07AjvpKYfxPCkBngevn5+fVr1+/TqtAoFQDQUieuF2RD1J5SOyP1+v15c+fP6Vy9HJxcSHfv3+X6nsIAF2cnJysq5d8r1YAP/EshVGEA6iYVkZ/+e3bN5nNZu/+5a9fv+LpXyHJocG72x8/fpxXDv+2+vocDr+K9cDp31UrvYcDJ3AOJ1A9bqrHs5D80BlhZdF+f8lvhz3we68QZMX0T3pglWcHd6Cjdeyx/L6W+M6s6EdP9c2ElIHbneJaWStnFIRoTOBe94D4eiokSZyW72oxl/MLfvA1jB6642CPpoCXDPhljO79RwffG6kj2OrzqT5e1Xo3vZ7EC2K7B0073GGaD9/XmX/1nvFT/4Rx2syjbT+AIW+gIZ/D7ao9b//kBDQ4ePkB46f+qeICtPFy2g8gpavJSwZpW8zw1sWnyQl8Zs9P/RPFBWzj5RK6mrxkTCfb/1uu/9AJfHbPT/0Tw3XQxqthELArcETocn5lffvtXL/vBNr08KP+CQFxvLbQEwmEDQJe/RQXTi/tsBp+O/AFEOn3Un9z1yLaT/0TQgNBwb20Zg/o/SPBsjkwShh7vb5fLq2M22/wEqS8V/+9sRBChsXtuvfWxo1f7EQnHpj1se/XZh5s3U1ITrhdfX+91LdZ3io73b7JqwX8RkIIyQPs5THLY6kPYPjmCLw8/0hI3iAd8/j4uN1sNisZGLwH/3gpCYcfuHPeFd0wdtv3myPwWnf32suR+veMn+fHBy8DA0fEPHF4NOhmS/r6kA/2+tbCHZd2aMAP38D6/8ENUNtP/XvERXhXn2OxSCcggId9vRXx4LNF12avdfsLJyADQf17IkbjNzgIwoOUK27p8Sv58Nl6vf1qJ6DL/kE7+VD/jonZ+A0OgvB8wAngbH8UN/ZQ/45IwfgNDoLwvOUEtLw3qr6N1D8wiOimYvxGwyAYC2lFkxNAjCCGmf8Q6h8QRHeR7knF+A0bBJqqmgr5NO6gGYc5gTYHe/qC+gfC7bv3jCUx3K5ibepYmPJp3BvNXNyut+M0xpn/EOpPyBG4AM1cCCEJkmLMhxASiKenp3saf4Fg2Vc9FsjpSuZo3hr/115r1lMAe+bNZrPO2fip/wH+nq9iKZkD8ZknLhfq79EQ8MneK7JYpGyov5JShV9oOAjKvnSjeP1LNn6j5EHgWl7akgPF6k/j31PiIGCef09x+jPP+5qSBgGd/2uKcgIHEdCJkBp/EOSaCaHxv00J+tdoDnRJ8V+jtePLHGshaPzvk7P+pGC47SOkYCqDn6FvH42fkAJxuyPdaN01FlIGbnc/37TkFE8o3L4nAmvHCyQ5/S3gw24oYXAvuyKxbLgwktK/xNr+rsFqKpU8sa78Zlz5hSMZ/Znq6Y4UikVMf72oYyYkGNHrT+PvnpgHAVd+3ROt/jT+/ohxEFD//ohOf4rfPzENAurfP1E5AVzPRPH7xx8EuJ1WBoDGPxyH+ruhjlTjbnR9AxMhvYLPHA4YGkjPIMpP4x+WIfUnhYMZx2voMRFCSFlohVqR3XwIIaQc3O5OtrGQJFC9RkKKRCsyRxICi/YuFgvs986ERA3Eh1ahUkT4GQg0Vc9XQqInqP6ODRyTA046VJ7Y1x/XdgmJnmD6M8+bLiGKRVjemy6t9WeeN30aBsGHI/bUP33a6M88bybYIPjs9o3658Gx+tuLmefNgGN1pP55QB0JIYQQQgghhBBCCJGy+T9ftRg+rVNPfAAAAABJRU5ErkJggg==');\n",this.isOpen=!0,this.bannerMounted=!1,this.bannerStyles=xo,this.buttonStyles=Bn,this.licenseKeyUrl="https://www.telerik.com/kendo-angular-ui/components/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-banner"}ngOnInit(){Ji||(this.bannerMounted=!0,Ji=!0)}ngAfterViewInit(){this.isBannerRendered&&document.body.appendChild(this.banner.nativeElement)}ngOnDestroy(){this.isBannerRendered&&document.body.removeChild(this.banner.nativeElement)}closeBanner(){this.isOpen=!1}get isBannerRendered(){return k()&&this.banner&&this.banner.nativeElement}}return Mt.\u0275fac=function(Lt){return new(Lt||Mt)},Mt.\u0275cmp=e.Xpm({type:Mt,selectors:[["div","kendoWatermarkOverlay",""]],viewQuery:function(Lt,tt){if(1&Lt&&e.Gf(A,5),2&Lt){let Ne;e.iGM(Ne=e.CRH())&&(tt.banner=Ne.first)}},hostVars:2,hostBindings:function(Lt,tt){2&Lt&&e.Akn(tt.watermarkStyle)},attrs:_,decls:1,vars:1,consts:[[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],["banner",""],["width","16","height","16","viewBox","0 0 16 16","fill","none"],["fill-rule","evenodd","clip-rule","evenodd","d","M8 1L0 15H16L8 1ZM7 6V11H9V6H7ZM7 14V12H9V14H7Z","fill","#1E1E1E"],[3,"href","ngStyle"],["title","Learn More",3,"ngStyle"],["d","M15 8C15 11.8656 11.8656 15 8 15C4.13437 15 1 11.8656 1 8C1 4.13437 4.13437 1 8 1C11.8656 1 15 4.13437 15 8ZM14 8C14 4.6875 11.3125 2 8 2C4.6875 2 2 4.6875 2 8C2 11.3125 4.6875 14 8 14C11.3125 14 14 11.3125 14 8ZM11 6C11 7.4125 10.2687 8.05937 9.73125 8.53125C9.25937 8.94688 9 9.17813 9 10H7C7 8.275 7.84688 7.525 8.40938 7.03125C8.84062 6.65312 9 6.50938 9 6C9 5.45 8.55 5 8 5C7.45 5 7 5.45 7 6H5C5 4.34375 6.34375 3 8 3C9.65625 3 11 4.34375 11 6ZM9 13V11H7V13H9Z","fill","#1E1E1E"],["title","Close",3,"ngStyle","click"],["d","M13 4.41562L9.41563 8L13 11.5844L11.5844 13L8 9.41563L4.41562 13L3 11.5844L6.58437 8L3 4.41562L4.41562 3L8 6.58437L11.5844 3L13 4.41562Z","fill","#1E1E1E"]],template:function(Lt,tt){1&Lt&&e.YNc(0,f,15,10,"div",0),2&Lt&&e.Q6J("ngIf",tt.isOpen&&tt.bannerMounted)},dependencies:[a.O5,a.PC],encapsulation:2}),Mt})(),un=(()=>{class Mt{}return Mt.\u0275fac=function(Lt){return new(Lt||Mt)},Mt.\u0275mod=e.oAB({type:Mt}),Mt.\u0275inj=e.cJS({imports:[[a.ez]]}),Mt})();const Ki=["telerik.com","progress.com","stackblitz.io","csb.app"];function Fn(Mt){return!Ki.some(Lt=>globalThis.document?.location.hostname.endsWith(Lt))&&!Mt}class oi{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}const xt=()=>{let Mt=0;if(k()&&document.createElement){const pt=document.createElement("div");pt.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",pt.innerHTML="&nbsp;",document.body.appendChild(pt),Mt=pt.offsetWidth-pt.scrollWidth,document.body.removeChild(pt)}return Mt};let wt=(()=>{class Mt{constructor(){this.changes=new e.vpe,typeof window<"u"&&k()&&document.body.style.setProperty("--kendo-scrollbar-width",`${xt()}px`)}}return Mt.\u0275fac=function(Lt){return new(Lt||Mt)},Mt.\u0275prov=e.Yz7({token:Mt,factory:Mt.\u0275fac,providedIn:"root"}),Mt})()},54885:(he,y,i)=>{"use strict";i.d(y,{eV:()=>$c,RB:()=>ds,_8:()=>lh,nf:()=>Np,Lr:()=>dt,cY:()=>tp,I$:()=>zu,JX:()=>ah,If:()=>Gf,wY:()=>ei,eQ:()=>Uc,wn:()=>au});var e=i(65879),n=i(56223),o=i(58951),a=i(72089),l=i(13073),u=i(77345),d=i(78016),s=i(61197),A=i(94450),_=i(33882),C=i(26642);const R=(Yt,Ri)=>{const ee=Yt.getMonth(),Ze=(0,_.B)(Ri,ee,Yt.getDate(),Yt.getHours(),Yt.getMinutes(),Yt.getSeconds(),Yt.getMilliseconds());return Ze.getMonth()===ee?Ze:(0,C.q)((0,A.z)(Ze,-1))},x=(Yt,Ri)=>(0,s.m)(R(Yt,Yt.getFullYear()+Ri),Yt.getHours()),f=(Yt,Ri)=>x(Yt,10*Ri),k=(Yt,Ri)=>x(Yt,100*Ri),w=(Yt,Ri)=>R(Yt,Ri(Yt.getFullYear())),g=Yt=>w(Yt,Ri=>Ri-Ri%100),M=Yt=>w(Yt,Ri=>Ri-Ri%100+90),p=Yt=>w(Yt,Ri=>Ri-Ri%10),E=Yt=>w(Yt,Ri=>Ri-Ri%10+9),b=(Yt,Ri)=>{const ee=Yt.getDate(),Ze=(0,_.B)(Yt.getFullYear(),Ri,ee,Yt.getHours(),Yt.getMinutes(),Yt.getSeconds(),Yt.getMilliseconds());return Ze.getDate()===ee?Ze:(0,C.q)((0,A.z)(Ze,-1))},I=Yt=>b(Yt,11),L=(Yt,Ri)=>(g(Ri).getFullYear()-g(Yt).getFullYear())/100,D=(Yt,Ri)=>(p(Ri).getFullYear()-p(Yt).getFullYear())/10,F=(Yt,Ri)=>(0,l.E)(Yt,7*Ri);var P=i(78961),O=function(Yt){return Yt[Yt.Forward=1]="Forward",Yt[Yt.Backward=-1]="Backward",Yt}(O||{});const U=(Yt,Ri,ee=O.Forward)=>{const Ze=(0,a.k)(Yt),Yn=(Ri-Ze.getDay()+7*ee)%7;return Ze.setDate(Ze.getDate()+Yn),(0,s.m)(Ze,Yt.getHours())},V=(Yt,Ri)=>12*(Ri.getFullYear()-Yt.getFullYear())+(Ri.getMonth()-Yt.getMonth()),K=Yt=>b(Yt,0),X=(Yt,Ri)=>Ri.getFullYear()-Yt.getFullYear();var me=i(17097),Q=i(17885);const de=(Yt,Ri)=>{const ee=(0,_.B)(Yt.getFullYear(),0,1,-6),Yn=((Yt,Ri)=>Ri!==me.J.Monday?(0,l.E)(((Yt,Ri)=>U(Yt,Ri,O.Backward))(Yt,Ri),4):(0,l.E)(Yt,4-(Yt.getDay()||7)))(Yt,Ri).getTime()-ee.getTime(),Bo=Math.floor(Yn/Q.Mb);return 1+Math.floor(Bo/7)},te=(Yt,Ri=me.J.Monday)=>{Yt=(0,u._)(Yt);const ee=(0,l.E)(Yt,-7),Ze=(0,l.E)(Yt,7),Yn=de(Yt,Ri);return 0===Yn?de(ee,Ri)+1:53===Yn&&de(Ze,Ri)>1?1:Yn};var j=i(3201),H=i(12624),z=i(91918),q=i(78645),se=i(47394),ne=i(97328),_e=i(65592),ge=i(52572),Ce=i(22096),Te=i(91687),De=i(80927),fe=i(92438),xe=i(36232),Oe=i(72664),Ut=(i(65619),i(63019),i(96814)),An=i(73942),$n=i(15735),xn=i(37398),mt=i(16699),ut=i(30812),Wt=i(83620),dn=i(99397),fn=(i(32181),i(60886)),yi=i(9237),nn=i(24579),Mi=i(99842),mi=i(80889);const Eo=["kendoCalendarView",""];function Ko(Yt,Ri){1&Yt&&(e.TgZ(0,"td",3),e._uU(1,"\xa0"),e.qZA())}function xo(Yt,Ri){if(1&Yt&&(e.TgZ(0,"tr",4)(1,"th",5),e._uU(2),e.qZA()()),2&Yt){const ee=e.oxw();e.uIk("aria-hidden",ee.ariaHidden),e.xp6(1),e.Q6J("colSpan",ee.colSpan),e.xp6(1),e.Oqu(ee.title)}}function Bn(Yt,Ri){if(1&Yt&&e._uU(0),2&Yt){const ee=e.oxw(3).$implicit,Ze=e.oxw();e.hij(" ",Ze.getWeekNumber(Ze.firstDate(ee))," ")}}function Xt(Yt,Ri){}const Ji=function(Yt){return{click:Yt}},En=function(Yt,Ri){return{$implicit:Yt,cellContext:Ri}};function un(Yt,Ri){if(1&Yt&&(e.TgZ(0,"td",9),e.YNc(1,Bn,1,1,"ng-template",6),e.YNc(2,Xt,0,0,"ng-template",10),e.qZA()),2&Yt){const ee=e.oxw(2).$implicit,Ze=e.oxw();e.Q6J("kendoEventsOutsideAngular",e.VKq(5,Ji,Ze.handleWeekNumberClick.bind(Ze,ee))),e.xp6(1),e.Q6J("ngIf",!Ze.weekNumberTemplateRef),e.xp6(1),e.Q6J("ngIf",Ze.weekNumberTemplateRef)("ngTemplateOutlet",Ze.weekNumberTemplateRef)("ngTemplateOutletContext",e.WLB(7,En,Ze.firstDate(ee),Ze.getWeekNumberContext(ee)))}}function Ki(Yt,Ri){if(1&Yt&&e.YNc(0,un,3,10,"td",8),2&Yt){const ee=e.oxw().$implicit,Ze=e.oxw(),Yn=e.MAs(1);e.Q6J("ngIf",Ze.firstDate(ee))("ngIfElse",Yn)}}function Fn(Yt,Ri){if(1&Yt&&e._uU(0),2&Yt){const ee=e.oxw(2).$implicit;e.Oqu(ee.formattedValue)}}function oi(Yt,Ri){}function It(Yt,Ri){if(1&Yt&&e.YNc(0,oi,0,0,"ng-template",15),2&Yt){const ee=e.oxw(2).$implicit,Ze=e.oxw(2);e.Q6J("ngTemplateOutlet",Ze.templateRef)("ngTemplateOutletContext",e.WLB(2,En,ee.value,ee))}}function Bt(Yt,Ri){if(1&Yt&&(e.TgZ(0,"td",12)(1,"span",13),e.YNc(2,Fn,1,1,"ng-template",6),e.YNc(3,It,1,5,null,14),e.qZA()()),2&Yt){const ee=e.oxw(),Ze=ee.$implicit,Yn=ee.index,Bo=e.oxw().index,$r=e.oxw();e.Q6J("ngClass",$r.getStyles(Ze))("title",Ze.title),e.uIk("id",Ze.id)("data-cell-index",$r.tableCellIndex(Bo,Yn))("aria-selected",Ze.isSelected||Ze.isRangeStart||Ze.isRangeMid||Ze.isRangeEnd)("aria-disabled",Ze.isDisabled)("aria-label",$r.getMonthLabel(Ze.value)),e.xp6(2),e.Q6J("ngIf",!$r.templateRef),e.xp6(1),e.Q6J("ngIf",$r.templateRef)}}function xt(Yt,Ri){if(1&Yt&&(e.ynx(0),e.YNc(1,Bt,4,9,"td",11),e.BQk()),2&Yt){const ee=Ri.$implicit,Ze=e.oxw(2),Yn=e.MAs(1);e.xp6(1),e.Q6J("ngIf",Ze.shouldRenderCellContent(ee))("ngIfElse",Yn)}}function wt(Yt,Ri){if(1&Yt&&(e.TgZ(0,"tr",4),e.YNc(1,Ki,1,2,"ng-template",6),e.YNc(2,xt,2,2,"ng-container",7),e.qZA()),2&Yt){const ee=Ri.$implicit,Ze=e.oxw();e.xp6(1),e.Q6J("ngIf",Ze.weekNumber),e.xp6(1),e.Q6J("kForOf",ee)}}function Mt(Yt,Ri){if(1&Yt&&(e.TgZ(0,"caption",7),e._uU(1),e.qZA()),2&Yt){const ee=e.oxw().date,Ze=e.oxw();e.Q6J("ngClass",Ze.getCaptionClass()),e.xp6(1),e.Oqu(Ze.getCaptionTitle(ee))}}function pt(Yt,Ri){if(1&Yt&&(e.TgZ(0,"th",11),e._uU(1),e.qZA()),2&Yt){const ee=Ri.$implicit,Ze=Ri.index,Yn=e.oxw(3);e.uIk("aria-label",Yn.wideWeekNames[Ze]),e.xp6(1),e.Oqu(ee)}}function Lt(Yt,Ri){if(1&Yt&&(e.TgZ(0,"thead",8)(1,"tr",9),e.YNc(2,pt,2,2,"th",10),e.qZA()()),2&Yt){const ee=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",ee.weekNames)}}function tt(Yt,Ri){if(1&Yt){const ee=e.EpF();e.TgZ(0,"table",3),e.NdJ("focus",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.handleClassicCalendarFocus())})("blur",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.handleClassicCalendarBlur(Yn))}),e.YNc(1,Mt,2,2,"caption",4),e.YNc(2,Lt,3,1,"thead",5),e.TgZ(3,"tbody",6),e.NdJ("cellClick",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.cellClick.emit(Yn))})("weekNumberCellClick",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.weekNumberCellClick.emit(Yn))})("cellEnter",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.cellEnter.emit(Yn))})("cellLeave",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.cellLeave.emit(Yn))})("focusedCellId",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.focusedCellChange.emit(Yn))}),e.qZA()()}if(2&Yt){const ee=Ri.date,Ze=Ri.className,Yn=e.oxw();e.Q6J("ngClass",Ze),e.uIk("role",Yn.views>=2?"none":"grid")("aria-labelledby",Yn.id)("aria-activedescendant",Yn.getActiveDescendant)("tabindex",Yn.getTabIndex),e.xp6(1),e.Q6J("ngIf",Yn.showViewHeader),e.xp6(1),e.Q6J("ngIf",Yn.isMonthView()),e.xp6(1),e.Q6J("activeView",Yn.activeView)("isActive",Yn.isActive)("min",Yn.min)("max",Yn.max)("cellUID",Yn.cellUID)("focusedDate",Yn.focusedDate)("selectedDates",Yn.selectedDates)("selectionRange",Yn.selectionRange)("activeRangeEnd",Yn.activeRangeEnd)("weekNumber",Yn.weekNumber)("templateRef",Yn.cellTemplateRef)("weekNumberTemplateRef",Yn.weekNumberTemplateRef)("viewDate",ee)}}function Ne(Yt,Ri){}const vt=function(Yt){return{date:Yt,className:"k-pointer-events-none"}};function ln(Yt,Ri){if(1&Yt&&e.YNc(0,Ne,0,0,"ng-template",12),2&Yt){const ee=e.oxw(),Ze=e.MAs(1);e.Q6J("ngTemplateOutlet",Ze)("ngTemplateOutletContext",e.VKq(2,vt,ee.nextAnimationDate))}}function jn(Yt,Ri){}const Pi=function(Yt){return{date:Yt}};function go(Yt,Ri){if(1&Yt&&e.YNc(0,jn,0,0,"ng-template",12),2&Yt){const ee=Ri.$implicit;e.oxw();const Ze=e.MAs(1);e.Q6J("ngTemplateOutlet",Ze)("ngTemplateOutletContext",e.VKq(2,Pi,ee))}}function si(Yt,Ri){}function ot(Yt,Ri){if(1&Yt&&e.YNc(0,si,0,0,"ng-template",12),2&Yt){const ee=e.oxw(),Ze=e.MAs(1);e.Q6J("ngTemplateOutlet",Ze)("ngTemplateOutletContext",e.VKq(2,vt,ee.prevAnimationDate))}}function pn(Yt,Ri){if(1&Yt&&e._uU(0),2&Yt){const ee=e.oxw();e.Oqu(ee.title)}}function _i(Yt,Ri){}function wi(Yt,Ri){if(1&Yt){const ee=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.prevButtonClick.emit())}),e.qZA()}if(2&Yt){const ee=e.oxw();e.Q6J("svgIcon",ee.chevronLeftIcon)("disabled",ee.isPrevDisabled)("title",ee.prevButtonTitle),e.uIk("aria-disabled",ee.isPrevDisabled)}}function hi(Yt,Ri){if(1&Yt){const ee=e.EpF();e.TgZ(0,"button",9),e.NdJ("click",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.nextButtonClick.emit())}),e.qZA()}if(2&Yt){const ee=e.oxw();e.Q6J("svgIcon",ee.chevronRightIcon)("disabled",ee.isNextDisabled)("title",ee.nextButtonTitle),e.uIk("aria-disabled",ee.isNextDisabled)}}const zn=function(Yt,Ri,ee){return{$implicit:Yt,activeView:Ri,date:ee}},Ei=["*"],li=["list"];function Xi(Yt,Ri){if(1&Yt&&e._uU(0),2&Yt){const ee=e.oxw().$implicit,Ze=e.oxw();e.Oqu(Ze.service.navigationTitle(ee))}}function ki(Yt,Ri){}function bo(Yt,Ri){if(1&Yt&&(e.TgZ(0,"li")(1,"span"),e.YNc(2,Xi,1,1,"ng-template",5),e.YNc(3,ki,0,0,"ng-template",6),e.qZA()()),2&Yt){const ee=Ri.$implicit,Ze=Ri.index,Yn=e.oxw();e.uIk("data-date-index",Ze),e.xp6(1),e.ekj("k-calendar-navigation-marker",Yn.service.isRangeStart(ee)),e.xp6(1),e.Q6J("ngIf",!Yn.templateRef),e.xp6(1),e.Q6J("ngIf",Yn.templateRef)("ngTemplateOutlet",Yn.templateRef)("ngTemplateOutletContext",e.kEZ(7,zn,Yn.service.navigationTitle(ee),Yn.activeViewValue,ee))}}function jo(Yt,Ri){if(1&Yt&&(e.TgZ(0,"th",11),e._uU(1),e.qZA()),2&Yt){const ee=Ri.$implicit,Ze=Ri.index,Yn=e.oxw(2);e.uIk("aria-label",Yn.wideWeekNames[Ze]),e.xp6(1),e.Oqu(ee)}}function wn(Yt,Ri){if(1&Yt&&(e.TgZ(0,"table",7)(1,"thead",8)(2,"tr",9),e.YNc(3,jo,2,2,"th",10),e.qZA()()()),2&Yt){const ee=e.oxw();e.Udp("table-layout","auto"),e.xp6(3),e.Q6J("ngForOf",ee.weekNames)}}function Zi(Yt,Ri){1&Yt&&e._UZ(0,"col")}function oo(Yt,Ri){if(1&Yt){const ee=e.EpF();e.TgZ(0,"tbody",12),e.NdJ("cellClick",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.cellClick.emit(Yn))})("weekNumberCellClick",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.weekNumberCellClick.emit(Yn))})("focusedCellId",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.focusedCellChange.emit(Yn))}),e.qZA()}if(2&Yt){const ee=Ri.$implicit,Ze=e.oxw();e.Q6J("headerTitle",Ze.headerTitle)("activeView",Ze.activeView)("isActive",Ze.isActive)("min",Ze.min)("max",Ze.max)("cellUID",Ze.cellUID)("focusedDate",Ze.focusedDate)("selectedDates",Ze.selectedDates)("weekNumber",Ze.weekNumber)("templateRef",Ze.cellTemplateRef)("weekNumberTemplateRef",Ze.weekNumberTemplateRef)("viewDate",ee)}}function Bi(Yt,Ri){if(1&Yt){const ee=e.EpF();e.TgZ(0,"kendo-calendar-navigation",5),e.NdJ("valueChange",function(Yn){e.CHM(ee);const Bo=e.oxw(2);return e.KtG(Bo.handleNavigation(Yn))})("pageChange",function(){e.CHM(ee);const Yn=e.oxw(2);return e.KtG(Yn.onPageChange())}),e.qZA()}if(2&Yt){const ee=e.oxw(2);e.Q6J("activeView",ee.activeViewEnum)("focusedDate",ee.focusedDate)("min",ee.min)("max",ee.max)("templateRef",null==ee.navigationItemTemplateRef?null:ee.navigationItemTemplateRef.templateRef)}}function Xo(Yt,Ri){if(1&Yt){const ee=e.EpF();e.ynx(0),e.YNc(1,Bi,1,5,"kendo-calendar-navigation",2),e.TgZ(2,"kendo-calendar-viewlist",3),e.NdJ("todayButtonClick",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.handleDateChange({selectedDates:[Yn],focusedDate:Yn}))})("cellClick",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.handleCellClick(Yn))})("weekNumberCellClick",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.handleWeekNumberClick(Yn))})("activeDateChange",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.handleActiveDateChange(Yn))})("pageChange",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.onPageChange())})("focusCalendar",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.handleFocus())})("blurCalendar",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.handleBlur(Yn))}),e.qZA(),e.TgZ(3,"kendo-resize-sensor",4),e.NdJ("resize",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.onResize())}),e.qZA(),e.BQk()}if(2&Yt){const ee=e.oxw();let Ze;e.xp6(1),e.Q6J("ngIf",ee.navigation),e.xp6(1),e.Q6J("activeView",ee.activeViewEnum)("isActive",ee.isActive)("id",ee.headerId)("cellTemplateRef",null==(Ze=ee.activeCellTemplate())?null:Ze.templateRef)("headerTitleTemplateRef",null==ee.headerTitleTemplateRef?null:ee.headerTitleTemplateRef.templateRef)("weekNumberTemplateRef",null==ee.weekNumberTemplateRef?null:ee.weekNumberTemplateRef.templateRef)("cellUID",ee.cellUID)("min",ee.min)("max",ee.max)("focusedDate",ee.focusedDate)("weekNumber",ee.weekNumber)("selectedDates",ee.selectedDates)("tabIndex",ee.tabIndex)("disabled",ee.disabled)}}function Lo(Yt,Ri){if(1&Yt){const ee=e.EpF();e.ynx(0),e.TgZ(1,"kendo-multiviewcalendar",6,7),e.NdJ("activeViewChange",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.handleActiveViewChange(Yn))})("navigate",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.handleNavigate(Yn))})("valueChange",function(Yn){e.CHM(ee);const Bo=e.MAs(2),$r=e.oxw();return e.KtG($r.handleMultiViewCalendarValueChange(Yn,Bo.focusedDate))})("focusCalendar",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.handleFocus())})("blur",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.handleBlur(Yn))})("blurEvent",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.handleBlur(Yn))})("keydown",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.handleMultiViewCalendarKeydown(Yn))}),e._UZ(3,"kendo-multiviewcalendar-messages",8),e.qZA(),e.BQk()}if(2&Yt){const ee=e.oxw();e.xp6(1),e.Q6J("views",1)("min",ee.min)("max",ee.max)("id",ee.id)("disabled",ee.disabled)("isActive",ee.isActive)("tabIndex",ee.tabIndex)("activeView",ee.activeView)("bottomView",ee.bottomView)("topView",ee.topView)("weekNumber",ee.weekNumber)("animateNavigation",ee.animateNavigation)("cellTemplate",ee.activeCellTemplate())("monthCellTemplate",ee.monthCellTemplateRef)("yearCellTemplate",ee.yearCellTemplateRef)("decadeCellTemplate",ee.decadeCellTemplateRef)("centuryCellTemplate",ee.centuryCellTemplateRef)("headerTitleTemplate",ee.headerTitleTemplateRef)("weekNumberTemplate",ee.weekNumberTemplateRef)("focusedDate",ee.focusedDate)("selection",ee.selection)("value",ee.value)("disabledDates",ee.disabledDates),e.xp6(2),e.Q6J("today",ee.localization.get("today"))("prevButtonTitle",ee.localization.get("prevButtonTitle"))("nextButtonTitle",ee.localization.get("nextButtonTitle"))("parentViewButtonTitle",ee.localization.get("parentViewButtonTitle"))}}const or=["dateInput"],xr=["spinup"],Nr=["spindown"];function as(Yt,Ri){if(1&Yt){const ee=e.EpF();e.TgZ(0,"span",4),e.NdJ("mousedown",function(Yn){return Yn.preventDefault()}),e.TgZ(1,"button",5,6),e.NdJ("mousedown",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.arrowDirection=Yn.arrow.Up)})("mouseleave",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.arrowDirection=Yn.arrow.None)})("click",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.handleButtonClick(1))}),e._UZ(3,"kendo-icon-wrapper",7),e.qZA(),e.TgZ(4,"button",8,9),e.NdJ("click",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.handleButtonClick(-1))})("mousedown",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.arrowDirection=Yn.arrow.Down)})("mouseleave",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.arrowDirection=Yn.arrow.None)}),e._UZ(6,"kendo-icon-wrapper",10),e.qZA()()}if(2&Yt){const ee=e.oxw();e.xp6(1),e.ekj("k-active",ee.arrowDirection===ee.arrow.Up),e.Q6J("title",ee.localization.get("increment")),e.uIk("aria-label",ee.localization.get("increment")),e.xp6(2),e.Q6J("svgIcon",ee.caretAltUpIcon),e.xp6(1),e.ekj("k-active",ee.arrowDirection===ee.arrow.Down),e.Q6J("title",ee.localization.get("decrement")),e.uIk("aria-label",ee.localization.get("decrement")),e.xp6(2),e.Q6J("svgIcon",ee.caretAltDownIcon)}}const ji=function(Yt,Ri,ee,Ze,Yn,Bo,$r){return{click:Yt,focus:Ri,mousedown:ee,touchstart:Ze,dragstart:Yn,drop:Bo,blur:$r}},Fo=["container"],rt=["popupTemplate"],ai=["toggleButton"],Gn=["actionSheet"];function Io(Yt,Ri){1&Yt&&e.GkF(0)}function wr(Yt,Ri){if(1&Yt&&e.YNc(0,Io,1,0,"ng-container",13),2&Yt){e.oxw();const ee=e.MAs(15);e.Q6J("ngTemplateOutlet",ee)}}function bs(Yt,Ri){if(1&Yt){const ee=e.EpF();e.TgZ(0,"kendo-resize-sensor",14),e.NdJ("resize",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.onResize())}),e.qZA()}}function ba(Yt,Ri){1&Yt&&e.GkF(0)}function ms(Yt,Ri){if(1&Yt){const ee=e.EpF();e.TgZ(0,"div",15)(1,"div",16)(2,"div",17)(3,"div",18),e._uU(4),e.qZA(),e.TgZ(5,"div",19),e._uU(6),e.qZA()(),e.TgZ(7,"div",20)(8,"button",21),e.NdJ("click",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.show=!1)}),e.qZA()()()(),e.TgZ(9,"div",22),e.YNc(10,ba,1,0,"ng-container",13),e.qZA()}if(2&Yt){const ee=e.oxw(),Ze=e.MAs(15);e.xp6(4),e.Oqu(ee.title),e.xp6(2),e.Oqu(ee.subtitle),e.xp6(2),e.Q6J("svgIcon",ee.xIcon)("tabIndex",-1),e.uIk("title",ee.localization.get("clearTitle")),e.xp6(2),e.Q6J("ngTemplateOutlet",Ze)}}const Oa=function(Yt){return{keydown:Yt}};function Ea(Yt,Ri){if(1&Yt){const ee=e.EpF();e.TgZ(0,"kendo-calendar",23,24),e.NdJ("valueChange",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.handleChange(Bo.mergeTime(Yn)))}),e._UZ(2,"kendo-calendar-messages",25),e.qZA()}if(2&Yt){const ee=e.oxw();e.Q6J("size",ee.isAdaptive?"large":"medium")("type",ee.calendarType)("min",ee.min)("max",ee.max)("navigation",ee.navigation)("animateNavigation",ee.animateCalendarNavigation)("activeView",ee.activeView)("bottomView",ee.bottomView)("topView",ee.topView)("weekNumber",ee.weekNumber)("cellTemplate",ee.cellTemplate)("monthCellTemplate",ee.monthCellTemplate)("yearCellTemplate",ee.yearCellTemplate)("decadeCellTemplate",ee.decadeCellTemplate)("centuryCellTemplate",ee.centuryCellTemplate)("weekNumberTemplate",ee.weekNumberTemplate)("headerTitleTemplate",ee.headerTitleTemplate)("navigationItemTemplate",ee.navigationItemTemplate)("focusedDate",ee.focusedDate)("value",ee.value)("kendoEventsOutsideAngular",e.VKq(26,Oa,ee.handleKeydown))("scope",ee)("disabledDates",ee.disabledDates),e.xp6(2),e.Q6J("today",ee.localization.get("today"))("prevButtonTitle",ee.localization.get("prevButtonTitle"))("nextButtonTitle",ee.localization.get("nextButtonTitle"))}}const Sa=function(Yt,Ri){return{click:Yt,mousedown:Ri}};function tr(Yt,Ri){if(1&Yt&&(e.TgZ(0,"li",3)(1,"span"),e._uU(2),e.qZA()()),2&Yt){const ee=Ri.$implicit,Ze=Ri.index,Yn=e.oxw();e.uIk("data-timelist-item-index",Ze)("role","option")("aria-selected",Ze===Yn.currentSelectedIndex),e.xp6(2),e.Oqu(ee.text)}}const Mr=["accept"],Li=["cancel"],Ao=["now"],ao=["listWrapper"],Go=function(Yt,Ri,ee){return{click:Yt,focus:Ri,blur:ee}};function pr(Yt,Ri){if(1&Yt&&(e.TgZ(0,"button",8,9),e._uU(2),e.qZA()),2&Yt){const ee=e.oxw();e.Q6J("kendoEventsOutsideAngular",e.kEZ(6,Go,ee.handleNow,ee.handleFocus,ee.handleBlur))("scope",ee)("disabled",ee.disabled),e.uIk("title",ee.localization.get("nowLabel"))("aria-label",ee.localization.get("nowLabel")),e.xp6(2),e.Oqu(ee.localization.get("now"))}}const Rr=function(Yt,Ri){return{focus:Yt,blur:Ri}};function br(Yt,Ri){if(1&Yt){const ee=e.EpF();e.TgZ(0,"div",12,13)(2,"span",2),e._uU(3),e.qZA(),e.TgZ(4,"kendo-timelist",14),e.NdJ("valueChange",function(Yn){e.CHM(ee);const Bo=e.oxw(2);return e.KtG(Bo.current=Yn)})("tabOutLastPart",function(){e.CHM(ee);const Yn=e.oxw(2);return e.KtG(Yn.tabOutLastPart.emit())}),e.qZA()()}if(2&Yt){const ee=e.oxw(),Ze=ee.$implicit,Yn=ee.index,Bo=e.oxw();e.xp6(3),e.Oqu(Bo.intl.dateFieldName(Ze)),e.xp6(1),e.Q6J("isLast",Yn===Bo.dateFormatParts.length-1)("min",Bo.min)("max",Bo.max)("part",Ze)("step",Bo.partStep(Ze))("disabled",Bo.disabled)("value",Bo.current)("kendoEventsOutsideAngular",e.WLB(11,Rr,Bo.handleListFocus,Bo.handleBlur))("scope",Bo),e.uIk("data-timelist-index",Yn)}}function Ti(Yt,Ri){if(1&Yt&&(e.TgZ(0,"div",15),e._uU(1),e.qZA()),2&Yt){const ee=e.oxw().$implicit;e.xp6(1),e.hij(" ",ee.pattern," ")}}function mr(Yt,Ri){if(1&Yt&&(e.YNc(0,br,5,14,"div",10),e.YNc(1,Ti,2,1,"div",11)),2&Yt){const ee=Ri.$implicit;e.Q6J("ngIf","literal"!==ee.type),e.xp6(1),e.Q6J("ngIf","literal"===ee.type)}}const ri=function(Yt,Ri,ee,Ze){return{click:Yt,focus:Ri,blur:ee,keydown:Ze}};function mo(Yt,Ri){if(1&Yt&&(e.TgZ(0,"button",19,20),e._uU(2),e.qZA()),2&Yt){const ee=e.oxw(2);e.Q6J("kendoEventsOutsideAngular",e.l5B(6,ri,ee.handleAccept,ee.handleFocus,ee.handleBlur,ee.handleTabOut))("scope",ee)("disabled",ee.disabled),e.uIk("title",ee.localization.get("acceptLabel"))("aria-label",ee.localization.get("acceptLabel")),e.xp6(2),e.Oqu(ee.localization.get("accept"))}}function Ii(Yt,Ri){if(1&Yt&&(e.TgZ(0,"button",21,22),e._uU(2),e.qZA()),2&Yt){const ee=e.oxw(2);e.Q6J("kendoEventsOutsideAngular",e.kEZ(6,Go,ee.handleReject,ee.handleFocus,ee.handleBlur))("scope",ee)("disabled",ee.disabled),e.uIk("title",ee.localization.get("cancelLabel"))("aria-label",ee.localization.get("cancelLabel")),e.xp6(2),e.Oqu(ee.localization.get("cancel"))}}function yo(Yt,Ri){if(1&Yt&&(e.TgZ(0,"div",16),e.YNc(1,mo,3,11,"button",17),e.YNc(2,Ii,3,10,"button",18),e.qZA()),2&Yt){const ee=e.oxw();e.xp6(1),e.Q6J("ngIf",ee.setButton),e.xp6(1),e.Q6J("ngIf",ee.cancelButton)}}function lr(Yt,Ri){1&Yt&&e.GkF(0)}function Yr(Yt,Ri){if(1&Yt&&e.YNc(0,lr,1,0,"ng-container",13),2&Yt){e.oxw();const ee=e.MAs(15);e.Q6J("ngTemplateOutlet",ee)}}function Gs(Yt,Ri){if(1&Yt){const ee=e.EpF();e.TgZ(0,"kendo-resize-sensor",14),e.NdJ("resize",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.onResize())}),e.qZA()}}function fi(Yt,Ri){1&Yt&&e.GkF(0)}function Ho(Yt,Ri){if(1&Yt){const ee=e.EpF();e.TgZ(0,"div",15)(1,"div",16)(2,"div",17)(3,"div",18),e._uU(4),e.qZA(),e.TgZ(5,"div",19),e._uU(6),e.qZA()(),e.TgZ(7,"div",20)(8,"button",21),e.NdJ("click",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.show=!1)}),e.qZA()()()(),e.TgZ(9,"div",22),e.YNc(10,fi,1,0,"ng-container",13),e.qZA(),e.TgZ(11,"div",23)(12,"button",24),e.NdJ("click",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.handleReject())}),e._uU(13),e.qZA(),e.TgZ(14,"button",25),e.NdJ("click",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.handleActionSheetAccept())}),e._uU(15),e.qZA()()}if(2&Yt){const ee=e.oxw(),Ze=e.MAs(15);e.xp6(4),e.Oqu(ee.title),e.xp6(2),e.Oqu(ee.subtitle),e.xp6(2),e.Q6J("svgIcon",ee.xIcon)("tabIndex",-1),e.uIk("title",ee.localization.get("clearTitle")),e.xp6(2),e.Q6J("ngTemplateOutlet",Ze),e.xp6(2),e.uIk("title",ee.localization.get("cancelLabel"))("aria-label",ee.localization.get("cancelLabel")),e.xp6(1),e.hij(" ",ee.localization.get("cancel")," "),e.xp6(1),e.uIk("title",ee.localization.get("acceptLabel"))("aria-label",ee.localization.get("acceptLabel")),e.xp6(1),e.hij(" ",ee.localization.get("accept")," ")}}const _t=function(Yt,Ri){return{keydown:Yt,mousedown:Ri}};function Zn(Yt,Ri){if(1&Yt){const ee=e.EpF();e.TgZ(0,"kendo-timeselector",26,27),e.NdJ("valueChange",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.handleChange(Yn))})("valueReject",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.handleReject())})("tabOutLastPart",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.onTabOutLastPart())}),e._UZ(2,"kendo-timeselector-messages",28),e.qZA()}if(2&Yt){const ee=e.oxw();e.ekj("k-timeselector-lg",ee.isAdaptive),e.Q6J("cancelButton",ee.cancelButton&&!ee.isAdaptive)("setButton",!ee.isAdaptive)("nowButton",ee.nowButton)("format",ee.format)("min",ee.min)("max",ee.max)("steps",ee.steps)("value",ee.value)("isAdaptiveEnabled",ee.isAdaptiveModeEnabled)("kendoEventsOutsideAngular",e.WLB(24,_t,ee.handleKeydown,ee.handleMousedown))("scope",ee),e.xp6(2),e.Q6J("acceptLabel",ee.localization.get("acceptLabel"))("accept",ee.localization.get("accept"))("cancelLabel",ee.localization.get("cancelLabel"))("cancel",ee.localization.get("cancel"))("nowLabel",ee.localization.get("nowLabel"))("now",ee.localization.get("now"))("hour",ee.localization.get("hour"))("minute",ee.localization.get("minute"))("second",ee.localization.get("second"))("millisecond",ee.localization.get("millisecond"))("dayperiod",ee.localization.get("dayperiod"))}}function qo(Yt,Ri){if(1&Yt&&e._UZ(0,"kendo-icon-wrapper",13),2&Yt){const ee=e.oxw();e.Q6J("svgIcon",ee.calendarIcon)}}function Cr(Yt,Ri){if(1&Yt&&e._UZ(0,"kendo-icon-wrapper",14),2&Yt){const ee=e.oxw();e.Q6J("svgIcon",ee.clockIcon)}}function kr(Yt,Ri){1&Yt&&e.GkF(0)}function xs(Yt,Ri){if(1&Yt&&e.YNc(0,kr,1,0,"ng-container",15),2&Yt){e.oxw();const ee=e.MAs(15);e.Q6J("ngTemplateOutlet",ee)}}function Us(Yt,Ri){if(1&Yt){const ee=e.EpF();e.TgZ(0,"kendo-resize-sensor",16),e.NdJ("resize",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.onResize())}),e.qZA()}}function Ts(Yt,Ri){1&Yt&&e.GkF(0)}function Ss(Yt,Ri){if(1&Yt){const ee=e.EpF();e.TgZ(0,"div",17)(1,"div",18)(2,"div",19)(3,"div",20),e._uU(4),e.qZA(),e.TgZ(5,"div",21),e._uU(6),e.qZA()(),e.TgZ(7,"div",22)(8,"button",23),e.NdJ("click",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.toggleDateTime(!1))}),e.qZA()()()(),e.TgZ(9,"div",24),e.YNc(10,Ts,1,0,"ng-container",15),e.qZA(),e.TgZ(11,"div",25)(12,"button",26),e.NdJ("click",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.handleCancel())}),e._uU(13),e.qZA(),e.TgZ(14,"button",27),e.NdJ("click",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.handleAccept())}),e._uU(15),e.qZA()()}if(2&Yt){const ee=e.oxw(),Ze=e.MAs(15);e.xp6(4),e.Oqu(ee.title),e.xp6(2),e.Oqu(ee.subtitle),e.xp6(2),e.Q6J("svgIcon",ee.xIcon)("tabIndex",-1),e.uIk("title",ee.localization.get("clearTitle")),e.xp6(2),e.Q6J("ngTemplateOutlet",Ze),e.xp6(2),e.uIk("title",ee.localization.get("cancelLabel"))("aria-label",ee.localization.get("cancelLabel")),e.xp6(1),e.hij(" ",ee.localization.get("cancel")," "),e.xp6(1),e.uIk("title",ee.localization.get("acceptLabel"))("aria-label",ee.localization.get("acceptLabel")),e.xp6(1),e.hij(" ",ee.localization.get("accept")," ")}}const Ua=function(Yt,Ri){return{click:Yt,"keydown.tab":Ri}};function $o(Yt,Ri){if(1&Yt&&(e.TgZ(0,"button",46),e._uU(1),e.qZA()),2&Yt){const ee=e.oxw(3);e.Q6J("ngClass",ee.popupButtonsClasses())("kendoEventsOutsideAngular",e.WLB(6,Ua,ee.handleCancel,ee.handleTab))("scope",ee),e.uIk("title",ee.localization.get("cancelLabel"))("aria-label",ee.localization.get("cancelLabel")),e.xp6(1),e.hij(" ",ee.localization.get("cancel")," ")}}const Ar=function(Yt,Ri){return{focusin:Yt,focusout:Ri}};function No(Yt,Ri){if(1&Yt&&(e.TgZ(0,"div",43)(1,"button",44),e._uU(2),e.qZA(),e.YNc(3,$o,2,9,"button",45),e.qZA()),2&Yt){const ee=e.oxw(2);e.Q6J("kendoEventsOutsideAngular",e.WLB(10,Ar,ee.handleFocus,ee.handleBlur))("scope",ee),e.xp6(1),e.Q6J("ngClass",ee.popupButtonsClasses("primary"))("disabled",!ee.calendarValue)("kendoEventsOutsideAngular",e.WLB(13,Ua,ee.handleAccept,ee.handleTab))("scope",ee),e.uIk("title",ee.localization.get("acceptLabel"))("aria-label",ee.localization.get("acceptLabel")),e.xp6(1),e.hij(" ",ee.localization.get("accept")," "),e.xp6(1),e.Q6J("ngIf",ee.cancelButton)}}const qr=function(Yt,Ri){return{mousedown:Yt,keydown:Ri}},js=function(Yt,Ri){return{click:Yt,"keydown.shift.tab":Ri}},Ds=function(Yt){return{transitionend:Yt}},Zr=function(Yt){return{"k-calendar-lg":Yt}},ls=function(Yt){return{"k-timeselector-lg":Yt}};function Hs(Yt,Ri){if(1&Yt){const ee=e.EpF();e.TgZ(0,"div",28)(1,"div",29)(2,"div",30)(3,"button",31),e._uU(4),e.qZA(),e.TgZ(5,"button",32),e._uU(6),e.qZA()()(),e.TgZ(7,"div",33,34)(9,"div",35)(10,"kendo-calendar",36,37),e.NdJ("valueChange",function(Yn){e.CHM(ee);const Bo=e.oxw();return e.KtG(Bo.calendarValue=Yn)})("valueChange",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.handleCalendarValueChange())}),e._UZ(12,"kendo-calendar-messages",38),e.qZA()(),e.TgZ(13,"div",39)(14,"kendo-timeselector",40),e.NdJ("tabOutLastPart",function(){e.CHM(ee);const Yn=e.oxw();return e.KtG(Yn.onTabOutLastPart())}),e._UZ(15,"kendo-timeselector-messages",41),e.qZA()()(),e.YNc(16,No,4,16,"div",42),e.qZA()}if(2&Yt){const ee=e.MAs(8),Ze=e.oxw();e.Gre("k-datetime-wrap k-",Ze.activeTab,"-tab"),e.Q6J("kendoEventsOutsideAngular",e.WLB(71,qr,Ze.preventMouseDown,Ze.handleKeyDown))("scope",Ze),e.xp6(1),e.Q6J("kendoEventsOutsideAngular",e.WLB(74,Ar,Ze.handleFocus,Ze.handleBlur))("scope",Ze),e.xp6(2),e.ekj("k-active","date"===Ze.activeTab),e.Q6J("ngClass",Ze.popupButtonsClasses())("kendoEventsOutsideAngular",e.WLB(77,js,Ze.changeActiveTab.bind(Ze,"date"),Ze.handleTab))("scope",Ze),e.uIk("aria-pressed","date"===Ze.activeTab?"true":"false")("title",Ze.localization.get("dateTabLabel"))("aria-label",Ze.localization.get("dateTabLabel")),e.xp6(1),e.hij(" ",Ze.localization.get("dateTab")," "),e.xp6(1),e.ekj("k-active","time"===Ze.activeTab),e.Q6J("ngClass",Ze.popupButtonsClasses())("kendoEventsOutsideAngular",e.VKq(80,Ji,Ze.changeActiveTab.bind(Ze,"time"))),e.uIk("aria-pressed","time"===Ze.activeTab?"true":"false")("title",Ze.localization.get("timeTabLabel"))("aria-label",Ze.localization.get("timeTabLabel")),e.xp6(1),e.hij(" ",Ze.localization.get("timeTab")," "),e.xp6(1),e.Udp("transition",Ze.tabSwitchTransition),e.Q6J("kendoEventsOutsideAngular",e.VKq(82,Ds,Ze.handleTabChangeTransitionEnd.bind(Ze,ee))),e.xp6(3),e.Q6J("ngClass",e.VKq(84,Zr,Ze.isAdaptive))("focusedDate",Ze.focusedDate)("value",Ze.calendarValue)("type",Ze.calendarType)("min",Ze.calendarMin)("max",Ze.calendarMax)("weekNumber",Ze.weekNumber)("navigation",!1)("animateNavigation",Ze.animateCalendarNavigation)("cellTemplate",Ze.cellTemplate)("monthCellTemplate",Ze.monthCellTemplate)("yearCellTemplate",Ze.yearCellTemplate)("decadeCellTemplate",Ze.decadeCellTemplate)("centuryCellTemplate",Ze.centuryCellTemplate)("weekNumberTemplate",Ze.weekNumberTemplate)("headerTitleTemplate",Ze.headerTitleTemplate)("disabled",Ze.disableCalendar)("disabledDates",Ze.disabledDates),e.xp6(2),e.Q6J("today",Ze.localization.get("today"))("prevButtonTitle",Ze.localization.get("prevButtonTitle"))("nextButtonTitle",Ze.localization.get("nextButtonTitle")),e.xp6(2),e.Q6J("ngClass",e.VKq(86,ls,Ze.isAdaptive))("value",Ze.value)("format",Ze.timeSelectorFormat)("min",Ze.timeSelectorMin)("max",Ze.timeSelectorMax)("setButton",!1)("cancelButton",!1)("steps",Ze.steps)("disabled",Ze.disableTimeSelector)("isAdaptiveEnabled",Ze.isAdaptiveModeEnabled)("isDateTimePicker",!0),e.xp6(1),e.Q6J("acceptLabel",Ze.localization.get("acceptLabel"))("accept",Ze.localization.get("accept"))("cancelLabel",Ze.localization.get("cancelLabel"))("cancel",Ze.localization.get("cancel"))("nowLabel",Ze.localization.get("nowLabel"))("now",Ze.localization.get("now"))("hour",Ze.localization.get("hour"))("minute",Ze.localization.get("minute"))("second",Ze.localization.get("second"))("millisecond",Ze.localization.get("millisecond"))("dayperiod",Ze.localization.get("dayperiod")),e.xp6(1),e.Q6J("ngIf",!Ze.isAdaptive)}}const Js=function(Yt,Ri){return{mousedown:Yt,click:Ri}},Tt={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1689688681,version:"13.2.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};var ht=function(Yt){return Yt[Yt.Left=0]="Left",Yt[Yt.Right=1]="Right",Yt[Yt.Up=2]="Up",Yt[Yt.Down=3]="Down",Yt[Yt.PrevView=4]="PrevView",Yt[Yt.NextView=5]="NextView",Yt[Yt.FirstInView=6]="FirstInView",Yt[Yt.LastInView=7]="LastInView",Yt[Yt.LowerView=8]="LowerView",Yt[Yt.UpperView=9]="UpperView",Yt}(ht||{});const yn={start:null,end:null},vi=new Date(1980,0,1),Yi=new Date(1900,0,1),co=new Date(2099,11,31),sr=new Date(1980,0,1),yr=new Date(1980,0,1,23,59,59),Ur=Yt=>Yt&&(!Yt.touched||Yt.control&&"blur"===Yt.control.updateOn),ss=Yt=>Yt.preventDefault(),gs=Yt=>Yt.relatedTarget||document.activeElement,Pr=Yt=>null!=Yt,ga=Yt=>Yt.shiftKey&&(Yt.keyCode===al.ArrowRight||Yt.keyCode===al.ArrowLeft||Yt.keyCode===al.ArrowDown||Yt.keyCode===al.ArrowUp);var al=function(Yt){return Yt[Yt.ArrowDown=40]="ArrowDown",Yt[Yt.ArrowLeft=37]="ArrowLeft",Yt[Yt.ArrowRight=39]="ArrowRight",Yt[Yt.ArrowUp=38]="ArrowUp",Yt}(al||{});const ra=Yt=>null!=Yt,Ls=Yt=>(Ri,ee)=>{const Ze=(0,a.k)(Ri);return Ze[Yt](ee),Ze},vn=(Yt,Ri)=>{const ee=(0,a.k)(Yt);return ee.setHours(Ri.getHours(),Ri.getMinutes(),Ri.getSeconds(),Ri.getMilliseconds()),ee},Xe=(Yt,Ri,ee)=>({candidateValue:vn(vi,Yt),maxValue:(0,l.E)(vn(vi,ee),Ri.getHours()<ee.getHours()||Ri.getHours()===ee.getHours()&&Ri.getMinutes()<ee.getMinutes()?0:1),minValue:vn(vi,Ri)}),Ke=Ls("setFullYear"),ze=Ls("setHours"),St=Ls("setMinutes"),it=Ls("setSeconds"),Dt=Ls("setMilliseconds"),Hn=(Yt,Ri,ee=1)=>{const Ze=[];for(let Yn=Yt;Yn<Ri;Yn+=ee)Ze.push(Yn);return Ze},Ui=(Yt,Ri,ee)=>!Yt||!(Ri&&Ri>Yt||ee&&ee<Yt),Co=(Yt,Ri,ee)=>{if(!Yt||!Ri||!ee)return!0;const{candidateValue:Ze,minValue:Yn,maxValue:Bo}=Xe(Yt,Ri,ee);return Yn<=Ze&&Ze<=Bo},Sn=(Yt,Ri)=>!ra(Yt)||!ra(Ri)||Yt<=Ri,Vn=(Yt,Ri,ee)=>Yt&&(Ri&&Yt<Ri?(0,a.k)(Ri):ee&&Yt>ee?(0,a.k)(ee):Yt),kn=()=>new Date,ui=()=>(0,u._)(new Date),Ot=Yt=>{},en=()=>typeof window<"u",Ht=(Yt,Ri)=>Yt.slice(Ri).concat(Yt.slice(0,Ri)),Nt=Yt=>(Ri,ee="",Ze={})=>{const Yn=document.createElement(Yt);return Yn.className=ee,Object.keys(Ze).map(Bo=>Yn.style[Bo]=Ze[Bo]),"string"==typeof Ri?Yn.innerHTML=Ri||"":(Ri||[]).forEach(Bo=>Bo&&Yn.appendChild(Bo)),Yn},an=(Yt,Ri)=>void 0!==Yt[Ri],$e=(Yt,Ri)=>Yt[Ri]&&null!=Yt[Ri].currentValue,Je=(Yt=[])=>Yt&&Yt[Yt.length-1],Ve=(Yt,Ri)=>{const{start:ee,end:Ze}=Ri||yn;return!(!ee||!Ze)&&ee<Yt&&Yt<Ze},Rt=(Yt,Ri)=>(Yt=Yt||[]).length===(Ri=Ri||[]).length&&Yt.every((ee,Ze)=>(0,d.X)(ee,Ri[Ze])),Pt=Yt=>Yt.filter(Ri=>Pr(Ri)).sort((Ri,ee)=>Ri.getTime()-ee.getTime()),$t=(Yt,Ri)=>Yt&&Ri?new Date(Yt.getFullYear(),Yt.getMonth(),Yt.getDate(),Ri.getHours(),Ri.getMinutes(),Ri.getSeconds(),Ri.getMilliseconds()):null,Xn=Yt=>Yt?new Date(Yt.getFullYear(),Yt.getMonth(),Yt.getDate(),23,59,59,999):null,Ci=(Yt,Ri)=>({small:`k-${Yt}-sm`,medium:`k-${Yt}-md`,large:`k-${Yt}-lg`}[Ri]),xi=Yt=>({small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[Yt]),Wn=(Yt,Ri)=>({solid:`k-${Yt}-solid`,flat:`k-${Yt}-flat`,outline:`k-${Yt}-outline`}[Ri]),Vt="medium",qt="medium",bn="solid",ii=()=>{if((0,j.X_)())return window.innerWidth>768?"large":window.innerWidth>500?"medium":"small"},Vi=[[]],mn={[ht.Left]:Yt=>f(Yt,-1),[ht.Up]:Yt=>f(Yt,-5),[ht.Right]:Yt=>f(Yt,1),[ht.Down]:Yt=>f(Yt,5),[ht.PrevView]:Yt=>k(Yt,-1),[ht.NextView]:Yt=>k(Yt,1),[ht.FirstInView]:Yt=>g(Yt),[ht.LastInView]:Yt=>M(Yt)};let Qn=(()=>{class Yt{constructor(){this.dateRange=(ee,Ze)=>{if(!Pr(ee)||!Pr(Ze))return[];const Yn=[];let Bo=ee;for(;Bo<=Ze;)Yn.push(Bo),Bo=f(Bo,1);return Yn}}addToDate(ee,Ze){return k(ee,Ze)}datesList(ee,Ze){return Hn(0,Ze).map(Yn=>k(ee,Yn))}data(ee){const{cellUID:Ze,focusedDate:Yn,isActiveView:Bo,max:$r,min:ea,selectedDates:Fa,selectionRange:el=yn,viewDate:bl}=ee;if(!bl)return Vi;const Ql=Hn(0,4),Pl=g(bl),Zl=M(bl),kc=ui();return Hn(0,3).map(Eu=>{const Td=f(Pl,4*Eu);return Ql.map(Wd=>{const tc=this.normalize(f(Td,Wd),ea,$r),tf=tc.getFullYear()>Zl.getFullYear();if(!this.isInRange(tc,ea,$r)||tf)return null;const zl=this.isEqual(tc,el.start),Uu=this.isEqual(tc,el.end),Tc=!zl&&!Uu&&Ve(tc,el);return{formattedValue:this.value(tc),id:`${Ze}${tc.getTime()}`,isFocused:this.isEqual(tc,Yn),isSelected:Bo&&Fa.some(vh=>this.isEqual(tc,vh)),isWeekend:!1,isRangeStart:zl,isRangeMid:Tc,isRangeEnd:Uu,isRangeSplitEnd:Tc&&this.isEqual(tc,Zl),isRangeSplitStart:Tc&&this.isEqual(tc,Pl),isToday:this.isEqual(tc,kc),title:this.cellTitle(tc),value:tc}})})}isEqual(ee,Ze){return!(!ee||!Ze)&&p(ee).getFullYear()===p(Ze).getFullYear()}isInArray(ee,Ze){if(!Ze.length)return!1;const Yn=ee.getFullYear();return Ze[0].getFullYear()<=Yn&&Yn<=Ze[Ze.length-1].getFullYear()+99}isInRange(ee,Ze,Yn){const Bo=p(ee).getFullYear(),$r=!Ze||p(Ze).getFullYear()<=Bo,ea=!Yn||Bo<=p(Yn).getFullYear();return $r&&ea}beginningOfPeriod(ee){if(!ee)return ee;const Ze=p(g(ee));return(0,_.B)(Ze.getFullYear(),0,1)}lastDayOfPeriod(ee){const Ze=M(ee),Yn=E(Ze),Bo=I(Yn);return(0,C.q)(Bo)}isRangeStart(ee){return ee.getFullYear()%1e3==0}move(ee,Ze){const Yn=mn[Ze];return Yn?Yn(ee):ee}cellTitle(ee){return p(ee).getFullYear().toString()}navigationTitle(ee){return ee?g(ee).getFullYear().toString():""}title(ee){return ee?`${g(ee).getFullYear()} - ${M(ee).getFullYear()}`:""}rowLength(){return 4}skip(ee,Ze){return L(Ze,ee)}total(ee,Ze){return L(ee,Ze)+1}value(ee){return ee?p(ee).getFullYear().toString():""}viewDate(ee,Ze,Yn=1){const Bo=this.total(ee,Ze);return Bo<Yn?k(ee,-1*(Yn-Bo)):ee}normalize(ee,Ze,Yn){return ee<Ze&&this.isEqual(ee,Ze)?(0,a.k)(Ze):ee>Yn&&this.isEqual(ee,Yn)?(0,a.k)(Yn):ee}}return Yt.\u0275fac=function(ee){return new(ee||Yt)},Yt.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const ci=[[]],Pn={[ht.Left]:Yt=>x(Yt,-1),[ht.Up]:Yt=>x(Yt,-5),[ht.Right]:Yt=>x(Yt,1),[ht.Down]:Yt=>x(Yt,5),[ht.PrevView]:Yt=>f(Yt,-1),[ht.NextView]:Yt=>f(Yt,1),[ht.FirstInView]:Yt=>p(Yt),[ht.LastInView]:Yt=>E(Yt)};let qn=(()=>{class Yt{constructor(){this.dateRange=(ee,Ze)=>{if(!Pr(ee)||!Pr(Ze))return[];const Yn=[];let Bo=ee;for(;Bo<=Ze;)Yn.push(Bo),Bo=x(Bo,1);return Yn}}addToDate(ee,Ze){return f(ee,Ze)}datesList(ee,Ze){return Hn(0,Ze).map(Yn=>f(ee,Yn))}data(ee){const{cellUID:Ze,focusedDate:Yn,isActiveView:Bo,max:$r,min:ea,selectedDates:Fa,selectionRange:el=yn,viewDate:bl}=ee;if(!bl)return ci;const Ql=Hn(0,4),Pl=p(bl),Zl=E(bl),kc=ui();return Hn(0,3).map(Eu=>{const Td=x(Pl,4*Eu);return Ql.map(Wd=>{const tc=this.normalize(x(Td,Wd),ea,$r),tf=tc.getFullYear()>Zl.getFullYear();if(!this.isInRange(tc,ea,$r)||tf)return null;const zl=this.isEqual(tc,el.start),Uu=this.isEqual(tc,el.end),Tc=!zl&&!Uu&&Ve(tc,el);return{formattedValue:this.value(tc),id:`${Ze}${tc.getTime()}`,isFocused:this.isEqual(tc,Yn),isSelected:Bo&&Fa.some(vh=>this.isEqual(tc,vh)),isWeekend:!1,isRangeStart:zl,isRangeMid:Tc,isRangeEnd:Uu,isRangeSplitEnd:Tc&&this.isEqual(tc,Zl),isRangeSplitStart:Tc&&this.isEqual(tc,Pl),isToday:this.isEqual(tc,kc),title:this.cellTitle(tc),value:tc}})})}isEqual(ee,Ze){return!(!ee||!Ze)&&ee.getFullYear()===Ze.getFullYear()}isInArray(ee,Ze){if(!Ze.length)return!1;const Yn=ee.getFullYear();return Ze[0].getFullYear()<=Yn&&Yn<=Ze[Ze.length-1].getFullYear()+9}isInRange(ee,Ze,Yn){const Bo=ee.getFullYear(),$r=!Ze||Ze.getFullYear()<=Bo,ea=!Yn||Bo<=Yn.getFullYear();return $r&&ea}beginningOfPeriod(ee){if(!ee)return ee;const Ze=p(ee);return(0,_.B)(Ze.getFullYear(),0,1)}lastDayOfPeriod(ee){const Ze=E(ee),Yn=I(Ze);return(0,C.q)(Yn)}isRangeStart(ee){return ee.getFullYear()%100==0}move(ee,Ze){const Yn=Pn[Ze];return Yn?Yn(ee):ee}cellTitle(ee){return ee.getFullYear().toString()}navigationTitle(ee){return ee?p(ee).getFullYear().toString():""}title(ee){return ee?`${p(ee).getFullYear()} - ${E(ee).getFullYear()}`:""}rowLength(){return 4}skip(ee,Ze){return D(Ze,ee)}total(ee,Ze){return D(ee,Ze)+1}value(ee){return ee?ee.getFullYear().toString():""}viewDate(ee,Ze,Yn=1){const Bo=this.total(ee,Ze);return Bo<Yn?f(ee,-1*(Yn-Bo)):ee}normalize(ee,Ze,Yn){return ee<Ze&&this.isEqual(ee,Ze)?(0,a.k)(Ze):ee>Yn&&this.isEqual(ee,Yn)?(0,a.k)(Yn):ee}}return Yt.\u0275fac=function(ee){return new(ee||Yt)},Yt.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const Ni=[[]],Me={[ht.Left]:Yt=>(0,l.E)(Yt,-1),[ht.Up]:Yt=>F(Yt,-1),[ht.Right]:Yt=>(0,l.E)(Yt,1),[ht.Down]:Yt=>F(Yt,1),[ht.PrevView]:Yt=>(0,A.z)(Yt,-1),[ht.NextView]:Yt=>(0,A.z)(Yt,1),[ht.FirstInView]:Yt=>(0,P.l)(Yt),[ht.LastInView]:Yt=>(0,C.q)(Yt)};let pe=(()=>{class Yt{constructor(ee){this._intlService=ee,this.dateRange=(Ze,Yn)=>{if(!Pr(Ze)||!Pr(Yn))return[];const Bo=[];let $r=Ze;for(;$r<=Yn;)Bo.push($r),$r=(0,l.E)($r,1);return Bo}}addToDate(ee,Ze){return(0,A.z)(ee,Ze)}datesList(ee,Ze){return Hn(0,Ze).map(Yn=>(0,A.z)(ee,Yn))}data(ee){const{cellUID:Ze,focusedDate:Yn,isActiveView:Bo,max:$r,min:ea,selectedDates:Fa,selectionRange:el=yn,viewDate:bl,isDateDisabled:Ql=(()=>!1)}=ee;if(!bl)return Ni;const Pl=(0,P.l)(bl),Zl=(0,u._)(Pl),kc=(0,C.q)(bl),Eu=(0,u._)(kc),Wd=U(Pl,this._intlService.firstDay(),-1),tc=Hn(0,7),tf=ui();return Hn(0,6).map(zl=>{const Uu=(0,l.E)(Wd,7*zl);return tc.map(Xc=>{const Tc=this.normalize((0,l.E)(Uu,Xc),ea,$r),vh=(0,u._)(Tc),vp=vh<Zl||vh>Eu;if(Tc<ea||Tc>$r)return null;const vf=this.isEqual(Tc,el.start),Hf=this.isEqual(Tc,el.end),Fp=!vf&&!Hf&&Ve(Tc,el);return{formattedValue:this.value(Tc),id:`${Ze}${vp?Tc.getTime()+"1":Tc.getTime()}`,isFocused:this.isEqual(Tc,Yn),isSelected:Bo&&Fa.some(Bp=>this.isEqual(Tc,Bp)),isWeekend:this.isWeekend(Tc),isRangeStart:vf,isRangeMid:Fp,isRangeEnd:Hf,isRangeSplitStart:Fp&&this.isEqual(Tc,Pl),isRangeSplitEnd:Fp&&this.isEqual(Tc,kc),isToday:this.isEqual(Tc,tf),title:this.cellTitle(Tc),value:Tc,isDisabled:Ql(Tc),isOtherMonth:vp}})})}isEqual(ee,Ze){return!(!ee||!Ze)&&(0,u._)(ee).getTime()===(0,u._)(Ze).getTime()}isInArray(ee,Ze){if(0===Ze.length)return!1;const Yn=this.beginningOfPeriod(Ze[0]),Bo=this.beginningOfPeriod((0,A.z)(Ze[Ze.length-1],1));return Yn<=ee&&ee<Bo}isInRange(ee,Ze,Yn){const Bo=(0,u._)(ee),$r=!Ze||(0,u._)(Ze)<=Bo,ea=!Yn||Bo<=(0,u._)(Yn);return $r&&ea}beginningOfPeriod(ee){return ee&&(0,_.B)(ee.getFullYear(),ee.getMonth(),1)}lastDayOfPeriod(ee){return(0,C.q)(ee)}isRangeStart(ee){return!ee.getMonth()}move(ee,Ze){const Yn=Me[Ze];return Yn?Yn(ee):ee}cellTitle(ee){return this._intlService.formatDate(ee,"D")}navigationTitle(ee){return ee?this.isRangeStart(ee)?ee.getFullYear().toString():this.abbrMonthNames()[ee.getMonth()]:""}title(ee){return`${this.wideMonthNames()[ee.getMonth()]} ${ee.getFullYear()}`}rowLength(ee={}){return 7+(ee.prependCell?1:0)}skip(ee,Ze){return V(Ze,ee)}total(ee,Ze){return V(ee,Ze)+1}value(ee){return ee?ee.getDate().toString():""}viewDate(ee,Ze,Yn=1){const Bo=this.total(ee,Ze);return Bo<Yn?(0,A.z)(ee,-1*(Yn-Bo)):ee}isWeekend(ee){const{start:Ze,end:Yn}=this._intlService.weekendRange(),Bo=ee.getDay();return Yn<Ze?Bo<=Yn||Ze<=Bo:Ze<=Bo&&Bo<=Yn}abbrMonthNames(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})}normalize(ee,Ze,Yn){return ee<Ze&&this.isEqual(ee,Ze)?(0,a.k)(Ze):ee>Yn&&this.isEqual(ee,Yn)?(0,a.k)(Yn):ee}wideMonthNames(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.LFG(z.aJ))},Yt.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const lt=[[]],ho={[ht.Left]:Yt=>(0,A.z)(Yt,-1),[ht.Up]:Yt=>(0,A.z)(Yt,(Yt=>Yt>4?-5:Yt<2?-2:-7)(Yt.getMonth())),[ht.Right]:Yt=>(0,A.z)(Yt,1),[ht.Down]:Yt=>(0,A.z)(Yt,(Yt=>Yt<7?5:Yt<10?7:2)(Yt.getMonth())),[ht.PrevView]:Yt=>x(Yt,-1),[ht.NextView]:Yt=>x(Yt,1),[ht.FirstInView]:Yt=>K(Yt),[ht.LastInView]:Yt=>I(Yt)};let po=(()=>{class Yt{constructor(ee){this._intlService=ee,this.dateRange=(Ze,Yn)=>{if(!Pr(Ze)||!Pr(Yn))return[];const Bo=[];let $r=Ze;for(;$r<=Yn;)Bo.push($r),$r=(0,A.z)($r,1);return Bo}}addToDate(ee,Ze){return x(ee,Ze)}datesList(ee,Ze){return Hn(0,Ze).map(Yn=>x(ee,Yn))}data(ee){const{cellUID:Ze,focusedDate:Yn,isActiveView:Bo,max:$r,min:ea,selectedDates:Fa,selectionRange:el=yn,viewDate:bl}=ee;if(!bl)return lt;const Ql=this.abbrMonthNames(),Pl=K(bl),Zl=I(bl),kc=Pl.getFullYear(),Eu=Hn(0,4),Td=ui();return Hn(0,3).map(Wd=>{const tc=(0,A.z)(Pl,4*Wd);return Eu.map(tf=>{const zl=this.normalize((0,A.z)(tc,tf),ea,$r),Uu=kc<zl.getFullYear();if(!this.isInRange(zl,ea,$r)||Uu)return null;const Xc=this.isEqual(zl,el.start),Tc=this.isEqual(zl,el.end),vp=!Xc&&!Tc&&Ve(zl,el);return{formattedValue:Ql[zl.getMonth()],id:`${Ze}${zl.getTime()}`,isFocused:this.isEqual(zl,Yn),isSelected:Bo&&Fa.some(nf=>this.isEqual(zl,nf)),isWeekend:!1,isRangeStart:Xc,isRangeMid:vp,isRangeEnd:Tc,isRangeSplitEnd:vp&&this.isEqual(zl,Zl),isRangeSplitStart:vp&&this.isEqual(zl,Pl),isToday:this.isEqual(zl,Td),title:this.cellTitle(zl),value:zl}})})}isEqual(ee,Ze){return!(!ee||!Ze)&&ee.getFullYear()===Ze.getFullYear()&&ee.getMonth()===Ze.getMonth()}isInArray(ee,Ze){if(!Ze.length)return!1;const Yn=ee.getFullYear();return Ze[0].getFullYear()<=Yn&&Yn<=Ze[Ze.length-1].getFullYear()}isInRange(ee,Ze,Yn){const Bo=(0,_.B)(ee.getFullYear(),ee.getMonth(),1),$r=!Ze||(0,_.B)(Ze.getFullYear(),Ze.getMonth(),1)<=Bo,ea=!Yn||Bo<=(0,_.B)(Yn.getFullYear(),Yn.getMonth(),1);return $r&&ea}beginningOfPeriod(ee){return ee&&(0,_.B)(ee.getFullYear(),0,1)}lastDayOfPeriod(ee){const Ze=I(ee);return(0,C.q)(Ze)}isRangeStart(ee){return ee.getFullYear()%10==0}move(ee,Ze){const Yn=ho[Ze];return Yn?Yn(ee):ee}cellTitle(ee){return`${ee.getFullYear()} ${this.value(ee)}`}navigationTitle(ee){return this.title(ee)}title(ee){return ee?ee.getFullYear().toString():""}rowLength(){return 4}skip(ee,Ze){return X(Ze,ee)}total(ee,Ze){return X(ee,Ze)+1}value(ee){return ee?this.abbrMonthNames()[ee.getMonth()]:""}viewDate(ee,Ze,Yn=1){const Bo=this.total(ee,Ze);return Bo<Yn?x(ee,-1*(Yn-Bo)):ee}abbrMonthNames(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})}normalize(ee,Ze,Yn){return ee<Ze&&this.isEqual(ee,Ze)?(0,a.k)(Ze):ee>Yn&&this.isEqual(ee,Yn)?(0,a.k)(Yn):ee}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.LFG(z.aJ))},Yt.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();var $i=function(Yt){return Yt[Yt.month=0]="month",Yt[Yt.year=1]="year",Yt[Yt.decade=2]="decade",Yt[Yt.century=3]="century",Yt}($i||{});const ro={[$i.month]:pe,[$i.year]:po,[$i.decade]:qn,[$i.century]:Qn};let io=0,Wi=(()=>{class Yt{constructor(ee){this.injector=ee,this.viewChanged=new e.vpe,this.bottom=$i.month,this.top=$i.century,this.calendarId=io++}configure(ee,Ze){this.bottom=ee,this.top=Ze}service(ee){const Ze=ro[ee];return Ze?this.injector.get(Ze):null}moveDown(ee){this.move(ee,-1)}moveUp(ee){this.move(ee,1)}moveToBottom(ee){ee!==this.bottom&&this.viewChanged.emit({view:this.bottom})}canMoveDown(ee){return this.bottom<ee}canMoveUp(ee){return ee<this.top}clamp(ee){return ee<this.bottom?this.bottom:ee>this.top?this.top:ee}move(ee,Ze){const Yn=this.clamp(((Yt,Ri)=>{const ee=$i[$i[Yt+Ri]];return void 0!==ee?ee:Yt})(ee,Ze));Yn!==ee&&this.viewChanged.emit({view:Yn})}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.LFG(e.zs3))},Yt.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})(),fo=(()=>{class Yt{constructor(ee){this.intl=ee}getWeekNames(ee=!1,Ze){const Yn=Ht(this.intl.dateFormatNames({nameType:Ze,type:"days"}),this.intl.firstDay());return ee?[""].concat(Yn):Yn}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.LFG(z.aJ))},Yt.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const cr=()=>!1;let jr=(()=>{class Yt{constructor(){this.changes=new q.x,this.isDateDisabled=cr}initialize(ee){if("function"==typeof ee)this.isDateDisabled=Ze=>ee((0,u._)(Ze));else if((Yt=>Array.isArray(Yt)&&Yt.length>0&&Yt.every(Ri=>"number"==typeof Ri))(ee)){const Ze=new Set(ee);this.isDateDisabled=Yn=>Ze.has(Yn.getDay())}else if((Yt=>Array.isArray(Yt)&&Yt.length>0&&Yt.every(Ri=>Ri instanceof Date))(ee)){const Ze=new Set(ee.map(Yn=>(0,u._)(Yn).getTime()));this.isDateDisabled=Yn=>Ze.has((0,u._)(Yn).getTime())}else this.isDateDisabled=cr,this.notifyInvalidInput(ee);this.notifyServiceChange()}notifyInvalidInput(ee){if(Pr(ee)&&(0,e.X6Q)())throw new Error("The 'disabledDates' value should be a function, a Day array or a Date array. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/ for more information.")}notifyServiceChange(){this.changes.next()}}return Yt.\u0275fac=function(ee){return new(ee||Yt)},Yt.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const fs=(Yt,Ri,ee)=>{for(;Yt&&Yt!==ee&&!Ri(Yt);)Yt=Yt.parentNode;if(Yt!==ee)return Yt},Ms=(Yt,Ri)=>{for(;Yt&&!Ri(Yt);)Yt=Yt.parentNode;return Yt};class Ca{constructor(Ri,ee,Ze,Yn){this.$implicit=Ri,this.kForOf=ee,this.index=Ze,this.count=Yn}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 ks=(()=>{class Yt{constructor(ee,Ze,Yn){this._viewContainer=ee,this._template=Ze,this._differs=Yn,this._differ=null}set kForTemplate(ee){ee&&(this._template=ee)}ngOnChanges(ee){if("kForOf"in ee){const Ze=ee.kForOf.currentValue;if(this._differ||!Ze)return;try{this._differ=this._differs.find(Ze).create(this.kForTrackBy)}catch{throw new Error(`Cannot find a differ supporting object '${Ze}' of type '${function ts(Yt){return Yt.name||typeof Yt}(Ze)}'.`)}}}ngDoCheck(){if(this._differ){const ee=this._differ.diff(this.kForOf);ee&&this._applyChanges(ee)}}_applyChanges(ee){if(!(0,j.X_)())return;const Ze=this._viewContainer.length,Yn=this.kForOf.length,Bo={};ee.forEachOperation(($r,ea,Fa)=>{null!==Fa&&(Bo[Fa]=$r.item)});for(let $r=Ze;$r<Yn;$r++)this._viewContainer.createEmbeddedView(this._template,new Ca(null,this.kForOf,-1,-1),$r);for(let $r=this._viewContainer.length;$r>Yn;$r--)this._viewContainer.remove($r-1);for(let $r=0;$r<this._viewContainer.length;$r++){const ea=this._viewContainer.get($r);ea.context.index=$r,ea.context.count=length,ea.context.$implicit=Bo[$r]||null}}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},Yt.\u0275dir=e.lG2({type:Yt,selectors:[["","kFor","","kForOf",""]],inputs:{kForOf:"kForOf",kForTrackBy:"kForTrackBy",kForTemplate:"kForTemplate"},features:[e.TTD]}),Yt})(),na=(()=>{class Yt{constructor(ee,Ze,Yn,Bo,$r,ea,Fa){this.bus=ee,this.intl=Ze,this.cdr=Yn,this.element=Bo,this.zone=$r,this.renderer=ea,this.disabledDatesService=Fa,this.direction="vertical",this.isActive=!0,this.selectedDates=[],this.cellClick=new e.vpe,this.weekNumberCellClick=new e.vpe,this.cellEnter=new e.vpe,this.cellLeave=new e.vpe,this.focusedCellId=new e.vpe,this.colSpan=0,this.subscriptions=new se.w0,this.domEvents=[],this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.disabledDatesChange.bind(this)))}get weekNumber(){return this.showWeekNumbers&&this.activeView===$i.month}set weekNumber(ee){this.showWeekNumbers=ee}get ariaHidden(){return this.headerTitle!==this.title||null}ngOnInit(){this.element&&this.zone.runOutsideAngular(()=>{this.bindEvents()})}ngOnChanges(ee){this.service=this.bus.service(this.activeView),this.service&&(this.colSpan=this.service.rowLength({prependCell:this.weekNumber}),this.title=this.service.title(this.viewDate),this.updateData(),ee.activeView&&(this.currentCellIndex=null))}ngOnDestroy(){this.subscriptions.unsubscribe(),this.domEvents.forEach(ee=>ee())}isHorizontal(){return"horizontal"===this.direction}isMonthView(){return this.activeView===$i.month}shouldRenderCellContent(ee){return Pr(ee)&&!(!this.isHorizontal()&&ee.isOtherMonth)}firstDate(ee){const Ze=this.firstWeekDateContext(ee);return Ze?Ze.value:null}getWeekNumber(ee){return this.weekNumber?te(ee,this.intl.firstDay()):null}getWeekNumberContext(ee){const Ze=this.firstWeekDateContext(ee);if(!this.weekNumber||!Ze)return null;const Yn=te(Ze.value,this.intl.firstDay()).toString();return{formattedValue:Yn,id:null,isFocused:!1,isSelected:!1,isWeekend:!1,title:Yn,value:(0,a.k)(Ze.value)}}getStyles(ee){!ee.isOtherMonth&&this.isActive&&ee.isFocused&&this.focusedCellId.emit(ee.id);const{isRangeEnd:Ze,isRangeStart:Yn}=ee;return(Yt=>Object.keys(Yt).reduce((ee,Ze)=>Yt[Ze]?ee.concat(Ze):ee,[]).join(" "))({"k-range-end":!ee.isOtherMonth&&Ze,"k-range-mid":!ee.isOtherMonth&&ee.isRangeMid,"k-range-split-end":!ee.isOtherMonth&&ee.isRangeSplitEnd,"k-range-split-start":!ee.isOtherMonth&&ee.isRangeSplitStart,"k-range-start":!ee.isOtherMonth&&Yn,"k-active":"start"===this.activeRangeEnd&&Yn||"end"===this.activeRangeEnd&&Ze,"k-focus":!ee.isOtherMonth&&this.isActive&&ee.isFocused,"k-selected":!ee.isOtherMonth&&(ee.isSelected||Yn||Ze),"k-today":!ee.isOtherMonth&&ee.isToday,"k-weekend":ee.isWeekend,"k-disabled":ee.isDisabled,"k-other-month":ee.isOtherMonth})}tableCellIndex(ee,Ze){return`${ee}:${Ze}`}handleWeekNumberClick(ee){const Ze=ee.map(Yn=>Yn.value).filter(Yn=>!this.disabledDatesService.isDateDisabled(Yn));this.weekNumberCellClick.emit(Ze)}getMonthLabel(ee){return 1===this.activeView?this.intl.formatDate(ee,"MMMM"):null}firstWeekDateContext(ee){if(!this.weekNumber)return null;let Ze=0,Yn=this.shouldRenderCellContent(ee[Ze])?ee[Ze]:null;for(;!Yn&&Ze<ee.length;){const Bo=ee[++Ze];Yn=this.shouldRenderCellContent(Bo)?Bo:null}return Yn}updateData(){const ee=Je(this.selectedDates)||ui(),Ze=vn(this.viewDate,ee);this.data=this.service.data({cellUID:this.cellUID,focusedDate:this.focusedDate,isActiveView:!this.bus.canMoveDown(this.activeView),max:this.max,min:this.min,selectedDates:this.selectedDates,selectionRange:this.selectionRange,viewDate:Ze,isDateDisabled:this.disabledDatesService.isDateDisabled,direction:this.direction})}intlChange(){this.updateData(),this.cdr.markForCheck()}disabledDatesChange(){this.updateData(),this.cdr.markForCheck()}bindEvents(){const ee=this.element.nativeElement;this.domEvents.push(this.renderer.listen(ee,"mouseover",this.cellMouseoverHandler.bind(this)),this.renderer.listen(ee,"mouseleave",this.mouseLeaveHandler.bind(this)),this.renderer.listen(ee,"click",this.clickHandler.bind(this)))}clickHandler(ee){const Ze=this.closestCell(ee);if(!Ze)return;const Yn=Ze.getAttribute("data-cell-index"),Bo=this.cellByIndex(Yn);if(!Bo.isDisabled){const{ctrlKey:$r,metaKey:ea,shiftKey:Fa}=ee;this.cellClick.emit({date:Bo.value,modifiers:{ctrlKey:$r,metaKey:ea,shiftKey:Fa}})}}mouseLeaveHandler(){this.currentCellIndex&&this.emitCellLeave()}cellMouseoverHandler(ee){const Ze=this.closestCell(ee);if(Ze){const Yn=Ze.getAttribute("data-cell-index");this.currentCellIndex&&this.currentCellIndex!==Yn&&this.emitCellLeave();const Bo=this.cellByIndex(Yn).value;this.cellEnter.emit(Bo),this.currentCellIndex=Yn}else this.currentCellIndex&&this.emitCellLeave()}closestCell(ee){return fs(ee.target,Ze=>Ze.hasAttribute("data-cell-index"),this.element.nativeElement)}emitCellLeave(){const ee=this.cellByIndex(this.currentCellIndex);ee&&this.cellLeave.emit(ee.value),this.currentCellIndex=null}cellByIndex(ee){const[Ze,Yn]=ee.split(":");return this.data[Ze][Yn]}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(Wi),e.Y36(z.aJ),e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(jr))},Yt.\u0275cmp=e.Xpm({type:Yt,selectors:[["","kendoCalendarView",""]],inputs:{direction:"direction",isActive:"isActive",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",viewDate:"viewDate",activeRangeEnd:"activeRangeEnd",selectionRange:"selectionRange",min:"min",max:"max",selectedDates:"selectedDates",weekNumber:"weekNumber",viewIndex:"viewIndex",templateRef:"templateRef",weekNumberTemplateRef:"weekNumberTemplateRef",headerTitle:"headerTitle"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",cellEnter:"cellEnter",cellLeave:"cellLeave",focusedCellId:"focusedCellId"},features:[e.TTD],attrs:Eo,decls:4,vars:2,consts:[["emptyCell",""],["class","k-calendar-tr","role","row",4,"ngIf"],["class","k-calendar-tr","role","row",4,"kFor","kForOf"],["role","gridcell",1,"k-empty","k-calendar-td"],["role","row",1,"k-calendar-tr"],["scope","col",1,"k-calendar-caption",3,"colSpan"],[3,"ngIf"],[4,"kFor","kForOf"],["class","k-alt k-calendar-td","role","gridcell",3,"kendoEventsOutsideAngular",4,"ngIf","ngIfElse"],["role","gridcell",1,"k-alt","k-calendar-td",3,"kendoEventsOutsideAngular"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],["class","k-calendar-td","role","gridcell",3,"ngClass","title",4,"ngIf","ngIfElse"],["role","gridcell",1,"k-calendar-td",3,"ngClass","title"],[1,"k-link"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(ee,Ze){1&ee&&(e.YNc(0,Ko,2,0,"ng-template",null,0,e.W1O),e.YNc(2,xo,3,3,"tr",1),e.YNc(3,wt,3,2,"tr",2)),2&ee&&(e.xp6(2),e.Q6J("ngIf",!Ze.isHorizontal()),e.xp6(1),e.Q6J("kForOf",Ze.data))},dependencies:[Ut.O5,ks,j.nV,Ut.tP,Ut.mk],encapsulation:2}),Yt})(),_a=(()=>{class Yt{constructor(ee,Ze,Yn,Bo,$r,ea){this.bus=ee,this.intl=Ze,this.weekService=Yn,this.cdr=Bo,this.element=$r,this.renderer=ea,this.activeView=$i.month,this.isActive=!0,this.min=new Date(Yi),this.max=new Date(co),this.selectedDates=[],this.views=2,this.showViewHeader=!1,this.animateNavigation=!1,this.orientation="horizontal",this.tabIndex=0,this.disabled=!1,this.cellClick=new e.vpe,this.weekNumberCellClick=new e.vpe,this.cellEnter=new e.vpe,this.cellLeave=new e.vpe,this.activeDateChange=new e.vpe,this.focusCalendar=new e.vpe,this.blurCalendar=new e.vpe,this.focusedCellChange=new e.vpe,this.getComponentClass=!0,this.weekNames=[],this.wideWeekNames=[],this.dates=[],this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}handleMultiViewCalendarFocus(){this.focusCalendar.emit()}handleMultiViewCalendarBlur(ee){this.blurCalendar.emit(ee)}get weekNumber(){return this.showWeekNumbers&&this.isMonthView()}set weekNumber(ee){this.showWeekNumbers=ee}get horizontalHostClass(){return"horizontal"===this.orientation}get verticalHostClass(){return"vertical"===this.orientation}get getComponentMonthClass(){return this.activeView===$i.month}get getComponentYearClass(){return this.activeView===$i.year}get getComponentDecadeClass(){return this.activeView===$i.decade}get getComponentCenturyClass(){return this.activeView===$i.century}get role(){return this.views>=2?"grid":null}get tabindex(){return this.views>=2?"0":null}get getActiveDescendant(){return 1===this.views?this.activeDescendant:null}get getTabIndex(){return this.disabled||this.views>=2?null:this.tabIndex}ngOnChanges(ee){if(this.initService(),(0===this.weekNames.length||ee.weekNumber)&&(this.weekNames=this.getWeekNames("short"),this.wideWeekNames=this.getWeekNames("wide")),!this.service)return;this.views=this.views||2;const Ze=this.focusedDate,Yn=this.clampDate(this.service.viewDate(Ze,this.max,this.views));this.skip=this.service.skip(Yn,this.min),this.total=this.service.total(this.min,this.max);const Bo=an(ee,"activeView"),$r=this.views>0&&an(ee,"views");(Bo||!this.isInDates(Ze)||$r||!this.activeDate)&&(this.dates=this.service.datesList(Yn,this.getTake(this.skip)),this.activeDate=(0,a.k)(this.dates[0]),this.activeDateChange.emit(this.activeDate)),this.setAriaActivedescendant(),this.views>=2&&this.renderer.setAttribute(this.element.nativeElement,"tabindex",this.tabIndex.toString())}ngAfterViewInit(){1===this.views&&this.setTableMinWidth()}ngOnDestroy(){this.intlSubscription.unsubscribe()}initService(){this.service=this.bus.service(this.activeView)}isMonthView(){return this.activeView===$i.month}getCaptionTitle(ee){return this.service.title(ee)}getCaptionClass(){return this.isMonthView()?"k-month-header":"k-meta-header"}handleClassicCalendarFocus(){this.focusCalendar.emit()}handleClassicCalendarBlur(ee){this.blurCalendar.emit(ee)}animateView(ee){const Ze=this.element.nativeElement,Yn=Ze.querySelector("table"),Bo=parseFloat(getComputedStyle(Ze).width),$r=parseFloat(getComputedStyle(Yn).width);this.renderer.setStyle(Ze,"width",`${Bo}px`),this.renderer.setStyle(Ze,"overflow","visible"),ee===ht.NextView?this.nextAnimationDate=(0,a.k)(this.dates[0]):this.prevAnimationDate=(0,a.k)(this.dates[this.dates.length-1]),this.cdr.detectChanges(),Ze.querySelectorAll("table").forEach(Ql=>{this.renderer.setStyle(Ql,"width",`${$r}px`),1===this.views&&this.renderer.setStyle(Ql,"min-width",`${Bo}px`)});const ea=Yn.getBoundingClientRect(),Fa=parseFloat(getComputedStyle(Ze).columnGap),el=ee===ht.NextView?"translateX(0)":`translateX(-${ea.width+Fa}px)`,bl=ee===ht.NextView?`translateX(-${ea.width+Fa}px)`:"translateX(0)";this.animation?this.animation.cancel():(this.animation=Ze.animate([{transform:el},{transform:bl}],{duration:500,easing:"ease-out"}),this.animation.oncancel=this.animation.onfinish=()=>{this.renderer.removeStyle(Ze,"width"),this.renderer.removeStyle(Ze,"overflow"),Ze.querySelectorAll("table").forEach(Ql=>{this.renderer.removeStyle(Ql,"width")}),this.animation=null,this.nextAnimationDate=null,this.prevAnimationDate=null,this.cdr.detectChanges()})}navigate(ee){this.animateNavigation&&(0,j.X_)()&&Pr(this.element.nativeElement.animate)&&this.animateView(ee);const Ze=this.move(ee),Yn=this.service.datesList(Ze,this.getTake(this.skip));return this.isListInRange(Yn)&&(this.dates=Yn),this.activeDate=(0,a.k)(this.dates[0]),this.focusedDate=(0,a.k)(Ze),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),(0,a.k)(Ze)}canNavigate(ee){return!!this.service&&this.isListInRange(this.service.datesList(this.move(ee),this.getTake(this.skip)))}getWeekNames(ee){return this.weekService.getWeekNames(this.weekNumber,ee)}setTableMinWidth(){const ee=this.element.nativeElement,Ze=ee.querySelector("table");if(Ze){const Yn=parseFloat(getComputedStyle(ee).width);this.renderer.setStyle(Ze,"min-width",`${Yn}px`)}}intlChange(){this.weekNames=this.getWeekNames("short"),this.wideWeekNames=this.getWeekNames("wide"),this.cdr.markForCheck()}clampDate(ee){return Vn(ee,this.min,this.max)}move(ee){return this.service.move(this.dates[0]||this.focusedDate,ee)}isListInRange(ee){const Ze=this.service.beginningOfPeriod(this.min),Yn=this.service.beginningOfPeriod(this.service.addToDate(this.max,1));return Ze<=ee[0]&&ee[ee.length-1]<Yn}isInDates(ee){return this.service.isInArray(ee,this.dates)}getTake(ee){return Math.min(this.total-ee,this.views)}setAriaActivedescendant(){this.views>=2&&this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",this.activeDescendant)}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(Wi),e.Y36(z.aJ),e.Y36(fo),e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(e.Qsj))},Yt.\u0275cmp=e.Xpm({type:Yt,selectors:[["kendo-calendar-horizontal"]],hostVars:20,hostBindings:function(ee,Ze){1&ee&&e.NdJ("focus",function(){return Ze.handleMultiViewCalendarFocus()})("blur",function(Bo){return Ze.handleMultiViewCalendarBlur(Bo)}),2&ee&&(e.uIk("role",Ze.role)("tabindex",Ze.tabindex),e.ekj("k-calendar-view",Ze.getComponentClass)("k-align-items-start",Ze.getComponentClass)("k-justify-content-center",Ze.getComponentClass)("k-hstack",Ze.horizontalHostClass)("k-vstack",Ze.verticalHostClass)("k-calendar-monthview",Ze.getComponentMonthClass)("k-calendar-yearview",Ze.getComponentYearClass)("k-calendar-decadeview",Ze.getComponentDecadeClass)("k-calendar-centuryview",Ze.getComponentCenturyClass))},inputs:{cellTemplateRef:"cellTemplateRef",weekNumberTemplateRef:"weekNumberTemplateRef",activeRangeEnd:"activeRangeEnd",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",isActive:"isActive",min:"min",max:"max",selectionRange:"selectionRange",selectedDates:"selectedDates",views:"views",showViewHeader:"showViewHeader",animateNavigation:"animateNavigation",orientation:"orientation",activeDescendant:"activeDescendant",tabIndex:"tabIndex",disabled:"disabled",id:"id",weekNumber:"weekNumber"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",cellEnter:"cellEnter",cellLeave:"cellLeave",activeDateChange:"activeDateChange",focusCalendar:"focusCalendar",blurCalendar:"blurCalendar",focusedCellChange:"focusedCellChange"},features:[e.TTD],decls:5,vars:3,consts:[["tableTemplate",""],[4,"ngIf"],[4,"kFor","kForOf"],[1,"k-content","k-calendar-table",3,"ngClass","focus","blur"],[3,"ngClass",4,"ngIf"],["class","k-calendar-thead","role","rowgroup",4,"ngIf"],["kendoCalendarView","","role","rowgroup","direction","horizontal",1,"k-calendar-tbody",3,"activeView","isActive","min","max","cellUID","focusedDate","selectedDates","selectionRange","activeRangeEnd","weekNumber","templateRef","weekNumberTemplateRef","viewDate","cellClick","weekNumberCellClick","cellEnter","cellLeave","focusedCellId"],[3,"ngClass"],["role","rowgroup",1,"k-calendar-thead"],["role","row",1,"k-calendar-tr"],["class","k-calendar-th","scope","col","role","columnheader",4,"ngFor","ngForOf"],["scope","col","role","columnheader",1,"k-calendar-th"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(ee,Ze){1&ee&&(e.YNc(0,tt,4,20,"ng-template",null,0,e.W1O),e.YNc(2,ln,1,4,null,1),e.YNc(3,go,1,4,null,2),e.YNc(4,ot,1,4,null,1)),2&ee&&(e.xp6(2),e.Q6J("ngIf",Ze.nextAnimationDate),e.xp6(1),e.Q6J("kForOf",Ze.dates),e.xp6(1),e.Q6J("ngIf",Ze.prevAnimationDate))},dependencies:[na,Ut.mk,Ut.O5,Ut.sg,Ut.tP,ks],encapsulation:2,changeDetection:0}),Yt})(),Ws=(()=>{class Yt{constructor(ee,Ze,Yn,Bo,$r){this.bus=ee,this.cdr=Ze,this.localization=Yn,this.intl=Bo,this.disabledDatesService=$r,this.chevronRightIcon=An.oXh,this.chevronLeftIcon=An.fL_,this.navigate=!0,this.todayAvailable=!0,this.min=new Date(Yi),this.max=new Date(co),this.rangeLength=1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.showNavigationButtons=!1,this.orientation="horizontal",this.todayButtonClick=new e.vpe,this.prevButtonClick=new e.vpe,this.nextButtonClick=new e.vpe,this.getComponentClass=!0,this.subscriptions=new se.w0}get horizontalHostClass(){return"horizontal"===this.orientation}get verticalHostClass(){return"vertical"===this.orientation}ngOnInit(){this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.subscriptions.add(this.localization.changes.subscribe(this.l10nChange.bind(this))),this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.setTodayAvailability.bind(this)))}ngOnChanges(ee){this.bus.service(this.activeView)&&(this.activeViewValue=$i[this.activeView],this.todayMessage=this.localization.get("today"),this.parentViewButtonTitle=this.localization.get("parentViewButtonTitle"),this.setTodayAvailability(),this.navigate=this.bus.canMoveUp(this.activeView),this.title=this.getTitle())}ngOnDestroy(){this.subscriptions.unsubscribe()}handleTodayClick(){this.todayAvailable&&(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit(Vn(ui(),this.min,this.max)))}handleNavigation(){this.navigate&&this.bus.moveUp(this.activeView)}isDisabled(){return this.navigate?null:""}intlChange(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())}l10nChange(){this.prevButtonTitle=this.localization.get("prevButtonTitle"),this.nextButtonTitle=this.localization.get("nextButtonTitle"),this.parentViewButtonTitle=this.localization.get("parentViewButtonTitle"),this.todayMessage=this.localization.get("today"),this.cdr.markForCheck()}getTitle(){if(!this.currentDate)return"";const ee=this.bus.service(this.activeView),Ze=this.rangeLength-1,Yn=ee.title(this.currentDate),Bo=ee.addToDate(this.currentDate,Ze);return Ze<1||!ee.isInRange(Bo,this.min,this.max)?Yn:`${Yn} - ${ee.title(Bo)}`}setTodayAvailability(){const ee=ui(),Ze=Ui(ee,(0,u._)(this.min),(0,u._)(this.max)),Yn=this.disabledDatesService.isDateDisabled(ee);this.todayAvailable=Ze&&!Yn,this.cdr.markForCheck()}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(Wi),e.Y36(e.sBO),e.Y36(o.oQ),e.Y36(z.aJ),e.Y36(jr))},Yt.\u0275cmp=e.Xpm({type:Yt,selectors:[["kendo-calendar-header"]],hostVars:6,hostBindings:function(ee,Ze){2&ee&&e.ekj("k-calendar-header",Ze.getComponentClass)("k-hstack",Ze.horizontalHostClass)("k-vstack",Ze.verticalHostClass)},inputs:{activeView:"activeView",currentDate:"currentDate",min:"min",max:"max",rangeLength:"rangeLength",templateRef:"templateRef",isPrevDisabled:"isPrevDisabled",isNextDisabled:"isNextDisabled",showNavigationButtons:"showNavigationButtons",orientation:"orientation",id:"id"},outputs:{todayButtonClick:"todayButtonClick",prevButtonClick:"prevButtonClick",nextButtonClick:"nextButtonClick"},features:[e.TTD],decls:9,vars:26,consts:[["role","button","tabindex","-1",1,"k-button","k-nav-fast","k-button-md","k-rounded-md","k-button-flat","k-button-flat-base","k-calendar-title",3,"id","kendoEventsOutsideAngular","title","scope"],[3,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-spacer"],[1,"k-calendar-nav","k-hstack"],["kendoButton","","fillMode","flat","icon","chevron-left","tabindex","-1","type","button","class","k-calendar-nav-prev",3,"svgIcon","disabled","title","click",4,"ngIf"],["tabindex","-1","type","button",1,"k-calendar-nav-today","k-button","k-button-md","k-button-flat","k-button-flat-primary","k-rounded-md",3,"kendoEventsOutsideAngular","scope"],["kendoButton","","fillMode","flat","icon","chevron-right","class","k-calendar-nav-next","tabindex","-1","type","button",3,"svgIcon","disabled","title","click",4,"ngIf"],["kendoButton","","fillMode","flat","icon","chevron-left","tabindex","-1","type","button",1,"k-calendar-nav-prev",3,"svgIcon","disabled","title","click"],["kendoButton","","fillMode","flat","icon","chevron-right","tabindex","-1","type","button",1,"k-calendar-nav-next",3,"svgIcon","disabled","title","click"]],template:function(ee,Ze){1&ee&&(e.TgZ(0,"span",0),e.YNc(1,pn,1,1,"ng-template",1),e.YNc(2,_i,0,0,"ng-template",2),e.qZA(),e._UZ(3,"span",3),e.TgZ(4,"span",4),e.YNc(5,wi,1,4,"button",5),e.TgZ(6,"button",6),e._uU(7),e.qZA(),e.YNc(8,hi,1,4,"button",7),e.qZA()),2&ee&&(e.ekj("k-disabled",!Ze.navigate),e.Q6J("id",Ze.id)("kendoEventsOutsideAngular",e.VKq(18,Ji,Ze.handleNavigation))("title",Ze.parentViewButtonTitle)("scope",Ze),e.uIk("aria-disabled",Ze.isDisabled()),e.xp6(1),e.Q6J("ngIf",!Ze.templateRef),e.xp6(1),e.Q6J("ngIf",Ze.templateRef)("ngTemplateOutlet",Ze.templateRef)("ngTemplateOutletContext",e.kEZ(20,zn,Ze.title,Ze.activeViewValue,Ze.currentDate)),e.xp6(3),e.Q6J("ngIf",Ze.showNavigationButtons),e.xp6(1),e.ekj("k-disabled",!Ze.todayAvailable),e.Q6J("kendoEventsOutsideAngular",e.VKq(24,Ji,Ze.handleTodayClick))("scope",Ze),e.xp6(1),e.hij(" ",Ze.todayMessage," "),e.xp6(1),e.Q6J("ngIf",Ze.showNavigationButtons))},dependencies:[$n.r0,j.nV,Ut.O5,Ut.tP],encapsulation:2}),Yt})(),cs=(()=>{class Yt{constructor(ee){this.bus=ee}performSelection(ee){let{date:Ze,modifiers:Yn,selectionMode:Bo,activeViewEnum:$r,rangePivot:ea}=ee,Fa=ee.selectedDates.slice();if("multiple"===Bo)if(Yn.ctrlKey||Yn.metaKey)this.isDateSelected(Fa,Ze)?Fa=Fa.filter(el=>!(0,d.X)(el,Ze)):Fa.push(Ze),ea=Ze;else if(Yn.shiftKey){const[el,bl]=Pt([ea||Ze,Ze]);if(Fa=this.bus.service($r).dateRange(el,bl),ea=Ze>Fa[0]?Fa[0]:Je(Fa),Yn.anyArrow){const[Ql,Pl]=Pt([this.lastClicked||Ze,Ze]);Fa=this.bus.service(0).dateRange(Ql,Pl)}}else Fa=[Ze],ea=Ze;else Fa=[Ze],ea=Ze;return{selectedDates:Fa,rangePivot:ea}}isDateSelected(ee,Ze){return ee.some(Yn=>(0,d.X)(Yn,Ze))}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.LFG(Wi))},Yt.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})(),Ps=(()=>{class Yt{constructor(ee){this.templateRef=ee}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(e.Rgc))},Yt.\u0275dir=e.lG2({type:Yt,selectors:[["","kendoCalendarCellTemplate",""]]}),Yt})(),Qi=(()=>{class Yt{constructor(ee){this.templateRef=ee}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(e.Rgc))},Yt.\u0275dir=e.lG2({type:Yt,selectors:[["","kendoCalendarMonthCellTemplate",""]]}),Yt})(),vo=(()=>{class Yt{constructor(ee){this.templateRef=ee}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(e.Rgc))},Yt.\u0275dir=e.lG2({type:Yt,selectors:[["","kendoCalendarYearCellTemplate",""]]}),Yt})(),pi=(()=>{class Yt{constructor(ee){this.templateRef=ee}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(e.Rgc))},Yt.\u0275dir=e.lG2({type:Yt,selectors:[["","kendoCalendarDecadeCellTemplate",""]]}),Yt})(),to=(()=>{class Yt{constructor(ee){this.templateRef=ee}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(e.Rgc))},Yt.\u0275dir=e.lG2({type:Yt,selectors:[["","kendoCalendarCenturyCellTemplate",""]]}),Yt})(),Ro=(()=>{class Yt{constructor(ee){this.templateRef=ee}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(e.Rgc))},Yt.\u0275dir=e.lG2({type:Yt,selectors:[["","kendoCalendarWeekNumberCellTemplate",""]]}),Yt})(),Sr=(()=>{class Yt{constructor(ee){this.templateRef=ee}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(e.Rgc))},Yt.\u0275dir=e.lG2({type:Yt,selectors:[["","kendoCalendarHeaderTitleTemplate",""]]}),Yt})();const rs=Yt=>Ri=>Yt&&Ri.value&&Ri.value<Yt?{minError:{minValue:Yt,value:Ri.value}}:null,Os=Yt=>Ri=>Yt&&Ri.value&&Ri.value>Yt?{maxError:{maxValue:Yt,value:Ri.value}}:null,Ys=()=>null,Da={33:ht.PrevView,34:ht.NextView,35:ht.LastInView,36:ht.FirstInView,37:ht.Left,38:ht.Up,39:ht.Right,40:ht.Down,"meta+38":ht.UpperView,"meta+40":ht.LowerView};let Ka=(()=>{class Yt{constructor(ee){this.bus=ee}action(ee){return Da[`${ee.ctrlKey||ee.metaKey?"meta+":""}${ee.keyCode}`]}move(ee,Ze,Yn){const Bo=this.bus.service(Yn);return Bo?Ze===ht.UpperView&&this.bus.canMoveUp(Yn)?(this.bus.moveUp(Yn),ee):Ze===ht.LowerView&&this.bus.canMoveDown(Yn)?(this.bus.moveDown(Yn),ee):Bo.move(ee,Ze):ee}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.LFG(Wi))},Yt.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})(),nl=(()=>{class Yt extends o.Z1{}return Yt.\u0275fac=function(){let Ri;return function(Ze){return(Ri||(Ri=e.n5z(Yt)))(Ze||Yt)}}(),Yt.\u0275dir=e.lG2({type:Yt,selectors:[["kendo-multiview-calendar-messages-base"]],inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle",parentViewButtonTitle:"parentViewButtonTitle"},features:[e.qOj]}),Yt})(),il=(()=>{class Yt extends nl{constructor(ee){super(),this.service=ee}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(o.oQ))},Yt.\u0275dir=e.lG2({type:Yt,selectors:[["","kendoMultiViewCalendarLocalizedMessages",""]],features:[e._Bn([{provide:nl,useExisting:(0,e.Gpc)(()=>Yt)}]),e.qOj]}),Yt})();const Dr="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",_s={multi:!0,provide:n.JU,useExisting:(0,e.Gpc)(()=>Ia)},ia={multi:!0,provide:n.Cf,useExisting:(0,e.Gpc)(()=>Ia)};let Ia=(()=>{class Yt{constructor(ee,Ze,Yn,Bo,$r,ea,Fa,el){this.bus=ee,this.element=Ze,this.navigator=Yn,this.renderer=Bo,this.cdr=$r,this.zone=ea,this.disabledDatesService=Fa,this.selectionService=el,this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.activeView=$i[$i.month],this.bottomView=$i[$i.month],this.topView=$i[$i.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.orientation="horizontal",this.activeViewChange=new e.vpe,this.navigate=new e.vpe,this.cellEnter=new e.vpe,this.cellLeave=new e.vpe,this.valueChange=new e.vpe,this.blurEvent=new e.vpe,this.focusEvent=new e.vpe,this.focusCalendar=new e.vpe,this.onClosePopup=new e.vpe,this.onTabPress=new e.vpe,this.onShiftTabPress=new e.vpe,this.cellUID=(0,j.M8)(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=ht.PrevView,this.nextView=ht.NextView,this.selectedDates=[],this._min=new Date(Yi),this._max=new Date(co),this._focusedDate=ui(),this.resolvedPromise=Promise.resolve(),this.onControlChange=Ot,this.onControlTouched=Ot,this.onValidatorChange=Ot,this.minValidateFn=Ot,this.maxValidateFn=Ot,this.disabledDatesRangeValidateFn=Ot,this.subscriptions=new se.w0,this.setClasses(Ze.nativeElement),this.id=`kendo-multiviewcalendarid-${this.bus.calendarId}-`}set focusedDate(ee){this._focusedDate=ee||ui()}get focusedDate(){return this._focusedDate}get headerId(){return this.id+"header-"}get multiViewCalendarHeaderIdLabel(){return this.views>=2?this.id+"header-":null}get calendarHeaderIdLabel(){return 1===this.views?this.id+"header-":null}set min(ee){this._min=ee||new Date(Yi)}get min(){return this._min}set max(ee){this._max=ee||new Date(co)}get max(){return this._max}get value(){return this._value}set value(ee){this.verifyValue(ee),this._value=Array.isArray(ee)?ee.filter(Yn=>Pr(Yn)).map(Yn=>(0,a.k)(Yn)):(0,a.k)(ee);const Ze=[].concat(ee).filter(Yn=>Pr(Yn)).map(Yn=>(0,a.k)(Yn));if(!Rt(Ze,this.selectedDates)){const Yn=Je(Ze);this.rangePivot=(0,a.k)(Yn),this.focusedDate=(0,a.k)(Yn)||this.focusedDate,this.selectedDates=Ze}}set tabIndex(ee){this.tabindex=ee}get tabIndex(){return this.tabindex}set disabledDates(ee){this.disabledDatesService.initialize(ee)}set selectionRange(ee){this._selectionRange=ee,this.disabledDatesRangeValidation&&this.onValidatorChange()}get selectionRange(){return this._selectionRange}set cellTemplateRef(ee){this._cellTemplateRef=ee}get cellTemplateRef(){return this._cellTemplateRef||this.cellTemplate}set monthCellTemplateRef(ee){this._monthCellTemplateRef=ee}get monthCellTemplateRef(){return this._monthCellTemplateRef||this.monthCellTemplate}set yearCellTemplateRef(ee){this._yearCellTemplateRef=ee}get yearCellTemplateRef(){return this._yearCellTemplateRef||this.yearCellTemplate}set decadeCellTemplateRef(ee){this._decadeCellTemplateRef=ee}get decadeCellTemplateRef(){return this._decadeCellTemplateRef||this.decadeCellTemplate}set centuryCellTemplateRef(ee){this._centuryCellTemplateRef=ee}get centuryCellTemplateRef(){return this._centuryCellTemplateRef||this.centuryCellTemplate}set weekNumberTemplateRef(ee){this._weekNumberTemplateRef=ee}get weekNumberTemplateRef(){return this._weekNumberTemplateRef||this.weekNumberTemplate}set headerTitleTemplateRef(ee){this._headerTitleTemplateRef=ee}get headerTitleTemplateRef(){return this._headerTitleTemplateRef||this.headerTitleTemplate}get activeViewEnum(){const ee=$i[this.activeView];return ee<this.bottomViewEnum?this.bottomViewEnum:ee}get bottomViewEnum(){return $i[this.bottomView]}get topViewEnum(){return $i[this.topView]}get widgetId(){return this.views>=2?this.id:null}get ariaDisabled(){return this.disabled}get ariaActivedescendant(){return this.cellUID+this.focusedDate.getTime()}handleFocusout(ee){this.element.nativeElement.contains(ee.relatedTarget)||(1===this.views?this.blurEvent.emit(ee):this.blurEvent.emit(),this.onControlTouched()),this.isActive=!1,this.isHovered=!1}handleFocus(){this.isActive=!0,1===this.views?this.focusCalendar.emit():this.focusEvent.emit(),this.focusEvent.emit()}handleMouseEnter(){this.isHovered=!0}handleMouseLeave(){this.isHovered=!1}handleMousedown(ee){ee.preventDefault()}handleClick(){this.isActive||this.focus()}keydown(ee){const Ze=-1!==[j.R8.ArrowUp,j.R8.ArrowDown].indexOf(ee.keyCode),Yn=ee.ctrlKey||ee.metaKey,$r=ee.keyCode===j.R8.ArrowLeft&&Yn,ea=ee.keyCode===j.R8.KeyT,Fa=ee.keyCode===j.R8.Enter,el=ee.keyCode===j.R8.ArrowUp,bl=ee.altKey,Ql=ee.keyCode===j.R8.Escape,Pl=ee.keyCode===j.R8.Tab,Zl=ee.shiftKey;if(ee.keyCode===j.R8.ArrowRight&&Yn)return ee.preventDefault(),void this.navigateView(this.nextView);if($r)return ee.preventDefault(),void this.navigateView(this.prevView);if(Yn&&Ze)ee.preventDefault();else{if(ea)return this.focusedDate=ui(),void this.bus.moveToBottom(this.activeViewEnum);Fa&&(this.selectionService.lastClicked=this.focusedDate,this.performSelection(this.focusedDate,ee))}this.views>=2&&(Ql||bl&&el?this.onClosePopup.emit(ee):Pl&&Zl?this.onShiftTabPress.emit(ee):Pl&&!Zl&&this.onTabPress.emit(ee));const kc=Vn(this.navigator.move(this.focusedDate,this.navigator.action(ee),this.activeViewEnum),this.min,this.max);(0,d.X)(this.focusedDate,kc)||(this.focusedDate=kc,ee.preventDefault(),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate),ga(ee)&&(ee.anyArrow=!0,this.performSelection(this.focusedDate,ee)))}ngOnInit(){this.subscriptions.add(this.bus.viewChanged.subscribe(({view:ee})=>{this.activeView=$i[ee],this.activeViewChange.emit(this.activeView),this.cdr.detectChanges(),this.updateButtonState()}))}ngOnChanges(ee){this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),$e(ee,"focusedDate")&&(this.focusedDate=Vn(ee.focusedDate.currentValue,this.min,this.max)),(ee.min||ee.max||ee.rangeValidation||ee.disabledDates||ee.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?rs(this.min):Ot,this.maxValidateFn=this.rangeValidation?Os(this.max):Ot,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?(Yt=>Pr(Yt)?Ri=>{if(!(Pr(Ri)&&Pr(Ri.start)&&Pr(Ri.end))||Ri.start>Ri.end)return null;const Ze=((Yt,Ri,ee)=>{if(!(Yt&&Ri&&ee)||Yt>Ri)return[];const Ze=[];let Yn=Yt;for(;Yn<=Ri;)ee(Yn)&&Ze.push(Yn),Yn=(0,l.E)(Yn,1);return Ze})(Ri.start,Ri.end,Yt);return Ze.length?{disabledDatesInRange:Ze}:null}:Ys)(this.disabledDatesService.isDateDisabled):Ot,this.onValidatorChange()),(ee.min||ee.max||ee.focusedDate||ee.activeView)&&this.updateButtonState()}ngOnDestroy(){this.subscriptions.unsubscribe()}ngAfterViewInit(){this.updateButtonState()}focus(){this.element&&this.element.nativeElement.querySelector(".k-calendar-view").focus({preventScroll:!0})}blur(){this.element&&this.element.nativeElement.querySelector(this.views>=2?".k-calendar-view":".k-content.k-calendar-table").blur()}handleDateChange(ee){const Ze=this.bus.canMoveDown(this.activeViewEnum),Yn=ee.selectedDates.filter($r=>!this.disabledDatesService.isDateDisabled($r));this.focusedDate=ee.focusedDate||this.focusedDate;const Bo=!Ze&&Rt(Yn,this.selectedDates);if(!this.disabled&&!Bo){if(Ze)return void this.bus.moveDown(this.activeViewEnum);this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=Yn.map($r=>(0,a.k)($r)),this.value=this.parseSelectionToValue(Yn),this.onControlChange(this.parseSelectionToValue(Yn)),this.valueChange.emit(this.parseSelectionToValue(Yn)))}}handleTodayButtonClick(ee){const Ze=ee.focusedDate,Yn=this.bus.service(this.activeViewEnum).isInArray(Ze,this.viewList.dates),Bo=!this.bus.canMoveDown(this.activeViewEnum);!Yn&&Bo&&this.emitNavigate(Ze),this.handleDateChange(ee)}setActiveDate(ee){this.activeDate=(0,a.k)(ee),this.cdr.detectChanges()}writeValue(ee){this.verifyValue(ee),this.value=ee,this.cdr.markForCheck()}registerOnChange(ee){this.onControlChange=ee}registerOnTouched(ee){this.onControlTouched=ee}setDisabledState(ee){this.disabled=ee,this.cdr.markForCheck()}validate(ee){return this.minValidateFn(ee)||this.maxValidateFn(ee)||this.disabledDatesRangeValidateFn(this.selectionRange)}registerOnValidatorChange(ee){this.onValidatorChange=ee}activeCellTemplate(){switch(this.activeViewEnum){case $i.month:return this.monthCellTemplateRef||this.cellTemplateRef;case $i.year:return this.yearCellTemplateRef;case $i.decade:return this.decadeCellTemplateRef;case $i.century:return this.centuryCellTemplateRef;default:return null}}navigateView(ee){this.focusedDate=this.viewList.navigate(ee),this.updateButtonState(),this.emitNavigate(this.focusedDate)}emitNavigate(ee){this.navigate.emit({activeView:$i[this.activeViewEnum],focusedDate:ee})}emitCellEvent(ee,Ze){(0,j.g$)(ee)&&this.zone.run(()=>{ee.emit(Ze)})}handleCellClick({date:ee,modifiers:Ze}){this.selectionService.lastClicked=ee,this.performSelection(ee,Ze),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)}handleWeekNumberClick(ee){"single"!==this.selection&&this.zone.run(()=>{this.handleDateChange({selectedDates:ee,focusedDate:Je(ee)})})}setClasses(ee){this.renderer.addClass(ee,"k-widget"),this.renderer.addClass(ee,"k-calendar"),this.renderer.addClass(ee,"k-calendar-range")}verifyChanges(){if((0,e.X6Q)()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}}verifyValue(ee){if((0,e.X6Q)()){if("single"===this.selection&&ee&&!(ee instanceof Date))throw new Error(`The 'value' should be a valid JavaScript Date instance. Check ${Dr} for possible resolution.`);if("multiple"===this.selection&&ee&&Array.isArray(ee)&&!ee.every(Yn=>Yn instanceof Date))throw new Error(`The 'value' should be an array of valid JavaScript Date instances. Check ${Dr} for possible resolution.`)}}updateButtonState(){this.resolvedPromise.then(()=>{this.isPrevDisabled=!this.viewList.canNavigate(this.prevView),this.isNextDisabled=!this.viewList.canNavigate(this.nextView),this.cdr.markForCheck()})}parseSelectionToValue(ee){return ee=ee||[],"single"===this.selection?(0,a.k)(Je(ee)):ee.map(Ze=>(0,a.k)(Ze))}performSelection(ee,Ze){const Yn=this.selectionService.performSelection({date:ee,modifiers:Ze,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=Yn.rangePivot,this.handleDateChange({selectedDates:Yn.selectedDates,focusedDate:ee})}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(Wi),e.Y36(e.SBq),e.Y36(Ka),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(jr),e.Y36(cs))},Yt.\u0275cmp=e.Xpm({type:Yt,selectors:[["kendo-multiviewcalendar"]],contentQueries:function(ee,Ze,Yn){if(1&ee&&(e.Suo(Yn,Ps,5),e.Suo(Yn,Qi,5),e.Suo(Yn,vo,5),e.Suo(Yn,pi,5),e.Suo(Yn,to,5),e.Suo(Yn,Ro,5),e.Suo(Yn,Sr,5)),2&ee){let Bo;e.iGM(Bo=e.CRH())&&(Ze.cellTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.monthCellTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.yearCellTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.decadeCellTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.centuryCellTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.weekNumberTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.headerTitleTemplate=Bo.first)}},viewQuery:function(ee,Ze){if(1&ee&&(e.Gf(Ws,5,e.SBq),e.Gf(_a,5)),2&ee){let Yn;e.iGM(Yn=e.CRH())&&(Ze.headerElement=Yn.first),e.iGM(Yn=e.CRH())&&(Ze.viewList=Yn.first)}},hostVars:4,hostBindings:function(ee,Ze){1&ee&&e.NdJ("mouseenter",function(){return Ze.handleMouseEnter()})("mouseleave",function(){return Ze.handleMouseLeave()})("mousedown",function(Bo){return Ze.handleMousedown(Bo)})("click",function(){return Ze.handleClick()})("keydown",function(Bo){return Ze.keydown(Bo)}),2&ee&&(e.uIk("id",Ze.widgetId)("aria-disabled",Ze.ariaDisabled),e.ekj("k-disabled",Ze.ariaDisabled))},inputs:{id:"id",focusedDate:"focusedDate",min:"min",max:"max",rangeValidation:"rangeValidation",disabledDatesRangeValidation:"disabledDatesRangeValidation",selection:"selection",value:"value",disabled:"disabled",tabindex:"tabindex",tabIndex:"tabIndex",isActive:"isActive",disabledDates:"disabledDates",activeView:"activeView",bottomView:"bottomView",topView:"topView",showViewHeader:"showViewHeader",animateNavigation:"animateNavigation",weekNumber:"weekNumber",activeRangeEnd:"activeRangeEnd",selectionRange:"selectionRange",views:"views",orientation:"orientation",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"]},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",cellEnter:"cellEnter",cellLeave:"cellLeave",valueChange:"valueChange",blurEvent:"blur",focusEvent:"focus",focusCalendar:"focusCalendar",onClosePopup:"onClosePopup",onTabPress:"onTabPress",onShiftTabPress:"onShiftTabPress"},exportAs:["kendo-multiviewcalendar"],features:[e._Bn([Wi,_s,ia,o.oQ,jr,{provide:o.mM,useValue:"kendo.multiviewcalendar"},Ka,cs]),e.TTD],decls:3,vars:32,consts:function(){let Ri,ee,Ze,Yn;return Ri=$localize`:kendo.multiviewcalendar.today|The label for the today button in the calendar header:Today`,ee=$localize`:kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar:Navigate to previous view`,Ze=$localize`:kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar:Navigate to next view`,Yn=$localize`:kendo.multiviewcalendar.parentViewButtonTitle|The title of the parent view button in the Multiview calendar header:Navigate to parent view`,[["kendoMultiViewCalendarLocalizedMessages","","today",Ri,"prevButtonTitle",ee,"nextButtonTitle",Ze,"parentViewButtonTitle",Yn],[3,"activeView","currentDate","min","max","id","rangeLength","templateRef","isPrevDisabled","isNextDisabled","showNavigationButtons","orientation","todayButtonClick","prevButtonClick","nextButtonClick"],[3,"id","activeView","activeDescendant","isActive","cellTemplateRef","weekNumberTemplateRef","cellUID","views","min","max","focusedDate","animateNavigation","showViewHeader","weekNumber","activeRangeEnd","selectionRange","selectedDates","orientation","tabIndex","disabled","cellClick","weekNumberCellClick","cellEnter","cellLeave","activeDateChange","focusCalendar","blurCalendar"]]},template:function(ee,Ze){if(1&ee&&(e.GkF(0,0),e.TgZ(1,"kendo-calendar-header",1),e.NdJ("todayButtonClick",function(Bo){return Ze.handleTodayButtonClick({selectedDates:[Bo],focusedDate:Bo})})("prevButtonClick",function(){return Ze.navigateView(Ze.prevView)})("nextButtonClick",function(){return Ze.navigateView(Ze.nextView)}),e.qZA(),e.TgZ(2,"kendo-calendar-horizontal",2),e.NdJ("cellClick",function(Bo){return Ze.handleCellClick(Bo)})("weekNumberCellClick",function(Bo){return Ze.handleWeekNumberClick(Bo)})("cellEnter",function(Bo){return Ze.emitCellEvent(Ze.cellEnter,Bo)})("cellLeave",function(Bo){return Ze.emitCellEvent(Ze.cellLeave,Bo)})("activeDateChange",function(Bo){return Ze.setActiveDate(Bo)})("focusCalendar",function(){return Ze.handleFocus()})("blurCalendar",function(Bo){return Ze.handleFocusout(Bo)}),e.qZA()),2&ee){let Yn;e.xp6(1),e.Q6J("activeView",Ze.activeViewEnum)("currentDate",Ze.activeDate)("min",Ze.min)("max",Ze.max)("id",Ze.headerId)("rangeLength",Ze.views)("templateRef",null==Ze.headerTitleTemplateRef?null:Ze.headerTitleTemplateRef.templateRef)("isPrevDisabled",Ze.isPrevDisabled)("isNextDisabled",Ze.isNextDisabled)("showNavigationButtons",!0)("orientation",Ze.orientation),e.xp6(1),e.Q6J("id",Ze.calendarHeaderIdLabel)("activeView",Ze.activeViewEnum)("activeDescendant",Ze.ariaActivedescendant)("isActive",Ze.isActive||Ze.isHovered)("cellTemplateRef",null==(Yn=Ze.activeCellTemplate())?null:Yn.templateRef)("weekNumberTemplateRef",null==Ze.weekNumberTemplateRef?null:Ze.weekNumberTemplateRef.templateRef)("cellUID",Ze.cellUID)("views",Ze.views)("min",Ze.min)("max",Ze.max)("focusedDate",Ze.focusedDate)("animateNavigation",Ze.animateNavigation)("showViewHeader",Ze.showViewHeader)("weekNumber",Ze.weekNumber)("activeRangeEnd",Ze.activeRangeEnd)("selectionRange",Ze.selectionRange)("selectedDates",Ze.selectedDates)("orientation",Ze.orientation)("tabIndex",Ze.tabIndex)("disabled",Ze.disabled),e.uIk("aria-labelledby",Ze.multiViewCalendarHeaderIdLabel)}},dependencies:[Ws,_a,il],encapsulation:2,changeDetection:0}),Yt})();const ar=Nt("div"),wa=Nt("ul"),_l=Nt("li"),Ya=Nt("td"),pa=Nt("th"),rl=Nt("tr"),Nl=Nt("tbody"),nd=Nt("thead"),Ct=Nt("table"),Ft=(Yt,Ri)=>new Array(Yt).fill("1").map(Ri),Qt=Yt=>ar(Yt,"k-flex k-content k-scrollable"),Do=(()=>{let Yt;return()=>j.X_?(Yt||(Yt=ar([Qt([wa([_l("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),Yt):null})(),Po=({cells:Yt,rows:Ri},ee,Ze)=>{let Yn;return()=>j.X_?(Yn||(Yn=((Yt,Ri,ee)=>ar([ar('\n            <span class="k-button k-nav-fast k-button-md k-rounded-md k-button-flat k-button-flat-base k-calendar-title">March 2017</span>\n            <span class="k-spacer"></span>\n            <span class="k-calendar-nav k-hstack">\n                <button class="k-calendar-nav-today k-button k-button-md k-button-flat k-button-flat-primary k-rounded-md">TODAY</button>\n            </span>\n        ',"k-calendar-header k-hstack"),ee?Ct([nd([rl([pa("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table"):null,Qt([Yt,Yt])],Ri,{left:"-10000px",position:"absolute"}))(((Yt,Ri=1)=>Ct([Nl([rl([pa("1","k-calendar-th")],"k-calendar-tr")].concat(Ft(Yt,()=>rl(Ft(Ri,ee=>Ya(`<span class="k-link">${ee}</span>`,"k-calendar-td")),"k-calendar-tr"))),"k-calendar-tbody")],"k-calendar-table"))(Ri,Yt),ee,Ze)),Yn):null},Or=Yt=>Yt.querySelector(".k-scrollable"),hs=Yt=>(Or(Yt).classList.add("k-scrollable-horizontal"),Yt),Zs=Po({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),ca=Po({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),za=Po({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),ec=Yt=>parseFloat(window.getComputedStyle(Yt).height)||Yt.offsetHeight,Wl=Yt=>{const Ri=window.getComputedStyle(Yt);return parseFloat(Ri.width)+parseFloat(Ri.paddingLeft)+parseFloat(Ri.paddingRight)||Yt.offsetWidth},va=Yt=>Yt.querySelector("tbody");let Hc=(()=>{class Yt{ensureHeights(){void 0===this.calendarHeight&&this.calculateHeights()}calculateHeights(ee){(0,j.X_)()&&(this.hostContainer=ee,this.batch(Zs(),Ze=>{const Yn=va(Ze);this.calendarHeight=ec(Ze),this.monthViewHeight=ec(Yn),this.headerHeight=ec(Yn.children[0]),this.scrollableContentHeight=ec(Or(Ze))}),this.batch(hs(Zs()),Ze=>{const Yn=va(Ze);this.calendarWidth=Wl(Ze),this.monthViewWidth=Wl(Yn),this.scrollableContentWidth=Wl(Or(Ze))}),this.batch(ca(),Ze=>{this.yearViewHeight=ec(va(Ze)),this.scrollableYearContentHeight=ec(Or(Ze))}),this.batch(hs(ca()),Ze=>{this.yearViewWidth=Wl(va(Ze))}),this.batch(za(),Ze=>{this.decadeViewHeight=ec(va(Ze)),this.centuryViewHeight=this.decadeViewHeight}),this.batch(hs(za()),Ze=>{this.decadeViewWidth=Wl(va(Ze)),this.centuryViewWidth=this.decadeViewWidth}),this.batch(Do(),Ze=>{this.navigationItemHeight=ec(Ze.querySelector("li"))}))}viewHeight(ee){return this.viewDimension(ee,"height")}viewWidth(ee){return this.viewDimension(ee,"width")}viewDimension(ee,Ze){const Yn="height"===Ze?"ViewHeight":"ViewWidth";switch(ee){case $i.month:return this[`month${Yn}`];case $i.year:return this[`year${Yn}`];case $i.decade:return this[`decade${Yn}`];case $i.century:return this[`century${Yn}`];default:return 1}}batch(ee,Ze){if(!Pr(this.hostContainer))return;const Yn=this.hostContainer.cloneNode();document.body.appendChild(Yn);try{Ze(Yn.appendChild(ee))}finally{document.body.removeChild(Yn)}}}return Yt.\u0275fac=function(ee){return new(ee||Yt)},Yt.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();class Mu{constructor(Ri=0,ee,Ze){this.total=Ri,this.rowHeight=ee,this.detailRowHeight=Ze,this.offsets=[],this.heights=[];let Yn=0;for(let Bo=0;Bo<Ri;Bo++)this.offsets.push(Yn),Yn+=ee,this.heights.push(ee)}height(Ri){return this.heights[Ri]}expandDetail(Ri){this.height(Ri)===this.rowHeight&&this.updateRowHeight(Ri,this.detailRowHeight)}collapseDetail(Ri){this.height(Ri)>this.rowHeight&&this.updateRowHeight(Ri,-1*this.detailRowHeight)}index(Ri){if(Ri<0)return;const ee=this.offsets.reduce((Ze,Yn,Bo)=>void 0!==Ze?Ze:Yn===Ri?Bo:Yn>Ri?Bo-1:void 0,void 0);return void 0===ee?this.total-1:ee}offset(Ri){return this.offsets[Ri]}totalHeight(){return this.heights.reduce((Ri,ee)=>Ri+ee,0)}updateRowHeight(Ri,ee){this.heights[Ri]+=ee,this.offsets=((Yt,Ri,ee)=>[...Yt.slice(0,Ri+1),...Yt.slice(Ri+1).map(Ze=>Ze+ee)])(this.offsets,Ri,ee)}}const Tl=Yt=>Math.max(Yt,0);class cc{constructor(Ri){this.offset=Ri}}class Id{constructor(Ri){this.skip=Ri}}class vu{constructor(Ri){this.scrollObservable=Ri,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}create(Ri,ee,Ze,Yn,Bo=0,$r=0,ea="vertical"){this.rowHeightService=Ri,this.firstLoaded=ee,this.lastLoaded=ee+Ze,this.take=Ze,this.total=Yn,this.lastScroll=0,this.topOffset=Bo,this.bottomOffset=$r,this.direction=ea;const Fa=new ne.t(2),el=this.rowsForHeight(Bo),bl=Tl(ee-el);return Fa.next(new cc(this.rowOffset(bl))),el&&Fa.next(new Id(bl)),this.subscription=new _e.y(Ql=>{this.unsubscribe(),this.scrollSubscription=this.scrollObservable.subscribe(Pl=>this.onScroll(Pl,Ql))}).subscribe(Ql=>Fa.next(Ql)),Fa}destroy(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()}onScroll({scrollLeft:Ri,scrollTop:ee,offsetHeight:Ze,offsetWidth:Yn},Bo){const $r="vertical"===this.direction?ee:Ri,ea="vertical"===this.direction?Ze:Yn;if(this.lastScroll===$r)return;const Fa=this.lastScroll>=$r;this.lastScroll=$r;const el=this.rowHeightService.index(Tl($r-this.topOffset)),bl=this.rowHeightService.index(Tl($r+ea-this.bottomOffset));if(!Fa&&bl>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=el,Bo.next(new cc(this.rowOffset(el))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),Bo.next(new Id(this.firstLoaded))),Fa&&el<=this.firstLoaded){const Ql=Math.floor(.3*this.take);this.firstLoaded=Tl(el-Ql),Bo.next(new cc(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),Bo.next(new Id(this.firstLoaded))}}rowOffset(Ri){return this.rowHeightService.offset(Ri)+this.topOffset}rowsForHeight(Ri){return Math.ceil(Ri/this.rowHeightService.height(0))}unsubscribe(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=null)}}const th=new e.OlP("dateinputs-scroll-service-factory");function Uh(Yt){return new vu(Yt)}var Jc=function(Yt){return Yt[Yt.Backward=0]="Backward",Yt[Yt.Forward=1]="Forward",Yt}(Jc||{});const cd={[Jc.Forward]:Yt=>Ri=>Ri+Yt,[Jc.Backward]:Yt=>Ri=>Ri-Yt},Cd={[Jc.Forward]:Yt=>Ri=>Math.min(Ri,Yt),[Jc.Backward]:Yt=>Ri=>Math.max(Ri,Yt)},yu={[Jc.Forward]:Yt=>Ri=>Ri<Yt,[Jc.Backward]:Yt=>Ri=>Ri>Yt};let nu=(()=>{class Yt{constructor(ee,Ze,Yn,Bo,$r){this.container=Ze,this.renderer=Yn,this.zone=Bo,this.scrollBarWidthService=$r,this.direction="vertical",this.itemHeight=1,this.itemWidth=1,this.topOffset=0,this.bottomOffset=0,this.maxScrollDifference=100,this.scrollOffsetSize=0,this.scrollDuration=150,this.activeIndexChange=new e.vpe,this.pageChange=new e.vpe,this.scrollChange=new e.vpe,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new q.x,this.scroller=ee(this.dispatcher)}get horizontalClass(){return"horizontal"===this.direction}get totalVertexLength(){const ee=`${this.totalSize}px`;return"vertical"===this.direction?{height:ee}:{width:ee}}get containerOffsetSize(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")}get containerScrollSize(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")}get containerScrollPosition(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")}ngOnChanges(ee){(ee.direction||ee.take||ee.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)}ngOnInit(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{this.containerScrollSubscription=this.scroll$().pipe((0,xn.U)(ee=>ee.target)).subscribe(ee=>{this.dispatcher.next(ee),this.emitActiveIndex()})})}ngOnDestroy(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()}getContainerProperty(ee){return this.container.nativeElement[ee]}activeIndex(){return this.itemIndex(Math.ceil(this.containerScrollPosition))}itemIndex(ee){return this.rowHeightService.index(ee)}itemOffset(ee){return this.rowHeightService.offset(ee)}isIndexVisible(ee){if(!this.rowHeightService)return!1;const Ze=this.containerScrollPosition,Yn=Ze+this.containerOffsetSize,Bo=this.rowHeightService.offset(ee),$r=Bo+this.rowHeightService.height(ee);return Bo>=Ze&&$r<=Yn}isListScrolled(ee){return this.containerScrollPosition!==this.rowHeightService.offset(ee)}scrollTo(ee){this.renderer.setProperty(this.container.nativeElement,"vertical"===this.direction?"scrollTop":"scrollLeft",ee)}scrollToIndex(ee){this.zone.runOutsideAngular(()=>{this.resolvedPromise.then(()=>{this.scrollTo(this.rowHeightService.offset(ee))})})}scrollToBottom(){this.scrollTo(this.totalSize)}animateToIndex(ee){this.animationSubscription&&this.animationSubscription.unsubscribe();const Ze=this.rowHeightService.offset(ee),Yn=this.getContainerScrollDirection(Ze),{start:Bo,end:$r}=this.scrollRange(Ze,Yn);if(Bo===$r)return;const ea=this.scrollStep(Bo,$r),Fa=cd[Yn](ea),el=Cd[Yn]($r),bl=yu[Yn](Fa($r));this.zone.runOutsideAngular(()=>{this.animationSubscription=(0,ge.a)((0,Ce.of)(Bo),(0,Te.F)(0,De.Z)).pipe((0,xn.U)(Ql=>Ql[0]),(0,mt.R)(Fa),(0,ut.o)(bl),(0,xn.U)(el)).subscribe(Ql=>this.scrollTo(Ql))})}scrollRange(ee,Ze){const Yn=this.containerScrollPosition;if(parseInt(ee,10)===parseInt(Yn,10))return{start:ee,end:ee};const Bo=this.containerMaxScroll(),$r=Ze===Jc.Backward?1:-1,ea=((Yt,Ri,ee)=>Math.min(Math.abs(Ri-Yt),ee))(Yn,ee,this.maxScrollDifference),Fa=Math.min(ee,Bo);return{start:Math.min(Math.max(Fa+$r*ea,0),Bo),end:Fa}}scrollStep(ee,Ze){return Math.abs(Ze-ee)/(this.scrollDuration/17)}scroll$(){return(0,j.X_)()?(0,fe.R)(this.container.nativeElement,"scroll"):xe.E}initServices(){this.rowHeightService=this.createRowHeightService(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total,this.topOffset,this.scrollOffsetSize,this.direction).subscribe(ee=>{ee instanceof Id?this.pageChange.emit(ee):this.scrollChange.emit(ee)})}createRowHeightService(){return new Mu(this.total,"vertical"===this.direction?this.itemHeight:this.itemWidth,0)}emitActiveIndex(){const ee=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==ee&&(this.lastActiveIndex=ee,this.activeIndexChange.emit(ee))}containerMaxScroll(){return this.containerScrollSize-this.containerOffsetSize}getContainerScrollDirection(ee){return ee<this.containerScrollPosition?Jc.Backward:Jc.Forward}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(th),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(j.GK))},Yt.\u0275cmp=e.Xpm({type:Yt,selectors:[["kendo-virtualization"]],hostVars:8,hostBindings:function(ee,Ze){2&ee&&e.ekj("k-flex",Ze.wrapperClasses)("k-content",Ze.wrapperClasses)("k-scrollable",Ze.wrapperClasses)("k-scrollable-horizontal",Ze.horizontalClass)},inputs:{direction:"direction",itemHeight:"itemHeight",itemWidth:"itemWidth",topOffset:"topOffset",bottomOffset:"bottomOffset",maxScrollDifference:"maxScrollDifference",scrollOffsetSize:"scrollOffsetSize",scrollDuration:"scrollDuration",skip:"skip",take:"take",total:"total"},outputs:{activeIndexChange:"activeIndexChange",pageChange:"pageChange",scrollChange:"scrollChange"},features:[e._Bn([{provide:th,useValue:Uh}]),e.TTD],ngContentSelectors:Ei,decls:2,vars:3,consts:[[1,"k-scrollable-placeholder",3,"ngStyle"]],template:function(ee,Ze){1&ee&&(e.F$t(),e.Hsn(0),e._UZ(1,"div",0)),2&ee&&(e.xp6(1),e.ekj("k-scrollable-horizontal-placeholder","horizontal"===Ze.direction),e.Q6J("ngStyle",Ze.totalVertexLength))},dependencies:[Ut.PC],encapsulation:2}),Yt})(),mc=(()=>{class Yt{constructor(ee,Ze,Yn,Bo,$r){this.bus=ee,this.dom=Ze,this.intl=Yn,this.cdr=Bo,this.renderer=$r,this.min=new Date(Yi),this.max=new Date(co),this.focusedDate=new Date,this.valueChange=new e.vpe,this.pageChange=new e.vpe,this.dates=[],this.take=30,this.indexToScroll=-1}get getComponentClass(){return!0}ngOnInit(){this.dom.ensureHeights();const ee=this.dom.calendarHeight;this.itemHeight=this.dom.navigationItemHeight,this.maxViewHeight=this.dom.monthViewHeight,this.topOffset=(ee-this.itemHeight)/2,this.bottomOffset=ee-this.itemHeight,this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}ngOnChanges(ee){if(this.service=this.bus.service(this.activeView),!this.service)return;this.activeViewValue=$i[this.activeView];const Ze=Vn(this.focusedDate,this.min,this.max),Yn=this.service.total(this.min,this.max),Bo=this.total&&this.total!==Yn;this.skip=this.service.skip(Ze,this.min),this.total=Yn,(Bo||!this.service.isInArray(Ze,this.dates))&&(this.dates=this.service.datesList(Ze,this.getTake(this.skip))),(ee.focusedDate||Bo)&&(this.indexToScroll=this.service.skip(this.focusedDate,this.min))}ngOnDestroy(){this.intlSubscription&&this.intlSubscription.unsubscribe()}ngAfterViewInit(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}ngAfterViewChecked(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}onPageChange({skip:ee}){this.dates=this.service.datesList(this.service.addToDate(this.min,ee),this.getTake(ee)),this.pageChange.emit()}scrollChange({offset:ee}){const Ze=this.list.nativeElement,Yn=`translateY(${ee}px)`;this.renderer.setStyle(Ze,"transform",Yn),this.renderer.setStyle(Ze,"-ms-transform",Yn)}handleDateChange(ee){const Ze=fs(ee.target,Yn=>Yn.hasAttribute("data-date-index"),this.list.nativeElement);if(Ze){const Yn=parseInt(Ze.getAttribute("data-date-index"),10);this.valueChange.emit((0,a.k)(this.dates[Yn]))}}getTake(ee){return Math.min(this.total-ee,this.take)}intlChange(){this.activeView===$i.month&&this.cdr.markForCheck()}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(Wi),e.Y36(Hc),e.Y36(z.aJ),e.Y36(e.sBO),e.Y36(e.Qsj))},Yt.\u0275cmp=e.Xpm({type:Yt,selectors:[["kendo-calendar-navigation"]],viewQuery:function(ee,Ze){if(1&ee&&(e.Gf(nu,5),e.Gf(li,7)),2&ee){let Yn;e.iGM(Yn=e.CRH())&&(Ze.virtualization=Yn.first),e.iGM(Yn=e.CRH())&&(Ze.list=Yn.first)}},hostVars:2,hostBindings:function(ee,Ze){2&ee&&e.ekj("k-calendar-navigation",Ze.getComponentClass)},inputs:{activeView:"activeView",min:"min",max:"max",focusedDate:"focusedDate",templateRef:"templateRef"},outputs:{valueChange:"valueChange",pageChange:"pageChange"},features:[e.TTD],decls:5,vars:12,consts:[[1,"k-calendar-navigation-highlight"],[3,"skip","take","total","itemHeight","topOffset","bottomOffset","maxScrollDifference","pageChange","scrollChange"],[1,"k-reset",3,"kendoEventsOutsideAngular","scope"],["list",""],[4,"kFor","kForOf"],[3,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"]],template:function(ee,Ze){1&ee&&(e._UZ(0,"span",0),e.TgZ(1,"kendo-virtualization",1),e.NdJ("pageChange",function(Bo){return Ze.onPageChange(Bo)})("scrollChange",function(Bo){return Ze.scrollChange(Bo)}),e.TgZ(2,"ul",2,3),e.YNc(4,bo,4,11,"li",4),e.qZA()()),2&ee&&(e.xp6(1),e.Q6J("skip",Ze.skip)("take",Ze.take)("total",Ze.total)("itemHeight",Ze.itemHeight)("topOffset",Ze.topOffset)("bottomOffset",Ze.bottomOffset)("maxScrollDifference",Ze.maxViewHeight),e.xp6(1),e.Q6J("kendoEventsOutsideAngular",e.VKq(10,Ji,Ze.handleDateChange))("scope",Ze),e.xp6(2),e.Q6J("kForOf",Ze.dates))},dependencies:[nu,j.nV,ks,Ut.O5,Ut.tP],encapsulation:2,changeDetection:0}),Yt})(),Fl=(()=>{class Yt{constructor(ee,Ze,Yn,Bo,$r){this.bus=ee,this.cdr=Ze,this.intl=Yn,this.dom=Bo,this.renderer=$r,this.isActive=!0,this.min=new Date(Yi),this.max=new Date(co),this.selectedDates=[],this.tabIndex=0,this.disabled=!1,this.cellClick=new e.vpe,this.weekNumberCellClick=new e.vpe,this.activeDateChange=new e.vpe,this.todayButtonClick=new e.vpe,this.pageChange=new e.vpe,this.focusCalendar=new e.vpe,this.blurCalendar=new e.vpe,this.focusedCellChange=new e.vpe,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.wideWeekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}get weekNumber(){return this.showWeekNumbers&&this.isMonthView()}set weekNumber(ee){this.showWeekNumbers=ee}get headerTitle(){return this.headerComponent?.title}get getComponentMonthClass(){return this.activeView===$i.month}get getComponentYearClass(){return this.activeView===$i.year}get getComponentDecadeClass(){return this.activeView===$i.decade}get getComponentCenturyClass(){return this.activeView===$i.century}ngOnInit(){this.weekNames=this.getWeekNames("short"),this.wideWeekNames=this.getWeekNames("wide"),this.bottomOffset=this.getBottomOffset(),this.viewOffset=-1*this.dom.headerHeight,this.viewHeight=this.dom.viewHeight(this.activeView),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}ngOnChanges(ee){if(this.service=this.bus.service(this.activeView),!this.service)return;this.cols=new Array(this.service.rowLength({prependCell:this.weekNumber})).fill(""),this.weekNames=an(ee,"weekNumber")&&this.weekNumber?this.getWeekNames("short"):this.weekNames,this.wideWeekNames=an(ee,"weekNumber")&&this.weekNumber?this.getWeekNames("wide"):this.weekNames;const Ze=an(ee,"activeView"),Yn=this.focusedDate,Bo=Vn(this.service.viewDate(Yn,this.max,this.minViewsToRender),this.min,this.max),$r=this.service.total(this.min,this.max),Fa=this.total&&this.total!==$r||!this.service.isInArray(Yn,this.dates);this.skip=this.service.skip(Bo,this.min),this.total=$r,this.animateToIndex=!Ze,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),Fa&&(this.dates=this.service.datesList(Bo,this.getTake(this.skip))),((Yt,Ri)=>Yt&&Ri&&Yt.getFullYear()===Ri.getFullYear()&&Yt.getMonth()===Ri.getMonth())(this.activeDate,Yn)||(this.activeDate=(0,a.k)(Yn));const el=an(ee,"focusedDate")||Ze;(Fa||el||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(Yn,this.min))}ngOnDestroy(){this.intlSubscription&&this.intlSubscription.unsubscribe()}ngAfterViewInit(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}ngAfterViewChecked(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)}onPageChange({skip:ee}){this.dates=this.service.datesList(this.service.addToDate(this.min,ee),this.getTake(ee)),this.pageChange.emit()}scrollChange({offset:ee}){const Ze=this.list.nativeElement,Yn=`translateY(${ee}px)`;this.renderer.setStyle(Ze,"transform",Yn),this.renderer.setStyle(Ze,"-ms-transform",Yn)}setActiveDate(ee){const Ze=this.service.addToDate(this.min,ee);this.activeDate=Ze,this.activeDateChange.emit(Ze),this.cdr.detectChanges()}isMonthView(){return this.activeView===$i.month}isScrolled(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))}getTabIndex(){return this.disabled?null:this.tabIndex}getBottomOffset(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)}getScrollableHeight(){return this.activeView===$i.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight}getTake(ee){return Math.min(this.total-ee,this.take)}getWeekNames(ee){const Ze=Ht(this.intl.dateFormatNames({nameType:ee,type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(Ze):Ze}intlChange(){this.weekNames=this.getWeekNames("short"),this.wideWeekNames=this.getWeekNames("wide"),this.isMonthView()&&this.cdr.markForCheck()}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(Wi),e.Y36(e.sBO),e.Y36(z.aJ),e.Y36(Hc),e.Y36(e.Qsj))},Yt.\u0275cmp=e.Xpm({type:Yt,selectors:[["kendo-calendar-viewlist"]],viewQuery:function(ee,Ze){if(1&ee&&(e.Gf(nu,5),e.Gf(Ws,5),e.Gf(li,7)),2&ee){let Yn;e.iGM(Yn=e.CRH())&&(Ze.virtualization=Yn.first),e.iGM(Yn=e.CRH())&&(Ze.headerComponent=Yn.first),e.iGM(Yn=e.CRH())&&(Ze.list=Yn.first)}},hostVars:12,hostBindings:function(ee,Ze){2&ee&&e.ekj("k-vstack",Ze.getComponentClass)("k-calendar-view",Ze.getComponentClass)("k-calendar-monthview",Ze.getComponentMonthClass)("k-calendar-yearview",Ze.getComponentYearClass)("k-calendar-decadeview",Ze.getComponentDecadeClass)("k-calendar-centuryview",Ze.getComponentCenturyClass)},inputs:{cellTemplateRef:"cellTemplateRef",weekNumberTemplateRef:"weekNumberTemplateRef",headerTitleTemplateRef:"headerTitleTemplateRef",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",isActive:"isActive",min:"min",max:"max",selectedDates:"selectedDates",tabIndex:"tabIndex",disabled:"disabled",id:"id",weekNumber:"weekNumber"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",activeDateChange:"activeDateChange",todayButtonClick:"todayButtonClick",pageChange:"pageChange",focusCalendar:"focusCalendar",blurCalendar:"blurCalendar",focusedCellChange:"focusedCellChange"},features:[e.TTD],decls:8,vars:20,consts:[[3,"currentDate","min","max","id","activeView","templateRef","todayButtonClick"],["class","k-calendar-weekdays k-calendar-table",3,"table-layout",4,"ngIf"],[3,"tabindex","skip","take","total","itemHeight","topOffset","bottomOffset","scrollOffsetSize","maxScrollDifference","pageChange","scrollChange","activeIndexChange"],["role","grid",1,"k-calendar-table",3,"focus","blur"],["list",""],[4,"ngFor","ngForOf"],["class","k-calendar-tbody","kendoCalendarView","","role","rowgroup",3,"headerTitle","activeView","isActive","min","max","cellUID","focusedDate","selectedDates","weekNumber","templateRef","weekNumberTemplateRef","viewDate","cellClick","weekNumberCellClick","focusedCellId",4,"kFor","kForOf"],[1,"k-calendar-weekdays","k-calendar-table"],[1,"k-calendar-thead"],[1,"k-calendar-tr"],["class","k-calendar-th","scope","col","role","columnheader",4,"ngFor","ngForOf"],["scope","col","role","columnheader",1,"k-calendar-th"],["kendoCalendarView","","role","rowgroup",1,"k-calendar-tbody",3,"headerTitle","activeView","isActive","min","max","cellUID","focusedDate","selectedDates","weekNumber","templateRef","weekNumberTemplateRef","viewDate","cellClick","weekNumberCellClick","focusedCellId"]],template:function(ee,Ze){1&ee&&(e.TgZ(0,"kendo-calendar-header",0),e.NdJ("todayButtonClick",function(Bo){return Ze.todayButtonClick.emit(Bo)}),e.qZA(),e.YNc(1,wn,4,3,"table",1),e.TgZ(2,"kendo-virtualization",2),e.NdJ("pageChange",function(Bo){return Ze.onPageChange(Bo)})("scrollChange",function(Bo){return Ze.scrollChange(Bo)})("activeIndexChange",function(Bo){return Ze.setActiveDate(Bo)}),e.TgZ(3,"table",3,4),e.NdJ("focus",function(){return Ze.focusCalendar.emit()})("blur",function(Bo){return Ze.blurCalendar.emit(Bo)}),e.TgZ(5,"colgroup"),e.YNc(6,Zi,1,0,"col",5),e.qZA(),e.YNc(7,oo,1,12,"tbody",6),e.qZA()()),2&ee&&(e.Q6J("currentDate",Ze.activeDate)("min",Ze.min)("max",Ze.max)("id",Ze.id)("activeView",Ze.activeView)("templateRef",Ze.headerTitleTemplateRef),e.xp6(1),e.Q6J("ngIf",Ze.isMonthView()),e.xp6(1),e.Q6J("tabindex",-1)("skip",Ze.skip)("take",Ze.take)("total",Ze.total)("itemHeight",Ze.viewHeight)("topOffset",Ze.viewOffset)("bottomOffset",Ze.bottomOffset)("scrollOffsetSize",Ze.viewOffset)("maxScrollDifference",Ze.viewHeight),e.xp6(1),e.uIk("tabindex",Ze.getTabIndex())("aria-labelledby",Ze.id),e.xp6(3),e.Q6J("ngForOf",Ze.cols),e.xp6(1),e.Q6J("kForOf",Ze.dates))},dependencies:[Ws,nu,na,Ut.O5,Ut.sg,ks],encapsulation:2,changeDetection:0}),Yt})(),gd=(()=>{class Yt{constructor(ee,Ze){this.dom=ee,this.zone=Ze}configure(ee){const Ze=Math.max(this.dom.viewHeight(ee)/this.dom.navigationItemHeight,1);this.divideByMagnitude=(Yt=>Ri=>Math.floor(Ri/Yt))(Ze),this.powerByMagnitude=(Yt=>Ri=>Ri*Yt)(Ze)}sync(ee,Ze){this.unsubscribe(),ee&&Ze&&(this.navigator=ee,this.view=Ze,this.zone.runOutsideAngular(()=>{let Yn,Bo;this.navSubscription=ee.scroll$().subscribe($r=>{Bo?Bo=!1:(Yn=!0,this.scrollSiblingOf($r.target))}),this.viewSubscription=Ze.scroll$().subscribe($r=>{Yn?Yn=!1:(Bo=!0,this.scrollSiblingOf($r.target))})}))}scrollSiblingOf(ee){const Ze=this.siblingComponent(ee),Yn=this.calculateScroll(Ze,ee.scrollTop);Ze.scrollTo(Yn)}siblingComponent(ee){return this.navigator.container.nativeElement===ee?this.view:this.navigator}calculateScroll(ee,Ze){return(ee===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(Ze)}destroy(){this.unsubscribe()}unsubscribe(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.LFG(Hc),e.LFG(e.R0b))},Yt.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})(),dd=(()=>{class Yt{constructor(ee){this.templateRef=ee}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(e.Rgc))},Yt.\u0275dir=e.lG2({type:Yt,selectors:[["","kendoCalendarNavigationItemTemplate",""]]}),Yt})();class gc{constructor(){this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.sameDateSelected=new e.vpe,this.dateCompletenessChange=new e.vpe}}let ih=(()=>{class Yt extends nl{constructor(ee){super(),this.service=ee}get override(){return!0}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(o.oQ))},Yt.\u0275cmp=e.Xpm({type:Yt,selectors:[["kendo-multiviewcalendar-messages"]],features:[e._Bn([{provide:nl,useExisting:(0,e.Gpc)(()=>Yt)}]),e.qOj],decls:0,vars:0,template:function(ee,Ze){},encapsulation:2}),Yt})(),Cu=(()=>{class Yt extends o.Z1{}return Yt.\u0275fac=function(){let Ri;return function(Ze){return(Ri||(Ri=e.n5z(Yt)))(Ze||Yt)}}(),Yt.\u0275dir=e.lG2({type:Yt,selectors:[["kendo-calendar-messages-base"]],inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle",parentViewButtonTitle:"parentViewButtonTitle"},features:[e.qOj]}),Yt})(),id=(()=>{class Yt extends Cu{constructor(ee){super(),this.service=ee}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(o.oQ))},Yt.\u0275dir=e.lG2({type:Yt,selectors:[["","kendoCalendarLocalizedMessages",""]],features:[e._Bn([{provide:Cu,useExisting:(0,e.Gpc)(()=>Yt)}]),e.qOj]}),Yt})();const od="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",Ic=Yt=>Yt?Yt.virtualization:null,Gd={multi:!0,provide:n.JU,useExisting:(0,e.Gpc)(()=>$c)},$d={multi:!0,provide:n.Cf,useExisting:(0,e.Gpc)(()=>$c)},dc={provide:j.GX,useExisting:(0,e.Gpc)(()=>$c)};let $c=(()=>{class Yt{constructor(ee,Ze,Yn,Bo,$r,ea,Fa,el,bl,Ql,Pl,Zl,kc){this.bus=ee,this.dom=Ze,this.element=Yn,this.navigator=Bo,this.renderer=$r,this.cdr=ea,this.ngZone=Fa,this.injector=el,this.scrollSyncService=bl,this.disabledDatesService=Ql,this.localization=Pl,this.selectionService=Zl,this.pickerService=kc,this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=$i[$i.month],this.bottomView=$i[$i.month],this.topView=$i[$i.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new e.vpe,this.navigate=new e.vpe,this.activeViewDateChange=new e.vpe,this.onBlur=new e.vpe,this.onFocus=new e.vpe,this.valueChange=new e.vpe,this._size=qt,this.isActive=!1,this.cellUID=(0,j.M8)(),this.selectedDates=[],this._min=new Date(Yi),this._max=new Date(co),this._focusedDate=ui(),this.onControlChange=Ot,this.onControlTouched=Ot,this.onValidatorChange=Ot,this.minValidateFn=Ot,this.maxValidateFn=Ot,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,(0,H.s)(Tt),this.id=`kendo-calendarid-${this.bus.calendarId}`,this.setClasses(Yn.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}get popupId(){return`kendo-popup-${this.bus.calendarId}`}set focusedDate(ee){if(this.activeViewDate&&!(0,d.X)(this._focusedDate,ee)){const Ze=this.bus.service(this.activeViewEnum),Yn=Ze.lastDayOfPeriod(this.activeViewDate);Ze.isInRange(ee,this.activeViewDate,Yn)||this.emitNavigate(ee)}this._focusedDate=ee||ui(),this.setAriaActivedescendant()}get focusedDate(){return this._focusedDate}get headerId(){return this.id+"-header"}set min(ee){this._min=ee||new Date(Yi)}get min(){return this._min}set max(ee){this._max=ee||new Date(co)}get max(){return this._max}get value(){return this._value}set value(ee){this.verifyValue(ee),this._value=Array.isArray(ee)?ee.filter(Yn=>Pr(Yn)).map(Yn=>(0,a.k)(Yn)):(0,a.k)(ee);const Ze=[].concat(ee).filter(Yn=>Pr(Yn)).map(Yn=>(0,a.k)(Yn));if(!Rt(Ze,this.selectedDates)){const Yn=Je(Ze);this.rangePivot=(0,a.k)(Yn),this.focusedDate=(0,a.k)(Yn)||this.focusedDate,this.selectedDates=Ze}}set tabIndex(ee){this.tabindex=ee}get tabIndex(){return this.tabindex}set disabledDates(ee){this.disabledDatesService.initialize(ee),this._disabledDates=ee}get disabledDates(){return this._disabledDates}set type(ee){this.renderer.removeClass(this.element.nativeElement,`k-calendar-${this.type}`),this.renderer.addClass(this.element.nativeElement,`k-calendar-${ee}`),this._type=ee}get type(){return this._type}set cellTemplateRef(ee){this._cellTemplateRef=ee}get cellTemplateRef(){return this._cellTemplateRef||this.cellTemplate}set monthCellTemplateRef(ee){this._monthCellTemplateRef=ee}get monthCellTemplateRef(){return this._monthCellTemplateRef||this.monthCellTemplate}set yearCellTemplateRef(ee){this._yearCellTemplateRef=ee}get yearCellTemplateRef(){return this._yearCellTemplateRef||this.yearCellTemplate}set decadeCellTemplateRef(ee){this._decadeCellTemplateRef=ee}get decadeCellTemplateRef(){return this._decadeCellTemplateRef||this.decadeCellTemplate}set centuryCellTemplateRef(ee){this._centuryCellTemplateRef=ee}get centuryCellTemplateRef(){return this._centuryCellTemplateRef||this.centuryCellTemplate}set weekNumberTemplateRef(ee){this._weekNumberTemplateRef=ee}get weekNumberTemplateRef(){return this._weekNumberTemplateRef||this.weekNumberTemplate}set headerTitleTemplateRef(ee){this._headerTitleTemplateRef=ee}get headerTitleTemplateRef(){return this._headerTitleTemplateRef||this.headerTitleTemplate}set navigationItemTemplateRef(ee){this._navigationItemTemplateRef=ee}get navigationItemTemplateRef(){return this._navigationItemTemplateRef||this.navigationItemTemplate}set size(ee){const Ze="infinite"===this.type?this.element:this.multiViewCalendar.element;this.renderer.removeClass(Ze.nativeElement,Ci("calendar",this.size));const Yn=ee||qt;"none"!==Yn&&this.renderer.addClass(Ze.nativeElement,Ci("calendar",Yn)),this._size=Yn}get size(){return this._size}get activeViewEnum(){const ee=$i[this.activeView];return ee<this.bottomViewEnum?this.bottomViewEnum:ee}get bottomViewEnum(){return $i[this.bottomView]}get topViewEnum(){return $i[this.topView]}get widgetId(){return this.id}get ariaDisabled(){return"classic"===this.type?void 0:this.disabled}ngOnInit(){"infinite"===this.type&&(this.dom.calculateHeights(this.element.nativeElement),this.scrollSyncService.configure(this.activeViewEnum)),this.localizationChangeSubscription=this.localization.changes.subscribe(()=>this.cdr.markForCheck()),this.viewChangeSubscription=this.bus.viewChanged.subscribe(({view:ee})=>this.handleActiveViewChange($i[ee])),this.control=this.injector.get(n.a5,null),this.element&&this.ngZone.runOutsideAngular(()=>{this.bindEvents()})}ngOnChanges(ee){this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),this.scrollSyncService.configure(this.activeViewEnum),$e(ee,"focusedDate")&&(this.focusedDate=Vn(ee.focusedDate.currentValue,this.min,this.max)),ee.navigation&&(this.syncNavigation=!0),(ee.min||ee.max||ee.rangeValidation)&&(this.minValidateFn=this.rangeValidation?rs(this.min):Ot,this.maxValidateFn=this.rangeValidation?Os(this.max):Ot,this.onValidatorChange())}ngAfterViewInit(){this.setAriaActivedescendant(),"none"!==this.size&&this.renderer.addClass(("infinite"===this.type?this.element:this.multiViewCalendar.element).nativeElement,Ci("calendar",this.size))}ngAfterViewChecked(){this.syncNavigation&&(this.syncNavigation=!1,this.scrollSyncService.sync(Ic(this.navigationView),Ic(this.monthView)))}ngOnDestroy(){this.scrollSyncService.destroy(),this.domEvents.forEach(ee=>ee()),this.pickerService&&(this.pickerService.calendar=null),this.viewChangeSubscription&&this.viewChangeSubscription.unsubscribe(),this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.destroyed=!0}onResize(){this.focusedDate=new Date(this.focusedDate),this.cdr.detectChanges()}focus(){this.currentlyFocusedElement="infinite"===this.type?this.element?.nativeElement.querySelector(".k-content .k-calendar-table"):this.currentlyFocusedElement=this.element?.nativeElement.querySelector(".k-content.k-calendar-table"),this.currentlyFocusedElement?.focus()}blur(){const ee="infinite"===this.type?this.currentlyFocusedElement:this.multiViewCalendar;Pr(ee)&&ee.blur()}containsElement(ee){return!!Ms(ee,Ze=>Ze===this.element.nativeElement)}handleNavigation(ee){if(this.disabled)return;const Ze=ee?new Date((0,a.k)(ee).setDate(1)):this.focusedDate;this.focusedDate=Vn(Ze,this.min,this.max),this.detectChanges()}onPageChange(){e.R0b.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=(0,Oe.D)(this.resolvedPromise).subscribe(()=>{this.detectChanges()}))}handleMultiViewCalendarValueChange(ee,Ze){const Yn=Array.isArray(ee)?ee:[ee];this.handleDateChange({selectedDates:Yn,focusedDate:Ze})}handleDateChange(ee){const Ze=Array.isArray(ee.selectedDates)?ee.selectedDates:[ee.selectedDates],Yn=this.bus.canMoveDown(this.activeViewEnum),Bo=Ze.filter($r=>!this.disabledDatesService.isDateDisabled($r));if(this.focusedDate=ee.focusedDate||this.focusedDate,!this.disabled){if(!Yn&&Rt(Bo,this.selectedDates))return void this.emitSameDate();if(Yn)return void this.bus.moveDown(this.activeViewEnum);this.disabledDatesService.isDateDisabled(this.focusedDate)||this.ngZone.run(()=>{this.selectedDates=Bo.map($r=>(0,a.k)($r)),this.value=this.parseSelectionToValue(Bo),this.onControlChange(this.parseSelectionToValue(Bo)),this.valueChange.emit(this.parseSelectionToValue(Bo)),this.cdr.markForCheck()})}}writeValue(ee){this.verifyValue(ee),this.value=ee,this.cdr.markForCheck()}registerOnChange(ee){this.onControlChange=ee}registerOnTouched(ee){this.onControlTouched=ee}setDisabledState(ee){this.disabled=ee,this.cdr.markForCheck()}validate(ee){return this.minValidateFn(ee)||this.maxValidateFn(ee)}registerOnValidatorChange(ee){this.onValidatorChange=ee}activeCellTemplate(){switch(this.activeViewEnum){case $i.month:return this.monthCellTemplateRef||this.cellTemplateRef;case $i.year:return this.yearCellTemplateRef;case $i.decade:return this.decadeCellTemplateRef;case $i.century:return this.centuryCellTemplateRef;default:return null}}handleNavigate(ee){this.focusedDate=ee.focusedDate,this.activeView=ee.activeView,this.emitNavigate(this.focusedDate)}emitNavigate(ee){this.navigate.emit({activeView:$i[this.activeViewEnum],focusedDate:ee})}emitEvent(ee,Ze){(0,j.g$)(ee)&&this.ngZone.run(()=>{ee.emit(Ze)})}handleActiveDateChange(ee){this.activeViewDate=ee,this.emitEvent(this.activeViewDateChange,ee)}handleActiveViewChange(ee){this.activeView=ee,this.emitEvent(this.activeViewChange,ee),"infinite"===this.type&&this.scrollSyncService.configure(this.activeViewEnum),this.detectChanges()}handleCellClick({date:ee,modifiers:Ze}){this.focus(),this.selectionService.lastClicked=ee,this.performSelection(ee,Ze)}handleWeekNumberClick(ee){"single"!==this.selection&&this.ngZone.run(()=>{this.handleDateChange({selectedDates:ee,focusedDate:Je(ee)})})}handleBlur(ee){this.element.nativeElement.contains(ee.relatedTarget)||(this.isActive=!1,!this.pickerService&&Ur(this.control)?this.ngZone.run(()=>{this.onControlTouched(),this.emitBlur(ee),this.cdr.markForCheck()}):(this.emitBlur(ee),this.detectChanges()))}handleFocus(){this.isActive=!0,e.R0b.isInAngularZone()||this.detectChanges(),this.emitFocus()}handleMultiViewCalendarKeydown(ee){Pr(this.pickerService)&&ee.keyCode===j.R8.Enter&&ee.preventDefault()}setClasses(ee){this.renderer.addClass(ee,"k-widget"),this.renderer.addClass(ee,"k-calendar"),this.renderer.addClass(ee,`k-calendar-${this.type}`)}verifyChanges(){if((0,e.X6Q)()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}}verifyValue(ee){if((0,e.X6Q)()){if("single"===this.selection&&ee&&!(ee instanceof Date))throw new Error(`The 'value' should be a valid JavaScript Date instance. Check ${od} for possible resolution.`);if("multiple"===this.selection&&ee&&Array.isArray(ee)&&!ee.every(Yn=>Yn instanceof Date))throw new Error(`The 'value' should be an array of valid JavaScript Date instances. Check ${od} for possible resolution.`)}}bindEvents(){const ee=this.element.nativeElement;this.domEvents.push(this.renderer.listen(ee,"focus",this.handleFocus.bind(this)),this.renderer.listen(ee,"mousedown",ss),this.renderer.listen(ee,"click",this.handleComponentClick.bind(this)),this.renderer.listen(ee,"keydown",this.handleKeydown.bind(this)))}emitBlur(ee){this.pickerService&&this.pickerService.onBlur.emit(ee),this.onBlur.emit()}emitFocus(){this.pickerService&&this.pickerService.onFocus.emit(),this.onFocus.emit()}handleComponentClick(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=(0,a.k)(this.focusedDate),this.detectChanges()),this.focus())}handleKeydown(ee){if("infinite"===this.type){const Ze=ee.ctrlKey||ee.metaKey,Yn=-1!==[j.R8.ArrowUp,j.R8.ArrowRight,j.R8.ArrowDown,j.R8.ArrowLeft].indexOf(ee.keyCode);if(Pr(this.pickerService)&&Yn&&ee.altKey)return;Ze&&Yn&&ee.preventDefault(),Pr(this.pickerService)&&ee.keyCode===j.R8.Enter&&ee.preventDefault();const ea=Vn(this.navigator.move(this.focusedDate,this.navigator.action(ee),this.activeViewEnum),this.min,this.max);(0,d.X)(this.focusedDate,ea)||(this.focusedDate=ea,this.detectChanges(),ee.preventDefault()),ee.keyCode===j.R8.Enter&&(this.selectionService.lastClicked=this.focusedDate,this.performSelection(this.focusedDate,ee)),ee.keyCode===j.R8.KeyT&&this.focusToday(),ga(ee)&&(ee.anyArrow=!0,this.performSelection(this.focusedDate,ee))}}focusToday(){this.focusedDate=ui(),this.bus.moveToBottom(this.activeViewEnum),this.cdr.detectChanges()}detectChanges(){this.destroyed||this.cdr.detectChanges()}emitSameDate(){this.pickerService&&this.pickerService.sameDateSelected.emit()}setAriaActivedescendant(){const ee=this.element.nativeElement?.querySelector(".k-content .k-calendar-table");if(!Pr(ee)||"classic"===this.type&&!ee.hasAttribute("aria-activedescendant"))return;if("classic"===this.type)return void this.renderer.removeAttribute(ee,"aria-activedescendant");const Yn=this.cellUID+this.focusedDate.getTime();this.renderer.setAttribute(ee,"aria-activedescendant",Yn)}parseSelectionToValue(ee){return ee=ee||[],"single"===this.selection?(0,a.k)(Je(ee)):ee.map(Ze=>(0,a.k)(Ze))}performSelection(ee,Ze){const Yn=this.selectionService.performSelection({date:ee,modifiers:Ze,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=Yn.rangePivot,this.handleDateChange({selectedDates:Yn.selectedDates,focusedDate:ee})}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(Wi),e.Y36(Hc),e.Y36(e.SBq),e.Y36(Ka),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(e.zs3),e.Y36(gd),e.Y36(jr),e.Y36(o.oQ),e.Y36(cs),e.Y36(gc,8))},Yt.\u0275cmp=e.Xpm({type:Yt,selectors:[["kendo-calendar"]],contentQueries:function(ee,Ze,Yn){if(1&ee&&(e.Suo(Yn,Ps,5),e.Suo(Yn,Qi,5),e.Suo(Yn,vo,5),e.Suo(Yn,pi,5),e.Suo(Yn,to,5),e.Suo(Yn,Ro,5),e.Suo(Yn,Sr,5),e.Suo(Yn,dd,5)),2&ee){let Bo;e.iGM(Bo=e.CRH())&&(Ze.cellTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.monthCellTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.yearCellTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.decadeCellTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.centuryCellTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.weekNumberTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.headerTitleTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.navigationItemTemplate=Bo.first)}},viewQuery:function(ee,Ze){if(1&ee&&(e.Gf(mc,5),e.Gf(Fl,5),e.Gf(Ia,5)),2&ee){let Yn;e.iGM(Yn=e.CRH())&&(Ze.navigationView=Yn.first),e.iGM(Yn=e.CRH())&&(Ze.monthView=Yn.first),e.iGM(Yn=e.CRH())&&(Ze.multiViewCalendar=Yn.first)}},hostVars:6,hostBindings:function(ee,Ze){2&ee&&(e.uIk("id",Ze.widgetId)("aria-disabled",Ze.ariaDisabled),e.ekj("k-week-number",Ze.weekNumber)("k-disabled",Ze.ariaDisabled))},inputs:{id:"id",focusedDate:"focusedDate",min:"min",max:"max",rangeValidation:"rangeValidation",selection:"selection",value:"value",disabled:"disabled",tabindex:"tabindex",tabIndex:"tabIndex",disabledDates:"disabledDates",navigation:"navigation",activeView:"activeView",bottomView:"bottomView",topView:"topView",type:"type",animateNavigation:"animateNavigation",weekNumber:"weekNumber",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"],navigationItemTemplateRef:["navigationItemTemplate","navigationItemTemplateRef"],size:"size"},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",activeViewDateChange:"activeViewDateChange",onBlur:"blur",onFocus:"focus",valueChange:"valueChange"},exportAs:["kendo-calendar"],features:[e._Bn([Wi,Gd,$d,dc,o.oQ,jr,{provide:o.mM,useValue:"kendo.calendar"},Ka,gd,cs]),e.TTD],decls:3,vars:2,consts:function(){let Ri,ee,Ze,Yn;return Ri=$localize`:kendo.calendar.today|The label for the today button in the calendar header:Today`,ee=$localize`:kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar:Navigate to previous view`,Ze=$localize`:kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar:Navigate to next view`,Yn=$localize`:kendo.calendar.parentViewButtonTitle|The title of the parent view button in the calendar header:Navigate to parent view`,[["kendoCalendarLocalizedMessages","","today",Ri,"prevButtonTitle",ee,"nextButtonTitle",Ze,"parentViewButtonTitle",Yn],[4,"ngIf"],[3,"activeView","focusedDate","min","max","templateRef","valueChange","pageChange",4,"ngIf"],[3,"activeView","isActive","id","cellTemplateRef","headerTitleTemplateRef","weekNumberTemplateRef","cellUID","min","max","focusedDate","weekNumber","selectedDates","tabIndex","disabled","todayButtonClick","cellClick","weekNumberCellClick","activeDateChange","pageChange","focusCalendar","blurCalendar"],[3,"resize"],[3,"activeView","focusedDate","min","max","templateRef","valueChange","pageChange"],[3,"views","min","max","id","disabled","isActive","tabIndex","activeView","bottomView","topView","weekNumber","animateNavigation","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","headerTitleTemplate","weekNumberTemplate","focusedDate","selection","value","disabledDates","activeViewChange","navigate","valueChange","focusCalendar","blur","blurEvent","keydown"],["multiviewcalendar",""],[3,"today","prevButtonTitle","nextButtonTitle","parentViewButtonTitle"]]},template:function(ee,Ze){1&ee&&(e.GkF(0,0),e.YNc(1,Xo,4,15,"ng-container",1),e.YNc(2,Lo,4,27,"ng-container",1)),2&ee&&(e.xp6(1),e.Q6J("ngIf","infinite"===Ze.type),e.xp6(1),e.Q6J("ngIf","classic"===Ze.type))},dependencies:[mc,Fl,j.NG,Ia,ih,id,Ut.O5],encapsulation:2,changeDetection:0}),Yt})();const oc=()=>(Yt,Ri)=>!Pr(Yt.value)&&Ri?{incompleteDate:!0}:null;var Hd=function(Yt){return Yt[Yt.Up=0]="Up",Yt[Yt.Down=1]="Down",Yt[Yt.None=2]="None",Yt}(Hd||{});let Rc=(()=>{class Yt extends o.Z1{}return Yt.\u0275fac=function(){let Ri;return function(Ze){return(Ri||(Ri=e.n5z(Yt)))(Ze||Yt)}}(),Yt.\u0275dir=e.lG2({type:Yt,selectors:[["kendo-dateinput-messages-base"]],inputs:{decrement:"decrement",increment:"increment"},features:[e.qOj]}),Yt})(),_d=(()=>{class Yt extends Rc{constructor(ee){super(),this.service=ee}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(o.oQ))},Yt.\u0275dir=e.lG2({type:Yt,selectors:[["","kendoDateInputLocalizedMessages",""]],features:[e._Bn([{provide:Rc,useExisting:(0,e.Gpc)(()=>Yt)}]),e.qOj]}),Yt})(),rc=0;const vr=/year|month|<day>/,Jr=/hour|minute|second|millisecond/,ns=/d|M|H|h|m|s/,ye=Yt=>Yt.replace(/^0*/,"");class bt{constructor(){this.symbols=""}}class be{constructor(Ri,ee,Ze,Yn,Bo=68){if(this.intl=Ri,this.formatPlaceholder=ee,this.format=Ze,this.twoDigitYearMax=Bo,this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.leadingZero=null,this.monthNames=null,this.typedMonthPart="",this.value=(0,u._)(new Date),this.knownParts="adHhmMsSEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",S:"S",y:"y"},(0,H.s)(Tt),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),Yn)this.value=(0,a.k)(Yn);else{this.value=(0,u._)(new Date);const $r=this.dateFormatString(this.value,this.format).symbols;for(let ea=0;ea<$r.length;ea++)this.setExisting($r[ea],!1)}}hasValue(){return this.intl.splitDateFormat(this.format).reduce((ee,Ze)=>ee||"literal"!==Ze.type&&"dayperiod"!==Ze.type&&this.getExisting(Ze.pattern[0]),!1)}shouldNormalizeCentury(){return this.intl.splitDateFormat(this.format).some(Ri=>"yy"===Ri.pattern)}getDateObject(){for(let Ri=0;Ri<this.knownParts.length;Ri++)if(!this.getExisting(this.knownParts[Ri]))return null;return(0,a.k)(this.value)}getTextAndFormat(Ri){return this.merge(this.intl.formatDate(this.value,Ri),this.dateFormatString(this.value,Ri))}getExisting(Ri){switch(Ri){case"y":return this.year;case"M":case"L":return this.month;case"d":return this.date;case"E":return this.date&&this.month&&this.year;case"h":case"H":return this.hours;case"m":return this.minutes;case"s":return this.seconds;case"S":return this.milliseconds;default:return!0}}setExisting(Ri,ee){switch(Ri){case"y":this.year=ee,!1===ee&&this.value.setFullYear(2e3);break;case"M":this.month=ee,!1===ee&&this.value.setMonth(0);break;case"d":this.date=ee;break;case"h":case"H":this.hours=ee;break;case"m":this.minutes=ee;break;case"s":this.seconds=ee;break;case"S":this.milliseconds=ee;break;default:return}}modifyPart(Ri,ee){let Ze=(0,a.k)(this.value);switch(Ri){case"y":Ze.setFullYear(Ze.getFullYear()+ee);break;case"M":Ze=(0,A.z)(this.value,ee);break;case"d":case"E":Ze.setDate(Ze.getDate()+ee);break;case"h":case"H":Ze.setHours(Ze.getHours()+ee);break;case"m":Ze.setMinutes(Ze.getMinutes()+ee);break;case"s":Ze.setSeconds(Ze.getSeconds()+ee);break;case"S":Ze.setMilliseconds(Ze.getMilliseconds()+ee);break;case"a":Ze.setHours(Ze.getHours()+12*ee)}this.shouldNormalizeCentury()&&(Ze=this.normalizeCentury(Ze)),Ze.getFullYear()>0&&(this.setExisting(Ri,!0),this.value=Ze)}parsePart(Ri,ee,Ze){if(!ee)return this.resetLeadingZero(),this.setExisting(Ri,!1),{value:null,switchToNext:!1};const Yn=this.intl.formatDate(this.value,this.format),Bo=this.dateFormatString(this.value,this.format),$r=Bo.symbols;let ea=!1,Fa="",el="",bl="";for(let Wd=0;Wd<Yn.length;Wd++)$r[Wd]===Ri?(el+=this.getExisting(Ri)?Yn[Wd]:"0",ea=!0):ea?bl+=Yn[Wd]:Fa+=Yn[Wd];const Ql=el.length-3;let Pl=null;const Zl=this.matchMonth(ee),kc=this.matchDayPeriod(ee,Ri),Eu="0"===ee,Td=(this.leadingZero||{})[Ri]||0;Eu?0===parseInt(Ze?ee:el+ee,10)&&!this.isAbbrMonth(Bo.partMap,Ri)&&this.incrementLeadingZero(Ri):this.resetLeadingZero();for(let Wd=Math.max(0,Ql);Wd<=el.length;Wd++){let tc=Ze?ee:el.substring(Wd)+ee;"S"===Ri&&Ze&&(tc=Array($r.match(/S+(\1)/)[0].length).join("0")+tc);const tf=parseInt(tc,10);if(Pl=this.intl.parseDate(Fa+tc+bl,this.format),!Pl&&!isNaN(tf)&&!isNaN(parseInt(ee,10))){if("M"===Ri&&!Zl){const zl=tf-1;zl>-1&&zl<12&&(Pl=(0,a.k)(this.value),Pl.setMonth(zl),Pl.getMonth()!==zl&&(Pl=(0,C.q)((0,A.z)(Pl,-1))))}"y"===Ri&&(Pl=(0,_.B)(parseInt(tc,10),this.month?this.value.getMonth():0,this.date?this.value.getDate():1,this.hours?this.value.getHours():0,this.minutes?this.value.getMinutes():0,this.seconds?this.value.getSeconds():0,this.milliseconds?this.value.getMilliseconds():0),this.date&&Pl.getDate()!==this.value.getDate()&&(Pl=(0,C.q)((0,A.z)(Pl,-1))))}if(Pl){const zl=this.partPattern(Bo.partMap,Ri).pattern,Uu=this.intl.parseDate(`${Fa}${this.peek(tc,zl)}${bl}`,this.format),Xc=this.patternLength(zl)||zl.length,Tc=Td+(ye(tc)||ee).length>=Xc,vh=null===Uu||Tc;return this.shouldNormalizeCentury()&&(Pl=this.normalizeCentury(Pl)),this.value=Pl,this.setExisting(Ri,!0),{value:this.value,switchToNext:vh}}}return Zl&&(Pl=this.intl.parseDate(Fa+Zl+bl,this.format),Pl)?(this.value=Pl,this.setExisting(Ri,!0),{value:this.value,switchToNext:!1}):kc&&(Pl=this.intl.parseDate(Fa+kc+bl,this.format),Pl)?(this.value=Pl,{value:this.value,switchToNext:!0}):(Eu&&this.setExisting(Ri,!1),{value:null,switchToNext:!1})}resetLeadingZero(){const Ri=null!==this.leadingZero;return this.setLeadingZero(null),Ri}setLeadingZero(Ri){this.leadingZero=Ri}normalizeCentury(Ri){if(!Pr(Ri))return Ri;const ee=!Pr(Yt=Ri)||isNaN(Yt.getTime())?0:Number(Yt.getFullYear().toString().slice(-2)),Ze=this.getNormalizedCenturyBase(ee);var Yt;return Ke(Ri,Ze+ee)}incrementLeadingZero(Ri){const ee=this.leadingZero||{};ee[Ri]=(ee[Ri]||0)+1,this.leadingZero=ee}isAbbrMonth(Ri,ee){const Ze=this.partPattern(Ri,ee);return"month"===Ze.type&&Ze.names}partPattern(Ri,ee){return Ri.filter(Ze=>-1!==Ze.pattern.indexOf(ee))[0]}peek(Ri,ee){const Ze=ye(Ri)+"0";return new Array(Math.max(ee.length-Ze.length,0)).fill("0").join("")+Ze}matchMonth(Ri){if(this.typedMonthPart+=Ri.toLowerCase(),!this.monthNames)return"";for(;this.typedMonthPart.length>0;){for(let Ze=0;Ze<this.monthNames.length;Ze++)if(0===this.monthNames[Ze].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[Ze];const ee=parseInt(this.typedMonthPart,10);if(ee>=1&&ee<=12&&ee.toString()===this.typedMonthPart)return this.monthNames[ee-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""}matchDayPeriod(Ri,ee){const Ze=String(Ri).toLowerCase();if("a"===ee&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(Ze))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(Ze))return this.dayPeriods.pm}return""}allFormatedMonths(){const Ri=this.intl.splitDateFormat(this.format);for(let ee=0;ee<Ri.length;ee++)if("month"===Ri[ee].type&&Ri[ee].names)return this.intl.dateFormatNames(Ri[ee].names);return null}allDayPeriods(){const Ri=this.intl.splitDateFormat(this.format);for(let ee=0;ee<Ri.length;ee++)if("dayperiod"===Ri[ee].type&&Ri[ee].names)return this.intl.dateFormatNames(Ri[ee].names);return null}patternLength(Ri){return"y"===Ri[0]?4:ns.test(Ri)?2:0}dateFormatString(Ri,ee){const Ze=this.intl.splitDateFormat(ee),Yn=[],Bo=[];for(let ea=0;ea<Ze.length;ea++){let Fa=this.intl.formatDate(Ri,{pattern:Ze[ea].pattern}).length;for(;Fa>0;)Yn.push(this.symbols[Ze[ea].pattern[0]]||"_"),Bo.push(Ze[ea]),Fa--}const $r=new bt;return $r.symbols=Yn.join(""),$r.partMap=Bo,$r}merge(Ri,ee){let Ze="",Yn="";const Bo=ee.symbols;for(let $r=Bo.length-1;$r>=0;$r--)if(-1===this.knownParts.indexOf(Bo[$r])||this.getExisting(Bo[$r]))Ze=Ri[$r]+Ze,Yn=Bo[$r]+Yn;else{const ea=Bo[$r];for(;$r>=0&&ea===Bo[$r];)$r--;for($r++,Ze=this.leadingZero&&this.leadingZero[ea]?"0"+Ze:this.dateFieldName(ee.partMap[$r])+Ze;Yn.length<Ze.length;)Yn=Bo[$r]+Yn}return[Ze,Yn]}dateFieldName(Ri){const ee=this.formatPlaceholder||"wide";return ee[Ri.type]?ee[Ri.type]:"formatPattern"===ee?Ri.pattern:this.intl.dateFieldName(Object.assign(Ri,{nameType:ee}))}getNormalizedCenturyBase(Ri){return Ri>this.twoDigitYearMax?1900:2e3}}let st=(()=>{class Yt{constructor(ee,Ze,Yn,Bo,$r,ea,Fa,el){this.cdr=ee,this.intl=Ze,this.renderer=Yn,this.wrapper=Bo,this.ngZone=$r,this.injector=ea,this.localization=Fa,this.pickerService=el,this.caretAltUpIcon=An.fRI,this.caretAltDownIcon=An.M7i,this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.role="textbox",this.ariaReadOnly=!1,this.format="d",this.placeholder=null,this.steps={},this.rangeValidation=!0,this.autoCorrect=!1,this.incompleteDateValidation=!1,this.twoDigitYearMax=68,this.spinners=!1,this.valueChange=new e.vpe,this.valueUpdate=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.arrow=Hd,this.arrowDirection=Hd.None,this.formatSections={date:!1,time:!1},this.hasMousedown=!1,this.focusedPriorToMousedown=!1,this.isDateIncomplete=!1,this.currentValue="",this.currentFormat="",this.backspace=!1,this.resetSegmentValue=!0,this.minValidator=Ot,this.maxValidator=Ot,this.incompleteValidator=Ot,this._value=null,this._active=!1,this._focusableId="dateinput-"+rc++,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=Ot,this.onControlTouched=Ot,this.onValidatorChange=Ot,this._size=qt,this._rounded=Vt,this._fillMode=bn,this.subs=new se.w0,this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService?this.pickerService.input=this:this.ariaReadOnly=null}set focusableId(ee){ee&&(this._focusableId=ee)}get focusableId(){return this._focusableId}set pickerType(ee){ee&&(this.focusableId=`${ee}-${rc}`)}set tabIndex(ee){this.tabindex=ee}get tabIndex(){return this.tabindex}set value(ee){this.verifyValue(ee),(!this.autoCorrect||Ui(ee,this.min,this.max))&&(this._value=(0,a.k)(ee),this.valueUpdate.emit((0,a.k)(ee)))}get value(){return this._value}set size(ee){this.renderer.removeClass(this.wrapper.nativeElement,Ci("input",this.size));const Ze=ee||qt;"none"!==Ze&&this.renderer.addClass(this.wrapper.nativeElement,Ci("input",Ze)),this._size=Ze}get size(){return this._size}set rounded(ee){this.renderer.removeClass(this.wrapper.nativeElement,xi(this.rounded));const Ze=ee||Vt;"none"!==Ze&&this.renderer.addClass(this.wrapper.nativeElement,xi(Ze)),this._rounded=Ze}get rounded(){return this._rounded}set fillMode(ee){this.renderer.removeClass(this.wrapper.nativeElement,Wn("input",this.fillMode));const Ze=ee||bn;"none"!==Ze&&(this.renderer.addClass(this.wrapper.nativeElement,Wn("input",Ze)),this.spinners&&this.spinup&&this.spindown&&(this.setSpinnerFill(this.spinup.nativeElement,Ze,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,Ze,this.fillMode))),this._fillMode=Ze}get fillMode(){return this._fillMode}get wrapperClass(){return!0}get disabledClass(){return this.disabled}get inputElement(){return this.dateInput?this.dateInput.nativeElement:null}get inputValue(){return(this.inputElement||{}).value||""}get isActive(){return this._active}set isActive(ee){if(this._active=ee,this.wrapper&&!Pr(this.pickerService)){const Ze=this.wrapper.nativeElement;ee?this.renderer.addClass(Ze,"k-focus"):this.renderer.removeClass(Ze,"k-focus")}}get formControl(){return this.injector.get(n.a5,null)?.control||null}get inputFormat(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"}get displayFormat(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"}isEmpty(){return!this.currentValue||!String(this.currentValue).trim()}containsElement(ee){return!!Ms(ee,Ze=>Ze===this.wrapper.nativeElement)}ngOnInit(){this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(),this.subs.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.ngControl=this.injector.get(n.a5,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.ngZone.runOutsideAngular(()=>{this.bindEvents()}))}ngOnChanges(ee){this.verifyRange(),(ee.min||ee.max||ee.rangeValidation||ee.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?rs(this.min):Ot,this.maxValidator=this.rangeValidation?Os(this.max):Ot,this.incompleteValidator=this.incompleteDateValidation?oc():Ot,this.onValidatorChange()),ee.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());const Ze=this.kendoDate&&(0,d.X)(this.value,this.kendoDate.getDateObject());(ee.format||!Ze||ee.placeholder)&&(this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive))}ngAfterViewInit(){this.setComponentClasses();const ee=this.injector.get(n.a5,null)?.control;this.control=ee,this.subs.add(this.formControl?.statusChanges.subscribe(()=>this.setAriaInvalid())),this.setAriaInvalid()}ngOnDestroy(){this.subs.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach(ee=>ee())}setAriaInvalid(){this.control&&this.renderer.setAttribute(this.inputElement,"aria-invalid",this.control.invalid?"true":"false")}validate(ee){return this.minValidator(ee)||this.maxValidator(ee)||this.incompleteValidator(ee,this.isDateIncomplete)}registerOnValidatorChange(ee){this.onValidatorChange=ee}setDisabledState(ee){this.disabled=ee,this.cdr.markForCheck()}writeValue(ee){this.verifyValue(ee),this.kendoDate=this.getKendoDate(ee),this.value=(0,a.k)(ee),this.updateElementValue(this.isActive)}triggerChange(){const ee=this.kendoDate.getDateObject();+ee!=+this.value&&(this.value=(0,a.k)(ee),this.notify())}notify(){this.ngZone.run(()=>{this.onControlChange((0,a.k)(this.value)),this.valueChange.emit((0,a.k)(this.value))})}registerOnChange(ee){this.onControlChange=ee}registerOnTouched(ee){this.onControlTouched=ee}focus(){const ee=this.inputElement;ee&&(ee.focus(),this.selectDateSegment(this.currentFormat[0]))}blur(){const ee=this.inputElement;ee&&ee.blur()}handleButtonClick(ee){this.arrowDirection=Hd.None,this.modifyDateSegmentValue(ee)}modifyDateSegmentValue(ee){const Ze=this.caret(),Yn=this.currentFormat[Ze[0]];let Bo=(this.steps||{})[this.symbolsMap[Yn]]||1;if("S"===Yn&&!this.steps.millisecond){const $r=(Yt=>{const Ri=Yt&&Yt.match(/S+(\1)/);return Ri?Ri[0].length:0})(this.inputFormat);Bo=(Yt=>Math.pow(10,3-Yt))($r)}this.kendoDate.modifyPart(Yn,ee*Bo),this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.selectDateSegment(Yn),this.updateIncompleteValidationStatus()}switchDateSegment(ee){const Ze=this.caret();if(this.kendoDate.resetLeadingZero()&&this.updateElementValue(this.isActive),Ze[0]<Ze[1]&&this.currentFormat[Ze[0]]!==this.currentFormat[Ze[1]-1])return this.selectNearestSegment(ee>0?Ze[0]:Ze[1]-1),this.resetSegmentValue=!0,!0;const Yn=this.currentFormat[Ze[0]];let Bo=Ze[0]+ee;for(;Bo>0&&Bo<this.currentFormat.length&&(this.currentFormat[Bo]===Yn||"_"===this.currentFormat[Bo]);)Bo+=ee;if("_"===this.currentFormat[Bo])return!1;let $r=Bo;for(;$r>=0&&$r<this.currentFormat.length&&this.currentFormat[$r]===this.currentFormat[Bo];)$r+=ee;return Bo>$r&&($r+1!==Ze[0]||Bo+1!==Ze[1])?(this.caret($r+1,Bo+1),this.resetSegmentValue=!0,!0):Bo<$r&&(Bo!==Ze[0]||$r!==Ze[1])&&(this.caret(Bo,$r),this.resetSegmentValue=!0,!0)}selectDateSegment(ee){let Ze=-1,Yn=0;for(let Bo=0;Bo<this.currentFormat.length;Bo++)this.currentFormat[Bo]===ee&&(Yn=Bo+1,-1===Ze&&(Ze=Bo));Ze<0&&(Ze=0),this.caret(0,0),this.caret(Ze,Yn)}handleClick(){if(this.hasMousedown=!1,this.isActive){const ee=this.inputElement.selectionStart!==this.inputElement.selectionEnd,Ze=Pr(this.placeholder)&&!this.kendoDate.hasValue()&&!this.focusedPriorToMousedown,Bo=!ee&&Ze?0:this.caret()[0];this.selectNearestSegment(Bo)}}handleDragAndDrop(ee){ee.preventDefault()}handleMousedown(){this.hasMousedown=!0,this.focusedPriorToMousedown=this.isActive}handleFocus(ee){this.renderer.removeAttribute(this.inputElement,"aria-activedescendant"),this.isActive=!0,this.updateElementValue(),this.hasMousedown||this.caret(0,this.inputValue.length),this.hasMousedown=!1,(0,j.g$)(this.onFocus)?this.ngZone.run(()=>{this.emitFocus(ee)}):this.emitFocus(ee)}handleBlur(ee){this.isActive=!1,this.resetSegmentValue=!0,this.kendoDate.resetLeadingZero(),this.updateElementValue(),(0,j.g$)(this.onBlur)||Ur(this.ngControl)?this.ngZone.run(()=>{this.onControlTouched(),this.emitBlur(ee),this.cdr.markForCheck()}):this.emitBlur(ee)}getKendoDate(ee){const{leadingZero:Ze}=this.kendoDate||{},Yn=new be(this.intl,this.formatPlaceholder,this.inputFormat,ee,this.twoDigitYearMax);return Yn.setLeadingZero(this.isActive?Ze:null),Yn}dateSymbolMap(){return this.intl.splitDateFormat(this.inputFormat).reduce((Ze,Yn)=>(Ze[Yn.pattern[0]]=Yn.type,Ze),{})}updateElementValue(ee){const Ze=this.caret()[0],Bo=this.kendoDate.getTextAndFormat(this.isActive?this.inputFormat:this.displayFormat),$r=!this.isActive&&Pr(this.placeholder)&&!this.kendoDate.hasValue(),ea=this.inputElement;this.currentFormat=Bo[1],this.currentValue=$r?"":Bo[0],this.renderer.setProperty(ea,"value",this.currentValue),ea.placeholder!==this.placeholder&&this.renderer.setProperty(ea,"placeholder",this.placeholder),ee&&this.selectNearestSegment(Ze)}caret(ee,Ze=ee){const Yn=void 0!==ee;let Bo=[ee,ee];const $r=this.inputElement;if(!Yn||!this.disabled&&!this.readonly){try{void 0!==$r.selectionStart&&(Yn&&((0,j.X_)()&&document.activeElement!==$r&&$r.focus(),$r.setSelectionRange(ee,Ze)),Bo=[$r.selectionStart,$r.selectionEnd])}catch{Bo=[]}return Bo}}selectNearestSegment(ee){for(let Ze=ee,Yn=ee-1;Ze<this.currentFormat.length||Yn>=0;Ze++,Yn--){if(Ze<this.currentFormat.length&&"_"!==this.currentFormat[Ze])return void this.selectDateSegment(this.currentFormat[Ze]);if(Yn>=0&&"_"!==this.currentFormat[Yn])return void this.selectDateSegment(this.currentFormat[Yn])}}verifyRange(){if((0,e.X6Q)()&&!Sn(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-max.")}verifyValue(ee){if((0,e.X6Q)()&&ee&&!(ee instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/#toc-using-with-json for possible resolution.")}putDateInRange(){const ee=this.kendoDate.getDateObject(),Ze=Vn(ee,this.min,this.max);this.autoCorrect&&!(0,d.X)(ee,Ze)&&(this.kendoDate=this.getKendoDate(Ze))}updateFormatSections(){this.formatSections=this.intl.splitDateFormat(this.inputFormat).reduce(({date:ee,time:Ze},Yn)=>({date:ee||vr.test(Yn.type),time:Ze||Jr.test(Yn.type)}),{date:!1,time:!1})}intlChange(){this.updateFormatSections(),this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive)}updateOnPaste(){let ee=this.intl.parseDate(this.inputValue,this.inputFormat)||this.value;Pr(ee)&&this.kendoDate.shouldNormalizeCentury()&&(ee=this.kendoDate.normalizeCentury(ee));const Ze=+ee!=+this.value;this.writeValue(ee),Ze&&this.notify()}bindEvents(){const ee=this.wrapper.nativeElement,Ze=this.handleMouseWheel.bind(this);this.domEvents.push(this.renderer.listen(ee,"DOMMouseScroll",Ze),this.renderer.listen(ee,"mousewheel",Ze),this.renderer.listen(ee,"keydown",this.handleKeydown.bind(this)),this.renderer.listen(ee,"paste",this.handlePaste.bind(this)),this.renderer.listen(ee,"input",this.handleInput.bind(this)))}handleMouseWheel(ee){this.disabled||this.readonly||!this.isActive||((ee=window.event||ee).shiftKey?this.switchDateSegment((ee.wheelDelta||-ee.detail)>0?-1:1):this.modifyDateSegmentValue((ee.wheelDelta||-ee.detail)>0?1:-1),ee.returnValue=!1,ee.preventDefault&&ee.preventDefault(),ee.stopPropagation&&ee.stopPropagation())}handlePaste(){this.paste=!0}handleKeydown(ee){if(!(this.disabled||this.readonly||ee.altKey||ee.ctrlKey||ee.metaKey)){if(ee.keyCode===j.R8.Backspace)return void(this.backspace=!0);switch(ee.keyCode){case j.R8.ArrowDown:this.modifyDateSegmentValue(-1);break;case j.R8.ArrowUp:this.modifyDateSegmentValue(1);break;case j.R8.ArrowRight:this.switchDateSegment(1);break;case j.R8.ArrowLeft:this.switchDateSegment(-1);break;case j.R8.Home:this.selectNearestSegment(0);break;case j.R8.End:this.selectNearestSegment(this.inputValue.length);break;default:return}ee.preventDefault()}}handleInput(){if(this.disabled||this.readonly)return;if(this.paste)return this.updateOnPaste(),void(this.paste=!1);const ee=((Yt,Ri,ee,Ze)=>{const Yn=Ze+Yt.length-ee.length,Bo=Yt[Yn],$r=Yt.substring(0,Ze+Yt.length-ee.length),ea=ee.substring(0,Ze),Fa=[];if($r===ea&&Ze>0)return Fa.push([Ri[Ze-1],ea[Ze-1]]),Fa;if(0===$r.indexOf(ea)&&(0===ea.length||Ri[ea.length-1]!==Ri[ea.length])){let el="";1===ea.length&&Fa.push([Ri[0],ea[0]]);for(let bl=ea.length;bl<$r.length;bl++)Ri[bl]!==el&&"_"!==Ri[bl]&&(el=Ri[bl],Fa.push([el,""]));return Fa}if(0===ea.indexOf($r)||"_"===Ri[Ze-1]){let el=Ri[0];for(let bl=Math.max(0,$r.length-1);bl<Ri.length;bl++)if("_"!==Ri[bl]){el=Ri[bl];break}return[[el,ea[Ze-1]]]}return" "===ea[ea.length-1]||ea[ea.length-1]===Bo&&"_"===Ri[Yn]?[[Ri[Ze-1],"_"]]:[[Ri[Ze-1],ea[Ze-1]]]})(this.currentValue,this.currentFormat,this.inputValue,this.caret()[0]),Ze=1===ee.length&&"_"===ee[0][1];let Yn=!1;if(!Ze){let Bo;for(let ea=0;ea<ee.length;ea++)Bo=this.kendoDate.parsePart(ee[ea][0],ee[ea][1],this.resetSegmentValue),Yn=Bo.switchToNext;const $r=this.kendoDate.getDateObject();this.value&&$r&&!this.formatSections.date&&(this.kendoDate=this.getKendoDate(vn(this.value,$r)))}this.resetSegmentValue=!1,this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.updateIncompleteValidationStatus(),ee.length&&"_"!==ee[0][0]&&this.selectDateSegment(ee[0][0]),(Yn||Ze)&&this.switchDateSegment(1),this.backspace&&this.switchDateSegment(-1),this.backspace=!1}emitFocus(ee){this.onFocus.emit(),this.pickerService&&this.pickerService.onFocus.emit(ee)}emitBlur(ee){this.onBlur.emit(),this.pickerService&&this.pickerService.onBlur.emit(ee)}updateIncompleteValidationStatus(){const ee=this.isDateIncomplete;this.isDateIncomplete=this.kendoDate.hasValue()&&null===this.value,ee!==this.isDateIncomplete&&this.incompleteDateValidation&&(Pr(this.ngControl)&&!Pr(this.pickerService)?(this.cdr.markForCheck(),this.ngZone.run(()=>this.onValidatorChange())):Pr(this.pickerService)&&this.pickerService.dateCompletenessChange.emit())}setSpinnerFill(ee,Ze,Yn){"none"!==Yn&&(this.renderer.removeClass(ee,`k-button-${Yn}`),this.renderer.removeClass(ee,`k-button-${Yn}-base`)),this.renderer.addClass(ee,`k-button-${Ze}`),this.renderer.addClass(ee,`k-button-${Ze}-base`)}setComponentClasses(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,Ci("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,xi(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,Wn("input",this.fillMode)),this.spinners&&"none"!==this.fillMode&&(this.setSpinnerFill(this.spinup.nativeElement,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,this.fillMode))}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(e.sBO),e.Y36(z.aJ),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.zs3),e.Y36(o.oQ),e.Y36(gc,8))},Yt.\u0275cmp=e.Xpm({type:Yt,selectors:[["kendo-dateinput"]],viewQuery:function(ee,Ze){if(1&ee&&(e.Gf(or,7),e.Gf(xr,5),e.Gf(Nr,5)),2&ee){let Yn;e.iGM(Yn=e.CRH())&&(Ze.dateInput=Yn.first),e.iGM(Yn=e.CRH())&&(Ze.spinup=Yn.first),e.iGM(Yn=e.CRH())&&(Ze.spindown=Yn.first)}},hostVars:6,hostBindings:function(ee,Ze){2&ee&&e.ekj("k-input",Ze.wrapperClass)("k-dateinput",Ze.wrapperClass)("k-disabled",Ze.disabledClass)},inputs:{focusableId:"focusableId",pickerType:"pickerType",disabled:"disabled",readonly:"readonly",title:"title",tabindex:"tabindex",role:"role",ariaReadOnly:"ariaReadOnly",tabIndex:"tabIndex",format:"format",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",steps:"steps",max:"max",min:"min",rangeValidation:"rangeValidation",autoCorrect:"autoCorrect",incompleteDateValidation:"incompleteDateValidation",twoDigitYearMax:"twoDigitYearMax",value:"value",spinners:"spinners",isPopupOpen:"isPopupOpen",hasPopup:"hasPopup",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",valueUpdate:"valueUpdate",onFocus:"focus",onBlur:"blur"},exportAs:["kendo-dateinput"],features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>Yt),multi:!0},{provide:n.Cf,useExisting:(0,e.Gpc)(()=>Yt),multi:!0},{provide:o.mM,useValue:"kendo.dateinput"},{provide:j.GX,useExisting:(0,e.Gpc)(()=>Yt)},o.oQ]),e.TTD],decls:4,vars:21,consts:function(){let Ri,ee;return Ri=$localize`:kendo.dateinput.increment|The label for the **Increment** button in the DateInput:Increase value`,ee=$localize`:kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput:Decrease value`,[["kendoDateInputLocalizedMessages","","increment",Ri,"decrement",ee],["autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"k-input-inner",3,"id","title","tabindex","disabled","readonly","placeholder","kendoEventsOutsideAngular","scope"],["dateInput",""],["class","k-input-spinner k-spin-button",3,"mousedown",4,"ngIf"],[1,"k-input-spinner","k-spin-button",3,"mousedown"],["tabindex","-1",1,"k-spinner-increase","k-button","k-icon-button",3,"title","mousedown","mouseleave","click"],["spinup",""],["name","caret-alt-up","innerCssClass","k-button-icon",3,"svgIcon"],["tabindex","-1",1,"k-spinner-decrease","k-button","k-icon-button",3,"title","click","mousedown","mouseleave"],["spindown",""],["name","caret-alt-down","innerCssClass","k-button-icon",3,"svgIcon"]]},template:function(ee,Ze){1&ee&&(e.GkF(0,0),e._UZ(1,"input",1,2),e.YNc(3,as,7,10,"span",3)),2&ee&&(e.xp6(1),e.Q6J("id",Ze.focusableId)("title",Ze.title)("tabindex",Ze.tabindex)("disabled",Ze.disabled)("readonly",Ze.readonly)("placeholder",Ze.placeholder)("kendoEventsOutsideAngular",e.Hh0(13,ji,Ze.handleClick,Ze.handleFocus,Ze.handleMousedown,Ze.handleMousedown,Ze.handleDragAndDrop,Ze.handleDragAndDrop,Ze.handleBlur))("scope",Ze),e.uIk("role",Ze.role)("aria-readonly",Ze.ariaReadOnly)("aria-expanded",Ze.isPopupOpen)("aria-haspopup",Ze.hasPopup),e.xp6(2),e.Q6J("ngIf",Ze.spinners))},dependencies:[fn.ZS,_d,j.nV,Ut.O5],encapsulation:2,changeDetection:0}),Yt})();class ei{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}const _o=new e.OlP("dateinputs-touch-enabled"),gr=Yt=>Ri=>Yt&&Ri.value&&Yt(Ri.value)?{disabledDate:!0}:null;let ds=(()=>{class Yt extends Cu{constructor(ee){super(),this.service=ee}get override(){return!0}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(o.oQ))},Yt.\u0275cmp=e.Xpm({type:Yt,selectors:[["kendo-calendar-messages"]],features:[e._Bn([{provide:Cu,useExisting:(0,e.Gpc)(()=>Yt)}]),e.qOj],decls:0,vars:0,template:function(ee,Ze){},encapsulation:2}),Yt})(),us=(()=>{class Yt extends o.Z1{}return Yt.\u0275fac=function(){let Ri;return function(Ze){return(Ri||(Ri=e.n5z(Yt)))(Ze||Yt)}}(),Yt.\u0275dir=e.lG2({type:Yt,selectors:[["kendo-datepicker-messages-base"]],inputs:{today:"today",toggle:"toggle",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[e.qOj]}),Yt})(),zs=(()=>{class Yt extends us{constructor(ee){super(),this.service=ee}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(o.oQ))},Yt.\u0275dir=e.lG2({type:Yt,selectors:[["","kendoDatePickerLocalizedMessages",""]],features:[e._Bn([{provide:us,useExisting:(0,e.Gpc)(()=>Yt)}]),e.qOj]}),Yt})(),dt=(()=>{class Yt{constructor(ee,Ze,Yn,Bo,$r,ea,Fa,el,bl,Ql){this.zone=ee,this.localization=Ze,this.cdr=Yn,this.popupService=Bo,this.wrapper=$r,this.renderer=ea,this.injector=Fa,this.pickerService=el,this.disabledDatesService=bl,this.touchEnabled=Ql,this.calendarIcon=An.CHk,this.activeView=$i[$i.month],this.bottomView=$i[$i.month],this.topView=$i[$i.century],this.calendarType="infinite",this.animateCalendarNavigation=!1,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this._navigation=!0,this.min=(0,a.k)(Yi),this.max=(0,a.k)(co),this.incompleteDateValidation=!1,this.focusedDate=null,this.format="d",this.twoDigitYearMax=68,this.placeholder=null,this.tabindex=0,this.title="",this.rangeValidation=!0,this.disabledDatesValidation=!0,this.weekNumber=!1,this.adaptiveMode="none",this.valueChange=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.open=new e.vpe,this.close=new e.vpe,this.wrapperClasses=!0,this.xIcon=An.FZE,this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=Ot,this.onControlTouched=Ot,this.onValidatorChange=Ot,this.minValidateFn=Ot,this.maxValidateFn=Ot,this.disabledDatesValidateFn=Ot,this.incompleteValidator=Ot,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],this._size=qt,this._rounded=Vt,this._fillMode=bn,(0,H.s)(Tt),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.sameDateSelected.subscribe(this.handleSameSelection.bind(this))),this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)))}set cellTemplateRef(ee){this.cellTemplate=ee}set monthCellTemplateRef(ee){this.monthCellTemplate=ee}set yearCellTemplateRef(ee){this.yearCellTemplate=ee}set decadeCellTemplateRef(ee){this.decadeCellTemplate=ee}set centuryCellTemplateRef(ee){this.centuryCellTemplate=ee}set weekNumberTemplateRef(ee){this.weekNumberTemplate=ee}set headerTitleTemplateRef(ee){this.headerTitleTemplate=ee}set navigationItemTemplateRef(ee){this.navigationItemTemplate=ee}set popupSettings(ee){this._popupSettings=Object.assign({},{animate:!0},ee)}get popupSettings(){return this._popupSettings}set navigation(ee){this._navigation=ee}get navigation(){if(!this.isAdaptive)return this._navigation}set value(ee){this.verifyValue(ee),this._value=(0,a.k)(ee)}get value(){return this._value}set tabIndex(ee){this.tabindex=ee}get tabIndex(){return this.tabindex}set disabledDates(ee){this._disabledDates=ee,this.disabledDatesService.initialize(ee)}get disabledDates(){return this._disabledDates}set subtitle(ee){this._subtitle=ee}get subtitle(){return this._subtitle||this.placeholder}set size(ee){this.renderer.removeClass(this.wrapper.nativeElement,Ci("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,Ci("button",this.size));const Ze=ee||qt;"none"!==Ze&&(this.renderer.addClass(this.wrapper.nativeElement,Ci("input",Ze)),this.renderer.addClass(this.toggleButton.nativeElement,Ci("button",Ze))),this._size=Ze}get size(){return this._size}set rounded(ee){this.renderer.removeClass(this.wrapper.nativeElement,xi(this.rounded));const Ze=ee||Vt;"none"!==Ze&&this.renderer.addClass(this.wrapper.nativeElement,xi(Ze)),this._rounded=Ze}get rounded(){return this._rounded}set fillMode(ee){this.renderer.removeClass(this.wrapper.nativeElement,Wn("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,Wn("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,`k-button-${this.fillMode}-base`);const Ze=ee||bn;"none"!==Ze&&(this.renderer.addClass(this.toggleButton.nativeElement,Wn("button",Ze)),this.renderer.addClass(this.toggleButton.nativeElement,`k-button-${Ze}-base`),this.renderer.addClass(this.wrapper.nativeElement,Wn("input",Ze))),this._fillMode=Ze}get fillMode(){return this._fillMode}get disabledClass(){return this.disabled}get popupUID(){return this.calendar?.popupId}get isActive(){return this._active}set isActive(ee){if(this._active=ee,!this.wrapper)return;const Ze=this.wrapper.nativeElement;ee?this.renderer.addClass(Ze,"k-focus"):this.renderer.removeClass(Ze,"k-focus")}get show(){return this._show}set show(ee){ee&&(this.disabled||this.readonly)||(ee||this._show&&((0,j.g$)(this.close)||(0,j.g$)(this.open))?this.zone.run(()=>{const Yn=new ei;!this._show&&ee?this.open.emit(Yn):this._show&&!ee&&this.close.emit(Yn),!Yn.isDefaultPrevented()&&this.toggleCalendar(ee)}):this.toggleCalendar(ee))}get inputElement(){return this.wrapper.nativeElement.querySelector("input")}isEmpty(){return!this.value&&this.dateInput.isEmpty()}ngOnInit(){this.localizationChangeSubscription=this.localization.changes.subscribe(()=>this.cdr.markForCheck()),this.control=this.injector.get(n.a5,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.zone.runOutsideAngular(()=>{this.bindEvents()}))}ngAfterViewInit(){this.setComponentClasses(),this.renderer.setAttribute(this.actionSheet.element.nativeElement,"style","--kendo-actionsheet-height: 60vh; --kendo-actionsheet-max-height: none")}ngOnChanges(ee){this.verifySettings(),(ee.min||ee.max||ee.rangeValidation||ee.disabledDatesValidation||ee.disabledDates||ee.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?rs(this.min):Ot,this.maxValidateFn=this.rangeValidation?Os(this.max):Ot,this.disabledDatesValidateFn=this.disabledDatesValidation?gr(this.disabledDatesService.isDateDisabled):Ot,this.incompleteValidator=this.incompleteDateValidation?oc():Ot,this.onValidatorChange()),(!this.focusableId||ee.focusableId)&&(this.focusableId=this.dateInput?.focusableId)}ngOnDestroy(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe(),this.domEvents.forEach(ee=>ee()),this.pickerSubscriptions.unsubscribe()}get isOpen(){return this.show}writeValue(ee){this.verifyValue(ee),this.value=(0,a.k)(ee),this.cdr.markForCheck(),!ee&&this.dateInput&&(this.dateInput.placeholder=this.placeholder,this.dateInput.writeValue(ee))}registerOnChange(ee){this.onControlChange=ee}registerOnTouched(ee){this.onControlTouched=ee}setDisabledState(ee){this.disabled=ee,this.cdr.markForCheck()}validate(ee){return this.minValidateFn(ee)||this.maxValidateFn(ee)||this.disabledDatesValidateFn(ee)||this.incompleteValidator(ee,this.dateInput&&this.dateInput.isDateIncomplete)}registerOnValidatorChange(ee){this.onValidatorChange=ee}handleActionSheetCollapse(){this.cdr.markForCheck()}handleActionSheetClick(ee){ee.preventDefault()}focus(){this.dateInput.focus()}blur(){(this.calendar||this.dateInput).blur()}toggle(ee){this.disabled||this.readonly||this.resolvedPromise.then(()=>{this.toggleCalendar(void 0===ee?!this.show:ee)})}handleIconClick(ee){this.disabled||this.readonly||(ee.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.markForCheck())}handleDateInputClick(){this.windowSize=ii(),this.isAdaptive&&(this.show=!0)}handleMousedown(ee){ee.preventDefault()}handleChange(ee){this.cdr.markForCheck(),this.focusInput(),this.value=ee,this.show=!1,this.onControlChange((0,a.k)(ee)),this.valueChange.emit((0,a.k)(ee))}handleInputChange(ee){this.handleChange(this.dateInput.formatSections.time?ee:this.mergeTime(ee))}get popupClasses(){return["k-calendar-container","k-group","k-reset"].concat(this.popupSettings.popupClass||[])}get appendTo(){const{appendTo:ee}=this.popupSettings;if(ee&&"root"!==ee)return"component"===ee?this.container:ee}get dateInput(){return this.pickerService.input}get calendar(){return this.pickerService.calendar}get isAdaptiveModeEnabled(){return"auto"===this.adaptiveMode}get isAdaptive(){return this.isAdaptiveModeEnabled&&"large"!==this.windowSize}onResize(){!this.isOpen||this.windowSize===ii()||(this.actionSheet.expanded?this.toggleActionSheet(!1):this.togglePopup(!1),this.windowSize=ii())}mergeTime(ee){return this.value&&ee?vn(ee,this.value):ee}handleKeydown(ee){const{altKey:Ze,shiftKey:Yn,keyCode:Bo,target:$r}=ee;Bo===j.R8.Escape&&(this.show=!1),Ze&&(Bo===j.R8.ArrowDown&&!this.show&&(this.show=!0),Bo===j.R8.ArrowUp&&(this.show=!1)),Bo===j.R8.Tab&&this.show&&this.calendar.isActive&&((Yt,Ri,ee)=>!!Pr(Ri)&&("infinite"===Yt||"classic"===Yt&&ee&&Ri.classList.contains("k-calendar-table")||!ee&&Ri.classList.contains("k-calendar-table")))(this.calendarType,$r,Yn)&&(this.dateInput.focus(),this.show=!1)}toggleCalendar(ee){this.windowSize=ii(),this.isAdaptive?this.toggleActionSheet(ee):this.togglePopup(ee),this.toggleFocus()}togglePopup(ee){if(ee!==this._show)if(this._show=ee,ee){const Ze=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:Ze},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:Ze},popupClass:this.popupClasses,positionMode:"absolute"}),this.setAriaActiveDescendant(),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.renderer.setAttribute(this.dateInput?.inputElement,"aria-controls",this.popupUID),this.subscription=this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.show=!1)}else this.popupRef.close(),this.popupRef=null,this.subscription.unsubscribe(),this.ariaActiveDescendantSubscription.unsubscribe(),this.renderer.removeAttribute(this.dateInput?.inputElement,"aria-controls"),this.renderer.removeAttribute(this.dateInput?.inputElement,"aria-activedescendant"),this.cdr.detectChanges()}toggleActionSheet(ee){ee!==this._show&&(ee&&!this.isOpen?(this.actionSheet.toggle(),this.updateActionSheetAdaptiveAppearance(),this.setAriaActiveDescendant(),this.actionSheet.element.nativeElement.setAttribute("id",this.popupUID),this.renderer.setAttribute(this.dateInput?.inputElement,"aria-controls",this.popupUID)):!ee&&this.isOpen&&(this.actionSheet.toggle(),this.ariaActiveDescendantSubscription.unsubscribe(),this.renderer.removeAttribute(this.dateInput?.inputElement,"aria-activedescendant"),this.renderer.removeAttribute(this.dateInput?.inputElement,"aria-controls")),this._show=ee)}updateActionSheetAdaptiveAppearance(){let ee,Ze;this.actionSheet&&(ee=this.actionSheet.element.nativeElement.querySelector(".k-actionsheet"),Ze=this.actionSheet.element.nativeElement.querySelector(".k-child-animation-container"),"medium"===this.windowSize?(this.renderer.removeClass(ee,"k-actionsheet-fullscreen"),this.renderer.removeStyle(Ze,"height")):"small"===this.windowSize&&(this.renderer.addClass(ee,"k-actionsheet-fullscreen"),this.renderer.setStyle(Ze,"height","100%")),this.renderer.addClass(ee,"k-adaptive-actionsheet"),this.renderer.addClass(ee,"k-actionsheet-bottom"),this.renderer.setStyle(Ze,"bottom","0px"))}setAriaActiveDescendant(){this.ariaActiveDescendantSubscription=("infinite"===this.calendar.type?this.calendar.monthView.focusedCellChange:this.calendar.multiViewCalendar.viewList.focusedCellChange).subscribe(Ze=>this.renderer.setAttribute(this.dateInput?.inputElement,"aria-activedescendant",Ze))}focusInput(){this.touchEnabled||this.dateInput.focus()}toggleFocus(){this.isActive&&(this.show?(this.calendar||this.cdr.detectChanges(),this.calendar&&this.calendar.focus()):this.touchEnabled?this.dateInput.isActive||this.handleBlur():this.dateInput.focus())}verifySettings(){if((0,e.X6Q)()&&!Sn(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-max.")}verifyValue(ee){if((0,e.X6Q)()&&ee&&!(ee instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json for possible resolution.")}bindEvents(){this.domEvents.push(this.renderer.listen(this.wrapper.nativeElement,"keydown",this.handleKeydown.bind(this))),en()&&(this.windowBlurSubscription=(0,fe.R)(window,"blur").subscribe(this.handleWindowBlur.bind(this)))}handleFocus(){this.isActive||(this.isActive=!0,(0,j.g$)(this.onFocus)&&this.zone.run(()=>{this.onFocus.emit()}))}handleWindowBlur(){!this.isOpen||this.actionSheet.expanded||(this.show=!1)}handleBlur(ee){const Ze=ee&&gs(ee),Bo=this.actionSheet&&(this.actionSheet.element.nativeElement.contains(ee&&ee.target)||this.actionSheet.element.nativeElement.contains(Ze));Ze&&(this.dateInput.containsElement(Ze)||this.calendar&&this.calendar.containsElement(Ze)||Bo)||((0,j.g$)(this.onBlur)||this.show&&(0,j.g$)(this.close)||Ur(this.control)?this.zone.run(()=>{this.blurComponent(),this.cdr.markForCheck()}):this.blurComponent())}blurComponent(){this.isActive=!1,this.show=!1,this.cdr.detectChanges(),this.onControlTouched(),this.onBlur.emit()}handleSameSelection(){this.show&&(this.focusInput(),this.show=!1)}handleDateCompletenessChange(){this.cdr.markForCheck(),this.zone.run(()=>this.onValidatorChange())}setComponentClasses(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,Ci("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,Ci("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,xi(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,Wn("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,Wn("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,`k-button-${this.fillMode}-base`))}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(e.R0b),e.Y36(o.oQ),e.Y36(e.sBO),e.Y36(yi.qL),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.zs3),e.Y36(gc),e.Y36(jr),e.Y36(_o,8))},Yt.\u0275cmp=e.Xpm({type:Yt,selectors:[["kendo-datepicker"]],contentQueries:function(ee,Ze,Yn){if(1&ee&&(e.Suo(Yn,Ps,5),e.Suo(Yn,Qi,5),e.Suo(Yn,vo,5),e.Suo(Yn,pi,5),e.Suo(Yn,to,5),e.Suo(Yn,Ro,5),e.Suo(Yn,Sr,5),e.Suo(Yn,dd,5)),2&ee){let Bo;e.iGM(Bo=e.CRH())&&(Ze.cellTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.monthCellTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.yearCellTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.decadeCellTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.centuryCellTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.weekNumberTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.headerTitleTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.navigationItemTemplate=Bo.first)}},viewQuery:function(ee,Ze){if(1&ee&&(e.Gf(Fo,7,e.s_b),e.Gf(rt,7),e.Gf(ai,7),e.Gf(Gn,5)),2&ee){let Yn;e.iGM(Yn=e.CRH())&&(Ze.container=Yn.first),e.iGM(Yn=e.CRH())&&(Ze.popupTemplate=Yn.first),e.iGM(Yn=e.CRH())&&(Ze.toggleButton=Yn.first),e.iGM(Yn=e.CRH())&&(Ze.actionSheet=Yn.first)}},hostVars:6,hostBindings:function(ee,Ze){2&ee&&e.ekj("k-datepicker",Ze.wrapperClasses)("k-input",Ze.wrapperClasses)("k-disabled",Ze.disabledClass)},inputs:{focusableId:"focusableId",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"],navigationItemTemplateRef:["navigationItemTemplate","navigationItemTemplateRef"],activeView:"activeView",bottomView:"bottomView",topView:"topView",calendarType:"calendarType",animateCalendarNavigation:"animateCalendarNavigation",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",popupSettings:"popupSettings",navigation:"navigation",min:"min",max:"max",incompleteDateValidation:"incompleteDateValidation",focusedDate:"focusedDate",value:"value",format:"format",twoDigitYearMax:"twoDigitYearMax",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",tabindex:"tabindex",tabIndex:"tabIndex",disabledDates:"disabledDates",title:"title",subtitle:"subtitle",rangeValidation:"rangeValidation",disabledDatesValidation:"disabledDatesValidation",weekNumber:"weekNumber",size:"size",rounded:"rounded",fillMode:"fillMode",adaptiveMode:"adaptiveMode"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur",open:"open",close:"close"},exportAs:["kendo-datepicker"],features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>Yt),multi:!0},{provide:n.Cf,useExisting:(0,e.Gpc)(()=>Yt),multi:!0},{provide:j.GX,useExisting:(0,e.Gpc)(()=>Yt)},o.oQ,gc,jr,{provide:o.mM,useValue:"kendo.datepicker"}]),e.TTD],decls:16,vars:31,consts:function(){let Ri,ee,Ze,Yn;return Ri=$localize`:kendo.datepicker.today|The label for the today button in the calendar header:Today`,ee=$localize`:kendo.datepicker.toggle|The title of the toggle button in the datepicker component:Toggle calendar`,Ze=$localize`:kendo.datepicker.prevButtonTitle|The title of the previous button in the Classic calendar:Navigate to previous view`,Yn=$localize`:kendo.datepicker.nextButtonTitle|The title of the next button in the Classic calendar:Navigate to next view`,[["kendoDatePickerLocalizedMessages","","today",Ri,"toggle",ee,"prevButtonTitle",Ze,"nextButtonTitle",Yn],["pickerType","datepicker","hasPopup","grid","fillMode","none","rounded","none","size","none",3,"role","isPopupOpen","disabled","readonly","ariaReadOnly","tabindex","title","focusableId","format","twoDigitYearMax","formatPlaceholder","placeholder","min","max","incompleteDateValidation","value","valueChange","click"],["input",""],["type","button",1,"k-input-button","k-button","k-icon-button",3,"tabindex","kendoEventsOutsideAngular","scope"],["toggleButton",""],["name","calendar","innerCssClass","k-button-icon",3,"svgIcon"],["container",""],["popupTemplate",""],[3,"resize",4,"ngIf"],[3,"kendoEventsOutsideAngular","scope","titleId","overlayClick","collapse"],["actionSheet",""],["kendoActionSheetTemplate",""],["calendarTemplate",""],[4,"ngTemplateOutlet"],[3,"resize"],[1,"k-actionsheet-titlebar"],[1,"k-actionsheet-titlebar-group","k-hbox"],[1,"k-actionsheet-title"],[1,"k-text-center"],[1,"k-actionsheet-subtitle","k-text-center"],[1,"k-actionsheet-actions"],["kendoButton","","icon","x","fillMode","flat","aria-hidden","true","size","large","innerCssClass","k-button-icon",3,"svgIcon","tabIndex","click"],[1,"k-actionsheet-content","!k-overflow-hidden"],[3,"size","type","min","max","navigation","animateNavigation","activeView","bottomView","topView","weekNumber","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate","navigationItemTemplate","focusedDate","value","kendoEventsOutsideAngular","scope","disabledDates","valueChange"],["calendar",""],[3,"today","prevButtonTitle","nextButtonTitle"]]},template:function(ee,Ze){1&ee&&(e.GkF(0,0),e.TgZ(1,"kendo-dateinput",1,2),e.NdJ("valueChange",function(Bo){return Ze.handleInputChange(Bo)})("click",function(){return Ze.handleDateInputClick()}),e.qZA(),e.TgZ(3,"button",3,4),e._UZ(5,"kendo-icon-wrapper",5),e.qZA(),e.GkF(6,null,6),e.YNc(8,wr,1,1,"ng-template",null,7,e.W1O),e.YNc(10,bs,1,0,"kendo-resize-sensor",8),e.TgZ(11,"kendo-actionsheet",9,10),e.NdJ("overlayClick",function(){return Ze.show=!1})("collapse",function(){return Ze.handleActionSheetCollapse()}),e.YNc(13,ms,11,6,"ng-template",11),e.qZA(),e.YNc(14,Ea,3,28,"ng-template",null,12,e.W1O)),2&ee&&(e.xp6(1),e.Q6J("role","combobox")("isPopupOpen",Ze.show)("disabled",Ze.disabled)("readonly",Ze.readonly||Ze.readOnlyInput)("ariaReadOnly",Ze.readonly)("tabindex",Ze.tabindex)("title",Ze.title)("focusableId",Ze.focusableId)("format",Ze.format)("twoDigitYearMax",Ze.twoDigitYearMax)("formatPlaceholder",Ze.formatPlaceholder)("placeholder",Ze.placeholder)("min",Ze.min)("max",Ze.max)("incompleteDateValidation",Ze.incompleteDateValidation)("value",Ze.value),e.xp6(2),e.Q6J("tabindex",-1)("kendoEventsOutsideAngular",e.WLB(26,Sa,Ze.handleIconClick,Ze.handleMousedown))("scope",Ze),e.uIk("title",Ze.localization.get("toggle"))("aria-label",Ze.localization.get("toggle")),e.xp6(2),e.Q6J("svgIcon",Ze.calendarIcon),e.xp6(5),e.Q6J("ngIf",Ze.isAdaptiveModeEnabled),e.xp6(1),e.Q6J("kendoEventsOutsideAngular",e.VKq(29,Ji,Ze.handleActionSheetClick))("scope",Ze)("titleId",null==Ze.calendar?null:Ze.calendar.headerId))},dependencies:[st,fn.ZS,j.NG,nn._G,$n.r0,$c,ds,zs,j.nV,Ut.tP,Ut.O5,nn.DL],encapsulation:2,changeDetection:0}),Yt})();const Br=Nt("div"),es=Nt("ul"),Ks=Nt("li"),xa=Nt("span"),ha=()=>xa("hour","k-title k-timeselector-title"),ml=()=>Br([es([Ks("<span>02</span>","k-item")],"k-reset")],"k-time-container k-flex k-content k-scrollable"),yl=Yt=>[Yt?Br([Br("button","k-button k-button-lg")],"k-datetime-buttongroup"):null,Br([Br([xa("title","k-title")],"k-time-header"),Br([ha(),Br([ml()],"k-time-list")],"k-time-list-wrapper")],"k-timeselector k-timeselector-lg")],Cc=(Yt=!1,Ri,ee)=>(0,j.X_)()?Yt?Br([Br([Br([Br([Br([],"k-i-x k-button-icon k-icon")],"k-icon-wrapper-host")],"k-button k-icon-button k-button-lg")],"k-actionsheet-titlebar"),Br([ee?Br([...yl(ee)],"k-datetime-wrap k-time-tab"):yl(ee)[1]],"k-actionsheet-content"),Br([Br("button","k-button k-button-lg")],"k-adaptive-actionsheet k-actionsheet-footer")],"k-actionsheet k-adaptive-actionsheet "+("small"===Ri?"k-actionsheet-fullscreen":""),{height:"small"===Ri?"100%":"60vh",left:"-10000px",position:"absolute",top:0}):Br([ha(),Br([ml()],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}):null;let Bc=(()=>{class Yt{get windowSize(){return ii()}ensureHeights(){void 0===this.timeListHeight&&this.calculateHeights()}calculateHeights(ee){if(!(0,j.X_)())return;let Ze,Yn;this.isAdaptiveEnabled&&"large"!==this.windowSize?(Yn=document.body,Ze=Yn.appendChild(Cc(!0,this.windowSize,this.isDateTimePicker))):(Yn=ee&&ee.querySelector(".k-time-list-container")||document.body,Ze=Yn.appendChild(Cc())),this.timeListHeight=Ze.querySelector(".k-scrollable").getBoundingClientRect().height,this.itemHeight=Ze.querySelector("li").getBoundingClientRect().height,Yn.removeChild(Ze)}isActive(ee){return!(!(0,j.X_)()||!ee)&&(ee.nativeElement||ee)===document.activeElement}}return Yt.\u0275fac=function(ee){return new(ee||Yt)},Yt.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const xu=Ri=>Ri%24,ku=(Yt,Ri)=>xu(24+Yt-Ri),Lc=Yt=>(Ri,ee)=>ee&&(0,u._)(Ri).getTime()!==(0,u._)(ee).getTime()?ze(Ri,Yt):Ri,ul=Lc(0),Mc=Lc(23);let uf=(()=>{class Yt{constructor(ee){this.intl=ee,this.boundRange=!1,this.insertUndividedMax=!1}apply(ee,Ze){return ze(ee,Ze.getHours())}configure(ee){const{boundRange:Ze=this.boundRange,insertUndividedMax:Yn=this.insertUndividedMax,min:Bo=this.min,max:$r=this.max,part:ea,step:Fa=this.step}=ee;this.boundRange=Ze,this.insertUndividedMax=Yn,this.toListItem=el=>{const bl=ze(vi,el);return{text:this.intl.formatDate(bl,ea.pattern),value:bl}},this.min=Bo,this.max=$r,this.step=Fa}data(ee){const[Ze]=this.range(ee),Yn=((Yt,Ri)=>ee=>xu(Yt+ee*Ri))(Ze,this.step),$r=Hn(0,this.countFromMin(ee)).map(ea=>this.toListItem(Yn(ea)));return this.addLast($r),this.addMissing($r,ee),$r}isRangeChanged(ee,Ze){return!(0,d.X)(this.min,ee)||!(0,d.X)(this.max,Ze)}limitRange(ee,Ze,Yn){return this.boundRange?[ul(ee,Yn),Mc(Ze,Yn)]:[ee,Ze]}total(ee){const Ze=this.insertUndividedMax&&this.isLastMissing(ee)?1:0,Yn=this.isMissing(ee)?1:0;return this.countFromMin(ee)+Yn+Ze}selectedIndex(ee){return Math.ceil(this.divideByStep(ee))}valueInList(ee){return!ee||this.insertUndividedMax&&this.lastHour(ee)===ee.getHours()||!this.isMissing(ee)}addLast(ee,Ze){return this.insertUndividedMax&&this.isLastMissing(Ze)&&ee.push(this.toListItem(this.lastHour(Ze))),ee}addMissing(ee,Ze){if(this.valueInList(Ze))return ee;const Yn=this.toListItem(Ze.getHours());return ee.splice(this.selectedIndex(Ze),0,Yn),ee}countFromMin(ee){const[Ze,Yn]=this.range(ee);return Math.floor(ku(Yn,Ze)/this.step)+1}isMissing(ee){return!!ee&&this.selectedIndex(ee)!==this.divideByStep(ee)}isLastMissing(ee){return this.isMissing(ze(this.max,this.lastHour(ee)))}divideByStep(ee){return ku(ee.getHours(),this.min.getHours())/this.step}lastHour(ee){return this.range(ee)[1]}range(ee){const[Ze,Yn]=this.limitRange(this.min,this.max,ee);return[Ze.getHours(),Yn.getHours()]}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.LFG(z.aJ))},Yt.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const hf=Ri=>Ri%60,Fu=(Yt,Ri)=>hf(60+Yt-Ri),Ch=Yt=>(Ri,ee)=>ee&&Ri.getHours()!==ee.getHours()?St(Ri,Yt):Ri,mh=Ch(0),Sd=Ch(59);let vd=(()=>{class Yt{constructor(ee){this.intl=ee,this.insertUndividedMax=!1}apply(ee,Ze){return St(ee,Ze.getMinutes())}configure(ee){const{insertUndividedMax:Ze=this.insertUndividedMax,min:Yn=this.min,max:Bo=this.max,part:$r,step:ea=this.step}=ee;this.insertUndividedMax=Ze,this.toListItem=Fa=>{const el=St(vi,Fa);return{text:this.intl.formatDate(el,$r.pattern),value:el}},this.min=Yn,this.max=Bo,this.step=ea}data(ee){const[Ze]=this.range(ee),Yn=((Yt,Ri)=>ee=>hf(Yt+ee*Ri))(Ze,this.step),$r=Hn(0,this.countFromMin(ee)).map(ea=>this.toListItem(Yn(ea)));return this.addLast($r),this.addMissing($r,ee),$r}isRangeChanged(ee,Ze){return!(0,d.X)(this.min,ee)||!(0,d.X)(this.max,Ze)}limitRange(ee,Ze,Yn){return[mh(ee,Yn),Sd(Ze,Yn)]}total(ee){const Ze=this.insertUndividedMax&&this.isLastMissing(ee)?1:0,Yn=this.isMissing(ee)?1:0;return this.countFromMin(ee)+Yn+Ze}selectedIndex(ee){return Math.ceil(this.divideByStep(ee))}valueInList(ee){return!ee||this.insertUndividedMax&&this.lastMinute(ee)===ee.getMinutes()||!this.isMissing(ee)}addLast(ee,Ze){return this.insertUndividedMax&&this.isLastMissing(Ze)&&ee.push(this.toListItem(this.lastMinute(Ze))),ee}addMissing(ee,Ze){if(this.valueInList(Ze))return ee;const Yn=this.toListItem(Ze.getMinutes());return ee.splice(this.selectedIndex(Ze),0,Yn),ee}countFromMin(ee){const[Ze,Yn]=this.range(ee);return Math.floor(Fu(Yn,Ze)/this.step)+1}isMissing(ee){return!!ee&&this.selectedIndex(ee)!==this.divideByStep(ee)}isLastMissing(ee){return this.isMissing(St(this.max,this.lastMinute(ee)))}divideByStep(ee){return Fu(ee.getMinutes(),this.min.getMinutes())/this.step}lastMinute(ee){return this.range(ee)[1]}range(ee){const[Ze,Yn]=this.limitRange(this.min,this.max,ee);return[Ze.getMinutes(),Yn.getMinutes()]}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.LFG(z.aJ))},Yt.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const Iu=Ri=>Ri%60,xh=(Yt,Ri)=>Iu(60+Yt-Ri),Xh=Yt=>(Ri,ee)=>!ee||Ri.getHours()===ee.getHours()&&Ri.getMinutes()===ee.getMinutes()?Ri:it(Ri,Yt),Sh=Xh(0),pf=Xh(59);let Nc=(()=>{class Yt{constructor(ee){this.intl=ee,this.insertUndividedMax=!1}apply(ee,Ze){return it(ee,Ze.getSeconds())}configure(ee){const{insertUndividedMax:Ze=this.insertUndividedMax,min:Yn=this.min,max:Bo=this.max,part:$r,step:ea=this.step}=ee;this.insertUndividedMax=Ze,this.toListItem=Fa=>{const el=it(vi,Fa);return{text:this.intl.formatDate(el,$r.pattern),value:el}},this.min=Yn,this.max=Bo,this.step=ea}data(ee){const[Ze]=this.range(ee),Yn=((Yt,Ri)=>ee=>Iu(Yt+ee*Ri))(Ze,this.step),$r=Hn(0,this.countFromMin(ee)).map(ea=>this.toListItem(Yn(ea)));return this.addLast($r),this.addMissing($r,ee),$r}isRangeChanged(ee,Ze){return!(0,d.X)(this.min,ee)||!(0,d.X)(this.max,Ze)}limitRange(ee,Ze,Yn){return[Sh(ee,Yn),pf(Ze,Yn)]}total(ee){const Ze=this.insertUndividedMax&&this.isLastMissing(ee)?1:0,Yn=this.isMissing(ee)?1:0;return this.countFromMin(ee)+Yn+Ze}selectedIndex(ee){return Math.ceil(this.divideByStep(ee))}valueInList(ee){return!ee||this.insertUndividedMax&&this.lastSecond(ee)===ee.getSeconds()||!this.isMissing(ee)}divideByStep(ee){return xh(ee.getSeconds(),this.min.getSeconds())/this.step}addLast(ee,Ze){return this.insertUndividedMax&&this.isLastMissing(Ze)&&ee.push(this.toListItem(this.lastSecond(Ze))),ee}addMissing(ee,Ze){if(this.valueInList(Ze))return ee;const Yn=this.toListItem(Ze.getSeconds());return ee.splice(this.selectedIndex(Ze),0,Yn),ee}countFromMin(ee){const[Ze,Yn]=this.range(ee);return Math.floor(xh(Yn,Ze)/this.step)+1}isMissing(ee){return!!ee&&this.selectedIndex(ee)!==this.divideByStep(ee)}isLastMissing(ee){return this.isMissing(it(this.max,this.lastSecond(ee)))}lastSecond(ee){return this.range(ee)[1]}range(ee){const[Ze,Yn]=this.limitRange(this.min,this.max,ee);return[Ze.getSeconds(),Yn.getSeconds()]}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.LFG(z.aJ))},Yt.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const oh=Ri=>Ri%1e3,Nd=(Yt,Ri)=>oh(1e3+Yt-Ri),Pp=Yt=>(Ri,ee)=>!ee||Ri.getHours()===ee.getHours()&&Ri.getMinutes()===ee.getMinutes()&&Ri.getSeconds()===ee.getSeconds()?Ri:Dt(Ri,Yt),Ad=Pp(0),Gh=Pp(999);let uc=(()=>{class Yt{constructor(ee){this.intl=ee,this.insertUndividedMax=!1}apply(ee,Ze){return Dt(ee,Ze.getMilliseconds())}configure(ee){const{insertUndividedMax:Ze=this.insertUndividedMax,min:Yn=this.min,max:Bo=this.max,step:$r=this.step}=ee;this.insertUndividedMax=Ze,this.toListItem=ea=>{const Fa=Dt(vi,ea);return{text:this.intl.formatDate(Fa,"SSS"),value:Fa}},this.min=Yn,this.max=Bo,this.step=$r}data(ee){const[Ze]=this.range(ee),Yn=((Yt,Ri)=>ee=>oh(Yt+ee*Ri))(Ze,this.step),$r=Hn(0,this.countFromMin(ee)).map(ea=>this.toListItem(Yn(ea)));return this.addLast($r),this.addMissing($r,ee),$r}isRangeChanged(ee,Ze){return!(0,d.X)(this.min,ee)||!(0,d.X)(this.max,Ze)}limitRange(ee,Ze,Yn){return[Ad(ee,Yn),Gh(Ze,Yn)]}total(ee){const Ze=this.insertUndividedMax&&this.isLastMissing(ee)?1:0,Yn=this.isMissing(ee)?1:0;return this.countFromMin(ee)+Yn+Ze}selectedIndex(ee){return Math.ceil(this.divideByStep(ee))}valueInList(ee){return!ee||this.insertUndividedMax&&this.lastMillisecond(ee)===ee.getMilliseconds()||!this.isMissing(ee)}divideByStep(ee){return Nd(ee.getMilliseconds(),this.min.getMilliseconds())/this.step}addLast(ee,Ze){return this.insertUndividedMax&&this.isLastMissing(Ze)&&ee.push(this.toListItem(this.lastMillisecond(Ze))),ee}addMissing(ee,Ze){if(this.valueInList(Ze))return ee;const Yn=this.toListItem(Ze.getMilliseconds());return ee.splice(this.selectedIndex(Ze),0,Yn),ee}countFromMin(ee){const[Ze,Yn]=this.range(ee);return Math.floor(Nd(Yn,Ze)/this.step)+1}isMissing(ee){return!!ee&&this.selectedIndex(ee)!==this.divideByStep(ee)}isLastMissing(ee){return this.isMissing(Dt(this.max,this.lastMillisecond(ee)))}lastMillisecond(ee){return this.range(ee)[1]}range(ee){const[Ze,Yn]=this.limitRange(this.min,this.max,ee);return[Ze.getMilliseconds(),Yn.getMilliseconds()]}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.LFG(z.aJ))},Yt.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const rh=(Yt,Ri)=>{const ee=(0,a.k)(Yt);return ee.setHours(Ri),ee},sh=Yt=>null!==Yt&&Yt<12,Bf=(Yt,Ri,ee)=>!Ri&&!ee||Yt>=Ri&&Yt<=ee,Qd=(Yt,Ri,ee)=>!Ri&&!ee||Yt>=Ri||Yt<=ee;let Th=(()=>{class Yt{constructor(ee){this.intl=ee}apply(ee,Ze){const Yn=ee.getHours(),Bo=sh(Yn),$r=sh(Ze.getHours());if(Bo&&$r||!Bo&&!$r)return ee;const[ea,Fa=24]=this.normalizedRange();return rh(ee,Math.min(Math.max(ea,Yn+($r?-12:12)),Fa||24))}configure(ee){const{min:Ze=this.min,max:Yn=this.max,part:Bo=this.part}=ee;this.min=Ze,this.max=Yn,this.part=Bo}data(ee){const Ze=this.part.names;if(!Ze)return[];const Yn=[],[Bo,$r]=this.normalizedRange(),ea=this.intl.dateFormatNames(Ze);return sh(Bo)&&Yn.push({text:ea.am,value:rh(this.min,Bo)}),(Yt=>null!==Yt&&(!Yt||Yt>11))($r)&&Yn.push({text:ea.pm,value:rh(this.min,Math.max(12,$r))}),this.min.getHours()!==Bo?Yn.reverse():Yn}isRangeChanged(ee,Ze){return!1}limitRange(ee,Ze,Yn){return[ee,Ze]}total(){const[ee,Ze]=this.normalizedRange();return(ee||Ze)&&(ee>11||Ze<12)?1:2}selectedIndex(ee){if(!this.valueInList(ee))return-1;const Ze=Math.floor(ee.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?Ze:0===Ze?1:0}valueInList(ee){return(this.min.getHours()!==this.normalizedRange()[0]?Qd:Bf)(ee.getHours(),this.min.getHours(),this.max.getHours())}normalizedRange(){const ee=this.min.getHours(),Ze=this.max.getHours();return[Math.min(ee,Ze),Math.max(ee,Ze)]}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.LFG(z.aJ))},Yt.\u0275prov=e.Yz7({token:Yt,factory:Yt.\u0275fac}),Yt})();const Sl=()=>null,Rn={35:(Yt,Ri)=>Yt[Yt.length-1],36:(Yt,Ri)=>Yt[0],38:(Yt,Ri)=>Yt[Ri-1],40:(Yt,Ri)=>Yt[Ri+1]},Uo={dayperiod:Th,hour:uf,minute:vd,second:Nc,millisecond:uc};let je=(()=>{class Yt{constructor(ee,Ze,Yn,Bo,$r,ea){this.element=ee,this.injector=Ze,this.dom=Yn,this.renderer=Bo,this.zone=$r,this.localization=ea,this.min=(0,a.k)(vi),this.max=(0,a.k)(yr),this.step=1,this.disabled=!1,this.isLast=!1,this.valueChange=new e.vpe,this.tabOutLastPart=new e.vpe,this.componentClass=!0,this.animateToIndex=!0,this.isActive=!1,this.skip=0,this.total=60,this.data=[],this.indexToScroll=-1,this.domEvents=[]}get roleAttribute(){return"listbox"}get ariaLabel(){return this.localization.get(this.part?.type)}get tabIndex(){return this.disabled?void 0:0}get isDayPeriod(){return"dayperiod"===this.part?.type}get currentSelectedIndex(){return this.selectedIndex(this.value)}ngOnChanges(ee){ee.part&&(this.service=this.injector.get(Uo[this.part.type]),this.service.configure(this.serviceSettings()));const Ze=this.value,Yn=ee.value||{},[Bo,$r]=this.service.limitRange(this.min,this.max,Ze);(this.service.isRangeChanged(Bo,$r)||ee.min||ee.max||ee.step)&&(this.data=[],this.service.configure(this.serviceSettings({min:Bo,max:$r}))),(!this.data.length||this.hasMissingValue(Yn))&&(this.animateToIndex=!1,this.data=this.service.data(Ze)),this.animateToIndex=this.animateToIndex&&this.textHasChanged(Yn),this.total=this.service.total(Ze),this.indexToScroll=this.selectedIndex(Ze)}ngOnInit(){this.animateToIndex=!0,this.dom.ensureHeights(),this.itemHeight=this.dom.itemHeight,this.listHeight=this.dom.timeListHeight,this.topOffset=(this.listHeight-this.itemHeight)/2,this.bottomOffset=this.listHeight-this.itemHeight,this.topThreshold=.05*this.itemHeight,this.bottomThreshold=.95*this.itemHeight;const ee=`translateY(${this.topOffset}px)`;this.style={transform:ee,"-ms-transform":ee},this.element&&this.zone.runOutsideAngular(()=>{this.bindEvents()})}ngOnDestroy(){this.scrollSubscription.unsubscribe(),this.domEvents.forEach(ee=>ee())}ngAfterViewInit(){this.scrollOnce(ee=>this.virtualization.scrollToIndex(ee))}ngAfterViewChecked(){this.scrollOnce(ee=>{this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](ee),this.animateToIndex=!0})}getCurrentItem(){return this.indexToScroll>=0?this.data[this.indexToScroll]:null}handleChange(ee){const Ze=this.service.apply(this.value,ee.value);this.value.getTime()!==Ze.getTime()&&(this.indexToScroll=this.data.indexOf(ee),this.value=Ze,this.valueChange.emit(Ze))}handleItemClick(ee){const Ze=fs(ee.target,Yn=>Yn.hasAttribute("data-timelist-item-index"),this.element.nativeElement);if(Ze){const Yn=Ze.getAttribute("data-timelist-item-index");this.handleChange(this.data[Yn])}}focus(){this.element&&this.element.nativeElement.focus()}blur(){this.element&&this.element.nativeElement.blur()}itemOffset(ee){const Ze=this.selectedIndex(this.value),Yn=this.virtualization.activeIndex(),Bo=this.virtualization.itemOffset(Yn),$r=Math.abs(Math.ceil(ee)-Bo);if(Ze===Yn&&$r<2)return Bo;const ea=Ze>Yn;return ea&&$r>=this.bottomThreshold||!ea&&$r>this.topThreshold?this.virtualization.itemOffset(Yn+1):Bo}hasMissingValue({previousValue:ee,currentValue:Ze}){const Yn=ee&&!this.service.valueInList(ee),Bo=Ze&&!this.service.valueInList(Ze);return Yn||Bo}scrollOnce(ee){-1!==this.indexToScroll&&(ee(this.indexToScroll),this.indexToScroll=-1)}serviceSettings(ee){const Yn=Object.assign({},{boundRange:!1,insertUndividedMax:!1,max:this.max,min:this.min,part:this.part,step:this.step},ee);return Yn.boundRange="hour"!==Yn.part.type,Yn}selectedIndex(ee){return ee?this.service.selectedIndex(ee):-1}textHasChanged({previousValue:ee,currentValue:Ze}){if(!ee||!Ze)return!1;const Yn=this.data[this.selectedIndex(ee)],Bo=this.data[this.selectedIndex(Ze)];return Yn&&Bo&&Yn.text!==Bo.text}handleKeyDown(ee){ee.keyCode===j.R8.Tab&&!ee.shiftKey&&this.isLast&&(ee.preventDefault(),this.tabOutLastPart.emit());const Yn=(Rn[ee.keyCode]||Sl)(this.data,this.service.selectedIndex(this.value));Yn&&(this.handleChange(Yn),ee.preventDefault())}bindEvents(){this.scrollSubscription=this.virtualization.scroll$().pipe((0,Wt.b)(100),(0,xn.U)(Ze=>Ze.target.scrollTop),(0,xn.U)(Ze=>this.itemOffset(Ze)),(0,xn.U)(Ze=>this.virtualization.itemIndex(Ze))).subscribe(Ze=>{this.virtualization.scrollToIndex(Ze),this.handleChange(this.data[Ze])});const ee=this.element.nativeElement;this.domEvents.push(this.renderer.listen(ee,"mouseover",()=>!this.isActive&&this.focus()),this.renderer.listen(ee,"click",()=>this.focus()),this.renderer.listen(ee,"blur",()=>this.isActive=!1),this.renderer.listen(ee,"focus",()=>this.isActive=!0),this.renderer.listen(ee,"keydown",this.handleKeyDown.bind(this)))}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(e.SBq),e.Y36(e.zs3),e.Y36(Bc),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(o.oQ))},Yt.\u0275cmp=e.Xpm({type:Yt,selectors:[["kendo-timelist"]],viewQuery:function(ee,Ze){if(1&ee&&e.Gf(nu,7),2&ee){let Yn;e.iGM(Yn=e.CRH())&&(Ze.virtualization=Yn.first)}},hostVars:5,hostBindings:function(ee,Ze){2&ee&&(e.uIk("role",Ze.roleAttribute)("aria-label",Ze.ariaLabel)("tabindex",Ze.tabIndex),e.ekj("k-time-list",Ze.componentClass))},inputs:{min:"min",max:"max",part:"part",step:"step",disabled:"disabled",value:"value",isLast:"isLast"},outputs:{valueChange:"valueChange",tabOutLastPart:"tabOutLastPart"},features:[e.TTD],decls:3,vars:14,consts:[["role","presentation",1,"k-time-container",3,"skip","take","total","itemHeight","maxScrollDifference","topOffset","bottomOffset"],[1,"k-reset",3,"ngStyle","kendoEventsOutsideAngular","scope"],["class","k-item",4,"ngFor","ngForOf"],[1,"k-item"]],template:function(ee,Ze){1&ee&&(e.TgZ(0,"kendo-virtualization",0)(1,"ul",1),e.YNc(2,tr,3,4,"li",2),e.qZA()()),2&ee&&(e.Q6J("skip",Ze.skip)("take",Ze.total)("total",Ze.total)("itemHeight",Ze.itemHeight)("maxScrollDifference",Ze.listHeight)("topOffset",Ze.topOffset)("bottomOffset",Ze.bottomOffset),e.xp6(1),e.Q6J("ngStyle",Ze.style)("kendoEventsOutsideAngular",e.VKq(12,Ji,Ze.handleItemClick))("scope",Ze),e.uIk("role","presentation"),e.xp6(1),e.Q6J("ngForOf",Ze.data))},dependencies:[nu,Ut.PC,j.nV,Ut.sg],encapsulation:2}),Yt})();const Mn=(Yt,Ri)=>Yt.getHours()===Ri.getHours()&&Yt.getMinutes()===Ri.getMinutes(),Gi=(Yt,Ri)=>Mn(Yt,Ri)&&Yt.getSeconds()===Ri.getSeconds(),is=[{type:"hour",getter:Yt=>Yt.getHours(),minGetter:(Yt,Ri)=>Ri.getHours()},{type:"minute",getter:Yt=>Yt.getMinutes(),minGetter:(Yt,Ri)=>Mn(Yt,Ri)?Ri.getMinutes():0},{type:"second",getter:Yt=>Yt.getSeconds(),minGetter:(Yt,Ri)=>Gi(Yt,Ri)?Ri.getSeconds():0},{type:"millisecond",getter:Yt=>Yt.getMilliseconds(),minGetter:(Yt,Ri)=>((Yt,Ri)=>Gi(Yt,Ri)&&Yt.getMilliseconds()===Ri.getMilliseconds())(Yt,Ri)?Ri.getMilliseconds():0}],fd=(Yt=is,Ri=>Yt.map((Yt=>Ri=>Yt[Ri.type]?(Yt=>(Ri,ee)=>Yt(ee))(Ri.getter):(Yt=>(Ri,ee)=>Yt(Ri))(Ri.getter))((Yt=>Yt.reduce((Ri,ee)=>(Ri[ee.type]=ee.type,Ri),{}))(Ri)))),Su=(Yt=>Ri=>Yt.map(ee=>{const Ze=Ri[ee.type];return Ze?((Yt,Ri,ee)=>(Ze,Yn)=>{const Bo=Yt(Ze),$r=Ri(Ze,Yn),ea=Bo-$r;if(ea<0)return $r;const Fa=ea%ee;return Bo-Fa+(Fa>ee/2?ee:0)})(ee.getter,ee.minGetter,Ze):ee.getter}))(is),gm=Yt=>(Ri,ee)=>(Ri.setHours(...Yt.map(Ze=>Ze(Ri,ee))),Ri);var Yt;let gh=(()=>{class Yt extends o.Z1{}return Yt.\u0275fac=function(){let Ri;return function(Ze){return(Ri||(Ri=e.n5z(Yt)))(Ze||Yt)}}(),Yt.\u0275dir=e.lG2({type:Yt,selectors:[["kendo-timepicker-messages-base"]],inputs:{accept:"accept",acceptLabel:"acceptLabel",cancel:"cancel",cancelLabel:"cancelLabel",now:"now",nowLabel:"nowLabel",toggle:"toggle",hour:"hour",minute:"minute",second:"second",millisecond:"millisecond",dayperiod:"dayperiod"},features:[e.qOj]}),Yt})(),Ed=(()=>{class Yt extends gh{constructor(ee){super(),this.service=ee}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(o.oQ))},Yt.\u0275dir=e.lG2({type:Yt,selectors:[["","kendoTimeSelectorLocalizedMessages",""]],features:[e._Bn([{provide:gh,useExisting:(0,e.Gpc)(()=>Yt)}]),e.qOj]}),Yt})();const ep=(Yt,Ri,ee,Ze)=>Yt.length||!Ri.isActive?Yt:[{next:Ze[ee+1]||Ri,prev:Ze[ee-1]||Ri}];var Dh=function(Yt){return Yt[Yt.Left=0]="Left",Yt[Yt.Right=1]="Right",Yt}(Dh||{});let Vh=(()=>{class Yt{constructor(ee,Ze,Yn,Bo,$r,ea,Fa,el){this.localization=ee,this.cdr=Ze,this.element=Yn,this.intl=Bo,this.dom=$r,this.zone=ea,this.renderer=Fa,this.pickerService=el,this.format="t",this.min=(0,a.k)(sr),this.max=(0,a.k)(yr),this.cancelButton=!0,this.setButton=!0,this.nowButton=!0,this.disabled=!1,this.value=null,this.valueChange=new e.vpe,this.valueReject=new e.vpe,this.tabOutLastPart=new e.vpe,this.isActive=!1,this.showNowButton=!0,this._activeListIndex=-1,this._steps={},this.domEvents=[],this.pickerService&&(this.pickerService.timeSelector=this)}get disabledClass(){return this.disabled}set steps(ee){this._steps=ee||{}}get steps(){return this._steps}set current(ee){this._current=((Yt,Ri,ee)=>{if(!Yt||!Ri||!ee)return Yt;const{candidateValue:Ze,minValue:Yn,maxValue:Bo}=Xe(Yt,Ri,ee);return Ze<Yn?vn(Yt,Ri):Ze>Bo?vn(Yt,ee):Yt})(this.snapTime((0,a.k)(ee||vi),this.min),this.min,this.max),e.R0b.isInAngularZone()||this.cdr.detectChanges()}get current(){return this._current}get activeListIndex(){return this._activeListIndex}set activeListIndex(ee){if(this._activeListIndex=ee,this.timeListWrappers&&this.timeListWrappers.length&&(this.timeListWrappers.forEach(Ze=>{this.renderer.removeClass(Ze.nativeElement,"k-focus")}),ee>=0)){const Ze=this.listIndex(ee),Yn=this.timeListWrappers.toArray()[Ze];Yn&&this.renderer.addClass(Yn.nativeElement,"k-focus")}}ngOnInit(){this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.localization&&this.subscriptions.add(this.localization.changes.subscribe(()=>this.cdr.markForCheck())),this.renderer.addClass(this.element.nativeElement,"k-timeselector"),this.dom.isAdaptiveEnabled=this.isAdaptiveEnabled,this.dom.isDateTimePicker=this.isDateTimePicker,this.dom.calculateHeights(this.element.nativeElement),this.init(),this.bindEvents()}ngAfterViewInit(){this.subscriptions.add((0,fe.R)(this.timeListWrappers.first.nativeElement,"keydown").subscribe(ee=>{const{keyCode:Ze,shiftKey:Yn}=ee;Ze===j.R8.Tab&&Yn&&(ee.preventDefault(),this.renderer.removeClass(this.timeListWrappers.first.nativeElement,"k-focus"),this.accept.nativeElement.focus())})),this.subscriptions.add((0,fe.R)(this.timeListWrappers.last.nativeElement,"keydown").subscribe(ee=>{const{keyCode:Ze,shiftKey:Yn}=ee;Ze===j.R8.Tab&&!Yn&&this.renderer.removeClass(this.timeListWrappers.last.nativeElement,"k-focus")}))}ngOnChanges(ee){this.init()}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe(),this.pickerService&&(this.pickerService.timeSelector=null),this.domEvents.forEach(ee=>ee())}focus(){const ee=this.timeLists.first;ee&&ee.focus()}blur(){const ee=this.timeLists.first;ee&&ee.blur()}handleAccept(){this.handleChange(this.mergeValue((0,a.k)(this.value||(0,u._)(kn())),this.current))}handleNow(){this.current=kn(),this.handleChange(this.current),this.cdr.markForCheck()}handleReject(){this.current=this.value,this.valueReject.emit()}handleFocus(ee){this.isActive||(this.isActive=!0,this.emitFocus(ee))}handleListFocus(ee){const Ze=parseInt(ee.target.getAttribute("data-timelist-index"),10);this.activeListIndex=Ze,this.handleFocus(ee)}handleBlur(ee){const Ze=gs(ee);Ze&&this.containsElement(Ze)||(this.activeListIndex=-1,this.isActive=!1,this.emitBlur(ee))}containsElement(ee){return!!Ms(ee,Ze=>Ze===this.element.nativeElement)}handleTabOut(ee){const{keyCode:Ze,shiftKey:Yn}=ee;Ze===j.R8.Tab&&!Yn&&(ee.preventDefault(),this.timeLists.first.focus())}partStep(ee){return this.steps[ee.type]||1}init(ee){(!ee||an(ee,"format"))&&(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=gm(fd(this.dateFormatParts))),(!ee||an(ee,"steps"))&&(this.snapTime=(Yt=>(Ri,ee)=>{const Ze=(0,a.k)(Ri);return Ze.setHours(...Yt.map(Yn=>Yn(Ze,ee))),Ze})(Su(this.steps))),(!ee||an(ee,"value"))&&(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&Co(kn(),this.min,this.max)}focusList(ee){this.timeLists.length&&this.timeLists.reduce(ep,[]).map(Ze=>ee===Dh.Right?Ze.next:Ze.prev).map(Ze=>Ze&&Ze.focus())}handleChange(ee){this.value=ee,this.valueChange.emit((0,a.k)(ee))}hasActiveButton(){return!!this.accept&&[this.accept,this.cancel,this.now].reduce((ee,Ze)=>ee||this.dom.isActive(Ze),!1)}hasSteps(){const ee=Object.keys(this.steps);return ee.length!==ee.reduce((Ze,Yn)=>Ze+this.steps[Yn],0)}intlChange(){this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=gm(fd(this.dateFormatParts)),this.cdr.markForCheck()}bindEvents(){this.element&&this.zone.runOutsideAngular(()=>{this.domEvents.push(this.renderer.listen(this.element.nativeElement,"keydown",this.handleKeydown.bind(this)))})}handleKeydown(ee){const{keyCode:Ze,altKey:Yn}=ee,Bo=-1!==[j.R8.ArrowLeft,j.R8.ArrowRight].indexOf(Ze);Pr(this.pickerService)&&Bo&&Yn||(Ze!==j.R8.Enter||this.hasActiveButton()?(Ze===j.R8.ArrowLeft||Ze===j.R8.ArrowRight)&&this.focusList(Ze===j.R8.ArrowLeft?Dh.Left:Dh.Right):this.handleAccept())}emitBlur(ee){this.pickerService&&this.pickerService.onBlur.emit(ee)}emitFocus(ee){this.pickerService&&this.pickerService.onFocus.emit(ee)}listIndex(ee){let Ze=0,Yn=0;for(;Yn<ee;)"literal"!==this.dateFormatParts[Yn].type&&Ze++,Yn++;return Ze}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(o.oQ),e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(z.aJ),e.Y36(Bc),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(gc,8))},Yt.\u0275cmp=e.Xpm({type:Yt,selectors:[["kendo-timeselector"]],viewQuery:function(ee,Ze){if(1&ee&&(e.Gf(Mr,5),e.Gf(Li,5),e.Gf(Ao,5),e.Gf(je,5),e.Gf(ao,5)),2&ee){let Yn;e.iGM(Yn=e.CRH())&&(Ze.accept=Yn.first),e.iGM(Yn=e.CRH())&&(Ze.cancel=Yn.first),e.iGM(Yn=e.CRH())&&(Ze.now=Yn.first),e.iGM(Yn=e.CRH())&&(Ze.timeLists=Yn),e.iGM(Yn=e.CRH())&&(Ze.timeListWrappers=Yn)}},hostVars:2,hostBindings:function(ee,Ze){2&ee&&e.ekj("k-disabled",Ze.disabledClass)},inputs:{format:"format",min:"min",max:"max",cancelButton:"cancelButton",setButton:"setButton",nowButton:"nowButton",disabled:"disabled",isAdaptiveEnabled:"isAdaptiveEnabled",isDateTimePicker:"isDateTimePicker",steps:"steps",value:"value"},outputs:{valueChange:"valueChange",valueReject:"valueReject",tabOutLastPart:"tabOutLastPart"},exportAs:["kendo-timeselector"],features:[e._Bn([o.oQ,{provide:o.mM,useValue:"kendo.timeselector"}]),e.TTD],decls:9,vars:4,consts:function(){let Ri,ee,Ze,Yn,Bo,$r;return Ri=$localize`:kendo.timeselector.accept|The Accept button text in the timeselector component:Set`,ee=$localize`:kendo.timeselector.acceptLabel|The label for the Accept button in the timeselector component:Set time`,Ze=$localize`:kendo.timeselector.cancel|The Cancel button text in the timeselector component:Cancel`,Yn=$localize`:kendo.timeselector.cancelLabel|The label for the Cancel button in the timeselector component:Cancel changes`,Bo=$localize`:kendo.timeselector.now|The Now button text in the timeselector component:Now`,$r=$localize`:kendo.timeselector.nowLabel|The label for the Now button in the timeselector component:Select now`,[["kendoTimeSelectorLocalizedMessages","","accept",Ri,"acceptLabel",ee,"cancel",Ze,"cancelLabel",Yn,"now",Bo,"nowLabel",$r],[1,"k-time-header"],[1,"k-title","k-timeselector-title"],["type","button","class","k-button k-button-md k-rounded-md k-button-flat k-button-flat-primary k-time-now",3,"kendoEventsOutsideAngular","scope","disabled",4,"ngIf"],[1,"k-time-list-container"],[1,"k-time-highlight"],["ngFor","",3,"ngForOf"],["class","k-time-footer k-actions k-actions-stretched k-actions-horizontal",4,"ngIf"],["type","button",1,"k-button","k-button-md","k-rounded-md","k-button-flat","k-button-flat-primary","k-time-now",3,"kendoEventsOutsideAngular","scope","disabled"],["now",""],["class","k-time-list-wrapper","role","presentation","tabindex","-1",4,"ngIf"],["class","k-time-separator",4,"ngIf"],["role","presentation","tabindex","-1",1,"k-time-list-wrapper"],["listWrapper",""],[3,"isLast","min","max","part","step","disabled","value","kendoEventsOutsideAngular","scope","valueChange","tabOutLastPart"],[1,"k-time-separator"],[1,"k-time-footer","k-actions","k-actions-stretched","k-actions-horizontal"],["type","button","class","k-button k-time-accept k-button-md k-rounded-md k-button-solid k-button-solid-primary",3,"kendoEventsOutsideAngular","scope","disabled",4,"ngIf"],["class","k-button k-time-cancel k-button-md k-rounded-md k-button-solid k-button-solid-base","type","button",3,"kendoEventsOutsideAngular","scope","disabled",4,"ngIf"],["type","button",1,"k-button","k-time-accept","k-button-md","k-rounded-md","k-button-solid","k-button-solid-primary",3,"kendoEventsOutsideAngular","scope","disabled"],["accept",""],["type","button",1,"k-button","k-time-cancel","k-button-md","k-rounded-md","k-button-solid","k-button-solid-base",3,"kendoEventsOutsideAngular","scope","disabled"],["cancel",""]]},template:function(ee,Ze){1&ee&&(e.GkF(0,0),e.TgZ(1,"div",1)(2,"span",2),e._uU(3),e.qZA(),e.YNc(4,pr,3,10,"button",3),e.qZA(),e.TgZ(5,"div",4),e._UZ(6,"span",5),e.YNc(7,mr,2,2,"ng-template",6),e.qZA(),e.YNc(8,yo,3,2,"div",7)),2&ee&&(e.xp6(3),e.hij(" ",Ze.intl.formatDate(Ze.current,Ze.format)," "),e.xp6(1),e.Q6J("ngIf",Ze.showNowButton),e.xp6(3),e.Q6J("ngForOf",Ze.dateFormatParts),e.xp6(1),e.Q6J("ngIf",Ze.setButton||Ze.cancelButton))},dependencies:[je,Ed,Ut.O5,j.nV,Ut.sg],encapsulation:2,changeDetection:0}),Yt})(),Ju=(()=>{class Yt extends gh{constructor(ee){super(),this.service=ee}get override(){return!0}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(o.oQ))},Yt.\u0275cmp=e.Xpm({type:Yt,selectors:[["kendo-timeselector-messages"]],features:[e._Bn([{provide:gh,useExisting:(0,e.Gpc)(()=>Yt)}]),e.qOj],decls:0,vars:0,template:function(ee,Ze){},encapsulation:2}),Yt})(),ou=(()=>{class Yt extends gh{constructor(ee){super(),this.service=ee}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(o.oQ))},Yt.\u0275dir=e.lG2({type:Yt,selectors:[["","kendoTimePickerLocalizedMessages",""]],features:[e._Bn([{provide:gh,useExisting:(0,e.Gpc)(()=>Yt)}]),e.qOj]}),Yt})();const Mh=new RegExp("hour|minute|second|millisecond|dayperiod|literal");let Uc=(()=>{class Yt{constructor(ee,Ze,Yn,Bo,$r,ea,Fa,el,bl,Ql,Pl){this.bus=ee,this.zone=Ze,this.localization=Yn,this.cdr=Bo,this.popupService=$r,this.wrapper=ea,this.renderer=Fa,this.injector=el,this.pickerService=bl,this.intl=Ql,this.touchEnabled=Pl,this.clockIcon=An.aYQ,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.format="t",this.placeholder=null,this.incompleteDateValidation=!1,this.cancelButton=!0,this.nowButton=!0,this.tabindex=0,this.title="",this.rangeValidation=!0,this.adaptiveMode="none",this.valueChange=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.open=new e.vpe,this.close=new e.vpe,this.wrapperClasses=!0,this.xIcon=An.FZE,this.onControlChange=Ot,this.onControlTouched=Ot,this.onValidatorChange=Ot,this.resolvedPromise=Promise.resolve(null),this.timeRangeValidateFn=Ot,this.incompleteValidator=Ot,this._min=(0,a.k)(sr),this._max=(0,a.k)(yr),this._popupSettings={animate:!0},this._show=!1,this._steps={},this._value=null,this._active=!1,this.domEvents=[],this._size=qt,this._rounded=Vt,this._fillMode=bn,(0,H.s)(Tt),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)))}set min(ee){this._min=(0,a.k)(ee||sr)}get min(){return this._min}set max(ee){this._max=(0,a.k)(ee||yr)}get max(){return this._max}set steps(ee){this._steps=ee||{}}get steps(){return this._steps}set popupSettings(ee){this._popupSettings=Object.assign({},{animate:!0},ee)}get popupSettings(){return this._popupSettings}set tabIndex(ee){this.tabindex=ee}get tabIndex(){return this.tabindex}set subtitle(ee){this._subtitle=ee}get subtitle(){return this._subtitle||this.placeholder}set value(ee){this.verifyValue(ee),this._value=(0,a.k)(ee)}get value(){return this._value}set size(ee){this.renderer.removeClass(this.wrapper.nativeElement,Ci("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,Ci("button",this.size));const Ze=ee||qt;"none"!==Ze&&(this.renderer.addClass(this.wrapper.nativeElement,Ci("input",Ze)),this.renderer.addClass(this.toggleButton.nativeElement,Ci("button",Ze))),this._size=Ze}get size(){return this._size}set rounded(ee){this.renderer.removeClass(this.wrapper.nativeElement,xi(this.rounded));const Ze=ee||Vt;"none"!==Ze&&this.renderer.addClass(this.wrapper.nativeElement,xi(Ze)),this._rounded=Ze}get rounded(){return this._rounded}set fillMode(ee){this.renderer.removeClass(this.wrapper.nativeElement,Wn("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,Wn("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,`k-button-${this.fillMode}-base`);const Ze=ee||bn;"none"!==Ze&&(this.renderer.addClass(this.wrapper.nativeElement,Wn("input",Ze)),this.renderer.addClass(this.toggleButton.nativeElement,Wn("button",Ze)),this.renderer.addClass(this.toggleButton.nativeElement,`k-button-${Ze}-base`)),this._fillMode=Ze}get fillMode(){return this._fillMode}get disabledClass(){return this.disabled}get popupUID(){return`k-timepicker-popup-${this.bus.calendarId}-`}get isActive(){return this._active}set isActive(ee){if(this._active=ee,!this.wrapper)return;const Ze=this.wrapper.nativeElement;ee?this.renderer.addClass(Ze,"k-focus"):this.renderer.removeClass(Ze,"k-focus")}get show(){return this._show}set show(ee){ee&&(this.disabled||this.readonly)||(ee||this._show&&((0,j.g$)(this.close)||(0,j.g$)(this.open))?this.zone.run(()=>{const Yn=new ei;!this._show&&ee?this.open.emit(Yn):this._show&&!ee&&this.close.emit(Yn),!Yn.isDefaultPrevented()&&this.toggleTimeSelector(ee)}):this.toggleTimeSelector(ee))}get dateInput(){return this.pickerService.input}get timeSelector(){return this.pickerService.timeSelector}get inputElement(){return this.wrapper.nativeElement.querySelector("input")}isEmpty(){return!this.value&&this.dateInput.isEmpty()}ngOnInit(){this.localizationChangeSubscription=this.localization.changes.subscribe(()=>this.cdr.markForCheck()),this.control=this.injector.get(n.a5,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.zone.runOutsideAngular(()=>{this.bindEvents()}))}ngAfterViewInit(){this.setComponentClasses(),this.renderer.setAttribute(this.actionSheet.element.nativeElement,"style","--kendo-actionsheet-height: 60vh; --kendo-actionsheet-max-height: none")}ngOnChanges(ee){(ee.min||ee.max||ee.rangeValidation||ee.incompleteDateValidation)&&(this.timeRangeValidateFn=this.rangeValidation?((Yt,Ri)=>ee=>{if(!Yt||!Ri||!ee.value)return null;const Ze={timeRangeError:{maxValue:Ri,minValue:Yt,value:ee.value}};return Co(ee.value,Yt,Ri)?null:Ze})(this.min,this.max):Ot,this.incompleteValidator=this.incompleteDateValidation?oc():Ot,this.onValidatorChange()),ee.format&&this.verifyFormat(),(!this.focusableId||ee.focusableId)&&(this.focusableId=this.dateInput?.focusableId)}ngOnDestroy(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe(),this.domEvents.forEach(ee=>ee()),this.pickerSubscriptions.unsubscribe()}handleKeydown(ee){const{altKey:Ze,keyCode:Yn}=ee;if(Yn===j.R8.Escape)return this.show=!1,void this.cdr.detectChanges();Ze&&(Yn===j.R8.ArrowUp&&(ee.preventDefault(),this.show=!1,this.cdr.detectChanges()),Yn===j.R8.ArrowDown&&!this.show&&(ee.preventDefault(),this.show=!0))}writeValue(ee){this.verifyValue(ee),this.value=(0,a.k)(ee),this.cdr.markForCheck(),!ee&&this.dateInput&&(this.dateInput.placeholder=this.placeholder,this.dateInput.writeValue(ee))}registerOnChange(ee){this.onControlChange=ee}registerOnTouched(ee){this.onControlTouched=ee}setDisabledState(ee){this.disabled=ee,this.cdr.markForCheck()}validate(ee){return this.timeRangeValidateFn(ee)||this.incompleteValidator(ee,this.dateInput&&this.dateInput.isDateIncomplete)}registerOnValidatorChange(ee){this.onValidatorChange=ee}focus(){this.dateInput.focus()}blur(){(this.timeSelector||this.dateInput).blur()}toggle(ee){this.disabled||this.readonly||this.resolvedPromise.then(()=>{this.toggleTimeSelector(void 0===ee?!this.show:ee)})}get isOpen(){return this.show}get appendTo(){const{appendTo:ee}=this.popupSettings;if(ee&&"root"!==ee)return"component"===ee?this.container:ee}handleChange(ee){if((0,d.X)(this.value,ee))return this.focusInput(),void(this.show=!1);this.value=(0,a.k)(ee),this.zone.run(()=>{this.focusInput(),this.show=!1,this.onControlChange((0,a.k)(ee)),this.valueChange.emit((0,a.k)(ee))})}handleActionSheetAccept(){this.timeSelector.handleAccept()}handleActionSheetCollapse(){this.cdr.markForCheck()}handleReject(){this.show=!1}handleInputChange(ee){const Ze=this.dateInput.formatSections.date?ee:this.mergeTime(ee);this.handleChange(Ze)}handleDateInputClick(){this.windowSize=ii(),this.isAdaptive&&(this.show=!0)}handleMousedown(ee){ee.preventDefault()}handleIconClick(ee){this.disabled||this.readonly||(ee.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.detectChanges())}get popupClasses(){return["k-group","k-reset"].concat(this.popupSettings.popupClass||[])}get isAdaptiveModeEnabled(){return"auto"===this.adaptiveMode}get isAdaptive(){return this.isAdaptiveModeEnabled&&"large"!==this.windowSize}normalizeTime(ee){return vn(vi,ee)}mergeTime(ee){return this.value&&ee?vn(this.value,ee):ee}onResize(){!this.isOpen||this.windowSize===ii()||(this.actionSheet.expanded?this.toggleActionSheet(!1):this.togglePopup(!1),this.windowSize=ii())}onTabOutLastPart(){this.cancelButton?this.timeSelector.cancel.nativeElement.focus():this.timeSelector.accept.nativeElement.focus()}toggleTimeSelector(ee){this.windowSize=ii(),this.isAdaptive?this.toggleActionSheet(ee):this.togglePopup(ee),this.toggleFocus()}toggleActionSheet(ee){ee!==this._show&&(ee&&!this.isOpen?(this.actionSheet.toggle(),this.updateActionSheetAdaptiveAppearance(),this.renderer.setAttribute(this.actionSheet.element.nativeElement,"id",this.popupUID),this.renderer.setAttribute(this.dateInput?.inputElement,"aria-controls",this.popupUID)):!ee&&this.isOpen&&(this.renderer.setStyle(this.timeSelector.element.nativeElement,"pointer-events","none"),this.renderer.removeAttribute(this.dateInput?.inputElement,"aria-controls"),this.actionSheet.toggle()),this._show=ee)}togglePopup(ee){if(ee!==this.isOpen)if(this._show=ee,this.cdr.markForCheck(),ee){const Ze=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:Ze},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:Ze},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.renderer.setAttribute(this.dateInput?.inputElement,"aria-controls",this.popupUID),this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.show=!1)}else this.popupRef.close(),this.popupRef=null,this.renderer.removeAttribute(this.dateInput?.inputElement,"aria-controls")}updateActionSheetAdaptiveAppearance(){let ee,Ze;this.actionSheet&&(ee=this.actionSheet.element.nativeElement.querySelector(".k-actionsheet"),Ze=this.actionSheet.element.nativeElement.querySelector(".k-child-animation-container"),"medium"===this.windowSize?(this.renderer.removeClass(ee,"k-actionsheet-fullscreen"),this.renderer.removeStyle(Ze,"height")):"small"===this.windowSize&&(this.renderer.addClass(ee,"k-actionsheet-fullscreen"),this.renderer.setStyle(Ze,"height","100%")),this.renderer.addClass(ee,"k-adaptive-actionsheet"),this.renderer.addClass(ee,"k-actionsheet-bottom"),this.renderer.setStyle(Ze,"bottom","0px"))}focusInput(){this.touchEnabled||this.dateInput.focus()}toggleFocus(){this.isActive&&(this.show?(this.timeSelector||this.cdr.detectChanges(),this.isActive&&this.timeSelector.focus()):this.touchEnabled?this.dateInput.isActive||this.handleBlur():this.dateInput.focus())}verifyValue(ee){if((0,e.X6Q)()&&ee&&!(ee instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/#toc-integration-with-json for possible resolution.")}verifyFormat(){if((0,e.X6Q)()&&this.intl.splitDateFormat(this.format).some(Ze=>!Mh.test(Ze.type)))throw new Error("Provided format is not supported. Supported specifiers are T|t|H|h|m|s|S|a. See https://github.com/telerik/kendo-intl/blob/master/docs/date-formatting/index.md")}bindEvents(){this.domEvents.push(this.renderer.listen(this.wrapper.nativeElement,"keydown",this.handleKeydown.bind(this))),en()&&(this.windowBlurSubscription=(0,fe.R)(window,"blur").subscribe(this.handleWindowBlur.bind(this)))}handleWindowBlur(){!this.isOpen||this.actionSheet.expanded||(this.show=!1)}handleFocus(){this.isActive||(this.isActive=!0,(0,j.g$)(this.onFocus)&&this.zone.run(()=>{this.onFocus.emit()}))}handleBlur(ee){const Ze=ee&&gs(ee),Bo=this.actionSheet&&(this.actionSheet.element.nativeElement.contains(ee&&ee.target)||this.actionSheet.element.nativeElement.contains(Ze));Ze&&(this.dateInput.containsElement(Ze)||this.timeSelector&&this.timeSelector.containsElement(Ze)||Bo)||((0,j.g$)(this.onBlur)||this.show&&(0,j.g$)(this.close)||Ur(this.control)?this.zone.run(()=>{this.blurComponent(),this.cdr.markForCheck()}):this.blurComponent(),this.cdr.detectChanges())}blurComponent(){this.isActive=!1,this.show=!1,this.onControlTouched(),this.onBlur.emit()}handleDateCompletenessChange(){this.cdr.markForCheck(),this.zone.run(()=>this.onValidatorChange())}setComponentClasses(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,Ci("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,Ci("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,xi(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,Wn("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,Wn("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,`k-button-${this.fillMode}-base`))}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(Wi),e.Y36(e.R0b),e.Y36(o.oQ),e.Y36(e.sBO),e.Y36(yi.qL),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.zs3),e.Y36(gc),e.Y36(z.aJ),e.Y36(_o,8))},Yt.\u0275cmp=e.Xpm({type:Yt,selectors:[["kendo-timepicker"]],viewQuery:function(ee,Ze){if(1&ee&&(e.Gf(Fo,5,e.s_b),e.Gf(rt,5),e.Gf(ai,7),e.Gf(Gn,5)),2&ee){let Yn;e.iGM(Yn=e.CRH())&&(Ze.container=Yn.first),e.iGM(Yn=e.CRH())&&(Ze.popupTemplate=Yn.first),e.iGM(Yn=e.CRH())&&(Ze.toggleButton=Yn.first),e.iGM(Yn=e.CRH())&&(Ze.actionSheet=Yn.first)}},hostVars:6,hostBindings:function(ee,Ze){2&ee&&e.ekj("k-timepicker",Ze.wrapperClasses)("k-input",Ze.wrapperClasses)("k-disabled",Ze.disabledClass)},inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",format:"format",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",min:"min",max:"max",incompleteDateValidation:"incompleteDateValidation",cancelButton:"cancelButton",nowButton:"nowButton",steps:"steps",popupSettings:"popupSettings",tabindex:"tabindex",tabIndex:"tabIndex",title:"title",subtitle:"subtitle",rangeValidation:"rangeValidation",adaptiveMode:"adaptiveMode",value:"value",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur",open:"open",close:"close"},exportAs:["kendo-timepicker"],features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>Yt),multi:!0},{provide:n.Cf,useExisting:(0,e.Gpc)(()=>Yt),multi:!0},{provide:j.GX,useExisting:(0,e.Gpc)(()=>Yt)},o.oQ,Wi,{provide:o.mM,useValue:"kendo.timepicker"},gc]),e.TTD],decls:16,vars:29,consts:function(){let Ri,ee,Ze,Yn,Bo,$r,ea,Fa,el,bl,Ql,Pl;return Ri=$localize`:kendo.timepicker.accept|The Accept button text in the timepicker component:Set`,ee=$localize`:kendo.timepicker.acceptLabel|The label for the Accept button in the timepicker component:Set time`,Ze=$localize`:kendo.timepicker.cancel|The Cancel button text in the timepicker component:Cancel`,Yn=$localize`:kendo.timepicker.cancelLabel|The label for the Cancel button in the timepicker component:Cancel changes`,Bo=$localize`:kendo.timepicker.now|The Now button text in the timepicker component:Now`,$r=$localize`:kendo.timepicker.nowLabel|The label for the Now button in the timepicker component:Select now`,ea=$localize`:kendo.timepicker.toggle|The label for the toggle button in the timepicker component:Toggle time list`,Fa=$localize`:kendo.timepicker.hour|The label for the hour part in the timepicker component:Hour`,el=$localize`:kendo.timepicker.minute|The label for the minute part in the timepicker component:Minute`,bl=$localize`:kendo.timepicker.second|The label for the second part in the timepicker component:Second`,Ql=$localize`:kendo.timepicker.millisecond|The label for the millisecond part in the timepicker component:Millisecond`,Pl=$localize`:kendo.timepicker.dayperiod|The label for the dayperiod part in the timepicker component:Dayperiod`,[["kendoTimePickerLocalizedMessages","","accept",Ri,"acceptLabel",ee,"cancel",Ze,"cancelLabel",Yn,"now",Bo,"nowLabel",$r,"toggle",ea,"hour",Fa,"minute",el,"second",bl,"millisecond",Ql,"dayperiod",Pl],["pickerType","timepicker","hasPopup","dialog",3,"isPopupOpen","disabled","readonly","role","ariaReadOnly","format","formatPlaceholder","placeholder","focusableId","min","max","incompleteDateValidation","fillMode","rounded","size","steps","tabindex","title","value","valueChange","click"],["input",""],["type","button","tabindex","-1",1,"k-input-button","k-button","k-icon-button",3,"kendoEventsOutsideAngular","scope"],["toggleButton",""],["name","clock","innerCssClass","k-button-icon",3,"svgIcon"],["popupTemplate",""],["container",""],[3,"resize",4,"ngIf"],[3,"titleId","overlayClick","collapse"],["actionSheet",""],["kendoActionSheetTemplate",""],["timeSelectorTemplate",""],[4,"ngTemplateOutlet"],[3,"resize"],[1,"k-actionsheet-titlebar"],[1,"k-actionsheet-titlebar-group","k-hbox"],[1,"k-actionsheet-title"],[1,"k-text-center"],[1,"k-actionsheet-subtitle","k-text-center"],[1,"k-actionsheet-actions"],["kendoButton","","icon","x","fillMode","flat","size","large","aria-hidden","true","innerCssClass","k-button-icon",3,"svgIcon","tabIndex","click"],[1,"k-actionsheet-content","!k-overflow-hidden"],[1,"k-actions","k-actions-stretched","k-actions-horizontal","k-actionsheet-footer"],["kendoButton","","size","large",3,"click"],["kendoButton","","size","large","themeColor","primary",3,"click"],[3,"cancelButton","setButton","nowButton","format","min","max","steps","value","isAdaptiveEnabled","kendoEventsOutsideAngular","scope","valueChange","valueReject","tabOutLastPart"],["timeSelector",""],[3,"acceptLabel","accept","cancelLabel","cancel","nowLabel","now","hour","minute","second","millisecond","dayperiod"]]},template:function(ee,Ze){1&ee&&(e.GkF(0,0),e.TgZ(1,"kendo-dateinput",1,2),e.NdJ("valueChange",function(Bo){return Ze.handleInputChange(Bo)})("click",function(){return Ze.handleDateInputClick()}),e.qZA(),e.TgZ(3,"button",3,4),e._UZ(5,"kendo-icon-wrapper",5),e.qZA(),e.YNc(6,Yr,1,1,"ng-template",null,6,e.W1O),e.GkF(8,null,7),e.YNc(10,Gs,1,0,"kendo-resize-sensor",8),e.TgZ(11,"kendo-actionsheet",9,10),e.NdJ("overlayClick",function(){return Ze.show=!1})("collapse",function(){return Ze.handleActionSheetCollapse()}),e.YNc(13,Ho,16,12,"ng-template",11),e.qZA(),e.YNc(14,Zn,3,27,"ng-template",null,12,e.W1O)),2&ee&&(e.xp6(1),e.Q6J("isPopupOpen",Ze.show)("disabled",Ze.disabled)("readonly",Ze.readonly||Ze.readOnlyInput)("role","combobox")("ariaReadOnly",Ze.readonly)("format",Ze.format)("formatPlaceholder",Ze.formatPlaceholder)("placeholder",Ze.placeholder)("focusableId",Ze.focusableId)("min",Ze.normalizeTime(Ze.min))("max",Ze.normalizeTime(Ze.max))("incompleteDateValidation",Ze.incompleteDateValidation)("fillMode",Ze.fillMode)("rounded",Ze.rounded)("size",Ze.size)("steps",Ze.steps)("tabindex",Ze.show?-1:Ze.tabindex)("title",Ze.title)("value",Ze.value),e.xp6(2),e.Q6J("kendoEventsOutsideAngular",e.WLB(26,Sa,Ze.handleIconClick,Ze.handleMousedown))("scope",Ze),e.uIk("title",Ze.localization.get("toggle"))("aria-label",Ze.localization.get("toggle")),e.xp6(2),e.Q6J("svgIcon",Ze.clockIcon),e.xp6(5),e.Q6J("ngIf",Ze.isAdaptiveModeEnabled),e.xp6(1),e.Q6J("titleId",Ze.focusableId))},dependencies:[st,fn.ZS,j.NG,nn._G,$n.r0,Vh,Ju,ou,j.nV,Ut.tP,Ut.O5,nn.DL],encapsulation:2,changeDetection:0}),Yt})(),pu=(()=>{class Yt extends o.Z1{}return Yt.\u0275fac=function(){let Ri;return function(Ze){return(Ri||(Ri=e.n5z(Yt)))(Ze||Yt)}}(),Yt.\u0275dir=e.lG2({type:Yt,selectors:[["kendo-datetimepicker-messages-base"]],inputs:{toggle:"toggle",dateTab:"dateTab",dateTabLabel:"dateTabLabel",timeTab:"timeTab",timeTabLabel:"timeTabLabel",accept:"accept",acceptLabel:"acceptLabel",cancel:"cancel",cancelLabel:"cancelLabel",today:"today",now:"now",nowLabel:"nowLabel",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle",hour:"hour",minute:"minute",second:"second",millisecond:"millisecond",dayperiod:"dayperiod"},features:[e.qOj]}),Yt})(),Od=(()=>{class Yt extends pu{constructor(ee){super(),this.service=ee}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(o.oQ))},Yt.\u0275dir=e.lG2({type:Yt,selectors:[["","kendoDateTimePickerLocalizedMessages",""]],features:[e._Bn([{provide:pu,useExisting:(0,e.Gpc)(()=>Yt)}]),e.qOj]}),Yt})();const Fd=new RegExp("hour|minute|second|dayperiod|literal"),Df="date";let ah=(()=>{class Yt{constructor(ee,Ze,Yn,Bo,$r,ea,Fa,el,bl,Ql){this.popupService=ee,this.intl=Ze,this.cdr=Yn,this.pickerService=Bo,this.ngZone=$r,this.wrapper=ea,this.touchEnabled=Fa,this.localization=el,this.disabledDatesService=bl,this.renderer=Ql,this.calendarIcon=An.CHk,this.clockIcon=An.aYQ,this.hostClasses=!0,this.twoDigitYearMax=68,this.title="",this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.cancelButton=!0,this.steps={},this.calendarType="infinite",this.animateCalendarNavigation=!1,this.weekNumber=!1,this.rangeValidation=!0,this.disabledDatesValidation=!0,this.incompleteDateValidation=!1,this.adaptiveMode="none",this.valueChange=new e.vpe,this.open=new e.vpe,this.close=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.activeTab=Df,this.timeSelectorFormat="t",this.timeSelectorMin=(0,a.k)(sr),this.timeSelectorMax=(0,a.k)(yr),this.calendarValue=null,this.calendarMin=(0,a.k)(Yi),this.calendarMax=Xn(co),this.xIcon=An.FZE,this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab=Df,this._min=$t(Yi,sr),this._max=$t(co,yr),this._isActive=!1,this.onControlTouched=Ot,this.onControlChange=Ot,this.onValidatorChange=Ot,this.minValidateFn=Ot,this.maxValidateFn=Ot,this.disabledDatesValidateFn=Ot,this.incompleteValidator=Ot,this.subscriptions=new se.w0,this._size=qt,this._rounded=Vt,this._fillMode=bn,(0,H.s)(Tt)}get disabledClass(){return this.disabled}get dateInput(){return this.pickerService.input}get calendar(){return this.pickerService.calendar}get timeSelector(){return this.pickerService.timeSelector}set value(ee){this.verifyValue(ee),this._value=(0,a.k)(ee),this.setCalendarValue(ee),this.cdr.markForCheck()}get value(){return this._value}set format(ee){this._format=ee;const Ze=this.getDisplayFormat(ee);this.timeSelectorFormat=this.getTimeSelectorFormat(Ze)}get format(){return this._format}set tabindex(ee){const Ze=Number(ee);this._tabindex=isNaN(Ze)?0:Ze}get tabindex(){return this.disabled?-1:this._tabindex}set disabledDates(ee){this._disabledDates=ee,this.disabledDatesService.initialize(ee)}get disabledDates(){return this._disabledDates}set popupSettings(ee){this._popupSettings=Object.assign({},{animate:!0},ee)}get popupSettings(){return this._popupSettings}set subtitle(ee){this._subtitle=ee}get subtitle(){return this._subtitle||this.placeholder}set min(ee){Pr(ee)&&(this._min=(0,a.k)(ee),this.calendarMin=(0,u._)(ee))}get min(){return this._min}set max(ee){Pr(ee)&&(this._max=(0,a.k)(ee),this.calendarMax=Xn(ee))}get max(){return this._max}get isOpen(){return this.isAdaptive?(Yt=>!!this.actionSheet?.expanded)():Pr(this.popupRef)}get isActive(){return this._isActive}set isActive(ee){ee?this.renderer.addClass(this.wrapper.nativeElement,"k-focus"):this.renderer.removeClass(this.wrapper.nativeElement,"k-focus"),this._isActive=ee}set defaultTab(ee){this._defaultTab=ee||Df,this.activeTab=this.defaultTab}get defaultTab(){return this._defaultTab}set size(ee){this.renderer.removeClass(this.wrapper.nativeElement,Ci("input",this.size)),this.renderer.removeClass(this.toggleButton.nativeElement,Ci("button",this.size));const Ze=ee||qt;"none"!==Ze&&(this.renderer.addClass(this.wrapper.nativeElement,Ci("input",Ze)),this.renderer.addClass(this.toggleButton.nativeElement,Ci("button",Ze))),this._size=Ze}get size(){return this._size}set rounded(ee){this.renderer.removeClass(this.wrapper.nativeElement,xi(this.rounded));const Ze=ee||Vt;"none"!==Ze&&this.renderer.addClass(this.wrapper.nativeElement,xi(Ze)),this._rounded=Ze}get rounded(){return this._rounded}set fillMode(ee){this.renderer.removeClass(this.wrapper.nativeElement,Wn("input",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,Wn("button",this.fillMode)),this.renderer.removeClass(this.toggleButton.nativeElement,`k-button-${this.fillMode}-base`);const Ze=ee||bn;"none"!==Ze&&(this.renderer.addClass(this.wrapper.nativeElement,Wn("input",Ze)),this.renderer.addClass(this.toggleButton.nativeElement,Wn("button",Ze)),this.renderer.addClass(this.toggleButton.nativeElement,`k-button-${Ze}-base`)),this._fillMode=Ze}get fillMode(){return this._fillMode}get tabSwitchTransition(){return this.isOpen?null:"none"}get disableCalendar(){return"date"!==this.activeTab&&!this.calendar.isActive}get disableTimeSelector(){return"time"!==this.activeTab&&!this.timeSelector.isActive}get isAdaptiveModeEnabled(){return"auto"===this.adaptiveMode}get isAdaptive(){return this.isAdaptiveModeEnabled&&"large"!==this.windowSize}onResize(){!this.isOpen||this.windowSize===ii()||(this.actionSheet.expanded?this.toggleActionSheet(!1):this._togglePopup(!1),this.windowSize=ii())}get activeTabComponent(){if(this.isOpen)return Pr(this.calendar)||Pr(this.timeSelector)||this.cdr.detectChanges(),"date"===this.activeTab?this.calendar:this.timeSelector}get appendTo(){const{appendTo:ee}=this.popupSettings;if(Pr(ee)&&"root"!==ee)return"component"===ee?this.container:ee}get popupUID(){return this.calendar?.popupId}get acceptButton(){return this.popupRef?.popup.instance.container.nativeElement.querySelector(".k-button.k-time-accept")}get cancelButtonElement(){return this.popupRef?.popup.instance.container.nativeElement.querySelector(".k-button.k-time-cancel")}get dateTabButton(){return this.popupRef?.popup.instance.container.nativeElement.querySelector(".k-button.k-date-tab")}ngOnInit(){this.subscriptions.add(this.pickerService.onFocus.pipe((0,dn.b)(this.detectPopupChanges.bind(this))).subscribe(this.handleFocus.bind(this))),this.subscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.subscriptions.add(this.pickerService.sameDateSelected.subscribe(this.handleCalendarValueChange.bind(this))),this.subscriptions.add(this.localization.changes.subscribe(()=>this.cdr.markForCheck())),this.subscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this))),en()&&this.subscriptions.add(this.ngZone.runOutsideAngular(()=>(0,fe.R)(window,"blur").subscribe(()=>{this.isAdaptive||this.handleCancel()})))}ngAfterViewInit(){this.setComponentClasses(),this.renderer.setAttribute(this.actionSheet.element.nativeElement,"style","--kendo-actionsheet-height: 60vh; --kendo-actionsheet-max-height: none")}ngOnChanges(ee){(Pr(ee.min)||Pr(ee.max))&&this.verifyMinMaxRange(),(ee.min||ee.max||ee.rangeValidation||ee.disabledDatesValidation||ee.disabledDates||ee.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?rs(this.min):Ot,this.maxValidateFn=this.rangeValidation?Os(this.max):Ot,this.disabledDatesValidateFn=this.disabledDatesValidation?gr(this.disabledDatesService.isDateDisabled):Ot,this.incompleteValidator=this.incompleteDateValidation?oc():Ot,this.onValidatorChange()),(!this.focusableId||ee.focusableId)&&(this.focusableId=this.dateInput?.focusableId)}ngOnDestroy(){this.isOpen&&this.closePopup(),this.subscriptions.unsubscribe()}focus(){this.disabled||(this.isOpen?this.activeTabComponent.focus():this.dateInput.focus())}blur(){this.isOpen&&this.activeTabComponent.isActive?this.activeTabComponent.blur():this.dateInput.blur()}toggle(ee){this.disabled||this.readonly||ee===this.isOpen||(this.windowSize=ii(),this.isAdaptive?this.toggleActionSheet(ee):this._togglePopup(ee))}writeValue(ee){this.value=ee}registerOnChange(ee){this.onControlChange=ee}registerOnTouched(ee){this.onControlTouched=ee}setDisabledState(ee){this.disabled=ee,this.cdr.markForCheck()}validate(ee){return this.minValidateFn(ee)||this.maxValidateFn(ee)||this.disabledDatesValidateFn(ee)||this.incompleteValidator(ee,this.dateInput&&this.dateInput.isDateIncomplete)}registerOnValidatorChange(ee){this.onValidatorChange=ee}isEmpty(){return!Pr(this.value)&&this.dateInput.isEmpty()}handleIconClick(ee){if(this.disabled||this.readonly)return;ee.preventDefault();const Ze=!this.isOpen||(0,j.g$)(this.close);this.run(Ze,()=>{const Yn=!this.isOpen;this.handleFocus(),this.toggleDateTime(Yn),this.switchFocus()})}handleFocus(){this.isActive||(this.isActive=!0,(0,j.g$)(this.onFocus)&&this.ngZone.run(()=>this.onFocus.emit()))}handleBlur(ee){if(!this.isActive||this.focusTargetInComponent(ee))return;this.isActive=!1;const Yn=this.wrapper.nativeElement.classList.contains("ng-untouched")||(0,j.g$)(this.onBlur)||this.isOpen&&(0,j.g$)(this.close);this.run(Yn,()=>{this.onBlur.emit(),this.onControlTouched(),this.toggleDateTime(!1),this.cdr.markForCheck()})}changeActiveTab(ee){!this.isOpen||this.activeTab===ee||((0,d.X)(this.timeSelector.value,this.timeSelector.current)||this.timeSelector.handleAccept(),this.activeTab=ee,this.cdr.detectChanges(),this.detectPopupChanges())}handleTabChangeTransitionEnd(ee,Ze){Ze.target===ee&&("time"===this.activeTab&&this.renderer.removeAttribute(this.dateInput?.inputElement,"aria-activedescendant"),this.activeTabComponent.focus())}onTabOutLastPart(){this.cancelButton||this.calendarValue?!this.cancelButton&&this.calendarValue?this.acceptButton.focus():this.cancelButton&&this.cancelButtonElement.focus():this.dateTabButton.focus()}handleAccept(){if(!this.isOpen)return;const ee=$t(this.calendar.value,this.timeSelector.current),Yn=!(0,d.X)(this.value,ee)||(0,j.g$)(this.close);this.run(Yn,()=>{this.handleValueChange(ee),this.toggleDateTime(!1)})}handleCancel(){if(!this.isOpen)return;const ee=(0,j.g$)(this.close);this.run(ee,()=>this.toggleDateTime(!1))}handleInputValueChange(ee){this.handleValueChange(ee),this.isOpen&&this.toggleDateTime(!1)}handleDateInputClick(){this.windowSize=ii(),this.isAdaptive&&this.toggleDateTime(!0)}handleCalendarValueChange(){this.setTimeSelectorMinMax(this.calendar.value),this.changeActiveTab("time")}handleKeyDown(ee){if(this.disabled||this.readonly)return;const{keyCode:Ze,altKey:Yn}=ee;switch(Ze){case Yn&&j.R8.ArrowUp:case j.R8.Escape:this.handleCancel();break;case!this.isOpen&&Yn&&j.R8.ArrowDown:this.ngZone.run(()=>this.toggleDateTime(!0));break;case Yn&&j.R8.ArrowRight:this.changeActiveTab("time");break;case Yn&&j.R8.ArrowLeft:this.changeActiveTab("date");break;case this.isOpen&&this.timeSelector.isActive&&Pr(this.calendarValue)&&j.R8.Enter:this.handleAccept();break;default:return}ee.preventDefault()}handleTab(ee){ee.preventDefault();const{shiftKey:Ze}=ee;switch(ee.target){case this.acceptButton:!Ze&&this.calendarValue&&this.dateTabButton.focus();break;case this.cancelButtonElement:Ze||this.calendarValue?!Ze&&this.calendarValue&&this.acceptButton.focus():this.dateTabButton.focus();break;case this.dateTabButton:this.calendarValue?this.acceptButton.focus():!this.calendarValue&&this.cancelButton?this.cancelButtonElement.focus():!this.calendarValue&&!this.cancelButton&&("date"===this.activeTab?this.calendar.monthView.list.nativeElement.focus():this.timeSelector.focus())}}handleActionSheetCollapse(){this.cdr.markForCheck(),this.resetActiveTab()}popupButtonsClasses(ee){const Ze=ee||"base";return`${this.isAdaptive?Ci("button","large"):this.size?Ci("button",this.size):""} ${this.rounded?xi(this.rounded):""} ${this.fillMode?"k-button-"+this.fillMode+" k-button-"+this.fillMode+"-"+Ze:""}`}preventMouseDown(ee){ee.preventDefault()}_togglePopup(ee){(Pr(ee)?!ee:this.isOpen)?(this.closePopup(),this.resetActiveTab()):this.openPopup()}toggleActionSheet(ee){Pr(ee)&&ee&&!this.isOpen?(this.actionSheet.toggle(),this.updateActionSheetAdaptiveAppearance(),this.renderer.setAttribute(this.actionSheet.element.nativeElement,"id",this.popupUID),this.renderer.setAttribute(this.dateInput?.inputElement,"aria-controls",this.popupUID),this.setAriaActiveDescendant()):Pr(ee)&&!ee&&this.isOpen&&(this.actionSheet.toggle(),this.ariaActiveDescendantSubscription.unsubscribe(),this.renderer.removeAttribute(this.dateInput?.inputElement,"aria-activedescendant"),this.renderer.removeAttribute(this.dateInput?.inputElement,"aria-controls"))}updateActionSheetAdaptiveAppearance(){let ee,Ze;this.actionSheet&&(ee=this.actionSheet.element.nativeElement.querySelector(".k-actionsheet"),Ze=this.actionSheet.element.nativeElement.querySelector(".k-child-animation-container"),"medium"===this.windowSize?(this.renderer.removeClass(ee,"k-actionsheet-fullscreen"),this.renderer.removeStyle(Ze,"height")):"small"===this.windowSize&&(this.renderer.addClass(ee,"k-actionsheet-fullscreen"),this.renderer.setStyle(Ze,"height","100%")),this.renderer.addClass(ee,"k-adaptive-actionsheet"),this.renderer.addClass(ee,"k-actionsheet-bottom"),this.renderer.setStyle(Ze,"bottom","0px"))}resetActiveTab(){this.activeTab!==this.defaultTab&&(this.activeTab=this.defaultTab,this.cdr.detectChanges())}verifyValue(ee){if((0,e.X6Q)()&&Pr(ee)&&!(ee instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/integration-with-json/ for possible resolution.")}verifyMinMaxRange(){if((0,e.X6Q)()&&!Sn(this.min,this.max))throw new Error("The max value should be bigger than the min. See https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/date-time-limits/.")}getTimeSelectorFormat(ee){return this.intl.splitDateFormat(ee).filter(this.timeFormatPartFilter).reduce((Yn,Bo)=>Yn+Bo.pattern,"")||"t"}getDisplayFormat(ee){return ee?"string"==typeof ee?ee:ee.displayFormat:"g"}timeFormatPartFilter(ee,Ze,Yn){const Bo=Ze>=1&&Yn[Ze-1];return Fd.test(Bo&&"literal"===ee.type?Bo.type:ee.type)}toggleDateTime(ee){if(ee===this.isOpen)return;const Ze=new ei;ee?this.open.emit(Ze):this.close.emit(Ze),!Ze.isDefaultPrevented()&&(this.toggle(ee),this.switchFocus())}switchFocus(){this.isActive&&(this.isOpen?this.activeTabComponent.focus():this.touchEnabled?this.dateInput.isActive||this.handleBlur():this.dateInput.focus())}openPopup(){this.setCalendarValue(this.value),this.setTimeSelectorMinMax(this.value);const ee=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,content:this.popupTemplate,positionMode:"absolute",animate:this.popupSettings.animate,appendTo:this.appendTo,popupClass:`k-datetime-container ${this.popupSettings.popupClass||""}`,anchorAlign:{vertical:"bottom",horizontal:ee},popupAlign:{vertical:"top",horizontal:ee}}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.renderer.setAttribute(this.dateInput?.inputElement,"aria-controls",this.popupUID),this.setAriaActiveDescendant(),this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.handleCancel()),"infinite"===this.calendar.type&&this.subscriptions.add((0,fe.R)(this.calendar.monthView.list.nativeElement,"keydown").subscribe(Ze=>{const{keyCode:Yn,shiftKey:Bo}=Ze;Yn===j.R8.Tab&&!Bo&&!this.cancelButton&&!this.calendarValue&&(Ze.preventDefault(),this.dateTabButton.focus())}))}setAriaActiveDescendant(){this.ariaActiveDescendantSubscription=("infinite"===this.calendar.type?this.calendar.monthView.focusedCellChange:this.calendar.multiViewCalendar.viewList.focusedCellChange).subscribe(Ze=>this.renderer.setAttribute(this.dateInput?.inputElement,"aria-activedescendant",Ze))}closePopup(){this.isOpen&&(this.ariaActiveDescendantSubscription.unsubscribe(),this.renderer.removeAttribute(this.dateInput?.inputElement,"aria-controls"),this.renderer.removeAttribute(this.dateInput?.inputElement,"aria-activedescendant"),this.popupRef.close(),this.popupRef=null)}handleValueChange(ee){(0,d.X)(this.value,ee)||(this.value=(0,a.k)(ee),this.onControlChange((0,a.k)(ee)),this.valueChange.emit((0,a.k)(ee)))}focusTargetInComponent(ee){if(!Pr(ee))return!1;const Ze=ee.relatedTarget||document.activeElement,Yn=Pr(this.popupRef)&&this.popupRef.popupElement.contains(Ze),Bo=this.wrapper.nativeElement.contains(Ze),$r=this.actionSheet&&(this.actionSheet.element.nativeElement.contains(ee.target)||this.actionSheet.element.nativeElement.contains(Ze));return Yn||Bo||$r}setTimeSelectorMinMax(ee){const Ze=Pr(ee)&&(0,d.X)((0,u._)(ee),(0,u._)(this.min));this.timeSelectorMin=(0,a.k)(Ze?this.min:sr);const Yn=Pr(ee)&&(0,d.X)((0,u._)(ee),(0,u._)(this.max));this.timeSelectorMax=(0,a.k)(Yn?this.max:yr)}setCalendarValue(ee){const Ze=Pr(ee)&&Ui(ee,this.calendarMin,this.calendarMax);this.calendarValue=Ze?(0,u._)(ee):null}detectPopupChanges(){!this.isOpen||this.isAdaptive||this.popupRef.popup.changeDetectorRef.detectChanges()}run(ee,Ze){ee?this.ngZone.run(()=>Ze()):Ze()}handleDateCompletenessChange(){this.cdr.markForCheck(),this.ngZone.run(()=>this.onValidatorChange())}setComponentClasses(){this.size&&(this.renderer.addClass(this.wrapper.nativeElement,Ci("input",this.size)),this.renderer.addClass(this.toggleButton.nativeElement,Ci("button",this.size))),this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,xi(this.rounded)),this.fillMode&&(this.renderer.addClass(this.wrapper.nativeElement,Wn("input",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,Wn("button",this.fillMode)),this.renderer.addClass(this.toggleButton.nativeElement,`k-button-${this.fillMode}-base`))}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(yi.qL),e.Y36(z.aJ),e.Y36(e.sBO),e.Y36(gc),e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(_o),e.Y36(o.oQ),e.Y36(jr),e.Y36(e.Qsj))},Yt.\u0275cmp=e.Xpm({type:Yt,selectors:[["kendo-datetimepicker"]],contentQueries:function(ee,Ze,Yn){if(1&ee&&(e.Suo(Yn,Ps,5),e.Suo(Yn,Qi,5),e.Suo(Yn,vo,5),e.Suo(Yn,pi,5),e.Suo(Yn,to,5),e.Suo(Yn,Ro,5),e.Suo(Yn,Sr,5)),2&ee){let Bo;e.iGM(Bo=e.CRH())&&(Ze.cellTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.monthCellTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.yearCellTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.decadeCellTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.centuryCellTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.weekNumberTemplate=Bo.first),e.iGM(Bo=e.CRH())&&(Ze.headerTitleTemplate=Bo.first)}},viewQuery:function(ee,Ze){if(1&ee&&(e.Gf(ai,7),e.Gf(Fo,7,e.s_b),e.Gf(rt,7,e.Rgc),e.Gf(Gn,5)),2&ee){let Yn;e.iGM(Yn=e.CRH())&&(Ze.toggleButton=Yn.first),e.iGM(Yn=e.CRH())&&(Ze.container=Yn.first),e.iGM(Yn=e.CRH())&&(Ze.popupTemplate=Yn.first),e.iGM(Yn=e.CRH())&&(Ze.actionSheet=Yn.first)}},hostVars:6,hostBindings:function(ee,Ze){2&ee&&e.ekj("k-datetimepicker",Ze.hostClasses)("k-input",Ze.hostClasses)("k-disabled",Ze.disabledClass)},inputs:{focusableId:"focusableId",value:"value",format:"format",twoDigitYearMax:"twoDigitYearMax",tabindex:"tabindex",disabledDates:"disabledDates",popupSettings:"popupSettings",title:"title",subtitle:"subtitle",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",cancelButton:"cancelButton",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",steps:"steps",focusedDate:"focusedDate",calendarType:"calendarType",animateCalendarNavigation:"animateCalendarNavigation",weekNumber:"weekNumber",min:"min",max:"max",rangeValidation:"rangeValidation",disabledDatesValidation:"disabledDatesValidation",incompleteDateValidation:"incompleteDateValidation",adaptiveMode:"adaptiveMode",defaultTab:"defaultTab",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",open:"open",close:"close",onFocus:"focus",onBlur:"blur"},exportAs:["kendo-datetimepicker"],features:[e._Bn([gc,o.oQ,jr,{provide:o.mM,useValue:"kendo.datetimepicker"},{provide:n.JU,useExisting:(0,e.Gpc)(()=>Yt),multi:!0},{provide:n.Cf,useExisting:(0,e.Gpc)(()=>Yt),multi:!0},{provide:j.GX,useExisting:(0,e.Gpc)(()=>Yt)}]),e.TTD],decls:16,vars:36,consts:function(){let Ri,ee,Ze,Yn,Bo,$r,ea,Fa,el,bl,Ql,Pl,Zl,kc,Eu,Td,Wd,tc,tf;return Ri=$localize`:kendo.datetimepicker.dateTab|The Date tab text in the datetimepicker popup header:Date`,ee=$localize`:kendo.datetimepicker.dateTabLabel|The label for the Date tab in the datetimepicker popup header:Date tab`,Ze=$localize`:kendo.datetimepicker.timeTab|The Time tab text in the datetimepicker popup header:Time`,Yn=$localize`:kendo.datetimepicker.timeTabLabel|The label for the Time tab in the datetimepicker popup header:Time tab`,Bo=$localize`:kendo.datetimepicker.toggle|The title of the toggle button in the datetimepicker component:Toggle popup`,$r=$localize`:kendo.datetimepicker.accept|The Accept button text in the datetimepicker component:Set`,ea=$localize`:kendo.datetimepicker.acceptLabel|The label for the Accept button in the datetimepicker component:Set`,Fa=$localize`:kendo.datetimepicker.cancel|The Cancel button text in the datetimepicker component:Cancel`,el=$localize`:kendo.datetimepicker.cancelLabel|The label for the Cancel button in the datetimepicker component:Cancel`,bl=$localize`:kendo.datetimepicker.now|The Now button text in the timepicker component:NOW`,Ql=$localize`:kendo.datetimepicker.nowLabel|The label for the Now button in the timepicker component:Select now`,Pl=$localize`:kendo.datetimepicker.today|The label for the today button in the calendar header:Today`,Zl=$localize`:kendo.datetimepicker.prevButtonTitle|The title of the previous button in the Classic calendar:Navigate to previous view`,kc=$localize`:kendo.datetimepicker.nextButtonTitle|The title of the next button in the Classic calendar:Navigate to next view`,Eu=$localize`:kendo.datetimepicker.hour|The label for the hour part in the timepicker component:Hour`,Td=$localize`:kendo.datetimepicker.minute|The label for the minute part in the timepicker component:Minute`,Wd=$localize`:kendo.datetimepicker.second|The label for the second part in the timepicker component:Second`,tc=$localize`:kendo.datetimepicker.millisecond|The label for the millisecond part in the timepicker component:Millisecond`,tf=$localize`:kendo.datetimepicker.dayperiod|The label for the dayperiod part in the timepicker component:Dayperiod`,[["kendoDateTimePickerLocalizedMessages","","dateTab",Ri,"dateTabLabel",ee,"timeTab",Ze,"timeTabLabel",Yn,"toggle",Bo,"accept",$r,"acceptLabel",ea,"cancel",Fa,"cancelLabel",el,"now",bl,"nowLabel",Ql,"today",Pl,"prevButtonTitle",Zl,"nextButtonTitle",kc,"hour",Eu,"minute",Td,"second",Wd,"millisecond",tc,"dayperiod",tf],["pickerType","datetimepicker","hasPopup","dialog",3,"value","format","twoDigitYearMax","min","max","incompleteDateValidation","formatPlaceholder","placeholder","disabled","focusableId","readonly","role","ariaReadOnly","steps","tabindex","title","isPopupOpen","kendoEventsOutsideAngular","scope","fillMode","rounded","size","valueChange","click"],["type","button",1,"k-input-button","k-button","k-icon-button",3,"tabindex","kendoEventsOutsideAngular","scope"],["toggleButton",""],["name","calendar","innerCssClass","k-button-icon",3,"svgIcon",4,"ngIf"],["name","clock","innerCssClass","k-button-icon",3,"svgIcon",4,"ngIf"],["container",""],["popupTemplate",""],[3,"resize",4,"ngIf"],[3,"titleId","overlayClick","collapse"],["actionSheet",""],["kendoActionSheetTemplate",""],["dateTimeTemplate",""],["name","calendar","innerCssClass","k-button-icon",3,"svgIcon"],["name","clock","innerCssClass","k-button-icon",3,"svgIcon"],[4,"ngTemplateOutlet"],[3,"resize"],[1,"k-actionsheet-titlebar"],[1,"k-actionsheet-titlebar-group","k-hbox"],[1,"k-actionsheet-title"],[1,"k-text-center"],[1,"k-actionsheet-subtitle","k-text-center"],[1,"k-actionsheet-actions"],["kendoButton","","icon","x","fillMode","flat","aria-hidden","true","size","large","innerCssClass","k-button-icon",3,"svgIcon","tabIndex","click"],[1,"k-actionsheet-content","!k-overflow-hidden"],[1,"k-actions","k-actions-stretched","k-actions-horizontal","k-actionsheet-footer"],["kendoButton","","size","large",3,"click"],["kendoButton","","size","large","themeColor","primary",3,"click"],[3,"kendoEventsOutsideAngular","scope"],[1,"k-datetime-buttongroup",3,"kendoEventsOutsideAngular","scope"],["role","group",1,"k-button-group","k-button-group-stretched"],["type","button",1,"k-button","k-group-start","k-date-tab",3,"ngClass","kendoEventsOutsideAngular","scope"],["type","button",1,"k-button","k-group-end","k-time-tab",3,"ngClass","kendoEventsOutsideAngular"],[1,"k-datetime-selector",3,"kendoEventsOutsideAngular"],["dateTimeSelector",""],[1,"k-datetime-calendar-wrap"],[3,"ngClass","focusedDate","value","type","min","max","weekNumber","navigation","animateNavigation","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate","disabled","disabledDates","valueChange"],["calendar",""],[3,"today","prevButtonTitle","nextButtonTitle"],[1,"k-datetime-time-wrap"],[3,"ngClass","value","format","min","max","setButton","cancelButton","steps","disabled","isAdaptiveEnabled","isDateTimePicker","tabOutLastPart"],[3,"acceptLabel","accept","cancelLabel","cancel","nowLabel","now","hour","minute","second","millisecond","dayperiod"],["class","k-datetime-footer k-actions k-actions-stretched k-actions-horizontal",3,"kendoEventsOutsideAngular","scope",4,"ngIf"],[1,"k-datetime-footer","k-actions","k-actions-stretched","k-actions-horizontal",3,"kendoEventsOutsideAngular","scope"],["type","button",1,"k-button","k-time-accept",3,"ngClass","disabled","kendoEventsOutsideAngular","scope"],["type","button","class","k-button k-time-cancel",3,"ngClass","kendoEventsOutsideAngular","scope",4,"ngIf"],["type","button",1,"k-button","k-time-cancel",3,"ngClass","kendoEventsOutsideAngular","scope"]]},template:function(ee,Ze){1&ee&&(e.GkF(0,0),e.TgZ(1,"kendo-dateinput",1),e.NdJ("valueChange",function(Bo){return Ze.handleInputValueChange(Bo)})("click",function(){return Ze.handleDateInputClick()}),e.qZA(),e.TgZ(2,"button",2,3),e.YNc(4,qo,1,1,"kendo-icon-wrapper",4),e.YNc(5,Cr,1,1,"kendo-icon-wrapper",5),e.qZA(),e.GkF(6,null,6),e.YNc(8,xs,1,1,"ng-template",null,7,e.W1O),e.YNc(10,Us,1,0,"kendo-resize-sensor",8),e.TgZ(11,"kendo-actionsheet",9,10),e.NdJ("overlayClick",function(){return Ze.toggleDateTime(!1)})("collapse",function(){return Ze.handleActionSheetCollapse()}),e.YNc(13,Ss,16,12,"ng-template",11),e.qZA(),e.YNc(14,Hs,17,88,"ng-template",null,12,e.W1O)),2&ee&&(e.xp6(1),e.Q6J("value",Ze.value)("format",Ze.format)("twoDigitYearMax",Ze.twoDigitYearMax)("min",Ze.min)("max",Ze.max)("incompleteDateValidation",Ze.incompleteDateValidation)("formatPlaceholder",Ze.formatPlaceholder)("placeholder",Ze.placeholder)("disabled",Ze.disabled)("focusableId",Ze.focusableId)("readonly",Ze.readonly||Ze.readOnlyInput)("role","combobox")("ariaReadOnly",Ze.readonly)("steps",Ze.steps)("tabindex",Ze.tabindex)("title",Ze.title)("isPopupOpen",Ze.isOpen)("kendoEventsOutsideAngular",e.VKq(31,Oa,Ze.handleKeyDown))("scope",Ze)("fillMode",Ze.fillMode)("rounded",Ze.rounded)("size",Ze.size),e.xp6(1),e.Q6J("tabindex",-1)("kendoEventsOutsideAngular",e.WLB(33,Js,Ze.preventMouseDown,Ze.handleIconClick))("scope",Ze),e.uIk("title",Ze.localization.get("toggle"))("aria-label",Ze.localization.get("toggle")),e.xp6(2),e.Q6J("ngIf","date"===Ze.activeTab),e.xp6(1),e.Q6J("ngIf","time"===Ze.activeTab),e.xp6(5),e.Q6J("ngIf",Ze.isAdaptiveModeEnabled),e.xp6(1),e.Q6J("titleId",null==Ze.calendar?null:Ze.calendar.headerId))},dependencies:[st,fn.ZS,j.NG,nn._G,$n.r0,$c,ds,Vh,Ju,Od,j.nV,Ut.O5,Ut.tP,nn.DL,Ut.mk],encapsulation:2,changeDetection:0}),Yt})(),Ih=(()=>{class Yt{}return Yt.\u0275fac=function(ee){return new(ee||Yt)},Yt.\u0275mod=e.oAB({type:Yt}),Yt.\u0275inj=e.cJS({imports:[[Ut.ez,j.OY,$n.hJ]]}),Yt})(),Pd=(()=>{class Yt{}return Yt.\u0275fac=function(ee){return new(ee||Yt)},Yt.\u0275mod=e.oAB({type:Yt}),Yt.\u0275inj=e.cJS({}),Yt})(),Rd=(()=>{class Yt{}return Yt.\u0275fac=function(ee){return new(ee||Yt)},Yt.\u0275mod=e.oAB({type:Yt}),Yt.\u0275inj=e.cJS({providers:[Ka,Qn,qn,pe,po,fo],imports:[[Ut.ez,Ih,z.o0,Pd,yi.Zj,j.OY],Ih,Pd]}),Yt})(),eu=(()=>{class Yt{}return Yt.\u0275fac=function(ee){return new(ee||Yt)},Yt.\u0275mod=e.oAB({type:Yt}),Yt.\u0275inj=e.cJS({imports:[[Ut.ez]]}),Yt})(),lh=(()=>{class Yt{}return Yt.\u0275fac=function(ee){return new(ee||Yt)},Yt.\u0275mod=e.oAB({type:Yt}),Yt.\u0275inj=e.cJS({providers:[Hc,Qn,qn,pe,po,fo],imports:[[Ut.ez,Ih,Rd,z.o0,Pd,eu,j.OY,j.uv],Ih,Pd]}),Yt})(),zf=(()=>{class Yt{}return Yt.\u0275fac=function(ee){return new(ee||Yt)},Yt.\u0275mod=e.oAB({type:Yt}),Yt.\u0275inj=e.cJS({imports:[[lh,Rd],lh,Rd]}),Yt})(),Uf=(()=>{class Yt{}return Yt.\u0275fac=function(ee){return new(ee||Yt)},Yt.\u0275mod=e.oAB({type:Yt}),Yt.\u0275inj=e.cJS({imports:[[Ut.ez,z.o0,j.OY,fn.pc]]}),Yt})(),tp=(()=>{class Yt extends us{constructor(ee){super(),this.service=ee}get override(){return!0}}return Yt.\u0275fac=function(ee){return new(ee||Yt)(e.Y36(o.oQ))},Yt.\u0275cmp=e.Xpm({type:Yt,selectors:[["kendo-datepicker-messages"]],features:[e._Bn([{provide:us,useExisting:(0,e.Gpc)(()=>Yt)}]),e.qOj],decls:0,vars:0,template:function(ee,Ze){},encapsulation:2}),Yt})();const Qu=[nn.AG,j.uv,$n.hJ,mi.oc];let Yh=(()=>{class Yt{}return Yt.\u0275fac=function(ee){return new(ee||Yt)},Yt.\u0275mod=e.oAB({type:Yt}),Yt.\u0275inj=e.cJS({imports:[[...Qu],nn.AG,j.uv,$n.hJ,mi.oc]}),Yt})(),zu=(()=>{class Yt{}return Yt.\u0275fac=function(ee){return new(ee||Yt)},Yt.\u0275mod=e.oAB({type:Yt}),Yt.\u0275inj=e.cJS({providers:[{provide:_o,useValue:Mi.Pt}],imports:[[Ut.ez,Uf,lh,z.o0,yi.Zj,Pd,j.OY,fn.pc,Yh],Pd]}),Yt})();const _h=[Rd,Uf,yi.Zj,j.OY,Yh];let Xp=(()=>{class Yt{}return Yt.\u0275fac=function(ee){return new(ee||Yt)},Yt.\u0275mod=e.oAB({type:Yt}),Yt.\u0275inj=e.cJS({imports:[[Ut.ez,_h]]}),Yt})();const Af=[Uf,z.o0,yi.Zj,eu,j.OY,fn.pc,Yh],ac=[Bc,uf,vd,Nc,uc,Th,{provide:_o,useValue:Mi.Pt}];let au=(()=>{class Yt{}return Yt.\u0275fac=function(ee){return new(ee||Yt)},Yt.\u0275mod=e.oAB({type:Yt}),Yt.\u0275inj=e.cJS({providers:ac,imports:[[Ut.ez,...Af]]}),Yt})(),Gf=(()=>{class Yt{}return Yt.\u0275fac=function(ee){return new(ee||Yt)},Yt.\u0275mod=e.oAB({type:Yt}),Yt.\u0275inj=e.cJS({providers:[{provide:_o,useValue:Mi.Pt}],imports:[[Ut.ez,z.o0,Uf,lh,au,yi.Zj,j.OY,Pd,fn.pc,Yh],Pd]}),Yt})();const vm=[zf,Uf,zu,au,Xp,Gf];let Np=(()=>{class Yt{}return Yt.\u0275fac=function(ee){return new(ee||Yt)},Yt.\u0275mod=e.oAB({type:Yt}),Yt.\u0275inj=e.cJS({imports:[vm,zf,Uf,zu,au,Xp,Gf]}),Yt})()},93197:(he,y,i)=>{"use strict";i.d(y,{Su:()=>ri,Tg:()=>ot,au:()=>Zi,cy:()=>Gs,jA:()=>Bi,lw:()=>Ei,nw:()=>Xi,xA:()=>as,y$:()=>Yr,zj:()=>oo});var e=i(65879),n=i(86825),o=i(47394),a=i(78645),l=i(63019),u=i(22096),d=i(48180),s=i(32181),A=i(37398),_=i(63020),C=i(59773),R=i(99397),x=i(94664),f=i(96814),k=i(58951),w=i(73942),g=i(15735),M=i(12624),p=i(3201),E=i(90438),b=i(60886);function I(fi,Ho){1&fi&&e.Hsn(0,0,["*ngIf","!actions"])}function L(fi,Ho){if(1&fi){const _t=e.EpF();e.TgZ(0,"button",5),e.NdJ("click",function(qo){const kr=e.CHM(_t).$implicit,xs=e.oxw(2);return e.KtG(xs.onButtonClick(kr,qo))}),e._uU(1),e.qZA()}if(2&fi){const _t=Ho.$implicit,Zn=e.oxw(2);e.Q6J("ngClass",Zn.buttonClass(_t)),e.uIk("aria-label",_t.text),e.xp6(1),e.hij(" ",_t.text," ")}}function D(fi,Ho){if(1&fi&&(e.ynx(0),e.YNc(1,L,2,3,"button",4),e.BQk()),2&fi){const _t=e.oxw();e.xp6(1),e.Q6J("ngForOf",_t.actionsArray)}}function F(fi,Ho){}const P=["*"],O=["dialog"];function U(fi,Ho){if(1&fi&&(e.TgZ(0,"kendo-dialog-titlebar",8),e._uU(1),e.qZA()),2&fi){const _t=e.oxw();e.Q6J("closeTitle",_t.closeTitle)("id",_t.titleId),e.xp6(1),e.Oqu(_t.title)}}function V(fi,Ho){1&fi&&e.Hsn(0,0,["*ngIf","!title"])}function K(fi,Ho){1&fi&&e.Hsn(0,1,["*ngIf","!contentTemplate"])}function X(fi,Ho){}function me(fi,Ho){if(1&fi&&e.YNc(0,X,0,0,"ng-template",9),2&fi){const _t=e.oxw();e.Q6J("ngTemplateOutlet",_t.contentTemplate)}}function J(fi,Ho){1&fi&&e.Hsn(0,2,["*ngIf","!actions"])}function Q(fi,Ho){if(1&fi&&e._UZ(0,"kendo-dialog-actions",10),2&fi){const _t=e.oxw();e.Q6J("actions",_t.actions)("layout",_t.actionsLayout)}}const re=[[["kendo-dialog-titlebar"]],"*",[["kendo-dialog-actions"]]],de=["kendo-dialog-titlebar","*","kendo-dialog-actions"];function te(fi,Ho){1&fi&&e.Hsn(0,0,["*ngIf","!template"])}function j(fi,Ho){}const H=function(fi){return{$implicit:fi}};function z(fi,Ho){if(1&fi&&e.YNc(0,j,0,0,"ng-template",1),2&fi){const _t=e.oxw();e.Q6J("ngTemplateOutlet",_t.template)("ngTemplateOutletContext",e.VKq(2,H,_t.service))}}const q=["kendoWindowMinimizeAction",""];function se(fi,Ho){if(1&fi&&e._UZ(0,"kendo-icon-wrapper",4),2&fi){const _t=e.oxw();e.Q6J("svgIcon",_t.windowMinimizeIcon)}}function ne(fi,Ho){if(1&fi&&(e.TgZ(0,"span",5),e._UZ(1,"img",6),e.qZA()),2&fi){const _t=e.oxw();e.xp6(1),e.Q6J("src",_t.imageUrl,e.LSH)}}function _e(fi,Ho){if(1&fi&&e._UZ(0,"span",7),2&fi){const _t=e.oxw();e.Q6J("ngClass",_t.iconClass)}}const ge=["kendoWindowMaximizeAction",""];function Ce(fi,Ho){if(1&fi&&e._UZ(0,"kendo-icon-wrapper",4),2&fi){const _t=e.oxw();e.Q6J("svgIcon",_t.windowIcon)}}function Te(fi,Ho){if(1&fi&&(e.TgZ(0,"span",5),e._UZ(1,"img",6),e.qZA()),2&fi){const _t=e.oxw();e.xp6(1),e.Q6J("src",_t.imageUrl,e.LSH)}}function De(fi,Ho){if(1&fi&&e._UZ(0,"span",7),2&fi){const _t=e.oxw();e.Q6J("ngClass",_t.iconClass)}}const fe=["kendoWindowRestoreAction",""];function xe(fi,Ho){if(1&fi&&e._UZ(0,"kendo-icon-wrapper",4),2&fi){const _t=e.oxw();e.Q6J("svgIcon",_t.windowRestoreIcon)}}function Oe(fi,Ho){if(1&fi&&(e.TgZ(0,"span",5),e._UZ(1,"img",6),e.qZA()),2&fi){const _t=e.oxw();e.xp6(1),e.Q6J("src",_t.imageUrl,e.LSH)}}function Le(fi,Ho){if(1&fi&&e._UZ(0,"span",7),2&fi){const _t=e.oxw();e.Q6J("ngClass",_t.iconClass)}}const Gt=["kendoWindowCloseAction",""];function Ut(fi,Ho){if(1&fi&&e._UZ(0,"kendo-icon-wrapper",4),2&fi){const _t=e.oxw();e.Q6J("svgIcon",_t.xIcon)}}function An(fi,Ho){if(1&fi&&(e.TgZ(0,"span",5),e._UZ(1,"img",6),e.qZA()),2&fi){const _t=e.oxw();e.xp6(1),e.Q6J("src",_t.imageUrl,e.LSH)}}function $n(fi,Ho){if(1&fi&&e._UZ(0,"span",7),2&fi){const _t=e.oxw();e.Q6J("ngClass",_t.iconClass)}}function xn(fi,Ho){if(1&fi&&(e.TgZ(0,"kendo-window-titlebar",5)(1,"span",6),e._uU(2),e.qZA(),e.TgZ(3,"div",7),e._UZ(4,"button",8)(5,"button",9)(6,"button",10)(7,"button",11),e.qZA()()),2&fi){const _t=e.oxw();e.Q6J("template",_t.titleBarTemplate)("id",_t.titleId),e.xp6(2),e.Oqu(_t.title),e.xp6(2),e.uIk("title",_t.minimizeButtonTitle)("aria-label",_t.minimizeButtonTitle),e.xp6(1),e.uIk("title",_t.maximizeButtonTitle)("aria-label",_t.maximizeButtonTitle),e.xp6(1),e.uIk("title",_t.restoreButtonTitle)("aria-label",_t.restoreButtonTitle),e.xp6(1),e.uIk("title",_t.closeButtonTitle)("aria-label",_t.closeButtonTitle)}}function mt(fi,Ho){1&fi&&e.Hsn(0,0,["*ngIf","!showDefaultTitleBar"])}function ut(fi,Ho){1&fi&&e.Hsn(0,1,["*ngIf","!contentTemplate"])}function Wt(fi,Ho){}function dn(fi,Ho){if(1&fi&&e.YNc(0,Wt,0,0,"ng-template",13),2&fi){const _t=e.oxw(2);e.Q6J("ngTemplateOutlet",_t.contentTemplate)}}function sn(fi,Ho){if(1&fi&&(e.TgZ(0,"div",12),e.YNc(1,ut,1,0,"ng-content",2),e.YNc(2,dn,1,1,null,2),e.qZA()),2&fi){const _t=e.oxw();e.Q6J("hidden","minimized"===_t.state&&_t.keepContent),e.xp6(1),e.Q6J("ngIf",!_t.contentTemplate),e.xp6(1),e.Q6J("ngIf",_t.contentTemplate)}}function fn(fi,Ho){1&fi&&e._UZ(0,"div",15),2&fi&&e.Q6J("direction",Ho.$implicit)}function yi(fi,Ho){if(1&fi&&e.YNc(0,fn,1,1,"div",14),2&fi){const _t=e.oxw();e.Q6J("ngForOf",_t.resizeDirections)}}const nn=[[["kendo-window-titlebar"]],"*"],Mi=["kendo-window-titlebar","*"],mi=fi=>null!=fi,Ko=fi=>String(fi).trim().split(" "),xo=/^(?:a|input|select|textarea|button|object)$/i;var Bn=function(fi){return fi[fi.esc=27]="esc",fi[fi.tab=9]="tab",fi[fi.enter=13]="enter",fi[fi.space=32]="space",fi[fi.ctrl=17]="ctrl",fi[fi.shift=16]="shift",fi[fi.left=37]="left",fi[fi.up=38]="up",fi[fi.right=39]="right",fi[fi.down=40]="down",fi}(Bn||{});const Xt="k-dialog-wrapper k-actions k-dialog-titlebar-action",un=(fi,Ho)=>{const _t=Ko(Ho);return!!Ko(fi.className).find(Zn=>_t.indexOf(Zn)>=0)},Fn=(fi,Ho=!0)=>{if(fi.tagName){const _t=fi.tagName.toLowerCase(),Zn=fi.getAttribute("tabIndex"),qo=null!==Zn&&!isNaN(Zn)&&Zn>-1;let Cr=!1;return Cr=xo.test(_t)?!fi.disabled:qo,Cr&&(!Ho||(fi=>{const Ho=fi.getBoundingClientRect();return!(!Ho.width||!Ho.height)&&"hidden"!==window.getComputedStyle(fi).visibility})(fi))}return!1},oi=(fi,Ho,_t)=>{for(const Zn in fi)Zn&&Ho.setAttribute(_t,Zn,fi[Zn])},It=fi=>ln(fi)?Bt(fi):vt(fi)?xt(fi):Array.isArray(fi)?wt(fi):void 0,Bt=fi=>{const Ho=[];return Object.keys(fi).forEach(_t=>{const Zn=go(_t);fi[_t]&&Zn[0]&&Ho.push(...Zn)}),Ho},xt=fi=>{const Ho=[];return go(fi).forEach(Zn=>{Ho.push(Zn)}),Ho},wt=fi=>{const Ho=[];return fi.forEach(_t=>{const Zn=go(_t);Zn[0]&&Ho.push(...Zn)}),Ho},Mt=({originalEvent:fi})=>{fi.stopPropagation(),fi.preventDefault()},tt=["n","e","s","w","se","sw","ne","nw"],Ne=["top","left","width","height"],vt=fi=>fi instanceof String||"string"==typeof fi,ln=fi=>mi(fi)&&!Array.isArray(fi)&&"object"==typeof fi,Pi=fi=>fi+((fi=>"number"==typeof fi&&isFinite(fi))(fi)?"px":""),go=fi=>fi.trim().replace(/\s+/g," ").split(" ");let ot=(()=>{class fi{constructor(_t){this.el=_t,this.layout="stretched",this.action=new e.vpe,this.hostClasses=!0}set actions(_t){if(_t instanceof e.Rgc)this.actionsTemplate=_t;else{if(!Array.isArray(_t))throw new Error('"actions" must be either TemplateRef or DialogAction[] instance.');this.actionsArray=_t}}get startClassName(){return"start"===this.layout}get centerClassName(){return"center"===this.layout}get endClassName(){return"end"===this.layout}get stretchedClassName(){return"stretched"===this.layout}onButtonClick(_t,Zn){this.action.emit(_t)}buttonClass(_t){let Zn=["k-button k-button-md k-rounded-md"];const qo=_t.fillMode?_t.fillMode:"solid",Cr=_t.themeColor?_t.themeColor:"base",kr=_t.cssClass?It(_t.cssClass):[];return Zn.push(`k-button-${qo} k-button-${qo}-${Cr}`),kr.length>0&&(Zn=Zn.concat(kr)),Zn.join(" ")}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(e.SBq))},fi.\u0275cmp=e.Xpm({type:fi,selectors:[["kendo-dialog-actions"]],hostVars:16,hostBindings:function(_t,Zn){2&_t&&e.ekj("k-actions",Zn.hostClasses)("k-actions-horizontal",Zn.hostClasses)("k-window-actions",Zn.hostClasses)("k-dialog-actions",Zn.hostClasses)("k-actions-start",Zn.startClassName)("k-actions-center",Zn.centerClassName)("k-actions-end",Zn.endClassName)("k-actions-stretched",Zn.stretchedClassName)},inputs:{actions:"actions",layout:"layout"},outputs:{action:"action"},ngContentSelectors:P,decls:4,vars:4,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"],["actionTemplate",""],["type","button",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button",3,"ngClass","click"]],template:function(_t,Zn){if(1&_t&&(e.F$t(),e.YNc(0,I,1,0,"ng-content",0),e.YNc(1,D,2,1,"ng-container",1),e.YNc(2,F,0,0,"ng-template",2,3,e.W1O)),2&_t){const qo=e.MAs(3);e.Q6J("ngIf",!Zn.actions),e.xp6(1),e.Q6J("ngIf",Zn.actionsArray)("ngIfElse",qo),e.xp6(1),e.Q6J("ngTemplateOutlet",Zn.actionsTemplate)}},dependencies:[f.O5,f.sg,f.mk,f.tP],encapsulation:2}),fi})();class pn{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}const _i=new e.OlP("Dialog LocalizationService");let wi=(()=>{class fi extends k.oQ{constructor(_t,Zn,qo,Cr){super(_t,Zn,qo),this.dialogLocalization=Cr}get(_t){return this.dialogLocalization?this.dialogLocalization.get(_t):super.get(_t)}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.LFG(k.mM),e.LFG(k.ez,8),e.LFG(k.lw,8),e.LFG(_i,8))},fi.\u0275prov=e.Yz7({token:fi,factory:fi.\u0275fac}),fi})(),hi=(()=>{class fi extends k.Z1{}return fi.\u0275fac=function(){let Ho;return function(Zn){return(Ho||(Ho=e.n5z(fi)))(Zn||fi)}}(),fi.\u0275dir=e.lG2({type:fi,selectors:[["kendo-dialog-messages-base"]],inputs:{closeTitle:"closeTitle",restoreTitle:"restoreTitle",maximizeTitle:"maximizeTitle",minimizeTitle:"minimizeTitle"},features:[e.qOj]}),fi})(),zn=(()=>{class fi extends hi{constructor(_t){super(),this.service=_t}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(k.oQ))},fi.\u0275dir=e.lG2({type:fi,selectors:[["","kendoDialogLocalizedMessages",""],["","kendoWindowLocalizedMessages",""],["","kendoDialogTitleBarLocalizedMessages",""]],features:[e._Bn([{provide:hi,useExisting:(0,e.Gpc)(()=>fi)}]),e.qOj]}),fi})(),Ei=(()=>{class fi{constructor(_t,Zn,qo){this.zone=_t,this.hostElement=Zn,this.localizationService=qo,this.close=new e.vpe,this.xIcon=w.FZE}get className(){return!0}get closeButtonTitle(){return this.closeTitle||this.localizationService.get("closeTitle")}ngAfterViewInit(){this.zone.onStable.pipe((0,d.q)(1)).subscribe(()=>{this.hostElement.nativeElement.querySelector(".k-dialog-title").setAttribute("id",this.id)})}onCloseClick(_t){_t.preventDefault();const Zn=new pn;this.close.emit(Zn)}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(k.oQ,8))},fi.\u0275cmp=e.Xpm({type:fi,selectors:[["kendo-dialog-titlebar"]],hostVars:4,hostBindings:function(_t,Zn){2&_t&&e.ekj("k-window-titlebar",Zn.className)("k-dialog-titlebar",Zn.className)},inputs:{id:"id",closeTitle:"closeTitle"},outputs:{close:"close"},features:[e._Bn([wi,{provide:k.oQ,useExisting:wi},{provide:k.mM,useValue:"kendo.dialog"}])],ngContentSelectors:P,decls:5,vars:3,consts:function(){let Ho;return Ho=$localize`:kendo.dialog.closeTitle|The title of the close button:Close`,[["kendoDialogTitleBarLocalizedMessages","","closeTitle",Ho],[1,"k-window-title","k-dialog-title"],[1,"k-window-titlebar-actions","k-dialog-titlebar-actions"],["kendoButton","","fillMode","flat","role","button","icon","close",1,"k-window-titlebar-action","k-dialog-titlebar-action",3,"svgIcon","click"]]},template:function(_t,Zn){1&_t&&(e.F$t(),e.ynx(0,0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.TgZ(3,"div",2)(4,"button",3),e.NdJ("click",function(Cr){return Zn.onCloseClick(Cr)}),e.qZA()(),e.BQk()),2&_t&&(e.xp6(4),e.Q6J("svgIcon",Zn.xIcon),e.uIk("title",Zn.closeButtonTitle)("aria-label",Zn.closeButtonTitle))},dependencies:[g.r0,zn],encapsulation:2}),fi})();const li={name:"@progress/kendo-angular-dialog",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1689688606,version:"13.2.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};class Xi{}const wn={duration:300,type:"translate"};let Zi=(()=>{class fi{constructor(_t,Zn,qo,Cr,kr,xs){this.wrapper=_t,this.renderer=Zn,this.cdr=Cr,this.ngZone=kr,this.builder=xs,this.actionsLayout="stretched",this.animation=!0,this.titleId=null,this.contentId=null,this.action=new e.vpe,this.close=new e.vpe,this.tabIndex=0,this._themeColor=null,this.subscriptions=[],this.domSubs=new o.w0,(0,M.s)(li),this.direction=qo.rtl?"rtl":"ltr",this.subscriptions.push(qo.changes.subscribe(({rtl:Us})=>this.direction=Us?"rtl":"ltr")),this.titleId=this.generateTitleId(),this.contentId=this.generateContentId()}set themeColor(_t){this.handleThemeColorClass(this.themeColor,_t),this._themeColor=_t}get themeColor(){return this._themeColor}set htmlAttributes(_t){oi(_t,this.renderer,this.wrapper.nativeElement);const Zn=this.wrapper.nativeElement,qo=Zn.getAttribute("dir"),Cr=Zn.getAttribute("tabindex");this.direction!==qo&&qo&&(this.direction=qo),this.tabIndex!==Cr&&Cr&&(this.tabIndex=Cr),this._htmlAttributes=_t}get htmlAttributes(){return this._htmlAttributes}set cssClass(_t){this.setServiceClasses(this._cssClass,_t),this._cssClass=_t}get cssClass(){return this._cssClass}get dir(){return this.direction}ngAfterContentInit(){this.bubble("close",this.titlebarContent.first),this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-describedby",this.contentId),this.titlebarContent.first?this.titlebarContent.first.id=this.titleId:this.subscriptions.push(this.titlebarContent.changes.subscribe(()=>{mi(this.titlebarContent.first)&&(this.titlebarContent.first.id=this.titleId,this.ngZone.onStable.pipe((0,d.q)(1)).subscribe(()=>{this.bubble("close",this.titlebarContent.first),this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",this.titleId)}))}))}ngAfterViewInit(){(0,p.X_)()&&(this.handleInitialFocus(),this.bubble("close",this.titlebarView.first),this.bubble("action",this.actionsView),this.titlebarView.first||this.titlebarContent.first?this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",this.titleId):this.subscriptions.push(this.titlebarView.changes.subscribe(()=>{mi(this.titlebarView.first)&&(this.titlebarView.first.id=this.titleId,this.ngZone.onStable.pipe((0,d.q)(1)).subscribe(()=>{this.bubble("close",this.titlebarView.first),this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",this.titleId)}))})),this.initDomEvents(),this.handleThemeColorClass(null,this.themeColor))}ngOnInit(){this.animation&&((fi,Ho,_t,Zn)=>{let qo=Ho;"boolean"!=typeof fi&&(qo=fi,qo.duration=qo.duration?qo.duration:Ho.duration);const Cr=function ki(fi,Ho,_t){switch(_t){case"slide":{const Zn="left"===Ho||"right"===Ho?"translateX":"translateY",Cr=0;return[(0,n.oB)({transform:`${Zn}(${"right"===Ho||"down"===Ho?-100:100}%)`}),(0,n.jt)(`${fi}ms ease-in`,(0,n.oB)({transform:`${Zn}(${Cr}%)`}))]}case"expand":{const Zn="up"===Ho||"down"===Ho?"scaleY":"scaleX",Cr=1;let kr;return kr="down"===Ho?"top":"left"===Ho?"right":"right"===Ho?"left":"bottom",[(0,n.oB)({transform:`${Zn}(0)`,transformOrigin:kr}),(0,n.jt)(`${fi}ms ease-in`,(0,n.oB)({transform:`${Zn}(${Cr})`}))]}case"zoom":return[(0,n.jt)(fi,(0,n.F4)([(0,n.oB)({transform:"scale(0)"}),(0,n.oB)({transform:"scale(1)"})]))];case"fade":return[(0,n.jt)(fi,(0,n.F4)([(0,n.oB)({opacity:"0"}),(0,n.oB)({opacity:"1"})]))];default:return[(0,n.oB)({transform:"translate(0, -10%)"}),(0,n.jt)(`${fi}ms cubic-bezier(.2, 1, .2, 1)`)]}}(qo.duration,qo.direction,qo.type);((fi,Ho,_t)=>{let qo=fi.build(Ho).create(_t);return qo.onDone(()=>{qo&&(qo.destroy(),qo=null)}),qo})(Zn,Cr,_t).play()})(this.animation,wn,this.dialog.nativeElement,this.builder),this.renderer.removeAttribute(this.wrapper.nativeElement,"title"),this.cdr.detectChanges()}ngOnDestroy(){this.subscriptions.forEach(_t=>_t.unsubscribe()),this.subscriptions=[],this.domSubs&&this.domSubs.unsubscribe()}focus(){const _t=this.wrapper.nativeElement;mi(_t)&&_t.focus()}initDomEvents(){this.wrapper&&this.ngZone.runOutsideAngular(()=>{this.domSubs.add(this.renderer.listen(this.wrapper.nativeElement,"keydown",_t=>{this.onKeyDown(_t)}))})}onKeyDown(_t){const Zn=_t.target,qo=Zn.parentElement;(un(Zn,Xt)||un(qo,Xt))&&_t.keyCode===Bn.esc&&this.ngZone.run(()=>{this.close.emit(new Xi)}),un(Zn,"k-button")&&un(qo,"k-actions")&&(_t.keyCode===Bn.left||_t.keyCode===Bn.right)&&this.ngZone.run(()=>{this.handleActionButtonFocus(qo,_t.keyCode)}),_t.keyCode===Bn.tab&&this.ngZone.run(()=>{this.keepFocusWithinComponent(Zn,_t)})}setServiceClasses(_t,Zn){const qo=this.wrapper.nativeElement;_t&&It(_t).forEach(Cr=>{this.renderer.removeClass(qo,Cr)}),Zn&&It(Zn).forEach(Cr=>{this.renderer.addClass(qo,Cr)})}handleInitialFocus(){const _t=this.wrapper.nativeElement,Zn=this.findPrimary(_t);if(this.autoFocusedElement){const qo=_t.querySelector(this.autoFocusedElement);qo&&qo.focus()}else this.shouldFocusPrimary(Zn)?Zn.focus():_t.focus()}findPrimary(_t){return(fi=>{for(let Ho=fi.length-1;Ho>=0;Ho--){const _t=fi[Ho].classList;for(let Zn=0;Zn<_t.length;Zn++)if(_t[Zn].endsWith("-primary"))return fi[Ho]}})(_t.querySelectorAll(".k-actions .k-button"))}handleActionButtonFocus(_t,Zn){const qo=this.getAllFocusableChildren(_t);for(let Cr=0;Cr<qo.length;Cr++)if(qo[Cr]===document.activeElement){if(Zn===Bn.left&&Cr>0){qo[Cr-1].focus();break}if(Zn===Bn.right&&Cr<qo.length-1){qo[Cr+1].focus();break}}}keepFocusWithinComponent(_t,Zn){const qo=this.wrapper.nativeElement,[Cr,kr]=this.getFirstAndLastFocusable(qo),Us=Zn.shiftKey&&_t===Cr;!Zn.shiftKey&&_t===kr&&(Zn.preventDefault(),Cr.focus()),Us&&(Zn.preventDefault(),kr.focus())}shouldFocusPrimary(_t){return mi(_t)&&Fn(_t)}getAllFocusableChildren(_t){return _t.querySelectorAll(p.y)}getFirstAndLastFocusable(_t){const Zn=this.getAllFocusableChildren(_t);return[Zn.length>0?Zn[0]:_t,Zn.length>0?Zn[Zn.length-1]:_t]}generateTitleId(){return"kendo-dialog-title-"+Math.ceil(1e6*Math.random()).toString()}generateContentId(){return"kendo-dialog-content-"+Math.ceil(1e6*Math.random()).toString()}get wrapperClass(){return!0}get styles(){const _t={};return this.width&&(_t.width=Pi(this.width)),this.height&&(_t.height=Pi(this.height)),this.minWidth&&(_t.minWidth=Pi(this.minWidth)),this.maxWidth&&(_t.maxWidth=Pi(this.maxWidth)),this.minHeight&&(_t.minHeight=Pi(this.minHeight)),this.maxHeight&&(_t.maxHeight=Pi(this.maxHeight)),_t}bubble(_t,Zn){if(Zn){const Cr=Zn[_t].subscribe(kr=>this[_t].emit(kr));this.subscriptions.push(Cr)}}handleThemeColorClass(_t,Zn){const qo=this.dialog.nativeElement;_t&&this.renderer.removeClass(qo,`k-dialog-${_t}`),Zn&&this.renderer.addClass(qo,`k-dialog-${Zn}`)}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(k.oQ),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(n._j))},fi.\u0275cmp=e.Xpm({type:fi,selectors:[["kendo-dialog"]],contentQueries:function(_t,Zn,qo){if(1&_t&&e.Suo(qo,Ei,4),2&_t){let Cr;e.iGM(Cr=e.CRH())&&(Zn.titlebarContent=Cr)}},viewQuery:function(_t,Zn){if(1&_t&&(e.Gf(ot,5),e.Gf(O,7),e.Gf(Ei,5)),2&_t){let qo;e.iGM(qo=e.CRH())&&(Zn.actionsView=qo.first),e.iGM(qo=e.CRH())&&(Zn.dialog=qo.first),e.iGM(qo=e.CRH())&&(Zn.titlebarView=qo)}},hostVars:4,hostBindings:function(_t,Zn){2&_t&&(e.uIk("dir",Zn.dir)("tabIndex",Zn.tabIndex),e.ekj("k-dialog-wrapper",Zn.wrapperClass))},inputs:{actions:"actions",actionsLayout:"actionsLayout",autoFocusedElement:"autoFocusedElement",title:"title",width:"width",minWidth:"minWidth",maxWidth:"maxWidth",height:"height",minHeight:"minHeight",maxHeight:"maxHeight",animation:"animation",themeColor:"themeColor"},outputs:{action:"action",close:"close"},exportAs:["kendoDialog"],features:[e._Bn([k.oQ,{provide:_i,useExisting:k.oQ},{provide:k.mM,useValue:"kendo.dialog"}])],ngContentSelectors:de,decls:11,vars:9,consts:function(){let Ho;return Ho=$localize`:kendo.dialog.closeTitle|The title of the close button:Close`,[["kendoDialogLocalizedMessages","","closeTitle",Ho],[1,"k-overlay"],["role","dialog","aria-modal","true",1,"k-window","k-dialog",3,"ngStyle"],["dialog",""],[3,"closeTitle","id",4,"ngIf"],[4,"ngIf"],[1,"k-window-content","k-dialog-content",3,"id"],[3,"actions","layout",4,"ngIf"],[3,"closeTitle","id"],[3,"ngTemplateOutlet"],[3,"actions","layout"]]},template:function(_t,Zn){1&_t&&(e.F$t(re),e.ynx(0,0),e._UZ(1,"div",1),e.TgZ(2,"div",2,3),e.YNc(4,U,2,3,"kendo-dialog-titlebar",4),e.YNc(5,V,1,0,"ng-content",5),e.TgZ(6,"div",6),e.YNc(7,K,1,0,"ng-content",5),e.YNc(8,me,1,1,null,5),e.qZA(),e.YNc(9,J,1,0,"ng-content",5),e.YNc(10,Q,1,2,"kendo-dialog-actions",7),e.qZA(),e.BQk()),2&_t&&(e.xp6(1),e.Q6J("@overlayAppear",void 0),e.xp6(1),e.Q6J("ngStyle",Zn.styles),e.xp6(2),e.Q6J("ngIf",Zn.title),e.xp6(1),e.Q6J("ngIf",!Zn.title),e.xp6(1),e.Q6J("id",Zn.contentId),e.xp6(1),e.Q6J("ngIf",!Zn.contentTemplate),e.xp6(1),e.Q6J("ngIf",Zn.contentTemplate),e.xp6(1),e.Q6J("ngIf",!Zn.actions),e.xp6(1),e.Q6J("ngIf",Zn.actions))},dependencies:[Ei,ot,zn,f.PC,f.O5,f.tP],encapsulation:2,data:{animation:[(0,n.X$)("overlayAppear",[(0,n.SB)("in",(0,n.oB)({opacity:1})),(0,n.eR)("void => *",[(0,n.oB)({opacity:.1}),(0,n.jt)(".3s cubic-bezier(.2, .6, .4, 1)")])])]}}),fi})();class oo{}let Bi=(()=>{class fi{constructor(_t){this.dialog=_t}ngAfterViewInit(){this.dialogTitleBar&&this.dialogTitleBar.close.pipe((0,s.h)(_t=>!_t.isDefaultPrevented())).subscribe(()=>{this.dialog.close()}),this.dialogActions&&this.dialogActions.actions&&this.dialogActions.action.subscribe(_t=>this.dialog.dialog.instance.action.emit(_t))}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(oo))},fi.\u0275dir=e.lG2({type:fi,viewQuery:function(_t,Zn){if(1&_t&&(e.Gf(Ei,5),e.Gf(ot,5)),2&_t){let qo;e.iGM(qo=e.CRH())&&(Zn.dialogTitleBar=qo.first),e.iGM(qo=e.CRH())&&(Zn.dialogActions=qo.first)}}}),fi})(),Xo=(()=>{class fi{set container(_t){fi.container=_t}get container(){return fi.container}}return fi.container=null,fi.\u0275fac=function(_t){return new(_t||fi)},fi.\u0275prov=e.Yz7({token:fi,factory:fi.\u0275fac}),fi})();class Nr{constructor(Ho,_t){this.getDialogRef=Ho,this.parentInjector=_t}get(Ho,_t){return Ho===oo?this.getDialogRef():this.parentInjector.get(Ho,_t)}}let as=(()=>{class fi{constructor(_t,Zn){this.resolver=_t,this.containerService=Zn}open(_t){const Zn=this.resolver.resolveComponentFactory(Zi),qo=_t.appendTo||this.containerService.container;if(!qo)throw new Error("\nCannot attach dialog to the page.\nAdd an element that uses the kendoDialogContainer directive, or set the 'appendTo' property.\nSee https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.\n          ");return this.initializeDialog(_t.content,Zn,qo,{close:()=>{},content:null,dialog:null,result:null},_t)}initializeDialog(_t,Zn,qo,Cr,kr){const xs=this.contentFrom(_t,qo,Cr),Us=qo.createComponent(Zn,void 0,void 0,xs.nodes);Cr.dialog=Us,Us.changeDetectorRef.markForCheck(),this.applyOptions(Us.instance,kr);const Ts=new a.x,Ss=$o=>{$o instanceof pn&&($o=new Xi),Ts.next($o||new Xi),xs.componentRef&&xs.componentRef.destroy(),Us.destroy()},Ua=(0,l.T)(Ts,(0,l.T)(Us.instance.close,Us.instance.action).pipe((0,A.U)($o=>$o instanceof pn?new Xi:$o),(0,s.h)($o=>{if(kr.preventAction){const Ar=(fi=>vt(fi)||fi instanceof e.Rgc)(_t)?void 0:Cr;return!kr.preventAction($o,Ar)}return!0}))).pipe((0,d.q)(1),(0,_.B)());if(Ua.subscribe(Ss),Cr.close=Ss,Cr.result=Ua,_t&&(0,e.X6Q)()){const $o=xs.nodes[0]&&xs.nodes[0].length>0,Ar=xs.nodes[2]&&xs.nodes[2].length>0;_t.prototype instanceof Bi?(kr.title&&$o||kr.actions&&Ar)&&console.warn("\n                    Multiple Title and/or Actions configurations detected.\n                    When using a component as content, provide the title and actions either in the component's markup\n                    or via the title and actions properties of the DialogSettings object, but not both.\n                    See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'"):($o||Ar)&&console.warn("\n                    When Title and/or Actions markup is provided in content component's template,\n                    the component needs to inherit the DialogContentBase class to ensure that close and result events are properly hooked.\n                    See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'")}return Cr}applyOptions(_t,Zn){_t.title=Zn.title,_t.actions=Zn.actions,_t.actionsLayout=Zn.actionsLayout||"stretched",_t.width=Zn.width,_t.minWidth=Zn.minWidth,_t.maxWidth=Zn.maxWidth,_t.height=Zn.height,_t.minHeight=Zn.minHeight,_t.maxHeight=Zn.maxHeight,_t.autoFocusedElement=Zn.autoFocusedElement,_t.closeTitle=Zn.closeTitle,_t.cssClass=Zn.cssClass,_t.htmlAttributes=Zn.htmlAttributes,_t.animation=void 0===Zn.animation||Zn.animation,Zn.content instanceof e.Rgc&&(_t.contentTemplate=Zn.content)}contentFrom(_t,Zn,qo){const Cr=Zn.injector.get(e.Qsj);let kr=[],xs=[],Us=[],Ts=null;if("string"==typeof _t)kr=[Cr.createText(_t)];else if(_t&&!(_t instanceof e.Rgc)){const Ss=new Nr(()=>qo,Zn.injector),Ua=this.resolver.resolveComponentFactory(_t);Ts=Zn.createComponent(Ua,void 0,Ss),xs=Array.from(Ts.location.nativeElement.querySelectorAll("kendo-dialog-titlebar")),kr=[Ts.location.nativeElement],Us=Array.from(Ts.location.nativeElement.querySelectorAll("kendo-dialog-actions")),qo.content=Ts}return{componentRef:Ts,nodes:[xs,kr,Us]}}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.LFG(e._Vd),e.LFG(Xo))},fi.\u0275prov=e.Yz7({token:fi,factory:fi.\u0275fac}),fi})(),ji=10002;const Fo={draggable:!0,height:null,left:null,minHeight:100,minWidth:120,position:"absolute",resizable:!0,state:"default",top:null,width:null},rt=(fi,Ho)=>_t=>fi.kendoDrag.pipe((0,C.R)(fi.kendoRelease.pipe((0,R.b)(()=>{Ho.emit()}))),(0,A.U)(({pageX:Zn,pageY:qo})=>({originalX:_t.pageX,originalY:_t.pageY,pageX:Zn,pageY:qo})));let ai=(()=>{class fi{constructor(_t){this.ngZone=_t,this.close=new e.vpe,this.focus=new e.vpe,this.change=new e.vpe,this.stateChange=new e.vpe,this.dragStart=new e.vpe,this.dragEnd=new e.vpe,this.resizeStart=new e.vpe,this.resizeEnd=new e.vpe,this.options=Object.assign({},Fo),this.lastAction=null,this.subscriptions=new o.w0,this.dragSubscription=new o.w0}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe(),this.dragSubscription&&this.dragSubscription.unsubscribe()}init(_t){const Zn=this.options.state,qo=this.options;this.window=_t,"default"!==Zn&&(this.restoreOptions=Object.assign({},qo)),"minimized"===Zn&&(qo.height=0,qo.minHeight=0),"maximized"===Zn&&(qo.position="fixed")}onDrag(_t){this.subscriptions.add(this.ngZone.runOutsideAngular(()=>{let Zn,qo;this.dragSubscription=_t.kendoPress.pipe((0,R.b)(Cr=>{Cr.isTouch||Mt(Cr),this.focus.emit(),Zn=this.currentPosition(),qo=!1}),(0,x.w)(rt(_t,this.dragEnd))).subscribe(({pageX:Cr,pageY:kr,originalX:xs,originalY:Us})=>{qo||(this.ensureWidth(),this.dragStart.emit(),qo=!0),this.handleDrag({originalX:xs,originalY:Us,pageX:Cr,pageY:kr,startPosition:Zn})})}))}handleDrag({originalX:_t,originalY:Zn,pageX:qo,pageY:Cr,startPosition:kr}){this.options.left=kr.x+qo-_t,this.options.top=kr.y+Cr-Zn,"minimized"===this.options.state&&mi(this.restoreOptions)&&(this.restoreOptions.left=this.options.left,this.restoreOptions.top=this.options.top),this.change.emit({left:kr.x+qo-_t,top:kr.y+Cr-Zn})}onResize(_t,Zn){this.subscriptions.add(this.ngZone.runOutsideAngular(()=>{let qo,Cr=!1;_t.kendoPress.pipe((0,R.b)(kr=>{Mt(kr),this.focus.emit(),qo=this.currentOffsetAndPosition(),Cr=!1}),(0,x.w)(rt(_t,this.resizeEnd))).subscribe(({pageX:kr,pageY:xs,originalX:Us,originalY:Ts})=>{Cr||(this.resizeStart.emit(Zn),Cr=!0),this.handleResize(qo,Zn,kr-Us,xs-Ts)})}))}handleResize(_t,Zn,qo,Cr){const kr=this.options,xs={};if(Zn.indexOf("e")>=0){const Us=_t.width+qo;Us!==kr.width&&Us>=kr.minWidth&&(xs.width=Us)}if(Zn.indexOf("n")>=0){const Us=_t.height-Cr,Ts=_t.y+Cr;Us!==kr.height&&Us>=kr.minHeight&&Ts!==kr.top&&(xs.height=Us,xs.top=Ts)}if(Zn.indexOf("s")>=0){const Us=_t.height+Cr;Us!==kr.height&&Us>=kr.minHeight&&(xs.height=Us)}if(Zn.indexOf("w")>=0){const Us=_t.x+qo,Ts=_t.width-qo;Ts!==kr.width&&Ts>=kr.minWidth&&Us!==kr.left&&(xs.width=Ts,xs.left=Us)}(mi(xs.width)||mi(xs.height))&&(Ne.forEach(Us=>{mi(xs[Us])&&(this.options[Us]=xs[Us])}),this.change.emit(xs))}restoreAction(){this.lastAction="restore",this.defaultState()}defaultState(){mi(this.restoreOptions)&&(this.options=Object.assign({},this.restoreOptions)),this.options.state="default",this.stateChange.emit("default")}storeOptions(){this.restoreOptions=Object.assign({},this.options)}maximizeAction(){this.lastAction="maximize",this.maximizeState()}maximizeState(){this.storeOptions();const _t=this.windowViewPort;this.options=Object.assign({},this.options,{height:_t.height,left:0,position:"fixed",state:"maximized",top:0,width:_t.width}),this.stateChange.emit("maximized")}minimizeAction(){this.lastAction="minimize",this.minimizeState()}minimizeState(){this.storeOptions(),this.options=Object.assign({},this.options,{height:null,minHeight:0,state:"minimized"}),this.stateChange.emit("minimized")}applyManualState(){switch(this.options.state){case"default":this.clearHeight(),this.defaultState();break;case"maximized":this.clearHeight(),this.maximizeState();break;case"minimized":this.minimizeState()}}closeAction(){this.close.emit()}ensureWidth(){const _t=(0,E.cv)(this.window.nativeElement);mi(this.options.width)||(this.options.width=_t.width,this.change.emit({width:_t.width}))}clearHeight(){0===this.options.height&&delete this.options.height,0===this.options.minHeight&&delete this.options.minHeight}center(){if("maximized"===this.options.state)return;const _t=(0,E.on)(this.window.nativeElement),Zn=this.windowViewPort,qo=(0,E.cv)(this.window.nativeElement),Cr={};mi(this.options.left)||(this.options.left=_t.x+Math.max(0,(Zn.width-qo.width)/2),Cr.left=this.options.left),mi(this.options.top)||(this.options.top=_t.y+Math.max(0,(Zn.height-qo.height)/2),Cr.top=this.options.top),this.change.emit(Cr)}currentOffsetAndPosition(){const _t=this.options,Zn=(0,E.cv)(this.window.nativeElement);return Object.assign({},this.currentPosition(),{height:_t.height?_t.height:Zn.height,width:_t.width?_t.width:Zn.width})}currentPosition(){const _t=this.options;return(!_t.top||!_t.left)&&this.setPosition(),{x:this.options.left,y:this.options.top}}setPosition(){const _t=(0,E.Wl)(this.window.nativeElement,(0,E.tF)(this.window.nativeElement));this.options.left=_t.left,this.options.top=_t.top}setRestoreOption(_t,Zn){mi(this.restoreOptions)&&(this.restoreOptions[_t]=Zn)}get nextPossibleZIndex(){return ji}get nextZIndex(){return ji++}get windowViewPort(){return(0,E.qS)(this.window.nativeElement)}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.LFG(e.R0b))},fi.\u0275prov=e.Yz7({token:fi,factory:fi.\u0275fac}),fi})(),Gn=(()=>{class fi{constructor(_t,Zn,qo,Cr){this.draggable=_t,this.el=Zn,this.renderer=qo,this.service=Cr,this.subscriptions=new o.w0}get hostClass(){return!0}ngOnInit(){this.setDisplay(),this.renderer.addClass(this.el.nativeElement,"k-resize-"+this.direction),this.subscriptions.add((0,u.of)(this.draggable).subscribe(_t=>{this.service.onResize(_t,this.direction)})),this.subscriptions.add(this.service.resizeStart.subscribe(_t=>{_t!==this.direction&&this.setDisplay("none")})),this.subscriptions.add(this.service.dragStart.subscribe(()=>{this.setDisplay("none")})),this.subscriptions.add((0,l.T)(this.service.resizeEnd,this.service.dragEnd).subscribe(()=>{this.setDisplay("block")})),this.subscriptions.add(this.service.stateChange.subscribe(_t=>{this.setDisplay("default"===_t?"block":"none")}))}ngOnDestroy(){this.subscriptions.unsubscribe()}setDisplay(_t="block"){this.renderer.setStyle(this.el.nativeElement,"display","default"===this.service.options.state?_t:"none")}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(p.pD,1),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ai))},fi.\u0275dir=e.lG2({type:fi,selectors:[["","kendoWindowResizeHandle",""]],hostVars:2,hostBindings:function(_t,Zn){2&_t&&e.ekj("k-resize-handle",Zn.hostClass)},inputs:{direction:"direction"}}),fi})(),Io=(()=>{class fi{constructor(_t,Zn,qo){this.el=_t,this.ngZone=qo,this.service=Zn}ngOnInit(){this.dragDirective=new p.pD(this.el,this.ngZone),this.dragDirective.ngOnInit(),this.isDraggable&&this.subscribeDrag(),this.subscribeStateChange()}ngAfterViewInit(){const _t=this.el.nativeElement.querySelector(".k-window-title");mi(_t)&&_t.setAttribute("id",this.id)}ngOnDestroy(){this.dragDirective.ngOnDestroy(),this.unsubscribeDrag(),this.unsubscribeState()}subscribeDrag(){this.unsubscribeDrag(),this.dragSubscription=(0,u.of)(this.dragDirective).subscribe(_t=>{this.service.onDrag(_t)})}subscribeStateChange(){this.stateSubscription=this.service.stateChange.subscribe(_t=>{this.service.options.draggable&&("maximized"===_t?this.unsubscribeDrag():this.subscribeDrag())})}unsubscribeDrag(){this.dragSubscription&&(this.service.dragSubscription.unsubscribe(),this.dragSubscription.unsubscribe(),this.dragSubscription=null)}unsubscribeState(){this.stateSubscription&&(this.stateSubscription.unsubscribe(),this.stateSubscription=null)}get className(){return!0}get touchAction(){if(this.isDraggable)return"none"}handle(_t){const Zn=_t.target,qo=this.service.options.state;!un(Zn,"k-icon")&&!Fn(Zn,!1)&&this.service.options.resizable&&("default"===qo?this.service.maximizeAction():"maximized"===qo&&this.service.restoreAction())}get isDraggable(){const _t=this.service.options;return _t.draggable&&"maximized"!==_t.state}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(e.SBq),e.Y36(ai),e.Y36(e.R0b))},fi.\u0275cmp=e.Xpm({type:fi,selectors:[["kendo-window-titlebar"]],hostVars:4,hostBindings:function(_t,Zn){1&_t&&e.NdJ("dblclick",function(Cr){return Zn.handle(Cr)}),2&_t&&(e.Udp("touch-action",Zn.touchAction),e.ekj("k-window-titlebar",Zn.className))},inputs:{template:"template",id:"id"},ngContentSelectors:P,decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(_t,Zn){1&_t&&(e.F$t(),e.YNc(0,te,1,0,"ng-content",0),e.YNc(1,z,1,4,null,0)),2&_t&&(e.Q6J("ngIf",!Zn.template),e.xp6(1),e.Q6J("ngIf",Zn.template))},dependencies:[f.O5,f.tP],encapsulation:2}),fi})(),wr=(()=>{class fi{constructor(_t,Zn){this.window=_t,this.ngZone=Zn}process(_t){const Zn=_t.keyCode;switch(Zn){case Bn.up:case Bn.down:case Bn.left:case Bn.right:_t.preventDefault(),this.ngZone.run(()=>{this.handleArrow(Zn,_t)});break;case Bn.esc:this.ngZone.run(()=>{this.handleEscape()})}}handleArrow(_t,Zn){const qo=this.window.options;Zn.altKey?this.handleStateChange(_t,qo.state):(Zn.ctrlKey||Zn.metaKey)&&"default"===qo.state?this.handleResize(_t):this.handleDrag(_t)}handleEscape(){this.window.closeAction()}handleDrag(_t){const Zn=this.window.options;if(!Zn.draggable)return;const qo=this.window.currentOffsetAndPosition(),Cr=this.window.restoreOptions,kr={};let xs=10;switch((_t===Bn.left||_t===Bn.up)&&(xs*=-1),_t){case Bn.left:case Bn.right:kr.left=qo.x+xs,Zn.left=kr.left;break;case Bn.up:case Bn.down:kr.top=qo.y+xs,Zn.top=kr.top}"minimized"===Zn.state&&mi(Cr)&&(Cr.left=Zn.left,Cr.top=Zn.top),this.window.change.emit(kr)}handleResize(_t){const Zn=this.window.options;if(!Zn.resizable)return;const qo=this.window.currentOffsetAndPosition();let Cr,kr;const xs={};let Us=10;switch((_t===Bn.left||_t===Bn.up)&&(Us*=-1),_t){case Bn.left:case Bn.right:Cr=qo.width+Us,Cr!==Zn.width&&Cr>=Zn.minWidth&&(xs.width=Cr);break;case Bn.up:case Bn.down:kr=qo.height+Us,kr!==Zn.height&&kr>=Zn.minHeight&&(xs.height=kr)}(mi(xs.width)||mi(xs.height))&&(Ne.forEach(Ts=>{mi(xs[Ts])&&(this.window.options[Ts]=xs[Ts])}),this.window.change.emit(xs))}handleStateChange(_t,Zn){"minimized"===Zn&&_t===Bn.up||"maximized"===Zn&&_t===Bn.down?this.window.restoreAction():"default"===Zn&&(_t===Bn.up?this.window.maximizeAction():_t===Bn.down&&this.window.minimizeAction())}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.LFG(ai),e.LFG(e.R0b))},fi.\u0275prov=e.Yz7({token:fi,factory:fi.\u0275fac}),fi})(),bs=(()=>{class fi extends g.zx{constructor(_t,Zn,qo,Cr,kr){super(_t,Zn,null,Cr,kr),this.buttonType="button",this.buttonClass=!0,this.windowMinimizeIcon=w.YS7,this.window=qo,this.fillMode="flat",this.icon="window-minimize"}onClick(){this.isDisabled||this.window.minimizeAction()}get visible(){return"default"===this.window.options.state?"inline-flex":"none"}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ai,8),e.Y36(k.oQ),e.Y36(e.R0b))},fi.\u0275cmp=e.Xpm({type:fi,selectors:[["button","kendoWindowMinimizeAction",""]],hostVars:5,hostBindings:function(_t,Zn){1&_t&&e.NdJ("click",function(){return Zn.onClick()}),2&_t&&(e.uIk("type",Zn.buttonType),e.Udp("display",Zn.visible),e.ekj("k-window-titlebar-action",Zn.buttonClass))},inputs:{window:"window"},exportAs:["kendoWindowMinimizeAction"],features:[e._Bn([k.oQ,{provide:k.mM,useValue:"kendo.button"}]),e.qOj],attrs:q,ngContentSelectors:P,decls:5,vars:3,consts:[["innerCssClass","k-button-icon","name","window-minimize",3,"svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon","name","window-minimize",3,"svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(_t,Zn){1&_t&&(e.F$t(),e.YNc(0,se,1,1,"kendo-icon-wrapper",0),e.YNc(1,ne,2,1,"span",1),e.YNc(2,_e,1,1,"span",2),e.TgZ(3,"span",3),e.Hsn(4),e.qZA()),2&_t&&(e.Q6J("ngIf",!Zn.imageUrl&&!Zn.iconClass),e.xp6(1),e.Q6J("ngIf",Zn.imageUrl),e.xp6(1),e.Q6J("ngIf",Zn.iconClass))},dependencies:[b.ZS,f.O5,f.mk],encapsulation:2}),fi})(),ba=(()=>{class fi extends g.zx{constructor(_t,Zn,qo,Cr,kr){super(_t,Zn,null,Cr,kr),this.buttonType="button",this.buttonClass=!0,this.windowIcon=w.IHW,this.window=qo,this.fillMode="flat",this.icon="window"}onClick(){this.isDisabled||this.window.maximizeAction()}get visible(){return"default"===this.window.options.state?"inline-flex":"none"}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ai,8),e.Y36(k.oQ),e.Y36(e.R0b))},fi.\u0275cmp=e.Xpm({type:fi,selectors:[["button","kendoWindowMaximizeAction",""]],hostVars:5,hostBindings:function(_t,Zn){1&_t&&e.NdJ("click",function(){return Zn.onClick()}),2&_t&&(e.uIk("type",Zn.buttonType),e.Udp("display",Zn.visible),e.ekj("k-window-titlebar-action",Zn.buttonClass))},inputs:{window:"window"},exportAs:["kendoWindowMaximizeAction"],features:[e._Bn([k.oQ,{provide:k.mM,useValue:"kendo.button"}]),e.qOj],attrs:ge,ngContentSelectors:P,decls:5,vars:3,consts:[["innerCssClass","k-button-icon","name","window",3,"svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon","name","window",3,"svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(_t,Zn){1&_t&&(e.F$t(),e.YNc(0,Ce,1,1,"kendo-icon-wrapper",0),e.YNc(1,Te,2,1,"span",1),e.YNc(2,De,1,1,"span",2),e.TgZ(3,"span",3),e.Hsn(4),e.qZA()),2&_t&&(e.Q6J("ngIf",!Zn.imageUrl&&!Zn.iconClass),e.xp6(1),e.Q6J("ngIf",Zn.imageUrl),e.xp6(1),e.Q6J("ngIf",Zn.iconClass))},dependencies:[b.ZS,f.O5,f.mk],encapsulation:2}),fi})(),ms=(()=>{class fi extends g.zx{constructor(_t,Zn,qo,Cr,kr){super(_t,Zn,null,Cr,kr),this.windowRestoreIcon=w.LOr,this.buttonType="button",this.buttonClass=!0,this.window=qo,this.fillMode="flat",this.icon="window-restore"}onClick(){this.isDisabled||this.window.restoreAction()}get visible(){return"default"===this.window.options.state?"none":"inline-flex"}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ai,8),e.Y36(k.oQ),e.Y36(e.R0b))},fi.\u0275cmp=e.Xpm({type:fi,selectors:[["button","kendoWindowRestoreAction",""]],hostVars:5,hostBindings:function(_t,Zn){1&_t&&e.NdJ("click",function(){return Zn.onClick()}),2&_t&&(e.uIk("type",Zn.buttonType),e.Udp("display",Zn.visible),e.ekj("k-window-titlebar-action",Zn.buttonClass))},inputs:{window:"window"},exportAs:["kendoWindowRestoreAction"],features:[e._Bn([k.oQ,{provide:k.mM,useValue:"kendo.button"}]),e.qOj],attrs:fe,ngContentSelectors:P,decls:5,vars:3,consts:[["innerCssClass","k-button-icon","name","window-restore",3,"svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon","name","window-restore",3,"svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(_t,Zn){1&_t&&(e.F$t(),e.YNc(0,xe,1,1,"kendo-icon-wrapper",0),e.YNc(1,Oe,2,1,"span",1),e.YNc(2,Le,1,1,"span",2),e.TgZ(3,"span",3),e.Hsn(4),e.qZA()),2&_t&&(e.Q6J("ngIf",!Zn.imageUrl&&!Zn.iconClass),e.xp6(1),e.Q6J("ngIf",Zn.imageUrl),e.xp6(1),e.Q6J("ngIf",Zn.iconClass))},dependencies:[b.ZS,f.O5,f.mk],encapsulation:2}),fi})(),Oa=(()=>{class fi extends g.zx{constructor(_t,Zn,qo,Cr,kr){super(_t,Zn,null,Cr,kr),this.xIcon=w.FZE,this.buttonType="button",this.buttonClass=!0,this.window=qo,this.fillMode="flat",this.icon="x"}onClick(){this.isDisabled||this.window.closeAction()}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ai,8),e.Y36(k.oQ),e.Y36(e.R0b))},fi.\u0275cmp=e.Xpm({type:fi,selectors:[["button","kendoWindowCloseAction",""]],hostVars:3,hostBindings:function(_t,Zn){1&_t&&e.NdJ("click",function(){return Zn.onClick()}),2&_t&&(e.uIk("type",Zn.buttonType),e.ekj("k-window-titlebar-action",Zn.buttonClass))},inputs:{window:"window"},exportAs:["kendoWindowCloseAction"],features:[e._Bn([k.oQ,{provide:k.mM,useValue:"kendo.button"}]),e.qOj],attrs:Gt,ngContentSelectors:P,decls:5,vars:3,consts:[["innerCssClass","k-button-icon","name","close",3,"svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon","name","close",3,"svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(_t,Zn){1&_t&&(e.F$t(),e.YNc(0,Ut,1,1,"kendo-icon-wrapper",0),e.YNc(1,An,2,1,"span",1),e.YNc(2,$n,1,1,"span",2),e.TgZ(3,"span",3),e.Hsn(4),e.qZA()),2&_t&&(e.Q6J("ngIf",!Zn.imageUrl&&!Zn.iconClass),e.xp6(1),e.Q6J("ngIf",Zn.imageUrl),e.xp6(1),e.Q6J("ngIf",Zn.iconClass))},dependencies:[b.ZS,f.O5,f.mk],encapsulation:2}),fi})(),Ea=(()=>{class fi{constructor(_t,Zn,qo,Cr,kr,xs){this.el=_t,this.renderer=Zn,this.service=qo,this.navigation=Cr,this.ngZone=kr,this.localization=xs,this.keepContent=!1,this.dragStart=new e.vpe,this.dragEnd=new e.vpe,this.resizeStart=new e.vpe,this.resizeEnd=new e.vpe,this.close=new e.vpe,this.widthChange=new e.vpe,this.heightChange=new e.vpe,this.topChange=new e.vpe,this.leftChange=new e.vpe,this.stateChange=new e.vpe,this.messages={},this.tabIndex=0,this.role="dialog",this.hostClass=!0,this.titleId=null,this._themeColor=null,this.draged=!1,this.resized=!1,this.windowSubscription=new o.w0,this.domSubs=new o.w0,(0,M.s)(li),this.direction=this.localization.rtl?"rtl":"ltr",this.localizationChangeSubscription=this.localization.changes.subscribe(({rtl:Us})=>this.direction=Us?"rtl":"ltr"),this.resizeDirections=tt,this.subscribeEvents(),this.titleId=this.generateTitleId()}set draggable(_t){this.options.draggable=_t}get draggable(){return this.options.draggable}set resizable(_t){this.options.resizable=_t}get resizable(){return this.options.resizable}set themeColor(_t){this.handleThemeColorClass(this.themeColor,_t),this._themeColor=_t}get themeColor(){return this._themeColor}set cssClass(_t){this.setServiceClasses(this._cssClass,_t),this._cssClass=_t}get cssClass(){return this._cssClass}set htmlAttributes(_t){oi(_t,this.renderer,this.el.nativeElement);const Zn=this.el.nativeElement,qo=Zn.getAttribute("dir"),Cr=Zn.getAttribute("tabindex");this.direction!==qo&&(this.direction=qo),this.tabIndex!==Cr&&(this.tabIndex=Cr),this._htmlAttributes=_t}get htmlAttributes(){return this._htmlAttributes}set state(_t){this.options.state=_t}get state(){return this.options.state}set minWidth(_t){this.setOption("minWidth",_t)}get minWidth(){return this.options.minWidth}set minHeight(_t){this.setOption("minHeight",_t)}get minHeight(){return this.options.minHeight}set width(_t){this.setOption("width",_t)}get width(){return this.options.width}set height(_t){this.setOption("height",_t)}get height(){return this.options.height}set top(_t){this.setOption("top",_t)}get top(){return this.options.top}set left(_t){this.setOption("left",_t)}get left(){return this.options.left}get closeButtonTitle(){return this.messages&&this.messages.closeTitle?this.messages.closeTitle:this.localization.get("closeTitle")}get restoreButtonTitle(){return this.messages&&this.messages.restoreTitle?this.messages.restoreTitle:this.localization.get("restoreTitle")}get maximizeButtonTitle(){return this.messages&&this.messages.maximizeTitle?this.messages.maximizeTitle:this.localization.get("maximizeTitle")}get minimizeButtonTitle(){return this.messages&&this.messages.minimizeTitle?this.messages.minimizeTitle:this.localization.get("minimizeTitle")}get dir(){return this.direction}ngAfterViewInit(){(0,p.X_)()&&(this.setNextZIndex(),this.handleInitialFocus(),this.ngZone.runOutsideAngular(()=>Promise.resolve(null).then(()=>this.setInitialOffset())),this.initDomEvents(),(this.titleBarView||this.titleBarContent)&&this.renderer.setAttribute(this.el.nativeElement,"aria-labelledby",this.titleId),this.handleThemeColorClass(null,this.themeColor))}ngOnInit(){this.renderer.removeAttribute(this.el.nativeElement,"title"),this.service.init(this.el)}ngOnChanges(_t){if(Ne.forEach(Zn=>{(0,p.ln)(Zn,_t)&&this.setStyle(Zn,this.options[Zn])}),(0,p.ln)("draggable",_t)){const Zn=mi(this.titleBarContent)?this.titleBarContent:this.titleBarView;(fi=>!!fi)(_t.draggable.currentValue)?Zn.subscribeDrag():Zn.unsubscribeDrag()}(0,p.ln)("state",_t)&&(mi(this.service.lastAction)?this.service.lastAction=null:(this.service.applyManualState(),this.updateAllOffset()))}ngOnDestroy(){this.windowSubscription&&this.windowSubscription.unsubscribe(),this.domSubs&&this.domSubs.unsubscribe(),this.localizationChangeSubscription.unsubscribe()}focus(){const _t=this.el.nativeElement;mi(_t)&&_t.focus()}bringToFront(){this.setNextZIndex()}setDimension(_t,Zn){this.setOption(_t,Zn),this.setStyle(_t,Zn)}setOffset(_t,Zn){this.setOption(_t,Zn),this.setStyle(_t,Zn)}get showDefaultTitleBar(){return!mi(this.titleBarContent)}get styleMinWidth(){return this.minWidth+"px"}get styleMinHeight(){return this.minHeight+"px"}get stylePosition(){return this.options.position}get wrapperMaximizedClass(){return"maximized"===this.state}get wrapperMinimizedClass(){return"minimized"===this.state}onComponentFocus(){this.renderer.addClass(this.el.nativeElement,"k-focus"),this.setNextZIndex()}onComponentBlur(){this.renderer.removeClass(this.el.nativeElement,"k-focus")}subscribeEvents(){(0,p.X_)()&&(this.windowSubscription.add(this.service.focus.subscribe(()=>{this.el.nativeElement.focus()})),this.windowSubscription.add(this.service.dragStart.subscribe(()=>{this.draged=!0,this.ngZone.run(()=>{this.dragStart.emit()})})),this.windowSubscription.add(this.service.dragEnd.subscribe(()=>{this.draged&&(this.draged=!1,this.ngZone.run(()=>{this.dragEnd.emit()}))})),this.windowSubscription.add(this.service.close.subscribe(()=>{this.close.emit()})),this.windowSubscription.add(this.service.resizeStart.subscribe(()=>{this.resized=!0,this.ngZone.run(()=>{this.resizeStart.emit()})})),this.windowSubscription.add(this.service.resizeEnd.subscribe(()=>{this.resized&&(this.resized=!1,this.ngZone.run(()=>{this.resizeEnd.emit()}))})),this.windowSubscription.add(this.service.change.subscribe(_t=>{Ne.forEach(Zn=>{if(mi(_t[Zn])&&(this.setStyle(Zn,_t[Zn]),"maximized"!==this.state)){const qo=this[Zn+"Change"];qo.observers.length&&this.ngZone.run(()=>{qo.emit(_t[Zn])})}})})),this.windowSubscription.add(this.service.stateChange.subscribe(_t=>{mi(this.service.lastAction)&&(this.updateAllOffset(),this.stateChange.emit(_t))})))}initDomEvents(){this.el&&this.ngZone.runOutsideAngular(()=>{this.domSubs.add(this.renderer.listen(this.el.nativeElement,"keydown",_t=>{this.onKeyDown(_t)}))})}onKeyDown(_t){un(_t.target,"k-window")&&this.navigation.process(_t)}setServiceClasses(_t,Zn){const qo=this.el.nativeElement;_t&&It(_t).forEach(Cr=>{this.renderer.removeClass(qo,Cr)}),Zn&&It(Zn).forEach(Cr=>{this.renderer.addClass(qo,Cr)})}setNextZIndex(){const _t=this.el.nativeElement.style["z-index"];(!_t||this.service.nextPossibleZIndex-_t>1)&&this.renderer.setStyle(this.el.nativeElement,"z-index",this.service.nextZIndex)}setInitialOffset(){if("maximized"!==this.state)this.updateAllOffset(),(!mi(this.left)||!mi(this.top))&&this.service.center();else{const _t=this.service.windowViewPort;this.setStyle("width",_t.width),this.setStyle("height",_t.height),this.setStyle("top",0),this.setStyle("left",0)}}updateAllOffset(){Ne.forEach(_t=>{mi(this[_t])?this.setStyle(_t,this[_t]):this.removeStyle(_t)})}setStyle(_t,Zn){this.renderer.setStyle(this.el.nativeElement,_t,Zn+"px")}removeStyle(_t){this.renderer.removeStyle(this.el.nativeElement,_t)}get options(){return this.service.options}setOption(_t,Zn){if("number"!=typeof Zn&&"string"!=typeof Zn)return;const qo="number"==typeof Zn?Zn:parseInt(Zn,10);this.options[_t]=qo,this.service.setRestoreOption(_t,qo)}handleInitialFocus(){if(this.autoFocusedElement){const Zn=this.el.nativeElement.querySelector(this.autoFocusedElement);Zn&&Zn.focus()}else this.focus()}generateTitleId(){return"kendo-window-title-"+Math.ceil(1e6*Math.random()).toString()}handleThemeColorClass(_t,Zn){const qo=this.el.nativeElement;_t&&this.renderer.removeClass(qo,`k-window-${_t}`),Zn&&this.renderer.addClass(qo,`k-window-${Zn}`)}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(ai),e.Y36(wr),e.Y36(e.R0b),e.Y36(k.oQ))},fi.\u0275cmp=e.Xpm({type:fi,selectors:[["kendo-window"]],contentQueries:function(_t,Zn,qo){if(1&_t&&e.Suo(qo,Io,5),2&_t){let Cr;e.iGM(Cr=e.CRH())&&(Zn.titleBarContent=Cr.first)}},viewQuery:function(_t,Zn){if(1&_t&&(e.Gf(Io,5),e.Gf(Gn,5)),2&_t){let qo;e.iGM(qo=e.CRH())&&(Zn.titleBarView=qo.first),e.iGM(qo=e.CRH())&&(Zn.resizeHandles=qo)}},hostVars:15,hostBindings:function(_t,Zn){1&_t&&e.NdJ("focus",function(){return Zn.onComponentFocus()})("blur",function(){return Zn.onComponentBlur()}),2&_t&&(e.uIk("tabIndex",Zn.tabIndex)("role",Zn.role)("dir",Zn.dir),e.Udp("min-width",Zn.styleMinWidth)("min-height",Zn.styleMinHeight)("position",Zn.stylePosition),e.ekj("k-window",Zn.hostClass)("k-window-maximized",Zn.wrapperMaximizedClass)("k-window-minimized",Zn.wrapperMinimizedClass))},inputs:{autoFocusedElement:"autoFocusedElement",title:"title",draggable:"draggable",resizable:"resizable",themeColor:"themeColor",keepContent:"keepContent",state:"state",minWidth:"minWidth",minHeight:"minHeight",width:"width",height:"height",top:"top",left:"left"},outputs:{dragStart:"dragStart",dragEnd:"dragEnd",resizeStart:"resizeStart",resizeEnd:"resizeEnd",close:"close",widthChange:"widthChange",heightChange:"heightChange",topChange:"topChange",leftChange:"leftChange",stateChange:"stateChange"},exportAs:["kendoWindow"],features:[e._Bn([ai,wr,k.oQ,{provide:k.mM,useValue:"kendo.window"}]),e.TTD],ngContentSelectors:Mi,decls:6,vars:4,consts:function(){let Ho,_t,Zn,qo;return Ho=$localize`:kendo.window.closeTitle|The title of the close button:Close`,_t=$localize`:kendo.window.restoreTitle|The title of the restore button:Restore`,Zn=$localize`:kendo.window.maximizeTitle|The title of the maximize button:Maximize`,qo=$localize`:kendo.window.minimizeTitle|The title of the minimize button:Minimize`,[["kendoWindowLocalizedMessages","","closeTitle",Ho,"restoreTitle",_t,"maximizeTitle",Zn,"minimizeTitle",qo],[3,"template","id",4,"ngIf"],[4,"ngIf"],["class","k-window-content",3,"hidden",4,"ngIf"],[3,"ngIf"],[3,"template","id"],[1,"k-window-title"],[1,"k-window-titlebar-actions"],["kendoWindowMinimizeAction",""],["kendoWindowMaximizeAction",""],["kendoWindowRestoreAction",""],["kendoWindowCloseAction",""],[1,"k-window-content",3,"hidden"],[3,"ngTemplateOutlet"],["kendoWindowResizeHandle","","kendoDraggable","",3,"direction",4,"ngFor","ngForOf"],["kendoWindowResizeHandle","","kendoDraggable","",3,"direction"]]},template:function(_t,Zn){1&_t&&(e.F$t(nn),e.ynx(0,0)(1),e.YNc(2,xn,8,11,"kendo-window-titlebar",1),e.YNc(3,mt,1,0,"ng-content",2),e.YNc(4,sn,3,3,"div",3),e.YNc(5,yi,1,1,"ng-template",4),e.BQk()()),2&_t&&(e.xp6(2),e.Q6J("ngIf",Zn.showDefaultTitleBar),e.xp6(1),e.Q6J("ngIf",!Zn.showDefaultTitleBar),e.xp6(1),e.Q6J("ngIf","minimized"!==Zn.state||Zn.keepContent),e.xp6(1),e.Q6J("ngIf",Zn.resizable))},dependencies:[Io,bs,ba,ms,Oa,zn,f.O5,f.tP,f.sg,Gn,p.pD],encapsulation:2}),fi})();class Sa{}class tr{}let Li=(()=>{class fi{set container(_t){fi.container=_t}get container(){return fi.container}}return fi.container=null,fi.\u0275fac=function(_t){return new(_t||fi)},fi.\u0275prov=e.Yz7({token:fi,factory:fi.\u0275fac}),fi})();class ao{constructor(Ho,_t){this.getWindowRef=Ho,this.parentInjector=_t}get(Ho,_t){return Ho===tr?this.getWindowRef():this.parentInjector.get(Ho,_t)}}let Go=(()=>{class fi{constructor(_t,Zn){this.resolver=_t,this.containerService=Zn}open(_t){const Zn=this.resolver.resolveComponentFactory(Ea),qo=_t.appendTo||this.containerService.container;if(!qo)throw new Error("Cannot attach window to the page.\n                Add an element that uses the kendoWindowContainer directive, or set the 'appendTo' property.\n                See https://www.telerik.com/kendo-angular-ui/components/dialogs/window/service/\n            ");const Cr={close:()=>{},content:null,result:null,window:null},kr=this.contentFrom(_t.content,qo,Cr),xs=qo.createComponent(Zn,void 0,void 0,kr.nodes);Cr.window=xs,this.applyOptions(xs.instance,_t);const Us=new a.x,Ts=Ua=>{Us.next(Ua||new Sa),kr.componentRef&&kr.componentRef.destroy(),xs.destroy()},Ss=(0,l.T)(Us,xs.instance.close.pipe((0,A.U)(Ua=>Ua||new Sa),(0,s.h)(Ua=>{if(_t.preventClose){const $o=(fi=>vt(fi)||fi instanceof e.Rgc)(_t.content)?void 0:Cr;return!_t.preventClose(Ua,$o)}return!0}))).pipe((0,d.q)(1),(0,_.B)());return Ss.subscribe(Ts),Cr.close=Ts,Cr.result=Ss,xs.changeDetectorRef.markForCheck(),Cr}applyOptions(_t,Zn){mi(Zn.htmlAttributes)&&(_t.htmlAttributes=Zn.htmlAttributes),mi(Zn.cssClass)&&(_t.cssClass=Zn.cssClass),mi(Zn.title)&&(_t.title=Zn.title),mi(Zn.keepContent)&&(_t.keepContent=Zn.keepContent),mi(Zn.width)&&(_t.width=Zn.width),mi(Zn.minWidth)&&(_t.minWidth=Zn.minWidth),mi(Zn.height)&&(_t.height=Zn.height),mi(Zn.minHeight)&&(_t.minHeight=Zn.minHeight),mi(Zn.left)&&(_t.left=Zn.left),mi(Zn.top)&&(_t.top=Zn.top),mi(Zn.draggable)&&(_t.draggable=Zn.draggable),mi(Zn.resizable)&&(_t.resizable=Zn.resizable),mi(Zn.messages&&Zn.messages.closeTitle)&&(_t.messages.closeTitle=Zn.messages.closeTitle),mi(Zn.messages&&Zn.messages.restoreTitle)&&(_t.messages.restoreTitle=Zn.messages.restoreTitle),mi(Zn.messages&&Zn.messages.maximizeTitle)&&(_t.messages.maximizeTitle=Zn.messages.maximizeTitle),mi(Zn.messages&&Zn.messages.minimizeTitle)&&(_t.messages.minimizeTitle=Zn.messages.minimizeTitle),mi(Zn.autoFocusedElement)&&(_t.autoFocusedElement=Zn.autoFocusedElement),mi(Zn.state)&&(_t.state=Zn.state,"minimized"===Zn.state&&(_t.keepContent=!0)),Zn.content instanceof e.Rgc&&(_t.contentTemplate=Zn.content),Zn.titleBarContent instanceof e.Rgc&&(_t.titleBarTemplate=Zn.titleBarContent)}contentFrom(_t,Zn,qo){const Cr=Zn.injector.get(e.Qsj);let kr=[],xs=null;if("string"==typeof _t)kr=[Cr.createText(_t)];else if(_t&&!(_t instanceof e.Rgc)){const Us=new ao(()=>qo,Zn.injector),Ts=this.resolver.resolveComponentFactory(_t);xs=Zn.createComponent(Ts,void 0,Us),kr=[xs.location.nativeElement],qo.content=xs}return{componentRef:xs,nodes:[[],kr]}}}return fi.\u0275fac=function(_t){return new(_t||fi)(e.LFG(e._Vd),e.LFG(Li))},fi.\u0275prov=e.Yz7({token:fi,factory:fi.\u0275fac}),fi})(),Ti=(()=>{class fi{}return fi.\u0275fac=function(_t){return new(_t||fi)},fi.\u0275mod=e.oAB({type:fi}),fi.\u0275inj=e.cJS({imports:[[f.ez,b.pc,g.hJ],f.ez,b.pc,g.hJ]}),fi})(),ri=(()=>{class fi{}return fi.\u0275fac=function(_t){return new(_t||fi)},fi.\u0275mod=e.oAB({type:fi}),fi.\u0275inj=e.cJS({providers:[Xo,as],imports:[[Ti]]}),fi})(),Yr=(()=>{class fi{}return fi.\u0275fac=function(_t){return new(_t||fi)},fi.\u0275mod=e.oAB({type:fi}),fi.\u0275inj=e.cJS({providers:[Li,Go],imports:[[Ti,p.QY]]}),fi})(),Gs=(()=>{class fi{}return fi.\u0275fac=function(_t){return new(_t||fi)},fi.\u0275mod=e.oAB({type:fi}),fi.\u0275inj=e.cJS({imports:[ri,Yr]}),fi})()},31486:(he,y,i)=>{"use strict";i.d(y,{jf:()=>Ia,WN:()=>st,oX:()=>We,rI:()=>Or,g9:()=>ds,q2:()=>Ta,uc:()=>Ca,OP:()=>Hc,Gq:()=>Zs});var e=i(65879),n=i(3201),o=i(56223),a=i(12624),l=i(99842),u=i(58951),d=i(47394),s=i(63019),A=i(92438),_=i(78645),C=i(22096),R=i(91687),x=i(9237),f=i(37398),k=i(94664),w=i(48180),g=i(29028),M=i(99397),p=i(32181);function E(Pe,Tn){return(v,ue)=>!Pe.call(Tn,v,ue)}var I=i(18753),L=i(26306),D=i(79360),F=i(8251);function P(Pe){return(0,D.e)((Tn,v)=>{let ue=!1,dt=0;Tn.subscribe((0,F.x)(v,In=>(ue||(ue=!Pe(In,dt++)))&&v.next(In)))})}var O=i(76328),U=i(59773),K=(i(83620),i(96814)),X=i(73942),me=i(24579),J=i(80889),Q=i(15735),re=i(60886),de=i(65996);const te=["input"],j=function(Pe,Tn){return{focus:Pe,blur:Tn}},H=["content"],z=["list"],q=["virtualContainer"];function se(Pe,Tn){}const ne=function(Pe,Tn){return{templateRef:Pe,$implicit:Tn}};function _e(Pe,Tn){if(1&Pe&&e.YNc(0,se,0,0,"ng-template",10),2&Pe){const v=e.oxw(2);e.Q6J("templateContext",e.WLB(1,ne,v.fixedGroupTemplate.templateRef,v.currentGroup))}}function ge(Pe,Tn){if(1&Pe&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&Pe){const v=e.oxw(2);e.Tol(v.listGroupStickyHeaderTextClass),e.xp6(1),e.Oqu(v.currentGroup)}}const Ce=function(Pe,Tn,v){return{"height.px":Pe,"minHeight.px":Tn,boxSizing:v}};function Te(Pe,Tn){if(1&Pe&&(e.TgZ(0,"div",8),e.YNc(1,_e,1,4,null,5),e.YNc(2,ge,2,3,"ng-template",9),e.qZA()),2&Pe){const v=e.oxw();e.Tol(v.listGroupStickyHeaderClass),e.Q6J("ngStyle",e.kEZ(5,Ce,null==v.virtual?null:v.virtual.itemHeight,null==v.virtual?null:v.virtual.itemHeight,v.virtual?"border-box":"inherit")),e.xp6(1),e.Q6J("ngIf",v.fixedGroupTemplate),e.xp6(1),e.Q6J("ngIf",!v.fixedGroupTemplate)}}function De(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"input",14),e.NdJ("change",function(dt){e.CHM(v);const In=e.oxw().index,er=e.oxw(2);return e.KtG(er.onCheckedChange(dt,In))}),e.qZA()}if(2&Pe){const v=e.oxw().index,ue=e.oxw(2);e.Q6J("ngClass",ue.checkboxClasses)("checked",ue.isChecked(v))}}function fe(Pe,Tn){}function xe(Pe,Tn){if(1&Pe&&e.YNc(0,fe,0,0,"ng-template",10),2&Pe){const v=e.oxw().$implicit,ue=e.oxw(2);e.Q6J("templateContext",e.WLB(1,ne,ue.template.templateRef,v))}}function Oe(Pe,Tn){if(1&Pe&&(e.TgZ(0,"span",15),e._uU(1),e.qZA()),2&Pe){const v=e.oxw().$implicit,ue=e.oxw(2);e.xp6(1),e.Oqu(ue.getText(v))}}const Le=function(Pe,Tn){return{"k-disabled":Pe,"k-table-alt-row":Tn}};function Gt(Pe,Tn){if(1&Pe&&(e.TgZ(0,"li",12),e.YNc(1,De,1,2,"input",13),e.YNc(2,xe,1,4,null,5),e.YNc(3,Oe,2,1,"ng-template",9),e.qZA()),2&Pe){const v=Tn.index,ue=e.oxw(2);e.Tol(ue.listItemClass),e.Q6J("checkboxes",ue.checkboxes)("height",null==ue.virtual?null:ue.virtual.itemHeight)("index",v+ue.startFrom)("multipleSelection",ue.multipleSelection)("ngClass",e.WLB(13,Le,ue.isDisabled(v),ue.isAltRow(v))),e.uIk("id",ue.optionPrefix+"-"+v)("tabIndex",-1)("aria-selected",ue.isItemSelected(v)),e.xp6(1),e.Q6J("ngIf",ue.checkboxes.enabled),e.xp6(1),e.Q6J("ngIf",ue.template),e.xp6(1),e.Q6J("ngIf",!ue.template)}}function Ut(Pe,Tn){if(1&Pe&&e.YNc(0,Gt,4,16,"ng-template",11),2&Pe){const v=e.oxw();e.Q6J("ngForOf",v.data)}}function An(Pe,Tn){}function $n(Pe,Tn){if(1&Pe&&e.YNc(0,An,0,0,"ng-template",10),2&Pe){const v=e.oxw(2).$implicit,ue=e.oxw(2);e.Q6J("templateContext",e.WLB(1,ne,ue.groupTemplate.templateRef,v.value))}}function xn(Pe,Tn){if(1&Pe&&e._uU(0),2&Pe){const v=e.oxw(2).$implicit;e.Oqu(v.value)}}function mt(Pe,Tn){if(1&Pe&&(e.TgZ(0,"li",18,19)(2,"span"),e.YNc(3,$n,1,4,null,5),e.YNc(4,xn,1,1,"ng-template",9),e.qZA()()),2&Pe){const v=e.oxw(),ue=v.index,dt=v.$implicit,In=e.oxw(2);e.Tol(In.listGroupItemClass),e.ekj("k-table-alt-row",In.isAltRow(ue-1)),e.Q6J("ngStyle",e.kEZ(12,Ce,null==In.virtual?null:In.virtual.itemHeight,null==In.virtual?null:In.virtual.itemHeight,In.virtual?"border-box":"inherit")),e.uIk("group-index",dt.index)("id",In.optionPrefix+"-"+ue)("tabIndex",-1),e.xp6(2),e.Tol(In.listGroupItemTextClass),e.xp6(1),e.Q6J("ngIf",In.groupTemplate),e.xp6(1),e.Q6J("ngIf",!In.groupTemplate)}}function ut(Pe,Tn){}function Wt(Pe,Tn){if(1&Pe&&e.YNc(0,ut,0,0,"ng-template",10),2&Pe){const v=e.oxw(2).$implicit,ue=e.oxw(2);e.Q6J("templateContext",e.WLB(1,ne,ue.template.templateRef,v.value))}}function dn(Pe,Tn){if(1&Pe&&(e.TgZ(0,"span",15),e._uU(1),e.qZA()),2&Pe){const v=e.oxw(2).$implicit,ue=e.oxw(2);e.xp6(1),e.Oqu(ue.getText(v.value))}}function sn(Pe,Tn){if(1&Pe&&(e.TgZ(0,"li",20,19),e.YNc(2,Wt,1,4,null,5),e.YNc(3,dn,2,1,"ng-template",9),e.qZA()),2&Pe){const v=e.oxw(),ue=v.$implicit,dt=v.index,In=e.oxw(2);e.Tol(In.listItemClass),e.Q6J("height",null==In.virtual?null:In.virtual.itemHeight)("index",ue.offsetIndex)("multipleSelection",In.multipleSelection)("ngClass",e.WLB(12,Le,In.isDisabled(ue.offsetIndex),In.isAltRow(dt-1))),e.uIk("absolute-index",ue.index)("id",In.optionPrefix+"-"+dt)("tabIndex",-1)("aria-selected",In.isItemSelected(ue.offsetIndex)),e.xp6(2),e.Q6J("ngIf",In.template),e.xp6(1),e.Q6J("ngIf",!In.template)}}function fn(Pe,Tn){if(1&Pe&&(e.YNc(0,mt,5,16,"li",16),e.YNc(1,sn,4,15,"li",17)),2&Pe){const v=Tn.$implicit;e.Q6J("ngIf",v.header),e.xp6(1),e.Q6J("ngIf",!v.header)}}function yi(Pe,Tn){if(1&Pe&&e.YNc(0,fn,2,2,"ng-template",11),2&Pe){const v=e.oxw();e.Q6J("ngForOf",v.data)}}function nn(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"kendo-resize-sensor",21),e.NdJ("resize",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.listResize.emit())}),e.qZA()}}function Mi(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"div",22,23)(2,"div")(3,"kendo-resize-sensor",21),e.NdJ("resize",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.listResize.emit())}),e.qZA()()()}if(2&Pe){const v=e.oxw();e.xp6(2),e.Udp("height",v.scrollHeight,"px")}}const mi=["actionSheetSearchBar"];function Eo(Pe,Tn){1&Pe&&e._UZ(0,"kendo-icon",19)}function Ko(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"kendo-textbox",16,17),e.NdJ("valueChange",function(dt){e.CHM(v);const In=e.oxw(2);return e.KtG(In.onValueChange(dt))}),e.YNc(2,Eo,1,0,"ng-template",18),e.qZA()}if(2&Pe){const v=e.oxw(2);e.Q6J("value",v.searchBarValue)("size",v.size)}}function xo(Pe,Tn){1&Pe&&e.GkF(0)}function Bn(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"div",20)(1,"button",21),e.NdJ("click",function(){e.CHM(v);const dt=e.oxw(2);return e.KtG(dt.onCancel.emit())})("keydown.enter",function(dt){return dt.stopImmediatePropagation()}),e._uU(2),e.qZA(),e.TgZ(3,"button",22),e.NdJ("click",function(){e.CHM(v);const dt=e.oxw(2);return e.KtG(dt.onApply.emit())})("keydown.enter",function(dt){return dt.stopImmediatePropagation()}),e._uU(4),e.qZA()()}if(2&Pe){const v=e.oxw(2);e.xp6(1),e.Q6J("size",v.size),e.xp6(1),e.hij(" ",v.messageFor("cancelButton")," "),e.xp6(1),e.Q6J("size",v.size),e.xp6(1),e.hij(" ",v.messageFor("applyButton")," ")}}function Xt(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6),e._uU(4),e.qZA(),e.TgZ(5,"div",7),e._uU(6),e.qZA()(),e.TgZ(7,"div",8)(8,"button",9),e.NdJ("click",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.closePopup.emit())}),e.qZA()()(),e.TgZ(9,"div",10),e.YNc(10,Ko,3,2,"kendo-textbox",11),e.qZA()(),e.TgZ(11,"div",12)(12,"div",13),e.YNc(13,xo,1,0,"ng-container",14),e.qZA()(),e.YNc(14,Bn,5,4,"div",15)}if(2&Pe){const v=e.oxw();e.xp6(4),e.Oqu(v.title),e.xp6(2),e.Oqu(v.subtitle),e.xp6(2),e.Q6J("svgIcon",v.xIcon)("size",v.size)("tabIndex",-1),e.uIk("title",v.messageFor("clearTitle")),e.xp6(2),e.Q6J("ngIf",v.showTextInput),e.xp6(3),e.Q6J("ngTemplateOutlet",v.sharedPopupActionSheetTemplate),e.xp6(1),e.Q6J("ngIf",v.showActionButtons)}}const Ji=function(Pe){return{duration:Pe}},En=["container"],un=["popupTemplate"],Ki=["optionsList"];function Fn(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"span",10),e.NdJ("click",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.clearValue(dt))})("mousedown",function(dt){return dt.preventDefault()}),e._UZ(1,"kendo-icon-wrapper",11),e.qZA()}if(2&Pe){const v=e.oxw();e.Udp("visibility",v.clearButtonVisiblity),e.uIk("title",v.messageFor("clearTitle")),e.xp6(1),e.Q6J("svgIcon",v.xIcon)}}function oi(Pe,Tn){1&Pe&&e._UZ(0,"span",12)}function It(Pe,Tn){1&Pe&&e.GkF(0)}function Bt(Pe,Tn){if(1&Pe&&e.YNc(0,It,1,0,"ng-container",13),2&Pe){e.oxw();const v=e.MAs(12);e.Q6J("ngTemplateOutlet",v)}}function xt(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"kendo-resize-sensor",14),e.NdJ("resize",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.onResize())}),e.qZA()}}function wt(Pe,Tn){}const Mt=function(Pe){return{templateRef:Pe}};function pt(Pe,Tn){if(1&Pe&&e.YNc(0,wt,0,0,"ng-template",19),2&Pe){const v=e.oxw(2);e.Q6J("templateContext",e.VKq(1,Mt,v.headerTemplate.templateRef))}}function Lt(Pe,Tn){}function tt(Pe,Tn){if(1&Pe&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&Pe){const v=e.oxw(3);e.xp6(1),e.Oqu(v.messageFor("noDataText"))}}function Ne(Pe,Tn){if(1&Pe&&(e.TgZ(0,"div",20),e.YNc(1,Lt,0,0,"ng-template",21),e.YNc(2,tt,2,1,"ng-template",22),e.qZA()),2&Pe){const v=e.oxw(2);e.xp6(1),e.Q6J("ngIf",v.noDataTemplate)("templateContext",e.VKq(3,Mt,null==v.noDataTemplate?null:v.noDataTemplate.templateRef)),e.xp6(1),e.Q6J("ngIf",!v.noDataTemplate)}}function vt(Pe,Tn){}function ln(Pe,Tn){if(1&Pe&&e.YNc(0,vt,0,0,"ng-template",19),2&Pe){const v=e.oxw(2);e.Q6J("templateContext",e.VKq(1,Mt,v.footerTemplate.templateRef))}}function jn(Pe,Tn){if(1&Pe){const v=e.EpF();e.YNc(0,pt,1,3,null,15),e.TgZ(1,"kendo-list",16,17),e.NdJ("pageChange",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.pageChange(dt))}),e.qZA(),e.YNc(3,Ne,3,5,"div",18),e.YNc(4,ln,1,3,null,15)}if(2&Pe){const v=e.oxw();e.Q6J("ngIf",v.headerTemplate),e.xp6(1),e.Q6J("size",v.size)("rounded",v.rounded)("id",v.listBoxId)("optionPrefix",v.optionPrefix)("data",v.data)("textField",v.valueField)("valueField",v.valueField)("template",v.template)("groupTemplate",v.groupTemplate)("fixedGroupTemplate",v.fixedGroupTemplate)("height",v.listHeight)("show",v.isOpen)("virtual",v.virtual)("showStickyHeader",v.showStickyHeader),e.xp6(2),e.Q6J("ngIf",0===v.data.length),e.xp6(1),e.Q6J("ngIf",v.footerTemplate)}}const Pi=["select"],go=function(Pe){return{mousedown:Pe}};function si(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"span",13),e.NdJ("click",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.clearValue(dt))}),e._UZ(1,"kendo-icon-wrapper",14),e.qZA()}if(2&Pe){const v=e.oxw();e.Udp("visibility",v.clearButtonVisiblity),e.Q6J("kendoEventsOutsideAngular",e.VKq(5,go,v.preventEventDefault)),e.uIk("title",v.messageFor("clearTitle")),e.xp6(1),e.Q6J("svgIcon",v.xIcon)}}function ot(Pe,Tn){if(1&Pe&&e._UZ(0,"kendo-icon-wrapper",15),2&Pe){const v=e.oxw();e.Q6J("svgIcon",v.caretAltDownIcon)}}function pn(Pe,Tn){if(1&Pe&&e._UZ(0,"span",16),2&Pe){const v=e.oxw();e.Q6J("ngClass",v.buttonClasses)}}function _i(Pe,Tn){1&Pe&&e.GkF(0)}function wi(Pe,Tn){if(1&Pe&&e.YNc(0,_i,1,0,"ng-container",17),2&Pe){e.oxw();const v=e.MAs(15);e.Q6J("ngTemplateOutlet",v)}}function hi(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"kendo-resize-sensor",18),e.NdJ("resize",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.onResize())}),e.qZA()}}function zn(Pe,Tn){}function Ei(Pe,Tn){if(1&Pe&&e.YNc(0,zn,0,0,"ng-template",23),2&Pe){const v=e.oxw(2);e.Q6J("templateContext",e.VKq(1,Mt,v.headerTemplate.templateRef))}}function li(Pe,Tn){}function Xi(Pe,Tn){if(1&Pe&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&Pe){const v=e.oxw(3);e.xp6(1),e.Oqu(v.messageFor("noDataText"))}}function ki(Pe,Tn){if(1&Pe&&(e.TgZ(0,"div",24),e.YNc(1,li,0,0,"ng-template",25),e.YNc(2,Xi,2,1,"ng-template",26),e.qZA()),2&Pe){const v=e.oxw(2);e.xp6(1),e.Q6J("ngIf",v.noDataTemplate)("templateContext",e.VKq(3,Mt,v.noDataTemplate?v.noDataTemplate.templateRef:void 0)),e.xp6(1),e.Q6J("ngIf",!v.noDataTemplate)}}function bo(Pe,Tn){}function jo(Pe,Tn){if(1&Pe&&e.YNc(0,bo,0,0,"ng-template",23),2&Pe){const v=e.oxw(2);e.Q6J("templateContext",e.VKq(1,Mt,v.footerTemplate.templateRef))}}function wn(Pe,Tn){if(1&Pe){const v=e.EpF();e.YNc(0,Ei,1,3,null,19),e.TgZ(1,"kendo-list",20,21),e.NdJ("pageChange",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.pageChange(dt))}),e.qZA(),e.YNc(3,ki,3,5,"div",22),e.YNc(4,jo,1,3,null,19)}if(2&Pe){const v=e.oxw();e.Q6J("ngIf",v.headerTemplate),e.xp6(1),e.Q6J("size",v.size)("rounded",v.rounded)("id",v.listBoxId)("optionPrefix",v.optionPrefix)("data",v.data)("textField",v.textField)("valueField",v.valueField)("template",v.template)("groupTemplate",v.groupTemplate)("fixedGroupTemplate",v.fixedGroupTemplate)("height",v.listHeight)("show",v.isOpen)("virtual",v.virtual)("showStickyHeader",v.showStickyHeader),e.xp6(2),e.Q6J("ngIf",0===v.data.length),e.xp6(1),e.Q6J("ngIf",v.footerTemplate)}}function Zi(Pe,Tn){}function oo(Pe,Tn){if(1&Pe&&e.YNc(0,Zi,0,0,"ng-template",13),2&Pe){const v=e.oxw();e.Q6J("templateContext",e.WLB(1,ne,v.valueTemplate.templateRef,v.dataItem))}}function Bi(Pe,Tn){if(1&Pe&&e._uU(0),2&Pe){const v=e.oxw();e.Oqu(v.getText())}}function Xo(Pe,Tn){if(1&Pe&&e._UZ(0,"kendo-icon-wrapper",14),2&Pe){const v=e.oxw();e.Q6J("svgIcon",v.caretAltDownIcon)}}function Lo(Pe,Tn){if(1&Pe&&e._UZ(0,"span",15),2&Pe){const v=e.oxw();e.Q6J("ngClass",v.buttonClasses)}}function or(Pe,Tn){1&Pe&&e.GkF(0)}function xr(Pe,Tn){if(1&Pe&&e.YNc(0,or,1,0,"ng-container",16),2&Pe){e.oxw();const v=e.MAs(15);e.Q6J("ngTemplateOutlet",v)}}function Nr(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"kendo-resize-sensor",17),e.NdJ("resize",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.onResize())}),e.qZA()}}function as(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"div",21),e.NdJ("click",function(dt){return dt.stopImmediatePropagation()}),e.TgZ(1,"span",22),e._UZ(2,"kendo-icon-wrapper",23),e.TgZ(3,"input",24,25),e.NdJ("ngModelChange",function(dt){e.CHM(v);const In=e.oxw(2);return e.KtG(In.filterText=dt)})("keydown",function(dt){e.CHM(v);const In=e.MAs(4),er=e.oxw(2);return e.KtG(er.keydown(dt,In))})("input",function(dt){e.CHM(v);const In=e.oxw(2);return e.KtG(In.handleFilter(dt))})("focus",function(){e.CHM(v);const dt=e.oxw(2);return e.KtG(dt.onFilterFocus())})("blur",function(){e.CHM(v);const dt=e.oxw(2);return e.KtG(dt.blurFilterInput())})("click",function(){e.CHM(v);const dt=e.oxw(2);return e.KtG(dt.handleClick())}),e.qZA()()()}if(2&Pe){const v=e.oxw(2);e.xp6(1),e.Q6J("ngClass",v.filterInputClasses),e.xp6(1),e.Q6J("svgIcon",v.searchIcon),e.xp6(1),e.Q6J("filterInput",v.isFocused&&!v.touchEnabled)("dir",v.direction)("ngModel",v.filterText),e.uIk("aria-controls",v.isOpen?v.ariaControls:void 0)("aria-activedescendant",v.ariaActivedescendant)("aria-label",v.messageFor("filterInputLabel"))}}const ji=function(Pe){return{"k-disabled":Pe}};function Fo(Pe,Tn){if(1&Pe&&(e.TgZ(0,"div",26)(1,"div",27),e._uU(2),e.qZA()()),2&Pe){const v=e.oxw(2);e.Q6J("ngClass",v.optionLabelSizeClass),e.xp6(1),e.Q6J("ngClass",e.VKq(4,ji,v.isDisabledDefaultItem))("index",-1),e.xp6(1),e.hij(" ",v.getDefaultItemText()," ")}}function rt(Pe,Tn){}function ai(Pe,Tn){if(1&Pe&&(e.TgZ(0,"div",26)(1,"div",27),e.YNc(2,rt,0,0,"ng-template",13),e.qZA()()),2&Pe){const v=e.oxw(2);e.Q6J("ngClass",v.optionLabelSizeClass),e.xp6(1),e.Q6J("ngClass",e.VKq(4,ji,v.isDisabledDefaultItem))("index",-1),e.xp6(1),e.Q6J("templateContext",e.WLB(6,ne,v.itemTemplate.templateRef,v.defaultItem))}}function Gn(Pe,Tn){}function Io(Pe,Tn){if(1&Pe&&e.YNc(0,Gn,0,0,"ng-template",13),2&Pe){const v=e.oxw(2);e.Q6J("templateContext",e.VKq(1,Mt,v.headerTemplate.templateRef))}}function wr(Pe,Tn){}function bs(Pe,Tn){if(1&Pe&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&Pe){const v=e.oxw(3);e.xp6(1),e.Oqu(v.messageFor("noDataText"))}}function ba(Pe,Tn){if(1&Pe&&(e.TgZ(0,"div",28),e.YNc(1,wr,0,0,"ng-template",29),e.YNc(2,bs,2,1,"ng-template",4),e.qZA()),2&Pe){const v=e.oxw(2);e.xp6(1),e.Q6J("ngIf",v.noDataTemplate)("templateContext",e.VKq(3,Mt,v.noDataTemplate?v.noDataTemplate.templateRef:void 0)),e.xp6(1),e.Q6J("ngIf",!v.noDataTemplate)}}function ms(Pe,Tn){}function Oa(Pe,Tn){if(1&Pe&&e.YNc(0,ms,0,0,"ng-template",13),2&Pe){const v=e.oxw(2);e.Q6J("templateContext",e.VKq(1,Mt,v.footerTemplate.templateRef))}}function Ea(Pe,Tn){if(1&Pe){const v=e.EpF();e.YNc(0,as,5,8,"ng-template",4),e.YNc(1,Fo,3,6,"ng-template",4),e.YNc(2,ai,3,9,"ng-template",4),e.YNc(3,Io,1,3,null,3),e.TgZ(4,"kendo-list",18,19),e.NdJ("pageChange",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.pageChange(dt))}),e.qZA(),e.YNc(6,ba,3,5,"div",20),e.YNc(7,Oa,1,3,null,3)}if(2&Pe){const v=e.oxw();e.Q6J("ngIf",v.filterable&&!v.isActionSheetExpanded),e.xp6(1),e.Q6J("ngIf",v.defaultItem&&!v.itemTemplate),e.xp6(1),e.Q6J("ngIf",v.defaultItem&&v.itemTemplate),e.xp6(1),e.Q6J("ngIf",v.headerTemplate),e.xp6(1),e.Q6J("id",v.listBoxId)("size",v.size)("rounded",v.rounded)("optionPrefix",v.optionPrefix)("data",v.data)("textField",v.textField)("valueField",v.valueField)("template",v.itemTemplate)("groupTemplate",v.groupTemplate)("fixedGroupTemplate",v.fixedGroupTemplate)("height",v.listHeight)("show",v.isOpen)("virtual",v.virtual)("ariaLive",v.ariaLive)("showStickyHeader",v.showStickyHeader),e.xp6(2),e.Q6J("ngIf",0===v.data.length),e.xp6(1),e.Q6J("ngIf",v.footerTemplate)}}function Sa(Pe,Tn){}function tr(Pe,Tn){1&Pe&&e.YNc(0,Sa,0,0,"ng-template")}function Mr(Pe,Tn){}function Li(Pe,Tn){if(1&Pe&&e.YNc(0,Mr,0,0,"ng-template",12),2&Pe){const v=e.oxw(2).$implicit,ue=e.oxw();e.Q6J("templateContext",e.WLB(1,ne,ue.groupTemplate.templateRef,v))}}function Ao(Pe,Tn){if(1&Pe&&e._uU(0),2&Pe){const v=e.oxw(2).$implicit;e.AsE("",v.length," ",1===v.length?"item":"items"," selected")}}function ao(Pe,Tn){if(1&Pe&&(e.TgZ(0,"span",9),e.YNc(1,Li,1,4,null,10),e.YNc(2,Ao,1,2,"ng-template",11),e.qZA()),2&Pe){const v=e.oxw(2);e.xp6(1),e.Q6J("ngIf",v.groupTemplate),e.xp6(1),e.Q6J("ngIf",!v.groupTemplate)}}function Go(Pe,Tn){}function pr(Pe,Tn){if(1&Pe&&e.YNc(0,Go,0,0,"ng-template",12),2&Pe){const v=e.oxw(2).$implicit,ue=e.oxw();e.Q6J("templateContext",e.WLB(1,ne,ue.template.templateRef,v))}}function Rr(Pe,Tn){if(1&Pe&&e._uU(0),2&Pe){const v=e.oxw(2),ue=v.$implicit,dt=v.index,In=e.oxw();e.Oqu(In.tagProp(ue,In.textField,dt))}}function br(Pe,Tn){if(1&Pe&&(e.TgZ(0,"span",9),e.YNc(1,pr,1,4,null,10),e.YNc(2,Rr,1,1,"ng-template",11),e.qZA()),2&Pe){const v=e.oxw(2);e.xp6(1),e.Q6J("ngIf",v.template),e.xp6(1),e.Q6J("ngIf",!v.template)}}const Ti=function(Pe,Tn,v,ue,dt,In,er,Br,es,Ks,xa,ha){return{"k-focus":Pe,"k-disabled":Tn,"k-chip-sm":v,"k-chip-md":ue,"k-chip-lg":dt,"k-rounded-sm":In,"k-rounded-md":er,"k-rounded-lg":Br,"k-rounded-full":es,"k-chip-solid k-chip-solid-base":Ks,"k-chip-flat k-chip-flat-base":xa,"k-chip-outline k-chip-outline-base":ha}};function mr(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"div",1)(1,"span",2),e.YNc(2,tr,1,0,null,3),e.YNc(3,ao,3,2,"ng-template",null,4,e.W1O),e.YNc(5,br,3,2,"ng-template",null,5,e.W1O),e.qZA(),e.TgZ(7,"span",6)(8,"span",7)(9,"kendo-icon-wrapper",8),e.NdJ("mousedown",function(dt){const In=e.CHM(v),er=In.$implicit,Br=In.index,es=e.oxw();return e.KtG(es.deleteTag(dt,er,Br))}),e.qZA()()()()}if(2&Pe){const v=Tn.$implicit,ue=Tn.index,dt=e.MAs(4),In=e.MAs(6),er=e.oxw();e.Q6J("ngClass",e.rFY(8,Ti,[ue===er.focused,er.isTagDisabled(v,ue),"small"===er.size,"medium"===er.size,"large"===er.size,"small"===er.rounded,"medium"===er.rounded,"large"===er.rounded,"full"===er.rounded,"solid"===er.fillMode,"flat"===er.fillMode,"outline"===er.fillMode])),e.uIk("id",er.itemId(v,ue))("aria-hidden",er.tagAriaHidden(ue)),e.xp6(2),e.Q6J("ngIf",er.isGroupTag(v))("ngIfThen",dt)("ngIfElse",In),e.xp6(6),e.uIk("aria-hidden",ue!==er.focused),e.xp6(1),e.Q6J("svgIcon",er.xCircleIcon)}}const ri=["*"];function mo(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"span",12),e.NdJ("mousedown",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.clearAll(dt))}),e._UZ(1,"kendo-icon-wrapper",13),e.qZA()}if(2&Pe){const v=e.oxw();e.Udp("visibility",v.clearButtonVisiblity),e.uIk("title",v.messageFor("clearTitle")),e.xp6(1),e.Q6J("svgIcon",v.xIcon)}}function Ii(Pe,Tn){1&Pe&&e._UZ(0,"span",14)}function yo(Pe,Tn){1&Pe&&e.GkF(0)}function lr(Pe,Tn){if(1&Pe&&e.YNc(0,yo,1,0,"ng-container",15),2&Pe){e.oxw();const v=e.MAs(14);e.Q6J("ngTemplateOutlet",v)}}function Yr(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"kendo-resize-sensor",16),e.NdJ("resize",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.onResize())}),e.qZA()}}function Gs(Pe,Tn){}function fi(Pe,Tn){if(1&Pe&&e.YNc(0,Gs,0,0,"ng-template",22),2&Pe){const v=e.oxw(2);e.Q6J("templateContext",e.VKq(1,Mt,v.headerTemplate.templateRef))}}function Ho(Pe,Tn){}function _t(Pe,Tn){if(1&Pe&&e.YNc(0,Ho,0,0,"ng-template",22),2&Pe){const v=e.oxw(3);e.Q6J("templateContext",e.WLB(1,ne,v.customItemTemplate.templateRef,v.text))}}function Zn(Pe,Tn){if(1&Pe&&e._uU(0),2&Pe){const v=e.oxw(3);e.Oqu(v.text)}}function qo(Pe,Tn){if(1&Pe&&(e.TgZ(0,"div",23)(1,"div",24),e.YNc(2,_t,1,4,null,25),e.YNc(3,Zn,1,1,"ng-template",null,26,e.W1O),e._UZ(5,"kendo-icon-wrapper",27),e.qZA()()),2&Pe){const v=e.MAs(4),ue=e.oxw(2);e.Q6J("ngClass",ue.customItemSizeClass),e.xp6(1),e.Q6J("multipleSelection",!0)("index",-1),e.xp6(1),e.Q6J("ngIf",ue.customItemTemplate)("ngIfElse",v),e.xp6(3),e.Q6J("svgIcon",ue.plusIcon)}}function Cr(Pe,Tn){}function kr(Pe,Tn){if(1&Pe&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&Pe){const v=e.oxw(3);e.xp6(1),e.Oqu(v.messageFor("noDataText"))}}function xs(Pe,Tn){if(1&Pe&&(e.TgZ(0,"div",28),e.YNc(1,Cr,0,0,"ng-template",29),e.YNc(2,kr,2,1,"ng-template",30),e.qZA()),2&Pe){const v=e.oxw(2);e.xp6(1),e.Q6J("ngIf",v.noDataTemplate)("templateContext",e.VKq(3,Mt,v.noDataTemplate?v.noDataTemplate.templateRef:void 0)),e.xp6(1),e.Q6J("ngIf",!v.noDataTemplate)}}function Us(Pe,Tn){}function Ts(Pe,Tn){if(1&Pe&&e.YNc(0,Us,0,0,"ng-template",22),2&Pe){const v=e.oxw(2);e.Q6J("templateContext",e.VKq(1,Mt,v.footerTemplate.templateRef))}}function Ss(Pe,Tn){if(1&Pe){const v=e.EpF();e.YNc(0,fi,1,3,null,17),e.YNc(1,qo,6,6,"div",18),e.TgZ(2,"kendo-list",19,20),e.NdJ("pageChange",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.pageChange(dt))}),e.qZA(),e.YNc(4,xs,3,5,"div",21),e.YNc(5,Ts,1,3,null,17)}if(2&Pe){const v=e.oxw();e.Q6J("ngIf",v.headerTemplate),e.xp6(1),e.Q6J("ngIf",v.allowCustom&&v.text),e.xp6(1),e.Q6J("size",v.size)("rounded",v.rounded)("id",v.listBoxId)("optionPrefix",v.optionPrefix)("data",v.data)("textField",v.textField)("valueField",v.valueField)("template",v.template)("groupTemplate",v.groupTemplate)("fixedGroupTemplate",v.fixedGroupTemplate)("height",v.listHeight)("show",v.isOpen)("multipleSelection",!0)("virtual",v.virtual)("checkboxes",v.checkboxes)("isMultiselect",!0)("isActionSheetExpanded",v.isActionSheetExpanded)("showStickyHeader",v.showStickyHeader),e.xp6(2),e.Q6J("ngIf",0===v.data.length),e.xp6(1),e.Q6J("ngIf",v.footerTemplate)}}const Ae={name:"@progress/kendo-angular-dropdowns",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1694533024,version:"13.5.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},He=Pe=>null!=Pe,On=()=>{let Tn,v,Pe="";for(Tn=0;Tn<32;Tn++)v=16*Math.random()|0,(8===Tn||12===Tn||16===Tn||20===Tn)&&(Pe+="-"),Pe+=(12===Tn?4:16===Tn?3&v|8:v).toString(16);return Pe},xi=Pe=>Array.isArray(Pe),Wn=Pe=>He(Pe)&&"object"==typeof Pe,Vt=Pe=>"string"==typeof Pe&&0===Pe.length,Vi=Pe=>xi(Pe)&&Pe.every(Tn=>Wn(Tn)),Jn=(Pe,Tn,v)=>{const ue=Tn.map(dt=>He(dt)&&He(zt(dt,v))?zt(dt,v):dt);return Pe.reduce((dt,In)=>{const er=He(In)&&He(zt(In,v))?zt(In,v):In,Br=ue.indexOf(er);return-1!==Br&&dt.push(Br),dt},[])},zt=(Pe,Tn)=>He(Pe)?He(Tn)&&Wn(Pe)?(0,l.Yn)(Tn)(Pe):Pe:null,Oi=(Pe,Tn,v)=>{if(!He(Pe))return!1;let ue=String(Pe);return v&&(ue=ue.toLowerCase()),0===ue.indexOf(Tn)},qn=Pe=>Pe.className.includes("ng-untouched"),Ni=Pe=>{},Ue=(Pe,Tn)=>{const v=Pe.matches||Pe.msMatchesSelector||Pe.webkitMatchesSelector;return!!v&&v.call(Pe,Tn)},pe=(Pe,Tn,v)=>Pe.nativeElement.contains(Tn)||v&&v.popupElement.contains(Tn),zi=(Pe,Tn)=>({small:`k-${Pe}-sm`,medium:`k-${Pe}-md`,large:`k-${Pe}-lg`}[Tn]),Kn=Pe=>({small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[Pe]),ho=(Pe,Tn)=>({solid:`k-${Pe}-solid`,flat:`k-${Pe}-flat`,outline:`k-${Pe}-outline`}[Tn]),Wi=()=>{if(typeof window<"u")return window.innerWidth>768?"large":window.innerWidth>500?"medium":"small"},fo=Pe=>!!Pe,cr=(Pe,Tn,v)=>{const ue=Pe.element.nativeElement.querySelector(".k-actionsheet"),dt=Pe.element.nativeElement.querySelector(".k-child-animation-container");"medium"===Tn?(v.removeClass(ue,"k-actionsheet-fullscreen"),v.addClass(ue,"k-actionsheet-bottom"),v.addClass(ue,"k-adaptive-actionsheet"),v.removeStyle(dt,"top"),v.removeStyle(dt,"height"),v.setStyle(dt,"bottom","0px")):"small"===Tn&&(v.removeClass(ue,"k-actionsheet-bottom"),v.addClass(ue,"k-actionsheet-fullscreen"),v.addClass(ue,"k-adaptive-actionsheet"),v.setStyle(dt,"bottom","0px"),v.setStyle(dt,"height","100%"))},Fr=(Pe,Tn,v)=>{const ue=Pe.wrapper.nativeElement.querySelector("kendo-list ul"),dt=Tn.nativeElement.getAttribute("aria-labelledby");dt&&v.setAttribute(ue,"aria-labelledby",dt)},jr=(Pe,Tn)=>{const v=Pe.nativeElement.getAttribute("aria-labelledby");return!Tn&&v?document.getElementById(v).innerText:Tn};let Ms=(()=>{class Pe{constructor(v,ue,dt){this.localization=v,this.injector=dt,this.ariaExpanded=null,this.valueChange=new e.vpe,this.onBlur=new e.vpe,this.onFocus=new e.vpe,this.onClick=new e.vpe,this.onNavigate=new e.vpe,this.searchBarClass=!0,this._userInput="",this._previousValue="",this._placeholder="",this._isSuggestable=!1,this._isFilterable=!1,this.subs=new d.w0,this.direction=v.rtl?"rtl":"ltr",this.renderer=ue}set isSuggestable(v){this._isSuggestable=v,this.setAriaAutocomplete()}get isSuggestable(){return this._isSuggestable}set isFilterable(v){this._isFilterable=v,this.setAriaAutocomplete()}get isFilterable(){return this._isFilterable}get userInput(){return this._userInput}set userInput(v){this._userInput=v||""}get formControl(){return this.injector.get(o.a5,null)?.control||null}get value(){return this.input.nativeElement.value}set placeholder(v){this._placeholder=v||"",this.setInputSize()}get placeholder(){return this._placeholder}ngOnInit(){this.subs.add(this.localization.changes.subscribe(({rtl:v})=>this.direction=v?"rtl":"ltr"))}ngOnChanges(v){if(!(0,n.X_)())return;let ue;if(this.input&&(v.userInput||v.suggestedText)){ue=v.userInput&&v.userInput.previousValue?this._previousValue===v.userInput.previousValue?this._previousValue:v.userInput.currentValue||"":this._previousValue;const dt=this.input.nativeElement.selectionStart,In=ue.length===dt;this.writeInputValue(this.suggestedText?((Pe,Tn)=>Pe.concat(Tn.substr(Tn.toLowerCase().indexOf(Pe.toLowerCase())+Pe.length)))(this.userInput,this.suggestedText):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):(0,n.G6)(navigator.userAgent)&&!In?this.setInputSelection(dt,this.userInput.length):In?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(dt,dt),this._previousValue=this.userInput}}ngOnDestroy(){this.subs.unsubscribe()}writeInputValue(v){(0,n.X_)()&&this.renderer.setProperty(this.input.nativeElement,"value",v)}setInputSelection(v,ue){if((0,n.X_)()&&this.input.nativeElement===document.activeElement)try{this.input.nativeElement.setSelectionRange(v,ue)}catch{}}setAriaAutocomplete(){this.isFilterable&&this.renderer.setAttribute(this.input.nativeElement,"aria-autocomplete","list"),this.isSuggestable&&this.renderer.setAttribute(this.input.nativeElement,"aria-autocomplete","inline"),this.isFilterable&&this.isSuggestable&&this.renderer.setAttribute(this.input.nativeElement,"aria-autocomplete","both"),!this.isFilterable&&!this.isSuggestable&&this.renderer.removeAttribute(this.input.nativeElement,"aria-autocomplete")}handleInput(v){const ue=v.target,In=(0,n.G6)(navigator.userAgent)&&(Pe=>/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(Pe))(ue.value)?v.data:ue.value;In!==this.userInput&&(this._previousValue=In,this.valueChange.emit(In))}handleFocus(v){this.onFocus.emit(v)}handleBlur(v){this.onBlur.emit(v)}handleKeydown(v){[n.R8.ArrowUp,n.R8.ArrowDown,n.R8.ArrowLeft,n.R8.ArrowRight,n.R8.Enter,n.R8.Escape,n.R8.Delete,n.R8.Backspace,n.R8.Home,n.R8.End,n.R8.PageDown,n.R8.PageUp].indexOf(v.keyCode)>-1&&this.onNavigate.emit(v)}focus(){(0,n.X_)()&&this.input.nativeElement.focus()}blur(){(0,n.X_)()&&this.input.nativeElement.blur()}setInputSize(){const v=Br=>Br?Br.length:0,ue=this.input.nativeElement,dt=v(this.placeholder),In=v(this.value),er=Math.max(dt,In,1);this.renderer.setAttribute(ue,"size",er.toString())}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(u.oQ),e.Y36(e.Qsj),e.Y36(e.zs3))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-searchbar"]],viewQuery:function(v,ue){if(1&v&&e.Gf(te,7),2&v){let dt;e.iGM(dt=e.CRH())&&(ue.input=dt.first)}},hostVars:2,hostBindings:function(v,ue){2&v&&e.ekj("k-searchbar",ue.searchBarClass)},inputs:{id:"id",tagListId:"tagListId",activeDescendant:"activeDescendant",disabled:"disabled",readonly:"readonly",tabIndex:"tabIndex",role:"role",isLoading:"isLoading",ariaControls:"ariaControls",ariaExpanded:"ariaExpanded",isSuggestable:"isSuggestable",isFilterable:"isFilterable",userInput:"userInput",suggestedText:"suggestedText",placeholder:"placeholder"},outputs:{valueChange:"valueChange",onBlur:"onBlur",onFocus:"onFocus",onClick:"onClick",onNavigate:"onNavigate"},features:[e.TTD],decls:2,vars:18,consts:[["autocomplete","off","aria-haspopup","listbox",1,"k-input-inner",3,"id","disabled","readonly","placeholder","kendoEventsOutsideAngular","scope","input","keydown"],["input",""]],template:function(v,ue){1&v&&(e.TgZ(0,"input",0,1),e.NdJ("input",function(In){return ue.handleInput(In)})("keydown",function(In){return ue.handleKeydown(In)}),e.qZA()),2&v&&(e.Q6J("id",ue.id)("disabled",ue.disabled)("readonly",ue.readonly)("placeholder",ue.placeholder)("kendoEventsOutsideAngular",e.WLB(15,j,ue.handleFocus,ue.handleBlur))("scope",ue),e.uIk("tabIndex",ue.tabIndex)("dir",ue.direction)("role",ue.role)("aria-expanded",ue.ariaExpanded)("aria-controls",ue.ariaControls)("aria-describedby",ue.tagListId)("aria-activedescendant",ue.activeDescendant)("aria-busy",ue.isLoading)("aria-invalid",null==ue.formControl?null:ue.formControl.invalid))},dependencies:[n.nV],encapsulation:2}),Pe})(),Ca=(()=>{class Pe{constructor(v){this.templateRef=v}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.Rgc))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoDropDownListItemTemplate",""],["","kendoComboBoxItemTemplate",""],["","kendoAutoCompleteItemTemplate",""],["","kendoMultiSelectItemTemplate",""]]}),Pe})(),ks=(()=>{class Pe{constructor(v){this.templateRef=v}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.Rgc))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoDropDownListHeaderTemplate",""],["","kendoComboBoxHeaderTemplate",""],["","kendoDropDownTreeHeaderTemplate",""],["","kendoMultiColumnComboBoxHeaderTemplate",""],["","kendoAutoCompleteHeaderTemplate",""],["","kendoMultiSelectHeaderTemplate",""],["","kendoMultiSelectTreeHeaderTemplate",""]]}),Pe})(),ts=(()=>{class Pe{constructor(v){this.templateRef=v}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.Rgc))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoDropDownListFooterTemplate",""],["","kendoComboBoxFooterTemplate",""],["","kendoDropDownTreeFooterTemplate",""],["","kendoMultiColumnComboBoxFooterTemplate",""],["","kendoAutoCompleteFooterTemplate",""],["","kendoMultiSelectFooterTemplate",""],["","kendoMultiSelectTreeFooterTemplate",""]]}),Pe})(),na=(()=>{class Pe{constructor(v){this.templateRef=v}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.Rgc))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoDropDownListGroupTemplate",""],["","kendoComboBoxGroupTemplate",""],["","kendoMultiColumnComboBoxGroupTemplate",""],["","kendoAutoCompleteGroupTemplate",""],["","kendoMultiSelectGroupTemplate",""]]}),Pe})(),Xs=(()=>{class Pe{constructor(v){this.templateRef=v}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.Rgc))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoDropDownListFixedGroupTemplate",""],["","kendoComboBoxFixedGroupTemplate",""],["","kendoMultiColumnComboBoxFixedGroupTemplate",""],["","kendoAutoCompleteFixedGroupTemplate",""],["","kendoMultiSelectFixedGroupTemplate",""]]}),Pe})(),_a=(()=>{class Pe{constructor(){this.grouped=!1,this.groupIndices=[]}set data(v){this._data=v,this.grouped=this.isGrouped(v),this.grouped&&(this.groupIndices=this.getGroupIndices(v),this._flatData=this.flatten(v))}get data(){return this.grouped?this._flatData:this._data}get itemsCount(){return He(this.data)&&0!==this.data.length?(this.grouped?this._flatData.filter(ue=>!ue.header):this.data).length:0}isGrouped(v){return He(v)&&0!==v.length&&He(v[0])&&((Pe,Tn)=>!!He(Pe)&&Tn.every(v=>Pe.hasOwnProperty(v)))(v[0],["aggregates","field","items","value"])}getGroupIndices(v){const ue=[];for(let dt=0;dt<=v.length-1;dt++)ue[dt]=(ue[dt-1]||0)+v[dt].items.length;return ue}filter(v){let ue=[];if(this.isGrouped(this.data))for(let dt=0;dt<=this.groupIndices.length-1;dt++){const In=this.data[dt].items.filter(v);In&&(ue=ue.concat(In))}else ue=this.data.filter(v);return ue}indexOf(v,ue=0){let dt=In=>In===v;return this.grouped&&(dt=In=>In.value===v),this.findIndex(dt,ue)}findIndex(v,ue=0){let dt=-1;if(this.grouped){const In=this._flatData.filter(er=>!er.header&&er.offsetIndex>=ue);dt=In.findIndex(v),dt=In[dt]?In[dt].offsetIndex:-1}else{const er=this.data.slice(ue).findIndex(v);dt=-1!==er?er+ue:-1}return dt}closestGroup(v){for(let ue=v;ue>=0;ue--)if(this._flatData[ue].header)return this._flatData[ue]}find(v){const ue=this.findIndex(v);return this.itemAt(ue)}flatIndex(v){if(0===this.itemsCount)return-1;if(!this.grouped)return v;{const ue=this._flatData.find(dt=>!dt.header&&dt.offsetIndex===v);if(ue)return ue.index}return-1}itemAt(v){let ue;if(0===this.itemsCount)return ue;if(this.grouped){const dt=this._flatData.find(In=>!In.header&&In.offsetIndex===v);dt&&(ue=dt.value)}else ue=this.data[v];return ue}groupAt(v){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find(ue=>ue.header&&ue.index===v)}groupItemsIndices(){return this.isGrouped?((Pe,Tn,v)=>this.data.reduce((ue,dt)=>(v=>v.header)(dt)?[...ue,v(dt)]:ue,[]))(0,0,v=>v.index):[]}groupField(){return 0!==this.itemsCount&&this.isGrouped?this._data[0].field:null}itemGroup(v){if(!v||0===this.itemsCount||!this.isGrouped)return;const ue=this.groupField();return ue?zt(v,ue):void 0}flatten(v,ue=void 0,dt=0,In=0){let er=[];He(ue)&&er.push({header:!0,index:In+dt,offsetIndex:In,value:ue});for(let Br=0;Br<v.length;Br++){let es=[];v[Br].items?(es=this.flatten(v[Br].items,v[Br].value,dt,Br),dt+=v[Br].items.length):es.push({header:!1,index:In+dt+Br+1,offsetIndex:dt+Br,value:v[Br]}),er=er.concat(es)}return er}}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),Ws=(()=>{class Pe{constructor(v){this.dataService=v,this.itemDisabled=null}isIndexDisabled(v){if(this.itemDisabled){const ue=this.dataService.itemAt(v);if(He(ue))return this.itemDisabled({dataItem:ue,index:v});if(He(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}}isItemDisabled(v){if(this.itemDisabled){const ue=this.dataService.indexOf(v);if(-1!==ue)return this.itemDisabled({dataItem:v,index:ue});if(He(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.LFG(_a))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),cs=(()=>{class Pe{constructor(v){this.disabledItemsService=v,this.onSelect=new e.vpe,this.onChange=new e.vpe,this.onFocus=new e.vpe,this.total=0,this.selectedIndices=[],this.indicesToBeRemoved=[],this.indicesToBeAdded=[]}getTotal(){return this.total}isSelected(v){return He(this.selectedIndices.find(ue=>ue===v))}isFocused(v){return v===this.focused}focus(v){this.isFocused(v)||(this.focused=v,this.onFocus.emit(v))}select(v){this.isSelected(v)||(this.selectedIndices=[v],this.focused=v,this.onSelect.emit({indices:[v],newSelection:He(v)}))}add(v,ue){this.isSelected(v)||(this.selectedIndices.push(v),this.focused=v,this.onChange.emit({added:v,indices:this.selectedIndices.slice(),preventClosingPopup:ue}))}emitMultipleAddedRemoved(){this.onChange.emit({added:this.indicesToBeAdded,removed:this.indicesToBeRemoved,indices:this.selectedIndices.slice(),preventClosingPopup:!0,isMultipleSelection:!0}),this.indicesToBeAdded=[],this.indicesToBeRemoved=[]}addMultiple(v){this.indicesToBeAdded=v.slice(),this.selectedIndices.push(...v)}deselect(v,ue){if(!this.isSelected(v))return;const dt=this.selectedIndices.indexOf(v);this.selectedIndices.splice(dt,1),this.focused=v,0===this.selected.length&&(this.lastClickedIndex=null),this.onChange.emit({indices:this.selectedIndices.slice(),removed:v,preventClosingPopup:ue})}unselectMultiple(v){v.forEach(ue=>{const dt=this.selectedIndices.indexOf(ue);this.selectedIndices.splice(dt,1)}),this.indicesToBeRemoved=v.slice()}change(v){const ue=He(v)&&!this.isSelected(v);this.selectedIndices=[v],this.focused=v,this.onChange.emit({indices:[v],newSelection:ue})}resetSelection(v){this.selectedIndices=v instanceof Array?v:[v],this.focused=this.selectedIndices[this.selectedIndices.length-1]}get selected(){return this.selectedIndices.slice()}get focused(){return this.focusedIndex}set focused(v){this.focusedIndex!==v&&(this.focusedIndex=v,this.onFocus.emit(v))}selectFromTo(v,ue){const dt=[];for(let In=v;In<=ue;In++)!this.isSelected(In)&&!this.disabledItemsService.isIndexDisabled(In)&&dt.push(In);this.addMultiple(dt)}unselectFromTo(v,ue){const dt=[];for(let In=v;In>=ue;In--)this.isSelected(In)&&!this.disabledItemsService.isIndexDisabled(In)&&dt.push(In);this.unselectMultiple(dt)}unselectNotNeededIndices(v,ue,dt){const In=[];for(let er=0;er<v;er++)this.isSelected(er)&&In.push(er);for(let er=ue+1;er<dt;er++)this.isSelected(er)&&In.push(er);this.unselectMultiple(In)}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.LFG(Ws))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();var Ps=function(Pe){return Pe[Pe.Undefined=0]="Undefined",Pe[Pe.Open=1]="Open",Pe[Pe.Close=2]="Close",Pe[Pe.Enter=3]="Enter",Pe[Pe.Tab=4]="Tab",Pe[Pe.Esc=5]="Esc",Pe[Pe.Delete=6]="Delete",Pe[Pe.Backspace=7]="Backspace",Pe[Pe.Home=8]="Home",Pe[Pe.End=9]="End",Pe[Pe.Up=10]="Up",Pe[Pe.Down=11]="Down",Pe[Pe.Left=12]="Left",Pe[Pe.Right=13]="Right",Pe[Pe.PageDown=14]="PageDown",Pe[Pe.PageUp=15]="PageUp",Pe[Pe.SelectPrevious=16]="SelectPrevious",Pe[Pe.SelectNext=17]="SelectNext",Pe[Pe.SelectAll=18]="SelectAll",Pe[Pe.SelectAllToBeginning=19]="SelectAllToBeginning",Pe[Pe.SelectAllToEnd=20]="SelectAllToEnd",Pe}(Ps||{});class vo{constructor(Tn,v){this.index=Tn,this.originalEvent=v}}let pi=(()=>{class Pe{constructor(v,ue){this.disabledItemsService=v,this.selectionService=ue,this.open=new e.vpe,this.close=new e.vpe,this.enter=new e.vpe,this.tab=new e.vpe,this.esc=new e.vpe,this.up=new e.vpe,this.right=new e.vpe,this.down=new e.vpe,this.left=new e.vpe,this.delete=new e.vpe,this.backspace=new e.vpe,this.home=new e.vpe,this.end=new e.vpe,this.pagedown=new e.vpe,this.pageup=new e.vpe,this.selectnext=new e.vpe,this.selectprevious=new e.vpe,this.selectall=new e.vpe,this.selectalltobeginning=new e.vpe,this.selectalltoend=new e.vpe}process(v){const ue=v.originalEvent.keyCode,dt=v.originalEvent.altKey,In=v.originalEvent.shiftKey,er=v.originalEvent.ctrlKey||v.originalEvent.metaKey;let Br,es=Ps.Undefined;dt&&ue===n.R8.ArrowDown?es=Ps.Open:dt&&ue===n.R8.ArrowUp?es=Ps.Close:In&&ue===n.R8.ArrowUp?es=Ps.SelectPrevious:In&&ue===n.R8.ArrowDown?es=Ps.SelectNext:er&&ue===n.R8.KeyA?es=Ps.SelectAll:er&&In&&ue===n.R8.Home?es=Ps.SelectAllToBeginning:er&&In&&ue===n.R8.End?es=Ps.SelectAllToEnd:ue===n.R8.Enter?es=Ps.Enter:ue===n.R8.Escape?es=Ps.Esc:ue===n.R8.Tab?es=Ps.Tab:ue===n.R8.ArrowUp?(Br=this.next({current:v.current,start:v.min,end:v.max,step:-1}),es=Ps.Up):ue===n.R8.ArrowLeft?(Br=this.next({current:v.current,start:v.min,end:v.max,step:-1}),es=Ps.Left):ue===n.R8.ArrowDown?(Br=this.next({current:v.current,start:v.min,end:v.max,step:1}),es=Ps.Down):ue===n.R8.ArrowRight?(Br=this.next({current:v.current,start:v.min,end:v.max,step:1}),es=Ps.Right):ue===n.R8.Home?(Br=this.isDisabled(0)?v.current:0,es=Ps.Home):ue===n.R8.End?(Br=this.isDisabled(v.max)?v.current:v.max,es=Ps.End):ue===n.R8.Delete?es=Ps.Delete:ue===n.R8.Backspace?es=Ps.Backspace:ue===n.R8.PageDown?es=Ps.PageDown:ue===n.R8.PageUp&&(es=Ps.PageUp);const Ks=new vo(Br,v.originalEvent);return es!==Ps.Undefined&&this[Ps[es].toLowerCase()].emit(Ks),es}next(v){const{current:ue,start:dt,end:In,step:er}=v,Br=He(ue)?this.clampIndex(ue+er,dt,In):dt,es=this.firstFocusableIndex(Br,dt,In,er);return He(es)?es:this.selectionService.isSelected(ue)&&ue>=dt?ue:this.firstFocusableIndex(Br,dt,In,-1*er)}clampIndex(v,ue,dt){return!He(v)||v<ue?ue:v>dt?dt:v}firstFocusableIndex(v,ue,dt,In){for(;ue<=v&&v<=dt;){if(!this.isDisabled(v))return v;v+=In}}isDisabled(v){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(v)}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.LFG(Ws),e.LFG(cs))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),to=(()=>{class Pe{constructor(v){this.templateRef=v}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.Rgc))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoDropDownListNoDataTemplate",""],["","kendoDropDownTreeNoDataTemplate",""],["","kendoComboBoxNoDataTemplate",""],["","kendoMultiColumnComboBoxNoDataTemplate",""],["","kendoAutoCompleteNoDataTemplate",""],["","kendoMultiSelectNoDataTemplate",""],["","kendoMultiSelectTreeNoDataTemplate",""]]}),Pe})();class Ro{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class Sr{}let rs=(()=>{class Pe{constructor(v){this.element=v}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.SBq))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["li","role","option"],["li","role","group"]]}),Pe})(),Os=(()=>{class Pe{constructor(v){this.viewContainerRef=v}set templateContext(v){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0),v.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(v.templateRef,v))}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.s_b))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","templateContext",""]],inputs:{templateContext:"templateContext"}}),Pe})(),Ys=(()=>{class Pe{constructor(v){this.checkboxes={enabled:!1},this.multipleSelection=!1,this.selectionService=v}get focusedClassName(){return this.selectionService.isFocused(this.index)}get selectedClassName(){return!this.checkboxes.enabled&&this.selectionService.isSelected(this.index)}onClick(v){v.stopPropagation(),this.selectionService.lastClickedIndex=this.index,(!this.checkboxes.enabled||this.checkboxes.checkOnClick)&&(this.multipleSelection?this.selectionService.isSelected(this.index)?this.selectionService.deselect(this.index):this.selectionService.add(this.index):this.selectionService.change(this.index))}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(cs))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoDropDownsSelectable",""]],hostVars:9,hostBindings:function(v,ue){1&v&&e.NdJ("click",function(In){return ue.onClick(In)}),2&v&&(e.uIk("index",ue.index),e.Udp("height",ue.height,"px")("min-height",ue.height,"px"),e.ekj("k-focus",ue.focusedClassName)("k-selected",ue.selectedClassName))},inputs:{index:"index",checkboxes:"checkboxes",height:"height",isMultiselect:"isMultiselect",multipleSelection:"multipleSelection"}}),Pe})(),la=(()=>{class Pe{constructor(v,ue,dt,In,er,Br,es){this.dataService=v,this.wrapper=ue,this.selectionService=dt,this.disabledItemsService=In,this.cdr=er,this.zone=Br,this.renderer=es,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.type="list",this.checkboxes={enabled:!1},this.rounded="medium",this.onClick=new e.vpe,this.pageChange=new e.vpe,this.listResize=new e.vpe,this.startFrom=0,this.lastLoaded=0,this.lastScrollTop=0,this.scrollToFocused=!1,this._size="medium",this.selectSubscription=(0,s.T)(this.selectionService.onSelect.pipe((0,f.U)(Ks=>Ks.indices[0])),this.selectionService.onFocus).pipe((0,k.w)(Ks=>this.zone.onStable.pipe((0,w.q)(1),(0,f.U)(()=>Ks)))).subscribe(this.scrollToItem.bind(this)),this.prepareClasses()}set data(v){this._data=v[0]&&v[0].header?v.slice(0):v}get data(){return this._data}set size(v){"list"===this.type&&(this.renderer.removeClass(this.wrapper.nativeElement,zi("list",this.size)),v&&this.renderer.addClass(this.wrapper.nativeElement,zi("list",v)),this._size=v)}get size(){return this._size}get pageSize(){return this.virtual.pageSize?this.virtual.pageSize:Math.round(this.height/this.virtual.itemHeight)}get scrollHeight(){return this.virtual.total*this.virtual.itemHeight}get overflowY(){if(He(this.virtual))return this.hasVirtualScrollbar()?"scroll":"hidden"}get checkboxClasses(){return`${this.size?zi("checkbox",this.size):""} ${this.rounded?Kn(this.rounded):""}`}ngOnChanges(v){(0,n.ln)("data",v,!1)&&(this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!v.data.isFirstChange()),this.setOverflow()),(0,n.ln)("virtual",v,!1)&&this.setOverflow(),(0,n.ln)("type",v,!1)&&this.prepareClasses()}ngAfterViewInit(){this.setComponentClasses(),this.zone.runOutsideAngular(()=>{this.scrollSubscription=(0,A.R)(this.content.nativeElement,"scroll").pipe((0,g.e)(100),(0,M.b)(this.prefetchData.bind(this)),(0,M.b)(this.findCurrentGroup.bind(this))).subscribe(()=>{this.lastScrollTop=this.content.nativeElement.scrollTop})}),this.setGroupAttributes(),this.setOverflow()}setGroupAttributes(){const v=document.querySelectorAll("li");let ue,er,dt=[],In=!1;v.forEach((Br,es)=>{ue="group"===Br.getAttribute("role"),!ue&&In&&(this.renderer.setAttribute(Br,"aria-describedby",er.getAttribute("id")),dt.push(Br.getAttribute("id")),(es+1>=v.length||"group"===v[es+1]?.getAttribute("role"))&&(this.renderer.setAttribute(er,"aria-owns",dt.join(" ")),dt=[])),ue&&(In=!0,er=Br)})}ngAfterViewChecked(){this.virtual&&this.positionItems(),this.items&&this.scrollToFocused&&(this.scrollToFocused=!1,this.scrollToItem(this.items.length&&-1===this.selectionService.focused?0:this.selectionService.focused)),this.dataService.grouped&&this.findCurrentGroup()}ngOnDestroy(){this.selectSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()}onCheckedChange(v,ue){const dt=v.target.checked;dt&&!this.selectionService.isSelected(ue)&&this.selectionService.add(ue),!dt&&this.selectionService.isSelected(ue)&&this.selectionService.deselect(ue)}prepareClasses(){"list"===this.type?(this.listContentClass="k-list-content",this.listClass="k-list-ul",this.listItemClass="k-list-item",this.listVirtualClass="k-virtual-list",this.listGroupStickyHeaderClass="k-list-group-sticky-header",this.listGroupStickyHeaderTextClass="k-list-header-text",this.listGroupItemClass="k-list-group-item",this.listGroupItemTextClass="k-list-item-text"):(this.listContentClass="k-table-body k-table-scroller",this.listClass="k-table k-table-list",this.listItemClass="k-table-row",this.listVirtualClass="k-virtual-table",this.listGroupStickyHeaderClass="k-table-group-sticky-header",this.listGroupStickyHeaderTextClass="k-table-th",this.listGroupItemClass="k-table-group-row",this.listGroupItemTextClass="k-table-th")}isChecked(v){return this.selectionService.isSelected(this.virtual?v+this.virtual.skip:v)}firstVisibleItem(){const v=this.content.nativeElement,ue=v.getBoundingClientRect(),dt=Array.prototype.slice.call(v.querySelectorAll(".k-disabled"));dt.forEach(er=>this.renderer.setStyle(er,"pointer-events","auto"));const In=document.elementFromPoint(ue.left+1,ue.top+1);return dt.forEach(er=>this.renderer.setStyle(er,"pointer-events","none")),((Pe,Tn)=>{let v=Pe;for(;null!==v&&1===v.nodeType;){if(Ue(v,"li"))return v;v=v.parentElement||v.parentNode}return null})(In)}findCurrentGroup(){if(!this.dataService.grouped)return void(this.currentGroup=void 0);const v=this.firstVisibleItem();if(v){let ue;"group"===v.getAttribute("role")?(ue=parseInt(v.getAttribute("group-index"),10),this.currentGroup=this.dataService.groupAt(ue).value):(ue=parseInt(v.getAttribute("index"),10),this.currentGroup=this.dataService.itemGroup(this.dataService.itemAt(ue)))}else this.currentGroup=void 0;this.cdr.detectChanges()}prefetchData(){if(!this.virtual)return;const v=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),ue=this.content.nativeElement.scrollTop,dt=Math.trunc(ue/this.virtual.itemHeight),In=ue>this.lastScrollTop,es=this.lastLoaded-this.pageSize+v>=dt-(this.pageSize-(this.lastLoaded-this.startFrom));In&&dt+v>=this.lastLoaded&&this.lastLoaded<this.virtual.total-1&&this.changePage(dt),!In&&es&&this.changePage(dt-this.pageSize+v+1)}changePage(v){this.zone.run(()=>{let ue=this.pageSize+v;ue>this.virtual.total&&(v--,ue=this.virtual.total),v<0&&(v=0),this.startFrom=v,this.lastLoaded=ue,this.pageChange.emit({skip:v,take:this.pageSize})}),this.setGroupAttributes()}index(v,ue){return v>0?this.dataService.groupIndices[v-1]+ue:ue}getText(v){return zt(v,this.textField)}getValue(v){return zt(v,this.valueField)}isDisabled(v){return He(this.virtual)&&(v+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(v)}isAltRow(v){return"dropdowngrid"===this.type&&v%2!=0}scrollToItem(v){let ue=v;if(this.dataService.grouped&&(ue=this.dataService.flatIndex(v)),this.virtual&&ue>-1)return void this.scrollToIndex(ue);const dt=this.items.toArray();He(dt[ue])&&-1!==ue&&this.scroll(dt[ue].element)}scrollWithOnePage(v){const ue=this.content.nativeElement,dt=ue.clientHeight;v===Ps.PageDown?ue.scrollTop+=dt:v===Ps.PageUp&&(ue.scrollTop-=dt)}scrollToIndex(v){const ue=this.content.nativeElement;let dt=ue.scrollTop;const In=v*this.virtual.itemHeight,Br=ue.clientHeight,es=In+this.virtual.itemHeight;dt>In?dt=In:es>dt+Br&&(dt=es-Br),ue.scrollTop=dt}scroll(v){if(!v)return;const ue=v.nativeElement,dt=this.content.nativeElement,In=ue.offsetTop;let Br=dt.scrollTop;const es=dt.clientHeight,Ks=In+ue.offsetHeight;Br>In?Br=In:Ks>Br+es&&(Br=Ks-es),dt.scrollTop=Br}hasScrollbar(){return!!(He(this.items)&&this.items.length&&He(this.list)&&He(this.content))&&(He(this.virtual)&&this.hasVirtualScrollbar()||this.list.nativeElement.scrollHeight>this.content.nativeElement.offsetHeight)}isItemSelected(v){return this.selectionService.isSelected(v)||null}setOverflow(){if(this.virtual){const v=this.hasVirtualScrollbar()?"scroll":"hidden";this.renderer.setStyle(this.content.nativeElement,"overflow-y",v)}}hasVirtualScrollbar(){return this.virtualContainer&&(this.virtualContainer&&this.virtualContainer.nativeElement.offsetHeight)>this.content.nativeElement.offsetHeight}positionItems(){this.items.forEach((v,ue)=>{this.renderer.setStyle(v.element.nativeElement,"transform",`translateY(${(ue+this.startFrom)*this.virtual.itemHeight}px`)})}firstGroupHeaderInTargetedPage(v){return!He(this.virtual)||0===this.virtual.skip&&this.virtual.pageSize>v}setComponentClasses(){"list"===this.type&&(this.renderer.addClass(this.wrapper.nativeElement,"k-list"),this.size&&this.renderer.addClass(this.wrapper.nativeElement,zi("list",this.size))),"dropdowngrid"===this.type&&this.renderer.setStyle(this.wrapper.nativeElement,"overflow-y","scroll"),He(this.virtual)&&this.renderer.addClass(this.wrapper.nativeElement,this.listVirtualClass)}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(_a),e.Y36(e.SBq),e.Y36(cs),e.Y36(Ws),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(e.Qsj))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-list"]],viewQuery:function(v,ue){if(1&v&&(e.Gf(H,7),e.Gf(z,7),e.Gf(q,5),e.Gf(rs,5)),2&v){let dt;e.iGM(dt=e.CRH())&&(ue.content=dt.first),e.iGM(dt=e.CRH())&&(ue.list=dt.first),e.iGM(dt=e.CRH())&&(ue.virtualContainer=dt.first),e.iGM(dt=e.CRH())&&(ue.items=dt)}},inputs:{selected:"selected",focused:"focused",textField:"textField",valueField:"valueField",height:"height",template:"template",groupTemplate:"groupTemplate",fixedGroupTemplate:"fixedGroupTemplate",show:"show",id:"id",optionPrefix:"optionPrefix",multipleSelection:"multipleSelection",virtual:"virtual",type:"type",checkboxes:"checkboxes",ariaLive:"ariaLive",isMultiselect:"isMultiselect",isActionSheetExpanded:"isActionSheetExpanded",showStickyHeader:"showStickyHeader",data:"data",size:"size",rounded:"rounded"},outputs:{onClick:"onClick",pageChange:"pageChange",listResize:"listResize"},features:[e.TTD],decls:9,vars:17,consts:[[3,"class","ngStyle",4,"ngIf"],["unselectable","on"],["content",""],["role","listbox"],["list",""],[4,"ngIf"],[3,"resize",4,"ngIf"],["class","k-height-container","role","presentation",4,"ngIf"],[3,"ngStyle"],[3,"ngIf"],[3,"templateContext"],["ngFor","",3,"ngForOf"],["role","option","kendoDropDownsSelectable","",3,"checkboxes","height","index","multipleSelection","ngClass"],["type","checkbox","class","k-checkbox","role","presentation","tabindex","-1","aria-hidden","true",3,"ngClass","checked","change",4,"ngIf"],["type","checkbox","role","presentation","tabindex","-1","aria-hidden","true",1,"k-checkbox",3,"ngClass","checked","change"],[1,"k-list-item-text"],["role","group",3,"class","k-table-alt-row","ngStyle",4,"ngIf"],["role","option","kendoDropDownsSelectable","",3,"height","index","multipleSelection","class","ngClass",4,"ngIf"],["role","group",3,"ngStyle"],["li",""],["role","option","kendoDropDownsSelectable","",3,"height","index","multipleSelection","ngClass"],[3,"resize"],["role","presentation",1,"k-height-container"],["virtualContainer",""]],template:function(v,ue){1&v&&(e.YNc(0,Te,3,9,"div",0),e.TgZ(1,"div",1,2)(3,"ul",3,4),e.YNc(5,Ut,1,1,null,5),e.YNc(6,yi,1,1,null,5),e.YNc(7,nn,1,0,"kendo-resize-sensor",6),e.qZA(),e.YNc(8,Mi,4,2,"div",7),e.qZA()),2&v&&(e.Q6J("ngIf",ue.dataService.grouped&&ue.showStickyHeader),e.xp6(1),e.Tol(ue.listContentClass),e.Udp("overscroll-behavior","none")("max-height",ue.height,"px"),e.xp6(2),e.Tol(ue.listClass),e.uIk("id",ue.id)("aria-live",ue.ariaLive)("aria-multiselectable",ue.isMultiselect)("aria-hidden",!ue.show),e.xp6(2),e.Q6J("ngIf",!ue.dataService.grouped&&ue.show),e.xp6(1),e.Q6J("ngIf",ue.dataService.grouped),e.xp6(1),e.Q6J("ngIf",!ue.virtual),e.xp6(1),e.Q6J("ngIf",ue.virtual))},dependencies:[n.NG,K.O5,K.PC,Os,K.sg,rs,Ys,K.mk],encapsulation:2}),Pe})();const Da={pageSize:50,itemHeight:28},Ka=(Pe,Tn)=>{const v=Object.assign({},Da,Tn);return!0===Pe?v:Pe?{pageSize:Da.pageSize,...Pe}:null},nl=new e.OlP("dropdowns-touch-enabled");let il=(()=>{class Pe{constructor(v){this.localization=v,this.closePopup=new e.vpe,this.textInputChange=new e.vpe,this.navigate=new e.vpe,this.onExpand=new e.vpe,this.onCollapse=new e.vpe,this.onApply=new e.vpe,this.onCancel=new e.vpe,this.searchBarValue="",this.animationDuration=300,this.xIcon=X.FZE}messageFor(v){return this.localization.get(v)}onValueChange(v){this.searchBarValue=v,this.textInputChange.emit(v)}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(u.oQ))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["responsive-renderer"]],viewQuery:function(v,ue){if(1&v&&(e.Gf(me._G,5),e.Gf(mi,5)),2&v){let dt;e.iGM(dt=e.CRH())&&(ue.actionSheet=dt.first),e.iGM(dt=e.CRH())&&(ue.actionSheetSearchBar=dt.first)}},inputs:{title:"title",showActionButtons:"showActionButtons",subtitle:"subtitle",size:"size",showTextInput:"showTextInput",sharedPopupActionSheetTemplate:"sharedPopupActionSheetTemplate",isActionSheetExpanded:"isActionSheetExpanded",text:"text",placeholder:"placeholder"},outputs:{closePopup:"closePopup",textInputChange:"textInputChange",navigate:"navigate",onExpand:"onExpand",onCollapse:"onCollapse",onApply:"onApply",onCancel:"onCancel"},decls:3,vars:4,consts:[[3,"animation","expanded","overlayClick","keydown","expand","collapse"],["actionSheet",""],["kendoActionSheetTemplate",""],[1,"k-text-center","k-actionsheet-titlebar"],[1,"k-actionsheet-titlebar-group","k-hbox"],[1,"k-actionsheet-title"],[1,"k-text-center"],[1,"k-actionsheet-subtitle","k-text-center"],[1,"k-actionsheet-actions"],["kendoButton","","icon","x","type","button","fillMode","flat","aria-hidden","true","innerCssClass","k-button-icon",3,"svgIcon","size","tabIndex","click"],[1,"k-actionsheet-titlebar-group","k-actionsheet-filter"],["placeholder","Filter","class","k-searchbox","autocomplete","off",3,"value","size","valueChange",4,"ngIf"],[1,"k-actionsheet-content","!k-overflow-hidden"],[1,"k-list-container"],[4,"ngTemplateOutlet"],["class","k-actionsheet-footer k-actions k-actions-stretched",4,"ngIf"],["placeholder","Filter","autocomplete","off",1,"k-searchbox",3,"value","size","valueChange"],["actionSheetSearchBar",""],["kendoTextBoxPrefixTemplate",""],["name","search"],[1,"k-actionsheet-footer","k-actions","k-actions-stretched"],["kendoButton","","tabindex","0","aria-disabled","false","type","button","themeColor","base",3,"size","click","keydown.enter"],["kendoButton","","tabindex","0","aria-disabled","false","type","button","themeColor","primary",3,"size","click","keydown.enter"]],template:function(v,ue){1&v&&(e.TgZ(0,"kendo-actionsheet",0,1),e.NdJ("overlayClick",function(){return ue.closePopup.emit()})("keydown",function(In){return ue.navigate.emit(In)})("expand",function(){return ue.onExpand.emit()})("collapse",function(){return ue.onCollapse.emit()}),e.YNc(2,Xt,15,9,"ng-template",2),e.qZA()),2&v&&e.Q6J("animation",e.VKq(2,Ji,ue.animationDuration))("expanded",ue.isActionSheetExpanded)},dependencies:[me._G,Q.r0,J.PL,re.oJ,me.DL,K.O5,J.Em,K.tP],encapsulation:2}),Pe})(),xl=(()=>{class Pe extends u.Z1{}return Pe.\u0275fac=function(){let Tn;return function(ue){return(Tn||(Tn=e.n5z(Pe)))(ue||Pe)}}(),Pe.\u0275dir=e.lG2({type:Pe,inputs:{noDataText:"noDataText",clearTitle:"clearTitle",checkAllText:"checkAllText",selectButtonText:"selectButtonText",filterInputLabel:"filterInputLabel",popupLabel:"popupLabel",applyButton:"applyButton",cancelButton:"cancelButton"},features:[e.qOj]}),Pe})(),eo=(()=>{class Pe extends xl{constructor(v){super(),this.service=v}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(u.oQ))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoDropDownListLocalizedMessages",""],["","kendoDropDownTreeLocalizedMessages",""],["","kendoComboBoxLocalizedMessages",""],["","kendoMultiColumnComboBoxLocalizedMessages",""],["","kendoAutoCompleteLocalizedMessages",""],["","kendoMultiSelectLocalizedMessages",""],["","kendoMultiSelectTreeLocalizedMessages",""]],features:[e._Bn([{provide:xl,useExisting:(0,e.Gpc)(()=>Pe)}]),e.qOj]}),Pe})();const ia={multi:!0,provide:o.JU,useExisting:(0,e.Gpc)(()=>Ia)};let Ia=(()=>{class Pe{constructor(v,ue,dt,In,er,Br,es,Ks,xa,ha,Aa){this.localization=v,this.dataService=ue,this.popupService=dt,this.selectionService=In,this.navigationService=er,this.disabledItemsService=Br,this._zone=es,this.cdr=Ks,this.renderer=xa,this.hostElement=ha,this.touchEnabled=Aa,this.animationDuration=300,this.xIcon=X.FZE,this.highlightFirst=!0,this.showStickyHeader=!0,this.focusableId=`k-${On()}`,this.placeholder="",this.adaptiveMode="none",this.title="",this._listHeight=200,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new e.vpe,this.filterChange=new e.vpe,this.open=new e.vpe,this.opened=new e.vpe,this.close=new e.vpe,this.closed=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.widgetClasses=!0,this.listBoxId=`k-${On()}`,this.optionPrefix=`k-${On()}`,this.windowSize="large",this.onChangeCallback=Ni,this.onTouchedCallback=Ni,this.popupMouseDownHandler=vl=>vl.preventDefault(),this._popupSettings={animate:!0},this._open=!1,this._value="",this.subs=new d.w0,this.valueChangeSubject=new _.x,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",(0,a.s)(Ae),this.direction=v.rtl?"rtl":"ltr",this.wrapper=this.hostElement.nativeElement,this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.selectionService.resetSelection([-1])}get actionSheet(){return this.responsiveRendererComponent?.actionSheet}get actionSheetSearchBar(){return this.responsiveRendererComponent?.actionSheetSearchBar}get width(){let v=0;(0,n.X_)()&&(v=this.wrapper.offsetWidth);const ue=this.popupSettings.width||v;return{min:isNaN(v)?v:`${v}px`,max:isNaN(ue)?ue:`${ue}px`}}get height(){const v=this.popupSettings.height;return He(v)?`${v}px`:"auto"}get listContainerClasses(){const v=["k-list-container","k-autocomplete-popup"];return this.popupSettings.popupClass&&v.push(this.popupSettings.popupClass),v}get suggestion(){if(!this.text||!this.suggestedText)return void(this.suggestedText=void 0);const v=this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase());return this.suggest&&!this.backspacePressed&&v?this.suggestedText:void 0}get appendTo(){const{appendTo:v}=this.popupSettings;if(v&&"root"!==v)return"component"===v?this.container:v}get clearButtonVisiblity(){if(this.touchEnabled)return"visible"}get ariaControls(){return this.isOpen?this.listBoxId:void 0}toggle(v){Promise.resolve(null).then(()=>{const ue=He(v)?v:!this._open;this._toggle(ue)})}get isOpen(){return fo(this._open||this.isActionSheetExpanded)}handleClick(){this.windowSize=Wi(),this.isAdaptive&&this.togglePopup(!0)}togglePopup(v){this.disabled||this.readonly||this.isOpen===v||this.triggerPopupEvents(v)||this._toggle(v)}get activeDescendant(){if(!this.isOpen||!He(this.selectionService.focused)||-1===this.selectionService.focused)return null;const v=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+zt(v,this.valueField)}set data(v){this.dataService.data=v||[],this.virtual&&(this.virtual.skip=0),this.filterable&&(this.selectionService.focused=this.isOpen&&this.data.length&&this.highlightFirst?this.firstFocusableIndex(0):-1),this.suggest&&this.dataService.itemsCount>0&&(this.suggestedText=zt(this.dataService.itemAt(0),this.valueField))}get data(){const v=this.virtual;if(v){const ue=v.skip||0,dt=ue+v.pageSize;return v.total=this.dataService.data.length,this.dataService.data.slice(ue,dt)}return this.dataService.data}set value(v){this.verifySettings(v),this._value=v||"",this.text=this.value,this.cdr.markForCheck()}get value(){return this._value||""}set subtitle(v){this._subtitle=v}get subtitle(){return this._subtitle||this.placeholder}get isAdaptiveModeEnabled(){return"auto"===this.adaptiveMode}set popupSettings(v){this._popupSettings=Object.assign({animate:!0},v)}get popupSettings(){return this._popupSettings}set listHeight(v){this._listHeight=v}get listHeight(){if(!this.isAdaptive)return this._listHeight}set itemDisabled(v){if("function"!=typeof v)throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(v)}.`);this.disabledItemsService.itemDisabled=v}set tabIndex(v){this.tabindex=v}get tabIndex(){return this.tabindex}set virtual(v){this._virtualSettings=Ka(v)}get virtual(){return this._virtualSettings}set size(v){const ue=v||"medium";this.renderer.removeClass(this.wrapper,zi("input",this.size)),"none"!==v&&this.renderer.addClass(this.wrapper,zi("input",ue)),this._size=ue}get size(){return this._size}set rounded(v){const ue=v||"medium";this.renderer.removeClass(this.wrapper,Kn(this.rounded)),"none"!==v&&this.renderer.addClass(this.wrapper,Kn(ue)),this._rounded=ue}get rounded(){return this._rounded}set fillMode(v){const ue=v||"solid";this.renderer.removeClass(this.wrapper,ho("input",this.fillMode)),"none"!==v&&this.renderer.addClass(this.wrapper,ho("input",ue)),this._fillMode=ue}get fillMode(){return this._fillMode}get isFocused(){return this._isFocused}set isFocused(v){this.renderer[v?"addClass":"removeClass"](this.wrapper,"k-focus"),this._isFocused=v}get isDisabled(){return this.disabled}get isLoading(){return this.loading}get dir(){return this.direction}get isActionSheetExpanded(){return this.actionSheet?.expanded}get isAdaptive(){return this.isAdaptiveModeEnabled&&"large"!==this.windowSize}ngOnInit(){this.renderer.removeAttribute(this.wrapper,"tabindex"),this.subs.add(this.localization.changes.subscribe(({rtl:v})=>{this.direction=v?"rtl":"ltr",this.cdr.detectChanges()})),this.setComponentClasses()}ngAfterViewInit(){this.windowSize=Wi(),this.cdr.detectChanges(),this.actionSheet&&(0,n.X_)()&&(this.actionSheet.element.nativeElement.style.setProperty("--kendo-actionsheet-height","60vh"),this.actionSheet.element.nativeElement.style.setProperty("--kendo-actionsheet-max-height","none"))}ngOnDestroy(){this.destroyPopup(),this.subs.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()}ngOnChanges(v){const ue=this.virtual;ue&&v.data&&v.data.isFirstChange()&&this.pageChange({skip:0,take:ue.pageSize})}reset(){this.value=""}messageFor(v){return this.localization.get(v)}onAdaptiveTextBoxChange(v){this.search(v)}clearValue(v){v.stopImmediatePropagation(),this.focus(),this.change(""),this.filterable&&this.filterChange.emit(""),this.selectionService.resetSelection([])}writeValue(v){this.value=v}registerOnChange(v){this.onChangeCallback=v}registerOnTouched(v){this.onTouchedCallback=v}setDisabledState(v){this.disabled=v}focusItemAt(v){const ue=v>=0&&v<this.data.length;He(v)&&ue&&!this.disabledItemsService.isIndexDisabled(v)?this.selectionService.focus(v):this.selectionService.focus(-1)}focus(){this.disabled||this.searchbar.focus()}blur(){this.disabled||this.searchbar.blur()}onResize(){if(this.isAdaptiveModeEnabled&&this.windowSize!==Wi()&&(this.isOpen&&this.togglePopup(!1),this.windowSize=Wi(),this.cdr.detectChanges()),this._open&&!this.isActionSheetExpanded){const v=this.popupRef.popupElement,{min:ue,max:dt}=this.width;v.style.minWidth=ue,v.style.width=dt}}emitChange(v){this.onChangeCallback(v),this.valueChange.emit(v)}verifySettings(v){if((0,e.X6Q)()&&He(v)&&"string"!=typeof v)throw new Error("Expected value of type string. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/autocomplete/value-binding/")}search(v,ue=0){const dt=this.findIndex(v,ue);this.disabledItemsService.isIndexDisabled(dt)?dt+1<this.dataService.itemsCount?this.search(v,dt+1):this.selectionService.focus(-1):(this.selectionService.focus(dt),this.suggest&&(this.suggestedText=zt(this.dataService.itemAt(dt),this.valueField)))}navigate(v){this.isOpen&&this.selectionService.focus(v)}handleNavigate(v){const ue=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused;if(this.disabled||this.readonly||isNaN(ue))return;const dt=this.navigationService.process({current:ue,max:this.dataService.itemsCount-1,min:0,originalEvent:v});dt!==Ps.Undefined&&dt!==Ps.Backspace&&dt!==Ps.Delete&&dt!==Ps.Home&&dt!==Ps.End&&dt!==Ps.Left&&dt!==Ps.Right&&dt!==Ps.PageDown&&dt!==Ps.PageUp&&(dt===Ps.Enter&&this.isOpen||dt!==Ps.Enter)&&v.preventDefault(),dt===Ps.Tab&&this.isActionSheetExpanded&&(v.stopImmediatePropagation(),this.togglePopup(!1))}handleEnter(v){const ue=this.selectionService.focused;let dt;if(this.isOpen&&v.originalEvent.preventDefault(),ue>=0)dt=zt(this.dataService.itemAt(ue),this.valueField);else{const In=this.suggest&&this.suggestedText&&this.data.length&&zt(this.dataService.itemAt(0),this.valueField).toLowerCase()===this.searchbar.value.toLowerCase();dt=this.isOpen&&In?this.suggestedText:this.searchbar.value}this.isActionSheetExpanded&&ue>=0&&this.togglePopup(!1),this.change(dt)}handleEscape(){this.isOpen?this.togglePopup(!1):this.value="",this.selectionService.focused=-1,this.suggestedText=null}searchBarChange(v){const ue=He(this.text)?this.text.length:0;this.backspacePressed=v.length<ue,this.text=v,this.togglePopup(v.length>0),this.highlightFirst||(this.selectionService.focused=-1),this.filterable?this.filterChange.emit(v):this.highlightFirst&&this.search(v)}onFilterChange(v){this.filterable?this.filterChange.emit(v):this.highlightFirst&&this.search(v)}handleFocus(){this.isFocused=!0,(0,n.g$)(this.onFocus)&&this._zone.run(()=>{this.onFocus.emit()})}handleBlur(){if(!this.isActionSheetExpanded){const v=this.filterable?this.selectionService.focused:-1;let ue,dt;this.searchbar.input.nativeElement.scrollLeft=0,-1!==v?(ue=this.dataService.itemAt(v),dt=zt(ue,this.valueField)||""):dt=this.searchbar.value;const In=dt===this.searchbar.value,er=dt.toLowerCase()===this.searchbar.value.toLowerCase();!In&&er&&this.selectionService.resetSelection([]),this.isFocused=!1;const Br=this.value!==this.text;(0,n.g$)(this.onBlur)||(0,n.g$)(this.close)||qn(this.wrapper)||Br?this._zone.run(()=>{Br&&this.change(this.searchbar.value),this.onBlur.emit(),this.onTouchedCallback(),this.togglePopup(!1)}):this.togglePopup(!1)}}pageChange(v){this.virtual.skip=v.skip}change(v){this.togglePopup(!1),this.valueChangeSubject.next(v)}subscribeEvents(){(0,n.X_)()&&(this.subs.add(this.valueChangeSubject.subscribe(v=>{const ue=this.value!==v,dt=this.findIndex(v);this.selectionService.focused=dt,this.value=v,this.text=v,ue&&this.emitChange(v)})),this.subs.add(this.selectionService.onChange.subscribe(this.handleItemChange.bind(this))),this.subs.add(this.selectionService.onFocus.subscribe(this.handleItemFocus.bind(this))),this.subs.add((0,s.T)(this.navigationService.up,this.navigationService.down).subscribe(v=>this.navigate(v.index))),this.subs.add(this.navigationService.close.subscribe(()=>this.togglePopup(!1))),this.subs.add(this.navigationService.open.subscribe(()=>this.togglePopup(!0))),this.subs.add(this.navigationService.enter.subscribe(this.handleEnter.bind(this))),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add((0,s.T)(this.navigationService.pagedown,this.navigationService.pageup).subscribe(v=>{this.isOpen&&(v.originalEvent.preventDefault(),this.optionsList.scrollWithOnePage(Ps[v.originalEvent.code]))})))}findIndex(v,ue=0){let dt;return dt=v&&v.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(v),ue):-1,dt}subscribeTouchEvents(){!(0,n.X_)()||!this.touchEnabled||this._zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",v=>{this.isFocused&&!pe(this.hostElement,v.target,this.popupRef)&&this._zone.run(()=>this.blur())}))}handleItemChange(v){const ue=v.indices.length?v.indices[0]:void 0;if(this.selectionService.resetSelection([-1]),!He(ue))return;const dt=zt(this.dataService.itemAt(ue),this.valueField);this.change(dt),this.isActionSheetExpanded&&this.togglePopup(!1)}handleItemFocus(v){const ue=this.selectionService.focused;this.suggest&&this.data&&this.data.length&&ue>=0&&(this.suggestedText=zt(this.dataService.itemAt(ue),this.valueField))}createPopup(){if(this.virtual&&(this.virtual.skip=0),this.windowSize=Wi(),this.isAdaptive)return void this.openActionSheet();const v="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",popupAlign:{horizontal:v,vertical:"top"},anchorAlign:{horizontal:v,vertical:"bottom"}});const In=this.popupRef.popupElement,{min:er,max:Br}=this.width;In.addEventListener("mousedown",this.popupMouseDownHandler),In.style.minWidth=er,In.style.width=Br,In.style.height=this.height,In.setAttribute("dir",this.direction),this.appendTo||(this.renderer.setAttribute(In,"role","region"),this.renderer.setAttribute(In,"aria-label",this.messageFor("popupLabel"))),this.subs.add(this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),Fr(this.optionsList,this.searchbar.input,this.renderer),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.opened.emit()})),this.subs.add(this.popupRef.popupClose.subscribe(()=>{this.closed.emit()})),this.subs.add(this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.togglePopup(!1)))}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}_toggle(v){this._open=v,this.destroyPopup(),this.isActionSheetExpanded&&this.closeActionSheet(),this._open&&this.createPopup()}triggerPopupEvents(v){const ue=new Ro;return v?this.open.emit(ue):this.close.emit(ue),ue.isDefaultPrevented()}firstFocusableIndex(v){const ue=this.data.length-1;return this.disabledItemsService.isIndexDisabled(v)?v<ue?this.firstFocusableIndex(v+1):void 0:v}findIndexPredicate(v){return this.dataService.grouped?ue=>{let dt=zt(ue.value,this.valueField);return dt=He(dt)?dt.toString().toLowerCase():"",dt.startsWith(v.toLowerCase())}:ue=>{let dt=zt(ue,this.valueField);return dt=He(dt)?dt.toString().toLowerCase():"",dt.startsWith(v.toLowerCase())}}setComponentClasses(){"none"!==this.size&&this.renderer.addClass(this.wrapper,zi("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper,Kn(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper,ho("input",this.fillMode))}closeActionSheet(){this.actionSheet.toggle(!1),this.actionSheetSearchBar.value="",this.filterable&&this.filterChange.emit(""),this.searchbar.input.nativeElement.focus(),this.closed.emit()}openActionSheet(){this.actionSheet.toggle(!0),this.cdr.detectChanges(),Fr(this.optionsList,this.searchbar.input,this.renderer),this.title=jr(this.searchbar.input,this.title),cr(this.actionSheet,this.windowSize,this.renderer),this.cdr.detectChanges(),this.opened.emit(),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.actionSheetSearchBar.focus()}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(u.oQ),e.Y36(_a),e.Y36(x.qL),e.Y36(cs),e.Y36(pi),e.Y36(Ws),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(nl,8))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-autocomplete"]],contentQueries:function(v,ue,dt){if(1&v&&(e.Suo(dt,Ca,5),e.Suo(dt,ks,5),e.Suo(dt,ts,5),e.Suo(dt,to,5),e.Suo(dt,na,5),e.Suo(dt,Xs,5)),2&v){let In;e.iGM(In=e.CRH())&&(ue.template=In.first),e.iGM(In=e.CRH())&&(ue.headerTemplate=In.first),e.iGM(In=e.CRH())&&(ue.footerTemplate=In.first),e.iGM(In=e.CRH())&&(ue.noDataTemplate=In.first),e.iGM(In=e.CRH())&&(ue.groupTemplate=In.first),e.iGM(In=e.CRH())&&(ue.fixedGroupTemplate=In.first)}},viewQuery:function(v,ue){if(1&v&&(e.Gf(il,5),e.Gf(En,7,e.s_b),e.Gf(un,7),e.Gf(Ms,7),e.Gf(Ki,5)),2&v){let dt;e.iGM(dt=e.CRH())&&(ue.responsiveRendererComponent=dt.first),e.iGM(dt=e.CRH())&&(ue.container=dt.first),e.iGM(dt=e.CRH())&&(ue.popupTemplate=dt.first),e.iGM(dt=e.CRH())&&(ue.searchbar=dt.first),e.iGM(dt=e.CRH())&&(ue.optionsList=dt.first)}},hostVars:9,hostBindings:function(v,ue){2&v&&(e.uIk("dir",ue.dir),e.ekj("k-autocomplete",ue.widgetClasses)("k-input",ue.widgetClasses)("k-disabled",ue.isDisabled)("k-loading",ue.isLoading))},inputs:{highlightFirst:"highlightFirst",showStickyHeader:"showStickyHeader",focusableId:"focusableId",data:"data",value:"value",valueField:"valueField",placeholder:"placeholder",adaptiveMode:"adaptiveMode",title:"title",subtitle:"subtitle",popupSettings:"popupSettings",listHeight:"listHeight",loading:"loading",clearButton:"clearButton",suggest:"suggest",disabled:"disabled",itemDisabled:"itemDisabled",readonly:"readonly",tabindex:"tabindex",tabIndex:"tabIndex",filterable:"filterable",virtual:"virtual",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",filterChange:"filterChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},exportAs:["kendoAutoComplete"],features:[e._Bn([ia,_a,cs,pi,Ws,u.oQ,{provide:u.mM,useValue:"kendo.autocomplete"},{provide:Sr,useExisting:(0,e.Gpc)(()=>Pe)},{provide:n.GX,useExisting:(0,e.Gpc)(()=>Pe)}]),e.TTD],decls:13,vars:23,consts:function(){let Tn,v,ue;return Tn=$localize`:kendo.autocomplete.noDataText|The text displayed in the popup when there are no items:NO DATA FOUND`,v=$localize`:kendo.autocomplete.clearTitle|The title of the clear button:clear`,ue=$localize`:kendo.autocomplete.popupLabel|The label of the popup element that contains the list of options when its role is 'region':Options list`,[["kendoAutoCompleteLocalizedMessages","","noDataText",Tn,"clearTitle",v,"popupLabel",ue],[3,"role","ariaExpanded","isSuggestable","isFilterable","isLoading","ariaControls","id","activeDescendant","userInput","suggestedText","disabled","readonly","tabIndex","placeholder","onNavigate","valueChange","onBlur","onFocus","click"],["searchbar",""],["class","k-clear-value","role","button","tabindex","-1",3,"visibility","click","mousedown",4,"ngIf"],["class","k-icon k-i-loading k-input-loading-icon",4,"ngIf"],["popupTemplate",""],["container",""],[3,"resize",4,"ngIf"],[3,"sharedPopupActionSheetTemplate","isActionSheetExpanded","title","showTextInput","subtitle","placeholder","closePopup","textInputChange","navigate"],["sharedPopupActionSheetTemplate",""],["role","button","tabindex","-1",1,"k-clear-value",3,"click","mousedown"],["name","x",3,"svgIcon"],[1,"k-icon","k-i-loading","k-input-loading-icon"],[4,"ngTemplateOutlet"],[3,"resize"],[4,"ngIf"],[3,"size","rounded","id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","showStickyHeader","pageChange"],["optionsList",""],["class","k-no-data",4,"ngIf"],[3,"templateContext"],[1,"k-no-data"],[3,"ngIf","templateContext"],[3,"ngIf"]]},template:function(v,ue){if(1&v&&(e.GkF(0,0),e.TgZ(1,"kendo-searchbar",1,2),e.NdJ("onNavigate",function(In){return ue.handleNavigate(In)})("valueChange",function(In){return ue.searchBarChange(In)})("onBlur",function(){return ue.handleBlur()})("onFocus",function(){return ue.handleFocus()})("click",function(){return ue.handleClick()}),e.qZA(),e.YNc(3,Fn,2,4,"span",3),e.YNc(4,oi,1,0,"span",4),e.YNc(5,Bt,1,1,"ng-template",null,5,e.W1O),e.GkF(7,null,6),e.YNc(9,xt,1,0,"kendo-resize-sensor",7),e.TgZ(10,"responsive-renderer",8),e.NdJ("closePopup",function(){return ue.togglePopup(!1)})("textInputChange",function(In){return ue.onFilterChange(In)})("navigate",function(In){return ue.handleNavigate(In)}),e.qZA(),e.YNc(11,jn,5,17,"ng-template",null,9,e.W1O)),2&v){const dt=e.MAs(12);e.xp6(1),e.Q6J("role","combobox")("ariaExpanded",ue.isOpen)("isSuggestable",ue.suggest)("isFilterable",ue.filterable)("isLoading",ue.isLoading)("ariaControls",ue.ariaControls)("id",ue.focusableId)("activeDescendant",ue.activeDescendant)("userInput",ue.text)("suggestedText",ue.suggestion)("disabled",ue.disabled)("readonly",ue.readonly||ue.isAdaptive)("tabIndex",ue.tabIndex)("placeholder",ue.placeholder),e.xp6(2),e.Q6J("ngIf",!ue.loading&&!ue.readonly&&ue.clearButton&&(null==ue.text?null:ue.text.length)),e.xp6(1),e.Q6J("ngIf",ue.loading),e.xp6(5),e.Q6J("ngIf",ue.isOpen||ue.isAdaptiveModeEnabled),e.xp6(1),e.Q6J("sharedPopupActionSheetTemplate",dt)("isActionSheetExpanded",ue.isActionSheetExpanded)("title",ue.title)("showTextInput",!0)("subtitle",ue.subtitle)("placeholder",ue.placeholder)}},dependencies:[Ms,re.ZS,n.NG,il,la,eo,K.O5,K.tP,Os],encapsulation:2}),Pe})();const Nl={multi:!0,provide:o.JU,useExisting:(0,e.Gpc)(()=>We)};let We=(()=>{class Pe{constructor(v,ue,dt,In,er,Br,es,Ks,xa,ha,Aa){this.wrapper=v,this.localization=ue,this.popupService=dt,this.selectionService=In,this.navigationService=er,this.disabledItemsService=Br,this.dataService=es,this.zone=Ks,this.cdr=xa,this.renderer=ha,this.touchEnabled=Aa,this.animationDuration=300,this.xIcon=X.FZE,this.caretAltDownIcon=X.M7i,this.selected=[],this.showStickyHeader=!0,this.focusableId=`k-${On()}`,this.allowCustom=!1,this.valueNormalizer=vl=>vl.pipe((0,f.U)(ml=>ml)),this.placeholder="",this.adaptiveMode="none",this.title="",this._listHeight=200,this.suggest=!1,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new e.vpe,this.selectionChange=new e.vpe,this.filterChange=new e.vpe,this.open=new e.vpe,this.opened=new e.vpe,this.close=new e.vpe,this.closed=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.widgetClasses=!0,this._isFocused=!1,this.windowSize="large",this.listBoxId=`k-${On()}`,this.optionPrefix=`k-${On()}`,this.onChangeCallback=vl=>{},this.onTouchedCallback=vl=>{},this.defaultVirtualItemHeight=28,this.defaultVirtualPageSize=50,this._filtering=!1,this._text="",this.filterText="",this._open=!1,this._popupSettings={animate:!0},this.popupMouseDownHandler=vl=>vl.preventDefault(),this.customValueSubject=new _.x,this.valueSubject=new _.x,this.clearValueSubject=new _.x,this.subs=new d.w0,this._size="medium",this._rounded="medium",this._fillMode="solid",(0,a.s)(Ae),this.direction=ue.rtl?"rtl":"ltr",this.data=[]}get actionSheet(){return this.responsiveRendererComponent?.actionSheet}get actionSheetSearchBar(){return this.responsiveRendererComponent?.actionSheetSearchBar}set text(v){this._text=He(v)?v.toString():""}get text(){return this._text}get ariaControls(){return this.isOpen?this.listBoxId:void 0}togglePopup(v){this.disabled||this.readonly||this.isOpen===v||this.triggerPopupEvents(v)||this._toggle(v)}get activeDescendant(){if(!this.isOpen||!He(this.selectionService.focused)||-1===this.selectionService.focused)return null;const v=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+(v?zt(v,this.valueField):"")}get appendTo(){const{appendTo:v}=this.popupSettings;if(v&&"root"!==v)return"component"===v?this.container:v}set data(v){if(this.dataService.data=v||[],this.virtual&&(this.virtual.skip=0),this.setState(),this._filtering){const dt=this.text.length>0&&this.dataService.itemsCount>0?this.firstFocusableIndex(0):-1;this.selectionService.focused=dt}this.suggest&&this.dataService.itemsCount&&this.text&&(this.suggestedText=zt(this.dataService.itemAt(0),this.textField))}get data(){const v=this.virtual;if(v){const ue=v.skip||0,dt=ue+v.pageSize;return v.total=this.dataService.data.length,this.dataService.data.slice(ue,dt)}return this.dataService.data}set value(v){this._value=v,this.setState(),this.cdr.markForCheck()}get value(){return this._value}set valuePrimitive(v){this._valuePrimitive=v}get valuePrimitive(){return He(this._valuePrimitive)?this._valuePrimitive:!He(this.valueField)}set subtitle(v){this._subtitle=v}get subtitle(){return this._subtitle||this.placeholder}get isAdaptiveModeEnabled(){return"auto"===this.adaptiveMode}set popupSettings(v){this._popupSettings=Object.assign({animate:!0},v)}get popupSettings(){return this._popupSettings}set listHeight(v){this._listHeight=v}get listHeight(){if(!this.isAdaptive)return this._listHeight}set itemDisabled(v){if("function"!=typeof v)throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(v)}.`);this.disabledItemsService.itemDisabled=v}set tabIndex(v){this.tabindex=v}get tabIndex(){return this.tabindex}set virtual(v){this._virtualSettings=Ka(v,{itemHeight:this.defaultVirtualItemHeight,pageSize:this.defaultVirtualPageSize})}get virtual(){return this._virtualSettings}set size(v){const ue=v||"medium";this.renderer.removeClass(this.wrapper.nativeElement,zi("input",this.size)),"none"!==v&&this.renderer.addClass(this.wrapper.nativeElement,zi("input",ue)),this._size=ue}get size(){return this._size}set rounded(v){const ue=v||"medium";this.renderer.removeClass(this.wrapper.nativeElement,Kn(this.rounded)),"none"!==v&&this.renderer.addClass(this.wrapper.nativeElement,Kn(ue)),this._rounded=ue}get rounded(){return this._rounded}set fillMode(v){const ue=v||"solid";this.renderer.removeClass(this.wrapper.nativeElement,ho("input",this.fillMode)),"none"!==v&&this.renderer.addClass(this.wrapper.nativeElement,ho("input",ue)),this._fillMode=ue}get fillMode(){return this._fillMode}get isDisabled(){return this.disabled}get isLoading(){return this.loading}get dir(){return this.direction}get isFocused(){return this._isFocused}set isFocused(v){this.renderer[v?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=v}get clearButtonVisiblity(){if(this.touchEnabled)return"visible"}get isActionSheetExpanded(){return this.actionSheet?.expanded}get isAdaptive(){return this.isAdaptiveModeEnabled&&"large"!==this.windowSize}get popupWidth(){let v=0;(0,n.X_)()&&(v=this.wrapper.nativeElement.offsetWidth);const ue=this.popupSettings.width||v;return{min:isNaN(v)?v:`${v}px`,max:isNaN(ue)?ue:`${ue}px`}}get popupHeight(){const v=this.popupSettings.height;return He(v)?`${v}px`:"auto"}ngOnInit(){this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setComponentClasses()}ngAfterViewInit(){this.windowSize=Wi(),this.cdr.detectChanges(),this.actionSheet&&(0,n.X_)()&&(this.actionSheet.element.nativeElement.style.setProperty("--kendo-actionsheet-height","60vh"),this.actionSheet.element.nativeElement.style.setProperty("--kendo-actionsheet-max-height","none"))}createValueStream(){const v=this.valueSubject.pipe((0,p.h)(es=>{const Ks=zt(this.value,this.valueField),xa=zt(es,this.valueField);let ha=zt(es,this.textField);return!(!He(this.value)&&!He(xa)||(He(ha)&&(ha=ha.toString()),Ks===xa&&this.text===ha&&(this.clearFilter(),1)))}),(0,f.U)(es=>{const Ks=zt(es,this.valueField);return{dataItem:es,text:zt(es,this.textField),value:this.valuePrimitive?Ks:es}})),ue=function b(Pe,Tn){return v=>[(0,p.h)(Pe,Tn)(v),(0,p.h)(E(Pe,Tn))(v)]}(()=>this.allowCustom)(this.customValueSubject.pipe((0,I.p)(300))),dt=ue[0].pipe((0,M.b)(()=>{this.loading=!0,this.disabled=!0,this.cdr.detectChanges()}),(0,p.h)(()=>{const es=this.text!==zt(this.value,this.valueField);return this.loading=es,this.disabled=es,es||this.clearFilter(),es}),this.valueNormalizer,(0,f.U)(es=>({custom:!0,dataItem:es,text:this.text,value:es}))),In=ue[1].pipe((0,f.U)(()=>({custom:!0,dataItem:void 0,text:void 0,value:void 0}))),er=this.clearValueSubject.pipe((0,f.U)(()=>({dataItem:void 0,text:void 0,value:void 0})));this.valueSubscription&&this.valueSubscription.unsubscribe();const Br=(0,s.T)(v,dt,In,er);this.valueSubscription=Br.pipe((0,L.K)(()=>{const es=void 0!==zt(this.dataItem,this.valueField);return this.dataItem=void 0,this.value=void 0,this.text=void 0,this.loading=!1,this.disabled=!1,es&&this.selectionChange.emit(void 0),this.emitValueChange(),this.createValueStream(),(0,C.of)(null)})).subscribe(es=>{const Ks=zt(this.dataItem,this.valueField)!==zt(es.dataItem,this.valueField);this.dataItem=es.dataItem,this.value=es.value,this.text=es.text,this.loading=!1,this.disabled=!1,this.clearFilter(),es.custom&&(this.selectionService.focused=-1),Ks&&this.selectionChange.emit(es.custom?void 0:this.dataItem),this.emitValueChange()})}attachStreams(){(0,n.X_)()&&(this.subs.add(this.localization.changes.subscribe(({rtl:v})=>{this.direction=v?"rtl":"ltr",this.cdr.detectChanges()})),this.subs.add((0,s.T)(this.navigationService.up,this.navigationService.down,this.navigationService.home,this.navigationService.end).pipe((0,p.h)(v=>He(v.index))).subscribe(v=>this.navigate(v.index))),this.subs.add(this.navigationService.open.subscribe(this.handleNavigationOpen.bind(this))),this.subs.add(this.navigationService.close.subscribe(()=>this.togglePopup(!1))),this.subs.add((0,s.T)(this.navigationService.pagedown,this.navigationService.pageup).subscribe(v=>{this.isOpen&&(v.originalEvent.preventDefault(),this.optionsList.scrollWithOnePage(Ps[v.originalEvent.code]))})),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.navigationService.enter.pipe((0,M.b)(v=>{this.isOpen&&v.originalEvent.preventDefault()})).subscribe(this.handleEnter.bind(this))),this.subs.add((0,s.T)(this.selectionService.onChange,this.selectionService.onSelect.pipe((0,p.h)(v=>!this.isOpen))).pipe((0,M.b)(v=>{this._filtering=!1,this.togglePopup(!1)}),(0,f.U)(v=>this.dataService.itemAt(v.indices[0]))).subscribe(v=>{this.change(v)})),this.subs.add(this.selectionService.onSelect.pipe((0,p.h)(v=>this.isOpen),(0,M.b)(v=>this._filtering=!1),(0,f.U)(v=>this.dataService.itemAt(v.indices[0]))).subscribe(v=>{const ue=zt(v,this.valueField)!==zt(this.dataItem,this.valueField);this.updateState({dataItem:v}),ue&&this.selectionChange.emit(v)})))}ngOnDestroy(){this.destroyPopup(),this.subs.unsubscribe(),He(this.valueSubscription)&&this.valueSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectClickDisposeHandler&&this.selectClickDisposeHandler()}ngOnChanges(v){const ue=this.virtual;ue&&v.data&&v.data.isFirstChange()&&this.pageChange({skip:0,take:ue.pageSize}),(0,n.ln)("valueNormalizer",v)&&this.createValueStream(),(0,n.aG)(["textField","valueField","valuePrimitive"],v,!1)&&this.setState()}ngAfterContentChecked(){this.verifySettings()}focusItemAt(v){const ue=v>=0&&v<this.data.length;He(v)&&ue&&!this.disabledItemsService.isIndexDisabled(v)?this.selectionService.focus(v):this.selectionService.focus(-1)}focus(){this.disabled||this.searchbar.focus()}blur(){this.disabled||this.searchbar.blur()}toggle(v){Promise.resolve(null).then(()=>{const ue=He(v)?v:!this._open;this._toggle(ue),this.cdr.markForCheck()})}get isOpen(){return fo(this._open||this.isActionSheetExpanded)}handleClick(){this.windowSize=Wi(),this.isAdaptive&&this.togglePopup(!0)}reset(){this.value=void 0,this.clearState(),this.resetSelection()}isEmpty(){const v=!He(this.text)||Vt(this.text),ue=!He(this.value)||Vt(this.value);return v&&ue}messageFor(v){return this.localization.get(v)}clearValue(v){v?.stopImmediatePropagation(),v&&this.focus(),this._previousDataItem=void 0,this.selectionService.resetSelection([]),this.clearValueSubject.next(),this._filtering=!1}writeValue(v){this.value=null===v?void 0:v}registerOnChange(v){this.onChangeCallback=v}registerOnTouched(v){this.onTouchedCallback=v}setDisabledState(v){this.disabled=v}get buttonClasses(){return this.loading?"k-i-loading k-input-loading-icon":this.iconClass}get selectButtonClasses(){return`${this.size?zi("button",this.size):""} ${this.fillMode?"k-button-"+this.fillMode:""} ${this.fillMode?"k-button-"+this.fillMode+"-base":""}\n        `}onResize(){if(this.isAdaptiveModeEnabled&&this.windowSize!==Wi()&&(this.isOpen&&this.togglePopup(!1),this.windowSize=Wi(),this.cdr.detectChanges()),this.isOpen&&!this.isActionSheetExpanded){const v=this.popupRef.popupElement,{min:ue,max:dt}=this.popupWidth;v.style.minWidth=ue,v.style.width=dt}}verifySettings(){if((0,e.X6Q)()){if(!0===this.valuePrimitive&&He(this.value)&&"object"==typeof this.value)throw new Error("Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection");if(!1===this.valuePrimitive&&He(this.value)&&"object"!=typeof this.value)throw new Error("Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection");if(!He(this.valueField)!=!He(this.textField))throw new Error("Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-bind-to-arrays-of-complex-data");if(this.virtual&&isNaN(this.virtual.itemHeight))throw new Error("Expected virtual.itemHeight of type number.")}}setState(){if(this._filtering)return;const v=this.value,dt=this.findDataItem({valueField:this.valueField,value:v});He(dt.index)&&-1!==dt.index?(this.updateState({dataItem:dt.dataItem,confirm:!0}),this.resetSelection(dt.index)):He(v)&&this.allowCustom?(this.updateState({dataItem:v}),this.resetSelection(-1)):this._previousDataItem&&this.value?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):(this.clearState(),this.resetSelection(-1))}updateState({dataItem:v,confirm:ue=!1}){this.dataItem=v,this.text=zt(v,this.textField),ue&&(this._previousDataItem=v)}clearState(){this.text=void 0,this.dataItem=void 0}resetSelection(v){const ue=!He(v)||v<0;this.selectionService.resetSelection(ue?[]:[v]),this.selectionService.focused=v}firstFocusableIndex(v){const ue=this.data.length-1;return this.disabledItemsService.isIndexDisabled(v)?v<ue?this.firstFocusableIndex(v+1):void 0:v}findIndexPredicate(v){return this.dataService.grouped?ue=>{let dt=zt(ue.value,this.textField);return dt=He(dt)?dt.toString().toLowerCase():"",dt.startsWith(v.toLowerCase())}:ue=>{let dt=zt(ue,this.textField);return dt=He(dt)?dt.toString().toLowerCase():"",dt.startsWith(v.toLowerCase())}}findDataItem({valueField:v,value:ue}){const dt={dataItem:null,index:-1},er=this.dataService.findIndex(Br=>zt(this.dataService.grouped?Br.value:Br,v)===zt(ue,v));return dt.dataItem=this.dataService.itemAt(er),dt.index=er,dt}search(v,ue=0){const dt=this.findIndex(v,ue);this.disabledItemsService.isIndexDisabled(dt)?dt+1<this.dataService.itemsCount?this.search(v,dt+1):this.selectionService.focus(-1):(this.selectionService.focus(dt),this.suggest&&(this.suggestedText=zt(this.dataService.itemAt(dt),this.textField)))}onAdaptiveTextBoxChange(v){this.filterable&&this.filterText!==v?(this.filterText=v,this.filterChange.emit(v)):this.search(v)}getSuggestion(){if(!this.selectionService.selected.length&&this.suggest&&!this.backspacePressed&&this.suggestedText&&this.text&&this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase()))return this.suggestedText;this.suggestedText=void 0}navigate(v){0!==this.dataService.itemsCount&&(this.text=zt(this.dataService.itemAt(v),this.textField),this.selectionService.select(v))}handleNavigate(v){const ue=He(this.selectionService.selected[0]),dt=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused;let In=0;if(this.disabled||this.readonly||v.keyCode===n.R8.Home||v.keyCode===n.R8.End)return;ue||(v.keyCode===n.R8.ArrowDown?In=-1:v.keyCode===n.R8.ArrowUp&&(In=1));const er=this.navigationService.process({current:In+dt,max:this.dataService.itemsCount-1,min:0,originalEvent:v});er!==Ps.Undefined&&er!==Ps.Left&&er!==Ps.Right&&er!==Ps.Backspace&&er!==Ps.Delete&&er!==Ps.PageDown&&er!==Ps.PageUp&&(er===Ps.Enter&&this.isOpen||er!==Ps.Enter)&&v.preventDefault(),er===Ps.Tab&&this.isActionSheetExpanded&&(v.stopImmediatePropagation(),this.togglePopup(!1))}handleEnter(){const v=this.text,ue=this.selectionService.focused,dt=He(ue)&&-1!==ue,In=zt(this._previousDataItem,this.textField)||"",er=zt(this.dataService.itemAt(ue),this.textField),Br=v!==In;this.togglePopup(!1),this._filtering=!1,this.allowCustom&&Br&&(v===er||this.useSuggestion()?this.selectionService.change(ue):this.change(v,!0)),this.allowCustom||(dt?this.selectionService.change(ue):Br&&this.change(v,!0))}handleBlur(){if(!this.isActionSheetExpanded){this._filtering=!1,this.searchbar.input.nativeElement.scrollLeft=0,this.isFocused=!1;const v=zt(this.dataItem,this.valueField)!==zt(this.value,this.valueField),ue=this.searchbar.value,dt=ue!==(zt(this.dataItem,this.textField)||""),In=v||dt;In||(0,n.g$)(this.onBlur)||(0,n.g$)(this.close)||qn(this.wrapper.nativeElement)?this.zone.run(()=>{In&&(He(this.focusedItemText)&&this.focusedItemText.toLowerCase()===ue.toLowerCase()||v?this.selectionService.change(this.selectionService.focused):this.change(ue,!0)),this.onBlur.emit(),this.onTouchedCallback(),this.togglePopup(!1)}):this.togglePopup(!1)}}handleEscape(){this.isOpen?this.togglePopup(!1):this.clearValue(),this.selectionService.selected.length>0||(this.suggestedText=null,this.selectionService.focused=-1)}handleNavigationOpen(){this.restoreItemFocus(),this.togglePopup(!0)}searchBarChange(v){this.backspacePressed=v.length<(this.text?this.text.length:0),this.text=v,this.selectionService.resetSelection([]),this.togglePopup(!0),this._filtering=!0,this.filterable&&this.filterText!==v?(this.filterText=v,this.filterChange.emit(v)):this.search(v)}handleFocus(){this.isFocused=!0,(0,n.g$)(this.onFocus)&&this.zone.run(()=>this.onFocus.emit())}pageChange(v){this.virtual.skip=v.skip}change(v,ue=!1){ue?this.customValueSubject.next(v):(this.valueSubject.next(v),this.isActionSheetExpanded&&this.togglePopup(!1))}emitValueChange(){this.onChangeCallback(this.value),this.valueChange.emit(this.value),this._previousDataItem=this.dataItem}selectClick(){this.touchEnabled||this.searchbar.focus(),this.isOpen||this.restoreItemFocus(),this.togglePopup(!this.isOpen)}get listContainerClasses(){return["k-list-container","k-combobox-popup"].concat(this.popupSettings.popupClass||[])}preventEventDefault(v){v.preventDefault()}get focusedItemText(){const v=this.selectionService.focused;if(!He(v)||-1===v)return null;const ue=zt(this.dataService.itemAt(v),this.textField);return He(ue)?ue.toString():""}restoreItemFocus(){!(He(this.selectionService.focused)&&this.selectionService.focused>-1)&&this.text&&this.dataService.itemsCount&&(this.filterable?this.selectionService.focused=this.firstFocusableIndex(0):this.search(this.text))}useSuggestion(){if(!this.suggest||!He(this.searchbar.value))return!1;const v=this.dataService.itemAt(this.selectionService.focused),ue=zt(v,this.textField);return!!He(ue)&&this.searchbar.value.toLowerCase()===ue.toLowerCase()}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}createPopup(){if(this.virtual&&(this.virtual.skip=0),this.windowSize=Wi(),this.isAdaptive)return void this.openActionSheet();const v="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",anchorAlign:{horizontal:v,vertical:"bottom"},popupAlign:{horizontal:v,vertical:"top"}});const In=this.popupRef.popupElement,{min:er,max:Br}=this.popupWidth;In.addEventListener("mousedown",this.popupMouseDownHandler),In.style.minWidth=er,In.style.width=Br,In.style.height=this.popupHeight,In.setAttribute("dir",this.direction),this.appendTo||(this.renderer.setAttribute(In,"role","region"),this.renderer.setAttribute(In,"aria-label",this.messageFor("popupLabel")));const es=this.popupRef.popupElement.querySelector("ul"),Ks=this.searchbar.input.nativeElement.getAttribute("aria-labelledby");Ks&&es.setAttribute("aria-labelledby",Ks),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),Fr(this.optionsList,this.searchbar.input,this.renderer),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.togglePopup(!1))}_toggle(v){this._open=v,this.destroyPopup(),this.isActionSheetExpanded&&this.closeActionSheet(),this._open&&(this.windowSize=Wi(),this.createPopup())}triggerPopupEvents(v){const ue=new Ro;return v?this.open.emit(ue):this.close.emit(ue),ue.isDefaultPrevented()}clearFilter(){this.filterable&&this.filterText&&(this.filterText="",this.filterChange.emit(this.filterText))}subscribeTouchEvents(){!(0,n.X_)()||!this.touchEnabled||this.zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",v=>{const dt=pe(this.wrapper,v.target,this.popupRef);this.isFocused&&!dt?this.zone.run(()=>this.blur()):this.isOpen&&!dt&&this.zone.run(()=>this.togglePopup(!1))}))}attachSelectClickHandler(){this.selectClickDisposeHandler=this.renderer.listen(this.select.nativeElement,l.d?"pointerdown":"click",this.selectClick.bind(this))}setComponentClasses(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,zi("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,Kn(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,ho("input",this.fillMode))}findIndex(v,ue=0){let dt;return dt=v&&v.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(v),ue):-1,dt}closeActionSheet(){this.actionSheet.toggle(!1),this.actionSheetSearchBar.value="",this.filterable&&this.filterChange.emit(""),this.searchbar.input.nativeElement.focus(),this.closed.emit()}openActionSheet(){this.windowSize=Wi(),this.actionSheet.toggle(!0),this.cdr.detectChanges(),Fr(this.optionsList,this.searchbar.input,this.renderer),this.title=jr(this.searchbar.input,this.title),cr(this.actionSheet,this.windowSize,this.renderer),this.cdr.detectChanges(),this.opened.emit(),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.actionSheetSearchBar.focus()}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.SBq),e.Y36(u.oQ),e.Y36(x.qL),e.Y36(cs),e.Y36(pi),e.Y36(Ws),e.Y36(_a),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(nl,8))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-combobox"]],contentQueries:function(v,ue,dt){if(1&v&&(e.Suo(dt,Ca,5),e.Suo(dt,ks,5),e.Suo(dt,ts,5),e.Suo(dt,to,5),e.Suo(dt,na,5),e.Suo(dt,Xs,5)),2&v){let In;e.iGM(In=e.CRH())&&(ue.template=In.first),e.iGM(In=e.CRH())&&(ue.headerTemplate=In.first),e.iGM(In=e.CRH())&&(ue.footerTemplate=In.first),e.iGM(In=e.CRH())&&(ue.noDataTemplate=In.first),e.iGM(In=e.CRH())&&(ue.groupTemplate=In.first),e.iGM(In=e.CRH())&&(ue.fixedGroupTemplate=In.first)}},viewQuery:function(v,ue){if(1&v&&(e.Gf(il,5),e.Gf(En,7,e.s_b),e.Gf(un,7),e.Gf(Ms,7),e.Gf(Ki,5),e.Gf(Pi,7)),2&v){let dt;e.iGM(dt=e.CRH())&&(ue.responsiveRendererComponent=dt.first),e.iGM(dt=e.CRH())&&(ue.container=dt.first),e.iGM(dt=e.CRH())&&(ue.popupTemplate=dt.first),e.iGM(dt=e.CRH())&&(ue.searchbar=dt.first),e.iGM(dt=e.CRH())&&(ue.optionsList=dt.first),e.iGM(dt=e.CRH())&&(ue.select=dt.first)}},hostVars:9,hostBindings:function(v,ue){2&v&&(e.uIk("dir",ue.dir),e.ekj("k-combobox",ue.widgetClasses)("k-input",ue.widgetClasses)("k-disabled",ue.isDisabled)("k-loading",ue.isLoading))},inputs:{showStickyHeader:"showStickyHeader",focusableId:"focusableId",allowCustom:"allowCustom",data:"data",value:"value",textField:"textField",valueField:"valueField",valuePrimitive:"valuePrimitive",valueNormalizer:"valueNormalizer",placeholder:"placeholder",adaptiveMode:"adaptiveMode",title:"title",subtitle:"subtitle",popupSettings:"popupSettings",listHeight:"listHeight",iconClass:"iconClass",loading:"loading",suggest:"suggest",clearButton:"clearButton",disabled:"disabled",itemDisabled:"itemDisabled",readonly:"readonly",tabindex:"tabindex",tabIndex:"tabIndex",filterable:"filterable",virtual:"virtual",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",selectionChange:"selectionChange",filterChange:"filterChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},exportAs:["kendoComboBox"],features:[e._Bn([Nl,_a,cs,pi,Ws,u.oQ,{provide:u.mM,useValue:"kendo.combobox"},{provide:Sr,useExisting:(0,e.Gpc)(()=>Pe)},{provide:n.GX,useExisting:(0,e.Gpc)(()=>Pe)}]),e.TTD],decls:16,vars:29,consts:function(){let Tn,v,ue,dt;return Tn=$localize`:kendo.combobox.noDataText|The text displayed in the popup when there are no items:NO DATA FOUND`,v=$localize`:kendo.combobox.clearTitle|The title of the clear button:clear`,ue=$localize`:kendo.combobox.selectButtonText|The text set as aria-label on the select button:Select`,dt=$localize`:kendo.combobox.popupLabel|The label of the popup element that contains the list of options when its role is 'region':Options list`,[["kendoComboBoxLocalizedMessages","","noDataText",Tn,"clearTitle",v,"selectButtonText",ue,"popupLabel",dt],[3,"role","ariaExpanded","ariaControls","id","isLoading","isSuggestable","isFilterable","activeDescendant","userInput","suggestedText","disabled","readonly","tabIndex","placeholder","onNavigate","valueChange","onBlur","onFocus","click"],["searchbar",""],["class","k-clear-value","aria-hidden","true",3,"visibility","kendoEventsOutsideAngular","click",4,"ngIf"],["tabindex","-1","unselectable","on","type","button",1,"k-input-button","k-button","k-icon-button",3,"ngClass","kendoEventsOutsideAngular"],["select",""],["name","caret-alt-down","innerCssClass","k-button-icon",3,"svgIcon",4,"ngIf"],["class","k-button-icon k-icon",3,"ngClass",4,"ngIf"],["popupTemplate",""],[3,"resize",4,"ngIf"],["container",""],[3,"sharedPopupActionSheetTemplate","isActionSheetExpanded","title","showTextInput","subtitle","placeholder","closePopup","textInputChange","navigate"],["sharedPopupActionSheetTemplate",""],["aria-hidden","true",1,"k-clear-value",3,"kendoEventsOutsideAngular","click"],["name","x",3,"svgIcon"],["name","caret-alt-down","innerCssClass","k-button-icon",3,"svgIcon"],[1,"k-button-icon","k-icon",3,"ngClass"],[4,"ngTemplateOutlet"],[3,"resize"],[4,"ngIf"],[3,"size","rounded","id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","showStickyHeader","pageChange"],["optionsList",""],["class","k-no-data",4,"ngIf"],[3,"templateContext"],[1,"k-no-data"],[3,"ngIf","templateContext"],[3,"ngIf"]]},template:function(v,ue){if(1&v&&(e.GkF(0,0),e.TgZ(1,"kendo-searchbar",1,2),e.NdJ("onNavigate",function(In){return ue.handleNavigate(In)})("valueChange",function(In){return ue.searchBarChange(In)})("onBlur",function(){return ue.handleBlur()})("onFocus",function(){return ue.handleFocus()})("click",function(){return ue.handleClick()}),e.qZA(),e.YNc(3,si,2,7,"span",3),e.TgZ(4,"button",4,5),e.YNc(6,ot,1,1,"kendo-icon-wrapper",6),e.YNc(7,pn,1,1,"span",7),e.qZA(),e.YNc(8,wi,1,1,"ng-template",null,8,e.W1O),e.YNc(10,hi,1,0,"kendo-resize-sensor",9),e.GkF(11,null,10),e.TgZ(13,"responsive-renderer",11),e.NdJ("closePopup",function(){return ue.togglePopup(!1)})("textInputChange",function(In){return ue.onAdaptiveTextBoxChange(In)})("navigate",function(In){return ue.handleNavigate(In)}),e.qZA(),e.YNc(14,wn,5,17,"ng-template",null,12,e.W1O)),2&v){const dt=e.MAs(15);e.xp6(1),e.Q6J("role","combobox")("ariaExpanded",ue.isOpen)("ariaControls",ue.ariaControls)("id",ue.focusableId)("isLoading",ue.loading)("isSuggestable",ue.suggest)("isFilterable",ue.filterable)("activeDescendant",ue.activeDescendant)("userInput",ue.text)("suggestedText",ue.getSuggestion())("disabled",ue.disabled)("readonly",ue.readonly||ue.isAdaptive)("tabIndex",ue.tabIndex)("placeholder",ue.placeholder),e.xp6(2),e.Q6J("ngIf",ue.clearButton&&!ue.loading&&!ue.disabled&&!ue.readonly&&(null==ue.text?null:ue.text.length)),e.xp6(1),e.Q6J("ngClass",ue.selectButtonClasses)("kendoEventsOutsideAngular",e.VKq(27,go,ue.preventEventDefault)),e.uIk("aria-label",ue.messageFor("selectButtonText")),e.xp6(2),e.Q6J("ngIf",!ue.loading&&!ue.iconClass),e.xp6(1),e.Q6J("ngIf",ue.loading||ue.iconClass),e.xp6(3),e.Q6J("ngIf",ue.isOpen||ue.isAdaptiveModeEnabled),e.xp6(3),e.Q6J("sharedPopupActionSheetTemplate",dt)("isActionSheetExpanded",ue.isActionSheetExpanded)("title",ue.title)("showTextInput",!0)("subtitle",ue.subtitle)("placeholder",ue.placeholder)}},dependencies:[Ms,re.ZS,n.NG,il,la,eo,K.O5,n.nV,K.mk,K.tP,Os],encapsulation:2}),Pe})(),Ft=(()=>{class Pe{constructor(v){this.templateRef=v}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.Rgc))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoDropDownListValueTemplate",""],["","kendoDropDownTreeValueTemplate",""]]}),Pe})(),ct=(()=>{class Pe{constructor(v,ue){this.element=v,this.zone=ue}ngOnChanges(){this.focused&&this.nextTick(()=>this.element.nativeElement.focus())}nextTick(v){this.zone.runOutsideAngular(()=>setTimeout(v))}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.SBq),e.Y36(e.R0b))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","filterInput",""]],inputs:{focused:["filterInput","focused"]},features:[e.TTD]}),Pe})();const Qt={multi:!0,provide:o.JU,useExisting:(0,e.Gpc)(()=>Or)};let Or=(()=>{class Pe{constructor(v,ue,dt,In,er,Br,es,Ks,xa,ha,Aa,vl){this.wrapper=v,this.localization=ue,this.popupService=dt,this.selectionService=In,this.navigationService=er,this.disabledItemsService=Br,this.dataService=es,this._zone=Ks,this.renderer=xa,this.cdr=ha,this.touchEnabled=Aa,this.injector=vl,this.animationDuration=300,this.xIcon=X.FZE,this.searchIcon=X.RL9,this.caretAltDownIcon=X.M7i,this.listBoxId=`k-${On()}`,this.showStickyHeader=!0,this.adaptiveMode="none",this.title="",this.subtitle="",this.windowSize="large",this._listHeight=200,this.readonly=!1,this.filterable=!1,this.ignoreCase=!0,this.delay=500,this.tabindex=0,this.valueChange=new e.vpe,this.filterChange=new e.vpe,this.selectionChange=new e.vpe,this.open=new e.vpe,this.opened=new e.vpe,this.close=new e.vpe,this.closed=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.hostClasses=!0,this.focusableId=`k-${On()}`,this.role="combobox",this.haspopup="listbox",this.groupIndices=[],this.optionPrefix=`k-${On()}`,this.filterText="",this.subs=new d.w0,this._isFocused=!1,this.onTouchedCallback=ml=>{},this.onChangeCallback=ml=>{},this.word="",this.last="",this.filterFocused=new e.vpe,this.filterBlurred=new e.vpe,this.hostElementFocused=new e.vpe,this.hostElementBlurred=new e.vpe,this._open=!1,this._popupSettings={animate:!0},this._size="medium",this._rounded="medium",this._fillMode="solid",(0,a.s)(Ae),this.direction=ue.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}get actionSheet(){return this.responsiveRendererComponent?.actionSheet}get actionSheetSearchBar(){return this.responsiveRendererComponent?.actionSheetSearchBar}get width(){const v=(0,n.X_)()?this.wrapper.nativeElement.offsetWidth:0,ue=this.popupSettings.width||v;return{min:isNaN(v)?v:`${v}px`,max:isNaN(ue)?ue:`${ue}px`}}get height(){const v=this.popupSettings.height;return He(v)?`${v}px`:"auto"}get widgetTabIndex(){if(this.disabled)return;const v=Number(this.tabIndex);return isNaN(v)?0:v}get ariaExpanded(){return this.isOpen}get ariaControls(){if(this.isOpen)return this.listBoxId}get ariaActivedescendant(){if(He(this.dataItem)&&this.isOpen)return this.optionPrefix+"-"+zt(this.dataItem,this.valueField)}get appendTo(){const{appendTo:v}=this.popupSettings;if(v&&"root"!==v)return"component"===v?this.container:v}onFilterChange(v){this.filterable&&this.filterChange.emit(v)}get ariaLive(){return this.filterable?"polite":"off"}set data(v){this.dataService.data=v||[],this.virtual&&(this.virtual.skip=0),this.setState()}get data(){const v=this.virtual;if(v){const ue=v.skip||0,dt=ue+v.pageSize;return v.total=this.dataService.data.length,this.dataService.data.slice(ue,dt)}return this.dataService.data}set value(v){He(v)||(this._previousDataItem=void 0),this._value=v,this.setState(),this.cdr.markForCheck()}get value(){return this._value}get isAdaptiveModeEnabled(){return"auto"===this.adaptiveMode}get isActionSheetExpanded(){return this.actionSheet?.expanded}get isAdaptive(){return this.isAdaptiveModeEnabled&&"large"!==this.windowSize}set popupSettings(v){this._popupSettings=Object.assign({animate:!0},v)}get popupSettings(){return this._popupSettings}set listHeight(v){this._listHeight=v}get listHeight(){if(!this.isAdaptive)return this._listHeight}set itemDisabled(v){if("function"!=typeof v)throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(v)}.`);this.disabledItemsService.itemDisabled=v}set virtual(v){this._virtualSettings=Ka(v)}get virtual(){return this._virtualSettings}set valuePrimitive(v){this._valuePrimitive=v}get valuePrimitive(){return He(this._valuePrimitive)?this._valuePrimitive:!He(this.valueField)}set tabIndex(v){this.tabindex=v}get tabIndex(){return this.tabindex}set size(v){const ue=v||"medium";this.renderer.removeClass(this.wrapper.nativeElement,zi("picker",this.size)),"none"!==v&&this.renderer.addClass(this.wrapper.nativeElement,zi("picker",ue)),this._size=ue}get size(){return this._size}set rounded(v){const ue=v||"medium";this.renderer.removeClass(this.wrapper.nativeElement,Kn(this.rounded)),"none"!==v&&this.renderer.addClass(this.wrapper.nativeElement,Kn(ue)),this._rounded=v}get rounded(){return this._rounded}set fillMode(v){const ue=v||"solid";this.renderer.removeClass(this.wrapper.nativeElement,ho("picker",this.fillMode)),"none"!==v&&this.renderer.addClass(this.wrapper.nativeElement,ho("picker",ue)),this._fillMode=ue}get fillMode(){return this._fillMode}blurComponent(v){v.target===this.wrapper.nativeElement&&(v.stopImmediatePropagation(),this.hostElementBlurred.emit())}blurFilterInput(){this.filterBlurred.emit()}focusComponent(v){v.target===this.wrapper.nativeElement&&(v.stopImmediatePropagation(),this.hostElementFocused.emit(),this.isFocused||(this.isFocused=!0,(0,n.g$)(this.onFocus)&&this._zone.run(()=>{this.onFocus.emit()})))}onResize(){if(this.isAdaptiveModeEnabled&&this.windowSize!==Wi()&&(this.isOpen&&this.togglePopup(!1),this.windowSize=Wi()),this.isOpen&&!this.isActionSheetExpanded){const v=this.popupRef.popupElement,{min:ue,max:dt}=this.width;v.style.minWidth=ue,v.style.width=dt}}get isDisabledClass(){return this.disabled}get isDisabledAttribute(){return this.disabled?"":null}get isLoading(){return this.loading}get dir(){return this.direction}get hostTabIndex(){return this.widgetTabIndex}get readonlyClass(){return this.readonly}get readonlyAttr(){return this.readonly?"":null}get isBusy(){return this.isLoading}get isAriaExpanded(){return this.ariaExpanded}get hostAriaInvalid(){return this.formControl?this.formControl?.invalid.toString():null}get hostAriaActivedescendant(){return this.ariaActivedescendant}keydown(v,ue){ue&&v.stopPropagation();const dt=He(this.defaultItem)?-1:0,In=isNaN(this.selectionService.focused)?this.firstFocusableIndex(dt):this.selectionService.focused;let er=0;if(this.disabled||this.readonly)return;if(this.filterable&&this.isFocused&&this.isOpen&&(v.keyCode===n.R8.Home||v.keyCode===n.R8.End))return;const Ks=He(this.selectionService.selected[0]),xa=He(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused);(!Ks||xa)&&(v.keyCode===n.R8.ArrowDown||v.keyCode===n.R8.ArrowRight?er=-1:(v.keyCode===n.R8.ArrowUp||v.keyCode===n.R8.ArrowLeft)&&(er=1));const ha=v,Aa=this.navigationService.process({current:In+er,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:ha});Aa!==Ps.Undefined&&Aa!==Ps.Tab&&Aa!==Ps.Backspace&&Aa!==Ps.Delete&&Aa!==Ps.PageDown&&Aa!==Ps.PageUp&&Aa!==Ps.SelectAll&&!((Aa===Ps.Left||Aa===Ps.Right)&&this.filterable)&&Aa!==Ps.Enter&&ha.preventDefault(),Aa===Ps.Tab&&this.isActionSheetExpanded&&this.togglePopup(!1)}keypress(v){this.disabled||this.readonly||this.filterable||this.onKeyPress(v)}click(){this.isActionSheetExpanded||(this.focus(),this.togglePopup(!this.isOpen))}set isFocused(v){this.renderer[v?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=v}get isFocused(){return this._isFocused}ngOnInit(){this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.subs.add(this.localization.changes.subscribe(({rtl:v})=>{this.direction=v?"rtl":"ltr",this.cdr.detectChanges()})),this.assignAriaDescribedBy(),this.setComponentClasses()}ngAfterViewInit(){this.windowSize=Wi(),this.actionSheet&&(0,n.X_)()&&(this.actionSheet.element.nativeElement.style.setProperty("--kendo-actionsheet-height","60vh"),this.actionSheet.element.nativeElement.style.setProperty("--kendo-actionsheet-max-height","none"))}isEmpty(){const v=this.value;return!(0===v||!1===v||v||this.defaultItem)}onFilterFocus(){this.filterFocused.emit()}ngOnDestroy(){this.destroyPopup(),this.subs.unsubscribe(),this.unSubscribeFocusEvents(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()}ngOnChanges(v){const ue=this.virtual;ue&&v.data&&v.data.isFirstChange()&&this.pageChange({skip:0,take:ue.pageSize}),(0,n.ln)("defaultItem",v,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),(0,n.aG)(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],v,!1)&&this.setState()}ngAfterContentChecked(){this.verifySettings()}get formControl(){return this.injector.get(o.a5,null)?.control||null}focusItemAt(v){const dt=(He(this.defaultItem)?-1:0)<=v&&v<this.data.length;He(v)&&dt&&!this.disabledItemsService.isIndexDisabled(v)?this.selectionService.focus(v):this.selectionService.focus(null)}focus(){this.disabled||this.wrapper.nativeElement.focus()}blur(){this.disabled||(this.wrapper.nativeElement.blur(),this.cdr.detectChanges())}toggle(v){Promise.resolve(null).then(()=>{const ue=He(v)?v:!this._open;this._toggle(ue)})}_toggle(v){this._open=v,this.destroyPopup(),this.isActionSheetExpanded&&this.closeActionSheet(),this._open&&this.createPopup()}triggerPopupEvents(v){const ue=new Ro;return v?this.open.emit(ue):this.close.emit(ue),ue.isDefaultPrevented()}togglePopup(v){this.disabled||this.readonly||this.isOpen===v||this.triggerPopupEvents(v)||(!v&&this.filterable&&this.isFocused&&this.focus(),this._toggle(v))}get isOpen(){return fo(this._open||this.isActionSheetExpanded)}reset(){this.value=void 0}messageFor(v){return this.localization.get(v)}writeValue(v){this.value=null===v?void 0:v}registerOnChange(v){this.onChangeCallback=v}registerOnTouched(v){this.onTouchedCallback=v}setDisabledState(v){this.disabled=v}get buttonClasses(){return this.loading?"k-i-loading k-input-loading-icon":this.iconClass}get selectButtonClasses(){return`${this.size?zi("button",this.size):""} ${this.fillMode?"k-button-"+this.fillMode:""} ${this.fillMode?"k-button-"+this.fillMode+"-base":""}`}get filterInputClasses(){return`${this.size?zi("input",this.size):""} ${this.fillMode?"k-input-"+this.fillMode:""} ${this.rounded?Kn(this.rounded):""}`}get optionLabelSizeClass(){return`${this.size?zi("list",this.size):""}`}get listContainerClasses(){const v=["k-list-container","k-dropdownlist-popup"];return this.popupSettings.popupClass&&v.push(this.popupSettings.popupClass),v}get isDisabledDefaultItem(){return this.disabledItemsService.isItemDisabled(this.defaultItem)}getText(){return this.text}getDefaultItemText(){return zt(this.defaultItem,this.textField)}createPopup(){if(this.virtual&&(this.virtual.skip=0),this.windowSize=Wi(),this.isAdaptive)return void this.openActionSheet();const v="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:v,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:v,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"});const In=this.popupRef.popupElement,{min:er,max:Br}=this.width;In.addEventListener("mousedown",this.popupMouseDownHandler),In.style.minWidth=er,In.style.width=Br,In.style.height=this.height,In.setAttribute("dir",this.direction),this.appendTo||(this.renderer.setAttribute(In,"role","region"),this.renderer.setAttribute(In,"aria-label",this.messageFor("popupLabel")));const es=In.querySelector("ul.k-list-ul"),Ks=this.wrapper.nativeElement.getAttribute("aria-labelledby");Ks&&es.setAttribute("aria-labelledby",Ks),this.subs.add(this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),Fr(this.optionsList,this.wrapper,this.renderer),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.opened.emit()})),this.subs.add(this.popupRef.popupClose.subscribe(()=>{this.closed.emit()})),this.filterable||this.subs.add(this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.togglePopup(!1)))}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}updateState({dataItem:v,confirm:ue=!1}){this.dataItem=v,this.text=zt(v,this.textField),ue&&(this._previousDataItem=v)}clearState(){this.text=void 0,this.dataItem=void 0}resetSelection(v){const ue=!He(v);this.selectionService.resetSelection(ue?[]:[v]),this.selectionService.focused=ue?this.firstFocusableIndex(0):v}onSelectionChange({dataItem:v}){this.updateState({dataItem:v}),this.selectionChange.emit(v),this.assignAriaDescribedBy()}subscribeEvents(){(0,n.X_)()&&(this.subs.add(this.selectionService.onSelect.pipe((0,p.h)(v=>this.isOpen),(0,f.U)(this.itemFromEvent.bind(this))).subscribe(this.onSelectionChange.bind(this))),this.subs.add((0,s.T)(this.selectionService.onSelect.pipe((0,p.h)(v=>!this.isOpen)),this.selectionService.onChange).pipe((0,f.U)(this.itemFromEvent.bind(this)),(0,M.b)(v=>this.togglePopup(!1))).subscribe(({dataItem:v,value:ue,newSelection:dt})=>{dt&&this.onSelectionChange({dataItem:v});const In=!He(v)&&this._previousDataItem,er=ue!==zt(this.value,this.valueField);In?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):er&&(this.value=this.valuePrimitive?ue:v,this._previousDataItem=v,this.emitChange(this.value)),this.clearFilter()})),this.subs.add((0,s.T)(this.navigationService.up,this.navigationService.down,this.navigationService.left.pipe(P(()=>this.filterable)),this.navigationService.right.pipe(P(()=>this.filterable)),this.navigationService.home,this.navigationService.end).pipe((0,p.h)(v=>!isNaN(v.index))).subscribe(v=>this.selectionService.select(v.index))),this.subs.add((0,s.T)(this.navigationService.pagedown,this.navigationService.pageup).subscribe(v=>{this.isOpen&&(v.originalEvent.preventDefault(),this.optionsList.scrollWithOnePage(Ps[v.originalEvent.code]))})),this.subs.add(this.navigationService.open.subscribe(()=>this.togglePopup(!0))),this.subs.add(this.navigationService.close.subscribe(()=>{this.togglePopup(!1),this.focus()})),this.subs.add(this.navigationService.enter.pipe((0,M.b)(v=>v.originalEvent.preventDefault())).subscribe(this.handleEnter.bind(this))),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.filterBlurred.pipe((0,O.b)(()=>(0,R.F)(10).pipe((0,w.q)(1),(0,U.R)(this.hostElementFocused)))).subscribe(()=>{this.hostElementBlurred.emit()})),this._zone.runOutsideAngular(()=>{this.subs.add((0,s.T)(this.hostElementBlurred.pipe((0,O.b)(()=>(0,R.F)(10).pipe((0,w.q)(1),(0,U.R)(this.filterFocused)))),this.navigationService.tab).pipe((0,M.b)(v=>v instanceof vo&&this.focus()),(0,p.h)(()=>this.isFocused)).subscribe(()=>this.componentBlur()))}))}subscribeTouchEvents(){!(0,n.X_)()||!this.touchEnabled||this._zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",v=>{this.isFocused&&!pe(this.wrapper,v.target,this.popupRef)&&this._zone.run(()=>{this.filterFocused&&this.togglePopup(!1),this.blur()})}))}subscribeFocusEvents(){(0,n.X_)()&&(this.focusComponent=this.focusComponent.bind(this),this.blurComponent=this.blurComponent.bind(this),this._zone.runOutsideAngular(()=>{document.addEventListener("focus",this.focusComponent,!0),document.addEventListener("blur",this.blurComponent,!0)}))}unSubscribeFocusEvents(){(0,n.X_)()&&(document.removeEventListener("focus",this.focusComponent,!0),document.removeEventListener("blur",this.blurComponent,!0))}itemFromEvent(v){const ue=v.indices[0];let dt=this.dataService.itemAt(ue);dt=He(dt)?dt:this.currentOrDefault(ue);const In=zt(dt,this.valueField);return{dataItem:dt,index:ue,newSelection:v.newSelection,value:In}}currentOrDefault(v){return He(this.dataItem)&&-1!==v?this.dataItem:this.defaultItem}firstFocusableIndex(v){const ue=this.dataService.itemsCount-1;return this.disabledItemsService.isIndexDisabled(v)?v<ue?this.firstFocusableIndex(v+1):void 0:v}handleEnter(){this.isOpen?(this.selectionService.change(this.selectionService.focused),this.focus()):this.togglePopup(!0)}handleEscape(){He(this.selectionService.selected[0])?this.selectionService.change(this.selectionService.selected[0]):(this.togglePopup(!1),this.clearFilter()),this.focus()}clearFilter(){this.filterable&&this.filterText&&(this.filterText="",this.cdr.markForCheck(),this.filterChange.emit(this.filterText))}verifySettings(){if((0,e.X6Q)()){if(this.defaultItem&&this.valueField&&"object"!=typeof this.defaultItem)throw new Error("defaultItem and data items must be of same type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownListComponent/#toc-defaultitem");if(!0===this.valuePrimitive&&He(this.value)&&"object"==typeof this.value)throw new Error("Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection");if(!1===this.valuePrimitive&&He(this.value)&&"object"!=typeof this.value)throw new Error("Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection");if(!He(this.valueField)!=!He(this.textField))throw new Error("Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-bind-to-arrays-of-complex-data")}}componentBlur(){if(!this.isActionSheetExpanded){this.isFocused=!1;const ue=He(this.selectionService.selected[0])&&zt(this.value,this.valueField)!==zt(this.dataService.itemAt(this.selectionService.selected[0]),this.valueField);ue||(0,n.g$)(this.close)||(0,n.g$)(this.onBlur)||(0,n.g$)(this.filterChange)||qn(this.wrapper.nativeElement)?this._zone.run(()=>{ue&&this.selectionService.change(this.selectionService.selected[0]),this.togglePopup(!1),this.clearFilter(),this.onBlur.emit(),this.onTouchedCallback()}):this.togglePopup(!1)}}onMouseDown(v){"input"!==v.target.tagName.toLowerCase()&&v.preventDefault()}onKeyPress(v){if(0===v.which||v.keyCode===n.R8.Enter)return;let ue=String.fromCharCode(v.charCode||v.keyCode);this.ignoreCase&&(ue=ue.toLowerCase())," "===ue&&v.preventDefault(),this.word+=ue,this.last=ue,this.search()}search(){clearTimeout(this.typingTimeout),this.filterable||(this.typingTimeout=setTimeout(()=>{this.word=""},this.delay),this.selectNext())}selectNext(){let v=this.dataService.filter(xa=>He(xa)&&!xa.header&&!this.disabledItemsService.isItemDisabled(xa)).map(xa=>this.dataService.grouped?{item:xa.value,itemIndex:xa.offsetIndex}:{item:xa,itemIndex:this.dataService.indexOf(xa)});const ue=((Pe,Tn)=>{for(let v=0;v<Pe.length;v++)if(Pe.charAt(v)!==Tn)return!1;return!0})(this.word,this.last);let dt=v.length;const In=!isNaN(this.selectionService.selected[0]);let Br,es,Ks,er=In?this.selectionService.selected[0]:0;for(this.defaultItem&&!this.disabledItemsService.isItemDisabled(this.defaultItem)&&(Ks={item:this.defaultItem,itemIndex:-1},dt+=1,er+=1),er+=ue&&In?1:0,v=((Pe,Tn,v)=>{let ue=Pe;return v&&(ue=[v].concat(ue)),ue.slice(Tn).concat(ue.slice(0,Tn))})(v,er,Ks),es=0;es<dt;es++){Br=zt(v[es].item,this.textField);const xa=!(!ue||!Oi(Br,this.last,this.ignoreCase)),ha=!!Oi(Br,this.word,this.ignoreCase);if(xa||ha){es=v[es].itemIndex;break}}es!==dt&&this.navigate(es)}emitChange(v){this.onChangeCallback(v),this.valueChange.emit(v)}navigate(v){this.selectionService.select(v)}findDataItem({valueField:v,value:ue}){const dt={dataItem:null,index:-1},In=es=>zt(es,v);let er;er=this.dataService.grouped?es=>In(es.value)===In(ue):es=>In(es)===In(ue);const Br=this.dataService.findIndex(er);return dt.dataItem=this.dataService.itemAt(Br),dt.index=Br,dt}setState(){const v=this.value,ue=this.valueField,dt=this.textField,In=this.valuePrimitive;if(this.defaultItem){const es=zt(this.defaultItem,ue),Ks=zt(v,ue);if(!He(v)||Ks===es)return this.updateState({dataItem:this.defaultItem,confirm:!0}),this.resetSelection(-1),void(this.filterable&&this.filterText&&this.dataService.itemsCount&&(this.selectionService.focused=this.firstFocusableIndex(0)))}const er=this.findDataItem({valueField:ue,value:v}),Br=!(In&&dt);er.dataItem?(this.updateState({dataItem:er.dataItem,confirm:!0}),this.resetSelection(er.index)):He(v)&&Br?(this.updateState({dataItem:v}),this.resetSelection()):this._previousDataItem?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):(this.clearState(),this.resetSelection())}handleFilter(v){this.filterChange.emit(v.target.value)}handleClick(){this.windowSize=Wi(),this.isAdaptive&&this.togglePopup(!0)}pageChange(v){this.virtual.skip=v.skip}assignAriaDescribedBy(){const ue=(this.wrapper.nativeElement.getAttribute("aria-describedby")||"").replace(this.valueLabelId,"").trim();this.valueLabelId=`k-${On()}`;const dt=`${this.valueLabelId} ${ue}`.trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",dt)}setComponentClasses(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,zi("picker",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,Kn(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,ho("picker",this.fillMode))}closeActionSheet(){this.actionSheet.toggle(!1),this.filterable&&(this.actionSheetSearchBar.value="",this.filterChange.emit("")),this.closed.emit()}openActionSheet(){this.windowSize=Wi(),this.actionSheet.toggle(!0),this.cdr.detectChanges(),Fr(this.optionsList,this.wrapper,this.renderer),this.title=jr(this.wrapper,this.title),cr(this.actionSheet,this.windowSize,this.renderer),this.cdr.detectChanges(),this.opened.emit(),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.filterable&&this.actionSheetSearchBar.focus()}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.SBq),e.Y36(u.oQ),e.Y36(x.qL),e.Y36(cs),e.Y36(pi),e.Y36(Ws),e.Y36(_a),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(nl,8),e.Y36(e.zs3))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-dropdownlist"]],contentQueries:function(v,ue,dt){if(1&v&&(e.Suo(dt,Ca,5),e.Suo(dt,na,5),e.Suo(dt,Xs,5),e.Suo(dt,Ft,5),e.Suo(dt,ks,5),e.Suo(dt,ts,5),e.Suo(dt,to,5)),2&v){let In;e.iGM(In=e.CRH())&&(ue.itemTemplate=In.first),e.iGM(In=e.CRH())&&(ue.groupTemplate=In.first),e.iGM(In=e.CRH())&&(ue.fixedGroupTemplate=In.first),e.iGM(In=e.CRH())&&(ue.valueTemplate=In.first),e.iGM(In=e.CRH())&&(ue.headerTemplate=In.first),e.iGM(In=e.CRH())&&(ue.footerTemplate=In.first),e.iGM(In=e.CRH())&&(ue.noDataTemplate=In.first)}},viewQuery:function(v,ue){if(1&v&&(e.Gf(il,5),e.Gf(En,7,e.s_b),e.Gf(un,7),e.Gf(Ki,5)),2&v){let dt;e.iGM(dt=e.CRH())&&(ue.responsiveRendererComponent=dt.first),e.iGM(dt=e.CRH())&&(ue.container=dt.first),e.iGM(dt=e.CRH())&&(ue.popupTemplate=dt.first),e.iGM(dt=e.CRH())&&(ue.optionsList=dt.first)}},hostVars:20,hostBindings:function(v,ue){1&v&&e.NdJ("keydown",function(In){return ue.keydown(In)})("keypress",function(In){return ue.keypress(In)})("click",function(){return ue.click()}),2&v&&(e.uIk("aria-controls",ue.ariaControls)("disabled",ue.isDisabledAttribute)("id",ue.focusableId)("dir",ue.dir)("tabindex",ue.hostTabIndex)("readonly",ue.readonlyAttr)("aria-busy",ue.isBusy)("role",ue.role)("aria-haspopup",ue.haspopup)("aria-expanded",ue.isAriaExpanded)("aria-invalid",ue.hostAriaInvalid)("aria-activedescendant",ue.hostAriaActivedescendant),e.ekj("k-dropdownlist",ue.hostClasses)("k-picker",ue.hostClasses)("k-disabled",ue.isDisabledClass)("k-loading",ue.isLoading))},inputs:{showStickyHeader:"showStickyHeader",iconClass:"iconClass",loading:"loading",data:"data",value:"value",textField:"textField",valueField:"valueField",adaptiveMode:"adaptiveMode",title:"title",subtitle:"subtitle",popupSettings:"popupSettings",listHeight:"listHeight",defaultItem:"defaultItem",disabled:"disabled",itemDisabled:"itemDisabled",readonly:"readonly",filterable:"filterable",virtual:"virtual",ignoreCase:"ignoreCase",delay:"delay",valuePrimitive:"valuePrimitive",tabindex:"tabindex",tabIndex:"tabIndex",size:"size",rounded:"rounded",fillMode:"fillMode",focusableId:["id","focusableId"]},outputs:{valueChange:"valueChange",filterChange:"filterChange",selectionChange:"selectionChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},exportAs:["kendoDropDownList"],features:[e._Bn([Qt,_a,cs,pi,Ws,u.oQ,{provide:u.mM,useValue:"kendo.dropdownlist"},{provide:Sr,useExisting:(0,e.Gpc)(()=>Pe)},{provide:n.GX,useExisting:(0,e.Gpc)(()=>Pe)}]),e.TTD],decls:16,vars:16,consts:function(){let Tn,v,ue,dt;return Tn=$localize`:kendo.dropdownlist.noDataText|The text displayed in the popup when there are no items:NO DATA FOUND`,v=$localize`:kendo.dropdownlist.selectButtonText|The text set as aria-label on the select button:Select`,ue=$localize`:kendo.dropdownlist.filterInputLabel|The text set as aria-label on the filter input:Filter`,dt=$localize`:kendo.dropdownlist.popupLabel|The label of the popup element that contains the list of options when its role is 'region':Options list`,[["kendoDropDownListLocalizedMessages","","noDataText",Tn,"selectButtonText",v,"filterInputLabel",ue,"popupLabel",dt],["unselectable","on",1,"k-input-inner",3,"id"],[1,"k-input-value-text"],[4,"ngIf"],[3,"ngIf"],["tabindex","-1","unselectable","on","type","button",1,"k-input-button","k-button","k-icon-button",3,"ngClass","kendoEventsOutsideAngular"],["unselectable","on","name","caret-alt-down","innerCssClass","k-button-icon",3,"svgIcon",4,"ngIf"],["class","k-button-icon k-icon",3,"ngClass",4,"ngIf"],["popupTemplate",""],[3,"resize",4,"ngIf"],["container",""],[3,"sharedPopupActionSheetTemplate","isActionSheetExpanded","title","showTextInput","subtitle","closePopup","textInputChange"],["sharedPopupActionSheetTemplate",""],[3,"templateContext"],["unselectable","on","name","caret-alt-down","innerCssClass","k-button-icon",3,"svgIcon"],[1,"k-button-icon","k-icon",3,"ngClass"],[4,"ngTemplateOutlet"],[3,"resize"],[3,"id","size","rounded","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","ariaLive","showStickyHeader","pageChange"],["optionsList",""],["class","k-no-data",4,"ngIf"],[1,"k-list-filter",3,"click"],[1,"k-searchbox","k-input",3,"ngClass"],["innerCssClass","k-input-icon","name","search",1,"k-icon",3,"svgIcon"],["role","searchbox","aria-autocomplete","list","aria-haspopup","listbox","tabindex","-1",1,"k-input-inner",3,"filterInput","dir","ngModel","ngModelChange","keydown","input","focus","blur","click"],["searchInput",""],[1,"k-list",3,"ngClass"],["kendoDropDownsSelectable","",1,"k-list-optionlabel",3,"ngClass","index"],[1,"k-no-data"],[3,"ngIf","templateContext"]]},template:function(v,ue){if(1&v&&(e.GkF(0,0),e.TgZ(1,"span",1)(2,"span",2),e.YNc(3,oo,1,4,null,3),e.YNc(4,Bi,1,1,"ng-template",4),e.qZA()(),e.TgZ(5,"button",5),e.YNc(6,Xo,1,1,"kendo-icon-wrapper",6),e.YNc(7,Lo,1,1,"span",7),e.qZA(),e.YNc(8,xr,1,1,"ng-template",null,8,e.W1O),e.YNc(10,Nr,1,0,"kendo-resize-sensor",9),e.GkF(11,null,10),e.TgZ(13,"responsive-renderer",11),e.NdJ("closePopup",function(){return ue.togglePopup(!1)})("textInputChange",function(In){return ue.onFilterChange(In)}),e.qZA(),e.YNc(14,Ea,8,21,"ng-template",null,12,e.W1O)),2&v){const dt=e.MAs(15);e.xp6(1),e.Q6J("id",ue.valueLabelId),e.xp6(2),e.Q6J("ngIf",ue.valueTemplate),e.xp6(1),e.Q6J("ngIf",!ue.valueTemplate),e.xp6(1),e.Q6J("ngClass",ue.selectButtonClasses)("kendoEventsOutsideAngular",e.VKq(14,go,ue.onMouseDown)),e.uIk("aria-label",ue.messageFor("selectButtonText")),e.xp6(1),e.Q6J("ngIf",!ue.loading&&!ue.iconClass),e.xp6(1),e.Q6J("ngIf",ue.loading||ue.iconClass),e.xp6(3),e.Q6J("ngIf",ue.isOpen||ue.isAdaptiveModeEnabled),e.xp6(3),e.Q6J("sharedPopupActionSheetTemplate",dt)("isActionSheetExpanded",ue.isActionSheetExpanded)("title",ue.title)("showTextInput",ue.filterable)("subtitle",ue.subtitle)}},dependencies:[re.ZS,n.NG,il,la,eo,K.O5,Os,K.mk,n.nV,K.tP,o.Fj,ct,o.JJ,o.On,Ys],encapsulation:2}),Pe})(),hs=(()=>{class Pe{constructor(v){this.templateRef=v}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.Rgc))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoMultiSelectCustomItemTemplate",""]]}),Pe})(),Zs=(()=>{class Pe{constructor(v){this.templateRef=v}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.Rgc))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoMultiSelectTagTemplate",""],["","kendoMultiSelectTreeTagTemplate",""]]}),Pe})(),ca=(()=>{class Pe{constructor(v){this.templateRef=v}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.Rgc))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoMultiSelectGroupTagTemplate",""],["","kendoMultiSelectTreeGroupTagTemplate",""]]}),Pe})();class za extends Ro{constructor(Tn){super(),this.dataItem=Tn}}let yc=(()=>{class Pe{constructor(v,ue){this.renderer=v,this.hostElement=ue,this.xCircleIcon=X.jKn,this.rounded="medium",this.fillMode="solid",this.disabledIndices=new Set,this.removeTag=new e.vpe,this.hostClasses=!0,this._size="medium"}set size(v){this.renderer.removeClass(this.hostElement.nativeElement,zi("chip-list",this.size)),v&&this.renderer.addClass(this.hostElement.nativeElement,zi("chip-list",v)),this._size=v}get size(){return this._size}get hostId(){return this.id}tagProp(v,ue,dt){const In=ue&&this.getPropField(v,ue,dt);return zt(v,In)}isTagDisabled(v,ue){return this.isGroupTag(v)?v.every((dt,In)=>this.disabledIndices.has(In+ue)):this.disabledIndices.has(ue)}deleteTag(v,ue,dt){v.preventDefault(),v.stopImmediatePropagation(),!this.disabled&&1===v.which&&this.removeTag.emit({tag:ue,index:dt})}itemId(v,ue){if(v)return this.tagPrefix+"-"+this.tagProp(v,this.valueField,ue)}isGroupTag(v){return v instanceof Array}tagAriaHidden(v){return He(this.focused)&&this.focused!==v}getPropField(v,ue,dt){const In=ue.length-1;if("string"==typeof ue)return ue;if(this.valueDepth){const er=this.valueDepth[dt];return In<er?ue[In]:ue[er]}return ue.find(er=>er in v)}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.Qsj),e.Y36(e.SBq))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-taglist"]],hostVars:5,hostBindings:function(v,ue){2&v&&(e.uIk("id",ue.hostId),e.ekj("k-chip-list",ue.hostClasses)("k-selection-multiple",ue.hostClasses))},inputs:{tags:"tags",textField:"textField",valueField:"valueField",valueDepth:"valueDepth",focused:"focused",template:"template",groupTemplate:"groupTemplate",disabled:"disabled",tagPrefix:"tagPrefix",id:"id",size:"size",rounded:"rounded",fillMode:"fillMode",disabledIndices:"disabledIndices"},outputs:{removeTag:"removeTag"},ngContentSelectors:ri,decls:2,vars:1,consts:[["class","k-chip",3,"ngClass",4,"ngFor","ngForOf"],[1,"k-chip",3,"ngClass"],[1,"k-chip-content"],[4,"ngIf","ngIfThen","ngIfElse"],["groupTag",""],["singleTag",""],[1,"k-chip-actions"],["aria-label","delete",1,"k-chip-action","k-chip-remove-action"],["name","x-circle",3,"svgIcon","mousedown"],[1,"k-chip-label","k-text-ellipsis"],[4,"ngIf"],[3,"ngIf"],[3,"templateContext"]],template:function(v,ue){1&v&&(e.F$t(),e.YNc(0,mr,10,21,"div",0),e.Hsn(1)),2&v&&e.Q6J("ngForOf",ue.tags)},dependencies:[re.ZS,K.sg,K.mk,K.O5,Os],encapsulation:2}),Pe})();const bc={multi:!0,provide:o.JU,useExisting:(0,e.Gpc)(()=>Hc)};let Hc=(()=>{class Pe{constructor(v,ue,dt,In,er,Br,es,Ks,xa,ha,Aa,vl){this.wrapper=v,this.localization=ue,this.popupService=dt,this.dataService=In,this.selectionService=er,this.navigationService=Br,this.disabledItemsService=es,this.cdr=Ks,this.differs=xa,this.renderer=ha,this._zone=Aa,this.touchEnabled=vl,this.animationDuration=300,this.xIcon=X.FZE,this.plusIcon=X.R7U,this.listBoxId=`k-${On()}`,this.tagListId=`k-${On()}`,this.tagPrefix="tag-"+On(),this.optionPrefix="option-"+On(),this.focusedTagIndex=void 0,this.showStickyHeader=!0,this.focusableId=`k-${On()}`,this.autoClose=!0,this.tabindex=0,this.adaptiveMode="none",this.title="",this.disabled=!1,this.readonly=!1,this.filterable=!1,this._listHeight=200,this.clearButton=!0,this.tagMapper=ml=>ml||[],this.allowCustom=!1,this.valueNormalizer=ml=>ml.pipe((0,f.U)(yl=>{const Cc=Wc=>"string"==typeof Wc&&yl.toLowerCase()===Wc.toLowerCase(),Bc=this.value.find(Cc);return Bc||(this.dataService.find(Cc)||yl)})),this.filterChange=new e.vpe,this.valueChange=new e.vpe,this.open=new e.vpe,this.opened=new e.vpe,this.close=new e.vpe,this.closed=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.removeTag=new e.vpe,this.hostClasses=!0,this.windowSize="large",this.initialized=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this._valueHolder=[],this.onChangeCallback=ml=>{},this.onTouchedCallback=ml=>{},this._placeholder="",this._open=!1,this._value=[],this._popupSettings={animate:!0},this._checkboxes={enabled:!1},this._isFocused=!1,this.selectedDataItems=[],this.customValueSubject=new _.x,this.subs=new d.w0,(0,a.s)(Ae),this.popupMouseDownHandler=this.onMouseDown.bind(this),this.data=[],this.direction=this.localization.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}get actionSheet(){return this.responsiveRendererComponent?.actionSheet}get actionSheetSearchBar(){return this.responsiveRendererComponent?.actionSheetSearchBar}get ariaControls(){return this.isOpen?this.listBoxId:void 0}focusItemAt(v){const dt=(this.allowCustom?-1:0)<=0&&v<this.data.length;He(v)&&dt&&!this.disabledItemsService.isIndexDisabled(v)?this.selectionService.focus(v):this.selectionService.focus(null)}focus(){this.disabled||this.searchbar.focus()}onSearchBarFocus(){this.isFocused||(this.isFocused=!0,(0,n.g$)(this.onFocus)&&this._zone.run(()=>{this.onFocus.emit()}))}onAdaptiveTextBoxChange(v){this.filterable?this.filterChange.emit(v):this.searchTextAndFocus(v)}blur(){this.disabled||this.searchbar.blur()}onSearchBarBlur(){if(!this.isActionSheetExpanded){if(!this.isFocused)return;this.isFocused=!1,(0,n.g$)(this.onBlur)||(0,n.g$)(this.filterChange)||(0,n.g$)(this.close)||qn(this.wrapper.nativeElement)?this._zone.run(()=>{this.closePopup(),this.isOpen&&this.allowCustom||this.clearFilter(),this.onBlur.emit(),this.onTouchedCallback()}):(this.allowCustom||this.clearFilter(),this.closePopup())}}onMouseDown(v){v.preventDefault()}onResize(){if(this.isAdaptiveModeEnabled&&this.windowSize!==Wi()&&(this.isOpen&&this.togglePopup(!1),this.windowSize=Wi(),this.cdr.detectChanges()),this.isOpen&&!this.isActionSheetExpanded){const v=this.popupRef.popupElement,{min:ue,max:dt}=this.width;v.style.minWidth=ue,v.style.width=dt}}get appendTo(){const{appendTo:v}=this.popupSettings;if(v&&"root"!==v)return"component"===v?this.container:v}set data(v){this.dataService.data=v||[],this.virtual&&(this.virtual.skip=0),this.initialized&&this.setState(this.value)}get data(){const v=this.virtual;if(v){const ue=v.skip||0,dt=ue+v.pageSize;return v.total=this.dataService.data.length,this.dataService.data.slice(ue,dt)}return this.dataService.data}set value(v){this._value=v||[],!this.differ&&this.value&&(this.differ=this.differs.find(this.value).create()),this.valueChangeDetected=!0,this.initialized&&this.setState(this.value)}get value(){return this._value}set tabIndex(v){this.tabindex=v}get tabIndex(){return this.tabindex}set size(v){const ue=v||"medium";this.renderer.removeClass(this.wrapper.nativeElement,zi("input",this.size)),"none"!==v&&this.renderer.addClass(this.wrapper.nativeElement,zi("input",ue)),this._size=ue}get size(){return this._size}set rounded(v){const ue=v||"medium";this.renderer.removeClass(this.wrapper.nativeElement,Kn(this.rounded)),"none"!==v&&this.renderer.addClass(this.wrapper.nativeElement,Kn(ue)),this._rounded=ue}get rounded(){return this._rounded}set fillMode(v){const ue=v||"solid";this.renderer.removeClass(this.wrapper.nativeElement,ho("input",this.fillMode)),"none"!==v&&this.renderer.addClass(this.wrapper.nativeElement,ho("input",ue)),this._fillMode=ue}get fillMode(){return this._fillMode}set placeholder(v){this._placeholder=v||""}get placeholder(){return this.selectedDataItems.length?"":this._placeholder}set subtitle(v){this._subtitle=v}get subtitle(){return this._subtitle||this.placeholder}get isAdaptiveModeEnabled(){return"auto"===this.adaptiveMode}set itemDisabled(v){if("function"!=typeof v)throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(v)}.`);this.disabledItemsService.itemDisabled=v}set checkboxes(v){this._checkboxes=(Pe=>Wn(Pe)?Object.assign({},{enabled:!0,checkOnClick:!0},Pe):{enabled:!!Pe,checkOnClick:!0})(v)}get checkboxes(){return this._checkboxes}set virtual(v){this._virtualSettings=Ka(v)}get virtual(){return this._virtualSettings}set popupSettings(v){this._popupSettings=Object.assign({animate:!0},v)}get popupSettings(){return this._popupSettings}set listHeight(v){this._listHeight=v}get listHeight(){if(!this.isAdaptive)return this._listHeight}set valuePrimitive(v){this._valuePrimitive=v}get valuePrimitive(){return He(this._valuePrimitive)?this._valuePrimitive:!He(this.valueField)}get dir(){return this.direction}get disabledClass(){return this.disabled}get isLoading(){return this.loading}get isActionSheetExpanded(){return this.actionSheet?.expanded}get isAdaptive(){return this.isAdaptiveModeEnabled&&"large"!==this.windowSize}get listContainerClasses(){const v=["k-list-container","k-multiselect-popup"];return this.popupSettings.popupClass&&v.push(this.popupSettings.popupClass),v}get customItemSizeClass(){return`${this.size?zi("list",this.size):""}`}get width(){let v=0;(0,n.X_)()&&(v=this.wrapper.nativeElement.offsetWidth);const ue=this.popupSettings.width||v;return{min:isNaN(v)?v:`${v}px`,max:isNaN(ue)?ue:`${ue}px`}}get height(){const v=this.popupSettings.height;return He(v)?`${v}px`:"auto"}get activeDescendant(){const v=this.focusedTagIndex,ue=this.selectionService.focused;let dt,In;if(He(v)&&!this.isOpen)In=this.tags[v],dt=this.tagPrefix;else{if(!He(ue)||-1===ue||!this.isOpen)return null;In=this.dataService.itemAt(ue),dt=this.optionPrefix}return dt+"-"+zt(In,this.valueField)}get clearButtonVisiblity(){if(this.touchEnabled)return"visible"}applyValue(){this.value=this._valueHolder,this._valueHolder=[],this.emitValueChange(),this.togglePopup(!1)}cancelValue(){this._valueHolder=[],this.togglePopup(!1)}verifySettings(){if((0,e.X6Q)()&&0!==this.value.length){if(!xi(this.value))throw new Error("Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection");if(!0===this.valuePrimitive&&Vi(this.value))throw new Error("Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection");if(!1===this.valuePrimitive&&!Vi(this.value))throw new Error("Expected values of Object type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection");if(!He(this.valueField)!=!He(this.textField))throw new Error("Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#toc-bind-to-arrays-of-complex-data")}}change(v){if(v.isMultipleSelection)He(v.added)&&v.added.length>0&&v.added.forEach(ue=>{const dt=this.dataService.itemAt(ue),In=this.valuePrimitive&&He(dt)&&He(dt[this.valueField])?dt[this.valueField]:dt;In&&(this.isAdaptive&&this.isActionSheetExpanded?this._valueHolder=[...this._valueHolder,In]:this.value=[...this.value,In])}),He(v.removed)&&v.removed.length>0&&(v.removed.forEach(ue=>{const dt=this.dataService.itemAt(ue),In=er=>zt(er,this.valueField)!==zt(dt,this.valueField);this.isAdaptive&&this.isActionSheetExpanded?this._valueHolder=this._valueHolder.filter(In):this.value=this.value.filter(In)}),this.cdr.detectChanges());else{if((He(v.added)||He(v.removed))&&(-1===v.added||-1===v.removed))return void this.addCustomValue(this.text);if(He(v.added)){const dt=this.dataService.itemAt(v.added),In=this.valuePrimitive&&He(dt)&&He(dt[this.valueField])?dt[this.valueField]:dt;this.isAdaptive&&this.isActionSheetExpanded?this._valueHolder=[...this._valueHolder,In]:this.value=[...this.value,In]}if(He(v.removed)){const dt=this.dataService.itemAt(v.removed),In=er=>zt(er,this.valueField)!==zt(dt,this.valueField);this.isAdaptive&&this.isActionSheetExpanded?this._valueHolder=this._valueHolder.filter(In):this.value=this.value.filter(In),this.selectionService.focused=v.removed,this.cdr.detectChanges()}}(!this.isAdaptive||!this.isActionSheetExpanded)&&this.emitValueChange()}setState(v){let ue=this.dataService.data;this.dataService.grouped&&(ue=ue.filter(In=>!In.header).map(In=>In.value));const dt=Jn(this.value,ue,this.valueField);this.selectionService.resetSelection(dt),this.disabledItemsService.isIndexDisabled(this.selectionService.focused)&&(this.selectionService.focused=this.firstFocusableIndex(0)),this.isOpen&&void 0===this.selectionService.focused&&(this.dataService.itemsCount>0?this.selectionService.focused=this.firstFocusableIndex(0):this.allowCustom&&(this.selectionService.focused=-1)),this.valuePrimitive&&!this.valueField&&(this.selectedDataItems=v.slice()),(Vi(v)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=((Pe,Tn,v)=>{const ue=((Pe,Tn)=>xi(Pe)&&Pe.filter(v=>Wn(v)&&He(zt(v,Tn))))(Pe,v)||[];return(((Pe,Tn=[],v)=>Pe.map(ue=>Tn.find(dt=>zt(dt,v)===ue)).filter(ue=>void 0!==ue))(Pe,Tn,v)||[]).concat(ue)})(v,ue,this.valueField)),this.selectedDataItems.length<v.length&&(this.selectedDataItems=v.map(In=>{const er=this.selectedDataItems.find(Br=>zt(Br,this.valueField)===zt(In,this.valueField));return He(er)?er:this.resolveDataItemFromTags(In)}).filter(In=>He(In))),this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.disabledIndices=this.disabledItemsMapper(),this.cdr.markForCheck()}handleFilter(v){this.text=v,v&&!this.isOpen&&this.openPopup(),this.filterable?this.filterChange.emit(v):this.searchTextAndFocus(v),this.searchbar.setInputSize()}pageChange(v){this.virtual.skip=v.skip}clearFilter(){this.filterable&&this.text&&this.filterChange.emit(""),this.text="",this.searchbar.input.nativeElement.value="",this.searchbar.setInputSize()}handleNavigate(v){const ue=this.text&&v.keyCode!==n.R8.ArrowDown&&v.keyCode!==n.R8.ArrowUp,dt=this.text&&v.keyCode===n.R8.Enter||v.keyCode===n.R8.Escape;if(v.keyCode===n.R8.Backspace&&this.isActionSheetExpanded)return;if(!this.text&&v.keyCode===n.R8.Backspace&&this.tags.length>0)return void this.handleBackspace();if(this.disabled||ue&&!dt)return;const er=v,Br=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,es=this.navigationService.process({current:Br,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:er});es!==Ps.Undefined&&(es===Ps.Enter&&this.isOpen||es!==Ps.Enter)&&!this.isActionSheetExpanded&&es===Ps.Tab&&v.preventDefault()}handleRemoveTag({tag:v}){const ue=new za(v);this.disabled||this.readonly||(this.focus(),this.removeTag.emit(ue),!ue.isDefaultPrevented()&&(v instanceof Array?this.removeGroupTag(v):this.removeSingleTag(v),this.cdr.detectChanges()))}clearAll(v){v?.stopImmediatePropagation(),v?.preventDefault(),this.focus(),this.clearFilter(),this.selectionService.lastClickedIndex=null;const ue=this.selectionService.selected;this.value=this.value.filter((dt,In)=>this.disabledItemsService.isIndexDisabled(ue[In])),this.emitValueChange()}addCustomValue(v){this.customValueSubject.next(v)}ngAfterContentChecked(){this.verifySettings()}ngDoCheck(){this.differ&&this.differ.diff(this.value)&&!this.valueChangeDetected&&this.setState(this.value),this.valueChangeDetected=!1}ngOnInit(){this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.createCustomValueStream(),this.subs.add(this.localization.changes.subscribe(({rtl:v})=>{this.direction=v?"rtl":"ltr",this.cdr.markForCheck()})),this.setState(this.value),this.setComponentClasses(),this.initialized=!0}ngOnChanges(v){const ue=this.virtual;ue&&v.data&&v.data.isFirstChange()&&this.pageChange({skip:0,take:ue.pageSize}),(0,n.ln)("valueNormalizer",v)&&this.createCustomValueStream(),(0,n.aG)(["textField","valueField","valuePrimitive"],v)&&this.setState(this.value)}ngAfterViewInit(){this.windowSize=Wi(),this.cdr.detectChanges(),this.searchbar.setInputSize(),this.subs.add(this.renderer.listen(this.wrapper.nativeElement,"mousedown",this.handleMousedown.bind(this))),this.subs.add(this.renderer.listen(this.wrapper.nativeElement,"keydown",this.handleKeydown.bind(this))),this.actionSheet&&(0,n.X_)()&&(this.actionSheet.element.nativeElement.style.setProperty("--kendo-actionsheet-height","60vh"),this.actionSheet.element.nativeElement.style.setProperty("--kendo-actionsheet-max-height","none"))}ngOnDestroy(){this._toggle(!1),this.unsubscribeEvents()}toggle(v){Promise.resolve(null).then(()=>{const ue=He(v)?v:!this._open;this._toggle(ue),this.cdr.markForCheck()})}get isOpen(){return fo(this._open||this.isActionSheetExpanded)}reset(){this.text="",this.value=[]}messageFor(v){return this.localization.get(v)}writeValue(v){this.value=v||[]}registerOnChange(v){this.onChangeCallback=v}registerOnTouched(v){this.onTouchedCallback=v}setDisabledState(v){this.disabled=v}onTagMapperChange(){this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.cdr.markForCheck()}handleClick(){this.windowSize=Wi(),this.isAdaptive&&this.togglePopup(!0)}set isFocused(v){this.renderer[v?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=v}get isFocused(){return this._isFocused}subscribeEvents(){if(!(0,n.X_)())return;const v=()=>this.isOpen,ue=()=>!this.isOpen,dt=()=>!this.isOpen&&void 0!==this.focusedTagIndex;[this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.navigationService.esc.subscribe(this.closePopup.bind(this)),this.navigationService.enter.pipe((0,p.h)(v)).subscribe(this.handleEnter.bind(this)),this.navigationService.open.subscribe(this.openPopup.bind(this)),this.navigationService.close.subscribe(this.handleClose.bind(this)),this.navigationService.up.pipe((0,p.h)(v)).subscribe(In=>this.handleUp(In.index)),this.navigationService.home.pipe((0,p.h)(()=>ue)).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe((0,p.h)(()=>ue)).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe((0,p.h)(dt)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe((0,p.h)(dt)).subscribe(this.handleDelete.bind(this)),this.navigationService.left.subscribe("rtl"===this.direction?this.handleRightKey.bind(this):this.handleLeftKey.bind(this)),this.navigationService.right.subscribe("rtl"===this.direction?this.handleLeftKey.bind(this):this.handleRightKey.bind(this)),this.navigationService.down.subscribe(In=>this.handleDownKey(In.index)),this.navigationService.selectprevious.pipe((0,p.h)(v)).subscribe(In=>this.handleSelectUpDown(In)),this.navigationService.selectnext.pipe((0,p.h)(v)).subscribe(In=>this.handleSelectUpDown(In)),this.navigationService.selectalltobeginning.pipe((0,p.h)(v)).subscribe(()=>this.handleSelectAllToBeginning()),this.navigationService.selectalltoend.pipe((0,p.h)(v)).subscribe(()=>this.handleSelectAllToEnd()),(0,s.T)(this.navigationService.pagedown,this.navigationService.pageup).subscribe(In=>{this.isOpen&&(In.originalEvent.preventDefault(),this.optionsList.scrollWithOnePage(Ps[In.originalEvent.code]))})].forEach(In=>this.subs.add(In))}subscribeTouchEvents(){!(0,n.X_)()||!this.touchEnabled||this._zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",v=>{(this.isFocused||this.isOpen)&&!pe(this.wrapper,v.target,this.popupRef)&&this._zone.run(()=>{this.blur(),this.isOpen&&this.togglePopup(!1)})}))}unsubscribeEvents(){(0,n.X_)()&&(this.subs.unsubscribe(),this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())}removeGroupTag(v){let ue=this.dataService.data;this.dataService.grouped&&(ue=ue.filter(In=>!In.header).map(In=>In.value));const dt=new Set(v.map(In=>zt(In,this.valueField)));this.value=this.value.filter(In=>{const er=Jn([In],ue,this.valueField)[0],Br=this.disabledItemsService.isIndexDisabled(er);return!dt.has(zt(In,this.valueField))||Br}),this.emitValueChange()}removeSingleTag(v){let ue=this.dataService.data;this.dataService.grouped&&(ue=ue.filter(In=>!In.header).map(In=>In.value));const dt=Jn([v],ue,this.valueField)[0];this.disabledItemsService.isIndexDisabled(dt)||((Pe=>!isNaN(Pe))(dt)?(this.selectionService.deselect(dt),this.selectionService.focused=dt,this.togglePopup(!1)):(this.value=this.value.filter(er=>zt(er,this.valueField)!==zt(v,this.valueField)),this.emitValueChange()))}disabledItemsMapper(){const{selected:v}=this.selectionService;return new Set(this.selectedDataItems.reduce((ue,dt,In)=>(this.disabledItemsService.isIndexDisabled(v[In])&&ue.push(In),ue),[]))}createCustomValueStream(){this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe((0,M.b)(()=>{this.loading=!0,this.disabled=!0,this.cdr.detectChanges()}),this.valueNormalizer,(0,L.K)(()=>(this.loading=!1,this.disabled=!1,this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter(),this.nextTick(()=>{this.searchbar.focus()}),this.createCustomValueStream(),(0,C.of)(null)))).subscribe(v=>{if(this.loading=!1,this.disabled=!1,He(v)){const ue=this.valuePrimitive?zt(v,this.valueField):v,dt=this.dataService.indexOf(ue),In=-1===dt;-1===this.value.indexOf(ue)?(this.tags=this.tagMapper([...this.selectedDataItems,v]),In?this.value=[...this.value,ue]:this.selectionService.add(dt)):!In&&this.selectionService.isSelected(dt)?(this.selectionService.deselect(dt),this.selectionService.focused=dt):this.value=this.value.filter(er=>zt(er,this.valueField)!==ue),this.emitValueChange()}this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter(),this.nextTick(()=>{this.searchbar.focus()})})}handleItemChange(v){this.change(v),this.autoClose&&!v.preventClosingPopup&&!this.isActionSheetExpanded&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter()}handleMousedown(v){if(!this.isActionSheetExpanded&&0===v.button){if(this.isFocused&&this.isOpen&&v.target===this.searchbar.input.nativeElement||((!this.touchEnabled||this.touchEnabled&&"SPAN"!==v.target.tagName)&&this.searchbar.focus(),this.popupRef&&this.popupRef.popupElement.contains(v.target)))return;v.preventDefault(),this.togglePopup(!this.isOpen)}}handleKeydown(v){this.isFocused&&this.isOpen&&(v.ctrlKey||v.metaKey)&&v.keyCode===n.R8.KeyA&&(v.preventDefault(),this.handleSelectAll())}handleEnter(v){const ue=this.selectionService,dt=this.selectionService.focused;this.selectionService.lastClickedIndex=dt,this.isOpen&&v.originalEvent.preventDefault(),-1!==dt?(ue.isSelected(dt)?(ue.deselect(dt),ue.focused=dt):ue.add(dt),this.autoClose&&!this.isActionSheetExpanded&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter()):this.allowCustom&&this.text&&this.addCustomValue(this.text)}handleClose(){this.closePopup(),this.searchbar.focus()}handleEnd(){this.focusedTagIndex=this.tags.length-1}handleHome(){this.focusedTagIndex=0}sortSelectionAscending(){return this.selectionService.selected.sort((v,ue)=>v-ue)}handleSelectAll(){const v=this.selectionService.selected.length,ue=this.dataService.data.length,dt=this.dataService.data.filter(In=>!In.header).length;!this.dataService.grouped&&v===ue||this.dataService.grouped&&v===dt?this.clearAll():(this.selectionService.selectFromTo(0,ue-1),this.selectionService.emitMultipleAddedRemoved())}handleSelectAllToBeginning(){const v=this.selectionService.selected.length,ue=this.dataService.data.length,dt=this.selectionService.focused,In=this.sortSelectionAscending()[v-1];v!==ue&&(this.selectionService.unselectFromTo(In,dt+1),this.selectionService.selectFromTo(0,dt)),this.nextTick(()=>this.selectionService.focus(0)),this.selectionService.emitMultipleAddedRemoved()}handleSelectAllToEnd(){const ue=this.dataService.data.length,dt=this.selectionService.focused;if(this.selectionService.selected.length!==ue&&(this.selectionService.unselectFromTo(dt-1,0),this.selectionService.selectFromTo(dt,ue-1)),this.dataService.grouped){const In=this.dataService.groupIndices[this.dataService.groupIndices.length-1]-1;this.nextTick(()=>this.selectionService.focus(In))}else this.nextTick(()=>this.selectionService.focus(ue-1));this.selectionService.emitMultipleAddedRemoved()}handleSelectUpDown(v){const ue=this.selectionService.focused;if(!He(ue))return;let dt;dt="ArrowUp"===v.originalEvent.key?ue>0?ue-1:ue:ue<this.dataService.data.length-1?ue+1:ue,He(this.selectionService.lastClickedIndex)||(this.selectionService.lastClickedIndex=ue),this.selectRangeFromTo(dt)}selectRangeFromTo(v){const ue=this.selectionService.lastClickedIndex;ue>v?(this.selectionService.unselectNotNeededIndices(v,ue,this.dataService.data.length),this.selectionService.selectFromTo(v,this.selectionService.lastClickedIndex),this.selectionService.emitMultipleAddedRemoved()):(this.selectionService.unselectNotNeededIndices(ue,v,this.dataService.data.length),this.selectionService.selectFromTo(ue,v),this.selectionService.emitMultipleAddedRemoved()),this.nextTick(()=>this.selectionService.focus(v))}handleUp(v){this.selectionService.focused=v}handleBackspace(){void 0!==this.focusedTagIndex?this.handleDelete():(this.handleRemoveTag({tag:this.tags[this.tags.length-1]}),this.searchbar.focus())}handleDelete(){this.handleRemoveTag({tag:this.tags[this.focusedTagIndex]}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)}handleLeftKey(){void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--}handleDownKey(v){this.isOpen?this.selectionService.focused=v||this.firstFocusableIndex(0):this.openPopup()}handleRightKey(){const v=this.tags.length-1;this.focusedTagIndex===v?this.focusedTagIndex=void 0:this.focusedTagIndex<v&&this.focusedTagIndex++}findIndex(v,ue=0){let dt;v=v.toLowerCase();const In=this.dataService.findIndex(er=>(dt=zt(this.dataService.grouped?er.value:er,this.textField),dt=He(dt)?dt.toString().toLowerCase():"",v&&dt.startsWith(v)),ue);return this.disabledItemsService.isIndexDisabled(In)?In+1>this.dataService.itemsCount?-1:this.findIndex(v,In+1):In}searchTextAndFocus(v){const ue=this.findIndex(v);this.selectionService.focused=ue}closePopup(){this.togglePopup(!1),this.focusedTagIndex=void 0}openPopup(){this.togglePopup(!0),this.focusedTagIndex=void 0}togglePopup(v){this.disabled||this.readonly||this.isOpen===v||this.triggerPopupEvents(v)||this._toggle(v)}triggerPopupEvents(v){const ue=new Ro;return v?this.open.emit(ue):this.close.emit(ue),ue.isDefaultPrevented()}_toggle(v){this._open=v,this.destroyPopup(),this.isActionSheetExpanded&&(this.closeActionSheet(),this.focus()),this._open&&this.createPopup()}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}createPopup(){if(this.virtual&&(this.virtual.skip=0),this.windowSize=Wi(),this.isAdaptive)return void this.openActionSheet();const v="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:v,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:v,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"});const In=this.popupRef.popupElement,{min:er,max:Br}=this.width;this.appendTo||(this.renderer.setAttribute(In,"role","region"),this.renderer.setAttribute(In,"aria-label",this.messageFor("popupLabel"))),In.addEventListener("mousedown",this.popupMouseDownHandler),In.style.minWidth=er,In.style.width=Br,In.style.height=this.height,In.setAttribute("dir",this.direction);const es=In.querySelector("ul.k-list-ul"),Ks=this.searchbar.input.nativeElement.getAttribute("aria-labelledby");Ks&&es.setAttribute("aria-labelledby",Ks),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),Fr(this.optionsList,this.searchbar.input,this.renderer),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(()=>{this.togglePopup(!1)})}emitValueChange(){this.onChangeCallback(this.value),this.valueChange.emit(this.value)}resolveDataItemFromTags(v){return this.tags&&this.tags.length&&He(v)?this.tags.reduce((dt,In)=>{const er=xi(In)?In:[In];return dt.push(...er),dt},[]).find(dt=>zt(dt,this.valueField)===zt(v,this.valueField)):void 0}firstFocusableIndex(v){const ue=this.dataService.itemsCount;if(this.disabledItemsService.isIndexDisabled(v)){const dt=v+1;return dt<ue?this.firstFocusableIndex(dt):void 0}return v}nextTick(v){this._zone.runOutsideAngular(()=>{setTimeout(()=>this._zone.run(v))})}setComponentClasses(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,zi("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,Kn(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,ho("input",this.fillMode))}closeActionSheet(){this.actionSheet.toggle(!1),this.actionSheetSearchBar.value="",this.filterable&&this.filterChange.emit(""),this.closed.emit()}openActionSheet(){this.windowSize=Wi(),this.actionSheet.toggle(!0),this._valueHolder=[...this.value],this.cdr.detectChanges(),Fr(this.optionsList,this.searchbar.input,this.renderer),this.title=jr(this.searchbar.input,this.title),cr(this.actionSheet,this.windowSize,this.renderer),this.cdr.detectChanges(),this.opened.emit(),this.optionsList.scrollToItem(this.selectionService.focused),this.selectionService.focus(this.selectionService.focused),this.actionSheetSearchBar.focus()}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.SBq),e.Y36(u.oQ),e.Y36(x.qL),e.Y36(_a),e.Y36(cs),e.Y36(pi),e.Y36(Ws),e.Y36(e.sBO),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(nl,8))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-multiselect"]],contentQueries:function(v,ue,dt){if(1&v&&(e.Suo(dt,Ca,5),e.Suo(dt,hs,5),e.Suo(dt,na,5),e.Suo(dt,Xs,5),e.Suo(dt,ks,5),e.Suo(dt,ts,5),e.Suo(dt,Zs,5),e.Suo(dt,ca,5),e.Suo(dt,to,5)),2&v){let In;e.iGM(In=e.CRH())&&(ue.template=In.first),e.iGM(In=e.CRH())&&(ue.customItemTemplate=In.first),e.iGM(In=e.CRH())&&(ue.groupTemplate=In.first),e.iGM(In=e.CRH())&&(ue.fixedGroupTemplate=In.first),e.iGM(In=e.CRH())&&(ue.headerTemplate=In.first),e.iGM(In=e.CRH())&&(ue.footerTemplate=In.first),e.iGM(In=e.CRH())&&(ue.tagTemplate=In.first),e.iGM(In=e.CRH())&&(ue.groupTagTemplate=In.first),e.iGM(In=e.CRH())&&(ue.noDataTemplate=In.first)}},viewQuery:function(v,ue){if(1&v&&(e.Gf(il,5),e.Gf(En,7,e.s_b),e.Gf(Ms,7),e.Gf(un,7),e.Gf(Ki,5)),2&v){let dt;e.iGM(dt=e.CRH())&&(ue.responsiveRendererComponent=dt.first),e.iGM(dt=e.CRH())&&(ue.container=dt.first),e.iGM(dt=e.CRH())&&(ue.searchbar=dt.first),e.iGM(dt=e.CRH())&&(ue.popupTemplate=dt.first),e.iGM(dt=e.CRH())&&(ue.optionsList=dt.first)}},hostVars:9,hostBindings:function(v,ue){2&v&&(e.uIk("dir",ue.dir),e.ekj("k-multiselect",ue.hostClasses)("k-input",ue.hostClasses)("k-disabled",ue.disabledClass)("k-loading",ue.isLoading))},inputs:{showStickyHeader:"showStickyHeader",focusableId:"focusableId",autoClose:"autoClose",loading:"loading",data:"data",value:"value",valueField:"valueField",textField:"textField",tabindex:"tabindex",tabIndex:"tabIndex",size:"size",rounded:"rounded",fillMode:"fillMode",placeholder:"placeholder",adaptiveMode:"adaptiveMode",title:"title",subtitle:"subtitle",disabled:"disabled",itemDisabled:"itemDisabled",checkboxes:"checkboxes",readonly:"readonly",filterable:"filterable",virtual:"virtual",popupSettings:"popupSettings",listHeight:"listHeight",valuePrimitive:"valuePrimitive",clearButton:"clearButton",tagMapper:"tagMapper",allowCustom:"allowCustom",valueNormalizer:"valueNormalizer"},outputs:{filterChange:"filterChange",valueChange:"valueChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur",removeTag:"removeTag"},exportAs:["kendoMultiSelect"],features:[e._Bn([bc,_a,cs,pi,Ws,u.oQ,{provide:u.mM,useValue:"kendo.multiselect"},{provide:Sr,useExisting:(0,e.Gpc)(()=>Pe)},{provide:n.GX,useExisting:(0,e.Gpc)(()=>Pe)}]),e.TTD],decls:15,vars:36,consts:function(){let Tn,v,ue,dt,In;return Tn=$localize`:kendo.multiselect.noDataText|The text displayed in the popup when there are no items:NO DATA FOUND`,v=$localize`:kendo.multiselect.clearTitle|The title of the clear button:clear`,ue=$localize`:kendo.multiselect.popupLabel|The label of the popup element that contains the list of options when its role is 'region':Options list`,dt=$localize`:kendo.multiselect.applyButton|The text of the Apply button in the action sheet:Apply`,In=$localize`:kendo.multiselect.cancelButton|The text of the Cancel button in the action sheet:Cancel`,[["kendoMultiSelectLocalizedMessages","","noDataText",Tn,"clearTitle",v,"popupLabel",ue,"applyButton",dt,"cancelButton",In],[1,"k-input-values"],[3,"size","rounded","fillMode","id","tags","textField","valueField","focused","disabled","template","groupTemplate","tagPrefix","disabledIndices","removeTag"],[3,"ariaExpanded","ariaControls","id","role","tagListId","isLoading","isFilterable","activeDescendant","userInput","disabled","readonly","tabIndex","placeholder","onNavigate","valueChange","onBlur","onFocus","click"],["searchbar",""],["class","k-clear-value","role","button","tabindex","-1",3,"visibility","mousedown",4,"ngIf"],["class","k-icon k-i-loading k-input-loading-icon",4,"ngIf"],["popupTemplate",""],[3,"resize",4,"ngIf"],["container",""],[3,"sharedPopupActionSheetTemplate","isActionSheetExpanded","title","showTextInput","showActionButtons","subtitle","placeholder","closePopup","textInputChange","navigate","onApply","onCancel"],["sharedPopupActionSheetTemplate",""],["role","button","tabindex","-1",1,"k-clear-value",3,"mousedown"],["name","x",1,"k-icon",3,"svgIcon"],[1,"k-icon","k-i-loading","k-input-loading-icon"],[4,"ngTemplateOutlet"],[3,"resize"],[4,"ngIf"],["class","k-list",3,"ngClass",4,"ngIf"],[3,"size","rounded","id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","multipleSelection","virtual","checkboxes","isMultiselect","isActionSheetExpanded","showStickyHeader","pageChange"],["optionsList",""],["class","k-no-data",4,"ngIf"],[3,"templateContext"],[1,"k-list",3,"ngClass"],["kendoDropDownsSelectable","",1,"k-list-item","k-custom-item",3,"multipleSelection","index"],[4,"ngIf","ngIfElse"],["default_custom_item_template",""],["name","plus",1,"k-icon",3,"svgIcon"],[1,"k-no-data"],[3,"ngIf","templateContext"],[3,"ngIf"]]},template:function(v,ue){if(1&v&&(e.GkF(0,0),e.TgZ(1,"div",1)(2,"kendo-taglist",2),e.NdJ("removeTag",function(In){return ue.handleRemoveTag(In)}),e.qZA(),e.TgZ(3,"kendo-searchbar",3,4),e.NdJ("onNavigate",function(In){return ue.handleNavigate(In)})("valueChange",function(In){return ue.handleFilter(In)})("onBlur",function(){return ue.onSearchBarBlur()})("onFocus",function(){return ue.onSearchBarFocus()})("click",function(){return ue.handleClick()}),e.qZA()(),e.YNc(5,mo,2,4,"span",5),e.YNc(6,Ii,1,0,"span",6),e.YNc(7,lr,1,1,"ng-template",null,7,e.W1O),e.YNc(9,Yr,1,0,"kendo-resize-sensor",8),e.GkF(10,null,9),e.TgZ(12,"responsive-renderer",10),e.NdJ("closePopup",function(){return ue.togglePopup(!1)})("textInputChange",function(In){return ue.onAdaptiveTextBoxChange(In)})("navigate",function(In){return ue.handleNavigate(In)})("onApply",function(){return ue.applyValue()})("onCancel",function(){return ue.cancelValue()}),e.qZA(),e.YNc(13,Ss,6,22,"ng-template",null,11,e.W1O)),2&v){const dt=e.MAs(14);e.xp6(2),e.Q6J("size",ue.size)("rounded",ue.rounded)("fillMode",ue.fillMode)("id",ue.tagListId)("tags",ue.tags)("textField",ue.textField)("valueField",ue.valueField)("focused",ue.focusedTagIndex)("disabled",ue.disabled)("template",ue.tagTemplate)("groupTemplate",ue.groupTagTemplate)("tagPrefix",ue.tagPrefix)("disabledIndices",ue.disabledIndices),e.xp6(1),e.Q6J("ariaExpanded",ue.isOpen)("ariaControls",ue.ariaControls)("id",ue.focusableId)("role","combobox")("tagListId",ue.tagListId)("isLoading",ue.loading)("isFilterable",ue.filterable)("activeDescendant",ue.activeDescendant)("userInput",ue.text)("disabled",ue.disabled)("readonly",ue.readonly||ue.isAdaptive)("tabIndex",ue.tabIndex)("placeholder",ue.placeholder),e.xp6(2),e.Q6J("ngIf",!ue.loading&&!ue.readonly&&ue.clearButton&&((null==ue.tags?null:ue.tags.length)||(null==ue.text?null:ue.text.length))),e.xp6(1),e.Q6J("ngIf",ue.loading),e.xp6(3),e.Q6J("ngIf",ue.isOpen||ue.isAdaptiveModeEnabled),e.xp6(3),e.Q6J("sharedPopupActionSheetTemplate",dt)("isActionSheetExpanded",ue.isActionSheetExpanded)("title",ue.title)("showTextInput",!0)("showActionButtons",!0)("subtitle",ue.subtitle)("placeholder",ue.placeholder)}},dependencies:[yc,Ms,re.ZS,n.NG,il,la,eo,K.O5,K.tP,Os,K.mk,Ys],encapsulation:2}),Pe})(),vs=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({}),Pe})(),Is=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[K.ez,o.u5,o.UX,x.Zj,n.uv,vs,n.OY,re.pc,me.Or,Q.hJ,J.oc],K.ez,o.u5,o.UX,x.Zj,n.uv,vs,n.OY,re.pc,me.Or,Q.hJ,J.oc]}),Pe})(),ye=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[Is,de.dZ],vs]}),Pe})(),st=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[Is],vs]}),Pe})(),_o=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({providers:[{provide:nl,useValue:l.Pt}],imports:[[Is],vs]}),Pe})(),ds=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[Is],vs]}),Pe})(),zs=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({providers:[{provide:nl,useValue:l.Pt}],imports:[[Is],vs]}),Pe})(),Ta=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[st,_o,ds,zs,ye]}),Pe})()},39421:(he,y,i)=>{"use strict";i.d(y,{yr:()=>Zv,Jc:()=>w0,pu:()=>Yv,Qb:()=>Kv,vg:()=>O0,NC:()=>Mg,KI:()=>lb,GQ:()=>b1,PG:()=>K1,t$:()=>$v,e3:()=>y1,m8:()=>A0,b:()=>Qv,ri:()=>x0,Ff:()=>Jv,U5:()=>T0,yj:()=>E0,Ob:()=>sg,Z_:()=>Q1,pt:()=>tv,oH:()=>Cy,KH:()=>Ey,Ws:()=>ab,OV:()=>O_,xu:()=>C1,CI:()=>ag,BP:()=>xy,zH:()=>Mv,E6:()=>J1});var e=i(65879),n=i(56223),o=i(78645),a=i(65619),l=i(19026),u=i(92438),s=(i(91687),i(48180)),A=i(37398),_=i(32181),x=(i(76328),i(59773),i(70378)),f=i(93197),k=i(3201);function w(B){this.content=B}w.prototype={constructor:w,find:function(B){for(var S=0;S<this.content.length;S+=2)if(this.content[S]===B)return S;return-1},get:function(B){var S=this.find(B);return-1==S?void 0:this.content[S+1]},update:function(B,S,T){var W=T&&T!=B?this.remove(T):this,ce=W.find(B),we=W.content.slice();return-1==ce?we.push(T||B,S):(we[ce+1]=S,T&&(we[ce]=T)),new w(we)},remove:function(B){var S=this.find(B);if(-1==S)return this;var T=this.content.slice();return T.splice(S,2),new w(T)},addToStart:function(B,S){return new w([B,S].concat(this.remove(B).content))},addToEnd:function(B,S){var T=this.remove(B).content.slice();return T.push(B,S),new w(T)},addBefore:function(B,S,T){var W=this.remove(S),ce=W.content.slice(),we=W.find(B);return ce.splice(-1==we?ce.length:we,0,S,T),new w(ce)},forEach:function(B){for(var S=0;S<this.content.length;S+=2)B(this.content[S],this.content[S+1])},prepend:function(B){return(B=w.from(B)).size?new w(B.content.concat(this.subtract(B).content)):this},append:function(B){return(B=w.from(B)).size?new w(this.subtract(B).content.concat(B.content)):this},subtract:function(B){var S=this;B=w.from(B);for(var T=0;T<B.content.length;T+=2)S=S.remove(B.content[T]);return S},toObject:function(){var B={};return this.forEach(function(S,T){B[S]=T}),B},get size(){return this.content.length>>1}},w.from=function(B){if(B instanceof w)return B;var S=[];if(B)for(var T in B)S.push(T,B[T]);return new w(S)};const g=w;function M(B,S,T){for(let W=0;;W++){if(W==B.childCount||W==S.childCount)return B.childCount==S.childCount?null:T;let ce=B.child(W),we=S.child(W);if(ce!=we){if(!ce.sameMarkup(we))return T;if(ce.isText&&ce.text!=we.text){for(let qe=0;ce.text[qe]==we.text[qe];qe++)T++;return T}if(ce.content.size||we.content.size){let qe=M(ce.content,we.content,T+1);if(null!=qe)return qe}T+=ce.nodeSize}else T+=ce.nodeSize}}function p(B,S,T,W){for(let ce=B.childCount,we=S.childCount;;){if(0==ce||0==we)return ce==we?null:{a:T,b:W};let qe=B.child(--ce),jt=S.child(--we),_n=qe.nodeSize;if(qe!=jt){if(!qe.sameMarkup(jt))return{a:T,b:W};if(qe.isText&&qe.text!=jt.text){let bi=0,qi=Math.min(qe.text.length,jt.text.length);for(;bi<qi&&qe.text[qe.text.length-bi-1]==jt.text[jt.text.length-bi-1];)bi++,T--,W--;return{a:T,b:W}}if(qe.content.size||jt.content.size){let bi=p(qe.content,jt.content,T-1,W-1);if(bi)return bi}T-=_n,W-=_n}else T-=_n,W-=_n}}class E{constructor(S,T){if(this.content=S,this.size=T||0,null==T)for(let W=0;W<S.length;W++)this.size+=S[W].nodeSize}nodesBetween(S,T,W,ce=0,we){for(let qe=0,jt=0;jt<T;qe++){let _n=this.content[qe],bi=jt+_n.nodeSize;if(bi>S&&!1!==W(_n,ce+jt,we||null,qe)&&_n.content.size){let qi=jt+1;_n.nodesBetween(Math.max(0,S-qi),Math.min(_n.content.size,T-qi),W,ce+qi)}jt=bi}}descendants(S){this.nodesBetween(0,this.size,S)}textBetween(S,T,W,ce){let we="",qe=!0;return this.nodesBetween(S,T,(jt,_n)=>{jt.isText?(we+=jt.text.slice(Math.max(S,_n)-_n,T-_n),qe=!W):jt.isLeaf?(ce?we+="function"==typeof ce?ce(jt):ce:jt.type.spec.leafText&&(we+=jt.type.spec.leafText(jt)),qe=!W):!qe&&jt.isBlock&&(we+=W,qe=!0)},0),we}append(S){if(!S.size)return this;if(!this.size)return S;let T=this.lastChild,W=S.firstChild,ce=this.content.slice(),we=0;for(T.isText&&T.sameMarkup(W)&&(ce[ce.length-1]=T.withText(T.text+W.text),we=1);we<S.content.length;we++)ce.push(S.content[we]);return new E(ce,this.size+S.size)}cut(S,T=this.size){if(0==S&&T==this.size)return this;let W=[],ce=0;if(T>S)for(let we=0,qe=0;qe<T;we++){let jt=this.content[we],_n=qe+jt.nodeSize;_n>S&&((qe<S||_n>T)&&(jt=jt.isText?jt.cut(Math.max(0,S-qe),Math.min(jt.text.length,T-qe)):jt.cut(Math.max(0,S-qe-1),Math.min(jt.content.size,T-qe-1))),W.push(jt),ce+=jt.nodeSize),qe=_n}return new E(W,ce)}cutByIndex(S,T){return S==T?E.empty:0==S&&T==this.content.length?this:new E(this.content.slice(S,T))}replaceChild(S,T){let W=this.content[S];if(W==T)return this;let ce=this.content.slice(),we=this.size+T.nodeSize-W.nodeSize;return ce[S]=T,new E(ce,we)}addToStart(S){return new E([S].concat(this.content),this.size+S.nodeSize)}addToEnd(S){return new E(this.content.concat(S),this.size+S.nodeSize)}eq(S){if(this.content.length!=S.content.length)return!1;for(let T=0;T<this.content.length;T++)if(!this.content[T].eq(S.content[T]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(S){let T=this.content[S];if(!T)throw new RangeError("Index "+S+" out of range for "+this);return T}maybeChild(S){return this.content[S]||null}forEach(S){for(let T=0,W=0;T<this.content.length;T++){let ce=this.content[T];S(ce,W,T),W+=ce.nodeSize}}findDiffStart(S,T=0){return M(this,S,T)}findDiffEnd(S,T=this.size,W=S.size){return p(this,S,T,W)}findIndex(S,T=-1){if(0==S)return I(0,S);if(S==this.size)return I(this.content.length,S);if(S>this.size||S<0)throw new RangeError(`Position ${S} outside of fragment (${this})`);for(let W=0,ce=0;;W++){let qe=ce+this.child(W).nodeSize;if(qe>=S)return qe==S||T>0?I(W+1,qe):I(W,ce);ce=qe}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(S=>S.toJSON()):null}static fromJSON(S,T){if(!T)return E.empty;if(!Array.isArray(T))throw new RangeError("Invalid input for Fragment.fromJSON");return new E(T.map(S.nodeFromJSON))}static fromArray(S){if(!S.length)return E.empty;let T,W=0;for(let ce=0;ce<S.length;ce++){let we=S[ce];W+=we.nodeSize,ce&&we.isText&&S[ce-1].sameMarkup(we)?(T||(T=S.slice(0,ce)),T[T.length-1]=we.withText(T[T.length-1].text+we.text)):T&&T.push(we)}return new E(T||S,W)}static from(S){if(!S)return E.empty;if(S instanceof E)return S;if(Array.isArray(S))return this.fromArray(S);if(S.attrs)return new E([S],S.nodeSize);throw new RangeError("Can not convert "+S+" to a Fragment"+(S.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}E.empty=new E([],0);const b={index:0,offset:0};function I(B,S){return b.index=B,b.offset=S,b}function L(B,S){if(B===S)return!0;if(!B||"object"!=typeof B||!S||"object"!=typeof S)return!1;let T=Array.isArray(B);if(Array.isArray(S)!=T)return!1;if(T){if(B.length!=S.length)return!1;for(let W=0;W<B.length;W++)if(!L(B[W],S[W]))return!1}else{for(let W in B)if(!(W in S)||!L(B[W],S[W]))return!1;for(let W in S)if(!(W in B))return!1}return!0}let D=(()=>{class B{constructor(T,W){this.type=T,this.attrs=W}addToSet(T){let W,ce=!1;for(let we=0;we<T.length;we++){let qe=T[we];if(this.eq(qe))return T;if(this.type.excludes(qe.type))W||(W=T.slice(0,we));else{if(qe.type.excludes(this.type))return T;!ce&&qe.type.rank>this.type.rank&&(W||(W=T.slice(0,we)),W.push(this),ce=!0),W&&W.push(qe)}}return W||(W=T.slice()),ce||W.push(this),W}removeFromSet(T){for(let W=0;W<T.length;W++)if(this.eq(T[W]))return T.slice(0,W).concat(T.slice(W+1));return T}isInSet(T){for(let W=0;W<T.length;W++)if(this.eq(T[W]))return!0;return!1}eq(T){return this==T||this.type==T.type&&L(this.attrs,T.attrs)}toJSON(){let T={type:this.type.name};for(let W in this.attrs){T.attrs=this.attrs;break}return T}static fromJSON(T,W){if(!W)throw new RangeError("Invalid input for Mark.fromJSON");let ce=T.marks[W.type];if(!ce)throw new RangeError(`There is no mark type ${W.type} in this schema`);return ce.create(W.attrs)}static sameSet(T,W){if(T==W)return!0;if(T.length!=W.length)return!1;for(let ce=0;ce<T.length;ce++)if(!T[ce].eq(W[ce]))return!1;return!0}static setFrom(T){if(!T||Array.isArray(T)&&0==T.length)return B.none;if(T instanceof B)return[T];let W=T.slice();return W.sort((ce,we)=>ce.type.rank-we.type.rank),W}}return B.none=[],B})();class F extends Error{}class P{constructor(S,T,W){this.content=S,this.openStart=T,this.openEnd=W}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(S,T){let W=U(this.content,S+this.openStart,T);return W&&new P(W,this.openStart,this.openEnd)}removeBetween(S,T){return new P(O(this.content,S+this.openStart,T+this.openStart),this.openStart,this.openEnd)}eq(S){return this.content.eq(S.content)&&this.openStart==S.openStart&&this.openEnd==S.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let S={content:this.content.toJSON()};return this.openStart>0&&(S.openStart=this.openStart),this.openEnd>0&&(S.openEnd=this.openEnd),S}static fromJSON(S,T){if(!T)return P.empty;let W=T.openStart||0,ce=T.openEnd||0;if("number"!=typeof W||"number"!=typeof ce)throw new RangeError("Invalid input for Slice.fromJSON");return new P(E.fromJSON(S,T.content),W,ce)}static maxOpen(S,T=!0){let W=0,ce=0;for(let we=S.firstChild;we&&!we.isLeaf&&(T||!we.type.spec.isolating);we=we.firstChild)W++;for(let we=S.lastChild;we&&!we.isLeaf&&(T||!we.type.spec.isolating);we=we.lastChild)ce++;return new P(S,W,ce)}}function O(B,S,T){let{index:W,offset:ce}=B.findIndex(S),we=B.maybeChild(W),{index:qe,offset:jt}=B.findIndex(T);if(ce==S||we.isText){if(jt!=T&&!B.child(qe).isText)throw new RangeError("Removing non-flat range");return B.cut(0,S).append(B.cut(T))}if(W!=qe)throw new RangeError("Removing non-flat range");return B.replaceChild(W,we.copy(O(we.content,S-ce-1,T-ce-1)))}function U(B,S,T,W){let{index:ce,offset:we}=B.findIndex(S),qe=B.maybeChild(ce);if(we==S||qe.isText)return W&&!W.canReplace(ce,ce,T)?null:B.cut(0,S).append(T).append(B.cut(S));let jt=U(qe.content,S-we-1,T);return jt&&B.replaceChild(ce,qe.copy(jt))}function V(B,S,T){if(T.openStart>B.depth)throw new F("Inserted content deeper than insertion position");if(B.depth-T.openStart!=S.depth-T.openEnd)throw new F("Inconsistent open depths");return K(B,S,T,0)}function K(B,S,T,W){let ce=B.index(W),we=B.node(W);if(ce==S.index(W)&&W<B.depth-T.openStart){let qe=K(B,S,T,W+1);return we.copy(we.content.replaceChild(ce,qe))}if(T.content.size){if(T.openStart||T.openEnd||B.depth!=W||S.depth!=W){let{start:qe,end:jt}=function j(B,S){let T=S.depth-B.openStart,ce=S.node(T).copy(B.content);for(let we=T-1;we>=0;we--)ce=S.node(we).copy(E.from(ce));return{start:ce.resolveNoCache(B.openStart+T),end:ce.resolveNoCache(ce.content.size-B.openEnd-T)}}(T,B);return re(we,de(B,qe,jt,S,W))}{let qe=B.parent,jt=qe.content;return re(qe,jt.cut(0,B.parentOffset).append(T.content).append(jt.cut(S.parentOffset)))}}return re(we,te(B,S,W))}function X(B,S){if(!S.type.compatibleContent(B.type))throw new F("Cannot join "+S.type.name+" onto "+B.type.name)}function me(B,S,T){let W=B.node(T);return X(W,S.node(T)),W}function J(B,S){let T=S.length-1;T>=0&&B.isText&&B.sameMarkup(S[T])?S[T]=B.withText(S[T].text+B.text):S.push(B)}function Q(B,S,T,W){let ce=(S||B).node(T),we=0,qe=S?S.index(T):ce.childCount;B&&(we=B.index(T),B.depth>T?we++:B.textOffset&&(J(B.nodeAfter,W),we++));for(let jt=we;jt<qe;jt++)J(ce.child(jt),W);S&&S.depth==T&&S.textOffset&&J(S.nodeBefore,W)}function re(B,S){return B.type.checkContent(S),B.copy(S)}function de(B,S,T,W,ce){let we=B.depth>ce&&me(B,S,ce+1),qe=W.depth>ce&&me(T,W,ce+1),jt=[];return Q(null,B,ce,jt),we&&qe&&S.index(ce)==T.index(ce)?(X(we,qe),J(re(we,de(B,S,T,W,ce+1)),jt)):(we&&J(re(we,te(B,S,ce+1)),jt),Q(S,T,ce,jt),qe&&J(re(qe,te(T,W,ce+1)),jt)),Q(W,null,ce,jt),new E(jt)}function te(B,S,T){let W=[];return Q(null,B,T,W),B.depth>T&&J(re(me(B,S,T+1),te(B,S,T+1)),W),Q(S,null,T,W),new E(W)}P.empty=new P(E.empty,0,0);class H{constructor(S,T,W){this.pos=S,this.path=T,this.parentOffset=W,this.depth=T.length/3-1}resolveDepth(S){return null==S?this.depth:S<0?this.depth+S:S}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(S){return this.path[3*this.resolveDepth(S)]}index(S){return this.path[3*this.resolveDepth(S)+1]}indexAfter(S){return S=this.resolveDepth(S),this.index(S)+(S!=this.depth||this.textOffset?1:0)}start(S){return 0==(S=this.resolveDepth(S))?0:this.path[3*S-1]+1}end(S){return S=this.resolveDepth(S),this.start(S)+this.node(S).content.size}before(S){if(!(S=this.resolveDepth(S)))throw new RangeError("There is no position before the top-level node");return S==this.depth+1?this.pos:this.path[3*S-1]}after(S){if(!(S=this.resolveDepth(S)))throw new RangeError("There is no position after the top-level node");return S==this.depth+1?this.pos:this.path[3*S-1]+this.path[3*S].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let S=this.parent,T=this.index(this.depth);if(T==S.childCount)return null;let W=this.pos-this.path[this.path.length-1],ce=S.child(T);return W?S.child(T).cut(W):ce}get nodeBefore(){let S=this.index(this.depth),T=this.pos-this.path[this.path.length-1];return T?this.parent.child(S).cut(0,T):0==S?null:this.parent.child(S-1)}posAtIndex(S,T){T=this.resolveDepth(T);let W=this.path[3*T],ce=0==T?0:this.path[3*T-1]+1;for(let we=0;we<S;we++)ce+=W.child(we).nodeSize;return ce}marks(){let S=this.parent,T=this.index();if(0==S.content.size)return D.none;if(this.textOffset)return S.child(T).marks;let W=S.maybeChild(T-1),ce=S.maybeChild(T);if(!W){let jt=W;W=ce,ce=jt}let we=W.marks;for(var qe=0;qe<we.length;qe++)!1===we[qe].type.spec.inclusive&&(!ce||!we[qe].isInSet(ce.marks))&&(we=we[qe--].removeFromSet(we));return we}marksAcross(S){let T=this.parent.maybeChild(this.index());if(!T||!T.isInline)return null;let W=T.marks,ce=S.parent.maybeChild(S.index());for(var we=0;we<W.length;we++)!1===W[we].type.spec.inclusive&&(!ce||!W[we].isInSet(ce.marks))&&(W=W[we--].removeFromSet(W));return W}sharedDepth(S){for(let T=this.depth;T>0;T--)if(this.start(T)<=S&&this.end(T)>=S)return T;return 0}blockRange(S=this,T){if(S.pos<this.pos)return S.blockRange(this);for(let W=this.depth-(this.parent.inlineContent||this.pos==S.pos?1:0);W>=0;W--)if(S.pos<=this.end(W)&&(!T||T(this.node(W))))return new ne(this,S,W);return null}sameParent(S){return this.pos-this.parentOffset==S.pos-S.parentOffset}max(S){return S.pos>this.pos?S:this}min(S){return S.pos<this.pos?S:this}toString(){let S="";for(let T=1;T<=this.depth;T++)S+=(S?"/":"")+this.node(T).type.name+"_"+this.index(T-1);return S+":"+this.parentOffset}static resolve(S,T){if(!(T>=0&&T<=S.content.size))throw new RangeError("Position "+T+" out of range");let W=[],ce=0,we=T;for(let qe=S;;){let{index:jt,offset:_n}=qe.content.findIndex(we),bi=we-_n;if(W.push(qe,jt,ce+_n),!bi||(qe=qe.child(jt),qe.isText))break;we=bi-1,ce+=_n+1}return new H(T,W,we)}static resolveCached(S,T){for(let ce=0;ce<z.length;ce++){let we=z[ce];if(we.pos==T&&we.doc==S)return we}let W=z[q]=H.resolve(S,T);return q=(q+1)%se,W}}let z=[],q=0,se=12;class ne{constructor(S,T,W){this.$from=S,this.$to=T,this.depth=W}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const _e=Object.create(null);class ge{constructor(S,T,W,ce=D.none){this.type=S,this.attrs=T,this.marks=ce,this.content=W||E.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(S){return this.content.child(S)}maybeChild(S){return this.content.maybeChild(S)}forEach(S){this.content.forEach(S)}nodesBetween(S,T,W,ce=0){this.content.nodesBetween(S,T,W,ce,this)}descendants(S){this.nodesBetween(0,this.content.size,S)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(S,T,W,ce){return this.content.textBetween(S,T,W,ce)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(S){return this==S||this.sameMarkup(S)&&this.content.eq(S.content)}sameMarkup(S){return this.hasMarkup(S.type,S.attrs,S.marks)}hasMarkup(S,T,W){return this.type==S&&L(this.attrs,T||S.defaultAttrs||_e)&&D.sameSet(this.marks,W||D.none)}copy(S=null){return S==this.content?this:new ge(this.type,this.attrs,S,this.marks)}mark(S){return S==this.marks?this:new ge(this.type,this.attrs,this.content,S)}cut(S,T=this.content.size){return 0==S&&T==this.content.size?this:this.copy(this.content.cut(S,T))}slice(S,T=this.content.size,W=!1){if(S==T)return P.empty;let ce=this.resolve(S),we=this.resolve(T),qe=W?0:ce.sharedDepth(T),jt=ce.start(qe),bi=ce.node(qe).content.cut(ce.pos-jt,we.pos-jt);return new P(bi,ce.depth-qe,we.depth-qe)}replace(S,T,W){return V(this.resolve(S),this.resolve(T),W)}nodeAt(S){for(let T=this;;){let{index:W,offset:ce}=T.content.findIndex(S);if(T=T.maybeChild(W),!T)return null;if(ce==S||T.isText)return T;S-=ce+1}}childAfter(S){let{index:T,offset:W}=this.content.findIndex(S);return{node:this.content.maybeChild(T),index:T,offset:W}}childBefore(S){if(0==S)return{node:null,index:0,offset:0};let{index:T,offset:W}=this.content.findIndex(S);if(W<S)return{node:this.content.child(T),index:T,offset:W};let ce=this.content.child(T-1);return{node:ce,index:T-1,offset:W-ce.nodeSize}}resolve(S){return H.resolveCached(this,S)}resolveNoCache(S){return H.resolve(this,S)}rangeHasMark(S,T,W){let ce=!1;return T>S&&this.nodesBetween(S,T,we=>(W.isInSet(we.marks)&&(ce=!0),!ce)),ce}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let S=this.type.name;return this.content.size&&(S+="("+this.content.toStringInner()+")"),Te(this.marks,S)}contentMatchAt(S){let T=this.type.contentMatch.matchFragment(this.content,0,S);if(!T)throw new Error("Called contentMatchAt on a node with invalid content");return T}canReplace(S,T,W=E.empty,ce=0,we=W.childCount){let qe=this.contentMatchAt(S).matchFragment(W,ce,we),jt=qe&&qe.matchFragment(this.content,T);if(!jt||!jt.validEnd)return!1;for(let _n=ce;_n<we;_n++)if(!this.type.allowsMarks(W.child(_n).marks))return!1;return!0}canReplaceWith(S,T,W,ce){if(ce&&!this.type.allowsMarks(ce))return!1;let we=this.contentMatchAt(S).matchType(W),qe=we&&we.matchFragment(this.content,T);return!!qe&&qe.validEnd}canAppend(S){return S.content.size?this.canReplace(this.childCount,this.childCount,S.content):this.type.compatibleContent(S.type)}check(){this.type.checkContent(this.content);let S=D.none;for(let T=0;T<this.marks.length;T++)S=this.marks[T].addToSet(S);if(!D.sameSet(S,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(T=>T.type.name)}`);this.content.forEach(T=>T.check())}toJSON(){let S={type:this.type.name};for(let T in this.attrs){S.attrs=this.attrs;break}return this.content.size&&(S.content=this.content.toJSON()),this.marks.length&&(S.marks=this.marks.map(T=>T.toJSON())),S}static fromJSON(S,T){if(!T)throw new RangeError("Invalid input for Node.fromJSON");let W=null;if(T.marks){if(!Array.isArray(T.marks))throw new RangeError("Invalid mark data for Node.fromJSON");W=T.marks.map(S.markFromJSON)}if("text"==T.type){if("string"!=typeof T.text)throw new RangeError("Invalid text node in JSON");return S.text(T.text,W)}let ce=E.fromJSON(S,T.content);return S.nodeType(T.type).create(T.attrs,ce,W)}}ge.prototype.text=void 0;class Ce extends ge{constructor(S,T,W,ce){if(super(S,T,null,ce),!W)throw new RangeError("Empty text nodes are not allowed");this.text=W}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Te(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(S,T){return this.text.slice(S,T)}get nodeSize(){return this.text.length}mark(S){return S==this.marks?this:new Ce(this.type,this.attrs,this.text,S)}withText(S){return S==this.text?this:new Ce(this.type,this.attrs,S,this.marks)}cut(S=0,T=this.text.length){return 0==S&&T==this.text.length?this:this.withText(this.text.slice(S,T))}eq(S){return this.sameMarkup(S)&&this.text==S.text}toJSON(){let S=super.toJSON();return S.text=this.text,S}}function Te(B,S){for(let T=B.length-1;T>=0;T--)S=B[T].type.name+"("+S+")";return S}class De{constructor(S){this.validEnd=S,this.next=[],this.wrapCache=[]}static parse(S,T){let W=new fe(S,T);if(null==W.next)return De.empty;let ce=xe(W);W.next&&W.err("Unexpected trailing text");let we=function Wt(B){let S=Object.create(null);return function T(W){let ce=[];W.forEach(qe=>{B[qe].forEach(({term:jt,to:_n})=>{if(!jt)return;let bi;for(let qi=0;qi<ce.length;qi++)ce[qi][0]==jt&&(bi=ce[qi][1]);ut(B,_n).forEach(qi=>{bi||ce.push([jt,bi=[]]),-1==bi.indexOf(qi)&&bi.push(qi)})})});let we=S[W.join(",")]=new De(W.indexOf(B.length-1)>-1);for(let qe=0;qe<ce.length;qe++){let jt=ce[qe][1].sort(mt);we.next.push({type:ce[qe][0],next:S[jt.join(",")]||T(jt)})}return we}(ut(B,0))}(function xn(B){let S=[[]];return ce(function we(qe,jt){if("choice"==qe.type)return qe.exprs.reduce((_n,bi)=>_n.concat(we(bi,jt)),[]);if("seq"!=qe.type){if("star"==qe.type){let _n=T();return W(jt,_n),ce(we(qe.expr,_n),_n),[W(_n)]}if("plus"==qe.type){let _n=T();return ce(we(qe.expr,jt),_n),ce(we(qe.expr,_n),_n),[W(_n)]}if("opt"==qe.type)return[W(jt)].concat(we(qe.expr,jt));if("range"==qe.type){let _n=jt;for(let bi=0;bi<qe.min;bi++){let qi=T();ce(we(qe.expr,_n),qi),_n=qi}if(-1==qe.max)ce(we(qe.expr,_n),_n);else for(let bi=qe.min;bi<qe.max;bi++){let qi=T();W(_n,qi),ce(we(qe.expr,_n),qi),_n=qi}return[W(_n)]}if("name"==qe.type)return[W(jt,void 0,qe.value)];throw new Error("Unknown expr type")}for(let _n=0;;_n++){let bi=we(qe.exprs[_n],jt);if(_n==qe.exprs.length-1)return bi;ce(bi,jt=T())}}(B,0),T()),S;function T(){return S.push([])-1}function W(qe,jt,_n){let bi={term:_n,to:jt};return S[qe].push(bi),bi}function ce(qe,jt){qe.forEach(_n=>_n.to=jt)}}(ce));return function dn(B,S){for(let T=0,W=[B];T<W.length;T++){let ce=W[T],we=!ce.validEnd,qe=[];for(let jt=0;jt<ce.next.length;jt++){let{type:_n,next:bi}=ce.next[jt];qe.push(_n.name),we&&!(_n.isText||_n.hasRequiredAttrs())&&(we=!1),-1==W.indexOf(bi)&&W.push(bi)}we&&S.err("Only non-generatable nodes ("+qe.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(we,W),we}matchType(S){for(let T=0;T<this.next.length;T++)if(this.next[T].type==S)return this.next[T].next;return null}matchFragment(S,T=0,W=S.childCount){let ce=this;for(let we=T;ce&&we<W;we++)ce=ce.matchType(S.child(we).type);return ce}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let S=0;S<this.next.length;S++){let{type:T}=this.next[S];if(!T.isText&&!T.hasRequiredAttrs())return T}return null}compatible(S){for(let T=0;T<this.next.length;T++)for(let W=0;W<S.next.length;W++)if(this.next[T].type==S.next[W].type)return!0;return!1}fillBefore(S,T=!1,W=0){let ce=[this];return function we(qe,jt){let _n=qe.matchFragment(S,W);if(_n&&(!T||_n.validEnd))return E.from(jt.map(bi=>bi.createAndFill()));for(let bi=0;bi<qe.next.length;bi++){let{type:qi,next:Oo}=qe.next[bi];if(!qi.isText&&!qi.hasRequiredAttrs()&&-1==ce.indexOf(Oo)){ce.push(Oo);let rr=we(Oo,jt.concat(qi));if(rr)return rr}}return null}(this,[])}findWrapping(S){for(let W=0;W<this.wrapCache.length;W+=2)if(this.wrapCache[W]==S)return this.wrapCache[W+1];let T=this.computeWrapping(S);return this.wrapCache.push(S,T),T}computeWrapping(S){let T=Object.create(null),W=[{match:this,type:null,via:null}];for(;W.length;){let ce=W.shift(),we=ce.match;if(we.matchType(S)){let qe=[];for(let jt=ce;jt.type;jt=jt.via)qe.push(jt.type);return qe.reverse()}for(let qe=0;qe<we.next.length;qe++){let{type:jt,next:_n}=we.next[qe];!jt.isLeaf&&!jt.hasRequiredAttrs()&&!(jt.name in T)&&(!ce.type||_n.validEnd)&&(W.push({match:jt.contentMatch,type:jt,via:ce}),T[jt.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(S){if(S>=this.next.length)throw new RangeError(`There's no ${S}th edge in this content match`);return this.next[S]}toString(){let S=[];return function T(W){S.push(W);for(let ce=0;ce<W.next.length;ce++)-1==S.indexOf(W.next[ce].next)&&T(W.next[ce].next)}(this),S.map((W,ce)=>{let we=ce+(W.validEnd?"*":" ")+" ";for(let qe=0;qe<W.next.length;qe++)we+=(qe?", ":"")+W.next[qe].type.name+"->"+S.indexOf(W.next[qe].next);return we}).join("\n")}}De.empty=new De(!0);class fe{constructor(S,T){this.string=S,this.nodeTypes=T,this.inline=null,this.pos=0,this.tokens=S.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(S){return this.next==S&&(this.pos++||!0)}err(S){throw new SyntaxError(S+" (in content expression '"+this.string+"')")}}function xe(B){let S=[];do{S.push(Oe(B))}while(B.eat("|"));return 1==S.length?S[0]:{type:"choice",exprs:S}}function Oe(B){let S=[];do{S.push(Le(B))}while(B.next&&")"!=B.next&&"|"!=B.next);return 1==S.length?S[0]:{type:"seq",exprs:S}}function Le(B){let S=function $n(B){if(B.eat("(")){let S=xe(B);return B.eat(")")||B.err("Missing closing paren"),S}if(!/\W/.test(B.next)){let S=function An(B,S){let T=B.nodeTypes,W=T[S];if(W)return[W];let ce=[];for(let we in T){let qe=T[we];qe.groups.indexOf(S)>-1&&ce.push(qe)}return 0==ce.length&&B.err("No node type or group '"+S+"' found"),ce}(B,B.next).map(T=>(null==B.inline?B.inline=T.isInline:B.inline!=T.isInline&&B.err("Mixing inline and block content"),{type:"name",value:T}));return B.pos++,1==S.length?S[0]:{type:"choice",exprs:S}}B.err("Unexpected token '"+B.next+"'")}(B);for(;;)if(B.eat("+"))S={type:"plus",expr:S};else if(B.eat("*"))S={type:"star",expr:S};else if(B.eat("?"))S={type:"opt",expr:S};else{if(!B.eat("{"))break;S=Ut(B,S)}return S}function Gt(B){/\D/.test(B.next)&&B.err("Expected number, got '"+B.next+"'");let S=Number(B.next);return B.pos++,S}function Ut(B,S){let T=Gt(B),W=T;return B.eat(",")&&(W="}"!=B.next?Gt(B):-1),B.eat("}")||B.err("Unclosed braced range"),{type:"range",min:T,max:W,expr:S}}function mt(B,S){return S-B}function ut(B,S){let T=[];return function W(ce){let we=B[ce];if(1==we.length&&!we[0].term)return W(we[0].to);T.push(ce);for(let qe=0;qe<we.length;qe++){let{term:jt,to:_n}=we[qe];!jt&&-1==T.indexOf(_n)&&W(_n)}}(S),T.sort(mt)}function sn(B){let S=Object.create(null);for(let T in B){let W=B[T];if(!W.hasDefault)return null;S[T]=W.default}return S}function fn(B,S){let T=Object.create(null);for(let W in B){let ce=S&&S[W];if(void 0===ce){let we=B[W];if(!we.hasDefault)throw new RangeError("No value supplied for attribute "+W);ce=we.default}T[W]=ce}return T}function yi(B){let S=Object.create(null);if(B)for(let T in B)S[T]=new Mi(B[T]);return S}class nn{constructor(S,T,W){this.name=S,this.schema=T,this.spec=W,this.markSet=null,this.groups=W.group?W.group.split(" "):[],this.attrs=yi(W.attrs),this.defaultAttrs=sn(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(W.inline||"text"==S),this.isText="text"==S}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==De.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let S in this.attrs)if(this.attrs[S].isRequired)return!0;return!1}compatibleContent(S){return this==S||this.contentMatch.compatible(S.contentMatch)}computeAttrs(S){return!S&&this.defaultAttrs?this.defaultAttrs:fn(this.attrs,S)}create(S=null,T,W){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new ge(this,this.computeAttrs(S),E.from(T),D.setFrom(W))}createChecked(S=null,T,W){return T=E.from(T),this.checkContent(T),new ge(this,this.computeAttrs(S),T,D.setFrom(W))}createAndFill(S=null,T,W){if(S=this.computeAttrs(S),(T=E.from(T)).size){let qe=this.contentMatch.fillBefore(T);if(!qe)return null;T=qe.append(T)}let ce=this.contentMatch.matchFragment(T),we=ce&&ce.fillBefore(E.empty,!0);return we?new ge(this,S,T.append(we),D.setFrom(W)):null}validContent(S){let T=this.contentMatch.matchFragment(S);if(!T||!T.validEnd)return!1;for(let W=0;W<S.childCount;W++)if(!this.allowsMarks(S.child(W).marks))return!1;return!0}checkContent(S){if(!this.validContent(S))throw new RangeError(`Invalid content for node ${this.name}: ${S.toString().slice(0,50)}`)}allowsMarkType(S){return null==this.markSet||this.markSet.indexOf(S)>-1}allowsMarks(S){if(null==this.markSet)return!0;for(let T=0;T<S.length;T++)if(!this.allowsMarkType(S[T].type))return!1;return!0}allowedMarks(S){if(null==this.markSet)return S;let T;for(let W=0;W<S.length;W++)this.allowsMarkType(S[W].type)?T&&T.push(S[W]):T||(T=S.slice(0,W));return T?T.length?T:D.none:S}static compile(S,T){let W=Object.create(null);S.forEach((we,qe)=>W[we]=new nn(we,T,qe));let ce=T.spec.topNode||"doc";if(!W[ce])throw new RangeError("Schema is missing its top node type ('"+ce+"')");if(!W.text)throw new RangeError("Every schema needs a 'text' type");for(let we in W.text.attrs)throw new RangeError("The text node type should not have attributes");return W}}class Mi{constructor(S){this.hasDefault=Object.prototype.hasOwnProperty.call(S,"default"),this.default=S.default}get isRequired(){return!this.hasDefault}}class mi{constructor(S,T,W,ce){this.name=S,this.rank=T,this.schema=W,this.spec=ce,this.attrs=yi(ce.attrs),this.excluded=null;let we=sn(this.attrs);this.instance=we?new D(this,we):null}create(S=null){return!S&&this.instance?this.instance:new D(this,fn(this.attrs,S))}static compile(S,T){let W=Object.create(null),ce=0;return S.forEach((we,qe)=>W[we]=new mi(we,ce++,T,qe)),W}removeFromSet(S){for(var T=0;T<S.length;T++)S[T].type==this&&(S=S.slice(0,T).concat(S.slice(T+1)),T--);return S}isInSet(S){for(let T=0;T<S.length;T++)if(S[T].type==this)return S[T]}excludes(S){return this.excluded.indexOf(S)>-1}}class Eo{constructor(S){this.cached=Object.create(null);let T=this.spec={};for(let ce in S)T[ce]=S[ce];T.nodes=g.from(S.nodes),T.marks=g.from(S.marks||{}),this.nodes=nn.compile(this.spec.nodes,this),this.marks=mi.compile(this.spec.marks,this);let W=Object.create(null);for(let ce in this.nodes){if(ce in this.marks)throw new RangeError(ce+" can not be both a node and a mark");let we=this.nodes[ce],qe=we.spec.content||"",jt=we.spec.marks;we.contentMatch=W[qe]||(W[qe]=De.parse(qe,this.nodes)),we.inlineContent=we.contentMatch.inlineContent,we.markSet="_"==jt?null:jt?Ko(this,jt.split(" ")):""!=jt&&we.inlineContent?null:[]}for(let ce in this.marks){let we=this.marks[ce],qe=we.spec.excludes;we.excluded=null==qe?[we]:""==qe?[]:Ko(this,qe.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(S,T=null,W,ce){if("string"==typeof S)S=this.nodeType(S);else{if(!(S instanceof nn))throw new RangeError("Invalid node type: "+S);if(S.schema!=this)throw new RangeError("Node type from different schema used ("+S.name+")")}return S.createChecked(T,W,ce)}text(S,T){let W=this.nodes.text;return new Ce(W,W.defaultAttrs,S,D.setFrom(T))}mark(S,T){return"string"==typeof S&&(S=this.marks[S]),S.create(T)}nodeFromJSON(S){return ge.fromJSON(this,S)}markFromJSON(S){return D.fromJSON(this,S)}nodeType(S){let T=this.nodes[S];if(!T)throw new RangeError("Unknown node type: "+S);return T}}function Ko(B,S){let T=[];for(let W=0;W<S.length;W++){let ce=S[W],we=B.marks[ce],qe=we;if(we)T.push(we);else for(let jt in B.marks){let _n=B.marks[jt];("_"==ce||_n.spec.group&&_n.spec.group.split(" ").indexOf(ce)>-1)&&T.push(qe=_n)}if(!qe)throw new SyntaxError("Unknown mark type: '"+S[W]+"'")}return T}class xo{constructor(S,T){this.schema=S,this.rules=T,this.tags=[],this.styles=[],T.forEach(W=>{W.tag?this.tags.push(W):W.style&&this.styles.push(W)}),this.normalizeLists=!this.tags.some(W=>{if(!/^(ul|ol)\b/.test(W.tag)||!W.node)return!1;let ce=S.nodes[W.node];return ce.contentMatch.matchType(ce)})}parse(S,T={}){let W=new It(this,T,!1);return W.addAll(S,T.from,T.to),W.finish()}parseSlice(S,T={}){let W=new It(this,T,!0);return W.addAll(S,T.from,T.to),P.maxOpen(W.finish())}matchTag(S,T,W){for(let ce=W?this.tags.indexOf(W)+1:0;ce<this.tags.length;ce++){let we=this.tags[ce];if(xt(S,we.tag)&&(void 0===we.namespace||S.namespaceURI==we.namespace)&&(!we.context||T.matchesContext(we.context))){if(we.getAttrs){let qe=we.getAttrs(S);if(!1===qe)continue;we.attrs=qe||void 0}return we}}}matchStyle(S,T,W,ce){for(let we=ce?this.styles.indexOf(ce)+1:0;we<this.styles.length;we++){let qe=this.styles[we],jt=qe.style;if(!(0!=jt.indexOf(S)||qe.context&&!W.matchesContext(qe.context)||jt.length>S.length&&(61!=jt.charCodeAt(S.length)||jt.slice(S.length+1)!=T))){if(qe.getAttrs){let _n=qe.getAttrs(T);if(!1===_n)continue;qe.attrs=_n||void 0}return qe}}}static schemaRules(S){let T=[];function W(ce){let we=null==ce.priority?50:ce.priority,qe=0;for(;qe<T.length;qe++){let jt=T[qe];if((null==jt.priority?50:jt.priority)<we)break}T.splice(qe,0,ce)}for(let ce in S.marks){let we=S.marks[ce].spec.parseDOM;we&&we.forEach(qe=>{W(qe=Mt(qe)),qe.mark||qe.ignore||qe.clearMark||(qe.mark=ce)})}for(let ce in S.nodes){let we=S.nodes[ce].spec.parseDOM;we&&we.forEach(qe=>{W(qe=Mt(qe)),qe.node||qe.ignore||qe.mark||(qe.node=ce)})}return T}static fromSchema(S){return S.cached.domParser||(S.cached.domParser=new xo(S,xo.schemaRules(S)))}}const Bn={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Xt={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Ji={ol:!0,ul:!0};function Fn(B,S,T){return null!=S?(S?1:0)|("full"===S?2:0):B&&"pre"==B.whitespace?3:-5&T}class oi{constructor(S,T,W,ce,we,qe,jt){this.type=S,this.attrs=T,this.marks=W,this.pendingMarks=ce,this.solid=we,this.options=jt,this.content=[],this.activeMarks=D.none,this.stashMarks=[],this.match=qe||(4&jt?null:S.contentMatch)}findWrapping(S){if(!this.match){if(!this.type)return[];let T=this.type.contentMatch.fillBefore(E.from(S));if(!T){let ce,W=this.type.contentMatch;return(ce=W.findWrapping(S.type))?(this.match=W,ce):null}this.match=this.type.contentMatch.matchFragment(T)}return this.match.findWrapping(S.type)}finish(S){if(!(1&this.options)){let ce,W=this.content[this.content.length-1];if(W&&W.isText&&(ce=/[ \t\r\n\u000c]+$/.exec(W.text))){let we=W;W.text.length==ce[0].length?this.content.pop():this.content[this.content.length-1]=we.withText(we.text.slice(0,we.text.length-ce[0].length))}}let T=E.from(this.content);return!S&&this.match&&(T=T.append(this.match.fillBefore(E.empty,!0))),this.type?this.type.create(this.attrs,T,this.marks):T}popFromStashMark(S){for(let T=this.stashMarks.length-1;T>=0;T--)if(S.eq(this.stashMarks[T]))return this.stashMarks.splice(T,1)[0]}applyPending(S){for(let T=0,W=this.pendingMarks;T<W.length;T++){let ce=W[T];(this.type?this.type.allowsMarkType(ce.type):pt(ce.type,S))&&!ce.isInSet(this.activeMarks)&&(this.activeMarks=ce.addToSet(this.activeMarks),this.pendingMarks=ce.removeFromSet(this.pendingMarks))}}inlineContext(S){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:S.parentNode&&!Bn.hasOwnProperty(S.parentNode.nodeName.toLowerCase())}}class It{constructor(S,T,W){this.parser=S,this.options=T,this.isOpen=W,this.open=0;let we,ce=T.topNode,qe=Fn(null,T.preserveWhitespace,0)|(W?4:0);we=ce?new oi(ce.type,ce.attrs,D.none,D.none,!0,T.topMatch||ce.type.contentMatch,qe):new oi(W?null:S.schema.topNodeType,null,D.none,D.none,!0,null,qe),this.nodes=[we],this.find=T.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(S){3==S.nodeType?this.addTextNode(S):1==S.nodeType&&this.addElement(S)}withStyleRules(S,T){let W=S.getAttribute("style");if(!W)return T();let ce=this.readStyles(function wt(B){let T,S=/\s*([\w-]+)\s*:\s*([^;]+)/g,W=[];for(;T=S.exec(B);)W.push(T[1],T[2].trim());return W}(W));if(!ce)return;let[we,qe]=ce,jt=this.top;for(let _n=0;_n<qe.length;_n++)this.removePendingMark(qe[_n],jt);for(let _n=0;_n<we.length;_n++)this.addPendingMark(we[_n]);T();for(let _n=0;_n<we.length;_n++)this.removePendingMark(we[_n],jt);for(let _n=0;_n<qe.length;_n++)this.addPendingMark(qe[_n])}addTextNode(S){let T=S.nodeValue,W=this.top;if(2&W.options||W.inlineContext(S)||/[^ \t\r\n\u000c]/.test(T)){if(1&W.options)T=2&W.options?T.replace(/\r\n?/g,"\n"):T.replace(/\r?\n|\r/g," ");else if(T=T.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(T)&&this.open==this.nodes.length-1){let ce=W.content[W.content.length-1],we=S.previousSibling;(!ce||we&&"BR"==we.nodeName||ce.isText&&/[ \t\r\n\u000c]$/.test(ce.text))&&(T=T.slice(1))}T&&this.insertNode(this.parser.schema.text(T)),this.findInText(S)}else this.findInside(S)}addElement(S,T){let ce,W=S.nodeName.toLowerCase();Ji.hasOwnProperty(W)&&this.parser.normalizeLists&&function Bt(B){for(let S=B.firstChild,T=null;S;S=S.nextSibling){let W=1==S.nodeType?S.nodeName.toLowerCase():null;W&&Ji.hasOwnProperty(W)&&T?(T.appendChild(S),S=T):"li"==W?T=S:W&&(T=null)}}(S);let we=this.options.ruleFromNode&&this.options.ruleFromNode(S)||(ce=this.parser.matchTag(S,this,T));if(we?we.ignore:Xt.hasOwnProperty(W))this.findInside(S),this.ignoreFallback(S);else if(!we||we.skip||we.closeParent){we&&we.closeParent?this.open=Math.max(0,this.open-1):we&&we.skip.nodeType&&(S=we.skip);let qe,jt=this.top,_n=this.needsBlock;if(Bn.hasOwnProperty(W))jt.content.length&&jt.content[0].isInline&&this.open&&(this.open--,jt=this.top),qe=!0,jt.type||(this.needsBlock=!0);else if(!S.firstChild)return void this.leafFallback(S);we&&we.skip?this.addAll(S):this.withStyleRules(S,()=>this.addAll(S)),qe&&this.sync(jt),this.needsBlock=_n}else this.withStyleRules(S,()=>{this.addElementByRule(S,we,!1===we.consuming?ce:void 0)})}leafFallback(S){"BR"==S.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(S.ownerDocument.createTextNode("\n"))}ignoreFallback(S){"BR"==S.nodeName&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(S){let T=D.none,W=D.none;for(let ce=0;ce<S.length;ce+=2)for(let we;;){let qe=this.parser.matchStyle(S[ce],S[ce+1],this,we);if(!qe)break;if(qe.ignore)return null;if(qe.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(jt=>{qe.clearMark(jt)&&(W=jt.addToSet(W))}):T=this.parser.schema.marks[qe.mark].create(qe.attrs).addToSet(T),!1!==qe.consuming)break;we=qe}return[T,W]}addElementByRule(S,T,W){let ce,we,qe;T.node?(we=this.parser.schema.nodes[T.node],we.isLeaf?this.insertNode(we.create(T.attrs))||this.leafFallback(S):ce=this.enter(we,T.attrs||null,T.preserveWhitespace)):(qe=this.parser.schema.marks[T.mark].create(T.attrs),this.addPendingMark(qe));let jt=this.top;if(we&&we.isLeaf)this.findInside(S);else if(W)this.addElement(S,W);else if(T.getContent)this.findInside(S),T.getContent(S,this.parser.schema).forEach(_n=>this.insertNode(_n));else{let _n=S;"string"==typeof T.contentElement?_n=S.querySelector(T.contentElement):"function"==typeof T.contentElement?_n=T.contentElement(S):T.contentElement&&(_n=T.contentElement),this.findAround(S,_n,!0),this.addAll(_n)}ce&&this.sync(jt)&&this.open--,qe&&this.removePendingMark(qe,jt)}addAll(S,T,W){let ce=T||0;for(let we=T?S.childNodes[T]:S.firstChild,qe=null==W?null:S.childNodes[W];we!=qe;we=we.nextSibling,++ce)this.findAtPoint(S,ce),this.addDOM(we);this.findAtPoint(S,ce)}findPlace(S){let T,W;for(let ce=this.open;ce>=0;ce--){let we=this.nodes[ce],qe=we.findWrapping(S);if(qe&&(!T||T.length>qe.length)&&(T=qe,W=we,!qe.length)||we.solid)break}if(!T)return!1;this.sync(W);for(let ce=0;ce<T.length;ce++)this.enterInner(T[ce],null,!1);return!0}insertNode(S){if(S.isInline&&this.needsBlock&&!this.top.type){let T=this.textblockFromContext();T&&this.enterInner(T)}if(this.findPlace(S)){this.closeExtra();let T=this.top;T.applyPending(S.type),T.match&&(T.match=T.match.matchType(S.type));let W=T.activeMarks;for(let ce=0;ce<S.marks.length;ce++)(!T.type||T.type.allowsMarkType(S.marks[ce].type))&&(W=S.marks[ce].addToSet(W));return T.content.push(S.mark(W)),!0}return!1}enter(S,T,W){let ce=this.findPlace(S.create(T));return ce&&this.enterInner(S,T,!0,W),ce}enterInner(S,T=null,W=!1,ce){this.closeExtra();let we=this.top;we.applyPending(S),we.match=we.match&&we.match.matchType(S);let qe=Fn(S,ce,we.options);4&we.options&&0==we.content.length&&(qe|=4),this.nodes.push(new oi(S,T,we.activeMarks,we.pendingMarks,W,null,qe)),this.open++}closeExtra(S=!1){let T=this.nodes.length-1;if(T>this.open){for(;T>this.open;T--)this.nodes[T-1].content.push(this.nodes[T].finish(S));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(S){for(let T=this.open;T>=0;T--)if(this.nodes[T]==S)return this.open=T,!0;return!1}get currentPos(){this.closeExtra();let S=0;for(let T=this.open;T>=0;T--){let W=this.nodes[T].content;for(let ce=W.length-1;ce>=0;ce--)S+=W[ce].nodeSize;T&&S++}return S}findAtPoint(S,T){if(this.find)for(let W=0;W<this.find.length;W++)this.find[W].node==S&&this.find[W].offset==T&&(this.find[W].pos=this.currentPos)}findInside(S){if(this.find)for(let T=0;T<this.find.length;T++)null==this.find[T].pos&&1==S.nodeType&&S.contains(this.find[T].node)&&(this.find[T].pos=this.currentPos)}findAround(S,T,W){if(S!=T&&this.find)for(let ce=0;ce<this.find.length;ce++)null==this.find[ce].pos&&1==S.nodeType&&S.contains(this.find[ce].node)&&T.compareDocumentPosition(this.find[ce].node)&(W?2:4)&&(this.find[ce].pos=this.currentPos)}findInText(S){if(this.find)for(let T=0;T<this.find.length;T++)this.find[T].node==S&&(this.find[T].pos=this.currentPos-(S.nodeValue.length-this.find[T].offset))}matchesContext(S){if(S.indexOf("|")>-1)return S.split(/\s*\|\s*/).some(this.matchesContext,this);let T=S.split("/"),W=this.options.context,ce=!(this.isOpen||W&&W.parent.type!=this.nodes[0].type),we=(ce?0:1)-(W?W.depth+1:0),qe=(jt,_n)=>{for(;jt>=0;jt--){let bi=T[jt];if(""==bi){if(jt==T.length-1||0==jt)continue;for(;_n>=we;_n--)if(qe(jt-1,_n))return!0;return!1}{let qi=_n>0||0==_n&&ce?this.nodes[_n].type:W&&_n>=we?W.node(_n-we).type:null;if(!qi||qi.name!=bi&&-1==qi.groups.indexOf(bi))return!1;_n--}}return!0};return qe(T.length-1,this.open)}textblockFromContext(){let S=this.options.context;if(S)for(let T=S.depth;T>=0;T--){let W=S.node(T).contentMatchAt(S.indexAfter(T)).defaultType;if(W&&W.isTextblock&&W.defaultAttrs)return W}for(let T in this.parser.schema.nodes){let W=this.parser.schema.nodes[T];if(W.isTextblock&&W.defaultAttrs)return W}}addPendingMark(S){let T=function Lt(B,S){for(let T=0;T<S.length;T++)if(B.eq(S[T]))return S[T]}(S,this.top.pendingMarks);T&&this.top.stashMarks.push(T),this.top.pendingMarks=S.addToSet(this.top.pendingMarks)}removePendingMark(S,T){for(let W=this.open;W>=0;W--){let ce=this.nodes[W];if(ce.pendingMarks.lastIndexOf(S)>-1)ce.pendingMarks=S.removeFromSet(ce.pendingMarks);else{ce.activeMarks=S.removeFromSet(ce.activeMarks);let qe=ce.popFromStashMark(S);qe&&ce.type&&ce.type.allowsMarkType(qe.type)&&(ce.activeMarks=qe.addToSet(ce.activeMarks))}if(ce==T)break}}}function xt(B,S){return(B.matches||B.msMatchesSelector||B.webkitMatchesSelector||B.mozMatchesSelector).call(B,S)}function Mt(B){let S={};for(let T in B)S[T]=B[T];return S}function pt(B,S){let T=S.schema.nodes;for(let W in T){let ce=T[W];if(!ce.allowsMarkType(B))continue;let we=[],qe=jt=>{we.push(jt);for(let _n=0;_n<jt.edgeCount;_n++){let{type:bi,next:qi}=jt.edge(_n);if(bi==S||we.indexOf(qi)<0&&qe(qi))return!0}};if(qe(ce.contentMatch))return!0}}class tt{constructor(S,T){this.nodes=S,this.marks=T}serializeFragment(S,T={},W){W||(W=vt(T).createDocumentFragment());let ce=W,we=[];return S.forEach(qe=>{if(we.length||qe.marks.length){let jt=0,_n=0;for(;jt<we.length&&_n<qe.marks.length;){let bi=qe.marks[_n];if(this.marks[bi.type.name]){if(!bi.eq(we[jt][0])||!1===bi.type.spec.spanning)break;jt++,_n++}else _n++}for(;jt<we.length;)ce=we.pop()[1];for(;_n<qe.marks.length;){let bi=qe.marks[_n++],qi=this.serializeMark(bi,qe.isInline,T);qi&&(we.push([bi,ce]),ce.appendChild(qi.dom),ce=qi.contentDOM||qi.dom)}}ce.appendChild(this.serializeNodeInner(qe,T))}),W}serializeNodeInner(S,T){let{dom:W,contentDOM:ce}=tt.renderSpec(vt(T),this.nodes[S.type.name](S));if(ce){if(S.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(S.content,T,ce)}return W}serializeNode(S,T={}){let W=this.serializeNodeInner(S,T);for(let ce=S.marks.length-1;ce>=0;ce--){let we=this.serializeMark(S.marks[ce],S.isInline,T);we&&((we.contentDOM||we.dom).appendChild(W),W=we.dom)}return W}serializeMark(S,T,W={}){let ce=this.marks[S.type.name];return ce&&tt.renderSpec(vt(W),ce(S,T))}static renderSpec(S,T,W=null){if("string"==typeof T)return{dom:S.createTextNode(T)};if(null!=T.nodeType)return{dom:T};if(T.dom&&null!=T.dom.nodeType)return T;let ce=T[0],we=ce.indexOf(" ");we>0&&(W=ce.slice(0,we),ce=ce.slice(we+1));let qe,jt=W?S.createElementNS(W,ce):S.createElement(ce),_n=T[1],bi=1;if(_n&&"object"==typeof _n&&null==_n.nodeType&&!Array.isArray(_n)){bi=2;for(let qi in _n)if(null!=_n[qi]){let Oo=qi.indexOf(" ");Oo>0?jt.setAttributeNS(qi.slice(0,Oo),qi.slice(Oo+1),_n[qi]):jt.setAttribute(qi,_n[qi])}}for(let qi=bi;qi<T.length;qi++){let Oo=T[qi];if(0===Oo){if(qi<T.length-1||qi>bi)throw new RangeError("Content hole must be the only child of its parent node");return{dom:jt,contentDOM:jt}}{let{dom:rr,contentDOM:fr}=tt.renderSpec(S,Oo,W);if(jt.appendChild(rr),fr){if(qe)throw new RangeError("Multiple content holes");qe=fr}}}return{dom:jt,contentDOM:qe}}static fromSchema(S){return S.cached.domSerializer||(S.cached.domSerializer=new tt(this.nodesFromSchema(S),this.marksFromSchema(S)))}static nodesFromSchema(S){let T=Ne(S.nodes);return T.text||(T.text=W=>W.text),T}static marksFromSchema(S){return Ne(S.marks)}}function Ne(B){let S={};for(let T in B){let W=B[T].spec.toDOM;W&&(S[T]=W)}return S}function vt(B){return B.document||window.document}const jn=Math.pow(2,16);function Pi(B,S){return B+S*jn}function go(B){return 65535&B}class hi{constructor(S,T,W){this.pos=S,this.delInfo=T,this.recover=W}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class zn{constructor(S,T=!1){if(this.ranges=S,this.inverted=T,!S.length&&zn.empty)return zn.empty}recover(S){let T=0,W=go(S);if(!this.inverted)for(let ce=0;ce<W;ce++)T+=this.ranges[3*ce+2]-this.ranges[3*ce+1];return this.ranges[3*W]+T+function si(B){return(B-(65535&B))/jn}(S)}mapResult(S,T=1){return this._map(S,T,!1)}map(S,T=1){return this._map(S,T,!0)}_map(S,T,W){let ce=0,we=this.inverted?2:1,qe=this.inverted?1:2;for(let jt=0;jt<this.ranges.length;jt+=3){let _n=this.ranges[jt]-(this.inverted?ce:0);if(_n>S)break;let bi=this.ranges[jt+we],qi=this.ranges[jt+qe],Oo=_n+bi;if(S<=Oo){let fr=_n+ce+((bi?S==_n?-1:S==Oo?1:T:T)<0?0:qi);if(W)return fr;let Gr=S==(T<0?_n:Oo)?null:Pi(jt/3,S-_n),As=S==_n?2:S==Oo?1:4;return(T<0?S!=_n:S!=Oo)&&(As|=8),new hi(fr,As,Gr)}ce+=qi-bi}return W?S+ce:new hi(S+ce,0,null)}touches(S,T){let W=0,ce=go(T),we=this.inverted?2:1,qe=this.inverted?1:2;for(let jt=0;jt<this.ranges.length;jt+=3){let _n=this.ranges[jt]-(this.inverted?W:0);if(_n>S)break;let bi=this.ranges[jt+we];if(S<=_n+bi&&jt==3*ce)return!0;W+=this.ranges[jt+qe]-bi}return!1}forEach(S){let T=this.inverted?2:1,W=this.inverted?1:2;for(let ce=0,we=0;ce<this.ranges.length;ce+=3){let qe=this.ranges[ce],jt=qe-(this.inverted?we:0),_n=qe+(this.inverted?0:we),bi=this.ranges[ce+T],qi=this.ranges[ce+W];S(jt,jt+bi,_n,_n+qi),we+=qi-bi}}invert(){return new zn(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(S){return 0==S?zn.empty:new zn(S<0?[0,-S,0]:[0,0,S])}}zn.empty=new zn([]);class Ei{constructor(S=[],T,W=0,ce=S.length){this.maps=S,this.mirror=T,this.from=W,this.to=ce}slice(S=0,T=this.maps.length){return new Ei(this.maps,this.mirror,S,T)}copy(){return new Ei(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(S,T){this.to=this.maps.push(S),null!=T&&this.setMirror(this.maps.length-1,T)}appendMapping(S){for(let T=0,W=this.maps.length;T<S.maps.length;T++){let ce=S.getMirror(T);this.appendMap(S.maps[T],null!=ce&&ce<T?W+ce:void 0)}}getMirror(S){if(this.mirror)for(let T=0;T<this.mirror.length;T++)if(this.mirror[T]==S)return this.mirror[T+(T%2?-1:1)]}setMirror(S,T){this.mirror||(this.mirror=[]),this.mirror.push(S,T)}appendMappingInverted(S){for(let T=S.maps.length-1,W=this.maps.length+S.maps.length;T>=0;T--){let ce=S.getMirror(T);this.appendMap(S.maps[T].invert(),null!=ce&&ce>T?W-ce-1:void 0)}}invert(){let S=new Ei;return S.appendMappingInverted(this),S}map(S,T=1){if(this.mirror)return this._map(S,T,!0);for(let W=this.from;W<this.to;W++)S=this.maps[W].map(S,T);return S}mapResult(S,T=1){return this._map(S,T,!1)}_map(S,T,W){let ce=0;for(let we=this.from;we<this.to;we++){let jt=this.maps[we].mapResult(S,T);if(null!=jt.recover){let _n=this.getMirror(we);if(null!=_n&&_n>we&&_n<this.to){we=_n,S=this.maps[_n].recover(jt.recover);continue}}ce|=jt.delInfo,S=jt.pos}return W?S:new hi(S,ce,null)}}const li=Object.create(null);class Xi{getMap(){return zn.empty}merge(S){return null}static fromJSON(S,T){if(!T||!T.stepType)throw new RangeError("Invalid input for Step.fromJSON");let W=li[T.stepType];if(!W)throw new RangeError(`No step type ${T.stepType} defined`);return W.fromJSON(S,T)}static jsonID(S,T){if(S in li)throw new RangeError("Duplicate use of step JSON ID "+S);return li[S]=T,T.prototype.jsonID=S,T}}class ki{constructor(S,T){this.doc=S,this.failed=T}static ok(S){return new ki(S,null)}static fail(S){return new ki(null,S)}static fromReplace(S,T,W,ce){try{return ki.ok(S.replace(T,W,ce))}catch(we){if(we instanceof F)return ki.fail(we.message);throw we}}}function bo(B,S,T){let W=[];for(let ce=0;ce<B.childCount;ce++){let we=B.child(ce);we.content.size&&(we=we.copy(bo(we.content,S,we))),we.isInline&&(we=S(we,T,ce)),W.push(we)}return E.fromArray(W)}class jo extends Xi{constructor(S,T,W){super(),this.from=S,this.to=T,this.mark=W}apply(S){let T=S.slice(this.from,this.to),W=S.resolve(this.from),ce=W.node(W.sharedDepth(this.to)),we=new P(bo(T.content,(qe,jt)=>qe.isAtom&&jt.type.allowsMarkType(this.mark.type)?qe.mark(this.mark.addToSet(qe.marks)):qe,ce),T.openStart,T.openEnd);return ki.fromReplace(S,this.from,this.to,we)}invert(){return new wn(this.from,this.to,this.mark)}map(S){let T=S.mapResult(this.from,1),W=S.mapResult(this.to,-1);return T.deleted&&W.deleted||T.pos>=W.pos?null:new jo(T.pos,W.pos,this.mark)}merge(S){return S instanceof jo&&S.mark.eq(this.mark)&&this.from<=S.to&&this.to>=S.from?new jo(Math.min(this.from,S.from),Math.max(this.to,S.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(S,T){if("number"!=typeof T.from||"number"!=typeof T.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new jo(T.from,T.to,S.markFromJSON(T.mark))}}Xi.jsonID("addMark",jo);class wn extends Xi{constructor(S,T,W){super(),this.from=S,this.to=T,this.mark=W}apply(S){let T=S.slice(this.from,this.to),W=new P(bo(T.content,ce=>ce.mark(this.mark.removeFromSet(ce.marks)),S),T.openStart,T.openEnd);return ki.fromReplace(S,this.from,this.to,W)}invert(){return new jo(this.from,this.to,this.mark)}map(S){let T=S.mapResult(this.from,1),W=S.mapResult(this.to,-1);return T.deleted&&W.deleted||T.pos>=W.pos?null:new wn(T.pos,W.pos,this.mark)}merge(S){return S instanceof wn&&S.mark.eq(this.mark)&&this.from<=S.to&&this.to>=S.from?new wn(Math.min(this.from,S.from),Math.max(this.to,S.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(S,T){if("number"!=typeof T.from||"number"!=typeof T.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new wn(T.from,T.to,S.markFromJSON(T.mark))}}Xi.jsonID("removeMark",wn);class Zi extends Xi{constructor(S,T){super(),this.pos=S,this.mark=T}apply(S){let T=S.nodeAt(this.pos);if(!T)return ki.fail("No node at mark step's position");let W=T.type.create(T.attrs,null,this.mark.addToSet(T.marks));return ki.fromReplace(S,this.pos,this.pos+1,new P(E.from(W),0,T.isLeaf?0:1))}invert(S){let T=S.nodeAt(this.pos);if(T){let W=this.mark.addToSet(T.marks);if(W.length==T.marks.length){for(let ce=0;ce<T.marks.length;ce++)if(!T.marks[ce].isInSet(W))return new Zi(this.pos,T.marks[ce]);return new Zi(this.pos,this.mark)}}return new oo(this.pos,this.mark)}map(S){let T=S.mapResult(this.pos,1);return T.deletedAfter?null:new Zi(T.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(S,T){if("number"!=typeof T.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Zi(T.pos,S.markFromJSON(T.mark))}}Xi.jsonID("addNodeMark",Zi);class oo extends Xi{constructor(S,T){super(),this.pos=S,this.mark=T}apply(S){let T=S.nodeAt(this.pos);if(!T)return ki.fail("No node at mark step's position");let W=T.type.create(T.attrs,null,this.mark.removeFromSet(T.marks));return ki.fromReplace(S,this.pos,this.pos+1,new P(E.from(W),0,T.isLeaf?0:1))}invert(S){let T=S.nodeAt(this.pos);return T&&this.mark.isInSet(T.marks)?new Zi(this.pos,this.mark):this}map(S){let T=S.mapResult(this.pos,1);return T.deletedAfter?null:new oo(T.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(S,T){if("number"!=typeof T.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new oo(T.pos,S.markFromJSON(T.mark))}}Xi.jsonID("removeNodeMark",oo);class Bi extends Xi{constructor(S,T,W,ce=!1){super(),this.from=S,this.to=T,this.slice=W,this.structure=ce}apply(S){return this.structure&&Lo(S,this.from,this.to)?ki.fail("Structure replace would overwrite content"):ki.fromReplace(S,this.from,this.to,this.slice)}getMap(){return new zn([this.from,this.to-this.from,this.slice.size])}invert(S){return new Bi(this.from,this.from+this.slice.size,S.slice(this.from,this.to))}map(S){let T=S.mapResult(this.from,1),W=S.mapResult(this.to,-1);return T.deletedAcross&&W.deletedAcross?null:new Bi(T.pos,Math.max(T.pos,W.pos),this.slice)}merge(S){if(!(S instanceof Bi)||S.structure||this.structure)return null;if(this.from+this.slice.size!=S.from||this.slice.openEnd||S.slice.openStart){if(S.to!=this.from||this.slice.openStart||S.slice.openEnd)return null;{let T=this.slice.size+S.slice.size==0?P.empty:new P(S.slice.content.append(this.slice.content),S.slice.openStart,this.slice.openEnd);return new Bi(S.from,this.to,T,this.structure)}}{let T=this.slice.size+S.slice.size==0?P.empty:new P(this.slice.content.append(S.slice.content),this.slice.openStart,S.slice.openEnd);return new Bi(this.from,this.to+(S.to-S.from),T,this.structure)}}toJSON(){let S={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(S.slice=this.slice.toJSON()),this.structure&&(S.structure=!0),S}static fromJSON(S,T){if("number"!=typeof T.from||"number"!=typeof T.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Bi(T.from,T.to,P.fromJSON(S,T.slice),!!T.structure)}}Xi.jsonID("replace",Bi);class Xo extends Xi{constructor(S,T,W,ce,we,qe,jt=!1){super(),this.from=S,this.to=T,this.gapFrom=W,this.gapTo=ce,this.slice=we,this.insert=qe,this.structure=jt}apply(S){if(this.structure&&(Lo(S,this.from,this.gapFrom)||Lo(S,this.gapTo,this.to)))return ki.fail("Structure gap-replace would overwrite content");let T=S.slice(this.gapFrom,this.gapTo);if(T.openStart||T.openEnd)return ki.fail("Gap is not a flat range");let W=this.slice.insertAt(this.insert,T.content);return W?ki.fromReplace(S,this.from,this.to,W):ki.fail("Content does not fit in gap")}getMap(){return new zn([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(S){let T=this.gapTo-this.gapFrom;return new Xo(this.from,this.from+this.slice.size+T,this.from+this.insert,this.from+this.insert+T,S.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(S){let T=S.mapResult(this.from,1),W=S.mapResult(this.to,-1),ce=S.map(this.gapFrom,-1),we=S.map(this.gapTo,1);return T.deletedAcross&&W.deletedAcross||ce<T.pos||we>W.pos?null:new Xo(T.pos,W.pos,ce,we,this.slice,this.insert,this.structure)}toJSON(){let S={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(S.slice=this.slice.toJSON()),this.structure&&(S.structure=!0),S}static fromJSON(S,T){if("number"!=typeof T.from||"number"!=typeof T.to||"number"!=typeof T.gapFrom||"number"!=typeof T.gapTo||"number"!=typeof T.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Xo(T.from,T.to,T.gapFrom,T.gapTo,P.fromJSON(S,T.slice),T.insert,!!T.structure)}}function Lo(B,S,T){let W=B.resolve(S),ce=T-S,we=W.depth;for(;ce>0&&we>0&&W.indexAfter(we)==W.node(we).childCount;)we--,ce--;if(ce>0){let qe=W.node(we).maybeChild(W.indexAfter(we));for(;ce>0;){if(!qe||qe.isLeaf)return!0;qe=qe.firstChild,ce--}}return!1}function as(B,S,T){return(0==S||B.canReplace(S,B.childCount))&&(T==B.childCount||B.canReplace(0,T))}function ji(B){let T=B.parent.content.cutByIndex(B.startIndex,B.endIndex);for(let W=B.depth;;--W){let ce=B.$from.node(W),we=B.$from.index(W),qe=B.$to.indexAfter(W);if(W<B.depth&&ce.canReplace(we,qe,T))return W;if(0==W||ce.type.spec.isolating||!as(ce,we,qe))break}return null}function rt(B,S,T=null,W=B){let ce=function Gn(B,S){let{parent:T,startIndex:W,endIndex:ce}=B,we=T.contentMatchAt(W).findWrapping(S);return we&&T.canReplaceWith(W,ce,we.length?we[0]:S)?we:null}(B,S),we=ce&&function Io(B,S){let{parent:T,startIndex:W,endIndex:ce}=B,we=T.child(W),qe=S.contentMatch.findWrapping(we.type);if(!qe)return null;let _n=(qe.length?qe[qe.length-1]:S).contentMatch;for(let bi=W;_n&&bi<ce;bi++)_n=_n.matchType(T.child(bi).type);return _n&&_n.validEnd?qe:null}(W,S);return we?ce.map(ai).concat({type:S,attrs:T}).concat(we.map(ai)):null}function ai(B){return{type:B,attrs:null}}function Oa(B,S,T=1,W){let ce=B.resolve(S),we=ce.depth-T,qe=W&&W[W.length-1]||ce.parent;if(we<0||ce.parent.type.spec.isolating||!ce.parent.canReplace(ce.index(),ce.parent.childCount)||!qe.type.validContent(ce.parent.content.cutByIndex(ce.index(),ce.parent.childCount)))return!1;for(let bi=ce.depth-1,qi=T-2;bi>we;bi--,qi--){let Oo=ce.node(bi),rr=ce.index(bi);if(Oo.type.spec.isolating)return!1;let fr=Oo.content.cutByIndex(rr,Oo.childCount),Gr=W&&W[qi+1];Gr&&(fr=fr.replaceChild(0,Gr.type.create(Gr.attrs)));let As=W&&W[qi]||Oo;if(!Oo.canReplace(rr+1,Oo.childCount)||!As.type.validContent(fr))return!1}let jt=ce.indexAfter(we),_n=W&&W[0];return ce.node(we).canReplaceWith(jt,jt,_n?_n.type:ce.node(we+1).type)}function Sa(B,S){let T=B.resolve(S),W=T.index();return function tr(B,S){return!(!B||!S||B.isLeaf||!B.canAppend(S))}(T.nodeBefore,T.nodeAfter)&&T.parent.canReplace(W,W+1)}function Go(B,S,T=S,W=P.empty){if(S==T&&!W.size)return null;let ce=B.resolve(S),we=B.resolve(T);return pr(ce,we,W)?new Bi(S,T,W):new Rr(ce,we,W).fit()}function pr(B,S,T){return!T.openStart&&!T.openEnd&&B.start()==S.start()&&B.parent.canReplace(B.index(),S.index(),T.content)}Xi.jsonID("replaceAround",Xo);class Rr{constructor(S,T,W){this.$from=S,this.$to=T,this.unplaced=W,this.frontier=[],this.placed=E.empty;for(let ce=0;ce<=S.depth;ce++){let we=S.node(ce);this.frontier.push({type:we.type,match:we.contentMatchAt(S.indexAfter(ce))})}for(let ce=S.depth;ce>0;ce--)this.placed=E.from(S.node(ce).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let bi=this.findFittable();bi?this.placeNodes(bi):this.openMore()||this.dropNode()}let S=this.mustMoveInline(),T=this.placed.size-this.depth-this.$from.depth,W=this.$from,ce=this.close(S<0?this.$to:W.doc.resolve(S));if(!ce)return null;let we=this.placed,qe=W.depth,jt=ce.depth;for(;qe&&jt&&1==we.childCount;)we=we.firstChild.content,qe--,jt--;let _n=new P(we,qe,jt);return S>-1?new Xo(W.pos,S,this.$to.pos,this.$to.end(),_n,T):_n.size||W.pos!=this.$to.pos?new Bi(W.pos,ce.pos,_n):null}findFittable(){let S=this.unplaced.openStart;for(let T=this.unplaced.content,W=0,ce=this.unplaced.openEnd;W<S;W++){let we=T.firstChild;if(T.childCount>1&&(ce=0),we.type.spec.isolating&&ce<=W){S=W;break}T=we.content}for(let T=1;T<=2;T++)for(let W=1==T?S:this.unplaced.openStart;W>=0;W--){let ce,we=null;W?(we=mr(this.unplaced.content,W-1).firstChild,ce=we.content):ce=this.unplaced.content;let qe=ce.firstChild;for(let jt=this.depth;jt>=0;jt--){let qi,{type:_n,match:bi}=this.frontier[jt],Oo=null;if(1==T&&(qe?bi.matchType(qe.type)||(Oo=bi.fillBefore(E.from(qe),!1)):we&&_n.compatibleContent(we.type)))return{sliceDepth:W,frontierDepth:jt,parent:we,inject:Oo};if(2==T&&qe&&(qi=bi.findWrapping(qe.type)))return{sliceDepth:W,frontierDepth:jt,parent:we,wrap:qi};if(we&&bi.matchType(we.type))break}}}openMore(){let{content:S,openStart:T,openEnd:W}=this.unplaced,ce=mr(S,T);return!(!ce.childCount||ce.firstChild.isLeaf||(this.unplaced=new P(S,T+1,Math.max(W,ce.size+T>=S.size-W?T+1:0)),0))}dropNode(){let{content:S,openStart:T,openEnd:W}=this.unplaced,ce=mr(S,T);if(ce.childCount<=1&&T>0){let we=S.size-T<=T+ce.size;this.unplaced=new P(br(S,T-1,1),T-1,we?T-1:W)}else this.unplaced=new P(br(S,T,1),T,W)}placeNodes({sliceDepth:S,frontierDepth:T,parent:W,inject:ce,wrap:we}){for(;this.depth>T;)this.closeFrontierNode();if(we)for(let As=0;As<we.length;As++)this.openFrontierNode(we[As]);let qe=this.unplaced,jt=W?W.content:qe.content,_n=qe.openStart-S,bi=0,qi=[],{match:Oo,type:rr}=this.frontier[T];if(ce){for(let As=0;As<ce.childCount;As++)qi.push(ce.child(As));Oo=Oo.matchFragment(ce)}let fr=jt.size+S-(qe.content.size-qe.openEnd);for(;bi<jt.childCount;){let As=jt.child(bi),ka=Oo.matchType(As.type);if(!ka)break;bi++,(bi>1||0==_n||As.content.size)&&(Oo=ka,qi.push(ri(As.mark(rr.allowedMarks(As.marks)),1==bi?_n:0,bi==jt.childCount?fr:-1)))}let Gr=bi==jt.childCount;Gr||(fr=-1),this.placed=Ti(this.placed,T,E.from(qi)),this.frontier[T].match=Oo,Gr&&fr<0&&W&&W.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let As=0,ka=jt;As<fr;As++){let hl=ka.lastChild;this.frontier.push({type:hl.type,match:hl.contentMatchAt(hl.childCount)}),ka=hl.content}this.unplaced=Gr?0==S?P.empty:new P(br(qe.content,S-1,1),S-1,fr<0?qe.openEnd:S-1):new P(br(qe.content,S,bi),qe.openStart,qe.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let T,S=this.frontier[this.depth];if(!S.type.isTextblock||!mo(this.$to,this.$to.depth,S.type,S.match,!1)||this.$to.depth==this.depth&&(T=this.findCloseLevel(this.$to))&&T.depth==this.depth)return-1;let{depth:W}=this.$to,ce=this.$to.after(W);for(;W>1&&ce==this.$to.end(--W);)++ce;return ce}findCloseLevel(S){e:for(let T=Math.min(this.depth,S.depth);T>=0;T--){let{match:W,type:ce}=this.frontier[T],we=T<S.depth&&S.end(T+1)==S.pos+(S.depth-(T+1)),qe=mo(S,T,ce,W,we);if(qe){for(let jt=T-1;jt>=0;jt--){let{match:_n,type:bi}=this.frontier[jt],qi=mo(S,jt,bi,_n,!0);if(!qi||qi.childCount)continue e}return{depth:T,fit:qe,move:we?S.doc.resolve(S.after(T+1)):S}}}}close(S){let T=this.findCloseLevel(S);if(!T)return null;for(;this.depth>T.depth;)this.closeFrontierNode();T.fit.childCount&&(this.placed=Ti(this.placed,T.depth,T.fit)),S=T.move;for(let W=T.depth+1;W<=S.depth;W++){let ce=S.node(W),we=ce.type.contentMatch.fillBefore(ce.content,!0,S.index(W));this.openFrontierNode(ce.type,ce.attrs,we)}return S}openFrontierNode(S,T=null,W){let ce=this.frontier[this.depth];ce.match=ce.match.matchType(S),this.placed=Ti(this.placed,this.depth,E.from(S.create(T,W))),this.frontier.push({type:S,match:S.contentMatch})}closeFrontierNode(){let T=this.frontier.pop().match.fillBefore(E.empty,!0);T.childCount&&(this.placed=Ti(this.placed,this.frontier.length,T))}}function br(B,S,T){return 0==S?B.cutByIndex(T,B.childCount):B.replaceChild(0,B.firstChild.copy(br(B.firstChild.content,S-1,T)))}function Ti(B,S,T){return 0==S?B.append(T):B.replaceChild(B.childCount-1,B.lastChild.copy(Ti(B.lastChild.content,S-1,T)))}function mr(B,S){for(let T=0;T<S;T++)B=B.firstChild.content;return B}function ri(B,S,T){if(S<=0)return B;let W=B.content;return S>1&&(W=W.replaceChild(0,ri(W.firstChild,S-1,1==W.childCount?T-1:0))),S>0&&(W=B.type.contentMatch.fillBefore(W).append(W),T<=0&&(W=W.append(B.type.contentMatch.matchFragment(W).fillBefore(E.empty,!0)))),B.copy(W)}function mo(B,S,T,W,ce){let we=B.node(S),qe=ce?B.indexAfter(S):B.index(S);if(qe==we.childCount&&!T.compatibleContent(we.type))return null;let jt=W.fillBefore(we.content,!0,qe);return jt&&!function Ii(B,S,T){for(let W=T;W<S.childCount;W++)if(!B.allowsMarks(S.child(W).marks))return!0;return!1}(T,we.content,qe)?jt:null}function yo(B){return B.spec.defining||B.spec.definingForContent}function Yr(B,S,T,W,ce){if(S<T){let we=B.firstChild;B=B.replaceChild(0,we.copy(Yr(we.content,S+1,T,W,we)))}if(S>W){let we=ce.contentMatchAt(0),qe=we.fillBefore(B).append(B);B=qe.append(we.matchFragment(qe).fillBefore(E.empty,!0))}return B}function Ho(B,S){let T=[];for(let ce=Math.min(B.depth,S.depth);ce>=0;ce--){let we=B.start(ce);if(we<B.pos-(B.depth-ce)||S.end(ce)>S.pos+(S.depth-ce)||B.node(ce).type.spec.isolating||S.node(ce).type.spec.isolating)break;(we==S.start(ce)||ce==B.depth&&ce==S.depth&&B.parent.inlineContent&&S.parent.inlineContent&&ce&&S.start(ce-1)==we-1)&&T.push(ce)}return T}class _t extends Xi{constructor(S,T,W){super(),this.pos=S,this.attr=T,this.value=W}apply(S){let T=S.nodeAt(this.pos);if(!T)return ki.fail("No node at attribute step's position");let W=Object.create(null);for(let we in T.attrs)W[we]=T.attrs[we];W[this.attr]=this.value;let ce=T.type.create(W,null,T.marks);return ki.fromReplace(S,this.pos,this.pos+1,new P(E.from(ce),0,T.isLeaf?0:1))}getMap(){return zn.empty}invert(S){return new _t(this.pos,this.attr,S.nodeAt(this.pos).attrs[this.attr])}map(S){let T=S.mapResult(this.pos,1);return T.deletedAfter?null:new _t(T.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(S,T){if("number"!=typeof T.pos||"string"!=typeof T.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new _t(T.pos,T.attr,T.value)}}Xi.jsonID("attr",_t);let Zn=class extends Error{};Zn=function B(S){let T=Error.call(this,S);return T.__proto__=B.prototype,T},(Zn.prototype=Object.create(Error.prototype)).constructor=Zn,Zn.prototype.name="TransformError";class qo{constructor(S){this.doc=S,this.steps=[],this.docs=[],this.mapping=new Ei}get before(){return this.docs.length?this.docs[0]:this.doc}step(S){let T=this.maybeStep(S);if(T.failed)throw new Zn(T.failed);return this}maybeStep(S){let T=S.apply(this.doc);return T.failed||this.addStep(S,T.doc),T}get docChanged(){return this.steps.length>0}addStep(S,T){this.docs.push(this.doc),this.steps.push(S),this.mapping.appendMap(S.getMap()),this.doc=T}replace(S,T=S,W=P.empty){let ce=Go(this.doc,S,T,W);return ce&&this.step(ce),this}replaceWith(S,T,W){return this.replace(S,T,new P(E.from(W),0,0))}delete(S,T){return this.replace(S,T,P.empty)}insert(S,T){return this.replaceWith(S,S,T)}replaceRange(S,T,W){return function lr(B,S,T,W){if(!W.size)return B.deleteRange(S,T);let ce=B.doc.resolve(S),we=B.doc.resolve(T);if(pr(ce,we,W))return B.step(new Bi(S,T,W));let qe=Ho(ce,B.doc.resolve(T));0==qe[qe.length-1]&&qe.pop();let jt=-(ce.depth+1);qe.unshift(jt);for(let rr=ce.depth,fr=ce.pos-1;rr>0;rr--,fr--){let Gr=ce.node(rr).type.spec;if(Gr.defining||Gr.definingAsContext||Gr.isolating)break;qe.indexOf(rr)>-1?jt=rr:ce.before(rr)==fr&&qe.splice(1,0,-rr)}let _n=qe.indexOf(jt),bi=[],qi=W.openStart;for(let rr=W.content,fr=0;;fr++){let Gr=rr.firstChild;if(bi.push(Gr),fr==W.openStart)break;rr=Gr.content}for(let rr=qi-1;rr>=0;rr--){let fr=bi[rr].type,Gr=yo(fr);if(Gr&&ce.node(_n).type!=fr)qi=rr;else if(Gr||!fr.isTextblock)break}for(let rr=W.openStart;rr>=0;rr--){let fr=(rr+qi+1)%(W.openStart+1),Gr=bi[fr];if(Gr)for(let As=0;As<qe.length;As++){let ka=qe[(As+_n)%qe.length],hl=!0;ka<0&&(hl=!1,ka=-ka);let Ul=ce.node(ka-1),Dl=ce.index(ka-1);if(Ul.canReplaceWith(Dl,Dl,Gr.type,Gr.marks))return B.replace(ce.before(ka),hl?we.after(ka):T,new P(Yr(W.content,0,W.openStart,fr),fr,W.openEnd))}}let Oo=B.steps.length;for(let rr=qe.length-1;rr>=0&&(B.replace(S,T,W),!(B.steps.length>Oo));rr--){let fr=qe[rr];fr<0||(S=ce.before(fr),T=we.after(fr))}}(this,S,T,W),this}replaceRangeWith(S,T,W){return function Gs(B,S,T,W){if(!W.isInline&&S==T&&B.doc.resolve(S).parent.content.size){let ce=function Ao(B,S,T){let W=B.resolve(S);if(W.parent.canReplaceWith(W.index(),W.index(),T))return S;if(0==W.parentOffset)for(let ce=W.depth-1;ce>=0;ce--){let we=W.index(ce);if(W.node(ce).canReplaceWith(we,we,T))return W.before(ce+1);if(we>0)return null}if(W.parentOffset==W.parent.content.size)for(let ce=W.depth-1;ce>=0;ce--){let we=W.indexAfter(ce);if(W.node(ce).canReplaceWith(we,we,T))return W.after(ce+1);if(we<W.node(ce).childCount)return null}return null}(B.doc,S,W.type);null!=ce&&(S=T=ce)}B.replaceRange(S,T,new P(E.from(W),0,0))}(this,S,T,W),this}deleteRange(S,T){return function fi(B,S,T){let W=B.doc.resolve(S),ce=B.doc.resolve(T),we=Ho(W,ce);for(let qe=0;qe<we.length;qe++){let jt=we[qe],_n=qe==we.length-1;if(_n&&0==jt||W.node(jt).type.contentMatch.validEnd)return B.delete(W.start(jt),ce.end(jt));if(jt>0&&(_n||W.node(jt-1).canReplace(W.index(jt-1),ce.indexAfter(jt-1))))return B.delete(W.before(jt),ce.after(jt))}for(let qe=1;qe<=W.depth&&qe<=ce.depth;qe++)if(S-W.start(qe)==W.depth-qe&&T>W.end(qe)&&ce.end(qe)-T!=ce.depth-qe)return B.delete(W.before(qe),T);B.delete(S,T)}(this,S,T),this}lift(S,T){return function Fo(B,S,T){let{$from:W,$to:ce,depth:we}=S,qe=W.before(we+1),jt=ce.after(we+1),_n=qe,bi=jt,qi=E.empty,Oo=0;for(let Gr=we,As=!1;Gr>T;Gr--)As||W.index(Gr)>0?(As=!0,qi=E.from(W.node(Gr).copy(qi)),Oo++):_n--;let rr=E.empty,fr=0;for(let Gr=we,As=!1;Gr>T;Gr--)As||ce.after(Gr+1)<ce.end(Gr)?(As=!0,rr=E.from(ce.node(Gr).copy(rr)),fr++):bi++;B.step(new Xo(_n,bi,qe,jt,new P(qi.append(rr),Oo,fr),qi.size-Oo,!0))}(this,S,T),this}join(S,T=1){return function Li(B,S,T){let W=new Bi(S-T,S+T,P.empty,!0);B.step(W)}(this,S,T),this}wrap(S,T){return function wr(B,S,T){let W=E.empty;for(let qe=T.length-1;qe>=0;qe--){if(W.size){let jt=T[qe].type.contentMatch.matchFragment(W);if(!jt||!jt.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}W=E.from(T[qe].type.create(T[qe].attrs,W))}let ce=S.start,we=S.end;B.step(new Xo(ce,we,ce,we,new P(W,0,0),T.length,!0))}(this,S,T),this}setBlockType(S,T=S,W,ce=null){return function bs(B,S,T,W,ce){if(!W.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let we=B.steps.length;B.doc.nodesBetween(S,T,(qe,jt)=>{if(qe.isTextblock&&!qe.hasMarkup(W,ce)&&function ba(B,S,T){let W=B.resolve(S),ce=W.index();return W.parent.canReplaceWith(ce,ce+1,T)}(B.doc,B.mapping.slice(we).map(jt),W)){B.clearIncompatible(B.mapping.slice(we).map(jt,1),W);let _n=B.mapping.slice(we),bi=_n.map(jt,1),qi=_n.map(jt+qe.nodeSize,1);return B.step(new Xo(bi,qi,bi+1,qi-1,new P(E.from(W.create(ce,null,qe.marks)),0,0),1,!0)),!1}})}(this,S,T,W,ce),this}setNodeMarkup(S,T,W=null,ce){return function ms(B,S,T,W,ce){let we=B.doc.nodeAt(S);if(!we)throw new RangeError("No node at given position");T||(T=we.type);let qe=T.create(W,null,ce||we.marks);if(we.isLeaf)return B.replaceWith(S,S+we.nodeSize,qe);if(!T.validContent(we.content))throw new RangeError("Invalid content for node type "+T.name);B.step(new Xo(S,S+we.nodeSize,S+1,S+we.nodeSize-1,new P(E.from(qe),0,0),1,!0))}(this,S,T,W,ce),this}setNodeAttribute(S,T,W){return this.step(new _t(S,T,W)),this}addNodeMark(S,T){return this.step(new Zi(S,T)),this}removeNodeMark(S,T){if(!(T instanceof D)){let W=this.doc.nodeAt(S);if(!W)throw new RangeError("No node at position "+S);if(!(T=T.isInSet(W.marks)))return this}return this.step(new oo(S,T)),this}split(S,T=1,W){return function Ea(B,S,T=1,W){let ce=B.doc.resolve(S),we=E.empty,qe=E.empty;for(let jt=ce.depth,_n=ce.depth-T,bi=T-1;jt>_n;jt--,bi--){we=E.from(ce.node(jt).copy(we));let qi=W&&W[bi];qe=E.from(qi?qi.type.create(qi.attrs,qe):ce.node(jt).copy(qe))}B.step(new Bi(S,S,new P(we.append(qe),T,T),!0))}(this,S,T,W),this}addMark(S,T,W){return function or(B,S,T,W){let qe,jt,ce=[],we=[];B.doc.nodesBetween(S,T,(_n,bi,qi)=>{if(!_n.isInline)return;let Oo=_n.marks;if(!W.isInSet(Oo)&&qi.type.allowsMarkType(W.type)){let rr=Math.max(bi,S),fr=Math.min(bi+_n.nodeSize,T),Gr=W.addToSet(Oo);for(let As=0;As<Oo.length;As++)Oo[As].isInSet(Gr)||(qe&&qe.to==rr&&qe.mark.eq(Oo[As])?qe.to=fr:ce.push(qe=new wn(rr,fr,Oo[As])));jt&&jt.to==rr?jt.to=fr:we.push(jt=new jo(rr,fr,W))}}),ce.forEach(_n=>B.step(_n)),we.forEach(_n=>B.step(_n))}(this,S,T,W),this}removeMark(S,T,W){return function xr(B,S,T,W){let ce=[],we=0;B.doc.nodesBetween(S,T,(qe,jt)=>{if(!qe.isInline)return;we++;let _n=null;if(W instanceof mi){let qi,bi=qe.marks;for(;qi=W.isInSet(bi);)(_n||(_n=[])).push(qi),bi=qi.removeFromSet(bi)}else W?W.isInSet(qe.marks)&&(_n=[W]):_n=qe.marks;if(_n&&_n.length){let bi=Math.min(jt+qe.nodeSize,T);for(let qi=0;qi<_n.length;qi++){let rr,Oo=_n[qi];for(let fr=0;fr<ce.length;fr++){let Gr=ce[fr];Gr.step==we-1&&Oo.eq(ce[fr].style)&&(rr=Gr)}rr?(rr.to=bi,rr.step=we):ce.push({style:Oo,from:Math.max(jt,S),to:bi,step:we})}}}),ce.forEach(qe=>B.step(new wn(qe.from,qe.to,qe.style)))}(this,S,T,W),this}clearIncompatible(S,T,W){return function Nr(B,S,T,W=T.contentMatch){let ce=B.doc.nodeAt(S),we=[],qe=S+1;for(let jt=0;jt<ce.childCount;jt++){let _n=ce.child(jt),bi=qe+_n.nodeSize,qi=W.matchType(_n.type);if(qi){W=qi;for(let Oo=0;Oo<_n.marks.length;Oo++)T.allowsMarkType(_n.marks[Oo].type)||B.step(new wn(qe,bi,_n.marks[Oo]))}else we.push(new Bi(qe,bi,P.empty));qe=bi}if(!W.validEnd){let jt=W.fillBefore(E.empty,!0);B.replace(qe,qe,new P(jt,0,0))}for(let jt=we.length-1;jt>=0;jt--)B.step(we[jt])}(this,S,T,W),this}}const Cr=Object.create(null);class kr{constructor(S,T,W){this.$anchor=S,this.$head=T,this.ranges=W||[new xs(S.min(T),S.max(T))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let S=this.ranges;for(let T=0;T<S.length;T++)if(S[T].$from.pos!=S[T].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(S,T=P.empty){let W=T.content.lastChild,ce=null;for(let jt=0;jt<T.openEnd;jt++)ce=W,W=W.lastChild;let we=S.steps.length,qe=this.ranges;for(let jt=0;jt<qe.length;jt++){let{$from:_n,$to:bi}=qe[jt],qi=S.mapping.slice(we);S.replaceRange(qi.map(_n.pos),qi.map(bi.pos),jt?P.empty:T),0==jt&&Ds(S,we,(W?W.isInline:ce&&ce.isTextblock)?-1:1)}}replaceWith(S,T){let W=S.steps.length,ce=this.ranges;for(let we=0;we<ce.length;we++){let{$from:qe,$to:jt}=ce[we],_n=S.mapping.slice(W),bi=_n.map(qe.pos),qi=_n.map(jt.pos);we?S.deleteRange(bi,qi):(S.replaceRangeWith(bi,qi,T),Ds(S,W,T.isInline?-1:1))}}static findFrom(S,T,W=!1){let ce=S.parent.inlineContent?new Ss(S):js(S.node(0),S.parent,S.pos,S.index(),T,W);if(ce)return ce;for(let we=S.depth-1;we>=0;we--){let qe=T<0?js(S.node(0),S.node(we),S.before(we+1),S.index(we),T,W):js(S.node(0),S.node(we),S.after(we+1),S.index(we)+1,T,W);if(qe)return qe}return null}static near(S,T=1){return this.findFrom(S,T)||this.findFrom(S,-T)||new No(S.node(0))}static atStart(S){return js(S,S,0,0,1)||new No(S)}static atEnd(S){return js(S,S,S.content.size,S.childCount,-1)||new No(S)}static fromJSON(S,T){if(!T||!T.type)throw new RangeError("Invalid input for Selection.fromJSON");let W=Cr[T.type];if(!W)throw new RangeError(`No selection type ${T.type} defined`);return W.fromJSON(S,T)}static jsonID(S,T){if(S in Cr)throw new RangeError("Duplicate use of selection JSON ID "+S);return Cr[S]=T,T.prototype.jsonID=S,T}getBookmark(){return Ss.between(this.$anchor,this.$head).getBookmark()}}kr.prototype.visible=!0;class xs{constructor(S,T){this.$from=S,this.$to=T}}let Us=!1;function Ts(B){!Us&&!B.parent.inlineContent&&(Us=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+B.parent.type.name+")"))}class Ss extends kr{constructor(S,T=S){Ts(S),Ts(T),super(S,T)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(S,T){let W=S.resolve(T.map(this.head));if(!W.parent.inlineContent)return kr.near(W);let ce=S.resolve(T.map(this.anchor));return new Ss(ce.parent.inlineContent?ce:W,W)}replace(S,T=P.empty){if(super.replace(S,T),T==P.empty){let W=this.$from.marksAcross(this.$to);W&&S.ensureMarks(W)}}eq(S){return S instanceof Ss&&S.anchor==this.anchor&&S.head==this.head}getBookmark(){return new Ua(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(S,T){if("number"!=typeof T.anchor||"number"!=typeof T.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ss(S.resolve(T.anchor),S.resolve(T.head))}static create(S,T,W=T){let ce=S.resolve(T);return new this(ce,W==T?ce:S.resolve(W))}static between(S,T,W){let ce=S.pos-T.pos;if((!W||ce)&&(W=ce>=0?1:-1),!T.parent.inlineContent){let we=kr.findFrom(T,W,!0)||kr.findFrom(T,-W,!0);if(!we)return kr.near(T,W);T=we.$head}return S.parent.inlineContent||(0==ce||(S=(kr.findFrom(S,-W,!0)||kr.findFrom(S,W,!0)).$anchor).pos<T.pos!=ce<0)&&(S=T),new Ss(S,T)}}kr.jsonID("text",Ss);class Ua{constructor(S,T){this.anchor=S,this.head=T}map(S){return new Ua(S.map(this.anchor),S.map(this.head))}resolve(S){return Ss.between(S.resolve(this.anchor),S.resolve(this.head))}}class $o extends kr{constructor(S){let T=S.nodeAfter,W=S.node(0).resolve(S.pos+T.nodeSize);super(S,W),this.node=T}map(S,T){let{deleted:W,pos:ce}=T.mapResult(this.anchor),we=S.resolve(ce);return W?kr.near(we):new $o(we)}content(){return new P(E.from(this.node),0,0)}eq(S){return S instanceof $o&&S.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Ar(this.anchor)}static fromJSON(S,T){if("number"!=typeof T.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new $o(S.resolve(T.anchor))}static create(S,T){return new $o(S.resolve(T))}static isSelectable(S){return!S.isText&&!1!==S.type.spec.selectable}}$o.prototype.visible=!1,kr.jsonID("node",$o);class Ar{constructor(S){this.anchor=S}map(S){let{deleted:T,pos:W}=S.mapResult(this.anchor);return T?new Ua(W,W):new Ar(W)}resolve(S){let T=S.resolve(this.anchor),W=T.nodeAfter;return W&&$o.isSelectable(W)?new $o(T):kr.near(T)}}class No extends kr{constructor(S){super(S.resolve(0),S.resolve(S.content.size))}replace(S,T=P.empty){if(T==P.empty){S.delete(0,S.doc.content.size);let W=kr.atStart(S.doc);W.eq(S.selection)||S.setSelection(W)}else super.replace(S,T)}toJSON(){return{type:"all"}}static fromJSON(S){return new No(S)}map(S){return new No(S)}eq(S){return S instanceof No}getBookmark(){return qr}}kr.jsonID("all",No);const qr={map(){return this},resolve:B=>new No(B)};function js(B,S,T,W,ce,we=!1){if(S.inlineContent)return Ss.create(B,T);for(let qe=W-(ce>0?0:1);ce>0?qe<S.childCount:qe>=0;qe+=ce){let jt=S.child(qe);if(jt.isAtom){if(!we&&$o.isSelectable(jt))return $o.create(B,T-(ce<0?jt.nodeSize:0))}else{let _n=js(B,jt,T+ce,ce<0?jt.childCount:0,ce,we);if(_n)return _n}T+=jt.nodeSize*ce}return null}function Ds(B,S,T){let W=B.steps.length-1;if(W<S)return;let qe,ce=B.steps[W];(ce instanceof Bi||ce instanceof Xo)&&(B.mapping.maps[W].forEach((jt,_n,bi,qi)=>{null==qe&&(qe=qi)}),B.setSelection(kr.near(B.doc.resolve(qe),T)))}class Js extends qo{constructor(S){super(S.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=S.selection,this.storedMarks=S.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(S){if(S.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=S,this.curSelectionFor=this.steps.length,this.updated=-3&(1|this.updated),this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(S){return this.storedMarks=S,this.updated|=2,this}ensureMarks(S){return D.sameSet(this.storedMarks||this.selection.$from.marks(),S)||this.setStoredMarks(S),this}addStoredMark(S){return this.ensureMarks(S.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(S){return this.ensureMarks(S.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(S,T){super.addStep(S,T),this.updated=-3&this.updated,this.storedMarks=null}setTime(S){return this.time=S,this}replaceSelection(S){return this.selection.replace(this,S),this}replaceSelectionWith(S,T=!0){let W=this.selection;return T&&(S=S.mark(this.storedMarks||(W.empty?W.$from.marks():W.$from.marksAcross(W.$to)||D.none))),W.replaceWith(this,S),this}deleteSelection(){return this.selection.replace(this),this}insertText(S,T,W){let ce=this.doc.type.schema;if(null==T)return S?this.replaceSelectionWith(ce.text(S),!0):this.deleteSelection();{if(null==W&&(W=T),W=W??T,!S)return this.deleteRange(T,W);let we=this.storedMarks;if(!we){let qe=this.doc.resolve(T);we=W==T?qe.marks():qe.marksAcross(this.doc.resolve(W))}return this.replaceRangeWith(T,W,ce.text(S,we)),this.selection.empty||this.setSelection(kr.near(this.selection.$to)),this}}setMeta(S,T){return this.meta["string"==typeof S?S:S.key]=T,this}getMeta(S){return this.meta["string"==typeof S?S:S.key]}get isGeneric(){for(let S in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function Wa(B,S){return S&&B?B.bind(S):B}class ll{constructor(S,T,W){this.name=S,this.init=Wa(T.init,W),this.apply=Wa(T.apply,W)}}const Za=[new ll("doc",{init:B=>B.doc||B.schema.topNodeType.createAndFill(),apply:B=>B.doc}),new ll("selection",{init:(B,S)=>B.selection||kr.atStart(S.doc),apply:B=>B.selection}),new ll("storedMarks",{init:B=>B.storedMarks||null,apply:(B,S,T,W)=>W.selection.$cursor?B.storedMarks:null}),new ll("scrollToSelection",{init:()=>0,apply:(B,S)=>B.scrolledIntoView?S+1:S})];class sl{constructor(S,T){this.schema=S,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Za.slice(),T&&T.forEach(W=>{if(this.pluginsByKey[W.key])throw new RangeError("Adding different instances of a keyed plugin ("+W.key+")");this.plugins.push(W),this.pluginsByKey[W.key]=W,W.spec.state&&this.fields.push(new ll(W.key,W.spec.state,W))})}}class Jt{constructor(S){this.config=S}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(S){return this.applyTransaction(S).state}filterTransaction(S,T=-1){for(let W=0;W<this.config.plugins.length;W++)if(W!=T){let ce=this.config.plugins[W];if(ce.spec.filterTransaction&&!ce.spec.filterTransaction.call(ce,S,this))return!1}return!0}applyTransaction(S){if(!this.filterTransaction(S))return{state:this,transactions:[]};let T=[S],W=this.applyInner(S),ce=null;for(;;){let we=!1;for(let qe=0;qe<this.config.plugins.length;qe++){let jt=this.config.plugins[qe];if(jt.spec.appendTransaction){let _n=ce?ce[qe].n:0,bi=ce?ce[qe].state:this,qi=_n<T.length&&jt.spec.appendTransaction.call(jt,_n?T.slice(_n):T,bi,W);if(qi&&W.filterTransaction(qi,qe)){if(qi.setMeta("appendedTransaction",S),!ce){ce=[];for(let Oo=0;Oo<this.config.plugins.length;Oo++)ce.push(Oo<qe?{state:W,n:T.length}:{state:this,n:0})}T.push(qi),W=W.applyInner(qi),we=!0}ce&&(ce[qe]={state:W,n:T.length})}}if(!we)return{state:W,transactions:T}}}applyInner(S){if(!S.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let T=new Jt(this.config),W=this.config.fields;for(let ce=0;ce<W.length;ce++){let we=W[ce];T[we.name]=we.apply(S,this[we.name],this,T)}return T}get tr(){return new Js(this)}static create(S){let T=new sl(S.doc?S.doc.type.schema:S.schema,S.plugins),W=new Jt(T);for(let ce=0;ce<T.fields.length;ce++)W[T.fields[ce].name]=T.fields[ce].init(S,W);return W}reconfigure(S){let T=new sl(this.schema,S.plugins),W=T.fields,ce=new Jt(T);for(let we=0;we<W.length;we++){let qe=W[we].name;ce[qe]=this.hasOwnProperty(qe)?this[qe]:W[we].init(S,ce)}return ce}toJSON(S){let T={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(T.storedMarks=this.storedMarks.map(W=>W.toJSON())),S&&"object"==typeof S)for(let W in S){if("doc"==W||"selection"==W)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let ce=S[W],we=ce.spec.state;we&&we.toJSON&&(T[W]=we.toJSON.call(ce,this[ce.key]))}return T}static fromJSON(S,T,W){if(!T)throw new RangeError("Invalid input for EditorState.fromJSON");if(!S.schema)throw new RangeError("Required config field 'schema' missing");let ce=new sl(S.schema,S.plugins),we=new Jt(ce);return ce.fields.forEach(qe=>{if("doc"==qe.name)we.doc=ge.fromJSON(S.schema,T.doc);else if("selection"==qe.name)we.selection=kr.fromJSON(we.doc,T.selection);else if("storedMarks"==qe.name)T.storedMarks&&(we.storedMarks=T.storedMarks.map(S.schema.markFromJSON));else{if(W)for(let jt in W){let _n=W[jt],bi=_n.spec.state;if(_n.key==qe.name&&bi&&bi.fromJSON&&Object.prototype.hasOwnProperty.call(T,jt))return void(we[qe.name]=bi.fromJSON.call(_n,S,T[jt],we))}we[qe.name]=qe.init(S,we)}}),we}}function Tt(B,S,T){for(let W in B){let ce=B[W];ce instanceof Function?ce=ce.bind(S):"handleDOMEvents"==W&&(ce=Tt(ce,S,{})),T[W]=ce}return T}class ht{constructor(S){this.spec=S,this.props={},S.props&&Tt(S.props,this,this.props),this.key=S.key?S.key.key:vi("plugin")}getState(S){return S[this.key]}}const yn=Object.create(null);function vi(B){return B in yn?B+"$"+ ++yn[B]:(yn[B]=0,B+"$")}class Yi{constructor(S="key"){this.key=vi(S)}get(S){return S.config.pluginsByKey[this.key]}getState(S){return S[this.key]}}const co="k-parent-node",sr="k-colgroup-data",yr="k-resizable-node",ss="k-editor-resize-handle",gs="data-dir-table-resize",Pr="data-dir-image-resize",da=(B,S)=>{const T=(B.ownerDocument||document).createElement(S);Array.from(B.rows).filter(W=>W.getAttribute(co)===S).forEach(W=>{W.removeAttribute(co),T.appendChild(W)}),T.children.length&&B.appendChild(T)},ga=(B,S)=>{const T=S.toUpperCase();B.filter(W=>W.nodeName===T).forEach(W=>{Array.from(W.children).forEach(ce=>{ce.setAttribute(co,S),W.parentNode&&W.parentNode.insertBefore(ce,W)}),W.remove()})},La=B=>{const S=document.createElement("template");let T;if("content"in S)S.innerHTML=B,T=S.content;else{const W=(new DOMParser).parseFromString(B,"text/html");T=document.createDocumentFragment();const ce=W.body;for(;ce&&ce.firstChild;)T.appendChild(ce.firstChild)}return T},ra=B=>Array.from(B.childNodes).reduce((S,T)=>S+(T.outerHTML||T.textContent||""),""),Ls=B=>{const S=tt.fromSchema(B.type.schema).serializeFragment(B.content);return(B=>{Array.from(B.querySelectorAll("table")).forEach(S=>{da(S,"thead"),da(S,"tbody"),da(S,"tfoot");const T=Array.from(S.children).find(ce=>0===ce.children.length);T&&T.remove();const W=S.parentNode instanceof HTMLDivElement?S.parentNode:null;if(W&&W.matches("div[table]")){S.style.marginLeft=W.style.marginLeft,S.style.marginRight=W.style.marginRight;const ce=Array.from(W.children).find(we=>we.matches("div[caption]"));if(ce){const we=S.createCaption();for(we.style.textAlign=ce.style.textAlign,we.style.verticalAlign=ce.style.verticalAlign,we.style.captionSide=ce.style.captionSide;ce.firstChild;)we.appendChild(ce.firstChild)}W.parentNode.insertBefore(S,W),W.parentNode.removeChild(W)}})})(S),S},vn=(B,S,T)=>xo.fromSchema(S).parse(B,T),Xe=(B,S,T)=>{const W=La(B);return(B=>{Array.from(B.querySelectorAll("table")).forEach(S=>{const T=Array.from(S.children);T.some(ce=>"THEAD"===ce.nodeName||"TFOOT"===ce.nodeName)&&(ga(T,"thead"),ga(T,"tbody"),ga(T,"tfoot"));const W=T.find(ce=>"COLGROUP"===ce.nodeName);if(W&&(S.setAttribute(sr,W.outerHTML),W.remove()),S.caption||S.style.marginLeft||S.style.marginRight){const ce=document.createElement("div");if(ce.setAttribute("table",""),ce.style.display="table",ce.style.marginLeft=S.style.marginLeft,ce.style.marginRight=S.style.marginRight,S.caption){const we=document.createElement("div");for(we.setAttribute("caption",""),we.style.display="table-caption",we.style.textAlign=S.caption.style.textAlign,we.style.verticalAlign=S.caption.style.verticalAlign,we.style.captionSide=S.caption.style.captionSide;S.caption.firstChild;)we.appendChild(S.caption.firstChild);S.removeChild(S.caption),ce.appendChild(we)}S.parentNode.insertBefore(ce,S),ce.appendChild(S)}})})(W),vn(W,S,T)},Ke=B=>{const S=Ls(B.doc),T=document.createElement("div");return T.appendChild(S),T.innerHTML},St=(B,S)=>{const T=S.style,W=S.value,ce=S.newValue;if(!B)return{changed:!1,style:null};const we=B.split(/\s*;\s*/).filter(jt=>!!jt),qe=we.filter(jt=>{const _n=jt.split(/\s*:\s*/);return!(_n[0].toLowerCase()===T&&W.test(_n[1]))});return ce&&qe.push(`${T}: ${ce}`),{style:qe.join("; ")+(qe.length?";":""),changed:!!ce||qe.length!==we.length}},Dt=B=>B instanceof ge?B.type.name:B.name,Ui=(B,S=1)=>T=>((B,S=1)=>T=>{const{$from:W}=T;for(let ce=W.depth;ce>0;ce--){const we=W.node(ce);if(B(we)&&0==(S-=1))return{depth:ce,node:we}}})(W=>Dt(W)===Dt(B),S)(T),Co=B=>{const S={};for(let T in B)T&&(B[T]||0===B[T])&&(S[T]=B[T]);return S},Sn=(B,S)=>(T,W)=>{const{selection:ce,tr:we}=T;ce instanceof $o&&ce.node.type.name===B.type.name&&B.isLeaf&&!B.isText&&1===B.nodeSize?(we.setNodeMarkup(ce.from,null,Object.assign(Object.assign({},Co(ce.node.attrs)),Co(B.attrs))),we.setSelection($o.create(we.doc,ce.from))):we.replaceSelectionWith(B),S&&we.scrollIntoView(),W(we)},Dn=B=>{const S=B.selection;if(S instanceof Ss||S instanceof No){const T=S.content().content;return T.textBetween(0,T.size)}return""},cn={before:/[^ !,?.\[\]{}()]+$/i,after:/^[^ !,?.\[\]{}()]+/i},Ht=(B,S,T)=>{if(!T.applyToWord||!B.selection.empty)return{state:B,dispatch:S};const W=!0===T.applyToWord?cn:T.applyToWord;let ce=null;const we=B.tr,qe=B.selection,jt=qe.$head.nodeBefore,_n=qe.$head.nodeAfter;if(jt&&"text"===jt.type.name&&jt.text&&_n&&"text"===_n.type.name&&_n.text){const bi=[];qe.$head.parent.descendants((Ul,Dl)=>(bi.push({node:Ul,pos:Dl}),!1));let qi=qe.$head.parentOffset;const Oo=bi.findIndex(({node:Ul,pos:Dl})=>Dl<=qi&&Dl+Ul.nodeSize>=qi);let rr=bi[Oo].node.text,fr=!1;for(let Ul=Oo-1;Ul>=0;Ul--){const Dl=bi[Ul];!fr&&Dl&&"text"===Dl.node.type.name?rr=Dl.node.text+rr:(fr=!0,qi-=Dl.node.nodeSize)}for(let Ul=Oo+1;Ul<bi.length;Ul++){const Dl=bi[Ul];if(!Dl||"text"!==Dl.node.type.name)break;rr+=Dl.node.text}const Gr=rr.substring(0,qi),As=rr.substring(qi),ka=W.before.exec(Gr),hl=W.after.exec(As);if(ka&&hl){const Yu=ce=qe.from;return we.setSelection(Ss.create(B.doc,Yu-ka[0].length,Yu+hl[0].length)),{state:{tr:we,selection:we.selection,doc:we.doc,storedMarks:null,schema:we.doc.type.schema},dispatch:mm=>{mm.setSelection(Ss.create(mm.doc,ce)),S(mm)}}}}return{state:B,dispatch:S}},ft=(B,S)=>(T,W,ce)=>{const{state:we,dispatch:qe}=Ht(T,W,S);return B(S)(we,qe)},Nt=(B,S,T)=>{let W=ce=>{let we=S[ce],qe=we.$from,jt=we.$to,_n=0===qe.depth&&B.type.allowsMarkType(T);if(B.nodesBetween(qe.pos,jt.pos,bi=>{if(_n)return!1;_n=bi.inlineContent&&bi.type.allowsMarkType(T)}),_n)return{v:!0}};for(let ce=0;ce<S.length;ce++){let we=W(ce);if(we)return we.v}return!1},an=(B,S,T)=>(W,ce)=>{let{empty:we,$cursor:qe,ranges:jt}=W.selection;if(we&&!qe||!Nt(W.doc,jt,B))return!1;if(ce)if(qe)B.isInSet(W.storedMarks||qe.marks())?ce(T.removeStoredMark(B)):ce(T.addStoredMark(B.create(S)));else{let _n=!1;for(let bi=0;!_n&&bi<jt.length;bi++){let{$from:qi,$to:Oo}=jt[bi];_n=W.doc.rangeHasMark(qi.pos,Oo.pos,B)}for(let bi=0;bi<jt.length;bi++){let{$from:qi,$to:Oo}=jt[bi];_n?T.removeMark(qi.pos,Oo.pos,B):T.addMark(qi.pos,Oo.pos,B.create(S))}ce(T.scrollIntoView())}return!0},$e=(B,S,T,W)=>{void 0===W&&(W=null);let ce=[],we=0;return B.doc.nodesBetween(S,T,(qe,jt)=>{if(!qe.isInline)return;we++;let _n=null;if(W instanceof mi){let bi=W.isInSet(qe.marks);bi&&(_n=[bi])}else W?W.isInSet(qe.marks)&&(_n=[W]):_n=qe.marks;if(_n&&_n.length){let bi=Math.min(jt+qe.nodeSize,T);for(let qi=0;qi<_n.length;qi++){let rr,Oo=_n[qi];for(let fr=0;fr<ce.length;fr++){let Gr=ce[fr];Gr.step===we-1&&Oo.eq(Gr.style)&&(rr=Gr)}rr?(rr.to=bi,rr.step=we):ce.push({style:Oo,from:Math.max(jt,S),to:bi,step:we})}}}),ce.forEach(qe=>B.step(new wn(qe.from,qe.to,qe.style))),B},At=(B,S)=>{const T=B.schema.marks,W=(S.altMarks||[]).filter(fr=>T[fr]),ce=S.altStyle;let{from:we,$from:qe,to:jt,empty:_n}=B.selection;const bi=T[S.mark],qi=B.doc;let rr,Oo=!1;return _n?(rr=B.storedMarks||qe.marks(),Oo=bi&&bi.isInSet(rr)||W.some(fr=>T[fr].isInSet(rr))):Oo=bi&&qi.rangeHasMark(we,jt,bi)||W.some(fr=>qi.rangeHasMark(we,jt,T[fr])),!Oo&&ce&&T.style?Pt(B,T.style).some(fr=>null!==Rt(fr,ce)):!!Oo},Rt=(B,S)=>{const W=(B&&B.attrs.style||"").split(/\s*;\s*/).filter(ce=>!!ce);for(let ce=0;ce<W.length;ce++){const we=W[ce].split(/\s*:\s*/);if(we[0].toLowerCase()===S.name&&S.value.test(we[1]))return we[1]}return null},Pt=(B,S)=>{let{from:T,$from:W,to:ce,empty:we}=B.selection,qe=[];return we?qe.push(S.isInSet(B.storedMarks||W.marks())):B.doc.nodesBetween(T,ce,jt=>{jt.isInline&&qe.push(S.isInSet(jt.marks))}),qe},Xn=(B,S)=>{const T=Pt(B,S),W=T.filter(we=>!!we);return{hasNodesWithoutMarks:T.length!==W.length,marks:W}},Nn=(B,S)=>{const T=B.find(ce=>"style"===ce.type.name);return St(T&&T.attrs.style,S)},Ae=(B,S,T,W,ce)=>{const we=ce.create({style:W.style});let qe=[],jt=[],_n=null,bi=null;return B.doc.nodesBetween(S,T,(qi,Oo,rr)=>{if(!qi.isInline)return;let fr=qi.marks;if(!we.isInSet(fr)&&rr.type.allowsMarkType(we.type)){let Gr=Math.max(Oo,S),As=Math.min(Oo+qi.nodeSize,T);const ka=Nn(fr,W);if(ka.changed||W.newValue){const hl=ka.changed?{style:ka.style||null}:{style:`${[W.style]}: ${W.newValue};`},Ul=ce.isInSet(fr)?fr.find(vc=>"style"===vc.type.name):null,Dl=Ul?Object.assign(Object.assign({},Ul.attrs),hl):hl,Yu=ce.create(Dl);let kd=Yu.addToSet(fr);for(let vc=0;vc<fr.length;vc++)fr[vc].isInSet(kd)||(_n&&_n.to===Gr&&_n.mark.eq(fr[vc])?_n.to=As:(_n=new wn(Gr,As,fr[vc]),qe.push(_n)));const km=bi&&bi.to===Gr;km&&km&&Yu.attrs.style===bi.mark.attrs.style?bi.to=As:Object.keys(Dl).some(vc=>null!==Dl[vc])&&(bi=new jo(Gr,As,Yu),jt.push(bi))}}}),qe.forEach(qi=>B.step(qi)),jt.forEach(qi=>B.step(qi)),qe.length+jt.length>0},Kt=(B,S)=>function(T,W,ce){let{empty:we,$cursor:qe,ranges:jt}=T.selection;if(we&&!qe||!Nt(T.doc,jt,B))return!1;let _n=!1;if(W){const bi=ce||T.tr;if(qe){const qi=T.storedMarks||qe.marks();if(B.isInSet(qi)){const Oo=Nn(qi,S),rr=qi.find(Gr=>"style"===Gr.type.name),fr=Object.assign(Object.assign({},rr?rr.attrs:{}),{style:Oo.style||null});if(((B,S)=>{const T=Object.keys(B),W=Object.keys(S);return T.length===W.length&&T.every(ce=>B[ce]===S[ce])})(rr.attrs,fr))return!1;W(bi.removeStoredMark(B)),Object.keys(fr).some(Gr=>null!==fr[Gr])&&W(bi.addStoredMark(B.create(fr))),_n=!0}}else{for(let qi=0;qi<jt.length;qi++){let{$from:Oo,$to:rr}=jt[qi];_n=Ae(bi,Oo.pos,rr.pos,S,B)}_n&&(bi.scrollIntoView(),W(bi))}}return _n},On=(B,S,T)=>(W,ce)=>{const we=W.schema.marks,{altStyle:qe,altMarks:jt=[],mark:_n}=B,bi=S||W.tr;let qi=!1,Oo=!1;const rr=()=>Oo=!0;qe&&we.style&&(qi=Kt(we.style,{style:qe.name,value:qe.value})(W,rr,bi));const Gr=[_n,...jt].filter(As=>we[As]).map(As=>At(W,{mark:As})&&we[As]).filter(As=>As);return Gr.length?((B,S,T,W)=>{let{$cursor:ce,ranges:we}=S.selection;if(W=W||S.tr,ce)B.forEach(qe=>{qe.isInSet(S.storedMarks||ce.marks())&&T(W.removeStoredMark(qe))});else{for(let qe=0;qe<we.length;qe++){let{$from:jt,$to:_n}=we[qe];B.forEach(bi=>{$e(W,jt.pos,_n.pos,bi)})}T(W.scrollIntoView())}})(Gr,W,rr,bi):qi||an(we[_n],T,bi)(W,rr),Oo&&ce(bi),Oo},Fi=(B,S)=>(T,W)=>{const we=T.schema.marks.style,qe={style:B.style,value:/^.+$/,newValue:B.value},jt=T.tr;S&&jt.setMeta("commandName",S),jt.setMeta("args",B);let{empty:_n,$cursor:bi,ranges:qi}=T.selection;if(_n&&!bi||!we||!Nt(T.doc,qi,we))return!1;if(bi){const Oo=T.storedMarks||bi.marks(),rr=we.isInSet(Oo)?Oo.find(As=>"style"===As.type.name):null,fr={style:null};if(rr&&rr.attrs.style){const As=St(rr.attrs.style,qe);As.changed&&As.style&&(fr.style=As.style)}else qe.newValue&&(fr.style=`${[qe.style]}: ${qe.newValue};`);const Gr=rr?Object.assign(Object.assign({},rr.attrs),fr):fr;return Object.keys(Gr).some(As=>null!==Gr[As])?W(jt.addStoredMark(we.create(Gr))):W(jt.removeStoredMark(we)),!0}return Kt(we,qe)(T,W,jt)},xi=(B,S)=>(T,W)=>{const{$cursor:ce}=T.selection;if(ce){const we=ce.parent,qe=ce.index(),jt=T.schema.marks[B.mark],_n=we.child(qe).marks.find(Gr=>Gr.type===jt),bi=we.childCount;let rr,fr,qi=ce.pos-ce.textOffset,Oo=we.child(qe).nodeSize;for(rr=qe-1;rr>=0&&_n.isInSet(we.child(rr).marks);)fr=we.child(rr).nodeSize,Oo+=fr,qi-=fr,rr-=1;for(rr=qe+1;rr<bi&&_n.isInSet(we.child(rr).marks);)Oo+=we.child(rr).nodeSize,rr+=1;W($e(S||T.tr,qi,qi+Oo,_n))}else On(B,S)(T,W)},Vt=({mark:B,attrs:S},T="link")=>(W,ce)=>{const we=W.schema.marks,qe=W.tr;T&&(qe.setMeta("commandName",T),qe.setMeta("args",S));let jt=!1;const _n=()=>jt=!0;if(((B,S)=>{const T=Pt(B,S);return 1===T.length&&T[0]?T[0]:null})(W,we[B]))((B,S)=>(T,W)=>{const{$cursor:ce,from:we,to:qe}=T.selection,jt=T.schema.marks[B.mark];if(ce){const _n=ce.parent,bi=ce.index(),qi=_n.child(bi).marks.find(ka=>ka.type===jt),Oo=_n.childCount;let Gr,As,rr=ce.pos-ce.textOffset,fr=_n.child(bi).nodeSize;for(Gr=bi-1;Gr>=0&&qi.isInSet(_n.child(Gr).marks);)As=_n.child(Gr).nodeSize,fr+=As,rr-=As,Gr-=1;for(Gr=bi+1;Gr<Oo&&qi.isInSet(_n.child(Gr).marks);)fr+=_n.child(Gr).nodeSize,Gr+=1;S.removeMark(rr,rr+fr,jt),S.addMark(rr,rr+fr,jt.create(B.attrs)),W(S)}else S.doc.nodesBetween(we,qe,(_n,bi)=>{_n.isInline&&jt.isInSet(_n.marks)&&(S.removeMark(bi,bi+_n.nodeSize,jt),S.addMark(bi,bi+_n.nodeSize,jt.create(B.attrs)),W(S))})})({mark:B,attrs:S},qe)(W,_n);else{let bi=W;At(W,{mark:B})&&(xi({mark:B,attrs:S},qe)(W,_n),bi=Jt.create({doc:qe.doc,selection:qe.selection})),jt?an(we[B],S,qe)(bi,_n):On({mark:B},qe,S)(bi,_n)}return jt&&ce(qe),jt};var ii=i(97582);const Jn=(B,S,T,W)=>{if(!T.isTextblock)return!1;const{ranges:ce}=B.selection;ce.forEach(we=>{const qe=B.steps.length;B.doc.nodesBetween(we.$from.pos,we.$to.pos,(bi,qi)=>{if(bi.eq(S)&&bi.isTextblock&&!bi.hasMarkup(T,W)&&((B,S,T)=>{let W=B.resolve(S),ce=W.index();return W.parent.canReplaceWith(ce,ce+1,T)})(B.doc,B.mapping.slice(qe).map(qi),T)){B.clearIncompatible(B.mapping.slice(qe).map(qi,1),T);let Oo=B.mapping.slice(qe),rr=Oo.map(qi,1),fr=Oo.map(qi+bi.nodeSize,1),Gr=new P(E.from(T.create(W,null,bi.marks)),0,0);return B.step(new Xo(rr,fr,rr+1,fr-1,Gr,1,!0)),!1}})})},zt=(B,S={blocksInSelection:!1})=>{const{doc:T,selection:W}=B;let{$from:ce,ranges:we}=W;const{blocksInSelection:qe}=S,jt=[],_n=W instanceof $o?W.node:void 0;return _n?_n.isBlock?(jt.push(_n),_n.nodesBetween(0,_n.content.size,bi=>{bi.isBlock&&jt.push(bi)})):!qe&&ce.parent&&ce.parent.isBlock&&jt.push(ce.parent):we.forEach(bi=>{const qi=bi.$from.pos,Oo=bi.$to.pos;T.nodesBetween(qi,Oo,(rr,fr,Gr,As)=>{rr.isBlock&&(!qe||fr>=qi&&fr+rr.content.size+2<=Oo)&&jt.push(rr)})}),jt},Oi=(B,S)=>{let W,ce,T=B.attrs.style;return T&&S.forEach(qe=>{ce={style:qe.name,value:/^.+$/,newValue:qe.value},W=St(T,ce),T=W.changed?W.style:T}),T=T||S.reduce((qe,jt)=>(qe&&jt.value?qe+" ":"")+jt.value?`${jt.name}: ${jt.value};`:"",""),Object.assign({},B.attrs,{style:T||null})},Ai=(B,S)=>{let{from:T,to:W}=B.selection,ce=!1;return B.doc.nodesBetween(T,W,we=>(ce=ce||we.type===S,!ce)),ce},Pn=B=>{const S=(B=>{const S=zt(B),T=B.schema.nodes,W=[];return S.forEach(ce=>{ce.type===T.paragraph?W.push("p"):ce.type===T.heading?W.push(`h${ce.attrs.level}`):ce.type===T.blockquote&&T.blockquote.isTextblock&&W.push("blockquote")}),W})(B);return 1===new Set(S).size?S[0]:null},qn=B=>({tag:Pn(B)||""}),Ni=(B,S)=>(T,W)=>{const ce=zt(T),we=T.tr;we.setMeta("commandName",S),ce.forEach(jt=>{if(jt.type.isTextblock){const _n=B.find(bi=>bi.node===jt.type.name);if(_n){const bi=Oi(jt,_n.style);Jn(we,jt,jt.type,bi)}}});const qe=we.docChanged;return qe&&W(we.scrollIntoView()),qe},Ue=(B,S)=>{const T=zt(B);let W=!1;return T.forEach(ce=>{if(!W&&ce.type.isTextblock&&ce.attrs.style){const we=S.find(qe=>qe.node===ce.type.name);we&&(W=we.style.every(qe=>!!qe.value&&new RegExp(`${qe.name}:\\s?${qe.value}`,"i").test(ce.attrs.style)))}}),W},Ye=(B={blocksInSelection:!0})=>(S,T)=>{const W=S.tr,{blocksInSelection:ce,blockNodeType:we,exceptMarks:qe}=B;((B,{except:S})=>{const{doc:T,selection:W}=B,ce=T.type.schema,{empty:we,ranges:qe}=W,jt=(S||[]).map(_n=>_n.name);if(!we){const _n=Object.keys(ce.marks).map(bi=>ce.marks[bi]).filter(bi=>-1===jt.indexOf(bi.name));qe.forEach(({$from:bi,$to:qi})=>{_n.forEach(Oo=>B.removeMark(bi.pos,qi.pos,Oo))})}})(W,{except:(qe||[S.schema.marks.link]).filter(Boolean)}),((B,S={blocksInSelection:!0})=>{const{doc:T,selection:W}=B,{blocksInSelection:ce,blockNodeType:we}=S;zt({doc:T,selection:W},{blocksInSelection:ce}).filter(_n=>_n.isTextblock).forEach(_n=>{const bi=_n.attrs||{},{style:qi="",class:Oo=""}=bi,rr=(0,ii._T)(bi,["style","class"]),fr=we||_n.type;(qi||Oo||fr!==_n.type)&&Jn(B,_n,fr,rr)})})(W,{blocksInSelection:ce,blockNodeType:we});const _n=W.docChanged;return _n&&T&&T(W),_n};function wo(B){return function(S,T){let{$from:W,$to:ce}=S.selection,we=W.blockRange(ce,qe=>qe.childCount>0&&qe.firstChild.type==B);return!!we&&(!T||(W.node(we.depth-1).type==B?function io(B,S,T,W){let ce=B.tr,we=W.end,qe=W.$to.end(W.depth);we<qe&&(ce.step(new Xo(we-1,qe,we,qe,new P(E.from(T.create(null,W.parent.copy())),1,0),1,!0)),W=new ne(ce.doc.resolve(W.$from.pos),ce.doc.resolve(qe),W.depth));const jt=ji(W);if(null==jt)return!1;ce.lift(W,jt);let _n=ce.mapping.map(we,-1)-1;return Sa(ce.doc,_n)&&ce.join(_n),S(ce.scrollIntoView()),!0}(S,T,B,we):function Wi(B,S,T){let W=B.tr,ce=T.parent;for(let fr=T.end,Gr=T.endIndex-1,As=T.startIndex;Gr>As;Gr--)fr-=ce.child(Gr).nodeSize,W.delete(fr-1,fr+1);let we=W.doc.resolve(T.start),qe=we.nodeAfter;if(W.mapping.map(T.end)!=T.start+we.nodeAfter.nodeSize)return!1;let jt=0==T.startIndex,_n=T.endIndex==ce.childCount,bi=we.node(-1),qi=we.index(-1);if(!bi.canReplace(qi+(jt?0:1),qi+1,qe.content.append(_n?E.empty:E.from(ce))))return!1;let Oo=we.pos,rr=Oo+qe.nodeSize;return W.step(new Xo(Oo-(jt?1:0),rr+(_n?1:0),Oo+1,rr-1,new P((jt?E.empty:E.from(ce.copy(E.empty))).append(_n?E.empty:E.from(ce.copy(E.empty))),jt?0:1,_n?0:1),jt?0:1)),S(W.scrollIntoView()),!0}(S,T,we)))}}function fo(B){return function(S,T){let{$from:W,$to:ce}=S.selection,we=W.blockRange(ce,bi=>bi.childCount>0&&bi.firstChild.type==B);if(!we)return!1;let qe=we.startIndex;if(0==qe)return!1;let jt=we.parent,_n=jt.child(qe-1);if(_n.type!=B)return!1;if(T){let bi=_n.lastChild&&_n.lastChild.type==jt.type,qi=E.from(bi?B.create():null),Oo=new P(E.from(B.create(null,E.from(jt.type.create(null,qi)))),bi?3:1,0),rr=we.start,fr=we.end;T(S.tr.step(new Xo(rr-(bi?3:1),fr,rr,fr,Oo,1,!0)).scrollIntoView())}return!0}}const cr={orderedList:"ordered_list",bulletList:"bullet_list",listItem:"list_item"},Fr={listType:cr.orderedList,types:Object.assign({},cr)},jr={listType:cr.bulletList,types:Object.assign({},cr)},fs={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"}],listsTypes:Object.assign({},cr)},Ms={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"}],listsTypes:Object.assign({},cr)},Ca=(B,S)=>!B.selection.empty&&(S&&S(B.tr.deleteSelection().scrollIntoView()),!0);const ts=(B,S,T)=>{let W=function ks(B,S){let{$cursor:T}=B.selection;return!T||(S?!S.endOfTextblock("backward",B):T.parentOffset>0)?null:T}(B,T);if(!W)return!1;let ce=Ps(W);if(!ce){let qe=W.blockRange(),jt=qe&&ji(qe);return null!=jt&&(S&&S(B.tr.lift(qe,jt).scrollIntoView()),!0)}let we=ce.nodeBefore;if(!we.type.spec.isolating&&Dr(B,ce,S))return!0;if(0==W.parent.content.size&&(Ws(we,"end")||$o.isSelectable(we))){let qe=Go(B.doc,W.before(),W.after(),P.empty);if(qe&&qe.slice.size<qe.to-qe.from){if(S){let jt=B.tr.step(qe);jt.setSelection(Ws(we,"end")?kr.findFrom(jt.doc.resolve(jt.mapping.map(ce.pos,-1)),-1):$o.create(jt.doc,ce.pos-we.nodeSize)),S(jt.scrollIntoView())}return!0}}return!(!we.isAtom||ce.depth!=W.depth-1||(S&&S(B.tr.delete(ce.pos-we.nodeSize,ce.pos).scrollIntoView()),0))};function Ws(B,S,T=!1){for(let W=B;W;W="start"==S?W.firstChild:W.lastChild){if(W.isTextblock)return!0;if(T&&1!=W.childCount)return!1}return!1}const cs=(B,S,T)=>{let{$head:W,empty:ce}=B.selection,we=W;if(!ce)return!1;if(W.parent.isTextblock){if(T?!T.endOfTextblock("backward",B):W.parentOffset>0)return!1;we=Ps(W)}let qe=we&&we.nodeBefore;return!(!qe||!$o.isSelectable(qe)||(S&&S(B.tr.setSelection($o.create(B.doc,we.pos-qe.nodeSize)).scrollIntoView()),0))};function Ps(B){if(!B.parent.type.spec.isolating)for(let S=B.depth-1;S>=0;S--){if(B.index(S)>0)return B.doc.resolve(B.before(S+1));if(B.node(S).type.spec.isolating)break}return null}function to(B){if(!B.parent.type.spec.isolating)for(let S=B.depth-1;S>=0;S--){let T=B.node(S);if(B.index(S)+1<T.childCount)return B.doc.resolve(B.after(S+1));if(T.type.spec.isolating)break}return null}const Os=(B,S)=>{let{$head:T,$anchor:W}=B.selection;return!(!T.parent.type.spec.code||!T.sameParent(W)||(S&&S(B.tr.insertText("\n").scrollIntoView()),0))};function Ys(B){for(let S=0;S<B.edgeCount;S++){let{type:T}=B.edge(S);if(T.isTextblock&&!T.hasRequiredAttrs())return T}return null}const la=(B,S)=>{let{$head:T,$anchor:W}=B.selection;if(!T.parent.type.spec.code||!T.sameParent(W))return!1;let ce=T.node(-1),we=T.indexAfter(-1),qe=Ys(ce.contentMatchAt(we));if(!qe||!ce.canReplaceWith(we,we,qe))return!1;if(S){let jt=T.after(),_n=B.tr.replaceWith(jt,jt,qe.createAndFill());_n.setSelection(kr.near(_n.doc.resolve(jt),1)),S(_n.scrollIntoView())}return!0},Da=(B,S)=>{let T=B.selection,{$from:W,$to:ce}=T;if(T instanceof No||W.parent.inlineContent||ce.parent.inlineContent)return!1;let we=Ys(ce.parent.contentMatchAt(ce.indexAfter()));if(!we||!we.isTextblock)return!1;if(S){let qe=(!W.parentOffset&&ce.index()<ce.parent.childCount?W:ce).pos,jt=B.tr.insert(qe,we.createAndFill());jt.setSelection(Ss.create(jt.doc,qe+1)),S(jt.scrollIntoView())}return!0},Ka=(B,S)=>{let{$cursor:T}=B.selection;if(!T||T.parent.content.size)return!1;if(T.depth>1&&T.after()!=T.end(-1)){let we=T.before();if(Oa(B.doc,we))return S&&S(B.tr.split(we).scrollIntoView()),!0}let W=T.blockRange(),ce=W&&ji(W);return null!=ce&&(S&&S(B.tr.lift(W,ce).scrollIntoView()),!0)},il=function nl(B){return(S,T)=>{let{$from:W,$to:ce}=S.selection;if(S.selection instanceof $o&&S.selection.node.isBlock)return!(!W.parentOffset||!Oa(S.doc,W.pos)||(T&&T(S.tr.split(W.pos).scrollIntoView()),0));if(!W.parent.isBlock)return!1;if(T){let we=ce.parentOffset==ce.parent.content.size,qe=S.tr;(S.selection instanceof Ss||S.selection instanceof No)&&qe.deleteSelection();let jt=0==W.depth?null:Ys(W.node(-1).contentMatchAt(W.indexAfter(-1))),_n=B&&B(ce.parent,we),bi=_n?[_n]:we&&jt?[{type:jt}]:void 0,qi=Oa(qe.doc,qe.mapping.map(W.pos),1,bi);if(!bi&&!qi&&Oa(qe.doc,qe.mapping.map(W.pos),1,jt?[{type:jt}]:void 0)&&(jt&&(bi=[{type:jt}]),qi=!0),qi&&(qe.split(qe.mapping.map(W.pos),1,bi),!we&&!W.parentOffset&&W.parent.type!=jt)){let Oo=qe.mapping.map(W.before()),rr=qe.doc.resolve(Oo);jt&&W.node(-1).canReplaceWith(rr.index(),rr.index()+1,jt)&&qe.setNodeMarkup(qe.mapping.map(W.before()),jt)}T(qe.scrollIntoView())}return!0}}(),xl=(B,S)=>il(B,S&&(T=>{let W=B.storedMarks||B.selection.$to.parentOffset&&B.selection.$from.marks();W&&T.ensureMarks(W),S(T)})),To=(B,S)=>(S&&S(B.tr.setSelection(new No(B.doc))),!0);function Dr(B,S,T){let we,qe,W=S.nodeBefore,ce=S.nodeAfter;if(W.type.spec.isolating||ce.type.spec.isolating)return!1;if(function Qo(B,S,T){let W=S.nodeBefore,ce=S.nodeAfter,we=S.index();return!(!(W&&ce&&W.type.compatibleContent(ce.type))||(!W.content.size&&S.parent.canReplace(we-1,we)?(T&&T(B.tr.delete(S.pos-W.nodeSize,S.pos).scrollIntoView()),0):!S.parent.canReplace(we,we+1)||!ce.isTextblock&&!Sa(B.doc,S.pos)||(T&&T(B.tr.clearIncompatible(S.pos,W.type,W.contentMatchAt(W.childCount)).join(S.pos).scrollIntoView()),0)))}(B,S,T))return!0;let jt=S.parent.canReplace(S.index(),S.index()+1);if(jt&&(we=(qe=W.contentMatchAt(W.childCount)).findWrapping(ce.type))&&qe.matchType(we[0]||ce.type).validEnd){if(T){let Oo=S.pos+ce.nodeSize,rr=E.empty;for(let As=we.length-1;As>=0;As--)rr=E.from(we[As].create(null,rr));rr=E.from(W.copy(rr));let fr=B.tr.step(new Xo(S.pos-1,Oo,S.pos,Oo,new P(rr,1,0),we.length,!0)),Gr=Oo+2*we.length;Sa(fr.doc,Gr)&&fr.join(Gr),T(fr.scrollIntoView())}return!0}let _n=kr.findFrom(S,1),bi=_n&&_n.$from.blockRange(_n.$to),qi=bi&&ji(bi);if(null!=qi&&qi>=S.depth)return T&&T(B.tr.lift(bi,qi).scrollIntoView()),!0;if(jt&&Ws(ce,"start",!0)&&Ws(W,"end")){let Oo=W,rr=[];for(;rr.push(Oo),!Oo.isTextblock;)Oo=Oo.lastChild;let fr=ce,Gr=1;for(;!fr.isTextblock;fr=fr.firstChild)Gr++;if(Oo.canReplace(Oo.childCount,Oo.childCount,fr.content)){if(T){let As=E.empty;for(let hl=rr.length-1;hl>=0;hl--)As=E.from(rr[hl].copy(As));T(B.tr.step(new Xo(S.pos-rr.length,S.pos+ce.nodeSize,S.pos+Gr,S.pos+ce.nodeSize-Gr,new P(As,rr.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function _s(B){return function(S,T){let W=S.selection,ce=B<0?W.$from:W.$to,we=ce.depth;for(;ce.node(we).isInline;){if(!we)return!1;we--}return!!ce.node(we).isTextblock&&(T&&T(S.tr.setSelection(Ss.create(S.doc,B<0?ce.start(we):ce.end(we)))),!0)}}const ia=_s(-1),Ia=_s(1);function Nl(...B){return function(S,T,W){for(let ce=0;ce<B.length;ce++)if(B[ce](S,T,W))return!0;return!1}}let nd=Nl(Ca,ts,cs),Ct=Nl(Ca,(B,S,T)=>{let W=function Qi(B,S){let{$cursor:T}=B.selection;return!T||(S?!S.endOfTextblock("forward",B):T.parentOffset<T.parent.content.size)?null:T}(B,T);if(!W)return!1;let ce=to(W);if(!ce)return!1;let we=ce.nodeAfter;if(Dr(B,ce,S))return!0;if(0==W.parent.content.size&&(Ws(we,"start")||$o.isSelectable(we))){let qe=Go(B.doc,W.before(),W.after(),P.empty);if(qe&&qe.slice.size<qe.to-qe.from){if(S){let jt=B.tr.step(qe);jt.setSelection(Ws(we,"start")?kr.findFrom(jt.doc.resolve(jt.mapping.map(ce.pos)),1):$o.create(jt.doc,jt.mapping.map(ce.pos))),S(jt.scrollIntoView())}return!0}}return!(!we.isAtom||ce.depth!=W.depth-1||(S&&S(B.tr.delete(ce.pos,ce.pos+we.nodeSize).scrollIntoView()),0))},(B,S,T)=>{let{$head:W,empty:ce}=B.selection,we=W;if(!ce)return!1;if(W.parent.isTextblock){if(T?!T.endOfTextblock("forward",B):W.parentOffset<W.parent.content.size)return!1;we=to(W)}let qe=we&&we.nodeAfter;return!(!qe||!$o.isSelectable(qe)||(S&&S(B.tr.setSelection($o.create(B.doc,we.pos)).scrollIntoView()),0))});const rn={Enter:Nl(Os,Da,Ka,il),"Mod-Enter":la,Backspace:nd,"Mod-Backspace":nd,"Shift-Backspace":nd,Delete:Ct,"Mod-Delete":Ct,"Mod-a":To},We={"Ctrl-h":rn.Backspace,"Alt-Backspace":rn["Mod-Backspace"],"Ctrl-d":rn.Delete,"Ctrl-Alt-Backspace":rn["Mod-Delete"],"Alt-Delete":rn["Mod-Delete"],"Alt-d":rn["Mod-Delete"],"Ctrl-a":ia,"Ctrl-e":Ia};for(let B in rn)We[B]=rn[B];const ct=(typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&"darwin"==os.platform())?We:rn,Qt=(B,S)=>function ar(B,S=null){return function(T,W){let{$from:ce,$to:we}=T.selection,qe=ce.blockRange(we),jt=qe&&rt(qe,B,S);return!!jt&&(W&&W(T.tr.wrap(qe,jt).scrollIntoView()),!0)}}(B.schema.nodes.blockquote)(B,S),Do=(B,S,T)=>(W,ce)=>{const we=zt(W),qe=W.tr;qe.setMeta("commandName",S),we.forEach(_n=>{if(_n.type.isTextblock){let bi;const qi=B.find(Oo=>Oo.node===_n.type.name);if(qi){const Oo="rtl"===T?qi.rtlStyle:qi.style,rr={name:Oo,value:qi.step>0?`${qi.step}${qi.unit}`:""};if(_n.attrs.style){const fr=new RegExp(`${Oo}:\\s?(\\d+)${qi.unit}`,"i"),Gr=_n.attrs.style.match(fr);if(Gr){let As=parseFloat(Gr[1])+qi.step;As=As<=0?"":As,rr.value=`${As}${As?qi.unit:""}`}}bi=Oi(_n,[rr])}bi&&Jn(qe,_n,_n.type,bi)}});const jt=qe.docChanged;return jt&&ce(qe.scrollIntoView()),jt},Po=(B,S,T)=>{const W=zt(B);let ce=!1;return W.forEach(we=>{if(!ce&&we.type.isTextblock&&we.attrs.style){const qe=S.find(jt=>jt.node===we.type.name);qe&&(ce=new RegExp(`${"rtl"===T?qe.rtlStyle:qe.style}:\\s?\\d+${qe.unit}`,"i").test(we.attrs.style))}}),ce},Or=(B,S)=>fo(S)(B),hs=(B,S)=>{const T=B.schema.nodes[S.listsTypes.listItem],ce=B.schema.nodes[S.listsTypes.bulletList],we=!!Ui(B.schema.nodes[S.listsTypes.orderedList],2)(B.selection),qe=!!Ui(ce,2)(B.selection);return(we||qe)&&wo(T)(B)},Zs=(B,S)=>{const T=B.schema.nodes,W=T[fs.listsTypes.listItem];return(Po(B,S.nodes)||fs.nodes.some(ce=>T[ce.node]&&Ai(B,T[ce.node])))&&!Ai(B,W)},ca=(B,S)=>{const T=B.schema.nodes[fs.listsTypes.listItem],W=Zs(B,fs);Or(B,T)?fo(T)(B,S):W&&Do(fs.nodes)(B,S)},za=(B,S)=>{const T=B.schema.nodes,W=T[Ms.listsTypes.listItem],ce=Zs(B,Ms);Ai(B,T.blockquote)?((B,S)=>{const{$from:T,$to:W}=B.selection,ce=B.schema.nodes.blockquote,we=B.doc;let qe=-1;const jt=T.blockRange(W);jt&&we.nodesBetween(jt.start,jt.end,(bi,qi,Oo,rr)=>{bi.type===ce&&(qe=qi)});S&&-1!==qe&&S(B.tr.lift(jt,we.resolve(qe).depth))})(B,S):hs(B,Ms)?wo(W)(B,S):ce&&Do(Ms.nodes)(B,S)},yc=(B,S,T)=>{let W=S.depth;const ce=B.nodes[T.bulletList],we=B.nodes[T.orderedList],qe=B.nodes[T.listItem];for(let jt=S.depth;jt>0;jt--){const _n=S.node(jt);if((_n.type===ce||_n.type===we)&&(W=jt),_n.type!==ce&&_n.type!==we&&_n.type!==qe)break}return W-1};function ec(B){return function(S,T,W){if(!W)return!1;const ce=(S=W.state).schema.nodes[B.listType],{$from:we,$to:qe}=S.selection,jt=we.node(-2),_n=we.node(-3),bi=function Hc(B,S,T,W){return 0===function Vc(B,S,T){const W=Array(),ce=function Mu(B,S){const T=["blockquote","bulletList","orderedList"];if(1===S.depth)return S;let W=S.node(S.depth),ce=S;for(;S.depth>=1;)W=(S=B.resolve(S.before(S.depth))).node(S.depth),W&&-1!==T.indexOf(W.type.name)&&(ce=S);return ce}(B,S).depth;let we=B.resolve(S.start(ce));for(;we.pos<=T.start(T.depth);){const qe=Math.min(we.depth,ce),jt=we.node(qe);if(jt&&W.push(jt),0===qe)break;let _n=B.resolve(we.after(qe));if(_n.start(qe)>=B.nodeSize-2)break;_n.depth!==we.depth&&(_n=B.resolve(_n.pos+2)),we=B.resolve(_n.depth?_n.start(_n.depth):_n.end(_n.depth))}return W}(B,S,T).filter(ce=>ce.type!==W).length}(S.doc,we,qe,ce);return(jt&&jt.type===ce||_n&&_n.type===ce)&&bi?Tl(B)(S,T):(bi||(Tl(B)(S,T),S=W.state),function cc(B,S={}){return function rl(B,S){let T=Array.isArray(S)?W=>S.indexOf(W.type.name)>-1:S;return(W,ce,we)=>B(W,ce&&function pa(B,S){return T=>{if(!T.isGeneric)return B(T);let W=[];for(let we=0;we<T.mapping.maps.length;we++){let qe=T.mapping.maps[we];for(let jt=0;jt<W.length;jt++)W[jt]=qe.map(W[jt]);qe.forEach((jt,_n,bi,qi)=>W.push(bi,qi))}let ce=[];for(let we=0;we<W.length;we+=2){let jt=W[we+1],_n=T.doc.resolve(W[we]),bi=_n.sharedDepth(jt),qi=_n.node(bi);for(let Oo=_n.indexAfter(bi),rr=_n.after(bi+1);rr<=jt;++Oo){let fr=qi.maybeChild(Oo);if(!fr)break;if(Oo&&-1==ce.indexOf(rr)){let Gr=qi.child(Oo-1);Gr.type==fr.type&&S(Gr,fr)&&ce.push(rr)}rr+=fr.nodeSize}}ce.sort((we,qe)=>we-qe);for(let we=ce.length-1;we>=0;we--)Sa(T.doc,ce[we])&&T.join(ce[we]);B(T)}}(ce,T),we)}(function po(B,S=null){return function(T,W){let{$from:ce,$to:we}=T.selection,qe=ce.blockRange(we),jt=!1,_n=qe;if(!qe)return!1;if(qe.depth>=2&&ce.node(qe.depth-1).type.compatibleContent(B)&&0==qe.startIndex){if(0==ce.index(qe.depth-1))return!1;let qi=T.doc.resolve(qe.start-2);_n=new ne(qi,qi,qe.depth),qe.endIndex<qe.parent.childCount&&(qe=new ne(ce,T.doc.resolve(we.end(qe.depth)),qe.depth)),jt=!0}let bi=rt(_n,B,S,qe);return!!bi&&(W&&W(function $i(B,S,T,W,ce){let we=E.empty;for(let qi=T.length-1;qi>=0;qi--)we=E.from(T[qi].type.create(T[qi].attrs,we));B.step(new Xo(S.start-(W?2:0),S.end,S.start,S.end,new P(we,0,0),T.length,!0));let qe=0;for(let qi=0;qi<T.length;qi++)T[qi].type==ce&&(qe=qi+1);let jt=T.length-qe,_n=S.start+T.length-(W?2:0),bi=S.parent;for(let qi=S.startIndex,Oo=S.endIndex,rr=!0;qi<Oo;qi++,rr=!1)!rr&&Oa(B.doc,_n,jt)&&(B.split(_n,jt),_n+=2*jt),_n+=bi.child(qi).nodeSize;return B}(T.tr,qe,bi,jt,B).scrollIntoView()),!0)}}(B,S),(T,W)=>T.type===W.type&&T.type===B)}(ce,B.listAttrs)(S,T))}}function Wl(B,S,T,W){const ce=W||B.schema.nodes.listItem;let{$from:we,$to:qe}=S,jt=we.blockRange(qe,qi=>qi.childCount&&qi.firstChild.type===ce);if(!jt||jt.depth<2||we.node(jt.depth-1).type!==ce)return T;let _n=jt.end,bi=qe.end(jt.depth);return _n<bi&&(T.step(new Xo(_n-1,bi,_n,bi,new P(E.from(ce.create(void 0,jt.parent.copy())),1,0),1,!0)),jt=new ne(T.doc.resolve(we.pos),T.doc.resolve(bi),jt.depth)),T.lift(jt,ji(jt)).scrollIntoView()}function Tl(B){return function(S,T){const{tr:W}=S,{$from:ce,$to:we}=S.selection;return W.doc.nodesBetween(ce.pos,we.pos,(qe,jt)=>{if(qe.isTextblock||"blockquote"===qe.type.name||"div"===qe.type.name){const _n=new $o(W.doc.resolve(W.mapping.map(jt))),bi=_n.$from.blockRange(_n.$to);if(!bi||_n.$from.parent.type!==S.schema.nodes[B.listItem])return!1;const qi=bi&&ji(bi);if(null==qi)return!1;W.lift(bi,qi)}}),T&&T(W),!0}}const Id=/list\-style\-type:\s?([\w-]+)/,vu=B=>{const T=Id.exec(B.style||"");return T&&T[1]||""},th=(B,S,T,W,ce)=>{const{listType:we,listAttrs:qe={style:null}}=W,{selection:jt}=B,_n=jt.$from.node(jt.$from.depth-2),bi=jt.$to.node(jt.$to.depth-2);if(!_n||_n.type.name!==we||vu(_n.attrs)!==vu(qe)||!bi||bi.type.name!==we||vu(bi.attrs)!==vu(qe))return ec(W)(B,S,T);{const qi=T.state.schema.nodes,Oo={bulletList:qi[W.bulletList],orderedList:qi[W.orderedList],listItem:qi[W.listItem]},rr=((B,S)=>{const{bulletList:T,orderedList:W,listItem:ce}=S;let we;for(let qe=B.depth-1;qe>0;qe--){const jt=B.node(qe);if((jt.type===T||jt.type===W)&&(we=qe),jt.type!==T&&jt.type!==W&&jt.type!==ce)break}return we})(jt.$to,Oo);let fr=function va(B,S,T,W,ce,we){we||(we=B.schema.nodes.listItem);let qe=!1;return ce.doc.nodesBetween(S,T,(jt,_n)=>{if(!qe&&jt.type===we&&_n>S){qe=!0;let bi=W+3;for(;bi>W+2;){const qi=ce.doc.resolve(ce.mapping.map(_n));bi=qi.depth;const Oo=ce.doc.resolve(ce.mapping.map(_n+jt.textContent.length)),rr=new Ss(qi,Oo);ce=Wl(B,rr,ce,we)}}}),ce}(B,jt.$to.pos,jt.$to.end(rr),rr,T.state.tr,Oo.listItem);return fr=function bc(B,S,T){const{from:W,to:ce}=B.selection,{paragraph:we,heading:qe}=B.schema.nodes,jt=[];S.doc.nodesBetween(W,ce,(_n,bi)=>{(_n.type===we||_n.type===qe)&&jt.push({node:_n,pos:bi})});for(let _n=jt.length-1;_n>=0;_n--){const bi=jt[_n],qi=S.doc.resolve(S.mapping.map(bi.pos));if(qi.depth>0){let Oo;Oo=S.doc.resolve(S.mapping.map(bi.node.textContent&&bi.node.textContent.length>0?bi.pos+bi.node.textContent.length:bi.pos+1));const rr=qi.blockRange(Oo);rr&&S.lift(rr,yc(B.schema,qi,T))}}return S}(B,fr,W),fr.setMeta("commandName",ce),S(fr),!0}};function Uh(B,S,T){return th(B,S,T,Object.assign({listType:jr.listType},jr.types))}function Jc(B,S,T){return th(B,S,T,Object.assign({listType:Fr.listType},Fr.types))}const cd=(B,S)=>({name:B,value:S}),Cd=[{node:"paragraph",style:[cd("text-align","left")]},{node:"heading",style:[cd("text-align","left")]},{node:"table_caption_external",style:[cd("text-align","left")]}],yu=[{node:"paragraph",style:[cd("text-align","right")]},{node:"heading",style:[cd("text-align","right")]},{node:"table_caption_external",style:[cd("text-align","right")]}],bu=[{node:"paragraph",style:[cd("text-align","center")]},{node:"heading",style:[cd("text-align","center")]},{node:"table_caption_external",style:[cd("text-align","center")]}],nu=[{node:"paragraph",style:[cd("text-align","justify")]},{node:"heading",style:[cd("text-align","justify")]},{node:"table_caption_external",style:[cd("text-align","justify")]}],Zu=[{node:"paragraph",style:[cd("text-align","")]},{node:"heading",style:[cd("text-align","")]},{node:"table_caption_external",style:[cd("text-align","")]}],mc=function(B){for(var S=0;;S++)if(!(B=B.previousSibling))return S},xd=function(B){let S=B.assignedSlot||B.parentNode;return S&&11==S.nodeType?S.host:S};let fu=null;const Fl=function(B,S,T){let W=fu||(fu=document.createRange());return W.setEnd(B,T??B.nodeValue.length),W.setStart(B,S||0),W},Jd=function(B,S,T,W){return T&&(gd(B,S,T,W,-1)||gd(B,S,T,W,1))},Jl=/^(img|br|input|textarea|hr)$/i;function gd(B,S,T,W,ce){for(;;){if(B==T&&S==W)return!0;if(S==(ce<0?0:dd(B))){let we=B.parentNode;if(!we||1!=we.nodeType||ih(B)||Jl.test(B.nodeName)||"false"==B.contentEditable)return!1;S=mc(B)+(ce<0?0:1),B=we}else{if(1!=B.nodeType)return!1;if("false"==(B=B.childNodes[S+(ce<0?-1:0)]).contentEditable)return!1;S=ce<0?dd(B):0}}}function dd(B){return 3==B.nodeType?B.nodeValue.length:B.childNodes.length}function ih(B){let S;for(let T=B;T&&!(S=T.pmViewDesc);T=T.parentNode);return S&&S.node&&S.node.isBlock&&(S.dom==B||S.contentDOM==B)}const Cu=function(B){return B.focusNode&&Jd(B.focusNode,B.focusOffset,B.anchorNode,B.anchorOffset)};function id(B,S){let T=document.createEvent("Event");return T.initEvent("keydown",!0,!0),T.keyCode=B,T.key=T.code=S,T}const ql=typeof navigator<"u"?navigator:null,Ku=typeof document<"u"?document:null,od=ql&&ql.userAgent||"",Ic=/Edge\/(\d+)/.exec(od),Gd=/MSIE \d/.exec(od),$d=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(od),dc=!!(Gd||$d||Ic),$c=Gd?document.documentMode:$d?+$d[1]:Ic?+Ic[1]:0,oc=!dc&&/gecko\/(\d+)/i.test(od);oc&&/Firefox\/(\d+)/.exec(od);const Hd=!dc&&/Chrome\/(\d+)/.exec(od),Rc=!!Hd,_d=Hd?+Hd[1]:0,rc=!dc&&!!ql&&/Apple Computer/.test(ql.vendor),Di=rc&&(/Mobile\/\w+/.test(od)||!!ql&&ql.maxTouchPoints>2),uo=Di||!!ql&&/Mac/.test(ql.platform),Wo=!!ql&&/Win/.test(ql.platform),vr=/Android \d/.test(od),Jr=!!Ku&&"webkitFontSmoothing"in Ku.documentElement.style,ns=Jr?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function vs(B){return{left:0,right:B.documentElement.clientWidth,top:0,bottom:B.documentElement.clientHeight}}function Ns(B,S){return"number"==typeof B?B:B[S]}function Is(B){let S=B.getBoundingClientRect();return{left:S.left,right:S.left+B.clientWidth*(S.width/B.offsetWidth||1),top:S.top,bottom:S.top+B.clientHeight*(S.height/B.offsetHeight||1)}}function qs(B,S,T){let W=B.someProp("scrollThreshold")||0,ce=B.someProp("scrollMargin")||5,we=B.dom.ownerDocument;for(let qe=T||B.dom;qe;qe=xd(qe)){if(1!=qe.nodeType)continue;let jt=qe,_n=jt==we.body,bi=_n?vs(we):Is(jt),qi=0,Oo=0;if(S.top<bi.top+Ns(W,"top")?Oo=-(bi.top-S.top+Ns(ce,"top")):S.bottom>bi.bottom-Ns(W,"bottom")&&(Oo=S.bottom-bi.bottom+Ns(ce,"bottom")),S.left<bi.left+Ns(W,"left")?qi=-(bi.left-S.left+Ns(ce,"left")):S.right>bi.right-Ns(W,"right")&&(qi=S.right-bi.right+Ns(ce,"right")),qi||Oo)if(_n)we.defaultView.scrollBy(qi,Oo);else{let rr=jt.scrollLeft,fr=jt.scrollTop;Oo&&(jt.scrollTop+=Oo),qi&&(jt.scrollLeft+=qi);let Gr=jt.scrollLeft-rr,As=jt.scrollTop-fr;S={left:S.left-Gr,top:S.top-As,right:S.right-Gr,bottom:S.bottom-As}}if(_n)break}}function ye(B){let S=[],T=B.ownerDocument;for(let W=B;W&&(S.push({dom:W,top:W.scrollTop,left:W.scrollLeft}),B!=T);W=xd(W));return S}function be(B,S){for(let T=0;T<B.length;T++){let{dom:W,top:ce,left:we}=B[T];W.scrollTop!=ce+S&&(W.scrollTop=ce+S),W.scrollLeft!=we&&(W.scrollLeft=we)}}let st=null;function _o(B,S){let T,ce,_n,bi,W=2e8,we=0,qe=S.top,jt=S.top;for(let qi=B.firstChild,Oo=0;qi;qi=qi.nextSibling,Oo++){let rr;if(1==qi.nodeType)rr=qi.getClientRects();else{if(3!=qi.nodeType)continue;rr=Fl(qi).getClientRects()}for(let fr=0;fr<rr.length;fr++){let Gr=rr[fr];if(Gr.top<=qe&&Gr.bottom>=jt){qe=Math.max(Gr.bottom,qe),jt=Math.min(Gr.top,jt);let As=Gr.left>S.left?Gr.left-S.left:Gr.right<S.left?S.left-Gr.right:0;if(As<W){T=qi,W=As,ce=As&&3==T.nodeType?{left:Gr.right<S.left?Gr.right:Gr.left,top:S.top}:S,1==qi.nodeType&&As&&(we=Oo+(S.left>=(Gr.left+Gr.right)/2?1:0));continue}}else Gr.top>S.top&&!_n&&Gr.left<=S.left&&Gr.right>=S.left&&(_n=qi,bi={left:Math.max(Gr.left,Math.min(Gr.right,S.left)),top:Gr.top});!T&&(S.left>=Gr.right&&S.top>=Gr.top||S.left>=Gr.left&&S.top>=Gr.bottom)&&(we=Oo+1)}}return!T&&_n&&(T=_n,ce=bi,W=0),T&&3==T.nodeType?function gr(B,S){let T=B.nodeValue.length,W=document.createRange();for(let ce=0;ce<T;ce++){W.setEnd(B,ce+1),W.setStart(B,ce);let we=ue(W,1);if(we.top!=we.bottom&&ds(S,we))return{node:B,offset:ce+(S.left>=(we.left+we.right)/2?1:0)}}return{node:B,offset:0}}(T,ce):!T||W&&1==T.nodeType?{node:B,offset:we}:_o(T,ce)}function ds(B,S){return B.left>=S.left-1&&B.left<=S.right+1&&B.top>=S.top-1&&B.top<=S.bottom+1}function Pe(B,S,T){let W=B.childNodes.length;if(W&&T.top<T.bottom)for(let ce=Math.max(0,Math.min(W-1,Math.floor(W*(S.top-T.top)/(T.bottom-T.top))-2)),we=ce;;){let qe=B.childNodes[we];if(1==qe.nodeType){let jt=qe.getClientRects();for(let _n=0;_n<jt.length;_n++){let bi=jt[_n];if(ds(S,bi))return Pe(qe,S,bi)}}if((we=(we+1)%W)==ce)break}return B}function Tn(B,S){let W,T=B.dom.ownerDocument,ce=0,we=function ud(B,S,T){if(B.caretPositionFromPoint)try{let W=B.caretPositionFromPoint(S,T);if(W)return{node:W.offsetNode,offset:W.offset}}catch{}if(B.caretRangeFromPoint){let W=B.caretRangeFromPoint(S,T);if(W)return{node:W.startContainer,offset:W.startOffset}}}(T,S.left,S.top);we&&({node:W,offset:ce}=we);let jt,qe=(B.root.elementFromPoint?B.root:T).elementFromPoint(S.left,S.top);if(!qe||!B.dom.contains(1!=qe.nodeType?qe.parentNode:qe)){let bi=B.dom.getBoundingClientRect();if(!ds(S,bi)||(qe=Pe(B.dom,S,bi),!qe))return null}if(rc)for(let bi=qe;W&&bi;bi=xd(bi))bi.draggable&&(W=void 0);if(qe=function us(B,S){let T=B.parentNode;return T&&/^li$/i.test(T.nodeName)&&S.left<B.getBoundingClientRect().left?T:B}(qe,S),W){if(oc&&1==W.nodeType&&(ce=Math.min(ce,W.childNodes.length),ce<W.childNodes.length)){let qi,bi=W.childNodes[ce];"IMG"==bi.nodeName&&(qi=bi.getBoundingClientRect()).right<=S.left&&qi.bottom>S.top&&ce++}W==B.dom&&ce==W.childNodes.length-1&&1==W.lastChild.nodeType&&S.top>W.lastChild.getBoundingClientRect().bottom?jt=B.state.doc.content.size:(0==ce||1!=W.nodeType||"BR"!=W.childNodes[ce-1].nodeName)&&(jt=function Ta(B,S,T,W){let ce=-1;for(let we=S,qe=!1;we!=B.dom;){let jt=B.docView.nearestDesc(we,!0);if(!jt)return null;if(1==jt.dom.nodeType&&(jt.node.isBlock&&jt.parent&&!qe||!jt.contentDOM)){let _n=jt.dom.getBoundingClientRect();if(jt.node.isBlock&&jt.parent&&!qe&&(qe=!0,_n.left>W.left||_n.top>W.top?ce=jt.posBefore:(_n.right<W.left||_n.bottom<W.top)&&(ce=jt.posAfter)),!jt.contentDOM&&ce<0)return(jt.node.isBlock?W.top<(_n.top+_n.bottom)/2:W.left<(_n.left+_n.right)/2)?jt.posBefore:jt.posAfter}we=jt.dom.parentNode}return ce>-1?ce:B.docView.posFromDOM(S,T,-1)}(B,W,ce,S))}null==jt&&(jt=function zs(B,S,T){let{node:W,offset:ce}=_o(S,T),we=-1;if(1==W.nodeType&&!W.firstChild){let qe=W.getBoundingClientRect();we=qe.left!=qe.right&&T.left>(qe.left+qe.right)/2?1:-1}return B.docView.posFromDOM(W,ce,we)}(B,qe,S));let _n=B.docView.nearestDesc(qe,!0);return{pos:jt,inside:_n?_n.posAtStart-_n.border:-1}}function v(B){return B.top<B.bottom||B.left<B.right}function ue(B,S){let T=B.getClientRects();if(T.length){let W=T[S<0?0:T.length-1];if(v(W))return W}return Array.prototype.find.call(T,v)||B.getBoundingClientRect()}const dt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function In(B,S,T){let{node:W,offset:ce,atom:we}=B.docView.domFromPos(S,T<0?-1:1),qe=Jr||oc;if(3==W.nodeType){if(!qe||!dt.test(W.nodeValue)&&(T<0?ce:ce!=W.nodeValue.length)){let _n=ce,bi=ce,qi=T<0?1:-1;return T<0&&!ce?(bi++,qi=-1):T>=0&&ce==W.nodeValue.length?(_n--,qi=1):T<0?_n--:bi++,er(ue(Fl(W,_n,bi),qi),qi<0)}{let _n=ue(Fl(W,ce,ce),T);if(oc&&ce&&/\s/.test(W.nodeValue[ce-1])&&ce<W.nodeValue.length){let bi=ue(Fl(W,ce-1,ce-1),-1);if(bi.top==_n.top){let qi=ue(Fl(W,ce,ce+1),-1);if(qi.top!=_n.top)return er(qi,qi.left<bi.left)}}return _n}}if(!B.state.doc.resolve(S-(we||0)).parent.inlineContent){if(null==we&&ce&&(T<0||ce==dd(W))){let _n=W.childNodes[ce-1];if(1==_n.nodeType)return Br(_n.getBoundingClientRect(),!1)}if(null==we&&ce<dd(W)){let _n=W.childNodes[ce];if(1==_n.nodeType)return Br(_n.getBoundingClientRect(),!0)}return Br(W.getBoundingClientRect(),T>=0)}if(null==we&&ce&&(T<0||ce==dd(W))){let _n=W.childNodes[ce-1],bi=3==_n.nodeType?Fl(_n,dd(_n)-(qe?0:1)):1!=_n.nodeType||"BR"==_n.nodeName&&_n.nextSibling?null:_n;if(bi)return er(ue(bi,1),!1)}if(null==we&&ce<dd(W)){let _n=W.childNodes[ce];for(;_n.pmViewDesc&&_n.pmViewDesc.ignoreForCoords;)_n=_n.nextSibling;let bi=_n?3==_n.nodeType?Fl(_n,0,qe?0:1):1==_n.nodeType?_n:null:null;if(bi)return er(ue(bi,-1),!0)}return er(ue(3==W.nodeType?Fl(W):W,-T),T>=0)}function er(B,S){if(0==B.width)return B;let T=S?B.left:B.right;return{top:B.top,bottom:B.bottom,left:T,right:T}}function Br(B,S){if(0==B.height)return B;let T=S?B.top:B.bottom;return{top:T,bottom:T,left:B.left,right:B.right}}function es(B,S,T){let W=B.state,ce=B.root.activeElement;W!=S&&B.updateState(S),ce!=B.dom&&B.focus();try{return T()}finally{W!=S&&B.updateState(W),ce!=B.dom&&ce&&ce.focus()}}const xa=/[\u0590-\u08ac]/;let Aa=null,vl=null,ml=!1;class xu{constructor(S,T,W,ce){this.parent=S,this.children=T,this.dom=W,this.contentDOM=ce,this.dirty=0,W.pmViewDesc=this}matchesWidget(S){return!1}matchesMark(S){return!1}matchesNode(S,T,W){return!1}matchesHack(S){return!1}parseRule(){return null}stopEvent(S){return!1}get size(){let S=0;for(let T=0;T<this.children.length;T++)S+=this.children[T].size;return S}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let S=0;S<this.children.length;S++)this.children[S].destroy()}posBeforeChild(S){for(let T=0,W=this.posAtStart;;T++){let ce=this.children[T];if(ce==S)return W;W+=ce.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(S,T,W){if(this.contentDOM&&this.contentDOM.contains(1==S.nodeType?S:S.parentNode)){if(W<0){let we,qe;if(S==this.contentDOM)we=S.childNodes[T-1];else{for(;S.parentNode!=this.contentDOM;)S=S.parentNode;we=S.previousSibling}for(;we&&(!(qe=we.pmViewDesc)||qe.parent!=this);)we=we.previousSibling;return we?this.posBeforeChild(qe)+qe.size:this.posAtStart}{let we,qe;if(S==this.contentDOM)we=S.childNodes[T];else{for(;S.parentNode!=this.contentDOM;)S=S.parentNode;we=S.nextSibling}for(;we&&(!(qe=we.pmViewDesc)||qe.parent!=this);)we=we.nextSibling;return we?this.posBeforeChild(qe):this.posAtEnd}}let ce;if(S==this.dom&&this.contentDOM)ce=T>mc(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))ce=2&S.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==T)for(let we=S;;we=we.parentNode){if(we==this.dom){ce=!1;break}if(we.previousSibling)break}if(null==ce&&T==S.childNodes.length)for(let we=S;;we=we.parentNode){if(we==this.dom){ce=!0;break}if(we.nextSibling)break}}return ce??W>0?this.posAtEnd:this.posAtStart}nearestDesc(S,T=!1){for(let W=!0,ce=S;ce;ce=ce.parentNode){let qe,we=this.getDesc(ce);if(we&&(!T||we.node)){if(!W||!(qe=we.nodeDOM)||(1==qe.nodeType?qe.contains(1==S.nodeType?S:S.parentNode):qe==S))return we;W=!1}}}getDesc(S){let T=S.pmViewDesc;for(let W=T;W;W=W.parent)if(W==this)return T}posFromDOM(S,T,W){for(let ce=S;ce;ce=ce.parentNode){let we=this.getDesc(ce);if(we)return we.localPosFromDOM(S,T,W)}return-1}descAt(S){for(let T=0,W=0;T<this.children.length;T++){let ce=this.children[T],we=W+ce.size;if(W==S&&we!=W){for(;!ce.border&&ce.children.length;)ce=ce.children[0];return ce}if(S<we)return ce.descAt(S-W-ce.border);W=we}}domFromPos(S,T){if(!this.contentDOM)return{node:this.dom,offset:0,atom:S+1};let W=0,ce=0;for(let we=0;W<this.children.length;W++){let qe=this.children[W],jt=we+qe.size;if(jt>S||qe instanceof Tf){ce=S-we;break}we=jt}if(ce)return this.children[W].domFromPos(ce-this.children[W].border,T);for(let we;W&&!(we=this.children[W-1]).size&&we instanceof iu&&we.side>=0;W--);if(T<=0){let we,qe=!0;for(;we=W?this.children[W-1]:null,we&&we.dom.parentNode!=this.contentDOM;W--,qe=!1);return we&&T&&qe&&!we.border&&!we.domAtom?we.domFromPos(we.size,T):{node:this.contentDOM,offset:we?mc(we.dom)+1:0}}{let we,qe=!0;for(;we=W<this.children.length?this.children[W]:null,we&&we.dom.parentNode!=this.contentDOM;W++,qe=!1);return we&&qe&&!we.border&&!we.domAtom?we.domFromPos(0,T):{node:this.contentDOM,offset:we?mc(we.dom):this.contentDOM.childNodes.length}}}parseRange(S,T,W=0){if(0==this.children.length)return{node:this.contentDOM,from:S,to:T,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let ce=-1,we=-1;for(let qe=W,jt=0;;jt++){let _n=this.children[jt],bi=qe+_n.size;if(-1==ce&&S<=bi){let qi=qe+_n.border;if(S>=qi&&T<=bi-_n.border&&_n.node&&_n.contentDOM&&this.contentDOM.contains(_n.contentDOM))return _n.parseRange(S,T,qi);S=qe;for(let Oo=jt;Oo>0;Oo--){let rr=this.children[Oo-1];if(rr.size&&rr.dom.parentNode==this.contentDOM&&!rr.emptyChildAt(1)){ce=mc(rr.dom)+1;break}S-=rr.size}-1==ce&&(ce=0)}if(ce>-1&&(bi>T||jt==this.children.length-1)){T=bi;for(let qi=jt+1;qi<this.children.length;qi++){let Oo=this.children[qi];if(Oo.size&&Oo.dom.parentNode==this.contentDOM&&!Oo.emptyChildAt(-1)){we=mc(Oo.dom);break}T+=Oo.size}-1==we&&(we=this.contentDOM.childNodes.length);break}qe=bi}return{node:this.contentDOM,from:S,to:T,fromOffset:ce,toOffset:we}}emptyChildAt(S){if(this.border||!this.contentDOM||!this.children.length)return!1;let T=this.children[S<0?0:this.children.length-1];return 0==T.size||T.emptyChildAt(S)}domAfterPos(S){let{node:T,offset:W}=this.domFromPos(S,0);if(1!=T.nodeType||W==T.childNodes.length)throw new RangeError("No node after pos "+S);return T.childNodes[W]}setSelection(S,T,W,ce=!1){let we=Math.min(S,T),qe=Math.max(S,T);for(let rr=0,fr=0;rr<this.children.length;rr++){let Gr=this.children[rr],As=fr+Gr.size;if(we>fr&&qe<As)return Gr.setSelection(S-fr-Gr.border,T-fr-Gr.border,W,ce);fr=As}let jt=this.domFromPos(S,S?-1:1),_n=T==S?jt:this.domFromPos(T,T?-1:1),bi=W.getSelection(),qi=!1;if((oc||rc)&&S==T){let{node:rr,offset:fr}=jt;if(3==rr.nodeType){if(qi=!(!fr||"\n"!=rr.nodeValue[fr-1]),qi&&fr==rr.nodeValue.length)for(let As,Gr=rr;Gr;Gr=Gr.parentNode){if(As=Gr.nextSibling){"BR"==As.nodeName&&(jt=_n={node:As.parentNode,offset:mc(As)+1});break}let ka=Gr.pmViewDesc;if(ka&&ka.node&&ka.node.isBlock)break}}else{let Gr=rr.childNodes[fr-1];qi=Gr&&("BR"==Gr.nodeName||"false"==Gr.contentEditable)}}if(oc&&bi.focusNode&&bi.focusNode!=_n.node&&1==bi.focusNode.nodeType){let rr=bi.focusNode.childNodes[bi.focusOffset];rr&&"false"==rr.contentEditable&&(ce=!0)}if(!(ce||qi&&rc)&&Jd(jt.node,jt.offset,bi.anchorNode,bi.anchorOffset)&&Jd(_n.node,_n.offset,bi.focusNode,bi.focusOffset))return;let Oo=!1;if((bi.extend||S==T)&&!qi){bi.collapse(jt.node,jt.offset);try{S!=T&&bi.extend(_n.node,_n.offset),Oo=!0}catch{}}if(!Oo){if(S>T){let fr=jt;jt=_n,_n=fr}let rr=document.createRange();rr.setEnd(_n.node,_n.offset),rr.setStart(jt.node,jt.offset),bi.removeAllRanges(),bi.addRange(rr)}}ignoreMutation(S){return!this.contentDOM&&"selection"!=S.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(S,T){for(let W=0,ce=0;ce<this.children.length;ce++){let we=this.children[ce],qe=W+we.size;if(W==qe?S<=qe&&T>=W:S<qe&&T>W){let jt=W+we.border,_n=qe-we.border;if(S>=jt&&T<=_n)return this.dirty=S==W||T==qe?2:1,void(S!=jt||T!=_n||!we.contentLost&&we.dom.parentNode==this.contentDOM?we.markDirty(S-jt,T-jt):we.dirty=3);we.dirty=we.dom!=we.contentDOM||we.dom.parentNode!=this.contentDOM||we.children.length?3:2}W=qe}this.dirty=2}markParentsDirty(){let S=1;for(let T=this.parent;T;T=T.parent,S++){let W=1==S?2:1;T.dirty<W&&(T.dirty=W)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class iu extends xu{constructor(S,T,W,ce){let we,qe=T.type.toDOM;if("function"==typeof qe&&(qe=qe(W,()=>we?we.parent?we.parent.posBeforeChild(we):void 0:ce)),!T.type.spec.raw){if(1!=qe.nodeType){let jt=document.createElement("span");jt.appendChild(qe),qe=jt}qe.contentEditable="false",qe.classList.add("ProseMirror-widget")}super(S,[],qe,null),this.widget=T,this.widget=T,we=this}matchesWidget(S){return 0==this.dirty&&S.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(S){let T=this.widget.spec.stopEvent;return!!T&&T(S)}ignoreMutation(S){return"selection"!=S.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class ku extends xu{constructor(S,T,W,ce){super(S,[],T,null),this.textDOM=W,this.text=ce}get size(){return this.text.length}localPosFromDOM(S,T){return S!=this.textDOM?this.posAtStart+(T?this.size:0):this.posAtStart+T}domFromPos(S){return{node:this.textDOM,offset:S}}ignoreMutation(S){return"characterData"===S.type&&S.target.nodeValue==S.oldValue}}class Lc extends xu{constructor(S,T,W,ce){super(S,[],W,ce),this.mark=T}static create(S,T,W,ce){let we=ce.nodeViews[T.type.name],qe=we&&we(T,ce,W);return(!qe||!qe.dom)&&(qe=tt.renderSpec(document,T.type.spec.toDOM(T,W))),new Lc(S,T,qe.dom,qe.contentDOM||qe.dom)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM||void 0}}matchesMark(S){return 3!=this.dirty&&this.mark.eq(S)}markDirty(S,T){if(super.markDirty(S,T),0!=this.dirty){let W=this.parent;for(;!W.node;)W=W.parent;W.dirty<this.dirty&&(W.dirty=this.dirty),this.dirty=0}}slice(S,T,W){let ce=Lc.create(this.parent,this.mark,!0,W),we=this.children,qe=this.size;T<qe&&(we=wh(we,T,qe,W)),S>0&&(we=wh(we,0,S,W));for(let jt=0;jt<we.length;jt++)we[jt].parent=ce;return ce.children=we,ce}}class ul extends xu{constructor(S,T,W,ce,we,qe,jt,_n,bi){super(S,[],we,qe),this.node=T,this.outerDeco=W,this.innerDeco=ce,this.nodeDOM=jt}static create(S,T,W,ce,we,qe){let _n,jt=we.nodeViews[T.type.name],bi=jt&&jt(T,we,()=>_n?_n.parent?_n.parent.posBeforeChild(_n):void 0:qe,W,ce),qi=bi&&bi.dom,Oo=bi&&bi.contentDOM;if(T.isText)if(qi){if(3!=qi.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else qi=document.createTextNode(T.text);else qi||({dom:qi,contentDOM:Oo}=tt.renderSpec(document,T.type.spec.toDOM(T)));!Oo&&!T.isText&&"BR"!=qi.nodeName&&(qi.hasAttribute("contenteditable")||(qi.contentEditable="false"),T.type.spec.draggable&&(qi.draggable=!0));let rr=qi;return qi=vd(qi,W,T),bi?_n=new Ff(S,T,W,ce,qi,Oo||null,rr,bi,we,qe+1):T.isText?new uf(S,T,W,ce,qi,rr,we):new ul(S,T,W,ce,qi,Oo||null,rr,we,qe+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let S={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(S.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let T=this.children.length-1;T>=0;T--){let W=this.children[T];if(this.dom.contains(W.dom.parentNode)){S.contentElement=W.dom.parentNode;break}}S.contentElement||(S.getContent=()=>E.empty)}else S.contentElement=this.contentDOM;else S.getContent=()=>this.node.content;return S}matchesNode(S,T,W){return 0==this.dirty&&S.eq(this.node)&&hd(T,this.outerDeco)&&W.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(S,T){let W=this.node.inlineContent,ce=T,we=S.composing?this.localCompositionInfo(S,T):null,qe=we&&we.pos>-1?we:null,jt=we&&we.pos<0,_n=new Iu(this,qe&&qe.node,S);(function Xh(B,S,T,W){let ce=S.locals(B),we=0;if(0==ce.length){for(let bi=0;bi<B.childCount;bi++){let qi=B.child(bi);W(qi,ce,S.forChild(we,qi),bi),we+=qi.nodeSize}return}let qe=0,jt=[],_n=null;for(let bi=0;;){if(qe<ce.length&&ce[qe].to==we){let As,Gr=ce[qe++];for(;qe<ce.length&&ce[qe].to==we;)(As||(As=[Gr])).push(ce[qe++]);if(As){As.sort(xh);for(let ka=0;ka<As.length;ka++)T(As[ka],bi,!!_n)}else T(Gr,bi,!!_n)}let qi,Oo;if(_n)Oo=-1,qi=_n,_n=null;else{if(!(bi<B.childCount))break;Oo=bi,qi=B.child(bi++)}for(let Gr=0;Gr<jt.length;Gr++)jt[Gr].to<=we&&jt.splice(Gr--,1);for(;qe<ce.length&&ce[qe].from<=we&&ce[qe].to>we;)jt.push(ce[qe++]);let rr=we+qi.nodeSize;if(qi.isText){let Gr=rr;qe<ce.length&&ce[qe].from<Gr&&(Gr=ce[qe].from);for(let As=0;As<jt.length;As++)jt[As].to<Gr&&(Gr=jt[As].to);Gr<rr&&(_n=qi.cut(Gr-we),qi=qi.cut(0,Gr-we),rr=Gr,Oo=-1)}W(qi,qi.isInline&&!qi.isLeaf?jt.filter(Gr=>!Gr.inline):jt.slice(),S.forChild(we,qi),Oo),we=rr}})(this.node,this.innerDeco,(bi,qi,Oo)=>{bi.spec.marks?_n.syncToMarks(bi.spec.marks,W,S):bi.type.side>=0&&!Oo&&_n.syncToMarks(qi==this.node.childCount?D.none:this.node.child(qi).marks,W,S),_n.placeWidget(bi,S,ce)},(bi,qi,Oo,rr)=>{let fr;_n.syncToMarks(bi.marks,W,S),_n.findNodeMatch(bi,qi,Oo,rr)||jt&&S.state.selection.from>ce&&S.state.selection.to<ce+bi.nodeSize&&(fr=_n.findIndexWithChild(we.node))>-1&&_n.updateNodeAt(bi,qi,Oo,fr,S)||_n.updateNextNode(bi,qi,Oo,S,rr,ce)||_n.addNode(bi,qi,Oo,S,ce),ce+=bi.nodeSize}),_n.syncToMarks([],W,S),this.node.isTextblock&&_n.addTextblockHacks(),_n.destroyRest(),(_n.changed||2==this.dirty)&&(qe&&this.protectLocalComposition(S,qe),hf(this.contentDOM,this.children,S),Di&&function Sh(B){if("UL"==B.nodeName||"OL"==B.nodeName){let S=B.style.cssText;B.style.cssText=S+"; list-style: square !important",window.getComputedStyle(B),B.style.cssText=S}}(this.dom))}localCompositionInfo(S,T){let{from:W,to:ce}=S.state.selection;if(!(S.state.selection instanceof Ss)||W<T||ce>T+this.node.content.size)return null;let we=S.domSelectionRange(),qe=function pf(B,S){for(;;){if(3==B.nodeType)return B;if(1==B.nodeType&&S>0){if(B.childNodes.length>S&&3==B.childNodes[S].nodeType)return B.childNodes[S];S=dd(B=B.childNodes[S-1])}else{if(!(1==B.nodeType&&S<B.childNodes.length))return null;B=B.childNodes[S],S=0}}}(we.focusNode,we.focusOffset);if(!qe||!this.dom.contains(qe.parentNode))return null;if(this.node.inlineContent){let jt=qe.nodeValue,_n=function Nc(B,S,T,W){for(let ce=0,we=0;ce<B.childCount&&we<=W;){let qe=B.child(ce++),jt=we;if(we+=qe.nodeSize,!qe.isText)continue;let _n=qe.text;for(;ce<B.childCount;){let bi=B.child(ce++);if(we+=bi.nodeSize,!bi.isText)break;_n+=bi.text}if(we>=T){let bi=jt<W?_n.lastIndexOf(S,W-jt-1):-1;if(bi>=0&&bi+S.length+jt>=T)return jt+bi;if(T==W&&_n.length>=W+S.length-jt&&_n.slice(W-jt,W-jt+S.length)==S)return W}}return-1}(this.node.content,jt,W-T,ce-T);return _n<0?null:{node:qe,pos:_n,text:jt}}return{node:qe,pos:-1,text:""}}protectLocalComposition(S,{node:T,pos:W,text:ce}){if(this.getDesc(T))return;let we=T;for(;we.parentNode!=this.contentDOM;we=we.parentNode){for(;we.previousSibling;)we.parentNode.removeChild(we.previousSibling);for(;we.nextSibling;)we.parentNode.removeChild(we.nextSibling);we.pmViewDesc&&(we.pmViewDesc=void 0)}let qe=new ku(this,we,T,ce);S.input.compositionNodes.push(qe),this.children=wh(this.children,W,W+ce.length,S,qe)}update(S,T,W,ce){return!(3==this.dirty||!S.sameMarkup(this.node)||(this.updateInner(S,T,W,ce),0))}updateInner(S,T,W,ce){this.updateOuterDeco(T),this.node=S,this.innerDeco=W,this.contentDOM&&this.updateChildren(ce,this.posAtStart),this.dirty=0}updateOuterDeco(S){if(hd(S,this.outerDeco))return;let T=1!=this.nodeDOM.nodeType,W=this.dom;this.dom=mh(this.dom,this.nodeDOM,Ch(this.outerDeco,this.node,T),Ch(S,this.node,T)),this.dom!=W&&(W.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=S}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function Mc(B,S,T,W,ce){vd(W,S,B);let we=new ul(void 0,B,S,T,W,W,W,ce,0);return we.contentDOM&&we.updateChildren(ce,0),we}class uf extends ul{constructor(S,T,W,ce,we,qe,jt){super(S,T,W,ce,we,null,qe,jt,0)}parseRule(){let S=this.nodeDOM.parentNode;for(;S&&S!=this.dom&&!S.pmIsDeco;)S=S.parentNode;return{skip:S||!0}}update(S,T,W,ce){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!S.sameMarkup(this.node)||(this.updateOuterDeco(T),(0!=this.dirty||S.text!=this.node.text)&&S.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=S.text,ce.trackWrites==this.nodeDOM&&(ce.trackWrites=null)),this.node=S,this.dirty=0,0))}inParent(){let S=this.parent.contentDOM;for(let T=this.nodeDOM;T;T=T.parentNode)if(T==S)return!0;return!1}domFromPos(S){return{node:this.nodeDOM,offset:S}}localPosFromDOM(S,T,W){return S==this.nodeDOM?this.posAtStart+Math.min(T,this.node.text.length):super.localPosFromDOM(S,T,W)}ignoreMutation(S){return"characterData"!=S.type&&"selection"!=S.type}slice(S,T,W){let ce=this.node.cut(S,T),we=document.createTextNode(ce.text);return new uf(this.parent,ce,this.outerDeco,this.innerDeco,we,we,W)}markDirty(S,T){super.markDirty(S,T),this.dom!=this.nodeDOM&&(0==S||T==this.nodeDOM.nodeValue.length)&&(this.dirty=3)}get domAtom(){return!1}}class Tf extends xu{parseRule(){return{ignore:!0}}matchesHack(S){return 0==this.dirty&&this.dom.nodeName==S}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class Ff extends ul{constructor(S,T,W,ce,we,qe,jt,_n,bi,qi){super(S,T,W,ce,we,qe,jt,bi,qi),this.spec=_n}update(S,T,W,ce){if(3==this.dirty)return!1;if(this.spec.update){let we=this.spec.update(S,T,W);return we&&this.updateInner(S,T,W,ce),we}return!(!this.contentDOM&&!S.isLeaf)&&super.update(S,T,W,ce)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(S,T,W,ce){this.spec.setSelection?this.spec.setSelection(S,T,W):super.setSelection(S,T,W,ce)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(S){return!!this.spec.stopEvent&&this.spec.stopEvent(S)}ignoreMutation(S){return this.spec.ignoreMutation?this.spec.ignoreMutation(S):super.ignoreMutation(S)}}function hf(B,S,T){let W=B.firstChild,ce=!1;for(let we=0;we<S.length;we++){let qe=S[we],jt=qe.dom;if(jt.parentNode==B){for(;jt!=W;)W=ff(W),ce=!0;W=W.nextSibling}else ce=!0,B.insertBefore(jt,W);if(qe instanceof Lc){let _n=W?W.previousSibling:B.lastChild;hf(qe.contentDOM,qe.children,T),W=_n?_n.nextSibling:B.firstChild}}for(;W;)W=ff(W),ce=!0;ce&&T.trackWrites==B&&(T.trackWrites=null)}const Vd=function(B){B&&(this.nodeName=B)};Vd.prototype=Object.create(null);const Fu=[new Vd];function Ch(B,S,T){if(0==B.length)return Fu;let W=T?Fu[0]:new Vd,ce=[W];for(let we=0;we<B.length;we++){let qe=B[we].type.attrs;if(qe){qe.nodeName&&ce.push(W=new Vd(qe.nodeName));for(let jt in qe){let _n=qe[jt];null!=_n&&(T&&1==ce.length&&ce.push(W=new Vd(S.isInline?"span":"div")),"class"==jt?W.class=(W.class?W.class+" ":"")+_n:"style"==jt?W.style=(W.style?W.style+";":"")+_n:"nodeName"!=jt&&(W[jt]=_n))}}}return ce}function mh(B,S,T,W){if(T==Fu&&W==Fu)return S;let ce=S;for(let we=0;we<W.length;we++){let qe=W[we],jt=T[we];if(we){let _n;jt&&jt.nodeName==qe.nodeName&&ce!=B&&(_n=ce.parentNode)&&_n.nodeName.toLowerCase()==qe.nodeName||(_n=document.createElement(qe.nodeName),_n.pmIsDeco=!0,_n.appendChild(ce),jt=Fu[0]),ce=_n}Sd(ce,jt||Fu[0],qe)}return ce}function Sd(B,S,T){for(let W in S)"class"!=W&&"style"!=W&&"nodeName"!=W&&!(W in T)&&B.removeAttribute(W);for(let W in T)"class"!=W&&"style"!=W&&"nodeName"!=W&&T[W]!=S[W]&&B.setAttribute(W,T[W]);if(S.class!=T.class){let W=S.class?S.class.split(" ").filter(Boolean):[],ce=T.class?T.class.split(" ").filter(Boolean):[];for(let we=0;we<W.length;we++)-1==ce.indexOf(W[we])&&B.classList.remove(W[we]);for(let we=0;we<ce.length;we++)-1==W.indexOf(ce[we])&&B.classList.add(ce[we]);0==B.classList.length&&B.removeAttribute("class")}if(S.style!=T.style){if(S.style){let ce,W=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;for(;ce=W.exec(S.style);)B.style.removeProperty(ce[1])}T.style&&(B.style.cssText+=T.style)}}function vd(B,S,T){return mh(B,B,Fu,Ch(S,T,1!=B.nodeType))}function hd(B,S){if(B.length!=S.length)return!1;for(let T=0;T<B.length;T++)if(!B[T].type.eq(S[T].type))return!1;return!0}function ff(B){let S=B.nextSibling;return B.parentNode.removeChild(B),S}class Iu{constructor(S,T,W){this.lock=T,this.view=W,this.index=0,this.stack=[],this.changed=!1,this.top=S,this.preMatch=function Qh(B,S){let T=S,W=T.children.length,ce=B.childCount,we=new Map,qe=[];e:for(;ce>0;){let jt;for(;;)if(W){let bi=T.children[W-1];if(!(bi instanceof Lc)){jt=bi,W--;break}T=bi,W=bi.children.length}else{if(T==S)break e;W=T.parent.children.indexOf(T),T=T.parent}let _n=jt.node;if(_n){if(_n!=B.child(ce-1))break;--ce,we.set(jt,ce),qe.push(jt)}}return{index:ce,matched:we,matches:qe.reverse()}}(S.node.content,S)}destroyBetween(S,T){if(S!=T){for(let W=S;W<T;W++)this.top.children[W].destroy();this.top.children.splice(S,T-S),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(S,T,W){let ce=0,we=this.stack.length>>1,qe=Math.min(we,S.length);for(;ce<qe&&(ce==we-1?this.top:this.stack[ce+1<<1]).matchesMark(S[ce])&&!1!==S[ce].type.spec.spanning;)ce++;for(;ce<we;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),we--;for(;we<S.length;){this.stack.push(this.top,this.index+1);let jt=-1;for(let _n=this.index;_n<Math.min(this.index+3,this.top.children.length);_n++){let bi=this.top.children[_n];if(bi.matchesMark(S[we])&&!this.isLocked(bi.dom)){jt=_n;break}}if(jt>-1)jt>this.index&&(this.changed=!0,this.destroyBetween(this.index,jt)),this.top=this.top.children[this.index];else{let _n=Lc.create(this.top,S[we],T,W);this.top.children.splice(this.index,0,_n),this.top=_n,this.changed=!0}this.index=0,we++}}findNodeMatch(S,T,W,ce){let qe,we=-1;if(ce>=this.preMatch.index&&(qe=this.preMatch.matches[ce-this.preMatch.index]).parent==this.top&&qe.matchesNode(S,T,W))we=this.top.children.indexOf(qe,this.index);else for(let jt=this.index,_n=Math.min(this.top.children.length,jt+5);jt<_n;jt++){let bi=this.top.children[jt];if(bi.matchesNode(S,T,W)&&!this.preMatch.matched.has(bi)){we=jt;break}}return!(we<0||(this.destroyBetween(this.index,we),this.index++,0))}updateNodeAt(S,T,W,ce,we){let qe=this.top.children[ce];return 3==qe.dirty&&qe.dom==qe.contentDOM&&(qe.dirty=2),!!qe.update(S,T,W,we)&&(this.destroyBetween(this.index,ce),this.index++,!0)}findIndexWithChild(S){for(;;){let T=S.parentNode;if(!T)return-1;if(T==this.top.contentDOM){let W=S.pmViewDesc;if(W)for(let ce=this.index;ce<this.top.children.length;ce++)if(this.top.children[ce]==W)return ce;return-1}S=T}}updateNextNode(S,T,W,ce,we,qe){for(let jt=this.index;jt<this.top.children.length;jt++){let _n=this.top.children[jt];if(_n instanceof ul){let bi=this.preMatch.matched.get(_n);if(null!=bi&&bi!=we)return!1;let Oo,qi=_n.dom,rr=this.isLocked(qi)&&!(S.isText&&_n.node&&_n.node.isText&&_n.nodeDOM.nodeValue==S.text&&3!=_n.dirty&&hd(T,_n.outerDeco));if(!rr&&_n.update(S,T,W,ce))return this.destroyBetween(this.index,jt),_n.dom!=qi&&(this.changed=!0),this.index++,!0;if(!rr&&(Oo=this.recreateWrapper(_n,S,T,W,ce,qe)))return this.top.children[this.index]=Oo,Oo.dirty=2,Oo.updateChildren(ce,qe+1),Oo.dirty=0,this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(S,T,W,ce,we,qe){if(S.dirty||T.isAtom||!S.children.length||!S.node.content.eq(T.content))return null;let jt=ul.create(this.top,T,W,ce,we,qe);if(!jt.contentDOM)return null;jt.children=S.children,S.children=[],S.destroy();for(let _n of jt.children)_n.parent=jt;return jt}addNode(S,T,W,ce,we){let qe=ul.create(this.top,S,T,W,ce,we);qe.contentDOM&&qe.updateChildren(ce,we+1),this.top.children.splice(this.index++,0,qe),this.changed=!0}placeWidget(S,T,W){let ce=this.index<this.top.children.length?this.top.children[this.index]:null;if(!ce||!ce.matchesWidget(S)||S!=ce.widget&&ce.widget.type.toDOM.parentNode){let we=new iu(this.top,S,T,W);this.top.children.splice(this.index++,0,we),this.changed=!0}else this.index++}addTextblockHacks(){let S=this.top.children[this.index-1],T=this.top;for(;S instanceof Lc;)T=S,S=T.children[T.children.length-1];(!S||!(S instanceof uf)||/\n$/.test(S.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(S.node.text))&&((rc||Rc)&&S&&"false"==S.dom.contentEditable&&this.addHackNode("IMG",T),this.addHackNode("BR",this.top))}addHackNode(S,T){if(T==this.top&&this.index<T.children.length&&T.children[this.index].matchesHack(S))this.index++;else{let W=document.createElement(S);"IMG"==S&&(W.className="ProseMirror-separator",W.alt=""),"BR"==S&&(W.className="ProseMirror-trailingBreak");let ce=new Tf(this.top,[],W,null);T!=this.top?T.children.push(ce):T.children.splice(this.index++,0,ce),this.changed=!0}}isLocked(S){return this.lock&&(S==this.lock||1==S.nodeType&&S.contains(this.lock.parentNode))}}function xh(B,S){return B.type.side-S.type.side}function wh(B,S,T,W,ce){let we=[];for(let qe=0,jt=0;qe<B.length;qe++){let _n=B[qe],bi=jt,qi=jt+=_n.size;bi>=T||qi<=S?we.push(_n):(bi<S&&we.push(_n.slice(0,S-bi,W)),ce&&(we.push(ce),ce=void 0),qi>T&&we.push(_n.slice(T-bi,_n.size,W)))}return we}function Eh(B,S=null){let T=B.domSelectionRange(),W=B.state.doc;if(!T.focusNode)return null;let ce=B.docView.nearestDesc(T.focusNode),we=ce&&0==ce.size,qe=B.docView.posFromDOM(T.focusNode,T.focusOffset,1);if(qe<0)return null;let _n,bi,jt=W.resolve(qe);if(Cu(T)){for(_n=jt;ce&&!ce.node;)ce=ce.parent;let qi=ce.node;if(ce&&qi.isAtom&&$o.isSelectable(qi)&&ce.parent&&(!qi.isInline||!function gc(B,S,T){for(let W=0==S,ce=S==dd(B);W||ce;){if(B==T)return!0;let we=mc(B);if(!(B=B.parentNode))return!1;W=W&&0==we,ce=ce&&we==dd(B)}}(T.focusNode,T.focusOffset,ce.dom))){let Oo=ce.posBefore;bi=new $o(qe==Oo?jt:W.resolve(Oo))}}else{let qi=B.docView.posFromDOM(T.anchorNode,T.anchorOffset,1);if(qi<0)return null;_n=W.resolve(qi)}return bi||(bi=Bf(B,_n,jt,"pointer"==S||B.state.selection.head<jt.pos&&!we?1:-1)),bi}function oh(B){return B.editable?B.hasFocus():Th(B)&&document.activeElement&&document.activeElement.contains(B.dom)}function yd(B,S=!1){let T=B.state.selection;if(sh(B,T),oh(B)){if(!S&&B.input.mouseDown&&B.input.mouseDown.allowDefault&&Rc){let W=B.domSelectionRange(),ce=B.domObserver.currentSelection;if(W.anchorNode&&ce.anchorNode&&Jd(W.anchorNode,W.anchorOffset,ce.anchorNode,ce.anchorOffset))return B.input.mouseDown.delayedSelectionSync=!0,void B.domObserver.setCurSelection()}if(B.domObserver.disconnectSelection(),B.cursorWrapper)!function rh(B){let S=B.domSelection(),T=document.createRange(),W=B.cursorWrapper.dom,ce="IMG"==W.nodeName;ce?T.setEnd(W.parentNode,mc(W)+1):T.setEnd(W,0),T.collapse(!1),S.removeAllRanges(),S.addRange(T),!ce&&!B.state.selection.visible&&dc&&$c<=11&&(W.disabled=!0,W.disabled=!1)}(B);else{let we,qe,{anchor:W,head:ce}=T;Nd&&!(T instanceof Ss)&&(T.$from.parent.inlineContent||(we=Pp(B,T.from)),!T.empty&&!T.$from.parent.inlineContent&&(qe=Pp(B,T.to))),B.docView.setSelection(W,ce,B.root,S),Nd&&(we&&Gh(we),qe&&Gh(qe)),T.visible?B.dom.classList.remove("ProseMirror-hideselection"):(B.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function uc(B){let S=B.dom.ownerDocument;S.removeEventListener("selectionchange",B.input.hideSelectionGuard);let T=B.domSelectionRange(),W=T.anchorNode,ce=T.anchorOffset;S.addEventListener("selectionchange",B.input.hideSelectionGuard=()=>{(T.anchorNode!=W||T.anchorOffset!=ce)&&(S.removeEventListener("selectionchange",B.input.hideSelectionGuard),setTimeout(()=>{(!oh(B)||B.state.selection.visible)&&B.dom.classList.remove("ProseMirror-hideselection")},20))})}(B))}B.domObserver.setCurSelection(),B.domObserver.connectSelection()}}const Nd=rc||Rc&&_d<63;function Pp(B,S){let{node:T,offset:W}=B.docView.domFromPos(S,0),ce=W<T.childNodes.length?T.childNodes[W]:null,we=W?T.childNodes[W-1]:null;if(rc&&ce&&"false"==ce.contentEditable)return Ad(ce);if(!(ce&&"false"!=ce.contentEditable||we&&"false"!=we.contentEditable)){if(ce)return Ad(ce);if(we)return Ad(we)}}function Ad(B){return B.contentEditable="true",rc&&B.draggable&&(B.draggable=!1,B.wasDraggable=!0),B}function Gh(B){B.contentEditable="false",B.wasDraggable&&(B.draggable=!0,B.wasDraggable=null)}function sh(B,S){if(S instanceof $o){let T=B.docView.descAt(S.from);T!=B.lastSelectedViewDesc&&(wd(B),T&&T.selectNode(),B.lastSelectedViewDesc=T)}else wd(B)}function wd(B){B.lastSelectedViewDesc&&(B.lastSelectedViewDesc.parent&&B.lastSelectedViewDesc.deselectNode(),B.lastSelectedViewDesc=void 0)}function Bf(B,S,T,W){return B.someProp("createSelectionBetween",ce=>ce(B,S,T))||Ss.between(S,T,W)}function Qd(B){return!(B.editable&&!B.hasFocus())&&Th(B)}function Th(B){let S=B.domSelectionRange();if(!S.anchorNode)return!1;try{return B.dom.contains(3==S.anchorNode.nodeType?S.anchorNode.parentNode:S.anchorNode)&&(B.editable||B.dom.contains(3==S.focusNode.nodeType?S.focusNode.parentNode:S.focusNode))}catch{return!1}}function Hh(B,S){let{$anchor:T,$head:W}=B.selection,ce=S>0?T.max(W):T.min(W),we=ce.parent.inlineContent?ce.depth?B.doc.resolve(S>0?ce.after():ce.before()):null:ce;return we&&kr.findFrom(we,S)}function Sl(B,S){return B.dispatch(B.state.tr.setSelection(S).scrollIntoView()),!0}function Rn(B,S,T){let W=B.state.selection;if(!(W instanceof Ss)){if(W instanceof $o&&W.node.isInline)return Sl(B,new Ss(S>0?W.$to:W.$from));{let ce=Hh(B.state,S);return!!ce&&Sl(B,ce)}}if(!W.empty||T.indexOf("s")>-1)return!1;if(B.endOfTextblock(S>0?"forward":"backward")){let ce=Hh(B.state,S);return!!(ce&&ce instanceof $o)&&Sl(B,ce)}if(!(uo&&T.indexOf("m")>-1)){let qe,ce=W.$head,we=ce.textOffset?null:S<0?ce.nodeBefore:ce.nodeAfter;if(!we||we.isText)return!1;let jt=S<0?ce.pos-we.nodeSize:ce.pos;return!!(we.isAtom||(qe=B.docView.descAt(jt))&&!qe.contentDOM)&&($o.isSelectable(we)?Sl(B,new $o(S<0?B.state.doc.resolve(ce.pos-we.nodeSize):ce)):!!Jr&&Sl(B,new Ss(B.state.doc.resolve(S<0?jt:jt+we.nodeSize))))}}function Uo(B){return 3==B.nodeType?B.nodeValue.length:B.childNodes.length}function je(B){let S=B.pmViewDesc;return S&&0==S.size&&(B.nextSibling||"BR"!=B.nodeName)}function Mn(B,S){return S<0?function Gi(B){let S=B.domSelectionRange(),T=S.focusNode,W=S.focusOffset;if(!T)return;let ce,we,qe=!1;for(oc&&1==T.nodeType&&W<Uo(T)&&je(T.childNodes[W])&&(qe=!0);;)if(W>0){if(1!=T.nodeType)break;{let jt=T.childNodes[W-1];if(je(jt))ce=T,we=--W;else{if(3!=jt.nodeType)break;T=jt,W=T.nodeValue.length}}}else{if(is(T))break;{let jt=T.previousSibling;for(;jt&&je(jt);)ce=T.parentNode,we=mc(jt),jt=jt.previousSibling;if(jt)T=jt,W=Uo(T);else{if(T=T.parentNode,T==B.dom)break;W=0}}}qe?ta(B,T,W):ce&&ta(B,ce,we)}(B):nr(B)}function nr(B){let S=B.domSelectionRange(),T=S.focusNode,W=S.focusOffset;if(!T)return;let we,qe,ce=Uo(T);for(;;)if(W<ce){if(1!=T.nodeType)break;if(!je(T.childNodes[W]))break;we=T,qe=++W}else{if(is(T))break;{let jt=T.nextSibling;for(;jt&&je(jt);)we=jt.parentNode,qe=mc(jt)+1,jt=jt.nextSibling;if(jt)T=jt,W=0,ce=Uo(T);else{if(T=T.parentNode,T==B.dom)break;W=ce=0}}}we&&ta(B,we,qe)}function is(B){let S=B.pmViewDesc;return S&&S.node&&S.node.isBlock}function ta(B,S,T){let W=B.domSelection();if(Cu(W)){let we=document.createRange();we.setEnd(S,T),we.setStart(S,T),W.removeAllRanges(),W.addRange(we)}else W.extend&&W.extend(S,T);B.domObserver.setCurSelection();let{state:ce}=B;setTimeout(()=>{B.state==ce&&yd(B)},50)}function dl(B,S){let T=B.state.doc.resolve(S);if(!Rc&&!Wo&&T.parent.inlineContent){let ce=B.coordsAtPos(S);if(S>T.start()){let we=B.coordsAtPos(S-1),qe=(we.top+we.bottom)/2;if(qe>ce.top&&qe<ce.bottom&&Math.abs(we.left-ce.left)>1)return we.left<ce.left?"ltr":"rtl"}if(S<T.end()){let we=B.coordsAtPos(S+1),qe=(we.top+we.bottom)/2;if(qe>ce.top&&qe<ce.bottom&&Math.abs(we.left-ce.left)>1)return we.left>ce.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(B.dom).direction?"rtl":"ltr"}function $l(B,S,T){let W=B.state.selection;if(W instanceof Ss&&!W.empty||T.indexOf("s")>-1||uo&&T.indexOf("m")>-1)return!1;let{$from:ce,$to:we}=W;if(!ce.parent.inlineContent||B.endOfTextblock(S<0?"up":"down")){let qe=Hh(B.state,S);if(qe&&qe instanceof $o)return Sl(B,qe)}if(!ce.parent.inlineContent){let qe=S<0?ce:we,jt=W instanceof No?kr.near(qe,S):kr.findFrom(qe,S);return!!jt&&Sl(B,jt)}return!1}function fl(B,S){if(!(B.state.selection instanceof Ss))return!0;let{$head:T,$anchor:W,empty:ce}=B.state.selection;if(!T.sameParent(W))return!0;if(!ce)return!1;if(B.endOfTextblock(S>0?"forward":"backward"))return!0;let we=!T.textOffset&&(S<0?T.nodeBefore:T.nodeAfter);if(we&&!we.isText){let qe=B.state.tr;return S<0?qe.delete(T.pos-we.nodeSize,T.pos):qe.delete(T.pos,T.pos+we.nodeSize),B.dispatch(qe),!0}return!1}function _c(B,S,T){B.domObserver.stop(),S.contentEditable=T,B.domObserver.start()}function Su(B,S){B.someProp("transformCopied",fr=>{S=fr(S,B)});let T=[],{content:W,openStart:ce,openEnd:we}=S;for(;ce>1&&we>1&&1==W.childCount&&1==W.firstChild.childCount;){ce--,we--;let fr=W.firstChild;T.push(fr.type.name,fr.attrs!=fr.type.defaultAttrs?fr.attrs:null),W=fr.content}let qe=B.someProp("clipboardSerializer")||tt.fromSchema(B.state.schema),jt=qh(),_n=jt.createElement("div");_n.appendChild(qe.serializeFragment(W,{document:jt}));let qi,bi=_n.firstChild,Oo=0;for(;bi&&1==bi.nodeType&&(qi=ou[bi.nodeName.toLowerCase()]);){for(let fr=qi.length-1;fr>=0;fr--){let Gr=jt.createElement(qi[fr]);for(;_n.firstChild;)Gr.appendChild(_n.firstChild);_n.appendChild(Gr),Oo++}bi=_n.firstChild}return bi&&1==bi.nodeType&&bi.setAttribute("data-pm-slice",`${ce} ${we}${Oo?` -${Oo}`:""} ${JSON.stringify(T)}`),{dom:_n,text:B.someProp("clipboardTextSerializer",fr=>fr(S,B))||S.content.textBetween(0,S.content.size,"\n\n")}}function gm(B,S,T,W,ce){let qe,jt,we=ce.parent.type.spec.code;if(!T&&!S)return null;let _n=S&&(W||we||!T);if(_n){if(B.someProp("transformPastedText",rr=>{S=rr(S,we||W,B)}),we)return S?new P(E.from(B.state.schema.text(S.replace(/\r\n?/g,"\n"))),0,0):P.empty;let Oo=B.someProp("clipboardTextParser",rr=>rr(S,ce,W,B));if(Oo)jt=Oo;else{let rr=ce.marks(),{schema:fr}=B.state,Gr=tt.fromSchema(fr);qe=document.createElement("div"),S.split(/(?:\r\n?|\n)+/).forEach(As=>{let ka=qe.appendChild(document.createElement("p"));As&&ka.appendChild(Gr.serializeNode(fr.text(As,rr)))})}}else B.someProp("transformPastedHTML",Oo=>{T=Oo(T,B)}),qe=function Mh(B){let S=/^(\s*<meta [^>]*>)*/.exec(B);S&&(B=B.slice(S[0].length));let ce,T=qh().createElement("div"),W=/<([a-z][^>\s]+)/i.exec(B);if((ce=W&&ou[W[1].toLowerCase()])&&(B=ce.map(we=>"<"+we+">").join("")+B+ce.map(we=>"</"+we+">").reverse().join("")),T.innerHTML=B,ce)for(let we=0;we<ce.length;we++)T=T.querySelector(ce[we])||T;return T}(T),Jr&&function Uc(B){let S=B.querySelectorAll(Rc?"span:not([class]):not([style])":"span.Apple-converted-space");for(let T=0;T<S.length;T++){let W=S[T];1==W.childNodes.length&&"\xa0"==W.textContent&&W.parentNode&&W.parentNode.replaceChild(B.ownerDocument.createTextNode(" "),W)}}(qe);let bi=qe&&qe.querySelector("[data-pm-slice]"),qi=bi&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(bi.getAttribute("data-pm-slice")||"");if(qi&&qi[3])for(let Oo=+qi[3];Oo>0;Oo--){let rr=qe.firstChild;for(;rr&&1!=rr.nodeType;)rr=rr.nextSibling;if(!rr)break;qe=rr}if(jt||(jt=(B.someProp("clipboardParser")||B.someProp("domParser")||xo.fromSchema(B.state.schema)).parseSlice(qe,{preserveWhitespace:!(!_n&&!qi),context:ce,ruleFromNode:rr=>"BR"!=rr.nodeName||rr.nextSibling||!rr.parentNode||Xd.test(rr.parentNode.nodeName)?null:{ignore:!0}})),qi)jt=function pu(B,S){if(!B.size)return B;let W,T=B.content.firstChild.type.schema;try{W=JSON.parse(S)}catch{return B}let{content:ce,openStart:we,openEnd:qe}=B;for(let jt=W.length-2;jt>=0;jt-=2){let _n=T.nodes[W[jt]];if(!_n||_n.hasRequiredAttrs())break;ce=E.from(_n.create(W[jt+1],ce)),we++,qe++}return new P(ce,we,qe)}(Ju(jt,+qi[1],+qi[2]),qi[4]);else if(jt=P.maxOpen(function gh(B,S){if(B.childCount<2)return B;for(let T=S.depth;T>=0;T--){let we,ce=S.node(T).contentMatchAt(S.index(T)),qe=[];if(B.forEach(jt=>{if(!qe)return;let bi,_n=ce.findWrapping(jt.type);if(!_n)return qe=null;if(bi=qe.length&&we.length&&ep(_n,we,jt,qe[qe.length-1],0))qe[qe.length-1]=bi;else{qe.length&&(qe[qe.length-1]=Dh(qe[qe.length-1],we.length));let qi=Ed(jt,_n);qe.push(qi),ce=ce.matchType(qi.type),we=_n}}),qe)return E.from(qe)}return B}(jt.content,ce),!0),jt.openStart||jt.openEnd){let Oo=0,rr=0;for(let fr=jt.content.firstChild;Oo<jt.openStart&&!fr.type.spec.isolating;Oo++,fr=fr.firstChild);for(let fr=jt.content.lastChild;rr<jt.openEnd&&!fr.type.spec.isolating;rr++,fr=fr.lastChild);jt=Ju(jt,Oo,rr)}return B.someProp("transformPasted",Oo=>{jt=Oo(jt,B)}),jt}const Xd=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Ed(B,S,T=0){for(let W=S.length-1;W>=T;W--)B=S[W].create(null,E.from(B));return B}function ep(B,S,T,W,ce){if(ce<B.length&&ce<S.length&&B[ce]==S[ce]){let we=ep(B,S,T,W.lastChild,ce+1);if(we)return W.copy(W.content.replaceChild(W.childCount-1,we));if(W.contentMatchAt(W.childCount).matchType(ce==B.length-1?T.type:B[ce+1]))return W.copy(W.content.append(E.from(Ed(T,B,ce+1))))}}function Dh(B,S){if(0==S)return B;let T=B.content.replaceChild(B.childCount-1,Dh(B.lastChild,S-1)),W=B.contentMatchAt(B.childCount).fillBefore(E.empty,!0);return B.copy(T.append(W))}function Vh(B,S,T,W,ce,we){let qe=S<0?B.firstChild:B.lastChild,jt=qe.content;return B.childCount>1&&(we=0),ce<W-1&&(jt=Vh(jt,S,T,W,ce+1,we)),ce>=T&&(jt=S<0?qe.contentMatchAt(0).fillBefore(jt,we<=ce).append(jt):jt.append(qe.contentMatchAt(qe.childCount).fillBefore(E.empty,!0))),B.replaceChild(S<0?0:B.childCount-1,qe.copy(jt))}function Ju(B,S,T){return S<B.openStart&&(B=new P(Vh(B.content,-1,S,B.openStart,0,B.openEnd),S,B.openEnd)),T<B.openEnd&&(B=new P(Vh(B.content,1,T,B.openEnd,0,0),B.openStart,T)),B}const ou={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let qa=null;function qh(){return qa||(qa=document.implementation.createHTMLDocument("title"))}const Od={},Fd={},qd={touchstart:!0,touchmove:!0};class Wh{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function Au(B,S){B.input.lastSelectionOrigin=S,B.input.lastSelectionTime=Date.now()}function Bu(B){B.someProp("handleDOMEvents",S=>{for(let T in S)B.input.eventHandlers[T]||B.dom.addEventListener(T,B.input.eventHandlers[T]=W=>ru(B,W))})}function ru(B,S){return B.someProp("handleDOMEvents",T=>{let W=T[S.type];return!!W&&(W(B,S)||S.defaultPrevented)})}function mf(B,S){if(!S.bubbles)return!0;if(S.defaultPrevented)return!1;for(let T=S.target;T!=B.dom;T=T.parentNode)if(!T||11==T.nodeType||T.pmViewDesc&&T.pmViewDesc.stopEvent(S))return!1;return!0}function ah(B){return{left:B.clientX,top:B.clientY}}function kh(B,S,T,W,ce){if(-1==W)return!1;let we=B.state.doc.resolve(W);for(let qe=we.depth+1;qe>0;qe--)if(B.someProp(S,jt=>qe>we.depth?jt(B,T,we.nodeAfter,we.before(qe),ce,!0):jt(B,T,we.node(qe),we.before(qe),ce,!1)))return!0;return!1}function $p(B,S,T){B.focused||B.focus();let W=B.state.tr.setSelection(S);"pointer"==T&&W.setMeta("pointer",!0),B.dispatch(W)}function pd(B,S,T,W){return kh(B,"handleDoubleClickOn",S,T,W)||B.someProp("handleDoubleClick",ce=>ce(B,S,W))}function su(B,S,T,W){return kh(B,"handleTripleClickOn",S,T,W)||B.someProp("handleTripleClick",ce=>ce(B,S,W))||function kf(B,S,T){if(0!=T.button)return!1;let W=B.state.doc;if(-1==S)return!!W.inlineContent&&($p(B,Ss.create(W,0,W.content.size),"pointer"),!0);let ce=W.resolve(S);for(let we=ce.depth+1;we>0;we--){let qe=we>ce.depth?ce.nodeAfter:ce.node(we),jt=ce.before(we);if(qe.inlineContent)$p(B,Ss.create(W,jt+1,jt+1+qe.content.size),"pointer");else{if(!$o.isSelectable(qe))continue;$p(B,$o.create(W,jt),"pointer")}return!0}}(B,T,W)}function $u(B){return lh(B)}Fd.keydown=(B,S)=>{let T=S;if(B.input.shiftKey=16==T.keyCode||T.shiftKey,!Ih(B,T)&&(B.input.lastKeyCode=T.keyCode,B.input.lastKeyCodeTime=Date.now(),!vr||!Rc||13!=T.keyCode))if(229!=T.keyCode&&B.domObserver.forceFlush(),!Di||13!=T.keyCode||T.ctrlKey||T.altKey||T.metaKey)B.someProp("handleKeyDown",W=>W(B,T))||function fd(B,S){let T=S.keyCode,W=function hc(B){let S="";return B.ctrlKey&&(S+="c"),B.metaKey&&(S+="m"),B.altKey&&(S+="a"),B.shiftKey&&(S+="s"),S}(S);if(8==T||uo&&72==T&&"c"==W)return fl(B,-1)||Mn(B,-1);if(46==T&&!S.shiftKey||uo&&68==T&&"c"==W)return fl(B,1)||Mn(B,1);if(13==T||27==T)return!0;if(37==T||uo&&66==T&&"c"==W){let ce=37==T?"ltr"==dl(B,B.state.selection.from)?-1:1:-1;return Rn(B,ce,W)||Mn(B,ce)}if(39==T||uo&&70==T&&"c"==W){let ce=39==T?"ltr"==dl(B,B.state.selection.from)?1:-1:1;return Rn(B,ce,W)||Mn(B,ce)}return 38==T||uo&&80==T&&"c"==W?$l(B,-1,W)||Mn(B,-1):40==T||uo&&78==T&&"c"==W?function Ol(B){if(!rc||B.state.selection.$head.parentOffset>0)return!1;let{focusNode:S,focusOffset:T}=B.domSelectionRange();if(S&&1==S.nodeType&&0==T&&S.firstChild&&"false"==S.firstChild.contentEditable){let W=S.firstChild;_c(B,W,"true"),setTimeout(()=>_c(B,W,"false"),20)}return!1}(B)||$l(B,1,W)||nr(B):W==(uo?"m":"c")&&(66==T||73==T||89==T||90==T)}(B,T)?T.preventDefault():Au(B,"key");else{let W=Date.now();B.input.lastIOSEnter=W,B.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{B.input.lastIOSEnter==W&&(B.someProp("handleKeyDown",ce=>ce(B,id(13,"Enter"))),B.input.lastIOSEnter=0)},200)}},Fd.keyup=(B,S)=>{16==S.keyCode&&(B.input.shiftKey=!1)},Fd.keypress=(B,S)=>{let T=S;if(Ih(B,T)||!T.charCode||T.ctrlKey&&!T.altKey||uo&&T.metaKey)return;if(B.someProp("handleKeyPress",ce=>ce(B,T)))return void T.preventDefault();let W=B.state.selection;if(!(W instanceof Ss&&W.$from.sameParent(W.$to))){let ce=String.fromCharCode(T.charCode);!/[\r\n]/.test(ce)&&!B.someProp("handleTextInput",we=>we(B,W.$from.pos,W.$to.pos,ce))&&B.dispatch(B.state.tr.insertText(ce).scrollIntoView()),T.preventDefault()}};const jh=uo?"metaKey":"ctrlKey";Od.mousedown=(B,S)=>{let T=S;B.input.shiftKey=T.shiftKey;let W=$u(B),ce=Date.now(),we="singleClick";ce-B.input.lastClick.time<500&&function Qc(B,S){let T=S.x-B.clientX,W=S.y-B.clientY;return T*T+W*W<100}(T,B.input.lastClick)&&!T[jh]&&("singleClick"==B.input.lastClick.type?we="doubleClick":"doubleClick"==B.input.lastClick.type&&(we="tripleClick")),B.input.lastClick={time:ce,x:T.clientX,y:T.clientY,type:we};let qe=B.posAtCoords(ah(T));qe&&("singleClick"==we?(B.input.mouseDown&&B.input.mouseDown.done(),B.input.mouseDown=new Qp(B,qe,T,!!W)):("doubleClick"==we?pd:su)(B,qe.pos,qe.inside,T)?T.preventDefault():Au(B,"pointer"))};class Qp{constructor(S,T,W,ce){let we,qe;if(this.view=S,this.pos=T,this.event=W,this.flushed=ce,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=S.state.doc,this.selectNode=!!W[jh],this.allowDefault=W.shiftKey,T.inside>-1)we=S.state.doc.nodeAt(T.inside),qe=T.inside;else{let qi=S.state.doc.resolve(T.pos);we=qi.parent,qe=qi.depth?qi.before():0}const jt=ce?null:W.target,_n=jt?S.docView.nearestDesc(jt,!0):null;this.target=_n?_n.dom:null;let{selection:bi}=S.state;(0==W.button&&we.type.spec.draggable&&!1!==we.type.spec.selectable||bi instanceof $o&&bi.from<=qe&&bi.to>qe)&&(this.mightDrag={node:we,pos:qe,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!oc||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),S.root.addEventListener("mouseup",this.up=this.up.bind(this)),S.root.addEventListener("mousemove",this.move=this.move.bind(this)),Au(S,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>yd(this.view)),this.view.input.mouseDown=null}up(S){if(this.done(),!this.view.dom.contains(S.target))return;let T=this.pos;this.view.state.doc!=this.startDoc&&(T=this.view.posAtCoords(ah(S))),this.updateAllowDefault(S),this.allowDefault||!T?Au(this.view,"pointer"):function Lp(B,S,T,W,ce){return kh(B,"handleClickOn",S,T,W)||B.someProp("handleClick",we=>we(B,S,W))||(ce?function gf(B,S){if(-1==S)return!1;let W,ce,T=B.state.selection;T instanceof $o&&(W=T.node);let we=B.state.doc.resolve(S);for(let qe=we.depth+1;qe>0;qe--){let jt=qe>we.depth?we.nodeAfter:we.node(qe);if($o.isSelectable(jt)){ce=W&&T.$from.depth>0&&qe>=T.$from.depth&&we.before(T.$from.depth+1)==T.$from.pos?we.before(T.$from.depth):we.before(qe);break}}return null!=ce&&($p(B,$o.create(B.state.doc,ce),"pointer"),!0)}(B,T):function Mf(B,S){if(-1==S)return!1;let T=B.state.doc.resolve(S),W=T.nodeAfter;return!!(W&&W.isAtom&&$o.isSelectable(W))&&($p(B,new $o(T),"pointer"),!0)}(B,T))}(this.view,T.pos,T.inside,S,this.selectNode)?S.preventDefault():0==S.button&&(this.flushed||rc&&this.mightDrag&&!this.mightDrag.node.isAtom||Rc&&!this.view.state.selection.visible&&Math.min(Math.abs(T.pos-this.view.state.selection.from),Math.abs(T.pos-this.view.state.selection.to))<=2)?($p(this.view,kr.near(this.view.state.doc.resolve(T.pos)),"pointer"),S.preventDefault()):Au(this.view,"pointer")}move(S){this.updateAllowDefault(S),Au(this.view,"pointer"),0==S.buttons&&this.done()}updateAllowDefault(S){!this.allowDefault&&(Math.abs(this.event.x-S.clientX)>4||Math.abs(this.event.y-S.clientY)>4)&&(this.allowDefault=!0)}}function Ih(B,S){return!!B.composing||!!(rc&&Math.abs(S.timeStamp-B.input.compositionEndedAt)<500)&&(B.input.compositionEndedAt=-2e8,!0)}Od.touchstart=B=>{B.input.lastTouch=Date.now(),$u(B),Au(B,"pointer")},Od.touchmove=B=>{B.input.lastTouch=Date.now(),Au(B,"pointer")},Od.contextmenu=B=>$u(B);const Pd=vr?5e3:-1;function Rd(B,S){clearTimeout(B.input.composingTimeout),S>-1&&(B.input.composingTimeout=setTimeout(()=>lh(B),S))}function If(B){for(B.composing&&(B.input.composing=!1,B.input.compositionEndedAt=function eu(){let B=document.createEvent("Event");return B.initEvent("event",!0,!0),B.timeStamp}());B.input.compositionNodes.length>0;)B.input.compositionNodes.pop().markParentsDirty()}function lh(B,S=!1){if(!(vr&&B.domObserver.flushingSoon>=0)){if(B.domObserver.forceFlush(),If(B),S||B.docView&&B.docView.dirty){let T=Eh(B);return T&&!T.eq(B.state.selection)?B.dispatch(B.state.tr.setSelection(T)):B.updateState(B.state),!0}return!1}}Fd.compositionstart=Fd.compositionupdate=B=>{if(!B.composing){B.domObserver.flush();let{state:S}=B,T=S.selection.$from;if(S.selection.empty&&(S.storedMarks||!T.textOffset&&T.parentOffset&&T.nodeBefore.marks.some(W=>!1===W.type.spec.inclusive)))B.markCursor=B.state.storedMarks||T.marks(),lh(B,!0),B.markCursor=null;else if(lh(B),oc&&S.selection.empty&&T.parentOffset&&!T.textOffset&&T.nodeBefore.marks.length){let W=B.domSelectionRange();for(let ce=W.focusNode,we=W.focusOffset;ce&&1==ce.nodeType&&0!=we;){let qe=we<0?ce.lastChild:ce.childNodes[we-1];if(!qe)break;if(3==qe.nodeType){B.domSelection().collapse(qe,qe.nodeValue.length);break}ce=qe,we=-1}}B.input.composing=!0}Rd(B,Pd)},Fd.compositionend=(B,S)=>{B.composing&&(B.input.composing=!1,B.input.compositionEndedAt=S.timeStamp,B.input.compositionID++,Rd(B,20))};const ch=dc&&$c<15||Di&&ns<604;function Qu(B,S,T,W,ce){let we=gm(B,S,T,W,B.state.selection.$from);if(B.someProp("handlePaste",_n=>_n(B,ce,we||P.empty)))return!0;if(!we)return!1;let qe=function Uf(B){return 0==B.openStart&&0==B.openEnd&&1==B.content.childCount?B.content.firstChild:null}(we),jt=qe?B.state.tr.replaceSelectionWith(qe,W):B.state.tr.replaceSelection(we);return B.dispatch(jt.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}Od.copy=Fd.cut=(B,S)=>{let T=S,W=B.state.selection,ce="cut"==T.type;if(W.empty)return;let we=ch?null:T.clipboardData,qe=W.content(),{dom:jt,text:_n}=Su(B,qe);we?(T.preventDefault(),we.clearData(),we.setData("text/html",jt.innerHTML),we.setData("text/plain",_n)):function zf(B,S){if(!B.dom.parentNode)return;let T=B.dom.parentNode.appendChild(document.createElement("div"));T.appendChild(S),T.style.cssText="position: fixed; left: -10000px; top: 10px";let W=getSelection(),ce=document.createRange();ce.selectNodeContents(S),B.dom.blur(),W.removeAllRanges(),W.addRange(ce),setTimeout(()=>{T.parentNode&&T.parentNode.removeChild(T),B.focus()},50)}(B,jt),ce&&B.dispatch(B.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},Fd.paste=(B,S)=>{let T=S;if(B.composing&&!vr)return;let W=ch?null:T.clipboardData,ce=B.input.shiftKey&&45!=B.input.lastKeyCode;W&&Qu(B,W.getData("text/plain"),W.getData("text/html"),ce,T)?T.preventDefault():function tp(B,S){if(!B.dom.parentNode)return;let T=B.input.shiftKey||B.state.selection.$from.parent.type.spec.code,W=B.dom.parentNode.appendChild(document.createElement(T?"textarea":"div"));T||(W.contentEditable="true"),W.style.cssText="position: fixed; left: -10000px; top: 10px",W.focus();let ce=B.input.shiftKey&&45!=B.input.lastKeyCode;setTimeout(()=>{B.focus(),W.parentNode&&W.parentNode.removeChild(W),T?Qu(B,W.value,null,ce,S):Qu(B,W.textContent,W.innerHTML,ce,S)},50)}(B,T)};class Yh{constructor(S,T){this.slice=S,this.move=T}}const zu=uo?"altKey":"ctrlKey";Od.dragstart=(B,S)=>{let T=S,W=B.input.mouseDown;if(W&&W.done(),!T.dataTransfer)return;let ce=B.state.selection,we=ce.empty?null:B.posAtCoords(ah(T));if(!(we&&we.pos>=ce.from&&we.pos<=(ce instanceof $o?ce.to-1:ce.to)))if(W&&W.mightDrag)B.dispatch(B.state.tr.setSelection($o.create(B.state.doc,W.mightDrag.pos)));else if(T.target&&1==T.target.nodeType){let bi=B.docView.nearestDesc(T.target,!0);bi&&bi.node.type.spec.draggable&&bi!=B.docView&&B.dispatch(B.state.tr.setSelection($o.create(B.state.doc,bi.posBefore)))}let qe=B.state.selection.content(),{dom:jt,text:_n}=Su(B,qe);T.dataTransfer.clearData(),T.dataTransfer.setData(ch?"Text":"text/html",jt.innerHTML),T.dataTransfer.effectAllowed="copyMove",ch||T.dataTransfer.setData("text/plain",_n),B.dragging=new Yh(qe,!T[zu])},Od.dragend=B=>{let S=B.dragging;window.setTimeout(()=>{B.dragging==S&&(B.dragging=null)},50)},Fd.dragover=Fd.dragenter=(B,S)=>S.preventDefault(),Fd.drop=(B,S)=>{let T=S,W=B.dragging;if(B.dragging=null,!T.dataTransfer)return;let ce=B.posAtCoords(ah(T));if(!ce)return;let we=B.state.doc.resolve(ce.pos),qe=W&&W.slice;qe?B.someProp("transformPasted",Gr=>{qe=Gr(qe,B)}):qe=gm(B,T.dataTransfer.getData(ch?"Text":"text/plain"),ch?null:T.dataTransfer.getData("text/html"),!1,we);let jt=!(!W||T[zu]);if(B.someProp("handleDrop",Gr=>Gr(B,T,qe||P.empty,jt)))return void T.preventDefault();if(!qe)return;T.preventDefault();let _n=qe?function ao(B,S,T){let W=B.resolve(S);if(!T.content.size)return S;let ce=T.content;for(let we=0;we<T.openStart;we++)ce=ce.firstChild.content;for(let we=1;we<=(0==T.openStart&&T.size?2:1);we++)for(let qe=W.depth;qe>=0;qe--){let jt=qe==W.depth?0:W.pos<=(W.start(qe+1)+W.end(qe+1))/2?-1:1,_n=W.index(qe)+(jt>0?1:0),bi=W.node(qe),qi=!1;if(1==we)qi=bi.canReplace(_n,_n,ce);else{let Oo=bi.contentMatchAt(_n).findWrapping(ce.firstChild.type);qi=Oo&&bi.canReplaceWith(_n,_n,Oo[0])}if(qi)return 0==jt?W.pos:jt<0?W.before(qe+1):W.after(qe+1)}return null}(B.state.doc,we.pos,qe):we.pos;null==_n&&(_n=we.pos);let bi=B.state.tr;jt&&bi.deleteSelection();let qi=bi.mapping.map(_n),Oo=0==qe.openStart&&0==qe.openEnd&&1==qe.content.childCount,rr=bi.doc;if(Oo?bi.replaceRangeWith(qi,qi,qe.content.firstChild):bi.replaceRange(qi,qi,qe),bi.doc.eq(rr))return;let fr=bi.doc.resolve(qi);if(Oo&&$o.isSelectable(qe.content.firstChild)&&fr.nodeAfter&&fr.nodeAfter.sameMarkup(qe.content.firstChild))bi.setSelection(new $o(fr));else{let Gr=bi.mapping.map(_n);bi.mapping.maps[bi.mapping.maps.length-1].forEach((As,ka,hl,Ul)=>Gr=Ul),bi.setSelection(Bf(B,fr,bi.doc.resolve(Gr)))}B.focus(),B.dispatch(bi.setMeta("uiEvent","drop"))},Od.focus=B=>{B.input.lastFocus=Date.now(),B.focused||(B.domObserver.stop(),B.dom.classList.add("ProseMirror-focused"),B.domObserver.start(),B.focused=!0,setTimeout(()=>{B.docView&&B.hasFocus()&&!B.domObserver.currentSelection.eq(B.domSelectionRange())&&yd(B)},20))},Od.blur=(B,S)=>{let T=S;B.focused&&(B.domObserver.stop(),B.dom.classList.remove("ProseMirror-focused"),B.domObserver.start(),T.relatedTarget&&B.dom.contains(T.relatedTarget)&&B.domObserver.currentSelection.clear(),B.focused=!1)},Od.beforeinput=(B,S)=>{if(Rc&&vr&&"deleteContentBackward"==S.inputType){B.domObserver.flushSoon();let{domChangeCount:W}=B.input;setTimeout(()=>{if(B.input.domChangeCount!=W||(B.dom.blur(),B.focus(),B.someProp("handleKeyDown",we=>we(B,id(8,"Backspace")))))return;let{$cursor:ce}=B.state.selection;ce&&ce.pos>0&&B.dispatch(B.state.tr.delete(ce.pos-1,ce.pos).scrollIntoView())},50)}};for(let B in Fd)Od[B]=Fd[B];function dh(B,S){if(B==S)return!0;for(let T in B)if(B[T]!==S[T])return!1;for(let T in S)if(!(T in B))return!1;return!0}class _f{constructor(S,T){this.toDOM=S,this.spec=T||Af,this.side=this.spec.side||0}map(S,T,W,ce){let{pos:we,deleted:qe}=S.mapResult(T.from+ce,this.side<0?-1:1);return qe?null:new Ou(we-W,we-W,this)}valid(){return!0}eq(S){return this==S||S instanceof _f&&(this.spec.key&&this.spec.key==S.spec.key||this.toDOM==S.toDOM&&dh(this.spec,S.spec))}destroy(S){this.spec.destroy&&this.spec.destroy(S)}}class _h{constructor(S,T){this.attrs=S,this.spec=T||Af}map(S,T,W,ce){let we=S.map(T.from+ce,this.spec.inclusiveStart?-1:1)-W,qe=S.map(T.to+ce,this.spec.inclusiveEnd?1:-1)-W;return we>=qe?null:new Ou(we,qe,this)}valid(S,T){return T.from<T.to}eq(S){return this==S||S instanceof _h&&dh(this.attrs,S.attrs)&&dh(this.spec,S.spec)}static is(S){return S.type instanceof _h}destroy(){}}class Xp{constructor(S,T){this.attrs=S,this.spec=T||Af}map(S,T,W,ce){let we=S.mapResult(T.from+ce,1);if(we.deleted)return null;let qe=S.mapResult(T.to+ce,-1);return qe.deleted||qe.pos<=we.pos?null:new Ou(we.pos-W,qe.pos-W,this)}valid(S,T){let we,{index:W,offset:ce}=S.content.findIndex(T.from);return ce==T.from&&!(we=S.child(W)).isText&&ce+we.nodeSize==T.to}eq(S){return this==S||S instanceof Xp&&dh(this.attrs,S.attrs)&&dh(this.spec,S.spec)}destroy(){}}class Ou{constructor(S,T,W){this.from=S,this.to=T,this.type=W}copy(S,T){return new Ou(S,T,this.type)}eq(S,T=0){return this.type.eq(S.type)&&this.from+T==S.from&&this.to+T==S.to}map(S,T,W){return this.type.map(S,this,T,W)}static widget(S,T,W){return new Ou(S,S,new _f(T,W))}static inline(S,T,W,ce){return new Ou(S,T,new _h(W,ce))}static node(S,T,W,ce){return new Ou(S,T,new Xp(W,ce))}get spec(){return this.type.spec}get inline(){return this.type instanceof _h}}const _m=[],Af={};class ac{constructor(S,T){this.local=S.length?S:_m,this.children=T.length?T:_m}static create(S,T){return T.length?Ri(T,S,0,Af):au}find(S,T,W){let ce=[];return this.findInner(S??0,T??1e9,ce,0,W),ce}findInner(S,T,W,ce,we){for(let qe=0;qe<this.local.length;qe++){let jt=this.local[qe];jt.from<=T&&jt.to>=S&&(!we||we(jt.spec))&&W.push(jt.copy(jt.from+ce,jt.to+ce))}for(let qe=0;qe<this.children.length;qe+=3)if(this.children[qe]<T&&this.children[qe+1]>S){let jt=this.children[qe]+1;this.children[qe+2].findInner(S-jt,T-jt,W,ce+jt,we)}}map(S,T,W){return this==au||0==S.maps.length?this:this.mapInner(S,T,0,0,W||Af)}mapInner(S,T,W,ce,we){let qe;for(let jt=0;jt<this.local.length;jt++){let _n=this.local[jt].map(S,W,ce);_n&&_n.type.valid(T,_n)?(qe||(qe=[])).push(_n):we.onRemove&&we.onRemove(this.local[jt].spec)}return this.children.length?function Of(B,S,T,W,ce,we,qe){let jt=B.slice();for(let bi=0,qi=we;bi<T.maps.length;bi++){let Oo=0;T.maps[bi].forEach((rr,fr,Gr,As)=>{let ka=As-Gr-(fr-rr);for(let hl=0;hl<jt.length;hl+=3){let Ul=jt[hl+1];if(Ul<0||rr>Ul+qi-Oo)continue;let Dl=jt[hl]+qi-Oo;fr>=Dl?jt[hl+1]=rr<=Dl?-2:-1:Gr>=ce&&ka&&(jt[hl]+=ka,jt[hl+1]+=ka)}Oo+=ka}),qi=T.maps[bi].map(qi,-1)}let _n=!1;for(let bi=0;bi<jt.length;bi+=3)if(jt[bi+1]<0){if(-2==jt[bi+1]){_n=!0,jt[bi+1]=-1;continue}let qi=T.map(B[bi]+we),Oo=qi-ce;if(Oo<0||Oo>=W.content.size){_n=!0;continue}let fr=T.map(B[bi+1]+we,-1)-ce,{index:Gr,offset:As}=W.content.findIndex(Oo),ka=W.maybeChild(Gr);if(ka&&As==Oo&&As+ka.nodeSize==fr){let hl=jt[bi+2].mapInner(T,ka,qi+1,B[bi]+we+1,qe);hl!=au?(jt[bi]=Oo,jt[bi+1]=fr,jt[bi+2]=hl):(jt[bi+1]=-2,_n=!0)}else _n=!0}if(_n){let bi=function vm(B,S,T,W,ce,we,qe){function jt(_n,bi){for(let qi=0;qi<_n.local.length;qi++){let Oo=_n.local[qi].map(W,ce,bi);Oo?T.push(Oo):qe.onRemove&&qe.onRemove(_n.local[qi].spec)}for(let qi=0;qi<_n.children.length;qi+=3)jt(_n.children[qi+2],_n.children[qi]+bi+1)}for(let _n=0;_n<B.length;_n+=3)-1==B[_n+1]&&jt(B[_n+2],S[_n]+we+1);return T}(jt,B,S,T,ce,we,qe),qi=Ri(bi,W,0,qe);S=qi.local;for(let Oo=0;Oo<jt.length;Oo+=3)jt[Oo+1]<0&&(jt.splice(Oo,3),Oo-=3);for(let Oo=0,rr=0;Oo<qi.children.length;Oo+=3){let fr=qi.children[Oo];for(;rr<jt.length&&jt[rr]<fr;)rr+=3;jt.splice(rr,0,qi.children[Oo],qi.children[Oo+1],qi.children[Oo+2])}}return new ac(S.sort(ee),jt)}(this.children,qe||[],S,T,W,ce,we):qe?new ac(qe.sort(ee),_m):au}add(S,T){return T.length?this==au?ac.create(S,T):this.addInner(S,T,0):this}addInner(S,T,W){let ce,we=0;S.forEach((jt,_n)=>{let qi,bi=_n+W;if(qi=Np(T,jt,bi)){for(ce||(ce=this.children.slice());we<ce.length&&ce[we]<_n;)we+=3;ce[we]==_n?ce[we+2]=ce[we+2].addInner(jt,qi,bi+1):ce.splice(we,0,_n,_n+jt.nodeSize,Ri(qi,jt,bi+1,Af)),we+=3}});let qe=Gf(we?Yt(T):T,-W);for(let jt=0;jt<qe.length;jt++)qe[jt].type.valid(S,qe[jt])||qe.splice(jt--,1);return new ac(qe.length?this.local.concat(qe).sort(ee):this.local,ce||this.children)}remove(S){return 0==S.length||this==au?this:this.removeInner(S,0)}removeInner(S,T){let W=this.children,ce=this.local;for(let we=0;we<W.length;we+=3){let qe,jt=W[we]+T,_n=W[we+1]+T;for(let Oo,qi=0;qi<S.length;qi++)(Oo=S[qi])&&Oo.from>jt&&Oo.to<_n&&(S[qi]=null,(qe||(qe=[])).push(Oo));if(!qe)continue;W==this.children&&(W=this.children.slice());let bi=W[we+2].removeInner(qe,jt+1);bi!=au?W[we+2]=bi:(W.splice(we,3),we-=3)}if(ce.length)for(let qe,we=0;we<S.length;we++)if(qe=S[we])for(let jt=0;jt<ce.length;jt++)ce[jt].eq(qe,T)&&(ce==this.local&&(ce=this.local.slice()),ce.splice(jt--,1));return W==this.children&&ce==this.local?this:ce.length||W.length?new ac(ce,W):au}forChild(S,T){if(this==au)return this;if(T.isLeaf)return ac.empty;let W,ce;for(let jt=0;jt<this.children.length;jt+=3)if(this.children[jt]>=S){this.children[jt]==S&&(W=this.children[jt+2]);break}let we=S+1,qe=we+T.content.size;for(let jt=0;jt<this.local.length;jt++){let _n=this.local[jt];if(_n.from<qe&&_n.to>we&&_n.type instanceof _h){let bi=Math.max(we,_n.from)-we,qi=Math.min(qe,_n.to)-we;bi<qi&&(ce||(ce=[])).push(_n.copy(bi,qi))}}if(ce){let jt=new ac(ce.sort(ee),_m);return W?new wu([jt,W]):jt}return W||au}eq(S){if(this==S)return!0;if(!(S instanceof ac)||this.local.length!=S.local.length||this.children.length!=S.children.length)return!1;for(let T=0;T<this.local.length;T++)if(!this.local[T].eq(S.local[T]))return!1;for(let T=0;T<this.children.length;T+=3)if(this.children[T]!=S.children[T]||this.children[T+1]!=S.children[T+1]||!this.children[T+2].eq(S.children[T+2]))return!1;return!0}locals(S){return Ze(this.localsInner(S))}localsInner(S){if(this==au)return _m;if(S.inlineContent||!this.local.some(_h.is))return this.local;let T=[];for(let W=0;W<this.local.length;W++)this.local[W].type instanceof _h||T.push(this.local[W]);return T}}ac.empty=new ac([],[]),ac.removeOverlap=Ze;const au=ac.empty;class wu{constructor(S){this.members=S}map(S,T){const W=this.members.map(ce=>ce.map(S,T,Af));return wu.from(W)}forChild(S,T){if(T.isLeaf)return ac.empty;let W=[];for(let ce=0;ce<this.members.length;ce++){let we=this.members[ce].forChild(S,T);we!=au&&(we instanceof wu?W=W.concat(we.members):W.push(we))}return wu.from(W)}eq(S){if(!(S instanceof wu)||S.members.length!=this.members.length)return!1;for(let T=0;T<this.members.length;T++)if(!this.members[T].eq(S.members[T]))return!1;return!0}locals(S){let T,W=!0;for(let ce=0;ce<this.members.length;ce++){let we=this.members[ce].localsInner(S);if(we.length)if(T){W&&(T=T.slice(),W=!1);for(let qe=0;qe<we.length;qe++)T.push(we[qe])}else T=we}return T?Ze(W?T:T.sort(ee)):_m}static from(S){switch(S.length){case 0:return au;case 1:return S[0];default:return new wu(S.every(T=>T instanceof ac)?S:S.reduce((T,W)=>T.concat(W instanceof ac?W:W.members),[]))}}}function Gf(B,S){if(!S||!B.length)return B;let T=[];for(let W=0;W<B.length;W++){let ce=B[W];T.push(new Ou(ce.from+S,ce.to+S,ce.type))}return T}function Np(B,S,T){if(S.isLeaf)return null;let W=T+S.nodeSize,ce=null;for(let qe,we=0;we<B.length;we++)(qe=B[we])&&qe.from>T&&qe.to<W&&((ce||(ce=[])).push(qe),B[we]=null);return ce}function Yt(B){let S=[];for(let T=0;T<B.length;T++)null!=B[T]&&S.push(B[T]);return S}function Ri(B,S,T,W){let ce=[],we=!1;S.forEach((jt,_n)=>{let bi=Np(B,jt,_n+T);if(bi){we=!0;let qi=Ri(bi,jt,T+_n+1,W);qi!=au&&ce.push(_n,_n+jt.nodeSize,qi)}});let qe=Gf(we?Yt(B):B,-T).sort(ee);for(let jt=0;jt<qe.length;jt++)qe[jt].type.valid(S,qe[jt])||(W.onRemove&&W.onRemove(qe[jt].spec),qe.splice(jt--,1));return qe.length||ce.length?new ac(qe,ce):au}function ee(B,S){return B.from-S.from||B.to-S.to}function Ze(B){let S=B;for(let T=0;T<S.length-1;T++){let W=S[T];if(W.from!=W.to)for(let ce=T+1;ce<S.length;ce++){let we=S[ce];if(we.from!=W.from){we.from<W.to&&(S==B&&(S=B.slice()),S[T]=W.copy(W.from,we.from),Yn(S,ce,W.copy(we.from,W.to)));break}we.to!=W.to&&(S==B&&(S=B.slice()),S[ce]=we.copy(we.from,W.to),Yn(S,ce+1,we.copy(W.to,we.to)))}}return S}function Yn(B,S,T){for(;S<B.length&&ee(T,B[S])>0;)S++;B.splice(S,0,T)}function Bo(B){let S=[];return B.someProp("decorations",T=>{let W=T(B.state);W&&W!=au&&S.push(W)}),B.cursorWrapper&&S.push(ac.create(B.state.doc,[B.cursorWrapper.deco])),wu.from(S)}const $r={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},ea=dc&&$c<=11;class Fa{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(S){this.anchorNode=S.anchorNode,this.anchorOffset=S.anchorOffset,this.focusNode=S.focusNode,this.focusOffset=S.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(S){return S.anchorNode==this.anchorNode&&S.anchorOffset==this.anchorOffset&&S.focusNode==this.focusNode&&S.focusOffset==this.focusOffset}}class el{constructor(S,T){this.view=S,this.handleDOMChange=T,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Fa,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(W=>{for(let ce=0;ce<W.length;ce++)this.queue.push(W[ce]);dc&&$c<=11&&W.some(ce=>"childList"==ce.type&&ce.removedNodes.length||"characterData"==ce.type&&ce.oldValue.length>ce.target.nodeValue.length)?this.flushSoon():this.flush()}),ea&&(this.onCharData=W=>{this.queue.push({target:W.target,type:"characterData",oldValue:W.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,$r)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let S=this.observer.takeRecords();if(S.length){for(let T=0;T<S.length;T++)this.queue.push(S[T]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Qd(this.view)){if(this.suppressingSelectionUpdates)return yd(this.view);if(dc&&$c<=11&&!this.view.state.selection.empty){let S=this.view.domSelectionRange();if(S.focusNode&&Jd(S.focusNode,S.focusOffset,S.anchorNode,S.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(S){if(!S.focusNode)return!0;let W,T=new Set;for(let we=S.focusNode;we;we=xd(we))T.add(we);for(let we=S.anchorNode;we;we=xd(we))if(T.has(we)){W=we;break}let ce=W&&this.view.docView.nearestDesc(W);return ce&&ce.ignoreMutation({type:"selection",target:3==W.nodeType?W.parentNode:W})?(this.setCurSelection(),!0):void 0}flush(){let{view:S}=this;if(!S.docView||this.flushingSoon>-1)return;let T=this.observer?this.observer.takeRecords():[];this.queue.length&&(T=this.queue.concat(T),this.queue.length=0);let W=S.domSelectionRange(),ce=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(W)&&Qd(S)&&!this.ignoreSelectionChange(W),we=-1,qe=-1,jt=!1,_n=[];if(S.editable)for(let qi=0;qi<T.length;qi++){let Oo=this.registerMutation(T[qi],_n);Oo&&(we=we<0?Oo.from:Math.min(Oo.from,we),qe=qe<0?Oo.to:Math.max(Oo.to,qe),Oo.typeOver&&(jt=!0))}if(oc&&_n.length>1){let qi=_n.filter(Oo=>"BR"==Oo.nodeName);if(2==qi.length){let Oo=qi[0],rr=qi[1];Oo.parentNode&&Oo.parentNode.parentNode==rr.parentNode?rr.remove():Oo.remove()}}let bi=null;we<0&&ce&&S.input.lastFocus>Date.now()-200&&Math.max(S.input.lastTouch,S.input.lastClick.time)<Date.now()-300&&Cu(W)&&(bi=Eh(S))&&bi.eq(kr.near(S.state.doc.resolve(0),1))?(S.input.lastFocus=0,yd(S),this.currentSelection.set(W),S.scrollToSelection()):(we>-1||ce)&&(we>-1&&(S.docView.markDirty(we,qe),function Pl(B){if(!bl.has(B)&&(bl.set(B,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(B.dom).whiteSpace))){if(B.requiresGeckoHackNode=oc,Ql)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),Ql=!0}}(S)),this.handleDOMChange(we,qe,jt,_n),S.docView&&S.docView.dirty?S.updateState(S.state):this.currentSelection.eq(W)||yd(S),this.currentSelection.set(W))}registerMutation(S,T){if(T.indexOf(S.target)>-1)return null;let W=this.view.docView.nearestDesc(S.target);if("attributes"==S.type&&(W==this.view.docView||"contenteditable"==S.attributeName||"style"==S.attributeName&&!S.oldValue&&!S.target.getAttribute("style"))||!W||W.ignoreMutation(S))return null;if("childList"==S.type){for(let qi=0;qi<S.addedNodes.length;qi++)T.push(S.addedNodes[qi]);if(W.contentDOM&&W.contentDOM!=W.dom&&!W.contentDOM.contains(S.target))return{from:W.posBefore,to:W.posAfter};let ce=S.previousSibling,we=S.nextSibling;if(dc&&$c<=11&&S.addedNodes.length)for(let qi=0;qi<S.addedNodes.length;qi++){let{previousSibling:Oo,nextSibling:rr}=S.addedNodes[qi];(!Oo||Array.prototype.indexOf.call(S.addedNodes,Oo)<0)&&(ce=Oo),(!rr||Array.prototype.indexOf.call(S.addedNodes,rr)<0)&&(we=rr)}let qe=ce&&ce.parentNode==S.target?mc(ce)+1:0,jt=W.localPosFromDOM(S.target,qe,-1),_n=we&&we.parentNode==S.target?mc(we):S.target.childNodes.length;return{from:jt,to:W.localPosFromDOM(S.target,_n,1)}}return"attributes"==S.type?{from:W.posAtStart-W.border,to:W.posAtEnd+W.border}:{from:W.posAtStart,to:W.posAtEnd,typeOver:S.target.nodeValue==S.oldValue}}}let bl=new WeakMap,Ql=!1;function Eu(B){let S=B.pmViewDesc;if(S)return S.parseRule();if("BR"==B.nodeName&&B.parentNode){if(rc&&/^(ul|ol)$/i.test(B.parentNode.nodeName)){let T=document.createElement("div");return T.appendChild(document.createElement("li")),{skip:T}}if(B.parentNode.lastChild==B||rc&&/^(tr|table)$/i.test(B.parentNode.nodeName))return{ignore:!0}}else if("IMG"==B.nodeName&&B.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Td=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function tc(B,S,T){return Math.max(T.anchor,T.head)>S.content.size?null:Bf(B,S.resolve(T.anchor),S.resolve(T.head))}function Uu(B,S,T){let W=B.depth,ce=S?B.end():B.pos;for(;W>0&&(S||B.indexAfter(W)==B.node(W).childCount);)W--,ce++,S=!1;if(T){let we=B.node(W).maybeChild(B.indexAfter(W));for(;we&&!we.isLeaf;)we=we.firstChild,ce++}return ce}class nf{constructor(S,T){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new Wh,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=T,this.state=T.state,this.directPlugins=T.plugins||[],this.directPlugins.forEach(np),this.dispatch=this.dispatch.bind(this),this.dom=S&&S.mount||document.createElement("div"),S&&(S.appendChild?S.appendChild(this.dom):"function"==typeof S?S(this.dom):S.mount&&(this.mounted=!0)),this.editable=Vf(this),Hf(this),this.nodeViews=Bp(this),this.docView=Mc(this.state.doc,vf(this),Bo(this),this.dom,this),this.domObserver=new el(this,(W,ce,we,qe)=>function Wd(B,S,T,W,ce){if(S<0){let vc=B.input.lastSelectionTime>Date.now()-50?B.input.lastSelectionOrigin:null,P_=Eh(B,vc);if(P_&&!B.state.selection.eq(P_)){if(Rc&&vr&&13===B.input.lastKeyCode&&Date.now()-100<B.input.lastKeyCodeTime&&B.someProp("handleKeyDown",fv=>fv(B,id(13,"Enter"))))return;let Iv=B.state.tr.setSelection(P_);"pointer"==vc?Iv.setMeta("pointer",!0):"key"==vc&&Iv.scrollIntoView(),B.composing&&Iv.setMeta("composition",B.input.compositionID),B.dispatch(Iv)}return}let we=B.state.doc.resolve(S),qe=we.sharedDepth(T);S=we.before(qe+1),T=B.state.doc.resolve(T).after(qe+1);let Oo,rr,jt=B.state.selection,_n=function kc(B,S,T){let bi,{node:W,fromOffset:ce,toOffset:we,from:qe,to:jt}=B.docView.parseRange(S,T),_n=B.domSelectionRange(),qi=_n.anchorNode;if(qi&&B.dom.contains(1==qi.nodeType?qi:qi.parentNode)&&(bi=[{node:qi,offset:_n.anchorOffset}],Cu(_n)||bi.push({node:_n.focusNode,offset:_n.focusOffset})),Rc&&8===B.input.lastKeyCode)for(let ka=we;ka>ce;ka--){let hl=W.childNodes[ka-1],Ul=hl.pmViewDesc;if("BR"==hl.nodeName&&!Ul){we=ka;break}if(!Ul||Ul.size)break}let Oo=B.state.doc,rr=B.someProp("domParser")||xo.fromSchema(B.state.schema),fr=Oo.resolve(qe),Gr=null,As=rr.parse(W,{topNode:fr.parent,topMatch:fr.parent.contentMatchAt(fr.index()),topOpen:!0,from:ce,to:we,preserveWhitespace:"pre"!=fr.parent.type.whitespace||"full",findPositions:bi,ruleFromNode:Eu,context:fr});if(bi&&null!=bi[0].pos){let ka=bi[0].pos,hl=bi[1]&&bi[1].pos;null==hl&&(hl=ka),Gr={anchor:ka+qe,head:hl+qe}}return{doc:As,sel:Gr,from:qe,to:jt}}(B,S,T),bi=B.state.doc,qi=bi.slice(_n.from,_n.to);8===B.input.lastKeyCode&&Date.now()-100<B.input.lastKeyCodeTime?(Oo=B.state.selection.to,rr="end"):(Oo=B.state.selection.from,rr="start"),B.input.lastKeyCode=null;let fr=function Xc(B,S,T,W,ce){let we=B.findDiffStart(S,T);if(null==we)return null;let{a:qe,b:jt}=B.findDiffEnd(S,T+B.size,T+S.size);return"end"==ce&&(W-=qe+Math.max(0,we-Math.min(qe,jt))-we),qe<we&&B.size<S.size?(we-=W<=we&&W>=qe?we-W:0,jt=we+(jt-qe),qe=we):jt<we&&(we-=W<=we&&W>=jt?we-W:0,qe=we+(qe-jt),jt=we),{start:we,endA:qe,endB:jt}}(qi.content,_n.doc.content,_n.from,Oo,rr);if((Di&&B.input.lastIOSEnter>Date.now()-225||vr)&&ce.some(vc=>1==vc.nodeType&&!Td.test(vc.nodeName))&&(!fr||fr.endA>=fr.endB)&&B.someProp("handleKeyDown",vc=>vc(B,id(13,"Enter"))))return void(B.input.lastIOSEnter=0);if(!fr){if(!(W&&jt instanceof Ss&&!jt.empty&&jt.$head.sameParent(jt.$anchor))||B.composing||_n.sel&&_n.sel.anchor!=_n.sel.head){if(_n.sel){let vc=tc(B,B.state.doc,_n.sel);if(vc&&!vc.eq(B.state.selection)){let P_=B.state.tr.setSelection(vc);B.composing&&P_.setMeta("composition",B.input.compositionID),B.dispatch(P_)}}return}fr={start:jt.from,endA:jt.to,endB:jt.to}}if(Rc&&B.cursorWrapper&&_n.sel&&_n.sel.anchor==B.cursorWrapper.deco.from&&_n.sel.head==_n.sel.anchor){let vc=fr.endB-fr.start;_n.sel={anchor:_n.sel.anchor+vc,head:_n.sel.anchor+vc}}B.input.domChangeCount++,B.state.selection.from<B.state.selection.to&&fr.start==fr.endB&&B.state.selection instanceof Ss&&(fr.start>B.state.selection.from&&fr.start<=B.state.selection.from+2&&B.state.selection.from>=_n.from?fr.start=B.state.selection.from:fr.endA<B.state.selection.to&&fr.endA>=B.state.selection.to-2&&B.state.selection.to<=_n.to&&(fr.endB+=B.state.selection.to-fr.endA,fr.endA=B.state.selection.to)),dc&&$c<=11&&fr.endB==fr.start+1&&fr.endA==fr.start&&fr.start>_n.from&&" \xa0"==_n.doc.textBetween(fr.start-_n.from-1,fr.start-_n.from+1)&&(fr.start--,fr.endA--,fr.endB--);let Ul,Gr=_n.doc.resolveNoCache(fr.start-_n.from),As=_n.doc.resolveNoCache(fr.endB-_n.from),ka=bi.resolve(fr.start),hl=Gr.sameParent(As)&&Gr.parent.inlineContent&&ka.end()>=fr.endA;if((Di&&B.input.lastIOSEnter>Date.now()-225&&(!hl||ce.some(vc=>"DIV"==vc.nodeName||"P"==vc.nodeName))||!hl&&Gr.pos<_n.doc.content.size&&!Gr.sameParent(As)&&(Ul=kr.findFrom(_n.doc.resolve(Gr.pos+1),1,!0))&&Ul.head==As.pos)&&B.someProp("handleKeyDown",vc=>vc(B,id(13,"Enter"))))return void(B.input.lastIOSEnter=0);if(B.state.selection.anchor>fr.start&&function zl(B,S,T,W,ce){if(!W.parent.isTextblock||T-S<=ce.pos-W.pos||Uu(W,!0,!1)<ce.pos)return!1;let we=B.resolve(S);if(we.parentOffset<we.parent.content.size||!we.parent.isTextblock)return!1;let qe=B.resolve(Uu(we,!0,!0));return!(!qe.parent.isTextblock||qe.pos>T||Uu(qe,!0,!1)<T)&&W.parent.content.cut(W.parentOffset).eq(qe.parent.content)}(bi,fr.start,fr.endA,Gr,As)&&B.someProp("handleKeyDown",vc=>vc(B,id(8,"Backspace"))))return void(vr&&Rc&&B.domObserver.suppressSelectionUpdates());Rc&&vr&&fr.endB==fr.start&&(B.input.lastAndroidDelete=Date.now()),vr&&!hl&&Gr.start()!=As.start()&&0==As.parentOffset&&Gr.depth==As.depth&&_n.sel&&_n.sel.anchor==_n.sel.head&&_n.sel.head==fr.endA&&(fr.endB-=2,As=_n.doc.resolveNoCache(fr.endB-_n.from),setTimeout(()=>{B.someProp("handleKeyDown",function(vc){return vc(B,id(13,"Enter"))})},20));let kd,km,mm,Dl=fr.start,Yu=fr.endA;if(hl)if(Gr.pos==As.pos)dc&&$c<=11&&0==Gr.parentOffset&&(B.domObserver.suppressSelectionUpdates(),setTimeout(()=>yd(B),20)),kd=B.state.tr.delete(Dl,Yu),km=bi.resolve(fr.start).marksAcross(bi.resolve(fr.endA));else if(fr.endA==fr.endB&&(mm=function tf(B,S){let qe,jt,_n,T=B.firstChild.marks,W=S.firstChild.marks,ce=T,we=W;for(let qi=0;qi<W.length;qi++)ce=W[qi].removeFromSet(ce);for(let qi=0;qi<T.length;qi++)we=T[qi].removeFromSet(we);if(1==ce.length&&0==we.length)jt=ce[0],qe="add",_n=qi=>qi.mark(jt.addToSet(qi.marks));else{if(0!=ce.length||1!=we.length)return null;jt=we[0],qe="remove",_n=qi=>qi.mark(jt.removeFromSet(qi.marks))}let bi=[];for(let qi=0;qi<S.childCount;qi++)bi.push(_n(S.child(qi)));if(E.from(bi).eq(B))return{mark:jt,type:qe}}(Gr.parent.content.cut(Gr.parentOffset,As.parentOffset),ka.parent.content.cut(ka.parentOffset,fr.endA-ka.start()))))kd=B.state.tr,"add"==mm.type?kd.addMark(Dl,Yu,mm.mark):kd.removeMark(Dl,Yu,mm.mark);else if(Gr.parent.child(Gr.index()).isText&&Gr.index()==As.index()-(As.textOffset?0:1)){let vc=Gr.parent.textBetween(Gr.parentOffset,As.parentOffset);if(B.someProp("handleTextInput",P_=>P_(B,Dl,Yu,vc)))return;kd=B.state.tr.insertText(vc,Dl,Yu)}if(kd||(kd=B.state.tr.replace(Dl,Yu,_n.doc.slice(fr.start-_n.from,fr.endB-_n.from))),_n.sel){let vc=tc(B,kd.doc,_n.sel);vc&&!(Rc&&vr&&B.composing&&vc.empty&&(fr.start!=fr.endB||B.input.lastAndroidDelete<Date.now()-100)&&(vc.head==Dl||vc.head==kd.mapping.map(Yu)-1)||dc&&vc.empty&&vc.head==Dl)&&kd.setSelection(vc)}km&&kd.ensureMarks(km),B.composing&&kd.setMeta("composition",B.input.compositionID),B.dispatch(kd.scrollIntoView())}(this,W,ce,we,qe)),this.domObserver.start(),function Df(B){for(let S in Od){let T=Od[S];B.dom.addEventListener(S,B.input.eventHandlers[S]=W=>{mf(B,W)&&!ru(B,W)&&(B.editable||!(W.type in Fd))&&T(B,W)},qd[S]?{passive:!0}:void 0)}rc&&B.dom.addEventListener("input",()=>null),Bu(B)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let S=this._props;this._props={};for(let T in S)this._props[T]=S[T];this._props.state=this.state}return this._props}update(S){S.handleDOMEvents!=this._props.handleDOMEvents&&Bu(this);let T=this._props;this._props=S,S.plugins&&(S.plugins.forEach(np),this.directPlugins=S.plugins),this.updateStateInner(S.state,T)}setProps(S){let T={};for(let W in this._props)T[W]=this._props[W];T.state=this.state;for(let W in S)T[W]=S[W];this.update(T)}updateState(S){this.updateStateInner(S,this._props)}updateStateInner(S,T){let W=this.state,ce=!1,we=!1;S.storedMarks&&this.composing&&(If(this),we=!0),this.state=S;let qe=W.plugins!=S.plugins||this._props.plugins!=T.plugins;if(qe||this._props.plugins!=T.plugins||this._props.nodeViews!=T.nodeViews){let rr=Bp(this);(function qp(B,S){let T=0,W=0;for(let ce in B){if(B[ce]!=S[ce])return!0;T++}for(let ce in S)W++;return T!=W})(rr,this.nodeViews)&&(this.nodeViews=rr,ce=!0)}(qe||T.handleDOMEvents!=this._props.handleDOMEvents)&&Bu(this),this.editable=Vf(this),Hf(this);let jt=Bo(this),_n=vf(this),bi=W.plugins==S.plugins||W.doc.eq(S.doc)?S.scrollToSelection>W.scrollToSelection?"to selection":"preserve":"reset",qi=ce||!this.docView.matchesNode(S.doc,_n,jt);(qi||!S.selection.eq(W.selection))&&(we=!0);let Oo="preserve"==bi&&we&&null==this.dom.style.overflowAnchor&&function fa(B){let W,ce,S=B.dom.getBoundingClientRect(),T=Math.max(0,S.top);for(let we=(S.left+S.right)/2,qe=T+1;qe<Math.min(innerHeight,S.bottom);qe+=5){let jt=B.root.elementFromPoint(we,qe);if(!jt||jt==B.dom||!B.dom.contains(jt))continue;let _n=jt.getBoundingClientRect();if(_n.top>=T-20){W=jt,ce=_n.top;break}}return{refDOM:W,refTop:ce,stack:ye(B.dom)}}(this);if(we){this.domObserver.stop();let rr=qi&&(dc||Rc)&&!this.composing&&!W.selection.empty&&!S.selection.empty&&function Fp(B,S){let T=Math.min(B.$anchor.sharedDepth(B.head),S.$anchor.sharedDepth(S.head));return B.$anchor.start(T)!=S.$anchor.start(T)}(W.selection,S.selection);if(qi){let fr=Rc?this.trackWrites=this.domSelectionRange().focusNode:null;(ce||!this.docView.update(S.doc,_n,jt,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=Mc(S.doc,_n,jt,this.dom,this)),fr&&!this.trackWrites&&(rr=!0)}rr||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function _p(B){let S=B.docView.domFromPos(B.state.selection.anchor,0),T=B.domSelectionRange();return Jd(S.node,S.offset,T.anchorNode,T.anchorOffset)}(this))?yd(this,rr):(sh(this,S.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(W),"reset"==bi?this.dom.scrollTop=0:"to selection"==bi?this.scrollToSelection():Oo&&function bt({refDOM:B,refTop:S,stack:T}){let W=B?B.getBoundingClientRect().top:0;be(T,0==W?0:W-S)}(Oo)}scrollToSelection(){let S=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",T=>T(this)))if(this.state.selection instanceof $o){let T=this.docView.domAfterPos(this.state.selection.from);1==T.nodeType&&qs(this,T.getBoundingClientRect(),S)}else qs(this,this.coordsAtPos(this.state.selection.head,1),S)}destroyPluginViews(){let S;for(;S=this.pluginViews.pop();)S.destroy&&S.destroy()}updatePluginViews(S){if(S&&S.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let T=0;T<this.pluginViews.length;T++){let W=this.pluginViews[T];W.update&&W.update(this,S)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let T=0;T<this.directPlugins.length;T++){let W=this.directPlugins[T];W.spec.view&&this.pluginViews.push(W.spec.view(this))}for(let T=0;T<this.state.plugins.length;T++){let W=this.state.plugins[T];W.spec.view&&this.pluginViews.push(W.spec.view(this))}}}someProp(S,T){let ce,W=this._props&&this._props[S];if(null!=W&&(ce=T?T(W):W))return ce;for(let qe=0;qe<this.directPlugins.length;qe++){let jt=this.directPlugins[qe].props[S];if(null!=jt&&(ce=T?T(jt):jt))return ce}let we=this.state.plugins;if(we)for(let qe=0;qe<we.length;qe++){let jt=we[qe].props[S];if(null!=jt&&(ce=T?T(jt):jt))return ce}}hasFocus(){if(dc){let S=this.root.activeElement;if(S==this.dom)return!0;if(!S||!this.dom.contains(S))return!1;for(;S&&this.dom!=S&&this.dom.contains(S);){if("false"==S.contentEditable)return!1;S=S.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&function ei(B){if(B.setActive)return B.setActive();if(st)return B.focus(st);let S=ye(B);B.focus(null==st?{get preventScroll(){return st={preventScroll:!0},!0}}:void 0),st||(st=!1,be(S,0))}(this.dom),yd(this),this.domObserver.start()}get root(){let S=this._root;if(null==S)for(let T=this.dom.parentNode;T;T=T.parentNode)if(9==T.nodeType||11==T.nodeType&&T.host)return T.getSelection||(Object.getPrototypeOf(T).getSelection=()=>T.ownerDocument.getSelection()),this._root=T;return S||document}posAtCoords(S){return Tn(this,S)}coordsAtPos(S,T=1){return In(this,S,T)}domAtPos(S,T=0){return this.docView.domFromPos(S,T)}nodeDOM(S){let T=this.docView.descAt(S);return T?T.nodeDOM:null}posAtDOM(S,T,W=-1){let ce=this.docView.posFromDOM(S,T,W);if(null==ce)throw new RangeError("DOM position not inside the editor");return ce}endOfTextblock(S,T){return function yl(B,S,T){return Aa==S&&vl==T?ml:(Aa=S,vl=T,ml="up"==T||"down"==T?function Ks(B,S,T){let W=S.selection,ce="up"==T?W.$from:W.$to;return es(B,S,()=>{let{node:we}=B.docView.domFromPos(ce.pos,"up"==T?-1:1);for(;;){let jt=B.docView.nearestDesc(we,!0);if(!jt)break;if(jt.node.isBlock){we=jt.contentDOM||jt.dom;break}we=jt.dom.parentNode}let qe=In(B,ce.pos,1);for(let jt=we.firstChild;jt;jt=jt.nextSibling){let _n;if(1==jt.nodeType)_n=jt.getClientRects();else{if(3!=jt.nodeType)continue;_n=Fl(jt,0,jt.nodeValue.length).getClientRects()}for(let bi=0;bi<_n.length;bi++){let qi=_n[bi];if(qi.bottom>qi.top+1&&("up"==T?qe.top-qi.top>2*(qi.bottom-qe.top):qi.bottom-qe.bottom>2*(qe.bottom-qi.top)))return!1}}return!0})}(B,S,T):function ha(B,S,T){let{$head:W}=S.selection;if(!W.parent.isTextblock)return!1;let ce=W.parentOffset,we=!ce,qe=ce==W.parent.content.size,jt=B.domSelection();return xa.test(W.parent.textContent)&&jt.modify?es(B,S,()=>{let{focusNode:_n,focusOffset:bi,anchorNode:qi,anchorOffset:Oo}=B.domSelectionRange(),rr=jt.caretBidiLevel;jt.modify("move",T,"character");let fr=W.depth?B.docView.domAfterPos(W.before()):B.dom,{focusNode:Gr,focusOffset:As}=B.domSelectionRange(),ka=Gr&&!fr.contains(1==Gr.nodeType?Gr:Gr.parentNode)||_n==Gr&&bi==As;try{jt.collapse(qi,Oo),_n&&(_n!=qi||bi!=Oo)&&jt.extend&&jt.extend(_n,bi)}catch{}return null!=rr&&(jt.caretBidiLevel=rr),ka}):"left"==T||"backward"==T?we:qe}(B,S,T))}(this,T||this.state,S)}pasteHTML(S,T){return Qu(this,"",S,!1,T||new ClipboardEvent("paste"))}pasteText(S,T){return Qu(this,S,null,!0,T||new ClipboardEvent("paste"))}destroy(){this.docView&&(function ef(B){B.domObserver.stop();for(let S in B.input.eventHandlers)B.dom.removeEventListener(S,B.input.eventHandlers[S]);clearTimeout(B.input.composingTimeout),clearTimeout(B.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Bo(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(S){return function Rp(B,S){!ru(B,S)&&Od[S.type]&&(B.editable||!(S.type in Fd))&&Od[S.type](B,S)}(this,S)}dispatch(S){let T=this._props.dispatchTransaction;T?T.call(this,S):this.updateState(this.state.apply(S))}domSelectionRange(){return rc&&11===this.root.nodeType&&function ph(B){let S=B.activeElement;for(;S&&S.shadowRoot;)S=S.shadowRoot.activeElement;return S}(this.dom.ownerDocument)==this.dom?function Zl(B){let S;function T(_n){_n.preventDefault(),_n.stopImmediatePropagation(),S=_n.getTargetRanges()[0]}B.dom.addEventListener("beforeinput",T,!0),document.execCommand("indent"),B.dom.removeEventListener("beforeinput",T,!0);let W=S.startContainer,ce=S.startOffset,we=S.endContainer,qe=S.endOffset,jt=B.domAtPos(B.state.selection.anchor);return Jd(jt.node,jt.offset,we,qe)&&([W,ce,we,qe]=[we,qe,W,ce]),{anchorNode:W,anchorOffset:ce,focusNode:we,focusOffset:qe}}(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function vf(B){let S=Object.create(null);return S.class="ProseMirror",S.contenteditable=String(B.editable),B.someProp("attributes",T=>{if("function"==typeof T&&(T=T(B.state)),T)for(let W in T)"class"==W?S.class+=" "+T[W]:"style"==W?S.style=(S.style?S.style+";":"")+T[W]:!S[W]&&"contenteditable"!=W&&"nodeName"!=W&&(S[W]=String(T[W]))}),S.translate||(S.translate="no"),[Ou.node(0,B.state.doc.content.size,S)]}function Hf(B){if(B.markCursor){let S=document.createElement("img");S.className="ProseMirror-separator",S.setAttribute("mark-placeholder","true"),S.setAttribute("alt",""),B.cursorWrapper={dom:S,deco:Ou.widget(B.state.selection.head,S,{raw:!0,marks:B.markCursor})}}else B.cursorWrapper=null}function Vf(B){return!B.someProp("editable",S=>!1===S(B.state))}function Bp(B){let S=Object.create(null);function T(W){for(let ce in W)Object.prototype.hasOwnProperty.call(S,ce)||(S[ce]=W[ce])}return B.someProp("nodeViews",T),B.someProp("markViews",T),S}function np(B){if(B.spec.state||B.spec.filterTransaction||B.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var rf={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},yf={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},bf=typeof navigator<"u"&&/Mac/.test(navigator.platform),v_=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Ah=0;Ah<10;Ah++)rf[48+Ah]=rf[96+Ah]=String(Ah);for(Ah=1;Ah<=24;Ah++)rf[Ah+111]="F"+Ah;for(Ah=65;Ah<=90;Ah++)rf[Ah]=String.fromCharCode(Ah+32),yf[Ah]=String.fromCharCode(Ah);for(var yp in rf)yf.hasOwnProperty(yp)||(yf[yp]=rf[yp]);const cg=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function Jg(B){let W,ce,we,qe,S=B.split(/-(?!$)/),T=S[S.length-1];"Space"==T&&(T=" ");for(let jt=0;jt<S.length-1;jt++){let _n=S[jt];if(/^(cmd|meta|m)$/i.test(_n))qe=!0;else if(/^a(lt)?$/i.test(_n))W=!0;else if(/^(c|ctrl|control)$/i.test(_n))ce=!0;else if(/^s(hift)?$/i.test(_n))we=!0;else{if(!/^mod$/i.test(_n))throw new Error("Unrecognized modifier name: "+_n);cg?qe=!0:ce=!0}}return W&&(T="Alt-"+T),ce&&(T="Ctrl-"+T),qe&&(T="Meta-"+T),we&&(T="Shift-"+T),T}function em(B,S,T=!0){return S.altKey&&(B="Alt-"+B),S.ctrlKey&&(B="Ctrl-"+B),S.metaKey&&(B="Meta-"+B),T&&S.shiftKey&&(B="Shift-"+B),B}function zp(B){return new ht({props:{handleKeyDown:Km(B)}})}function Km(B){let S=function ip(B){let S=Object.create(null);for(let T in B)S[Jg(T)]=B[T];return S}(B);return function(T,W){let we,ce=function Ag(B){var T=!(bf&&B.metaKey&&B.shiftKey&&!B.ctrlKey&&!B.altKey||v_&&B.shiftKey&&B.key&&1==B.key.length||"Unidentified"==B.key)&&B.key||(B.shiftKey?yf:rf)[B.keyCode]||B.key||"Unidentified";return"Esc"==T&&(T="Escape"),"Del"==T&&(T="Delete"),"Left"==T&&(T="ArrowLeft"),"Up"==T&&(T="ArrowUp"),"Right"==T&&(T="ArrowRight"),"Down"==T&&(T="ArrowDown"),T}(W),qe=S[em(ce,W)];if(qe&&qe(T.state,T.dispatch,T))return!0;if(1==ce.length&&" "!=ce){if(W.shiftKey){let jt=S[em(ce,W,!1)];if(jt&&jt(T.state,T.dispatch,T))return!0}if((W.shiftKey||W.altKey||W.metaKey||ce.charCodeAt(0)>127)&&(we=rf[W.keyCode])&&we!=ce){let jt=S[em(we,W)];if(jt&&jt(T.state,T.dispatch,T))return!0}}return!1}}var Jm,tm;if(typeof WeakMap<"u"){let B=new WeakMap;Jm=S=>B.get(S),tm=(S,T)=>(B.set(S,T),T)}else{const B=[];let T=0;Jm=W=>{for(let ce=0;ce<B.length;ce+=2)if(B[ce]==W)return B[ce+1]},tm=(W,ce)=>(10==T&&(T=0),B[T++]=W,B[T++]=ce)}var Oc=class{constructor(B,S,T,W){this.width=B,this.height=S,this.map=T,this.problems=W}findCell(B){for(let S=0;S<this.map.length;S++){const T=this.map[S];if(T!=B)continue;const W=S%this.width,ce=S/this.width|0;let we=W+1,qe=ce+1;for(let jt=1;we<this.width&&this.map[S+jt]==T;jt++)we++;for(let jt=1;qe<this.height&&this.map[S+this.width*jt]==T;jt++)qe++;return{left:W,top:ce,right:we,bottom:qe}}throw new RangeError(`No cell with offset ${B} found`)}colCount(B){for(let S=0;S<this.map.length;S++)if(this.map[S]==B)return S%this.width;throw new RangeError(`No cell with offset ${B} found`)}nextCell(B,S,T){const{left:W,right:ce,top:we,bottom:qe}=this.findCell(B);return"horiz"==S?(T<0?0==W:ce==this.width)?null:this.map[we*this.width+(T<0?W-1:ce)]:(T<0?0==we:qe==this.height)?null:this.map[W+this.width*(T<0?we-1:qe)]}rectBetween(B,S){const{left:T,right:W,top:ce,bottom:we}=this.findCell(B),{left:qe,right:jt,top:_n,bottom:bi}=this.findCell(S);return{left:Math.min(T,qe),top:Math.min(ce,_n),right:Math.max(W,jt),bottom:Math.max(we,bi)}}cellsInRect(B){const S=[],T={};for(let W=B.top;W<B.bottom;W++)for(let ce=B.left;ce<B.right;ce++){const we=W*this.width+ce,qe=this.map[we];T[qe]||(T[qe]=!0,!(ce==B.left&&ce&&this.map[we-1]==qe||W==B.top&&W&&this.map[we-this.width]==qe)&&S.push(qe))}return S}positionAt(B,S,T){for(let W=0,ce=0;;W++){const we=ce+T.child(W).nodeSize;if(W==B){let qe=S+B*this.width;const jt=(B+1)*this.width;for(;qe<jt&&this.map[qe]<ce;)qe++;return qe==jt?we-1:this.map[qe]}ce=we}}static get(B){return Jm(B)||tm(B,function ym(B){if("table"!=B.type.spec.tableRole)throw new RangeError("Not a table node: "+B.type.name);const S=function bp(B){let S=-1,T=!1;for(let W=0;W<B.childCount;W++){const ce=B.child(W);let we=0;if(T)for(let qe=0;qe<W;qe++){const jt=B.child(qe);for(let _n=0;_n<jt.childCount;_n++){const bi=jt.child(_n);qe+bi.attrs.rowspan>W&&(we+=bi.attrs.colspan)}}for(let qe=0;qe<ce.childCount;qe++){const jt=ce.child(qe);we+=jt.attrs.colspan,jt.attrs.rowspan>1&&(T=!0)}-1==S?S=we:S!=we&&(S=Math.max(S,we))}return S}(B),T=B.childCount,W=[];let ce=0,we=null;const qe=[];for(let bi=0,qi=S*T;bi<qi;bi++)W[bi]=0;for(let bi=0,qi=0;bi<T;bi++){const Oo=B.child(bi);qi++;for(let Gr=0;;Gr++){for(;ce<W.length&&0!=W[ce];)ce++;if(Gr==Oo.childCount)break;const As=Oo.child(Gr),{colspan:ka,rowspan:hl,colwidth:Ul}=As.attrs;for(let Dl=0;Dl<hl;Dl++){if(Dl+bi>=T){(we||(we=[])).push({type:"overlong_rowspan",pos:qi,n:hl-Dl});break}const Yu=ce+Dl*S;for(let kd=0;kd<ka;kd++){0==W[Yu+kd]?W[Yu+kd]=qi:(we||(we=[])).push({type:"collision",row:bi,pos:qi,n:ka-kd});const km=Ul&&Ul[kd];if(km){const mm=(Yu+kd)%S*2,vc=qe[mm];null==vc||vc!=km&&1==qe[mm+1]?(qe[mm]=km,qe[mm+1]=1):vc==km&&qe[mm+1]++}}}ce+=ka,qi+=As.nodeSize}const rr=(bi+1)*S;let fr=0;for(;ce<rr;)0==W[ce++]&&fr++;fr&&(we||(we=[])).push({type:"missing",row:bi,n:fr}),qi++}const jt=new Oc(S,T,W,we);let _n=!1;for(let bi=0;!_n&&bi<qe.length;bi+=2)null!=qe[bi]&&qe[bi+1]<T&&(_n=!0);return _n&&function Og(B,S,T){B.problems||(B.problems=[]);const W={};for(let ce=0;ce<B.map.length;ce++){const we=B.map[ce];if(W[we])continue;W[we]=!0;const qe=T.nodeAt(we);if(!qe)throw new RangeError(`No cell with offset ${we} found`);let jt=null;const _n=qe.attrs;for(let bi=0;bi<_n.colspan;bi++){const Oo=S[(ce+bi)%B.width*2];null!=Oo&&(!_n.colwidth||_n.colwidth[bi]!=Oo)&&((jt||(jt=dg(_n)))[bi]=Oo)}jt&&B.problems.unshift({type:"colwidth mismatch",pos:we,colwidth:jt})}}(jt,qe,B),jt}(B))}};function dg(B){if(B.colwidth)return B.colwidth.slice();const S=[];for(let T=0;T<B.colspan;T++)S.push(0);return S}function y_(B,S){if("string"==typeof B)return{};const T=B.getAttribute("data-colwidth"),W=T&&/^\d+(,\d+)*$/.test(T)?T.split(",").map(qe=>Number(qe)):null,ce=Number(B.getAttribute("colspan")||1),we={colspan:ce,rowspan:Number(B.getAttribute("rowspan")||1),colwidth:W&&W.length==ce?W:null};for(const qe in S){const jt=S[qe].getFromDOM,_n=jt&&jt(B);null!=_n&&(we[qe]=_n)}return we}function Am(B,S){const T={};1!=B.attrs.colspan&&(T.colspan=B.attrs.colspan),1!=B.attrs.rowspan&&(T.rowspan=B.attrs.rowspan),B.attrs.colwidth&&(T["data-colwidth"]=B.attrs.colwidth.join(","));for(const W in S){const ce=S[W].setDOMAttr;ce&&ce(B.attrs[W],T)}return T}function mu(B){let S=B.cached.tableNodeTypes;if(!S){S=B.cached.tableNodeTypes={};for(const T in B.nodes){const W=B.nodes[T],ce=W.spec.tableRole;ce&&(S[ce]=W)}}return S}var Pf=new Yi("selectingCells");function Up(B){for(let S=B.depth-1;S>0;S--)if("row"==B.node(S).type.spec.tableRole)return B.node(0).resolve(B.before(S+1));return null}function Wf(B){const S=B.selection.$head;for(let T=S.depth;T>0;T--)if("row"==S.node(T).type.spec.tableRole)return!0;return!1}function nm(B){const S=B.selection;if("$anchorCell"in S&&S.$anchorCell)return S.$anchorCell.pos>S.$headCell.pos?S.$anchorCell:S.$headCell;if("node"in S&&S.node&&"cell"==S.node.type.spec.tableRole)return S.$anchor;const T=Up(S.$head)||function $g(B){for(let S=B.nodeAfter,T=B.pos;S;S=S.firstChild,T++){const W=S.type.spec.tableRole;if("cell"==W||"header_cell"==W)return B.doc.resolve(T)}for(let S=B.nodeBefore,T=B.pos;S;S=S.lastChild,T--){const W=S.type.spec.tableRole;if("cell"==W||"header_cell"==W)return B.doc.resolve(T-S.nodeSize)}}(S.$head);if(T)return T;throw new RangeError(`No cell found around position ${S.head}`)}function Om(B){return"row"==B.parent.type.spec.tableRole&&!!B.nodeAfter}function $m(B,S){return B.depth==S.depth&&B.pos>=S.start(-1)&&B.pos<=S.end(-1)}function pg(B,S,T){const W=B.node(-1),ce=Oc.get(W),we=B.start(-1),qe=ce.nextCell(B.pos-we,S,T);return null==qe?null:B.node(0).resolve(we+qe)}function op(B,S,T=1){const W={...B,colspan:B.colspan-T};return W.colwidth&&(W.colwidth=W.colwidth.slice(),W.colwidth.splice(S,T),W.colwidth.some(ce=>ce>0)||(W.colwidth=null)),W}function rp(B,S,T=1){const W={...B,colspan:B.colspan+T};if(W.colwidth){W.colwidth=W.colwidth.slice();for(let ce=0;ce<T;ce++)W.colwidth.splice(S,0,0)}return W}var qc=class extends kr{constructor(B,S=B){const T=B.node(-1),W=Oc.get(T),ce=B.start(-1),we=W.rectBetween(B.pos-ce,S.pos-ce),qe=B.node(0),jt=W.cellsInRect(we).filter(bi=>bi!=S.pos-ce);jt.unshift(S.pos-ce);const _n=jt.map(bi=>{const qi=T.nodeAt(bi);if(!qi)throw RangeError(`No cell with offset ${bi} found`);const Oo=ce+bi+1;return new xs(qe.resolve(Oo),qe.resolve(Oo+qi.content.size))});super(_n[0].$from,_n[0].$to,_n),this.$anchorCell=B,this.$headCell=S}map(B,S){const T=B.resolve(S.map(this.$anchorCell.pos)),W=B.resolve(S.map(this.$headCell.pos));if(Om(T)&&Om(W)&&$m(T,W)){const ce=this.$anchorCell.node(-1)!=T.node(-1);return ce&&this.isRowSelection()?qc.rowSelection(T,W):ce&&this.isColSelection()?qc.colSelection(T,W):new qc(T,W)}return Ss.between(T,W)}content(){const B=this.$anchorCell.node(-1),S=Oc.get(B),T=this.$anchorCell.start(-1),W=S.rectBetween(this.$anchorCell.pos-T,this.$headCell.pos-T),ce={},we=[];for(let jt=W.top;jt<W.bottom;jt++){const _n=[];for(let bi=jt*S.width+W.left,qi=W.left;qi<W.right;qi++,bi++){const Oo=S.map[bi];if(ce[Oo])continue;ce[Oo]=!0;const rr=S.findCell(Oo);let fr=B.nodeAt(Oo);if(!fr)throw RangeError(`No cell with offset ${Oo} found`);const Gr=W.left-rr.left,As=rr.right-W.right;if(Gr>0||As>0){let ka=fr.attrs;if(Gr>0&&(ka=op(ka,0,Gr)),As>0&&(ka=op(ka,ka.colspan-As,As)),rr.left<W.left){if(fr=fr.type.createAndFill(ka),!fr)throw RangeError(`Could not create cell with attrs ${JSON.stringify(ka)}`)}else fr=fr.type.create(ka,fr.content)}if(rr.top<W.top||rr.bottom>W.bottom){const ka={...fr.attrs,rowspan:Math.min(rr.bottom,W.bottom)-Math.max(rr.top,W.top)};fr=rr.top<W.top?fr.type.createAndFill(ka):fr.type.create(ka,fr.content)}_n.push(fr)}we.push(B.child(jt).copy(E.from(_n)))}const qe=this.isColSelection()&&this.isRowSelection()?B:we;return new P(E.from(qe),1,1)}replace(B,S=P.empty){const T=B.steps.length,W=this.ranges;for(let we=0;we<W.length;we++){const{$from:qe,$to:jt}=W[we],_n=B.mapping.slice(T);B.replace(_n.map(qe.pos),_n.map(jt.pos),we?P.empty:S)}const ce=kr.findFrom(B.doc.resolve(B.mapping.slice(T).map(this.to)),-1);ce&&B.setSelection(ce)}replaceWith(B,S){this.replace(B,new P(E.from(S),0,0))}forEachCell(B){const S=this.$anchorCell.node(-1),T=Oc.get(S),W=this.$anchorCell.start(-1),ce=T.cellsInRect(T.rectBetween(this.$anchorCell.pos-W,this.$headCell.pos-W));for(let we=0;we<ce.length;we++)B(S.nodeAt(ce[we]),W+ce[we])}isColSelection(){const B=this.$anchorCell.index(-1),S=this.$headCell.index(-1);return!(Math.min(B,S)>0)&&Math.max(B+this.$anchorCell.nodeAfter.attrs.rowspan,S+this.$headCell.nodeAfter.attrs.rowspan)==this.$headCell.node(-1).childCount}static colSelection(B,S=B){const T=B.node(-1),W=Oc.get(T),ce=B.start(-1),we=W.findCell(B.pos-ce),qe=W.findCell(S.pos-ce),jt=B.node(0);return we.top<=qe.top?(we.top>0&&(B=jt.resolve(ce+W.map[we.left])),qe.bottom<W.height&&(S=jt.resolve(ce+W.map[W.width*(W.height-1)+qe.right-1]))):(qe.top>0&&(S=jt.resolve(ce+W.map[qe.left])),we.bottom<W.height&&(B=jt.resolve(ce+W.map[W.width*(W.height-1)+we.right-1]))),new qc(B,S)}isRowSelection(){const B=this.$anchorCell.node(-1),S=Oc.get(B),T=this.$anchorCell.start(-1),W=S.colCount(this.$anchorCell.pos-T),ce=S.colCount(this.$headCell.pos-T);return!(Math.min(W,ce)>0)&&Math.max(W+this.$anchorCell.nodeAfter.attrs.colspan,ce+this.$headCell.nodeAfter.attrs.colspan)==S.width}eq(B){return B instanceof qc&&B.$anchorCell.pos==this.$anchorCell.pos&&B.$headCell.pos==this.$headCell.pos}static rowSelection(B,S=B){const T=B.node(-1),W=Oc.get(T),ce=B.start(-1),we=W.findCell(B.pos-ce),qe=W.findCell(S.pos-ce),jt=B.node(0);return we.left<=qe.left?(we.left>0&&(B=jt.resolve(ce+W.map[we.top*W.width])),qe.right<W.width&&(S=jt.resolve(ce+W.map[W.width*(qe.top+1)-1]))):(qe.left>0&&(S=jt.resolve(ce+W.map[qe.top*W.width])),we.right<W.width&&(B=jt.resolve(ce+W.map[W.width*(we.top+1)-1]))),new qc(B,S)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(B,S){return new qc(B.resolve(S.anchor),B.resolve(S.head))}static create(B,S,T=S){return new qc(B.resolve(S),B.resolve(T))}getBookmark(){return new Qm(this.$anchorCell.pos,this.$headCell.pos)}};qc.prototype.visible=!1,kr.jsonID("cell",qc);var Qm=class{constructor(B,S){this.anchor=B,this.head=S}map(B){return new Qm(B.map(this.anchor),B.map(this.head))}resolve(B){const S=B.resolve(this.anchor),T=B.resolve(this.head);return"row"==S.parent.type.spec.tableRole&&"row"==T.parent.type.spec.tableRole&&S.index()<S.parent.childCount&&T.index()<T.parent.childCount&&$m(S,T)?new qc(S,T):kr.near(T,1)}};function Pm(B){if(!(B.selection instanceof qc))return null;const S=[];return B.selection.forEachCell((T,W)=>{S.push(Ou.node(W,W+T.nodeSize,{class:"selectedCell"}))}),ac.create(B.doc,S)}var yh=new Yi("fix-tables");function bm(B,S,T,W){const ce=B.childCount,we=S.childCount;e:for(let qe=0,jt=0;qe<we;qe++){const _n=S.child(qe);for(let bi=jt,qi=Math.min(ce,qe+3);bi<qi;bi++)if(B.child(bi)==_n){jt=bi+1,T+=_n.nodeSize;continue e}W(_n,T),jt<ce&&B.child(jt).sameMarkup(_n)?bm(B.child(jt),_n,T+1,W):_n.nodesBetween(0,_n.content.size,W,T+1),T+=_n.nodeSize}}function Qg(B,S){let T;const W=(ce,we)=>{"table"==ce.type.spec.tableRole&&(T=function Pg(B,S,T,W){const ce=Oc.get(S);if(!ce.problems)return W;W||(W=B.tr);const we=[];for(let _n=0;_n<ce.height;_n++)we.push(0);for(let _n=0;_n<ce.problems.length;_n++){const bi=ce.problems[_n];if("collision"==bi.type){const qi=S.nodeAt(bi.pos);if(!qi)continue;const Oo=qi.attrs;for(let rr=0;rr<Oo.rowspan;rr++)we[bi.row+rr]+=bi.n;W.setNodeMarkup(W.mapping.map(T+1+bi.pos),null,op(Oo,Oo.colspan-bi.n,bi.n))}else if("missing"==bi.type)we[bi.row]+=bi.n;else if("overlong_rowspan"==bi.type){const qi=S.nodeAt(bi.pos);if(!qi)continue;W.setNodeMarkup(W.mapping.map(T+1+bi.pos),null,{...qi.attrs,rowspan:qi.attrs.rowspan-bi.n})}else if("colwidth mismatch"==bi.type){const qi=S.nodeAt(bi.pos);if(!qi)continue;W.setNodeMarkup(W.mapping.map(T+1+bi.pos),null,{...qi.attrs,colwidth:bi.colwidth})}}let qe,jt;for(let _n=0;_n<we.length;_n++)we[_n]&&(null==qe&&(qe=_n),jt=_n);for(let _n=0,bi=T+1;_n<ce.height;_n++){const qi=S.child(_n),Oo=bi+qi.nodeSize,rr=we[_n];if(rr>0){let fr="cell";qi.firstChild&&(fr=qi.firstChild.type.spec.tableRole);const Gr=[];for(let ka=0;ka<rr;ka++){const hl=mu(B.schema)[fr].createAndFill();hl&&Gr.push(hl)}W.insert(W.mapping.map(0!=_n&&qe!=_n-1||jt!=_n?Oo-1:bi+1),Gr)}bi=Oo}return W.setMeta(yh,{fixTables:!0})}(B,ce,we,T))};return S?S.doc!=B.doc&&bm(S.doc,B.doc,0,W):B.doc.descendants(W),T}function Cm(B,S){const T=B.createAndFill();return new qo(T).replace(0,T.content.size,S).doc}function Cp(B,S,T,W,ce,we,qe,jt){if(0==qe||qe==S.height)return!1;let _n=!1;for(let bi=ce;bi<we;bi++){const qi=qe*S.width+bi,Oo=S.map[qi];if(S.map[qi-S.width]==Oo){_n=!0;const rr=T.nodeAt(Oo),{top:fr,left:Gr}=S.findCell(Oo);B.setNodeMarkup(B.mapping.slice(jt).map(Oo+W),null,{...rr.attrs,rowspan:qe-fr}),B.insert(B.mapping.slice(jt).map(S.positionAt(qe,Gr,T)),rr.type.createAndFill({...rr.attrs,rowspan:fr+rr.attrs.rowspan-qe})),bi+=rr.attrs.colspan-1}}return _n}function xp(B,S,T,W,ce,we,qe,jt){if(0==qe||qe==S.width)return!1;let _n=!1;for(let bi=ce;bi<we;bi++){const qi=bi*S.width+qe,Oo=S.map[qi];if(S.map[qi-1]==Oo){_n=!0;const rr=T.nodeAt(Oo),fr=S.colCount(Oo),Gr=B.mapping.slice(jt).map(Oo+W);B.setNodeMarkup(Gr,null,op(rr.attrs,qe-fr,rr.attrs.colspan-(qe-fr))),B.insert(Gr+rr.nodeSize,rr.type.createAndFill(op(rr.attrs,0,qe-fr))),bi+=rr.attrs.rowspan-1}}return _n}function om(B,S,T,W,ce){let we=T?B.doc.nodeAt(T-1):B.doc;if(!we)throw new Error("No table found");let qe=Oc.get(we);const{top:jt,left:_n}=W,bi=_n+ce.width,qi=jt+ce.height,Oo=B.tr;let rr=0;function fr(){if(we=T?Oo.doc.nodeAt(T-1):Oo.doc,!we)throw new Error("No table found");qe=Oc.get(we),rr=Oo.mapping.maps.length}(function Sm(B,S,T,W,ce,we,qe){const _n=mu(B.doc.type.schema);let bi,qi;if(ce>S.width)for(let Oo=0,rr=0;Oo<S.height;Oo++){const fr=T.child(Oo);rr+=fr.nodeSize;const Gr=[];let As;As=null==fr.lastChild||fr.lastChild.type==_n.cell?bi||(bi=_n.cell.createAndFill()):qi||(qi=_n.header_cell.createAndFill());for(let ka=S.width;ka<ce;ka++)Gr.push(As);B.insert(B.mapping.slice(qe).map(rr-1+W),Gr)}if(we>S.height){const Oo=[];for(let Gr=0,As=(S.height-1)*S.width;Gr<Math.max(S.width,ce);Gr++){const ka=!(Gr>=S.width)&&T.nodeAt(S.map[As+Gr]).type==_n.header_cell;Oo.push(ka?qi||(qi=_n.header_cell.createAndFill()):bi||(bi=_n.cell.createAndFill()))}const rr=_n.row.create(null,E.from(Oo)),fr=[];for(let Gr=S.height;Gr<we;Gr++)fr.push(rr);B.insert(B.mapping.slice(qe).map(W+T.nodeSize-2),fr)}return!(!bi&&!qi)})(Oo,qe,we,T,bi,qi,rr)&&fr(),Cp(Oo,qe,we,T,_n,bi,jt,rr)&&fr(),Cp(Oo,qe,we,T,_n,bi,qi,rr)&&fr(),xp(Oo,qe,we,T,jt,qi,_n,rr)&&fr(),xp(Oo,qe,we,T,jt,qi,bi,rr)&&fr();for(let Gr=jt;Gr<qi;Gr++){const As=qe.positionAt(Gr,_n,we),ka=qe.positionAt(Gr,bi,we);Oo.replace(Oo.mapping.slice(rr).map(As+T),Oo.mapping.slice(rr).map(ka+T),new P(ce.rows[Gr-jt],0,0))}fr(),Oo.setSelection(new qc(Oo.doc.resolve(T+qe.positionAt(jt,_n,we)),Oo.doc.resolve(T+qe.positionAt(qi-1,bi-1,we)))),S(Oo)}var Xg=Km({ArrowLeft:jf("horiz",-1),ArrowRight:jf("horiz",1),ArrowUp:jf("vert",-1),ArrowDown:jf("vert",1),"Shift-ArrowLeft":sp("horiz",-1),"Shift-ArrowRight":sp("horiz",1),"Shift-ArrowUp":sp("vert",-1),"Shift-ArrowDown":sp("vert",1),Backspace:Rf,"Mod-Backspace":Rf,Delete:Rf,"Mod-Delete":Rf});function sf(B,S,T){return!T.eq(B.selection)&&(S&&S(B.tr.setSelection(T).scrollIntoView()),!0)}function jf(B,S){return(T,W,ce)=>{if(!ce)return!1;const we=T.selection;if(we instanceof qc)return sf(T,W,kr.near(we.$headCell,S));if("horiz"!=B&&!we.empty)return!1;const qe=Gp(ce,B,S);if(null==qe)return!1;if("horiz"==B)return sf(T,W,kr.near(T.doc.resolve(we.head+S),S));{const jt=T.doc.resolve(qe),_n=pg(jt,B,S);let bi;return bi=_n?kr.near(_n,1):S<0?kr.near(T.doc.resolve(jt.before(-1)),-1):kr.near(T.doc.resolve(jt.after(-1)),1),sf(T,W,bi)}}}function sp(B,S){return(T,W,ce)=>{if(!ce)return!1;const we=T.selection;let qe;if(we instanceof qc)qe=we;else{const _n=Gp(ce,B,S);if(null==_n)return!1;qe=new qc(T.doc.resolve(_n))}const jt=pg(qe.$headCell,B,S);return!!jt&&sf(T,W,new qc(qe.$anchorCell,jt))}}function Rf(B,S){const T=B.selection;if(!(T instanceof qc))return!1;if(S){const W=B.tr,ce=mu(B.schema).cell.createAndFill().content;T.forEachCell((we,qe)=>{we.content.eq(ce)||W.replace(W.mapping.map(qe+1),W.mapping.map(qe+we.nodeSize-1),new P(ce,0,0))}),W.docChanged&&S(W)}return!0}function Rm(B,S){const W=Up(B.state.doc.resolve(S));return!!W&&(B.dispatch(B.state.tr.setSelection(new qc(W))),!0)}function ap(B,S,T){if(!Wf(B.state))return!1;let W=function Cf(B){if(!B.size)return null;let{content:S,openStart:T,openEnd:W}=B;for(;1==S.childCount&&(T>0&&W>0||"table"==S.child(0).type.spec.tableRole);)T--,W--,S=S.child(0).content;const ce=S.child(0),we=ce.type.spec.tableRole,qe=ce.type.schema,jt=[];if("row"==we)for(let _n=0;_n<S.childCount;_n++){let bi=S.child(_n).content;const qi=_n?0:Math.max(0,T-1),Oo=_n<S.childCount-1?0:Math.max(0,W-1);(qi||Oo)&&(bi=Cm(mu(qe).row,new P(bi,qi,Oo)).content),jt.push(bi)}else{if("cell"!=we&&"header_cell"!=we)return null;jt.push(T||W?Cm(mu(qe).row,new P(S,T,W)).content:S)}return function rd(B,S){const T=[];for(let ce=0;ce<S.length;ce++){const we=S[ce];for(let qe=we.childCount-1;qe>=0;qe--){const{rowspan:jt,colspan:_n}=we.child(qe).attrs;for(let bi=ce;bi<ce+jt;bi++)T[bi]=(T[bi]||0)+_n}}let W=0;for(let ce=0;ce<T.length;ce++)W=Math.max(W,T[ce]);for(let ce=0;ce<T.length;ce++)if(ce>=S.length&&S.push(E.empty),T[ce]<W){const we=mu(B).cell.createAndFill(),qe=[];for(let jt=T[ce];jt<W;jt++)qe.push(we);S[ce]=S[ce].append(E.from(qe))}return{height:S.length,width:W,rows:S}}(qe,jt)}(T);const ce=B.state.selection;if(ce instanceof qc){W||(W={width:1,height:1,rows:[E.from(Cm(mu(B.state.schema).cell,T))]});const we=ce.$anchorCell.node(-1),qe=ce.$anchorCell.start(-1),jt=Oc.get(we).rectBetween(ce.$anchorCell.pos-qe,ce.$headCell.pos-qe);return W=function xm({width:B,height:S,rows:T},W,ce){if(B!=W){const we=[],qe=[];for(let jt=0;jt<T.length;jt++){const _n=T[jt],bi=[];for(let qi=we[jt]||0,Oo=0;qi<W;Oo++){let rr=_n.child(Oo%_n.childCount);qi+rr.attrs.colspan>W&&(rr=rr.type.createChecked(op(rr.attrs,rr.attrs.colspan,qi+rr.attrs.colspan-W),rr.content)),bi.push(rr),qi+=rr.attrs.colspan;for(let fr=1;fr<rr.attrs.rowspan;fr++)we[jt+fr]=(we[jt+fr]||0)+rr.attrs.colspan}qe.push(E.from(bi))}T=qe,B=W}if(S!=ce){const we=[];for(let qe=0,jt=0;qe<ce;qe++,jt++){const _n=[],bi=T[jt%S];for(let qi=0;qi<bi.childCount;qi++){let Oo=bi.child(qi);qe+Oo.attrs.rowspan>ce&&(Oo=Oo.type.create({...Oo.attrs,rowspan:Math.max(1,ce-Oo.attrs.rowspan)},Oo.content)),_n.push(Oo)}we.push(E.from(_n))}T=we,S=ce}return{width:B,height:S,rows:T}}(W,jt.right-jt.left,jt.bottom-jt.top),om(B.state,B.dispatch,qe,jt,W),!0}if(W){const we=nm(B.state),qe=we.start(-1);return om(B.state,B.dispatch,qe,Oc.get(we.node(-1)).findCell(we.pos-qe),W),!0}return!1}function rm(B,S){var T;if(S.ctrlKey||S.metaKey)return;const W=jd(B,S.target);let ce;if(S.shiftKey&&B.state.selection instanceof qc)we(B.state.selection.$anchorCell,S),S.preventDefault();else if(S.shiftKey&&W&&null!=(ce=Up(B.state.selection.$anchor))&&(null==(T=xf(B,S))?void 0:T.pos)!=ce.pos)we(ce,S),S.preventDefault();else if(!W)return;function we(_n,bi){let qi=xf(B,bi);const Oo=null==Pf.getState(B.state);if(!qi||!$m(_n,qi)){if(!Oo)return;qi=_n}const rr=new qc(_n,qi);if(Oo||!B.state.selection.eq(rr)){const fr=B.state.tr.setSelection(rr);Oo&&fr.setMeta(Pf,_n.pos),B.dispatch(fr)}}function qe(){B.root.removeEventListener("mouseup",qe),B.root.removeEventListener("dragstart",qe),B.root.removeEventListener("mousemove",jt),null!=Pf.getState(B.state)&&B.dispatch(B.state.tr.setMeta(Pf,-1))}function jt(_n){const bi=_n,qi=Pf.getState(B.state);let Oo;if(null!=qi)Oo=B.state.doc.resolve(qi);else if(jd(B,bi.target)!=W&&(Oo=xf(B,S),!Oo))return qe();Oo&&we(Oo,bi)}B.root.addEventListener("mouseup",qe),B.root.addEventListener("dragstart",qe),B.root.addEventListener("mousemove",jt)}function Gp(B,S,T){if(!(B.state.selection instanceof Ss))return null;const{$head:W}=B.state.selection;for(let ce=W.depth-1;ce>=0;ce--){const we=W.node(ce);if((T<0?W.index(ce):W.indexAfter(ce))!=(T<0?0:we.childCount))return null;if("cell"==we.type.spec.tableRole||"header_cell"==we.type.spec.tableRole){const jt=W.before(ce);return B.endOfTextblock("vert"==S?T>0?"down":"up":T>0?"right":"left")?jt:null}}return null}function jd(B,S){for(;S&&S!=B.dom;S=S.parentNode)if("TD"==S.nodeName||"TH"==S.nodeName)return S;return null}function xf(B,S){const T=B.posAtCoords({left:S.clientX,top:S.clientY});return T&&T?Up(B.state.doc.resolve(T.pos)):null}function Gu(B){const S=B.selection,T=nm(B),W=T.node(-1),ce=T.start(-1),we=Oc.get(W);return{...S instanceof qc?we.rectBetween(S.$anchorCell.pos-ce,S.$headCell.pos-ce):we.findCell(T.pos-ce),tableStart:ce,map:we,table:W}}function Hu(B,{map:S,tableStart:T,table:W},ce){let we=ce>0?-1:0;(function Zh(B,S,T){const W=mu(S.type.schema).header_cell;for(let ce=0;ce<B.height;ce++)if(S.nodeAt(B.map[T+ce*B.width]).type!=W)return!1;return!0})(S,W,ce+we)&&(we=0==ce||ce==S.width?null:0);for(let qe=0;qe<S.height;qe++){const jt=qe*S.width+ce;if(ce>0&&ce<S.width&&S.map[jt-1]==S.map[jt]){const _n=S.map[jt],bi=W.nodeAt(_n);B.setNodeMarkup(B.mapping.map(T+_n),null,rp(bi.attrs,ce-S.colCount(_n))),qe+=bi.attrs.rowspan-1}else{const _n=null==we?mu(W.type.schema).cell:W.nodeAt(S.map[jt+we]).type,bi=S.positionAt(qe,ce,W);B.insert(B.mapping.map(T+bi),_n.createAndFill())}}return B}function up(B,{map:S,table:T,tableStart:W},ce){const we=B.mapping.maps.length;for(let qe=0;qe<S.height;){const jt=qe*S.width+ce,_n=S.map[jt],bi=T.nodeAt(_n),qi=bi.attrs;if(ce>0&&S.map[jt-1]==_n||ce<S.width-1&&S.map[jt+1]==_n)B.setNodeMarkup(B.mapping.slice(we).map(W+_n),null,op(qi,ce-S.colCount(_n)));else{const Oo=B.mapping.slice(we).map(W+_n);B.delete(Oo,Oo+bi.nodeSize)}qe+=qi.rowspan}}function Pu(B,{map:S,tableStart:T,table:W},ce){var we;let qe=T;for(let bi=0;bi<ce;bi++)qe+=W.child(bi).nodeSize;const jt=[];let _n=ce>0?-1:0;(function Fm(B,S,T){var W;const ce=mu(S.type.schema).header_cell;for(let we=0;we<B.width;we++)if((null==(W=S.nodeAt(B.map[we+T*B.width]))?void 0:W.type)!=ce)return!1;return!0})(S,W,ce+_n)&&(_n=0==ce||ce==S.height?null:0);for(let bi=0,qi=S.width*ce;bi<S.width;bi++,qi++)if(ce>0&&ce<S.height&&S.map[qi]==S.map[qi-S.width]){const Oo=S.map[qi],rr=W.nodeAt(Oo).attrs;B.setNodeMarkup(T+Oo,null,{...rr,rowspan:rr.rowspan+1}),bi+=rr.colspan-1}else{const Oo=null==_n?mu(W.type.schema).cell:null==(we=W.nodeAt(S.map[qi+_n*S.width]))?void 0:we.type,rr=Oo?.createAndFill();rr&&jt.push(rr)}return B.insert(qe,mu(W.type.schema).row.create(null,jt)),B}function Yf(B,{map:S,table:T,tableStart:W},ce){let we=0;for(let _n=0;_n<ce;_n++)we+=T.child(_n).nodeSize;const qe=we+T.child(ce).nodeSize,jt=B.mapping.maps.length;B.delete(we+W,qe+W);for(let _n=0,bi=ce*S.width;_n<S.width;_n++,bi++){const qi=S.map[bi];if(ce>0&&qi==S.map[bi-S.width]){const Oo=T.nodeAt(qi).attrs;B.setNodeMarkup(B.mapping.slice(jt).map(qi+W),null,{...Oo,rowspan:Oo.rowspan-1}),_n+=Oo.colspan-1}else if(ce<S.width&&qi==S.map[bi+S.width]){const Oo=T.nodeAt(qi),rr=Oo.attrs,fr=Oo.type.create({...rr,rowspan:Oo.attrs.rowspan-1},Oo.content),Gr=S.positionAt(ce+1,_n,T);B.insert(B.mapping.slice(jt).map(W+Gr),fr),_n+=rr.colspan-1}}}function Hp(B,S){if(!Wf(B))return!1;if(S){const T=Gu(B),W=B.tr;if(0==T.top&&T.bottom==T.map.height)return!1;for(let ce=T.bottom-1;Yf(W,T,ce),ce!=T.top;ce--){const we=T.tableStart?W.doc.nodeAt(T.tableStart-1):W.doc;if(!we)throw RangeError("No table found");T.table=we,T.map=Oc.get(T.table)}S(W)}return!0}function Vp(B){const S=B.content;return 1==S.childCount&&S.child(0).isTextblock&&0==S.child(0).childCount}function _g(B,S){const T=B.selection;if(!(T instanceof qc)||T.$anchorCell.pos==T.$headCell.pos)return!1;const W=Gu(B),{map:ce}=W;if(function Em({width:B,height:S,map:T},W){let ce=W.top*B+W.left,we=ce,qe=(W.bottom-1)*B+W.left,jt=ce+(W.right-W.left-1);for(let _n=W.top;_n<W.bottom;_n++){if(W.left>0&&T[we]==T[we-1]||W.right<B&&T[jt]==T[jt+1])return!0;we+=B,jt+=B}for(let _n=W.left;_n<W.right;_n++){if(W.top>0&&T[ce]==T[ce-B]||W.bottom<S&&T[qe]==T[qe+B])return!0;ce++,qe++}return!1}(ce,W))return!1;if(S){const we=B.tr,qe={};let _n,bi,jt=E.empty;for(let qi=W.top;qi<W.bottom;qi++)for(let Oo=W.left;Oo<W.right;Oo++){const rr=ce.map[qi*ce.width+Oo],fr=W.table.nodeAt(rr);if(!qe[rr]&&fr)if(qe[rr]=!0,null==_n)_n=rr,bi=fr;else{Vp(fr)||(jt=jt.append(fr.content));const Gr=we.mapping.map(rr+W.tableStart);we.delete(Gr,Gr+fr.nodeSize)}}if(null==_n||null==bi)return!0;if(we.setNodeMarkup(_n+W.tableStart,null,{...rp(bi.attrs,bi.attrs.colspan,W.right-W.left-bi.attrs.colspan),rowspan:W.bottom-W.top}),jt.size){const qi=_n+1+bi.content.size,Oo=Vp(bi)?_n+1:qi;we.replaceWith(Oo+W.tableStart,qi+W.tableStart,jt)}we.setSelection(new qc(we.doc.resolve(_n+W.tableStart))),S(we)}return!0}function Fg(B,S){const T=mu(B.schema);return function Wp(B){return(S,T)=>{var W;const ce=S.selection;let we,qe;if(ce instanceof qc){if(ce.$anchorCell.pos!=ce.$headCell.pos)return!1;we=ce.$anchorCell.nodeAfter,qe=ce.$anchorCell.pos}else{if(we=function C_(B){for(let S=B.depth;S>0;S--){const T=B.node(S).type.spec.tableRole;if("cell"===T||"header_cell"===T)return B.node(S)}return null}(ce.$from),!we)return!1;qe=null==(W=Up(ce.$from))?void 0:W.pos}if(null==we||null==qe||1==we.attrs.colspan&&1==we.attrs.rowspan)return!1;if(T){let jt=we.attrs;const _n=[],bi=jt.colwidth;jt.rowspan>1&&(jt={...jt,rowspan:1}),jt.colspan>1&&(jt={...jt,colspan:1});const qi=Gu(S),Oo=S.tr;for(let fr=0;fr<qi.right-qi.left;fr++)_n.push(bi?{...jt,colwidth:bi&&bi[fr]?[bi[fr]]:null}:jt);let rr;for(let fr=qi.top;fr<qi.bottom;fr++){let Gr=qi.map.positionAt(fr,qi.left,qi.table);fr==qi.top&&(Gr+=we.nodeSize);for(let As=qi.left,ka=0;As<qi.right;As++,ka++)As==qi.left&&fr==qi.top||Oo.insert(rr=Oo.mapping.map(Gr+qi.tableStart,1),B({node:we,row:fr,col:As}).createAndFill(_n[ka]))}Oo.setNodeMarkup(qe,B({node:we,row:qi.top,col:qi.left}),_n[0]),ce instanceof qc&&Oo.setSelection(new qc(Oo.doc.resolve(ce.$anchorCell.pos),rr?Oo.doc.resolve(rr):void 0)),T(Oo)}return!0}}(({node:W})=>T[W.type.spec.tableRole])(B,S)}function qm(B,S,T){const W=S.map.cellsInRect({left:0,top:0,right:"row"==B?S.map.width:1,bottom:"column"==B?S.map.height:1});for(let ce=0;ce<W.length;ce++){const we=S.table.nodeAt(W[ce]);if(we&&we.type!==T.header_cell)return!1}return!0}function Nf(B,S){return(S=S||{useDeprecatedLogic:!1}).useDeprecatedLogic?function nc(B){return function(S,T){if(!Wf(S))return!1;if(T){const W=mu(S.schema),ce=Gu(S),we=S.tr,qe=ce.map.cellsInRect("column"==B?{left:ce.left,top:0,right:ce.right,bottom:ce.map.height}:"row"==B?{left:0,top:ce.top,right:ce.map.width,bottom:ce.bottom}:ce),jt=qe.map(_n=>ce.table.nodeAt(_n));for(let _n=0;_n<qe.length;_n++)jt[_n].type==W.header_cell&&we.setNodeMarkup(ce.tableStart+qe[_n],W.cell,jt[_n].attrs);if(0==we.steps.length)for(let _n=0;_n<qe.length;_n++)we.setNodeMarkup(ce.tableStart+qe[_n],W.header_cell,jt[_n].attrs);T(we)}return!0}}(B):function(T,W){if(!Wf(T))return!1;if(W){const ce=mu(T.schema),we=Gu(T),qe=T.tr,jt=qm("row",we,ce),_n=qm("column",we,ce),qi=("column"===B?jt:"row"===B&&_n)?1:0,rr="column"==B?_n?ce.cell:ce.header_cell:"row"==B?jt?ce.cell:ce.header_cell:ce.cell;we.map.cellsInRect("column"==B?{left:0,top:qi,right:1,bottom:we.map.height}:"row"==B?{left:qi,top:0,right:we.map.width,bottom:1}:we).forEach(fr=>{const Gr=fr+we.tableStart,As=qe.doc.nodeAt(Gr);As&&qe.setNodeMarkup(Gr,rr,As.attrs)}),W(qe)}return!0}}function Bd(B,S){const T=B.selection.$anchor;for(let W=T.depth;W>0;W--)if("table"==T.node(W).type.spec.tableRole)return S&&S(B.tr.delete(T.before(W),T.after(W)).scrollIntoView()),!0;return!1}function Ep({allowTableNodeSelection:B=!1}={}){return new ht({key:Pf,state:{init:()=>null,apply(S,T){const W=S.getMeta(Pf);if(null!=W)return-1==W?null:W;if(null==T||!S.docChanged)return T;const{deleted:ce,pos:we}=S.mapping.mapResult(T);return ce?null:we}},props:{decorations:Pm,handleDOMEvents:{mousedown:rm},createSelectionBetween:S=>null!=Pf.getState(S.state)?S.state.selection:null,handleTripleClick:Rm,handleKeyDown:Xg,handlePaste:ap},appendTransaction:(S,T,W)=>function im(B,S,T){const W=(S||B).selection,ce=(S||B).doc;let we,qe;if(W instanceof $o&&(qe=W.node.type.spec.tableRole)){if("cell"==qe||"header_cell"==qe)we=qc.create(ce,W.from);else if("row"==qe){const jt=ce.resolve(W.from+1);we=qc.rowSelection(jt,jt)}else if(!T){const jt=Oc.get(W.node),_n=W.from+1;we=qc.create(ce,_n+1,_n+jt.map[jt.width*jt.height-1])}}else W instanceof Ss&&function Xm({$from:B,$to:S}){if(B.pos==S.pos||B.pos<B.pos-6)return!1;let T=B.pos,W=S.pos,ce=B.depth;for(;ce>=0&&!(B.after(ce+1)<B.end(ce));ce--,T++);for(let we=S.depth;we>=0&&!(S.before(we+1)>S.start(we));we--,W--);return T==W&&/row|table/.test(B.node(ce).type.spec.tableRole)}(W)?we=Ss.create(ce,W.from):W instanceof Ss&&function mg({$from:B,$to:S}){let T,W;for(let ce=B.depth;ce>0;ce--){const we=B.node(ce);if("cell"===we.type.spec.tableRole||"header_cell"===we.type.spec.tableRole){T=we;break}}for(let ce=S.depth;ce>0;ce--){const we=S.node(ce);if("cell"===we.type.spec.tableRole||"header_cell"===we.type.spec.tableRole){W=we;break}}return T!==W&&0===S.parentOffset}(W)&&(we=Ss.create(ce,W.$from.start(),W.$from.end()));return we&&(S||(S=B.tr)).setSelection(we),S}(W,Qg(W,T),B)})}new Yi("tableColumnResizing"),Nf("row",{useDeprecatedLogic:!0}),Nf("column",{useDeprecatedLogic:!0}),Nf("cell",{useDeprecatedLogic:!0});const S_=["blockquote",0],eg=["hr"],Tm=["pre",["code",0]],t_=["ol",0],Tp=["ul",0],zm=["li",0],Dd=B=>{const S={};let W,T=B.attributes;for(let ce=0;ce<T.length;ce++)W=T[ce],S[W.name]=W.value;return S},Oh=B=>{const S={};return B.forEach(T=>{S[T]={default:null}}),S},Ph=()=>Oh(["style","class","id"]),bd=(B,S)=>{for(let T in B)if(T&&null!==B[T]&&T!==S)return!0;return!1},uh=(B,S=[])=>{const T={};for(let W in B)W&&null!==B[W]&&!S.find(ce=>ce===W)&&(T[W]=B[W]);return T},Ac=B=>({[B]:{name:B,inclusive:!0,parseDOM:[{tag:B}],toDOM:()=>[B,0]}}),ol=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({link:{attrs:Object.assign(Object.assign({},Ph()),{href:{default:null},target:{default:null},title:{default:null}}),inclusive:!1,parseDOM:[{tag:"a",getAttrs:Dd}],toDOM:B=>["a",uh(B.attrs),0]}},Ac("strong")),Ac("b")),Ac("em")),Ac("i")),Ac("del")),Ac("sub")),Ac("sup")),Ac("code")),{style:{attrs:Object.assign({},Ph()),parseDOM:[{tag:"span",getAttrs:Dd}],toDOM:B=>bd(B.attrs)?["span",uh(B.attrs),0]:["span",0]}}),Ac("u")),Kf=B=>({[B]:{default:null,getFromDOM:S=>S.getAttribute(B),setDOMAttr:(S,T)=>{T[B]=S}}}),Um=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Kf("style")),Kf("class")),Kf("id")),Kf("headers")),Kf("scope")),cm={doc:{content:"colgroup*"},col:{attrs:Oh(["id","class","style","span"]),parseDOM:[{getAttrs:Dd,tag:"col"}],toDOM:B=>["col",B.attrs]},colgroup:{attrs:Oh(["id","class","style","span"]),content:"col*",parseDOM:[{getAttrs:Dd,tag:"colgroup"}],toDOM:B=>["colgroup",B.attrs,0]},text:{inline:!0,group:"inline"}},fc=new Eo({nodes:cm,marks:{}}),Rh=B=>{const S=vn(La(B),fc,{preserveWhitespace:!1});return Ls(S).firstChild},hh=function b_(B){const S=B.cellAttributes||{},T={colspan:{default:1},rowspan:{default:1},colwidth:{default:null}};for(const W in S)T[W]={default:S[W].default};return{table:{content:"table_row+",tableRole:"table",isolating:!0,group:B.tableGroup,parseDOM:[{tag:"table"}],toDOM:()=>["table",["tbody",0]]},table_row:{content:"(table_cell | table_header)*",tableRole:"row",parseDOM:[{tag:"tr"}],toDOM:()=>["tr",0]},table_cell:{content:B.cellContent,attrs:T,tableRole:"cell",isolating:!0,parseDOM:[{tag:"td",getAttrs:W=>y_(W,S)}],toDOM:W=>["td",Am(W,S),0]},table_header:{content:B.cellContent,attrs:T,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:W=>y_(W,S)}],toDOM:W=>["th",Am(W,S),0]}}}({tableGroup:"block",cellContent:"block+",cellAttributes:Um});hh.table_row.attrs=Object.assign(Object.assign({},hh.table_row.attrs),Oh([co,"style","class","id"])),hh.table_row.toDOM=B=>["tr",uh(B.attrs),0],hh.table_row.parseDOM=[{tag:"tr",getAttrs:Dd}],hh.table.attrs=Object.assign(Object.assign({},hh.table.attrs),Oh(["style","class","id",sr,yr])),hh.table.toDOM=B=>{const S=bd(B.attrs)?uh(B.attrs,[sr,yr]):{};let T=null;if(B.attrs[sr]&&!(B=>{let S=!1;const T=B.child(0);for(let W=0;W<T.childCount;W++)if(T.child(W).attrs.colwidth){S=!0;break}return S})(B)){const W=Rh(B.attrs[sr]);if(W){const ce=Array.from(W.children).map(we=>["col",Dd(we)]);T=["colgroup",Dd(W)].concat(ce)}}return T?["table",S,T,["tbody",0]]:["table",S,["tbody",0]]},hh.table.parseDOM=[{tag:"table",getAttrs:B=>{const S=Dd(B),T=Array.from(B.childNodes).find(W=>"COLGROUP"===W.nodeName);return T&&(S[sr]=T.outerHTML),S}}];const Dp=Object.assign({doc:{content:"block+"},paragraph:{content:"inline*",group:"block",attrs:Object.assign({},Ph()),parseDOM:[{tag:"p",getAttrs:Dd}],toDOM:B=>bd(B.attrs)?["p",uh(B.attrs),0]:["p",0]},table_wrapper:{content:"(table_caption_external | table)+",group:"block",defining:!0,attrs:{table:{default:null},style:{default:null}},parseDOM:[{tag:"div[table]",getAttrs:Dd}],toDOM:B=>bd(B.attrs)?["div",uh(B.attrs),0]:["div",0]},table_caption_external:{content:"inline+",group:"block",attrs:{caption:{default:null},style:{default:null}},parseDOM:[{tag:"div[caption]",getAttrs:Dd}],toDOM:B=>bd(B.attrs)?["div",uh(B.attrs),0]:["div",0]},div:{content:"block*",group:"block",attrs:Object.assign({},Ph()),parseDOM:[{tag:"div",getAttrs:Dd}],toDOM:B=>bd(B.attrs)?["div",uh(B.attrs),0]:["div",0]},blockquote:{attrs:Object.assign({},Ph()),content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote",getAttrs:Dd}],toDOM:B=>bd(B.attrs)?["blockquote",uh(B.attrs),0]:S_},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:()=>eg},heading:{attrs:Object.assign(Object.assign({},Ph()),{level:{default:1}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",getAttrs:B=>Object.assign(Object.assign({},Dd(B)),{level:1})},{tag:"h2",getAttrs:B=>Object.assign(Object.assign({},Dd(B)),{level:2})},{tag:"h3",getAttrs:B=>Object.assign(Object.assign({},Dd(B)),{level:3})},{tag:"h4",getAttrs:B=>Object.assign(Object.assign({},Dd(B)),{level:4})},{tag:"h5",getAttrs:B=>Object.assign(Object.assign({},Dd(B)),{level:5})},{tag:"h6",getAttrs:B=>Object.assign(Object.assign({},Dd(B)),{level:6})}],toDOM:B=>bd(B.attrs,"level")?["h"+B.attrs.level,uh(B.attrs,["level"]),0]:["h"+B.attrs.level,0]},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM:()=>Tm},text:{inline:!0,group:"inline"},image:{inline:!0,attrs:Object.assign({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}},Ph()),group:"inline",draggable:!0,parseDOM:[{tag:"img",getAttrs:Dd}],toDOM:B=>bd(B.attrs)?["img",uh(B.attrs)]:["img"]},hard_break:{inline:!0,attrs:Object.assign({},Ph()),group:"inline",selectable:!1,parseDOM:[{tag:"br",getAttrs:Dd}],toDOM:B=>bd(B.attrs)?["br",uh(B.attrs)]:["br"]},ordered_list:{content:"list_item+",group:"block",attrs:Object.assign(Object.assign({},Ph()),{type:{default:null},order:{default:1}}),parseDOM:[{tag:"ol",getAttrs:B=>Object.assign(Object.assign({},Dd(B)),{order:B.hasAttribute("start")?parseInt(B.getAttribute("start")||"1",10):1})}],toDOM:B=>1===B.attrs.order?bd(B.attrs,"order")?["ol",uh(B.attrs,["order"]),0]:t_:["ol",Object.assign(Object.assign({},uh(B.attrs,["order"])),{start:B.attrs.order}),0]},bullet_list:{content:"list_item+",group:"block",attrs:Object.assign({},Ph()),parseDOM:[{tag:"ul",getAttrs:Dd}],toDOM:B=>bd(B.attrs)?["ul",uh(B.attrs),0]:Tp},list_item:{content:"(paragraph | heading) block*",attrs:Object.assign({},Ph()),parseDOM:[{tag:"li",getAttrs:Dd}],toDOM:B=>bd(B.attrs)?["li",uh(B.attrs),0]:zm,defining:!0}},hh);var Cn=function(){};Cn.prototype.append=function(S){return S.length?(S=Cn.from(S),!this.length&&S||S.length<200&&this.leafAppend(S)||this.length<200&&S.leafPrepend(this)||this.appendInner(S)):this},Cn.prototype.prepend=function(S){return S.length?Cn.from(S).append(this):this},Cn.prototype.appendInner=function(S){return new Zt(this,S)},Cn.prototype.slice=function(S,T){return void 0===S&&(S=0),void 0===T&&(T=this.length),S>=T?Cn.empty:this.sliceInner(Math.max(0,S),Math.min(this.length,T))},Cn.prototype.get=function(S){if(!(S<0||S>=this.length))return this.getInner(S)},Cn.prototype.forEach=function(S,T,W){void 0===T&&(T=0),void 0===W&&(W=this.length),T<=W?this.forEachInner(S,T,W,0):this.forEachInvertedInner(S,T,W,0)},Cn.prototype.map=function(S,T,W){void 0===T&&(T=0),void 0===W&&(W=this.length);var ce=[];return this.forEach(function(we,qe){return ce.push(S(we,qe))},T,W),ce},Cn.from=function(S){return S instanceof Cn?S:S&&S.length?new Fe(S):Cn.empty};var Fe=function(B){function S(W){B.call(this),this.values=W}B&&(S.__proto__=B),(S.prototype=Object.create(B&&B.prototype)).constructor=S;var T={length:{configurable:!0},depth:{configurable:!0}};return S.prototype.flatten=function(){return this.values},S.prototype.sliceInner=function(ce,we){return 0==ce&&we==this.length?this:new S(this.values.slice(ce,we))},S.prototype.getInner=function(ce){return this.values[ce]},S.prototype.forEachInner=function(ce,we,qe,jt){for(var _n=we;_n<qe;_n++)if(!1===ce(this.values[_n],jt+_n))return!1},S.prototype.forEachInvertedInner=function(ce,we,qe,jt){for(var _n=we-1;_n>=qe;_n--)if(!1===ce(this.values[_n],jt+_n))return!1},S.prototype.leafAppend=function(ce){if(this.length+ce.length<=200)return new S(this.values.concat(ce.flatten()))},S.prototype.leafPrepend=function(ce){if(this.length+ce.length<=200)return new S(ce.flatten().concat(this.values))},T.length.get=function(){return this.values.length},T.depth.get=function(){return 0},Object.defineProperties(S.prototype,T),S}(Cn);Cn.empty=new Fe([]);var Zt=function(B){function S(T,W){B.call(this),this.left=T,this.right=W,this.length=T.length+W.length,this.depth=Math.max(T.depth,W.depth)+1}return B&&(S.__proto__=B),(S.prototype=Object.create(B&&B.prototype)).constructor=S,S.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},S.prototype.getInner=function(W){return W<this.left.length?this.left.get(W):this.right.get(W-this.left.length)},S.prototype.forEachInner=function(W,ce,we,qe){var jt=this.left.length;if(ce<jt&&!1===this.left.forEachInner(W,ce,Math.min(we,jt),qe)||we>jt&&!1===this.right.forEachInner(W,Math.max(ce-jt,0),Math.min(this.length,we)-jt,qe+jt))return!1},S.prototype.forEachInvertedInner=function(W,ce,we,qe){var jt=this.left.length;if(ce>jt&&!1===this.right.forEachInvertedInner(W,ce-jt,Math.max(we,jt)-jt,qe+jt)||we<jt&&!1===this.left.forEachInvertedInner(W,Math.min(ce,jt),we,qe))return!1},S.prototype.sliceInner=function(W,ce){if(0==W&&ce==this.length)return this;var we=this.left.length;return ce<=we?this.left.slice(W,ce):W>=we?this.right.slice(W-we,ce-we):this.left.slice(W,we).append(this.right.slice(0,ce-we))},S.prototype.leafAppend=function(W){var ce=this.right.leafAppend(W);if(ce)return new S(this.left,ce)},S.prototype.leafPrepend=function(W){var ce=this.left.leafPrepend(W);if(ce)return new S(ce,this.right)},S.prototype.appendInner=function(W){return this.left.depth>=Math.max(this.right.depth,W.depth)+1?new S(this.left,new S(this.right,W)):new S(this,W)},S}(Cn);const Ln=Cn;class Jo{constructor(S,T){this.items=S,this.eventCount=T}popEvent(S,T){if(0==this.eventCount)return null;let ce,we,W=this.items.length;for(;;W--)if(this.items.get(W-1).selection){--W;break}T&&(ce=this.remapping(W,this.items.length),we=ce.maps.length);let jt,_n,qe=S.tr,bi=[],qi=[];return this.items.forEach((Oo,rr)=>{if(!Oo.step)return ce||(ce=this.remapping(W,rr+1),we=ce.maps.length),we--,void qi.push(Oo);if(ce){qi.push(new Es(Oo.map));let Gr,fr=Oo.step.map(ce.slice(we));fr&&qe.maybeStep(fr).doc&&(Gr=qe.mapping.maps[qe.mapping.maps.length-1],bi.push(new Es(Gr,void 0,void 0,bi.length+qi.length))),we--,Gr&&ce.appendMap(Gr,we)}else qe.maybeStep(Oo.step);return Oo.selection?(jt=ce?Oo.selection.map(ce.slice(we)):Oo.selection,_n=new Jo(this.items.slice(0,W).append(qi.reverse().concat(bi)),this.eventCount-1),!1):void 0},this.items.length,0),{remaining:_n,transform:qe,selection:jt}}addTransform(S,T,W,ce){let we=[],qe=this.eventCount,jt=this.items,_n=!ce&&jt.length?jt.get(jt.length-1):null;for(let qi=0;qi<S.steps.length;qi++){let fr,Oo=S.steps[qi].invert(S.docs[qi]),rr=new Es(S.mapping.maps[qi],Oo,T);(fr=_n&&_n.merge(rr))&&(rr=fr,qi?we.pop():jt=jt.slice(0,jt.length-1)),we.push(rr),T&&(qe++,T=void 0),ce||(_n=rr)}let bi=qe-W.depth;return bi>Ra&&(jt=function Hr(B,S){let T;return B.forEach((W,ce)=>{if(W.selection&&0==S--)return T=ce,!1}),B.slice(T)}(jt,bi),qe-=bi),new Jo(jt.append(we),qe)}remapping(S,T){let W=new Ei;return this.items.forEach((ce,we)=>{W.appendMap(ce.map,null!=ce.mirrorOffset&&we-ce.mirrorOffset>=S?W.maps.length-ce.mirrorOffset:void 0)},S,T),W}addMaps(S){return 0==this.eventCount?this:new Jo(this.items.append(S.map(T=>new Es(T))),this.eventCount)}rebased(S,T){if(!this.eventCount)return this;let W=[],ce=Math.max(0,this.items.length-T),we=S.mapping,qe=S.steps.length,jt=this.eventCount;this.items.forEach(rr=>{rr.selection&&jt--},ce);let _n=T;this.items.forEach(rr=>{let fr=we.getMirror(--_n);if(null==fr)return;qe=Math.min(qe,fr);let Gr=we.maps[fr];if(rr.step){let As=S.steps[fr].invert(S.docs[fr]),ka=rr.selection&&rr.selection.map(we.slice(_n+1,fr));ka&&jt++,W.push(new Es(Gr,As,ka))}else W.push(new Es(Gr))},ce);let bi=[];for(let rr=T;rr<qe;rr++)bi.push(new Es(we.maps[rr]));let qi=this.items.slice(0,ce).append(bi).append(W),Oo=new Jo(qi,jt);return Oo.emptyItemCount()>500&&(Oo=Oo.compress(this.items.length-W.length)),Oo}emptyItemCount(){let S=0;return this.items.forEach(T=>{T.step||S++}),S}compress(S=this.items.length){let T=this.remapping(0,S),W=T.maps.length,ce=[],we=0;return this.items.forEach((qe,jt)=>{if(jt>=S)ce.push(qe),qe.selection&&we++;else if(qe.step){let _n=qe.step.map(T.slice(W)),bi=_n&&_n.getMap();if(W--,bi&&T.appendMap(bi,W),_n){let qi=qe.selection&&qe.selection.map(T.slice(W));qi&&we++;let rr,Oo=new Es(bi.invert(),_n,qi),fr=ce.length-1;(rr=ce.length&&ce[fr].merge(Oo))?ce[fr]=rr:ce.push(Oo)}}else qe.map&&W--},this.items.length,0),new Jo(Ln.from(ce.reverse()),we)}}Jo.empty=new Jo(Ln.empty,0);class Es{constructor(S,T,W,ce){this.map=S,this.step=T,this.selection=W,this.mirrorOffset=ce}merge(S){if(this.step&&S.step&&!S.selection){let T=S.step.merge(this.step);if(T)return new Es(T.getMap().invert(),T,this.selection)}}}class Vs{constructor(S,T,W,ce,we){this.done=S,this.undone=T,this.prevRanges=W,this.prevTime=ce,this.prevComposition=we}}const Ra=20;function kl(B){let S=[];return B.forEach((T,W,ce,we)=>S.push(ce,we)),S}function gl(B,S){if(!B)return null;let T=[];for(let W=0;W<B.length;W+=2){let ce=S.map(B[W],1),we=S.map(B[W+1],-1);ce<=we&&T.push(ce,we)}return T}function wl(B,S,T,W){let ce=jc(S),we=Sc.get(S).spec.config,qe=(W?B.undone:B.done).popEvent(S,ce);if(!qe)return;let jt=qe.selection.resolve(qe.transform.doc),_n=(W?B.done:B.undone).addTransform(qe.transform,S.selection.getBookmark(),we,ce),bi=new Vs(W?_n:qe.remaining,W?qe.remaining:_n,null,0,-1);T(qe.transform.setSelection(jt).setMeta(Sc,{redo:W,historyState:bi}).scrollIntoView())}let Pc=!1,Rl=null;function jc(B){let S=B.plugins;if(Rl!=S){Pc=!1,Rl=S;for(let T=0;T<S.length;T++)if(S[T].spec.historyPreserveItems){Pc=!0;break}}return Pc}const Sc=new Yi("history"),fh=new Yi("closeHistory");function tu(B={}){return new ht({key:Sc,state:{init:()=>new Vs(Jo.empty,Jo.empty,null,0,-1),apply:(S,T,W)=>function Ha(B,S,T,W){let we,ce=T.getMeta(Sc);if(ce)return ce.historyState;T.getMeta(fh)&&(B=new Vs(B.done,B.undone,null,0,-1));let qe=T.getMeta("appendedTransaction");if(0==T.steps.length)return B;if(qe&&qe.getMeta(Sc))return qe.getMeta(Sc).redo?new Vs(B.done.addTransform(T,void 0,W,jc(S)),B.undone,kl(T.mapping.maps[T.steps.length-1]),B.prevTime,B.prevComposition):new Vs(B.done,B.undone.addTransform(T,void 0,W,jc(S)),null,B.prevTime,B.prevComposition);if(!1===T.getMeta("addToHistory")||qe&&!1===qe.getMeta("addToHistory"))return(we=T.getMeta("rebased"))?new Vs(B.done.rebased(T,we),B.undone.rebased(T,we),gl(B.prevRanges,T.mapping),B.prevTime,B.prevComposition):new Vs(B.done.addMaps(T.mapping.maps),B.undone.addMaps(T.mapping.maps),gl(B.prevRanges,T.mapping),B.prevTime,B.prevComposition);{let jt=T.getMeta("composition"),_n=0==B.prevTime||!qe&&B.prevComposition!=jt&&(B.prevTime<(T.time||0)-W.newGroupDelay||!function Al(B,S){if(!S)return!1;if(!B.docChanged)return!0;let T=!1;return B.mapping.maps[0].forEach((W,ce)=>{for(let we=0;we<S.length;we+=2)W<=S[we+1]&&ce>=S[we]&&(T=!0)}),T}(T,B.prevRanges)),bi=qe?gl(B.prevRanges,T.mapping):kl(T.mapping.maps[T.steps.length-1]);return new Vs(B.done.addTransform(T,_n?S.selection.getBookmark():void 0,W,jc(S)),Jo.empty,bi,T.time,jt??B.prevComposition)}}(T,W,S,B)},config:B={depth:B.depth||100,newGroupDelay:B.newGroupDelay||500},props:{handleDOMEvents:{beforeinput(S,T){let W=T.inputType,ce="historyUndo"==W?pc:"historyRedo"==W?wc:null;return!!ce&&(T.preventDefault(),ce(S.state,S.dispatch))}}}})}const pc=(B,S)=>{let T=Sc.getState(B);return!(!T||0==T.done.eventCount||(S&&wl(T,B,S,!1),0))},wc=(B,S)=>{let T=Sc.getState(B);return!(!T||0==T.undone.eventCount||(S&&wl(T,B,S,!0),0))};class Jh{constructor(S,T){this.match=S,this.match=S,this.handler="string"==typeof T?function um(B){return function(S,T,W,ce){let we=B;if(T[1]){let qe=T[0].lastIndexOf(T[1]);we+=T[0].slice(qe+T[1].length);let jt=(W+=qe)-ce;jt>0&&(we=T[0].slice(qe-jt,qe)+we,W=ce)}return S.tr.insertText(we,W,ce)}}(T):T}}const Il=(B,S)=>{let T=B.plugins;for(let W=0;W<T.length;W++){let we,ce=T[W];if(ce.spec.isInputRules&&(we=ce.getState(B))){if(S){let qe=B.tr,jt=we.transform;for(let _n=jt.steps.length-1;_n>=0;_n--)qe.step(jt.steps[_n].invert(jt.docs[_n]));if(we.text){let _n=qe.doc.resolve(we.from).marks();qe.replaceWith(we.from,we.to,B.schema.text(we.text,_n))}else qe.delete(we.from,we.to);S(qe)}return!0}}return!1};new Jh(/--$/,"\u2014"),new Jh(/\.\.\.$/,"\u2026"),new Jh(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"\u201c"),new Jh(/"$/,"\u201d"),new Jh(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"\u2018"),new Jh(/'$/,"\u2019");const af={mark:"strong",altMarks:["b"],altStyle:{name:"font-weight",value:/^(bold(er)?|[5-9]\d{2,})$/}},gu={mark:"em",altMarks:["i"],altStyle:{name:"font-style",value:/^italic$/i}},Ee={mark:"u",altStyle:{name:"text-decoration",value:/^underline$/i}},at={mark:"del",altStyle:{name:"text-decoration",value:/^line-through$/i}},G={mark:"sub"},Ie={mark:"sup"},gn={mark:"link"},zo=typeof navigator<"u"&&/Mac/.test(navigator.platform),_r=(B,S)=>{const T={},W=S&&S.applyToWord||!1;if(T["Mod-z"]=pc,T["Shift-Mod-z"]=wc,T.Backspace=Nl(Il,Ca,ts,cs),T.Enter=Nl(Os,Da,Ka,xl),zo||(T["Mod-y"]=wc),B.marks.strong&&(T["Mod-b"]=ft(On,Object.assign(Object.assign({},af),{applyToWord:W}))),B.marks.em&&(T["Mod-i"]=ft(On,Object.assign(Object.assign({},gu),{applyToWord:W}))),B.marks.u&&(T["Mod-u"]=ft(On,Object.assign(Object.assign({},Ee),{applyToWord:W}))),B.nodes.hard_break){const ce=B.nodes.hard_break,we=Nl(la,(qe,jt)=>(jt(qe.tr.replaceSelectionWith(ce.create()).scrollIntoView()),!0));T["Shift-Enter"]=we}return T},zr=B=>{const S={};return B.nodes.list_item&&(S.Enter=(B=>(S,T)=>function ro(B,S){return function(T,W){let{$from:ce,$to:we,node:qe}=T.selection;if(qe&&qe.isBlock||ce.depth<2||!ce.sameParent(we))return!1;let jt=ce.node(-1);if(jt.type!=B)return!1;if(0==ce.parent.content.size&&ce.node(-1).childCount==ce.indexAfter(-1)){if(3==ce.depth||ce.node(-3).type!=B||ce.index(-2)!=ce.node(-2).childCount-1)return!1;if(W){let Oo=E.empty,rr=ce.index(-1)?1:ce.index(-2)?2:3;for(let hl=ce.depth-rr;hl>=ce.depth-3;hl--)Oo=E.from(ce.node(hl).copy(Oo));let fr=ce.indexAfter(-1)<ce.node(-2).childCount?1:ce.indexAfter(-2)<ce.node(-3).childCount?2:3;Oo=Oo.append(E.from(B.createAndFill()));let Gr=ce.before(ce.depth-(rr-1)),As=T.tr.replace(Gr,ce.after(-fr),new P(Oo,4-rr,0)),ka=-1;As.doc.nodesBetween(Gr,As.doc.content.size,(hl,Ul)=>{if(ka>-1)return!1;hl.isTextblock&&0==hl.content.size&&(ka=Ul+1)}),ka>-1&&As.setSelection(kr.near(As.doc.resolve(ka))),W(As.scrollIntoView())}return!0}let _n=we.pos==ce.end()?jt.contentMatchAt(0).defaultType:null,bi=T.tr.delete(ce.pos,we.pos),qi=_n?[S?{type:B,attrs:S}:null,{type:_n}]:void 0;return!!Oa(bi.doc,ce.pos,2,qi)&&(W&&W(bi.split(ce.pos,2,qi).scrollIntoView()),!0)}}(B)(S,W=>{let ce=S.storedMarks||S.selection.$to.parentOffset&&S.selection.$from.marks();ce&&W.ensureMarks(ce),T(W)}))(B.nodes.list_item)),S},Lr=/style=['"]?[^'"]*?mso-list:\s*[a-zA-Z]+(\d+)\s[a-zA-Z]+(\d+)\s(\w+)/gi,$s=B=>/^MsoListParagraph/.test(B.className),ya=B=>{let S=B.innerHTML;return S=S.replace(/<!--(.|\s)*?-->/gi,""),S=S.replace(/<\/?[^>]+?\/?>/gm,""),S},ua=(B,S)=>{const T=document.createElement(B);return T.style.listStyleType=S,T},Ja=B=>/^[\u2022\u00b7\u00FC\u00D8\u002dv-]/.test(B)?null:/^o/.test(B)?"circle":"square",jl=B=>{let S=null;return/^\d/.test(B)||(S=(/^[a-z]/.test(B)?"lower-":"upper-")+(/^[ivxlcdm]/i.test(B)?"roman":"alpha")),S},zd=(B,S)=>{let T=[];Array.from(B).forEach(W=>{if(W.nodeType!==Node.ELEMENT_NODE)return;let ce=W;ce.getAttribute("datalist")?(T.push(W),S.add(T)):$s(ce)&&T.length?T.push(W):(T=[],"DIV"===ce.nodeName?zd(ce.children,S):"TABLE"===ce.nodeName&&Array.from(ce.querySelectorAll("td,th")).forEach(we=>{zd(we.children,S)}))})},md=B=>{let S=B.innerHTML,T=W=>W.replace(/^(?:&nbsp;|[\u00a0\n\r\s])+/,"");return S=S.replace(/<\/?\w+[^>]*>/g,"").replace(/&nbsp;/g,"\xa0"),/^[\u2022\u00b7\u00a7\u00d8o\xd8\xfcvn][\u00a0 ]+/.test(S)?{tag:"ul",style:Ja(T(ya(B)))}:/^\s*\w+[\.\)][\u00a0 ]{2,}/.test(S)?{tag:"ol",style:jl(T(ya(B)))}:void 0},Xu=B=>{let S,T=B.nodeName.toLowerCase();B.firstChild&&B.firstChild.nodeType===Node.COMMENT_NODE&&B.removeChild(B.firstChild),1===B.childNodes.length?S=B.firstChild.nodeType===Node.TEXT_NODE?ya(B):B.firstChild.innerHTML.replace(/^\w+[\.\)](&nbsp;)+ /,""):(B.removeChild(B.firstChild),3===B.firstChild.nodeType&&/^[ivxlcdm]+\.$/i.test(B.firstChild.nodeValue)&&B.removeChild(B.firstChild),/^(&nbsp;|\s)+$/i.test(B.firstChild.innerHTML)&&B.removeChild(B.firstChild),S="p"!==T?"<"+T+">"+B.innerHTML+"</"+T+">":B.innerHTML),B.parentNode.removeChild(B);const W=document.createElement("li");return W.appendChild(La(S)),W},kp=B=>{B.ownerElement&&B.ownerElement.removeAttribute(B.name)},jp=B=>{/^Mso/.test(B.value)&&kp(B)},Bg=/\s*;\s*/,zg=/\s*:\s*/,n_=B=>{const S=B.value.split(Bg).filter(jt=>!!jt),W=B.ownerElement.style;let we,qe,ce="";S.forEach(jt=>{[we,qe]=jt.split(zg),void 0!==W[we]&&(ce+=`${we}: ${qe}; `)}),ce=ce.trim(),ce?B.value=ce:kp(B)},Hm=(B,S)=>{let T=B;if(S.convertMsLists&&(T=(B=>{const S=La((B=>B.replace(Lr,(S,T,W)=>`datalist="${T}" datalevel="${W}" ${S}`))(B)),T=new Set;return zd(S.children,T),T.forEach(W=>(B=>{let W,ce,we,qe,jt,_n,bi,qi,Oo,rr,fr,Gr,As,S=-1,T={};for(qi=0;qi<B.length;qi++){Oo=B[qi],As={datalist:Oo.getAttribute("datalist"),datalevel:Oo.getAttribute("datalevel")};let ka=As.datalist,hl=md(Oo);if(rr=hl&&hl.tag,!rr){W&&(!jt||$s(Oo))&&(Oo.style.marginLeft&&(Oo.style.marginLeft=""),Oo.style.marginLeft&&(Oo.style.margin=""),W.appendChild(Oo));continue}if(fr=As.datalevel||parseFloat(Oo.style.marginLeft||0),!As.datalevel&&!Oo.style.marginLeft)continue;let Ul=rr+ka;T[fr]||(T[fr]={}),(!ce||ce<0)&&(ce=fr,we=ka,bi=B.filter(Dl=>Dl.getAttribute("datalist")===String(we)),qe=bi[bi.length-1],_n=ua(rr,hl&&hl.style),Oo.parentNode.insertBefore(_n,Oo),S=fr,T[fr][Ul]=_n),jt=qe===Oo,Gr=T[fr][Ul],(fr>S||!Gr)&&(Gr=ua(rr,hl&&hl.style),T[fr][Ul]=Gr,W.appendChild(Gr)),W=Xu(Oo),Gr.appendChild(W),jt?ce=S=-1:S=fr}})(W)),ra(S)})(T)),S.stripTags&&(T=((B,S)=>B.replace(new RegExp("<\\/?("+S+")(?:\\s[^>]*?)?>","gi"),""))(T,S.stripTags)),S.attributes){const W=La(T);Array.from(W.querySelectorAll("*")).forEach(ce=>((B,S)=>{if(B.nodeType===Node.ELEMENT_NODE){for(let T=B.attributes.length-1;T>=0;T--){const W=B.attributes[T];S[W.name]?S[W.name](W):S["*"]&&S["*"](W)}"SPAN"===B.nodeName&&0===B.attributes.length&&(B=>{const S=B.parentNode;if(S){for(;B.firstChild;)S.insertBefore(B.firstChild,B);S.removeChild(B)}})(B)}})(ce,S.attributes)),T=ra(W)}return T};new RegExp("(?:("+/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/.source+"))([\\da-fA-F\\s]+)\\}","g"),new Yi("highlight");const r_={southeast:{x:1,y:1},east:{x:1,y:0},south:{x:0,y:1},north:{x:0,y:-1},west:{x:-1,y:0},southwest:{x:-1,y:1},northwest:{x:-1,y:-1},northeast:{x:1,y:-1}},ng=Object.keys(r_),pp=new Yi("image-resize"),s_=(B,S,T)=>{B.style[S]=T+"px"},a_=/[^\-]width:|[^\-]height:/,Hg=/^.+$/;class yg{constructor(S,T,W,ce){this.activeHandle=S,this.dragging=T,this.rect=W,this.nodePosition=ce}apply(S){let W=S.getMeta(pp);return W?new yg(W.activeHandle,W.setDragging,W.rect,W.nodePosition):this}}const fm=(B={node:"image",lockRatio:!0})=>new ht({key:pp,view:S=>({resize(){pp.getState(S.state).rect&&S.dispatch(S.state.tr.setMeta("resize",!0))},get window(){return S.dom.ownerDocument&&S.dom.ownerDocument.defaultView},attachResize(){const T=this.window;T&&(T.removeEventListener("resize",this.resize),T.addEventListener("resize",this.resize))},removeResize(){const T=this.window;T&&T.removeEventListener("resize",this.resize)},update(T,W){const ce=T.state,we=ce.selection,qe=ce.schema.nodes[B.node],jt=pp.getState(ce),_n=jt.rect;if(we instanceof $o&&qe===we.node.type){const bi=T.nodeDOM(we.from),qi={top:bi.offsetTop,left:bi.offsetLeft,width:bi.offsetWidth,height:bi.offsetHeight};if(!W.selection.eq(we)||_n&&(_n.width!==qi.width||_n.height!==qi.height||_n.top!==qi.top||_n.left!==qi.left)){const Oo=ce.tr;Oo.setMeta(pp,{rect:qi,nodePosition:we.from}),T.dispatch(Oo),this.attachResize()}}else _n&&(jt.rect=null,jt.nodePosition=-1)},destroy(){this.removeResize()}}),state:{init:()=>new yg("",null,null,-1),apply:(S,T)=>T.apply(S)},props:{handleDOMEvents:{mousedown:(S,T)=>((B,S,T)=>{const ce=S.target.getAttribute(Pr);if(!ce)return!1;const we=pp.getState(B.state);S.preventDefault();const qe=B.state.tr;function jt(bi){((B,S,T)=>{const W=pp.getState(B.state),{rect:ce,dragging:we,nodePosition:qe,activeHandle:jt}=W;if(!we||!ce)return;const _n=B.nodeDOM(qe),bi=r_[jt];let rr=bi.x?(S.clientX-we.startX)*bi.x+_n.width:ce.width,fr=bi.y?(S.clientY-we.startY)*bi.y+_n.height:ce.height;if(T.lockRatio&&bi.x&&bi.y){let As=Math.min(rr/_n.width,fr/_n.height),ka=_n.width*As,hl=_n.height*As;we.startX=S.clientX-(rr-ka)*bi.x,we.startY=S.clientY-(fr-hl)*bi.y,rr=ka,fr=hl}else we.startX=bi.x?S.clientX:we.startX,we.startY=bi.y?S.clientY:we.startY;s_(_n,"width",rr),s_(_n,"height",fr),ce.top=_n.offsetTop,ce.left=_n.offsetLeft,ce.width=_n.offsetWidth,ce.height=_n.offsetHeight;const Gr=_n.nextElementSibling;Gr.style.width=ce.width+"px",Gr.style.height=ce.height+"px",Gr.style.top=ce.top+"px",Gr.style.left=ce.left+"px"})(B,bi,T)}return qe.setMeta(pp,{setDragging:{startX:S.clientX,startY:S.clientY},activeHandle:ce,rect:we.rect,nodePosition:we.nodePosition}),qe.setMeta("addToHistory",!1),B.dispatch(qe),S.view.addEventListener("mouseup",function _n(bi){bi.view.removeEventListener("mouseup",_n),bi.view.removeEventListener("mousemove",jt),(B=>{const{rect:S,dragging:T,nodePosition:W}=pp.getState(B.state);if(T&&S){const ce=B.state.selection;if(ce instanceof $o){const we=ce.node.attrs,qe=S.width,jt=S.height;let _n;if(a_.test(we.style||"")){const qi=St(we.style,{style:"width",value:Hg,newValue:qe+"px"}),{style:Oo}=St(qi.style||"",{style:"height",value:Hg,newValue:jt+"px"});_n=Object.assign(Object.assign({},we),{style:Oo})}else _n=Object.assign(Object.assign({},we),{width:qe,height:jt});const bi=ce.node.type.createAndFill(_n);if(bi){const qi=B.state.tr;qi.replaceWith(W,W+1,bi),qi.setSelection($o.create(qi.doc,W)),qi.setMeta("commandName","image-resize"),qi.setMeta("args",_n),qi.setMeta(pp,{setDragging:null,activeHandle:null,rect:S,nodePosition:W}),B.dispatch(qi)}}}})(B)}),S.view.addEventListener("mousemove",jt),!0})(S,T,B)},decorations(S){const T=S.selection,W=S.schema.nodes[B.node],ce=pp.getState(S).rect;if(ce&&T instanceof $o&&W===T.node.type){const we=document.createElement("div");we.className="k-editor-resize-handles-wrapper",we.style.width=ce.width+"px",we.style.height=ce.height+"px",we.style.top=ce.top+"px",we.style.left=ce.left+"px";for(let qe=0;qe<ng.length;qe++){let jt=document.createElement("div");jt.className=ss+" "+ng[qe],jt.setAttribute(Pr,ng[qe]),we.appendChild(jt)}return ac.create(S.doc,[Ou.widget(S.selection.from+1,we)])}return ac.empty}}}),d_=new Yi("caret-color");class Vg{constructor(S,T){this.node=S,this.view=T,this.dom=document.createElement("div"),this.dom.className="k-editor-resize-wrap-element",this.table=this.dom.appendChild(document.createElement("table")),S.attrs[sr]&&this.renderColgroup(S.attrs[sr]);const W=this.table.appendChild(document.createElement("tbody"));this.setAttributes(this.table,S.attrs),this.resizeHandles=ng.map(ce=>{const we=document.createElement("span");return we.className=ss+" "+ce,we.setAttribute(gs,ce),we}),this.contentDOM=W}update(S){if(S.type!==this.node.type)return!1;const T=this.node;return this.node=S,S.attrs[yr]?this.resizeHandles.forEach(W=>{this.dom.appendChild(W)}):Array.from(this.dom.children).filter(W=>W.classList.contains(ss)).forEach(W=>W.remove()),this.setAttributes(this.table,S.attrs),T.attrs[sr]!==S.attrs[sr]&&this.renderColgroup(S.attrs[sr]),!0}ignoreMutation(S){return"attributes"===S.type&&(S.target===this.table||S.target.firstChild===this.table||this.colgroup&&this.colgroup.contains(S.target))}destroy(){this.node=void 0,this.view=void 0,this.table=void 0,this.colgroup=void 0,this.resizeHandles=void 0}renderColgroup(S){this.table&&this.table.firstChild&&"COLGROUP"===this.table.firstChild.nodeName&&this.table.removeChild(this.table.firstChild),S&&(this.colgroup=Rh(S),this.table.insertBefore(this.colgroup,this.table.firstChild))}setAttributes(S,T){const W=[sr,yr];for(let ce in T)if(ce&&-1===W.indexOf(ce)){const we=S.getAttribute(ce),qe=T[ce];qe&&qe!==we?S.setAttribute(ce,qe):qe||S.removeAttribute(ce)}}}const N_=/^.+$/,mp=B=>(B||"").split(/\s*;\s*/).filter(Boolean).map(T=>{const W=T.split(/\s*:\s*/);return{[W[0]]:W[1]}}).reduce((T,W)=>Object.assign(Object.assign({},T),W),{});function Ip(B,S,T){let W;if(new RegExp("[^-]?"+S+":").test(B.style||"")){const{style:ce}=St(B.style||"",{style:S,value:N_,newValue:T});W=Object.assign(Object.assign({},B),{style:ce})}else W=Object.assign(Object.assign({},B),B.style?{style:B.style.replace(/;$/,"")+"; "+S+": "+T+";"}:{style:S+": "+T+";"});return W}const Fh=new Yi("table-resize"),cu=new Yi("table-column-resizing"),eh=new Yi("table-row-resizing");function bg(B,S){let T=!1;return T=T||B!==Fh&&!!Fh.get(S)&&Fh.getState(S).dragging,T=T||B!==cu&&!!cu.get(S)&&cu.getState(S).dragging,T=T||B!==eh&&!!eh.get(S)&&eh.getState(S).dragging,T}function Cg(B,S){let T=!1;return T=T||B!==cu&&!!cu.get(S)&&cu.getState(S).activeHandle>-1,T=T||B!==eh&&!!eh.get(S)&&eh.getState(S).activeHandle>-1,T}function xg(B){return B&&B.firstChild&&"TABLE"===B.firstChild.nodeName?B.firstChild:B}function Wg(B){for(;B&&"TD"!==B.nodeName&&"TH"!==B.nodeName;)B=B.classList.contains("ProseMirror")?null:B.parentNode;return B}function Ap(B){const S=function u_(B){const S=Array.from(B&&B.rows||[]),T=Array.from(S&&S[0]&&S[0].cells||[]).map(ce=>ce.colSpan).reduce((ce,we)=>ce+we,0),W=S.map(()=>new Array(T));return S.forEach((ce,we)=>{let qe=0;Array.from(ce.cells).forEach(jt=>{for(let _n=0;_n<jt.colSpan;_n++){for(let bi=0;bi<jt.rowSpan;bi++){const qi=W[we+bi].findIndex((Oo,rr)=>rr>=qe&&!Oo);W[we+bi][qi]=jt}qe++}})}),W}(B.closest("table"));let T=null;for(let W=0;W<S.length&&(S[W].forEach((we,qe)=>{B===we&&(T={rowIndex:W,cellIndex:qe})}),!T);W++);return T||{rowIndex:-1,cellIndex:-1}}function M_(B,S){for(let T=B.depth;T>0;T--){let W=B.node(T);if(S(W))return{node:W,depth:T}}return null}function ig(B,S,T){const W=B.posAtCoords({left:S.clientX,top:S.clientY});if(!W)return-1;const ce=B.state.doc.resolve(W.pos),we=M_(ce,qi=>"table"===qi.type.spec.tableRole);if(null===we)return-1;const qe=ce.start(we.depth),_n=Oc.get(we.node);return qe+_n.map[_n.width*T.rowIndex+T.cellIndex]}function h_(){const B=Vg;return new ht({key:cu,state:{init(ce,we){return this.spec.props.nodeViews[mu(we.schema).table.name]=(qe,jt)=>new B(qe,jt),new Mm(-1,null)},apply:(ce,we)=>we.apply(ce)},props:{attributes:ce=>Cg(cu,ce)?null:cu.getState(ce).activeHandle>-1?{class:"resize-cursor"}:null,handleDOMEvents:{mousemove:(ce,we)=>(bg(cu,ce.state)||function Y_(B,S,T){let W=cu.getState(B.state);if(!W.dragging){let ce=Wg(S.target),we=-1;if(ce){const qe=Ap(ce);let{left:jt,right:_n}=ce.getBoundingClientRect();Math.abs(S.clientX-jt)<=T&&qe.cellIndex>0?(qe.cellIndex-=ce.colSpan,we=ig(B,S,qe)):_n-S.clientX>0&&_n-S.clientX<=T&&(we=ig(B,S,qe))}we!==W.activeHandle&&dr(B,we)}}(ce,we,5),!1),mouseleave:ce=>(function k_(B){let S=cu.getState(B.state);S.activeHandle>-1&&!S.dragging&&dr(B,-1)}(ce),!1),mousedown:(ce,we)=>function F_(B,S,T){let W=cu.getState(B.state);if(-1===W.activeHandle||W.dragging)return!1;let ce=B.state.doc.resolve(W.activeHandle);const we=ce.parent,qe=ce.index();let jt=0;for(let Ul=0;Ul<=qe;Ul++)jt+=we.child(Ul).attrs.colspan;const _n=ce.node(ce.depth-1);let rr,fr,bi=B.domAtPos(W.activeHandle),Oo=bi.node.childNodes[bi.offset].closest("table");if(_n.attrs[sr])rr=Oo.firstChild.children[jt-1],rr.style.width||(rr.style.width=rr.offsetWidth+"px");else{let Ul=0;for(let kd=0;kd<we.childCount;kd++)Ul+=we.child(kd).attrs.colspan;const Dl=document.createElement("colgroup"),Yu=new Array(Ul);for(let kd=0;kd<Ul;kd++)Yu[kd]=document.createElement("col"),Dl.appendChild(Yu[kd]);Oo.insertBefore(Dl,Oo.firstChild),rr=Yu[qe],rr.style.width=rr.offsetWidth+"px",fr=Object.assign(Object.assign({},_n.attrs),{[sr]:"<colgroup>"+Yu.reduce((kd,km)=>kd+km.outerHTML,"")+"</colgroup>"})}let Gr=parseFloat(rr.style.width);const As=B.state.tr.setMeta(cu,{setDragging:{startX:S.clientX,startWidth:Gr}});if(!Oo.style.width){const Ul=Array.from(rr.parentNode.children).map(Dl=>Dl.style.width);if(Ul.every(Boolean)){const Dl=Ul.reduce((Yu,kd)=>Yu+parseFloat(kd),0);fr=Ip(fr||_n.attrs,"width",Dl+"px")}}if(fr){const Ul=ce.posAtIndex(0,ce.depth-1)-1;As.setNodeMarkup(Ul,null,fr)}function ka(Ul){Ul.view.removeEventListener("mouseup",ka),Ul.view.removeEventListener("mousemove",hl);let Dl=cu.getState(B.state);if(Dl.dragging){const Yu=B.state.tr;(function Ir(B,S,T,W){let ce=B.state.doc.resolve(T),we=ce.node(-1),qe=ce.start(-1);const jt=ce.posAtIndex(0,ce.depth-1)-1,_n=B.nodeDOM(qe).closest("table");let bi=we.attrs;if(we&&bi[sr]){const Oo=_n.firstChild;bi=Object.assign(Object.assign({},bi),{[sr]:Oo.outerHTML})}const qi=_n.style.width;_n&&qi&&mp(bi.style).width!==qi&&(bi=Ip(bi,"width",qi)),S.setNodeMarkup(jt,null,bi)})(B,Yu,Dl.activeHandle,ko(Dl.dragging,Ul,T)),B.dispatch(Yu.setMeta(cu,{setDragging:null}))}}function hl(Ul){if(!Ul.which)return ka(Ul);let Dl=cu.getState(B.state),Yu=ko(Dl.dragging,Ul,T);!function Se(B,S,T,W){let ce=B.state.doc.resolve(S),we=ce.node(-1),qe=ce.start(-1),jt=Oc.get(we).colCount(ce.pos-qe)+ce.nodeAfter.attrs.colspan-1,_n=B.domAtPos(ce.start(-1)).node;"TABLE"!==_n.nodeName&&(_n=_n.closest("table"));const bi=_n,Oo=Array.from(bi.firstChild.children);if(Oo[jt].style.width=T+"px",bi.style.width){const rr=Oo.map(fr=>fr.style.width);if(rr.every(Boolean)){const fr=rr.reduce((Gr,As)=>Gr+parseFloat(As),0);bi.style.width=fr+"px"}}}(B,Dl.activeHandle,Yu)}return B.dispatch(As),S.view.addEventListener("mouseup",ka),S.view.addEventListener("mousemove",hl),S.preventDefault(),!0}(ce,we,25)},decorations(ce){if(!bg(cu,ce)){let we=cu.getState(ce);if(we.activeHandle>-1)return function nt(B,S){let T=[],W=B.doc.resolve(S),ce=W.node(-1),we=Oc.get(ce),qe=W.start(-1);const jt=[],_n=S-qe;let bi=-1;for(let Oo=0;Oo<we.height;Oo++)jt.push(we.map.slice(Oo*we.width,Oo*we.width+we.width)),-1===bi&&(bi=jt[Oo].lastIndexOf(_n));const qi=[];return jt.forEach(Oo=>{Oo[bi]!==Oo[bi+1]&&qi.push(Oo[bi])}),qi.forEach(Oo=>{let rr=qe+Oo+ce.nodeAt(Oo).nodeSize-1,fr=document.createElement("div");fr.className="column-resize-handle",T.push(Ou.widget(rr,fr))}),ac.create(B.doc,T)}(ce,we.activeHandle)}return ac.empty},nodeViews:{}}})}class Mm{constructor(S,T){this.activeHandle=S,this.dragging=T}apply(S){let T=this,W=S.getMeta(cu);if(W&&null!=W.setHandle)return new Mm(W.setHandle,null);if(W&&void 0!==W.setDragging)return new Mm(T.activeHandle,W.setDragging);if(T.activeHandle>-1&&S.docChanged){let ce=S.mapping.map(T.activeHandle,-1);(function f_(B){return!("row"!==B.parent.type.spec.tableRole||!B.nodeAfter)})(S.doc.resolve(ce))||(ce=-1),T=new Mm(ce,T.dragging)}return T}}function ko(B,S,T){return Math.max(T,B.startWidth+(S.clientX-B.startX))}function dr(B,S){const T=B.state.tr;T.setMeta("addToHistory",!1),T.setMeta(cu,{setHandle:S}),B.dispatch(T)}const Un={southeast:!0,southwest:!0,northwest:!0,northeast:!0},so=Object.assign({east:!0,west:!0},Un),Vo=Object.assign({south:!0,north:!0},Un);class Er{constructor(S,T,W){this.activeHandle=S,this.dragging=T,this.nodePosition=W}apply(S){let W=S.getMeta(Fh);return W?new Er(W.activeHandle,W.setDragging,W.nodePosition):this}}const sa=B=>{const T=Array.from(B.firstChild.children).map(_n=>_n.offsetWidth),W=Array.from(B.rows).map(_n=>_n.offsetHeight);return{width:T.reduce((_n,bi)=>_n+bi,0),height:W.reduce((_n,bi)=>_n+bi,0),colsWidth:T,rowsHeight:W,offsetWidth:B.offsetWidth,offsetHeight:B.offsetHeight}},Ma=(B,S)=>{const W=S.target.getAttribute(gs);if(!W)return!1;const ce=Fh.getState(B.state);S.preventDefault();const we=B.state.tr;we.setMeta(Fh,{setDragging:{startX:S.clientX,startY:S.clientY},activeHandle:W,nodePosition:ce.nodePosition}),we.setMeta("addToHistory",!1),((B,S,T)=>{const W=B.state.doc.nodeAt(T),ce=xg(B.nodeDOM(T)),{width:we,height:qe,colsWidth:jt,rowsHeight:_n,offsetWidth:bi,offsetHeight:qi}=sa(ce),Oo=ce.firstChild,rr=Array.from(Oo&&Oo.children||[]);let fr=!1;rr.forEach((ka,hl)=>{ka.style.width&&!/%$/.test(ka.style.width)&&(ka.style.width=100*jt[hl]/we+"%",fr=!0)});let Gr=!1;W.forEach((ka,hl,Ul)=>{const Dl=mp(ka.attrs.style).height;Dl&&!/%$/.test(Dl)&&(S.setNodeMarkup(T+hl+1,null,Ip(ka.attrs,"height",100*_n[Ul]/qe+"%")),Gr=!0)});let As=W.attrs;mp(As.style).width!==bi+"px"&&(As=Ip(As,"width",bi+"px")),fr&&(As[sr]=Oo.outerHTML),Gr&&(As=Ip(As,"height",qi+"px")),(fr||Gr)&&S.setNodeMarkup(T,null,As)})(B,we,ce.nodePosition),B.dispatch(we);const qe=S.view||window;function jt(bi){((B,S)=>{const T=Fh.getState(B.state),{dragging:W,nodePosition:ce,activeHandle:we}=T;if(ce<0||!W)return;let qe=xg(B.nodeDOM(ce));const jt=qe.getBoundingClientRect(),_n=r_[we],bi=(S.clientX-W.startX)*_n.x,qi=(S.clientY-W.startY)*_n.y,rr=(qe.ownerDocument&&qe.ownerDocument.defaultView||window).getComputedStyle(qe),fr=/px/.test(rr.width)?parseFloat(rr.width):qe.offsetWidth,Gr=/px/.test(rr.height)?parseFloat(rr.height):qe.offsetHeight,As=_n.x?bi+fr:jt.width,ka=_n.y?qi+Gr:jt.height;W.startX=_n.x?S.clientX:W.startX,W.startY=_n.y?S.clientY:W.startY,so[we]&&(qe.style.width=As+"px"),Vo[we]&&(qe.style.height=ka+"px")})(B,bi)}return qe.addEventListener("mouseup",function _n(bi){qe.removeEventListener("mouseup",_n),qe.removeEventListener("mousemove",jt),(B=>{const{dragging:S,nodePosition:T,activeHandle:W}=Fh.getState(B.state);if(S){const ce=B.state.doc.nodeAt(T),we=xg(B.nodeDOM(T)),qe=sa(we);if(ce){const jt=qe.offsetWidth+"px",_n=qe.offsetHeight+"px",bi=B.state.tr;let qi=ce.attrs;const Oo=mp(qi.style);so[W]&&we.style.width&&Oo.width!==jt&&(qi=Ip(qi,"width",jt)),Vo[W]&&we.style.height&&Oo.height!==_n&&(qi=Ip(qi,"height",_n)),qi=((B,S,T,W)=>{const ce=B.state.doc.nodeAt(T),we=xg(B.nodeDOM(T)),jt=(we.ownerDocument&&we.ownerDocument.defaultView||window).getComputedStyle,_n=Array.from(we.rows);ce.forEach((fr,Gr,As)=>{const ka=mp(fr.attrs.style).height;ka&&!/px$/.test(ka)&&S.setNodeMarkup(T+Gr+1,null,Ip(fr.attrs,"height",jt(_n[As]).height))});const bi=we.firstChild,qi=Array.from(bi&&bi.children||[]);let Oo=!1;qi.forEach((fr,Gr)=>{fr.style.width&&!/px$/.test(fr.style.width)&&(fr.style.width=jt(qi[Gr]).width,Oo=!0)});let rr=Object.assign({},W);return Oo&&(rr[sr]=bi.outerHTML),rr})(B,bi,T,qi),bi.setNodeMarkup(T,null,qi),bi.setMeta("commandName","node-resize"),bi.setMeta("args",qi),bi.setMeta(Fh,{setDragging:null,activeHandle:null,nodePosition:T}),B.dispatch(bi)}}})(B)}),qe.addEventListener("mousemove",jt),!0},Qa=(B={node:"table"})=>new ht({key:Fh,view:S=>({selectedNode(T,W){const ce=T.selection;if(ce instanceof $o&&W===ce.node.type&&ce instanceof $o)return{node:ce.node,pos:ce.from};const qe=M_(ce.$from,_n=>_n.type===W),jt=qe&&qe.node;return jt?{node:jt,pos:ce.$from.start(qe.depth)-1}:null},update(T,W){const ce=T.state,we=ce.schema.nodes[B.node],qe=this.selectedNode(ce,we),jt=this.selectedNode(W,we);if((qe||!jt||W.doc.eq(T.state.doc))&&(qe||jt)){const _n=ce.tr;if(_n.setMeta("addToHistory",!1),qe&&jt&&qe.pos!==jt.pos){_n.setMeta(Fh,{nodePosition:qe.pos});const bi=_n.doc.nodeAt(jt.pos);bi&&bi.type.name===we.name&&_n.setNodeMarkup(jt.pos,we,Object.assign(Object.assign({},jt.node.attrs),{[yr]:!1})),_n.setNodeMarkup(qe.pos,we,Object.assign(Object.assign({},qe.node.attrs),{[yr]:!0})),T.dispatch(_n)}else qe&&jt&&qe.pos===jt.pos&&!qe.node.attrs[yr]&&!ce.selection.eq(W.selection)?(_n.setMeta(Fh,{nodePosition:qe.pos}),T.dispatch(_n.setNodeMarkup(qe.pos,we,Object.assign(Object.assign({},qe.node.attrs),{[yr]:!0})))):qe&&!jt?(_n.setMeta(Fh,{nodePosition:qe.pos}),T.dispatch(_n.setNodeMarkup(qe.pos,we,Object.assign(Object.assign({},qe.node.attrs),{[yr]:!0})))):!qe&&jt&&(_n.setMeta(Fh,{nodePosition:-1}),T.dispatch(_n.setNodeMarkup(jt.pos,we,Object.assign(Object.assign({},jt.node.attrs),{[yr]:!1}))))}}}),state:{init:()=>new Er("",null,-1),apply:(S,T)=>T.apply(S)},props:{handleDOMEvents:{mousedown:(S,T)=>Ma(S,T)}}});class Cl{ignoreMutation(S){return"attributes"===S.type&&"style"===S.attributeName&&"TR"===S.target.nodeName}}class Yl{constructor(S,T){this.activeHandle=S,this.dragging=T}apply(S){let T=this,W=S.getMeta(eh);if(W&&null!=W.setHandle)return new Yl(W.setHandle,null);if(W&&void 0!==W.setDragging)return new Yl(T.activeHandle,W.setDragging);if(T.activeHandle>-1){let ce=S.mapping.map(T.activeHandle,-1);(function sc(B){return"row"===B.parent.type.spec.tableRole&&B.nodeAfter})(S.doc.resolve(ce))||(ce=null),T=new Yl(ce,T.dragging)}return T}}function Yp(B,S){const T=B.state.tr;T.setMeta("addToHistory",!1),T.setMeta(eh,{setHandle:S}),B.dispatch(T)}class $h extends kr{constructor(S){super(S,S)}map(S,T){let W=S.resolve(T.map(this.head));return $h.valid(W)?new $h(W):kr.near(W)}content(){return P.empty}eq(S){return S instanceof $h&&S.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(S,T){if("number"!=typeof T.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new $h(S.resolve(T.pos))}getBookmark(){return new Lv(this.anchor)}static valid(S){let T=S.parent;if(T.isTextblock||!function r0(B){for(let S=B.depth;S>=0;S--){let T=B.index(S),W=B.node(S);if(0!=T)for(let ce=W.child(T-1);;ce=ce.lastChild){if(0==ce.childCount&&!ce.inlineContent||ce.isAtom||ce.type.spec.isolating)return!0;if(ce.inlineContent)return!1}else if(W.type.spec.isolating)return!0}return!0}(S)||!function L1(B){for(let S=B.depth;S>=0;S--){let T=B.indexAfter(S),W=B.node(S);if(T!=W.childCount)for(let ce=W.child(T);;ce=ce.firstChild){if(0==ce.childCount&&!ce.inlineContent||ce.isAtom||ce.type.spec.isolating)return!0;if(ce.inlineContent)return!1}else if(W.type.spec.isolating)return!0}return!0}(S))return!1;let W=T.type.spec.allowGapCursor;if(null!=W)return W;let ce=T.contentMatchAt(S.index()).defaultType;return ce&&ce.isTextblock}static findGapCursorFrom(S,T,W=!1){e:for(;;){if(!W&&$h.valid(S))return S;let ce=S.pos,we=null;for(let qe=S.depth;;qe--){let jt=S.node(qe);if(T>0?S.indexAfter(qe)<jt.childCount:S.index(qe)>0){we=jt.child(T>0?S.indexAfter(qe):S.index(qe)-1);break}if(0==qe)return null;ce+=T;let _n=S.doc.resolve(ce);if($h.valid(_n))return _n}for(;;){let qe=T>0?we.firstChild:we.lastChild;if(!qe){if(we.isAtom&&!we.isText&&!$o.isSelectable(we)){S=S.doc.resolve(ce+we.nodeSize*T),W=!1;continue e}break}we=qe,ce+=T;let jt=S.doc.resolve(ce);if($h.valid(jt))return jt}return null}}}$h.prototype.visible=!1,$h.findFrom=$h.findGapCursorFrom,kr.jsonID("gapcursor",$h);class Lv{constructor(S){this.pos=S}map(S){return new Lv(S.map(this.pos))}resolve(S){let T=S.resolve(this.pos);return $h.valid(T)?new $h(T):kr.near(T)}}const V0=Km({ArrowLeft:Nv("horiz",-1),ArrowRight:Nv("horiz",1),ArrowUp:Nv("vert",-1),ArrowDown:Nv("vert",1)});function Nv(B,S){const T="vert"==B?S>0?"down":"up":S>0?"right":"left";return function(W,ce,we){let qe=W.selection,jt=S>0?qe.$to:qe.$from,_n=qe.empty;if(qe instanceof Ss){if(!we.endOfTextblock(T)||0==jt.depth)return!1;_n=!1,jt=W.doc.resolve(S>0?jt.after():jt.before())}let bi=$h.findGapCursorFrom(jt,S,_n);return!!bi&&(ce&&ce(W.tr.setSelection(new $h(bi))),!0)}}function Qy(B,S,T){if(!B||!B.editable)return!1;let W=B.state.doc.resolve(S);if(!$h.valid(W))return!1;let ce=B.posAtCoords({left:T.clientX,top:T.clientY});return!(ce&&ce.inside>-1&&$o.isSelectable(B.state.doc.nodeAt(ce.inside))||(B.dispatch(B.state.tr.setSelection(new $h(W))),0))}function Xy(B,S){if("insertCompositionText"!=S.inputType||!(B.state.selection instanceof $h))return!1;let{$from:T}=B.state.selection,W=T.parent.contentMatchAt(T.index()).findWrapping(B.state.schema.nodes.text);if(!W)return!1;let ce=E.empty;for(let qe=W.length-1;qe>=0;qe--)ce=E.from(W[qe].createAndFill(null,ce));let we=B.state.tr.replace(T.pos,T.pos,new P(ce,0,0));return we.setSelection(Ss.near(we.doc.resolve(T.pos+1))),B.dispatch(we),!1}function qy(B){if(!(B.selection instanceof $h))return null;let S=document.createElement("div");return S.className="ProseMirror-gapcursor",ac.create(B.doc,[Ou.widget(B.selection.head,S,{key:"gapcursor"})])}const s0=/^table$/,N1=/^table_row$/,a2=/^table_cell|table_header$/,Z_=(B,S)=>{const T=B.$head;for(let W=T.depth;W>0;W--){const ce=T.node(W);if(S.test(ce.type.name))return{pos:T.before(W),node:ce}}return null},W0=(B,S)=>function Yd(B,S){if(!Wf(B))return!1;if(S){const T=Gu(B);S(Pu(B.tr,T,T.top))}return!0}(B,S&&(W=>{const ce=Z_(W.selection,N1),we=Z_(W.selection,s0);if(ce&&we&&ce.node.attrs[co]){let qe=0;for(let bi=0;bi<we.node.nodeSize;bi++)if(we.node.child(bi).eq(ce.node)){qe=bi;break}const jt=we.node.child(qe-1);W.setNodeMarkup(ce.pos-jt.nodeSize,void 0,{[co]:ce.node.attrs[co]})}return S(W)})),hy=(B,S)=>function gg(B,S){if(!Wf(B))return!1;if(S){const T=Gu(B);S(Pu(B.tr,T,T.bottom))}return!0}(B,S&&(W=>{const ce=Z_(W.selection,N1);return ce&&ce.node.attrs[co]&&W.setNodeMarkup(ce.pos+ce.node.nodeSize,void 0,{[co]:ce.node.attrs[co]}),S(W)})),a0=(B,S)=>{if(!B)return-1;const T=Oc.get(B.node),W=Z_(S,a2),ce=T.map.indexOf(W.pos-B.pos-1);let we=-1;return-1!==ce&&(we=ce%T.width),we},B_=(B,S,T)=>{const W=a0(S,B.selection),ce=Rh(S.node.attrs[sr]);ce.insertBefore(ce.ownerDocument.createElement("col"),ce.children[W+T]),B.setNodeMarkup(S.pos,null,Object.assign(Object.assign({},S.node.attrs),{[sr]:ce.outerHTML}))},Fv=(B,S)=>function dp(B,S){if(!Wf(B))return!1;if(S){const T=Gu(B);S(Hu(B.tr,T,T.left))}return!0}(B,S&&(W=>{const ce=Z_(W.selection,s0);return ce.node.attrs[sr]&&B_(W,ce,-1),S(W)})),l0=(B,S)=>function Ng(B,S){if(!Wf(B))return!1;if(S){const T=Gu(B);S(Hu(B.tr,T,T.right))}return!0}(B,S&&(W=>{const ce=Z_(W.selection,s0);return ce.node.attrs[sr]&&B_(W,ce,1),S(W)})),Sg=(B,S)=>{const T=Z_(B.selection,s0),W=T&&T.node.attrs[sr],ce=a0(T,B.selection);return function xc(B,S){if(!Wf(B))return!1;if(S){const T=Gu(B),W=B.tr;if(0==T.left&&T.right==T.map.width)return!1;for(let ce=T.right-1;up(W,T,ce),ce!=T.left;ce--){const we=T.tableStart?W.doc.nodeAt(T.tableStart-1):W.doc;if(!we)throw RangeError("No table found");T.table=we,T.map=Oc.get(we)}S(W)}return!0}(B,S&&(qe=>{if(!W)return S(qe);const jt=qe.doc.nodeAt(T.pos);return((B,S,T)=>{const W=Rh(S.node.attrs[sr]);W.removeChild(W.children[T]),B.setNodeMarkup(S.pos,null,Object.assign(Object.assign({},S.node.attrs),{[sr]:W.outerHTML}))})(qe,{node:jt,pos:T.pos},ce),S(qe)}))};var c0=i(12624),du=i(80889),pm=i(58951),Wm=i(15735),rg=i(5954),Zp=i(96814),wg=i(31486),zc=i(73942),Eg=i(60886);i(9237);const K_=["textarea"],z_=["srcInput"],yv=["hrefInput"];function bv(B,S){if(1&B&&(e.ynx(0),e.TgZ(1,"kendo-formfield"),e.ynx(2),e.TgZ(3,"span",13),e._UZ(4,"input",14),e.qZA(),e.TgZ(5,"label",15),e._uU(6),e.qZA(),e.BQk(),e.qZA(),e.BQk()),2&B){const T=e.oxw();e.xp6(5),e.Q6J("labelClass",!1),e.xp6(1),e.Oqu(T.textForWithPrefix("OpenInNewWindow"))}}const Op=["element"];function d0(B,S){if(1&B&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&B){const T=e.oxw().$implicit;e.Akn("display: block; font-size: 2em; margin-left: 0; font-weight: bold;"),e.xp6(1),e.hij(" ",T.text," ")}}function j0(B,S){if(1&B&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&B){const T=e.oxw().$implicit;e.Akn("display: block; font-size: 1.5em; margin-left: 0; font-weight: bold;"),e.xp6(1),e.hij(" ",T.text," ")}}function jm(B,S){if(1&B&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&B){const T=e.oxw().$implicit;e.Akn("display: block; font-size: 1.17em; margin-left: 0; font-weight: bold;"),e.xp6(1),e.hij(" ",T.text," ")}}function Ym(B,S){if(1&B&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&B){const T=e.oxw().$implicit;e.Akn("display: block; font-size: 1em; margin-left: 0; font-weight: bold;"),e.xp6(1),e.hij(" ",T.text," ")}}function Y0(B,S){if(1&B&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&B){const T=e.oxw().$implicit;e.Akn("display: block; font-size: .83em; margin-left: 0; font-weight: bold;"),e.xp6(1),e.hij(" ",T.text," ")}}function Kp(B,S){if(1&B&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&B){const T=e.oxw().$implicit;e.Akn("display: block; font-size: .67em; margin-left: 0; font-weight: bold;"),e.xp6(1),e.hij(" ",T.text," ")}}function Bv(B,S){if(1&B&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&B){const T=e.oxw().$implicit;e.Akn("display: block; margin-left: 0;"),e.xp6(1),e.hij(" ",T.text," ")}}function U_(B,S){if(1&B&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&B){const T=e.oxw().$implicit;e.xp6(1),e.Oqu(T.text)}}function F1(B,S){1&B&&(e.ynx(0,3),e.YNc(1,d0,2,3,"span",4),e.YNc(2,j0,2,3,"span",4),e.YNc(3,jm,2,3,"span",4),e.YNc(4,Ym,2,3,"span",4),e.YNc(5,Y0,2,3,"span",4),e.YNc(6,Kp,2,3,"span",4),e.YNc(7,Bv,2,3,"span",4),e.YNc(8,U_,2,1,"span",5),e.BQk()),2&B&&(e.Q6J("ngSwitch",S.$implicit.tag),e.xp6(1),e.Q6J("ngSwitchCase","h1"),e.xp6(1),e.Q6J("ngSwitchCase","h2"),e.xp6(1),e.Q6J("ngSwitchCase","h3"),e.xp6(1),e.Q6J("ngSwitchCase","h4"),e.xp6(1),e.Q6J("ngSwitchCase","h5"),e.xp6(1),e.Q6J("ngSwitchCase","h6"),e.xp6(1),e.Q6J("ngSwitchCase","p"))}const zv=["formatDropDownList"],Cv=["toolbarTemplate"],I_=["popupTemplate"],B1=["formatButton"],Z0=["kendoEditorFormat",""];function z1(B,S){if(1&B){const T=e.EpF();e.TgZ(0,"kendo-editor-format-dropdownlist",2,3),e.NdJ("valueChange",function(ce){e.CHM(T);const we=e.oxw();return e.KtG(we.value=ce)})("valueChange",function(ce){e.CHM(T);const we=e.oxw();return e.KtG(we.onValueChange(ce))}),e.qZA()}if(2&B){const T=e.oxw();e.Q6J("defaultItem",T.defaultItem)("data",T.data)("value",T.value)("itemDisabled",T.itemDisabled)("title",T.title)("disabled",T.disabled)("tabindex",T.tabindex)}}function fy(B,S){if(1&B&&(e.TgZ(0,"span",9),e._uU(1),e.qZA()),2&B){const T=e.oxw(2);e.xp6(1),e.Oqu(T.title)}}function U1(B,S){if(1&B){const T=e.EpF();e.TgZ(0,"div",4,5),e.NdJ("click",function(){e.CHM(T);const ce=e.oxw();return e.KtG(ce.openDialog())}),e.TgZ(2,"span",6),e._UZ(3,"kendo-icon-wrapper",7),e.YNc(4,fy,2,1,"span",8),e.qZA()()}if(2&B){const T=e.oxw();e.ekj("k-disabled",T.disabled),e.Q6J("tabindex",T.tabindex),e.xp6(3),e.Q6J("svgIcon",T.applyFormatSVGIcon),e.xp6(1),e.Q6J("ngIf",T.title)}}const G1=["dialogsContainer"],K0=["content"],J0=["defaultToolbar"];function $0(B,S){if(1&B&&(e.TgZ(0,"kendo-toolbar",5,6)(2,"kendo-toolbar-buttongroup"),e._UZ(3,"kendo-toolbar-button",7)(4,"kendo-toolbar-button",8)(5,"kendo-toolbar-button",9),e.qZA(),e._UZ(6,"kendo-toolbar-dropdownlist",10),e.TgZ(7,"kendo-toolbar-buttongroup"),e._UZ(8,"kendo-toolbar-button",11)(9,"kendo-toolbar-button",12)(10,"kendo-toolbar-button",13)(11,"kendo-toolbar-button",14),e.qZA(),e.TgZ(12,"kendo-toolbar-buttongroup"),e._UZ(13,"kendo-toolbar-button",15)(14,"kendo-toolbar-button",16)(15,"kendo-toolbar-button",17)(16,"kendo-toolbar-button",18),e.qZA(),e.TgZ(17,"kendo-toolbar-buttongroup"),e._UZ(18,"kendo-toolbar-button",19)(19,"kendo-toolbar-button",20),e.qZA(),e._UZ(20,"kendo-toolbar-button",21),e.qZA()),2&B){const T=e.oxw();e.Q6J("overflow",!0)("tabindex",T.readonly?-1:0)}}function iv(B,S){if(1&B&&e._UZ(0,"div",22,23),2&B){const T=e.oxw();e.uIk("dir",T.direction)}}function xv(B,S){if(1&B){const T=e.EpF();e.TgZ(0,"div",22)(1,"iframe",24,23),e.NdJ("load",function(){e.CHM(T);const ce=e.oxw();return e.KtG(ce.iframeOnLoad())}),e.qZA()()}2&B&&(e.xp6(1),e.Udp("width",100,"%")("height",100,"%")("display","block"))}function u0(B,S){1&B&&e._UZ(0,"div",25)}const h0=[[["kendo-toolbar"]]],Q0=["kendo-toolbar"],G_=["colorpicker"],Sv=function(B){return{"font-family":B}};function f0(B,S){if(1&B&&(e.TgZ(0,"span",3),e._uU(1),e.qZA()),2&B){const T=S.$implicit;e.Q6J("ngStyle",e.VKq(2,Sv,T.fontName)),e.xp6(1),e.hij(" ",T.text," ")}}const Uv=["fontFamilyDropDownList"],q0=["fontSizeDropDownList"],tb=["fontSizeButton"],nb=["kendoEditorFontSize",""];function p0(B,S){if(1&B){const T=e.EpF();e.TgZ(0,"kendo-editor-fontsize-dropdownlist",2,3),e.NdJ("valueChange",function(ce){e.CHM(T);const we=e.oxw();return e.KtG(we.value=ce)})("valueChange",function(ce){e.CHM(T);const we=e.oxw();return e.KtG(we.onValueChange(ce))}),e.qZA()}if(2&B){const T=e.oxw();e.Q6J("defaultItem",T.defaultItem)("data",T.data)("value",T.value)("itemDisabled",T.itemDisabled)("title",T.title)("disabled",T.disabled)("tabindex",T.tabindex)}}function ov(B,S){if(1&B&&(e.TgZ(0,"span",9),e._uU(1),e.qZA()),2&B){const T=e.oxw(2);e.xp6(1),e.Oqu(T.title)}}function rv(B,S){if(1&B){const T=e.EpF();e.TgZ(0,"div",4,5),e.NdJ("click",function(){e.CHM(T);const ce=e.oxw();return e.KtG(ce.openDialog())}),e.TgZ(2,"span",6),e._UZ(3,"kendo-icon-wrapper",7),e.YNc(4,ov,2,1,"span",8),e.qZA()()}if(2&B){const T=e.oxw();e.ekj("k-disabled",T.disabled),e.Q6J("tabindex",T.tabindex),e.xp6(3),e.Q6J("svgIcon",T.fontSizeSVGIcon),e.xp6(1),e.Q6J("ngIf",T.title)}}const H1=["fontFamilyButton"],e1=["kendoEditorFontFamily",""];function t1(B,S){if(1&B){const T=e.EpF();e.TgZ(0,"kendo-editor-fontfamily-dropdownlist",2,3),e.NdJ("valueChange",function(ce){e.CHM(T);const we=e.oxw();return e.KtG(we.value=ce)})("valueChange",function(ce){e.CHM(T);const we=e.oxw();return e.KtG(we.onValueChange(ce))}),e.qZA()}if(2&B){const T=e.oxw();e.Q6J("defaultItem",T.defaultItem)("data",T.data)("value",T.value)("itemDisabled",T.itemDisabled)("title",T.title)("disabled",T.disabled)("tabindex",T.tabindex)}}function n1(B,S){if(1&B&&(e.TgZ(0,"span",9),e._uU(1),e.qZA()),2&B){const T=e.oxw(2);e.xp6(1),e.Oqu(T.title)}}function py(B,S){if(1&B){const T=e.EpF();e.TgZ(0,"div",4,5),e.NdJ("click",function(){e.CHM(T);const ce=e.oxw();return e.KtG(ce.openDialog())}),e.TgZ(2,"span",6),e._UZ(3,"kendo-icon-wrapper",7),e.YNc(4,n1,2,1,"span",8),e.qZA()()}if(2&B){const T=e.oxw();e.ekj("k-disabled",T.disabled),e.Q6J("tabindex",T.tabindex),e.xp6(3),e.Q6J("svgIcon",T.fontFamilySVGIcon),e.xp6(1),e.Q6J("ngIf",T.title)}}const m0=["colorPickerButton"];function o1(B,S){if(1&B){const T=e.EpF();e.TgZ(0,"kendo-colorpicker",2,3),e.NdJ("valueChange",function(ce){e.CHM(T);const we=e.oxw();return e.KtG(we.handleValueChange(ce))})("clearButtonClick",function(){e.CHM(T);const ce=e.oxw();return e.KtG(ce.handleClearButtonClick())})("activeColorClick",function(ce){e.CHM(T);const we=e.oxw();return e.KtG(we.handleActiveColorClick(ce))})("open",function(){e.CHM(T);const ce=e.MAs(1),we=e.oxw();return e.KtG(we.onOpen(ce))})("close",function(){e.CHM(T);const ce=e.MAs(1),we=e.oxw();return e.KtG(we.onClose(ce))})("activeViewChange",function(ce){e.CHM(T);const we=e.oxw();return e.KtG(we.onActiveViewChange(ce))}),e.qZA()}if(2&B){const T=e.oxw();e.Q6J("icon",T.icon)("svgIcon",T.svgIcon)("views",T.views)("format","hex")("value",T.value)("paletteSettings",T.paletteSettings)("disabled",T.disabled)("tabindex",T.tabindex),e.uIk("title",T.title)}}function r1(B,S){if(1&B&&e._UZ(0,"kendo-icon-wrapper",9),2&B){const T=e.oxw(2);e.Q6J("name",T.icon)("svgIcon",T.svgIcon)}}function p_(B,S){if(1&B&&(e.TgZ(0,"span",10),e._uU(1),e.qZA()),2&B){const T=e.oxw(2);e.xp6(1),e.Oqu(T.title)}}function A_(B,S){if(1&B){const T=e.EpF();e.TgZ(0,"div",4,5),e.NdJ("click",function(){e.CHM(T);const ce=e.oxw();return e.KtG(ce.openDialog())}),e.TgZ(2,"span",6),e.YNc(3,r1,1,2,"kendo-icon-wrapper",7),e.YNc(4,p_,2,1,"span",8),e.qZA()()}if(2&B){const T=e.oxw();e.ekj("k-disabled",T.disabled),e.Q6J("tabindex",T.tabindex),e.xp6(3),e.Q6J("ngIf",T.icon),e.xp6(1),e.Q6J("ngIf",T.title)}}const s1={name:"@progress/kendo-angular-editor",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1694533079,version:"13.5.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},Ev=(B,S)=>{const T={};for(const W in B)W&&null!==B[W]&&W!==S&&(T[W]=B[W]);return T},Hv=B=>{const S={},T=B.attributes;for(let W=0;W<T.length;W++){const ce=T[W];S[ce.name]=ce.value}return S},ib=(B=[])=>({...B.reduce((S,T)=>({...S,[T]:{default:null}}),{})}),sv=B=>S=>S.type.name===B,J_=(sv("table"),sv("table_body"),sv("table_head"),sv("table_foot"),sv("table_row"),sv("table_cell"),sv("table_header"),B=>({content:"block*",group:"block",attrs:{...{...ib(["class","id","style"])}},parseDOM:[{tag:B,getAttrs:Hv}],toDOM:S=>((B,S)=>{for(const T in B)if(T&&null!==B[T]&&undefined!==T)return!0;return!1})(S.attrs)?[B,Ev(S.attrs),0]:[B,0]})),Qe=["article","main","nav","header","footer","aside","section"].reduce((B,S)=>Object.assign(B,{[S]:J_(S)}),{}),h=ol,oe=Object.assign(Dp,Qe),kt=new Eo({marks:h,nodes:oe}),Zo=(B,S)=>Ni(Zu)(B,S),$a=Object.assign({},{bold:B=>ft(On,{...af,applyToWord:B}),cleanFormatting:B=>Ye(B),createLink:B=>ft(Vt,{mark:"link",attrs:B.value,applyToWord:B.applyToWord}),fontFamily:B=>ft(Fi,{style:"font-family",value:B.value,applyToWord:B.applyToWord}),fontSize:B=>ft(Fi,{style:"font-size",value:B.value,applyToWord:B.applyToWord}),insertFile:B=>ft(Vt,{mark:"link",attrs:B,applyToWord:B.applyToWord}),insertText:B=>(B=>(S,T)=>{T(S.tr.insertText(B.text,B.from,B.to))})(B),italic:B=>ft(On,{...gu,applyToWord:B}),strikethrough:B=>ft(On,{...at,applyToWord:B}),subscript:B=>ft(On,{...G,applyToWord:B}),superscript:B=>ft(On,{...Ie,applyToWord:B}),underline:B=>ft(On,{...Ee,applyToWord:B}),unlink:()=>xi(gn),foreColor:B=>ft(Fi,{style:"color",value:B.value,applyToWord:B.applyToWord}),backColor:B=>ft(Fi,{style:"background-color",value:B.value,applyToWord:B.applyToWord}),selectAll:()=>(B,S)=>To(B,S)},{alignCenter:()=>(B,S)=>Ue(B,bu)?Zo(B,S):Ni(bu)(B,S),alignJustify:()=>(B,S)=>Ue(B,nu)?Zo(B,S):Ni(nu)(B,S),alignLeft:()=>(B,S)=>Ue(B,Cd)?Zo(B,S):Ni(Cd)(B,S),alignRight:()=>(B,S)=>Ue(B,yu)?Zo(B,S):Ni(yu)(B,S),format:B=>((B,S)=>(T,W)=>{const ce=zt(T),we=T.schema.nodes,qe=T.tr;qe.setMeta("commandName",undefined),qe.setMeta("args",{value:B}),ce.forEach(_n=>{if(_n.type.isTextblock)if("p"===B){const Oo=(0,ii._T)(_n.attrs,["level"]);Jn(qe,_n,we.paragraph,Oo)}else if(/^h[1-6]$/i.test(B)){const bi=parseInt(B.substr(1),10);Jn(qe,_n,we.heading,Object.assign(Object.assign({},_n.attrs),{level:bi}))}else if("blockquote"===B){const Oo=(0,ii._T)(_n.attrs,["level"]);Jn(qe,_n,we.blockquote,Oo)}});const jt=qe.docChanged;return jt&&W(qe.scrollIntoView()),jt})(B.tag),getHTML:()=>Ke,indent:()=>ca,insertImage:B=>(B=>(S,T)=>{const{image:W}=S.schema.nodes,we=W.createAndFill(B);Sn(we)(S,qe=>T(qe.setMeta("commandName","insertImage").setMeta("args",B)))})(B),insertOrderedList:()=>Jc,insertUnorderedList:()=>Uh,outdent:()=>za,redo:()=>wc,setHTML:({content:B,parseOptions:S})=>((B,S="setHTML",T={preserveWhitespace:"full"})=>(W,ce)=>ce(W.tr.setSelection(new No(W.doc)).replaceSelectionWith(Xe(B,W.schema,T)).setMeta("commandName",S)))(B,"setHTML",S),undo:()=>pc,blockquote:()=>Qt},{insertTable:B=>(B=>(S,T)=>{const W=((B,S,T)=>{const{table:W,table_row:ce,table_cell:we}=B,qe=[];let jt;for(let _n=0;_n<S+1;_n++){jt=[];for(let bi=0;bi<T+1;bi++)jt.push(we.createAndFill());qe.push(ce.createAndFill(void 0,jt))}return W.createAndFill(void 0,qe)})(S.schema.nodes,B.rows,B.cols);W&&Sn(W,!0)(S,T)})(B),addColumnBefore:()=>Fv,addColumnAfter:()=>l0,addRowBefore:()=>W0,addRowAfter:()=>hy,deleteRow:()=>Hp,deleteColumn:()=>Sg,mergeCells:()=>_g,splitCell:()=>Fg,deleteTable:()=>Bd}),Ll={alignCenter:{selected:!1,disabled:!1},alignJustify:{selected:!1,disabled:!1},alignLeft:{selected:!1,disabled:!1},alignRight:{selected:!1,disabled:!1},bold:{selected:!1,disabled:!1},italic:{selected:!1,disabled:!1},underline:{selected:!1,disabled:!1},strikethrough:{selected:!1,disabled:!1},subscript:{selected:!1,disabled:!1},superscript:{selected:!1,disabled:!1},format:{selected:{text:"Format",tag:null},disabled:!1},style:{selected:{marks:[],hasNodesWithoutMarks:!1},disabled:!1},cleanFormatting:{selected:!1,disabled:!0},blockquote:{selected:!1,disabled:!1},indent:{selected:!1,disabled:!1},outdent:{selected:!1,disabled:!1},insertOrderedList:{selected:!1,disabled:!1},insertUnorderedList:{selected:!1,disabled:!1},unlink:{selected:!1,disabled:!0},redo:{selected:!1,disabled:!0},undo:{selected:!1,disabled:!0},print:{selected:!1,disabled:!1},createLink:{selected:!1,disabled:!0},insertFile:{selected:!1,disabled:!0},insertImage:{selected:!1,disabled:!1},viewSource:{selected:!1,disabled:!1},insertTable:{selected:!1,disabled:!1},addColumnBefore:{selected:!1,disabled:!0},addColumnAfter:{selected:!1,disabled:!0},addRowBefore:{selected:!1,disabled:!0},addRowAfter:{selected:!1,disabled:!0},deleteRow:{selected:!1,disabled:!0},deleteColumn:{selected:!1,disabled:!0},mergeCells:{selected:!1,disabled:!0},splitCell:{selected:!1,disabled:!0},deleteTable:{selected:!1,disabled:!0},selectAll:{selected:!1,disabled:!1}},Gc={alignCenter:{selected:!1,disabled:!0},alignJustify:{selected:!1,disabled:!0},alignLeft:{selected:!1,disabled:!0},alignRight:{selected:!1,disabled:!0},bold:{selected:!1,disabled:!0},italic:{selected:!1,disabled:!0},underline:{selected:!1,disabled:!0},strikethrough:{selected:!1,disabled:!0},subscript:{selected:!1,disabled:!0},superscript:{selected:!1,disabled:!0},format:{selected:{text:"Format",tag:null},disabled:!0},style:{selected:{marks:[],hasNodesWithoutMarks:!1},disabled:!0},cleanFormatting:{selected:!1,disabled:!0},blockquote:{selected:!1,disabled:!0},indent:{selected:!1,disabled:!0},outdent:{selected:!1,disabled:!0},insertOrderedList:{selected:!1,disabled:!0},insertUnorderedList:{selected:!1,disabled:!0},unlink:{selected:!1,disabled:!0},redo:{selected:!1,disabled:!0},undo:{selected:!1,disabled:!0},print:{selected:!1,disabled:!0},createLink:{selected:!1,disabled:!0},insertFile:{selected:!1,disabled:!0},insertImage:{selected:!1,disabled:!0},viewSource:{selected:!1,disabled:!0},insertTable:{selected:!1,disabled:!0},addColumnBefore:{selected:!1,disabled:!0},addColumnAfter:{selected:!1,disabled:!0},addRowBefore:{selected:!1,disabled:!0},addRowAfter:{selected:!1,disabled:!0},deleteRow:{selected:!1,disabled:!0},deleteColumn:{selected:!1,disabled:!0},mergeCells:{selected:!1,disabled:!0},splitCell:{selected:!1,disabled:!0},deleteTable:{selected:!1,disabled:!0},selectAll:{selected:!1,disabled:!0}};function Fc(B){let S=B.offsetWidth;const T=getComputedStyle(B);return S+=parseFloat(T.marginLeft)||0+parseFloat(T.marginRight)||0,S}const $f=B=>null==B,Nu=B=>!$f(B),ju=B=>$f(B)?"":B.toString(),Zm=B=>B[0],Tg=B=>B[B.length-1],lv=B=>S=>S.split(B),m_=B=>B.trim(),Q_=(B,S)=>{if(B.hasNodesWithoutMarks)return"";const T=B.marks.filter(W=>"style"===W.type.name).map(W=>W.attrs.style).map(ju).map(lv(";")).map((B=>S=>S.filter(B))(W=>W.includes(S))).map(W=>0!==W.length?W:[`${S}: INVALID`]).map(Zm).map(lv(":")).map(Tg).map(m_).reduce((W,ce)=>W.indexOf(ce)>-1?W:[...W,ce],[]);return T.indexOf("INVALID")>-1||1!==T.length?"":T[0]},Tv=B=>S=>T=>S?B(T):T;let Ec=(()=>{class B extends pm.oQ{constructor(T,W,ce){super(T,W,ce)}}return B.\u0275fac=function(T){return new(T||B)(e.LFG(pm.mM),e.LFG(pm.ez,8),e.LFG(pm.lw,8))},B.\u0275prov=e.Yz7({token:B,factory:B.\u0275fac}),B})(),b0=(()=>{class B extends f.jA{constructor(T,W){super(T),this.dialog=T,this.localization=W,this.data=""}ngAfterViewInit(){Promise.resolve(null).then(()=>{this.textarea.focus()})}onCancelAction(){this.dialog.close()}onConfirmAction(){this.editor.exec("setHTML",this.getData()),this.dialog.close(),this.editor.view.focus()}getData(){return this.textarea.value}setData(){this.data=this.indent(this.editor.getSource())}textFor(T){return this.localization.get(T)}indent(T){return T.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/gi,"<$1$2>\n<li").replace(/<br \/>/gi,"<br />\n").replace(/\n$/,"")}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(f.zj),e.Y36(Ec))},B.\u0275cmp=e.Xpm({type:B,selectors:[["ng-component"]],viewQuery:function(T,W){if(1&T&&e.Gf(K_,7),2&T){let ce;e.iGM(ce=e.CRH())&&(W.textarea=ce.first)}},inputs:{editor:"editor"},features:[e.qOj],decls:9,vars:7,consts:[[3,"close"],["flow","horizontal","resizable","none",1,"k-editor-textarea",3,"value"],["textarea",""],["layout","start"],["kendoButton","",3,"primary","click"],["kendoButton","",3,"click"]],template:function(T,W){1&T&&(e.TgZ(0,"kendo-dialog-titlebar",0),e.NdJ("close",function(){return W.onCancelAction()}),e._uU(1),e.qZA(),e._UZ(2,"kendo-textarea",1,2),e.TgZ(4,"kendo-dialog-actions",3)(5,"button",4),e.NdJ("click",function(){return W.onConfirmAction()}),e._uU(6),e.qZA(),e.TgZ(7,"button",5),e.NdJ("click",function(){return W.onCancelAction()}),e._uU(8),e.qZA()()),2&T&&(e.xp6(1),e.hij(" ",W.textFor("viewSource")," "),e.xp6(1),e.Udp("height",100,"%"),e.Q6J("value",W.data),e.xp6(3),e.Q6J("primary",!0),e.xp6(1),e.Oqu(W.textFor("dialogUpdate")),e.xp6(2),e.Oqu(W.textFor("dialogCancel")))},dependencies:[f.lw,du.U5,f.Tg,Wm.r0],encapsulation:2}),B})(),u1=(()=>{class B extends f.jA{constructor(T,W){super(T),this.dialog=T,this.localization=W,this.src=new n.NI("",n.kI.required),this.alt=new n.NI(""),this.width=new n.NI("",n.kI.min(1)),this.height=new n.NI("",n.kI.min(1)),this.data={alt:"",height:"",src:"",width:""},this.imageData=new n.cw({alt:this.alt,height:this.height,src:this.src,width:this.width})}ngOnInit(){this.srcInputId=`k-${(0,k.M8)()}`,this.altTextInputId=`k-${(0,k.M8)()}`,this.widthInputId=`k-${(0,k.M8)()}`,this.heightInputId=`k-${(0,k.M8)()}`}ngAfterViewInit(){Promise.resolve(null).then(()=>{this.srcInput.focus()})}onCancelAction(){this.dialog.close()}onConfirmAction(){this.src.value&&(this.editor.exec("insertImage",this.getData()),this.dialog.close(),this.editor.view.focus())}setData(T){const W=(B=>{if(B.selection instanceof $o)return B.selection.node})(T);W&&(this.src.patchValue(W.attrs.src),this.alt.patchValue(W.attrs.alt),this.width.patchValue(W.attrs.width),this.height.patchValue(W.attrs.height))}textFor(T){return this.localization.get(T)}getData(){return{alt:this.alt.value,height:this.normalizeDimension(this.height.value),src:this.src.value,width:this.normalizeDimension(this.width.value)}}normalizeDimension(T){return Number.isNaN(parseInt(T,10))||parseInt(T,10)<=0?"":ju(parseInt(T,10))}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(f.zj),e.Y36(Ec))},B.\u0275cmp=e.Xpm({type:B,selectors:[["ng-component"]],viewQuery:function(T,W){if(1&T&&e.Gf(z_,5),2&T){let ce;e.iGM(ce=e.CRH())&&(W.srcInput=ce.first)}},inputs:{editor:"editor"},features:[e.qOj],decls:24,vars:17,consts:[[3,"close"],[1,"k-form","k-form-md"],["labelCssClass","k-form-label",3,"for","text"],[3,"formControl"],["srcInput",""],["altTextInput",""],["widthInput",""],["heightInput",""],["layout","start"],["kendoButton","",3,"disabled","primary","click"],["kendoButton","",3,"click"]],template:function(T,W){if(1&T&&(e.TgZ(0,"kendo-dialog-titlebar",0),e.NdJ("close",function(){return W.onCancelAction()}),e._uU(1),e.qZA(),e.TgZ(2,"div",1)(3,"kendo-formfield"),e._UZ(4,"kendo-label",2)(5,"kendo-textbox",3,4),e.qZA(),e.TgZ(7,"kendo-formfield"),e._UZ(8,"kendo-label",2)(9,"kendo-textbox",3,5),e.qZA(),e.TgZ(11,"kendo-formfield"),e._UZ(12,"kendo-label",2)(13,"kendo-textbox",3,6),e.qZA(),e.TgZ(15,"kendo-formfield"),e._UZ(16,"kendo-label",2)(17,"kendo-textbox",3,7),e.qZA()(),e.TgZ(19,"kendo-dialog-actions",8)(20,"button",9),e.NdJ("click",function(){return W.onConfirmAction()}),e._uU(21),e.qZA(),e.TgZ(22,"button",10),e.NdJ("click",function(){return W.onCancelAction()}),e._uU(23),e.qZA()()),2&T){const ce=e.MAs(6),we=e.MAs(10),qe=e.MAs(14),jt=e.MAs(18);e.xp6(1),e.hij(" ",W.textFor("insertImage")," "),e.xp6(3),e.Q6J("for",ce)("text",W.textFor("imageWebAddress")),e.xp6(1),e.Q6J("formControl",W.src),e.xp6(3),e.Q6J("for",we)("text",W.textFor("imageAltText")),e.xp6(1),e.Q6J("formControl",W.alt),e.xp6(3),e.Q6J("for",qe)("text",W.textFor("imageWidth")),e.xp6(1),e.Q6J("formControl",W.width),e.xp6(3),e.Q6J("for",jt)("text",W.textFor("imageHeight")),e.xp6(1),e.Q6J("formControl",W.height),e.xp6(3),e.Q6J("disabled",W.imageData.invalid)("primary",!0),e.xp6(1),e.Oqu(W.textFor("dialogInsert")),e.xp6(2),e.Oqu(W.textFor("dialogCancel"))}},dependencies:[f.lw,du.hg,rg._n,du.PL,f.Tg,Wm.r0,n.JJ,n.oH],encapsulation:2}),B})(),df=(()=>{class B extends f.jA{constructor(T,W){super(T),this.dialog=T,this.localization=W,this.linkForm=new n.cw({href:new n.NI("",n.kI.required),text:new n.NI({value:"",disabled:!0},n.kI.required),title:new n.NI("")})}ngAfterViewInit(){Promise.resolve(null).then(()=>{this.hrefInput.focus()})}onCancelAction(){this.dialog.close()}onConfirmAction(){const T=this.getData();this.editor.exec(this.command,T),this.dialog.close(),this.editor.view.focus()}get titleText(){return this.localization.get(this.command)}setData(T,W){"createLink"===this.command&&this.linkForm.addControl("target",new n.NI);const ce=((B,S)=>{const T=Pt(B,S),W=T.filter(ce=>!!ce);return T.length===W.length?T[0]:void 0})(T,T.schema.marks.link);if(ce)this.linkForm.reset({href:ce.attrs.href,title:ce.attrs.title,target:Nu(ce.attrs.target),text:this.setLinkText(T)});else if(T.selection.empty){const we=W.applyToWord?Ht(T,()=>{},W).state:T;we.selection.empty||this.linkForm.patchValue({text:Dn(we)})}else this.linkForm.patchValue({text:Dn(T)})}textForWithPrefix(T){return this.textFor(("createLink"===this.command?"link":"file")+T)}textFor(T){return this.localization.get(T)}setLinkText(T){const W=T.selection;if(W.empty&&W.$cursor){const ce=W.$cursor,we=ce.index();return ce.parent.child(we).text}return Dn(T)}getData(){const T=this.linkForm.value;return Nu(this.linkForm.controls.target)&&(T.target=T.target?"_blank":null),T}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(f.zj),e.Y36(Ec))},B.\u0275cmp=e.Xpm({type:B,selectors:[["ng-component"]],viewQuery:function(T,W){if(1&T&&e.Gf(yv,5),2&T){let ce;e.iGM(ce=e.CRH())&&(W.hrefInput=ce.first)}},inputs:{editor:"editor",command:"command"},features:[e.qOj],decls:21,vars:13,consts:[[3,"close"],["novalidate","",1,"k-form","k-form-md",3,"formGroup"],["labelCssClass","k-form-label",3,"for","text"],["formControlName","href"],["hrefInput",""],["formControlName","text"],["textInput",""],["formControlName","title"],["titleInput",""],[4,"ngIf"],["layout","start"],["kendoButton","",3,"disabled","primary","click"],["kendoButton","",3,"click"],[1,"k-checkbox-wrap"],["id","k-target-blank","type","checkbox","kendoCheckBox","","formControlName","target"],["for","k-target-blank",1,"k-checkbox-label",3,"labelClass"]],template:function(T,W){if(1&T&&(e.TgZ(0,"kendo-dialog-titlebar",0),e.NdJ("close",function(){return W.onCancelAction()}),e._uU(1),e.qZA(),e.TgZ(2,"form",1)(3,"kendo-formfield"),e._UZ(4,"kendo-label",2)(5,"kendo-textbox",3,4),e.qZA(),e.TgZ(7,"kendo-formfield"),e._UZ(8,"kendo-label",2)(9,"kendo-textbox",5,6),e.qZA(),e.TgZ(11,"kendo-formfield"),e._UZ(12,"kendo-label",2)(13,"kendo-textbox",7,8),e.qZA(),e.YNc(15,bv,7,2,"ng-container",9),e.qZA(),e.TgZ(16,"kendo-dialog-actions",10)(17,"button",11),e.NdJ("click",function(){return W.onConfirmAction()}),e._uU(18),e.qZA(),e.TgZ(19,"button",12),e.NdJ("click",function(){return W.onCancelAction()}),e._uU(20),e.qZA()()),2&T){const ce=e.MAs(6),we=e.MAs(10),qe=e.MAs(14);e.xp6(1),e.hij(" ",W.titleText," "),e.xp6(1),e.Q6J("formGroup",W.linkForm),e.xp6(2),e.Q6J("for",ce)("text",W.textForWithPrefix("WebAddress")),e.xp6(4),e.Q6J("for",we)("text",W.textForWithPrefix("Text")),e.xp6(4),e.Q6J("for",qe)("text",W.textForWithPrefix("Title")),e.xp6(3),e.Q6J("ngIf","createLink"===W.command),e.xp6(2),e.Q6J("disabled",W.linkForm.invalid)("primary",!0),e.xp6(1),e.Oqu(W.textFor("dialogInsert")),e.xp6(2),e.Oqu(W.textFor("dialogCancel"))}},dependencies:[f.lw,du.hg,rg._n,du.PL,f.Tg,Wm.r0,n._Y,n.JL,n.sg,n.JJ,n.u,Zp.O5,n.Wl,du.wd,rg.q8],encapsulation:2}),B})();let td=(()=>{class B{}return B.\u0275fac=function(T){return new(T||B)},B.\u0275prov=e.Yz7({token:B,factory:B.\u0275fac}),B})(),ad=(()=>{class B{constructor(T){this.zone=T,this.needsCheck=new o.x}}return B.\u0275fac=function(T){return new(T||B)(e.LFG(e.R0b))},B.\u0275prov=e.Yz7({token:B,factory:B.\u0275fac}),B})();class p1{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class cv extends p1{constructor(S,T,W){super(),this.cleanedHtml=S,this.originalHtml=T,this.originalEvent=W}}let Wv=(()=>{class B{constructor(T,W){this.hostEl=T,this.zone=W,this.preventDefault=ce=>{ce.preventDefault()}}get hostElement(){return this.hostEl.nativeElement}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{this.hostElement.addEventListener("pointerdown",this.preventDefault)})}ngOnDestroy(){this.hostElement.removeEventListener("pointerdown",this.preventDefault)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(e.SBq),e.Y36(e.R0b))},B.\u0275dir=e.lG2({type:B,selectors:[["","kendoEditorDropDownTool",""]]}),B})(),C0=(()=>{class B{constructor(){this.valueChange=new e.vpe}onValueChange(T){this.valueChange.emit(T)}focus(){this.dropDownList.focus()}}return B.\u0275fac=function(T){return new(T||B)},B.\u0275cmp=e.Xpm({type:B,selectors:[["kendo-editor-format-dropdownlist"]],viewQuery:function(T,W){if(1&T&&(e.Gf(Op,7),e.Gf(Op,7,wg.rI)),2&T){let ce;e.iGM(ce=e.CRH())&&(W.element=ce.first),e.iGM(ce=e.CRH())&&(W.dropDownList=ce.first)}},inputs:{data:"data",value:"value",defaultItem:"defaultItem",itemDisabled:"itemDisabled",title:"title",disabled:"disabled",tabindex:"tabindex"},outputs:{valueChange:"valueChange"},decls:3,vars:12,consts:[["kendoEditorDropDownTool","",3,"defaultItem","textField","valueField","data","value","valuePrimitive","itemDisabled","disabled","tabindex","valueChange"],["element",""],["kendoDropDownListItemTemplate",""],[3,"ngSwitch"],[3,"style",4,"ngSwitchCase"],[4,"ngSwitchDefault"]],template:function(T,W){1&T&&(e.TgZ(0,"kendo-dropdownlist",0,1),e.NdJ("valueChange",function(we){return W.value=we})("valueChange",function(we){return W.onValueChange(we)}),e.YNc(2,F1,9,8,"ng-template",2),e.qZA()),2&T&&(e.Udp("width",13,"em"),e.Q6J("defaultItem",W.defaultItem)("textField","text")("valueField","tag")("data",W.data)("value",W.value)("valuePrimitive",!0)("itemDisabled",W.itemDisabled)("disabled",W.disabled)("tabindex",W.tabindex),e.uIk("title",W.title))},dependencies:[wg.rI,Wv,wg.uc,Zp.RF,Zp.n9,Zp.ED],encapsulation:2}),B})(),dv=(()=>{class B extends f.jA{constructor(T,W){super(T),this.dialog=T,this.localization=W,this.data=[]}ngAfterViewInit(){Promise.resolve(null).then(()=>{this.formatDropDownList.dropDownList.focus()})}onCancelAction(){this.dialog.close()}onConfirmAction(){this.value&&this.editor.exec("format",{tag:this.value}),this.dialog.close()}setData(T){this.editor=T.editor,this.data=T.data,this.defaultItem=T.defaultItem,this.value=T.value,this.itemDisabled=T.itemDisabled}textFor(T){return this.localization.get(T)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(f.zj),e.Y36(Ec))},B.\u0275cmp=e.Xpm({type:B,selectors:[["ng-component"]],viewQuery:function(T,W){if(1&T&&e.Gf(zv,7,C0),2&T){let ce;e.iGM(ce=e.CRH())&&(W.formatDropDownList=ce.first)}},inputs:{editor:"editor"},features:[e.qOj],decls:10,vars:10,consts:[[3,"close"],[3,"defaultItem","data","value","itemDisabled","valueChange"],["formatDropDownList",""],["layout","start"],["kendoButton","",3,"primary","click"],["kendoButton","",3,"click"]],template:function(T,W){1&T&&(e.TgZ(0,"kendo-dialog-titlebar",0),e.NdJ("close",function(){return W.onCancelAction()}),e._uU(1),e.qZA(),e.TgZ(2,"div")(3,"kendo-editor-format-dropdownlist",1,2),e.NdJ("valueChange",function(we){return W.value=we}),e.qZA()(),e.TgZ(5,"kendo-dialog-actions",3)(6,"button",4),e.NdJ("click",function(){return W.onConfirmAction()}),e._uU(7),e.qZA(),e.TgZ(8,"button",5),e.NdJ("click",function(){return W.onCancelAction()}),e._uU(9),e.qZA()()),2&T&&(e.xp6(1),e.hij(" ",W.textFor("format")," "),e.xp6(1),e.Udp("text-align","center"),e.xp6(1),e.Q6J("defaultItem",W.defaultItem)("data",W.data)("value",W.value)("itemDisabled",W.itemDisabled),e.xp6(3),e.Q6J("primary",!0),e.xp6(1),e.Oqu(W.textFor("dialogApply")),e.xp6(2),e.Oqu(W.textFor("dialogCancel")))},dependencies:[f.lw,C0,f.Tg,Wm.r0],encapsulation:2}),B})(),x0=(()=>{class B extends x.JU{constructor(T,W,ce,we,qe){super(),this.dialogService=T,this.localization=W,this.toolsService=we,this.renderer=qe,this.disabled=!1,this.tabindex=-1,this.valueChange=new e.vpe,this._data=[{text:"Paragraph",tag:"p"},{text:"Heading 1",tag:"h1"},{text:"Heading 2",tag:"h2"},{text:"Heading 3",tag:"h3"},{text:"Heading 4",tag:"h4"},{text:"Heading 5",tag:"h5"},{text:"Heading 6",tag:"h6"}],this.applyFormatSVGIcon=zc.Pn,this.editor=ce.editor}set data(T){this._data=T||this._data}get data(){return this._data}ngOnInit(){this.itemDisabled=T=>!(this.overflows||!this.formatDropDownList||this.formatDropDownList.dropDownList.isOpen)||null===T.dataItem.tag,setTimeout(()=>{this.defaultItem={text:this.title,tag:null},this.toolsService.needsCheck.next()}),this.subs=this.editor.stateChange.subscribe(({format:T})=>{const W=this.data.findIndex(ce=>ce.tag===T.selected.tag);this.value=-1!==W?T.selected.tag:null,this.disabled=T.disabled})}onValueChange(T){Nu(T)&&(this.editor.exec("format",{tag:T}),this.editor.view.focus(),this.valueChange.emit(this.data.find(W=>W.tag===T)))}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}get outerWidth(){const T=this.formatDropDownList.element;if(T)return Fc(T.nativeElement)}get title(){return this.localization.get("format")}openDialog(){const T={appendTo:this.editor.dialogContainer,content:dv,width:400};this.editor.toolbar.toggle(!1);const W=this.dialogService.open(T).content.instance;this.renderer.addClass(W.dialog.dialog.instance.wrapper.nativeElement.querySelector(".k-window"),"k-editor-window"),W.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})}canFocus(){return!this.disabled}focus(){this.tabindex=0,this.overflows?this.formatButton.nativeElement.focus():this.formatDropDownList.focus()}handleKey(){return this.tabindex=-1,!1}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(f.xA),e.Y36(Ec),e.Y36(td),e.Y36(ad),e.Y36(e.Qsj))},B.\u0275cmp=e.Xpm({type:B,selectors:[["kendo-toolbar-dropdownlist","kendoEditorFormat",""]],viewQuery:function(T,W){if(1&T&&(e.Gf(Cv,7),e.Gf(I_,7),e.Gf(zv,5),e.Gf(B1,5,e.SBq)),2&T){let ce;e.iGM(ce=e.CRH())&&(W.toolbarTemplate=ce.first),e.iGM(ce=e.CRH())&&(W.popupTemplate=ce.first),e.iGM(ce=e.CRH())&&(W.formatDropDownList=ce.first),e.iGM(ce=e.CRH())&&(W.formatButton=ce.first)}},inputs:{data:"data"},outputs:{valueChange:"valueChange"},features:[e._Bn([{provide:x.JU,useExisting:(0,e.Gpc)(()=>B)}]),e.qOj],attrs:Z0,decls:4,vars:0,consts:[["toolbarTemplate",""],["popupTemplate",""],[3,"defaultItem","data","value","itemDisabled","title","disabled","tabindex","valueChange"],["formatDropDownList",""],["role","menuitem",1,"k-item","k-menu-item",3,"tabindex","click"],["formatButton",""],[1,"k-link","k-menu-link"],["name","apply-format",3,"svgIcon"],["class","k-menu-link-text",4,"ngIf"],[1,"k-menu-link-text"]],template:function(T,W){1&T&&(e.YNc(0,z1,2,7,"ng-template",null,0,e.W1O),e.YNc(2,U1,5,5,"ng-template",null,1,e.W1O))},dependencies:[C0,Eg.ZS,Zp.O5],encapsulation:2}),B})(),Dv=(()=>{class B extends pm.Z1{}return B.\u0275fac=function(){let S;return function(W){return(S||(S=e.n5z(B)))(W||B)}}(),B.\u0275dir=e.lG2({type:B,selectors:[["","kendoEditorMessages",""]],inputs:{alignCenter:"alignCenter",alignJustify:"alignJustify",alignLeft:"alignLeft",alignRight:"alignRight",backColor:"backColor",blockquote:"blockquote",bold:"bold",cleanFormatting:"cleanFormatting",createLink:"createLink",fontFamily:"fontFamily",fontSize:"fontSize",foreColor:"foreColor",format:"format",indent:"indent",insertFile:"insertFile",insertImage:"insertImage",insertOrderedList:"insertOrderedList",insertUnorderedList:"insertUnorderedList",italic:"italic",outdent:"outdent",print:"print",redo:"redo",selectAll:"selectAll",strikethrough:"strikethrough",subscript:"subscript",superscript:"superscript",underline:"underline",undo:"undo",unlink:"unlink",viewSource:"viewSource",insertTable:"insertTable",addColumnBefore:"addColumnBefore",addColumnAfter:"addColumnAfter",addRowBefore:"addRowBefore",addRowAfter:"addRowAfter",deleteColumn:"deleteColumn",deleteRow:"deleteRow",deleteTable:"deleteTable",mergeCells:"mergeCells",splitCell:"splitCell",dialogApply:"dialogApply",dialogCancel:"dialogCancel",dialogInsert:"dialogInsert",dialogUpdate:"dialogUpdate",fileText:"fileText",fileTitle:"fileTitle",fileWebAddress:"fileWebAddress",imageAltText:"imageAltText",imageHeight:"imageHeight",imageWebAddress:"imageWebAddress",imageWidth:"imageWidth",linkOpenInNewWindow:"linkOpenInNewWindow",linkText:"linkText",linkTitle:"linkTitle",linkWebAddress:"linkWebAddress"},features:[e.qOj]}),B})(),jv=(()=>{class B extends Dv{constructor(T){super(),this.service=T}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(pm.oQ))},B.\u0275dir=e.lG2({type:B,selectors:[["","kendoEditorLocalizedMessages",""]],features:[e._Bn([{provide:Dv,useExisting:(0,e.Gpc)(()=>B)}]),e.qOj]}),B})();const uv={alignCenter:"align-center",alignJustify:"align-justify",alignLeft:"align-left",alignRight:"align-right",backColor:"droplet",blockquote:"blockquote",bold:"bold",cleanFormatting:"clear-css",createLink:"link",foreColor:"foreground-color",indent:"indent",insertFile:"file-add",insertImage:"image",insertOrderedList:"list-ordered",insertUnorderedList:"list-unordered",italic:"italic",outdent:"outdent",print:"print",redo:"redo",selectAll:"select-all",strikethrough:"strikethrough",subscript:"subscript",superscript:"supscript",underline:"underline",undo:"undo",unlink:"unlink",viewSource:"code",insertTable:"table-add",addColumnBefore:"table-column-insert-left",addColumnAfter:"table-column-insert-right",addRowBefore:"table-row-insert-above",addRowAfter:"table-row-insert-below",deleteRow:"table-row-delete",deleteColumn:"table-column-delete",mergeCells:"cells-merge",splitCell:"cell-split-horizontally",deleteTable:"table-delete"},ev={alignCenter:zc.LEE,alignJustify:zc.BxM,alignLeft:zc.$g8,alignRight:zc.gem,backColor:zc.zfv,blockquote:zc.Dc8,bold:zc.r_d,cleanFormatting:zc.V8V,createLink:zc.NqI,foreColor:zc.Bl3,indent:zc.Ouv,insertFile:zc.EAA,insertImage:zc.GzL,insertOrderedList:zc.Pyu,insertUnorderedList:zc.rRS,italic:zc.Zan,outdent:zc.WIQ,print:zc.GSz,redo:zc.NzR,selectAll:zc.CCI,strikethrough:zc.UsW,subscript:zc.Ntp,superscript:zc.QNP,underline:zc.Q3u,undo:zc.s_Y,unlink:zc.sPT,viewSource:zc.uq1,insertTable:zc.Adj,addColumnBefore:zc.h0F,addColumnAfter:zc.fNn,addRowBefore:zc.dAf,addRowAfter:zc.H4i,deleteRow:zc.heQ,deleteColumn:zc.K8V,mergeCells:zc.GPf,splitCell:zc.UTP,deleteTable:zc.d3p},Dg=new e.OlP("COMMAND_TOKEN");let S0=(()=>{class B{constructor(T,W,ce,we,qe){this.command=T,this.button=W,this.localization=ce,this.toolsService=qe,this.editor=we.editor,this.toolsService.zone.runOutsideAngular(()=>{setTimeout(()=>{const jt=this.localization.get(this.command);jt&&(this.button.showText="overflow",this.button.showIcon="both",this.button.text=jt),this.button.toolbarOptions.icon||(this.button.icon=uv[this.command]),this.button.toolbarOptions.svgIcon||(this.button.svgIcon=ev[this.command]),this.button.title=jt,this.toolsService.zone.run(()=>{this.toolsService.needsCheck.next()})})})}ngOnInit(){this.subs=this.editor.stateChange.subscribe(this.onStateChange.bind(this)),this.subs.add(this.button.click.subscribe(this.clickHandler.bind(this))),this.subs.add(this.button.pointerdown.subscribe(this.pointerdownHandler.bind(this)))}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}clickHandler(){}pointerdownHandler(T){}onStateChange(T){}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(Dg),e.Y36(x.eJ),e.Y36(pm.oQ),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["","kendoEditorCommandBase",""]]}),B})();class uu extends S0{constructor(S,T,W,ce,we){super(S,T,W,ce,we),this.command=S,this.button=T,this.localization=W,this.providerService=ce,this.toolsService=we}clickHandler(){this.editor.exec(this.command,this.editor.applyToWord),this.editor.focus()}pointerdownHandler(S){S.preventDefault()}onStateChange(S){this.providerService.editor.ngZone.onStable.pipe((0,s.q)(1)).subscribe(()=>{this.button.selected=S[this.command].selected,this.button.disabled=S[this.command].disabled})}}let Mg=(()=>{class B extends uu{constructor(T,W,ce,we){super("bold",T,W,ce,we)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorBoldButton",""]],features:[e.qOj]}),B})(),sg=(()=>{class B extends uu{constructor(T,W,ce,we){super("italic",T,W,ce,we)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorItalicButton",""]],features:[e.qOj]}),B})(),ag=(()=>{class B extends uu{constructor(T,W,ce,we){super("underline",T,W,ce,we)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorUnderlineButton",""]],features:[e.qOj]}),B})(),Yv=(()=>{class B extends uu{constructor(T,W,ce,we){super("alignLeft",T,W,ce,we)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorAlignLeftButton",""]],features:[e.qOj]}),B})(),Zv=(()=>{class B extends uu{constructor(T,W,ce,we){super("alignCenter",T,W,ce,we)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorAlignCenterButton",""]],features:[e.qOj]}),B})(),Kv=(()=>{class B extends uu{constructor(T,W,ce,we){super("alignRight",T,W,ce,we)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorAlignRightButton",""]],features:[e.qOj]}),B})(),w0=(()=>{class B extends uu{constructor(T,W,ce,we){super("alignJustify",T,W,ce,we)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorAlignJustifyButton",""]],features:[e.qOj]}),B})(),E0=(()=>{class B extends uu{constructor(T,W,ce,we){super("insertUnorderedList",T,W,ce,we)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorInsertUnorderedListButton",""]],features:[e.qOj]}),B})(),T0=(()=>{class B extends uu{constructor(T,W,ce,we){super("insertOrderedList",T,W,ce,we)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorInsertOrderedListButton",""]],features:[e.qOj]}),B})(),Jv=(()=>{class B extends uu{constructor(T,W,ce,we){super("indent",T,W,ce,we)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorIndentButton",""]],features:[e.qOj]}),B})(),tv=(()=>{class B extends uu{constructor(T,W,ce,we){super("outdent",T,W,ce,we)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorOutdentButton",""]],features:[e.qOj]}),B})();class D0 extends S0{constructor(S,T,W,ce,we){super(S,T,W,ce,we),this.dialog=S,this.button=T,this.localization=W,this.providerService=ce,this.toolsService=we}clickHandler(){this.editor.openDialog(this.dialog)}onStateChange(S){this.providerService.editor.ngZone.onStable.pipe((0,s.q)(1)).subscribe(()=>{this.button.selected=S[this.command].selected,this.button.disabled=S[this.command].disabled})}}let $v=(()=>{class B extends D0{constructor(T,W,ce,we){super("createLink",T,W,ce,we)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorCreateLinkButton",""]],features:[e.qOj]}),B})(),Mv=(()=>{class B extends uu{constructor(T,W,ce,we){super("unlink",T,W,ce,we)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorUnlinkButton",""]],features:[e.qOj]}),B})(),m1=(()=>{class B extends D0{constructor(T,W,ce,we){super("insertImage",T,W,ce,we)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorInsertImageButton",""]],features:[e.qOj]}),B})();const M0="<p></p>",Z1={convertMsLists:!1,removeAttributes:[],removeHtmlComments:!1,removeInvalidHTML:!0,removeMsClasses:!1,removeMsStyles:!1,stripTags:[]},k0=Tv(B=>B.replace(/<!--[\s\S]+?-->/g,"")),yy=Tv(B=>(B=(B=(B=(B=(B=(B=(B=(B=(B=B.replace(/^[\s\S]+?<!--StartFragment-->\s*([\s\S]*?)\s*<!--EndFragment-->[\s\S]+$/,"$1")).replace(/<\/?[ovw]:[^>]*?>/gi,"")).replace(/<\\?\??xml[^>]*>/gi,"")).replace(/<(?:link|meta) [^>]+?>/gi,"")).replace(/<style[^>]*?>\s*<\/style>/gi,"")).replace(/<\/?st1:.*?>/gi,"")).replace(/<a name="[a-zA-Z0-9_]+">/gim,"")).replace(/v:shapes?="[^"]+"/gi,"")).replace(/<!\[if !supportLists\]>/gi,"")).replace(/<!\[endif\]>/gi,"")),g1=B=>{if("all"===B.removeAttributes)return{"*":kp};const S=(B=>((B,S)=>Object.keys(B).filter(T=>S(T)).reduce((T,W)=>Object.assign(T,{[W]:B[W]}),{}))(B,T=>null!=B[T]&&""!==B[T]))({style:B.removeMsStyles?n_:void 0,class:B.removeMsClasses?jp:void 0});return B.removeAttributes.reduce((T,W)=>({...T,[W]:kp}),S)};let K1=(()=>{class B{constructor(T,W,ce,we,qe,jt,_n,bi){this.dialogService=T,this.localization=W,this.cdr=ce,this.ngZone=we,this.element=qe,this.providerService=jt,this.toolsService=_n,this.renderer=bi,this.iframe=!0,this.applyToWord=!1,this.preserveWhitespace=!1,this.resizable=!1,this.valueChange=new e.vpe,this.onFocus=new e.vpe,this.paste=new e.vpe,this.onBlur=new e.vpe,this.hostClass=!0,this.stateChange=new a.X(Ll),this.showLicenseWatermark=!1,this.valueModified=new o.x,this.focusableId=`k-editor-${(0,k.M8)()}`,this._readonly=!1,this._placeholder="",this.inForm=!1,this._iframeCss={keepBuiltInCss:!0},this.afterViewInit=new o.x,this.contentAreaLoaded=new o.x,this.dispatchTransaction=Oo=>{const rr=Oo.docChanged;if(!(this.disabled||this.readonly&&rr)){if(rr){const Gr=Ke({doc:Oo.doc});this.trOnChange=Oo,this.htmlOnChange=Gr,this.ngZone.run(()=>{this.valueModified.next(Gr===M0?"":Gr)})}(!rr||this.inForm)&&(this.view.updateState(this.view.state.apply(Oo)),this.trOnChange=null)}},this.transformPastedContent=(Oo,rr)=>{if(rr)return this.dispatchPasteEvent(Oo,Oo);const fr={...Z1,...this.pasteCleanupSettings},Gr=((...B)=>S=>B.reduce((T,W)=>W(T),S))(yy(fr.removeInvalidHTML),k0(fr.removeHtmlComments))(Oo),As=Hm(Gr,{convertMsLists:fr.convertMsLists,stripTags:fr.stripTags.join("|"),attributes:g1(fr)});return this.dispatchPasteEvent(Oo,As)},this.transformPastedHTML=Oo=>this.transformPastedContent(Oo),this.transformPastedText=Oo=>this.transformPastedContent(Oo,!0),this.changeValue=Oo=>{const rr=this._value;if(this._value=Oo,this._view){if(this.htmlOnChange===Oo&&this.trOnChange)this.view.updateState(this.view.state.apply(this.trOnChange));else if((rr||"")!==(Oo||"")){if(this.iframe&&!this.container.element.nativeElement.contentWindow)return;const Gr=this.view.state,As=Xe(Oo||"",Gr.schema,{preserveWhitespace:this.preserveWhitespace}),ka=Gr.tr.setSelection(new No(Gr.doc)).replaceSelectionWith(As);this.view.updateState(Gr.apply(ka))}this.trOnChange=null,this.htmlOnChange=null}},this.onChangeCallback=Oo=>{this.changeValue(Oo)},this.onTouchedCallback=Oo=>{},this.onPaste=(Oo,rr)=>(this._pasteEvent=rr,!1);const qi=(0,c0.s)(s1);this.showLicenseWatermark=(0,k.Gk)(qi),this.providerService.editor=this,this.direction=W.rtl?"rtl":"ltr",this.subs=(0,l.$)(this.afterViewInit.asObservable(),this.contentAreaLoaded.asObservable()).subscribe(()=>this.initialize())}set value(T){this.changeValue(T)}get value(){if(this.trOnChange)return this.htmlOnChange;const T=this._view?this.getSource():this._value;return T===M0?this._value?"":this._value:T}set disabled(T){this._disabled=T||!1,this._view&&this._view.updateState(this._view.state),this._disabled&&(this.readonly=!1),this.stateChange.next(this._disabled||this._readonly?Gc:Ll)}get disabled(){return this._disabled}set readonly(T){if(this._readonly=T||!1,this._view){let W;W=this.iframe?this.container.element.nativeElement.contentWindow:window;const ce=W.getSelection().focusNode;this._view.dom.contains(ce)&&W.getSelection().removeAllRanges();const qe=this._view.state.tr.setSelection(Ss.create(this._view.state.doc,1));this._view.dispatch(qe)}this._readonly?(this.toolbar&&(this.toolbar.tabindex=-1),this.stateChange.next(Gc)):(this.toolbar&&(this.toolbar.tabindex=0),this.stateChange.next(Ll))}get readonly(){return this._readonly}set iframeCss(T){this._iframeCss=Object.assign(this._iframeCss,T)}get iframeCss(){return this._iframeCss}set schema(T){if(e.X6Q){if(!(T instanceof Eo))throw new Error("Expected value of type Schema. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/");if(this._view)throw new Error("The Schema cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/")}this._schema=T}get schema(){return this._schema}set plugins(T){if(e.X6Q){if("function"!=typeof T)throw new Error((B=>`plugins must be a function, but received ${JSON.stringify(B)}.`)(T));if(this._view)throw new Error("The plugins cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/plugins/")}this._plugins=T}get plugins(){return this._plugins}set placeholder(T){if(e.X6Q&&this._view)throw new Error("The placeholder cannot be changed dynamically. See https://www.telerik.com/kendo-angular-ui/components/editor/plugins/#toc-custom-plugins/");this._placeholder=T}get placeholder(){return this._placeholder}get resizableClass(){return!!this.resizable}get isDisabled(){return this.disabled}get isReadonly(){return this.readonly}get isIE(){return this.iframe&&(()=>{if(!(0,k.X_)())return!1;const B=window.navigator.userAgent,S=B.indexOf("MSIE "),T=B.indexOf("Trident/");return S>0||T>0})()}get dir(){return this.direction}get ariaDisabled(){return this.disabled}get minWidth(){const T=this.resizable;return T.minWidth?T.minWidth+"px":void 0}get maxWidth(){const T=this.resizable;return T.maxWidth?T.maxWidth+"px":void 0}get minHeight(){const T=this.resizable;return T.minHeight?T.minHeight+"px":void 0}get maxHeight(){const T=this.resizable;return T.maxHeight?T.maxHeight+"px":void 0}get toolbar(){return this.defaultToolbarComponent||this.userToolBarComponent}get toolbarElement(){return this.defaultToolbar||this.userToolBarElement}get view(){return this._view}get selectionText(){return this._view&&this._view.state?Dn(this._view.state):""}ngOnInit(){this.subs.add(this.localization.changes.subscribe(({rtl:T})=>{this.direction=T?"rtl":"ltr"})),this.subs.add(this.toolsService.needsCheck.subscribe(()=>this.cdr.markForCheck()))}ngAfterViewInit(){(0,k.X_)()&&(this.afterViewInit.next(),this.iframe||this.contentAreaLoaded.next(),this.resizable&&this.normalizeSize(),this.userToolBarComponent&&this.renderer.addClass(this.userToolBarComponent.element.nativeElement,"k-editor-toolbar"),this.toolbar.overflow&&this.toolbar.onResize())}ngOnChanges(T){T.value&&this.view&&this.changeValue(T.value.currentValue),T.iframe&&!T.iframe.isFirstChange()&&this.ngZone.onStable.pipe((0,s.q)(1)).subscribe(()=>this.initialize()),T.resizable&&!T.resizable.isFirstChange()&&this.normalizeSize()}setDisabledState(T){this.disabled=T}iframeOnLoad(){this.contentAreaLoaded.next()}exec(T,W){"setHTML"===T&&"string"==typeof W?W={content:W,parseOptions:{preserveWhitespace:this.preserveWhitespace}}:["fontFamily","fontSize","foreColor","backColor","createLink"].some(we=>we===T)&&(W={value:W,applyToWord:this.applyToWord}),$a[T](W)(this._view.state,this._view.dispatch,this._view)}openDialog(T){const ce=Object.assign({appendTo:this.dialogContainer},{createLink:{content:df,width:400},insertFile:{content:df,width:400},insertImage:{content:u1,width:400},viewSource:{content:b0,height:400,width:500}}[T]);this.toolbar.toggle(!1);const we=this.dialogService.open(ce).content.instance;this.renderer.addClass(we.dialog.dialog.instance.wrapper.nativeElement.querySelector(".k-window"),"k-editor-window"),("createLink"===T||"insertFile"===T)&&(we.command=T),we.editor=this,we.setData(this._view.state,{applyToWord:this.applyToWord})}focus(){this.focusChangedProgrammatically=!0,this._view.focus(),this.focusChangedProgrammatically=!1}blur(){this.focusChangedProgrammatically=!0,this._view.dom.blur(),this.focusChangedProgrammatically=!1}getSource(){return Ke(this._view.state)}ngOnDestroy(){this.subs&&this.subs.unsubscribe(),this._styleObserver&&this._styleObserver.disconnect()}writeValue(T){this.inForm=!0,this.value=null===T?void 0:T}registerOnChange(T){this.onChangeCallback=T}registerOnTouched(T){this.onTouchedCallback=T}isEmpty(){return!1}initialize(){if(!(0,k.X_)())return;const T=this.schema||kt,W=this.container.element.nativeElement,ce=Xe((this.value||"").trim(),T,{preserveWhitespace:this.preserveWhitespace});if(this.iframe){const jt=W.contentDocument,_n=jt.createElement("meta");_n.setAttribute("charset","utf-8"),jt.head.appendChild(_n);const bi=!!this.iframeCss.path,Oo=`\n                \n    .ProseMirror .tableWrapper {\n        overflow-x: auto;\n        margin: 1em 0;\n    }\n\n    .ProseMirror table {\n        margin: 0;\n        border-collapse: collapse;\n        table-layout: fixed;\n        width: 100%;\n        overflow: hidden;\n    }\n\n    .ProseMirror td, .ProseMirror th {\n        min-width: 1em;\n        border: 1px solid #ddd;\n        padding: 3px 5px;\n        vertical-align: top;\n        box-sizing: border-box;\n        position: relative;\n    }\n\n    .ProseMirror th {\n        font-weight: bold;\n        text-align: left;\n    }\n\n    .ProseMirror .column-resize-handle {\n        position: absolute;\n        right: -2px; top: 0; bottom: 0;\n        width: 4px;\n        z-index: 20;\n        background-color: #adf;\n        pointer-events: none;\n    }\n\n    .ProseMirror.resize-cursor {\n        cursor: ew-resize;\n        cursor: col-resize;\n    }\n\n    /* Give selected cells a blue overlay */\n    .ProseMirror .selectedCell:after {\n        z-index: 2;\n        position: absolute;\n        content: "";\n        left: 0; right: 0; top: 0; bottom: 0;\n        background: rgba(200, 200, 255, 0.4);\n        pointer-events: none;\n    }\n\n    /* Resizing */\n    .k-editor-resize-wrap-element {\n        display: inline-block;\n        position: relative;\n    }\n\n    .ProseMirror .row-resize-handle {\n        position: absolute;\n        right: 0; left: 0; bottom: 0;\n        transform: translate(0, 50%);\n        height: 4px;\n        z-index: 20;\n        background-color: #adf;\n        pointer-events: none;\n    }\n    \n    .ProseMirror.resize-cursor-vertical {\n        cursor: sn-resize;\n        cursor: row-resize;\n    }\n\n    .k-editor-resize-wrap-element table td p,\n    .k-editor-resize-wrap-element table th p {\n        margin: 0 auto;\n    }\n\n    .ProseMirror[contenteditable="false"] .k-editor-resize-handle,\n    .ProseMirror[contenteditable="false"] .k-editor-resize-handles-wrapper,\n    .ProseMirror[contenteditable="false"] .row-resize-handle,\n    .ProseMirror[contenteditable="false"] .column-resize-handle {\n        display: none;\n    }\n    \n    .ProseMirror[contenteditable="false"] table {\n        pointer-events: none;\n    }\n    \n    .ProseMirror[contenteditable="false"] .ProseMirror-selectednode {\n        outline: none;\n    }\n    \n    .ProseMirror[contenteditable="false"] {\n        cursor: unset !important;\n    }\n\n                ${this.iframeCss.keepBuiltInCss?'\n    html, body {\n        margin: 0;\n        height: 100%;\n        padding: 0;\n    }\n\n    html {\n        min-height: 100%;\n    }\n\n    body {\n        box-sizing: border-box;\n        position: relative;\n        word-wrap: break-word;\n        padding: 8px;\n    }\n\n    body > .k-content {\n        outline: 0;\n        height: 100%;\n        white-space: pre-wrap;\n    }\n\n    div.ProseMirror {\n        position: relative;\n        word-wrap: break-word;\n        white-space: pre-wrap;\n        white-space: break-spaces;\n        -webkit-font-variant-ligatures: none;\n        font-variant-ligatures: none;\n        font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n    }\n\n    .ProseMirror pre {\n        white-space: pre-wrap;\n    }\n\n    .k-content > p {\n        margin: 0 0 1em;\n    }\n\n    .k-content table {\n        white-space: pre-wrap;\n    }\n\n    .k-content .k-text-selected, .k-content::selection {\n        color: HighlightText;\n        background-color: Highlight;\n    }\n\n    .k-content .k-text-highlighted {\n        background-color: #bbdefb;\n    }\n\n    .k-content .ProseMirror-selectednode {\n        outline: 2px solid #8cf;\n    }\n\n    .ProseMirror-hideselection *::selection { background: transparent; }\n    .ProseMirror-hideselection *::-moz-selection { background: transparent; }\n    .ProseMirror-hideselection { caret-color: transparent; }\n\n    .ProseMirror-gapcursor {\n        display: none;\n        pointer-events: none;\n        position: absolute;\n    }\n\n    .ProseMirror-gapcursor:after {\n        content: "";\n        display: block;\n        position: absolute;\n        top: -2px;\n        width: 20px;\n        border-top: 1px solid black;\n        animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n    }\n\n    @keyframes ProseMirror-cursor-blink {\n        to {\n            visibility: hidden;\n        }\n    }\n\n    .ProseMirror-focused .ProseMirror-gapcursor {\n        display: block;\n    }\n\n    .k-editor-resize-handles-wrapper {\n        position: absolute;\n        visibility: hidden;\n    }\n\n    .k-editor-resize-handle {\n        position: absolute;\n        visibility: visible;\n        background-color: #fff;\n        border: 1px solid #000;\n        z-index: 100;\n        width: 5px;\n        height: 5px;\n    }\n\n    .k-editor-resize-handle.northwest {\n        top: 0;\n        left: 0;\n        transform: translate(-50%, -50%);\n        cursor: nw-resize;\n    }\n\n    .k-editor-resize-handle.north {\n        top: 0;\n        left: 50%;\n        transform: translate(-50%, -50%);\n        cursor: n-resize;\n    }\n\n    .k-editor-resize-handle.northeast {\n        top: 0;\n        right: 0;\n        transform: translate(50%, -50%);\n        cursor: ne-resize;\n    }\n\n    .k-editor-resize-handle.southwest {\n        left: 0;\n        bottom: 0;\n        transform: translate(-50%, 50%);\n        cursor: sw-resize;\n    }\n\n    .k-editor-resize-handle.south {\n        bottom: 0;\n        left: 50%;\n        transform: translate(-50%, 50%);\n        cursor: s-resize;\n    }\n\n    .k-editor-resize-handle.southeast {\n        right: 0;\n        bottom: 0;\n        transform: translate(50%, 50%);\n        cursor: se-resize;\n    }\n\n    .k-editor-resize-handle.west {\n        top: 50%;\n        left: 0;\n        transform: translate(-50%, -50%);\n        cursor: w-resize;\n    }\n\n    .k-editor-resize-handle.east {\n        top: 50%;\n        right: 0;\n        transform: translate(50%, -50%);\n        cursor: e-resize;\n    }\n\n    .ProseMirror .k-placeholder::before {\n        content: attr(data-placeholder);\n        height: 0;\n        color: #8a8a8a;\n        float: left;\n        opacity: 1;\n        cursor: text;\n        -webkit-user-select: none;\n        -ms-user-select: none;\n        user-select: none;\n    }\n\n    .ProseMirror li {\n        position: relative;\n    }\n\n    li.ProseMirror-selectednode {\n        outline: none;\n    }\n\n    li.ProseMirror-selectednode:after {\n        content: "";\n        position: absolute;\n        left: -32px;\n        right: -2px;\n        top: -2px;\n        bottom: -2px;\n        border: 2px solid #8cf;\n        pointer-events: none;\n    }\n\n    .ProseMirror[contenteditable="false"] img {\n        pointer-events: none;\n    }\n':""}\n                ${"rtl"===this.dir?"body { direction: rtl }":""}\n                ${this.iframeCss.content?this.iframeCss.content:""}\n            `,rr=jt.createElement("style");if(rr.appendChild(jt.createTextNode(Oo)),jt.head.appendChild(rr),bi){const Gr=jt.createElement("link");Gr.rel="stylesheet",Gr.href=this.iframeCss.path,jt.head.appendChild(Gr)}const fr=jt.createElement("div");this.renderer.addClass(fr,"k-content"),this.renderer.setAttribute(fr,"id",this.focusableId),this.renderer.setAttribute(fr,"role","textbox"),jt.body.appendChild(fr)}else{const jt=document.createElement("div");this.renderer.setAttribute(jt,"id",this.focusableId),this.renderer.setAttribute(jt,"role","textbox"),W.appendChild(jt)}const we=[new ht({key:new Yi("editor-tabindex"),props:{attributes:()=>({tabIndex:this.readonly?"0":""})}}),new ht({key:new Yi("toolbar-tools-update"),view:()=>({update:jt=>{this.disabled||this.ngZone.run(()=>{this.stateChange.next(this.readonly?Gc:((B,S)=>({alignCenter:{selected:Ue(B,bu),disabled:!1},alignJustify:{selected:Ue(B,nu),disabled:!1},alignLeft:{selected:Ue(B,Cd),disabled:!1},alignRight:{selected:Ue(B,yu),disabled:!1},bold:{selected:At(B,af),disabled:!1},cleanFormatting:{selected:!1,disabled:!Ye()(B)},format:{selected:qn(B),disabled:!1},blockquote:{selected:!1,disabled:!Qt(B)},indent:{selected:!1,disabled:!(Or(B,B.schema.nodes.list_item)||Zs(B,fs))},insertOrderedList:{selected:Ai(B,B.schema.nodes.ordered_list),disabled:!1},insertUnorderedList:{selected:Ai(B,B.schema.nodes.bullet_list),disabled:!1},italic:{selected:At(B,gu),disabled:!1},unlink:{selected:!1,disabled:!At(B,gn)},outdent:{selected:!1,get disabled(){return!(Ai(B,B.schema.nodes.blockquote)||hs(B,Ms)||Po(B,Ms.nodes))}},redo:{selected:!1,disabled:!wc(B)},selectAll:{selected:!1,disabled:!1},strikethrough:{selected:At(B,at),disabled:!1},style:{selected:Xn(B,B.schema.marks.style),disabled:!1},subscript:{selected:At(B,G),disabled:!1},superscript:{selected:At(B,Ie),disabled:!1},underline:{selected:At(B,Ee),disabled:!1},undo:{selected:!1,disabled:!pc(B)},createLink:{selected:!1,get disabled(){const T=B.selection.empty;return S&&S.applyToWord&&T?Ht(B,()=>{},S).state.selection.empty:T}},insertFile:{selected:!1,disabled:B.selection.empty},insertImage:{selected:!1,disabled:!1},viewSource:{selected:!1,disabled:!1},print:{selected:!1,disabled:!1},insertTable:{selected:!1,disabled:!1},addColumnBefore:{selected:!1,disabled:!Fv(B)},addColumnAfter:{selected:!1,disabled:!l0(B)},addRowBefore:{selected:!1,disabled:!W0(B)},addRowAfter:{selected:!1,disabled:!hy(B)},deleteRow:{selected:!1,disabled:!Hp(B)},deleteColumn:{selected:!1,disabled:!Sg(B)},mergeCells:{selected:!1,disabled:!_g(B)},splitCell:{selected:!1,disabled:!Fg(B)},deleteTable:{selected:!1,disabled:!Bd(B)}}))(jt.state,{applyToWord:this.applyToWord}))})}})}),tu(),zp(zr(T)),zp(_r(T,{applyToWord:this.applyToWord})),zp(ct),new ht({props:{decorations:qy,createSelectionBetween:(B,S,T)=>S.pos==T.pos&&$h.valid(T)?new $h(T):null,handleClick:Qy,handleKeyDown:V0,handleDOMEvents:{beforeinput:Xy}}}),fm(),Qa(),h_(),new ht({key:eh,state:{init(T,W){return this.spec.props.nodeViews[mu(W.schema).row.name]=(ce,we)=>new Cl,new Yl(-1,null)},apply:(T,W)=>W.apply(T)},props:{attributes:T=>Cg(eh,T)?null:eh.getState(T).activeHandle>-1?{class:"resize-cursor-vertical"}:null,handleDOMEvents:{mousemove:(T,W)=>(bg(eh,T.state)||function Zc(B,S,T){let W=eh.getState(B.state);if(!W.dragging){let ce=Wg(S.target),we=-1;if(ce){const qe=Ap(ce);let{top:jt,bottom:_n}=ce.getBoundingClientRect();Math.abs(S.clientY-jt)<=T&&qe.rowIndex>0?(qe.rowIndex-=ce.rowSpan,we=ig(B,S,qe)):_n-S.clientY>0&&_n-S.clientY<=T&&(we=ig(B,S,qe))}we!==W.activeHandle&&Yp(B,we)}}(T,W,5),!1),mouseleave:T=>(function Kc(B){let S=eh.getState(B.state);S.activeHandle>-1&&!S.dragging&&Yp(B,-1)}(T),!1),mousedown:(T,W)=>function gp(B,S){let T=eh.getState(B.state);if(-1===T.activeHandle||T.dragging)return!1;let ce=B.state.doc.resolve(T.activeHandle),we=ce.parent,qe=ce.node(-1),jt=mp(we.attrs.style).height,_n=mp(qe.attrs.style).height,bi=jt?parseFloat(jt):0;function qi(rr){rr.view.removeEventListener("mouseup",qi),rr.view.removeEventListener("mousemove",Oo);let fr=eh.getState(B.state);if(fr.dragging){const Gr=B.state.tr.setMeta(eh,{setDragging:null});(function Lu(B,S,T){const W=B.state.doc,ce=W.resolve(T),we=ce.parent,qe=ce.posAtIndex(0)-1,jt=B.nodeDOM(qe),_n=jt.ownerDocument&&jt.ownerDocument.defaultView||window;jt.style.height=_n.getComputedStyle(jt).height,S.setNodeMarkup(qe,null,Ip(we.attrs,"height",jt.style.height));const bi=jt&&jt.closest("table"),qi=bi&&bi.style.height;if(qi){let Oo=W.resolve(qe),rr=Oo.start(Oo.depth)-1;S.setNodeMarkup(rr,null,Ip(Oo.parent.attrs,"height",qi))}})(B,Gr,fr.activeHandle),B.dispatch(Gr)}}function Oo(rr){if(!rr.which)return qi(rr);let fr=eh.getState(B.state),Gr=function Jf(B,S){return B.startHeight.rowHeight+(S.clientY-B.startY)}(fr.dragging,rr);!function og(B,S,T,W,ce){const we=B.nodeDOM(S),qe=we&&we.parentNode;if(qe){qe.style.height=T+"px";const jt=qe.ownerDocument&&qe.ownerDocument.defaultView||window;qe.style.height=jt.getComputedStyle(qe).height;const _n=qe.closest("table"),bi=parseFloat(ce)+W+"px",qi=_n&&_n.style.height;qi&&qi!==bi&&(_n.style.height=parseFloat(ce)+W+"px",_n.style.height=jt.getComputedStyle(_n).height)}}(B,fr.activeHandle,Gr,rr.clientY-fr.dragging.startY,_n)}return jt||(bi=B.nodeDOM(T.activeHandle).offsetHeight),B.dispatch(B.state.tr.setMeta(eh,{setDragging:{startY:S.clientY,startHeight:{rowHeight:bi,tableHeight:_n}}})),S.view.addEventListener("mouseup",qi),S.view.addEventListener("mousemove",Oo),S.preventDefault(),!0}(T,W)},decorations(T){if(bg(eh,T))return ac.empty;let W=eh.getState(T);return W.activeHandle>-1?function jg(B,S){const T=[];if("number"!=typeof S)return ac.empty;const W=B.doc.resolve(S),ce=W.node(-1),we=Oc.get(ce),qe=W.start(-1),jt=[],_n=S-qe;let bi=-1;for(let Oo=0;Oo<we.height;Oo++)jt.push(we.map.slice(Oo*we.width,Oo*we.width+we.width)),-1!==jt[Oo].indexOf(_n)&&(bi=Oo);const qi=[];return jt[bi].forEach((Oo,rr)=>{(!jt[bi+1]||Oo!==jt[bi+1][rr])&&qi.push(Oo)}),qi.forEach(Oo=>{const rr=ce.nodeAt(Oo);let fr=qe+Oo+(rr?rr.nodeSize:0)-1,Gr=document.createElement("div");Gr.className="row-resize-handle",T.push(Ou.widget(fr,Gr))}),ac.create(B.doc,T)}(T,W.activeHandle):void 0},nodeViews:{}}}),Ep(),new ht({key:d_,props:{decorations:B=>{const{doc:S,selection:T,storedMarks:W}=B;if(!T.empty||!W)return ac.empty;const ce=Rt((W||[]).find(jt=>"style"===jt.type.name),{name:"color",value:/^.+$/});if(!ce)return ac.empty;const we=T.$anchor.parent,qe=[];return S.descendants((jt,_n)=>{jt.eq(we)&&qe.push(Ou.node(_n,_n+jt.nodeSize,{style:"caret-color: "+ce}))}),ac.create(S,qe)}}})];this.placeholder&&we.push(function Nh(B){const S={class:"k-placeholder","data-placeholder":B};return new ht({key:new Yi("placeholder"),props:{decorations:T=>{const{doc:W}=T,ce=W.content.firstChild;if(!(0===W.childCount||1===W.childCount&&ce.inlineContent&&0===ce.childCount))return ac.empty;const qe=[];return W.descendants((jt,_n)=>{qe.push(Ou.node(_n,_n+jt.nodeSize,S))}),ac.create(W,qe)}}})}(this.placeholder));const qe=Jt.create({schema:T,doc:ce,plugins:Nu(this.plugins)?this.plugins(we):we});if(this.viewMountElement=this.iframe?W.contentDocument.querySelector("div"):W.querySelector("div"),this.ngZone.runOutsideAngular(()=>{this._view=new nf({mount:this.viewMountElement},{state:qe,editable:()=>!this.readonly,dispatchTransaction:this.dispatchTransaction,transformPastedHTML:this.transformPastedHTML,transformPastedText:this.transformPastedText,handleDOMEvents:{paste:this.onPaste}})}),this._view){let jt;const _n=this.element.nativeElement.querySelector(".k-editor-content").classList;jt=this.iframe?this.container.element.nativeElement.contentDocument:this.container.element.nativeElement,jt.querySelector(".ProseMirror").style="'height: 100%; width: 100%; box-sizing: border-box; outline: none; overflow: auto;'",this.subs.add((0,u.R)(jt,"focusin").subscribe(qi=>{if(this.readonly&&_n.add("k-focus"),!this.focusChangedProgrammatically||this.shouldEmitFocus){const Oo=qi.relatedTarget;(!(Oo&&Oo.classList.contains("k-colorpicker"))||this.shouldEmitFocus)&&this.ngZone.run(()=>this.onFocus.emit()),this.shouldEmitFocus=!1}})),this.subs.add((0,u.R)(jt,"focusout").subscribe(qi=>{if(this.readonly&&_n.remove("k-focus"),!this.focusChangedProgrammatically){const Oo=qi.relatedTarget;Oo&&Oo.classList.contains("k-colorpicker")||this.ngZone.run(()=>this.onBlur.emit())}}))}this.subs.add(this.stateChange.subscribe(()=>{this.ngZone.onStable.pipe((0,s.q)(1)).subscribe(()=>{this.userToolBarComponent?this.userToolBarComponent.cdr.detectChanges():this.cdr.detectChanges()})})),this.subs.add(this.valueModified.subscribe(jt=>{this.onChangeCallback(jt),this.valueChange.emit(jt),this.cdr.markForCheck()})),this.subs.add((0,u.R)(this.viewMountElement,"keyup").pipe((0,A.U)(jt=>jt.keyCode),(0,_.h)(jt=>121===jt),(0,A.U)(()=>this.toolbarElement)).subscribe(jt=>jt.nativeElement.focus())),this.subs.add((0,u.R)(this.viewMountElement,"blur").pipe((0,_.h)(jt=>!this.viewMountElement.contains(jt.relatedTarget))).subscribe(()=>this.onTouchedCallback()))}normalizeSize(){if("object"==typeof this.resizable&&!this._styleObserver){const T=this.element.nativeElement;this._styleObserver=new MutationObserver(()=>{this.ngZone.runOutsideAngular(()=>this.normalizeProperties(T))}),this._styleObserver.observe(T,{attributeFilter:["style"]})}}normalizeProperties(T){const W=Object.keys(this.resizable),ce=parseInt(T.style.width,10),we=parseInt(T.style.height,10),qe=this.resizable;W.forEach(jt=>{const _n=jt.startsWith("min"),bi=!_n,qi=jt.endsWith("Width");_n&&qi?ce<qe.minWidth&&(T.style.width=qe.minWidth+"px"):_n&&!qi?we<qe.minHeight&&(T.style.height=qe.minHeight+"px"):bi&&qi?ce>qe.maxWidth&&(T.style.width=qe.maxWidth+"px"):we>qe.maxHeight&&(T.style.height=qe.maxHeight+"px")})}dispatchPasteEvent(T,W){if((0,k.g$)(this.paste)){const ce=new cv(W,T,this._pasteEvent);return this.ngZone.run(()=>this.paste.emit(ce)),ce.isDefaultPrevented()?"":ce.cleanedHtml}return W}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(f.xA),e.Y36(pm.oQ),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(td),e.Y36(ad),e.Y36(e.Qsj))},B.\u0275cmp=e.Xpm({type:B,selectors:[["kendo-editor"]],contentQueries:function(T,W,ce){if(1&T&&(e.Suo(ce,x.o9,5),e.Suo(ce,x.o9,5,e.SBq)),2&T){let we;e.iGM(we=e.CRH())&&(W.userToolBarComponent=we.first),e.iGM(we=e.CRH())&&(W.userToolBarElement=we.first)}},viewQuery:function(T,W){if(1&T&&(e.Gf(G1,5,e.s_b),e.Gf(K0,5,e.s_b),e.Gf(J0,5,e.SBq),e.Gf(J0,5,x.o9)),2&T){let ce;e.iGM(ce=e.CRH())&&(W.dialogContainer=ce.first),e.iGM(ce=e.CRH())&&(W.container=ce.first),e.iGM(ce=e.CRH())&&(W.defaultToolbar=ce.first),e.iGM(ce=e.CRH())&&(W.defaultToolbarComponent=ce.first)}},hostVars:20,hostBindings:function(T,W){2&T&&(e.uIk("dir",W.dir)("ariaDisabled",W.ariaDisabled),e.Udp("min-width",W.minWidth)("max-width",W.maxWidth)("min-height",W.minHeight)("max-height",W.maxHeight),e.ekj("k-editor",W.hostClass)("k-editor-resizable",W.resizableClass)("k-disabled",W.isDisabled)("k-readonly",W.isReadonly)("k-ie",W.isIE))},inputs:{value:"value",disabled:"disabled",readonly:"readonly",iframe:"iframe",iframeCss:"iframeCss",applyToWord:"applyToWord",schema:"schema",plugins:"plugins",placeholder:"placeholder",preserveWhitespace:"preserveWhitespace",pasteCleanupSettings:"pasteCleanupSettings",resizable:"resizable"},outputs:{valueChange:"valueChange",onFocus:"focus",paste:"paste",onBlur:"blur"},features:[e._Bn([Ec,td,ad,{provide:pm.oQ,useExisting:Ec},{provide:pm.mM,useValue:"kendo.editor"},{provide:n.JU,useExisting:(0,e.Gpc)(()=>B),multi:!0},{provide:k.GX,useExisting:(0,e.Gpc)(()=>B)}]),e.TTD],ngContentSelectors:Q0,decls:8,vars:4,consts:function(){let S,T,W,ce,we,qe,jt,_n,bi,qi,Oo,rr,fr,Gr,As,ka,hl,Ul,Dl,Yu,kd,km,mm,vc,P_,Iv,fv,Ty,pb,Dy,P0,X1,pv,mb,Xv,My,ky,Iy,gb,R0,L0,_b,q1,vb,ey,Ay,Oy,Py,ty,yb,bb,m2,g2,_2,v2;return S=$localize`:kendo.editor.alignCenter|The title of the tool that aligns text in the center.:Center text`,T=$localize`:kendo.editor.alignJustify|The title of the tool that justifies text both left and right.:Justify`,W=$localize`:kendo.editor.alignLeft|The title of the tool that aligns text on the left.:Align text left`,ce=$localize`:kendo.editor.alignRight|The title of the tool that aligns text on the right.:Align text right`,we=$localize`:kendo.editor.backColor|The title of the tool that changes the text background color.:Background color`,qe=$localize`:kendo.editor.blockquote|The title of the tool that wraps an element in a blockquote:Quotation`,jt=$localize`:kendo.editor.bold|The title of the tool that makes text bold.:Bold`,_n=$localize`:kendo.editor.cleanFormatting|The title of the Clean Formatting tool.:Clean formatting`,bi=$localize`:kendo.editor.createLink|The title of the tool that creates hyperlinks.:Insert link`,qi=$localize`:kendo.editor.dialogApply|The label of the **Apply** button in all editor dialogs.:Apply`,Oo=$localize`:kendo.editor.dialogCancel|The label of the **Cancel** button in all editor dialogs.:Cancel`,rr=$localize`:kendo.editor.dialogInsert|The label of the **Insert** button in all editor dialogs.:Insert`,fr=$localize`:kendo.editor.dialogUpdate|The label of the **Update** button in all editor dialogs.:Update`,Gr=$localize`:kendo.editor.fileText|The caption for the file text in the insertFile dialog.:Text`,As=$localize`:kendo.editor.fileTitle|The caption for the file Title in the insertFile dialog.:Title`,ka=$localize`:kendo.editor.fileWebAddress|The caption for the file URL in the insertFile dialog.:Web address`,hl=$localize`:kendo.editor.fontFamily|The title of the tool that changes the text font.:Select font family`,Ul=$localize`:kendo.editor.fontSize|The title of the tool that changes the text size.:Select font size`,Dl=$localize`:kendo.editor.foreColor|The title of the tool that changes the text color.:Color`,Yu=$localize`:kendo.editor.format|The title of the tool that lets users choose block formats.:Format`,kd=$localize`:kendo.editor.imageAltText|The caption for the image alternate text in the insertImage dialog.:Alternate text`,km=$localize`:kendo.editor.imageHeight|The caption for the image height in the insertImage dialog.:Height (px)`,mm=$localize`:kendo.editor.imageWebAddress|The caption for the image URL in the insertImage dialog.:Web address`,vc=$localize`:kendo.editor.imageWidth|The caption for the image width in the insertImage dialog.:Width (px)`,P_=$localize`:kendo.editor.indent|The title of the tool that indents the content.:Indent`,Iv=$localize`:kendo.editor.insertFile|The title of the tool that inserts links to files.:Insert file`,fv=$localize`:kendo.editor.insertImage|The title of the tool that inserts images.:Insert image`,Ty=$localize`:kendo.editor.insertOrderedList|The title of the tool that inserts an ordered list.:Insert ordered list`,pb=$localize`:kendo.editor.insertUnorderedList|The title of the tool that inserts an unordered list.:Insert unordered list`,Dy=$localize`:kendo.editor.italic|The title of the tool that makes text italicized.:Italic`,P0=$localize`:kendo.editor.linkOpenInNewWindow|The caption for the checkbox for opening the link in a new window in the createLink dialog.:Open link in new window`,X1=$localize`:kendo.editor.linkText|The caption for the link text in the createLink dialog.:Text`,pv=$localize`:kendo.editor.linkTitle|The caption for the link title in the createLink dialog.:Title`,mb=$localize`:kendo.editor.linkWebAddress|The caption for the URL in the createLink dialog.:Web address`,Xv=$localize`:kendo.editor.outdent|The title of the tool that outdents the content.:Outdent`,My=$localize`:kendo.editor.print|The title of the print tool.:Print`,ky=$localize`:kendo.editor.redo|The title of the tool that undos the last action.:Redo`,Iy=$localize`:kendo.editor.selectAll|The title of the tool that selects all content.:Select All`,gb=$localize`:kendo.editor.strikethrough|The title of the tool that strikes through text.:Strikethrough`,R0=$localize`:kendo.editor.subscript|The title of the tool that makes text subscript.:Subscript`,L0=$localize`:kendo.editor.superscript|The title of the tool that makes text superscript.:Superscript`,_b=$localize`:kendo.editor.underline|The title of the tool that underlines text.:Underline`,q1=$localize`:kendo.editor.unlink|The title of the tool that removes hyperlinks.:Remove Link`,vb=$localize`:kendo.editor.undo|The title of the tool that undos the last action.:Undo`,ey=$localize`:kendo.editor.viewSource|The title of the tool that shows the editor value as HTML.:View source`,Ay=$localize`:kendo.editor.insertTable|The title of the tool that inserts table.:Insert Table`,Oy=$localize`:kendo.editor.addColumnBefore|The title of the tool that adds new column before currently selected column.:Add column before`,Py=$localize`:kendo.editor.addColumnAfter|The title of the tool that adds new column after currently selected column.:Add column after`,ty=$localize`:kendo.editor.addRowBefore|The title of the tool that adds new row before currently selected row.:Add row before`,yb=$localize`:kendo.editor.addRowAfter|The title of the tool that adds new row after currently selected row.:Add row after`,bb=$localize`:kendo.editor.mergeCells|The title of the tool that merges the currently selected cells.:Merge cells`,m2=$localize`:kendo.editor.splitCell|The title of the tool that splits the currently selected cell.:Split cell`,g2=$localize`:kendo.editor.deleteColumn|The title of the tool that deletes a table column.:Delete column`,_2=$localize`:kendo.editor.deleteRow|The title of the tool that deletes a table row.:Delete row`,v2=$localize`:kendo.editor.deleteTable|The title of the tool that deletes a table.:Delete table`,[["kendoEditorLocalizedMessages","","alignCenter",S,"alignJustify",T,"alignLeft",W,"alignRight",ce,"backColor",we,"blockquote",qe,"bold",jt,"cleanFormatting",_n,"createLink",bi,"dialogApply",qi,"dialogCancel",Oo,"dialogInsert",rr,"dialogUpdate",fr,"fileText",Gr,"fileTitle",As,"fileWebAddress",ka,"fontFamily",hl,"fontSize",Ul,"foreColor",Dl,"format",Yu,"imageAltText",kd,"imageHeight",km,"imageWebAddress",mm,"imageWidth",vc,"indent",P_,"insertFile",Iv,"insertImage",fv,"insertOrderedList",Ty,"insertUnorderedList",pb,"italic",Dy,"linkOpenInNewWindow",P0,"linkText",X1,"linkTitle",pv,"linkWebAddress",mb,"outdent",Xv,"print",My,"redo",ky,"selectAll",Iy,"strikethrough",gb,"subscript",R0,"superscript",L0,"underline",_b,"unlink",q1,"undo",vb,"viewSource",ey,"insertTable",Ay,"addColumnBefore",Oy,"addColumnAfter",Py,"addRowBefore",ty,"addRowAfter",yb,"mergeCells",bb,"splitCell",m2,"deleteColumn",g2,"deleteRow",_2,"deleteTable",v2],["class","k-editor-toolbar",3,"overflow","tabindex",4,"ngIf"],["class","k-editor-content",4,"ngIf"],["dialogsContainer",""],["kendoWatermarkOverlay","",4,"ngIf"],[1,"k-editor-toolbar",3,"overflow","tabindex"],["defaultToolbar",""],["kendoEditorBoldButton",""],["kendoEditorItalicButton",""],["kendoEditorUnderlineButton",""],["kendoEditorFormat",""],["kendoEditorAlignLeftButton",""],["kendoEditorAlignCenterButton",""],["kendoEditorAlignRightButton",""],["kendoEditorAlignJustifyButton",""],["kendoEditorInsertUnorderedListButton",""],["kendoEditorInsertOrderedListButton",""],["kendoEditorIndentButton",""],["kendoEditorOutdentButton",""],["kendoEditorCreateLinkButton",""],["kendoEditorUnlinkButton",""],["kendoEditorInsertImageButton",""],[1,"k-editor-content"],["content",""],["srcdoc",e.$cX`<!DOCTYPE html>`,"role","none","frameborder","0",1,"k-iframe",3,"load"],["kendoWatermarkOverlay",""]]},template:function(T,W){1&T&&(e.F$t(h0),e.GkF(0,0),e.Hsn(1),e.YNc(2,$0,21,2,"kendo-toolbar",1),e.YNc(3,iv,2,1,"div",2),e.YNc(4,xv,3,6,"div",2),e.GkF(5,null,3),e.YNc(7,u0,1,0,"div",4)),2&T&&(e.xp6(2),e.Q6J("ngIf",!W.userToolBarElement),e.xp6(1),e.Q6J("ngIf",!W.iframe),e.xp6(1),e.Q6J("ngIf",W.iframe),e.xp6(3),e.Q6J("ngIf",W.showLicenseWatermark))},dependencies:[x.o9,x.VN,x.eJ,x0,k.nA,jv,Zp.O5,Mg,sg,ag,Yv,Zv,Kv,w0,E0,T0,Jv,tv,$v,Mv,m1],encapsulation:2}),B})(),_1=(()=>{class B extends f.jA{constructor(T,W){super(T),this.dialog=T,this.localization=W}ngAfterViewInit(){Promise.resolve(null).then(()=>{this.colorPicker.focus()})}handleActiveColorClick(T){T.preventOpen(),this.value=T.color}handleClearButtonClick(){this.editor.exec(this.editorCommand,void 0)}onCancelAction(){this.dialog.close()}onConfirmAction(){this.value&&this.editor.exec(this.editorCommand,this.value),this.dialog.close(),this.editor.view.focus()}setData(T){this.editor=T.editor,this.value=T.value,this.svgIcon=T.svgIcon,this.editorCommand=T.editorCommand,this.paletteSettings=T.paletteSettings,this.icon=T.icon,this.views=T.view?[T.view]:T.views}textFor(T){return this.localization.get(T)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(f.zj),e.Y36(Ec))},B.\u0275cmp=e.Xpm({type:B,selectors:[["ng-component"]],viewQuery:function(T,W){if(1&T&&e.Gf(G_,7,du.h5),2&T){let ce;e.iGM(ce=e.CRH())&&(W.colorPicker=ce.first)}},inputs:{editor:"editor"},features:[e.qOj],decls:10,vars:13,consts:[[3,"close"],[3,"views","format","icon","svgIcon","value","paletteSettings","valueChange","activeColorClick","clearButtonClick"],["colorpicker",""],["layout","start"],["kendoButton","",3,"primary","click"],["kendoButton","",3,"click"]],template:function(T,W){1&T&&(e.TgZ(0,"kendo-dialog-titlebar",0),e.NdJ("close",function(){return W.onCancelAction()}),e._uU(1),e.qZA(),e.TgZ(2,"div")(3,"kendo-colorpicker",1,2),e.NdJ("valueChange",function(we){return W.value=we})("activeColorClick",function(we){return W.handleActiveColorClick(we)})("clearButtonClick",function(){return W.handleClearButtonClick()}),e.qZA()(),e.TgZ(5,"kendo-dialog-actions",3)(6,"button",4),e.NdJ("click",function(){return W.onConfirmAction()}),e._uU(7),e.qZA(),e.TgZ(8,"button",5),e.NdJ("click",function(){return W.onCancelAction()}),e._uU(9),e.qZA()()),2&T&&(e.xp6(1),e.hij(" ",W.textFor(W.editorCommand)," "),e.xp6(1),e.Udp("text-align","center"),e.xp6(1),e.Q6J("views",W.views)("format","hex")("icon",W.icon)("svgIcon",W.svgIcon)("value",W.value)("paletteSettings",W.paletteSettings),e.uIk("title",W.title),e.xp6(3),e.Q6J("primary",!0),e.xp6(1),e.Oqu(W.textFor("dialogApply")),e.xp6(2),e.Oqu(W.textFor("dialogCancel")))},dependencies:[f.lw,du.h5,f.Tg,Wm.r0],encapsulation:2}),B})(),hv=(()=>{class B{constructor(){this.valueChange=new e.vpe}onValueChange(T){this.valueChange.emit(T)}focus(){this.dropDownList.focus()}}return B.\u0275fac=function(T){return new(T||B)},B.\u0275cmp=e.Xpm({type:B,selectors:[["kendo-editor-fontfamily-dropdownlist"]],viewQuery:function(T,W){if(1&T&&(e.Gf(Op,7),e.Gf(Op,7,wg.rI)),2&T){let ce;e.iGM(ce=e.CRH())&&(W.element=ce.first),e.iGM(ce=e.CRH())&&(W.dropDownList=ce.first)}},inputs:{data:"data",value:"value",defaultItem:"defaultItem",itemDisabled:"itemDisabled",title:"title",disabled:"disabled",tabindex:"tabindex"},outputs:{valueChange:"valueChange"},decls:3,vars:12,consts:[["kendoEditorDropDownTool","",3,"defaultItem","textField","valueField","data","value","valuePrimitive","itemDisabled","disabled","tabindex","valueChange"],["element",""],["kendoDropDownListItemTemplate",""],[3,"ngStyle"]],template:function(T,W){1&T&&(e.TgZ(0,"kendo-dropdownlist",0,1),e.NdJ("valueChange",function(we){return W.value=we})("valueChange",function(we){return W.onValueChange(we)}),e.YNc(2,f0,2,4,"ng-template",2),e.qZA()),2&T&&(e.Udp("width",13,"em"),e.Q6J("defaultItem",W.defaultItem)("textField","text")("valueField","fontName")("data",W.data)("value",W.value)("valuePrimitive",!0)("itemDisabled",W.itemDisabled)("disabled",W.disabled)("tabindex",W.tabindex),e.uIk("title",W.title))},dependencies:[wg.rI,Wv,wg.uc,Zp.PC],encapsulation:2}),B})(),H_=(()=>{class B extends f.jA{constructor(T,W){super(T),this.dialog=T,this.localization=W,this.data=[]}ngAfterViewInit(){Promise.resolve(null).then(()=>{this.fontFamilyDropDownList.dropDownList.focus()})}onCancelAction(){this.dialog.close()}onConfirmAction(){this.value&&this.editor.exec("fontFamily",this.value),this.dialog.close()}setData(T){this.editor=T.editor,this.data=T.data,this.defaultItem=T.defaultItem,this.value=T.value,this.itemDisabled=T.itemDisabled}textFor(T){return this.localization.get(T)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(f.zj),e.Y36(Ec))},B.\u0275cmp=e.Xpm({type:B,selectors:[["ng-component"]],viewQuery:function(T,W){if(1&T&&e.Gf(Uv,7,hv),2&T){let ce;e.iGM(ce=e.CRH())&&(W.fontFamilyDropDownList=ce.first)}},inputs:{editor:"editor"},features:[e.qOj],decls:10,vars:10,consts:[[3,"close"],[3,"defaultItem","data","value","itemDisabled","valueChange"],["fontFamilyDropDownList",""],["layout","start"],["kendoButton","",3,"primary","click"],["kendoButton","",3,"click"]],template:function(T,W){1&T&&(e.TgZ(0,"kendo-dialog-titlebar",0),e.NdJ("close",function(){return W.onCancelAction()}),e._uU(1),e.qZA(),e.TgZ(2,"div")(3,"kendo-editor-fontfamily-dropdownlist",1,2),e.NdJ("valueChange",function(we){return W.value=we}),e.qZA()(),e.TgZ(5,"kendo-dialog-actions",3)(6,"button",4),e.NdJ("click",function(){return W.onConfirmAction()}),e._uU(7),e.qZA(),e.TgZ(8,"button",5),e.NdJ("click",function(){return W.onCancelAction()}),e._uU(9),e.qZA()()),2&T&&(e.xp6(1),e.hij(" ",W.textFor("fontFamily")," "),e.xp6(1),e.Udp("text-align","center"),e.xp6(1),e.Q6J("defaultItem",W.defaultItem)("data",W.data)("value",W.value)("itemDisabled",W.itemDisabled),e.xp6(3),e.Q6J("primary",!0),e.xp6(1),e.Oqu(W.textFor("dialogApply")),e.xp6(2),e.Oqu(W.textFor("dialogCancel")))},dependencies:[f.lw,hv,f.Tg,Wm.r0],encapsulation:2}),B})(),kv=(()=>{class B{constructor(){this.valueChange=new e.vpe}onValueChange(T){this.valueChange.emit(T)}focus(){this.dropDownList.focus()}}return B.\u0275fac=function(T){return new(T||B)},B.\u0275cmp=e.Xpm({type:B,selectors:[["kendo-editor-fontsize-dropdownlist"]],viewQuery:function(T,W){if(1&T&&(e.Gf(Op,7),e.Gf(Op,7,wg.rI)),2&T){let ce;e.iGM(ce=e.CRH())&&(W.element=ce.first),e.iGM(ce=e.CRH())&&(W.dropDownList=ce.first)}},inputs:{data:"data",value:"value",defaultItem:"defaultItem",itemDisabled:"itemDisabled",title:"title",disabled:"disabled",tabindex:"tabindex"},outputs:{valueChange:"valueChange"},decls:2,vars:12,consts:[["kendoEditorDropDownTool","",3,"defaultItem","textField","valueField","data","value","valuePrimitive","itemDisabled","disabled","tabindex","valueChange"],["element",""]],template:function(T,W){1&T&&(e.TgZ(0,"kendo-dropdownlist",0,1),e.NdJ("valueChange",function(we){return W.value=we})("valueChange",function(we){return W.onValueChange(we)}),e.qZA()),2&T&&(e.Udp("width",13,"em"),e.Q6J("defaultItem",W.defaultItem)("textField","text")("valueField","size")("data",W.data)("value",W.value)("valuePrimitive",!0)("itemDisabled",W.itemDisabled)("disabled",W.disabled)("tabindex",W.tabindex),e.uIk("title",W.title))},dependencies:[wg.rI,Wv],encapsulation:2}),B})(),v1=(()=>{class B extends f.jA{constructor(T,W){super(T),this.dialog=T,this.localization=W,this.data=[]}ngAfterViewInit(){Promise.resolve(null).then(()=>{this.fontSizeDropDownList.dropDownList.focus()})}onCancelAction(){this.dialog.close()}onConfirmAction(){this.value&&this.editor.exec("fontSize",this.value),this.dialog.close()}setData(T){this.editor=T.editor,this.data=T.data,this.defaultItem=T.defaultItem,this.value=T.value,this.itemDisabled=T.itemDisabled}textFor(T){return this.localization.get(T)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(f.zj),e.Y36(Ec))},B.\u0275cmp=e.Xpm({type:B,selectors:[["ng-component"]],viewQuery:function(T,W){if(1&T&&e.Gf(q0,7,kv),2&T){let ce;e.iGM(ce=e.CRH())&&(W.fontSizeDropDownList=ce.first)}},inputs:{editor:"editor"},features:[e.qOj],decls:10,vars:10,consts:[[3,"close"],[3,"defaultItem","data","value","itemDisabled","valueChange"],["fontSizeDropDownList",""],["layout","start"],["kendoButton","",3,"primary","click"],["kendoButton","",3,"click"]],template:function(T,W){1&T&&(e.TgZ(0,"kendo-dialog-titlebar",0),e.NdJ("close",function(){return W.onCancelAction()}),e._uU(1),e.qZA(),e.TgZ(2,"div")(3,"kendo-editor-fontsize-dropdownlist",1,2),e.NdJ("valueChange",function(we){return W.value=we}),e.qZA()(),e.TgZ(5,"kendo-dialog-actions",3)(6,"button",4),e.NdJ("click",function(){return W.onConfirmAction()}),e._uU(7),e.qZA(),e.TgZ(8,"button",5),e.NdJ("click",function(){return W.onCancelAction()}),e._uU(9),e.qZA()()),2&T&&(e.xp6(1),e.hij(" ",W.textFor("fontSize")," "),e.xp6(1),e.Udp("text-align","center"),e.xp6(1),e.Q6J("defaultItem",W.defaultItem)("data",W.data)("value",W.value)("itemDisabled",W.itemDisabled),e.xp6(3),e.Q6J("primary",!0),e.xp6(1),e.Oqu(W.textFor("dialogApply")),e.xp6(2),e.Oqu(W.textFor("dialogCancel")))},dependencies:[f.lw,kv,f.Tg,Wm.r0],encapsulation:2}),B})(),A0=(()=>{class B extends x.JU{constructor(T,W,ce,we,qe){super(),this.dialogService=T,this.localization=W,this.toolsService=we,this.renderer=qe,this.disabled=!1,this.tabindex=-1,this.valueChange=new e.vpe,this.fontSizeSVGIcon=zc.O4n,this._data=[{text:"8px",size:"8px"},{text:"10px",size:"10px"},{text:"12px",size:"12px"},{text:"14px",size:"14px"},{text:"18px",size:"18px"},{text:"24px",size:"24px"},{text:"36px",size:"36px"}],this.editor=ce.editor}set data(T){let W;T&&(W=T.map(ce=>"number"==typeof ce.size?{...ce,size:`${ce.size}px`}:ce)),this._data=W||this._data}get data(){return this._data}ngOnInit(){this.itemDisabled=T=>!(this.overflows||!this.fontSizeDropDownList||this.fontSizeDropDownList.dropDownList.isOpen)||null===T.dataItem.size,setTimeout(()=>{this.defaultItem={text:this.title,size:null},this.toolsService.needsCheck.next()}),this.subs=this.editor.stateChange.subscribe(({style:T})=>{this.value=Q_(T.selected,"font-size")||null,this.disabled=T.disabled})}onValueChange(T){Nu(T)&&(this.editor.exec("fontSize",T),this.editor.view.focus(),this.valueChange.emit(this.data.find(W=>W.size===T)))}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}get outerWidth(){if(this.element)return Fc(this.element.nativeElement)}get title(){return this.localization.get("fontSize")}openDialog(){const T={appendTo:this.editor.dialogContainer,content:v1,width:400};this.editor.toolbar.toggle(!1);const W=this.dialogService.open(T).content.instance;this.renderer.addClass(W.dialog.dialog.instance.wrapper.nativeElement.querySelector(".k-window"),"k-editor-window"),W.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})}canFocus(){return!this.disabled}focus(){this.tabindex=0,this.overflows?this.fontSizeButton.nativeElement.focus():this.fontSizeDropDownList.focus()}handleKey(){return this.tabindex=-1,!1}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(f.xA),e.Y36(Ec),e.Y36(td),e.Y36(ad),e.Y36(e.Qsj))},B.\u0275cmp=e.Xpm({type:B,selectors:[["kendo-toolbar-dropdownlist","kendoEditorFontSize",""]],viewQuery:function(T,W){if(1&T&&(e.Gf(Cv,7),e.Gf(I_,7),e.Gf(Op,5),e.Gf(Op,5,kv),e.Gf(tb,5,e.SBq)),2&T){let ce;e.iGM(ce=e.CRH())&&(W.toolbarTemplate=ce.first),e.iGM(ce=e.CRH())&&(W.popupTemplate=ce.first),e.iGM(ce=e.CRH())&&(W.element=ce.first),e.iGM(ce=e.CRH())&&(W.fontSizeDropDownList=ce.first),e.iGM(ce=e.CRH())&&(W.fontSizeButton=ce.first)}},inputs:{data:"data"},outputs:{valueChange:"valueChange"},features:[e._Bn([{provide:x.JU,useExisting:(0,e.Gpc)(()=>B)}]),e.qOj],attrs:nb,decls:4,vars:0,consts:[["toolbarTemplate",""],["popupTemplate",""],[3,"defaultItem","data","value","itemDisabled","title","disabled","tabindex","valueChange"],["element",""],["tabindex","-1","role","menuitem",1,"k-item","k-menu-item",3,"tabindex","click"],["fontSizeButton",""],[1,"k-link","k-menu-link"],["name","font-size",3,"svgIcon"],["class","k-menu-link-text",4,"ngIf"],[1,"k-menu-link-text"]],template:function(T,W){1&T&&(e.YNc(0,p0,2,7,"ng-template",null,0,e.W1O),e.YNc(2,rv,5,5,"ng-template",null,1,e.W1O))},dependencies:[kv,Eg.ZS,Zp.O5],encapsulation:2}),B})(),y1=(()=>{class B extends x.JU{constructor(T,W,ce,we,qe){super(),this.dialogService=T,this.localization=W,this.toolsService=we,this.renderer=qe,this.disabled=!1,this.tabindex=-1,this.valueChange=new e.vpe,this.fontFamilySVGIcon=zc.uwq,this._data=[{text:"Arial",fontName:'Arial,"Helvetica Neue",Helvetica,sans-serif'},{text:"Courier New",fontName:'"Courier New",Courier,"Lucida Sans Typewriter","Lucida Typewriter",monospace'},{text:"Georgia",fontName:'Georgia,Times,"Times New Roman",serif'},{fontName:'Impact,Haettenschweiler,"Franklin Gothic Bold",Charcoal,"Helvetica Inserat","Bitstream Vera Sans Bold","Arial Black","sans serif"',text:"Impact"},{text:"Lucida Console",fontName:'"Lucida Console","Lucida Sans Typewriter",monaco,"Bitstream Vera Sans Mono",monospace'},{text:"Tahoma",fontName:"Tahoma,Verdana,Segoe,sans-serif"},{text:"Times New Roman",fontName:'TimesNewRoman,"Times New Roman",Times,Baskerville,Georgia,serif'},{text:"Trebuchet MS",fontName:'"Trebuchet MS","Lucida Grande","Lucida Sans Unicode","Lucida Sans",Tahoma,sans-serif'},{text:"Verdana",fontName:"Verdana,Geneva,sans-serif"}],this.editor=ce.editor}set data(T){this._data=T||this._data}get data(){return this._data}ngOnInit(){this.itemDisabled=T=>!(this.overflows||!this.fontFamilyDropDownList||this.fontFamilyDropDownList.dropDownList.isOpen)||null===T.dataItem.fontName,setTimeout(()=>{this.defaultItem={text:this.title,fontName:null},this.toolsService.needsCheck.next()}),this.subs=this.editor.stateChange.subscribe(({style:T})=>{this.value=Q_(T.selected,"font-family")||null,this.disabled=T.disabled})}onValueChange(T){Nu(T)&&(this.editor.exec("fontFamily",T),this.editor.view.focus(),this.valueChange.emit(this.data.find(W=>W.fontName===T)))}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}get outerWidth(){if(this.element)return Fc(this.element.nativeElement)}get title(){return this.localization.get("fontFamily")}openDialog(){const T={appendTo:this.editor.dialogContainer,content:H_,width:400};this.editor.toolbar.toggle(!1);const W=this.dialogService.open(T).content.instance;this.renderer.addClass(W.dialog.dialog.instance.wrapper.nativeElement.querySelector(".k-window"),"k-editor-window"),W.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})}canFocus(){return!this.disabled}focus(){this.tabindex=0,this.overflows?this.fontFamilyButton.nativeElement.focus():this.fontFamilyDropDownList.focus()}handleKey(){return this.tabindex=-1,!1}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(f.xA),e.Y36(Ec),e.Y36(td),e.Y36(ad),e.Y36(e.Qsj))},B.\u0275cmp=e.Xpm({type:B,selectors:[["kendo-toolbar-dropdownlist","kendoEditorFontFamily",""]],viewQuery:function(T,W){if(1&T&&(e.Gf(Cv,7),e.Gf(I_,7),e.Gf(Op,5),e.Gf(Op,5,hv),e.Gf(H1,5,e.SBq)),2&T){let ce;e.iGM(ce=e.CRH())&&(W.toolbarTemplate=ce.first),e.iGM(ce=e.CRH())&&(W.popupTemplate=ce.first),e.iGM(ce=e.CRH())&&(W.element=ce.first),e.iGM(ce=e.CRH())&&(W.fontFamilyDropDownList=ce.first),e.iGM(ce=e.CRH())&&(W.fontFamilyButton=ce.first)}},inputs:{data:"data"},outputs:{valueChange:"valueChange"},features:[e._Bn([{provide:x.JU,useExisting:(0,e.Gpc)(()=>B)}]),e.qOj],attrs:e1,decls:4,vars:0,consts:[["toolbarTemplate",""],["popupTemplate",""],[3,"defaultItem","data","value","itemDisabled","title","disabled","tabindex","valueChange"],["element",""],["tabindex","-1","role","menuitem",1,"k-item","k-menu-item",3,"tabindex","click"],["fontFamilyButton",""],[1,"k-link","k-menu-link"],["name","font-family",3,"svgIcon"],["class","k-menu-link-text",4,"ngIf"],[1,"k-menu-link-text"]],template:function(T,W){1&T&&(e.YNc(0,t1,2,7,"ng-template",null,0,e.W1O),e.YNc(2,py,5,5,"ng-template",null,1,e.W1O))},dependencies:[hv,Eg.ZS,Zp.O5],encapsulation:2}),B})(),b1=(()=>{class B extends x.JU{constructor(T,W,ce,we,qe){super(),this.localization=T,this.dialogService=W,this.ngZone=ce,this.renderer=qe,this.tabindex=-1,this.disabled=!1,this.views=["palette"],this.editor=we.editor}set view(T){this.views=[T]}get view(){return this.views&&this.views.length>0?this.views[0]:null}get title(){return this.localization.get(this.editorCommand)}ngOnInit(){this.subs=this.editor.stateChange.subscribe(({style:T})=>{this.disabled=T.disabled}),this.activeView=this.view}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}handleValueChange(T){this.editor.exec(this.editorCommand,T),"palette"===this.activeView&&this.editor.view.focus()}handleActiveColorClick(T){T.preventOpen(),this.handleValueChange(T.color)}onOpen(T){this.valueCache=T.value,T.reset()}onClose(T){T.value||(T.value=this.valueCache),this.editor.shouldEmitFocus=!0,this.ngZone.onStable.pipe((0,s.q)(1)).subscribe(()=>this.editor.view.focus()),this.activeView=this.view}handleClearButtonClick(){this.editor.exec(this.editorCommand,void 0),"palette"===this.activeView&&this.editor.view.focus()}onActiveViewChange(T){this.activeView=T}get outerWidth(){if(this.element)return Fc(this.element.nativeElement)}openDialog(){const T={appendTo:this.editor.dialogContainer,content:_1,width:400};this.editor.toolbar.toggle(!1);const W=this.dialogService.open(T).content.instance;this.renderer.addClass(W.dialog.dialog.instance.wrapper.nativeElement.querySelector(".k-window"),"k-editor-window"),W.setData({editor:this.editor,value:this.value,title:this.title,editorCommand:this.editorCommand,paletteSettings:this.paletteSettings,icon:this.icon,svgIcon:this.svgIcon,views:this.views})}canFocus(){return!this.disabled}focus(){this.tabindex=0,this.overflows?this.colorPickerButton?.nativeElement.focus():!this.colorPicker.isOpen&&this.colorPicker?.focus()}handleKey(){return this.tabindex=-1,!1}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(Ec),e.Y36(f.xA),e.Y36(e.R0b),e.Y36(td),e.Y36(e.Qsj))},B.\u0275cmp=e.Xpm({type:B,selectors:[["kendo-toolbar-colorpicker"]],viewQuery:function(T,W){if(1&T&&(e.Gf(Cv,7),e.Gf(I_,7),e.Gf(G_,5,e.SBq),e.Gf(G_,5,du.h5),e.Gf(m0,5,e.SBq)),2&T){let ce;e.iGM(ce=e.CRH())&&(W.toolbarTemplate=ce.first),e.iGM(ce=e.CRH())&&(W.popupTemplate=ce.first),e.iGM(ce=e.CRH())&&(W.element=ce.first),e.iGM(ce=e.CRH())&&(W.colorPicker=ce.first),e.iGM(ce=e.CRH())&&(W.colorPickerButton=ce.first)}},inputs:{value:"value",icon:"icon",svgIcon:"svgIcon",paletteSettings:"paletteSettings",editorCommand:"editorCommand",disabled:"disabled",views:"views",view:"view"},features:[e._Bn([{provide:x.JU,useExisting:(0,e.Gpc)(()=>B)}]),e.qOj],decls:4,vars:0,consts:[["toolbarTemplate",""],["popupTemplate",""],[3,"icon","svgIcon","views","format","value","paletteSettings","disabled","tabindex","valueChange","clearButtonClick","activeColorClick","open","close","activeViewChange"],["colorpicker",""],["tabindex","-1","role","menuitem",1,"k-item","k-menu-item",3,"tabindex","click"],["colorPickerButton",""],[1,"k-link","k-menu-link"],[3,"name","svgIcon",4,"ngIf"],["class","k-menu-link-text",4,"ngIf"],[3,"name","svgIcon"],[1,"k-menu-link-text"]],template:function(T,W){1&T&&(e.YNc(0,o1,2,9,"ng-template",null,0,e.W1O),e.YNc(2,A_,5,5,"ng-template",null,1,e.W1O))},dependencies:[du.h5,Eg.ZS,Zp.O5],encapsulation:2}),B})(),Cy=(()=>{class B extends uu{constructor(T,W,ce,we){super("redo",T,W,ce,we)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorRedoButton",""]],features:[e.qOj]}),B})(),xy=(()=>{class B extends uu{constructor(T,W,ce,we){super("undo",T,W,ce,we)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorUndoButton",""]],features:[e.qOj]}),B})(),J1=(()=>{class B extends D0{constructor(T,W,ce,we){super("viewSource",T,W,ce,we)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorViewSourceButton",""]],features:[e.qOj]}),B})(),ab=(()=>{class B extends uu{constructor(T,W,ce,we){super("strikethrough",T,W,ce,we)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorStrikethroughButton",""]],features:[e.qOj]}),B})(),O_=(()=>{class B extends uu{constructor(T,W,ce,we){super("subscript",T,W,ce,we)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorSubscriptButton",""]],features:[e.qOj]}),B})(),C1=(()=>{class B extends uu{constructor(T,W,ce,we){super("superscript",T,W,ce,we)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorSuperscriptButton",""]],features:[e.qOj]}),B})(),Qv=(()=>{class B{constructor(T){this.colorPicker=T,this.colorPicker.icon=uv.foreColor,this.colorPicker.svgIcon=ev.foreColor,this.colorPicker.editorCommand="foreColor"}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(b1))},B.\u0275dir=e.lG2({type:B,selectors:[["","kendoEditorForeColor",""]]}),B})(),O0=(()=>{class B{constructor(T){this.colorPicker=T,this.colorPicker.icon=uv.backColor,this.colorPicker.svgIcon=ev.backColor,this.colorPicker.editorCommand="backColor"}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(b1))},B.\u0275dir=e.lG2({type:B,selectors:[["","kendoEditorBackColor",""]]}),B})(),lb=(()=>{class B extends uu{constructor(T,W,ce,we){super("cleanFormatting",T,W,ce,we)}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorCleanFormattingButton",""]],features:[e.qOj]}),B})(),Ey=(()=>{class B extends uu{constructor(T,W,ce,we){super("selectAll",T,W,ce,we)}clickHandler(){this.editor.shouldEmitFocus=!0,super.clickHandler()}}return B.\u0275fac=function(T){return new(T||B)(e.Y36(x.eJ),e.Y36(Ec),e.Y36(td),e.Y36(ad))},B.\u0275dir=e.lG2({type:B,selectors:[["kendo-toolbar-button","kendoEditorSelectAllButton",""]],features:[e.qOj]}),B})(),Q1=(()=>{class B{}return B.\u0275fac=function(T){return new(T||B)},B.\u0275mod=e.oAB({type:B}),B.\u0275inj=e.cJS({imports:[[Zp.ez,n.u5,n.UX,Wm.hJ,du.e4,f.Su,wg.q2,du.Ln,du.qm,Eg.pc,x.JH,du.oc,du.UP,du.kx,rg.r3,k.qG],x.JH,Wm.hJ,n.u5,n.UX]}),B})()},82789:(he,y,i)=>{"use strict";i.d(y,{Fz:()=>X,bg:()=>j,u7:()=>q,RZ:()=>te,NE:()=>de,QB:()=>Q,hz:()=>V,Tn:()=>U});var e=i(65879),o=(i(9890),i(31119));let a={compile:function(se){return se}};const u=class l{static register(ne){a=ne}static compile(ne){return a.compile(ne)}},d=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,s={},A="undefined";function _(se){if(s[se])return s[se];const ne=[];return se.replace(d,function(_e,ge,Ce,Te){ne.push(typeof ge!==A?ge:Ce||Te)}),s[se]=function(_e){let ge=_e;for(let Ce=0;Ce<ne.length&&ge;Ce++)ge=ge[ne[Ce]];return ge},s[se]}s[A]=function(se){return se};var C=i(74881);function R(se){return`${se.title}: ${se.value}`}function x(se,ne){const _e=[];for(let ge=0;ge<se;ge++)_e.push(ne(ge));return _e}function f(se){return se.id}var g=i(13710),M=i(18754);i(58951),i(12624);const b=(se,ne,_e)=>{let ge=se.createEmbeddedView(ne);const Ce=Te=>(_e(ne,Te),ge.detectChanges(),ge.rootNodes.reduce((De,fe)=>De+fe.textContent,"").trim());return Ce.destroy=()=>{ge.destroy(),ge=null},Ce},I=(se,ne)=>{se.$implicit=se.group=ne,se.field=ne.field,se.value=ne.value,se.aggregates=ne.aggregates},L=(se,ne)=>{se.group=ne.group,se.$implicit=se.aggregates=ne},D=(se,ne)=>{se.aggregates=ne.aggregates},P=se=>{se&&se.forEach(ne=>{ne.destroy()})};class O{constructor(ne,_e){this.title=ne.title,this.field=ne.field,this.hidden=ne.hidden,this.locked=ne.locked,this.width=ne.width,this.headerCellOptions=ne.headerCellOptions,this.cellOptions=ne.cellOptions,this.groupHeaderCellOptions=ne.groupHeaderCellOptions,this.groupFooterCellOptions=ne.groupFooterCellOptions,this.footerCellOptions=ne.footerCellOptions,ne.footerTemplate&&(this.footerTemplate=b(ne.footerTemplate.templateRef,{$implicit:ne,column:ne,columnIndex:_e},D)),ne.groupFooterTemplate&&(this.groupFooterTemplate=b(ne.groupFooterTemplate.templateRef,{column:ne,field:ne.field},L)),ne.groupHeaderTemplate&&(this.groupHeaderTemplate=b(ne.groupHeaderTemplate.templateRef,{},I)),ne.groupHeaderColumnTemplate&&(this.groupHeaderColumnTemplate=b(ne.groupHeaderColumnTemplate.templateRef,{},I))}destroy(){this.footerTemplate&&this.footerTemplate.destroy(),this.groupFooterTemplate&&this.groupFooterTemplate.destroy(),this.groupHeaderTemplate&&this.groupHeaderTemplate.destroy(),this.groupHeaderColumnTemplate&&this.groupHeaderColumnTemplate.destroy(),P(this.columns)}}o.Z.register({toString:M.BB});const U=se=>{const ne=(se=>{const ne=[];let _e=0;const ge=(Ce,Te,De)=>{Ce.forEach(fe=>{if(fe.level===De){const xe=new O(fe,_e);if(Te.push(xe),fe.children&&fe.children.some(Oe=>Oe!==fe)){const Oe=xe.columns=[];ge(fe.children,Oe,De+1)}else _e++}})};return ge(se,ne,0),ne})(se.columns),ge=new class k{constructor(ne){ne.columns=this._trimColumns(ne.columns||[]),this.allColumns=(0,C.Z)(this._leafColumns(ne.columns||[]),this._prepareColumn),this.columns=this._visibleColumns(this.allColumns),this.options=ne,this.data=ne.data||[],this.aggregates=ne.aggregates||{},this.groups=[].concat(ne.groups||[]),this.hasGroups=this.groups.length>0,this.hierarchy=ne.hierarchy,this.hasGroupHeaderColumn=this.columns.some(_e=>_e.groupHeaderColumnTemplate),this.collapsible=this.options.collapsible}workbook(){return{sheets:[{columns:this._columns(),rows:this.hierarchy?this._hierarchyRows():this._rows(),freezePane:this._freezePane(),filter:this._filter()}]}}_trimColumns(ne){return ne.filter(_e=>{let ge=!!_e.field;return!ge&&_e.columns&&(ge=this._trimColumns(_e.columns).length>0),ge})}_leafColumns(ne){let _e=[];for(let ge=0;ge<ne.length;ge++)ne[ge].columns?_e=_e.concat(this._leafColumns(ne[ge].columns)):_e.push(ne[ge]);return _e}_prepareColumn(ne){if(!ne.field)return null;let _e=function(Ce){return _(ne.field)(Ce)},ge=null;return ne.values&&(ge={},ne.values.forEach(function(Ce){ge[Ce.value]=Ce.text}),_e=function(Ce){return ge[_(ne.field)(Ce)]}),Object.assign({},ne,{value:_e,values:ge,groupHeaderTemplate:ne.groupHeaderTemplate?u.compile(ne.groupHeaderTemplate):R,groupHeaderColumnTemplate:ne.groupHeaderColumnTemplate?u.compile(ne.groupHeaderColumnTemplate):null,groupFooterTemplate:ne.groupFooterTemplate?u.compile(ne.groupFooterTemplate):null,footerTemplate:ne.footerTemplate?u.compile(ne.footerTemplate):null})}_filter(){if(!this.options.filterable)return null;const ne=this._depth();return{from:ne,to:ne+this.columns.length-1}}_createPaddingCells(ne){return x(ne,()=>Object.assign({background:"#dfdfdf",color:"#333"},this.options.paddingCellOptions))}_dataRow(ne,_e,ge){let Ce=this._createPaddingCells(_e);if(this.hasGroups&&ge&&ne.items){Ce=Ce.concat(this._groupHeaderCells(ne,_e,ge));const De=this._dataRows(ne.items,_e+1);return De.unshift({type:"group-header",cells:Ce,level:this.collapsible?_e:null}),De.concat(this._footer(ne,_e))}const Te=[];for(let De=0;De<this.columns.length;De++)Te[De]=this._cell(ne,this.columns[De]);return this.hierarchy&&(Te[0].colSpan=ge-_e+1),[{type:"data",cells:Ce.concat(Te),level:this.collapsible?_e:null}]}_groupHeaderCells(ne,_e,ge){const Ce=[],Te=this.allColumns.filter(function(Le){return Le.field===ne.field})[0]||{},De=Te&&Te.title?Te.title:ne.field,fe=Te?Te.groupHeaderTemplate||Te.groupHeaderColumnTemplate:null,xe=Object.assign({title:De,field:ne.field,value:Te&&Te.values?Te.values[ne.value]:ne.value,aggregates:ne.aggregates,items:ne.items},ne.aggregates[ne.field]),Oe=fe?fe(xe):`${De}: ${ne.value}`;return Ce.push(Object.assign({value:Oe,background:"#dfdfdf",color:"#333",colSpan:(this.hasGroupHeaderColumn?1:this.columns.length)+ge-_e},Te.groupHeaderCellOptions)),this.hasGroupHeaderColumn&&this.columns.forEach(function(Le,Gt){Gt>0&&Ce.push(Object.assign({background:"#dfdfdf",color:"#333",value:Le.groupHeaderColumnTemplate?Le.groupHeaderColumnTemplate(Object.assign({group:xe},xe,ne.aggregates[Le.field])):void 0},Le.groupHeaderCellOptions))}),Ce}_dataRows(ne,_e){const ge=this._depth(),Ce=[];for(let Te=0;Te<ne.length;Te++)Ce.push.apply(Ce,this._dataRow(ne[Te],_e,ge));return Ce}_hierarchyRows(){const ne=this._depth(),_e=this.data,ge=this.hierarchy.itemLevel,Ce=this.hierarchy.itemId||f,Te=this._hasFooterTemplate(),De=[],fe=[];let Oe,xe=0;Te||(this.collapsible=!1);for(let Le=0;Le<_e.length;Le++){const Gt=_e[Le],Ut=ge(Gt,Le);Te&&(Ut>xe?fe.push({id:Oe,level:xe}):Ut<xe&&De.push.apply(De,this._hierarchyFooterRows(fe,Ut,ne)),xe=Ut,Oe=Ce(Gt,Le)),De.push.apply(De,this._dataRow(Gt,Ut+1,ne))}return Te&&(De.push.apply(De,this._hierarchyFooterRows(fe,0,ne)),De.push(this._hierarchyFooter(_e.length?this.aggregates[_e[0].parentId]:{},0,ne))),this._prependHeaderRows(De),De}_hierarchyFooterRows(ne,_e,ge){const Ce=[];for(;ne.length&&ne[ne.length-1].level>=_e;){const Te=ne.pop();Ce.push(this._hierarchyFooter(this.aggregates[Te.id],Te.level+1,ge))}return Ce}_hasFooterTemplate(){const ne=this.columns;for(let _e=0;_e<ne.length;_e++)if(ne[_e].footerTemplate)return!0}_hierarchyFooter(ne,_e,ge){const Ce=this.columns.map(function(Te,De){const fe=De?1:ge-_e+1;return Object.assign(Te.footerTemplate?{background:"#dfdfdf",color:"#333",colSpan:fe,value:Te.footerTemplate(Object.assign({aggregates:ne},(ne||{})[Te.field]))}:{background:"#dfdfdf",color:"#333",colSpan:fe},Te.footerCellOptions)});return{type:"footer",cells:this._createPaddingCells(_e).concat(Ce),level:this.collapsible?_e:null}}_footer(ne,_e){const ge=[],Ce=this.columns.some(xe=>xe.groupFooterTemplate);let Te,De;Ce&&(De={group:{items:ne.items,field:ne.field,value:ne.value}},Te={},Object.keys(ne.aggregates).forEach(xe=>{Te[xe]=Object.assign({},ne.aggregates[xe],De)}));const fe=this.columns.map(xe=>{if(xe.groupFooterTemplate){let Oe=Object.assign({},Te,ne.aggregates[xe.field],De);return Object.assign({background:"#dfdfdf",color:"#333",value:xe.groupFooterTemplate(Oe)},xe.groupFooterCellOptions)}return Object.assign({background:"#dfdfdf",color:"#333"},xe.groupFooterCellOptions)});return Ce&&ge.push({type:"group-footer",cells:this._createPaddingCells(this.groups.length).concat(fe),level:this.collapsible?_e:null}),ge}_isColumnVisible(ne){return this._visibleColumns([ne]).length>0&&(ne.field||ne.columns)}_visibleColumns(ne){return ne.filter(_e=>{let ge=_e.exportable;"object"==typeof ge&&(ge=_e.exportable.excel);let De=!_e.hidden&&!1!==ge||_e.hidden&&!0===ge;return De&&_e.columns&&(De=this._visibleColumns(_e.columns).length>0),De})}_headerRow(ne,_e){const ge=ne.cells.map(function(Ce){return Object.assign(Ce,{colSpan:Ce.colSpan>1?Ce.colSpan:1,rowSpan:ne.rowSpan>1&&!Ce.colSpan?ne.rowSpan:1})});return this.hierarchy&&ge[0].firstCell&&(ge[0].colSpan+=this._depth()),{type:"header",cells:x(_e.length,()=>Object.assign({background:"#7a7a7a",color:"#fff"},this.options.headerPaddingCellOptions)).concat(ge)}}_prependHeaderRows(ne){const _e=this.groups,ge=[{rowSpan:1,cells:[],index:0}];this._prepareHeaderRows(ge,this.options.columns);for(let Ce=ge.length-1;Ce>=0;Ce--)ne.unshift(this._headerRow(ge[Ce],_e))}_prepareHeaderRows(ne,_e,ge,Ce){const Te=Ce||ne[ne.length-1];let De=ne[Te.index+1],fe=0;for(let xe=0;xe<_e.length;xe++){const Oe=_e[xe];if(this._isColumnVisible(Oe)){const Le=Object.assign({background:"#7a7a7a",color:"#fff",value:Oe.title||Oe.field,colSpan:0,firstCell:0===xe&&(!ge||ge.firstCell)},Oe.headerCellOptions);Te.cells.push(Le),Oe.columns&&Oe.columns.length&&(De||(De={rowSpan:0,cells:[],index:ne.length},ne.push(De)),Le.colSpan=this._trimColumns(this._visibleColumns(Oe.columns)).length,this._prepareHeaderRows(ne,Oe.columns,Le,De),fe+=Le.colSpan-1,Te.rowSpan=ne.length-Te.index)}}ge&&(ge.colSpan+=fe)}_rows(){const ne=this._dataRows(this.data,0);if(this.columns.length){this._prependHeaderRows(ne);let _e=!1;const ge=this.columns.map(Ce=>Ce.footerTemplate?(_e=!0,Object.assign({background:"#dfdfdf",color:"#333",value:Ce.footerTemplate(Object.assign({},this.aggregates,this.aggregates[Ce.field]))},Ce.footerCellOptions)):Object.assign({background:"#dfdfdf",color:"#333"},Ce.footerCellOptions));_e&&ne.push({type:"footer",cells:this._createPaddingCells(this.groups.length).concat(ge)})}return ne}_headerDepth(ne){let ge=0;for(let Ce=0;Ce<ne.length;Ce++)if(ne[Ce].columns){const Te=this._headerDepth(ne[Ce].columns);Te>ge&&(ge=Te)}return 1+ge}_freezePane(){const ne=this._visibleColumns(this.options.columns||[]),_e=this._visibleColumns(this._trimColumns(this._leafColumns(ne.filter(function(ge){return ge.locked})))).length;return{rowSplit:this._headerDepth(ne),colSplit:_e?_e+this.groups.length:0}}_cell(ne,_e){return Object.assign({value:_e.value(ne)},_e.cellOptions)}_depth(){let ne=0;return ne=this.hierarchy?this.hierarchy.depth:this.groups.length,ne}_columns(){return x(this._depth(),()=>({width:20})).concat(this.columns.map(function(ge){return{width:parseInt(ge.width,10),autoWidth:!ge.width}}))}}({columns:ne,data:se.data,filterable:se.filterable,groups:se.group,paddingCellOptions:se.paddingCellOptions,headerPaddingCellOptions:se.headerPaddingCellOptions,collapsible:se.collapsible,hierarchy:se.hierarchy,aggregates:se.aggregates}).workbook();return ge.creator=se.creator,ge.date=se.date,ge.rtl=se.rtl,P(ne),ge},V=se=>new g.I(se).toDataURL();let X=(()=>{class se{constructor(_e){this.parent=_e}get level(){return this.parent?this.parent.level+1:0}}return se.\u0275fac=function(_e){return new(_e||se)(e.Y36(se))},se.\u0275cmp=e.Xpm({type:se,selectors:[["ng-component"]],contentQueries:function(_e,ge,Ce){if(1&_e&&e.Suo(Ce,se,4),2&_e){let Te;e.iGM(Te=e.CRH())&&(ge.children=Te)}},inputs:{title:"title",width:"width",locked:"locked",hidden:"hidden",headerCellOptions:"headerCellOptions"},decls:0,vars:0,template:function(_e,ge){},encapsulation:2}),se})(),Q=(()=>{class se{constructor(_e){this.templateRef=_e}}return se.\u0275fac=function(_e){return new(_e||se)(e.Y36(e.Rgc,8))},se.\u0275dir=e.lG2({type:se,selectors:[["","kendoExcelExportGroupHeaderTemplate",""]]}),se})(),re=(()=>{class se{constructor(_e){this.templateRef=_e}}return se.\u0275fac=function(_e){return new(_e||se)(e.Y36(e.Rgc,8))},se.\u0275dir=e.lG2({type:se,selectors:[["","kendoExcelExportGroupHeaderColumnTemplate",""]]}),se})(),de=(()=>{class se{constructor(_e){this.templateRef=_e}}return se.\u0275fac=function(_e){return new(_e||se)(e.Y36(e.Rgc,8))},se.\u0275dir=e.lG2({type:se,selectors:[["","kendoExcelExportGroupFooterTemplate",""]]}),se})(),te=(()=>{class se{constructor(_e){this.templateRef=_e}}return se.\u0275fac=function(_e){return new(_e||se)(e.Y36(e.Rgc,8))},se.\u0275dir=e.lG2({type:se,selectors:[["","kendoExcelExportFooterTemplate",""]]}),se})(),j=(()=>{class se extends X{constructor(_e){super(_e)}}return se.\u0275fac=function(_e){return new(_e||se)(e.Y36(X,13))},se.\u0275cmp=e.Xpm({type:se,selectors:[["kendo-excelexport-column"]],contentQueries:function(_e,ge,Ce){if(1&_e&&(e.Suo(Ce,Q,5),e.Suo(Ce,re,5),e.Suo(Ce,de,5),e.Suo(Ce,te,5)),2&_e){let Te;e.iGM(Te=e.CRH())&&(ge.groupHeaderTemplate=Te.first),e.iGM(Te=e.CRH())&&(ge.groupHeaderColumnTemplate=Te.first),e.iGM(Te=e.CRH())&&(ge.groupFooterTemplate=Te.first),e.iGM(Te=e.CRH())&&(ge.footerTemplate=Te.first)}},inputs:{field:"field",cellOptions:"cellOptions",groupHeaderCellOptions:"groupHeaderCellOptions",groupFooterCellOptions:"groupFooterCellOptions",footerCellOptions:"footerCellOptions"},features:[e._Bn([{provide:X,useExisting:(0,e.Gpc)(()=>se)}]),e.qOj],decls:0,vars:0,template:function(_e,ge){},encapsulation:2}),se})(),q=(()=>{class se{}return se.\u0275fac=function(_e){return new(_e||se)},se.\u0275mod=e.oAB({type:se}),se.\u0275inj=e.cJS({}),se})()},8841:(he,y,i)=>{"use strict";i.d(y,{mCm:()=>Kp,Bl$:()=>at,Ztq:()=>qh,bg4:()=>Df,sYL:()=>og,PZI:()=>G,vvB:()=>dh,dVe:()=>jg,SKf:()=>Mh,FF7:()=>vv,wW:()=>$h,mYD:()=>j1,xGR:()=>J_,TIf:()=>Fd,RZ:()=>Ed,MwP:()=>Ma,zE6:()=>p0,UgW:()=>q0,rJl:()=>X0,NEF:()=>Od,QBG:()=>Uc,_cx:()=>gh,gpF:()=>L1,obP:()=>H0,sXO:()=>kc,r$8:()=>V0,Ymc:()=>Ee,XW7:()=>sp,hwo:()=>xf,G_w:()=>rm,E7N:()=>Tc,hJC:()=>Nv,Pqr:()=>gu,kyx:()=>Bp});var e=i(65879),n=i(3201),o=i(63019),a=i(22096),l=i(78645),u=i(72664),d=i(47394),s=i(91687),A=i(92438),_=i(19026),C=i(65619),R=i(65592),x=i(94664),f=i(48180),k=i(37398),w=i(32181),g=i(59773),M=i(74867),p=i(5177),E=i(29028),b=i(93997),I=i(99397),L=i(18753),D=i(83620),F=i(79360),P=i(8251),O=i(49039),V=i(58951),K=i(53342),X=i(96814),me=i(56223),J=i(12624),Q=i(9237),re=i(6593),de=i(60886),te=i(73942);const q=ie=>ie&&ie.ownerDocument||window.document,ne=ie=>{const Qe_browser=(()=>{const ie=window&&window.navigator.userAgent;if(!ie)return!1;let Qe=!1,h=[],oe={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var kt in oe)if(oe.hasOwnProperty(kt)&&(h=ie.match(oe[kt]),h)){Qe={},Qe[kt]=!0,Qe[h[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,Qe.version=parseInt(document.DOCUMENT_NODE||h[2],10);break}return Qe})(),h=q(ie);return Qe_browser.edge||Qe_browser.safari?h.body:h.documentElement},_e=ie=>{if(ie&&ie.className&&"string"==typeof ie.className&&ie.className.indexOf("k-auto-scrollable")>-1)return!0;let Qe=window.getComputedStyle(ie,"overflow").overflow;return Qe.indexOf("auto")>-1||Qe.indexOf("scroll")>-1},ge=ie=>{const Qe=ne(ie);if(!ie||ie===document.body||ie===document.documentElement)return Qe;let h=ie;for(;h&&h!==document.body&&h.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&h.nodeType!==Node.DOCUMENT_NODE&&!_e(h);)h=h.parentNode;return!h||h!==document.body&&h.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?h:Qe};var fe=function(ie){return ie.POINTER_DOWN="pointerdown",ie.POINTER_MOVE="pointermove",ie.POINTER_UP="pointerup",ie.POINTER_CANCEL="pointercancel",ie.MOUSE_DOWN="mousedown",ie.MOUSE_MOVE="mousemove",ie.MOUSE_UP="mouseup",ie.CONTEXT_MENU="contextmenu",ie.TOUCH_START="touchstart",ie.TOUCH_MOVE="touchmove",ie.TOUCH_END="touchend",ie.TOUCH_CANCEL="touchcancel",ie.SCROLL="scroll",ie.START="KENDO_DRAG_AND_DROP_START",ie.MOVE="KENDO_DRAG_AND_DROP_MOVE",ie.END="KENDO_DRAG_AND_DROP_END",ie.CANCEL="KENDO_DRAG_AND_DROP_CANCEL",ie}(fe||{});const Gt=()=>{},Ut=(ie,Qe,h={})=>{const{onIsPressedChange:oe=Gt,onIsScrollingChange:kt=Gt,onVelocityChange:ti=Gt,onOffsetChange:Zo=Gt,onPageOffsetChange:hr=Gt,onClientOffsetChange:Cs=Gt,onScrollOffsetChange:aa=Gt,onInitialScrollOffsetChange:$a=Gt}=h,ja=Qe.payload,Ll=ja.element,Gc=ja.hint,Fc=ie.autoScrollDirection,_u=ie.scrollableParent,Vl=((ie,Qe)=>(ie=>/^touch/.test(ie.type))(ie)?{pageX:ie.changedTouches[0].pageX,pageY:ie.changedTouches[0].pageY,clientX:ie.changedTouches[0].clientX,clientY:ie.changedTouches[0].clientY,scrollX:Qe.scrollOffset.x,scrollY:Qe.scrollOffset.y,offsetX:Qe.offset.x,offsetY:Qe.offset.y,type:ie.type,originalEvent:ie,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:(ie=>/^(scroll)/.test(ie.type))(ie)?{pageX:Qe.pageOffset.x,pageY:Qe.pageOffset.y,clientX:Qe.clientOffset.x,clientY:Qe.clientOffset.y,scrollX:Qe.scrollOffset.x,scrollY:Qe.scrollOffset.y,offsetX:Qe.offset.x,offsetY:Qe.offset.y,type:ie.type,originalEvent:ie,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:ie.pageX,pageY:ie.pageY,clientX:ie.clientX,clientY:ie.clientY,offsetX:ie.offsetX,offsetY:ie.offsetY,scrollX:Qe.scrollOffset.x,scrollY:Qe.scrollOffset.y,type:ie.type,ctrlKey:ie.ctrlKey,shiftKey:ie.shiftKey,altKey:ie.altKey,metaKey:ie.metaKey,originalEvent:ie})(Qe.event,ie);switch(Vl.type){case fe.POINTER_DOWN:if(Vl.type===fe.POINTER_DOWN&&(!Vl.originalEvent.isPrimary||0!==Vl.originalEvent.button))break;case fe.MOUSE_DOWN:if(Vl.type===fe.MOUSE_DOWN&&Vl.originalEvent.which&&Vl.originalEvent.which>1||ie.ignoreMouse)break;case fe.TOUCH_START:if(Vl.type===fe.TOUCH_START&&1!==Vl.originalEvent.touches.length)break;case fe.START:{const Nu=_u||ge(Qe.payload.element);$a(Nu instanceof Window?{x:Nu.scrollX,y:Nu.scrollY}:{x:Nu.scrollLeft,y:Nu.scrollTop}),Cs({x:Vl.clientX,y:Vl.clientY}),hr({x:Vl.pageX,y:Vl.pageY}),Zo({x:Vl.offsetX,y:Vl.offsetY}),oe(!0),ja.onPress&&ja.onPress(Vl);break}case fe.SCROLL:if(Vl.type===fe.SCROLL&&!ie.pressed)break;const Ld=_u||ge(Ll),$f=Ld instanceof Window?{x:Ld.scrollX,y:Ld.scrollY}:{x:Ld.scrollLeft,y:Ld.scrollTop};Vl.scrollX=$f.x-ie.initialScrollOffset.x,Vl.scrollY=$f.y-ie.initialScrollOffset.y,aa({x:Vl.scrollX,y:Vl.scrollY});case fe.POINTER_MOVE:if(Vl.type===fe.POINTER_MOVE&&!Vl.originalEvent.isPrimary)break;case fe.MOUSE_MOVE:case fe.TOUCH_MOVE:if(Vl.type===fe.TOUCH_MOVE&&1!==Vl.originalEvent.touches.length)break;case fe.MOVE:if(ie.pressed){if(ie.autoScroll&&"scroll"!==Vl.originalEvent.type&&Ll){const ju=q(Ll),Zm=_u||ge(ju.elementFromPoint(Vl.clientX,Vl.clientY)),Tg=((ie,Qe,h)=>{let oe={x:0,y:0};return ie-h.left<50?oe.x=-(50-(ie-h.left)):h.right-ie<50&&(oe.x=50-(h.right-ie)),Qe-h.top<50?oe.y=-(50-(Qe-h.top)):h.bottom-Qe<50&&(oe.y=50-(h.bottom-Qe)),oe})(Vl.clientX,Vl.clientY,((ie,Qe)=>{let h=ne(ie);if(ie===h)return{top:h.scrollTop,left:h.scrollLeft,bottom:h.scrollTop+Qe.innerHeight,right:h.scrollLeft+Qe.innerWidth};{const oe=ie.getBoundingClientRect();return{bottom:oe.top+oe.height,right:oe.left+oe.width,left:oe.left,top:oe.top}}})(Zm,(ie=>{const Qe=q(ie);return Qe&&Qe.defaultView||window})(Ll)));ti({x:Fc&&!1===Fc.horizontal?0:Tg.x,y:Fc&&!1===Fc.vertical?0:Tg.y}),kt(0!==Tg.y||0!==Tg.x)}!ie.drag&&ja.onDragStart&&ja.onDragStart(Vl),ja.onDrag&&ja.onDrag(Vl);const Nu=((ie,Qe)=>{let h=0,oe=null;return Qe.forEach(kt=>{if(kt&&ie){const ti=((ie,Qe)=>{const h=ie.getBoundingClientRect(),oe=Qe.getBoundingClientRect(),kt=Math.max(oe.top,h.top),ti=Math.max(oe.left,h.left),Zo=Math.min(oe.left+oe.width,h.left+h.width),hr=Math.min(oe.top+oe.height,h.top+h.height);if(ti<Zo&&kt<hr){const Ll=(Zo-ti)*(hr-kt);return Number((Ll/(oe.width*oe.height+h.width*h.height-Ll)).toFixed(4))}return 0})(ie,kt);ti>h&&(h=ti,oe=kt)}}),oe})(Gc||Ll,ie.drops.map(ju=>ju&&ju.element).filter(ju=>ju!==(Gc||Ll))),cf=ie.drops.find(ju=>ju.element===Nu);cf&&Nu&&((ie,Qe,h)=>{const oe=h.getBoundingClientRect();return oe.top<=Qe&&oe.left<=ie&&Qe<=oe.bottom&&ie<=oe.right})(Vl.clientX,Vl.clientY,_u||ge(Nu))&&Nu!==Ll?(ie.drop&&ie.drop.element)!==Nu?(ie.drop&&ie.drop.onDragLeave&&ie.drop.onDragLeave(Vl),cf.onDragEnter&&cf.onDragEnter(Vl)):cf.onDragOver&&cf.onDragOver(Vl):ie.drop&&ie.drop.onDragLeave&&ie.drop.onDragLeave(Vl)}Cs({x:Vl.clientX,y:Vl.clientY}),hr({x:Vl.pageX,y:Vl.pageY});break;case fe.POINTER_UP:if(Vl.type===fe.POINTER_UP&&!Vl.originalEvent.isPrimary)break;case fe.MOUSE_UP:case fe.TOUCH_END:if(Vl.type===fe.TOUCH_END&&1!==Vl.originalEvent.touches.length)break;case fe.END:oe(!1),kt(!1),aa({x:0,y:0}),ja.onRelease&&ja.onRelease(Vl),ie.drop&&ie.drop.onDrop&&ie.drop.onDrop(Vl),ie.drag&&ja.onDragEnd&&ja.onDragEnd(Vl);break;case fe.POINTER_CANCEL:case fe.CONTEXT_MENU:case fe.TOUCH_CANCEL:case fe.CANCEL:oe(!1),kt(!1),aa({x:0,y:0}),ja.onDragEnd&&ja.onDragEnd(Vl),ie.drop&&ie.drop.onDragLeave&&ie.drop.onDragLeave(Vl)}};function $n(ie,Qe){1&ie&&e.GkF(0)}const xn=function(ie,Qe,h){return{$implicit:ie,index:Qe,data:h}},mt={name:"@progress/kendo-angular-utils",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1694532820,version:"13.5.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};let Wt=(()=>{class ie{constructor(){this.dragTarget=null,this.dropTarget=null,this.dragTargets=[],this.dropTargets=[],this.pressed=!1,this.ignoreMouse=!1,this.autoScroll=!0,this.isScrolling=!1,this.scrollableParent=null,this.autoScrollDirection={horizontal:!0,vertical:!0},this.initialClientOffset={x:0,y:0},this.clientOffset={x:0,y:0},this.initialScrollOffset={x:0,y:0},this.scrollOffset={x:0,y:0},this.offset={x:0,y:0},this.pageOffset={x:0,y:0},this.velocity={x:0,y:0},this.dragIndex=null,this.dropIndex=null,this.callbacks={},this.scrollInterval=null,this.setCallbacks()}handleDragAndDrop(h){this.updateState(),Ut(this.state,h,this.callbacks)}setPressed(h){this.pressed=h}setScrolling(h){if(this.isScrolling=h,h){const oe=ge(document.elementFromPoint(this.clientOffset.x,this.clientOffset.y));window.clearInterval(this.scrollInterval),this.scrollInterval=window.setInterval(()=>{((ie,Qe)=>{if(!ie)return;let h,oe;ie===ne(ie)?(h=document.body.scrollHeight>window.innerHeight,oe=document.body.scrollWidth>window.innerWidth):(h=ie.offsetHeight<=ie.scrollHeight,oe=ie.offsetWidth<=ie.scrollWidth);let ti=ie.scrollTop+Qe.y,hr=ie.scrollLeft+Qe.x,Cs=oe&&hr>0&&hr<ie.scrollWidth;h&&ti>0&&ti<ie.scrollHeight?ie.scrollTop+=Qe.y:h&&ti<0&&(ie.scrollTop=0),Cs?ie.scrollLeft+=Qe.x:oe&&hr<0&&(ie.scrollLeft=0)})(oe,{x:this.velocity.x,y:this.velocity.y})},50)}else this.scrollInterval&&(window.clearInterval(this.scrollInterval),this.scrollInterval=null)}setVelocity(h){this.velocity=h}setOffset(h){this.offset=h}setClientOffset(h){this.clientOffset=h}setPageOffset(h){this.pageOffset=h}setInitialClientOffset(h){this.initialClientOffset=h}setScrollOffset(h){this.scrollOffset=h}setInitialScrollOffset(h){this.initialScrollOffset=h}updateState(){this.state={drag:this.dragTarget,drop:this.dropTarget,drags:this.dragTargets,drops:this.dropTargets,pressed:this.pressed,ignoreMouse:this.ignoreMouse,autoScroll:this.autoScroll,isScrolling:this.isScrolling,scrollableParent:this.scrollableParent,autoScrollDirection:this.autoScrollDirection,initialClientOffset:this.initialClientOffset,clientOffset:this.clientOffset,initialScrollOffset:this.initialScrollOffset,scrollOffset:this.scrollOffset,offset:this.offset,pageOffset:this.pageOffset,velocity:this.velocity}}setCallbacks(){this.callbacks={onVelocityChange:this.setVelocity.bind(this),onOffsetChange:this.setOffset.bind(this),onClientOffsetChange:this.setClientOffset.bind(this),onPageOffsetChange:this.setPageOffset.bind(this),onInitialClientOffsetChange:this.setInitialClientOffset.bind(this),onScrollOffsetChange:this.setScrollOffset.bind(this),onInitialScrollOffsetChange:this.setInitialScrollOffset.bind(this),onIsPressedChange:this.setPressed.bind(this),onIsScrollingChange:this.setScrolling.bind(this)}}ngOnDestroy(){this.scrollInterval&&(window.clearInterval(this.scrollInterval),this.scrollInterval=null)}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})();function dn(ie){return 9===ie.nodeType}const sn=(ie,Qe)=>({event:ie,payload:Qe}),yi=ie=>null!=ie;function nn(ie,Qe){if(ie.closest)return ie.closest(Qe);const h=Element.prototype.matches?(kt,ti)=>kt.matches(ti):(kt,ti)=>kt.msMatchesSelector(ti);let oe=ie;for(;oe&&!dn(oe);){if(h(oe,Qe))return oe;oe=oe.parentNode}}const Eo=(ie,Qe,h)=>{Object.keys(h).forEach(kt=>{ie.setStyle(Qe,kt,h[kt])})},Ko=["pointerdown","mousedown","touchstart"],xo=["pointermove","mousemove","touchmove"],Bn=["pointerup","pointercancel","mouseup","contextmenu","touchend","touchcancel"];let Xt=(()=>{class ie{constructor(h){this.element=h,this.pointerEvents="none"}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.SBq))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-draghint"]],hostVars:2,hostBindings:function(h,oe){2&h&&e.Udp("pointer-events",oe.pointerEvents)},inputs:{template:"template",directive:"directive",targetIndex:"targetIndex",contextData:"contextData"},decls:1,vars:6,consts:[[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(h,oe){1&h&&e.YNc(0,$n,1,0,"ng-container",0),2&h&&e.Q6J("ngTemplateOutlet",oe.template)("ngTemplateOutletContext",e.kEZ(2,xn,oe.directive,oe.targetIndex,oe.contextData))},dependencies:[X.tP],encapsulation:2}),ie})();class Ji{constructor(Qe){Object.assign(this,Qe)}get normalizedEvent(){return this.dragEvent}get hostElement(){return this.dragTarget}}class En{constructor(Qe){Object.assign(this,Qe)}}class un extends n.wY{constructor(Qe){super(),Object.assign(this,Qe)}get normalizedEvent(){return this.dragEvent}get hostElement(){return this.dragTarget}}class Ki{constructor(Qe){Object.assign(this,Qe)}get normalizedEvent(){return this.dragEvent}get hostElement(){return this.dragTarget}}class Fn extends n.wY{constructor(Qe){super(),Object.assign(this,Qe)}get normalizedEvent(){return this.dragEvent}get hostElement(){return this.dragTarget}}class oi{constructor(Qe){Object.assign(this,Qe)}get normalizedEvent(){return this.dragEvent}get hostElement(){return this.dragTarget}}class wt{constructor(Qe){Object.assign(this,Qe)}get normalizedEvent(){return this.dragEvent}get hostElement(){return this.dropTarget}}let pt=!1,Lt=!1,tt=(()=>{class ie{constructor(h,oe,kt,ti,Zo,hr){this.wrapper=h,this.ngZone=oe,this.renderer=kt,this.service=ti,this.viewContainer=Zo,this.cdr=hr,this.hint=!1,this.dragDelay=0,this.threshold=0,this.mode="auto",this.onDragReady=new e.vpe,this.onPress=new e.vpe,this.onDragStart=new e.vpe,this.onDrag=new e.vpe,this.onRelease=new e.vpe,this.onDragEnd=new e.vpe,this.currentDragTarget=null,this.dragTimeout=null,this.pressed=!1,this.dragStarted=!1,this.hintComponent=null,this.defaultHint=null,this.currentDragTargetElement=null,this.scrollableParent=null,this.previousDragTargets=[],this.initialPosition={x:0,y:0},this.position={x:0,y:0},this.positionsMap=new Map,this._dragTargetFilter=null,this._dragDisabled=!1,this._dragData=()=>null,this._dragTargetId=()=>null,(0,J.s)(mt)}set dragTargetFilter(h){this._dragTargetFilter=h,this.dragDisabled||this.initializeDragTargets()}get dragTargetFilter(){return this._dragTargetFilter}set dragTargetId(h){if(e.X6Q&&"function"!=typeof h)throw new Error(`dragTargetId must be a function, but received ${JSON.stringify(h)}.`);this._dragTargetId=h}get dragTargetId(){return this._dragTargetId}set dragData(h){if(e.X6Q&&"function"!=typeof h)throw new Error(`dragData must be a function, but received ${JSON.stringify(h)}.`);this._dragData=h}get dragData(){return this._dragData}set dragDisabled(h){this._dragDisabled=h,h?(this.clearPreviousTargets(),this.unsubscribe(),yi(this.hintElem)&&this.destroyHint()):((yi(this.wrapper)||yi(this.currentDragTarget))&&this.subscribe(),this.initializeDragTargets())}get dragDisabled(){return this._dragDisabled}notify(){this.cdr.detectChanges(),this.initializeDragTargets()}get allDragTargets(){return this.queryHost(this.dragTargetFilter)}get dragHandles(){return this.isHandleSelectorValid?this.queryHost(this.dragHandle):null}get hintTemplate(){return yi(this.hint)&&"object"==typeof this.hint?this.hint.hintTemplate:null}ngAfterViewInit(){const h=yi(this.wrapper)||yi(this.currentDragTarget);!this.dragDisabled&&h&&this.subscribe(),!this.dragDisabled&&this.initializeDragTargets()}onPointerDown(h){if(yi(this.dragHandles)&&!this.isDragHandle(h.target))return;const oe=sn(h,this.currentDragTarget);this.service.handleDragAndDrop(oe),this.subscribe()}onPointerMove(h){h.preventDefault();const oe=sn(h,this.currentDragTarget);this.service.handleDragAndDrop(oe)}onPointerUp(h){h.preventDefault();const oe=sn(h,this.currentDragTarget);this.service.handleDragAndDrop(oe),this.ngZone.runOutsideAngular(()=>{this.subscribe()})}handlePress(h){this.dragDelay>0?this.dragTimeout=window.setTimeout(()=>{this.pressed=!0,this.emitZoneAwareEvent("onDragReady",h)},this.dragDelay):this.pressed=!0,this.currentDragTargetElement=nn(h.originalEvent.target,this.dragTargetFilter),this.currentDragTarget.element=this.currentDragTargetElement,this.service.dragIndex=this.getDragIndex(),this.scrollableParent=this.hintTemplate?document.body:this.currentDragTargetElement?ge(this.currentDragTargetElement):null,this.emitZoneAwareEvent("onPress",h)}handleDragStart(h){if(!this.pressed)return void(this.dragTimeout&&(window.clearTimeout(this.dragTimeout),this.dragTimeout=null));if(pt=this.emitZoneAwareEvent("onDragStart",h).isDefaultPrevented(),pt)return;this.position=this.positionsMap.has(this.currentDragTargetElement)?this.positionsMap.get(this.currentDragTargetElement):{x:0,y:0},this.hint?(this.createHint(),"auto"===this.mode&&this.renderer.setStyle(this.currentDragTargetElement,"opacity","0.7")):this.initialPosition={x:h.clientX-this.position.x,y:h.clientY-this.position.y},this.dragStarted=0===this.threshold,this.service.dragTarget=this.currentDragTarget;const oe={dragTarget:this.currentDragTargetElement,dragTargetIndex:this.service.dragIndex};this.service.dragTargetId=this.dragTargetId(oe);const kt=Object.assign({dragTargetId:this.service.dragTargetId},oe);this.service.dragData=this.dragData(kt)}handleDrag(h){if(!this.pressed||pt)return;this.position=this.calculatePosition(this.hint?this.hintElem:this.currentDragTargetElement,h);const kt=Math.abs(this.position.x)<this.threshold&&Math.abs(this.position.y)<this.threshold;!this.dragStarted&&kt||(!this.dragStarted&&this.threshold>0&&(this.dragStarted=!0),Lt=this.emitZoneAwareEvent("onDrag",h).isDefaultPrevented(),!Lt&&("auto"===this.mode?this.performDrag():this.dragStarted=!0))}handleRelease(h){this.dragStarted&&this.positionsMap.set(this.currentDragTargetElement,this.position),this.dragTimeout&&(clearTimeout(this.dragTimeout),this.dragTimeout=null,this.pressed=!1),this.emitZoneAwareEvent("onRelease",h)}handleDragEnd(h){if(this.dragStarted){if("auto"===this.mode){const oe=yi(this.service.dropTarget)&&!(0,n.r3)(this.service.dropTarget?.element,this.service.dragTarget?.element,!0),kt=this.hint?this.hintElem:this.currentDragTargetElement;(oe||this.service.dropTargets.length>0&&yi(kt))&&(this.renderer.removeStyle(kt,"transform"),Eo(this.renderer,kt,{transition:"transform .3s ease-in-out"}),this.positionsMap.delete(this.currentDragTargetElement))}this.hint&&yi(this.hintElem)&&(this.destroyHint(),"auto"===this.mode&&this.renderer.removeStyle(this.currentDragTargetElement,"opacity")),this.service.dragTarget=null,this.service.dragIndex=null,this.currentDragTarget.element=null,this.emitZoneAwareEvent("onDragEnd",h),!pt&&!Lt&&(this.dragStarted=!1)}}get nativeElement(){return this.wrapper.nativeElement}get hintElem(){return this.hintTemplate&&yi(this.hintComponent)?this.hintComponent.instance.element.nativeElement:this.defaultHint}unsubscribe(){this.pointerDownSubscription&&this.pointerDownSubscription.unsubscribe(),this.pointerMoveSubscription&&this.pointerMoveSubscription.unsubscribe(),this.pointerUpSubscription&&this.pointerUpSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()}subscribe(){this.ngZone.runOutsideAngular(()=>{if(this.unsubscribe(),!(0,n.X_)()||!yi(this.wrapper))return;const h=this.nativeElement;if(this.service.pressed){const oe=xo.map(ti=>(0,A.R)(document,ti)),kt=Bn.map(ti=>(0,A.R)(document,ti));this.pointerMoveSubscription=(0,o.T)(...oe).pipe((0,w.h)(()=>""!==this.dragTargetFilter)).subscribe(ti=>this.onPointerMove(ti)),this.pointerUpSubscription=(0,o.T)(...kt).subscribe(ti=>this.onPointerUp(ti)),yi(this.scrollableParent)&&(this.scrollSubscription=(0,A.R)(this.scrollableParent,"scroll").subscribe(ti=>this.onPointerMove(ti)))}else{const oe=Ko.map(kt=>(0,A.R)(h,kt));this.pointerDownSubscription=(0,o.T)(...oe).pipe((0,w.h)(()=>""!==this.dragTargetFilter)).subscribe(kt=>{nn(kt.target,this.isHandleSelectorValid?this.dragHandle:this.dragTargetFilter)&&this.onPointerDown(kt)})}})}emitZoneAwareEvent(h,oe){const ti={dragTarget:this.currentDragTargetElement,dragEvent:oe,dragTargetIndex:this.service.dragIndex,dragTargetId:this.dragTargetId({dragTarget:this.currentDragTargetElement,dragTargetIndex:this.service.dragIndex})};let Zo;switch(this.hint&&yi(this.hintElem)&&(ti.hintElement=this.hintElem),h){case"onDragReady":Zo=new En(ti);break;case"onPress":Zo=new Ji(ti);break;case"onDragStart":Zo=new un(ti);break;case"onDrag":Zo=new Fn(ti);break;case"onRelease":Zo=new oi(ti);break;case"onDragEnd":Zo=new Ki(ti)}return this.ngZone.run(()=>{this[h].emit(Zo)}),Zo}createHint(){(0,n.X_)()&&yi(this.wrapper)&&(yi(this.hint)&&"object"==typeof this.hint&&yi(this.hint.hintTemplate)?this.createCustomHint():this.createDefaultHint(),this.currentDragTarget.hint=this.hintElem,"object"==typeof this.hint&&yi(this.hint.appendTo)?this.hint.appendTo.element.nativeElement.appendChild(this.hintElem):document.body.appendChild(this.hintElem))}createDefaultHint(){this.defaultHint=this.currentDragTargetElement.cloneNode(!0),"object"==typeof this.hint&&yi(this.hint.hintClass)&&(0,n.qr)(this.hint.hintClass).forEach(oe=>this.renderer.addClass(this.defaultHint,oe))}createCustomHint(){this.hintComponent=yi(this.hint.appendTo)?this.hint.appendTo.createComponent(Xt):this.viewContainer.createComponent(Xt),this.hintComponent.instance.template=this.hintTemplate,this.hintComponent.instance.directive=this,this.hintComponent.instance.targetIndex=this.service.dragIndex,this.hintComponent.instance.contextData=this.dragData({dragTarget:this.currentDragTargetElement,dragTargetId:this.service.dragTargetId,dragTargetIndex:this.service.dragIndex}),this.hintComponent.changeDetectorRef.detectChanges()}destroyHint(){yi(this.hintTemplate)?(this.hintComponent.destroy(),this.hintComponent.changeDetectorRef.detectChanges(),this.hintComponent=null):(document.body.removeChild(this.defaultHint),this.defaultHint=null),this.currentDragTarget.hint=null}getDragIndex(){return this.allDragTargets.indexOf(this.currentDragTargetElement)}initializeDragTargets(){yi(this.allDragTargets)?(this.allDragTargets.forEach(h=>{this.service.dragTargets.find(kt=>kt.element===h)||this.service.dragTargets.push({element:h,hint:null,onPress:this.handlePress.bind(this),onRelease:this.handleRelease.bind(this),onDragStart:this.handleDragStart.bind(this),onDrag:this.handleDrag.bind(this),onDragEnd:this.handleDragEnd.bind(this)})}),this.previousDragTargets.length>0&&this.previousDragTargets.filter(oe=>!this.allDragTargets.includes(oe)).forEach(oe=>{const kt=this.service.dragTargets.findIndex(ti=>ti.element===oe);kt>-1&&this.service.dragTargets.splice(kt,1)}),this.previousDragTargets=this.allDragTargets,this.currentDragTarget={element:null,hint:null,onPress:this.handlePress.bind(this),onRelease:this.handleRelease.bind(this),onDragStart:this.handleDragStart.bind(this),onDrag:this.handleDrag.bind(this),onDragEnd:this.handleDragEnd.bind(this)},this.setCursorStyle()):this.previousDragTargets.length>0&&this.clearPreviousTargets()}isDragHandle(h){return this.dragHandles.some(oe=>(0,n.r3)(oe,h,!0))}get isHandleSelectorValid(){return yi(this.dragHandle)&&""!==this.dragHandle}setCursorStyle(){(0,n.X_)()&&(yi(this.dragHandle)&&""!==this.dragHandle?yi(this.dragHandles)&&this.dragHandles.length>0&&this.dragHandles.forEach(h=>{this.renderer.setStyle(h,"cursor","move")}):this.allDragTargets.forEach(h=>{this.renderer.setStyle(h,"cursor","move")}))}queryHost(h){if(yi(h)&&""!==h)return Array.from(this.nativeElement.querySelectorAll(h))}clearPreviousTargets(){this.previousDragTargets.forEach(h=>{const oe=this.service.dragTargets.findIndex(kt=>kt.element===h);oe>-1&&this.service.dragTargets.splice(oe,1)}),this.previousDragTargets=[]}performDrag(){const h=this.hint?this.hintElem:this.currentDragTargetElement;if(h){const oe=this.getStylesPerElement(h);Eo(this.renderer,h,oe)}}calculatePosition(h,oe){let kt=null;return kt=h===this.hintElem?{x:oe.clientX,y:oe.clientY}:{x:oe.clientX-this.initialPosition.x+oe.scrollX,y:oe.clientY-this.initialPosition.y+oe.scrollY},kt}getStylesPerElement(h){if(h===this.hintElem){const oe={x:this.position.x-this.initialPosition.x,y:this.position.y-this.initialPosition.y};return{top:`${oe.y}px`,left:`${oe.x}px`,transition:"none",position:"absolute",zIndex:1999}}return{transform:`translate(${this.position.x}px, ${this.position.y}px)`,transition:"none"}}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(Wt),e.Y36(e.s_b),e.Y36(e.sBO))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoDragTargetContainer",""]],inputs:{hint:"hint",dragTargetFilter:"dragTargetFilter",dragHandle:"dragHandle",dragDelay:"dragDelay",threshold:"threshold",dragTargetId:"dragTargetId",dragData:"dragData",dragDisabled:"dragDisabled",mode:"mode"},outputs:{onDragReady:"onDragReady",onPress:"onPress",onDragStart:"onDragStart",onDrag:"onDrag",onRelease:"onRelease",onDragEnd:"onDragEnd"},exportAs:["kendoDragTargetContainer"]}),ie})(),Ne=(()=>{class ie{constructor(h,oe,kt,ti){this.service=h,this.element=oe,this.ngZone=kt,this.cdr=ti,this.onDragEnter=new e.vpe,this.onDragOver=new e.vpe,this.onDragLeave=new e.vpe,this.onDrop=new e.vpe,this.currentDropTarget=null,this.currentDropTargetElement=null,this.previousDropTargets=[],this._dropTargetFilter=null,this._dropDisabled=!1,(0,J.s)(mt)}set dropTargetFilter(h){this._dropTargetFilter=h,this.dropDisabled||this.initializeDropTargets()}get dropTargetFilter(){return this._dropTargetFilter}set dropDisabled(h){this._dropDisabled=h,h?this.clearPreviousTargets():this.initializeDropTargets()}get dropDisabled(){return this._dropDisabled}notify(){this.cdr.detectChanges(),this.initializeDropTargets()}get nativeElement(){return this.element.nativeElement}ngAfterViewInit(){!this.dropDisabled&&this.initializeDropTargets()}get allDropTargets(){if(yi(this.dropTargetFilter)&&""!==this.dropTargetFilter)return Array.from(this.nativeElement.querySelectorAll(this.dropTargetFilter))}handleDragEnter(h){this.service.dragTarget&&(this.currentDropTargetElement=((ie,Qe)=>{let h=0,oe=null;return this.allDropTargets.forEach(kt=>{if(kt&&ie){const ti=((ie,Qe)=>{const h=ie.getBoundingClientRect(),oe=Qe.getBoundingClientRect(),kt=Math.max(oe.top,h.top),ti=Math.max(oe.left,h.left),Zo=Math.min(oe.left+oe.width,h.left+h.width),hr=Math.min(oe.top+oe.height,h.top+h.height);if(ti<Zo&&kt<hr){const Ll=(Zo-ti)*(hr-kt);return Number((Ll/(oe.width*oe.height+h.width*h.height-Ll)).toFixed(4))}return 0})(ie,kt);ti>h&&(h=ti,oe=kt)}}),oe})(h.originalEvent.target),this.currentDropTarget=this.service.dropTargets.find(kt=>kt.element===this.currentDropTargetElement),this.service.dropTarget=this.currentDropTarget,this.service.dropIndex=this.getDropIndex(),this.emitZoneAwareEvent("onDragEnter",h))}handleDragLeave(h){this.service.dropTarget=null,this.service.dragTarget&&this.emitZoneAwareEvent("onDragLeave",h)}handleDragOver(h){this.service.dragTarget&&this.emitZoneAwareEvent("onDragOver",h)}handleDrop(h){this.service.dragTarget&&(this.emitZoneAwareEvent("onDrop",h),this.currentDropTarget=null,this.currentDropTargetElement=null,this.service.dropIndex=null)}initializeDropTargets(){yi(this.allDropTargets)?(this.allDropTargets.forEach(h=>{this.service.dropTargets.find(kt=>kt.element===h)||this.service.dropTargets.push({element:h,onDragEnter:this.handleDragEnter.bind(this),onDragLeave:this.handleDragLeave.bind(this),onDragOver:this.handleDragOver.bind(this),onDrop:this.handleDrop.bind(this)})}),this.previousDropTargets.length>0&&this.previousDropTargets.filter(oe=>!this.allDropTargets.includes(oe)).forEach(oe=>{const kt=this.service.dropTargets.findIndex(ti=>ti.element===oe);kt>-1&&this.service.dropTargets.splice(kt,1)}),this.previousDropTargets=this.allDropTargets):this.previousDropTargets.length>0&&this.clearPreviousTargets()}emitZoneAwareEvent(h,oe){const kt={dragTarget:this.service.dragTarget?.element,dropTarget:this.currentDropTargetElement,dragData:this.service.dragData,dragEvent:oe,dropTargetIndex:this.service.dropIndex};yi(this.service.dragTarget?.hint)&&(kt.hintElement=this.service.dragTarget.hint);const ti=new wt(kt);this.ngZone.run(()=>{this[h].emit(ti)})}getDropIndex(){const h=this.nativeElement.querySelectorAll(this.dropTargetFilter);return Array.from(h).indexOf(this.currentDropTargetElement)}clearPreviousTargets(){this.previousDropTargets.forEach(h=>{const oe=this.service.dropTargets.findIndex(kt=>kt.element===h);oe>-1&&this.service.dropTargets.splice(oe,1)}),this.previousDropTargets=[]}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Wt),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoDropTargetContainer",""]],inputs:{dropTargetFilter:"dropTargetFilter",dropDisabled:"dropDisabled"},outputs:{onDragEnter:"onDragEnter",onDragOver:"onDragOver",onDragLeave:"onDragLeave",onDrop:"onDrop"},exportAs:["kendoDropTargetContainer"]}),ie})(),ln=(()=>{class ie{}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({imports:[[X.ez]]}),ie})();var Pi=i(31486),go=i(5954),si=i(15735),ot=i(80889),pn=i(54885),_i=i(99714),wi=i(86825),hi=i(99842),zn=i(91918),li=(i(83244),i(9890)),Xi=i(82789);function ki(ie,Qe){}function bo(ie,Qe){if(1&ie&&e.YNc(0,ki,0,0,"ng-template",1),2&ie){const h=e.oxw();e.Q6J("ngTemplateOutlet",h.toolbarTemplateRef)("ngTemplateOutletContext",h.context)}}const jo=["select"],wn=["numbers"];function Zi(ie,Qe){if(1&ie&&(e.TgZ(0,"option",10),e._uU(1,"... "),e.qZA()),2&ie){const h=e.oxw();e.Q6J("selected",!1),e.uIk("aria-label",h.pageLabel(h.start-1))}}const oo=function(ie){return{"k-selected":ie}};function Bi(ie,Qe){if(1&ie&&(e.TgZ(0,"option",11),e._uU(1),e.qZA()),2&ie){const h=Qe.$implicit,oe=e.oxw();e.Q6J("value",h.toString())("selected",h===oe.currentPage)("ngClass",e.VKq(6,oo,oe.currentPage===h)),e.uIk("aria-label",oe.pageLabel(h))("aria-current",oe.currentPage===h?"page":void 0),e.xp6(1),e.hij(" ",h," ")}}function Xo(ie,Qe){if(1&ie&&(e.TgZ(0,"option",12),e._uU(1,"... "),e.qZA()),2&ie){const h=e.oxw();e.Q6J("selected",!1),e.uIk("aria-label",h.pageLabel(h.end+1))}}function Lo(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){e.CHM(h);const kt=e.oxw();return e.KtG(kt.changePage(kt.start-2))}),e._uU(1,"..."),e.qZA()}if(2&ie){const h=e.oxw();e.Q6J("size",h.size),e.uIk("aria-label",h.pageLabel(h.start-1))("title",h.pageLabel(h.start-1))}}function or(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){const ti=e.CHM(h).$implicit,Zo=e.oxw();return e.KtG(Zo.changePage(ti-1))}),e._uU(1),e.qZA()}if(2&ie){const h=Qe.$implicit,oe=e.oxw();e.Q6J("size",oe.size)("selected",oe.currentPage===h),e.uIk("aria-label",oe.pageLabel(h))("title",oe.pageLabel(h))("aria-current",oe.currentPage===h?"page":void 0),e.xp6(1),e.hij(" ",h," ")}}function xr(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){e.CHM(h);const kt=e.oxw();return e.KtG(kt.changePage(kt.end))}),e._uU(1,"..."),e.qZA()}if(2&ie){const h=e.oxw();e.Q6J("size",h.size),e.uIk("aria-label",h.pageLabel(h.end+1))("title",h.pageLabel(h.end+1))}}const Nr=function(ie,Qe){return{"k-picker-sm":ie,"k-picker-md":Qe}},as=function(ie,Qe){return{keydown:ie,focusout:Qe}};function ji(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"div",4),e.NdJ("focusin",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.onInnerFocusIn(kt,"start"))}),e.qZA()}if(2&ie){const h=e.oxw();e.Q6J("tabindex",h.focusTrapTabIndex),e.uIk("aria-hidden",!0)}}function Fo(ie,Qe){if(1&ie&&e.GkF(0,5),2&ie){const h=e.oxw();e.Q6J("ngTemplateOutlet",h.template.templateRef)("ngTemplateOutletContext",h.templateContext)}}function rt(ie,Qe){if(1&ie&&e._UZ(0,"kendo-pager-prev-buttons",10),2&ie){const h=e.oxw(2);e.Q6J("size",h.size)}}function ai(ie,Qe){if(1&ie&&e._UZ(0,"kendo-pager-numeric-buttons",11),2&ie){const h=e.oxw(2);e.Q6J("size",h.size)("buttonCount",h.settings.buttonCount)}}function Gn(ie,Qe){if(1&ie&&e._UZ(0,"kendo-pager-input",10),2&ie){const h=e.oxw(2);e.Q6J("size",h.size)}}function Io(ie,Qe){if(1&ie&&e._UZ(0,"kendo-pager-next-buttons",10),2&ie){const h=e.oxw(2);e.Q6J("size",h.size)}}function wr(ie,Qe){1&ie&&e._UZ(0,"kendo-pager-info")}function bs(ie,Qe){if(1&ie&&e._UZ(0,"kendo-pager-page-sizes",12),2&ie){const h=e.oxw(2);e.Q6J("size",h.size)("pageSizes",h.settings.pageSizes)}}function ba(ie,Qe){if(1&ie&&(e.ynx(0),e.TgZ(1,"div",6),e.YNc(2,rt,1,1,"kendo-pager-prev-buttons",7),e.YNc(3,ai,1,2,"kendo-pager-numeric-buttons",8),e.YNc(4,Gn,1,1,"kendo-pager-input",7),e.YNc(5,Io,1,1,"kendo-pager-next-buttons",7),e.qZA(),e.YNc(6,wr,1,0,"kendo-pager-info",2),e.YNc(7,bs,1,2,"kendo-pager-page-sizes",9),e.BQk()),2&ie){const h=e.oxw();e.xp6(2),e.Q6J("ngIf",h.settings.previousNext),e.xp6(1),e.Q6J("ngIf","numeric"===h.settings.type),e.xp6(1),e.Q6J("ngIf","input"===h.settings.type),e.xp6(1),e.Q6J("ngIf",h.settings.previousNext),e.xp6(1),e.Q6J("ngIf",h.settings.info),e.xp6(1),e.Q6J("ngIf",h.settings.pageSizes)}}function ms(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"div",4),e.NdJ("focusin",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.onInnerFocusIn(kt,"end"))}),e.qZA()}if(2&ie){const h=e.oxw();e.Q6J("tabindex",h.focusTrapTabIndex),e.uIk("aria-hidden",!0)}}function Oa(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"kendo-resize-sensor",13),e.NdJ("resize",function(){e.CHM(h);const kt=e.oxw();return e.KtG(kt.resizeHandler())}),e.qZA()}}const Ea=function(){return{lastTarget:!0}};function Sa(ie,Qe){if(1&ie&&(e.TgZ(0,"div",2),e._uU(1),e.qZA()),2&ie){const h=e.oxw();e.Q6J("context",e.DdM(2,Ea)),e.xp6(1),e.hij(" ",h.text," ")}}const tr=function(ie,Qe){return{field:ie,type:"groupIndicator",hint:Qe}};function Mr(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"kendo-chip",5),e.NdJ("contentClick",function(){const ti=e.CHM(h).$implicit,Zo=e.oxw(2);return e.KtG(Zo.directionChange(ti))})("remove",function(){const ti=e.CHM(h).$implicit,Zo=e.oxw(2);return e.KtG(Zo.remove(ti))}),e.qZA()}if(2&ie){const h=Qe.$implicit,oe=Qe.index,kt=e.oxw(2);e.Q6J("title",kt.getTitle(h))("enableDrag",!0)("context",e.WLB(7,tr,h.field,kt.groupTitles[oe]))("label",kt.groupTitles[oe])("removable",!0)("icon",kt.getDirectionIcon(h))("svgIcon",kt.getDirectionSvgIcon(h))}}function Li(ie,Qe){if(1&ie&&(e.TgZ(0,"kendo-chiplist",3),e.YNc(1,Mr,1,10,"kendo-chip",4),e.qZA()),2&ie){const h=e.oxw();e.Q6J("navigable",h.navigable),e.xp6(1),e.Q6J("ngForOf",h.groups)}}function Ao(ie,Qe){1&ie&&(e.TgZ(0,"div",2),e._uU(1,"\xa0"),e.qZA()),2&ie&&e.Q6J("context",e.DdM(1,Ea))}const ao=["kendoGridColGroup",""];function Go(ie,Qe){1&ie&&e._UZ(0,"col"),2&ie&&e.ekj("k-group-col",!0)}function pr(ie,Qe){1&ie&&e._UZ(0,"col"),2&ie&&e.ekj("k-hierarchy-col",!0)}function Rr(ie,Qe){if(1&ie&&e._UZ(0,"col"),2&ie){const h=Qe.$implicit,oe=e.oxw();e.Udp("width",h.width,"px"),e.ekj("k-sorted",oe.isSorted(oe.getColumnComponent(h)))}}const br=["*"];function Ti(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"kendo-dropdownlist",3),e.NdJ("valueChange",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.logicChange(kt))}),e.qZA()}if(2&ie){const h=e.oxw();e.Q6J("filterMenuDropDownLabel",h.filterMenuDropDownLabel)("data",h.logicOperators)("valuePrimitive",!0)("value",null==h.filter?null:h.filter.logic)}}function mr(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-string-filter-menu-input",4),2&ie){const h=e.oxw();e.Q6J("operators",h.operators)("currentFilter",h.secondFilter)("filterService",h.filterService)("column",h.column)("filter",h.filter)("menuTabbingService",h.menuTabbingService)}}function ri(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"kendo-dropdownlist",3),e.NdJ("valueChange",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.logicChange(kt))}),e.qZA()}if(2&ie){const h=e.oxw();e.Q6J("filterMenuDropDownLabel",h.filterMenuDropDownLabel)("data",h.logicOperators)("valuePrimitive",!0)("value",null==h.filter?null:h.filter.logic)}}function mo(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-numeric-filter-menu-input",4),2&ie){const h=e.oxw();e.Q6J("operators",h.operators)("currentFilter",h.secondFilter)("filterService",h.filterService)("column",h.column)("filter",h.filter)("format",h.format)("decimals",h.decimals)("spinners",h.spinners)("min",h.min)("max",h.max)("step",h.step)("menuTabbingService",h.menuTabbingService)}}function Ii(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"kendo-dropdownlist",3),e.NdJ("valueChange",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.logicChange(kt))}),e.qZA()}if(2&ie){const h=e.oxw();e.Q6J("filterMenuDropDownLabel",h.filterMenuDropDownLabel)("data",h.logicOperators)("valuePrimitive",!0)("value",null==h.filter?null:h.filter.logic)}}function yo(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-date-filter-menu-input",4),2&ie){const h=e.oxw();e.Q6J("operators",h.operators)("currentFilter",h.secondFilter)("filterService",h.filterService)("column",h.column)("filter",h.filter)("activeView",h.activeView)("bottomView",h.bottomView)("topView",h.topView)("format",h.format)("formatPlaceholder",h.formatPlaceholder)("placeholder",h.placeholder)("min",h.min)("max",h.max)("weekNumber",h.weekNumber)("menuTabbingService",h.menuTabbingService)}}function lr(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"li")(1,"input",2,3),e.NdJ("change",function(){const ti=e.CHM(h).$implicit,Zo=e.MAs(2),hr=e.oxw();return e.KtG(hr.onChange(ti.value,Zo))})("keydown.shift.tab",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.onShiftTab(kt))}),e.qZA(),e.TgZ(3,"label",4),e._uU(4),e.qZA()()}if(2&ie){const h=Qe.$implicit,oe=e.oxw();e.xp6(1),e.Q6J("columnLabel",oe.columnLabel)("name",oe.idPrefix)("checked",oe.isSelected(h.value)),e.uIk("id",oe.radioId(h.value)),e.xp6(2),e.uIk("for",oe.radioId(h.value)),e.xp6(1),e.Oqu(h.text)}}const Yr=["resetButton"],Gs=["filterButton"];function fi(ie,Qe){if(1&ie&&(e.ynx(0),e.GkF(1,9),e.BQk()),2&ie){const h=e.oxw();e.xp6(1),e.Q6J("filterService",h.childService)("column",h.column)("filter",h.childFilter)("menuTabbingService",h.menuTabbingService)}}function Ho(ie,Qe){}function _t(ie,Qe){if(1&ie&&e.YNc(0,Ho,0,0,"ng-template",11),2&ie){const h=e.oxw(2);e.Q6J("ngTemplateOutlet",h.column.filterMenuTemplateRef)("ngTemplateOutletContext",h.templateContext)}}function Zn(ie,Qe){if(1&ie&&(e.ynx(0),e.YNc(1,_t,1,2,null,10),e.BQk()),2&ie){const h=e.oxw();e.xp6(1),e.Q6J("ngIf",h.column.filterMenuTemplateRef)}}const qo=["anchor"],Cr=["template"];function kr(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"kendo-grid-filter-menu-container",4),e.NdJ("close",function(){e.CHM(h);const kt=e.oxw();return e.KtG(kt.close())})("keydown.escape",function(){e.CHM(h);const kt=e.oxw();return e.KtG(kt.close())})("keydown.enter",function(kt){return kt.stopImmediatePropagation()}),e.qZA()}if(2&ie){const h=e.oxw();e.Q6J("column",h.column)("filter",h.filter)}}function xs(ie,Qe){if(1&ie&&(e.TgZ(0,"div",3),e.GkF(1,4),e._UZ(2,"div"),e.qZA()),2&ie){const h=e.oxw();e.Udp("overflow","hidden"),e.Q6J("@state",h.contentState),e.uIk("id",h.contentId),e.xp6(1),e.Q6J("ngTemplateOutlet",h.contentTemplate.templateRef)}}function Us(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"kendo-grid-columnmenu-lock",3),e.NdJ("keydown.tab",function(kt){e.CHM(h);const ti=e.oxw(2);return e.KtG(ti.onTab(kt,!ti.showStick))}),e.qZA()}if(2&ie){const h=e.oxw(2);e.Q6J("service",h.service)}}function Ts(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"kendo-grid-columnmenu-stick",3),e.NdJ("keydown.tab",function(kt){e.CHM(h);const ti=e.oxw(2);return e.KtG(ti.onTab(kt,!0))}),e.qZA()}if(2&ie){const h=e.oxw(2);e.Q6J("service",h.service)}}function Ss(ie,Qe){if(1&ie&&(e.YNc(0,Us,1,1,"kendo-grid-columnmenu-lock",2),e.YNc(1,Ts,1,1,"kendo-grid-columnmenu-stick",2)),2&ie){const h=e.oxw();e.Q6J("ngIf",h.showLock),e.xp6(1),e.Q6J("ngIf",h.showStick)}}const Ua=["applyButton"];function $o(ie,Qe){if(1&ie&&(e.TgZ(0,"label",3),e._UZ(1,"input",4),e.TgZ(2,"span",5),e._uU(3),e.qZA()()),2&ie){const h=Qe.$implicit,oe=Qe.index,kt=e.oxw();e.Q6J("kendoColumnMenuChooserItemChecked",!h.hidden),e.xp6(1),e.Q6J("checked",!h.hidden)("disabled",kt.isDisabled(h)),e.uIk("data-index",oe)("aria-hidden",!0),e.xp6(2),e.Oqu(h.displayTitle)}}function Ar(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"div",6)(1,"button",7,8),e.NdJ("click",function(){e.CHM(h);const kt=e.oxw();return e.KtG(kt.applyChanges())})("keydown.enter",function(kt){e.CHM(h);const ti=e.oxw();return kt.preventDefault(),e.KtG(ti.applyChanges())})("keydown.space",function(kt){e.CHM(h);const ti=e.oxw();return kt.preventDefault(),e.KtG(ti.applyChanges())}),e._uU(3),e.qZA(),e.TgZ(4,"button",9,10),e.NdJ("keydown.tab",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.onTab(kt))})("click",function(){e.CHM(h);const kt=e.oxw();return e.KtG(kt.cancelChanges())})("keydown.enter",function(kt){e.CHM(h);const ti=e.oxw();return kt.preventDefault(),e.KtG(ti.cancelChanges())})("keydown.space",function(kt){e.CHM(h);const ti=e.oxw();return kt.preventDefault(),e.KtG(ti.cancelChanges())}),e._uU(6),e.qZA()()}if(2&ie){const h=e.oxw();e.Q6J("ngClass",h.actionsClass),e.xp6(3),e.Oqu(h.applyText),e.xp6(3),e.Oqu(h.resetText)}}function No(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"kendo-grid-columnlist",2),e.NdJ("apply",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.onApply(kt))}),e.qZA()}if(2&ie){const h=e.oxw();e.Q6J("applyText",h.ctx.localization.get("columnsApply"))("resetText",h.ctx.localization.get("columnsReset"))("ariaLabel",h.ctx.localization.get("columns"))("columns",h.columns)("autoSync",!1)("allowHideAll",!1)("actionsClass",h.actionsClass)("isLast",h.isLast)("isExpanded",h.expanded)("service",h.service)}}function qr(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"kendo-grid-filter-menu-container",2),e.NdJ("keydown.shift.tab",function(kt){return kt.stopImmediatePropagation()})("close",function(){e.CHM(h);const kt=e.oxw();return e.KtG(kt.close())}),e.qZA()}if(2&ie){const h=e.oxw();e.Q6J("column",h.service.column)("menuTabbingService",h.service.menuTabbingService)("filter",h.service.filter)("actionsClass",h.actionsClass)("isLast",h.isLast)("isExpanded",h.expanded)}}function js(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"kendo-grid-columnmenu-item",1),e.NdJ("itemClick",function(){e.CHM(h);const kt=e.oxw();return e.KtG(kt.autoSizeColumn())}),e.qZA()}if(2&ie){const h=e.oxw();e.Q6J("text",h.ctx.localization.get("autosizeThisColumn"))("svgIcon",h.maxWidthIcon)}}function Ds(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"kendo-grid-columnmenu-item",1),e.NdJ("itemClick",function(){e.CHM(h);const kt=e.oxw();return e.KtG(kt.autoSizeAllColumns())}),e.qZA()}if(2&ie){const h=e.oxw();e.Q6J("text",h.ctx.localization.get("autosizeAllColumns"))("svgIcon",h.displayInlineFlexIcon)}}const Zr=["defaultTemplate"],ls=["tabbedInterfaceTemplate"],Hs=function(ie,Qe){return{service:ie,column:Qe}};function Js(ie,Qe){if(1&ie&&e.GkF(0,6),2&ie){const h=e.oxw(),oe=e.MAs(8),kt=e.MAs(6);e.Q6J("ngTemplateOutlet",h.column.columnMenuTemplateRef||h.columnMenuTemplate||("tabbed"===h.settings.view?oe:kt))("ngTemplateOutletContext",e.WLB(2,Hs,h.service,h.column))}}function Wa(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-columnmenu-sort",14,15),2&ie){const h=e.MAs(1),oe=e.oxw(2);e.Q6J("kendoGridColumnMenuItem",h)("service",oe.service)}}function ll(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-columnmenu-lock",14,16),2&ie){const h=e.MAs(1),oe=e.oxw(2);e.Q6J("kendoGridColumnMenuItem",h)("service",oe.service)}}function Za(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-columnmenu-stick",14,17),2&ie){const h=e.MAs(1),oe=e.oxw(2);e.Q6J("kendoGridColumnMenuItem",h)("service",oe.service)}}function sl(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-columnmenu-position",18,19),2&ie){const h=e.MAs(1),oe=e.oxw(2);e.Q6J("showLock",oe.hasLock)("showStick",oe.hasStick)("kendoGridColumnMenuItem",h)("service",oe.service)("expanded",oe.expandedPosition)}}function Jt(ie,Qe){1&ie&&e._UZ(0,"span",20),2&ie&&e.Udp("border-color","rgba(0, 0, 0, 0.08)")}function Tt(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-columnmenu-chooser",21,22),2&ie){const h=e.MAs(1),oe=e.oxw(2);e.Q6J("kendoGridColumnMenuItem",h)("service",oe.service)("expanded",oe.expandedColumns)}}function ht(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-columnmenu-autosize-column",23,24),2&ie){const h=e.MAs(1),oe=e.oxw(2);e.Q6J("service",oe.service)("kendoGridColumnMenuItem",h)("column",oe.column)}}function yn(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-columnmenu-autosize-all-columns",25,26),2&ie){const h=e.MAs(1),oe=e.oxw(2);e.Q6J("service",oe.service)("kendoGridColumnMenuItem",h)}}function vi(ie,Qe){1&ie&&e._UZ(0,"span",20),2&ie&&e.Udp("border-color","rgba(0, 0, 0, 0.08)")}function Yi(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-columnmenu-filter",21,27),2&ie){const h=e.MAs(1),oe=e.oxw(2);e.Q6J("kendoGridColumnMenuItem",h)("service",oe.service)("expanded",oe.expandedFilter)}}function co(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"kendo-grid-columnmenu-container",7),e.NdJ("keydown.escape",function(){e.CHM(h);const kt=e.oxw();return e.KtG(kt.close(!0))})("keydown.enter",function(kt){return kt.stopImmediatePropagation()}),e.YNc(1,Wa,2,2,"kendo-grid-columnmenu-sort",8),e.YNc(2,ll,2,2,"kendo-grid-columnmenu-lock",8),e.YNc(3,Za,2,2,"kendo-grid-columnmenu-stick",8),e.YNc(4,sl,2,5,"kendo-grid-columnmenu-position",9),e.YNc(5,Jt,1,2,"span",10),e.YNc(6,Tt,2,3,"kendo-grid-columnmenu-chooser",11),e.YNc(7,ht,2,3,"kendo-grid-columnmenu-autosize-column",12),e.YNc(8,yn,2,2,"kendo-grid-columnmenu-autosize-all-columns",13),e.YNc(9,vi,1,2,"span",10),e.YNc(10,Yi,2,3,"kendo-grid-columnmenu-filter",11),e.qZA()}if(2&ie){const h=e.oxw();e.xp6(1),e.Q6J("ngIf",h.hasSort),e.xp6(1),e.Q6J("ngIf",h.hasLock&&!h.hasPosition),e.xp6(1),e.Q6J("ngIf",h.hasStick&&!h.hasPosition),e.xp6(1),e.Q6J("ngIf",h.hasPosition),e.xp6(1),e.Q6J("ngIf",h.hasColumnChooser||h.hasAutoSizeColumn||h.hasAutoSizeAllColumns),e.xp6(1),e.Q6J("ngIf",h.hasColumnChooser),e.xp6(1),e.Q6J("ngIf",h.hasAutoSizeColumn),e.xp6(1),e.Q6J("ngIf",h.hasAutoSizeAllColumns),e.xp6(1),e.Q6J("ngIf",h.hasColumnChooser||h.hasAutoSizeColumn||h.hasAutoSizeAllColumns),e.xp6(1),e.Q6J("ngIf",h.hasFilter)}}function sr(ie,Qe){if(1&ie&&e._UZ(0,"kendo-icon-wrapper",33),2&ie){const h=e.oxw(3);e.Q6J("svgIcon",h.filterIcon),e.uIk("title",h.ctx.localization.get("columnMenuFilterTabTitle"))}}function yr(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"kendo-grid-filter-menu-container",34),e.NdJ("keydown.shift.tab",function(kt){return kt.stopImmediatePropagation()})("close",function(){e.CHM(h);const kt=e.oxw(3);return e.KtG(kt.close())}),e.qZA()}if(2&ie){const h=e.oxw(3);e.Q6J("column",h.service.column)("menuTabbingService",h.service.menuTabbingService)("filter",h.service.filter)("actionsClass",h.actionsClass)}}function Ur(ie,Qe){1&ie&&(e.TgZ(0,"kendo-tabstrip-tab"),e.YNc(1,sr,1,2,"ng-template",31),e.YNc(2,yr,1,4,"ng-template",32),e.qZA())}function ss(ie,Qe){if(1&ie&&e._UZ(0,"kendo-icon-wrapper",35),2&ie){const h=e.oxw(3);e.Q6J("svgIcon",h.slidersIcon),e.uIk("title",h.ctx.localization.get("columnMenuGeneralTabTitle"))}}function gs(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-columnmenu-sort",14,15),2&ie){const h=e.MAs(1),oe=e.oxw(4);e.Q6J("kendoGridColumnMenuItem",h)("service",oe.service)}}function Pr(ie,Qe){1&ie&&e._UZ(0,"span",20),2&ie&&e.Udp("border-color","rgba(0, 0, 0, 0.08)")}function ys(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-columnmenu-lock",14,16),2&ie){const h=e.MAs(1),oe=e.oxw(4);e.Q6J("kendoGridColumnMenuItem",h)("service",oe.service)}}function da(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-columnmenu-stick",14,17),2&ie){const h=e.MAs(1),oe=e.oxw(4);e.Q6J("kendoGridColumnMenuItem",h)("service",oe.service)}}function Va(ie,Qe){1&ie&&e._UZ(0,"span",20),2&ie&&e.Udp("border-color","rgba(0, 0, 0, 0.08)")}function ga(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-columnmenu-position",18,19),2&ie){const h=e.MAs(1),oe=e.oxw(4);e.Q6J("showLock",oe.hasLock)("showStick",oe.hasStick)("kendoGridColumnMenuItem",h)("service",oe.service)("expanded",oe.expandedPosition)}}function al(ie,Qe){1&ie&&e._UZ(0,"span",20),2&ie&&e.Udp("border-color","rgba(0, 0, 0, 0.08)")}function ur(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-columnmenu-autosize-column",23,24),2&ie){const h=e.MAs(1),oe=e.oxw(4);e.Q6J("service",oe.service)("kendoGridColumnMenuItem",h)("column",oe.column)}}function La(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-columnmenu-autosize-all-columns",25,26),2&ie){const h=e.MAs(1),oe=e.oxw(4);e.Q6J("service",oe.service)("kendoGridColumnMenuItem",h)}}function ra(ie,Qe){if(1&ie&&(e.YNc(0,gs,2,2,"kendo-grid-columnmenu-sort",8),e.YNc(1,Pr,1,2,"span",10),e.YNc(2,ys,2,2,"kendo-grid-columnmenu-lock",8),e.YNc(3,da,2,2,"kendo-grid-columnmenu-stick",8),e.YNc(4,Va,1,2,"span",10),e.YNc(5,ga,2,5,"kendo-grid-columnmenu-position",9),e.YNc(6,al,1,2,"span",10),e.YNc(7,ur,2,3,"kendo-grid-columnmenu-autosize-column",12),e.YNc(8,La,2,2,"kendo-grid-columnmenu-autosize-all-columns",13)),2&ie){const h=e.oxw(3);e.Q6J("ngIf",h.hasSort),e.xp6(1),e.Q6J("ngIf",h.hasSort&&(h.hasLock||h.hasStick||h.hasPosition||h.hasAutoSizeColumn||h.hasAutoSizeAllColumns)),e.xp6(1),e.Q6J("ngIf",h.hasLock&&!h.hasPosition),e.xp6(1),e.Q6J("ngIf",h.hasStick&&!h.hasPosition),e.xp6(1),e.Q6J("ngIf",(h.hasLock||h.hasStick)&&!h.hasPosition&&(h.hasAutoSizeColumn||h.hasAutoSizeAllColumns)),e.xp6(1),e.Q6J("ngIf",h.hasPosition),e.xp6(1),e.Q6J("ngIf",h.hasPosition&&(h.hasAutoSizeColumn||h.hasAutoSizeAllColumns)),e.xp6(1),e.Q6J("ngIf",h.hasAutoSizeColumn),e.xp6(1),e.Q6J("ngIf",h.hasAutoSizeAllColumns)}}function Ls(ie,Qe){1&ie&&(e.TgZ(0,"kendo-tabstrip-tab"),e.YNc(1,ss,1,2,"ng-template",31),e.YNc(2,ra,9,9,"ng-template",32),e.qZA())}function vn(ie,Qe){if(1&ie&&e._UZ(0,"kendo-icon-wrapper",36),2&ie){const h=e.oxw(3);e.Q6J("svgIcon",h.columnsIcon),e.uIk("title",h.ctx.localization.get("columnMenuColumnsTabTitle"))}}function Xe(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"kendo-grid-columnlist",37),e.NdJ("apply",function(kt){e.CHM(h);const ti=e.oxw(3);return e.KtG(ti.onApply(kt))}),e.qZA()}if(2&ie){const h=e.oxw(3);e.Q6J("applyText",h.ctx.localization.get("columnsApply"))("resetText",h.ctx.localization.get("columnsReset"))("columns",h.columns)("autoSync",!1)("allowHideAll",!1)("actionsClass",h.actionsClass)("service",h.service)}}function Ke(ie,Qe){1&ie&&(e.TgZ(0,"kendo-tabstrip-tab"),e.YNc(1,vn,1,2,"ng-template",31),e.YNc(2,Xe,1,7,"ng-template",32),e.qZA())}function ze(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"kendo-tabstrip",28,29),e.NdJ("keydown.escape",function(){e.CHM(h);const kt=e.oxw();return e.KtG(kt.close(!0))}),e.YNc(2,Ur,3,0,"kendo-tabstrip-tab",30),e.YNc(3,Ls,3,0,"kendo-tabstrip-tab",30),e.YNc(4,Ke,3,0,"kendo-tabstrip-tab",30),e.qZA()}if(2&ie){const h=e.oxw();e.xp6(2),e.Q6J("ngIf",h.hasFilter),e.xp6(1),e.Q6J("ngIf",h.showGeneralTab),e.xp6(1),e.Q6J("ngIf",h.hasColumnChooser)}}const St=function(ie){return{"k-active":ie}},it=["dropdown"],Dt=function(){return{width:"auto"}};function Hn(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"kendo-dropdownlist",2,3),e.NdJ("valueChange",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.onChange(kt))})("keydown",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.dropdownKeydown(kt))}),e.qZA()}if(2&ie){const h=e.oxw();e.Q6J("data",h.operators)("value",h.value)("valuePrimitive",!0)("popupSettings",e.DdM(6,Dt))("size",h.size),e.uIk("aria-label",h.column&&h.columnLabel)}}function Ui(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"button",4),e.NdJ("click",function(){e.CHM(h);const kt=e.oxw();return e.KtG(kt.clearClick())})("keydown",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.clearKeydown(kt))}),e.qZA()}if(2&ie){const h=e.oxw();e.Q6J("svgIcon",h.filterClearIcon)("title",h.clearText)("size",h.size)}}const Co=["kendoGridFilterCell",""];function Sn(ie,Qe){if(1&ie&&(e.ynx(0),e.GkF(1,3),e.BQk()),2&ie){const h=e.oxw(2);e.xp6(1),e.Q6J("column",h.column)("filter",h.filter)}}function Vn(ie,Qe){}function Dn(ie,Qe){if(1&ie&&e.YNc(0,Vn,0,0,"ng-template",4),2&ie){const h=e.oxw(3);e.Q6J("ngTemplateOutlet",h.column.filterCellTemplateRef)("ngTemplateOutletContext",h.templateContext)}}function kn(ie,Qe){if(1&ie&&(e.ynx(0),e.YNc(1,Dn,1,2,null,0),e.BQk()),2&ie){const h=e.oxw(2);e.xp6(1),e.Q6J("ngIf",h.column.filterCellTemplateRef)}}function ui(ie,Qe){if(1&ie&&(e.ynx(0)(1,1),e.YNc(2,Sn,2,2,"ng-container",2),e.YNc(3,kn,2,1,"ng-container",2),e.BQk()()),2&ie){const h=e.oxw();e.xp6(1),e.Q6J("ngSwitch",h.hasTemplate),e.xp6(1),e.Q6J("ngSwitchCase",!1),e.xp6(1),e.Q6J("ngSwitchCase",!0)}}const Ot=["kendoGridFilterRow",""];function en(ie,Qe){1&ie&&e._UZ(0,"td",3),2&ie&&e.ekj("k-group-cell",!0)}function cn(ie,Qe){1&ie&&e._UZ(0,"td",3),2&ie&&e.ekj("k-hierarchy-cell",!0)}function Ht(ie,Qe){if(1&ie&&e._UZ(0,"td",4),2&ie){const h=Qe.$implicit,oe=Qe.index,kt=e.oxw();e.ekj("k-grid-header-sticky",h.sticky),e.Q6J("ngStyle",kt.addStickyStyles(h))("ngClass",h.filterClass)("column",h)("filter",kt.filter)("logicalRowIndex",kt.logicalRowIndex)("logicalColIndex",kt.getLogicalColIndex(oe)),e.uIk("aria-label",kt.filterLabel(h))}}const ft=["kendoGridHeader",""];function Nt(ie,Qe){1&ie&&e._UZ(0,"th",6)}function an(ie,Qe){1&ie&&e._UZ(0,"th",7)}function $e(ie,Qe){}function Je(ie,Qe){if(1&ie&&(e.ynx(0),e.TgZ(1,"span",18),e._uU(2),e.qZA(),e.BQk()),2&ie){const h=e.oxw(3).$implicit;e.xp6(2),e.Oqu(h.displayTitle)}}function Ve(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-filter-menu",19),2&ie){const h=e.oxw(3).$implicit,oe=e.oxw(2);e.Q6J("column",oe.getColumnComponent(h))("filter",oe.filter)("tabIndex",oe.tabIndex)}}function Ge(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-column-menu",20),2&ie){const h=e.oxw(3).$implicit,oe=e.oxw(2);e.Q6J("standalone",!1)("settings",oe.columnMenuSettings)("column",h)("columnMenuTemplate",oe.columnMenuTemplate)("sort",oe.sort)("filter",oe.filter)("sortable",oe.sortable)("tabIndex",oe.tabIndex)}}const Be=function(ie,Qe,h,oe){return{templateRef:ie,columnIndex:Qe,column:h,$implicit:oe}};function At(ie,Qe){if(1&ie&&(e.ynx(0),e.TgZ(1,"span",13)(2,"span",14),e.YNc(3,$e,0,0,"ng-template",15),e.YNc(4,Je,3,1,"ng-container",11),e.qZA(),e.YNc(5,Ve,1,3,"kendo-grid-filter-menu",16),e.YNc(6,Ge,1,8,"kendo-grid-column-menu",17),e.qZA(),e.BQk()),2&ie){const h=e.oxw(2).$implicit,oe=e.oxw(2);e.xp6(3),e.Q6J("templateContext",e.l5B(4,Be,h.headerTemplateRef,h.leafIndex,h,h)),e.xp6(1),e.Q6J("ngIf",!h.headerTemplateRef),e.xp6(1),e.Q6J("ngIf",oe.showFilterMenu&&oe.isFilterable(oe.getColumnComponent(h))),e.xp6(1),e.Q6J("ngIf",oe.showColumnMenu(h))}}function Rt(ie,Qe){}function Pt(ie,Qe){if(1&ie&&(e.ynx(0),e.TgZ(1,"span",18),e._uU(2),e.qZA(),e.BQk()),2&ie){const h=e.oxw(3).$implicit;e.xp6(2),e.Oqu(h.displayTitle)}}function $t(ie,Qe){if(1&ie&&e._UZ(0,"kendo-icon-wrapper",26),2&ie){const h=e.oxw(3).$implicit,oe=e.oxw(2);e.MGl("name","sort-",oe.sortDescriptor(oe.getColumnComponent(h).field).dir,"-small"),e.Q6J("svgIcon","asc"===oe.sortDescriptor(oe.getColumnComponent(h).field).dir?oe.sortAscSmallIcon:oe.sortDescSmallIcon),e.uIk("aria-label",oe.sortableLabel)}}function Xn(ie,Qe){if(1&ie&&(e.TgZ(0,"span",27),e._uU(1),e.qZA()),2&ie){const h=e.oxw(3).$implicit,oe=e.oxw(2);e.xp6(1),e.Oqu(oe.sortOrder(oe.getColumnComponent(h).field))}}function Nn(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-filter-menu",19),2&ie){const h=e.oxw(3).$implicit,oe=e.oxw(2);e.Q6J("column",oe.getColumnComponent(h))("filter",oe.filter)("tabIndex",oe.tabIndex)}}function Ae(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-column-menu",20),2&ie){const h=e.oxw(3).$implicit,oe=e.oxw(2);e.Q6J("standalone",!1)("settings",oe.columnMenuSettings)("column",h)("columnMenuTemplate",oe.columnMenuTemplate)("sort",oe.sort)("filter",oe.filter)("sortable",oe.sortable)("tabIndex",oe.tabIndex)}}function He(ie,Qe){if(1&ie){const h=e.EpF();e.ynx(0),e.TgZ(1,"span",13)(2,"span",21,22),e.NdJ("click",function(kt){e.CHM(h);const ti=e.MAs(3),Zo=e.oxw(2).$implicit,hr=e.oxw(2);return e.KtG(hr.onSortClick(hr.getColumnComponent(Zo),kt,ti))}),e.YNc(4,Rt,0,0,"ng-template",15),e.YNc(5,Pt,3,1,"ng-container",11),e.TgZ(6,"span",23),e.YNc(7,$t,1,3,"kendo-icon-wrapper",24),e.qZA(),e.YNc(8,Xn,2,1,"span",25),e.qZA(),e.YNc(9,Nn,1,3,"kendo-grid-filter-menu",16),e.YNc(10,Ae,1,8,"kendo-grid-column-menu",17),e.qZA(),e.BQk()}if(2&ie){const h=e.oxw(2).$implicit,oe=e.oxw(2);e.xp6(4),e.Q6J("templateContext",e.l5B(6,Be,h.headerTemplateRef,h.leafIndex,h,h)),e.xp6(1),e.Q6J("ngIf",!h.headerTemplateRef),e.xp6(2),e.Q6J("ngIf",oe.sortDescriptor(oe.getColumnComponent(h).field).dir),e.xp6(1),e.Q6J("ngIf",oe.showSortNumbering(oe.getColumnComponent(h))),e.xp6(1),e.Q6J("ngIf",oe.showFilterMenu&&oe.isFilterable(oe.getColumnComponent(h))),e.xp6(1),e.Q6J("ngIf",oe.showColumnMenu(h))}}function Kt(ie,Qe){if(1&ie&&(e.ynx(0),e._UZ(1,"input",28),e.BQk()),2&ie){const h=e.oxw(4);e.xp6(1),e.uIk("id",h.selectAllCheckboxId())("aria-label",h.selectAllCheckboxLabel)}}function On(ie,Qe){if(1&ie&&e._UZ(0,"span",29),2&ie){const h=e.oxw(2).$implicit,oe=e.oxw(2);e.Q6J("column",h)("columns",oe.columns)}}const Fi=function(ie,Qe,h,oe){return{field:ie,type:"column",column:Qe,hint:h,lastColumn:oe}};function Ci(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"th",10),e.NdJ("keydown",function(kt){e.CHM(h);const ti=e.oxw().$implicit,Zo=e.oxw(2);return e.KtG(Zo.onHeaderKeydown(Zo.getColumnComponent(ti),kt))}),e.YNc(1,At,7,9,"ng-container",11),e.YNc(2,He,11,11,"ng-container",11),e.YNc(3,Kt,2,2,"ng-container",11),e.YNc(4,On,1,2,"span",12),e.qZA()}if(2&ie){const h=e.oxw(),oe=h.$implicit,kt=h.index,ti=h.last,Zo=e.oxw().index,hr=e.oxw();e.ekj("k-sorted",!!hr.sortState(hr.getColumnComponent(oe)))("k-filterable",hr.showFilterMenu&&hr.isFilterable(hr.getColumnComponent(oe))||hr.showColumnMenu(oe))("k-first",hr.isFirstOnRow(hr.getColumnComponent(oe),kt))("k-grid-header-sticky",oe.sticky),e.Q6J("logicalRowIndex",Zo)("logicalColIndex",hr.logicalColumnIndex(oe))("headerLabelText",oe.title||hr.getColumnComponent(oe).field)("colSpan",oe.colspan)("rowSpan",oe.rowspan(hr.totalColumnLevels))("enableDrag",hr.shouldActivate(oe))("context",e.l5B(27,Fi,hr.getColumnComponent(oe).field,oe,oe.title||hr.getColumnComponent(oe).field,ti&&0===kt))("ngClass",oe.headerClass)("ngStyle",oe.sticky?hr.addStickyStyles(oe):oe.headerStyle),e.uIk("aria-sort",hr.sortState(hr.getColumnComponent(oe)))("rowspan",oe.rowspan(hr.totalColumnLevels))("colspan",oe.colspan)("aria-haspopup",hr.isNavigable&&(hr.showFilterMenu||hr.showColumnMenu(oe))?"dialog":void 0)("aria-expanded",(!hr.isNavigable||!hr.showFilterMenu&&!hr.showColumnMenu(oe))&&void 0)("aria-keyshortcuts",hr.isNavigable?"Alt + ArrowDown":void 0),e.xp6(1),e.Q6J("ngIf",!hr.isSortable(hr.getColumnComponent(oe))),e.xp6(1),e.Q6J("ngIf",hr.isSortable(hr.getColumnComponent(oe))),e.xp6(1),e.Q6J("ngIf",hr.isCheckboxColumn(oe)&&!oe.headerTemplateRef&&oe.showSelectAll),e.xp6(1),e.Q6J("ngIf",hr.resizable)}}function xi(ie,Qe){}function Wn(ie,Qe){if(1&ie&&(e.ynx(0),e.TgZ(1,"span",18),e._uU(2),e.qZA(),e.BQk()),2&ie){const h=e.oxw(2).$implicit;e.xp6(2),e.Oqu(h.displayTitle)}}function Vt(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-column-menu",32),2&ie){const h=e.oxw(2).$implicit,oe=e.oxw(2);e.Q6J("standalone",!1)("settings",oe.columnMenuSettings)("column",h)("columnMenuTemplate",oe.columnMenuTemplate)}}function qt(ie,Qe){if(1&ie&&e._UZ(0,"span",29),2&ie){const h=e.oxw(2).$implicit,oe=e.oxw(2);e.Q6J("column",h)("columns",oe.columns)}}const bn=function(ie,Qe,h){return{type:"columnGroup",column:ie,hint:Qe,lastColumn:h}};function ii(ie,Qe){if(1&ie&&(e.TgZ(0,"th",30)(1,"span",13)(2,"span",14),e.YNc(3,xi,0,0,"ng-template",15),e.YNc(4,Wn,3,1,"ng-container",11),e.qZA(),e.YNc(5,Vt,1,4,"kendo-grid-column-menu",31),e.qZA(),e.YNc(6,qt,1,2,"span",12),e.qZA()),2&ie){const h=e.oxw(),oe=h.$implicit,kt=h.index,ti=h.last,Zo=e.oxw().index,hr=e.oxw();e.ekj("k-first",hr.isFirstOnRow(hr.getColumnComponent(oe),kt))("k-filterable",hr.showColumnMenu(oe))("k-grid-content-sticky",oe.sticky),e.Q6J("logicalRowIndex",Zo)("logicalColIndex",hr.logicalColumnIndex(oe))("rowSpan",oe.rowspan(hr.totalColumnLevels))("colSpan",oe.colspan)("headerLabelText",oe.title||hr.getColumnComponent(oe).field)("enableDrag",hr.shouldActivate(oe))("context",e.kEZ(21,bn,oe,oe.title,ti&&0===kt))("ngClass",oe.headerClass)("ngStyle",oe.headerStyle),e.uIk("rowspan",oe.rowspan(hr.totalColumnLevels))("colspan",oe.colspan),e.xp6(3),e.Q6J("templateContext",e.l5B(25,Be,oe.headerTemplateRef,hr.lockedColumnsCount+kt,oe,oe)),e.xp6(1),e.Q6J("ngIf",!oe.headerTemplateRef),e.xp6(1),e.Q6J("ngIf",hr.showColumnMenu(oe)),e.xp6(1),e.Q6J("ngIf",hr.resizable)}}function Vi(ie,Qe){if(1&ie&&(e.ynx(0),e.YNc(1,Ci,5,32,"th",8),e.YNc(2,ii,7,30,"th",9),e.BQk()),2&ie){const h=Qe.$implicit,oe=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!oe.isColumnGroupComponent(h)),e.xp6(1),e.Q6J("ngIf",oe.isColumnGroupComponent(h))}}function Jn(ie,Qe){if(1&ie&&(e.TgZ(0,"tr",2),e.YNc(1,Nt,1,0,"th",3),e.YNc(2,an,1,0,"th",4),e.YNc(3,Vi,3,2,"ng-container",5),e.qZA()),2&ie){const h=Qe.index,oe=e.oxw();e.Q6J("logicalRowIndex",h)("logicalSlaveRow",oe.lockedColumnsCount>0)("logicalCellsCount",oe.columns.length)("logicalSlaveCellsCount",oe.unlockedColumnsCount)("totalColumns",oe.totalColumns),e.xp6(1),e.Q6J("ngForOf",oe.groups),e.xp6(1),e.Q6J("ngIf",null==oe.detailTemplate?null:oe.detailTemplate.templateRef),e.xp6(1),e.Q6J("ngForOf",oe.columnsForLevel(h))("ngForTrackBy",oe.trackByIndex)}}function zt(ie,Qe){if(1&ie&&e._UZ(0,"tr",33),2&ie){const h=e.oxw();e.Q6J("columns",h.leafColumns)("filter",h.filter)("groups",h.groups)("detailTemplate",h.detailTemplate)("lockedColumnsCount",h.lockedColumnsCount)("logicalRowIndex",h.totalColumnLevels+1)("logicalSlaveRow",h.lockedColumnsCount>0)("logicalCellsCount",h.columns.length)("logicalSlaveCellsCount",h.unlockedColumnsCount)("totalColumns",h.totalColumns)}}const mn=["kendoGridCell",""];function Qn(ie,Qe){}function ci(ie,Qe){if(1&ie&&e.YNc(0,Qn,0,0,"ng-template",5),2&ie){const h=e.oxw(3);e.Q6J("ngTemplateOutlet",h.column.templateRef)("ngTemplateOutletContext",h.templateContext)}}function Oi(ie,Qe){if(1&ie&&(e.ynx(0),e._uU(1),e.ALo(2,"valueOf"),e.BQk()),2&ie){const h=Qe.$implicit,oe=e.oxw(4);e.xp6(1),e.hij(" ",e.Dn7(2,1,oe.dataItem,h.field,h.format)," ")}}function Ai(ie,Qe){if(1&ie&&(e.ynx(0),e.YNc(1,Oi,3,5,"ng-container",6),e.BQk()),2&ie){const h=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",h.childColumns)}}function Pn(ie,Qe){if(1&ie&&(e.ynx(0),e._uU(1),e.ALo(2,"valueOf"),e.BQk()),2&ie){const h=e.oxw(3);e.xp6(1),e.Oqu(e.Dn7(2,1,h.dataItem,h.column.field,h.column.format))}}function qn(ie,Qe){if(1&ie&&(e.ynx(0),e._UZ(1,"input",7),e.BQk()),2&ie){const h=e.oxw(3);e.xp6(1),e.Q6J("kendoGridSelectionCheckbox",h.rowIndex),e.uIk("id",h.selectionCheckboxId)("aria-label",h.selectionCheckboxLabel)}}function Ni(ie,Qe){if(1&ie&&(e.ynx(0),e._UZ(1,"kendo-icon-wrapper",8),e.BQk()),2&ie){const h=e.oxw(3);e.xp6(1),e.Q6J("svgIcon",h.reorderIcon)}}function Ue(ie,Qe){if(1&ie&&(e.ynx(0),e.YNc(1,ci,1,2,null,4),e.YNc(2,Ai,2,1,"ng-container",4),e.YNc(3,Pn,3,5,"ng-container",4),e.YNc(4,qn,2,3,"ng-container",4),e.YNc(5,Ni,2,1,"ng-container",4),e.BQk()),2&ie){const h=e.oxw(2);e.xp6(1),e.Q6J("ngIf",h.column.templateRef),e.xp6(1),e.Q6J("ngIf",h.isSpanColumn),e.xp6(1),e.Q6J("ngIf",h.isBoundColumn),e.xp6(1),e.Q6J("ngIf",h.isCheckboxColumn&&!h.isNew),e.xp6(1),e.Q6J("ngIf",h.isRowReorderColumn&&!h.isNew)}}function Ye(ie,Qe){}const Me=function(ie){return{$implicit:ie}};function pe(ie,Qe){if(1&ie&&e.YNc(0,Ye,0,0,"ng-template",5),2&ie){const h=e.oxw(3);e.Q6J("ngTemplateOutlet",h.loadingTemplate)("ngTemplateOutletContext",e.VKq(2,Me,h.column))}}function lt(ie,Qe){1&ie&&e._UZ(0,"div",10)}function yt(ie,Qe){if(1&ie&&(e.YNc(0,pe,1,4,null,4),e.YNc(1,lt,1,0,"div",9)),2&ie){const h=e.oxw(2);e.Q6J("ngIf",h.loadingTemplate),e.xp6(1),e.Q6J("ngIf",!h.loadingTemplate)}}function on(ie,Qe){if(1&ie&&(e.ynx(0),e.YNc(1,Ue,6,5,"ng-container",2),e.YNc(2,yt,2,2,"ng-template",null,3,e.W1O),e.BQk()),2&ie){const h=e.MAs(3),oe=e.oxw();e.xp6(1),e.Q6J("ngIf",!oe.showLoading)("ngIfElse",h)}}function zi(ie,Qe){}function Kn(ie,Qe){if(1&ie&&e.YNc(0,zi,0,0,"ng-template",5),2&ie){const h=e.oxw(2);e.Q6J("ngTemplateOutlet",h.column.editTemplateRef)("ngTemplateOutletContext",h.editTemplateContext)}}function ho(ie,Qe){if(1&ie&&e._UZ(0,"kendo-numerictextbox",15),2&ie){const h=e.oxw(3);e.Q6J("format",h.format)("formControl",h.formGroup.get(h.column.field))}}function po(ie,Qe){if(1&ie&&e._UZ(0,"kendo-datepicker",15),2&ie){const h=e.oxw(3);e.Q6J("format",h.format)("formControl",h.formGroup.get(h.column.field))}}function $i(ie,Qe){if(1&ie&&e._UZ(0,"input",16),2&ie){const h=e.oxw(3);e.Q6J("formControl",h.formGroup.get(h.column.field))}}function ro(ie,Qe){if(1&ie&&e._UZ(0,"input",17),2&ie){const h=e.oxw(3);e.Q6J("formControl",h.formGroup.get(h.column.field))}}function wo(ie,Qe){if(1&ie&&(e.ynx(0,0),e.YNc(1,ho,1,2,"kendo-numerictextbox",12),e.YNc(2,po,1,2,"kendo-datepicker",12),e.YNc(3,$i,1,1,"input",13),e.YNc(4,ro,1,1,"input",14),e.BQk()),2&ie){const h=e.oxw(2);e.Q6J("ngSwitch",h.column.editor),e.xp6(1),e.Q6J("ngSwitchCase","numeric"),e.xp6(1),e.Q6J("ngSwitchCase","date"),e.xp6(1),e.Q6J("ngSwitchCase","boolean")}}function io(ie,Qe){if(1&ie&&(e.ynx(0),e.YNc(1,Kn,1,2,null,4),e.YNc(2,wo,5,4,"ng-container",11),e.BQk()),2&ie){const h=e.oxw();e.xp6(1),e.Q6J("ngIf",h.column.editTemplateRef),e.xp6(1),e.Q6J("ngIf",!h.column.editTemplateRef)}}const Wi=["kendoGridGroupHeader",""];function fo(ie,Qe){1&ie&&e._UZ(0,"td",3)}function cr(ie,Qe){if(1&ie&&(e.ynx(0),e.YNc(1,fo,1,0,"td",2),e.BQk()),2&ie){const h=e.oxw();e.xp6(1),e.Q6J("ngForOf",h.prefixGroupCell(h.item))}}function Fr(ie,Qe){if(1&ie&&(e.ynx(0),e._uU(1),e.ALo(2,"valueOf"),e.BQk()),2&ie){const h=e.oxw(3);e.xp6(1),e.AsE(" ",h.groupTitle(h.item),": ",e.Dn7(2,2,h.item.data,"value",h.formatForGroup(h.item))," ")}}function jr(ie,Qe){}const fs=function(ie,Qe,h,oe,kt,ti,Zo,hr){return{templateRef:ie,group:Qe,aggregates:h,value:oe,field:kt,index:ti,expanded:Zo,$implicit:hr}};function Ms(ie,Qe){if(1&ie){const h=e.EpF();e.ynx(0),e.TgZ(1,"a",6),e.NdJ("click",function(){e.CHM(h);const kt=e.oxw(2);return e.KtG(kt.toggleGroup(kt.item))}),e._UZ(2,"kendo-icon-wrapper",7),e.qZA(),e.YNc(3,Fr,3,6,"ng-container",0),e.YNc(4,jr,0,0,"ng-template",8),e.BQk()}if(2&ie){const h=e.oxw(2);e.xp6(1),e.uIk("title",h.groupButtonTitle)("aria-label",h.groupButtonTitle),e.xp6(1),e.Q6J("name",h.arrowIcon)("svgIcon",h.arrowSVGIcon),e.xp6(1),e.Q6J("ngIf",!h.groupHeaderTemplate(h.item)),e.xp6(1),e.Q6J("templateContext",e.qlk(6,fs,h.groupHeaderTemplate(h.item),h.item.data,null==h.item.data?null:h.item.data.aggregates,null==h.item.data?null:h.item.data.value,null==h.item.data?null:h.item.data.field,h.item.index,h.isExpanded,h.item.data))}}function Ca(ie,Qe){if(1&ie&&(e.TgZ(0,"td",4)(1,"p",5),e.YNc(2,Ms,5,15,"ng-container",0),e.qZA()()),2&ie){const h=e.oxw();e.Q6J("logicalRowIndex",h.logicalRowIndex)("logicalColIndex",0)("logicalSlaveCell",h.skipGroupDecoration)("groupItem",h.item)("colSpan",h.logicalColSpan()),e.uIk("colspan",h.groupSpan(h.item))("role",h.ariaRole())("aria-expanded",h.isExpanded),e.xp6(2),e.Q6J("ngIf",!h.skipGroupDecoration)}}function ks(ie,Qe){}const ts=function(ie,Qe,h,oe,kt,ti){return{group:ie,aggregates:Qe,value:h,field:oe,index:kt,$implicit:ti}};function na(ie,Qe){if(1&ie&&e.YNc(0,ks,0,0,"ng-template",11),2&ie){const h=e.oxw().$implicit,oe=e.oxw(2);e.Q6J("ngTemplateOutlet",h.groupHeaderColumnTemplateRef)("ngTemplateOutletContext",e.HTZ(2,ts,oe.item.data,null==oe.item.data?null:oe.item.data.aggregates,null==oe.item.data?null:oe.item.data.value,null==oe.item.data?null:oe.item.data.field,oe.item.index,oe.item.data))}}function Xs(ie,Qe){if(1&ie&&(e.TgZ(0,"td",10),e.YNc(1,na,1,9,null,0),e.qZA()),2&ie){const h=Qe.$implicit,oe=Qe.index,kt=e.oxw(2);e.Q6J("logicalRowIndex",kt.logicalRowIndex)("logicalColIndex",oe+1)("logicalSlaveCell",!1)("groupItem",kt.item)("colSpan",1),e.xp6(1),e.Q6J("ngIf",h.groupHeaderColumnTemplateRef)}}function _a(ie,Qe){if(1&ie&&(e.ynx(0),e.YNc(1,Xs,2,6,"td",9),e.BQk()),2&ie){const h=e.oxw();e.xp6(1),e.Q6J("ngForOf",h.groupHeaderColumns)}}const Ws=["kendoGridTableBody",""];function cs(ie,Qe){1&ie&&e._UZ(0,"td",8)}function Ps(ie,Qe){if(1&ie&&(e.ynx(0),e.YNc(1,cs,1,0,"td",7),e.BQk()),2&ie){const h=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",h.groups)}}function Qi(ie,Qe){if(1&ie&&e._UZ(0,"td",9),2&ie){const h=e.oxw(2);e.Q6J("logicalRowIndex",h.addRowLogicalIndex())("logicalColIndex",0)}}function vo(ie,Qe){if(1&ie&&e._UZ(0,"td",10),2&ie){const h=Qe.$implicit,oe=Qe.index,kt=e.oxw(2);e.Udp("left",h.sticky?"0":void 0),e.ekj("k-grid-content-sticky",h.sticky),e.Q6J("rowIndex",-1)("columnIndex",kt.lockedColumnsCount+oe)("isNew",!0)("column",h)("dataItem",kt.newDataItem)("ngClass",h.cssClass)("ngStyle",h.sticky?kt.addStickyColumnStyles(h):h.style)("logicalRowIndex",kt.addRowLogicalIndex())("logicalColIndex",kt.logicalColIndex(h))("colSpan",h.colspan),e.uIk("colspan",h.colspan)}}function pi(ie,Qe){if(1&ie&&(e.ynx(0),e.TgZ(1,"tr",4),e.YNc(2,Ps,2,1,"ng-container",0),e.YNc(3,Qi,1,2,"td",5),e.YNc(4,vo,1,15,"td",6),e.qZA(),e.BQk()),2&ie){const h=e.oxw();e.xp6(1),e.Q6J("logicalRowIndex",h.addRowLogicalIndex())("logicalSlaveRow",h.lockedColumnsCount>0)("logicalCellsCount",h.columns.length)("logicalSlaveCellsCount",h.unlockedColumnsCount())("totalColumns",h.totalColumns),e.xp6(1),e.Q6J("ngIf",!h.skipGroupDecoration),e.xp6(1),e.Q6J("ngIf",null==h.detailTemplate?null:h.detailTemplate.templateRef),e.xp6(1),e.Q6J("ngForOf",h.columns)("ngForTrackBy",h.trackByColumns)}}function to(ie,Qe){}const Ro=function(ie){return{templateRef:ie}};function Sr(ie,Qe){if(1&ie&&e.YNc(0,to,0,0,"ng-template",13),2&ie){const h=e.oxw(2);e.Q6J("templateContext",e.VKq(1,Ro,null==h.noRecordsTemplate?null:h.noRecordsTemplate.templateRef))}}function rs(ie,Qe){if(1&ie&&(e.ynx(0),e._uU(1),e.BQk()),2&ie){const h=e.oxw(2);e.xp6(1),e.hij(" ",h.noRecordsText," ")}}function Os(ie,Qe){if(1&ie&&(e.TgZ(0,"tr",11)(1,"td",12),e.YNc(2,Sr,1,3,null,0),e.YNc(3,rs,2,1,"ng-container",0),e.qZA()()),2&ie){const h=e.oxw();e.xp6(1),e.uIk("colspan",h.colSpan),e.xp6(1),e.Q6J("ngIf",null==h.noRecordsTemplate?null:h.noRecordsTemplate.templateRef),e.xp6(1),e.Q6J("ngIf",!(null!=h.noRecordsTemplate&&h.noRecordsTemplate.templateRef))}}function Ys(ie,Qe){if(1&ie&&e._UZ(0,"tr",18),2&ie){const h=e.oxw(),oe=h.$implicit,kt=h.index,ti=e.oxw();e.Q6J("columns",ti.columns)("groups",ti.groups)("item",oe)("hasDetails",!(null==ti.detailTemplate||!ti.detailTemplate.templateRef))("skipGroupDecoration",ti.skipGroupDecoration)("hasGroupHeaderColumn",ti.hasGroupHeaderColumn)("groupHeaderColumns",ti.groupHeaderColumns)("rowIndex",kt+1)("totalColumnsCount",ti.totalColumnsCount)("logicalRowIndex",ti.logicalRowIndex(kt))("logicalSlaveRow",ti.lockedColumnsCount>0)("totalColumns",ti.totalColumns)("logicalCellsCount",ti.columns.length)("logicalSlaveCellsCount",ti.groupHeaderSlaveCellsCount)}}function la(ie,Qe){1&ie&&e._UZ(0,"td",23)}function Da(ie,Qe){if(1&ie&&(e.ynx(0),e.YNc(1,la,1,0,"td",22),e.BQk()),2&ie){const h=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",h.groups)}}function Ka(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"a",26),e.NdJ("click",function(){e.CHM(h);const kt=e.oxw(3).$implicit,ti=e.oxw();return e.KtG(ti.toggleRow(kt.index,kt.data))}),e._UZ(1,"kendo-icon-wrapper",27),e.qZA()}if(2&ie){const h=e.oxw(3).$implicit,oe=e.oxw();e.uIk("title",oe.detailButtonTitle(h))("aria-label",oe.detailButtonTitle(h)),e.xp6(1),e.Q6J("name",oe.detailButtonIconName(h))("svgIcon",oe.detailButtonSvgIcon(h))}}function nl(ie,Qe){if(1&ie&&(e.TgZ(0,"td",24),e.YNc(1,Ka,2,4,"a",25),e.qZA()),2&ie){const h=e.oxw(2),oe=h.index,kt=h.$implicit,ti=e.oxw();e.Q6J("logicalRowIndex",ti.logicalRowIndex(oe))("logicalColIndex",0)("dataRowIndex",kt.index)("dataItem",kt.data)("detailExpandCell",!0),e.xp6(1),e.Q6J("ngIf",ti.detailTemplate.showIf(kt.data,kt.index))}}function il(ie,Qe){if(1&ie&&e._UZ(0,"td",28),2&ie){const h=Qe.$implicit,oe=Qe.index,kt=e.oxw(2),ti=kt.$implicit,Zo=kt.index,hr=e.oxw();e.ekj("k-grid-content-sticky",h.sticky)("k-touch-action-none",hr.isSelectable()&&hr.selectable.drag)("k-touch-action-auto",!(hr.isSelectable()&&hr.selectable.drag))("k-grid-edit-cell",hr.isEditingCell(ti.index,h))("k-selected",hr.isSelectable&&hr.cellSelectionService.isCellSelected(ti,h)),e.Q6J("rowIndex",ti.index)("columnIndex",hr.lockedColumnsCount+oe)("column",h)("dataItem",ti.data)("isLoading",hr.isLoading)("isVirtual",hr.isVirtual)("loadingTemplate",hr.cellLoadingTemplate)("logicalRowIndex",hr.logicalRowIndex(Zo))("logicalColIndex",hr.logicalColIndex(h))("dataRowIndex",ti.index)("dataItem",ti.data)("colIndex",oe)("colSpan",h.colspan)("ngClass",h.cssClass)("ngStyle",h.sticky?hr.addStickyColumnStyles(h):h.style),e.uIk("data-kendo-grid-column-index",hr.lockedColumnsCount+oe)("aria-selected",hr.lockedColumnsCount<1&&hr.isSelectable()?hr.isAriaSelected(ti,h):void 0)("colspan",h.colspan)}}const xl=function(ie,Qe){return{dataItem:ie,index:Qe}};function eo(ie,Qe){if(1&ie&&(e.TgZ(0,"tr",19),e.YNc(1,Da,2,1,"ng-container",0),e.YNc(2,nl,2,6,"td",20),e.YNc(3,il,1,28,"td",21),e.qZA()),2&ie){const h=e.oxw(),oe=h.$implicit,kt=h.index,ti=e.oxw();e.Tol(ti.isOdd(oe)?"k-alt k-table-alt-row":""),e.ekj("k-grid-row-sticky",!!ti.rowSticky&&ti.rowSticky(e.WLB(25,xl,oe.data,oe.index)))("k-master-row",!0)("k-grid-edit-row",ti.isEditingRow(oe.index))("k-selected",ti.isSelectable()&&ti.isRowSelected(oe)),e.Q6J("dataRowIndex",oe.index)("dataItem",oe.data)("logicalRowIndex",ti.logicalRowIndex(kt))("logicalSlaveRow",ti.lockedColumnsCount>0)("totalColumns",ti.totalColumns)("logicalCellsCount",ti.columns.length)("logicalSlaveCellsCount",ti.unlockedColumnsCount(oe))("ngClass",ti.rowClass(e.WLB(28,xl,oe.data,oe.index))),e.uIk("aria-selected",ti.lockedColumnsCount<1?ti.isSelectable()&&ti.isRowSelected(oe):void 0)("data-kendo-grid-item-index",oe.index),e.xp6(1),e.Q6J("ngIf",!ti.skipGroupDecoration),e.xp6(1),e.Q6J("ngIf",null==ti.detailTemplate?null:ti.detailTemplate.templateRef),e.xp6(1),e.Q6J("ngForOf",ti.columns)("ngForTrackBy",ti.trackByColumns)}}function To(ie,Qe){1&ie&&e._UZ(0,"td",34)}function Qo(ie,Qe){}const Dr=function(ie,Qe,h){return{dataItem:ie,rowIndex:Qe,$implicit:h}};function _s(ie,Qe){if(1&ie&&(e.TgZ(0,"tr",29),e.YNc(1,To,1,0,"td",30),e._UZ(2,"td",31),e.TgZ(3,"td",32),e.YNc(4,Qo,0,0,"ng-template",33),e.qZA()()),2&ie){const h=e.oxw(),oe=h.$implicit,kt=h.index,ti=e.oxw();e.ekj("k-alt",ti.isOdd(oe)),e.Q6J("dataRowIndex",oe.index)("dataItem",oe.data)("logicalRowIndex",ti.logicalRowIndex(kt)+1)("logicalSlaveRow",!1)("logicalCellsCount",1),e.xp6(1),e.Q6J("ngForOf",ti.groups),e.xp6(2),e.Q6J("logicalRowIndex",ti.logicalRowIndex(kt)+1)("logicalColIndex",0)("dataRowIndex",oe.index)("dataItem",oe.data)("colIndex",0)("colSpan",ti.allColumnsSpan+1),e.uIk("colspan",ti.columnsSpan),e.xp6(1),e.Q6J("ngTemplateOutlet",ti.detailTemplate.templateRef)("ngTemplateOutletContext",e.kEZ(17,Dr,oe.data,oe.index,oe.data))}}function ia(ie,Qe){1&ie&&e._UZ(0,"td",38)}function Ia(ie,Qe){if(1&ie&&(e.ynx(0),e.YNc(1,ia,1,0,"td",37),e.BQk()),2&ie){const h=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",h.groups)}}function ar(ie,Qe){if(1&ie&&e._UZ(0,"td",9),2&ie){const h=e.oxw(2).index,oe=e.oxw();e.Q6J("logicalRowIndex",oe.logicalRowIndex(h))("logicalColIndex",0)}}function wa(ie,Qe){}const _l=function(ie,Qe,h,oe,kt,ti){return{templateRef:ie,group:Qe,field:h,column:oe,aggregates:kt,$implicit:ti}};function Ya(ie,Qe){if(1&ie&&(e.TgZ(0,"td",39),e.YNc(1,wa,0,0,"ng-template",13),e.qZA()),2&ie){const h=Qe.$implicit,oe=e.oxw(2),kt=oe.index,ti=oe.$implicit,Zo=e.oxw();let hr;e.Q6J("logicalRowIndex",Zo.logicalRowIndex(kt))("logicalColIndex",Zo.logicalColIndex(h)),e.uIk("data-skip",Zo.skipGroupDecoration),e.xp6(1),e.Q6J("templateContext",e.HTZ(4,_l,h.groupFooterTemplateRef,ti.data,h.field,h,null==(hr=ti.data)?null:hr.aggregates,null==(hr=ti.data)?null:hr.aggregates))}}function pa(ie,Qe){if(1&ie&&(e.TgZ(0,"tr",35),e.YNc(1,Ia,2,1,"ng-container",0),e.YNc(2,ar,1,2,"td",5),e.YNc(3,Ya,2,11,"td",36),e.qZA()),2&ie){const h=e.oxw(),oe=h.index,kt=h.$implicit,ti=e.oxw();e.Q6J("logicalRowIndex",ti.logicalRowIndex(oe))("logicalSlaveRow",ti.lockedColumnsCount>0)("totalColumns",ti.totalColumns)("logicalCellsCount",ti.columns.length)("logicalSlaveCellsCount",ti.unlockedColumnsCount(kt)),e.xp6(1),e.Q6J("ngIf",!ti.skipGroupDecoration),e.xp6(1),e.Q6J("ngIf",null==ti.detailTemplate?null:ti.detailTemplate.templateRef),e.xp6(1),e.Q6J("ngForOf",ti.footerColumns)("ngForTrackBy",ti.trackByColumns)}}function rl(ie,Qe){if(1&ie&&(e.ynx(0),e.YNc(1,Ys,1,14,"tr",14),e.YNc(2,eo,4,31,"tr",15),e.YNc(3,_s,5,21,"tr",16),e.YNc(4,pa,4,9,"tr",17),e.BQk()),2&ie){const h=Qe.$implicit,oe=e.oxw();e.xp6(1),e.Q6J("ngIf",oe.isGroup(h)&&oe.isParentGroupExpanded(h)&&oe.showGroupHeader(h)),e.xp6(1),e.Q6J("ngIf",oe.isDataItem(h)&&(!h.group||oe.isDataItemInExpandedGroup(h))),e.xp6(1),e.Q6J("ngIf",oe.isDataItem(h)&&(!h.group||oe.isDataItemInExpandedGroup(h))&&(null==oe.detailTemplate?null:oe.detailTemplate.templateRef)&&oe.detailTemplate.showIf(h.data,h.index)&&oe.isExpanded(h)),e.xp6(1),e.Q6J("ngIf",oe.isFooter(h)&&h.group&&(oe.isFooterItemInExpandedGroup(h)||oe.showGroupFooters&&oe.isParentGroupExpanded(h.group))&&!h.data.hideFooter)}}function Nl(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"kendo-resize-sensor",40),e.NdJ("resize",function(){e.CHM(h);const kt=e.oxw();return e.KtG(kt.resizeHandler())}),e.qZA()}}const nd=["container"],Ct=["lockedContainer"],rn=["lockedTable"],We=["table"],Ft=function(ie,Qe,h,oe){return{keydown:ie,scroll:Qe,mousewheel:h,DOMMouseScroll:oe}};function ct(ie,Qe){if(1&ie&&(e.TgZ(0,"div",11,12)(2,"div",3)(3,"table",13,14),e._UZ(5,"colgroup",6)(6,"tbody",15),e.qZA(),e._UZ(7,"kendo-resize-sensor"),e.qZA(),e.TgZ(8,"div",9),e._UZ(9,"div"),e.qZA()()),2&ie){const h=e.oxw();e.Udp("width",h.lockedWidth,"px"),e.Q6J("kendoEventsOutsideAngular",e.l5B(31,Ft,h.lockedKeydown,h.lockedScroll,h.lockedMousewheel,h.lockedMousewheel))("scope",h),e.xp6(3),e.Udp("width",h.lockedWidth,"px"),e.Q6J("locked",!0)("size",h.size),e.xp6(2),e.Q6J("groups",h.groups)("columns",h.lockedLeafColumns)("detailTemplate",h.detailTemplate)("sort",h.sort),e.xp6(1),e.Q6J("groups",h.groups)("isLocked",!0)("data",h.data)("noRecordsText","")("columns",h.lockedLeafColumns)("totalColumnsCount",h.leafColumns.length)("totalColumns",h.columns)("detailTemplate",h.detailTemplate)("showGroupFooters",h.showFooter)("skip",h.skip)("selectable",h.selectable)("trackBy",h.trackBy)("filterable",h.filterable)("rowClass",h.rowClass)("isLoading",h.loading)("isVirtual",h.isVirtual)("cellLoadingTemplate",h.cellLoadingTemplate),e.xp6(3),e.Udp("height",h.totalHeight,"px")}}function Qt(ie,Qe){1&ie&&e._UZ(0,"kendo-resize-sensor")}function gi(ie,Qe){1&ie&&e._UZ(0,"kendo-resize-sensor")}function Do(ie,Qe){if(1&ie&&(e.TgZ(0,"div",16),e._UZ(1,"div"),e.qZA()),2&ie){const h=e.oxw();e.xp6(1),e.Udp("width",h.totalWidth,"px")}}const Po=function(){return[]},Or=["kendoGridFooter",""];function hs(ie,Qe){1&ie&&e._UZ(0,"td",4)}function Zs(ie,Qe){1&ie&&e._UZ(0,"td",5)}function ca(ie,Qe){}function za(ie,Qe){if(1&ie&&(e.TgZ(0,"td",6),e.YNc(1,ca,0,0,"ng-template",7),e.qZA()),2&ie){const h=Qe.$implicit,oe=Qe.index,kt=e.oxw();e.ekj("k-grid-footer-sticky",h.sticky),e.Q6J("logicalRowIndex",kt.logicalRowIndex)("logicalColIndex",kt.logicalColumnIndex(h))("ngClass",h.footerClass)("ngStyle",h.sticky?kt.addStickyStyles(h):h.footerStyle),e.xp6(1),e.Q6J("templateContext",e.l5B(7,Be,h.footerTemplateRef,kt.lockedColumnsCount+oe,h,h))}}const cl=["kendoGridLoading",""];function yc(ie,Qe){if(1&ie&&(e.ynx(0),e.TgZ(1,"span",1),e._uU(2),e.qZA(),e._UZ(3,"div",2)(4,"div",3),e.BQk()),2&ie){const h=e.oxw();e.xp6(2),e.Oqu(h.loadingText)}}function bc(ie,Qe){}function ec(ie,Qe){if(1&ie&&e.YNc(0,bc,0,0,"ng-template",4),2&ie){const h=e.oxw();e.Q6J("ngTemplateOutlet",null==h.loadingTemplate?null:h.loadingTemplate.templateRef)}}function Wl(ie,Qe){}const va=function(ie){return{aggregates:ie}};function Hc(ie,Qe){if(1&ie&&e.YNc(0,Wl,0,0,"ng-template",1),2&ie){const h=e.oxw();e.Q6J("ngTemplateOutlet",null==h.statusBarTemplate?null:h.statusBarTemplate.templateRef)("ngTemplateOutletContext",e.VKq(2,va,h.aggregates))}}const Vc=["lockedHeader"],Mu=["header"],Tl=["ariaRoot"],cc=["footer"];function Id(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-toolbar",14),2&ie){const h=e.oxw();e.Q6J("size",h.size)("navigable",h.navigation.toolbarEnabled),e.uIk("aria-label",h.messageFor("topToolbarLabel"))("aria-controls",h.ariaRootId)}}function vu(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"kendo-pager",15),e.NdJ("pageChange",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.notifyPageChange("pager",kt))}),e.qZA()}if(2&ie){const h=e.oxw();e.Q6J("tabindex",h.navigation.pagerEnabled?"0":"-1")("template",h.pagerTemplate)("pageSize",h.pageSize)("total",h.view.total)("skip",h.skip)("size",h.size)("options",h.pageable),e.uIk("role",h.navigation.pagerEnabled?"application":void 0)}}function th(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"kendo-grid-group-panel",16),e.NdJ("change",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.groupChange.emit(kt))}),e.qZA()}if(2&ie){const h=e.oxw();e.Q6J("navigable",h.navigation.toolbarEnabled)("text",h.groupableEmptyText)("groups",h.group),e.uIk("aria-label",h.messageFor("groupPanelLabel"))("aria-controls",h.ariaRootId)}}function Uh(ie,Qe){if(1&ie&&(e.TgZ(0,"div",28,29)(2,"table",30),e._UZ(3,"colgroup",25)(4,"thead",31),e.qZA()()),2&ie){const h=e.oxw(3);e.Udp("width",h.lockedWidth,"px"),e.xp6(2),e.Udp("width",h.lockedWidth,"px"),e.Q6J("locked",!0)("size",h.size),e.xp6(1),e.Q6J("columns",h.lockedLeafColumns)("groups",h.group)("detailTemplate",h.detailTemplate),e.xp6(1),e.Q6J("resizable",h.resizable)("scrollable",!0)("columns",h.lockedColumns)("totalColumnLevels",h.totalColumnLevels)("sort",h.sort)("groups",h.group)("filter",h.filter)("filterable",h.filterable)("groupable",h.showGroupPanel)("reorderable",h.reorderable)("sortable",h.sortable)("columnMenu",h.columnMenuOptions)("columnMenuTemplate",h.columnMenuTemplate)("totalColumnsCount",h.leafColumns.length)("totalColumns",h.columnsContainer)("detailTemplate",h.detailTemplate)("tabIndex",h.navigation.tableEnabled?"-1":"0")}}function Jc(ie,Qe){if(1&ie&&(e.TgZ(0,"div",32),e._UZ(1,"div"),e.qZA()),2&ie){const h=e.oxw(3);e.xp6(1),e.Udp("width",h.columnsContainer.unlockedWidth,"px")}}function nh(ie,Qe){if(1&ie&&(e.TgZ(0,"div",20),e.YNc(1,Uh,5,26,"div",21),e.TgZ(2,"div",22,23)(4,"table",24),e._UZ(5,"colgroup",25)(6,"thead",26),e.qZA(),e.YNc(7,Jc,2,2,"div",27),e.qZA()()),2&ie){const h=e.oxw(2);e.Udp("padding",h.headerPadding),e.xp6(1),e.Q6J("ngIf",h.isLocked),e.xp6(1),e.Q6J("kendoGridResizableContainer",h.lockedLeafColumns.length>0)("lockedWidth",h.lockedWidth+h.scrollbarWidth+2),e.xp6(2),e.Udp("width",h.nonLockedWidth,"px"),e.Q6J("virtualColumns",h.virtualColumns)("size",h.size),e.xp6(1),e.Q6J("columns",h.headerLeafColumns)("groups",h.isLocked?e.DdM(31,Po):h.group)("detailTemplate",h.detailTemplate),e.xp6(1),e.Q6J("resizable",h.resizable)("scrollable",!0)("columns",h.headerColumns)("totalColumnLevels",h.totalColumnLevels)("sort",h.sort)("filter",h.filter)("filterable",h.filterable)("groupable",h.showGroupPanel)("reorderable",h.reorderable)("groups",h.isLocked?e.DdM(32,Po):h.group)("sortable",h.sortable)("columnMenu",h.columnMenuOptions)("columnMenuTemplate",h.columnMenuTemplate)("lockedColumnsCount",h.lockedLeafColumns.length)("totalColumnsCount",h.leafColumns.length)("totalColumns",h.columnsContainer)("detailTemplate",h.detailTemplate)("tabIndex",h.navigation.tableEnabled?"-1":"0"),e.xp6(1),e.Q6J("ngIf",h.virtualColumns)}}function cd(ie,Qe){if(1&ie&&(e.TgZ(0,"div",39)(1,"table",40),e._UZ(2,"colgroup",25)(3,"tfoot",41),e.qZA()()),2&ie){const h=e.oxw(3);e.Udp("width",h.lockedWidth,"px"),e.xp6(1),e.Udp("width",h.lockedWidth,"px"),e.Q6J("locked",!0)("size",h.size),e.xp6(1),e.Q6J("columns",h.lockedLeafColumns)("groups",h.group)("detailTemplate",h.detailTemplate),e.xp6(1),e.Q6J("scrollable",!0)("groups",h.group)("columns",h.lockedLeafColumns)("detailTemplate",h.detailTemplate)("logicalRowIndex",h.ariaRowCount)("totalColumns",h.columnsContainer)}}function Cd(ie,Qe){if(1&ie&&(e.TgZ(0,"div",33),e.YNc(1,cd,4,15,"div",34),e.TgZ(2,"div",35,36)(4,"table",37),e._UZ(5,"colgroup",25)(6,"tfoot",38),e.qZA()()()),2&ie){const h=e.oxw(2);e.Udp("padding",h.headerPadding),e.xp6(1),e.Q6J("ngIf",h.lockedLeafColumns.length),e.xp6(1),e.Q6J("kendoGridResizableContainer",h.lockedLeafColumns.length>0)("lockedWidth",h.lockedWidth+h.scrollbarWidth+3),e.xp6(2),e.Udp("width",h.nonLockedWidth,"px"),e.Q6J("size",h.size),e.xp6(1),e.Q6J("columns",h.nonLockedLeafColumns)("groups",h.isLocked?e.DdM(18,Po):h.group)("detailTemplate",h.detailTemplate),e.xp6(1),e.Q6J("logicalRowIndex",h.ariaRowCount)("scrollable",!0)("groups",h.isLocked?e.DdM(19,Po):h.group)("columns",h.nonLockedLeafColumns)("lockedColumnsCount",h.lockedLeafColumns.length)("detailTemplate",h.detailTemplate)("totalColumns",h.columnsContainer)}}const yu=function(ie){return{hintTemplate:ie}};function bu(ie,Qe){if(1&ie){const h=e.EpF();e.ynx(0),e.YNc(1,nh,8,33,"div",17),e.TgZ(2,"kendo-grid-list",18),e.NdJ("onPress",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.handleReorderEvents(kt,"press"))})("onDragStart",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.handleReorderEvents(kt,"dragStart"))})("onDrag",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.handleReorderEvents(kt,"drag"))})("onDragEnter",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.handleReorderEvents(kt,"dragEnter"))})("onDragLeave",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.handleReorderEvents(kt,"dragLeave"))})("onDragEnd",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.handleReorderEvents(kt,"dragEnd"))})("onDrop",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.handleReorderEvents(kt,"drop"))})("pageChange",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.notifyPageChange("list",kt))})("scrollBottom",function(){e.CHM(h);const kt=e.oxw();return e.KtG(kt.notifyScrollBottom())})("contentScroll",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.contentScroll.emit(kt))}),e.qZA(),e.YNc(3,Cd,7,20,"div",19),e.BQk()}if(2&ie){const h=e.oxw(),oe=e.MAs(14);e.xp6(1),e.Q6J("ngIf",!h.hideHeader),e.xp6(1),e.Q6J("dragDisabled",!h.rowReorderable)("dropDisabled",!h.rowReorderable)("dragTargetFilter",h.getDefaultSelectors("dragTarget"))("dropTargetFilter",h.getDefaultSelectors("dropTarget"))("dragHandle",h.getDefaultSelectors("handle"))("hint",e.VKq(33,yu,oe))("dragData",h.gridData)("data",h.view)("rowHeight",h.rowHeight)("detailRowHeight",h.detailRowHeight)("total",h.totalCount)("take",h.pageSize)("groups",h.group)("groupable",h.groupable)("skip",h.skip)("trackBy",h.trackBy)("columns",h.columnsContainer)("selectable",h.selectable)("filterable",h.filterable)("detailTemplate",h.detailTemplate)("noRecordsTemplate",h.noRecordsTemplate)("size",h.size)("rowClass",h.rowClass)("rowSticky",h.rowSticky)("loading",h.loading)("isVirtual",h.isVirtual)("cellLoadingTemplate",null==h.cellLoadingTemplate?null:h.cellLoadingTemplate.templateRef)("loadingTemplate",null==h.loadingTemplate?null:h.loadingTemplate.templateRef)("virtualColumns",h.virtualColumns)("enableDrag",h.marqueeSelection)("sort",h.sort),e.xp6(1),e.Q6J("ngIf",h.showFooter)}}function nu(ie,Qe){if(1&ie&&e._UZ(0,"thead",46),2&ie){const h=e.oxw(2);e.Q6J("resizable",h.resizable)("scrollable",!1)("columns",h.visibleColumns)("totalColumnLevels",h.totalColumnLevels)("totalColumns",h.columnsContainer)("groups",h.group)("groupable",h.showGroupPanel)("reorderable",h.reorderable)("sort",h.sort)("sortable",h.sortable)("filter",h.filter)("filterable",h.filterable)("columnMenu",h.columnMenuOptions)("columnMenuTemplate",h.columnMenuTemplate)("detailTemplate",h.detailTemplate)("tabIndex",h.navigation.tableEnabled?"-1":"0")}}function Zu(ie,Qe){if(1&ie&&e._UZ(0,"tfoot",47),2&ie){const h=e.oxw(2);e.Q6J("scrollable",!1)("logicalRowIndex",h.ariaRowCount)("groups",h.group)("columns",h.leafColumns)("detailTemplate",h.detailTemplate)("totalColumns",h.columnsContainer)}}function mc(ie,Qe){if(1&ie&&(e.ynx(0),e.TgZ(1,"table",42),e._UZ(2,"colgroup",25),e.YNc(3,nu,1,16,"thead",43),e._UZ(4,"tbody",44),e.YNc(5,Zu,1,6,"tfoot",45),e.qZA(),e.BQk()),2&ie){const h=e.oxw();e.xp6(1),e.Udp("table-layout",h.resizable?"fixed":null),e.Q6J("size",h.size),e.xp6(1),e.Q6J("columns",h.leafColumns)("groups",h.group)("detailTemplate",h.detailTemplate),e.xp6(1),e.Q6J("ngIf",!h.hideHeader),e.xp6(1),e.Q6J("isLoading",h.loading)("groups",h.group)("data",h.view)("skip",h.skip)("columns",h.leafColumns)("selectable",h.selectable)("filterable",h.filterable)("noRecordsTemplate",h.noRecordsTemplate)("detailTemplate",h.detailTemplate)("showGroupFooters",h.showGroupFooters)("trackBy",h.trackBy)("rowClass",h.rowClass)("enableDrag",h.marqueeSelection),e.xp6(1),e.Q6J("ngIf",h.showFooter)}}function xd(ie,Qe){if(1&ie&&e._UZ(0,"div",48),2&ie){const h=e.oxw();e.Q6J("loadingTemplate",h.loadingTemplate)}}function fu(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-status-bar",49),2&ie){const h=e.oxw();e.Q6J("statusBarTemplate",h.statusBarTemplate)}}function Fl(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"kendo-pager",50),e.NdJ("pageChange",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.notifyPageChange("pager",kt))}),e.qZA()}if(2&ie){const h=e.oxw();e.Q6J("tabindex",h.navigation.pagerEnabled?"0":"-1")("template",h.pagerTemplate)("pageSize",h.pageSize)("total",h.view.total)("skip",h.skip)("size",h.size)("options",h.pageable),e.uIk("role",h.navigation.pagerEnabled?"application":void 0)}}function Jd(ie,Qe){if(1&ie&&e._UZ(0,"kendo-grid-toolbar",51),2&ie){const h=e.oxw();e.Q6J("size",h.size)("navigable",h.navigation.toolbarEnabled),e.uIk("aria-label",h.messageFor("bottomToolbarLabel"))("aria-controls",h.ariaRootId)}}function Jl(ie,Qe){if(1&ie&&(e._UZ(0,"kendo-icon-wrapper",52),e._uU(1)),2&ie){const h=e.oxw();e.Q6J("name",h.getHintSettings("hintIcon"))("svgIcon",h.getHintSettings("hintSVGIcon")),e.xp6(1),e.hij(" ",h.hintText," ")}}function gd(ie,Qe){1&ie&&e._UZ(0,"div",53)}const dd=["columnList"];function gc(ie,Qe){if(1&ie){const h=e.EpF();e.TgZ(0,"span",3),e._uU(1),e.qZA(),e.TgZ(2,"kendo-grid-columnlist",4,5),e.NdJ("apply",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.onApply(kt))})("columnChange",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.onChange(kt))})("keydown.shift.tab",function(kt){e.CHM(h);const ti=e.oxw();return e.KtG(ti.onShiftTab(kt))}),e.qZA()}if(2&ie){const h=e.oxw();e.xp6(1),e.Oqu(h.ctx.localization.get("columns")),e.xp6(1),e.Q6J("columns",h.columns)("ariaLabel",h.ctx.localization.get("columns"))("isLast",!0)("applyText",h.ctx.localization.get("columnsApply"))("resetText",h.ctx.localization.get("columnsReset"))("autoSync",h.autoSync)("allowHideAll",h.allowHideAll)}}const ih=["kendoGridEditCommand",""];function Cu(ie,Qe){if(1&ie&&e._UZ(0,"kendo-icon-wrapper",4),2&ie){const h=e.oxw();e.Q6J("name",h.icon)("svgIcon",h.svgIcon)}}function id(ie,Qe){if(1&ie&&(e.TgZ(0,"span",5),e._UZ(1,"img",6),e.qZA()),2&ie){const h=e.oxw();e.xp6(1),e.Q6J("src",h.imageUrl,e.LSH)}}function ph(ie,Qe){if(1&ie&&e._UZ(0,"span",7),2&ie){const h=e.oxw();e.Q6J("ngClass",h.iconClass)}}const ud=["kendoGridCancelCommand",""];function ql(ie,Qe){if(1&ie&&e._UZ(0,"kendo-icon-wrapper",4),2&ie){const h=e.oxw();e.Q6J("name",h.icon)("svgIcon",h.svgIcon)}}function Ku(ie,Qe){if(1&ie&&(e.TgZ(0,"span",5),e._UZ(1,"img",6),e.qZA()),2&ie){const h=e.oxw();e.xp6(1),e.Q6J("src",h.imageUrl,e.LSH)}}function od(ie,Qe){if(1&ie&&e._UZ(0,"span",7),2&ie){const h=e.oxw();e.Q6J("ngClass",h.iconClass)}}const Ic=["kendoGridSaveCommand",""];function Gd(ie,Qe){if(1&ie&&e._UZ(0,"kendo-icon-wrapper",4),2&ie){const h=e.oxw();e.Q6J("name",h.icon)("svgIcon",h.svgIcon)}}function $d(ie,Qe){if(1&ie&&(e.TgZ(0,"span",5),e._UZ(1,"img",6),e.qZA()),2&ie){const h=e.oxw();e.xp6(1),e.Q6J("src",h.imageUrl,e.LSH)}}function dc(ie,Qe){if(1&ie&&e._UZ(0,"span",7),2&ie){const h=e.oxw();e.Q6J("ngClass",h.iconClass)}}const $c=["kendoGridRemoveCommand",""];function oc(ie,Qe){if(1&ie&&e._UZ(0,"kendo-icon-wrapper",4),2&ie){const h=e.oxw();e.Q6J("name",h.icon)("svgIcon",h.svgIcon)}}function Hd(ie,Qe){if(1&ie&&(e.TgZ(0,"span",5),e._UZ(1,"img",6),e.qZA()),2&ie){const h=e.oxw();e.xp6(1),e.Q6J("src",h.imageUrl,e.LSH)}}function Rc(ie,Qe){if(1&ie&&e._UZ(0,"span",7),2&ie){const h=e.oxw();e.Q6J("ngClass",h.iconClass)}}const _d=["kendoGridAddCommand",""];function rc(ie,Qe){if(1&ie&&e._UZ(0,"kendo-icon-wrapper",4),2&ie){const h=e.oxw();e.Q6J("name",h.icon)("svgIcon",h.svgIcon)}}function Di(ie,Qe){if(1&ie&&(e.TgZ(0,"span",5),e._UZ(1,"img",6),e.qZA()),2&ie){const h=e.oxw();e.xp6(1),e.Q6J("src",h.imageUrl,e.LSH)}}function uo(ie,Qe){if(1&ie&&e._UZ(0,"span",7),2&ie){const h=e.oxw();e.Q6J("ngClass",h.iconClass)}}const fa=/^\s*$/,ye=ie=>null!=ie,bt=ie=>null==ie,be=ie=>Array.isArray(ie),st=ie=>!!ie,ei=ie=>bt(ie)||fa.test(ie),_o=ie=>(0,o.T)((0,a.of)(ie),ie.changes),gr=()=>typeof document>"u",ds=ie=>"string"==typeof ie,us=ie=>"number"==typeof ie&&!isNaN(ie),zs=ie=>ds(ie)&&!ei(ie)&&ie.startsWith("{0:")?ie.slice(3,ie.length-1):ie,Ta=ie=>(...Qe)=>!ie(...Qe),Pe=(...ie)=>Qe=>ie.reduce((h,oe)=>h||oe(Qe),!1),Tn=(...ie)=>Qe=>ie.reduce((h,oe)=>h&&oe(Qe),!0),dt=(new e.OlP("Skip"),function In(){if("function"==typeof Symbol&&Symbol.iterator)return Symbol.iterator;const ie=Object.getOwnPropertyNames(Map.prototype),Qe=Map.prototype;for(let h=0;h<ie.length;++h){const oe=ie[h];if("entries"!==oe&&"size"!==oe&&Qe[oe]===Qe.entries)return oe}}()),Br=typeof window<"u"?window:{},es=Br.requestAnimationFrame||Br.msRequestAnimationFrame||(ie=>setTimeout(ie,16.666666666666668)),Ks=Br.cancelAnimationFrame||Br.msCancelRequestAnimationFrame||clearTimeout,Aa=(ie,Qe,h)=>ie.replace(new RegExp(`{\\s*${Qe}\\s*}`,"g"),h);let ml=(()=>{class ie{constructor(){this.cellClick=new e.vpe,this.cellMousedown=new e.vpe,this.cellMouseup=new e.vpe,this.click=new e.vpe,this.keydown=new e.vpe,this.focus=new e.vpe,this.focusIn=new e.vpe,this.focusOut=new e.vpe,this.windowBlur=new e.vpe}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),yl=(()=>{class ie{constructor(){this.changes=new e.vpe}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})();const Cc=new e.OlP("focus-root-initial-active-state");let Bc=(()=>{class ie{constructor(h=!1){this.active=h,this.groups=new Set}registerGroup(h){this.active&&this.groups.add(h)}unregisterGroup(h){this.active&&this.groups.delete(h)}activate(){this.active&&this.groups.forEach(h=>h.activate())}deactivate(){this.active&&this.groups.forEach(h=>h.deactivate())}}return ie.\u0275fac=function(h){return new(h||ie)(e.LFG(Cc,8))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})();const Bl=/^(?:a|input|select|option|textarea|button|object)$/i,Wc={},xu=ie=>String(ie).trim().split(" "),iu=(ie,Qe)=>{const h=xu(Qe);return!!xu(ie.className).find(oe=>h.indexOf(oe)>=0)},ku=ie=>Qe=>iu(Qe,ie),Lc=ie=>(Wc[ie]||(Wc[ie]=Qe=>String(Qe.nodeName).toLowerCase()===ie.toLowerCase()),Wc[ie]),ul=(ie,Qe)=>{for(;ie&&!Qe(ie);)ie=ie.parentNode;return ie},Mc=(ie,Qe,h)=>{for(;ie&&ie!==h&&!Qe(ie);)ie=ie.parentNode;if(ie!==h)return ie},Tf=ie=>{if(!(0,n.X_)())return;const Qe=ie.getBoundingClientRect();return(Qe.width>0&&Qe.height>0||0!==Qe.x&&0!==Qe.y)&&"hidden"!==window.getComputedStyle(ie).visibility},Ff=ie=>{if(!ie.tagName)return!1;const Qe=ie.tagName.toLowerCase(),h=!!ie.getAttribute("tabIndex");return!ie.disabled&&Bl.test(Qe)||h},hf=(ie,Qe=!0)=>{if(!Ff(ie))return!1;const h=!Qe||Tf(ie),oe="true"===ie.getAttribute("aria-hidden"),kt=ie.getAttribute("tabIndex");return h&&!oe&&"-1"!==kt},Vd=(ie,Qe,h=!0)=>{if(ie){if(h&&Qe(ie))return ie;for(ie=ie.firstChild;ie;){if(1===ie.nodeType){const oe=Vd(ie,Qe);if(oe)return oe}ie=ie.nextSibling}}},mh=(ie,Qe=!0)=>Vd(ie,h=>hf(h,Qe),!1),hd=Lc("button"),ff=Lc("input"),Iu=/(button|checkbox|color|file|radio|reset|submit)/i;class Xh{constructor(Qe,h){this.renderer=h,this.element=Qe.nativeElement,this.focusable=((ie,Qe=!0)=>Vd(this.element,h=>hf(h,Qe)))(0,!1)||this.element}get enabled(){return this.focusable&&!this.focusable.disabled}get visible(){return this.focusable&&Tf(this.focusable)}isNavigable(){return this.canFocus()&&(ie=>!ie.disabled&&(hd(ie)||(ie=>ff(ie)&&Iu.test(ie.type))(ie)))(this.element)}toggle(Qe){this.renderer.setAttribute(this.focusable,"tabIndex",Qe?"0":"-1")}focus(){this.focusable&&this.focusable.focus()}canFocus(){return this.visible&&this.enabled}hasFocus(){return(0,n.X_)()&&document.activeElement!==this.element&&ul(document.activeElement,Qe=>Qe===this.element)}}const Sh=new e.OlP("grid-cell-context"),pf={};let Nc=(()=>{class ie{constructor(h,oe,kt){this.cellContext=h,this.hostElement=oe,this.renderer=kt,this.active=!0,this._enabled=!0,this.cellContext&&(this.group=this.cellContext.focusGroup),this.group&&this.group.registerElement(this)}set enabled(h){(h=""===h||!!h)!==this.enabled&&(this._enabled=h,this.element&&this.element.toggle(this.active&&h))}get enabled(){return this._enabled}ngAfterViewInit(){this.element||(this.element=new Xh(this.hostElement,this.renderer)),this.group&&this.element&&this.toggle(this.group.isActive)}ngOnDestroy(){this.group&&this.group.unregisterElement(this)}toggle(h){this.element&&h!==this.active&&(this.element.toggle(this.enabled&&h),this.active=h)}canFocus(){return this.enabled&&this.element&&this.element.canFocus()}isNavigable(){return this.enabled&&this.element&&this.element.isNavigable()}focus(){this.enabled&&this.element&&this.element.focus()}hasFocus(){return this.enabled&&this.element&&this.element.hasFocus()}registerElement(h){this.element=h}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Sh,12),e.Y36(e.SBq),e.Y36(e.Qsj))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridFocusable",""],["","kendoGridEditCommand",""],["","kendoGridRemoveCommand",""],["","kendoGridSaveCommand",""],["","kendoGridCancelCommand",""],["","kendoGridSelectionCheckbox",""]],inputs:{enabled:["kendoGridFocusable","enabled"]}}),ie})();class wh{constructor(Qe){this.navigationService=Qe}focus(){this.navigationService.focusCell()}toggle(Qe){this.navigationService.toggle(Qe)}canFocus(){return!0}hasFocus(){return this.navigationService.hasFocus()}isNavigable(){return!1}}class Eh{constructor(Qe){this.model=Qe,this.changes=new l.x,this.activeRow=0,this.activeCol=0,this.virtualCol=0,this.virtualRow=0}set metadata(Qe){if(this._metadata=Qe,ye(Qe)){const h=Qe.hasDetailTemplate?1:0;this.activeRow<Qe.headerRows&&0===this.activeCol&&h!==this.activeCol&&(this.activeCol=h,this.reset())}}get metadata(){return this._metadata}get row(){return this.model.findRow(this.activeRow)}get cell(){const Qe=this.row;if(Qe)return this.model.findCell(this.activeCol,Qe)}get dataRowIndex(){const Qe=this.row;return Qe?Qe.dataRowIndex:-1}reset(Qe=this.activeRow,h=this.activeCol,oe=!0){this.activate(Qe,h,oe)&&(this.virtualRow=Qe,this.virtualCol=h)}activate(Qe,h,oe){if(!oe&&this.isActiveRange(Qe,h))return!1;const kt=this.activeCol,ti=this.activeRow;return this.activeCol=h,this.activeRow=Qe,this.changes.next({colIndex:h,prevColIndex:kt,prevRowIndex:ti,rowIndex:Qe}),!0}isActiveRange(Qe,h){if(this.activeRow!==Qe)return!1;const oe=this.cell,{start:kt,end:ti}=this.model.cellRange(oe);return!oe||kt<=h&&h<=ti}assume(Qe=this.activeRow,h=this.activeCol){this.virtualRow=Qe,this.virtualCol=h,this.activeCol=h,this.activeRow=Qe}announce(){this.changes.next({colIndex:this.activeCol,prevColIndex:this.activeCol,prevRowIndex:this.activeRow,rowIndex:this.activeRow})}activateVirtualCell(Qe){const h=this.model.rowRange(Qe),oe=this.model.cellRange(Qe),kt=this.activeCol,ti=this.activeRow;if(h.start<=ti&&ti<=h.end&&oe.start<=kt&&kt<=oe.end)return this.activeRow=Qe.rowIndex,this.activeCol=Qe.colIndex,!0}isActive(Qe,h){return this.activeCol===h&&this.activeRow===Qe}moveUp(Qe=1){return this.offsetRow(-Qe)}moveDown(Qe=1){return this.offsetRow(Qe)}moveLeft(Qe=1){return this.offsetCol(-Qe)}moveRight(Qe=1){return this.offsetCol(Qe)}lastCellIndex(Qe){return this.metadata.columns.leafColumnsToRender.length-1+(!this.metadata.hasDetailTemplate||Qe&&Qe.groupItem?0:1)}offsetCol(Qe){const h=this.model.findRow(this.virtualRow),oe=this.lastCellIndex(h),kt=this.virtualCol;this.virtualCol=Math.max(0,Math.min(kt+Qe,oe));let ti=this.virtualCol;const Zo=this.virtualRow;let hr=this.model.findCell(this.virtualCol,h);if(!hr&&this.metadata.virtualColumns)return this.activate(Zo,ti);if(!hr&&this.metadata.hasDetailTemplate)return this.virtualCol+=1,!1;if(hr.colSpan>1&&hr.colIndex<=kt&&kt<hr.colIndex+hr.colSpan){ti=Qe>0?Math.min(hr.colIndex+hr.colSpan,oe):Math.max(0,hr.colIndex+Qe);const Cs=this.model.findCell(ti,h);hr!==Cs?(hr=Cs,this.virtualCol=hr.colIndex):this.virtualCol=kt}return this.activate(hr.rowIndex,hr.colIndex)}offsetRow(Qe){let h=this.virtualCol;if(this.metadata&&this.metadata.isVirtual){const ti=this.metadata.maxLogicalRowIndex;let Zo=Math.max(0,Math.min(this.activeRow+Qe,ti));this.metadata.hasDetailTemplate&&!this.model.findRow(Zo)&&(Zo=Qe>0?Zo+1:Zo-1,Zo=Math.max(0,Math.min(Zo,ti))),this.metadata.hasDetailTemplate&&Zo===ti&&this.model.lastRow.index!==ti&&Zo--;const hr=this.model.findRow(Zo);if(hr){let Cs=this.model.findCell(this.virtualCol,hr);if(!Cs)return;Cs.rowIndex<=this.virtualRow&&Qe>0&&Cs.rowSpan>1&&(Cs=this.model.findCell(this.virtualCol,this.model.findRow(Cs.rowIndex+Cs.rowSpan-1+Qe))),Zo=Cs.rowIndex,h=Cs.colIndex}return this.virtualRow=Zo,this.activate(Zo,h)}const oe=this.model.findRow(this.virtualRow+Qe)||this.model.nextRow(this.virtualRow,Qe);if(!oe)return!1;let kt=this.model.findCell(this.virtualCol,oe);return kt&&kt.rowIndex<=this.virtualRow&&Qe>0&&kt.rowSpan>1&&(kt=this.model.findCell(this.virtualCol,this.model.findRow(kt.rowIndex+kt.rowSpan-1+Qe))),kt||!this.metadata.virtualColumns&&!this.metadata.hasDetailTemplate?(this.virtualRow=kt.rowIndex,this.activate(this.virtualRow,kt.colIndex)):this.activate(this.virtualRow+Qe,this.virtualCol)}}class oh{constructor(){this.count=0,this.items={}}get first(){if(this.count>0){let Qe;return this.forEach(h=>(Qe=h,!0)),Qe}}get last(){if(this.count>0){const Qe=Object.keys(this.items);return this.items[Qe[Qe.length-1]]}}removeItem(Qe){this.items[Qe]&&(delete this.items[Qe],this.count--)}setItem(Qe,h){this.items[Qe]||this.count++,this.items[Qe]=h}getItem(Qe){return this.items[Qe]}toArray(){const Qe=[];return this.forEach(h=>{Qe.push(h)}),Qe}forEach(Qe){for(const h in this.items)if(this.items.hasOwnProperty(h)&&Qe(this.items[h]))return this.items[h]}find(Qe){return this.forEach(Qe)}}class yd{constructor(){this.rows=new oh}get firstRow(){return this.rows.first}get lastRow(){return this.rows.last}registerCell(Qe){const h=this.rows.getItem(Qe.logicalRowIndex);if(!h)return;const oe=Qe.logicalColIndex,kt={uid:Qe.uid,colIndex:oe,rowIndex:h.index,colSpan:Qe.colSpan,rowSpan:Qe.rowSpan,detailExpandCell:Qe.detailExpandCell,dataItem:h.dataItem,dataRowIndex:h.dataRowIndex,focusGroup:Qe.focusGroup};return h.cells.setItem(oe,kt),Qe.groupItem&&(h.groupItem=Qe.groupItem),kt}unregisterCell(Qe,h,oe){const kt=this.rows.getItem(h);if(kt){const ti=kt.cells.getItem(Qe);ti&&ti.uid===oe.uid&&kt.cells.removeItem(Qe)}}registerRow(Qe){const h={uid:Qe.uid,index:Qe.logicalRowIndex,dataItem:Qe.dataItem,dataRowIndex:Qe.dataRowIndex,cells:new oh};this.rows.setItem(Qe.logicalRowIndex,h)}updateRow(Qe){const h=this.rows.getItem(Qe.logicalRowIndex);h&&Object.assign(h,{dataItem:Qe.dataItem,dataRowIndex:Qe.dataRowIndex})}unregisterRow(Qe,h){const oe=this.rows.getItem(Qe);oe&&oe.uid===h.uid&&this.rows.removeItem(Qe)}cellRange(Qe){return Qe?{start:Qe.colIndex,end:Qe.colIndex+(Qe.colSpan||1)-1}:{}}rowRange(Qe){return Qe?{start:Qe.rowIndex,end:Qe.rowIndex+(Qe.rowSpan||1)-1}:{}}nextRow(Qe,h){const oe=this.rows.toArray(),kt=this.rows.getItem(Qe),ti=oe.indexOf(kt);return oe[ti+h]}findRow(Qe){return this.rows.getItem(Qe)}findCell(Qe,h){if(!h)return;const oe=h.index;let kt=h.cells.getItem(Qe),ti=oe;for(;!kt&&h;)h=this.rows.getItem(ti),kt=this.rowCell(Qe,h),ti--;return kt&&oe<=h.index+(kt.rowSpan||1)-1?kt:void 0}rowCell(Qe,h){if(!h||!h.cells.count)return;const oe=h.cells.first;let kt,ti=Qe;for(;!kt&&ti>=oe.colIndex;)kt=h.cells.getItem(ti),ti--;return kt&&Qe<=kt.colIndex+(kt.colSpan||1)-1?kt:void 0}}class Nd{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class Pp extends Nd{constructor(Qe){super(),this.action="cellClose",Object.assign(this,Qe)}}const uc=ie=>-1===ie||void 0===ie;let rh=(()=>{class ie{constructor(h){this.ngZone=h,this.changes=new e.vpe,this.editedIndices=[],this.keepEditCell=!1,this.closingCell=!1,this.changedSource=new l.x,this.changed=this.changedSource.asObservable().pipe((0,x.w)(()=>this.ngZone.onStable.asObservable().pipe((0,f.q)(1))))}editRow(h,oe=void 0){this.editedIndices.push({index:h,group:oe}),this.onChanged()}addRow(h){this.newItemGroup={group:h},this.onChanged()}editCell(h,oe,kt){uc(h)||!1===oe.editable||!oe.editTemplate&&!oe.field||(this.preventCellClose(),this.closeCell()||(this.editRow(h,kt),this.column=oe,this.onChanged()))}isEditing(){return this.editedIndices.length>0}isEditingCell(){return this.isEditing()&&void 0!==this.column}get hasNewItem(){return ye(this.newItemGroup)}get newDataItem(){return this.hasNewItem?this.newItemGroup.group.value:{}}close(h){uc(h)?this.newItemGroup=void 0:(this.editedIndices=this.editedIndices.filter((ie=>Qe=>Qe.index!==ie)(h)),delete this.column,this.onChanged())}closeCell(h){if(this.column&&!this.closingCell)return this.ngZone.run(()=>{const{index:oe,group:kt}=this.editedIndices[0],ti=new Pp({column:this.column,formGroup:kt,originalEvent:h,rowIndex:oe});return this.closingCell=!0,this.changes.emit(ti),this.closingCell=!1,ti.isDefaultPrevented()||this.cancelCell(),ti.isDefaultPrevented()})}cancelCell(){this.column&&(this.editedIndices=[],delete this.column,this.onChanged())}shouldCloseCell(){return this.column&&!this.keepEditCell}preventCellClose(){this.ngZone.runOutsideAngular(()=>{window.clearTimeout(this.keepCellTimeout),this.keepEditCell=!0,this.keepCellTimeout=window.setTimeout(()=>{this.keepEditCell=!1},0)})}context(h){return uc(h)?this.newItemGroup:this.findByIndex(h)}columnContext(h,oe){return uc(h)?this.newItemGroup:this.column&&oe!==this.column?void 0:this.findByIndex(h)}isEdited(h){return!(!uc(h)||!ye(this.newItemGroup))||!this.column&&ye(this.findByIndex(h))}hasEdited(h){return ye(this.context(h))}isEditedColumn(h,oe){return!(!this.column||this.column!==oe)&&ye(this.findByIndex(h))}beginEdit(h){this.changes.emit({action:"edit",rowIndex:h})}beginAdd(){this.changes.emit({action:"add"})}endEdit(h){const{group:oe}=this.context(h);this.changes.emit({action:"cancel",rowIndex:h,formGroup:oe,isNew:uc(h)})}save(h){const{group:oe}=this.context(h);this.changes.emit({action:"save",rowIndex:h,formGroup:oe,isNew:uc(h)})}remove(h){this.changes.emit({action:"remove",rowIndex:h})}findByIndex(h){return this.editedIndices.find((ie=>Qe=>Qe.index===ie)(h))}onChanged(){this.ngZone.runOutsideAngular(()=>{this.changedSource.next()})}}return ie.\u0275fac=function(h){return new(h||ie)(e.LFG(e.R0b))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})();const sh=ie=>ye(ie)?{group:ie.data,groupIndex:ie.index,parentGroup:sh(ie.parentGroup)}:null;let Bf=(()=>{class ie{constructor(){this.changes=new l.x,this.rowState=new Set}reset(){this.rowState.clear()}ngOnDestroy(){this.reset()}isExpanded(h){return this.userCallback?this.userCallback(h):!this.rowState.has(h.groupIndex)}isInExpandedGroup(h){let oe=!0;for(;h&&oe;)oe=this.isExpanded({group:h.data,groupIndex:h.index,parentGroup:sh(h.parentGroup)}),h=h.parentGroup;return oe}toggleRow(h){const oe=sh(h.parentGroup),kt=!this.isExpanded({group:h.data,groupIndex:h.index,parentGroup:oe});this.changes.next({group:h.data,expand:kt,groupIndex:h.index,parentGroup:oe}),!this.userCallback&&(kt?this.rowState.delete(h.index):this.rowState.add(h.index))}expandChildren(h){this.rowState.forEach(oe=>((ie,Qe)=>Qe!==ie&&ie.startsWith(Qe))(oe,h)&&this.rowState.delete(oe))}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})();class Qd{constructor(){this.changes=new l.x,this.pageChange=new l.x}get currentPage(){return this.skip/this.pageSize}notifyChanges(Qe){this.total=Qe.total,this.pageSize=Qe.pageSize,this.skip=Qe.skip,this.changes.next(Qe)}changePage(Qe){this.pageChange.next({skip:Qe*this.pageSize,take:this.pageSize})}changePageSize(Qe){this.pageChange.next({skip:0,take:Qe})}nextPage(){const Qe=this.currentPage+1;Qe*this.pageSize<this.total&&this.changePage(Qe)}prevPage(){const Qe=this.currentPage-1;Qe*this.pageSize>=0&&this.changePage(Qe)}}class Th extends Nd{constructor(Qe){super(),Object.assign(this,Qe)}}class _p extends Nd{constructor(Qe){super(),Object.assign(this,Qe)}}let Hh=(()=>{class ie{constructor(){this.changes=new l.x,this.rowState=new Set}ngOnDestroy(){this.rowState.clear()}isExpanded(h,oe){return this.userCallback?this.userCallback({index:h,dataItem:oe}):this.rowState.has(h)}toggleRow(h,oe){this.isExpanded(h,oe)?this.collapseRow(h,oe):this.expandRow(h,oe)}expandRow(h,oe){!this.emitEvent({dataItem:oe,index:h,expand:!0})&&!this.userCallback&&this.rowState.add(h)}collapseRow(h,oe){!this.emitEvent({dataItem:oe,index:h,expand:!1})&&!this.userCallback&&this.rowState.delete(h)}emitEvent(h){const oe=new(h.expand?_p:Th)(h);return this.changes.next(oe),oe.isDefaultPrevented()}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),Sl=(()=>{class ie{constructor(){this.requests=new l.x}scrollTo(h){this.requests.next(h)}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),Rn=(()=>{class ie{constructor(h){this.renderer=h,this.navigableElements=[],this.currentActiveIndex=0,this.defaultFocusableSelector="\n        [kendogridtoolbarfocusable],\n        [kendogridaddcommand],\n        [kendogridcancelcommand],\n        [kendogrideditcommand],\n        [kendogridremovecommand],\n        [kendogridsavecommand],\n        [kendogridexcelcommand],\n        [kendogridpdfcommand]\n    "}notify(){this.navigableElements=this.navigableElements.length&&Array.from(this.navigableElements[0].parentElement.querySelectorAll(this.defaultFocusableSelector))||[],this.currentActiveIndex=0,this.updateFocus()}focus(){this.navigableElements[this.currentActiveIndex]?.focus()}updateFocus(){this.navigableElements.length&&(this.navigableElements.forEach(h=>{this.renderer.setAttribute(h,"tabindex","-1")}),this.renderer.setAttribute(this.navigableElements[this.currentActiveIndex],"tabindex","0"),(0,n.X_)()&&document.activeElement.closest(".k-toolbar")&&this.navigableElements[this.currentActiveIndex].focus())}}return ie.\u0275fac=function(h){return new(h||ie)(e.LFG(e.Qsj))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),Uo=(()=>{class ie{constructor(h,oe){this.renderer=h,this.localization=oe,this.topToolbarNavigation=new Rn(this.renderer),this.bottomToolbarNavigation=new Rn(this.renderer)}}return ie.\u0275fac=function(h){return new(h||ie)(e.LFG(e.Qsj),e.LFG(V.oQ))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})();const je=(ie,Qe)=>ul(ie,Lc("kendo-grid"))===Qe,Mn=Lc("th"),Gi=Lc("td"),nr=Lc(".k-grid-footer td"),is=ie=>Gi(ie)||Mn(ie)||nr(ie),dl=(ie,Qe)=>{const h=((ie,Qe)=>{let h=ul(ie,is);for(;h&&!je(h,Qe);)h=ul(h.parentElement,is);return h})(ie,Qe),oe=ul(h,Lc("tr"));if(h&&oe){let kt=oe.getAttribute("aria-rowindex")||oe.getAttribute("data-kendo-grid-row-index");kt=kt?parseInt(kt,10)-1:null;let ti=h.getAttribute("aria-colindex");if(ti=ti?parseInt(ti,10)-1:null,null!==kt&&null!==ti)return{colIndex:ti,rowIndex:kt,element:h}}},fl=ie=>(ie=>ie===n.R8.ArrowLeft||ie===n.R8.ArrowRight||ie===n.R8.ArrowUp||ie===n.R8.ArrowDown)(ie)||ie===n.R8.PageUp||ie===n.R8.PageDown||ie===n.R8.Home||ie===n.R8.End,_c=Lc("input");class fd{constructor(Qe,h){this.firstItemIndex=Qe,this.lastItemIndex=h}containsRow(Qe){return Qe<0||Qe>=this.firstItemIndex&&Qe<=this.lastItemIndex}intersects(Qe,h){return Qe<=this.firstItemIndex&&this.lastItemIndex<=h||this.firstItemIndex<=Qe&&Qe<=this.lastItemIndex||this.firstItemIndex<=h&&h<=this.lastItemIndex}}let Su=(()=>{class ie{constructor(h,oe,kt,ti,Zo,hr,Cs,aa,$a,ja,Ll){this.zone=h,this.domEvents=oe,this.pagerContextService=kt,this.scrollRequestService=ti,this.groupsService=Zo,this.detailsService=hr,this.focusRoot=Cs,this.editService=aa,this.cd=$a,this.ctx=ja,this.focusableParent=Ll,this.cellKeydown=new e.vpe,this.activeRowIndex=0,this.alive=!1,this.active=!0,this.mode=0,this.model=new yd,this.cursor=new Eh(this.model),this.pagerIsNavigable=!1,this.tableIsNavigable=!1,this.toolbarIsNavigable=!1,this.changes=this.cursor.changes}set metadata(h){this.meta=h,this.cursor.metadata=h}get metadata(){return this.meta}get enabled(){return this.alive}get pagerEnabled(){return this.alive&&this.pagerIsNavigable}get tableEnabled(){return this.alive&&this.tableIsNavigable}get toolbarEnabled(){return this.alive&&this.toolbarIsNavigable}get activeCell(){if(0!==this.mode)return this.cursor.cell}get activeRow(){if(0!==this.mode)return Object.assign({},this.cursor.row,{cells:this.cursor.row.cells.toArray()})}get activeDataRow(){return Math.max(0,this.activeRowIndex-this.meta.headerRows)}init(h,oe){this.setActiveSections(oe),this.alive=!0,this.focusRoot.active=!0,this.metadata=h;const kt=(...Zo)=>hr=>this.zone.isStable?(0,u.D)([!0]).pipe((0,k.U)(()=>hr)):this.zone.onStable.pipe((0,f.q)(1),(0,k.U)(()=>hr),...Zo),ti=kt();if(this.subs=new d.w0,this.subs.add(this.cursor.changes.subscribe(Zo=>this.onCursorChanges(Zo))),this.subs.add(this.domEvents.focus.pipe((0,x.w)(ti)).subscribe(Zo=>this.navigateTo(Zo.target))),this.subs.add(this.domEvents.focusOut.pipe((0,w.h)(()=>0!==this.mode),(0,x.w)(kt((0,g.R)(this.domEvents.focus)))).subscribe(Zo=>this.onFocusOut(Zo))),this.subs.add(this.domEvents.windowBlur.pipe((0,w.h)(()=>0!==this.mode)).subscribe(()=>this.onWindowBlur())),this.subs.add(this.editService.changes.pipe((0,w.h)(Zo=>"edit"!==Zo.action&&2===this.mode),(0,w.h)(Zo=>"cellClose"===Zo.action&&!Zo.prevented),(0,x.w)(ti)).subscribe(()=>this.leaveCell())),this.subs.add(this.pagerContextService.pageChange.subscribe(()=>this.cursor.reset(0,0))),this.subs.add(this.domEvents.keydown.subscribe(Zo=>this.onKeydown(Zo))),this.subs.add(this.domEvents.keydown.pipe((0,w.h)(Zo=>Zo.keyCode===n.R8.Tab&&2===this.mode),(0,M.c)(this.domEvents.focusOut.pipe((0,g.R)((0,s.F)(0).pipe((0,f.q)(1)))))).subscribe(()=>this.onTabout())),this.focusableParent){const Zo=new wh(this);this.focusableParent.registerElement(Zo)}this.deactivateElements()}ngOnDestroy(){this.subs&&this.subs.unsubscribe(),this.alive=!1}registerCell(h){if(h.logicalRowIndex!==this.pendingRowIndex){const oe=this.model.registerCell(h);this.virtualCell&&this.cursor.activateVirtualCell(oe)&&(this.virtualCell=!1)}}registerCellOnCurrentRow(h){h.logicalRowIndex===this.pendingRowIndex&&this.model.registerCell(h)}unregisterCell(h,oe,kt){this.model.unregisterCell(h,oe,kt)}registerRow(h){this.model.registerRow(h),this.pendingRowIndex=h.logicalRowIndex}updateRow(h){this.model.updateRow(h)}unregisterRow(h,oe){this.model.unregisterRow(h,oe);const kt=this.model.lastRow;if(kt&&0===this.mode){const ti=this.needsViewport()&&this.viewport?this.viewport.lastItemIndex:kt.index;this.activeRowIndex>ti&&this.cursor.reset(0,0)}}isCellFocusable(h){return this.alive&&this.active&&2!==this.mode&&this.cursor.isActive(h.logicalRowIndex,h.logicalColIndex)}isCellFocused(h){return 1===this.mode&&this.isCellFocusable(h)}navigateTo(h){if(!this.alive||!(0,n.X_)())return;const oe=dl(h,this.meta.gridElement.nativeElement);if(!oe)return;const kt=this.mode,ti=((ie,Qe,h=!1)=>{if(!ul(Qe,ti=>ti===ie))return!1;const kt=ul(Qe,ti=>ti===Qe);return kt&&(h||kt!==ie)})(oe.element,document.activeElement),Zo=2===this.mode&&this.activeRowIndex===oe.rowIndex&&h!==oe.element;if(ti)this.mode=2,this.cursor.reset(oe.rowIndex,oe.colIndex),this.activateRow();else if(!Zo){this.mode=1,this.deactivateElements();const hr=this.cursor.isActive(oe.rowIndex,oe.colIndex);1===kt&&hr||this.cursor.reset(oe.rowIndex,oe.colIndex)}}tryFocus(h){this.activateElements();const oe=mh(h);if(oe){const kt=dl(oe,this.meta.gridElement.nativeElement);kt&&(this.cursor.reset(kt.rowIndex,kt.colIndex),this.deactivateElements(),this.enterCell()),oe.focus()}else this.deactivateElements();return!!oe}needsViewport(){return this.meta&&this.meta.isVirtual}setViewport(h,oe){if(this.viewport=new fd(h,oe),this.meta&&this.meta.isVirtual&&this.activeDataRow>-1){const kt=this.activeDataRow,Zo=kt-oe;h-kt>0?this.cursor.reset(h+this.meta.headerRows):Zo>0&&this.cursor.reset(oe-this.meta.headerRows)}}setColumnViewport(h,oe){this.columnViewport=new fd(h,oe)}focusCell(h=void 0,oe=void 0){return this.mode=1,this.cursor.reset(h,oe),this.activeCell}focusCellByElement(h){const oe=dl(h,this.meta.gridElement.nativeElement);if(oe)return this.focusCell(oe.rowIndex,oe.colIndex)}focusNextCell(h=!0){return this.focusAdjacentCell(!0,h)}focusPrevCell(h=!0){return this.focusAdjacentCell(!1,h)}toggle(h){this.active=h,this.cursor.announce()}hasFocus(){return 1===this.mode||2===this.mode}autoFocusCell(h,oe){return!this.meta.virtualColumns||oe<this.meta.columns.lockedLeafColumns.length||this.columnViewport.intersects(h,oe)}setActiveSections(h){this.pagerIsNavigable=h.includes("pager"),this.tableIsNavigable=h.includes("table"),this.toolbarIsNavigable=h.includes("toolbar")}focusAdjacentCell(h,oe){this.focusCell();let kt=h?this.moveCursorFwd():this.moveCursorBwd();if(oe&&!kt&&(kt=h?this.cursor.moveDown(1):this.cursor.moveUp(1),kt)){const ti=this.cursor.row,Zo=h?0:this.cursor.lastCellIndex(ti);this.cursor.reset(ti.index,Zo)}return kt?this.activeCell:(this.mode=0,this.cursor.announce(),null)}enterCell(){const h=this.cursor.cell;if(!h)return;const oe=h.focusGroup,kt=oe&&oe.canFocus();this.mode=kt?2:1,this.cursor.announce(),kt&&(this.activateRow(),oe.focus())}leaveCell(){const h=this.cursor.cell;if(!h)return;const oe=h.focusGroup;oe&&oe.canFocus()||this.deactivateElements(),this.mode=1,this.cursor.announce()}activateElements(){this.focusRoot.activate()}deactivateElements(){this.focusRoot.deactivate()}activateRow(){this.cursor.row.cells.forEach(h=>h.focusGroup&&h.focusGroup.activate())}moveCursorFwd(){return this.ctx.localization.rtl?this.cursor.moveLeft():this.cursor.moveRight()}moveCursorBwd(){return this.ctx.localization.rtl?this.cursor.moveRight():this.cursor.moveLeft()}onCursorKeydown(h){let oe=!1;const kt=h.ctrlKey||h.metaKey,ti=kt?5:1;if(!this.onCellKeydown(h))return;const Zo=this.cursor.row;switch(h.keyCode){case n.R8.ArrowDown:oe=this.cursor.moveDown(ti);break;case n.R8.ArrowUp:oe=this.cursor.moveUp(ti);break;case n.R8.ArrowRight:oe=this.moveCursorFwd();break;case n.R8.ArrowLeft:oe=this.moveCursorBwd();break;case n.R8.PageDown:if(this.metadata.isVirtual&&this.viewport){let hr=this.meta.headerRows+this.viewport.lastItemIndex+1;this.metadata.hasDetailTemplate&&hr++,hr=Math.min(this.meta.maxLogicalRowIndex,hr),this.cursor.reset(hr),oe=!0}else this.metadata.hasPager&&(this.zone.run(()=>this.pagerContextService.nextPage()),oe=!0);break;case n.R8.PageUp:if(this.metadata.isVirtual&&this.viewport){const aa=Math.max(this.meta.headerRows,this.viewport.firstItemIndex-(this.viewport.lastItemIndex-this.viewport.firstItemIndex)-1);this.cursor.reset(aa),oe=!0}else this.metadata.hasPager&&(this.zone.run(()=>this.pagerContextService.prevPage()),oe=!0);break;case n.R8.Home:if(kt)this.cursor.reset(this.meta.isVirtual?this.meta.headerRows:this.model.firstRow.index,0,!1);else{let hr=0;this.meta.hasDetailTemplate&&Zo.index<this.meta.headerRows&&(hr=1),this.cursor.reset(Zo.index,hr,!1)}oe=!0;break;case n.R8.End:if(kt)if(this.meta.isVirtual){let hr=this.meta.maxLogicalRowIndex;this.meta.hasDetailTemplate&&hr--,this.cursor.reset(hr,this.cursor.lastCellIndex(),!1)}else this.cursor.reset(this.model.lastRow.index,this.cursor.lastCellIndex(this.model.lastRow),!1);else{const hr=this.cursor.lastCellIndex(Zo),Cs=this.model.findCell(hr,Zo);Cs?this.cursor.reset(Cs.rowIndex,Cs.colIndex):this.cursor.reset(Zo.index,hr)}oe=!0;break;case n.R8.Enter:case n.R8.F2:{const hr=Zo.groupItem;hr?this.zone.run(()=>this.groupsService.toggleRow(hr)):this.cursor.cell.detailExpandCell?this.zone.run(()=>this.detailsService.toggleRow(Zo.dataRowIndex,Zo.dataItem)):(this.enterCell(),this.cursor.cell.focusGroup.isNavigable()||(oe=!0));break}default:!h.ctrlKey&&!h.altKey&&(ie=>1===ie.length&&ie.match(/\S/))(h.key)&&this.enterCell()}oe&&h.preventDefault()}onContentKeydown(h){if(!this.onCellKeydown(h))return;const oe=!h.defaultPrevented&&h.keyCode===n.R8.Enter&&(ie=>ie&&_c(ie)&&"text"===ie.type.toLowerCase())(h.srcElement);h.keyCode===n.R8.Escape||h.keyCode===n.R8.F2||oe?(this.leaveCell(),this.cursor.reset(),h.stopPropagation()):fl(h.keyCode)&&this.cursor.cell.focusGroup.isNavigable()&&(this.onCursorKeydown(h),h.defaultPrevented&&this.leaveCell())}onCellKeydown(h){if(this.editService.isEditingCell()){const oe=h.keyCode===n.R8.Enter,kt=h.keyCode===n.R8.Escape,ti=fl(h.keyCode);if(oe)this.editService.closeCell(h);else if(kt)this.editService.closeCell(h),this.cd.detectChanges();else if(ti)return!1}return this.cellKeydown.emit(h),!0}onCursorChanges(h){this.activeRowIndex=h.rowIndex;const oe=this.activeDataRow;if(this.meta&&this.meta.isVirtual&&h.rowIndex>=this.meta.headerRows&&this.viewport&&!this.viewport.containsRow(oe)&&oe>-1&&this.scrollRequestService.scrollTo({row:oe}),this.meta.virtualColumns&&h.colIndex>=this.meta.columns.lockedLeafColumns.length){const kt=this.activeCell,{start:ti,end:Zo}=this.model.cellRange(kt);kt||(this.virtualCell=!0),(!kt&&0!==this.mode||kt&&!this.columnViewport.intersects(ti,Zo))&&this.scrollRequestService.scrollTo({column:h.colIndex-(this.metadata.hasDetailTemplate?1:0)})}}onFocusOut(h){this.mode=Tf(h.target)?0:1,this.deactivateElements(),this.cursor.announce()}onWindowBlur(){this.mode=0,this.deactivateElements(),this.cursor.announce()}onKeydown(h){1===this.mode?this.onCursorKeydown(h):2===this.mode&&this.onContentKeydown(h)}onTabout(){this.cursor.cell.focusGroup.isNavigable()||(this.leaveCell(),this.cursor.reset())}}return ie.\u0275fac=function(h){return new(h||ie)(e.LFG(e.R0b),e.LFG(ml),e.LFG(Qd),e.LFG(Sl),e.LFG(Bf),e.LFG(Hh),e.LFG(Bc),e.LFG(rh),e.LFG(e.sBO),e.LFG(Uo),e.LFG(Nc,8))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),gm=0,Xd=(()=>{class ie{constructor(){this.prefix="k-grid"+gm++}gridId(){return this.prefix}cellId(h,oe){return`${this.prefix}-r${h}c${oe}`}selectionCheckboxId(h){return`${this.prefix}-checkbox${h}`}selectAllCheckboxId(){return`${this.prefix}-select-all`}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),gh=(()=>{class ie{constructor(h){this.templateRef=h}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.Rgc,8))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridHeaderTemplate",""]]}),ie})(),Ed=(()=>{class ie{constructor(h){this.templateRef=h}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.Rgc,8))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridFooterTemplate",""]]}),ie})(),ep=(()=>{class ie{constructor(h){this.templateRef=h}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.Rgc,8))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridColumnMenuTemplate",""]]}),ie})();const Dh=ie=>ie.isSpanColumn,Vh=ie=>ie.isCheckboxColumn,Ju=ie=>ie.isRowReorderColumn;let qa=(()=>{class ie{constructor(h,oe){if(this.parent=h,this.matchesMedia=!0,this.orderIndex=0,this.isColumnGroup=!1,this.isSpanColumn=!1,this.resizable=!0,this.reorderable=!0,this.minResizableWidth=10,this._locked=!1,this.sticky=!1,this.lockable=!0,this.stickable=!0,this.columnMenu=!0,this.includeInChooser=!0,this.headerTemplates=new e.n_E,this.columnMenuTemplates=new e.n_E,this.idService=oe,h&&oe&&h.idService.gridId()===oe.gridId()&&!(ie=>ie.isColumnGroup||Dh(ie))(h))throw new Error("Columns can be nested only inside ColumnGroupComponent")}set leafIndex(h){this._leafIndex=h}get leafIndex(){return this._leafIndex}set width(h){if("string"==typeof h){const oe=this._width=parseInt(h,10);(0,e.X6Q)()&&console.warn(`Expected numeric value for column width, but got a string "${h}". Treating as ${oe}px.`)}else this._width=h}get width(){return this._width}set locked(h){this._locked=h}get locked(){return this._locked}get level(){return this.parent&&Dh(this.parent)?this.parent.level:this.parent?this.parent.level+1:0}get isLocked(){return this.parent?this.parent.isLocked:this.locked}get colspan(){return 1}rowspan(h){return this.level<h?h-this.level+1:1}get headerTemplateRef(){const h=this.headerTemplates.first;return h?h.templateRef:void 0}get footerTemplateRef(){return this.footerTemplate?this.footerTemplate.templateRef:void 0}get columnMenuTemplateRef(){const h=this.columnMenuTemplates.first;return h?h.templateRef:null}get displayTitle(){return this.title}get isVisible(){return!this.hidden&&this.matchesMedia}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(ie),e.Y36(Xd))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-column-base"]],contentQueries:function(h,oe,kt){if(1&h&&(e.Suo(kt,Ed,5),e.Suo(kt,gh,4),e.Suo(kt,ep,4)),2&h){let ti;e.iGM(ti=e.CRH())&&(oe.footerTemplate=ti.first),e.iGM(ti=e.CRH())&&(oe.headerTemplates=ti),e.iGM(ti=e.CRH())&&(oe.columnMenuTemplates=ti)}},inputs:{resizable:"resizable",reorderable:"reorderable",minResizableWidth:"minResizableWidth",maxResizableWidth:"maxResizableWidth",title:"title",width:"width",autoSize:"autoSize",locked:"locked",sticky:"sticky",hidden:"hidden",media:"media",lockable:"lockable",stickable:"stickable",columnMenu:"columnMenu",includeInChooser:"includeInChooser",style:"style",headerStyle:"headerStyle",filterStyle:"filterStyle",footerStyle:"footerStyle",cssClass:["class","cssClass"],headerClass:"headerClass",filterClass:"filterClass",footerClass:"footerClass"},decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),qh=(()=>{class ie{constructor(h){this.templateRef=h}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.Rgc,8))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridCellTemplate",""]]}),ie})(),Mh=(()=>{class ie{constructor(h){this.templateRef=h}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.Rgc,8))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridEditTemplate",""]]}),ie})(),Uc=(()=>{class ie{constructor(h){this.templateRef=h}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.Rgc,8))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridGroupHeaderTemplate",""]]}),ie})(),pu=(()=>{class ie{constructor(h){this.templateRef=h}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.Rgc,8))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridGroupHeaderColumnTemplate",""]]}),ie})(),Od=(()=>{class ie{constructor(h){this.templateRef=h}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.Rgc,8))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridGroupFooterTemplate",""]]}),ie})(),Fd=(()=>{class ie{constructor(h){this.templateRef=h}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.Rgc,8))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridFilterCellTemplate",""]]}),ie})(),qd=(()=>{class ie{constructor(h){this.templateRef=h}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.Rgc,8))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridFilterMenuTemplate",""]]}),ie})();function Wh(ie){return ye(ie.field)}let Df=(()=>{class ie extends qa{constructor(h,oe){super(h,oe),this.sortable=!0,this.groupable=!0,this.editor="text",this.filter="text",this.filterable=!0,this.editable=!0}get templateRef(){return this.template?this.template.templateRef:void 0}get groupHeaderTemplateRef(){return this.groupHeaderTemplate?this.groupHeaderTemplate.templateRef:void 0}get groupHeaderColumnTemplateRef(){return this.groupHeaderColumnTemplate?this.groupHeaderColumnTemplate.templateRef:void 0}get groupFooterTemplateRef(){return this.groupFooterTemplate?this.groupFooterTemplate.templateRef:void 0}get editTemplateRef(){return this.editTemplate?this.editTemplate.templateRef:void 0}get filterCellTemplateRef(){return this.filterCellTemplate?this.filterCellTemplate.templateRef:void 0}get filterMenuTemplateRef(){return this.filterMenuTemplate?this.filterMenuTemplate.templateRef:void 0}get displayTitle(){return void 0===this.title?this.field:this.title}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(qa,13),e.Y36(Xd,8))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-column"]],contentQueries:function(h,oe,kt){if(1&h&&(e.Suo(kt,qh,5),e.Suo(kt,Uc,5),e.Suo(kt,pu,5),e.Suo(kt,Od,5),e.Suo(kt,Mh,5),e.Suo(kt,Fd,5),e.Suo(kt,qd,5)),2&h){let ti;e.iGM(ti=e.CRH())&&(oe.template=ti.first),e.iGM(ti=e.CRH())&&(oe.groupHeaderTemplate=ti.first),e.iGM(ti=e.CRH())&&(oe.groupHeaderColumnTemplate=ti.first),e.iGM(ti=e.CRH())&&(oe.groupFooterTemplate=ti.first),e.iGM(ti=e.CRH())&&(oe.editTemplate=ti.first),e.iGM(ti=e.CRH())&&(oe.filterCellTemplate=ti.first),e.iGM(ti=e.CRH())&&(oe.filterMenuTemplate=ti.first)}},inputs:{field:"field",format:"format",sortable:"sortable",groupable:"groupable",editor:"editor",filter:"filter",filterable:"filterable",editable:"editable"},features:[e._Bn([{provide:qa,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})();function Au(ie){return ie.isSpanColumn}let ef=(()=>{class ie extends qa{constructor(h,oe){if(super(h,oe),this.isSpanColumn=!0,this.template=new e.n_E,this.editTemplate=new e.n_E,this.childColumns=new e.n_E,this.includeInChooser=!1,this._editable=!0,h&&h.isSpanColumn)throw new Error("SpanColumn cannot be nested inside another SpanColumn")}set editable(h){this._editable=h}get editable(){return ye(this.editTemplateRef)&&this._editable}set width(h){}get width(){return this.childColumns.reduce((h,oe)=>h+oe.width,0)}get leafIndex(){return this.childColumns.first.leafIndex}get templateRef(){const h=this.template.first;return h?h.templateRef:void 0}get editTemplateRef(){const h=this.editTemplate.first;return h?h.templateRef:void 0}get colspan(){return this.childColumns.filter(h=>h.isVisible).length}set locked(h){this._locked=h}get locked(){return this._locked||this.childColumns.some(h=>h.locked)}get childrenArray(){return this.childColumns.toArray()}get hasChildren(){return this.childColumns.length>0}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(qa,13),e.Y36(Xd,8))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-span-column"]],contentQueries:function(h,oe,kt){if(1&h&&(e.Suo(kt,qh,4),e.Suo(kt,Mh,4),e.Suo(kt,Df,4)),2&h){let ti;e.iGM(ti=e.CRH())&&(oe.template=ti),e.iGM(ti=e.CRH())&&(oe.editTemplate=ti),e.iGM(ti=e.CRH())&&(oe.childColumns=ti)}},inputs:{editable:"editable",locked:"locked"},features:[e._Bn([{provide:qa,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})();const Bu=ie=>ie.reduce((Qe,h)=>Qe.concat(Au(h)?h.childrenArray:[h]),[]),ru=ie=>ie.reduce((Qe,h)=>Qe.concat(Au(h)?[h].concat(h.childrenArray):[h]),[]),mf=ie=>Bu(ie).filter(Qe=>Qe.isVisible),Rp=ie=>Qe=>(Qe||[]).reduce((h,oe)=>h+(oe[ie]||0),0),ah=Rp("width"),Qc=Rp("colspan"),kh=new RegExp("^[$A-Z_a-z][$A-Z_a-z0-9\\.]*$"),gf=ie=>ie.reduce((Qe,h)=>(h.isColumnGroup?Qe=Qe.concat(gf((ie=>ie.children.filter(Qe=>Qe!==ie))(h))):h.isSpanColumn?Qe=Qe.concat(h.childrenArray):Qe.push(h),Qe),[]).filter(Qe=>Qe.isVisible),Lp=(ie,...Qe)=>gf(Qe).some(ie),su=ie=>(0,K.Xo)(ie,[{field:"orderIndex",dir:"asc"}]),kf=ie=>st(ie.parent)&&Au(ie.parent);function $u(ie){return ie.isColumnGroup}let jh=(()=>{class ie extends qa{constructor(h,oe){if(super(h,oe),this.parent=h,this.includeInChooser=!1,this.isColumnGroup=!0,this.minResizableWidth=10,h&&h.isSpanColumn)throw new Error("ColumnGroupComponent cannot be nested inside SpanColumnComponent")}rowspan(){return 1}get colspan(){return this.children?Qc(this.children.filter(h=>h!==this&&h.isVisible)):1}get leafIndex(){return this.children?(this.firstChild||{}).leafIndex:-1}get childrenArray(){return this.children.filter(h=>h!==this)}get hasChildren(){return!!this.firstChild}get firstChild(){return this.children.find(h=>h!==this)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(qa,13),e.Y36(Xd,8))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-column-group"]],contentQueries:function(h,oe,kt){if(1&h&&e.Suo(kt,qa,4),2&h){let ti;e.iGM(ti=e.CRH())&&(oe.children=ti)}},features:[e._Bn([{provide:qa,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})();class Ih{constructor(Qe){this.columns=Qe,this.allColumns=new e.n_E,this.leafColumns=new e.n_E,this.lockedColumns=new e.n_E,this.nonLockedColumns=new e.n_E,this.lockedLeafColumns=new e.n_E,this.nonLockedLeafColumns=new e.n_E,this.totalLevels=0,this.changes=new e.vpe,this.leafColumnsToRender=[],this.lockedColumnsToRender=[],this.nonLockedColumnsToRender=[],this.hasGroupHeaderColumn=!1,this.hasGroupFooter=!1,this.hasFooter=!1,this.unlockedWidth=0}refresh(){const Qe=this.totalLevels,h=new Array,oe=new Array,kt=new Array,ti=new Array,Zo=new Array,hr=new Array,Cs=new Array,aa=new Array,$a=new Array;let ja=!1,Ll=!1,Gc=!1,Fc=0,_u=0;this.totalLevels=0,this.columns().forEach(Ld=>{const $f=!0===Ld.isLocked?oe:kt,Nu=!0===Ld.isLocked?ti:Zo,cf=!0===Ld.isLocked?aa:$a;$u(Ld)||($f.push(Ld),h.push(Ld),Cs.push(...mf([Ld])),cf.push(...mf([Ld])),ja=ja||Lp(ju=>!!ju.groupHeaderColumnTemplateRef,Ld),Ll=Ll||Lp(ju=>!!ju.groupFooterTemplateRef,Ld),Gc=Gc||Lp(ju=>!!ju.footerTemplateRef,Ld),Ld.isLocked||(Fc+=Ld.width||0),Ld.isSpanColumn?Ld.childColumns.forEach(ju=>{ju.leafIndex=_u++}):Ld.leafIndex=_u++),Nu.push(Ld),hr.push(Ld),this.totalLevels=Ld.level>this.totalLevels?Ld.level:this.totalLevels}),this.hasGroupHeaderColumn=ja,this.hasGroupFooter=Ll,this.hasFooter=Gc,this.leafColumnsToRender=Cs,this.lockedColumnsToRender=aa,this.nonLockedColumnsToRender=$a,this.unlockedWidth=Fc;const Vl=((...ie)=>{let Qe=!1;for(let h=0;h<ie.length;h++){const[oe,kt]=ie[h];Qe=Qe||oe.length!==kt.length,oe.reset(kt)}return Qe})([this.leafColumns,h],[this.lockedLeafColumns,oe],[this.nonLockedLeafColumns,kt],[this.lockedColumns,ti],[this.allColumns,hr],[this.nonLockedColumns,Zo])||Qe!==this.totalLevels;return Vl&&this.changes.emit(),Vl}}const Pd={left:"0px",right:"0px"};let Rd=(()=>{class ie{constructor(){this.visibilityChange=new e.vpe,this.lockedChange=new e.vpe,this.stickyChange=new e.vpe,this.columnRangeChange=new e.vpe,this.columnsContainer=new Ih(()=>[])}get lockedLeafColumns(){return this.columnsContainer.lockedLeafColumns}get nonLockedLeafColumns(){return this.columnsContainer.nonLockedLeafColumns}get isLocked(){return this.lockedLeafColumns.length>0}get totalLevels(){return this.columnsContainer.totalLevels}get hiddenColumns(){return this.list?this.list().filter(h=>!h.isVisible):[]}get leafNamedColumns(){const h=Bu(this.list().filterSort(oe=>!oe.isColumnGroup)).filter(oe=>oe.matchesMedia&&oe.displayTitle);return(0,K.Xo)(h,[{field:"locked",dir:"desc"}])}get unlockedRootCount(){return this.list().rootColumns().filter(h=>!h.locked&&h.isVisible).length}stickyColumnsStyles(h){if(this.stickyColumns||(this.stickyColumns=this.list().rootColumns().filter(kt=>kt.sticky&&!kt.locked&&kt.isVisible)),0===this.stickyColumns.length)return Pd;const oe=this.stickyColumns.reduce((kt,ti)=>(ti.leafIndex<h.leafIndex?kt.left+=ti.width:ti.leafIndex>h.leafIndex&&(kt.right+=ti.width),kt),{left:0,right:0});return{left:`${oe.left}px`,right:`${oe.right}px`}}init(h,oe){this.columnsContainer=h,this.list=oe,this.stickyColumns=null}changeVisibility(h){this.stickyColumns=null,this.visibilityChange.emit(h)}changeLocked(h){this.stickyColumns=null,this.lockedChange.emit(h)}changeStuck(h){this.stickyColumns=null,this.stickyChange.emit(h)}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),If=(()=>{class ie{constructor(h,oe,kt){this.ctx=h,this.dataChanges=oe,this.columnInfoService=kt,this.selectedItems=[],this.groupedAggregates={dates:[],numbers:[],booleans:[]},this.aggregates={sum:null,average:null,min:null,max:null,count:null,isTrue:null,isFalse:null,earliest:null,latest:null}}isAggregateIncluded(h){const{cellAggregates:oe}=this.ctx.grid.selectable;return"boolean"==typeof oe||oe?.includes(h)}init(){if(this.ctx.grid.selectable.cellAggregates){this.data=this.dataChanges.data?this.dataChanges.data:this.ctx.grid.data,this.isAggregateIncluded("count")&&(this.aggregates.count=0);const h=this.ctx.grid.selectionDirective;h&&!this.isRowSelection&&(this.selectedItems=h.selectedKeys)}}onSelectionChange(h){return this.handleSelectedItems(h),this.nullifyAggregates(),this.handleAggregateChanges(),this.aggregates}get isRowSelection(){return"boolean"==typeof this.ctx.grid.selectable||!this.ctx.grid.selectable.cell}handleAggregateChanges(){const h=this.columnInfoService.lockedLeafColumns.toArray(),oe=this.columnInfoService.nonLockedLeafColumns.toArray(),kt=this.selectedItems.length,ti=[...h,...oe],Zo=ti.map(hr=>hr.field);this.isAggregateIncluded("count")&&(this.aggregates.count=this.isRowSelection?kt*ti.length:kt),this.selectedItems.forEach(hr=>{if(this.isRowSelection)Zo.forEach(Cs=>{const aa=hr.dataItem;aa&&aa.hasOwnProperty(Cs)&&this.groupAggregates(hr.dataItem[Cs])});else if(!this.isRowSelection){const Cs=this.data[hr.itemKey];Cs&&Cs.hasOwnProperty(Zo[hr.columnKey])&&this.groupAggregates(Cs[Zo[hr.columnKey]])}}),this.calculateAggregates()}groupAggregates(h){"number"==typeof h?this.groupedAggregates.numbers.push(h):"boolean"==typeof h?this.groupedAggregates.booleans.push(h):h instanceof Date&&this.groupedAggregates.dates.push(h)}calculateAggregates(){if(this.groupedAggregates.numbers.length>0&&(this.isAggregateIncluded("min")&&(this.aggregates.min=Math.min(...this.groupedAggregates.numbers)),this.isAggregateIncluded("max")&&(this.aggregates.max=Math.max(...this.groupedAggregates.numbers)),this.isAggregateIncluded("sum")&&(this.aggregates.sum=this.groupedAggregates.numbers.reduce((h,oe)=>h+oe,0)),this.isAggregateIncluded("average")&&(this.aggregates.average=this.aggregates.sum/this.groupedAggregates.numbers.length)),this.groupedAggregates.booleans.length>0){if(this.isAggregateIncluded("isTrue")){const h=this.groupedAggregates.booleans.filter(oe=>oe).length;this.aggregates.isTrue=h>0?h:null}if(this.isAggregateIncluded("isFalse")){const h=this.groupedAggregates.booleans.length-this.aggregates.isTrue;this.aggregates.isFalse=h>0?h:null}}this.groupedAggregates.dates.length>0&&(this.isAggregateIncluded("earliest")&&(this.aggregates.earliest=new Date(Math.min(...this.groupedAggregates.dates))),this.isAggregateIncluded("latest")&&(this.aggregates.latest=new Date(Math.max(...this.groupedAggregates.dates))))}handleSelectedItems(h){const ti=h[this.isRowSelection?"selectedRows":"selectedCells"],Zo=h[this.isRowSelection?"deselectedRows":"deselectedCells"];this.isRowSelection||Zo.forEach((hr,Cs)=>{Cs+1<Zo.length&&hr.itemKey===Zo[Cs+1].itemKey&&hr.columnKey===Zo[Cs+1].columnKey&&Zo.splice(Cs,1)}),ti.length>0&&ti.forEach(hr=>{this.selectedItems=[...this.selectedItems,hr]}),Zo.length>0&&Zo.forEach(this.isRowSelection?hr=>{this.selectedItems=this.selectedItems.filter(Cs=>Cs.dataItem!==hr.dataItem)}:hr=>{const Cs=this.selectedItems.findIndex(aa=>aa.itemKey===hr.itemKey&&aa.columnKey===hr.columnKey);this.selectedItems.splice(Cs,1)})}nullifyAggregates(){this.groupedAggregates={dates:[],numbers:[],booleans:[]},this.aggregates.count=null,this.aggregates.sum=this.aggregates.average=null,this.aggregates.max=this.aggregates.min=null,this.aggregates.isFalse=this.aggregates.isTrue=null,this.aggregates.earliest=this.aggregates.latest=null}}return ie.\u0275fac=function(h){return new(h||ie)(e.LFG(Uo),e.LFG(yl),e.LFG(Rd))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),eu=(()=>{class ie{constructor(h,oe,kt,ti,Zo){this.domEvents=h,this.aggregateService=oe,this.localDataChangesService=kt,this.navigationService=ti,this.ctxService=Zo,this.changes=new e.vpe,this.currentSelection=[],this.selectAllChecked=!1,this.active=!1,this.dragging=!1,this.lastSelectionData={},this.addSubscriptions()}get enableMarquee(){if(!this.settings||this.settings&&"object"==typeof this.settings&&this.settings.checkboxOnly)return!1;const oe=this.settings.selectable,kt="object"==typeof oe&&ye(oe)&&"multiple"===oe.mode&&!1!==oe.enabled&&!oe.checkboxOnly&&oe.drag;return this.active&&kt}init(h){if(this.settings=h,ye(this.lastSelectionStartIndex)||(this.lastSelectionStartIndex=this.ctxService?.grid.selectionDirective?.rangeSelectionStartRow?.index||0,this.lastSelectionData=this.ctxService?.grid.selectionDirective?.rangeSelectionStartRow?.dataItem||{}),this.currentSelection=[],h.selectable&&!1!==h.selectable.enabled){const oe=this.getIterator();this._selectAllState=!0;let kt=oe.next();for(;!kt.done;){if(kt.value&&"data"===kt.value.type){const ti={dataItem:kt.value.data,index:kt.value.index};h.rowSelected(ti)?this.currentSelection[kt.value.index]=ti:this._selectAllState=void 0}kt=oe.next()}0===this.currentSelection.length&&(this._selectAllState=!1)}}isSelected(h){if(this.settings&&this.active)return this.options.enabled&&ye(this.currentSelection[h])}handleClick(h,oe){if(this.dragging)return void(this.dragging=!1);let kt;const ti=oe.ctrlKey||oe.metaKey;"single"===this.options.mode&&ti&&this.isSelected(h.index)?kt=this.toggle(h):"multiple"===this.options.mode&&(ti&&!oe.shiftKey?kt=this.toggle(h):oe.shiftKey&&(kt=this.addAllTo(h,ti))),ye(kt)||(kt=this.select(h),this.currentSelection[h.index]={dataItem:h.data,index:h.index}),(kt.selectedRows.length||kt.deselectedRows.length)&&(kt.ctrlKey=ti,kt.shiftKey=oe.shiftKey,this.options.cellAggregates&&(kt.cellAggregates=this.aggregateService.onSelectionChange(kt)),kt.shiftKey&&(kt.rangeStartRow={dataItem:this.lastSelectionData,index:this.lastSelectionStartIndex},kt.rangeEndRow={dataItem:h.data,index:h.index}),this.changes.emit(kt))}toggle(h){const oe=[],kt=[];this.lastSelectionStartIndex=h.index,this.lastSelectionData=h.data;const ti={dataItem:h.data,index:h.index};return this.isSelected(h.index)?kt.push(ti):oe.push(ti),{deselectedRows:kt,selectedRows:oe}}toggleByIndex(h){const oe=this.getIterator();this.selectAllChecked&&this.isSelected(h)&&(this.selectAllChecked=!1);let kt=oe.next();for(;!kt.done;){if(kt.value&&"data"===kt.value.type&&kt.value.index===h){const ti={data:kt.value.data,index:kt.value.index};return this.isSelected(h)||"multiple"===this.options.mode?this.toggle(ti):this.select(ti)}kt=oe.next()}}select(h){const oe=[],kt=[];return this.lastSelectionStartIndex=h.index,this.lastSelectionData=h.data,this.isSelected(h.index)||kt.push({dataItem:h.data,index:h.index}),this.currentSelection.forEach(ti=>{ti.index!==h.index&&oe.push(ti)}),{deselectedRows:oe,selectedRows:kt}}deselect(h){const oe=this.getIterator();let kt=oe.next();for(;!kt.done;){if(kt.value&&"data"===kt.value.type&&kt.value.data===h){const ti={dataItem:kt.value.data,index:kt.value.index};this.isSelected(ti.index)&&this.changes.emit({ctrlKey:!1,deselectedRows:[ti],selectedRows:[]})}kt=oe.next()}}addAllTo(h,oe){const kt=[],ti=[],Zo=Math.min(this.lastSelectionStartIndex,h.index),hr=Math.max(this.lastSelectionStartIndex,h.index),Cs=this.getIterator();let aa=Cs.next();for(;!aa.done;){if(aa.value&&"data"===aa.value.type){const $a=aa.value.index,ja={dataItem:aa.value.data,index:$a};($a<Zo||$a>hr)&&this.isSelected($a)&&!oe&&ti.push(ja),$a>=Zo&&$a<=hr&&!this.isSelected($a)&&kt.push(ja)}aa=Cs.next()}return{deselectedRows:ti,selectedRows:kt}}updateAll(h){this.selectAllChecked=h;const oe=[],kt=[],ti=this.getIterator();let Zo=ti.next();for(;!Zo.done;){if(Zo.value&&"data"===Zo.value.type){const Cs=Zo.value.index,aa={dataItem:Zo.value.data,index:Cs};this.isSelected(Cs)&&!h&&kt.push(aa),!this.isSelected(Cs)&&h&&oe.push(aa)}Zo=ti.next()}if(!oe.length&&!kt.length)return;const hr={ctrlKey:!0,deselectedRows:kt,selectedRows:oe,shiftKey:!0};this.options.cellAggregates&&(hr.cellAggregates=this.aggregateService.onSelectionChange(hr)),this.changes.emit(hr)}selectRange(h,oe){const kt=[],ti=[],Zo=Math.min(h,oe),hr=Math.max(h,oe),Cs=this.getIterator();let $a,aa=Cs.next();for(;!aa.done;){if(aa.value&&"data"===aa.value.type){const ja=aa.value.index,Ll={dataItem:aa.value.data,index:ja};(ja<Zo||ja>hr)&&this.isSelected(ja)&&ti.push(Ll),ja>=Zo&&ja<=hr&&!this.isSelected(ja)&&kt.push(Ll)}aa=Cs.next()}return this.options.cellAggregates&&($a=this.aggregateService.onSelectionChange({selectedRows:kt,deselectedRows:ti})),{deselectedRows:ti,selectedRows:kt,cellAggregates:$a}}get selectAllState(){return this._selectAllState}get selected(){return this.currentSelection.map(h=>h.index).filter(h=>"number"==typeof h)}get options(){const h={cellAggregates:!1,checkboxOnly:!1,enabled:!0,mode:"multiple"};return ye(this.settings)?"boolean"==typeof this.settings.selectable?{cellAggregates:!1,checkboxOnly:!1,enabled:this.settings.selectable,mode:"multiple"}:Object.assign(h,this.settings.selectable):h}ngOnDestroy(){this.removeSubscriptions()}targetArgs(){return{index:this.mouseDownEventArgs.rowIndex,dataItem:this.mouseDownEventArgs.dataItem}}addSubscriptions(){this.cellClickSubscription||(this.cellClickSubscription=this.domEvents.cellClick.subscribe(h=>{this.options.enabled&&!this.options.checkboxOnly&&"contextmenu"!==h.type&&this.active&&this.handleClick({index:h.rowIndex,data:h.dataItem},h.originalEvent)})),this.mousedownSubscription||(this.mousedownSubscription=this.domEvents.cellMousedown.subscribe(h=>{this.mouseDownEventArgs=h,this.options.enabled&&(!this.options.mode||"multiple"===this.options.mode)&&!this.options.checkboxOnly&&h.originalEvent.shiftKey&&this.active&&(h.originalEvent.preventDefault(),this.navigationService.focusCellByElement(h.originalEvent.target))})),this.localDataChangesService&&!this.dataChangedSubscription&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(h=>{this.active&&ye(h.action)&&"remove"===h.action&&this.deselect(h.item)}))}getIterator(){const h=this.settings.view.accessor();if(h)return h[dt]()}removeSubscriptions(){this.cellClickSubscription&&(this.cellClickSubscription.unsubscribe(),this.cellClickSubscription=null),this.mousedownSubscription&&(this.mousedownSubscription.unsubscribe(),this.mousedownSubscription=null),this.dataChangedSubscription&&(this.dataChangedSubscription.unsubscribe(),this.dataChangedSubscription=null)}}return ie.\u0275fac=function(h){return new(h||ie)(e.LFG(ml),e.LFG(If),e.LFG(yl),e.LFG(Su),e.LFG(Uo))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),lh=(()=>{class ie{constructor(h,oe,kt,ti){this.domEvents=h,this.aggregateService=oe,this.localDataChangesService=kt,this.navigationService=ti,this.changes=new e.vpe,this.mouseUpEvent=new e.vpe,this.currentSelection=[],this.active=!1,this.dragging=!1,this.dragSelectDeselect=!1,this.lastSelectionItem={itemKey:0,columnKey:0},this.lastSelectionItemRowIndex=0,this.lastSelectionItemColIndex=0,this.addSubscriptions()}get enableMarquee(){if(!this.settings||this.settings&&"object"==typeof this.settings&&this.settings.checkboxOnly)return!1;const oe=this.settings.selectable,kt="object"==typeof oe&&ye(oe)&&"multiple"===oe.mode&&oe.cell&&!1!==oe.enabled&&oe.drag;return this.active&&kt}init(h){if(this.settings=h,this.currentSelection=[],h.selectable&&!1!==h.selectable.enabled){const oe=this.getIterator();let kt=oe.next();for(;!kt.done;){if(kt.value&&"data"===kt.value.type){const ti={dataItem:kt.value.data,index:kt.value.index};h.columns.forEach(Zo=>{const hr=h.cellSelected(ti,Zo,Zo.leafIndex);hr.selected&&this.currentSelection.push(hr.item)})}kt=oe.next()}}}isCellSelected(h,oe){if(this.settings&&this.active){const kt=this.settings.cellSelected({dataItem:h.data,index:h.index},oe,oe.leafIndex);return this.options.enabled&&kt.selected}return!1}handleClick(h,oe){if(this.dragging)return void(this.dragging=!1);let kt;const ti=oe.ctrlKey||oe.metaKey;if("single"===this.options.mode&&ti&&this.isCellSelected(h,h.column))kt=this.toggle(h);else if("multiple"===this.options.mode)if(ti&&!oe.shiftKey)kt=this.toggle(h);else if(oe.shiftKey){const Zo=Math.min(this.lastSelectionItemRowIndex,h.index),hr=Math.min(this.lastSelectionItemColIndex,h.column.leafIndex),Cs=Math.max(this.lastSelectionItemRowIndex,h.index),aa=Math.max(this.lastSelectionItemColIndex,h.column.leafIndex);kt=this.selectRange(Zo,hr,Cs,aa)}ye(kt)||(kt=this.select(h),this.currentSelection=[this.lastSelectionItem]),(kt.selectedCells.length||kt.deselectedCells.length)&&(kt.ctrlKey=ti,kt.shiftKey=oe.shiftKey,this.options.cellAggregates&&!oe.shiftKey&&(kt.cellAggregates=this.aggregateService.onSelectionChange(kt)),kt.shiftKey&&(kt.rangeStartCell=this.lastSelectionItem,kt.rangeEndCell={...this.settings.cellSelected({dataItem:h.data,index:h.index},h.column,h.column.leafIndex).item}),this.changes.emit(kt))}toggle(h){const oe=[],kt=[];return this.lastSelectionItem=this.settings.cellSelected({dataItem:h.data,index:h.index},h.column,h.column.leafIndex).item,this.lastSelectionItemRowIndex=h.index,this.lastSelectionItemColIndex=h.column.leafIndex,this.isCellSelected(h,h.column)?kt.push(this.lastSelectionItem):oe.push(this.lastSelectionItem),{deselectedCells:kt,selectedCells:oe}}select(h){const oe=[],kt=[];return this.lastSelectionItem=this.settings.cellSelected({dataItem:h.data,index:h.index},h.column,h.column.leafIndex).item,this.lastSelectionItemRowIndex=h.index,this.lastSelectionItemColIndex=h.column.leafIndex,this.isCellSelected(h,h.column)||oe.push(this.lastSelectionItem),this.currentSelection.forEach(ti=>{(ti.itemKey!==this.lastSelectionItem.itemKey||ti.columnKey!==this.lastSelectionItem.columnKey)&&kt.push(ti)}),{deselectedCells:kt,selectedCells:oe}}deselect(h){const oe=this.getIterator();let ti,kt=oe.next();for(;!kt.done;){if(kt.value&&"data"===kt.value.type&&kt.value.data===h){ti={dataItem:kt.value.data,index:kt.value.index};break}kt=oe.next()}if(ti){const Zo=this.currentSelection.filter(hr=>{const Cs=this.settings.cellSelected(ti,null,null).item;return hr.itemKey===Cs.itemKey});Zo.length&&this.changes.emit({ctrlKey:!1,deselectedCells:Zo,selectedCells:[]})}}selectRange(h,oe,kt,ti){const Zo=[],hr=[],Cs=Math.min(h,kt),aa=Math.min(oe,ti),$a=Math.max(h,kt),ja=Math.max(oe,ti),Ll=this.getIterator();let Fc,Gc=Ll.next();for(;!Gc.done;){if(Gc.value&&"data"===Gc.value.type){const _u=Gc.value.index,Ld={dataItem:Gc.value.data,index:_u};this.settings.columns.forEach($f=>{const{item:Nu}=this.settings.cellSelected(Ld,$f,$f.leafIndex),cf=this.isCellSelected(Gc.value,$f),Tg=Cs<=_u&&_u<=$a&&aa<=$f.leafIndex&&$f.leafIndex<=ja;!Tg&&cf&&hr.push(Nu),Tg&&!cf&&Zo.push(Nu)})}Gc=Ll.next()}return this.options.cellAggregates&&(Fc=this.aggregateService.onSelectionChange({selectedCells:Zo,deselectedCells:hr})),{deselectedCells:hr,selectedCells:Zo,cellAggregates:Fc}}get options(){const h={cellAggregates:!1,checkboxOnly:!1,enabled:!0,mode:"multiple"};return ye(this.settings)?"boolean"==typeof this.settings.selectable?{cellAggregates:!1,checkboxOnly:!1,enabled:this.settings.selectable,mode:"multiple"}:Object.assign(h,this.settings.selectable):h}ngOnDestroy(){this.removeSubscriptions()}addSubscriptions(){this.cellClickSubscription||(this.cellClickSubscription=this.domEvents.cellClick.subscribe(h=>{this.options.enabled&&!this.options.checkboxOnly&&"contextmenu"!==h.type&&this.active&&this.handleClick({index:h.rowIndex,data:h.dataItem,column:h.column},h.originalEvent)})),this.mousedownSubscription||(this.mousedownSubscription=this.domEvents.cellMousedown.subscribe(h=>{this.mouseDownEventArgs=h,this.options.enabled&&(!this.options.mode||"multiple"===this.options.mode)&&!this.options.checkboxOnly&&h.originalEvent.shiftKey&&this.active&&(h.originalEvent.preventDefault(),this.navigationService.focusCellByElement(h.originalEvent.target))})),this.localDataChangesService&&!this.dataChangedSubscription&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(h=>{this.active&&ye(h.action)&&"remove"===h.action&&this.deselect(h.item)}))}getIterator(){const h=this.settings.view.accessor();if(h)return h[dt]()}removeSubscriptions(){this.cellClickSubscription&&(this.cellClickSubscription.unsubscribe(),this.cellClickSubscription=null),this.mousedownSubscription&&(this.mousedownSubscription.unsubscribe(),this.mousedownSubscription=null),this.dataChangedSubscription&&(this.dataChangedSubscription.unsubscribe(),this.dataChangedSubscription=null)}}return ie.\u0275fac=function(h){return new(h||ie)(e.LFG(ml),e.LFG(If),e.LFG(yl),e.LFG(Su))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})();const tp={topLeft:{x:2,y:2},topRight:{x:-2,y:2},bottomLeft:{x:2,y:-2},bottomRight:{x:-2,y:-2}};let Qu=(()=>{class ie{constructor(h,oe,kt,ti){this.draggable=h,this.selection=oe,this.cellSelection=kt,this.domEvents=ti,this.selectionStarted=!1}get webkitUserSelection(){return this.cellSelection.enableMarquee||this.selection.enableMarquee?"none":null}get userSelection(){return this.cellSelection.enableMarquee||this.selection.enableMarquee}ngOnInit(){this.subscriptions=this.draggable.kendoPress.subscribe(this.start.bind(this)),this.subscriptions.add(this.draggable.kendoDrag.subscribe(this.moveMarquee.bind(this)))}ngOnDestroy(){this.subscriptions.unsubscribe(),this.clean()}start(h){h.originalEvent.target.matches(".k-grid-content, .k-grid-content-locked, .k-grid-aria-root, .k-checkbox")?this.pressArgs=null:(this.pressArgs=h,this.pressTarget=null)}moveMarquee(h){this.pressTarget||(this.pressTarget=this.cellSelection.active?this.cellSelection.mouseDownEventArgs:this.selection.mouseDownEventArgs);const oe=this.pressArgs;if(!oe)return;if(!this.selectionStarted){if(!(Math.sqrt((h.pageX-oe.pageX)**2+(h.pageY-oe.pageY)**2)>5))return;this.selectionStarted=!0,this.dragEndSubscription=(0,o.T)(this.domEvents.cellMouseup.pipe((0,f.q)(1)),this.draggable.kendoRelease.pipe((0,p.g)(1),(0,f.q)(1))).subscribe(this.endSelection.bind(this))}this.initMarquee();const kt=this.marqueeElement,ti=this.getMarqueeQuadrant(h.pageX,h.pageY,oe.pageX,oe.pageY);let Zo=Math.min(h.pageX,oe.pageX),hr=Math.min(h.pageY,oe.pageY);const Cs=Math.abs(h.pageX-oe.pageX),aa=Math.abs(h.pageY-oe.pageY);ti&&(Zo+=tp[ti].x,hr+=tp[ti].y),kt.style.left=`${Zo}px`,kt.style.top=`${hr}px`,kt.style.width=`${Cs}px`,kt.style.height=`${aa}px`}endSelection(h){("mouseup"===h.type||"touchend"===h.type)&&(this.cellSelection.active?(this.cellSelection.dragging=!0,this.cellSelection.changes.emit(this.cellSelection.selectRange(this.pressTarget.rowIndex,this.pressTarget.column.leafIndex,h.rowIndex,h.column.leafIndex))):this.selection.active&&(this.selection.dragging=!0,this.selection.changes.emit(this.selection.selectRange(this.pressTarget.rowIndex,h.rowIndex)))),this.clean()}clean(){this.marqueeElement&&(document.body.removeChild(this.marqueeElement),this.marqueeElement=null),this.dragEndSubscription&&this.dragEndSubscription.unsubscribe(),this.dragEndSubscription=null,this.pressTarget=null,this.pressArgs=null,this.selectionStarted=!1,this.cellSelection.active?this.cellSelection.dragging=!1:this.selection.dragging=!1}initMarquee(){(0,n.X_)()&&(this.marqueeElement||(this.marqueeElement=(()=>{if(!(0,n.X_)())return;const ie=document.createElement("div");ie.className="k-marquee";const Qe=document.createElement("div");return Qe.className="k-marquee-color",ie.appendChild(Qe),ie})(),document.body.appendChild(this.marqueeElement)))}getMarqueeQuadrant(h,oe,kt,ti){const Zo=h<kt,hr=h>kt,Cs=oe<ti,aa=oe>ti;return Zo&&Cs?"topLeft":Zo&&aa?"bottomLeft":hr&&Cs?"topRight":hr&&aa?"bottomRight":null}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(n.pD),e.Y36(eu),e.Y36(lh),e.Y36(ml))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridSelectionMarquee",""]],hostVars:4,hostBindings:function(h,oe){2&h&&(e.Udp("-webkit-user-select",oe.webkitUserSelection),e.ekj("user-select-none",oe.userSelection))}}),ie})();class Yh extends e.vpe{constructor(Qe,h=!1){super(h),this.ngZone=Qe}subscribe(Qe,h,oe){let kt,ti=hr=>null,Zo=()=>null;return Qe&&"object"==typeof Qe?(kt=hr=>{this.ngZone.run(()=>Qe.next(hr))},Qe.error&&(ti=hr=>{this.ngZone.run(()=>Qe.error(hr))}),Qe.complete&&(Zo=()=>{this.ngZone.run(()=>Qe.complete())})):(kt=hr=>{this.ngZone.run(()=>Qe(hr))},h&&(ti=hr=>{this.ngZone.run(()=>h(hr))}),oe&&(Zo=()=>{this.ngZone.run(()=>oe())})),super.subscribe(kt,ti,Zo)}}const zu={name:"@progress/kendo-angular-grid",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1694533110,version:"13.5.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};let dh=(()=>{class ie{constructor(h){this.templateRef=h,this._condition=()=>!0}set showIf(h){if("function"!=typeof h)throw new Error(`showIf must be a function, but received ${JSON.stringify(h)}.`);this._condition=h}get showIf(){return this._condition}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.Rgc,8))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridDetailTemplate",""]],inputs:{showIf:["kendoGridDetailTemplateShowIf","showIf"]}}),ie})();const _f=()=>(0,n.X_)()&&document.createElement;let Xp,_h=null,Ou=null,ac=(()=>{class ie{constructor(h,oe){this.zone=h,this.changeDetector=oe,this.changes=new e.vpe,!(typeof window>"u")&&this.zone.runOutsideAngular(()=>{this.subscriptions=(0,A.R)(window,"resize").pipe((0,E.e)(100)).subscribe(()=>{Xp!==window.devicePixelRatio&&h.run(()=>{_h=null,this.changes.emit(),this.changeDetector.markForCheck()})})})}ngOnDestroy(){this.subscriptions&&(this.subscriptions.unsubscribe(),this.subscriptions=null)}get scrollbarWidth(){return function _m(){if(null===_h&&_f()){Xp=window.devicePixelRatio||1;const ie=document.createElement("div");ie.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",ie.innerHTML="&nbsp;",document.body.appendChild(ie),_h=ie.offsetWidth-ie.scrollWidth,document.body.removeChild(ie)}return _h}()}get rtlScrollLeft(){return function Af(){if(null===Ou&&_f()){const ie=document.createElement("div");ie.style.direction="rtl",ie.style.display="block",ie.style.clear="both",ie.style.width="100px",ie.style.visibility="hidden",ie.style.position="absolute",ie.style.left="-10000px",ie.style.overflow="scroll",ie.style.zoom="1";const Qe=document.createElement("div");Qe.style.width="200px",Qe.style.height="1px",ie.append(Qe),document.body.appendChild(ie);const h=ie.scrollLeft;ie.scrollLeft=-1,Ou=ie.scrollLeft<0?ie.scrollLeft:h,document.body.removeChild(ie)}return Ou}()}}return ie.\u0275fac=function(h){return new(h||ie)(e.LFG(e.R0b),e.LFG(e.sBO))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})();const au=ie=>void 0!==ie.items&&void 0!==ie.field,Of=ie=>ie.reduce((Qe,h)=>au(h)?Qe.concat(Of(h.items)):Qe.concat([h]),[]),vm=(ie,{footers:Qe,level:h,dataIndex:oe,parentGroupIndex:kt,groupIndex:ti,parentGroup:Zo})=>{const hr=ie[0];return ye(hr)&&au(hr)?((ie=>void 0!==ie.offset&&void 0!==ie.skipHeader)(hr)&&(ti=ye(hr.offset)?hr.offset:ti),new Ze(ie,Qe,h,oe,kt,ti,Zo)):new Ri(ie,oe,kt,Zo)};class Np{constructor(Qe,h=0){this.arr=Qe,this.idx=h,this.arr=Qe||[]}[dt](){return this}next(){return this.idx<this.arr.length?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}}}class Yt{constructor(Qe,h=0,oe=(kt=>kt)){this.dataIndex=h,this.resultMap=oe,this._innerIterator=Qe[dt]?Qe[dt]():new Np(Qe)}[dt](){return this}next(){return this.resultMap(this._innerIterator.next(),this.dataIndex++)}}class Ri extends Yt{constructor(Qe,h,oe,kt){super(Qe,h,(ti,Zo)=>({done:ti.done,value:{data:ti.value,groupIndex:oe,index:Zo,type:"data",group:kt}}))}get index(){return this.dataIndex}}class Ze{constructor(Qe,h=!1,oe=0,kt=0,ti="",Zo=0,hr=void 0){this.arr=Qe,this.outputFooters=h,this.level=oe,this.dataIndex=kt,this.parentIndex=ti,this.groupIndex=Zo,this.parentGroup=hr,this.currentGroupIndex="",this.arr=Qe||[],this._iterator=new Yt(this.arr,this.dataIndex)}[dt](){return this}nextGroupItem(){return this.current=this._iterator.next().value,this._innerIterator=null,this.current?(this.currentGroupIndex=`${(ie=this.parentIndex)&&ie+"_"}${this.groupIndex++}`,{done:!1,value:{data:this.current,index:this.currentGroupIndex,level:this.level,type:"group",parentGroup:this.parentGroup}}):(this.current=null,{done:!0,value:void 0});var ie}footerItem(){if(this.current){const Qe=this.current;return this.current=null,{done:!1,value:{data:Qe,groupIndex:this.currentGroupIndex,level:this.level,type:"footer",group:{data:Qe,index:this.currentGroupIndex,level:this.level,type:"group",parentGroup:this.parentGroup}}}}return this.current=null,{done:!0,value:void 0}}innerIterator(Qe){return this._innerIterator||(this._innerIterator=vm(Qe.items,{dataIndex:this.dataIndex,footers:this.outputFooters,level:this.level+1,parentGroupIndex:this.currentGroupIndex,parentGroup:{data:this.current,index:this.currentGroupIndex,level:this.level,type:"group",parentGroup:this.parentGroup}})),this._innerIterator}nextDataItem(Qe){const oe=this.innerIterator(Qe).next();return ye(oe.value)&&!oe.done&&"data"===oe.value.type&&(this.dataIndex=oe.value.index+1),oe.done?void 0:oe}next(){return ye(this.current)?this.nextDataItem(this.current)||(this.outputFooters?this.footerItem():this.nextGroupItem()):this.nextGroupItem()}get index(){return this.dataIndex+1}}class Yn{constructor(Qe,h=0,oe=!1){this.source=Qe,this.skip=h,this.groupFooters=oe,this.source=this.source?this.source:[],this.isObject=this.isGridDataResult(this.source)}isGridDataResult(Qe){return void 0!==Qe.total&&void 0!==Qe.data}get total(){return this.isObject?this.source.total:this.source.length}get data(){return this.isObject?this.source.data:this.source}map(Qe){return this.data.map(Qe)}filter(Qe){return this.data.filter(Qe)}reduce(Qe,h){return this.data.reduce(Qe,h)}forEach(Qe){this.data.forEach(Qe)}some(Qe){return this.data.some(Qe)}[dt](){return vm(this.data,{dataIndex:this.skip,footers:this.groupFooters,groupIndex:this.skip})}toString(){return this.data.toString()}}class Bo{constructor(Qe){this.accessor=Qe}get total(){return this.accessor().total}get length(){return this.accessor().data.length}get first(){return this.accessor().data[0]}get last(){return this.accessor().data[this.length-1]}at(Qe){return((ie,Qe)=>{const h=ie[0];return ye(h)&&au(h)?Of(ie)[Qe]:ie[Qe]})(this.accessor().data,Qe)}map(Qe){return this.accessor().map(Qe)}filter(Qe){return this.accessor().filter(Qe)}reduce(Qe,h){return this.accessor().reduce(Qe,h)}forEach(Qe){this.accessor().forEach(Qe)}some(Qe){return this.accessor().some(Qe)}[dt](){return this.accessor()[dt]()}toString(){return this.accessor().toString()}}class $r{constructor(Qe,h,oe){this.keysX=new Map,this.totalKeysCount=0,Qe&&h&&oe&&Qe.forEach(kt=>this.add(kt[h],kt[oe]))}get size(){return this.totalKeysCount}add(Qe,h){this.keysX.has(Qe)||this.keysX.set(Qe,new Set),this.has(Qe,h)||(this.keysX.get(Qe).add(h),this.totalKeysCount+=1)}delete(Qe,h){this.has(Qe,h)&&(this.keysX.get(Qe).delete(h),this.totalKeysCount-=1)}has(Qe,h){return this.keysX.has(Qe)&&this.keysX.get(Qe).has(h)}clear(){this.keysX.clear(),this.totalKeysCount=0}toArray(Qe,h){return Array.from(this.keysX).reduce((oe,kt)=>{const[ti,Zo]=kt;return Array.from(Zo).forEach(hr=>oe.push({[Qe]:ti,[h]:hr})),oe},[])}}let ea=(()=>{class ie{constructor(h,oe){this.ctx=h,this.cd=oe,this.selectedKeys=[],this.rangeSelectionStartColumnIndex=0,this.selectedKeysChange=new e.vpe,this.rowSelectionState=new Set,this.cellSelectionState=new $r,this.init()}get isCellSelectionMode(){return ye(this.ctx.grid.selectable)&&this.ctx.grid.selectable.cell}ngOnChanges(h){ye(h.selectedKeys)&&this.lastSelectionState!==this.selectedKeys&&this.setState(this.selectedKeys)}init(){ye(this.ctx.grid.rowSelected)||(this.ctx.grid.rowSelected=h=>this.rowSelectionState.has(this.getItemKey(h))),ye(this.ctx.grid.cellSelected)||(this.ctx.grid.cellSelected=(h,oe,kt)=>{const ti=this.getSelectionItem(h,oe,kt);return{selected:this.cellSelectionState.has(ti.itemKey,ti.columnKey),item:ti}}),this.selectionChangeSubscription=this.ctx.grid.selectionChange.subscribe(this.onSelectionChange.bind(this))}destroy(){this.selectionChangeSubscription.unsubscribe()}reset(){this.rowSelectionState.clear(),this.cellSelectionState.clear()}getItemKey(h){if(this.selectionKey){if("string"==typeof this.selectionKey)return h.dataItem[this.selectionKey];if("function"==typeof this.selectionKey)return this.selectionKey(h)}return h.index}getSelectionItem(h,oe,kt){const ti={};return ti.itemKey=this.getItemKey(h),ye(oe)||ye(kt)?(this.columnKey&&("string"==typeof this.columnKey&&(ti.columnKey=h.dataItem[this.columnKey]),"function"==typeof this.columnKey&&(ti.columnKey=this.columnKey(oe,kt))),{itemKey:ti.itemKey,columnKey:ti.columnKey?ti.columnKey:kt}):ti}onSelectionChange(h){h.selectedRows?(h.deselectedRows.forEach(oe=>{const kt=this.getItemKey(oe);this.rowSelectionState.delete(kt)}),"single"===this.ctx.grid.selectableSettings.mode&&this.rowSelectionState.size>0&&this.reset(),h.selectedRows.forEach(oe=>{const kt=this.getItemKey(oe);this.rowSelectionState.add(kt)})):(h.deselectedCells.forEach(({itemKey:oe,columnKey:kt})=>{this.cellSelectionState.delete(oe,kt)}),"single"===this.ctx.grid.selectableSettings.mode&&this.cellSelectionState.size>0&&this.reset(),h.selectedCells.forEach(({itemKey:oe,columnKey:kt})=>{this.cellSelectionState.add(oe,kt)})),this.cd.markForCheck(),this.notifyChange()}notifyChange(){this.lastSelectionState=this.stateToArray(),this.selectedKeysChange.emit(this.lastSelectionState)}setState(h){this.reset(),this.isCellSelectionMode?this.cellSelectionState=new $r(h,"itemKey","columnKey"):this.rowSelectionState=new Set(h)}stateToArray(){return this.isCellSelectionMode?this.cellSelectionState.toArray("itemKey","columnKey"):Array.from(this.rowSelectionState)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo),e.Y36(e.sBO))},ie.\u0275dir=e.lG2({type:ie,selectors:[["kendo-grid-selection-base"]],inputs:{selectedKeys:"selectedKeys",rangeSelectionStartRow:"rangeSelectionStartRow",rangeSelectionStartColumnIndex:"rangeSelectionStartColumnIndex",selectionKey:["kendoGridSelectBy","selectionKey"],columnKey:"columnKey"},outputs:{selectedKeysChange:"selectedKeysChange"},features:[e.TTD]}),ie})();const Fa=(ie,Qe)=>{ie.forEach(h=>{Qe(h),h.isColumnGroup&&h.hasChildren&&Fa(h.childrenArray,Qe)})},el=(ie,Qe)=>{su(ie).forEach(h=>{Qe(h),h.isColumnGroup&&h.hasChildren&&el(h.childrenArray,Qe)})},bl=(ie,Qe)=>{const h=[];return su(ie).forEach(oe=>{if(Qe(oe))if(oe.isColumnGroup){const kt=bl(oe.childrenArray,Qe);kt.length&&h.push(oe,...kt)}else(!oe.isSpanColumn||bl(oe.childrenArray,Qe).length)&&h.push(oe)}),h.sort((oe,kt)=>Number(kt.locked)-Number(oe.locked))};class Ql{constructor(Qe){this.columns=Qe}static empty(){return new Ql(new e.n_E)}forEach(Qe){Fa(this.columns,Qe)}filter(Qe){const h=[];return Fa(this.columns,oe=>{Qe(oe)&&h.push(oe)}),h}filterHierarchy(Qe){return bl(this.columns.toArray(),Qe)}filterSort(Qe){const h=[];return el(this.columns.toArray(),oe=>{Qe(oe)&&h.push(oe)}),h}toArray(){const Qe=[];return Fa(this.columns,h=>{Qe.push(h)}),Qe}rootColumns(){return this.columns.toArray()}totalColumnLevels(){let Qe=0;return this.forEach(h=>{Qe=Math.max(h.level,Qe)}),Qe}}class Pl{constructor(){this._columnList=Ql.empty}get columns(){return Bu(this._columnList().toArray()).filter(Wh)}registerColumnsContainer(Qe){this._columnList=Qe}formatForGroup(Qe){const h=this.columnForGroup(Qe);return h?h.format:""}isGroupable(Qe){const[h]=this.columns.filter(oe=>oe.field===Qe);return!h||h.groupable}groupTitle(Qe){const h=this.columnForGroup(Qe);return h?h.title||h.field:this.groupField(Qe)}groupHeaderTemplate(Qe){const h=this.columnForGroup(Qe);return h?h.groupHeaderTemplateRef||h.groupHeaderColumnTemplateRef:void 0}groupField(Qe){return Qe.data?Qe.data.field:Qe.field}columnForGroup(Qe){const h=this.groupField(Qe),[oe]=this.columns.filter(kt=>kt.field===h);return oe}}let Zl=(()=>{class ie{constructor(h){this.ngZone=h,this.changes=new e.vpe}notify(){(!this.subscription||this.subscription.closed)&&(this.subscription=this.ngZone.onStable.asObservable().pipe((0,f.q)(1)).subscribe(()=>this.changes.emit()))}}return ie.\u0275fac=function(h){return new(h||ie)(e.LFG(e.R0b))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),kc=(()=>{class ie{constructor(h){this.templateRef=h}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.Rgc,8))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridNoRecordsTemplate",""]]}),ie})();const Eu=ie=>Qe=>Qe.forEach(h=>h.style.height=ie),zl=(ie,Qe)=>{if(!(0,n.X_)())return;const h=document.activeElement,oe=((ie,Qe)=>{const h=[];for(let oe=0,kt=ie.length;oe<kt&&Qe[oe];oe++)h.push([ie[oe],Qe[oe]]);return h})(ie.rows,Qe.rows);(ie=>{ie.filter(([Qe,h])=>Qe.style.height||h.style.height).forEach(Eu(""))})(oe);const kt=(ie=>ie.map(([Qe,h])=>{const oe=Qe.offsetHeight,kt=h.offsetHeight;return oe<kt?kt:oe}))(oe);[ie,Qe].forEach(ti=>ti.style.display="none"),oe.forEach((ie=>(Qe,h)=>Eu(`${ie[h]+1}px`)(Qe))(kt)),[ie,Qe].forEach(ti=>ti.style.display=""),document.activeElement!==h&&(ie.contains(h)||Qe.contains(h))&&h.focus()};let Uu=(()=>{class ie{constructor(){this.isColumnMenu=!1,this.isPopupOpen=!1,this.isTabbedInterface=!1}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),Xc=(()=>{class ie{constructor(h){this.changes=new l.x,this.menuTabbingService=h}filter(h){this.changes.next(h)}}return ie.\u0275fac=function(h){return new(h||ie)(e.LFG(Uu,8))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),Tc=(()=>{class ie{constructor(h){this.templateRef=h}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.Rgc,8))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoPagerTemplate",""]]}),ie})(),vh=(()=>{class ie{constructor(){this.savePDF=new e.vpe,this.drawPDF=new e.vpe,this.exportClick=new e.vpe,this.dataChanged=new e.vpe}save(h){this.emitEvent(this.savePDF,h)}draw(h,oe){this.emitEvent(this.drawPDF,{component:h,promise:oe})}emitEvent(h,oe){if(0===h.observers.length){if((0,e.X6Q)())throw new Error("Creating PDF requires including the PDFModule and adding the <kendo-grid-pdf> component.")}else h.emit(oe)}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})();class vp extends Nd{constructor(){super()}}let nf=(()=>{class ie{constructor(){this.scroll=!1}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})();const Hf=ie=>window.matchMedia(ie).matches;let Vf=(()=>{class ie{constructor(){this.matchMedia=Hf}matchesMedia(h){return!h||this.matchMedia((ie=>({xs:"(max-width: 576px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"}[ie]||ie))(h))}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),Fp=(()=>{class ie{constructor(){this.saveToExcel=new e.vpe,this.exportClick=new e.vpe}save(h){if(0===this.saveToExcel.observers.length){if((0,e.X6Q)())throw new Error("Saving excel requires including the ExcelModule and adding the <kendo-grid-excel> component.")}else this.saveToExcel.emit(h)}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),Bp=(()=>{class ie{constructor(h){this.templateRef=h,this._position="top"}set position(h){this._position=h}get position(){return this._position}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.Rgc,8))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridToolbarTemplate",""]],inputs:{position:"position"}}),ie})(),qp=(()=>{class ie{constructor(h){this.ngZone=h,this.changes=new l.x,this.elements=[],this.subscriptions=new d.w0,this.headerSubscription=new d.w0,this.bodySubscription=new d.w0,this.subscriptions.add(this.changes.subscribe(oe=>this.scrollLeft(oe)))}registerEmitter(h,oe){this.unregister(oe),this.elements.push({element:h,sourceType:oe}),("body"===oe||"header"===oe)&&this.ngZone.runOutsideAngular(()=>{const kt=(0,A.R)(h,"scroll").pipe((0,k.U)(({target:{scrollLeft:Zo}})=>({scrollLeft:Zo,sourceType:oe}))),ti=kt.pipe((0,b.x)((Zo,hr)=>Zo.scrollLeft===hr.scrollLeft),(0,w.h)(Zo=>!this.source||this.source===Zo.sourceType),(0,I.b)(Zo=>this.source=Zo.sourceType)).subscribe(Zo=>this.changes.next(Zo));ti.add(kt.pipe((0,w.h)(Zo=>this.source&&this.source!==Zo.sourceType)).subscribe(()=>this.source=void 0)),"body"===oe?this.bodySubscription.add(ti):this.headerSubscription.add(ti)})}destroy(){this.subscriptions.unsubscribe(),this.headerSubscription.unsubscribe(),this.bodySubscription.unsubscribe()}scrollLeft({scrollLeft:h,sourceType:oe}){this.ngZone.runOutsideAngular(()=>{this.elements.filter(kt=>oe!==kt.sourceType).forEach(({element:kt})=>kt.scrollLeft=h)})}unregister(h){const oe=this.elements.findIndex(kt=>kt.sourceType===h);oe>-1&&("header"===h?(this.headerSubscription.unsubscribe(),this.headerSubscription=new d.w0):"body"===h&&(this.bodySubscription.unsubscribe(),this.bodySubscription=new d.w0),this.elements.splice(oe,1))}}return ie.\u0275fac=function(h){return new(h||ie)(e.LFG(e.R0b))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),np=(()=>{class ie{constructor(){this.resizeSubscription=new d.w0(()=>{}),this.dispatcher=new l.x,this.changes=this.dispatcher.asObservable().pipe((0,L.p)(100))}connect(h){this.resizeSubscription.add(h.subscribe(this.dispatcher))}destroy(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})();const rf=ie=>ie.parent?rf(ie.parent):!!ie.locked,yf=(ie,Qe)=>Object.assign({columns:gf([ie]),locked:rf(ie)},Qe);let bf=(()=>{class ie{constructor(){this.changes=new e.vpe,this.tables=[],this.batch=null}start(h){this.trackColumns(h);const oe=(this.column.isColumnGroup?[h]:[]).concat(gf([h]));this.changes.emit({columns:oe,locked:rf(this.column),type:"start"})}resizeColumns(h){const oe=yf(this.column,{deltaPercent:h,type:"resizeColumn"});this.changes.emit(oe)}resizeTable(h,oe){const kt=yf(h,{delta:oe,type:"resizeTable"});this.changes.emit(kt)}resizedColumn(h){this.resizedColumns.push(h)}end(){this.changes.emit({columns:[],resizedColumns:this.resizedColumns,type:"end"})}registerTable(h){return this.tables.push(h),()=>{this.tables.splice(this.tables.indexOf(h),1)}}measureColumns(h){null!==this.batch?this.batch.push(...h):this.autoFitBatch(h,()=>this.end())}autoFit(...h){const oe=h.filter(kt=>!kt.isLocked);this.autoFitStart(oe),this.autoFitBatch(this.batch,()=>{if(oe.length<h.length){const kt=h.filter(ti=>ti.isLocked);this.autoFitStart(kt),this.autoFitBatch(this.batch,()=>this.end())}else this.end()})}trackColumns(h){this.resizedColumns=[],this.column=h}autoFitStart(h){if(this.batch=[],this.resizedColumns=[],0===h.length)return;const oe=h[0].isLocked;this.changes.emit({type:"start",columns:h,locked:oe}),this.changes.emit({type:"triggerAutoFit",columns:h,locked:oe})}autoFitBatch(h,oe){const kt=h.length>0&&h[0].column.isLocked,ti=this.tables.filter(Zo=>Zo.locked===kt).map(Zo=>Zo.autoFit(h));(0,_.$)(...ti).pipe((0,f.q)(1)).subscribe(Zo=>{this.changes.emit({columns:h.map(hr=>hr.column),type:"autoFitComplete",widths:Zo,locked:kt}),oe&&oe()}),this.batch=null}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})();const yp=ie=>!0===ie||"string"==typeof ie&&ie.indexOf("row")>-1;class cg extends Nd{constructor(Qe){super(),this.originalEvent=Qe}}let ip=(()=>{class ie{constructor(h,oe,kt,ti,Zo){this.popupService=h,this.renderer=oe,this.ngZone=kt,this.ctx=Zo,this.onClose=new l.x,this.pointerEventsSub=new d.w0,this.scrollSubscription=ti.changes.subscribe(()=>this.destroy())}open(h,oe,kt,ti="k-grid-filter-popup"){const Zo=ye(kt)&&this.popupRef===kt;if(this.destroy(),!Zo){const Cs=this.ctx.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchorAlign:{vertical:"bottom",horizontal:Cs},popupAlign:{vertical:"top",horizontal:Cs},anchor:h,popupClass:ti,content:oe,positionMode:"absolute"}),this.renderer.setAttribute(this.popupRef.popupElement,"dir",this.ctx.localization.rtl?"rtl":"ltr"),this.attachClose(h)}const hr=this.popupRef?.popupElement;return hr&&this.attachMouseListeners(hr),this.popupRef}destroy(){this.popupRef&&(this.detachClose(),this.pointerEventsSub.unsubscribe(),this.pointerEventsSub=null,this.popupRef.close(),this.popupRef=null)}ngOnDestroy(){this.destroy(),this.scrollSubscription.unsubscribe()}detachClose(){this.removeClick&&this.removeClick()}attachClose(h){(0,n.X_)()&&(this.detachClose(),this.ngZone.runOutsideAngular(()=>this.removeClick=this.renderer.listen("document","click",oe=>{if(!((ie,Qe)=>{for(;ie;){if(Qe(ie))return!0;ie=ie.parentNode}return!1})(oe.target,kt=>this.popupRef.popupElement===kt||kt===h)){const kt=new cg(oe);this.onClose.next(kt),!kt.isDefaultPrevented()&&this.canClosePopup&&this.destroy(),this.canClosePopup=!0}})))}attachMouseListeners(h){this.pointerEventsSub=new d.w0,this.ngZone.runOutsideAngular(()=>{this.pointerEventsSub.add(this.renderer.listen(h,"pointerdown",oe=>{oe.stopImmediatePropagation(),this.canClosePopup=!1})),this.pointerEventsSub.add(this.renderer.listen(h,"pointerup",()=>{this.canClosePopup=!0}))})}}return ie.\u0275fac=function(h){return new(h||ie)(e.LFG(Q.qL),e.LFG(e.Qsj),e.LFG(e.R0b),e.LFG(qp),e.LFG(Uo))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})();const em=ie=>{if(!(0,n.X_)())return;let Qe=!1;return()=>(Qe||(document.body.appendChild(ie),Qe=!0),ie)},Jm=ie=>{const{clientTop:Qe,clientLeft:h}=(ie=>ie.ownerDocument.documentElement)(ie),{pageYOffset:oe,pageXOffset:kt}=(ie=>ie.ownerDocument.defaultView)(ie),{top:ti,left:Zo}=ie.getBoundingClientRect();return{top:ti+oe-Qe,left:Zo+kt-h}},tm=(ie,Qe)=>0!=(4&Qe.compareDocumentPosition(ie)),Oc=(ie,Qe)=>ie===Qe||0!=(16&Qe.compareDocumentPosition(ie)),ym=(ie,Qe)=>{const h=Jm(ie),{offsetWidth:oe,offsetHeight:kt}=ie;return{left:h.left+(Qe?0:oe),top:h.top,height:kt}};let bp=(()=>{class ie{constructor(){this.changes=new e.vpe,this.register=[],this.lastTarget=null}add(h){this.register.push(h)}remove(h){this.register=this.register.filter(oe=>oe!==h)}notifyDrag(h,oe,kt){const ti=this.targetFor(oe);this.lastTarget!==ti&&(this.changes.next({draggable:h,mouseEvent:kt,target:this.lastTarget,type:"leave"}),ti&&this.changes.next({draggable:h,mouseEvent:kt,target:ti,type:"enter"}),this.lastTarget=ti)}notifyDrop(h,oe){this.changes.next({draggable:h,mouseEvent:oe,target:this.lastTarget,type:"drop"}),this.lastTarget=null}targetFor(h){const oe=Oc.bind(null,h);return this.register.find(({element:{nativeElement:kt}})=>oe(kt))}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})();const Og=(ie,Qe,h)=>{const oe=ie.querySelector(".k-icon, .k-svg-icon");if(h){const kt=oe.firstElementChild;kt.removeChild(kt.firstElementChild),oe.firstElementChild.innerHTML=(Qe?te.R7U.content:te.p5j.content)+oe.firstElementChild.innerHTML}oe.setAttribute("class",oe.getAttribute("class").replace(/(plus|cancel)/,Qe?"plus":"cancel"))},dg=(ie,Qe=null,h)=>{const oe=ie.querySelectorAll(".k-icon, .k-svg-icon")[1],kt=null===Qe?"":Qe?`k${h?"-svg":""}-i-lock`:`k${h?"-svg":""}-i-unlock`;h?(oe.setAttribute("class",oe.getAttribute("class").replace(/(k-svg-i-unlock|k-svg-i-lock)/,"").trim()+` ${kt}`),oe.firstElementChild.innerHTML=Qe?te.YGw.content:te.GZK.content):oe.setAttribute("class",oe.getAttribute("class").replace(/(k-i-unlock|k-i-lock)/,"").trim()+` ${kt}`)};let mu=(()=>{class ie{constructor(h,oe){this.santizer=h,this.iconsService=oe,this.cancelIcon=te.p5j}create(h){if(!(0,n.X_)())return;this.dom=document.createElement("div"),(ie=>{ie.className="k-header k-drag-clue",ie.style.position="absolute",ie.style.zIndex="20000"})(this.dom);const oe=this.santizer.sanitize(e.q3G.HTML,h),kt=this.isSVG?((ie,Qe,h)=>`\n    <span class="k-svg-icon k-drag-status k-svg-i-cancel">\n        <svg \n            xmlns="http://www.w3.org/2000/svg"\n            xmlns:xlink="http://www.w3.org/1999/xlink"\n            viewBox="${ie}"\n            aria-hidden="true">\n            ${this.cancelIcon.content}\n        </svg>\n        <span class="k-svg-icon k-icon-modifier">\n            <svg\n                xmlns="http://www.w3.org/2000/svg"\n                xmlns:xlink="http://www.w3.org/1999/xlink"\n                viewBox="${ie}"\n                aria-hidden="true">\n            </svg>\n        </span>\n    </span>\n    ${h}`)(this.cancelIcon.viewBox,0,oe):(ie=>`\n    <span class="k-icon k-drag-status k-i-cancel">\n        <span class="k-icon k-icon-modifier"></span>\n    </span>\n    ${ie}`)(oe);this.dom.innerHTML=kt}attach(){return em(this.dom)}remove(){var h;this.dom&&this.dom.parentNode&&(h=this.dom,setTimeout(()=>document.body.removeChild(h)),this.dom=null)}show(){this.dom.style.display=""}hide(){this.dom.style.display="none"}enable(){Og(this.dom,!0,this.isSVG)}disable(){Og(this.dom,!1,this.isSVG)}removeLock(){dg(this.dom,!1,this.isSVG)}toggleLock(h){dg(this.dom,h,this.isSVG)}move(h){this.dom.style.top=h.pageY+"px",this.dom.style.left=h.pageX+"px"}get isSVG(){return"svg"===(this.iconsService.iconSettings?.type||this.iconsService.changes.value.type)}}return ie.\u0275fac=function(h){return new(h||ie)(e.LFG(re.H7),e.LFG(de.jA))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),Pf=(()=>{class ie{create(){(0,n.X_)()&&(this.dom=document.createElement("div"),this.dom.className="k-grouping-dropclue",this.hide())}attach(){return em(this.dom)}remove(){this.dom&&this.dom.parentElement&&(document.body.removeChild(this.dom),this.dom=null)}hide(){this.dom.style.display="none"}position({left:h,top:oe,height:kt}){this.dom.style.display="block",this.dom.style.height=kt+"px",this.dom.style.top=oe+"px",this.dom.style.left=h-this.dom.offsetWidth/2+"px"}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),Up=(()=>{class ie{constructor(){this.changes=new e.vpe}reorder(h){this.changes.emit(h)}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})();class C_ extends Nd{constructor({column:Qe,newIndex:h,oldIndex:oe}){super(),this.column=Qe,this.newIndex=h,this.oldIndex=oe}}class Wf{constructor(Qe,h,oe,kt,ti,Zo,hr,Cs){this.dataRows=Qe,this.headerRows=h,this.isVirtual=oe,this.hasPager=kt,this.hasDetailTemplate=ti,this.gridElement=Zo,this.virtualColumns=hr,this.columns=Cs}get maxLogicalRowIndex(){return this.headerRows+(this.hasDetailTemplate?2*this.dataRows:this.dataRows)-1}}class nm{constructor(){this.changes=new l.x}sort(Qe){this.changes.next(Qe)}}class $g{constructor(Qe){this.columns=Qe}}class Om{constructor(Qe){this.columns=Qe}}function fg(ie,Qe){return"data"===Qe.type&&Qe.isEditing?Qe.data:ie}class pg{constructor(Qe){this.columns=Qe}}let op=(()=>{class ie{constructor(h){this.templateRef=h}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.Rgc,8))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridCellLoadingTemplate",""]]}),ie})(),rp=(()=>{class ie{constructor(h){this.templateRef=h}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.Rgc))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridLoadingTemplate",""]]}),ie})(),Zh=(()=>{class ie{constructor(){this.changes=new l.x}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})();const mg={forbidden:"cancel",before:"insert-middle",after:"insert-middle"},im={forbidden:te.p5j,before:te.Ryu,after:te.Ryu},bm={zIndex:"20000",display:"flex",position:"fixed"},Qg=["k-drag-clue","k-reorder-clue"],Pg={zIndex:"19000",position:"absolute"},Cf=["k-drop-hint","k-drop-hint-h"],rd={handle:".k-table-td.k-drag-cell",dragTarget:".k-master-row",dropTarget:".k-master-row"};let Sm=(()=>{class ie{constructor(h){this.renderer=h,this.hintElement=null,this.defaultSelectors=rd,this.hintText="",this.lastDropPosition="forbidden",this.dragTarget=null,this.dropTarget=null,this.rowReorder=new e.vpe}press(h){this.dragTarget=h.dragTarget,this.offsetY=h.dragEvent.offsetY}dragStart(){this.createDropIndicator()}drag(h){(0,n.EN)(h.hintElement)&&!(0,n.EN)(this.hintElement)&&(this.hintElement=h.hintElement,this.decorateHint());const oe_x=h.dragEvent.clientX,oe_y=h.dragEvent.clientY-this.offsetY;(0,n.EN)(this.hintElement)&&(this.renderer.setStyle(this.hintElement,"left",`${oe_x}px`),this.renderer.setStyle(this.hintElement,"top",`${oe_y}px`)),this.positionDropIndicator(h)}dragEnter(h){this.dropTarget=h.dropTarget}dragLeave(){this.dropTarget=null,this.hide()}dragEnd(){this.destroyDropIndicator(),this.dragTarget=null,this.dropTarget=null,this.hintElement=null}drop(h){this.destroyDropIndicator();const oe=this.rowReorderArgs(this.dragTarget,this.dropTarget,h.dragData);this.rowReorder.emit(oe)}reorderRows(h,oe){if("forbidden"===this.lastDropPosition)return;const{draggedRows:kt,dropTargetRow:ti}=h,Zo=kt[0].dataItem,hr=ti.dataItem,Cs=oe.indexOf(Zo),aa=oe.indexOf(hr),$a=this.calculateIndexToAdd(Cs,aa);oe.splice(Cs,1),oe.splice($a,0,Zo)}get hintIcon(){return mg[this.lastDropPosition]}get hintSVGIcon(){return im[this.lastDropPosition]}getDefaultHintText(h,oe){let kt="";const ti=h.toArray().filter(Cs=>!Cs.hidden&&(0,n.EN)(Cs.field)).map(Cs=>Cs.field),hr=this.getDragRowPerElement(this.dragTarget,oe)?.dataItem;return(0,n.EN)(hr)&&ti.forEach(Cs=>{const aa=hr[Cs];(0,n.EN)(aa)&&(kt+=`${aa} `)}),kt.trim()}rowReorderArgs(h,oe,kt){return{draggedRows:[this.getDragRowPerElement(h,kt)],dropTargetRow:this.getDragRowPerElement(oe,kt),dropPosition:this.lastDropPosition}}getDragRowPerElement(h,oe){let kt=h?.getAttribute("data-kendo-grid-item-index");return kt=kt?parseInt(kt,10):-1,{dataItem:-1===kt?null:oe[kt-(this.skip||0)],rowIndex:kt,element:h}}createDropIndicator(){(0,n.X_)()&&(this.dropIndicator=document.createElement("div"),this.decorateDropIndicator(),this.dropIndicator.innerHTML='\n            <div class="k-drop-hint-start"></div>\n            <div class="k-drop-hint-line"></div>\n        ',document.body.appendChild(this.dropIndicator),this.hide())}destroyDropIndicator(){(0,n.X_)()&&this.dropIndicator&&this.dropIndicator.parentElement&&(document.body.removeChild(this.dropIndicator),this.dropIndicator=null)}decorateHint(){Qg.forEach(h=>this.renderer.addClass(this.hintElement,h)),Object.keys(bm).forEach(h=>this.renderer.setStyle(this.hintElement,h,bm[h]))}positionDropIndicator(h){this.lastDropPosition=this.getDropPosition(h.dragEvent),this.updateDropIndicatorPosition()}calculateIndexToAdd(h,oe){return h>oe&&"after"===this.lastDropPosition?oe+1:h>oe&&"before"===this.lastDropPosition||h<oe&&"after"===this.lastDropPosition?oe:h<oe&&"before"===this.lastDropPosition?oe-1:void 0}decorateDropIndicator(){Cf.forEach(h=>this.renderer.addClass(this.dropIndicator,h)),Object.keys(Pg).forEach(h=>this.renderer.setStyle(this.dropIndicator,h,Pg[h]))}getDropPosition(h){if(this.dropTarget===this.dragTarget||!(0,n.EN)(this.dropTarget)||((ie,Qe)=>ie?.parentElement!==Qe?.parentElement)(this.dropTarget,this.dragTarget))return"forbidden";const oe=this.dropTarget.getBoundingClientRect(),ti=oe.height/2,Zo=h.clientY,hr=oe.top;let Cs=null;return Zo<hr+ti?Cs="before":Zo>=hr+oe.height-ti&&(Cs="after"),("before"===Cs&&((ie,Qe)=>this.dropTarget===this.dragTarget.nextElementSibling)()||"after"===Cs&&((ie,Qe)=>this.dropTarget===this.dragTarget.previousElementSibling)())&&(Cs="forbidden"),Cs}updateDropIndicatorPosition(){if(this.shouldHideDropIndicator()||!this.dropTarget)return void this.hide();this.show();const h=function Xm(ie){const{clientTop:Qe,clientLeft:h}=(ie=>ie?.ownerDocument.documentElement)(ie),{pageYOffset:oe,pageXOffset:kt}=(ie=>ie?.ownerDocument.defaultView)(ie),{top:ti,left:Zo}=ie.getBoundingClientRect();return{top:ti+oe-Qe,left:Zo+kt-h}}(this.dropTarget);let oe=h.top;"after"===this.lastDropPosition&&(oe+=this.dropTarget.offsetHeight),this.renderer.setStyle(this.dropIndicator,"left",`${h.left+this.dropIndicator.offsetWidth/2}px`),this.renderer.setStyle(this.dropIndicator,"top",`${oe}px`)}shouldHideDropIndicator(){return"forbidden"===this.lastDropPosition}hide(){(0,n.EN)(this.dropIndicator)&&(this.dropIndicator.style.display="none")}show(){(0,n.EN)(this.dropIndicator)&&(this.dropIndicator.style.display="")}}return ie.\u0275fac=function(h){return new(h||ie)(e.LFG(e.Qsj))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),Cp=(()=>{class ie{constructor(h){this.templateRef=h}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.Rgc))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridStatusBarTemplate",""]]}),ie})(),xp=(()=>{class ie{constructor(h,oe){this.ctx=h,this.wrapper=oe,this.context={},this.role="toolbar",this._size="medium",this.navigationService=this.ctx[`${this.wrapper.nativeElement.getAttribute("position")}ToolbarNavigation`]}get sizeSmallClass(){return"small"===this.size}get sizeMediumClass(){return"medium"===this.size||!this.size}set position(h){this.context.position=h}set size(h){this._size=h,"none"===h&&this.wrapper.nativeElement.classList.remove("k-toolbar-sm","k-toolbar-md")}get size(){return this._size}clickHandler(h){if(this.navigable&&(0,n.X_)()){const oe=(0,n.oq)(h.target,n.EB),kt=this.navigationService.navigableElements.indexOf(oe);kt>-1&&(this.navigationService.currentActiveIndex=kt),this.navigationService.updateFocus(),h.target===this.wrapper.nativeElement&&this.navigationService.focus()}}arrowLeftListener(){this.navigable&&(0,n.X_)()&&this.navigationService.navigableElements.length&&(this.navigationService.currentActiveIndex--,this.navigationService.currentActiveIndex<0&&(this.navigationService.currentActiveIndex=this.navigationService.navigableElements.length-1),this.navigationService.updateFocus())}arrowRightListener(){this.navigable&&(0,n.X_)()&&this.navigationService.navigableElements.length&&(this.navigationService.currentActiveIndex++,this.navigationService.currentActiveIndex>=this.navigationService.navigableElements.length&&(this.navigationService.currentActiveIndex=0),this.navigationService.updateFocus())}homeKeyListener(h){this.navigable&&(0,n.X_)()&&this.navigationService.navigableElements.length&&(h.preventDefault(),this.navigationService.currentActiveIndex=0,this.navigationService.updateFocus())}endKeyListener(h){this.navigable&&(0,n.X_)()&&this.navigationService.navigableElements.length&&(h.preventDefault(),this.navigationService.currentActiveIndex=this.navigationService.navigableElements.length-1,this.navigationService.updateFocus())}get toolbarTemplateRef(){return this.ctx.grid.toolbarTemplate?this.ctx.grid.toolbarTemplate.templateRef:void 0}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo),e.Y36(e.SBq))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-toolbar"]],hostVars:5,hostBindings:function(h,oe){1&h&&e.NdJ("click",function(ti){return oe.clickHandler(ti)})("keydown.arrowleft",function(ti){return oe.arrowLeftListener(ti)})("keydown.arrowright",function(ti){return oe.arrowRightListener(ti)})("keydown.home",function(ti){return oe.homeKeyListener(ti)})("keydown.end",function(ti){return oe.endKeyListener(ti)}),2&h&&(e.uIk("role",oe.role),e.ekj("k-toolbar-sm",oe.sizeSmallClass)("k-toolbar-md",oe.sizeMediumClass))},inputs:{position:"position",size:"size",navigable:"navigable"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(h,oe){1&h&&e.YNc(0,bo,1,2,null,0),2&h&&e.Q6J("ngIf",oe.toolbarTemplateRef)},dependencies:[X.O5,X.tP],encapsulation:2}),ie})();const Xg=ie=>(({buttonCount:ie=10,info:Qe=!0,type:h="numeric",pageSizes:oe=!1,previousNext:kt=!0,responsive:ti=!0,position:Zo="bottom"})=>({buttonCount:ie,info:Qe,pageSizes:!0===oe?[5,10,20]:oe,previousNext:kt,type:h,responsive:ti,position:Zo}))(!0===ie?{}:ie);let sf=(()=>{class ie{constructor(h){this.root=h,this.active=!0,this.children=[],this.root.registerGroup(this)}get focusableChildren(){return this.children.filter(h=>h.canFocus())}get isActive(){return this.active}ngOnDestroy(){this.root.unregisterGroup(this),this.active=!0}registerElement(h){this.unregisterElement(h),this.children.push(h)}unregisterElement(h){this.children=this.children.filter(oe=>oe!==h)}isNavigable(){const h=this.focusableChildren;return 1===h.length&&h[0].isNavigable()}canFocus(){return this.focusableChildren.length>0}focus(){this.canFocus()&&!this.hasFocus()&&this.focusableChildren[0].focus()}activate(){this.toggleState(!0)}deactivate(){this.toggleState(!1)}hasFocus(){return this.children.reduce((h,oe)=>h||oe.hasFocus(),!1)}toggleState(h){this.active!==h&&(this.active=h,this.children.forEach(oe=>oe.toggle(h)))}}return ie.\u0275fac=function(h){return new(h||ie)(e.LFG(Bc))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),jf=(()=>{class ie{constructor(h,oe,kt){this.ctx=h,this.pagerContext=oe,this.cd=kt,this.total=this.pagerContext.total,this.skip=this.pagerContext.skip,this.pageSize=this.pagerContext.pageSize,this.caretAltLeftIcon=te.Me8,this.caretAltToLeftIcon=te.EN9,this.caretAltRightIcon=te.bI8,this.caretAltToRightIcon=te.$2l,this.size="medium"}get currentPage(){return Math.floor((this.skip||0)/this.pageSize)+1}get totalPages(){return Math.ceil((this.total||0)/this.pageSize)}textFor(h){return this.ctx.localization.get(h)}changePage(h){return this.pagerContext.changePage(h),!1}ngOnInit(){this.subscriptions=this.pagerContext.changes.subscribe(this.onChanges.bind(this)),this.subscriptions.add(this.ctx.localization.changes.subscribe(()=>this.cd.markForCheck()))}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}get prevArrowIcons(){return this.ctx.localization.rtl?["caret-alt-to-right","caret-alt-right"]:["caret-alt-to-left","caret-alt-left"]}get prevArrowSVGIcons(){return this.ctx.localization.rtl?[this.caretAltToRightIcon,this.caretAltRightIcon]:[this.caretAltToLeftIcon,this.caretAltLeftIcon]}get nextArrowIcons(){return this.ctx.localization.rtl?["caret-alt-left","caret-alt-to-left"]:["caret-alt-right","caret-alt-to-right"]}get nextArrowSVGIcons(){return this.ctx.localization.rtl?[this.caretAltLeftIcon,this.caretAltToLeftIcon]:[this.caretAltRightIcon,this.caretAltToRightIcon]}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo),e.Y36(Qd),e.Y36(e.sBO))},ie.\u0275dir=e.lG2({type:ie,inputs:{size:"size"}}),ie})(),sp=(()=>{class ie extends jf{constructor(h,oe,kt){super(h,kt,oe),this.pagerContext=kt}get maxItems(){return Math.min(this.currentPage*this.pageSize,this.total)}get currentPageText(){return this.total?(this.currentPage-1)*this.pageSize+1:0}get classes(){return!0}onChanges({total:h,skip:oe,pageSize:kt}){this.total=h,this.skip=oe,this.pageSize=kt,this.cd.markForCheck()}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo),e.Y36(e.sBO),e.Y36(Qd))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-pager-info"]],hostVars:4,hostBindings:function(h,oe){2&h&&e.ekj("k-pager-info",oe.classes)("k-label",oe.classes)},features:[e.qOj],decls:1,vars:5,template:function(h,oe){1&h&&e._uU(0),2&h&&e.xDo("",oe.currentPageText," - ",oe.maxItems," ",oe.textFor("pagerOf")," ",oe.total," ",oe.textFor("pagerItems"),"")},encapsulation:2,changeDetection:0}),ie})(),Rf=(()=>{class ie{constructor(h){this.host=h,this.keydownHandler=oe=>{oe.keyCode===n.R8.Escape&&this.host.isOpen&&(oe.stopPropagation(),this.host.toggle(!1))}}ngAfterViewInit(){this.host.wrapper.nativeElement.addEventListener("keydown",this.keydownHandler,!0)}ngOnDestroy(){this.host.wrapper.nativeElement.removeEventListener("keydown",this.keydownHandler)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Pi.rI))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridPagerDropDown",""]]}),ie})(),Rm=(()=>{class ie extends jf{constructor(h,oe,kt,ti){super(h,kt,oe),this.pagerContext=kt,this.navigationService=ti,this._pageSizes=[]}set pageSizes(h){let oe=[];h.forEach(kt=>{oe.push("number"==typeof kt?{text:kt.toString(),value:kt}:kt)}),this.pageSize&&!oe.some(kt=>kt.value===this.pageSize)&&(oe=[{text:this.pageSize.toString(),value:this.pageSize},...oe]),this._pageSizes=oe}get pageSizes(){return this._pageSizes}get classes(){return!0}get showInitialPageSize(){return 0===this.pageSizes.filter(h=>"number"==typeof h.value?h.value===Number(this.pageSize):this.total===Number(this.pageSize)).length}pageSizeChange(h){this.pageSize="number"==typeof h?h:this.total,this.pagerContext.changePageSize(this.pageSize)}getValue(h){return"number"==typeof h.value?h.value:this.total}onChanges({total:h,skip:oe,pageSize:kt}){this.total=h,this.skip=oe,this.pageSize="number"==typeof kt?kt:this.total,this.cd.markForCheck()}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo),e.Y36(e.sBO),e.Y36(Qd),e.Y36(Su))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-pager-page-sizes"]],hostVars:4,hostBindings:function(h,oe){2&h&&e.ekj("k-pager-sizes",oe.classes)("k-label",oe.classes)},inputs:{pageSizes:"pageSizes"},features:[e.qOj],decls:3,vars:7,consts:[["kendoGridPagerDropDown","","kendoGridFocusable","","textField","text","valueField","value",1,"k-dropdown",3,"size","tabindex","data","valuePrimitive","value","valueChange"],["dropdownlist",""],[3,"for","text"]],template:function(h,oe){if(1&h&&(e.TgZ(0,"kendo-dropdownlist",0,1),e.NdJ("valueChange",function(ti){return oe.pageSizeChange(ti)}),e.qZA(),e._UZ(2,"kendo-label",2)),2&h){const kt=e.MAs(1);e.Q6J("size",oe.size)("tabindex",0)("data",oe.pageSizes)("valuePrimitive",!0)("value",oe.pageSize),e.xp6(2),e.Q6J("for",kt)("text",oe.textFor("pagerItemsPerPage"))}},dependencies:[Pi.rI,go._n,Rf,Nc],encapsulation:2,changeDetection:0}),ie})(),ap=(()=>{class ie extends jf{constructor(h,oe,kt){super(h,kt,oe),this.pagerContext=kt}get buttons(){const h=[];for(let oe=this.start;oe<=this.end;oe++)h.push(oe);return h}get end(){return Math.min(this.start+this.buttonCount-1,this.totalPages)}get start(){const h=this.currentPage,oe=this.buttonCount;if(h>oe){const kt=h%oe;return 0===kt?h-oe+1:h-kt+1}return 1}pageLabel(h){const oe=this.textFor("pagerPage");return oe?oe+" "+h:h.toString()}onSelectChange(h){const oe=h.target,kt=Number(oe.value);Number.isNaN(kt)?this.changePage("previousButtons"===oe.value?this.start-2:this.end):this.changePage(kt-1)}onChanges({total:h,skip:oe,pageSize:kt}){this.total=h,this.skip=oe,this.pageSize=kt,this.cd.markForCheck()}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo),e.Y36(e.sBO),e.Y36(Qd))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-pager-numeric-buttons"]],viewQuery:function(h,oe){if(1&h&&(e.Gf(jo,5,e.SBq),e.Gf(wn,5,e.SBq)),2&h){let kt;e.iGM(kt=e.CRH())&&(oe.selectElement=kt.first),e.iGM(kt=e.CRH())&&(oe.numbersElement=kt.first)}},inputs:{buttonCount:"buttonCount"},features:[e.qOj],decls:10,vars:14,consts:[["kendoGridFocusable","",1,"k-dropdown-list","k-dropdown","k-picker","k-picker-solid","k-rounded-md",3,"ngClass","change"],["select",""],["value","previousButtons",3,"selected",4,"ngIf"],[3,"value","selected","ngClass",4,"ngFor","ngForOf"],["value","nextButtons",3,"selected",4,"ngIf"],[1,"k-pager-numbers"],["numbers",""],["type","button","kendoGridFocusable","","kendoButton","","fillMode","flat","themeColor","primary","class","k-pager-nav","rounded","none",3,"size","click",4,"ngIf"],["type","button","kendoGridFocusable","","kendoButton","","fillMode","flat","themeColor","primary","class","k-pager-nav","rounded","none",3,"size","selected","click",4,"ngFor","ngForOf"],["type","button","kendoGridFocusable","","kendoButton","","class","k-pager-nav","fillMode","flat","themeColor","primary","rounded","none",3,"size","click",4,"ngIf"],["value","previousButtons",3,"selected"],[3,"value","selected","ngClass"],["value","nextButtons",3,"selected"],["type","button","kendoGridFocusable","","kendoButton","","fillMode","flat","themeColor","primary","rounded","none",1,"k-pager-nav",3,"size","click"],["type","button","kendoGridFocusable","","kendoButton","","fillMode","flat","themeColor","primary","rounded","none",1,"k-pager-nav",3,"size","selected","click"]],template:function(h,oe){1&h&&(e.TgZ(0,"select",0,1),e.NdJ("change",function(ti){return oe.onSelectChange(ti)}),e.YNc(2,Zi,2,2,"option",2),e.YNc(3,Bi,2,8,"option",3),e.YNc(4,Xo,2,2,"option",4),e.qZA(),e.TgZ(5,"div",5,6),e.YNc(7,Lo,2,3,"button",7),e.YNc(8,or,2,6,"button",8),e.YNc(9,xr,2,3,"button",9),e.qZA()),2&h&&(e.Udp("display","none"),e.Q6J("ngClass",e.WLB(11,Nr,"small"===oe.size,"medium"===oe.size||!oe.size)),e.uIk("title",oe.textFor("selectPage"))("aria-label",oe.textFor("selectPage")),e.xp6(2),e.Q6J("ngIf",oe.start>1),e.xp6(1),e.Q6J("ngForOf",oe.buttons),e.xp6(1),e.Q6J("ngIf",oe.end<oe.totalPages),e.xp6(3),e.Q6J("ngIf",oe.start>1),e.xp6(1),e.Q6J("ngForOf",oe.buttons),e.xp6(1),e.Q6J("ngIf",oe.end<oe.totalPages))},dependencies:[si.r0,Nc,X.mk,X.O5,X.sg],encapsulation:2,changeDetection:0}),ie})(),rm=(()=>{class ie extends jf{constructor(h,oe,kt,ti){super(h,oe,kt),this.navigationService=ti}get disabled(){return 1===this.currentPage||!this.total}onChanges({total:h,skip:oe,pageSize:kt}){this.total=h,this.skip=oe,this.pageSize=kt,this.cd.markForCheck()}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo),e.Y36(Qd),e.Y36(e.sBO),e.Y36(Su))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-pager-prev-buttons"]],features:[e.qOj],decls:2,vars:14,consts:[["kendoButton","","type","button","role","button","fillMode","flat","rounded","none",1,"k-pager-nav","k-pager-first",3,"kendoGridFocusable","title","icon","svgIcon","disabled","size","click"],["kendoButton","","type","button","fillMode","flat","rounded","none",1,"k-pager-nav",3,"kendoGridFocusable","disabled","icon","svgIcon","size","title","click"]],template:function(h,oe){1&h&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return 1!==oe.currentPage&&oe.changePage(0)}),e.qZA(),e.TgZ(1,"button",1),e.NdJ("click",function(){return 1!==oe.currentPage&&oe.changePage(oe.currentPage-2)}),e.qZA()),2&h&&(e.Q6J("kendoGridFocusable",!oe.disabled)("title",oe.textFor("pagerFirstPage"))("icon",oe.prevArrowIcons[0])("svgIcon",oe.prevArrowSVGIcons[0])("disabled",oe.disabled)("size",oe.size),e.uIk("aria-label",oe.textFor("pagerFirstPage")),e.xp6(1),e.Q6J("kendoGridFocusable",!oe.disabled)("disabled",oe.disabled)("icon",oe.prevArrowIcons[1])("svgIcon",oe.prevArrowSVGIcons[1])("size",oe.size)("title",oe.textFor("pagerPreviousPage")),e.uIk("aria-label",oe.textFor("pagerPreviousPage")))},dependencies:[si.r0,Nc],encapsulation:2,changeDetection:0}),ie})(),Gp=(()=>{class ie{constructor(h,oe){this.host=h,this.renderer=oe}ngAfterViewInit(){this.renderer.addClass(this.host.numericInput.nativeElement,"k-pager-nav")}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(ot.Uw),e.Y36(e.Qsj))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridPagerInput",""]]}),ie})(),jd=(()=>{class ie extends jf{constructor(h,oe,kt,ti,Zo){super(h,oe,Zo),this.pagerContext=oe,this.zone=kt,this.navigationService=ti,this.handleKeyDown=hr=>{const Cs=this.numericInput.value||this.current;hr.keyCode===n.R8.Enter&&(hr.preventDefault(),Cs!==this.current&&this.zone.run(()=>{this.changePage(Cs-1)}))},this.handleBlur=()=>{const hr=this.numericInput.value;hr?hr!==this.current&&this.zone.run(()=>{this.changePage(hr-1)}):this.numericInput.writeValue(this.current)}}get current(){return this.hasPages?this.currentPage:0}get hasPages(){return 0!==this.totalPages}onChanges({total:h,skip:oe,pageSize:kt}){this.total=h,this.skip=oe,this.pageSize=kt,this.cd.markForCheck()}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo),e.Y36(Qd),e.Y36(e.R0b),e.Y36(Su),e.Y36(e.sBO))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-pager-input"]],viewQuery:function(h,oe){if(1&h&&e.Gf(ot.Uw,5),2&h){let kt;e.iGM(kt=e.CRH())&&(oe.numericInput=kt.first)}},features:[e.qOj],decls:4,vars:17,consts:[[1,"k-pager-input","k-label"],["kendoGridPagerInput","","format","n0",3,"kendoGridFocusable","spinners","decimals","disabled","value","min","max","size","autoCorrect","title","kendoEventsOutsideAngular"]],template:function(h,oe){1&h&&(e.TgZ(0,"span",0),e._uU(1),e._UZ(2,"kendo-numerictextbox",1),e._uU(3),e.qZA()),2&h&&(e.xp6(1),e.hij(" ",oe.textFor("pagerPage")," "),e.xp6(1),e.Q6J("kendoGridFocusable",oe.hasPages)("spinners",!1)("decimals",0)("disabled",!oe.hasPages)("value",oe.current)("min",oe.hasPages?1:0)("max",oe.totalPages)("size",oe.size)("autoCorrect",!0)("title",oe.textFor("pagerPageNumberInputTitle"))("kendoEventsOutsideAngular",e.WLB(14,as,oe.handleKeyDown,oe.handleBlur)),e.xp6(1),e.AsE(" ",oe.textFor("pagerOf")," ",oe.totalPages," "))},dependencies:[ot.Uw,Gp,Nc,n.nV],encapsulation:2}),ie})(),xf=(()=>{class ie extends jf{constructor(h,oe,kt,ti){super(h,oe,kt),this.navigationService=ti}get disabled(){return this.currentPage===this.totalPages||!this.total}onChanges({total:h,skip:oe,pageSize:kt}){this.total=h,this.skip=oe,this.pageSize=kt,this.cd.markForCheck()}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo),e.Y36(Qd),e.Y36(e.sBO),e.Y36(Su))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-pager-next-buttons"]],features:[e.qOj],decls:2,vars:14,consts:[["kendoButton","","type","button","fillMode","flat","rounded","none",1,"k-pager-nav",3,"kendoGridFocusable","size","icon","svgIcon","disabled","title","click"],["kendoButton","","type","button","fillMode","flat","rounded","none",1,"k-pager-nav","k-pager-last",3,"kendoGridFocusable","size","icon","svgIcon","disabled","title","click"]],template:function(h,oe){1&h&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return oe.currentPage!==oe.totalPages&&oe.changePage(oe.currentPage)}),e.qZA(),e.TgZ(1,"button",1),e.NdJ("click",function(){return oe.currentPage!==oe.totalPages&&oe.changePage(oe.totalPages-1)}),e.qZA()),2&h&&(e.Q6J("kendoGridFocusable",!oe.disabled)("size",oe.size)("icon",oe.nextArrowIcons[0])("svgIcon",oe.nextArrowSVGIcons[0])("disabled",oe.disabled)("title",oe.textFor("pagerNextPage")),e.uIk("aria-label",oe.textFor("pagerNextPage")),e.xp6(1),e.Q6J("kendoGridFocusable",!oe.disabled)("size",oe.size)("icon",oe.nextArrowIcons[1])("svgIcon",oe.nextArrowSVGIcons[1])("disabled",oe.disabled)("title",oe.textFor("pagerLastPage")),e.uIk("aria-label",oe.textFor("pagerLastPage")))},dependencies:[si.r0,Nc],encapsulation:2,changeDetection:0}),ie})(),lp=(()=>{class ie{constructor(h,oe,kt,ti,Zo,hr,Cs,aa,$a){this.pagerContext=h,this.navigationService=oe,this.element=kt,this.renderer=ti,this.zone=Zo,this.ctx=hr,this.cellContext=Cs,this.focusRoot=aa,this.focusGroup=$a,this.total=0,this.skip=1,this.pageChange=new e.vpe,this.pagerWrapClass=!0,this.gridPagerClass=!0,this.settings=Xg({}),this.subscriptions=new d.w0,this._templateContext={},this._isFocused=!1,this._size="medium",this.resizeHandler=()=>{const ja=this.element.nativeElement;this.template||!ja||this.zone.runOutsideAngular(()=>{setTimeout(()=>{const Ll=ja.offsetWidth;if(this.numericButtons){const Gc=this.numericButtons.selectElement.nativeElement,Fc=this.numericButtons.numbersElement.nativeElement;this.renderer.removeStyle(Fc,"display"),this.renderer.setStyle(Gc,"display","none"),Ll<600&&(this.renderer.removeStyle(Gc,"display"),this.renderer.setStyle(Fc,"display","none"))}this.pagerInfo&&(this.renderer.removeStyle(this.pagerInfo.nativeElement,"display"),Ll<768&&this.renderer.setStyle(this.pagerInfo.nativeElement,"display","none")),this.pagerPageSizes&&(this.renderer.removeStyle(this.pagerPageSizes.nativeElement,"display"),Ll<600&&this.renderer.setStyle(this.pagerPageSizes.nativeElement,"display","none"))})})}}set options(h){this.settings=Xg(h)}set size(h){this._size=h,"none"===h&&this.element.nativeElement.classList.remove("k-pager-sm","k-pager-md")}get size(){return this._size}get sizeSmallClass(){return"small"===this.size}get sizeMediumClass(){return"medium"===this.size||!this.size}get isFocused(){return this._isFocused}get pagerAriaLabel(){return this.navigationService.pagerEnabled?this.pagerLabel:void 0}get pagerLabel(){const h=this.ctx.localization.get("pagerLabel")||"";return Aa(Aa(h,"currentPage",this.currentPage.toString()),"totalPages",this.totalPages.toString())}get focusTrapTabIndex(){return this.focusGroup.isActive?"0":"-1"}onFocusIn(h){this.navigationService.pagerEnabled&&(h.target===this.element.nativeElement?(this._isFocused=!0,this.focusRoot.deactivate()):this.focusRoot.activate())}onFocusOut(){this.navigationService.pagerEnabled&&(this._isFocused=!1)}onEscape(){this.navigationService.pagerEnabled&&(this.focusRoot.deactivate(),this.element.nativeElement.focus())}onEnter(h){this.navigationService.pagerEnabled&&h.target===this.element.nativeElement&&(h.preventDefault(),this.focusRoot.activate(),this.focusFirstElement())}navigateToPreviousPage(h){this.shouldTriggerPageChange(h.target,this.currentPage>1)&&this.pagerContext.prevPage()}navigateToNextPage(h){this.shouldTriggerPageChange(h.target,this.currentPage<this.totalPages)&&this.pagerContext.nextPage()}navigateToFirstPage(h){this.shouldTriggerPageChange(h.target,this.currentPage>1)&&this.pagerContext.changePage(0)}navigateToLastPage(h){this.shouldTriggerPageChange(h.target,this.currentPage<this.totalPages)&&this.pagerContext.changePage(this.totalPages-1)}get totalPages(){return Math.ceil((this.total||0)/this.pageSize)}get currentPage(){return Math.floor((this.skip||0)/this.pageSize)+1}get templateContext(){const h=this._templateContext;return h.totalPages=this.totalPages,h.total=this.total,h.skip=this.skip,h.pageSize=this.pageSize,h.currentPage=this.currentPage,h}ngOnInit(){this.subscriptions.add(this.pagerContext.pageChange.subscribe(this.changePage.bind(this))),this.navigationService.pagerEnabled&&this.focusRoot.deactivate()}ngDoCheck(){this.updateCellContext()}ngOnChanges(h){(0,n.aG)(["pageSize","skip","total"],h,!1)&&this.pagerContext.notifyChanges({pageSize:this.pageSize,skip:this.skip,total:this.total});const oe=h.template;oe&&(oe.currentValue?this.clearResponsiveStyling():this.resizeHandler()),h.options&&(this.settings.responsive?this.resizeHandler():this.clearResponsiveStyling())}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}changePage(h){this.pageChange.emit(h)}onInnerFocusIn(h,oe){this.zone.onStable.pipe((0,f.q)(1)).subscribe(()=>{"start"===oe?h.relatedTarget===this.element.nativeElement?this.focusFirstElement():this.focusLastElement():this.focusFirstElement()})}shouldTriggerPageChange(h,oe){return this.navigationService.pagerEnabled&&h===this.element.nativeElement&&oe}focusFirstElement(){const h=mh(this.element.nativeElement,!0);h&&h.focus()}focusLastElement(){const h=((ie,Qe=!0)=>((ie,Qe,h=!0)=>{let oe=null;return Vd(ie,kt=>(Qe(kt)&&(oe=kt),!1),h),oe})(ie,h=>hf(h,Qe),!1))(this.element.nativeElement,!0);h&&h.focus()}updateCellContext(){this.cellContext&&(this.cellContext.focusGroup=this.focusGroup)}clearResponsiveStyling(){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.numericButtons&&(this.renderer.removeStyle(this.numericButtons.numbersElement.nativeElement,"display"),this.renderer.setStyle(this.numericButtons.selectElement.nativeElement,"display","none")),this.pagerInfo&&this.renderer.removeStyle(this.pagerInfo.nativeElement,"display"),this.pagerPageSizes&&this.renderer.removeStyle(this.pagerPageSizes.nativeElement,"display")})})}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Qd),e.Y36(Su),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(Uo),e.Y36(Sh,8),e.Y36(Bc),e.Y36(sf))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-pager"]],viewQuery:function(h,oe){if(1&h&&(e.Gf(sp,5,e.SBq),e.Gf(Rm,5,e.SBq),e.Gf(ap,5)),2&h){let kt;e.iGM(kt=e.CRH())&&(oe.pagerInfo=kt.first),e.iGM(kt=e.CRH())&&(oe.pagerPageSizes=kt.first),e.iGM(kt=e.CRH())&&(oe.numericButtons=kt.first)}},hostVars:11,hostBindings:function(h,oe){1&h&&e.NdJ("focusin",function(ti){return oe.onFocusIn(ti)})("focusout",function(){return oe.onFocusOut()})("keydown.escape",function(){return oe.onEscape()})("keydown.enter",function(ti){return oe.onEnter(ti)})("keydown.arrowleft",function(ti){return oe.navigateToPreviousPage(ti)})("keydown.pageup",function(ti){return oe.navigateToPreviousPage(ti)})("keydown.arrowright",function(ti){return oe.navigateToNextPage(ti)})("keydown.pagedown",function(ti){return oe.navigateToNextPage(ti)})("keydown.home",function(ti){return oe.navigateToFirstPage(ti)})("keydown.end",function(ti){return oe.navigateToLastPage(ti)}),2&h&&(e.uIk("aria-label",oe.pagerAriaLabel),e.ekj("k-pager-wrap",oe.pagerWrapClass)("k-grid-pager",oe.gridPagerClass)("k-pager-sm",oe.sizeSmallClass)("k-pager-md",oe.sizeMediumClass)("k-focus",oe.isFocused))},inputs:{total:"total",skip:"skip",pageSize:"pageSize",options:"options",size:"size",template:"template"},outputs:{pageChange:"pageChange"},features:[e._Bn([{provide:Cc,useValue:!0},{provide:Bc,deps:[Cc],useClass:Bc},{provide:sf,deps:[Bc],useClass:sf}]),e.TTD],decls:5,vars:5,consts:[["class","k-sr-only",3,"tabindex","focusin",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"resize",4,"ngIf"],[1,"k-sr-only",3,"tabindex","focusin"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-pager-numbers-wrap"],[3,"size",4,"ngIf"],[3,"size","buttonCount",4,"ngIf"],[3,"size","pageSizes",4,"ngIf"],[3,"size"],[3,"size","buttonCount"],[3,"size","pageSizes"],[3,"resize"]],template:function(h,oe){1&h&&(e.YNc(0,ji,1,2,"div",0),e.YNc(1,Fo,1,2,"ng-container",1),e.YNc(2,ba,8,6,"ng-container",2),e.YNc(3,ms,1,2,"div",0),e.YNc(4,Oa,1,0,"kendo-resize-sensor",3)),2&h&&(e.Q6J("ngIf",oe.navigationService.pagerEnabled),e.xp6(1),e.Q6J("ngIf",null==oe.template?null:oe.template.templateRef),e.xp6(1),e.Q6J("ngIf",!(null!=oe.template&&oe.template.templateRef)),e.xp6(1),e.Q6J("ngIf",oe.navigationService.pagerEnabled),e.xp6(1),e.Q6J("ngIf",oe.settings.responsive))},dependencies:[rm,ap,jd,xf,sp,Rm,n.NG,X.O5,X.tP],encapsulation:2}),ie})(),Kh=(()=>{class ie{constructor(h,oe){this.element=h,this.service=oe,this.context={},this.enter=new e.vpe,this.leave=new e.vpe,this.drop=new e.vpe,this.subscriptions=new d.w0}ngOnInit(){this.service.add(this);const h=this.service.changes.pipe((0,w.h)(({target:oe})=>oe===this));this.subscriptions.add(h.pipe((0,w.h)(({type:oe})=>"leave"===oe)).subscribe(oe=>{this.leave.next(this.eventArgs(oe))})),this.subscriptions.add(h.pipe((0,w.h)(({type:oe})=>"enter"===oe)).subscribe(oe=>{this.enter.next(this.eventArgs(oe))})),this.subscriptions.add(h.pipe((0,w.h)(({type:oe})=>"drop"===oe)).subscribe(oe=>{this.drop.next(this.eventArgs(oe))}))}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}eventArgs(h){return{target:this,mouseEvent:h.mouseEvent,draggable:h.draggable}}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.SBq),e.Y36(bp))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoDropTarget",""]],inputs:{context:"context"},outputs:{enter:"enter",leave:"leave",drop:"drop"}}),ie})();const Sf=ie=>Qe=>new RegExp(`(^| )${ie}( |$)`).test(Qe.className),Lf=Pe(Sf("k-i-x"),Sf("k-svg-i-x"),Sf("k-icon-button")),Sp=Pe(Sf("k-i-sort-asc-small"),Sf("k-i-sort-desc-small"),Sf("k-svg-i-sort-asc-small"),Sf("k-svg-i-sort-desc-small")),Lm=Tn(Ta(Lf),Ta(Sp),Ta(hf),Ta(Lc("label"))),wp=({clientX:ie,clientY:Qe})=>(0,n.X_)()&&document.elementFromPoint(ie,Qe);let wm=(()=>{class ie{constructor(h,oe,kt,ti,Zo,hr,Cs,aa){this.draggable=h,this.element=oe,this.zone=kt,this.service=ti,this.hint=Zo,this.cue=hr,this.nav=Cs,this.renderer=aa,this.context={},this.drag=new e.vpe,this.subscriptions=new d.w0}set enableDrag(h){this.enabled=h,this.updateTouchAction()}get hostClass(){return this.enabled}ngOnInit(){this.subscriptions.add(this.zone.runOutsideAngular(()=>this.draggable.kendoPress.pipe((0,w.h)(h=>this.enabled),(0,w.h)(({originalEvent:{target:h}})=>h===this.element.nativeElement||Lm(h)),(0,I.b)(h=>{const oe=h.originalEvent;h.isTouch||oe.preventDefault(),this.nav.navigateTo(oe.target)}),(0,x.w)((ie=>Qe=>(0,a.of)(Qe).pipe((0,p.g)(150),(0,g.R)(ie)))(this.draggable.kendoRelease)),(0,I.b)(h=>{this.hint.create(this.context.hint),this.cue.create()}),(0,x.w)(h=>this.draggable.kendoDrag.pipe((0,I.b)(oe=>{oe.isTouch&&oe.originalEvent.preventDefault()}),(0,I.b)(this.hint.attach()),(0,I.b)(this.cue.attach()),(0,g.R)(this.draggable.kendoRelease),(0,k.U)(oe=>({move:oe,down:h})))),(0,I.b)(this.performDrag.bind(this)),(0,M.c)(this.draggable.kendoRelease)).subscribe(this.drop.bind(this))))}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}drop(h){this.hint.remove(),this.cue.remove(),this.service.notifyDrop(this,h)}performDrag({move:h}){this.hint.move(h);const oe=this.elementUnderCursor(h);oe&&this.service.notifyDrag(this,oe,h),this.drag.emit({draggable:this,mouseEvent:h})}elementUnderCursor(h){this.hint.hide();let oe=wp(h);return oe&&/k-grouping-dropclue/.test(oe.className)&&(oe=((ie,Qe)=>{ie.style.display="none";const h=Qe();return ie.style.display="block",h})(oe,wp.bind(this,h))),this.hint.show(),oe}updateTouchAction(){this.element&&(this.enabled?this.renderer.addClass(this.element.nativeElement,"k-touch-action-none"):this.renderer.removeClass(this.element.nativeElement,"k-touch-action-none"))}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(n.pD,1),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(bp),e.Y36(mu),e.Y36(Pf),e.Y36(Su),e.Y36(e.Qsj))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoDraggableColumn",""]],hostVars:2,hostBindings:function(h,oe){2&h&&e.ekj("k-grid-draggable-header",oe.hostClass)},inputs:{context:"context",enableDrag:"enableDrag"},outputs:{drag:"drag"}}),ie})();const cp=({field:ie})=>ei(ie),sm=({groups:ie,field:Qe})=>ie.some(h=>h.field===Qe),Gu=Pe(({target:ie,field:Qe})=>ie.field===Qe,Tn(({target:ie})=>ie.lastTarget,({groups:ie,field:Qe})=>ie.map(h=>h.field).indexOf(Qe)===ie.length-1));let Hu=(()=>{class ie{constructor(h,oe,kt,ti,Zo){this.hint=h,this.cue=oe,this.groupInfoService=kt,this.ctx=ti,this.cd=Zo,this.change=new e.vpe,this.groups=[],this.dropTargets=new e.n_E,this.groupTitles=[],this.subscription=new d.w0}get groupHeaderClass(){return!0}set text(h){this.emptyText=h}get text(){return this.emptyText?this.emptyText:this.ctx.localization.get("groupPanelEmpty")}ngAfterViewInit(){this.subscription.add(_o(this.dropTargets).subscribe(this.attachTargets.bind(this)))}ngOnInit(){this.subscription.add(this.ctx.localization.changes.subscribe(()=>this.cd.markForCheck()))}ngDoCheck(){const h=this.groups.map(oe=>this.groupInfoService.groupTitle(oe));(h.length!==this.groupTitles.length||h.some((oe,kt)=>oe!==this.groupTitles[kt]))&&(this.groupTitles=h,this.cd.markForCheck())}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.targetSubscription&&this.targetSubscription.unsubscribe()}messageFor(h){return this.ctx.localization.get(h)}getTitle(h){return this.messageFor("desc"===h.dir?"sortedDescending":"sortedAscending")}getDirectionIcon(h){return"desc"===h.dir?"sort-desc-sm":"sort-asc-sm"}getDirectionSvgIcon(h){return"desc"===h.dir?te.K8M:te.dpm}directionChange(h){h.dir=h.dir?h.dir:"asc",h.dir="asc"===h.dir?"desc":"asc";const oe=this.groups.findIndex(ti=>ti.field===h.field),kt=[...this.groups.slice(0,oe),h,...this.groups.slice(oe+1)];this.change.emit(kt)}insert(h,oe){const kt=this.groups.filter(ti=>ti.field!==h);(kt.length||0===this.groups.length)&&this.change.emit([...kt.slice(0,oe),{field:h},...kt.slice(oe)])}remove(h){this.change.emit(this.groups.filter(oe=>oe.field!==h.field))}canDrop(h,oe){return!("groupIndicator"===h.type?Gu:(ie=>Pe(cp,sm,(ie=>({field:Qe})=>!ie.isGroupable(Qe))(this.groupInfoService)))())({field:h.field,groups:this.groups,target:oe})}attachTargets(){this.targetSubscription&&this.targetSubscription.unsubscribe(),this.targetSubscription=new d.w0;const h=this.dropTargets.reduce((ti,Zo)=>(0,o.T)(ti,Zo.enter),(0,u.D)([])),oe=this.dropTargets.reduce((ti,Zo)=>(0,o.T)(ti,Zo.leave),(0,u.D)([])),kt=this.dropTargets.reduce((ti,Zo)=>(0,o.T)(ti,Zo.drop),(0,u.D)([]));this.targetSubscription.add(h.pipe((0,I.b)(ti=>this.hint.removeLock()),(0,w.h)(({draggable:ti,target:Zo})=>this.canDrop(ti.context,Zo.context)),(0,I.b)(this.enter.bind(this)),(0,M.c)(kt.pipe((0,g.R)(oe.pipe((0,I.b)(this.leave.bind(this))))))).subscribe(this.drop.bind(this)))}enter({draggable:h,target:oe}){this.hint.enable();let kt=oe.context.lastTarget||tm(h.element.nativeElement,oe.element.nativeElement);this.ctx.localization.rtl&&(kt=!kt),this.cue.position(ym(oe.element.nativeElement,kt))}leave(){this.hint.disable(),this.cue.hide()}drop({target:h,draggable:oe}){const kt=oe.context.field,ti=this.dropTargets.toArray().indexOf(h);this.insert(kt,ti)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(mu),e.Y36(Pf),e.Y36(Pl),e.Y36(Uo),e.Y36(e.sBO))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-group-panel"]],viewQuery:function(h,oe){if(1&h&&e.Gf(Kh,5),2&h){let kt;e.iGM(kt=e.CRH())&&(oe.dropTargets=kt)}},hostVars:2,hostBindings:function(h,oe){2&h&&e.ekj("k-grouping-header",oe.groupHeaderClass)},inputs:{text:"text",navigable:"navigable",groups:"groups"},outputs:{change:"change"},decls:3,vars:3,consts:[["class","k-grouping-drop-container","kendoDropTarget","",3,"context",4,"ngIf"],["role","none",3,"navigable",4,"ngIf"],["kendoDropTarget","",1,"k-grouping-drop-container",3,"context"],["role","none",3,"navigable"],["kendoDropTarget","","kendoDraggableColumn","","kendoDraggable","",3,"title","enableDrag","context","label","removable","icon","svgIcon","contentClick","remove",4,"ngFor","ngForOf"],["kendoDropTarget","","kendoDraggableColumn","","kendoDraggable","",3,"title","enableDrag","context","label","removable","icon","svgIcon","contentClick","remove"]],template:function(h,oe){1&h&&(e.YNc(0,Sa,2,3,"div",0),e.YNc(1,Li,2,2,"kendo-chiplist",1),e.YNc(2,Ao,2,2,"div",0)),2&h&&(e.Q6J("ngIf",0===oe.groups.length),e.xp6(1),e.Q6J("ngIf",0!==oe.groups.length),e.xp6(1),e.Q6J("ngIf",0!==oe.groups.length))},dependencies:[si.rf,si.Yw,X.O5,Kh,X.sg,wm,n.pD],encapsulation:2,changeDetection:0}),ie})(),dp=(()=>{class ie{constructor(){this.columns=[],this.groups=[],this.sort=new Array}get columnsToRender(){return mf(this.columns)}trackBy(h,oe){return h}isSorted(h){const oe=this.sortDescriptor(h.field);return this.isSortable(h)&&("asc"===oe.dir||"desc"===oe.dir)}getColumnComponent(h){return h}isSortable(h){return!ei(h.field)&&st(h.sortable)}sortDescriptor(h){return this.sort.find(oe=>oe.field===h)||{field:h}}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["","kendoGridColGroup",""]],inputs:{columns:"columns",groups:"groups",detailTemplate:"detailTemplate",sort:"sort"},attrs:ao,decls:4,vars:4,consts:[[3,"k-group-col",4,"ngFor","ngForOf"],[3,"k-hierarchy-col",4,"ngIf"],[3,"width","k-sorted",4,"ngFor","ngForOf","ngForTrackBy"]],template:function(h,oe){1&h&&(e.ynx(0),e.YNc(1,Go,1,2,"col",0),e.YNc(2,pr,1,2,"col",1),e.YNc(3,Rr,1,4,"col",2),e.BQk()),2&h&&(e.xp6(1),e.Q6J("ngForOf",oe.groups),e.xp6(1),e.Q6J("ngIf",null==oe.detailTemplate?null:oe.detailTemplate.templateRef),e.xp6(1),e.Q6J("ngForOf",oe.columnsToRender)("ngForTrackBy",oe.trackBy))},dependencies:[X.sg,X.O5],encapsulation:2}),ie})();const Ng={allowUnsort:!0,mode:"single",showIndexes:!0,initialDirection:"asc",multiSortKey:"none"},up=(...ie)=>Object.assign({},Ng,...ie),xc=(ie,Qe)=>!1!==ie.filter&&Qe.field&&Qe.filterable,Fm=(ie,Qe)=>!1!==ie.sort&&Qe.field&&Qe.sortable,Pu=(ie,Qe)=>ie.lock&&Qe.lockable&&!(Qe.parent&&!Qe.parent.isSpanColumn),Yf=ie=>!1!==ie.columnChooser,Hp=ie=>ie.autoSizeColumn,Vp=ie=>ie.autoSizeAllColumns,Em=(ie,Qe,h)=>{h?ie.autoFitColumn(h):ie.autoFitColumns(),Qe.close()},Wp=(ie={filterEqOperator:"eq",filterNotEqOperator:"neq",filterGteOperator:"gte",filterGtOperator:"gt",filterLteOperator:"lte",filterLtOperator:"lt",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty",filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterAfterOrEqualOperator:"after-eq",filterAfterOperator:"after",filterBeforeOrEqualOperator:"before-eq",filterBeforeOperator:"before"},Qe=>Object.keys(ie).reduce((h,oe)=>(h[ie[oe]]=Qe.get(oe),h),{})),lm=ie=>ie.map(Qe=>Qe.toJSON());var ie;let nc=(()=>{class ie{constructor(h,oe){this.operator=h,this.ctx=oe,this.messages=Wp(this.ctx.localization),this._text=this.messages[this.operator],this.subscription=this.ctx.localization.changes.subscribe(this.refreshText.bind(this))}get text(){return this._text}set text(h){this._text=ei(h)?this.messages[this.operator]:h}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}toJSON(){return{text:this.text,value:this.operator}}refreshText(){const h=this._text===this.messages[this.operator];this.messages=Wp(this.ctx.localization),h&&(this._text=this.messages[this.operator])}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36("filterOperator"),e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-filter-operator-base"]],inputs:{text:"text"},decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})();const Nf=(ie,Qe,h,oe)=>ye(Qe)&&ye(Qe.filters)&&Qe.filters.length>ie?Qe.filters[ie]:((ie,Qe,h)=>((Qe=Qe||{filters:[],logic:"and"}).filters[ie]=h,h))(ie,Qe,{field:h,operator:oe}),sd=ie=>[{text:ie.get("filterAndLogic"),value:"and"},{text:ie.get("filterOrLogic"),value:"or"}],Ru=ie=>ye(ie.filters)?ie.filters.reduce((Qe,h)=>Qe.concat((0,K.GO)(h)?Ru(h):[h]),[]):[],Bm=(ie,Qe)=>{ye(ie)&&ye(ie.filters)&&(ie.filters=ie.filters.filter(h=>(0,K.GO)(h)?(Bm(h,Qe),h.filters.length):h.field!==Qe))},Zf=(ie,Qe)=>Ru(ie||{}).filter(h=>h.field===Qe),Bd=(ie,Qe)=>(Bm(ie,Qe),ie),Ep=ie=>Qe=>Object.keys(ie).map(h=>({text:Qe.get(h),value:ie[h]}));let Zd=(()=>{class ie{constructor(h){this.filterService=h,this.operatorList=new e.n_E,this.size="medium"}get hostClasses(){return!0}get operators(){return this._operators?.length?this._operators:this.defaultOperators}set operators(h){this._operators=h}ngAfterContentInit(){this.operationListSubscription=_o(this.operatorList).pipe((0,k.U)(h=>h.toArray()),(0,k.U)(lm)).subscribe(h=>{this.operators=h})}ngOnDestroy(){this.operationListSubscription&&this.operationListSubscription.unsubscribe()}filterByField(h){return((ie,Qe)=>{const[h]=Zf(ie,Qe);return h})(this.filter,h)}filtersByField(h){return Zf(this.filter,h)}removeFilter(h){return Bd(this.filter,h)}updateFilter(h){const oe=this.filter||{filters:[],logic:"and"},[kt]=Ru(oe).filter(ti=>ti.field===h.field);return ye(kt)?Object.assign(kt,h):oe.filters.push(h),oe}applyFilter(h){this.filterService.filter(h)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Xc))},ie.\u0275dir=e.lG2({type:ie,contentQueries:function(h,oe,kt){if(1&h&&e.Suo(kt,nc,4),2&h){let ti;e.iGM(ti=e.CRH())&&(oe.operatorList=ti)}},hostVars:2,hostBindings:function(h,oe){2&h&&e.ekj("k-filtercell",oe.hostClasses)},inputs:{operators:"operators"}}),ie})();const S_=(ie,Qe)=>ie.field!==Qe.field||ie.operator!==Qe.operator||ie.value!==Qe.value,Tp=ie=>{if(ie)return(0,K.GO)(ie)?{filters:Tp(ie.filters),logic:ie.logic}:Array.isArray(ie)?ie.map(Tp):(ie=>(ie=>{const Qe={};if(Object.assign(Qe,ie),ie.constructor!==Object){const h=ie.constructor.prototype;Object.getOwnPropertyNames(h).forEach(oe=>{"constructor"!==oe&&h.hasOwnProperty(oe)&&(Qe[oe]=ie[oe])})}return Qe})(ie))(ie)},zm=(ie,Qe)=>!!(ye(ie)&&!ye(Qe)||!ye(ie)&&ye(Qe))||ye(ie)&&ye(Qe)&&((ie,Qe)=>{if(ie.length!==Qe.length)return!0;for(let h=0,oe=ie.length;h<oe;h++){const kt=ie[h],ti=Qe[h];if((0,K.GO)(kt)){if(zm(kt,ti[h]))return!0}else if(S_(kt,ti))return!0}return!1})(ie.filters,Qe.filters);let Dd=(()=>{class ie{constructor(h,oe){this.host=h,this.resolver=oe}ngOnInit(){this.component=this.host.createComponent(this.resolver.resolveComponentFactory(this.componentType())),this.initComponent({column:this.column,filter:this.filter})}ngOnDestroy(){this.component&&(this.component.destroy(),this.component=null)}ngOnChanges(h){(0,n.aG)(["column","filter"],h)&&this.initComponent({column:this.column,filter:this.filter})}initComponent({column:h,filter:oe}){const kt=this.component.instance;kt.column=h,kt.filter=oe}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.s_b),e.Y36(e._Vd))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridFilterHostBase",""]],inputs:{column:"column",filter:"filter"},features:[e.TTD]}),ie})();const Oh=Ep({filterEqOperator:"eq",filterNotEqOperator:"neq",filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty"});let Ph=(()=>{class ie extends Zd{constructor(h,oe){super(h),this.ctx=oe,this.operator="contains"}get currentFilter(){return this.filterByField((this.column||{}).field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}ngOnInit(){this.subscription=this.ctx.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.defaultOperators=Oh(this.ctx.localization),this.operatorList.length&&(this.operators=lm(this.operatorList.toArray()))}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Xc),e.Y36(Uo))},ie.\u0275dir=e.lG2({type:ie,inputs:{column:"column",filter:"filter",operator:"operator"},features:[e.qOj]}),ie})(),bd=(()=>{class ie{constructor(h,oe,kt,ti){this.element=kt,this.renderer=ti,this.change=new e.vpe,this.composing=!1,this.filterDelay=500,this.changeRequests=new l.x,this.accessor=h[0],oe.runOutsideAngular(()=>{const Zo=ti.listen(kt.nativeElement,"compositionstart",()=>this.composing=!0),hr=ti.listen(kt.nativeElement,"compositionend",()=>this.composing=!1);this.unsubscribeEvents=()=>{Zo(),hr()}})}set value(h){this.accessor.writeValue(h)}set disabled(h){this.accessor.setDisabledState(h)}ngAfterViewInit(){this.addAriaAttributes(),this.accessor.registerOnChange(h=>this.filterDelay>0?this.changeRequests.next(h):this.change.emit(h)),this.subscribeChanges()}ngOnChanges(h){(0,n.ln)("filterDelay",h)&&(this.unsubscribeChanges(),this.subscribeChanges())}ngOnDestroy(){this.unsubscribeChanges(),this.unsubscribeEvents()}subscribeChanges(){this.changeRequestsSubscription=this.changeRequests.pipe((0,D.b)(this.filterDelay),(0,w.h)(()=>!this.composing)).subscribe(h=>this.change.emit(h))}unsubscribeChanges(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()}addAriaAttributes(){const h=this.columnLabel;if(this.kendoInput&&this.kendoInput.focusableId&&(0,n.X_)()){const oe=this.element.nativeElement.querySelector(`#${this.kendoInput.focusableId}`)||this.element.nativeElement;this.renderer.setAttribute(oe,"aria-label",h)}else{const oe=this.element.nativeElement.querySelector(".k-input-inner");h&&this.renderer.setAttribute(oe||this.element.nativeElement,"aria-label",h)}}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(me.JU,2),e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(e.Qsj))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoFilterInput",""]],contentQueries:function(h,oe,kt){if(1&h&&e.Suo(kt,n.GX,7),2&h){let ti;e.iGM(ti=e.CRH())&&(oe.kendoInput=ti.first)}},inputs:{filterDelay:"filterDelay",columnLabel:"columnLabel",value:"value"},features:[e.TTD]}),ie})();const uh=new Set(["isnull","isnotnull","isempty","isnotempty"]),Ac=ie=>uh.has(ie);let ol=(()=>{class ie extends Zd{constructor(h){super(h)}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){const h=this.currentFilter;return this._operator||(this._operator=h?h.operator:this.defaultOperator),this._operator}set currentOperator(h){this._operator=h;const oe=Ac(h);this.filterInputDisabled=oe,oe?this.applyNoValueFilter(h):!bt(h)&&ye(this.currentFilter)&&this.onChange(this.currentFilter.value)}get defaultOperator(){return ei(this._defaultOperator)?this.operators&&this.operators.length?this.operators[0].value:"eq":this._defaultOperator}set defaultOperator(h){this._defaultOperator=h}set filterInputDisabled(h){this.input&&(this.input.disabled=h)}ngAfterContentInit(){ye(this.input)&&(this.changeSubscription=this.input.change.subscribe(this.onChange.bind(this)),this.filterInputDisabled=Ac(this.currentOperator))}ngOnDestroy(){super.ngOnDestroy(),this.changeSubscription&&this.changeSubscription.unsubscribe()}onChange(h){(!ei(h)||this.filterByField(this.column.field))&&this.filterChange(ei(h)?this.removeFilter(this.column.field):this.updateFilter({field:this.column.field,operator:this.currentOperator,value:h}))}onClear(){this.onChange(null),this.filterInputDisabled=Ac(this.defaultOperator)}applyNoValueFilter(h){this.filterChange(this.updateFilter({field:this.column.field,operator:h,value:null}))}ngOnChanges(h){(0,n.ln)("filter",h,!1)&&(this._operator=null,this.filterInputDisabled=Ac(this.currentOperator))}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Xc))},ie.\u0275dir=e.lG2({type:ie,contentQueries:function(h,oe,kt){if(1&h&&e.Suo(kt,bd,5),2&h){let ti;e.iGM(ti=e.CRH())&&(oe.input=ti.first)}},inputs:{column:"column",filter:"filter",defaultOperator:"defaultOperator"},features:[e.qOj,e.TTD]}),ie})(),Kf=(()=>{class ie{constructor(h){this.host=h,this.keydownHandler=oe=>{oe.keyCode===n.R8.Escape&&this.host.isOpen&&(oe.stopPropagation(),this.host.toggle(!1))}}ngAfterViewInit(){const h=this.host.wrapper.nativeElement;h.setAttribute("aria-label",this.filterMenuDropDownLabel),h.addEventListener("keydown",this.keydownHandler,!0)}ngOnDestroy(){this.host.wrapper.nativeElement.removeEventListener("keydown",this.keydownHandler)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Pi.rI))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoFilterMenuDropDown",""]],inputs:{filterMenuDropDownLabel:"filterMenuDropDownLabel"}}),ie})(),Um=(()=>{class ie extends ol{constructor(h){super(null),this.ctx=h}get hostClasses(){return!1}ngAfterViewInit(){const h=this.isFirstDropDown&&this.filterService&&this.filterService.menuTabbingService,oe=this.menuTabbingService?.isTabbedInterface;h&&!oe&&(this.filterService.menuTabbingService.firstFocusable=this.firstOperatorDropDown,this.firstOperatorDropDown.focus())}operatorChange(h){this.currentOperator=h}filterChange(h){this.applyFilter(h)}get currentFilter(){return this._currentFilter}set currentFilter(h){this._currentFilter=h}updateFilter(h){return Object.assign(this.currentFilter,h),this.filter}onChange(h){this.filterChange(this.updateFilter({field:this.column.field,operator:this.currentOperator,value:h}))}onShiftTab(h){h.stopImmediatePropagation(),(!this.menuTabbingService||!this.menuTabbingService.isColumnMenu)&&this.isFirstDropDown&&this.filterService.menuTabbingService.lastFocusable&&(h.preventDefault(),this.filterService.menuTabbingService.lastFocusable.focus())}get filterMenuDropDownLabel(){const h=this.ctx.localization.get("filterMenuOperatorsDropDownLabel")||"";return Aa(h,"columnName",this.column?this.column.title||this.column.field:"")}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-filter-menu-input-wrapper"]],viewQuery:function(h,oe){if(1&h&&e.Gf(Pi.rI,5),2&h){let kt;e.iGM(kt=e.CRH())&&(oe.firstOperatorDropDown=kt.first)}},inputs:{filterService:"filterService",isFirstDropDown:"isFirstDropDown",menuTabbingService:"menuTabbingService",currentFilter:"currentFilter"},features:[e.qOj],ngContentSelectors:br,decls:2,vars:4,consts:[["kendoFilterMenuDropDown","","textField","text","valueField","value",3,"filterMenuDropDownLabel","data","value","valuePrimitive","valueChange","keydown.shift.tab"]],template:function(h,oe){1&h&&(e.F$t(),e.TgZ(0,"kendo-dropdownlist",0),e.NdJ("valueChange",function(ti){return oe.operatorChange(ti)})("keydown.shift.tab",function(ti){return oe.onShiftTab(ti)}),e.qZA(),e.Hsn(1)),2&h&&e.Q6J("filterMenuDropDownLabel",oe.filterMenuDropDownLabel)("data",oe.operators)("value",oe.currentOperator)("valuePrimitive",!0)},dependencies:[Pi.rI,Kf],encapsulation:2}),ie})(),cm=(()=>{class ie{constructor(h){this.ctx=h,this.operators=[]}get columnLabel(){const h=this.ctx.localization.get("filterInputLabel")||"";return Aa(h,"columnName",this.column?this.column.title||this.column.field:"")}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-string-filter-menu-input"]],inputs:{operators:"operators",column:"column",filter:"filter",operator:"operator",currentFilter:"currentFilter",filterService:"filterService",isFirstDropDown:"isFirstDropDown",menuTabbingService:"menuTabbingService"},decls:2,vars:11,consts:[[3,"column","filter","operators","defaultOperator","currentFilter","filterService","isFirstDropDown","menuTabbingService"],["kendoTextBox","","kendoFilterInput","",3,"columnLabel","filterDelay","ngModel"]],template:function(h,oe){1&h&&(e.TgZ(0,"kendo-grid-filter-menu-input-wrapper",0),e._UZ(1,"input",1),e.qZA()),2&h&&(e.Q6J("column",oe.column)("filter",oe.filter)("operators",oe.operators)("defaultOperator",oe.operator)("currentFilter",oe.currentFilter)("filterService",oe.filterService)("isFirstDropDown",oe.isFirstDropDown)("menuTabbingService",oe.menuTabbingService),e.xp6(1),e.Q6J("columnLabel",oe.columnLabel)("filterDelay",0)("ngModel",null==oe.currentFilter?null:oe.currentFilter.value))},dependencies:[Um,ot.mP,me.Fj,bd,me.JJ,me.On],encapsulation:2}),ie})(),fc=(()=>{class ie extends Ph{constructor(h){super(null,h),this.logicOperators=sd(this.ctx.localization),this.filter={filters:[],logic:"and"},this.extra=!0}get hostClasses(){return!1}get firstFilter(){return Nf(0,this.filter,(this.column||{}).field,this.operator)}get secondFilter(){return Nf(1,this.filter,(this.column||{}).field,this.operator)}logicChange(h){this.filter.logic=h}get filterMenuDropDownLabel(){const h=this.ctx.localization.get("filterMenuLogicDropDownLabel")||"";return Aa(h,"columnName",this.column?this.column.title||this.column.field:"")}localizationChange(){this.logicOperators=sd(this.ctx.localization),super.localizationChange()}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-string-filter-menu"]],hostVars:2,hostBindings:function(h,oe){2&h&&e.ekj("k-filtercell",oe.hostClasses)},inputs:{column:"column",filter:"filter",extra:"extra",filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[e.qOj],decls:3,vars:9,consts:[[3,"currentFilter","operators","filterService","column","filter","isFirstDropDown","menuTabbingService"],["kendoFilterMenuDropDown","","class","k-filter-and","textField","text","valueField","value",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange",4,"ngIf"],[3,"operators","currentFilter","filterService","column","filter","menuTabbingService",4,"ngIf"],["kendoFilterMenuDropDown","","textField","text","valueField","value",1,"k-filter-and",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange"],[3,"operators","currentFilter","filterService","column","filter","menuTabbingService"]],template:function(h,oe){1&h&&(e._UZ(0,"kendo-grid-string-filter-menu-input",0),e.YNc(1,Ti,1,4,"kendo-dropdownlist",1),e.YNc(2,mr,1,6,"kendo-grid-string-filter-menu-input",2)),2&h&&(e.Q6J("currentFilter",oe.firstFilter)("operators",oe.operators)("filterService",oe.filterService)("column",oe.column)("filter",oe.filter)("isFirstDropDown",!0)("menuTabbingService",oe.menuTabbingService),e.xp6(1),e.Q6J("ngIf",oe.extra),e.xp6(1),e.Q6J("ngIf",oe.extra))},dependencies:[cm,Pi.rI,X.O5,Kf],encapsulation:2}),ie})();const Gm=Ep({filterEqOperator:"eq",filterNotEqOperator:"neq",filterGteOperator:"gte",filterGtOperator:"gt",filterLteOperator:"lte",filterLtOperator:"lt",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull"});let Rh=(()=>{class ie extends Zd{constructor(h,oe){super(h),this.ctx=oe,this.operator="eq",this.step=1,this.spinners=!0,this.defaultOperators=Gm(this.ctx.localization)}set format(h){this._format=h}get format(){return ei(this._format)?this.columnFormat:this._format}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}get columnFormat(){return this.column&&!ei(this.column.format)?zs(this.column.format):"n2"}ngOnInit(){this.subscription=this.ctx.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.defaultOperators=Gm(this.ctx.localization),this.operatorList.length&&(this.operators=lm(this.operatorList.toArray()))}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Xc),e.Y36(Uo))},ie.\u0275dir=e.lG2({type:ie,inputs:{column:"column",filter:"filter",operator:"operator",step:"step",min:"min",max:"max",spinners:"spinners",decimals:"decimals",format:"format"},features:[e.qOj]}),ie})(),hh=(()=>{class ie{constructor(h){this.ctx=h,this.operators=[],this.step=1,this.spinners=!0}messageFor(h){return this.ctx.localization.get(h)}get columnLabel(){const h=this.ctx.localization.get("filterInputLabel")||"";return Aa(h,"columnName",this.column?this.column.title||this.column.field:"")}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-numeric-filter-menu-input"]],inputs:{operators:"operators",column:"column",filter:"filter",operator:"operator",currentFilter:"currentFilter",filterService:"filterService",filterDelay:"filterDelay",isFirstDropDown:"isFirstDropDown",menuTabbingService:"menuTabbingService",step:"step",min:"min",max:"max",spinners:"spinners",decimals:"decimals",format:"format"},decls:3,vars:20,consts:[[3,"column","filter","operators","defaultOperator","currentFilter","filterService","isFirstDropDown","menuTabbingService"],["kendoFilterInput","",3,"columnLabel","filterDelay","autoCorrect","value","format","decimals","spinners","min","max","step"],[3,"increment","decrement"]],template:function(h,oe){1&h&&(e.TgZ(0,"kendo-grid-filter-menu-input-wrapper",0)(1,"kendo-numerictextbox",1),e._UZ(2,"kendo-numerictextbox-messages",2),e.qZA()()),2&h&&(e.Q6J("column",oe.column)("filter",oe.filter)("operators",oe.operators)("defaultOperator",oe.operator)("currentFilter",oe.currentFilter)("filterService",oe.filterService)("isFirstDropDown",oe.isFirstDropDown)("menuTabbingService",oe.menuTabbingService),e.xp6(1),e.Q6J("columnLabel",oe.columnLabel)("filterDelay",oe.filterDelay)("autoCorrect",!0)("value",null==oe.currentFilter?null:oe.currentFilter.value)("format",oe.format)("decimals",oe.decimals)("spinners",oe.spinners)("min",oe.min)("max",oe.max)("step",oe.step),e.xp6(1),e.Q6J("increment",oe.messageFor("filterNumericIncrement"))("decrement",oe.messageFor("filterNumericDecrement")))},dependencies:[Um,ot.Uw,ot.wS,bd],encapsulation:2}),ie})(),Dp=(()=>{class ie extends Rh{constructor(h){super(null,h),this.logicOperators=sd(this.ctx.localization),this.filter={filters:[],logic:"and"},this.extra=!0,this.filterDelay=500}get hostClasses(){return!1}get firstFilter(){return Nf(0,this.filter,(this.column||{}).field,this.operator)}get secondFilter(){return Nf(1,this.filter,(this.column||{}).field,this.operator)}logicChange(h){this.filter.logic=h}get filterMenuDropDownLabel(){const h=this.ctx.localization.get("filterMenuLogicDropDownLabel")||"";return Aa(h,"columnName",this.column?this.column.title||this.column.field:"")}localizationChange(){this.logicOperators=sd(this.ctx.localization),super.localizationChange()}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-numeric-filter-menu"]],hostVars:2,hostBindings:function(h,oe){2&h&&e.ekj("k-filtercell",oe.hostClasses)},inputs:{column:"column",filter:"filter",extra:"extra",filterService:"filterService",filterDelay:"filterDelay",menuTabbingService:"menuTabbingService"},features:[e.qOj],decls:3,vars:16,consts:[[3,"currentFilter","operators","filterService","column","filter","filterDelay","format","decimals","spinners","min","max","step","menuTabbingService","isFirstDropDown"],["kendoFilterMenuDropDown","","class","k-filter-and","textField","text","valueField","value",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange",4,"ngIf"],[3,"operators","currentFilter","filterService","column","filter","format","decimals","spinners","min","max","step","menuTabbingService",4,"ngIf"],["kendoFilterMenuDropDown","","textField","text","valueField","value",1,"k-filter-and",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange"],[3,"operators","currentFilter","filterService","column","filter","format","decimals","spinners","min","max","step","menuTabbingService"]],template:function(h,oe){1&h&&(e._UZ(0,"kendo-grid-numeric-filter-menu-input",0),e.YNc(1,ri,1,4,"kendo-dropdownlist",1),e.YNc(2,mo,1,12,"kendo-grid-numeric-filter-menu-input",2)),2&h&&(e.Q6J("currentFilter",oe.firstFilter)("operators",oe.operators)("filterService",oe.filterService)("column",oe.column)("filter",oe.filter)("filterDelay",oe.filterDelay)("format",oe.format)("decimals",oe.decimals)("spinners",oe.spinners)("min",oe.min)("max",oe.max)("step",oe.step)("menuTabbingService",oe.menuTabbingService)("isFirstDropDown",!0),e.xp6(1),e.Q6J("ngIf",oe.extra),e.xp6(1),e.Q6J("ngIf",oe.extra))},dependencies:[hh,Pi.rI,X.O5,Kf],encapsulation:2}),ie})();const Et=Ep({filterEqOperator:"eq",filterNotEqOperator:"neq",filterAfterOrEqualOperator:"gte",filterAfterOperator:"gt",filterBeforeOrEqualOperator:"lte",filterBeforeOperator:"lt",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull"});let Cn=(()=>{class ie extends Zd{constructor(h,oe){super(h),this.ctx=oe,this.operator="gte",this.activeView="month",this.bottomView="month",this.topView="century",this.weekNumber=!1,this.defaultOperators=Et(this.ctx.localization)}get currentFilter(){return this.filterByField(this.column.field)}set format(h){this._format=h}get format(){return ei(this._format)?this.columnFormat:this._format}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}get columnFormat(){return this.column&&!ei(this.column.format)?zs(this.column.format):"d"}ngOnInit(){this.subscription=this.ctx.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.defaultOperators=Et(this.ctx.localization),this.operatorList.length&&(this.operators=lm(this.operatorList.toArray()))}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Xc),e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-date-filter-base"]],inputs:{column:"column",filter:"filter",operator:"operator",format:"format",min:"min",max:"max",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",activeView:"activeView",bottomView:"bottomView",topView:"topView",weekNumber:"weekNumber"},features:[e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),Fe=(()=>{class ie{constructor(h,oe){this.popupService=h,this.ctx=oe,this.operators=[]}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}open(h){this.subscription=this.popupService.onClose.pipe((0,w.h)(()=>h.isActive)).subscribe(oe=>oe.preventDefault())}messageFor(h){return this.ctx.localization.get(h)}get columnLabel(){const h=this.ctx.localization.get("filterInputLabel")||"";return Aa(h,"columnName",this.column?this.column.title||this.column.field:"")}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(ip),e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-date-filter-menu-input"]],inputs:{operators:"operators",column:"column",filter:"filter",operator:"operator",currentFilter:"currentFilter",filterService:"filterService",menuTabbingService:"menuTabbingService",format:"format",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",min:"min",max:"max",activeView:"activeView",bottomView:"bottomView",topView:"topView",weekNumber:"weekNumber",isFirstDropDown:"isFirstDropDown"},decls:4,vars:22,consts:[[3,"column","filter","operators","defaultOperator","currentFilter","filterService","isFirstDropDown","menuTabbingService"],["kendoFilterInput","",3,"columnLabel","filterDelay","value","placeholder","formatPlaceholder","format","min","max","activeView","bottomView","topView","weekNumber","open"],["picker",""],[3,"toggle","today"]],template:function(h,oe){if(1&h){const kt=e.EpF();e.TgZ(0,"kendo-grid-filter-menu-input-wrapper",0)(1,"kendo-datepicker",1,2),e.NdJ("open",function(){e.CHM(kt);const Zo=e.MAs(2);return e.KtG(oe.open(Zo))}),e._UZ(3,"kendo-datepicker-messages",3),e.qZA()()}2&h&&(e.Q6J("column",oe.column)("filter",oe.filter)("operators",oe.operators)("defaultOperator",oe.operator)("currentFilter",oe.currentFilter)("filterService",oe.filterService)("isFirstDropDown",oe.isFirstDropDown)("menuTabbingService",oe.menuTabbingService),e.xp6(1),e.Q6J("columnLabel",oe.columnLabel)("filterDelay",0)("value",null==oe.currentFilter?null:oe.currentFilter.value)("placeholder",oe.placeholder)("formatPlaceholder",oe.formatPlaceholder)("format",oe.format)("min",oe.min)("max",oe.max)("activeView",oe.activeView)("bottomView",oe.bottomView)("topView",oe.topView)("weekNumber",oe.weekNumber),e.xp6(2),e.Q6J("toggle",oe.messageFor("filterDateToggle"))("today",oe.messageFor("filterDateToday")))},dependencies:[Um,pn.Lr,pn.cY,bd],encapsulation:2}),ie})(),Zt=(()=>{class ie extends Cn{constructor(h){super(null,h),this.logicOperators=sd(this.ctx.localization),this.filter={filters:[],logic:"and"},this.extra=!0}get hostClasses(){return!1}get firstFilter(){return Nf(0,this.filter,(this.column||{}).field,this.operator)}get secondFilter(){return Nf(1,this.filter,(this.column||{}).field,this.operator)}logicChange(h){this.filter.logic=h}get filterMenuDropDownLabel(){const h=this.ctx.localization.get("filterMenuLogicDropDownLabel")||"";return Aa(h,"columnName",this.column?this.column.title||this.column.field:"")}localizationChange(){this.logicOperators=sd(this.ctx.localization),super.localizationChange()}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-date-filter-menu"]],hostVars:2,hostBindings:function(h,oe){2&h&&e.ekj("k-filtercell",oe.hostClasses)},inputs:{column:"column",filter:"filter",extra:"extra",filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[e.qOj],decls:3,vars:18,consts:[[3,"currentFilter","operators","filterService","column","filter","activeView","bottomView","topView","format","formatPlaceholder","placeholder","min","max","weekNumber","isFirstDropDown","menuTabbingService"],["kendoFilterMenuDropDown","","class","k-filter-and","textField","text","valueField","value",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange",4,"ngIf"],[3,"operators","currentFilter","filterService","column","filter","activeView","bottomView","topView","format","formatPlaceholder","placeholder","min","max","weekNumber","menuTabbingService",4,"ngIf"],["kendoFilterMenuDropDown","","textField","text","valueField","value",1,"k-filter-and",3,"filterMenuDropDownLabel","data","valuePrimitive","value","valueChange"],[3,"operators","currentFilter","filterService","column","filter","activeView","bottomView","topView","format","formatPlaceholder","placeholder","min","max","weekNumber","menuTabbingService"]],template:function(h,oe){1&h&&(e._UZ(0,"kendo-grid-date-filter-menu-input",0),e.YNc(1,Ii,1,4,"kendo-dropdownlist",1),e.YNc(2,yo,1,15,"kendo-grid-date-filter-menu-input",2)),2&h&&(e.Q6J("currentFilter",oe.firstFilter)("operators",oe.operators)("filterService",oe.filterService)("column",oe.column)("filter",oe.filter)("activeView",oe.activeView)("bottomView",oe.bottomView)("topView",oe.topView)("format",oe.format)("formatPlaceholder",oe.formatPlaceholder)("placeholder",oe.placeholder)("min",oe.min)("max",oe.max)("weekNumber",oe.weekNumber)("isFirstDropDown",!0)("menuTabbingService",oe.menuTabbingService),e.xp6(1),e.Q6J("ngIf",oe.extra),e.xp6(1),e.Q6J("ngIf",oe.extra))},dependencies:[Fe,Pi.rI,X.O5,Kf],encapsulation:2}),ie})(),Ln=(()=>{class ie extends Zd{constructor(h,oe){super(h),this.ctx=oe,this.operator="eq",this.items=[{text:this.ctx.localization.get("filterIsTrue"),value:!0},{text:this.ctx.localization.get("filterIsFalse"),value:!1}],this.defaultItem={text:this.ctx.localization.get("filterBooleanAll"),value:null}}get hostClasses(){return!0}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:this.operator}ngOnInit(){this.subscription=this.ctx.localization.changes.subscribe(this.localizationChange.bind(this))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}localizationChange(){this.items=[{text:this.ctx.localization.get("filterIsTrue"),value:!0},{text:this.ctx.localization.get("filterIsFalse"),value:!1}],this.defaultItem={text:this.ctx.localization.get("filterBooleanAll"),value:null}}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Xc),e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-boolean-filter-base"]],hostVars:2,hostBindings:function(h,oe){2&h&&e.ekj("k-filtercell-boolean",oe.hostClasses)},inputs:{column:"column",filter:"filter"},features:[e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),So=(()=>{class ie{constructor(h,oe){this.hostElement=h,this.renderer=oe}ngAfterViewInit(){this.radioButtonEl=this.hostElement.nativeElement,this.renderer.setAttribute(this.hostElement.nativeElement,"aria-label",this.columnLabel)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.SBq),e.Y36(e.Qsj))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoFilterMenuRadioButton",""]],inputs:{columnLabel:"columnLabel"}}),ie})(),Jo=(()=>{class ie extends Ln{constructor(h){super(null,h),this.filter={filters:[],logic:"and"},this.idPrefix=(0,n.M8)()}get hostClasses(){return!1}ngAfterViewInit(){this.filterService.menuTabbingService.firstFocusable=this.radioButtons.first.radioButtonEl,this.menuTabbingService?.isTabbedInterface||this.radioButtons.first.radioButtonEl.focus()}radioId(h){return`${this.idPrefix}_${h}`}onChange(h,oe){this.applyFilter(this.updateFilter({field:this.column.field,operator:"eq",value:h})),this.filterService.menuTabbingService.firstFocusable=oe}isSelected(h){return this.filtersByField(this.column.field).some(({value:oe})=>oe===h)}onShiftTab(h){(!this.menuTabbingService||!this.menuTabbingService.isColumnMenu)&&this.filterService.menuTabbingService.lastFocusable&&(h.preventDefault(),this.filterService.menuTabbingService.lastFocusable.focus())}get columnLabel(){const h=this.ctx.localization.get("filterInputLabel")||"";return Aa(h,"columnName",this.column.title||this.column.field)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-boolean-filter-menu"]],viewQuery:function(h,oe){if(1&h&&e.Gf(So,5),2&h){let kt;e.iGM(kt=e.CRH())&&(oe.radioButtons=kt)}},hostVars:2,hostBindings:function(h,oe){2&h&&e.ekj("k-filtercell",oe.hostClasses)},inputs:{filter:"filter",filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[e.qOj],decls:2,vars:1,consts:[[1,"k-radio-list","k-reset"],[4,"ngFor","ngForOf"],["type","radio","kendoFilterMenuRadioButton","","kendoRadioButton","",3,"columnLabel","name","checked","change","keydown.shift.tab"],["input",""],[1,"k-radio-label"]],template:function(h,oe){1&h&&(e.TgZ(0,"ul",0),e.YNc(1,lr,5,6,"li",1),e.qZA()),2&h&&(e.xp6(1),e.Q6J("ngForOf",oe.items))},dependencies:[X.sg,ot._B,So],encapsulation:2}),ie})(),Es=(()=>{class ie extends Dd{constructor(h,oe){super(h,oe)}componentType(){return ye(this.column)&&!ei(this.column.filter)?(ie=>({boolean:Jo,date:Zt,numeric:Dp,text:fc}[this.column.filter]))():fc}initComponent(h){super.initComponent(h),this.component.instance.filterService=this.filterService,this.component.instance.menuTabbingService=this.menuTabbingService}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.s_b),e.Y36(e._Vd))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoFilterMenuHost",""]],inputs:{filterService:"filterService",menuTabbingService:"menuTabbingService"},features:[e.qOj]}),ie})();const Ra=({value:ie,operator:Qe})=>!ei(ie)||(ie=>"isnull"===ie||"isnotnull"===ie||"isempty"===ie||"isnotempty"===ie)(Qe),Al=(ie,Qe,h)=>ie.reduce((oe,kt)=>oe||(kt.filters?Al(kt.filters,Qe,kt):kt.field===Qe?h:oe),void 0),kl=(ie,Qe,h="and")=>{const oe=Al((ie||{}).filters||[],Qe);return ye(oe)?oe.logic:h};let gl=(()=>{class ie{constructor(h,oe,kt,ti,Zo){this.parentService=h,this.childService=oe,this.ctx=kt,this.cd=ti,this.close=new e.vpe,this.actionsClass="k-actions k-actions-stretched k-actions-horizontal",this._templateContext={},this.menuTabbingService=Zo}set filter(h){this._filter=Tp(h)}get filter(){return this._filter}get childFilter(){return ye(this._childFilter)||(this._childFilter={filters:Zf(this.filter,(this.column||{}).field),logic:kl(this.filter,(this.column||{}).field)}),this._childFilter}ngOnInit(){this.subscription=this.childService.changes.subscribe(h=>this._childFilter=h),this.subscription.add(this.ctx.localization.changes.subscribe(()=>this.cd.markForCheck()))}ngAfterViewChecked(){(!this.menuTabbingService.isColumnMenu||this.isLast&&this.isExpanded)&&(this.menuTabbingService.lastFocusable=this.disabled?this.resetButton.nativeElement:this.filterButton.nativeElement)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.menuTabbingService.lastFocusable=void 0}get disabled(){return!this.childFilter.filters.some(Ra)}get templateContext(){return this._templateContext.column=this.column,this._templateContext.filter=this.childFilter,this._templateContext.filterService=this.childService,this._templateContext.$implicit=this.childFilter,this._templateContext}get hasTemplate(){return ye(this.column)&&ye(this.column.filterMenuTemplateRef)}submit(){const h=(ie=>(ie.filters=ie.filters.filter(Ra),ie))(this.childFilter);if(h.filters.length){const oe=this.filter||{filters:[],logic:"and"};Bd(oe,this.column.field),oe.filters.push(h),this.parentService.filter(oe)}return this.close.emit(),!1}reset(){const h=this.filter||{filters:[],logic:"and"};Bd(h,this.column.field),this.parentService.filter(h),this.close.emit()}onTab(h,oe){this.menuTabbingService.firstFocusable&&(!this.menuTabbingService.isColumnMenu||this.isLast)&&(h.preventDefault(),"reset"===oe||this.disabled?this.menuTabbingService.firstFocusable.focus():this.resetButton.nativeElement.focus())}get clearText(){return this.ctx.localization.get("filterClearButton")}get filterText(){return this.ctx.localization.get("filterFilterButton")}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Xc,4),e.Y36(Xc),e.Y36(Uo),e.Y36(e.sBO),e.Y36(Uu))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-filter-menu-container"]],viewQuery:function(h,oe){if(1&h&&(e.Gf(Yr,5),e.Gf(Gs,5)),2&h){let kt;e.iGM(kt=e.CRH())&&(oe.resetButton=kt.first),e.iGM(kt=e.CRH())&&(oe.filterButton=kt.first)}},inputs:{column:"column",isLast:"isLast",isExpanded:"isExpanded",menuTabbingService:"menuTabbingService",filter:"filter",actionsClass:"actionsClass"},outputs:{close:"close"},features:[e._Bn([Xc,Uu])],decls:12,vars:7,consts:[[1,"k-filter-menu","k-group","k-reset","k-state-border-up",3,"submit","reset"],[1,"k-filter-menu-container"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"ngClass"],["type","submit",1,"k-button","k-button-solid-primary","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"disabled","keydown.tab"],["filterButton",""],["type","reset",1,"k-button","k-button-solid-base","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"keydown.tab"],["resetButton",""],["kendoFilterMenuHost","",3,"filterService","column","filter","menuTabbingService"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(h,oe){1&h&&(e.TgZ(0,"form",0),e.NdJ("submit",function(){return oe.submit()})("reset",function(){return oe.reset()}),e.TgZ(1,"div",1),e.ynx(2,2),e.YNc(3,fi,2,4,"ng-container",3),e.YNc(4,Zn,2,1,"ng-container",3),e.BQk(),e.TgZ(5,"div",4)(6,"button",5,6),e.NdJ("keydown.tab",function(ti){return oe.onTab(ti,"filter")}),e._uU(8),e.qZA(),e.TgZ(9,"button",7,8),e.NdJ("keydown.tab",function(ti){return oe.onTab(ti,"reset")}),e._uU(11),e.qZA()()()()),2&h&&(e.xp6(2),e.Q6J("ngSwitch",oe.hasTemplate),e.xp6(1),e.Q6J("ngSwitchCase",!1),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngClass",oe.actionsClass),e.xp6(1),e.Q6J("disabled",oe.disabled),e.xp6(2),e.Oqu(oe.filterText),e.xp6(3),e.Oqu(oe.clearText))},dependencies:[me._Y,me.JL,me.F,X.RF,X.n9,Es,X.O5,X.tP,X.mk],encapsulation:2}),ie})(),wl=0,Rl=(()=>{class ie{constructor(h,oe,kt,ti,Zo,hr,Cs){this.filterService=h,this.popupService=oe,this.ctx=kt,this.navigationService=ti,this.renderer=Zo,this.cdr=hr,this.idService=Cs,this.filterIcon=te.QR$,this.tabIndex="-1"}get hasFilters(){return Zf(this.filter,(this.column||{}).field).length>0}get filterLabel(){const h=this.ctx.localization.get("filterMenuTitle")||"";return Aa(h,"columnName",this.column.title||this.column.field)}get isNavigable(){return this.navigationService.tableEnabled}toggle(h,oe){this.popupRef=this.popupService.open(h,oe,this.popupRef);const kt=this.isNavigable?h.closest(".k-table-th"):h;if(this.popupRef){this.popupRef.popup.instance.close.pipe((0,f.q)(1)).subscribe(()=>{this.popupRef=null;const Zo=this.isNavigable?h.closest(".k-table-th"):h;Zo&&this.renderer.removeAttribute(Zo,"aria-controls"),Zo&&this.renderer.setAttribute(Zo,"aria-expanded","false")});const ti=this.popupRef.popupElement.querySelector(".k-grid-filter-popup");if(ti){const Zo=(ie=>`${this.idService?.gridId()}-filter-menu-${wl++}`)();this.renderer.setAttribute(ti,"id",Zo),this.renderer.setAttribute(ti,"role","dialog"),this.renderer.setAttribute(ti,"aria-label",this.filterLabel),kt&&this.renderer.setAttribute(kt,"aria-controls",Zo),kt&&this.renderer.setAttribute(kt,"aria-expanded","true")}}else this.navigationService.tableEnabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus();return!1}close(){this.popupService.destroy(),this.popupRef=null,this.cdr.markForCheck(),this.navigationService.tableEnabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Xc),e.Y36(ip),e.Y36(Uo),e.Y36(Su),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(Xd,8))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-filter-menu"]],viewQuery:function(h,oe){if(1&h&&(e.Gf(qo,7),e.Gf(Cr,7,e.Rgc)),2&h){let kt;e.iGM(kt=e.CRH())&&(oe.anchor=kt.first),e.iGM(kt=e.CRH())&&(oe.template=kt.first)}},inputs:{column:"column",filter:"filter",tabIndex:"tabIndex"},decls:5,vars:7,consts:[["href","#",1,"k-grid-filter-menu","k-grid-header-menu",3,"tabindex","click","keydown.enter"],["anchor",""],["name","filter",3,"svgIcon"],["template",""],[3,"column","filter","close","keydown.escape","keydown.enter"]],template:function(h,oe){if(1&h){const kt=e.EpF();e.TgZ(0,"a",0,1),e.NdJ("click",function(){e.CHM(kt);const Zo=e.MAs(1),hr=e.MAs(4);return e.KtG(oe.toggle(Zo,hr))})("keydown.enter",function(Zo){return Zo.stopImmediatePropagation()}),e._UZ(2,"kendo-icon-wrapper",2),e.qZA(),e.YNc(3,kr,1,2,"ng-template",null,3,e.W1O)}2&h&&(e.ekj("k-active",oe.hasFilters),e.Q6J("tabindex",oe.tabIndex),e.uIk("title",oe.filterLabel)("aria-haspopup",oe.isNavigable?void 0:"dialog")("aria-expanded",!!oe.isNavigable&&void 0),e.xp6(2),e.Q6J("svgIcon",oe.filterIcon))},dependencies:[de.ZS,gl],encapsulation:2}),ie})(),jc=(()=>{class ie{constructor(h){this.closeMenu=new e.vpe,this.menuTabbingService=h}close(){this.closeMenu.emit()}}return ie.\u0275fac=function(h){return new(h||ie)(e.LFG(Uu))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})();const Md_autoSizeColumn="The auto size column does not work with enabled virtual columns",Md_autoSizeAllColumns="The auto size all columns does not work with enabled virtual columns";let Sc=(()=>{class ie{constructor(){this.hostClass=!0}ngOnInit(){if((0,e.X6Q)()&&!this.service)throw new Error("The service input of the predefined column menu components is mandatory.")}close(){this.service.close()}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-column-menu-item-base"]],hostVars:2,hostBindings:function(h,oe){2&h&&e.ekj("k-columnmenu-item-wrapper",oe.hostClass)},inputs:{service:"service"},decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),fh=(()=>{class ie{constructor(h){this.templateRef=h}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.Rgc,8))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridColumnMenuItemContentTemplate",""]]}),ie})(),tu=(()=>{class ie{constructor(){this.itemClick=new e.vpe,this.expand=new e.vpe,this.collapse=new e.vpe,this.contentState="collapsed"}ngAfterViewInit(){this.contentTemplate&&(this.contentId=`k-${(0,n.M8)()}`)}ngOnChanges(h){h.expanded&&this.updateContentState()}onClick(h){this.itemClick.emit(h),this.contentTemplate&&(this.expanded=!this.expanded,this.updateContentState(),this.expanded?this.expand.emit():this.collapse.emit())}updateContentState(){this.contentState=this.expanded?"expanded":"collapsed"}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-columnmenu-item"]],contentQueries:function(h,oe,kt){if(1&h&&e.Suo(kt,fh,5),2&h){let ti;e.iGM(ti=e.CRH())&&(oe.contentTemplate=ti.first)}},inputs:{icon:"icon",svgIcon:"svgIcon",text:"text",selected:"selected",disabled:"disabled",expanded:"expanded"},outputs:{itemClick:"itemClick",expand:"expand",collapse:"collapse"},features:[e.TTD],decls:4,vars:10,consts:[["role","button",1,"k-columnmenu-item",3,"click","keydown.enter"],[3,"name","svgIcon"],["class","k-columnmenu-item-content",3,"overflow",4,"ngIf"],[1,"k-columnmenu-item-content"],[3,"ngTemplateOutlet"]],template:function(h,oe){1&h&&(e.TgZ(0,"div",0),e.NdJ("click",function(ti){return oe.onClick(ti)})("keydown.enter",function(ti){return oe.onClick(ti)}),e._UZ(1,"kendo-icon-wrapper",1),e._uU(2),e.qZA(),e.YNc(3,xs,3,5,"div",2)),2&h&&(e.ekj("k-selected",oe.selected)("k-disabled",oe.disabled),e.uIk("aria-expanded",oe.expanded)("aria-controls",oe.expanded?oe.contentId:void 0),e.xp6(1),e.Q6J("name",oe.icon)("svgIcon",oe.svgIcon),e.xp6(1),e.hij(" ",oe.text," "),e.xp6(1),e.Q6J("ngIf",oe.contentTemplate))},dependencies:[de.ZS,X.O5,X.tP],encapsulation:2,data:{animation:[(0,wi.X$)("state",[(0,wi.SB)("collapsed",(0,wi.oB)({display:"none"})),(0,wi.SB)("expanded",(0,wi.oB)({display:"block"})),(0,wi.eR)("collapsed => expanded",[(0,wi.oB)({height:"0px",display:"block"}),(0,wi.jt)("100ms ease-in",(0,wi.oB)({height:"*"}))]),(0,wi.eR)("expanded => collapsed",[(0,wi.oB)({height:"*"}),(0,wi.jt)("100ms ease-in",(0,wi.oB)({height:"0px"}))])])]}}),ie})(),pc=(()=>{class ie extends Sc{constructor(h,oe,kt){super(),this.ctx=h,this.columnInfoService=oe,this.changeDetector=kt,this.unlockIcon=te.GZK,this.lockIcon=te.YGw}get text(){return this.ctx.localization.get(this.locked?"unlock":"lock")}get icon(){return this.locked?"unlock":"lock"}get svgIcon(){return this.locked?this.unlockIcon:this.lockIcon}get disabled(){return!this.locked&&this.columnInfoService.unlockedRootCount<2}toggleColumn(){this.toggleHierarchy(!this.locked),this.close(),this.changeDetector.markForCheck()}toggleHierarchy(h){let oe=this.service.column;for(;oe.parent;)oe=oe.parent;const kt=[oe],ti=[];for(;kt.length;){const Zo=kt.shift();Zo.locked=h,ti.push(Zo),Zo.hasChildren&&kt.push(...Zo.childrenArray)}this.columnInfoService.changeLocked(ti)}get locked(){return this.service.column.locked}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo),e.Y36(Rd),e.Y36(e.sBO))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-columnmenu-lock"]],features:[e.qOj],decls:1,vars:4,consts:[[3,"text","icon","svgIcon","disabled","itemClick"]],template:function(h,oe){1&h&&(e.TgZ(0,"kendo-grid-columnmenu-item",0),e.NdJ("itemClick",function(){return oe.toggleColumn()}),e.qZA()),2&h&&e.Q6J("text",oe.text)("icon",oe.icon)("svgIcon",oe.svgIcon)("disabled",oe.disabled)},dependencies:[tu],encapsulation:2}),ie})(),wc=(()=>{class ie extends Sc{constructor(h,oe,kt){super(),this.ctx=h,this.columnInfoService=oe,this.changeDetector=kt,this.stickIcon=te.Lpe,this.unstickIcon=te.yXJ}get text(){return this.ctx.localization.get(this.sticky?"unstick":"stick")}get icon(){return this.sticky?"unstick":"stick"}get svgIcon(){return this.sticky?this.unstickIcon:this.stickIcon}get disabled(){return!this.sticky&&this.columnInfoService.unlockedRootCount<2}toggleColumn(){this.toggleHierarchy(!this.sticky),this.close(),this.changeDetector.markForCheck()}toggleHierarchy(h){let oe=this.service.column;for(;oe.parent;)oe=oe.parent;const kt=[oe],ti=[];for(;kt.length;){const Zo=kt.shift();Zo.sticky=h,ti.push(Zo),Zo.hasChildren&&kt.push(...Zo.childrenArray)}this.columnInfoService.changeStuck(ti)}get sticky(){return this.service.column.sticky}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo),e.Y36(Rd),e.Y36(e.sBO))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-columnmenu-stick"]],features:[e.qOj],decls:1,vars:4,consts:[[3,"text","icon","svgIcon","disabled","itemClick"]],template:function(h,oe){1&h&&(e.TgZ(0,"kendo-grid-columnmenu-item",0),e.NdJ("itemClick",function(){return oe.toggleColumn()}),e.qZA()),2&h&&e.Q6J("text",oe.text)("icon",oe.icon)("svgIcon",oe.svgIcon)("disabled",oe.disabled)},dependencies:[tu],encapsulation:2}),ie})(),hp=(()=>{class ie extends Sc{constructor(h,oe){super(),this.ctx=h,this.hostElement=oe,this.expand=new e.vpe,this.collapse=new e.vpe,this.expanded=!1,this.actionsClass="k-actions",this.setColumnPositionIcon=te.x$Z,this._isLast=!1}set isLast(h){this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem(),this._isLast=h}get isLast(){return this._isLast}onTab(h,oe){this.isLast&&oe&&(h.preventDefault(),h.stopImmediatePropagation(),this.service&&this.service.menuTabbingService.firstFocusable.focus())}onCollapse(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem()),this.collapse.emit()}onExpand(){this.expanded=!0,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem()),this.expand.emit()}getLastFocusableItem(){const h=this.hostElement.nativeElement.querySelectorAll(".k-columnmenu-item");return h[this.expanded?h.length-1:0]}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo),e.Y36(e.SBq))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-columnmenu-position"]],inputs:{expanded:"expanded",showLock:"showLock",showStick:"showStick",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[e.qOj],decls:2,vars:3,consts:[["icon","set-column-position",3,"text","svgIcon","expanded","keydown.tab","collapse","expand"],["kendoGridColumnMenuItemContentTemplate",""],[3,"service","keydown.tab",4,"ngIf"],[3,"service","keydown.tab"]],template:function(h,oe){1&h&&(e.TgZ(0,"kendo-grid-columnmenu-item",0),e.NdJ("keydown.tab",function(ti){return oe.onTab(ti,!oe.expanded)})("collapse",function(){return oe.onCollapse()})("expand",function(){return oe.onExpand()}),e.YNc(1,Ss,2,2,"ng-template",1),e.qZA()),2&h&&e.Q6J("text",oe.ctx.localization.get("setColumnPosition"))("svgIcon",oe.setColumnPositionIcon)("expanded",oe.expanded)},dependencies:[tu,pc,wc,fh,X.O5],encapsulation:2}),ie})(),dm=(()=>{class ie{constructor(h){this.renderer=h,this.activeIndex=0}next(){this.toggle(this.activeIndex,!1),this.activeIndex=Math.min(this.activeIndex+1,this.items.length-1),this.toggle(this.activeIndex,!0)}prev(){this.toggle(this.activeIndex,!1),this.activeIndex=Math.max(this.activeIndex-1,0),this.toggle(this.activeIndex,!0)}toggle(h,oe){const kt=this.items[h]?.host.nativeElement;kt&&this.renderer.setAttribute(this.items[h].host.nativeElement,"tabindex",oe?"0":"-1"),oe&&kt&&kt.focus()}toggleCheckedState(){this.items[this.activeIndex].host.nativeElement.firstElementChild.click()}}return ie.\u0275fac=function(h){return new(h||ie)(e.LFG(e.Qsj))},ie.\u0275prov=e.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),Jh=(()=>{class ie{constructor(h,oe){this.host=h,this.renderer=oe,this.checkedChangeSub=new d.w0}ngAfterViewInit(){this.checkedChangeSub.add(this.renderer.listen(this.host.nativeElement.firstElementChild,"change",h=>{this.kendoColumnMenuChooserItemChecked=h.target.checked}))}ngOnDestroy(){this.checkedChangeSub.unsubscribe()}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.SBq),e.Y36(e.Qsj))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoColumnMenuChooserItemChecked",""]],hostVars:1,hostBindings:function(h,oe){2&h&&e.uIk("aria-checked",oe.kendoColumnMenuChooserItemChecked)},inputs:{kendoColumnMenuChooserItemChecked:"kendoColumnMenuChooserItemChecked"}}),ie})(),um=(()=>{class ie{constructor(h,oe,kt,ti){this.element=h,this.ngZone=oe,this.renderer=kt,this.listNavigationService=ti,this.reset=new e.vpe,this.apply=new e.vpe,this.columnChange=new e.vpe,this.autoSync=!0,this.allowHideAll=!1,this.actionsClass="k-actions k-actions-stretched k-actions-horizontal",this.unlockedCount=0,this.domSubscriptions=new d.w0,this.onKeydown=Zo=>{Zo.keyCode!==n.R8.Tab&&Zo.preventDefault(),Zo.keyCode===n.R8.ArrowDown?this.listNavigationService.next():Zo.keyCode===n.R8.ArrowUp?this.listNavigationService.prev():Zo.keyCode===n.R8.Space&&Zo.target.classList.contains("k-column-list-item")&&this.listNavigationService.toggleCheckedState()}}get className(){return!0}isChecked(h){return h.checked}set columns(h){this._columns=h.filter(oe=>!1!==oe.includeInChooser),this.allColumns=h,this.updateColumnState()}get columns(){return this._columns}isDisabled(h){return!(this.allowHideAll||this.hasFiltered||h.hidden||this.columns.find(oe=>oe!==h&&!oe.hidden))||this.hasVisibleLocked&&!this.hasUnlockedFiltered&&1===this.unlockedCount&&!h.locked&&!h.hidden}ngOnInit(){this.element&&this.ngZone.runOutsideAngular(()=>{this.domSubscriptions.add(this.renderer.listen(this.element.nativeElement,"click",h=>{const oe=h.target.closest(".k-column-list-item");if(oe){const kt=oe.querySelector(".k-checkbox"),ti=parseInt(kt.getAttribute("data-index"),10);if(h.target===kt?oe.focus():(h.preventDefault(),kt.checked=!kt.checked),this.autoSync){const Zo=this.columns[ti],hr=!kt.checked;!!Zo.hidden!==hr&&this.ngZone.run(()=>{Zo.hidden=hr,this.columnChange.emit([Zo])})}else this.updateDisabled();ti!==this.listNavigationService.activeIndex&&(this.listNavigationService.toggle(this.listNavigationService.activeIndex,!1),this.listNavigationService.activeIndex=ti,this.listNavigationService.toggle(ti,!0))}})),this.domSubscriptions.add(this.renderer.listen(this.element.nativeElement,"keydown",this.onKeydown))})}ngAfterViewInit(){this.listNavigationService.items=this.options.toArray(),this.listNavigationService.toggle(0,!0)}ngOnChanges(h){this.service&&(h.isLast&&this.isLast&&(this.service.menuTabbingService.lastFocusable=this.applyButton.nativeElement),h.isExpanded&&this.isExpanded&&this.isLast&&this.applyButton&&(this.service.menuTabbingService.lastFocusable=this.applyButton.nativeElement))}ngOnDestroy(){this.domSubscriptions.unsubscribe()}cancelChanges(){this.forEachCheckBox((h,oe)=>{h.checked=!this.columns[oe].hidden}),this.updateDisabled(),this.reset.emit()}applyChanges(){const h=[];this.forEachCheckBox((oe,kt)=>{const ti=this.columns[kt],Zo=!oe.checked;!!ti.hidden!==Zo&&(ti.hidden=Zo,h.push(ti))}),this.updateDisabled(),this.apply.emit(h)}onTab(h){this.isLast&&(h.preventDefault(),this.service?this.service.menuTabbingService.firstFocusable.focus():this.listNavigationService.toggle(this.listNavigationService.activeIndex,!0))}forEachCheckBox(h){const oe=this.element.nativeElement.getElementsByClassName("k-checkbox"),kt=oe.length;for(let ti=0;ti<kt;ti++)h(oe[ti],ti)}updateDisabled(){if(this.allowHideAll&&!this.hasLocked)return;const h=[];if(this.forEachCheckBox((oe,kt)=>{oe.checked&&h.push({checkbox:oe,index:kt}),oe.disabled=!1}),this.allowHideAll||1!==h.length||this.hasFiltered){if(this.hasLocked&&!this.hasUnlockedFiltered){const oe=this.columns,kt=h.filter(ti=>!oe[ti.index].locked);1===kt.length&&(kt[0].checkbox.disabled=!0)}}else h[0].checkbox.disabled=!0}updateColumnState(){this.hasLocked=this.allColumns.filter(oe=>oe.locked&&(!oe.hidden||!1!==oe.includeInChooser)).length>0,this.hasVisibleLocked=this.allColumns.filter(oe=>oe.locked&&!oe.hidden).length>0,this.unlockedCount=this.columns.filter(oe=>!oe.locked&&!oe.hidden).length;const h=this.allColumns.filter(oe=>!1===oe.includeInChooser&&!oe.hidden);h.length?(this.hasFiltered=h.length>0,this.hasUnlockedFiltered=h.filter(oe=>!oe.locked).length>0):(this.hasFiltered=!1,this.hasUnlockedFiltered=!1)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(dm))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-columnlist"]],viewQuery:function(h,oe){if(1&h&&(e.Gf(Yr,5),e.Gf(Ua,5),e.Gf(Jh,5)),2&h){let kt;e.iGM(kt=e.CRH())&&(oe.resetButton=kt.first),e.iGM(kt=e.CRH())&&(oe.applyButton=kt.first),e.iGM(kt=e.CRH())&&(oe.options=kt)}},hostVars:2,hostBindings:function(h,oe){2&h&&e.ekj("k-column-list-wrapper",oe.className)},inputs:{columns:"columns",autoSync:"autoSync",ariaLabel:"ariaLabel",allowHideAll:"allowHideAll",applyText:"applyText",resetText:"resetText",actionsClass:"actionsClass",isLast:"isLast",isExpanded:"isExpanded",service:"service"},outputs:{reset:"reset",apply:"apply",columnChange:"columnChange"},features:[e._Bn([dm]),e.TTD],decls:3,vars:3,consts:[["role","listbox","aria-multiselectable","true",1,"k-column-list"],["class","k-column-list-item","role","option",3,"kendoColumnMenuChooserItemChecked",4,"ngFor","ngForOf"],[3,"ngClass",4,"ngIf"],["role","option",1,"k-column-list-item",3,"kendoColumnMenuChooserItemChecked"],["type","checkbox","tabindex","-1",1,"k-checkbox","k-checkbox-md","k-rounded-md",3,"checked","disabled"],[1,"k-checkbox-label"],[3,"ngClass"],["type","button",1,"k-button","k-button-solid-primary","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"click","keydown.enter","keydown.space"],["applyButton",""],["type","button",1,"k-button","k-button-solid-base","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"keydown.tab","click","keydown.enter","keydown.space"],["resetButton",""]],template:function(h,oe){1&h&&(e.TgZ(0,"div",0),e.YNc(1,$o,4,6,"label",1),e.qZA(),e.YNc(2,Ar,7,3,"div",2)),2&h&&(e.uIk("aria-label",oe.ariaLabel),e.xp6(1),e.Q6J("ngForOf",oe.columns),e.xp6(1),e.Q6J("ngIf",!oe.autoSync))},dependencies:[X.sg,Jh,X.O5,X.mk],encapsulation:2}),ie})(),wf=(()=>{class ie extends Sc{constructor(h,oe,kt,ti){super(),this.ctx=h,this.columnInfoService=oe,this.changeDetector=kt,this.hostElement=ti,this.expand=new e.vpe,this.collapse=new e.vpe,this.expanded=!1,this.isLast=!1,this.actionsClass="k-actions k-actions-stretched k-actions-horizontal",this.columnsIcon=te.b8s}get columns(){return this.columnInfoService.leafNamedColumns}onApply(h){this.close(),h.length&&(this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(h))}onCollapse(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.hostElement.nativeElement.querySelector(".k-columnmenu-item")),this.collapse.emit()}onExpand(){this.expanded=!0,this.expand.emit()}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo),e.Y36(Rd),e.Y36(e.sBO),e.Y36(e.SBq))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-columnmenu-chooser"]],inputs:{expanded:"expanded",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[e.qOj],decls:2,vars:3,consts:[["icon","columns",3,"text","svgIcon","expanded","collapse","expand"],["kendoGridColumnMenuItemContentTemplate",""],[3,"applyText","resetText","ariaLabel","columns","autoSync","allowHideAll","actionsClass","isLast","isExpanded","service","apply"]],template:function(h,oe){1&h&&(e.TgZ(0,"kendo-grid-columnmenu-item",0),e.NdJ("collapse",function(){return oe.onCollapse()})("expand",function(){return oe.onExpand()}),e.YNc(1,No,1,10,"ng-template",1),e.qZA()),2&h&&e.Q6J("text",oe.ctx.localization.get("columns"))("svgIcon",oe.columnsIcon)("expanded",oe.expanded)},dependencies:[tu,um,fh],encapsulation:2}),ie})(),vg=(()=>{class ie extends Sc{constructor(h,oe){super(),this.ctx=h,this.hostElement=oe,this.expand=new e.vpe,this.collapse=new e.vpe,this.expanded=!1,this.isLast=!1,this.actionsClass="k-actions k-actions-stretched k-actions-horizontal",this.filterIcon=te.QR$}onCollapse(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.hostElement.nativeElement.querySelector(".k-columnmenu-item")),this.collapse.emit()}onExpand(){this.expanded=!0,this.expand.emit()}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo),e.Y36(e.SBq))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-columnmenu-filter"]],inputs:{expanded:"expanded",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[e.qOj],decls:2,vars:3,consts:[["icon","filter",3,"text","svgIcon","expanded","collapse","expand"],["kendoGridColumnMenuItemContentTemplate",""],[3,"column","menuTabbingService","filter","actionsClass","isLast","isExpanded","keydown.shift.tab","close"]],template:function(h,oe){1&h&&(e.TgZ(0,"kendo-grid-columnmenu-item",0),e.NdJ("collapse",function(){return oe.onCollapse()})("expand",function(){return oe.onExpand()}),e.YNc(1,qr,1,6,"ng-template",1),e.qZA()),2&h&&e.Q6J("text",oe.ctx.localization.get("filter"))("svgIcon",oe.filterIcon)("expanded",oe.expanded)},dependencies:[tu,gl,fh],encapsulation:2}),ie})(),tg=(()=>{class ie{constructor(h,oe,kt){this.hostElement=h,this.renderer=oe,this.ngZone=kt,this._isFirst=!1,this._isLast=!1,this.subs=new d.w0,this.onTab=ti=>{ti.keyCode===n.R8.Tab&&(this.isFirst&&ti.shiftKey&&ti.target===this.columnMenuItems[0]&&(ti.preventDefault(),this.menuItemComponent.service.menuTabbingService.lastFocusable.focus()),this.isLast&&!ti.shiftKey)&&this.getLastColumnMenuItem()===ti.target&&!this.menuItemComponent.expanded&&(ti.preventDefault(),this.menuItemComponent.service.menuTabbingService.firstFocusable.focus())}}set isFirst(h){if(h){const oe=this.columnMenuItems[0];this.menuItemComponent.service.menuTabbingService.firstFocusable=oe,this.ngZone.runOutsideAngular(()=>{const kt=this.renderer.listen(oe,"keydown",this.onTab);this.subs.add(kt)})}this._isFirst=h}get isFirst(){return this._isFirst}set isLast(h){if(this.columnMenuItems){if(h){const oe=this.getLastColumnMenuItem();this.menuItemComponent.service.menuTabbingService.lastFocusable=oe,this.ngZone.runOutsideAngular(()=>{const kt=this.renderer.listen(oe,"keydown",this.onTab);this.subs.add(kt)}),this.isExpandableItem()&&(this.menuItemComponent.isLast=!0)}this._isLast=h}}get isLast(){return this._isLast}ngAfterViewInit(){this.columnMenuItems=this.hostElement.nativeElement.querySelectorAll(".k-columnmenu-item"),[].slice.apply(this.columnMenuItems).forEach(h=>this.renderer.setAttribute(h,"tabindex","0")),this.menuItemComponent instanceof vg&&(this.menuItemComponent.service.menuTabbingService.isColumnMenu=!0)}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}getLastColumnMenuItem(){return 1===this.columnMenuItems.length?this.columnMenuItems[0]:this.columnMenuItems[1]}isExpandableItem(){return this.menuItemComponent instanceof vg||this.menuItemComponent instanceof wf||this.menuItemComponent instanceof hp}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridColumnMenuItem",""]],inputs:{menuItemComponent:["kendoGridColumnMenuItem","menuItemComponent"]}}),ie})(),Il=(()=>{class ie{constructor(h,oe){this.service=h,this.ngZone=oe}ngAfterContentInit(){this.columnMenuItems.length&&(this.columnMenuItems.first.isFirst=!0,this.columnMenuItems.last.isLast=!0,this.ngZone.onStable.pipe((0,f.q)(1)).subscribe(()=>this.service.menuTabbingService.firstFocusable.focus()))}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(jc),e.Y36(e.R0b))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-columnmenu-container"]],contentQueries:function(h,oe,kt){if(1&h&&e.Suo(kt,tg,5),2&h){let ti;e.iGM(ti=e.CRH())&&(oe.columnMenuItems=ti)}},ngContentSelectors:br,decls:1,vars:0,template:function(h,oe){1&h&&(e.F$t(),e.Hsn(0))},encapsulation:2}),ie})(),Kl=(()=>{class ie extends Sc{constructor(h,oe,kt){super(),this.ctx=h,this.sortService=oe,this.renderer=kt,this.sortAscSmallIcon=te.dpm,this.sortDescSmallIcon=te.K8M}get sortedAsc(){const h=this.descriptor;return h&&(!h.dir||"asc"===h.dir)}get sortedDesc(){const h=this.descriptor;return h&&"desc"===h.dir}toggleSort(h){const oe=this.service.column.field,{mode:kt,allowUnsort:ti}=up(this.service.sortable),Zo=this.descriptor,hr="multiple"===kt?this.service.sort.filter(Cs=>Cs.field!==oe):[];if(Zo&&Zo.dir===h){if(!ti)return}else hr.push({field:oe,dir:h});this.sortService.sort(hr),this.close()}get descriptor(){return[].concat(this.service.sort||[]).find(h=>h.field===this.service.column.field)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo),e.Y36(nm),e.Y36(e.Qsj))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-columnmenu-sort"]],features:[e.qOj],decls:2,vars:6,consts:[["icon","sort-asc-small",3,"text","svgIcon","selected","itemClick"],["icon","sort-desc-small",3,"text","svgIcon","selected","itemClick"]],template:function(h,oe){1&h&&(e.TgZ(0,"kendo-grid-columnmenu-item",0),e.NdJ("itemClick",function(){return oe.toggleSort("asc")}),e.qZA(),e.TgZ(1,"kendo-grid-columnmenu-item",1),e.NdJ("itemClick",function(){return oe.toggleSort("desc")}),e.qZA()),2&h&&(e.Q6J("text",oe.ctx.localization.get("sortAscending"))("svgIcon",oe.sortAscSmallIcon)("selected",oe.sortedAsc),e.xp6(1),e.Q6J("text",oe.ctx.localization.get("sortDescending"))("svgIcon",oe.sortDescSmallIcon)("selected",oe.sortedDesc))},dependencies:[tu],encapsulation:2}),ie})(),Xl=(()=>{class ie extends Sc{constructor(h){super(),this.ctx=h,this.maxWidthIcon=te.Uyc}ngOnInit(){this.ctx.grid.columnMenuTemplate&&this.ctx.grid.virtualColumns&&(0,e.X6Q)()&&console.warn(Md_autoSizeColumn)}autoSizeColumn(){Em(this.ctx.grid,this.service,this.column)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-columnmenu-autosize-column"]],inputs:{column:"column"},features:[e.qOj],decls:1,vars:1,consts:[["class","k-grid-columnmenu-autosize-column","icon","max-width",3,"text","svgIcon","itemClick",4,"ngIf"],["icon","max-width",1,"k-grid-columnmenu-autosize-column",3,"text","svgIcon","itemClick"]],template:function(h,oe){1&h&&e.YNc(0,js,1,2,"kendo-grid-columnmenu-item",0),2&h&&e.Q6J("ngIf",!oe.ctx.grid.virtualColumns)},dependencies:[tu,X.O5],encapsulation:2}),ie})(),Yc=(()=>{class ie extends Sc{constructor(h){super(),this.ctx=h,this.displayInlineFlexIcon=te.I5$}ngOnInit(){this.ctx.grid.columnMenuTemplate&&this.ctx.grid.virtualColumns&&(0,e.X6Q)()&&console.warn(Md_autoSizeAllColumns)}autoSizeAllColumns(){Em(this.ctx.grid,this.service)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-columnmenu-autosize-all-columns"]],features:[e.qOj],decls:1,vars:1,consts:[["icon","display-inline-flex",3,"text","svgIcon","itemClick",4,"ngIf"],["icon","display-inline-flex",3,"text","svgIcon","itemClick"]],template:function(h,oe){1&h&&e.YNc(0,Ds,1,2,"kendo-grid-columnmenu-item",0),2&h&&e.Q6J("ngIf",!oe.ctx.grid.virtualColumns)},dependencies:[tu,X.O5],encapsulation:2}),ie})(),Mp=0,fp=(()=>{class ie{constructor(h,oe,kt,ti,Zo,hr,Cs,aa){this.navigationService=h,this.popupService=oe,this.service=kt,this.ctx=ti,this.renderer=Zo,this.cdr=hr,this.columnInfoService=Cs,this.idService=aa,this.standalone=!0,this.settings={},this.sortable=!0,this.tabIndex="-1",this.columnsIcon=te.b8s,this.actionsClass="k-actions",this.slidersIcon=te.mKC,this.filterIcon=te.QR$,this.expandedFilter=!1,this.expandedColumns=!1,this.expandedPosition=!1,this.moreVerticalIcon=te.xIX,this.closeSubscription=kt.closeMenu.subscribe(this.close.bind(this,!0))}get showGeneralTab(){return this.hasSort||this.hasLock||this.hasStick||this.hasPosition||this.hasAutoSizeColumn||this.hasAutoSizeAllColumns}get isActive(){return this.hasFilter&&Zf(this.filter,this.column.field).length>0||!this.sortable&&this.hasSort&&this.sort.find(h=>h.field===this.column.field)}get hasFilter(){return xc(this.settings,this.column)}get isNavigable(){return this.navigationService.tableEnabled}get hasSort(){return Fm(this.settings,this.column)}get hasColumnChooser(){return Yf(this.settings)}onApply(h){this.close(!0),h.length&&(this.cdr.markForCheck(),this.columnInfoService.changeVisibility(h))}get hasAutoSizeColumn(){return Hp(this.settings)}get hasAutoSizeAllColumns(){return Vp(this.settings)}get hasLock(){return Pu(this.settings,this.column)}get hasStick(){return((ie,Qe)=>this.settings.stick&&Qe.stickable&&!(Qe.parent&&!Qe.parent.isSpanColumn))(0,this.column)}get hasPosition(){return((ie,Qe)=>this.settings.setColumnPosition&&(Qe.stickable||Qe.lockable)&&!(Qe.parent&&!Qe.parent.isSpanColumn))(0,this.column)}get columns(){return this.columnInfoService.leafNamedColumns}ngAfterViewInit(){this.ctx.grid.virtualColumns&&(0,e.X6Q)()&&(this.settings.autoSizeAllColumns&&(this.settings.autoSizeAllColumns=!1,console.warn(Md_autoSizeAllColumns)),this.settings.autoSizeColumn&&(this.settings.autoSizeColumn=!1,console.warn(Md_autoSizeColumn))),this.service.menuTabbingService.isTabbedInterface="tabbed"===this.settings.view}ngOnChanges(){this.service.column=this.column,this.service.sort=this.sort,this.service.filter=this.filter,this.service.sortable=this.sortable}ngOnDestroy(){this.close(),this.closeSubscription.unsubscribe()}toggle(h,oe,kt){h&&(h.preventDefault(),h.stopImmediatePropagation()),this.expandedFilter=this.getExpandedState(this.settings.filter),this.expandedColumns=this.getExpandedState(this.settings.columnChooser),this.expandedPosition=this.getExpandedState(this.settings.setColumnPosition),this.popupRef=this.popupService.open(oe,kt,this.popupRef,"k-grid-columnmenu-popup");const ti=this.isNavigable?oe.closest(".k-table-th"):oe;if(this.popupRef){this.popupRef.popup.instance.close.pipe((0,f.q)(1)).subscribe(()=>{this.popupRef=null;const hr=this.isNavigable?oe.closest(".k-table-th"):oe;hr&&this.renderer.removeAttribute(hr,"aria-controls"),hr&&this.renderer.setAttribute(hr,"aria-expanded","false")});const Zo=this.popupRef.popupElement.querySelector(".k-grid-columnmenu-popup");if(Zo){const hr=(ie=>`${this.idService?.gridId()}-column-menu-${Mp++}`)();this.renderer.setAttribute(Zo,"id",hr),this.renderer.setAttribute(Zo,"role","dialog"),this.renderer.setAttribute(Zo,"aria-label",this.columnMenuTitle),ti&&this.renderer.setAttribute(ti,"aria-controls",hr),ti&&this.renderer.setAttribute(ti,"aria-expanded","true")}"tabbed"===this.settings.view&&(this.renderer.addClass(this.popupRef.popupElement.querySelector(".k-grid-columnmenu-popup"),"k-column-menu-tabbed"),this.cdr.detectChanges(),this.tabStrip?.selectTab(0))}else this.navigationService.tableEnabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()}close(h=!1){this.popupService.destroy(),this.popupRef=null,this.cdr.markForCheck(),h&&(this.navigationService.tableEnabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus())}get columnMenuTitle(){const h=this.ctx.localization.get("columnMenu")||"";return Aa(h,"columnName",this.column.title||this.column.field)}getExpandedState(h){return"object"==typeof h&&h.expanded}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Su),e.Y36(ip),e.Y36(jc),e.Y36(Uo),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(Rd),e.Y36(Xd,8))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-column-menu"]],viewQuery:function(h,oe){if(1&h&&(e.Gf(qo,7),e.Gf(Cr,7,e.Rgc),e.Gf(Zr,7,e.Rgc),e.Gf(ls,7,e.Rgc),e.Gf(_i.tA,5)),2&h){let kt;e.iGM(kt=e.CRH())&&(oe.anchor=kt.first),e.iGM(kt=e.CRH())&&(oe.template=kt.first),e.iGM(kt=e.CRH())&&(oe.defaultTemplate=kt.first),e.iGM(kt=e.CRH())&&(oe.tabbedInterfaceTemplate=kt.first),e.iGM(kt=e.CRH())&&(oe.tabStrip=kt.first)}},hostVars:2,hostBindings:function(h,oe){2&h&&e.ekj("k-grid-column-menu-standalone",oe.standalone)},inputs:{standalone:"standalone",column:"column",settings:"settings",sort:"sort",filter:"filter",sortable:"sortable",columnMenuTemplate:"columnMenuTemplate",tabIndex:"tabIndex"},features:[e._Bn([jc,Uu]),e.TTD],decls:9,vars:8,consts:[["href","#",1,"k-grid-header-menu","k-grid-column-menu",3,"ngClass","tabindex","click","keydown.enter"],["anchor",""],["name","more-vertical",3,"svgIcon"],["template",""],["defaultTemplate",""],["tabbedInterfaceTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"keydown.escape","keydown.enter"],[3,"kendoGridColumnMenuItem","service",4,"ngIf"],[3,"showLock","showStick","kendoGridColumnMenuItem","service","expanded",4,"ngIf"],["class","k-separator",3,"borderColor",4,"ngIf"],[3,"kendoGridColumnMenuItem","service","expanded",4,"ngIf"],[3,"service","kendoGridColumnMenuItem","column",4,"ngIf"],[3,"service","kendoGridColumnMenuItem",4,"ngIf"],[3,"kendoGridColumnMenuItem","service"],["sortItem",""],["lockItem",""],["stickItem",""],[3,"showLock","showStick","kendoGridColumnMenuItem","service","expanded"],["positionItem",""],[1,"k-separator"],[3,"kendoGridColumnMenuItem","service","expanded"],["chooserItem",""],[3,"service","kendoGridColumnMenuItem","column"],["autoSizeColumnItem",""],[3,"service","kendoGridColumnMenuItem"],["autoSizeAllColumnsItem",""],["filterItem",""],[3,"keydown.escape"],["tabstrip",""],[4,"ngIf"],["kendoTabTitle",""],["kendoTabContent",""],["name","filter",3,"svgIcon"],[3,"column","menuTabbingService","filter","actionsClass","keydown.shift.tab","close"],["name","sliders",3,"svgIcon"],["name","columns",3,"svgIcon"],[3,"applyText","resetText","columns","autoSync","allowHideAll","actionsClass","service","apply"]],template:function(h,oe){if(1&h){const kt=e.EpF();e.TgZ(0,"a",0,1),e.NdJ("click",function(Zo){e.CHM(kt);const hr=e.MAs(1),Cs=e.MAs(4);return e.KtG(oe.toggle(Zo,hr,Cs))})("keydown.enter",function(Zo){return Zo.stopImmediatePropagation()}),e._UZ(2,"kendo-icon-wrapper",2),e.qZA(),e.YNc(3,Js,1,5,"ng-template",null,3,e.W1O),e.YNc(5,co,11,10,"ng-template",null,4,e.W1O),e.YNc(7,ze,5,3,"ng-template",null,5,e.W1O)}2&h&&(e.Q6J("ngClass",e.VKq(6,St,oe.isActive))("tabindex",oe.tabIndex),e.uIk("title",oe.columnMenuTitle)("aria-expanded",!!oe.isNavigable&&void 0)("aria-haspopup",oe.isNavigable?void 0:"dialog"),e.xp6(2),e.Q6J("svgIcon",oe.moreVerticalIcon))},dependencies:[de.ZS,Il,Kl,pc,wc,hp,wf,Xl,Yc,vg,_i.tA,_i.Xj,gl,um,X.mk,X.tP,X.O5,tg,_i.zy,_i.ZH],encapsulation:2}),ie})(),lu=(()=>{class ie{constructor(h,oe){this.ctx=h,this.sizing=oe,this.clearText="Clear",this.filterClearIcon=te.rbJ,this.size="medium",this.operators=[],this.showOperators=!0,this.valueChange=new e.vpe,this.clear=new e.vpe}get hostClasses(){return!0}onChange(h){this.valueChange.emit(h)}clearClick(){return this.clear.emit(),!1}clearKeydown(h){(h.keyCode===n.R8.Enter||h.keyCode===n.R8.Space)&&this.clear.emit()}dropdownKeydown(h){h.defaultPrevented||h.keyCode===n.R8.Enter&&!this.dropdown.isOpen&&(this.dropdown.toggle(!0),h.preventDefault())}ngOnInit(){this.subs=this.ctx.localization.changes.subscribe(()=>this.clearText=this.ctx.localization.get("filterClearButton")),this.subs.add(this.sizing.changes.subscribe(h=>this.size=h))}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}get columnLabel(){const h=this.ctx.localization.get("filterCellOperatorLabel")||"";return Aa(h,"columnName",this.column.title||this.column.field)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo),e.Y36(Zh))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-filter-cell-operators"]],viewQuery:function(h,oe){if(1&h&&e.Gf(it,5),2&h){let kt;e.iGM(kt=e.CRH())&&(oe.dropdown=kt.first)}},hostVars:2,hostBindings:function(h,oe){2&h&&e.ekj("k-filtercell-operator",oe.hostClasses)},inputs:{operators:"operators",showButton:"showButton",showOperators:"showOperators",value:"value",column:"column"},outputs:{valueChange:"valueChange",clear:"clear"},decls:2,vars:2,consts:[["kendoGridFocusable","","class","k-dropdown-operator","iconClass","k-i-filter","textField","text","valueField","value",3,"data","value","valuePrimitive","popupSettings","size","valueChange","keydown",4,"ngIf"],["type","button","kendoButton","","kendoGridFocusable","","icon","filter-clear",3,"svgIcon","title","size","click","keydown",4,"ngIf"],["kendoGridFocusable","","iconClass","k-i-filter","textField","text","valueField","value",1,"k-dropdown-operator",3,"data","value","valuePrimitive","popupSettings","size","valueChange","keydown"],["dropdown",""],["type","button","kendoButton","","kendoGridFocusable","","icon","filter-clear",3,"svgIcon","title","size","click","keydown"]],template:function(h,oe){1&h&&(e.YNc(0,Hn,2,7,"kendo-dropdownlist",0),e.YNc(1,Ui,1,3,"button",1)),2&h&&(e.Q6J("ngIf",oe.showOperators),e.xp6(1),e.Q6J("ngIf",oe.showButton))},dependencies:[Pi.rI,si.r0,X.O5,Nc],encapsulation:2}),ie})();const L_=["isnull","isnotnull","isempty","isnotempty"];let af=(()=>{class ie extends ol{constructor(h){super(h),this.showOperators=!0}get hostClasses(){return!0}get overrideBaseClasses(){return!1}get showButton(){const h=this.currentFilter;return ye(h)&&(!ei(h.value)||L_.indexOf(String(h.operator))>=0)}filterChange(h){this.applyFilter(h)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Xc))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-filter-wrapper-cell"]],hostVars:4,hostBindings:function(h,oe){2&h&&e.ekj("k-filtercell-wrapper",oe.hostClasses)("k-filtercell",oe.overrideBaseClasses)},inputs:{showOperators:"showOperators"},features:[e.qOj],ngContentSelectors:br,decls:2,vars:5,consts:[[3,"showOperators","column","operators","showButton","value","clear","valueChange"]],template:function(h,oe){1&h&&(e.F$t(),e.Hsn(0),e.TgZ(1,"kendo-grid-filter-cell-operators",0),e.NdJ("clear",function(){return oe.onClear()})("valueChange",function(ti){return oe.currentOperator=ti}),e.qZA()),2&h&&(e.xp6(1),e.Q6J("showOperators",oe.showOperators)("column",oe.column)("operators",oe.operators)("showButton",oe.showButton)("value",oe.currentOperator))},dependencies:[lu],encapsulation:2}),ie})(),gu=(()=>{class ie extends Ph{constructor(h,oe,kt){super(h,oe),this.filterDelay=500,this.showOperators=!0,this.subs=kt.changes.subscribe(ti=>this.size=ti)}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}get columnLabel(){const h=this.ctx.localization.get("filterInputLabel")||"";return Aa(h,"columnName",this.column.title||this.column.field)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Xc),e.Y36(Uo),e.Y36(Zh))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-string-filter-cell"]],inputs:{filterDelay:"filterDelay",showOperators:"showOperators"},features:[e.qOj],decls:2,vars:9,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoTextBox","","kendoGridFocusable","","kendoFilterInput","",3,"size","columnLabel","filterDelay","ngModel"]],template:function(h,oe){1&h&&(e.TgZ(0,"kendo-grid-filter-wrapper-cell",0),e._UZ(1,"kendo-textbox",1),e.qZA()),2&h&&(e.Q6J("column",oe.column)("filter",oe.filter)("operators",oe.operators)("defaultOperator",oe.operator)("showOperators",oe.showOperators),e.xp6(1),e.Q6J("size",oe.size)("columnLabel",oe.columnLabel)("filterDelay",oe.filterDelay)("ngModel",null==oe.currentFilter?null:oe.currentFilter.value))},dependencies:[af,ot.PL,Nc,bd,me.JJ,me.On],encapsulation:2}),ie})(),Ee=(()=>{class ie extends Rh{constructor(h,oe,kt){super(h,oe),this.ctx=oe,this.filterDelay=500,this.showOperators=!0,this.subs=kt.changes.subscribe(ti=>this.size=ti)}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}messageFor(h){return this.ctx.localization.get(h)}get columnLabel(){const h=this.ctx.localization.get("filterInputLabel")||"";return Aa(h,"columnName",this.column.title||this.column.field)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Xc),e.Y36(Uo),e.Y36(Zh))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-numeric-filter-cell"]],inputs:{filterDelay:"filterDelay",showOperators:"showOperators"},features:[e.qOj],decls:3,vars:18,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoGridFocusable","","kendoFilterInput","",3,"columnLabel","filterDelay","autoCorrect","value","format","decimals","spinners","min","max","size","step"],[3,"increment","decrement"]],template:function(h,oe){1&h&&(e.TgZ(0,"kendo-grid-filter-wrapper-cell",0)(1,"kendo-numerictextbox",1),e._UZ(2,"kendo-numerictextbox-messages",2),e.qZA()()),2&h&&(e.Q6J("column",oe.column)("filter",oe.filter)("operators",oe.operators)("defaultOperator",oe.operator)("showOperators",oe.showOperators),e.xp6(1),e.Q6J("columnLabel",oe.columnLabel)("filterDelay",oe.filterDelay)("autoCorrect",!0)("value",null==oe.currentFilter?null:oe.currentFilter.value)("format",oe.format)("decimals",oe.decimals)("spinners",oe.spinners)("min",oe.min)("max",oe.max)("size",oe.size)("step",oe.step),e.xp6(1),e.Q6J("increment",oe.messageFor("filterNumericIncrement"))("decrement",oe.messageFor("filterNumericDecrement")))},dependencies:[af,ot.Uw,ot.wS,Nc,bd],encapsulation:2}),ie})(),at=(()=>{class ie extends Ln{constructor(h,oe,kt,ti){super(h,oe),this.cd=kt,this.size="medium",this.subs=ti.changes.subscribe(Zo=>this.size=Zo)}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}localizationChange(){super.localizationChange(),this.cd.markForCheck()}get columnLabel(){const h=this.ctx.localization.get("booleanFilterCellLabel")||"";return Aa(h,"columnName",this.column.title||this.column.field)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Xc),e.Y36(Uo),e.Y36(e.sBO),e.Y36(Zh))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-boolean-filter-cell"]],features:[e.qOj],decls:2,vars:12,consts:[[3,"column","filter","showOperators","defaultOperator"],["kendoFilterInput","","kendoGridFocusable","","textField","text","valueField","value",3,"size","columnLabel","defaultItem","data","popupSettings","valuePrimitive","value"]],template:function(h,oe){1&h&&(e.TgZ(0,"kendo-grid-filter-wrapper-cell",0),e._UZ(1,"kendo-dropdownlist",1),e.qZA()),2&h&&(e.Q6J("column",oe.column)("filter",oe.filter)("showOperators",!1)("defaultOperator",oe.operator),e.xp6(1),e.Q6J("size",oe.size)("columnLabel",oe.columnLabel)("defaultItem",oe.defaultItem)("data",oe.items)("popupSettings",e.DdM(11,Dt))("valuePrimitive",!0)("value",null==oe.currentFilter?null:oe.currentFilter.value))},dependencies:[af,Pi.rI,bd,Nc],encapsulation:2}),ie})(),G=(()=>{class ie extends Cn{constructor(h,oe,kt){super(h,oe),this.ctx=oe,this.showOperators=!0,this.subs=kt.changes.subscribe(ti=>this.size=ti)}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}messageFor(h){return this.ctx.localization.get(h)}get columnLabel(){const h=this.ctx.localization.get("filterInputLabel")||"";return Aa(h,"columnName",this.column.title||this.column.field)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Xc),e.Y36(Uo),e.Y36(Zh))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-date-filter-cell"]],inputs:{showOperators:"showOperators"},features:[e.qOj],decls:3,vars:19,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoFilterInput","","kendoGridFocusable","",3,"columnLabel","value","format","size","formatPlaceholder","placeholder","activeView","bottomView","topView","min","max","weekNumber"],[3,"toggle","today"]],template:function(h,oe){1&h&&(e.TgZ(0,"kendo-grid-filter-wrapper-cell",0)(1,"kendo-datepicker",1),e._UZ(2,"kendo-datepicker-messages",2),e.qZA()()),2&h&&(e.Q6J("column",oe.column)("filter",oe.filter)("operators",oe.operators)("defaultOperator",oe.operator)("showOperators",oe.showOperators),e.xp6(1),e.Q6J("columnLabel",oe.columnLabel)("value",null==oe.currentFilter?null:oe.currentFilter.value)("format",oe.format)("size",oe.size)("formatPlaceholder",oe.formatPlaceholder)("placeholder",oe.placeholder)("activeView",oe.activeView)("bottomView",oe.bottomView)("topView",oe.topView)("min",oe.min)("max",oe.max)("weekNumber",oe.weekNumber),e.xp6(1),e.Q6J("toggle",oe.messageFor("filterDateToggle"))("today",oe.messageFor("filterDateToday")))},dependencies:[af,pn.Lr,pn.cY,bd,Nc],encapsulation:2}),ie})(),gn=(()=>{class ie extends Dd{constructor(h,oe){super(h,oe)}componentType(){return ei(this.column.filter)?gu:(ie=>({boolean:at,date:G,numeric:Ee,text:gu}[this.column.filter]))()}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.s_b),e.Y36(e._Vd))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoFilterCellHost",""]],features:[e.qOj]}),ie})(),Si=(()=>{class ie{constructor(){this.hostRole="gridcell",this.size="medium",this._templateContext={}}get filter(){return this._filter}set filter(h){this._filter=Tp(h)}get templateContext(){return this._templateContext.column=this.column,this._templateContext.filter=this.filter,this._templateContext.$implicit=this.filter,this._templateContext}get hasTemplate(){return ye(this.column.filterCellTemplateRef)}get isFilterable(){return ye(this.column)&&!ei(this.column.field)&&this.column.filterable}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["","kendoGridFilterCell",""]],hostVars:1,hostBindings:function(h,oe){2&h&&e.uIk("role",oe.hostRole)},inputs:{column:"column",filter:"filter",size:"size"},attrs:Co,decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],["kendoFilterCellHost","",3,"column","filter"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(h,oe){1&h&&e.YNc(0,ui,4,3,"ng-container",0),2&h&&e.Q6J("ngIf",oe.isFilterable)},dependencies:[X.O5,X.RF,X.n9,gn,X.tP],encapsulation:2}),ie})(),zo=0,zr=(()=>{class ie{constructor(h,oe,kt,ti,Zo,hr,Cs,aa){this.focusGroup=h,this.element=oe,this.columnInfoService=kt,this.idService=ti,this.navigationService=Zo,this.renderer=hr,this.zone=Cs,this.cellContext=aa,this.logicalSlaveCell=!1,this.colSpan=1,this.rowSpan=1,this.dataRowIndex=-1,this.detailExpandCell=!1,this.uid=function _r(){return zo++}()}get id(){if(!this.logicalSlaveCell&&this.columnInfoService.isLocked)return this.idService.cellId(this.logicalRowIndex,this.logicalColIndex)}get ariaColIndex(){if(!this.logicalSlaveCell&&-1!==this.logicalColIndex)return this.logicalColIndex+1}ngOnInit(){this.navigationService.tableEnabled&&(this.navigationChange=this.navigationService.changes.subscribe(h=>this.onNavigationChange(h)))}ngDoCheck(){!this.navigationService.tableEnabled||-1===this.logicalColIndex||(this.cellContext&&(this.cellContext.focusGroup=this.focusGroup),this.registerNoChanges())}ngOnChanges(h){if(!this.navigationService.tableEnabled)return;const oe=Object.keys(h);if(1===oe.length&&"groupItem"===oe[0]||-1===this.logicalColIndex)return;const kt=h.logicalColIndex,ti=h.logicalRowIndex,Zo=kt&&!kt.isFirstChange()?kt.previousValue:this.logicalColIndex,hr=ti&&!ti.isFirstChange()?ti.previousValue:this.logicalRowIndex;this.navigationService.unregisterCell(Zo,hr,this),this.registerChanges(),this.updateElement()}ngOnDestroy(){this.navigationChange&&this.navigationChange.unsubscribe(),this.navigationService.unregisterCell(this.logicalColIndex,this.logicalRowIndex,this)}onNavigationChange(h){(this.logicalColIndex===h.colIndex&&this.logicalRowIndex===h.rowIndex||this.logicalColIndex===h.prevColIndex&&this.logicalRowIndex===h.prevRowIndex)&&this.updateElement()}updateElement(){const h=this.element.nativeElement;this.renderer.setAttribute(h,"tabIndex",this.isFocusable()&&!this.logicalSlaveCell?"0":"-1"),this.isFocused()?(this.focusGroup.isNavigable()?this.focusGroup.focus():(!this.logicalSlaveCell&&this.navigationService.autoFocusCell(this.logicalColIndex,this.logicalColIndex+this.colSpan-1)&&this.microtask(()=>this.isFocused()&&h.focus()),this.renderer.addClass(h,"k-focus")),this.headerLabelText&&h.removeAttribute("aria-label")):(this.renderer.removeClass(h,"k-focus"),this.headerLabelText&&h.setAttribute("aria-label",this.headerLabelText))}microtask(h){this.zone.runOutsideAngular(()=>Promise.resolve(null).then(h))}registerChanges(){this.logicalSlaveCell||this.navigationService.registerCell(this)}registerNoChanges(){this.logicalSlaveCell||this.navigationService.registerCellOnCurrentRow(this)}isFocusable(){return this.navigationService.isCellFocusable(this)}isFocused(){return this.navigationService.isCellFocused(this)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(sf),e.Y36(e.SBq),e.Y36(Rd),e.Y36(Xd),e.Y36(Su),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(Sh,8))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridLogicalCell",""]],hostVars:2,hostBindings:function(h,oe){2&h&&e.uIk("id",oe.id)("aria-colindex",oe.ariaColIndex)},inputs:{logicalColIndex:"logicalColIndex",logicalRowIndex:"logicalRowIndex",logicalSlaveCell:"logicalSlaveCell",colIndex:"colIndex",colSpan:"colSpan",rowSpan:"rowSpan",groupItem:"groupItem",dataRowIndex:"dataRowIndex",dataItem:"dataItem",detailExpandCell:"detailExpandCell",headerLabelText:"headerLabelText"},features:[e._Bn([{provide:sf,deps:[Bc],useClass:sf}]),e.TTD]}),ie})(),Lr=(()=>{class ie{constructor(h,oe){this.ctx=h,this.columnInfoService=oe,this.columns=[],this.groups=[],this.filterRowClass=!0}addStickyStyles(h){return{...h.sticky?this.columnInfoService.stickyColumnsStyles(h):null,...h.filterStyle}}filterLabel(h){const oe=this.ctx.localization.get("filterInputLabel")||"";return Aa(oe,"columnName",h.title||h.field)}getLogicalColIndex(h){const oe=this.lockedColumnsCount+h;return this.detailTemplate?.templateRef?oe+1:oe}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo),e.Y36(Rd))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["","kendoGridFilterRow",""]],hostVars:2,hostBindings:function(h,oe){2&h&&e.ekj("k-filter-row",oe.filterRowClass)},inputs:{columns:"columns",filter:"filter",groups:"groups",detailTemplate:"detailTemplate",logicalRowIndex:"logicalRowIndex",lockedColumnsCount:"lockedColumnsCount"},attrs:Ot,decls:3,vars:3,consts:[["class","k-table-td","role","presentation",3,"k-group-cell",4,"ngFor","ngForOf"],["class","k-table-td","role","presentation",3,"k-hierarchy-cell",4,"ngIf"],["class","k-table-td","kendoGridFilterCell","","kendoGridLogicalCell","",3,"k-grid-header-sticky","ngStyle","ngClass","column","filter","logicalRowIndex","logicalColIndex",4,"ngFor","ngForOf"],["role","presentation",1,"k-table-td"],["kendoGridFilterCell","","kendoGridLogicalCell","",1,"k-table-td",3,"ngStyle","ngClass","column","filter","logicalRowIndex","logicalColIndex"]],template:function(h,oe){1&h&&(e.YNc(0,en,1,2,"td",0),e.YNc(1,cn,1,2,"td",1),e.YNc(2,Ht,1,9,"td",2)),2&h&&(e.Q6J("ngForOf",oe.groups),e.xp6(1),e.Q6J("ngIf",null==oe.detailTemplate?null:oe.detailTemplate.templateRef),e.xp6(1),e.Q6J("ngForOf",oe.columns))},dependencies:[Si,X.sg,X.O5,zr,X.PC,X.mk],encapsulation:2}),ie})(),ws=0,ya=(()=>{class ie{constructor(h,oe){this.idService=h,this.navigation=oe,this.logicalSlaveRow=!1,this.logicalSlaveCellsCount=0,this.dataRowIndex=-1,this.uid=function $s(){return ws++}(),this.tableRowClass=!0}get hostRole(){return this.logicalSlaveRow?"presentation":"row"}get ariaRowIndex(){return this.logicalSlaveRow?null:this.logicalRowIndex+1}get rowIndex(){return this.logicalSlaveRow?this.logicalRowIndex+1:null}get ariaOwns(){if(this.logicalSlaveRow||0===this.logicalSlaveCellsCount)return;const h=[];if(this.dataRowIndex<0){let oe=this.logicalCellsCount+this.logicalSlaveCellsCount;this.columnsArray.forEach(kt=>{kt.isSpanColumn&&(oe+=kt.colspan-1)});for(let kt=this.logicalCellsCount;kt<oe;kt++)h.push(this.idService.cellId(this.logicalRowIndex,kt))}else{let oe=0;this.columnsArray.forEach(kt=>{kt.isLocked||h.push(this.idService.cellId(this.logicalRowIndex,oe)),oe+=kt.isSpanColumn?kt.colspan:1})}return h.join(" ")}ngOnChanges(h){if(!this.navigation.enabled||this.logicalSlaveRow)return;const oe=h.logicalRowIndex;if(oe||h.logicalSlaveRow){const ti=oe&&!oe.isFirstChange()?oe.previousValue:this.logicalRowIndex;this.navigation.unregisterRow(ti,this),this.navigation.registerRow(this)}else(0,n.aG)(["dataRowIndex","dataItem"],h)&&this.navigation.updateRow(this)}ngOnDestroy(){this.navigation.unregisterRow(this.logicalRowIndex,this)}get columnsArray(){return this.totalColumns?.allColumns.toArray()||[]}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Xd),e.Y36(Su))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridLogicalRow",""]],hostVars:6,hostBindings:function(h,oe){2&h&&(e.uIk("role",oe.hostRole)("aria-rowindex",oe.ariaRowIndex)("data-kendo-grid-row-index",oe.rowIndex)("aria-owns",oe.ariaOwns),e.ekj("k-table-row",oe.tableRowClass))},inputs:{logicalRowIndex:"logicalRowIndex",logicalSlaveRow:"logicalSlaveRow",logicalCellsCount:"logicalCellsCount",logicalSlaveCellsCount:"logicalSlaveCellsCount",dataRowIndex:"dataRowIndex",dataItem:"dataItem",totalColumns:"totalColumns"},features:[e.TTD]}),ie})(),ua=(()=>{class ie{constructor(h){this.viewContainerRef=h}set templateContext(h){this.removeView(),h.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(h.templateRef,h))}ngOnDestroy(){this.removeView()}removeView(){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.s_b))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","templateContext",""]],inputs:{templateContext:"templateContext"}}),ie})(),Ja=(()=>{class ie{constructor(h,oe,kt,ti){this.selectionService=h,this.el=oe,this.renderer=kt,this.ngZone=ti,this.selectAllChange=new e.vpe,this.type="checkbox",this.stateSet=!1,this.ngZone.runOutsideAngular(()=>{this.destroyClick=this.renderer.listen(this.el.nativeElement,"click",this.onClick.bind(this))})}ngAfterContentChecked(){this.setState()}ngOnChanges(){this.stateSet=!0}ngOnDestroy(){this.destroyClick&&this.destroyClick()}onClick(){const oe=!(!(()=>{if(!(0,n.X_)())return;const ie=window.navigator.userAgent,Qe=ie.indexOf("MSIE "),h=ie.indexOf("Trident/");return Qe>0||h>0})()||void 0!==this.selectionService.selectAllState)||this.el.nativeElement.checked,kt=this.selectionService.options,ti=kt.enabled&&"multiple"===kt.mode,Zo=(0,n.g$)(this.selectAllChange);(ti||Zo)&&this.ngZone.run(()=>{ti&&this.selectionService.updateAll(oe),Zo&&this.selectAllChange.emit(oe?"checked":"unchecked")})}setState(){const h=this.stateSet?this.stateToBool():this.selectionService.selectAllState,oe=this.el.nativeElement;this.renderer.setProperty(oe,"indeterminate",!ye(h)),this.renderer.setProperty(oe,"checked",!!ye(h)&&h)}stateToBool(){switch(this.state){case"checked":return!0;case"unchecked":return!1;default:return}}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(eu),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridSelectAllCheckbox",""]],hostVars:1,hostBindings:function(h,oe){2&h&&e.uIk("type",oe.type)},inputs:{state:"state"},outputs:{selectAllChange:"selectAllChange"},features:[e.TTD]}),ie})();const md=ie=>ie.nativeElement.parentElement.offsetWidth,Xu=ie=>Bu(ie).filter(Qe=>!Qe.isColumnGroup),Lh=({originalEvent:ie})=>{ie.stopPropagation(),ie.preventDefault()},Wu=ie=>!(!ie.parent||!ie.parent.isSpanColumn);let kp=(()=>{class ie{constructor(h,oe,kt,ti,Zo,hr,Cs){this.draggable=h,this.element=oe,this.service=kt,this.zone=ti,this.cdr=Zo,this.ctx=hr,this.columnInfoService=Cs,this.columns=[],this.subscriptions=new d.w0,this.rtl=!1}get visible(){return this.column.resizable?"block":"none"}get leftStyle(){return st(this.rtl)?0:null}get rightStyle(){return st(this.rtl)?null:0}autoFit(){const h=Xu(this.columns),oe=gf([this.column]).filter(ti=>st(ti.resizable)),kt=oe.map(ti=>{const Zo=Wu(ti),hr=!!Zo&&ti.parent.childColumns.last===ti,Cs=((ie,Qe)=>{let h=0,oe=0,kt=0;for(;h<Qe.length;){const ti=Qe[h],Zo=Wu(ti);if(ti===ie)break;oe--<=0&&Zo&&(oe=ti.parent.childColumns.length-1,kt+=oe),h++}return h-kt})(ti,h);return{column:ti,headerIndex:this.columnsForLevel(ti.level).indexOf(ti),index:Cs,isLastInSpan:hr,isParentSpan:Zo,level:ti.level}});oe.forEach(ti=>ti.width=0),this.service.measureColumns(kt)}ngOnInit(){bt(this.column.width)&&(this.column.implicitWidth=md(this.element));const h=this.service.changes.pipe((0,w.h)(()=>this.column.resizable),(0,w.h)(oe=>ye(oe.columns.find(kt=>kt===this.column))));this.subscriptions.add(h.pipe((0,w.h)(oe=>"start"===oe.type)).subscribe(this.initState.bind(this))),this.subscriptions.add(h.pipe((0,w.h)(oe=>"resizeColumn"===oe.type)).subscribe(this.resize.bind(this))),this.subscriptions.add(this.service.changes.pipe((0,w.h)(oe=>"start"===oe.type),(0,w.h)(this.shouldUpdate.bind(this)),(0,f.q)(1)).subscribe(this.initColumnWidth.bind(this))),this.subscriptions.add(this.zone.runOutsideAngular(()=>this.draggable.kendoPress.pipe((0,I.b)(Lh),(0,I.b)(()=>this.service.start(this.column)),(0,x.w)((ie=>Qe=>(0,a.of)(Qe).pipe((0,p.g)(150),(0,g.R)(ie)))(this.draggable.kendoRelease)),(0,x.w)(((ie,Qe)=>h=>Qe.kendoDrag.pipe((0,g.R)(Qe.kendoRelease.pipe((0,I.b)(()=>ie.end()))),(0,k.U)(({pageX:oe})=>({originalX:h.pageX,pageX:oe}))))(this.service,this.draggable))).subscribe(({pageX:oe,originalX:kt})=>{const Zo=((ie,Qe)=>ie/(this.column.resizeStartWidth||this.column.width)*100)(oe-kt);this.service.resizeColumns(Zo)}))),this.subscriptions.add(h.pipe((0,w.h)(oe=>"autoFitComplete"===oe.type)).subscribe(this.sizeToFit.bind(this))),this.subscriptions.add(h.pipe((0,w.h)(oe=>"triggerAutoFit"===oe.type)).subscribe(this.autoFit.bind(this))),this.subscriptions.add(this.ctx.localization.changes.subscribe(({rtl:oe})=>this.rtl=oe))}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}shouldUpdate(){return!Xu(this.columns).map(h=>h.width).some(bt)}initColumnWidth(){this.column.width=md(this.element)}initState(){this.column.resizeStartWidth=md(this.element),this.service.resizedColumn({column:this.column,oldWidth:this.column.resizeStartWidth})}resize({deltaPercent:h}){let oe=((ie,Qe)=>{const h=Qe<0?-1:1;return Math.ceil(Math.abs(Qe)/100*ie)*h})(this.column.resizeStartWidth,h);st(this.rtl)&&(oe*=-1);let kt=Math.max(this.column.resizeStartWidth+oe,this.column.minResizableWidth);ye(this.column.maxResizableWidth)&&(kt=Math.min(kt,this.column.maxResizableWidth));const ti=this.getTableDelta(kt,oe);this.updateWidth(this.column,kt),this.service.resizeTable(this.column,ti)}sizeToFit({columns:h,widths:oe}){const kt=h.indexOf(this.column),ti=Math.max(...oe.map(hr=>hr[kt]))+1,Zo=ti-this.column.resizeStartWidth;this.updateWidth(this.column,ti),this.service.resizeTable(this.column,Zo)}updateWidth(h,oe){h.width=oe,this.columnInfoService.hiddenColumns.forEach(kt=>{bt(kt.width)&&ye(kt.implicitWidth)&&(kt.width=kt.implicitWidth)}),this.cdr.markForCheck()}columnsForLevel(h){return mf(this.columns?this.columns.filter(oe=>oe.level===h):[])}getTableDelta(h,oe){const kt=this.column.minResizableWidth,ti=this.column.maxResizableWidth,Zo=this.column.resizeStartWidth,hr=h>kt,Cs=h<ti;return(ye(ti)?hr&&Cs:hr)?oe:h<=kt?kt-Zo:Zo-ti}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(n.pD,1),e.Y36(e.SBq),e.Y36(bf),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(Uo),e.Y36(Rd))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridColumnHandle",""]],hostVars:6,hostBindings:function(h,oe){1&h&&e.NdJ("dblclick",function(){return oe.autoFit()}),2&h&&e.Udp("display",oe.visible)("left",oe.leftStyle)("right",oe.rightStyle)},inputs:{columns:"columns",column:"column"}}),ie})();const jp=(...ie)=>Object.assign.apply(null,[{}].concat(ie)),Ug=(ie,Qe)=>ie.parent===Qe.parent||kf(Qe)&&Ug(ie,Qe.parent),Ef=Tn(({draggable:ie})=>["column","columnGroup"].indexOf(ie.context.type)>=0,({draggable:ie})=>ie.context.column.reorderable,({draggable:ie})=>!kf(ie.context.column),({draggable:ie,target:Qe})=>ie.element.nativeElement!==Qe.element.nativeElement,({draggable:ie,target:Qe})=>Ug(ie.context.column,Qe.context.column),Ta(({draggable:ie})=>!st(ie.context.column.locked)&&(({parent:ie})=>!st(ie))(ie.context.column)&&ie.context.lastColumn),({draggable:ie,target:Qe})=>!1!==ie.context.column.lockable||ie.context.column.isLocked===Qe.context.column.isLocked),o_=["alt","ctrl","shift","meta"];let E_=(()=>{class ie{constructor(h,oe,kt,ti,Zo,hr,Cs,aa,$a,ja){this.popupService=h,this.hint=oe,this.cue=kt,this.reorderService=ti,this.idService=Zo,this.sortService=hr,this.columnInfoService=Cs,this.cd=aa,this.contextService=$a,this.navigationService=ja,this.columns=[],this.groups=[],this.sort=new Array,this.sortable=!1,this.groupable=!1,this.lockedColumnsCount=0,this.resizable=!1,this.reorderable=!1,this.columnMenu=!1,this.totalColumnsCount=0,this.size="medium",this.sortedFields={},this.hostClass=!0,this.dropTargets=new e.n_E,this.sortAscSmallIcon=te.dpm,this.sortDescSmallIcon=te.K8M,this.subscription=new d.w0}get headerClass(){return!this.scrollable}get sortableLabel(){return this.contextService.localization.get("sortable")}get columnMenuSettings(){return this.columnMenu}get unlockedColumnsCount(){return this.totalColumnsCount-this.lockedColumnsCount-this.columns.length}sortColumn(h){this.sortService.sort(h)}getColumnComponent(h){return h}onSortClick(h,oe,kt){const ti=oe.target;if(h.headerTemplateRef&&ti!==kt&&Mc(ti,Ff,kt))return;const Zo=this.matchModifier(oe),hr=this.toggleSort(h,Zo);this.sortColumn(hr)}onHeaderKeydown(h,oe){if(oe.keyCode===n.R8.ArrowDown&&oe.altKey&&this.showFilterMenu){oe.preventDefault(),oe.stopImmediatePropagation();const Cs=this.filterMenus.find(aa=>aa.column===h);return void Cs.toggle(Cs.anchor.nativeElement,Cs.template)}if(oe.keyCode===n.R8.ArrowDown&&oe.altKey&&this.showColumnMenu(h)){oe.preventDefault(),oe.stopImmediatePropagation();const Cs=this.columnMenus.find(aa=>aa.column===h);return void Cs.toggle(null,Cs.anchor.nativeElement,Cs.template)}const kt=oe.ctrlKey||oe.metaKey;if((oe.keyCode===n.R8.Enter||oe.keyCode===n.R8.Space)&&kt&&this.isGroupable(h))return oe.preventDefault(),oe.stopImmediatePropagation(),this.groups.some(aa=>aa.field===h.field)?this.groups=this.groups.filter(aa=>aa.field!==h.field):this.groups.push({field:h.field}),void this.contextService.grid.groupChange.emit(this.groups);if((oe.keyCode===n.R8.ArrowLeft||oe.keyCode===n.R8.ArrowRight)&&kt&&this.isReorderable(h)){oe.preventDefault();const Cs=this.columnInfoService.leafNamedColumns.length,ja=(oe.keyCode===n.R8.ArrowLeft?-1:1)*(this.contextService.localization.rtl?-1:1),Gc=Math.min(Math.max(0,h.leafIndex+ja),Cs-1),Fc=this.contextService.grid;return Fc.reorderColumn(h,Gc,{before:ja<0}),void Fc.columnReorder.emit(new C_({column:h,newIndex:Gc,oldIndex:h.leafIndex}))}if(this.sortable&&!oe.defaultPrevented&&!1!==h.sortable&&oe.keyCode===n.R8.Enter&&ye(h.field)){const Cs=this.matchModifier(oe);this.sortService.sort(this.toggleSort(h,Cs))}}showSortNumbering(h){const{showIndexes:oe}=up(this.sortable);return oe&&this.sort&&this.sort.filter(({dir:kt})=>ye(kt)).length>1&&this.sortOrder(h.field)>0}sortOrder(h){return this.sort.filter(({dir:oe})=>ye(oe)).findIndex(oe=>oe.field===h)+1}sortState(h){if(!this.isSortable(h))return;const oe=this.sortDescriptor(h.field);return"asc"===oe.dir?"ascending":"desc"===oe.dir?"descending":void 0}get isNavigable(){return this.navigationService.tableEnabled}toggleSort(h,oe=!0){const{allowUnsort:kt,mode:ti,initialDirection:Zo}=up(this.sortable,h.sortable),hr=this.toggleDirection(h.field,kt,Zo);return"single"!==ti&&oe?[...this.sort.filter(Cs=>Cs.field!==h.field),hr]:[hr]}matchModifier(h){const{multiSortKey:oe}=up(this.sortable);return"none"===oe?o_.every(kt=>!h[`${kt}Key`]):"ctrl"===oe?h.ctrlKey||h.metaKey:h[`${oe}Key`]}ngAfterViewInit(){this.subscription.add(_o(this.dropTargets).subscribe(this.attachTargets.bind(this)))}ngDoCheck(){this._leafColumns=mf(this.columns||[]).filter(h=>!$u(h))}ngOnChanges(h){const oe=h.sort;oe&&!oe.isFirstChange()&&oe.currentValue.forEach(kt=>{this.sortedFields[kt.field]=!0})}ngOnInit(){this.subscription.add(this.contextService.localization.changes.subscribe(()=>this.cd.markForCheck()))}ngOnDestroy(){this.targetSubscription&&this.targetSubscription.unsubscribe(),this.popupService&&this.popupService.destroy(),this.subscription.unsubscribe()}selectAllCheckboxId(){return this.idService.selectAllCheckboxId()}get selectAllCheckboxLabel(){return this.contextService.localization.get("selectAllCheckboxLabel")}isFirstOnRow(h,oe){const kt=ti=>ti&&(this.columnsForLevel(ti.level).indexOf(ti)>0||kt(ti.parent));return 0===oe&&!this.groups.length&&!this.detailTemplate&&kt(h.parent)}logicalColumnIndex(h){const oe=h.leafIndex;return ye(oe)?oe+(ye(this.detailTemplate)?1:0):-1}get showFilterMenu(){return!this.columnMenu&&(ie=>"string"==typeof ie&&ie.indexOf("menu")>-1)(this.filterable)}get showFilterRow(){return yp(this.filterable)}showColumnMenu(h){return this.columnMenu&&h.columnMenu&&(this.columnMenuTemplate||h.columnMenuTemplates.length||((ie,Qe)=>Vp(ie)||Yf(ie)||xc(ie,Qe)||Hp(ie)||Pu(ie,Qe)||Fm(ie,Qe))(this.columnMenu,h))}isFilterable(h){return!ei(h.field)&&!0===h.filterable}canDrop(h,oe){return this.reorderable&&Ef({draggable:h,target:oe})}shouldActivate(h){const oe=this.isReorderable(h);return!(!oe&&!Wh(h))&&(this.isGroupable(h)||oe)}isSortable(h){return!ei(h.field)&&st(this.sortable)&&st(h.sortable)}isCheckboxColumn(h){return Vh(h)&&!h.templateRef}trackByIndex(h,oe){return h}addStickyStyles(h){const oe=this.columnInfoService.stickyColumnsStyles(h);return{...h.headerStyle,...oe}}toggleDirection(h,oe,kt){const ti=this.sortDescriptor(h),[Zo,hr]=(ie=>"asc"===ie?["asc","desc"]:["desc","asc"])(kt);let Cs=Zo;return ti.dir===Zo?Cs=hr:ti.dir===hr&&oe&&(Cs=void 0),{dir:Cs,field:h}}columnsForLevel(h){const oe=this.columns?this.columns.filter(kt=>kt.level===h):[];return su(mf(oe))}isColumnGroupComponent(h){return $u(h)}sortDescriptor(h){return this.sort.find(oe=>oe.field===h)||{field:h}}get columnLevels(){return new Array((this.totalColumnLevels||0)+1)}get leafColumns(){return this._leafColumns}isReorderable(h){return this.reorderable&&h.reorderable}isGroupable(h){return this.groupable&&Wh(h)&&!1!==h.groupable}attachTargets(){this.targetSubscription&&this.targetSubscription.unsubscribe(),this.targetSubscription=new d.w0;const h=(0,o.T)(...this.dropTargets.map(ti=>ti.enter)),oe=(0,o.T)(...this.dropTargets.map(ti=>ti.leave)),kt=(0,o.T)(...this.dropTargets.map(ti=>ti.drop));this.targetSubscription.add(h.pipe((0,I.b)(({target:ti,draggable:Zo})=>{if("groupIndicator"===Zo.context.type)return;const hr=st(ti.context.column.isLocked),Cs=st(Zo.context.column.isLocked);(this.lockedColumnsCount>0||hr||Cs)&&this.hint.toggleLock(hr)}),(0,w.h)(({draggable:ti,target:Zo})=>this.canDrop(ti,Zo)),(0,x.w)(this.trackMove.bind(this,oe,kt)),(0,k.U)(ti=>jp(ti,{before:this.calculateBefore(ti),changeContainer:ti.changeContainer})),(0,k.U)(this.normalizeTarget.bind(this)),(0,I.b)(this.enter.bind(this)),(0,x.w)(ti=>kt.pipe((0,k.U)(()=>ti),(0,g.R)(oe.pipe((0,I.b)(this.leave.bind(this))))))).subscribe(this.drop.bind(this)))}normalizeTarget(h){let oe=h.target;const kt=oe.context.column.parent;if(kt&&kt.isSpanColumn){const ti=this.dropTargets.toArray(),Zo=ti.find(aa=>aa.context.column.parent===kt),hr=ti.indexOf(Zo);oe=ti[hr+(h.before?0:kt.childColumns.length-1)]}return jp(h,{target:oe})}trackMove(h,oe,kt){const ti=kt.target.context.column,Zo=this.columnsForLevel(ti.level),hr=Zo.indexOf(ti),aa=kt.draggable.context.column.isLocked!==ti.isLocked;return aa&&(ti.locked?hr===Zo.length-1:0===hr)?kt.draggable.drag.pipe((0,g.R)(h),(0,g.R)(oe),(0,k.U)(({mouseEvent:$a})=>jp({changeContainer:!0},kt,{mouseEvent:$a}))):(0,a.of)(jp({changeContainer:aa},kt))}calculateBefore({draggable:h,target:oe,mouseEvent:kt,changeContainer:ti=!1}){const Zo=oe.element.nativeElement;let hr=!1;if(ti){const{left:Cs}=Jm(Zo);hr=Cs+Zo.offsetWidth/2>kt.pageX,this.contextService.localization.rtl&&(hr=!hr)}else hr=tm(h.element.nativeElement,Zo);return hr}enter({target:h,before:oe}){this.hint.enable(),this.contextService.localization.rtl&&(oe=!oe),this.cue.position(ym(h.element.nativeElement,oe))}leave(){this.hint.disable(),this.cue.hide()}drop({draggable:h,target:oe,before:kt,changeContainer:ti}){this.reorderService.reorder({before:kt,changeContainer:ti,source:h.context.column,target:oe.context.column})}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(ip),e.Y36(mu),e.Y36(Pf),e.Y36(Up),e.Y36(Xd),e.Y36(nm),e.Y36(Rd),e.Y36(e.sBO),e.Y36(Uo),e.Y36(Su))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["","kendoGridHeader",""]],viewQuery:function(h,oe){if(1&h&&(e.Gf(Kh,5),e.Gf(Rl,5),e.Gf(fp,5)),2&h){let kt;e.iGM(kt=e.CRH())&&(oe.dropTargets=kt),e.iGM(kt=e.CRH())&&(oe.filterMenus=kt),e.iGM(kt=e.CRH())&&(oe.columnMenus=kt)}},hostVars:4,hostBindings:function(h,oe){2&h&&e.ekj("k-grid-header",oe.headerClass)("k-table-thead",oe.hostClass)},inputs:{totalColumnLevels:"totalColumnLevels",columns:"columns",groups:"groups",detailTemplate:"detailTemplate",scrollable:"scrollable",filterable:"filterable",sort:"sort",filter:"filter",sortable:"sortable",groupable:"groupable",lockedColumnsCount:"lockedColumnsCount",resizable:"resizable",reorderable:"reorderable",columnMenu:"columnMenu",columnMenuTemplate:"columnMenuTemplate",totalColumnsCount:"totalColumnsCount",totalColumns:"totalColumns",tabIndex:"tabIndex",size:"size"},features:[e.TTD],attrs:ft,decls:3,vars:2,consts:[["kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount","totalColumns",4,"ngFor","ngForOf"],["kendoGridFilterRow","","kendoGridLogicalRow","",3,"columns","filter","groups","detailTemplate","lockedColumnsCount","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount","totalColumns",4,"ngIf"],["kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount","totalColumns"],["class","k-group-cell k-header k-table-th","role","presentation",4,"ngFor","ngForOf"],["class","k-hierarchy-cell k-header k-table-th","role","presentation",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["role","presentation",1,"k-group-cell","k-header","k-table-th"],["role","presentation",1,"k-hierarchy-cell","k-header","k-table-th"],["kendoGridLogicalCell","","role","columnheader","aria-selected","false","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","","class","k-header k-table-th",3,"logicalRowIndex","logicalColIndex","headerLabelText","colSpan","rowSpan","k-sorted","enableDrag","context","k-filterable","k-first","k-grid-header-sticky","ngClass","ngStyle","keydown",4,"ngIf"],["kendoGridLogicalCell","","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","","class","k-header k-table-th",3,"logicalRowIndex","logicalColIndex","rowSpan","colSpan","headerLabelText","enableDrag","context","k-first","k-filterable","k-grid-content-sticky","ngClass","ngStyle",4,"ngIf"],["kendoGridLogicalCell","","role","columnheader","aria-selected","false","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","",1,"k-header","k-table-th",3,"logicalRowIndex","logicalColIndex","headerLabelText","colSpan","rowSpan","enableDrag","context","ngClass","ngStyle","keydown"],[4,"ngIf"],["kendoGridColumnHandle","","kendoDraggable","","class","k-column-resizer",3,"column","columns",4,"ngIf"],[1,"k-cell-inner"],[1,"k-link"],[3,"templateContext"],[3,"column","filter","tabIndex",4,"ngIf"],[3,"standalone","settings","column","columnMenuTemplate","sort","filter","sortable","tabIndex",4,"ngIf"],[1,"k-column-title"],[3,"column","filter","tabIndex"],[3,"standalone","settings","column","columnMenuTemplate","sort","filter","sortable","tabIndex"],[1,"k-link",3,"click"],["link",""],[1,"k-sort-icon"],["role","note",3,"name","svgIcon",4,"ngIf"],["class","k-sort-order",4,"ngIf"],["role","note",3,"name","svgIcon"],[1,"k-sort-order"],["kendoGridSelectAllCheckbox","","kendoGridFocusable","",1,"k-checkbox","k-checkbox-md","k-rounded-md"],["kendoGridColumnHandle","","kendoDraggable","",1,"k-column-resizer",3,"column","columns"],["kendoGridLogicalCell","","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","",1,"k-header","k-table-th",3,"logicalRowIndex","logicalColIndex","rowSpan","colSpan","headerLabelText","enableDrag","context","ngClass","ngStyle"],[3,"standalone","settings","column","columnMenuTemplate",4,"ngIf"],[3,"standalone","settings","column","columnMenuTemplate"],["kendoGridFilterRow","","kendoGridLogicalRow","",3,"columns","filter","groups","detailTemplate","lockedColumnsCount","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount","totalColumns"]],template:function(h,oe){1&h&&(e.ynx(0),e.YNc(1,Jn,4,9,"tr",0),e.YNc(2,zt,1,10,"tr",1),e.BQk()),2&h&&(e.xp6(1),e.Q6J("ngForOf",oe.columnLevels),e.xp6(1),e.Q6J("ngIf",oe.showFilterRow))},dependencies:[Rl,fp,de.ZS,Lr,X.sg,ya,X.O5,zr,Kh,n.pD,wm,X.mk,X.PC,ua,Ja,Nc,kp],encapsulation:2}),ie})();class hm{constructor(Qe=0,h,oe){this.total=Qe,this.rowHeight=h,this.detailRowHeight=oe,this.offsets=[],this.heights=[];let kt=0;for(let ti=0;ti<Qe;ti++)this.offsets.push(kt),kt+=h,this.heights.push(h)}height(Qe){return this.heights[Qe]}expandDetail(Qe){this.height(Qe)===this.rowHeight&&this.updateRowHeight(Qe,this.detailRowHeight)}collapseDetail(Qe){this.height(Qe)>this.rowHeight&&this.updateRowHeight(Qe,-1*this.detailRowHeight)}isExpanded(Qe){return this.height(Qe)>this.rowHeight}index(Qe){if(Qe<0)return;const h=this.offsets.reduce((oe,kt,ti)=>void 0!==oe?oe:kt===Qe?ti:kt>Qe?ti-1:void 0,void 0);return void 0===h?this.total-1:h}offset(Qe){return this.offsets[Qe]}totalHeight(){return this.heights.reduce((Qe,h)=>Qe+h,0)}updateRowHeight(Qe,h){this.total>0&&(this.heights[Qe]+=h,this.offsets=((ie,Qe,h)=>[...ie.slice(0,Qe+1),...ie.slice(Qe+1).map(oe=>oe+h)])(this.offsets,Qe,h))}}class Nh{constructor(Qe){this.offset=Qe}}class Gg{constructor(Qe,h){this.skip=Qe,this.take=h}}class Dm{}class ng{constructor(Qe){this.scrollObservable=Qe,this.firstLoaded=0}create(Qe,h,oe,kt){this.rowHeightService=Qe,this.firstLoaded=h,this.lastLoaded=h+oe,this.take=oe,this.total=kt,this.lastScrollTop=0;const ti=new C.X(new Nh(this.rowHeightService.offset(h)));return this.subscription=R.y.create(Zo=>{this.unsubscribe(),this.scrollSubscription=this.scrollObservable.subscribe(hr=>this.onScroll(hr,Zo))}).subscribe(Zo=>ti.next(Zo)),ti}destroy(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()}onScroll({scrollTop:Qe,offsetHeight:h,scrollHeight:oe,clientHeight:kt},ti){if(!(0,n.X_)()||this.lastScrollTop===Qe)return;const Zo=this.lastScrollTop>=Qe;this.lastScrollTop=Qe;let hr=this.rowHeightService.index(Qe),Cs=this.rowHeightService.offset(hr);const aa=this.rowHeightService.index(Qe+h);if(!Zo)if(aa>=this.lastLoaded&&this.lastLoaded<this.total){const $a=hr+this.take-this.total;$a>0&&(hr-=$a,Cs=this.rowHeightService.offset(hr)),this.firstLoaded=hr,ti.next(new Nh(Cs));let ja=this.firstLoaded+this.take;this.lastLoaded=Math.min(ja,this.total),ja=ja>this.total?this.total-this.firstLoaded:this.take,ti.next(new Gg(this.firstLoaded,this.take))}else oe-kt-Qe<2&&ti.next(new Dm);if(Zo&&hr<this.firstLoaded){const $a=Math.floor(.3*this.take);this.firstLoaded=Math.max(hr-$a,0),ti.next(new Nh(this.rowHeightService.offset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),ti.next(new Gg(this.firstLoaded,this.take))}}unsubscribe(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=void 0)}}const pp="k-hierarchy-cell k-detail-cell k-group-cell";let yg=(()=>{class ie extends qa{constructor(h,oe){super(h,oe),this.parent=h}get templateRef(){return this.template?this.template.templateRef:void 0}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(qa,13),e.Y36(Xd,8))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-command-column"]],contentQueries:function(h,oe,kt){if(1&h&&e.Suo(kt,qh,5),2&h){let ti;e.iGM(ti=e.CRH())&&(oe.template=ti.first)}},features:[e._Bn([{provide:qa,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),l_=(()=>{class ie{constructor(h,oe,kt,ti,Zo){this.selectionService=h,this.aggregateService=oe,this.el=kt,this.renderer=ti,this.ngZone=Zo,this.type="checkbox",this.ngZone.runOutsideAngular(()=>{this.destroyClick=this.renderer.listen(this.el.nativeElement,"click",this.onClick.bind(this)),this.destroyKeyDown=this.renderer.listen(this.el.nativeElement,"keydown",this.onKeyDown.bind(this))})}ngAfterContentChecked(){this.setCheckedState()}ngOnDestroy(){this.destroyClick&&this.destroyClick(),this.destroyKeyDown&&this.destroyKeyDown()}onClick(){this.selectionService.options.enabled&&this.ngZone.run(()=>{const h=this.selectionService.toggleByIndex(this.itemIndex);h.ctrlKey=!0,h.shiftKey=!1,this.selectionService.options.cellAggregates&&(h.cellAggregates=this.aggregateService.onSelectionChange(h)),this.selectionService.changes.emit(h)})}onKeyDown(h){h.keyCode===n.R8.Enter&&this.onClick()}setCheckedState(){this.renderer.setProperty(this.el.nativeElement,"checked",this.selectionService.isSelected(this.itemIndex))}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(eu),e.Y36(If),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridSelectionCheckbox",""]],hostVars:1,hostBindings:function(h,oe){2&h&&e.uIk("type",oe.type)},inputs:{itemIndex:["kendoGridSelectionCheckbox","itemIndex"]}}),ie})();const _v=/\{\d+:?/;let c_=(()=>{class ie{constructor(h){this.intlService=h}transform(h,oe,kt){if(!ei(oe)){const ti=(0,hi.Yn)(oe)(h);return ei(kt)?ti:this.formatValue(kt,ti)}return h}formatValue(h,oe){const kt=this.intlService;return ds(h)&&h.match(_v)?kt.format(h,oe):kt.toString(oe,h)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(zn.aJ,16))},ie.\u0275pipe=e.Yjl({name:"valueOf",type:ie,pure:!1}),ie})(),fm=(()=>{class ie{constructor(h,oe,kt,ti){this.editService=h,this.idService=oe,this.ctx=kt,this.cellContext=ti,this.isNew=!1,this.isLoading=!1,this.isVirtual=!1,this.reorderIcon=te.A2f,this._templateContext={},this._editTemplateContext={}}get commandCellClass(){return this.isCommand(this.column)}get dragHandleCellClass(){return Ju(this.column)}get dragRowHandleLabel(){return Ju(this.column)?this.ctx.localization.get("dragRowHandleLabel"):void 0}set rowIndex(h){this._rowIndex=h,this.updateCellContext()}get rowIndex(){return this._rowIndex}get isEdited(){if(!this.editService.isEditing()&&!this.isNew||!this.isColumnEditable)return!1;const h=this.editService.columnContext(this.rowIndex,this.column);return this.isFieldEditable(h,this.column)}get showLoading(){return this.isVirtual&&this.isLoading}get formGroup(){return this.editService.context(this.rowIndex).group}get templateContext(){return this._templateContext}get editTemplateContext(){return this._editTemplateContext.$implicit=this.formGroup,this._editTemplateContext.isNew=this.isNew,this._editTemplateContext.column=this.column,this._editTemplateContext.dataItem=this.dataItem,this._editTemplateContext.formGroup=this.formGroup,this._editTemplateContext.rowIndex=this.rowIndex,this._editTemplateContext}get format(){if(Wh(this.column)&&!ei(this.column.format))return zs(this.column.format)}get isBoundColumn(){return this.column.field&&!this.column.templateRef}get isCheckboxColumn(){return Vh(this.column)&&!this.column.templateRef}get selectionCheckboxId(){return this.idService.selectionCheckboxId(this.rowIndex)}get selectionCheckboxLabel(){return this.ctx.localization.get("selectionCheckboxLabel")}get isSpanColumn(){return Dh(this.column)&&!this.column.templateRef}get childColumns(){return mf([this.column])}get isRowReorderColumn(){return Ju(this.column)&&!this.column.templateRef}get isColumnEditable(){return!(!this.column||this.isCommand(this.column))&&!1!==this.column.editable}ngDoCheck(){this.updateCellContext()}ngOnChanges(h){this.updateTemplateContext()}ngAfterContentChecked(){this.updateTemplateContext()}isCommand(h){return h instanceof yg}isFieldEditable(h,oe){return!!ye(h)&&(!!ye(oe.editTemplate)||ye(h.group)&&ye(h.group.get(oe.field)))}updateCellContext(){this.cellContext&&(this.cellContext.rowIndex=this._rowIndex)}updateTemplateContext(){if(!this.column.templateRef)return;const h=this._templateContext;h.isNew=this.isNew,h.column=this.column,h.dataItem=this.dataItem,h.rowIndex=this.rowIndex,h.columnIndex=this.columnIndex,h.$implicit=this.dataItem}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(rh),e.Y36(Xd),e.Y36(Uo),e.Y36(Sh,8))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["","kendoGridCell",""]],hostVars:7,hostBindings:function(h,oe){2&h&&(e.uIk("aria-label",oe.dragRowHandleLabel),e.ekj("k-command-cell",oe.commandCellClass)("k-drag-cell",oe.dragHandleCellClass)("k-touch-action-none",oe.dragHandleCellClass))},inputs:{column:"column",columnIndex:"columnIndex",isNew:"isNew",isLoading:"isLoading",isVirtual:"isVirtual",loadingTemplate:"loadingTemplate",rowIndex:"rowIndex",dataItem:"dataItem"},features:[e.TTD],attrs:mn,decls:3,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngIf","ngIfElse"],["loading",""],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngFor","ngForOf"],[1,"k-checkbox","k-checkbox-md","k-rounded-md",3,"kendoGridSelectionCheckbox"],["name","reorder",3,"svgIcon"],["class","k-skeleton-text k-skeleton",4,"ngIf"],[1,"k-skeleton-text","k-skeleton"],[3,"ngSwitch",4,"ngIf"],["kendoGridFocusable","",3,"format","formControl",4,"ngSwitchCase"],["type","checkbox","class","k-checkbox k-checkbox-md k-rounded-md","kendoGridFocusable","",3,"formControl",4,"ngSwitchCase"],["type","text","class","k-textbox k-input k-input-solid k-rounded-md","kendoGridFocusable","",3,"formControl",4,"ngSwitchDefault"],["kendoGridFocusable","",3,"format","formControl"],["type","checkbox","kendoGridFocusable","",1,"k-checkbox","k-checkbox-md","k-rounded-md",3,"formControl"],["type","text","kendoGridFocusable","",1,"k-textbox","k-input","k-input-solid","k-rounded-md",3,"formControl"]],template:function(h,oe){1&h&&(e.ynx(0,0),e.YNc(1,on,4,2,"ng-container",1),e.YNc(2,io,3,2,"ng-container",1),e.BQk()),2&h&&(e.Q6J("ngSwitch",oe.isEdited),e.xp6(1),e.Q6J("ngSwitchCase",!1),e.xp6(1),e.Q6J("ngSwitchCase",!0))},dependencies:[de.ZS,ot.Uw,pn.Lr,X.RF,X.n9,X.O5,X.tP,X.sg,Nc,l_,me.JJ,me.oH,me.Wl,X.ED,me.Fj,c_],encapsulation:2}),ie})(),d_=(()=>{class ie{constructor(h,oe,kt){this.groupsService=h,this.groupInfoService=oe,this.ctx=kt,this.skipGroupDecoration=!1,this.hasDetails=!1,this.totalColumnsCount=0,this.groups=[],this.groupItemClass=!0,this.tableGroupRowClass=!0,this.isExpanded=!1,this.caretAltDownIcon=te.M7i,this.caretAltRightIcon=te.bI8,this.caretAltLeftIcon=te.Me8}ngDoCheck(){const h={group:this.item.data,groupIndex:this.item.index,parentGroup:sh(this.item.parentGroup)};this.isExpanded=this.groupsService.isExpanded(h)}prefixGroupCell(h){return new Array(h.level)}toggleGroup(h){return this.groupsService.toggleRow(h),!1}groupSpan(h){const oe=(this.groups||[]).length,kt=this.hasDetails?1:0;if(this.hasGroupHeaderColumn)return oe+1+kt-h.level;const ti=Qc(this.columns);return this.skipGroupDecoration?ti:oe+ti+kt-h.level}logicalColSpan(){return this.skipGroupDecoration?1:this.totalColumnsCount}ariaRole(){return this.skipGroupDecoration?"presentation":"gridcell"}formatForGroup(h){return this.groupInfoService.formatForGroup(h)}groupTitle(h){return this.groupInfoService.groupTitle(h)}groupHeaderTemplate(h){return this.groupInfoService.groupHeaderTemplate(h)}get groupButtonTitle(){return this.ctx.localization.get(this.isExpanded?"groupCollapse":"groupExpand")}get arrowIcon(){return this.isExpanded?"caret-alt-down":this.ctx.localization.rtl?"caret-alt-left":"caret-alt-right"}get arrowSVGIcon(){return this.isExpanded?this.caretAltDownIcon:this.ctx.localization.rtl?this.caretAltLeftIcon:this.caretAltRightIcon}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Bf),e.Y36(Pl),e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["","kendoGridGroupHeader",""]],hostVars:4,hostBindings:function(h,oe){2&h&&e.ekj("k-grouping-row",oe.groupItemClass)("k-table-group-row",oe.tableGroupRowClass)},inputs:{rowIndex:"rowIndex",logicalRowIndex:"logicalRowIndex",item:"item",skipGroupDecoration:"skipGroupDecoration",hasDetails:"hasDetails",totalColumnsCount:"totalColumnsCount",hasGroupHeaderColumn:"hasGroupHeaderColumn",groupHeaderColumns:"groupHeaderColumns",columns:"columns",groups:"groups"},attrs:Wi,decls:3,vars:3,consts:[[4,"ngIf"],["aria-selected","false","class","k-table-td","kendoGridLogicalCell","",3,"logicalRowIndex","logicalColIndex","logicalSlaveCell","groupItem","colSpan",4,"ngIf"],["class","k-group-cell k-table-td","role","presentation",4,"ngFor","ngForOf"],["role","presentation",1,"k-group-cell","k-table-td"],["aria-selected","false","kendoGridLogicalCell","",1,"k-table-td",3,"logicalRowIndex","logicalColIndex","logicalSlaveCell","groupItem","colSpan"],[1,"k-reset"],["href","#","tabindex","-1","role","presentation",3,"click"],[3,"name","svgIcon"],[3,"templateContext"],["role","gridcell","class","k-table-td","aria-selected","false","kendoGridLogicalCell","",3,"logicalRowIndex","logicalColIndex","logicalSlaveCell","groupItem","colSpan",4,"ngFor","ngForOf"],["role","gridcell","aria-selected","false","kendoGridLogicalCell","",1,"k-table-td",3,"logicalRowIndex","logicalColIndex","logicalSlaveCell","groupItem","colSpan"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(h,oe){1&h&&(e.YNc(0,cr,2,1,"ng-container",0),e.YNc(1,Ca,3,9,"td",1),e.YNc(2,_a,2,1,"ng-container",0)),2&h&&(e.Q6J("ngIf",!oe.skipGroupDecoration),e.xp6(1),e.Q6J("ngIf",!(oe.skipGroupDecoration&&oe.hasGroupHeaderColumn)),e.xp6(1),e.Q6J("ngIf",oe.hasGroupHeaderColumn))},dependencies:[de.ZS,X.O5,X.sg,zr,ua,X.tP,c_],encapsulation:2}),ie})(),Vg=(()=>{class ie{constructor(h,oe,kt,ti,Zo,hr,Cs,aa,$a,ja,Ll,Gc,Fc){this.detailsService=h,this.groupsService=oe,this.changeNotification=kt,this.editService=ti,this.ctx=Zo,this.ngZone=hr,this.renderer=Cs,this.element=aa,this.domEvents=$a,this.selectionService=ja,this.cellSelectionService=Ll,this.columnInfoService=Gc,this.navigationService=Fc,this.columns=[],this.groups=[],this.skip=0,this.noRecordsText=this.ctx.localization.get("noRecords"),this.isLocked=!1,this.skipGroupDecoration=!1,this.showGroupFooters=!1,this.lockedColumnsCount=0,this.totalColumnsCount=0,this.trackBy=fg,this.hostClass=!0,this.minusIcon=te.$sV,this.plusIcon=te.R7U,this.rowClass=()=>null,this.cellKeydownSubscription=this.navigationService.cellKeydown.subscribe(_u=>this.cellKeydownHandler(_u)),this.trackByWrapper=this.trackByWrapper.bind(this),this.trackByColumns=this.trackByColumns.bind(this)}get newDataItem(){return this.editService.newDataItem}unlockedColumnsCount(h){const oe=this.allColumns||this.columns;let kt=oe.length;oe.forEach(hr=>{hr.isSpanColumn&&(kt+=hr.colspan-1)});const ti=this.totalColumnsCount-this.lockedColumnsCount-kt,Zo=this.totalColumnsCount-this.lockedColumnsCount-(this.allColumns||this.columns).length;return h&&this.isDataItem(h)?ti:Zo}isAriaSelected(h,oe){return this.cellSelectionService.isCellSelected(h,oe)||this.isRowSelected(h)?"true":"false"}toggleRow(h,oe){return this.detailsService.toggleRow(h,oe),!1}isExpanded(h){return this.detailsService.isExpanded(h.index,h.data)}detailButtonIconName(h){return this.isExpanded(h)?"minus":"plus"}detailButtonSvgIcon(h){return this.isExpanded(h)?this.minusIcon:this.plusIcon}detailButtonTitle(h){const oe=this.isExpanded(h)?"detailCollapse":"detailExpand";return this.ctx.localization.get(oe)}isGroup(h){return"group"===h.type}isDataItem(h){return!this.isGroup(h)&&!this.isFooter(h)}isFooter(h){return"footer"===h.type}isFooterItemInExpandedGroup(h){return this.isInExpandedGroup({data:h.data,index:h.groupIndex,parentGroup:h.group.parentGroup})}isDataItemInExpandedGroup(h){return this.isInExpandedGroup({data:h.group.data,index:h.groupIndex,parentGroup:h.group.parentGroup})}isInExpandedGroup(h){return this.groupsService.isInExpandedGroup(h)}isParentGroupExpanded(h){return this.groupsService.isInExpandedGroup(h.parentGroup)}isOdd(h){return h.index%2!=0}isSelectable(){return this.selectable&&!1!==this.selectable.enabled}isRowSelected(h){return this.selectionService.isSelected(h.index)}trackByWrapper(h,oe){return"data"===oe.type&&(oe.isEditing=this.editService.hasEdited(oe.index)),this.trackBy(h,oe)}trackByColumns(h,oe){return this.virtualColumns?h:oe}ngDoCheck(){this.groupHeaderColumns=this.hasGroupHeaderColumn?mf(this.skipGroupDecoration?this.columns:this.columns.toArray().slice(1)):[],this.groupHeaderSlaveCellsCount=this.isLocked?this.hasGroupHeaderColumn?this.columnsContainer.nonLockedColumnsToRender.length:1:0}ngAfterViewChecked(){this.rowSticky&&this.applyStickyRowsStyling()}ngOnChanges(h){(0,n.ln)("columns",h,!1)&&this.changeNotification.notify()}logicalRowIndex(h){let oe=this.skip+h;this.hasDetailTemplate&&(oe*=2);const kt=1+oe,ti=this.editService.hasNewItem?1:0,Zo=yp(this.filterable)?1:0;return kt+(this.columnInfoService.totalLevels+Zo+ti)}addRowLogicalIndex(){return this.columnInfoService.totalLevels+1+(yp(this.filterable)?1:0)}logicalColIndex(h){return ye(h.leafIndex)?h.leafIndex+(this.hasDetailTemplate?1:0):-1}ngOnInit(){this.ngZone.runOutsideAngular(()=>{const oe=this.clickHandler.bind(this),kt=this.renderer.listen(this.element.nativeElement,"mousedown",oe),ti=this.renderer.listen(this.element.nativeElement,"mouseup",oe),Zo=this.renderer.listen(this.element.nativeElement,"click",oe),hr=this.renderer.listen(this.element.nativeElement,"contextmenu",oe),Cs=this.renderer.listen(this.element.nativeElement,"touchstart",oe),aa=this.renderer.listen(this.element.nativeElement,"touchend",oe);this.clickSubscription=()=>{kt(),ti(),Zo(),hr()},this.touchSubscription=()=>{Cs(),aa()}});let h=this.ctx.localization.get("noRecords");this.l10nSubscription=this.ctx.localization.changes.subscribe(()=>{this.noRecordsText===h&&(this.noRecordsText=this.ctx.localization.get("noRecords"),h=this.noRecordsText)})}ngOnDestroy(){this.clickSubscription&&this.clickSubscription(),this.touchSubscription&&this.touchSubscription(),this.l10nSubscription&&this.l10nSubscription.unsubscribe(),this.cellKeydownSubscription.unsubscribe(),clearTimeout(this.clickTimeout)}isEditingCell(h,oe){return this.editService.isEditing()&&this.editService.isEditedColumn(h,oe)}isEditingRow(h){return this.editService.isEditing()&&this.editService.hasEdited(h)}get hasGroupHeaderColumn(){return this.columnsContainer.hasGroupHeaderColumn}get columnsContainer(){return this.columnInfoService.columnsContainer}get columnsSpan(){return Qc(this.columns)}get allColumnsSpan(){return Qc(this.allColumns||this.columns)}get colSpan(){return this.columnsSpan+this.groups.length+(this.hasDetailTemplate?1:0)}get footerColumns(){return this.isLocked?this.columnsContainer.lockedColumnsToRender:this.columnsContainer.nonLockedColumnsToRender}showGroupHeader(h){return!h.data.skipHeader}addStickyColumnStyles(h){const oe=this.columnInfoService.stickyColumnsStyles(h);return{...h.style,...oe}}resizeHandler(){this.applyStickyRowsStyling()}get hasDetailTemplate(){return ye(this.detailTemplate)}clickHandler(h){const oe=this.element.nativeElement,kt=this.eventTarget(h);let ti,Zo,hr,Cs,aa=kt;do{ti=ul(aa,Lc("td")),Zo=ul(ti,Lc("tr")),hr=ul(Zo,Lc("tbody")),aa=hr,Cs=Mc(aa,ku("k-grid"),oe)}while(hr&&hr!==oe&&!Cs);if(ti&&!iu(ti,pp)&&!iu(Zo,"k-grouping-row k-group-footer k-detail-row k-grid-norecords")&&hr===oe&&!Cs&&(this.editService.preventCellClose(),!(kt!==ti&&hf(kt,!1)||Lc("label")(kt)||iu(kt,"k-icon k-svg-icon")||Mc(kt,ku("k-grid k-grid-ignore-click"),ti)))){const ja=this.cellClickArgs(ti,Zo,h);"mousedown"===h.type||"touchstart"===h.type?this.domEvents.cellMousedown.emit(ja):"mouseup"===h.type||"touchend"===h.type?this.domEvents.cellMouseup.emit(ja):(ja.isEditedColumn||!this.editService.closeCell(h))&&("click"===h.type?this.clickTimeout=setTimeout(()=>{this.emitCellClick(ja)},0):this.emitCellClick(ja))}}emitCellClick(h){this.domEvents.cellClick.emit(Object.assign(h,{isEdited:h.isEditedRow||h.isEditedColumn}))}cellKeydownHandler(h){h.keyCode===n.R8.Enter&&this.clickHandler(h)}cellClickArgs(h,oe,kt){const ti=((ie,Qe)=>{let h=0;for(let oe=0;oe<Qe.length;oe++){if(Qe[oe]===ie)return h;iu(Qe[oe],"k-hierarchy-cell k-group-cell")||h++}})(h,oe.cells),Zo=this.columns.toArray()[ti],hr=this.lockedColumnsCount+ti;let Cs=oe.getAttribute("data-kendo-grid-item-index");return Cs=Cs?parseInt(Cs,10):-1,{column:Zo,columnIndex:hr,dataItem:-1===Cs?this.editService.newDataItem:this.data.at(Cs-this.skip),isEditedColumn:this.editService.isEditedColumn(Cs,Zo),isEditedRow:this.editService.isEdited(Cs),originalEvent:kt,rowIndex:Cs,type:"keydown"===kt.type?"click":kt.type}}eventTarget(h){if((0,n.X_)()){if("touchend"===h.type){const oe=h.changedTouches[0];return document.elementFromPoint(oe.clientX,oe.clientY)}return h.target}}applyStickyRowsStyling(){if(!(0,n.X_)())return;const h=(ie=>[].slice.call(ie))(this.element.nativeElement.querySelectorAll(".k-grid-row-sticky"));if(h.length){let kt=0;const ti=[];h.forEach(Zo=>{const hr=Zo.getBoundingClientRect().height;ti.push({accumulatedHeight:kt,rowHeight:hr}),kt+=hr}),h.forEach((Zo,hr)=>{this.renderer.setStyle(Zo,"top",`${ti[hr].accumulatedHeight}px`),this.renderer.setStyle(Zo,"bottom",kt-ti[hr].accumulatedHeight-ti[hr].rowHeight+"px")})}}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Hh),e.Y36(Bf),e.Y36(Zl),e.Y36(rh),e.Y36(Uo),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(ml),e.Y36(eu),e.Y36(lh),e.Y36(Rd),e.Y36(Su))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["","kendoGridTableBody",""]],hostVars:2,hostBindings:function(h,oe){2&h&&e.ekj("k-table-tbody",oe.hostClass)},inputs:{columns:"columns",allColumns:"allColumns",groups:"groups",detailTemplate:"detailTemplate",noRecordsTemplate:"noRecordsTemplate",data:"data",skip:"skip",selectable:"selectable",filterable:"filterable",noRecordsText:"noRecordsText",isLocked:"isLocked",isLoading:"isLoading",isVirtual:"isVirtual",cellLoadingTemplate:"cellLoadingTemplate",skipGroupDecoration:"skipGroupDecoration",showGroupFooters:"showGroupFooters",lockedColumnsCount:"lockedColumnsCount",totalColumnsCount:"totalColumnsCount",virtualColumns:"virtualColumns",trackBy:"trackBy",rowSticky:"rowSticky",totalColumns:"totalColumns",rowClass:"rowClass"},features:[e.TTD],attrs:Ws,decls:4,vars:5,consts:[[4,"ngIf"],["class","k-grid-norecords","role","row",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"resize",4,"ngIf"],["kendoGridLogicalRow","",1,"k-grid-add-row","k-grid-edit-row","k-master-row",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount","totalColumns"],["class","k-hierarchy-cell k-table-td","kendoGridLogicalCell","","aria-selected","false",3,"logicalRowIndex","logicalColIndex",4,"ngIf"],["class","k-table-td","kendoGridCell","","kendoGridLogicalCell","","role","gridcell",3,"rowIndex","columnIndex","isNew","column","dataItem","k-grid-content-sticky","ngClass","left","ngStyle","logicalRowIndex","logicalColIndex","colSpan",4,"ngFor","ngForOf","ngForTrackBy"],["class","k-group-cell k-table-td","role","presentation",4,"ngFor","ngForOf"],["role","presentation",1,"k-group-cell","k-table-td"],["kendoGridLogicalCell","","aria-selected","false",1,"k-hierarchy-cell","k-table-td",3,"logicalRowIndex","logicalColIndex"],["kendoGridCell","","kendoGridLogicalCell","","role","gridcell",1,"k-table-td",3,"rowIndex","columnIndex","isNew","column","dataItem","ngClass","ngStyle","logicalRowIndex","logicalColIndex","colSpan"],["role","row",1,"k-grid-norecords"],[1,"k-table-td"],[3,"templateContext"],["kendoGridGroupHeader","","kendoGridLogicalRow","",3,"columns","groups","item","hasDetails","skipGroupDecoration","hasGroupHeaderColumn","groupHeaderColumns","rowIndex","totalColumnsCount","logicalRowIndex","logicalSlaveRow","totalColumns","logicalCellsCount","logicalSlaveCellsCount",4,"ngIf"],["kendoGridLogicalRow","",3,"dataRowIndex","dataItem","logicalRowIndex","logicalSlaveRow","totalColumns","logicalCellsCount","logicalSlaveCellsCount","class","k-grid-row-sticky","ngClass","k-master-row","k-grid-edit-row","k-selected",4,"ngIf"],["class","k-detail-row","kendoGridLogicalRow","",3,"k-alt","dataRowIndex","dataItem","logicalRowIndex","logicalSlaveRow","logicalCellsCount",4,"ngIf"],["class","k-group-footer","kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","totalColumns","logicalCellsCount","logicalSlaveCellsCount",4,"ngIf"],["kendoGridGroupHeader","","kendoGridLogicalRow","",3,"columns","groups","item","hasDetails","skipGroupDecoration","hasGroupHeaderColumn","groupHeaderColumns","rowIndex","totalColumnsCount","logicalRowIndex","logicalSlaveRow","totalColumns","logicalCellsCount","logicalSlaveCellsCount"],["kendoGridLogicalRow","",3,"dataRowIndex","dataItem","logicalRowIndex","logicalSlaveRow","totalColumns","logicalCellsCount","logicalSlaveCellsCount","ngClass"],["class","k-hierarchy-cell k-table-td","kendoGridLogicalCell","","aria-selected","false","role","gridcell",3,"logicalRowIndex","logicalColIndex","dataRowIndex","dataItem","detailExpandCell",4,"ngIf"],["kendoGridCell","","kendoGridLogicalCell","","role","gridcell","class","k-table-td",3,"rowIndex","columnIndex","column","dataItem","isLoading","isVirtual","loadingTemplate","logicalRowIndex","logicalColIndex","dataRowIndex","colIndex","colSpan","k-grid-content-sticky","k-touch-action-none","k-touch-action-auto","ngClass","k-grid-edit-cell","ngStyle","k-selected",4,"ngFor","ngForOf","ngForTrackBy"],["class","k-group-cell","role","presentation",4,"ngFor","ngForOf"],["role","presentation",1,"k-group-cell"],["kendoGridLogicalCell","","aria-selected","false","role","gridcell",1,"k-hierarchy-cell","k-table-td",3,"logicalRowIndex","logicalColIndex","dataRowIndex","dataItem","detailExpandCell"],["href","#","tabindex","-1",3,"click",4,"ngIf"],["href","#","tabindex","-1",3,"click"],[3,"name","svgIcon"],["kendoGridCell","","kendoGridLogicalCell","","role","gridcell",1,"k-table-td",3,"rowIndex","columnIndex","column","dataItem","isLoading","isVirtual","loadingTemplate","logicalRowIndex","logicalColIndex","dataRowIndex","colIndex","colSpan","ngClass","ngStyle"],["kendoGridLogicalRow","",1,"k-detail-row",3,"dataRowIndex","dataItem","logicalRowIndex","logicalSlaveRow","logicalCellsCount"],["class","k-group-cell k-table-td",4,"ngFor","ngForOf"],[1,"k-hierarchy-cell","k-table-td"],["kendoGridLogicalCell","","role","gridcell","aria-selected","false",1,"k-detail-cell","k-table-td",3,"logicalRowIndex","logicalColIndex","dataRowIndex","dataItem","colIndex","colSpan"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-group-cell","k-table-td"],["kendoGridLogicalRow","",1,"k-group-footer",3,"logicalRowIndex","logicalSlaveRow","totalColumns","logicalCellsCount","logicalSlaveCellsCount"],["kendoGridLogicalCell","","class","k-table-td",3,"logicalRowIndex","logicalColIndex",4,"ngFor","ngForOf","ngForTrackBy"],["class","k-group-cell",4,"ngFor","ngForOf"],[1,"k-group-cell"],["kendoGridLogicalCell","",1,"k-table-td",3,"logicalRowIndex","logicalColIndex"],[3,"resize"]],template:function(h,oe){1&h&&(e.YNc(0,pi,5,9,"ng-container",0),e.YNc(1,Os,4,3,"tr",1),e.YNc(2,rl,5,4,"ng-container",2),e.YNc(3,Nl,1,0,"kendo-resize-sensor",3)),2&h&&(e.Q6J("ngIf",oe.editService.hasNewItem),e.xp6(1),e.Q6J("ngIf",0===(null==oe.data?null:oe.data.length)||null===oe.data),e.xp6(1),e.Q6J("ngForOf",oe.data)("ngForTrackBy",oe.trackByWrapper),e.xp6(1),e.Q6J("ngIf",oe.rowSticky))},dependencies:[fm,d_,de.ZS,n.NG,X.O5,ya,X.sg,zr,X.mk,X.PC,ua,X.tP],encapsulation:2}),ie})();const N_=({columns:ie})=>Math.max(1,(ie=>ie.filter(Qe=>st(Qe.resizable)&&Qe.isVisible))(ie).length),mp=ie=>Qe=>Qe.querySelector(ie),Fh=(ie,Qe="td")=>h=>h.querySelectorAll(`${Qe}:not(.k-group-cell):not(.k-hierarchy-cell)`)[ie],cu=ie=>ie.offsetWidth,eh=(...ie)=>Qe=>ie.reduce((h,oe)=>h?oe(h):0,Qe);let bg=(()=>{class ie{constructor(h,oe,kt,ti,Zo){this.element=h,this.renderer=oe,this.service=kt,this.zone=ti,this.cdr=Zo,this.locked=!1,this.firstResize=!1}get minWidth(){return this.firstResize?0:null}ngOnInit(){const h=this.service.changes.pipe((0,w.h)(oe=>this.locked===oe.locked));this.subscription=h.pipe((0,w.h)(oe=>"start"===oe.type),(0,I.b)(this.initState.bind(this)),(0,k.U)(N_),(0,x.w)(oe=>h.pipe((0,w.h)(kt=>"resizeTable"===kt.type),(0,k.U)(kt=>kt.delta),function U(ie,Qe=null){return Qe=Qe??ie,(0,F.e)((h,oe)=>{let kt=[],ti=0;h.subscribe((0,P.x)(oe,Zo=>{let hr=null;ti++%Qe==0&&kt.push([]);for(const Cs of kt)Cs.push(Zo),ie<=Cs.length&&(hr=hr??[],hr.push(Cs));if(hr)for(const Cs of hr)(0,O.P)(kt,Cs),oe.next(Cs)},()=>{for(const Zo of kt)oe.next(Zo);oe.complete()},void 0,()=>{kt=null}))})}(oe)))).subscribe(this.resize.bind(this)),this.autoFitSubscription=this.service.registerTable({autoFit:this.autoFitObservable.bind(this),locked:this.locked})}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.autoFitSubscription&&(this.autoFitSubscription(),this.autoFitSubscription=null)}initState(){this.firstResize=!0,(!this.virtualColumns||this.locked)&&(this.originalWidth=cu(this.element.nativeElement))}resize(h){if(!this.virtualColumns||this.locked){const oe=h.reduce((ti,Zo)=>ti+Zo,0);this.renderer.setStyle(this.element.nativeElement,"width",this.originalWidth+oe+"px")}this.cdr.detectChanges()}autoFitObservable(h){return R.y.create(oe=>{this.zone.runOutsideAngular(()=>{this.renderer.addClass(this.element.nativeElement,"k-autofitting"),this.cdr.detectChanges();const kt=h.map(this.measureColumn.bind(this));this.renderer.removeClass(this.element.nativeElement,"k-autofitting"),oe.next(kt)})})}measureColumn(h){const oe=this.element.nativeElement,kt=eh((ie=>Qe=>Qe.querySelectorAll("thead>tr")[ie])(h.level),Fh(h.headerIndex,"th"),cu)(oe);let ti=0;(!h.isParentSpan||h.isParentSpan&&h.isLastInSpan)&&(ti=eh(mp("tbody>tr:not(.k-grouping-row):not(.k-grid-norecords)"),Fh(h.index),cu)(oe));const Zo=eh(mp("tfoot>tr"),Fh(h.index),cu)(oe);return Math.max(kt,ti,Zo)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(bf),e.Y36(e.R0b),e.Y36(e.sBO))},ie.\u0275dir=e.lG2({type:ie,selectors:[["table"]],hostVars:2,hostBindings:function(h,oe){2&h&&e.Udp("min-width",oe.minWidth)},inputs:{locked:"locked",virtualColumns:"virtualColumns"}}),ie})(),Cg=(()=>{class ie{constructor(h){this.wrapper=h,this.hostClass=!0,this._size="medium"}get sizeSmallClass(){return"small"===this.size}get sizeMediumClass(){return"medium"===this.size||!this.size}set size(h){this._size=h,"none"===h&&this.wrapper.nativeElement.classList.remove("k-table-sm","k-table-md")}get size(){return this._size}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.SBq))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridTable",""]],hostVars:6,hostBindings:function(h,oe){2&h&&e.ekj("k-table",oe.hostClass)("k-table-sm",oe.sizeSmallClass)("k-table-md",oe.sizeMediumClass)},inputs:{size:"size"}}),ie})(),xg=(()=>{class ie{constructor(h,oe,kt,ti){this.el=h,this.renderer=oe,this.resizeService=kt,this.ctx=ti,this.enabled=!1}set lockedWidth(h){this._lockedWidth=h,this.enabled&&(this.attachResize(),this.resize())}set kendoGridResizableContainer(h){const oe=h!==this.enabled;this.enabled=h,oe&&(this.attachResize(),this.resize())}ngOnDestroy(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}attachResize(){this.resizeSubscription&&!this.enabled&&(this.resizeSubscription.unsubscribe(),this.resizeSubscription=null),!this.resizeSubscription&&this.enabled&&(this.resizeSubscription=this.resizeService.changes.subscribe(this.resize.bind(this)))}resize(){if(this.ctx.grid&&this.ctx.grid.wrapper){const oe=Math.max(this.ctx.grid.wrapper.nativeElement.clientWidth-this._lockedWidth,0);this.renderer.setStyle(this.el.nativeElement,"width",this.enabled&&oe>0?oe+"px":"")}}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(np),e.Y36(Uo))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridResizableContainer",""]],inputs:{lockedWidth:"lockedWidth",kendoGridResizableContainer:"kendoGridResizableContainer"}}),ie})();const Wg=(ie,Qe,h)=>{for(let oe=0,kt=0;oe<Qe.length;oe++){const ti=h(Qe[oe]);if(kt<=ie&&ie<=kt+ti-1)return Qe[oe];kt+=ti}},u_=(ie,Qe)=>Wg(ie,Qe,h=>h.hasAttribute("data-kendo-grid-item-index")?1:0),M_={},ig=new e.OlP("grid-scroll-service-factory");function h_(ie){return new ng(ie)}const f_=ie=>{const Qe=ie.wheelDeltaY;return ie.wheelDelta&&(void 0===Qe||Qe)?ie.wheelDelta:ie.detail&&ie.axis===ie.VERTICAL_AXIS?10*-ie.detail:0},k_=ie=>ie?ie.nativeElement:null;let Ir=(()=>{class ie{constructor(h,oe,kt,ti,Zo,hr,Cs,aa,$a,ja,Ll,Gc,Fc,_u,Vl,Ld,$f,Nu){this.changeNotification=kt,this.suspendService=ti,this.groupsService=Zo,this.ngZone=hr,this.renderer=Cs,this.scrollSyncService=aa,this.resizeService=$a,this.editService=ja,this.supportService=Ll,this.navigationService=Gc,this.ctx=_u,this.columnResizingService=Vl,this.changeDetector=Ld,this.pdfService=$f,this.columnInfo=Nu,this.hostClass=!0,this.hostRole="presentation",this.groups=[],this.skip=0,this.columns=new Ih(()=>[]),this.selectable=!1,this.groupable=!1,this.trackBy=fg,this.sort=new Array,this.size="medium",this.contentScroll=new e.vpe,this.pageChange=new e.vpe,this.scrollBottom=new e.vpe,this.columnsStartIdx=0,this.resizeSensors=new e.n_E,this.dispatcher=new l.x,this.containerScrollTop=0,this.scrollLeft=0,this.rtl=!1,this.scroller=h(this.dispatcher),this.subscriptions=oe.changes.subscribe(cf=>this.detailExpand(cf)),this.subscriptions.add(Fc.requests.subscribe(cf=>this.scrollTo(cf)))}get showFooter(){return this.groupable&&this.groupable.showFooter}get totalWidth(){if(this.virtualColumns&&this.columns.unlockedWidth)return this.columns.unlockedWidth}get lockedLeafColumns(){return this.columns.lockedLeafColumns}get nonLockedLeafColumns(){return this.columns.nonLockedLeafColumns}get nonLockedColumnsToRender(){return this.virtualColumns&&!this.pdfService.exporting?this.viewportColumns:this.nonLockedLeafColumns}get leafColumns(){return this.columns.leafColumnsToRender}get lockedWidth(){const h=32*this.groups.length;return Bu(this.lockedLeafColumns.toArray()).reduce((oe,kt)=>oe+(kt.width||0),h)}get nonLockedWidth(){if(!this.rtl&&this.lockedLeafColumns.length||this.virtualColumns)return ah(Bu(this.nonLockedColumnsToRender.toArray()))}get isLocked(){return this.lockedLeafColumns.length>0}ngOnInit(){this.init(),this.subscriptions.add(this.ngZone.runOutsideAngular(this.handleRowSync.bind(this))),this.subscriptions.add(this.ngZone.runOutsideAngular(this.handleRowNavigationLocked.bind(this))),this.subscriptions.add((0,o.T)(this.columns.changes,this.resizeService.changes).subscribe(()=>{this.virtualColumns&&this.ngZone.run(()=>{this.updateViewportColumns(),this.changeDetector.markForCheck()})})),this.subscriptions.add(this.ctx.localization.changes.subscribe(({rtl:h})=>this.rtl=h))}ngOnChanges(h){if(!(0,n.X_)())return;const oe=h.skip;oe&&oe.firstChange&&oe.currentValue>0&&this.handleInitialScrollToSkip(),(0,n.ln)("skip",h)&&!this.rebind&&(this.skipScroll=!0,this.container.nativeElement.scrollTop=this.rowHeightService.offset(this.skip)),(0,n.aG)(["total","take"],h)&&this.init(),this.rebind=!1}ngDoCheck(){this.virtualColumns&&(!this.viewportColumns||this.viewportWidthChange())&&this.updateViewportColumns()}ngAfterViewInit(){(0,n.X_)()&&(this.skip&&this.isVirtual&&(this.container.nativeElement.scrollTop=this.rowHeightService.offset(this.skip)),this.resetNavigationViewport(),this.attachContainerScroll(),this.initResizeService())}ngAfterViewChecked(){const h=this.isLocked;h&&!this.hasLockedContainer&&this.syncRowsHeight(),this.hasLockedContainer=h}syncRowsHeight(){this.lockedContainer&&zl(this.lockedTable.nativeElement,this.table.nativeElement)}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe(),this.resizeService&&this.resizeService.destroy(),this.cleanupScroller()}init(){this.suspendService.scroll||(this.rowHeightService=new hm(this.total,this.rowHeight,this.detailRowHeight),this.totalHeight=this.rowHeightService.totalHeight(),gr()||this.ngZone.runOutsideAngular(this.createScroller.bind(this)))}lockedScroll(){if(!this.suspendService.scroll){const h=this.lockedContainer.nativeElement.scrollTop;h!==this.containerScrollTop&&(this.container.nativeElement.scrollTop=this.containerScrollTop=h)}}lockedMousewheel(h){if(!h.ctrlKey){((ie,Qe)=>{const h=f_(ie),oe=Qe.scrollTop;0===oe&&0<h||Qe.scrollHeight<=Qe.offsetHeight+oe&&h<0||event.preventDefault()})(h,this.container.nativeElement);const oe=f_(h);this.container.nativeElement.scrollTop-=oe}}lockedKeydown(h){if(h.keyCode===n.R8.PageDown||h.keyCode===n.R8.PageUp){const kt=this.container.nativeElement;kt.scrollTop+=kt.offsetHeight*(h.keyCode===n.R8.PageDown?1:-1)*.8,h.preventDefault()}}detailExpand({index:h,expand:oe}){oe?this.rowHeightService.expandDetail(h):this.rowHeightService.collapseDetail(h),this.totalHeight=this.rowHeightService.totalHeight(),this.resetNavigationViewport()}attachContainerScroll(){gr()||(this.ngZone.runOutsideAngular(()=>{this.subscriptions.add((0,A.R)(this.container.nativeElement,"scroll").pipe((0,k.U)(h=>h.target),(0,w.h)(()=>!this.suspendService.scroll),(0,I.b)(h=>{this.onContainerScroll(h),this.resetNavigationViewport(),this.virtualColumns&&this.handleColumnScroll();const oe=this.navigationService.viewport||M_,kt=this.navigationService.columnViewport||M_;this.contentScroll.emit({scrollLeft:h.scrollLeft,scrollTop:h.scrollTop,startRow:oe.firstItemIndex,endRow:oe.lastItemIndex,startColumn:kt.firstItemIndex,endColumn:kt.lastItemIndex})})).subscribe(this.dispatcher))}),this.scrollSyncService.registerEmitter(this.container.nativeElement,"body"))}createScroller(){this.cleanupScroller();const h=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total);this.skipScroll=!1,this.scrollerSubscription=h.pipe((0,w.h)(oe=>oe instanceof Gg),(0,w.h)(()=>{const oe=this.skipScroll;return this.skipScroll=!1,!oe}),(0,I.b)(()=>this.rebind=!0)).subscribe(oe=>this.ngZone.run(()=>this.pageChange.emit(oe))),this.scrollerSubscription.add(h.pipe((0,w.h)(oe=>oe instanceof Nh)).subscribe(this.scroll.bind(this))),this.scrollerSubscription.add(h.pipe((0,w.h)(oe=>oe instanceof Dm)).subscribe(()=>this.scrollBottom.emit()))}scroll({offset:h=0}){this.isVirtual&&[k_(this.table),k_(this.lockedTable)].filter(ye).forEach(((ie,Qe)=>h=>ie.setStyle(h,"transform",`translateY(${Qe}px)`))(this.renderer,h)),this.resetNavigationViewport()}onContainerScroll({scrollTop:h}){this.containerScrollTop=h,this.lockedContainer&&(this.lockedContainer.nativeElement.scrollTop=h)}handleInitialScrollToSkip(){const oe=this.changeNotification.changes.pipe((0,w.h)(()=>this.isVirtual&&this.skip>0&&this.total>0)).subscribe(kt=>{this.scrollTo({row:this.skip}),oe.unsubscribe()})}handleRowSync(){const h=()=>ye(this.lockedContainer);return(0,o.T)(this.changeNotification.changes,this.groupsService.changes.pipe((0,w.h)(h),(0,M.c)((()=>this.ngZone.onStable.asObservable().pipe((0,f.q)(1)))())),this.editService.changed,this.resizeService.changes,this.columnResizingService.changes.pipe((0,w.h)(kt=>"end"===kt.type)),this.supportService.changes).pipe((0,I.b)(()=>this.resetNavigationViewport()),(0,w.h)(h)).subscribe(()=>{const kt=this.container.nativeElement.scrollTop,ti=this.container.nativeElement.scrollLeft;this.syncRowsHeight(),this.syncContainerHeight(),this.lockedContainer.nativeElement.scrollTop=this.container.nativeElement.scrollTop=kt,this.container.nativeElement.scrollLeft=ti,this.resizeSensors.forEach(Zo=>Zo.acceptSize())})}handleRowNavigationLocked(){return this.navigationService.changes.pipe((0,w.h)(()=>ye(this.lockedContainer)),(0,p.g)(10)).subscribe(h=>{if(this.lockedLeafColumns.length<=h.prevColIndex&&h.colIndex<this.lockedLeafColumns.length){const oe=this.navigationService.activeCell;oe&&oe.colIndex+oe.colSpan<h.prevColIndex&&(this.container.nativeElement.scrollLeft=0)}})}scrollToVirtualRow(h){if(!(0,n.X_)())return;ye(this.detailTemplate)&&(h=Math.floor(h/2));const oe=this.rowHeightService.offset(h);this.container.nativeElement.scrollTop=oe,this.resetNavigationViewport()}scrollTo({row:h,column:oe}){if(us(h))if(this.isVirtual)this.scrollToVirtualRow(h);else{const kt=u_(h,this.table.nativeElement.rows);kt&&(this.container.nativeElement.scrollTop=kt.offsetTop)}if(us(oe))if(oe-=this.lockedLeafColumns.length,this.virtualColumns){const kt=this.columns.leafColumnsToRender;let ti=0;for(let hr=0;hr<oe;hr++)ti+=kt[hr].width||0;this.container.nativeElement.scrollLeft=this.normalizeScrollLeft(ti+(this.lockedLeafColumns.length?0:32*this.groups.length+(this.detailTemplate&&oe>0?32:0)))}else if(0===oe&&this.detailTemplate)this.container.nativeElement.scrollLeft=this.normalizeScrollLeft(0);else{const kt=u_(0,this.table.nativeElement.rows);if(kt){const ti=((ie,Qe)=>Wg(ie,Qe,h=>iu(h,pp)?0:parseInt(h.getAttribute("colSpan"),10)||1))(oe,kt.cells);ti&&(this.container.nativeElement.scrollLeft=this.elementScrollLeft(ti))}}}resetNavigationViewport(){if(!(n.X_&&this.container&&this.navigationService.tableEnabled&&this.navigationService.needsViewport()&&0!==this.data.length))return;const{scrollTop:h,offsetHeight:oe}=this.container.nativeElement,kt=h+oe,ti=this.rowHeightService.index(h),Zo=this.rowHeightService.index(kt),hr=this.rowHeightService.offset(Zo);let Cs=ti,aa=Zo;if(ye(this.detailTemplate)){Cs*=2,aa*=2,this.rowHeightService.offset(ti)+this.rowHeight<h&&Cs++;const ja=this.rowHeightService.height(Zo);this.rowHeightService.isExpanded(Zo)&&!(hr+ja>kt)&&aa++}this.navigationService.setViewport(Cs,aa)}cleanupScroller(){this.scrollerSubscription&&this.scrollerSubscription.unsubscribe(),this.scroller&&this.scroller.destroy()}initResizeService(){this.resizeService.connect((0,o.T)(...this.resizeSensors.map(h=>h.resize)))}syncContainerHeight(){[k_(this.lockedContainer)].filter(ye).map(h=>{h.style.height="";let oe=this.container.nativeElement.offsetHeight;return((ie,Qe)=>this.table.nativeElement.offsetWidth>this.container.nativeElement.clientWidth)()&&(oe-=this.supportService.scrollbarWidth),{el:h,height:oe}}).forEach((ie=>({el:Qe,height:h})=>ie.setStyle(Qe,"height",`${h}px`))(this.renderer))}updateViewportColumns(h){const oe=this.columns.nonLockedLeafColumns.toArray();let{startIdx:kt,endIdx:ti,offset:Zo}=h||this.calculateViewportColumns();const hr=Math.max(0,kt-1),Cs=Math.min(ti+1,oe.length-1);if(hr<kt)for(let $a=kt-1;$a>=hr;$a--)Zo-=oe[$a].width;const aa=oe.slice(hr,Cs+1);if(this.viewportColumnsWidth=aa.reduce(($a,ja)=>$a+ja.width,0),hr>0){const $a=new qa;$a.width=Zo,aa.unshift($a)}this.viewportColumns=new e.n_E,this.viewportColumns.reset(aa),this.columnsStartIdx=hr,this.columnsEndIdx=Cs,this.columnInfo.columnRangeChange.emit({start:hr,end:Cs,offset:Zo}),h||this.updateColumnViewport(kt,ti)}handleColumnScroll(){const oe=this.container.nativeElement.scrollLeft;if(this.scrollLeft!==oe){this.scrollLeft=oe;const kt=this.calculateViewportColumns();this.updateColumnViewport(kt.startIdx,kt.endIdx),(kt.startIdx<this.columnsStartIdx||this.columnsEndIdx<kt.endIdx)&&(Ks(this.columnUpdateFrame),this.columnUpdateFrame=es(()=>{this.ngZone.run(()=>{this.updateViewportColumns(kt),this.changeDetector.markForCheck()})}))}}updateColumnViewport(h,oe){const kt=this.lockedLeafColumns.length,ti=this.nonLockedLeafColumns.toArray(),Zo=kt+h+(this.detailTemplate&&h>0?1:0);let hr=kt+oe+(this.detailTemplate?1:0);for(let Cs=0;Cs<ti.length;Cs++){const aa=ti[Cs];aa.isSpanColumn&&(hr+=aa.childColumns.length)}this.navigationService.setColumnViewport(Zo,hr)}calculateViewportColumns(){const{scrollLeft:h,clientWidth:oe}=this.container.nativeElement,kt=this.columns.nonLockedLeafColumns.toArray(),ti=this.normalizeScrollLeft(h),Zo=ti+oe;let hr,ja,Cs=0,aa=0,$a=0;for(ja=0;ja<kt.length;ja++){const Ll=kt[ja];if(aa+=Ll.width||0,void 0===hr&&aa>ti&&(hr=ja,$a=aa-(Ll.width||0)),aa>=Zo){Cs=ja;break}}return!Cs&&ja>0&&(Cs=kt.length-1),{startIdx:hr,endIdx:Cs,offset:$a}}viewportWidthChange(){return this.viewportColumns.toArray().reduce((oe,kt)=>oe+kt.width,0)!==this.viewportColumnsWidth}normalizeScrollLeft(h){return this.rtl?function vd(ie,Qe,h){let oe=ie;return h<0?oe=-ie:h>0&&(oe=Qe.scrollWidth-Qe.offsetWidth-ie),oe}(h,this.container.nativeElement,this.supportService.rtlScrollLeft):h}elementScrollLeft(h){return this.rtl?this.normalizeScrollLeft(this.container.nativeElement.scrollWidth-h.offsetLeft-h.offsetWidth):h.offsetLeft}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(ig),e.Y36(Hh),e.Y36(Zl),e.Y36(nf),e.Y36(Bf),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(qp),e.Y36(np),e.Y36(rh),e.Y36(ac),e.Y36(Su),e.Y36(Sl),e.Y36(Uo),e.Y36(bf),e.Y36(e.sBO),e.Y36(vh),e.Y36(Rd))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-list"]],viewQuery:function(h,oe){if(1&h&&(e.Gf(nd,7),e.Gf(Ct,5),e.Gf(rn,5),e.Gf(We,7),e.Gf(n.NG,5)),2&h){let kt;e.iGM(kt=e.CRH())&&(oe.container=kt.first),e.iGM(kt=e.CRH())&&(oe.lockedContainer=kt.first),e.iGM(kt=e.CRH())&&(oe.lockedTable=kt.first),e.iGM(kt=e.CRH())&&(oe.table=kt.first),e.iGM(kt=e.CRH())&&(oe.resizeSensors=kt)}},hostVars:3,hostBindings:function(h,oe){2&h&&(e.uIk("role",oe.hostRole),e.ekj("k-grid-container",oe.hostClass))},inputs:{data:"data",groups:"groups",total:"total",rowHeight:"rowHeight",stickyRowHeight:"stickyRowHeight",detailRowHeight:"detailRowHeight",take:"take",skip:"skip",columns:"columns",detailTemplate:"detailTemplate",noRecordsTemplate:"noRecordsTemplate",selectable:"selectable",groupable:"groupable",filterable:"filterable",rowClass:"rowClass",rowSticky:"rowSticky",loading:"loading",trackBy:"trackBy",virtualColumns:"virtualColumns",isVirtual:"isVirtual",cellLoadingTemplate:"cellLoadingTemplate",loadingTemplate:"loadingTemplate",sort:"sort",size:"size"},outputs:{contentScroll:"contentScroll",pageChange:"pageChange",scrollBottom:"scrollBottom"},features:[e._Bn([{provide:ig,useValue:h_}]),e.TTD],decls:13,vars:38,consts:[["class","k-grid-content-locked","role","presentation","tabindex","-1",3,"width","kendoEventsOutsideAngular","scope",4,"ngIf"],[1,"k-grid-content","k-virtual-content",3,"kendoGridResizableContainer","lockedWidth"],["container",""],["role","presentation",1,"k-grid-table-wrap"],["kendoGridTable","","role","presentation",1,"k-grid-table",3,"virtualColumns","size"],["table",""],["kendoGridColGroup","",3,"groups","columns","detailTemplate","sort"],["kendoGridTableBody","","role","rowgroup",3,"skipGroupDecoration","data","groups","showGroupFooters","columns","allColumns","detailTemplate","noRecordsTemplate","lockedColumnsCount","totalColumnsCount","totalColumns","skip","selectable","trackBy","filterable","rowClass","rowSticky","virtualColumns","isLoading","isVirtual","cellLoadingTemplate"],[4,"ngIf"],["role","presentation",1,"k-height-container"],["class","k-width-container","role","presentation",4,"ngIf"],["role","presentation","tabindex","-1",1,"k-grid-content-locked",3,"kendoEventsOutsideAngular","scope"],["lockedContainer",""],["role","presentation","kendoGridTable","",1,"k-grid-table",3,"locked","size"],["lockedTable",""],["kendoGridTableBody","","role","presentation",3,"groups","isLocked","data","noRecordsText","columns","totalColumnsCount","totalColumns","detailTemplate","showGroupFooters","skip","selectable","trackBy","filterable","rowClass","isLoading","isVirtual","cellLoadingTemplate"],["role","presentation",1,"k-width-container"]],template:function(h,oe){1&h&&(e.YNc(0,ct,10,36,"div",0),e.TgZ(1,"div",1,2)(3,"div",3)(4,"table",4,5),e._UZ(6,"colgroup",6)(7,"tbody",7),e.qZA(),e.YNc(8,Qt,1,0,"kendo-resize-sensor",8),e.qZA(),e.YNc(9,gi,1,0,"kendo-resize-sensor",8),e.TgZ(10,"div",9),e._UZ(11,"div"),e.qZA(),e.YNc(12,Do,2,2,"div",10),e.qZA()),2&h&&(e.Q6J("ngIf",oe.isLocked),e.xp6(1),e.Q6J("kendoGridResizableContainer",oe.lockedLeafColumns.length>0)("lockedWidth",oe.lockedWidth+1),e.xp6(3),e.Udp("width",oe.nonLockedWidth,"px"),e.Q6J("virtualColumns",oe.virtualColumns)("size",oe.size),e.xp6(2),e.Q6J("groups",oe.isLocked?e.DdM(37,Po):oe.groups)("columns",oe.nonLockedColumnsToRender)("detailTemplate",oe.detailTemplate)("sort",oe.sort),e.xp6(1),e.Q6J("skipGroupDecoration",oe.isLocked)("data",oe.data)("groups",oe.groups)("showGroupFooters",oe.showFooter)("columns",oe.nonLockedColumnsToRender)("allColumns",oe.nonLockedLeafColumns)("detailTemplate",oe.detailTemplate)("noRecordsTemplate",oe.noRecordsTemplate)("lockedColumnsCount",oe.lockedLeafColumns.length)("totalColumnsCount",oe.leafColumns.length)("totalColumns",oe.columns)("skip",oe.skip)("selectable",oe.selectable)("trackBy",oe.trackBy)("filterable",oe.filterable)("rowClass",oe.rowClass)("rowSticky",oe.rowSticky)("virtualColumns",oe.virtualColumns)("isLoading",oe.loading)("isVirtual",oe.isVirtual)("cellLoadingTemplate",oe.cellLoadingTemplate),e.xp6(1),e.Q6J("ngIf",oe.isLocked),e.xp6(1),e.Q6J("ngIf",oe.isLocked||oe.virtualColumns),e.xp6(2),e.Udp("height",oe.totalHeight,"px"),e.xp6(1),e.Q6J("ngIf",oe.virtualColumns))},dependencies:[dp,Vg,n.NG,X.O5,n.nV,bg,Cg,xg],encapsulation:2}),ie})(),Se=(()=>{class ie{constructor(h){this.columnInfoService=h,this.columns=[],this.groups=[],this.lockedColumnsCount=0,this.logicalRowIndex=0,this.hostClass=!0,this.hostRole="rowgroup"}get footerClass(){return!this.scrollable}get columnsToRender(){return mf(this.columns||[])}logicalColumnIndex(h){const oe=h.leafIndex;return ye(oe)?oe+(ye(this.detailTemplate)?1:0):-1}addStickyStyles(h){const oe=this.columnInfoService.stickyColumnsStyles(h);return{...h.footerStyle,...oe}}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Rd))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["","kendoGridFooter",""]],hostVars:5,hostBindings:function(h,oe){2&h&&(e.uIk("role",oe.hostRole),e.ekj("k-grid-footer",oe.footerClass)("k-table-tfoot",oe.hostClass))},inputs:{columns:"columns",groups:"groups",detailTemplate:"detailTemplate",scrollable:"scrollable",lockedColumnsCount:"lockedColumnsCount",logicalRowIndex:"logicalRowIndex",totalColumns:"totalColumns"},attrs:Or,decls:5,vars:10,consts:[["kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount","totalColumns"],["class","k-table-td k-group-cell","role","presentation",4,"ngFor","ngForOf"],["role","presentation","class","k-table-td k-hierarchy-cell",4,"ngIf"],["kendoGridLogicalCell","","class","k-table-td","role","gridcell","aria-selected","false",3,"logicalRowIndex","logicalColIndex","k-grid-footer-sticky","ngClass","ngStyle",4,"ngFor","ngForOf"],["role","presentation",1,"k-table-td","k-group-cell"],["role","presentation",1,"k-table-td","k-hierarchy-cell"],["kendoGridLogicalCell","","role","gridcell","aria-selected","false",1,"k-table-td",3,"logicalRowIndex","logicalColIndex","ngClass","ngStyle"],[3,"templateContext"]],template:function(h,oe){1&h&&(e.ynx(0),e.TgZ(1,"tr",0),e.YNc(2,hs,1,0,"td",1),e.YNc(3,Zs,1,0,"td",2),e.YNc(4,za,2,12,"td",3),e.qZA(),e.BQk()),2&h&&(e.xp6(1),e.ekj("k-footer-template",!0),e.Q6J("logicalRowIndex",oe.logicalRowIndex)("logicalSlaveRow",oe.lockedColumnsCount>0)("logicalCellsCount",oe.columns.length)("logicalSlaveCellsCount",oe.columns.length-oe.lockedColumnsCount)("totalColumns",oe.totalColumns),e.xp6(1),e.Q6J("ngForOf",oe.groups),e.xp6(1),e.Q6J("ngIf",null==oe.detailTemplate?null:oe.detailTemplate.templateRef),e.xp6(1),e.Q6J("ngForOf",oe.columnsToRender))},dependencies:[ya,X.sg,X.O5,zr,X.mk,X.PC,ua],encapsulation:2}),ie})(),nt=(()=>{class ie{constructor(h){this.ctx=h,this.hostClass=!0}get loadingText(){return this.ctx.localization.get("loading")}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["","kendoGridLoading",""]],hostVars:2,hostBindings:function(h,oe){2&h&&e.ekj("k-loading-mask",oe.hostClass)},inputs:{loadingTemplate:"loadingTemplate"},attrs:cl,decls:2,vars:2,consts:[[4,"ngIf"],[1,"k-loading-text"],[1,"k-loading-image"],[1,"k-loading-color"],[3,"ngTemplateOutlet"]],template:function(h,oe){1&h&&(e.YNc(0,yc,5,1,"ng-container",0),e.YNc(1,ec,1,1,null,0)),2&h&&(e.Q6J("ngIf",!oe.loadingTemplate),e.xp6(1),e.Q6J("ngIf",oe.loadingTemplate))},dependencies:[X.O5,X.tP],encapsulation:2}),ie})(),Un=(()=>{class ie{constructor(h){this.aggregateService=h,this.hostClasses=!0}get isStatusBarTemplate(){return this.statusBarTemplate?"":"none"}ngOnInit(){this.aggregateService.init()}get aggregates(){return this.aggregateService.aggregates}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(If))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-status-bar"]],hostVars:6,hostBindings:function(h,oe){2&h&&(e.Udp("display",oe.isStatusBarTemplate),e.ekj("k-selection-aggregates",oe.hostClasses)("k-grid-selection-aggregates",oe.hostClasses))},inputs:{statusBarTemplate:"statusBarTemplate"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(h,oe){1&h&&e.YNc(0,Hc,1,4,null,0),2&h&&e.Q6J("ngIf",oe.statusBarTemplate)},dependencies:[X.O5,X.tP],encapsulation:2}),ie})(),so=(()=>{class ie extends V.Z1{}return ie.\u0275fac=function(){let Qe;return function(oe){return(Qe||(Qe=e.n5z(ie)))(oe||ie)}}(),ie.\u0275dir=e.lG2({type:ie,selectors:[["kendo-grid-messages-base"]],inputs:{groupPanelEmpty:"groupPanelEmpty",noRecords:"noRecords",pagerLabel:"pagerLabel",pagerFirstPage:"pagerFirstPage",pagerLastPage:"pagerLastPage",pagerPreviousPage:"pagerPreviousPage",pagerNextPage:"pagerNextPage",pagerPage:"pagerPage",pagerItemsPerPage:"pagerItemsPerPage",pagerOf:"pagerOf",pagerItems:"pagerItems",pagerPageNumberInputTitle:"pagerPageNumberInputTitle",selectPage:"selectPage",filter:"filter",filterInputLabel:"filterInputLabel",filterMenuTitle:"filterMenuTitle",filterMenuOperatorsDropDownLabel:"filterMenuOperatorsDropDownLabel",filterMenuLogicDropDownLabel:"filterMenuLogicDropDownLabel",filterCellOperatorLabel:"filterCellOperatorLabel",booleanFilterCellLabel:"booleanFilterCellLabel",filterEqOperator:"filterEqOperator",filterNotEqOperator:"filterNotEqOperator",filterIsNullOperator:"filterIsNullOperator",filterIsNotNullOperator:"filterIsNotNullOperator",filterIsEmptyOperator:"filterIsEmptyOperator",filterIsNotEmptyOperator:"filterIsNotEmptyOperator",filterStartsWithOperator:"filterStartsWithOperator",filterContainsOperator:"filterContainsOperator",filterNotContainsOperator:"filterNotContainsOperator",filterEndsWithOperator:"filterEndsWithOperator",filterGteOperator:"filterGteOperator",filterGtOperator:"filterGtOperator",filterLteOperator:"filterLteOperator",filterLtOperator:"filterLtOperator",filterIsTrue:"filterIsTrue",filterIsFalse:"filterIsFalse",filterBooleanAll:"filterBooleanAll",filterAfterOrEqualOperator:"filterAfterOrEqualOperator",filterAfterOperator:"filterAfterOperator",filterBeforeOperator:"filterBeforeOperator",filterBeforeOrEqualOperator:"filterBeforeOrEqualOperator",filterFilterButton:"filterFilterButton",filterClearButton:"filterClearButton",filterAndLogic:"filterAndLogic",filterOrLogic:"filterOrLogic",loading:"loading",gridLabel:"gridLabel",columnMenu:"columnMenu",setColumnPosition:"setColumnPosition",columns:"columns",lock:"lock",unlock:"unlock",stick:"stick",unstick:"unstick",sortable:"sortable",sortAscending:"sortAscending",sortDescending:"sortDescending",autosizeThisColumn:"autosizeThisColumn",autosizeAllColumns:"autosizeAllColumns",sortedAscending:"sortedAscending",sortedDescending:"sortedDescending",sortedDefault:"sortedDefault",columnsApply:"columnsApply",columnsReset:"columnsReset",detailExpand:"detailExpand",detailCollapse:"detailCollapse",filterDateToday:"filterDateToday",filterDateToggle:"filterDateToggle",filterNumericDecrement:"filterNumericDecrement",filterNumericIncrement:"filterNumericIncrement",selectionCheckboxLabel:"selectionCheckboxLabel",selectAllCheckboxLabel:"selectAllCheckboxLabel",groupCollapse:"groupCollapse",groupExpand:"groupExpand",topToolbarLabel:"topToolbarLabel",bottomToolbarLabel:"bottomToolbarLabel",groupPanelLabel:"groupPanelLabel",dragRowHandleLabel:"dragRowHandleLabel",columnMenuFilterTabTitle:"columnMenuFilterTabTitle",columnMenuGeneralTabTitle:"columnMenuGeneralTabTitle",columnMenuColumnsTabTitle:"columnMenuColumnsTabTitle"},features:[e.qOj]}),ie})(),Vo=(()=>{class ie extends so{constructor(h){super(),this.service=h}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(V.oQ))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridLocalizedMessages",""]],features:[e._Bn([{provide:so,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj]}),ie})();const sa=(ie,Qe)=>ul(ie,ku("k-grid-edit-cell"))&&ul(ie,Lc("kendo-grid"))===Qe;let Ma=(()=>{class ie{constructor(h,oe,kt,ti,Zo,hr,Cs,aa,$a,ja,Ll,Gc,Fc,_u,Vl,Ld,$f,Nu,cf,ju,Zm,Tg,v0,lv,m_,$_,y0,Q_){this.supportService=h,this.selectionService=oe,this.cellSelectionService=kt,this.wrapper=ti,this.groupInfoService=Zo,this.groupsService=hr,this.changeNotification=Cs,this.detailsService=aa,this.editService=$a,this.filterService=ja,this.pdfService=Ll,this.responsiveService=Gc,this.renderer=Fc,this.excelService=_u,this.ngZone=Vl,this.scrollSyncService=Ld,this.domEvents=$f,this.columnResizingService=Nu,this.changeDetectorRef=cf,this.columnReorderService=ju,this.columnInfoService=Zm,this.navigationService=Tg,this.sortService=v0,this.scrollRequestService=lv,this.localization=m_,this.ctx=$_,this.sizingService=y0,this.rowReorderService=Q_,this.scrollable="scrollable",this.selectable=!1,this.trackBy=fg,this.virtualColumns=!1,this.gridData=()=>this.flatData,this.filterable=!1,this.sortable=!1,this.pageable=!1,this.groupable=!1,this.autoSize=!1,this.resizable=!1,this.reorderable=!1,this.columnMenu=!1,this.hideHeader=!1,this.filterChange=new e.vpe,this.pageChange=new e.vpe,this.groupChange=new Yh(this.ngZone),this.sortChange=new e.vpe,this.selectionChange=new e.vpe,this.rowReorder=new e.vpe,this.dataStateChange=new e.vpe,this.groupExpand=new e.vpe,this.groupCollapse=new e.vpe,this.detailExpand=new e.vpe,this.detailCollapse=new e.vpe,this.edit=new e.vpe,this.cancel=new e.vpe,this.save=new e.vpe,this.remove=new e.vpe,this.add=new e.vpe,this.cellClose=new e.vpe,this.cellClick=new Yh(this.ngZone),this.pdfExport=new e.vpe,this.excelExport=new e.vpe,this.columnResize=new Yh(this.ngZone),this.columnReorder=new e.vpe,this.columnVisibilityChange=new e.vpe,this.columnLockedChange=new e.vpe,this.columnStickyChange=new e.vpe,this.scrollBottom=new e.vpe,this.contentScroll=new e.vpe,this.columns=new e.n_E,this.hostClass=!0,this.footer=new e.n_E,this.selectionDirective=!1,this.ariaRootId=`k-${(0,n.M8)()}`,this.showLicenseWatermark=!1,this.columnsContainer=new Ih(()=>this.columnList.filterHierarchy(Qf=>(gr()||(Qf.matchesMedia=this.matchesMedia(Qf)),Qf.isVisible))),this.view=new Bo(()=>new Yn(this.data,this.skip,this.hasGroupFooters)),this.shouldGenerateColumns=!0,this.notifyTimeout=null,this._sort=new Array,this._group=new Array,this._skip=0,this._data=[],this.cachedWindowWidth=0,this._rowSelected=null,this._cellSelected=null,this._rowReorderable=!1,this._navigable=[],this._size="medium",this._loading=!1,this.rtl=!1,this._rowClass=()=>null;const Tv=(0,J.s)(zu);this.showLicenseWatermark=(0,n.Gk)(Tv),this.ctx.grid=this,this.localizationSubscription=this.localization.changes.subscribe(({rtl:Qf})=>{this.rtl=Qf,this.direction=this.rtl?"rtl":"ltr"}),this.groupInfoService.registerColumnsContainer(()=>this.columnList),this.columnInfoService.init(this.columnsContainer,()=>this.columnList),this.columnVisibilityChangeSubscription=this.columnInfoService.visibilityChange.subscribe(Qf=>{this.columnVisibilityChange.emit(new $g(Qf))}),this.columnLockedChangeSubscription=this.columnInfoService.lockedChange.subscribe(Qf=>{this.columnLockedChange.emit(new Om(Qf))}),this.columnStickyChangeSubscription=this.columnInfoService.stickyChange.subscribe(Qf=>{this.columnStickyChange.emit(new pg(Qf))}),this.groupExpandCollapseSubscription=((ie,Qe,h,oe)=>ie.changes.pipe((0,w.h)(({group:kt})=>ye(kt))).subscribe(kt=>kt.expand?Qe.emit(oe(kt)):h.emit(oe(kt))))(hr,this.groupExpand,this.groupCollapse,({group:Qf,groupIndex:X_,parentGroup:Ec})=>({group:Qf,groupIndex:X_,parentGroup:Ec})),this.detailsServiceSubscription=((ie,Qe,h,oe)=>ie.changes.pipe((0,w.h)(({dataItem:kt})=>ye(kt))).subscribe(kt=>kt.expand?Qe.emit(kt):h.emit(kt)))(aa,this.detailExpand,this.detailCollapse),this.filterSubscription=this.filterService.changes.subscribe(Qf=>{this.filterChange.emit(Qf)}),this.sortSubscription=this.sortService.changes.subscribe(Qf=>{this.sortChange.emit(Qf)}),this.attachStateChangesEmitter(),this.attachEditHandlers(),this.attachDomEventHandlers(),this.pdfSubscription=this.pdfService.exportClick.subscribe(this.emitPDFExportEvent.bind(this)),this.excelSubscription=this.excelService.exportClick.subscribe(this.saveAsExcel.bind(this)),this.columnsContainerChange(),this.handleColumnResize(),this.columnList=new Ql(this.columns),this.columnReorderSubscription=this.columnReorderService.changes.subscribe(this.reorder.bind(this)),this.columnRangeChangeSubscription=this.columnInfoService.columnRangeChange.subscribe(this.onColumnRangeChange.bind(this))}set data(h){this._data=h,this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=null),this.rowReorderable&&this.ngZone.runOutsideAngular(()=>{this.notifyTimeout=setTimeout(()=>{this.notifyReorderContainers()},500)})}get data(){return this._data}get hintText(){return this.rowReorderService.getDefaultHintText(this.columnList,this.flatData)}get skip(){return this._skip}set skip(h){"number"==typeof h&&h>=0&&(this._skip=this.rowReorderService.skip=h)}set sort(h){be(h)&&(this._sort=h)}get sort(){return this._sort}set size(h){this._size=h,"none"===h&&this.wrapper.nativeElement.classList.remove("k-grid-sm","k-grid-md"),this.sizingService.changes.next(this.size)}get size(){return this._size}set group(h){be(h)&&(this._group=h)}get group(){return this._group}get showStatusBar(){return!!this.selectable}get showTopToolbar(){return this.toolbarTemplate&&["top","both"].indexOf(this.toolbarTemplate.position)>-1}get showBottomToolbar(){return this.toolbarTemplate&&["bottom","both"].indexOf(this.toolbarTemplate.position)>-1}get isLocked(){return this.lockedLeafColumns.length>0}get showTopPager(){return!this.isVirtual&&!1!==this.pageable&&["top","both"].indexOf(this.pageable.position)>-1}get showBottomPager(){return!this.isVirtual&&!1!==this.pageable&&"top"!==this.pageable.position}get hasPager(){return this.showTopPager||this.showBottomPager}get showGroupPanel(){return this.groupable&&!1!==this.groupable.enabled}get groupableEmptyText(){return this.groupable.emptyText}get marqueeSelection(){return this.selectionService.enableMarquee||this.cellSelectionService.enableMarquee}set rowReorderable(h){this._rowReorderable=h,h?this.rowReorderSubscription=this.rowReorderService.rowReorder.subscribe(oe=>{this.ngZone.run(()=>{this.rowReorder.emit(oe)})}):this.rowReorderSubscription?.unsubscribe()}get rowReorderable(){return this._rowReorderable}set navigable(h){this._navigable="boolean"!=typeof h?h:h?["table","pager","toolbar"]:[]}get navigable(){return this._navigable}set navigatable(h){this.navigable=h}get navigatable(){return this.navigable}set rowClass(h){if((0,e.X6Q)()&&"function"!=typeof h)throw new Error(`rowClass must be a function, but received ${JSON.stringify(h)}.`);this._rowClass=h}get rowClass(){return this._rowClass}set rowSticky(h){if((0,e.X6Q)()&&ye(h)&&"function"!=typeof h)throw new Error(`rowSticky must be a function, but received ${JSON.stringify(h)}.`);ye(h)&&(this._rowSticky=h)}get rowSticky(){return this._rowSticky}set rowSelected(h){if((0,e.X6Q)()&&"function"!=typeof h)throw new Error(`rowSelected must be a function, but received ${JSON.stringify(h)}.`);this._rowSelected=h}get rowSelected(){return this._rowSelected}set cellSelected(h){if((0,e.X6Q)()&&"function"!=typeof h)throw new Error(`cellSelected must be a function, but received ${JSON.stringify(h)}.`);this._cellSelected=h}get cellSelected(){return this._cellSelected}get activeCell(){return this.navigationService.activeCell}get activeRow(){return this.navigationService.activeRow}set loading(h){this._loading=h,this.rowReorderable&&this.notifyReorderContainers()}get loading(){return this._loading}get dir(){return this.direction}get sizeSmallClass(){return"small"===this.size}get sizeMediumClass(){return"medium"===this.size||!this.size}get lockedClasses(){return this.lockedLeafColumns.length>0}get virtualClasses(){return this.isVirtual}get noScrollbarClass(){return 0===this.scrollbarWidth}get detailTemplate(){return this._customDetailTemplate?this._customDetailTemplate:this.detailTemplateChildren?this.detailTemplateChildren.first:void 0}set detailTemplate(h){this._customDetailTemplate=h}get cellLoadingTemplate(){return this._cellLoadingTemplate?this._customDetailTemplate:this.cellLoadingTemplateChildren?this.cellLoadingTemplateChildren.first:void 0}set cellLoadingTemplate(h){this._cellLoadingTemplate=h}get loadingTemplate(){return this._loadingTemplate?this._loadingTemplate:this.loadingTemplateChildren?this.loadingTemplateChildren.first:void 0}set loadingTemplate(h){this._loadingTemplate=h}get statusBarTemplate(){return this._statusBarTemplate?this._statusBarTemplate:this.statusBarTemplateChildren?this.statusBarTemplateChildren.first:void 0}set statusBarTemplate(h){this._statusBarTemplate=h}get noRecordsTemplate(){return this._customNoRecordsTemplate?this._customNoRecordsTemplate:this.noRecordsTemplateChildren?this.noRecordsTemplateChildren.first:void 0}set noRecordsTemplate(h){this._customNoRecordsTemplate=h}get pagerTemplate(){return this._customPagerTemplate?this._customPagerTemplate:this.pagerTemplateChildren?this.pagerTemplateChildren.first:void 0}set pagerTemplate(h){this._customPagerTemplate=h}get toolbarTemplate(){return this._customToolbarTemplate?this._customToolbarTemplate:this.toolbarTemplateChildren?this.toolbarTemplateChildren.first:void 0}set toolbarTemplate(h){this._customToolbarTemplate=h}get scrollbarWidth(){return this.supportService.scrollbarWidth}get headerPadding(){if(gr())return"";const h=Math.max(0,this.scrollbarWidth)+"px";return`0 ${this.rtl?0:h} 0 ${this.rtl?h:0}`}get hasGroupFooters(){return this.columnsContainer.hasGroupFooter}get showFooter(){return this.columnsContainer.hasFooter}get showGroupFooters(){return this.groupable&&this.groupable.showFooter}get ariaRowCount(){return this.totalColumnLevels+1+this.view.total+(yp(this.filterable)?1:0)}get ariaColCount(){return this.columnsContainer.leafColumnsToRender.length}get navigation(){return this.navigationService}get isVirtual(){return"virtual"===this.scrollable}get isScrollable(){return"none"!==this.scrollable}get visibleColumns(){return this.columnsContainer.allColumns}get lockedColumns(){return this.columnsContainer.lockedColumns}get nonLockedColumns(){return this.columnsContainer.nonLockedColumns}get lockedLeafColumns(){return this.columnsContainer.lockedLeafColumns}get stickyColumns(){return this.columns.filter(h=>h.sticky)}get nonLockedLeafColumns(){return this.columnsContainer.nonLockedLeafColumns}get leafColumns(){return this.columnsContainer.leafColumns}get totalColumnLevels(){return this.columnsContainer.totalLevels}get headerColumns(){return this.virtualColumns&&!this.pdfService.exporting?this.viewportColumns:this.nonLockedColumns}get headerLeafColumns(){return this.virtualColumns&&!this.pdfService.exporting?this.leafViewportColumns:this.nonLockedLeafColumns}get lockedWidth(){const h=32*this.group.length;return Bu(this.lockedLeafColumns.toArray()).reduce((oe,kt)=>oe+(kt.width||0),h)}get nonLockedWidth(){if(!this.rtl&&this.lockedLeafColumns.length||this.virtualColumns)return this.virtualColumns?this.leafViewportColumns.reduce((h,oe)=>h+(oe.width||0),0):this.columnsContainer.unlockedWidth}get selectableSettings(){if(this.selectionService)return this.selectionService.options}get columnMenuTemplate(){const h=this.columnMenuTemplates.first;return h?h.templateRef:null}get totalCount(){return this.isVirtual||!ye(this.pageSize)?this.view.total:this.pageSize}getDefaultSelectors(h){return this.rowReorderService.defaultSelectors[h]}getHintSettings(h){return this.rowReorderService[h]}expandRow(h){this.toggleDetailRowLegacy(h,!0)}collapseRow(h){this.toggleDetailRowLegacy(h,!1)}expandGroup(h){this.toggleGroupRowLegacy(h,!0)}collapseGroup(h){this.toggleGroupRowLegacy(h,!1)}resetGroupsState(){this.groupsService.reset()}expandGroupChildren(h){this.groupsService.expandChildren(h)}onDataChange(){this.autoGenerateColumns(),this.changeNotification.notify(),this.pdfService.dataChanged.emit(),ye(this.defaultSelection)&&this.defaultSelection.reset(),this.initSelectionService(),this.updateNavigationMetadata()}ngOnChanges(h){(0,n.ln)("data",h)&&this.onDataChange(),this.lockedLeafColumns.length&&(0,n.aG)(["pageSize","skip","sort","group"],h)&&this.changeNotification.notify(),(0,n.aG)(["pageSize","scrollable","virtualColumns"],h)&&this.updateNavigationMetadata(),(0,n.ln)("virtualColumns",h)&&(this.viewportColumns=this.leafViewportColumns=null),(0,n.ln)("height",h,!1)&&this.renderer.setStyle(this.wrapper.nativeElement,"height",`${this.height}px`),(0,n.ln)("filterable",h)&&this.lockedColumns.length&&this.syncHeaderHeight(this.ngZone.onStable.asObservable().pipe((0,f.q)(1))),(0,n.aG)(["columnMenu","sortable","filterable"],h,!1)&&(this.columnMenuOptions=this.columnMenu&&Object.assign({filter:!!this.filterable,sort:!!this.sortable},this.columnMenu)),(0,n.ln)("scrollable",h)&&this.isScrollable&&this.ngZone.onStable.pipe((0,f.q)(1)).subscribe(()=>this.attachScrollSync()),(0,n.ln)("selectable",h)&&this.shouldResetSelection(h.selectable)&&(this.defaultSelection?this.defaultSelection.reset():this.selectionDirective&&this.selectionDirective.reset()),(0,n.ln)("groupable",h,!0)&&(this.groupable=h.groupable.currentValue),(0,n.ln)("navigable",h,!0)&&(this.navigationService.enabled?this.navigationService.setActiveSections(this.navigable):this.navigable.length&&this.navigationService.init(this.navigationMetadata(),this.navigable))}ngAfterViewInit(){this.attachScrollSync(),this.attachElementEventHandlers(),this.updateNavigationMetadata(),this.applyAutoSize()}ngAfterContentChecked(){this.columnsContainer.refresh(),this.verifySettings(),this.initSelectionService()}ngAfterContentInit(){this.shouldGenerateColumns=!this.columns.length,this.autoGenerateColumns(),this.columnList=new Ql(this.columns),this.columnsChangeSubscription=this.columns.changes.subscribe(()=>this.verifySettings())}ngOnInit(){this.navigable.length&&this.navigationService.init(this.navigationMetadata(),this.navigable)}ngOnDestroy(){this.selectionSubscription&&this.selectionSubscription.unsubscribe(),this.stateChangeSubscription&&this.stateChangeSubscription.unsubscribe(),this.groupExpandCollapseSubscription&&this.groupExpandCollapseSubscription.unsubscribe(),this.detailsServiceSubscription&&this.detailsServiceSubscription.unsubscribe(),this.editServiceSubscription&&this.editServiceSubscription.unsubscribe(),this.pdfSubscription&&this.pdfSubscription.unsubscribe(),this.filterSubscription&&this.filterSubscription.unsubscribe(),this.sortSubscription&&this.sortSubscription.unsubscribe(),this.columnsChangeSubscription&&this.columnsChangeSubscription.unsubscribe(),this.excelSubscription&&this.excelSubscription.unsubscribe(),this.columnsContainerChangeSubscription&&this.columnsContainerChangeSubscription.unsubscribe(),this.scrollSyncService&&this.scrollSyncService.destroy(),this.detachElementEventHandlers&&this.detachElementEventHandlers(),this.defaultSelection&&this.defaultSelection.destroy(),this.cellClickSubscription&&this.cellClickSubscription.unsubscribe(),this.footerChangeSubscription&&this.footerChangeSubscription.unsubscribe(),this.ngZone=null,this.columnResizingSubscription&&this.columnResizingSubscription.unsubscribe(),this.columnReorderSubscription&&this.columnReorderSubscription.unsubscribe(),this.localizationSubscription&&this.localizationSubscription.unsubscribe(),this.columnVisibilityChangeSubscription&&this.columnVisibilityChangeSubscription.unsubscribe(),this.columnLockedChangeSubscription&&this.columnLockedChangeSubscription.unsubscribe(),this.columnStickyChangeSubscription&&this.columnStickyChangeSubscription.unsubscribe(),this.focusElementSubscription&&this.focusElementSubscription.unsubscribe(),this.rowReorderSubscription&&this.rowReorderSubscription.unsubscribe(),this.columnRangeChangeSubscription.unsubscribe()}attachScrollSync(){gr()||(this.header&&this.scrollSyncService.registerEmitter(this.header.nativeElement,"header"),this.footer&&(this.footerChangeSubscription=_o(this.footer).subscribe(h=>h.map(oe=>oe.nativeElement).filter(ye).forEach(oe=>{this.scrollSyncService.registerEmitter(oe,"footer"),oe.scrollLeft=this.wrapper.nativeElement.querySelector(".k-grid-content")?.scrollLeft}))))}get ariaLabel(){return this.localization.get("gridLabel")}messageFor(h){return this.localization.get(h)}editRow(h,oe,kt){if(this.editService.editRow(h,oe),ye(kt)&&kt.skipFocus)return;const ti=`tr[data-kendo-grid-item-index="${h}"]`,Zo=kt&&kt.columnIndex,hr=isNaN(Zo)?ti:`${ti} td[data-kendo-grid-column-index="${Zo}"]`;this.focusEditElement(hr)}closeRow(h){this.editService.close(h)}addRow(h){if(!(h instanceof me.cw)){const kt=Object.keys(h).reduce((ie=>(Qe,h)=>(Qe[h]=new me.NI(ie[h]),Qe))(h),{});h=new me.cw(kt)}this.editService.addRow(h),this.focusEditElement(".k-grid-add-row")}editCell(h,oe,kt){const ti=this.columnInstance(oe);this.editService.editCell(h,ti,kt),this.focusEditElement(".k-grid-edit-cell")}closeCell(){return!this.editService.closeCell()}cancelCell(){this.editService.cancelCell()}isEditing(){return this.editService.isEditing()}isEditingCell(){return this.editService.isEditingCell()}saveAsPDF(){this.pdfService.save(this)}drawPDF(){const h=(()=>{let ie,Qe;const h=new Promise((oe,kt)=>{ie=ti=>(oe(ti),h),Qe=ti=>(kt(ti),h)});return h.resolve=ie,h.reject=Qe,h})();return this.pdfService.draw(this,h),h}saveAsExcel(){this.excelService.save(this)}autoFitColumn(h){this.columnResizingService.autoFit(h)}autoFitColumns(h=this.columns){let oe;oe=h instanceof e.n_E?h.toArray():h,this.columnResizingService.autoFit(...oe)}notifyPageChange(h,oe){"list"===h&&!this.isVirtual||this.pageChange.emit(oe)}notifyScrollBottom(){"none"!==this.scrollable&&(0,n.g$)(this.scrollBottom)&&this.ngZone.run(()=>this.scrollBottom.emit({sender:this}))}focusEditElement(h){this.focusElementSubscription&&this.focusElementSubscription.unsubscribe(),this.ngZone.runOutsideAngular(()=>{this.focusElementSubscription=this.ngZone.onStable.asObservable().pipe((0,f.q)(1)).subscribe(()=>{const oe=this.wrapper.nativeElement;!this.setEditFocus(oe.querySelector(h))&&this.isLocked&&this.setEditFocus(oe.querySelector(`.k-grid-content ${h}`)),this.focusElementSubscription=null})})}focus(){return this.assertNavigable(),this.navigationService.focusCell()}focusCell(h,oe){return this.assertNavigable(),this.navigationService.focusCell(h,oe)}focusNextCell(h=!0){return this.assertNavigable(),this.navigationService.focusNextCell(h)}focusPrevCell(h=!0){return this.assertNavigable(),this.navigationService.focusPrevCell(h)}scrollTo(h){this.scrollRequestService.scrollTo(h)}reorderColumn(h,oe,kt={before:!1}){let Zo=su(this.allColumnsForLevel(h.level))[oe];!Zo||Zo.isLocked&&!h.isLocked&&1===this.columnsContainer.nonLockedColumns.length||(Au(Zo)&&!kt.before&&(Zo=Zo.childColumns.last),this.reorder({before:kt.before,source:h,target:Zo}))}set isDetailExpanded(h){this.detailsService.userCallback=h}get isDetailExpanded(){return this.detailsService.userCallback}set isGroupExpanded(h){this.groupsService.userCallback=h,this.groupable=ye(h)}get isGroupExpanded(){return this.groupsService.userCallback}handleReorderEvents(h,oe){this.rowReorderService[oe](h)}reorder({target:h,source:oe,before:kt,changeContainer:ti}){this.ngZone.run(()=>{const Zo=su(this.allColumnsForLevel(oe.level));let hr=Zo.indexOf(h);h.parent&&h.parent.isSpanColumn&&(hr=Zo.indexOf(h.parent),kt&&(h=h.parent));const Cs=Zo.indexOf(oe);ti&&(kt&&0<hr&&Cs<hr?hr--:!kt&&Cs>hr&&hr++);const aa=new C_({column:oe,oldIndex:Cs,newIndex:hr});this.columnReorder.emit(aa),!aa.isDefaultPrevented()&&(ti&&this.columnLockedChange.emit(new Om([oe])),this.updateColumnIndices({columnsForLevel:Zo,source:oe,target:h,before:kt}),oe.locked!==h.locked&&(oe.locked=h.locked),this.columnsContainer.refresh(),this.changeDetectorRef.markForCheck())})}updateColumnIndices({columnsForLevel:h,source:oe,target:kt,before:ti}){const Zo=ru(h),hr=Zo.indexOf(oe);let Cs=0,aa=0,$a=1;oe.isSpanColumn&&($a+=oe.childColumns.length);let ja=0;for(;ja<Zo.length;){const Ll=Zo[ja];if(Ll===kt)Cs=ti?aa:aa+1,aa=ti?aa+$a:aa,Ll.orderIndex=aa,Cs===aa+1&&(aa+=$a);else{if(Ll===oe){ja+=$a;continue}Ll.orderIndex=aa}aa++,ja++}for(ja=hr;ja<hr+$a;ja++)Zo[ja].orderIndex=Cs++;this.updateIndicesForLevel(oe.level+1)}updateIndicesForLevel(h){const oe=this.allColumnsForLevel(h-1),kt=[];su(oe).forEach(ti=>{ti.isColumnGroup&&kt.push(...ti.childrenArray.sort((Zo,hr)=>Zo.orderIndex-hr.orderIndex))}),ru(kt).map((ti,Zo)=>ti.orderIndex=Zo),h<this.columnList.totalColumnLevels()&&this.updateIndicesForLevel(h+1)}allColumnsForLevel(h){return this.columnList.toArray().filter(oe=>oe.level===h)}initSelectionService(){if(!this.selectable)return this.selectionService.ngOnDestroy(),void this.cellSelectionService.ngOnDestroy();!this.selectionDirective&&!ye(this.defaultSelection)&&(this.defaultSelection=new ea(this.ctx,this.changeDetectorRef));const h=this.selectable.cell,oe=h?this.cellSelectionService:this.selectionService,kt=h?this.selectionService:this.cellSelectionService;kt.active&&(kt.ngOnDestroy(),oe.addSubscriptions(),kt.active=!1),oe.active=!0,oe.init({cellSelected:h?this.cellSelected:void 0,rowSelected:h?void 0:this.rowSelected,selectable:this.selectable,view:this.view,columns:h?this.columnList.toArray():void 0}),!this.selectionDirective&&!this.selectableSettings.enabled&&this.defaultSelection.reset(),this.selectionSubscription&&this.selectionSubscription.unsubscribe(),this.selectionSubscription=h?this.cellSelectionService.changes.subscribe(ti=>{this.ngZone.run(()=>this.selectionChange.emit(ti))}):this.selectionService.changes.subscribe(ti=>{this.ngZone.run(()=>this.selectionChange.emit(ti))})}setEditFocus(h){if(h)return this.navigationService.tryFocus(h)}columnInstance(h){let oe;if(oe="number"==typeof h?this.columnsContainer.lockedLeafColumns.toArray().concat(this.columnsContainer.nonLockedLeafColumns.toArray())[h]:"string"==typeof h?this.columnList.filter(kt=>kt.field===h)[0]:h,!oe&&(0,e.X6Q)())throw new Error(`Invalid column ${h}`);return oe}verifySettings(){if((0,e.X6Q)()){const h=this.lockedLeafColumns.length||this.columnMenu&&this.columnMenu.lock,oe=this.stickyColumns.length||this.columnMenu&&this.columnMenu.stick;if(h&&this.detailTemplate)throw new Error("Having both detail template and locked columns is not supported.");if(oe&&this.detailTemplate)throw new Error("Having both detail template and sticky columns is not supported.");if(this.lockedLeafColumns.length&&!this.nonLockedLeafColumns.length)throw new Error("There should be at least one non-locked column");if((h||this.virtualColumns)&&Bu(this.columnList.toArray()).filter(kt=>!kt.width&&!$u(kt)).length)throw new Error((h?"Locked":"Virtual")+" columns feature requires all columns to have set width.");if(h&&!this.isScrollable)throw new Error("Locked columns are only supported when scrolling is enabled.");if(this.columnList.filter($u).filter(kt=>!kt.hasChildren).length)throw new Error("ColumnGroupComponent should contain ColumnComponent or CommandColumnComponent.");if(this.columnList.filter(kt=>kt.locked&&kt.parent&&!kt.parent.isLocked).length)throw new Error("Locked child columns require their parent columns to be locked.");if((this.rowHeight||this.detailRowHeight)&&!this.isVirtual)throw new Error("Row height and detail row height settings require virtual scrolling mode to be enabled.");if(oe&&Bu(this.columnList.toArray()).filter(kt=>!kt.width&&!$u(kt)).length)throw new Error("Sticky columns feature requires all columns to have set width.");if(oe&&!this.isScrollable)throw new Error("Sticky columns are only supported when scrolling is enabled.");if(oe&&this.virtualColumns)throw new Error("Having both sticky columns and column virtualization is not supported.");if(this.rowSticky&&"virtual"===this.scrollable)throw new Error('Having both sticky rows and row virtualization (scrollable="virtual") is not supported.');if(this.rowSticky&&this.groupable)throw new Error("Having both sticky rows and grouping is not supported.");(ie=>{Bu(ie.toArray()).filter(Wh).filter(({field:Qe})=>!(ie=>!ei(ie)&&kh.test(ie)&&"."!==ie[0]&&"."!==ie[ie.length-1])(Qe)).forEach(({field:Qe})=>console.warn(`\n                Grid column field name '${Qe}' does not look like a valid JavaScript identifier.\n                Identifiers can contain only alphanumeric characters (including "$" or "_"), and may not start with a digit.\n                Please use only valid identifier names to ensure error-free operation.\n            `))})(this.columnList)}}autoGenerateColumns(){this.shouldGenerateColumns&&!this.columns.length&&this.view.length&&this.columns.reset(Object.keys(this.view.at(0)).map(h=>{const oe=new Df;return oe.field=h,oe}))}attachStateChangesEmitter(){this.stateChangeSubscription=(0,o.T)(this.pageChange.pipe((0,k.U)(h=>({filter:this.filter,group:this.group,skip:h.skip,sort:this.sort,take:h.take}))),this.sortChange.pipe((0,k.U)(h=>({filter:this.filter,group:this.group,skip:this.skip,sort:h,take:this.pageSize}))),this.groupChange.pipe((0,k.U)(h=>({filter:this.filter,group:h,skip:this.skip,sort:this.sort,take:this.pageSize}))),this.filterChange.pipe((0,k.U)(h=>({filter:h,group:this.group,skip:0,sort:this.sort,take:this.pageSize})))).subscribe(h=>{this.closeCell(),this.cancelCell(),this.dataStateChange.emit(h)})}attachEditHandlers(){this.editService&&(this.editServiceSubscription=this.editService.changes.subscribe(this.emitCRUDEvent.bind(this)))}emitCRUDEvent(h){const{action:oe,rowIndex:kt,formGroup:ti}=h;let Zo=this.view.at(kt-this.skip);switch("add"!==oe&&!Zo&&(Zo=ti.value),this.closeCell(),Object.assign(h,{dataItem:Zo,sender:this}),oe){case"add":this.add.emit(h);break;case"cancel":this.cancel.emit(h);break;case"edit":this.edit.emit(h);break;case"remove":this.remove.emit(h);break;case"save":this.save.emit(h);break;case"cellClose":this.cellClose.emit(h)}}attachDomEventHandlers(){this.cellClickSubscription=this.domEvents.cellClick.subscribe(h=>{this.cellClick.emit(Object.assign({sender:this},h))})}attachElementEventHandlers(){if(gr())return;const h=this.wrapper.nativeElement,oe=this.ariaRoot.nativeElement;this.ngZone.runOutsideAngular(()=>{const kt=this.resizeCheck.bind(this),ti=this.renderer.listen("window","resize",kt),Zo=this.renderer.listen("window","orientationchange",kt),hr=this.renderer.listen("document","click",Fc=>{const _u=document.activeElement;this.editService.shouldCloseCell()&&!ul(Fc.target,ku("k-animation-container k-grid-ignore-click"))&&(!_u||!ul(_u,ku("k-animation-container"))&&!sa(_u,this.wrapper.nativeElement))&&this.editService.closeCell(Fc)}),Cs=this.renderer.listen("window","blur",Fc=>{const _u=document.activeElement;_u&&!(Lc("input")(_u)&&"file"===_u.type&&sa(_u,this.wrapper.nativeElement))&&this.editService.closeCell(Fc),this.domEvents.windowBlur.emit(Fc)}),aa=this.renderer.listen(h,"click",Fc=>{this.domEvents.click.emit(Fc)}),$a=this.renderer.listen(h,"keydown",Fc=>{this.domEvents.keydown.emit(Fc)});let ja=!1;const Ll=this.renderer.listen(oe,"focusin",Fc=>{this.domEvents.focus.emit(Fc),ja||(this.domEvents.focusIn.emit(Fc),ja=!0)}),Gc=this.renderer.listen(oe,"focusout",Fc=>{const _u=Fc.relatedTarget||document.activeElement;!ul(_u,Ld=>Ld===oe)&&(this.domEvents.focusOut.emit(Fc),ja=!1)});this.detachElementEventHandlers=()=>{ti(),Zo(),hr(),Cs(),aa(),$a(),Ll(),Gc()}})}matchesMedia(h){return this.responsiveService.matchesMedia(h.media)}resizeCheck(){if(window.innerWidth!==this.cachedWindowWidth){this.cachedWindowWidth=window.innerWidth;let h=!1;this.columnList.filterHierarchy(oe=>{const kt=this.matchesMedia(oe);return oe.matchesMedia!==kt&&(h=!0,oe.matchesMedia=kt),oe.isVisible}),h&&this.ngZone.run(()=>{this.changeDetectorRef.markForCheck()})}}emitPDFExportEvent(){const h=new vp;this.pdfExport.emit(h),h.isDefaultPrevented()||this.saveAsPDF()}syncHeaderHeight(h){return h.pipe((0,w.h)(()=>ye(this.lockedHeader))).subscribe(()=>zl(this.lockedHeader.nativeElement.children[0],this.header.nativeElement.children[0]))}columnsContainerChange(){this.columnsContainerChangeSubscription=this.syncHeaderHeight(this.columnsContainer.changes.pipe((0,w.h)(()=>this.lockedColumns.length>0),(0,x.w)(()=>this.ngZone.onStable.asObservable().pipe((0,f.q)(1)))))}handleColumnResize(){const h=this.columnResizingService.changes;this.columnResizingSubscription=h.pipe((0,I.b)(oe=>{"start"===oe.type?this.renderer.addClass(this.wrapper.nativeElement,"k-grid-column-resizing"):"end"===oe.type&&this.renderer.removeClass(this.wrapper.nativeElement,"k-grid-column-resizing")}),(0,w.h)(oe=>"start"===oe.type),(0,x.w)(()=>h.pipe((0,g.R)(h.pipe((0,w.h)(oe=>"triggerAutoFit"===oe.type))),(0,w.h)(oe=>"end"===oe.type)))).subscribe(this.notifyResize.bind(this))}notifyResize(h){const oe=h.resizedColumns.filter(kt=>st(kt.column.resizable)&&!kt.column.isColumnGroup).map(kt=>({column:kt.column,newWidth:kt.column.width,oldWidth:kt.oldWidth}));this.columnResize.emit(oe)}assertNavigable(){if((0,e.X6Q)()&&!this.navigationService.enabled)throw new Error("The Grid should be configured as navigable to control focus")}navigationMetadata(){const h=this.isVirtual,kt=h?this.view.total:this.pageSize,ti=this.editService.hasNewItem?1:0,Zo=yp(this.filterable)?1:0;return new Wf(kt,this.totalColumnLevels+1+Zo+ti,h,this.hasPager,ye(this.detailTemplate),this.wrapper,this.virtualColumns,this.columnsContainer)}updateNavigationMetadata(){this.navigationService.metadata=this.navigationMetadata()}applyAutoSize(){const h=this.columns.filter(oe=>this.autoSize?!1!==oe.autoSize:oe.autoSize);h.length>0&&this.ngZone.onStable.pipe((0,f.q)(1)).subscribe(oe=>this.autoFitColumns(h))}onColumnRangeChange(h){const oe=this.viewportColumns=[],kt=this.columnsContainer.nonLockedLeafColumns.toArray().slice(h.start,h.end+1);for(let ti=0;ti<kt.length;ti++){let Zo=kt[ti];for(;Zo.parent;)Zo=Zo.parent;const hr=[Zo];for(;hr.length;)Zo=hr.shift(),oe.push(Zo),Zo.isColumnGroup&&hr.unshift(...Zo.childrenArray);const Cs=oe[oe.length-1];for(Zo=kt[ti];Zo!==Cs&&ti<kt.length;)ti++,Zo=kt[ti]}if(h.start>0){const ti=kt[0];let Zo=h.offset,hr=oe[0],Cs=0;for(;hr!==ti;)Zo-=hr.isColumnGroup?0:hr.width,Cs++,hr=oe[Cs];if(Zo>0){const aa=this.columnsContainer.totalLevels;let $a;for(let ja=0;ja<=aa;ja++){const Ll=ja<aa?new jh($a):new qa($a);$a=Ll,Ll.title="\xa0",Ll.width=Zo,oe.unshift(Ll)}}}this.leafViewportColumns=oe.filter(ti=>!ti.isColumnGroup)}toggleDetailRowLegacy(h,oe){const kt="function"==typeof this.isDetailExpanded;if((0,e.X6Q)()&&kt)throw new Error("The expandRow and collapseRow methods should not be called when using the kendoGridDetailsExpandBy directive or the isDetailExpanded callback. These methods are provided only for backwards compatibility with legacy versions.");!(0,e.X6Q)()&&kt||this.detailsService.isExpanded(h,null)!==oe&&this.detailsService.toggleRow(h,null)}toggleGroupRowLegacy(h,oe){const kt="function"==typeof this.isGroupExpanded;if((0,e.X6Q)()&&kt)throw new Error("The expandGroup and collapseGroup methods should not be called when using the kendoGridExpandGroupBy directive or the isGroupExpanded callback. These methods are provided only for backwards compatibility with legacy versions.");!(0,e.X6Q)()&&kt||this.groupsService.isExpanded({groupIndex:h})!==oe&&this.groupsService.toggleRow({index:h})}shouldResetSelection(h){const oe=h.previousValue;if(!oe)return!1;const kt=h.currentValue;return!kt||!1===kt.enabled||oe.cell!==kt.cell}notifyReorderContainers(){this.dragTargetContainer?.notify(),this.dropTargetContainer?.notify()}get flatData(){return be(this.data)?this.data:this.data.data}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(ac),e.Y36(eu),e.Y36(lh),e.Y36(e.SBq),e.Y36(Pl),e.Y36(Bf),e.Y36(Zl),e.Y36(Hh),e.Y36(rh),e.Y36(Xc),e.Y36(vh),e.Y36(Vf),e.Y36(e.Qsj),e.Y36(Fp),e.Y36(e.R0b),e.Y36(qp),e.Y36(ml),e.Y36(bf),e.Y36(e.sBO),e.Y36(Up),e.Y36(Rd),e.Y36(Su),e.Y36(nm),e.Y36(Sl),e.Y36(V.oQ),e.Y36(Uo),e.Y36(Zh),e.Y36(Sm))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid"]],contentQueries:function(h,oe,kt){if(1&h&&(e.Suo(kt,qa,4),e.Suo(kt,dh,4),e.Suo(kt,op,4),e.Suo(kt,rp,4),e.Suo(kt,Cp,4),e.Suo(kt,kc,4),e.Suo(kt,Tc,4),e.Suo(kt,Bp,4),e.Suo(kt,ep,4)),2&h){let ti;e.iGM(ti=e.CRH())&&(oe.columns=ti),e.iGM(ti=e.CRH())&&(oe.detailTemplateChildren=ti),e.iGM(ti=e.CRH())&&(oe.cellLoadingTemplateChildren=ti),e.iGM(ti=e.CRH())&&(oe.loadingTemplateChildren=ti),e.iGM(ti=e.CRH())&&(oe.statusBarTemplateChildren=ti),e.iGM(ti=e.CRH())&&(oe.noRecordsTemplateChildren=ti),e.iGM(ti=e.CRH())&&(oe.pagerTemplateChildren=ti),e.iGM(ti=e.CRH())&&(oe.toolbarTemplateChildren=ti),e.iGM(ti=e.CRH())&&(oe.columnMenuTemplates=ti)}},viewQuery:function(h,oe){if(1&h&&(e.Gf(Vc,5),e.Gf(Mu,5),e.Gf(Tl,7),e.Gf(tt,5),e.Gf(Ne,5),e.Gf(cc,5)),2&h){let kt;e.iGM(kt=e.CRH())&&(oe.lockedHeader=kt.first),e.iGM(kt=e.CRH())&&(oe.header=kt.first),e.iGM(kt=e.CRH())&&(oe.ariaRoot=kt.first),e.iGM(kt=e.CRH())&&(oe.dragTargetContainer=kt.first),e.iGM(kt=e.CRH())&&(oe.dropTargetContainer=kt.first),e.iGM(kt=e.CRH())&&(oe.footer=kt)}},hostVars:13,hostBindings:function(h,oe){2&h&&(e.uIk("dir",oe.dir),e.ekj("k-grid",oe.hostClass)("k-grid-sm",oe.sizeSmallClass)("k-grid-md",oe.sizeMediumClass)("k-grid-lockedcolumns",oe.lockedClasses)("k-grid-virtual",oe.virtualClasses)("k-grid-no-scrollbar",oe.noScrollbarClass))},inputs:{data:"data",pageSize:"pageSize",height:"height",rowHeight:"rowHeight",detailRowHeight:"detailRowHeight",skip:"skip",scrollable:"scrollable",selectable:"selectable",sort:"sort",size:"size",trackBy:"trackBy",filter:"filter",group:"group",virtualColumns:"virtualColumns",filterable:"filterable",sortable:"sortable",pageable:"pageable",groupable:"groupable",rowReorderable:"rowReorderable",navigable:"navigable",navigatable:"navigatable",autoSize:"autoSize",rowClass:"rowClass",rowSticky:"rowSticky",rowSelected:"rowSelected",cellSelected:"cellSelected",resizable:"resizable",reorderable:"reorderable",loading:"loading",columnMenu:"columnMenu",hideHeader:"hideHeader",isDetailExpanded:"isDetailExpanded",isGroupExpanded:"isGroupExpanded"},outputs:{filterChange:"filterChange",pageChange:"pageChange",groupChange:"groupChange",sortChange:"sortChange",selectionChange:"selectionChange",rowReorder:"rowReorder",dataStateChange:"dataStateChange",groupExpand:"groupExpand",groupCollapse:"groupCollapse",detailExpand:"detailExpand",detailCollapse:"detailCollapse",edit:"edit",cancel:"cancel",save:"save",remove:"remove",add:"add",cellClose:"cellClose",cellClick:"cellClick",pdfExport:"pdfExport",excelExport:"excelExport",columnResize:"columnResize",columnReorder:"columnReorder",columnVisibilityChange:"columnVisibilityChange",columnLockedChange:"columnLockedChange",columnStickyChange:"columnStickyChange",scrollBottom:"scrollBottom",contentScroll:"contentScroll"},exportAs:["kendoGrid"],features:[e._Bn([ac,V.oQ,Rd,eu,lh,Hh,Bf,Pl,Zl,rh,vh,nf,{provide:Sh,useValue:pf},{provide:V.mM,useValue:"kendo.grid"},Xc,Vf,Qd,Fp,qp,np,yl,ml,bf,ip,bp,mu,Pf,Up,Su,Bc,Xd,If,Sl,nm,Uo,Zh,Sm]),e.TTD],decls:16,vars:22,consts:function(){let Qe,h,oe,kt,ti,Zo,hr,Cs,aa,$a,ja,Ll,Gc,Fc,_u,Vl,Ld,$f,Nu,cf,ju,Zm,Tg,v0,lv,m_,$_,y0,Q_,Tv,Qf,X_,Ec,b0,u1,df,h1,Y1,f1,q_,td,ad,p1,cv,Wv,C0,dv,x0,Dv,jv,uv,ev,Dg,S0,uu,Mg,sg,ag,Yv,Zv,Kv,w0,E0,T0,Jv,tv,D0,$v,Mv,m1,M0,Z1,k0,yy,g1,K1,_1,hv,H_;return Qe=$localize`:kendo.grid.groupPanelEmpty|The label visible in the Grid group panel when it is empty:Drag a column header and drop it here to group by that column`,h=$localize`:kendo.grid.noRecords|The label visible in the Grid when there are no records:No records available.`,oe=$localize`:kendo.grid.pagerFirstPage|The label for the first page button in Grid pager:Go to the first page`,kt=$localize`:kendo.grid.pagerPreviousPage|The label for the previous page button in Grid pager:Go to the previous page`,ti=$localize`:kendo.grid.pagerNextPage|The label for the next page button in Grid pager:Go to the next page`,Zo=$localize`:kendo.grid.pagerLastPage|The label for the last page button in Grid pager:Go to the last page`,hr=$localize`:kendo.grid.pagerPage|The label before the current page number in the Grid pager:Page`,Cs=$localize`:kendo.grid.pagerOf|The label before the total pages number in the Grid pager:of`,aa=$localize`:kendo.grid.pagerItems|The label after the total pages number in the Grid pager:items`,$a=$localize`:kendo.grid.pagerPageNumberInputTitle|The label for the pager input in the Grid pager:Page Number`,ja=$localize`:kendo.grid.pagerItemsPerPage|The label for the page size chooser in the Grid pager:items per page`,Ll=$localize`:kendo.grid.filter|The label of the filter cell or icon:Filter`,Gc=$localize`:kendo.grid.filterEqOperator|The text of the equal filter operator:Is equal to`,Fc=$localize`:kendo.grid.filterNotEqOperator|The text of the not equal filter operator:Is not equal to`,_u=$localize`:kendo.grid.filterIsNullOperator|The text of the is null filter operator:Is null`,Vl=$localize`:kendo.grid.filterIsNotNullOperator|The text of the is not null filter operator:Is not null`,Ld=$localize`:kendo.grid.filterIsEmptyOperator|The text of the is empty filter operator:Is empty`,$f=$localize`:kendo.grid.filterIsNotEmptyOperator|The text of the is not empty filter operator:Is not empty`,Nu=$localize`:kendo.grid.filterStartsWithOperator|The text of the starts with filter operator:Starts with`,cf=$localize`:kendo.grid.filterContainsOperator|The text of the contains filter operator:Contains`,ju=$localize`:kendo.grid.filterNotContainsOperator|The text of the does not contain filter operator:Does not contain`,Zm=$localize`:kendo.grid.filterEndsWithOperator|The text of the ends with filter operator:Ends with`,Tg=$localize`:kendo.grid.filterGteOperator|The text of the greater than or equal filter operator:Is greater than or equal to`,v0=$localize`:kendo.grid.filterGtOperator|The text of the greater than filter operator:Is greater than`,lv=$localize`:kendo.grid.filterLteOperator|The text of the less than or equal filter operator:Is less than or equal to`,m_=$localize`:kendo.grid.filterLtOperator|The text of the less than filter operator:Is less than`,$_=$localize`:kendo.grid.filterIsTrue|The text of the IsTrue boolean filter option:Is True`,y0=$localize`:kendo.grid.filterIsFalse|The text of the IsFalse boolean filter option:Is False`,Q_=$localize`:kendo.grid.filterBooleanAll|The text of the (All) boolean filter option:(All)`,Tv=$localize`:kendo.grid.filterAfterOrEqualOperator|The text of the after or equal date filter operator:Is after or equal to`,Qf=$localize`:kendo.grid.filterAfterOperator|The text of the after date filter operator:Is after`,X_=$localize`:kendo.grid.filterBeforeOperator|The text of the before date filter operator:Is before`,Ec=$localize`:kendo.grid.filterBeforeOrEqualOperator|The text of the before or equal date filter operator:Is before or equal to`,b0=$localize`:kendo.grid.filterFilterButton|The text of the filter button:Filter`,u1=$localize`:kendo.grid.filterClearButton|The text of the clear filter button:Clear`,df=$localize`:kendo.grid.filterAndLogic|The text of the And filter logic:And`,h1=$localize`:kendo.grid.filterOrLogic|The text of the Or filter logic:Or`,Y1=$localize`:kendo.grid.loading|The loading text:Loading`,f1=$localize`:kendo.grid.gridLabel|The Grid aria-label:Data table`,q_=$localize`:kendo.grid.columns|The text shown in the column menu for the columns item:Columns`,td=$localize`:kendo.grid.lock|The text shown in the column menu for the lock item:Lock`,ad=$localize`:kendo.grid.unlock|The text shown in the column menu for the unlock item:Unlock`,p1=$localize`:kendo.grid.setColumnPosition|The text shown in the column menu for the set column position item:Set Column Position`,cv=$localize`:kendo.grid.stick|The text shown in the column menu for the stick item:Stick`,Wv=$localize`:kendo.grid.unstick|The text shown in the column menu for the unstick item:Unstick`,C0=$localize`:kendo.grid.sortable|The label of the sort icon:Sortable`,dv=$localize`:kendo.grid.sortAscending|The text shown in the column menu for the sort ascending item:Sort Ascending`,x0=$localize`:kendo.grid.sortDescending|The text shown in the column menu for the sort descending item:Sort Descending`,Dv=$localize`:kendo.grid.autosizeAllColumns|The text shown in the column menu for the autosize all columns item:Autosize All Columns`,jv=$localize`:kendo.grid.autosizeThisColumn|The text shown in the column menu for the autosize this column item:Autosize This Column`,uv=$localize`:kendo.grid.sortedDefault|The status announcement when a column is no longer sorted:Not Sorted`,ev=$localize`:kendo.grid.columnsApply|The text shown in the column menu or column chooser for the columns apply button:Apply`,Dg=$localize`:kendo.grid.columnsReset|The text shown in the column menu or column chooser for the columns reset button:Reset`,S0=$localize`:kendo.grid.detailExpand|The title of the expand icon of detail rows.:Expand Details`,uu=$localize`:kendo.grid.detailCollapse|The title of the collapse icon of detail rows.:Collapse Details`,Mg=$localize`:kendo.grid.filterDateToday|The text of the Today button of the Date filter.:TODAY`,sg=$localize`:kendo.grid.filterDateToggle|The title of the Toggle button of the Date filter.:Toggle Calendar`,ag=$localize`:kendo.grid.filterNumericDecrement|The title of the Decrement button of the Numeric filter.:Decrement`,Yv=$localize`:kendo.grid.filterNumericIncrement|The title of the Increment button of the Numeric filter.:Increment`,Zv=$localize`:kendo.grid.selectionCheckboxLabel|The labels of the checkbox column checkboxes.:Select Row`,Kv=$localize`:kendo.grid.selectAllCheckboxLabel|The label of the checkbox column select all checkbox.:Select All Rows`,w0=$localize`:kendo.grid.groupCollapse|The text of the title and aria-label attributes applied to the collapse icon of group rows.:Collapse Group`,E0=$localize`:kendo.grid.groupExpand|The text of the title and aria-label attributes applied to the expand icon of group rows.:Expand Group`,T0=$localize`:kendo.grid.selectPage|The text of the title and aria-label attributes applied to the page chooser in the Grid Pager:Select page`,Jv=$localize`:kendo.grid.topToolbarLabel|The label for the Grid top toolbar:Top toolbar`,tv=$localize`:kendo.grid.bottomToolbarLabel|The label for the Grid bottom toolbar:Bottom toolbar`,D0=$localize`:kendo.grid.groupPanelLabel|The label for the Grid group panel toolbar:Group panel`,$v=$localize`:kendo.grid.dragRowHandleLabel|The label for the Grid drag row handle:Drag row`,Mv=$localize`:kendo.grid.columnMenuFilterTabTitle|The title for the column menu Filter tab:Filter`,m1=$localize`:kendo.grid.columnMenuGeneralTabTitle|The title for the column menu General tab:General`,M0=$localize`:kendo.grid.columnMenuColumnsTabTitle|The title for the column menu Columns tab:Columns`,Z1=$localize`:kendo.grid.pagerLabel|The label for the Grid pager:${"\ufffd0\ufffd"}:INTERPOLATION:`,k0=$localize`:kendo.grid.filterInputLabel|The label of the filter row and menu inputs:${"\ufffd0\ufffd"}:INTERPOLATION:`,yy=$localize`:kendo.grid.filterMenuTitle|The title of the filter menu icon:${"\ufffd0\ufffd"}:INTERPOLATION:`,g1=$localize`:kendo.grid.filterMenuOperatorsDropDownLabel|The label of the filter menu operators dropdown:${"\ufffd0\ufffd"}:INTERPOLATION:`,K1=$localize`:kendo.grid.filterCellOperatorLabel|The label of the filter cell operators dropdown:${"\ufffd0\ufffd"}:INTERPOLATION:`,_1=$localize`:kendo.grid.booleanFilterCellLabel|The label of the boolean filter cell dropdown:${"\ufffd0\ufffd"}:INTERPOLATION:`,hv=$localize`:kendo.grid.filterMenuLogicDropDownLabel|The label of the filter menu logic dropdown:${"\ufffd0\ufffd"}:INTERPOLATION:`,H_=$localize`:kendo.grid.columnMenu|The title of the column menu icon:${"\ufffd0\ufffd"}:INTERPOLATION:`,[["kendoGridLocalizedMessages","","groupPanelEmpty",Qe,"noRecords",h,"pagerFirstPage",oe,"pagerPreviousPage",kt,"pagerNextPage",ti,"pagerLastPage",Zo,"pagerPage",hr,"pagerOf",Cs,"pagerItems",aa,"pagerPageNumberInputTitle",$a,"pagerItemsPerPage",ja,"filter",Ll,"filterEqOperator",Gc,"filterNotEqOperator",Fc,"filterIsNullOperator",_u,"filterIsNotNullOperator",Vl,"filterIsEmptyOperator",Ld,"filterIsNotEmptyOperator",$f,"filterStartsWithOperator",Nu,"filterContainsOperator",cf,"filterNotContainsOperator",ju,"filterEndsWithOperator",Zm,"filterGteOperator",Tg,"filterGtOperator",v0,"filterLteOperator",lv,"filterLtOperator",m_,"filterIsTrue",$_,"filterIsFalse",y0,"filterBooleanAll",Q_,"filterAfterOrEqualOperator",Tv,"filterAfterOperator",Qf,"filterBeforeOperator",X_,"filterBeforeOrEqualOperator",Ec,"filterFilterButton",b0,"filterClearButton",u1,"filterAndLogic",df,"filterOrLogic",h1,"loading",Y1,"gridLabel",f1,"columns",q_,"lock",td,"unlock",ad,"setColumnPosition",p1,"stick",cv,"unstick",Wv,"sortable",C0,"sortAscending",dv,"sortDescending",x0,"autosizeAllColumns",Dv,"autosizeThisColumn",jv,"sortedDefault",uv,"columnsApply",ev,"columnsReset",Dg,"detailExpand",S0,"detailCollapse",uu,"filterDateToday",Mg,"filterDateToggle",sg,"filterNumericDecrement",ag,"filterNumericIncrement",Yv,"selectionCheckboxLabel",Zv,"selectAllCheckboxLabel",Kv,"groupCollapse",w0,"groupExpand",E0,"selectPage",T0,"topToolbarLabel",Jv,"bottomToolbarLabel",tv,"groupPanelLabel",D0,"dragRowHandleLabel",$v,"columnMenuFilterTabTitle",Mv,"columnMenuGeneralTabTitle",m1,"columnMenuColumnsTabTitle",M0,6,"pagerLabel","filterInputLabel","filterMenuTitle","filterMenuOperatorsDropDownLabel","filterCellOperatorLabel","booleanFilterCellLabel","filterMenuLogicDropDownLabel","columnMenu"],["pagerLabel",Z1,"filterInputLabel",k0,"filterMenuTitle",yy,"filterMenuOperatorsDropDownLabel",g1,"filterCellOperatorLabel",K1,"booleanFilterCellLabel",_1,"filterMenuLogicDropDownLabel",hv,"columnMenu",H_],["class","k-toolbar k-grid-toolbar","position","top",3,"size","navigable",4,"ngIf"],["class","k-grid-pager-top k-pager",3,"tabindex","template","pageSize","total","skip","size","options","pageChange",4,"ngIf"],["role","toolbar",3,"navigable","text","groups","change",4,"ngIf"],["role","grid",1,"k-grid-aria-root",3,"id"],["ariaRoot",""],[4,"ngIf"],["kendoGridLoading","",3,"loadingTemplate",4,"ngIf"],[3,"statusBarTemplate",4,"ngIf"],["class","k-pager",3,"tabindex","template","pageSize","total","skip","size","options","pageChange",4,"ngIf"],["class","k-toolbar k-grid-toolbar k-grid-toolbar-bottom","position","bottom",3,"size","navigable",4,"ngIf"],["defaultHint",""],["kendoWatermarkOverlay","",4,"ngIf"],["position","top",1,"k-toolbar","k-grid-toolbar",3,"size","navigable"],[1,"k-grid-pager-top","k-pager",3,"tabindex","template","pageSize","total","skip","size","options","pageChange"],["role","toolbar",3,"navigable","text","groups","change"],["class","k-grid-header","role","presentation",3,"padding",4,"ngIf"],["kendoDragTargetContainer","","kendoDropTargetContainer","","mode","manual","kendoDraggable","","kendoGridSelectionMarquee","",3,"dragDisabled","dropDisabled","dragTargetFilter","dropTargetFilter","dragHandle","hint","dragData","data","rowHeight","detailRowHeight","total","take","groups","groupable","skip","trackBy","columns","selectable","filterable","detailTemplate","noRecordsTemplate","size","rowClass","rowSticky","loading","isVirtual","cellLoadingTemplate","loadingTemplate","virtualColumns","enableDrag","sort","onPress","onDragStart","onDrag","onDragEnter","onDragLeave","onDragEnd","onDrop","pageChange","scrollBottom","contentScroll"],["class","k-grid-footer",3,"padding",4,"ngIf"],["role","presentation",1,"k-grid-header"],["role","presentation","class","k-grid-header-locked",3,"width",4,"ngIf"],["role","presentation","data-scrollable","",1,"k-grid-header-wrap",3,"kendoGridResizableContainer","lockedWidth"],["header",""],["role","presentation","kendoGridTable","",1,"k-grid-header-table",3,"virtualColumns","size"],["kendoGridColGroup","",3,"columns","groups","detailTemplate"],["kendoGridHeader","","role","rowgroup",3,"resizable","scrollable","columns","totalColumnLevels","sort","filter","filterable","groupable","reorderable","groups","sortable","columnMenu","columnMenuTemplate","lockedColumnsCount","totalColumnsCount","totalColumns","detailTemplate","tabIndex"],["class","k-width-container","role","presentation",4,"ngIf"],["role","presentation",1,"k-grid-header-locked"],["lockedHeader",""],["role","presentation","kendoGridTable","",1,"k-grid-header-table",3,"locked","size"],["kendoGridHeader","","role","rowgroup",3,"resizable","scrollable","columns","totalColumnLevels","sort","groups","filter","filterable","groupable","reorderable","sortable","columnMenu","columnMenuTemplate","totalColumnsCount","totalColumns","detailTemplate","tabIndex"],["role","presentation",1,"k-width-container"],[1,"k-grid-footer"],["class","k-grid-footer-locked",3,"width",4,"ngIf"],["data-scrollable","",1,"k-grid-footer-wrap",3,"kendoGridResizableContainer","lockedWidth"],["footer",""],["role","presentation","kendoGridTable","",1,"k-grid-footer-table",3,"size"],["kendoGridFooter","",3,"logicalRowIndex","scrollable","groups","columns","lockedColumnsCount","detailTemplate","totalColumns"],[1,"k-grid-footer-locked"],["role","presentation","kendoGridTable","",1,"k-grid-footer-table",3,"locked","size"],["kendoGridFooter","",3,"scrollable","groups","columns","detailTemplate","logicalRowIndex","totalColumns"],["kendoGridTable","",3,"size"],["kendoGridHeader","",3,"resizable","scrollable","columns","totalColumnLevels","totalColumns","groups","groupable","reorderable","sort","sortable","filter","filterable","columnMenu","columnMenuTemplate","detailTemplate","tabIndex",4,"ngIf"],["kendoGridTableBody","","kendoDraggable","","kendoGridSelectionMarquee","",3,"isLoading","groups","data","skip","columns","selectable","filterable","noRecordsTemplate","detailTemplate","showGroupFooters","trackBy","rowClass","enableDrag"],["kendoGridFooter","",3,"scrollable","logicalRowIndex","groups","columns","detailTemplate","totalColumns",4,"ngIf"],["kendoGridHeader","",3,"resizable","scrollable","columns","totalColumnLevels","totalColumns","groups","groupable","reorderable","sort","sortable","filter","filterable","columnMenu","columnMenuTemplate","detailTemplate","tabIndex"],["kendoGridFooter","",3,"scrollable","logicalRowIndex","groups","columns","detailTemplate","totalColumns"],["kendoGridLoading","",3,"loadingTemplate"],[3,"statusBarTemplate"],[1,"k-pager",3,"tabindex","template","pageSize","total","skip","size","options","pageChange"],["position","bottom",1,"k-toolbar","k-grid-toolbar","k-grid-toolbar-bottom",3,"size","navigable"],["innerCssClass","k-drag-status",3,"name","svgIcon"],["kendoWatermarkOverlay",""]]},template:function(h,oe){1&h&&(e.ynx(0,0),e.DtL(1,1),e.BQk(),e.YNc(2,Id,1,4,"kendo-grid-toolbar",2),e.YNc(3,vu,1,8,"kendo-pager",3),e.YNc(4,th,1,5,"kendo-grid-group-panel",4),e.TgZ(5,"div",5,6),e.YNc(7,bu,4,35,"ng-container",7),e.YNc(8,mc,6,21,"ng-container",7),e.YNc(9,xd,1,1,"div",8),e.qZA(),e.YNc(10,fu,1,1,"kendo-grid-status-bar",9),e.YNc(11,Fl,1,8,"kendo-pager",10),e.YNc(12,Jd,1,4,"kendo-grid-toolbar",11),e.YNc(13,Jl,2,3,"ng-template",null,12,e.W1O),e.YNc(15,gd,1,0,"div",13)),2&h&&(e.pQV("Page navigation, page {currentPage} of {totalPages}")("{columnName} Filter")("{columnName} Filter Menu")("{columnName} Filter Operators")("Filter cell operators for {columnName}")("Boolean filter cell for {columnName}")("{columnName} Filter Logic")("{columnName} Column Menu"),e.QtT(1),e.xp6(2),e.Q6J("ngIf",oe.showTopToolbar),e.xp6(1),e.Q6J("ngIf",oe.showTopPager),e.xp6(1),e.Q6J("ngIf",oe.showGroupPanel),e.xp6(1),e.Q6J("id",oe.ariaRootId),e.uIk("aria-label",oe.ariaLabel)("aria-rowcount",oe.ariaRowCount)("aria-colcount",oe.ariaColCount),e.xp6(2),e.Q6J("ngIf",oe.isScrollable),e.xp6(1),e.Q6J("ngIf",!oe.isScrollable),e.xp6(1),e.Q6J("ngIf",oe.loading),e.xp6(1),e.Q6J("ngIf",oe.showStatusBar),e.xp6(1),e.Q6J("ngIf",oe.showBottomPager),e.xp6(1),e.Q6J("ngIf",oe.showBottomToolbar),e.xp6(3),e.Q6J("ngIf",oe.showLicenseWatermark))},dependencies:[xp,lp,Hu,dp,E_,Ir,Se,Vg,nt,Un,de.ZS,n.nA,Vo,X.O5,bg,Cg,xg,tt,Ne,n.pD,Qu],encapsulation:2}),ie})(),Qa=(()=>{class ie{constructor(h,oe,kt,ti){this.grid=h,this.changeDetector=oe,this.localDataChangesService=kt,this.rowReorderService=ti,this.state={skip:0},this.originalData=[],kt&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(this.rebind.bind(this)))}set skip(h){ye(h)||(h=0),this.grid.skip=this.state.skip=h,this.rowReorderService&&(this.rowReorderService.skip=h)}set sort(h){this.grid.sort=this.state.sort=h}set filter(h){this.grid.filter=this.state.filter=h}set pageSize(h){this.grid.pageSize=this.state.take=h}set group(h){this.grid.group=this.state.group=h}set data(h){this.originalData=h||[],this.localDataChangesService&&(this.localDataChangesService.data=h),this.dataChanged=!0}ngOnInit(){this.applyState(this.state),this.stateChangeSubscription=this.grid.dataStateChange.subscribe(this.onStateChange.bind(this)),this.rowReorderService&&(this.rowReorderSubscription=this.grid.rowReorder.subscribe(this.onRowReorder.bind(this)))}ngOnDestroy(){this.stateChangeSubscription&&this.stateChangeSubscription.unsubscribe(),this.dataChangedSubscription&&this.dataChangedSubscription.unsubscribe(),this.rowReorderSubscription&&this.rowReorderSubscription.unsubscribe()}ngOnChanges(h){(0,n.aG)(["pageSize","skip","sort","group","filter"],h)&&this.rebind()}ngDoCheck(){this.dataChanged&&this.updateGridData()}onStateChange(h){this.applyState(h),this.rebind()}onRowReorder(h){this.rowReorderService.reorderRows(h,this.originalData),this.rebind()}rebind(){this.data=this.originalData,this.updateGridData(),this.notifyDataChange()}notifyDataChange(){this.grid.onDataChange(),this.changeDetector&&this.changeDetector.markForCheck()}process(h){return(0,K.N4)(this.originalData,h)}applyState({skip:h,take:oe,sort:kt,group:ti,filter:Zo}){this.skip=h,this.pageSize=oe,this.sort=kt,this.group=ti,this.filter=Zo}updateGridData(){this.grid.data=this.process(this.state),this.dataChanged=!1}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Ma),e.Y36(e.sBO),e.Y36(yl),e.Y36(Sm))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridBinding",""]],inputs:{skip:"skip",sort:"sort",filter:"filter",pageSize:"pageSize",group:"group",data:["kendoGridBinding","data"]},features:[e.TTD]}),ie})();const gp=Ep({filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterEqOperator:"eq",filterNotEqOperator:"neq",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty"});let Jf=(()=>{class ie extends Zd{constructor(h,oe,kt,ti){super(h),this.ctx=kt,this.showOperators=!0,this.size="medium",this.defaultOperators=gp(this.ctx.localization),this.column=oe,this.subs=ti.changes.subscribe(Zo=>this.size=Zo)}set valueField(h){this._valueField=h}get valueField(){return this._valueField?this._valueField:this.column.field}get currentFilter(){return this.filterByField(this.column.field)}get currentOperator(){return this.currentFilter?this.currentFilter.operator:"contains"}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Xc),e.Y36(Df),e.Y36(Uo),e.Y36(Zh))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-autocomplete-filter-cell"]],inputs:{showOperators:"showOperators",column:"column",filter:"filter",data:"data",valueField:"valueField"},features:[e.qOj],decls:2,vars:8,consts:[[3,"column","filter","operators","showOperators"],["kendoFilterInput","",3,"data","size","valueField","value"]],template:function(h,oe){1&h&&(e.TgZ(0,"kendo-grid-filter-wrapper-cell",0),e._UZ(1,"kendo-autocomplete",1),e.qZA()),2&h&&(e.Q6J("column",oe.column)("filter",oe.filter)("operators",oe.operators)("showOperators",oe.showOperators),e.xp6(1),e.Q6J("data",oe.data)("size",oe.size)("valueField",oe.valueField)("value",null==oe.currentFilter?null:oe.currentFilter.value))},dependencies:[af,Pi.jf,bd],encapsulation:2}),ie})(),Lu=(()=>{class ie{static exports(){return[Df,ef,jh,Ed,dh,Nc,Cg]}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({imports:[[X.ez,de.pc],n.QY,n.OY,de.pc]}),ie})(),og=(()=>{class ie extends nc{constructor(h){super("contains",h)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-filter-contains-operator"]],features:[e._Bn([{provide:nc,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),jg=(()=>{class ie extends nc{constructor(h){super("doesnotcontain",h)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-filter-not-contains-operator"]],features:[e._Bn([{provide:nc,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),vv=(()=>{class ie extends nc{constructor(h){super("endswith",h)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-filter-endswith-operator"]],features:[e._Bn([{provide:nc,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),$h=(()=>{class ie extends nc{constructor(h){super("eq",h)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-filter-eq-operator"]],features:[e._Bn([{provide:nc,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),Lv=(()=>{class ie extends nc{constructor(h){super("isempty",h)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-filter-isempty-operator"]],features:[e._Bn([{provide:nc,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),r0=(()=>{class ie extends nc{constructor(h){super("isnotempty",h)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-filter-isnotempty-operator"]],features:[e._Bn([{provide:nc,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),L1=(()=>{class ie extends nc{constructor(h){super("isnotnull",h)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-filter-isnotnull-operator"]],features:[e._Bn([{provide:nc,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),H0=(()=>{class ie extends nc{constructor(h){super("isnull",h)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-filter-isnull-operator"]],features:[e._Bn([{provide:nc,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),V0=(()=>{class ie extends nc{constructor(h){super("neq",h)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-filter-neq-operator"]],features:[e._Bn([{provide:nc,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),Nv=(()=>{class ie extends nc{constructor(h){super("startswith",h)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-filter-startswith-operator"]],features:[e._Bn([{provide:nc,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})();const W0=[lu,og,jg,vv,$h,Lv,r0,L1,H0,V0,Nv,(()=>{class ie extends nc{constructor(h){super("gt",h)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-filter-gt-operator"]],features:[e._Bn([{provide:nc,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),(()=>{class ie extends nc{constructor(h){super("gte",h)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-filter-gte-operator"]],features:[e._Bn([{provide:nc,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),(()=>{class ie extends nc{constructor(h){super("lt",h)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-filter-lt-operator"]],features:[e._Bn([{provide:nc,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),(()=>{class ie extends nc{constructor(h){super("lte",h)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-filter-lte-operator"]],features:[e._Bn([{provide:nc,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),(()=>{class ie extends nc{constructor(h){super("after",h)}toJSON(){return{text:this.text,value:"gt"}}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-filter-after-operator"]],features:[e._Bn([{provide:nc,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),(()=>{class ie extends nc{constructor(h){super("after-eq",h)}toJSON(){return{text:this.text,value:"gte"}}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-filter-after-eq-operator"]],features:[e._Bn([{provide:nc,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),(()=>{class ie extends nc{constructor(h){super("before-eq",h)}toJSON(){return{text:this.text,value:"lte"}}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-filter-before-eq-operator"]],features:[e._Bn([{provide:nc,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),(()=>{class ie extends nc{constructor(h){super("before",h)}toJSON(){return{text:this.text,value:"lt"}}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-filter-before-operator"]],features:[e._Bn([{provide:nc,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})()],hy=[X.ez,me.UX,me.u5,Pi.g9,Pi.WN,ot.rw,pn.I$,Q.Zj,Lu,si.hJ];let B_=(()=>{class ie{static exports(){return[...W0]}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({imports:[[...hy],X.ez,me.UX,me.u5,Pi.g9,Pi.WN,ot.rw,pn.I$,Q.Zj,Lu,si.hJ]}),ie})(),l0=(()=>{class ie{static exports(){return[Lr,Si,Fd,lu,gu,Ee,Jf,at,G,B_.exports()]}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({imports:[[B_],B_]}),ie})();const Sg=[X.ez,ot.rw,go.r3,si.hJ,Pi.q2,n.uv,Lu];let du=(()=>{class ie{static exports(){return[lp,rm,xf,ap,jd,sp,Rm,Tc,Rf,Gp]}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({imports:[[...Sg]]}),ie})(),Wm=(()=>{class ie{}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({}),ie})(),Zp=(()=>{class ie{static exports(){return[Uc,pu,Od]}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({imports:[[X.ez,Lu,Wm,si.oP]]}),ie})(),Eg=(()=>{class ie{static exports(){return[fc,qd,Dp,Zt,Jo,Kf,So,B_.exports()]}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({imports:[[B_],B_]}),ie})(),nv=(()=>{class ie{constructor(h,oe,kt,ti,Zo,hr){this.ctx=h,this.columnInfoService=oe,this.popupService=kt,this.ngZone=ti,this.renderer=Zo,this.changeDetector=hr,this.columnsIcon=te.b8s,this.autoSync=!1,this.allowHideAll=!0}get columns(){return this.columnInfoService.leafNamedColumns}ngOnDestroy(){this.close()}toggle(h,oe){if(this.popupRef)this.close();else{const kt=this.ctx.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:h.element,content:oe,positionMode:"absolute",anchorAlign:{vertical:"bottom",horizontal:kt},popupAlign:{vertical:"top",horizontal:kt}});const ti=this.popupRef?.popupElement;if(ti){const Zo=`k-${(0,n.M8)()}`,hr=ti.querySelector(".k-popup");this.ngZone.runOutsideAngular(()=>{this.escapeListener=this.renderer.listen(hr,"keydown",Cs=>{Cs.keyCode===n.R8.Escape&&this.close(!0)})}),this.renderer.setAttribute(ti,"dir",this.ctx.localization.rtl?"rtl":"ltr"),this.renderer.setAttribute(hr,"id",Zo),this.renderer.setAttribute(hr,"role","dialog"),this.popupId=Zo}if(!(0,n.X_)())return;this.ngZone.runOutsideAngular(()=>this.closeClick=this.renderer.listen("document","click",({target:Zo})=>{ul(Zo,hr=>hr===this.popupRef.popupElement||hr===h.element)||this.ngZone.run(()=>{this.close()})}))}}onApply(h){this.close(!0),h.length&&(this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(h))}onChange(h){this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(h)}onShiftTab(h){h.target.matches(".k-column-list-item")&&(h.preventDefault(),this.columnList.resetButton.nativeElement.focus())}close(h=!1){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.changeDetector.markForCheck(),this.escapeListener&&this.escapeListener()),this.detachClose(),h&&this.anchor.element.focus()}detachClose(){this.closeClick&&(this.closeClick(),this.closeClick=null)}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Uo),e.Y36(Rd),e.Y36(Q.qL),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(e.sBO))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-column-chooser"]],viewQuery:function(h,oe){if(1&h&&(e.Gf(qo,5),e.Gf(dd,5)),2&h){let kt;e.iGM(kt=e.CRH())&&(oe.anchor=kt.first),e.iGM(kt=e.CRH())&&(oe.columnList=kt.first)}},inputs:{autoSync:"autoSync",allowHideAll:"allowHideAll"},decls:4,vars:5,consts:[["kendoButton","","type","button","fillMode","flat","icon","columns",3,"svgIcon","click"],["anchor",""],["template",""],[1,"k-column-chooser-title"],[3,"columns","ariaLabel","isLast","applyText","resetText","autoSync","allowHideAll","apply","columnChange","keydown.shift.tab"],["columnList",""]],template:function(h,oe){if(1&h){const kt=e.EpF();e.TgZ(0,"button",0,1),e.NdJ("click",function(){e.CHM(kt);const Zo=e.MAs(1),hr=e.MAs(3);return e.KtG(oe.toggle(Zo,hr))}),e.qZA(),e.YNc(2,gc,4,8,"ng-template",null,2,e.W1O)}2&h&&(e.Q6J("svgIcon",oe.columnsIcon),e.uIk("title",oe.ctx.localization.get("columns"))("aria-haspopup","dialog")("aria-expanded",!!oe.popupRef)("aria-controls",oe.popupRef?oe.popupId:void 0))},dependencies:[si.r0,um],encapsulation:2}),ie})(),z_=(()=>{class ie{static exports(){return[nv,vg,tu,fh,Kl,pc,wc,hp,wf,ep,Il,tg,fp,Xl,Yc]}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({imports:[[X.ez,Eg,si.hJ,_i.Du]]}),ie})();const bv=[X.ez,Zp,l0,Eg,Lu,Wm,z_];let Op=(()=>{class ie{static exports(){return[gh,Ja]}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({imports:[[...bv]]}),ie})(),d0=(()=>{class ie extends qa{constructor(h,oe){super(h,oe),this.parent=h,this.isCheckboxColumn=!0}get templateRef(){return this.template?this.template.templateRef:void 0}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(qa,13),e.Y36(Xd,8))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-checkbox-column"]],contentQueries:function(h,oe,kt){if(1&h&&e.Suo(kt,qh,5),2&h){let ti;e.iGM(ti=e.CRH())&&(oe.template=ti.first)}},inputs:{showSelectAll:"showSelectAll"},features:[e._Bn([{provide:qa,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),j0=(()=>{class ie extends si.zx{constructor(h,oe,kt,ti,Zo,hr){super(kt,ti,null,Zo.localization,hr),this.editService=h,this.cellContext=oe,this.commandClass=!0}get visible(){return this.isEdited?"none":""}onClick(h){h.preventDefault(),this.editService.beginEdit(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(rh),e.Y36(Sh),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Uo),e.Y36(e.R0b))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["","kendoGridEditCommand",""]],hostVars:4,hostBindings:function(h,oe){1&h&&e.NdJ("click",function(ti){return oe.onClick(ti)}),2&h&&(e.Udp("display",oe.visible),e.ekj("k-grid-edit-command",oe.commandClass))},features:[e.qOj],attrs:ih,ngContentSelectors:br,decls:5,vars:3,consts:[["innerCssClass","k-button-icon",3,"name","svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon",3,"name","svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(h,oe){1&h&&(e.F$t(),e.YNc(0,Cu,1,2,"kendo-icon-wrapper",0),e.YNc(1,id,2,1,"span",1),e.YNc(2,ph,1,1,"span",2),e.TgZ(3,"span",3),e.Hsn(4),e.qZA()),2&h&&(e.Q6J("ngIf",oe.icon||oe.svgIcon),e.xp6(1),e.Q6J("ngIf",oe.imageUrl),e.xp6(1),e.Q6J("ngIf",oe.iconClass))},dependencies:[de.ZS,X.O5,X.mk],encapsulation:2}),ie})(),jm=(()=>{class ie extends si.zx{constructor(h,oe,kt,ti,Zo,hr){super(kt,ti,null,Zo.localization,hr),this.editService=h,this.cellContext=oe,this.commandClass=!0}get visible(){return this.isEdited?"":"none"}onClick(h){h.preventDefault(),this.isEdited&&this.editService.endEdit(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(rh),e.Y36(Sh),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Uo),e.Y36(e.R0b))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["","kendoGridCancelCommand",""]],hostVars:4,hostBindings:function(h,oe){1&h&&e.NdJ("click",function(ti){return oe.onClick(ti)}),2&h&&(e.Udp("display",oe.visible),e.ekj("k-grid-cancel-command",oe.commandClass))},features:[e.qOj],attrs:ud,ngContentSelectors:br,decls:5,vars:3,consts:[["innerCssClass","k-button-icon",3,"name","svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon",3,"name","svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(h,oe){1&h&&(e.F$t(),e.YNc(0,ql,1,2,"kendo-icon-wrapper",0),e.YNc(1,Ku,2,1,"span",1),e.YNc(2,od,1,1,"span",2),e.TgZ(3,"span",3),e.Hsn(4),e.qZA()),2&h&&(e.Q6J("ngIf",oe.icon||oe.svgIcon),e.xp6(1),e.Q6J("ngIf",oe.imageUrl),e.xp6(1),e.Q6J("ngIf",oe.iconClass))},dependencies:[de.ZS,X.O5,X.mk],encapsulation:2}),ie})(),Ym=(()=>{class ie extends si.zx{constructor(h,oe,kt,ti,Zo,hr){super(kt,ti,null,Zo.localization,hr),this.editService=h,this.cellContext=oe,this.commandClass=!0}get visible(){return this.isEdited?"":"none"}onClick(h){h.preventDefault(),this.isEdited&&this.editService.save(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(rh),e.Y36(Sh),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Uo),e.Y36(e.R0b))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["","kendoGridSaveCommand",""]],hostVars:4,hostBindings:function(h,oe){1&h&&e.NdJ("click",function(ti){return oe.onClick(ti)}),2&h&&(e.Udp("display",oe.visible),e.ekj("k-grid-save-command",oe.commandClass))},features:[e.qOj],attrs:Ic,ngContentSelectors:br,decls:5,vars:3,consts:[["innerCssClass","k-button-icon",3,"name","svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon",3,"name","svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(h,oe){1&h&&(e.F$t(),e.YNc(0,Gd,1,2,"kendo-icon-wrapper",0),e.YNc(1,$d,2,1,"span",1),e.YNc(2,dc,1,1,"span",2),e.TgZ(3,"span",3),e.Hsn(4),e.qZA()),2&h&&(e.Q6J("ngIf",oe.icon||oe.svgIcon),e.xp6(1),e.Q6J("ngIf",oe.imageUrl),e.xp6(1),e.Q6J("ngIf",oe.iconClass))},dependencies:[de.ZS,X.O5,X.mk],encapsulation:2}),ie})(),Y0=(()=>{class ie extends si.zx{constructor(h,oe,kt,ti,Zo,hr){super(kt,ti,null,Zo.localization,hr),this.editService=h,this.cellContext=oe,this.commandClass=!0}get visible(){return this.isEdited?"none":""}onClick(h){h.preventDefault(),this.editService.remove(this.rowIndex)}ngDoCheck(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(rh),e.Y36(Sh),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Uo),e.Y36(e.R0b))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["","kendoGridRemoveCommand",""]],hostVars:4,hostBindings:function(h,oe){1&h&&e.NdJ("click",function(ti){return oe.onClick(ti)}),2&h&&(e.Udp("display",oe.visible),e.ekj("k-grid-remove-command",oe.commandClass))},features:[e.qOj],attrs:$c,ngContentSelectors:br,decls:5,vars:3,consts:[["innerCssClass","k-button-icon",3,"name","svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon",3,"name","svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(h,oe){1&h&&(e.F$t(),e.YNc(0,oc,1,2,"kendo-icon-wrapper",0),e.YNc(1,Hd,2,1,"span",1),e.YNc(2,Rc,1,1,"span",2),e.TgZ(3,"span",3),e.Hsn(4),e.qZA()),2&h&&(e.Q6J("ngIf",oe.icon||oe.svgIcon),e.xp6(1),e.Q6J("ngIf",oe.imageUrl),e.xp6(1),e.Q6J("ngIf",oe.iconClass))},dependencies:[de.ZS,X.O5,X.mk],encapsulation:2}),ie})(),Kp=(()=>{class ie extends si.zx{constructor(h,oe,kt,ti,Zo){super(oe,kt,null,ti.localization,Zo),this.editService=h}onClick(h){h.preventDefault(),this.editService.beginAdd()}get commandClass(){return!0}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(rh),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Uo),e.Y36(e.R0b))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["","kendoGridAddCommand",""]],hostVars:2,hostBindings:function(h,oe){1&h&&e.NdJ("click",function(ti){return oe.onClick(ti)}),2&h&&e.ekj("k-grid-add-command",oe.commandClass)},features:[e.qOj],attrs:_d,ngContentSelectors:br,decls:5,vars:3,consts:[["innerCssClass","k-button-icon",3,"name","svgIcon",4,"ngIf"],["class","k-button-icon k-icon",4,"ngIf"],["class","k-button-icon",3,"ngClass",4,"ngIf"],[1,"k-button-text"],["innerCssClass","k-button-icon",3,"name","svgIcon"],[1,"k-button-icon","k-icon"],["role","presentation",1,"k-image",3,"src"],[1,"k-button-icon",3,"ngClass"]],template:function(h,oe){1&h&&(e.F$t(),e.YNc(0,rc,1,2,"kendo-icon-wrapper",0),e.YNc(1,Di,2,1,"span",1),e.YNc(2,uo,1,1,"span",2),e.TgZ(3,"span",3),e.Hsn(4),e.qZA()),2&h&&(e.Q6J("ngIf",oe.icon||oe.svgIcon),e.xp6(1),e.Q6J("ngIf",oe.imageUrl),e.xp6(1),e.Q6J("ngIf",oe.iconClass))},dependencies:[de.ZS,X.O5,X.mk],encapsulation:2}),ie})(),Bv=(()=>{class ie extends qa{constructor(h,oe){super(h,oe),this.parent=h,this.isRowReorderColumn=!0}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(qa,13),e.Y36(Xd,8))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-rowreorder-column"]],inputs:{dragHandleIcon:"dragHandleIcon",dragHandleSVGIcon:"dragHandleSVGIcon"},features:[e._Bn([{provide:qa,useExisting:(0,e.Gpc)(()=>ie)}]),e.qOj],decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})();const F1=[X.ez,me.UX,me.u5,Lu,Zp,ot.Ln,pn.I$,n.uv];let zv=(()=>{class ie{static exports(){return[yg,d0,l_,qh,kc,Mh,j0,jm,Ym,Y0,Kp,op,rp,Bv]}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({imports:[[...F1]]}),ie})();const I_=[X.ez,Lu];let B1=(()=>{class ie{static exports(){return[]}}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({imports:[[...I_]]}),ie})();const iv=ie=>ie&&ie.length&&ie[0].field&&ie[0].items,xv=ie=>ye(ie)&&ie.length>0,u0=(ie,Qe)=>(0,K.N4)(ie,Qe).data,Q0=(ie,Qe)=>{const h=[];return{group:ie.split("_").reduce((oe,kt)=>{const ti=parseInt(kt,10);return oe.items?(h.push(oe),oe.items[ti]):be(oe)?oe[ti]:oe},Qe),parents:h}},Sv=(ie,Qe=!1)=>ie.reduce((h,oe)=>{if(oe.skipHeader||h++,oe.items){const kt=Sv(oe.items,Qe);Qe&&kt&&!oe.hideFooter&&h++,h+=kt}return h},0),f0=(ie,Qe,h,oe=!1)=>{if(!ye(h))return ie;const kt=[];for(let ti=0,Zo=ie.length;ti<Zo&&!(h<=0);ti++){const hr=ie[ti],Cs=hr.items;let aa=Sv(Cs,oe);oe&&Cs.length&&aa++;const $a=Qe>0;if(Qe&&(Qe--,aa&&Qe>=aa))Qe-=aa;else if(!$a||aa){const ja=[];let Ll=!0;if($a||h--,h){if(iv(Cs)){const Gc=f0(Cs,Qe,h,oe);ja.push(...Gc),h-=Sv(Gc,oe)}else ja.push(...Cs.slice(Qe,Math.min(Qe+h,Cs.length))),h-=ja.length;h&&oe&&(Ll=!1,h--),Qe=0}kt.push({aggregates:hr.aggregates,field:hr.field,hideFooter:Ll,items:ja,offset:ti,skipHeader:$a,value:hr.value})}}return kt};let X0=(()=>{class ie extends Qa{constructor(h,oe,kt){super(h,oe,kt)}set kendoGridGroupBinding(h){this.groups=null,this.grid.resetGroupsState(),this.data=h}set data(h){this.originalData=h||[],this.dataChanged=!0}set sort(h){const oe=this.state.sort!==h;this.grid.sort=this.state.sort=h,oe&&(this.groups=null,this.grid.resetGroupsState())}set filter(h){zm(this.state.filter,h)&&(this.state.filter=h,this.grid.filter=Tp(h),this.groups=null,this.grid.resetGroupsState())}set group(h){const oe=xv(this.state.group)||xv(h),kt=this.state.group!==h&&oe;this.grid.group=this.state.group=h,kt&&(this.groups=null,this.grid.resetGroupsState(),this.skip=0)}ngOnInit(){super.ngOnInit(),this.grid.groupExpand.subscribe(this.groupExpand.bind(this)),this.grid.groupCollapse.subscribe(this.groupCollapse.bind(this))}ngAfterContentInit(){if((0,e.X6Q)()&&this.grid.isGroupExpanded)throw new Error("Using the `kendoGridGroupBinding` directive in combination with the `kendoGridExpandGroupBy` directive or the `isGroupExpanded` callback is not supported. To use grouping with the `kendoGridGroupBinding` directive, set the Grid `groupable` property to `true`.")}groupExpand({groupIndex:h}){this.grid.expandGroupChildren(h);const{group:oe,parents:kt}=Q0(h,this.groups);if(!oe.items.length){const ti=this.state.group.filter(((ie,Qe)=>h=>h.field!==Qe.field&&!ie.some(oe=>oe.field===h.field))(kt,oe)),Zo=((ie,Qe)=>{const h=Qe.map(oe=>({field:oe.field,operator:"eq",value:oe.value}));return(0,K.j)(ie,{filters:h,logic:"and"})})(this.originalData,kt.concat(oe));oe.items=u0(Zo,{filter:this.state.filter,group:ti,sort:this.state.sort})}this.grid.data=this.dataResult(this.state.skip,this.state.take)}groupCollapse({groupIndex:h}){const{group:oe}=Q0(h,this.groups);oe&&(oe.items=[]),this.grid.data=this.dataResult(this.state.skip,this.state.take)}process(h){if(h.group&&h.group.length){const oe=this.processGroups(h);return this.grid.skip-=(ie=>{let Qe=0;for(;ie;)ie.skipHeader&&Qe++,ie=ie.items&&ie.items[0]||null;return Qe})(oe.data[0]),oe}return this.groups=null,super.process(h)}processGroups(h){return(!this.groups||!this.groups.length)&&(this.groups=u0(this.originalData,{filter:h.filter,group:h.group,sort:h.sort})),this.dataResult(h.skip,h.take)}dataResult(h,oe){const kt=this.grid.showGroupFooters;return{data:f0(this.groups,h,oe,kt),total:Sv(this.groups,kt)}}applyState({skip:h,take:oe,sort:kt,group:ti,filter:Zo}){this.skip=h,this.state.take=oe,this.sort=kt,this.group=ti,this.filter=Zo}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Ma),e.Y36(e.sBO),e.Y36(yl))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridGroupBinding",""]],inputs:{kendoGridGroupBinding:"kendoGridGroupBinding",sort:"sort",filter:"filter",group:"group"},features:[e.qOj]}),ie})(),q0=(()=>{class ie{constructor(h,oe){this.host=h,this.ctx=oe}get element(){return this.host.nativeElement}get toolbarPosition(){return(0,n.X_)()&&this.host.nativeElement.closest(".k-toolbar")?.getAttribute("position")}ngAfterViewInit(){!(0,n.X_)()||!this.toolbarPosition||(this.ctx[`${this.toolbarPosition}ToolbarNavigation`]?.navigableElements.push(this.element),this.ctx[`${this.toolbarPosition}ToolbarNavigation`]?.notify())}ngOnDestroy(){(0,n.X_)()&&this.toolbarPosition&&(this.ctx[`${this.toolbarPosition}ToolbarNavigation`].navigableElements=this.ctx[`${this.toolbarPosition}ToolbarNavigation`].navigableElements.filter(oe=>oe!==this.element),this.ctx[`${this.toolbarPosition}ToolbarNavigation`].notify())}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(e.SBq),e.Y36(Uo))},ie.\u0275dir=e.lG2({type:ie,selectors:[["","kendoGridToolbarFocusable",""],["","kendoGridAddCommand",""],["","kendoGridCancelCommand",""],["","kendoGridEditCommand",""],["","kendoGridRemoveCommand",""],["","kendoGridSaveCommand",""],["","kendoGridExcelCommand",""],["","kendoGridPDFCommand",""]]}),ie})();Zp.exports(),Lu.exports(),zv.exports(),Op.exports(),B1.exports(),du.exports(),l0.exports(),Eg.exports(),z_.exports();let p0=(()=>{class ie{}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({imports:[[X.ez,Zp,Lu,zv,Op,B1,du,l0,Eg,n.uv,z_,ln,n.qG]]}),ie})();Lc("KENDO-GRID-LIST"),Lc("TABLE");class sv extends Nd{constructor(Qe){super(),this.workbook=Qe}}const c1=ie=>({data:ie.view.map(Qe=>Qe),group:ie.group}),Vv=ie=>{const Qe=[];return su(ie).forEach(h=>{if(h.isSpanColumn)Qe.push(...Vv(h.childrenArray));else{const oe=(ie=>({title:ie.title,field:ie.field,locked:!!ie.locked,width:ie.width,level:ie.level,hidden:!ie.isVisible,groupHeaderTemplate:ie.groupHeaderTemplate,groupHeaderColumnTemplate:ie.groupHeaderColumnTemplate,groupFooterTemplate:ie.groupFooterTemplate,footerTemplate:ie.footerTemplate}))(h);h.isColumnGroup&&(oe.children=[oe].concat(Vv(h.childrenArray))),Qe.push(oe)}}),Qe},_y=ie=>{const Qe=Vv(ie.columns.toArray());return(0,K.Xo)(Qe,[{field:"locked",dir:"desc"}])};let j1=(()=>{class ie{constructor(h,oe,kt){this.ctx=oe,this.zone=kt,this.fileName="Export.xlsx",this.columns=new e.n_E,this.saveSubscription=h.saveToExcel.subscribe(this.save.bind(this))}ngOnDestroy(){this.saveSubscription.unsubscribe(),this.dataSubscription&&this.dataSubscription.unsubscribe()}save(h){const oe=(this.fetchData||c1)(h),kt=ti=>{delete this.dataSubscription,this.exportData(h,ti)};oe instanceof Promise?oe.then(kt):oe instanceof R.y?this.dataSubscription=oe.pipe((0,f.q)(1)).subscribe(kt):kt(oe)}exportData(h,oe){const kt=(0,Xi.Tn)({columns:this.columns.length?this.columns:_y(h),data:oe.data,group:oe.group,filterable:this.filterable,creator:this.creator,date:this.date,paddingCellOptions:this.paddingCellOptions,headerPaddingCellOptions:this.headerPaddingCellOptions,rtl:this.ctx.localization.rtl,collapsible:this.collapsible}),ti=new sv(kt);h.excelExport.emit(ti),ti.isDefaultPrevented()||this.zone.runOutsideAngular(()=>this.saveFile(kt))}saveFile(h){(0,Xi.hz)(h).then(oe=>{(0,li.p)(oe,this.fileName,{forceProxy:this.forceProxy,proxyURL:this.proxyURL})})}}return ie.\u0275fac=function(h){return new(h||ie)(e.Y36(Fp),e.Y36(Uo),e.Y36(e.R0b))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["kendo-grid-excel"]],contentQueries:function(h,oe,kt){if(1&h&&e.Suo(kt,Xi.Fz,5),2&h){let ti;e.iGM(ti=e.CRH())&&(oe.columns=ti)}},inputs:{fileName:"fileName",filterable:"filterable",creator:"creator",date:"date",forceProxy:"forceProxy",proxyURL:"proxyURL",fetchData:"fetchData",paddingCellOptions:"paddingCellOptions",headerPaddingCellOptions:"headerPaddingCellOptions",collapsible:"collapsible"},decls:0,vars:0,template:function(h,oe){},encapsulation:2}),ie})(),J_=(()=>{class ie{}return ie.\u0275fac=function(h){return new(h||ie)},ie.\u0275mod=e.oAB({type:ie}),ie.\u0275inj=e.cJS({imports:[[de.pc],Xi.u7]}),ie})()},60886:(he,y,i)=>{"use strict";i.d(y,{ZS:()=>F,jA:()=>D,oJ:()=>p,pc:()=>Q});var e=i(65879),n=i(3201),o=i(12624),a=i(6593),l=i(96814),u=i(78645),d=i(65619),s=i(47394),A=i(37398),_=i(99397);function C(re,de){if(1&re&&(e.O4$(),e._UZ(0,"svg",1)),2&re){const te=e.oxw();e.Udp("pointer-events","none"),e.Q6J("innerHTML",te.content,e.oJD),e.uIk("viewBox",te.icon.viewBox)}}function R(re,de){if(1&re&&e._UZ(0,"kendo-svg-icon",2),2&re){const te=e.oxw();e.Q6J("ngClass",te.innerCssClass)("icon",te.svgIcon)("size",te.size||(null==te.iconSettings?null:te.iconSettings.size))("themeColor",null==te.iconSettings?null:te.iconSettings.themeColor)("flip",null==te.iconSettings?null:te.iconSettings.flip)}}function x(re,de){if(1&re&&e._UZ(0,"kendo-icon",5),2&re){const te=e.oxw(2);e.Q6J("ngClass",te.innerCssClass)("name",te.name)("size",te.size||(null==te.iconSettings?null:te.iconSettings.size))("themeColor",null==te.iconSettings?null:te.iconSettings.themeColor)("flip",null==te.iconSettings?null:te.iconSettings.flip)}}function f(re,de){if(1&re&&e._UZ(0,"span",6),2&re){const te=e.oxw(2);e.Q6J("ngClass",te.customClasses)}}function k(re,de){if(1&re&&(e.YNc(0,x,1,5,"kendo-icon",3),e.YNc(1,f,1,1,"ng-template",null,4,e.W1O)),2&re){const te=e.MAs(2),j=e.oxw();e.Q6J("ngIf",!j.customFontIconClass)("ngIfElse",te)}}const w={name:"@progress/kendo-angular-icons",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1694532801,version:"13.5.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},g={default:"k-icon",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl",xxlarge:"k-icon-xxl",xxxlarge:"k-icon-xxxl"};let M=(()=>{class re{constructor(te,j){this.element=te,this.renderer=j,(0,o.s)(w)}get horizontalFlip(){return"horizontal"===this.flip||"both"===this.flip}get verticalFlip(){return"vertical"===this.flip||"both"===this.flip}set themeColor(te){const j=this.element.nativeElement;this._themeColor=te,this.renderer.removeClass(j,`!k-color-${te}`),te&&this.renderer.addClass(j,`!k-color-${te}`)}get themeColor(){return this._themeColor}set size(te){const H=g[te],z=this.element.nativeElement;this.renderer.removeClass(z,g[this.size]),te&&"default"!==te&&this.renderer.addClass(z,H),this._size=te}get size(){return this._size}}return re.\u0275fac=function(te){return new(te||re)(e.Y36(e.SBq),e.Y36(e.Qsj))},re.\u0275dir=e.lG2({type:re,selectors:[["","kendoIconBase",""]],hostVars:4,hostBindings:function(te,j){2&te&&e.ekj("k-flip-h",j.horizontalFlip)("k-flip-v",j.verticalFlip)},inputs:{flip:"flip",themeColor:"themeColor",size:"size"}}),re})(),p=(()=>{class re extends M{constructor(te,j){super(te,j),this.element=te,this.renderer=j,this.hostClass=!0,this.hostAriaHidden=!0}set name(te){if((0,n.X_)()){const j=this.element.nativeElement;this.renderer.removeClass(j,`k-i-${this.name}`),this.renderer.addClass(j,`k-i-${te}`)}this._name=te}get name(){return this._name}}return re.\u0275fac=function(te){return new(te||re)(e.Y36(e.SBq),e.Y36(e.Qsj))},re.\u0275cmp=e.Xpm({type:re,selectors:[["kendo-icon"]],hostVars:3,hostBindings:function(te,j){2&te&&(e.uIk("aria-hidden",j.hostAriaHidden),e.ekj("k-icon",j.hostClass))},inputs:{name:"name"},exportAs:["kendoIcon"],features:[e.qOj],decls:0,vars:0,template:function(te,j){},encapsulation:2}),re})(),E=(()=>{class re extends M{constructor(te,j,H){super(j,H),this.domSanitizer=te,this.element=j,this.renderer=H,this.hostClass=!0,this.hostAriaHidden=!0}set icon(te){const j=this.element.nativeElement,H=(0,n.X_)();this._icon&&this._icon.name&&H&&this.renderer.removeClass(j,`k-svg-i-${this._icon.name}`),this._icon=te,H&&this.renderer.addClass(j,`k-svg-i-${this._icon.name}`)}get icon(){return this._icon}get content(){return this.domSanitizer.bypassSecurityTrustHtml(this.icon.content)}get visible(){return this.icon&&(0,n.X_)()}ngOnInit(){this.verifyIconProperty()}verifyIconProperty(){if((0,e.X6Q)()&&!this._icon)throw new Error("\n                Invalid configuration.\n                The input [icon] is required for the Kendo UI SVG Icon component for Angular.\n                See https://www.telerik.com/kendo-angular-ui/components/icons/svg-icon\n            ")}}return re.\u0275fac=function(te){return new(te||re)(e.Y36(a.H7),e.Y36(e.SBq),e.Y36(e.Qsj))},re.\u0275cmp=e.Xpm({type:re,selectors:[["kendo-svg-icon"]],hostVars:3,hostBindings:function(te,j){2&te&&(e.uIk("aria-hidden",j.hostAriaHidden),e.ekj("k-svg-icon",j.hostClass))},inputs:{icon:"icon"},exportAs:["kendoSVGIcon"],features:[e.qOj],decls:1,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"pointerEvents","innerHTML",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"innerHTML"]],template:function(te,j){1&te&&e.YNc(0,C,1,4,"svg",0),2&te&&e.Q6J("ngIf",j.visible)},dependencies:[l.O5],encapsulation:2}),re})(),I=(()=>{class re{constructor(){this.changes=new u.x}notify(te){this.changes.next(te)}getSvgIcon(te){return null}getCustomFontIconClass(te){return null}}return re.\u0275fac=function(te){return new(te||re)},re.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac}),re})();const L=new e.OlP("Kendo UI Icon-Settings token");let D=(()=>{class re{constructor(te,j){this._iconSettings=te,this.iconSettingsService=j,this.changes=new d.X(this.iconSettings||{type:"svg"}),this.subs=new s.w0,j&&this.subs.add(j.changes.pipe((0,A.U)(H=>(re=>null!=re)(H)?H:this._iconSettings),(0,_.b)(H=>this._iconSettings=H)).subscribe(H=>this.changes.next(H)))}get iconSettings(){return this._iconSettings}ngOnDestroy(){this.subs.unsubscribe()}getSvgIcon(te){return this.iconSettingsService&&this.iconSettingsService.getSvgIcon(te)}getCustomFontIconClass(te){return this.iconSettingsService&&this.iconSettingsService.getCustomFontIconClass(te)}}return re.\u0275fac=function(te){return new(te||re)(e.LFG(L,8),e.LFG(I,8))},re.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac}),re})(),F=(()=>{class re{constructor(te){this.iconsService=te,this.hostClass=!0,this.innerCssClass="",this.customFontClass="",this.subs=new s.w0,this.subs=te.changes.subscribe(j=>{this.iconSettings=j})}get customClasses(){return[this.customFontClass,this.innerCssClass,this.customFontIconClass].filter(j=>!!j).join(" ")}get hasSvgIcon(){return this.svgIcon=this.iconsService.getSvgIcon(this.name)||this.svgIcon,!!this.svgIcon||((0,e.X6Q)()&&(console.groupCollapsed(`Kendo UI for Angular: Icon type is set to 'svg', but only font icon name is provided. The "${this.name}" font icon will be rendered instead.`),console.warn('\nStarting from v7.0.0 (October, 2023) of the Kendo Themes, the font icons will be removed from the theme.\n* To render an SVG icon, update the component configuration by setting the "svgIcon" input to the respective icon definition.\n* To continue to use font icons, install the "@progress/kendo-font-icons" package and import "@progress/kendo-font-icons/dist/index.css".\n\nPlease note, that font icons are not compatible with a strict Content Security Policy and require the use of the "unsafe-inline" override.\n\nFor further details, check the following documentation articles:\nhttps://www.telerik.com/kendo-angular-ui/components/icons/icon-settings\nhttps://www.telerik.com/kendo-angular-ui/components/styling/icons/\nhttps://www.telerik.com/kendo-angular-ui/components/styling/svg-icons/\nhttps://www.telerik.com/design-system/docs/foundation/iconography/font-icons/\nhttps://www.telerik.com/design-system/docs/foundation/iconography/icon-list/\n            '),console.groupEnd()),!1)}get customFontIconClass(){return this.iconsService.getCustomFontIconClass(this.name)||this.customFontClass}ngOnDestroy(){this.subs.unsubscribe()}}return re.\u0275fac=function(te){return new(te||re)(e.Y36(D))},re.\u0275cmp=e.Xpm({type:re,selectors:[["kendo-icon-wrapper"]],hostVars:2,hostBindings:function(te,j){2&te&&e.ekj("k-icon-wrapper-host",j.hostClass)},inputs:{name:"name",svgIcon:"svgIcon",innerCssClass:"innerCssClass",customFontClass:"customFontClass",size:"size"},exportAs:["kendoIconWrapper"],decls:3,vars:2,consts:[[3,"ngClass","icon","size","themeColor","flip",4,"ngIf","ngIfElse"],["font",""],[3,"ngClass","icon","size","themeColor","flip"],[3,"ngClass","name","size","themeColor","flip",4,"ngIf","ngIfElse"],["custom",""],[3,"ngClass","name","size","themeColor","flip"],[3,"ngClass"]],template:function(te,j){if(1&te&&(e.YNc(0,R,1,5,"kendo-svg-icon",0),e.YNc(1,k,3,2,"ng-template",null,1,e.W1O)),2&te){const H=e.MAs(2);e.Q6J("ngIf","svg"===(null==j.iconSettings?null:j.iconSettings.type)&&j.hasSvgIcon)("ngIfElse",H)}},dependencies:[E,p,l.O5,l.mk],encapsulation:2}),re})(),U=(()=>{class re{}return re.\u0275fac=function(te){return new(te||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({imports:[[l.ez],l.ez]}),re})(),X=(()=>{class re{}return re.\u0275fac=function(te){return new(te||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({imports:[[l.ez]]}),re})(),Q=(()=>{class re{}return re.\u0275fac=function(te){return new(te||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({providers:[D],imports:[[U,X],U,X]}),re})()},80889:(he,y,i)=>{"use strict";i.d(y,{Em:()=>ks,Ln:()=>jr,MR:()=>ui,PL:()=>Qi,U5:()=>nl,UP:()=>xl,Uw:()=>qt,_B:()=>$d,e4:()=>ud,h5:()=>gc,hg:()=>_d,kx:()=>rc,mP:()=>kn,oc:()=>Sr,qm:()=>Ic,rw:()=>us,wS:()=>bn,wd:()=>od});var e=i(65879),n=i(56223),o=i(47394),a=i(92438),l=i(91687),u=i(63019),d=i(65619),s=i(78645),A=i(48180),_=i(32181),C=i(76328),R=i(27921),x=i(59773),f=i(83620),k=i(18753),w=i(58951),g=i(3201),M=i(12624),p=i(73942),E=i(15735),b=i(96814),I=i(99842),L=i(91918),D=i(60886),F=i(9237),P=i(31462),O=i(90380),U=i(21795),V=i(93197);const K=["wrap"],X=["track"],me=["sliderSelection"],J=["ticks"],Q=["tickElement"],re=["kendoSliderTicks",""];function de(Pe,Tn){if(1&Pe&&(e.TgZ(0,"span",7),e.GkF(1,8),e.qZA()),2&Pe){const v=e.oxw().$implicit,ue=e.oxw(),dt=e.MAs(2);e.xp6(1),e.Q6J("ngTemplateOutlet",ue.labelTemplate||dt)("ngTemplateOutletContext",v)}}function te(Pe,Tn){1&Pe&&(e.ynx(0),e._uU(1,"\xa0"),e.BQk())}function j(Pe,Tn){if(1&Pe&&(e.TgZ(0,"li",2,3),e.ynx(2,4),e.YNc(3,de,2,2,"span",5),e.YNc(4,te,2,0,"ng-container",6),e.BQk(),e.qZA()),2&Pe){const v=Tn.$implicit,ue=e.oxw();e.s9C("title",ue.tickTitle(v.value)),e.Q6J("ngClass",v.classes),e.xp6(2),e.Q6J("ngSwitch",v.large),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1)}}function H(Pe,Tn){if(1&Pe&&e._uU(0),2&Pe){const v=Tn.value,ue=e.oxw();e.hij(" ",ue.tickTitle(v)," ")}}const z=["draghandle"],q=["decreaseButton"],se=["increaseButton"];function ne(Pe,Tn){if(1&Pe&&e._UZ(0,"button",13,14),2&Pe){const v=e.oxw();e.Q6J("icon",v.decreaseButtonArrowIcon)("svgIcon",v.decreaseButtonArrowSVGIcon)("title",v.decrementMessage),e.uIk("tabindex",-1)}}function _e(Pe,Tn){if(1&Pe&&e._UZ(0,"ul",15,16),2&Pe){const v=e.oxw();e.Q6J("tickTitle",v.title)("vertical",v.vertical)("step",v.smallStep)("largeStep",v.largeStep)("min",v.min)("max",v.max)("labelTemplate",null==v.labelTemplate?null:v.labelTemplate.templateRef),e.uIk("aria-hidden",!0)}}function ge(Pe,Tn){if(1&Pe&&(e.TgZ(0,"button",17,18),e.NdJ("click",function(ue){return ue.preventDefault()}),e.qZA()),2&Pe){const v=e.oxw();e.Q6J("icon",v.increaseButtonArrowIcon)("svgIcon",v.increaseButtonArrowSVGIcon)("title",v.incrementMessage),e.uIk("tabindex",-1)("aria-label",v.currentValue)}}const Ce=function(Pe,Tn){return{click:Pe,keydown:Tn}},Oe=["numericInput"],Le=function(Pe,Tn){return{mouseup:Pe,mouseleave:Tn}},Gt=function(Pe){return{mousedown:Pe}};function Ut(Pe,Tn){if(1&Pe&&(e.TgZ(0,"span",4)(1,"button",5),e._UZ(2,"kendo-icon-wrapper",6),e.qZA(),e.TgZ(3,"button",7),e._UZ(4,"kendo-icon-wrapper",8),e.qZA()()),2&Pe){const v=e.oxw();e.Q6J("kendoEventsOutsideAngular",e.WLB(15,Le,v.releaseArrow,v.releaseArrow)),e.xp6(1),e.ekj("k-active",v.arrowDirection===v.ArrowDirection.Up),e.Q6J("kendoEventsOutsideAngular",e.VKq(18,Gt,v.increasePress))("title",v.incrementTitle),e.uIk("aria-hidden",!0)("aria-label",v.incrementTitle),e.xp6(1),e.Q6J("svgIcon",v.arrowUpIcon),e.xp6(1),e.ekj("k-active",v.arrowDirection===v.ArrowDirection.Down),e.Q6J("kendoEventsOutsideAngular",e.VKq(20,Gt,v.decreasePress))("title",v.decrementTitle),e.uIk("aria-hidden",!0)("aria-label",v.decrementTitle),e.xp6(1),e.Q6J("svgIcon",v.arrowDownIcon)}}const An=function(Pe,Tn,v,ue,dt,In,er){return{mousedown:Pe,dragenter:Tn,keydown:v,input:ue,focus:dt,blur:In,paste:er}},$n=["input"];function mt(Pe,Tn){}function ut(Pe,Tn){if(1&Pe&&e.YNc(0,mt,0,0,"ng-template",8),2&Pe){const v=e.oxw();e.Q6J("ngTemplateOutlet",null==v.prefixTemplate?null:v.prefixTemplate.templateRef)}}function Wt(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"span",9),e.NdJ("click",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.clearValue())})("mousedown",function(dt){return dt.preventDefault()})("keydown.enter",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.clearValue(dt))})("keydown.space",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.clearValue(dt))}),e._UZ(1,"kendo-icon-wrapper",10),e.qZA()}if(2&Pe){const v=e.oxw();e.Q6J("tabindex",v.tabIndex)("title",v.clearTitle()),e.uIk("aria-label",v.clearTitle()),e.xp6(1),e.Q6J("name",v.clearButtonClass)("customFontClass",v.customClearButtonClasses)("svgIcon",v.clearButtonSvgIcon||v.svgIcon("xIcon"))}}function dn(Pe,Tn){if(1&Pe&&e._UZ(0,"kendo-icon-wrapper",11),2&Pe){const v=e.oxw();e.Q6J("name",v.errorIconClasses)("customFontClass",v.customIconClasses)("svgIcon",v.errorSvgIcon||v.svgIcon("exclamationCircleIcon"))}}function sn(Pe,Tn){if(1&Pe&&e._UZ(0,"kendo-icon-wrapper",11),2&Pe){const v=e.oxw();e.Q6J("name",v.successIconClasses)("customFontClass",v.customSuccessIconClasses)("svgIcon",v.successSvgIcon||v.svgIcon("checkIcon"))}}function fn(Pe,Tn){}function yi(Pe,Tn){if(1&Pe&&e.YNc(0,fn,0,0,"ng-template",8),2&Pe){const v=e.oxw();e.Q6J("ngTemplateOutlet",null==v.suffixTemplate?null:v.suffixTemplate.templateRef)}}const nn=function(Pe,Tn,v){return{focus:Pe,blur:Tn,input:v}},Mi=[[["kendo-textarea-suffix"]]],mi=["kendo-textarea-suffix"],Eo=["*"],Ko=["opacityInput"],xo=["hexInput"],Bn=["blue"],Xt=["toggleFormatButton"];function Ji(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"div",0)(1,"input",5,6),e.NdJ("blur",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.handleHexInputBlur())})("input",function(){e.CHM(v);const dt=e.MAs(2),In=e.oxw();return e.KtG(In.handleHexValueChange(dt.value))})("keydown.tab",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.focusDragHandle(dt))}),e.qZA(),e.TgZ(3,"label",7),e._uU(4,"HEX"),e.qZA()()}if(2&Pe){const v=e.oxw();e.xp6(1),e.Q6J("id",v.focusableId)("disabled",v.disabled)("readonly",v.readonly)("value",v.hex||"")("tabindex",v.tabindex.toString()),e.xp6(2),e.Q6J("for",v.focusableId)}}function En(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"div",0)(1,"kendo-numerictextbox",14,15),e.NdJ("valueChange",function(dt){e.CHM(v);const In=e.oxw(2);return e.KtG(In.rgba.a=dt)})("blur",function(){e.CHM(v);const dt=e.oxw(2);return e.KtG(dt.handleRgbaInputBlur())})("valueChange",function(){e.CHM(v);const dt=e.oxw(2);return e.KtG(dt.handleRgbaValueChange())})("keydown.tab",function(dt){e.CHM(v);const In=e.oxw(2);return e.KtG(In.focusDragHandle(dt))}),e.qZA(),e.TgZ(4,"label",7),e._uU(5,"A"),e.qZA()()}if(2&Pe){const v=e.MAs(3),ue=e.oxw(2);e.xp6(1),e.Q6J("localizationService",ue.localizationService)("disabled",ue.disabled)("readonly",ue.readonly)("tabindex",ue.tabindex)("min",0)("max",1)("value",ue.rgba.a)("autoCorrect",!0)("spinners",!1)("step",.01)("format","n2")("decimals",2),e.xp6(3),e.Q6J("for",v.focusableId)}}function un(Pe,Tn){if(1&Pe){const v=e.EpF();e.ynx(0),e.TgZ(1,"div",0)(2,"kendo-numerictextbox",8,9),e.NdJ("valueChange",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.rgba.r=dt)})("blur",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.handleRgbaInputBlur())})("valueChange",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.handleRgbaValueChange())}),e.qZA(),e.TgZ(4,"label",7),e._uU(5,"R"),e.qZA()(),e.TgZ(6,"div",0)(7,"kendo-numerictextbox",10,11),e.NdJ("valueChange",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.rgba.g=dt)})("blur",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.handleRgbaInputBlur())})("valueChange",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.handleRgbaValueChange())}),e.qZA(),e.TgZ(9,"label",7),e._uU(10,"G"),e.qZA()(),e.TgZ(11,"div",0)(12,"kendo-numerictextbox",12,13),e.NdJ("valueChange",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.rgba.b=dt)})("blur",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.handleRgbaInputBlur())})("valueChange",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.handleRgbaValueChange())})("keydown.tab",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.onTab())}),e.qZA(),e.TgZ(14,"label",7),e._uU(15,"B"),e.qZA()(),e.YNc(16,En,6,13,"div",3),e.BQk()}if(2&Pe){const v=e.MAs(3),ue=e.MAs(8),dt=e.MAs(13),In=e.oxw();e.xp6(2),e.Q6J("localizationService",In.localizationService)("disabled",In.disabled)("readonly",In.readonly)("tabindex",In.tabindex)("min",0)("max",255)("value",In.rgba.r)("autoCorrect",!0)("spinners",!1)("format","n")("decimals",0),e.xp6(2),e.Q6J("for",v.focusableId),e.xp6(3),e.Q6J("localizationService",In.localizationService)("disabled",In.disabled)("readonly",In.readonly)("tabindex",In.tabindex)("min",0)("max",255)("value",In.rgba.g)("autoCorrect",!0)("spinners",!1)("format","n")("decimals",0),e.xp6(2),e.Q6J("for",ue.focusableId),e.xp6(3),e.Q6J("localizationService",In.localizationService)("disabled",In.disabled)("readonly",In.readonly)("tabindex",In.tabindex)("min",0)("max",255)("value",In.rgba.b)("autoCorrect",!0)("spinners",!1)("format","n")("decimals",0),e.xp6(2),e.Q6J("for",dt.focusableId),e.xp6(2),e.Q6J("ngIf",In.opacity)}}const Ki=["kendoColorContrastSvg",""];function Fn(Pe,Tn){1&Pe&&(e.O4$(),e._UZ(0,"path",1)),2&Pe&&e.uIk("d",Tn.$implicit)}const oi=["kendoContrastValidation",""];function It(Pe,Tn){if(1&Pe&&(e.TgZ(0,"span",3),e._uU(1),e._UZ(2,"kendo-icon-wrapper",4),e.qZA()),2&Pe){const v=e.oxw(2);e.xp6(1),e.hij(" ",v.passMessage," "),e.xp6(1),e.Q6J("svgIcon",v.checkIcon)}}function Bt(Pe,Tn){if(1&Pe&&(e.TgZ(0,"span",5),e._uU(1),e._UZ(2,"kendo-icon-wrapper",6),e.qZA()),2&Pe){const v=e.oxw(2);e.xp6(1),e.hij(" ",v.failMessage," "),e.xp6(1),e.Q6J("svgIcon",v.xCircleIcon)}}function xt(Pe,Tn){if(1&Pe&&(e.ynx(0),e.YNc(1,It,3,2,"span",1),e.YNc(2,Bt,3,2,"span",2),e.BQk()),2&Pe){const v=e.oxw();e.xp6(1),e.Q6J("ngIf",v.pass),e.xp6(1),e.Q6J("ngIf",!v.pass)}}const wt=["kendoContrastTool",""];function Mt(Pe,Tn){if(1&Pe&&e._UZ(0,"kendo-icon-wrapper",8),2&Pe){const v=e.oxw(3);e.Q6J("svgIcon",v.checkIcon)}}function pt(Pe,Tn){if(1&Pe&&(e.TgZ(0,"span",7),e._UZ(1,"kendo-icon-wrapper",8),e.YNc(2,Mt,1,1,"kendo-icon-wrapper",9),e.qZA()),2&Pe){const v=e.oxw(2);e.xp6(1),e.Q6J("svgIcon",v.checkIcon),e.xp6(1),e.Q6J("ngIf",v.satisfiesAAACondition)}}function Lt(Pe,Tn){if(1&Pe&&(e.TgZ(0,"span",10),e._UZ(1,"kendo-icon-wrapper",11),e.qZA()),2&Pe){const v=e.oxw(2);e.xp6(1),e.Q6J("svgIcon",v.xCircleIcon)}}function tt(Pe,Tn){if(1&Pe&&(e.ynx(0),e.YNc(1,pt,3,2,"span",5),e.YNc(2,Lt,2,1,"span",6),e.BQk()),2&Pe){const v=e.oxw();e.xp6(1),e.Q6J("ngIf",v.satisfiesAACondition),e.xp6(1),e.Q6J("ngIf",!v.satisfiesAACondition)}}const Ne=["gradientDragHandle"],vt=["inputs"],ln=["alphaSlider"],jn=["gradientWrapper"],Pi=["hsvRectangle"];function go(Pe,Tn){if(1&Pe&&(e.O4$(),e._UZ(0,"svg",15)),2&Pe){const v=e.oxw(),ue=e.MAs(5);e.Akn("position: absolute; overflow: visible; pointer-events: none; left: 0px; top: 0px;"),e.Q6J("wrapper",ue||void 0)("hsva",v.hsva)("backgroundColor",v.contrastTool)}}function si(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"button",16),e.NdJ("click",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.reset())})("keydown.enter",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.reset())})("keydown.space",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.reset())}),e.qZA()}if(2&Pe){const v=e.oxw();e.Akn("position: absolute; top: 0; left: 50%; transform: translateX(-50%);"),e.Q6J("svgIcon",v.dropletSlashIcon)("tabindex",v.innerTabIndex.toString()),e.uIk("aria-label",v.clearButtonTitle)("title",v.clearButtonTitle)}}const ot=function(Pe){return{"k-align-self-end":Pe}};function pn(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"kendo-slider",17,18),e.NdJ("valueChange",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.handleAlphaSliderChange(dt))}),e.qZA()}if(2&Pe){const v=e.oxw();e.Udp("height",v.clearButton?"140":null,"px"),e.Q6J("tabindex",v.innerTabIndex)("ngClass",e.VKq(14,ot,v.clearButton))("dragHandleTitle",v.opacitySliderTitle)("disabled",v.disabled)("readonly",v.readonly)("showButtons",!1)("vertical",!0)("min",0)("max",100)("smallStep",1)("largeStep",10)("value",v.alphaSliderValue)}}function _i(Pe,Tn){if(1&Pe&&e._UZ(0,"div",19),2&Pe){const v=e.oxw();e.Q6J("value",v.value)("ratio",v.contrastTool)}}const wi=function(Pe,Tn,v,ue){return{backgroundColor:Pe,width:Tn,height:v,minWidth:ue}};function hi(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"td",5),e.NdJ("click",function(){const dt=e.CHM(v),In=dt.$implicit,er=dt.index,Br=e.oxw().index,es=e.oxw();return e.KtG(es.handleCellSelection(In,{row:Br,col:er}))}),e.qZA()}if(2&Pe){const v=Tn.$implicit,ue=Tn.index,dt=e.oxw().index,In=e.oxw();e.ekj("k-selected",(null==In.selectedCell?null:In.selectedCell.row)===dt&&(null==In.selectedCell?null:In.selectedCell.col)===ue)("k-focus",In.focusInComponent&&(null==In.focusedCell?null:In.focusedCell.row)===dt&&(null==In.focusedCell?null:In.focusedCell.col)===ue),e.Q6J("id","k-"+dt+"-"+ue+"-"+In.uniqueId)("ngStyle",e.l5B(9,wi,v,In.tileLayout.width+"px",In.tileLayout.height+"px",In.tileLayout.width+"px")),e.uIk("aria-selected",(null==In.selectedCell?null:In.selectedCell.row)===dt&&(null==In.selectedCell?null:In.selectedCell.col)===ue?"true":void 0)("aria-label",v)("value",v)}}function zn(Pe,Tn){if(1&Pe&&(e.TgZ(0,"tr",3),e.YNc(1,hi,1,14,"td",4),e.qZA()),2&Pe){const v=Tn.$implicit;e.xp6(1),e.Q6J("ngForOf",v)}}const Ei=["clearButton"],li=["viewButtons"],Xi=["kendoFlatColorPickerHeader",""];function ki(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"button",7,8),e.NdJ("click",function(){const In=e.CHM(v).$implicit,er=e.oxw(2);return e.KtG(er.onViewButtonClick(In))})("keydown.shift.tab",function(dt){const er=e.CHM(v).index,Br=e.oxw(2);return e.KtG(Br.onHeaderTabOut(dt,er))}),e.qZA()}if(2&Pe){const v=Tn.$implicit,ue=e.oxw(2);e.Q6J("tabindex",ue.innerTabIndex.toString())("icon",ue.getViewButtonIcon(v))("svgIcon",ue.getViewButtonsSVGIcon(v))("ngClass",ue.activeView===v?"k-selected":""),e.uIk("title",ue.getText("gradient"===v?"gradientView":"paletteView"))("aria-label",ue.getText("gradient"===v?"gradientView":"paletteView"))("aria-pressed",ue.activeView===v)}}function bo(Pe,Tn){if(1&Pe&&(e.TgZ(0,"div",5),e.YNc(1,ki,2,7,"button",6),e.qZA()),2&Pe){const v=e.oxw();e.xp6(1),e.Q6J("ngForOf",v.views)}}function jo(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"button",9,10),e.NdJ("click",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.clearButtonClick.emit())}),e.qZA()}if(2&Pe){const v=e.oxw();e.Q6J("tabindex",v.innerTabIndex.toString())("svgIcon",v.dropletSlashIcon),e.uIk("aria-label",v.getText("clearButton"))("title",v.getText("clearButton"))}}function wn(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"div",11),e._UZ(1,"span",12),e.TgZ(2,"span",13),e.NdJ("click",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.valuePaneClick.emit(dt))}),e.qZA()()}if(2&Pe){const v=e.oxw();e.xp6(1),e.Udp("background-color",v.selection),e.uIk("title",v.getText("previewColor")),e.xp6(1),e.Udp("background-color",v.value),e.uIk("title",v.getText("revertSelection"))}}const Zi=["first"],oo=["last"],Bi=["kendoFlatColorPickerActionButtons",""],Xo=["header"],Lo=["gradient"],or=["palette"],xr=["footer"];function Nr(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"div",6,7),e.NdJ("clearButtonClick",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.onClearButtonClick())})("viewChange",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.onViewChange(dt))})("valuePaneClick",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.resetSelection(dt))})("tabOut",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.lastFocusable(dt))}),e.qZA()}if(2&Pe){const v=e.oxw();e.Q6J("innerTabIndex",v.innerTabIndex)("clearButton",v.clearButton)("activeView",v.activeView)("views",v.views)("value",v.value)("selection",v.selection)("preview",v.preview)}}function as(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"kendo-colorgradient",8,9),e.NdJ("keydown.tab",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.focusFirstHeaderButton())})("valueChange",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.handleValueChange(dt))}),e.qZA()}if(2&Pe){const v=e.oxw();e.Q6J("tabindex",v.innerTabIndex)("value",v.selection)("format",v.format)("opacity",v.gradientSettings.opacity)("delay",v.gradientSettings.delay)("contrastTool",v.gradientSettings.contrastTool)("gradientSliderSmallStep",v.gradientSettings.gradientSliderSmallStep)("gradientSliderStep",v.gradientSettings.gradientSliderStep)("readonly",v.readonly)}}function ji(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"kendo-colorpalette",10,11),e.NdJ("valueChange",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.handleValueChange(dt))}),e.qZA()}if(2&Pe){const v=e.oxw();e.Q6J("tabindex",v.innerTabIndex)("palette",v.paletteSettings.palette)("columns",v.paletteSettings.columns)("tileSize",v.paletteSettings.tileSize)("format",v.format)("value",v.selection)("readonly",v.readonly)}}function Fo(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"div",12,13),e.NdJ("actionButtonClick",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.onAction(dt))})("tabOut",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.firstFocusable.focus())}),e.qZA()}if(2&Pe){const v=e.oxw();e.Q6J("innerTabIndex",v.innerTabIndex)("ngClass","k-justify-content-"+v.actionsLayout)}}const rt=["container"],ai=["activeColor"],Gn=["popupTemplate"],Io=["flatColorPicker"];function wr(Pe,Tn){if(1&Pe&&e._UZ(0,"kendo-icon-wrapper",9),2&Pe){const v=e.oxw();e.Q6J("name",v.iconStyles)("customFontClass",v.customIconStyles)("svgIcon",v.svgIcon)}}function bs(Pe,Tn){if(1&Pe){const v=e.EpF();e.TgZ(0,"kendo-flatcolorpicker",10,11),e.NdJ("cancel",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.handleCancelEvent(dt))})("focusout",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.handlePopupBlur(dt))})("valueChange",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.handleValueChange(dt))})("keydown",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.handlePopupKeyDown(dt))})("activeViewChange",function(dt){e.CHM(v);const In=e.oxw();return e.KtG(In.activeViewChange.emit(dt))})("clearButtonClick",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.clearButtonClick.emit())})("actionButtonClick",function(){e.CHM(v);const dt=e.oxw();return e.KtG(dt.togglePopup())}),e.qZA()}if(2&Pe){const v=e.oxw();e.Q6J("value",v.value)("format",v.format)("views",v.views)("activeView",v.activeView)("actionsLayout",v.actionsLayout)("preview",v.preview)("gradientSettings",v.gradientSettings)("paletteSettings",v.paletteSettings)("clearButton",v.clearButton)}}const ba=function(Pe,Tn){return{"k-icon-color-preview":Pe,"k-no-color":Tn}};function ms(Pe,Tn){1&Pe&&e.Hsn(0,2,["*ngIf","hasHints"])}function Oa(Pe,Tn){1&Pe&&e.Hsn(0,3,["*ngIf","hasErrors"])}const Ea=[[["label"],["kendo-label"]],"*",[["kendo-formhint"]],[["kendo-formerror"]]],Sa=["label, kendo-label","*","kendo-formhint","kendo-formerror"],br=Pe=>null!=Pe,Ti=(Pe,Tn)=>Pe===Tn||null===Pe&&void 0===Tn||void 0===Pe&&null===Tn,mr=Pe=>Pe&&(!Pe.touched||Pe.control&&"blur"===Pe.control.updateOn),ri=(Pe,Tn,v)=>!br(Pe)||isNaN(Pe)||Pe<=Tn?Tn:Pe>=v?v:Pe,mo={small:"sm",medium:"md",large:"lg"},Ii={small:"sm",medium:"md",large:"lg",full:"full"},lr=(Pe,Tn,v,ue)=>{switch(Tn){case"size":return{toRemove:`k-${Pe}-${mo[v]}`,toAdd:"none"!==ue?`k-${Pe}-${mo[ue]}`:""};case"rounded":return{toRemove:`k-rounded-${Ii[v]}`,toAdd:"none"!==ue?`k-rounded-${Ii[ue]}`:""};case"fillMode":return{toRemove:`k-${Pe}-${v}`,toAdd:"none"!==ue?`k-${Pe}-${ue}`:""}}},Gs=Pe=>Math.min(Pe,20),fi=Pe=>(String(Pe).split(".")[1]||"").length,Ho=(Pe,Tn)=>Math.max(fi(Pe),fi(Tn)),_t=(Pe,Tn)=>{const v=Gs(Tn);return parseFloat(Pe.toFixed(v))},Zn=(Pe,Tn)=>{const v=Ho(Pe,Tn);return _t(Pe+Tn,v)},qo=(Pe,Tn)=>Zn(Pe,-Tn),Cr=(Pe,Tn)=>{const v=fi(Pe)+fi(Tn);return _t(Pe*Tn,v)},kr=(Pe,Tn)=>{if(0===Tn)return NaN;const v=Ho(Pe,Tn),ue=Math.pow(10,v);return ue*Pe/(ue*Tn)},xs=(Pe,Tn)=>Math.abs(qo(Pe,Cr(Tn,Math.floor(kr(Pe,Tn))))),Us=({max:Pe,min:Tn,smallStep:v,fixedTickWidth:ue})=>(Pe-Tn)/v*ue,Ss=(Pe=0,Tn=0,v=1)=>{if(v<=0)throw new Error("Invalid argument: smallStep must be a positive number");const ue=Math.abs(qo(Tn,Pe)),dt=Math.floor(kr(ue,v));return Zn(dt,1)},Ua=(Pe,{max:Tn,min:v,smallStep:ue,reverse:dt,vertical:In})=>{const er=Zn(v,Cr(Pe,ue));return In||dt?Math.abs(qo(er,Tn)):er},Ar=(Pe,{max:Tn,min:v,smallStep:ue,largeStep:dt},In=!1)=>{const er=In&&dt?Cr(ue,dt):ue,Br=qo(Pe,v);let es;const Ks=xs(Br,er);return es=qo(Br,0===Ks?er:Ks),Wa(Zn(es,v),v,Tn)},No=(Pe,{max:Tn,min:v,smallStep:ue,largeStep:dt},In=!1)=>{const er=In&&dt?Cr(ue,dt):ue,Br=qo(Pe,v),es=xs(Br,er),Ks=Zn(qo(Br,es),er);return Wa(Zn(Ks,v),v,Tn)},Ds=(Pe,Tn,v)=>v>Pe?Pe:v<Tn?Tn:v,ls=Pe=>Pe,Wa=(Pe,Tn,v)=>Math.max(Math.min(Pe,v),Tn),ll=(Pe,Tn,v)=>{const{min:ue,max:dt,vertical:In,rtl:er}=v,Br=(Pe=>{const Tn=Pe.getBoundingClientRect(),v=document.documentElement;return{left:Tn.left+(window.pageXOffset||v.scrollLeft)-(v.clientLeft||0),top:Tn.top+(window.pageYOffset||v.scrollTop)-(v.clientTop||0)}})(Tn),xa=(dt-ue)/(In?Tn.clientHeight:Tn.clientWidth)*(In?Pe.pageY-Br.top:Pe.pageX-Br.left);let ha=er||In?dt-xa:ue+xa;const Aa=fi(v.smallStep);return ha=_t(ha,Aa+1),((Pe,Tn)=>{const{smallStep:v,min:ue,max:dt}=Tn,In=Wa(Pe,ue,dt);if(Pe!==In)return In;const er=Ar(Pe,Tn),Br=No(Pe,Tn);return(Pe-ue)%v==0?Pe:Br-Pe<=(Br-er)/2?Br:er})(ha,v)},sl=Pe=>No(Pe.value,Pe),Jt=Pe=>Ar(Pe.value,Pe),Tt=Pe=>No(Pe.value,Pe,!0),ht=Pe=>Ar(Pe.value,Pe,!0);class Yi{constructor(Tn,v,ue,dt){this.props=Tn,this.wrapper=v,this.track=ue,this.renderer=dt,this.props=Tn,this.wrapper=v,this.track=ue,this.tickSizes=this.getTickSizes()}resizeTrack(){const Tn=this.props.vertical?"height":"width",v=this.props.vertical?"width":"height",ue=this.trackWidth();this.track.parentElement.style[Tn]=`${ue}px`,this.track.parentElement.style[v]=""}resizeTicks(Tn,v){const ue=this.props.vertical?"height":"width";[...v].map((dt,In)=>dt.style[ue]=`${this.tickSizes[In]}px`),this.props.vertical&&this.adjustPadding(Tn)}resizeWrapper(){const Tn=this.props.vertical?"height":"width";Us(this.props)&&(this.wrapper.parentElement.style[Tn]="auto")}trackWidth(){return this.props.fixedTickWidth?Us(this.props):this.elementSize(this.track.parentElement)}getTickSizes(){const{min:Tn,max:v,smallStep:ue}=this.props,dt=Ss(Tn,v,ue),In=this.trackWidth(),er=In/qo(v,Tn),Br=[];let es=0,Ks=0;for(let xa=0;xa<dt;xa++){Ks+=0===xa||xa===dt-1?ue/2*er:ue*er,Ks=+Ks.toFixed(2)-.01;const ha=Math.round(Ks-es);Br.push(ha),es+=ha}return es>=In&&(Br[Br.length-1]-=1),Br}adjustPadding(Tn){const v=this.tickSizes.reduce((In,er)=>In+er,0),dt=this.trackWidth()-v;if(0!==dt){const In=dt+this.elementOffset(this.track);Tn.style.paddingTop=`${In}px`}}elementOffset(Tn){const{vertical:v}=this.props,ue=getComputedStyle(Tn);return parseInt(v?ue.bottom:ue.left,10)}elementSize(Tn){const{vertical:v}=this.props;return v?Tn.clientHeight:Tn.clientWidth}}class co extends Yi{positionHandle(Tn){const{max:v,min:ue,reverse:dt,vertical:In}=this.props,er=In?"bottom":"left",Br=this.trackWidth(),es=Ds(v,ue,this.props.value);this.handlePosition=(({trackWidth:Pe,min:Tn,max:v,reverse:ue,value:dt})=>{const In=Pe/Math.abs(v-Tn);let er=br(dt)?In*(dt-Tn):Tn;return ue&&(er=Pe-er),Math.floor(er)})({min:ue,max:v,reverse:dt,value:es,trackWidth:Br}),this.renderer.setStyle(Tn,er,`${this.handlePosition}px`)}positionSelection(Tn){const{reverse:v,vertical:ue}=this.props,dt=ue?"height":"width";let In=this.handlePosition;v&&(In=this.trackWidth()-In),this.renderer.setStyle(Tn,dt,`${In}px`)}}function ss(Pe,Tn,...v){if(Pe&&Pe.nativeElement)return Pe.nativeElement[Tn].apply(Pe.nativeElement,v)}const ys=(Pe,Tn)=>{for(;Pe&&!Tn(Pe);)Pe=Pe.parentNode;return Pe},da={name:"@progress/kendo-angular-inputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1689688641,version:"13.2.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};let Va=(()=>{class Pe{constructor(v){this.templateRef=v}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.Rgc,8))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoSliderLabelTemplate",""]]}),Pe})(),ga=(()=>{class Pe{constructor(v,ue,dt,In,er,Br){this.localizationService=v,this.injector=ue,this.renderer=dt,this.ngZone=In,this.changeDetector=er,this.hostElement=Br,this.title=ls,this.tickPlacement="both",this.vertical=!1,this.min=0,this.max=10,this.smallStep=1,this.largeStep=null,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.valueChange=new e.vpe,this.sliderClass=!0,this.subscriptions=new o.w0,this.ifEnabled=(es,Ks)=>{this.isDisabled||es.call(this,Ks)},(0,M.s)(da),this.direction=v.rtl?"rtl":"ltr"}get horizontalClass(){return!this.vertical}get verticalClass(){return this.vertical}get disabledClass(){return this.disabled}setDisabledState(v){this.changeDetector.markForCheck(),this.disabled=v}ngOnInit(){this.subscriptions.add(this.localizationService.changes.subscribe(({rtl:v})=>{this.direction=v?"rtl":"ltr",this.sizeComponent()})),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(n.a5,null)}get isDisabled(){return this.disabled||this.readonly}isEmpty(){return!1}get reverse(){return this.localizationService.rtl&&!this.vertical}get keyBinding(){const v=this.reverse;return{[g.R8.ArrowLeft]:v?sl:Jt,[g.R8.ArrowRight]:v?Jt:sl,[g.R8.ArrowDown]:Jt,[g.R8.ArrowUp]:sl,[g.R8.PageUp]:Tt,[g.R8.PageDown]:ht,[g.R8.Home]:({min:ue})=>ue,[g.R8.End]:({max:ue})=>ue}}resetStyles(v){v.forEach(ue=>{ue&&(this.vertical?(this.renderer.removeStyle(ue,"width"),this.renderer.removeStyle(ue,"left"),this.renderer.removeStyle(ue,"right")):(this.renderer.removeStyle(ue,"height"),this.renderer.removeStyle(ue,"bottom")),this.renderer.removeStyle(ue,"padding-top"))})}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(w.oQ),e.Y36(e.zs3),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.SBq))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-slider-base"]],contentQueries:function(v,ue,dt){if(1&v&&e.Suo(dt,Va,5),2&v){let In;e.iGM(In=e.CRH())&&(ue.labelTemplate=In.first)}},viewQuery:function(v,ue){if(1&v&&(e.Gf(K,7),e.Gf(X,7),e.Gf(me,7),e.Gf(J,5,e.SBq),e.Gf(J,5)),2&v){let dt;e.iGM(dt=e.CRH())&&(ue.wrapper=dt.first),e.iGM(dt=e.CRH())&&(ue.track=dt.first),e.iGM(dt=e.CRH())&&(ue.sliderSelection=dt.first),e.iGM(dt=e.CRH())&&(ue.ticksContainer=dt.first),e.iGM(dt=e.CRH())&&(ue.ticks=dt.first)}},hostVars:9,hostBindings:function(v,ue){2&v&&(e.uIk("dir",ue.direction),e.ekj("k-slider-horizontal",ue.horizontalClass)("k-slider-vertical",ue.verticalClass)("k-slider",ue.sliderClass)("k-disabled",ue.disabledClass))},inputs:{title:"title",tickPlacement:"tickPlacement",vertical:"vertical",min:"min",max:"max",smallStep:"smallStep",largeStep:"largeStep",fixedTickWidth:"fixedTickWidth",disabled:"disabled",readonly:"readonly",tabindex:"tabindex"},outputs:{onFocus:"focus",onBlur:"blur",valueChange:"valueChange"},decls:0,vars:0,template:function(v,ue){},encapsulation:2}),Pe})();class al{constructor(Tn){this.value=Tn,this.classes={"k-tick":!0}}}let ur=(()=>{class Pe{constructor(){this.wrapperClasses="k-reset k-slider-items",this.ticks=[]}ngOnChanges(v){this.createTicks()}createTicks(){const v=Ss(this.min,this.max,this.step),ue=this.largeStep,dt={max:this.max,min:this.min,smallStep:this.step},In=[];for(let er=0;er<v;er++)In.push(new al(Ua(er,dt))),ue&&er%ue==0&&(In[er].large=!0,In[er].classes["k-tick-large"]=!0);In.length>0&&(Object.assign(In[0].classes,this.endTickClasses(!0)),Object.assign(In[In.length-1].classes,this.endTickClasses(!1))),this.ticks=In}endTickClasses(v){return{"k-first":v&&!this.vertical||!v&&this.vertical,"k-last":!v&&!this.vertical||v&&this.vertical}}}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["","kendoSliderTicks",""]],viewQuery:function(v,ue){if(1&v&&e.Gf(Q,5),2&v){let dt;e.iGM(dt=e.CRH())&&(ue.tickElements=dt)}},hostVars:2,hostBindings:function(v,ue){2&v&&e.Tol(ue.wrapperClasses)},inputs:{tickTitle:"tickTitle",vertical:"vertical",step:"step",largeStep:"largeStep",min:"min",max:"max",labelTemplate:"labelTemplate"},features:[e.TTD],attrs:re,decls:3,vars:1,consts:[["role","presentation",3,"ngClass","title",4,"ngFor","ngForOf"],["defaultLabel",""],["role","presentation",3,"ngClass","title"],["tickElement",""],[3,"ngSwitch"],["class","k-label",4,"ngSwitchCase"],[4,"ngSwitchCase"],[1,"k-label"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(v,ue){1&v&&(e.YNc(0,j,5,5,"li",0),e.YNc(1,H,1,1,"ng-template",null,1,e.W1O)),2&v&&e.Q6J("ngForOf",ue.ticks)},dependencies:[b.sg,b.mk,b.RF,b.n9,b.tP],encapsulation:2}),Pe})(),La=(()=>{class Pe extends w.Z1{}return Pe.\u0275fac=function(){let Tn;return function(ue){return(Tn||(Tn=e.n5z(Pe)))(ue||Pe)}}(),Pe.\u0275dir=e.lG2({type:Pe,selectors:[["kendo-slider-messages-base"]],inputs:{decrement:"decrement",increment:"increment",dragHandle:"dragHandle"},features:[e.qOj]}),Pe})(),ra=(()=>{class Pe extends La{constructor(v){super(),this.service=v}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(w.oQ))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoSliderLocalizedMessages",""]],features:[e._Bn([{provide:La,useExisting:(0,e.Gpc)(()=>Pe)}]),e.qOj]}),Pe})();const Ls="k-pressed";let vn=(()=>{class Pe extends ga{constructor(v,ue,dt,In,er,Br){super(v,ue,dt,In,er,Br),this.localization=v,this.injector=ue,this.renderer=dt,this.ngZone=In,this.changeDetector=er,this.hostElement=Br,this.focusableId=`k-${(0,g.M8)()}`,this.animate=!0,this.showButtons=!0,this.value=this.min,this.arrowUpIcon=p.fRI,this.arrowDownIcon=p.M7i,this.arrowLeftIcon=p.Me8,this.arrowRightIcon=p.bI8,this.focusChangedProgrammatically=!1,this.onWrapClick=es=>{if(!this.isDisabled&&!es.target.closest(".k-button")){const xa=ll(es,this.track.nativeElement,this.getProps());this.changeValue(xa)}ss(this.draghandle,"focus")},this.onKeyDown=es=>{const Ks=this.getProps(),{max:xa,min:ha}=Ks,Aa=this.keyBinding[es.keyCode];if(this.isDisabled||!Aa)return;const vl=Aa(Ks);this.changeValue(Ds(xa,ha,vl)),es.preventDefault()},this.ngChange=es=>{},this.ngTouched=()=>{},this.decreaseValue=()=>{this.changeValue(Ar(this.value,this.getProps()))},this.increaseValue=()=>{this.changeValue(No(this.value,this.getProps()))},this.handleBlur=()=>{this.changeDetector.markForCheck(),this.focused=!1,((0,g.g$)(this.onBlur)||mr(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.focusChangedProgrammatically||this.onBlur.emit()})}}set tabIndex(v){this.tabindex=v}get tabIndex(){return this.tabindex}get currentValue(){return br(this.value)?this.value.toString():""}focus(){this.disabled||(this.focusChangedProgrammatically=!0,ss(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)}blur(){this.focusChangedProgrammatically=!0,ss(this.draghandle,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1}ngOnChanges(v){(0,g.aG)(["value","fixedTickWidth","tickPlacement"],v,!0)&&this.ngZone.onStable.asObservable().pipe((0,A.q)(1)).subscribe(()=>{this.sizeComponent(!1)})}ngAfterViewInit(){(0,g.X_)()&&(this.showButtons&&(this.setValueChangeInterval(this.increaseButton.nativeElement,()=>this.increaseValue()),this.setValueChangeInterval(this.decreaseButton.nativeElement,()=>this.decreaseValue())),this.sizeComponent(!1),this.ticks&&this.ticks.tickElements.changes.subscribe(()=>this.sizeComponent(!1)),this.attachElementEventHandlers(),this.isSliderInvalid())}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}get incrementMessage(){return this.incrementTitle||this.localizationService.get("increment")}get decrementMessage(){return this.decrementTitle||this.localizationService.get("decrement")}get dragHandleMessage(){return this.dragHandleTitle||this.localizationService.get("dragHandle")}handleDragPress(v){v.originalEvent&&v.originalEvent.preventDefault(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")}onHandleDrag(v){this.dragging=!0,this.changeValue(ll(v,this.track.nativeElement,this.getProps()))}onHandleRelease(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")}writeValue(v){this.changeDetector.markForCheck(),this.value=v,this.sizeComponent(this.animate)}registerOnChange(v){this.ngChange=v}registerOnTouched(v){this.ngTouched=v}changeValue(v){Ti(this.value,v)||this.ngZone.run(()=>{this.value=v,this.ngChange(v),this.valueChange.emit(v),this.sizeComponent(this.animate),this.changeDetector.markForCheck()}),this.isSliderInvalid()}sizeComponent(v){if(!(0,g.X_)())return;const ue=this.wrapper.nativeElement,dt=this.track.nativeElement,In=this.sliderSelection.nativeElement,er=this.draghandle.nativeElement,Br=this.ticks?this.ticksContainer.nativeElement:null;v||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([dt,In,er,Br,this.hostElement.nativeElement]);const es=this.getProps(),Ks=new co(es,ue,dt,this.renderer);Ks.resizeTrack(),this.ticks&&Ks.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map(xa=>xa.nativeElement)),Ks.positionHandle(er),Ks.positionSelection(In),v||(this.hostElement.nativeElement.getBoundingClientRect(),this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")),this.fixedTickWidth&&Ks.resizeWrapper()}set focused(v){this.isFocused!==v&&this.hostElement&&(this.isFocused=v)}set dragging(v){if(this.isDragged!==v&&this.sliderSelection&&this.draghandle){const ue=this.sliderSelection.nativeElement,dt=this.draghandle.nativeElement;v?(this.renderer.addClass(ue,Ls),this.renderer.addClass(dt,Ls)):(this.renderer.removeClass(ue,Ls),this.renderer.removeClass(dt,Ls)),this.isDragged=v}}setValueChangeInterval(v,ue){this.ngZone.runOutsideAngular(()=>{const dt=(0,a.R)(v,"mousedown"),In=(0,a.R)(v,"mouseup"),er=(0,a.R)(v,"mouseout"),Br=dt.pipe((0,_.h)(es=>0===es.button&&!this.isDisabled),(0,C.b)(()=>(0,l.F)(150).pipe((0,R.O)(-1),(0,x.R)((0,u.T)(In,er))))).subscribe(()=>{this.isFocused||ss(this.draghandle,"focus"),ue()});this.subscriptions.add(Br)})}getProps(){return{buttons:this.showButtons,disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:Ds(this.max,this.min,this.value),vertical:this.vertical}}isSliderInvalid(){this.isInvalid=!!this.hostElement.nativeElement.classList.contains("ng-invalid"),this.renderer.setAttribute(this.draghandle.nativeElement,"aria-invalid",`${this.isInvalid}`)}attachElementEventHandlers(){const v=this.hostElement.nativeElement;let ue=!1,dt=!1;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(v,"focusin",()=>{this.isFocused||this.ngZone.run(()=>{this.focusChangedProgrammatically||this.onFocus.emit(),this.focused=!0})})),this.subscriptions.add(this.renderer.listen(v,"focusout",In=>{this.isFocused&&(ue?(In.relatedTarget!==this.draghandle.nativeElement&&this.handleBlur(),ue=!1):dt||this.handleBlur())})),this.subscriptions.add(this.renderer.listen(v,"mouseenter",()=>{dt=!0})),this.subscriptions.add(this.renderer.listen(v,"mouseleave",()=>{dt=!1})),this.subscriptions.add(this.renderer.listen(v,"keydown",In=>{ue=In.keyCode===g.R8.Tab}))})}get decreaseButtonArrowIcon(){return this.vertical?"caret-alt-down":"ltr"===this.direction?"caret-alt-left":"caret-alt-right"}get increaseButtonArrowIcon(){return this.vertical?"caret-alt-up":"ltr"===this.direction?"caret-alt-right":"caret-alt-left"}get decreaseButtonArrowSVGIcon(){return this.vertical?this.arrowDownIcon:"ltr"===this.direction?this.arrowLeftIcon:this.arrowRightIcon}get increaseButtonArrowSVGIcon(){return this.vertical?this.arrowUpIcon:"ltr"===this.direction?this.arrowRightIcon:this.arrowLeftIcon}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(w.oQ),e.Y36(e.zs3),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.SBq))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-slider"]],viewQuery:function(v,ue){if(1&v&&(e.Gf(z,7),e.Gf(q,5,e.SBq),e.Gf(se,5,e.SBq)),2&v){let dt;e.iGM(dt=e.CRH())&&(ue.draghandle=dt.first),e.iGM(dt=e.CRH())&&(ue.decreaseButton=dt.first),e.iGM(dt=e.CRH())&&(ue.increaseButton=dt.first)}},inputs:{focusableId:"focusableId",dragHandleTitle:"dragHandleTitle",incrementTitle:"incrementTitle",animate:"animate",decrementTitle:"decrementTitle",showButtons:"showButtons",value:"value",tabIndex:"tabIndex"},exportAs:["kendoSlider"],features:[e._Bn([w.oQ,{provide:w.mM,useValue:"kendo.slider"},{multi:!0,provide:n.JU,useExisting:(0,e.Gpc)(()=>Pe)},{provide:g.GX,useExisting:(0,e.Gpc)(()=>Pe)}]),e.qOj,e.TTD],decls:13,vars:23,consts:function(){let Tn,v,ue;return Tn=$localize`:kendo.slider.increment|The title of the **Increase** button of the Slider.:increment`,v=$localize`:kendo.slider.decrement|The title of the **Decrease** button of the Slider.:decrement`,ue=$localize`:kendo.slider.dragHandle|The title of the drag handle of the Slider.:Drag`,[["kendoSliderLocalizedMessages","","increment",Tn,"decrement",v,"dragHandle",ue],["kendoButton","","type","button","rounded","full","class","k-button-decrease",3,"icon","svgIcon","title",4,"ngIf"],[1,"k-slider-track-wrap",3,"kendoEventsOutsideAngular"],["wrap",""],["kendoSliderTicks","",3,"tickTitle","vertical","step","largeStep","min","max","labelTemplate",4,"ngIf"],[1,"k-slider-track"],["track",""],[1,"k-slider-selection"],["sliderSelection",""],["role","slider","kendoDraggable","",1,"k-draghandle",3,"title","id","kendoPress","kendoDrag","kendoRelease"],["draghandle",""],["kendoButton","","type","button","rounded","full","class","k-button-increase",3,"icon","svgIcon","title","click",4,"ngIf"],[3,"resize"],["kendoButton","","type","button","rounded","full",1,"k-button-decrease",3,"icon","svgIcon","title"],["decreaseButton",""],["kendoSliderTicks","",3,"tickTitle","vertical","step","largeStep","min","max","labelTemplate"],["ticks",""],["kendoButton","","type","button","rounded","full",1,"k-button-increase",3,"icon","svgIcon","title","click"],["increaseButton",""]]},template:function(v,ue){1&v&&(e.ynx(0,0),e.YNc(1,ne,2,4,"button",1),e.TgZ(2,"div",2,3),e.YNc(4,_e,2,8,"ul",4),e.TgZ(5,"div",5,6),e._UZ(7,"div",7,8),e.TgZ(9,"span",9,10),e.NdJ("kendoPress",function(In){return ue.ifEnabled(ue.handleDragPress,In)})("kendoDrag",function(In){return ue.ifEnabled(ue.onHandleDrag,In)})("kendoRelease",function(In){return ue.ifEnabled(ue.onHandleRelease,In)}),e.qZA()()(),e.YNc(11,ge,2,5,"button",11),e.TgZ(12,"kendo-resize-sensor",12),e.NdJ("resize",function(){return ue.sizeComponent(!1)}),e.qZA(),e.BQk()),2&v&&(e.xp6(1),e.Q6J("ngIf",ue.showButtons),e.xp6(1),e.ekj("k-slider-topleft","before"===ue.tickPlacement)("k-slider-bottomright","after"===ue.tickPlacement),e.Q6J("kendoEventsOutsideAngular",e.WLB(20,Ce,ue.onWrapClick,ue.onKeyDown)),e.xp6(2),e.Q6J("ngIf","none"!==ue.tickPlacement),e.xp6(5),e.Udp("touch-action",ue.isDisabled?"":"none"),e.Q6J("title",ue.dragHandleMessage)("id",ue.focusableId),e.uIk("aria-valuemin",ue.min)("aria-valuemax",ue.max)("aria-valuenow",ue.currentValue)("aria-valuetext",ue.currentValue)("aria-disabled",!!ue.disabled||void 0)("aria-readonly",!!ue.readonly||void 0)("aria-orientation",ue.vertical?"vertical":"horizontal")("tabindex",ue.disabled?"-1":ue.tabIndex),e.xp6(2),e.Q6J("ngIf",ue.showButtons))},dependencies:[E.r0,ur,g.NG,ra,b.O5,g.nV,g.pD],encapsulation:2}),Pe})(),kn=(()=>{class Pe{constructor(v,ue,dt){this.renderer=v,this.inputElement=ue,this.ngZone=dt,this.hostClasses=!0,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.onValueChange=new e.vpe,this.autoFillStart=new e.vpe,this.autoFillEnd=new e.vpe,this.listeners=[]}set value(v){this.inputElement&&(this.inputElement.nativeElement.value=v??"",this.onValueChange.emit())}get value(){return this.inputElement.nativeElement.value}get id(){return this.inputElement.nativeElement.id}set id(v){this.renderer.setAttribute(this.inputElement.nativeElement,"id",v)}ngAfterViewInit(){const v=this.inputElement.nativeElement;this.listeners=[this.renderer.listen(v,"focus",()=>this.onFocus.emit()),this.renderer.listen(v,"blur",()=>this.onBlur.emit())],this.ngZone.runOutsideAngular(()=>{this.renderer.listen(v,"animationstart",ue=>{"autoFillStart"===ue.animationName?this.autoFillStart.emit():"autoFillEnd"===ue.animationName&&this.autoFillEnd.emit()})})}ngOnDestroy(){this.listeners.forEach(v=>v())}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.R0b))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["input","kendoTextBox",""]],hostVars:10,hostBindings:function(v,ue){2&v&&e.ekj("k-textbox",ue.hostClasses)("k-input",ue.hostClasses)("k-input-md",ue.hostClasses)("k-rounded-md",ue.hostClasses)("k-input-solid",ue.hostClasses)},inputs:{value:"value"},features:[e._Bn([{provide:g.GX,useExisting:(0,e.Gpc)(()=>Pe)}])]}),Pe})(),ui=(()=>{class Pe{constructor(v,ue,dt,In,er,Br){this.renderer=v,this.element=ue,this.zone=dt,this.changeDetector=In,this.injector=er,this.elementClasses=!0,this.autofillClass=!0,this.valueChange=new e.vpe,this.autoSize=!1,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.onValueChange=new e.vpe,this.autoFillStart=new e.vpe,this.autoFillEnd=new e.vpe,this.listeners=[],this.ngChange=es=>{},this.ngTouched=()=>{},this.direction=Br?"rtl":"ltr"}get id(){return this.element.nativeElement.id}set id(v){this.renderer.setAttribute(this.element.nativeElement,"id",v)}writeValue(v){this.elementValue=v,this.resize()}registerOnChange(v){this.ngChange=v}registerOnTouched(v){this.ngTouched=v}setDisabledState(v){this.setElementProperty("disabled",v)}ngOnInit(){const v=this.element.nativeElement;this.zone.runOutsideAngular(()=>{this.listeners=[this.renderer.listen(v,"focus",this.handleFocus.bind(this)),this.renderer.listen(v,"blur",this.handleBlur.bind(this)),this.renderer.listen(v,"animationstart",ue=>{"autoFillStart"===ue.animationName?this.autoFillStart.emit():"autoFillEnd"===ue.animationName&&this.autoFillEnd.emit()})],(0,g.X_)()&&this.autoSize&&(this.resizeSubscription=(0,a.R)(window,"resize").pipe((0,f.b)(50)).subscribe(()=>this.resize())),this.inputSubscription=(0,a.R)(v,"input").subscribe(this.handleInput.bind(this))}),this.control=this.injector.get(n.a5,null)}ngOnChanges(v){const ue=this.element.nativeElement;v.value&&(this.elementValue=this.value),v.autoSize&&(this.autoSize?(this.initialHeight=ue.offsetHeight,this.renderer.setStyle(ue,"resize","none")):(this.renderer.setStyle(ue,"overflow-y","auto"),this.renderer.setStyle(ue,"resize","both"),ue.style.height=`${this.initialHeight}px`)),this.zone.onStable.pipe((0,A.q)(1)).subscribe(()=>this.resize())}ngOnDestroy(){this.listeners.forEach(v=>v()),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()}get elementValue(){return this.element?this.element.nativeElement.value:""}set elementValue(v){this.setElementProperty("value",v??"")}setElementProperty(v,ue){this.element&&this.renderer.setProperty(this.element.nativeElement,v,ue)}resize(){if(!this.autoSize)return;const v=this.element.nativeElement;this.renderer.setStyle(v,"overflow-y","hidden"),v.style.height=`${this.initialHeight}px`;const ue=v.scrollHeight;ue>this.initialHeight&&(v.style.height=`${ue}px`)}handleInput(){const v=this.elementValue;this.value=v,(this.control||(0,g.g$)(this.onValueChange)||(0,g.g$)(this.valueChange))&&this.zone.run(()=>{this.ngChange(v),this.onValueChange.emit(v),this.valueChange.emit(v),this.changeDetector.markForCheck()}),this.resize()}handleFocus(){(0,g.g$)(this.onFocus)&&this.zone.run(()=>{this.onFocus.emit()})}handleBlur(){((0,g.g$)(this.onBlur)||mr(this.control))&&this.zone.run(()=>{this.ngTouched(),this.onBlur.emit(),this.changeDetector.markForCheck()})}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.zs3),e.Y36(w.lw,8))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["textarea","kendoTextArea",""]],hostVars:13,hostBindings:function(v,ue){2&v&&(e.uIk("dir",ue.direction),e.ekj("k-textarea",ue.elementClasses)("k-input",ue.elementClasses)("k-input-md",ue.elementClasses)("k-rounded-md",ue.elementClasses)("k-input-solid",ue.elementClasses)("k-autofill",ue.autofillClass))},inputs:{autoSize:"autoSize",value:"value"},outputs:{valueChange:"valueChange"},features:[e._Bn([{provide:n.JU,useExisting:(0,e.Gpc)(()=>Pe),multi:!0},{provide:g.GX,useExisting:(0,e.Gpc)(()=>Pe)}]),e.TTD]}),Pe})();const $e=/[eE][\-+]?([0-9]+)/,Ve=Pe=>Pe>=0?Math.floor(Pe):Math.ceil(Pe),Ge=Pe=>{},At=Pe=>!isNaN(Pe)&&null!==Pe;function Rt(Pe,Tn){const v=Tn-String(Pe).length;let ue=Pe;if(v>0){const dt=new Array(v+1).join("0");ue=parseFloat(Pe+dt)}return ue}var Ae=function(Pe){return Pe[Pe.Down=-1]="Down",Pe[Pe.None=0]="None",Pe[Pe.Up=1]="Up",Pe}(Ae||{});let He=(()=>{class Pe extends w.Z1{}return Pe.\u0275fac=function(){let Tn;return function(ue){return(Tn||(Tn=e.n5z(Pe)))(ue||Pe)}}(),Pe.\u0275dir=e.lG2({type:Pe,selectors:[["kendo-numerictextbox-messages-base"]],inputs:{decrement:"decrement",increment:"increment"},features:[e.qOj]}),Pe})(),Kt=(()=>{class Pe extends He{constructor(v){super(),this.service=v}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(w.oQ))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoNumericTextBoxLocalizedMessages",""]],features:[e._Bn([{provide:He,useExisting:(0,e.Gpc)(()=>Pe)}]),e.qOj]}),Pe})();const On=["min","max","step","decimals"],Fi={decimals:null,max:null,min:null,step:1},Ci="k-focus";let qt=(()=>{class Pe{constructor(v,ue,dt,In,er,Br,es){this.intl=v,this.renderer=ue,this.localizationService=dt,this.injector=In,this.ngZone=er,this.changeDetector=Br,this.hostElement=es,this.focusableId=`k-${(0,g.M8)()}`,this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.changeValueOnScroll=!0,this.selectOnFocus=!0,this.value=null,this.valueChange=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.ArrowDirection=Ae,this.arrowDirection=Ae.None,this.hostClasses=!0,this.arrowUpIcon=p.fRI,this.arrowDownIcon=p.M7i,this.inputValue="",this.minValidateFn=Ge,this.maxValidateFn=Ge,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.ngChange=Ge,this.ngTouched=Ge,this.ngValidatorChange=Ge,this.domEvents=[],this.increasePress=Ks=>{this.arrowPress(Ae.Up,Ks)},this.decreasePress=Ks=>{this.arrowPress(Ae.Down,Ks)},this.releaseArrow=()=>{clearTimeout(this.spinTimeout),this.arrowDirection!==Ae.None&&(this.arrowDirection=Ae.None,this.changeDetector.detectChanges())},this.handlePaste=()=>{this.isPasted=!0},this.handleInput=()=>{const Ks=this.numericInput.nativeElement;let{selectionStart:xa,selectionEnd:ha,value:Aa}=Ks;if(this.pressedKey===g.R8.NumpadDecimal&&(Aa=this.replaceNumpadDotValue()),this.isPasted&&(Aa=this.formatInputValue(this.intl.parseNumber(Aa))),!this.isValid(Aa))return Ks.value=this.inputValue,void this.setSelection(xa-1,ha-1);const vl=this.intl.parseNumber(Aa);let ml=this.restrictDecimals(vl);if(this.autoCorrect){const yl=this.limitInputValue(ml);ml=yl.value,xa=yl.selectionStart,ha=yl.selectionEnd}vl!==ml||this.hasTrailingZeros(Aa)||!this.focused?(this.setInputValue(ml),this.setSelection(xa,ha)):this.inputValue=Aa,this.isPasted&&(Ks.value=this.inputValue),this.updateValue(ml),this.previousSelection=null,this.isPasted=!1},this.handleDragEnter=()=>{!this.focused&&!this.isDisabled&&this.setInputValue(this.value,!0)},this.handleMouseDown=()=>{this.mouseDown=!0},this.handleFocus=()=>{if(!this.focused&&(this.focused=!0,!this.isDisabled)){const Ks=this.selectOnFocus||!this.mouseDown;this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{Ks?this.selectAll():this.selectCaret()},0)})}this.mouseDown=!1,(0,g.g$)(this.onFocus)&&this.ngZone.run(()=>{this.onFocus.emit()})},this.handleBlur=()=>{this.changeDetector.markForCheck(),this.focused=!1,this.inputValue!==this.elementValue&&this.handleInput(),this.setInputValue(),((0,g.g$)(this.onBlur)||mr(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.onBlur.emit()})},this.handleKeyDown=Ks=>{if(this.isDisabled)return;let xa;Ks.keyCode===g.R8.ArrowDown?xa=-1:Ks.keyCode===g.R8.ArrowUp&&(xa=1),xa&&this.step&&(Ks.preventDefault(),this.addStep(xa));const ha=this.numericInput.nativeElement;this.previousSelection={end:ha.selectionEnd,start:ha.selectionStart},this.pressedKey=Ks.keyCode},this.handleWheel=Ks=>{if(this.focused&&!this.isDisabled&&this.changeValueOnScroll){Ks.preventDefault();const xa=(Pe=>{let Tn=0;return Pe.wheelDelta?(Tn=Pe.wheelDelta/120,Tn=Tn>0?Math.ceil(Tn):Math.floor(Tn)):Pe.detail&&(Tn=Math.round(-Pe.detail/3)),Tn})(Ks);this.addStep(xa)}},(0,M.s)(da),this.direction=dt.rtl?"rtl":"ltr"}get format(){return this._format??"n2"}set format(v){this._format=v}set tabIndex(v){this.tabindex=v}get tabIndex(){return this.tabindex}set size(v){const ue=v||"medium";this.handleClasses(ue,"size"),this._size=ue}get size(){return this._size}set rounded(v){const ue=v||"medium";this.handleClasses(ue,"rounded"),this._rounded=ue}get rounded(){return this._rounded}set fillMode(v){const ue=v||"solid";this.handleClasses(ue,"fillMode"),this._fillMode=ue}get fillMode(){return this._fillMode}get disableClass(){return this.disabled}ngOnInit(){this.subscriptions=this.localizationService.changes.subscribe(({rtl:v})=>{this.direction=v?"rtl":"ltr"}),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(n.a5,null),this.ngZone.runOutsideAngular(()=>{this.domEvents.push(this.renderer.listen(this.hostElement.nativeElement,"mousewheel",this.handleWheel.bind(this))),this.domEvents.push(this.renderer.listen(this.hostElement.nativeElement,"DOMMouseScroll",this.handleWheel.bind(this)))})}ngAfterViewInit(){["size","rounded","fillMode"].forEach(ue=>{this.handleClasses(this[ue],ue)})}ngOnChanges(v){(0,g.aG)(On,v,!1)&&this.parseOptions(On.filter(ue=>v[ue])),this.verifySettings(),(0,g.aG)(["min","max","rangeValidation"],v,!1)&&(this.minValidateFn=this.rangeValidation?(Pe=>Tn=>!br(Pe)||!br(Tn.value)||Tn.value>=Pe?null:{minError:{minValue:Pe,value:Tn.value}})(this.min):Ge,this.maxValidateFn=this.rangeValidation?(Pe=>Tn=>!br(Pe)||!br(Tn.value)||Tn.value<=Pe?null:{maxError:{maxValue:Pe,value:Tn.value}})(this.max):Ge,this.ngValidatorChange()),(0,g.aG)(["autoCorrect","decimals","min"],v)&&delete this.numericRegex,(0,g.aG)(["value","format"],v,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),(!this.focused||this.intl.parseNumber(this.elementValue)!==this.value)&&this.setInputValue())}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout),this.domEvents.forEach(v=>v())}validate(v){return this.minValidateFn(v)||this.maxValidateFn(v)}registerOnValidatorChange(v){this.ngValidatorChange=v}writeValue(v){this.verifyValue(v);const ue=this.restrictModelValue(v);this.value=ue,this.setInputValue()}registerOnChange(v){this.ngChange=v}registerOnTouched(v){this.ngTouched=v}setDisabledState(v){this.changeDetector.markForCheck(),this.disabled=v}focus(){ss(this.numericInput,"focus")}blur(){ss(this.numericInput,"blur")}notifyValueChange(){this.setInputValue()}get incrementTitle(){return this.localizationService.get("increment")}get decrementTitle(){return this.localizationService.get("decrement")}get isControlInvalid(){return this.control&&this.control.touched&&!this.control.valid}get decimalSeparator(){return this.intl.numberSymbols().decimal}get elementValue(){return this.numericInput.nativeElement.value}set elementValue(v){this.renderer.setProperty(this.numericInput.nativeElement,"value",v)}get focused(){return this.isFocused}set focused(v){if(this.isFocused!==v&&this.hostElement){const ue=this.hostElement.nativeElement;v?this.renderer.addClass(ue,Ci):this.renderer.removeClass(ue,Ci),this.isFocused=v}}get hasDecimals(){return null!==this.decimals&&this.decimals>=0}get isDisabled(){return this.disabled||this.readonly}arrowPress(v,ue){ue.preventDefault(),!this.isDisabled&&!(Pe=>Pe.button&&2===Pe.button||Pe.which&&3===Pe.which)(ue)&&(I.$w||(this.focused=!0,this.focus()),this.arrowDirection!==v&&(this.arrowDirection=v,this.changeDetector.detectChanges()),this.step?this.spin(v,500):this.setInputValue())}updateValue(v){Ti(this.value,v)||this.ngZone.run(()=>{this.value=v,this.ngChange(v),this.valueChange.emit(v),this.changeDetector.markForCheck()})}replaceNumpadDotValue(){let v=this.inputValue||"";if(this.previousSelection){const ue=this.numericInput.nativeElement,{selectionStart:dt,selectionEnd:In}=ue,{start:er,end:Br}=this.previousSelection;ue.value=v=v.substring(0,er)+this.decimalSeparator+v.substring(Br),this.setSelection(dt,In)}return v}isValid(v){return this.numericRegex||(this.numericRegex=(Pe=>{const{autoCorrect:Tn,decimals:v,min:ue}=Pe;let er,dt=Pe.separator;return"."===dt&&(dt="\\"+dt),er=0===v?"\\d*":`(?:(?:\\d+(${dt}\\d*)?)|(?:${dt}\\d*))?`,new RegExp(`^${Tn&&null!==ue&&ue>=0?"":"-?"}${er}$`)})({autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator})),this.numericRegex.test(v)}spin(v,ue){clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout(()=>{this.spin(v,50)},ue),this.addStep(v)}addStep(v){let ue=Zn(this.value||0,this.step*v);ue=this.limitValue(ue),ue=this.restrictDecimals(ue),this.setInputValue(ue),this.updateValue(ue)}setSelection(v,ue){this.focused&&ss(this.numericInput,"setSelectionRange",v,ue)}limitValue(v){let ue=v;return this.isInRange(v)||(At(this.max)&&v>this.max&&(ue=this.max),At(this.min)&&v<this.min&&(ue=this.min)),ue}limitInputValue(v){const{selectionStart:ue,selectionEnd:dt,value:In}=this.numericInput.nativeElement;let er=v,Br=!1;if(!this.isInRange(v)){const es=In.length-String(this.inputValue).length,{min:Ks,max:xa}=this,ha=At(xa),Aa=At(Ks);let vl,ml,yl=v;if(0===ue&&this.inputValue.substr(1)===In)return{selectionEnd:dt,selectionStart:ue,value:null};if(ha&&v>xa?v>0?ml=!0:vl=xa:Aa&&v<Ks&&(v>0?vl=Ks:ml=!0),vl){const Cc=this.tryPadValue(v,vl);Cc&&Ve(v)!==Ve(vl)&&(yl=Cc,Br=!0)}else ml&&this.inputValue&&ue!==In.length&&(yl=parseFloat(In.substr(0,ue)+In.substr(ue+es)));er=this.limitValue(yl),Br=(Br||er!==yl)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+es>0}return{selectionEnd:Br?String(er).length:dt,selectionStart:ue,value:er}}tryPadValue(v,ue){const dt=String(Math.floor(ue)).length,In=Rt(v,dt),er=Rt(v,dt+1);let Br;return this.isInRange(In)?Br=In:this.isInRange(er)&&(Br=er),Br}isInRange(v){return!At(v)||(!At(this.min)||this.min<=v)&&(!At(this.max)||v<=this.max)}restrictModelValue(v){let ue=this.restrictDecimals(v,!0);return this.autoCorrect&&this.limitValue(ue)!==ue&&(ue=null),ue}restrictDecimals(v,ue){let dt=v;if(v&&this.hasDecimals){const In=this.decimals,er=String(v);if(ue||$e.test(er))dt=_t(v,In);else{const Br=er.split(".");let es=Br[1];es&&es.length>In&&(es=es.substr(0,In),dt=parseFloat(`${Br[0]}.${es}`))}}return dt}formatInputValue(v){let ue=Object.is(v,-0)?"-0":String(v);const dt=$e.exec(ue);return dt&&(ue=v.toFixed(Gs(parseInt(dt[1],10)))),ue.replace(".",this.decimalSeparator)}formatValue(v,ue){let dt;return dt=null!==v&&(Pe=>typeof Pe<"u")(v)&&""!==v?ue&&!this.readonly?this.formatInputValue(v):this.intl.formatNumber(v,this.format):"",dt}setInputValue(v=this.value,ue=this.focused){const dt=this.formatValue(v,ue);this.elementValue=dt,this.inputValue=dt}verifySettings(){if((0,e.X6Q)()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max.")}verifyValue(v){if((0,e.X6Q)()&&v&&"number"!=typeof v)throw new Error(`The NumericTextBox component requires value of type Number and ${JSON.stringify(v)} was set.`)}parseOptions(v){for(let ue=0;ue<v.length;ue++){const dt=v[ue],In=this[dt];if("string"==typeof In){const er=parseFloat(In),Br=!isNaN(er);if((0,e.X6Q)()&&!Br&&""!==In)throw new Error(`The NumericTextBox component requires value of type Number or a String representing a number for the ${dt} property and ${JSON.stringify(In)} was set.`);this[dt]=Br?er:Fi[dt]}}}intlChange(){delete this.numericRegex,this.numericInput&&(!this.focused||!this.isValid(this.elementValue))&&this.setInputValue()}hasTrailingZeros(v){if(this.hasDecimals&&this.focused){const ue=v.split(this.decimalSeparator)[1];return ue&&ue.length>this.decimals&&ue.lastIndexOf("0")===ue.length-1}}selectAll(){this.setInputValue(),this.setSelection(0,this.inputValue.length)}selectCaret(){const v=(Pe=>this.numericInput.nativeElement.selectionStart)(),ue=this.elementValue,dt=ue.substring(0,v);if(this.setInputValue(),dt.length){const In=((Pe,Tn)=>{const v=`${this.decimalSeparator}0123456789-`;return Pe.split("").reduce((ue,dt)=>v.includes(dt)?++ue:ue,0)})(dt),er=this.adjustSignificantChars(ue,In);this.setSelection(er,er)}else this.setSelection(0,0)}numberOfLeadingZeroes(v){const ue=v.indexOf(this.decimalSeparator),dt=v.match(/^[^1-9]*?(0+)/);if(dt){const er=dt[1].length;return dt[0].length===ue?er-1:er}return 0}adjustSignificantChars(v,ue){const dt=this.numberOfLeadingZeroes(v);return dt>0?Math.max(0,ue-dt):ue}handleClasses(v,ue){const dt=this.hostElement.nativeElement,In=lr("input",ue,this[ue],v);In.toRemove&&this.renderer.removeClass(dt,In.toRemove),In.toAdd&&this.renderer.addClass(dt,In.toAdd)}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(L.aJ),e.Y36(e.Qsj),e.Y36(w.oQ),e.Y36(e.zs3),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.SBq))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-numerictextbox"]],viewQuery:function(v,ue){if(1&v&&e.Gf(Oe,7),2&v){let dt;e.iGM(dt=e.CRH())&&(ue.numericInput=dt.first)}},hostVars:7,hostBindings:function(v,ue){2&v&&(e.uIk("dir",ue.direction),e.ekj("k-disabled",ue.disableClass)("k-input",ue.hostClasses)("k-numerictextbox",ue.hostClasses))},inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",title:"title",autoCorrect:"autoCorrect",format:"format",max:"max",min:"min",decimals:"decimals",placeholder:"placeholder",step:"step",spinners:"spinners",rangeValidation:"rangeValidation",tabindex:"tabindex",tabIndex:"tabIndex",changeValueOnScroll:"changeValueOnScroll",selectOnFocus:"selectOnFocus",value:"value",maxlength:"maxlength",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur"},exportAs:["kendoNumericTextBox"],features:[e._Bn([w.oQ,{provide:w.mM,useValue:"kendo.numerictextbox"},{provide:n.JU,useExisting:(0,e.Gpc)(()=>Pe),multi:!0},{provide:n.Cf,useExisting:(0,e.Gpc)(()=>Pe),multi:!0},{provide:g.GX,useExisting:(0,e.Gpc)(()=>Pe)}]),e.TTD],decls:4,vars:21,consts:function(){let Tn,v;return Tn=$localize`:kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox:Increase value`,v=$localize`:kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox:Decrease value`,[["kendoNumericTextBoxLocalizedMessages","","increment",Tn,"decrement",v],["role","spinbutton","autocomplete","off","autocorrect","off",1,"k-input-inner",3,"id","tabindex","disabled","readonly","kendoEventsOutsideAngular"],["numericInput",""],["class","k-input-spinner k-spin-button",3,"kendoEventsOutsideAngular",4,"ngIf"],[1,"k-input-spinner","k-spin-button",3,"kendoEventsOutsideAngular"],["type","button","tabindex","-1",1,"k-spinner-increase","k-button","k-icon-button","k-button-solid","k-button-solid-base",3,"kendoEventsOutsideAngular","title"],["name","caret-alt-up","innerCssClass","k-button-icon",3,"svgIcon"],["type","button","tabindex","-1",1,"k-spinner-decrease","k-button","k-icon-button","k-button-solid","k-button-solid-base",3,"kendoEventsOutsideAngular","title"],["name","caret-alt-down","innerCssClass","k-button-icon",3,"svgIcon"]]},template:function(v,ue){1&v&&(e.GkF(0,0),e._UZ(1,"input",1,2),e.YNc(3,Ut,5,22,"span",3)),2&v&&(e.xp6(1),e.Q6J("id",ue.focusableId)("tabindex",ue.tabIndex)("disabled",ue.disabled)("readonly",ue.readonly)("kendoEventsOutsideAngular",e.Hh0(13,An,ue.handleMouseDown,ue.handleDragEnter,ue.handleKeyDown,ue.handleInput,ue.handleFocus,ue.handleBlur,ue.handlePaste)),e.uIk("aria-valuemin",ue.min)("aria-valuemax",ue.max)("aria-valuenow",ue.value)("title",ue.title)("placeholder",ue.placeholder)("maxLength",ue.maxlength)("aria-invalid",ue.isControlInvalid),e.xp6(2),e.Q6J("ngIf",ue.spinners))},dependencies:[D.ZS,Kt,g.nV,b.O5],encapsulation:2}),Pe})(),bn=(()=>{class Pe extends He{constructor(v){super(),this.service=v}get override(){return!0}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(w.oQ))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-numerictextbox-messages"]],features:[e._Bn([{provide:He,useExisting:(0,e.Gpc)(()=>Pe)}]),e.qOj],decls:0,vars:0,template:function(v,ue){},encapsulation:2}),Pe})();Promise.resolve(null);let ro=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[b.ez,g.QY,g.OY,g.uv],g.QY,g.OY,g.uv]}),Pe})(),io=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[b.ez,ro,D.pc,E.hJ]]}),Pe})(),fo=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[b.ez,ro]]}),Pe})(),Fr=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[b.ez,g.OY,g.uv]]}),Pe})(),jr=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[b.ez,g.OY,D.pc]]}),Pe})(),fs=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[b.ez,g.OY]]}),Pe})(),Ca=(()=>{class Pe{constructor(v){this.templateRef=v}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.Rgc,8))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoTextBoxSuffixTemplate",""]]}),Pe})(),ks=(()=>{class Pe{constructor(v){this.templateRef=v}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.Rgc,8))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoTextBoxPrefixTemplate",""]]}),Pe})(),ts=(()=>{class Pe extends w.Z1{}return Pe.\u0275fac=function(){let Tn;return function(ue){return(Tn||(Tn=e.n5z(Pe)))(ue||Pe)}}(),Pe.\u0275dir=e.lG2({type:Pe,selectors:[["kendo-textbox-messages-base"]],inputs:{clear:"clear"},features:[e.qOj]}),Pe})(),na=(()=>{class Pe extends ts{constructor(v){super(),this.service=v}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(w.oQ))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoTextBoxLocalizedMessages",""]],features:[e._Bn([{provide:ts,useExisting:(0,e.Gpc)(()=>Pe)}]),e.qOj]}),Pe})();const Xs="k-focus",Ps={checkIcon:p.eQZ,exclamationCircleIcon:p.tjX,xIcon:p.FZE};let Qi=(()=>{class Pe{constructor(v,ue,dt,In,er,Br){this.localizationService=v,this.ngZone=ue,this.changeDetector=dt,this.renderer=In,this.injector=er,this.hostElement=Br,this.focusableId=`k-${(0,g.M8)()}`,this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new e.vpe,this.inputFocus=new e.vpe,this.inputBlur=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.hostClasses=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleInputFocus=()=>{this.disabled||(this.selectOnFocus&&this.value&&this.ngZone.run(()=>{setTimeout(()=>{this.selectAll()})}),(0,g.g$)(this.onFocus)&&(this.isFocused||this.ngZone.run(()=>{this.onFocus.emit()})),(0,g.g$)(this.inputFocus)&&(!this.focusChangedProgrammatically||this.focusChangedProgrammatically&&this.clearButtonClicked)&&this.ngZone.run(()=>{this.inputFocus.emit()}),this.ngZone.run(()=>{this.isFocused=!0}))},this.handleInputBlur=()=>{this.changeDetector.markForCheck(),((0,g.g$)(this.inputBlur)||mr(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.inputBlur.emit()})},this.handleInput=es=>{const Ks=es.target,xa=(0,g.G6)(navigator.userAgent),ha=xa&&(Pe=>/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(Pe))(Ks.value)?es.data:Ks.value,[Aa,vl]=[Ks.selectionStart,Ks.selectionEnd];this.updateValue(ha),xa&&Ks.setSelectionRange(Aa,vl)},this.ngChange=es=>{},this.ngTouched=()=>{},(0,M.s)(da),this.direction=v.rtl?"rtl":"ltr"}set size(v){const ue=v||"medium";this.handleClasses(ue,"size"),this._size=ue}get size(){return this._size}set rounded(v){const ue=v||"medium";this.handleClasses(ue,"rounded"),this._rounded=ue}get rounded(){return this._rounded}set fillMode(v){const ue=v||"solid";this.handleClasses(ue,"fillMode"),this._fillMode=ue}get fillMode(){return this._fillMode}set tabIndex(v){this.tabindex=v}get tabIndex(){return this.tabindex}get disabledClass(){return this.disabled}ngOnInit(){this.control=this.injector.get(n.a5,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe(({rtl:v})=>{this.direction=v?"rtl":"ltr"})}ngAfterViewInit(){const v=this.hostElement.nativeElement;let ue=!1,dt=!1;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(v,"focusin",()=>{this.isFocused||this.ngZone.run(()=>{this.onFocus.emit(),this.isFocused=!0})})),this.subscriptions.add(this.renderer.listen(v,"focusout",er=>{this.isFocused&&(dt?(ys(er.relatedTarget,es=>es===this.hostElement.nativeElement)||this.handleBlur(),dt=!1):!ue&&!this.clearButtonClicked&&this.handleBlur())})),this.subscriptions.add(this.renderer.listen(v,"mouseenter",()=>{ue=!0})),this.subscriptions.add(this.renderer.listen(v,"mouseleave",()=>{ue=!1})),this.subscriptions.add(this.renderer.listen(v,"keydown",er=>{dt=er.keyCode===g.R8.Tab}))}),["size","rounded","fillMode"].forEach(er=>{this.handleClasses(this[er],er)})}ngOnChanges(v){(v.disabled||v.readonly||v.value)&&this.checkClearButton()}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}svgIcon(v){return Ps[v]}focus(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)}blur(){this.focusChangedProgrammatically=!0;const v=this.hostElement.nativeElement.querySelector(":focus");v&&v.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1}clearTitle(){return this.localizationService.get("clear")}checkClearButton(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value}clearValue(v){v&&v.preventDefault(),this.clearButtonClicked=!0,this.input.nativeElement.value="",this.input.nativeElement.focus(),this.updateValue(""),this.checkClearButton(),this.clearButtonClicked=!1}writeValue(v){this.value=v,this.checkClearButton()}registerOnChange(v){this.ngChange=v}registerOnTouched(v){this.ngTouched=v}setDisabledState(v){this.changeDetector.markForCheck(),this.disabled=v}showErrorsInitial(){if(!this.control)return!1;const{invalid:v,dirty:ue,touched:dt}=this.control;return v&&(ue||dt)}showSuccessInitial(){if(!this.control)return!1;const{valid:v,dirty:ue,touched:dt}=this.control;return v&&(ue||dt)}get isControlInvalid(){return this.control&&this.control.touched&&!this.control.valid}get successIconClasses(){if(!this.successIcon)return"check"}get customSuccessIconClasses(){if(this.successIcon)return this.successIcon}get errorIconClasses(){if(!this.errorIcon)return"exclamation-circle"}get customIconClasses(){if(this.errorIcon)return this.errorIcon}get customClearButtonClasses(){if(this.clearButtonIcon)return this.clearButtonIcon}get clearButtonClass(){if(!this.clearButtonIcon)return"x"}get hasErrors(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon}get isSuccessful(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon}setSelection(v,ue){this.isFocused&&ss(this.input,"setSelectionRange",v,ue)}selectAll(){this.value&&this.setSelection(0,this.value.length)}updateValue(v){Ti(this.value,v)||this.ngZone.run(()=>{this.value=v,this.ngChange(v),this.valueChange.emit(v),this.checkClearButton(),this.changeDetector.markForCheck()})}get isFocused(){return this._isFocused}set isFocused(v){if(this._isFocused!==v&&this.hostElement){const ue=this.hostElement.nativeElement;v&&!this.disabled?this.renderer.addClass(ue,Xs):this.renderer.removeClass(ue,Xs),this._isFocused=v}}handleBlur(){this.ngZone.run(()=>{this.focusChangedProgrammatically||this.onBlur.emit(),this.isFocused=!1})}handleClasses(v,ue){const dt=this.hostElement.nativeElement,In=lr("input",ue,this[ue],v);In.toRemove&&this.renderer.removeClass(dt,In.toRemove),In.toAdd&&this.renderer.addClass(dt,In.toAdd)}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(w.oQ),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.zs3),e.Y36(e.SBq))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-textbox"]],contentQueries:function(v,ue,dt){if(1&v&&(e.Suo(dt,Ca,5),e.Suo(dt,ks,5)),2&v){let In;e.iGM(In=e.CRH())&&(ue.suffixTemplate=In.first),e.iGM(In=e.CRH())&&(ue.prefixTemplate=In.first)}},viewQuery:function(v,ue){if(1&v&&e.Gf($n,7),2&v){let dt;e.iGM(dt=e.CRH())&&(ue.input=dt.first)}},hostVars:7,hostBindings:function(v,ue){2&v&&(e.uIk("dir",ue.direction),e.ekj("k-disabled",ue.disabledClass)("k-textbox",ue.hostClasses)("k-input",ue.hostClasses))},inputs:{focusableId:"focusableId",title:"title",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",value:"value",selectOnFocus:"selectOnFocus",showSuccessIcon:"showSuccessIcon",showErrorIcon:"showErrorIcon",clearButton:"clearButton",successIcon:"successIcon",successSvgIcon:"successSvgIcon",errorIcon:"errorIcon",errorSvgIcon:"errorSvgIcon",clearButtonIcon:"clearButtonIcon",clearButtonSvgIcon:"clearButtonSvgIcon",size:"size",rounded:"rounded",fillMode:"fillMode",tabIndex:"tabIndex",placeholder:"placeholder",maxlength:"maxlength"},outputs:{valueChange:"valueChange",inputFocus:"inputFocus",inputBlur:"inputBlur",onFocus:"focus",onBlur:"blur"},exportAs:["kendoTextBox"],features:[e._Bn([w.oQ,{provide:w.mM,useValue:"kendo.textbox"},{provide:n.JU,useExisting:(0,e.Gpc)(()=>Pe),multi:!0},{provide:g.GX,useExisting:(0,e.Gpc)(()=>Pe)}]),e.TTD],decls:10,vars:19,consts:function(){let Tn;return Tn=$localize`:kendo.textbox.clear|The title for the **Clear** button in the TextBox.:Clear`,[["kendoTextBoxLocalizedMessages","","clear",Tn],[1,"k-input-prefix"],[4,"ngIf"],[1,"k-input-inner",3,"id","disabled","readonly","value","kendoEventsOutsideAngular"],["input",""],["role","button","class","k-clear-value",3,"tabindex","title","click","mousedown","keydown.enter","keydown.space",4,"ngIf"],["innerCssClass","k-input-validation-icon",3,"name","customFontClass","svgIcon",4,"ngIf"],[1,"k-input-suffix"],[3,"ngTemplateOutlet"],["role","button",1,"k-clear-value",3,"tabindex","title","click","mousedown","keydown.enter","keydown.space"],[3,"name","customFontClass","svgIcon"],["innerCssClass","k-input-validation-icon",3,"name","customFontClass","svgIcon"]]},template:function(v,ue){1&v&&(e.GkF(0,0),e.TgZ(1,"span",1),e.YNc(2,ut,1,1,null,2),e.qZA(),e._UZ(3,"input",3,4),e.YNc(5,Wt,2,6,"span",5),e.YNc(6,dn,1,3,"kendo-icon-wrapper",6),e.YNc(7,sn,1,3,"kendo-icon-wrapper",6),e.TgZ(8,"span",7),e.YNc(9,yi,1,1,null,2),e.qZA()),2&v&&(e.xp6(2),e.Q6J("ngIf",ue.prefixTemplate),e.xp6(1),e.Q6J("id",ue.focusableId)("disabled",ue.disabled)("readonly",ue.readonly)("value",ue.value)("kendoEventsOutsideAngular",e.kEZ(15,nn,ue.handleInputFocus,ue.handleInputBlur,ue.handleInput)),e.uIk("tabindex",ue.disabled?void 0:ue.tabindex)("placeholder",ue.placeholder)("title",ue.title)("maxlength",ue.maxlength)("aria-invalid",ue.isControlInvalid),e.xp6(2),e.Q6J("ngIf",ue.showClearButton),e.xp6(1),e.Q6J("ngIf",ue.hasErrors),e.xp6(1),e.Q6J("ngIf",ue.isSuccessful),e.xp6(2),e.Q6J("ngIf",ue.suffixTemplate))},dependencies:[D.ZS,na,b.O5,b.tP,g.nV],encapsulation:2}),Pe})(),Ro=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({}),Pe})(),Sr=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[b.ez,g.OY,Ro,D.pc],g.OY]}),Pe})(),rs=(()=>{class Pe{constructor(v,ue,dt,In,er,Br){this.localizationService=v,this.ngZone=ue,this.changeDetector=dt,this.renderer=In,this.injector=er,this.hostElement=Br,this.title="",this.disabled=!1,this.readonly=!1,this.value=null,this.selectOnFocus=!1,this.inputFocus=new e.vpe,this.inputBlur=new e.vpe,this.subscriptions=new o.w0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputBlur=()=>{this.changeDetector.markForCheck(),((0,g.g$)(this.inputBlur)||mr(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.inputBlur.emit()})},this.ngChange=es=>{},this.ngTouched=()=>{}}get disabledClass(){return this.disabled}ngOnDestroy(){this.subscriptions.unsubscribe()}setDisabledState(v){this.changeDetector.markForCheck(),this.disabled=v}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(w.oQ),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.zs3),e.Y36(e.SBq))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-textfield-base"]],viewQuery:function(v,ue){if(1&v&&e.Gf($n,7),2&v){let dt;e.iGM(dt=e.CRH())&&(ue.input=dt.first)}},hostVars:3,hostBindings:function(v,ue){2&v&&(e.uIk("dir",ue.direction),e.ekj("k-disabled",ue.disabledClass))},inputs:{title:"title",disabled:"disabled",readonly:"readonly",value:"value",selectOnFocus:"selectOnFocus",placeholder:"placeholder"},outputs:{inputFocus:"inputFocus",inputBlur:"inputBlur"},decls:0,vars:0,template:function(v,ue){},encapsulation:2}),Pe})();const Os={vertical:"k-resize-y",horizontal:"k-resize-x",both:"k-resize",none:"k-resize-none",auto:"k-resize-none"},Ys="k-focus";let nl=(()=>{class Pe extends rs{constructor(v,ue,dt,In,er,Br){super(v,ue,dt,In,er,Br),this.localizationService=v,this.ngZone=ue,this.changeDetector=dt,this.renderer=In,this.injector=er,this.hostElement=Br,this.focusableId=`k-${(0,g.M8)()}`,this.hostClasses=!0,this.flow="vertical",this.tabindex=0,this.resizable="vertical",this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.valueChange=new e.vpe,this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleInput=es=>{this.updateValue(es.target.value),this.resize()},this.handleInputFocus=()=>{this.disabled||(this.selectOnFocus&&this.value&&this.ngZone.run(()=>{setTimeout(()=>{this.selectAll()})}),(0,g.g$)(this.onFocus)&&(this.isFocused||this.ngZone.run(()=>{this.onFocus.emit()})),(0,g.g$)(this.inputFocus)&&(this.focusChangedProgrammatically||this.ngZone.run(()=>{this.inputFocus.emit()})),this.ngZone.run(()=>{this.isFocused=!0}))},(0,M.s)(da),this.direction=v.rtl?"rtl":"ltr"}get flowCol(){return"vertical"===this.flow}get flowRow(){return"horizontal"===this.flow}set tabIndex(v){this.tabindex=v}get tabIndex(){return this.tabindex}set size(v){const ue=v||"medium";this.handleClasses(ue,"size"),this._size=ue}get size(){return this._size}set rounded(v){const ue=v||"medium";this.handleClasses(ue,"rounded"),this._rounded=ue}get rounded(){return this._rounded}set fillMode(v){const ue=v||"solid";this.handleClasses(ue,"fillMode"),this._fillMode=ue}get fillMode(){return this._fillMode}ngAfterViewInit(){const v=this.hostElement.nativeElement;let ue=!1,dt=!1;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(v,"focusin",()=>{this.isFocused||this.ngZone.run(()=>{this.onFocus.emit(),this.isFocused=!0})})),this.subscriptions.add(this.renderer.listen(v,"focusout",er=>{this.isFocused&&(dt?(ys(er.relatedTarget,es=>es===this.hostElement.nativeElement)||this.handleBlur(),dt=!1):ue||this.handleBlur())})),this.subscriptions.add(this.renderer.listen(v,"mouseenter",()=>{ue=!0})),this.subscriptions.add(this.renderer.listen(v,"mouseleave",()=>{ue=!1})),this.subscriptions.add(this.renderer.listen(v,"keydown",er=>{dt=er.keyCode===g.R8.Tab})),this.handleFlow()}),["size","rounded","fillMode"].forEach(er=>{this.handleClasses(this[er],er)})}ngOnInit(){this.control=this.injector.get(n.a5,null),(0,g.X_)()&&"auto"===this.resizable&&(this.resizeSubscription=(0,a.R)(window,"resize").pipe((0,f.b)(50)).subscribe(()=>this.resize())),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.subscriptions=this.localizationService.changes.subscribe(({rtl:v})=>{this.direction=v?"rtl":"ltr"})}ngOnChanges(v){const ue=this.hostElement.nativeElement,dt=this.input.nativeElement;v.flow&&this.handleFlow(),v.resizable&&("auto"===this.resizable?(this.renderer.removeClass(dt,"!k-overflow-y-auto"),this.initialHeight=dt.offsetHeight):(this.renderer.addClass(dt,"!k-overflow-y-auto"),dt.style.height=`${this.initialHeight}px`)),v.cols&&(br(v.cols.currentValue)?this.renderer.setStyle(ue,"width","auto"):this.renderer.removeStyle(ue,"width")),v.value&&this.resize()}writeValue(v){this.value=v,this.resize()}registerOnChange(v){this.ngChange=v}registerOnTouched(v){this.ngTouched=v}updateValue(v){Ti(this.value,v)||this.ngZone.run(()=>{this.value=v,this.ngChange(v),this.valueChange.emit(v),this.changeDetector.markForCheck()})}ngOnDestroy(){super.ngOnDestroy(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()}get resizableClass(){return Os[this.resizable]}get isControlInvalid(){return this.control&&this.control.touched&&!this.control.valid}focus(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)}blur(){this.focusChangedProgrammatically=!0;const v=this.hostElement.nativeElement.querySelector(":focus");v&&v.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1}resize(){"auto"===this.resizable&&this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{const v=this.hostElement.nativeElement,ue=this.input.nativeElement;this.renderer.setStyle(ue,"height",`${this.initialHeight}px`);const dt=ue.scrollHeight;this.renderer.setStyle(v,"min-height",`${dt}px`),dt>this.initialHeight&&this.renderer.setStyle(ue,"height",`${dt}px`)},0)})}get isFocused(){return this._isFocused}set isFocused(v){if(this._isFocused!==v&&this.hostElement){const ue=this.hostElement.nativeElement;v&&!this.disabled?this.renderer.addClass(ue,Ys):this.renderer.removeClass(ue,Ys),this._isFocused=v}}handleBlur(){this.ngZone.run(()=>{this.focusChangedProgrammatically||this.onBlur.emit(),this.isFocused=!1})}setSelection(v,ue){this.isFocused&&ss(this.input,"setSelectionRange",v,ue)}selectAll(){this.value&&this.setSelection(0,this.value.length)}handleClasses(v,ue){const dt=this.hostElement.nativeElement,In=lr("input",ue,this[ue],v);In.toRemove&&this.renderer.removeClass(dt,In.toRemove),In.toAdd&&this.renderer.addClass(dt,In.toAdd)}handleFlow(){const v="vertical"===this.flow,In=this.hostElement.nativeElement.children[1];this.renderer[v?"addClass":"removeClass"](this.input.nativeElement,"!k-flex-none"),In&&this.renderer[v?"removeClass":"addClass"](In,"!k-align-items-start")}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(w.oQ),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.zs3),e.Y36(e.SBq))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-textarea"]],hostVars:8,hostBindings:function(v,ue){2&v&&e.ekj("k-textarea",ue.hostClasses)("k-input",ue.hostClasses)("!k-flex-col",ue.flowCol)("!k-flex-row",ue.flowRow)},inputs:{focusableId:"focusableId",flow:"flow",rows:"rows",cols:"cols",maxlength:"maxlength",tabindex:"tabindex",tabIndex:"tabIndex",resizable:"resizable",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{onFocus:"focus",onBlur:"blur",valueChange:"valueChange"},exportAs:["kendoTextArea"],features:[e._Bn([w.oQ,{provide:w.mM,useValue:"kendo.textarea"},{provide:n.JU,useExisting:(0,e.Gpc)(()=>Pe),multi:!0},{provide:g.GX,useExisting:(0,e.Gpc)(()=>Pe)}]),e.qOj,e.TTD],ngContentSelectors:mi,decls:4,vars:20,consts:[[1,"k-input-inner",3,"ngClass","id","value","disabled","readonly","kendoEventsOutsideAngular"],["input",""]],template:function(v,ue){1&v&&(e.F$t(Mi),e.TgZ(0,"textarea",0,1),e._uU(2,"            "),e.qZA(),e.Hsn(3)),2&v&&(e.Q6J("ngClass",ue.resizableClass)("id",ue.focusableId)("value",ue.value)("disabled",ue.disabled)("readonly",ue.readonly)("kendoEventsOutsideAngular",e.kEZ(16,nn,ue.handleInputFocus,ue.handleInputBlur,ue.handleInput)),e.uIk("aria-multiline",!0)("aria-disabled",!!ue.disabled||void 0)("aria-readonly",!!ue.readonly||void 0)("placeholder",ue.placeholder)("rows",ue.rows)("cols",ue.cols)("tabindex",ue.tabIndex)("title",ue.title)("maxlength",ue.maxlength)("aria-invalid",ue.isControlInvalid))},dependencies:[b.mk,g.nV],encapsulation:2}),Pe})(),xl=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[b.ez,g.OY,Ro],g.OY]}),Pe})(),eo=(()=>{class Pe extends w.oQ{constructor(v,ue,dt){super(v,ue,dt)}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.LFG(w.mM),e.LFG(w.ez,8),e.LFG(w.lw,8))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),To=(()=>{class Pe extends w.oQ{constructor(v,ue,dt,In){super(v,ue,dt),this.colorPickerLocalization=In}get(v){return this.colorPickerLocalization?this.colorPickerLocalization.get(v):super.get(v)}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.LFG(w.mM),e.LFG(w.ez,8),e.LFG(w.lw,8),e.LFG(eo,8))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const _l="accessible",pa={basic:{colors:"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7",columns:10},office:{colors:"ffffff, 000000, e6e6e6, 435569, 4371c4, ed7e32, a5a4a5, febf04, 5a9bd5, 71ae48, f2f2f3, 7f7f7f, d1cece, d5dde3, dae1f4, fce5d4, deeded, fff2cc, deeaf6, e1efd9, d7d8d8, 585959, aeabab, adbaca, b4c5e7, f6caac, dbdbdb, ffe498, bcd6ee, c5e0b2, bfbfc0, 3f3f3f, 767070, 8595b1, 8fabdb, f5b183, c9c8c9, fed965, 9bc4e5, a8d08d, a5a5a6, 262625, 393939, 334050, 2e5496, c45a11, 7b7b7a, bf9000, 2f75b5, 548235, 7f7f7f, 0b0c0c, 161616, 222a34, 203764, 843d0b, 525252, 7f6000, 1d4d79, 375623",columns:10},apex:{colors:"ffffff, 000000, c9c2d1, 69676d, ceb966, 9cb084, 6bb1c9, 6585cf, 7e6bc9, a379bb, f2f2f2, 7f7f7f, f4f2f5, e0e0e2, f5f1e0, ebefe6, e1eff4, e0e6f5, e5e1f4, ece4f1, d8d8d8, 595959, e9e6ec, c2c1c5, ebe3c1, d7dfcd, c3dfe9, c1ceeb, cbc3e9, dac9e3, bfbfbf, 3f3f3f, dedae3, a4a3a8, e1d5a3, c3cfb5, a6d0de, a2b5e2, b1a6de, c7aed6, a5a5a5, 262626, 9688a5, 4e4d51, ae9638, 758c5a, 3d8da9, 365bb0, 533da9, 7d4d99, 7f7f7f, 0c0c0c, 635672, 343336, 746425, 4e5d3c, 295e70, 243c75, 372970, 533366",columns:10},austin:{colors:"ffffff, 000000, caf278, 3e3d2d, 94c600, 71685a, ff6700, 909465, 956b43, fea022, f2f2f2, 7f7f7f, f4fce4, dddcd0, efffc0, e3e1dc, ffe0cb, e8e9df, ece1d6, feecd2, d8d8d8, 595959, e9f9c9, bbb9a1, dfff82, c8c3ba, ffc299, d2d4c0, dac3ad, fed9a6, bfbfbf, 3f3f3f, dff7ae, ada598, cfff43, ada598, ffa365, bcbfa1, c8a585, fec67a, a5a5a5, 262626, a9ea25, 2e2d21, 6f9400, 544e43, bf4d00, 6c6f4b, 6f5032, d77b00, 7f7f7f, 0c0c0c, 74a50f, 1f1e16, 4a6300, 38342d, 7f3300, 484a32, 4a3521, 8f5200",columns:10},clarity:{colors:"ffffff, 292934, f3f2dc, d2533c, 93a299, ad8f67, 726056, 4c5a6a, 808da0, 79463d, f2f2f2, e7e7ec, e7e5b9, f6dcd8, e9ecea, eee8e0, e4dedb, d8dde3, e5e8ec, e9d6d3, d8d8d8, c4c4d1, d5d185, edbab1, d3d9d6, ded2c2, c9beb8, b2bcc8, ccd1d9, d3aea7, bfbfbf, 8a8aa3, aca73b, e4978a, bec7c1, cdbba3, af9e94, 8c9bac, b2bac6, bd857c, a5a5a5, 56566e, 56531d, a43925, 6b7c72, 866b48, 554840, 39434f, 5c697b, 5a342d, 7f7f7f, 3b3b4b, 22210b, 6d2619, 47534c, 594730, 39302b, 262d35, 3d4652, 3c231e",columns:10},slipstream:{colors:"ffffff, 000000, b4dcfa, 212745, 4e67c8, 5eccf3, a7ea52, 5dceaf, ff8021, f14124, f2f2f2, 7f7f7f, 8bc9f7, c7cce4, dbe0f4, def4fc, edfadc, def5ef, ffe5d2, fcd9d3, d8d8d8, 595959, 4facf3, 909aca, b8c2e9, beeafa, dbf6b9, beebdf, ffcca6, f9b3a7, bfbfbf, 3f3f3f, 0d78c9, 5967af, 94a3de, 9ee0f7, caf297, 9de1cf, ffb279, f68d7b, a5a5a5, 262626, 063c64, 181d33, 31479f, 11b2eb, 81d319, 34ac8b, d85c00, c3260c, 7f7f7f, 0c0c0c, 021828, 101322, 202f6a, 0b769c, 568c11, 22725c, 903d00, 821908",columns:10},metro:{colors:"ffffff, 000000, d6ecff, 4e5b6f, 7fd13b, ea157a, feb80a, 00addc, 738ac8, 1ab39f, f2f2f2, 7f7f7f, a7d6ff, d9dde4, e5f5d7, fad0e4, fef0cd, c5f2ff, e2e7f4, c9f7f1, d8d8d8, 595959, 60b5ff, b3bcca, cbecb0, f6a1c9, fee29c, 8be6ff, c7d0e9, 94efe3, bfbfbf, 3f3f3f, 007dea, 8d9baf, b2e389, f272af, fed46b, 51d9ff, aab8de, 5fe7d5, a5a5a5, 262626, 003e75, 3a4453, 5ea226, af0f5b, c58c00, 0081a5, 425ea9, 138677, 7f7f7f, 0c0c0c, 00192e, 272d37, 3f6c19, 750a3d, 835d00, 00566e, 2c3f71, 0c594f",columns:10},flow:{colors:"ffffff, 000000, dbf5f9, 04617b, 0f6fc6, 009dd9, 0bd0d9, 10cf9b, 7cca62, a5c249, f2f2f2, 7f7f7f, b2e9f2, b4ecfc, c7e2fa, c4eeff, c9fafc, c9faed, e4f4df, edf2da, d8d8d8, 595959, 76d9e8, 6adafa, 90c6f6, 89deff, 93f5f9, 94f6db, cae9c0, dbe6b6, bfbfbf, 3f3f3f, 21b2c8, 20c8f7, 59a9f2, 4fceff, 5df0f6, 5ff2ca, b0dfa0, c9da91, a5a5a5, 262626, 105964, 02485c, 0b5394, 0075a2, 089ca2, 0b9b74, 54a838, 7e9532, 7f7f7f, 0c0c0c, 062328, 01303d, 073763, 004e6c, 05686c, 07674d, 387025, 546321",columns:10},hardcover:{colors:"ffffff, 000000, ece9c6, 895d1d, 873624, d6862d, d0be40, 877f6c, 972109, aeb795, f2f2f2, 7f7f7f, e1dca5, f2e0c6, f0d0c9, f6e6d5, f5f2d8, e7e5e1, fbc7bc, eef0e9, d8d8d8, 595959, d0c974, e6c28d, e2a293, eeceaa, ece5b2, cfccc3, f78f7a, dee2d4, bfbfbf, 3f3f3f, a29a36, daa454, d4735e, e6b681, e2d88c, b7b2a5, f35838, ced3bf, a5a5a5, 262626, 514d1b, 664515, 65281a, a2641f, a39428, 655f50, 711806, 879464, 7f7f7f, 0c0c0c, 201e0a, 442e0e, 431b11, 6c4315, 6d621a, 433f35, 4b1004, 5a6243",columns:10},trek:{colors:"ffffff, 000000, fbeec9, 4e3b30, f0a22e, a5644e, b58b80, c3986d, a19574, c17529, f2f2f2, 7f7f7f, f7e09e, e1d6cf, fcecd5, eddfda, f0e7e5, f3eae1, ece9e3, f5e3d1, d8d8d8, 595959, f3cc5f, c4ad9f, f9d9ab, dcc0b6, e1d0cc, e7d5c4, d9d4c7, ebc7a3, bfbfbf, 3f3f3f, d29f0f, a78470, f6c781, cba092, d2b9b2, dbc1a7, c6bfab, e1ac76, a5a5a5, 262626, 694f07, 3a2c24, c87d0e, 7b4b3a, 926255, a17242, 7b7153, 90571e, 7f7f7f, 0c0c0c, 2a1f03, 271d18, 855309, 523226, 614138, 6b4c2c, 524b37, 603a14",columns:10},verve:{colors:"ffffff, 000000, d2d2d2, 666666, ff388c, e40059, 9c007f, 68007f, 005bd3, 00349e, f2f2f2, 7f7f7f, bdbdbd, e0e0e0, ffd7e8, ffc6dc, ffb8f1, f1b2ff, c3dcff, b8cfff, d8d8d8, 595959, 9d9d9d, c1c1c1, ffafd1, ff8eba, ff71e4, e365ff, 87baff, 72a0ff, bfbfbf, 3f3f3f, 696969, a3a3a3, ff87ba, ff5597, ff2ad7, d519ff, 4b98ff, 2b71ff, a5a5a5, 262626, 343434, 4c4c4c, e90062, ab0042, 75005f, 4e005f, 00449e, 002676, 7f7f7f, 0c0c0c, 151515, 333333, 9b0041, 72002c, 4e003f, 34003f, 002d69, 00194f",columns:10},monochrome:{colors:"000000, 1a1a1a, 333333, 4d4d4d, 666666, 808080, 999999, b3b3b3, cccccc, e6e6e6, f2f2f2, ffffff",columns:12},accessible:{colors:"black, grey, darkred, red, darkorange, gold, green, blue, darkblue, purple, white, darkgrey, saddlebrown, pink, orange, yellow, lightgreen, lightskyblue, lightblue, mediumpurple",columns:10}};let rl=(()=>{class Pe{getPaletteSettings(v,ue){const In=v.palette;return{palette:In||("name"!==ue?"office":_l),tileSize:v.tileSize||24,columns:v.columns||("string"==typeof In&&pa[In]?pa[In].columns:void 0)||10}}paletteTileLayout(v){return"number"==typeof v?{width:v,height:v}:{width:v.width?v.width:v.height,height:v.height?v.height:v.width}}}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();class Nl extends g.wY{constructor(Tn){super(),this.originalEvent=Tn}}class nd extends g.wY{}class Ct extends g.wY{}class rn{constructor(Tn){this.color=Tn,this.openPrevented=!1}preventOpen(){this.openPrevented=!0}isOpenPrevented(){return this.openPrevented}}const We=(Pe,Tn,v=!1,ue=!0)=>{if(-1===["hex","rgba","name"].indexOf(Tn))throw new Error(`Unsupported color output format '${Tn}'. The available options are 'hex', 'rgba' or 'name'.`);if(!br(Pe))return;if("name"===Tn)return function Or(Pe,Tn){if(Pe=Pe.toLowerCase().trim(),br(U.Z[Pe]))return Pe;(0,P.ZP)(Pe,Tn)&&(Pe=(0,P.ZP)(Pe,Tn).toHex());const v=Object.keys(U.Z).find(ue=>U.Z[ue]===Pe);if(!v&&!Tn)throw new Error(`The provided color ${Pe} is not supported for 'format="name"' property.To display ${Pe} color, the component 'format' property should be set to 'hex' or 'rgba' `);return v}(Pe,ue);const In=(0,P.ZP)(Pe.trim(),ue);return br(In)?"hex"===Tn?gi(In,v):In.toCssRgba():void 0},ct=(Pe,Tn=!0)=>{const v=(0,P.ZP)(Pe,Tn);return br(v)?v.toBytes():{}},Qt=(Pe,Tn="rgba",v=!1)=>{const ue=ri(Pe.h,0,359.9),dt=ri(Pe.s,0,1),In=ri(Pe.v,0,1),er=ri(Pe.a,0,1),Br=O.Z.fromHSV(ue,dt,In,er);return"hex"===Tn?gi(Br,v):Br.toCssRgba()},gi=(Pe,Tn)=>Tn&&Pe.a<1?Pe.toCss({alpha:!0}):Pe.toCss(),Do=Pe=>Qt({h:Pe,s:1,v:1,a:1}),hs=(Pe,Tn)=>{const v=ri(Pe.r,0,255),ue=ri(Pe.g,0,255),dt=ri(Pe.b,0,255),In=ri(Pe.a,0,1),er=ri(Tn.r,0,255),Br=ri(Tn.g,0,255),es=ri(Tn.b,0,255);return{r:Math.round((1-In)*er+In*v),g:Math.round((1-In)*Br+In*ue),b:Math.round((1-In)*es+In*dt)}},Zs=Pe=>{const Tn=[Pe.r,Pe.g,Pe.b].map(function(v){return(v/=255)<=.03928?v/12.92:Math.pow((v+.055)/1.055,2.4)});return.2126*Tn[0]+.7152*Tn[1]+.0722*Tn[2]},za=(Pe,Tn)=>((Pe,Tn)=>(Math.max(Pe,Tn)+.05)/(Math.min(Pe,Tn)+.05))(Zs(hs(Pe,Tn)),Zs(hs(Tn,{r:0,g:0,b:0,a:1}))),bc=(Pe,Tn)=>{const v=Tn[0]-Pe[0],ue=Tn[1]-Pe[1];return{length:Math.sqrt(Math.pow(v,2)+Math.pow(ue,2)),angle:Math.atan2(ue,v)}},Wl=(Pe,Tn)=>0===Pe.length?"":Pe.reduce((ue,dt,In,er)=>0===In?`M ${dt[0]},${dt[1]}`:`${ue} ${Tn(dt,In,er)}`,"");let va=(()=>{class Pe extends w.oQ{constructor(v,ue,dt,In){super(v,ue,dt),this.flatColorPickerLocalization=In}get(v){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(v):super.get(v)}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.LFG(w.mM),e.LFG(w.ez,8),e.LFG(w.lw,8),e.LFG(To,8))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),Hc=(()=>{class Pe{constructor(v){this.host=v}ngOnInit(){this.host.numericInput.nativeElement.setAttribute("aria-label",this.localizationService.get(`${this.kendoAdditionalNumericLabel}ChannelLabel`))}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(qt))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoAdditionalNumericLabel",""]],inputs:{kendoAdditionalNumericLabel:"kendoAdditionalNumericLabel",localizationService:"localizationService"}}),Pe})(),Vc=(()=>{class Pe{constructor(v,ue,dt){this.host=v,this.renderer=ue,this.localizationService=dt,this.focusableId=`k-${(0,g.M8)()}`,this.tabindex=-1,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new e.vpe,this.tabOut=new e.vpe,this.colorInputClass=!0,this.rgba={},this.caretAltExpandIcon=p.x9g,this.subscriptions=new o.w0}get isFocused(){if(!(0,g.X_)()||!br(this.host))return!1;const v=document.activeElement;return this.host.nativeElement.contains(v)}get rgbaInputValid(){return Object.keys(this.rgba).every(v=>br(this.rgba[v]))}ngAfterViewInit(){this.initDomEvents()}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}ngOnChanges(v){br(v.value)&&!this.isFocused&&(this.hex=We(this.value,"hex",this.opacity),this.rgba=ct(this.value),this.rgba.a=We(this.value,"rgba",this.opacity)?this.rgba.a:1)}get formatButtonTitle(){return this.localizationService.get("formatButton")}handleRgbaValueChange(){const v=(Pe=>{const Tn=ri(Pe.r,0,255),v=ri(Pe.g,0,255),ue=ri(Pe.b,0,255),dt=ri(Pe.a,0,1);return O.Z.fromBytes(Tn,v,ue,dt).toCssRgba()})(this.rgba);!this.rgbaInputValid||v===this.value||(this.value=v,this.rgba=ct(this.value),this.hex=We(v,"hex",this.opacity),this.valueChange.emit(v))}focusDragHandle(v){v.preventDefault(),v.stopImmediatePropagation(),this.tabOut.emit()}handleHexValueChange(v){this.hex=v;const ue=We(v,"rgba",this.opacity);!br(ue)||ue===this.value||(this.value=ue,this.rgba=ct(ue),this.valueChange.emit(ue))}handleRgbaInputBlur(){this.rgbaInputValid||(this.rgba=ct(this.value))}handleHexInputBlur(){this.hex=We(this.value,"hex",this.opacity)}focusLast(){this.lastInput().focus()}onTab(){}toggleFormatView(){this.formatView="hex"===this.formatView?"rgba":"hex"}initDomEvents(){this.host&&this.subscriptions.add(this.renderer.listen(this.toggleFormatButton.nativeElement,"click",()=>this.toggleFormatView()))}lastInput(){return this.hexInput?.nativeElement||this.opacityInput||this.blueInput}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(w.oQ))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-colorinput"]],viewQuery:function(v,ue){if(1&v&&(e.Gf(Ko,5),e.Gf(xo,5),e.Gf(Bn,5),e.Gf(Xt,5,e.SBq)),2&v){let dt;e.iGM(dt=e.CRH())&&(ue.opacityInput=dt.first),e.iGM(dt=e.CRH())&&(ue.hexInput=dt.first),e.iGM(dt=e.CRH())&&(ue.blueInput=dt.first),e.iGM(dt=e.CRH())&&(ue.toggleFormatButton=dt.first)}},hostVars:4,hostBindings:function(v,ue){2&v&&e.ekj("k-colorgradient-inputs",ue.colorInputClass)("k-hstack",ue.colorInputClass)},inputs:{focusableId:"focusableId",formatView:"formatView",tabindex:"tabindex",value:"value",opacity:"opacity",disabled:"disabled",readonly:"readonly"},outputs:{valueChange:"valueChange",tabOut:"tabOut"},features:[e.TTD],decls:5,vars:7,consts:[[1,"k-vstack"],["kendoButton","","type","button","fillMode","flat","icon","caret-alt-expand",1,"k-colorgradient-toggle-mode",3,"svgIcon","disabled","tabindex"],["toggleFormatButton",""],["class","k-vstack",4,"ngIf"],[4,"ngIf"],[1,"k-input","k-textbox","k-input-solid","k-input-md","k-rounded-md","k-hex-value",3,"id","disabled","readonly","value","tabindex","blur","input","keydown.tab"],["hexInput",""],[1,"k-colorgradient-input-label",3,"for"],["kendoAdditionalNumericLabel","red",3,"localizationService","disabled","readonly","tabindex","min","max","value","autoCorrect","spinners","format","decimals","valueChange","blur"],["red",""],["kendoAdditionalNumericLabel","green",3,"localizationService","disabled","readonly","tabindex","min","max","value","autoCorrect","spinners","format","decimals","valueChange","blur"],["green",""],["kendoAdditionalNumericLabel","blue",3,"localizationService","disabled","readonly","tabindex","min","max","value","autoCorrect","spinners","format","decimals","valueChange","blur","keydown.tab"],["blue",""],["kendoAdditionalNumericLabel","alpha",3,"localizationService","disabled","readonly","tabindex","min","max","value","autoCorrect","spinners","step","format","decimals","valueChange","blur","keydown.tab"],["opacityInput","","alpha",""]],template:function(v,ue){1&v&&(e.TgZ(0,"div",0),e._UZ(1,"button",1,2),e.qZA(),e.YNc(3,Ji,5,6,"div",3),e.YNc(4,un,17,37,"ng-container",4)),2&v&&(e.xp6(1),e.Q6J("svgIcon",ue.caretAltExpandIcon)("disabled",ue.disabled)("tabindex",ue.tabindex.toString()),e.uIk("aria-label",ue.formatButtonTitle)("title",ue.formatButtonTitle),e.xp6(2),e.Q6J("ngIf","hex"===ue.formatView),e.xp6(1),e.Q6J("ngIf","rgba"===ue.formatView))},dependencies:[E.r0,qt,b.O5,Hc],encapsulation:2}),Pe})(),Mu=(()=>{class Pe{constructor(){this.hostClass=!0}ngAfterViewInit(){(0,g.X_)()&&(this.metrics=this.wrapper.getBoundingClientRect(),this.oldA=this.hsva.value.a,this.oldH=this.hsva.value.h,this.hsva.subscribe(v=>{(v.h!==this.oldH||v.a!==this.oldA)&&(this.oldH=v.h,this.oldA=v.a,this.setPaths())}))}ngOnChanges(v){br(v.backgroundColor)&&this.metrics&&this.setPaths()}setPaths(){const v=(Pe=>(Tn,v,ue)=>{const[dt,In]=Pe(ue[v-1],ue[v-2],Tn),[er,Br]=Pe(Tn,ue[v-1],ue[v+1],!0);return`C ${dt},${In} ${er},${Br} ${Tn[0]},${Tn[1]}`})((Pe=>(Tn,v,ue,dt)=>{const es=Pe(v||Tn,ue||Tn),Ks=es.angle+(dt?Math.PI:0),xa=.1*es.length;return[Tn[0]+Math.cos(Ks)*xa,Tn[1]+Math.sin(Ks)*xa]})(bc));this.paths=[Wl(this.getPaths(4.5,16),v),Wl(this.getPaths(4.5,16,!0),v),Wl(this.getPaths(7,16),v),Wl(this.getPaths(7,16,!0),v)]}findValue(v,ue,dt,In,er){const Br=(dt+In)/2,es=Object.assign({},this.hsva.value,{s:ue/this.metrics.width,v:1-Br/this.metrics.height}),Ks=za(ct(Qt(es)),ct(this.backgroundColor||""));return dt+.5>In?Ks<v+1&&Ks>v-1?Br:null:er(Ks,v)?this.findValue(v,ue,dt,In-(In-dt)/2,er):this.findValue(v,ue,dt+(In-dt)/2,In,er)}getPaths(v,ue,dt=!1){const In=[];for(let er=0;er<=this.metrics.width;er+=this.metrics.width/ue){const Br=this.findValue(v,er,0,this.metrics.height,dt?(es,Ks)=>es<Ks:(es,Ks)=>es>Ks);null!==Br&&In.push([er,Br])}return In}}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["","kendoColorContrastSvg",""]],hostVars:2,hostBindings:function(v,ue){2&v&&e.ekj("k-color-contrast-svg",ue.hostClass)},inputs:{wrapper:"wrapper",hsva:"hsva",backgroundColor:"backgroundColor"},features:[e.TTD],attrs:Ki,decls:1,vars:1,consts:[["fill","none","stroke","white","stroke-width","1",4,"ngFor","ngForOf"],["fill","none","stroke","white","stroke-width","1"]],template:function(v,ue){1&v&&e.YNc(0,Fn,1,1,"path",0),2&v&&e.Q6J("ngForOf",ue.paths)},dependencies:[b.sg],encapsulation:2}),Pe})(),Tl=(()=>{class Pe{constructor(v){this.localization=v,this.checkIcon=p.eQZ,this.xCircleIcon=p.jKn}get passMessage(){return this.localization.get("passContrast")}get failMessage(){return this.localization.get("failContrast")}get contrastText(){return`${this.type}: ${("AA"===this.type?4.5:7).toFixed(1)}`}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(w.oQ))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["","kendoContrastValidation",""]],inputs:{type:"type",pass:"pass",value:"value"},attrs:oi,decls:3,vars:2,consts:[[4,"ngIf"],["class","k-contrast-validation k-text-success",4,"ngIf"],["class","k-contrast-validation k-text-error",4,"ngIf"],[1,"k-contrast-validation","k-text-success"],["name","check",3,"svgIcon"],[1,"k-contrast-validation","k-text-error"],["name","x",3,"svgIcon"]],template:function(v,ue){1&v&&(e.TgZ(0,"span"),e._uU(1),e.qZA(),e.YNc(2,xt,3,2,"ng-container",0)),2&v&&(e.xp6(1),e.Oqu(ue.contrastText),e.xp6(1),e.Q6J("ngIf",ue.value))},dependencies:[D.ZS,b.O5],encapsulation:2}),Pe})(),cc=(()=>{class Pe{constructor(v){this.localization=v,this.checkIcon=p.eQZ,this.xCircleIcon=p.jKn}get formatedRatio(){return this.contrastRatio.toFixed(2)}get contrastRatioText(){return`${this.localization.get("contrastRatio")}: ${this.value?this.formatedRatio:"n/a"}`}get satisfiesAACondition(){return this.contrastRatio>=4.5}get satisfiesAAACondition(){return this.contrastRatio>=7}get contrastRatio(){return za(ct(this.value),ct(this.ratio))}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(w.oQ))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["","kendoContrastTool",""]],inputs:{value:"value",ratio:"ratio"},attrs:wt,decls:6,vars:6,consts:[[1,"k-contrast-ratio"],[1,"k-contrast-ratio-text"],[4,"ngIf"],["kendoContrastValidation","","type","AA",3,"value","pass"],["kendoContrastValidation","","type","AAA",3,"value","pass"],["class","k-contrast-validation k-text-success",4,"ngIf"],["class","k-contrast-validation k-text-error",4,"ngIf"],[1,"k-contrast-validation","k-text-success"],["name","check",3,"svgIcon"],["name","check",3,"svgIcon",4,"ngIf"],[1,"k-contrast-validation","k-text-error"],["name","x",3,"svgIcon"]],template:function(v,ue){1&v&&(e.TgZ(0,"div",0)(1,"span",1),e._uU(2),e.qZA(),e.YNc(3,tt,3,2,"ng-container",2),e.qZA(),e._UZ(4,"div",3)(5,"div",4)),2&v&&(e.xp6(2),e.Oqu(ue.contrastRatioText),e.xp6(1),e.Q6J("ngIf",ue.value),e.xp6(1),e.Q6J("value",ue.value)("pass",ue.satisfiesAACondition),e.xp6(1),e.Q6J("value",ue.value)("pass",ue.satisfiesAAACondition))},dependencies:[D.ZS,Tl,b.O5],encapsulation:2}),Pe})(),Id=(()=>{class Pe extends w.Z1{}return Pe.\u0275fac=function(){let Tn;return function(ue){return(Tn||(Tn=e.n5z(Pe)))(ue||Pe)}}(),Pe.\u0275dir=e.lG2({type:Pe,selectors:[["kendo-colorpicker-messages-base"]],inputs:{colorPaletteNoColor:"colorPaletteNoColor",colorGradientNoColor:"colorGradientNoColor",flatColorPickerNoColor:"flatColorPickerNoColor",colorPickerNoColor:"colorPickerNoColor",colorGradientHandle:"colorGradientHandle",clearButton:"clearButton",hueSliderHandle:"hueSliderHandle",opacitySliderHandle:"opacitySliderHandle",hexInputPlaceholder:"hexInputPlaceholder",redInputPlaceholder:"redInputPlaceholder",greenInputPlaceholder:"greenInputPlaceholder",blueInputPlaceholder:"blueInputPlaceholder",alphaInputPlaceholder:"alphaInputPlaceholder",redChannelLabel:"redChannelLabel",greenChannelLabel:"greenChannelLabel",blueChannelLabel:"blueChannelLabel",alphaChannelLabel:"alphaChannelLabel",passContrast:"passContrast",failContrast:"failContrast",contrastRatio:"contrastRatio",previewColor:"previewColor",revertSelection:"revertSelection",gradientView:"gradientView",paletteView:"paletteView",formatButton:"formatButton",applyButton:"applyButton",cancelButton:"cancelButton"},features:[e.qOj]}),Pe})(),vu=(()=>{class Pe extends Id{constructor(v){super(),this.service=v}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(w.oQ))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["","kendoColorPickerLocalizedMessages",""],["","kendoFlatColorPickerLocalizedMessages",""],["","kendoColorGradientLocalizedMessages",""],["","kendoColorPaletteLocalizedMessages",""]],features:[e._Bn([{provide:Id,useExisting:(0,e.Gpc)(()=>Pe)}]),e.qOj]}),Pe})(),th=0,Uh=(()=>{class Pe{constructor(v,ue,dt,In,er,Br){this.host=v,this.ngZone=ue,this.renderer=dt,this.cdr=In,this.localizationService=er,this.injector=Br,this.hostClasses=!0,this.ariaRole="textbox",this.id="k-colorgradient-"+th++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.format="rgba",this.valueChange=new e.vpe,this.backgroundColor="rgba(255, 0, 0, 1)",this.hsva=new d.X({}),this.gradientSliderStep=5,this.gradientSliderSmallStep=2,this.internalNavigation=!1,this.dropletSlashIcon=p.$zW,this._tabindex=0,this.listeners=[],this.hueSliderTouched=!1,this.alphaSliderTouched=!1,this.updateValues=new s.x,this.hsvHandleCoordinates={x:0,y:0},this.notifyNgChanged=()=>{},this.notifyNgTouched=()=>{},(0,M.s)(da),this.dynamicRTLSubscription=er.changes.subscribe(({rtl:es})=>{this.direction=es?"rtl":"ltr"})}get readonlyAttribute(){return this.readonly}get disabledClass(){return this.disabled}get gradientId(){return this.id}get hostTabindex(){return this.tabindex?.toString()||"0"}get isControlInvalid(){return this.control?.invalid?.toString()}get isDisabled(){return this.disabled?.toString()||void 0}enterHandler(v){v.target===this.host.nativeElement&&(this.internalNavigation=!0,this.gradientDragHandle.nativeElement.focus())}escapeHandler(v){this.host.nativeElement.matches(":focus")||v.stopImmediatePropagation(),this.internalNavigation=!1,this.host.nativeElement.focus()}focusHandler(v){this.internalNavigation=v.target!==this.host.nativeElement}set value(v){this._value=We(v,this.format,this.opacity)}get value(){return this._value}set contrastTool(v){this._contrastTool=We(v,this.format,this.opacity)}get contrastTool(){return this._contrastTool}set tabindex(v){if(br(v)){const ue=Number(v);this._tabindex=isNaN(ue)?0:ue}else this._tabindex=v}get tabindex(){return this.disabled?void 0:this._tabindex}get isFocused(){return!(!(0,g.X_)()||!br(this.host))&&(this.host.nativeElement===document.activeElement||this.host.nativeElement.contains(document.activeElement))}get alphaSliderValue(){if(br(this.hsva.value)&&br(this.hsva.value.a))return 100*this.hsva.value.a}get gradientRect(){return this.gradientWrapper.nativeElement.getBoundingClientRect()}get hsvSliderValueText(){return`X: ${this.hsvHandleCoordinates.x} Y: ${this.hsvHandleCoordinates.y}`}get contrastToolVisible(){return this.contrastTool&&this.contrastTool.length>0}get innerTabIndex(){return this.internalNavigation?0:-1}ngOnInit(){this.control=this.injector.get(n.a5,null)}ngAfterViewInit(){this.ngZone.onStable.pipe((0,A.q)(1)).subscribe(()=>{this.updateUI(),this.cdr.detectChanges()}),this.addEventListeners(),this.subscribeChanges()}ngOnChanges(v){(0,g.ln)("value",v)&&!this.isFocused&&this.updateUI(),(0,g.ln)("delay",v)&&(this.unsubscribeChanges(),this.subscribeChanges())}ngOnDestroy(){this.listeners.forEach(v=>v()),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.unsubscribeChanges()}focus(){this.disabled||this.gradientDragHandle.nativeElement.focus()}reset(){this.handleValueChange(void 0),this.updateUI()}handleDragPress(v){this.disabled||this.readonly||!br(v.originalEvent)||(this.focus(),v.originalEvent.preventDefault())}onHandleDrag(v){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(v))}onHandleRelease(){this.disabled||this.readonly||(this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),this.handleValueChange(Qt(this.hsva.value,this.format,this.opacity)))}onKeyboardAction(v){if(!this.disabled&&!this.readonly&&v.key&&-1!==v.key.indexOf("Arrow")){v.preventDefault();const ue=this.gradientDragHandle.nativeElement;this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging");let dt=0,In=0;const er=v.shiftKey;switch(v.key){case"ArrowRight":dt=er?this.gradientSliderSmallStep:this.gradientSliderStep;break;case"ArrowLeft":dt=er?-this.gradientSliderSmallStep:-this.gradientSliderStep;break;case"ArrowUp":In=er?-this.gradientSliderSmallStep:-this.gradientSliderStep;break;case"ArrowDown":In=er?this.gradientSliderSmallStep:this.gradientSliderStep}const Br=parseInt(ue.style.top,10)+In,es=parseInt(ue.style.left,10)+dt;this.renderer.setStyle(ue,"top",`${Br}px`),this.renderer.setStyle(ue,"left",`${es}px`),this.ngZone.run(()=>this.moveDragHandle(es,Br))}}changePosition(v){if(this.disabled||this.readonly)return;this.gradientDragHandle.nativeElement.focus();const ue=this.gradientRect,dt=v.clientX-ue.left,In=v.clientY-ue.top;this.ngZone.run(()=>this.moveDragHandle(dt,In))}handleHueSliderChange(v){const ue=this.hsva.value;ue.h=v,this.hsva.next(ue),this.handleValueChange(Qt(this.hsva.value,this.format,this.opacity)),this.backgroundColor=Do(v),this.setBackgroundColor(this.backgroundColor),this.setAlphaSliderBackground(this.backgroundColor),this.hueSliderTouched=!0}handleAlphaSliderChange(v){const ue=this.hsva.value;ue.a=v/100,this.hsva.next(ue),this.handleValueChange(Qt(this.hsva.value,this.format,this.opacity)),this.alphaSliderTouched=!0}handleInputsValueChange(v){const ue=We(v,this.format,this.opacity);this.value!==ue&&(this.handleValueChange(ue),this.updateUI())}writeValue(v){this.value=v,br(this.gradientWrapper)&&this.updateUI()}registerOnChange(v){this.notifyNgChanged=v}registerOnTouched(v){this.notifyNgTouched=v}setDisabledState(v){this.cdr.markForCheck(),this.disabled=v}get colorGradientHandleTitle(){return this.localizationService.get("colorGradientHandle")}get colorGradientHandleAriaLabel(){const v=We(this.value,this.format,this.opacity);return`${this.value?v:this.localizationService.get("colorGradientNoColor")}`}get hueSliderTitle(){return this.localizationService.get("hueSliderHandle")}get opacitySliderTitle(){return this.localizationService.get("opacitySliderHandle")}get clearButtonTitle(){return this.localizationService.get("clearButton")}isEmpty(){return!1}moveDragHandle(v,ue){const dt=this.gradientRect,In=dt.width,er=dt.height,Br=ri(ue,0,er),es=ri(v,0,In);this.setDragHandleElementPosition(Br,es);const Ks=this.hsva.value;Ks.s=es/In,Ks.v=1-Br/er,this.hsva.next(Ks),this.updateValues.next(Qt(this.hsva.value,this.format,this.opacity)),this.setAlphaSliderBackground(Qt({...this.hsva.value,a:1},this.format,this.opacity))}handleValueChange(v){this.value!==v&&(this.value=v,this.valueChange.emit(v),this.notifyNgChanged(v),this.setHostElementAriaLabel())}setDragHandleElementPosition(v,ue){const dt=this.gradientDragHandle.nativeElement;this.hsvHandleCoordinates={x:ue,y:v},this.renderer.setStyle(dt,"top",`${v}px`),this.renderer.setStyle(dt,"left",`${ue}px`)}setAlphaSliderBackground(v){br(this.alphaSlider)&&this.renderer.setStyle(this.alphaSlider.track.nativeElement,"background",`linear-gradient(to top, transparent, ${v})`)}setHostElementAriaLabel(){const v=We(this.value,this.format,this.opacity);this.renderer.setAttribute(this.host.nativeElement,"aria-label",`${this.value?v:this.localizationService.get("colorGradientNoColor")}`)}setBackgroundColor(v){this.renderer.setStyle(this.hsvRectangle.nativeElement,"background",v)}updateUI(){if(!(0,g.X_)())return;if(this.hueSliderTouched||this.alphaSliderTouched)return this.hueSliderTouched=!1,void(this.alphaSliderTouched=!1);this.hsva.next(this.value?((Pe,Tn=!0)=>{const v=(0,P.ZP)(this.value,Tn);return br(v)?v.toHSV():{}})():{h:0,s:0,v:1,a:1});const v=this.gradientRect;this.setDragHandleElementPosition((1-this.hsva.value.v)*v.height,this.hsva.value.s*v.width),this.backgroundColor=Do(this.hsva.value.h),this.setBackgroundColor(this.backgroundColor),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel()}addEventListeners(){this.ngZone.runOutsideAngular(()=>{const v=this.renderer.listen(this.host.nativeElement,"focusout",Br=>{!((Pe,Tn)=>Pe&&Tn&&(Pe===Tn||Pe.contains(Tn)))(this.host.nativeElement,Br.relatedTarget)&&(Pe=>Pe&&Pe.nativeElement&&((Pe,Tn)=>!!(Pe=>String(Pe).trim().split(" "))(Pe.className).find(v=>v===Tn))(Pe.nativeElement,"ng-untouched"))(this.host)&&this.ngZone.run(()=>this.notifyNgTouched())}),ue=this.renderer.listen(this.gradientDragHandle.nativeElement,"keydown",Br=>{this.onKeyboardAction(Br)}),dt=this.renderer.listen(this.gradientDragHandle.nativeElement,"keyup",()=>{this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),!this.readonly&&!this.disabled&&this.ngZone.run(()=>this.handleValueChange(Qt(this.hsva.value,this.format,this.opacity)))}),In=this.renderer.listen(this.gradientDragHandle.nativeElement,"focusin",()=>{this.renderer.addClass(this.gradientDragHandle.nativeElement,"k-focus")}),er=this.renderer.listen(this.gradientDragHandle.nativeElement,"focusout",()=>{this.renderer.removeClass(this.gradientDragHandle.nativeElement,"k-focus")});this.listeners.push(v,ue,dt,In,er)})}subscribeChanges(){this.changeRequestsSubscription=this.updateValues.pipe((0,k.p)(this.delay)).subscribe(v=>{this.handleValueChange(v)})}unsubscribeChanges(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(w.oQ),e.Y36(e.zs3))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-colorgradient"]],viewQuery:function(v,ue){if(1&v&&(e.Gf(Ne,5),e.Gf(vt,5),e.Gf(ln,5),e.Gf(jn,5),e.Gf(Pi,5)),2&v){let dt;e.iGM(dt=e.CRH())&&(ue.gradientDragHandle=dt.first),e.iGM(dt=e.CRH())&&(ue.inputs=dt.first),e.iGM(dt=e.CRH())&&(ue.alphaSlider=dt.first),e.iGM(dt=e.CRH())&&(ue.gradientWrapper=dt.first),e.iGM(dt=e.CRH())&&(ue.hsvRectangle=dt.first)}},hostVars:11,hostBindings:function(v,ue){1&v&&e.NdJ("keydown.enter",function(In){return ue.enterHandler(In)})("keydown.escape",function(In){return ue.escapeHandler(In)})("focusin",function(In){return ue.focusHandler(In)}),2&v&&(e.uIk("aria-readonly",ue.readonlyAttribute)("id",ue.gradientId)("dir",ue.direction)("tabindex",ue.hostTabindex)("role",ue.ariaRole)("aria-invalid",ue.isControlInvalid)("aria-disabled",ue.isDisabled),e.ekj("k-colorgradient",ue.hostClasses)("k-disabled",ue.disabledClass))},inputs:{id:"id",opacity:"opacity",disabled:"disabled",readonly:"readonly",clearButton:"clearButton",delay:"delay",value:"value",contrastTool:"contrastTool",tabindex:"tabindex",format:"format",gradientSliderStep:"gradientSliderStep",gradientSliderSmallStep:"gradientSliderSmallStep"},outputs:{valueChange:"valueChange"},exportAs:["kendoColorGradient"],features:[e._Bn([{multi:!0,provide:n.JU,useExisting:(0,e.Gpc)(()=>Pe)},{provide:g.GX,useExisting:(0,e.Gpc)(()=>Pe)},va,{provide:w.oQ,useExisting:va},{provide:w.mM,useValue:"kendo.colorgradient"}]),e.TTD],decls:16,vars:37,consts:function(){let Tn,v,ue,dt,In,er,Br,es,Ks,xa,ha,Aa,vl,ml,yl,Cc,Bc;return Tn=$localize`:kendo.colorgradient.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty.:Colorgradient no color chosen`,v=$localize`:kendo.colorgradient.colorGradientHandle|The title for the gradient color drag handle chooser.:Choose color`,ue=$localize`:kendo.colorgradient.clearButton|The title for the clear button.:Clear value`,dt=$localize`:kendo.colorgradient.hueSliderHandle|The title for the hue slider handle.:Set hue`,In=$localize`:kendo.colorgradient.opacitySliderHandle|The title for the opacity slider handle.:Set opacity`,er=$localize`:kendo.colorgradient.passContrast|The pass message for the contrast tool.:Pass`,Br=$localize`:kendo.colorgradient.failContrast|The fail message for the contrast tool.:Fail`,es=$localize`:kendo.colorgradient.contrastRatio|The contrast ratio message for the contrast tool.:Contrast ratio`,Ks=$localize`:kendo.colorgradient.formatButton|The message for the input format toggle button.:Change color format`,xa=$localize`:kendo.colorgradient.redChannelLabel|The label of the NumericTextBox representing the red color channel.:Red channel`,ha=$localize`:kendo.colorgradient.greenChannelLabel|The label of the NumericTextBox representing the green color channel.:Green channel`,Aa=$localize`:kendo.colorgradient.blueChannelLabel|The label of the NumericTextBox representing the blue color channel.:Blue channel`,vl=$localize`:kendo.colorgradient.alphaChannelLabel|The label of the NumericTextBox representing the alpha color channel.:Alpha channel`,ml=$localize`:kendo.colorgradient.redChannelLabel|The label of the NumericTextBox representing the red color channel.:R`,yl=$localize`:kendo.colorgradient.greenInputPlaceholder|The placeholder for the green color input.:G`,Cc=$localize`:kendo.colorgradient.blueInputPlaceholder|The placeholder for the blue color input.:B`,Bc=$localize`:kendo.colorgradient.hexInputPlaceholder|The placeholder for the HEX color input.:HEX`,[["kendoColorGradientLocalizedMessages","","colorGradientNoColor",Tn,"colorGradientHandle",v,"clearButton",ue,"hueSliderHandle",dt,"opacitySliderHandle",In,"passContrast",er,"failContrast",Br,"contrastRatio",es,"formatButton",Ks,"redChannelLabel",xa,"greenChannelLabel",ha,"blueChannelLabel",Aa,"alphaChannelLabel",vl,"redChannelLabel",ml,"greenInputPlaceholder",yl,"blueInputPlaceholder",Cc,"hexInputPlaceholder",Bc],[1,"k-colorgradient-canvas","k-hstack"],[1,"k-hsv-rectangle"],["hsvRectangle",""],["kendoDraggable","",1,"k-hsv-gradient",3,"click","kendoPress","kendoDrag","kendoRelease"],["gradientWrapper",""],["role","slider",1,"k-hsv-draghandle","k-draghandle",3,"tabindex","keydown.shift.tab"],["gradientDragHandle",""],["kendoColorContrastSvg","","class","k-color-contrast-svg","xmlns","http://www.w3.org/2000/svg",3,"wrapper","hsva","backgroundColor","style",4,"ngIf"],["kendoButton","","class","k-clear-color","fillMode","flat","icon","droplet-slash",3,"svgIcon","tabindex","style","click","keydown.enter","keydown.space",4,"ngIf"],["tickPlacement","none",1,"k-hue-slider","k-colorgradient-slider",3,"ngClass","dragHandleTitle","tabindex","disabled","readonly","showButtons","vertical","min","max","value","smallStep","largeStep","valueChange"],["class","k-alpha-slider k-colorgradient-slider","tickPlacement","none",3,"tabindex","ngClass","height","dragHandleTitle","disabled","readonly","showButtons","vertical","min","max","smallStep","largeStep","value","valueChange",4,"ngIf"],[3,"tabindex","opacity","formatView","value","disabled","readonly","valueChange","tabOut"],["inputs",""],["class","k-colorgradient-color-contrast k-vbox","kendoContrastTool","",3,"value","ratio",4,"ngIf"],["kendoColorContrastSvg","","xmlns","http://www.w3.org/2000/svg",1,"k-color-contrast-svg",3,"wrapper","hsva","backgroundColor"],["kendoButton","","fillMode","flat","icon","droplet-slash",1,"k-clear-color",3,"svgIcon","tabindex","click","keydown.enter","keydown.space"],["tickPlacement","none",1,"k-alpha-slider","k-colorgradient-slider",3,"tabindex","ngClass","dragHandleTitle","disabled","readonly","showButtons","vertical","min","max","smallStep","largeStep","value","valueChange"],["alphaSlider",""],["kendoContrastTool","",1,"k-colorgradient-color-contrast","k-vbox",3,"value","ratio"]]},template:function(v,ue){if(1&v){const dt=e.EpF();e.GkF(0,0),e.TgZ(1,"div",1)(2,"div",2,3)(4,"div",4,5),e.NdJ("click",function(er){return ue.changePosition(er)})("kendoPress",function(er){return ue.handleDragPress(er)})("kendoDrag",function(er){return ue.onHandleDrag(er)})("kendoRelease",function(){return ue.onHandleRelease()}),e.TgZ(6,"div",6,7),e.NdJ("keydown.shift.tab",function(er){e.CHM(dt);const Br=e.MAs(14);return er.preventDefault(),e.KtG(Br.focusLast())}),e.qZA()(),e.YNc(8,go,1,5,"svg",8),e.qZA(),e.TgZ(9,"div"),e.YNc(10,si,1,6,"button",9),e.TgZ(11,"kendo-slider",10),e.NdJ("valueChange",function(er){return ue.handleHueSliderChange(er)}),e.qZA(),e.YNc(12,pn,2,16,"kendo-slider",11),e.qZA()(),e.TgZ(13,"kendo-colorinput",12,13),e.NdJ("valueChange",function(er){return ue.handleInputsValueChange(er)})("tabOut",function(){e.CHM(dt);const er=e.MAs(7);return e.KtG(er.focus())}),e.qZA(),e.YNc(15,_i,1,2,"div",14)}if(2&v){const dt=e.MAs(5);e.xp6(6),e.Q6J("tabindex",ue.innerTabIndex.toString()),e.uIk("title",ue.colorGradientHandleTitle)("aria-label",ue.colorGradientHandleTitle+" "+ue.colorGradientHandleAriaLabel)("aria-valuetext",ue.hsvSliderValueText)("aria-readonly",ue.readonly?ue.readonly:void 0)("aria-disabled",ue.disabled?ue.disabled:void 0)("aria-orientation","undefined")("aria-valuenow","0"),e.xp6(2),e.Q6J("ngIf",ue.contrastToolVisible&&dt),e.xp6(1),e.Gre("k-hsv-controls k-hstack ",ue.clearButton?"k-sliders-wrap-clearable":"",""),e.xp6(1),e.Q6J("ngIf",ue.clearButton),e.xp6(1),e.Udp("height",ue.clearButton?"140":null,"px"),e.Q6J("ngClass",e.VKq(35,ot,ue.clearButton))("dragHandleTitle",ue.hueSliderTitle)("tabindex",ue.innerTabIndex)("disabled",ue.disabled)("readonly",ue.readonly)("showButtons",!1)("vertical",!0)("min",0)("max",360)("value",ue.hsva.value.h)("smallStep",5)("largeStep",10),e.xp6(1),e.Q6J("ngIf",ue.opacity),e.xp6(1),e.Q6J("tabindex",ue.innerTabIndex)("opacity",ue.opacity)("formatView",ue.format)("value",ue.value)("disabled",ue.disabled)("readonly",ue.readonly),e.xp6(2),e.Q6J("ngIf",ue.contrastToolVisible)}},dependencies:[Mu,E.r0,vn,Vc,cc,vu,g.pD,b.O5,b.mk],encapsulation:2}),Pe})(),Jc=(()=>{class Pe extends w.oQ{constructor(v,ue,dt,In){super(v,ue,dt),this.flatColorPickerLocalization=In}get(v){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(v):super.get(v)}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.LFG(w.mM),e.LFG(w.ez,8),e.LFG(w.lw,8),e.LFG(To,8))},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),nh=(()=>{class Pe{constructor(){this.colorRows=[]}setColorMatrix(v,ue){if(this.colorRows=[],br(v)&&v.length){ue=ue||v.length;for(let dt=0;dt<v.length;dt+=ue){const In=v.slice(dt,ue+dt);this.colorRows.push(In)}}}getCellCoordsFor(v){if(br(v))for(let ue=0;ue<this.colorRows.length;ue++)for(let dt=0;dt<this.colorRows[ue].length;dt++)if(this.colorRows[ue][dt]===v)return{row:ue,col:dt}}getColorAt(v){if(br(v)&&br(this.colorRows[v.row]))return this.colorRows[v.row][v.col]}getNextCell(v,ue,dt){if(!(br(v)&&br(v.row)&&br(v.col)))return{row:0,col:0};const In=this.clampIndex(v.row+dt,this.colorRows.length-1);return{row:In,col:this.clampIndex(v.col+ue,this.colorRows[In].length-1)}}clampIndex(v,ue){return v<0?0:v>ue?ue:v}}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275prov=e.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),nu=0,Zu=(()=>{class Pe{constructor(v,ue,dt,In,er,Br){this.host=v,this.service=ue,this.cdr=dt,this.renderer=In,this.localizationService=er,this.ngZone=Br,this.role="grid",this.id="k-colorpalette-"+nu++,this.format="hex",this.disabled=!1,this.readonly=!1,this.tileSize={width:24,height:24},this.selectionChange=new e.vpe,this.valueChange=new e.vpe,this.cellSelection=new e.vpe,this.hostClasses=!0,this.uniqueId=(0,g.M8)(),this._tabindex=0,this.subs=new o.w0,this.notifyNgTouched=()=>{},this.notifyNgChanged=()=>{},(0,M.s)(da),this.dynamicRTLSubscription=er.changes.subscribe(({rtl:es})=>{this.direction=es?"rtl":"ltr"})}get activeDescendant(){return this.activeCellId}get paletteId(){return this.id}set value(v){this._value=We(v,this.format)}get value(){return this._value}set columns(v){this._columns=v>1?v:1}get columns(){return this._columns}set palette(v){br(v)||(v="office"),"string"==typeof v&&br(pa[v])&&(this.columns=this.columns||pa[v].columns,v=pa[v].colors);const ue="string"==typeof v?v.split(","):v;this._palette=ue.map(dt=>We(dt,this.format,!1,!1))}get palette(){return this._palette}set tabindex(v){const ue=Number(v);this._tabindex=isNaN(ue)?0:ue}get tabindex(){return this.disabled?void 0:this._tabindex}get tileLayout(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}}get colorRows(){return this.service.colorRows}get hostTabindex(){return this.tabindex}get disabledClass(){return this.disabled}get readonlyAttribute(){return this.readonly}ngOnInit(){0===this.colorRows.length&&(this.palette=this.palette||("name"!==this.format?"office":"accessible"),this.setRows());const v=this.host.nativeElement;this.subs.add(this.renderer.listen(v,"keydown",ue=>this.handleKeydown(ue))),this.subs.add(this.renderer.listen(v,"focus",()=>this.handleFocus())),this.subs.add(this.renderer.listen(v,"blur",()=>this.handleHostBlur()))}ngAfterViewInit(){this.setHostElementAriaLabel(),this.value&&this.ngZone.onStable.pipe((0,A.q)(1)).subscribe(()=>{this.selectCell(this.value)})}ngOnDestroy(){this.subs.unsubscribe(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}ngOnChanges(v){(v.palette||v.columns)&&this.setRows(),(v.palette||v.value||v.columns)&&(this.selectCell(this.value),this.setHostElementAriaLabel())}handleKeydown(v){const ue="rtl"===this.direction;switch(v.keyCode){case g.R8.ArrowDown:this.handleCellNavigation(0,1);break;case g.R8.ArrowUp:this.handleCellNavigation(0,-1);break;case g.R8.ArrowRight:this.handleCellNavigation(ue?-1:1,0);break;case g.R8.ArrowLeft:this.handleCellNavigation(ue?1:-1,0);break;case g.R8.Enter:this.handleEnter();break;default:return}v.preventDefault()}handleFocus(){this.focusInComponent||this.focus()}handleHostBlur(){this.notifyNgTouched(),this.handleCellFocusOnBlur()}handleCellSelection(v,ue){if(this.readonly)return;this.selectedCell=ue,this.focusedCell=this.selectedCell,this.focusInComponent=!0;const dt=We(v,this.format,!1,!1);this.cellSelection.emit(dt),this.handleValueChange(dt),this.selection!==dt&&(this.selection=dt,this.selectionChange.emit(dt)),ue&&(this.activeCellId=`k-${this.selectedCell.row}-${this.selectedCell.col}-${this.uniqueId}`)}writeValue(v){this.value=v,this.selectCell(v)}registerOnChange(v){this.notifyNgChanged=v}registerOnTouched(v){this.notifyNgTouched=v}setDisabledState(v){this.cdr.markForCheck(),this.disabled=v}focus(){this.host.nativeElement.focus(),!this.focusedCell&&!this.readonly&&!this.disabled&&(this.focusedCell={row:0,col:0},this.activeCellId=`k-${this.focusedCell.row}-${this.focusedCell.col}-${this.uniqueId}`)}isEmpty(){return!1}reset(){this.focusedCell=null,br(this.value)&&this.handleValueChange(void 0),this.selectedCell=void 0}handleValueChange(v){this.value!==v&&(this.value=v,this.valueChange.emit(v),this.notifyNgChanged(v),this.setHostElementAriaLabel())}handleCellFocusOnBlur(){this.focusInComponent=!1,this.focusedCell=this.selectedCell}selectCell(v){const ue=We(v,"hex");this.selectedCell=this.service.getCellCoordsFor(ue),this.focusedCell=this.selectedCell}setRows(){br(this.palette)&&(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))}handleCellNavigation(v,ue){this.readonly||(this.focusedCell=this.service.getNextCell(this.focusedCell,v,ue),this.focusInComponent=!0,this.focusedCell&&(this.activeCellId=`k-${this.focusedCell.row}-${this.focusedCell.col}-${this.uniqueId}`))}setHostElementAriaLabel(){const v=We(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",`${this.value?v:this.localizationService.get("colorPaletteNoColor")}`)}handleEnter(){if(!br(this.focusedCell))return;const v=this.service.getColorAt(this.focusedCell);this.handleCellSelection(v,this.focusedCell)}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.SBq),e.Y36(nh),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(w.oQ),e.Y36(e.R0b))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-colorpalette"]],hostVars:11,hostBindings:function(v,ue){2&v&&(e.uIk("dir",ue.direction)("role",ue.role)("aria-activedescendant",ue.activeDescendant)("id",ue.paletteId)("tabindex",ue.hostTabindex)("aria-disabled",ue.disabledClass)("aria-readonly",ue.readonlyAttribute),e.ekj("k-colorpalette",ue.hostClasses)("k-disabled",ue.disabledClass))},inputs:{id:"id",format:"format",value:"value",columns:"columns",palette:"palette",tabindex:"tabindex",disabled:"disabled",readonly:"readonly",tileSize:"tileSize"},outputs:{selectionChange:"selectionChange",valueChange:"valueChange",cellSelection:"cellSelection"},exportAs:["kendoColorPalette"],features:[e._Bn([{multi:!0,provide:n.JU,useExisting:(0,e.Gpc)(()=>Pe)},{provide:g.GX,useExisting:(0,e.Gpc)(()=>Pe)},nh,Jc,{provide:w.oQ,useExisting:Jc},{provide:w.mM,useValue:"kendo.colorpalette"}]),e.TTD],decls:4,vars:1,consts:function(){let Tn;return Tn=$localize`:kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty.:Colorpalette no color chosen`,[["kendoColorPaletteLocalizedMessages","","colorPaletteNoColor",Tn],["role","presentation",1,"k-colorpalette-table"],["role","row",4,"ngFor","ngForOf"],["role","row"],["role","gridcell","class","k-colorpalette-tile",3,"k-selected","k-focus","id","ngStyle","click",4,"ngFor","ngForOf"],["role","gridcell",1,"k-colorpalette-tile",3,"id","ngStyle","click"]]},template:function(v,ue){1&v&&(e.GkF(0,0),e.TgZ(1,"table",1)(2,"tbody"),e.YNc(3,zn,2,1,"tr",2),e.qZA()()),2&v&&(e.xp6(3),e.Q6J("ngForOf",ue.colorRows))},dependencies:[vu,b.sg,b.PC],encapsulation:2}),Pe})(),mc=(()=>{class Pe{constructor(v,ue){this.localizationService=v,this.renderer=ue,this.hostClasses=!0,this.innerTabIndex=-1,this.viewChange=new e.vpe,this.valuePaneClick=new e.vpe,this.clearButtonClick=new e.vpe,this.tabOut=new e.vpe,this.dropletSliderIcon=p.V7P,this.paletteIcon=p.Sp5,this.dropletSlashIcon=p.$zW}ngAfterViewInit(){this.viewButtonsCollection.length>0&&this.viewButtonsCollection.forEach(v=>{const ue=v.nativeElement;"true"===ue.getAttribute("aria-pressed")&&this.renderer.addClass(ue,"k-selected")})}onViewButtonClick(v){this.activeView=v,this.viewChange.emit(v)}get viewButtons(){return this.views&&this.views.indexOf("gradient")>=0&&this.views.indexOf("palette")>=0}getViewButtonIcon(v){return"gradient"===v?"color-canvas":"palette"}getViewButtonsSVGIcon(v){return"gradient"===v?this.dropletSliderIcon:this.paletteIcon}getText(v){return this.localizationService.get(v)}onHeaderTabOut(v,ue){0===ue&&(v.preventDefault(),this.tabOut.emit(v))}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(w.oQ),e.Y36(e.Qsj))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["","kendoFlatColorPickerHeader",""]],viewQuery:function(v,ue){if(1&v&&(e.Gf(Ei,5,e.SBq),e.Gf(li,5,e.SBq)),2&v){let dt;e.iGM(dt=e.CRH())&&(ue.clearButtonElement=dt.first),e.iGM(dt=e.CRH())&&(ue.viewButtonsCollection=dt)}},hostVars:4,hostBindings:function(v,ue){2&v&&e.ekj("k-coloreditor-header",ue.hostClasses)("k-hstack",ue.hostClasses)},inputs:{clearButton:"clearButton",activeView:"activeView",views:"views",preview:"preview",innerTabIndex:"innerTabIndex",value:"value",selection:"selection"},outputs:{viewChange:"viewChange",valuePaneClick:"valuePaneClick",clearButtonClick:"clearButtonClick",tabOut:"tabOut"},attrs:Xi,decls:6,vars:3,consts:[[1,"k-coloreditor-header-actions","k-hstack"],["class","k-button-group k-button-group-flat","role","group",4,"ngIf"],[1,"k-spacer"],["kendoButton","","type","button","fillMode","flat","icon","reset-color","class","k-coloreditor-reset",3,"tabindex","svgIcon","click",4,"ngIf"],["class","k-coloreditor-preview k-vstack","aria-hidden","true",4,"ngIf"],["role","group",1,"k-button-group","k-button-group-flat"],["kendoButton","","type","button","fillMode","flat","class","k-button k-button-md k-button-flat k-button-flat-base k-icon-button",3,"tabindex","icon","svgIcon","ngClass","click","keydown.shift.tab",4,"ngFor","ngForOf"],["kendoButton","","type","button","fillMode","flat",1,"k-button","k-button-md","k-button-flat","k-button-flat-base","k-icon-button",3,"tabindex","icon","svgIcon","ngClass","click","keydown.shift.tab"],["viewButtons",""],["kendoButton","","type","button","fillMode","flat","icon","reset-color",1,"k-coloreditor-reset",3,"tabindex","svgIcon","click"],["clearButton",""],["aria-hidden","true",1,"k-coloreditor-preview","k-vstack"],[1,"k-coloreditor-preview-color","k-color-preview"],[1,"k-coloreditor-current-color","k-color-preview",3,"click"]],template:function(v,ue){1&v&&(e.TgZ(0,"div",0),e.YNc(1,bo,2,1,"div",1),e.qZA(),e._UZ(2,"div",2),e.TgZ(3,"div",0),e.YNc(4,jo,2,4,"button",3),e.YNc(5,wn,3,6,"div",4),e.qZA()),2&v&&(e.xp6(1),e.Q6J("ngIf",ue.viewButtons),e.xp6(3),e.Q6J("ngIf",ue.clearButton),e.xp6(1),e.Q6J("ngIf",ue.preview))},dependencies:[E.r0,b.O5,b.sg,b.mk],encapsulation:2}),Pe})(),xd=(()=>{class Pe{constructor(v){this.localizationService=v,this.hostClasses=!0,this.innerTabIndex=-1,this.actionButtonClick=new e.vpe,this.tabOut=new e.vpe}getText(v){return this.localizationService.get(v)}onActionButtonClick(v,ue){this.actionButtonClick.emit({target:v,originalEvent:ue})}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(w.oQ))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["","kendoFlatColorPickerActionButtons",""]],viewQuery:function(v,ue){if(1&v&&(e.Gf(Zi,5,e.SBq),e.Gf(oo,5,e.SBq)),2&v){let dt;e.iGM(dt=e.CRH())&&(ue.firstButton=dt.first),e.iGM(dt=e.CRH())&&(ue.lastButton=dt.first)}},hostVars:6,hostBindings:function(v,ue){2&v&&e.ekj("k-coloreditor-footer",ue.hostClasses)("k-actions",ue.hostClasses)("k-actions-horizontal",ue.hostClasses)},inputs:{innerTabIndex:"innerTabIndex"},outputs:{actionButtonClick:"actionButtonClick",tabOut:"tabOut"},attrs:Bi,decls:6,vars:6,consts:[["type","button",1,"k-coloreditor-cancel","k-button","k-button-md","k-button-solid","k-button-solid-base",3,"tabindex","click"],["first",""],["type","button",1,"k-coloreditor-apply","k-button","k-button-md","k-button-solid","k-button-solid-primary",3,"tabindex","click","keydown.tab"],["last",""]],template:function(v,ue){1&v&&(e.TgZ(0,"button",0,1),e.NdJ("click",function(In){return ue.onActionButtonClick("cancel",In)}),e._uU(2),e.qZA(),e.TgZ(3,"button",2,3),e.NdJ("click",function(In){return ue.onActionButtonClick("apply",In)})("keydown.tab",function(In){return In.preventDefault(),ue.tabOut.emit()}),e._uU(5),e.qZA()),2&v&&(e.Q6J("tabindex",ue.innerTabIndex.toString()),e.uIk("title",ue.getText("cancelButton")),e.xp6(2),e.Oqu(ue.getText("cancelButton")),e.xp6(1),e.Q6J("tabindex",ue.innerTabIndex.toString()),e.uIk("title",ue.getText("applyButton")),e.xp6(2),e.Oqu(ue.getText("applyButton")))},encapsulation:2}),Pe})(),fu=(()=>{class Pe{constructor(v,ue,dt,In,er,Br,es){this.host=v,this.service=ue,this.localizationService=dt,this.cdr=In,this.renderer=er,this.ngZone=Br,this.injector=es,this.hostClasses=!0,this.ariaRole="textbox",this.readonly=!1,this.disabled=!1,this.format="rgba",this.clearButton=!0,this.preview=!0,this.actionsLayout="end",this.views=["gradient","palette"],this.valueChange=new e.vpe,this.cancel=new e.vpe,this.activeViewChange=new e.vpe,this.clearButtonClick=new e.vpe,this.actionButtonClick=new e.vpe,this._tabindex=0,this._gradientSettings={opacity:!0,delay:0,gradientSliderStep:5,gradientSliderSmallStep:2},this._paletteSettings={},this.subscriptions=new o.w0,this.internalNavigation=!1,this.notifyNgChanged=()=>{},this.notifyNgTouched=()=>{},(0,M.s)(da),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(({rtl:Ks})=>{this.direction=Ks?"rtl":"ltr"})}get disabledClass(){return this.disabled}get ariaReadonly(){return this.readonly}get hostTabindex(){return this.tabindex?.toString()||"0"}get isControlInvalid(){return this.control?.invalid?.toString()}get isDisabled(){return this.disabled?.toString()||void 0}enterHandler(v){v.target===this.host.nativeElement&&(v.preventDefault(),this.internalNavigation=!0,this.ngZone.onStable.pipe((0,A.q)(1)).subscribe(()=>this.firstFocusable?.focus()))}escapeHandler(){this.internalNavigation=!1,this.host.nativeElement.focus()}focusHandler(v){this.internalNavigation=v.target!==this.host.nativeElement}set value(v){this._value=We(v,this.format,this.gradientSettings.opacity)}get value(){return this._value}set tabindex(v){if(br(v)){const ue=Number(v);this._tabindex=isNaN(ue)?0:ue}else this._tabindex=v}get tabindex(){return this.disabled?void 0:this._tabindex}set gradientSettings(v){Object.assign(this._gradientSettings,v)}get gradientSettings(){return this._gradientSettings}set paletteSettings(v){Object.assign(this._paletteSettings,v)}get paletteSettings(){return this._paletteSettings}get innerTabIndex(){return this.internalNavigation?0:-1}get firstFocusable(){return this.headerHasContent?this.headerElement.nativeElement.querySelector(".k-button"):"gradient"===this.activeView?this.gradient:this.palette}ngOnInit(){this.selection=this.value,this.control=this.injector.get(n.a5,null),this._paletteSettings=this.service.getPaletteSettings(this._paletteSettings,this.format),this.setActiveView()}ngAfterViewInit(){this.setHostElementAriaLabel(),this.initDomEvents(),this.setSizingVariables(),this.ngZone.onStable.pipe((0,A.q)(1)).subscribe(()=>this.removeGradientAttributes())}ngOnChanges(v){(0,g.ln)("value",v)&&(this.selection=this.value,this.setHostElementAriaLabel()),(0,g.ln)("paletteSettings",v)&&this.setSizingVariables()}ngOnDestroy(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe()}focusFirstHeaderButton(){this.gradientElement.nativeElement===document.activeElement&&this.headerHasContent&&!this.preview&&this.headerElement.nativeElement.querySelector(".k-button").focus()}lastFocusable(v){if(this.preview)return void this.footer.lastButton.nativeElement.focus();v.stopImmediatePropagation();const ue=this.gradientElement?.nativeElement,dt=this.palette?.host.nativeElement;"gradient"===this.activeView?ue.focus():dt.focus()}onTab(v){const{shiftKey:ue}=v,dt=this.preview?this.footer.firstButton.nativeElement:this.headerHasContent?(0,g.hC)(this.headerElement.nativeElement):null,In=this.headerHasContent?(0,g.hC)(this.headerElement.nativeElement):this.preview?this.footer.lastButton.nativeElement:null;!dt&&!In||(v.preventDefault(),ue?In?.focus():dt?.focus())}get headerHasContent(){return this.preview||this.views.length>1||this.clearButton}isEmpty(){return!1}focus(){this.disabled||this.focused||(this.host.nativeElement.focus(),this.focused=!0)}blur(){this.focused&&(this.notifyNgTouched(),this.host.nativeElement.blur(),this.focused=!1)}reset(){br(this.value)&&(this.value=void 0,this.notifyNgChanged(void 0),this.setHostElementAriaLabel())}onViewChange(v){this.activeView!==v&&(this.activeView=v,this.activeViewChange.emit(v),this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this[this.activeView]?.focus()})}),"gradient"===this.activeView&&this.removeGradientAttributes())}onClearButtonClick(){this.resetInnerComponentValue(),this.clearButtonClick.emit()}handleValueChange(v){this.preview?this.changeCurrentValue(v):this.setFlatColorPickerValue(v)}onAction(v){"apply"===v.target?this.setFlatColorPickerValue(this.selection):this.resetSelection(v.originalEvent),this.actionButtonClick.emit()}writeValue(v){this.value=v}registerOnChange(v){this.notifyNgChanged=v}registerOnTouched(v){this.notifyNgTouched=v}setDisabledState(v){this.cdr.markForCheck(),this.disabled=v}resetSelection(v){const ue=new Nl(v);this.cancel.emit(ue),ue.isDefaultPrevented()||(this.selection=this.value),this.notifyNgTouched()}setHostElementAriaLabel(){const v=We(this.value,this.format,this.gradientSettings.opacity),ue=`${this.value?v:this.localizationService.get("flatColorPickerNoColor")}`;this.renderer.setAttribute(this.host.nativeElement,"aria-label",ue)}setSizingVariables(){const v=this.service.paletteTileLayout(this.paletteSettings.tileSize),ue=this.host.nativeElement.querySelector(".k-coloreditor-views.k-vstack");this.renderer.setProperty(ue,"style",`\n            --kendo-color-preview-columns: ${this.paletteSettings.columns};\n            --kendo-color-preview-width: ${v.width}px;\n            --kendo-color-preview-height: ${v.height}px;\n        `)}changeCurrentValue(v){this.selection=v,this.notifyNgTouched()}resetInnerComponentValue(){this.selection=null,this.gradient?this.gradient.reset():this.palette.reset()}setFlatColorPickerValue(v){this.value!==v&&(this.value=v,this.valueChange.emit(v),this.notifyNgChanged(v),this.setHostElementAriaLabel())}setActiveView(){if(br(this.activeView)){if((0,e.X6Q)()&&-1===this.views.indexOf(this.activeView))throw new Error("Invalid configuration: The current activeView is not present in the views collection")}else this.activeView=this.views[0]}initDomEvents(){if(!this.host)return;const v=this.host.nativeElement;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(v,"focus",()=>{this.focused=!0})),this.subscriptions.add(this.renderer.listen(v,"blur",()=>{this.focused=!1,this.notifyNgTouched()}))})}removeGradientAttributes(){this.gradientElement&&this.renderer.removeAttribute(this.gradientElement.nativeElement,"role"),this.gradientElement&&this.renderer.removeAttribute(this.gradientElement.nativeElement,"aria-label")}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.SBq),e.Y36(rl),e.Y36(w.oQ),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(e.zs3))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-flatcolorpicker"]],viewQuery:function(v,ue){if(1&v&&(e.Gf(Xo,5),e.Gf(Xo,5,e.SBq),e.Gf(Lo,5),e.Gf(Lo,5,e.SBq),e.Gf(or,5),e.Gf(xr,5)),2&v){let dt;e.iGM(dt=e.CRH())&&(ue.header=dt.first),e.iGM(dt=e.CRH())&&(ue.headerElement=dt.first),e.iGM(dt=e.CRH())&&(ue.gradient=dt.first),e.iGM(dt=e.CRH())&&(ue.gradientElement=dt.first),e.iGM(dt=e.CRH())&&(ue.palette=dt.first),e.iGM(dt=e.CRH())&&(ue.footer=dt.first)}},hostVars:12,hostBindings:function(v,ue){1&v&&e.NdJ("keydown.enter",function(In){return ue.enterHandler(In)})("keydown.escape",function(){return ue.escapeHandler()})("focusin",function(In){return ue.focusHandler(In)}),2&v&&(e.uIk("aria-disabled",ue.isDisabled)("aria-readonly",ue.ariaReadonly)("dir",ue.direction)("tabindex",ue.hostTabindex)("role",ue.ariaRole)("aria-invalid",ue.isControlInvalid),e.ekj("k-flatcolorpicker",ue.hostClasses)("k-coloreditor",ue.hostClasses)("k-disabled",ue.disabledClass))},inputs:{readonly:"readonly",disabled:"disabled",format:"format",value:"value",tabindex:"tabindex",clearButton:"clearButton",preview:"preview",actionsLayout:"actionsLayout",activeView:"activeView",views:"views",gradientSettings:"gradientSettings",paletteSettings:"paletteSettings"},outputs:{valueChange:"valueChange",cancel:"cancel",activeViewChange:"activeViewChange",clearButtonClick:"clearButtonClick",actionButtonClick:"actionButtonClick"},exportAs:["kendoFlatColorPicker"],features:[e._Bn([{multi:!0,provide:n.JU,useExisting:(0,e.Gpc)(()=>Pe)},{provide:g.GX,useExisting:(0,e.Gpc)(()=>Pe)},rl,To,{provide:w.oQ,useExisting:To},{provide:w.mM,useValue:"kendo.flatcolorpicker"}]),e.TTD],decls:6,vars:4,consts:function(){let Tn,v,ue,dt,In,er,Br,es,Ks,xa,ha,Aa,vl,ml,yl,Cc,Bc,Bl,Wc,xu,iu,ku,Lc;return Tn=$localize`:kendo.flatcolorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty.:Flatcolorpicker no color chosen`,v=$localize`:kendo.flatcolorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty.:Colorgradient no color chosen`,ue=$localize`:kendo.flatcolorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty.:Colorpalette no color chosen`,dt=$localize`:kendo.flatcolorpicker.colorGradientHandle|The title for the gradient color drag handle chooser.:Choose color`,In=$localize`:kendo.flatcolorpicker.clearButton|The title for the clear button.:Clear value`,er=$localize`:kendo.flatcolorpicker.hueSliderHandle|The title for the hue slider handle.:Set hue`,Br=$localize`:kendo.flatcolorpicker.opacitySliderHandle|The title for the opacity slider handle.:Set opacity`,es=$localize`:kendo.flatcolorpicker.contrastRatio|The contrast ratio message for the contrast tool.:Contrast ratio`,Ks=$localize`:kendo.flatcolorpicker.previewColor|The message for the color preview pane.:Color preview`,xa=$localize`:kendo.flatcolorpicker.revertSelection|The message for the selected color pane.:Revert selection`,ha=$localize`:kendo.flatcolorpicker.gradientView|The message for the gradient view button.:Gradient view`,Aa=$localize`:kendo.flatcolorpicker.paletteView|The message for the palette view button.:Palette view`,vl=$localize`:kendo.flatcolorpicker.formatButton|The message for the input format toggle button.:Change color format`,ml=$localize`:kendo.flatcolorpicker.applyButton|The message for the Apply action button.:Apply`,yl=$localize`:kendo.flatcolorpicker.cancelButton|The message for the Cancel action button.:Cancel`,Cc=$localize`:kendo.flatcolorpicker.redChannelLabel|The label of the NumericTextBox representing the red color channel.:Red channel`,Bc=$localize`:kendo.flatcolorpicker.greenChannelLabel|The label of the NumericTextBox representing the green color channel.:Green channel`,Bl=$localize`:kendo.flatcolorpicker.blueChannelLabel|The label of the NumericTextBox representing the blue color channel.:Blue channel`,Wc=$localize`:kendo.flatcolorpicker.alphaChannelLabel|The label of the NumericTextBox representing the alpha color channel.:Alpha channel`,xu=$localize`:kendo.flatcolorpicker.redChannelLabel|The label of the NumericTextBox representing the red color channel.:R`,iu=$localize`:kendo.flatcolorpicker.greenInputPlaceholder|The placeholder for the green color input.:G`,ku=$localize`:kendo.flatcolorpicker.blueInputPlaceholder|The placeholder for the blue color input.:B`,Lc=$localize`:kendo.flatcolorpicker.hexInputPlaceholder|The placeholder for the HEX color input.:HEX`,[["kendoFlatColorPickerLocalizedMessages","","flatColorPickerNoColor",Tn,"colorGradientNoColor",v,"colorPaletteNoColor",ue,"colorGradientHandle",dt,"clearButton",In,"hueSliderHandle",er,"opacitySliderHandle",Br,"contrastRatio",es,"previewColor",Ks,"revertSelection",xa,"gradientView",ha,"paletteView",Aa,"formatButton",vl,"applyButton",ml,"cancelButton",yl,"redChannelLabel",Cc,"greenChannelLabel",Bc,"blueChannelLabel",Bl,"alphaChannelLabel",Wc,"redChannelLabel",xu,"greenInputPlaceholder",iu,"blueInputPlaceholder",ku,"hexInputPlaceholder",Lc],["kendoFlatColorPickerHeader","",3,"innerTabIndex","clearButton","activeView","views","value","selection","preview","clearButtonClick","viewChange","valuePaneClick","tabOut",4,"ngIf"],[1,"k-coloreditor-views","k-vstack"],[3,"tabindex","value","format","opacity","delay","contrastTool","gradientSliderSmallStep","gradientSliderStep","readonly","keydown.tab","valueChange",4,"ngIf"],[3,"tabindex","palette","columns","tileSize","format","value","readonly","valueChange",4,"ngIf"],["kendoFlatColorPickerActionButtons","",3,"innerTabIndex","ngClass","actionButtonClick","tabOut",4,"ngIf"],["kendoFlatColorPickerHeader","",3,"innerTabIndex","clearButton","activeView","views","value","selection","preview","clearButtonClick","viewChange","valuePaneClick","tabOut"],["header",""],[3,"tabindex","value","format","opacity","delay","contrastTool","gradientSliderSmallStep","gradientSliderStep","readonly","keydown.tab","valueChange"],["gradient",""],[3,"tabindex","palette","columns","tileSize","format","value","readonly","valueChange"],["palette",""],["kendoFlatColorPickerActionButtons","",3,"innerTabIndex","ngClass","actionButtonClick","tabOut"],["footer",""]]},template:function(v,ue){1&v&&(e.GkF(0,0),e.YNc(1,Nr,2,7,"div",1),e.TgZ(2,"div",2),e.YNc(3,as,2,9,"kendo-colorgradient",3),e.YNc(4,ji,2,7,"kendo-colorpalette",4),e.qZA(),e.YNc(5,Fo,2,2,"div",5)),2&v&&(e.xp6(1),e.Q6J("ngIf",ue.headerHasContent),e.xp6(2),e.Q6J("ngIf","gradient"===ue.activeView),e.xp6(1),e.Q6J("ngIf","palette"===ue.activeView),e.xp6(1),e.Q6J("ngIf",ue.preview))},dependencies:[mc,Uh,Zu,xd,vu,b.O5,b.mk],encapsulation:2}),Pe})();const Fl=["focus","blur"];let dd=0,gc=(()=>{class Pe{constructor(v,ue,dt,In,er,Br,es){this.host=v,this.popupService=ue,this.cdr=dt,this.localizationService=In,this.ngZone=er,this.renderer=Br,this.injector=es,this.hostClasses=!0,this.role="combobox",this.hasPopup="dialog",this.views=["gradient","palette"],this.readonly=!1,this.disabled=!1,this.format="rgba",this.clearButton=!0,this.preview=!1,this.actionsLayout="end",this.valueChange=new e.vpe,this.open=new e.vpe,this.close=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.cancel=new e.vpe,this.activeColorClick=new e.vpe,this.clearButtonClick=new e.vpe,this.activeViewChange=new e.vpe,this.isFocused=!1,this.arrowDownIcon=p.M7i,this._tabindex=0,this._popupSettings={animate:!0},this._paletteSettings={},this._gradientSettings={opacity:!0,delay:0},this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=new o.w0,this.popupSubs=new o.w0,this.notifyNgTouched=()=>{},this.notifyNgChanged=()=>{},this.domFocusListener=Ks=>Ks.stopImmediatePropagation(),(0,M.s)(da),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(({rtl:Ks})=>{this.direction=Ks?"rtl":"ltr"}),this.colorPickerId=dd++}get focusedClass(){return this.isFocused}get disabledClass(){return this.disabled}get ariaReadonly(){return this.readonly}get ariaExpanded(){return this.isOpen}get hostTabindex(){return this.tabindex}get isControlInvalid(){return this.control?.invalid?.toString()}set view(v){this.views=[v]}get view(){return this.views&&this.views.length>0?this.views[0]:null}set value(v){this._value=We(v,this.format,this.gradientSettings.opacity)}get value(){return this._value}set popupSettings(v){this._popupSettings=Object.assign(this._popupSettings,v)}get popupSettings(){return this._popupSettings}set paletteSettings(v){this._paletteSettings=Object.assign(this._paletteSettings,v)}get paletteSettings(){return this._paletteSettings}set gradientSettings(v){this._gradientSettings=Object.assign(this._gradientSettings,v)}get gradientSettings(){return this._gradientSettings}set svgIcon(v){if((0,e.X6Q)()&&v&&this.icon&&this.iconClass)throw new Error("Setting both icon/svgIcon and iconClass options at the same time is not supported.");this._svgIcon=v}get svgIcon(){return this._svgIcon}set tabindex(v){const ue=Number(v);this._tabindex=isNaN(ue)?0:ue}get tabindex(){return this.disabled?void 0:this._tabindex}set size(v){const ue=v||"medium";this.handleClasses(ue,"size"),this._size=ue}get size(){return this._size}set rounded(v){const ue=v||"medium";this.handleClasses(ue,"rounded"),this._rounded=ue}get rounded(){return this._rounded}set fillMode(v){const ue=v||"solid";this.handleClasses(ue,"fillMode"),this._fillMode=ue}get fillMode(){return this._fillMode}get isOpen(){return br(this.popupRef)}get customIconStyles(){if(this.iconClass){let v="";return(0,g.qr)(this.iconClass).forEach(ue=>{v+=ue+" "}),v.slice(0,-1)}return""}get iconStyles(){return this.icon&&!this.iconClass?`${this.icon}`:""}ngOnInit(){const ue=this._paletteSettings.palette;this._paletteSettings={palette:ue||("name"!==this.format?"office":_l),tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||("string"==typeof ue&&pa[ue]?pa[ue].columns:void 0)||10},this.handleHostId(),this.renderer.setAttribute(this.host.nativeElement,"aria-controls",`k-colorpicker-popup-${this.colorPickerId}`),this.control=this.injector.get(n.a5,null)}ngAfterViewInit(){["size","rounded","fillMode"].forEach(ue=>{this.handleClasses(this[ue],ue)}),this.setHostElementAriaLabel(),this.initDomEvents()}ngOnChanges(v){v.format&&"name"===v.format.currentValue&&(this.activeView="palette"),"gradient"===this.activeView&&this.gradientSettings.opacity&&(this.format="rgba",this.value=We(this.value,this.format,this.gradientSettings.opacity)),(0,g.ln)("value",v)&&this.setHostElementAriaLabel()}ngOnDestroy(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe(),this.handleDomEvents("remove",Fl)}handleCancelEvent(v){this.cancel.emit(v)}togglePopup(){this.focus(),this.toggleWithEvents(!this.isOpen)}handleWrapperClick(v){if(!this.disabled){if(this.focus(),(0,g.oq)(v.target,ue=>ue===this.activeColor.nativeElement)){const ue=new rn(this.value);return this.activeColorClick.emit(ue),void((!ue.isOpenPrevented()||this.isOpen)&&this.toggleWithEvents(!this.isOpen))}this.toggleWithEvents(!this.isOpen)}}focus(){this.isFocused=!0,this.host.nativeElement.focus()}handleWrapperFocus(){this.isFocused||this.ngZone.run(()=>{this.focus(),this.onFocus.emit()})}blur(){this.isFocused=!1,this.host.nativeElement.blur(),this.notifyNgTouched()}handleWrapperBlur(){this.isOpen||this.ngZone.run(()=>{this.onBlur.emit(),this.isFocused=!1})}reset(){br(this.value)&&(this._value=void 0,this.setHostElementAriaLabel(),this.notifyNgChanged(void 0))}toggle(v){this.disabled||this.readonly||(this.cdr.markForCheck(),this.closePopup(),(v=br(v)?v:!this.isOpen)&&(this.openPopup(),this.focusFirstElement()))}handleValueChange(v){const ue=We(v,this.format,this.gradientSettings.opacity);ue!==this.value&&(this.value=ue,this.valueChange.emit(ue),this.setHostElementAriaLabel(),this.notifyNgChanged(ue))}handlePopupBlur(v){this.popupBlurInvalid(v)||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))}writeValue(v){this.value=v}registerOnChange(v){this.notifyNgChanged=v}registerOnTouched(v){this.notifyNgTouched=v}setDisabledState(v){this.cdr.markForCheck(),this.disabled=v}handleWrapperKeyDown(v){(v.keyCode===g.R8.ArrowDown||v.keyCode===g.R8.Enter)&&(v.preventDefault(),this.ngZone.run(()=>{this.toggleWithEvents(!0)}))}handlePopupKeyDown(v){if(v.keyCode===g.R8.Escape&&(this.toggleWithEvents(!1),this.host.nativeElement.focus()),v.keyCode===g.R8.Tab){const dt=v.shiftKey?this.lastFocusableElement.nativeElement:this.firstFocusableElement.nativeElement;v.target===(v.shiftKey?this.firstFocusableElement.nativeElement:this.lastFocusableElement.nativeElement)&&(v.preventDefault(),dt.focus())}}isEmpty(){return!1}setHostElementAriaLabel(){const v=`${this.value?this.value:this.localizationService.get("colorPickerNoColor")}`;this.renderer.setAttribute(this.host.nativeElement,"aria-label",v)}handleClasses(v,ue){const dt=this.host.nativeElement,In=lr("picker",ue,this[ue],v);In.toRemove&&this.renderer.removeClass(dt,In.toRemove),In.toAdd&&this.renderer.addClass(dt,In.toAdd)}popupBlurInvalid(v){const ue=this.popupRef.popupElement.contains(v.relatedTarget);return!(!(0,g.oq)(v.relatedTarget,In=>In===this.host.nativeElement)&&!ue)}toggleWithEvents(v){if(this.disabled||this.readonly||this.isOpen===v)return;let dt;v?(dt=new Ct,this.open.emit(dt)):(dt=new nd,this.close.emit(dt)),dt.isDefaultPrevented()||this.toggle(v),v&&this.focusFirstElement()}focusFirstElement(){this.ngZone.onStable.pipe((0,A.q)(1)).subscribe(()=>{if(this.flatColorPicker){const v=this.flatColorPicker.gradient?.gradientDragHandle,ue=this.flatColorPicker.palette?.host;(v||ue).nativeElement.focus()}})}openPopup(){const v="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.activeColor,animate:this.popupSettings.animate,appendTo:this.popupSettings.appendTo,popupAlign:{horizontal:v,vertical:"top"},anchorAlign:{horizontal:v,vertical:"bottom"},popupClass:"k-colorpicker-popup",content:this.popupTemplate,positionMode:"absolute"}),this.renderer.setAttribute(this.popupRef.popupElement.querySelector(".k-colorpicker-popup"),"id",`k-colorpicker-popup-${this.colorPickerId}`),this.popupSubs.add(this.popupRef.popupAnchorViewportLeave.subscribe(()=>{this.toggleWithEvents(!1),this.isOpen||this.host.nativeElement.focus({preventScroll:!0})}))}closePopup(){this.isOpen&&(this.popupSubs.unsubscribe(),this.popupRef.close(),this.popupRef=null)}get firstFocusableElement(){if(!this.flatColorPicker.header||this.views.length<=1&&!this.flatColorPicker.clearButton){const v=this.flatColorPicker.gradient;return v?v.gradientDragHandle:this.flatColorPicker.palette.host}return this.views.length>1?this.flatColorPicker.header.viewButtonsCollection.toArray()[0]:this.flatColorPicker.header.clearButtonElement}get lastFocusableElement(){if(this.preview)return this.flatColorPicker.footer.lastButton;if(this.flatColorPicker.palette)return this.flatColorPicker.palette.host;const v=this.flatColorPicker.gradient,ue=v&&v.inputs;return v&&ue&&"hex"===ue.formatView?ue.hexInput:this.gradientSettings.opacity?ue.opacityInput.numericInput:ue.blueInput.numericInput}handleDomEvents(v,ue){const dt=this.host.nativeElement;ue.forEach(In=>dt[`${v}EventListener`](In,this.domFocusListener,!0))}initDomEvents(){if(!this.host)return;const v=this.host.nativeElement;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(v,"focusin",()=>{this.handleWrapperFocus()})),this.subscriptions.add(this.renderer.listen(v,"focusout",ue=>{const dt=!!this.popupRef&&(0,g.oq)(ue.relatedTarget,er=>er===this.flatColorPicker.host.nativeElement),In=(0,g.oq)(ue.relatedTarget,er=>er===this.host.nativeElement);!dt&&!In&&this.handleWrapperBlur()})),this.handleDomEvents("add",Fl),this.subscriptions.add(this.renderer.listen(v,"keydown",ue=>{this.handleWrapperKeyDown(ue)})),this.subscriptions.add(this.renderer.listen(v,"click",ue=>{this.ngZone.run(()=>{this.handleWrapperClick(ue)})}))})}handleHostId(){const v=this.host.nativeElement,ue=v.getAttribute("id");if(ue)this.focusableId=ue;else{const dt=`k-${(0,g.M8)()}`;v.setAttribute("id",dt),this.focusableId=dt}}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.SBq),e.Y36(F.qL),e.Y36(e.sBO),e.Y36(w.oQ),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(e.zs3))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-colorpicker"]],viewQuery:function(v,ue){if(1&v&&(e.Gf(rt,7,e.s_b),e.Gf(ai,7),e.Gf(Gn,7),e.Gf(Io,5)),2&v){let dt;e.iGM(dt=e.CRH())&&(ue.container=dt.first),e.iGM(dt=e.CRH())&&(ue.activeColor=dt.first),e.iGM(dt=e.CRH())&&(ue.popupTemplate=dt.first),e.iGM(dt=e.CRH())&&(ue.flatColorPicker=dt.first)}},hostVars:18,hostBindings:function(v,ue){2&v&&(e.uIk("aria-disabled",ue.disabledClass)("aria-readonly",ue.ariaReadonly)("aria-expanded",ue.ariaExpanded)("tabindex",ue.hostTabindex)("dir",ue.direction)("role",ue.role)("aria-haspopup",ue.hasPopup)("aria-invalid",ue.isControlInvalid),e.ekj("k-colorpicker",ue.hostClasses)("k-icon-picker",ue.hostClasses)("k-picker",ue.hostClasses)("k-focus",ue.focusedClass)("k-disabled",ue.disabledClass))},inputs:{views:"views",view:"view",activeView:"activeView",readonly:"readonly",disabled:"disabled",format:"format",value:"value",popupSettings:"popupSettings",paletteSettings:"paletteSettings",gradientSettings:"gradientSettings",icon:"icon",iconClass:"iconClass",svgIcon:"svgIcon",clearButton:"clearButton",tabindex:"tabindex",preview:"preview",actionsLayout:"actionsLayout",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",open:"open",close:"close",onFocus:"focus",onBlur:"blur",cancel:"cancel",activeColorClick:"activeColorClick",clearButtonClick:"clearButtonClick",activeViewChange:"activeViewChange"},exportAs:["kendoColorPicker"],features:[e._Bn([{multi:!0,provide:n.JU,useExisting:(0,e.Gpc)(()=>Pe)},{provide:g.GX,useExisting:(0,e.Gpc)(()=>Pe)},eo,{provide:w.oQ,useExisting:eo},{provide:w.mM,useValue:"kendo.colorpicker"}]),e.TTD],decls:11,vars:8,consts:function(){let Tn,v,ue,dt,In,er,Br,es,Ks,xa,ha,Aa,vl,ml,yl,Cc,Bc,Bl,Wc,xu,iu,ku,Lc,ul;return Tn=$localize`:kendo.colorpicker.colorPickerNoColor|The aria-label applied to the ColorPicker component when the value is empty.:Colorpicker no color chosen`,v=$localize`:kendo.colorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty.:Flatcolorpicker no color chosen`,ue=$localize`:kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty.:Colorgradient no color chosen`,dt=$localize`:kendo.colorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty.:Colorpalette no color chosen`,In=$localize`:kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser.:Choose color`,er=$localize`:kendo.colorpicker.clearButton|The title for the clear button.:Clear value`,Br=$localize`:kendo.colorpicker.hueSliderHandle|The title for the hue slider handle.:Set hue`,es=$localize`:kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle.:Set opacity`,Ks=$localize`:kendo.colorpicker.contrastRatio|The contrast ratio message for the contrast tool.:Contrast ratio`,xa=$localize`:kendo.colorpicker.previewColor|The message for the color preview pane.:Color preview`,ha=$localize`:kendo.colorpicker.revertSelection|The message for the selected color pane.:Revert selection`,Aa=$localize`:kendo.colorpicker.gradientView|The message for the gradient view button.:Gradient view`,vl=$localize`:kendo.colorpicker.paletteView|The message for the palette view button.:Palette view`,ml=$localize`:kendo.colorpicker.formatButton|The message for the input format toggle button.:Change color format`,yl=$localize`:kendo.colorpicker.applyButton|The message for the Apply action button.:Apply`,Cc=$localize`:kendo.colorpicker.cancelButton|The message for the Cancel action button.:Cancel`,Bc=$localize`:kendo.colorpicker.redChannelLabel|The label of the NumericTextBox representing the red color channel.:Red channel`,Bl=$localize`:kendo.colorpicker.greenChannelLabel|The label of the NumericTextBox representing the green color channel.:Green channel`,Wc=$localize`:kendo.colorpicker.blueChannelLabel|The label of the NumericTextBox representing the blue color channel.:Blue channel`,xu=$localize`:kendo.colorpicker.alphaChannelLabel|The label of the NumericTextBox representing the alpha color channel.:Alpha channel`,iu=$localize`:kendo.colorpicker.redChannelLabel|The label of the NumericTextBox representing the red color channel.:R`,ku=$localize`:kendo.colorpicker.greenInputPlaceholder|The placeholder for the green color input.:G`,Lc=$localize`:kendo.colorpicker.blueInputPlaceholder|The placeholder for the blue color input.:B`,ul=$localize`:kendo.colorpicker.hexInputPlaceholder|The placeholder for the HEX color input.:HEX`,[["kendoColorPickerLocalizedMessages","","colorPickerNoColor",Tn,"flatColorPickerNoColor",v,"colorGradientNoColor",ue,"colorPaletteNoColor",dt,"colorGradientHandle",In,"clearButton",er,"hueSliderHandle",Br,"opacitySliderHandle",es,"contrastRatio",Ks,"previewColor",xa,"revertSelection",ha,"gradientView",Aa,"paletteView",vl,"formatButton",ml,"applyButton",yl,"cancelButton",Cc,"redChannelLabel",Bc,"greenChannelLabel",Bl,"blueChannelLabel",Wc,"alphaChannelLabel",xu,"redChannelLabel",iu,"greenInputPlaceholder",ku,"blueInputPlaceholder",Lc,"hexInputPlaceholder",ul],[1,"k-input-inner"],["activeColor",""],[1,"k-value-icon","k-color-preview",3,"ngClass"],["innerCssClass","k-color-preview-icon",3,"name","customFontClass","svgIcon",4,"ngIf"],[1,"k-color-preview-mask"],["kendoButton","","tabindex","-1","type","button","icon","caret-alt-down","aria-hidden","true",1,"k-input-button",3,"svgIcon"],["popupTemplate",""],["container",""],["innerCssClass","k-color-preview-icon",3,"name","customFontClass","svgIcon"],[3,"value","format","views","activeView","actionsLayout","preview","gradientSettings","paletteSettings","clearButton","cancel","focusout","valueChange","keydown","activeViewChange","clearButtonClick","actionButtonClick"],["flatColorPicker",""]]},template:function(v,ue){1&v&&(e.GkF(0,0),e.TgZ(1,"span",1,2)(3,"span",3),e.YNc(4,wr,1,3,"kendo-icon-wrapper",4),e._UZ(5,"span",5),e.qZA()(),e._UZ(6,"button",6),e.YNc(7,bs,2,9,"ng-template",null,7,e.W1O),e.GkF(9,null,8)),2&v&&(e.xp6(3),e.Q6J("ngClass",e.WLB(5,ba,ue.customIconStyles||ue.iconStyles||ue.svgIcon,!ue.value)),e.xp6(1),e.Q6J("ngIf",ue.iconClass||ue.icon||ue.svgIcon),e.xp6(1),e.Udp("background-color",ue.value),e.xp6(1),e.Q6J("svgIcon",ue.arrowDownIcon))},dependencies:[D.ZS,E.r0,fu,vu,b.mk,b.O5],encapsulation:2}),Pe})(),ud=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[io,jr,b.ez,F.Zj,g.QY,E.hJ,D.pc]]}),Pe})(),od=(()=>{class Pe{constructor(v,ue){this.renderer=v,this.hostElement=ue,this.kendoClass=!0,this._size="medium",this._rounded="medium"}set size(v){const ue=v||"medium";this.handleClasses(ue,"size"),this._size=ue}get size(){return this._size}set rounded(v){const ue=v||"medium";this.handleClasses(ue,"rounded"),this._rounded=ue}get rounded(){return this._rounded}ngAfterViewInit(){["size","rounded"].forEach(ue=>{this.handleClasses(this[ue],ue)})}handleClasses(v,ue){const dt=this.hostElement.nativeElement,In=lr("checkbox",ue,this[ue],v);In.toRemove&&this.renderer.removeClass(dt,In.toRemove),In.toAdd&&this.renderer.addClass(dt,In.toAdd)}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.Qsj),e.Y36(e.SBq))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["input","kendoCheckBox",""]],hostVars:2,hostBindings:function(v,ue){2&v&&e.ekj("k-checkbox",ue.kendoClass)},inputs:{size:"size",rounded:"rounded"}}),Pe})(),Ic=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[b.ez]]}),Pe})(),$d=(()=>{class Pe{constructor(v,ue){this.renderer=v,this.hostElement=ue,this.kendoClass=!0,this._size="medium",(0,M.s)(da)}set size(v){const ue=v||"medium";this.handleClasses(ue,"size"),this._size=ue}get size(){return this._size}ngAfterViewInit(){["size"].forEach(ue=>{this.handleClasses(this[ue],ue)})}handleClasses(v,ue){const dt=this.hostElement.nativeElement,In=lr("radio",ue,this[ue],v);In.toRemove&&this.renderer.removeClass(dt,In.toRemove),In.toAdd&&this.renderer.addClass(dt,In.toAdd)}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.Qsj),e.Y36(e.SBq))},Pe.\u0275dir=e.lG2({type:Pe,selectors:[["input","kendoRadioButton",""]],hostVars:2,hostBindings:function(v,ue){2&v&&e.ekj("k-radio",ue.kendoClass)},inputs:{size:"size"}}),Pe})(),dc=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[b.ez]]}),Pe})(),$c=0,oc=(()=>{class Pe{constructor(){this.hostClass=!0,this.align="start",this.id="kendo-error-"+$c++,this.roleAttribute="alert"}get startClass(){return"start"===this.align}get endClass(){return"end"===this.align}get idAttribute(){return this.id}}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-formerror"]],hostVars:8,hostBindings:function(v,ue){2&v&&(e.uIk("role",ue.roleAttribute)("id",ue.idAttribute),e.ekj("k-form-error",ue.hostClass)("k-text-start",ue.startClass)("k-text-end",ue.endClass))},inputs:{align:"align"},ngContentSelectors:Eo,decls:1,vars:0,template:function(v,ue){1&v&&(e.F$t(),e.Hsn(0))},encapsulation:2}),Pe})(),Hd=0,Rc=(()=>{class Pe{constructor(){this.align="start",this.id="kendo-hint-"+Hd++,this.hostClass=!0}get startClass(){return"start"===this.align}get endClass(){return"end"===this.align}get idAttribute(){return this.id}}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-formhint"]],hostVars:7,hostBindings:function(v,ue){2&v&&(e.uIk("id",ue.idAttribute),e.ekj("k-form-hint",ue.hostClass)("k-text-start",ue.startClass)("k-text-end",ue.endClass))},inputs:{align:"align"},ngContentSelectors:Eo,decls:1,vars:0,template:function(v,ue){1&v&&(e.F$t(),e.Hsn(0))},encapsulation:2}),Pe})(),_d=(()=>{class Pe{constructor(v,ue,dt){this.renderer=v,this.localizationService=ue,this.hostElement=dt,this.hostClass=!0,this.showHints="initial",this.orientation="vertical",this.showErrors="initial",this.subscriptions=new o.w0,this.rtl=!1,(0,M.s)(da),this.subscriptions.add(this.localizationService.changes.subscribe(({rtl:In})=>{this.rtl=In,this.direction=this.rtl?"rtl":"ltr"}))}get errorClass(){return!!this.control&&this.control.invalid&&(this.control.touched||this.control.dirty)}get disabledClass(){return!(!this.control||this.isRadioControl(this.control))&&(this.disabledControl()||this.disabledElement()||this.disabledKendoInput())}set formControls(v){this.validateFormControl(v),this.control=v.first}get horizontal(){return"horizontal"===this.orientation}get hasHints(){return"always"===this.showHints||this.showHintsInitial()}get hasErrors(){return"always"===this.showErrors||this.showErrorsInitial()}ngAfterViewInit(){this.setDescription()}ngAfterViewChecked(){this.updateDescription()}ngOnDestroy(){this.subscriptions.unsubscribe()}disabledKendoInput(){return this.kendoInput&&this.kendoInput.disabled}disabledControl(){return this.control.disabled}disabledElement(){return this.controlElementRefs.toArray().every(ue=>ue.nativeElement.hasAttribute("disabled"))}validateFormControl(v){if((0,e.X6Q)()&&1!==v.length&&!this.isControlGroup(v))throw new Error("The `kendo-formfield` component should contain only one control of type NgControl with a formControlName(https://angular.io/api/forms/FormControlName)or an ngModel(https://angular.io/api/forms/NgModel) binding.")}isControlGroup(v){if(!v.length)return!1;const ue=v.first.name;return v.toArray().every(dt=>dt.name===ue&&this.isRadioControl(dt))}isRadioControl(v){return v.valueAccessor instanceof n._}updateDescription(){const v=this.findControlElements();v&&v.forEach(ue=>{if(this.errorChildren.length>0||this.hintChildren.length>0){const dt=this.generateDescriptionIds(ue);""!==dt?this.renderer.setAttribute(ue,"aria-describedby",dt):this.renderer.removeAttribute(ue,"aria-describedby")}})}findControlElements(){if(this.controlElementRefs)return this.kendoInput&&this.kendoInput.focusableId&&(0,g.X_)()?[this.hostElement.nativeElement.querySelector(`#${this.kendoInput.focusableId}`)]:this.controlElementRefs.map(v=>v.nativeElement)}generateDescriptionIds(v){const ue=new Set;let dt="";if(v.hasAttribute("aria-describedby")){const In=v.getAttribute("aria-describedby").split(" ");dt=In.filter(er=>er.includes("kendo-error-"))[0],In.forEach(er=>{er.includes("kendo-hint-")||er.includes("kendo-error-")||ue.add(er)})}return this.hintChildren.forEach(In=>{ue.add(In.id)}),this.hasErrors?this.errorChildren.forEach(In=>{ue.add(In.id)}):ue.delete(dt),Array.from(ue).join(" ")}showHintsInitial(){if(!this.control)return!0;const{valid:v,untouched:ue,pristine:dt}=this.control;return v||ue&&dt}showErrorsInitial(){if(!this.control)return!1;const{invalid:v,dirty:ue,touched:dt}=this.control;return v&&(ue||dt)}setDescription(){this.updateDescription(),this.subscriptions.add(this.errorChildren.changes.subscribe(()=>this.updateDescription())),this.subscriptions.add(this.hintChildren.changes.subscribe(()=>this.updateDescription()))}}return Pe.\u0275fac=function(v){return new(v||Pe)(e.Y36(e.Qsj),e.Y36(w.oQ),e.Y36(e.SBq))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["kendo-formfield"]],contentQueries:function(v,ue,dt){if(1&v&&(e.Suo(dt,g.GX,7),e.Suo(dt,n.a5,5),e.Suo(dt,n.a5,5,e.SBq),e.Suo(dt,oc,5),e.Suo(dt,Rc,5)),2&v){let In;e.iGM(In=e.CRH())&&(ue.kendoInput=In.first),e.iGM(In=e.CRH())&&(ue.formControls=In),e.iGM(In=e.CRH())&&(ue.controlElementRefs=In),e.iGM(In=e.CRH())&&(ue.errorChildren=In),e.iGM(In=e.CRH())&&(ue.hintChildren=In)}},hostVars:7,hostBindings:function(v,ue){2&v&&(e.uIk("dir",ue.direction),e.ekj("k-form-field",ue.hostClass)("k-form-field-error",ue.errorClass)("k-form-field-disabled",ue.disabledClass))},inputs:{showHints:"showHints",orientation:"orientation",showErrors:"showErrors"},features:[e._Bn([w.oQ,{provide:w.mM,useValue:"kendo.formfield"}])],ngContentSelectors:Sa,decls:5,vars:4,consts:[[4,"ngIf"]],template:function(v,ue){1&v&&(e.F$t(Ea),e.Hsn(0),e.TgZ(1,"div"),e.Hsn(2,1),e.YNc(3,ms,1,0,"ng-content",0),e.YNc(4,Oa,1,0,"ng-content",0),e.qZA()),2&v&&(e.xp6(1),e.ekj("k-form-field-wrap",ue.horizontal),e.xp6(2),e.Q6J("ngIf",ue.hasHints),e.xp6(1),e.Q6J("ngIf",ue.hasErrors))},dependencies:[b.O5],encapsulation:2}),Pe})(),rc=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[b.ez]]}),Pe})(),ds=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[E.hJ,b.ez,V.cy,D.pc]]}),Pe})(),us=(()=>{class Pe{}return Pe.\u0275fac=function(v){return new(v||Pe)},Pe.\u0275mod=e.oAB({type:Pe}),Pe.\u0275inj=e.cJS({imports:[[b.ez],xl,Sr,io,fo,Fr,jr,fs,ud,Ic,dc,rc,ds]}),Pe})()},91918:(he,y,i)=>{"use strict";i.d(y,{UB:()=>O,aJ:()=>P,o0:()=>me,p6:()=>x,uU:()=>V});var e=i(65879),n=i(12624),o=i(18754);const a={name:"@progress/kendo-angular-intl",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1694532808,version:"13.5.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},l="http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/",u={NoCurrency:`Solution: ${l}#toc-no-currency`,NoCurrencyDisplay:`Solution: ${l}#toc-no-currency-display`,NoCurrencyRegion:`Solution: ${l}#toc-no-currency-region`,NoDateFieldNames:`Solution: ${l}#toc-no-date-filed-names`,NoFirstDay:`Solution: ${l}#toc-no-first-day`,NoGMTInfo:`Solution: ${l}#toc-no-gmt-info`,NoLocale:`Solution: ${l}#toc-no-locale`,NoValidCurrency:`Solution: ${l}#toc-no-valid-currency`,NoWeekData:`Solution: ${l}#toc-no-week-data`};function s(J){return function(...Q){try{return J(...Q)}catch(re){throw re.message=function d(J){const Q=J.message,re=u[Object.keys(u).filter(de=>0===Q.indexOf(de))[0]];return re?`${Q} ${re}`:Q}(re),re}}}const A=s(o.Jp),_=s(o.F3),C=s(o.LG),R=s(o.WU),x=s(o.p6),f=s(o.uf),w=(s(o.zD),s(o.$U)),g=s(o.sG),M=s(o.p3),p=s(o.y0),E=s(o.BB),b=s(o.Ak),D=/_/g;let P=(()=>{class J{constructor(){this.changes=new e.vpe,(0,n.s)(a)}notify(){this.changes.emit()}}return J.\u0275fac=function(re){return new(re||J)},J.\u0275prov=e.Yz7({token:J,factory:function(re){let de=null;return de=re?new re:function F(J){return new O(J)}(e.LFG(e.soG)),de},providedIn:"root"}),J})(),O=(()=>{class J extends P{constructor(re){super(),this.localeId=re}get localeId(){return this.locale}set localeId(re){const de=re.replace(D,"-");de!==this.locale&&(this.locale=de,this.notify())}format(re,...de){return R(re,de,this.localeId)}toString(re,de,te){return E(re,de,te||this.localeId)}formatDate(re,de,te){return x(re,de,te||this.localeId)}parseDate(re,de,te){return g(re,de,te||this.localeId)}parseNumber(re,de,te){return M(re,te||this.localeId,de)}formatNumber(re,de,te){return f(re,de,te||this.localeId)}dateFieldName(re,de){return _(re,de||this.localeId)}dateFormatNames(re,de){return A(de||this.localeId,re)}splitDateFormat(re,de){return p(re,de||this.localeId)}numberSymbols(re){return w(re||this.localeId)}firstDay(re){return C(re||this.localeId)}weekendRange(re){return b(re||this.localeId)}}return J.\u0275fac=function(re){return new(re||J)(e.LFG(e.soG))},J.\u0275prov=e.Yz7({token:J,factory:J.\u0275fac}),J})(),V=(()=>{class J{constructor(re){this.intlService=re}transform(re,de="",te){return(re=this.normalize(re))&&this.intlService.formatDate(re,de,te)}normalize(re){return re&&"string"==typeof re?re=this.intlService.parseDate(re):re&&(J=>!isNaN(J-parseFloat(J)))(re)&&(re=new Date(parseFloat(re))),re}}return J.\u0275fac=function(re){return new(re||J)(e.Y36(P,16))},J.\u0275pipe=e.Yjl({name:"kendoDate",type:J,pure:!0}),J})(),me=(()=>{class J{}return J.\u0275fac=function(re){return new(re||J)},J.\u0275mod=e.oAB({type:J}),J.\u0275inj=e.cJS({}),J})()},58951:(he,y,i)=>{"use strict";i.d(y,{Z1:()=>d,ez:()=>u,lw:()=>s,mM:()=>A,oQ:()=>_});var e=i(65879),n=i(65619),o=i(836),a=i(37398),l=i(99397);let u=(()=>{class C{constructor(){this.changes=new n.X({rtl:void 0})}notify(x){this.changes.next({rtl:x})}get(x){}}return C.\u0275fac=function(x){return new(x||C)},C.\u0275prov=e.Yz7({token:C,factory:C.\u0275fac}),C})(),d=(()=>{class C{get override(){return!1}ngOnChanges(x){this.register(x),Object.keys(x).some(f=>!x[f].isFirstChange())&&this.service.notifyChanges()}ngOnInit(){this.subscription=this.service.changes.pipe((0,o.T)(1)).subscribe(()=>this.register(this))}register(x){Object.keys(x).forEach(k=>this.service.register(k,this[k],this.override))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return C.\u0275fac=function(x){return new(x||C)},C.\u0275dir=e.lG2({type:C,features:[e.TTD]}),C})();const s=new e.OlP("Kendo UI Right-to-Left token"),A=new e.OlP("Localization key prefix");let _=(()=>{class C{constructor(x,f,k){this.prefix=x,this.messageService=f,this._rtl=k,this.changes=new n.X({rtl:this._rtl}),this.dictionary={},f&&(this.subscription=f.changes.pipe((0,a.U)(({rtl:w})=>void 0!==w?w:this._rtl),(0,l.b)(w=>this._rtl=w)).subscribe(w=>{this.dictionary={},this.changes.next({rtl:w})}))}get rtl(){return this._rtl}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}get(x){const f=this.key(x);return this.dictionary[f]}register(x,f,k=!1){const w=this.key(x);let g=f;if(!k){if(Object.hasOwnProperty.call(this.dictionary,w))return;g=this.defaultValue(w,f)}this.dictionary[w]=g}notifyChanges(){this.changes.next({rtl:this.rtl})}key(x){return this.prefix+"."+x}defaultValue(x,f){if(!this.messageService)return f;const k=this.messageService.get(x);return void 0===k?f:k}}return C.\u0275fac=function(x){return new(x||C)(e.LFG(A),e.LFG(u,8),e.LFG(s,8))},C.\u0275prov=e.Yz7({token:C,factory:C.\u0275fac}),C})()},5954:(he,y,i)=>{"use strict";i.d(y,{_n:()=>V,q8:()=>g,r3:()=>X});var e=i(65879),n=i(3201),o=i(58951),a=i(96814),u=(i(56223),i(12624)),s=(i(65592),i(47394));const C=["*"];function R(me,J){if(1&me&&(e.TgZ(0,"span",3),e._uU(1),e.qZA()),2&me){const Q=e.oxw();e.xp6(1),e.hij("(",Q.textFor("optional"),")")}}let g=(()=>{class me{constructor(Q,re,de){this.label=Q,this.renderer=re,this.zone=de,this.labelClass=!0,this.handleClick=()=>{const te=this.getFocusableComponent();te&&te.focus&&te.focus()}}get labelFor(){if("string"==typeof this.for)return this.for;if(!(0,n.X_)())return null;const Q=this.getFocusableComponent()||{};return(me=>me instanceof HTMLElement)(Q)&&!((me,J)=>me.hasAttribute("id"))(Q)&&this.renderer.setAttribute(Q,"id",`k-${(0,n.M8)()}`),Q.focusableId||Q.id||null}ngAfterViewInit(){this.setAriaLabelledby(),this.zone.runOutsideAngular(()=>this.clickListener=this.renderer.listen(this.label.nativeElement,"click",this.handleClick))}ngOnDestroy(){this.clickListener&&this.clickListener()}setAriaLabelledby(){if(!(0,n.X_)())return;const Q=this.getFocusableComponent();if(Q&&Q.focusableId){const de=(me=>{if(!me)return null;let J=me;for(;J.parentElement;)J=J.parentElement;return J})(this.label.nativeElement).querySelector(`#${Q.focusableId}`),te=this.label.nativeElement,j=te.id||`k-${(0,n.M8)()}`;if(te.getAttribute("id")||this.renderer.setAttribute(te,"id",j),Q.focusableId.startsWith("k-editor")&&Q.iframe&&Q.contentAreaLoaded.subscribe(()=>{this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.renderer.setAttribute(Q.container.element.nativeElement.contentDocument.body.firstElementChild,"aria-label",te.textContent)})})}),!de)return;this.renderer.setAttribute(de,"aria-labelledby",j)}}getFocusableComponent(){const Q=this.for;return Q&&void 0!==Q.focus?Q:null}}return me.\u0275fac=function(Q){return new(Q||me)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b))},me.\u0275dir=e.lG2({type:me,selectors:[["label","for",""]],hostVars:3,hostBindings:function(Q,re){2&Q&&(e.uIk("for",re.labelFor),e.ekj("k-label",re.labelClass))},inputs:{for:"for",labelClass:"labelClass"}}),me})(),M=(()=>{class me extends o.Z1{}return me.\u0275fac=function(){let J;return function(re){return(J||(J=e.n5z(me)))(re||me)}}(),me.\u0275dir=e.lG2({type:me,selectors:[["kendo-label-messages-base"]],inputs:{optional:"optional"},features:[e.qOj]}),me})(),p=(()=>{class me extends M{constructor(Q){super(),this.service=Q}}return me.\u0275fac=function(Q){return new(Q||me)(e.Y36(o.oQ))},me.\u0275dir=e.lG2({type:me,selectors:[["","kendoLabelLocalizedMessages",""],["","kendoFloatingLabelLocalizedMessages",""]],features:[e._Bn([{provide:M,useExisting:(0,e.Gpc)(()=>me)}]),e.qOj]}),me})(),I=(()=>{class me{}return me.\u0275fac=function(Q){return new(Q||me)},me.\u0275mod=e.oAB({type:me}),me.\u0275inj=e.cJS({}),me})();const L={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1689688652,version:"13.2.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};let U=(()=>{class me{}return me.\u0275fac=function(Q){return new(Q||me)},me.\u0275mod=e.oAB({type:me}),me.\u0275inj=e.cJS({imports:[[a.ez,I],I]}),me})(),V=(()=>{class me{constructor(Q,re,de){this.elementRef=Q,this.renderer=re,this.localization=de,this.subscriptions=new s.w0,(0,u.s)(L),this.direction=de.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}ngAfterContentInit(){if(this.for)return void(this.control=this.for);const Q=(me=>this.elementRef.nativeElement.querySelector("kendo-label > input, kendo-label > textarea, kendo-label > select"))();if(Q)return Q.hasAttribute("id")||this.renderer.setAttribute(Q,"id",`k-${(0,n.M8)()}`),void(this.control=Q);this.control=this.kendoInput}ngOnInit(){this.subscriptions.add(this.localization.changes.subscribe(({rtl:Q})=>{this.direction=Q?"rtl":"ltr"}))}ngAfterViewInit(){this.labelDirective.setAriaLabelledby()}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}textFor(Q){return this.localization.get(Q)}}return me.\u0275fac=function(Q){return new(Q||me)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(o.oQ))},me.\u0275cmp=e.Xpm({type:me,selectors:[["kendo-label"]],contentQueries:function(Q,re,de){if(1&Q&&e.Suo(de,n.GX,7),2&Q){let te;e.iGM(te=e.CRH())&&(re.kendoInput=te.first)}},viewQuery:function(Q,re){if(1&Q&&e.Gf(g,7),2&Q){let de;e.iGM(de=e.CRH())&&(re.labelDirective=de.first)}},hostVars:1,hostBindings:function(Q,re){2&Q&&e.uIk("dir",re.direction)},inputs:{text:"text",for:"for",optional:"optional",labelCssStyle:"labelCssStyle",labelCssClass:"labelCssClass"},exportAs:["kendoLabel"],features:[e._Bn([o.oQ,{provide:o.mM,useValue:"kendo.label"}])],ngContentSelectors:C,decls:5,vars:7,consts:function(){let J;return J=$localize`:kendo.label.optional|The text for the optional segment of a Label component:Optional`,[["kendoLabelLocalizedMessages","","optional",J],[3,"for","ngClass","ngStyle"],["class","k-label-optional",4,"ngIf"],[1,"k-label-optional"]]},template:function(Q,re){1&Q&&(e.F$t(),e.GkF(0,0),e.TgZ(1,"label",1),e._uU(2),e.YNc(3,R,2,1,"span",2),e.qZA(),e.Hsn(4)),2&Q&&(e.xp6(1),e.ekj("k-label-empty",!re.text),e.Q6J("for",re.control)("ngClass",re.labelCssClass)("ngStyle",re.labelCssStyle),e.xp6(1),e.hij(" ",re.text,""),e.xp6(1),e.Q6J("ngIf",re.optional))},dependencies:[p,g,a.mk,a.PC,a.O5],encapsulation:2}),me})(),X=(()=>{class me{}return me.\u0275fac=function(Q){return new(Q||me)},me.\u0275mod=e.oAB({type:me}),me.\u0275inj=e.cJS({imports:[[a.ez,I],U,I]}),me})()},99714:(he,y,i)=>{"use strict";i.d(y,{Du:()=>od,Xj:()=>Ui,ZH:()=>Dt,tA:()=>Fi,xu:()=>fa,zy:()=>Hn});var e=i(65879),n=i(58951),o=i(3201),a=i(12624),l=i(86825),u=i(78645),s=(i(65619),i(47394)),_=(i(22096),i(73942)),C=i(60886),R=i(96814),p=(i(5177),i(59773),i(37398),i(99397),i(32181),i(94664),i(48180)),E=i(15735),b=i(32040);i(68503);const dn=["kendoTabStripScrollableButton",""],sn=["kendoTabStripTab",""];function fn(ye,bt){if(1&ye&&(e.TgZ(0,"span",2),e._uU(1),e.qZA()),2&ye){const be=e.oxw();e.xp6(1),e.Oqu(be.tab.title)}}function yi(ye,bt){}function nn(ye,bt){if(1&ye&&(e.TgZ(0,"span",2),e.YNc(1,yi,0,0,"ng-template",3),e.qZA()),2&ye){const be=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",null==be.tab.tabTitle?null:be.tab.tabTitle.templateRef)}}function Mi(ye,bt){if(1&ye){const be=e.EpF();e.TgZ(0,"button",4),e.NdJ("click",function(){e.CHM(be);const ei=e.oxw();return e.KtG(ei.closeTab(ei.index))}),e.qZA()}if(2&ye){const be=e.oxw();e.Q6J("icon",be.closeButtonClasses)("iconClass",be.customCloseButtonClasses)("svgIcon",be.closeSVGIconClass)("title",be.closeButtonTitle),e.uIk("aria-label",be.closeButtonTitle)}}const mi=["tablist"],Eo=["prevScrollButton"],Ko=["nextScrollButton"],xo=["tabHeaderContainer"];function Bn(ye,bt){1&ye&&e.GkF(0)}function Xt(ye,bt){1&ye&&e.GkF(0)}function Ji(ye,bt){if(1&ye&&(e.ynx(0),e.YNc(1,Bn,1,0,"ng-container",6),e.YNc(2,Xt,1,0,"ng-container",6),e.BQk()),2&ye){e.oxw();const be=e.MAs(4),st=e.MAs(6);e.xp6(1),e.Q6J("ngTemplateOutlet",be),e.xp6(1),e.Q6J("ngTemplateOutlet",st)}}function En(ye,bt){1&ye&&e.GkF(0)}function un(ye,bt){1&ye&&e.GkF(0)}function Ki(ye,bt){if(1&ye&&(e.ynx(0),e.YNc(1,En,1,0,"ng-container",6),e.YNc(2,un,1,0,"ng-container",6),e.BQk()),2&ye){e.oxw();const be=e.MAs(6),st=e.MAs(4);e.xp6(1),e.Q6J("ngTemplateOutlet",be),e.xp6(1),e.Q6J("ngTemplateOutlet",st)}}function Fn(ye,bt){if(1&ye){const be=e.EpF();e.TgZ(0,"span",12,13),e.NdJ("tabScroll",function(ei){e.CHM(be);const _o=e.oxw(2);return e.KtG(_o.tabScroll.emit(ei))})("onClick",function(ei){e.CHM(be);const _o=e.oxw(2);return e.KtG(_o.onScrollButtonClick(ei))}),e.qZA()}if(2&ye){const be=e.oxw(2);e.Q6J("scrollable",be.scrollable)("tabPosition",be.tabPosition)("prev",!0)("title",be.localization.get("previousTabButton"))}}function oi(ye,bt){if(1&ye){const be=e.EpF();e.ynx(0),e.TgZ(1,"li",14,15),e.NdJ("tabClose",function(ei){e.CHM(be);const _o=e.oxw(2);return e.KtG(_o.tabClose.emit(ei))})("click",function(ei){const gr=e.CHM(be).index,ds=e.oxw(2);return e.KtG(ds.onTabClick(ei,gr))}),e.qZA(),e.BQk()}if(2&ye){const be=bt.$implicit,st=bt.index,ei=e.oxw(2);e.xp6(1),e.Q6J("ngClass",be.cssClass)("ngStyle",be.cssStyle)("tab",be)("index",st)("tabStripClosable",ei.closable)("tabStripCloseIcon",ei.closeIcon)("customTabstripCloseIcon",ei.closeIconClass)("closeSVGIcon",ei.closeSVGIcon)("id",ei.getTabId(st)),e.uIk("aria-controls",be.selected?ei.getTabPanelId(st):void 0)}}function It(ye,bt){if(1&ye){const be=e.EpF();e.TgZ(0,"span",12,16),e.NdJ("tabScroll",function(ei){e.CHM(be);const _o=e.oxw(2);return e.KtG(_o.tabScroll.emit(ei))})("onClick",function(ei){e.CHM(be);const _o=e.oxw(2);return e.KtG(_o.onScrollButtonClick(ei))}),e.qZA()}if(2&ye){const be=e.oxw(2);e.Q6J("scrollable",be.scrollable)("tabPosition",be.tabPosition)("prev",!1)("title",be.localization.get("nextTabButton"))}}function Bt(ye,bt){if(1&ye&&(e.TgZ(0,"div",7),e.YNc(1,Fn,2,4,"span",8),e.TgZ(2,"ul",9,10),e.YNc(4,oi,3,10,"ng-container",11),e.qZA(),e.YNc(5,It,2,4,"span",8),e.qZA()),2&ye){const be=e.oxw();e.Q6J("ngClass",be.itemsWrapperClass),e.xp6(1),e.Q6J("ngIf",be.hasScrollButtons),e.xp6(1),e.Udp("justify-content",be.tabsAlignmentStyles)("width",be.tabListWidth)("height",be.tabListHeight),e.uIk("aria-orientation","left"===be.tabPosition||"right"===be.tabPosition?"vertical":"horizontal"),e.xp6(2),e.Q6J("ngForOf",be.tabs),e.xp6(1),e.Q6J("ngIf",be.hasScrollButtons)}}function xt(ye,bt){}function wt(ye,bt){if(1&ye&&(e.TgZ(0,"div",19),e.YNc(1,xt,0,0,"ng-template",20),e.qZA()),2&ye){const be=e.oxw(),st=be.$implicit,ei=be.index,_o=e.oxw(2);e.Q6J("@state",st.selected&&_o.animate?"active":"inactive")("ngClass",!_o.keepTabContent||st.selected?"k-tabstrip-content k-active":"k-tabstrip-content")("tabIndex",0)("id",_o.getTabPanelId(ei)),e.uIk("aria-hidden",!st.selected)("aria-expanded",st.selected)("aria-labelledby",_o.getTabId(ei))("aria-disabled",st.disabled),e.xp6(1),e.Q6J("ngTemplateOutlet",null==st.tabContent?null:st.tabContent.templateRef)}}function Mt(ye,bt){if(1&ye&&e.YNc(0,wt,2,9,"div",18),2&ye){const be=bt.$implicit,st=e.oxw(2);e.Q6J("ngIf",be.selected||st.keepTabContent)}}function pt(ye,bt){if(1&ye&&e.YNc(0,Mt,1,1,"ng-template",17),2&ye){const be=e.oxw();e.Q6J("ngForOf",be.tabs)}}function Lt(ye,bt){if(1&ye){const be=e.EpF();e.TgZ(0,"kendo-resize-sensor",21),e.NdJ("resize",function(){e.CHM(be);const ei=e.oxw();return e.KtG(ei.onResize())}),e.qZA()}}function tt(ye,bt){1&ye&&e._UZ(0,"div",22)}const kr={name:"@progress/kendo-angular-layout",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1694532961,version:"13.5.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},Ds=ye=>null!=ye,Zr=ye=>ye===o.R8.ArrowLeft||ye===o.R8.ArrowRight,ls=ye=>ye===o.R8.ArrowUp||ye===o.R8.ArrowDown,Js=ye=>ye===o.R8.PageUp||ye===o.R8.PageDown||ye===o.R8.Home||ye===o.R8.End,sl=/^(?:a|input|select|option|textarea|button|object)$/i,ht=(ye,bt)=>!!(ye=>String(ye).trim().split(" "))(ye.className).find(be=>be===bt);let Dt=(()=>{class ye{constructor(be){this.templateRef=be}}return ye.\u0275fac=function(be){return new(be||ye)(e.Y36(e.Rgc))},ye.\u0275dir=e.lG2({type:ye,selectors:[["","kendoTabContent",""]]}),ye})(),Hn=(()=>{class ye{constructor(be){this.templateRef=be}}return ye.\u0275fac=function(be){return new(be||ye)(e.Y36(e.Rgc))},ye.\u0275dir=e.lG2({type:ye,selectors:[["","kendoTabTitle",""]]}),ye})(),Ui=(()=>{class ye{constructor(){this.disabled=!1,this._tabContent=new e.n_E,this.focused=!1}get tabContent(){return this._tabContent.first}get tabTitle(){return this._tabTitleDirective.first}}return ye.\u0275fac=function(be){return new(be||ye)},ye.\u0275cmp=e.Xpm({type:ye,selectors:[["kendo-tabstrip-tab"]],contentQueries:function(be,st,ei){if(1&be&&(e.Suo(ei,Dt,4),e.Suo(ei,Hn,4)),2&be){let _o;e.iGM(_o=e.CRH())&&(st._tabContent=_o),e.iGM(_o=e.CRH())&&(st._tabTitleDirective=_o)}},inputs:{title:"title",disabled:"disabled",cssClass:"cssClass",cssStyle:"cssStyle",selected:"selected",closable:"closable",closeIcon:"closeIcon",closeIconClass:"closeIconClass",closeSVGIcon:"closeSVGIcon"},exportAs:["kendoTabStripTab"],decls:0,vars:0,template:function(be,st){},encapsulation:2}),ye})();class Co{constructor(bt,be){this.index=bt,this.tab=be}}class Sn extends o.wY{constructor(bt,be){super(),this.index=bt,this.title=be}}const ui=ye=>ye.enabled&&ye.mouseScroll,Ot=ye=>{let bt,be,st=-1,ei=-1;return ye.forEach((_o,gr)=>{_o.selected?(be=_o,ei=gr):_o.focused&&(bt=_o,st=gr)}),st>=0?{tab:bt,index:st}:{tab:be,index:ei}},en=(ye,bt)=>{const be=ye.filter((st,ei)=>ei===bt);return be.length>0?be[0]:null},Nt=ye=>"top"===ye||"bottom"===ye,an=(ye,bt,be)=>`${ye}-${bt}-${be}`;let $e=(()=>{class ye{constructor(be,st){this.localization=be,this.ngZone=st}onKeyDown(be){if(!(ye=>{const bt=ye.getAttribute("id");return!!(Ds(bt)||bt.indexOf("k-tabstrip-tab-")>=0)})(be.target))return;const st=be.keyCode;this.shouldHandleKey(st)&&(be.preventDefault(),Js(st)||(ye=>Zr(ye)||ls(ye))(st)?this.onNavigate(st):st===o.R8.Delete&&this.onDelete())}onTabSelect(be,st){const ei=new Sn(st,be.title);if(this.owner.tabSelect.emit(ei),!ei.isDefaultPrevented()){if(be.selected)return void this.focusTabHeader(st);this.selectTab(be,st)}}selectTab(be,st){(ye=>{this.owner.tabs.forEach(bt=>{bt.selected=!1})})(),this.focusTabHeader(st),be.selected=!0,this.owner.isScrollable&&this.owner.scrollToSelectedTab()}onNavigate(be){const{tab:st,index:ei}=Ot(this.owner.tabs);e.R0b.isInAngularZone()||this.ngZone.run(()=>{if(ei<0)return void this.owner.selectTab(this.firstNavigatableIndex());st.focused=!1;const _o=this.computeNextIndex(ei,be);this.activateTab(_o)})}onDelete(){const{tab:be,index:st}=Ot(this.owner.tabs);((ye,bt)=>void 0!==ye.closable?ye.closable:this.owner.closable)(be)&&!be.disabled&&this.ngZone.run(()=>{this.owner.tabClose.emit({tab:be,index:st})})}activateTab(be){const st=en(this.owner.tabs,be);st.disabled?(this.focusTabHeader(be),st.focused=!0):this.onTabSelect(st,be)}focusTabHeader(be){((ye,bt)=>{const be=this.owner.tabHeaderContainers.filter((st,ei)=>ei===bt);return be.length>0?be[0]:null})(0,be).nativeElement.focus()}shouldHandleKey(be){return!!(Js(be)||Nt(this.owner.tabPosition)&&Zr(be)||!Nt(this.owner.tabPosition)&&ls(be)||be===o.R8.Delete)}computeNextIndex(be,st){switch(st){case this.invertKeys(o.R8.ArrowLeft,o.R8.ArrowRight):case this.invertKeys(o.R8.ArrowUp,o.R8.ArrowDown):return this.prevNavigatableIndex(be);case this.invertKeys(o.R8.ArrowRight,o.R8.ArrowLeft):case this.invertKeys(o.R8.ArrowDown,o.R8.ArrowUp):return this.nextNavigatableIndex(be);case o.R8.Home:return this.firstNavigatableIndex();case o.R8.End:return this.lastNavigatableIndex();default:return}}invertKeys(be,st){return this.localization.rtl?st:be}firstNavigatableIndex(){return 0}lastNavigatableIndex(){return this.owner.tabs.length-1}prevNavigatableIndex(be){return be-1<0?this.lastNavigatableIndex():be-1}nextNavigatableIndex(be){return be+1>=this.owner.tabs.length?this.firstNavigatableIndex():be+1}}return ye.\u0275fac=function(be){return new(be||ye)(e.LFG(n.oQ),e.LFG(e.R0b))},ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac}),ye})();let Pt=(()=>{class ye{constructor(be){this.ngZone=be,this.position=0,this.scrollButtonActiveStateChange=new u.x,this.isDisabled=st=>this.owner[`${st}ScrollButton`].host.nativeElement.classList.contains("k-disabled")}get tablistElement(){return this.owner.tablist.nativeElement}get tabstripSize(){const be=this.owner.wrapper.nativeElement,st=parseFloat(getComputedStyle(be).width),ei=parseFloat(getComputedStyle(be).height);return Nt(this.owner.tabPosition)?st:ei}get tablistOverflowSize(){if(!(0,o.X_)())return 0;const be=Nt(this.owner.tabPosition),st=Math.floor(this.tablistElement[be?"scrollWidth":"scrollHeight"]-this.tablistElement.getBoundingClientRect()[be?"width":"height"]);return st<0?0:st}get tabsOverflow(){return this.tablistOverflowSize>0}get scrollButtonsSize(){if(!this.owner.hasScrollButtons)return 0;const be=this.owner.prevScrollButton.hostBoundingClientRect,st=Nt(this.owner.tabPosition)?be.width:be.height,ei=this.owner.nextScrollButton.hostBoundingClientRect;return st+(Nt(this.owner.tabPosition)?ei.width:ei.height)}toggleScrollButtonsState(){if(!this.owner.hasScrollButtons)return;const st=!this.isDisabled("prev"),ei=!this.isDisabled("next"),_o=this.position>0&&this.tablistOverflowSize>0,gr=this.position<this.tablistOverflowSize+this.scrollButtonsSize&&this.tablistOverflowSize>0;_o!==st&&this.ngZone.run(()=>this.toggleButtonActiveState("prev",_o)),gr!==ei&&this.ngZone.run(()=>this.toggleButtonActiveState("next",gr))}scrollToSelectedTab(){if(!this.tabsOverflow)return;const{index:be}=Ot(this.owner.tabs);if(-1===be||(this.position+=this.getScrollOffset(be),Nt(this.owner.tabPosition)?this.tablistElement.scrollLeft=this.position:this.tablistElement.scrollTop=this.position,this.toggleScrollButtonsState(),!this.owner.hasScrollButtons))return;const _o=be===this.owner.tabs.length-1;0===be&&!this.isDisabled("prev")&&this.ngZone.run(()=>this.toggleButtonActiveState("prev",!1)),_o&&!this.isDisabled("next")&&this.ngZone.run(()=>this.toggleButtonActiveState("next",!1))}getScrollOffset(be){if(!(0,o.X_)())return 0;const st=Nt(this.owner.tabPosition);this.tablistElement["scroll"+(st?"Left":"Top")]=this.position;const ei=this.tablistElement.children[be].getBoundingClientRect(),_o=this.tablistElement.getBoundingClientRect(),gr=st?"right":"bottom",ds=st?"left":"top",us=ei[ds],zs=ei[gr],Ta=_o[ds],Pe=_o[gr],Tn=zs<=Pe,v=us>=Ta;return Tn&&v?0:Tn?v?void 0:us-Ta:zs-Pe}onMouseScroll(be){be.preventDefault(),ui(this.owner.scrollable)&&(this.calculateListPosition(be.deltaY<0?"prev":"next",this.owner.scrollable.mouseScrollSpeed),Nt(this.owner.tabPosition)?this.tablistElement.scrollLeft=this.position:this.tablistElement.scrollTop=this.position,this.toggleScrollButtonsState())}scrollTabs(be){this.calculateListPosition(be,this.owner.scrollable.buttonScrollSpeed),Nt(this.owner.tabPosition)?this.tablistElement.scrollTo({left:this.position,behavior:"smooth"}):this.tablistElement.scrollTo({top:this.position,behavior:"smooth"}),this.toggleScrollButtonsState()}calculateListPosition(be,st){const ei=this.tablistOverflowSize+this.scrollButtonsSize;if("prev"===be&&this.position>0)this.position=this.position-st<=0?0:this.position-st;else if("next"===be&&this.position<ei){if(this.position+st>ei)return void(this.position=ei);this.position+=st}}restoreScrollPosition(){Nt(this.owner.tabPosition)?this.tablistElement.scrollTo({left:this.position}):this.tablistElement.scrollTo({top:this.position}),this.toggleScrollButtonsState()}toggleButtonActiveState(be,st){this.scrollButtonActiveStateChange.next({buttonType:be,active:st})}}return ye.\u0275fac=function(be){return new(be||ye)(e.LFG(e.R0b))},ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const Xn=ye=>(({enabled:ye=!0,scrollButtons:bt="auto",mouseScroll:be=!0,buttonScrollSpeed:st=100,mouseScrollSpeed:ei=10,prevButtonIcon:_o,nextButtonIcon:gr,prevSVGButtonIcon:ds,nextSVGButtonIcon:us})=>({enabled:ye,scrollButtons:bt,mouseScroll:be,buttonScrollSpeed:st,mouseScrollSpeed:ei,prevButtonIcon:_o,nextButtonIcon:gr,prevSVGButtonIcon:ds,nextSVGButtonIcon:us}))(!1===ye?{enabled:!1}:ye);class Nn extends o.wY{constructor(bt){super(),Object.assign(this,bt)}}let Ae=(()=>{class ye{constructor(be,st,ei,_o){this.host=be,this.renderer=st,this.ngZone=ei,this.localization=_o,this.prev=!1,this.tabScroll=new e.vpe,this.onClick=new e.vpe,this.caretAltLeftIcon=_.Me8,this.caretAltRightIcon=_.bI8,this.caretAltUpIcon=_.fRI,this.caretAltDownIcon=_.M7i,this.subs=new s.w0,this.clickHandler=gr=>{this.emitScrollEvent(gr).isDefaultPrevented()||this.onClick.emit(this.prev?"prev":"next")}}get prevClass(){return this.prev}get nextClass(){return!this.prev}get hostBoundingClientRect(){return this.host.nativeElement.getBoundingClientRect()}get iconClass(){return this.scrollButtonIconClass}get customIconClass(){return this.customScrollButtonIconClass}get svgIcon(){return this.scrollButtonSVGIcon}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{this.subs.add(this.renderer.listen(this.host.nativeElement,"click",this.clickHandler))})}ngOnDestroy(){this.subs.unsubscribe()}toggle(be){this.renderer[be?"removeClass":"addClass"](this.host.nativeElement,"k-hidden")}get scrollButtonIconClass(){const be=Nt(this.tabPosition)?this.localization.rtl?"caret-alt-right":"caret-alt-left":"caret-alt-up",st=Nt(this.tabPosition)?this.localization.rtl?"caret-alt-left":"caret-alt-right":"caret-alt-down";if("object"==typeof this.scrollable){const ei=typeof this.scrollable.prevButtonIcon>"u"?be:"",_o=typeof this.scrollable.nextButtonIcon>"u"?st:"";if(ei&&this.prev)return ei;if(_o&&!this.prev)return _o}}get customScrollButtonIconClass(){if("object"==typeof this.scrollable){const be=this.scrollable.prevButtonIcon,st=this.scrollable.nextButtonIcon;if(be&&this.prev)return`k-icon ${be}`;if(st&&!this.prev)return`k-icon ${st}`}}get scrollButtonSVGIcon(){const be=Nt(this.tabPosition)?this.localization.rtl?this.caretAltRightIcon:this.caretAltLeftIcon:this.caretAltUpIcon,st=Nt(this.tabPosition)?this.localization.rtl?this.caretAltLeftIcon:this.caretAltRightIcon:this.caretAltDownIcon;if("object"==typeof this.scrollable){const ei=void 0!==this.scrollable.prevSVGButtonIcon?this.scrollable.prevSVGButtonIcon:be,_o=void 0!==this.scrollable.nextSVGButtonIcon?this.scrollable.nextSVGButtonIcon:st;if(ei||_o)return this.prev?ei:_o}}emitScrollEvent(be){const st=new Nn({originalEvent:be});return this.tabScroll.emit(st),st}}return ye.\u0275fac=function(be){return new(be||ye)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(n.oQ))},ye.\u0275cmp=e.Xpm({type:ye,selectors:[["","kendoTabStripScrollableButton",""]],hostVars:4,hostBindings:function(be,st){2&be&&e.ekj("k-tabstrip-prev",st.prevClass)("k-tabstrip-next",st.nextClass)},inputs:{prev:"prev",tabPosition:"tabPosition",scrollable:"scrollable"},outputs:{tabScroll:"tabScroll",onClick:"onClick"},attrs:dn,decls:1,vars:3,consts:[["innerCssClass","k-button-icon",3,"name","customFontClass","svgIcon"]],template:function(be,st){1&be&&e._UZ(0,"kendo-icon-wrapper",0),2&be&&e.Q6J("name",st.iconClass)("customFontClass",st.customIconClass)("svgIcon",st.svgIcon)},dependencies:[C.ZS],encapsulation:2}),ye})(),He=(()=>{class ye{constructor(be){this.localization=be,this.tabClose=new e.vpe,this.hostClasses=!0}get activeClass(){return this.tab.selected}get disabledClass(){return this.tab.disabled}get focusedClass(){return this.tab.focused}get tabIndex(){return this.tab.selected||this.tab.focused?0:-1}get tabClosable(){return void 0!==this.tab.closable?this.tab.closable:this.tabStripClosable}get closeSVGIconClass(){if(!this.customCloseButtonClasses)return this.tab.closeSVGIcon?this.tab.closeSVGIcon:this.closeSVGIcon?this.closeSVGIcon:_.FZE}get closeButtonClasses(){if(!this.customTabstripCloseIcon&&this.tabStripCloseIcon&&!this.tab.closeIconClass)return this.tab.closeIcon?this.tab.closeIcon:this.tabStripCloseIcon}get customCloseButtonClasses(){if(this.customTabstripCloseIcon||this.tab.closeIconClass)return this.tab.closeIconClass?this.tab.closeIconClass:this.customTabstripCloseIcon}get closeButtonTitle(){return this.localization.get("closeTitle")}closeTab(be){const st=new Co(be,this.tab);this.tabClose.emit(st)}}return ye.\u0275fac=function(be){return new(be||ye)(e.Y36(n.oQ))},ye.\u0275cmp=e.Xpm({type:ye,selectors:[["","kendoTabStripTab",""]],hostVars:13,hostBindings:function(be,st){2&be&&(e.uIk("aria-selected",st.activeClass)("aria-disabled",st.disabledClass)("tabindex",st.tabIndex),e.ekj("k-item",st.hostClasses)("k-state-default",st.hostClasses)("k-active",st.activeClass)("k-disabled",st.disabledClass)("k-focus",st.focusedClass))},inputs:{tab:"tab",index:"index",tabStripClosable:"tabStripClosable",tabStripCloseIcon:"tabStripCloseIcon",customTabstripCloseIcon:"customTabstripCloseIcon",closeSVGIcon:"closeSVGIcon"},outputs:{tabClose:"tabClose"},attrs:sn,decls:3,vars:3,consts:[["class","k-link",4,"ngIf"],["kendoButton","","type","button","role","button","fillMode","flat","class","k-remove-tab k-icon-button",3,"icon","iconClass","svgIcon","title","click",4,"ngIf"],[1,"k-link"],[3,"ngTemplateOutlet"],["kendoButton","","type","button","role","button","fillMode","flat",1,"k-remove-tab","k-icon-button",3,"icon","iconClass","svgIcon","title","click"]],template:function(be,st){1&be&&(e.YNc(0,fn,2,1,"span",0),e.YNc(1,nn,2,1,"span",0),e.YNc(2,Mi,1,5,"button",1)),2&be&&(e.Q6J("ngIf",!st.tab.tabTitle),e.xp6(1),e.Q6J("ngIf",st.tab.tabTitle),e.xp6(1),e.Q6J("ngIf",st.tabClosable))},dependencies:[E.r0,R.O5,R.tP],encapsulation:2}),ye})(),Kt=(()=>{class ye extends n.Z1{}return ye.\u0275fac=function(){let bt;return function(st){return(bt||(bt=e.n5z(ye)))(st||ye)}}(),ye.\u0275dir=e.lG2({type:ye,selectors:[["kendo-tabstrip-messages-base"]],inputs:{closeTitle:"closeTitle",previousTabButton:"previousTabButton",nextTabButton:"nextTabButton"},features:[e.qOj]}),ye})(),On=(()=>{class ye extends Kt{constructor(be){super(),this.service=be}}return ye.\u0275fac=function(be){return new(be||ye)(e.Y36(n.oQ))},ye.\u0275dir=e.lG2({type:ye,selectors:[["","kendoTabStripLocalizedMessages",""]],features:[e._Bn([{provide:Kt,useExisting:(0,e.Gpc)(()=>ye)}]),e.qOj]}),ye})(),Fi=(()=>{class ye{constructor(be,st,ei,_o,gr,ds){this.localization=be,this.renderer=st,this.wrapper=ei,this.tabstripService=_o,this.scrollService=gr,this.ngZone=ds,this.animate=!0,this.tabPosition="top",this.keepTabContent=!1,this.closable=!1,this.closeIcon="x",this.tabSelect=new e.vpe,this.tabClose=new e.vpe,this.tabScroll=new e.vpe,this.hostClasses=!0,this.tabs=new e.n_E,this.showLicenseWatermark=!1,this._scrollableSettings=Xn(!1),this.subscriptions=new s.w0,this.subscriptionsArePresent=!1,this.tabStripId=(0,o.M8)();const us=(0,a.s)(kr);this.showLicenseWatermark=(0,o.Gk)(us),this.tabstripService.owner=this,this.scrollService.owner=this,this.subscriptions.add(this.scrollService.scrollButtonActiveStateChange.subscribe(zs=>{this.hasScrollButtons&&this.renderer[(zs.active?"remove":"add")+"Class"](this[`${zs.buttonType}ScrollButton`].host.nativeElement,"k-disabled")}))}set height(be){this._height=be,this.renderer.setStyle(this.wrapper.nativeElement,"height",be)}get height(){return this._height}set scrollable(be){this._scrollableSettings=Xn(be),this.tablist&&(this.toggleScrollButtons(this.scrollService.tabsOverflow),this.attachWheelHandler(this.tablist.nativeElement))}get scrollable(){return this._scrollableSettings}set closeSVGIcon(be){if((0,e.X6Q)()&&be&&this.closeIcon&&"x"!==this.closeIcon)throw new Error("Setting both closeIcon and svgIcon options at the same time is not supported.");this._closeSVGIcon=be}get closeSVGIcon(){return this._closeSVGIcon}get tabsAtTop(){return"top"===this.tabPosition}get tabsAtRight(){return"right"===this.tabPosition}get tabsAtBottom(){return"bottom"===this.tabPosition}get tabsAtLeft(){return"left"===this.tabPosition}get dir(){return this.localization.rtl?"rtl":"ltr"}get tabStripScrollable(){return this._scrollableSettings.enabled}ngAfterViewInit(){(0,o.X_)()&&(this.ngZone.runOutsideAngular(()=>{this.toggleScrollButtons(!!this.scrollService.tabsOverflow),setTimeout(()=>{this.scrollToSelectedTab()})}),this.initDomEvents())}ngOnChanges(be){if(!(0,o.X_)())return;const st=be.tabPosition;if(st){const ei="bottom"===st.previousValue||"bottom"===st.currentValue;this.ngZone.onStable.pipe((0,p.q)(1)).subscribe(()=>{ei&&(this.subscriptionsArePresent&&(this.subscriptions.unsubscribe(),this.subscriptions=new s.w0,this.subscriptionsArePresent=!1),this.initDomEvents()),this.scrollService.restoreScrollPosition()})}}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}get tabsAlignmentStyles(){return{start:"flex-start",end:"flex-end",center:"center",justify:"space-between"}[this.tabAlignment]}get tabListWidth(){return"top"===this.tabPosition||"bottom"===this.tabPosition?"100%":null}get tabListHeight(){return"left"===this.tabPosition||"right"===this.tabPosition?"100%":null}get isScrollable(){return this._scrollableSettings.enabled}get hasScrollButtons(){return(ye=>ye.enabled&&"hidden"!==ye.scrollButtons)(this._scrollableSettings)}get mouseScrollEnabled(){return ui(this._scrollableSettings)}get itemsWrapperClass(){return Nt(this.tabPosition)?"k-hstack":"k-vstack"}selectTab(be){const st=en(this.tabs,be);!st||st.disabled||(this.tabstripService.selectTab(st,be),this.scrollToSelectedTab())}getTabId(be){return an("k-tabstrip-tab",this.tabStripId,be)}getTabPanelId(be){return an("k-tabstrip-tabpanel",this.tabStripId,be)}onTabClick(be,st){if((ye=>{if(ye.tagName){const bt=ye.tagName.toLowerCase(),be=ye.getAttribute("tabIndex"),st="-1"===be;let ei=null!==be&&!st;return sl.test(bt)&&(ei=!ye.disabled&&!st),ei}return!1})(be.target))return;const ei=be.target;if(ht(ei,"k-remove-tab")||ht(ei.parentElement,"k-remove-tab"))return;const gr=en(this.tabs,st);this.tabstripService.onTabSelect(gr,st),this.scrollToSelectedTab()}onResize(){this.toggleScrollButtons(!!this.scrollService.tabsOverflow),this.ngZone.runOutsideAngular(()=>{this.scrollService.toggleScrollButtonsState()})}scrollToSelectedTab(){this._scrollableSettings.enabled&&this.scrollService.scrollToSelectedTab()}onScrollButtonClick(be){this.scrollService.scrollTabs(be)}initDomEvents(){if(!this.wrapper||this.subscriptionsArePresent)return;const be=this.tablist.nativeElement;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(be,"keydown",st=>{this.tabstripService.onKeyDown(st)}))}),this.subscriptions.add(this.renderer.listen(be,"focusout",()=>{(ye=>{this.tabs.forEach(bt=>{bt.focused=!1})})()})),this.isScrollable&&this.mouseScrollEnabled&&this.attachWheelHandler(be),this.subscriptionsArePresent=!0}toggleScrollButtons(be){this.ngZone.onStable.pipe((0,p.q)(1)).subscribe(()=>{const st=this._scrollableSettings.scrollButtons,ei=this.prevScrollButton&&this.nextScrollButton,_o=ei&&be,ds="visible"===st;ei&&!be&&"visible"!==st?(this.prevScrollButton.toggle(!1),this.nextScrollButton.toggle(!1)):(_o||ds)&&(this.prevScrollButton.toggle(!0),this.nextScrollButton.toggle(!0)),ei&&ds&&this.ngZone.runOutsideAngular(()=>{this.scrollService.toggleScrollButtonsState()})})}attachWheelHandler(be){this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(be,"wheel",st=>{const ei=new Nn({originalEvent:st});this.tabScroll.emit(ei),!ei.isDefaultPrevented()&&this.scrollService.tabsOverflow&&this.scrollService.onMouseScroll(st)}))})}}return ye.\u0275fac=function(be){return new(be||ye)(e.Y36(n.oQ),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36($e),e.Y36(Pt),e.Y36(e.R0b))},ye.\u0275cmp=e.Xpm({type:ye,selectors:[["kendo-tabstrip"]],contentQueries:function(be,st,ei){if(1&be&&e.Suo(ei,Ui,4),2&be){let _o;e.iGM(_o=e.CRH())&&(st.tabs=_o)}},viewQuery:function(be,st){if(1&be&&(e.Gf(mi,5),e.Gf(Eo,5),e.Gf(Ko,5),e.Gf(xo,5,e.SBq)),2&be){let ei;e.iGM(ei=e.CRH())&&(st.tablist=ei.first),e.iGM(ei=e.CRH())&&(st.prevScrollButton=ei.first),e.iGM(ei=e.CRH())&&(st.nextScrollButton=ei.first),e.iGM(ei=e.CRH())&&(st.tabHeaderContainers=ei)}},hostVars:15,hostBindings:function(be,st){2&be&&(e.uIk("dir",st.dir),e.ekj("k-tabstrip",st.hostClasses)("k-pos-relative",st.hostClasses)("k-tabstrip-top",st.tabsAtTop)("k-tabstrip-right",st.tabsAtRight)("k-tabstrip-bottom",st.tabsAtBottom)("k-tabstrip-left",st.tabsAtLeft)("k-tabstrip-scrollable",st.tabStripScrollable))},inputs:{height:"height",animate:"animate",tabAlignment:"tabAlignment",tabPosition:"tabPosition",keepTabContent:"keepTabContent",closable:"closable",scrollable:"scrollable",closeIcon:"closeIcon",closeIconClass:"closeIconClass",closeSVGIcon:"closeSVGIcon"},outputs:{tabSelect:"tabSelect",tabClose:"tabClose",tabScroll:"tabScroll"},exportAs:["kendoTabStrip"],features:[e._Bn([$e,Pt,n.oQ,{provide:n.mM,useValue:"kendo.tabstrip"}]),e.TTD],decls:9,vars:4,consts:function(){let bt,be,st;return bt=$localize`:kendo.tabstrip.closeTitle|The title for the **Close** button in the TabStrip tab.:Close`,be=$localize`:kendo.tabstrip.previousTabButton|The title for the **Previous Tab** button when the Tabstrip is scrollable.:Previous Tab`,st=$localize`:kendo.tabstrip.nextTabButton|The title for the **Next Tab** button when the Tabstrip is scrollable.:Next Tab`,[["kendoTabStripLocalizedMessages","","closeTitle",bt,"previousTabButton",be,"nextTabButton",st],[4,"ngIf"],["heading",""],["content",""],[3,"resize",4,"ngIf"],["kendoWatermarkOverlay","",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"k-tabstrip-items-wrapper",3,"ngClass"],["role","button","kendoTabStripScrollableButton","","class","k-icon-button k-button k-button-md k-rounded-md k-button-flat k-button-flat-base",3,"scrollable","tabPosition","prev","title","tabScroll","onClick",4,"ngIf"],["role","tablist",1,"k-reset","k-tabstrip-items"],["tablist",""],[4,"ngFor","ngForOf"],["role","button","kendoTabStripScrollableButton","",1,"k-icon-button","k-button","k-button-md","k-rounded-md","k-button-flat","k-button-flat-base",3,"scrollable","tabPosition","prev","title","tabScroll","onClick"],["prevScrollButton",""],["kendoTabStripTab","","role","tab",3,"ngClass","ngStyle","tab","index","tabStripClosable","tabStripCloseIcon","customTabstripCloseIcon","closeSVGIcon","id","tabClose","click"],["tabHeaderContainer",""],["nextScrollButton",""],["ngFor","",3,"ngForOf"],["role","tabpanel",3,"ngClass","tabIndex","id",4,"ngIf"],["role","tabpanel",3,"ngClass","tabIndex","id"],[3,"ngTemplateOutlet"],[3,"resize"],["kendoWatermarkOverlay",""]]},template:function(be,st){1&be&&(e.GkF(0,0),e.YNc(1,Ji,3,2,"ng-container",1),e.YNc(2,Ki,3,2,"ng-container",1),e.YNc(3,Bt,6,11,"ng-template",null,2,e.W1O),e.YNc(5,pt,1,1,"ng-template",null,3,e.W1O),e.YNc(7,Lt,1,0,"kendo-resize-sensor",4),e.YNc(8,tt,1,0,"div",5)),2&be&&(e.xp6(1),e.Q6J("ngIf",!st.tabsAtBottom),e.xp6(1),e.Q6J("ngIf",st.tabsAtBottom),e.xp6(5),e.Q6J("ngIf",st.isScrollable),e.xp6(1),e.Q6J("ngIf",st.showLicenseWatermark))},dependencies:[Ae,He,o.NG,o.nA,On,R.O5,R.tP,R.mk,R.sg,R.PC],encapsulation:2,data:{animation:[(0,l.X$)("state",[(0,l.SB)("active",(0,l.oB)({opacity:1})),(0,l.eR)("* => active",[(0,l.oB)({opacity:0}),(0,l.jt)("400ms ease-in")])])]}}),ye})();const cr={};cr[o.R8.ArrowLeft]="left",cr[o.R8.ArrowRight]="right",cr[o.R8.ArrowUp]="up",cr[o.R8.ArrowDown]="down",cr[o.R8.Home]="home",cr[o.R8.End]="end",cr[o.R8.Enter]="enter",cr[o.R8.Space]="enter";const Fr=Object.assign({},cr);Fr[o.R8.ArrowLeft]="right",Fr[o.R8.ArrowRight]="left";let Jc=(()=>{class ye{}return ye.\u0275fac=function(be){return new(be||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({imports:[[R.ez,C.pc]]}),ye})(),yu=(()=>{class ye{}return ye.\u0275fac=function(be){return new(be||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({imports:[[R.ez]]}),ye})(),mc=(()=>{class ye{}return ye.\u0275fac=function(be){return new(be||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({imports:[[R.ez,C.pc,o.qG]]}),ye})(),Fl=(()=>{class ye{}return ye.\u0275fac=function(be){return new(be||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({imports:[[R.ez,o.OY,C.pc]]}),ye})(),gd=(()=>{class ye{}return ye.\u0275fac=function(be){return new(be||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({imports:[[R.ez,C.pc,o.qG]]}),ye})(),ih=(()=>{class ye{}return ye.\u0275fac=function(be){return new(be||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({imports:[[R.ez,o.QY,C.pc]]}),ye})(),ud=(()=>{class ye{}return ye.\u0275fac=function(be){return new(be||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({imports:[[R.ez,b.q7,C.pc]]}),ye})(),od=(()=>{class ye{}return ye.\u0275fac=function(be){return new(be||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({imports:[[R.ez,o.uv,C.pc,E.hJ,o.qG]]}),ye})(),$d=(()=>{class ye{}return ye.\u0275fac=function(be){return new(be||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({imports:[[R.ez,o.qG]]}),ye})(),Jr=(()=>{class ye{}return ye.\u0275fac=function(be){return new(be||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({imports:[[R.ez]]}),ye})(),qs=(()=>{class ye{}return ye.\u0275fac=function(be){return new(be||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({imports:[[R.ez]]}),ye})(),fa=(()=>{class ye{}return ye.\u0275fac=function(be){return new(be||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({imports:[Jc,yu,mc,gd,Fl,ih,ud,od,$d,Jr,qs]}),ye})()},24579:(he,y,i)=>{"use strict";i.d(y,{AG:()=>Ua,DL:()=>fi,NX:()=>Oa,Or:()=>Ss,ST:()=>Mr,_G:()=>kr});var e=i(65879),n=i(58951),o=i(12624),a=i(3201),l=i(96814),u=i(92438),d=i(63019),s=i(97328),A=i(78645),_=i(47394),C=i(32181),R=i(37398),x=i(27921),f=i(63020),k=i(48180),w=i(60886),g=i(73942),M=i(86825);const E=["kendoBreadCrumbItem",""];function b($o,Ar){1&$o&&e.Hsn(0)}function I($o,Ar){1&$o&&e.GkF(0)}function L($o,Ar){if(1&$o&&(e.ynx(0),e.YNc(1,I,1,0,"ng-container",2),e.BQk()),2&$o){e.oxw();const No=e.MAs(1);e.xp6(1),e.Q6J("ngTemplateOutlet",No)}}function D($o,Ar){if(1&$o){const No=e.EpF();e.TgZ(0,"img",8),e.NdJ("load",function(){e.CHM(No);const js=e.oxw(3);return e.KtG(js.onImageLoad())}),e.qZA()}if(2&$o){const No=e.oxw(3);e.Q6J("src",No.item.data.imageUrl,e.LSH)}}function F($o,Ar){if(1&$o&&e._UZ(0,"kendo-icon-wrapper",9),2&$o){const No=e.oxw(3);e.Q6J("name",No.item.data.icon)("customFontClass",No.item.data.iconClass)("svgIcon",No.item.data.svgIcon)}}const P=function($o,Ar,No,qr,js){return{"k-breadcrumb-root-link":$o,"k-breadcrumb-link":Ar,"k-breadcrumb-icontext-link":No,"k-breadcrumb-icon-link":qr,"k-disabled":js}};function O($o,Ar){if(1&$o&&(e.TgZ(0,"span",4),e.YNc(1,D,1,1,"img",5),e.YNc(2,F,1,3,"kendo-icon-wrapper",6),e.TgZ(3,"span",7),e._uU(4),e.qZA()()),2&$o){const No=e.oxw(2);e.Q6J("ngClass",e.qbA(8,P,No.item.context.isFirst,0!==No.index,!!No.item.data.icon&&!!No.item.data.text,!!No.item.data.icon&&!No.item.data.text,No.disabled))("title",No.item.data.title||"")("tabindex",No.disabled?-1:0),e.uIk("aria-disabled",No.disabled)("aria-current",No.item.context.isLast?"page":null),e.xp6(1),e.Q6J("ngIf",No.item.data.imageUrl),e.xp6(1),e.Q6J("ngIf",No.item.data.icon||No.item.data.iconClass||No.item.data.svgIcon),e.xp6(2),e.Oqu(No.item.data.text)}}function U($o,Ar){}const V=function($o,Ar){return{$implicit:$o,index:Ar}};function K($o,Ar){if(1&$o&&e.YNc(0,U,0,0,"ng-template",10),2&$o){const No=e.oxw(2);e.Q6J("ngTemplateOutlet",No.itemTemplate)("ngTemplateOutletContext",e.WLB(2,V,No.item.data,No.index))}}function X($o,Ar){if(1&$o&&(e.ynx(0),e.YNc(1,O,5,14,"span",3),e.YNc(2,K,1,5,null,1),e.BQk()),2&$o){const No=e.oxw();e.xp6(1),e.Q6J("ngIf",!No.itemTemplate),e.xp6(1),e.Q6J("ngIf",No.itemTemplate)}}function me($o,Ar){1&$o&&e.GkF(0)}function J($o,Ar){if(1&$o&&(e.ynx(0),e.YNc(1,me,1,0,"ng-container",2),e.BQk()),2&$o){e.oxw();const No=e.MAs(1);e.xp6(1),e.Q6J("ngTemplateOutlet",No)}}const Q=[[["","kendoBreadCrumbSeparator",""]]],re=["[kendoBreadCrumbSeparator]"],de=["kendoBreadCrumbSeparator",""],te=["kendoBreadCrumbList",""];function j($o,Ar){if(1&$o&&e._UZ(0,"span",5),2&$o){const No=e.oxw(3);e.Q6J("icon",No.separatorIcon)("svgIcon",No.separatorSVGIcon)}}function H($o,Ar){if(1&$o&&e._UZ(0,"span",5),2&$o){const No=e.oxw(3);e.Q6J("icon",No.separatorIcon)("svgIcon",No.separatorSVGIcon)}}function z($o,Ar){if(1&$o&&(e.TgZ(0,"li",2,3),e.YNc(2,j,1,2,"span",4),e.YNc(3,H,1,2,"span",4),e.qZA()),2&$o){const No=e.oxw(),qr=No.$implicit,js=No.index,Ds=No.first,Zr=No.last,ls=e.oxw();e.Q6J("item",qr)("index",js)("collapseMode",ls.collapseMode)("itemTemplate",ls.itemTemplate),e.uIk("data-kendo-breadcrumb-index",js),e.xp6(2),e.Q6J("ngIf","wrap"===ls.collapseMode&&!Ds),e.xp6(1),e.Q6J("ngIf",!("wrap"===ls.collapseMode||Zr||null!=qr&&qr.context.collapsed&&null!=ls.items[js+1]&&ls.items[js+1].context.collapsed))}}function q($o,Ar){if(1&$o&&(e.ynx(0),e.YNc(1,z,4,7,"li",1),e.BQk()),2&$o){const No=Ar.first,qr=e.oxw();e.xp6(1),e.Q6J("ngIf",!("wrap"===qr.collapseMode&&No)||qr.isRootItemContainer)}}const se=["resizeSensor"],ne=["itemsContainer"];function _e($o,Ar){if(1&$o){const No=e.EpF();e.TgZ(0,"ol",5,2),e.NdJ("itemClick",function(js){e.CHM(No);const Ds=e.oxw();return e.KtG(Ds.itemClick.emit(js))}),e.ALo(2,"async"),e.qZA()}if(2&$o){const No=e.oxw();e.Q6J("items",e.lcZ(2,5,No.firstItem$))("itemTemplate",null==No.itemTemplate?null:No.itemTemplate.templateRef)("collapseMode",No.collapseMode)("separatorIcon",No.separatorIcon)("separatorSVGIcon",No.separatorSVGIcon)}}const ge=function($o,Ar){return{"!k-flex-wrap":$o,"k-flex-none":Ar}};const Oe=function($o){return{$implicit:$o}};const An=["kendoActionSheetItem",""];function $n($o,Ar){}function xn($o,Ar){if(1&$o&&e.YNc(0,$n,0,0,"ng-template",2),2&$o){const No=e.oxw();e.Q6J("ngTemplateOutlet",No.itemTemplate)("ngTemplateOutletContext",e.VKq(2,Oe,No.item))}}function mt($o,Ar){if(1&$o&&(e.TgZ(0,"span",6),e._UZ(1,"kendo-icon-wrapper",7),e.qZA()),2&$o){const No=e.oxw(2);e.xp6(1),e.Akn(No.manageIconStyles(No.item)),e.Tol(No.manageIconClasses(No.item)),e.Q6J("name",No.item.icon)("customFontClass",No.item.iconClass)("svgIcon",No.item.svgIcon)}}function ut($o,Ar){if(1&$o&&(e.TgZ(0,"span",11),e._uU(1),e.qZA()),2&$o){const No=e.oxw(3);e.xp6(1),e.Oqu(No.item.title)}}function Wt($o,Ar){if(1&$o&&(e.TgZ(0,"span",12),e._uU(1),e.qZA()),2&$o){const No=e.oxw(3);e.xp6(1),e.Oqu(No.item.description)}}function dn($o,Ar){if(1&$o&&(e.TgZ(0,"span",8),e.YNc(1,ut,2,1,"span",9),e.YNc(2,Wt,2,1,"span",10),e.qZA()),2&$o){const No=e.oxw(2);e.xp6(1),e.Q6J("ngIf",No.item.title),e.xp6(1),e.Q6J("ngIf",No.item.description)}}function sn($o,Ar){if(1&$o&&(e.TgZ(0,"span",3),e.YNc(1,mt,2,7,"span",4),e.YNc(2,dn,3,2,"span",5),e.qZA()),2&$o){const No=e.oxw();e.xp6(1),e.Q6J("ngIf",No.item.icon||No.item.iconClass||No.item.svgIcon),e.xp6(1),e.Q6J("ngIf",No.item.title||No.item.description)}}const fn=["kendoActionSheetList",""];function yi($o,Ar){if(1&$o&&e._UZ(0,"span",1),2&$o){const No=Ar.$implicit,qr=e.oxw();e.ekj("k-actionsheet-item",!0)("k-disabled",No.disabled),e.Q6J("ngClass",No.cssClass)("ngStyle",No.cssStyle)("itemTemplate",qr.itemTemplate)("item",No),e.uIk("aria-disabled",No.disabled)("kendo-actionsheet-item-index",qr.setAttrIndex(No))}}const nn=["childContainer"];function Mi($o,Ar){}function mi($o,Ar){if(1&$o&&e.YNc(0,Mi,0,0,"ng-template",8),2&$o){const No=e.oxw(2);e.Q6J("ngTemplateOutlet",null==No.actionSheetTemplate?null:No.actionSheetTemplate.templateRef)}}function Eo($o,Ar){}function Ko($o,Ar){if(1&$o&&e.YNc(0,Eo,0,0,"ng-template",8),2&$o){const No=e.oxw(4);e.Q6J("ngTemplateOutlet",null==No.headerTemplate?null:No.headerTemplate.templateRef)}}function xo($o,Ar){if(1&$o&&(e.TgZ(0,"div",18),e._uU(1),e.qZA()),2&$o){const No=e.oxw(5);e.xp6(1),e.Oqu(No.title)}}function Bn($o,Ar){if(1&$o&&(e.TgZ(0,"div",19),e._uU(1),e.qZA()),2&$o){const No=e.oxw(5);e.xp6(1),e.Oqu(No.subtitle)}}function Xt($o,Ar){if(1&$o&&(e.TgZ(0,"div",14)(1,"div",15),e.YNc(2,xo,2,1,"div",16),e.YNc(3,Bn,2,1,"div",17),e.qZA()()),2&$o){const No=e.oxw(4);e.xp6(1),e.Q6J("id",No.titleId),e.xp6(1),e.Q6J("ngIf",No.title),e.xp6(1),e.Q6J("ngIf",No.subtitle)}}function Ji($o,Ar){if(1&$o&&(e.TgZ(0,"div",12),e.YNc(1,Ko,1,1,null,6),e.YNc(2,Xt,4,3,"ng-template",null,13,e.W1O),e.qZA()),2&$o){const No=e.MAs(3),qr=e.oxw(3);e.xp6(1),e.Q6J("ngIf",qr.headerTemplate)("ngIfElse",No)}}function En($o,Ar){}function un($o,Ar){if(1&$o&&e.YNc(0,En,0,0,"ng-template",8),2&$o){const No=e.oxw(4);e.Q6J("ngTemplateOutlet",null==No.contentTemplate?null:No.contentTemplate.templateRef)}}function Ki($o,Ar){if(1&$o){const No=e.EpF();e.TgZ(0,"div",24),e.NdJ("itemClick",function(js){e.CHM(No);const Ds=e.oxw(5);return e.KtG(Ds.onItemClick(js))}),e.qZA()}if(2&$o){const No=e.oxw(5);e.Q6J("groupItems",No.topGroupItems)("allItems",No.items)("itemTemplate",null==No.itemTemplate?null:No.itemTemplate.templateRef)}}function Fn($o,Ar){1&$o&&e._UZ(0,"hr",25)}function oi($o,Ar){if(1&$o){const No=e.EpF();e.TgZ(0,"div",24),e.NdJ("itemClick",function(js){e.CHM(No);const Ds=e.oxw(5);return e.KtG(Ds.onItemClick(js))}),e.qZA()}if(2&$o){const No=e.oxw(5);e.Q6J("groupItems",No.bottomGroupItems)("allItems",No.items)("itemTemplate",null==No.itemTemplate?null:No.itemTemplate.templateRef)}}function It($o,Ar){if(1&$o&&(e.YNc(0,Ki,1,3,"div",22),e.YNc(1,Fn,1,0,"hr",23),e.YNc(2,oi,1,3,"div",22)),2&$o){const No=e.oxw(4);e.Q6J("ngIf",No.topGroupItems),e.xp6(1),e.Q6J("ngIf",No.shouldRenderSeparator),e.xp6(1),e.Q6J("ngIf",No.bottomGroupItems)}}function Bt($o,Ar){if(1&$o&&(e.TgZ(0,"div",20),e.YNc(1,un,1,1,null,6),e.YNc(2,It,3,3,"ng-template",null,21,e.W1O),e.qZA()),2&$o){const No=e.MAs(3),qr=e.oxw(3);e.xp6(1),e.Q6J("ngIf",qr.contentTemplate)("ngIfElse",No)}}function xt($o,Ar){}function wt($o,Ar){if(1&$o&&(e.TgZ(0,"div",26),e.YNc(1,xt,0,0,"ng-template",8),e.qZA()),2&$o){const No=e.oxw(3);e.xp6(1),e.Q6J("ngTemplateOutlet",null==No.footerTemplate?null:No.footerTemplate.templateRef)}}function Mt($o,Ar){if(1&$o&&(e.YNc(0,Ji,4,2,"div",9),e.YNc(1,Bt,4,2,"div",10),e.YNc(2,wt,2,1,"div",11)),2&$o){const No=e.oxw(2);e.Q6J("ngIf",No.title||No.subtitle||No.headerTemplate),e.xp6(1),e.Q6J("ngIf",No.items||No.contentTemplate),e.xp6(1),e.Q6J("ngIf",No.footerTemplate)}}function pt($o,Ar){if(1&$o){const No=e.EpF();e.ynx(0),e.TgZ(1,"div",1),e.NdJ("click",function(){e.CHM(No);const js=e.oxw();return e.KtG(js.onOverlayClick())}),e.qZA(),e.TgZ(2,"div",2)(3,"div",3,4)(5,"div",5),e.YNc(6,mi,1,1,null,6),e.YNc(7,Mt,3,3,"ng-template",null,7,e.W1O),e.qZA()()(),e.BQk()}if(2&$o){const No=e.MAs(8),qr=e.oxw();e.xp6(3),e.Akn("bottom: 0px; width: 100%;"),e.xp6(2),e.Q6J("ngClass",qr.cssClass),e.uIk("aria-labelledby",qr.titleId),e.xp6(1),e.Q6J("ngIf",qr.actionSheetTemplate)("ngIfElse",No)}}const Lt={name:"@progress/kendo-angular-navigation",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1694532884,version:"13.5.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},vt=$o=>null!=$o,ln=$o=>{let Ar=$o.offsetWidth;const No=getComputedStyle($o);return Ar+=(parseFloat(No.marginLeft)||0)+(parseFloat(No.marginRight)||0),Ar},jn=$o=>{const Ar=Pi($o);return[Ar.length>0?Ar[0]:$o,Ar.length>0?Ar[Ar.length-1]:$o]},Pi=$o=>$o.querySelectorAll(a.y);let go=0;const si=/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/,pn="kendo-actionsheet-item-index",_i=($o,Ar,No)=>{const qr=zn($o,Ar,No);if(qr)return wi(qr,Ar)},wi=($o,Ar)=>+$o.getAttribute(Ar),zn=($o,Ar,No)=>(0,a.T2)($o,qr=>(($o,Ar)=>vt($o.getAttribute(Ar)))(qr,Ar),No);let ki=(()=>{class $o{}return $o.\u0275fac=function(No){return new(No||$o)},$o.\u0275mod=e.oAB({type:$o}),$o.\u0275inj=e.cJS({imports:[[l.ez]]}),$o})(),bo=(()=>{class $o{constructor(No){this.templateRef=No}}return $o.\u0275fac=function(No){return new(No||$o)(e.Y36(e.Rgc,8))},$o.\u0275dir=e.lG2({type:$o,selectors:[["","kendoBreadCrumbItemTemplate",""]]}),$o})();const jo="data-kendo-breadcrumb-index",Zi={small:"sm",medium:"md",large:"lg"};let Bi=(()=>{class $o{constructor(No){this.el=No,this.index=-1,this.hostClasses=!0,this.disabled=!1}get isRootItem(){return this.item.context.isFirst}get isDisabled(){return this.disabled||null}get isLastItem(){return this.item.context.isLast}ngOnInit(){this.disabled=this.item.data&&(this.item.data.disabled||this.item.context.isLast)}ngAfterViewInit(){(0,a.X_)()&&(this.width=ln(this.el.nativeElement))}onImageLoad(){(0,a.X_)()&&(this.width=ln(this.el.nativeElement))}}return $o.\u0275fac=function(No){return new(No||$o)(e.Y36(e.SBq))},$o.\u0275cmp=e.Xpm({type:$o,selectors:[["","kendoBreadCrumbItem",""]],hostVars:7,hostBindings:function(No,qr){2&No&&(e.uIk("aria-disabled",qr.isDisabled),e.ekj("k-breadcrumb-item",qr.hostClasses)("k-breadcrumb-root-item",qr.isRootItem)("k-breadcrumb-last-item",qr.isLastItem))},inputs:{item:"item",collapseMode:"collapseMode",index:"index",itemTemplate:"itemTemplate"},attrs:E,ngContentSelectors:re,decls:5,vars:3,consts:[["separator",""],[4,"ngIf"],[4,"ngTemplateOutlet"],["role","link",3,"ngClass","title","tabindex",4,"ngIf"],["role","link",3,"ngClass","title","tabindex"],["class","k-image","role","presentation",3,"src","load",4,"ngIf"],[3,"name","customFontClass","svgIcon",4,"ngIf"],[1,"k-breadcrumb-item-text"],["role","presentation",1,"k-image",3,"src","load"],[3,"name","customFontClass","svgIcon"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(No,qr){1&No&&(e.F$t(Q),e.YNc(0,b,1,0,"ng-template",null,0,e.W1O),e.YNc(2,L,2,1,"ng-container",1),e.YNc(3,X,3,2,"ng-container",1),e.YNc(4,J,2,1,"ng-container",1)),2&No&&(e.xp6(2),e.Q6J("ngIf","wrap"===qr.collapseMode),e.xp6(1),e.Q6J("ngIf",!qr.item.context.collapsed),e.xp6(1),e.Q6J("ngIf","wrap"!==qr.collapseMode))},dependencies:[w.ZS,l.O5,l.tP,l.mk],encapsulation:2}),$o})();const Lo=($o,Ar)=>vt($o.getAttribute(Ar)),ji=g.oXh,Fo=g.fL_;let rt=(()=>{class $o{constructor(No,qr){this.el=No,this.localization=qr,this.defaultClasses=!0,this.ariaHidden=!0,this.direction="ltr",this.direction=this.localization.rtl?"rtl":"ltr"}set icon(No){vt(No)?(this._icon=No,this.hasDefaultIcon=!1):(this._icon="ltr"===this.direction?"chevron-right":"chevron-left",this.hasDefaultIcon=!0)}get icon(){return this._icon}set svgIcon(No){vt(No)?(this._svgIcon=No,this.hasDefaultSvgIcon=!1):(this._svgIcon="ltr"===this.direction?ji:Fo,this.hasDefaultSvgIcon=!0)}get svgIcon(){return this._svgIcon}ngOnInit(){this.localizationChangesSubscription=this.localization.changes.subscribe(({rtl:No})=>{this.direction=No?"rtl":"ltr",this.hasDefaultIcon&&(this.icon=void 0),this.hasDefaultSvgIcon&&(this.svgIcon=void 0)})}ngOnDestroy(){this.localizationChangesSubscription.unsubscribe()}}return $o.\u0275fac=function(No){return new(No||$o)(e.Y36(e.SBq),e.Y36(n.oQ))},$o.\u0275cmp=e.Xpm({type:$o,selectors:[["","kendoBreadCrumbSeparator",""]],hostVars:5,hostBindings:function(No,qr){2&No&&(e.uIk("aria-hidden",qr.ariaHidden),e.ekj("k-breadcrumb-delimiter-icon",qr.defaultClasses)("k-icon",qr.defaultClasses))},inputs:{icon:"icon",svgIcon:"svgIcon"},attrs:de,decls:1,vars:2,consts:[["size","xsmall",3,"name","svgIcon"]],template:function(No,qr){1&No&&e._UZ(0,"kendo-icon-wrapper",0),2&No&&e.Q6J("name",qr.icon)("svgIcon",qr.svgIcon)},dependencies:[w.ZS],encapsulation:2}),$o})(),ai=(()=>{class $o{constructor(No,qr){this.el=No,this.zone=qr,this.items=[],this.collapseMode="auto",this.itemClick=new e.vpe;const js=this.el.nativeElement;this.isRootItemContainer=js.classList.contains("k-breadcrumb-root-item-container"),this.zone.runOutsideAngular(()=>{const Ds=(0,u.R)(js,"click"),Zr=(0,u.R)(js,"keydown").pipe((0,C.h)(ls=>ls.keyCode===a.R8.Enter));this.domEventsSubscription=(0,d.T)(Ds,Zr).pipe((0,R.U)(ls=>ls.target),(0,C.h)(ls=>!ls.classList.contains("k-breadcrumb-delimiter-icon")),(0,R.U)(ls=>this.getItemIndex(ls)),(0,C.h)(vt),(0,R.U)(ls=>parseInt(ls,10)),(0,R.U)(ls=>this.items[ls]),(0,C.h)(ls=>!ls.data.disabled&&!ls.context.isLast),(0,R.U)(ls=>ls.data)).subscribe(ls=>{this.zone.run(()=>this.itemClick.emit(ls))})})}ngOnDestroy(){this.domEventsSubscription.unsubscribe()}getItemIndex(No){const qr=(($o,Ar,No)=>(($o,Ar,No,qr)=>{for(;$o&&$o!==qr&&!No($o,Ar);)$o=$o.parentNode;if($o!==qr)return $o})($o,Ar,Lo,No))(No,jo,this.el.nativeElement);if(qr)return(($o,Ar)=>+$o.getAttribute(Ar))(qr,jo)}}return $o.\u0275fac=function(No){return new(No||$o)(e.Y36(e.SBq),e.Y36(e.R0b))},$o.\u0275cmp=e.Xpm({type:$o,selectors:[["","kendoBreadCrumbList",""]],viewQuery:function(No,qr){if(1&No&&e.Gf(Bi,5),2&No){let js;e.iGM(js=e.CRH())&&(qr.renderedItems=js)}},inputs:{items:"items",itemTemplate:"itemTemplate",collapseMode:"collapseMode",separatorIcon:"separatorIcon",separatorSVGIcon:"separatorSVGIcon"},outputs:{itemClick:"itemClick"},attrs:te,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],["kendoBreadCrumbItem","",3,"item","index","collapseMode","itemTemplate",4,"ngIf"],["kendoBreadCrumbItem","",3,"item","index","collapseMode","itemTemplate"],["renderedItem",""],["kendoBreadCrumbSeparator","",3,"icon","svgIcon",4,"ngIf"],["kendoBreadCrumbSeparator","",3,"icon","svgIcon"]],template:function(No,qr){1&No&&e.YNc(0,q,2,1,"ng-container",0),2&No&&e.Q6J("ngForOf",qr.items)},dependencies:[Bi,rt,l.sg,l.O5],encapsulation:2}),$o})();const Gn=$o=>$o.item.context.collapsed,Io=$o=>!0===Gn($o),wr=$o=>!1===Gn($o),bs=$o=>Ar=>Ar.find(No=>Gn(No)===$o).item.context.collapsed=!$o,ba=bs(!1),ms=bs(!0);let Oa=(()=>{class $o{constructor(No,qr,js,Ds,Zr){this.localization=No,this.el=qr,this.cdr=js,this.zone=Ds,this.renderer=Zr,this.itemClick=new e.vpe,this.hostClasses=!0,this.hostAriaLabel="Breadcrumb",this._items=[],this._collapseMode="auto",this._size="medium",this.updateItems=new s.t,this.afterViewInit=new A.x,this.subscriptions=new _.w0,this.direction="ltr",(0,o.s)(Lt);const ls=this.updateItems.asObservable().pipe((0,x.O)([]));this.direction=No.rtl?"rtl":"ltr",this.itemsData$=ls.pipe((0,R.U)(Hs=>Hs.filter(Boolean)),(0,R.U)(Hs=>Hs.map((Js,Wa,ll)=>({context:{collapsed:!1,isLast:Wa===ll.length-1,isFirst:0===Wa},data:Js}))),(0,f.B)()),this.firstItem$=ls.pipe((0,R.U)(Hs=>Hs.length>0?[{context:{collapsed:!1,isLast:1===Hs.length,isFirst:!0},data:Hs[0]}]:[]),(0,f.B)())}set items(No){this._items=No||[],this.updateItems.next(this._items)}get items(){return this._items}set collapseMode(No){if((0,e.X6Q)()&&["auto","wrap","none"].indexOf(No)<0)throw new Error('Invalid collapse mode. Allowed values are "auto", "wrap" or "none". \nFor more details see https://www.telerik.com/kendo-angular-ui/components/navigation/api/BreadCrumbCollapseMode/');this._collapseMode=No||"auto",this.updateItems.next(this.items)}get collapseMode(){return this._collapseMode}set size(No){const qr=No||"medium";this.handleClasses(qr,"size"),this._size=qr}get size(){return this._size}get wrapMode(){return"wrap"===this.collapseMode}get getDir(){return this.direction}ngOnInit(){this.subscriptions.add(this.localization.changes.subscribe(({rtl:No})=>this.direction=No?"rtl":"ltr"))}ngAfterViewInit(){this.attachResizeHandler(),this.afterViewInit.next(),this.handleClasses(this.size,"size")}ngOnDestroy(){this.subscriptions.unsubscribe()}handleResize(){const No=[...this.listComponent.renderedItems.toArray().filter(Zr=>!Zr.item.context.isFirst&&!Zr.item.context.isLast)],qr=ln(this.el.nativeElement),js=Math.floor(this.itemsContainers.toArray().map(Zr=>ln(Zr.nativeElement)).reduce((Zr,ls)=>Zr+ls,0)),Ds=([...No].reverse().find(Io)||{width:0}).width;return qr<=js&&No.find(wr)?(ba(No),this.cdr.detectChanges(),this.handleResize()):qr>js+Ds&&No.find(Io)?(ms([...No].reverse()),this.cdr.detectChanges(),this.handleResize()):void 0}shouldResize(){return(0,a.X_)()&&"auto"===this.collapseMode}attachResizeHandler(){this.subscriptions.add((0,d.T)(this.resizeSensor.resize,this.itemsData$,this.afterViewInit.asObservable()).pipe((0,C.h)(()=>this.shouldResize())).subscribe(()=>{this.zone.runOutsideAngular(()=>setTimeout(()=>{this.zone.run(()=>{this.listComponent&&(this.handleResize(),this.resizeSensor.acceptSize())})}))}))}handleClasses(No,qr){const js=this.el.nativeElement,Ds=(($o,Ar,No)=>{if("size"===$o)return{toRemove:`k-breadcrumb-${Zi[Ar]}`,toAdd:"none"!==No?`k-breadcrumb-${Zi[No]}`:""}})(qr,this[qr],No);Ds.toRemove&&this.renderer.removeClass(js,Ds.toRemove),Ds.toAdd&&this.renderer.addClass(js,Ds.toAdd)}}return $o.\u0275fac=function(No){return new(No||$o)(e.Y36(n.oQ),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(e.Qsj))},$o.\u0275cmp=e.Xpm({type:$o,selectors:[["kendo-breadcrumb"]],contentQueries:function(No,qr,js){if(1&No&&e.Suo(js,bo,5),2&No){let Ds;e.iGM(Ds=e.CRH())&&(qr.itemTemplate=Ds.first)}},viewQuery:function(No,qr){if(1&No&&(e.Gf(se,7),e.Gf(ai,7),e.Gf(ne,5,e.SBq)),2&No){let js;e.iGM(js=e.CRH())&&(qr.resizeSensor=js.first),e.iGM(js=e.CRH())&&(qr.listComponent=js.first),e.iGM(js=e.CRH())&&(qr.itemsContainers=js)}},hostVars:6,hostBindings:function(No,qr){2&No&&(e.uIk("aria-label",qr.hostAriaLabel)("dir",qr.getDir),e.ekj("k-breadcrumb",qr.hostClasses)("k-breadcrumb-wrap",qr.wrapMode))},inputs:{items:"items",separatorIcon:"separatorIcon",separatorSVGIcon:"separatorSVGIcon",collapseMode:"collapseMode",size:"size"},outputs:{itemClick:"itemClick"},exportAs:["kendoBreadCrumb"],features:[e._Bn([n.oQ,{provide:n.mM,useValue:"kendo.breadcrumb"}])],decls:6,vars:13,consts:[["kendoBreadCrumbList","","class","k-breadcrumb-root-item-container",3,"items","itemTemplate","collapseMode","separatorIcon","separatorSVGIcon","itemClick",4,"ngIf"],["kendoBreadCrumbList","",1,"k-breadcrumb-container",3,"items","itemTemplate","collapseMode","separatorIcon","separatorSVGIcon","ngClass","itemClick"],["itemsContainer",""],[3,"rateLimit"],["resizeSensor",""],["kendoBreadCrumbList","",1,"k-breadcrumb-root-item-container",3,"items","itemTemplate","collapseMode","separatorIcon","separatorSVGIcon","itemClick"]],template:function(No,qr){1&No&&(e.YNc(0,_e,3,7,"ol",0),e.TgZ(1,"ol",1,2),e.NdJ("itemClick",function(Ds){return qr.itemClick.emit(Ds)}),e.ALo(3,"async"),e.qZA(),e._UZ(4,"kendo-resize-sensor",3,4)),2&No&&(e.Q6J("ngIf","wrap"===qr.collapseMode),e.xp6(1),e.Q6J("items",e.lcZ(3,8,qr.itemsData$))("itemTemplate",null==qr.itemTemplate?null:qr.itemTemplate.templateRef)("collapseMode",qr.collapseMode)("separatorIcon",qr.separatorIcon)("separatorSVGIcon",qr.separatorSVGIcon)("ngClass",e.WLB(10,ge,"wrap"===qr.collapseMode,"none"===qr.collapseMode)),e.xp6(3),e.Q6J("rateLimit",1e3))},dependencies:[ai,a.NG,l.O5,l.mk,l.Ov],encapsulation:2}),$o})(),Mr=(()=>{class $o{}return $o.\u0275fac=function(No){return new(No||$o)},$o.\u0275mod=e.oAB({type:$o}),$o.\u0275inj=e.cJS({imports:[[l.ez,a.uv,w.pc]]}),$o})();let mo=(()=>{class $o{}return $o.\u0275fac=function(No){return new(No||$o)},$o.\u0275mod=e.oAB({type:$o}),$o.\u0275inj=e.cJS({imports:[[l.ez,w.pc]]}),$o})(),yo=(()=>{class $o{constructor(No){this.templateRef=No}}return $o.\u0275fac=function(No){return new(No||$o)(e.Y36(e.Rgc,8))},$o.\u0275dir=e.lG2({type:$o,selectors:[["","kendoActionSheetHeaderTemplate",""]]}),$o})(),lr=(()=>{class $o{constructor(No){this.templateRef=No}}return $o.\u0275fac=function(No){return new(No||$o)(e.Y36(e.Rgc,8))},$o.\u0275dir=e.lG2({type:$o,selectors:[["","kendoActionSheetItemTemplate",""]]}),$o})(),Yr=(()=>{class $o{constructor(No){this.templateRef=No}}return $o.\u0275fac=function(No){return new(No||$o)(e.Y36(e.Rgc,8))},$o.\u0275dir=e.lG2({type:$o,selectors:[["","kendoActionSheetContentTemplate",""]]}),$o})(),Gs=(()=>{class $o{constructor(No){this.templateRef=No}}return $o.\u0275fac=function(No){return new(No||$o)(e.Y36(e.Rgc,8))},$o.\u0275dir=e.lG2({type:$o,selectors:[["","kendoActionSheetFooterTemplate",""]]}),$o})(),fi=(()=>{class $o{constructor(No){this.templateRef=No}}return $o.\u0275fac=function(No){return new(No||$o)(e.Y36(e.Rgc,8))},$o.\u0275dir=e.lG2({type:$o,selectors:[["","kendoActionSheetTemplate",""]]}),$o})(),Zn=(()=>{class $o{constructor(){this.pointerClass=!0}manageIconClasses(No){const qr=["k-actionsheet-item-icon"],js=vt(No.iconColor)&&si.test(No.iconColor);return vt(No.iconColor)&&""!==No.iconColor&&!js&&qr.push(`k-text-${No.iconColor}`),qr.join(" ")}manageIconStyles(No){const qr=vt(No.iconColor)&&si.test(No.iconColor),js=vt(No.iconSize)&&""!==No.iconSize,Ds={};return qr&&(Ds.color=No.iconColor),js&&(Ds.fontSize=No.iconSize),Ds}}return $o.\u0275fac=function(No){return new(No||$o)},$o.\u0275cmp=e.Xpm({type:$o,selectors:[["","kendoActionSheetItem",""]],hostVars:2,hostBindings:function(No,qr){2&No&&e.ekj("k-cursor-pointer",qr.pointerClass)},inputs:{itemTemplate:"itemTemplate",item:"item"},attrs:An,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-actionsheet-action"],["class","k-icon-wrap",4,"ngIf"],["class","k-actionsheet-item-text",4,"ngIf"],[1,"k-icon-wrap"],[3,"name","customFontClass","svgIcon"],[1,"k-actionsheet-item-text"],["class","k-actionsheet-item-title",4,"ngIf"],["class","k-actionsheet-item-description",4,"ngIf"],[1,"k-actionsheet-item-title"],[1,"k-actionsheet-item-description"]],template:function(No,qr){if(1&No&&(e.YNc(0,xn,1,4,null,0),e.YNc(1,sn,3,2,"ng-template",null,1,e.W1O)),2&No){const js=e.MAs(2);e.Q6J("ngIf",qr.itemTemplate)("ngIfElse",js)}},dependencies:[w.ZS,l.O5,l.tP],encapsulation:2}),$o})(),qo=(()=>{class $o{constructor(No,qr,js){this.renderer=No,this.ngZone=qr,this.element=js,this.groupItems=[],this.allItems=[],this.itemClick=new e.vpe,this.subscriptions=new _.w0}ngAfterViewInit(){this.initDomEvents()}ngOnDestroy(){this.subscriptions.unsubscribe()}initDomEvents(){this.element&&this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(this.element.nativeElement,"click",this.clickHandler.bind(this)))})}clickHandler(No){const qr=_i(No.target,pn,this.element.nativeElement),js=this.allItems[qr];if(js){if(js.disabled)return void No.preventDefault();this.ngZone.run(()=>{this.itemClick.emit({item:js,originalEvent:No})})}}setAttrIndex(No){return this.allItems.indexOf(No)}}return $o.\u0275fac=function(No){return new(No||$o)(e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(e.SBq))},$o.\u0275cmp=e.Xpm({type:$o,selectors:[["","kendoActionSheetList",""]],inputs:{groupItems:"groupItems",allItems:"allItems",itemTemplate:"itemTemplate"},outputs:{itemClick:"itemClick"},attrs:fn,decls:1,vars:1,consts:[["kendoActionSheetItem","","tabindex","0","role","button",3,"k-actionsheet-item","k-disabled","ngClass","ngStyle","itemTemplate","item",4,"ngFor","ngForOf"],["kendoActionSheetItem","","tabindex","0","role","button",3,"ngClass","ngStyle","itemTemplate","item"]],template:function(No,qr){1&No&&e.YNc(0,yi,1,10,"span",0),2&No&&e.Q6J("ngForOf",qr.groupItems)},dependencies:[Zn,l.sg,l.mk,l.PC],encapsulation:2}),$o})();let kr=(()=>{class $o{constructor(No,qr,js,Ds,Zr,ls){this.element=No,this.ngZone=qr,this.renderer=js,this.localizationService=Ds,this.builder=Zr,this.cdr=ls,this.animation=!0,this.expanded=!1,this.titleId="k-actionsheet-title"+ ++go,this.expandedChange=new e.vpe,this.expand=new e.vpe,this.collapse=new e.vpe,this.itemClick=new e.vpe,this.overlayClick=new e.vpe,this.rtl=!1,this.domSubs=new _.w0,this.animationEnd=new e.vpe,(0,o.s)(Lt),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(({rtl:Hs})=>{this.rtl=Hs,this.direction=this.rtl?"rtl":"ltr"})}get hostClass(){return this.expanded}ngAfterViewInit(){this.initDomEvents(),this.setCssVariables()}ngOnChanges(No){No.expanded&&this.expanded&&this.setExpanded(!0)}ngOnDestroy(){this.domSubs.unsubscribe(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.player&&this.player.destroy()}toggle(No){const qr=this.expanded,js=(0,a.EN)(No)?No:!qr;js!==qr&&(!0===js?this.setExpanded(!0):!1===js&&!this.animation&&this.setExpanded(!1),this.animation?(this.animationEnd.pipe((0,k.q)(1)).subscribe(()=>{this.onAnimationEnd(js)}),this.playAnimation(js)):this[js?"expand":"collapse"].emit())}get topGroupItems(){return this.items?.filter(No=>!No.group||"top"===No.group)}get bottomGroupItems(){return this.items?.filter(No=>"bottom"===No.group)}onItemClick(No){this.itemClick.emit(No)}onOverlayClick(){this.overlayClick.emit()}get shouldRenderSeparator(){return this.topGroupItems?.length>0&&this.bottomGroupItems?.length>0}initDomEvents(){this.element&&this.ngZone.runOutsideAngular(()=>{this.domSubs.add(this.renderer.listen(this.element.nativeElement,"keydown",No=>{this.onKeyDown(No)}))})}setCssVariables(){!this.element||!(0,a.X_)()||(this.element.nativeElement.style.setProperty("--kendo-actionsheet-height","auto"),this.element.nativeElement.style.setProperty("--kendo-actionsheet-max-height","none"))}onKeyDown(No){const qr=No.target;No.keyCode===a.R8.Tab&&this.ngZone.run(()=>{this.keepFocusWithinComponent(qr,No)}),No.keyCode===a.R8.Escape&&this.ngZone.run(()=>{this.overlayClick.emit()}),No.keyCode===a.R8.Enter&&this.ngZone.run(()=>{this.triggerItemClick(qr,No)})}handleInitialFocus(){const[No]=jn(this.element.nativeElement);No&&No.focus()}keepFocusWithinComponent(No,qr){const js=this.element.nativeElement,[Ds,Zr]=jn(js),Hs=qr.shiftKey&&No===Ds;!qr.shiftKey&&No===Zr&&(qr.preventDefault(),Ds.focus()),Hs&&(qr.preventDefault(),Zr.focus())}triggerItemClick(No,qr){const js=_i(No,pn,this.element.nativeElement),Ds=(0,a.EN)(js)?this.items[js]:null;!Ds||Ds.disabled||this.itemClick.emit({item:Ds,originalEvent:qr})}setExpanded(No){this.expanded=No,this.expandedChange.emit(No),this.expanded&&(this.cdr.detectChanges(),this.handleInitialFocus())}onAnimationEnd(No){No?this.expand.emit():(this.setExpanded(!1),this.collapse.emit())}playAnimation(No){const qr="boolean"!=typeof this.animation&&this.animation.duration?this.animation.duration:300,js=getComputedStyle(this.childContainer.nativeElement).height,Ds=No?function Ho($o,Ar){return[(0,M.oB)({overflow:"hidden",display:"block",height:0}),(0,M.jt)(`${$o}ms ease-in`,(0,M.oB)({height:`${Ar}`}))]}(qr,js):function _t($o,Ar){return[(0,M.oB)({overflow:"hidden",height:`${Ar}`}),(0,M.jt)(`${$o}ms ease-in`,(0,M.oB)({overflow:"hidden",height:0}))]}(qr,js),Zr=this.builder.build(Ds);this.player=Zr.create(this.childContainer.nativeElement),this.player.onDone(()=>{this.player&&(this.animationEnd.emit(),this.player.destroy(),this.player=null)}),this.player.play()}}return $o.\u0275fac=function(No){return new(No||$o)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(n.oQ),e.Y36(M._j),e.Y36(e.sBO))},$o.\u0275cmp=e.Xpm({type:$o,selectors:[["kendo-actionsheet"]],contentQueries:function(No,qr,js){if(1&No&&(e.Suo(js,fi,5),e.Suo(js,yo,5),e.Suo(js,Yr,5),e.Suo(js,lr,5),e.Suo(js,Gs,5)),2&No){let Ds;e.iGM(Ds=e.CRH())&&(qr.actionSheetTemplate=Ds.first),e.iGM(Ds=e.CRH())&&(qr.headerTemplate=Ds.first),e.iGM(Ds=e.CRH())&&(qr.contentTemplate=Ds.first),e.iGM(Ds=e.CRH())&&(qr.itemTemplate=Ds.first),e.iGM(Ds=e.CRH())&&(qr.footerTemplate=Ds.first)}},viewQuery:function(No,qr){if(1&No&&e.Gf(nn,5),2&No){let js;e.iGM(js=e.CRH())&&(qr.childContainer=js.first)}},hostVars:3,hostBindings:function(No,qr){2&No&&(e.uIk("dir",qr.direction),e.ekj("k-actionsheet-container",qr.hostClass))},inputs:{title:"title",subtitle:"subtitle",items:"items",cssClass:"cssClass",animation:"animation",expanded:"expanded",titleId:"titleId"},outputs:{expandedChange:"expandedChange",expand:"expand",collapse:"collapse",itemClick:"itemClick",overlayClick:"overlayClick"},exportAs:["kendoActionSheet"],features:[e._Bn([n.oQ,{provide:n.mM,useValue:"kendo.actionsheet.component"}]),e.TTD],decls:1,vars:1,consts:[[4,"ngIf"],[1,"k-overlay",3,"click"],[1,"k-animation-container"],[1,"k-child-animation-container"],["childContainer",""],["role","dialog","aria-modal","true",1,"k-actionsheet","k-actionsheet-bottom",3,"ngClass"],[4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"ngTemplateOutlet"],["class","k-actionsheet-titlebar",4,"ngIf"],["class","k-actionsheet-content",4,"ngIf"],["class","k-actionsheet-footer",4,"ngIf"],[1,"k-actionsheet-titlebar"],["defaultHeaderTemplate",""],[1,"k-actionsheet-titlebar-group","k-hbox"],[1,"k-actionsheet-title",3,"id"],["class","k-text-center",4,"ngIf"],["class","k-actionsheet-subtitle k-text-center",4,"ngIf"],[1,"k-text-center"],[1,"k-actionsheet-subtitle","k-text-center"],[1,"k-actionsheet-content"],["defaultContentTemplate",""],["kendoActionSheetList","","class","k-list-ul","role","group",3,"groupItems","allItems","itemTemplate","itemClick",4,"ngIf"],["class","k-hr",4,"ngIf"],["kendoActionSheetList","","role","group",1,"k-list-ul",3,"groupItems","allItems","itemTemplate","itemClick"],[1,"k-hr"],[1,"k-actionsheet-footer"]],template:function(No,qr){1&No&&e.YNc(0,pt,9,6,"ng-container",0),2&No&&e.Q6J("ngIf",qr.expanded)},dependencies:[qo,l.O5,l.mk,l.tP],encapsulation:2}),$o})(),Ss=(()=>{class $o{}return $o.\u0275fac=function(No){return new(No||$o)},$o.\u0275mod=e.oAB({type:$o}),$o.\u0275inj=e.cJS({imports:[[l.ez,w.pc]]}),$o})(),Ua=(()=>{class $o{}return $o.\u0275fac=function(No){return new(No||$o)},$o.\u0275mod=e.oAB({type:$o}),$o.\u0275inj=e.cJS({imports:[ki,Mr,mo,Ss]}),$o})()},10922:(he,y,i)=>{"use strict";i.d(y,{PR:()=>mt,UF:()=>sn});var e=i(65879),n=i(58951),o=i(78645),a=i(47394),l=i(73942),u=i(15735),d=i(31486),s=i(3201),A=i(96814),_=i(80889),C=i(12624);const R=["dropdownlist"],x=["select"],f=["numbers"];function k(fn,yi){if(1&fn&&(e.TgZ(0,"option",9),e._uU(1,"... "),e.qZA()),2&fn){const nn=e.oxw();e.Q6J("selected",!1),e.uIk("aria-label",nn.pageLabel(nn.start-1))}}const w=function(fn){return{"k-selected":fn}};function g(fn,yi){if(1&fn&&(e.TgZ(0,"option",10),e._uU(1),e.qZA()),2&fn){const nn=yi.$implicit,Mi=e.oxw();e.Q6J("value",nn.toString())("selected",nn===Mi.currentPage)("ngClass",e.VKq(6,w,Mi.currentPage===nn)),e.uIk("aria-label",Mi.pageLabel(nn))("aria-current",Mi.currentPage===nn?"page":void 0),e.xp6(1),e.hij(" ",nn," ")}}function M(fn,yi){if(1&fn&&(e.TgZ(0,"option",11),e._uU(1,"... "),e.qZA()),2&fn){const nn=e.oxw();e.Q6J("selected",!1),e.uIk("aria-label",nn.pageLabel(nn.end+1))}}function p(fn,yi){if(1&fn){const nn=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(){e.CHM(nn);const mi=e.oxw();return e.KtG(mi.changePage(mi.start-2))}),e._uU(1,"..."),e.qZA()}if(2&fn){const nn=e.oxw();e.Q6J("size",nn.size),e.uIk("aria-label",nn.pageLabel(nn.start-1))("title",nn.pageLabel(nn.start-1))}}function E(fn,yi){if(1&fn){const nn=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){const Eo=e.CHM(nn).$implicit,Ko=e.oxw();return e.KtG(Ko.changePage(Eo-1))}),e._uU(1),e.qZA()}if(2&fn){const nn=yi.$implicit,Mi=e.oxw();e.Q6J("size",Mi.size)("selected",Mi.currentPage===nn),e.uIk("aria-label",Mi.pageLabel(nn))("title",Mi.pageLabel(nn))("aria-current",Mi.currentPage===nn?"page":void 0),e.xp6(1),e.hij(" ",nn," ")}}function b(fn,yi){if(1&fn){const nn=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(){e.CHM(nn);const mi=e.oxw();return e.KtG(mi.changePage(mi.end))}),e._uU(1,"..."),e.qZA()}if(2&fn){const nn=e.oxw();e.Q6J("size",nn.size),e.uIk("aria-label",nn.pageLabel(nn.end+1))("title",nn.pageLabel(nn.end+1))}}const I=function(){return{"k-pager-input":!0,"k-label":!0}},L=function(fn,yi){return{keydown:fn,focusout:yi}};function D(fn,yi){if(1&fn&&e.GkF(0,3),2&fn){const nn=e.oxw();e.Q6J("ngTemplateOutlet",null==nn.template.first?null:nn.template.first.templateRef)("ngTemplateOutletContext",nn.templateContext)}}function F(fn,yi){if(1&fn&&e._UZ(0,"kendo-datapager-prev-buttons",8),2&fn){const nn=e.oxw(2);e.Q6J("size",nn.size)}}function P(fn,yi){if(1&fn&&e._UZ(0,"kendo-datapager-numeric-buttons",9),2&fn){const nn=e.oxw(2);e.Q6J("size",nn.size)("buttonCount",nn.buttonCount)}}function O(fn,yi){if(1&fn&&e._UZ(0,"kendo-datapager-input",8),2&fn){const nn=e.oxw(2);e.Q6J("size",nn.size)}}function U(fn,yi){if(1&fn&&e._UZ(0,"kendo-datapager-next-buttons",8),2&fn){const nn=e.oxw(2);e.Q6J("size",nn.size)}}function V(fn,yi){if(1&fn&&e._UZ(0,"kendo-datapager-page-sizes",10),2&fn){const nn=e.oxw(2);e.Q6J("size",nn.size)("pageSizes",nn.pageSizeValues)}}function K(fn,yi){1&fn&&e._UZ(0,"kendo-datapager-info")}function X(fn,yi){if(1&fn&&(e.ynx(0),e.TgZ(1,"div",4),e.YNc(2,F,1,1,"kendo-datapager-prev-buttons",5),e.YNc(3,P,1,2,"kendo-datapager-numeric-buttons",6),e.YNc(4,O,1,1,"kendo-datapager-input",5),e.YNc(5,U,1,1,"kendo-datapager-next-buttons",5),e.qZA(),e.YNc(6,V,1,2,"kendo-datapager-page-sizes",7),e.YNc(7,K,1,0,"kendo-datapager-info",2),e.BQk()),2&fn){const nn=e.oxw();e.xp6(2),e.Q6J("ngIf",nn.previousNext),e.xp6(1),e.Q6J("ngIf","numeric"===nn.type&&nn.buttonCount>0),e.xp6(1),e.Q6J("ngIf","input"===nn.type),e.xp6(1),e.Q6J("ngIf",nn.previousNext),e.xp6(1),e.Q6J("ngIf",nn.pageSizeValues),e.xp6(1),e.Q6J("ngIf",nn.info)}}class me{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class J extends me{constructor(yi){super(),this.newPageSize=yi}}let Q=(()=>{class fn extends n.Z1{}return fn.\u0275fac=function(){let yi;return function(Mi){return(yi||(yi=e.n5z(fn)))(Mi||fn)}}(),fn.\u0275dir=e.lG2({type:fn,selectors:[["kendoPagerMessages"]],inputs:{firstPage:"firstPage",lastPage:"lastPage",previousPage:"previousPage",nextPage:"nextPage",page:"page",pageNumberInputTitle:"pageNumberInputTitle",itemsPerPage:"itemsPerPage",of:"of",items:"items",selectPage:"selectPage",inputLabel:"inputLabel"},features:[e.qOj]}),fn})(),de=(()=>{class fn extends Q{constructor(nn){super(),this.service=nn}}return fn.\u0275fac=function(nn){return new(nn||fn)(e.Y36(n.oQ))},fn.\u0275dir=e.lG2({type:fn,selectors:[["","kendoDataPagerLocalizedMessages",""]],features:[e._Bn([{provide:Q,useExisting:(0,e.Gpc)(()=>fn)}]),e.qOj]}),fn})();class te{constructor(){this.changes=new o.x,this.pageChange=new o.x,this.pageSizeChange=new o.x}get currentPage(){return this.skip/this.pageSize}notifyChanges(yi){this.total=yi.total,this.pageSize=yi.pageSize,this.skip=yi.skip,this.changes.next(yi)}changePage(yi){this.pageChange.next({skip:yi*this.pageSize,take:this.pageSize})}changePageSize(yi){this.pageSizeChange.next(yi)}nextPage(){const yi=this.currentPage+1;yi*this.pageSize<=this.total&&this.changePage(yi)}prevPage(){const yi=this.currentPage-1;yi*this.pageSize>=0&&this.changePage(yi)}}let j=(()=>{class fn{constructor(nn,Mi,mi){this.localization=nn,this.pagerContext=Mi,this.cd=mi,this.total=this.pagerContext.total,this.skip=this.pagerContext.skip,this.pageSize=this.pagerContext.pageSize,this.caretAltLeftIcon=l.Me8,this.caretAltToLeftIcon=l.EN9,this.caretAltRightIcon=l.bI8,this.caretAltToRightIcon=l.$2l}get currentPage(){return Math.floor((this.skip||0)/this.pageSize)+1}get totalPages(){return Math.ceil((this.total||0)/this.pageSize)}textFor(nn){return this.localization.get(nn)}changePage(nn){return this.pagerContext.changePage(nn),!1}ngOnInit(){this.subscriptions=this.pagerContext.changes.subscribe(this.onChanges.bind(this)),this.subscriptions.add(this.localization.changes.subscribe(()=>this.cd.markForCheck()))}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}get prevArrowIcons(){return this.localization.rtl?["caret-alt-to-right","caret-alt-right"]:["caret-alt-to-left","caret-alt-left"]}get prevArrowSVGIcons(){return this.localization.rtl?[this.caretAltToRightIcon,this.caretAltRightIcon]:[this.caretAltToLeftIcon,this.caretAltLeftIcon]}get nextArrowIcons(){return this.localization.rtl?["caret-alt-left","caret-alt-to-left"]:["caret-alt-right","caret-alt-to-right"]}get nextArrowSVGIcons(){return this.localization.rtl?[this.caretAltLeftIcon,this.caretAltToLeftIcon]:[this.caretAltRightIcon,this.caretAltToRightIcon]}}return fn.\u0275fac=function(nn){return new(nn||fn)(e.Y36(n.oQ),e.Y36(te),e.Y36(e.sBO))},fn.\u0275cmp=e.Xpm({type:fn,selectors:[["kendo-pager-element"]],decls:0,vars:0,template:function(nn,Mi){},encapsulation:2}),fn})();const H=[5,10,20],se=["a[href]:not([disabled])","area[href]:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button","iframe:not([disabled])","object:not([disabled])","embed:not([disabled])","*[tabindex]:not([disabled])",'*[contenteditable]:not([disabled]):not([contenteditable="false"])'].join(","),ne="medium",_e={small:"sm",medium:"md",large:"lg"},ge=(fn,yi,nn,Mi)=>{if("size"===yi)return{toRemove:`k-${fn}-${_e[nn]}`,toAdd:"none"!==Mi?`k-${fn}-${_e[Mi]}`:""}};class Ce{constructor(){this.isNavigable=!1,this.innerNavigationChange=new o.x}toggleInnerNavigation(yi){this.innerNavigationChange.next(yi)}keepFocusWithinComponent(yi,nn,Mi){const[mi,Eo]=this.getFirstAndLastFocusable(yi),xo=Mi.shiftKey&&nn===mi;!Mi.shiftKey&&nn===Eo&&(Mi.preventDefault(),mi.focus()),xo&&(Mi.preventDefault(),Eo.focus())}getFirstAndLastFocusable(yi){const nn=yi.querySelectorAll("[kendoPagerFocusable]");return[nn.length>0?nn[0]:parent,nn.length>0?nn[nn.length-1]:parent]}}let Te=(()=>{class fn{constructor(nn,Mi,mi){this.navigationService=nn,this.element=Mi,this.renderer=mi,this.subscriptions=new a.w0}ngOnInit(){this.subscriptions.add(this.navigationService.innerNavigationChange.subscribe(this.innerNavigationChange.bind(this)))}ngOnDestroy(){this.subscriptions.unsubscribe()}get nativeElement(){return this.element.nativeElement}innerNavigationChange(nn){if(!this.navigationService.isNavigable)return;const Mi=nn?"0":"-1";this.nativeElement.matches(se)&&this.renderer.setAttribute(this.nativeElement,"tabindex",Mi),this.nativeElement.querySelectorAll(se).forEach(Eo=>{this.renderer.setAttribute(Eo,"tabindex",Mi)})}}return fn.\u0275fac=function(nn){return new(nn||fn)(e.Y36(Ce),e.Y36(e.SBq),e.Y36(e.Qsj))},fn.\u0275dir=e.lG2({type:fn,selectors:[["","kendoPagerFocusable",""]],exportAs:["kendoPagerFocusable"]}),fn})(),De=(()=>{class fn extends j{constructor(nn,Mi,mi){super(nn,Mi,mi),this.size=ne}get disabled(){return 1===this.currentPage||!this.total}onChanges({total:nn,skip:Mi,pageSize:mi}){this.total=nn,this.skip=Mi,this.pageSize=mi,this.cd.markForCheck()}}return fn.\u0275fac=function(nn){return new(nn||fn)(e.Y36(n.oQ),e.Y36(te),e.Y36(e.sBO))},fn.\u0275cmp=e.Xpm({type:fn,selectors:[["kendo-datapager-prev-buttons"]],inputs:{size:"size"},features:[e.qOj],decls:2,vars:12,consts:[["type","button","kendoButton","","kendoPagerFocusable","","fillMode","flat","rounded","none",1,"k-pager-nav","k-pager-first",3,"disabled","icon","svgIcon","size","title","click"],["type","button","kendoButton","","kendoPagerFocusable","","fillMode","flat","rounded","none",1,"k-pager-nav",3,"disabled","icon","svgIcon","size","title","click"]],template:function(nn,Mi){1&nn&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return 1!==Mi.currentPage&&Mi.changePage(0)}),e.qZA(),e.TgZ(1,"button",1),e.NdJ("click",function(){return 1!==Mi.currentPage&&Mi.changePage(Mi.currentPage-2)}),e.qZA()),2&nn&&(e.Q6J("disabled",Mi.disabled)("icon",Mi.prevArrowIcons[0])("svgIcon",Mi.prevArrowSVGIcons[0])("size",Mi.size)("title",Mi.textFor("firstPage")),e.uIk("aria-label",Mi.textFor("firstPage")),e.xp6(1),e.Q6J("disabled",Mi.disabled)("icon",Mi.prevArrowIcons[1])("svgIcon",Mi.prevArrowSVGIcons[1])("size",Mi.size)("title",Mi.textFor("previousPage")),e.uIk("aria-label",Mi.textFor("previousPage")))},dependencies:[u.r0,Te],encapsulation:2,changeDetection:0}),fn})(),fe=(()=>{class fn extends j{constructor(nn,Mi,mi,Eo,Ko){super(nn,mi,Mi),this.pagerContext=mi,this.element=Eo,this.ngZone=Ko,this.size=ne,this._pageSizes=[]}set pageSizes(nn){let Mi=[];Array.isArray(nn)&&nn.forEach(mi=>{Mi.push("number"==typeof mi?{text:mi.toString(),value:mi}:mi)}),this.pageSize&&!Mi.some(mi=>mi.value===this.pageSize)&&(Mi=[{text:this.pageSize.toString(),value:this.pageSize},...Mi]),this._pageSizes=Mi}get pageSizes(){return this._pageSizes}get classes(){return!0}ngAfterViewInit(){this.dropDownList.wrapper.nativeElement.setAttribute("aria-label",this.textFor("itemsPerPage")),this.ngZone.runOutsideAngular(()=>{this.element.nativeElement.addEventListener("keydown",this.keyDownHandler.bind(this),!0)})}ngOnDestroy(){this.element.nativeElement.removeEventListener("keydown",this.keyDownHandler)}pageSizeChange(nn,Mi){const mi=new J(nn);this.pagerContext.changePageSize(mi),mi.isDefaultPrevented()&&Mi.writeValue(this.pageSize)}onChanges({total:nn,skip:Mi,pageSize:mi}){this.total=nn,this.skip=Mi,this.pageSize="number"==typeof mi?mi:this.total,this.cd.markForCheck()}keyDownHandler(nn){nn.keyCode===s.R8.Escape&&this.dropDownList.isOpen&&(nn.stopPropagation(),this.dropDownList.toggle(!1))}}return fn.\u0275fac=function(nn){return new(nn||fn)(e.Y36(n.oQ),e.Y36(e.sBO),e.Y36(te),e.Y36(e.SBq),e.Y36(e.R0b))},fn.\u0275cmp=e.Xpm({type:fn,selectors:[["kendo-datapager-page-sizes"]],viewQuery:function(nn,Mi){if(1&nn&&e.Gf(R,7),2&nn){let mi;e.iGM(mi=e.CRH())&&(Mi.dropDownList=mi.first)}},hostVars:2,hostBindings:function(nn,Mi){2&nn&&e.ekj("k-pager-sizes",Mi.classes)},inputs:{pageSizes:"pageSizes",size:"size"},features:[e.qOj],decls:3,vars:5,consts:[["kendoPagerFocusable","","textField","text","valueField","value",1,"k-dropdown",3,"size","data","valuePrimitive","value","valueChange"],["dropdownlist",""]],template:function(nn,Mi){if(1&nn){const mi=e.EpF();e.TgZ(0,"kendo-dropdownlist",0,1),e.NdJ("valueChange",function(Ko){e.CHM(mi);const xo=e.MAs(1);return e.KtG(Mi.pageSizeChange(Ko,xo))}),e.qZA(),e._uU(2)}2&nn&&(e.Q6J("size",Mi.size)("data",Mi.pageSizes)("valuePrimitive",!0)("value",Mi.pageSize),e.xp6(2),e.hij(" ",Mi.textFor("itemsPerPage")," "))},dependencies:[d.rI,Te],encapsulation:2,changeDetection:0}),fn})(),xe=(()=>{class fn{constructor(nn){this.templateRef=nn}}return fn.\u0275fac=function(nn){return new(nn||fn)(e.Y36(e.Rgc,8))},fn.\u0275dir=e.lG2({type:fn,selectors:[["","kendoDataPagerTemplate",""]]}),fn})(),Oe=(()=>{class fn extends j{constructor(nn,Mi,mi,Eo){super(nn,mi,Mi),this.pagerContext=mi,this.renderer=Eo,this._size=ne}set size(nn){const Mi=nn||ne;this.handleClasses(Mi,"size"),this._size=Mi}get size(){return this._size}get buttons(){const nn=[];for(let Mi=this.start;Mi<=this.end;Mi++)nn.push(Mi);return nn}get end(){return Math.min(this.start+this.buttonCount-1,this.totalPages)}get start(){const nn=this.currentPage,Mi=this.buttonCount;if(nn>Mi){const mi=nn%Mi;return 0===mi?nn-Mi+1:nn-mi+1}return 1}ngAfterViewInit(){this.handleClasses(this.size,"size")}pageLabel(nn){const Mi=this.textFor("page");return Mi?Mi+" "+nn:nn.toString()}onSelectChange(nn){const Mi=nn.target,mi=Number(Mi.value);Number.isNaN(mi)?this.changePage("previousButtons"===Mi.value?this.start-2:this.end):this.changePage(mi-1)}onChanges({total:nn,skip:Mi,pageSize:mi}){this.total=nn,this.skip=Mi,this.pageSize=mi,this.cd.markForCheck()}get pageChooserLabel(){return this.textFor("selectPage")}handleClasses(nn,Mi){const mi=this.selectElement?.nativeElement,Eo=ge("picker",Mi,this[Mi],nn);mi&&(Eo.toRemove&&this.renderer.removeClass(mi,Eo.toRemove),Eo.toAdd&&this.renderer.addClass(mi,Eo.toAdd))}}return fn.\u0275fac=function(nn){return new(nn||fn)(e.Y36(n.oQ),e.Y36(e.sBO),e.Y36(te),e.Y36(e.Qsj))},fn.\u0275cmp=e.Xpm({type:fn,selectors:[["kendo-datapager-numeric-buttons"]],viewQuery:function(nn,Mi){if(1&nn&&(e.Gf(x,5,e.SBq),e.Gf(f,5,e.SBq)),2&nn){let mi;e.iGM(mi=e.CRH())&&(Mi.selectElement=mi.first),e.iGM(mi=e.CRH())&&(Mi.numbersElement=mi.first)}},inputs:{buttonCount:"buttonCount",size:"size"},features:[e.qOj],decls:10,vars:10,consts:[["kendoPagerFocusable","",1,"k-dropdown-list","k-dropdown","k-picker","k-picker-solid","k-rounded-md",3,"change"],["select",""],["value","previousButtons",3,"selected",4,"ngIf"],[3,"value","selected","ngClass",4,"ngFor","ngForOf"],["value","nextButtons",3,"selected",4,"ngIf"],[1,"k-pager-numbers"],["numbers",""],["type","button","kendoPagerFocusable","","kendoButton","","fillMode","flat","themeColor","primary","rounded","none",3,"size","click",4,"ngIf"],["type","button","kendoPagerFocusable","","kendoButton","","fillMode","flat","themeColor","primary","rounded","none",3,"size","selected","click",4,"ngFor","ngForOf"],["value","previousButtons",3,"selected"],[3,"value","selected","ngClass"],["value","nextButtons",3,"selected"],["type","button","kendoPagerFocusable","","kendoButton","","fillMode","flat","themeColor","primary","rounded","none",3,"size","click"],["type","button","kendoPagerFocusable","","kendoButton","","fillMode","flat","themeColor","primary","rounded","none",3,"size","selected","click"]],template:function(nn,Mi){1&nn&&(e.TgZ(0,"select",0,1),e.NdJ("change",function(Eo){return Mi.onSelectChange(Eo)}),e.YNc(2,k,2,2,"option",2),e.YNc(3,g,2,8,"option",3),e.YNc(4,M,2,2,"option",4),e.qZA(),e.TgZ(5,"div",5,6),e.YNc(7,p,2,3,"button",7),e.YNc(8,E,2,6,"button",8),e.YNc(9,b,2,3,"button",7),e.qZA()),2&nn&&(e.Udp("display","none"),e.uIk("title",Mi.pageChooserLabel)("aria-label",Mi.pageChooserLabel),e.xp6(2),e.Q6J("ngIf",Mi.start>1),e.xp6(1),e.Q6J("ngForOf",Mi.buttons),e.xp6(1),e.Q6J("ngIf",Mi.end<Mi.totalPages),e.xp6(3),e.Q6J("ngIf",Mi.start>1),e.xp6(1),e.Q6J("ngForOf",Mi.buttons),e.xp6(1),e.Q6J("ngIf",Mi.end<Mi.totalPages))},dependencies:[u.r0,Te,A.O5,A.sg,A.mk],encapsulation:2,changeDetection:0}),fn})(),Le=(()=>{class fn extends j{constructor(nn,Mi,mi){super(nn,Mi,mi),this.size=ne}get disabled(){return this.currentPage===this.totalPages||!this.total}onChanges({total:nn,skip:Mi,pageSize:mi}){this.total=nn,this.skip=Mi,this.pageSize=mi,this.cd.markForCheck()}}return fn.\u0275fac=function(nn){return new(nn||fn)(e.Y36(n.oQ),e.Y36(te),e.Y36(e.sBO))},fn.\u0275cmp=e.Xpm({type:fn,selectors:[["kendo-datapager-next-buttons"]],inputs:{size:"size"},features:[e.qOj],decls:2,vars:12,consts:[["kendoButton","","kendoPagerFocusable","","type","button","fillMode","flat","rounded","none",1,"k-pager-nav",3,"size","icon","svgIcon","disabled","title","click"],["kendoButton","","kendoPagerFocusable","","type","button","fillMode","flat","rounded","none",1,"k-pager-nav","k-pager-last",3,"size","icon","svgIcon","disabled","title","click"]],template:function(nn,Mi){1&nn&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return Mi.currentPage!==Mi.totalPages&&Mi.changePage(Mi.currentPage)}),e.qZA(),e.TgZ(1,"button",1),e.NdJ("click",function(){return Mi.currentPage!==Mi.totalPages&&Mi.changePage(Mi.totalPages-1)}),e.qZA()),2&nn&&(e.Q6J("size",Mi.size)("icon",Mi.nextArrowIcons[0])("svgIcon",Mi.nextArrowSVGIcons[0])("disabled",Mi.disabled)("title",Mi.textFor("nextPage")),e.uIk("aria-label",Mi.textFor("nextPage")),e.xp6(1),e.Q6J("size",Mi.size)("icon",Mi.nextArrowIcons[1])("svgIcon",Mi.nextArrowSVGIcons[1])("disabled",Mi.disabled)("title",Mi.textFor("lastPage")),e.uIk("aria-label",Mi.textFor("lastPage")))},dependencies:[u.r0,Te],encapsulation:2,changeDetection:0}),fn})(),Gt=(()=>{class fn extends j{constructor(nn,Mi,mi,Eo,Ko){super(nn,Mi,Eo),this.pagerContext=Mi,this.zone=mi,this.renderer=Ko,this.size=ne,this.handleKeyDown=xo=>{const Bn=this.numericInput.value||this.current;xo.keyCode===s.R8.Enter&&(xo.preventDefault(),Bn!==this.current&&this.zone.run(()=>{this.changePage(Bn-1)}))},this.handleBlur=()=>{const xo=this.numericInput.value;xo?xo!==this.current&&this.zone.run(()=>{this.changePage(xo-1)}):this.numericInput.writeValue(this.current)}}get current(){return this.hasPages?this.currentPage:0}get hasPages(){return 0!==this.totalPages}ngAfterViewInit(){this.renderer.setAttribute(this.numericInput.numericInput.nativeElement,"aria-label",this.textFor("inputLabel"))}onChanges({total:nn,skip:Mi,pageSize:mi}){this.total=nn,this.skip=Mi,this.pageSize=mi,this.cd.markForCheck()}}return fn.\u0275fac=function(nn){return new(nn||fn)(e.Y36(n.oQ),e.Y36(te),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Qsj))},fn.\u0275cmp=e.Xpm({type:fn,selectors:[["kendo-datapager-input"]],viewQuery:function(nn,Mi){if(1&nn&&e.Gf(_.Uw,7),2&nn){let mi;e.iGM(mi=e.CRH())&&(Mi.numericInput=mi.first)}},inputs:{size:"size"},features:[e.qOj],decls:4,vars:18,consts:[[3,"ngClass"],["kendoPagerFocusable","","format","n0",3,"spinners","decimals","size","disabled","value","min","max","autoCorrect","title","kendoEventsOutsideAngular"]],template:function(nn,Mi){1&nn&&(e.TgZ(0,"span",0),e._uU(1),e._UZ(2,"kendo-numerictextbox",1),e._uU(3),e.qZA()),2&nn&&(e.Q6J("ngClass",e.DdM(14,I)),e.xp6(1),e.hij(" ",Mi.textFor("page")," "),e.xp6(1),e.Q6J("spinners",!1)("decimals",0)("size",Mi.size)("disabled",!Mi.hasPages)("value",Mi.current)("min",Mi.hasPages?1:0)("max",Mi.totalPages)("autoCorrect",!0)("title",Mi.textFor("pageNumberInputTitle"))("kendoEventsOutsideAngular",e.WLB(15,L,Mi.handleKeyDown,Mi.handleBlur)),e.xp6(1),e.AsE(" ",Mi.textFor("of")," ",Mi.totalPages," "))},dependencies:[_.Uw,A.mk,Te,s.nV],encapsulation:2}),fn})(),Ut=(()=>{class fn extends j{constructor(nn,Mi,mi){super(nn,mi,Mi),this.pagerContext=mi}get maxItems(){return Math.min(this.currentPage*this.pageSize,this.total)}get currentPageText(){return this.total?(this.currentPage-1)*this.pageSize+1:0}get classes(){return!0}onChanges({total:nn,skip:Mi,pageSize:mi}){this.total=nn,this.skip=Mi,this.pageSize=mi,this.cd.markForCheck()}}return fn.\u0275fac=function(nn){return new(nn||fn)(e.Y36(n.oQ),e.Y36(e.sBO),e.Y36(te))},fn.\u0275cmp=e.Xpm({type:fn,selectors:[["kendo-datapager-info"]],hostVars:2,hostBindings:function(nn,Mi){2&nn&&e.ekj("k-pager-info",Mi.classes)},features:[e.qOj],decls:1,vars:5,template:function(nn,Mi){1&nn&&e._uU(0),2&nn&&e.xDo("",Mi.currentPageText," - ",Mi.maxItems," ",Mi.textFor("of")," ",Mi.total," ",Mi.textFor("items"),"")},encapsulation:2,changeDetection:0}),fn})();const An={name:"@progress/kendo-angular-pager",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1694533067,version:"13.5.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};let mt=(()=>{class fn{constructor(nn,Mi,mi,Eo,Ko,xo){this.pagerContext=nn,this.element=Mi,this.localization=mi,this.renderer=Eo,this.ngZone=Ko,this.navigationService=xo,this.total=0,this.skip=0,this.buttonCount=10,this.info=!0,this.type="numeric",this.previousNext=!0,this.pageChange=new e.vpe,this.pageSizeChange=new e.vpe,this.pagerClass=!0,this.widgetRole="application",this.roleDescription="pager",this.keyShortcuts="Enter ArrowRight ArrowLeft",this.hostTabindex="0",this.subscriptions=new a.w0,this._templateContext={},this._pageSizeValues=H,this.isInnerNavigationEnabled=!1,this._navigable=!1,this._size=ne,this.resizeHandler=()=>{if(this.template?.first)return;const Bn=this.element.nativeElement.offsetWidth;this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{if(this.numericButtons){const Xt=this.numericButtons.selectElement.nativeElement,Ji=this.numericButtons.numbersElement.nativeElement;this.renderer.removeStyle(Ji,"display"),this.renderer.setStyle(Xt,"display","none"),Bn<600&&(this.renderer.removeStyle(Xt,"display"),this.renderer.setStyle(Ji,"display","none"))}this.pagerInfo&&(this.renderer.removeStyle(this.pagerInfo.nativeElement,"display"),Bn<768&&this.renderer.setStyle(this.pagerInfo.nativeElement,"display","none")),this.pagerPageSizes&&(this.renderer.removeStyle(this.pagerPageSizes.nativeElement,"display"),Bn<600&&this.renderer.setStyle(this.pagerPageSizes.nativeElement,"display","none"))})})},(0,C.s)(An),this.direction=mi.rtl?"rtl":"ltr"}set pageSizeValues(nn){this._pageSizeValues=Array.isArray(nn)?nn:!!nn&&H}get pageSizeValues(){return this._pageSizeValues}set navigable(nn){this._navigable=nn,this.navigationService.isNavigable=nn}get navigable(){return this._navigable}set size(nn){const Mi=nn||ne;this.handleClasses(Mi,"size"),this._size=Mi}get size(){return this._size}get dir(){return this.direction}focusHandler(nn){this.navigationService.toggleInnerNavigation(nn.target!==this.element.nativeElement)}get totalPages(){return Math.ceil((this.total||0)/this.pageSize)}get currentPage(){return Math.floor((this.skip||0)/this.pageSize)+1}get templateContext(){const nn=this._templateContext;return nn.totalPages=this.totalPages,nn.total=this.total,nn.skip=this.skip,nn.pageSize=this.pageSize,nn.currentPage=this.currentPage,nn}ngOnInit(){if(this.subscriptions.add(this.pagerContext.pageChange.subscribe(this.changePage.bind(this))),this.subscriptions.add(this.pagerContext.pageSizeChange.subscribe(this.changePageSize.bind(this))),this.subscriptions.add(this.resizeSensor.resize.subscribe(()=>this.resizeHandler())),this.subscriptions.add(this.localization.changes.subscribe(({rtl:nn})=>{this.direction=nn?"rtl":"ltr"})),this.subscriptions.add(this.navigationService.innerNavigationChange.subscribe(this.innerNavigationChange.bind(this))),this.navigable){const nn=this.element.nativeElement;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(nn,"keydown",this.keyDownHandler.bind(this)))})}}ngAfterViewInit(){this.resizeHandler(),this.renderer.setAttribute(this.element.nativeElement,"aria-label",this.ariaLabel),this.subscriptions.add(this.template.changes.subscribe(()=>{this.resizeHandler()})),this.handleClasses(this.size,"size")}ngOnChanges(nn){(0,s.aG)(["pageSize","skip","total"],nn,!1)&&(this.pagerContext.notifyChanges({pageSize:this.pageSize,skip:this.skip,total:this.total}),this.renderer.setAttribute(this.element.nativeElement,"aria-label",this.ariaLabel))}ngOnDestroy(){this.subscriptions.unsubscribe()}changePage(nn){this.pageChange.emit(nn)}changePageSize(nn){this.pageSizeChange.emit(nn),nn.isDefaultPrevented()||this.pageChange.emit("all"===nn.newPageSize?{skip:0,take:this.total}:{skip:0,take:nn.newPageSize})}onPageSizeChange(nn){this.pageSizeChange.emit(nn),nn.isDefaultPrevented()||this.pageChange.emit({skip:this.skip,take:nn.newPageSize})}textFor(nn){return this.localization.get(nn)}get ariaLabel(){return`${this.textFor("page")} ${this.currentPage} ${this.textFor("of")} ${this.totalPages}`}keyDownHandler(nn){const Mi=nn.target,mi=this.element.nativeElement,Eo=nn.keyCode===s.R8.ArrowLeft||nn.keyCode===s.R8.PageUp,Ko=nn.keyCode===s.R8.ArrowRight||nn.keyCode===s.R8.PageDown,xo=nn.keyCode===s.R8.Enter,Bn=nn.keyCode===s.R8.Home,Xt=nn.keyCode===s.R8.End,Ji=nn.keyCode===s.R8.Escape,En=nn.keyCode===s.R8.Tab,un=1===this.currentPage,Ki=this.currentPage===this.totalPages;this.ngZone.run(()=>{if(Bn)nn.preventDefault(),!un&&this.pagerContext.changePage(0);else if(Xt)nn.preventDefault(),!Ki&&this.pagerContext.changePage(this.totalPages-1);else if(this.isInnerNavigationEnabled)Ji?(this.navigationService.toggleInnerNavigation(!1),mi.focus()):En&&this.navigationService.keepFocusWithinComponent(mi,Mi,nn);else if(Eo)nn.preventDefault(),!un&&this.pagerContext.prevPage();else if(Ko)nn.preventDefault(),!Ki&&this.pagerContext.nextPage();else if(xo){if(nn.target!==mi)return;nn.preventDefault();const[Fn]=this.navigationService.getFirstAndLastFocusable(mi);this.navigationService.toggleInnerNavigation(!0),Fn?.focus()}})}innerNavigationChange(nn){this.isInnerNavigationEnabled=nn}handleClasses(nn,Mi){const mi=this.element.nativeElement,Eo=ge("pager",Mi,this[Mi],nn);Eo.toRemove&&this.renderer.removeClass(mi,Eo.toRemove),Eo.toAdd&&this.renderer.addClass(mi,Eo.toAdd)}}return fn.\u0275fac=function(nn){return new(nn||fn)(e.Y36(te),e.Y36(e.SBq),e.Y36(n.oQ),e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(Ce))},fn.\u0275cmp=e.Xpm({type:fn,selectors:[["kendo-datapager"]],contentQueries:function(nn,Mi,mi){if(1&nn&&e.Suo(mi,xe,4),2&nn){let Eo;e.iGM(Eo=e.CRH())&&(Mi.template=Eo)}},viewQuery:function(nn,Mi){if(1&nn&&(e.Gf(s.NG,7),e.Gf(Ut,5,e.SBq),e.Gf(fe,5,e.SBq),e.Gf(Oe,5)),2&nn){let mi;e.iGM(mi=e.CRH())&&(Mi.resizeSensor=mi.first),e.iGM(mi=e.CRH())&&(Mi.pagerInfo=mi.first),e.iGM(mi=e.CRH())&&(Mi.pagerPageSizes=mi.first),e.iGM(mi=e.CRH())&&(Mi.numericButtons=mi.first)}},hostVars:7,hostBindings:function(nn,Mi){1&nn&&e.NdJ("focusin",function(Eo){return Mi.focusHandler(Eo)}),2&nn&&(e.uIk("role",Mi.widgetRole)("aria-roledescription",Mi.roleDescription)("aria-keyshortcuts",Mi.keyShortcuts)("tabindex",Mi.hostTabindex)("dir",Mi.dir),e.ekj("k-pager",Mi.pagerClass))},inputs:{total:"total",skip:"skip",pageSize:"pageSize",buttonCount:"buttonCount",info:"info",type:"type",pageSizeValues:"pageSizeValues",previousNext:"previousNext",navigable:"navigable",size:"size"},outputs:{pageChange:"pageChange",pageSizeChange:"pageSizeChange"},exportAs:["kendoDataPager"],features:[e._Bn([n.oQ,te,Ce]),e.TTD],decls:4,vars:2,consts:function(){let yi,nn,Mi,mi,Eo,Ko,xo,Bn,Xt,Ji,En;return yi=$localize`:kendo.pager.firstPage|The label for the first page button in the Pager:Go to the first page`,nn=$localize`:kendo.pager.previousPage|The label for the previous page button in the Pager:Go to the previous page`,Mi=$localize`:kendo.pager.nextPage|The label for the next page button in the Pager:Go to the next page`,mi=$localize`:kendo.pager.lastPage|The label for the last page button in the Pager:Go to the last page`,Eo=$localize`:kendo.pager.page|The label before the current page number in the Pager:Page`,Ko=$localize`:kendo.pager.of|The label before the total pages number in the Pager:of`,xo=$localize`:kendo.pager.pageNumberInputTitle|The label for the pager input in the Pager:Page Number`,Bn=$localize`:kendo.pager.items|The label after the total pages number in the Pager:items`,Xt=$localize`:kendo.pager.itemsPerPage|The label for the page size chooser in the Pager:items per page`,Ji=$localize`:kendo.pager.selectPage|The text of the title and aria-label attributes applied to the page chooser in the Pager:Select page`,En=$localize`:kendo.pager.inputLabel|The text of the aria-label attribute applied to the input element for entering the page number.:Type a page number`,[["kendoDataPagerLocalizedMessages","","firstPage",yi,"previousPage",nn,"nextPage",Mi,"lastPage",mi,"page",Eo,"of",Ko,"pageNumberInputTitle",xo,"items",Bn,"itemsPerPage",Xt,"selectPage",Ji,"inputLabel",En],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-pager-numbers-wrap"],[3,"size",4,"ngIf"],[3,"size","buttonCount",4,"ngIf"],[3,"size","pageSizes",4,"ngIf"],[3,"size"],[3,"size","buttonCount"],[3,"size","pageSizes"]]},template:function(nn,Mi){1&nn&&(e.GkF(0,0),e.YNc(1,D,1,2,"ng-container",1),e.YNc(2,X,8,6,"ng-container",2),e._UZ(3,"kendo-resize-sensor")),2&nn&&(e.xp6(1),e.Q6J("ngIf",null==Mi.template.first?null:Mi.template.first.templateRef),e.xp6(1),e.Q6J("ngIf",!(null!=Mi.template&&null!=Mi.template.first&&Mi.template.first.templateRef)))},dependencies:[De,Oe,Gt,Le,fe,Ut,s.NG,de,A.O5,A.tP],encapsulation:2}),fn})();const ut=[A.ez,_.Ln,d.g9,u.Fq,s.OY,s.uv],dn=[{provide:n.mM,useValue:"kendo.pager"}];let sn=(()=>{class fn{static exports(){return[mt,De,Le,Oe,Gt,Ut,fe,xe]}}return fn.\u0275fac=function(nn){return new(nn||fn)},fn.\u0275mod=e.oAB({type:fn}),fn.\u0275inj=e.cJS({providers:[dn],imports:[[...ut]]}),fn})()},83244:(he,y,i)=>{"use strict";i.d(y,{Ik:()=>R,T5:()=>f,ge:()=>_,rs:()=>s});var e=i(65879),n=i(77046),o=i(14295),a=i(9890),l=i(12624);const u=["*"],d={name:"@progress/kendo-angular-pdf-export",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1694532807,version:"13.5.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};let s=(()=>{class k{constructor(g){this.templateRef=g}}return k.\u0275fac=function(g){return new(g||k)(e.Y36(e.Rgc,8))},k.\u0275dir=e.lG2({type:k,selectors:[["","kendoPDFTemplate",""]]}),k})();const A=["bottom","left","right","top"];let _=(()=>{class k{get options(){const g={};for(let M=0;M<A.length;M++){const p=A[M],E=this[p];typeof E<"u"&&(g[p]=E)}return g}}return k.\u0275fac=function(g){return new(g||k)},k.\u0275cmp=e.Xpm({type:k,selectors:[["kendo-pdf-export-margin"]],inputs:{left:"left",top:"top",right:"right",bottom:"bottom"},decls:0,vars:0,template:function(g,M){},encapsulation:2}),k})(),R=(()=>{class k{constructor(g){this.element=g,this.creator="Kendo UI PDF Generator",this.fileName="export.pdf",(0,l.s)(d)}get drawMargin(){const g=this.marginComponent;let M=this.margin;return g&&(M=Object.assign(M||{},g.options)),M}saveAs(g=this.fileName){this.save(this.element.nativeElement,g)}export(){return this.exportElement(this.element.nativeElement)}save(g,M){this.exportElement(g).then(p=>this.exportGroup(p,this.pdfOptions())).then(p=>this.saveDataUri(p,M,this.saveOptions()))}exportElement(g){const M=this.drawElement(g,this.drawOptions()),p=this.cleanup.bind(this);return M.then(p,p),M}cleanup(){this.pageTemplate&&(this.pageTemplate.destroy(),delete this.pageTemplate)}drawOptions(){return this.pageTemplateDirective&&(this.pageTemplate=(k=>{const w={};let g=this.pageTemplateDirective.templateRef.createEmbeddedView(w);const M=p=>{Object.assign(w,p),g.detectChanges();const E=document.createElement("span");return g.rootNodes.forEach(b=>{E.appendChild(b.cloneNode(!0))}),E};return M.destroy=()=>{g.destroy(),g=null},M})()),{avoidLinks:this.avoidLinks,forcePageBreak:this.forcePageBreak,keepTogether:this.keepTogether,margin:this.drawMargin,paperSize:this.paperSize,landscape:this.landscape,repeatHeaders:this.repeatHeaders,scale:this.scale,template:this.pageTemplate}}pdfOptions(){return{autoPrint:this.autoPrint,author:this.author,creator:this.creator,date:this.date,imgDPI:this.imageResolution,keywords:this.keywords,landscape:this.landscape,margin:this.drawMargin,multiPage:!0,paperSize:this.paperSize,producer:this.producer,subject:this.subject,title:this.title}}saveOptions(){return{forceProxy:this.forceProxy,proxyData:this.proxyData,proxyTarget:this.proxyTarget,proxyURL:this.proxyURL}}drawElement(g,M){return(0,n.Vg)(g,M)}exportGroup(g,M){return(0,o.F_)(g,M)}saveDataUri(g,M,p){(0,a.p)(g,M,p)}}return k.\u0275fac=function(g){return new(g||k)(e.Y36(e.SBq))},k.\u0275cmp=e.Xpm({type:k,selectors:[["kendo-pdf-export"]],contentQueries:function(g,M,p){if(1&g&&(e.Suo(p,s,5),e.Suo(p,_,5)),2&g){let E;e.iGM(E=e.CRH())&&(M.pageTemplateDirective=E.first),e.iGM(E=e.CRH())&&(M.marginComponent=E.first)}},inputs:{autoPrint:"autoPrint",author:"author",avoidLinks:"avoidLinks",forcePageBreak:"forcePageBreak",keepTogether:"keepTogether",creator:"creator",date:"date",imageResolution:"imageResolution",fileName:"fileName",forceProxy:"forceProxy",keywords:"keywords",landscape:"landscape",margin:"margin",paperSize:"paperSize",repeatHeaders:"repeatHeaders",scale:"scale",proxyData:"proxyData",proxyURL:"proxyURL",proxyTarget:"proxyTarget",producer:"producer",subject:"subject",title:"title"},ngContentSelectors:u,decls:2,vars:0,template:function(g,M){1&g&&(e.F$t(),e.TgZ(0,"div"),e.Hsn(1),e.qZA())},encapsulation:2}),k})(),f=(()=>{class k{}return k.\u0275fac=function(g){return new(g||k)},k.\u0275mod=e.oAB({type:k}),k.\u0275inj=e.cJS({}),k})()},9237:(he,y,i)=>{"use strict";i.d(y,{Zj:()=>An,qL:()=>Gt,sG:()=>Le});var e=i(65879),n=i(90438),o=i(3201),a=i(92438),l=i(63019),u=i(72664),d=i(29028),s=i(86825),A=i(12624),_=i(96814);const C=["container"];function R($n,xn){}const x=["*"],f=($n,xn)=>$n||{height:0,left:xn.left,top:xn.top,width:0},M=()=>typeof window<"u",E=/auto|scroll/,L=$n=>($n=>`${$n.style.overflow}${$n.style.overflowX}${$n.style.overflowY}`)($n)||($n=>{const xn=window.getComputedStyle($n);return`${xn.overflow}${xn.overflowX}${xn.overflowY}`})($n),F=1e3/60,O=function P($n){let xn,mt=!1;return(...ut)=>(mt||(xn=$n(...ut),mt=!0),xn)}(()=>{if(!(0,o.X_)()&&null!==document.body)return!1;const xn=document.createElement("div");xn.style.transform="matrix(10, 0, 0, 10, 0, 0)";const mt=document.createElement("div");mt.style.position="fixed",mt.style.top="10px",mt.textContent="child",xn.appendChild(mt),document.body.appendChild(xn);const ut=10!==xn.children[0].getBoundingClientRect().top;return document.body.removeChild(xn),ut}),V=($n,xn)=>$n&&1!==xn?{height:$n.height/xn,left:$n.left/xn,top:$n.top/xn,width:$n.width/xn}:$n,K=["font-size","font-family","font-stretch","font-style","font-weight","line-height"];let X=(()=>{class $n{addOffset(mt,ut){return{left:mt.left+ut.left,top:mt.top+ut.top}}addScroll(mt,ut){return(0,n.qg)(mt,ut)}align(mt){return(0,n.AJ)(mt)}boundingOffset(mt){return(0,n.w5)(mt)}getFontStyles(mt){const ut=this.getWindow();if(!ut||!mt)return[];const Wt=ut.getComputedStyle(mt);return K.map(dn=>({key:dn,value:Wt[dn]}))}getWindow(){return M()?window:null}hasOffsetParent(mt){return!(!mt||!(0,o.X_)()||!this.nativeElement(mt).offsetParent)}offset(mt){return mt&&(0,o.X_)()?(0,n.cv)(mt):null}offsetAtPoint(mt,ut){if(!mt||!(0,o.X_)())return null;const Wt=this.nativeElement(mt),{left:dn,top:sn,transition:fn}=Wt.style;Wt.style.transition="none",Wt.style.left=`${ut.left}px`,Wt.style.top=`${ut.top}px`;const yi=(0,n.cv)(Wt);return Wt.style.left=dn,Wt.style.top=sn,this._dummy=Wt.offsetHeight,Wt.style.transition=fn,yi}nativeElement(mt){return mt&&(0,o.X_)()?mt.nativeElement||mt:null}position(mt,ut,Wt=1){return mt&&ut?(0,n.Wl)(mt,this.nativeElement(ut),Wt):null}removeScroll(mt,ut){return(0,n.aF)(mt,ut)}restrictToView(mt){return(0,n.Lz)(mt)}scrollPosition(mt){return(0,n.on)(this.nativeElement(mt))}scrollableParents(mt){return($n=>{const xn=[];if(!(0,o.X_)()||!M())return xn;let mt=$n.parentElement;for(;mt;)(E.test(L(mt))||mt.hasAttribute("data-scrollable"))&&xn.push(mt),mt=mt.parentElement;return xn.push(window),xn})(mt)}stackingElementOffset(mt){const ut=this.getRelativeContextElement(mt);return ut?(0,n.cv)(ut):null}stackingElementScroll(mt){const ut=this.getRelativeContextElement(mt);return ut?{x:ut.scrollLeft,y:ut.scrollTop}:{x:0,y:0}}getRelativeContextElement(mt){if(!mt||!O())return null;let ut=this.nativeElement(mt).parentElement;for(;ut;){if("none"!==window.getComputedStyle(ut).transform)return ut;ut=ut.parentElement}return null}useRelativePosition(mt){return!!this.getRelativeContextElement(mt)}windowViewPort(mt){return(0,n.qS)(this.nativeElement(mt))}zIndex(mt,ut){return(($n,xn)=>{if(!$n||!(0,o.X_)()||!M())return null;const mt=(0,n.VM)($n,xn);if(!mt)return null;const ut=[$n].concat((0,n.wV)($n,mt)).reduce((Wt,dn)=>{const sn=dn.style.zIndex||window.getComputedStyle(dn).zIndex,fn=parseInt(sn,10);return fn>Wt?fn:Wt},0);return ut?ut+1:null})(mt,this.nativeElement(ut))}zoomLevel(){return(0,o.X_)()&&M()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1}isZoomed(){return this.zoomLevel()>1}}return $n.\u0275fac=function(mt){return new(mt||$n)},$n.\u0275prov=e.Yz7({token:$n,factory:$n.\u0275fac}),$n})();const me=new e.OlP("Popup Document Scale");let J=(()=>{class $n{constructor(mt,ut=1){this._dom=mt,this.scale=ut}alignElement(mt){const{anchor:ut,element:Wt,anchorAlign:dn,elementAlign:sn,margin:fn,offset:yi,positionMode:nn}=mt,Mi=this.scale||1,Eo="fixed"!==nn&&this._dom.hasOffsetParent(Wt)?this.relativeRect(ut,Wt,yi,Mi):this.absoluteRect(ut,Wt,yi,Mi),Ko=V(this._dom.offset(Wt.nativeElement),Mi);return this._dom.align({anchorAlign:dn,anchorRect:Eo,elementAlign:sn,elementRect:Ko,margin:fn})}absoluteRect(mt,ut,Wt,dn){const sn=this.elementScrollPosition(mt,ut),fn=f(this._dom.offset(mt),Wt),yi=2*dn,nn=this._dom.stackingElementScroll(ut);1!==dn&&nn&&(nn.x/=yi,nn.y/=yi);const Mi=this._dom.stackingElementOffset(ut);return 1!==dn&&Mi&&(Mi.left/=yi,Mi.top/=yi),this._dom.removeScroll(this._dom.addScroll((($n,xn)=>xn?{height:$n.height,left:$n.left-xn.left,top:$n.top-xn.top,width:$n.width}:$n)(V(fn,dn),Mi),nn),sn)}elementScrollPosition(mt,ut){return mt?{x:0,y:0}:this._dom.scrollPosition(ut)}relativeRect(mt,ut,Wt,dn){const sn=f(this._dom.position(mt,ut,dn),Wt);return V(sn,dn)}}return $n.\u0275fac=function(mt){return new(mt||$n)(e.LFG(X),e.LFG(me,8))},$n.\u0275prov=e.Yz7({token:$n,factory:$n.\u0275fac}),$n})(),Q=(()=>{class $n{constructor(mt,ut=1){this._dom=mt,this.scale=ut}positionElement(mt){const{anchor:ut,currentLocation:Wt,element:dn,anchorAlign:sn,elementAlign:fn,collisions:yi,margin:nn}=mt,Mi=this._dom,mi=this.scale||1,Eo=Mi.offsetAtPoint(dn,Wt),Ko=V(Eo,mi),xo=V(Mi.offset(ut),mi),Bn=f(xo,Wt),Xt=mt.viewPort||Mi.windowViewPort(dn);Xt.width=Xt.width/mi,Xt.height=Xt.height/mi;const Ji=Mi.restrictToView({anchorAlign:sn,anchorRect:Bn,collisions:yi,elementAlign:fn,elementRect:Ko,margin:nn,viewPort:Xt}),En=Mi.addOffset(Wt,Ji.offset);return{flip:Ji.flip,flipped:Ji.flipped,offset:En}}}return $n.\u0275fac=function(mt){return new(mt||$n)(e.LFG(X),e.LFG(me,8))},$n.\u0275prov=e.Yz7({token:$n,factory:$n.\u0275fac}),$n})(),re=(()=>{class $n{constructor(mt,ut){this._dom=mt,this._zone=ut}subscribe(mt){(0,o.X_)()&&this._zone.runOutsideAngular(()=>{this.subscription=(0,a.R)(this._dom.getWindow(),"resize").pipe((0,d.e)(F)).subscribe(()=>mt())})}unsubscribe(){this.subscription&&this.subscription.unsubscribe()}isUnsubscribed(){return this.subscription&&this.subscription.closed}}return $n.\u0275fac=function(mt){return new(mt||$n)(e.LFG(X),e.LFG(e.R0b))},$n.\u0275prov=e.Yz7({token:$n,factory:$n.\u0275fac}),$n})(),te=(()=>{class $n{constructor(mt,ut){this._dom=mt,this._zone=ut}forElement(mt){return this.unsubscribe(),this.element=mt,this}subscribe(mt){if(!mt||!(0,o.X_)()||!this.element)return;const ut=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular(()=>{const Wt=ut.map(sn=>(0,a.R)(sn,"scroll").pipe((0,d.e)(F)));this.subscription=(0,l.T)(...Wt).subscribe(sn=>{const fn=sn.target;(ut.filter(mi=>mi===fn).length>0||fn===document||fn===window)&&mt(this.isVisible(this.element,fn))})})}unsubscribe(){this.subscription&&this.subscription.unsubscribe()}isVisible(mt,ut){const Wt=this._dom.boundingOffset(mt),dn=this._dom.boundingOffset(this._dom.nativeElement(ut));return!(1<dn.top-Wt.bottom||1<Wt.top-dn.bottom||1<Wt.left-dn.right||1<dn.left-Wt.right)}}return $n.\u0275fac=function(mt){return new(mt||$n)(e.LFG(X),e.LFG(e.R0b))},$n.\u0275prov=e.Yz7({token:$n,factory:$n.\u0275fac}),$n})();const j="left",H="right",z="down",q="up",_e={expand:$n=>{const xn=$n===q||$n===z?"scaleY":"scaleX";let Wt;return Wt=$n===z?"top":$n===j?H:$n===H?j:"bottom",{start:{transform:`${xn}(0)`,transformOrigin:Wt},end:{transform:`${xn}(1)`}}},slide:$n=>{const xn=$n===j||$n===H?"translateX":"translateY";return{start:{transform:`${xn}(${$n===H||$n===z?-100:100}%)`},end:{transform:`${xn}(0%)`}}},fade:()=>({start:{opacity:0},end:{opacity:1}}),zoom:()=>({start:{transform:"scale(0)"},end:{transform:"scale(1)"}})};let ge=(()=>{class $n{constructor(mt){this.animationBuilder=mt,this.start=new e.vpe,this.end=new e.vpe}play(mt,ut,Wt){if(!this.flip||this.flip.horizontal!==Wt.horizontal||this.flip.vertical!==Wt.vertical){this.flip=Wt;const dn=ut.type||"slide",sn=_e[dn];if(sn){const yi=sn(this.getDirection(Wt,ut));this.playStates(mt,yi,ut)}else if((0,e.X6Q)())throw new Error(`Unsupported animation type: "${dn}". The supported types are slide, expand, fade and zoom.`)}}ngOnDestroy(){this.stopPlayer()}playStates(mt,ut,Wt){this.stopPlayer();const dn=Wt.duration||100,sn=this.animationBuilder.build([(0,s.oB)(ut.start),(0,s.jt)(`${dn}ms ease-in`,(0,s.oB)(ut.end))]),fn=this.player=sn.create(mt);fn.onDone(()=>{this.end.emit(),this.stopPlayer()}),this.start.emit(),fn.play()}getDirection(mt,ut){let Wt=ut.direction||z;return mt.horizontal&&(Wt===j?Wt=H:Wt===H&&(Wt=j)),mt.vertical&&(Wt===z?Wt=q:Wt===q&&(Wt=z)),Wt}stopPlayer(){this.player&&(this.player.destroy(),this.player=null)}}return $n.\u0275fac=function(mt){return new(mt||$n)(e.LFG(s._j))},$n.\u0275prov=e.Yz7({token:$n,factory:$n.\u0275fac}),$n})();const Ce={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1694532801,version:"13.5.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},Te={left:-1e4,top:0};let xe=(()=>{class $n{constructor(mt,ut,Wt,dn,sn,fn,yi,nn,Mi){this.container=mt,this._alignService=ut,this.domService=Wt,this._positionService=dn,this._resizeService=sn,this._scrollableService=fn,this.animationService=yi,this._renderer=nn,this._zone=Mi,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=Te,this.anchorViewportLeave=new e.vpe,this.close=new e.vpe,this.open=new e.vpe,this.positionChange=new e.vpe,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,(0,A.s)(Ce),this._renderer.addClass(mt.nativeElement,"k-animation-container"),this.updateFixedClass()}ngOnInit(){this.reposition=this.reposition.bind(this),this._resizeService.subscribe(this.reposition),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.domService.nativeElement(this.anchor)||this.container.nativeElement).subscribe(this.onScroll.bind(this)),this.currentOffset=Te,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass(),this.reposition()}ngOnChanges(mt){mt.copyAnchorStyles&&this.copyFontStyles(),mt.positionMode&&this.updateFixedClass()}ngAfterViewInit(){this.animate||this.resolvedPromise.then(()=>{this.onAnimationEnd()}),this.reposition()}ngAfterViewChecked(){this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular(()=>{this.unsubscribeReposition(),this.repositionSubscription=(0,u.D)(this.resolvedPromise).subscribe(this.reposition)})}ngOnDestroy(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()}onResize(){this.reposition()}onAnimationStart(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")}onAnimationEnd(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()}get currentOffset(){return this._currentOffset}set currentOffset(mt){this.setContainerStyle("left",`${mt.left}px`),this.setContainerStyle("top",`${mt.top}px`),this._currentOffset=mt}setZIndex(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.domService.nativeElement(this.anchor),this.container)))}reposition(){if(!(0,o.X_)())return;const{flip:mt,offset:ut}=this.position();(!this.currentOffset||(($n,xn)=>{const{left:mt,top:ut}=$n,{left:Wt,top:dn}=xn;return Math.abs(mt-Wt)>=1||Math.abs(ut-dn)>=1})(this.currentOffset,ut))&&(this.currentOffset=ut,(0,o.g$)(this.positionChange)&&this._zone.run(()=>this.positionChange.emit({offset:ut,flip:mt}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,mt),this.resizeSensor.acceptSize()}position(){const mt=this._alignService.alignElement({anchor:this.domService.nativeElement(this.anchor),anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.domService.nativeElement(this.anchor),anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:mt,element:this.container,elementAlign:this.popupAlign,margin:this.margin})}onScroll(mt){const ut=(0,o.g$)(this.anchorViewportLeave);mt||!ut?this.reposition():ut&&this._zone.run(()=>{this.anchorViewportLeave.emit()})}copyFontStyles(){!this.anchor||!this.copyAnchorStyles||this.domService.getFontStyles(this.domService.nativeElement(this.anchor)).forEach(mt=>this.setContainerStyle(mt.key,mt.value))}updateFixedClass(){this._renderer["fixed"===this.positionMode?"addClass":"removeClass"](this.container.nativeElement,"k-animation-container-fixed")}setContainerStyle(mt,ut){this._renderer.setStyle(this.container.nativeElement,mt,ut)}unsubscribeReposition(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()}}return $n.\u0275fac=function(mt){return new(mt||$n)(e.Y36(e.SBq),e.Y36(J),e.Y36(X),e.Y36(Q),e.Y36(re),e.Y36(te),e.Y36(ge),e.Y36(e.Qsj),e.Y36(e.R0b))},$n.\u0275cmp=e.Xpm({type:$n,selectors:[["kendo-popup"]],viewQuery:function(mt,ut){if(1&mt&&(e.Gf(C,7),e.Gf(o.NG,7)),2&mt){let Wt;e.iGM(Wt=e.CRH())&&(ut.contentContainer=Wt.first),e.iGM(Wt=e.CRH())&&(ut.resizeSensor=Wt.first)}},inputs:{animate:"animate",anchor:"anchor",anchorAlign:"anchorAlign",collision:"collision",popupAlign:"popupAlign",copyAnchorStyles:"copyAnchorStyles",popupClass:"popupClass",positionMode:"positionMode",offset:"offset",margin:"margin"},outputs:{anchorViewportLeave:"anchorViewportLeave",close:"close",open:"open",positionChange:"positionChange"},exportAs:["kendo-popup"],features:[e._Bn([J,ge,X,Q,re,te]),e.TTD],ngContentSelectors:x,decls:6,vars:4,consts:[[1,"k-child-animation-container"],[1,"k-popup",3,"ngClass"],["container",""],[3,"ngTemplateOutlet","ngIf"],[3,"rateLimit","resize"]],template:function(mt,ut){1&mt&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1,2),e.Hsn(3),e.YNc(4,R,0,0,"ng-template",3),e.TgZ(5,"kendo-resize-sensor",4),e.NdJ("resize",function(){return ut.onResize()}),e.qZA()()()),2&mt&&(e.xp6(1),e.Q6J("ngClass",ut.popupClass),e.xp6(3),e.Q6J("ngTemplateOutlet",ut.content)("ngIf",ut.content),e.xp6(1),e.Q6J("rateLimit",100))},dependencies:[o.NG,_.mk,_.tP,_.O5],encapsulation:2}),$n})();const Le=new e.OlP("Popup Container");let Gt=(()=>{class $n{constructor(mt,ut,Wt,dn){this.applicationRef=mt,this.componentFactoryResolver=ut,this.injector=Wt,this.container=dn}get rootViewContainer(){const mt=this.applicationRef.components||[];if(mt[0])return mt[0];throw new Error("\n            View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n            See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n        ")}get rootViewContainerNode(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)}open(mt={}){const{component:ut,nodes:Wt}=this.contentFrom(mt.content),dn=this.appendPopup(Wt,mt.appendTo),sn=dn.instance;this.projectComponentInputs(dn,mt),dn.changeDetectorRef.detectChanges(),ut&&ut.changeDetectorRef.detectChanges();const fn=this.getComponentRootNode(dn);return{close:()=>{ut&&ut.destroy(),dn.destroy(),($n=>{$n&&$n.parentNode&&$n.parentNode.removeChild($n)})(fn)},content:ut,popup:dn,popupAnchorViewportLeave:sn.anchorViewportLeave,popupClose:sn.close,popupElement:fn,popupOpen:sn.open,popupPositionChange:sn.positionChange}}appendPopup(mt,ut){const Wt=this.createComponent(xe,mt,ut);return ut||this.rootViewContainerNode.appendChild(this.getComponentRootNode(Wt)),Wt}getComponentRootNode(mt){return mt.location.nativeElement}getComponentFactory(mt){return this.componentFactoryResolver.resolveComponentFactory(mt)}createComponent(mt,ut,Wt){const dn=this.getComponentFactory(mt);if(Wt)return Wt.createComponent(dn,void 0,this.injector,ut);{const sn=dn.create(this.injector,ut);return this.applicationRef.attachView(sn.hostView),sn}}projectComponentInputs(mt,ut){return Object.getOwnPropertyNames(ut).filter(Wt=>"content"!==Wt||ut.content instanceof e.Rgc).map(Wt=>{mt.instance[Wt]=ut[Wt]}),mt}contentFrom(mt){if(!mt||mt instanceof e.Rgc)return{component:null,nodes:[[]]};const ut=this.createComponent(mt);return{component:ut,nodes:[ut?[ut.location.nativeElement]:[]]}}}return $n.\u0275fac=function(mt){return new(mt||$n)(e.LFG(e.z2F),e.LFG(e._Vd),e.LFG(e.zs3),e.LFG(Le,8))},$n.\u0275prov=e.Yz7({token:$n,factory:$n.\u0275fac}),$n})(),An=(()=>{class $n{}return $n.\u0275fac=function(mt){return new(mt||$n)},$n.\u0275mod=e.oAB({type:$n}),$n.\u0275inj=e.cJS({providers:[Gt],imports:[[_.ez,o.uv]]}),$n})()},32040:(he,y,i)=>{"use strict";i.d(y,{RI:()=>j,q7:()=>Ce});var e=i(58951),n=i(65879),o=i(12624),a=i(3201),l=i(96814);i(47394),i(48180);const s=["progressStatus"],A=["progressStatusWrap"];function _(Te,De){if(1&Te&&(n.TgZ(0,"span",7),n._uU(1),n.qZA()),2&Te){const fe=n.oxw();n.xp6(1),n.Oqu(fe.formattedLabelValue)}}function C(Te,De){if(1&Te&&(n.TgZ(0,"span",7),n._uU(1),n.qZA()),2&Te){const fe=n.oxw();n.xp6(1),n.Oqu(fe.formattedLabelValue)}}const p={name:"@progress/kendo-angular-progressbar",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1689688523,version:"13.2.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},F=(Te,De,fe)=>Math.max(Math.min(fe,De),Te),U=(Te,De,fe)=>Math.max((fe-Te)/(De-Te),1e-4),V=(Te,De,fe)=>Te[De]&&void 0!==Te[De].currentValue?Te[De].currentValue:fe;let re=(()=>{class Te{constructor(fe,xe,Oe){this.elem=fe,this.renderer=xe,this.localization=Oe,this.hostClasses=!0,this.roleAttribute="progressbar",this.max=100,this.min=0,this.value=0,this.orientation="horizontal",this.disabled=!1,this.reverse=!1,this.indeterminate=!1,this.displayValue=0,this.previousValue=0,(0,o.s)(p),this.localizationChangeSubscription=Oe.changes.subscribe(({rtl:Le})=>{this.direction=Le?"rtl":"ltr"})}get isHorizontal(){return"horizontal"===this.orientation}get isVertical(){return"vertical"===this.orientation}get disabledClass(){return this.disabled}get reverseClass(){return this.reverse}get indeterminateClass(){return this.indeterminate}get dirAttribute(){return this.direction}get ariaMinAttribute(){return String(this.min)}get ariaMaxAttribute(){return String(this.max)}get ariaValueAttribute(){return this.indeterminate?void 0:String(this.displayValue)}get isCompleted(){return this.value===this.max}get statusWidth(){return"horizontal"===this.orientation?100*this._progressRatio:100}get statusHeight(){return"vertical"===this.orientation?100*this._progressRatio:100}get statusWrapperWidth(){return"horizontal"===this.orientation?100/this._progressRatio:100}get statusWrapperHeight(){return"vertical"===this.orientation?100/this._progressRatio:100}get _progressRatio(){return U(this.min,this.max,this.displayValue)}ngAfterViewInit(){const fe=this.elem.nativeElement,xe=this.localization.get("progressBarLabel");this.renderer.setAttribute(fe,"aria-label",xe)}ngOnChanges(fe){const xe=V(fe,"min",this.min),Oe=V(fe,"max",this.max),Le=V(fe,"value",this.value);if(fe.min||fe.max||fe.value){if((fe.min||fe.max)&&((Te,De)=>{if(n.X6Q&&Te>De)throw new Error("The max value should be greater than the min.")})(xe,Oe),fe.value){(null==Le||Number.isNaN(Le))&&(this.value=xe);const Gt=this.displayValue;this.displayValue=F(this.min,this.max,Le),this.previousValue=Gt}this.min=xe,this.max=Oe,this.displayValue=F(this.min,this.max,Le)}}ngOnDestroy(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}}return Te.\u0275fac=function(fe){return new(fe||Te)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(e.oQ))},Te.\u0275cmp=n.Xpm({type:Te,selectors:[["ng-component"]],hostVars:17,hostBindings:function(fe,xe){2&fe&&(n.uIk("dir",xe.dirAttribute)("role",xe.roleAttribute)("aria-valuemin",xe.ariaMinAttribute)("aria-valuemax",xe.ariaMaxAttribute)("aria-valuenow",xe.ariaValueAttribute),n.ekj("k-progressbar",xe.hostClasses)("k-progressbar-horizontal",xe.isHorizontal)("k-progressbar-vertical",xe.isVertical)("k-disabled",xe.disabledClass)("k-progressbar-reverse",xe.reverseClass)("k-progressbar-indeterminate",xe.indeterminateClass))},inputs:{max:"max",min:"min",value:"value",orientation:"orientation",disabled:"disabled",reverse:"reverse",indeterminate:"indeterminate"},features:[n.TTD],decls:0,vars:0,template:function(fe,xe){},encapsulation:2}),Te})(),de=(()=>{class Te extends e.Z1{}return Te.\u0275fac=function(){let De;return function(xe){return(De||(De=n.n5z(Te)))(xe||Te)}}(),Te.\u0275dir=n.lG2({type:Te,inputs:{progressBarLabel:"progressBarLabel"},features:[n.qOj]}),Te})(),te=(()=>{class Te extends de{constructor(fe){super(),this.service=fe}}return Te.\u0275fac=function(fe){return new(fe||Te)(n.Y36(e.oQ))},Te.\u0275dir=n.lG2({type:Te,selectors:[["","kendoProgressBarLocalizedMessages",""]],features:[n._Bn([{provide:de,useExisting:(0,n.Gpc)(()=>Te)}]),n.qOj]}),Te})(),j=(()=>{class Te extends re{constructor(fe,xe,Oe,Le){super(xe,Oe,fe),this.localization=fe,this.elem=xe,this.renderer=Oe,this.zone=Le,this.label=!0,this.animation=!1,this.animationEnd=new n.vpe}get showLabel(){return"boolean"==typeof this.label?this.label:(this.label&&!this.label.hasOwnProperty("visible")&&(this.label.visible=!0),this.label.visible)}get labelPosition(){return"boolean"==typeof this.label?"end":(this.label&&!this.label.hasOwnProperty("position")&&(this.label.position="end"),this.label.position)}get isPositionStart(){return"start"===this.labelPosition}get isPositionCenter(){return"center"===this.labelPosition}get isPositionEnd(){return"end"===this.labelPosition}get formattedLabelValue(){return((Te,De,fe,xe)=>{const Oe=(Te=>{const De=Te.toString().split(".");return 1===De.length?`${De[0]}`:`${De[0]}.${De[1].substr(0,3)}`})(Te);if("boolean"!=typeof xe){if("string"!=typeof xe.format)return"function"==typeof xe.format?xe.format(Te):Oe;switch(xe.format){case"value":default:return Oe;case"percent":return`${Math.floor(((Te,De,fe)=>{const xe=Math.abs((fe-De)/100);return Math.abs((Te-De)/xe)})(Te,De,fe))}%`}}return Oe})(this.displayValue,this.min,this.max,this.label)}ngOnChanges(fe){super.ngOnChanges(fe),this.isAnimationInProgress&&(Te=>{const De=!!Te.animation;return De&&!(De&&Te.animation.currentValue)})(fe)&&(this.cancelCurrentAnimation=!0),((Te,De,fe,xe)=>this.animation&&typeof requestAnimationFrame<"u"&&Te.value&&this.previousValue!==this.displayValue)(fe)&&!fe.value.firstChange&&this.startAnimation(this.previousValue)}ngOnDestroy(){this.animationFrame&&cancelAnimationFrame(this.animationFrame)}startAnimation(fe){this.isAnimationInProgress=!0;const xe=this.progressStatusElement.nativeElement,Oe=this.progressStatusWrapperElement.nativeElement,Le=this.getAnimationOptions(fe);this.zone.runOutsideAngular(()=>{this.animationFrame&&cancelAnimationFrame(this.animationFrame);const Gt=()=>{const Ut=(new Date).getTime()-Le.startTime,An=Math.min(Ut/Le.duration,1),$n=Le.startSize+Le.deltaSize*An;if(this.renderValueChange(xe,Oe,Le.property,$n,100/$n*100),An<1){if(this.cancelCurrentAnimation)return void this.resetProgress(xe,Oe,Le.property);this.animationFrame=requestAnimationFrame(Gt)}else this.stopAnimation(fe)};Gt()})}get animationDuration(){return"boolean"==typeof this.animation?400:(this.animation&&!this.animation.hasOwnProperty("duration")&&(this.animation.duration=400),this.animation.duration)}stopAnimation(fe){(0,a.g$)(this.animationEnd)&&this.zone.run(()=>{this.animationEnd.emit({from:fe,to:this.displayValue})}),this.zone.run(()=>{this.isAnimationInProgress=!1})}getAnimationOptions(fe){const xe="horizontal"===this.orientation,Oe=U(this.min,this.max,fe),Le=xe?100*Oe:100,Gt=xe?100:100*Oe,Ut=xe?"width":"height",An=(new Date).getTime(),xn=xe?this.statusWidth-Le:this.statusHeight-Gt;return{property:Ut,startTime:An,startSize:xe?Le:Gt,deltaSize:xn,duration:this.animationDuration*Math.abs(xn/100)}}renderValueChange(fe,xe,Oe,Le,Gt){this.renderer.setStyle(fe,Oe,Le+"%"),this.renderer.setStyle(xe,Oe,Gt+"%")}resetProgress(fe,xe,Oe){const Le=U(this.min,this.max,this.value);this.renderValueChange(fe,xe,Oe,100*Le,100/Le),this.zone.run(()=>{this.cancelCurrentAnimation=!1,this.isAnimationInProgress=!1})}}return Te.\u0275fac=function(fe){return new(fe||Te)(n.Y36(e.oQ),n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(n.R0b))},Te.\u0275cmp=n.Xpm({type:Te,selectors:[["kendo-progressbar"]],viewQuery:function(fe,xe){if(1&fe&&(n.Gf(s,5),n.Gf(A,5)),2&fe){let Oe;n.iGM(Oe=n.CRH())&&(xe.progressStatusElement=Oe.first),n.iGM(Oe=n.CRH())&&(xe.progressStatusWrapperElement=Oe.first)}},inputs:{label:"label",progressCssStyle:"progressCssStyle",progressCssClass:"progressCssClass",emptyCssStyle:"emptyCssStyle",emptyCssClass:"emptyCssClass",animation:"animation"},outputs:{animationEnd:"animationEnd"},exportAs:["kendoProgressBar"],features:[n._Bn([e.oQ,{provide:e.mM,useValue:"kendo.progressbar"}]),n.qOj,n.TTD],decls:8,vars:28,consts:function(){let De;return De=$localize`:kendo.progressbar.progressBarLabel|The aria-label attribute for the ProgressBar component.:Progressbar`,[["kendoProgressBarLocalizedMessages","","progressBarLabel",De],[1,"k-progress-status-wrap",3,"ngStyle","ngClass"],["class","k-progress-status",4,"ngIf"],[1,"k-selected","k-progressbar-value",3,"ngStyle","ngClass"],["progressStatus",""],[1,"k-progress-status-wrap"],["progressStatusWrap",""],[1,"k-progress-status"]]},template:function(fe,xe){1&fe&&(n.GkF(0,0),n.TgZ(1,"span",1),n.YNc(2,_,2,1,"span",2),n.qZA(),n.TgZ(3,"div",3,4)(5,"span",5,6),n.YNc(7,C,2,1,"span",2),n.qZA()()),2&fe&&(n.xp6(1),n.ekj("k-progress-start",xe.isPositionStart)("k-progress-center",xe.isPositionCenter)("k-progress-end",xe.isPositionEnd),n.Q6J("ngStyle",xe.emptyCssStyle)("ngClass",xe.emptyCssClass),n.xp6(1),n.Q6J("ngIf",xe.showLabel),n.xp6(1),n.Udp("width",xe.statusWidth,"%")("height",xe.statusHeight,"%"),n.ekj("k-complete",xe.isCompleted),n.Q6J("ngStyle",xe.progressCssStyle)("ngClass",xe.progressCssClass),n.xp6(2),n.Udp("width",xe.statusWrapperWidth,"%")("height",xe.statusWrapperHeight,"%"),n.ekj("k-progress-start",xe.isPositionStart)("k-progress-center",xe.isPositionCenter)("k-progress-end",xe.isPositionEnd),n.xp6(2),n.Q6J("ngIf",xe.showLabel))},dependencies:[te,l.PC,l.mk,l.O5],encapsulation:2}),Te})();const ge=[l.ez,a.uv];let Ce=(()=>{class Te{}return Te.\u0275fac=function(fe){return new(fe||Te)},Te.\u0275mod=n.oAB({type:Te}),Te.\u0275inj=n.cJS({imports:[ge]}),Te})()},67415:(he,y,i)=>{"use strict";i.d(y,{wC:()=>rd,HW:()=>Jm,j8:()=>Et,O3:()=>xc,jy:()=>zp,Nx:()=>Yc,bP:()=>wf,DY:()=>Fe});var e={};i.r(e),i.d(e,{byHour:()=>xr,byMinute:()=>Nr,byMonth:()=>oo,byMonthDay:()=>Bi,bySecond:()=>as,byWeekDay:()=>or,byWeekNumber:()=>Lo,byYearDay:()=>Xo});var n=i(65879),o=i(58951),a=i(3201),l=i(77345),u=i(78016);const d=(Ee,at)=>!Ee&&!at||Ee&&at&&(0,u.X)((0,l._)(Ee),(0,l._)(at)),s={rules:{},titles:{},zones:{}};var _=i(17885),C=i(72089);const R={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11},x={Sun:0,Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6},k=(Ee,at,G)=>{const Ie=at[3],gn=at[4],Si=at[5];let zo;const _r="u"===Si[3]?6e4*-G:0;if(isNaN(gn)){if(0===gn.indexOf("last")){zo=new Date(Date.UTC(Ee,R[Ie]+1,1,Si[0]-24,Si[1],Si[2])+_r);const zr=x[gn.substr(4,3)],Lr=zo.getUTCDay();zo.setUTCDate(zo.getUTCDate()+zr-Lr-(zr>Lr?7:0))}else if(gn.indexOf(">=")>=0){zo=new Date(Date.UTC(Ee,R[Ie],gn.substr(5),Si[0],Si[1],Si[2],0)+_r);const zr=x[gn.substr(0,3)],Lr=zo.getUTCDay();zo.setUTCDate(zo.getUTCDate()+zr-Lr+(zr<Lr?7:0))}}else zo=new Date(Date.UTC(Ee,R[Ie],gn,Si[0],Si[1],Si[2])+_r);return zo},w=(new Date).getTime(),g=(Ee,at=w,G=0)=>{let Ie=s.rules[Ee];if(!Ie){const zo=Ee.split(":");let _r=0;return zo.length>1&&(_r=60*zo[0]+Number(zo[1])),[-1e6,"max","-","Jan",1,[0,0,0],_r,"-"]}const gn=new Date(at).getUTCFullYear();Ie=Ie.filter(zo=>{const _r=zo[0],zr=zo[1];return _r<=gn&&(zr>=gn||_r===gn&&"only"===zr||"max"===zr)}),Ie.push(at),Ie.sort((zo,_r)=>("number"!=typeof zo&&(zo=Number(k(gn,zo,G))),"number"!=typeof _r&&(_r=Number(k(gn,_r,G))),zo-_r));const Si=Ie[Ie.indexOf(at)-1]||Ie[Ie.length-1];return isNaN(Si)?Si:null},M="The required {0} timezone information is not provided!",E=/\{(\d+)}?\}/g,I=(Ee,...at)=>{const G=(Ee=>Ee.reduce((at,G)=>at.concat(G),[]))(at);return Ee.replace(E,(Ie,gn)=>G[parseInt(gn,10)])},F=(Ee,at)=>{const G=at.getTime(),Ie=((Ee,at=(new Date).getTime())=>{if("Etc/UTC"===Ee||"Etc/GMT"===Ee)return[0,"-","UTC",null];const G=(Ee=>{const at=s.zones;if(!at)throw new Error(I(M,Ee));const G=at[Ee],Ie="string"==typeof G?at[G]:G;if(!Ie)throw new Error(I(M,Ee));return Ie})(Ee);let Ie=G.length-1;for(;Ie>=0;Ie--){const Si=G[Ie][3];if(Si&&at>Si)break}const gn=G[Ie+1];if(!gn)throw new Error(I(M,Ee));return gn})(Ee,G);return{rule:g(Ie[1],G,Ie[0]),zone:Ie}},O=(Ee,at=new Date)=>{if("Etc/UTC"===Ee||"Etc/GMT"===Ee)return 0;if(""===Ee)return at.getTimezoneOffset();const{rule:G,zone:Ie}=F(Ee,at);return parseFloat(G?Ie[0]-G[6]:Ie[0])};function U(Ee){return new Date(Ee.getUTCFullYear(),Ee.getUTCMonth(),Ee.getUTCDate(),Ee.getUTCHours(),Ee.getUTCMinutes(),Ee.getUTCSeconds(),Ee.getUTCMilliseconds())}const V=(Ee,at)=>new Date(Ee.getTime()+at*_.X$),K=(Ee,at)=>new Date(Ee.getTime()+at*_.zq),X=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],me=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Q=(Ee,at=2)=>(Ee<0?"-":"")+new Array(at).concat([Math.abs(Ee)]).join("0").slice(-at);function re(Ee,at){const G=O(at,Ee),Ie=K(Ee,-1);return G<O(at,Ie)}function de(Ee,at){const G=re(Ee,at)?1:0;return K(Ee,G)}function te(Ee,at,G){if(at===G)return Ee;const Ie=O(at,Ee),gn=O(G,Ee),Si=Ie-gn,zo=V(Ee,Si),_r=O(G,zo);return V(Ee,Si+(gn-_r))}class H{get cachedLocalDate(){return this._localDate}get cachedUTCDate(){return this._utcDate}static fromLocalDate(at,G=""){const Ie=te(at,"Etc/UTC",G),gn=re(Ie,G),Si=O(G,Ie);let zo=0;gn&&(zo=Si>0?-1:1);const _r=K(Ie,zo);return H.fromUTCDate(_r,G)}static fromUTCDate(at,G=""){return new H(at,G)}toLocalDate(){return(0,C.k)(this._localDate)}toUTCDate(){return(0,C.k)(this._utcDate)}toTimezone(at){if(this.timezone===at)return this.clone();const G=O(this.timezone,this._utcDate),Ie=V(this._utcDate,G);return H.fromLocalDate(Ie,at)}clone(){return H.fromUTCDate(this._utcDate,this.timezone)}addDays(at){const G=new Date(this._utcDate.getTime());return G.setUTCDate(G.getUTCDate()+at),H.fromUTCDate(G,this.timezone)}addTime(at){const Ie=de(new Date(this._utcDate.getTime()),this.timezone);Ie.setTime(Ie.getTime()+at);const gn=de(Ie,this.timezone);return H.fromUTCDate(gn,this.timezone)}stripTime(){const at=this._utcDate,G=Date.UTC(at.getUTCFullYear(),at.getUTCMonth(),at.getUTCDate(),0,0,0);return H.fromUTCDate(new Date(G),this.timezone)}getTime(){return this._localDate.getTime()}getTimezoneOffset(){return this.timezoneOffset}getFullYear(){return this._utcDate.getUTCFullYear()}getMonth(){return this._utcDate.getUTCMonth()}getDate(){return this._utcDate.getUTCDate()}getDay(){return this._utcDate.getUTCDay()}getHours(){return this._utcDate.getUTCHours()}getMinutes(){return this._utcDate.getUTCMinutes()}getSeconds(){return this._utcDate.getUTCSeconds()}getMilliseconds(){return this._utcDate.getUTCMilliseconds()}getUTCDate(){return this._localDate.getUTCDate()}getUTCDay(){return this._localDate.getUTCDay()}getUTCFullYear(){return this._localDate.getUTCFullYear()}getUTCHours(){return this._localDate.getUTCHours()}getUTCMilliseconds(){return this._localDate.getUTCMilliseconds()}getUTCMinutes(){return this._localDate.getUTCMinutes()}getUTCMonth(){return this._localDate.getUTCMonth()}getUTCSeconds(){return this._localDate.getUTCSeconds()}setTime(at){throw new Error("Method not implemented.")}setMilliseconds(at){throw new Error("Method not implemented.")}setUTCMilliseconds(at){throw new Error("Method not implemented.")}setSeconds(at,G){throw new Error("Method not implemented.")}setUTCSeconds(at,G){throw new Error("Method not implemented.")}setMinutes(at,G,Ie){throw new Error("Method not implemented.")}setUTCMinutes(at,G,Ie){throw new Error("Method not implemented.")}setHours(at,G,Ie,gn){throw new Error("Method not implemented.")}setUTCHours(at,G,Ie,gn){throw new Error("Method not implemented.")}setDate(at){throw new Error("Method not implemented.")}setUTCDate(at){throw new Error("Method not implemented.")}setMonth(at,G){throw new Error("Method not implemented.")}setUTCMonth(at,G){throw new Error("Method not implemented.")}setFullYear(at,G,Ie){throw new Error("Method not implemented.")}setUTCFullYear(at,G,Ie){throw new Error("Method not implemented.")}toISOString(){return this._localDate.toISOString()}toJSON(){return this._localDate.toJSON()}toString(){const at=X[(Ee=this._utcDate).getUTCDay()]+" "+me[Ee.getUTCMonth()],G=this.toTimeString();var Ee;return`${at} ${this.getDate()} ${this.getFullYear()} ${G}`}toDateString(){return U(this._utcDate).toDateString()}toTimeString(){const gn=`${Q(this.getHours())}:${Q(this.getMinutes())}:${Q(this.getSeconds())}`,Si=function j(Ee){const at=Ee<=0?"+":"-",G=Math.abs(Ee);return`GMT${at}${Q(Math.floor(G/60))}${Q(G%60)}`}(this.timezoneOffset);let zo=((Ee,at=new Date)=>{if("Etc/UTC"===Ee)return"UTC";if("Etc/GMT"===Ee)return"GMT";if(""===Ee)return"";const{zone:G,rule:Ie}=F(Ee,at),gn=G[2];return gn.indexOf("/")>=0?gn.split("/")[Ie&&+Ie[6]?1:0]:gn.indexOf("%s")>=0?gn.replace("%s",Ie&&"-"!==Ie[7]?Ie[7]:""):gn})(this.timezone,this._utcDate);return zo&&(zo=` (${zo})`),`${gn} ${Si}${zo}`}toLocaleString(at,G){return this._localDate.toLocaleString(at,G)}toLocaleDateString(at,G){return this._localDate.toLocaleDateString(at,G)}toLocaleTimeString(at,G){return this._localDate.toLocaleTimeString(at,G)}toUTCString(){return this.toTimezone("Etc/UTC").toString()}[Symbol.toPrimitive](at){return"string"===at||"default"===at?this.toString():this._localDate.getTime()}valueOf(){return this.getTime()}getVarDate(){throw new Error("Not implemented.")}format(at){throw new Error("Not implemented.")}formatUTC(at){throw new Error("Not implemented.")}constructor(at,G){this._utcDate=(0,C.k)(at),this.timezone=G;const Ie=O(G,at);this.timezoneOffset=Ie;let gn=de(at,G);this._localDate=te(gn,G,"Etc/UTC")}}var z=i(17097),q=i(13073),se=i(78961);const ne=(Ee,at=z.J.Sunday)=>{const G=(0,C.k)(Ee);for(;G.getDay()!==at;)G.setDate(G.getDate()-1);return G};var _e=i(94450),ge=i(29028),Ce=i(79360),Te=i(72420),De=i(8251),fe=i(54829),Oe=i(32181),Le=i(37398),Gt=i(83620),Ut=i(48180),An=i(94664),$n=i(99397),mt=(i(93997),i(12624)),ut=i(54885),Wt=i(78645),dn=i(65619),sn=i(92438),fn=i(47394),yi=i(52572),nn=i(63019),Mi=i(56223),mi=i(93197),Eo=i(91918),Ko=i(9237),xo=i(73942),Bn=i(15735),Xt=i(96814),Ji=i(31486),En=i(80889),un=i(5954);const Ki=Ee=>Ee instanceof Array&&Ee.length>0,Fn=Ee=>Ki(Ee.bySecond)||Ki(Ee.byMinute)||Ki(Ee.byHour)||Ki(Ee.byYearDay)||Ki(Ee.byMonthDay)||Ki(Ee.byWeekDay)||Ki(Ee.byMonth)||Ki(Ee.byWeekNumber),oi=Ee=>{const at=Ee.split(";");let G=[],Ie=null;for(let gn=0;gn<at.length;gn++){const[Si,zo=""]=at[gn].split(":"),_r=Si.indexOf("TZID");-1!==_r&&(Ie=Si.substring(_r).split("=")[1]),G=zo.split(",").map(zr=>vt(zr,Ie))}return G.length&&null!==G[0]?G:null},It=Ee=>{const at=oi(Ee);return null===at?null:at[0]};var Bt=i(54357);const xt=Ee=>{if(!Ee||0===Ee.length)return"";const at=Ee[0].timezone,G="Etc/UTC"===at,Ie=G?"Z":"";return(at&&!G?";TZID="+at:"")+":"+Ee.map(zo=>(0,Bt.p6)(zo,"yyyyMMddTHHmmss")+Ie).join(",")+" "},Mt=(Ee,at)=>{if(!at)return!1;const{start:G,end:Ie}=at;return Ee<G||Ee>Ie||0===Ee&&G<0},pt=(Ee,at)=>Ee-at,Lt=(Ee,at)=>{const G=[];for(let Ie=0;Ie<Ee.length;Ie++){const gn=parseInt(Ee[Ie],10);if(isNaN(gn)||Mt(gn,at))return[];G.push(gn)}return G.sort(pt)},tt=["yyyyMMddTHHmmssSSSXXX","yyyyMMddTHHmmssXXX","yyyyMMddTHHmmss","yyyyMMddTHHmm","yyyyMMddTHH","yyyyMMdd"];function Ne(Ee){return new Date(Date.UTC(Ee.getFullYear(),Ee.getMonth(),Ee.getDate(),Ee.getHours(),Ee.getMinutes(),Ee.getSeconds(),Ee.getMilliseconds()))}const vt=(Ee,at)=>{const G=(0,Bt.sG)(Ee)||(0,Bt.sG)(Ee,tt);if(!G)return null;const Ie=at?Ne(G):G;return H.fromUTCDate(Ie,at||"Etc/UTC")},ln={SU:z.J.Sunday,MO:z.J.Monday,TU:z.J.Tuesday,WE:z.J.Wednesday,TH:z.J.Thursday,FR:z.J.Friday,SA:z.J.Saturday},jn=Ee=>ln[Ee],Pi=Ee=>{const at=[];for(let G=0;G<Ee.length;G++){const Ie=Ee[G],gn=jn(Ie.substring(Ie.length-2).toUpperCase());if(void 0===gn)return[];at.push({offset:parseInt(Ie.substring(0,Ie.length-2),10)||0,day:gn})}return at},go=(Ee,at,G=1)=>{at=(at-Ee.getUTCDay()+7*G)%7,Ee.setUTCDate(Ee.getUTCDate()+at)},si=(Ee,at)=>Ee+(Ee<at?7:0),ot=(Ee,at)=>Ee-at,pn=(Ee,at)=>{let Ie=7-(Ne((0,se.l)(Ee)).getUTCDay()+7-(at||7))||7;return Ie<0&&(Ie+=7),Math.ceil((Ee.getUTCDate()-Ie)/7)+1},_i=(Ee,at)=>{let G=(Ee=new Date(Date.UTC(Ee.getUTCFullYear(),Ee.getUTCMonth(),Ee.getUTCDate()))).getUTCFullYear();void 0!==at?(go(Ee,at,-1),Ee.setUTCDate(Ee.getUTCDate()+4)):Ee.setUTCDate(Ee.getUTCDate()+(4-(Ee.getUTCDay()||7)));let Ie=Math.floor((Ee.getTime()-Date.UTC(G,0,1,-6))/864e5);return 1+Math.floor(Ie/7)},wi=(Ee,at,G)=>{let Ie=at.offset;if(!Ie)return pn(Ee,G);const gn=new Date(Date.UTC(Ee.getUTCFullYear(),Ee.getUTCMonth()+1,0));let Si=pn(gn,G);const zo=si(at.day,G),_r=zo<si(new Date(Date.UTC(Ee.getUTCFullYear(),Ee.getUTCMonth(),1)).getUTCDay(),G),zr=zo>si(gn.getUTCDay(),G);return Ie<0?Ie=Si+(Ie+1-(zr?1:0)):_r&&(Ie+=1),Si-=zr?1:0,Ie<(_r?1:0)||Ie>Si?null:Ie},hi=(Ee,at,G)=>pn(Ee,G)===wi(Ee,at,G),zn=(Ee,at)=>pn(new Date(Date.UTC(Ee.getUTCFullYear(),Ee.getUTCMonth()+1,0)),at),Ei=[0,31,60,91,121,152,182,213,244,274,305,335,366],li=[0,31,59,90,120,151,181,212,243,273,304,334,365],Xi=Ee=>(Ee=Ee.getUTCFullYear())%4==0&&Ee%100!=0||Ee%400==0,ki=Ee=>{const at=Ee.getUTCMonth();return(Xi(Ee)?Ei[at]:li[at])+Ee.getUTCDate()},bo=[31,28,31,30,31,30,31,31,30,31,30,31],jo=Ee=>{const at=Ee.getUTCMonth();return 1===at?1===new Date(Date.UTC(Ee.getUTCFullYear(),1,29)).getUTCMonth()?29:28:bo[at]},wn=(Ee,at,G)=>{const Ie=Ee.length,gn=[];for(let Si=0;Si<Ie;Si++){let zo=Ee[Si];if(G&&(zo=G(zo)),at===zo)return null;at<zo&&gn.push(zo)}return gn},oo=(Ee,at,G)=>{const Ie=G.byMonth,gn=wn(Ie,Ee.getUTCMonth()+1);let Si=!1;return null!==gn&&(gn.length?Ee.setUTCMonth(gn[0]-1,1):Ee.setUTCFullYear(Ee.getUTCFullYear()+1,Ie[0]-1,1),Si=!0),Si},Bi=(Ee,at,G)=>{let Ie,gn=!1;function Si(zo){return zo<0&&(zo=Ie+zo+1),zo}for(;Ee<=at;){let zo=Ee.getUTCMonth();Ie=jo(Ee);let _r=wn(G.byMonthDay,Ee.getUTCDate(),Si);if(null===_r)return gn;if(gn=!0,_r.length){if(Ee.setUTCMonth(zo,_r.sort(ot)[0]),zo===Ee.getUTCMonth())break}else Ee.setUTCMonth(zo+1,1)}return gn},Xo=(Ee,at,G)=>{let Ie,gn=!1;function Si(zo){return zo<0&&(zo=Ie+zo),zo}for(;Ee<at;){Ie=Xi(Ee)?366:365;let zo=wn(G.byYearDay,ki(Ee),Si);if(null===zo)return gn;if(gn=!0,Ie=Ee.getUTCFullYear(),zo.length){Ee.setUTCFullYear(Ie,0,zo.sort(ot)[0]);break}Ee.setUTCFullYear(Ie+1,0,1)}return gn},Lo=(Ee,at,G)=>{const Ie=G.weekStart||z.J.Monday;let gn=!1;function Si(zo){return zo<0&&(zo=53+zo),zo}for(;Ee<at;){const zo=wn(G.byWeekNumber,_i(Ee,Ie),Si);if(null===zo)return gn;gn=!0;const _r=Ee.getUTCFullYear();if(zo.length){const zr=7*zo.sort(ot)[0]-1;Ee.setUTCFullYear(_r,0,zr),go(Ee,Ie,-1);break}Ee.setUTCFullYear(_r+1,0,1)}return gn},or=(Ee,at,G)=>{const Ie=G.byWeekDay,gn=G.weekStart||z.J.Monday;let Si=((Ee,at,G)=>{const Ie=si(at.getUTCDay(),G),gn=Ee.length;let Si,zo,_r,zr;const Lr=[];for(let ws=0;ws<gn;ws++)if(zo=Ee[ws],zr=pn(at,G),Si=wi(at,zo,G),null!==Si)if(zr<Si)Lr.push(zo);else if(zr===Si)if(_r=si(zo.day,G),Ie<_r)Lr.push(zo);else if(Ie===_r)return null;return Lr})(Ie,Ee,gn);if(null===Si)return!1;Si[0]||(Si=Ie,go(Ee,gn));const _r=Si.map(zr=>{let Lr=(0,C.k)(Ee),ws=zr.day;if(zr.offset)for(;Lr<=at&&!hi(Lr,zr,gn);)pn(Lr,gn)===zn(Lr,gn)?Lr.setUTCMonth(Lr.getUTCMonth()+1,1):(Lr.setUTCDate(Lr.getUTCDate()+7),go(Lr,gn,-1));return Lr.getUTCDay()!==ws&&go(Lr,ws),Lr}).sort((zr,Lr)=>zr.getTime()-Lr.getTime())[0];return _r&&Ee.setTime(_r),!0},xr=(Ee,at,G)=>{let Ie=G.byHour,gn=!1,Si=G._startTime;const zo=Si.getUTCHours();let _r=wn(Ie,zo);return null!==_r&&(gn=!0,Ee.setUTCHours(zo),_r.length?(_r=_r[0],Ee.setUTCHours(_r)):(_r=Ee.getUTCHours(),Ee.setUTCDate(Ee.getUTCDate()+1),_r=Ie[0],Ee.setUTCHours(_r)),G.byMinute&&Ee.setUTCMinutes(0),Si.setUTCHours(_r,Ee.getUTCMinutes())),gn},Nr=(Ee,at,G)=>{const Ie=G.byMinute,gn=Ee.getUTCMinutes();let Si=wn(Ie,gn),zo=G._startTime.getUTCHours(),_r=!1;return null!==Si&&(_r=!0,Si.length?Si=Si[0]:(zo+=1,Si=Ie[0]),G.bySecond&&Ee.setUTCSeconds(0),Ee.setUTCHours(zo,Si),zo%=24,G._startTime.setUTCHours(zo,Si,Ee.getUTCSeconds())),_r},as=(Ee,at,G)=>{const Ie=G.bySecond,gn=wn(Ie,Ee.getUTCSeconds());let Si=G._startTime.getUTCHours(),zo=Ee.getUTCMinutes(),_r=!1;return null!==gn&&(_r=!0,gn.length?Ee.setUTCSeconds(gn[0]):(zo+=1,Ee.setUTCMinutes(zo,Ie[0]),zo>59&&(zo%=60,Si=(Si+1)%24)),G._startTime.setUTCHours(Si,zo,Ee.getUTCSeconds())),_r},ji=["byMonth","byWeekNumber","byYearDay","byMonthDay","byWeekDay","byHour","byMinute","bySecond"],Fo=ji.length,rt=(Ee,at)=>{let G;return 0!==Ee&&Ee<at?G=at-Ee:(G=Ee%at,G&&(G=at-G)),G};class Gn{next(at,G){const Ie=G._startTime;let gn,Si;if(G.bySecond)Si=at.getUTCSeconds()+1,at.setUTCSeconds(Si),Ie.setUTCSeconds(Si);else{if(!G.byMinute)return!1;gn=at.getUTCMinutes()+1,at.setUTCMinutes(gn),Ie.setUTCMinutes(gn)}return!0}normalize(at){const G=at.rule;4===at.idx&&G.byHour&&(G._startTime.setUTCHours(0),this._hour(at.date,G))}limit(at,G,Ie){const gn=Ie.interval||1;let Si;for(;at<=G;){let zo,_r;const zr=at.getUTCDate();for(Si=0;Si<Fo;Si++){const Lr=ji[Si];if(Ie[Lr]){if(zo=e[Lr](at,G,Ie),void 0!==_r&&zo)break;_r=zo}zo&&this.normalize({date:at,rule:Ie,day:zr,idx:Si})}if((1===gn||!this.interval(Ie,at))&&Si===Fo)break}}interval(at,G){const Ie=at._startPeriod.toUTCDate(),gn=G.getUTCHours(),Si=at.weekStart,zo=at.interval,_r=at.freq;let ua,Ja,zr=new Date(G),Lr=!1,ws=0,$s=0,ya=1;return"hourly"===_r?(Ja=at._startTime.getUTCHours(),zr=zr.getTime(),gn!==Ja&&(zr+=(Ja-gn)*_.zq),zr-=Ie.getTime(),ua=Math.floor(zr/_.zq),ws=rt(ua,zo),0!==ws&&(this._hour(G,at,ws),Lr=!0)):"daily"===_r?(((Ee,at)=>{Ee.setTime(Ee.getTime()+at)})(zr,-Ie),ua=Math.round(zr/_.Mb),ws=rt(ua,zo),0!==ws&&(this._date(G,at,ws),Lr=!0)):"weekly"===_r?(ws=this.getNumberOfWeeksBetweenDates(Ie,G),si(G.getUTCDay(),Si)<si(Ie.getUTCDay(),Si)&&(ws+=1),ws=rt(ws,zo),0!==ws&&(go(G,at.weekStart,-1),G.setUTCDate(G.getUTCDate()+7*ws),Lr=!0)):"monthly"===_r?(ua=G.getUTCFullYear()-Ie.getUTCFullYear(),ua=G.getUTCMonth()-Ie.getUTCMonth()+12*ua,ws=rt(ua,zo),0!==ws&&(ya=Fn(at)?1:G.getDate(),G.setUTCFullYear(G.getUTCFullYear(),G.getUTCMonth()+ws,ya),Lr=!0)):"yearly"===_r&&(ua=G.getUTCFullYear()-Ie.getUTCFullYear(),ws=rt(ua,zo),at.byMonth||($s=G.getUTCMonth()),!at.byYearDay&&!at.byMonthDay&&!at.byWeekDay&&(ya=G.getUTCDate()),0!==ws&&(G.setUTCFullYear(G.getUTCFullYear()+ws,$s,ya),Lr=!0)),Lr}_hour(at,G,Ie){const gn=G._startTime;let Si=gn.getUTCHours();Ie&&(Si+=Ie),at.setUTCHours(Si),Si%=24,gn.setUTCHours(Si)}_date(at,G,Ie){at.setUTCDate(at.getUTCDate()+Ie)}getNumberOfWeeksBetweenDates(at,G){const Ie=(G.getTime()-at.getTime())/6048e5;let gn=Math.floor(Ie);return Ie-gn>.99&&(gn=Math.round(Ie)),gn}}class wr extends Gn{next(at,G){return Gn.prototype.next.call(this,at,G)||this[G.byHour?"_hour":"_date"](at,G,1),!1}}class ba extends Gn{next(at,G){let Ie;if(!Gn.prototype.next.call(this,at,G))if(G.byHour)this._hour(at,G,1);else if(G.byMonthDay||G.byWeekDay||G.byYearDay||G.byWeekNumber)this._date(at,G,1);else{for(Ie=at.getUTCDate(),at.setUTCMonth(at.getUTCMonth()+1);at.getUTCDate()!==Ie;)at.setUTCDate(Ie);this._hour(at,G)}return!1}normalize(at){const G=at.rule,Ie=at.date;0!==at.idx||G.byMonthDay||G.byWeekDay?super.normalize(at):Ie.setUTCDate(at.day)}setup(at,G,Ie){!at.byMonthDay&&!at.byWeekDay&&Ie.setUTCDate(G.getUTCDate())}}const Oa={hourly:new class Io extends Gn{next(at,G){return Gn.prototype.next.call(this,at,G)||this._hour(at,G,1),!1}normalize(at){const G=at.rule;4===at.idx&&(G._startTime.setUTCHours(0),this._hour(at.date,G))}},daily:new wr,weekly:new class bs extends wr{setup(at,G){at.byWeekDay||(at.byWeekDay=[{day:G.getUTCDay(),offset:0}])}},monthly:new ba,yearly:new class ms extends ba{next(at,G){let Ie;if(!Gn.prototype.next.call(this,at,G))if(G.byHour)this._hour(at,G,1);else if(G.byMonthDay||G.byWeekDay||G.byYearDay||G.byWeekNumber)this._date(at,G,1);else if(G.byMonth){for(Ie=at.getUTCDate(),at.setUTCMonth(at.getUTCMonth()+1);at.getUTCDate()!==Ie;)at.setUTCDate(Ie);this._hour(at,G)}else at.setUTCFullYear(at.getUTCFullYear()+1),this._hour(at,G);return!1}setup(){}}},Ea=Ee=>H.fromLocalDate(Ee.toLocalDate(),Ee.timezone),Sa=Ee=>Ee.getHours()*_.zq+Ee.getMinutes()*_.X$+1e3*Ee.getSeconds()+Ee.getMilliseconds(),tr=(Ee,at)=>{if(!Ee)return!1;const G=at.getTime()-at.getMilliseconds(),Ie=Ee.length;for(let gn=0;gn<Ie;gn++)if(Ee[gn].getTime()===G)return!0;return!1},Li=(Ee,at)=>{const G=Ee.toUTCDate();switch(at.freq){case"yearly":G.setUTCFullYear(G.getUTCFullYear(),11,31);break;case"monthly":G.setUTCFullYear(G.getUTCFullYear(),G.getUTCMonth()+1,0);break;case"weekly":go(G,at.weekStart,-1),G.setUTCDate(G.getUTCDate()+6)}return at.byHour&&G.setUTCHours(23),at.byMinute&&G.setUTCMinutes(59),at.bySecond&&G.setUTCSeconds(59),H.fromUTCDate(G,Ee.timezone)},Ao=(Ee,at,G)=>{const Ie=Ee.length,gn=[];let Si;for(let zo=0,_r=G.length;zo<_r;zo++){Si=G[zo],Si<0?Si=Ie+Si:Si-=1;const zr=Ee[Si];zr&&zr.start>=at&&gn.push(zr)}return gn},ao=(Ee,at)=>{const G=[];for(let Ie=0;Ie<Ee.length;Ie++){const gn=Ee[Ie];gn&&!tr(at,gn.start)&&G.push(gn)}return G};const pr=(Ee,at)=>Ee+(Ee<at?7:0),Ti=Ee=>{if(!Ee)return null;const{recurrenceRule:at,weekStart:G=0}=Ee,Ie={};let gn,Si,_r,zr,Lr,zo=0;if(!at)return null;let ws=at.split("\n");for(!ws[1]&&(-1!==at.indexOf("DTSTART")||-1!==at.indexOf("DTEND")||-1!==at.indexOf("EXDATE"))&&(ws=at.split(" ")),zo=0,_r=ws.length;zo<_r;zo++){let $s=(ws[zo]||"").trim();-1!==$s.indexOf("DTSTART")?Ie.start=It($s):-1!==$s.indexOf("DTEND")?Ie.end=It($s):-1!==$s.indexOf("EXDATE")?Ie.exceptionDates=oi($s):-1!==$s.indexOf("RRULE")?zr=$s.substring(6):$s.trim()&&(zr=$s)}for(zr=zr.split(";"),zo=0,_r=zr.length;zo<_r;zo++)switch(Lr=zr[zo],gn=Lr.split("="),Si=(gn[1]||"").trim().split(","),gn[0].trim().toUpperCase()){case"FREQ":Ie.freq=Si[0].toLowerCase();break;case"UNTIL":Ie.until=vt(Si[0]);break;case"COUNT":Ie.count=parseInt(Si[0],10);break;case"INTERVAL":Ie.interval=parseInt(Si[0],10);break;case"BYSECOND":Ie.bySecond=Lt(Si,{start:0,end:60});break;case"BYMINUTE":Ie.byMinute=Lt(Si,{start:0,end:59});break;case"BYHOUR":Ie.byHour=Lt(Si,{start:0,end:23});break;case"BYMONTHDAY":Ie.byMonthDay=Lt(Si,{start:-31,end:31});break;case"BYYEARDAY":Ie.byYearDay=Lt(Si,{start:-366,end:366});break;case"BYMONTH":Ie.byMonth=Lt(Si,{start:1,end:12});break;case"BYDAY":Ie.byWeekDay=Pi(Si);break;case"BYWEEKNO":Ie.byWeekNumber=Lt(Si,{start:-53,end:53});break;case"BYSETPOS":Ie.bySetPosition=Lt(Si,{start:-366,end:366});break;case"WKST":Ie.weekStart=jn(Si[0])}return void 0===Ie.freq||void 0!==Ie.count&&Ie.until?null:(void 0===Ie.weekStart&&(Ie.weekStart=G),Ie.interval||(Ie.interval=1),Ie.bySetPosition&&!Fn(Ie)&&(Ie.bySetPosition=[]),(Ee=>{const{byWeekDay:at,weekStart:G}=Ee;at&&at.sort((Ee=>(at,G)=>pr(at.day,Ee)-pr(G.day,Ee))(G))})(Ie),Ie)},mr={0:"SU",1:"MO",2:"TU",3:"WE",4:"TH",5:"FR",6:"SA"};var Ii=i(53342),yo=i(60886),lr=i(68503);i(77046),i(14295),i(9890);const Ho=["kendoSchedulerLoading",""],_t=["calendar"],Zn=["kendoSchedulerToolbarNavigation",""];function qo(Ee,at){if(1&Ee){const G=n.EpF();n.TgZ(0,"kendo-calendar",7,8),n.NdJ("blur",function(){n.CHM(G);const gn=n.oxw();return n.KtG(gn.onBlur())})("keydown.escape",function(){n.CHM(G);const gn=n.oxw(),Si=n.MAs(6),zo=n.MAs(10);return gn.toggleSelectedDate({nativeElement:Si},zo),n.KtG(Si.focus())})("valueChange",function(gn){n.CHM(G);const Si=n.oxw();return n.KtG(Si.selectDate(gn))}),n.ALo(2,"async"),n._UZ(3,"kendo-calendar-messages",9),n.qZA()}if(2&Ee){const G=n.oxw();n.Q6J("value",n.lcZ(2,4,G.ctx.selectedDate))("min",G.min)("max",G.max),n.xp6(3),n.Q6J("today",G.calendarTodayText)}}const Cr=["kendoSchedulerToolbarViewSelector",""];function kr(Ee,at){if(1&Ee&&(n.TgZ(0,"option",4),n._uU(1),n.qZA()),2&Ee){const G=at.$implicit,Ie=n.oxw(2);n.Q6J("selected",!0===Ie.isSelected(G))("value",G.name),n.xp6(1),n.hij(" ",G.title," ")}}function xs(Ee,at){if(1&Ee){const G=n.EpF();n.TgZ(0,"select",2),n.NdJ("change",function(gn){n.CHM(G);const Si=n.oxw();return n.KtG(Si.onChange(gn))}),n.YNc(1,kr,2,3,"option",3),n.qZA()}if(2&Ee){const G=n.oxw();n.Q6J("kendoSchedulerFocusIndex",0),n.uIk("aria-label",G.selectView),n.xp6(1),n.Q6J("ngForOf",G.ctx.views)}}function Us(Ee,at){if(1&Ee){const G=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){const Si=n.CHM(G).$implicit,zo=n.oxw(2);return n.KtG(zo.select(Si))}),n.TgZ(1,"span",8),n._uU(2),n.qZA()()}if(2&Ee){const G=at.$implicit,Ie=n.oxw(2);n.Q6J("selected",Ie.isSelected(G))("kendoSchedulerFocusIndex",0),n.uIk("aria-pressed",Ie.isSelected(G)),n.xp6(2),n.hij(" ",G.title," ")}}function Ts(Ee,at){if(1&Ee&&(n.TgZ(0,"span",5),n.YNc(1,Us,3,4,"button",6),n.qZA()),2&Ee){const G=n.oxw();n.xp6(1),n.Q6J("ngForOf",G.ctx.views)}}function Ss(Ee,at){}function Ua(Ee,at){if(1&Ee&&n.YNc(0,Ss,0,0,"ng-template",3),2&Ee){const G=n.oxw();n.Q6J("ngTemplateOutlet",G.template.templateRef)("ngTemplateOutletContext",G.templateContext)}}function $o(Ee,at){if(1&Ee&&n._UZ(0,"div",4)(1,"span",5)(2,"div",6),2&Ee){const G=n.oxw();n.Q6J("min",G.min)("max",G.max),n.xp6(2),n.Q6J("toolbarWidth",G.toolbarWidth)}}const Ar=["resourceMultiSelect"];function No(Ee,at){if(1&Ee&&n._UZ(0,"span",5),2&Ee){const G=n.oxw().$implicit,Ie=n.oxw();n.Q6J("ngStyle",Ie.getResourceStyle(G))}}function qr(Ee,at){if(1&Ee&&(n.YNc(0,No,1,1,"span",4),n._uU(1)),2&Ee){const G=at.$implicit,Ie=n.oxw();n.Q6J("ngIf",Ie.resource.colorField),n.xp6(1),n.hij(" ",Ie.getField(G,Ie.resource.textField)," ")}}function js(Ee,at){if(1&Ee&&n._UZ(0,"span",5),2&Ee){const G=n.oxw().$implicit,Ie=n.oxw();n.Q6J("ngStyle",Ie.getTagStyle(G))}}function Ds(Ee,at){if(1&Ee&&(n.YNc(0,js,1,1,"span",4),n._uU(1)),2&Ee){const G=at.$implicit,Ie=n.oxw();n.Q6J("ngIf",Ie.resource.colorField),n.xp6(1),n.hij(" ",Ie.getField(G,Ie.resource.textField)," ")}}const Zr=["resourceDropDown"];function ls(Ee,at){if(1&Ee&&n._UZ(0,"span",4),2&Ee){const G=n.oxw().$implicit,Ie=n.oxw();n.Q6J("ngStyle",Ie.getResourceStyle(G))}}function Hs(Ee,at){if(1&Ee&&(n.YNc(0,ls,1,1,"span",3),n._uU(1)),2&Ee){const G=at.$implicit,Ie=n.oxw();n.Q6J("ngIf",Ie.resource.colorField),n.xp6(1),n.hij(" ",Ie.getField(G,Ie.resource.textField)," ")}}const Js=["datepicker"],Wa=["datetimepicker"];function ll(Ee,at){if(1&Ee){const G=n.EpF();n.TgZ(0,"kendo-datepicker",1,2),n.NdJ("valueChange",function(gn){n.CHM(G);const Si=n.oxw();return n.KtG(Si.date=gn)})("valueChange",function(gn){n.CHM(G);const Si=n.oxw();return n.KtG(Si.onValueChange(gn))}),n.qZA()}if(2&Ee){const G=n.oxw();n.Q6J("value",G.date)}}function Za(Ee,at){if(1&Ee){const G=n.EpF();n.TgZ(0,"kendo-datetimepicker",1,3),n.NdJ("valueChange",function(gn){n.CHM(G);const Si=n.oxw();return n.KtG(Si.date=gn)})("valueChange",function(gn){n.CHM(G);const Si=n.oxw();return n.KtG(Si.onValueChange(gn))}),n.qZA()}if(2&Ee){const G=n.oxw();n.Q6J("value",G.date)}}const sl=["tzcombobox"];function Jt(Ee,at){if(1&Ee){const G=n.EpF();n.TgZ(0,"button",5),n.NdJ("click",function(){const Si=n.CHM(G).$implicit,zo=n.oxw();return n.KtG(zo.onClick(Si))}),n._uU(1),n.qZA()}if(2&Ee){const G=at.$implicit,Ie=n.oxw();n.Q6J("togglable",!0)("selected",G.value===Ie.selected),n.xp6(1),n.Oqu(G.text)}}function Tt(Ee,at){if(1&Ee){const G=n.EpF();n.TgZ(0,"button",5),n.NdJ("selectedChange",function(gn){const zo=n.CHM(G).$implicit,_r=n.oxw();return n.KtG(_r.onSelectedChange(gn,zo.value))}),n._uU(1),n.qZA()}if(2&Ee){const G=at.$implicit,Ie=n.oxw();n.Q6J("toggleable",!0)("selected",Ie.isSelected(G)),n.xp6(1),n.Oqu(Ie.capitalize(G.text))}}function ht(Ee,at){if(1&Ee&&n._uU(0),2&Ee){const G=n.oxw();n.hij(" ",G.textFor("monthlyDay")," ")}}function yn(Ee,at){if(1&Ee){const G=n.EpF();n.TgZ(0,"kendo-dropdownlist",10),n.NdJ("valueChange",function(gn){n.CHM(G);const Si=n.oxw();return n.KtG(Si.onMonthChange(gn,"monthday"))}),n.qZA()}if(2&Ee){const G=n.oxw();n.Udp("width",170,"px")("margin","0 .4ex 0 1ex"),n.Q6J("data",G.months)("value",G.currentMonthMonthDay)("valuePrimitive",!0)("disabled",G.isDisabled("monthday"))}}function vi(Ee,at){if(1&Ee){const G=n.EpF();n.TgZ(0,"span"),n._uU(1),n.qZA(),n.TgZ(2,"kendo-dropdownlist",10),n.NdJ("valueChange",function(gn){n.CHM(G);const Si=n.oxw();return n.KtG(Si.onMonthChange(gn,"weekday"))}),n.qZA()}if(2&Ee){const G=n.oxw();n.xp6(1),n.Oqu(G.textFor("yearlyOf")),n.xp6(1),n.Udp("margin","0 .4ex 0 1ex"),n.Q6J("data",G.months)("value",G.currentMonthWeekDay)("valuePrimitive",!0)("disabled",G.isDisabled("weekday"))}}function Yi(Ee,at){if(1&Ee&&n._UZ(0,"kendo-recurrence-interval-editor",5),2&Ee){const G=n.oxw();n.Q6J("userNumericOptions",G.repeatEveryOptions)}}function co(Ee,at){1&Ee&&n._UZ(0,"kendo-recurrence-weekday-rule-editor")}function sr(Ee,at){if(1&Ee&&n._UZ(0,"kendo-recurrence-monthly-yearly-editor",5),2&Ee){const G=n.oxw();n.Q6J("userNumericOptions",G.repeatOnOptions)}}function yr(Ee,at){if(1&Ee&&n._UZ(0,"kendo-recurrence-end-rule-editor",6),2&Ee){const G=n.oxw();n.Q6J("userNumericOptions",G.endAfterOptions)("userDatePickerOptions",G.endOnOptions)}}function Ur(Ee,at){if(1&Ee&&(n.TgZ(0,"kendo-formfield"),n.ynx(1),n.TgZ(2,"span",15),n._UZ(3,"input",16),n.qZA(),n.TgZ(4,"label",17),n._uU(5),n.qZA(),n.BQk(),n.qZA()),2&Ee){const G=n.oxw(3);n.xp6(4),n.Q6J("labelClass",!1),n.xp6(1),n.Oqu(G.textFor("editorEventTimeZone"))}}function ss(Ee,at){if(1&Ee&&(n.TgZ(0,"kendo-formfield"),n._UZ(1,"kendo-label",7)(2,"kendo-timezone-editor",18,19),n.qZA()),2&Ee){const G=n.MAs(3),Ie=n.oxw(3);n.xp6(1),n.Q6J("for",G)("text",Ie.textFor("editorEventStartTimeZone")),n.xp6(1),n.Q6J("width",void 0)("formControl",Ie.getControl(Ie.fields.startTimezone))}}function gs(Ee,at){if(1&Ee&&(n.TgZ(0,"kendo-formfield"),n.ynx(1),n.TgZ(2,"span",15),n._UZ(3,"input",20),n.qZA(),n.TgZ(4,"label",21),n._uU(5),n.qZA(),n.BQk(),n.qZA()),2&Ee){const G=n.oxw(3);n.xp6(4),n.Q6J("labelClass",!1),n.xp6(1),n.Oqu(G.textFor("editorEventSeparateTimeZones"))}}function Pr(Ee,at){if(1&Ee&&(n.TgZ(0,"kendo-formfield"),n._UZ(1,"kendo-label",7)(2,"kendo-timezone-editor",18,22),n.qZA()),2&Ee){const G=n.MAs(3),Ie=n.oxw(3);n.xp6(1),n.Q6J("for",G)("text",Ie.textFor("editorEventEndTimeZone")),n.xp6(1),n.Q6J("width",void 0)("formControl",Ie.getControl(Ie.fields.endTimezone))}}function ys(Ee,at){if(1&Ee&&(n.TgZ(0,"kendo-formfield"),n.ynx(1),n.TgZ(2,"span",15),n._UZ(3,"input",23),n.qZA(),n.TgZ(4,"label",24),n._uU(5),n.qZA(),n.BQk(),n.qZA()),2&Ee){const G=n.oxw(3);n.xp6(3),n.Q6J("formControl",G.getControl(G.fields.isAllDay)),n.xp6(1),n.Q6J("labelClass",!1),n.xp6(1),n.Oqu(G.textFor("editorEventAllDay"))}}function da(Ee,at){if(1&Ee&&n._UZ(0,"kendo-recurrence-editor",25),2&Ee){const G=n.oxw(3);n.Q6J("formControl",G.getControl(G.fields.recurrenceRule))("start",G.recurrenceStart)("timezone",G.eventTimezone)("weekStart",G.weekStart)}}function Va(Ee,at){if(1&Ee&&(n.TgZ(0,"kendo-formfield"),n._UZ(1,"kendo-label",7)(2,"textarea",26,27),n.qZA()),2&Ee){const G=n.MAs(3),Ie=n.oxw(3);n.xp6(1),n.Q6J("for",G)("text",Ie.textFor("editorEventDescription")),n.xp6(1),n.Q6J("formControl",Ie.getControl(Ie.fields.description))}}function ga(Ee,at){if(1&Ee&&n._UZ(0,"kendo-multiple-resource-editor",30),2&Ee){const G=n.oxw(2).$implicit,Ie=n.oxw(3);n.Q6J("formControl",Ie.getControl(G.field))("resource",G)}}function al(Ee,at){if(1&Ee&&n._UZ(0,"kendo-single-resource-editor",30),2&Ee){const G=n.oxw(2).$implicit,Ie=n.oxw(3);n.Q6J("formControl",Ie.getControl(G.field))("resource",G)}}function ur(Ee,at){if(1&Ee){const G=n.EpF();n.TgZ(0,"kendo-formfield")(1,"label",28),n.NdJ("click",function(){n.CHM(G);const gn=n.oxw().$implicit,Si=n.oxw(3);return n.KtG(Si.onResourceClick(gn))}),n._uU(2),n.qZA(),n.YNc(3,ga,1,2,"kendo-multiple-resource-editor",29),n.YNc(4,al,1,2,"kendo-single-resource-editor",29),n.qZA()}if(2&Ee){const G=n.oxw().$implicit;n.xp6(2),n.hij(" ",G.name?G.name:G.field," "),n.xp6(1),n.Q6J("ngIf",G.multiple),n.xp6(1),n.Q6J("ngIf",!G.multiple)}}function La(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,ur,5,3,"kendo-formfield",2),n.BQk()),2&Ee){const G=at.$implicit,Ie=n.oxw(3);n.xp6(1),n.Q6J("ngIf",Ie.getFormValue(G.field))}}function ra(Ee,at){if(1&Ee&&(n.ynx(0),n.TgZ(1,"form",6)(2,"kendo-formfield"),n._UZ(3,"kendo-label",7)(4,"input",8,9),n.qZA(),n.TgZ(6,"kendo-formfield"),n._UZ(7,"kendo-label",7)(8,"kendo-scheduler-datetime-picker",10,11),n.qZA(),n.YNc(10,Ur,6,2,"kendo-formfield",2),n.YNc(11,ss,4,4,"kendo-formfield",2),n.TgZ(12,"kendo-formfield"),n._UZ(13,"kendo-label",7)(14,"kendo-scheduler-datetime-picker",10,12),n.qZA(),n.YNc(16,gs,6,2,"kendo-formfield",2),n.YNc(17,Pr,4,4,"kendo-formfield",2),n.YNc(18,ys,6,3,"kendo-formfield",2),n.YNc(19,da,1,4,"kendo-recurrence-editor",13),n.YNc(20,Va,4,3,"kendo-formfield",2),n.YNc(21,La,2,1,"ng-container",14),n.qZA(),n.BQk()),2&Ee){const G=n.MAs(5),Ie=n.MAs(9),gn=n.MAs(15),Si=n.oxw(2);let zo,_r;n.xp6(1),n.Q6J("formGroup",Si.formGroup),n.xp6(2),n.Q6J("for",G)("text",Si.textFor("editorEventTitle")),n.xp6(1),n.Q6J("formControl",Si.getControl(Si.fields.title)),n.xp6(3),n.Q6J("for",Ie)("text",Si.textFor("editorEventStart")),n.xp6(1),n.Q6J("formControl",Si.getControl(Si.fields.start))("isAllDay",null==(zo=Si.getFormValue(Si.fields.isAllDay))?null:zo.value),n.xp6(2),n.Q6J("ngIf",Si.hasStartTimeZone),n.xp6(1),n.Q6J("ngIf",Si.isStartTimeZoneVisible),n.xp6(2),n.Q6J("for",gn)("text",Si.textFor("editorEventEnd")),n.xp6(1),n.Q6J("formControl",Si.getControl(Si.fields.end))("isAllDay",null==(_r=Si.getFormValue(Si.fields.isAllDay))?null:_r.value),n.xp6(2),n.Q6J("ngIf",Si.isStartTimeZoneVisible&&Si.hasEndTimeZone),n.xp6(1),n.Q6J("ngIf",Si.isEndTimeZoneVisible),n.xp6(1),n.Q6J("ngIf",Si.hasAllDay),n.xp6(1),n.Q6J("ngIf",Si.isEditingSeries),n.xp6(1),n.Q6J("ngIf",Si.getFormValue(Si.fields.description)),n.xp6(1),n.Q6J("ngForOf",Si.resources)}}const Ls=function(Ee,at,G,Ie,gn){return{$implicit:Ee,formGroup:at,dataItem:G,editMode:Ie,isNew:gn}};function vn(Ee,at){if(1&Ee&&(n.ynx(0),n.TgZ(1,"form",31),n.GkF(2,32),n.qZA(),n.BQk()),2&Ee){const G=n.oxw(2);n.xp6(1),n.Q6J("formGroup",G.formGroup),n.xp6(1),n.Q6J("ngTemplateOutlet",G.editTemplate.templateRef)("ngTemplateOutletContext",n.qbA(3,Ls,G.formGroup,G.formGroup,G.editedEvent,G.editMode,G.isNew))}}function Xe(Ee,at){if(1&Ee){const G=n.EpF();n.TgZ(0,"kendo-dialog",1),n.NdJ("close",function(){n.CHM(G);const gn=n.oxw();return n.KtG(gn.onClose())}),n.YNc(1,ra,22,20,"ng-container",2),n.YNc(2,vn,3,9,"ng-container",2),n.TgZ(3,"kendo-dialog-actions",3)(4,"button",4),n.NdJ("click",function(gn){n.CHM(G);const Si=n.oxw();return n.KtG(Si.onSave(gn))}),n._uU(5),n.qZA(),n.TgZ(6,"button",5),n.NdJ("click",function(gn){n.CHM(G);const Si=n.oxw();return n.KtG(Si.onCancel(gn))}),n._uU(7),n.qZA()()()}if(2&Ee){const G=n.oxw();n.s9C("title",G.textFor("editorTitle")),n.Q6J("minWidth",400)("autoFocusedElement",G.autoFocusedElement),n.xp6(1),n.Q6J("ngIf",!G.editTemplate),n.xp6(1),n.Q6J("ngIf",G.editTemplate),n.xp6(2),n.Q6J("svgIcon",G.saveIcon)("disabled",!G.formGroup.valid),n.xp6(1),n.Oqu(G.textFor("save")),n.xp6(1),n.Q6J("svgIcon",G.cancelIcon),n.xp6(1),n.Oqu(G.textFor("cancel"))}}const Ke=["confirmationDialogContainer"];function ze(Ee,at){1&Ee&&n.GkF(0)}function St(Ee,at){1&Ee&&n._UZ(0,"div",8)}const it=["content"],Dt=["kendoSchedulerAgendaHeader",""];function Hn(Ee,at){1&Ee&&n._UZ(0,"th",8)}const Ui=["kendoSchedulerAgendaHeaderItem",""];function Co(Ee,at){if(1&Ee&&(n.ynx(0),n.TgZ(1,"strong",2),n._uU(2),n.ALo(3,"kendoDate"),n.qZA(),n.TgZ(4,"em",3),n._uU(5),n.ALo(6,"kendoDate"),n.qZA(),n.TgZ(7,"span",4),n._uU(8),n.ALo(9,"kendoDate"),n.qZA(),n.BQk()),2&Ee){const G=n.oxw();n.xp6(2),n.Oqu(n.xi3(3,3,G.itemDate,"dd")),n.xp6(3),n.Oqu(n.xi3(6,6,G.itemDate,"EEEE")),n.xp6(3),n.Oqu(n.xi3(9,9,G.itemDate,"y"))}}const Sn=function(Ee){return{date:Ee}};function Vn(Ee,at){if(1&Ee&&n.GkF(0,5),2&Ee){const G=n.oxw();n.Q6J("ngTemplateOutlet",G.agendaDateTemplate)("ngTemplateOutletContext",n.VKq(2,Sn,G.itemDate))}}const Dn=["kendoSchedulerAgendaTaskItem",""];function kn(Ee,at){if(1&Ee&&n._UZ(0,"span",7),2&Ee){const G=n.oxw();n.Udp("background-color",G.eventColor)}}function ui(Ee,at){if(1&Ee&&n._UZ(0,"kendo-icon-wrapper",8),2&Ee){const G=n.oxw();n.Q6J("svgIcon",G.arrowRotateCWIcon)}}function Ot(Ee,at){if(1&Ee&&n._UZ(0,"kendo-icon-wrapper",9),2&Ee){const G=n.oxw();n.Q6J("svgIcon",G.arrowsNoRepeatIcon)}}function en(Ee,at){if(1&Ee&&(n.ynx(0),n._uU(1),n.BQk()),2&Ee){const G=n.oxw();n.xp6(1),n.hij(" ",null==G.item?null:G.item.title," ")}}const cn=function(Ee,at,G){return{$implicit:Ee,event:at,resources:G}};function Ht(Ee,at){if(1&Ee&&n.GkF(0,10),2&Ee){const G=n.oxw();n.Q6J("ngTemplateOutlet",G.eventTemplate)("ngTemplateOutletContext",n.kEZ(2,cn,G.item.event,G.item.event,G.item.resources))}}function ft(Ee,at){if(1&Ee&&(n.TgZ(0,"span",11),n._UZ(1,"kendo-icon-wrapper",12),n.qZA()),2&Ee){const G=n.oxw();n.uIk("title",G.deleteMessage),n.xp6(1),n.Q6J("svgIcon",G.xIcon)}}const Nt=["kendoSchedulerAgendaList",""];function an(Ee,at){if(1&Ee&&(n.TgZ(0,"td",11),n._uU(1),n.qZA()),2&Ee){const G=n.oxw(),Ie=G.index,gn=G.$implicit,Si=n.oxw(2).$implicit;n.uIk("rowspan",Si.spans[Ie]),n.xp6(1),n.hij(" ",gn," ")}}function $e(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,an,2,2,"td",10),n.BQk()),2&Ee){const G=at.index,Ie=n.oxw().index,gn=n.oxw().$implicit;n.xp6(1),n.Q6J("ngIf",gn.spans[G]&&0===Ie)}}function Je(Ee,at){if(1&Ee&&n._UZ(0,"td",12),2&Ee){const G=n.oxw().$implicit,Ie=n.oxw(2);n.Q6J("kendoSchedulerAgendaHeaderItem",G)("agendaDateTemplate",Ie.agendaDateTemplate)}}function Ve(Ee,at){if(1&Ee&&n._UZ(0,"kendo-icon-wrapper",14),2&Ee){const G=n.oxw(4);n.Q6J("name",G.arrowIcons[0])("svgIcon",G.arrowSVGIcons[0])}}function Ge(Ee,at){if(1&Ee&&n._UZ(0,"kendo-icon-wrapper",14),2&Ee){const G=n.oxw(4);n.Q6J("name",G.arrowIcons[1])("svgIcon",G.arrowSVGIcons[1])}}function Be(Ee,at){if(1&Ee&&(n.TgZ(0,"div"),n.YNc(1,Ve,1,2,"kendo-icon-wrapper",13),n._uU(2),n.YNc(3,Ge,1,2,"kendo-icon-wrapper",13),n.qZA()),2&Ee){const G=n.oxw().$implicit,Ie=n.oxw(2);n.xp6(1),n.Q6J("ngIf",Ie.extractDataItem(G).tail),n.xp6(1),n.hij(" ",Ie.formatTime(Ie.extractDataItem(G))," "),n.xp6(1),n.Q6J("ngIf",Ie.extractDataItem(G).head)}}function At(Ee,at){if(1&Ee&&n.GkF(0,15),2&Ee){const G=n.oxw().$implicit,Ie=n.oxw(2);n.Q6J("ngTemplateOutlet",Ie.agendaTimeTemplate)("ngTemplateOutletContext",Ie.extractDataItemInLocalTime(G))}}function Rt(Ee,at){if(1&Ee&&(n.TgZ(0,"tr",4),n.YNc(1,$e,2,1,"ng-container",2),n.YNc(2,Je,1,2,"td",5),n.TgZ(3,"td",6),n.YNc(4,Be,4,3,"div",7),n.YNc(5,At,1,2,"ng-container",8),n.qZA(),n._UZ(6,"td",9),n.qZA()),2&Ee){const G=at.$implicit,Ie=at.index,gn=n.oxw(),Si=gn.$implicit,zo=gn.index,_r=n.oxw();n.xp6(1),n.Q6J("ngForOf",Si.resources),n.xp6(1),n.Q6J("ngIf","group"===G.type),n.xp6(2),n.Q6J("ngIf",!_r.agendaTimeTemplate),n.xp6(1),n.Q6J("ngIf",_r.agendaTimeTemplate),n.xp6(1),n.Q6J("ngClass",_r.cellClasses(G))("ngStyle",_r.getEventStyles(G))("kendoSchedulerFocusIndex",zo)("id",G.elementId)("kendoSchedulerAgendaTaskItem",_r.extractDataItem(G))("editable",_r.editable)("eventTemplate",_r.eventTemplate),n.uIk("data-group-index",zo)("data-task-index",Ie)}}function Pt(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,Rt,7,13,"tr",3),n.BQk()),2&Ee){const G=at.$implicit,Ie=n.oxw();n.xp6(1),n.Q6J("ngForOf",G.tasks)("ngForTrackBy",Ie.trackByFn)}}const $t=["headerWrap"];function Xn(Ee,at){if(1&Ee&&n._UZ(0,"agenda-view-internal",1),2&Ee){const G=n.oxw();n.Q6J("numberOfDays",G.numberOfDays)("eventTemplate",null==G.eventTemplate?null:G.eventTemplate.templateRef)("slotClass",G.viewSlotClass)("eventClass",G.viewEventClass)("eventStyles",G.viewEventStyles)("agendaTimeTemplate",null==G.agendaTimeTemplate?null:G.agendaTimeTemplate.templateRef)("agendaDateTemplate",null==G.agendaDateTemplate?null:G.agendaDateTemplate.templateRef)("selectedDateFormat",G.selectedDateFormat)("selectedShortDateFormat",G.selectedShortDateFormat)}}const Nn=["monthViewItem",""];function Ae(Ee,at){if(1&Ee&&n._UZ(0,"kendo-icon-wrapper",7),2&Ee){const G=n.oxw();n.Q6J("name",G.arrowIcons[0])("svgIcon",G.arrowSVGIcons[0])}}function He(Ee,at){if(1&Ee&&n._UZ(0,"kendo-icon-wrapper",8),2&Ee){const G=n.oxw();n.Q6J("svgIcon",G.arrowRotateCwIcon)}}function Kt(Ee,at){if(1&Ee&&n._UZ(0,"kendo-icon-wrapper",9),2&Ee){const G=n.oxw();n.Q6J("svgIcon",G.arrowsNoRepeatIcon)}}function On(Ee,at){if(1&Ee&&n.GkF(0,10),2&Ee){const G=n.oxw();n.Q6J("ngTemplateOutlet",G.eventTemplate)("ngTemplateOutletContext",n.kEZ(2,cn,G.item.event,G.item.event,G.resources))}}function Fi(Ee,at){if(1&Ee&&(n.TgZ(0,"div")(1,"div",11),n._uU(2),n.qZA()()),2&Ee){const G=n.oxw();n.uIk("title",G.eventTitle),n.xp6(2),n.Oqu(G.item.event.title)}}function Ci(Ee,at){if(1&Ee&&(n.TgZ(0,"span",12),n._UZ(1,"kendo-icon-wrapper",13),n.qZA()),2&Ee){const G=n.oxw();n.uIk("title",G.deleteMessage),n.xp6(1),n.Q6J("svgIcon",G.xIcon)}}function xi(Ee,at){if(1&Ee&&n._UZ(0,"kendo-icon-wrapper",7),2&Ee){const G=n.oxw();n.Q6J("name",G.arrowIcons[1])("svgIcon",G.arrowSVGIcons[1])}}function Wn(Ee,at){1&Ee&&(n.ynx(0),n._UZ(1,"span",14)(2,"span",15),n.BQk())}const Vt=["header"],qt=["contentTable"],bn=["times"],ii=["timesHeader"],Vi=["timesTable"],Jn=["hintContainer"],zt=["monthSlot",""];function mn(Ee,at){if(1&Ee&&(n.TgZ(0,"span",3),n._uU(1),n.ALo(2,"kendoDate"),n.qZA()),2&Ee){const G=n.oxw();n.xp6(1),n.hij(" ",n.xi3(2,1,G.day,G.isFirstDayOfMonth(G.day)?"MMM dd":"dd")," ")}}const Qn=function(Ee,at){return{date:Ee,resources:at}};function ci(Ee,at){if(1&Ee&&n.GkF(0,4),2&Ee){const G=n.oxw();n.Q6J("ngTemplateOutlet",G.monthDaySlotTemplateRef)("ngTemplateOutletContext",n.WLB(2,Qn,G.day,G.resourcesByIndex))}}function Oi(Ee,at){if(1&Ee&&(n.TgZ(0,"div",5),n._UZ(1,"kendo-icon-wrapper",6),n.qZA()),2&Ee){const G=n.oxw();n.Akn(G.style),n.xp6(1),n.Q6J("svgIcon",G.moreHorizontalIcon)}}const Ai=["kendoResizeHint",""];function Pn(Ee,at){if(1&Ee&&(n.TgZ(0,"div",4),n._uU(1),n.ALo(2,"kendoDate"),n.qZA()),2&Ee){const G=n.oxw();n.xp6(1),n.Oqu(n.xi3(2,1,G.start,G.format))}}function qn(Ee,at){if(1&Ee&&(n.TgZ(0,"div",5),n._uU(1),n.ALo(2,"kendoDate"),n.qZA()),2&Ee){const G=n.oxw();n.xp6(1),n.Oqu(n.xi3(2,1,G.end,G.format))}}function Ni(Ee,at){1&Ee&&(n.TgZ(0,"div",15,16)(2,"table",7)(3,"tr"),n._UZ(4,"th"),n.qZA()()())}function Ue(Ee,at){if(1&Ee&&(n.ynx(0),n._uU(1),n.BQk()),2&Ee){const G=n.oxw().$implicit,Ie=n.oxw().$implicit,gn=n.oxw();n.xp6(1),n.Oqu(gn.getField(G,Ie.textField))}}const Ye=function(Ee){return{resource:Ee}};function Me(Ee,at){if(1&Ee&&n.GkF(0,21),2&Ee){const G=n.oxw().$implicit,Ie=n.oxw(2);n.Q6J("ngTemplateOutlet",Ie.groupHeaderTemplateRef)("ngTemplateOutletContext",n.VKq(2,Ye,G))}}function pe(Ee,at){if(1&Ee&&(n.TgZ(0,"th",18),n.YNc(1,Ue,2,1,"ng-container",19),n.YNc(2,Me,1,4,"ng-container",20),n.qZA()),2&Ee){const G=n.oxw().index,Ie=n.oxw();n.uIk("colspan",Ie.horizontalColspan(G)),n.xp6(1),n.Q6J("ngIf",!Ie.groupHeaderTemplateRef),n.xp6(1),n.Q6J("ngIf",Ie.groupHeaderTemplateRef)}}function lt(Ee,at){if(1&Ee&&(n.TgZ(0,"tr"),n.YNc(1,pe,3,3,"th",17),n.ALo(2,"resourceIterator"),n.qZA()),2&Ee){const G=at.index,Ie=n.oxw();n.xp6(1),n.Q6J("ngForOf",n.xi3(2,2,Ie.horizontalResources,G))("ngForTrackBy",Ie.itemIndex)}}function yt(Ee,at){if(1&Ee&&(n.TgZ(0,"th"),n._uU(1),n.ALo(2,"kendoDate"),n.qZA()),2&Ee){const G=at.$implicit;n.xp6(1),n.hij(" ",n.xi3(2,1,G,"EEEE")," ")}}function on(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,yt,3,4,"th",8),n.BQk()),2&Ee){const G=n.oxw();n.xp6(1),n.Q6J("ngForOf",G.weeks[0])("ngForTrackBy",G.itemIndex)}}function zi(Ee,at){if(1&Ee&&(n.ynx(0),n._uU(1),n.BQk()),2&Ee){const G=n.oxw(2),Ie=G.index,gn=G.$implicit,Si=n.oxw().index,zo=n.oxw(2);n.xp6(1),n.Oqu(zo.getField(zo.verticalItem(Si,Ie),gn.textField))}}function Kn(Ee,at){if(1&Ee&&n.GkF(0,21),2&Ee){const G=n.oxw(2).index,Ie=n.oxw().index,gn=n.oxw(2);n.Q6J("ngTemplateOutlet",gn.groupHeaderTemplateRef)("ngTemplateOutletContext",n.VKq(2,Ye,gn.verticalItem(Ie,G)))}}const ho=function(Ee){return{"k-last-resource":Ee}};function po(Ee,at){if(1&Ee&&(n.TgZ(0,"th",27),n.YNc(1,zi,2,1,"ng-container",19),n.YNc(2,Kn,1,4,"ng-container",20),n.qZA()),2&Ee){const G=n.oxw().index,Ie=n.oxw(3);n.Q6J("ngClass",n.VKq(4,ho,G===Ie.verticalResources.length-1)),n.uIk("rowspan",Ie.verticalRowspan(G)),n.xp6(1),n.Q6J("ngIf",!Ie.groupHeaderTemplateRef),n.xp6(1),n.Q6J("ngIf",Ie.groupHeaderTemplateRef)}}function $i(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,po,3,6,"th",26),n.BQk()),2&Ee){const G=at.index,Ie=n.oxw().index,gn=n.oxw(2);n.xp6(1),n.Q6J("ngIf",gn.verticalItem(Ie,G))}}function ro(Ee,at){1&Ee&&(n.TgZ(0,"tr"),n._UZ(1,"th",25),n.qZA())}function wo(Ee,at){if(1&Ee&&(n.ynx(0),n.TgZ(1,"tr"),n.YNc(2,$i,2,1,"ng-container",8),n._UZ(3,"th",25),n.qZA(),n.YNc(4,ro,2,0,"tr",8),n.ALo(5,"repeat"),n.BQk()),2&Ee){const G=n.oxw(2);n.xp6(2),n.Q6J("ngForOf",G.verticalResources)("ngForTrackBy",G.itemIndex),n.xp6(2),n.Q6J("ngForOf",n.lcZ(5,4,G.numberOfWeeks-1))("ngForTrackBy",G.itemIndex)}}function io(Ee,at){if(1&Ee&&(n.TgZ(0,"div",22,23)(2,"table",7,24),n.YNc(4,wo,6,6,"ng-container",8),n.ALo(5,"resourceIterator"),n.qZA()()),2&Ee){const G=n.oxw();n.xp6(4),n.Q6J("ngForOf",n.lcZ(5,2,G.verticalResources))("ngForTrackBy",G.itemIndex)}}const Wi=function(Ee,at,G){return{start:Ee,end:at,isAllDay:!0,resources:G}},fo=function(Ee,at,G){return{resourceIndex:Ee,rangeIndex:at,index:G}};function cr(Ee,at){if(1&Ee&&n._UZ(0,"td",29),2&Ee){const G=at.$implicit,Ie=at.index,gn=n.oxw().index,Si=n.oxw().index,zo=n.oxw().index,_r=n.oxw();n.ekj("k-selected",_r.isSlotSelected(n.kEZ(8,Wi,_r.toPlainDate(G),_r.addDay(_r.toPlainDate(G)),_r.resourcesByIndex(_r.verticalResources.length?zo:gn)))),n.Q6J("monthSlot",G)("monthDaySlotTemplateRef",_r.monthDaySlotTemplateRef)("resourcesByIndex",_r.resourcesByIndex(_r.verticalResources.length?zo:gn))("ngClass",_r.daySlotClass(G,_r.verticalResources.length?zo:gn))("id",n.kEZ(12,fo,_r.verticalResources.length?zo:gn,Si,Ie))("title",_r.cellTitle(G))}}function Fr(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,cr,1,16,"td",28),n.BQk()),2&Ee){const G=n.oxw().$implicit,Ie=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",G)("ngForTrackBy",Ie.itemIndex)}}function jr(Ee,at){if(1&Ee&&(n.TgZ(0,"tr"),n.YNc(1,Fr,2,2,"ng-container",8),n.ALo(2,"resourceIterator"),n.qZA()),2&Ee){const G=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",n.lcZ(2,2,G.horizontalResources))("ngForTrackBy",G.itemIndex)}}function fs(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,jr,3,4,"tr",8),n.BQk()),2&Ee){const G=n.oxw();n.xp6(1),n.Q6J("ngForOf",G.weeks)("ngForTrackBy",G.itemIndex)}}function Ms(Ee,at){if(1&Ee&&n._UZ(0,"div",31),2&Ee){const G=at.$implicit,Ie=n.oxw().$implicit,gn=n.oxw();n.Q6J("ngClass",gn.getEventClasses(Ie,G.resources))("ngStyle",gn.getEventStyles(Ie,G))("kendoSchedulerFocusIndex",G.leafIdx)("id",Ie.elementId+"_"+G.leafIdx)("editable",gn.editable)("item",Ie)("index",Ie.index)("rangeIndex",Ie.rangeIndex)("eventTemplate",gn.eventTemplateRef)("resources",G.resources)("resourceIndex",G.leafIdx)}}function Ca(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,Ms,1,11,"div",30),n.BQk()),2&Ee){const G=at.$implicit,Ie=n.oxw();n.xp6(1),n.Q6J("ngForOf",G.resources)("ngForTrackBy",Ie.itemIndex)}}function ks(Ee,at){if(1&Ee&&n._UZ(0,"div",34),2&Ee){const G=at.$implicit,Ie=n.oxw(2);n.Q6J("ngStyle",G.style)("ngClass",G.class)("dragHint",!0)("eventTemplate",Ie.eventTemplateRef)("item",G.item)("resources",G.resources)}}function ts(Ee,at){if(1&Ee&&n._UZ(0,"div",35),2&Ee){const G=at.$implicit,Ie=n.oxw(2);n.Q6J("hint",G)("ngClass",G.class)("format",Ie.resizeHintFormat)}}function na(Ee,at){if(1&Ee&&(n.YNc(0,ks,1,6,"div",32),n.YNc(1,ts,1,3,"div",33)),2&Ee){const G=n.oxw();n.Q6J("ngForOf",G.dragHints)("ngForTrackBy",G.itemIndex),n.xp6(1),n.Q6J("ngForOf",G.resizeHints)("ngForTrackBy",G.itemIndex)}}function Xs(Ee,at){if(1&Ee&&n._UZ(0,"month-view",1),2&Ee){const G=n.oxw();n.Q6J("eventHeight",G.viewEventHeight)("eventTemplate",null==G.eventTemplate?null:G.eventTemplate.templateRef)("slotClass",G.viewSlotClass)("eventClass",G.viewEventClass)("eventStyles",G.viewEventStyles)("groupHeaderTemplate",null==G.groupHeaderTemplate?null:G.groupHeaderTemplate.templateRef)("monthDaySlotTemplate",null==G.monthDaySlotTemplate?null:G.monthDaySlotTemplate.templateRef)("selectedDateFormat",G.selectedDateFormat)("selectedShortDateFormat",G.selectedShortDateFormat)("highlightOngoingEvents",G.viewHighlightOngoingEvents)("weekStart",G.viewWeekStart)("dateRangeFn",G.dateRange)("newRange",G.newRange)}}const Ws=["viewFooter",""];function cs(Ee,at){if(1&Ee){const G=n.EpF();n.TgZ(0,"button",2),n.NdJ("click",function(gn){const zo=n.CHM(G).$implicit,_r=n.oxw();return n.KtG(_r.onItemClick(gn,zo))}),n.TgZ(1,"span",3),n._uU(2),n.qZA()()}if(2&Ee){const G=at.$implicit;n.Q6J("icon",G.fontIcon)("svgIcon",G.svgIcon)("ngClass",G.cssClass)("kendoSchedulerFocusIndex",0),n.xp6(2),n.Oqu(G.text)}}const Ps=["dayTimeViewItem",""];function Qi(Ee,at){if(1&Ee&&n._UZ(0,"kendo-icon-wrapper",9),2&Ee){const G=n.oxw();n.Q6J("name",G.arrowIcons[0])("svgIcon",G.arrowSVGIcons[0])}}function vo(Ee,at){if(1&Ee&&n._UZ(0,"kendo-icon-wrapper",10),2&Ee){const G=n.oxw();n.Q6J("svgIcon",G.arrowRotateCwIcon)}}function pi(Ee,at){if(1&Ee&&n._UZ(0,"kendo-icon-wrapper",11),2&Ee){const G=n.oxw();n.Q6J("svgIcon",G.arrowsNoRepeatIcon)}}function to(Ee,at){if(1&Ee&&n.GkF(0,12),2&Ee){const G=n.oxw();n.Q6J("ngTemplateOutlet",G.eventTemplate)("ngTemplateOutletContext",n.kEZ(2,cn,G.item.event,G.item.event,G.resources))}}function Ro(Ee,at){if(1&Ee&&(n.TgZ(0,"div",15),n._uU(1),n.qZA()),2&Ee){const G=n.oxw(2);n.xp6(1),n.Oqu(G.eventTime)}}function Sr(Ee,at){if(1&Ee&&(n.TgZ(0,"div"),n.YNc(1,Ro,2,1,"div",13),n.TgZ(2,"div",14),n._uU(3),n.qZA()()),2&Ee){const G=n.oxw();n.uIk("title",G.eventTitle),n.xp6(1),n.Q6J("ngIf",!G.isAllDay),n.xp6(2),n.Oqu(G.item.event.title)}}function rs(Ee,at){if(1&Ee&&(n.TgZ(0,"span",16),n._UZ(1,"kendo-icon-wrapper",17),n.qZA()),2&Ee){const G=n.oxw();n.uIk("title",G.deleteMessage),n.xp6(1),n.Q6J("svgIcon",G.xIcon)}}function Os(Ee,at){if(1&Ee&&n._UZ(0,"kendo-icon-wrapper",9),2&Ee){const G=n.oxw();n.Q6J("name",G.arrowIcons[1])("svgIcon",G.arrowSVGIcons[1])}}function Ys(Ee,at){if(1&Ee&&(n.TgZ(0,"span",18),n._UZ(1,"kendo-icon-wrapper",19),n.qZA()),2&Ee){const G=n.oxw();n.xp6(1),n.Q6J("svgIcon",G.caretAltUpIcon)}}function la(Ee,at){if(1&Ee&&(n.TgZ(0,"span",20),n._UZ(1,"kendo-icon-wrapper",21),n.qZA()),2&Ee){const G=n.oxw();n.xp6(1),n.Q6J("svgIcon",G.caretAltDownIcon)}}function Da(Ee,at){1&Ee&&n._UZ(0,"span",24)}function Ka(Ee,at){1&Ee&&n._UZ(0,"span",25)}function nl(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,Da,1,0,"span",22),n.YNc(2,Ka,1,0,"span",23),n.BQk()),2&Ee){const G=n.oxw();n.xp6(1),n.Q6J("ngIf",!G.item.tail),n.xp6(1),n.Q6J("ngIf",!G.item.head)}}function il(Ee,at){1&Ee&&(n.ynx(0),n._UZ(1,"span",26)(2,"span",27),n.BQk())}const xl=["currentTimeMarker"],eo=["currentTimeArrow"],To=["headerHintContainer"],Qo=["allDayCell"];function Dr(Ee,at){1&Ee&&(n.TgZ(0,"tr"),n._UZ(1,"th"),n.qZA())}function _s(Ee,at){if(1&Ee&&(n.TgZ(0,"tr")(1,"th",19,20),n._uU(3),n.qZA()()),2&Ee){const G=n.oxw();n.xp6(3),n.Oqu(G.allDayMessage)}}function ia(Ee,at){if(1&Ee&&(n.ynx(0),n._uU(1),n.BQk()),2&Ee){const G=n.oxw().$implicit,Ie=n.oxw().$implicit,gn=n.oxw();n.xp6(1),n.Oqu(gn.getField(G,Ie.textField))}}function Ia(Ee,at){if(1&Ee&&n.GkF(0,24),2&Ee){const G=n.oxw().$implicit,Ie=n.oxw(2);n.Q6J("ngTemplateOutlet",Ie.groupHeaderTemplateRef)("ngTemplateOutletContext",n.VKq(2,Ye,G))}}function ar(Ee,at){if(1&Ee&&(n.TgZ(0,"th",22),n.YNc(1,ia,2,1,"ng-container",6),n.YNc(2,Ia,1,4,"ng-container",23),n.qZA()),2&Ee){const G=n.oxw().index,Ie=n.oxw();n.uIk("colspan",Ie.horizontalColspan(G)),n.xp6(1),n.Q6J("ngIf",!Ie.groupHeaderTemplateRef),n.xp6(1),n.Q6J("ngIf",Ie.groupHeaderTemplateRef)}}function wa(Ee,at){if(1&Ee&&(n.TgZ(0,"tr"),n.YNc(1,ar,3,3,"th",21),n.ALo(2,"resourceIterator"),n.qZA()),2&Ee){const G=at.index,Ie=n.oxw();n.xp6(1),n.Q6J("ngForOf",n.xi3(2,2,Ie.horizontalResources,G))("ngForTrackBy",Ie.itemIndex)}}function _l(Ee,at){if(1&Ee&&(n.TgZ(0,"span",26),n._uU(1),n.ALo(2,"kendoDate"),n.qZA()),2&Ee){const G=n.oxw(),Ie=G.index,gn=G.$implicit,Si=n.oxw(2);n.uIk("data-dayslot-index",Ie),n.xp6(1),n.Oqu(n.xi3(2,2,gn.start,Si.dateFormat))}}function Ya(Ee,at){if(1&Ee&&n.GkF(0,24),2&Ee){const G=n.oxw().$implicit,Ie=n.oxw(2);n.Q6J("ngTemplateOutlet",Ie.dateHeaderTemplateRef)("ngTemplateOutletContext",n.VKq(2,Sn,G.start))}}function pa(Ee,at){if(1&Ee&&(n.TgZ(0,"th"),n.YNc(1,_l,3,5,"span",25),n.YNc(2,Ya,1,4,"ng-container",23),n.qZA()),2&Ee){const G=n.oxw(2);n.xp6(1),n.Q6J("ngIf",!G.dateHeaderTemplateRef),n.xp6(1),n.Q6J("ngIf",G.dateHeaderTemplateRef)}}function rl(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,pa,3,2,"th",5),n.BQk()),2&Ee){const G=n.oxw();n.xp6(1),n.Q6J("ngForOf",G.daySlots)("ngForTrackBy",G.itemIndex)}}function Nl(Ee,at){if(1&Ee&&n.GkF(0,24),2&Ee){const G=n.oxw().$implicit,Ie=n.oxw().index,gn=n.oxw(2);n.Q6J("ngTemplateOutlet",gn.allDaySlotTemplateRef)("ngTemplateOutletContext",n.WLB(2,Qn,G.start,gn.resourcesByIndex(Ie)))}}const nd=function(Ee,at){return{resourceIndex:Ee,rangeIndex:0,index:at}};function Ct(Ee,at){if(1&Ee&&(n.TgZ(0,"td",30),n.YNc(1,Nl,1,5,"ng-container",23),n.qZA()),2&Ee){const G=at.$implicit,Ie=at.index,gn=n.oxw().index,Si=n.oxw(2);n.ekj("k-selected",Si.isSlotSelected(n.kEZ(7,Wi,Si.toPlainDate(G.start),Si.toPlainDate(G.end),Si.resourcesByIndex(gn)))),n.Q6J("start",G.start)("end",G.end)("id",n.WLB(11,nd,gn,Ie))("ngClass",Si.allDaySlotClass(G,gn)),n.xp6(1),n.Q6J("ngIf",Si.allDaySlotTemplateRef)}}function rn(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,Ct,2,14,"td",29),n.BQk()),2&Ee){const G=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",G.daySlots)("ngForTrackBy",G.itemIndex)}}function We(Ee,at){if(1&Ee&&n._UZ(0,"div",32),2&Ee){const G=at.$implicit,Ie=n.oxw().$implicit,gn=n.oxw(2);n.Q6J("ngClass",gn.getEventClasses(Ie,G.resources,!0))("ngStyle",gn.getEventStyles(Ie,G,!0))("kendoSchedulerFocusIndex",G.leafIdx)("id",Ie.elementId+"_"+G.leafIdx)("isAllDay",!0)("editable",gn.editable)("eventTemplate",gn.allDayEventTemplateRef)("item",Ie)("index",Ie.index)("rangeIndex",Ie.rangeIndex)("resources",G.resources)("resourceIndex",G.leafIdx)}}function Ft(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,We,1,12,"div",31),n.BQk()),2&Ee){const G=at.$implicit,Ie=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",G.resources)("ngForTrackBy",Ie.itemIndex)}}function ct(Ee,at){if(1&Ee&&n._UZ(0,"div",35),2&Ee){const G=n.oxw(3);n.Q6J("isAllDay",!0)("ngStyle",G.dragHints[0].style)("ngClass",G.dragHints[0].class)("dragHint",!0)("eventTemplate",G.eventTemplateRef)("item",G.dragHints[0].item)("resources",G.dragHints[0].resources)}}function Qt(Ee,at){if(1&Ee&&n._UZ(0,"div",36),2&Ee){const G=n.oxw(3);n.Q6J("hint",G.resizeHints[0])("ngClass",G.resizeHints[0].class)("format",G.allDayResizeHintFormat)}}function gi(Ee,at){if(1&Ee&&(n.YNc(0,ct,1,7,"div",33),n.YNc(1,Qt,1,3,"div",34)),2&Ee){const G=n.oxw(2);n.Q6J("ngIf",G.dragHints.length&&G.allDayDragHint),n.xp6(1),n.Q6J("ngIf",G.resizeHints.length&&G.allDayResizeHint)}}function Do(Ee,at){if(1&Ee&&(n.TgZ(0,"div")(1,"table",27)(2,"tr"),n.YNc(3,rn,2,2,"ng-container",5),n.ALo(4,"resourceIterator"),n.qZA()(),n.YNc(5,Ft,2,2,"ng-container",5),n.ALo(6,"async"),n.TgZ(7,"kendo-hint-container",null,28),n.YNc(9,gi,2,2,"ng-template"),n.qZA()()),2&Ee){const G=n.oxw();n.Udp("position","relative"),n.xp6(3),n.Q6J("ngForOf",n.lcZ(4,6,G.horizontalResources))("ngForTrackBy",G.itemIndex),n.xp6(2),n.Q6J("ngForOf",n.lcZ(6,8,G.allDayItems))("ngForTrackBy",G.itemIndex)}}function Po(Ee,at){1&Ee&&n._UZ(0,"div",38,39)}function Or(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,Po,2,0,"div",37),n.ALo(2,"resourceIterator"),n.BQk()),2&Ee){const G=n.oxw();n.xp6(1),n.Q6J("ngForOf",n.lcZ(2,2,G.verticalResources))("ngForTrackBy",G.itemIndex)}}function hs(Ee,at){if(1&Ee&&(n.ynx(0),n._uU(1),n.BQk()),2&Ee){const G=n.oxw(2),Ie=G.index,gn=G.$implicit,Si=n.oxw(2).index,zo=n.oxw();n.xp6(1),n.Oqu(zo.getField(zo.verticalItem(Si,Ie),gn.textField))}}function Zs(Ee,at){if(1&Ee&&n.GkF(0,24),2&Ee){const G=n.oxw(2).index,Ie=n.oxw(2).index,gn=n.oxw();n.Q6J("ngTemplateOutlet",gn.groupHeaderTemplateRef)("ngTemplateOutletContext",n.VKq(2,Ye,gn.verticalItem(Ie,G)))}}function ca(Ee,at){if(1&Ee&&(n.TgZ(0,"th",22),n.YNc(1,hs,2,1,"ng-container",6),n.YNc(2,Zs,1,4,"ng-container",23),n.qZA()),2&Ee){const G=n.oxw().index,Ie=n.oxw(3);n.uIk("rowspan",Ie.verticalRowspan(G)),n.xp6(1),n.Q6J("ngIf",!Ie.groupHeaderTemplateRef),n.xp6(1),n.Q6J("ngIf",Ie.groupHeaderTemplateRef)}}function za(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,ca,3,3,"th",40),n.BQk()),2&Ee){const G=at.index,Ie=n.oxw(2).index,gn=n.oxw();n.xp6(1),n.Q6J("ngIf",gn.verticalItem(Ie,G))}}function cl(Ee,at){if(1&Ee&&(n.TgZ(0,"tr"),n.YNc(1,za,2,1,"ng-container",5),n.TgZ(2,"th",19,20),n._uU(4),n.qZA()()),2&Ee){const G=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",G.verticalResources)("ngForTrackBy",G.itemIndex),n.xp6(3),n.Oqu(G.allDayMessage)}}function yc(Ee,at){if(1&Ee&&(n.ynx(0),n._uU(1),n.ALo(2,"kendoDate"),n.BQk()),2&Ee){const G=n.oxw(2).$implicit;n.xp6(1),n.Oqu(n.xi3(2,1,G.start,"t"))}}function bc(Ee,at){if(1&Ee&&n.GkF(0,24),2&Ee){const G=n.oxw(2).$implicit,Ie=n.oxw(2);n.Q6J("ngTemplateOutlet",Ie.majorTimeHeaderTemplateRef)("ngTemplateOutletContext",n.VKq(2,Sn,G.start))}}const ec=function(Ee){return{"k-slot-cell":Ee}};function Wl(Ee,at){if(1&Ee&&(n.TgZ(0,"th",42),n.YNc(1,yc,3,4,"ng-container",6),n.YNc(2,bc,1,4,"ng-container",23),n.qZA()),2&Ee){const G=n.oxw(3);n.Q6J("ngClass",n.VKq(3,ec,1===G.slotDivisions)),n.xp6(1),n.Q6J("ngIf",!G.majorTimeHeaderTemplateRef),n.xp6(1),n.Q6J("ngIf",G.majorTimeHeaderTemplateRef)}}function va(Ee,at){if(1&Ee&&n.GkF(0,24),2&Ee){const G=n.oxw(2).$implicit,Ie=n.oxw(2);n.Q6J("ngTemplateOutlet",Ie.minorTimeHeaderTemplateRef)("ngTemplateOutletContext",n.VKq(2,Sn,G.start))}}function Hc(Ee,at){if(1&Ee&&(n.TgZ(0,"th",42),n.YNc(1,va,1,4,"ng-container",23),n.qZA()),2&Ee){const G=n.oxw().index,Ie=n.oxw(2);n.Q6J("ngClass",n.VKq(2,ec,G%Ie.slotDivisions==Ie.slotDivisions-1)),n.xp6(1),n.Q6J("ngIf",Ie.minorTimeHeaderTemplateRef)}}function Vc(Ee,at){if(1&Ee&&(n.TgZ(0,"tr"),n.YNc(1,Wl,3,5,"th",41),n.YNc(2,Hc,2,4,"th",41),n.qZA()),2&Ee){const G=at.$implicit;n.xp6(1),n.Q6J("ngIf",G.isMajor),n.xp6(1),n.Q6J("ngIf",!G.isMajor)}}function Mu(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,cl,5,3,"tr",6),n.YNc(2,Vc,3,2,"tr",5),n.BQk()),2&Ee){const G=n.oxw();n.xp6(1),n.Q6J("ngIf",G.verticalResources.length),n.xp6(1),n.Q6J("ngForOf",G.timeSlots)("ngForTrackBy",G.itemIndex)}}function Tl(Ee,at){1&Ee&&n._UZ(0,"div",44,45)}function cc(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,Tl,2,0,"div",43),n.ALo(2,"resourceIterator"),n.BQk()),2&Ee){const G=n.oxw();n.xp6(1),n.Q6J("ngForOf",n.lcZ(2,2,G.verticalResources))("ngForTrackBy",G.itemIndex)}}function Id(Ee,at){if(1&Ee&&n.GkF(0,24),2&Ee){const G=n.oxw().$implicit,Ie=n.oxw(2).index,gn=n.oxw();n.Q6J("ngTemplateOutlet",gn.allDaySlotTemplateRef)("ngTemplateOutletContext",n.WLB(2,Qn,G.start,gn.resourcesByIndex(Ie)))}}function vu(Ee,at){if(1&Ee&&(n.TgZ(0,"td",50),n.YNc(1,Id,1,5,"ng-container",23),n.qZA()),2&Ee){const G=at.$implicit,Ie=at.index,gn=n.oxw(2).index,Si=n.oxw();n.ekj("k-selected",Si.isSlotSelected(n.kEZ(6,Wi,Si.toPlainDate(G.start),Si.toPlainDate(G.end),Si.resourcesByIndex(gn)))),n.Q6J("start",G.start)("end",G.end)("id",n.WLB(10,nd,gn,Ie)),n.xp6(1),n.Q6J("ngIf",Si.allDaySlotTemplateRef)}}function th(Ee,at){if(1&Ee&&(n.TgZ(0,"tr",48),n.YNc(1,vu,2,13,"td",49),n.qZA()),2&Ee){const G=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",G.daySlots)("ngForTrackBy",G.itemIndex)}}function Uh(Ee,at){if(1&Ee&&n.GkF(0,24),2&Ee){n.oxw();const G=n.MAs(1),Ie=n.oxw(4);n.Q6J("ngTemplateOutlet",Ie.timeSlotTemplateRef)("ngTemplateOutletContext",n.WLB(2,Qn,G.startLocalTime,Ie.resourcesByIndex(G.id.resourceIndex)))}}const Jc=function(Ee,at,G){return{start:Ee,end:at,isAllDay:!1,resources:G}};function nh(Ee,at){if(1&Ee&&(n.TgZ(0,"td",52,53),n.YNc(2,Uh,1,5,"ng-container",23),n.qZA()),2&Ee){const G=at.$implicit,Ie=at.index,gn=n.oxw().index,Si=n.oxw(),zo=Si.$implicit,_r=Si.index,zr=n.oxw().index,Lr=n.oxw();n.ekj("k-selected",Lr.isSlotSelected(n.kEZ(12,Jc,Lr.toPlainDateTime(G.start,zo.start),Lr.toPlainDateTime(G.start,zo.end),Lr.resourcesByIndex(Lr.verticalResources.length?zr:gn)))),n.Q6J("ngClass",Lr.timeSlotClass(zo,G.start,Lr.verticalResources.length?zr:gn))("date",G.start)("invariantStart",zo.start)("invariantEnd",zo.end)("workDayStart",Lr.workDayStartTime)("workDayEnd",Lr.workDayEndTime)("workWeekStart",Lr.workWeekStart)("workWeekEnd",Lr.workWeekEnd)("id",n.kEZ(16,fo,Lr.verticalResources.length?zr:gn,Ie,_r)),n.xp6(2),n.Q6J("ngIf",Lr.timeSlotTemplateRef)}}function cd(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,nh,3,20,"td",51),n.BQk()),2&Ee){const G=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",G.daySlots)("ngForTrackBy",G.itemIndex)}}function Cd(Ee,at){if(1&Ee&&(n.TgZ(0,"tr"),n.YNc(1,cd,2,2,"ng-container",5),n.ALo(2,"resourceIterator"),n.qZA()),2&Ee){const G=at.$implicit,Ie=n.oxw(2);n.ekj("k-middle-row",G.isMajor),n.xp6(1),n.Q6J("ngForOf",n.lcZ(2,4,Ie.horizontalResources))("ngForTrackBy",Ie.itemIndex)}}function yu(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,th,2,2,"tr",46),n.YNc(2,Cd,3,6,"tr",47),n.BQk()),2&Ee){const G=n.oxw();n.xp6(1),n.Q6J("ngIf",G.verticalResources.length),n.xp6(1),n.Q6J("ngForOf",G.timeSlots)("ngForTrackBy",G.itemIndex)}}function bu(Ee,at){if(1&Ee&&n._UZ(0,"div",55),2&Ee){const G=at.$implicit,Ie=n.oxw().$implicit,gn=n.oxw();n.Q6J("ngClass",gn.getEventClasses(Ie,G.resources))("ngStyle",gn.getEventStyles(Ie,G))("kendoSchedulerFocusIndex",G.leafIdx)("id",Ie.elementId+"_"+G.leafIdx)("editable",gn.editable)("vertical",!0)("eventTemplate",gn.eventTemplateRef)("item",Ie)("index",Ie.index)("rangeIndex",Ie.rangeIndex)("resources",G.resources)("resourceIndex",G.leafIdx)}}function nu(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,bu,1,12,"div",54),n.BQk()),2&Ee){const G=at.$implicit,Ie=n.oxw();n.xp6(1),n.Q6J("ngForOf",G.resources)("ngForTrackBy",Ie.itemIndex)}}function Zu(Ee,at){if(1&Ee&&n._UZ(0,"div",32),2&Ee){const G=at.$implicit,Ie=n.oxw().$implicit,gn=n.oxw(2);n.Q6J("ngClass",gn.getEventClasses(Ie,G.resources,!0))("ngStyle",gn.getEventStyles(Ie,G,!0))("kendoSchedulerFocusIndex",G.leafIdx)("id",Ie.elementId+"_"+G.leafIdx)("isAllDay",!0)("editable",gn.editable)("eventTemplate",gn.allDayEventTemplateRef)("item",Ie)("index",Ie.index)("rangeIndex",Ie.rangeIndex)("resources",G.resources)("resourceIndex",G.leafIdx)}}function mc(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,Zu,1,12,"div",31),n.BQk()),2&Ee){const G=at.$implicit,Ie=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",G.resources)("ngForTrackBy",Ie.itemIndex)}}function xd(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,mc,2,2,"ng-container",5),n.ALo(2,"async"),n.BQk()),2&Ee){const G=n.oxw();n.xp6(1),n.Q6J("ngForOf",n.lcZ(2,2,G.allDayItems))("ngForTrackBy",G.itemIndex)}}function fu(Ee,at){if(1&Ee&&n._UZ(0,"div",57),2&Ee){const G=n.oxw(2);n.Q6J("isAllDay",G.allDayDragHint)("ngStyle",G.dragHints[0].style)("ngClass",G.dragHints[0].class)("dragHint",!0)("eventTemplate",G.eventTemplateRef)("resources",G.dragHints[0].resources)("item",G.dragHints[0].item)}}function Fl(Ee,at){if(1&Ee&&n._UZ(0,"div",36),2&Ee){const G=at.$implicit,Ie=n.oxw(3);n.Q6J("hint",G)("ngClass",G.class)("format",Ie.allDayResizeHint?Ie.allDayResizeHintFormat:Ie.resizeHintFormat)}}function Jd(Ee,at){if(1&Ee&&(n.ynx(0),n.YNc(1,Fl,1,3,"div",58),n.BQk()),2&Ee){const G=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",G.resizeHints)("ngForTrackBy",G.itemIndex)}}function Jl(Ee,at){if(1&Ee&&(n.YNc(0,fu,1,7,"div",56),n.YNc(1,Jd,2,2,"ng-container",6)),2&Ee){const G=n.oxw();n.Q6J("ngIf",G.dragHints.length&&(!G.allDayDragHint||G.verticalResources.length)),n.xp6(1),n.Q6J("ngIf",G.resizeHints.length&&(!G.allDayResizeHint||G.verticalResources.length))}}function gd(Ee,at){if(1&Ee){const G=n.EpF();n._UZ(0,"multi-day-view",1),n.TgZ(1,"div",2),n.NdJ("itemClick",function(){n.CHM(G);const gn=n.oxw();return n.KtG(gn.showWorkHours=!gn.shouldShowWorkHours)}),n.qZA()}if(2&Ee){const G=n.oxw();n.Q6J("name",G.name)("eventHeight",G.viewEventHeight)("currentTimeMarker",G.viewCurrentTimeMarker)("highlightOngoingEvents",G.viewHighlightOngoingEvents)("showWorkHours",G.shouldShowWorkHours)("scrollTime",G.viewScrollTime)("startTime",G.viewStartTime)("endTime",G.viewEndTime)("workDayStart",G.viewWorkDayStart)("workDayEnd",G.viewWorkDayEnd)("workWeekStart",G.viewWorkWeekStart)("workWeekEnd",G.viewWorkWeekEnd)("slotDuration",G.viewSlotDuration)("slotDivisions",G.viewSlotDivisions)("slotFill",G.viewSlotFill)("slotClass",G.viewSlotClass)("eventClass",G.viewEventClass)("eventStyles",G.viewEventStyles)("allDaySlotTemplate",null==G.allDaySlotTemplate?null:G.allDaySlotTemplate.templateRef)("allDayEventTemplate",null==G.allDayEventTemplate?null:G.allDayEventTemplate.templateRef)("eventTemplate",null==G.eventTemplate?null:G.eventTemplate.templateRef)("groupHeaderTemplate",null==G.groupHeaderTemplate?null:G.groupHeaderTemplate.templateRef)("timeSlotTemplate",null==G.timeSlotTemplate?null:G.timeSlotTemplate.templateRef)("minorTimeHeaderTemplate",null==G.minorTimeHeaderTemplate?null:G.minorTimeHeaderTemplate.templateRef)("majorTimeHeaderTemplate",null==G.majorTimeHeaderTemplate?null:G.majorTimeHeaderTemplate.templateRef)("dateHeaderTemplate",null==G.dateHeaderTemplate?null:G.dateHeaderTemplate.templateRef)("selectedDateFormat",G.selectedDateFormat)("selectedShortDateFormat",G.selectedShortDateFormat),n.xp6(1),n.Q6J("showWorkHours",G.shouldShowWorkHours)}}function gc(Ee,at){if(1&Ee){const G=n.EpF();n._UZ(0,"multi-day-view",1),n.TgZ(1,"div",2),n.NdJ("itemClick",function(){n.CHM(G);const gn=n.oxw();return n.KtG(gn.showWorkHours=!gn.shouldShowWorkHours)}),n.qZA()}if(2&Ee){const G=n.oxw();n.Q6J("name",G.name)("numberOfDays",7)("getStartDate",G.getStartDate)("eventHeight",G.viewEventHeight)("currentTimeMarker",G.viewCurrentTimeMarker)("highlightOngoingEvents",G.viewHighlightOngoingEvents)("showWorkHours",G.shouldShowWorkHours)("scrollTime",G.viewScrollTime)("startTime",G.viewStartTime)("endTime",G.viewEndTime)("workDayStart",G.viewWorkDayStart)("workDayEnd",G.viewWorkDayEnd)("workWeekStart",G.viewWorkWeekStart)("workWeekEnd",G.viewWorkWeekEnd)("weekStart",G.viewWeekStart)("slotDuration",G.viewSlotDuration)("slotDivisions",G.viewSlotDivisions)("slotFill",G.viewSlotFill)("slotClass",G.viewSlotClass)("eventClass",G.viewEventClass)("eventStyles",G.viewEventStyles)("allDaySlotTemplate",null==G.allDaySlotTemplate?null:G.allDaySlotTemplate.templateRef)("allDayEventTemplate",null==G.allDayEventTemplate?null:G.allDayEventTemplate.templateRef)("eventTemplate",null==G.eventTemplate?null:G.eventTemplate.templateRef)("groupHeaderTemplate",null==G.groupHeaderTemplate?null:G.groupHeaderTemplate.templateRef)("timeSlotTemplate",null==G.timeSlotTemplate?null:G.timeSlotTemplate.templateRef)("minorTimeHeaderTemplate",null==G.minorTimeHeaderTemplate?null:G.minorTimeHeaderTemplate.templateRef)("majorTimeHeaderTemplate",null==G.majorTimeHeaderTemplate?null:G.majorTimeHeaderTemplate.templateRef)("dateHeaderTemplate",null==G.dateHeaderTemplate?null:G.dateHeaderTemplate.templateRef)("selectedDateFormat",G.selectedDateFormat)("selectedShortDateFormat",G.selectedShortDateFormat),n.xp6(1),n.Q6J("showWorkHours",G.shouldShowWorkHours)}}const es={name:"@progress/kendo-angular-scheduler",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1694533082,version:"13.5.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};class Ks{constructor(at,G,Ie){this.sender=at,this.selectedDate=G,this.dateRange=Ie}}class xa extends ut.wY{constructor(at,G){super(),this.sender=at,this.action=G}}class ha{constructor(at,G){this.sender=at,Object.assign(this,G)}}class Aa{constructor(at,G){this.sender=at,Object.assign(this,G)}}class yl{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}const Lc={slotClick:ha,slotDblClick:ha,eventClick:Aa,eventDblClick:Aa,eventKeydown:class vl{constructor(at,G){this.sender=at,Object.assign(this,G)}},create:class ml{constructor(at,G){this.sender=at,Object.assign(this,G)}},remove:class Wc extends yl{constructor(at,G){super(),this.sender=at,Object.assign(this,G)}},resizeStart:class ku extends yl{constructor(at,G){super(),this.sender=at,Object.assign(this,G)}},resize:class iu extends yl{constructor(at,G){super(),this.sender=at,Object.assign(this,G)}},resizeEnd:class xu extends yl{constructor(at,G){super(),this.sender=at,Object.assign(this,G)}},dragStart:class Bl extends yl{constructor(at,G){super(),this.sender=at,Object.assign(this,G)}},drag:class Bc extends yl{constructor(at,G){super(),this.sender=at,Object.assign(this,G)}},dragEnd:class Cc extends yl{constructor(at,G){super(),this.sender=at,Object.assign(this,G)}}};class hf extends yl{constructor(at,G){super(),this.sender=at,Object.assign(this,G)}}class Vd{constructor(at,G){this.sender=at,Object.assign(this,G)}}class Fu extends Vd{}let Ch=(()=>{class Ee{constructor(G){this.templateRef=G}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.Rgc,8))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","kendoSchedulerToolbarTemplate",""]]}),Ee})(),mh=(()=>{class Ee{constructor(){this.actionSource=new Wt.x,this.action=this.actionSource.asObservable()}navigate(G){this.actionSource.next(G)}}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275prov=n.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})();class Sd{}var vd=function(Ee){return Ee[Ee.Event=0]="Event",Ee[Ee.Occurrence=1]="Occurrence",Ee[Ee.Series=2]="Series",Ee}(vd||{}),hd=function(Ee){return Ee[Ee.Edit=0]="Edit",Ee[Ee.Remove=1]="Remove",Ee}(hd||{}),Iu=function(Ee){return Ee.initDragSelect="initDragSelect",Ee.dragSelect="dragSelect",Ee.refreshSlotSelection="refreshSlotSelection",Ee.dragSelectRelease="dragSelectRelease",Ee}(Iu||{});let Qh=(()=>{class Ee{constructor(G){this.templateRef=G}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.Rgc,8))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","kendoSchedulerAgendaDateTemplate",""]]}),Ee})(),xh=(()=>{class Ee{constructor(G){this.templateRef=G}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.Rgc,8))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","kendoSchedulerAgendaTimeTemplate",""]]}),Ee})(),Xh=(()=>{class Ee{constructor(G){this.templateRef=G}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.Rgc,8))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","kendoSchedulerAllDayEventTemplate",""]]}),Ee})(),Sh=(()=>{class Ee{constructor(G){this.templateRef=G}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.Rgc,8))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","kendoSchedulerAllDaySlotTemplate",""]]}),Ee})(),pf=(()=>{class Ee{constructor(G){this.templateRef=G}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.Rgc,8))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","kendoSchedulerDateHeaderTemplate",""]]}),Ee})(),Nc=(()=>{class Ee{constructor(G){this.templateRef=G}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.Rgc,8))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","kendoSchedulerEventTemplate",""]]}),Ee})(),wh=(()=>{class Ee{constructor(G){this.templateRef=G}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.Rgc,8))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","kendoSchedulerGroupHeaderTemplate",""]]}),Ee})(),Eh=(()=>{class Ee{constructor(G){this.templateRef=G}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.Rgc,8))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","kendoSchedulerMajorTimeHeaderTemplate",""]]}),Ee})(),oh=(()=>{class Ee{constructor(G){this.templateRef=G}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.Rgc,8))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","kendoSchedulerMinorTimeHeaderTemplate",""]]}),Ee})(),yd=(()=>{class Ee{constructor(G){this.templateRef=G}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.Rgc,8))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","kendoSchedulerMonthDaySlotTemplate",""]]}),Ee})(),Nd=(()=>{class Ee{constructor(G){this.templateRef=G}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.Rgc,8))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","kendoSchedulerMultiWeekDaySlotTemplate",""]]}),Ee})(),Pp=(()=>{class Ee{constructor(G){this.templateRef=G}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.Rgc,8))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","kendoSchedulerTimeSlotTemplate",""]]}),Ee})(),Ad=(()=>{class Ee{constructor(){this.actionSource=new Wt.x,this.itemsSource=new dn.X([]),this.selectedDateSource=new dn.X(null),this.resizeSource=new Wt.x,this.optionsChangeSource=new dn.X({}),this.executeSource=new Wt.x,this.action=this.actionSource.asObservable(),this.items=this.itemsSource.asObservable(),this.selectedDate=this.selectedDateSource.asObservable(),this.resize=this.resizeSource.asObservable(),this.optionsChange=this.optionsChangeSource.asObservable(),this.execute=this.executeSource.asObservable()}notifyAction(G){this.actionSource.next(G)}notifyItems(G){this.itemsSource.next(G)}notifySelectedDate(G){this.selectedDateSource.next(G)}notifyResize(){this.resizeSource.next()}notifyOptionsChange(G){this.optionsChangeSource.next(G)}executeMethod(G,Ie){let gn;return this.executeSource.next({name:G,args:Ie,result:Si=>{gn=Si}}),gn}}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275prov=n.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})(),uc=(()=>{class Ee{constructor(){this.toggleWorkHours=new Wt.x,this.dateRangeSource=new dn.X({start:new Date(0),end:new Date(0),text:"",shortText:""}),this.nextDateSource=new Wt.x,this.navigateSource=new Wt.x,this.viewEventSource=new Wt.x,this.layoutEndSource=new Wt.x,this.optionsChangeSource=new Wt.x,this.slotSelectionStartSource=new Wt.x,this.slotSelectionStartDragSource=new Wt.x,this.slotSelectionStartEndSource=new Wt.x,this.dateRange=this.dateRangeSource.asObservable(),this.nextDate=this.nextDateSource.asObservable(),this.navigate=this.navigateSource.asObservable(),this.viewEvent=this.viewEventSource.asObservable(),this.layoutEnd=this.layoutEndSource.asObservable(),this.optionsChange=this.optionsChangeSource.asObservable(),this.slotSelectionStart=this.slotSelectionStartSource.asObservable(),this.slotSelectionDrag=this.slotSelectionStartDragSource.asObservable(),this.slotSelectionEnd=this.slotSelectionStartEndSource.asObservable()}notifyNextDate(G){this.nextDateSource.next(G)}notifyDateRange(G){this.dateRangeSource.next(G)}notifyLayoutEnd(){this.layoutEndSource.next()}navigateTo(G){this.navigateSource.next(G)}notifyOptionsChange(){this.optionsChangeSource.next(null)}emitEvent(G,Ie){this.viewEventSource.next({name:G,args:Ie})}notifySlotSelectionStart(G){this.slotSelectionStartSource.next(G)}notifySlotSelectionDrag(G){this.slotSelectionStartDragSource.next(G)}notifySlotSelectionEnd(G){this.slotSelectionStartEndSource.next(G)}}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275prov=n.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})();const rh=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,sh={};function wd(Ee){if(sh[Ee])return sh[Ee];const at=[];return Ee.replace(rh,function(G,Ie,gn,Si){at.push(void 0!==Ie?Ie:gn||Si)}),sh[Ee]=function(G){let Ie=G;for(let gn=0;gn<at.length&&Ie;gn++)Ie=Ie[at[gn]];return Ie},sh[Ee]}sh.undefined=()=>{};const Bf=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,Qd={};Qd.undefined=Ee=>Ee;const Hh=Ee=>Ee.charAt(0).toUpperCase()+Ee.slice(1),Sl=Ee=>null!=Ee,Gi=Ee=>"number"==typeof Ee&&!isNaN(Ee),$l=(Ee,at)=>{if(at)for(let G=0;G<at.length;G++)Su(Ee,Ee.dataItem,at[G].field)},fl=(Ee,at,G)=>{const Ie={id:wd(at.id)(Ee),start:wd(at.start)(Ee),startTimezone:wd(at.startTimezone)(Ee),end:wd(at.end)(Ee),endTimezone:wd(at.endTimezone)(Ee),isAllDay:wd(at.isAllDay)(Ee),title:wd(at.title)(Ee),description:wd(at.description)(Ee),recurrenceRule:wd(at.recurrenceRule)(Ee),recurrenceExceptions:wd(at.recurrenceExceptions)(Ee),recurrenceId:wd(at.recurrenceId)(Ee),dataItem:Ee};return $l(Ie,G),Ie};function Ol(Ee,at){const G=[];if(Ee&&Ee.resources&&Ee.resources.length){const Ie=Ee.resources;for(let gn=0;gn<Ie.length;gn++){const Si=at.find(zo=>zo.name===Ie[gn]);Si&&G.push(Si)}}return G}const hc=(Ee,at)=>wd(at)(Ee),fd=(Ee,at,G)=>function Th(Ee){if(Qd[Ee])return Qd[Ee];const at=[];return Ee.replace(Bf,function(G,Ie,gn,Si){at.push(void 0!==Ie?Ie:gn||Si)}),Qd[Ee]=function(G,Ie){let gn=G;const Si=at.length-1;for(let zo=0;zo<Si&&gn;zo++)gn=gn[at[zo]]=gn[at[zo]]||{};gn[at[Si]]=Ie},Qd[Ee]}(at)(Ee,G);function Su(Ee,at,G){fd(Ee,G,hc(at,G))}function gh(Ee,at){for(const G in Ee)if(Ee.hasOwnProperty(G)){const Ie=Ee[G];Array.isArray(Ie)?at[G]=Ie.slice(0):!Ie||"object"!=typeof Ie||Ie instanceof Date?at[G]=Ie:(at[G]=at[G]||{},gh(Ie,at[G]))}}function Ed(Ee){const at={};return gh(Ee,at),at}const ep=function Dh(){if("function"==typeof Symbol&&Symbol.iterator)return Symbol.iterator;const Ee=Object.getOwnPropertyNames(Map.prototype),at=Map.prototype;for(let G=0;G<Ee.length;++G){const Ie=Ee[G];if("entries"!==Ie&&"size"!==Ie&&at[Ie]===at.entries)return Ie}}();function Vh(Ee){return(0,sn.R)(Ee,"click")}function Ju(Ee){const G=Vh(Ee),Ie=G.pipe((0,ge.e)(250));return G.pipe(function xe(Ee){return(0,Ce.e)((at,G)=>{let Ie=[];return at.subscribe((0,De.x)(G,gn=>Ie.push(gn),()=>{G.next(Ie),G.complete()})),(0,fe.Xf)(Ee).subscribe((0,De.x)(G,()=>{const gn=Ie;Ie=[],G.next(gn)},Te.Z)),()=>{Ie=null}})}(Ie),(0,Oe.h)(gn=>2===gn.length),(0,Oe.h)(gn=>gn[1].target===gn[0].target),(0,Le.U)(gn=>gn[1]))}function ou(Ee){return Ee.sort((at,G)=>at.startTime-G.startTime||G.endTime-at.endTime),Ee}let qa=(()=>{class Ee{constructor(G){this.ngZone=G,this.changes=new n.vpe,this.changedSource=new Wt.x,this.changed=this.changedSource.asObservable().pipe((0,Gt.b)(0))}endEdit(){this.changes.emit({action:"cancel",formGroup:this.hasNewEvent?this.newEventGroup.group:this.editedEvent.formGroup})}removeEvent(G){this.changes.emit({action:"remove",dataItem:G})}addEvent(G){this.newEventGroup={formGroup:G},this.onChanged()}editEvent(G,Ie=void 0,gn){this.editedEvent={dataItem:G,formGroup:Ie,mode:gn},this.onChanged()}close(){this.newEventGroup=this.editedEvent=null,this.onChanged()}save(){const{dataItem:G,formGroup:Ie}=this.context;this.changes.emit({action:"save",dataItem:G,formGroup:Ie,isNew:this.hasNewEvent,mode:this.occurrenceEditMode})}isEditing(){return Sl(this.context)}get occurrenceEditMode(){return this.hasNewEvent?vd.Series:this.editedEvent.mode||vd.Event}get hasNewEvent(){return Sl(this.newEventGroup)}get newEvent(){return this.hasNewEvent?this.newEventGroup.group.value:{}}get context(){return this.hasNewEvent?this.newEventGroup:this.editedEvent}onChanged(){this.ngZone.runOutsideAngular(()=>{this.changedSource.next()})}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.LFG(n.R0b))},Ee.\u0275prov=n.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})(),qh=(()=>{class Ee{constructor(G){this.templateRef=G}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.Rgc,8))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","kendoSchedulerEditDialogTemplate",""]],inputs:{autoFocusedElement:"autoFocusedElement"}}),Ee})(),Mh=(()=>{class Ee{constructor(){this.changes=new n.vpe}}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275prov=n.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})(),Uc=(()=>{class Ee{constructor(){this.focus=new n.vpe,this.focusIn=new n.vpe,this.focusOut=new n.vpe,this.click=new n.vpe,this.keydown=new n.vpe,this.windowBlur=new n.vpe}}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275prov=n.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})(),pu=(()=>{class Ee{constructor(G,Ie,gn,Si){this.renderer=G,this.wrapper=Ie,this.domEvents=gn,this.zone=Si,this.items=new Set,this.elementMap=new WeakMap,this.subs=new fn.w0,this.subs.add(this.domEvents.focus.subscribe(zo=>this.onFocusIn(zo))),this.subs.add(this.domEvents.focusOut.subscribe(()=>this.onFocusOut()))}get activeElement(){if(this.activeItem)return this.activeItem.element}get focusableItems(){return this.items}ngOnDestroy(){this.subs.unsubscribe()}register(G){this.activeItem||(this.activeItem=G,G.toggle(!0)),this.items.add(G),this.elementMap.set(G.element.nativeElement,G),this.toggleWrapper()}unregister(G){this.items.delete(G),this.elementMap.delete(G.element.nativeElement),G===this.activeItem&&this.activateNext(),this.toggleWrapper()}focus(){this.activeItem?this.activeItem.focus():this.focusContent()}focusContent(){const G=Array.from(this.focusableItems),Ie=this.activeItem?.containerType,gn="content"===Ie?this.activeItem:G.find(_r=>"content"===_r.containerType),Si="toolbar"===Ie?this.activeItem:G.find(_r=>"toolbar"===_r.containerType),zo=gn||Si;zo.focus(),this.activeItem=zo}focusToolbar(){const Ie=Array.from(this.focusableItems).find(gn=>"toolbar"===gn.containerType);Ie&&Ie.focus(),this.activeItem=Ie}focusNext(G){const Ie=this.activeItem;return this.activateNext(G),this.activeItem&&this.activeItem.focus(),this.activeItem!==Ie}focusByIndex(G){const Ie=Array.from(this.items.values())[G];Ie&&(this.activate(Ie),this.focus(),this.zone.onStable.pipe((0,Ut.q)(1)).subscribe(()=>{Array.from(this.items.values())}))}activate(G){this.items.forEach(Ie=>{Ie.toggle(Ie===G)}),this.activeItem=G}activateNext(G){const Ie=this.findNext(G);this.activeItem=Ie,this.activeItem?.focus()}findNext(G){const{offset:Ie,nowrap:gn}={nowrap:!1,offset:1,...G},Si=Array.from(this.items.values()).filter(zr=>zr.canFocus()).sort((zr,Lr)=>zr.focusIndex-Lr.focusIndex);if(0===Si.length)return null;if(!this.activeItem)return gn?null:Si[0];let _r=Si.indexOf(this.activeItem)+Ie;return gn?_r=Math.max(0,Math.min(Si.length-1,_r)):(_r%=Si.length,_r<0&&(_r=Si.length-1)),Si[_r]}toggleWrapper(){this.wrapper&&this.renderer.setAttribute(this.wrapper.nativeElement,"tabindex",this.activeItem?"-1":"0")}onFocusIn(G){const Ie=this.elementMap.get(G.target);!Ie||Ie===this.focusedItem||(this.focusedItem&&this.focusedItem.toggleFocus(!1),this.activate(Ie),Ie.toggleFocus(!0),this.focusedItem=Ie)}onFocusOut(){this.focusedItem&&(this.focusedItem.toggleFocus(!1),this.focusedItem=null)}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.LFG(n.Qsj,8),n.LFG(n.SBq,8),n.LFG(Uc),n.LFG(n.R0b))},Ee.\u0275prov=n.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})(),Od=(()=>{class Ee{constructor(G,Ie,gn,Si,zo){this.dialogService=G,this.localization=Ie,this.changeDetector=gn,this.focusService=Si,this.viewState=zo,this.isOpen=!1}openRemoveConfirmationDialog(){const G=this.dialogService.open({title:this.textFor("deleteDialogTitle"),content:this.textFor("deleteConfirmation"),actions:[{text:this.textFor("cancel"),value:!1},{text:this.textFor("destroy"),value:!0}],appendTo:this.container,autoFocusedElement:"button:nth-child(2)"});return this.isOpen=!0,this.changeDetector.markForCheck(),G.result.pipe((0,Le.U)(Ie=>(this.isOpen=!1,Ie instanceof mi.nw?(this.focusService.focus(),!1):(this.viewState.layoutEnd.pipe((0,Ut.q)(1)).subscribe(()=>this.focusService.focus()),Ie.value))))}openRecurringConfirmationDialog(G){const Ie=this.dialogService.open({actions:[{text:this.textFor(G===hd.Edit?"editOccurrence":"deleteOccurrence"),value:vd.Occurrence},{text:this.textFor(G===hd.Edit?"editSeries":"deleteSeries"),value:vd.Series}],appendTo:this.container,autoFocusedElement:"button:nth-child(1)",content:this.textFor(G===hd.Edit?"editRecurringConfirmation":"deleteRecurringConfirmation"),title:this.textFor(G===hd.Edit?"editRecurringDialogTitle":"deleteRecurringDialogTitle")});return this.isOpen=!0,this.changeDetector.markForCheck(),Ie.result.pipe((0,Le.U)(gn=>(this.isOpen=!1,this.focusService.focus(),gn instanceof mi.nw?void 0:gn.value)))}textFor(G){return this.localization.get(G)}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.LFG(mi.xA),n.LFG(o.oQ),n.LFG(n.sBO),n.LFG(pu),n.LFG(uc))},Ee.\u0275prov=n.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})(),Fd=(()=>{class Ee extends o.oQ{constructor(G,Ie,gn){super(G,Ie,gn)}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.LFG(o.mM),n.LFG(o.ez,8),n.LFG(o.lw,8))},Ee.\u0275prov=n.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})();const qd={id:"id",start:"start",startTimezone:"startTimezone",end:"end",endTimezone:"endTimezone",isAllDay:"isAllDay",title:"title",description:"description",recurrenceRule:"recurrenceRule",recurrenceId:"recurrenceId",recurrenceExceptions:"recurrenceExceptions"};let Wh=(()=>{class Ee{constructor(){this.createElement=new n.vpe,this.exportClick=new n.vpe,this.done=new n.vpe,this.elementReady=new n.vpe}save(){if((0,a.g$)(this.elementReady)){if((0,a.g$)(this.createElement))this.createElement.emit();else if((0,n.X6Q)())throw new Error("No active Scheduler view to export.")}else if((0,n.X6Q)())throw new Error("Creating PDF requires including the PDFModule and adding the <kendo-scheduler-pdf> component.")}}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275prov=n.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})();class Df extends yl{}let Au=(()=>{class Ee{constructor(G,Ie){this.element=G,this.renderer=Ie,this.hostClasses=!0}get display(){return this.loading||this.force?"block":"none"}toggle(G){this.force=G,this.renderer.setStyle(this.element.nativeElement,"display",this.display)}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.SBq),n.Y36(n.Qsj))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["","kendoSchedulerLoading",""]],hostVars:4,hostBindings:function(G,Ie){2&G&&(n.Udp("display",Ie.display),n.ekj("k-loading-mask",Ie.hostClasses))},inputs:{loading:"loading"},attrs:Ho,decls:2,vars:0,consts:[[1,"k-loading-image"],[1,"k-loading-color"]],template:function(G,Ie){1&G&&n._UZ(0,"div",0)(1,"div",1)},encapsulation:2}),Ee})(),ef=(()=>{class Ee{constructor(G,Ie,gn){this.element=G,this.renderer=Ie,this.focusService=gn,this.focusIndex=0,this.containerType="content",this.toggle(!1),this.focusService.register(this)}get visible(){return"none"!==this.element.nativeElement.style.display}get enabled(){return!this.element.nativeElement.disabled}ngAfterViewChecked(){const G=this.element.nativeElement;!G.closest(".k-scheduler-views-wrapper")||!(0,a.X_)()||((0,a.pn)(G)?this.focusService.register(this):this.focusService.unregister(this))}ngOnDestroy(){this.focusService.unregister(this)}toggle(G){G!==this.active&&(this.renderer.setAttribute(this.element.nativeElement,"tabIndex",G?"0":"-1"),this.active=G)}canFocus(){return this.visible&&this.enabled}focus(){this.element.nativeElement.focus()}toggleFocus(G){const Ie=this.element.nativeElement,gn=Ie.matches(".k-button-group .k-button")?"k-focus":"k-selected";G?this.renderer.addClass(Ie,gn):this.renderer.removeClass(Ie,gn),Ie.matches(".k-scheduler-agendaview .k-scheduler-content .k-selected")&&(Ie.closest(".k-scheduler-agendaview").querySelector('[aria-selected="true"]')?.removeAttribute("aria-selected"),this.renderer.setAttribute(Ie,"aria-selected",G.toString()))}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(pu))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","kendoSchedulerFocusIndex",""]],inputs:{focusIndex:["kendoSchedulerFocusIndex","focusIndex"],containerType:"containerType"}}),Ee})();const Bu=Ee=>String(Ee).trim().split(" "),ru=(Ee,at)=>{const G=Bu(at);return!!Bu(Ee.className).find(Ie=>G.indexOf(Ie)>=0)},Qc=(Ee,at,G)=>{for(;Ee&&Ee!==G&&!at(Ee);)Ee=Ee.parentNode;if(Ee!==G)return Ee},kh=Ee=>{const at=Ee.wheelDeltaY;return Ee.wheelDelta&&(void 0===at||at)?Ee.wheelDelta:Ee.detail&&Ee.axis===Ee.VERTICAL_AXIS?10*-Ee.detail:0};function Mf(Ee,at){const G="vertical"===at?"Height":"Width";return Ee[`scroll${G}`]>Ee[`client${G}`]&&(0,a.LF)()>0}const pd=(Ee,at,G,Ie)=>Ee<G&&at>Ie||G<=Ee&&Ee<Ie||G<at&&at<=Ie&&Ee<at,su=(Ee,at,G)=>at.getTime()<=Ee.getTime()&&Ee.getTime()<=G.getTime(),kf=({start:Ee,end:at})=>{const G=Ee.stripTime(),Ie=at.stripTime();return Ie.getTime()!==at.getTime()||G.getTime()===Ie.getTime()?Ie.addDays(1):Ie};function $u(Ee){const at=new Date(1980,0,1,0,0,0);return Ee&&at.setHours(Ee.getHours(),Ee.getMinutes(),Ee.getSeconds(),Ee.getMilliseconds()),at}const jh=(Ee,at)=>{const G=new Date(Ee.getTime());return G.setUTCDate(G.getUTCDate()+at),G};function Ih(Ee,at){return new Date(Date.UTC(Ee.getFullYear(),Ee.getMonth(),Ee.getDate(),at.getHours(),at.getMinutes(),at.getSeconds(),at.getMilliseconds()))}function Pd(Ee){return new Date(Date.UTC(Ee.getFullYear(),Ee.getMonth(),Ee.getDate()))}function Rd(Ee){return new Date(Date.UTC(Ee.getUTCFullYear(),Ee.getUTCMonth(),Ee.getUTCDate()))}function If(Ee){return new Date(Date.UTC(Ee.getFullYear(),Ee.getMonth(),Ee.getDate(),Ee.getHours(),Ee.getMinutes(),Ee.getSeconds(),Ee.getMilliseconds()))}function eu(Ee,at){return new Date(Ee.getFullYear(),Ee.getMonth(),Ee.getDate(),at.getHours(),at.getMinutes())}function lh(Ee,at){let G,Ie;return at.end<=Ee.end?(Ie=Ee.end,G=at.start):(G=Ee.start,Ie=at.end),{start:G,end:Ie}}function zf(Ee,at){const G=at.data;for(let Ie=0;Ie<G.length;Ie++)if(hc(G[Ie],at.valueField)===Ee)return Ie;return-1}function ch(Ee,at){const G=zf(Ee,at);return G>=0?at.data[G]:{}}function tp(Ee){const at=[];for(let G=0;G<Ee.length;G++){const Ie=Object.assign({},Ee[G]);Ie.resources=Ie.resources.slice(0),at.push(Ie)}return at}function Qu(Ee,at){const G=hc(Ee,at.field);return Array.isArray(G)?function Uf(Ee,at){return Ee.map(G=>ch(G,at))}(G,at):ch(G,at)}function zu(Ee,{taskResources:at,hasGroups:G,spans:Ie,allResources:gn=[]}){let Si=[];for(let zo=0;zo<at.length;zo++){const _r=at[zo];if(!_r.data){Si=[{leafIdx:0,resources:[]}];continue}const zr=gn.indexOf(_r);let Lr=hc(Ee,_r.field);Array.isArray(Lr)||(Lr=[Lr]);const ws=[];for(let $s=0;$s<Lr.length;$s++){const ya=zf(Lr[$s],_r);if(ya<0){if(G)continue;return[{leafIdx:0,resources:[]}]}const ua=_r.data[ya];if(0!==zo||!G&&0!==$s){if(G){let Ja=Si;Lr.length>1&&(Ja=tp(Si),ws.push(...Ja));for(let jl=0;jl<Ja.length;jl++)Ja[jl].leafIdx+=ya*Ie[zo],Ja[jl].resources[zr]=ua}else if($s>0)for(let Ja=0;Ja<Si.length;Ja++)Si[Ja].resources[zr].push(ua)}else{const Ja=[];Ja[zr]=_r.multiple&&!G?[ua]:ua,Si.push({leafIdx:G?ya*Ie[zo]:0,color:hc(ua,_r.colorField),resources:Ja})}}ws.length&&(Si=ws)}return function Yh(Ee,at,G){for(let Ie=0;Ie<at.length;Ie++){const gn=at[Ie];for(let Si=0;Si<G.length;Si++){const zo=G[Si];!gn.resources[Si]&&zo.data&&(gn.resources[Si]=Qu(Ee,zo))}}}(Ee,Si,gn),Si}function Ou(Ee,at){if(void 0!==at.rowIndex)return at.rowIndex;for(let G=0;G<Ee.length;G++)if(!Ee[G])return G;return Ee.length}function _m(Ee){return!(!Ee.event||!Ee.event.recurrenceRule)}function Af(Ee){return Ee.event&&Sl(Ee.event.recurrenceId)&&!Ee.event.recurrenceRule}const ac=(Ee,at,G)=>Ee.left<=at&&at<=Ee.left+Ee.width&&Ee.top<=G&&G<=Ee.top+Ee.height,au=(Ee,at)=>Ee.left<=at&&at<=Ee.left+Ee.width,wu=Ee=>`${Ee}px`,Of=Ee=>{if(!Ee)return null;const at=Ee.getBoundingClientRect(),G=document.documentElement;return{top:at.top+(window.pageYOffset||G.scrollTop)-(G.clientTop||0),left:at.left+(window.pageXOffset||G.scrollLeft)-(G.clientLeft||0),width:at.width,height:at.height}},vm=Ee=>"KENDO-RESIZE-SENSOR"===Ee.nodeName||ru(Ee,"k-loading-mask"),Np=(Ee,at)=>{for(const G in at)at.hasOwnProperty(G)&&(Ee.style[G]=wu(at[G]))},Yt=Ee=>{const at=[];if((Ee=>"string"==typeof Ee)(Ee))at.push(Ee);else if((Ee=>Array.isArray(Ee))(Ee))at.push(...Ee);else if((Ee=>"object"==typeof Ee)(Ee))for(const G in Ee)Ee.hasOwnProperty(G)&&Ee[G]&&at.push(G);return at};function Ri(Ee,at,G,Ie){const gn={skeleton:"yMMMMEEEEdhm"},zo=d(Ee,at)?"t":gn;return G?`${(0,Eo.p6)(Ee,{skeleton:"yMMMMEEEEd"},Ie)}`:`${(0,Eo.p6)(Ee,gn,Ie)}\u2013${(0,Eo.p6)(at,zo,Ie)}`}function ee(Ee,at,G){const Ie=Ee.get(at);return Ie&&Ie.value||G}const Yn=()=>!1,Bo={caretAltLeftIcon:xo.Me8,caretAltRightIcon:xo.bI8,calendarIcon:xo.CHk};let $r=(()=>{class Ee{constructor(G,Ie,gn,Si,zo){this.popupService=G,this.toolbarService=Ie,this.localization=gn,this.cd=Si,this.viewContext=zo,this.hostClass=!0,this.dateRangeText={short:"",long:"",current:""},this.isMouseDown=!1,this.subs=this.localization.changes.subscribe(()=>{Si.markForCheck()})}set calendar(G){G&&G.focus()}get todayText(){return this.localization.get("today")}get calendarTodayText(){return this.localization.get("calendarToday")}get nextText(){return this.localization.get("nextTitle")}get previousText(){return this.localization.get("previousTitle")}get ctx(){return this.toolbarService.context}svgIcon(G){return Bo[G]}onBlur(){this.isMouseDown||this.closePopup()}onMouseDown(){this.isMouseDown=!0}ngOnInit(){(0,a.X_)()&&(this.subs.add(this.ctx.dateRange.subscribe(G=>{this.dateRangeText.short=G?.shortText,this.dateRangeText.long=G?.text,this.setDateRangeText()})),this.subs.add(this.viewContext.resize.subscribe(()=>{this.setDateRangeText()})))}ngOnDestroy(){this.subs.unsubscribe(),this.closePopup()}toggleSelectedDate(G,Ie){if(this.popupRef)this.closePopup();else{const gn={anchor:G,content:Ie};this.localization.rtl&&(gn.popupClass="k-rtl"),this.popupRef=this.popupService.open(gn)}return this.isMouseDown=!1,!1}selectDate(G){this.closePopup(),this.toolbarService.navigate({type:"select-date",date:G})}prevClick(){return this.toolbarService.navigate({type:"prev"}),!1}nextClick(){return this.toolbarService.navigate({type:"next"}),!1}todayClick(){return this.toolbarService.navigate({type:"today"}),!1}closePopup(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)}setDateRangeText(){const G=window.matchMedia("(min-width: 1024px)").matches;this.dateRangeText.current=G?this.dateRangeText.long:this.dateRangeText.short,this.cd.detectChanges()}get arrowIcons(){return this.localization.rtl?["caret-alt-right","caret-alt-left"]:["caret-alt-left","caret-alt-right"]}get arrowSVGIcons(){return this.localization.rtl?["caretAltRightIcon","caretAltLeftIcon"]:["caretAltLeftIcon","caretAltRightIcon"]}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(Ko.qL),n.Y36(mh),n.Y36(o.oQ),n.Y36(n.sBO),n.Y36(Ad))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["","kendoSchedulerToolbarNavigation",""]],viewQuery:function(G,Ie){if(1&G&&n.Gf(_t,5),2&G){let gn;n.iGM(gn=n.CRH())&&(Ie.calendar=gn.first)}},hostVars:2,hostBindings:function(G,Ie){2&G&&n.ekj("k-toolbar-group",Ie.hostClass)},inputs:{min:"min",max:"max"},features:[n._Bn([Ko.qL])],attrs:Zn,decls:11,vars:17,consts:[["role","group",1,"k-scheduler-navigation","k-button-group","k-button-group-solid"],["kendoButton","","containerType","toolbar",1,"k-nav-today",3,"kendoSchedulerFocusIndex","click"],["kendoButton","","containerType","toolbar",1,"k-nav-prev",3,"icon","svgIcon","kendoSchedulerFocusIndex","click"],["kendoButton","","type","button","containerType","toolbar",1,"k-nav-next",3,"icon","svgIcon","kendoSchedulerFocusIndex","click"],["kendoButton","","type","button","icon","calendar","fillMode","flat","role","button","containerType","toolbar",1,"k-nav-current",3,"svgIcon","kendoSchedulerFocusIndex","mousedown","mouseup","keydown.enter","keydown.alt.arrowdown"],["anchor",""],["template",""],[3,"value","min","max","blur","keydown.escape","valueChange"],["calendar",""],[3,"today"]],template:function(G,Ie){if(1&G){const gn=n.EpF();n.TgZ(0,"span",0)(1,"button",1),n.NdJ("click",function(){return Ie.todayClick()}),n._uU(2),n.qZA(),n.TgZ(3,"button",2),n.NdJ("click",function(){return Ie.prevClick()}),n.qZA(),n.TgZ(4,"button",3),n.NdJ("click",function(){return Ie.nextClick()}),n.qZA()(),n.TgZ(5,"button",4,5),n.NdJ("mousedown",function(){return Ie.onMouseDown()})("mouseup",function(){n.CHM(gn);const zo=n.MAs(6),_r=n.MAs(10);return n.KtG(Ie.toggleSelectedDate({nativeElement:zo.element},_r))})("keydown.enter",function(){n.CHM(gn);const zo=n.MAs(6),_r=n.MAs(10);return n.KtG(Ie.toggleSelectedDate({nativeElement:zo.element},_r))})("keydown.alt.arrowdown",function(){n.CHM(gn);const zo=n.MAs(6),_r=n.MAs(10);return n.KtG(Ie.toggleSelectedDate({nativeElement:zo.element},_r))}),n.TgZ(7,"span"),n._uU(8),n.qZA()(),n.YNc(9,qo,4,6,"ng-template",null,6,n.W1O)}2&G&&(n.xp6(1),n.Q6J("kendoSchedulerFocusIndex",0),n.uIk("title",Ie.todayText),n.xp6(1),n.hij(" ",Ie.todayText," "),n.xp6(1),n.Q6J("icon",Ie.arrowIcons[0])("svgIcon",Ie.svgIcon(Ie.arrowSVGIcons[0]))("kendoSchedulerFocusIndex",0),n.uIk("title",Ie.previousText)("aria-label",Ie.previousText),n.xp6(1),n.Q6J("icon",Ie.arrowIcons[1])("svgIcon",Ie.svgIcon(Ie.arrowSVGIcons[1]))("kendoSchedulerFocusIndex",0),n.uIk("title",Ie.nextText)("aria-label",Ie.nextText),n.xp6(1),n.Q6J("svgIcon",Ie.svgIcon("calendarIcon"))("kendoSchedulerFocusIndex",0),n.uIk("aria-live","polite"),n.xp6(3),n.Oqu(null==Ie.dateRangeText?null:Ie.dateRangeText.current))},dependencies:[Bn.r0,ut.eV,ut.RB,ef,Xt.Ov],encapsulation:2,changeDetection:0}),Ee})(),ea=(()=>{class Ee{constructor(G,Ie){this.service=G,this.localization=Ie,this.responsiveBreakpoint=1024}get ctx(){return this.service.context}get selectView(){return this.localization.get("selectView")}ngOnDestroy(){this.detachDomEvents&&this.detachDomEvents()}select(G){this.ctx.selectedView!==G&&this.service.navigate({type:"view-change",view:G})}onChange(G){const Ie=this.ctx.views.find(gn=>gn.name===G.target.value);Ie&&this.select(Ie)}isSelected(G){return this.ctx.selectedView===G}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(mh),n.Y36(o.oQ))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["","kendoSchedulerToolbarViewSelector",""]],inputs:{toolbarWidth:"toolbarWidth",responsiveBreakpoint:"responsiveBreakpoint"},attrs:Cr,decls:2,vars:2,consts:[["class","k-views-dropdown k-picker-md k-rounded-md k-picker-solid k-dropdownlist k-picker","containerType","toolbar",3,"kendoSchedulerFocusIndex","change",4,"ngIf"],["class","k-toolbar-button-group k-scheduler-views k-button-group k-button-group-solid","role","group",4,"ngIf"],["containerType","toolbar",1,"k-views-dropdown","k-picker-md","k-rounded-md","k-picker-solid","k-dropdownlist","k-picker",3,"kendoSchedulerFocusIndex","change"],[3,"selected","value",4,"ngFor","ngForOf"],[3,"selected","value"],["role","group",1,"k-toolbar-button-group","k-scheduler-views","k-button-group","k-button-group-solid"],["kendoButton","","type","button","containerType","toolbar",3,"selected","kendoSchedulerFocusIndex","click",4,"ngFor","ngForOf"],["kendoButton","","type","button","containerType","toolbar",3,"selected","kendoSchedulerFocusIndex","click"],[1,"k-button-text"]],template:function(G,Ie){1&G&&(n.YNc(0,xs,2,3,"select",0),n.YNc(1,Ts,2,1,"span",1)),2&G&&(n.Q6J("ngIf",(null==Ie.ctx.views?null:Ie.ctx.views.length)>1&&Ie.toolbarWidth<=Ie.responsiveBreakpoint),n.xp6(1),n.Q6J("ngIf",Ie.toolbarWidth>Ie.responsiveBreakpoint))},dependencies:[Bn.r0,Xt.O5,ef,Xt.sg],encapsulation:2}),Ee})(),Fa=(()=>{class Ee{constructor(G,Ie,gn){this.service=G,this.element=Ie,this.zone=gn,this.hostClasses=!0,this.toolbarRole="toolbar",this.navigate=new n.vpe,this.toolbarWidthChange=new n.vpe,this.templateContext={},this.subs=new fn.w0,this.subs.add(G.action.subscribe(Si=>this.navigate.next(Si)))}ngOnInit(){this.subs.add(this.selectedDate.subscribe(G=>this.templateContext.selectedDate=G)),this.subs.add(this.dateRange.subscribe(G=>this.templateContext.dateRange=G)),this.resizeHandler()}ngOnChanges(){this.service.context={dateRange:this.dateRange,selectedDate:this.selectedDate,views:this.views,selectedView:this.selectedView},Object.assign(this.templateContext,{views:this.views,selectedView:this.selectedView})}ngOnDestroy(){this.subs.unsubscribe()}resizeHandler(){const G=this.element.nativeElement;this.zone.run(()=>this.toolbarWidth=G.offsetWidth),this.toolbarWidthChange.emit(this.toolbarWidth)}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(mh),n.Y36(n.SBq),n.Y36(n.R0b))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["kendo-scheduler-toolbar"]],hostVars:7,hostBindings:function(G,Ie){2&G&&(n.uIk("role",Ie.toolbarRole),n.ekj("k-scheduler-toolbar",Ie.hostClasses)("k-toolbar",Ie.hostClasses)("k-toolbar-md",Ie.hostClasses))},inputs:{selectedView:"selectedView",views:"views",dateRange:"dateRange",selectedDate:"selectedDate",template:"template",min:"min",max:"max"},outputs:{navigate:"navigate",toolbarWidthChange:"toolbarWidthChange"},features:[n.TTD],decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"resize"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["kendoSchedulerToolbarNavigation","",3,"min","max"],[1,"k-spacer"],["kendoSchedulerToolbarViewSelector","",3,"toolbarWidth"]],template:function(G,Ie){if(1&G&&(n.YNc(0,Ua,1,2,null,0),n.YNc(1,$o,3,3,"ng-template",null,1,n.W1O),n.TgZ(3,"kendo-resize-sensor",2),n.NdJ("resize",function(){return Ie.resizeHandler()}),n.qZA()),2&G){const gn=n.MAs(2);n.Q6J("ngIf",Ie.template)("ngIfElse",gn),n.xp6(3),n.Akn("display: contents;")}},dependencies:[$r,ea,a.NG,Xt.O5,Xt.tP],encapsulation:2}),Ee})(),el=(()=>{class Ee{constructor(){this.valueChange=new n.vpe,this.getField=hc,this.onTouchedCallback=G=>{},this.onChangeCallback=G=>{}}writeValue(G){this.resourceValue=G}getResourceStyle(G){return{"background-color":hc(G,this.resource.colorField),"margin-right":Sl(hc(G,this.resource.valueField))?"8px":"4px"}}onResourceValueChange(G){this.resourceValue=G,this.emitChange(this.resourceValue)}registerOnChange(G){this.onChangeCallback=G}registerOnTouched(G){this.onTouchedCallback=G}emitChange(G){this.onChangeCallback(G),this.valueChange.emit(G)}}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275dir=n.lG2({type:Ee,inputs:{resource:"resource"},outputs:{valueChange:"valueChange"}}),Ee})();const bl={multi:!0,provide:Mi.JU,useExisting:(0,n.Gpc)(()=>Ql)};let Ql=(()=>{class Ee extends el{getTagStyle(G){return{"background-color":G[this.resource.colorField]}}focus(){this.resourceMultiSelect.focus()}}return Ee.\u0275fac=function(){let at;return function(Ie){return(at||(at=n.n5z(Ee)))(Ie||Ee)}}(),Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["kendo-multiple-resource-editor"]],viewQuery:function(G,Ie){if(1&G&&n.Gf(Ar,7),2&G){let gn;n.iGM(gn=n.CRH())&&(Ie.resourceMultiSelect=gn.first)}},features:[n._Bn([bl]),n.qOj],decls:4,vars:5,consts:[[3,"data","textField","valueField","valuePrimitive","value","valueChange"],["resourceMultiSelect",""],["kendoDropDownListItemTemplate",""],["kendoMultiSelectTagTemplate",""],["class","k-scheduler-mark",3,"ngStyle",4,"ngIf"],[1,"k-scheduler-mark",3,"ngStyle"]],template:function(G,Ie){1&G&&(n.TgZ(0,"kendo-multiselect",0,1),n.NdJ("valueChange",function(Si){return Ie.onResourceValueChange(Si)}),n.YNc(2,qr,2,2,"ng-template",2),n.YNc(3,Ds,2,2,"ng-template",3),n.qZA()),2&G&&n.Q6J("data",Ie.resource.data)("textField",Ie.resource.textField)("valueField",Ie.resource.valueField)("valuePrimitive",!0)("value",Ie.resourceValue)},dependencies:[Ji.OP,Ji.uc,Xt.O5,Xt.PC,Ji.Gq],encapsulation:2}),Ee})();const Pl={multi:!0,provide:Mi.JU,useExisting:(0,n.Gpc)(()=>Zl)};let Zl=(()=>{class Ee extends el{focus(){this.resourceDropDown.focus()}}return Ee.\u0275fac=function(){let at;return function(Ie){return(at||(at=n.n5z(Ee)))(Ie||Ee)}}(),Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["kendo-single-resource-editor"]],viewQuery:function(G,Ie){if(1&G&&n.Gf(Zr,7),2&G){let gn;n.iGM(gn=n.CRH())&&(Ie.resourceDropDown=gn.first)}},features:[n._Bn([Pl]),n.qOj],decls:3,vars:5,consts:[[3,"data","textField","valueField","valuePrimitive","value","valueChange"],["resourceDropDown",""],["kendoDropDownListItemTemplate",""],["class","k-scheduler-mark",3,"ngStyle",4,"ngIf"],[1,"k-scheduler-mark",3,"ngStyle"]],template:function(G,Ie){1&G&&(n.TgZ(0,"kendo-dropdownlist",0,1),n.NdJ("valueChange",function(Si){return Ie.onResourceValueChange(Si)}),n.YNc(2,Hs,2,2,"ng-template",2),n.qZA()),2&G&&n.Q6J("data",Ie.resource.data)("textField",Ie.resource.textField)("valueField",Ie.resource.valueField)("valuePrimitive",!0)("value",Ie.resourceValue)},dependencies:[Ji.rI,Ji.uc,Xt.O5,Xt.PC],encapsulation:2}),Ee})();var kc=function(Ee){return Ee[Ee.None=0]="None",Ee[Ee.AltKey=1]="AltKey",Ee[Ee.CtrlKey=2]="CtrlKey",Ee[Ee.ShiftKey=4]="ShiftKey",Ee[Ee.MetaKey=8]="MetaKey",Ee}(kc||{});function Eu(Ee,at){return Ee.altKey===((at&kc.AltKey)===kc.AltKey)&&Ee.ctrlKey===((at&kc.CtrlKey)===kc.CtrlKey)&&Ee.shiftKey===((at&kc.ShiftKey)===kc.ShiftKey)&&Ee.metaKey===((at&kc.MetaKey)===kc.MetaKey)}function Td(Ee){return Eu(Ee,kc.None)}const Wd={multi:!0,provide:Mi.JU,useExisting:(0,n.Gpc)(()=>tc)};let tc=(()=>{class Ee{constructor(){this.valueChange=new n.vpe,this.onTouchedCallback=G=>{},this.onChangeCallback=G=>{}}get focusableId(){return this.isAllDay?this.datePicker?.focusableId:this.dateTimePicker?.focusableId}writeValue(G){G instanceof Date&&(this.date=G)}onValueChange(G){this.onChangeCallback(G),this.valueChange.emit(G)}focus(){this.datePicker?this.datePicker.focus():this.dateTimePicker.focus()}registerOnChange(G){this.onChangeCallback=G}registerOnTouched(G){this.onTouchedCallback=G}}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["kendo-scheduler-datetime-picker"]],viewQuery:function(G,Ie){if(1&G&&(n.Gf(Js,5),n.Gf(Wa,5)),2&G){let gn;n.iGM(gn=n.CRH())&&(Ie.datePicker=gn.first),n.iGM(gn=n.CRH())&&(Ie.dateTimePicker=gn.first)}},inputs:{isAllDay:"isAllDay"},outputs:{valueChange:"valueChange"},features:[n._Bn([Wd])],decls:2,vars:2,consts:[[3,"value","valueChange",4,"ngIf"],[3,"value","valueChange"],["datepicker",""],["datetimepicker",""]],template:function(G,Ie){1&G&&(n.YNc(0,ll,2,1,"kendo-datepicker",0),n.YNc(1,Za,2,1,"kendo-datetimepicker",0)),2&G&&(n.Q6J("ngIf",Ie.isAllDay),n.xp6(1),n.Q6J("ngIf",!Ie.isAllDay))},dependencies:[ut.Lr,ut.JX,Xt.O5],encapsulation:2}),Ee})();const tf={multi:!0,provide:Mi.JU,useExisting:(0,n.Gpc)(()=>zl)};let zl=(()=>{class Ee{constructor(){this.width=260,this.valueChange=new n.vpe,this.onTouchedCallback=G=>{},this.onChangeCallback=G=>{},this.tzNames=Object.keys(s.zones),this.tzSource=this.tzNames.slice()}get focusableId(){return this.tzComboBox.focusableId}onTimeZoneChange(G){this.tz=G,this.onChangeCallback(this.tz),this.valueChange.emit(G)}onTimeZoneFilterChange(G){this.tzSource=this.tzNames.filter(Ie=>-1!==Ie.toLowerCase().indexOf(G.toLowerCase()))}writeValue(G){"string"==typeof G&&this.tzNames.indexOf(G)>=0&&(this.tz=G)}focus(){this.tzComboBox.focus()}registerOnChange(G){this.onChangeCallback=G}registerOnTouched(G){this.onTouchedCallback=G}}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["kendo-timezone-editor"]],viewQuery:function(G,Ie){if(1&G&&n.Gf(sl,7),2&G){let gn;n.iGM(gn=n.CRH())&&(Ie.tzComboBox=gn.first)}},inputs:{width:"width"},outputs:{valueChange:"valueChange"},features:[n._Bn([tf])],decls:2,vars:7,consts:[[3,"allowCustom","data","filterable","suggest","value","filterChange","valueChange"],["tzcombobox",""]],template:function(G,Ie){1&G&&(n.TgZ(0,"kendo-combobox",0,1),n.NdJ("filterChange",function(Si){return Ie.onTimeZoneFilterChange(Si)})("valueChange",function(Si){return Ie.onTimeZoneChange(Si)}),n.qZA()),2&G&&(n.Udp("width",Ie.width,"px"),n.Q6J("allowCustom",!1)("data",Ie.tzSource)("filterable",!0)("suggest",!0)("value",Ie.tz))},dependencies:[Ji.oX],encapsulation:2}),Ee})(),Uu=0;const Xc=["first","second","third","fourth","last"],Tc=["never","daily","weekly","monthly","yearly"],vh=[{day:0,offset:0},{day:1,offset:0},{day:2,offset:0},{day:3,offset:0},{day:4,offset:0},{day:5,offset:0},{day:6,offset:0}],vp=[{day:1,offset:0},{day:2,offset:0},{day:3,offset:0},{day:4,offset:0},{day:5,offset:0}],nf=[{day:0,offset:0},{day:6,offset:0}];let vf=(()=>{class Ee{constructor(G,Ie){this.intl=G,this.localization=Ie,this.change=new n.vpe,this.endRuleChange=new n.vpe,this.frequencyChange=new n.vpe,this.repeatOnRuleChange=new n.vpe}init(G="",Ie,gn,Si){this.start=Ie,this.timezone=gn,this.weekStart=Si,this.rrule=Ti({recurrenceRule:G,weekStart:Si})}getUniqueId(){return Uu++}get frequencies(){return Tc.map(G=>({value:G,text:this.localization.get("frequencies"+Hh(G))}))}get frequency(){return Sl(this.rrule)&&!(Ee=>(Ee=>null==Ee)(Ee)||Ee.trim&&0===Ee.trim().length)(this.rrule.freq)?this.rrule.freq:"never"}setFrequency(G){this.rrule={},this.rrule.freq=G,this.rrule.interval=1,"weekly"===G&&(this.rrule.byWeekDay=[{day:this.start.getDay(),offset:0}]),("monthly"===G||"yearly"===G)&&(this.rrule.byMonthDay=[this.start.getDate()]),"yearly"===G&&(this.rrule.byMonth=[this.start.getMonth()+1]),this.frequencyChange.emit(),this.onChange()}set interval(G){this.rrule.interval=G,this.onChange()}set count(G){this.rrule.count=G,this.onChange()}set until(G){this.rrule.until=H.fromLocalDate(G,this.timezone),this.onChange()}get until(){if(Sl(this.rrule.until))return U(this.rrule.until)}setWeekDays(G){this.rrule.byWeekDay=G,this.onChange()}set monthDays(G){this.rrule.byMonthDay=G,this.onChange()}set positions(G){this.rrule.bySetPosition=G,this.onChange()}setMonths(G){this.rrule.byMonth=G,this.onChange()}get months(){return this.intl.dateFormatNames({type:"months",nameType:"wide"}).map((G,Ie)=>({text:G,value:Ie+1}))}get weekDays(){const G=this.weekStart,Ie=this.intl.dateFormatNames({type:"days",nameType:"abbreviated"}).map((gn,Si)=>({text:gn,value:Si}));return Ie.slice(G).concat(Ie.slice(0,G))}get extendedWeekDays(){const G=this.weekStart,Ie=this.intl.dateFormatNames({type:"days",nameType:"wide"}).map((zo,_r)=>({text:zo,value:_r})),gn=Ie.slice(G).concat(Ie.slice(0,G));return[{text:this.localization.get("weekdaysDay"),value:"day"},{text:this.localization.get("weekdaysWeekday"),value:"weekday"},{text:this.localization.get("weekdaysWeekendday"),value:"weekend"}].concat(gn)}get offsetPositions(){const G=[1,2,3,4,-1];return Xc.map((Ie,gn)=>({text:this.localization.get("offsetPositions"+Hh(Ie)),value:G[gn]}))}get endRule(){return Sl(this.rrule.count)?"count":Sl(this.rrule.until)?"until":"never"}set endRule(G){"count"===G?this.rrule.until=null:"until"===G?this.rrule.count=null:(this.rrule.count=null,this.rrule.until=null),this.endRuleChange.emit(G),this.onChange()}get repeatOnRule(){return Sl(this.rrule.byWeekDay)?"weekday":Sl(this.rrule.byMonthDay)?"monthday":null}set repeatOnRule(G){"monthday"===G?(this.rrule.byWeekDay=null,this.rrule.bySetPosition=null):this.rrule.byMonthDay=null,this.repeatOnRuleChange.emit(G),this.onChange()}onChange(){this.change.emit("never"===this.frequency?null:((Ee,at)=>{if(!Ee||!Ee.freq)return null;let G=Ee.weekStart,Ie="FREQ="+Ee.freq.toUpperCase(),gn="",Si="",zo="",_r=Ee.until;return Ee.interval>1&&(Ie+=";INTERVAL="+Ee.interval),Ee.count&&(Ie+=";COUNT="+Ee.count),_r&&(Ie+=";UNTIL="+(0,Bt.BB)(_r.toTimezone("Etc/UTC"),"yyyyMMddTHHmmss")+"Z"),Ee.byMonth&&(Ie+=";BYMONTH="+Ee.byMonth),Ee.byWeekNumber&&(Ie+=";BYWEEKNO="+Ee.byWeekNumber),Ee.byYearDay&&(Ie+=";BYYEARDAY="+Ee.byYearDay),Ee.byMonthDay&&(Ie+=";BYMONTHDAY="+Ee.byMonthDay),Ee.byWeekDay&&(Ie+=";BYDAY="+(Ee=>{const at=Ee.length,G=[];let Ie;for(let gn=0;gn<at;gn++){let Si=Ee[gn];"string"==typeof Si?Ie=Si:(Ie=""+mr[Si.day],Si.offset&&(Ie=Si.offset+Ie)),G.push(Ie)}return G.toString()})(Ee.byWeekDay)),Ee.byHour&&(Ie+=";BYHOUR="+Ee.byHour),Ee.byMinute&&(Ie+=";BYMINUTE="+Ee.byMinute),Ee.bySecond&&(Ie+=";BYSECOND="+Ee.bySecond),Ee.bySetPosition&&(Ie+=";BYSETPOS="+Ee.bySetPosition),void 0!==G&&(Ie+=";WKST="+mr[G]),Ee.start&&(Si="DTSTART"+xt([Ee.start])),Ee.end&&(zo="DTEND"+xt([Ee.end])),Ee.exceptionDates&&(gn="EXDATE"+xt(Ee.exceptionDates)),(Si||zo||gn)&&(Ie=Si+zo+gn+"RRULE:"+Ie),Ie})(this.rrule))}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.LFG(Eo.aJ),n.LFG(o.oQ))},Ee.\u0275prov=n.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})(),Hf=(()=>{class Ee extends o.oQ{constructor(G,Ie,gn,Si){super(G,Ie,gn),this.schedulerLocalization=Si}get(G){return this.schedulerLocalization?this.schedulerLocalization.get("recurrenceEditor"+Hh(G)):super.get(G)}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.LFG(o.mM),n.LFG(o.ez,8),n.LFG(o.lw,8),n.LFG(Fd,8))},Ee.\u0275prov=n.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})(),Vf=(()=>{class Ee{constructor(G,Ie){this.recurrence=G,this.localization=Ie}ngOnInit(){this.frequencies=this.recurrence.frequencies}get selected(){return this.recurrence.frequency}onClick(G){G.value!==this.selected&&this.recurrence.setFrequency(G.value)}textFor(G){return this.localization.get(G)}onFrequencyClick(){const G=this.weekDayButtons.toArray().find(Ie=>Ie.selected);G&&G.focus()}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(vf),n.Y36(o.oQ))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["kendo-recurrence-frequency-editor"]],viewQuery:function(G,Ie){if(1&G&&n.Gf(Bn.zx,5),2&G){let gn;n.iGM(gn=n.CRH())&&(Ie.weekDayButtons=gn)}},decls:5,vars:2,consts:[[1,"k-form-field"],["labelCssClass","k-form-label",3,"text","click"],[1,"k-form-field-wrap"],["width","100%","selection","single",1,"k-scheduler-recurrence-repeat","k-button-group-solid"],["kendoButton","",3,"togglable","selected","click",4,"ngFor","ngForOf"],["kendoButton","",3,"togglable","selected","click"]],template:function(G,Ie){1&G&&(n.TgZ(0,"div",0)(1,"kendo-label",1),n.NdJ("click",function(){return Ie.onFrequencyClick()}),n.qZA(),n.TgZ(2,"div",2)(3,"kendo-buttongroup",3),n.YNc(4,Jt,2,3,"button",4),n.qZA()()()),2&G&&(n.xp6(1),n.Q6J("text",Ie.textFor("repeat")),n.xp6(3),n.Q6J("ngForOf",Ie.frequencies))},dependencies:[un._n,Bn.Kb,Bn.r0,Xt.sg],encapsulation:2}),Ee})(),Fp=(()=>{class Ee{constructor(G,Ie){this.recurrence=G,this.localization=Ie,this.cssClass=!0,this.numericOptions={min:1,format:"#",autoCorrect:!0,step:1,spinners:!0},this.intervalValue=this.recurrence.rrule.interval||1}set userNumericOptions(G){this.numericOptions={...this.numericOptions,...G}}get currentFreq(){return this.recurrence.frequency}onIntervalChange(G){Sl(G)&&(this.recurrence.interval=G)}onIntervalBlur(){Sl(this.intervalValue)||(this.recurrence.interval=this.intervalValue=1)}textForRepeatEvery(){switch(this.currentFreq){case"daily":return this.textFor("dailyRepeatEvery");case"weekly":return this.textFor("weeklyRepeatEvery");case"monthly":return this.textFor("monthlyRepeatEvery");case"yearly":return this.textFor("yearlyRepeatEvery")}}textForFrequency(){switch(this.currentFreq){case"daily":return this.textFor("dailyInterval");case"weekly":return this.textFor("weeklyInterval");case"monthly":return this.textFor("monthlyInterval");case"yearly":return this.textFor("yearlyInterval")}}textFor(G){return this.localization.get(G)}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(vf),n.Y36(o.oQ))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["kendo-recurrence-interval-editor"]],hostVars:2,hostBindings:function(G,Ie){2&G&&n.ekj("k-scheduler-recurrence-interval-editor",Ie.cssClass)},inputs:{userNumericOptions:"userNumericOptions"},decls:7,vars:14,consts:[[1,"k-form-field"],["labelCssClass","k-form-label",3,"for","text","click"],[1,"k-form-field-wrap"],[1,"k-recur-interval",3,"min","max","decimals","format","autoCorrect","readonly","selectOnFocus","spinners","step","title","value","valueChange","blur"],["intervalNumeric",""]],template:function(G,Ie){if(1&G){const gn=n.EpF();n.TgZ(0,"div",0)(1,"kendo-label",1),n.NdJ("click",function(){n.CHM(gn);const zo=n.MAs(4);return n.KtG(zo.focus())}),n.qZA(),n.TgZ(2,"div",2)(3,"kendo-numerictextbox",3,4),n.NdJ("valueChange",function(zo){return Ie.intervalValue=zo})("blur",function(){return Ie.onIntervalBlur()})("valueChange",function(zo){return Ie.onIntervalChange(zo)}),n.qZA(),n.TgZ(5,"span"),n._uU(6),n.qZA()()()}if(2&G){const gn=n.MAs(4);n.xp6(1),n.Q6J("for",gn)("text",Ie.textForRepeatEvery()),n.xp6(2),n.Q6J("min",Ie.numericOptions.min)("max",Ie.numericOptions.max)("decimals",0)("format",Ie.numericOptions.format)("autoCorrect",Ie.numericOptions.autoCorrect)("readonly",Ie.numericOptions.readonly)("selectOnFocus",Ie.numericOptions.selectOnFocus)("spinners",Ie.numericOptions.spinners)("step",Ie.numericOptions.step)("title",Ie.numericOptions.title)("value",Ie.intervalValue),n.xp6(3),n.hij("\xa0",Ie.textForFrequency(),"")}},dependencies:[un._n,En.Uw],encapsulation:2}),Ee})(),Bp=(()=>{class Ee{constructor(G,Ie){this.recurrence=G,this.localization=Ie,this.selected=[],this.weekDays=this.recurrence.weekDays,this.setSelectedDays()}setSelectedDays(){for(let G=0;G<7;G++)this.selected[G]=!1;Sl(this.rrule.byWeekDay)&&this.rrule.byWeekDay.forEach(G=>{this.selected[G.day]=!0})}onSelectedChange(G,Ie){this.selected[Ie]=G,this.recurrence.setWeekDays(this.serializeToWeekDayRuleArray(this.selected))}isSelected(G){return this.selected[G.value]}serializeToWeekDayRuleArray(G){const Ie=[];return G.forEach((gn,Si)=>{gn&&Ie.push({day:Si,offset:0})}),Ie.length>0?Ie:null}get rrule(){return this.recurrence.rrule}capitalize(G){return Hh(G)}textFor(G){return this.localization.get(G)}onWeeklyRepeatOnClick(){const G=this.weekDayButtons.toArray().find(Ie=>Ie.selected);G&&G.focus()}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(vf),n.Y36(o.oQ))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["kendo-recurrence-weekday-rule-editor"]],viewQuery:function(G,Ie){if(1&G&&n.Gf(Bn.zx,5),2&G){let gn;n.iGM(gn=n.CRH())&&(Ie.weekDayButtons=gn)}},decls:5,vars:2,consts:[[1,"k-form-field"],["labelCssClass","k-form-label",3,"text","click"],[1,"k-form-field-wrap"],["width","100%","selection","multiple",1,"k-button-group-solid"],["kendoButton","",3,"toggleable","selected","selectedChange",4,"ngFor","ngForOf"],["kendoButton","",3,"toggleable","selected","selectedChange"]],template:function(G,Ie){1&G&&(n.TgZ(0,"div",0)(1,"kendo-label",1),n.NdJ("click",function(){return Ie.onWeeklyRepeatOnClick()}),n.qZA(),n.TgZ(2,"div",2)(3,"kendo-buttongroup",3),n.YNc(4,Tt,2,3,"button",4),n.qZA()()()),2&G&&(n.xp6(1),n.Q6J("text",Ie.textFor("weeklyRepeatOn")),n.xp6(3),n.Q6J("ngForOf",Ie.weekDays))},dependencies:[un._n,Bn.Kb,Bn.r0,Xt.sg],encapsulation:2}),Ee})(),qp=(()=>{class Ee{constructor(G,Ie,gn,Si){this.el=G,this.renderer=Ie,this.recurrence=gn,this.changeDetector=Si,this.type="radio",this.radioClass=!0,this.radioSizeClass=!0,this.destroyChange=this.renderer.listen(this.elem,"change",this.onChange.bind(this))}set repeatOnRule(G){const Ie=G.split("-");this._repeatOnRule=Ie[0],this._uniqueId=Ie[1]}ngOnInit(){this.renderer.setAttribute(this.elem,"id",`k-repeaton-${this._repeatOnRule}-${this._uniqueId}`),this.renderer.setAttribute(this.elem,"name",`day-${this._uniqueId}`)}ngAfterContentChecked(){this.setCheckedState()}ngOnDestroy(){this.destroyChange&&this.destroyChange()}onChange(){this.elem.checked&&(this.recurrence.repeatOnRule=this._repeatOnRule,this.changeDetector.markForCheck())}setCheckedState(){this.renderer.setProperty(this.elem,"checked",this._repeatOnRule===this.recurrence.repeatOnRule)}get elem(){return this.el.nativeElement}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(vf),n.Y36(n.sBO))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","kendoRecurrenceRepeatOnRadioButton",""]],hostVars:5,hostBindings:function(G,Ie){2&G&&(n.uIk("type",Ie.type),n.ekj("k-radio",Ie.radioClass)("k-radio-md",Ie.radioSizeClass))},inputs:{repeatOnRule:["kendoRecurrenceRepeatOnRadioButton","repeatOnRule"]}}),Ee})(),np=(()=>{class Ee{constructor(G,Ie){this.recurrence=G,this.localization=Ie,this.uniqueId=this.recurrence.getUniqueId(),this.numericOptions={min:1,max:31,format:"#",autoCorrect:!0,step:1,spinners:!0},this.setInitialValues(),this.subscribeEventHandlers()}set userNumericOptions(G){this.numericOptions={...this.numericOptions,...G}}setInitialValues(){this.extendedWeekDays=this.recurrence.extendedWeekDays,this.offsetPositions=this.recurrence.offsetPositions,this.currentOffset=this.defaultOffset,this.currentWeekDay=this.defaultWeekDay,"yearly"===this.currentFreq&&(this.months=this.recurrence.months,this.currentMonthMonthDay=this.currentMonthWeekDay=this.recurrence.rrule.byMonth[0])}subscribeEventHandlers(){this.subs=this.recurrence.repeatOnRuleChange.subscribe(this.onRepeatOnRuleChange.bind(this)),this.subs.add(this.recurrence.frequencyChange.subscribe(this.onFrequencyChange.bind(this)))}onRepeatOnRuleChange(G){"monthday"===G?(this.recurrence.rrule.byMonthDay=[this.monthDay],"yearly"===this.currentFreq&&(this.recurrence.rrule.byMonth=[this.currentMonthMonthDay])):"weekday"===G&&("string"==typeof this.weekDay?(this.recurrence.rrule.bySetPosition=[this.offset],this.recurrence.rrule.byWeekDay=this.weekDayRuleFromString(this.weekDay)):this.recurrence.rrule.byWeekDay=[{day:this.weekDay,offset:this.offset}],"yearly"===this.currentFreq&&(this.recurrence.rrule.byMonth=[this.currentMonthWeekDay]))}onFrequencyChange(){this.setInitialValues()}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}get monthDay(){const G=this.recurrence.rrule;return Sl(G.byMonthDay)&&G.byMonthDay.length>0?G.byMonthDay[0]:Sl(this.currentMonthDay)?this.currentMonthDay:this.recurrence.start.getDate()}get weekDay(){const G=this.recurrence.rrule;if(Sl(G.byWeekDay))switch(G.byWeekDay.length){case 7:return"day";case 5:return"weekday";case 2:return"weekend";case 1:return G.byWeekDay[0].day}else if(Sl(this.currentWeekDay))return this.currentWeekDay;return this.defaultWeekDay}get offset(){const G=this.recurrence.rrule;if(Sl(G.byWeekDay))switch(G.byWeekDay.length){case 7:case 5:case 2:return G.bySetPosition[0];case 1:return G.byWeekDay[0].offset}else if(Sl(this.currentOffset))return this.currentOffset;return this.defaultOffset}onMonthChange(G,Ie){"monthday"===Ie?this.currentMonthMonthDay=G:this.currentMonthWeekDay=G,this.recurrence.setMonths([G])}onMonthDayChange(G){this.currentMonthDay=G,this.recurrence.monthDays=[G]}onOffsetPositionChange(G){const Ie=this.recurrence.rrule;if(Sl(Ie.byWeekDay))switch(Ie.byWeekDay.length){case 7:case 5:case 2:this.recurrence.positions=[G];break;case 1:Ie.byWeekDay[0].offset=G,this.recurrence.onChange()}this.currentOffset=G}onWeekDayChange(G){let Ie;"string"==typeof G?(Ie=this.weekDayRuleFromString(G),this.recurrence.positions=[this.offset]):Ie=[{day:G,offset:this.offset}],this.currentWeekDay=G,this.recurrence.setWeekDays(Ie)}isDisabled(G){return this.recurrence.repeatOnRule!==G}get currentFreq(){return this.recurrence.frequency}get defaultOffset(){return 1}get defaultWeekDay(){return this.recurrence.start.getDay()}weekDayRuleFromString(G){switch(G){case"day":return vh;case"weekday":return vp;case"weekend":return nf}return null}textForRepeatOn(){switch(this.currentFreq){case"monthly":return this.textFor("monthlyRepeatOn");case"yearly":return this.textFor("yearlyRepeatOn")}}textFor(G){return this.localization.get(G)}onRepeatOnLabelClick(){const G=this.repeatOnRadioButtons.toArray().find(Ie=>Ie.elem.checked);G&&G.elem.focus()}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(vf),n.Y36(o.oQ))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["kendo-recurrence-monthly-yearly-editor"]],viewQuery:function(G,Ie){if(1&G&&n.Gf(qp,5),2&G){let gn;n.iGM(gn=n.CRH())&&(Ie.repeatOnRadioButtons=gn)}},inputs:{userNumericOptions:"userNumericOptions"},decls:18,vars:34,consts:[[1,"k-form-field"],["labelCssClass","k-form-label",3,"text","click"],[1,"k-form-field-wrap"],[1,"k-radio-list"],[1,"k-radio-list-item"],[1,"k-radio-wrap"],[3,"kendoRecurrenceRepeatOnRadioButton"],[1,"k-radio-label",3,"labelClass","for"],[3,"ngIf"],[1,"k-recur-monthday",3,"min","max","decimals","format","autoCorrect","readonly","selectOnFocus","spinners","step","title","value","disabled","valueChange"],["textField","text","valueField","value",3,"data","value","valuePrimitive","disabled","valueChange"]],template:function(G,Ie){1&G&&(n.TgZ(0,"div",0)(1,"kendo-label",1),n.NdJ("click",function(){return Ie.onRepeatOnLabelClick()}),n.qZA(),n.TgZ(2,"div",2)(3,"ul",3)(4,"li",4)(5,"span",5),n._UZ(6,"input",6),n.qZA(),n.TgZ(7,"label",7),n.YNc(8,ht,1,1,"ng-template",8),n.qZA(),n.YNc(9,yn,1,8,"ng-template",8),n.TgZ(10,"kendo-numerictextbox",9),n.NdJ("valueChange",function(Si){return Ie.onMonthDayChange(Si)}),n.qZA()(),n.TgZ(11,"li",4)(12,"span",5),n._UZ(13,"input",6),n.qZA(),n._UZ(14,"label",7),n.TgZ(15,"kendo-dropdownlist",10),n.NdJ("valueChange",function(Si){return Ie.onOffsetPositionChange(Si)}),n.qZA(),n.TgZ(16,"kendo-dropdownlist",10),n.NdJ("valueChange",function(Si){return Ie.onWeekDayChange(Si)}),n.qZA(),n.YNc(17,vi,3,7,"ng-template",8),n.qZA()()()()),2&G&&(n.xp6(1),n.Q6J("text",Ie.textForRepeatOn()),n.xp6(5),n.MGl("kendoRecurrenceRepeatOnRadioButton","monthday-",Ie.uniqueId,""),n.xp6(1),n.MGl("for","k-repeaton-monthday-",Ie.uniqueId,""),n.Q6J("labelClass",!1),n.xp6(1),n.Q6J("ngIf","monthly"===Ie.currentFreq),n.xp6(1),n.Q6J("ngIf","yearly"===Ie.currentFreq),n.xp6(1),n.Q6J("min",Ie.numericOptions.min)("max",Ie.numericOptions.max)("decimals",0)("format",Ie.numericOptions.format)("autoCorrect",Ie.numericOptions.autoCorrect)("readonly",Ie.numericOptions.readonly)("selectOnFocus",Ie.numericOptions.selectOnFocus)("spinners",Ie.numericOptions.spinners)("step",Ie.numericOptions.step)("title",Ie.numericOptions.title)("value",Ie.monthDay)("disabled",Ie.isDisabled("monthday")),n.xp6(3),n.MGl("kendoRecurrenceRepeatOnRadioButton","weekday-",Ie.uniqueId,""),n.xp6(1),n.MGl("for","k-repeaton-weekday-",Ie.uniqueId,""),n.Q6J("labelClass",!1),n.xp6(1),n.Udp("margin","0 .4ex 0 1ex"),n.Q6J("data",Ie.offsetPositions)("value",Ie.offset)("valuePrimitive",!0)("disabled",Ie.isDisabled("weekday")),n.xp6(1),n.Udp("margin","0 .4ex 0 1ex"),n.Q6J("data",Ie.extendedWeekDays)("value",Ie.weekDay)("valuePrimitive",!0)("disabled",Ie.isDisabled("weekday")),n.xp6(1),n.Q6J("ngIf","yearly"===Ie.currentFreq))},dependencies:[un._n,Ji.rI,En.Uw,qp,un.q8,Xt.O5],encapsulation:2}),Ee})(),rf=(()=>{class Ee{constructor(G,Ie,gn,Si){this.el=G,this.renderer=Ie,this.recurrence=gn,this.changeDetector=Si,this.type="radio",this.radioClass=!0,this.radioSizeClass=!0,this.destroyChange=this.renderer.listen(this.elem,"change",this.onChange.bind(this))}ngOnInit(){this.endRule=this.endRuleId.split("-")[2],this.renderer.setAttribute(this.elem,"id",this.endRuleId),this.renderer.setAttribute(this.elem,"name",`end-${this.endRuleId.split("-").pop()}`)}ngAfterContentChecked(){this.setCheckedState()}ngOnDestroy(){this.destroyChange&&this.destroyChange()}onChange(){this.elem.checked&&(this.recurrence.endRule=this.endRule,this.changeDetector.markForCheck())}setCheckedState(){this.renderer.setProperty(this.elem,"checked",this.endRule===this.recurrence.endRule)}get elem(){return this.el.nativeElement}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(vf),n.Y36(n.sBO))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","kendoRecurrenceEndRuleRadioButton",""]],hostVars:5,hostBindings:function(G,Ie){2&G&&(n.uIk("type",Ie.type),n.ekj("k-radio",Ie.radioClass)("k-radio-md",Ie.radioSizeClass))},inputs:{endRuleId:["kendoRecurrenceEndRuleRadioButton","endRuleId"]}}),Ee})(),yf=(()=>{class Ee{constructor(G,Ie){this.recurrence=G,this.localization=Ie,this.cssClass=!0,this.numericOptions={min:1,format:"#",autoCorrect:!0,step:1,spinners:!0},this.datePickerOptions={activeView:"month",bottomView:"month",topView:"century",disabledDatesValidation:!0,navigation:!0,format:"d"},this.uniqueId=this.recurrence.getUniqueId(),this.setInitialValues(),this.subscribeChanges()}set userNumericOptions(G){this.numericOptions={...this.numericOptions,...G}}set userDatePickerOptions(G){this.datePickerOptions={...this.datePickerOptions,...G}}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}setEndRule(G){"count"===G?this.recurrence.rrule.count=this.countValue:"until"===G&&(this.recurrence.until=this.untilValue)}get rrule(){return this.recurrence.rrule}get isCountDisabled(){return"count"!==this.recurrence.endRule}get isUntilDisabled(){return"until"!==this.recurrence.endRule}onCountChange(G){Sl(G)&&(this.recurrence.count=G)}onCountBlur(){Sl(this.countValue)||(this.recurrence.count=this.countValue=1)}onUntilChange(G){Sl(G)&&(this.recurrence.until=this.createUntil(G))}onUntilBlur(){Sl(this.untilValue)||(this.recurrence.until=this.untilValue=this.createUntil(this.recurrence.start))}textFor(G){return this.localization.get(G)}onEndLabelClick(){const G=this.endRuleRadioButtons.toArray().find(Ie=>Ie.elem.checked);G&&G.elem.focus()}setInitialValues(){this.countValue=this.rrule.count||1;const G=this.recurrence.until,Ie=this.recurrence.start;this.untilValue=Sl(G)?G:this.createUntil(Ie)}subscribeChanges(){this.subscriptions=this.recurrence.endRuleChange.subscribe(G=>{this.setEndRule(G)}),this.subscriptions.add(this.recurrence.frequencyChange.subscribe(()=>{this.setInitialValues()}))}createUntil(G){const Ie=Pd(G);return Ie.setUTCDate(Ie.getUTCDate()+1),H.fromUTCDate(Ie,this.recurrence.timezone).toLocalDate()}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(vf),n.Y36(o.oQ))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["kendo-recurrence-end-rule-editor"]],viewQuery:function(G,Ie){if(1&G&&n.Gf(rf,5),2&G){let gn;n.iGM(gn=n.CRH())&&(Ie.endRuleRadioButtons=gn)}},hostVars:2,hostBindings:function(G,Ie){2&G&&n.ekj("k-scheduler-recurrence-end-rule-editor",Ie.cssClass)},inputs:{userNumericOptions:"userNumericOptions",userDatePickerOptions:"userDatePickerOptions"},decls:24,vars:49,consts:[[1,"k-form-field"],["labelCssClass","k-form-label",3,"text","click"],[1,"k-form-field-wrap"],[1,"k-radio-list"],[1,"k-radio-list-item"],[1,"k-radio-wrap"],[3,"kendoRecurrenceEndRuleRadioButton"],[1,"k-radio-label",3,"labelClass","for"],[1,"k-recur-count",3,"autoCorrect","decimals","disabled","format","min","max","readonly","selectOnFocus","spinners","step","title","value","valueChange","blur"],["afterOccurances",""],[1,"k-recur-until",3,"disabled","activeView","bottomView","disabledDatesValidation","focusedDate","format","formatPlaceholder","max","min","navigation","placeholder","readOnlyInput","readonly","title","topView","weekNumber","disabledDates","popupSettings","value","valueChange","blur"]],template:function(G,Ie){1&G&&(n.TgZ(0,"div",0)(1,"kendo-label",1),n.NdJ("click",function(){return Ie.onEndLabelClick()}),n.qZA(),n.TgZ(2,"div",2)(3,"ul",3)(4,"li",4)(5,"span",5),n._UZ(6,"input",6),n.qZA(),n.TgZ(7,"label",7),n._uU(8),n.qZA()(),n.TgZ(9,"li",4)(10,"span",5),n._UZ(11,"input",6),n.qZA(),n.TgZ(12,"label",7),n._uU(13),n.qZA(),n.TgZ(14,"kendo-numerictextbox",8,9),n.NdJ("valueChange",function(Si){return Ie.countValue=Si})("blur",function(){return Ie.onCountBlur()})("valueChange",function(Si){return Ie.onCountChange(Si)}),n.qZA(),n.TgZ(16,"span"),n._uU(17),n.qZA()(),n.TgZ(18,"li",4)(19,"span",5),n._UZ(20,"input",6),n.qZA(),n.TgZ(21,"label",7),n._uU(22),n.qZA(),n.TgZ(23,"kendo-datepicker",10),n.NdJ("valueChange",function(Si){return Ie.untilValue=Si})("blur",function(){return Ie.onUntilBlur()})("valueChange",function(Si){return Ie.onUntilChange(Si)}),n.qZA()()()()()),2&G&&(n.xp6(1),n.Q6J("text",Ie.textFor("endLabel")),n.xp6(5),n.MGl("kendoRecurrenceEndRuleRadioButton","k-endrule-never-",Ie.uniqueId,""),n.xp6(1),n.MGl("for","k-endrule-never-",Ie.uniqueId,""),n.Q6J("labelClass",!1),n.xp6(1),n.Oqu(Ie.textFor("endNever")),n.xp6(3),n.MGl("kendoRecurrenceEndRuleRadioButton","k-endrule-count-",Ie.uniqueId,""),n.xp6(1),n.MGl("for","k-endrule-count-",Ie.uniqueId,""),n.Q6J("labelClass",!1),n.xp6(1),n.Oqu(Ie.textFor("endAfter")),n.xp6(1),n.Udp("width",70,"px"),n.Q6J("autoCorrect",Ie.numericOptions.autoCorrect)("decimals",0)("disabled",Ie.isCountDisabled)("format",Ie.numericOptions.format)("min",Ie.numericOptions.min)("max",Ie.numericOptions.max)("readonly",Ie.numericOptions.readonly)("selectOnFocus",Ie.numericOptions.selectOnFocus)("spinners",Ie.numericOptions.spinners)("step",Ie.numericOptions.step)("title",Ie.numericOptions.title)("value",Ie.countValue),n.xp6(3),n.Oqu(Ie.textFor("endOccurrence")),n.xp6(3),n.MGl("kendoRecurrenceEndRuleRadioButton","k-endrule-until-",Ie.uniqueId,""),n.xp6(1),n.MGl("for","k-endrule-until-",Ie.uniqueId,""),n.Q6J("labelClass",!1),n.xp6(1),n.Oqu(Ie.textFor("endOn")),n.xp6(1),n.Udp("width",150,"px"),n.Q6J("disabled",Ie.isUntilDisabled)("activeView",Ie.datePickerOptions.activeView)("bottomView",Ie.datePickerOptions.bottomView)("disabledDatesValidation",Ie.datePickerOptions.disabledDatesValidation)("focusedDate",Ie.datePickerOptions.focusedDate)("format",Ie.datePickerOptions.format)("formatPlaceholder",Ie.datePickerOptions.formatPlaceHolder)("max",Ie.datePickerOptions.max)("min",Ie.datePickerOptions.min)("navigation",Ie.datePickerOptions.navigation)("placeholder",Ie.datePickerOptions.placeholder)("readOnlyInput",Ie.datePickerOptions.readOnlyInput)("readonly",Ie.datePickerOptions.readonly)("title",Ie.datePickerOptions.title)("topView",Ie.datePickerOptions.topView)("weekNumber",Ie.datePickerOptions.weekNumber)("disabledDates",Ie.datePickerOptions.disabledDates)("popupSettings",Ie.datePickerOptions.popupSettings)("value",Ie.untilValue))},dependencies:[un._n,En.Uw,ut.Lr,rf,un.q8],encapsulation:2}),Ee})(),bf=(()=>{class Ee extends o.Z1{}return Ee.\u0275fac=function(){let at;return function(Ie){return(at||(at=n.n5z(Ee)))(Ie||Ee)}}(),Ee.\u0275dir=n.lG2({type:Ee,inputs:{repeat:"repeat",dailyInterval:"dailyInterval",dailyRepeatEvery:"dailyRepeatEvery",weeklyInterval:"weeklyInterval",weeklyRepeatEvery:"weeklyRepeatEvery",weeklyRepeatOn:"weeklyRepeatOn",monthlyDay:"monthlyDay",monthlyInterval:"monthlyInterval",monthlyRepeatEvery:"monthlyRepeatEvery",monthlyRepeatOn:"monthlyRepeatOn",yearlyOf:"yearlyOf",yearlyRepeatEvery:"yearlyRepeatEvery",yearlyRepeatOn:"yearlyRepeatOn",yearlyInterval:"yearlyInterval",frequenciesDaily:"frequenciesDaily",frequenciesMonthly:"frequenciesMonthly",frequenciesNever:"frequenciesNever",frequenciesWeekly:"frequenciesWeekly",frequenciesYearly:"frequenciesYearly",offsetPositionsFirst:"offsetPositionsFirst",offsetPositionsSecond:"offsetPositionsSecond",offsetPositionsThird:"offsetPositionsThird",offsetPositionsFourth:"offsetPositionsFourth",offsetPositionsLast:"offsetPositionsLast",weekdaysDay:"weekdaysDay",weekdaysWeekday:"weekdaysWeekday",weekdaysWeekendday:"weekdaysWeekendday",endAfter:"endAfter",endOccurrence:"endOccurrence",endLabel:"endLabel",endNever:"endNever",endOn:"endOn"},features:[n.qOj]}),Ee})(),v_=(()=>{class Ee extends bf{constructor(G){super(),this.service=G}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(o.oQ))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","kendoRecurrenceEditorLocalizedMessages",""]],features:[n._Bn([{provide:bf,useExisting:(0,n.Gpc)(()=>Ee)}]),n.qOj]}),Ee})();const Ah={multi:!0,provide:Mi.JU,useExisting:(0,n.Gpc)(()=>yp)};let yp=(()=>{class Ee{constructor(G,Ie){this.recurrenceService=G,this.intl=Ie,this.cssClass=!0,this.timezone="Etc/UTC",this.valueChange=new n.vpe,this.onTouchedCallback=gn=>{},this.onChangeCallback=gn=>{},this.weekStart=this.intl.firstDay(),this.subscriptions=this.recurrenceService.change.subscribe(gn=>{this.emitChange(gn)})}set start(G){this._start=G}get start(){return Sl(this._start)?this._start:(0,l._)(new Date)}get currentFreq(){return this.recurrenceService.frequency}ngOnInit(){this.recurrenceService.init("",this.start,this.timezone,this.weekStart)}ngOnChanges(G){(0,a.ln)("start",G)&&(this.recurrenceService.start=this.start)}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}writeValue(G){this.recurrenceService.init("string"==typeof G?G:"",this.start,this.timezone,this.weekStart)}registerOnChange(G){this.onChangeCallback=G}registerOnTouched(G){this.onTouchedCallback=G}emitChange(G){this.onChangeCallback(G),this.valueChange.emit(G)}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(vf),n.Y36(Eo.aJ))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["kendo-recurrence-editor"]],hostVars:2,hostBindings:function(G,Ie){2&G&&n.ekj("k-recurrence-editor",Ie.cssClass)},inputs:{start:"start",timezone:"timezone",weekStart:"weekStart",repeatEveryOptions:"repeatEveryOptions",endAfterOptions:"endAfterOptions",repeatOnOptions:"repeatOnOptions",endOnOptions:"endOnOptions"},outputs:{valueChange:"valueChange"},exportAs:["kendoRecurrenceEditor"],features:[n._Bn([Hf,{provide:o.oQ,useExisting:Hf},{provide:o.mM,useValue:"kendo.recurrenceeditor"},Ah,vf]),n.TTD],decls:7,vars:4,consts:function(){let at,G,Ie,gn,Si,zo,_r,zr,Lr,ws,$s,ya,ua,Ja,jl,zd,md,Xu,Lh,qu,lf,Wu,bh,kp,jp,Bg,zg,n_,i_,Ug,Hm,Vm;return at=$localize`:kendo.recurrenceeditor.repeat|The text similar to 'Repeat' displayed in the recurrence editor.:Repeat`,G=$localize`:kendo.recurrenceeditor.dailyInterval|The text similar to 'day(s)' displayed in the recurrence editor.:day(s)`,Ie=$localize`:kendo.recurrenceeditor.dailyRepeatEvery|The text similar to 'Repeat every' displayed in the recurrence editor.:Repeat every`,gn=$localize`:kendo.recurrenceeditor.weeklyInterval|The text similar to 'week(s)' displayed in the recurrence editor.:week(s)`,Si=$localize`:kendo.recurrenceeditor.weeklyRepeatEvery|The text similar to 'Repeat every' displayed in the recurrence editor.:Repeat every`,zo=$localize`:kendo.recurrenceeditor.weeklyRepeatOn|The text similar to 'Repeat on' displayed in the recurrence editor.:Repeat on`,_r=$localize`:kendo.recurrenceeditor.monthlyDay|The text similar to 'Day' displayed in the recurrence editor.:Day`,zr=$localize`:kendo.recurrenceeditor.monthlyInterval|The text similar to 'month(s)' displayed in the recurrence editor.:month(s)`,Lr=$localize`:kendo.recurrenceeditor.monthlyRepeatEvery|The text similar to 'Repeat every' displayed in the recurrence editor.:Repeat every`,ws=$localize`:kendo.recurrenceeditor.monthlyRepeatOn|The text similar to 'Repeat on' displayed in the recurrence editor.:Repeat on`,$s=$localize`:kendo.recurrenceeditor.yearlyOf|The text similar to 'of' displayed in the recurrence editor.:of`,ya=$localize`:kendo.recurrenceeditor.yearlyRepeatEvery|The text similar to 'Repeat every' displayed in the recurrence editor.:Repeat every`,ua=$localize`:kendo.recurrenceeditor.yearlyRepeatOn|The text similar to 'Repeat on' displayed in the recurrence editor.:Repeat on`,Ja=$localize`:kendo.recurrenceeditor.yearlyInterval|The text similar to 'year(s)' displayed in the recurrence editor.:year(s)`,jl=$localize`:kendo.recurrenceeditor.frequenciesDaily|The text similar to 'Daily' displayed in the recurrence editor.:Daily`,zd=$localize`:kendo.recurrenceeditor.frequenciesMonthly|The text similar to 'Monthly' displayed in the recurrence editor.:Monthly`,md=$localize`:kendo.recurrenceeditor.frequenciesNever|The text similar to 'Never' displayed in the recurrence editor.:Never`,Xu=$localize`:kendo.recurrenceeditor.frequenciesWeekly|The text similar to 'Weekly' displayed in the recurrence editor.:Weekly`,Lh=$localize`:kendo.recurrenceeditor.frequenciesYearly|The text similar to 'Yearly' displayed in the recurrence editor.:Yearly`,qu=$localize`:kendo.recurrenceeditor.offsetPositionsFirst|The text similar to 'First' displayed in the recurrence editor.:First`,lf=$localize`:kendo.recurrenceeditor.offsetPositionsSecond|The text similar to 'Second' displayed in the recurrence editor.:Second`,Wu=$localize`:kendo.recurrenceeditor.offsetPositionsThird|The text similar to 'Third' displayed in the recurrence editor.:Third`,bh=$localize`:kendo.recurrenceeditor.offsetPositionsFourth|The text similar to 'Fourth' displayed in the recurrence editor.:Fourth`,kp=$localize`:kendo.recurrenceeditor.offsetPositionsLast|The text similar to 'Last' displayed in the recurrence editor.:Last`,jp=$localize`:kendo.recurrenceeditor.weekdaysDay|The text similar to 'Day' displayed in the repeat by section of the monthly recurrence pattern.:Day`,Bg=$localize`:kendo.recurrenceeditor.weekdaysWeekday|The text similar to 'Weekday' displayed in the repeat by section of the monthly recurrence pattern.:Weekday`,zg=$localize`:kendo.recurrenceeditor.weekdaysWeekendday|The text similar to 'Weekend Day' displayed in the repeat by section of the monthly recurrence pattern.:Weekend Day`,n_=$localize`:kendo.recurrenceeditor.endAfter|The text similar to 'After' displayed in the recurrence editor.:After`,i_=$localize`:kendo.recurrenceeditor.endOccurrence|The text similar to 'occurrence(s)' displayed in the recurrence editor.:occurrence(s)`,Ug=$localize`:kendo.recurrenceeditor.endLabel|The text similar to 'End' displayed in the recurrence editor.:End`,Hm=$localize`:kendo.recurrenceeditor.endNever|The text similar to 'Never' displayed in the recurrence editor.:Never`,Vm=$localize`:kendo.recurrenceeditor.endOn|The text similar to 'On' displayed in the recurrence editor.:On`,[["kendoRecurrenceEditorLocalizedMessages","","repeat",at,"dailyInterval",G,"dailyRepeatEvery",Ie,"weeklyInterval",gn,"weeklyRepeatEvery",Si,"weeklyRepeatOn",zo,"monthlyDay",_r,"monthlyInterval",zr,"monthlyRepeatEvery",Lr,"monthlyRepeatOn",ws,"yearlyOf",$s,"yearlyRepeatEvery",ya,"yearlyRepeatOn",ua,"yearlyInterval",Ja,"frequenciesDaily",jl,"frequenciesMonthly",zd,"frequenciesNever",md,"frequenciesWeekly",Xu,"frequenciesYearly",Lh,"offsetPositionsFirst",qu,"offsetPositionsSecond",lf,"offsetPositionsThird",Wu,"offsetPositionsFourth",bh,"offsetPositionsLast",kp,"weekdaysDay",jp,"weekdaysWeekday",Bg,"weekdaysWeekendday",zg,"endAfter",n_,"endOccurrence",i_,"endLabel",Ug,"endNever",Hm,"endOn",Vm],[1,"k-recur-view"],[3,"userNumericOptions",4,"ngIf"],[4,"ngIf"],[3,"userNumericOptions","userDatePickerOptions",4,"ngIf"],[3,"userNumericOptions"],[3,"userNumericOptions","userDatePickerOptions"]]},template:function(G,Ie){1&G&&(n.GkF(0,0),n._UZ(1,"kendo-recurrence-frequency-editor"),n.TgZ(2,"div",1),n.YNc(3,Yi,1,1,"kendo-recurrence-interval-editor",2),n.YNc(4,co,1,0,"kendo-recurrence-weekday-rule-editor",3),n.YNc(5,sr,1,1,"kendo-recurrence-monthly-yearly-editor",2),n.YNc(6,yr,1,2,"kendo-recurrence-end-rule-editor",4),n.qZA()),2&G&&(n.xp6(3),n.Q6J("ngIf","never"!==Ie.currentFreq),n.xp6(1),n.Q6J("ngIf","weekly"===Ie.currentFreq),n.xp6(1),n.Q6J("ngIf","monthly"===Ie.currentFreq||"yearly"===Ie.currentFreq),n.xp6(1),n.Q6J("ngIf","never"!==Ie.currentFreq))},dependencies:[Vf,Fp,Bp,np,yf,v_,Xt.O5],encapsulation:2}),Ee})(),Ag=(()=>{class Ee{constructor(G,Ie,gn,Si,zo,_r){this.ngZone=G,this.editService=Ie,this.localization=gn,this.changeDetector=Si,this.element=zo,this.focusService=_r,this.resources=[],this.timezone="Etc/UTC",this.setTimeZone=!1,this.setSeparateStartEndTimeZones=!1,this.saveIcon=xo.NdF,this.cancelIcon=xo.c9I,this.subs=this.editService.changed.subscribe(()=>{this.ngZone.run(()=>{this.onChange()})}),this.subs.add((0,sn.R)(this.element.nativeElement,"keydown").pipe((0,Oe.h)(()=>this.isActive)).subscribe(zr=>{zr.keyCode===a.R8.Escape&&this.reset(),zr.keyCode===a.R8.Enter&&(Eu(zr,kc.CtrlKey)||Eu(zr,kc.MetaKey))&&this.onSave(zr),zr.stopPropagation()}))}get autoFocusedElement(){return this.editTemplate?this.editTemplate.autoFocusedElement:".k-form-field input"}get isEditingSeries(){return this.editMode===vd.Series&&!!this.formGroup.get(this.fields.recurrenceRule)}get eventTimezone(){return ee(this.formGroup,this.fields.startTimezone,this.timezone)}get endTimezone(){return ee(this.formGroup,this.fields.endTimezone,this.eventTimezone)}onChange(){if(this.changeDetector.markForCheck(),this.editService.hasNewEvent)this.editMode=vd.Series,this.formGroup=this.editService.context.formGroup,this.isNew=!0,this.applyLocalTimezone();else{if(!this.editService.isEditing())return void this.reset();{const{dataItem:G,mode:Ie}=this.editService.context;this.formGroup=this.editService.context.formGroup,this.isNew=!1,this.editedEvent=G,this.editMode=Sl(Ie)?Ie:vd.Series,this.applyLocalTimezone()}}this.editTemplate||(this.addTimeZoneCheckboxesToFormGroup(),this.subscribeToFormGroupChanges()),Sl(this.formGroup)&&(this.recurrenceStart=this.formGroup.get(this.fields.start).value),this.isActive=!0}ngOnDestroy(){this.subs&&this.subs.unsubscribe()}onCancel(G){G.preventDefault(),this.onClose(),this.changeDetector.markForCheck()}onSave(G){G.preventDefault(),this.applyTimezone(),this.editService.save(),this.changeDetector.markForCheck()}onClose(){this.editService.endEdit(),this.changeDetector.markForCheck(),this.focusService.focus()}get hasAllDay(){return!!this.formGroup.get(this.fields.isAllDay)}get hasStartTimeZone(){return!!this.formGroup.get(this.fields.startTimezone)}get isStartTimeZoneVisible(){return this.formGroup&&this.formGroup.get("startTimezoneCheckbox").value}get hasEndTimeZone(){return!!this.formGroup.get(this.fields.endTimezone)}get isEndTimeZoneVisible(){return this.formGroup&&this.formGroup.get("endTimezoneCheckbox").value}getFormValue(G){if(G)return this.formGroup.get(G)}textFor(G){return this.localization.get(G)}onResourceClick(G){const gn=(G.multiple?this.multipleResourceEditors:this.singleResourceEditors).filter(Si=>Si.resource.field===G.field).pop();gn&&gn.focus()}getControl(G){return this.formGroup.get(G)}reset(){this.isActive=!1,this.setTimeZone=!1,this.setSeparateStartEndTimeZones=!1,this.removeTimeZoneCheckboxesFromFormGroup(),this.focusService.focus()}addTimeZoneCheckboxesToFormGroup(){if(Sl(this.formGroup)){const G=this.fields.startTimezone;this.formGroup.addControl("startTimezoneCheckbox",new Mi.NI(this.formGroup.contains(G)&&this.formGroup.get(G).value));const Ie=this.fields.endTimezone;this.formGroup.addControl("endTimezoneCheckbox",new Mi.NI(this.formGroup.contains(Ie)&&this.formGroup.get(Ie).value))}}removeTimeZoneCheckboxesFromFormGroup(){Sl(this.formGroup)&&(this.formGroup.removeControl("startTimezoneCheckbox"),this.formGroup.removeControl("endTimezoneCheckbox"))}subscribeToFormGroupChanges(){if(Sl(this.formGroup)){const G=this.fields;this.formGroup.get("startTimezoneCheckbox").valueChanges.subscribe(Ie=>{Ie||(this.formGroup.get(G.startTimezone).setValue(null,{emitEvent:!1}),this.formGroup.get(G.endTimezone).setValue(null,{emitEvent:!1}),this.formGroup.get("endTimezoneCheckbox").setValue(!1,{emitEvent:!1}))}),this.formGroup.get("endTimezoneCheckbox").valueChanges.subscribe(Ie=>{Ie||this.formGroup.get(G.endTimezone).setValue(null,{emitEvent:!1})}),this.formGroup.get(G.start).valueChanges.subscribe(Ie=>{this.recurrenceStart=Ie})}}applyLocalTimezone(){const G=this.fields,Ie=this.readDateAsLocal(G.start,this.eventTimezone),gn=this.readDateAsLocal(G.end,this.endTimezone);this.formGroup.get(G.start).reset(Ie),this.formGroup.get(G.end).reset(gn)}applyTimezone(){const G=this.fields,Ie=this.readDateWithTimezone(G.start,this.eventTimezone),gn=this.readDateWithTimezone(G.end,this.endTimezone);this.formGroup.get(G.start).reset(Ie),this.formGroup.get(G.end).reset(gn)}readDateWithTimezone(G,Ie){const gn=this.formGroup.get(G).value;return H.fromUTCDate(If(gn),Ie).toLocalDate()}readDateAsLocal(G,Ie){const gn=this.formGroup.get(G).value;return U(H.fromLocalDate(gn,Ie).toUTCDate())}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.R0b),n.Y36(qa),n.Y36(o.oQ),n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(pu))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["kendo-scheduler-edit-dialog"]],viewQuery:function(G,Ie){if(1&G&&(n.Gf(Ql,5),n.Gf(Zl,5)),2&G){let gn;n.iGM(gn=n.CRH())&&(Ie.multipleResourceEditors=gn),n.iGM(gn=n.CRH())&&(Ie.singleResourceEditors=gn)}},inputs:{resources:"resources",timezone:"timezone",weekStart:"weekStart",fields:"fields",editTemplate:"editTemplate"},decls:1,vars:1,consts:[["class","k-scheduler-edit-dialog",3,"minWidth","title","autoFocusedElement","close",4,"ngIf"],[1,"k-scheduler-edit-dialog",3,"minWidth","title","autoFocusedElement","close"],[4,"ngIf"],["layout","start"],["kendoButton","","themeColor","primary","icon","save",3,"svgIcon","disabled","click"],["kendoButton","","icon","cancel-outline",3,"svgIcon","click"],["novalidate","",1,"k-scheduler-edit-form","k-form","k-form-md",3,"formGroup"],["labelCssClass","k-form-label",3,"for","text"],["kendoTextBox","","placeholder","Title",3,"formControl"],["title",""],[3,"formControl","isAllDay"],["startDateTimePicker",""],["endDateTimePicker",""],[3,"formControl","start","timezone","weekStart",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"k-checkbox-wrap"],["id","k-set-timezone","type","checkbox","kendoCheckBox","","formControlName","startTimezoneCheckbox"],["for","k-set-timezone",1,"k-checkbox-label",3,"labelClass"],[3,"width","formControl"],["startTzPicker",""],["id","k-use-separate","type","checkbox","kendoCheckBox","","formControlName","endTimezoneCheckbox"],["for","k-use-separate",1,"k-checkbox-label",3,"labelClass"],["endTzPicker",""],["id","k-is-allday-chkbox","type","checkbox","kendoCheckBox","",3,"formControl"],["for","k-is-allday-chkbox",1,"k-checkbox-label",3,"labelClass"],[3,"formControl","start","timezone","weekStart"],["kendoTextArea","",3,"formControl"],["description",""],[1,"k-label","k-form-label",3,"click"],[3,"formControl","resource",4,"ngIf"],[3,"formControl","resource"],["novalidate","",3,"formGroup"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(G,Ie){1&G&&n.YNc(0,Xe,8,10,"kendo-dialog",0),2&G&&n.Q6J("ngIf",Ie.isActive)},dependencies:[mi.au,En.hg,un._n,tc,zl,yp,Ql,Zl,mi.Tg,Bn.r0,Xt.O5,Mi._Y,Mi.JL,Mi.sg,En.mP,Mi.Fj,Mi.JJ,Mi.oH,Mi.Wl,En.wd,Mi.u,un.q8,En.MR,Xt.sg,Xt.tP],encapsulation:2}),Ee})(),cg=(()=>{class Ee extends o.Z1{}return Ee.\u0275fac=function(){let at;return function(Ie){return(at||(at=n.n5z(Ee)))(Ie||Ee)}}(),Ee.\u0275dir=n.lG2({type:Ee,inputs:{allEvents:"allEvents",allDay:"allDay",dateHeader:"dateHeader",timeHeader:"timeHeader",eventHeader:"eventHeader",deleteTitle:"deleteTitle",nextTitle:"nextTitle",previousTitle:"previousTitle",today:"today",calendarToday:"calendarToday",showFullDay:"showFullDay",showWorkDay:"showWorkDay",dayViewTitle:"dayViewTitle",multiDayViewTitle:"multiDayViewTitle",weekViewTitle:"weekViewTitle",workWeekViewTitle:"workWeekViewTitle",monthViewTitle:"monthViewTitle",multiWeekViewTitle:"multiWeekViewTitle",timelineViewTitle:"timelineViewTitle",timelineWeekViewTitle:"timelineWeekViewTitle",timelineMonthViewTitle:"timelineMonthViewTitle",agendaViewTitle:"agendaViewTitle",cancel:"cancel",save:"save",editorEventTitle:"editorEventTitle",editorEventStart:"editorEventStart",editorEventStartTimeZone:"editorEventStartTimeZone",editorEventEnd:"editorEventEnd",editorEventEndTimeZone:"editorEventEndTimeZone",editorEventAllDay:"editorEventAllDay",editorEventDescription:"editorEventDescription",editorEventSeparateTimeZones:"editorEventSeparateTimeZones",editorEventTimeZone:"editorEventTimeZone",recurrenceEditorRepeat:"recurrenceEditorRepeat",recurrenceEditorDailyInterval:"recurrenceEditorDailyInterval",recurrenceEditorDailyRepeatEvery:"recurrenceEditorDailyRepeatEvery",recurrenceEditorWeeklyInterval:"recurrenceEditorWeeklyInterval",recurrenceEditorWeeklyRepeatEvery:"recurrenceEditorWeeklyRepeatEvery",recurrenceEditorWeeklyRepeatOn:"recurrenceEditorWeeklyRepeatOn",recurrenceEditorMonthlyDay:"recurrenceEditorMonthlyDay",recurrenceEditorMonthlyInterval:"recurrenceEditorMonthlyInterval",recurrenceEditorMonthlyRepeatEvery:"recurrenceEditorMonthlyRepeatEvery",recurrenceEditorMonthlyRepeatOn:"recurrenceEditorMonthlyRepeatOn",recurrenceEditorYearlyOf:"recurrenceEditorYearlyOf",recurrenceEditorYearlyRepeatEvery:"recurrenceEditorYearlyRepeatEvery",recurrenceEditorYearlyRepeatOn:"recurrenceEditorYearlyRepeatOn",recurrenceEditorYearlyInterval:"recurrenceEditorYearlyInterval",recurrenceEditorFrequenciesDaily:"recurrenceEditorFrequenciesDaily",recurrenceEditorFrequenciesMonthly:"recurrenceEditorFrequenciesMonthly",recurrenceEditorFrequenciesNever:"recurrenceEditorFrequenciesNever",recurrenceEditorFrequenciesWeekly:"recurrenceEditorFrequenciesWeekly",recurrenceEditorFrequenciesYearly:"recurrenceEditorFrequenciesYearly",recurrenceEditorOffsetPositionsFirst:"recurrenceEditorOffsetPositionsFirst",recurrenceEditorOffsetPositionsSecond:"recurrenceEditorOffsetPositionsSecond",recurrenceEditorOffsetPositionsThird:"recurrenceEditorOffsetPositionsThird",recurrenceEditorOffsetPositionsFourth:"recurrenceEditorOffsetPositionsFourth",recurrenceEditorOffsetPositionsLast:"recurrenceEditorOffsetPositionsLast",recurrenceEditorWeekdaysDay:"recurrenceEditorWeekdaysDay",recurrenceEditorWeekdaysWeekday:"recurrenceEditorWeekdaysWeekday",recurrenceEditorWeekdaysWeekendday:"recurrenceEditorWeekdaysWeekendday",recurrenceEditorEndAfter:"recurrenceEditorEndAfter",recurrenceEditorEndOccurrence:"recurrenceEditorEndOccurrence",recurrenceEditorEndLabel:"recurrenceEditorEndLabel",recurrenceEditorEndNever:"recurrenceEditorEndNever",recurrenceEditorEndOn:"recurrenceEditorEndOn",editorTitle:"editorTitle",destroy:"destroy",deleteConfirmation:"deleteConfirmation",editRecurringConfirmation:"editRecurringConfirmation",editOccurrence:"editOccurrence",editSeries:"editSeries",deleteRecurringConfirmation:"deleteRecurringConfirmation",deleteOccurrence:"deleteOccurrence",deleteSeries:"deleteSeries",deleteDialogTitle:"deleteDialogTitle",deleteRecurringDialogTitle:"deleteRecurringDialogTitle",editRecurringDialogTitle:"editRecurringDialogTitle",selectView:"selectView"},features:[n.qOj]}),Ee})(),Jg=(()=>{class Ee extends cg{constructor(G){super(),this.service=G}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(o.oQ))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","kendoSchedulerLocalizedMessages",""]],features:[n._Bn([{provide:cg,useExisting:(0,n.Gpc)(()=>Ee)}]),n.qOj]}),Ee})(),zp=(()=>{class Ee{constructor(G,Ie,gn,Si,zo,_r,zr,Lr,ws,$s,ya,ua,Ja){this.wrapper=G,this.viewContext=Ie,this.viewState=gn,this.editService=Si,this.dialogsService=zo,this.intlService=_r,this.changeDetector=zr,this.zone=Lr,this.pdfService=ws,this.localization=$s,this.domEvents=ya,this.renderer=ua,this.focusService=Ja,this.hostClasses=!0,this.ariaRole="application",this.rtl=!1,this.editable=!1,this.selectable=!1,this.eventHeight=25,this.columnWidth=100,this.startTime="00:00",this.endTime="00:00",this.workDayStart="08:00",this.workDayEnd="17:00",this.slotDuration=60,this.slotDivisions=2,this.slotFill=.9,this.scrollTime=this.workDayStart,this.currentTimeMarker=!0,this.highlightOngoingEvents=!0,this.isSlotSelected=Yn,this.selectedViewIndexChange=new n.vpe,this.navigate=new n.vpe,this.dateChange=new n.vpe,this.slotClick=new n.vpe,this.slotDblClick=new n.vpe,this.create=new n.vpe,this.eventClick=new n.vpe,this.eventDblClick=new n.vpe,this.eventKeydown=new n.vpe,this.cancel=new n.vpe,this.save=new n.vpe,this.remove=new n.vpe,this.resizeStart=new n.vpe,this.resize=new n.vpe,this.resizeEnd=new n.vpe,this.dragStart=new n.vpe,this.drag=new n.vpe,this.dragEnd=new n.vpe,this.slotDragStart=new n.vpe,this.slotDrag=new n.vpe,this.slotDragEnd=new n.vpe,this.pdfExport=new n.vpe,this.schedulerResize=new n.vpe,this.dragEndConfirmed=new n.vpe,this.resizeEndConfirmed=new n.vpe,this.removeConfirmed=new n.vpe,this.showLicenseWatermark=!1,this.viewIndex=0,this._timezone="",this._modelFields=qd;const jl=(0,mt.s)(es);this.showLicenseWatermark=(0,a.Gk)(jl),this.dateRangeStream=gn.dateRange,this.selectedDateStream=Ie.selectedDate}get dir(){return this.direction}set selectedViewIndex(G){this.viewIndex=G,this.onViewIndexChange()}get selectedViewIndex(){return this.viewIndex}set weekStart(G){this._weekStart=G}get weekStart(){return Sl(this._weekStart)?this._weekStart:this.intlService.firstDay()}set timezone(G){this._timezone=G,this.events=this.events||[]}get timezone(){return this._timezone}set events(G){this._events=G,this.processEvents(G)}get events(){return this._events}set selectedDate(G){G&&(this._selectedDate=G,this.viewContext.notifySelectedDate(G))}get selectedDate(){return this._selectedDate}set modelFields(G){this._modelFields={...qd,...G}}get modelFields(){return this._modelFields}ngOnInit(){this.selectedDate||(this.selectedDate=(0,l._)(new Date))}ngAfterContentInit(){if((0,n.X6Q)()&&0===this.views.length)throw new Error("No views declared for <kendo-scheduler>. Please, declare at least one view.");this.subs=this.views.changes.subscribe(()=>this.resetViewIndex()),this.subs.add(this.intlService.changes.subscribe(this.intlChange.bind(this))),this.subs.add(this.viewState.nextDate.subscribe(G=>{this.selectedDate=G})),this.subs.add(this.viewState.dateRange.subscribe(G=>{if(0!==G.start.getTime()){const gn=new Ks(this,this.selectedDate,G);this.dateChange.emit(gn)}})),this.subs.add(this.viewState.navigate.subscribe(({viewName:G,date:Ie})=>{const gn=this.views.toArray(),Si=gn.find(_r=>_r.name===G),zo=new xa(this,{type:"show-date",view:Si||{name:G,title:G},date:Ie});if(this.navigate.next(zo),Si&&!zo.isDefaultPrevented()){const _r=gn.indexOf(Si);this.selectedView=Si,this.setViewIndex(_r),this.selectedDate=Ie}})),this.subs.add(this.viewState.viewEvent.subscribe(({name:G,args:Ie})=>{const gn=this[G],Si=this[`${G}Confirmed`];((0,a.g$)(gn)||Si&&(0,a.g$)(Si))&&this.zone.run(()=>{const zo=new Lc[G](this,Ie);gn.emit(zo),Ie.prevented=zo.prevented,Si&&!Ie.prevented&&Si.emit(zo)})})),this.subs.add(this.viewState.layoutEnd.subscribe(()=>{this.resizeSensor&&this.resizeSensor.acceptSize()})),this.subs.add(this.viewState.slotSelectionStart.subscribe(G=>{(0,a.g$)(this.slotDragStart)&&this.zone.run(()=>{this.slotDragStart.emit(Object.assign(G,{sender:this}))})})),this.subs.add(this.viewState.slotSelectionDrag.subscribe(G=>{(0,a.g$)(this.slotDrag)&&this.zone.run(()=>{this.slotDrag.emit(new Vd(this,G))})})),this.subs.add(this.viewState.slotSelectionEnd.subscribe(G=>{(0,a.g$)(this.slotDragEnd)&&this.zone.run(()=>{this.slotDragEnd.emit(new Fu(this,G))})})),this.onViewIndexChange(),this.notifyOptionsChange=this.notifyOptionsChange.bind(this),this.subs.add(this.allDayEventTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.eventTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.timeSlotTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.timeSlotTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.minorTimeHeaderTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.majorTimeHeaderTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.monthDaySlotTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.multiWeekDaySlotTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.dateHeaderTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.allDaySlotTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.groupHeaderTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.agendaDateTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.agendaTimeTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.views.changes.subscribe(()=>{this.changeDetector.markForCheck()})),this.attachEditHandlers(),this.dialogsService.container=this.confirmationDialogContainerRef,this.notifyOptionsChange(),this.subs.add(this.pdfService.exportClick.subscribe(()=>{const G=new Df;this.pdfExport.emit(G),G.isDefaultPrevented()||this.saveAsPDF()})),this.subs.add(this.pdfService.done.subscribe(()=>{this.loadingComponent.toggle(!1)})),this.subs.add(this.localization.changes.subscribe(({rtl:G})=>{this.rtl=G,this.direction=this.rtl?"rtl":"ltr"})),this.subs.add(this.viewState.optionsChange.subscribe(()=>{this.changeDetector.markForCheck()})),this.attachElementEventHandlers()}ngOnChanges(G){(0,a.ln)("resources",G)&&!(0,a.ln)("events",G)&&this.viewItems&&this.viewItems.forEach(Ie=>{$l(Ie.event,this.resources)}),(0,a.aG)(["group","resources","min","max","showWorkHours","startTime","scrollTime","endTime","eventHeight","workDayStart","workDayEnd","workWeekStart","workWeekEnd","weekStart","slotDuration","slotDivisions","editable","timezone","slotClass","slotFill","columnWidth","eventClass","eventStyles","isSlotSelected","selectable"],G)&&this.notifyOptionsChange(G)}ngOnDestroy(){this.subs&&this.subs.unsubscribe(),this.detachElementEventHandlers&&this.detachElementEventHandlers()}onResize(G){this.viewContext.notifyResize()}onNavigationAction(G){const Ie=new xa(this,G);if(this.navigate.next(Ie),Ie.isDefaultPrevented())return!0;if("view-change"===G.type){const Si=this.views.toArray().indexOf(G.view);this.selectedView=G.view,this.setViewIndex(Si)}else if("select-date"===G.type)this.isInRange(G.date)&&(this.selectedDate=G.date);else if("today"===G.type){const gn=new Date;this.isInRange(gn)&&(this.selectedDate=gn)}else"toggle-business-hours"===G.type?this.viewState.toggleWorkHours.next(null):"focus-toolbar"===G.type?this.focusService.focusToolbar():this.viewContext.notifyAction(G)}onToolbarWidthChange(G){this.schedulerResize.emit(G)}addEvent(G){if(!(G instanceof Mi.cw)){const gn=zo=>(_r,zr)=>(_r[zr]=new Mi.NI(zo[zr]),_r),Si=Object.keys(G).reduce(gn(G),{});G=new Mi.cw(Si)}this.editService.addEvent(G)}editEvent(G,Ie={}){const{group:gn,mode:Si}=Ie;this.editService.editEvent(G,gn,Si)}closeEvent(){this.editService.close()}isEditing(){return this.editService.isEditing()}openRecurringConfirmationDialog(G){return this.dialogsService.openRecurringConfirmationDialog(G)}openRemoveConfirmationDialog(){return this.dialogsService.openRemoveConfirmationDialog()}saveAsPDF(){this.loadingComponent.toggle(!0),this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.pdfService.save()},0)})}scrollToTime(G){this.viewContext.notifyAction({type:"scroll-time",time:G})}slotByPosition(G,Ie){return this.viewContext.executeMethod("slotByPosition",{x:G,y:Ie})}eventFromElement(G){return this.viewContext.executeMethod("eventFromElement",{element:G})}get activeEvent(){const G=this.focusService.activeElement;if(G&&G.nativeElement.matches(".k-event, [data-task-index]"))return this.eventFromElement(G.nativeElement)}focusNext(G){const Ie=this.focusService.focusNext(G);return this.zone.onStable.pipe((0,Ut.q)(1)).subscribe(()=>this.focusService.focus()),Ie}focusPrev(G){const Ie={offset:-1,...G},gn=this.focusService.focusNext(Ie);return this.zone.onStable.pipe((0,Ut.q)(1)).subscribe(()=>this.focusService.focus()),gn}focus(){this.zone.onStable.pipe((0,Ut.q)(1)).subscribe(()=>this.focusService.focus())}isInRange(G){return(!this.min||this.min<=G)&&(!this.max||G<=this.max)}notifyOptionsChange(G){const Ie=this.workWeek;this.viewContext.notifyOptionsChange({group:this.group,resources:this.resources,allDayEventTemplate:this.allDayEventTemplate?this.allDayEventTemplate.first:null,eventTemplate:this.eventTemplate?this.eventTemplate.first:null,timeSlotTemplate:this.timeSlotTemplate?this.timeSlotTemplate.first:null,minorTimeHeaderTemplate:this.minorTimeHeaderTemplate?this.minorTimeHeaderTemplate.first:null,majorTimeHeaderTemplate:this.majorTimeHeaderTemplate?this.majorTimeHeaderTemplate.first:null,monthDaySlotTemplate:this.monthDaySlotTemplate?this.monthDaySlotTemplate.first:null,multiWeekDaySlotTemplate:this.multiWeekDaySlotTemplate?this.multiWeekDaySlotTemplate.first:null,dateHeaderTemplate:this.dateHeaderTemplate?this.dateHeaderTemplate.first:null,allDaySlotTemplate:this.allDaySlotTemplate?this.allDaySlotTemplate.first:null,groupHeaderTemplate:this.groupHeaderTemplate?this.groupHeaderTemplate.first:null,agendaDateTemplate:this.agendaDateTemplate?this.agendaDateTemplate.first:null,agendaTimeTemplate:this.agendaTimeTemplate?this.agendaTimeTemplate.first:null,min:this.min,max:this.max,showWorkHours:this.showWorkHours,startTime:this.startTime,scrollTime:this.scrollTime,endTime:this.endTime,workDayStart:this.workDayStart,workDayEnd:this.workDayEnd,workWeekStart:Ie.start,workWeekEnd:Ie.end,weekStart:this.weekStart,slotDuration:this.slotDuration,slotDivisions:this.slotDivisions,eventHeight:this.eventHeight,editable:this.editable,selectable:this.selectable,timezone:this.timezone,currentTimeMarker:this.currentTimeMarker,highlightOngoingEvents:this.highlightOngoingEvents,slotClass:this.slotClass,slotFill:this.slotFill,columnWidth:this.columnWidth,eventClass:this.eventClass,eventStyles:this.eventStyles,isSlotSelected:this.isSlotSelected,changes:G})}get workWeek(){const{start:G,end:Ie}=this.intlService.weekendRange(),gn=Sl(this.workWeekStart)?this.workWeekStart:(Ie+1)%7,Si=G>0?G-1:z.J.Saturday;return{start:gn,end:Sl(this.workWeekEnd)?this.workWeekEnd:Si}}resetViewIndex(){const Ie=Math.max(0,Math.min(this.selectedViewIndex,this.views.length-1));this.setViewIndex(Ie),this.onViewIndexChange()}onViewIndexChange(){if(!this.views)return;const Ie=this.views.toArray()[this.viewIndex];Ie&&(this.selectedView=Ie)}setViewIndex(G){const Ie=this.selectedViewIndex!==G;return Ie&&(this.selectedViewIndex=G,this.selectedViewIndexChange.emit(G)),Ie}processEvents(G){const Ie=this.timezone,gn=this.modelFields,Si=G.map(zo=>fl(zo,gn,this.resources)).filter(zo=>!(Ee=>Ee.recurrenceRule&&!Sl(Ee.recurrenceId))(zo)).map(zo=>({start:H.fromLocalDate(zo.start,Ie),end:H.fromLocalDate(zo.end,Ie),event:zo}));this.viewItems=Si,this.viewContext.notifyItems(Si)}attachEditHandlers(){this.editService&&this.subs.add(this.editService.changes.subscribe(this.emitCRUDEvent.bind(this)))}emitCRUDEvent(G){switch(Object.assign(G,{sender:this}),G.action){case"cancel":this.cancel.emit(G);break;case"save":this.save.emit(G)}}intlChange(){const G=this.selectedView;this.selectedView=null,(!Sl(this.workWeekStart)||!Sl(this.workWeekEnd))&&this.notifyOptionsChange(),this.changeDetector.detectChanges(),this.selectedView=G,n.R0b.isInAngularZone()?this.changeDetector.markForCheck():this.changeDetector.detectChanges()}attachElementEventHandlers(){if(!(0,a.X_)())return;const G=this.wrapper.nativeElement;this.zone.runOutsideAngular(()=>{const Ie=this.renderer.listen("window","blur",Lr=>{this.domEvents.windowBlur.emit(Lr)}),gn=this.renderer.listen(G,"click",Lr=>{this.domEvents.click.emit(Lr)}),Si=this.renderer.listen(G,"keydown",Lr=>{this.domEvents.keydown.emit(Lr)});let zo=!1;const _r=this.renderer.listen(G,"focusin",Lr=>{this.domEvents.focus.emit(Lr),zo||(this.domEvents.focusIn.emit(Lr),this.renderer.addClass(this.wrapper.nativeElement,"k-focus"),zo=!0)}),zr=this.renderer.listen(G,"focusout",Lr=>{!((Ee,at)=>{for(;Ee&&Ee!==G;)Ee=Ee.parentNode;return Ee})(Lr.relatedTarget||document.activeElement)&&(this.domEvents.focusOut.emit(Lr),this.renderer.removeClass(this.wrapper.nativeElement,"k-focus"),zo=!1)});this.detachElementEventHandlers=()=>{Ie(),gn(),Si(),_r(),zr()}})}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.SBq),n.Y36(Ad),n.Y36(uc),n.Y36(qa),n.Y36(Od),n.Y36(Eo.aJ),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(Wh),n.Y36(o.oQ),n.Y36(Uc),n.Y36(n.Qsj),n.Y36(pu))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["kendo-scheduler"]],contentQueries:function(G,Ie,gn){if(1&G&&(n.Suo(gn,qh,5),n.Suo(gn,Ch,5),n.Suo(gn,Sd,4),n.Suo(gn,Xh,4),n.Suo(gn,Nc,4),n.Suo(gn,Pp,4),n.Suo(gn,oh,4),n.Suo(gn,Eh,4),n.Suo(gn,yd,4),n.Suo(gn,Nd,4),n.Suo(gn,pf,4),n.Suo(gn,Sh,4),n.Suo(gn,wh,4),n.Suo(gn,Qh,4),n.Suo(gn,xh,4)),2&G){let Si;n.iGM(Si=n.CRH())&&(Ie.editDialogTemplate=Si.first),n.iGM(Si=n.CRH())&&(Ie.toolbarTemplate=Si.first),n.iGM(Si=n.CRH())&&(Ie.views=Si),n.iGM(Si=n.CRH())&&(Ie.allDayEventTemplate=Si),n.iGM(Si=n.CRH())&&(Ie.eventTemplate=Si),n.iGM(Si=n.CRH())&&(Ie.timeSlotTemplate=Si),n.iGM(Si=n.CRH())&&(Ie.minorTimeHeaderTemplate=Si),n.iGM(Si=n.CRH())&&(Ie.majorTimeHeaderTemplate=Si),n.iGM(Si=n.CRH())&&(Ie.monthDaySlotTemplate=Si),n.iGM(Si=n.CRH())&&(Ie.multiWeekDaySlotTemplate=Si),n.iGM(Si=n.CRH())&&(Ie.dateHeaderTemplate=Si),n.iGM(Si=n.CRH())&&(Ie.allDaySlotTemplate=Si),n.iGM(Si=n.CRH())&&(Ie.groupHeaderTemplate=Si),n.iGM(Si=n.CRH())&&(Ie.agendaDateTemplate=Si),n.iGM(Si=n.CRH())&&(Ie.agendaTimeTemplate=Si)}},viewQuery:function(G,Ie){if(1&G&&(n.Gf(a.NG,7),n.Gf(Ke,7,n.s_b),n.Gf(Au,7)),2&G){let gn;n.iGM(gn=n.CRH())&&(Ie.resizeSensor=gn.first),n.iGM(gn=n.CRH())&&(Ie.confirmationDialogContainerRef=gn.first),n.iGM(gn=n.CRH())&&(Ie.loadingComponent=gn.first)}},hostVars:12,hostBindings:function(G,Ie){2&G&&(n.uIk("role",Ie.ariaRole)("dir",Ie.dir),n.ekj("k-widget",Ie.hostClasses)("k-scheduler",Ie.hostClasses)("k-floatwrap",Ie.hostClasses)("k-pos-relative",Ie.hostClasses)("k-rtl",Ie.rtl))},inputs:{selectedViewIndex:"selectedViewIndex",editable:"editable",selectable:"selectable",min:"min",max:"max",eventHeight:"eventHeight",columnWidth:"columnWidth",showWorkHours:"showWorkHours",startTime:"startTime",endTime:"endTime",workDayStart:"workDayStart",workDayEnd:"workDayEnd",workWeekStart:"workWeekStart",workWeekEnd:"workWeekEnd",weekStart:"weekStart",slotDuration:"slotDuration",slotDivisions:"slotDivisions",slotFill:"slotFill",scrollTime:"scrollTime",group:"group",resources:"resources",loading:"loading",timezone:"timezone",events:"events",selectedDate:"selectedDate",modelFields:"modelFields",currentTimeMarker:"currentTimeMarker",highlightOngoingEvents:"highlightOngoingEvents",slotClass:"slotClass",eventClass:"eventClass",eventStyles:"eventStyles",isSlotSelected:"isSlotSelected"},outputs:{selectedViewIndexChange:"selectedViewIndexChange",navigate:"navigate",dateChange:"dateChange",slotClick:"slotClick",slotDblClick:"slotDblClick",create:"create",eventClick:"eventClick",eventDblClick:"eventDblClick",eventKeydown:"eventKeydown",cancel:"cancel",save:"save",remove:"remove",resizeStart:"resizeStart",resize:"resize",resizeEnd:"resizeEnd",dragStart:"dragStart",drag:"drag",dragEnd:"dragEnd",slotDragStart:"slotDragStart",slotDrag:"slotDrag",slotDragEnd:"slotDragEnd",pdfExport:"pdfExport",schedulerResize:"schedulerResize"},features:[n._Bn([qa,Od,Uc,Mh,pu,Fd,{provide:o.oQ,useExisting:Fd},{provide:o.mM,useValue:"kendo.scheduler"},mh,Ad,uc,Wh]),n.TTD],decls:9,vars:15,consts:function(){let at,G,Ie,gn,Si,zo,_r,zr,Lr,ws,$s,ya,ua,Ja,jl,zd,md,Xu,Lh,qu,lf,Wu,bh,kp,jp,Bg,zg,n_,i_,Ug,Hm,Vm,ed,w_,j_,Ef,o_,E_,T_,hm,Nh,Gg,Dm,r_,ng,pp,s_,a_,Hg,yg,l_,_v,c_,fm,d_,D_,Vg,N_,mp,Ip,Fh,cu,eh,bg,Cg,xg,Wg,u_,Ap,M_,ig,h_,f_,Mm,Y_,k_,F_,ko;return at=$localize`:kendo.scheduler.allEvents|The All events text displayed in the timeline views when there is no vertical grouping.:All events`,G=$localize`:kendo.scheduler.allDay|The all day text displayed in the day and week views.:all day`,Ie=$localize`:kendo.scheduler.dateHeader|The date header text displayed in the agenda view.:Date`,gn=$localize`:kendo.scheduler.timeHeader|The time header text displayed in the agenda view.:Time`,Si=$localize`:kendo.scheduler.deleteTitle|The delete icon title.:Delete`,zo=$localize`:kendo.scheduler.eventHeader|The event header text displayed in the agenda view.:Event`,_r=$localize`:kendo.scheduler.nextTitle|The title of the navigation next button.:Next`,zr=$localize`:kendo.scheduler.previousTitle|The title of the navigation previous button.:Previous`,Lr=$localize`:kendo.scheduler.showFullDay|The text of the show full day button displayed in the footer of the day, week and timeline views.:Show full day`,ws=$localize`:kendo.scheduler.showWorkDay|The text of the show work day button displayed in the footer of the day, week and timeline views.:Show business hours`,$s=$localize`:kendo.scheduler.today|The today button text displayed in the navigation.:Today`,ya=$localize`:kendo.scheduler.calendarToday|The text of today's date in the header of the Calendar.:TODAY`,ua=$localize`:kendo.scheduler.dayViewTitle|The day view title.:Day`,Ja=$localize`:kendo.scheduler.multiDayViewTitle|The multi day view title.:Multi-Day`,jl=$localize`:kendo.scheduler.weekViewTitle|The week view title.:Week`,zd=$localize`:kendo.scheduler.workWeekViewTitle|The work week view title.:Work Week`,md=$localize`:kendo.scheduler.monthViewTitle|The month view title.:Month`,Xu=$localize`:kendo.scheduler.multiWeekViewTitle|The multi week view title.:Multi-Week`,Lh=$localize`:kendo.scheduler.timelineViewTitle|The timeline view title.:Timeline`,qu=$localize`:kendo.scheduler.timelineWeekViewTitle|The timeline week view title.:Timeline Week`,lf=$localize`:kendo.scheduler.timelineMonthViewTitle|The timeline month view title.:Timeline Month`,Wu=$localize`:kendo.scheduler.agendaViewTitle|The agenda view title.:Agenda`,bh=$localize`:kendo.scheduler.cancel|The text similar to 'Cancel' displayed in scheduler.:Cancel`,kp=$localize`:kendo.scheduler.save|The text similar to 'Save' displayed in scheduler.:Save`,jp=$localize`:kendo.scheduler.editorEventTitle|The text similar to 'Title' displayed in the scheduler event editor.:Title`,Bg=$localize`:kendo.scheduler.editorEventStart|The text similar to 'Start' displayed in the scheduler event editor.:Start`,zg=$localize`:kendo.scheduler.editorEventStartTimeZone|The text similar to 'Start Time Zone' displayed in the scheduler event editor.:Start Time Zone`,n_=$localize`:kendo.scheduler.editorEventEnd|The text similar to 'End' displayed in the scheduler event editor.:End`,i_=$localize`:kendo.scheduler.editorEventEndTimeZone|The text similar to 'End Time Zone' displayed in the scheduler event editor.:End Time Zone`,Ug=$localize`:kendo.scheduler.editorEventAllDay|The text similar to 'All Day event' displayed in the scheduler event editor.:All Day Event`,Hm=$localize`:kendo.scheduler.editorEventDescription|The text similar to 'Description' displayed in the scheduler event editor.:Description`,Vm=$localize`:kendo.scheduler.editorEventSeparateTimeZones|The text similar to 'Use separate Start and End Time Zones' displayed in the scheduler event editor.:End in different Time Zone`,ed=$localize`:kendo.scheduler.editorEventTimeZone|The text similar to 'Time Zone' displayed in the scheduler event editor.:Specify Time Zone`,w_=$localize`:kendo.scheduler.editorTitle|The text similar to 'Event' displayed as title of the scheduler event editor.:Event`,j_=$localize`:kendo.scheduler.recurrenceEditorRepeat|The text similar to 'Repeat' displayed in the scheduler recurrence editor.:Repeat`,Ef=$localize`:kendo.scheduler.recurrenceEditorDailyInterval|The text similar to 'day(s)' displayed in the scheduler recurrence editor.:day(s)`,o_=$localize`:kendo.scheduler.recurrenceEditorDailyRepeatEvery|The text similar to 'Repeat every' displayed in the scheduler recurrence editor.:Repeat every`,E_=$localize`:kendo.scheduler.recurrenceEditorWeeklyInterval|The text similar to 'week(s)' displayed in the scheduler recurrence editor.:week(s)`,T_=$localize`:kendo.scheduler.recurrenceEditorWeeklyRepeatEvery|The text similar to 'Repeat every' displayed in the scheduler recurrence editor.:Repeat every`,hm=$localize`:kendo.scheduler.recurrenceEditorWeeklyRepeatOn|The text similar to 'Repeat on' displayed in the scheduler recurrence editor.:Repeat on`,Nh=$localize`:kendo.scheduler.recurrenceEditorMonthlyDay|The text similar to 'Day' displayed in the scheduler recurrence editor.:Day`,Gg=$localize`:kendo.scheduler.recurrenceEditorMonthlyInterval|The text similar to 'month(s)' displayed in the scheduler recurrence editor.:month(s)`,Dm=$localize`:kendo.scheduler.recurrenceEditorMonthlyRepeatEvery|The text similar to 'Repeat every' displayed in the scheduler recurrence editor.:Repeat every`,r_=$localize`:kendo.scheduler.recurrenceEditorMonthlyRepeatOn|The text similar to 'Repeat on' displayed in the scheduler recurrence editor.:Repeat on`,ng=$localize`:kendo.scheduler.recurrenceEditorYearlyOf|The text similar to 'of' displayed in the scheduler recurrence editor.:of`,pp=$localize`:kendo.scheduler.recurrenceEditorYearlyRepeatEvery|The text similar to 'Repeat every' displayed in the scheduler recurrence editor.:Repeat every`,s_=$localize`:kendo.scheduler.recurrenceEditorYearlyRepeatOn|The text similar to 'Repeat on' displayed in the scheduler recurrence editor.:Repeat on`,a_=$localize`:kendo.scheduler.recurrenceEditorYearlyInterval|The text similar to 'year(s)' displayed in the scheduler recurrence editor.:year(s)`,Hg=$localize`:kendo.scheduler.recurrenceEditorFrequenciesDaily|The text similar to 'Daily' displayed in the scheduler recurrence editor.:Daily`,yg=$localize`:kendo.scheduler.recurrenceEditorFrequenciesMonthly|The text similar to 'Monthly' displayed in the scheduler recurrence editor.:Monthly`,l_=$localize`:kendo.scheduler.recurrenceEditorFrequenciesNever|The text similar to 'Never' displayed in the scheduler recurrence editor.:Never`,_v=$localize`:kendo.scheduler.recurrenceEditorFrequenciesWeekly|The text similar to 'Weekly' displayed in the scheduler recurrence editor.:Weekly`,c_=$localize`:kendo.scheduler.recurrenceEditorFrequenciesYearly|The text similar to 'Yearly' displayed in the scheduler recurrence editor.:Yearly`,fm=$localize`:kendo.scheduler.recurrenceEditorOffsetPositionsFirst|The text similar to 'First' displayed in the scheduler recurrence editor.:First`,d_=$localize`:kendo.scheduler.recurrenceEditorOffsetPositionsSecond|The text similar to 'Second' displayed in the scheduler recurrence editor.:Second`,D_=$localize`:kendo.scheduler.recurrenceEditorOffsetPositionsThird|The text similar to 'Third' displayed in the scheduler recurrence editor.:Third`,Vg=$localize`:kendo.scheduler.recurrenceEditorOffsetPositionsFourth|The text similar to 'Fourth' displayed in the scheduler recurrence editor.:Fourth`,N_=$localize`:kendo.scheduler.recurrenceEditorOffsetPositionsLast|The text similar to 'Last' displayed in the scheduler recurrence editor.:Last`,mp=$localize`:kendo.scheduler.recurrenceEditorWeekdaysDay|The text similar to 'Day' displayed in the repeat by section of the monthly recurrence pattern.:Day`,Ip=$localize`:kendo.scheduler.recurrenceEditorWeekdaysWeekday|The text similar to 'Weekday' displayed in the repeat by section of the monthly recurrence pattern.:Weekday`,Fh=$localize`:kendo.scheduler.recurrenceEditorWeekdaysWeekendday|The text similar to 'Weekend Day' displayed in the repeat by section of the monthly recurrence pattern.:Weekend Day`,cu=$localize`:kendo.scheduler.recurrenceEditorEndAfter|The text similar to 'After' displayed in the scheduler recurrence editor.:After`,eh=$localize`:kendo.scheduler.recurrenceEditorEndOccurrence|The text similar to 'occurrence(s)' displayed in the scheduler recurrence editor.:occurrence(s)`,bg=$localize`:kendo.scheduler.recurrenceEditorEndLabel|The text similar to 'End' displayed in the scheduler recurrence editor.:End`,Cg=$localize`:kendo.scheduler.recurrenceEditorEndNever|The text similar to 'Never' displayed in the scheduler recurrence editor.:Never`,xg=$localize`:kendo.scheduler.recurrenceEditorEndOn|The text similar to 'On' displayed in the scheduler recurrence editor.:On`,Wg=$localize`:kendo.scheduler.destroy|The text of the 'Delete' button displayed in the scheduler remove confirmation dialog.:Delete`,u_=$localize`:kendo.scheduler.deleteConfirmation|The text similar to 'Are you sure you want to delete this event?' displayed in scheduler remove confirmation dialog.:Are you sure you want to delete this event?`,Ap=$localize`:kendo.scheduler.editRecurringConfirmation|The text similar to 'Do you want to edit only this event occurrence or the whole series?' displayed in the scheduler recurring confirmation dialog.:Do you want to edit only this event occurrence or the whole series?`,M_=$localize`:kendo.scheduler.editOccurrence|The text of the 'Edit current occurrence' button displayed in the scheduler recurring confirmation dialog.:Edit current occurrence`,ig=$localize`:kendo.scheduler.editSeries|The text of the 'Edit the series' button displayed in the scheduler recurring confirmation dialog.:Edit the series`,h_=$localize`:kendo.scheduler.deleteRecurringConfirmation|The text similar to 'Do you want to delete only this event occurrence or the whole series?' displayed in the scheduler recurring confirmation dialog.:Do you want to delete only this event occurrence or the whole series?`,f_=$localize`:kendo.scheduler.deleteOccurrence|The text of the 'Delete current occurrence' button displayed in the scheduler recurring confirmation dialog.:Delete current occurrence`,Mm=$localize`:kendo.scheduler.deleteSeries|The text similar of the 'Delete the series' button displayed in the scheduler recurring confirmation dialog.:Delete the series`,Y_=$localize`:kendo.scheduler.deleteDialogTitle|The title of the remove confirmation dialog, similar to 'Delete Event'.:Delete Event`,k_=$localize`:kendo.scheduler.deleteRecurringDialogTitle|The title of the recurring remove confirmation dialog, similar to 'Delete Recurring Item':Delete Recurring Item`,F_=$localize`:kendo.scheduler.editRecurringDialogTitle|The title of the recurring edit confirmation dialog, similar to 'Edit Recurring Item':Edit Recurring Item`,ko=$localize`:kendo.scheduler.selectView|The value of the aria-label attribute of the <select> element used for switching the Scheduler views.:Select View`,[["kendoSchedulerLocalizedMessages","","allEvents",at,"allDay",G,"dateHeader",Ie,"timeHeader",gn,"deleteTitle",Si,"eventHeader",zo,"nextTitle",_r,"previousTitle",zr,"showFullDay",Lr,"showWorkDay",ws,"today",$s,"calendarToday",ya,"dayViewTitle",ua,"multiDayViewTitle",Ja,"weekViewTitle",jl,"workWeekViewTitle",zd,"monthViewTitle",md,"multiWeekViewTitle",Xu,"timelineViewTitle",Lh,"timelineWeekViewTitle",qu,"timelineMonthViewTitle",lf,"agendaViewTitle",Wu,"cancel",bh,"save",kp,"editorEventTitle",jp,"editorEventStart",Bg,"editorEventStartTimeZone",zg,"editorEventEnd",n_,"editorEventEndTimeZone",i_,"editorEventAllDay",Ug,"editorEventDescription",Hm,"editorEventSeparateTimeZones",Vm,"editorEventTimeZone",ed,"editorTitle",w_,"recurrenceEditorRepeat",j_,"recurrenceEditorDailyInterval",Ef,"recurrenceEditorDailyRepeatEvery",o_,"recurrenceEditorWeeklyInterval",E_,"recurrenceEditorWeeklyRepeatEvery",T_,"recurrenceEditorWeeklyRepeatOn",hm,"recurrenceEditorMonthlyDay",Nh,"recurrenceEditorMonthlyInterval",Gg,"recurrenceEditorMonthlyRepeatEvery",Dm,"recurrenceEditorMonthlyRepeatOn",r_,"recurrenceEditorYearlyOf",ng,"recurrenceEditorYearlyRepeatEvery",pp,"recurrenceEditorYearlyRepeatOn",s_,"recurrenceEditorYearlyInterval",a_,"recurrenceEditorFrequenciesDaily",Hg,"recurrenceEditorFrequenciesMonthly",yg,"recurrenceEditorFrequenciesNever",l_,"recurrenceEditorFrequenciesWeekly",_v,"recurrenceEditorFrequenciesYearly",c_,"recurrenceEditorOffsetPositionsFirst",fm,"recurrenceEditorOffsetPositionsSecond",d_,"recurrenceEditorOffsetPositionsThird",D_,"recurrenceEditorOffsetPositionsFourth",Vg,"recurrenceEditorOffsetPositionsLast",N_,"recurrenceEditorWeekdaysDay",mp,"recurrenceEditorWeekdaysWeekday",Ip,"recurrenceEditorWeekdaysWeekendday",Fh,"recurrenceEditorEndAfter",cu,"recurrenceEditorEndOccurrence",eh,"recurrenceEditorEndLabel",bg,"recurrenceEditorEndNever",Cg,"recurrenceEditorEndOn",xg,"destroy",Wg,"deleteConfirmation",u_,"editRecurringConfirmation",Ap,"editOccurrence",M_,"editSeries",ig,"deleteRecurringConfirmation",h_,"deleteOccurrence",f_,"deleteSeries",Mm,"deleteDialogTitle",Y_,"deleteRecurringDialogTitle",k_,"editRecurringDialogTitle",F_,"selectView",ko],[3,"dateRange","selectedDate","views","selectedView","template","min","max","navigate","toolbarWidthChange"],[4,"ngTemplateOutlet"],["confirmationDialogContainer",""],[3,"resources","editTemplate","timezone","weekStart","fields"],[3,"resize"],["kendoSchedulerLoading","",3,"loading"],["kendoWatermarkOverlay","",4,"ngIf"],["kendoWatermarkOverlay",""]]},template:function(G,Ie){1&G&&(n.GkF(0,0),n.TgZ(1,"kendo-scheduler-toolbar",1),n.NdJ("navigate",function(Si){return Ie.onNavigationAction(Si)})("toolbarWidthChange",function(Si){return Ie.onToolbarWidthChange(Si)}),n.qZA(),n.YNc(2,ze,1,0,"ng-container",2),n.GkF(3,null,3),n._UZ(5,"kendo-scheduler-edit-dialog",4),n.TgZ(6,"kendo-resize-sensor",5),n.NdJ("resize",function(){return Ie.onResize()}),n.qZA(),n._UZ(7,"div",6),n.YNc(8,St,1,0,"div",7)),2&G&&(n.xp6(1),n.Q6J("dateRange",Ie.dateRangeStream)("selectedDate",Ie.selectedDateStream)("views",Ie.views)("selectedView",Ie.selectedView)("template",Ie.toolbarTemplate)("min",Ie.min)("max",Ie.max),n.xp6(1),n.Q6J("ngTemplateOutlet",null==Ie.selectedView?null:Ie.selectedView.template),n.xp6(3),n.Q6J("resources",Ie.resources)("editTemplate",Ie.editDialogTemplate)("timezone",Ie.timezone)("weekStart",Ie.weekStart)("fields",Ie.modelFields),n.xp6(2),n.Q6J("loading",Ie.loading),n.xp6(1),n.Q6J("ngIf",Ie.showLicenseWatermark))},dependencies:[Fa,Ag,a.NG,Au,a.nA,Jg,Xt.tP,Xt.O5],encapsulation:2,changeDetection:0}),Ee})(),Jm=(()=>{class Ee{constructor(G,Ie,gn,Si){this.scheduler=G,this.changeDetector=Ie,this.intl=gn,this.localDataChangesService=Si,this.originalData=[],Si&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(this.rebind.bind(this)))}set data(G){this.originalData=G||[],this.localDataChangesService&&(this.localDataChangesService.data=G),this.scheduler.events=this.process()}ngOnInit(){this.subscription=this.scheduler.dateChange.subscribe(G=>this.onDateChange(G))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.dataChangedSubscription&&this.dataChangedSubscription.unsubscribe()}rebind(){this.data=this.originalData,this.changeDetector.markForCheck()}process(){if(!this.dateRange)return[];const G=[],Ie=this.scheduler.modelFields;return this.originalData.forEach(gn=>{if(hc(gn,Ie.recurrenceRule)){const Si=((Ee,at,G,Ie,gn)=>{const Si=Ti({recurrenceRule:hc(Ee,at.recurrenceRule),weekStart:gn});if(!Si.start){const $s=hc(Ee,at.start);Si.start=H.fromLocalDate($s,Ie)}if(!Si.end){const $s=hc(Ee,at.end);Si.end=H.fromLocalDate($s,Ie)}const zo=hc(Ee,at.recurrenceExceptions);zo&&(Si.exceptionDates=zo.map($s=>H.fromLocalDate($s,Ie)));const _r=If(G.start),zr=If(G.end),Lr=function Go(Ee,at){const{rangeStart:G,rangeEnd:Ie}=at;if(!Ee)return{success:!0,errorMessage:"",events:[]};const gn=Ee.freq,Si=Oa[gn],zo=Ee.start,_r=((Ee,at)=>at.getTime()-Ee.getTime())(Ee.start,Ee.end);let zr;if(Ee.start.getTime()>Ee.end.getTime())return{success:!1,errorMessage:`Invalid recurrence rule: Start date (${Ee.start})is greater than End date ${Ee.start}`,events:[]};if(!Si)return{success:!1,errorMessage:`Invalid recurrence frequency "${gn}"`,events:[]};let Lr=[];const ws=Ee.bySetPosition;let $s=ws?0:1;const ya=Ee.exceptionDates;let ua=G.toTimezone(zo.timezone);const Ja=ua;let jl=Ie.toTimezone(zo.timezone);const zd=Ee.count;Ee.until&&Ee.until.getTime()<jl.getTime()&&(jl=Ee.until.clone());let md=ua.getHours(),Xu=ua.getMinutes(),Lh=ua.getSeconds();const qu="yearly"===gn||"monthly"===gn||"weekly"===gn;if(ua.getTime()<zo.getTime()||zd||Ee.interval>1||qu)ua=zo.clone();else{Ee.byHour||(md=zo.getHours()),Ee.byMinute||(Xu=zo.getMinutes()),Ee.bySecond||(Lh=zo.getSeconds());const bh=ua.toUTCDate();bh.setUTCHours(md,Xu,Lh,zo.getMilliseconds()),ua=H.fromUTCDate(bh,ua.timezone)}if(Ee._startPeriod=ua.clone(),ws){if(ua=((Ee,at)=>{const G=Ee.toUTCDate();switch(at.freq){case"yearly":G.setUTCFullYear(G.getFullYear(),0,1);break;case"monthly":G.setUTCFullYear(G.getFullYear(),G.getMonth(),1);break;case"weekly":go(G,at.weekStart,-1)}return at.byHour&&G.setUTCHours(0),at.byMinute&&G.setUTCMinutes(0),at.bySecond&&G.setUTCSeconds(0),H.fromUTCDate(G,Ee.timezone)})(ua,Ee),jl=Li(jl,Ee),Sa(jl)-Sa(ua)<0){const kp=jl.toUTCDate();kp.setUTCHours(ua.getHours(),ua.getMinutes(),ua.getSeconds(),ua.getMilliseconds()),jl=H.fromUTCDate(kp,jl.timezone)}Ee._startPeriod=ua.clone(),zr=Li(ua,Ee)}let lf=Sa(ua);Ee._startTime=new Date(lf);let Wu=ua.toUTCDate();for(Si.setup&&(Si.setup(Ee,zo,Wu),ua=H.fromUTCDate(Wu,ua.timezone)),Wu=ua.toUTCDate(),Si.limit(Wu,jl.toUTCDate(),Ee),ua=H.fromUTCDate(Wu,ua.timezone);ua<=jl;){const bh=ua.addTime(_r);if(((ua>=Ja||bh>Ja)&&!tr(ya,ua)||ws)&&(Lr.push({start:Ea(ua),end:Ea(bh)}),("hourly"===gn||"minutely"===gn||"secondly"===gn)&&(lf=Sa(Ea(ua)),Ee._startTime=new Date(lf))),ws){if(Wu=ua.toUTCDate(),Si.next(Wu,Ee),Si.limit(Wu,jl.toUTCDate(),Ee),ua=H.fromUTCDate(Wu,ua.timezone),ua>zr){let jp=Ao(Lr.slice($s),zo,ws);jp=ao(jp,ya),Lr=Lr.slice(0,$s).concat(jp),zr=Li(ua,Ee),$s=Lr.length}if(zd&&zd===$s)break}else{if(zd&&zd===$s)break;$s+=1,Wu=ua.toUTCDate(),Si.next(Wu,Ee),Si.limit(Wu,jl.toUTCDate(),Ee),ua=H.fromUTCDate(Wu,ua.timezone)}}return{success:!0,errorMessage:"",events:Lr}}(Si,{rangeStart:H.fromUTCDate(_r,Ie),rangeEnd:H.fromUTCDate(zr,Ie)});if(!Lr.events.length)return[];const ws=Lr.events.map($s=>{const ya=Ed(Ee);return fd(ya,at.id,0),fd(ya,at.recurrenceId,hc(Ee,at.id)),fd(ya,at.start,$s.start.toLocalDate()),fd(ya,at.end,$s.end.toLocalDate()),ya});return[Ee,...ws]})(gn,Ie,this.dateRange,this.scheduler.timezone,this.scheduler.weekStart);G.push(...Si)}else G.push(gn)}),G}onDateChange(G){this.dateRange=G.dateRange,this.rebind()}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(zp),n.Y36(n.sBO),n.Y36(Eo.aJ),n.Y36(Mh))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","kendoSchedulerBinding",""]],inputs:{data:["kendoSchedulerBinding","data"]}}),Ee})(),ym=(()=>{class Ee{transform(G,...Ie){return G.sort((gn,Si)=>gn.startTime.getTime()-Si.startTime.getTime())}}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275pipe=n.Yjl({name:"sort",type:Ee,pure:!0}),Ee})(),bp=(()=>{class Ee{static exports(){return[ef,ym]}}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275mod=n.oAB({type:Ee}),Ee.\u0275inj=n.cJS({}),Ee})();let dg=(()=>{class Ee{}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275mod=n.oAB({type:Ee}),Ee.\u0275inj=n.cJS({imports:[[Xt.ez,Bn.Fq,ut._8,Ko.Zj,a.OY,bp,a.uv]]}),Ee})();const y_=Ee=>null;let Am=(()=>{class Ee extends Sd{constructor(G,Ie,gn,Si){super(),this.localization=G,this.changeDetector=Ie,this.viewContext=gn,this.viewState=Si,this.schedulerOptions={},this.subs=this.localization.changes.subscribe(()=>{Ie.markForCheck()}),this.subs.add(this.viewContext.optionsChange.subscribe(this.optionsChange.bind(this)))}get viewSlotClass(){return Sl(this.slotClass)?this.slotClass:this.schedulerOptions.slotClass||y_}get viewEventClass(){return Sl(this.eventClass)?this.eventClass:this.schedulerOptions.eventClass}get viewEventStyles(){return Sl(this.eventStyles)?this.eventStyles:this.schedulerOptions.eventStyles}get viewHighlightOngoingEvents(){return Sl(this.highlightOngoingEvents)?this.highlightOngoingEvents:this.schedulerOptions.highlightOngoingEvents}get viewWeekStart(){return this.schedulerOptions.weekStart}ngOnChanges(G){this.viewState.notifyOptionsChange()}ngOnDestroy(){this.subs.unsubscribe()}optionsChange(G){this.schedulerOptions=G}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(o.oQ),n.Y36(n.sBO),n.Y36(Ad),n.Y36(uc))},Ee.\u0275dir=n.lG2({type:Ee,contentQueries:function(G,Ie,gn){if(1&G&&(n.Suo(gn,Nc,5),n.Suo(gn,wh,5)),2&G){let Si;n.iGM(Si=n.CRH())&&(Ie.eventTemplate=Si.first),n.iGM(Si=n.CRH())&&(Ie.groupHeaderTemplate=Si.first)}},viewQuery:function(G,Ie){if(1&G&&n.Gf(it,7),2&G){let gn;n.iGM(gn=n.CRH())&&(Ie.template=gn.first)}},inputs:{slotClass:"slotClass",eventClass:"eventClass",eventStyles:"eventStyles",highlightOngoingEvents:"highlightOngoingEvents"},features:[n.qOj,n.TTD]}),Ee})();const b_=Ee=>at=>G=>Ee(G,at),mu=b_(Ii.Xo),Pf=b_(Ii.vM),Up=(...Ee)=>at=>Ee.reduceRight((G,Ie)=>Ie(G),at);class nm{[ep](){return{next:()=>({done:!0,value:null})}}toString(){return"Empty Iterator"}}let $g=0;class Om{constructor(at,G,Ie){this.start=at,this.end=G,this.events=Ie,this.createIterator=Up(function Wf(Ee){return function*(G){for(let Ie=0;Ie<G.length;Ie++){const gn=G[Ie];yield{type:"group",dataItem:gn,rowSpan:gn.items.length,elementId:`k-scheduler-${Ee.counter}-${Ie}`};for(let Si=1;Si<gn.items.length;Si++)yield{type:"event",dataItem:gn.items[Si],elementId:`k-scheduler-${Ee.counter}-${Ie}-item-${Si}`}}}}(this),Up(Pf([{field:"startDate"}]),mu([{field:"start",dir:"asc"},{field:"end",dir:"asc"}]))),this.counter=$g,$g++}static empty(){return new nm}[ep](){return this.createIterator(this.events)}itemAt(at){const G=this.createIterator(this.events);let gn,Ie=0;do{if(gn=G.next(),gn&&Ie===at){const Si=gn.value;return"group"===Si.type?Si.dataItem.items[0]:Si.dataItem}Ie++}while(gn)}toString(){return this.events.toString()}}function $m(Ee,at,G,Ie){const gn=Ee.event;return{event:gn,start:Ee.start.toUTCDate(),end:Ee.end.toUTCDate(),title:gn.title,isAllDay:gn.isAllDay,color:Ie,resourceIdx:at,resources:G}}const hg=({start:Ee,end:at,isAllDay:G=!1})=>{const Ie=G?Rd(at):at,gn=Math.ceil((Ie-+Rd(Ee))/_.Mb);return G?gn+1:gn},fg=Ee=>{const at=Ee.length;return(...G)=>at===G.length?Ee(...G):fg(Ee.bind(null,...G))},qc=Ee=>(Ee.tail||(Ee.mid=!0),Ee),Pm=(Ee,at)=>(Ee=>Array.from(new Array(Ee).keys()))(hg(Ee)-1).reduce(((Ee,at)=>(G,Ie,gn,Si)=>G.concat(Up(qc,((Ee,at)=>G=>({...G,start:Rd(Ee),end:G.tail&&!G.isAllDay?at:jh(Ee,1),startDate:Rd(Ee)}))(((Ee,at)=>at.length?at[at.length-1].end:Ee)(at,G),Ee.end),(Ee=>at=>(Ee&&(at.tail=!0),at))(gn===Si.length-1))(Ee)))(Ee,at),[]),Xm=fg((Ee,at,G)=>{const Ie=[];for(let gn=0;gn<G.length;gn++){const Si={...G[gn]};Si.startDate=Rd(Si.start),Si.start>=Ee&&Si.start<=at&&Ie.push(Si),hg(Si)>1&&(Si.end=jh(Si.startDate,1),Si.head=!0,Ie.push(...Pm({...G[gn]},Si.end).filter(zo=>Rd(zo.end)<=at&&zo.start>=Ee)))}return Ie});let yh=(()=>{class Ee{constructor(G){this.localization=G,this.classes=!0}get dateMessage(){return this.localization.get("dateHeader")}get timeMessage(){return this.localization.get("timeHeader")}get eventMessage(){return this.localization.get("eventHeader")}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(o.oQ))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["","kendoSchedulerAgendaHeader",""]],hostVars:4,hostBindings:function(G,Ie){2&G&&n.ekj("k-scheduler-header",Ie.classes)("k-state-default",Ie.classes)},inputs:{resources:"resources"},attrs:Dt,decls:11,vars:4,consts:[[1,"k-scheduler-header-wrap"],["role","none",1,"k-scheduler-table"],["role","rowgroup"],["role","row"],["class","k-scheduler-groupcolumn","role","columnheader",4,"ngFor","ngForOf"],["role","columnheader",1,"k-scheduler-datecolumn"],["role","columnheader",1,"k-scheduler-timecolumn"],["role","columnheader"],["role","columnheader",1,"k-scheduler-groupcolumn"]],template:function(G,Ie){1&G&&(n.TgZ(0,"div",0)(1,"table",1)(2,"tbody",2)(3,"tr",3),n.YNc(4,Hn,1,0,"th",4),n.TgZ(5,"th",5),n._uU(6),n.qZA(),n.TgZ(7,"th",6),n._uU(8),n.qZA(),n.TgZ(9,"th",7),n._uU(10),n.qZA()()()()()),2&G&&(n.xp6(4),n.Q6J("ngForOf",Ie.resources),n.xp6(2),n.Oqu(Ie.dateMessage),n.xp6(2),n.Oqu(Ie.timeMessage),n.xp6(2),n.Oqu(Ie.eventMessage))},dependencies:[Xt.sg],encapsulation:2,changeDetection:0}),Ee})(),bm=(()=>{class Ee{constructor(){this.classes=!0,this.roleAttribute="rowheader"}get rowSpan(){return this.item.rowSpan}get itemDate(){return U(this.item.dataItem.value)}}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["","kendoSchedulerAgendaHeaderItem",""]],hostVars:4,hostBindings:function(G,Ie){2&G&&(n.uIk("role",Ie.roleAttribute)("rowspan",Ie.rowSpan),n.ekj("k-scheduler-datecolumn",Ie.classes))},inputs:{item:["kendoSchedulerAgendaHeaderItem","item"],agendaDateTemplate:"agendaDateTemplate"},attrs:Ui,decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[1,"k-scheduler-agendaday"],[1,"k-scheduler-agendaweek"],[1,"k-scheduler-agendadate"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(G,Ie){1&G&&(n.YNc(0,Co,10,12,"ng-container",0),n.YNc(1,Vn,1,4,"ng-container",1)),2&G&&(n.Q6J("ngIf",!Ie.agendaDateTemplate),n.xp6(1),n.Q6J("ngIf",Ie.agendaDateTemplate))},dependencies:[Xt.O5,Xt.tP,Eo.uU],encapsulation:2,changeDetection:0}),Ee})(),Qg=(()=>{class Ee{constructor(G,Ie){this.localization=G,this.localeId=Ie,this.arrowRotateCWIcon=xo.pB,this.arrowsNoRepeatIcon=xo.Mbe,this.xIcon=xo.FZE}get eventTitle(){return`${Ri(U(this.item.start),U(this.item.end),this.item.isAllDay,this.localeId)}, ${this.item.event.title}`}get eventColor(){return this.item.color}get deleteMessage(){return this.localization.get("deleteTitle")}get isRecurrence(){return _m(this.item)}get isRecurrenceException(){return Af(this.item)}get removable(){return this.editable&&!1!==this.editable.remove}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(o.oQ),n.Y36(n.soG))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["","kendoSchedulerAgendaTaskItem",""]],hostVars:1,hostBindings:function(G,Ie){2&G&&n.uIk("aria-label",Ie.eventTitle)},inputs:{item:["kendoSchedulerAgendaTaskItem","item"],color:"color",eventTemplate:"eventTemplate",editable:"editable"},attrs:Dn,decls:7,vars:7,consts:[[1,"k-task",3,"title"],["class","k-scheduler-mark",3,"background-color",4,"ngIf"],["name","arrow-rotate-cw",3,"svgIcon",4,"ngIf"],["name","arrows-no-repeat",3,"svgIcon",4,"ngIf"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["class","k-link k-event-delete","aria-hidden","true",4,"ngIf"],[1,"k-scheduler-mark"],["name","arrow-rotate-cw",3,"svgIcon"],["name","arrows-no-repeat",3,"svgIcon"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"k-link","k-event-delete"],["name","x",3,"svgIcon"]],template:function(G,Ie){1&G&&(n.TgZ(0,"div",0),n.YNc(1,kn,1,2,"span",1),n.YNc(2,ui,1,1,"kendo-icon-wrapper",2),n.YNc(3,Ot,1,1,"kendo-icon-wrapper",3),n.YNc(4,en,2,1,"ng-container",4),n.YNc(5,Ht,1,6,"ng-container",5),n.YNc(6,ft,2,2,"span",6),n.qZA()),2&G&&(n.Q6J("title",Ie.item.title),n.xp6(1),n.Q6J("ngIf",Ie.eventColor),n.xp6(1),n.Q6J("ngIf",Ie.isRecurrence),n.xp6(1),n.Q6J("ngIf",Ie.isRecurrenceException),n.xp6(1),n.Q6J("ngIf",!Ie.eventTemplate),n.xp6(1),n.Q6J("ngIf",Ie.eventTemplate),n.xp6(1),n.Q6J("ngIf",Ie.removable))},dependencies:[yo.ZS,Xt.O5,Xt.tP],encapsulation:2,changeDetection:0}),Ee})(),Pg=(()=>{class Ee{constructor(G,Ie){this.intlService=G,this.localization=Ie,this.classes=!0,this.caretAltLeftIcon=xo.Me8,this.caretAltRightIcon=xo.bI8}extractDataItem(G){return"group"===G.type?G.dataItem.items[0]:G.dataItem}extractDataItemInLocalTime(G){let Ie;return"group"===G.type?(Ie={...G.dataItem.items[0]},Ie.start=U(G.dataItem.items[0].start),Ie.end=U(G.dataItem.items[0].end)):(Ie={...G.dataItem},Ie.start=U(G.dataItem.start),Ie.end=U(G.dataItem.end)),Ie}formatTime(G){if(G.isAllDay)return this.localization.get("allDay");let Ie="{0:t}-{1:t}";return G.head?Ie="{0:t}":G.tail&&(Ie="{1:t}"),this.intlService.format(Ie,U(G.start),U(G.end))}trackByFn(G,Ie){return G}cellClasses(G){const Ie=this.extractDataItem(G);let gn=[];return this.slotClass&&(gn=gn.concat(Yt(this.slotClass({start:Ie.start,end:Ie.end,resources:Ie.resources,event:Ie.event})))),this.eventClass&&(gn=gn.concat(Yt(this.eventClass({event:Ie.event,resources:Ie.resources})))),gn}getEventStyles(G){if(this.eventStyles){const Ie=this.extractDataItem(G);return this.eventStyles({event:Ie.event,resources:Ie.resources})}}get arrowIcons(){return this.localization.rtl?["caret-alt-right","caret-alt-left"]:["caret-alt-left","caret-alt-right"]}get arrowSVGIcons(){return this.localization.rtl?[this.caretAltRightIcon,this.caretAltLeftIcon]:[this.caretAltLeftIcon,this.caretAltRightIcon]}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(Eo.aJ),n.Y36(o.oQ))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["","kendoSchedulerAgendaList",""]],hostVars:2,hostBindings:function(G,Ie){2&G&&n.ekj("k-scheduler-content",Ie.classes)},inputs:{tasks:"tasks",eventTemplate:"eventTemplate",slotClass:"slotClass",eventClass:"eventClass",eventStyles:"eventStyles",agendaTimeTemplate:"agendaTimeTemplate",agendaDateTemplate:"agendaDateTemplate",editable:"editable"},attrs:Nt,decls:3,vars:1,consts:[["role","none",1,"k-scheduler-table"],["role","rowgroup"],[4,"ngFor","ngForOf"],["role","row",4,"ngFor","ngForOf","ngForTrackBy"],["role","row"],[3,"kendoSchedulerAgendaHeaderItem","agendaDateTemplate",4,"ngIf"],["role","gridcell",1,"k-scheduler-timecolumn"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["role","gridcell",3,"ngClass","ngStyle","kendoSchedulerFocusIndex","id","kendoSchedulerAgendaTaskItem","editable","eventTemplate"],["class","k-scheduler-groupcolumn","role","rowheader",4,"ngIf"],["role","rowheader",1,"k-scheduler-groupcolumn"],[3,"kendoSchedulerAgendaHeaderItem","agendaDateTemplate"],[3,"name","svgIcon",4,"ngIf"],[3,"name","svgIcon"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(G,Ie){1&G&&(n.TgZ(0,"table",0)(1,"tbody",1),n.YNc(2,Pt,2,2,"ng-container",2),n.qZA()()),2&G&&(n.xp6(2),n.Q6J("ngForOf",Ie.tasks))},dependencies:[bm,yo.ZS,Qg,Xt.sg,Xt.O5,Xt.tP,Xt.mk,Xt.PC,ef],encapsulation:2}),Ee})(),Cf=(()=>{class Ee{constructor(G,Ie,gn,Si,zo,_r,zr,Lr){this.viewContext=G,this.viewState=Ie,this.intl=gn,this.renderer=Si,this.element=zo,this.zone=_r,this.pdfService=zr,this.localization=Lr,this.tasks=new dn.X(null),this.groupedResources=[],this.spans=[],this.subs=new fn.w0}get eventTemplateRef(){return this.eventTemplate||(this.schedulerEventTemplate||{}).templateRef}get agendaTimeTemplateRef(){return this.agendaTimeTemplate||(this.schedulerAgendaTimeTemplate||{}).templateRef}get agendaDateTemplateRef(){return this.agendaDateTemplate||(this.schedulerAgendaDateTemplate||{}).templateRef}ngOnInit(){this.updateContentHeight=this.updateContentHeight.bind(this),this.subs.add(this.viewContext.selectedDate.subscribe(this.onSelectDate.bind(this))),this.subs.add(this.viewContext.action.subscribe(this.onAction.bind(this))),this.subs.add(this.viewContext.execute.subscribe(this.execute.bind(this))),this.subs.add(this.viewContext.resize.subscribe(this.updateContentHeight)),this.subs.add((0,yi.a)([this.viewContext.items,this.viewState.dateRange]).pipe((0,Le.U)(([Ie,gn])=>(this.items=Ie,this.range=gn,this.createEventGroups()))).subscribe(Ie=>{this.tasks.next(Ie)})),this.subs.add(this.viewContext.optionsChange.subscribe(this.optionsChange.bind(this))),this.subs.add((0,yi.a)(this.tasks,this.localization.changes).pipe((0,An.w)(()=>this.zone.onStable.pipe((0,Ut.q)(1)))).subscribe(this.updateContentHeight)),this.subs.add(this.pdfService.createElement.subscribe(this.createPDFElement.bind(this)))}ngOnChanges(G){(0,a.aG)(["selectedDateFormat","selectedShortDateFormat","numberOfDays"],G)&&this.viewState.notifyDateRange(this.dateRange(this.selectedDate))}ngAfterViewInit(){if(!this.element)return;const G=this.content.nativeElement;this.zone.runOutsideAngular(()=>{this.subs.add((0,nn.T)((0,sn.R)(G,"click"),(0,sn.R)(G,"contextmenu"),(0,sn.R)(G,"dblclick")).subscribe(Ie=>this.onClick(Ie))),this.subs.add((0,sn.R)(G,"keydown").subscribe(Ie=>this.onKeydown(Ie)))})}onClick(G){const Ie=this.targetTask(G.target);if(Ie){const{task:gn,eventTarget:Si}=Ie,zo=G.type,zr="dblclick"===zo;"click"===zo&&Qc(G.target,Lr=>ru(Lr,"k-event-delete"),Si)?this.viewState.emitEvent("remove",{event:gn.event,dataItem:gn.event.dataItem}):this.viewState.emitEvent(zr?"eventDblClick":"eventClick",{type:zo,event:gn.event,originalEvent:G})}}onKeydown(G){const Ie=this.targetTask(G.target);if(Ie){const gn=Ie.task;this.viewState.emitEvent("eventKeydown",{event:gn.event,dataItem:gn.event.dataItem,originalEvent:G})}}targetTask(G){const Ie=Qc(G,gn=>gn.hasAttribute("data-task-index"),this.element.nativeElement);if(Ie)return{eventTarget:Ie,task:this.elementTask(Ie)}}updateContentHeight(){const G=this.element.nativeElement,Ie=G.parentNode,gn=this.content.nativeElement;this.renderer.setStyle(gn,"height","");let Si=Ie.clientHeight;for(let zr=0;zr<Ie.children.length;zr++){const Lr=Ie.children[zr];Lr!==G&&!vm(Lr)&&(Si-=Lr.offsetHeight)}const zo=this.headerWrap.nativeElement;Si-=this.headerWrap?zo.offsetHeight:0,this.renderer.setStyle(gn,"height",`${Si}px`);const _r=this.localization.rtl;Mf(gn,"vertical")||this.renderer.setStyle(zo,_r?"padding-inline-start":"padding-inline-end","0px"),this.renderer.removeStyle(zo,_r?"padding-inline-end":"padding-inline-start"),this.viewState.notifyLayoutEnd()}ngOnDestroy(){this.subs.unsubscribe()}optionsChange(G){this.group=G.group,this.resources=G.resources,this.groupResources(),this.min=G.min,this.max=G.max,this.editable=G.editable,this.items&&this.items.length&&this.tasks.next(this.createEventGroups()),this.schedulerEventTemplate=G.eventTemplate,this.schedulerAgendaTimeTemplate=G.agendaTimeTemplate,this.schedulerAgendaDateTemplate=G.agendaDateTemplate}onSelectDate(G){this.selectedDate=G,this.viewState.notifyDateRange(this.dateRange())}onAction(G){const Ie=(0,l._)(this.selectedDate);if("next"===G.type){const gn=(0,l._)((0,q.E)(Ie,this.numberOfDays));this.isInRange(gn)&&this.viewState.notifyNextDate(gn)}if("prev"===G.type){const gn=(0,l._)((0,q.E)(Ie,-this.numberOfDays));this.isInRange(gn)&&this.viewState.notifyNextDate(gn)}}createEventGroups(){const G=this.groupedResources.length?function ug(Ee){let at=[];const G=Ee[0],Ie=G.data;for(let gn=0;gn<Ie.length;gn++)at.push({resources:[hc(Ie[gn],G.textField)]});for(let gn=1;gn<Ee.length;gn++){const Si=Ee[gn],zo=Si.data,_r=[];for(let zr=0;zr<at.length;zr++){const Lr=at[zr];for(let ws=0;ws<zo.length;ws++)_r.push({resources:Lr.resources.concat(hc(zo[ws],Si.textField))})}at=_r}return at}(this.groupedResources):null;return this.groups=function im(Ee,{taskResources:at,resourceGroups:G,spans:Ie,allResources:gn,dateRange:Si}){const zo=G||[{}],_r=Pd(Si.start),zr=Pd(Si.end);for(let Lr=0;Lr<Ee.length;Lr++){const ws=Ee[Lr],$s=ws.event;if(!pd(ws.start.toUTCDate(),ws.end.toUTCDate(),_r,zr))continue;const ya=zu($s,{taskResources:at,hasGroups:G&&G.length>0,spans:Ie,allResources:gn});if(ya.length&&ya[0].leafIdx>=0)for(let ua=0;ua<ya.length;ua++){const Ja=ya[ua],jl=$m(ws,Ja.leafIdx,Ja.resources,Ja.color);(zo[Ja.leafIdx].tasks=zo[Ja.leafIdx].tasks||[]).push(jl)}}return G?function mg(Ee,at,G){const Ie=at.filter(_r=>_r.tasks&&_r.tasks.length);if(!Ie.length)return[];const gn=Ie[0].resources.map(_r=>({value:_r,span:0,groupIdx:0})),Si=Pd(G.start),zo=Pd(G.end);for(let _r=0;_r<Ie.length;_r++){const zr=Ie[_r];zr.tasks=Xm(Si,zo,zr.tasks);const Lr=zr.tasks.length;zr.tasks=new Om(Si,zo,zr.tasks);let ws=!1;for(let $s=0;$s<Ee.length;$s++){const ya=gn[$s];if(ya.value!==zr.resources[$s]||ws){ya.value=zr.resources[$s];const ua=Ie[ya.groupIdx];ua.spans=ua.spans||[],ua.spans[$s]=ya.span,ya.span=Lr,ya.groupIdx=_r,ws=!0}else ya.span+=Lr}}return gn.forEach((_r,zr)=>{const Lr=Ie[_r.groupIdx];Lr.spans=Lr.spans||[],Lr.spans[zr]=_r.span}),Ie}(at,zo,Si):(zo[0].tasks=new Om(_r,zr,Xm(_r,zr,zo[0].tasks||[])),zo)}(this.items,{taskResources:this.taskResources,resourceGroups:G,allResources:this.resources,spans:this.spans,dateRange:this.range})}dateRange(G=this.selectedDate){const Ie=(0,l._)(G),gn=(0,l._)((0,q.E)(Ie,this.numberOfDays)),Si=(0,l._)((0,q.E)(Ie,this.numberOfDays-1));return{start:Ie,end:gn,text:this.intl.format(this.selectedDateFormat,Ie,Si),shortText:this.intl.format(this.selectedShortDateFormat,Ie,Si)}}groupResources(){const G=this.resources||[],gn=(this.group||{}).resources,Si=this.groupedResources=[];if(gn&&gn.length)for(let zo=0;zo<gn.length;zo++){const _r=gn[zo],zr=G.find(Lr=>Lr.name===_r);zr&&Si.push(zr)}this.spans=this.resourceSpans()}resourceSpans(){const G=[1],Ie=this.groupedResources;let gn=1;for(let Si=Ie.length-1;Si>0;Si--)gn*=(Ie[Si].data||[]).length||1,G.unshift(gn);return G}get taskResources(){return this.groupedResources.length?this.groupedResources:this.resources&&this.resources.length?[this.resources[0]]:[{}]}isInRange(G){const Ie=this.dateRange(G);return(!this.min||this.min<Ie.end)&&(!this.max||Ie.start<=this.max)}createPDFElement(){const G=this.element.nativeElement.cloneNode(!0);G.style.width=`${this.element.nativeElement.offsetWidth}px`,G.querySelector(".k-scheduler-content").style.height="auto";const Ie=G.querySelector(".k-scheduler-header");Ie.style.paddingRight=0,Ie.style.paddingLeft=0,this.pdfService.elementReady.emit({element:G})}elementTask(G){const Ie=parseInt(G.getAttribute("data-task-index"),10),gn=parseInt(G.getAttribute("data-group-index"),10);return this.groups[gn].tasks.itemAt(Ie)}execute(G){if("slotByPosition"===G.name){const Ie=this.slotByPosition(G.args);G.result(Ie)}else if("eventFromElement"===G.name){const Ie=this.elementTask(G.args.element);Ie&&G.result(Ie.event)}}slotByPosition({x:G,y:Ie}){const gn=this.content.nativeElement.querySelector("table"),Si=Of(gn);if(Si.top<=Ie&&Ie<=Si.top+Si.height){const zo=gn.rows;if(!zo.length)return;const _r=Of(zo[0].cells[zo[0].cells.length-1]);if(_r.left<=G&&G<=_r.left+_r.width)for(let zr=0;zr<zo.length;zr++){const Lr=zo[zr],ws=Of(Lr);if(ws.top<=Ie&&Ie<=ws.top+ws.height){const $s=Lr.querySelector("[data-task-index]"),ya=this.elementTask($s),ua=ya.event;return{element:new n.SBq($s),start:ua.start,end:ua.end,event:ua,resources:ya.resources,isAllDay:ya.isAllDay}}}}}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(Ad),n.Y36(uc),n.Y36(Eo.aJ),n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Wh),n.Y36(o.oQ))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["agenda-view-internal"]],viewQuery:function(G,Ie){if(1&G&&(n.Gf($t,7,n.SBq),n.Gf(it,7,n.SBq)),2&G){let gn;n.iGM(gn=n.CRH())&&(Ie.headerWrap=gn.first),n.iGM(gn=n.CRH())&&(Ie.content=gn.first)}},inputs:{eventTemplate:"eventTemplate",slotClass:"slotClass",eventClass:"eventClass",eventStyles:"eventStyles",agendaTimeTemplate:"agendaTimeTemplate",agendaDateTemplate:"agendaDateTemplate",selectedDateFormat:"selectedDateFormat",selectedShortDateFormat:"selectedShortDateFormat",numberOfDays:"numberOfDays"},features:[n.TTD],decls:11,vars:11,consts:[["role","grid",1,"k-scheduler-layout","k-scheduler-agendaview","k-scheduler-agenda"],["role","none"],["kendoSchedulerAgendaHeader","",3,"resources"],["headerWrap",""],["kendoSchedulerAgendaList","",3,"editable","eventTemplate","slotClass","eventClass","eventStyles","agendaTimeTemplate","agendaDateTemplate","tasks"],["content",""]],template:function(G,Ie){1&G&&(n.TgZ(0,"table",0)(1,"tbody",1)(2,"tr")(3,"td"),n._UZ(4,"div",2,3),n.qZA()(),n.TgZ(6,"tr")(7,"td"),n._UZ(8,"div",4,5),n.ALo(10,"async"),n.qZA()()()()),2&G&&(n.xp6(4),n.Q6J("resources",Ie.groupedResources),n.xp6(4),n.Q6J("editable",Ie.editable)("eventTemplate",Ie.eventTemplateRef)("slotClass",Ie.slotClass)("eventClass",Ie.eventClass)("eventStyles",Ie.eventStyles)("agendaTimeTemplate",Ie.agendaTimeTemplateRef)("agendaDateTemplate",Ie.agendaDateTemplateRef)("tasks",n.lcZ(10,9,Ie.tasks)))},dependencies:[yh,Pg,Xt.Ov],encapsulation:2}),Ee})(),rd=(()=>{class Ee extends Am{constructor(G,Ie,gn,Si){super(G,Ie,gn,Si),this.selectedDateFormat="{0:D} - {1:D}",this.selectedShortDateFormat="{0:d} - {1:d}",this.numberOfDays=7,this.name="agenda"}get title(){return this.localization.get("agendaViewTitle")}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(o.oQ),n.Y36(n.sBO),n.Y36(Ad),n.Y36(uc))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["kendo-scheduler-agenda-view"]],contentQueries:function(G,Ie,gn){if(1&G&&(n.Suo(gn,Nc,5),n.Suo(gn,xh,5),n.Suo(gn,Qh,5)),2&G){let Si;n.iGM(Si=n.CRH())&&(Ie.eventTemplate=Si.first),n.iGM(Si=n.CRH())&&(Ie.agendaTimeTemplate=Si.first),n.iGM(Si=n.CRH())&&(Ie.agendaDateTemplate=Si.first)}},inputs:{selectedDateFormat:"selectedDateFormat",selectedShortDateFormat:"selectedShortDateFormat",numberOfDays:"numberOfDays"},features:[n._Bn([{provide:Sd,useExisting:(0,n.Gpc)(()=>Ee)}]),n.qOj],decls:2,vars:0,consts:[["content",""],[3,"numberOfDays","eventTemplate","slotClass","eventClass","eventStyles","agendaTimeTemplate","agendaDateTemplate","selectedDateFormat","selectedShortDateFormat"]],template:function(G,Ie){1&G&&n.YNc(0,Xn,1,9,"ng-template",null,0,n.W1O)},dependencies:[Cf],encapsulation:2,changeDetection:0}),Ee})(),xm=(()=>{class Ee{}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275mod=n.oAB({type:Ee}),Ee.\u0275inj=n.cJS({imports:[[Xt.ez,Eo.o0,bp,yo.pc]]}),Ee})();class Sm{constructor(){this.count=0,this.items={}}get first(){if(this.count>0)return this.items[Object.keys(this.items)[0]]}get last(){if(this.count>0){const at=Object.keys(this.items);return this.items[at[at.length-1]]}}addItem(at,G){this.items[at]||this.count++,this.items[at]=G}removeItem(at,G){this.items[at]===G&&(delete this.items[at],this.count--)}toArray(){return Object.keys(this.items).map(at=>this.items[at])}}class Cp{constructor(){this.containerSize=0,this.slotsChange=new n.vpe,this.groups=[]}registerItem(at){this.itemGroup(at).registerItem(at)}unregisterItem(at,G){const Ie=this.groups[(G=G||{index:at.index,resourceIndex:at.resourceIndex,rangeIndex:at.rangeIndex}).resourceIndex];Ie&&Ie.unregisterItem(at,G)}registerSlot(at){this.slotGroup(at).registerSlot(at)}unregisterSlot(at){const G=this.groups[at.id.resourceIndex];G&&G.unregisterSlot(at)}invalidate(){this.clearEmptyGroups(),this.cleanRanges(),this.slotsChange.emit(),this.forEachSlot(at=>{at.invalidate()})}cleanRanges(){this.groups.forEach(at=>{at.cleanRanges()})}clearEmptyGroups(){const at=this.groups;let G=this.groups.length-1;for(;G>0&&!at[G].hasSlots;)at.splice(G,1),G--}itemGroup(at){const G=at.resourceIndex;return this.groups[G]||(this.groups[G]=this.createGroup(G)),this.groups[G]}slotGroup(at){const G=at.id.resourceIndex;return this.groups[G]||(this.groups[G]=this.createGroup(G)),this.groups[G]}}const xp=new Date(1980,0,1),om=new Date(1980,0,2),sf=6e4,Rm="k-event-ongoing";class xf{constructor(at){this.index=at,this.slotMap=new Sm,this.itemMap=new Sm}get slots(){return this.slotMap.toArray()}get items(){return this.itemMap.toArray()}get start(){const at=this.slotMap.first;return at?at.start:null}get end(){const at=this.slotMap.last;return at?jh(at.end,1):null}get hasSlots(){return this.slotMap.count>0}get hasItems(){return this.itemMap.count>0}get firstSlot(){return this.slotMap.first}get lastSlot(){return this.slotMap.last}get rect(){const at=this.firstSlot.rect,G=this.lastSlot.rect;return{left:at.left,top:at.top,width:G.left-at.left+G.width,height:G.top-at.top+G.height}}registerItem(at){this.itemMap.addItem(at.item.index,at)}unregisterItem(at,G){this.itemMap.removeItem(G,at)}registerSlot(at){this.slotMap.addItem(at.id.index,at)}unregisterSlot(at){this.slotMap.removeItem(at.id.index,at)}layout(at){if(!this.hasItems)return;const Ie=(0,Ii.Xo)(this.items,[{field:"item.startTime",dir:"asc"},{field:"item.endTime",dir:"desc"}]),gn={},Si=this.slots;Ie.forEach(zo=>Si.filter(_r=>pd(zo.item.startTime,zo.item.endTime,_r.start,_r.end)).forEach(_r=>{const zr=gn[_r.key]=gn[_r.key]||{events:[],height:_r.linkHeight};zr.slot=_r;const Lr=_r.rect,ws=zo.item.data[zo.resourceIndex];ws.rowIndex=Ou(zr.events,ws),zr.height+at+2+13>Lr.height||ws.hidden?(ws.hidden=!0,_r.showMore({width:Lr.width,left:Lr.left,top:Lr.top+_r.linkHeight+ws.rowIndex*(at+2)})):(zr.events[ws.rowIndex]=zo,zo.rect||(zo.rect={top:Lr.top+_r.linkHeight+ws.rowIndex*(at+2),left:Lr.left,height:at,width:0}),zo.rect.width+=Lr.width+1,zr.height+=at+2)})),Ie.forEach(zo=>{zo.rect&&(zo.rect.width-=1),zo.reflow()})}}class lp{constructor(at){this.index=at,this.dayRanges=[]}get hasSlots(){return!!this.dayRanges.find(at=>at&&at.hasSlots)}registerSlot(at){this.slotRange(at).registerSlot(at)}unregisterSlot(at){const G=this.dayRanges[at.id.rangeIndex];G.unregisterSlot(at),G.hasSlots||delete this.dayRanges[at.id.rangeIndex]}registerItem(at){this.dayRanges[at.rangeIndex].registerItem(at)}unregisterItem(at,G){const Ie=this.dayRanges[G.rangeIndex];Ie&&Ie.unregisterItem(at,G.index)}slotRange(at){const G=this.dayRanges,Ie=at.id.rangeIndex;return G[Ie]||(G[Ie]=new xf(Ie)),G[Ie]}forEachRange(at){for(let G=0;G<this.dayRanges.length;G++)at(this.dayRanges[G])}cleanRanges(){this.dayRanges=this.dayRanges.filter(at=>!!at)}}class Kh extends Cp{layout(at){this.groups.forEach(G=>G.forEachRange(Ie=>Ie.layout(at)))}slotByIndex(at){const[G,Ie,gn]=at.split(":").map(Si=>parseInt(Si,10));return this.groups[G].dayRanges[Ie].slots[gn]}forEachSlot(at){this.groups.forEach(G=>{G.dayRanges.forEach(Ie=>{Ie.slots.forEach(gn=>at(gn))})})}forEachItem(at){this.groups.forEach(G=>{G.dayRanges.forEach(Ie=>{Ie.items.forEach(gn=>at(gn))})})}createGroup(at){return new lp(at)}invalidate(){super.invalidate(),this.forEachItem(at=>{const G=at.item.data;Object.keys(G).forEach(Ie=>{G[Ie].hidden=!1})})}slotByPosition(at,G){let Ie;if(this.groups.find(gn=>(Ie=gn.dayRanges.find(Si=>ac(Si.rect,at,G)),Ie)),Ie)return Ie.slots.find(gn=>ac(gn.rect,at,G))}dragRanges(at,G){const Ie=new Date(at.start.getTime()-G.start),gn=new Date(at.start.getTime()+G.end),zo=[];return this.groups[at.id.resourceIndex].dayRanges.forEach(_r=>{const zr=_r.slots.filter(Lr=>pd(Ie,gn,Lr.start,Lr.end));zr.length&&zo.push(zr)}),{start:Ie,end:gn,ranges:zo}}groupSlotByPosition(at,G,Ie){const gn=this.groups[at.id.resourceIndex].dayRanges.find(Si=>ac(Si.rect,G,Ie));if(gn)return gn.slots.find(Si=>ac(Si.rect,G,Ie))}resizeRanges(at,G,Ie,gn){const Si=this.groups[G.resources[0].leafIdx],zo=[],_r=G.start.toUTCDate(),zr=G.end.toUTCDate();let Lr,ws;return Ie?(Lr=at.start.getTime()+gn.start,Lr>zr.getTime()&&(Lr=new Date(Math.min(eu(zr,_r).getTime(),zr.getTime()))),ws=zr):(Lr=_r,ws=at.start.getTime()+gn.end,ws<Lr.getTime()&&(ws=new Date(Math.max(eu(_r,zr).getTime(),Lr.getTime())))),Si.dayRanges.forEach($s=>{const ya=$s.slots.filter(ua=>pd(Lr,ws,ua.start,ua.end));ya.length&&zo.push(ya)}),{start:new Date(Lr),end:new Date(ws),ranges:zo}}}let Tu=(()=>{class Ee{constructor(G,Ie,gn,Si,zo,_r){this.slotService=G,this.localization=Ie,this.focusService=gn,this.element=Si,this.renderer=zo,this.localeId=_r,this.className=!0,this.caretAltLeftIcon=xo.Me8,this.caretAltRightIcon=xo.bI8,this.subs=new fn.w0}get taskIndex(){return this.item.index}get touchAction(){return this.editable&&!1!==this.editable.drag?"none":null}get eventTitle(){return`${Ri(U(this.item.startTime),U(this.item.endTime),this.item.isAllDay,this.localeId)}, ${this.item.event.title}`}get deleteMessage(){return this.localization.get("deleteTitle")}get resizable(){return this.editable&&!1!==this.editable.resize}get removable(){return this.editable&&!1!==this.editable.remove}get isRecurrence(){return _m(this.item)}get isRecurrenceException(){return Af(this.item)}get nativeElement(){if(this.element)return this.element.nativeElement}setStyles(G){const Ie=this.nativeElement;if(Ie)for(const gn in G)G.hasOwnProperty(gn)&&this.renderer.setStyle(Ie,gn,G[gn])}toggle(G){this.setStyles({display:G?null:"none"})}reflow(){const G=this.rect;G&&this.setStyles({left:this.localization.rtl?"":`${G.left}px`,right:this.localization.rtl?`${G.left}px`:"",top:`${G.top}px`,width:`${G.width}px`,height:`${G.height}px`})}ngOnInit(){this.dragHint||this.subs.add(this.slotService.slotsChange.subscribe(()=>{this.rect=null,this.setStyles({width:0,left:0,bottom:0}),this.slotService.unregisterItem(this,{index:this.index,resourceIndex:this.resourceIndex,rangeIndex:this.rangeIndex}),this.resourceIndex>=0&&this.slotService.registerItem(this)}))}ngOnChanges(G){if(!this.dragHint&&(0,a.aG)(["index","resourceIndex","rangeIndex"],G)){const{resourceIndex:Ie,index:gn,rangeIndex:Si}=G;this.slotService.unregisterItem(this,{index:gn?gn.previousValue:this.index,resourceIndex:Ie?Ie.previousValue:this.resourceIndex,rangeIndex:Si?Si.previousValue:this.rangeIndex}),this.resourceIndex>=0?(this.slotService.registerItem(this),this.toggle(!0)):this.toggle(!1)}}ngOnDestroy(){this.dragHint||(this.slotService.unregisterItem(this),this.subs.unsubscribe())}get arrowIcons(){return this.localization.rtl?["caret-alt-right","caret-alt-left"]:["caret-alt-left","caret-alt-right"]}get arrowSVGIcons(){return this.localization.rtl?[this.caretAltRightIcon,this.caretAltLeftIcon]:[this.caretAltLeftIcon,this.caretAltRightIcon]}}return Ee.\u0275fac=function(G){n.$Z()},Ee.\u0275dir=n.lG2({type:Ee,hostVars:6,hostBindings:function(G,Ie){2&G&&(n.uIk("data-task-index",Ie.taskIndex)("aria-label",Ie.eventTitle),n.Udp("touch-action",Ie.touchAction),n.ekj("k-event",Ie.className))},inputs:{item:"item",resourceIndex:"resourceIndex",rangeIndex:"rangeIndex",index:"index",eventTemplate:"eventTemplate",editable:"editable",dragHint:"dragHint",resources:"resources"},features:[n.TTD]}),Ee})(),Sf=(()=>{class Ee extends Tu{constructor(G,Ie,gn,Si,zo,_r){super(G,Ie,gn,Si,zo,_r),this.localeId=_r,this.caretAltLeftIcon=xo.Me8,this.caretAltRightIcon=xo.bI8,this.arrowRotateCwIcon=xo.pB,this.arrowsNoRepeatIcon=xo.Mbe,this.xIcon=xo.FZE}reflow(){this.item.data[this.resourceIndex].hidden?this.toggle(!1):(this.toggle(!0),super.reflow())}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(Kh),n.Y36(o.oQ),n.Y36(pu),n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(n.soG))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["","monthViewItem",""]],features:[n.qOj],attrs:Nn,decls:10,vars:8,consts:[[1,"k-event-actions"],[3,"name","svgIcon",4,"ngIf"],["name","arrow-rotate-cw",3,"svgIcon",4,"ngIf"],["name","arrows-no-repeat",3,"svgIcon",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],["class","k-link k-event-delete","aria-hidden","true",4,"ngIf"],[3,"name","svgIcon"],["name","arrow-rotate-cw",3,"svgIcon"],["name","arrows-no-repeat",3,"svgIcon"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-event-template"],["aria-hidden","true",1,"k-link","k-event-delete"],["name","x",3,"svgIcon"],[1,"k-resize-handle","k-resize-w"],[1,"k-resize-handle","k-resize-e"]],template:function(G,Ie){1&G&&(n.TgZ(0,"span",0),n.YNc(1,Ae,1,2,"kendo-icon-wrapper",1),n.YNc(2,He,1,1,"kendo-icon-wrapper",2),n.YNc(3,Kt,1,1,"kendo-icon-wrapper",3),n.qZA(),n.YNc(4,On,1,6,"ng-container",4),n.YNc(5,Fi,3,2,"div",5),n.TgZ(6,"span",0),n.YNc(7,Ci,2,2,"span",6),n.YNc(8,xi,1,2,"kendo-icon-wrapper",1),n.qZA(),n.YNc(9,Wn,3,0,"ng-container",5)),2&G&&(n.xp6(1),n.Q6J("ngIf",Ie.item.tail),n.xp6(1),n.Q6J("ngIf",Ie.isRecurrence),n.xp6(1),n.Q6J("ngIf",Ie.isRecurrenceException),n.xp6(1),n.Q6J("ngIf",Ie.eventTemplate),n.xp6(1),n.Q6J("ngIf",!Ie.eventTemplate),n.xp6(2),n.Q6J("ngIf",Ie.removable),n.xp6(1),n.Q6J("ngIf",Ie.item.head),n.xp6(1),n.Q6J("ngIf",Ie.resizable))},dependencies:[yo.ZS,Xt.O5,Xt.tP],encapsulation:2}),Ee})();const Lf=Ee=>Ee[Ee.length-1];function Lm(Ee){const at=Ee.data;for(const G in at)at.hasOwnProperty(G)&&delete at[G]}let Nm=(()=>{class Ee{constructor(G){this.changeDetector=G,this.changeDetector.detach()}detectChanges(){this.changeDetector.detectChanges()}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.sBO))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["kendo-hint-container"]],contentQueries:function(G,Ie,gn){if(1&G&&n.Suo(gn,n.Rgc,5),2&G){let Si;n.iGM(Si=n.CRH())&&(Ie.hintTemplate=Si.first)}},decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(G,Ie){1&G&&n.GkF(0,0),2&G&&n.Q6J("ngTemplateOutlet",Ie.hintTemplate)},dependencies:[Xt.tP],encapsulation:2}),Ee})(),e_=(()=>{class Ee{constructor(G,Ie,gn,Si,zo,_r,zr,Lr,ws,$s,ya){this.viewContext=G,this.viewState=Ie,this.intl=gn,this.slotService=Si,this.zone=zo,this.renderer=_r,this.element=zr,this.pdfService=Lr,this.localization=ws,this.cdr=$s,this.scrollBarWidthService=ya,this.items=new dn.X(null),this.horizontalResources=[],this.verticalResources=[],this.dragHints=[],this.resizeHints=[],this.getField=hc,this.changes=new dn.X(null),this.viewRangeChange=new dn.X(null),this.subs=new fn.w0,this.groupedResources=[],this.spans=[],this.domEvents=[],this.resourcesCache={},this.dragSelecting=null,this.dragSelectOrigin=null,this.autoHeight=!1,this.rtl=!1,this.isSlotSelected=()=>!1,this.setSlotClass=this.setSlotClass.bind(this),this.setHintClass=this.setHintClass.bind(this),this.weekStart=gn.firstDay()}get eventTemplateRef(){return this.eventTemplate||(this.schedulerEventTemplate||{}).templateRef}get groupHeaderTemplateRef(){return this.groupHeaderTemplate||(this.schedulerGroupHeaderTemplate||{}).templateRef}matchOwned(G){return G.reduce((gn,Si)=>[...gn,...Si.resources.map(zo=>`${Si.elementId}_${zo.leafIdx}`)],[]).join(" ")}ngOnInit(){const G=this.updateView.bind(this);this.resourcesByIndex=this.resourcesByIndex.bind(this),this.subs.add(this.viewContext.selectedDate.subscribe(this.onSelectDate.bind(this))),this.subs.add(this.viewContext.action.subscribe(this.onAction.bind(this))),this.subs.add(this.viewContext.execute.subscribe(this.execute.bind(this))),this.subs.add(this.viewContext.resize.subscribe(()=>{this.toggleElement(!1),this.updateView()})),this.subs.add(this.viewContext.optionsChange.subscribe(this.optionsChange.bind(this))),this.subs.add(this.changes.subscribe(()=>{this.toggleElement(!1)})),this.subs.add((0,yi.a)(this.viewContext.items,this.viewState.dateRange,this.viewRangeChange).pipe((0,Le.U)(([Ie,gn])=>this.createTasks(Ie,gn))).subscribe(Ie=>{this.tasks=Ie.map(gn=>({...gn,elementId:(0,a.M8)()})),this.assignResources(),this.onTasksChange()})),this.subs.add((0,yi.a)(this.items,this.changes,this.localization.changes).pipe((0,An.w)(()=>this.onStable())).subscribe(G)),this.subs.add(this.pdfService.createElement.subscribe(this.createPDFElement.bind(this)))}ngOnChanges(G){(0,a.aG)(["selectedDateFormat","selectedShortDateFormat"],G)&&this.viewState.notifyDateRange(this.dateRange(this.selectedDate)),G.eventHeight&&this.changes.next(null)}ngAfterViewInit(){this.bindEvents(),this.subs.add(this.localization.changes.subscribe(({rtl:G})=>{this.rtl=G}))}ngOnDestroy(){this.subs.unsubscribe(),this.domEvents.forEach(G=>G()),this.domEvents=[],this.draggable&&(this.draggable.destroy(),this.draggable=null)}itemIndex(G,Ie){return G}resourcesByIndex(G){if(!this.resources)return[];if(!this.group)return this.resources.reduce((Ie,gn)=>Ie.concat(gn.data||[]),[]);if(!this.resourcesCache[G]){const Ie=this.taskResources,gn=[];let Si=G;for(let zo=0;zo<Ie.length;zo++){const _r=Ie[zo].data||[],zr=Math.floor(Si/this.spans[zo]);gn.push(_r[zr]),Si-=zr*this.spans[zo]}this.resourcesCache[G]=gn}return this.resourcesCache[G]}dragResourcesByIndex(G){const Ie=this.resources||[],gn=[];if(this.groupedResources.length){const Si=this.resourcesByIndex(G).slice(0),zo=this.taskResources;for(let _r=0;_r<zo.length;_r++){const zr=this.resources.indexOf(zo[_r]);zr>=0&&(gn[zr]=Si[_r])}}for(let Si=0;Si<Ie.length;Si++)gn[Si]||(gn[Si]=Qu(this.dragging.task.event,Ie[Si]));return gn}getEventClasses(G,Ie,gn){if(this.eventClass)return this.eventClass({event:G.event,resources:Ie,isAllDay:gn})}getEventStyles(G,Ie,gn){const Si={backgroundColor:Ie.color,borderColor:Ie.color};return this.eventStyles&&Object.assign(Si,this.eventStyles({event:G.event,resources:Ie.resources,isAllDay:gn})),Si}toPlainDate(G){return If(this.convertDate(G))}toPlainDateTime(G,Ie){return G&&Ie?this.toPlainDate(eu(G,Ie)):null}optionsChange(G){this.schedulerEventTemplate=G.eventTemplate,this.schedulerGroupHeaderTemplate=G.groupHeaderTemplate,this.min=G.min,this.max=G.max,this.editable=G.editable,this.timezone=G.timezone,this.selectable=G.selectable,this.isSlotSelected=G.isSlotSelected,(!G.changes||(0,a.aG)(["group","resources"],G.changes,!1)||G.group!==this.group||G.resources!==this.resources)&&(this.group=G.group,this.resources=G.resources,this.groupResources(),this.resourcesCache={},this.tasks&&this.tasks.length&&(this.assignResources(),this.onTasksChange()),this.changes.next(null))}toggleElement(G){this.element&&this.renderer.setStyle(this.element.nativeElement,"display",G?"block":"none")}onStable(){return this.zone.onStable.asObservable().pipe((0,Ut.q)(1))}updateView(){this.slotService.invalidate(),this.toggleElement(!0),this.reflow(),this.viewState.notifyLayoutEnd(),this.viewState.emitEvent(Iu.refreshSlotSelection)}assignResources(){!function dh(Ee,at){for(let G=0;G<Ee.length;G++){const Ie=Ee[G];Ie.resources=zu(Ie.event,at)}}(this.tasks,{taskResources:this.taskResources,hasGroups:this.groupedResources.length>0,allResources:this.resources,spans:this.spans})}bindEvents(){const G=this.content.nativeElement,Ie=this.element.nativeElement;this.zone.runOutsideAngular(()=>{this.times&&this.subs.add((0,nn.T)((0,sn.R)(this.times.nativeElement,"mousewheel"),(0,sn.R)(this.times.nativeElement,"DOMMouseScroll")).pipe((0,Oe.h)(gn=>!gn.ctrlKey),(0,$n.b)((Ee=>at=>{const G=kh(at),Ie=Ee.scrollTop;0===Ie&&0<G||Ee.scrollHeight<=Ee.offsetHeight+Ie&&G<0||at.preventDefault()})(G)),(0,Le.U)(kh)).subscribe(gn=>G.scrollTop-=gn)),this.subs.add((0,nn.T)(Vh(G),(0,sn.R)(G,"contextmenu")).subscribe(gn=>this.onClick(gn))),this.subs.add(Ju(G).subscribe(gn=>this.onClick(gn,"dblclick"))),this.subs.add((0,sn.R)(Ie,"keydown").subscribe(gn=>this.onKeydown(gn))),this.domEvents.push(this.renderer.listen(G,"scroll",()=>{this.headerWrap&&(this.headerWrap.nativeElement.scrollLeft=G.scrollLeft),this.times&&(this.times.nativeElement.scrollTop=G.scrollTop)})),this.draggable=new lr._({press:this.onPress.bind(this),drag:this.onDrag.bind(this),release:this.onRelease.bind(this)}),this.draggable.bindTo(Ie)})}onPress(G){const Ie=this.editable&&!1!==this.editable.resize,gn=this.editable&&!1!==this.editable.drag,Si=G.originalEvent.target;if(ru(Si,"k-resize-handle")){if(!Ie)return;this.initResize(G)}else if(gn){const _r=this.targetTask(Si);_r&&(G.isTouch||G.originalEvent.preventDefault(),this.pressLocation={x:G.pageX,y:G.pageY},this.pressTarget=_r)}!this.pressTarget&&this.selectable&&this.initDragSelect(G),this.dragArgs=G}onDrag(G){this.resizing?(this.resize(G),this.scrollContainer(this.resize,G)):(this.initDrag(G),this.dragging&&(this.drag(G),G.originalEvent.preventDefault(),this.scrollContainer(this.drag,G)),this.dragSelecting&&this.dragSelect(G)),this.dragArgs=G}onRelease(G){clearInterval(this.scrollInterval);const{resizing:Ie,dragging:gn,dragSelecting:Si}=this;if(Ie&&(this.emitEvent("resizeEnd",{event:Ie.task.event,dataItem:Ie.task.event.dataItem,start:this.convertDate(Ie.start),end:this.convertDate(Ie.end)}),this.resizeHints=[]),gn&&(this.emitEvent("dragEnd",{event:gn.task.event,dataItem:gn.task.event.dataItem,start:gn.start?this.convertDate(gn.start):gn.task.start.toLocalDate(),end:gn.end?this.convertDate(gn.end):gn.task.end.toLocalDate(),resources:gn.resources,isAllDay:this.draggedIsAllDay(gn.task,gn.slot)}),this.dragHints=[]),(Ie||gn)&&(this.removeSlotClass(),this.updateHintContainer(),this.resizing=null,this.dragging=null),Si){const{start:zo,end:_r}=lh(this.dragSelectOrigin,this.dragSelecting),zr={start:this.convertDate(zo),end:this.convertDate(_r),isAllDay:this.dragSelecting.isDaySlot,resources:this.resourcesByIndex(this.dragSelecting.id.resourceIndex),originalEvent:G.originalEvent};this.viewState.notifySlotSelectionEnd(zr),this.dragSelectOrigin=null,this.dragSelecting=null,this.cdr.markForCheck()}this.container=null,this.dragArgs=null,this.pressLocation=null,this.pressTarget=null}setHintClass(G){(this.dragging||this.resizing).hintClass=G}updateHintClass(){const G=this.dragging||this.resizing;let Ie=!1;this.hints.forEach(gn=>{gn.class!==G.hintClass&&(gn.class=G.hintClass,Ie=!0)}),Ie&&this.updateHintContainer()}removeHintClass(){(this.dragging||this.resizing).hintClass=null}setSlotClass(G){const Ie=this.dragging||this.resizing;Ie.slotClass=G,this.renderer.addClass(Ie.slot.nativeElement,Ie.slotClass)}removeSlotClass(){const G=this.dragging||this.resizing;G.slotClass&&(this.renderer.removeClass(G.slot.nativeElement,G.slotClass),G.slotClass=null)}get hints(){return this.dragging?this.dragHints:this.resizeHints}initDrag(G){if(!this.dragging&&this.pressLocation&&((Ee,at,G,Ie)=>Math.sqrt(Math.pow(this.pressLocation.x-G,2)+Math.pow(at-Ie,2)))(0,this.pressLocation.y,G.pageX,G.pageY)>=10){const Ie=this.pressTarget,gn=Ie.task;if(this.emitEvent("dragStart",{event:gn.event,dataItem:gn.event.dataItem}))return this.pressLocation=null,void(this.pressTarget=null);if(this.updateDragContainer(G),void 0===this.containerOffset)return;const{x:Si,y:zo}=this.coordinatesOffset(this.pressLocation.x,this.pressLocation.y),_r=this.slotByPosition(Math.ceil(Si),Math.ceil(zo),this.container);if(!_r)return;this.dragging=Ie,this.dragging.offset={start:_r.start.getTime()-gn.start.toUTCDate().getTime(),end:gn.end.toUTCDate().getTime()-_r.start.getTime()},this.dragging.slot=_r,this.dragging.startResources=this.dragging.resourceItems=this.dragResourcesByIndex(_r.id.resourceIndex),this.dragging.resources=this.resourceValues(gn,this.dragging.startResources)}}updateDragContainer(G){this.container||(this.container=this.content.nativeElement,this.containerOffset=Of(this.container))}drag(G){if(this.updateDragContainer(G),!this.container)return;const{x:Ie,y:gn}=this.coordinatesOffset(G.pageX,G.pageY),Si=this.slotByPosition(Ie,gn,this.container);if(Si&&(Si!==this.dragging.slot||!this.dragHints.length)){const zo=this.dragging,{slot:_r,task:zr}=zo,{ranges:Lr,start:ws,end:$s,isAllDay:ya}=this.dragRanges(Si);let ua,Ja;if(_r.id.resourceIndex!==Si.id.resourceIndex?(ua=this.dragResourcesByIndex(Si.id.resourceIndex),Ja=this.resourceValues(zr,ua)):(ua=zo.resourceItems,Ja=zo.resources),this.removeSlotClass(),zo.start=ws,zo.end=$s,zo.slot=Si,zo.resources=Ja,zo.resourceItems=ua,zo.hintClass=null,this.emitEvent("drag",{event:zr.event,dataItem:zr.event.dataItem,start:this.convertDate(ws),end:this.convertDate($s),resources:Ja,isAllDay:ya,setHintClass:this.setHintClass,setSlotClass:this.setSlotClass}))return void this.updateHintClass();const jl=this.dragResourceColor(zr,ua),zd=this.dragHintClasses();this.dragHints=[];for(let md=0;md<Lr.length;md++){const Xu=Lr[md],Lh=Xu[0],lf=this.dragHintSize(Lh,Xu[Xu.length-1]),Wu=Lh.rect.left,bh={top:wu(Lh.rect.top),left:this.localization.rtl?"":wu(Wu),right:this.localization.rtl?wu(Wu):"",width:lf.width,height:lf.height,backgroundColor:jl,borderColor:jl};this.eventStyles&&Object.assign(bh,this.eventStyles(this.dragHintEventStyleArgs())),this.dragHints.push({item:Object.assign({},this.dragging.task,{startTime:ws,endTime:$s}),resources:ua,class:zd,style:bh})}this.updateHintContainer()}}initDragSelect(G){if(this.updateDragContainer(G),!this.containerOffset)return;const{x:Ie,y:gn}=this.coordinatesOffset(G.pageX,G.pageY),Si=this.slotByPosition(Ie,gn,this.container);if(!Si)return;const zo={start:this.convertDate(Si.start),end:this.convertDate(Si.end),isAllDay:Si.isDaySlot,resources:this.resourcesByIndex(Si.id.resourceIndex),originalEvent:G.originalEvent},_r=new hf(null,zo);this.viewState.notifySlotSelectionStart(_r),_r.isDefaultPrevented()||(this.dragSelecting=Si,this.dragSelectOrigin=Si,this.cdr.markForCheck())}dragSelect(G){const{x:Ie,y:gn}=this.coordinatesOffset(G.pageX,G.pageY),Si=this.slotByPosition(Ie,gn,this.container);if(Si&&this.dragSelecting!==Si){this.dragSelecting=Si;const{start:zo,end:_r}=lh(this.dragSelectOrigin,this.dragSelecting),zr={start:this.convertDate(zo),end:this.convertDate(_r),isAllDay:Si.isDaySlot,resources:this.resourcesByIndex(Si.id.resourceIndex),originalEvent:G.originalEvent};this.viewState.notifySlotSelectionDrag(zr),this.cdr.markForCheck()}}dragHintClasses(){const G=this.dragging.hintClass;let Ie=[];if(G&&Ie.push(G),this.eventClass){const gn=this.eventClass(this.dragHintEventStyleArgs());Ie=Ie.concat(Yt(gn))}return Ie}dragHintEventStyleArgs(){return{event:this.dragging.task.event,resources:this.dragging.resourceItems}}draggedIsAllDay(G,Ie){return!!G.event.isAllDay}dragResourceColor(G,Ie){if(this.groupedResources.length){const gn=this.resources.indexOf(this.groupedResources[0]);return hc(Ie[gn],this.groupedResources[0].colorField)}return this.resources&&this.resources.length?G.resources[0].color:""}resourceValues(G,Ie){const gn={};for(let Si=0;Si<Ie.length;Si++){const zo=this.resources[Si];let zr;Array.isArray(Ie[Si])?zr=hc(G.event,zo.field):(zr=hc(Ie[Si],zo.valueField),zo.multiple&&(zr=hc(this.dragging.startResources[Si],zo.valueField)!==zr?[zr]:hc(G.event.dataItem,zo.field))),fd(gn,zo.field,zr)}return gn}initResize(G){G.originalEvent.preventDefault();const Ie=G.originalEvent.target,gn=this.targetTask(Ie);if(this.emitEvent("resizeStart",{event:gn.task.event,dataItem:gn.task.event.dataItem}))return;this.resizing=gn,gn.start=gn.task.start.toUTCDate(),gn.end=gn.task.end.toUTCDate(),gn.direction=ru(Ie,"k-resize-n")?"n":ru(Ie,"k-resize-s")?"s":ru(Ie,"k-resize-w")?"w":"e",this.updateDragContainer(G);const{x:Si,y:zo}=this.coordinatesOffset(G.pageX,G.pageY);gn.slot=this.slotByPosition(Math.ceil(Si),Math.ceil(zo),this.container),gn.offset={start:gn.task.start.toUTCDate().getTime()-gn.slot.start.getTime(),end:gn.task.end.toUTCDate().getTime()-gn.slot.start.getTime()}}resize(G){const{x:Ie,y:gn}=this.coordinatesOffset(G.pageX,G.pageY),Si=this.resizing,{direction:zo,task:_r,offset:zr}=Si,Lr=this.slotService.groupSlotByPosition(Si.slot,Ie,gn);if(!Lr||Lr===Si.slot)return;this.removeSlotClass();const{start:ws,end:$s,ranges:ya}=this.slotService.resizeRanges(Lr,_r,"w"===zo||"n"===zo,zr);Si.hintClass=null,Si.start=ws,Si.end=$s,Si.slot=Lr,this.emitEvent("resize",{event:_r.event,dataItem:_r.event.dataItem,start:this.convertDate(ws),end:this.convertDate($s),setHintClass:this.setHintClass,setSlotClass:this.setSlotClass})?this.updateHintClass():(this.updateResizeHints(ya,ws,$s),this.updateHintContainer())}updateResizeHints(G,Ie,gn){const Si=this.resizing,zo=Si.direction,_r="w"===zo||"e"===zo,zr="w"===zo||"n"===zo;this.resizeHints=[];for(let Lr=0;Lr<G.length;Lr++){const ws=G[Lr],$s=ws[0],ya=ws[ws.length-1],ua=0===Lr,Ja=Lr===G.length-1;this.resizeHints.push({first:ua,last:Ja,rect:{left:$s.rect.left,top:$s.top,height:_r?$s.height:Math.abs(ya.rect.top-$s.rect.top)+ya.rect.height,width:_r?Math.abs(ya.rect.left-$s.rect.left)+ya.rect.width:$s.width},start:ua&&!zr?Si.start:$s.start,end:Ja&&zr?Si.end:ya.end,class:Si.hintClass})}}coordinatesOffset(G,Ie,gn=this.container,Si=this.containerOffset){const zo=G-Si.left+gn.scrollLeft;return{x:this.localization.rtl?this.slotService.containerSize-zo:zo,y:Ie-Si.top+gn.scrollTop}}scrollContainer(G,Ie){clearInterval(this.scrollInterval);const gn=this.container;if(!gn)return;const Si=Ie.pageY-this.containerOffset.top,zo=Math.abs(gn.offsetHeight-Si),_r=Ie.pageY-this.dragArgs.pageY,zr=Ie.pageX-this.containerOffset.left,Lr=Math.abs(gn.offsetWidth-zr),ws=Ie.pageX-this.dragArgs.pageX;let $s=!1,ya=0,ua=0;zo<60&&gn.scrollTop+gn.offsetHeight<gn.scrollHeight&&_r>0?($s=!0,ua=15,this.container.scrollTop+=60-zo):Si<60&&gn.scrollTop>0&&_r<0&&($s=!0,ua=-15,this.container.scrollTop-=60-Si),Lr<60&&gn.scrollLeft+gn.offsetWidth<gn.scrollWidth&&ws>0?($s=!0,ya=15,this.container.scrollLeft+=60-Lr):zr<60&&gn.scrollLeft>0&&_r<0&&($s=!0,ya=-15,this.container.scrollLeft-=60-zr),$s&&(this.scrollInterval=setInterval(()=>{this.container?(this.container.scrollLeft+=ya,this.container.scrollTop+=ua,G.call(this,Ie)):clearInterval(this.scrollInterval)},50))}emitEvent(G,Ie){return this.viewState.emitEvent(G,Ie),Ie.prevented}targetTask(G){const Ie=Qc(G,gn=>gn.hasAttribute("data-task-index"),this.element.nativeElement);if(Ie){const gn=parseInt(Ie.getAttribute("data-task-index"),10);return{target:Ie,task:this.tasks.find(Si=>Si.index===gn)}}}updateHintContainer(){this.hintContainer&&this.hintContainer.detectChanges()}convertDate(G){return H.fromUTCDate(G,this.timezone).toLocalDate()}onClick(G,Ie=G.type){this.emitSlotEvent(G,Ie),this.emitTaskEvent(G,Ie)}emitSlotEvent(G,Ie){const gn=Qc(G.target,Si=>Si.hasAttribute("data-slot-index"),this.element.nativeElement);if(gn){const Si=gn.getAttribute("data-slot-index"),zo="dblclick"===Ie?"slotDblClick":"slotClick",_r=this.slotByIndex(Si,G);this.viewState.emitEvent(zo,{type:Ie,slot:_r,start:this.convertDate(_r.start),end:this.convertDate(_r.end),isAllDay:_r.isDaySlot,originalEvent:G,resources:this.resources&&this.resources.length?this.resourcesByIndex(_r.id.resourceIndex):[]})}}emitTaskEvent(G,Ie){const gn=this.targetTask(G.target);if(gn){const Si=gn.task,_r="dblclick"===Ie;"click"===Ie&&Qc(G.target,zr=>ru(zr,"k-event-delete"),gn.target)?this.viewState.emitEvent("remove",{event:Si.event,dataItem:Si.event.dataItem}):(this.viewState.emitEvent(_r?"eventDblClick":"eventClick",{type:Ie,event:Si.event,originalEvent:G}),gn.target.focus())}}onKeydown(G){const Ie=this.targetTask(G.target);if(Ie){const gn=Ie.task;this.viewState.emitEvent("eventKeydown",{event:gn.event,dataItem:gn.event.dataItem,originalEvent:G})}}syncTables(){if(this.timesTable&&this.renderer.setStyle(this.timesTable.nativeElement,"height",`${this.contentTable.nativeElement.offsetHeight}px`),Mf(this.content.nativeElement,"vertical")||this.renderer.setStyle(this.header.nativeElement,this.localization.rtl?"padding-inline-start":"padding-inline-end","0px"),this.renderer.removeStyle(this.header.nativeElement,this.localization.rtl?"padding-inline-end":"padding-inline-start"),this.times){const G=this.times.nativeElement;this.timesHeader.nativeElement.style.width=`${G.offsetWidth}px`,this.renderer.setStyle(G,"height",("auto"===this.contentHeight?this.content.nativeElement.offsetHeight:this.contentHeight)-(Mf(this.content.nativeElement,"horizontal")?(0,a.LF)():0)+"px"),G.scrollTop=this.content.nativeElement.scrollTop}}updateContentHeight(){const G=this.element.nativeElement,Ie=G.parentNode,gn=this.content.nativeElement,Si=this.autoHeight||!Ie?.style.height,zo=gn.scrollLeft,_r=gn.scrollTop;if(this.renderer.setStyle(gn,"height",""),this.times&&this.renderer.setStyle(this.times.nativeElement,"height",""),Si)return void(this.contentHeight="auto");let zr=Ie.clientHeight;for(let Lr=0;Lr<Ie.children.length;Lr++){const ws=Ie.children[Lr];ws!==G&&!vm(ws)&&(zr-=ws.offsetHeight)}zr-=this.headerWrap?this.headerWrap.nativeElement.offsetHeight:0,this.renderer.setStyle(gn,"height",`${zr}px`),this.contentHeight=zr,gn.scrollLeft=zo,gn.scrollTop=_r}groupResources(){const Ie=this.group||{};this.groupedResources=Ol(Ie,this.resources||[]),"vertical"!==Ie.orientation?(this.horizontalResources=this.groupedResources,this.verticalResources=[]):(this.verticalResources=this.groupedResources,this.horizontalResources=[]),this.spans=this.resourceSpans()}get taskResources(){return this.groupedResources.length?this.groupedResources:this.resources&&this.resources.length?[this.resources[0]]:[{}]}resourceSpans(){const G=[1],Ie=this.groupedResources;let gn=1;for(let Si=Ie.length-1;Si>0;Si--)gn*=(Ie[Si].data||[]).length||1,G.unshift(gn);return G}isInRange(G){const Ie=this.dateRange(G);return(!this.min||this.min<Ie.end)&&(!this.max||Ie.start<=this.max)}createPDFElement(){const G=this.contentHeight,Ie=this.content.nativeElement.scrollTop;"auto"!==G&&(this.autoHeight=!0,this.updateView());const gn=this.element.nativeElement.cloneNode(!0);gn.style.width=`${this.pdfWidth()}px`,"auto"!==G&&(this.autoHeight=!1,this.updateView()),this.pdfService.elementReady.emit({element:gn}),this.content.nativeElement.scrollTop=Ie}pdfWidth(){return this.element.nativeElement.offsetWidth}containerByPosition({x:G,y:Ie}){const gn=this.content.nativeElement,Si=Of(gn);if(Si.top<=Ie&&Ie<=Si.top+Si.height&&Si.left<=G&&G<=Si.left+Si.width)return{element:gn,offset:Si}}execute(G){if("slotByPosition"===G.name){const Ie=this.containerByPosition(G.args);if(Ie){const gn=this.coordinatesOffset(G.args.x,G.args.y,Ie.element,Ie.offset),Si=this.slotByPosition(gn.x,gn.y,Ie.element);G.result(this.slotFields(Si))}}else if("eventFromElement"===G.name){const Ie=this.targetTask(G.args.element);Ie&&G.result(Ie.task.event)}}slotFields(G){return{element:G.element,resources:this.groupedResources.length?this.resourcesByIndex(G.id.resourceIndex):[],start:this.convertDate(G.start),end:this.convertDate(G.end)}}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(Ad),n.Y36(uc),n.Y36(Eo.aJ),n.Y36(Cp),n.Y36(n.R0b),n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(Wh),n.Y36(o.oQ),n.Y36(n.sBO),n.Y36(a.GK))},Ee.\u0275dir=n.lG2({type:Ee,viewQuery:function(G,Ie){if(1&G&&(n.Gf(it,5),n.Gf(Vt,5),n.Gf(qt,5),n.Gf(bn,5),n.Gf(ii,5),n.Gf(Vi,5),n.Gf($t,5),n.Gf(Jn,5)),2&G){let gn;n.iGM(gn=n.CRH())&&(Ie.content=gn.first),n.iGM(gn=n.CRH())&&(Ie.header=gn.first),n.iGM(gn=n.CRH())&&(Ie.contentTable=gn.first),n.iGM(gn=n.CRH())&&(Ie.times=gn.first),n.iGM(gn=n.CRH())&&(Ie.timesHeader=gn.first),n.iGM(gn=n.CRH())&&(Ie.timesTable=gn.first),n.iGM(gn=n.CRH())&&(Ie.headerWrap=gn.first),n.iGM(gn=n.CRH())&&(Ie.hintContainer=gn.first)}},inputs:{eventTemplate:"eventTemplate",groupHeaderTemplate:"groupHeaderTemplate",selectedDateFormat:"selectedDateFormat",selectedShortDateFormat:"selectedShortDateFormat",eventHeight:"eventHeight",slotClass:"slotClass",eventClass:"eventClass",eventStyles:"eventStyles",weekStart:"weekStart"},features:[n.TTD]}),Ee})(),Rg=(()=>{class Ee{constructor(G,Ie,gn){this.element=G,this.slotService=Ie,this.localization=gn,this._rect=null}get slotIndex(){return this.key}get start(){return this._start}set start(G){this._start=G}get end(){return this._end}set end(G){this._end=G}get rect(){if(this._rect)return this._rect;const G=this.nativeElement;return this._rect={left:this.localization.rtl?this.slotService.containerSize-(G.offsetLeft+G.clientWidth):G.offsetLeft,top:G.offsetTop,width:G.clientWidth,height:G.clientHeight},this._rect}get top(){return this.element?this.nativeElement.offsetTop:0}get padding(){return this.element&&(0,a.X_)()?2*parseInt(window.getComputedStyle(this.nativeElement).paddingTop,10):0}get height(){return this.element?this.nativeElement.offsetHeight:0}set height(G){this.element&&(this.nativeElement.style.height=`${G}px`),this._rect&&(this._rect.height=G)}get width(){return this.element?this.nativeElement.offsetWidth:0}get key(){return`${this.id.resourceIndex}:${this.id.rangeIndex}:${this.id.index}`}get nativeElement(){return this.element.nativeElement}ngOnInit(){this.slotService.registerSlot(this)}ngOnDestroy(){this.slotService.unregisterSlot(this)}invalidate(){this._rect=null}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.SBq),n.Y36(Cp),n.Y36(o.oQ))},Ee.\u0275dir=n.lG2({type:Ee,hostVars:1,hostBindings:function(G,Ie){2&G&&n.uIk("data-slot-index",Ie.slotIndex)},inputs:{id:"id"}}),Ee})(),Lg=(()=>{class Ee extends Rg{constructor(G,Ie,gn,Si){super(G,Ie,gn),this.cdr=Si,this.moreHorizontalIcon=xo.VxT,this.isDaySlot=!0,this._linkHeight=null}set day(G){this._day=G,this.start=G}get day(){return this._day}set start(G){this.startDate=Pd(G)}get start(){return this.startDate}get end(){return jh(this.start,1)}isFirstDayOfMonth(G){return d(G,(0,se.l)(G))}get linkHeight(){if(null===this._linkHeight){const G=(Ee=>{const at=this.nativeElement.children,G=at.length;for(let Ie=0;Ie<G;Ie++)if(1===at[Ie].nodeType)return at[Ie]})();this._linkHeight=G?G.offsetHeight+G.offsetTop:0}return this._linkHeight}ngOnDestroy(){super.ngOnDestroy(),this.removeShowMore()}showMore(G){this.showMoreButton=!0,this.style=`width: ${G.width}px; left: ${G.left}px; top: ${G.top}px; border-color: inherit;`,this.cdr.detectChanges()}hideMore(){this.showMoreButton=!1,this.removeShowMore()}invalidate(){super.invalidate(),this._linkHeight=null,this.showMoreButton=!1,this.removeShowMore()}removeShowMore(){this.showMoreButton=!1,this.cdr.detectChanges()}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.SBq),n.Y36(Kh),n.Y36(o.oQ),n.Y36(n.sBO))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["","monthSlot",""]],inputs:{resourcesByIndex:"resourcesByIndex",monthDaySlotTemplateRef:"monthDaySlotTemplateRef",day:["monthSlot","day"]},features:[n.qOj],attrs:zt,decls:3,vars:3,consts:[["aria-hidden","true","class","k-link k-nav-day",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["class","k-more-events k-button",3,"style",4,"ngIf"],["aria-hidden","true",1,"k-link","k-nav-day"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-more-events","k-button"],["name","more-horizontal",3,"svgIcon"]],template:function(G,Ie){1&G&&(n.YNc(0,mn,3,4,"span",0),n.YNc(1,ci,1,5,"ng-container",1),n.YNc(2,Oi,2,3,"div",2)),2&G&&(n.Q6J("ngIf",!Ie.monthDaySlotTemplateRef),n.xp6(1),n.Q6J("ngIf",Ie.monthDaySlotTemplateRef),n.xp6(1),n.Q6J("ngIf",Ie.showMoreButton))},dependencies:[yo.ZS,Xt.O5,Xt.tP,Eo.uU],encapsulation:2}),Ee})(),am=(()=>{class Ee{constructor(){this.marqueeClasses=!0}get left(){return this.hint.rect.left}get top(){return this.hint.rect.top}get width(){return this.hint.rect.width}get height(){return this.hint.rect.height}get start(){return U(this.hint.start)}get end(){return U(this.hint.end)}}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["","kendoResizeHint",""]],hostVars:18,hostBindings:function(G,Ie){2&G&&(n.Udp("left",Ie.left,"px")("right",Ie.left,"px")("top",Ie.top,"px")("width",Ie.width,"px")("height",Ie.height,"px"),n.ekj("k-marquee",Ie.marqueeClasses)("k-scheduler-marquee",Ie.marqueeClasses)("k-first",Ie.marqueeClasses)("k-last",Ie.marqueeClasses))},inputs:{hint:"hint",format:"format"},attrs:Ai,decls:4,vars:2,consts:[[1,"k-marquee-color"],[1,"k-marquee-text"],["class","k-label-top",4,"ngIf"],["class","k-label-bottom",4,"ngIf"],[1,"k-label-top"],[1,"k-label-bottom"]],template:function(G,Ie){1&G&&(n._UZ(0,"div",0),n.TgZ(1,"div",1),n.YNc(2,Pn,3,4,"div",2),n.YNc(3,qn,3,4,"div",3),n.qZA()),2&G&&(n.xp6(2),n.Q6J("ngIf",Ie.hint.first),n.xp6(1),n.Q6J("ngIf",Ie.hint.last))},dependencies:[Xt.O5,Eo.uU],encapsulation:2}),Ee})();class Gu{constructor(at,G=at.length-1){this.resources=at,this.lastIndex=G}*[ep](){let at=this.resources;const G=Math.max(0,this.lastIndex);at&&at.length||(at=[{}]);const Ie=at[G].data||[],gn=Ie.length;let Si=1;for(let zo=0;zo<=G;zo++)Si*=(at[zo].data||[]).length||1;for(let zo=0;zo<Si;zo++)yield Ie[zo%gn]}}let Hu=(()=>{class Ee{transform(G=[],Ie){return new Gu(G,Ie)}}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275pipe=n.Yjl({name:"resourceIterator",type:Ee,pure:!0}),Ee})();class dp{constructor(at){this.count=at}*[ep](){for(let at=0;at<this.count;at++)yield at}}let Ng=(()=>{class Ee{transform(G){return new dp(G)}}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275pipe=n.Yjl({name:"repeat",type:Ee,pure:!0}),Ee})(),up=(()=>{class Ee extends e_{constructor(G,Ie,gn,Si,zo,_r,zr,Lr,ws,$s,ya){super(G,Ie,gn,Si,zo,zr,_r,Lr,ws,$s,ya),this.numberOfWeeks=6,this.resizeHintFormat={skeleton:"Md"},this.weeks=[],this.updateOngoingEvents=this.updateOngoingEvents.bind(this)}get monthDaySlotTemplateRef(){return this.monthDaySlotTemplate||(this.schedulerMonthDaySlotTemplate||{}).templateRef}ngOnChanges(G){(0,a.ln)("weekStart",G)&&this.onSelectDate(this.selectedDate),super.ngOnChanges(G)}ngAfterViewInit(){this.updateOngoingEvents(),super.ngAfterViewInit()}ngOnDestroy(){clearTimeout(this.ongoingEventsTimeout),super.ngOnDestroy()}horizontalColspan(G){const Ie=this.horizontalResources;let gn=7;for(let Si=G+1;Si<Ie.length;Si++)gn*=(Ie[Si].data||[]).length||1;return gn}verticalRowspan(G){const Ie=this.verticalResources;let gn=this.numberOfWeeks;for(let Si=G+1;Si<Ie.length;Si++)gn*=(Ie[Si].data||[]).length||1;return gn}verticalItem(G,Ie){const gn=this.verticalResources[Ie].data||[],Si=this.verticalResources;let zo=1;for(let _r=Ie+1;_r<Si.length;_r++)zo*=(Si[_r].data||[]).length||1;return gn[G/zo%gn.length]}daySlotClass(G,Ie){if(this.slotClass)return this.slotClass({start:G,end:(0,q.E)(G,1),resources:this.resourcesByIndex(Ie),isAllDay:!1})}cellTitle(G){return this.intl.formatDate(G,"D")}addDay(G){return(0,q.E)(G,1)}optionsChange(G){this.schedulerMonthDaySlotTemplate=G[`${this.type}DaySlotTemplate`],super.optionsChange(G)}createTasks(G,Ie){return this.weeks=this.createDaySlots(Ie),((Ee,at,G,Ie)=>{const gn=[],Si=Pd(Ee),zo=Pd(at);for(let _r=0;_r<G.length;_r++){const zr=G[_r],Lr={},ws=zr.start.toUTCDate(),$s=zr.end,ya=(zr.end.getTime()!==$s.getTime()?$s.addDays(1):$s).toUTCDate();if(pd(ws,ya,Si,zo))for(let ua=0;ua<Ie.length;ua++){const Ja=Ie[ua],jl=Pd(Ja[0]),zd=jh(Pd(Lf(Ja)),1);if(pd(ws,ya,jl,zd)){const md={index:_r,startTime:ws,endTime:ya,start:zr.start,end:zr.end,event:zr.event,isAllDay:zr.event.isAllDay,rangeIndex:ua,data:Lr};gn.push(md),md.head=md.endTime>zd,md.tail=md.startTime<jl}}}return ou(gn)})(Ie.start,Ie.end,G,this.weeks)}onTasksChange(){(function wp(Ee){for(let at=0;at<Ee.length;at++){const G=Ee[at],Ie=G.resources;Lm(G);for(let gn=0;gn<Ie.length;gn++)G.data[Ie[gn].leafIdx]={}}})(this.tasks),this.items.next(this.tasks)}reflow(){this.updateContentHeight();const G=this.content.nativeElement;this.slotService.containerSize=G.scrollWidth,"auto"===this.contentHeight&&(G.style.overflow="visible"),this.slotService.layout(this.eventHeight),"auto"===this.contentHeight&&(G.style.overflow=""),this.syncTables()}onClick(G,Ie=G.type){if("click"===Ie){const gn=Qc(G.target,zo=>zo.hasAttribute("data-slot-index"),this.element.nativeElement),Si=Qc(G.target,zo=>ru(zo,"k-more-events k-nav-day"),gn);if(gn&&Si){const zo=gn.getAttribute("data-slot-index"),_r=this.slotService.slotByIndex(zo);return void this.zone.run(()=>{this.viewState.navigateTo({viewName:"day",date:U(_r.start)})})}}super.onClick(G,Ie)}slotByIndex(G,Ie){return this.slotService.slotByIndex(G)}onSelectDate(G){const Ie=this.dateRange(G);this.selectedDate=G,this.viewState.notifyDateRange(Ie),this.weeks=this.createDaySlots(Ie)}onAction(G){const Ie=(0,l._)(this.selectedDate);if("next"===G.type){const gn=this.newRange(Ie);this.isInRange(gn)&&this.viewState.notifyNextDate(gn)}if("prev"===G.type){const gn=this.newRange(Ie,-1);this.isInRange(gn)&&this.viewState.notifyNextDate(gn)}}dateRange(G=this.selectedDate){return this.dateRangeFn(G,this.weekStart)}dragRanges(G){return this.slotService.dragRanges(G,this.dragging.offset)}dragHintSize(G,Ie){return{width:wu(Ie.rect.left-G.rect.left+Ie.rect.width),height:wu(G.height)}}slotByPosition(G,Ie){return this.slotService.slotByPosition(G,Ie)}updateOngoingEvents(){const G=!this.highlightOngoingEvents||!1===this.highlightOngoingEvents.enabled;!(0,a.X_)()||G||(clearTimeout(this.ongoingEventsTimeout),this.zone.runOutsideAngular(()=>{this.ongoingEventsTimeout=setTimeout(this.updateOngoingEvents,this.highlightOngoingEvents.updateInterval||sf)}),this.toggleOngoingClass())}currentTime(){return new Date}toggleOngoingClass(){const G=this.currentTime(),Ie=Sl(this.highlightOngoingEvents.cssClass)?this.highlightOngoingEvents.cssClass:Rm;this.eventElements.forEach(gn=>{const Si=su(G,gn.item.start,gn.item.end);this.renderer[Si?"addClass":"removeClass"](gn.nativeElement,Ie)})}createDaySlots({start:G}){const Ie=[];let gn=G;for(let Si=0;Si<this.numberOfWeeks;Si++){const zo=[];Ie.push(zo);for(let _r=0;_r<7;_r++)zo.push(gn),gn=(0,q.E)(gn,1)}return Ie}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(Ad),n.Y36(uc),n.Y36(Eo.aJ),n.Y36(Kh),n.Y36(n.R0b),n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(Wh),n.Y36(o.oQ),n.Y36(n.sBO),n.Y36(a.GK))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["month-view"]],viewQuery:function(G,Ie){if(1&G&&n.Gf(Sf,5),2&G){let gn;n.iGM(gn=n.CRH())&&(Ie.eventElements=gn)}},inputs:{monthDaySlotTemplate:"monthDaySlotTemplate",highlightOngoingEvents:"highlightOngoingEvents",type:"type",numberOfWeeks:"numberOfWeeks",newRange:"newRange",dateRangeFn:"dateRangeFn"},features:[n._Bn([Kh]),n.qOj,n.TTD],decls:26,vars:19,consts:[[1,"k-scheduler-layout","k-scheduler-monthview","k-scheduler-flex-layout"],[1,"k-scheduler-pane"],["class","k-scheduler-times",4,"ngIf"],[1,"k-scheduler-header","k-state-default"],["header",""],[1,"k-scheduler-header-wrap"],["headerWrap",""],["aria-hidden","true",1,"k-scheduler-table"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","k-scheduler-times k-scheduler-resources",4,"ngIf"],["tabindex","0","role","group",1,"k-scheduler-content"],["content",""],["role","presentation",1,"k-scheduler-table","k-user-select-none"],["contentTable",""],["hintContainer",""],[1,"k-scheduler-times"],["timesHeader",""],["class","k-slot-cell",4,"ngFor","ngForOf","ngForTrackBy"],[1,"k-slot-cell"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-scheduler-times","k-scheduler-resources"],["times",""],["timesTable",""],[1,"k-slot-cell","k-empty-slot"],["class","k-slot-cell",3,"ngClass",4,"ngIf"],[1,"k-slot-cell",3,"ngClass"],[3,"monthSlot","monthDaySlotTemplateRef","resourcesByIndex","ngClass","id","title","k-selected",4,"ngFor","ngForOf","ngForTrackBy"],[3,"monthSlot","monthDaySlotTemplateRef","resourcesByIndex","ngClass","id","title"],["role","button","monthViewItem","",3,"ngClass","ngStyle","kendoSchedulerFocusIndex","id","editable","item","index","rangeIndex","eventTemplate","resources","resourceIndex",4,"ngFor","ngForOf","ngForTrackBy"],["role","button","monthViewItem","",3,"ngClass","ngStyle","kendoSchedulerFocusIndex","id","editable","item","index","rangeIndex","eventTemplate","resources","resourceIndex"],["class","k-event-drag-hint","monthViewItem","",3,"ngStyle","ngClass","dragHint","eventTemplate","item","resources",4,"ngFor","ngForOf","ngForTrackBy"],["kendoResizeHint","",3,"hint","ngClass","format",4,"ngFor","ngForOf","ngForTrackBy"],["monthViewItem","",1,"k-event-drag-hint",3,"ngStyle","ngClass","dragHint","eventTemplate","item","resources"],["kendoResizeHint","",3,"hint","ngClass","format"]],template:function(G,Ie){1&G&&(n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,Ni,5,0,"div",2),n.TgZ(3,"div",3,4)(5,"div",5,6)(7,"table",7),n.YNc(8,lt,3,5,"tr",8),n.TgZ(9,"tr"),n.YNc(10,on,2,2,"ng-container",8),n.ALo(11,"resourceIterator"),n.qZA()()()()(),n.TgZ(12,"div",1),n.YNc(13,io,6,4,"div",9),n.TgZ(14,"div",10,11),n.ALo(16,"async"),n.TgZ(17,"table",12,13),n.YNc(19,fs,2,2,"ng-container",8),n.ALo(20,"resourceIterator"),n.qZA(),n.YNc(21,Ca,2,2,"ng-container",8),n.ALo(22,"async"),n.TgZ(23,"kendo-hint-container",null,14),n.YNc(25,na,2,4,"ng-template"),n.qZA()()()()),2&G&&(n.xp6(2),n.Q6J("ngIf",Ie.verticalResources.length),n.xp6(6),n.Q6J("ngForOf",Ie.horizontalResources)("ngForTrackBy",Ie.itemIndex),n.xp6(2),n.Q6J("ngForOf",n.lcZ(11,11,Ie.horizontalResources))("ngForTrackBy",Ie.itemIndex),n.xp6(3),n.Q6J("ngIf",Ie.verticalResources.length),n.xp6(1),n.uIk("aria-owns",Ie.matchOwned(n.lcZ(16,13,Ie.items))),n.xp6(5),n.Q6J("ngForOf",n.lcZ(20,15,Ie.verticalResources))("ngForTrackBy",Ie.itemIndex),n.xp6(2),n.Q6J("ngForOf",n.lcZ(22,17,Ie.items))("ngForTrackBy",Ie.itemIndex))},dependencies:[Lg,Sf,Nm,am,Xt.O5,Xt.sg,Xt.tP,Xt.mk,Xt.PC,ef,Hu,Eo.uU,Ng,Xt.Ov],encapsulation:2}),Ee})(),xc=(()=>{class Ee extends Am{constructor(G,Ie,gn,Si,zo){super(G,Ie,gn,Si),this.intl=zo,this.selectedDateFormat="{0:Y}",this.selectedShortDateFormat="{0:y}",this.name="month"}get title(){return this.localization.get("monthViewTitle")}get viewEventHeight(){return Sl(this.eventHeight)?this.eventHeight:this.schedulerOptions.eventHeight||25}dateRange(G,Ie){const gn=(0,se.l)((0,l._)(G)),Si=ne(gn,Ie);return{start:Si,end:(0,q.E)(Si,42),text:this.intl.format(this.selectedDateFormat,gn),shortText:this.intl.format(this.selectedShortDateFormat,gn)}}newRange(G,Ie=1){return(0,se.l)((0,_e.z)(G,Ie))}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(o.oQ),n.Y36(n.sBO),n.Y36(Ad),n.Y36(uc),n.Y36(Eo.aJ))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["kendo-scheduler-month-view"]],contentQueries:function(G,Ie,gn){if(1&G&&n.Suo(gn,yd,5),2&G){let Si;n.iGM(Si=n.CRH())&&(Ie.monthDaySlotTemplate=Si.first)}},inputs:{eventHeight:"eventHeight",selectedDateFormat:"selectedDateFormat",selectedShortDateFormat:"selectedShortDateFormat"},features:[n._Bn([{provide:Sd,useExisting:(0,n.Gpc)(()=>Ee)}]),n.qOj],decls:2,vars:0,consts:[["content",""],["type","month",3,"eventHeight","eventTemplate","slotClass","eventClass","eventStyles","groupHeaderTemplate","monthDaySlotTemplate","selectedDateFormat","selectedShortDateFormat","highlightOngoingEvents","weekStart","dateRangeFn","newRange"]],template:function(G,Ie){1&G&&n.YNc(0,Xs,1,13,"ng-template",null,0,n.W1O)},dependencies:[up],encapsulation:2,changeDetection:0}),Ee})(),Pu=(()=>{class Ee{constructor(G){this.hostClasses=!0,this.toolbarRole="toolbar",this.inlineJustifyContentStyle="start",this.itemClick=new n.vpe,this.sub=G.toggleWorkHours.subscribe(()=>this.itemClick.emit())}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}onItemClick(G,Ie){G.preventDefault(),this.itemClick.emit(Ie)}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(uc))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["","viewFooter",""]],hostVars:9,hostBindings:function(G,Ie){2&G&&(n.uIk("role",Ie.toolbarRole),n.Udp("justify-content",Ie.inlineJustifyContentStyle),n.ekj("k-scheduler-footer",Ie.hostClasses)("k-toolbar",Ie.hostClasses)("k-toolbar-md",Ie.hostClasses))},inputs:{items:"items"},outputs:{itemClick:"itemClick"},attrs:Ws,decls:2,vars:1,consts:[[1,"k-scheduler-navigation"],["type","button","kendoButton","","containerType","footer",3,"icon","svgIcon","ngClass","kendoSchedulerFocusIndex","click",4,"ngFor","ngForOf"],["type","button","kendoButton","","containerType","footer",3,"icon","svgIcon","ngClass","kendoSchedulerFocusIndex","click"],[1,"k-button-text"]],template:function(G,Ie){1&G&&(n.TgZ(0,"span",0),n.YNc(1,cs,3,5,"button",1),n.qZA()),2&G&&(n.xp6(1),n.Q6J("ngForOf",Ie.items))},dependencies:[Bn.r0,Xt.sg,Xt.mk,ef],encapsulation:2}),Ee})(),Yd=(()=>{class Ee{constructor(G,Ie){this.footer=G,this.localization=Ie,this.showWorkHours=!1,this.footerItems=[{cssClass:"k-scheduler-fullday",fontIcon:"clock",svgIcon:xo.aYQ,text:""}]}ngOnInit(){this.toggleWorkHours(),this.footer.items=this.footerItems}ngOnChanges(){this.toggleWorkHours()}toggleWorkHours(){this.footerItems[0].text=this.localization.get(this.showWorkHours?"showFullDay":"showWorkDay")}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(Pu),n.Y36(o.oQ))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","kendoWorkHoursFooter",""]],inputs:{showWorkHours:"showWorkHours"},features:[n.TTD]}),Ee})(),Yf=(()=>{class Ee{}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275mod=n.oAB({type:Ee}),Ee.\u0275inj=n.cJS({imports:[[Xt.ez,Eo.o0,bp,Bn.Fq,yo.pc],Eo.o0,Xt.ez,bp,yo.pc]}),Ee})(),Hp=(()=>{class Ee{}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275mod=n.oAB({type:Ee}),Ee.\u0275inj=n.cJS({imports:[[Yf,yo.pc]]}),Ee})(),Zf=(()=>{class Ee extends Am{constructor(G,Ie,gn,Si){super(G,Ie,gn,Si)}get viewEventHeight(){return this.optionValue("eventHeight")||25}get shouldShowWorkHours(){return this.optionValue("showWorkHours")}get viewStartTime(){return this.optionValue("startTime")}get viewEndTime(){return this.optionValue("endTime")}get viewWorkDayStart(){return this.optionValue("workDayStart")}get viewWorkDayEnd(){return this.optionValue("workDayEnd")}get viewWorkWeekStart(){return this.optionValue("workWeekStart")}get viewWorkWeekEnd(){return this.optionValue("workWeekEnd")}get viewSlotDuration(){return this.optionValue("slotDuration")}get viewSlotDivisions(){return this.optionValue("slotDivisions")}get viewCurrentTimeMarker(){return this.optionValue("currentTimeMarker")}get viewHighlightOngoingEvents(){return this.optionValue("highlightOngoingEvents")}get viewScrollTime(){return this.optionValue("scrollTime")}optionValue(G){return Sl(this[G])?this[G]:this.schedulerOptions[G]}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(o.oQ),n.Y36(n.sBO),n.Y36(Ad),n.Y36(uc))},Ee.\u0275dir=n.lG2({type:Ee,contentQueries:function(G,Ie,gn){if(1&G&&(n.Suo(gn,Pp,5),n.Suo(gn,pf,5)),2&G){let Si;n.iGM(Si=n.CRH())&&(Ie.timeSlotTemplate=Si.first),n.iGM(Si=n.CRH())&&(Ie.dateHeaderTemplate=Si.first)}},inputs:{showWorkHours:"showWorkHours",eventHeight:"eventHeight",startTime:"startTime",scrollTime:"scrollTime",endTime:"endTime",workDayStart:"workDayStart",workDayEnd:"workDayEnd",workWeekStart:"workWeekStart",workWeekEnd:"workWeekEnd",slotDuration:"slotDuration",slotDivisions:"slotDivisions",currentTimeMarker:"currentTimeMarker",highlightOngoingEvents:"highlightOngoingEvents"},features:[n.qOj]}),Ee})(),Bd=(()=>{class Ee extends Zf{constructor(G,Ie,gn,Si){super(G,Ie,gn,Si)}get viewSlotFill(){return this.optionValue("slotFill")}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(o.oQ),n.Y36(n.sBO),n.Y36(Ad),n.Y36(uc))},Ee.\u0275dir=n.lG2({type:Ee,inputs:{slotFill:"slotFill"},features:[n.qOj]}),Ee})();const S_=(Ee,at)=>Ee<=at&&at<=Ee+25,eg=(Ee,at,G=!0)=>Ee.start.getTime()<=at.getTime()?(G?Ee.height:Ee.width)*((at.getTime()-Ee.start.getTime())/(Ee.end.getTime()-Ee.start.getTime())):0,Tm=(Ee,at)=>{const G=Gi(Ee.columnIndex)?Ee.columnIndex:Number.MAX_VALUE,Ie=Gi(at.columnIndex)?at.columnIndex:Number.MAX_VALUE;return G===Ie?Ee.item.startTime.getTime()-at.item.startTime.getTime():G-Ie};function Tp(Ee,at){if(void 0!==at.rowIndex)return at.rowIndex;for(let G=0;G<Ee.length;G++){const Ie=Ee[G];if(!Ie||!pd(at.item.startTime,at.item.endTime,Ie.item.startTime,Ie.item.endTime))return G}return Ee.length}function zm(Ee,at,G,Ie,gn){const Si=Ee[0].padding;if(!at.length)return{height:G-Si};at.forEach(ws=>{ws.rowIndex=void 0,ws.rect={height:Ie,width:0}});const zo=(0,Ii.Xo)(at,[{field:"item.startTime",dir:"asc"},{field:"item.endTime",dir:"desc"}]),_r={};zo.forEach(ws=>Ee.filter($s=>pd(ws.item.startTime,ws.item.endTime,$s.start,$s.end)).forEach($s=>{const ya=_r[$s.key]=_r[$s.key]||{rows:[],slot:$s,events:[]};ws.rowIndex=gn(ya.rows,ws),ya.rows[ws.rowIndex]=ws,ya.events.push(ws)}));const zr=Ee[0].top;let Lr=0;return Object.keys(_r).forEach(ws=>{const $s=_r[ws].events;let ya=0;for(let ua=0;ua<$s.length;ua++){const Ja=$s[ua];Ja&&(Ja.rect.top=zr+Ja.rowIndex*(10+Ja.rect.height),ya=Math.max(ya,Ja.rect.top-zr+Ja.rect.height))}Lr=Math.max(ya,Lr)}),Lr+=G-Si,{height:Lr,slotItems:_r}}function Dd(Ee,at,G){Object.keys(Ee).forEach(Ie=>{const{slot:gn,events:Si}=Ee[Ie],zo=gn.rect;for(let _r=0;_r<Si.length;_r++){const zr=Si[_r];if(zr){Gi(zr.rect.left)||(zr.rect.left=gn.rect.left+(G?eg(gn,zr.item.startTime,!1):0));const Lr=G&&zr.item.endTime.getTime()<gn.end.getTime()?eg(gn,zr.item.endTime,!1):zo.width;zr.rect.width=gn.rect.left+Lr-zr.rect.left}}}),at.forEach(Ie=>{Ie.reflow()})}class Oh{constructor(at){this.index=at,this.slotMap=new Sm,this.itemMap=new Sm}get slots(){return this.slotMap.toArray()}get firstSlot(){return this.slotMap.first}get lastSlot(){return this.slotMap.last}get items(){return this.itemMap.toArray()}get rect(){const at=this.firstSlot.rect,G=this.lastSlot.rect;return{left:at.left,top:at.top,width:G.left-at.left+G.width,height:G.top-at.top+G.height}}get start(){const at=this.slotMap.first;return at?at.start:null}get end(){const at=this.slotMap.last;return at?at.end:null}get hasSlots(){return this.slotMap.count>0}get hasItems(){return this.itemMap.count>0}registerItem(at){this.itemMap.addItem(at.item.index,at)}unregisterItem(at,G){this.itemMap.removeItem(G.index,at)}registerSlot(at){this.slotMap.addItem(at.id.index,at)}unregisterSlot(at){this.slotMap.removeItem(at.id.index,at)}layout(at){const G=this.items;if(!G.length)return;const Ie=Math.max(Math.min(at.fill||.9,1),.1),gn=(0,Ii.Xo)(G,[{field:"item.startTime",dir:"asc"},{field:"item.endTime",dir:"desc"}]);G.forEach((zr,Lr)=>{zr.rect=null,zr.columnIndex=void 0});const Si={},zo=this.slots;gn.forEach(zr=>zo.filter(Lr=>pd(zr.item.startTime,zr.item.endTime,Lr.start,Lr.end)).forEach(Lr=>{const ws=Si[Lr.key]=Si[Lr.key]||{events:[]};ws.slot=Lr,ws.events.push(zr)}));const _r=Object.keys(Si);(function t_(Ee,at){let G=0,Ie=[];Ee.forEach(gn=>{const{slot:Si,events:zo}=at[gn],_r=zo.length;let zr=!0;zo.sort(Tm),G=Math.max(_r,G),Ie.push(Si);for(let Lr=0;Lr<_r;Lr++){const ws=zo[Lr];if(zr=zr&&ws.item.endTime.getTime()<=Si.end.getTime(),!Gi(ws.columnIndex)){ws.rect={top:Si.rect.top+eg(Si,ws.item.startTime)},ws.columnIndex=Lr,ws.lastColumn=!0;for(let $s=0,ya=-1;$s<Lr;$s++){const ua=zo[$s];if(ua.columnIndex>ya+1){ws.columnIndex=ya+1,ws.lastColumn=!1,zo.splice(Lr,1),zo.splice(ws.columnIndex,0,ws);break}if(!pd(ws.item.startTime,ws.item.endTime,ua.item.startTime,ua.item.endTime)&&!S_(ua.rect.top,ws.rect.top)){ws.columnIndex=$s,ws.lastColumn=!zo.some(Ja=>Ja.columnIndex&&$s<Ja.columnIndex&&pd(ws.item.startTime,ws.item.endTime,Ja.item.startTime,Ja.item.endTime)),zo.splice(Lr,1),zo.splice($s,0,ws);break}ya=ua.columnIndex,ua.lastColumn=!1}}}zr&&(Ie.forEach(Lr=>Lr.columns=G),Ie=[],G=0)}),Ie.forEach(gn=>gn.columns=G)})(_r,Si),_r.forEach(zr=>{const{slot:Lr,events:ws}=Si[zr],ua=Lr.rect,Ja=ua.left,jl=Lr.columns,zd=ua.width*Ie-2*(jl-1)-2,md=Ja+2,Xu=zd/jl,Lh=md+zd+2*(jl-1);ws.forEach(qu=>{Gi(qu.rect.left)||(qu.rect.left=md+qu.columnIndex*(Xu+2),qu.rect.width=qu.lastColumn?Lh-qu.rect.left:Xu,qu.origin={left:Ja,right:Ja+ua.width});const lf=Lr.end.getTime()<=qu.item.endTime.getTime()?ua.height:eg(Lr,qu.item.endTime);qu.rect.height=ua.top+lf-qu.rect.top})}),gn.forEach(zr=>zr.reflow())}initDaySlots(at,G){const Ie=this.slots;if(!Ie.length)return;const{height:gn,slotItems:Si}=zm(Ie,this.items,at,G,Ou);this.setSlotsHeight(gn),this.slotItems=Si}setDayOffsets(){!this.itemMap.count||!this.slotItems||(Dd(this.slotItems,this.items),this.slotItems=null)}setSlotsHeight(at){this.firstSlot.height=at}}class Ph{constructor(at){this.index=at,this.dayRanges=[],this.timeRanges=[]}registerSlot(at){this.slotRange(at).registerSlot(at)}unregisterSlot(at){const G=this.slotRange(at);G.unregisterSlot(at),G.hasSlots||delete this.slotRanges(at)[at.id.rangeIndex]}registerItem(at){const G=this.itemRange(at);G?(G.registerItem(at),at.rangeIndex=G.index):(at.rangeIndex=void 0,at.toggle(!1))}unregisterItem(at,G){if(void 0!==at.rangeIndex){const Ie=at.item.isAllDay?this.dayRanges:this.timeRanges;Ie[G.rangeIndex]&&Ie[G.rangeIndex].unregisterItem(at,G),at.rangeIndex=void 0}}forEachDateRange(at){for(let G=0;G<this.dayRanges.length;G++)at(this.dayRanges[G])}forEachTimeRange(at){for(let G=0;G<this.timeRanges.length;G++)at(this.timeRanges[G])}slotRange(at){const G=this.slotRanges(at),Ie=at.id.rangeIndex;return G[Ie]||(G[Ie]=new Oh(Ie)),G[Ie]}slotRanges(at){return at.isDaySlot?this.dayRanges:this.timeRanges}initTimeSlots(at,G,Ie){const gn=this.slots;if(!gn.length)return;const{height:Si,slotItems:zo}=zm(gn,this.items,at,G,Tp);this.setSlotsHeight(Math.max(Si,Ie)),this.slotItems=zo}setTimelineOffsets(){const at=this.items;!this.slotItems||!at.length||(Dd(this.slotItems,at,!0),this.slotItems=null)}setSlotsHeight(at){this.timeRanges[0].setSlotsHeight(at)}get items(){return this.timeRanges.reduce((at,G)=>at.concat(G.items),[])}get slots(){return this.timeRanges.reduce((at,G)=>at.concat(G.slots),[])}get hasSlots(){return!(!this.dayRanges.find(at=>at&&at.hasSlots)&&!this.timeRanges.find(at=>at&&at.hasSlots))}cleanRanges(){this.dayRanges=this.dayRanges.filter(at=>!!at),this.timeRanges=this.timeRanges.filter(at=>!!at)}itemRange(at){const G=at.item,Ie=G.isAllDay?this.dayRanges:this.timeRanges;return Gi(G.rangeIndex)?Ie[G.rangeIndex]:Ie.find(gn=>pd(G.startTime,G.endTime,gn.start,gn.end))}}class bd extends Cp{layoutDays(at=25){this.groups.forEach(Ie=>Ie.forEachDateRange(gn=>gn?.slots.forEach(Si=>{Si.element.nativeElement.style.height=""})));const G=this.groups[0].dayRanges[0]?.slots[0].height;this.groups.forEach(Ie=>{Ie.forEachDateRange(gn=>gn.initDaySlots(G,at))}),this.groups.forEach(Ie=>{Ie.forEachDateRange(gn=>gn.setDayOffsets())})}layoutTimeline(at,G){this.groups.forEach(gn=>gn.forEachTimeRange(Si=>Si?.slots.forEach(zo=>{zo.element.nativeElement.style.height=""})));const Ie=this.groups[0].timeRanges[0]?.slots[0].height;this.groups.forEach((gn,Si)=>{gn.initTimeSlots(Ie,at,G&&G[Si]?G[Si].nativeElement.children[0]?.children[0].offsetHeight:0)}),this.groups.forEach(gn=>gn.setTimelineOffsets())}layoutTimes(at){this.groups.forEach(G=>G.forEachTimeRange(Ie=>Ie.layout(at)))}forEachDateRange(at){this.groups.forEach((G,Ie)=>{at(G.dayRanges[0],Ie)})}syncDateRanges(){let at=0;return this.groups.forEach(G=>{const Ie=G.dayRanges[0]?.firstSlot;Ie&&(at=Math.max(Ie.rect.height-Ie.padding,at))}),this.groups.forEach(G=>{G.dayRanges[0]?.setSlotsHeight(at)}),at}forEachGroup(at){this.groups.forEach(at)}forEachSlot(at){this.groups.forEach(G=>{G.dayRanges.forEach(Ie=>{Ie?.slots.forEach(gn=>at(gn))}),G.timeRanges.forEach(Ie=>{Ie?.slots.forEach(gn=>at(gn))})})}createGroup(at){return new Ph(at)}slotByIndex(at,G=!1){const[Ie,gn,Si]=at.split(":").map(zo=>parseInt(zo,10));return this.groups[Ie][G?"dayRanges":"timeRanges"][gn]?.slots[Si]}slotByPosition(at,G,Ie,gn){let Si;if(Ie){if(this.groups.find(zo=>(Si=zo.dayRanges.find(_r=>au(_r.rect,at)),Si)),Si)return Si.slots.find(zo=>au(zo.rect,at))}else if(this.groups.find(zo=>(gn&&(Si=zo.dayRanges.find(_r=>ac(_r.rect,at,G))),Si||(Si=zo.timeRanges.find(_r=>ac(_r.rect,at,G))),Si)),Si)return Si.slots.find(zo=>ac(zo.rect,at,G))}groupSlotByPosition(at,G,Ie){const gn=this.groups[at.id.resourceIndex];let Si;if(Si=at.isDaySlot?gn.dayRanges.find(zo=>ac(zo.rect,G,Ie)):gn.timeRanges.find(zo=>ac(zo.rect,G,Ie)),Si)return Si.slots.find(zo=>ac(zo.rect,G,Ie))}dragRanges(at,G,Ie){const gn=new Date(at.start.getTime()-G.start),Si=new Date(at.start.getTime()+G.end),zo=this.groups[at.id.resourceIndex];let _r;if(Ie){const zr=[];zo.timeRanges.forEach(ws=>{const $s=ws?.slots.filter(ya=>pd(gn,Si,ya.start,ya.end));$s.length&&zr.push($s)});const Lr=zr[zr.length-1];_r=[zr[0][0],Lr[Lr.length-1]]}else _r=zo.slotRange(at)?.slots.filter(zr=>pd(gn,Si,zr.start,zr.end));return{start:gn,end:Si,ranges:[_r]}}resizeRanges(at,G,Ie,gn){const Si=this.groups[at.id.resourceIndex],zo=G.isAllDay?Si.dayRanges:Si.timeRanges,_r=[],zr=G.start.toUTCDate(),Lr=G.end.toUTCDate();let ws,$s;if(Ie){const ya=at.start.getTime()+gn.start;$s=zr.getTime()===Lr.getTime()?this.findDateSlot(Lr,zo,!0).end:Lr,ws=ya>=Lr.getTime()?G.isAllDay?new Date(Math.min(eu(Lr,zr).getTime(),Lr.getTime())):this.findDateSlot($s,zo).start:gn.start&&G.isAllDay?new Date(ya):new Date(at.start.getTime())}else ws=zr,$s=at.start.getTime()<=ws.getTime()?G.isAllDay?new Date(Math.max(eu(zr,Lr).getTime(),zr.getTime())):this.findDateSlot(ws,zo,!0).end:gn.end&&G.isAllDay?new Date(at.start.getTime()+gn.end):at.end;return zo.forEach(ya=>{const ua=ya.slots.filter(Ja=>pd(ws,$s,Ja.start,Ja.end));ua.length&&_r.push(ua)}),{start:ws,end:$s,ranges:_r}}timePosition(at,G,Ie){const Si=this.groups[G].timeRanges.find(_r=>su(at,_r.start,_r.end));if(!Si)return;const zo=Si.slots.find(_r=>su(at,_r.start,_r.end));if(zo){const _r=(Ie?zo.height:zo.width)*((at.getTime()-zo.start.getTime())/(zo.end.getTime()-zo.start.getTime()));return Ie?zo.rect.top+_r:zo.rect.left+_r}}findDateSlot(at,G,Ie){let gn;return G.forEach(Si=>{const zo=Si.slots.filter(Ie?_r=>pd(at,at,_r.start,_r.end):_r=>su(at,_r.start,_r.end));zo.length&&(gn=zo[0])}),gn}}const uh=({start:Ee,end:at})=>{const G=Ee.stripTime(),Ie=at.stripTime();return G.getTime()!==Ie.getTime()&&(Ie.getTime()!==at.getTime()||G.addDays(1).getTime()!==Ie.getTime())};let Kf=(()=>{class Ee extends Tu{constructor(G,Ie,gn,Si,zo,_r,zr){super(Ie,gn,Si,zo,_r,zr),this.intlService=G,this.localeId=zr,this.caretAltLeftIcon=xo.Me8,this.caretAltRightIcon=xo.bI8,this.caretAltUpIcon=xo.fRI,this.caretAltDownIcon=xo.M7i,this.arrowRotateCwIcon=xo.pB,this.arrowsNoRepeatIcon=xo.Mbe,this.xIcon=xo.FZE}get eventTime(){return this.intlService.format("{0:t}\u2013{1:t}",U(this.item.startTime),U(this.item.endTime))}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(Eo.aJ),n.Y36(bd),n.Y36(o.oQ),n.Y36(pu),n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(n.soG))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["","dayTimeViewItem",""]],inputs:{vertical:"vertical",isAllDay:"isAllDay"},features:[n.qOj],attrs:Ps,decls:13,vars:11,consts:[[1,"k-event-actions"],[3,"name","svgIcon",4,"ngIf"],["name","arrow-rotate-cw",3,"svgIcon",4,"ngIf"],["name","arrows-no-repeat",3,"svgIcon",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],["class","k-link k-event-delete","aria-hidden","true",4,"ngIf"],["class","k-event-top-actions",4,"ngIf"],["class","k-event-bottom-actions",4,"ngIf"],[3,"name","svgIcon"],["name","arrow-rotate-cw",3,"svgIcon"],["name","arrows-no-repeat",3,"svgIcon"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","k-event-template k-event-time",4,"ngIf"],["aria-hidden","true",1,"k-event-template"],[1,"k-event-template","k-event-time"],["aria-hidden","true",1,"k-link","k-event-delete"],["name","x",3,"svgIcon"],[1,"k-event-top-actions"],["name","caret-alt-up",3,"svgIcon"],[1,"k-event-bottom-actions"],["name","caret-alt-down",3,"svgIcon"],["class","k-resize-handle k-resize-n",4,"ngIf"],["class","k-resize-handle k-resize-s",4,"ngIf"],[1,"k-resize-handle","k-resize-n"],[1,"k-resize-handle","k-resize-s"],[1,"k-resize-handle","k-resize-w"],[1,"k-resize-handle","k-resize-e"]],template:function(G,Ie){1&G&&(n.TgZ(0,"span",0),n.YNc(1,Qi,1,2,"kendo-icon-wrapper",1),n.YNc(2,vo,1,1,"kendo-icon-wrapper",2),n.YNc(3,pi,1,1,"kendo-icon-wrapper",3),n.qZA(),n.YNc(4,to,1,6,"ng-container",4),n.YNc(5,Sr,4,3,"div",5),n.TgZ(6,"span",0),n.YNc(7,rs,2,2,"span",6),n.YNc(8,Os,1,2,"kendo-icon-wrapper",1),n.qZA(),n.YNc(9,Ys,2,1,"span",7),n.YNc(10,la,2,1,"span",8),n.YNc(11,nl,3,2,"ng-container",5),n.YNc(12,il,3,0,"ng-container",5)),2&G&&(n.xp6(1),n.Q6J("ngIf",Ie.item.tail&&!Ie.vertical),n.xp6(1),n.Q6J("ngIf",Ie.isRecurrence),n.xp6(1),n.Q6J("ngIf",Ie.isRecurrenceException),n.xp6(1),n.Q6J("ngIf",Ie.eventTemplate),n.xp6(1),n.Q6J("ngIf",!Ie.eventTemplate),n.xp6(2),n.Q6J("ngIf",Ie.removable),n.xp6(1),n.Q6J("ngIf",Ie.item.head&&!Ie.vertical),n.xp6(1),n.Q6J("ngIf",Ie.item.tail&&Ie.vertical),n.xp6(1),n.Q6J("ngIf",Ie.item.head&&Ie.vertical),n.xp6(1),n.Q6J("ngIf",Ie.resizable&&Ie.vertical),n.xp6(1),n.Q6J("ngIf",Ie.resizable&&!Ie.vertical))},dependencies:[yo.ZS,Xt.O5,Xt.tP],encapsulation:2}),Ee})();const Um=Ee=>(0,l._)(Ee),cm=(Ee,at)=>(0,l._)((0,q.E)(Ee,at||1)),fc=(Ee,at,G)=>(0,l._)((0,q.E)(Ee,G*at));let Gm=(()=>{class Ee extends e_{constructor(G,Ie,gn,Si,zo,_r,zr,Lr,ws,$s,ya){super(Ie,gn,Si,zo,_r,zr,Lr,ws,$s,G,ya),this.changeDetector=G,this.numberOfDays=1,this.startTime="00:00",this.endTime="00:00",this.workDayStart="08:00",this.workDayEnd="17:00",this.workWeekStart=1,this.workWeekEnd=5,this.slotDuration=60,this.slotDivisions=2,this.showWorkHours=!1,this.getStartDate=Um,this.getEndDate=cm,this.getNextDate=fc,this.daySlots=[],this.timeSlots=[],this.resizeHintFormat="t",this.showCurrentTime=!1,this.verticalTime=!0,this.initialUpdate=!0,this.updateCurrentTime=this.updateCurrentTime.bind(this),this.toggleOngoingClass=this.toggleOngoingClass.bind(this),this.updateOngoingEvents=this.updateOngoingEvents.bind(this)}get classNames(){return`k-scheduler-${this.name}view`}get timeSlotTemplateRef(){return this.timeSlotTemplate||(this.schedulerTimeSlotTemplate||{}).templateRef}get dateHeaderTemplateRef(){return this.dateHeaderTemplate||(this.schedulerDateHeaderTemplate||{}).templateRef}ngOnChanges(G){(G.startTime||G.endTime||G.showWorkHours||G.workDayStart||G.workDayEnd||G.workWeekStart||G.workWeekEnd||G.slotDivisions||G.slotDuration)&&(this.timeSlots=this.createTimeSlots(),this.initWorkDay(),this.changes.next(null)),(0,a.ln)("currentTimeMarker",G)&&(this.showCurrentTime=this.enableCurrentTime()),(0,a.ln)("weekStart",G)&&this.onSelectDate(this.selectedDate),super.ngOnChanges(G)}ngOnDestroy(){super.ngOnDestroy(),clearTimeout(this.currentTimeTimeout),clearTimeout(this.ongoingEventsTimeout)}verticalItem(G,Ie){const gn=this.verticalResources[Ie].data||[],Si=this.verticalResources;let zo=1;for(let _r=Ie+1;_r<Si.length;_r++)zo*=(Si[_r].data||[]).length||1;return gn[G/zo%gn.length]}timeSlotClass(G,Ie,gn){if(this.slotClass)return this.slotClass({start:eu(Ie,G.start),end:eu(Ie,G.end),resources:this.resourcesByIndex(gn),isAllDay:!1})}toggleOngoingClass(){const G=this.currentTime(),Ie=Sl(this.highlightOngoingEvents.cssClass)?this.highlightOngoingEvents.cssClass:Rm;this.eventElements.forEach(gn=>{const Si=su(G,gn.item.start,gn.item.end);this.renderer[Si?"addClass":"removeClass"](gn.nativeElement,Ie)})}scrollToTime(G=this.scrollTime){let Ie;if("string"==typeof G){const Si=this.intl.parseDate(G);if(!Si)return;Ie=Ih(this.daySlots[0].start,Si)}else Ie=If(G);const gn=this.slotService.timePosition(Ie,0,this.verticalTime);if(Gi(gn)){const Si=this.content.nativeElement;Si[this.verticalTime?"scrollTop":"scrollLeft"]=this.localization.rtl&&!this.verticalTime?function gf(Ee,at){const G=Ee.scrollLeft;let Ie=at;return Ee.scrollLeft=-1,Ee.scrollLeft<0?Ie=-at:G>0&&(Ie=Ee.scrollWidth-Ee.offsetWidth-at),Ie}(Si,gn):gn}}optionsChange(G){this.schedulerTimeSlotTemplate=G.timeSlotTemplate,this.schedulerDateHeaderTemplate=G.dateHeaderTemplate,super.optionsChange(G)}updateView(){super.updateView(),this.updateCurrentTime(),this.updateOngoingEvents(),this.initialUpdate&&(this.scrollToTime(),this.initialUpdate=!1)}enableCurrentTime(){if(!this.currentTimeMarker||!1===this.currentTimeMarker.enabled||!this.selectedDate)return!1;const G=this.dateRange();this.currentDate=H.fromLocalDate(this.currentTime(),!1!==this.currentTimeMarker.localTimezone?"":this.timezone);const Ie=this.currentDate.toLocalDate(),gn=$u(Ie),Si=this.timeSlots,zo=su(Ie,G.start,G.end),_r=Si.length&&su(gn,Si[0].start,Si[Si.length-1].end);return zo&&_r}currentTime(){return new Date}updateCurrentTime(){if(!(0,a.X_)())return;const G=this.enableCurrentTime();G!==this.showCurrentTime&&(this.showCurrentTime=G,this.changeDetector.detectChanges()),clearTimeout(this.currentTimeTimeout),G&&(this.zone.runOutsideAngular(()=>{this.currentTimeTimeout=setTimeout(this.updateCurrentTime,this.currentTimeMarker.updateInterval||sf)}),this.positionCurrentTime())}updateOngoingEvents(){const G=!this.highlightOngoingEvents||!1===this.highlightOngoingEvents.enabled;!(0,a.X_)()||G||(clearTimeout(this.ongoingEventsTimeout),this.zone.runOutsideAngular(()=>{this.ongoingEventsTimeout=setTimeout(this.updateOngoingEvents,this.highlightOngoingEvents.updateInterval||sf)}),this.toggleOngoingClass())}positionCurrentTime(){if(this.currentTimeElements&&this.currentTimeElements.length){const G=this.currentDate.toUTCDate(),Ie=this.currentTimeArrows?this.currentTimeArrows.toArray():[],gn=Ie.length?this.currentTimeArrowOffset():0,Si=Ie.length?Ie[0].nativeElement.offsetHeight/2:4,zo=this.contentTable.nativeElement.clientWidth,_r=this.contentTable.nativeElement.clientHeight,zr=this.verticalTime;this.currentTimeElements.forEach((Lr,ws)=>{const $s=this.slotService.timePosition(G,ws,zr);if(void 0!==$s){const ya=Lr.nativeElement;if(Ie[ws]){const jl=zr?gn:$s-Si;Np(Ie[ws].nativeElement,{top:zr?$s-Si:gn,left:jl,right:jl})}const ua=zr?0:$s;Np(ya,{top:zr?$s:0,left:ua,right:ua,width:zr?zo:1,height:zr?1:_r})}})}}bindEvents(){super.bindEvents(),this.zone.runOutsideAngular(()=>{this.subs.add(Vh(this.headerWrap.nativeElement).subscribe(G=>this.onHeaderClick(G))),this.subs.add((0,sn.R)(this.headerWrap.nativeElement,"contextmenu").subscribe(G=>this.onClick(G))),this.subs.add(Ju(this.headerWrap.nativeElement).subscribe(G=>this.onClick(G,"dblclick")))})}onHeaderClick(G){if(this.onClick(G),this.daySlots.length<=1)return;const Ie=G.target.getAttribute("data-dayslot-index");if(Ie){const gn=this.daySlots[parseInt(Ie,10)];this.zone.run(()=>{this.viewState.navigateTo({viewName:"day",date:gn.start})})}}slotByIndex(G,Ie){return this.slotService.slotByIndex(G,Ie.target.hasAttribute("data-day-slot"))}onSelectDate(G){this.selectedDate=G,this.daySlots=this.createDaySlots(),this.showCurrentTime=this.enableCurrentTime(),this.viewState.notifyDateRange(this.dateRange())}onAction(G){const Ie=(0,l._)(this.selectedDate);if("next"===G.type){const gn=this.getNextDate(Ie,1,this.numberOfDays);this.isInRange(gn)&&this.viewState.notifyNextDate(gn)}if("prev"===G.type){const gn=this.getNextDate(Ie,-1,this.numberOfDays);this.isInRange(gn)&&this.viewState.notifyNextDate(gn)}"scroll-time"===G.type&&this.scrollToTime(G.time)}dateRange(G=this.selectedDate){const Ie=this.getStartDate(G),gn=this.getEndDate(Ie,this.numberOfDays),Si=this.getEndDate(Ie,this.numberOfDays-1);return{start:Ie,end:gn,text:this.intl.format(this.selectedDateFormat,Ie,Si),shortText:this.intl.format(this.selectedShortDateFormat,Ie,Si)}}createDaySlots(){let G=this.getStartDate(this.selectedDate);const Ie=this.getEndDate(G,this.numberOfDays),gn=[];for(;G<Ie;){const Si=(0,q.E)(G,1);gn.push({start:G,end:Si}),G=Si}return gn}createTimeSlots(){return function ol(Ee,{showWorkHours:at,startTime:G,endTime:Ie,workDayStart:gn,workDayEnd:Si,slotDivisions:zo,slotDuration:_r}){const Lr=$u(Ee.parseDate(at?gn:G)).getTime();let $s=$u(Ee.parseDate(at?Si:Ie)).getTime();$s<=Lr&&($s=$u(xp).getTime()+_.Mb);const ya=[],ua=Math.round(_r/zo*sf);let Ja=Lr,jl=0;for(;Ja<$s;)ya.push({start:new Date(Ja),end:new Date(Ja+ua),isMajor:jl%zo==0}),jl++,Ja+=ua;return ya}(this.intl,{showWorkHours:this.showWorkHours,startTime:this.startTime,endTime:this.endTime,workDayStart:this.workDayStart,workDayEnd:this.workDayEnd,slotDivisions:this.slotDivisions,slotDuration:this.slotDuration})}initWorkDay(){const G=this.intl.parseDate(this.workDayStart);this.workDayStartTime=$u(G);const Ie=this.intl.parseDate(this.workDayEnd);this.workDayEndTime=Ie<=G?(0,q.E)(xp,1):$u(Ie)}slotByPosition(G,Ie,gn){const Si=gn?ru(gn.parentNode,"k-scheduler-header-wrap"):Ie<0;return this.slotService.slotByPosition(G,Ie,Si,!!this.verticalResources.length)}slotFields(G){const Ie=super.slotFields(G);return G.isDaySlot?Ie.isAllDay=!0:(Ie.start=this.convertDate(G.start),Ie.end=this.convertDate(G.end)),Ie}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.sBO),n.Y36(Ad),n.Y36(uc),n.Y36(Eo.aJ),n.Y36(bd),n.Y36(n.R0b),n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(Wh),n.Y36(o.oQ),n.Y36(a.GK))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["kendo-day-time-view"]],viewQuery:function(G,Ie){if(1&G&&(n.Gf(xl,5),n.Gf(Kf,5),n.Gf(eo,5)),2&G){let gn;n.iGM(gn=n.CRH())&&(Ie.currentTimeElements=gn),n.iGM(gn=n.CRH())&&(Ie.eventElements=gn),n.iGM(gn=n.CRH())&&(Ie.currentTimeArrows=gn)}},inputs:{timeSlotTemplate:"timeSlotTemplate",dateHeaderTemplate:"dateHeaderTemplate",numberOfDays:"numberOfDays",scrollTime:"scrollTime",startTime:"startTime",endTime:"endTime",workDayStart:"workDayStart",workDayEnd:"workDayEnd",workWeekStart:"workWeekStart",workWeekEnd:"workWeekEnd",slotDuration:"slotDuration",slotDivisions:"slotDivisions",showWorkHours:"showWorkHours",getStartDate:"getStartDate",getEndDate:"getEndDate",getNextDate:"getNextDate",currentTimeMarker:"currentTimeMarker",highlightOngoingEvents:"highlightOngoingEvents"},features:[n.qOj,n.TTD],decls:0,vars:0,template:function(G,Ie){},encapsulation:2}),Ee})(),Rh=(()=>{class Ee extends Rg{constructor(G,Ie,gn){super(G,Ie,gn),this.isDaySlot=!1}get nonWorkHour(){const G=this.date.getDay();return this.invariantStart<this.workDayStart||this.workDayEnd<this.invariantEnd||!((Ee,at,G)=>G<at?Ee<=G||at<=Ee:at<=Ee&&Ee<=G)(G,this.workWeekStart,this.workWeekEnd)}get startLocalTime(){return this.date&&this.invariantStart?eu(this.date,this.invariantStart):null}get endLocalTime(){return this.date&&this.invariantEnd?eu(this.date,this.invariantEnd):null}get start(){return this.date&&this.invariantStart?Ih(this.date,this.invariantStart):null}get end(){if(!this.date||!this.invariantEnd)return null;const G=Ih(this.date,this.invariantEnd);return om.getTime()<=this.invariantEnd.getTime()?jh(G,1):G}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.SBq),n.Y36(bd),n.Y36(o.oQ))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","timeSlot",""]],hostVars:2,hostBindings:function(G,Ie){2&G&&n.ekj("k-nonwork-hour",Ie.nonWorkHour)},inputs:{invariantStart:"invariantStart",invariantEnd:"invariantEnd",workDayStart:"workDayStart",workDayEnd:"workDayEnd",workWeekStart:"workWeekStart",workWeekEnd:"workWeekEnd",date:"date"},exportAs:["timeSlot"],features:[n.qOj]}),Ee})(),hh=(()=>{class Ee extends Rg{constructor(G,Ie,gn){super(G,Ie,gn),this.isDaySlot=!0}set start(G){this.startDate=G}get start(){return this.startDate?Pd(this.startDate):null}set end(G){this.endDate=G}get end(){return this.endDate?Pd(this.endDate):null}get daySlot(){return!0}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(n.SBq),n.Y36(bd),n.Y36(o.oQ))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["","daySlot",""]],hostVars:1,hostBindings:function(G,Ie){2&G&&n.uIk("data-day-slot",Ie.daySlot)},inputs:{start:"start",end:"end"},features:[n.qOj]}),Ee})(),Dp=(()=>{class Ee extends Gm{constructor(G,Ie,gn,Si,zo,_r,zr,Lr,ws,$s,ya){super(ws,Ie,gn,Si,zo,_r,zr,Lr,$s,G,ya),this.name="day",this.dateFormat={skeleton:"MEd"},this.allDayResizeHintFormat={skeleton:"Md"},this.allDayItems=new dn.X(null)}get allDaySlotTemplateRef(){return this.allDaySlotTemplate||(this.schedulerAllDaySlotTemplate||{}).templateRef}get allDayEventTemplateRef(){return this.allDayEventTemplate||(this.schedulerAllDayEventTemplate||{}).templateRef}get minorTimeHeaderTemplateRef(){return this.minorTimeHeaderTemplate||(this.schedulerMinorTimeHeaderTemplate||{}).templateRef}get majorTimeHeaderTemplateRef(){return this.majorTimeHeaderTemplate||(this.schedulerMajorTimeHeaderTemplate||{}).templateRef}get allDayMessage(){return this.localization.get("allDay")}get allDayResizeHint(){return this.resizing&&this.resizing.task.isAllDay}get allDayDragHint(){return this.dragging&&this.dragging.slot.isDaySlot}optionsChange(G){this.schedulerAllDaySlotTemplate=G.allDaySlotTemplate,this.schedulerAllDayEventTemplate=G.allDayEventTemplate,this.schedulerMinorTimeHeaderTemplate=G.minorTimeHeaderTemplate,this.schedulerMajorTimeHeaderTemplate=G.majorTimeHeaderTemplate,super.optionsChange(G)}ngOnChanges(G){super.ngOnChanges(G),G.slotFill&&this.changes.next(null),(0,a.aG)(["startTime","endTime","showWorkHours","workDayStart","workDayEnd","workWeekStart","workWeekEnd"],G)&&this.viewRangeChange.next(null),((0,a.ln)("numberOfDays",G,!0)||(0,a.ln)("weekStart",G))&&(this.daySlots=this.createDaySlots(),this.viewState.notifyDateRange(this.dateRange()))}horizontalColspan(G){const Ie=this.horizontalResources;let gn=this.daySlots.length;for(let Si=G+1;Si<Ie.length;Si++)gn*=(Ie[Si].data||[]).length||1;return gn}verticalRowspan(G){const Ie=this.verticalResources;let gn=this.timeSlots.length+1;for(let Si=G+1;Si<Ie.length;Si++)gn*=(Ie[Si].data||[]).length||1;return gn}allDaySlotClass(G,Ie){if(this.slotClass)return this.slotClass({start:G.start,end:G.end,resources:this.resourcesByIndex(Ie),isAllDay:!0})}createTasks(G,Ie){const gn=this.timeSlots[0],Si=this.timeSlots[this.timeSlots.length-1].end,zo=!(Si.getHours()||Si.getMinutes()),_r=this.daySlots.map(zr=>({start:Ih(zr.start,gn.start),end:zo?Pd(zr.end):Ih(zr.start,Si)}));return((Ee,at,G,Ie)=>{const gn=[],Si=Pd(Ee),zo=Pd(at);for(let _r=0;_r<G.length;_r++){const zr=G[_r],Lr=uh(zr),ws=Lr&&!zr.event.isAllDay&&zr.end.getTime()-zr.start.getTime()<_.Mb,$s=zr.event.isAllDay||Lr&&!ws,ya=($s?kf(zr):zr.end).toUTCDate(),ua=($s?zr.start.stripTime():zr.start).toUTCDate();for(let Ja=0;Ja<Ie.length;Ja++)if(pd(ua,ya,Ie[Ja].start,Ie[Ja].end)){const md={index:_r,isAllDay:$s,startTime:ua,endTime:ya,rangeIndex:$s?0:Ja,start:zr.start,end:zr.end,event:zr.event};if(gn.push(md),!ws){md.head=zo<ya,md.tail=ua<Si;break}{const Xu=Ie[Ja+1],Lh=Ie[Ja-1];md.head=(Xu?Xu.start:zo)<ya,md.tail=ua<(Lh?Lh.end:Si)}}}return ou(gn)})(Ie.start,Ie.end,G,_r)}onTasksChange(){this.items.next(this.tasks.filter(G=>!G.isAllDay)),this.allDayItems.next(this.tasks.filter(G=>G.isAllDay))}reflow(){const G=this.slotService;if(this.verticalResources.length||(this.updateContentHeight(),this.syncTables()),this.slotService.containerSize=this.content.nativeElement.clientWidth,G.layoutDays(this.eventHeight),this.updateContentHeight(),this.syncTables(),this.dayCells.length){const Ie=this.dayCells.toArray();if(this.verticalResources.length)G.forEachDateRange((gn,Si)=>{const zo=gn.firstSlot;Ie[Si].nativeElement.style.height=zo.rect.height-zo.padding+"px"});else{const gn=G.syncDateRanges();Ie[0].nativeElement.style.height=`${gn}px`}}G.layoutTimes({fill:this.slotFill}),this.syncTables()}dragHorizontal(G){return G.isDaySlot}updateHintContainer(){this.headerHintContainer&&this.headerHintContainer.detectChanges(),super.updateHintContainer()}onRelease(G){super.onRelease(G),this.dragContainers=null}updateDragContainer(G){this.dragContainers||(this.dragContainers=this.containers);const Ie=this.dragContainers.find(gn=>{const Si=gn.offset;return Si.top<=G.pageY&&G.pageY<=Si.top+Si.height})||{};this.container=Ie.element,this.containerOffset=Ie.offset}containerByPosition({x:G,y:Ie}){return this.containers.find(gn=>{const Si=gn.offset;return Si.top<=Ie&&Ie<=Si.top+Si.height&&Si.left<=G&&G<=Si.left+Si.width})}get containers(){const G=this.headerWrap.nativeElement.children[1],Ie=this.content.nativeElement;return[{element:Ie,offset:Of(Ie)},{element:G,offset:Of(G)}]}scrollContainer(G,Ie){clearInterval(this.scrollInterval),this.container&&this.container===this.content.nativeElement&&super.scrollContainer(G,Ie)}dragRanges(G){const Ie=this.dragging.task;if(G.isDaySlot&&!Ie.isAllDay)return{ranges:[[G]],start:eu(G.start,Ie.start.toUTCDate()),end:eu(G.start,Ie.end.toUTCDate()),isAllDay:!0};const gn=Ie.isAllDay&&!G.isDaySlot,Si=this.slotService.dragRanges(G,gn?{start:0,end:0}:this.dragging.offset);return gn&&(Si.end=G.end),Si.isAllDay=this.draggedIsAllDay(Ie,G),Si}dragHintEventStyleArgs(){return{event:this.dragging.task.event,resources:this.dragging.resourceItems,isAllDay:!!this.allDayDragHint}}draggedIsAllDay(G,Ie){return!(!Ie.isDaySlot||!G.event.isAllDay&&uh(G))}dragHintSize(G,Ie){let gn,Si;return G.isDaySlot?(gn=wu(Ie.rect.left-G.rect.left+Ie.rect.width),Si=wu(G.height)):(gn=wu(.9*G.rect.width),Si=wu(this.dragging.task.isAllDay?G.rect.height:Ie.rect.top-G.rect.top+Ie.rect.height)),{width:gn,height:Si}}currentTimeArrowOffset(){if(this.verticalResources.length){const G=this.times.nativeElement.querySelector(".k-scheduler-times-all-day");return this.localization.rtl?this.times.nativeElement.offsetWidth-G.offsetWidth:G.offsetLeft}return 0}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(o.oQ),n.Y36(Ad),n.Y36(uc),n.Y36(Eo.aJ),n.Y36(bd),n.Y36(n.R0b),n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Wh),n.Y36(a.GK))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["multi-day-view"]],viewQuery:function(G,Ie){if(1&G&&(n.Gf(To,5),n.Gf(Qo,5)),2&G){let gn;n.iGM(gn=n.CRH())&&(Ie.headerHintContainer=gn.first),n.iGM(gn=n.CRH())&&(Ie.dayCells=gn)}},inputs:{name:"name",slotFill:"slotFill",allDaySlotTemplate:"allDaySlotTemplate",allDayEventTemplate:"allDayEventTemplate",minorTimeHeaderTemplate:"minorTimeHeaderTemplate",majorTimeHeaderTemplate:"majorTimeHeaderTemplate"},features:[n._Bn([bd]),n.qOj,n.TTD],decls:41,vars:31,consts:[["role","presentation",1,"k-scheduler-layout","k-scheduler-flex-layout",3,"ngClass"],[1,"k-scheduler-pane"],[1,"k-scheduler-times"],["timesHeader",""],["aria-hidden","true",1,"k-scheduler-table"],[4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],[1,"k-scheduler-header","k-state-default"],["header",""],[1,"k-scheduler-header-wrap"],["headerWrap",""],[3,"position",4,"ngIf"],["times",""],["timesTable",""],["role","group","tabindex","0",1,"k-scheduler-content","k-user-select-none"],["content",""],["role","presentation",1,"k-scheduler-table"],["contentTable",""],["hintContainer",""],[1,"k-scheduler-times-all-day"],["allDayCell",""],["class","k-slot-cell",4,"ngFor","ngForOf","ngForTrackBy"],[1,"k-slot-cell"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","k-link k-nav-day",4,"ngIf"],[1,"k-link","k-nav-day"],["aria-hidden","true",1,"k-scheduler-table","k-scheduler-header-all-day","k-user-select-none"],["headerHintContainer",""],["daySlot","",3,"start","end","id","k-selected","ngClass",4,"ngFor","ngForOf","ngForTrackBy"],["daySlot","",3,"start","end","id","ngClass"],["role","button","dayTimeViewItem","",3,"ngClass","ngStyle","kendoSchedulerFocusIndex","id","isAllDay","editable","eventTemplate","item","index","rangeIndex","resources","resourceIndex",4,"ngFor","ngForOf","ngForTrackBy"],["role","button","dayTimeViewItem","",3,"ngClass","ngStyle","kendoSchedulerFocusIndex","id","isAllDay","editable","eventTemplate","item","index","rangeIndex","resources","resourceIndex"],["class","k-event-drag-hint","dayTimeViewItem","",3,"isAllDay","ngStyle","ngClass","dragHint","eventTemplate","item","resources",4,"ngIf"],["kendoResizeHint","",3,"hint","ngClass","format",4,"ngIf"],["dayTimeViewItem","",1,"k-event-drag-hint",3,"isAllDay","ngStyle","ngClass","dragHint","eventTemplate","item","resources"],["kendoResizeHint","",3,"hint","ngClass","format"],["class","k-current-time k-current-time-arrow-right",4,"ngFor","ngForOf","ngForTrackBy"],[1,"k-current-time","k-current-time-arrow-right"],["currentTimeArrow",""],["class","k-slot-cell",4,"ngIf"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],["class","k-current-time",4,"ngFor","ngForOf","ngForTrackBy"],[1,"k-current-time"],["currentTimeMarker",""],["class","k-scheduler-header-all-day",4,"ngIf"],[3,"k-middle-row",4,"ngFor","ngForOf","ngForTrackBy"],[1,"k-scheduler-header-all-day"],["daySlot","",3,"start","end","k-selected","id",4,"ngFor","ngForOf","ngForTrackBy"],["daySlot","",3,"start","end","id"],["timeSlot","",3,"ngClass","date","invariantStart","invariantEnd","workDayStart","workDayEnd","workWeekStart","workWeekEnd","id","k-selected",4,"ngFor","ngForOf","ngForTrackBy"],["timeSlot","",3,"ngClass","date","invariantStart","invariantEnd","workDayStart","workDayEnd","workWeekStart","workWeekEnd","id"],["timeSlot","timeSlot"],["role","button","dayTimeViewItem","",3,"ngClass","ngStyle","kendoSchedulerFocusIndex","id","editable","vertical","eventTemplate","item","index","rangeIndex","resources","resourceIndex",4,"ngFor","ngForOf","ngForTrackBy"],["role","button","dayTimeViewItem","",3,"ngClass","ngStyle","kendoSchedulerFocusIndex","id","editable","vertical","eventTemplate","item","index","rangeIndex","resources","resourceIndex"],["class","k-event-drag-hint","role","button","dayTimeViewItem","",3,"isAllDay","ngStyle","ngClass","dragHint","eventTemplate","resources","item",4,"ngIf"],["role","button","dayTimeViewItem","",1,"k-event-drag-hint",3,"isAllDay","ngStyle","ngClass","dragHint","eventTemplate","resources","item"],["kendoResizeHint","",3,"hint","ngClass","format",4,"ngFor","ngForOf","ngForTrackBy"]],template:function(G,Ie){1&G&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2,3)(4,"table",4),n.YNc(5,Dr,2,0,"tr",5),n.TgZ(6,"tr"),n._UZ(7,"th"),n.qZA(),n.YNc(8,_s,4,1,"tr",6),n.qZA()(),n.TgZ(9,"div",7,8)(11,"div",9,10)(13,"table",4),n.YNc(14,wa,3,5,"tr",5),n.TgZ(15,"tr"),n.YNc(16,rl,2,2,"ng-container",5),n.ALo(17,"resourceIterator"),n.qZA()(),n.YNc(18,Do,10,10,"div",11),n.qZA()()(),n.TgZ(19,"div",1)(20,"div",2,12),n.YNc(22,Or,3,4,"ng-container",6),n.TgZ(23,"table",4,13),n.YNc(25,Mu,3,3,"ng-container",5),n.ALo(26,"resourceIterator"),n.qZA()(),n.TgZ(27,"div",14,15),n.ALo(29,"async"),n.YNc(30,cc,3,4,"ng-container",6),n.TgZ(31,"table",16,17),n.YNc(33,yu,3,3,"ng-container",5),n.ALo(34,"resourceIterator"),n.qZA(),n.YNc(35,nu,2,2,"ng-container",5),n.ALo(36,"async"),n.YNc(37,xd,3,4,"ng-container",6),n.TgZ(38,"kendo-hint-container",null,18),n.YNc(40,Jl,2,2,"ng-template"),n.qZA()()()()),2&G&&(n.Q6J("ngClass",Ie.classNames),n.xp6(5),n.Q6J("ngForOf",Ie.horizontalResources)("ngForTrackBy",Ie.itemIndex),n.xp6(2),n.Udp("height","auto"),n.xp6(1),n.Q6J("ngIf",!Ie.verticalResources.length),n.xp6(6),n.Q6J("ngForOf",Ie.horizontalResources)("ngForTrackBy",Ie.itemIndex),n.xp6(2),n.Q6J("ngForOf",n.lcZ(17,21,Ie.horizontalResources))("ngForTrackBy",Ie.itemIndex),n.xp6(2),n.Q6J("ngIf",!Ie.verticalResources.length),n.xp6(4),n.Q6J("ngIf",Ie.showCurrentTime),n.xp6(3),n.Q6J("ngForOf",n.lcZ(26,23,Ie.verticalResources))("ngForTrackBy",Ie.itemIndex),n.xp6(2),n.uIk("aria-owns",Ie.matchOwned(n.lcZ(29,25,Ie.items))),n.xp6(3),n.Q6J("ngIf",Ie.showCurrentTime),n.xp6(3),n.Q6J("ngForOf",n.lcZ(34,27,Ie.verticalResources))("ngForTrackBy",Ie.itemIndex),n.xp6(2),n.Q6J("ngForOf",n.lcZ(36,29,Ie.items))("ngForTrackBy",Ie.itemIndex),n.xp6(2),n.Q6J("ngIf",Ie.verticalResources.length))},dependencies:[Kf,Nm,am,Xt.mk,Xt.sg,Xt.O5,Xt.tP,hh,Xt.PC,ef,Rh,Hu,Eo.uU,Xt.Ov],encapsulation:2}),Ee})(),Et=(()=>{class Ee extends Bd{constructor(G,Ie,gn,Si){super(G,Ie,gn,Si),this.name="day",this._selectedDateFormat="{0:D}",this._selectedShortDateFormat="{0:d}"}get title(){return this.localization.get("dayViewTitle")}set selectedDateFormat(G){this._selectedDateFormat=G}get selectedDateFormat(){return this._selectedDateFormat}set selectedShortDateFormat(G){this._selectedShortDateFormat=G}get selectedShortDateFormat(){return this._selectedShortDateFormat}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(o.oQ),n.Y36(n.sBO),n.Y36(Ad),n.Y36(uc))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["kendo-scheduler-day-view"]],contentQueries:function(G,Ie,gn){if(1&G&&(n.Suo(gn,Sh,5),n.Suo(gn,Xh,5),n.Suo(gn,oh,5),n.Suo(gn,Eh,5)),2&G){let Si;n.iGM(Si=n.CRH())&&(Ie.allDaySlotTemplate=Si.first),n.iGM(Si=n.CRH())&&(Ie.allDayEventTemplate=Si.first),n.iGM(Si=n.CRH())&&(Ie.minorTimeHeaderTemplate=Si.first),n.iGM(Si=n.CRH())&&(Ie.majorTimeHeaderTemplate=Si.first)}},inputs:{selectedDateFormat:"selectedDateFormat",selectedShortDateFormat:"selectedShortDateFormat"},features:[n._Bn([{provide:Sd,useExisting:(0,n.Gpc)(()=>Ee)}]),n.qOj],decls:2,vars:0,consts:[["content",""],[3,"name","eventHeight","currentTimeMarker","highlightOngoingEvents","showWorkHours","scrollTime","startTime","endTime","workDayStart","workDayEnd","workWeekStart","workWeekEnd","slotDuration","slotDivisions","slotFill","slotClass","eventClass","eventStyles","allDaySlotTemplate","allDayEventTemplate","eventTemplate","groupHeaderTemplate","timeSlotTemplate","minorTimeHeaderTemplate","majorTimeHeaderTemplate","dateHeaderTemplate","selectedDateFormat","selectedShortDateFormat"],["viewFooter","","kendoWorkHoursFooter","",3,"showWorkHours","itemClick"]],template:function(G,Ie){1&G&&n.YNc(0,gd,2,29,"ng-template",null,0,n.W1O)},dependencies:[Dp,Pu,Yd],encapsulation:2,changeDetection:0}),Ee})(),Fe=(()=>{class Ee extends Bd{constructor(G,Ie,gn,Si,zo){super(Ie,gn,Si,zo),this.intl=G,this.selectedDateFormat="{0:D} - {1:D}",this.selectedShortDateFormat="{0:d} - {1:d}",this.name="week",this.getStartDate=this.getStartDate.bind(this)}get title(){return this.localization.get("weekViewTitle")}getStartDate(G){return ne((0,l._)(G),this.viewWeekStart)}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(Eo.aJ),n.Y36(o.oQ),n.Y36(n.sBO),n.Y36(Ad),n.Y36(uc))},Ee.\u0275cmp=n.Xpm({type:Ee,selectors:[["kendo-scheduler-week-view"]],contentQueries:function(G,Ie,gn){if(1&G&&(n.Suo(gn,Sh,5),n.Suo(gn,Xh,5),n.Suo(gn,oh,5),n.Suo(gn,Eh,5)),2&G){let Si;n.iGM(Si=n.CRH())&&(Ie.allDaySlotTemplate=Si.first),n.iGM(Si=n.CRH())&&(Ie.allDayEventTemplate=Si.first),n.iGM(Si=n.CRH())&&(Ie.minorTimeHeaderTemplate=Si.first),n.iGM(Si=n.CRH())&&(Ie.majorTimeHeaderTemplate=Si.first)}},inputs:{selectedDateFormat:"selectedDateFormat",selectedShortDateFormat:"selectedShortDateFormat"},features:[n._Bn([{provide:Sd,useExisting:(0,n.Gpc)(()=>Ee)}]),n.qOj],decls:2,vars:0,consts:[["content",""],[3,"name","numberOfDays","getStartDate","eventHeight","currentTimeMarker","highlightOngoingEvents","showWorkHours","scrollTime","startTime","endTime","workDayStart","workDayEnd","workWeekStart","workWeekEnd","weekStart","slotDuration","slotDivisions","slotFill","slotClass","eventClass","eventStyles","allDaySlotTemplate","allDayEventTemplate","eventTemplate","groupHeaderTemplate","timeSlotTemplate","minorTimeHeaderTemplate","majorTimeHeaderTemplate","dateHeaderTemplate","selectedDateFormat","selectedShortDateFormat"],["viewFooter","","kendoWorkHoursFooter","",3,"showWorkHours","itemClick"]],template:function(G,Ie){1&G&&n.YNc(0,gc,2,32,"ng-template",null,0,n.W1O)},dependencies:[Dp,Pu,Yd],encapsulation:2,changeDetection:0}),Ee})(),Jo=(()=>{class Ee{}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275mod=n.oAB({type:Ee}),Ee.\u0275inj=n.cJS({imports:[[Xt.ez,bp,Yf,yo.pc]]}),Ee})(),Es=(()=>{class Ee{}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275mod=n.oAB({type:Ee}),Ee.\u0275inj=n.cJS({imports:[[Yf,Jo]]}),Ee})(),Rl=(()=>{class Ee{}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275mod=n.oAB({type:Ee}),Ee.\u0275inj=n.cJS({imports:[[Jo,Yf]]}),Ee})();const um=Ee=>ru(Ee,"k-scheduler-content");let wf=(()=>{class Ee{constructor(G,Ie,gn,Si,zo,_r,zr){this.scheduler=G,this.domEvents=Ie,this.focusService=gn,this.zone=Si,this.changeDetector=zo,this.viewState=_r,this.dialogsService=zr,this.shortcuts=[{match:Lr=>Lr.keyCode===a.R8.KeyC&&Td(Lr),action:Lr=>{const ws=this.scheduler,$s=(new Date).getHours(),ya=ws.selectedDate,ua=new Date(ya.getFullYear(),ya.getMonth(),ya.getDate(),$s+1),Ja=new Date(ya.getFullYear(),ya.getMonth(),ya.getDate(),$s+2);let jl;if(ws.group){const Xu=Ol(ws.group||{},ws.resources||[]);Xu.length>0&&(jl=Xu[0].data[0])}ws.create.emit({start:H.fromLocalDate(ua,ws.timezone).toLocalDate(),end:H.fromLocalDate(Ja,ws.timezone).toLocalDate(),isAllDay:!1,resources:[jl],originalEvent:Lr,sender:ws})}},{match:Lr=>Lr.keyCode>=a.R8.Digit1&&Lr.keyCode<=a.R8.Digit9&&Eu(Lr,kc.AltKey),action:Lr=>{const ws=this.scheduler,$s=Lr.keyCode-a.R8.Digit0-1,ua=ws.views.toArray()[$s];ua&&this.zone.run(()=>{ws.onNavigationAction({type:"view-change",view:ua})||(this.changeDetector.markForCheck(),this.focusWait())})}},{match:Lr=>Lr.keyCode===a.R8.F10&&Td(Lr),action:Lr=>{this.zone.run(()=>{Lr.preventDefault(),this.scheduler.onNavigationAction({type:"focus-toolbar"}),this.focusWait()})}},{match:Lr=>Lr.keyCode===a.R8.KeyT&&Td(Lr),action:()=>{this.zone.run(()=>{this.scheduler.onNavigationAction({type:"today"}),this.focusWait()})}},{match:Lr=>Lr.keyCode===a.R8.KeyB&&Td(Lr),action:()=>{this.zone.run(()=>{this.scheduler.onNavigationAction({type:"toggle-business-hours"}),this.focusWait()})}},{match:Lr=>(Lr.keyCode===a.R8.ArrowLeft||Lr.keyCode===a.R8.ArrowRight)&&Eu(Lr,kc.ShiftKey),action:Lr=>{const ws=Lr.keyCode===a.R8.ArrowLeft?"prev":"next";this.zone.run(()=>{this.scheduler.onNavigationAction({type:ws}),this.focusWait()})}},{match:Lr=>(Lr.keyCode===a.R8.ArrowUp||Lr.keyCode===a.R8.ArrowLeft)&&Td(Lr)&&!um(Lr.target),action:Lr=>{if(!this.scheduler.onNavigationAction({type:"focus-prev"})){const $s=this.focusService.activeItem;"content"===$s.containerType&&$s.element.nativeElement.matches(":first-of-type")&&Lr.keyCode===a.R8.ArrowUp?this.focusService.focusToolbar():this.focusService.focusNext({offset:-1}),Lr.preventDefault()}}},{match:Lr=>(Lr.keyCode===a.R8.ArrowDown||Lr.keyCode===a.R8.ArrowRight)&&Td(Lr)&&!um(Lr.target),action:Lr=>{if(!this.scheduler.onNavigationAction({type:"focus-next"})){const ya=1;if(Lr.keyCode===a.R8.ArrowDown&&"toolbar"===this.focusService.activeItem.containerType){const Ja=Array.from(this.focusService.focusableItems).findIndex(jl=>"content"===jl.containerType);if(Ja>-1)return this.focusService.focusByIndex(Ja),void Lr.preventDefault()}this.focusService.focusNext({offset:ya}),Lr.preventDefault()}}}],this.taskShortcuts=[{match:Lr=>(Lr.keyCode===a.R8.Delete||Lr.keyCode===a.R8.Backspace)&&Td(Lr),action:(Lr,ws)=>{this.viewState.emitEvent("remove",{event:ws,dataItem:ws.dataItem}),Lr.preventDefault()}},{match:Lr=>Lr.keyCode===a.R8.Enter&&Td(Lr),action:(Lr,ws)=>{this.viewState.emitEvent("eventDblClick",{type:"dblclick",event:ws,originalEvent:Lr}),Lr.preventDefault()}}],this.subs=new fn.w0,this.subs.add(this.domEvents.keydown.subscribe(Lr=>this.onKeydown(Lr))),this.subs.add(this.scheduler.eventKeydown.subscribe(Lr=>this.onEventKeydown(Lr)))}onKeydown(G){const Ie=this.shortcuts.find(gn=>gn.match(G));Ie&&!this.dialogsService.isOpen&&Ie.action(G)}onEventKeydown(G){const Ie=this.taskShortcuts.find(gn=>gn.match(G.originalEvent));Ie&&!this.dialogsService.isOpen&&Ie.action(G.originalEvent,G.event)}focusWait(){this.viewState.layoutEnd.pipe((0,Ut.q)(1)).subscribe(()=>this.focusService.focus())}}return Ee.\u0275fac=function(G){return new(G||Ee)(n.Y36(zp),n.Y36(Uc),n.Y36(pu),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(uc),n.Y36(Od))},Ee.\u0275dir=n.lG2({type:Ee,selectors:[["kendo-scheduler"]]}),Ee})();const Xl=[Bn.Fq,En.qm,En.UP,ut.nf,mi.Su,En.Ln,En.oc,Ji.q2,Mi.UX,bp,un.r3,En.kx];let Yc=(()=>{class Ee{}return Ee.\u0275fac=function(G){return new(G||Ee)},Ee.\u0275mod=n.oAB({type:Ee}),Ee.\u0275inj=n.cJS({providers:[{provide:Eo.aJ,useClass:Eo.UB}],imports:[[Xt.ez,dg,xm,Es,a.uv,Hp,Rl,a.qG,...Xl],Hp,Es,Rl]}),Ee})()},70378:(he,y,i)=>{"use strict";i.d(y,{JH:()=>as,JU:()=>ot,VN:()=>wn,eJ:()=>jo,o9:()=>bo});var e=i(65879),n=i(9237),o=i(3201),a=i(58951),l=i(12624),u=i(48180),d=i(32181),s=i(59773),A=i(78645),_=i(47394),C=i(63019),R=i(92438),x=i(73942),f=i(96814),k=i(15735),w=i(60886);function g(ji,Fo){}function M(ji,Fo){if(1&ji&&(e.ynx(0),e.YNc(1,g,0,0,"ng-template",1),e.BQk()),2&ji){const rt=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",rt.template)}}function p(ji,Fo){}function E(ji,Fo){if(1&ji&&(e.ynx(0),e.YNc(1,p,0,0,"ng-template",1),e.BQk()),2&ji){const rt=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",rt.template)}}const b=["overflowButton"],I=["popupTemplate"],L=["resizeSensor"],D=["container"],F=["toolbarRenderer"],P=["overflowRenderer"];function O(ji,Fo){if(1&ji){const rt=e.EpF();e.ynx(0),e.TgZ(1,"kendo-toolbar-renderer",6,7),e.NdJ("rendererClick",function(Gn){e.CHM(rt);const Io=e.oxw();return e.KtG(Io.onRendererClick(Gn))}),e.qZA(),e.BQk()}if(2&ji){const rt=Fo.$implicit,ai=e.oxw();e.xp6(1),e.Q6J("location","toolbar")("resizable",ai.overflow)("tool",rt)}}function U(ji,Fo){if(1&ji){const rt=e.EpF();e.TgZ(0,"button",8,9),e.NdJ("click",function(){e.CHM(rt);const Gn=e.oxw();return e.KtG(Gn.showPopup())}),e.qZA()}if(2&ji){const rt=e.oxw();e.Udp("visibility","hidden")("position","relative")("margin-inline-start","auto"),e.Q6J("svgIcon",rt.moreVerticalIcon)("title",rt.moreToolsTitle)("id",rt.overflowBtnId)("ngClass",rt.overflowClass),e.uIk("aria-label",rt.moreToolsTitle)("aria-expanded",rt.popupOpen)}}function V(ji,Fo){if(1&ji){const rt=e.EpF();e.ynx(0),e.TgZ(1,"kendo-toolbar-renderer",6,11),e.NdJ("rendererClick",function(Gn){e.CHM(rt);const Io=e.oxw(2);return e.KtG(Io.onRendererClick(Gn))}),e.qZA(),e.BQk()}if(2&ji){const rt=Fo.$implicit,ai=e.oxw(2);e.xp6(1),e.Q6J("location","overflow")("resizable",ai.overflow)("tool",rt)}}function K(ji,Fo){if(1&ji&&(e.TgZ(0,"div",10),e.YNc(1,V,3,3,"ng-container",1),e.qZA()),2&ji){const rt=e.oxw();e.Q6J("id",rt.popupId),e.uIk("aria-labelledby",rt.overflowBtnId),e.xp6(1),e.Q6J("ngForOf",rt.allTools)}}function X(ji,Fo){1&ji&&e._UZ(0,"kendo-resize-sensor",null,12)}const me=["toolbarTemplate"],J=["toolbarButton"];function Q(ji,Fo){if(1&ji){const rt=e.EpF();e.TgZ(0,"button",2,3),e.NdJ("click",function(Gn){e.CHM(rt);const Io=e.oxw();return e.KtG(Io.click.emit(Gn))})("pointerdown",function(Gn){e.CHM(rt);const Io=e.oxw();return e.KtG(Io.pointerdown.emit(Gn))})("selectedChange",function(Gn){e.CHM(rt);const Io=e.oxw();return e.KtG(Io.selectedChangeHandler(Gn))})("blur",function(){e.CHM(rt);const Gn=e.oxw();return e.KtG(Gn.onBlur())}),e._uU(2),e.qZA()}if(2&ji){const rt=e.oxw();e.Tol(rt.toolbarButtonClass),e.Q6J("tabindex",rt.tabIndex)("ngStyle",rt.style)("ngClass",rt.className)("disabled",rt.disabled)("toggleable",rt.toggleable)("fillMode",rt.fillMode)("themeColor",rt.fillMode?rt.themeColor:null)("selected",rt.selected)("icon",rt.toolbarOptions.icon)("iconClass",rt.toolbarOptions.iconClass)("svgIcon",rt.toolbarOptions.svgIcon)("imageUrl",rt.toolbarOptions.imageUrl),e.uIk("title",rt.title),e.xp6(2),e.hij(" ",rt.toolbarOptions.text," ")}}function re(ji,Fo){if(1&ji&&e._UZ(0,"kendo-icon-wrapper",9),2&ji){const rt=e.oxw(2);e.Q6J("name",rt.overflowOptions.icon)("customFontClass",rt.overflowOptions.iconClass)("svgIcon",rt.overflowOptions.svgIcon)}}function de(ji,Fo){if(1&ji&&(e.TgZ(0,"span",10),e._uU(1),e.qZA()),2&ji){const rt=e.oxw(2);e.xp6(1),e.Oqu(rt.overflowOptions.text)}}function te(ji,Fo){if(1&ji){const rt=e.EpF();e.TgZ(0,"div",4,5),e.NdJ("click",function(Gn){e.CHM(rt);const Io=e.oxw();return e.KtG(Io.handleClick(Gn))}),e.TgZ(2,"span",6),e.YNc(3,re,1,3,"kendo-icon-wrapper",7),e.YNc(4,de,2,1,"span",8),e.qZA()()}if(2&ji){const rt=e.oxw();e.ekj("k-disabled",rt.disabled),e.Q6J("ngClass",rt.className)("ngStyle",rt.style),e.xp6(2),e.ekj("k-selected",rt.selected),e.xp6(1),e.Q6J("ngIf",rt.overflowOptions.icon||rt.overflowOptions.iconClass||rt.overflowOptions.svgIcon),e.xp6(1),e.Q6J("ngIf",rt.overflowOptions.text)}}const j=["toolbarButtonGroup"],H=["listItem"];function z(ji,Fo){if(1&ji){const rt=e.EpF();e.TgZ(0,"span",5),e.NdJ("click",function(Gn){const wr=e.CHM(rt).$implicit,bs=e.oxw(2);return wr.click.emit(Gn),e.KtG(bs.onButtonClick(Gn))})("pointerdown",function(Gn){const wr=e.CHM(rt).$implicit;return e.KtG(wr.pointerdown.emit(Gn))})("selectedChange",function(Gn){const wr=e.CHM(rt).$implicit,bs=e.oxw(2);return e.KtG(bs.selectedChangeHandler(Gn,wr))}),e._uU(1),e.qZA()}if(2&ji){const rt=Fo.$implicit;e.Q6J("ngStyle",rt.style)("ngClass",rt.className)("disabled",rt.disabled)("togglable",rt.togglable)("selected",rt.selected)("fillMode",rt.fillMode)("themeColor",rt.fillMode?rt.themeColor:null)("icon",rt.toolbarOptions.icon)("iconClass",rt.toolbarOptions.iconClass)("svgIcon",rt.toolbarOptions.svgIcon)("imageUrl",rt.toolbarOptions.imageUrl),e.uIk("title",rt.title)("aria-pressed",!!rt.selected),e.xp6(1),e.hij(" ",rt.toolbarOptions.text," ")}}function q(ji,Fo){if(1&ji){const rt=e.EpF();e.TgZ(0,"kendo-buttongroup",2,3),e.NdJ("navigate",function(Gn){e.CHM(rt);const Io=e.oxw();return e.KtG(Io.onNavigate(Gn))})("focus",function(){e.CHM(rt);const Gn=e.oxw();return e.KtG(Gn.onFocus())}),e.YNc(2,z,2,14,"span",4),e.qZA()}if(2&ji){const rt=e.oxw();e.Q6J("tabIndex",-1)("selection",rt.selection)("disabled",rt.disabled)("width",rt.width),e.xp6(2),e.Q6J("ngForOf",rt.buttonComponents)}}function se(ji,Fo){if(1&ji&&e._UZ(0,"kendo-icon-wrapper",12),2&ji){const rt=e.oxw().$implicit;e.Q6J("name",rt.overflowOptions.icon)("customFontClass",rt.overflowOptions.iconClass)("svgIcon",rt.overflowOptions.svgIcon)}}function ne(ji,Fo){if(1&ji&&(e.TgZ(0,"span",13),e._uU(1),e.qZA()),2&ji){const rt=e.oxw().$implicit;e.xp6(1),e.Oqu(rt.overflowOptions.text)}}function _e(ji,Fo){if(1&ji){const rt=e.EpF();e.ynx(0),e.TgZ(1,"div",7,8),e.NdJ("click",function(Gn){const wr=e.CHM(rt).$implicit,bs=e.oxw(2);return e.KtG(bs.handleClick(Gn,wr))}),e.TgZ(3,"span",9),e.YNc(4,se,1,3,"kendo-icon-wrapper",10),e.YNc(5,ne,2,1,"span",11),e.qZA()(),e.BQk()}if(2&ji){const rt=Fo.$implicit,ai=e.oxw(2);e.xp6(1),e.ekj("k-disabled",ai.disabled||rt.disabled),e.Q6J("ngStyle",rt.style)("ngClass",rt.className),e.xp6(2),e.ekj("k-selected",rt.selected),e.xp6(1),e.Q6J("ngIf",rt.overflowOptions.icon||rt.overflowOptions.iconClass||rt.overflowOptions.svgIcon),e.xp6(1),e.Q6J("ngIf",rt.overflowOptions.text)}}function ge(ji,Fo){if(1&ji&&e.YNc(0,_e,6,8,"ng-container",6),2&ji){const rt=e.oxw();e.Q6J("ngForOf",rt.buttonComponents)}}const xo={name:"@progress/kendo-angular-toolbar",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1694532961,version:"13.5.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};let Bn=(()=>{class ji{constructor(){this.onRefresh=new e.vpe}refresh(rt){this.onRefresh.emit(rt)}}return ji.\u0275fac=function(rt){return new(rt||ji)},ji.\u0275prov=e.Yz7({token:ji,factory:ji.\u0275fac}),ji})();const Xt=/^(?:a|input|select|textarea|button|object)$/i,Ki=(ji,Fo)=>{for(;ji&&!Fo(ji);)ji=ji.parentNode;return ji},oi=(ji,Fo,rt=!0)=>{if(ji){if(rt&&Fo(ji))return ji;for(ji=ji.firstChild;ji;){if(1===ji.nodeType){const ai=oi(ji,Fo);if(ai)return ai}ji=ji.nextSibling}}},It=(ji,Fo=!0)=>{if(ji.tagName){const rt=ji.tagName.toLowerCase();let Gn=null!==ji.getAttribute("tabIndex");return Xt.test(rt)&&(Gn=!ji.disabled),Gn&&(!Fo||(ji=>{const Fo=ji.getBoundingClientRect();return(Fo.width>0&&Fo.height>0||0!==Fo.x&&0!==Fo.y)&&"hidden"!==window.getComputedStyle(ji).visibility})(ji))}return!1},wt=(ji,Fo=!0,rt)=>{let ai=rt?ji.prevSibling:ji.nextSibling;for(;ai;){if(1===ai.nodeType){const Gn=oi(ai,Io=>It(Io,Fo));if(Gn)return Gn}ai=rt?ai.prevSibling:ai.nextSibling}},Mt=ji=>null!=ji,jn=(ji,Fo,rt)=>{switch(Fo){case"toolbar":return rt?void 0:ji;case"overflow":return rt?ji:void 0;default:return ji}},Pi={small:"sm",medium:"md",large:"lg"};let si=(()=>{class ji{constructor(rt){this.zone=rt,this.focused={renderedTool:null,index:-1},this.renderedTools=[],this.isPopupFocused=!1,this.isOverflowButtonFocused=!1}setRenderedTools(rt){this.renderedTools=[...rt]}click({context:rt,event:ai}){this.focused.renderedTool!==rt&&ai&&this.focus(rt,ai)}moveFocusToToolBar(){this.isPopupFocused=!1,this.focusOverflowButton()}moveFocusToPopup(){this.isPopupFocused=!0,this.blurOverflowButton(),this.focus()}focusNext(rt){if(this.isOverflowButtonFocused){const ai=this.getFocusableTools()[0];this.focus(ai,rt)}else if(!this.isOverflowButtonFocused&&this.focused.renderedTool&&!this.focused.renderedTool.tool.handleKey(rt)){const ai=this.getFocusableTools().slice(this.focused.index+1)[0];if(ai)this.focus(ai,rt);else if(this.isOverflowButtonVisible()&&!this.isPopupFocused)this.focusOverflowButton();else{const Gn=this.getFocusableTools()[0];this.focus(Gn,rt)}}}focusPrev(rt){if(this.isOverflowButtonFocused){const ai=this.getFocusableTools().reverse()[0];this.focus(ai,rt)}else if(!this.isOverflowButtonFocused&&this.focused.renderedTool&&!this.focused.renderedTool.tool.handleKey(rt)){const ai=this.getFocusableTools().slice(0,this.focused.index).reverse()[0];if(ai)this.focus(ai,rt);else if(this.isOverflowButtonVisible()&&!this.isPopupFocused)this.focusOverflowButton();else{const Gn=this.getFocusableTools().reverse()[0];this.focus(Gn,rt)}}}resetNavigation(){this.blurOverflowButton(),this.focused.renderedTool=null,this.focused.index=-1}focusFirst(rt){const ai=this.getFocusableTools()[0],Gn=this.overflowButton;ai?(this.focused.renderedTool=ai,this.focused.index=this.getFocusableTools().findIndex(Io=>Io===ai),this.focus(ai,rt)):Gn&&Gn.nativeElement.focus()}focusLast(rt){const ai=this.getFocusableTools().reverse()[0],Gn=this.overflowButton;ai?(this.focused.renderedTool=ai,this.focused.index=this.getFocusableTools().findIndex(Io=>Io===ai),this.focus(ai,rt)):Gn&&Gn.nativeElement.focus()}getFocusableTools(){return this.renderedTools.filter(rt=>rt.tool.overflows===this.isPopupFocused&&rt.tool.canFocus())}focus(rt,ai){this.zone.onStable.pipe((0,u.q)(1)).subscribe(()=>{if(rt)rt.tool.canFocus&&rt.tool.canFocus()&&(this.focused.renderedTool=rt,this.focused.index=this.getFocusableTools().findIndex(Gn=>Gn===rt),rt.tool.focus(ai),this.blurOverflowButton());else{const Gn=this.getFocusableTools(),Io=Gn.find(wr=>wr===this.focused.renderedTool)||Gn[0];Io&&(this.focused.renderedTool=Io,this.focused.index=this.getFocusableTools().findIndex(wr=>wr===Io),Io.tool.focus(ai))}})}blurOverflowButton(){this.overflowButton&&(this.isOverflowButtonFocused=!1,this.overflowButton.nativeElement.tabIndex=-1)}focusOverflowButton(){this.isOverflowButtonFocused=!0,this.overflowButton.nativeElement.tabIndex=0,this.overflowButton.nativeElement.focus()}isOverflowButtonVisible(){return Mt(this.overflowButton)&&"visible"===window.getComputedStyle(this.overflowButton.nativeElement).getPropertyValue("visibility")}}return ji.\u0275fac=function(rt){return new(rt||ji)(e.LFG(e.R0b))},ji.\u0275prov=e.Yz7({token:ji,factory:ji.\u0275fac}),ji})(),ot=(()=>{class ji{constructor(){this.tabIndex=-1,this.overflows=!0,this.responsive=!0}get toolbarDisplay(){return this.overflows?"none":"inline-block"}get overflowDisplay(){return this.overflows?"block":"none"}canFocus(){return!1}focus(rt){}handleKey(rt){return!1}}return ji.\u0275fac=function(rt){return new(rt||ji)},ji.\u0275cmp=e.Xpm({type:ji,selectors:[["toolbar-tool"]],inputs:{responsive:"responsive"},decls:0,vars:0,template:function(rt,ai){},encapsulation:2}),ji})();class pn{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}let _i=(()=>{class ji{getElement(){return this.element.nativeElement}querySelector(rt){return this.element.nativeElement.querySelector(rt)}querySelectorAll(rt){return this.element.nativeElement.querySelectorAll(rt)}findFocusable(){return((ji,Fo=!0)=>oi(this.element.nativeElement,rt=>It(rt,Fo)))(0,!1)}findFocusableChild(rt){return rt||(rt=this.findFocusable()),((ji,Fo=!0)=>oi(ji,rt=>It(rt,Fo),!1))(rt,!1)}findNextFocusableSibling(rt){return rt||(rt=this.findFocusable()),wt(rt,!1)}findPrevFocusableSibling(rt){return rt||(rt=this.findFocusable()),wt(rt,!1,!0)}setAttribute(rt,ai,Gn){this.renderer.setAttribute(rt,ai,Gn)}}return ji.\u0275fac=function(rt){return new(rt||ji)},ji.\u0275prov=e.Yz7({token:ji,factory:ji.\u0275fac}),ji})(),hi=(()=>{class ji{constructor(rt,ai,Gn,Io){this.element=rt,this.renderer=ai,this.rendererService=Gn,this.refreshService=Io,this.rendererClick=new e.vpe,this.hostClass=!0,this.rendererService.element=rt,this.rendererService.renderer=this,this.refreshSubscription=this.refreshService.onRefresh.subscribe(wr=>{this.tool===wr&&this.refresh()})}get spacerClass(){return"toolbar"===this.location&&this.isSpacer}get isSpacer(){return this.tool&&this.tool.__isSpacer}onClick(rt){this.rendererClick.emit({context:this,event:rt})}ngOnInit(){this.resizable?"toolbar"===this.location?(this.template=this.tool.toolbarTemplate,this.renderer.setStyle(this.element.nativeElement,"visibility","hidden"),this.renderer.setStyle(this.element.nativeElement,"display","none")):(this.template=this.tool.popupTemplate,this.renderer.setStyle(this.element.nativeElement,"display","none")):(this.tool.overflows=!1,this.template=this.tool.toolbarTemplate,this.renderer.setStyle(this.element.nativeElement,"visibility","visible"),this.renderer.setStyle(this.element.nativeElement,"display","inline-block"))}ngOnDestroy(){this.refreshSubscription.unsubscribe()}ngAfterViewInit(){this.resizable&&this.refresh()}get width(){return this.isSpacer?18:this.tool.overflows?0:function Ji(ji){let Fo=ji.offsetWidth;const rt=getComputedStyle(ji);return Fo+=parseFloat(rt.marginLeft)||0+parseFloat(rt.marginRight)||0,Fo}(this.element.nativeElement)}isDisplayed(){return"none"!==this.element.nativeElement.style.display}refresh(){this.resizable&&("toolbar"===this.location?(this.renderer.setStyle(this.element.nativeElement,"visibility",this.tool.visibility),this.renderer.setStyle(this.element.nativeElement,"display",this.tool.toolbarDisplay)):this.renderer.setStyle(this.element.nativeElement,"display",this.tool.overflowDisplay))}setAttribute(rt,ai,Gn){this.renderer.setAttribute(rt,ai,Gn)}}return ji.\u0275fac=function(rt){return new(rt||ji)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(_i),e.Y36(Bn))},ji.\u0275cmp=e.Xpm({type:ji,selectors:[["kendo-toolbar-renderer"]],hostVars:4,hostBindings:function(rt,ai){1&rt&&e.NdJ("click",function(Io){return ai.onClick(Io)}),2&rt&&e.ekj("k-spacer",ai.spacerClass)("k-toolbar-renderer",ai.hostClass)},inputs:{tool:"tool",location:"location",resizable:"resizable"},outputs:{rendererClick:"rendererClick"},exportAs:["kendoToolBarRenderer"],features:[e._Bn([_i])],decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(rt,ai){1&rt&&(e.YNc(0,M,2,1,"ng-container",0),e.YNc(1,E,2,1,"ng-container",0)),2&rt&&(e.Q6J("ngIf","toolbar"===ai.location),e.xp6(1),e.Q6J("ngIf","overflow"===ai.location&&ai.tool.responsive))},dependencies:[f.O5,f.tP],encapsulation:2}),ji})(),zn=(()=>{class ji extends a.Z1{}return ji.\u0275fac=function(){let Fo;return function(ai){return(Fo||(Fo=e.n5z(ji)))(ai||ji)}}(),ji.\u0275dir=e.lG2({type:ji,selectors:[["kendo-toolbar-messages-base"]],inputs:{moreToolsTitle:"moreToolsTitle"},features:[e.qOj]}),ji})(),Ei=(()=>{class ji extends zn{constructor(rt){super(),this.service=rt}}return ji.\u0275fac=function(rt){return new(rt||ji)(e.Y36(a.oQ))},ji.\u0275dir=e.lG2({type:ji,selectors:[["","kendoToolbarLocalizedMessages",""]],features:[e._Bn([{provide:zn,useExisting:(0,e.Gpc)(()=>ji)}]),e.qOj]}),ji})();const ki=ji=>({animate:!0,anchorAlign:{horizontal:ji?"left":"right",vertical:"bottom"},popupAlign:{horizontal:ji?"left":"right",vertical:"top"}});let bo=(()=>{class ji{constructor(rt,ai,Gn,Io,wr,bs,ba,ms){this.localization=rt,this.popupService=ai,this.refreshService=Gn,this.navigationService=Io,this.element=wr,this.zone=bs,this.renderer=ba,this._cdr=ms,this.overflow=!1,this.tabindex=0,this.open=new e.vpe,this.close=new e.vpe,this.hostClass=!0,this.cancelRenderedToolsSubscription$=new A.x,this._size="medium",this.overflowButtonClickedTime=null,this.subscriptions=new _.w0,this.popupSubs=new _.w0,this.role="toolbar",this.moreVerticalIcon=x.xIX,this.overflowBtnId=(0,o.M8)(),this.popupId=(0,o.M8)(),(0,l.s)(xo),this.direction=rt.rtl?"rtl":"ltr"}get overflowClass(){return`k-button-${Pi[this.size]}`}set resizable(rt){this.overflow=rt}get resizable(){return this.overflow}set popupSettings(rt){this._popupSettings=Object.assign({},ki(this.localization.rtl),rt)}get popupSettings(){return this._popupSettings||ki(this.localization.rtl)}set size(rt){const ai=rt||"medium";this.handleClasses(ai,"size"),this._size=ai}get size(){return this._size}set tabIndex(rt){this.tabindex=rt}get tabIndex(){return this.tabindex}get appendTo(){const{appendTo:rt}=this.popupSettings;if(rt&&"root"!==rt)return"component"===rt?this.container:rt}set popupOpen(rt){if(this.popupOpen===rt)return;const ai=new pn;rt?this.open.emit(ai):this.close.emit(ai),!ai.isDefaultPrevented()&&this.toggle(rt)}get popupOpen(){return this._open}onFocus(rt){this.navigationService.resetNavigation(),this.navigationService.focusFirst(rt),this.element.nativeElement.setAttribute("tabindex","-1")}onFocusOut(rt){Ki(rt.relatedTarget,ai=>ai===this.element.nativeElement)?this.element.nativeElement.setAttribute("tabindex","-1"):this.element.nativeElement.setAttribute("tabindex",this.tabindex.toString())}get getDir(){return this.direction}get resizableClass(){return this.overflow}ngAfterViewInit(){this.element.nativeElement.getAttribute("tabindex")||this.element.nativeElement.setAttribute("tabindex","0"),this.zone.runOutsideAngular(()=>{this.toolbarKeydownListener=this.renderer.listen(this.element.nativeElement,"keydown",ai=>{switch(ai.keyCode){case o.R8.ArrowLeft:this.zone.run(()=>{ai.preventDefault(),"ltr"===this.direction?this.navigationService.focusPrev(ai):this.navigationService.focusNext(ai),this.element.nativeElement.setAttribute("tabindex","-1")});break;case o.R8.ArrowRight:this.zone.run(()=>{ai.preventDefault(),"ltr"===this.direction?this.navigationService.focusNext(ai):this.navigationService.focusPrev(ai),this.element.nativeElement.setAttribute("tabindex","-1")});break;case o.R8.Tab:this.zone.run(()=>this.navigationService.resetNavigation());break;case o.R8.Escape:this.zone.run(()=>this.toggle(!1));break;case o.R8.Home:this.zone.run(()=>this.navigationService.focusFirst(ai));break;case o.R8.End:this.zone.run(()=>this.navigationService.focusLast(ai))}})}),this.overflow&&(this.subscriptions.add((0,C.T)(this.resizeSensor.resize,this.renderedTools.changes).subscribe(()=>this.onResize())),this.navigationService.overflowButton=this.overflowButton,this.onResize()),this.navigationService.setRenderedTools(this.renderedTools.toArray()),this.subscriptions.add(this.renderedTools.changes.subscribe(ai=>this.navigationService.setRenderedTools(ai.toArray()))),this.handleClasses(this.size,"size")}ngOnInit(){this.subscriptions.add(this.localization.changes.subscribe(({rtl:rt})=>this.direction=rt?"rtl":"ltr")),(0,o.X_)()&&this.zone.runOutsideAngular(()=>this.subscriptions.add((0,R.R)(document,"click").pipe((0,d.h)(()=>!!this.popupRef),(0,d.h)(rt=>!this.popupRef.popup.instance.container.nativeElement.contains(rt.target)),(0,d.h)(rt=>!this.overflowButton.nativeElement.contains(rt.target))).subscribe(()=>{this.zone.run(()=>{this.popupOpen=!1})})))}ngOnChanges(rt){rt.tabindex&&this.element.nativeElement.setAttribute("tabindex",rt.tabindex.currentValue.toString())}ngOnDestroy(){this.destroyPopup(),this.toolbarKeydownListener&&this.toolbarKeydownListener(),this.cancelRenderedToolsSubscription$.next(),this.subscriptions.unsubscribe()}get moreToolsTitle(){return this.localization.get("moreToolsTitle")}get cdr(){return this._cdr}onRendererClick(rt){this.navigationService.click(rt),this.element.nativeElement.setAttribute("tabindex","-1")}showPopup(){this.popupOpen=!this.popupOpen,this.navigationService.click({context:void 0,event:void 0}),this.overflowButtonClickedTime=Date.now()}toggle(rt){this._open=void 0!==rt?rt:!this.popupOpen,this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupOpen&&(this.popupRef=this.popupService.open({anchor:this.overflowButton,anchorAlign:this.popupSettings.anchorAlign,popupAlign:this.popupSettings.popupAlign,content:this.popupTemplate,appendTo:this.appendTo,animate:this.popupSettings.animate,popupClass:this.normalizePopupClasses(this.popupSettings.popupClass),positionMode:"absolute"}),this.setPopupContentDimensions(),this.popupSubs.add(this.popupRef.popupOpen.subscribe(this.onPopupOpen.bind(this))),this.popupSubs.add(this.popupRef.popupClose.subscribe(this.onPopupClose.bind(this))))}onResize(){if((0,o.X_)()){const rt=function En(ji){let Fo=ji.offsetWidth;const rt=getComputedStyle(ji);return Fo-=parseFloat(rt.paddingLeft)||0+parseFloat(rt.borderLeftWidth)||0,Fo-=parseFloat(rt.paddingRight)||0+parseFloat(rt.borderRightWidth)||0,Fo}(this.element.nativeElement)-this.overflowAnchorWidth;this.shrink(rt,this.childrenWidth),this.stretch(rt,this.childrenWidth),this.displayAnchor(),this.resizeSensor?.acceptSize();const ai=Date.now()-this.overflowButtonClickedTime<300;this.popupOpen&&!ai&&this.toggle()}}onPopupOpen(){this.zone.runOutsideAngular(()=>{this.overflowKeydownListener=this.renderer.listen(this.popupRef.popupElement,"keydown",rt=>{const ai=this.overflowRenderedTools.toArray().find(Gn=>Ki(rt.target,Io=>Io===Gn.element.nativeElement));switch(rt.keyCode){case o.R8.ArrowUp:this.zone.run(()=>{rt.preventDefault(),this.navigationService.focusPrev(rt)});break;case o.R8.ArrowDown:this.zone.run(()=>{rt.preventDefault(),this.navigationService.focusNext(rt)});break;case o.R8.Escape:this.zone.run(()=>this.toggle(!1));const Gn=new pn;this.close.emit(Gn);break;case o.R8.Tab:this.zone.run(()=>{this.toggle(!1),this.navigationService.resetNavigation()});break;case o.R8.Enter:case o.R8.Space:this.zone.run(()=>{ai&&(rt.preventDefault(),rt.target.click(),rt.target.focus())})}})}),this.cancelRenderedToolsSubscription$.next(),this.navigationService.moveFocusToPopup(),this.navigationService.setRenderedTools(this.overflowRenderedTools.toArray()),this.overflowRenderedTools.changes.pipe((0,s.R)(this.cancelRenderedToolsSubscription$)).subscribe(rt=>this.navigationService.setRenderedTools(rt.toArray())),this.renderer.setAttribute(this.overflowButton.nativeElement,"aria-controls",this.popupId)}onPopupClose(){this.cancelRenderedToolsSubscription$.next(),this.navigationService.setRenderedTools(this.renderedTools.toArray()),this.renderedTools.changes.pipe((0,s.R)(this.cancelRenderedToolsSubscription$)).subscribe(rt=>this.navigationService.setRenderedTools(rt.toArray())),this.navigationService.moveFocusToToolBar(),this.overflowKeydownListener&&this.overflowKeydownListener(),this.renderer.removeAttribute(this.overflowButton.nativeElement,"aria-controls")}displayAnchor(){const rt=this.allTools.filter(ai=>ai.overflows&&ai.responsive).length>0?"visible":"hidden";this.overflowButton&&this.renderer.setStyle(this.overflowButton.nativeElement,"visibility",rt)}get popupWidth(){return this.popupSettings&&this.popupSettings.width?isNaN(this.popupSettings.width)?this.popupSettings.width:`${this.popupSettings.width}px`:"auto"}get popupHeight(){if(this.popupSettings&&this.popupSettings.height)return isNaN(this.popupSettings.height)?this.popupSettings.height:`${this.popupSettings.height}px`}get overflowAnchorWidth(){return this.overflow?(this.cachedOverflowAnchorWidth||(this.cachedOverflowAnchorWidth=this.overflowButton.nativeElement.offsetWidth),this.cachedOverflowAnchorWidth):0}get gap(){if(Mt(this.cachedGap))return this.cachedGap;const rt=getComputedStyle(this.element.nativeElement).gap;return this.cachedGap=Mt(rt)?parseInt(rt,10):0,this.cachedGap}get childrenWidth(){const rt=this.renderedTools.reduce((ai,Gn)=>Gn.width+ai+(Gn.isDisplayed()?this.gap:0),0);return Math.ceil(rt)}get visibleTools(){return this.allTools.filter(rt=>!1===rt.overflows)}get overflowTools(){return this.allTools.filter(rt=>!0===rt.overflows)}shrink(rt,ai){let Gn;if(rt<ai)for(let Io=this.visibleTools.length-1;Io>=0&&!(rt>ai);Io--)Gn=this.hideLastVisibleTool(),ai-=Gn}stretch(rt,ai){let Gn;if(rt>ai)for(let Io=this.overflowTools.length-1;Io>=0&&(Gn=this.showFirstHiddenTool(rt,ai),Gn);Io--)ai+=Gn}hideLastVisibleTool(){const rt=this.visibleTools[this.visibleTools.length-1],Gn=this.renderedTools.find(Io=>Io.tool===rt).width;return rt.overflows=!0,this.refreshService.refresh(rt),Gn}showFirstHiddenTool(rt,ai){const Gn=this.overflowTools[0],Io=this.renderedTools.find(wr=>wr.tool===Gn);return Gn.overflows=!1,Gn.visibility="hidden",this.refreshService.refresh(Gn),rt>ai+Io.width?(Gn.visibility="visible",this.refreshService.refresh(Gn)):(Gn.overflows=!0,this.refreshService.refresh(Gn)),Io.width}setPopupContentDimensions(){const rt=this.popupRef.popup.instance.contentContainer.nativeElement;rt.style.width=this.popupWidth,rt.style.height=this.popupHeight,rt.style.overflow="auto"}destroyPopup(){this.popupRef&&(this.popupSubs.unsubscribe(),this.popupRef.close(),this.popupRef=null)}handleClasses(rt,ai){const Gn=this.element.nativeElement,Io=((ji,Fo,rt,ai)=>{if("size"===Fo)return{toRemove:`k-${ji}-${Pi[rt]}`,toAdd:"none"!==ai?`k-${ji}-${Pi[ai]}`:""}})("toolbar",ai,this[ai],rt);Io.toRemove&&this.renderer.removeClass(Gn,Io.toRemove),Io.toAdd&&this.renderer.addClass(Gn,Io.toAdd)}normalizePopupClasses(rt){let ai=["k-menu-popup","k-toolbar-popup"];if(!rt)return ai;if("string"==typeof rt)ai.push(...rt.split(" "));else if(Array.isArray(rt))ai=[...ai,...rt];else for(const Gn in rt)ai.push(rt[Gn]);return ai}}return ji.\u0275fac=function(rt){return new(rt||ji)(e.Y36(a.oQ),e.Y36(n.qL),e.Y36(Bn),e.Y36(si),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(e.sBO))},ji.\u0275cmp=e.Xpm({type:ji,selectors:[["kendo-toolbar"]],contentQueries:function(rt,ai,Gn){if(1&rt&&e.Suo(Gn,ot,4),2&rt){let Io;e.iGM(Io=e.CRH())&&(ai.allTools=Io)}},viewQuery:function(rt,ai){if(1&rt&&(e.Gf(b,5,e.SBq),e.Gf(I,7),e.Gf(L,5),e.Gf(D,7,e.s_b),e.Gf(F,5),e.Gf(P,5)),2&rt){let Gn;e.iGM(Gn=e.CRH())&&(ai.overflowButton=Gn.first),e.iGM(Gn=e.CRH())&&(ai.popupTemplate=Gn.first),e.iGM(Gn=e.CRH())&&(ai.resizeSensor=Gn.first),e.iGM(Gn=e.CRH())&&(ai.container=Gn.first),e.iGM(Gn=e.CRH())&&(ai.renderedTools=Gn),e.iGM(Gn=e.CRH())&&(ai.overflowRenderedTools=Gn)}},hostVars:6,hostBindings:function(rt,ai){1&rt&&e.NdJ("focus",function(Io){return ai.onFocus(Io)})("focusout",function(Io){return ai.onFocusOut(Io)}),2&rt&&(e.uIk("role",ai.role)("dir",ai.getDir),e.ekj("k-toolbar",ai.hostClass)("k-toolbar-resizable",ai.resizableClass))},inputs:{overflow:"overflow",resizable:"resizable",popupSettings:"popupSettings",tabindex:"tabindex",size:"size",tabIndex:"tabIndex"},outputs:{open:"open",close:"close"},exportAs:["kendoToolBar"],features:[e._Bn([Bn,si,a.oQ,{provide:a.mM,useValue:"kendo.toolbar"}]),e.TTD],decls:8,vars:3,consts:function(){let Fo;return Fo=$localize`:kendo.toolbar.moreToolsTitle|The title of the **more tools** button in a responsive ToolBar:More tools`,[["kendoToolbarLocalizedMessages","","moreToolsTitle",Fo],[4,"ngFor","ngForOf"],["kendoButton","","fillMode","flat","type","button","icon","more-vertical","tabindex","-1","aria-haspopup","menu","class","k-toolbar-overflow-button",3,"svgIcon","title","id","visibility","position","margin-inline-start","ngClass","click",4,"ngIf"],["popupTemplate",""],["container",""],[4,"ngIf"],[3,"location","resizable","tool","rendererClick"],["toolbarRenderer",""],["kendoButton","","fillMode","flat","type","button","icon","more-vertical","tabindex","-1","aria-haspopup","menu",1,"k-toolbar-overflow-button",3,"svgIcon","title","id","ngClass","click"],["overflowButton",""],["role","menu",1,"k-menu-group","k-menu-group-md",3,"id"],["overflowRenderer",""],["resizeSensor",""]]},template:function(rt,ai){1&rt&&(e.GkF(0,0),e.YNc(1,O,3,3,"ng-container",1),e.YNc(2,U,2,12,"button",2),e.YNc(3,K,2,3,"ng-template",null,3,e.W1O),e.GkF(5,null,4),e.YNc(7,X,2,0,"kendo-resize-sensor",5)),2&rt&&(e.xp6(1),e.Q6J("ngForOf",ai.allTools),e.xp6(1),e.Q6J("ngIf",ai.overflow),e.xp6(5),e.Q6J("ngIf",ai.overflow))},dependencies:[hi,k.r0,o.NG,Ei,f.sg,f.O5,f.mk],encapsulation:2}),ji})(),jo=(()=>{class ji extends ot{constructor(rt,ai){super(),this.element=rt,this.zone=ai,this.showIcon="both",this.toggleable=!1,this.selected=!1,this.fillMode="solid",this.themeColor="base",this.click=new e.vpe,this.pointerdown=new e.vpe,this.selectedChange=new e.vpe,this.toolbarOptions={text:"",icon:"",iconClass:"",svgIcon:null,imageUrl:""},this.overflowOptions={text:"",icon:"",iconClass:"",svgIcon:null,imageUrl:""},this._showText="both"}set showText(rt){this._showText=rt,this.setTextDisplayMode()}get showText(){return this._showText}set text(rt){this._text=rt,this.setTextDisplayMode()}get text(){return this._text}set look(rt){rt&&(this.fillMode="default"===rt?"solid":rt)}get togglable(){return this.toggleable}set togglable(rt){this.toggleable=rt}set icon(rt){this.toolbarOptions.icon=jn(rt,this.showIcon,!1),this.overflowOptions.icon=jn(rt,this.showIcon,!0)}set iconClass(rt){this.toolbarOptions.iconClass=jn(rt,this.showIcon,!1),this.overflowOptions.iconClass=jn(rt,this.showIcon,!0)}set svgIcon(rt){const ai=this.toolbarOptions.icon||this.overflowOptions.icon,Gn=this.toolbarOptions.iconClass||this.overflowOptions.iconClass;if((0,e.X6Q)()&&rt&&ai&&Gn)throw new Error("Setting both icon/svgIcon and iconClass options at the same time is not supported.");this.toolbarOptions.svgIcon=jn(rt,this.showIcon,!1),this.overflowOptions.svgIcon=jn(rt,this.showIcon,!0)}set imageUrl(rt){this.toolbarOptions.imageUrl=jn(rt,this.showIcon,!1),this.overflowOptions.imageUrl=jn(rt,this.showIcon,!0)}ngOnInit(){this.setTextDisplayMode()}onBlur(){this.getButton().tabIndex=-1}canFocus(){return!this.disabled}focus(rt){(!rt||"focus"===rt.type||"keydown"===rt.type)&&this.getButton().focus(),this.getButton().tabIndex=0}handleKey(){return this.getButton().tabIndex=-1,!1}get toolbarButtonClass(){return this.toggleable?"k-toolbar-toggle-button":"k-toolbar-button"}handleClick(rt){this.click.emit(rt),this.toggleable&&(this.selected=!this.selected,this.selectedChange.emit(this.selected))}selectedChangeHandler(rt){this.selected=rt,this.selectedChange.emit(rt)}getButton(){return(this.overflows?this.overflowButtonElement:this.toolbarButtonElement).nativeElement}setTextDisplayMode(){this.toolbarOptions.text="overflow"===this.showText?void 0:this.text,this.zone.onStable.pipe((0,u.q)(1)).subscribe(()=>{this.overflowOptions.text="toolbar"===this.showText?void 0:this.text})}}return ji.\u0275fac=function(rt){return new(rt||ji)(e.Y36(e.SBq),e.Y36(e.R0b))},ji.\u0275cmp=e.Xpm({type:ji,selectors:[["kendo-toolbar-button"]],viewQuery:function(rt,ai){if(1&rt&&(e.Gf(me,7),e.Gf(I,7),e.Gf(J,5,e.SBq),e.Gf(b,5,e.SBq)),2&rt){let Gn;e.iGM(Gn=e.CRH())&&(ai.toolbarTemplate=Gn.first),e.iGM(Gn=e.CRH())&&(ai.popupTemplate=Gn.first),e.iGM(Gn=e.CRH())&&(ai.toolbarButtonElement=Gn.first),e.iGM(Gn=e.CRH())&&(ai.overflowButtonElement=Gn.first)}},inputs:{showText:"showText",showIcon:"showIcon",text:"text",style:"style",className:"className",title:"title",disabled:"disabled",toggleable:"toggleable",look:"look",togglable:"togglable",selected:"selected",fillMode:"fillMode",themeColor:"themeColor",icon:"icon",iconClass:"iconClass",svgIcon:"svgIcon",imageUrl:"imageUrl"},outputs:{click:"click",pointerdown:"pointerdown",selectedChange:"selectedChange"},exportAs:["kendoToolBarButton"],features:[e._Bn([{provide:ot,useExisting:(0,e.Gpc)(()=>ji)}]),e.qOj],decls:4,vars:0,consts:[["toolbarTemplate",""],["popupTemplate",""],["type","button","kendoButton","",3,"tabindex","ngStyle","ngClass","disabled","toggleable","fillMode","themeColor","selected","icon","iconClass","svgIcon","imageUrl","click","pointerdown","selectedChange","blur"],["toolbarButton",""],["tabindex","-1","role","menuitem",1,"k-item","k-menu-item",3,"ngClass","ngStyle","click"],["overflowButton",""],[1,"k-link","k-menu-link"],[3,"name","customFontClass","svgIcon",4,"ngIf"],["class","k-menu-link-text",4,"ngIf"],[3,"name","customFontClass","svgIcon"],[1,"k-menu-link-text"]],template:function(rt,ai){1&rt&&(e.YNc(0,Q,3,16,"ng-template",null,0,e.W1O),e.YNc(2,te,5,8,"ng-template",null,1,e.W1O))},dependencies:[k.r0,w.ZS,f.PC,f.mk,f.O5],encapsulation:2}),ji})(),wn=(()=>{class ji extends ot{constructor(rt){super(),this.localization=rt,this.selection="multiple",this.focusedIndex=-1,this.getNextKey=((ji=!1)=>(Fo=!0)=>Fo?o.R8.ArrowDown:ji?o.R8.ArrowLeft:o.R8.ArrowRight)(this.localization.rtl),this.getPrevKey=((ji=!1)=>(Fo=!0)=>Fo?o.R8.ArrowUp:ji?o.R8.ArrowRight:o.R8.ArrowLeft)(this.localization.rtl)}set look(rt){rt&&this.buttonComponents.forEach(ai=>ai.fillMode="default"===rt?"solid":rt)}get buttonElements(){return this.overflows?[...this.overflowListItems.toArray().filter(rt=>!rt.nativeElement.classList.contains("k-disabled"))].map(rt=>rt.nativeElement):this.toolbarButtonGroup.buttons.filter(rt=>!rt.isDisabled).map(rt=>rt.element)}onFocus(){this.focusedIndex=0}onNavigate(rt){rt.preventDefault()}selectedChangeHandler(rt,ai){ai.selected=rt,ai.selectedChange.emit(rt)}overflowSelectedChangeHandler(rt){"multiple"===this.selection||this.buttonComponents.filter(Gn=>Gn!==rt).forEach(Gn=>Gn.selected=!1),rt.selected=!rt.selected,rt.selectedChange.emit(rt.selected)}onButtonClick(rt){this.focusedIndex=this.buttonElements.findIndex(ai=>ai===rt.target||ai.contains(rt.target)),this.focusButton(this.focusedIndex,rt)}canFocus(){return!(this.disabled||0===this.buttonElements.length)}focus(rt={}){const ai=this.getNextKey(this.overflows),Gn=this.getPrevKey(this.overflows);this.focusedIndex=((ji,Fo,rt)=>ai=>{switch(ai.type){case"keydown":if(ai.keyCode===ji)return rt.length-1;if(ai.keyCode===Fo)return 0;break;case"click":return rt.findIndex(Gn=>Gn===ai.target||Gn.contains(ai.target));default:return 0}})(Gn,ai,this.buttonElements)(rt),this.focusButton(this.focusedIndex,rt)}handleKey(rt){const ai=this.getNextKey(this.overflows),Gn=this.getPrevKey(this.overflows),Io=(ji=>Fo=>Mt(ji[Fo]))(this.buttonElements),wr=(ji=>Fo=>ji===Fo)(this.focusedIndex);return this.focusedIndex=((ji,Fo,rt)=>(ai,Gn)=>{switch(Gn.keyCode){case ji:return rt(ai-1)?ai-1:ai;case Fo:return rt(ai+1)?ai+1:ai;default:return ai}})(Gn,ai,Io)(this.focusedIndex,rt),this.focusButton(this.focusedIndex,rt),!wr(this.focusedIndex)}handleClick(rt,ai){ai.click.emit(rt),this.onButtonClick(rt),this.overflowSelectedChangeHandler(ai)}getIconClasses(rt){return rt.overflowOptions.icon?`${rt.overflowOptions.icon}`:rt.overflowOptions.iconClass?rt.overflowOptions.iconClass:rt.overflowOptions.svgIcon?rt.overflowOptions.svgIcon:void 0}focusButton(rt,ai){(!ai.type||"focus"===ai.type||"keydown"===ai.type)&&this.buttonElements[rt]?.focus()}}return ji.\u0275fac=function(rt){return new(rt||ji)(e.Y36(a.oQ))},ji.\u0275cmp=e.Xpm({type:ji,selectors:[["kendo-toolbar-buttongroup"]],contentQueries:function(rt,ai,Gn){if(1&rt&&e.Suo(Gn,jo,4),2&rt){let Io;e.iGM(Io=e.CRH())&&(ai.buttonComponents=Io)}},viewQuery:function(rt,ai){if(1&rt&&(e.Gf(me,7),e.Gf(I,7),e.Gf(j,5),e.Gf(H,5)),2&rt){let Gn;e.iGM(Gn=e.CRH())&&(ai.toolbarTemplate=Gn.first),e.iGM(Gn=e.CRH())&&(ai.popupTemplate=Gn.first),e.iGM(Gn=e.CRH())&&(ai.toolbarButtonGroup=Gn.first),e.iGM(Gn=e.CRH())&&(ai.overflowListItems=Gn)}},inputs:{disabled:"disabled",selection:"selection",width:"width",look:"look"},exportAs:["kendoToolBarButtonGroup"],features:[e._Bn([a.oQ,{provide:ot,useExisting:(0,e.Gpc)(()=>ji)}]),e.qOj],decls:4,vars:0,consts:[["toolbarTemplate",""],["popupTemplate",""],[1,"k-toolbar-button-group",3,"tabIndex","selection","disabled","width","navigate","focus"],["toolbarButtonGroup",""],["kendoButton","",3,"ngStyle","ngClass","disabled","togglable","selected","fillMode","themeColor","icon","iconClass","svgIcon","imageUrl","click","pointerdown","selectedChange",4,"ngFor","ngForOf"],["kendoButton","",3,"ngStyle","ngClass","disabled","togglable","selected","fillMode","themeColor","icon","iconClass","svgIcon","imageUrl","click","pointerdown","selectedChange"],[4,"ngFor","ngForOf"],["tabindex","-1","role","menuitem",1,"k-item","k-menu-item",3,"ngStyle","ngClass","click"],["listItem",""],[1,"k-link","k-menu-link"],[3,"name","customFontClass","svgIcon",4,"ngIf"],["class","k-menu-link-text",4,"ngIf"],[3,"name","customFontClass","svgIcon"],[1,"k-menu-link-text"]],template:function(rt,ai){1&rt&&(e.YNc(0,q,3,5,"ng-template",null,0,e.W1O),e.YNc(2,ge,1,1,"ng-template",null,1,e.W1O))},dependencies:[k.Kb,k.r0,w.ZS,f.sg,f.PC,f.mk,f.O5],encapsulation:2}),ji})(),as=(()=>{class ji{}return ji.\u0275fac=function(rt){return new(rt||ji)},ji.\u0275mod=e.oAB({type:ji}),ji.\u0275inj=e.cJS({imports:[[f.ez,k.Fq,n.Zj,o.uv,w.pc]]}),ji})()},65996:(he,y,i)=>{"use strict";i.d(y,{IV:()=>Lo,MB:()=>br,Uh:()=>ao,dZ:()=>Ls,fe:()=>Rr,i9:()=>co,kD:()=>Mr,l6:()=>Go,ni:()=>Xo,oU:()=>Pr,tF:()=>oo});var e=i(65879),n=i(3201),o=i(58951),a=i(78645),l=i(22096),u=i(47394),d=i(36232),s=i(65619),A=i(63019),_=i(12624),C=i(99842),R=i(73942),x=i(80889),f=i(60886),k=i(86825),w=i(32181),g=i(99397),M=i(94664),p=i(5177),E=i(59773),b=i(26306),I=i(64716),L=i(48180),D=i(37398),F=i(96814),P=i(68503);const O=["kendoTreeViewGroup",""];function U(vn,Xe){if(1&vn){const Ke=e.EpF();e.TgZ(0,"span",12),e.NdJ("click",function(){e.CHM(Ke);const St=e.oxw(),it=St.index,Dt=St.$implicit,Hn=e.oxw();return e.KtG(Hn.expandNode(Hn.nodeIndex(it),Dt,!Hn.isExpanded(Dt,Hn.nodeIndex(it))))}),e._UZ(1,"kendo-icon-wrapper",13),e.qZA()}if(2&vn){const Ke=e.oxw(),ze=Ke.$implicit,St=Ke.index,it=e.oxw();e.ekj("k-disabled",!it.isItemExpandable(ze,St)),e.Q6J("kendoTreeViewLoading",it.nodeIndex(St)),e.xp6(1),e.Q6J("name",it.getFontIcon(ze,it.nodeIndex(St)))("svgIcon",it.getSvgIcon(ze,it.nodeIndex(St)))}}function V(vn,Xe){if(1&vn){const Ke=e.EpF();e.TgZ(0,"kendo-checkbox",14),e.NdJ("checkStateChange",function(){e.CHM(Ke);const St=e.oxw().index,it=e.oxw();return e.KtG(it.checkNode(it.nodeIndex(St)))}),e.qZA()}if(2&vn){const Ke=e.oxw(),ze=Ke.$implicit,St=Ke.index,it=e.oxw();e.ekj("k-disabled",it.isItemDisabled(ze,St)),e.Q6J("size",it.size)("node",ze)("index",it.nodeIndex(St))("isChecked",it.isChecked)("tabindex",-1)}}function K(vn,Xe){}const X=function(vn,Xe){return{$implicit:vn,index:Xe}};function me(vn,Xe){if(1&vn&&(e.ynx(0),e.YNc(1,K,0,0,"ng-template",15),e.BQk()),2&vn){const Ke=e.oxw(),ze=Ke.$implicit,St=Ke.index,it=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",it.nodeTemplateRef)("ngTemplateOutletContext",e.WLB(2,X,ze,it.nodeIndex(St)))}}function J(vn,Xe){if(1&vn&&(e.ynx(0),e._uU(1),e.BQk()),2&vn){const Ke=e.oxw().$implicit,ze=e.oxw();e.xp6(1),e.hij(" ",ze.nodeText(Ke)," ")}}function Q(vn,Xe){if(1&vn&&e._UZ(0,"ul",16),2&vn){const Ke=e.oxw(),ze=Ke.$implicit,St=Ke.index,it=e.oxw();e.Q6J("size",it.size)("nodes",it.fetchChildren)("loadOnDemand",it.loadOnDemand)("checkboxes",it.checkboxes)("expandIcons",it.expandIcons)("selectable",it.selectable)("touchActions",it.touchActions)("children",it.children)("hasChildren",it.hasChildren)("isChecked",it.isChecked)("isDisabled",it.isDisabled)("hasCheckbox",it.hasCheckbox)("disabled",it.isItemDisabled(ze,St))("expandDisabledNodes",it.expandDisabledNodes)("isExpanded",it.isExpanded)("isSelected",it.isSelected)("isVisible",it.isVisible)("nodeTemplateRef",it.nodeTemplateRef)("loadMoreButtonTemplateRef",it.loadMoreButtonTemplateRef)("parentIndex",it.nodeIndex(St))("parentDataItem",ze)("textField",it.nextFields)("loadMoreService",it.loadMoreService)("@toggle",!0)("trackBy",it.trackBy)("disableParentNodesOnly",it.disableParentNodesOnly)}}function re(vn,Xe){if(1&vn&&(e.TgZ(0,"li",2)(1,"div",3),e.YNc(2,U,2,5,"span",4),e.YNc(3,V,1,7,"kendo-checkbox",5),e.TgZ(4,"span",6)(5,"span",7),e.ynx(6,8),e.YNc(7,me,2,5,"ng-container",9),e.YNc(8,J,2,1,"ng-container",10),e.BQk(),e.qZA()()(),e.YNc(9,Q,1,26,"ul",11),e.qZA()),2&vn){const Ke=Xe.$implicit,ze=Xe.index,St=e.oxw();e.ekj("k-hidden",!St.isVisible(Ke,St.nodeIndex(ze))),e.Q6J("dataItem",Ke)("index",St.nodeIndex(ze))("parentDataItem",St.parentDataItem)("parentIndex",St.parentIndex)("loadOnDemand",St.loadOnDemand)("checkable",St.checkboxes)("isChecked",St.isChecked(Ke,St.nodeIndex(ze)))("isDisabled",St.isItemDisabled(Ke,ze))("isVisible",St.isVisible(Ke,St.nodeIndex(ze)))("expandable",St.expandIcons&&St.hasChildren(Ke))("isExpanded",St.isExpanded(Ke,St.nodeIndex(ze)))("selectable",St.selectable)("isSelected",St.isSelected(Ke,St.nodeIndex(ze))),e.uIk("aria-setsize",St.totalNodesCount)("data-treeindex",St.nodeIndex(ze)),e.xp6(1),e.Q6J("ngClass",St.setItemClasses(St.data.length,ze)),e.xp6(1),e.Q6J("ngIf",St.expandIcons&&St.hasChildren(Ke)),e.xp6(1),e.Q6J("ngIf",St.checkboxes&&St.hasCheckbox(Ke,St.nodeIndex(ze))),e.xp6(1),e.Udp("touch-action",St.touchActions?"":"none"),e.ekj("k-disabled",St.isItemDisabled(Ke,ze)),e.Q6J("dataItem",Ke)("index",St.nodeIndex(ze))("initialSelection",St.isSelected(Ke,St.nodeIndex(ze)))("isSelected",St.isSelected),e.uIk("data-treeindex",St.nodeIndex(ze)),e.xp6(2),e.Q6J("ngSwitch",St.hasTemplate),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(2),e.Q6J("ngIf",St.isExpanded(Ke,St.nodeIndex(ze))&&St.hasChildren(Ke))}}function de(vn,Xe){1&vn&&e._UZ(0,"span",22)}function te(vn,Xe){}const j=function(vn){return{index:vn}};function H(vn,Xe){if(1&vn&&e.YNc(0,te,0,0,"ng-template",15),2&vn){const Ke=e.oxw(2);e.Q6J("ngTemplateOutlet",Ke.loadMoreButtonTemplateRef)("ngTemplateOutletContext",e.VKq(2,j,Ke.loadMoreButtonIndex))}}function z(vn,Xe){1&vn&&(e.ynx(0),e._uU(1," Load more "),e.BQk())}function q(vn,Xe){if(1&vn&&(e.TgZ(0,"li",17)(1,"div",18),e.YNc(2,de,1,0,"span",19),e.TgZ(3,"span",20)(4,"span",7),e.YNc(5,H,1,4,null,21),e.YNc(6,z,2,0,"ng-container",21),e.qZA()()()()),2&vn){const Ke=e.oxw();e.ekj("k-treeview-load-more-checkboxes-container",Ke.checkboxes),e.Q6J("selectable",!1)("checkable",!1)("expandable",!1)("index",Ke.loadMoreButtonIndex)("parentDataItem",Ke.parentDataItem)("parentIndex",Ke.parentIndex),e.uIk("data-treeindex",Ke.loadMoreButtonIndex),e.xp6(2),e.Q6J("ngIf",Ke.loadingMoreNodes),e.xp6(1),e.Q6J("index",Ke.loadMoreButtonIndex),e.uIk("data-treeindex",Ke.loadMoreButtonIndex),e.xp6(2),e.Q6J("ngIf",Ke.loadMoreButtonTemplateRef),e.xp6(1),e.Q6J("ngIf",!Ke.loadMoreButtonTemplateRef)}}const se=["assetsContainer"],ne=["searchbox"];function _e(vn,Xe){if(1&vn&&e._UZ(0,"kendo-icon-wrapper",7),2&vn){const Ke=e.oxw(2);e.Q6J("svgIcon",Ke.searchIcon)}}function ge(vn,Xe){if(1&vn){const Ke=e.EpF();e.TgZ(0,"span",3)(1,"kendo-textbox",4,5),e.NdJ("valueChange",function(St){e.CHM(Ke);const it=e.oxw();return e.KtG(it.filterChange.emit(St))}),e.YNc(3,_e,1,1,"ng-template",6),e.qZA()()}if(2&vn){const Ke=e.oxw();e.xp6(1),e.Q6J("size",Ke.size)("value",Ke.filter)("clearButton",!0)("placeholder",Ke.filterInputPlaceholder)}}function Ce(vn,Xe){if(1&vn&&(e.ynx(0),e._UZ(1,"kendo-icon-wrapper",1),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.BQk()),2&vn){const Ke=e.oxw();e.xp6(1),e.Q6J("name",Ke.statusIconClass)("svgIcon",Ke.statusSVGIcon),e.xp6(2),e.Oqu(Ke.text)}}function Te(vn,Xe){}const De=function(vn,Xe,Ke,ze){return{text:vn,action:Xe,sourceItem:Ke,destinationItem:ze}};function fe(vn,Xe){if(1&vn&&e.YNc(0,Te,0,0,"ng-template",2),2&vn){const Ke=e.oxw();e.Q6J("ngTemplateOutlet",Ke.template)("ngTemplateOutletContext",e.l5B(2,De,Ke.text,Ke.action,Ke.sourceItem,Ke.destinationItem))}}function xe(vn,Xe){1&vn&&(e.TgZ(0,"div",2),e._UZ(1,"div",3)(2,"div",4),e.qZA())}function Oe(vn,Xe){}function Le(vn,Xe){1&vn&&e.YNc(0,Oe,0,0,"ng-template")}const Gt=function(vn,Xe,Ke){return{action:vn,sourceItem:Xe,destinationItem:Ke}};function Ut(vn,Xe){if(1&vn&&e.YNc(0,Le,1,0,"ng-template",5),2&vn){const Ke=e.oxw();e.Q6J("ngTemplateOutlet",Ke.template)("ngTemplateOutletContext",e.kEZ(2,Gt,Ke.action,Ke.sourceItem,Ke.destinationItem))}}const An={name:"@progress/kendo-angular-treeview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1694532997,version:"13.5.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};class $n{constructor(){this.changes=new e.vpe}notify(){this.changes.emit()}}const xn=()=>!1,mt=()=>"none",ut=()=>!1,Wt=()=>!0,dn=()=>!0,sn=()=>!1,fn=()=>!0,yi=(vn,Xe)=>Xe;let nn=(()=>{class vn{constructor(){this.changes=new a.x}expand(Ke,ze){this.changes.next({dataItem:ze,index:Ke,expand:!0})}collapse(Ke,ze){this.changes.next({dataItem:ze,index:Ke,expand:!1})}}return vn.\u0275fac=function(Ke){return new(Ke||vn)},vn.\u0275prov=e.Yz7({token:vn,factory:vn.\u0275fac}),vn})(),Mi=(()=>{class vn{constructor(){this.INDEX_SEPARATOR="_"}nodeIndex(Ke="",ze=""){return`${ze}${ze?this.INDEX_SEPARATOR:""}${Ke}`}indexForLevel(Ke,ze){return Ke.split(this.INDEX_SEPARATOR).slice(0,ze).join(this.INDEX_SEPARATOR)}lastLevelIndex(Ke=""){const ze=Ke.split(this.INDEX_SEPARATOR);return ze.length?parseInt(ze[ze.length-1],10):NaN}level(Ke){return Ke.split(this.INDEX_SEPARATOR).length}}return vn.\u0275fac=function(Ke){return new(Ke||vn)},vn.\u0275prov=e.Yz7({token:vn,factory:vn.\u0275fac}),vn})(),mi=(()=>{class vn{constructor(){this.changes=new a.x}notifyLoaded(Ke){this.changes.next(Ke)}}return vn.\u0275fac=function(Ke){return new(Ke||vn)},vn.\u0275prov=e.Yz7({token:vn,factory:vn.\u0275fac}),vn})();const Eo=/^(?:a|input|select|option|textarea|button|object)$/i,Ko=(vn,Xe)=>{const Ke=vn.matches||vn.msMatchesSelector||vn.webkitMatchesSelector;return!!Ke&&Ke.call(vn,Xe)},xo=(vn,Xe)=>{if(!document.documentElement.contains(vn))return null;let Ke=vn;for(;null!==Ke&&1===Ke.nodeType;){if(Ko(Ke,Xe))return Ke;Ke=Ke.parentElement||Ke.parentNode}return null},Bn=()=>{},Xt=vn=>null!=vn,Ji=vn=>null==vn,En=vn=>Array.isArray(vn),Ki=vn=>"boolean"==typeof vn,Fn=vn=>{const Xe="li.k-treeview-item";return(0,n.X_)()?vn.closest?vn.closest(Xe):xo(vn,Xe):null},oi=vn=>{if(vn.tagName){const Xe=vn.tagName.toLowerCase(),Ke=vn.getAttribute("tabIndex"),ze="-1"===Ke;let St=null!==Ke&&!ze;return Eo.test(Xe)&&(St=!vn.disabled&&!ze),St}return!1},It=vn=>{if(!(0,n.X_)())return null;let Ke=vn;for(;Ke&&!Ko(Ke,".k-treeview-leaf:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview");)Ke=Ke.parentNode;return Ke?Ko(Ke,".k-treeview-leaf:not(.k-treeview-load-more-button)"):void 0},xt=vn=>Xt(xo(vn,".k-treeview-leaf.k-treeview-load-more-button")),Mt=(vn,Xe)=>!!((vn,Xe)=>{for(;vn&&!Xe(vn);)vn=vn.parentNode;return vn})(vn,Ke=>Ke===Xe),pt=vn=>vn.nativeElement.querySelector('li[tabindex="0"]'),tt=vn=>vn?vn.getAttribute("data-treeindex"):"",Ne=vn=>(vn||{}).index,vt=(vn,Xe)=>!Xt(vn)&&!Xt(Xe)||Xt(vn)&&Xt(Xe)&&vn.item.dataItem===Xe.item.dataItem,ln=vn=>Xt(vn)?vn.item.dataItem:vn,jn=vn=>vn&&Array.isArray(vn)&&0!==vn.length,Pi=(vn,Xe,{operator:Ke,ignoreCase:ze,mode:St},it,Dt=0)=>{const Hn="string"==typeof it?it:it[Dt];vn.forEach(Ui=>{const Sn=("string"==typeof Ke?_i(Hn,Ke,ze):Ke)(Ui.dataItem,Xe);Ui.isMatch=Sn,Ui.visible=Sn,Ui.containsMatches=!1,Sn&&go(Ui.parent),Ui.children&&Ui.children.length>0&&("strict"!==St&&Sn?si(Ui.children):Pi(Ui.children,Xe,{operator:Ke,ignoreCase:ze,mode:St},it,Dt+1))})},go=vn=>{Xt(vn)&&(vn.containsMatches=!0,vn.visible=!0,Xt(vn.parent)&&!vn.parent.containsMatches&&go(vn.parent))},si=vn=>{vn.forEach(Xe=>{Xe.visible=!0,Xe.children&&si(Xe.children)})},ot={contains:(vn,Xe)=>vn.indexOf(Xe)>=0,doesnotcontain:(vn,Xe)=>-1===vn.indexOf(Xe),startswith:(vn,Xe)=>0===vn.lastIndexOf(Xe,0),doesnotstartwith:(vn,Xe)=>-1===vn.lastIndexOf(Xe,0),endswith:(vn,Xe)=>vn.indexOf(Xe,vn.length-Xe.length)>=0,doesnotendwith:(vn,Xe)=>vn.indexOf(Xe,vn.length-Xe.length)<0},_i=(vn,Xe,Ke)=>(ze,St)=>((vn,Xe)=>(Ke,ze)=>Xe?vn(Ke.toLowerCase(),ze.toLowerCase()):vn(Ke,ze))(ot[Xe],Ke)((0,C.Yn)(vn)(ze),St),wi=(vn,Xe)=>[vn,Xe].filter(Ke=>Xt(Ke)).join("_"),zn=(vn,Xe)=>{if(!Xt(vn)||0===vn.children.length)return[];let Ke=vn.children;return Xt(Xe)&&(Ke=Ke.filter(Xe)),Ke.forEach(ze=>Ke=Ke.concat(zn(ze,Xe))),Ke},Ei=(vn,Xe)=>vn.size===Xe.size&&Array.from(vn).every(Ke=>Xe.has(Ke)),li=(vn,Xe)=>({small:`k-${vn}-sm`,medium:`k-${vn}-md`,large:`k-${vn}-lg`}[Xe]),Xi=vn=>vn||{},ki=vn=>Xi(vn).children||[],bo=vn=>{if(!Array.isArray(vn)||0===vn.length)return null;for(let ze=vn.length-1;ze>=0;ze-=1){const St=vn[ze];if(St.visible)return St}return null};class jo{constructor(){this.ib=new Mi,this.nodes=[]}firstVisibleNode(){return(this.nodes||[]).find(Xe=>Xe.visible)}lastVisibleNode(){let Xe=bo(this.nodes);for(;Xt(Xe)&&ki(Xe).length>0;){const Ke=ki(Xe),ze=bo(Ke);if(!Xt(ze))return Xe;Xe=ze}return Xe}closestNode(Xe){const{prev:Ke}=Xi(this.findNode(Xe)),ze=Ke||this.firstVisibleNode();return Xi(ze).index===Xe?this.visibleSibling(ze,1):ze}firstFocusableNode(){return this.nodes.find(Xe=>!Xe.disabled&&Xe.visible)}findNode(Xe){return this.find(Xe,this.nodes)}findParent(Xe){const Ke=this.ib.level(Xe)-1;return this.findNode(this.ib.indexForLevel(Xe,Ke))}findVisibleChild(Xe){const Ke=this.findNode(Xe);return ki(Ke).find(St=>St.visible)}findVisiblePrev(Xe){const Ke=Xe.index,ze=this.findParent(Ke),St=this.ib.lastLevelIndex(Ke),Dt=this.container(ze).slice(0,St).every(Co=>!Co.visible);if(0===St||Dt)return ze;const Hn=this.findNode(Ke);let Ui=this.visibleSibling(Hn,-1);if(Ui){let Co=this.container(Ui);for(;Co.length>0&&Co.some(Sn=>Sn.visible);)Ui=bo(Co),Co=this.container(Ui)}return Ui}findVisibleNext(Xe){const Ke=this.container(Xe),ze=Ke.some(St=>St.visible);return 0!==Ke.length&&ze?Ke.find(St=>St.visible):this.visibleSibling(Xe,1)}registerItem(Xe,Ke,ze,St=!1,it=!0){const Dt=[],Hn=this.ib.level(Ke),Ui=this.findParent(Ke);(Ui||1===Hn)&&this.insert({id:Xe,children:Dt,index:Ke,parent:Ui,disabled:ze,loadMoreButton:St,visible:it},Ui)}unregisterItem(Xe,Ke){const ze=this.find(Ke,this.nodes);if(!ze||ze.id!==Xe)return;const St=this.container(ze.parent);St.splice(St.indexOf(ze),1)}childLevel(Xe){const Ke=Xe.filter(ze=>Xt(ze));return Ke&&Ke.length?this.ib.level(Ke[0].index):1}container(Xe){return Xe?Xe.children:this.nodes}find(Xe,Ke){const ze=this.childLevel(Ke),St=this.ib.indexForLevel(Xe,ze),it=ze===this.ib.level(Xe),Dt=Ke.find(Hn=>Hn&&Hn.index===St);return Dt?it?Dt:this.find(Xe,Dt.children):null}insert(Xe,Ke){this.container(Ke).splice(this.ib.lastLevelIndex(Xe.index),0,Xe)}visibleSibling(Xe,Ke){if(!Xe)return null;const ze=this.findParent(Xe.index),St=this.container(ze);let it=St.indexOf(Xe)+Ke,Dt=St[it];for(;Xt(Dt);){if(Dt.visible)return Dt;it+=Ke,Dt=St[it]}return this.visibleSibling(ze,Ke)}}let wn=(()=>{class vn{constructor(Ke){this.localization=Ke,this.expands=new a.x,this.moves=new a.x,this.checks=new a.x,this.selects=new a.x,this.deselectAllButCurrentItem=new a.x,this.loadMore=new a.x,this.navigable=!0,this.selection="single",this.actions={[n.R8.ArrowUp]:()=>this.activate(this.model.findVisiblePrev(this.focusableItem),!0),[n.R8.ArrowDown]:()=>this.activate(this.model.findVisibleNext(this.focusableItem),!0),[n.R8.ArrowLeft]:()=>!this.isLoadMoreButton&&this.expand({expand:this.localization.rtl,intercept:this.localization.rtl?this.moveToFirstVisibleChild:this.moveToParent}),[n.R8.ArrowRight]:()=>!this.isLoadMoreButton&&this.expand({expand:!this.localization.rtl,intercept:this.localization.rtl?this.moveToParent:this.moveToFirstVisibleChild}),[n.R8.Home]:()=>this.activate(this.model.firstVisibleNode(),!0),[n.R8.End]:()=>this.activate(this.model.lastVisibleNode(),!0),[n.R8.Enter]:ze=>this.handleEnter(ze),[n.R8.Space]:()=>this.handleSpace()},this.isFocused=!1,this.shouldScroll=!1,this._model=new jo,this.moveToFirstVisibleChild=this.moveToFirstVisibleChild.bind(this),this.moveToParent=this.moveToParent.bind(this)}get model(){return this._model}set model(Ke){this._model=Ke}get activeIndex(){return Ne(this.activeItem)||null}get isActiveExpanded(){return this.activeItem&&this.activeItem.children.length>0}get isLoadMoreButton(){return this.activeItem&&this.activeItem.loadMoreButton}get focusableItem(){return this.activeItem||this.model.firstFocusableNode()}activate(Ke,ze=!1){!this.navigable||!Ke||this.isActive(Ne(Ke))||(this.isFocused=!0,this.activeItem=Ke||this.activeItem,this.shouldScroll=ze,this.notifyMove())}activateParent(Ke){this.activate(this.model.findParent(Ke))}activateIndex(Ke){Ke&&this.activate(this.model.findNode(Ke))}activateClosest(Ke){!Ke||Ne(this.focusableItem)!==Ke||(this.activeItem=this.model.closestNode(Ke),this.notifyMove())}activateFocusable(){this.activeItem||(this.activeItem=this.model.firstVisibleNode(),this.notifyMove())}deactivate(){!this.navigable||!this.isFocused||(this.isFocused=!1,this.notifyMove())}checkIndex(Ke){this.isDisabled(Ke)||this.checks.next(Ke)}selectIndex(Ke){this.isDisabled(Ke)||this.selects.next(Ke)}notifyLoadMore(Ke){Xt(Ke)&&this.loadMore.next(Ke)}isActive(Ke){return!!Ke&&this.isFocused&&this.activeIndex===Ke}isFocusable(Ke){return Ne(this.focusableItem)===Ke}isDisabled(Ke){return!!Ke&&this.model.findNode(Ke).disabled}registerItem(Ke,ze,St,it=!1,Dt=!0){const Hn=this.model.findNode(ze);Xt(Hn)&&(this.model.unregisterItem(Hn.id,Hn.index),this.isActive(ze)&&this.deactivate()),this.model.registerItem(Ke,ze,St,it,Dt)}updateItem(Ke,ze,St=!0){const it=this.model.findNode(Ke);Xt(it)&&this.isActive(Ke)&&this.deactivate(),it.disabled=ze,it.visible=St}unregisterItem(Ke,ze){this.isActive(ze)&&this.activateParent(ze),this.model.unregisterItem(Ke,ze)}move(Ke){if(!this.navigable)return;const ze=this.actions[Ke.keyCode];ze&&(ze(Ke),Ke.preventDefault())}expand({expand:Ke,intercept:ze}){const St=Ne(this.activeItem);!St||ze(St)||this.notifyExpand(Ke)}moveToParent(){return!this.isActiveExpanded&&(this.activate(this.model.findParent(Ne(this.activeItem))),!0)}moveToFirstVisibleChild(){return!!this.isActiveExpanded&&(this.activate(this.model.findVisibleChild(Ne(this.activeItem))),!0)}notifyExpand(Ke){this.expands.next(this.navigationState(Ke))}notifyMove(){this.moves.next(this.navigationState())}navigationState(Ke=!1){return{expand:Ke,index:this.activeIndex,isFocused:this.isFocused,shouldScroll:this.shouldScroll}}handleEnter(Ke){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):Ke.ctrlKey||Ke.metaKey?this.selectIndex(this.activeIndex):"multiple"===this.selection?this.deselectAllButCurrentItem.next({dataItem:this.activeItem,index:this.activeIndex}):this.selectIndex(this.activeIndex))}handleSpace(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.checkIndex(this.activeIndex))}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.LFG(o.oQ))},vn.\u0275prov=e.Yz7({token:vn,factory:vn.\u0275fac}),vn})(),Zi=(()=>{class vn{constructor(){this.changes=new a.x}childrenLoaded(Ke,ze){this.changes.next({item:Ke,children:ze})}}return vn.\u0275fac=function(Ke){return new(Ke||vn)},vn.\u0275prov=e.Yz7({token:vn,factory:vn.\u0275fac}),vn})(),oo=(()=>{class vn{constructor(Ke){this.templateRef=Ke}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.Y36(e.Rgc,8))},vn.\u0275dir=e.lG2({type:vn,selectors:[["","kendoTreeViewNodeTemplate",""]]}),vn})(),Bi=(()=>{class vn{constructor(Ke){this.templateRef=Ke}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.Y36(e.Rgc,8))},vn.\u0275dir=e.lG2({type:vn,selectors:[["","kendoTreeViewLoadMoreButtonTemplate",""]]}),vn})(),Xo=(()=>{class vn{}return vn.\u0275fac=function(Ke){return new(Ke||vn)},vn.\u0275prov=e.Yz7({token:vn,factory:vn.\u0275fac}),vn})(),Lo=(()=>{class vn{}return vn.\u0275fac=function(Ke){return new(Ke||vn)},vn.\u0275prov=e.Yz7({token:vn,factory:vn.\u0275fac}),vn})(),or=(()=>{class vn{constructor(){this.changes=new a.x}isFirstSelected(Ke){return this.firstIndex===Ke}setFirstSelected(Ke,ze){this.firstIndex===Ke&&!1===ze?this.firstIndex=null:!this.firstIndex&&ze&&(this.firstIndex=Ke)}select(Ke,ze){this.changes.next({dataItem:ze,index:Ke})}}return vn.\u0275fac=function(Ke){return new(Ke||vn)},vn.\u0275prov=e.Yz7({token:vn,factory:vn.\u0275fac}),vn})();const xr=/\d+$/;let Nr=(()=>{class vn{constructor(){this.map=new Map}reset(){this.map.clear()}registerItem(Ke,ze){const St={children:[],item:Ke,parent:this.item(Ne(ze))};this.map.set(Ke.index,St)}registerChildren(Ke,ze){const St=this.item(Ke);St&&(St.children=ze)}unregisterItem(Ke,ze){const St=this.item(Ke);St&&St.item.dataItem===ze&&(this.map.delete(Ke),St.parent&&St.parent.children&&(St.parent.children=St.parent.children.filter(it=>it.dataItem!==ze)))}replaceItem(Ke,ze,St){ze&&(this.unregisterItem(Ke,ze.dataItem),this.registerItem(ze,St),this.addToParent(ze,St))}itemLookup(Ke){const ze=this.item(Ke);return ze?{children:this.mapChildren(ze.children),item:ze.item,parent:ze.parent}:null}hasItem(Ke){return this.map.has(Ke)}item(Ke){return this.map.get(Ke)||null}addToParent(Ke,ze){if(ze){const St=this.item(ze.index),it=parseInt(xr.exec(Ke.index)[0],10);St.children=St.children||[],St.children.splice(it,0,Ke)}}mapChildren(Ke=[]){return Ke.map(ze=>{const{item:St,parent:it,children:Dt}=this.item(ze.index);return{children:this.mapChildren(Dt),item:St,parent:it}})}}return vn.\u0275fac=function(Ke){return new(Ke||vn)},vn.\u0275prov=e.Yz7({token:vn,factory:vn.\u0275fac}),vn})(),as=(()=>{class vn{constructor(Ke,ze,St){this.element=Ke,this.renderer=ze,this.changeDetector=St,this.id=`_${(0,n.M8)()}`,this.tabindex=0,this.size="medium",this.checkStateChange=new e.vpe,this.checkState="none"}get classWrapper(){return!0}get indeterminate(){return"indeterminate"===this.checkState}get checked(){return"checked"===this.checkState}get checkBoxClasses(){return`k-checkbox ${this.size?li("checkbox",this.size):""} k-rounded-md`}ngOnInit(){this.renderer.removeAttribute(this.element.nativeElement,"tabindex")}ngDoCheck(){this.checkState=this.isChecked(this.node,this.index)}handleChange(Ke){const ze=Ke.target.checked?"checked":"none";this.checkState=ze,this.changeDetector.detectChanges(),this.checkStateChange.emit(ze)}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO))},vn.\u0275cmp=e.Xpm({type:vn,selectors:[["kendo-checkbox"]],hostVars:2,hostBindings:function(Ke,ze){2&Ke&&e.ekj("k-checkbox-wrapper",ze.classWrapper)},inputs:{id:"id",isChecked:"isChecked",node:"node",index:"index",labelText:"labelText",tabindex:"tabindex",size:"size"},outputs:{checkStateChange:"checkStateChange"},decls:3,vars:9,consts:[["type","checkbox","role","none",3,"id","checked","indeterminate","tabindex","change"],["tabindex","-1",1,"k-checkbox-label",3,"for"]],template:function(Ke,ze){1&Ke&&(e.TgZ(0,"input",0),e.NdJ("change",function(it){return ze.handleChange(it)}),e.qZA(),e.TgZ(1,"label",1),e._uU(2),e.qZA()),2&Ke&&(e.Tol(ze.checkBoxClasses),e.Q6J("id",ze.id)("checked",ze.checked)("indeterminate",ze.indeterminate)("tabindex",ze.tabindex),e.uIk("aria-hidden","true"),e.xp6(1),e.Q6J("for",ze.id),e.xp6(1),e.Oqu(ze.labelText))},encapsulation:2}),vn})();const ji=(vn,Xe)=>({dataItem:Xe,index:vn});let Fo=0,Gn=(()=>{class vn{constructor(Ke,ze,St,it,Dt,Hn,Ui){this.element=Ke,this.expandService=ze,this.navigationService=St,this.selectionService=it,this.lookupService=Dt,this.renderer=Hn,this.ib=Ui,this.role="treeitem",this.loadOnDemand=!0,this.isDisabled=!1,this.isVisible=!0,this.ariaChecked="false",this.id=Fo++,this.isInitialized=!1,this.subscriptions=[],this.subscribe()}set isChecked(Ke){this.ariaChecked="checked"===Ke?"true":"indeterminate"===Ke?"mixed":"false"}get isExpanded(){return this._isExpanded||!1}set isExpanded(Ke){this._isExpanded=Ke}get isSelected(){return this._isSelected||!1}set isSelected(Ke){this._isSelected=Ke}get isButton(){return"button"===this.role}get treeItem(){return ji(this.index,this.dataItem)}get parentTreeItem(){return this.parentDataItem?ji(this.parentIndex,this.parentDataItem):null}ngOnInit(){this.loadOnDemand&&!this.isButton&&this.lookupService.registerItem(this.treeItem,this.parentTreeItem),this.registerNavigationItem(),this.isInitialized=!0,this.setAttribute("role",this.role),this.setAriaAttributes(),this.updateTabIndex()}ngOnChanges(Ke){const{index:ze}=Ke;(0,n.aG)(["index","checkable","isChecked","expandable","isExpanded","selectable","isSelected"],Ke)&&this.setAriaAttributes(),this.loadOnDemand&&!this.isButton&&this.moveLookupItem(Ke),this.moveNavigationItem(ze),(0,n.aG)(["isDisabled","isVisible"],Ke)&&this.updateNodeAvailability()}ngOnDestroy(){this.navigationService.unregisterItem(this.id,this.index),this.loadOnDemand&&!this.isButton&&this.lookupService.unregisterItem(this.index,this.dataItem),this.subscriptions=this.subscriptions.reduce((Ke,ze)=>(ze.unsubscribe(),Ke),[])}subscribe(){this.subscriptions=[this.navigationService.moves.subscribe(Ke=>{this.updateTabIndex(),this.focusItem(Ke.shouldScroll)}),this.navigationService.expands.pipe((0,w.h)(({index:Ke})=>Ke===this.index&&!this.isDisabled)).subscribe(({expand:Ke})=>this.expand(Ke))]}registerNavigationItem(){this.navigationService.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible),this.activateItem()}activateItem(){if(this.isDisabled)return;const Ke=this.navigationService,ze=this.selectionService,St=this.index;ze.setFirstSelected(St,this.isSelected),!Ke.isActive(St)&&ze.isFirstSelected(St)&&Ke.activateIndex(St)}expand(Ke){this.expandService[Ke?"expand":"collapse"](this.index,this.dataItem)}isFocusable(){return!this.isDisabled&&this.navigationService.isFocusable(this.index)}focusItem(Ke=!1){this.isInitialized&&this.navigationService.isActive(this.index)&&this.element.nativeElement.focus({preventScroll:!Ke})}moveLookupItem(Ke={}){const{dataItem:ze,index:St,parentDataItem:it,parentIndex:Dt}=Ke;St&&St.firstChange||!(ze||St||it||Dt)||this.lookupService.replaceItem((St||{}).previousValue||this.index,this.treeItem,this.parentTreeItem)}moveNavigationItem(Ke={}){const{currentValue:ze,firstChange:St,previousValue:it}=Ke;!St&&Xt(ze)&&Xt(it)&&(this.navigationService.unregisterItem(this.id,it),this.navigationService.registerItem(this.id,ze,this.isDisabled,this.isButton))}updateNodeAvailability(){const Ke=this.navigationService;this.isDisabled||!this.isVisible?Ke.activateClosest(this.index):Ke.activateFocusable(),Ke.updateItem(this.index,this.isDisabled,this.isVisible)}setAriaAttributes(){this.setAttribute("aria-level",this.ib.level(this.index).toString()),this.setAttribute("aria-expanded",this.expandable?this.isExpanded.toString():null),this.setAttribute("aria-selected",this.selectable?this.isSelected.toString():null),this.setAttribute("aria-checked",this.checkable?this.ariaChecked:null)}updateTabIndex(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")}setAttribute(Ke,ze){Xt(ze)?this.renderer.setAttribute(this.element.nativeElement,Ke,ze):this.renderer.removeAttribute(this.element.nativeElement,Ke)}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.Y36(e.SBq),e.Y36(nn),e.Y36(wn),e.Y36(or),e.Y36(Nr),e.Y36(e.Qsj),e.Y36(Mi))},vn.\u0275dir=e.lG2({type:vn,selectors:[["","kendoTreeViewItem",""]],inputs:{dataItem:"dataItem",index:"index",parentDataItem:"parentDataItem",parentIndex:"parentIndex",role:"role",loadOnDemand:"loadOnDemand",checkable:"checkable",selectable:"selectable",expandable:"expandable",isChecked:"isChecked",isDisabled:"isDisabled",isVisible:"isVisible",isExpanded:"isExpanded",isSelected:"isSelected"},features:[e.TTD]}),vn})(),Io=(()=>{class vn{constructor(Ke,ze,St){this.expandService=Ke,this.loadingService=ze,this.cd=St,this._loading=!1}get loading(){return this._loading}set loading(Ke){this._loading=Ke,this.cd.markForCheck()}ngOnInit(){const Ke=this.loadingService.changes.pipe((0,w.h)(ze=>ze===this.index));this.subscription=this.expandService.changes.pipe((0,w.h)(({index:ze})=>ze===this.index),(0,g.b)(({expand:ze})=>{!ze&&this.loading&&(this.loading=!1)}),(0,w.h)(({expand:ze})=>ze),(0,M.w)(ze=>(0,l.of)(ze).pipe((0,p.g)(100),(0,E.R)(Ke)))).subscribe(()=>this.loading=!0),this.subscription.add(Ke.subscribe(()=>this.loading=!1))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.Y36(nn),e.Y36(mi),e.Y36(e.sBO))},vn.\u0275dir=e.lG2({type:vn,selectors:[["","kendoTreeViewLoading",""]],hostVars:2,hostBindings:function(Ke,ze){2&Ke&&e.ekj("k-i-loading",ze.loading)},inputs:{index:["kendoTreeViewLoading","index"]}}),vn})(),wr=(()=>{class vn{constructor(Ke,ze,St,it){this.element=Ke,this.navigationService=ze,this.selectionService=St,this.renderer=it,this.initialSelection=!1,this.isSelected=sn,this.subscriptions=new u.w0,this.subscriptions.add(this.navigationService.moves.subscribe(this.updateFocusClass.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe((0,w.h)(Dt=>Dt===this.index)).subscribe(Dt=>this.selectionService.select(Dt,this.dataItem))),this.subscriptions.add(this.selectionService.changes.subscribe(()=>{this.updateSelectionClass(this.isSelected(this.dataItem,this.index))}))}ngOnChanges(Ke){Ke.initialSelection&&this.updateSelectionClass(this.initialSelection),Ke.index&&this.updateFocusClass()}ngOnDestroy(){this.subscriptions.unsubscribe()}updateFocusClass(){this.render(this.navigationService.isActive(this.index),"k-focus")}updateSelectionClass(Ke){this.render(Ke,"k-selected")}render(Ke,ze){this.renderer[Ke?"addClass":"removeClass"](this.element.nativeElement,ze)}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.Y36(e.SBq),e.Y36(wn),e.Y36(or),e.Y36(e.Qsj))},vn.\u0275dir=e.lG2({type:vn,selectors:[["","kendoTreeViewItemContent",""]],inputs:{dataItem:"dataItem",index:"index",initialSelection:"initialSelection",isSelected:"isSelected"},features:[e.TTD]}),vn})();const bs="k-treeview-top",ba="k-treeview-mid",ms="k-treeview-bot";let Oa=(()=>{class vn{constructor(Ke,ze,St,it,Dt,Hn,Ui,Co,Sn){this.expandService=Ke,this.loadingService=ze,this.indexBuilder=St,this.treeViewLookupService=it,this.navigationService=Dt,this.nodeChildrenService=Hn,this.dataChangeNotification=Ui,this.changeDetectorRef=Co,this.localization=Sn,this.caretAltDownIcon=R.M7i,this.caretAltRightIcon=R.bI8,this.caretAltLeftIcon=R.Me8,this.kGroupClass=!0,this.loadOnDemand=!0,this.textField="",this.size="medium",this.initialNodesLoaded=!1,this.loadingMoreNodes=!1,this.isItemExpandable=(Vn,Dn)=>this.expandDisabledNodes||!this.isItemDisabled(Vn,Dn),this._data=[],this.singleRecordSubscriptions=new u.w0,this.isChecked=()=>"none",this.isDisabled=()=>!1,this.hasCheckbox=()=>!0,this.isExpanded=()=>!1,this.isVisible=()=>!0,this.isSelected=()=>!1,this.children=()=>(0,l.of)([]),this.hasChildren=()=>!1}get role(){return this.parentIndex?"group":"tree"}getFontIcon(Ke,ze){return this.isExpanded(Ke,ze)?"caret-alt-down":this.localization.rtl?"caret-alt-left":"caret-alt-right"}getSvgIcon(Ke,ze){return this.isExpanded(Ke,ze)?R.M7i:this.localization.rtl?R.Me8:R.bI8}get moreNodesAvailable(){return!(!Xt(this.loadMoreService)||0===this.data.length)&&this.pageSize<this.totalNodesCount}get pageSize(){return Xt(this.loadMoreService)?this.loadMoreService.getGroupSize(this.parentDataItem):null}set pageSize(Ke){this.loadMoreService.setGroupSize(this.parentDataItem,Ke)}get data(){return Xt(this.pageSize)?this._data.slice(0,this.pageSize>0?this.pageSize:0):this._data}set data(Ke){this._data=Ke,this.registerLoadedNodes(this.data)}get loadMoreButtonIndex(){return this.loadMoreService?this.nodeIndex(this.data.length):null}get totalNodesCount(){return this.loadMoreService?this.loadMoreService.getTotalNodesCount(this.parentDataItem,this._data.length):this.data.length}get hasTemplate(){return Xt(this.nodeTemplateRef)}expandNode(Ke,ze,St){St?this.expandService.expand(Ke,ze):this.expandService.collapse(Ke,ze)}checkNode(Ke){this.navigationService.checkIndex(Ke),this.navigationService.activateIndex(Ke)}nodeIndex(Ke){return this.indexBuilder.nodeIndex(Ke.toString(),this.parentIndex)}nodeText(Ke){const ze=En(this.textField)?this.textField[0]:this.textField;return(0,C.Yn)(ze)(Ke)}ngOnDestroy(){Xt(this.nodesSubscription)&&this.nodesSubscription.unsubscribe(),Xt(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.singleRecordSubscriptions.unsubscribe()}ngOnInit(){this.subscribeToNodesChange(),this.singleRecordSubscriptions.add(this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))),this.singleRecordSubscriptions.add(this.navigationService.loadMore.pipe((0,w.h)(Ke=>Ke===this.loadMoreButtonIndex)).subscribe(this.loadMoreNodes.bind(this)))}ngOnChanges(Ke){Ke.parentIndex&&this.loadOnDemand&&this.setNodeChildren(this.mapToTreeItem(this.data))}fetchChildren(Ke,ze){return this.children(Ke).pipe((0,b.K)(()=>(this.loadingService.notifyLoaded(ze),d.E)),(0,g.b)(()=>this.loadingService.notifyLoaded(ze)))}get nextFields(){return En(this.textField)?this.textField.length>1?this.textField.slice(1):this.textField:[this.textField]}loadMoreNodes(){Xt(this.loadMoreService.loadMoreNodes)?this.fetchMoreNodes():this.loadMoreLocalNodes()}isItemDisabled(Ke,ze){return this.disabled&&!this.disableParentNodesOnly||this.isDisabled(Ke,this.nodeIndex(ze))}setItemClasses(Ke,ze){return 1===Ke?this.parentIndex?ms:`${bs} ${ms}`:0===ze?bs:ze>0&&ze<Ke-1?ba:ze===this.totalNodesCount-1?ms:ba}loadMoreLocalNodes(){const Ke=this.loadMoreButtonIndex;this.pageSize+=this.loadMoreService.getInitialPageSize(this.parentDataItem),this.registerLoadedNodes(this.data),this.changeDetectorRef.detectChanges(),this.reselectItemAt(Ke)}fetchMoreNodes(){this.loadingMoreNodes||(this.loadingMoreNodes=!0,Xt(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.loadMoreNodesSubscription=this.loadMoreService.loadMoreNodes({dataItem:this.parentDataItem,skip:this.data.length,take:this.loadMoreService.getInitialPageSize(this.parentDataItem)}).pipe((0,I.x)(()=>this.loadingMoreNodes=!1)).subscribe(Ke=>{if(!(Array.isArray(Ke)&&Ke.length>0))return;const ze=this.loadMoreButtonIndex;this.pageSize+=Ke.length,this.data=this.data.concat(Ke),this.navigationService.isActive(ze)&&(this.changeDetectorRef.detectChanges(),this.reselectItemAt(ze))}))}setNodeChildren(Ke){this.treeViewLookupService.registerChildren(this.parentIndex,Ke)}mapToTreeItem(Ke){return this.parentIndex?Ke.map((ze,St)=>({dataItem:ze,index:this.nodeIndex(St)})):[]}emitChildrenLoaded(Ke){if(!this.parentIndex)return;const ze=Ke.filter(St=>St.dataItem);this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},ze)}subscribeToNodesChange(){this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe(Ke=>{this.data=Ke,this.initialNodesLoaded=!0})}reselectItemAt(Ke){Xt(Ke)&&(this.navigationService.deactivate(),this.navigationService.activateIndex(Ke))}registerLoadedNodes(Ke=[]){const ze=this.mapToTreeItem(Ke);this.loadOnDemand&&this.setNodeChildren(ze),this.emitChildrenLoaded(ze)}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.Y36(nn),e.Y36(mi),e.Y36(Mi),e.Y36(Nr),e.Y36(wn),e.Y36(Zi),e.Y36($n),e.Y36(e.sBO),e.Y36(o.oQ))},vn.\u0275cmp=e.Xpm({type:vn,selectors:[["","kendoTreeViewGroup",""]],hostVars:3,hostBindings:function(Ke,ze){2&Ke&&(e.uIk("role",ze.role),e.ekj("k-treeview-group",ze.kGroupClass))},inputs:{checkboxes:"checkboxes",expandIcons:"expandIcons",disabled:"disabled",selectable:"selectable",touchActions:"touchActions",disableParentNodesOnly:"disableParentNodesOnly",loadOnDemand:"loadOnDemand",trackBy:"trackBy",nodes:"nodes",textField:"textField",parentDataItem:"parentDataItem",parentIndex:"parentIndex",nodeTemplateRef:"nodeTemplateRef",loadMoreButtonTemplateRef:"loadMoreButtonTemplateRef",loadMoreService:"loadMoreService",size:"size",expandDisabledNodes:"expandDisabledNodes",isChecked:"isChecked",isDisabled:"isDisabled",hasCheckbox:"hasCheckbox",isExpanded:"isExpanded",isVisible:"isVisible",isSelected:"isSelected",children:"children",hasChildren:"hasChildren"},features:[e.TTD],attrs:O,decls:2,vars:3,consts:[["class","k-treeview-item","kendoTreeViewItem","",3,"k-hidden","dataItem","index","parentDataItem","parentIndex","loadOnDemand","checkable","isChecked","isDisabled","isVisible","expandable","isExpanded","selectable","isSelected",4,"ngFor","ngForOf","ngForTrackBy"],["class","k-treeview-item","kendoTreeViewItem","","role","button",3,"k-treeview-load-more-checkboxes-container","selectable","checkable","expandable","index","parentDataItem","parentIndex",4,"ngIf"],["kendoTreeViewItem","",1,"k-treeview-item",3,"dataItem","index","parentDataItem","parentIndex","loadOnDemand","checkable","isChecked","isDisabled","isVisible","expandable","isExpanded","selectable","isSelected"],[3,"ngClass"],["class","k-treeview-toggle",3,"k-disabled","kendoTreeViewLoading","click",4,"ngIf"],[3,"k-disabled","size","node","index","isChecked","tabindex","checkStateChange",4,"ngIf"],["kendoTreeViewItemContent","",1,"k-treeview-leaf",3,"dataItem","index","initialSelection","isSelected"],[1,"k-treeview-leaf-text"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["kendoTreeViewGroup","","role","group",3,"size","nodes","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","hasCheckbox","disabled","expandDisabledNodes","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","parentIndex","parentDataItem","textField","loadMoreService","trackBy","disableParentNodesOnly",4,"ngIf"],[1,"k-treeview-toggle",3,"kendoTreeViewLoading","click"],[3,"name","svgIcon"],[3,"size","node","index","isChecked","tabindex","checkStateChange"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["kendoTreeViewGroup","","role","group",3,"size","nodes","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","hasCheckbox","disabled","expandDisabledNodes","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","parentIndex","parentDataItem","textField","loadMoreService","trackBy","disableParentNodesOnly"],["kendoTreeViewItem","","role","button",1,"k-treeview-item",3,"selectable","checkable","expandable","index","parentDataItem","parentIndex"],[1,"k-treeview-bot"],["class","k-icon k-i-loading",4,"ngIf"],["kendoTreeViewItemContent","",1,"k-treeview-leaf","k-treeview-load-more-button",3,"index"],[4,"ngIf"],[1,"k-icon","k-i-loading"]],template:function(Ke,ze){1&Ke&&(e.YNc(0,re,10,32,"li",0),e.YNc(1,q,7,14,"li",1)),2&Ke&&(e.Q6J("ngForOf",ze.data)("ngForTrackBy",ze.trackBy),e.xp6(1),e.Q6J("ngIf",ze.initialNodesLoaded&&ze.moreNodesAvailable))},dependencies:[f.ZS,as,vn,F.sg,Gn,F.mk,F.O5,Io,wr,F.RF,F.n9,F.tP,F.ED],encapsulation:2,data:{animation:[(0,k.X$)("toggle",[(0,k.eR)("void => *",[(0,k.oB)({height:0}),(0,k.jt)("0.1s ease-in",(0,k.oB)({height:"*"}))]),(0,k.eR)("* => void",[(0,k.oB)({height:"*"}),(0,k.jt)("0.1s ease-in",(0,k.oB)({height:0}))])])]}}),vn})(),Ea=0;const tr=[nn,Mi,Nr,mi,Zi,wn,or,$n,o.oQ,{provide:o.mM,useValue:"kendo.treeview"},{provide:Xo,useExisting:(0,e.Gpc)(()=>Mr)},{provide:Lo,useExisting:(0,e.Gpc)(()=>Mr)}];let Mr=(()=>{class vn{constructor(Ke,ze,St,it,Dt,Hn,Ui,Co,Sn,Vn,Dn){this.element=Ke,this.changeDetectorRef=ze,this.expandService=St,this.navigationService=it,this.nodeChildrenService=Dt,this.selectionService=Hn,this.treeViewLookupService=Ui,this.ngZone=Co,this.renderer=Sn,this.dataChangeNotification=Vn,this.localization=Dn,this.searchIcon=R.RL9,this.classNames=!0,this.filterInputPlaceholder="",this.fetchNodes=()=>this.data,this.childrenLoaded=new e.vpe,this.onBlur=new e.vpe,this.onFocus=new e.vpe,this.expand=new e.vpe,this.collapse=new e.vpe,this.nodeDragStart=new e.vpe,this.nodeDrag=new e.vpe,this.filterStateChange=new e.vpe,this.nodeDrop=new e.vpe,this.nodeDragEnd=new e.vpe,this.addItem=new e.vpe,this.removeItem=new e.vpe,this.checkedChange=new e.vpe,this.selectionChange=new e.vpe,this.filterChange=new e.vpe,this.nodeClick=new e.vpe,this.nodeDblClick=new e.vpe,this.trackBy=yi,this.isDisabled=ut,this.hasCheckbox=Wt,this.isVisible=fn,this.navigable=!0,this.children=()=>(0,l.of)([]),this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.disableParentNodesOnly=!1,this.checkboxes=!1,this.expandIcons=!1,this.selectable=!1,this.touchActions=!0,this.isActive=!1,this.data=new s.X([]),this._animate=!0,this._size="medium",this.subscriptions=new u.w0,this.domSubscriptions=[],this._nextId=Ea,(0,_.s)(An),Ea++}get direction(){return this.localization.rtl?"rtl":"ltr"}set animate(Ke){this._animate=Ke}get animate(){return!this._animate}set nodeTemplateRef(Ke){this._nodeTemplateRef=Ke}get nodeTemplateRef(){return this._nodeTemplateRef||this.nodeTemplateQuery}set loadMoreButtonTemplateRef(Ke){this._loadMoreButtonTemplateRef=Ke}get loadMoreButtonTemplateRef(){return this._loadMoreButtonTemplateRef||this.loadMoreButtonTemplateQuery}set nodes(Ke){this.data.next(Ke||[]),this.dataChangeNotification.notify()}get nodes(){return this.data.value}get hasChildren(){return this._hasChildren||xn}set hasChildren(Ke){this._hasChildren=Ke,this.expandIcons=!(!this._isExpanded||!this._hasChildren)}get isChecked(){return this._isChecked||mt}set isChecked(Ke){this._isChecked=Ke,this.checkboxes=!!this._isChecked}get isExpanded(){return this._isExpanded||dn}set isExpanded(Ke){this._isExpanded=Ke,this.expandIcons=!(!this._isExpanded||!this._hasChildren)}get isSelected(){return this._isSelected||sn}set isSelected(Ke){this._isSelected=Ke,this.selectable=!!this._isSelected}set size(Ke){const ze=Ke||"medium";"none"!==this.size&&this.renderer.removeClass(this.element.nativeElement,li("treeview",this.size)),this.renderer.addClass(this.element.nativeElement,li("treeview",ze)),this._size=Ke}get size(){return this._size}get treeviewId(){return`treeview_${this._nextId}`}ngOnChanges(Ke){this.navigationService.navigable=!!this.navigable,(0,n.aG)(["nodes","children","hasChildren","loadOnDemand"],Ke,!1)&&!this.loadOnDemand&&this.preloadChildNodes()}ngOnDestroy(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach(Ke=>Ke())}ngOnInit(){this.subscriptions.add(this.nodeChildrenService.changes.subscribe(Ke=>this.childrenLoaded.emit(Ke))),this.subscriptions.add(this.expandService.changes.subscribe(({index:Ke,dataItem:ze,expand:St})=>St?this.expand.emit({index:Ke,dataItem:ze}):this.collapse.emit({index:Ke,dataItem:ze}))),this.subscriptions.add(this.navigationService.checks.subscribe(Ke=>this.checkedChange.emit(this.treeViewLookupService.itemLookup(Ke)))),this.subscriptions.add(this.selectionService.changes.subscribe(Ke=>{(0,n.g$)(this.selectionChange)&&this.ngZone.run(()=>{this.selectionChange.emit(Ke)})})),this.element&&this.ngZone.runOutsideAngular(()=>{this.attachDomHandlers()}),this.size&&this.renderer.addClass(this.element.nativeElement,li("treeview",this.size))}ngAfterViewInit(){this.searchbox&&(this.renderer.setAttribute(this.searchbox.input.nativeElement,"role","searchbox"),this.renderer.setAttribute(this.searchbox.input.nativeElement,"aria-controls",this.treeviewId),this.renderer.setAttribute(this.searchbox.input.nativeElement,"aria-label","searchbar"))}blur(){if(!(0,n.X_)())return;const Ke=pt(this.element);document.activeElement===Ke&&Ke.blur()}focus(Ke){const ze=Ke||Ne(this.navigationService.focusableItem);this.navigationService.activateIndex(ze);const St=pt(this.element);St&&St.focus()}itemLookup(Ke){return this.treeViewLookupService.itemLookup(Ke)}rebindChildren(){this.dataChangeNotification.notify()}expandNode(Ke,ze){this.expandService.expand(ze,Ke)}collapseNode(Ke,ze){this.expandService.collapse(ze,Ke)}getNodePageSize(Ke){return this.verifyLoadMoreService(),this.loadMoreService.getGroupSize(Ke)}setNodePageSize(Ke,ze){this.verifyLoadMoreService(),this.loadMoreService.setGroupSize(Ke,ze)}preloadChildNodes(){this.treeViewLookupService.reset(),this.registerLookupItems(this.nodes)}attachDomHandlers(){const Ke=this.element.nativeElement;this.clickHandler=this.clickHandler.bind(this),this.domSubscriptions.push(this.renderer.listen(Ke,"contextmenu",this.clickHandler),this.renderer.listen(Ke,"click",this.clickHandler),this.renderer.listen(Ke,"dblclick",this.clickHandler),this.renderer.listen(Ke,"focusin",this.focusHandler.bind(this)),this.renderer.listen(Ke,"focusout",this.blurHandler.bind(this)),this.renderer.listen(Ke,"keydown",this.keydownHandler.bind(this)))}focusHandler(Ke){let ze;if(Ko(Ke.target,".k-treeview-item")?ze=Ke.target:oi(Ke.target)||(ze=Fn(Ke.target)),ze){const St=tt(Ke.target);if(this.navigationService.isDisabled(St))return;this.navigationService.activateIndex(St),!this.isActive&&(0,n.g$)(this.onFocus)&&this.ngZone.run(()=>{this.onFocus.emit()}),this.isActive=!0}}blurHandler(Ke){this.isActive&&Ko(Ke.target,".k-treeview-item")&&(!Ke.relatedTarget||!Ko(Ke.relatedTarget,".k-treeview-item")||!Mt(Ke.relatedTarget,this.element.nativeElement))&&(this.navigationService.deactivate(),this.isActive=!1,(0,n.g$)(this.onBlur)&&this.ngZone.run(()=>{this.onBlur.emit()}))}clickHandler(Ke){const ze=Ke.target;if("contextmenu"===Ke.type&&!(0,n.g$)(this.nodeClick)||"click"===Ke.type&&!(0,n.g$)(this.nodeClick)&&!(0,n.g$)(this.selectionChange)&&!xt(ze)||"dblclick"===Ke.type&&!(0,n.g$)(this.nodeDblClick)||oi(ze)||!It(ze)&&!xt(ze)||!Mt(ze,this.element.nativeElement))return;const St=tt(Fn(ze));!St||this.navigationService.isDisabled(St)||this.ngZone.run(()=>{const it=this.treeViewLookupService.itemLookup(St);if("click"===Ke.type){if(this.navigationService.model.findNode(St).loadMoreButton)return void this.navigationService.notifyLoadMore(St);this.navigationService.selectIndex(St)}("dblclick"===Ke.type?this.nodeDblClick:this.nodeClick).emit({item:it.item,originalEvent:Ke,type:Ke.type})})}keydownHandler(Ke){this.isActive&&this.navigable&&this.ngZone.run(()=>{this.navigationService.move(Ke)})}verifyLoadMoreService(){if((0,e.X6Q)()&&!Xt(this.loadMoreService))throw new Error("To use the TreeView paging functionality, you need to assign the `kendoTreeViewLoadMore` directive. See http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/.")}registerLookupItems(Ke,ze=null){if(!Xt(Ke)||0===Ke.length)return;const St=Ne(ze),it=Ke.map((Dt,Hn)=>((vn,Xe,Ke)=>Xt(vn)?{dataItem:vn,index:wi(Ke,Xe)}:null)(Dt,Hn,St));Xt(ze)&&this.treeViewLookupService.registerChildren(St,it),it.forEach(Dt=>{this.treeViewLookupService.registerItem(Dt,ze),this.hasChildren(Dt.dataItem)&&this.children(Dt.dataItem).subscribe(Hn=>this.registerLookupItems(Hn,Dt))})}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(nn),e.Y36(wn),e.Y36(Zi),e.Y36(or),e.Y36(Nr),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36($n),e.Y36(o.oQ))},vn.\u0275cmp=e.Xpm({type:vn,selectors:[["kendo-treeview"]],contentQueries:function(Ke,ze,St){if(1&Ke&&(e.Suo(St,oo,5),e.Suo(St,Bi,5)),2&Ke){let it;e.iGM(it=e.CRH())&&(ze.nodeTemplateQuery=it.first),e.iGM(it=e.CRH())&&(ze.loadMoreButtonTemplateQuery=it.first)}},viewQuery:function(Ke,ze){if(1&Ke&&(e.Gf(se,7,e.s_b),e.Gf(ne,5)),2&Ke){let St;e.iGM(St=e.CRH())&&(ze.assetsContainer=St.first),e.iGM(St=e.CRH())&&(ze.searchbox=St.first)}},hostVars:4,hostBindings:function(Ke,ze){2&Ke&&(e.uIk("dir",ze.direction),e.d8E("@.disabled",ze.animate),e.ekj("k-treeview",ze.classNames))},inputs:{filterInputPlaceholder:"filterInputPlaceholder",expandDisabledNodes:"expandDisabledNodes",animate:"animate",nodeTemplateRef:["nodeTemplate","nodeTemplateRef"],loadMoreButtonTemplateRef:["loadMoreButtonTemplate","loadMoreButtonTemplateRef"],trackBy:"trackBy",nodes:"nodes",textField:"textField",hasChildren:"hasChildren",isChecked:"isChecked",isDisabled:"isDisabled",hasCheckbox:"hasCheckbox",isExpanded:"isExpanded",isSelected:"isSelected",isVisible:"isVisible",navigable:"navigable",children:"children",loadOnDemand:"loadOnDemand",filterable:"filterable",filter:"filter",size:"size",disableParentNodesOnly:"disableParentNodesOnly"},outputs:{childrenLoaded:"childrenLoaded",onBlur:"blur",onFocus:"focus",expand:"expand",collapse:"collapse",nodeDragStart:"nodeDragStart",nodeDrag:"nodeDrag",filterStateChange:"filterStateChange",nodeDrop:"nodeDrop",nodeDragEnd:"nodeDragEnd",addItem:"addItem",removeItem:"removeItem",checkedChange:"checkedChange",selectionChange:"selectionChange",filterChange:"filterChange",nodeClick:"nodeClick",nodeDblClick:"nodeDblClick"},exportAs:["kendoTreeView"],features:[e._Bn(tr),e.TTD],decls:4,vars:24,consts:[["class","k-treeview-filter",4,"ngIf"],["kendoTreeViewGroup","","role","tree",1,"k-treeview-lines",3,"size","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","hasCheckbox","disableParentNodesOnly","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","textField","nodes","loadMoreService","trackBy","expandDisabledNodes"],["assetsContainer",""],[1,"k-treeview-filter"],[3,"size","value","clearButton","placeholder","valueChange"],["searchbox",""],["kendoTextBoxPrefixTemplate",""],["innerCssClass","k-input-icon","name","search",3,"svgIcon"]],template:function(Ke,ze){1&Ke&&(e.YNc(0,ge,4,4,"span",0),e._UZ(1,"ul",1),e.GkF(2,null,2)),2&Ke&&(e.Q6J("ngIf",ze.filterable),e.xp6(1),e.Q6J("size",ze.size)("loadOnDemand",ze.loadOnDemand)("checkboxes",ze.checkboxes)("expandIcons",ze.expandIcons)("selectable",ze.selectable)("touchActions",ze.touchActions)("children",ze.children)("hasChildren",ze.hasChildren)("isChecked",ze.isChecked)("isDisabled",ze.isDisabled)("hasCheckbox",ze.hasCheckbox)("disableParentNodesOnly",ze.disableParentNodesOnly)("isExpanded",ze.isExpanded)("isSelected",ze.isSelected)("isVisible",ze.isVisible)("nodeTemplateRef",null==ze.nodeTemplateRef?null:ze.nodeTemplateRef.templateRef)("loadMoreButtonTemplateRef",null==ze.loadMoreButtonTemplateRef?null:ze.loadMoreButtonTemplateRef.templateRef)("textField",ze.textField)("nodes",ze.fetchNodes)("loadMoreService",ze.loadMoreService)("trackBy",ze.trackBy)("expandDisabledNodes",ze.expandDisabledNodes),e.uIk("id",ze.treeviewId))},dependencies:[x.PL,f.ZS,Oa,F.O5,x.Em],encapsulation:2}),vn})(),ao=(()=>{class vn{constructor(Ke,ze){this.treeView=Ke,this.zone=ze,this.checkedKeysChange=new e.vpe,this.subscriptions=new u.w0,this.checkActions={multiple:it=>this.checkMultiple(it),single:it=>this.checkSingle(it)},this.state=new Set,this.subscriptions.add(this.treeView.checkedChange.subscribe(it=>this.check(it)));const St=[];this.subscriptions.add(this.treeView.childrenLoaded.pipe((0,w.h)(()=>this.options.checkChildren&&this.treeView.loadOnDemand),(0,g.b)(it=>St.push(it)),(0,M.w)(()=>this.zone.onStable.pipe((0,L.q)(1)))).subscribe(()=>this.addCheckedItemsChildren(St))),this.treeView.isChecked=this.isItemChecked.bind(this)}set isChecked(Ke){this.treeView.isChecked=Ke}get options(){const Ke={checkChildren:!0,checkParents:!0,enabled:!0,mode:"multiple"};if(!Xt(this.checkable)||"string"==typeof this.checkable)return Ke;const ze=Ki(this.checkable)?{enabled:this.checkable}:this.checkable;return Object.assign(Ke,ze)}ngOnChanges(Ke){Ke.checkable&&(this.treeView.checkboxes=this.options.enabled,this.toggleCheckOnClick()),(0,n.ln)("checkedKeys",Ke,!1)&&Ke.checkedKeys.currentValue!==this.lastChange&&(this.state=new Set(Ke.checkedKeys.currentValue))}ngOnDestroy(){this.subscriptions.unsubscribe(),this.unsubscribeClick()}isItemChecked(Ke,ze){return this.checkKey?this.state.has(this.itemKey({dataItem:Ke,index:ze}))?"checked":"none":this.isIndexChecked(ze)}isIndexChecked(Ke){const ze=Array.from(this.state).filter((vn=>Xe=>vn===Xe||!!Xe.split&&Xe.split("_").reduce(({key:Ke,result:ze},St)=>vn===(Ke+=St)||ze?{result:!0}:{key:Ke+="_",result:!1},{key:"",result:!1}).result)(Ke));if(((vn,Xe)=>vn.filter(Ke=>Ke===Xe).length>0)(ze,Ke))return"checked";const{mode:St,checkParents:it}=this.options;return"multiple"===St&&it&&ze.length?"indeterminate":"none"}itemKey(Ke){return Xt(this.checkKey)?"string"==typeof this.checkKey&&Xt(Ke.dataItem)?Ke.dataItem[this.checkKey]:"function"==typeof this.checkKey?this.checkKey(Ke):void 0:Ke.index}check(Ke){const{enabled:ze,mode:St}=this.options;ze&&(this.checkActions[St]||Bn)(Ke)}checkSingle(Ke){const ze=this.itemKey(Ke.item),St=this.state.has(ze);this.state.clear(),St||this.state.add(ze),this.notify()}checkMultiple(Ke){this.checkNode(Ke),this.options.checkParents&&this.checkParents(Ke.parent),this.notify()}toggleCheckOnClick(){this.unsubscribeClick(),this.options.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.subscribe(Ke=>{if("click"===Ke.type){const ze=this.treeView.itemLookup(Ke.item.index);this.check(ze)}}))}unsubscribeClick(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)}checkNode(Ke){if(!Xt(Ke.item.dataItem)||this.treeView.isDisabled(Ke.item.dataItem,Ke.item.index)||!this.treeView.hasCheckbox(Ke.item.dataItem,Ke.item.index))return;const ze=this.itemKey(Ke.item);if(!Xt(ze))return;const St=[ze];if(this.options.checkChildren){const Dt=zn(Ke,({item:Hn})=>this.treeView.disableParentNodesOnly||this.options.checkDisabledChildren?this.treeView.isVisible(Hn.dataItem,Hn.index):this.treeView.isVisible(Hn.dataItem,Hn.index)&&!this.treeView.isDisabled(Hn.dataItem,Hn.index)&&this.treeView.hasCheckbox(Hn.dataItem,Hn.index));St.push(...Dt.filter(Hn=>this.options.checkDisabledChildren||!this.treeView.isDisabled(Hn.item.dataItem,Hn.item.index)||this.treeView.hasCheckbox(Hn.item.dataItem,Hn.item.index)).map(({item:Hn})=>this.itemKey(Hn)))}const it=!this.state.has(ze);St.forEach(Dt=>{it?this.state.add(Dt):this.state.delete(Dt)})}checkParents(Ke){if(!Xt(Ke))return;let ze=Ke;for(;ze;){const St=this.itemKey(ze.item),it=this.treeView.isDisabled(ze.item.dataItem,ze.item.index),Dt=ze.children.every(Ui=>this.state.has(this.itemKey(Ui)));this.treeView.hasCheckbox(ze.item.dataItem,ze.item.index)&&(!it||this.options.checkDisabledChildren)&&Dt?this.state.add(St):this.state.delete(St),ze=ze.parent}}allChildrenSelected(Ke){return Ke.every(ze=>{const St=this.allChildrenSelected(ze.children);return this.state.has(this.itemKey(ze.item))&&St})}notify(){this.lastChange=Array.from(this.state),this.checkedKeysChange.emit(this.lastChange)}addCheckedItemsChildren(Ke){if(!Xt(Ke)||0===Ke.length)return;const ze=this.state.size,St=new Set;Ke.forEach(Dt=>{const Hn=this.itemKey(Dt.item);this.state.has(Hn)&&Dt.children.forEach(Ui=>{(!this.treeView.isDisabled(Dt.item.dataItem,Dt.item.index)&&!this.treeView.isDisabled(Ui.dataItem,Ui.index)&&this.treeView.hasCheckbox(Dt.item.dataItem,Dt.item.index)&&this.treeView.hasCheckbox(Ui.dataItem,Ui.index)||this.treeView.disableParentNodesOnly||this.options.checkDisabledChildren)&&this.state.add(this.itemKey(Ui)),this.treeView.disableParentNodesOnly&&!this.options.checkDisabledChildren&&(this.treeView.isDisabled(Ui.dataItem,Ui.index)||!this.treeView.hasCheckbox(Ui.dataItem,Ui.index))&&St.add(this.itemKey(Ui))})}),St.forEach(Dt=>this.state.delete(Dt)),ze!==this.state.size&&this.zone.run(()=>this.notify())}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.Y36(Mr),e.Y36(e.R0b))},vn.\u0275dir=e.lG2({type:vn,selectors:[["","kendoTreeViewCheckable",""]],inputs:{isChecked:"isChecked",checkKey:["checkBy","checkKey"],checkedKeys:"checkedKeys",checkable:["kendoTreeViewCheckable","checkable"]},outputs:{checkedKeysChange:"checkedKeysChange"},features:[e.TTD]}),vn})(),Go=(()=>{class vn{constructor(Ke,ze){this.treeView=Ke,this.cdr=ze,this.disabledKeys=[],this.treeView.isDisabled=(St,it)=>this.disabledKeys.indexOf(this.itemKey({dataItem:St,index:it}))>-1}set isDisabled(Ke){this.treeView.isDisabled=Ke}ngOnChanges(Ke={}){const{disabledKeys:ze}=Ke;ze&&!ze.firstChange&&this.cdr.markForCheck()}itemKey(Ke){return this.disableKey?"string"==typeof this.disableKey?Ke.dataItem[this.disableKey]:"function"==typeof this.disableKey?this.disableKey(Ke):void 0:Ke.index}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.Y36(Mr),e.Y36(e.sBO))},vn.\u0275dir=e.lG2({type:vn,selectors:[["","kendoTreeViewDisable",""]],inputs:{isDisabled:"isDisabled",disableKey:["kendoTreeViewDisable","disableKey"],disabledKeys:"disabledKeys"},features:[e.TTD]}),vn})();const pr={maxAutoExpandResults:-1,expandMatches:!1,expandedOnClear:"none"};let Rr=(()=>{class vn{constructor(Ke){this.component=Ke,this.expandOnFilter=!1,this.expandedKeysChange=new e.vpe,this.subscriptions=new u.w0,this.state=new Set,this.originalExpandedKeys=new Set,this.isFiltered=!1,this.updateExpandedNodes=(ze,St,it)=>{(St.containsMatches||St.isMatch&&it&&jn(St.children))&&ze.push(this.itemKey({dataItem:St.dataItem,index:St.index})),jn(St.children)&&St.children.forEach(Dt=>{this.updateExpandedNodes(ze,Dt,it)})},this.getEveryExpandKey=(ze,St)=>{jn(St.children)&&ze.push(this.itemKey({dataItem:St.dataItem,index:St.index})),jn(St.children)&&St.children.forEach(it=>{this.getEveryExpandKey(ze,it)})},this.subscriptions.add((0,A.T)(this.component.expand.pipe((0,D.U)(ze=>({expand:!0,...ze}))),this.component.collapse.pipe((0,D.U)(ze=>({expand:!1,...ze})))).subscribe(this.toggleExpand.bind(this))),this.component.filterStateChange&&this.subscriptions.add(this.component.filterStateChange.subscribe(this.handleAutoExpand.bind(this))),this.component.isExpanded=(ze,St)=>this.state.has(this.itemKey({dataItem:ze,index:St}))}set isExpanded(Ke){this.component.isExpanded=Ke}get filterExpandSettings(){const Ke=Ki(this.expandOnFilter)?{enabled:this.expandOnFilter}:{...this.expandOnFilter,enabled:!0};return Object.assign({},pr,Ke)}ngOnChanges(Ke){(0,n.ln)("expandedKeys",Ke,!1)&&Ke.expandedKeys.currentValue!==this.lastChange&&(this.state=new Set(Ke.expandedKeys.currentValue))}ngOnDestroy(){this.subscriptions.unsubscribe()}itemKey(Ke){if(this.expandKey){if("string"==typeof this.expandKey)return Ke.dataItem[this.expandKey];if("function"==typeof this.expandKey)return this.expandKey(Ke)}return Ke.index}toggleExpand({index:Ke,dataItem:ze,expand:St}){const it=this.itemKey({index:Ke,dataItem:ze}),Dt=this.state.has(it);let Hn=!1;Dt&&!St?(this.state.delete(it),Hn=!0):!Dt&&St&&(this.state.add(it),Hn=!0),Hn&&this.notify()}handleAutoExpand({nodes:Ke,matchCount:ze,term:St}){if(!this.filterExpandSettings.enabled)return;const{maxAutoExpandResults:it,expandMatches:Dt,expandedOnClear:Hn}=this.filterExpandSettings;if(this.isFiltered||(this.originalExpandedKeys=new Set(this.state)),this.isFiltered&&!St||-1!==it&&ze>it){switch(Hn){case"initial":Ei(this.state,this.originalExpandedKeys)||(this.state=this.originalExpandedKeys,this.notify());break;case"all":this.state=new Set(Ke.reduce((Dn,kn)=>(this.getEveryExpandKey(Dn,kn),Dn),[])),this.notify();break;case"unchanged":break;default:0!==this.state.size&&(this.state.clear(),this.notify())}return void(this.isFiltered=!1)}const Vn=new Set(Ke.reduce((Dn,kn)=>(this.updateExpandedNodes(Dn,kn,Dt),Dn),[]));Ei(this.state,Vn)||(this.state=Vn,this.notify()),this.isFiltered=!0}notify(){this.lastChange=Array.from(this.state),this.expandedKeysChange.emit(this.lastChange)}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.Y36(Lo))},vn.\u0275dir=e.lG2({type:vn,selectors:[["","kendoTreeViewExpandable",""]],inputs:{isExpanded:"isExpanded",expandKey:["expandBy","expandKey"],expandOnFilter:"expandOnFilter",expandedKeys:"expandedKeys"},outputs:{expandedKeysChange:"expandedKeysChange"},features:[e.TTD]}),vn})(),br=(()=>{class vn{constructor(Ke,ze){this.treeView=Ke,this.navigationService=ze,this.selectedKeysChange=new e.vpe,this.subscriptions=new u.w0,this.selectActions={multiple:St=>this.selectMultiple(St),single:St=>this.selectSingle(St)},this.state=new Set,this.subscriptions.add(this.treeView.selectionChange.subscribe(this.select.bind(this))),this.treeView.isSelected=(St,it)=>this.state.has(this.itemKey({dataItem:St,index:it})),this.navigationService.deselectAllButCurrentItem.subscribe(St=>{this.selectSingle(St)})}set isSelected(Ke){this.treeView.isSelected=Ke}get getAriaMultiselectable(){return"multiple"===this.options.mode}get options(){const Ke={enabled:!0,mode:"single"};if(!Xt(this.selection)||"string"==typeof this.selection)return Ke;const ze=Ki(this.selection)?{enabled:this.selection}:this.selection;return Object.assign(Ke,ze)}ngOnChanges(Ke){(0,n.ln)("selectedKeys",Ke,!1)&&Ke.selectedKeys.currentValue!==this.lastChange&&(this.state=new Set(Ke.selectedKeys.currentValue)),this.navigationService.selection="boolean"==typeof this.selection&&this.selection?"single":this.selection?.mode}ngOnDestroy(){this.subscriptions.unsubscribe()}itemKey(Ke){return this.selectKey?"string"==typeof this.selectKey?Ke.dataItem[this.selectKey]:"function"==typeof this.selectKey?this.selectKey(Ke):void 0:Ke.index}select(Ke){const{enabled:ze,mode:St}=this.options;ze&&(this.selectActions[St]||Bn)(Ke)}selectSingle(Ke){const ze=this.itemKey(Ke);this.state.has(ze)||(this.state.clear(),this.state.add(ze),this.notify())}selectMultiple(Ke){const ze=this.itemKey(Ke),St=this.state.has(ze);Xt(ze)&&(St?this.state.delete(ze):this.state.add(ze),this.notify())}notify(){this.lastChange=Array.from(this.state),this.selectedKeysChange.emit(this.lastChange)}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.Y36(Mr),e.Y36(wn))},vn.\u0275dir=e.lG2({type:vn,selectors:[["","kendoTreeViewSelectable",""]],hostVars:1,hostBindings:function(Ke,ze){2&Ke&&e.uIk("aria-multiselectable",ze.getAriaMultiselectable)},inputs:{isSelected:"isSelected",selectKey:["selectBy","selectKey"],selection:["kendoTreeViewSelectable","selection"],selectedKeys:"selectedKeys"},outputs:{selectedKeysChange:"selectedKeysChange"},features:[e.TTD]}),vn})();var Ti=function(vn){return vn[vn.Add=0]="Add",vn[vn.InsertTop=1]="InsertTop",vn[vn.InsertBottom=2]="InsertBottom",vn[vn.InsertMiddle=3]="InsertMiddle",vn[vn.Invalid=4]="Invalid",vn}(Ti||{}),mr=function(vn){return vn[vn.Over=0]="Over",vn[vn.Before=1]="Before",vn[vn.After=2]="After",vn}(mr||{}),ri=function(vn){return vn[vn.Up=-1]="Up",vn[vn.Down=1]="Down",vn}(ri||{});class mo{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class Ii extends mo{constructor(Xe,Ke){super(),this.isValid=!0,Object.assign(this,Xe),this.originalEvent=Ke}setValid(Xe){this.isValid=Xe}}class yo extends mo{constructor(Xe){super(),Object.assign(this,Xe)}}const Yr=function Gs(vn){let Xe,Ke=!1;return(...ze)=>(Ke||(Xe=vn(...ze),Ke=!0),Xe)}(()=>{if(!(0,n.X_)()||!Xt(document.body))return!1;const Xe=document.createElement("div");Xe.style.transform="matrix(10, 0, 0, 10, 0, 0)";const Ke=document.createElement("div");Ke.innerText="child",Ke.style.position="fixed",Ke.style.top="10px",Xe.appendChild(Ke),document.body.appendChild(Xe);const ze=10!==Xe.children[0].getBoundingClientRect().top;return document.body.removeChild(Xe),ze}),_t=(vn,Xe,Ke,ze,St)=>{if(!(Xt(vn)&&Xt(Xe)&&Xt(ze)&&Xt(St)))return;const it=xo(Xe,".k-treeview-top, .k-treeview-mid, .k-treeview-bot");if(!Xt(it))return;const Dt=(vn=>{if(!Xt(vn))return null;const Xe=".k-treeview-leaf:not(.k-treeview-load-more-button)";return Ko(vn,Xe)?vn:vn.querySelector(Xe)})(it),Hn=Mt(it,Fn(vn));if(!Xt(Dt)||Dt===vn||Hn)return;const Ui=Dt.getBoundingClientRect(),Co=Ui.height/(It(Xe)?4:2),Sn=Ke-St.top,Vn=Ui.top-St.top;return Sn<Vn+Co?mr.Before:Sn>=Vn+Ui.height-Co?mr.After:mr.Over},Zn=(vn,Xe)=>{if(!Xt(vn)||!Xt(Xe))return null;const Ke=Fn(Xe),ze=tt(Ke),St=vn.itemLookup(ze);return Xt(St)&&Xt(St.item.dataItem)?St:null},qo=(vn,Xe,Ke)=>{Xt(vn)&&0===Xe.length&&Ke.isExpanded(vn.item.dataItem,vn.item.index)&&Ke.collapseNode(vn.item.dataItem,vn.item.index)},Cr=(vn,Xe)=>{Xe.isExpanded(vn.item.dataItem,vn.item.index)||Xe.expandNode(vn.item.dataItem,vn.item.index)},kr=vn=>(0,n.X_)()&&Xt(document.elementFromPoint)?document.elementFromPoint(vn.clientX,vn.clientY):vn.target,xs=(vn,Xe)=>{const Ke=vn.split("_"),ze=Xe.split("_");if(Ke.length<ze.length)return vn;const St=ze.length-1,it=ze.slice(0,St).join("_"),Dt=Ke.slice(0,St).join("_"),Hn=ze.length-1,Ui=Number(ze[Hn]),Co=Number(Ke[Hn]);return it===Dt&&Co>Ui?(Ke[Hn]=String(Co-1),Ke.join("_")):vn},Us=new RegExp("(auto|scroll)"),Ss=vn=>Math.floor(vn.scrollTop)<=0,Ua=vn=>Math.ceil(vn.scrollTop)>=vn.scrollHeight-vn.clientHeight,$o=(vn,Xe,Ke)=>{if(!Xt(vn)||!(0,n.X_)())return;const ze=vn.scrollTop;let St=Xe,it=0;for(;ze===vn.scrollTop&&(Ke!==ri.Up||!Ss(vn))&&(Ke!==ri.Down||!Ua(vn))&&it<20;)vn.scrollTop+=St*Ke,St+=1,it+=1},Ar=(vn,Xe,Ke)=>{if(!Xt(vn.loadMoreService))return;const ze=vn.getNodePageSize(Xe);vn.setNodePageSize(Ke,ze)},No=(vn,Xe)=>{if(!Xt(vn.loadMoreService))return;const Ke=vn.getNodePageSize(Xe);vn.setNodePageSize(Xe,Ke+1)},qr=(vn,Xe)=>{if(!Xt(vn.loadMoreService))return;const Ke=vn.getNodePageSize(Xe);vn.setNodePageSize(Xe,Ke-1)};class js{constructor(Xe){this.hierarchyBinding=Xe}add({sourceItem:Xe,destinationItem:Ke,dropPosition:ze,sourceTree:St,destinationTree:it}){const Dt=Object.assign({},ln(Xe));if(ze===mr.Over){Cr(Ke,it);const Ui=this.childrenFor(ln(Ke)),Co=Xt(it.loadMoreService)?Math.min(it.loadMoreService.getGroupSize(ln(Ke)),Ui.length):Ui.length;Ui.splice(Co,0,Dt),(0,C.IS)(this.hierarchyBinding.childrenField)(ln(Ke),Ui),this.movedItemNewIndex=wi(Ke.item.index,Co)}else{const Ui=this.getParentNodes(Ke,it),Co=ze===mr.After?1:0,Sn=Ui.indexOf(ln(Ke))+Co;Ui.splice(Sn,0,Dt),this.movedItemNewIndex=wi(Ke.parent?Ke.parent.item.index:null,Sn)}const Hn=ln(ze===mr.Over?Ke:Ke.parent);No(it,Hn),Ar(it,ln(Xe),Dt),St!==it&&!it.loadOnDemand&&it.preloadChildNodes(),St!==it&&(it.changeDetectorRef.detectChanges(),it.focus(this.movedItemNewIndex))}remove({sourceItem:Xe,sourceTree:Ke,destinationTree:ze}){const St=this.getParentNodes(Xe,Ke),it=St.indexOf(ln(Xe));if(St.splice(it,1),qo(Xe.parent,St,Ke),qr(Ke,ln(Xe.parent)),Ke.loadOnDemand||Ke.preloadChildNodes(),Ke===ze){ze.changeDetectorRef.detectChanges();const Dt=xs(this.movedItemNewIndex,Xe.item.index);ze.focus(Dt)}}getParentNodes(Xe,Ke){return Xt(Xe.parent)?this.childrenFor(ln(Xe.parent)):Ke.nodes}childrenFor(Xe){return(0,C.Yn)(this.hierarchyBinding.childrenField)(Xe)||[]}}let Ds=(()=>{class vn{constructor(Ke){this.cdr=Ke,this.hostClasses=!0,this.posistionStyle="fixed"}get statusIconClass(){switch(this.action){case Ti.Add:return"plus";case Ti.InsertTop:return"insert-top";case Ti.InsertBottom:return"insert-bottom";case Ti.InsertMiddle:return"insert-middle";default:return"cancel"}}get statusSVGIcon(){switch(this.action){case Ti.Add:return R.R7U;case Ti.InsertTop:return R.mvG;case Ti.InsertBottom:return R.hOA;case Ti.InsertMiddle:return R.Ryu;default:return R.p5j}}detectChanges(){this.cdr.detectChanges()}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.Y36(e.sBO))},vn.\u0275cmp=e.Xpm({type:vn,selectors:[["kendo-treeview-drag-clue"]],hostVars:6,hostBindings:function(Ke,ze){2&Ke&&(e.Udp("position",ze.posistionStyle),e.ekj("k-header",ze.hostClasses)("k-drag-clue",ze.hostClasses))},decls:2,vars:2,consts:[[4,"ngIf"],["innerCssClass","k-drag-status",3,"name","svgIcon"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(Ke,ze){1&Ke&&(e.YNc(0,Ce,4,3,"ng-container",0),e.YNc(1,fe,1,7,null,0)),2&Ke&&(e.Q6J("ngIf",!ze.template),e.xp6(1),e.Q6J("ngIf",ze.template))},dependencies:[f.ZS,F.O5,F.tP],encapsulation:2,changeDetection:0}),vn})(),Zr=(()=>{class vn{get componentRef(){if(!Xt(this._componentRef))throw new Error("The `initalize` method must be called before calling other service methods.");return this._componentRef}set componentRef(Ke){this._componentRef=Ke}get element(){return this.componentRef.location.nativeElement}ngOnDestroy(){Xt(this._componentRef)&&(this.element.parentElement.removeChild(this.element),this.componentRef.destroy(),this.componentRef=null)}show(){this.element.style.display=""}hide(){this.element.style.display="none"}move(Ke,ze,St=0){this.element.style.left=`${Ke+St}px`,this.element.style.top=`${ze+St}px`}}return vn.\u0275fac=function(Ke){return new(Ke||vn)},vn.\u0275prov=e.Yz7({token:vn,factory:vn.\u0275fac}),vn})(),Js=(()=>{class vn extends Zr{constructor(Ke){super(),this.componentFactoryResolver=Ke}initialize(Ke,ze){Xt(this._componentRef)&&this.ngOnDestroy();const St=this.componentFactoryResolver.resolveComponentFactory(Ds);this.componentRef=Ke.createComponent(St),this.hide(),this.componentRef.instance.template=ze,this.componentRef.changeDetectorRef.detectChanges()}ngOnDestroy(){this.cancelReturnAnimation(),this.cancelScroll(),super.ngOnDestroy()}move(Ke,ze){super.move(Ke,ze,10)}animateDragClueToElementPosition(Ke){if(!Xt(Ke)||!Xt(this.element.animate))return void this.hide();const ze=Ke.getBoundingClientRect(),St=this.element.getBoundingClientRect();this.returnAnimation=this.element.animate([{transform:"translate(0, 0)"},{transform:`translate(${ze.left-St.left}px, ${ze.top-St.top}px)`}],200),this.returnAnimation.onfinish=()=>this.hide()}cancelReturnAnimation(){Xt(this.returnAnimation)&&(this.returnAnimation.cancel(),this.returnAnimation=null)}updateDragClueData(Ke,ze,St){const it=this.componentRef.instance;Ke===it.action&&vt(ze,it.sourceItem)&&vt(St,it.destinationItem)||(it.action=Ke,it.sourceItem=ze,it.destinationItem=St,it.detectChanges())}updateText(Ke){Ke!==this.componentRef.instance.text&&(this.componentRef.instance.text=Ke,this.componentRef.instance.detectChanges())}scrollIntoView({step:Ke,interval:ze}){this.cancelScroll();const St=(vn=>{for(;Xt(vn)&&"HTML"!==vn.nodeName;){const Xe=vn.scrollHeight>vn.clientHeight,Ke=Us.test(getComputedStyle(vn).overflowY);if(Xe&&Ke)return vn;vn=vn.parentNode}return vn})(this.element);if(!Xt(St))return;const it=St.getBoundingClientRect(),Dt=this.element.getBoundingClientRect(),Hn=Math.max(it.top,0),Ui=Hn+Dt.height,Co=Hn+Math.min(it.bottom,St.clientHeight);Dt.top<Ui?this.scrollInterval=setInterval(()=>$o(St,Ke,ri.Up),ze):Dt.bottom>Co&&(this.scrollInterval=setInterval(()=>$o(St,Ke,ri.Down),ze))}cancelScroll(){Xt(this.scrollInterval)&&(clearInterval(this.scrollInterval),this.scrollInterval=null)}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.LFG(e._Vd))},vn.\u0275prov=e.Yz7({token:vn,factory:vn.\u0275fac}),vn})(),Wa=(()=>{class vn{constructor(Ke){this.changeDetectorRef=Ke,this.hostClass=!0,this.position="fixed",this.pointerEvents="none"}detectChanges(){this.changeDetectorRef.detectChanges()}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.Y36(e.sBO))},vn.\u0275cmp=e.Xpm({type:vn,selectors:[["kendo-treeview-drop-hint"]],hostVars:6,hostBindings:function(Ke,ze){2&Ke&&(e.Udp("position",ze.position)("pointer-events",ze.pointerEvents),e.ekj("k-drop-hint-container",ze.hostClass))},decls:2,vars:2,consts:[["class","k-drop-hint k-drop-hint-h",4,"ngIf"],[4,"ngIf"],[1,"k-drop-hint","k-drop-hint-h"],[1,"k-drop-hint-start"],[1,"k-drop-hint-line"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(Ke,ze){1&Ke&&(e.YNc(0,xe,3,0,"div",0),e.YNc(1,Ut,1,6,null,1)),2&Ke&&(e.Q6J("ngIf",!ze.template),e.xp6(1),e.Q6J("ngIf",ze.template))},dependencies:[F.O5,F.tP],encapsulation:2,changeDetection:0}),vn})(),ll=(()=>{class vn extends Zr{constructor(Ke){super(),this.componentFactoryResolver=Ke}initialize(Ke,ze){Xt(this._componentRef)&&this.ngOnDestroy();const St=this.componentFactoryResolver.resolveComponentFactory(Wa);this.componentRef=Ke.createComponent(St),this.hide(),this.componentRef.instance.template=ze,this.componentRef.changeDetectorRef.detectChanges()}updateDropHintData(Ke,ze,St){const it=this.componentRef.instance;Ke===it.action&&vt(ze,it.sourceItem)&&vt(St,it.destinationItem)||(it.action=Ke,it.sourceItem=ze,it.destinationItem=St,it.detectChanges())}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.LFG(e._Vd))},vn.\u0275prov=e.Yz7({token:vn,factory:vn.\u0275fac}),vn})(),Za=(()=>{class vn{constructor(Ke){this.templateRef=Ke}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.Y36(e.Rgc,8))},vn.\u0275dir=e.lG2({type:vn,selectors:[["","kendoTreeViewDragClueTemplate",""]]}),vn})(),sl=(()=>{class vn{constructor(Ke){this.templateRef=Ke}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.Y36(e.Rgc,8))},vn.\u0275dir=e.lG2({type:vn,selectors:[["","kendoTreeViewDropHintTemplate",""]]}),vn})();const Jt={enabled:!0,step:1,interval:1};let Tt=(()=>{class vn{constructor(Ke,ze,St,it,Dt){this.element=Ke,this.zone=ze,this.treeview=St,this.dragClueService=it,this.dropHintService=Dt,this.allowCopy=!1,this.dropZoneTreeViews=[],this.startDragAfter=5,this.autoScroll=!0,this.userSelectStyle="none",this.containerOffset={top:0,left:0},this.treeview.touchActions=!1}get scrollSettings(){return Object.assign({},Jt,"boolean"==typeof this.autoScroll?{enabled:this.autoScroll}:this.autoScroll)}ngAfterContentInit(){this.initalizeDraggable(),this.dragClueService.initialize(this.treeview.assetsContainer,this.dragClueTemplate&&this.dragClueTemplate.templateRef),this.dropHintService.initialize(this.treeview.assetsContainer,this.dropHintTemplate&&this.dropHintTemplate.templateRef)}ngOnDestroy(){this.draggable.destroy()}handlePress({originalEvent:Ke}){It(Ke.target)&&(this.draggedItem=xo(Ke.target,".k-treeview-leaf"),this.pendingDragStartEvent=Ke)}handleDrag({originalEvent:Ke,clientX:ze,clientY:St}){if(this.shouldInitiateDragStart({clientX:ze,clientY:St})&&this.initiateDragStart(),!Xt(this.draggedItem)||Xt(this.pendingDragStartEvent))return;const it=kr(Ke);(0,n.g$)(this.treeview.nodeDrag)&&this.zone.run(()=>this.notifyDrag(Ke,it));const Dt=this.getTargetTreeView(it),Hn=_t(this.draggedItem,it,St,Dt,this.containerOffset),Ui=xo(it,".k-treeview-top, .k-treeview-mid, .k-treeview-bot"),Co=((vn,Xe)=>{if(!Xt(vn)||!Xt(Xe))return Ti.Invalid;switch(vn){case mr.Over:return Ti.Add;case mr.Before:return Xt(Fn(Xe).previousElementSibling)?Ti.InsertMiddle:Ti.InsertTop;case mr.After:return Xt(Fn(Xe).nextElementSibling)?Ti.InsertMiddle:Ti.InsertBottom;default:return Ti.Invalid}})(Hn,it),Sn=Zn(this.treeview,this.draggedItem),Vn=Zn(Dt,it);this.updateDropHintState(Hn,Ui,Co,Sn,Vn),this.updateDragClueState(Co,ze,St,Sn,Vn),this.scrollSettings.enabled&&this.dragClueService.scrollIntoView(this.scrollSettings)}handleRelease({originalEvent:Ke,clientY:ze}){if(this.scrollSettings.enabled&&this.dragClueService.cancelScroll(),!Xt(this.draggedItem)||Xt(this.pendingDragStartEvent))return this.pendingDragStartEvent=null,void(this.draggedItem=null);const St=kr(Ke),it=this.treeview,Dt=this.getTargetTreeView(St),Hn=_t(this.draggedItem,St,ze,this.getTargetTreeView(St),this.containerOffset),Ui=Zn(it,this.draggedItem),Co=Zn(Dt,St);Xt(Co)&&Xt(Hn)?this.zone.run(()=>this.notifyDrop({sourceItem:Ui,destinationItem:Co,dropPosition:Hn,sourceTree:it,destinationTree:Dt},Ke)):this.dragClueService.animateDragClueToElementPosition(this.draggedItem),(0,n.g$)(this.treeview.nodeDragEnd)&&this.zone.run(()=>this.notifyDragEnd({sourceItem:Ui,destinationItem:Co,originalEvent:Ke})),this.dropHintService.hide(),this.draggedItem=null}updateDropHintState(Ke,ze,St,it,Dt){if(!Xt(ze)||Ke===mr.Over||!Xt(Ke))return void this.dropHintService.hide();const Hn=ze.getBoundingClientRect(),Co=Ke===mr.Before?Hn.top:Hn.top+Hn.height;this.dropHintService.updateDropHintData(St,it,Dt),this.dropHintService.move(Hn.left-this.containerOffset.left,Co-this.containerOffset.top),this.dropHintService.show()}updateDragClueState(Ke,ze,St,it,Dt){this.dragClueService.move(ze-this.containerOffset.left,St-this.containerOffset.top),this.dragClueService.updateDragClueData(Ke,it,Dt),this.dragClueService.show()}initalizeDraggable(){this.draggable=new P._({press:this.handlePress.bind(this),drag:this.handleDrag.bind(this),release:this.handleRelease.bind(this)}),this.zone.runOutsideAngular(()=>this.draggable.bindTo(this.element.nativeElement))}notifyDragStart(Ke,ze){const St=Zn(this.treeview,ze),it=new yo({sourceItem:St,originalEvent:Ke});return this.treeview.nodeDragStart.emit(it),it}notifyDrag(Ke,ze){const St={sourceItem:Zn(this.treeview,this.draggedItem),destinationItem:Zn(this.getTargetTreeView(ze),ze),originalEvent:Ke};this.treeview.nodeDrag.emit(St)}notifyDrop(Ke,ze){const St=new Ii(Ke,ze);Ke.destinationTree.nodeDrop.emit(St),this.disableAnimationsForNextTick(Ke.destinationTree),Ke.sourceTree!==Ke.destinationTree&&this.disableAnimationsForNextTick(Ke.sourceTree),!St.isDefaultPrevented()&&St.isValid?(this.dragClueService.hide(),Ke.destinationTree.addItem.emit(Ke),ze.ctrlKey&&this.allowCopy||Ke.sourceTree.removeItem.emit(Ke)):St.isDefaultPrevented()?this.dragClueService.hide():St.isValid||this.dragClueService.animateDragClueToElementPosition(this.draggedItem)}notifyDragEnd(Ke){this.treeview.nodeDragEnd.emit(Ke)}getTargetTreeView(Ke){const St=xo(Ke,this.treeview.element.nativeElement.tagName);return[this.treeview,...this.dropZoneTreeViews].find(it=>Xt(it)&&it.element.nativeElement===St)}disableAnimationsForNextTick(Ke){Ke.animate||(Ke.animate=!1,this.zone.runOutsideAngular(()=>setTimeout(()=>Ke.animate=!0)))}shouldInitiateDragStart(Ke){return!!Xt(this.pendingDragStartEvent)&&Math.sqrt(Math.pow(this.pendingDragStartEvent.clientX-Ke.clientX,2)+Math.pow(this.pendingDragStartEvent.clientY-Ke.clientY,2))>=this.startDragAfter}initiateDragStart(){if((0,n.g$)(this.treeview.nodeDragStart)&&this.zone.run(()=>this.notifyDragStart(this.pendingDragStartEvent,kr(this.pendingDragStartEvent))).isDefaultPrevented())return this.pendingDragStartEvent=null,void(this.draggedItem=null);this.dragClueService.cancelReturnAnimation(),this.dragClueService.updateText(this.draggedItem.innerText),this.containerOffset=(vn=>{if(!vn||!Yr())return{left:0,top:0};let Xe=vn.parentElement;for(;Xe&&"none"===window.getComputedStyle(Xe).transform;)Xe=Xe.parentElement;if(Xe){const Ke=Xe.getBoundingClientRect();return{left:Ke.left-Xe.scrollLeft,top:Ke.top-Xe.scrollTop}}return{left:0,top:0}})(this.draggedItem),this.pendingDragStartEvent=null}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(Mr),e.Y36(Js),e.Y36(ll))},vn.\u0275dir=e.lG2({type:vn,selectors:[["","kendoTreeViewDragAndDrop",""]],contentQueries:function(Ke,ze,St){if(1&Ke&&(e.Suo(St,Za,5),e.Suo(St,sl,5)),2&Ke){let it;e.iGM(it=e.CRH())&&(ze.dragClueTemplate=it.first),e.iGM(it=e.CRH())&&(ze.dropHintTemplate=it.first)}},hostVars:8,hostBindings:function(Ke,ze){2&Ke&&e.Udp("user-select",ze.userSelectStyle)("-ms-user-select",ze.userSelectStyle)("-moz-user-select",ze.userSelectStyle)("-webkit-user-select",ze.userSelectStyle)},inputs:{allowCopy:"allowCopy",dropZoneTreeViews:"dropZoneTreeViews",startDragAfter:"startDragAfter",autoScroll:"autoScroll"},features:[e._Bn([Js,ll])]}),vn})();const ht={operator:"contains",ignoreCase:!0,mode:"lenient"};let yn=(()=>{class vn{constructor(Ke){this.component=Ke,this.visibleNodes=new Set,this._filterSettings=ht}set filterSettings(Ke){this._filterSettings={...ht,...Ke}}get filterSettings(){return this._filterSettings}set filter(Ke){this.handleFilterChange(Ke)}handleFilterChange(Ke){this.filterData&&(this.resetNodesVisibility(this.filterData),Ke&&Pi(this.filterData,Ke,this.filterSettings,this.component.textField),this.updateVisibleNodes(this.filterData),Xt(this.component.filterStateChange)&&this.component.filterStateChange.emit({nodes:this.filterData,matchCount:this.visibleNodes.size,term:Ke,filterSettings:this.filterSettings}))}updateVisibleNodes(Ke){Ke.forEach(ze=>{ze.visible&&this.visibleNodes.add(ze.dataItem),ze.children&&this.updateVisibleNodes(ze.children)})}resetNodesVisibility(Ke){this.visibleNodes.clear(),Ke.forEach(ze=>{ze.visible=!0,ze.children&&this.resetNodesVisibility(ze.children)})}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.Y36(Xo))},vn.\u0275dir=e.lG2({type:vn,inputs:{filterSettings:"filterSettings",filter:"filter"}}),vn})();const vi=new Mi,Yi=(vn,Xe,Ke=null,ze="")=>jn(vn)?vn.map((St,it)=>{const Dt=vi.nodeIndex(it.toString(),ze),Hn={dataItem:St,index:Dt,parent:Ke,visible:!0};return Hn.children=Yi((0,C.Yn)(Xe)(St),Xe,Hn,Dt),Hn}):[];let co=(()=>{class vn extends yn{constructor(Ke,ze){super(Ke),this.component=Ke,this.dragAndDropDirective=ze,this.loadOnDemand=!0,this.originalData=[];const St=!Xt(this.dragAndDropDirective);this.component.isVisible=St?it=>this.visibleNodes.has(it):fn}set childrenField(Ke){if(!Ke)throw new Error("'childrenField' cannot be empty");this._childrenField=Ke}get childrenField(){return this._childrenField}set isVisible(Ke){this.component.isVisible=Ke}ngOnInit(){Xt(this.childrenField)&&(this.component.children=Ke=>(0,l.of)((0,C.Yn)(this.childrenField)(Ke)),this.component.hasChildren=Ke=>{const ze=(0,C.Yn)(this.childrenField)(Ke);return!(!ze||!ze.length)},this.component.editService=new js(this),this.component.filterChange.subscribe(this.handleFilterChange.bind(this)),this.component.filter&&this.handleFilterChange(this.component.filter),!this.loadOnDemand&&Xt(this.component.preloadChildNodes)&&this.component.preloadChildNodes())}ngOnChanges(Ke){(0,n.ln)("childrenField",Ke,!1)&&(this.nodes=this.originalData,this.updateNodes(this.originalData)),(0,n.ln)("nodes",Ke,!1)&&this.updateNodes(Ke.nodes.currentValue),(0,n.aG)(["nodes","loadOnDemand"],Ke)&&!this.loadOnDemand&&Xt(this.component.preloadChildNodes)&&this.component.preloadChildNodes()}updateNodes(Ke){this.originalData=Ke||[],this.filterData=Yi(Ke,this.childrenField)||[],this.updateVisibleNodes(this.filterData)}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.Y36(Xo),e.Y36(Tt,9))},vn.\u0275dir=e.lG2({type:vn,selectors:[["","kendoTreeViewHierarchyBinding",""]],inputs:{childrenField:"childrenField",nodes:"nodes",isVisible:"isVisible",loadOnDemand:"loadOnDemand"},features:[e.qOj,e.TTD]}),vn})();class yr{constructor(Xe){this.flatBinding=Xe}add({sourceItem:Xe,destinationItem:Ke,dropPosition:ze,sourceTree:St,destinationTree:it}){const Dt=Object.assign({},ln(Xe));if(ze===mr.Over){Cr(Ke,it);const Ui=(0,C.Yn)(this.flatBinding.idField)(ln(Ke));(0,C.IS)(this.flatBinding.parentIdField)(Dt,Ui);const Sn=this.getLastVisibleChildNodeIndex(it,this.flatBinding.originalData,ln(Ke))+1;this.flatBinding.originalData.splice(Sn,0,Dt),this.rebindData();const Vn=this.fetchChildNodes(ln(Ke),it).indexOf(Dt);this.movedItemNewIndex=wi(Ke.item.index,Vn)}else{const Ui=ze===mr.After?1:0,Co=this.flatBinding.originalData.indexOf(ln(Ke))+Ui;this.flatBinding.originalData.splice(Co,0,Dt);const Sn=(0,C.Yn)(this.flatBinding.parentIdField)(ln(Ke));(0,C.IS)(this.flatBinding.parentIdField)(Dt,Sn),this.rebindData();const Vn=Ke.parent?Ke.parent.item.index:null,kn=(Ke.parent?this.fetchChildNodes(ln(Ke.parent),it):it.nodes).indexOf(Dt);this.movedItemNewIndex=wi(Vn,kn)}St!==it&&this.addChildNodes(Dt,St);const Hn=ln(ze===mr.Over?Ke:Ke.parent);No(it,Hn),Ar(it,ln(Xe),Dt),St!==it&&!it.loadOnDemand&&it.preloadChildNodes(),St!==it&&(it.changeDetectorRef.detectChanges(),it.focus(this.movedItemNewIndex))}remove({sourceItem:Xe,sourceTree:Ke,destinationTree:ze}){const St=ln(Xe),it=this.flatBinding.originalData.indexOf(St);if(this.flatBinding.originalData.splice(it,1),Ke!==ze&&this.removeChildNodes(St,Ke),this.rebindData(),qo(Xe.parent,Xe.parent?Xe.parent.children:[],Ke),qr(Ke,ln(Xe.parent)),Ke.loadOnDemand||Ke.preloadChildNodes(),Ke===ze){ze.changeDetectorRef.detectChanges();const Hn=xs(this.movedItemNewIndex,Xe.item.index);ze.focus(Hn)}}addChildNodes(Xe,Ke){const ze=this.fetchAllDescendantNodes(Xe,Ke);this.flatBinding.originalData.push(...ze)}removeChildNodes(Xe,Ke){this.fetchAllDescendantNodes(Xe,Ke).forEach(St=>{const it=this.flatBinding.originalData.indexOf(St);this.flatBinding.originalData.splice(it,1)})}fetchAllDescendantNodes(Xe,Ke){let ze=this.fetchChildNodes(Xe,Ke);return ze.forEach(St=>ze=ze.concat(this.fetchAllDescendantNodes(St,Ke)||[])),ze}fetchChildNodes(Xe,Ke){if(!Xe)return[];let ze=[];return Ke.children(Xe).pipe((0,L.q)(1)).subscribe(St=>ze=ze.concat(St||[])),ze}getLastVisibleChildNodeIndex(Xe,Ke,ze){if(!Xt(Xe.loadMoreService)||!Xe.hasChildren(ze))return Ke.length;const St=Xe.loadMoreService.getGroupSize(ze),it=this.fetchChildNodes(ze,Xe).slice(0,St);return Ke.indexOf(it[it.length-1])}rebindData(){this.flatBinding.nodes=this.flatBinding.originalData,this.flatBinding.updateNodes(this.flatBinding.originalData)}}const Ur=(vn,Xe,Ke)=>Xe.filter(ze=>vn(ze)===Ke),ss=new Mi,gs=(vn,Xe,Ke,ze,St=null,it="")=>jn(vn)?vn.map((Dt,Hn)=>{const Ui=ss.nodeIndex(Hn.toString(),it),Co={dataItem:Dt,index:Ui,parent:St,visible:!0};return Co.children=gs(Ur((0,C.Yn)(Ke),Xe||[],(0,C.Yn)(ze)(Dt)),Xe,Ke,ze,Co,Ui),Co}):[];let Pr=(()=>{class vn extends yn{constructor(Ke){super(Ke),this.component=Ke,this.loadOnDemand=!0,this.originalData=[],this.component.isVisible=ze=>this.visibleNodes.has(ze)}set isVisible(Ke){this.component.isVisible=Ke}ngOnInit(){if(Xt(this.parentIdField)&&Xt(this.idField)){const Ke=ze=>Ur((0,C.Yn)(this.parentIdField),this.originalData||[],(0,C.Yn)(this.idField)(ze));this.component.hasChildren=ze=>Ke(ze).length>0,this.component.children=ze=>(0,l.of)(Ke(ze)),this.component.editService=new yr(this),this.component.filterChange.subscribe(this.handleFilterChange.bind(this)),this.component.filter&&this.handleFilterChange(this.component.filter),!this.loadOnDemand&&Xt(this.component.preloadChildNodes)&&this.component.preloadChildNodes()}}ngOnChanges(Ke){(0,n.ln)("parentIdField",Ke,!1)&&(this.nodes=this.originalData,this.updateNodes(this.originalData)),(0,n.ln)("nodes",Ke,!1)&&this.updateNodes(Ke.nodes.currentValue),(0,n.aG)(["nodes","loadOnDemand"],Ke)&&!this.loadOnDemand&&Xt(this.component.preloadChildNodes)&&this.component.preloadChildNodes()}updateNodes(Ke){if(this.originalData=Ke||[],(vn=>Ji(vn)||0===vn.trim().length)(this.parentIdField))this.component.nodes=this.originalData.slice(0);else{const ze=(0,C.Yn)(this.parentIdField);this.component.nodes=this.originalData.filter(((...vn)=>Xe=>vn.reduceRight((Ke,ze)=>ze(Ke),Xe))(Ji,ze)),this.filterData=gs(this.component.nodes,this.originalData,this.parentIdField,this.idField),this.updateVisibleNodes(this.filterData)}}}return vn.\u0275fac=function(Ke){return new(Ke||vn)(e.Y36(Xo))},vn.\u0275dir=e.lG2({type:vn,selectors:[["","kendoTreeViewFlatDataBinding",""]],inputs:{nodes:"nodes",parentIdField:"parentIdField",idField:"idField",loadOnDemand:"loadOnDemand",isVisible:"isVisible"},features:[e.qOj,e.TTD]}),vn})(),da=(()=>{class vn{}return vn.\u0275fac=function(Ke){return new(Ke||vn)},vn.\u0275mod=e.oAB({type:vn}),vn.\u0275inj=e.cJS({}),vn})(),La=(()=>{class vn{}return vn.\u0275fac=function(Ke){return new(Ke||vn)},vn.\u0275mod=e.oAB({type:vn}),vn.\u0275inj=e.cJS({imports:[[F.ez,da,x.rw,f.pc]]}),vn})(),Ls=(()=>{class vn{}return vn.\u0275fac=function(Ke){return new(Ke||vn)},vn.\u0275mod=e.oAB({type:vn}),vn.\u0275inj=e.cJS({imports:[[La]]}),vn})()},45463:(he,y,i)=>{"use strict";i.d(y,{At:()=>or,C7:()=>Lt,Tv:()=>xr,c4:()=>Ea,zt:()=>Sa});var e=i(69862),n=i(65879),o=i(3201),a=i(73942),l=i(56223),u=i(58951),d=i(92438),s=i(63019),A=i(32181),_=i(12624),C=i(15735),R=i(86825),x=i(32040),f=i(60886),k=i(96814);function w(tr,Mr){if(1&tr&&(n.TgZ(0,"span",4),n._uU(1),n.qZA()),2&tr){const Li=n.oxw();n.xp6(1),n.hij("",Li.progress,"%")}}const g=function(tr){return{"k-focus":tr}};function M(tr,Mr){if(1&tr){const Li=n.EpF();n.TgZ(0,"button",5),n.NdJ("focus",function(){n.CHM(Li);const ao=n.oxw();return n.KtG(ao.onFocus("retry"))})("blur",function(){n.CHM(Li);const ao=n.oxw();return n.KtG(ao.onBlur("retry"))})("click",function(){n.CHM(Li);const ao=n.oxw();return n.KtG(ao.onRetryClick())}),n._UZ(1,"kendo-icon-wrapper",6),n.qZA()}if(2&tr){const Li=n.oxw();n.Q6J("ngClass",n.VKq(6,g,Li.retryFocused)),n.uIk("tabIndex",-1)("aria-hidden",!0),n.xp6(1),n.Q6J("svgIcon",Li.retrySVGIcon),n.uIk("aria-label",Li.retryButtonTitle)("title",Li.retryButtonTitle)}}function p(tr,Mr){if(1&tr){const Li=n.EpF();n.TgZ(0,"button",5),n.NdJ("focus",function(){n.CHM(Li);const ao=n.oxw();return n.KtG(ao.onFocus("pauseResume"))})("blur",function(){n.CHM(Li);const ao=n.oxw();return n.KtG(ao.onBlur("pauseResume"))})("click",function(){n.CHM(Li);const ao=n.oxw();return n.KtG(ao.onPauseResumeClick())}),n._UZ(1,"kendo-icon-wrapper",7),n.qZA()}if(2&tr){const Li=n.oxw();n.Q6J("ngClass",n.VKq(7,g,Li.pauseResumeFocused)),n.uIk("tabIndex",-1)("aria-hidden",!0),n.xp6(1),n.Q6J("name",Li.isPaused?"play-sm":"pause-sm")("svgIcon",Li.isPaused?Li.playSVGIcon:Li.pauseSVGIcon),n.uIk("aria-label",Li.pauseResumeButtonTitle)("title",Li.pauseResumeButtonTitle)}}function E(tr,Mr){if(1&tr){const Li=n.EpF();n.TgZ(0,"button",5),n.NdJ("focus",function(){n.CHM(Li);const ao=n.oxw();return n.KtG(ao.onFocus("action"))})("blur",function(){n.CHM(Li);const ao=n.oxw();return n.KtG(ao.onBlur("action"))})("click",function(ao){n.CHM(Li);const Go=n.oxw();return n.KtG(Go.onRemoveCancelClick(ao))}),n._UZ(1,"kendo-icon-wrapper",8),n.qZA()}if(2&tr){const Li=n.oxw();n.Q6J("ngClass",n.VKq(8,g,Li.actionFocused)),n.uIk("tabIndex",-1)("aria-hidden",!0),n.xp6(1),n.Q6J("name",Li.isUploading?"cancel":"x")("svgIcon",Li.isUploading?Li.cancelSVGIcon:Li.deleteSVGIcon)("innerCssClass",Li.isUploading?"":"k-delete"),n.uIk("aria-label",Li.actionButtonTitle)("title",Li.actionButtonTitle)}}const b=function(tr,Mr,Li){return{"k-file-validation-message":tr,"k-file-size":Mr,"k-file-summary":Li}};function I(tr,Mr){if(1&tr&&(n.ynx(0),n.TgZ(1,"span",7),n._uU(2),n.qZA(),n.TgZ(3,"span",8),n._uU(4),n.qZA(),n.BQk()),2&tr){const Li=n.oxw();n.xp6(1),n.Q6J("title",Li.file.name),n.xp6(1),n.Oqu(Li.file.name),n.xp6(1),n.Q6J("ngClass",n.kEZ(5,b,Li.file.validationErrors,!Li.file.validationErrors&&Li.isNotYetUploaded,Li.isUploadSuccessful||Li.isUploadFailed)),n.uIk("aria-live","polite"),n.xp6(1),n.Oqu(Li.fileStatusText)}}const L=function(tr){return[tr]},D=function(tr,Mr,Li){return{templateRef:tr,state:Mr,$implicit:Li}};function F(tr,Mr){if(1&tr&&n.GkF(0,9),2&tr){const Li=n.oxw();n.Q6J("ngTemplateOutlet",Li.fileInfoTemplate.templateRef)("ngTemplateOutletContext",n.kEZ(4,D,Li.fileInfoTemplate.templateRef,Li.file.state,n.VKq(2,L,Li.file)))}}const P=function(){return{visible:!1}},O=function(tr,Mr){return{"k-file-validation-message":tr,"k-file-size":Mr}};function U(tr,Mr){if(1&tr&&(n.TgZ(0,"span",9)(1,"span",10),n._uU(2),n.qZA(),n.TgZ(3,"span",11),n._uU(4),n.qZA()()),2&tr){const Li=Mr.$implicit,Ao=n.oxw(2);n.xp6(1),n.Q6J("title",Li.name),n.xp6(1),n.hij(" ",Li.name," "),n.xp6(1),n.Q6J("ngClass",n.WLB(5,O,Li.validationErrors,!Li.validationErrors)),n.uIk("aria-live","polite"),n.xp6(1),n.Oqu(Ao.fileStatusText(Li))}}function V(tr,Mr){if(1&tr&&(n.ynx(0),n.YNc(1,U,5,8,"span",7),n.TgZ(2,"span",8),n._uU(3),n.qZA(),n.BQk()),2&tr){const Li=n.oxw();n.xp6(1),n.Q6J("ngForOf",Li.files),n.xp6(2),n.Oqu(Li.batchStatusText)}}function K(tr,Mr){if(1&tr&&n.GkF(0,12),2&tr){const Li=n.oxw();n.Q6J("ngTemplateOutlet",Li.fileInfoTemplate.templateRef)("ngTemplateOutletContext",n.kEZ(2,D,Li.fileInfoTemplate.templateRef,Li.files[0].state,Li.files))}}const X=["kendo-upload-file-list",""];function me(tr,Mr){if(1&tr&&n._UZ(0,"kendo-upload-file-list-single-item",5),2&tr){const Li=n.oxw().$implicit,Ao=n.oxw();n.Q6J("disabled",Ao.disabled)("file",Li[0])("fileInfoTemplate",Ao.fileInfoTemplate)}}function J(tr,Mr){if(1&tr&&n._UZ(0,"kendo-upload-file-list-multiple-items",6),2&tr){const Li=n.oxw().$implicit,Ao=n.oxw();n.Q6J("disabled",Ao.disabled)("files",Li)("fileInfoTemplate",Ao.fileInfoTemplate)}}function Q(tr,Mr){if(1&tr&&n.GkF(0,7),2&tr){const Li=n.oxw().$implicit,Ao=n.oxw();n.Q6J("ngTemplateOutlet",Ao.fileTemplate.templateRef)("ngTemplateOutletContext",n.kEZ(2,D,Ao.fileTemplate.templateRef,Li[0].state,Li))}}function re(tr,Mr){if(1&tr&&(n.TgZ(0,"li",1),n.YNc(1,me,1,3,"kendo-upload-file-list-single-item",2),n.YNc(2,J,1,3,"kendo-upload-file-list-multiple-items",3),n.YNc(3,Q,1,6,"ng-container",4),n.qZA()),2&tr){const Li=Mr.$implicit,Ao=Mr.index,ao=n.oxw();n.Q6J("files",Li)("index",Ao),n.xp6(1),n.Q6J("ngIf",1===Li.length&&!ao.fileTemplate),n.xp6(1),n.Q6J("ngIf",Li.length>1&&!ao.fileTemplate),n.xp6(1),n.Q6J("ngIf",ao.fileTemplate)}}const de=["fileSelectInput"],te=["fileSelectButton"];function j(tr,Mr){if(1&tr&&n._UZ(0,"ul",9),2&tr){const Li=n.oxw();n.Q6J("disabled",Li.disabled)("fileList",Li.fileList.files)("fileTemplate",Li.fileTemplate)("fileInfoTemplate",Li.fileInfoTemplate)}}const H=["clearButton"],z=["uploadButton"];function q(tr,Mr){if(1&tr&&n._UZ(0,"kendo-upload-status-total",11),2&tr){const Li=n.oxw();n.Q6J("fileList",Li.fileList)}}function se(tr,Mr){if(1&tr&&n._UZ(0,"ul",12),2&tr){const Li=n.oxw();n.Q6J("disabled",Li.disabled)("fileList",Li.fileList.files)("fileTemplate",Li.fileTemplate)("fileInfoTemplate",Li.fileInfoTemplate)}}function ne(tr,Mr){if(1&tr&&n._UZ(0,"kendo-upload-action-buttons",13),2&tr){const Li=n.oxw();n.Q6J("disabled",Li.disabled)("actionsLayout",Li.actionsLayout)}}var ge=function(tr){return tr[tr.Failed=0]="Failed",tr[tr.Initial=1]="Initial",tr[tr.Selected=2]="Selected",tr[tr.Uploaded=3]="Uploaded",tr[tr.Uploading=4]="Uploading",tr[tr.Paused=5]="Paused",tr}(ge||{});class Ce{constructor(){this._files={}}add(Mr){const Li=Mr.uid;this.has(Li)?Mr.validationErrors&&Mr.validationErrors.length>0?this._files[Li].unshift(Mr):this._files[Li].push(Mr):this._files[Li]=[Mr]}remove(Mr){this.has(Mr)&&(this._files[Mr]=null,delete this._files[Mr])}clear(){const Mr=this._files;for(const Li in Mr)if(Mr.hasOwnProperty(Li)){for(const Ao of Mr[Li])Ao.httpSubscription&&Ao.httpSubscription.unsubscribe();Mr[Li]=null,delete Mr[Li]}}has(Mr){return Mr in this._files}get(Mr){return this._files[Mr]}setFilesState(Mr,Li){for(const Ao of Mr)this.setFilesStateByUid(Ao.uid,Li)}setFilesStateByUid(Mr,Li){this.get(Mr).forEach(Ao=>{Ao.state=Li})}get count(){return Object.getOwnPropertyNames(this._files).length}get files(){const Mr=this._files,Li=[];for(const Ao in Mr)Mr.hasOwnProperty(Ao)&&Li.push(Mr[Ao]);return Li}get filesFlat(){const Mr=this._files,Li=[];for(const Ao in Mr)Mr.hasOwnProperty(Ao)&&Mr[Ao].forEach(Go=>{Li.push(Go)});return Li}get filesToUpload(){const Mr=this._files,Li=[];for(const Ao in Mr)if(Mr.hasOwnProperty(Ao)){const ao=Mr[Ao];let Go=!0;for(const pr of ao)(pr.state!==ge.Selected||pr.validationErrors&&pr.validationErrors.length>0)&&(Go=!1);Go&&Li.push(ao)}return Li}get firstFileToUpload(){const Mr=this._files;for(const Li in Mr)if(Mr.hasOwnProperty(Li)){const Ao=Mr[Li];let ao=!0;for(const Go of Ao)(Go.state!==ge.Selected||Go.validationErrors&&Go.validationErrors.length>0)&&(ao=!1);if(ao)return Ao}return null}getFilesWithState(Mr){return this.filesFlat.filter(Li=>Li.state===Mr)}hasFileWithState(Mr){const Li=this._files;for(const Ao in Li)if(Li.hasOwnProperty(Ao)){const ao=Li[Ao];for(const Go of ao)if(Mr.indexOf(Go.state)>=0)return!0}return!1}}class Te{constructor(Mr){this.files=Mr}}class De{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class fe extends De{constructor(){super()}}class xe{constructor(Mr,Li,Ao){this.files=Mr,this.operation=Li,this.response=Ao}}class Oe{constructor(Mr){this.file=Mr}}class Le extends De{constructor(Mr,Li){super(),this.files=Mr,this.headers=Li}}class Gt{constructor(Mr){this.file=Mr}}class Ut extends De{constructor(Mr){super(),this.files=Mr}}class An extends De{constructor(Mr,Li,Ao){super(),this.files=Mr,this.operation=Li,this.response=Ao}}class $n extends De{constructor(Mr,Li){super(),this.files=Mr,this.headers=Li}}class xn{constructor(Mr,Li){this.files=Mr,this.percentComplete=Li}}const mt={audio:[".aif",".iff",".m3u",".m4a",".mid",".mp3",".mpa",".wav",".wma",".ogg",".wav",".wma",".wpl"],video:[".3g2",".3gp",".avi",".asf",".flv",".m4u",".rm",".h264",".m4v",".mkv",".mov",".mp4",".mpg",".rm",".swf",".vob",".wmv"],image:[".ai",".dds",".heic",".jpe","jfif",".jif",".jp2",".jps",".eps",".bmp",".gif",".jpeg",".jpg",".png",".ps",".psd",".svg",".svgz",".tif",".tiff"],txt:[".doc",".docx",".log",".pages",".tex",".wpd",".wps",".odt",".rtf",".text",".txt",".wks"],presentation:[".key",".odp",".pps",".ppt",".pptx"],data:[".xlr",".xls",".xlsx"],programming:[".tmp",".bak",".msi",".cab",".cpl",".cur",".dll",".dmp",".drv",".icns",".ico",".link",".sys",".cfg",".ini",".asp",".aspx",".cer",".csr",".css",".dcr",".htm",".html",".js",".php",".rss",".xhtml"],pdf:[".pdf"],config:[".apk",".app",".bat",".cgi",".com",".exe",".gadget",".jar",".wsf"],zip:[".7z",".cbr",".gz",".sitx",".arj",".deb",".pkg",".rar",".rpm",".tar.gz",".z",".zip",".zipx"],discImage:[".dmg",".iso",".toast",".vcd",".bin",".cue",".mdf"]},ut={audio:a.pTO,video:a.qoH,image:a.GzL,txt:a.YFK,presentation:a.ltC,data:a.dgT,programming:a.tQD,pdf:a.n3D,config:a.Qpz,zip:a.UeD,discImage:a.OUW},dn=tr=>{const Mr=tr.lastIndexOf("\\");return-1!==Mr?tr.substr(Mr+1):tr},sn=tr=>{const Li=tr.match(/\.([^\.]+)$/);return Li?Li[0]:""},fn=tr=>!!(tr instanceof Object&&tr.hasOwnProperty("name")),nn=tr=>(tr.extension=tr.extension||sn(tr.name),tr.name=tr.name,tr.size=tr.size||0,tr.hasOwnProperty("state")||(tr.state=ge.Initial),tr.hasOwnProperty("uid")||(tr.uid=(0,o.M8)()),tr),mi=tr=>{const Mr=tr.name,Li=tr.size;return{extension:sn(Mr),name:Mr,rawFile:tr,size:Li,state:ge.Selected}},Eo=tr=>{const Mr=new Array;let Li;for(Li=0;Li<tr.length;Li++)Mr.push(mi(tr[Li]));return Mr},Ko=tr=>!!(tr.validationErrors&&tr.validationErrors.length>0),xo=tr=>{for(const Mr of tr)if(Ko(Mr))return!0;return!1},Xt=(tr,Mr)=>{const Li=(0,o.M8)();return tr.map(Ao=>(Ao.uid=Mr?(0,o.M8)():Li,Ao))},un=/^(?:a|input|select|textarea|button|object)$/i,Ki="k-icon k-select k-input k-multiselect-wrap",Fn="k-upload-button k-clear-selected k-upload-selected k-upload-action",It=tr=>String(tr).trim().split(" "),Bt=(tr,Mr)=>{const Li=It(Mr);return!!It(tr.className).find(Ao=>Li.indexOf(Ao)>=0)},xt=(tr,Mr=!0)=>{if(tr.tagName){const Li=tr.tagName.toLowerCase(),Ao=tr.getAttribute("tabIndex"),ao=null!==Ao&&!isNaN(Ao)&&Ao>-1;let Go=!1;return Go=un.test(Li)?!tr.disabled:ao,Go&&(!Mr||(tr=>{const Mr=tr.getBoundingClientRect();return!(!Mr.width||!Mr.height)&&"hidden"!==window.getComputedStyle(tr).visibility})(tr))}return!1},Mt=tr=>null!=tr;class pt{constructor(){this._files={}}add(Mr,Li){const Ao={index:0,position:0,retries:0,totalChunks:Li};return this._files[Mr]=Ao,Ao}remove(Mr){this.has(Mr)&&(this._files[Mr]=null,delete this._files[Mr])}has(Mr){return Mr in this._files}get(Mr){return this._files[Mr]}}let Lt=(()=>{class tr{constructor(Li){this.http=Li,this.cancelEvent=new n.vpe,this.clearEvent=new n.vpe,this.completeEvent=new n.vpe,this.errorEvent=new n.vpe,this.pauseEvent=new n.vpe,this.removeEvent=new n.vpe,this.resumeEvent=new n.vpe,this.selectEvent=new n.vpe,this.successEvent=new n.vpe,this.uploadEvent=new n.vpe,this.uploadProgressEvent=new n.vpe,this.changeEvent=new n.vpe,this.async={autoUpload:!0,batch:!1,chunk:!1,concurrent:!0,removeField:"fileNames",removeHeaders:new e.WM,removeMethod:"POST",removeUrl:"",responseType:"json",saveField:"files",saveHeaders:new e.WM,saveMethod:"POST",saveUrl:"",withCredentials:!0},this.chunk={autoRetryAfter:100,size:1048576,maxAutoRetries:1,resumable:!0},this.component="Upload",this.chunkMap=new pt,this.fileList=new Ce}get files(){return this.fileList}setChunkSettings(Li){!1!==Li&&(this.async.chunk=!0,"object"==typeof Li&&(this.chunk=Object.assign({},this.chunk,Li)))}onChange(){const Li=this.fileList.filesFlat.filter(Ao=>Ao.state===ge.Initial||Ao.state===ge.Uploaded);this.changeEvent.emit(Li.length>0?Li:null)}addFiles(Li){const Ao=new Ut(Li);if(this.selectEvent.emit(Ao),!Ao.isDefaultPrevented()){for(const ao of Li)this.fileList.add(ao);this.async.autoUpload&&this.uploadFiles()}if("FileSelect"===this.component){const ao=this.fileList.filesFlat;this.changeEvent.emit(ao.length>0?ao:null)}}addInitialFiles(Li){this.fileList.clear(),Li.forEach(Ao=>{const ao=nn(Ao);this.fileList.add(ao)})}addInitialFileSelectFiles(Li){this.fileList.clear(),Li.forEach(Ao=>{Ao instanceof File?this.fileList.add((tr=>{const Mr=mi(tr);return Mr.uid=(0,o.M8)(),Mr.state=ge.Selected,Mr})(Ao)):this.fileList.add(nn(Ao))})}resumeFile(Li){const Ao=this.fileList.get(Li);this.resumeEvent.emit(new Gt(Ao[0])),this.fileList.setFilesStateByUid(Li,ge.Uploading),this._uploadFiles([Ao])}pauseFile(Li){const Ao=this.fileList.get(Li)[0];this.pauseEvent.emit(new Oe(Ao)),this.fileList.setFilesStateByUid(Li,ge.Paused)}removeFiles(Li){const Ao=this.fileList.get(Li),ao=new Le(Ao,this.cloneRequestHeaders(this.async.removeHeaders));if(this.removeEvent.emit(ao),!ao.isDefaultPrevented())if("Upload"!==this.component||Ao[0].state!==ge.Uploaded&&Ao[0].state!==ge.Initial){if(this.fileList.remove(Li),"FileSelect"===this.component){const Go=this.fileList.filesFlat;this.changeEvent.emit(Go.length>0?Go:null)}}else this.performRemove(Ao,ao)}cancelFiles(Li){const Ao=this.fileList.get(Li),ao=new Te(Ao);this.cancelEvent.emit(ao);for(const Go of Ao)Go.httpSubscription&&Go.httpSubscription.unsubscribe();this.fileList.remove(Li),this.checkAllComplete()}clearFiles(){const Li=new fe;if(this.clearEvent.emit(Li),!Li.isDefaultPrevented()){const Ao=this.fileList.hasFileWithState([ge.Initial,ge.Uploaded]);this.fileList.clear(),Ao&&this.onChange()}}uploadFiles(){let Li=[];this.async.concurrent&&(Li=this.fileList.filesToUpload),!this.async.concurrent&&!this.fileList.hasFileWithState([ge.Uploading])&&(Li=this.fileList.firstFileToUpload?[this.fileList.firstFileToUpload]:[]),Li&&Li.length>0&&this._uploadFiles(Li)}retryFiles(Li){const Ao=[this.fileList.get(Li)];Ao&&this._uploadFiles(Ao)}_uploadFiles(Li){for(const Ao of Li){if(Ao[0].state===ge.Paused)return;const ao=new $n(Ao,this.cloneRequestHeaders(this.async.saveHeaders));if(this.uploadEvent.emit(ao),ao.isDefaultPrevented())this.fileList.remove(Ao[0].uid);else{this.fileList.setFilesState(Ao,ge.Uploading);const Go=this.performUpload(Ao,ao);Ao.forEach(pr=>{pr.httpSubscription=Go})}}}performRemove(Li,Ao){const ao=this.async,Go=Li.map(Ti=>Ti.name),pr=this.populateRemoveFormData(Go,Ao.data),Rr=this.populateRequestOptions(Ao.headers,!1),br=new e.aW(ao.removeMethod,ao.removeUrl,pr,Rr);this.http.request(br).subscribe(Ti=>{this.onSuccess(Ti,Li,"remove")},Ti=>{this.onError(Ti,Li,"remove")})}performUpload(Li,Ao){const ao=this.async,Go=this.populateUploadFormData(Li,Ao.data),pr=this.populateRequestOptions(Ao.headers),Rr=new e.aW(ao.saveMethod,ao.saveUrl,Go,pr);return this.http.request(Rr).subscribe(Ti=>{Ti.type!==e.dt.UploadProgress||this.async.chunk?Ti instanceof e.Zn&&(this.onSuccess(Ti,Li,"upload"),this.checkAllComplete()):this.onProgress(Ti,Li)},Ti=>{this.onError(Ti,Li,"upload"),this.checkAllComplete()})}onSuccess(Li,Ao,ao){if("upload"===ao&&this.async.chunk){if(this.onChunkProgress(Ao),!this.isChunkUploadComplete(Ao[0].uid))return this.updateChunkInfo(Ao[0].uid),void this._uploadFiles([Ao]);this.removeChunkInfo(Ao[0].uid)}const Go=new An(Ao,ao,Li);this.successEvent.emit(Go),"upload"===ao?this.fileList.setFilesState(Ao,Go.isDefaultPrevented()?ge.Failed:ge.Uploaded):Go.isDefaultPrevented()||this.fileList.remove(Ao[0].uid),Go.isDefaultPrevented()||this.onChange()}onError(Li,Ao,ao){if("upload"===ao&&this.async.chunk){const pr=this.chunk.maxAutoRetries,Rr=this.chunkMap.get(Ao[0].uid);if(Rr.retries<pr)return Rr.retries+=1,void setTimeout(()=>{this.retryFiles(Ao[0].uid)},this.chunk.autoRetryAfter)}const Go=new xe(Ao,ao,Li);this.errorEvent.emit(Go),"upload"===ao&&this.fileList.setFilesState(Ao,ge.Failed)}onProgress(Li,Ao){const ao=Math.round(100*Li.loaded/Li.total),Go=new xn(Ao,ao<100?ao:100);this.uploadProgressEvent.emit(Go)}onChunkProgress(Li){const Ao=this.chunkMap.get(Li[0].uid);let ao=0;Ao&&(ao=Ao.index===Ao.totalChunks-1?100:Math.round((Ao.index+1)/Ao.totalChunks*100));const Go=new xn(Li,ao<100?ao:100);this.uploadProgressEvent.emit(Go)}checkAllComplete(){!this.fileList.hasFileWithState([ge.Uploading,ge.Paused])&&this.areAllSelectedFilesHandled()?this.completeEvent.emit():this.shouldUploadNextFile()&&this.uploadFiles()}shouldUploadNextFile(){return!this.async.concurrent&&this.fileList.hasFileWithState([ge.Selected])&&!this.fileList.hasFileWithState([ge.Uploading])}areAllSelectedFilesHandled(){return 0===this.fileList.getFilesWithState(ge.Selected).filter(Ao=>!Ao.validationErrors).length}cloneRequestHeaders(Li){const Ao={};return Li&&Li.keys().forEach(ao=>{Ao[ao]=Li.get(ao)}),new e.WM(Ao)}populateRequestOptions(Li,Ao=!0){return{headers:Li,reportProgress:Ao,responseType:this.async.responseType,withCredentials:this.async.withCredentials}}populateUploadFormData(Li,Ao){const ao=this.async.saveField,Go=new FormData;if(this.populateClientFormData(Go,Ao),this.async.chunk)Go.append(ao,this.getNextChunk(Li[0])),Go.append("metadata",this.getChunkMetadata(Li[0]));else for(const pr of Li)Go.append(ao,pr.rawFile);return Go}populateRemoveFormData(Li,Ao){const ao=new FormData;this.populateClientFormData(ao,Ao);for(const Go of Li)ao.append(this.async.removeField,Go);return ao}populateClientFormData(Li,Ao){for(const ao in Ao)Ao.hasOwnProperty(ao)&&Li.append(ao,Ao[ao])}getNextChunk(Li){const Ao=this.getChunkInfo(Li);return Li.rawFile.slice(Ao.position,Ao.position+this.chunk.size)}getChunkInfo(Li){let Ao=this.chunkMap.get(Li.uid);if(!Ao){const ao=Math.ceil(Li.size/this.chunk.size);Ao=this.chunkMap.add(Li.uid,ao)}return Ao}updateChunkInfo(Li){const Ao=this.chunkMap.get(Li);Ao.index<Ao.totalChunks-1&&(Ao.index+=1,Ao.position+=this.chunk.size,Ao.retries=0)}removeChunkInfo(Li){this.chunkMap.remove(Li)}getChunkMetadata(Li){const Ao=this.chunkMap.get(Li.uid);return JSON.stringify({chunkIndex:Ao.index,contentType:Li.rawFile.type,fileName:Li.name,fileSize:Li.size,fileUid:Li.uid,totalChunks:Ao.totalChunks})}isChunkUploadComplete(Li){const Ao=this.chunkMap.get(Li);return!!Ao&&Ao.index+1===Ao.totalChunks}}return tr.\u0275fac=function(Li){return new(Li||tr)(n.LFG(e.eN))},tr.\u0275prov=n.Yz7({token:tr,factory:tr.\u0275fac}),tr})(),tt=(()=>{class tr{constructor(Li,Ao){this.uploadService=Li,this.zone=Ao,this.onActionButtonAction=new n.vpe,this.onActionButtonFocus=new n.vpe,this.onFileAction=new n.vpe,this.onFileFocus=new n.vpe,this.onTab=new n.vpe,this.onWrapperFocus=new n.vpe,this.onSelectButtonFocus=new n.vpe,this.actionButtonsVisible=!1,this.focused=!1,this._focusedIndex=-1}action(Li){return this.keyBindings[Li.keyCode]}process(Li){const Ao=this.action(Li);Ao&&Ao(Li)}computeKeys(Li){this.keyBindings={[o.R8.Space]:()=>this.handleSpace(),[o.R8.Enter]:Ao=>this.handleEnter(Ao),[o.R8.Escape]:()=>this.handleEscape(),[o.R8.Delete]:()=>this.handleDelete(),[o.R8.Tab]:Ao=>this.handleTab(Ao.shiftKey),[o.R8.ArrowUp]:Ao=>this.handleUp(Ao),[o.R8.ArrowDown]:Ao=>this.handleDown(Ao),[this.invertKeys(Li,o.R8.ArrowLeft,o.R8.ArrowRight)]:()=>this.handleLeft(),[this.invertKeys(Li,o.R8.ArrowRight,o.R8.ArrowLeft)]:()=>this.handleRight()}}invertKeys(Li,Ao,ao){return"rtl"===Li?ao:Ao}focusSelectButton(){this.focused=!0,this._focusedIndex=-1,this.onSelectButtonFocus.emit()}handleEnter(Li){this.lastIndex>=0&&this.zone.run(()=>{this.focusedIndex<=this.lastFileIndex?this.onFileAction.emit(o.R8.Enter):this.actionButtonsVisible&&this.focusedIndex<=this.lastIndex&&(Li.preventDefault(),this.onActionButtonAction.emit(this.focusedIndex<this.lastIndex?"clear":"upload"))})}handleSpace(){this.focusedIndex>=0&&this.focusedIndex<=this.lastFileIndex&&this.zone.run(()=>this.onFileAction.emit(o.R8.Space))}handleDelete(){this.focusedIndex>=0&&this.focusedIndex<=this.lastFileIndex&&this.zone.run(()=>{this.onFileAction.emit(o.R8.Delete)})}handleEscape(){this.focusedIndex>=0&&this.focusedIndex<=this.lastFileIndex&&this.onFileAction.emit(o.R8.Escape)}handleLeft(){this.actionButtonsVisible&&this.focusedIndex===this.lastIndex&&(this.focusedIndex-=1,this.zone.run(()=>{this.onActionButtonFocus.emit("clear")}))}handleRight(){this.actionButtonsVisible&&this.focusedIndex===this.lastIndex-1&&(this.focusedIndex+=1,this.zone.run(()=>{this.onActionButtonFocus.emit("upload")}))}handleTab(Li){return-1===this.focusedIndex?(this.focusedIndex=this.lastFileIndex+1,void this.zone.run(()=>this.onActionButtonFocus.emit("clear"))):this.focusedIndex===this.lastFileIndex+1?(this.focusedIndex+=1,void this.zone.run(()=>this.onActionButtonFocus.emit("upload"))):void(this.focusedIndex===this.lastIndex&&Li?this.focusedIndex-=1:this.focusedIndex===this.lastFileIndex+1&&Li&&(this.focusedIndex=-1,this.zone.run(()=>this.onSelectButtonFocus.emit())))}handleDown(Li){this.lastIndex>=0&&this.focusedIndex<this.lastIndex&&(Li.preventDefault(),this.zone.run(()=>{if(this.focusedIndex<this.lastFileIndex)return this.focusedIndex+=1,void this.onFileFocus.emit(this.focusedIndex);this.actionButtonsVisible&&this.focusedIndex===this.lastFileIndex&&(this.focusedIndex+=1,this.onActionButtonFocus.emit("clear"))}))}handleUp(Li){this.lastIndex>=0&&this.focusedIndex>-1&&(Li.preventDefault(),this.zone.run(()=>{this.focusedIndex-=1,-1!==this.focusedIndex?this.focusedIndex<=this.lastFileIndex?this.onFileFocus.emit(this.focusedIndex):this.actionButtonsVisible&&this.focusedIndex<=this.lastIndex&&(this.focusedIndex=this.lastFileIndex,this.onFileFocus.emit(this.focusedIndex)):this.onSelectButtonFocus.emit()}))}get focusedIndex(){return this._focusedIndex}set focusedIndex(Li){this.focused||this.onWrapperFocus.emit(),this._focusedIndex=Li,this.focused=!0,this._focusedIndex>=0&&this._focusedIndex<=this.lastFileIndex&&this.onFileFocus.emit(Li)}get lastFileIndex(){return this.actionButtonsVisible?this.lastIndex-2:this.lastIndex}get lastIndex(){const Li=this.uploadService.files.count;return this.actionButtonsVisible?Li+1:Li-1}}return tr.\u0275fac=function(Li){return new(Li||tr)(n.LFG(Lt),n.LFG(n.R0b))},tr.\u0275prov=n.Yz7({token:tr,factory:tr.\u0275fac}),tr})();const Ne={};let vt=(()=>{class tr{addComponent(Li,Ao){this.has(Ao)?Ne[Ao].push(Li):Ne[Ao]=[Li]}getComponents(Li){return Ne[Li]}has(Li){return Li in Ne}}return tr.\u0275fac=function(Li){return new(Li||tr)},tr.\u0275prov=n.Yz7({token:tr,factory:tr.\u0275fac}),tr})();const ln={name:"@progress/kendo-angular-upload",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1689688615,version:"13.2.0",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"};let jn=(()=>{class tr{constructor(Li){this.templateRef=Li}}return tr.\u0275fac=function(Li){return new(Li||tr)(n.Y36(n.Rgc))},tr.\u0275dir=n.lG2({type:tr,selectors:[["","kendoUploadFileTemplate",""],["","kendoFileSelectFileTemplate",""]]}),tr})(),Pi=(()=>{class tr{constructor(Li){this.templateRef=Li}}return tr.\u0275fac=function(Li){return new(Li||tr)(n.Y36(n.Rgc))},tr.\u0275dir=n.lG2({type:tr,selectors:[["","kendoUploadFileInfoTemplate",""],["","kendoFileSelectFileInfoTemplate",""]]}),tr})(),go=(()=>{class tr{constructor(Li,Ao,ao){this.navigationService=Ao,this.uploadService=ao,this.fileClass=!0,this.focused=!1,this.element=Li}focus(){this.element.nativeElement.focus()}get uidAttribute(){return this.files[0].uid}get tabIndex(){return"-1"}get kFileError(){return this.files[0].state===ge.Failed}get kFileInvalid(){return xo(this.files)}get kFileProgress(){return this.files[0].state===ge.Uploading||this.files[0].state===ge.Paused}get kFileSuccess(){return"Upload"===this.uploadService.component&&(this.files[0].state===ge.Uploaded||this.files[0].state===ge.Initial)}get kStateFocused(){return this.focused}onFocus(){this.focused=!0}onBlur(){this.focused=!1}onClick(Li){!xt(Li.target)&&!Bt(Li.target,Ki)&&(this.navigationService.focusedIndex=this.index)}}return tr.\u0275fac=function(Li){return new(Li||tr)(n.Y36(n.SBq),n.Y36(tt),n.Y36(Lt))},tr.\u0275dir=n.lG2({type:tr,selectors:[["","kendoUploadFileListItem",""]],hostVars:14,hostBindings:function(Li,Ao){1&Li&&n.NdJ("focus",function(){return Ao.onFocus()})("blur",function(){return Ao.onBlur()})("click",function(Go){return Ao.onClick(Go)}),2&Li&&(n.uIk("data-uid",Ao.uidAttribute)("tabIndex",Ao.tabIndex),n.ekj("k-file",Ao.fileClass)("k-file-error",Ao.kFileError)("k-file-invalid",Ao.kFileInvalid)("k-file-progress",Ao.kFileProgress)("k-file-success",Ao.kFileSuccess)("k-focus",Ao.kStateFocused))},inputs:{files:"files",index:"index"}}),tr})(),si=(()=>{class tr{constructor(Li){this.uploadService=Li,this.progressComplete=0}subscribeUploadProgress(Li){this.uploadProgressSubscription=this.uploadService.uploadProgressEvent.subscribe(Li)}fileHasValidationErrors(Li){return Ko(Li)}filesHaveValidationErrors(Li){return xo(Li)}ngOnDestroy(){this.uploadProgressSubscription.unsubscribe()}getFileValidationMessage(Li){let Ao;return Li.validationErrors&&Li.validationErrors.length>0&&(Ao=this.localization.get(Li.validationErrors[0])),Ao}getTotalFilesSizeMessage(Li){return(tr=>{let Li,Mr=0;if("number"!=typeof tr[0].size)return"";for(Li=0;Li<tr.length;Li++)tr[Li].size&&(Mr+=tr[Li].size);return Mr/=1024,Mr<1024?Mr.toFixed(2)+" KB":(Mr/1024).toFixed(2)+" MB"})(Li)}textFor(Li){return this.localization.get(Li)}}return tr.\u0275fac=function(Li){return new(Li||tr)(n.Y36(Lt))},tr.\u0275cmp=n.Xpm({type:tr,selectors:[["ng-component"]],decls:0,vars:0,template:function(Li,Ao){},encapsulation:2}),tr})(),ot=(()=>{class tr{constructor(Li,Ao,ao){this.uploadService=Li,this.localization=Ao,this.navigation=ao,this.actionFocused=!1,this.retryFocused=!1,this.pauseResumeFocused=!1,this.retrySVGIcon=a.jQe,this.playSVGIcon=a.Qsz,this.pauseSVGIcon=a.CIP,this.cancelSVGIcon=a.p5j,this.deleteSVGIcon=a.FZE}onFocus(Li){"action"===Li&&(this.actionFocused=!0),"retry"===Li&&(this.retryFocused=!0),"pauseResume"===Li&&(this.pauseResumeFocused=!0)}onBlur(Li){"retry"===Li&&(this.retryFocused=!1),"action"===Li&&(this.actionFocused=!1),"pauseResume"===Li&&(this.pauseResumeFocused=!1)}onRetryClick(){this.disabled||this.uploadService.retryFiles(this.file.uid)}onRemoveCancelClick(Li){if(this.disabled)return;Li.stopImmediatePropagation();const Ao=this.file.uid;this.file.state===ge.Uploading?this.uploadService.cancelFiles(Ao):this.uploadService.removeFiles(Ao),this.navigation.focusSelectButton()}onPauseResumeClick(){if(this.disabled)return;const Li=this.file.uid;this.file.state===ge.Paused?this.uploadService.resumeFile(Li):this.uploadService.pauseFile(Li)}get actionButtonTitle(){return this.localization.get(this.file.state===ge.Uploading?"cancel":"remove")}get retryButtonTitle(){return this.localization.get("retry")}get pauseResumeButtonTitle(){return this.localization.get(this.file.state===ge.Uploading?"pause":"resume")}get isUploading(){return this.file.state===ge.Uploading}get isFailed(){return this.file.state===ge.Failed}get isPaused(){return this.file.state===ge.Paused}get isResumable(){const Li=this.uploadService;return Li.async.chunk&&Li.chunk.resumable&&(this.file.state===ge.Paused||this.file.state===ge.Uploading)}get isActionButtonVisible(){return!((this.file.state===ge.Uploaded||this.file.state===ge.Initial)&&!this.uploadService.async.removeUrl&&"Upload"===this.uploadService.component)}}return tr.\u0275fac=function(Li){return new(Li||tr)(n.Y36(Lt),n.Y36(u.oQ),n.Y36(tt))},tr.\u0275cmp=n.Xpm({type:tr,selectors:[["kendo-upload-file-list-item-action-button"]],inputs:{file:"file",disabled:"disabled",progress:"progress"},decls:5,vars:4,consts:[[1,"k-upload-actions"],["class","k-upload-pct",4,"ngIf"],["type","button","class","k-button k-icon-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-upload-action",3,"ngClass","focus","blur","click",4,"ngIf"],["class","k-button k-icon-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-upload-action","type","button",3,"ngClass","focus","blur","click",4,"ngIf"],[1,"k-upload-pct"],["type","button",1,"k-button","k-icon-button","k-button-md","k-rounded-md","k-button-flat","k-button-flat-base","k-upload-action",3,"ngClass","focus","blur","click"],["name","refresh-sm","innerCssClass","k-retry",3,"svgIcon"],[3,"name","svgIcon"],[3,"name","svgIcon","innerCssClass"]],template:function(Li,Ao){1&Li&&(n.TgZ(0,"span",0),n.YNc(1,w,2,1,"span",1),n.YNc(2,M,2,8,"button",2),n.YNc(3,p,2,9,"button",2),n.YNc(4,E,2,10,"button",3),n.qZA()),2&Li&&(n.xp6(1),n.Q6J("ngIf",Ao.isUploading||Ao.isPaused),n.xp6(1),n.Q6J("ngIf",Ao.isFailed),n.xp6(1),n.Q6J("ngIf",Ao.isResumable),n.xp6(1),n.Q6J("ngIf",Ao.isActionButtonVisible))},dependencies:[f.ZS,k.O5,k.mk],encapsulation:2}),tr})(),pn=(()=>{class tr extends si{constructor(Li,Ao){super(Ao),this.localization=Li,this.subscribeUploadProgress(ao=>{ao.files[0].uid===this.file.uid&&(this.progressComplete=ao.percentComplete)})}get fileStatusText(){const Li=this.file.validationErrors;return this.file.state===ge.Uploaded?`${this.textFor("fileStatusUploaded")}`:this.file.state===ge.Failed?`${this.textFor("fileStatusFailed")}`:Mt(Li)?this.getFileValidationMessage(this.file):this.getTotalFilesSizeMessage([this.file])}get showProgress(){return this.file.state===ge.Uploading||this.file.state===ge.Paused?"active":"inactive"}get fileGroupClass(){return(tr=>{const Mr="file";for(const Li in mt)if(mt[Li].indexOf(tr)>=0)return"discImage"===Li?`${Mr}-disc-image`:`${Mr}-${Li}`;return Mr})(this.file.extension?this.file.extension:"")}get fileSVGGroupIcon(){const Li=a.RbE;if(this.file.extension)for(const Ao in mt)if(mt[Ao].indexOf(this.file.extension)>=0)return ut[Ao];return Li}get isUploadSuccessful(){return this.file.state===ge.Uploaded}get isUploadFailed(){return this.file.state===ge.Failed}get isNotYetUploaded(){return!this.isUploadFailed&&!this.isUploadSuccessful}}return tr.\u0275fac=function(Li){return new(Li||tr)(n.Y36(u.oQ),n.Y36(Lt))},tr.\u0275cmp=n.Xpm({type:tr,selectors:[["kendo-upload-file-list-single-item"]],inputs:{disabled:"disabled",file:"file",fileInfoTemplate:"fileInfoTemplate"},features:[n.qOj],decls:7,vars:11,consts:[[3,"value","label"],[1,"k-file-icon-wrapper"],["size","xxlarge","innerCssClass","k-file-icon",3,"name","svgIcon"],[1,"k-file-info"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"file","disabled","progress"],[1,"k-file-name",3,"title"],[3,"ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(Li,Ao){1&Li&&(n._UZ(0,"kendo-progressbar",0),n.TgZ(1,"span",1),n._UZ(2,"kendo-icon-wrapper",2),n.qZA(),n.TgZ(3,"span",3),n.YNc(4,I,5,9,"ng-container",4),n.YNc(5,F,1,8,"ng-container",5),n.qZA(),n._UZ(6,"kendo-upload-file-list-item-action-button",6)),2&Li&&(n.Q6J("@progressState",Ao.showProgress)("value",Ao.progressComplete)("label",n.DdM(10,P)),n.xp6(2),n.Q6J("name",Ao.fileGroupClass)("svgIcon",Ao.fileSVGGroupIcon),n.xp6(2),n.Q6J("ngIf",!Ao.fileInfoTemplate),n.xp6(1),n.Q6J("ngIf",Ao.fileInfoTemplate),n.xp6(1),n.Q6J("file",Ao.file)("disabled",Ao.disabled)("progress",Ao.progressComplete))},dependencies:[x.RI,f.ZS,ot,k.O5,k.mk,k.tP],encapsulation:2,data:{animation:[(0,R.X$)("progressState",[(0,R.SB)("active",(0,R.oB)({opacity:1})),(0,R.SB)("inactive",(0,R.oB)({opacity:0})),(0,R.eR)("void => active",(0,R.oB)({opacity:0})),(0,R.eR)("inactive => active",(0,R.oB)({opacity:1})),(0,R.eR)("active => inactive",(0,R.jt)("1s 2s ease-out"))])]}}),tr})(),_i=(()=>{class tr extends si{constructor(Li,Ao){super(Ao),this.localization=Li,this.copySVGIcon=a.UIf,this.subscribeUploadProgress(ao=>{ao.files[0].uid===this.files[0].uid&&(this.progressComplete=ao.percentComplete)})}get showProgress(){return this.files[0].state===ge.Uploading||this.files[0].state===ge.Paused?"active":"inactive"}ngOnInit(){this.filesHaveErrors=super.filesHaveValidationErrors(this.files)}fileStatusText(Li){return Mt(Li.validationErrors)?this.getFileValidationMessage(Li):this.getTotalFilesSizeMessage([Li])}get batchStatusText(){const Li=this.files[0].state,Ao=this.files.length;return Li===ge.Uploaded?`${Ao} ${this.textFor("filesBatchStatusUploaded")}`:Li===ge.Failed?`${Ao} ${this.textFor("filesBatchStatusFailed")}`:`${Ao} ${this.textFor("filesBatchStatus")}`}get isUploadSuccessful(){return this.files[0].state===ge.Uploaded}get isUploadFailed(){return this.files[0].state===ge.Failed}}return tr.\u0275fac=function(Li){return new(Li||tr)(n.Y36(u.oQ),n.Y36(Lt))},tr.\u0275cmp=n.Xpm({type:tr,selectors:[["kendo-upload-file-list-multiple-items"]],inputs:{disabled:"disabled",files:"files",fileInfoTemplate:"fileInfoTemplate"},features:[n.qOj],decls:7,vars:10,consts:[[3,"value","label"],[1,"k-file-icon-wrapper"],["name","copy","size","xxlarge","innerCssClass","k-file-icon",3,"svgIcon"],[1,"k-multiple-files-wrapper"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"file","disabled","progress"],["class","k-file-info",4,"ngFor","ngForOf"],[1,"k-file-summary"],[1,"k-file-info"],[1,"k-file-name",3,"title"],[3,"ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(Li,Ao){1&Li&&(n._UZ(0,"kendo-progressbar",0),n.TgZ(1,"span",1),n._UZ(2,"kendo-icon-wrapper",2),n.qZA(),n.TgZ(3,"span",3),n.YNc(4,V,4,2,"ng-container",4),n.YNc(5,K,1,6,"ng-container",5),n.qZA(),n._UZ(6,"kendo-upload-file-list-item-action-button",6)),2&Li&&(n.Q6J("@progressState",Ao.showProgress)("value",Ao.progressComplete)("label",n.DdM(9,P)),n.xp6(2),n.Q6J("svgIcon",Ao.copySVGIcon),n.xp6(2),n.Q6J("ngIf",!Ao.fileInfoTemplate),n.xp6(1),n.Q6J("ngIf",Ao.fileInfoTemplate),n.xp6(1),n.Q6J("file",Ao.files[0])("disabled",Ao.disabled)("progress",Ao.progressComplete))},dependencies:[x.RI,f.ZS,ot,k.O5,k.sg,k.mk,k.tP],encapsulation:2,data:{animation:[(0,R.X$)("progressState",[(0,R.SB)("active",(0,R.oB)({opacity:1})),(0,R.SB)("inactive",(0,R.oB)({opacity:0})),(0,R.eR)("void => active",(0,R.oB)({opacity:0})),(0,R.eR)("inactive => active",(0,R.oB)({opacity:1})),(0,R.eR)("active => inactive",(0,R.jt)("1s 2s ease-out"))])]}}),tr})(),wi=(()=>{class tr{constructor(Li,Ao){this.uploadService=Li,this.navigation=Ao,this.onItemFocus(),this.onItemAction()}onItemFocus(){this.focusSubscription=this.navigation.onFileFocus.subscribe(Li=>{this.fileListItems.toArray()[Li].focus()})}onItemAction(){this.actionSubscription=this.navigation.onFileAction.subscribe(Li=>{this.itemActionHandler(Li)})}itemActionHandler(Li){const Ao=this.navigation.focusedIndex,ao=this.fileListItems.toArray()[Ao],Go=ao.uidAttribute,pr=this.uploadService.files.get(Go);if(Li===o.R8.Escape&&pr[0].state===ge.Uploading)return this.uploadService.cancelFiles(Go),void this.navigation.focusSelectButton();Li!==o.R8.Enter||pr[0].state!==ge.Failed?(Li===o.R8.Delete&&(pr[0].state===ge.Uploading?this.uploadService.cancelFiles(Go):this.hasDelete(ao)&&this.uploadService.removeFiles(Go),this.navigation.focusSelectButton()),Li===o.R8.Space&&pr[0].state!==ge.Uploaded&&this.uploadService.async.chunk&&(pr[0].state===ge.Paused?this.uploadService.resumeFile(Go):this.uploadService.pauseFile(Go))):this.uploadService.retryFiles(Go)}hasDelete(Li){return Li.element.nativeElement.getElementsByClassName("k-delete").length>0}ngOnDestroy(){this.focusSubscription.unsubscribe(),this.actionSubscription.unsubscribe()}}return tr.\u0275fac=function(Li){return new(Li||tr)(n.Y36(Lt),n.Y36(tt))},tr.\u0275cmp=n.Xpm({type:tr,selectors:[["","kendo-upload-file-list",""]],viewQuery:function(Li,Ao){if(1&Li&&n.Gf(go,5),2&Li){let ao;n.iGM(ao=n.CRH())&&(Ao.fileListItems=ao)}},inputs:{disabled:"disabled",fileList:"fileList",fileTemplate:"fileTemplate",fileInfoTemplate:"fileInfoTemplate"},attrs:X,decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],["kendoUploadFileListItem","",3,"files","index"],["class","k-file-single",3,"disabled","file","fileInfoTemplate",4,"ngIf"],["class","k-file-multiple",3,"disabled","files","fileInfoTemplate",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[1,"k-file-single",3,"disabled","file","fileInfoTemplate"],[1,"k-file-multiple",3,"disabled","files","fileInfoTemplate"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(Li,Ao){1&Li&&n.YNc(0,re,4,5,"ng-template",0),2&Li&&n.Q6J("ngForOf",Ao.fileList)},dependencies:[pn,_i,k.sg,go,k.O5,k.tP],encapsulation:2}),tr})(),hi=(()=>{class tr extends u.Z1{}return tr.\u0275fac=function(){let Mr;return function(Ao){return(Mr||(Mr=n.n5z(tr)))(Ao||tr)}}(),tr.\u0275dir=n.lG2({type:tr,inputs:{cancel:"cancel",clearSelectedFiles:"clearSelectedFiles",dropFilesHere:"dropFilesHere",externalDropFilesHere:"externalDropFilesHere",filesBatchStatus:"filesBatchStatus",filesBatchStatusFailed:"filesBatchStatusFailed",filesBatchStatusUploaded:"filesBatchStatusUploaded",fileStatusFailed:"fileStatusFailed",fileStatusUploaded:"fileStatusUploaded",headerStatusPaused:"headerStatusPaused",headerStatusUploaded:"headerStatusUploaded",headerStatusUploading:"headerStatusUploading",invalidFileExtension:"invalidFileExtension",invalidMaxFileSize:"invalidMaxFileSize",invalidMinFileSize:"invalidMinFileSize",pause:"pause",remove:"remove",resume:"resume",retry:"retry",select:"select",uploadSelectedFiles:"uploadSelectedFiles"},features:[n.qOj]}),tr})(),zn=(()=>{class tr extends hi{constructor(Li){super(),this.service=Li}}return tr.\u0275fac=function(Li){return new(Li||tr)(n.Y36(u.oQ))},tr.\u0275dir=n.lG2({type:tr,selectors:[["","kendoUploadLocalizedMessages",""],["","kendoFileSelectLocalizedMessages",""],["","kendoUploadDropZoneLocalizedMessages",""]],features:[n._Bn([{provide:hi,useExisting:(0,n.Gpc)(()=>tr)}]),n.qOj]}),tr})();const Ei="invalidMaxFileSize",li="invalidMinFileSize",Xi="invalidFileExtension",ki=(tr,Mr)=>{Mr.length>0&&Mr.indexOf(tr.extension.toLowerCase())<0&&(tr.validationErrors=tr.validationErrors||[],tr.validationErrors.indexOf(Xi)<0&&tr.validationErrors.push(Xi))},bo=(tr,Mr,Li)=>{0!==Mr&&tr.size<Mr&&(tr.validationErrors=tr.validationErrors||[],tr.validationErrors.indexOf(li)<0&&tr.validationErrors.push(li)),0!==Li&&tr.size>Li&&(tr.validationErrors=tr.validationErrors||[],tr.validationErrors.indexOf(Ei)<0&&tr.validationErrors.push(Ei))},wn=(tr,Mr)=>{const Li=(tr=>tr.map(Li=>("."===Li.substring(0,1)?Li:"."+Li).toLowerCase()))(Mr.allowedExtensions),Ao=Mr.maxFileSize,ao=Mr.minFileSize;let Go;for(Go=0;Go<tr.length;Go++)ki(tr[Go],Li),bo(tr[Go],ao,Ao)};let Zi=(()=>{class tr{constructor(Li,Ao,ao){this.element=Li,this.renderer=Ao,this.hideIntervalElement=null,this.hoverClass=ao}onElementDragEnterListener(){return this.addClass(this.hoverClass),this.lastDragElement=new Date,this.hideIntervalElement||(this.hideIntervalElement=setInterval(()=>{this.calculateTimeDiff(this.lastDragElement)<100||(this.removeClass(this.hoverClass),clearInterval(this.hideIntervalElement),this.hideIntervalElement=null)},100)),!1}onElementDragOverListener(){return this.lastDragElement=new Date,!1}calculateTimeDiff(Li){return(new Date).getTime()-Li.getTime()}addClass(Li){this.renderer.addClass(this.element.nativeElement,Li)}removeClass(Li){this.renderer.removeClass(this.element.nativeElement,Li)}}return tr.\u0275fac=function(Li){return new(Li||tr)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36("hoverClass"))},tr.\u0275dir=n.lG2({type:tr,hostBindings:function(Li,Ao){1&Li&&n.NdJ("dragenter",function(){return Ao.onElementDragEnterListener()})("dragover",function(){return Ao.onElementDragOverListener()})}}),tr})(),oo=(()=>{class tr extends Zi{constructor(Li,Ao,ao,Go){super(Li,Ao,"k-hover"),this.ngZone=ao,this.uploadService=Go,this.initialClassName=!0,this.hideIntervalDocument=null,this.activeClass="k-dropzone-active",this.ngZone.runOutsideAngular(()=>{this.unsubscribeDocumentDragEnter=this.renderer.listen("document","dragenter",()=>this.onDocumentDragEnter()),this.unsubscribeDocumentDragOver=this.renderer.listen("document","dragover",()=>this.onDocumentDragOver())})}ngOnDestroy(){this.ngZone.runOutsideAngular(()=>{this.unsubscribeDocumentDragEnter&&this.unsubscribeDocumentDragEnter(),this.unsubscribeDocumentDragOver&&this.unsubscribeDocumentDragOver()})}onDocumentDragEnter(){return this.addClass(this.activeClass),this.lastDragDocument=new Date,this.hideIntervalDocument||(this.hideIntervalDocument=setInterval(()=>{this.calculateTimeDiff(this.lastDragDocument)<100||(this.removeClass(this.activeClass),clearInterval(this.hideIntervalDocument),this.hideIntervalDocument=null)},100)),!1}onDocumentDragOver(){return this.lastDragDocument=new Date,!1}onDropListener(Li){const Ao=Li.dataTransfer.files;if(Ao.length>0&&!this.disabled){let ao=Eo(Ao);ao=Xt(ao,!this.uploadService.async.batch),this.multiple||(ao.splice(1,ao.length-1),this.uploadService.clearFiles()),wn(ao,this.restrictions),this.uploadService.addFiles(ao)}return!1}}return tr.\u0275fac=function(Li){return new(Li||tr)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(n.R0b),n.Y36(Lt))},tr.\u0275dir=n.lG2({type:tr,selectors:[["","kendoUploadInternalDropZone",""],["","kendoFileSelectInternalDropZone",""]],hostVars:4,hostBindings:function(Li,Ao){1&Li&&n.NdJ("drop",function(Go){return Ao.onDropListener(Go)}),2&Li&&n.ekj("k-dropzone",Ao.initialClassName)("k-upload-dropzone",Ao.initialClassName)},inputs:{disabled:"disabled",multiple:"multiple",restrictions:"restrictions"},features:[n.qOj]}),tr})(),Bi=(()=>{class tr{constructor(Li,Ao,ao){this.uploadService=Li,this.navigation=Ao,this.type="file",this.autocomplete="off",this.tabIndex=-1,this.element=ao}get nameAttribute(){return this.uploadService.async.saveField}get multipleAttribute(){return this.multiple?"multiple":null}get dirAttribute(){return this.dir}get disabledAttribute(){return this.disabled?"true":null}onInputChange(Li){const Ao=navigator.userAgent;let pr=(tr=>tr.files?Eo(tr.files):tr.value.split("|").map((Li,Ao)=>{const ao=Li.trim();return{extension:sn(ao),name:dn(ao),rawFile:null,size:1e3*(Ao+1),state:ge.Selected}}))(Li.target);pr=Xt(pr,!this.uploadService.async.batch),wn(pr,this.restrictions),this.multiple||this.uploadService.clearFiles(),this.uploadService.addFiles(pr);const Rr=this.element.nativeElement;(Ao.match(/(webkit)[ \/]([\w.]+)/i)||Ao.match(/(windows)[ \/]([\w.]+)/i))&&(Rr.type="",Rr.type="file"),setTimeout(()=>{this.navigation.focusedIndex=-1})}}return tr.\u0275fac=function(Li){return new(Li||tr)(n.Y36(Lt),n.Y36(tt),n.Y36(n.SBq))},tr.\u0275dir=n.lG2({type:tr,selectors:[["","kendoFileSelect",""]],hostVars:7,hostBindings:function(Li,Ao){1&Li&&n.NdJ("change",function(Go){return Ao.onInputChange(Go)}),2&Li&&n.uIk("type",Ao.type)("autocomplete",Ao.autocomplete)("tabindex",Ao.tabIndex)("name",Ao.nameAttribute)("multiple",Ao.multipleAttribute)("dir",Ao.dirAttribute)("disabled",Ao.disabledAttribute)},inputs:{dir:"dir",disabled:"disabled",multiple:"multiple",restrictions:"restrictions"}}),tr})();const Xo={multi:!0,provide:l.JU,useExisting:(0,n.Gpc)(()=>or)};let Lo=0,or=(()=>{class tr{constructor(Li,Ao,ao,Go,pr,Rr,br,Ti){this.uploadService=Li,this.localization=Ao,this.navigation=ao,this.dropZoneService=Go,this.ngZone=pr,this.renderer=Rr,this.cdr=br,this.disabled=!1,this.multiple=!0,this.showFileList=!0,this.tabindex=0,this.focusableId=`k-${(0,o.M8)()}`,this.onBlur=new n.vpe,this.onFocus=new n.vpe,this.select=new n.vpe,this.remove=new n.vpe,this.valueChange=new n.vpe,this.hostDefaultClasses=!0,this._restrictions={allowedExtensions:[],maxFileSize:0,minFileSize:0},this.onTouchedCallback=mr=>{},this.onChangeCallback=mr=>{},(0,_.s)(ln),this.wrapper=Ti.nativeElement,this.direction=Ao.rtl?"rtl":"ltr",this.navigation.computeKeys(this.direction),this.fileList=this.uploadService.files,this.localizationChangeSubscription=Ao.changes.subscribe(({rtl:mr})=>{this.direction=mr?"rtl":"ltr",this.navigation.computeKeys(this.direction)}),this.subscribeBlur(),this.subscribeFocus(),this.attachEventHandlers(),this.setDefaultSettings()}set name(Li){this.uploadService.async.saveField=Li}get name(){return this.uploadService.async.saveField}set restrictions(Li){const Ao=Object.assign({},this._restrictions,Li);this._restrictions=Ao}get restrictions(){return this._restrictions}get hostDisabledClass(){return this.disabled}get dir(){return this.direction}get hostRole(){return"application"}ngOnInit(){const{buttonId:Li,inputId:Ao}=this.getIds();this.focusableId=Li,this.inputElementId=Ao,this.zoneId&&this.dropZoneService.addComponent(this,this.zoneId),this.subs.add(this.renderer.listen(this.fileSelectInput.nativeElement,"mouseenter",()=>{this.renderer.addClass(this.fileSelectButton.nativeElement,"k-hover")})),this.subs.add(this.renderer.listen(this.fileSelectInput.nativeElement,"mouseleave",()=>{this.renderer.removeClass(this.fileSelectButton.nativeElement,"k-hover")})),this.ngZone.runOutsideAngular(()=>{this.subs.add(this.renderer.listen(this.wrapper,"keydown",ao=>this.handleKeydown(ao)))})}textFor(Li){return this.localization.get(Li)}focus(){setTimeout(()=>{this.fileSelectButton.nativeElement.focus(),this.navigation.focused=!0,this.onFocus.emit()})}ngOnDestroy(){this.fileList.clear(),this.blurSubscription&&this.blurSubscription.unsubscribe(),this.wrapperFocusSubscription&&this.wrapperFocusSubscription.unsubscribe(),this.selectButtonFocusSubscription&&this.selectButtonFocusSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.subs&&this.subs.unsubscribe()}writeValue(Li){let Ao=!0;Li instanceof Array&&(Li.forEach(ao=>{(tr=>!!(tr instanceof File||fn(tr)))(ao)||(Ao=!1)}),Ao&&this.uploadService.addInitialFileSelectFiles(Li)),null===Li&&this.fileList.clear(),this.cdr.markForCheck()}registerOnChange(Li){this.onChangeCallback=Li}registerOnTouched(Li){this.onTouchedCallback=Li}setDisabledState(Li){this.disabled=Li}removeFileByUid(Li){this.uploadService.removeFiles(Li)}clearFiles(){this.uploadService.clearFiles()}isEmpty(){return!1}addFiles(Li){this.uploadService.addFiles(Li)}get selectButtonTabIndex(){return this.disabled?void 0:this.tabindex}getIds(){const Li=++Lo;return{buttonId:`k-fileselect-button-${Li}`,inputId:`k-fileselect-input-${Li}`}}onFileSelectButtonFocus(Li){this.renderer.addClass(this.fileSelectButton.nativeElement,"k-focus"),this.navigation.focused||(this.navigation.focusedIndex=-1)}onFileSelectButtonBlur(Li){this.renderer.removeClass(this.fileSelectButton.nativeElement,"k-focus")}subscribeBlur(){(0,o.X_)()&&this.ngZone.runOutsideAngular(()=>{this.documentClick=(0,d.R)(document,"click").pipe((0,A.h)(Li=>!(this.wrapper!==Li.target&&this.wrapper.contains(Li.target)))),this.blurSubscription=(0,s.T)(this.documentClick,this.navigation.onTab).subscribe(()=>{this.navigation.focused&&this.ngZone.run(()=>{this.navigation.focused=!1,this.onTouchedCallback(),this.onBlur.emit()})})})}subscribeFocus(){this.wrapperFocusSubscription=this.navigation.onWrapperFocus.subscribe(()=>{this.onFocus.emit()}),this.selectButtonFocusSubscription=this.navigation.onSelectButtonFocus.subscribe(()=>{this.fileSelectButton.nativeElement.focus()})}handleKeydown(Li){if(!this.disabled){if((Li.keyCode===o.R8.Enter||Li.keyCode===o.R8.Space)&&Li.target===this.fileSelectButton.nativeElement)return Li.preventDefault(),void this.fileSelectInput.nativeElement.click();(Bt(Li.target,Fn)||!xt(Li.target)&&!Bt(Li.target,Ki))&&this.navigation.process(Li)}}attachEventHandlers(){this.subs=this.uploadService.changeEvent.subscribe(Li=>{let Ao=[];null!==Li&&Li.forEach(ao=>{ao.state===ge.Initial&&Ao.push(ao),ao.state===ge.Selected&&ao.rawFile&&!ao.validationErrors&&Ao.push(ao.rawFile)}),0===Ao.length&&(Ao=null),this.onChangeCallback(Ao),this.valueChange.emit(Ao)}),this.subs.add(this.uploadService.removeEvent.subscribe(Li=>{this.remove.emit(Li)})),this.subs.add(this.uploadService.selectEvent.subscribe(Li=>{this.select.emit(Li)}))}setDefaultSettings(){this.uploadService.async.autoUpload=!1,this.uploadService.component="FileSelect"}}return tr.\u0275fac=function(Li){return new(Li||tr)(n.Y36(Lt),n.Y36(u.oQ),n.Y36(tt),n.Y36(vt),n.Y36(n.R0b),n.Y36(n.Qsj),n.Y36(n.sBO),n.Y36(n.SBq))},tr.\u0275cmp=n.Xpm({type:tr,selectors:[["kendo-fileselect"]],contentQueries:function(Li,Ao,ao){if(1&Li&&(n.Suo(ao,jn,5),n.Suo(ao,Pi,5)),2&Li){let Go;n.iGM(Go=n.CRH())&&(Ao.fileTemplate=Go.first),n.iGM(Go=n.CRH())&&(Ao.fileInfoTemplate=Go.first)}},viewQuery:function(Li,Ao){if(1&Li&&(n.Gf(de,7),n.Gf(te,7,n.SBq)),2&Li){let ao;n.iGM(ao=n.CRH())&&(Ao.fileSelectInput=ao.first),n.iGM(ao=n.CRH())&&(Ao.fileSelectButton=ao.first)}},hostVars:6,hostBindings:function(Li,Ao){2&Li&&(n.uIk("dir",Ao.dir)("role",Ao.hostRole),n.ekj("k-upload",Ao.hostDefaultClasses)("k-disabled",Ao.hostDisabledClass))},inputs:{accept:"accept",disabled:"disabled",multiple:"multiple",name:"name",showFileList:"showFileList",tabindex:"tabindex",restrictions:"restrictions",zoneId:"zoneId",focusableId:"focusableId"},outputs:{onBlur:"blur",onFocus:"focus",select:"select",remove:"remove",valueChange:"valueChange"},exportAs:["kendoFileSelect"],features:[n._Bn([u.oQ,tt,Lt,vt,Xo,{provide:u.mM,useValue:"kendo.fileselect"},{provide:o.GX,useExisting:(0,n.Gpc)(()=>tr)}])],decls:11,vars:17,consts:function(){let Mr,Li,Ao,ao,Go,pr;return Mr=$localize`:kendo.fileselect.dropFilesHere|The drop zone hint:Drop files here to select`,Li=$localize`:kendo.fileselect.invalidFileExtension|The text for the invalid allowed extensions restriction message:File type not allowed.`,Ao=$localize`:kendo.fileselect.invalidMaxFileSize|The text for the invalid max file size restriction message:File size too large.`,ao=$localize`:kendo.fileselect.invalidMinFileSize|The text for the invalid min file size restriction message:File size too small.`,Go=$localize`:kendo.fileselect.remove|The text for the Remove button:Remove`,pr=$localize`:kendo.fileselect.select|The text for the Select button:Select files...`,[["kendoFileSelectLocalizedMessages","","dropFilesHere",Mr,"invalidFileExtension",Li,"invalidMaxFileSize",Ao,"invalidMinFileSize",ao,"remove",Go,"select",pr],["kendoFileSelectInternalDropZone","",3,"restrictions","multiple","disabled"],[1,"k-upload-button-wrap"],["kendoButton","","type","button","role","button",1,"k-upload-button",3,"id","click"],["fileSelectButton",""],["kendoFileSelect","",1,"k-hidden",3,"id","dir","restrictions","multiple","disabled"],["fileSelectInput",""],[1,"k-dropzone-hint"],["kendo-upload-file-list","","class","k-upload-files k-reset",3,"disabled","fileList","fileTemplate","fileInfoTemplate",4,"ngIf"],["kendo-upload-file-list","",1,"k-upload-files","k-reset",3,"disabled","fileList","fileTemplate","fileInfoTemplate"]]},template:function(Li,Ao){if(1&Li){const ao=n.EpF();n.GkF(0,0),n.TgZ(1,"div",1)(2,"div",2)(3,"button",3,4),n.NdJ("click",function(){n.CHM(ao);const pr=n.MAs(7);return n.KtG(pr.click())}),n._uU(5),n.qZA(),n._UZ(6,"input",5,6),n.qZA(),n.TgZ(8,"div",7),n._uU(9),n.qZA()(),n.YNc(10,j,1,4,"ul",8)}2&Li&&(n.xp6(1),n.Q6J("restrictions",Ao.restrictions)("multiple",Ao.multiple)("disabled",Ao.disabled),n.xp6(2),n.Q6J("id",Ao.focusableId),n.uIk("aria-label",Ao.textFor("select"))("tabindex",Ao.tabindex)("aria-controls",Ao.inputElementId),n.xp6(2),n.hij(" ",Ao.textFor("select")," "),n.xp6(1),n.Q6J("id",Ao.inputElementId)("dir",Ao.direction)("restrictions",Ao.restrictions)("multiple",Ao.multiple)("disabled",Ao.disabled),n.uIk("accept",Ao.accept?Ao.accept:null)("aria-hidden",!0),n.xp6(3),n.Oqu(Ao.textFor("dropFilesHere")),n.xp6(1),n.Q6J("ngIf",Ao.showFileList&&Ao.fileList.count>0))},dependencies:[C.r0,wi,zn,oo,Bi,k.O5],encapsulation:2}),tr})(),xr=(()=>{class tr extends hi{constructor(Li){super(),this.service=Li}get override(){return!0}}return tr.\u0275fac=function(Li){return new(Li||tr)(n.Y36(u.oQ))},tr.\u0275cmp=n.Xpm({type:tr,selectors:[["kendo-upload-messages"],["kendo-fileselect-messages"],["kendo-uploaddropzone-messages"]],features:[n._Bn([{provide:hi,useExisting:(0,n.Gpc)(()=>tr)}]),n.qOj],decls:0,vars:0,template:function(Li,Ao){},encapsulation:2}),tr})(),Nr=(()=>{class tr{constructor(Li){this.localization=Li,this.checkmarkIcon=a.eQZ,this.exceptionSVGIcon=a.tjX,this.uploadSVGIcon=a.P8c,this.pauseSVGIcon=a.CIP}get iconClass(){return this.isUploading||this.isFailed?!this.isUploading&&this.isFailed?"exception":this.isUploading?"upload":this.isPaused?"pause-sm":void 0:"checkmark"}get SVGIconClass(){return this.isUploading||this.isFailed?!this.isUploading&&this.isFailed?this.exceptionSVGIcon:this.isUploading?this.uploadSVGIcon:this.isPaused?this.pauseSVGIcon:void 0:this.checkmarkIcon}ngDoCheck(){this.isPaused=this.fileList.hasFileWithState([ge.Paused]),this.isFailed=this.fileList.hasFileWithState([ge.Failed]),this.isUploading=this.fileList.hasFileWithState([ge.Uploading]),this.statusText=this.localization.get(this.isPaused&&!this.isUploading?"headerStatusPaused":this.isUploading?"headerStatusUploading":"headerStatusUploaded")}}return tr.\u0275fac=function(Li){return new(Li||tr)(n.Y36(u.oQ))},tr.\u0275cmp=n.Xpm({type:tr,selectors:[["kendo-upload-status-total"]],inputs:{fileList:"fileList"},decls:2,vars:3,consts:[[3,"name","svgIcon"]],template:function(Li,Ao){1&Li&&(n._UZ(0,"kendo-icon-wrapper",0),n._uU(1)),2&Li&&(n.Q6J("name",Ao.iconClass)("svgIcon",Ao.SVGIconClass),n.xp6(1),n.hij(" ",Ao.statusText," "))},dependencies:[f.ZS],encapsulation:2}),tr})(),as=(()=>{class tr{constructor(Li,Ao,ao){this.uploadService=Li,this.localization=Ao,this.navigation=ao,this.hostDefaultClass=!0,this.onAction(),this.onFocus()}get actionButtonsEndClassName(){return"end"===this.actionsLayout}get actionButtonsStretchedClassName(){return"stretched"===this.actionsLayout}get actionButtonsStartClassName(){return"start"===this.actionsLayout}get actionButtonsCenterClassName(){return"center"===this.actionsLayout}onAction(){this.actionSubscription=this.navigation.onActionButtonAction.subscribe(Li=>{"clear"===Li?this.clearFiles():this.performUpload()})}onFocus(){this.focusSubscription=this.navigation.onActionButtonFocus.subscribe(Li=>{this.focusButton(Li)})}focusButton(Li){("clear"===Li?this.clearButton:this.uploadButton).nativeElement.focus()}ngOnDestroy(){this.actionSubscription.unsubscribe(),this.focusSubscription.unsubscribe()}onUploadButtonClick(Li){Li.stopImmediatePropagation(),this.performUpload()}performUpload(){this.disabled||(this.uploadService.uploadFiles(),this.navigation.focusSelectButton())}onClearButtonClick(Li){Li.stopImmediatePropagation(),this.clearFiles()}clearFiles(){this.disabled||(this.uploadService.clearFiles(),this.navigation.focusSelectButton())}textFor(Li){return this.localization.get(Li)}}return tr.\u0275fac=function(Li){return new(Li||tr)(n.Y36(Lt),n.Y36(u.oQ),n.Y36(tt))},tr.\u0275cmp=n.Xpm({type:tr,selectors:[["kendo-upload-action-buttons"]],viewQuery:function(Li,Ao){if(1&Li&&(n.Gf(H,7),n.Gf(z,7)),2&Li){let ao;n.iGM(ao=n.CRH())&&(Ao.clearButton=ao.first),n.iGM(ao=n.CRH())&&(Ao.uploadButton=ao.first)}},hostVars:10,hostBindings:function(Li,Ao){2&Li&&n.ekj("k-actions",Ao.hostDefaultClass)("k-actions-end",Ao.actionButtonsEndClassName)("k-actions-stretched",Ao.actionButtonsStretchedClassName)("k-actions-start",Ao.actionButtonsStartClassName)("k-actions-center",Ao.actionButtonsCenterClassName)},inputs:{disabled:"disabled",actionsLayout:"actionsLayout"},decls:6,vars:2,consts:[["role","button",1,"k-button","k-button-md","k-rounded-md","k-button-solid","k-button-solid-base","k-clear-selected",3,"click"],["clearButton",""],["role","button",1,"k-button","k-button-md","k-rounded-md","k-button-solid","k-button-solid-primary","k-upload-selected",3,"click"],["uploadButton",""]],template:function(Li,Ao){1&Li&&(n.TgZ(0,"button",0,1),n.NdJ("click",function(Go){return Ao.onClearButtonClick(Go)}),n._uU(2),n.qZA(),n.TgZ(3,"button",2,3),n.NdJ("click",function(Go){return Ao.onUploadButtonClick(Go)}),n._uU(5),n.qZA()),2&Li&&(n.xp6(2),n.hij(" ",Ao.textFor("clearSelectedFiles")," "),n.xp6(3),n.hij(" ",Ao.textFor("uploadSelectedFiles")," "))},encapsulation:2}),tr})();const ji={multi:!0,provide:l.JU,useExisting:(0,n.Gpc)(()=>rt)};let Fo=0,rt=(()=>{class tr{constructor(Li,Ao,ao,Go,pr,Rr,br,Ti){this.uploadService=Li,this.localization=Ao,this.navigation=ao,this.dropZoneService=Go,this.zone=pr,this.renderer=Rr,this.cdr=br,this.chunkable=!1,this.multiple=!0,this.disabled=!1,this.showFileList=!0,this.tabindex=0,this.focusableId=`k-${(0,o.M8)()}`,this.actionsLayout="end",this.onBlur=new n.vpe,this.cancel=new n.vpe,this.clear=new n.vpe,this.complete=new n.vpe,this.error=new n.vpe,this.onFocus=new n.vpe,this.pause=new n.vpe,this.remove=new n.vpe,this.resume=new n.vpe,this.select=new n.vpe,this.success=new n.vpe,this.upload=new n.vpe,this.uploadProgress=new n.vpe,this.valueChange=new n.vpe,this.hostDefaultClasses=!0,this._restrictions={allowedExtensions:[],maxFileSize:0,minFileSize:0},this.onTouchedCallback=mr=>{},this.onChangeCallback=mr=>{},(0,_.s)(ln),this.fileList=this.uploadService.files,this.localizationChangeSubscription=Ao.changes.subscribe(({rtl:mr})=>{this.direction=mr?"rtl":"ltr",this.navigation.computeKeys(this.direction)}),this.direction=Ao.rtl?"rtl":"ltr",this.navigation.computeKeys(this.direction),this.wrapper=Ti.nativeElement,this.subscribeBlur(),this.subscribeFocus(),this.attachEventHandlers()}set autoUpload(Li){this.uploadService.async.autoUpload=Li}get autoUpload(){return this.uploadService.async.autoUpload}set batch(Li){this.uploadService.async.batch=Li}get batch(){return this.uploadService.async.batch}set withCredentials(Li){this.uploadService.async.withCredentials=Li}get withCredentials(){return this.uploadService.async.withCredentials}set saveField(Li){this.uploadService.async.saveField=Li}get saveField(){return this.uploadService.async.saveField}set saveHeaders(Li){this.uploadService.async.saveHeaders=Li}get saveHeaders(){return this.uploadService.async.saveHeaders}set saveMethod(Li){this.uploadService.async.saveMethod=Li}get saveMethod(){return this.uploadService.async.saveMethod}set saveUrl(Li){this.uploadService.async.saveUrl=Li}get saveUrl(){return this.uploadService.async.saveUrl}set responseType(Li){this.uploadService.async.responseType=Li}get responseType(){return this.uploadService.async.responseType}set removeField(Li){this.uploadService.async.removeField=Li}get removeField(){return this.uploadService.async.removeField}set removeHeaders(Li){this.uploadService.async.removeHeaders=Li}get removeHeaders(){return this.uploadService.async.removeHeaders}set removeMethod(Li){this.uploadService.async.removeMethod=Li}get removeMethod(){return this.uploadService.async.removeMethod}set removeUrl(Li){this.uploadService.async.removeUrl=Li}get removeUrl(){return this.uploadService.async.removeUrl}set concurrent(Li){this.uploadService.async.concurrent=Li}get concurrent(){return this.uploadService.async.concurrent}set tabIndex(Li){this.tabindex=Li}get tabIndex(){return this.tabindex}set restrictions(Li){const Ao=Object.assign({},this._restrictions,Li);this._restrictions=Ao}get restrictions(){return this._restrictions}get hostRole(){return"application"}get hostDisabledClass(){return this.disabled}get dir(){return this.direction}ngOnInit(){this.verifySettings();const{buttonId:Li}=this.getIds();this.focusableId=Li,this.uploadService.setChunkSettings(this.chunkable),this.zoneId&&this.dropZoneService.addComponent(this,this.zoneId),this.zone.runOutsideAngular(()=>{this.subs.add(this.renderer.listen(this.wrapper,"keydown",Ao=>this.handleKeydown(Ao)))})}ngOnChanges(Li){if((0,o.ln)("chunkable",Li)){const Ao=Li.chunkable.currentValue;"boolean"==typeof Ao&&(this.uploadService.async.chunk=Ao),"object"==typeof Ao&&null!==Ao&&(this.uploadService.async.chunk=!0,this.uploadService.chunk=Object.assign({},this.uploadService.chunk,Ao))}}ngOnDestroy(){this.fileList.clear(),this.blurSubscription&&this.blurSubscription.unsubscribe(),this.wrapperFocusSubscription&&this.wrapperFocusSubscription.unsubscribe(),this.selectButtonFocusSubscription&&this.selectButtonFocusSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.subs&&this.subs.unsubscribe()}writeValue(Li){let Ao=!0;Li instanceof Array&&(Li.forEach(ao=>{fn(ao)||(Ao=!1)}),Ao&&this.uploadService.addInitialFiles(Li)),null===Li&&this.fileList.clear(),this.cdr.markForCheck()}registerOnChange(Li){this.onChangeCallback=Li}registerOnTouched(Li){this.onTouchedCallback=Li}setDisabledState(Li){this.disabled=Li}get showActionButtons(){let Li=!1;if(!this.autoUpload){const Ao=this.fileList.filesToUpload.length>0,ao=this.fileList.hasFileWithState([ge.Uploading]);this.concurrent&&Ao&&(Li=!0),!this.concurrent&&Ao&&!ao&&(Li=!0)}return this.navigation.actionButtonsVisible=Li,Li}get showTotalStatus(){return!!this.fileList.hasFileWithState([ge.Uploaded,ge.Uploading,ge.Failed,ge.Paused])}textFor(Li){return this.localization.get(Li)}getIds(){const Li=++Fo;return{buttonId:`k-upload-button-${Li}`,inputId:`k-upload-input-${Li}`}}focus(){setTimeout(()=>{this.fileSelectButton.nativeElement.focus(),this.navigation.focused=!0,this.onFocus.emit()})}focusComponent(){this.focus()}blur(){this.navigation.focused&&(this.navigation.focused=!1,document.activeElement.blur(),this.onBlur.emit())}blurComponent(){this.blur()}pauseFileByUid(Li){this.uploadService.pauseFile(Li)}resumeFileByUid(Li){this.uploadService.resumeFile(Li)}removeFilesByUid(Li){this.uploadService.removeFiles(Li)}retryUploadByUid(Li){this.uploadService.retryFiles(Li)}cancelUploadByUid(Li){this.uploadService.cancelFiles(Li)}uploadFiles(){this.fileList.filesToUpload.length&&this.uploadService.uploadFiles()}clearFiles(){this.uploadService.clearFiles()}addFiles(Li){this.uploadService.addFiles(Li)}isEmpty(){return!1}verifySettings(){if((0,n.X6Q)()&&this.batch&&!1!==this.chunkable)throw new Error("The file chunking functionality requires the batch setting to be disabled.")}subscribeBlur(){(0,o.X_)()&&this.zone.runOutsideAngular(()=>{this.documentClick=(0,d.R)(document,"click").pipe((0,A.h)(Li=>!(this.wrapper!==Li.target&&this.wrapper.contains(Li.target)))),this.blurSubscription=(0,s.T)(this.documentClick,this.navigation.onTab).subscribe(()=>{this.navigation.focused&&this.zone.run(()=>{this.navigation.focused=!1,this.onTouchedCallback(),this.onBlur.emit()})})})}handleKeydown(Li){if(!this.disabled){if((Li.keyCode===o.R8.Enter||Li.keyCode===o.R8.Space)&&Li.target===this.fileSelectButton.nativeElement)return Li.preventDefault(),void this.fileSelectInput.nativeElement.click();(Bt(Li.target,Fn)||!xt(Li.target)&&!Bt(Li.target,Ki))&&this.navigation.process(Li)}}subscribeFocus(){this.wrapperFocusSubscription=this.navigation.onWrapperFocus.subscribe(()=>{this.onFocus.emit()}),this.selectButtonFocusSubscription=this.navigation.onSelectButtonFocus.subscribe(()=>{this.fileSelectButton.nativeElement.focus()})}attachEventHandlers(){this.subs=this.uploadService.cancelEvent.subscribe(Li=>{this.cancel.emit(Li)}),this.subs.add(this.uploadService.changeEvent.subscribe(Li=>{this.onChangeCallback(Li),this.valueChange.emit(Li)})),this.subs.add(this.uploadService.clearEvent.subscribe(Li=>{this.clear.emit(Li)})),this.subs.add(this.uploadService.completeEvent.subscribe(()=>{this.complete.emit()})),this.subs.add(this.uploadService.errorEvent.subscribe(Li=>{this.error.emit(Li)})),this.subs.add(this.uploadService.pauseEvent.subscribe(Li=>{this.pause.emit(Li)})),this.subs.add(this.uploadService.removeEvent.subscribe(Li=>{this.remove.emit(Li)})),this.subs.add(this.uploadService.resumeEvent.subscribe(Li=>{this.resume.emit(Li)})),this.subs.add(this.uploadService.selectEvent.subscribe(Li=>{this.select.emit(Li)})),this.subs.add(this.uploadService.successEvent.subscribe(Li=>{this.success.emit(Li)})),this.subs.add(this.uploadService.uploadEvent.subscribe(Li=>{this.upload.emit(Li)})),this.subs.add(this.uploadService.uploadProgressEvent.subscribe(Li=>{this.uploadProgress.emit(Li)}))}}return tr.\u0275fac=function(Li){return new(Li||tr)(n.Y36(Lt),n.Y36(u.oQ),n.Y36(tt),n.Y36(vt),n.Y36(n.R0b),n.Y36(n.Qsj),n.Y36(n.sBO),n.Y36(n.SBq))},tr.\u0275cmp=n.Xpm({type:tr,selectors:[["kendo-upload"]],contentQueries:function(Li,Ao,ao){if(1&Li&&(n.Suo(ao,jn,5),n.Suo(ao,Pi,5)),2&Li){let Go;n.iGM(Go=n.CRH())&&(Ao.fileTemplate=Go.first),n.iGM(Go=n.CRH())&&(Ao.fileInfoTemplate=Go.first)}},viewQuery:function(Li,Ao){if(1&Li&&(n.Gf(de,7),n.Gf(te,7,n.SBq)),2&Li){let ao;n.iGM(ao=n.CRH())&&(Ao.fileSelectInput=ao.first),n.iGM(ao=n.CRH())&&(Ao.fileSelectButton=ao.first)}},hostVars:6,hostBindings:function(Li,Ao){2&Li&&(n.uIk("role",Ao.hostRole)("dir",Ao.dir),n.ekj("k-upload",Ao.hostDefaultClasses)("k-disabled",Ao.hostDisabledClass))},inputs:{autoUpload:"autoUpload",batch:"batch",withCredentials:"withCredentials",saveField:"saveField",saveHeaders:"saveHeaders",saveMethod:"saveMethod",saveUrl:"saveUrl",responseType:"responseType",removeField:"removeField",removeHeaders:"removeHeaders",removeMethod:"removeMethod",removeUrl:"removeUrl",chunkable:"chunkable",concurrent:"concurrent",multiple:"multiple",disabled:"disabled",showFileList:"showFileList",tabindex:"tabindex",zoneId:"zoneId",tabIndex:"tabIndex",accept:"accept",restrictions:"restrictions",focusableId:"focusableId",actionsLayout:"actionsLayout"},outputs:{onBlur:"blur",cancel:"cancel",clear:"clear",complete:"complete",error:"error",onFocus:"focus",pause:"pause",remove:"remove",resume:"resume",select:"select",success:"success",upload:"upload",uploadProgress:"uploadProgress",valueChange:"valueChange"},exportAs:["kendoUpload"],features:[n._Bn([u.oQ,tt,Lt,vt,ji,{provide:u.mM,useValue:"kendo.upload"},{provide:o.GX,useExisting:(0,n.Gpc)(()=>tr)}]),n.TTD],decls:13,vars:17,consts:function(){let Mr,Li,Ao,ao,Go,pr,Rr,br,Ti,mr,ri,mo,Ii,yo,lr,Yr,Gs,fi,Ho,_t;return Mr=$localize`:kendo.upload.cancel|The text for the Cancel button:Cancel`,Li=$localize`:kendo.upload.clearSelectedFiles|The text for the Clear button:Clear`,Ao=$localize`:kendo.upload.dropFilesHere|The drop zone hint:Drop files here to upload`,ao=$localize`:kendo.upload.filesBatchStatus|The status message for a batch of files:files`,Go=$localize`:kendo.upload.filesBatchStatusFailed|The status message for a batch of files after failed upload:files failed to upload.`,pr=$localize`:kendo.upload.filesBatchStatusUploaded|The status message for a batch of files after successful upload:files successfully uploaded.`,Rr=$localize`:kendo.upload.fileStatusFailed|The file status message after failed upload:File failed to upload.`,br=$localize`:kendo.upload.fileStatusUploaded|The file status message after successful upload:File successfully uploaded.`,Ti=$localize`:kendo.upload.headerStatusPaused|The header status message when the file upload is paused:Paused`,mr=$localize`:kendo.upload.headerStatusUploaded|The header status message after file upload completion:Done`,ri=$localize`:kendo.upload.headerStatusUploading|The header status message during file upload:Uploading...`,mo=$localize`:kendo.upload.invalidFileExtension|The text for the invalid allowed extensions restriction message:File type not allowed.`,Ii=$localize`:kendo.upload.invalidMaxFileSize|The text for the invalid max file size restriction message:File size too large.`,yo=$localize`:kendo.upload.invalidMinFileSize|The text for the invalid min file size restriction message:File size too small.`,lr=$localize`:kendo.upload.pause|The text for the Pause button:Pause`,Yr=$localize`:kendo.upload.remove|The text for the Remove button:Remove`,Gs=$localize`:kendo.upload.resume|The text for the Resume button:Resume`,fi=$localize`:kendo.upload.retry|The text for the Retry button:Retry`,Ho=$localize`:kendo.upload.select|The text for the Select button:Select files...`,_t=$localize`:kendo.upload.uploadSelectedFiles|The text for the Upload files button:Upload`,[["kendoUploadLocalizedMessages","","cancel",Mr,"clearSelectedFiles",Li,"dropFilesHere",Ao,"filesBatchStatus",ao,"filesBatchStatusFailed",Go,"filesBatchStatusUploaded",pr,"fileStatusFailed",Rr,"fileStatusUploaded",br,"headerStatusPaused",Ti,"headerStatusUploaded",mr,"headerStatusUploading",ri,"invalidFileExtension",mo,"invalidMaxFileSize",Ii,"invalidMinFileSize",yo,"pause",lr,"remove",Yr,"resume",Gs,"retry",fi,"select",Ho,"uploadSelectedFiles",_t],["kendoUploadInternalDropZone","",3,"restrictions","multiple","disabled"],[1,"k-upload-button-wrap"],["kendoButton","","type","button","role","button",1,"k-upload-button",3,"id","click"],["fileSelectButton",""],["kendoFileSelect","",1,"k-hidden",3,"dir","restrictions","multiple","disabled"],["fileSelectInput",""],["class","k-upload-status",3,"fileList",4,"ngIf"],[1,"k-dropzone-hint"],["kendo-upload-file-list","","class","k-upload-files k-reset",3,"disabled","fileList","fileTemplate","fileInfoTemplate",4,"ngIf"],[3,"disabled","actionsLayout",4,"ngIf"],[1,"k-upload-status",3,"fileList"],["kendo-upload-file-list","",1,"k-upload-files","k-reset",3,"disabled","fileList","fileTemplate","fileInfoTemplate"],[3,"disabled","actionsLayout"]]},template:function(Li,Ao){if(1&Li){const ao=n.EpF();n.GkF(0,0),n.TgZ(1,"div",1)(2,"div",2)(3,"button",3,4),n.NdJ("click",function(){n.CHM(ao);const pr=n.MAs(7);return n.KtG(pr.click())}),n._uU(5),n.qZA(),n._UZ(6,"input",5,6),n.qZA(),n.YNc(8,q,1,1,"kendo-upload-status-total",7),n.TgZ(9,"div",8),n._uU(10),n.qZA()(),n.YNc(11,se,1,4,"ul",9),n.YNc(12,ne,1,2,"kendo-upload-action-buttons",10)}2&Li&&(n.xp6(1),n.Q6J("restrictions",Ao.restrictions)("multiple",Ao.multiple)("disabled",Ao.disabled),n.xp6(2),n.Q6J("id",Ao.focusableId),n.uIk("aria-label",Ao.textFor("select"))("tabindex",Ao.tabindex),n.xp6(2),n.hij(" ",Ao.textFor("select")," "),n.xp6(1),n.Q6J("dir",Ao.direction)("restrictions",Ao.restrictions)("multiple",Ao.multiple)("disabled",Ao.disabled),n.uIk("accept",Ao.accept?Ao.accept:null)("aria-hidden",!0),n.xp6(2),n.Q6J("ngIf",Ao.showTotalStatus),n.xp6(2),n.Oqu(Ao.textFor("dropFilesHere")),n.xp6(1),n.Q6J("ngIf",Ao.showFileList&&Ao.fileList.count>0),n.xp6(1),n.Q6J("ngIf",Ao.showActionButtons))},dependencies:[C.r0,Nr,wi,as,zn,oo,Bi,k.O5],encapsulation:2}),tr})(),bs=(()=>{class tr{}return tr.\u0275fac=function(Li){return new(Li||tr)},tr.\u0275mod=n.oAB({type:tr}),tr.\u0275inj=n.cJS({imports:[[k.ez,C.Fq,x.q7,f.pc],k.ez,C.Fq]}),tr})(),ms=(()=>{class tr{}return tr.\u0275fac=function(Li){return new(Li||tr)},tr.\u0275mod=n.oAB({type:tr}),tr.\u0275inj=n.cJS({imports:[[bs,f.pc]]}),tr})(),Ea=(()=>{class tr{}return tr.\u0275fac=function(Li){return new(Li||tr)},tr.\u0275mod=n.oAB({type:tr}),tr.\u0275inj=n.cJS({imports:[[bs,f.pc]]}),tr})(),Sa=(()=>{class tr{}return tr.\u0275fac=function(Li){return new(Li||tr)},tr.\u0275mod=n.oAB({type:tr}),tr.\u0275inj=n.cJS({imports:[ms,Ea]}),tr})()},12624:(he,y,i)=>{"use strict";i.d(y,{s:()=>u});var R,x,e=["z2v0vgLTzq==","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","zgf0yq==","uhjVz3jLC3mG","AgvmshG=","u2vLia==","ChjVzhvJDenVzgvZ","C2nYAxb0s2v5","D3rmuhm=","rKjcwKG=","tM8GBgLJzw5ZzsbMB3vUzc4k","CgfJA2fNzu5HBwu=","qvfYAMq=","CgfYC2u=","ChjVzhvJDhm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","sgr5sMW=","rg9iAwe=","zxDJr2C=","Du9wCuK=","z2v0rNvSBfLLyxi=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","C2v0","zxrNsxC=","C29YDa==","EeXMBLu=","AgfZ","s0XeCe8=","rM1Ttxy=","tNvstvG=","ww91CIb0CMLHBcbSAwnLBNnLigv4CgLYzwqGB24G","z2v0rgf0zq==","BgvUz3rO","txPHwe8=","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DhjPywW=","vejxq3K=","r2Ltv1q=","uhPWBva=","z2v0","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","z2v0tw9UDgG=","s2DnDfK=","DMvYC2LVBG==","rKj6sum=","DgLTzxn0yw1W","B2jQzwn0","DhLWzq==","BgLJzw5ZAw5Nrg9JC1vYBa==","BMfTzq==","DwTXAeq=","zg9JC1vYBa==","z3jVDxbfBMq=","z3jVDxa=","yuDyzhy=","zMLUza==","D2fYBG==","zNvUy3rPB24=","Dw5KzwzPBMvK","ChjVzhvJDe5HBwu=","y29Uy2f0","ChvIBgLZAerHDgu=","zxHWAxj5rgf0zq==","CeDhAfu=","y29Kzq==","Dg9mB2nHBgvtDhjPBMC=","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG"];R=e,x=439,function(k){for(;--k;)R.push(R.shift())}(++x);var n=function(R,x){var f=e[R-=0];void 0===n.aWziBr&&(n.XjGMHe=function(g){for(var M=function(g){for(var I,L,p=String(g).replace(/=+$/,""),E="",b=0,D=0;L=p.charAt(D++);~L&&(I=b%4?64*I+L:L,b++%4)?E+=String.fromCharCode(255&I>>(-2*b&6)):0)L="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(L);return E}(g),p=[],E=0,b=M.length;E<b;E++)p+="%"+("00"+M.charCodeAt(E).toString(16)).slice(-2);return decodeURIComponent(p)},n.XQgCdR={},n.aWziBr=!0);var w=n.XQgCdR[R];return void 0===w?(f=n.XjGMHe(f),n.XQgCdR[R]=f):f=w,f},o={data:'  {"timestamp":1648630428,"products":[{"trial":false,"code":"KENDOUIREACT","licenseExpirationDate":1735363874},{"trial":false,"code":"KENDOUICOMPLETE","licenseExpirationDate":1735363874},{"trial":false,"code":"KENDOUIVUE","licenseExpirationDate":1735363874},{"trial":false,"code":"KENDOUIANGULAR","licenseExpirationDate":1735363874}],"integrity":"aOZu+iyUhv/9hROodgAYMpF2Q5g="}  '},a=new Map;function u(R){if(a[n("0x38")](R[n("0xc")])&&n("0x3a")==n("0x3a"))return a[n("0x2")](R[n("0xc")]);var p,x=R[n("0x6")]?" v"+R[n("0x6")]:"",f=R[n("0xc")]+x,k=JSON[n("0x2b")](o[n("0x20")]),w=!k[n("0x25")]&&!k[n("0x8")],g=k[n("0x25")]&&typeof KendoLicensing===n("0x15"),M=function s(R,x){var f=R[n("0x2c")];if(!(f&&f[n("0x3e")]||n("0x27")===n("0x37")))return null;var k=new Set(x);return f[n("0x36")](function(w,g){if(n("0x42")!==n("0x31"))return g[n("0x40")]-w[n("0x40")]})[n("0x12")](function(w){if(n("0x3b")==n("0x3b"))return k[n("0x38")](w[n("0x1b")])})}(k,R[n("0x24")]);if(w||g?n("0x2a")===n("0x2f")||(p={type:0,packageName:f,docsUrl:R[n("0xb")]}):n("0x39")==n("0x39")&&(M?!0===M[n("0x41")]&&C(function _(){return(new Date)[n("0x1e")]()/1e3}(),M[n("0x40")])?n("0x0")==n("0x0")&&(p={type:3,packageName:f,expiryDate:A(M[n("0x40")]),docsUrl:R[n("0xb")]}):C(R[n("0x18")],M[n("0x40")])&&(n("0x22")!=n("0x22")||(p={type:2,packageName:f,publishDate:A(R[n("0x18")]),expiryDate:A(M[n("0x40")]),docsUrl:R[n("0xb")]})):n("0x1a")!=n("0x1a")||(p={type:1,packageName:f,docsUrl:R[n("0xb")]})),p&&typeof console===n("0x9"))if(n("0x5")!=n("0x5"));else{var E=n("0x21")[n("0x17")](R[n("0x16")]),b=typeof console[n("0x10")]===n("0x14");b?n("0x2e")==n("0x2e")&&console[n("0x10")](E):n("0x30")!==n("0x7")&&console[n("0x13")](E),console[n("0x13")](function d(R){var x=n("0x1d")[n("0x17")](R[n("0x29")],"\n");return 2===R[n("0xa")]&&n("0x3f")!==n("0x1")&&(x+=n("0x1f")[n("0x17")](R[n("0x19")][n("0x1c")](),n("0x33"))[n("0x17")](R[n("0x18")][n("0x1c")](),".\n")),3===R[n("0xa")]?n("0x11")==n("0x11")&&(x+=n("0x3c")[n("0x17")](R[n("0x19")][n("0x1c")](),".\n")):0===R[n("0xa")]?n("0x35")==n("0x35")&&(x+=n("0x28")):1===R[n("0xa")]&&(n("0x26")!=n("0x26")||(x+=n("0x3"))),x+=n("0x23")[n("0x17")](R[n("0xe")],n("0x2d"))}(p)),b&&(n("0xd")!=n("0xd")||console[n("0xf")]())}var I=!p;return a[n("0x34")](R[n("0xc")],I),I}function A(R){return new Date(1e3*R)}function C(R,x){var f=A(x);return R>new Date(f[n("0x32")](),f[n("0x4")](),f[n("0x3d")]()+1)[n("0x1e")]()/1e3}},67107:(he,y,i)=>{"use strict";i.d(y,{Z$:()=>A,y:()=>_});var e=i(65879),n=i(96814);const o=["path"],a=Math.PI/180;let l=(()=>{class C{constructor(x){this.supportsSvg=!!(x&&x.createElementNS&&x.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),this.base=x&&x.head.querySelector("base"),this.hasPerf=typeof window<"u"&&window.performance&&window.performance.now&&"number"==typeof window.performance.now()}resolveColor(x){if(this.base&&this.base.href){const f=x.indexOf("#");if(f>-1&&x.indexOf("url")>-1)return x.slice(0,f)+location.href+x.slice(f)}return x}getTimestamp(){return this.hasPerf?window.performance.now():Date.now()}getArc(x,f,k,w,g=!1){const M=Math.max(0,Math.min(x||0,f)),p=g?180:359.9999,E=0===f?p:M/f*p;return`M ${this._polarToCartesian(w,k,E)} A ${k} ${k} 0 ${E<=180?0:1} 0 ${this._polarToCartesian(w,k,0)}`}_polarToCartesian(x,f,k){const w=(k-90)*a;return x+f*Math.cos(w)+" "+(x+f*Math.sin(w))}static#e=this.\u0275fac=function(f){return new(f||C)(e.LFG(n.K0,8))};static#t=this.\u0275prov=e.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})();const u=new e.OlP("ROUND_PROGRESS_DEFAULTS"),d={provide:u,useValue:{radius:125,animation:"easeOutCubic",animationDelay:null,duration:500,stroke:15,color:"#45CCCE",background:"#EAEAEA",responsive:!1,clockwise:!0,semicircle:!1,rounded:!1}};let s=(()=>{class C{linearEase(x,f,k,w){return k*x/w+f}easeInQuad(x,f,k,w){return k*(x/=w)*x+f}easeOutQuad(x,f,k,w){return-k*(x/=w)*(x-2)+f}easeInOutQuad(x,f,k,w){return(x/=w/2)<1?k/2*x*x+f:-k/2*(--x*(x-2)-1)+f}easeInCubic(x,f,k,w){return k*(x/=w)*x*x+f}easeOutCubic(x,f,k,w){return k*((x=x/w-1)*x*x+1)+f}easeInOutCubic(x,f,k,w){return(x/=w/2)<1?k/2*x*x*x+f:k/2*((x-=2)*x*x+2)+f}easeInQuart(x,f,k,w){return k*(x/=w)*x*x*x+f}easeOutQuart(x,f,k,w){return-k*((x=x/w-1)*x*x*x-1)+f}easeInOutQuart(x,f,k,w){return(x/=w/2)<1?k/2*x*x*x*x+f:-k/2*((x-=2)*x*x*x-2)+f}easeInQuint(x,f,k,w){return k*(x/=w)*x*x*x*x+f}easeOutQuint(x,f,k,w){return k*((x=x/w-1)*x*x*x*x+1)+f}easeInOutQuint(x,f,k,w){return(x/=w/2)<1?k/2*x*x*x*x*x+f:k/2*((x-=2)*x*x*x*x+2)+f}easeInSine(x,f,k,w){return-k*Math.cos(x/w*(Math.PI/2))+k+f}easeOutSine(x,f,k,w){return k*Math.sin(x/w*(Math.PI/2))+f}easeInOutSine(x,f,k,w){return-k/2*(Math.cos(Math.PI*x/w)-1)+f}easeInExpo(x,f,k,w){return 0===x?f:k*Math.pow(2,10*(x/w-1))+f}easeOutExpo(x,f,k,w){return x===w?f+k:k*(1-Math.pow(2,-10*x/w))+f}easeInOutExpo(x,f,k,w){return 0===x?f:x===w?f+k:(x/=w/2)<1?k/2*Math.pow(2,10*(x-1))+f:k/2*(2-Math.pow(2,-10*--x))+f}easeInCirc(x,f,k,w){return-k*(Math.sqrt(1-(x/=w)*x)-1)+f}easeOutCirc(x,f,k,w){return k*Math.sqrt(1-(x=x/w-1)*x)+f}easeInOutCirc(x,f,k,w){return(x/=w/2)<1?-k/2*(Math.sqrt(1-x*x)-1)+f:k/2*(Math.sqrt(1-(x-=2)*x)+1)+f}easeInElastic(x,f,k,w){const g=.3*w;let M=1.70158,p=k;return 0===x?f:1==(x/=w)?f+k:(p<Math.abs(k)?(p=k,M=g/4):M=g/(2*Math.PI)*Math.asin(k/p),-p*Math.pow(2,10*x--)*Math.sin((x*w-M)*(2*Math.PI)/g)+f)}easeOutElastic(x,f,k,w){const g=.3*w;let M=1.70158,p=k;return 0===x?f:1==(x/=w)?f+k:(p<Math.abs(k)?(p=k,M=g/4):M=g/(2*Math.PI)*Math.asin(k/p),p*Math.pow(2,-10*x)*Math.sin((x*w-M)*(2*Math.PI)/g)+k+f)}easeInOutElastic(x,f,k,w){const g=.44999999999999996*w;let M=1.70158,p=k;return 0===x?f:2==(x/=w/2)?f+k:(p<Math.abs(k)?(p=k,M=g/4):M=g/(2*Math.PI)*Math.asin(k/p),x<1?p*Math.pow(2,10*(x-=1))*Math.sin((x*w-M)*(2*Math.PI)/g)*-.5+f:p*Math.pow(2,-10*(x-=1))*Math.sin((x*w-M)*(2*Math.PI)/g)*.5+k+f)}easeInBack(x,f,k,w,g=1.70158){return k*(x/=w)*x*((g+1)*x-g)+f}easeOutBack(x,f,k,w,g=1.70158){return k*((x=x/w-1)*x*((g+1)*x+g)+1)+f}easeInOutBack(x,f,k,w,g=1.70158){return(x/=w/2)<1?k/2*(x*x*((1+(g*=1.525))*x-g))+f:k/2*((x-=2)*x*((1+(g*=1.525))*x+g)+2)+f}easeInBounce(x,f,k,w){return k-this.easeOutBounce(w-x,0,k,w)+f}easeOutBounce(x,f,k,w){return(x/=w)<1/2.75?k*(7.5625*x*x)+f:x<2/2.75?k*(7.5625*(x-=1.5/2.75)*x+.75)+f:x<2.5/2.75?k*(7.5625*(x-=2.25/2.75)*x+.9375)+f:k*(7.5625*(x-=2.625/2.75)*x+.984375)+f}easeInOutBounce(x,f,k,w){return x<w/2?.5*this.easeInBounce(2*x,0,k,w)+f:.5*this.easeOutBounce(2*x-w,0,k,w)+.5*k+f}static#e=this.\u0275fac=function(f){return new(f||C)};static#t=this.\u0275prov=e.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})(),A=(()=>{class C{constructor(x,f,k,w){this.service=x,this.easing=f,this.defaults=k,this.ngZone=w,this.currentLinecap="",this.current=0,this.max=0,this.radius=this.defaults.radius,this.animation=this.defaults.animation,this.animationDelay=this.defaults.animationDelay,this.duration=this.defaults.duration,this.stroke=this.defaults.stroke,this.color=this.defaults.color,this.background=this.defaults.background,this.responsive=this.defaults.responsive,this.clockwise=this.defaults.clockwise,this.semicircle=this.defaults.semicircle,this.rounded=this.defaults.rounded,this.onRender=new e.vpe,this.lastAnimationId=0}_animateChange(x,f){"number"!=typeof x&&(x=0),f=this._clamp(f),x=this._clamp(x);const k=this,w=f-x,g=k.duration;k.ngZone.runOutsideAngular(()=>{const M=()=>{const p=k.service.getTimestamp(),E=++k.lastAnimationId;requestAnimationFrame(function b(){const I=Math.min(k.service.getTimestamp()-p,g),D=(0,k.easing[k.animation])(I,x,w,g);k._updatePath(D),k.onRender.observers.length>0&&k.onRender.emit(D),E===k.lastAnimationId&&I<g&&requestAnimationFrame(b)})};this.animationDelay>0?setTimeout(M,this.animationDelay):M()})}_updatePath(x){if(this.path){const f=this.service.getArc(x,this.max,this.radius-this.stroke/2,this.radius,this.semicircle),k=this.path.nativeElement,w=this.rounded&&x>0?"round":"";w!==this.currentLinecap&&(this.currentLinecap=w,k.style.strokeLinecap=w),k.setAttribute("d",f)}}_clamp(x){return Math.max(0,Math.min(x||0,this.max))}getPathTransform(){const x=this._getDiameter();return this.semicircle?this.clockwise?`translate(0, ${x}) rotate(-90)`:`translate(${x+","+x}) rotate(90) scale(-1, 1)`:this.clockwise?null:`scale(-1, 1) translate(-${x} 0)`}resolveColor(x){return this.service.resolveColor(x)}ngOnChanges(x){x.current?this._animateChange(x.current.previousValue,x.current.currentValue):this._updatePath(this.current)}_getDiameter(){return 2*this.radius}_getElementHeight(){return this.responsive?null:(this.semicircle?this.radius:this._getDiameter())+"px"}_getViewBox(){const x=this._getDiameter();return`0 0 ${x} ${this.semicircle?this.radius:x}`}_getPaddingBottom(){return this.responsive?this.semicircle?"50%":"100%":null}static#e=this.\u0275fac=function(f){return new(f||C)(e.Y36(l),e.Y36(s),e.Y36(u),e.Y36(e.R0b))};static#t=this.\u0275cmp=e.Xpm({type:C,selectors:[["round-progress"]],viewQuery:function(f,k){if(1&f&&e.Gf(o,5),2&f){let w;e.iGM(w=e.CRH())&&(k.path=w.first)}},hostAttrs:["role","progressbar"],hostVars:11,hostBindings:function(f,k){2&f&&(e.uIk("aria-valuemin",0)("aria-valuemax",k.max)("aria-valuenow",k.current),e.Udp("width",k.responsive?"":k._getDiameter()+"px")("height",k._getElementHeight())("padding-bottom",k._getPaddingBottom()),e.ekj("responsive",k.responsive))},inputs:{current:"current",max:"max",radius:"radius",animation:"animation",animationDelay:"animationDelay",duration:"duration",stroke:"stroke",color:"color",background:"background",responsive:"responsive",clockwise:"clockwise",semicircle:"semicircle",rounded:"rounded"},outputs:{onRender:"onRender"},features:[e.TTD],decls:4,vars:13,consts:[["xmlns","http://www.w3.org/2000/svg"],["fill","none"],["path",""]],template:function(f,k){1&f&&(e.O4$(),e.TgZ(0,"svg",0),e._UZ(1,"circle",1)(2,"path",1,2),e.qZA()),2&f&&(e.uIk("viewBox",k._getViewBox()),e.xp6(1),e.Udp("stroke",k.resolveColor(k.background))("stroke-width",k.stroke),e.uIk("cx",k.radius)("cy",k.radius)("r",k.radius-k.stroke/2),e.xp6(1),e.Udp("stroke-width",k.stroke)("stroke",k.resolveColor(k.color)),e.uIk("transform",k.getPathTransform()))},styles:["[_nghost-%COMP%]{display:block;position:relative;overflow:hidden}.responsive[_nghost-%COMP%]{width:100%;padding-bottom:100%}.responsive[_nghost-%COMP%] > svg[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;top:0;left:0}"],changeDetection:0})}return C})(),_=(()=>{class C{static#e=this.\u0275fac=function(f){return new(f||C)};static#t=this.\u0275mod=e.oAB({type:C});static#n=this.\u0275inj=e.cJS({providers:[d]})}return C})()},24487:(he,y,i)=>{"use strict";i.r(y),i.d(y,{JsonPatchError:()=>k,_areEquals:()=>P,applyOperation:()=>b,applyPatch:()=>I,applyReducer:()=>L,compare:()=>te,deepClone:()=>d,default:()=>j,escapePathComponent:()=>A,generate:()=>re,getValueByPointer:()=>E,observe:()=>Q,unescapePathComponent:()=>_,unobserve:()=>J,validate:()=>F,validator:()=>D});var e={};i.r(e),i.d(e,{JsonPatchError:()=>w,_areEquals:()=>P,applyOperation:()=>b,applyPatch:()=>I,applyReducer:()=>L,deepClone:()=>g,getValueByPointer:()=>E,validate:()=>F,validator:()=>D});var n={};i.r(n),i.d(n,{compare:()=>te,generate:()=>re,observe:()=>Q,unobserve:()=>J});
/*!
         * https://github.com/Starcounter-Jack/JSON-Patch
         * (c) 2017-2022 Joachim Wester
         * MIT licensed
         */
var H,o=(H=function(z,q){return(H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,ne){se.__proto__=ne}||function(se,ne){for(var _e in ne)ne.hasOwnProperty(_e)&&(se[_e]=ne[_e])})(z,q)},function(z,q){function se(){this.constructor=z}H(z,q),z.prototype=null===q?Object.create(q):(se.prototype=q.prototype,new se)}),a=Object.prototype.hasOwnProperty;function l(H,z){return a.call(H,z)}function u(H){if(Array.isArray(H)){for(var z=new Array(H.length),q=0;q<z.length;q++)z[q]=""+q;return z}if(Object.keys)return Object.keys(H);var se=[];for(var ne in H)l(H,ne)&&se.push(ne);return se}function d(H){switch(typeof H){case"object":return JSON.parse(JSON.stringify(H));case"undefined":return null;default:return H}}function s(H){for(var se,z=0,q=H.length;z<q;){if(!((se=H.charCodeAt(z))>=48&&se<=57))return!1;z++}return!0}function A(H){return-1===H.indexOf("/")&&-1===H.indexOf("~")?H:H.replace(/~/g,"~0").replace(/\//g,"~1")}function _(H){return H.replace(/~1/g,"/").replace(/~0/g,"~")}function x(H){if(void 0===H)return!0;if(H)if(Array.isArray(H)){for(var z=0,q=H.length;z<q;z++)if(x(H[z]))return!0}else if("object"==typeof H)for(var se=u(H),ne=se.length,_e=0;_e<ne;_e++)if(x(H[se[_e]]))return!0;return!1}function f(H,z){var q=[H];for(var se in z){var ne="object"==typeof z[se]?JSON.stringify(z[se],null,2):z[se];typeof ne<"u"&&q.push(se+": "+ne)}return q.join("\n")}var k=function(H){function z(q,se,ne,_e,ge){var Ce=this.constructor,Te=H.call(this,f(q,{name:se,index:ne,operation:_e,tree:ge}))||this;return Te.name=se,Te.index=ne,Te.operation=_e,Te.tree=ge,Object.setPrototypeOf(Te,Ce.prototype),Te.message=f(q,{name:se,index:ne,operation:_e,tree:ge}),Te}return o(z,H),z}(Error),w=k,g=d,M={add:function(H,z,q){return H[z]=this.value,{newDocument:q}},remove:function(H,z,q){var se=H[z];return delete H[z],{newDocument:q,removed:se}},replace:function(H,z,q){var se=H[z];return H[z]=this.value,{newDocument:q,removed:se}},move:function(H,z,q){var se=E(q,this.path);se&&(se=d(se));var ne=b(q,{op:"remove",path:this.from}).removed;return b(q,{op:"add",path:this.path,value:ne}),{newDocument:q,removed:se}},copy:function(H,z,q){var se=E(q,this.from);return b(q,{op:"add",path:this.path,value:d(se)}),{newDocument:q}},test:function(H,z,q){return{newDocument:q,test:P(H[z],this.value)}},_get:function(H,z,q){return this.value=H[z],{newDocument:q}}},p={add:function(H,z,q){return s(z)?H.splice(z,0,this.value):H[z]=this.value,{newDocument:q,index:z}},remove:function(H,z,q){return{newDocument:q,removed:H.splice(z,1)[0]}},replace:function(H,z,q){var se=H[z];return H[z]=this.value,{newDocument:q,removed:se}},move:M.move,copy:M.copy,test:M.test,_get:M._get};function E(H,z){if(""==z)return H;var q={op:"_get",path:z};return b(H,q),q.value}function b(H,z,q,se,ne,_e){if(void 0===q&&(q=!1),void 0===se&&(se=!0),void 0===ne&&(ne=!0),void 0===_e&&(_e=0),q&&("function"==typeof q?q(z,0,H,z.path):D(z,0)),""===z.path){var ge={newDocument:H};if("add"===z.op)return ge.newDocument=z.value,ge;if("replace"===z.op)return ge.newDocument=z.value,ge.removed=H,ge;if("move"===z.op||"copy"===z.op)return ge.newDocument=E(H,z.from),"move"===z.op&&(ge.removed=H),ge;if("test"===z.op){if(ge.test=P(H,z.value),!1===ge.test)throw new w("Test operation failed","TEST_OPERATION_FAILED",_e,z,H);return ge.newDocument=H,ge}if("remove"===z.op)return ge.removed=H,ge.newDocument=null,ge;if("_get"===z.op)return z.value=H,ge;if(q)throw new w("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",_e,z,H);return ge}se||(H=d(H));var Te=(z.path||"").split("/"),De=H,fe=1,xe=Te.length,Oe=void 0,Le=void 0,Gt=void 0;for(Gt="function"==typeof q?q:D;;){if((Le=Te[fe])&&-1!=Le.indexOf("~")&&(Le=_(Le)),ne&&("__proto__"==Le||"prototype"==Le&&fe>0&&"constructor"==Te[fe-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(q&&void 0===Oe&&(void 0===De[Le]?Oe=Te.slice(0,fe).join("/"):fe==xe-1&&(Oe=z.path),void 0!==Oe&&Gt(z,0,H,Oe)),fe++,Array.isArray(De)){if("-"===Le)Le=De.length;else{if(q&&!s(Le))throw new w("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",_e,z,H);s(Le)&&(Le=~~Le)}if(fe>=xe){if(q&&"add"===z.op&&Le>De.length)throw new w("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",_e,z,H);if(!1===(ge=p[z.op].call(z,De,Le,H)).test)throw new w("Test operation failed","TEST_OPERATION_FAILED",_e,z,H);return ge}}else if(fe>=xe){if(!1===(ge=M[z.op].call(z,De,Le,H)).test)throw new w("Test operation failed","TEST_OPERATION_FAILED",_e,z,H);return ge}if(De=De[Le],q&&fe<xe&&(!De||"object"!=typeof De))throw new w("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",_e,z,H)}}function I(H,z,q,se,ne){if(void 0===se&&(se=!0),void 0===ne&&(ne=!0),q&&!Array.isArray(z))throw new w("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");se||(H=d(H));for(var _e=new Array(z.length),ge=0,Ce=z.length;ge<Ce;ge++)_e[ge]=b(H,z[ge],q,!0,ne,ge),H=_e[ge].newDocument;return _e.newDocument=H,_e}function L(H,z,q){var se=b(H,z);if(!1===se.test)throw new w("Test operation failed","TEST_OPERATION_FAILED",q,z,H);return se.newDocument}function D(H,z,q,se){if("object"!=typeof H||null===H||Array.isArray(H))throw new w("Operation is not an object","OPERATION_NOT_AN_OBJECT",z,H,q);if(!M[H.op])throw new w("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",z,H,q);if("string"!=typeof H.path)throw new w("Operation `path` property is not a string","OPERATION_PATH_INVALID",z,H,q);if(0!==H.path.indexOf("/")&&H.path.length>0)throw new w('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",z,H,q);if(("move"===H.op||"copy"===H.op)&&"string"!=typeof H.from)throw new w("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",z,H,q);if(("add"===H.op||"replace"===H.op||"test"===H.op)&&void 0===H.value)throw new w("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",z,H,q);if(("add"===H.op||"replace"===H.op||"test"===H.op)&&x(H.value))throw new w("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",z,H,q);if(q)if("add"==H.op){var ne=H.path.split("/").length,_e=se.split("/").length;if(ne!==_e+1&&ne!==_e)throw new w("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",z,H,q)}else if("replace"===H.op||"remove"===H.op||"_get"===H.op){if(H.path!==se)throw new w("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",z,H,q)}else if("move"===H.op||"copy"===H.op){var Ce=F([{op:"_get",path:H.from,value:void 0}],q);if(Ce&&"OPERATION_PATH_UNRESOLVABLE"===Ce.name)throw new w("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",z,H,q)}}function F(H,z,q){try{if(!Array.isArray(H))throw new w("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(z)I(d(z),d(H),q||!0);else{q=q||D;for(var se=0;se<H.length;se++)q(H[se],se,z,void 0)}}catch(ne){if(ne instanceof w)return ne;throw ne}}function P(H,z){if(H===z)return!0;if(H&&z&&"object"==typeof H&&"object"==typeof z){var ne,_e,ge,q=Array.isArray(H),se=Array.isArray(z);if(q&&se){if((_e=H.length)!=z.length)return!1;for(ne=_e;0!=ne--;)if(!P(H[ne],z[ne]))return!1;return!0}if(q!=se)return!1;var Ce=Object.keys(H);if((_e=Ce.length)!==Object.keys(z).length)return!1;for(ne=_e;0!=ne--;)if(!z.hasOwnProperty(Ce[ne]))return!1;for(ne=_e;0!=ne--;)if(!P(H[ge=Ce[ne]],z[ge]))return!1;return!0}return H!=H&&z!=z}
/*!
         * https://github.com/Starcounter-Jack/JSON-Patch
         * (c) 2017-2021 Joachim Wester
         * MIT license
         */var O=new WeakMap,U=function H(z){this.observers=new Map,this.obj=z},V=function H(z,q){this.callback=z,this.observer=q};function J(H,z){z.unobserve()}function Q(H,z){var se,ne=function K(H){return O.get(H)}(H);if(ne){var _e=function X(H,z){return H.observers.get(z)}(ne,z);se=_e&&_e.observer}else ne=new U(H),O.set(H,ne);if(se)return se;if(se={},ne.value=d(H),z){se.callback=z,se.next=null;var ge=function(){re(se)},Ce=function(){clearTimeout(se.next),se.next=setTimeout(ge)};typeof window<"u"&&(window.addEventListener("mouseup",Ce),window.addEventListener("keyup",Ce),window.addEventListener("mousedown",Ce),window.addEventListener("keydown",Ce),window.addEventListener("change",Ce))}return se.patches=[],se.object=H,se.unobserve=function(){re(se),clearTimeout(se.next),function me(H,z){H.observers.delete(z.callback)}(ne,se),typeof window<"u"&&(window.removeEventListener("mouseup",Ce),window.removeEventListener("keyup",Ce),window.removeEventListener("mousedown",Ce),window.removeEventListener("keydown",Ce),window.removeEventListener("change",Ce))},ne.observers.set(z,new V(z,se)),se}function re(H,z){void 0===z&&(z=!1);var q=O.get(H.object);de(q.value,H.object,H.patches,"",z),H.patches.length&&I(q.value,H.patches);var se=H.patches;return se.length>0&&(H.patches=[],H.callback&&H.callback(se)),se}function de(H,z,q,se,ne){if(z!==H){"function"==typeof z.toJSON&&(z=z.toJSON());for(var _e=u(z),ge=u(H),Te=!1,De=ge.length-1;De>=0;De--){var xe=H[fe=ge[De]];if(!l(z,fe)||void 0===z[fe]&&void 0!==xe&&!1===Array.isArray(z))Array.isArray(H)===Array.isArray(z)?(ne&&q.push({op:"test",path:se+"/"+A(fe),value:d(xe)}),q.push({op:"remove",path:se+"/"+A(fe)}),Te=!0):(ne&&q.push({op:"test",path:se,value:H}),q.push({op:"replace",path:se,value:z}));else{var Oe=z[fe];"object"==typeof xe&&null!=xe&&"object"==typeof Oe&&null!=Oe&&Array.isArray(xe)===Array.isArray(Oe)?de(xe,Oe,q,se+"/"+A(fe),ne):xe!==Oe&&(ne&&q.push({op:"test",path:se+"/"+A(fe),value:d(xe)}),q.push({op:"replace",path:se+"/"+A(fe),value:d(Oe)}))}}if(Te||_e.length!=ge.length)for(De=0;De<_e.length;De++){var fe;!l(H,fe=_e[De])&&void 0!==z[fe]&&q.push({op:"add",path:se+"/"+A(fe),value:d(z[fe])})}}}function te(H,z,q){void 0===q&&(q=!1);var se=[];return de(H,z,se,"",q),se}const j=Object.assign({},e,n,{JsonPatchError:k,deepClone:d,escapePathComponent:A,unescapePathComponent:_})},17142:(he,y,i)=>{"use strict";i.d(y,{Z:()=>e.Z});var e=i(23106);
/**
         * @license
         * Copyright 2020 Google LLC
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *   http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */e.Z.registerVersion("firebase","10.12.4","app-compat")},81878:(he,y,i)=>{"use strict";i.d(y,{Lj:()=>b,X3:()=>E});var e=i(15861);const n=(P,O)=>O.some(U=>P instanceof U);let o,a;const d=new WeakMap,s=new WeakMap,A=new WeakMap,_=new WeakMap,C=new WeakMap;let f={get(P,O,U){if(P instanceof IDBTransaction){if("done"===O)return s.get(P);if("objectStoreNames"===O)return P.objectStoreNames||A.get(P);if("store"===O)return U.objectStoreNames[1]?void 0:U.objectStore(U.objectStoreNames[0])}return M(P[O])},set:(P,O,U)=>(P[O]=U,!0),has:(P,O)=>P instanceof IDBTransaction&&("done"===O||"store"===O)||O in P};function g(P){return"function"==typeof P?function w(P){return P!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function u(){return a||(a=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(P)?function(...O){return P.apply(p(this),O),M(d.get(this))}:function(...O){return M(P.apply(p(this),O))}:function(O,...U){const V=P.call(p(this),O,...U);return A.set(V,O.sort?O.sort():[O]),M(V)}}(P):(P instanceof IDBTransaction&&function x(P){if(s.has(P))return;const O=new Promise((U,V)=>{const K=()=>{P.removeEventListener("complete",X),P.removeEventListener("error",me),P.removeEventListener("abort",me)},X=()=>{U(),K()},me=()=>{V(P.error||new DOMException("AbortError","AbortError")),K()};P.addEventListener("complete",X),P.addEventListener("error",me),P.addEventListener("abort",me)});s.set(P,O)}(P),n(P,function l(){return o||(o=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(P,f):P)}function M(P){if(P instanceof IDBRequest)return function R(P){const O=new Promise((U,V)=>{const K=()=>{P.removeEventListener("success",X),P.removeEventListener("error",me)},X=()=>{U(M(P.result)),K()},me=()=>{V(P.error),K()};P.addEventListener("success",X),P.addEventListener("error",me)});return O.then(U=>{U instanceof IDBCursor&&d.set(U,P)}).catch(()=>{}),C.set(O,P),O}(P);if(_.has(P))return _.get(P);const O=g(P);return O!==P&&(_.set(P,O),C.set(O,P)),O}const p=P=>C.get(P);function E(P,O,{blocked:U,upgrade:V,blocking:K,terminated:X}={}){const me=indexedDB.open(P,O),J=M(me);return V&&me.addEventListener("upgradeneeded",Q=>{V(M(me.result),Q.oldVersion,Q.newVersion,M(me.transaction),Q)}),U&&me.addEventListener("blocked",Q=>U(Q.oldVersion,Q.newVersion,Q)),J.then(Q=>{X&&Q.addEventListener("close",()=>X()),K&&Q.addEventListener("versionchange",re=>K(re.oldVersion,re.newVersion,re))}).catch(()=>{}),J}function b(P,{blocked:O}={}){const U=indexedDB.deleteDatabase(P);return O&&U.addEventListener("blocked",V=>O(V.oldVersion,V)),M(U).then(()=>{})}const I=["get","getKey","getAll","getAllKeys","count"],L=["put","add","delete","clear"],D=new Map;function F(P,O){if(!(P instanceof IDBDatabase)||O in P||"string"!=typeof O)return;if(D.get(O))return D.get(O);const U=O.replace(/FromIndex$/,""),V=O!==U,K=L.includes(U);if(!(U in(V?IDBIndex:IDBObjectStore).prototype)||!K&&!I.includes(U))return;const X=function(){var me=(0,e.Z)(function*(J,...Q){const re=this.transaction(J,K?"readwrite":"readonly");let de=re.store;return V&&(de=de.index(Q.shift())),(yield Promise.all([de[U](...Q),K&&re.done]))[0]});return function(Q){return me.apply(this,arguments)}}();return D.set(O,X),X}!function k(P){f=P(f)}(P=>({...P,get:(O,U,V)=>F(O,U)||P.get(O,U,V),has:(O,U)=>!!F(O,U)||P.has(O,U)}))},3209:(he,y,i)=>{"use strict";i.d(y,{G8:()=>g,PC:()=>p,bH:()=>F,uh:()=>L});var e=i(65879),n=i(96814),o=i(97328);const a=["templateOutlet"];function l(P,O){if(1&P&&(e.TgZ(0,"div",6),e._uU(1),e.qZA()),2&P){const U=e.oxw(2);e.xp6(1),e.hij(" ",U.message||U.defaultMessage," ")}}function u(P,O){if(1&P&&(e.TgZ(0,"div",3),e._UZ(1,"div",4),e.YNc(2,l,2,1,"div",5),e.qZA()),2&P){const U=e.oxw();e.xp6(2),e.Q6J("ngIf",U.message||U.defaultMessage)}}function d(P,O){}function s(P,O){1&P&&e.YNc(0,d,0,0,"ng-template",null,7,e.W1O)}const A=function(P){return{active:P}},_=["*"],C="block-ui-main";let R=(()=>{class P{}return P.START="start",P.STOP="stop",P.UPDATE="update",P.RESET="reset",P.RESET_GLOBAL="reset_global",P.UNSUBSCRIBE="unsubscribe",P})(),x=(()=>{class P{constructor(){this.blockUISettings={},this.blockUIInstances={},this.blockUISubject=new o.t(1),this.blockUIObservable=this.blockUISubject.asObservable(),this.blockUIObservable.subscribe(this.blockUIMiddleware.bind(this))}getSettings(){return this.blockUISettings}updateSettings(U={}){this.blockUISettings={...this.blockUISettings,...U}}decorate(U=C){const V={name:U,isActive:!1,blockCount:0,start:this.dispatch(this.blockUISubject,R.START,U),update:this.dispatch(this.blockUISubject,R.UPDATE,U),stop:this.dispatch(this.blockUISubject,R.STOP,U),reset:this.dispatch(this.blockUISubject,R.RESET,U),resetGlobal:this.dispatch(this.blockUISubject,R.RESET_GLOBAL,U),unsubscribe:this.dispatch(this.blockUISubject,R.UNSUBSCRIBE,U)};return this.blockUIInstances[U]=this.blockUIInstances[U]||V,V}observe(){return this.blockUIObservable}clearInstance(U){this.dispatch(this.blockUISubject,R.RESET,U)}blockUIMiddleware({action:U,name:V}){let K=null;switch(U){case R.START:K=!0;break;case R.STOP:case R.RESET:K=!1}null!==K&&(this.blockUIInstances[V].isActive=K)}dispatch(U,V,K=C){return X=>{U.next({name:K,action:V,message:X})}}}return P.\u0275fac=function(U){return new(U||P)},P.\u0275prov=e.Yz7({token:P,factory:P.\u0275fac}),P})(),w=(()=>{class P{constructor(U,V,K){this.blockUI=U,this.resolver=V,this.changeDetectionRef=K,this.name=C,this.defaultBlockState={startTimeouts:[],stopTimeouts:[],updateTimeouts:[],blockCount:0,startCallCount:0,stopCallCount:0},this.state={...this.defaultBlockState}}ngOnInit(){this.settings=this.blockUI.getSettings(),this.blockUISubscription=this.subscribeToBlockUI(this.blockUI.observe())}ngAfterViewInit(){try{if(!this.templateCmp)return!1;if(this.templateCmp instanceof e.Rgc)this.templateOutlet.createEmbeddedView(this.templateCmp);else{const U=this.resolver.resolveComponentFactory(this.templateCmp);this.templateCompRef=this.templateOutlet.createComponent(U),this.updateBlockTemplate(this.message)}}catch(U){console.error("ng-block-ui:",U)}}ngAfterViewChecked(){this.detectChanges()}subscribeToBlockUI(U){return U.subscribe(V=>this.onDispatchedEvent(V))}onDispatchedEvent(U){switch(U.action){case R.START:this.onStart(U);break;case R.STOP:this.onStop(U);break;case R.UPDATE:this.onUpdate(U);break;case R.RESET:this.onReset(U);break;case R.RESET_GLOBAL:this.resetState();break;case R.UNSUBSCRIBE:this.onStop(U),this.onUnsubscribe(U.name)}}onStart({name:U,message:V}){if(U===this.name){const K=this.delayStart??this.settings.delayStart??0;this.state.startCallCount+=1;const X=setTimeout(()=>{this.state.blockCount+=1,this.showBlock(V),this.updateInstanceBlockCount()},K);this.state.startTimeouts.push(X)}}onStop({name:U}){if(U===this.name){const V=this.state.stopCallCount+1;if(this.state.startCallCount-V>=0){const K=this.delayStop??this.settings.delayStop??0;this.state.stopCallCount=V;const X=setTimeout(()=>{this.state.blockCount-=1,this.updateInstanceBlockCount(),this.detectChanges()},K);this.state.stopTimeouts.push(X)}}}onUpdate({name:U,message:V}){if(U===this.name){const K=this.delayStart||this.settings.delayStart||0;clearTimeout(this.state.updateTimeouts[0]);const X=setTimeout(()=>{this.updateMessage(V)},K);this.state.updateTimeouts.push(X)}}onReset({name:U}){U===this.name&&this.resetState()}updateMessage(U){this.showBlock(U)}showBlock(U){this.message=U||this.defaultMessage||this.settings.message,this.updateBlockTemplate(this.message),this.detectChanges()}updateBlockTemplate(U){this.templateCompRef&&this.templateCompRef instanceof e.UuU&&(this.templateCompRef.instance.message=U)}resetState(){[...this.state.startTimeouts,...this.state.stopTimeouts,...this.state.updateTimeouts].forEach(clearTimeout),this.state={...this.defaultBlockState},this.updateInstanceBlockCount(),this.detectChanges()}onUnsubscribe(U){this.blockUISubscription&&U===this.name&&this.blockUISubscription.unsubscribe()}updateInstanceBlockCount(){if(this.blockUI.blockUIInstances[this.name]){const{blockCount:U}=this.state;this.blockUI.blockUIInstances[this.name].blockCount=U}}detectChanges(){this.changeDetectionRef.destroyed||this.changeDetectionRef.detectChanges()}ngOnDestroy(){this.resetState(),this.onUnsubscribe(this.name),this.blockUI.clearInstance(this.name)}}return P.\u0275fac=function(U){return new(U||P)(e.Y36(x),e.Y36(e._Vd),e.Y36(e.sBO))},P.\u0275cmp=e.Xpm({type:P,selectors:[["block-ui-content"]],viewQuery:function(U,V){if(1&U&&e.Gf(a,5,e.s_b),2&U){let K;e.iGM(K=e.CRH())&&(V.templateOutlet=K.first)}},inputs:{name:"name",delayStart:"delayStart",delayStop:"delayStop",defaultMessage:["message","defaultMessage"],templateCmp:["template","templateCmp"]},decls:3,vars:9,consts:[[3,"ngClass"],["class","block-ui-spinner",4,"ngIf"],[4,"ngIf"],[1,"block-ui-spinner"],[1,"loader"],["class","message",4,"ngIf"],[1,"message"],["templateOutlet",""]],template:function(U,V){1&U&&(e.TgZ(0,"div",0),e.YNc(1,u,3,1,"div",1),e.YNc(2,s,2,0,null,2),e.qZA()),2&U&&(e.MT6("block-ui-wrapper ",V.name," ",V.className,""),e.Q6J("ngClass",e.VKq(7,A,V.state.blockCount>0)),e.xp6(1),e.Q6J("ngIf",!V.templateCmp),e.xp6(1),e.Q6J("ngIf",V.templateCmp))},dependencies:[n.mk,n.O5],styles:[".block-ui-wrapper{display:none;position:fixed;height:100%;width:100%;top:0;left:0;background:rgba(0,0,0,.7);z-index:30000;cursor:wait}.block-ui-wrapper.block-ui-wrapper--element{position:absolute}.block-ui-wrapper.active{display:block}.block-ui-wrapper.block-ui-main{position:fixed}.block-ui-spinner,.block-ui-template{position:absolute;top:40%;margin:0 auto;left:0;right:0;transform:translateY(-50%)}.block-ui-spinner>.message{font-size:1.3em;text-align:center;color:#fff}.block-ui__element{position:relative}.loader,.loader:after{border-radius:50%;width:10em;height:10em}.loader{margin:7px auto;font-size:5px;position:relative;text-indent:-9999em;border-top:1.1em solid rgba(255,255,255,.2);border-right:1.1em solid rgba(255,255,255,.2);border-bottom:1.1em solid rgba(255,255,255,.2);border-left:1.1em solid #ffffff;transform:translateZ(0);animation:load8 1.1s infinite linear}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"],encapsulation:2}),P})(),g=(()=>{class P{constructor(U){this.blockUI=U}ngOnInit(){this.name=this.name||C,this.template=this.template||this.blockUI.blockUISettings.template}}return P.\u0275fac=function(U){return new(U||P)(e.Y36(x))},P.\u0275cmp=e.Xpm({type:P,selectors:[["block-ui"]],inputs:{name:"name",message:"message",delayStart:"delayStart",delayStop:"delayStop",template:"template"},ngContentSelectors:_,decls:2,vars:5,consts:[[3,"name","message","template","delayStart","delayStop"]],template:function(U,V){1&U&&(e.F$t(),e.Hsn(0),e._UZ(1,"block-ui-content",0)),2&U&&(e.xp6(1),e.Q6J("name",V.name)("message",V.message)("template",V.template)("delayStart",V.delayStart)("delayStop",V.delayStop))},dependencies:[w],encapsulation:2}),P})(),M=(()=>{class P{constructor(U){this.blockUIInstance=U,this.globalDispatch=this.blockUIInstance.decorate()}start(U,V){this.dispatch(U,R.START,V)}stop(U){this.dispatch(U,R.STOP)}reset(U){this.dispatch(U,R.RESET)}resetGlobal(){this.globalDispatch.resetGlobal()}update(U,V){this.dispatch(U,R.UPDATE,V)}unsubscribe(U){this.dispatch(U,R.UNSUBSCRIBE)}isActive(U=null){const V=U?this.toArray(U):null,K=this.blockUIInstance.blockUIInstances;return Object.keys(K).some(X=>V?V.indexOf(K[X].name)>=0&&K[X].isActive:K[X].isActive)}dispatch(U=[],V,K){this.toArray(U).forEach(me=>this.blockUIInstance.decorate(me)[V](K))}toArray(U=[]){return"string"==typeof U?[U]:U}}return P.\u0275fac=function(U){return new(U||P)(e.LFG(x))},P.\u0275prov=e.Yz7({token:P,factory:P.\u0275fac}),P})(),p=(()=>{class P{constructor(U,V,K,X,me,J){this.blockUIService=U,this.blockUIInstanceService=V,this.viewRef=K,this.templateRef=X,this.renderer=me,this.componentFactoryResolver=J}set blockUI(U){this.blockTarget=U}set blockUIMessage(U){this.message=U}set blockUITemplate(U){this.template=U}set blockUIDelayStart(U){this.delayStart=U?Number(U):null}set blockUIDelayStop(U){this.delayStop=U?Number(U):null}ngOnInit(){try{this.viewRef.createEmbeddedView(this.templateRef);const U=this.getParentElement();if(U&&!this.isComponentInTemplate(U)){this.renderer.addClass(U,"block-ui__element"),this.blockUIComponentRef=this.createComponent();let V=this.findContentNode(this.viewRef.element.nativeElement);if(V){const K=this.blockUIInstanceService.getSettings();U.appendChild(V),this.blockUIComponentRef.instance.className="block-ui-wrapper--element",this.blockUIComponentRef.instance.name=this.blockTarget||C,this.message&&(this.blockUIComponentRef.instance.defaultMessage=this.message),this.delayStart&&(this.blockUIComponentRef.instance.delayStart=this.delayStart),this.delayStop&&(this.blockUIComponentRef.instance.delayStop=this.delayStop),(this.template||K.template)&&(this.blockUIComponentRef.instance.templateCmp=this.template||K.template)}}}catch(U){console.error("ng-block-ui:",U)}}isComponentInTemplate(U){const V=U||{};let{children:K}=V;return K=Array.from(K||[]).reverse(),K.some(X=>X&&"block-ui"===X.localName)}getParentElement(){return this.viewRef.get(0).rootNodes[0]}findContentNode(U){const V=U.nextSibling||{},K=U.previousSibling||{};return[V,V.nextSibling,K,K.previousSibling].find(X=>X&&"block-ui-content"===X.localName)}createComponent(){const U=this.componentFactoryResolver.resolveComponentFactory(w);return this.viewRef.createComponent(U)}ngOnDestroy(){this.blockTarget&&this.blockUIService.reset(this.blockTarget)}}return P.\u0275fac=function(U){return new(U||P)(e.Y36(M),e.Y36(x),e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.Qsj),e.Y36(e._Vd))},P.\u0275dir=e.lG2({type:P,selectors:[["","blockUI",""]],inputs:{blockUI:"blockUI",blockUIMessage:"blockUIMessage",blockUITemplate:"blockUITemplate",blockUIDelayStart:"blockUIDelayStart",blockUIDelayStop:"blockUIDelayStop"}}),P})();const E=new x,b=new e.OlP("BlockUIModuleSettings");function I(P){return E.updateSettings(P),E}let L=(()=>{class P{static forRoot(U={}){return{ngModule:P,providers:[{provide:b,useValue:U},{provide:x,useFactory:I,deps:[b]},M]}}}return P.\u0275fac=function(U){return new(U||P)},P.\u0275mod=e.oAB({type:P}),P.\u0275inj=e.cJS({imports:[n.ez]}),P})(),D=1;function F(P,O={}){return O.scopeToInstance?function(U,V){const K=`_${V}-block-ui`;Object.defineProperty(U,V,{get:function(){if(this[K])return this[K];const X=`${P}-${D++}`;return this[K]=E.decorate(X),this[K]},set:function(X){this[K]=X}})}:function(U,V){U[V]=E.decorate(P)}}},10459:(he,y,i)=>{"use strict";i.d(y,{N:()=>o});var e=i(65879),n=i(96814);let o=(()=>{class a{constructor(u,d){this.document=u,this.platformId=d,this.documentIsAccessible=(0,n.NF)(this.platformId)}static getCookieRegExp(u){const d=u.replace(/([\[\]{}()|=;+?,.*^$])/gi,"\\$1");return new RegExp("(?:^"+d+"|;\\s*"+d+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(u){try{return decodeURIComponent(u)}catch{return u}}check(u){return!!this.documentIsAccessible&&(u=encodeURIComponent(u),a.getCookieRegExp(u).test(this.document.cookie))}get(u){if(this.documentIsAccessible&&this.check(u)){u=encodeURIComponent(u);const s=a.getCookieRegExp(u).exec(this.document.cookie);return s[1]?a.safeDecodeURIComponent(s[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const u={},d=this.document;return d.cookie&&""!==d.cookie&&d.cookie.split(";").forEach(s=>{const[A,_]=s.split("=");u[a.safeDecodeURIComponent(A.replace(/^ /,""))]=a.safeDecodeURIComponent(_)}),u}set(u,d,s,A,_,C,R){if(!this.documentIsAccessible)return;if("number"==typeof s||s instanceof Date||A||_||C||R)return void this.set(u,d,{expires:s,path:A,domain:_,secure:C,sameSite:R||"Lax"});let x=encodeURIComponent(u)+"="+encodeURIComponent(d)+";";const f=s||{};f.expires&&(x+="number"==typeof f.expires?"expires="+new Date((new Date).getTime()+1e3*f.expires*60*60*24).toUTCString()+";":"expires="+f.expires.toUTCString()+";"),f.path&&(x+="path="+f.path+";"),f.domain&&(x+="domain="+f.domain+";"),!1===f.secure&&"None"===f.sameSite&&(f.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${u} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),f.secure&&(x+="secure;"),f.sameSite||(f.sameSite="Lax"),x+="sameSite="+f.sameSite+";",this.document.cookie=x}delete(u,d,s,A,_="Lax"){this.documentIsAccessible&&this.set(u,"",{expires:new Date("Thu, 01 Jan 1970 00:00:01 GMT"),path:d,domain:s,secure:A,sameSite:_})}deleteAll(u,d,s,A="Lax"){if(!this.documentIsAccessible)return;const _=this.getAll();for(const C in _)_.hasOwnProperty(C)&&this.delete(C,u,d,s,A)}static#e=this.\u0275fac=function(d){return new(d||a)(e.LFG(n.K0),e.LFG(e.Lbi))};static#t=this.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()},18750:(he,y,i)=>{"use strict";i.d(y,{x0:()=>L});var e=i(65879),n=i(96814);const o={UKNOWN:"Unknown"},a={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:o.UKNOWN},l={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n      A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n      MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n      ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n      WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n      XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n      XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n      GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n      GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n      GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n      GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n      GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n      GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n      GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n      GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n      GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n      GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n      GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n      GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n      GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n      GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n      GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n      GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n      GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n      SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n      SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n      SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n      SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n      SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n      SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n      SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n      SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n      SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n      SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n      SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n      SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n      SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n      SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n      SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n      SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n      SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n      SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n      SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n      SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n      SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n      SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n      SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n      SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n      SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n      SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n      SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n      SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n      SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n      SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n      SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n      GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n      GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n      GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n      SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n      SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n      SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n      LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n      C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n      LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n      VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n      MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n        IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n        IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n        CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n        P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n        SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n        CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel|Mobile; rv:49.0|Mobile; ALCATEL 4052R; rv:48.0/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n        up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},u={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n        GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n        SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n        GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n        SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n        GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n        SHV-E230S|SHW-M180K|SHW-M180L|SM-T865|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n        SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n        GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T385M|SM-P585M|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n        SM-P601|SM-P605|SM-P615|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n        GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n        SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n        SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T500|SM-T330|\n        SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n        SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n        SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n        SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n        SM-T719|SM-T725|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n        SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y|SM-X200|SM-T970"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n        KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome        /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n        TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n        Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n        ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n        ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n        W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n        \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n        PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n        PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n        PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n        PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n        YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n        B8000|B8080)(-|)(FL|F|HV|H|)|TB-X606F|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n        TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n        TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n        TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n        TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n         Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n        SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n        EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n        SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n        MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n        MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n        MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n        Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n        Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n        S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09|AGS-L09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n        TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n        TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n        TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n        TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n        TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n        TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n        T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n        Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n        PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n        PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n        PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n        TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n        TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n        TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n        TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n        TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n        TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n        MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n        TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n        GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n        TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n        TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n        FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n        FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n        Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n        Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n        S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n        P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n        Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n        Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n        Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n        Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n        PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n        PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n        TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n        NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n        \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n        \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n        \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n        \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n        \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n        \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n        \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n        \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n        V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n        V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n        Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n        \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n        MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n        POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n        FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n        TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,Honeywell:/RT10A/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n        A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n        Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},d={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",MAC:"Macintosh",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:o.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",HONEYWELL:"Honeywell",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone",MI_SE_9:"Mi SE 9"},s=[d.PS4,d.CHROME_BOOK,d.MAC,d.DELL,d.ASUS,d.UNKNOWN],A={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:o.UKNOWN},_={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_11_0:"mac-os-x-11-0",MACOSX_16:"mac-os-x-16",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",ANDROID_9:"android-9",UNKNOWN:o.UKNOWN.toLowerCase()},C={WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},x={...l,...u,...C,FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/,MI_SE_9:/\bXiaomi\b/,MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]}},f={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,MACOSX_16:/(Mac OS X 10.16)/,MACOSX_11_0:{or:[/11_0 like Mac OS X/,/Mac OS X 11/]},iOS:/(iPhone OS\s*[0-9_]+)/,ANDROID_9:/(Android 9)/},k={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},w=Object.keys(f).reduce((D,F)=>(D[F]=f[F],D),{}),g=Object.keys(k).reduce((D,F)=>(D[a[F]]=k[F],D),{});var M=Object.freeze({__proto__:null,BROWSERS:a,BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},BROWSER_VERSIONS_RE:g,BROWSER_VERSIONS_RE_MAP:k,DESKTOP_DEVICES:s,DEVICES:d,DEVICES_RE:x,GENERAL:o,MOBILES_RE:l,OS:A,OS_RE:C,OS_VERSIONS:_,OS_VERSIONS_RE:w,OS_VERSIONS_RE_MAP:f,TABLETS_RE:u});class p{constructor(){}test(F,P){return"string"==typeof P&&(P=new RegExp(P)),P instanceof RegExp?P.test(F):P&&Array.isArray(P.and)?P.and.every(O=>this.test(F,O)):P&&Array.isArray(P.or)?P.or.some(O=>this.test(F,O)):!(!P||!P.not||this.test(F,P.not))}exec(F,P){return"string"==typeof P&&(P=new RegExp(P)),P instanceof RegExp?P.exec(F):P&&Array.isArray(P)?P.reduce((O,U)=>O||this.exec(F,U),null):null}}var E=function(D){return D.Mobile="mobile",D.Tablet="tablet",D.Desktop="desktop",D.Unknown="unknown",D}(E||{}),b=function(D){return D.Portrait="portrait",D.Landscape="landscape",D}(b||{});const I="iPad";let L=(()=>{class D{constructor(P){this.platformId=P,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new p,this.deviceType="",this.orientation="",(0,n.NF)(this.platformId)&&typeof window<"u"&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}setDeviceInfo(P=this.userAgent){P!==this.userAgent&&(this.userAgent=P);const O=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(O.forEach(U=>{this[U.prop]=Object.keys(M[U.const]).reduce((V,K)=>"device"===M[U.const][K]&&(0,n.NF)(this.platformId)&&(this.reTree.test(this.userAgent,u[I])||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(V[M[U.const][K]]=I,Object):(V[M[U.const][K]]=this.reTree.test(P,M[`${U.const}_RE`][K]),V),{})}),O.forEach(U=>{this[U.prop]=Object.keys(M[U.const]).map(V=>M[U.const][V]).reduce((V,K)=>"device"===U.prop&&V===M[U.const].ANDROID?this[U.prop][K]?K:V:V===M[U.const].UNKNOWN&&this[U.prop][K]?K:V,M[U.const].UNKNOWN)}),this.browser_version="0",this.browser!==a.UNKNOWN){const V=this.reTree.exec(P,g[this.browser]);V&&(this.browser_version=V[1])}this.orientation=typeof window<"u"&&window.matchMedia?window.matchMedia("(orientation: landscape)").matches?b.Landscape:b.Portrait:o.UKNOWN,this.deviceType=this.isTablet()?E.Tablet:this.isMobile(this.userAgent)?E.Mobile:this.isDesktop(this.userAgent)?E.Desktop:E.Unknown}getDeviceInfo(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}isMobile(P=this.userAgent){return!this.isTablet(P)&&!!Object.keys(l).find(U=>this.reTree.test(P,l[U]))}isTablet(P=this.userAgent){return!(!(0,n.NF)(this.platformId)||!(this.reTree.test(this.userAgent,u[I])||typeof navigator<"u"&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))||!!Object.keys(u).find(U=>!!this.reTree.test(P,u[U]))}isDesktop(P=this.userAgent){return(this.device!==d.UNKNOWN||!this.isMobile(P)&&!this.isTablet(P))&&s.indexOf(this.device)>-1}static#e=this.\u0275fac=function(O){return new(O||D)(e.LFG(e.Lbi))};static#t=this.\u0275prov=e.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"})}return D})()},69234:(he,y,i)=>{"use strict";i.d(y,{zr:()=>k_,cX:()=>F_});var e=i(15861),n=i(65879),o=i(6593),a=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=function(ko){return ko&&ko.Math==Math&&ko},u=l("object"==typeof globalThis&&globalThis)||l("object"==typeof window&&window)||l("object"==typeof self&&self)||l("object"==typeof a&&a)||function(){return this}()||Function("return this")(),d={},s=function(ko){try{return!!ko()}catch{return!0}},_=!s(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),R=!s(function(){var ko=function(){}.bind();return"function"!=typeof ko||ko.hasOwnProperty("prototype")}),f=Function.prototype.call,k=R?f.bind(f):function(){return f.apply(f,arguments)},w={},g={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,p=M&&!g.call({1:2},1);w.f=p?function(dr){var Ir=M(this,dr);return!!Ir&&Ir.enumerable}:g;var dn,sn,E=function(ko,dr){return{enumerable:!(1&ko),configurable:!(2&ko),writable:!(4&ko),value:dr}},b=R,I=Function.prototype,D=I.call,F=b&&I.bind.bind(D,D),P=b?function(ko){return ko&&F(ko)}:function(ko){return ko&&function(){return D.apply(ko,arguments)}},O=P,U=O({}.toString),V=O("".slice),K=function(ko){return V(U(ko),8,-1)},J=s,Q=K,re=u.Object,de=P("".split),te=J(function(){return!re("z").propertyIsEnumerable(0)})?function(ko){return"String"==Q(ko)?de(ko,""):re(ko)}:re,H=u.TypeError,z=function(ko){if(null==ko)throw H("Can't call method on "+ko);return ko},q=te,se=z,ne=function(ko){return q(se(ko))},_e=function(ko){return"function"==typeof ko},ge=_e,Ce=function(ko){return"object"==typeof ko?null!==ko:ge(ko)},Te=u,De=_e,xe=function(ko,dr){return arguments.length<2?function(ko){return De(ko)?ko:void 0}(Te[ko]):Te[ko]&&Te[ko][dr]},Le=P({}.isPrototypeOf),Ut=xe("navigator","userAgent")||"",$n=Ut,xn=u.process,mt=u.Deno,ut=xn&&xn.versions||mt&&mt.version,Wt=ut&&ut.v8;Wt&&(sn=(dn=Wt.split("."))[0]>0&&dn[0]<4?1:+(dn[0]+dn[1])),!sn&&$n&&(!(dn=$n.match(/Edge\/(\d+)/))||dn[1]>=74)&&(dn=$n.match(/Chrome\/(\d+)/))&&(sn=+dn[1]);var fn=sn,yi=fn,Mi=!!Object.getOwnPropertySymbols&&!s(function(){var ko=Symbol();return!String(ko)||!(Object(ko)instanceof Symbol)||!Symbol.sham&&yi&&yi<41}),Eo=Mi&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,xo=xe,Bn=_e,Xt=Le,En=u.Object,un=Eo?function(ko){return"symbol"==typeof ko}:function(ko){var dr=xo("Symbol");return Bn(dr)&&Xt(dr.prototype,En(ko))},Fn=u.String,oi=function(ko){try{return Fn(ko)}catch{return"Object"}},Bt=_e,xt=oi,wt=u.TypeError,Mt=function(ko){if(Bt(ko))return ko;throw wt(xt(ko)+" is not a function")},pt=Mt,Lt=function(ko,dr){var Ir=ko[dr];return null==Ir?void 0:pt(Ir)},Ne=k,vt=_e,ln=Ce,jn=u.TypeError,go={exports:{}},si=u,ot=Object.defineProperty,pn=function(ko,dr){try{ot(si,ko,{value:dr,configurable:!0,writable:!0})}catch{si[ko]=dr}return dr},hi="__core-js_shared__",Ei=u[hi]||pn(hi,{}),li=Ei;(go.exports=function(ko,dr){return li[ko]||(li[ko]=void 0!==dr?dr:{})})("versions",[]).push({version:"3.22.2",mode:"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE",source:"https://github.com/zloirock/core-js"});var ki=z,bo=u.Object,jo=function(ko){return bo(ki(ko))},Zi=jo,oo=P({}.hasOwnProperty),Bi=Object.hasOwn||function(dr,Ir){return oo(Zi(dr),Ir)},Xo=P,Lo=0,or=Math.random(),xr=Xo(1..toString),Nr=function(ko){return"Symbol("+(void 0===ko?"":ko)+")_"+xr(++Lo+or,36)},as=u,Fo=Bi,rt=Nr,ai=Mi,Gn=Eo,Io=(0,go.exports)("wks"),wr=as.Symbol,bs=wr&&wr.for,ba=Gn?wr:wr&&wr.withoutSetter||rt,ms=function(ko){if(!Fo(Io,ko)||!ai&&"string"!=typeof Io[ko]){var dr="Symbol."+ko;Io[ko]=ai&&Fo(wr,ko)?wr[ko]:Gn&&bs?bs(dr):ba(dr)}return Io[ko]},Ea=k,Sa=Ce,tr=un,Mr=Lt,ao=u.TypeError,Go=ms("toPrimitive"),Rr=function(ko,dr){if(!Sa(ko)||tr(ko))return ko;var Se,Ir=Mr(ko,Go);if(Ir){if(void 0===dr&&(dr="default"),Se=Ea(Ir,ko,dr),!Sa(Se)||tr(Se))return Se;throw ao("Can't convert object to primitive value")}return void 0===dr&&(dr="number"),function(ko,dr){var Ir,Se;if("string"===dr&&vt(Ir=ko.toString)&&!ln(Se=Ne(Ir,ko))||vt(Ir=ko.valueOf)&&!ln(Se=Ne(Ir,ko))||"string"!==dr&&vt(Ir=ko.toString)&&!ln(Se=Ne(Ir,ko)))return Se;throw jn("Can't convert object to primitive value")}(ko,dr)},br=un,Ti=function(ko){var dr=Rr(ko,"string");return br(dr)?dr:dr+""},ri=Ce,mo=u.document,Ii=ri(mo)&&ri(mo.createElement),yo=function(ko){return Ii?mo.createElement(ko):{}},Gs=yo,fi=!_&&!s(function(){return 7!=Object.defineProperty(Gs("div"),"a",{get:function(){return 7}}).a}),_t=k,Zn=w,qo=E,Cr=ne,kr=Ti,xs=Bi,Us=fi,Ts=Object.getOwnPropertyDescriptor;d.f=_?Ts:function(dr,Ir){if(dr=Cr(dr),Ir=kr(Ir),Us)try{return Ts(dr,Ir)}catch{}if(xs(dr,Ir))return qo(!_t(Zn.f,dr,Ir),dr[Ir])};var Ss={},Ar=_&&s(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),qr=Ce,js=u.String,Ds=u.TypeError,Zr=function(ko){if(qr(ko))return ko;throw Ds(js(ko)+" is not an object")},Js=fi,ll=Zr,Za=Ti,sl=u.TypeError,Jt=Object.defineProperty,Tt=Object.getOwnPropertyDescriptor,ht="enumerable",yn="configurable",vi="writable";Ss.f=_?Ar?function(dr,Ir,Se){if(ll(dr),Ir=Za(Ir),ll(Se),"function"==typeof dr&&"prototype"===Ir&&"value"in Se&&vi in Se&&!Se[vi]){var nt=Tt(dr,Ir);nt&&nt[vi]&&(dr[Ir]=Se.value,Se={configurable:yn in Se?Se[yn]:nt[yn],enumerable:ht in Se?Se[ht]:nt[ht],writable:!1})}return Jt(dr,Ir,Se)}:Jt:function(dr,Ir,Se){if(ll(dr),Ir=Za(Ir),ll(Se),Js)try{return Jt(dr,Ir,Se)}catch{}if("get"in Se||"set"in Se)throw sl("Accessors not supported");return"value"in Se&&(dr[Ir]=Se.value),dr};var co=Ss,sr=E,yr=_?function(ko,dr,Ir){return co.f(ko,dr,sr(1,Ir))}:function(ko,dr,Ir){return ko[dr]=Ir,ko},Ur={exports:{}},gs=_e,Pr=Ei,ys=P(Function.toString);gs(Pr.inspectSource)||(Pr.inspectSource=function(ko){return ys(ko)});var Ot,en,cn,da=Pr.inspectSource,al=da,ur=u.WeakMap,La=_e(ur)&&/native code/.test(al(ur)),Ls=Nr,vn=(0,go.exports)("keys"),Xe=function(ko){return vn[ko]||(vn[ko]=Ls(ko))},Ke={},it=P,Dt=Ce,Hn=yr,Ui=Bi,Sn=Xe,Vn=Ke,Dn="Object already initialized",kn=u.TypeError;if(La||Ei.state){var Nt=Ei.state||(Ei.state=new(0,u.WeakMap)),an=it(Nt.get),$e=it(Nt.has),Je=it(Nt.set);Ot=function(ko,dr){if($e(Nt,ko))throw new kn(Dn);return dr.facade=ko,Je(Nt,ko,dr),dr},en=function(ko){return an(Nt,ko)||{}},cn=function(ko){return $e(Nt,ko)}}else{var Ve=Sn("state");Vn[Ve]=!0,Ot=function(ko,dr){if(Ui(ko,Ve))throw new kn(Dn);return dr.facade=ko,Hn(ko,Ve,dr),dr},en=function(ko){return Ui(ko,Ve)?ko[Ve]:{}},cn=function(ko){return Ui(ko,Ve)}}var Ge={set:Ot,get:en,has:cn,enforce:function(ko){return cn(ko)?en(ko):Ot(ko,{})},getterFor:function(ko){return function(dr){var Ir;if(!Dt(dr)||(Ir=en(dr)).type!==ko)throw kn("Incompatible receiver, "+ko+" required");return Ir}}},Be=_,Rt=Function.prototype,Pt=Be&&Object.getOwnPropertyDescriptor,$t=Bi(Rt,"name"),Nn=$t&&(!Be||Be&&Pt(Rt,"name").configurable),He=u,Kt=_e,On=Bi,Fi=yr,Ci=pn,xi=da,Vt=Nn,qt=Ge.get,bn=Ge.enforce,ii=String(String).split("String");(Ur.exports=function(ko,dr,Ir,Se){var Er,nt=!!Se&&!!Se.unsafe,Un=!!Se&&!!Se.enumerable,so=!!Se&&!!Se.noTargetGet,Vo=Se&&void 0!==Se.name?Se.name:dr;Kt(Ir)&&("Symbol("===String(Vo).slice(0,7)&&(Vo="["+String(Vo).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!On(Ir,"name")||Vt&&Ir.name!==Vo)&&Fi(Ir,"name",Vo),(Er=bn(Ir)).source||(Er.source=ii.join("string"==typeof Vo?Vo:""))),ko!==He?(nt?!so&&ko[dr]&&(Un=!0):delete ko[dr],Un?ko[dr]=Ir:Fi(ko,dr,Ir)):Un?ko[dr]=Ir:Ci(dr,Ir)})(Function.prototype,"toString",function(){return Kt(this)&&qt(this).source||xi(this)});var Vi={},Jn=Math.ceil,zt=Math.floor,mn=function(ko){var dr=+ko;return dr!=dr||0===dr?0:(dr>0?zt:Jn)(dr)},Qn=mn,ci=Math.max,Oi=Math.min,Pn=mn,qn=Math.min,Ni=function(ko){return ko>0?qn(Pn(ko),9007199254740991):0},Ue=Ni,Ye=function(ko){return Ue(ko.length)},Me=ne,lt=Ye,yt=function(ko){return function(dr,Ir,Se){var Vo,nt=Me(dr),Un=lt(nt),so=function(ko,dr){var Ir=Qn(ko);return Ir<0?ci(Ir+dr,0):Oi(Ir,dr)}(Se,Un);if(ko&&Ir!=Ir){for(;Un>so;)if((Vo=nt[so++])!=Vo)return!0}else for(;Un>so;so++)if((ko||so in nt)&&nt[so]===Ir)return ko||so||0;return!ko&&-1}},on={includes:yt(!0),indexOf:yt(!1)},Kn=Bi,ho=ne,po=on.indexOf,$i=Ke,ro=P([].push),wo=function(ko,dr){var Un,Ir=ho(ko),Se=0,nt=[];for(Un in Ir)!Kn($i,Un)&&Kn(Ir,Un)&&ro(nt,Un);for(;dr.length>Se;)Kn(Ir,Un=dr[Se++])&&(~po(nt,Un)||ro(nt,Un));return nt},io=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Wi=wo,cr=io.concat("length","prototype");Vi.f=Object.getOwnPropertyNames||function(dr){return Wi(dr,cr)};var Fr={};Fr.f=Object.getOwnPropertySymbols;var jr=xe,Ms=Vi,Ca=Fr,ks=Zr,ts=P([].concat),na=jr("Reflect","ownKeys")||function(dr){var Ir=Ms.f(ks(dr)),Se=Ca.f;return Se?ts(Ir,Se(dr)):Ir},Xs=Bi,_a=na,Ws=d,cs=Ss,Qi=s,vo=_e,pi=/#|\.prototype\./,to=function(ko,dr){var Ir=Sr[Ro(ko)];return Ir==Os||Ir!=rs&&(vo(dr)?Qi(dr):!!dr)},Ro=to.normalize=function(ko){return String(ko).replace(pi,".").toLowerCase()},Sr=to.data={},rs=to.NATIVE="N",Os=to.POLYFILL="P",Ys=to,la=u,Da=d.f,Ka=yr,nl=Ur.exports,il=pn,xl=function(ko,dr,Ir){for(var Se=_a(dr),nt=cs.f,Un=Ws.f,so=0;so<Se.length;so++){var Vo=Se[so];!Xs(ko,Vo)&&(!Ir||!Xs(Ir,Vo))&&nt(ko,Vo,Un(dr,Vo))}},eo=Ys,To=function(ko,dr){var so,Vo,Er,Vr,Xr,Ir=ko.target,Se=ko.global,nt=ko.stat;if(so=Se?la:nt?la[Ir]||il(Ir,{}):(la[Ir]||{}).prototype)for(Vo in dr){if(Vr=dr[Vo],Er=ko.noTargetGet?(Xr=Da(so,Vo))&&Xr.value:so[Vo],!eo(Se?Vo:Ir+(nt?".":"#")+Vo,ko.forced)&&void 0!==Er){if(typeof Vr==typeof Er)continue;xl(Vr,Er)}(ko.sham||Er&&Er.sham)&&Ka(Vr,"sham",!0),nl(so,Vo,Vr,ko)}},_s="process"==K(u.process),ia=Ur.exports,wa=_e,_l=u.String,Ya=u.TypeError,rl=P,Nl=Zr,Ct=Object.setPrototypeOf||("__proto__"in{}?function(){var Ir,ko=!1,dr={};try{(Ir=rl(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(dr,[]),ko=dr instanceof Array}catch{}return function(nt,Un){return Nl(nt),function(ko){if("object"==typeof ko||wa(ko))return ko;throw Ya("Can't set "+_l(ko)+" as a prototype")}(Un),ko?Ir(nt,Un):nt.__proto__=Un,nt}}():void 0),rn=Ss.f,We=Bi,ct=ms("toStringTag"),gi=xe,Do=Ss,Or=_,hs=ms("species"),za=Le,cl=u.TypeError,Wl={};Wl[ms("toStringTag")]="z";var Hc=u,Vc="[object z]"===String(Wl),Mu=_e,Tl=K,Id=ms("toStringTag"),vu=Hc.Object,th="Arguments"==Tl(function(){return arguments}()),Jc=Vc?Tl:function(ko){var dr,Ir,Se;return void 0===ko?"Undefined":null===ko?"Null":"string"==typeof(Ir=function(ko,dr){try{return ko[dr]}catch{}}(dr=vu(ko),Id))?Ir:th?Tl(dr):"Object"==(Se=Tl(dr))&&Mu(dr.callee)?"Arguments":Se},nh=P,cd=s,Cd=_e,yu=Jc,nu=da,Zu=function(){},mc=[],xd=xe("Reflect","construct"),fu=/^\s*(?:class|function)\b/,Fl=nh(fu.exec),Jd=!fu.exec(Zu),Jl=function(dr){if(!Cd(dr))return!1;try{return xd(Zu,mc,dr),!0}catch{return!1}},gd=function(dr){if(!Cd(dr))return!1;switch(yu(dr)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Jd||!!Fl(fu,nu(dr))}catch{return!0}};gd.sham=!0;var xa,ha,Aa,vl,dd=!xd||cd(function(){var ko;return Jl(Jl.call)||!Jl(Object)||!Jl(function(){ko=!0})||ko})?gd:Jl,ih=dd,Cu=oi,id=u.TypeError,ud=Zr,od=ms("species"),$d=Function.prototype,dc=$d.apply,$c=$d.call,oc="object"==typeof Reflect&&Reflect.apply||(R?$c.bind(dc):function(){return $c.apply(dc,arguments)}),Rc=Mt,_d=R,rc=P(P.bind),Di=function(ko,dr){return Rc(ko),void 0===dr?ko:_d?rc(ko,dr):function(){return ko.apply(dr,arguments)}},Wo=xe("document","documentElement"),Jr=P([].slice),vs=u.TypeError,qs=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ut),fa=u,ye=oc,bt=Di,be=_e,st=Bi,ei=s,_o=Wo,gr=Jr,ds=yo,zs=qs,Ta=_s,Pe=fa.setImmediate,Tn=fa.clearImmediate,v=fa.process,ue=fa.Dispatch,dt=fa.Function,In=fa.MessageChannel,er=fa.String,Br=0,es={},Ks="onreadystatechange";try{xa=fa.location}catch{}var ml=function(ko){if(st(es,ko)){var dr=es[ko];delete es[ko],dr()}},yl=function(ko){return function(){ml(ko)}},Cc=function(ko){ml(ko.data)},Bc=function(ko){fa.postMessage(er(ko),xa.protocol+"//"+xa.host)};(!Pe||!Tn)&&(Pe=function(dr){!function(ko,dr){if(ko<dr)throw vs("Not enough arguments")}(arguments.length,1);var Ir=be(dr)?dr:dt(dr),Se=gr(arguments,1);return es[++Br]=function(){ye(Ir,void 0,Se)},ha(Br),Br},Tn=function(dr){delete es[dr]},Ta?ha=function(ko){v.nextTick(yl(ko))}:ue&&ue.now?ha=function(ko){ue.now(yl(ko))}:In&&!zs?(vl=(Aa=new In).port2,Aa.port1.onmessage=Cc,ha=bt(vl.postMessage,vl)):fa.addEventListener&&be(fa.postMessage)&&!fa.importScripts&&xa&&"file:"!==xa.protocol&&!ei(Bc)?(ha=Bc,fa.addEventListener("message",Cc,!1)):ha=Ks in ds("script")?function(ko){_o.appendChild(ds("script"))[Ks]=function(){_o.removeChild(this),ml(ko)}}:function(ko){setTimeout(yl(ko),0)});var Iu,Qh,xh,Xh,Sh,pf,Nc,wh,Bl={set:Pe,clear:Tn},xu=u,iu=/ipad|iphone|ipod/i.test(Ut)&&void 0!==xu.Pebble,Lc=/web0s(?!.*chrome)/i.test(Ut),ul=u,Mc=Di,Tf=Bl.set,Ff=qs,hf=iu,Vd=Lc,Fu=_s,Ch=ul.MutationObserver||ul.WebKitMutationObserver,mh=ul.document,Sd=ul.process,vd=ul.Promise,hd=(0,d.f)(ul,"queueMicrotask"),ff=hd&&hd.value;ff||(Iu=function(){var ko,dr;for(Fu&&(ko=Sd.domain)&&ko.exit();Qh;){dr=Qh.fn,Qh=Qh.next;try{dr()}catch(Ir){throw Qh?Xh():xh=void 0,Ir}}xh=void 0,ko&&ko.enter()},Ff||Fu||Vd||!Ch||!mh?!hf&&vd&&vd.resolve?((Nc=vd.resolve(void 0)).constructor=vd,wh=Mc(Nc.then,Nc),Xh=function(){wh(Iu)}):Fu?Xh=function(){Sd.nextTick(Iu)}:(Tf=Mc(Tf,ul),Xh=function(){Tf(Iu)}):(Sh=!0,pf=mh.createTextNode(""),new Ch(Iu).observe(pf,{characterData:!0}),Xh=function(){pf.data=Sh=!Sh}));var Eh=ff||function(ko){var dr={fn:ko,next:void 0};xh&&(xh.next=dr),Qh||(Qh=dr,Xh()),xh=dr},oh=u,Nd=function(ko){try{return{error:!1,value:ko()}}catch(dr){return{error:!0,value:dr}}},Pp=function(){this.head=null,this.tail=null};Pp.prototype={add:function(ko){var dr={item:ko,next:null};this.head?this.tail.next=dr:this.head=dr,this.tail=dr},get:function(){var ko=this.head;if(ko)return this.head=ko.next,this.tail===ko&&(this.tail=null),ko.item}};var Ad=Pp,uc=u.Promise,rh="object"==typeof window&&"object"!=typeof Deno,sh=u,wd=uc,Bf=_e,Qd=Ys,Th=da,Hh=rh,Sl=fn,Rn=ms("species"),Uo=!1,je=Bf(sh.PromiseRejectionEvent),Mn=Qd("Promise",function(){var ko=Th(wd),dr=ko!==String(wd);if(!dr&&66===Sl)return!0;if(Sl>=51&&/native code/.test(ko))return!1;var Ir=new wd(function(Un){Un(1)}),Se=function(Un){Un(function(){},function(){})};return(Ir.constructor={})[Rn]=Se,!(Uo=Ir.then(function(){})instanceof Se)||!dr&&Hh&&!je}),Gi={CONSTRUCTOR:Mn,REJECTION_EVENT:je,SUBCLASSING:Uo},nr={},is=Mt,ta=function(ko){var dr,Ir;this.promise=new ko(function(Se,nt){if(void 0!==dr||void 0!==Ir)throw TypeError("Bad Promise constructor");dr=Se,Ir=nt}),this.resolve=is(dr),this.reject=is(Ir)};nr.f=function(ko){return new ta(ko)};var Qp,Ih,Rd,dl=To,$l=_s,fl=u,_c=k,Ol=Ur.exports,fd=Ct,Xd=Mt,gh=_e,Ed=Ce,Dh=function(ko,dr){var Se,Ir=ud(ko).constructor;return void 0===Ir||null==(Se=ud(Ir)[od])?dr:function(ko){if(ih(ko))return ko;throw id(Cu(ko)+" is not a constructor")}(Se)},Vh=Bl.set,Ju=Eh,qa=Nd,qh=Ad,Mh=Ge,Uc=uc,Od=nr,Fd="Promise",qd=Gi.CONSTRUCTOR,Wh=Gi.REJECTION_EVENT,Df=Gi.SUBCLASSING,Au=Mh.getterFor(Fd),ef=Mh.set,Bu=Uc&&Uc.prototype,ru=Uc,mf=Bu,Rp=fl.TypeError,ah=fl.document,Qc=fl.process,kh=Od.f,$p=kh,Mf=!!(ah&&ah.createEvent&&fl.dispatchEvent),gf="unhandledrejection",If=function(ko){var dr;return!(!Ed(ko)||!gh(dr=ko.then))&&dr},eu=function(ko,dr){var Er,Vr,Xr,Ir=dr.value,Se=1==dr.state,nt=Se?ko.ok:ko.fail,Un=ko.resolve,so=ko.reject,Vo=ko.domain;try{nt?(Se||(2===dr.rejection&&tp(dr),dr.rejection=1),!0===nt?Er=Ir:(Vo&&Vo.enter(),Er=nt(Ir),Vo&&(Vo.exit(),Xr=!0)),Er===ko.promise?so(Rp("Promise-chain cycle")):(Vr=If(Er))?_c(Vr,Er,Un,so):Un(Er)):so(Ir)}catch(Rs){Vo&&!Xr&&Vo.exit(),so(Rs)}},lh=function(ko,dr){ko.notified||(ko.notified=!0,Ju(function(){for(var Se,Ir=ko.reactions;Se=Ir.get();)eu(Se,ko);ko.notified=!1,dr&&!ko.rejection&&ch(ko)}))},zf=function(ko,dr,Ir){var Se,nt;Mf?((Se=ah.createEvent("Event")).promise=dr,Se.reason=Ir,Se.initEvent(ko,!1,!0),fl.dispatchEvent(Se)):Se={promise:dr,reason:Ir},!Wh&&(nt=fl["on"+ko])?nt(Se):ko===gf&&function(ko,dr){var Ir=oh.console;Ir&&Ir.error&&(1==arguments.length?Ir.error(ko):Ir.error(ko,dr))}("Unhandled promise rejection",Ir)},ch=function(ko){_c(Vh,fl,function(){var nt,dr=ko.facade,Ir=ko.value;if(Uf(ko)&&(nt=qa(function(){$l?Qc.emit("unhandledRejection",Ir,dr):zf(gf,dr,Ir)}),ko.rejection=$l||Uf(ko)?2:1,nt.error))throw nt.value})},Uf=function(ko){return 1!==ko.rejection&&!ko.parent},tp=function(ko){_c(Vh,fl,function(){var dr=ko.facade;$l?Qc.emit("rejectionHandled",dr):zf("rejectionhandled",dr,ko.value)})},Qu=function(ko,dr,Ir){return function(Se){ko(dr,Se,Ir)}},Yh=function(ko,dr,Ir){ko.done||(ko.done=!0,Ir&&(ko=Ir),ko.value=dr,ko.state=2,lh(ko,!0))},zu=function(ko,dr,Ir){if(!ko.done){ko.done=!0,Ir&&(ko=Ir);try{if(ko.facade===dr)throw Rp("Promise can't be resolved itself");var Se=If(dr);Se?Ju(function(){var nt={done:!1};try{_c(Se,dr,Qu(zu,nt,ko),Qu(Yh,nt,ko))}catch(Un){Yh(nt,Un,ko)}}):(ko.value=dr,ko.state=1,lh(ko,!1))}catch(nt){Yh({done:!1},nt,ko)}}};if(qd&&(ru=function(dr){(function(ko,dr){if(za(dr,ko))return ko;throw cl("Incorrect invocation")})(this,mf),Xd(dr),_c(Qp,this);var Ir=Au(this);try{dr(Qu(zu,Ir),Qu(Yh,Ir))}catch(Se){Yh(Ir,Se)}},(Qp=function(dr){ef(this,{type:Fd,done:!1,notified:!1,parent:!1,reactions:new qh,rejection:!1,state:0,value:void 0})}).prototype=function(ko,dr,Ir){for(var Se in dr)ia(ko,Se,dr[Se],Ir);return ko}(mf=ru.prototype,{then:function(dr,Ir){var Se=Au(this),nt=kh(Dh(this,ru));return Se.parent=!0,nt.ok=!gh(dr)||dr,nt.fail=gh(Ir)&&Ir,nt.domain=$l?Qc.domain:void 0,0==Se.state?Se.reactions.add(nt):Ju(function(){eu(nt,Se)}),nt.promise}}),Ih=function(){var ko=new Qp,dr=Au(ko);this.promise=ko,this.resolve=Qu(zu,dr),this.reject=Qu(Yh,dr)},Od.f=kh=function(ko){return ko===ru||void 0===ko?new Ih(ko):$p(ko)},gh(Uc)&&Bu!==Object.prototype)){Rd=Bu.then,Df||Ol(Bu,"then",function(dr,Ir){var Se=this;return new ru(function(nt,Un){_c(Rd,Se,nt,Un)}).then(dr,Ir)},{unsafe:!0});try{delete Bu.constructor}catch{}fd&&fd(Bu,mf)}dl({global:!0,wrap:!0,forced:qd},{Promise:ru}),function(ko,dr,Ir){ko&&!Ir&&(ko=ko.prototype),ko&&!We(ko,ct)&&rn(ko,ct,{configurable:!0,value:dr})}(ru,Fd,!1),function(ko){var dr=gi(ko);Or&&dr&&!dr[hs]&&(0,Do.f)(dr,hs,{configurable:!0,get:function(){return this}})}(Fd);var dh={},_h=dh,Xp=ms("iterator"),Ou=Array.prototype,Af=Jc,ac=Lt,au=dh,Of=ms("iterator"),Gf=function(ko){if(null!=ko)return ac(ko,Of)||ac(ko,"@@iterator")||au[Af(ko)]},Np=k,Yt=Mt,Ri=Zr,ee=oi,Ze=Gf,Yn=u.TypeError,$r=k,ea=Zr,Fa=Lt,Ql=Di,Pl=k,Zl=Zr,kc=oi,Td=Ye,Wd=Le,tf=Gf,zl=function(ko,dr,Ir){var Se,nt;ea(ko);try{if(!(Se=Fa(ko,"return"))){if("throw"===dr)throw Ir;return Ir}Se=$r(Se,ko)}catch(Un){nt=!0,Se=Un}if("throw"===dr)throw Ir;if(nt)throw Se;return ea(Se),Ir},Uu=u.TypeError,Xc=function(ko,dr){this.stopped=ko,this.result=dr},Tc=Xc.prototype,vh=function(ko,dr,Ir){var Er,Vr,Xr,Rs,sa,ma,Ma,nt=!(!Ir||!Ir.AS_ENTRIES),Un=!(!Ir||!Ir.IS_ITERATOR),so=!(!Ir||!Ir.INTERRUPTED),Vo=Ql(dr,Ir&&Ir.that),Qa=function(El){return Er&&zl(Er,"normal",El),new Xc(!0,El)},Cl=function(El){return nt?(Zl(El),so?Vo(El[0],El[1],Qa):Vo(El[0],El[1])):so?Vo(El,Qa):Vo(El)};if(Un)Er=ko;else{if(!(Vr=tf(ko)))throw Uu(kc(ko)+" is not iterable");if(function(ko){return void 0!==ko&&(_h.Array===ko||Ou[Xp]===ko)}(Vr)){for(Xr=0,Rs=Td(ko);Rs>Xr;Xr++)if((sa=Cl(ko[Xr]))&&Wd(Tc,sa))return sa;return new Xc(!1)}Er=function(ko,dr){var Ir=arguments.length<2?Ze(ko):dr;if(Yt(Ir))return Ri(Np(Ir,ko));throw Yn(ee(ko)+" is not iterable")}(ko,Vr)}for(ma=Er.next;!(Ma=Pl(ma,Er)).done;){try{sa=Cl(Ma.value)}catch(El){zl(Er,"throw",El)}if("object"==typeof sa&&sa&&Wd(Tc,sa))return sa}return new Xc(!1)},nf=ms("iterator"),vf=!1;try{var Hf=0,Vf={next:function(){return{done:!!Hf++}},return:function(){vf=!0}};Vf[nf]=function(){return this},Array.from(Vf,function(){throw 2})}catch{}var Bp=uc,rf=Gi.CONSTRUCTOR||!function(ko,dr){if(!dr&&!vf)return!1;var Ir=!1;try{var Se={};Se[nf]=function(){return{next:function(){return{done:Ir=!0}}}},ko(Se)}catch{}return Ir}(function(ko){Bp.all(ko).then(void 0,function(){})}),bf=k,v_=Mt,Ah=nr,yp=Nd,Ag=vh;To({target:"Promise",stat:!0,forced:rf},{all:function(dr){var Ir=this,Se=Ah.f(Ir),nt=Se.resolve,Un=Se.reject,so=yp(function(){var Vo=v_(Ir.resolve),Er=[],Vr=0,Xr=1;Ag(dr,function(Rs){var sa=Vr++,ma=!1;Xr++,bf(Vo,Ir,Rs).then(function(Ma){ma||(ma=!0,Er[sa]=Ma,--Xr||nt(Er))},Un)}),--Xr||nt(Er)});return so.error&&Un(so.value),Se.promise}});var em=uc,zp=xe,Km=_e,Jm=Ur.exports,tm=em&&em.prototype;if(To({target:"Promise",proto:!0,forced:Gi.CONSTRUCTOR,real:!0},{catch:function(ko){return this.then(void 0,ko)}}),Km(em)){var Oc=zp("Promise").prototype.catch;tm.catch!==Oc&&Jm(tm,"catch",Oc,{unsafe:!0})}var bp=k,Og=Mt,dg=nr,y_=Nd,Am=vh;To({target:"Promise",stat:!0,forced:rf},{race:function(dr){var Ir=this,Se=dg.f(Ir),nt=Se.reject,Un=y_(function(){var so=Og(Ir.resolve);Am(dr,function(Vo){bp(so,Ir,Vo).then(Se.resolve,nt)})});return Un.error&&nt(Un.value),Se.promise}});var Pf=k,Up=nr;To({target:"Promise",stat:!0,forced:Gi.CONSTRUCTOR},{reject:function(dr){var Ir=Up.f(this);return Pf(Ir.reject,void 0,dr),Ir.promise}});var Wf=Zr,nm=Ce,$g=nr,ug=To,hg=Gi.CONSTRUCTOR;xe("Promise"),ug({target:"Promise",stat:!0,forced:hg},{resolve:function(dr){return function(ko,dr){if(Wf(ko),nm(dr)&&dr.constructor===ko)return dr;var Ir=$g.f(ko);return(0,Ir.resolve)(dr),Ir.promise}(this,dr)}});var op=Jc,rp=u.String,Zh=function(ko){if("Symbol"===op(ko))throw TypeError("Cannot convert a Symbol value to a string");return rp(ko)},qc=Zr,Pm=s,mg=u.RegExp,im=Pm(function(){var ko=mg("a","y");return ko.lastIndex=2,null!=ko.exec("abcd")}),yh=im||Pm(function(){return!mg("a","y").sticky}),bm=im||Pm(function(){var ko=mg("^r","gy");return ko.lastIndex=2,null!=ko.exec("str")}),Qg={BROKEN_CARET:bm,MISSED_STICKY:yh,UNSUPPORTED_Y:im},Pg={},Cf=wo,rd=io,Cm=Object.keys||function(dr){return Cf(dr,rd)},Cp=Ss,xp=Zr,om=ne,Xg=Cm;Pg.f=_&&!Ar?Object.defineProperties:function(dr,Ir){xp(dr);for(var Vo,Se=om(Ir),nt=Xg(Ir),Un=nt.length,so=0;Un>so;)Cp.f(dr,Vo=nt[so++],Se[Vo]);return dr};var Lm,sf=Zr,jf=Pg,sp=io,Rf=Ke,Rm=Wo,ap=yo,xf="prototype",Kh=Xe("IE_PROTO"),Tu=function(){},Sf=function(ko){return"<script>"+ko+"<\/script>"},Lf=function(ko){ko.write(Sf("")),ko.close();var dr=ko.parentWindow.Object;return ko=null,dr},wp=function(){try{Lm=new ActiveXObject("htmlfile")}catch{}wp=typeof document<"u"?document.domain&&Lm?Lf(Lm):function(){var Ir,ko=ap("iframe");return ko.style.display="none",Rm.appendChild(ko),ko.src=String("javascript:"),(Ir=ko.contentWindow.document).open(),Ir.write(Sf("document.F=Object")),Ir.close(),Ir.F}():Lf(Lm);for(var ko=sp.length;ko--;)delete wp[xf][sp[ko]];return wp()};Rf[Kh]=!0;var ko,dr,Nm=Object.create||function(dr,Ir){var Se;return null!==dr?(Tu[xf]=sf(dr),Se=new Tu,Tu[xf]=null,Se[Kh]=dr):Se=wp(),void 0===Ir?Se:jf.f(Se,Ir)},sm=u.RegExp,qg=s(function(){var ko=sm(".","s");return!(ko.dotAll&&ko.exec("\n")&&"s"===ko.flags)}),Lg=u.RegExp,am=s(function(){var ko=Lg("(?<a>b)","g");return"b"!==ko.exec("b").groups.a||"bc"!=="b".replace(ko,"$<a>c")}),Gu=k,Hu=P,dp=Zh,Ng=function(){var ko=qc(this),dr="";return ko.hasIndices&&(dr+="d"),ko.global&&(dr+="g"),ko.ignoreCase&&(dr+="i"),ko.multiline&&(dr+="m"),ko.dotAll&&(dr+="s"),ko.unicode&&(dr+="u"),ko.sticky&&(dr+="y"),dr},up=Qg,Fm=Nm,Pu=Ge.get,Yd=qg,gg=am,Yf=(0,go.exports)("native-string-replace",String.prototype.replace),Hp=RegExp.prototype.exec,Vp=Hp,Em=Hu("".charAt),_g=Hu("".indexOf),Fg=Hu("".replace),Wp=Hu("".slice),lm=(dr=/b*/g,Gu(Hp,ko=/a/,"a"),Gu(Hp,dr,"a"),0!==ko.lastIndex||0!==dr.lastIndex),nc=up.BROKEN_CARET,qm=void 0!==/()??/.exec("")[1];(lm||qm||nc||Yd||gg)&&(Vp=function(dr){var so,Vo,Er,Vr,Xr,Rs,sa,Ir=this,Se=Pu(Ir),nt=dp(dr),Un=Se.raw;if(Un)return Un.lastIndex=Ir.lastIndex,so=Gu(Vp,Un,nt),Ir.lastIndex=Un.lastIndex,so;var ma=Se.groups,Ma=nc&&Ir.sticky,Qa=Gu(Ng,Ir),Cl=Ir.source,El=0,sc=nt;if(Ma&&(Qa=Fg(Qa,"y",""),-1===_g(Qa,"g")&&(Qa+="g"),sc=Wp(nt,Ir.lastIndex),Ir.lastIndex>0&&(!Ir.multiline||Ir.multiline&&"\n"!==Em(nt,Ir.lastIndex-1))&&(Cl="(?: "+Cl+")",sc=" "+sc,El++),Vo=new RegExp("^(?:"+Cl+")",Qa)),qm&&(Vo=new RegExp("^"+Cl+"$(?!\\s)",Qa)),lm&&(Er=Ir.lastIndex),Vr=Gu(Hp,Ma?Vo:Ir,sc),Ma?Vr?(Vr.input=Wp(Vr.input,El),Vr[0]=Wp(Vr[0],El),Vr.index=Ir.lastIndex,Ir.lastIndex+=Vr[0].length):Ir.lastIndex=0:lm&&Vr&&(Ir.lastIndex=Ir.global?Vr.index+Vr[0].length:Er),qm&&Vr&&Vr.length>1&&Gu(Yf,Vr[0],Vo,function(){for(Xr=1;Xr<arguments.length-2;Xr++)void 0===arguments[Xr]&&(Vr[Xr]=void 0)}),Vr&&ma)for(Vr.groups=Rs=Fm(null),Xr=0;Xr<ma.length;Xr++)Rs[(sa=ma[Xr])[0]]=Vr[sa[1]];return Vr});var sd=Vp;To({target:"RegExp",proto:!0,forced:/./.exec!==sd},{exec:sd});var Zf=P,x_=Ur.exports,Bd=sd,Ep=s,Zd=ms,S_=yr,eg=Zd("species"),Tm=RegExp.prototype,t_=function(ko,dr,Ir,Se){var nt=Zd(ko),Un=!Ep(function(){var Vr={};return Vr[nt]=function(){return 7},7!=""[ko](Vr)}),so=Un&&!Ep(function(){var Vr=!1,Xr=/a/;return"split"===ko&&((Xr={}).constructor={},Xr.constructor[eg]=function(){return Xr},Xr.flags="",Xr[nt]=/./[nt]),Xr.exec=function(){return Vr=!0,null},Xr[nt](""),!Vr});if(!Un||!so||Ir){var Vo=Zf(/./[nt]),Er=dr(nt,""[ko],function(Vr,Xr,Rs,sa,ma){var Ma=Zf(Vr),Qa=Xr.exec;return Qa===Bd||Qa===Tm.exec?Un&&!ma?{done:!0,value:Vo(Xr,Rs,sa)}:{done:!0,value:Ma(Rs,Xr,sa)}:{done:!1}});x_(String.prototype,ko,Er[0]),x_(Tm,nt,Er[1])}Se&&S_(Tm[nt],"sham",!0)},Tp=P,zm=mn,Dd=Zh,Oh=z,Ph=Tp("".charAt),bd=Tp("".charCodeAt),uh=Tp("".slice),Ac=function(ko){return function(dr,Ir){var so,Vo,Se=Dd(Oh(dr)),nt=zm(Ir),Un=Se.length;return nt<0||nt>=Un?ko?"":void 0:(so=bd(Se,nt))<55296||so>56319||nt+1===Un||(Vo=bd(Se,nt+1))<56320||Vo>57343?ko?Ph(Se,nt):so:ko?uh(Se,nt,nt+2):Vo-56320+(so-55296<<10)+65536}},Kf=(Ac(!1),Ac(!0)),Um=function(ko,dr,Ir){return dr+(Ir?Kf(ko,dr).length:1)},fc=k,Gm=Zr,Rh=_e,hh=K,Dp=sd,Et=u.TypeError,Cn=function(ko,dr){var Ir=ko.exec;if(Rh(Ir)){var Se=fc(Ir,ko,dr);return null!==Se&&Gm(Se),Se}if("RegExp"===hh(ko))return fc(Dp,ko,dr);throw Et("RegExp#exec called on incompatible receiver")},Fe=k,Ln=Zr,So=Ni,Jo=Zh,Hr=z,Es=Lt,Vs=Um,Ra=Cn;t_("match",function(ko,dr,Ir){return[function(nt){var Un=Hr(this),so=null==nt?void 0:Es(nt,ko);return so?Fe(so,nt,Un):new RegExp(nt)[ko](Jo(Un))},function(Se){var nt=Ln(this),Un=Jo(Se),so=Ir(dr,nt,Un);if(so.done)return so.value;if(!nt.global)return Ra(nt,Un);var Vo=nt.unicode;nt.lastIndex=0;for(var Xr,Er=[],Vr=0;null!==(Xr=Ra(nt,Un));){var Rs=Jo(Xr[0]);Er[Vr]=Rs,""===Rs&&(nt.lastIndex=Vs(Un,So(nt.lastIndex),Vo)),Vr++}return 0===Vr?null:Er}]});var Ha=P,Al=jo,kl=Math.floor,gl=Ha("".charAt),wl=Ha("".replace),Pc=Ha("".slice),Rl=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,jc=/\$([$&'`]|\d{1,2})/g,Sc=oc,fh=k,tu=P,pc=t_,wc=s,hp=Zr,dm=_e,Jh=mn,um=Ni,wf=Zh,vg=z,tg=Um,Il=Lt,Kl=function(ko,dr,Ir,Se,nt,Un){var so=Ir+ko.length,Vo=Se.length,Er=jc;return void 0!==nt&&(nt=Al(nt),Er=Rl),wl(Un,Er,function(Vr,Xr){var Rs;switch(gl(Xr,0)){case"$":return"$";case"&":return ko;case"`":return Pc(dr,0,Ir);case"'":return Pc(dr,so);case"<":Rs=nt[Pc(Xr,1,-1)];break;default:var sa=+Xr;if(0===sa)return Vr;if(sa>Vo){var ma=kl(sa/10);return 0===ma?Vr:ma<=Vo?void 0===Se[ma-1]?gl(Xr,1):Se[ma-1]+gl(Xr,1):Vr}Rs=Se[sa-1]}return void 0===Rs?"":Rs})},Xl=Cn,Vu=ms("replace"),Mp=Math.max,Hl=Math.min,fp=tu([].concat),lu=tu([].push),L_=tu("".indexOf),af=tu("".slice),gu=function(ko){return void 0===ko?ko:String(ko)},Ee="$0"==="a".replace(/./,"$0"),at=!!/./[Vu]&&""===/./[Vu]("a","$0"),G=!wc(function(){var ko=/./;return ko.exec=function(){var dr=[];return dr.groups={a:"7"},dr},"7"!=="".replace(ko,"$<a>")});pc("replace",function(ko,dr,Ir){var Se=at?"$":"$0";return[function(Un,so){var Vo=vg(this),Er=null==Un?void 0:Il(Un,Vu);return Er?fh(Er,Un,Vo,so):fh(dr,wf(Vo),Un,so)},function(nt,Un){var so=hp(this),Vo=wf(nt);if("string"==typeof Un&&-1===L_(Un,Se)&&-1===L_(Un,"$<")){var Er=Ir(dr,so,Vo,Un);if(Er.done)return Er.value}var Vr=dm(Un);Vr||(Un=wf(Un));var Xr=so.global;if(Xr){var Rs=so.unicode;so.lastIndex=0}for(var sa=[];;){var ma=Xl(so,Vo);if(null===ma||(lu(sa,ma),!Xr))break;""===wf(ma[0])&&(so.lastIndex=tg(Vo,um(so.lastIndex),Rs))}for(var Qa="",Cl=0,El=0;El<sa.length;El++){for(var sc=wf((ma=sa[El])[0]),Yl=Mp(Hl(Jh(ma.index),Vo.length),0),Zc=[],Kc=1;Kc<ma.length;Kc++)lu(Zc,gu(ma[Kc]));var gp=ma.groups;if(Vr){var Jf=fp([sc],Zc,Yl,Vo);void 0!==gp&&lu(Jf,gp);var Yp=wf(Sc(Un,void 0,Jf))}else Yp=Kl(sc,Vo,Yl,Zc,gp,Un);Yl>=Cl&&(Qa+=af(Vo,Cl,Yl)+Yp,Cl=Yl+sc.length)}return Qa+af(Vo,Cl)}]},!G||!Ee||at);var Ie=Ce,gn=K,zo=ms("match"),ws=u.TypeError,$s=function(ko){if(function(ko){var dr;return Ie(ko)&&(void 0!==(dr=ko[zo])?!!dr:"RegExp"==gn(ko))}(ko))throw ws("The method doesn't accept regular expressions");return ko},ua=ms("match"),Ja=function(ko){var dr=/./;try{"/./"[ko](dr)}catch{try{return dr[ua]=!1,"/./"[ko](dr)}catch{}}return!1},jl=To,zd=P,md=d.f,Xu=Ni,Lh=Zh,qu=$s,lf=z,Wu=Ja,bh=zd("".startsWith),kp=zd("".slice),jp=Math.min,Bg=Wu("startsWith"),zg=!Bg&&!!function(){var ko=md(String.prototype,"startsWith");return ko&&!ko.writable}();jl({target:"String",proto:!0,forced:!zg&&!Bg},{startsWith:function(dr){var Ir=Lh(lf(this));qu(dr);var Se=Xu(jp(arguments.length>1?arguments[1]:void 0,Ir.length)),nt=Lh(dr);return bh?bh(Ir,nt,Se):kp(Ir,Se,Se+nt.length)===nt}});var i_=Nm,Ug=Ss,Hm=ms("unscopables"),Vm=Array.prototype;null==Vm[Hm]&&Ug.f(Vm,Hm,{configurable:!0,value:i_(null)});var j_=on.includes;To({target:"Array",proto:!0},{includes:function(dr){return j_(this,dr,arguments.length>1?arguments[1]:void 0)}}),function(ko){Vm[Hm][ko]=!0}("includes");var o_=To,E_=P,T_=d.f,hm=Ni,Nh=Zh,Gg=$s,Dm=z,r_=Ja,ng=E_("".endsWith),pp=E_("".slice),s_=Math.min,a_=r_("endsWith"),Hg=!a_&&!!function(){var ko=T_(String.prototype,"endsWith");return ko&&!ko.writable}();o_({target:"String",proto:!0,forced:!Hg&&!a_},{endsWith:function(dr){var Ir=Nh(Dm(this));Gg(dr);var Se=arguments.length>1?arguments[1]:void 0,nt=Ir.length,Un=void 0===Se?nt:s_(hm(Se),nt),so=Nh(dr);return ng?ng(Ir,so,Un):pp(Ir,Un-so.length,Un)===so}});const D_=ko=>{const dr=ko.match(/^(https?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);return dr&&{href:ko,protocol:dr[1],host:dr[2],hostname:dr[3],port:dr[4],pathname:dr[5],search:dr[6],hash:dr[7]}},Vg=ko=>function yg(ko,dr,Ir,Se){return new(Ir||(Ir=Promise))(function(Un,so){function Vo(Xr){try{Vr(Se.next(Xr))}catch(Rs){so(Rs)}}function Er(Xr){try{Vr(Se.throw(Xr))}catch(Rs){so(Rs)}}function Vr(Xr){Xr.done?Un(Xr.value):function nt(Un){return Un instanceof Ir?Un:new Ir(function(so){so(Un)})}(Xr.value).then(Vo,Er)}Vr((Se=Se.apply(ko,dr||[])).next())})}(void 0,void 0,void 0,function*(){mammoth||console.error("Please install mammoth and make sure mammoth.browser.min.js is loaded.");const dr=yield(ko=>new Promise((dr,Ir)=>{try{const Se=new XMLHttpRequest;Se.open("GET",ko,!0),Se.responseType="blob",Se.onload=()=>{const nt=new FileReader;nt.readAsArrayBuffer(Se.response),nt.onloadend=()=>{dr(nt.result)}},Se.send()}catch{Ir(`error while retrieving file ${ko}.`)}}))(ko);return(yield mammoth.convertToHtml({arrayBuffer:dr})).value}),mp=ko=>{var dr;let Ir=!1;try{Ir=Ip()?!(null!==(dr=ko?.contentWindow)&&void 0!==dr&&dr.document):!ko?.contentDocument}catch{}return Ir},Ip=()=>/MSIE (\d+\.\d+);/.test(navigator.userAgent)||navigator.userAgent.indexOf("Trident/")>-1,Fh=(ko,dr="google",Ir="",Se="")=>{switch(dr){case"google":Se="https://docs.google.com/gview?url=%URL%&embedded=true";break;case"office":Se="https://view.officeapps.live.com/op/embed.aspx?src=%URL%";break;case"pdf":Se=""}const nt="google"===dr||"office"===dr||"url"===dr,Un=ko?.indexOf("/")?encodeURIComponent(ko):ko;let so=Se?Se.replace("%URL%",Un):ko;return Ir&&nt&&"url"!==dr&&(so=`${so}${Ir.startsWith("&")?"":"&"}${Ir}`),{url:so,externalViewer:nt}};var Wg=i(96814);const u_=["iframe"];function Ap(ko,dr){if(1&ko&&n._UZ(0,"div",3),2&ko){const Ir=n.oxw(2);n.Q6J("innerHtml",Ir.docHtml,n.oJD)}}function M_(ko,dr){if(1&ko&&(n.TgZ(0,"object",4)(1,"p"),n._uU(2," Your browser does not support PDFs. "),n.TgZ(3,"a",5),n._uU(4,"Download the PDF"),n.qZA(),n._uU(5,". "),n.qZA()()),2&ko){const Ir=n.oxw(2);n.Q6J("data",Ir.fullUrl,n.uOi),n.xp6(3),n.Q6J("href",Ir.fullUrl,n.LSH)}}function ig(ko,dr){if(1&ko&&(n.ynx(0),n.YNc(1,Ap,1,1,"div",1),n.YNc(2,M_,6,2,"object",2),n.BQk()),2&ko){const Ir=n.oxw();n.xp6(1),n.Q6J("ngIf","pdf"!==Ir.configuredViewer),n.xp6(1),n.Q6J("ngIf",Ir.fullUrl&&"pdf"===Ir.configuredViewer)}}function h_(ko,dr){if(1&ko){const Ir=n.EpF();n.TgZ(0,"iframe",8,9),n.NdJ("load",function(){n.CHM(Ir);const nt=n.oxw(2);return n.KtG(nt.iframeLoaded())}),n.qZA()}if(2&ko){const Ir=n.oxw(2);n.Q6J("src",Ir.fullUrl,n.uOi)}}function f_(ko,dr){if(1&ko){const Ir=n.EpF();n.TgZ(0,"iframe",12,9),n.NdJ("load",function(){n.CHM(Ir);const nt=n.oxw(3);return n.KtG(nt.iframeLoaded())}),n.qZA()}if(2&ko){const Ir=n.oxw(3);n.Q6J("src",Ir.fullUrl,n.uOi)}}function Mm(ko,dr){if(1&ko&&(n.TgZ(0,"div",10),n._UZ(1,"div"),n.YNc(2,f_,2,1,"iframe",11),n.qZA()),2&ko){const Ir=n.oxw(2);n.xp6(1),n.Udp("background-color","popout-hide"===Ir.disableContent?"#fff":"transparent"),n.ekj("overlay-full","all"===Ir.disableContent)("overlay-popout-google","google"===Ir.configuredViewer&&("popout"===Ir.disableContent||"popout-hide"===Ir.disableContent))("overlay-popout-office","office"===Ir.configuredViewer&&("popout"===Ir.disableContent||"popout-hide"===Ir.disableContent)),n.xp6(1),n.Q6J("ngIf",Ir.fullUrl)}}function Y_(ko,dr){if(1&ko&&(n.ynx(0),n.YNc(1,h_,2,1,"iframe",6),n.YNc(2,Mm,3,9,"div",7),n.BQk()),2&ko){const Ir=n.oxw();n.xp6(1),n.Q6J("ngIf",Ir.fullUrl&&"none"===Ir.disableContent),n.xp6(1),n.Q6J("ngIf","none"!==Ir.disableContent)}}let k_=(()=>{class ko{constructor(Ir,Se){this.domSanitizer=Ir,this.ngZone=Se,this.loaded=new n.vpe,this.url="",this.queryParams="",this.viewerUrl="",this.googleCheckInterval=3e3,this.googleMaxChecks=5,this.disableContent="none",this.googleCheckContentLoaded=!0,this.viewer="google",this.overrideLocalhost="",this.iframes=void 0,this.fullUrl=void 0,this.externalViewer=!1,this.docHtml="",this.configuredViewer="google",this.checkIFrameSubscription=void 0,this.shouldCheckIframe=!1}ngAfterViewInit(){if(this.shouldCheckIframe){const Ir=this.iframes?.first?.nativeElement;Ir&&(this.shouldCheckIframe=!1,this.reloadIframe(Ir))}}ngOnDestroy(){this.checkIFrameSubscription&&this.checkIFrameSubscription.unsubscribe()}ngOnChanges(Ir){var Se=this;return(0,e.Z)(function*(){if(Ir&&Ir.viewer&&(Ir.viewer.isFirstChange||Ir.viewer.currentValue!==Ir.viewer.previousValue)&&("google"!==Se.viewer&&"office"!==Se.viewer&&"mammoth"!==Se.viewer&&"pdf"!==Se.viewer&&"url"!==Se.viewer&&console.error(`Unsupported viewer: '${Se.viewer}'. Supported viewers: google, office, mammoth and pdf`),Se.configuredViewer=Se.viewer),Ir.url&&Ir.url.currentValue!==Ir.url.previousValue||Ir.viewer&&Ir.viewer.currentValue!==Ir.viewer.previousValue||Ir.viewerUrl&&Ir.viewerUrl.currentValue!==Ir.viewerUrl.previousValue){let nt=Fh(Se.url,Se.configuredViewer,Se.queryParams,Se.viewerUrl);if(Se.externalViewer=nt.externalViewer,nt.externalViewer&&Se.overrideLocalhost&&(ko=>{const dr=D_(ko),Ir=dr?.hostname||"";return["localhost","127.0.0.1","","::1"].includes(Ir)||Ir.startsWith("192.168.")||Ir.startsWith("10.0.")||Ir.endsWith(".local")})(Se.url)){const Un=((ko,dr)=>{const Ir=D_(ko),Se=D_(dr);return Ir&&Se?ko.replace(Ir.port?`${Ir.hostname}:${Ir.port}`:Ir.hostname,Se.port?`${Se.hostname}:${Se.port}`:Se.hostname):ko})(Se.url,Se.overrideLocalhost);nt=Fh(Un,Se.configuredViewer,Se.queryParams,Se.viewerUrl)}Se.docHtml="",Se.checkIFrameSubscription&&Se.checkIFrameSubscription.unsubscribe(),Se.url?nt.externalViewer||"url"===Se.configuredViewer||"pdf"===Se.configuredViewer?(Se.fullUrl=Se.domSanitizer.bypassSecurityTrustResourceUrl(nt.url),"google"===Se.configuredViewer&&Se.googleCheckContentLoaded&&Se.ngZone.runOutsideAngular(()=>{const Un=Se.iframes?.first?.nativeElement;Un?Se.reloadIframe(Un):Se.shouldCheckIframe=!0})):"mammoth"===Se.configuredViewer&&(Se.docHtml=yield Vg(Se.url)):Se.fullUrl=void 0}})()}reloadIframe(Ir){this.checkIFrameSubscription=(()=>{let ko=null,dr=0;return{subscribe:(Ir,Se=3e3,nt=5)=>{if(!mp(Ir))return ko=setInterval(()=>{dr++,dr>=nt&&clearInterval(ko),(ko=>{if(ko){const dr=ko.src;ko.src="about:blank",setTimeout(()=>{ko&&(ko.src=dr)},100)}})(Ir)},Se),ko;ko&&clearInterval(ko)},unsubscribe:()=>{ko&&clearInterval(ko)}}})(),this.checkIFrameSubscription.subscribe(Ir,this.googleCheckInterval,this.googleMaxChecks)}iframeLoaded(){const Ir=this.iframes?.first?.nativeElement;Ir&&mp(Ir)&&(this.loaded.emit(void 0),this.checkIFrameSubscription&&this.checkIFrameSubscription.unsubscribe())}}return ko.\u0275fac=function(Ir){return new(Ir||ko)(n.Y36(o.H7),n.Y36(n.R0b))},ko.\u0275cmp=n.Xpm({type:ko,selectors:[["ngx-doc-viewer"]],viewQuery:function(Ir,Se){if(1&Ir&&n.Gf(u_,5),2&Ir){let nt;n.iGM(nt=n.CRH())&&(Se.iframes=nt)}},inputs:{url:"url",queryParams:"queryParams",viewerUrl:"viewerUrl",googleCheckInterval:"googleCheckInterval",googleMaxChecks:"googleMaxChecks",disableContent:"disableContent",googleCheckContentLoaded:"googleCheckContentLoaded",viewer:"viewer",overrideLocalhost:"overrideLocalhost"},outputs:{loaded:"loaded"},features:[n.TTD],decls:2,vars:2,consts:[[4,"ngIf"],[3,"innerHtml",4,"ngIf"],["type","application/pdf","width","100%","height","100%",3,"data",4,"ngIf"],[3,"innerHtml"],["type","application/pdf","width","100%","height","100%",3,"data"],[3,"href"],["id","iframe-doc-viewer","frameBorder","0",3,"src","load",4,"ngIf"],["class","container",4,"ngIf"],["id","iframe-doc-viewer","frameBorder","0",3,"src","load"],["iframe",""],[1,"container"],["id","iframe","frameBorder","0",3,"src","load",4,"ngIf"],["id","iframe","frameBorder","0",3,"src","load"]],template:function(Ir,Se){1&Ir&&(n.YNc(0,ig,3,2,"ng-container",0),n.YNc(1,Y_,3,2,"ng-container",0)),2&Ir&&(n.Q6J("ngIf",!Se.externalViewer),n.xp6(1),n.Q6J("ngIf",Se.externalViewer))},dependencies:[Wg.O5],styles:["[_nghost-%COMP%]{display:block}.container[_ngcontent-%COMP%]{width:100%;height:100%;position:relative}.overlay-popout-google[_ngcontent-%COMP%]{width:40px;height:40px;right:26px;top:11.5px;position:absolute;z-index:1000}.overlay-popout-office[_ngcontent-%COMP%]{width:100px;height:20px;right:0;bottom:0;position:absolute;z-index:1000}.overlay-full[_ngcontent-%COMP%]{width:100%;height:100%;right:0;top:0;position:absolute;z-index:1000}iframe[_ngcontent-%COMP%]{width:100%;height:100%}"]}),ko})(),F_=(()=>{class ko{}return ko.\u0275fac=function(Ir){return new(Ir||ko)},ko.\u0275mod=n.oAB({type:ko}),ko.\u0275inj=n.cJS({imports:[Wg.ez]}),ko})()},90247:(he,y,i)=>{"use strict";i.d(y,{Rq:()=>Te,Ry:()=>ge});var e=i(65879),n=i(22096),o=i(92438),a=i(21631),l=i(37398),u=i(99397),d=i(32181),s=i(18753);function _(De,fe,xe,Oe){const Le=window&&!!window.document&&window.document.documentElement;let Gt=Le&&fe?window:xe;if(De&&(Gt=De&&Le&&"string"==typeof De?function C(De,fe,xe){return(xe?window.document:fe).querySelector(De)}(De,xe.nativeElement,Oe):De,!Gt))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return Gt}function R(De){return De&&!De.firstChange}const f={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},k={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"};class w{constructor(fe=!0){this.vertical=fe,this.propsMap=fe?f:k}clientHeightKey(){return this.propsMap.clientHeight}offsetHeightKey(){return this.propsMap.offsetHeight}scrollHeightKey(){return this.propsMap.scrollHeight}pageYOffsetKey(){return this.propsMap.pageYOffset}offsetTopKey(){return this.propsMap.offsetTop}scrollTopKey(){return this.propsMap.scrollTop}topKey(){return this.propsMap.top}}function E(De){return["Window","global"].some(xe=>Object.prototype.toString.call(De).includes(xe))}function b(De,fe){return De?fe.document.documentElement:null}function I(De,fe){const xe=function P({container:De,isWindow:fe,axis:xe}){const{offsetHeightKey:Oe,clientHeightKey:Le}=F(xe);return O(De,fe,Oe,Le)}(fe);return fe.isWindow?function L(De,fe,xe){const{axis:Oe,container:Le,isWindow:Gt}=xe,{offsetHeightKey:Ut,clientHeightKey:An}=F(Oe),$n=De+V(b(Gt,Le),Oe,Gt),xn=O(fe.nativeElement,Gt,Ut,An),mt=function U(De,fe,xe){const Oe=fe.topKey();if(De.getBoundingClientRect)return De.getBoundingClientRect()[Oe]+V(De,fe,xe)}(fe.nativeElement,Oe,Gt)+xn;return{height:De,scrolled:$n,totalToScroll:mt,isWindow:Gt}}(xe,De,fe):function D(De,fe,xe){const{axis:Oe,container:Le}=xe;return{height:De,scrolled:Le[Oe.scrollTopKey()],totalToScroll:Le[Oe.scrollHeightKey()],isWindow:!1}}(xe,0,fe)}function F(De){return{offsetHeightKey:De.offsetHeightKey(),clientHeightKey:De.clientHeightKey()}}function O(De,fe,xe,Oe){if(isNaN(De[xe])){const Le=b(fe,De);return Le?Le[Oe]:0}return De[xe]}function V(De,fe,xe){const Oe=fe.pageYOffsetKey(),Le=fe.scrollTopKey(),Gt=fe.offsetTopKey();return isNaN(window.pageYOffset)?b(xe,De)[Le]:De.ownerDocument?De.ownerDocument.defaultView[Oe]:De[Gt]}function K(De,fe={down:0,up:0},xe){let Oe,Le;if(De.totalToScroll<=0)return!1;const Gt=De.isWindow?De.scrolled:De.height+De.scrolled;return xe?(Oe=(De.totalToScroll-Gt)/De.totalToScroll,Le=(fe?.down?fe.down:0)/10):(Oe=De.scrolled/(De.scrolled+(De.totalToScroll-Gt)),Le=(fe?.up?fe.up:0)/10),Oe<=Le}class H{constructor({totalToScroll:fe}){this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},this.totalToScroll=fe}updateScrollPosition(fe){return this.lastScrollPosition=fe}updateTotalToScroll(fe){this.lastTotalToScroll!==fe&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=fe)}updateScroll(fe,xe){this.updateScrollPosition(fe),this.updateTotalToScroll(xe)}updateTriggeredFlag(fe,xe){xe?this.triggered.down=fe:this.triggered.up=fe}isTriggeredScroll(fe,xe){return xe?this.triggered.down===fe:this.triggered.up===fe}}const ne={DOWN:"[NGX_ISE] DOWN",UP:"[NGX_ISE] UP"};function _e(De){const{scrollDown:fe,stats:{scrolled:xe}}=De;return{type:fe?ne.DOWN:ne.UP,payload:{currentScrollPosition:xe}}}let ge=(()=>{class De{constructor(xe,Oe){this.element=xe,this.zone=Oe,this.scrolled=new e.vpe,this.scrolledUp=new e.vpe,this.infiniteScrollDistance=2,this.infiniteScrollUpDistance=1.5,this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollContainer=null,this.scrollWindow=!0,this.immediateCheck=!1,this.horizontal=!1,this.alwaysCallback=!1,this.fromRoot=!1}ngAfterViewInit(){this.infiniteScrollDisabled||this.setup()}ngOnChanges({infiniteScrollContainer:xe,infiniteScrollDisabled:Oe,infiniteScrollDistance:Le}){const Gt=R(xe),Ut=R(Oe),An=R(Le),$n=!Ut&&!this.infiniteScrollDisabled||Ut&&!Oe.currentValue||An;(Gt||Ut||An)&&(this.destroyScroller(),$n&&this.setup())}setup(){(function x(){return typeof window<"u"})()&&this.zone.runOutsideAngular(()=>{this.disposeScroller=function z(De){const{scrollContainer:fe,scrollWindow:xe,element:Oe,fromRoot:Le}=De,Gt=function M({windowElement:De,axis:fe}){return function p(De,fe){const xe=De.isWindow||fe&&!fe.nativeElement?fe:fe.nativeElement;return{...De,container:xe}}({axis:fe,isWindow:E(De)},De)}({axis:new w(!De.horizontal),windowElement:_(fe,xe,Oe,Le)}),Ut=new H({totalToScroll:I(Oe,Gt)}),$n={up:De.upDistance,down:De.downDistance};return function q(De){let fe=(0,o.R)(De.container,"scroll");return De.throttle&&(fe=fe.pipe((0,s.p)(De.throttle,void 0,{leading:!0,trailing:!0}))),fe}({container:Gt.container,throttle:De.throttle}).pipe((0,a.z)(()=>(0,n.of)(I(Oe,Gt))),(0,l.U)(xn=>function se(De,fe,xe){const{scrollDown:Oe,fire:Le}=function me(De,fe,xe){const Oe=function X(De,fe){return De<fe.scrolled}(De,fe);return{fire:K(fe,xe,Oe),scrollDown:Oe}}(De,fe,xe);return{scrollDown:Oe,fire:Le,stats:fe}}(Ut.lastScrollPosition,xn,$n)),(0,u.b)(({stats:xn})=>Ut.updateScroll(xn.scrolled,xn.totalToScroll)),(0,d.h)(({fire:xn,scrollDown:mt,stats:{totalToScroll:ut}})=>function g(De,fe,xe){return!!(De&&fe||!xe&&fe)}(De.alwaysCallback,xn,Ut.isTriggeredScroll(ut,mt))),(0,u.b)(({scrollDown:xn,stats:{totalToScroll:mt}})=>{Ut.updateTriggeredFlag(mt,xn)}),(0,l.U)(_e))}({fromRoot:this.fromRoot,alwaysCallback:this.alwaysCallback,disable:this.infiniteScrollDisabled,downDistance:this.infiniteScrollDistance,element:this.element,horizontal:this.horizontal,scrollContainer:this.infiniteScrollContainer,scrollWindow:this.scrollWindow,throttle:this.infiniteScrollThrottle,upDistance:this.infiniteScrollUpDistance}).subscribe(xe=>this.handleOnScroll(xe))})}handleOnScroll({type:xe,payload:Oe}){const Le=xe===ne.DOWN?this.scrolled:this.scrolledUp;(function Ce(De){return De.observed??De.observers.length>0})(Le)&&this.zone.run(()=>Le.emit(Oe))}ngOnDestroy(){this.destroyScroller()}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}static#e=this.\u0275fac=function(Oe){return new(Oe||De)(e.Y36(e.SBq),e.Y36(e.R0b))};static#t=this.\u0275dir=e.lG2({type:De,selectors:[["","infiniteScroll",""],["","infinite-scroll",""],["","data-infinite-scroll",""]],inputs:{infiniteScrollDistance:"infiniteScrollDistance",infiniteScrollUpDistance:"infiniteScrollUpDistance",infiniteScrollThrottle:"infiniteScrollThrottle",infiniteScrollDisabled:"infiniteScrollDisabled",infiniteScrollContainer:"infiniteScrollContainer",scrollWindow:"scrollWindow",immediateCheck:"immediateCheck",horizontal:"horizontal",alwaysCallback:"alwaysCallback",fromRoot:"fromRoot"},outputs:{scrolled:"scrolled",scrolledUp:"scrolledUp"},features:[e.TTD]})}return De})(),Te=(()=>{class De{static#e=this.\u0275fac=function(Oe){return new(Oe||De)};static#t=this.\u0275mod=e.oAB({type:De});static#n=this.\u0275inj=e.cJS({})}return De})()},15861:(he,y,i)=>{"use strict";function e(o,a,l,u,d,s,A){try{var _=o[s](A),C=_.value}catch(R){return void l(R)}_.done?a(C):Promise.resolve(C).then(u,d)}function n(o){return function(){var a=this,l=arguments;return new Promise(function(u,d){var s=o.apply(a,l);function A(C){e(s,u,d,A,_,"next",C)}function _(C){e(s,u,d,A,_,"throw",C)}A(void 0)})}}i.d(y,{Z:()=>n})},97582:(he,y,i)=>{"use strict";function a(de,te){var j={};for(var H in de)Object.prototype.hasOwnProperty.call(de,H)&&te.indexOf(H)<0&&(j[H]=de[H]);if(null!=de&&"function"==typeof Object.getOwnPropertySymbols){var z=0;for(H=Object.getOwnPropertySymbols(de);z<H.length;z++)te.indexOf(H[z])<0&&Object.prototype.propertyIsEnumerable.call(de,H[z])&&(j[H[z]]=de[H[z]])}return j}function l(de,te,j,H){var se,z=arguments.length,q=z<3?te:null===H?H=Object.getOwnPropertyDescriptor(te,j):H;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)q=Reflect.decorate(de,te,j,H);else for(var ne=de.length-1;ne>=0;ne--)(se=de[ne])&&(q=(z<3?se(q):z>3?se(te,j,q):se(te,j))||q);return z>3&&q&&Object.defineProperty(te,j,q),q}function R(de,te,j,H){return new(j||(j=Promise))(function(q,se){function ne(Ce){try{ge(H.next(Ce))}catch(Te){se(Te)}}function _e(Ce){try{ge(H.throw(Ce))}catch(Te){se(Te)}}function ge(Ce){Ce.done?q(Ce.value):function z(q){return q instanceof j?q:new j(function(se){se(q)})}(Ce.value).then(ne,_e)}ge((H=H.apply(de,te||[])).next())})}function b(de){return this instanceof b?(this.v=de,this):new b(de)}function I(de,te,j){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var z,H=j.apply(de,te||[]),q=[];return z={},ne("next"),ne("throw"),ne("return",function se(fe){return function(xe){return Promise.resolve(xe).then(fe,Te)}}),z[Symbol.asyncIterator]=function(){return this},z;function ne(fe,xe){H[fe]&&(z[fe]=function(Oe){return new Promise(function(Le,Gt){q.push([fe,Oe,Le,Gt])>1||_e(fe,Oe)})},xe&&(z[fe]=xe(z[fe])))}function _e(fe,xe){try{!function ge(fe){fe.value instanceof b?Promise.resolve(fe.value.v).then(Ce,Te):De(q[0][2],fe)}(H[fe](xe))}catch(Oe){De(q[0][3],Oe)}}function Ce(fe){_e("next",fe)}function Te(fe){_e("throw",fe)}function De(fe,xe){fe(xe),q.shift(),q.length&&_e(q[0][0],q[0][1])}}function D(de){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var j,te=de[Symbol.asyncIterator];return te?te.call(de):(de=function w(de){var te="function"==typeof Symbol&&Symbol.iterator,j=te&&de[te],H=0;if(j)return j.call(de);if(de&&"number"==typeof de.length)return{next:function(){return de&&H>=de.length&&(de=void 0),{value:de&&de[H++],done:!de}}};throw new TypeError(te?"Object is not iterable.":"Symbol.iterator is not defined.")}(de),j={},H("next"),H("throw"),H("return"),j[Symbol.asyncIterator]=function(){return this},j);function H(q){j[q]=de[q]&&function(se){return new Promise(function(ne,_e){!function z(q,se,ne,_e){Promise.resolve(_e).then(function(ge){q({value:ge,done:ne})},se)}(ne,_e,(se=de[q](se)).done,se.value)})}}}i.d(y,{FC:()=>I,KL:()=>D,_T:()=>a,gn:()=>l,mG:()=>R,qq:()=>b}),"function"==typeof SuppressedError&&SuppressedError},63292:he=>{"use strict";he.exports=JSON.parse('{"sSN":"SIN","sSNMasking":"000-000-000","sSNMaskValue":"000-000-000","sSNMaskValue4":"0-000","sSNMaskValue6":"000-000","prescreeningText":"Canada","zipCode":"Postal Code","zipCodeMaskValue":"B0B 0B0","state":"Province","resourceOfficeFilterZipCode":"officeFilterPostalCode","phoneMasking":"(000)-000-0000","phoneMaskValue":"(000)-000-0000","mobileMaskValue":"(000)-000-0000","fEIN":"FEIN","fEINMaskValue":"000000000","last4DigitsOfSSN":"last4DigitsOfSIN","last6DigitsOfSSN":"last6DigitsOfSIN","resourceZipCode":"postalCode","resourceState":"province","resourceSSN":"sIN"}')},76166:he=>{"use strict";he.exports=JSON.parse('{"sSN":"SSN","sSNMasking":"000-00-0000","sSNMaskValue":"000-00-0000","sSNMaskValue4":"0000","sSNMaskValue6":"00-0000","prescreeningText":"The United States","zipCode":"ZIP Code","zipCodeMaskValue":"00000","state":"State","resourceOfficeFilterZipCode":"officeFilterZIPCode","phoneMasking":"(000) 000-0000","phoneMaskValue":"(000) 000-0000","mobileMaskValue":"(000) 000-0000","fEIN":"FEIN","fEINMaskValue":"000000000","last4DigitsOfSSN":"last4DigitsOfSSN","last6DigitsOfSSN":"last6DigitsOfSSN","resourceZipCode":"zIPCode","resourceState":"state","resourceSSN":"sSN"}')},88834:he=>{"use strict";he.exports=JSON.parse('{"address":{"address1":{"required":true,"type":"string","maxLength":50},"address2":{"required":false,"type":"string","maxLength":50},"city":{"required":true,"type":"string","maxLength":25},"stateId":{"required":true,"type":"number"},"zipCode":{"required":true,"type":"string","minLength":5,"maxLength":7},"addressTypeListItemId":{"required":true,"type":"number"},"statusListItemId":{"required":true,"type":"number"}},"bankAccount":{"bankId":{"required":true},"routingNumber":{"required":true,"type":"string","maxLength":9,"minLength":9,"pattern":"^[0-9]*$"},"accountNumber":{"required":true,"type":"string","minLength":4,"maxLength":17,"pattern":"^[0-9]*$"},"description":{"required":true,"type":"string","maxLength":500},"bankInformation":{"required":true,"type":"string","maxLength":1000},"bankTypeListItemId":{"required":true,"type":"number"},"nextCheckNumber":{"required":true,"type":"number"},"accountTypeListItemId":{"required":true,"type":"number"},"statusListItemId":{"required":true,"type":"number"}},"personBankAccount":{"bankId":{"required":true},"routingNumber":{"required":true,"type":"string","maxLength":9,"minLength":9},"accountNumber":{"required":true,"type":"string","minLength":4,"maxLength":17},"prenoteDate":{"type":"date","format":"mm/dd/yyyy"},"prenoteApproveDate":{"type":"date"},"sequence":{"required":true},"accountTypeListItemId":{"required":true},"statusListItemId":{"required":true},"amountTypeListItemId":{"required":true},"value":{"required":true,"min":0}},"personEducation":{"degreeListItemId":{"required":true,"type":"number"},"specialization":{"required":true,"type":"string","maxLength":100},"startDate":{"required":true,"type":"date"},"endDate":{"required":true,"type":"date"},"institution":{"required":true,"type":"string","maxLength":100},"city":{"required":true,"type":"string","pattern":"^[^0-9]*$"},"stateId":{"required":true,"type":"number"}},"document":{"documentFile":{"required":true,"type":"string"},"documentName":{"required":true,"type":"string"},"documentTypeListItemId":{"required":true,"type":"number"}},"contactInformation":{"contactInformationTypeListItemId":{"required":true,"type":"number"},"value":{"required":true,"minLength":10,"type":"string"},"contactInformationStatusListItemId":{"required":true,"type":"number"},"extension":{"type":"number","required":false,"maxLength":5,"pattern":"^[0-9]*$"}},"office":{"tenant":{"required":true,"type":"string","maxLength":100},"organizationId":{"required":true,"type":"number"},"alias":{"required":true,"type":"string","maxLength":5},"office":{"required":true,"type":"string"},"officeTypeListItemId":{"required":true,"type":"number"},"addressTypeListItemId":{"required":true,"type":"number"},"address1":{"required":true,"type":"string","maxLength":50},"address2":{"required":false,"type":"string","maxLength":50},"stateId":{"required":true,"type":"number"},"city":{"required":true,"type":"string","maxLength":25},"zipCode":{"required":true,"type":"string","minLength":5,"maxLength":5},"phone":{"required":true,"type":"string","maxLength":13,"minLength":10},"phoneExtension":{"type":"number","required":false,"maxLength":5,"pattern":"^[0-9]*$"},"website":{"type":"string","pattern":"^(?:(?:https?|ftp):\\\\/\\\\/)?(?:(?!(?:10|127)(?:\\\\.\\\\d{1,3}){3})(?!(?:169\\\\.254|192\\\\.168)(?:\\\\.\\\\d{1,3}){2})(?!172\\\\.(?:1[6-9]|2\\\\d|3[0-1])(?:\\\\.\\\\d{1,3}){2})(?:[1-9]\\\\d?|1\\\\d\\\\d|2[01]\\\\d|22[0-3])(?:\\\\.(?:1?\\\\d{1,2}|2[0-4]\\\\d|25[0-5])){2}(?:\\\\.(?:[1-9]\\\\d?|1\\\\d\\\\d|2[0-4]\\\\d|25[0-4]))|(?:(?:[a-z\\\\u00a1-\\\\uffff0-9]-*)*[a-z\\\\u00a1-\\\\uffff0-9]+)(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff0-9]-*)*[a-z\\\\u00a1-\\\\uffff0-9]+)*(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff]{2,})))(?::\\\\d{2,5})?(?:\\\\/\\\\S*)?$"}},"emailProfile":{"emailAddress":{"type":"string","pattern":"^([a-zA-Z0-9_\\\\-\\\\.]+)@([a-zA-Z0-9_\\\\-\\\\.]+)\\\\.([a-zA-Z]{2,10})$","required":true},"password":{"type":"string","required":true},"smtpServer":{"type":"string","required":true},"smtpPort":{"type":"number","required":true,"min":9,"max":99999},"encryptionType":{"type":"number","required":true},"imapServer":{"type":"string","required":true},"imapPort":{"type":"number","required":true,"min":9,"max":99999},"imapServerNotRequired":{"type":"string"},"imapPortNotRequired":{"type":"number","min":9,"max":99999},"encryptionTypeNotRequired":{"type":"number"}},"organization":{"organization":{"required":true,"type":"string","maxLength":100},"fEIN":{"required":true,"type":"string","maxLength":9,"minLength":9,"pattern":"^[0-9]*$"},"copyFromOrganizationId":{"required":true,"type":"number"},"copyFromOfficeId":{"required":true,"type":"number"},"backOfficeTenantOrganizationId":{"required":true,"type":"number"},"backOfficeId":{"required":true,"type":"number"},"serviceTypeListItemId":{"required":true,"type":"number"},"alias":{"required":true,"type":"string","maxLength":15},"statusListItemId":{"required":true,"type":"number"},"department":{"required":true,"type":"string","maxLength":100},"nextInvoiceNumber":{"required":true,"type":"number","maxLength":100},"addressTypeListItemId":{"required":true,"type":"number"},"address1":{"required":true,"type":"string","maxLength":50},"address2":{"required":false,"type":"string","maxLength":50},"stateId":{"required":true,"type":"number"},"city":{"required":true,"type":"string","maxLength":25},"zipCode":{"required":true,"type":"string","minLength":5,"maxLength":5},"phone":{"required":true,"type":"string","maxLength":13,"minLength":10},"website":{"type":"string","pattern":"^(?:(?:https?|ftp):\\\\/\\\\/)?(?:(?!(?:10|127)(?:\\\\.\\\\d{1,3}){3})(?!(?:169\\\\.254|192\\\\.168)(?:\\\\.\\\\d{1,3}){2})(?!172\\\\.(?:1[6-9]|2\\\\d|3[0-1])(?:\\\\.\\\\d{1,3}){2})(?:[1-9]\\\\d?|1\\\\d\\\\d|2[01]\\\\d|22[0-3])(?:\\\\.(?:1?\\\\d{1,2}|2[0-4]\\\\d|25[0-5])){2}(?:\\\\.(?:[1-9]\\\\d?|1\\\\d\\\\d|2[0-4]\\\\d|25[0-4]))|(?:(?:[a-z\\\\u00a1-\\\\uffff0-9]-*)*[a-z\\\\u00a1-\\\\uffff0-9]+)(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff0-9]-*)*[a-z\\\\u00a1-\\\\uffff0-9]+)*(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff]{2,})))(?::\\\\d{2,5})?(?:\\\\/\\\\S*)?$"},"email":{"type":"string","pattern":"^([a-zA-Z0-9_\\\\-\\\\.]+)@([a-zA-Z0-9_\\\\-\\\\.]+)\\\\.([a-zA-Z]{2,10})$"},"addressNote":{"required":false,"type":"string","maxLength":100},"office":{"required":true,"type":"string","maxLength":100},"officeId":{"required":false,"type":"number"},"officeTypeListItemId":{"required":false,"type":"number"},"phoneExtension":{"type":"number","required":false,"maxLength":5,"pattern":"^[0-9]*$"}},"task-form":{"taskTypeListItemId":{"required":true,"type":"number"},"task":{"required":true,"type":"string","maxLength":250},"title":{"required":true,"type":"string","maxLength":250},"startDate":{"required":true,"type":"date"},"startTime":{"required":true,"type":"time"},"endDate":{"required":true,"type":"date"},"endTime":{"required":true,"type":"time"},"dueDate":{"required":true,"type":"date"},"dueTime":{"required":true,"type":"time"},"note":{"type":"string","maxLength":500},"reminder":{"type":"number","required":true},"assignedToPerson":{"required":true},"relatesToEntity":{"type":"string"},"relatesTo":{"type":"string","required":true},"city":{"type":"string","required":true},"relatesToEntityListItemId":{"type":"number","required":true},"assignedToPersonId":{"type":"number","required":true},"taskTemplateId":{"required":true},"workflowStageId":{"required":true},"stateId":{"required":true,"type":"number"}},"userType":{"userTypeListItemId":{"required":true,"type":"number"},"userTypePersonId":{"required":true,"type":"number"},"commission":{"type":"number","max":100}},"organizationForm":{"organization":{"required":true,"type":"string"},"department":{"required":true,"type":"string"},"address1":{"required":true,"type":"string","maxLength":50},"address2":{"required":false,"type":"string","maxLength":50},"city":{"required":true,"type":"string","maxLength":25},"stateId":{"required":true,"type":"number"},"officeId":{"required":true,"type":"number"},"zip":{"required":true,"type":"string","minLength":5,"maxLength":5},"website":{"type":"string","pattern":"^(?:(?:https?|ftp):\\\\/\\\\/)?(?:(?!(?:10|127)(?:\\\\.\\\\d{1,3}){3})(?!(?:169\\\\.254|192\\\\.168)(?:\\\\.\\\\d{1,3}){2})(?!172\\\\.(?:1[6-9]|2\\\\d|3[0-1])(?:\\\\.\\\\d{1,3}){2})(?:[1-9]\\\\d?|1\\\\d\\\\d|2[01]\\\\d|22[0-3])(?:\\\\.(?:1?\\\\d{1,2}|2[0-4]\\\\d|25[0-5])){2}(?:\\\\.(?:[1-9]\\\\d?|1\\\\d\\\\d|2[0-4]\\\\d|25[0-4]))|(?:(?:[a-zA-Z\\\\u00a1-\\\\uffff0-9]-*)*[a-zA-Z\\\\u00a1-\\\\uffff0-9]+)(?:\\\\.(?:[a-zA-Z\\\\u00a1-\\\\uffff0-9]-*)*[a-zA-Z\\\\u00a1-\\\\uffff0-9]+)*(?:\\\\.(?:[a-zA-Z\\\\u00a1-\\\\uffff]{2,})))(?::\\\\d{2,5})?(?:\\\\/\\\\S*)?$"},"phone":{"type":"string","pattern":"^[\\\\+]?[(]?[0-9]{3}[)]?[-\\\\s\\\\.]?[0-9]{3}[-\\\\s\\\\.]?[0-9]{4,6}$","maxLength":10},"phoneExtension":{"type":"number","required":false,"maxLength":5,"pattern":"^[0-9]*$"}},"dateType":{"dateTypeListItemId":{"required":true,"type":"number"},"date":{"required":true,"type":"date"}},"option":{"optionValue":{"required":true,"type":"string"}},"jobPortalFilter":{"zipCode":{"minLength":5,"maxLength":10,"required":true}},"emailJob":{"sender":{"required":true,"maxLength":100,"type":"string"},"receiver":{"required":true,"maxLength":100,"type":"string"},"email":{"required":true,"maxLength":100}},"correctionBatch":{"accountingPeriodId":{"required":true},"bankAccountId":{"required":true},"invoiceDate":{"required":true,"type":"date"},"invoiceBatchTypeListItemId":{"required":true,"type":"number"},"note":{"type":"string"}},"paymentBatch":{"bankAccount":{"required":true},"checkDate":{"required":true,"type":"date"},"note":{"type":"string"}},"paymentCorrectionBatch":{"accountingPeriodId":{"required":true},"checkDate":{"required":true,"type":"date"},"bankAccount":{"required":true},"note":{"type":"string"}},"invoiceBatch":{"invoiceDate":{"required":true,"type":"date"},"note":{"type":"string"}},"aRBatch":{"bankAccountId":{"required":"true"},"batchProcessTypeListItemId":{"required":"true"},"note":{"type":"string"}},"organizationPayment":{"paymentMethodListItemId":{"type":"number","required":true},"paymentAmount":{"required":true,"type":"number"},"paymentDate":{"required":true,"type":"date"}},"wCCode":{"wCCode":{"required":true,"type":"string"},"description":{"required":true,"type":"string"},"stateId":{"required":true,"type":"number"}},"revenueOpportunity":{"name":{"required":true,"type":"string"},"estimatedRevenue":{"required":true,"type":"number","min":0,"max":999999999999.99,"pattern":"^\\\\d*(\\\\.\\\\d{0,2})?$"},"description":{"type":"string"},"competition":{"type":"string"},"statusListItemId":{"required":true,"type":"number"},"revenuePeriodListItemId":{"required":true,"type":"number"},"noOfPositions":{"required":true,"type":"number","min":0,"pattern":"^[0-9]*$"}},"markUp":{"markUp":{"required":true,"maxLength":25,"type":"string"},"nodeId":{"required":true,"type":"string"},"markUpNodeId":{"required":true,"type":"number"},"entityId":{"required":true,"type":"number"},"rateValue":{"type":"number"},"oTMarkUp":{"required":true,"type":"number","pattern":"^[\\\\d]{1,1}(\\\\.[\\\\d]{1,4})?$"},"dTMarkUp":{"required":true,"type":"number","pattern":"^[\\\\d]{1,1}(\\\\.[\\\\d]{1,4})?$"},"rTMarkUp":{"required":true,"type":"number","pattern":"^[\\\\d]{1,1}(\\\\.[\\\\d]{1,4})?$"},"dTPayMultiplier":{"required":true,"type":"number","pattern":"^[\\\\d]{1,1}(\\\\.[\\\\d]{1,4})?$"},"oTPayMultiplier":{"required":true,"type":"number","pattern":"^[\\\\d]{1,1}(\\\\.[\\\\d]{1,4})?$"},"oTMarkUpListItemId":{"required":true,"type":"number"},"dTMarkUpListItemId":{"required":true,"type":"number"},"description":{"maxLength":250,"type":"string"},"statusListItemId":{"required":true,"type":"number"}},"department":{"organization":{"required":true,"type":"string"},"copyFromParent":{"required":true,"type":"string"},"currentDepartment":{"required":true,"type":"string"},"department":{"required":true,"type":"string"},"officeId":{"required":true,"type":"number"}},"resetInvoiceNumber":{"organizationInvoiceNumber":{"required":true,"type":"number"}},"resetCheckNumber":{"nextCheckNumber":{"required":true,"type":"number"},"nextLiveCheckNumber":{"required":true,"type":"number"}},"assignment":{"startDate":{"required":true,"type":"date"},"endDate":{"type":"date"},"salary":{"required":true,"type":"number","min":0}},"job":{"required":{"required":true,"type":"number","min":1,"pattern":"^(?:[1-9][0-9]{0,8}|999999999)$"},"requiredZero":{"required":true,"type":"number","min":0,"pattern":"^(?:[0-9][0-9]{0,8}|999999999)$"},"originalRequired":{"required":true,"type":"number","min":0},"startDate":{"type":"date"},"endDate":{"type":"date"},"purchaseOrderNumber":{"maxLength":50},"extra1":{"maxLength":50},"extra2":{"maxLength":50},"extra3":{"maxLength":50},"extra4":{"maxLength":50},"postDate":{"type":"date","required":true},"location":{"pattern":"^(.+)[,\\\\s]+(.+?)\\\\s*(\\\\d{5})?$"},"email":{"type":"string","pattern":"^([a-zA-Z0-9_\\\\-\\\\.]+)@([a-zA-Z0-9_\\\\-\\\\.]+)\\\\.([a-zA-Z]{2,10})$"},"payRate":{"maxLength":200}},"tempJob":{"statusListItemId":{"required":true,"type":"number"},"currencyListItemId":{"required":true,"type":"number"},"jobTypeListItemId":{"required":true,"type":"number"},"oTPlanListItemId":{"required":true,"type":"number"},"durationListItemId":{"required":true,"type":"number"}},"directHireJob":{"minimum":{"required":true,"type":"number","min":0,"max":9999999.99,"pattern":"^\\\\d*(\\\\.\\\\d{0,2})?$"},"maximum":{"required":true,"type":"number","min":0,"max":9999999.99,"pattern":"^\\\\d*(\\\\.\\\\d{0,2})?$"},"value":{"required":true,"type":"number","min":0,"max":9999999.99,"pattern":"^\\\\d*(\\\\.\\\\d{0,2})?$"}},"jobCandidate":{"minimumRate":{"type":"number","min":0},"maximumRate":{"type":"number","min":0}},"personEmployment":{"employer":{"required":true,"type":"string"},"title":{"required":true,"type":"string"},"startDate":{"required":true,"type":"date"},"endDate":{"required":false,"type":"date"},"address1":{"required":true,"type":"string"},"address1NotRequired":{"type":"string"},"city":{"required":true,"type":"string","pattern":"^[^0-9]*$"},"cityNotRequired":{"type":"string"},"stateId":{"required":true,"type":"number"},"stateIdNotRequired":{"type":"number"},"zipCode":{"required":true,"type":"string","minLength":5,"maxLength":7},"zipCodeNotRequired":{"type":"string","minLength":5},"note":{"required":false,"type":"string","maxLength":250},"referenceComment":{"required":false,"type":"string","maxLength":250},"countryId":{"required":true,"type":"string"},"state":{"required":true,"type":"string"}},"reportVld":{"report":{"required":true,"maxLength":50,"type":"string"},"reportTypeListItemId":{"required":true,"type":"number"},"categoryListItemId":{"required":true,"type":"number"},"dynamicReportTypeListItemId":{"required":true,"type":"number"},"entityListItemId":{"required":true,"type":"number"},"alias":{"type":"number","maxLength":50},"aggregation":{"type":"string","maxLength":25},"grouppingSortOrder":{"type":"string","maxLength":25},"groupTotalAggregation":{"type":"string"},"grandTotalaggregation":{"type":"string"},"columnWidth":{"type":"number","minLength":1,"pattern":"^[0-9]+$"},"groupOrder":{"type":"number","minLength":1,"pattern":"^[0-9]+$"},"dateRange":{"type":"string"},"date":{"type":"string"},"defaultValue":{"type":"string"},"status":{"type":"string","maxLength":50},"description":{"type":"string","required":false,"maxLength":250},"operator":{"type":"string"}},"chartOfAccounts":{"name":{"required":true,"maxLength":50,"type":"string"},"displayName":{"required":true,"maxLength":100,"type":"string"},"parentAccountId":{"required":false,"type":"number"},"accountType":{"required":true,"type":"string","maxLength":50},"accountNumber":{"required":true,"type":"string","maxLength":50},"statusListItemId":{"required":true,"type":"number"},"categoryId":{"type":"number"},"description":{"type":"string","required":false,"maxLength":100}},"personSkill":{"experienceYear":{"required":true,"type":"number","max":50,"min":0},"experienceMonth":{"required":true,"type":"number","max":12,"min":0},"experience":{"required":true,"type":"number","max":70,"min":0.1,"pattern":"^\\\\d{1,2}(\\\\.\\\\d{1,2})?$"},"experienceListItemId":{"required":true,"type":"number"},"validatedDate":{"required":false,"type":"date"}},"personEeo":{"genderListItemId":{"required":true,"type":"number"},"maritalStatusListItemId":{"required":true,"type":"number"},"ethnicListItemId":{"required":true,"type":"number"},"veteranStatusListItemId":{"required":true,"type":"number"}},"conviction":{"convictionListItemId":{"required":true,"type":"number"},"convictionTypeListItemId":{"required":true,"type":"number"},"convictionDate":{"required":true,"type":"date"},"verifiedDate":{"required":true,"type":"date"}},"serviceBatch":{"note":{"type":"string","required":true}},"personAdjustment":{"transactionCodeId":{"required":true,"type":"number"},"referenceRequire":{"required":true,"maxLength":50},"reference":{"required":false,"maxLength":50},"statusListItemId":{"required":true,"type":"number"},"deductionTypeListItemId":{"required":true,"type":"number"},"sequence":{"type":"number"},"adjustment":{"required":true,"type":"number"},"payPeriodLimit":{"type":"number"},"monthlyLimit":{"type":"number"},"yearlyLimit":{"type":"number"},"lifeTimeLimit":{"type":"number"},"startDate":{"required":true,"type":"date"},"endDate":{"type":"date"}},"personBenefit":{"transactionCodeId":{"required":true,"type":"number"},"statusListItemId":{"required":true,"type":"number"},"contributionTypeListItemId":{"required":true,"type":"number"},"benefit":{"required":true,"type":"number"},"reference":{"maxLength":50},"payPeriodLimit":{"type":"number"},"monthlyLimit":{"type":"number"},"yearlyLimit":{"type":"number"},"lifeTimeLimit":{"type":"number"},"startDate":{"required":true,"type":"date"},"endDate":{"type":"date"}},"personalInfo":{"firstName":{"type":"string","required":true},"lastName":{"type":"string","required":true},"title":{"type":"string","required":true},"ssn":{"type":"string","required":true,"maxLength":9},"mobile":{"type":"string","maxLength":10,"minLength":10},"mobileExtension":{"type":"number","required":false,"maxLength":5,"pattern":"^[0-9]*$"},"mobileRequired":{"type":"string","minLength":10,"maxLength":10,"required":true},"email":{"type":"string","pattern":"^([a-zA-Z0-9_\\\\-\\\\.]+)@([a-zA-Z0-9_\\\\-\\\\.]+)\\\\.([a-zA-Z]{2,10})$"},"emailRequired":{"type":"string","pattern":"^([a-zA-Z0-9_\\\\-\\\\.]+)@([a-zA-Z0-9_\\\\-\\\\.]+)\\\\.([a-zA-Z]{2,10})$","required":true},"personStatusListItemId":{"required":true,"type":"number"},"addressTypeListItemId":{"required":true,"type":"number"},"addressStatusListItemId":{"required":true,"type":"number"},"address1":{"type":"string","required":false,"maxLength":50},"address1Required":{"type":"string","required":true,"maxLength":50},"address2":{"type":"string","required":false,"maxLength":50},"stateId":{"type":"number","required":true},"city":{"type":"string","required":false,"maxLength":25},"cityRequired":{"type":"string","required":true,"maxLength":25},"zipCode":{"type":"string","required":false,"maxLength":5,"minLength":5},"zipCodeRequired":{"type":"string","required":true,"maxLength":5,"minLength":5},"organiipationId":{"type":"number","required":true},"officeId":{"type":"number","required":true},"workflowId":{"type":"number","required":true},"convictionDate":{"required":true,"type":"date"},"verifiedDate":{"required":true,"type":"date"}},"serviceProfile":{"creditLimit":{"required":true,"type":"number","min":0},"billingCycle":{"required":true,"type":"number"},"payCycle":{"required":true,"type":"number"},"maxInvoiceAmount":{"required":true,"type":"number","min":0},"milageRate":{"required":true,"type":"number","min":0},"extra1Label":{"required":false,"type":"string","maxLength":50},"extra2Label":{"required":false,"type":"string","maxLength":50},"extra3Label":{"required":false,"type":"string","maxLength":50},"extra4Label":{"required":false,"type":"string","maxLength":50},"reference1Label":{"required":false,"type":"string","maxLength":50},"reference2Label":{"required":false,"type":"string","maxLength":50},"extra1":{"required":false,"type":"string","maxLength":50},"extra2":{"required":false,"type":"string","maxLength":50},"extra3":{"required":false,"type":"string","maxLength":50},"extra4":{"required":false,"type":"string","maxLength":50},"reference1":{"required":false,"type":"string","maxLength":50},"reference2":{"required":false,"type":"string","maxLength":50}},"transactionCode":{"transactionCodeId":{"required":true,"type":"number"},"transactionCode":{"required":true,"maxLength":25,"type":"string"},"description":{"maxLength":100,"type":"string"},"transactionTypeId":{"required":true,"type":"number"},"statusListItemId":{"required":true,"type":"number"}},"contact":{"firstName":{"type":"string","required":true},"lastName":{"type":"string","required":true},"organizationId":{"type":"number","required":true},"position":{"type":"string","required":true},"title":{"type":"string","required":true},"phone":{"type":"string","maxLength":10,"minLength":10,"required":true},"phoneRequired":{"type":"string","pattern":"^[\\\\+]?[(]?[0-9]{3}[)]?[-\\\\s\\\\.]?[0-9]{3}[-\\\\s\\\\.]?[0-9]{4,6}$","maxLength":10,"required":true},"phoneNotRequired":{"type":"string","maxLength":10,"minLength":10},"email":{"type":"string","pattern":"^([a-zA-Z0-9_\\\\-\\\\.]+)@([a-zA-Z0-9_\\\\-\\\\.]+)\\\\.([a-zA-Z]{2,10})$"},"emailRequired":{"type":"string","pattern":"^([a-zA-Z0-9_\\\\-\\\\.]+)@([a-zA-Z0-9_\\\\-\\\\.]+)\\\\.([a-zA-Z]{2,10})$","required":true},"fax":{"type":"string","minLength":10,"pattern":"^[0-9]*$"},"countryId":{"type":"number","required":true},"countryIdNotRequired":{"type":"number"},"address1":{"type":"string","required":true,"maxLength":50},"address1NotRequired":{"type":"string"},"address2":{"type":"string","required":false,"maxLength":50},"city":{"type":"string","required":true,"maxLength":25},"cityNotRequired":{"type":"string"},"stateId":{"type":"number","required":true},"stateIdNotRequired":{"type":"number"},"zipCode":{"type":"string","required":true,"minLength":5,"maxLength":5},"zipCodeNotRequired":{"type":"string","minLength":5,"maxLength":5},"mobileExtension":{"type":"number","required":false,"maxLength":5,"pattern":"^[0-9]*$"}},"changeUserPassword":{"oldPassword":{"type":"string","required":true},"newPassword":{"type":"string","required":true},"confirmPassword":{"type":"string","required":true}},"comment":{"commentType":{"type":"string"},"subject":{"type":"string","required":true},"comment":{"type":"string","required":true},"dueDate":{"type":"date","required":true},"dueTime":{"type":"time","required":true}},"salesProfile":{"industry":{"type":"string","required":true},"organizationType":{"type":"string","required":true},"source":{"type":"string","required":true},"salesLevel":{"type":"string","required":true},"sourceDescription":{"type":"string","required":true},"competition":{"type":"string","required":true}},"taskDetail":{"relatesTo":{"type":"string","required":true},"task":{"type":"string","required":true},"status":{"type":"string","required":true},"dueDate":{"type":"string","required":true}},"workflow":{"workflowId":{"required":true,"type":"number"},"workflow":{"required":true,"maxLength":50,"type":"string"},"description":{"required":true,"maxLength":200,"type":"string"},"applicationId":{"required":true,"type":"number"},"workflowProgressListItemId":{"required":true,"type":"number"},"transactionBatch":{"accountingPeriodId":{"required":true,"type":"number"},"organizationId":{"required":true,"type":"number"},"note":{"required":true,"type":"string","maxLength":100}}},"jobAssignment":{"startDate":{"type":"date","required":true},"endDate":{"type":"date","required":true},"rTPayRate":{"type":"number","required":true},"rTBillRate":{"type":"number","required":true},"oTPayRate":{"type":"number","required":true},"oTBillRate":{"type":"number","required":true}},"forgotPasswordAuthenticate":{"userName":{"required":true,"maxLength":50,"type":"string"},"email":{"required":true,"type":"string","pattern":"^([a-zA-Z0-9_\\\\-\\\\.]+)@([a-zA-Z0-9_\\\\-\\\\.]+)\\\\.([a-zA-Z]{2,10})$"},"firstName":{"required":true,"type":"string"},"middleName":{"type":"string"},"lastName":{"required":true,"type":"string"},"ssn":{"required":true,"type":"string"},"zipCode":{"required":true,"type":"string","minLength":5,"maxLength":7},"month":{"type":"number","required":true,"minLength":1,"maxLength":2},"day":{"type":"number","required":true,"minLength":1,"maxLength":2},"phone":{"type":"number","required":true,"minLength":10,"maxLength":10},"lastFourSSN":{"type":"number","required":true,"minLength":4,"maxLength":4},"verificationCode":{"required":true,"type":"number"},"password":{"required":true,"type":"string"},"confirmPassword":{"required":true,"type":"string"}},"shift":{"shift":{"required":true,"type":"string"},"startTime":{"required":true,"type":"time"},"endTime":{"required":true,"type":"time"}},"jobPosition":{"rTPayRate":{"required":true,"type":"number","pattern":"^[0-9]\\\\d*(\\\\.\\\\d+)?$"},"rTBillRate":{"required":true,"type":"number","pattern":"^[0-9]\\\\d*(\\\\.\\\\d+)?$"},"oTPayRate":{"required":true,"type":"number","pattern":"^[0-9]\\\\d*(\\\\.\\\\d+)?$"},"oTBillRate":{"required":true,"type":"number","pattern":"^[0-9]\\\\d*(\\\\.\\\\d+)?$"},"statusListItemId":{"required":true,"type":"number"},"endTime":{"required":true,"type":"time"}},"jobRate":{"payRate":{"required":true,"type":"number","min":0},"billRate":{"required":true,"type":"number","min":0}},"personTaxHistory":{"taxAmount":{"required":true,"type":"number","min":0}},"personBenefitHistory":{"benefitAmount":{"required":true,"type":"number","min":0}},"personDeductionHistory":{"deductionAmount":{"required":true,"type":"number","min":0}},"skill":{"skill":{"required":true,"type":"string"}},"organizationWCCodeRate":{"wCCode":{"required":true,"type":"string"},"stateCode":{"required":true,"type":"string"},"rate":{"required":true,"type":"number","pattern":"^\\\\d{1,1}(\\\\.\\\\d{1,4})?$"}},"payCode":{"transactionCode":{"required":true,"type":"string"},"gLCode":{"required":true,"type":"string"}},"workInjury":{"officeId":{"required":true,"type":"number"},"bodyPartListItemId":{"required":true,"type":"number"},"typeOfInjuryListItemId":{"required":true,"type":"number"},"causeOfInjuryListItemId":{"required":true,"type":"number"},"assignmentId":{"required":true,"type":"number"},"workflowId":{"required":true,"type":"number"},"workflowStageId":{"required":true,"type":"number"},"claimNumber":{"required":false,"type":"string","maxLength":50},"statusListItemId":{"required":true,"type":"number"},"claimTypeListItemId":{"required":true,"type":"number"},"incidentNote":{"required":true,"type":"string","maxLength":4000},"incidentDate":{"required":true}},"unemployment":{"maxBenefit":{"required":true,"type":"number","min":0,"pattern":"^[0-9]\\\\d*(\\\\.\\\\d+)?$"},"weeklyBenefit":{"required":true,"type":"number","min":0,"pattern":"^[0-9]\\\\d*(\\\\.\\\\d+)?$"},"potentialCharges":{"required":true,"type":"number","min":0,"pattern":"^[0-9]\\\\d*(\\\\.\\\\d+)?$"},"officeId":{"required":true,"type":"number"},"workflowId":{"required":true,"type":"number"},"workflowStageId":{"required":true,"type":"number"},"assignmentId":{"required":true,"type":"number"},"claimNumber":{"required":false,"type":"string","maxLength":50},"statusListItemId":{"required":true,"type":"number"},"claimDate":{"required":false,"type":"date"},"determinationStatusListItemId":{"required":true,"type":"number"},"reasonStatusListItemId":{"required":false,"type":"number"},"note":{"required":false,"type":"string","maxLength":500}},"discount":{"value":{"required":true,"type":"number","pattern":"^[0-9]\\\\d*(\\\\.\\\\d+)?$"},"discount":{"required":true,"type":"string"},"percentOrAmountListItemId":{"required":true,"type":"number"},"tierBasedOnListItemId":{"required":true,"type":"number"},"tierRangeListItemId":{"required":true,"type":"number"}},"charge":{"value":{"required":true,"type":"number","pattern":"^[0-9]\\\\d*(\\\\.\\\\d+)?$"},"charge":{"required":true,"type":"string"},"percentOrAmountListItemId":{"required":true,"type":"number"},"tierBasedOnListItemId":{"required":true,"type":"number"},"tierRangeListItemId":{"required":true,"type":"number"}},"deduction":{"transactionCode":{"required":true,"type":"string"},"gLCode":{"required":true,"type":"string"}},"benefit":{"transactionCode":{"required":true,"type":"string"},"gLCode":{"required":true,"type":"string"}},"bankFileBatch":{"checkDate":{"required":true,"type":"date"}},"role":{"role":{"required":true,"type":"string"}},"personAccrual":{"startDate":{"required":true,"type":"date"}},"personAccrualAdjustment":{"unit":{"required":true,"type":"number","max":999999.9999,"min":0}},"taskTemplate":{"taskTemplate":{"required":true,"type":"string"},"description":{"required":true,"type":"string"},"sequence":{"required":true,"type":"number"},"assignedToPersonType":{"required":true,"type":"string"}},"form":{"formName":{"required":true,"type":"string"},"processingMethod":{"required":true,"type":"string"},"formURL":{"required":true,"type":"string","pattern":"^(?:(?:https?|ftp):\\\\/\\\\/)?(?:(?!(?:10|127)(?:\\\\.\\\\d{1,3}){3})(?!(?:169\\\\.254|192\\\\.168)(?:\\\\.\\\\d{1,3}){2})(?!172\\\\.(?:1[6-9]|2\\\\d|3[0-1])(?:\\\\.\\\\d{1,3}){2})(?:[1-9]\\\\d?|1\\\\d\\\\d|2[01]\\\\d|22[0-3])(?:\\\\.(?:1?\\\\d{1,2}|2[0-4]\\\\d|25[0-5])){2}(?:\\\\.(?:[1-9]\\\\d?|1\\\\d\\\\d|2[0-4]\\\\d|25[0-4]))|(?:(?:[a-z\\\\u00a1-\\\\uffff0-9]-*)*[a-z\\\\u00a1-\\\\uffff0-9]+)(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff0-9]-*)*[a-z\\\\u00a1-\\\\uffff0-9]+)*(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff]{2,})))(?::\\\\d{2,5})?(?:\\\\/\\\\S*)?$"},"baseURL":{"required":true,"type":"string","pattern":"^(?:(?:https?|ftp):\\\\/\\\\/)?(?:(?!(?:10|127)(?:\\\\.\\\\d{1,3}){3})(?!(?:169\\\\.254|192\\\\.168)(?:\\\\.\\\\d{1,3}){2})(?!172\\\\.(?:1[6-9]|2\\\\d|3[0-1])(?:\\\\.\\\\d{1,3}){2})(?:[1-9]\\\\d?|1\\\\d\\\\d|2[01]\\\\d|22[0-3])(?:\\\\.(?:1?\\\\d{1,2}|2[0-4]\\\\d|25[0-5])){2}(?:\\\\.(?:[1-9]\\\\d?|1\\\\d\\\\d|2[0-4]\\\\d|25[0-4]))|(?:(?:[a-z\\\\u00a1-\\\\uffff0-9]-*)*[a-z\\\\u00a1-\\\\uffff0-9]+)(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff0-9]-*)*[a-z\\\\u00a1-\\\\uffff0-9]+)*(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff]{2,})))(?::\\\\d{2,5})?(?:\\\\/\\\\S*)?$"},"description":{"required":true,"type":"string"}},"reportScheduleForm":{"scheduleTitle":{"required":true,"type":"string"},"runTime":{"required":true,"type":"time"},"recurrenceType":{"required":true},"startDate":{"required":true,"type":"string"},"startTime":{"required":true,"type":"time"}},"group":{"group":{"required":true,"type":"string"}},"culture":{"cultureCode":{"required":true,"type":"string"},"language":{"required":true,"type":"string"},"sortOrder":{"required":true,"type":"number"}},"journalEntry":{"apDate":{"type":"date","format":"mm/dd/yyyy","required":true}},"accrual":{"accrualPlan":{"required":true,"type":"string","maxLength":50},"lifeTimeLimit":{"required":true,"type":"number","pattern":"^\\\\d{1,6}(\\\\.\\\\d{1,4})?$"},"processingMethod":{"required":true,"type":"string"}},"grossProfit":{"federalTax":{"required":true,"type":"number"},"sutaTax":{"required":true,"type":"number"},"wcCodeRate":{"required":true,"type":"string"},"rTPayRate":{"required":true,"type":"number"},"gPPercent":{"required":true,"type":"number","max":99,"min":0},"gPNumericData":{"type":"number","min":0}},"customerJob":{"required":{"required":true,"type":"number","min":1,"pattern":"^[0-9]*$^(?:[1-9][0-9]{0,8}|999999999)$"},"startDate":{"type":"date","format":"mm/dd/yyyy","required":true},"note":{"required":true,"type":"string","maxLength":500}},"widgetParameterForm":{"date":{"required":true,"type":"date"},"widgetDimension":{"required":true,"type":"number"},"processingMethod":{"required":true,"type":"number"},"widgetTemplateType":{"required":true,"type":"number"},"description":{"required":true,"type":"string"},"alias":{"required":true,"type":"string"}},"zenSelect":{"required":{"required":true},"optional":{"required":false}},"cost":{"reservedAmount":{"required":false,"type":"number","min":0,"pattern":"\\\\d+(\\\\.\\\\d{1,2})?"},"cost":{"required":true,"type":"number","pattern":"\\\\d+(\\\\.\\\\d{1,2})?","min":0},"paidAmount":{"required":false,"type":"number","min":0,"pattern":"\\\\d+(\\\\.\\\\d{1,2})?"}},"eventSubscription":{"eventSubscription":{"required":true,"type":"string"},"subject":{"required":true,"type":"string"},"to":{"required":true,"type":"string"}},"salesTax":{"transactionCode":{"required":true,"type":"string"},"gLCode":{"required":true,"type":"string"}},"occupationalCode":{"description":{"required":true,"type":"string"}},"personInterview":{"number":{"required":true,"type":"number","max":999999999999.99,"pattern":"^\\\\d*(\\\\.\\\\d{0,2})?$"}},"assessment":{"startDate":{"type":"date","required":true}},"GLAccount":{"description":{"required":true,"type":"string","maxLength":100},"accountNumber":{"required":false,"type":"string","maxLength":50},"reference1":{"required":false,"type":"string","maxLength":100},"reference2":{"required":false,"type":"string","maxLength":100}}}')}},he=>{he(he.s=69982)}]);